/** * Classic-parity source material for /compact (and auto-compact). * * Builds a structured plain-text record of the visual transcript so the * summarizer sees user prompts, tools (with outputs), assistant answers, and * prior compacted memory — not a sparse semantic export that drops tool bodies. * * When a prior `compacted` card exists, only that card and everything after it * are included (the memory already covers earlier turns). */ import type { ToolCallId } from "../../app/events/app-event.js"; import { type TranscriptState } from "./transcript-types.js"; export type ToolOutputLookup = (toolCallId: ToolCallId) => string; /** * Serialize the live v2 transcript for the compaction summarizer. * Prefer this over raw semantic export so tool outputs and prior memory land * in the summary prompt. */ export declare function serializeTranscriptForCompaction(state: TranscriptState, toolOutput?: ToolOutputLookup): string; /** * Merge visual session material with older model-history turns so /compact * after /history (+ optional new prompts) always sees the full picture. */ export declare function mergeCompactionSourceMaterial(sessionTranscript: string | undefined, olderModelTurns: string): string;