feat(tui): run bang commands through the gateway

This commit is contained in:
Xubin Ren committed 2026-08-17 20:56:10 +08:00
1 parent c5d2e0ddf1
commit c320d08dfe
12 files changed
+299 -13

No files matched your search

+2
View File
@@ -214,6 +214,7 @@ export interface MessageOptions {
cliApps?: Array<{ name: string }>
mcpPresets?: Array<{ name: string }>
sessionMentions?: SessionMention[]
userShell?: boolean
}
export interface SlashCommand {
@@ -799,6 +800,7 @@ export class NanobotClient {
content,
turn_id: turnId,
webui: true,
...(options.userShell ? { user_shell: true } : {}),
...(options.cliApps?.length ? { cli_apps: options.cliApps } : {}),
...(options.mcpPresets?.length ? { mcp_presets: options.mcpPresets } : {}),
...(options.sessionMentions?.length