/** * prepare_context Tool * * Bridge between global memory and agents that can't call recall directly. * The lead agent calls this to generate a portable memory payload that * gets injected into sub-agent prompts via the Task tool. * * Three format modes: * full — Unlimited, rich markdown (same as recall output) * compact — ~500 tokens, severity + title + one-line per scar * gate — ~100 tokens, only blocking scars, pass/fail * * No side effects: no variant assignment, no session state mutation, * no surfaced scar tracking. * * Performance target: <500ms (same pipeline as search) */ import type { Project, PerformanceData } from "../types/index.js"; export type PrepareContextFormat = "full" | "compact" | "gate"; export interface PrepareContextParams { plan: string; format: PrepareContextFormat; max_tokens?: number; agent_role?: string; project?: Project; } export interface PrepareContextResult { memory_payload: string; display?: string; scars_included: number; blocking_scars: number; format: string; token_estimate: number; performance: PerformanceData; } export declare function prepareContext(params: PrepareContextParams): Promise; //# sourceMappingURL=prepare-context.d.ts.map