UNPKG

@phren/cli

Version:

Knowledge layer for AI agents - CLI, MCP server, and data layer

54 lines (53 loc) • 2.28 kB
/** * The dreaming eval's fixture: a small store and synthetic transcripts that * contain exactly the situations a dream should handle. * * 1. A finding contradicted by a later transcript (the dev server moved off port 3000). * 2. Two findings that say the same thing (migrate before tests). * 3. A decision stated in a transcript and never saved (Postgres advisory locks * instead of Redis for the rate limiter). * 4. Truths over the injected budget, some recently cited and some stale. * plus a correct finding nothing should touch (the control). * * Transcripts are written where phren's readers look for them under `home`: * a Claude Code session (`.claude/projects/<cwd>/<id>.jsonl`) and a Codex * rollout (`.codex/sessions/YYYY/MM/DD/rollout-*.jsonl`), both with the * project's checkout as their cwd. */ export declare const EVAL_PROJECT = "lantern"; /** Fixed clock for the fixture; transcripts fall inside the default 24 h lookback from here. */ export declare const EVAL_NOW: Date; export declare const EVAL_BUDGET_KB = 8; export declare const FIDS: { readonly contradicted: "a1000001"; readonly dupA: "a1000002"; readonly dupB: "a1000003"; readonly control: "a1000004"; }; export declare const CLAUDE_SESSION = "5f0c2a7e-1b7d-4c55-9a52-0d9a6b3e7c11"; export declare const CODEX_SESSION = "0199a3c4-7d10-7b2e-9f61-2c8d4e5a6b70"; /** Phrases the scripted model and the scorer key on. */ export declare const FACTS: { newPort: string; decisionKeyword: string; decisionPattern: RegExp; decisionTopicPattern: RegExp; }; export interface EvalFixture { root: string; /** The phren store (PHREN_PATH). */ store: string; /** HOME for the run: where the transcripts live. */ home: string; /** The project's checkout (sourcePath, and the transcripts' cwd). */ repo: string; project: string; now: Date; budgetKB: number; /** Truths nobody has used in months: the expected demotions. */ staleTruths: string[]; /** Truths cited in the last week: demoting them is a mistake. */ freshTruths: string[]; } /** Builds the fixture under `root` (an empty directory the caller owns and removes). */ export declare function buildEvalFixture(root: string, now?: Date): EvalFixture;