MCPcopy
hub / github.com/vercel-labs/just-bash / ExecutorHandle

Interface ExecutorHandle

packages/just-bash-executor/src/create-executor.ts:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42export 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…