Skip to content

Commit 58b0886

Browse files
committed
fix(cli): add [non-interactive] markers to new upstream options
Fix help text for options added in upstream PRs #652, #653, #657, #620: - dev: add [non-interactive] to --tool, --input, -H/--header - invoke: add [non-interactive] to -H/--header - fetch access: add [non-interactive] to --name, --type, --target, --json - copy.ts: add missing 'import' command description Confidence: high Scope-risk: narrow
1 parent 79ee583 commit 58b0886

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/cli/commands/dev/command.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ export const registerDev = (program: Command) => {
142142
.option('-i, --invoke <prompt>', 'Invoke running dev server (use --agent if multiple) [non-interactive]')
143143
.option('-s, --stream', 'Stream response when using --invoke [non-interactive]')
144144
.option('-l, --logs', 'Run dev server with logs to stdout [non-interactive]')
145-
.option('--tool <name>', 'MCP tool name (used with --invoke call-tool)')
146-
.option('--input <json>', 'MCP tool arguments as JSON (used with --invoke call-tool)')
145+
.option('--tool <name>', 'MCP tool name (used with --invoke call-tool) [non-interactive]')
146+
.option('--input <json>', 'MCP tool arguments as JSON (used with --invoke call-tool) [non-interactive]')
147147
.option(
148148
'-H, --header <header>',
149-
'Custom header to forward to the agent (format: "Name: Value", repeatable)',
149+
'Custom header to forward to the agent (format: "Name: Value", repeatable) [non-interactive]',
150150
(val: string, prev: string[]) => [...prev, val],
151151
[] as string[]
152152
)

src/cli/commands/fetch/command.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export const registerFetch = (program: Command) => {
1313
fetchCmd
1414
.command('access')
1515
.description('Fetch access info (URL, token, auth guidance) for a deployed gateway or agent.')
16-
.option('--name <resource>', 'Gateway or agent name')
17-
.option('--type <type>', 'Resource type: gateway (default) or agent', 'gateway')
18-
.option('--target <target>', 'Deployment target')
19-
.option('--json', 'Output as JSON')
16+
.option('--name <resource>', 'Gateway or agent name [non-interactive]')
17+
.option('--type <type>', 'Resource type: gateway (default) or agent [non-interactive]', 'gateway')
18+
.option('--target <target>', 'Deployment target [non-interactive]')
19+
.option('--json', 'Output as JSON [non-interactive]')
2020
.action(async (cliOptions: Record<string, unknown>) => {
2121
const options = cliOptions as unknown as FetchAccessOptions;
2222
requireProject();

src/cli/commands/invoke/command.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const registerInvoke = (program: Command) => {
106106
.option('--input <json>', 'MCP tool arguments as JSON (use with --tool) [non-interactive]')
107107
.option(
108108
'-H, --header <header>',
109-
'Custom header to forward to the agent (format: "Name: Value", repeatable)',
109+
'Custom header to forward to the agent (format: "Name: Value", repeatable) [non-interactive]',
110110
(val: string, prev: string[]) => [...prev, val],
111111
[] as string[]
112112
)

src/cli/tui/copy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const COMMAND_DESCRIPTIONS = {
4444
pause: 'Pause an online eval config. Supports --arn for configs outside the project.',
4545
resume: 'Resume a paused online eval config. Supports --arn for configs outside the project.',
4646
run: 'Run on-demand evaluation. Supports --agent-arn for agents outside the project.',
47+
import: 'Import resources from a Bedrock AgentCore Starter Toolkit project.',
4748
update: 'Check for and install CLI updates',
4849
validate: 'Validate agentcore/ config files.',
4950
} as const;

0 commit comments

Comments
 (0)