/** * OpenInEditorMenu * * One-button picker that opens a Vibe in either: * - the browser-hosted code-server (uses the shared useBrowserEditorLauncher flow) * - the user's local IDE via OS deep-link (vscode://, idea://, ...) * - the agent's host environment via POST /api/editor/open (terminal / * no-protocol IDEs like vim, subl, fleet, neovide) * * Resolves the effective IDE command from the user's saved preferences: * vibeIdeOverrides[vibeId] → preferredIdeCommand → 'code' * * Every action is a real Radix menu item (or submenu item) so the full * keyboard pattern — arrows, Enter, Escape — reaches deep-link, agent-spawn * and set-default; nothing is hidden behind hover-only inline buttons. */ export interface OpenInEditorMenuProps { vibeId: string; workspacePath: string | null | undefined; preferredIdeCommand: string | null | undefined; vibeIdeOverrides: Record | null | undefined; /** * F4 Wave B: the deprecated `agentApiKey` direct-browser-fetch path is * gone. All editor open / code-server lifecycle calls now route through * the svc-side `agentEditorOpen` / `agentCodeServer*` proxy resolvers. * `tunnelUrl` is kept only as a reachability signal for the dropdown. */ agentId: string | null; tunnelUrl: string | null; profile: string; browserEditorEnabled?: boolean; onSetDefaultForVibe?: (command: string) => Promise | void; className?: string; } export declare function OpenInEditorMenu({ vibeId, workspacePath, preferredIdeCommand, vibeIdeOverrides, agentId, tunnelUrl, profile, browserEditorEnabled, onSetDefaultForVibe, className, }: OpenInEditorMenuProps): import('react').JSX.Element;