/** * [WHO]: Provides SAL system-prompt context injection and sidecar turn-record persistence * [FROM]: Depends on node fs/path, SAL anchors, terrain snapshots, and SalRuntime state * [TO]: Consumed by extensions/builtin/sal/index.ts during before_agent_start and agent_end hooks * [HERE]: extensions/builtin/sal/sal-context.ts - context formatting and local sidecar persistence for Structural Anchor Localization */ import type { AnchorResolution } from "./anchors.js"; import type { TerrainSnapshot } from "./terrain.js"; import type { SalRuntime } from "./sal-runtime.js"; export declare function buildContextInjection(resolution: AnchorResolution, snapshot: TerrainSnapshot): string | undefined; export declare function persistTurnRecord(runtime: SalRuntime, taskRes: AnchorResolution | undefined, actionRes: AnchorResolution): void;