@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
18 lines (17 loc) • 894 B
TypeScript
import { type PhrenResult } from "../shared.js";
export interface Truth {
text: string;
added?: string;
line: string;
start: number;
end: number;
ambiguous: boolean;
}
export declare function temporaryTruthMarker(text: string): string | undefined;
/** A stamped line ends an entry. Legacy entries can continue on indented lines. */
export declare function parseTruthEntries(content: string): Truth[];
/** Remove the given spans in file order and preserve all surrounding bytes. */
export declare function withoutTruthEntries(content: string, entries: readonly Truth[]): string;
export declare function readTruthEntries(file: string): Truth[];
export declare function upsertCanonical(phrenPath: string, project: string, memory: string): PhrenResult<string>;
export declare function unpinCanonical(phrenPath: string, project: string, memory: string): PhrenResult<string>;