diff options
Diffstat (limited to 'packages/tool-shell/src/extension.ts')
| -rw-r--r-- | packages/tool-shell/src/extension.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/tool-shell/src/extension.ts b/packages/tool-shell/src/extension.ts new file mode 100644 index 0000000..1a89de0 --- /dev/null +++ b/packages/tool-shell/src/extension.ts @@ -0,0 +1,19 @@ +import type { Extension } from "@dispatch/kernel"; +import { createRunShellTool } from "./shell.js"; +import { realSpawn } from "./spawn.js"; + +export const extension: Extension = { + manifest: { + id: "tool-shell", + name: "Shell Tool", + version: "0.0.0", + apiVersion: "^0.1.0", + trust: "bundled", + activation: "eager", + capabilities: { shell: true }, + contributes: { tools: ["run_shell"] }, + }, + activate(host) { + host.defineTool(createRunShellTool({ workdir: process.cwd(), spawn: realSpawn })); + }, +}; |
