feat: add --prompt and --prompt-file options to agent send command

This commit is contained in:
Mohamed Boudra
2026-03-14 22:38:13 +07:00
parent e526f375c8
commit f12dc6127b
10 changed files with 574 additions and 17 deletions
+3 -1
View File
@@ -133,7 +133,9 @@ export function createCli(): Command {
.command('send')
.description('Send a message/task to an existing agent')
.argument('<id>', 'Agent ID (or prefix)')
.argument('<prompt>', 'The message to send')
.argument('[prompt]', 'The message to send')
.option('--prompt <text>', 'Provide the message inline as a flag')
.option('--prompt-file <path>', 'Read the message from a UTF-8 text file')
.option('--no-wait', 'Return immediately without waiting for completion')
.option('--image <path>', 'Attach image(s) to the message', collectMultiple, [])
).action(withOutput(runSendCommand))