/** * [WHO]: debugExtension - /debug command, before_agent_start hook injects diagnostic system prompt, agent_end cleanup, dispatched via sendUserMessage for streaming UX * [FROM]: Depends on core/extensions-host/types, @catui/tui, ./collectors * [TO]: Auto-loaded by builtin-extensions.ts as a default extension * [HERE]: extensions/builtin/debug/index.ts - system diagnostics with three-layer analysis through full agent loop */ import type { ExtensionAPI } from "../../../core/extensions-host/types.js"; export default function debugExtension(api: ExtensionAPI): Promise;