import type { VSCodeAPI } from '@openchamber/ui/lib/api/types'; import { executeVSCodeCommand, openVSCodeExternalUrl } from './bridge'; export const createVSCodeActionsAPI = (): VSCodeAPI => ({ async executeCommand(command: string, ...args: unknown[]): Promise { const result = await executeVSCodeCommand(command, args); return result.result; }, async openAgentManager(): Promise { await executeVSCodeCommand('openchamber.openAgentManager'); }, async openExternalUrl(url: string): Promise { await openVSCodeExternalUrl(url); }, });