/** * Headless `ExtensionUIContext` for serve-mode sessions, extracted verbatim * from `agent-bridge.ts`. */ import type { ExtensionUIContext } from "../../sdk/coding-agent/index.js"; import type { ServerEvent } from "../wire.js"; /** * Create a minimal ExtensionUIContext that forwards `notify()` calls as * `agent_notification` wire events, and renders `confirm()` as a terminal- * native permission prompt on serve's stdout (the terminal `spectral serve` * runs in) so extensions like desktop-control can request real user approval * while the user chats via the web UI. A prompt also emits an * `agent_notification` ("Approval required in terminal: …") so web users know * to look at the terminal. Confirmations are serialized across sessions and * auto-deny on timeout (SPECTRAL_CONFIRM_TIMEOUT_MS, default 5 min) or when * stdin is not a TTY. All other interactive UI methods (select/input/custom/ * editor) remain no-ops resolving `undefined`. */ export declare function createHeadlessUIContext(emit: (event: ServerEvent) => void): ExtensionUIContext; //# sourceMappingURL=headless-ui.d.ts.map