diff options
Diffstat (limited to 'src/registry.ts')
| -rw-r--r-- | src/registry.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/registry.ts b/src/registry.ts new file mode 100644 index 0000000..014ba51 --- /dev/null +++ b/src/registry.ts @@ -0,0 +1,11 @@ +import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; +import type { BrowserClient } from "./client"; +import { type AnyBrowserToolDefinition, registerBrowserTool } from "./util/tool"; + +const TOOLS: ReadonlyArray<AnyBrowserToolDefinition> = [ + // Domain tools registered as they're migrated, one per domain file. +]; + +export const registerAllTools = (pi: ExtensionAPI, client: BrowserClient): void => { + for (const t of TOOLS) registerBrowserTool(pi, client, t); +}; |
