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
update CLI, remove redundant cua version
Dillon DuPont72425030340d
diff --git a/libs/typescript/cua-cli/src/cli.ts b/libs/typescript/cua-cli/src/cli.tsindex 70985c0f09..9c086379e3 100644--- a/libs/typescript/cua-cli/src/cli.ts+++ b/libs/typescript/cua-cli/src/cli.ts@@ -22,28 +22,34 @@ export async function runCli() {'\n' +'Documentation: https://docs.cua.ai/libraries/cua-cli/commands');- // version command- argv = argv.command(- 'version',- 'Show CUA CLI version',- (y) => y,- async () => {- try {- const home = process.env.HOME || process.env.USERPROFILE || '';- const path = `${home}/.cua/bin/.version`;- const version = await Bun.file(path).text();- const v = version.trim();- if (v) {- console.log(v);- } else {- console.log('unknown');- }- } catch {+ // Override the default --version behavior+ argv = argv.version(false).option('version', {+ alias: 'v',+ describe: 'Show CUA CLI version',+ type: 'boolean',+ global: false,+ });+ argv = registerAuthCommands(argv);+ argv = registerSandboxCommands(argv);++ // Check for version flag before command validation+ const args = process.argv.slice(2);+ if (args.includes('--version') || args.includes('-v')) {+ try {+ const home = process.env.HOME || process.env.USERPROFILE || '';+ const path = `${home}/.cua/bin/.version`;+ const version = await Bun.file(path).text();+ const v = version.trim();+ if (v) {+ console.log(v);+ } else {console.log('unknown');}+ } catch {+ console.log('unknown');}- );- argv = registerAuthCommands(argv);- argv = registerSandboxCommands(argv);+ process.exit(0);+ }+await argv.demandCommand(1).strict().help().parseAsync();}