/** * Codebase Digest — generates .openlore/CODEBASE.md * * A compact, agent-readable Markdown summary of the codebase produced by * `openlore analyze`. Designed to be included in CLAUDE.md / .clinerules * so agents absorb architectural context passively at session start, without * needing to call any MCP tool. * * Content: * - Entry points (functions with no internal callers) * - Critical hubs (highest fan-in functions) * - Spec domains (if openspec/specs/ exists) * - Most coupled files (high in-degree in dependency graph) * - God functions / oversized orchestrators * - Layer violations (if any) */ import type { LLMContext } from './artifact-generator.js'; import type { DependencyGraphResult } from './dependency-graph.js'; interface DigestOptions { /** Absolute path to the project root */ rootPath: string; /** Absolute path to the .openlore/analysis/ output directory */ outputDir: string; /** Max entry points to list */ maxEntryPoints?: number; /** Max hub functions to list */ maxHubs?: number; /** Max god functions to list */ maxGodFunctions?: number; /** Max most-coupled files to list */ maxCoupledFiles?: number; } /** * Generate `.openlore/CODEBASE.md` from cached analysis artifacts. * * Non-fatal: logs a warning and returns false if generation fails. */ export declare function generateCodebaseDigest(llmContext: LLMContext, depGraph: DependencyGraphResult | null, opts: DigestOptions): Promise; export {}; //# sourceMappingURL=codebase-digest.d.ts.map