/** * Recognition / context helpers for the L6 MCP tools — faithful port of the * module-level functions in `core/l6_server.py` * (`prepare_recognition_context_from_store`, `_recognition_prompt_context`, * `get_deeper_context_for_prompt`, `compile_codex_turn_from_store`). * * Thin glue between `@getbourdon/federation` (L6Store) and * `@getbourdon/recognition` (recognitionFirst). No business logic of its own. */ import { L6Store } from "@getbourdon/federation"; type Dict = Record; /** * The L1 synopsis directory, mirroring `orchestrator.L1_DIR`: * `BOURDON_L1_DIR` overrides; default `~/.bourdon/l1` (BOURDON_HOME honored). */ export declare function resolveL1Dir(): string; /** * Redaction budget for the recognition string inside the prompt context * (`RECOGNITION_CONTEXT_CHARS`). The string carries a one-line gloss per named * anchor (up to three) since oracle 0.21.0, so the old 240-character cap would * cut it mid-sentence. */ export declare const RECOGNITION_CONTEXT_CHARS = 1200; /** * The turn-start fragment an agent prepends to its own prompt. * * The recognition string already says what each named anchor is and how current * that knowledge is, so it is quoted WHOLE (redacted line by line, bounded) * rather than restated as a "Matched entities:" list. The provenance line * underneath says which agents know each matched entity; that is the part * recognition leaves out on purpose. */ export declare function recognitionPromptContext(result: { recognition: string; matchedEntities: Dict[]; }): string; /** * Immediate recognition + a bounded prompt-context fragment from the store. The * recognition string is computed synchronously; `recognition_latency_us` is the * measured micro-latency (rounded to 1 dp, like Python). `hydration_scheduled` * mirrors Python's `hydration is not None` (true iff there were matches). */ export declare function prepareRecognitionContextFromStore(store: L6Store, prompt: string, accessLevel?: string, includePrivate?: boolean, hydrate?: boolean): Promise; /** * Deeper context for `prompt`, assembled locally and free — faithful port of * `get_deeper_context_for_prompt`. The local store is the source; an enabled * L2 backend still contributes when a deployment has one, appended rather * than depended on — retrieval that ships disabled must not be the only door. */ export declare function getDeeperContextForPrompt(store: L6Store, prompt: string, accessLevel?: string, includePrivate?: boolean): Promise; /** * The deferred stub the `mcp_snapshots` conformance fixture pins for * `compile_codex_turn`. Kept for back-compat: the generator special-cases this * tool's snapshot because its live output is environment-bound (resolves the live * cwd, git repo name + remote, repo-identity scoring), so it is NOT a portable * cross-impl parity surface. The real tool now returns a full brief at runtime * (matching the live Python server), so the snapshot test asserts structurally * rather than byte-equal to this stub. */ export declare const CODEX_TURN_DEFERRED: { readonly _status: "deferred"; readonly schema_version: "codex-turn-brief/v1"; readonly reason: string; }; /** * Return a Codex turn-scoped recognition brief using this server's store — * delegates to the P7 `@getbourdon/inference` turn compiler (faithful port of * `compile_codex_turn_from_store` in `core/l6_server.py`). The live Python server * returns the same full brief; only the conformance SNAPSHOT is the deferred stub. */ export declare function compileCodexTurnFromStore(store: L6Store, prompt: string, opts?: { cwd?: string | null; accessLevel?: string; maxItems?: number; maxChars?: number; }): Dict; export {};