/** * pi-context-optimizer — Context-optimizer plan→review→execute→walkthrough loop for pi. * * Builds directly on pi's bundled `examples/extensions/plan-mode` reference * (same gate primitives: registerFlag/registerCommand/registerShortcut, * setActiveTools, tool_call blocking, before_agent_start context injection, * agent_end extraction, turn_end [DONE:n] tracking, appendEntry + session_start * resume). What it adds over plan-mode: * * - File-backed artifacts (plan.md / tasks.md / walkthrough.md / status.json) * - A REVIEW_PENDING hard gate with file-watch + slash-command approval * - Opening artifacts in VS Code via the pithings/pi-vscode bridge (or `code`) * - A `/grill` interactive-interview plan-drafting mode * - (phase 2) a Knowledge Item store * * The gate can run in two transports: * - pi-vscode terminal/Chat Participant: approval flips a file marker + a * slash command; NEVER relies on a TUI modal (the Chat path auto-cancels * ctx.ui.select — see pithings/pi-vscode src/chat.ts:120-125). * - Bare terminal: same, plus an optional ctx.ui.select prompt at agent_end. * * See /Users/admin/.pi/plans/review-2026-07-09/plan.md for the design doc. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export default function contextOptimizerExtension(pi: ExtensionAPI): void; //# sourceMappingURL=index.d.ts.map