Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix invalid syntax in cli.ts (#901)

ddupont8027b5d9adaf
diff --git a/libs/typescript/cua-cli/src/cli.ts b/libs/typescript/cua-cli/src/cli.ts
index b72ab8f55a..b26ccf7f04 100644
--- a/libs/typescript/cua-cli/src/cli.ts
+++ b/libs/typescript/cua-cli/src/cli.ts
@@ -119,12 +119,12 @@ export async function runCli() {
// Check if we're completing after a command that needs a sandbox name
if (args.length >= 2) {
- const lastCmd = args[args.length - 2];
+ const lastCmd = args[args.length - 2]!;
if (
needsSandboxName.includes(lastCmd) ||
(args.length >= 3 &&
args[0] === 'sb' &&
- needsSandboxName.includes(args[1]))
+ needsSandboxName.includes(args[1]!))
) {
return await getSandboxNames();
}