You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cli): add --async mode and increase default timeout to 300s
- --async: send message and exit immediately, don't wait for response
- --timeout now in seconds (default 300s instead of 120s)
- Async mode prints messageId for later retrieval via `botschat messages`
Copy file name to clipboardExpand all lines: packages/plugin/bin/botschat-cli.mjs
+44-3Lines changed: 44 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1111,7 +1111,7 @@ var BotsChatWSClient = class {
1111
1111
};
1112
1112
1113
1113
// src/commands/chat.ts
1114
-
varchatCmd=newCommand9("chat").description("Chat with an AI agent").argument("[message]","Message to send (omit for interactive mode)").option("-i, --interactive","Interactive REPL mode").option("-s, --session <sessionId>","Session ID").option("-c, --channel <channelId>","Channel ID").option("-a, --agent <agentId>","Agent ID").option("--no-stream","Wait for full response instead of streaming").option("--pipe","Read message from stdin").option("--timeout <ms>","Timeout in ms for single-shot mode","120000").action(async(message,opts)=>{
1114
+
varchatCmd=newCommand9("chat").description("Chat with an AI agent").argument("[message]","Message to send (omit for interactive mode)").option("-i, --interactive","Interactive REPL mode").option("-s, --session <sessionId>","Session ID").option("-c, --channel <channelId>","Channel ID").option("-a, --agent <agentId>","Agent ID").option("--no-stream","Wait for full response instead of streaming").option("--async","Send message and exit immediately without waiting for response").option("--pipe","Read message from stdin").option("--timeout <seconds>","Timeout in seconds for single-shot mode","300").action(async(message,opts)=>{
1115
1115
try{
1116
1116
constcfg=loadConfig();
1117
1117
if(!cfg.userId||!cfg.token){
@@ -1152,15 +1152,18 @@ var chatCmd = new Command9("chat").description("Chat with an AI agent").argument
0 commit comments