Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
// SPDX-License-Identifier: FSL-1.1-MIT
// Copyright (c) 2026 Cua AI, Inc.
// The methods this host answers: the SwiftUI host's (`WebUIBridge.methods`,
// in its order, which `app.info` lists), plus what only a host that draws
// video in the page answers (`ELECTRON_HOST_METHODS` in the web bridge's
// webkit-protocol.ts). `test/bridge-registry.test.ts` checks this list
// against the Swift source, the web contract and the registry.
export const METHODS = [
"app.info",
"session.get", "session.signIn", "session.signOut",
"onboarding.get", "onboarding.complete", "onboarding.reset",
"spaces.list", "spaces.open",
"spaces.createOptions", "spaces.create",
"spaces.setPower", "spaces.delete", "spaces.rename", "spaces.deleteMany", "spaces.leave", "spaces.cancelCreate",
"network.get", "network.set", "network.log", "network.ackNotice", "spaces.setAccess",
"spaces.tree", "children.set", "budget.get", "budget.set", "services.list", "services.control",
"machines.list", "host.status",
"agents.list", "agents.runs", "agents.events", "agents.pause", "agents.resume",
"agents.setup", "agents.configure", "agents.signIn",
"agents.status", "agents.connect", "agents.disconnect", "agents.recentThreads", "agents.threadHistory", "agents.signInStart", "agents.signInWait", "agents.start", "agents.message",
"agents.detail", "agents.readFile", "agents.restoreFile", "agents.addRoutine", "agents.setRoutine",
"agents.removeRoutine", "agents.allowComputer", "agents.revokeComputer",
"agentKeys.list", "agentKeys.check", "agentKeys.set", "agentKeys.remove", "agentKeys.use", "agentKeys.rename", "agentKeys.shell", "agentKeys.fromShell",
"github.status", "github.rescan", "github.use", "github.enable",
"spaces.add", "clouds.status", "clouds.test", "clouds.connect", "clouds.disconnect", "clouds.approve",
"teleport.catalog", "teleport.entryForPath", "teleport.windows", "teleport.remoteWindows",
"teleport.icon", "teleport.thumbnail", "teleport.plan", "teleport.run", "teleport.sites",
"teleport.readiness", "teleport.remembered", "teleport.streamWindow", "sharing.list", "sharing.share", "sharing.unshare",
"sharing.removals", "sharing.ackRemovals",
"volume.overview", "volume.storage", "volume.storageSet", "volume.mount", "volume.unmount",
"volume.approve", "volume.deny", "volume.revoke", "volume.resolve", "volume.reveal",
"agents.setupDriver",
"about.get", "about.set", "about.checkNow", "update.get", "update.install", "loginItem.get", "loginItem.set", "loginItem.openSettings",
"devices.get", "devices.enroll", "devices.checkEnrolled", "devices.approve", "devices.rename",
"devices.revoke", "devices.confirmMachine", "devices.createPairingCode", "devices.pairingCodes",
"devices.revokePairingCode", "teams.list", "storage.get", "storage.run",
"notifications.list", "notifications.markAllRead", "notifications.markRead",
"telemetry.track", "telemetry.linkNotice", "telemetry.acknowledgeLinkNotice", "crashReporting.config", "spaces.usage", "spaces.windows", "stream.pip",
"spaces.thumbnail",
"spaces.chooseFiles", "spaces.droppedFiles", "spaces.sendFiles",
"host.setUp", "host.joinWithCode", "host.action", "host.limits", "host.openSettings",
"settings.get", "settings.choose", "settings.update",
"runtimes.check", "runtimes.browse", "repoCache.get", "repoCache.set", "repoCache.clear",
"keyvault.get", "keyvault.lock", "keyvault.unlock",
"keyvault.unlockVault", "keyvault.setup", "keyvault.setDisabled",
"keyvault.approve", "keyvault.deny", "keyvault.revokeGrant",
"keyvault.showItems", "keyvault.delete", "keyvault.run", "keyvault.dismiss",
"window.setBackgroundColor", "window.setDragRegions", "window.setDropTargets",
"startup.get", "startup.act",
"relay.usage",
"nudges.pending", "nudges.answer",
"resources.get",
"machines.rename", "machines.remove", "machines.checkHealth",
"spaces.settings", "spaces.setSettings", "spaces.resolveDefault",
"checklist.get", "checklist.send",
"links.list", "links.create", "links.stop", "links.approve", "links.deny",
"shares.settings.get", "shares.settings.set", "shares.edge.remove",
"cli.plan", "cli.install",
"ci.overview", "ci.connect", "ci.connectToken", "ci.connectCancel", "ci.repositories", "ci.goal", "ci.log",
"thread.read", "thread.post", "thread.members", "thread.setRights",
"thread.agentAdd", "thread.agentRemove",
"thread.joinCodeCreate", "thread.joinCodeList", "thread.joinCodeCancel", "thread.settings",
"driver.status", "driver.list", "driver.config", "driver.setConfig", "driver.test", "driver.pause",
"driver.setup", "driver.setApp", "driver.permissions",
] as const;
/** A live desktop's media ticket for the page's WebCodecs player,
* presence over the page's video (the SwiftUI app draws it natively), and
* New Space's runtime fix on Windows ("Install Docker Desktop"). */
export const ELECTRON_METHODS = ["spaces.openStream", "presence.join", "presence.publish", "presence.leave", "spaces.fixRuntime"] as const;
export type Method = (typeof METHODS)[number] | (typeof ELECTRON_METHODS)[number];