Skip to content

feat: add user flag for data plane operations#3

Merged
vaaandark merged 1 commit intoTencentCloudAgentRuntime:mainfrom
vaaandark:main
Mar 4, 2026
Merged

feat: add user flag for data plane operations#3
vaaandark merged 1 commit intoTencentCloudAgentRuntime:mainfrom
vaaandark:main

Conversation

@vaaandark
Copy link
Member

Add --user flag for data plane operations

Add --user flag to exec, file, and instance login commands to specify the user identity for sandbox data plane calls. Previously all calls were hardcoded to "user".

Changes

  • New resolveUser() helper: --user flag > sandbox.default_user config > "user"
  • exec: replace hardcoded User: "user" with resolveUser()
  • file: pass User config to all 7 filesystem SDK calls (previously nil)
  • instance login: forward --user to webshell Manager.Start()
  • New [sandbox] config section with default_user option (env: AGS_SANDBOX_DEFAULT_USER)
  • Update REPL completions, docs, and changelogs

Usage

ags exec -i <id> --user root "whoami"
ags file ls -i <id> --user root /root
ags instance login <id> --user root

@vaaandark vaaandark requested a review from keithfx999 March 4, 2026 03:44
@vaaandark vaaandark merged commit 040660c into TencentCloudAgentRuntime:main Mar 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant