/** * Built-in tool definitions for the AgentCortex. * * These replace the Claude Agent SDK's native tool set (Read, Edit, Bash, Glob, Grep, Write). * All tool outputs are truncated to prevent context poisoning. * * Design principles: * - Each tool is a thin, typed wrapper around Node.js built-ins. * - No external dependencies beyond zod and Node stdlib. * - Output truncation is applied uniformly: head + tail of output. */ import type { LoopGuard } from '../core/loop-guard.js'; /** * Truncate a potentially huge string to a safe context size. * Returns head + "[N chars truncated]" + tail, preserving error lines. */ export declare function truncateToolOutput(raw: string, maxChars?: number): string; /** * Build the standard set of built-in tools for an agent run. * Pass the current LoopGuard so bash calls are circuit-broken when looping. */ export declare function buildBuiltInTools(opts: { workspaceDir: string; agentId: string; loopGuard: LoopGuard; abortSignal?: AbortSignal; }): { readonly read_file: import("./local-tool.js").LocalToolDefinition; readonly write_file: import("./local-tool.js").LocalToolDefinition; readonly edit_file: import("./local-tool.js").LocalToolDefinition; readonly list_directory: import("./local-tool.js").LocalToolDefinition; readonly glob: import("./local-tool.js").LocalToolDefinition; readonly grep: import("./local-tool.js").LocalToolDefinition; readonly bash: import("./local-tool.js").LocalToolDefinition; }; export type BuiltInTools = ReturnType; //# sourceMappingURL=built-ins.d.ts.map