/** * Agents server tool bindings. * * Each tool maps to an MCP or Agents API call. The Agent SDK registers * these as an in-process MCP server and lets Claude call them natively. * * `createAgentsTools(deps)` captures `deps.context` (an * `AgentToolContext` provided by the worker) so handlers can read * `agentId`, `pendingEscalations`, etc. via the local typing. */ import { type SdkMcpToolDefinition } from '@anthropic-ai/claude-agent-sdk'; import { type ToolDeps, type ToolTracker } from '../../core/transport.js'; type Track = ToolTracker; export declare const TOOL_CATEGORIES: Record; export declare const ALL_TOOL_NAMES: string[]; /** * Per-tool catalog: name, category, one-line description. * * The authoritative data lives in `./catalog.json` — both this Node * package and the Deno edge function (`supabase/functions/agents/ * handlers/tools.ts`) read that same file. The drift test checks the * two loads for deep equality, so adding a tool is a single-file edit. */ export interface ToolCatalogEntry { name: string; category: 'query' | 'action' | 'agent' | 'cli'; description: string; } export declare const TOOL_CATALOG: readonly ToolCatalogEntry[]; /** MCP endpoints called by hand-written tools below. */ export declare const HAND_WRITTEN_MCP_ENDPOINTS: readonly string[]; /** Agents API methods called by hand-written tools below. */ export declare const HAND_WRITTEN_AGENTS_API_METHODS: readonly string[]; /** * Create all Edsger tools bound to a specific execution context. * Each call produces fresh tool instances with the tracker closure. */ export declare function createAgentsTools(deps: ToolDeps): SdkMcpToolDefinition[]; export declare function buildCliTools(track: Track): SdkMcpToolDefinition[]; export {};