/** * Bounded knowledge summaries for orientation responses. * * Code placed in `packages/core/` per Package-Boundary Check — verified * against AGENTS.md. Full diagnostics remain available through doctor knowledge. */ import type { KnowledgeCoverage, KnowledgeHealth, KnowledgeHealthSummary, KnowledgeReplacement } from '@cleocode/contracts'; /** * Preserve coverage status and provenance without letting per-file reasons consume orientation. * @param coverage - Complete read-only assessment. * @returns A bounded sample with exact original counts and a detailed follow-up command. * @remarks The complete assessment remains unchanged; status and provenance are preserved. * @example * ```ts * const summary = compactKnowledgeCoverage(coverage); * ``` */ export declare function compactKnowledgeCoverage(coverage: KnowledgeCoverage): KnowledgeCoverage; /** * Keep independent diagnostic states visible while deferring the repair matrix to its query. * @param health - Complete assessment produced by bounded maintenance. * @param coverageRef - JSON Pointer (relative to the envelope `data`) of the * coverage object the same envelope already carries, e.g. `/coverage`. * @returns Compact health retaining the real finding count, never an implied empty healthy result. * @remarks State counts distinguish pending work from an assessed empty matrix. * Coverage is not repeated: the envelope emits it once, at `coverageRef` * (T12522). `cleo doctor knowledge` returns the full assessment. * @example * ```ts * const envelope = { * coverage: compactKnowledgeCoverage(health.coverage), * knowledgeHealth: compactKnowledgeHealth(health, '/coverage'), * }; * ``` */ export declare function compactKnowledgeHealth(health: KnowledgeHealth, coverageRef: string): KnowledgeHealthSummary; /** * Keep sourced replacement identities visible without repeating potentially large source excerpts. * @param corrections - Verified replacements read from immutable repair receipts. * @returns Bounded presentation copies; stored receipts and source evidence remain unchanged. * @remarks Source identifiers and hashes remain available; full excerpts stay in canonical receipts. * @example * ```ts * const visible = compactKnowledgeCorrections(corrections); * ``` */ export declare function compactKnowledgeCorrections(corrections: KnowledgeReplacement[]): KnowledgeReplacement[]; //# sourceMappingURL=knowledge-summary.d.ts.map