| 40 | } |
| 41 | |
| 42 | export interface ExecutorHandle { |
| 43 | /** Bash namespace commands; pass to `new Bash({ customCommands })`. */ |
| 44 | commands: Command[]; |
| 45 | /** |
| 46 | * Tool invocation callback for `JavaScriptConfig.invokeTool`. |
| 47 | * Routes inline tool calls directly and SDK-tool calls through the |
| 48 | * approval/elicitation pipeline. |
| 49 | */ |
| 50 | invokeTool: (path: string, argsJson: string) => Promise<string>; |
| 51 | /** |
| 52 | * SDK handle. Present only when `setup` was provided. Use it to inspect |
| 53 | * sources, list tools, or close the executor when done. |
| 54 | */ |
| 55 | sdk?: ExecutorSDKHandle; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * Build an `ExecutorHandle` from a config of inline tools and/or an SDK setup. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…