/** * ollama_code_map — fast structural summary of a repo (no-LLM, deterministic). * * Walks the caller's source_paths, classifies each file by extension, * inspects manifests (package.json / pyproject.toml / Cargo.toml / go.mod) * for framework hints, and surfaces likely entrypoints via simple filename + * manifest heuristics. * * Deterministic by design — the Instant tier LLM is NOT invoked. Frameworks * are detected from dependency/lock-file names; no model call is needed to * see "vitest" in package.json.devDependencies. Keeps the tool cheap enough * to run as a first pass in any onboarding loop. * * Accepts DIRECTORIES as well as individual files — directories are walked * recursively up to `max_files`. Skips obvious cruft (node_modules, dist, * target, .git, .venv) so a one-line `source_paths: ["."]` stays useful. */ import { z } from "zod"; import type { Envelope } from "../envelope.js"; import type { RunContext } from "../runContext.js"; export declare const codeMapSchema: z.ZodObject<{ source_paths: z.ZodArray; max_files: z.ZodOptional; }, z.core.$strip>; export type CodeMapInput = z.infer; export interface CodeMapResult { languages: Array<{ ext: string; file_count: number; }>; frameworks: string[]; entrypoints: Array<{ file: string; type: "cli" | "lib" | "web" | "test" | "config"; }>; build_commands: string[]; notable_files: string[]; total_files_scanned: number; max_files_hit: boolean; } export declare function handleCodeMap(input: CodeMapInput, ctx: RunContext): Promise>; //# sourceMappingURL=codeMap.d.ts.map