/** * AFT (Agent File Tools) extension for Pi coding agent. * * Config is loaded from two levels (project overrides user): * - User: ~/.config/cortexkit/aft.jsonc (XDG_CONFIG_HOME-aware) * - Project: /.cortexkit/aft.jsonc * * Tools registered: * * Hoisting (replace Pi's built-in tools): * - read → AFT's indexed Rust reader * - write → AFT's atomic writer with backup + auto-format + LSP diagnostics * - edit → AFT's fuzzy-match edit with backup + diagnostics * - grep → AFT's trigram-indexed grep (falls back to ripgrep outside project root) * * AFT-specific: * - aft_outline Structural outline (symbols, headings) for files/URLs * - aft_zoom Symbol-level inspection with call-graph annotations * - aft_search Semantic search (when semantic_search=true) * - aft_callgraph Call-graph navigation (callers, call_tree, impact, trace_to, trace_to_symbol, trace_data) * - aft_conflicts One-call merge conflict inspection * - aft_import Language-aware import add/remove/organize * - aft_safety Per-file undo, checkpoints, restore * - aft_delete Delete file with backup * - aft_move Move/rename file * - ast_grep_search / ast_grep_replace AST-aware pattern search/rewrite * * Commands: * - /aft-status Status dialog (index states, LSP servers, storage dir) */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; import { type AftConfig, getConfigLoadErrors } from "./config.js"; import { resolvePiToolSurface } from "./tool-registration.js"; type VersionMismatchPool = { replaceBinary(path: string): Promise; }; declare function createVersionMismatchHandler(getPool: () => VersionMismatchPool | undefined, ensureCompatibleBinary?: (version?: string) => Promise): (binaryVersion: string, minVersion: string) => Promise; declare function enqueueConfigParseWarnings(projectRoot: string, errors: ReturnType): void; declare function shouldPrepareOnnxRuntime(config: Pick): boolean; declare function bridgeDirectoryFromCallback(bridge: unknown, fallback: string): string; declare function handleConfigureWarningsForSession(context: { projectRoot: string; sessionId?: string | null; client?: unknown; bridge: Pick; warnings: unknown[]; configDroppedKeys?: unknown; storageDir: string; pluginVersion: string; }): Promise; /** * Pi extension default export. * * Called once per session. Registers tools, commands, and session shutdown hooks. */ export default function (pi: ExtensionAPI): Promise; export declare const __test__: { enqueueConfigParseWarnings: typeof enqueueConfigParseWarnings; bridgeDirectoryFromCallback: typeof bridgeDirectoryFromCallback; resolveToolSurface: typeof resolvePiToolSurface; handleConfigureWarningsForSession: typeof handleConfigureWarningsForSession; shouldPrepareOnnxRuntime: typeof shouldPrepareOnnxRuntime; createVersionMismatchHandler: typeof createVersionMismatchHandler; }; export {}; //# sourceMappingURL=index.d.ts.map