/** * [WHO]: readHistory provides bounded active-branch listing, searching, and original text retrieval * [FROM]: Depends on the public session entry type contract * [TO]: Consumed by context-management tools and regression tests * [HERE]: extensions/builtin/context-management/history.ts - on-demand evidence retrieval */ import type { SessionEntry } from "../../../session.js"; export interface HistoryQuery { action: "list" | "search" | "read" | "windows"; query?: string; entry_id?: string; offset?: number; limit?: number; } /** Only visible conversation content; never replay hidden reasoning or executable objects. */ export declare function entryText(entry: SessionEntry): string; export declare function readHistory(branch: SessionEntry[], input: HistoryQuery): unknown;