aboutsummaryrefslogtreecommitdiff
path: root/src/registry.ts
blob: 014ba517f2a4eeaa5f5be5979f88da24fe92747a (plain)
1
2
3
4
5
6
7
8
9
10
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);
};