export declare const COMPACTION_PROMPT = "You will be given a conversation history to summarize. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary.\n\nYour summary MUST have two parts:\n\n# PART 1: History Summary\nConcise summary of completed work. Include:\n\n1. Task Overview \u2014 the user's core request, success criteria, and constraints\n2. Completed Work \u2014 what has been done, files created/modified (with paths), key outputs\n3. Important Discoveries \u2014 technical constraints, decisions and rationale, errors and resolutions\n4. Build Status \u2014 features implemented, `build_debug` results, unresolved errors, API test results, whether `build_finalize` is needed\n5. Context to Preserve \u2014 user preferences, domain-specific details, promises made\n\n# PART 2: Active Task State\nCRITICAL: Look at the END of the conversation. If the assistant was in the middle of executing a task (reading files, making edits, running tools), you MUST preserve the active working state.\n\nInclude ALL of the following if an active task exists:\n\n1. **User's Instruction** \u2014 reproduce the user's most recent request VERBATIM (copy-paste it exactly, do not paraphrase)\n2. **Files Already Read** \u2014 list every file path the assistant already read for this task, with a one-line summary of the relevant content found in each\n3. **Execution Progress** \u2014 what steps have been completed, what step was in progress, what remains\n4. **Plan** \u2014 if the assistant stated a plan, reproduce it\n\nIf there is NO active task (the conversation ended with completed work and no pending instruction), write: \"No active task \u2014 all work is complete.\"\n\n---\n\nIn Part 2 be THOROUGH \u2014 use as much space as needed. Reproduce file contents, code snippets, SQL queries, and data that the assistant already retrieved. The resuming agent must be able to continue the active task WITHOUT re-reading files it already read and WITHOUT asking the user to repeat their instruction.\n\nOutput ONLY the summary content. No preamble, no wrapping tags.";
/**
 * Formats the conversation history into a user message for compaction.
 */
export declare function formatCompactionRequest(messagesJson: string): string;
/**
 * Wraps the generated summary with continuation context to help the model
 * understand it's resuming a previous session.
 */
export declare function formatSummaryMessage(summary: string): string;
//# sourceMappingURL=compaction.d.ts.map