@phren/cli
Version:
Knowledge layer for AI agents - CLI, MCP server, and data layer
25 lines (24 loc) • 1.48 kB
TypeScript
import type { DreamChange, DreamChangeset } from "./types.js";
import { type DreamDecision, type DreamEffectiveOutcome, type DreamMode, type DreamOutcome, type DreamRecord } from "./records.js";
export { countOutcomes, recordDream, readLastRun, writeLastRun, type DreamCounts, type DreamDrop, type DreamMode, type DreamOutcome } from "./records.js";
export interface ApplyOptions {
mode: DreamMode;
injectBudgetKB: number;
/** The model that dreamed, for provenance. */
model?: string;
expectedFindings?: Record<string, string>;
}
export declare const PAGE_PATH: RegExp;
export declare function findingVersions(phrenPath: string, project: string): Record<string, string>;
/** The review line a person reads for one proposed change. add_finding is just the finding, so approving it adds it. */
export declare function proposalText(change: DreamChange): string;
/** Apply or propose every change in order. One change failing never stops the rest. */
export declare function applyChangeset(phrenPath: string, changeset: DreamChangeset, options: ApplyOptions): Promise<DreamOutcome[]>;
/** Apply, reject or resolve selected zero-based indices from a stored run. */
export declare function applyDreamProposals(phrenPath: string, project: string, runId: string, only?: number[], decision?: {
reject?: boolean;
resolve?: DreamDecision["outcome"];
reason?: string;
}): Promise<Omit<DreamRecord, "outcomes"> & {
outcomes: DreamEffectiveOutcome[];
}>;