Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { ipcRenderer } from 'electron'
import type { WorkspacePortAdvertisedUrlChangedEvent } from '../../shared/workspace-ports'
import type { PreloadApi } from '../api-types'
export const workspacePortsApi = {
scan: (args) => ipcRenderer.invoke('workspacePorts:scan', args),
kill: (args) => ipcRenderer.invoke('workspacePorts:kill', args),
probePage: (args) => ipcRenderer.invoke('workspacePorts:probePage', args),
onAdvertisedUrlChanged: (callback) => {
const listener = (
_event: Electron.IpcRendererEvent,
event: WorkspacePortAdvertisedUrlChangedEvent
): void => callback(event)
ipcRenderer.on('workspacePorts:advertised-url-changed', listener)
return () => ipcRenderer.removeListener('workspacePorts:advertised-url-changed', listener)
}
} satisfies PreloadApi['workspacePorts']