/** * Cache prefix builder (§4.7, C5). * * Assembles prompts in stable-prefix → profile-suffix → stage-dynamic order * to maximize prompt cache hit rate across sagas and stages. */ import type { ProfileId } from '../coordinator/state.js'; import type { DoneCriterion } from '../coordinator/state.js'; import type { CollapsedEntry } from './context-collapse.js'; export interface PrefixConfig { stablePrefix: string; profileSuffix: string; stageDynamic: string; } /** * Build the cache-stable prompt assembly. * * [STABLE PREFIX, ~2000 tokens, shared across sagas and profiles] * [PROFILE SUFFIX, ~500 tokens, shared across sagas within same profile] * [STAGE DYNAMIC, changes every stage] */ export declare function assemblePrompt(config: PrefixConfig): string; /** * Build the stage-dynamic section for worker mode injection. */ export declare function buildStageDynamic(opts: { sagaId: string; stageId: string; stageTitle: string; stageGoal: string; doneCriteria: DoneCriterion[]; compactedHistory: CollapsedEntry[]; }): string; export declare function getProfileSuffix(profile: ProfileId): string; //# sourceMappingURL=prefix-builder.d.ts.map