/** * Peek — post-hoc inspection of a run's intermediate phase outputs. * * The runtime's context-isolation contract only returns the FINAL phase output * to the host conversation; every intermediate transcript stays in the * persisted RunState. Peek is the explicit, human-invoked escape hatch for * debugging: read one phase's output from a stored run, hard-truncated so a * peek can never flood the caller's context window. * * Exposed as `/tf peek ` (pi) and `taskflow_peek` (codex MCP). * Read-only: never mutates run state. */ /** Default hard cap on peeked text (chars). */ export declare const PEEK_DEFAULT_LIMIT = 4000; /** Ceiling a caller may raise the limit to. */ export declare const PEEK_MAX_LIMIT = 32000; export interface PeekOptions { /** Phase to inspect. Omit to get a phase listing for the run. */ phaseId?: string; /** Return the parsed JSON (`ps.json`) instead of the text output. */ json?: boolean; /** For map/parallel phases: extract the 1-based n-th item's section. */ item?: number; /** Truncation cap in chars (default PEEK_DEFAULT_LIMIT, max PEEK_MAX_LIMIT). */ limit?: number; } export interface PeekResult { ok: boolean; /** Human-readable peeked content (or the error / listing). */ text: string; truncated?: boolean; } /** * Peek at a stored run. Pure read: loads the persisted RunState and formats * the requested slice, hard-truncated. Never throws on missing data — every * miss returns `{ok: false}` with an actionable message. */ export declare function peekRun(cwd: string, runId: string, opts?: PeekOptions): PeekResult; //# sourceMappingURL=peek.d.ts.map