* Execute TUI command * * Execute a TUI command (e.g. agent_cycle)
(
parameters?: {
directory?: string
command?: string
},
options?: Options<never, ThrowOnError>,
)
| 2694 | * Execute a TUI command (e.g. agent_cycle) |
| 2695 | */ |
| 2696 | public executeCommand<ThrowOnError extends boolean = false>( |
| 2697 | parameters?: { |
| 2698 | directory?: string |
| 2699 | command?: string |
| 2700 | }, |
| 2701 | options?: Options<never, ThrowOnError>, |
| 2702 | ) { |
| 2703 | const params = buildClientParams( |
| 2704 | [parameters], |
| 2705 | [ |
| 2706 | { |
| 2707 | args: [ |
| 2708 | { in: "query", key: "directory" }, |
| 2709 | { in: "body", key: "command" }, |
| 2710 | ], |
| 2711 | }, |
| 2712 | ], |
| 2713 | ) |
| 2714 | return (options?.client ?? this.client).post<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError>({ |
| 2715 | url: "/tui/execute-command", |
| 2716 | ...options, |
| 2717 | ...params, |
| 2718 | headers: { |
| 2719 | "Content-Type": "application/json", |
| 2720 | ...options?.headers, |
| 2721 | ...params.headers, |
| 2722 | }, |
| 2723 | }) |
| 2724 | } |
| 2725 | |
| 2726 | /** |
| 2727 | * Show TUI toast |
nothing calls this directly
no test coverage detected