import type { Plugin } from 'vite'; export interface CdecliInteractAgentOptions { /** Route the in-browser editor POSTs the diff to. Default: `/__cdecli/interact-agent`. */ route?: string; /** Binary to invoke. Default: `cdecli`. */ bin?: string; /** Extra args appended after `interact-agent -m `. Default: `['--no-tui']`. */ extraArgs?: string[]; } /** * Dev-only bridge that lets the in-browser visual editor's "Send to AI" button run * `cdecli interact-agent -m ""` on the same machine. * * Browser JS can't spawn a process, so the editor POSTs the formatted diff to this * middleware (hosted by the Vite dev server, which is plain Node). It runs cdecli, * waits for it to finish, streams cdecli's output to the terminal running vite, and * replies to the button with a simple `{ ok: true }` or `{ ok: false, error }`. * * Add to `vite.config.ts`: * import { cdecliInteractAgent } from '@adminide-stack/vite-visualeditor/vite-plugin'; * plugins: [cdecliInteractAgent(), ...] */ export declare function cdecliInteractAgent(options?: CdecliInteractAgentOptions): Plugin; //# sourceMappingURL=cdecliInteractAgent.d.ts.map