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 linting + format issues too

Sarina Li003e417c894c
diff --git a/blog/cloud-windows-ga-macos-preview.md b/blog/cloud-windows-ga-macos-preview.md
index ff14d9a9be..7f778daf97 100644
--- a/blog/cloud-windows-ga-macos-preview.md
+++ b/blog/cloud-windows-ga-macos-preview.md
@@ -11,15 +11,16 @@ Today the story changes - we're announcing general availability of **Cloud Windo
Cloud Windows Sandboxes are now generally available. You get a full Windows 11 desktop in your browser with Edge and Python pre-installed, working seamlessly with all our [Computer-Use libraries](https://github.com/trycua/cua) for RPA, UI automation, code execution, and agent development.
**What's new with this release:**
+
- Hot-start under 1 second
- Direct noVNC over HTTPS under our sandbox.cua.ai domain
- 3 sandbox sizes available:
-| Size | CPU | RAM | Storage |
-|------|-----|-----|---------|
-| Small | 2 cores | 8 GB | 128 GB SSD |
+| Size | CPU | RAM | Storage |
+| ------ | ------- | ----- | ---------- |
+| Small | 2 cores | 8 GB | 128 GB SSD |
| Medium | 4 cores | 16 GB | 128 GB SSD |
-| Large | 8 cores | 32 GB | 256 GB SSD |
+| Large | 8 cores | 32 GB | 256 GB SSD |
<div align="center">
<video src="https://github.com/user-attachments/assets/8ab07646-6018-4128-87ce-53180cfea696" width="600" controls></video>
diff --git a/docs/content/docs/computer-sdk/meta.json b/docs/content/docs/computer-sdk/meta.json
index f2c124e75a..e3b9c7e677 100644
--- a/docs/content/docs/computer-sdk/meta.json
+++ b/docs/content/docs/computer-sdk/meta.json
@@ -1,5 +1,12 @@
{
"title": "Computer SDK",
"description": "Build computer-using agents with the Computer SDK",
- "pages": ["computers", "commands", "tracing-api", "sandboxed-python", "custom-computer-handlers", "computer-ui"]
+ "pages": [
+ "computers",
+ "commands",
+ "tracing-api",
+ "sandboxed-python",
+ "custom-computer-handlers",
+ "computer-ui"
+ ]
}
diff --git a/libs/typescript/cua-cli/src/commands/auth.ts b/libs/typescript/cua-cli/src/commands/auth.ts
index 2c8decb342..b7fc6eafa4 100644
--- a/libs/typescript/cua-cli/src/commands/auth.ts
+++ b/libs/typescript/cua-cli/src/commands/auth.ts
@@ -50,7 +50,12 @@ export function registerAuthCommands(y: Argv) {
() => {},
envHandler
)
- .command('logout', 'Clear stored API credentials from this machine', () => {}, logoutHandler)
+ .command(
+ 'logout',
+ 'Clear stored API credentials from this machine',
+ () => {},
+ logoutHandler
+ )
.demandCommand(1, 'You must provide an auth command');
},
() => {}
diff --git a/libs/typescript/cua-cli/src/commands/sandbox.ts b/libs/typescript/cua-cli/src/commands/sandbox.ts
index b91c3c1e6d..a1aaaae46b 100644
--- a/libs/typescript/cua-cli/src/commands/sandbox.ts
+++ b/libs/typescript/cua-cli/src/commands/sandbox.ts
@@ -94,9 +94,7 @@ const deleteHandler = async (argv: Record<string, unknown>) => {
const body = (await res.json().catch(() => ({}))) as {
status?: string;
};
- console.log(
- `Sandbox deletion initiated: ${body.status ?? 'deleting'}`
- );
+ console.log(`Sandbox deletion initiated: ${body.status ?? 'deleting'}`);
return;
}
@@ -273,31 +271,36 @@ export function registerSandboxCommands(y: Argv) {
.command(
'delete <name>',
'Permanently delete a sandbox and all its data',
- (y) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ (y) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
deleteHandler
)
.command(
'start <name>',
'Start a stopped sandbox',
- (y) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ (y) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
startHandler
)
.command(
'stop <name>',
'Stop a running sandbox (data is preserved)',
- (y) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ (y) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
stopHandler
)
.command(
'restart <name>',
'Restart a sandbox (reboot the system)',
- (y) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ (y) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
restartHandler
)
.command(
['vnc <name>', 'open <name>'],
'Open remote desktop (VNC) connection in your browser',
- (y) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ (y) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
openHandler
)
.demandCommand(1, 'You must provide a sandbox command');
@@ -350,31 +353,36 @@ export function registerSandboxCommands(y: Argv) {
.command({
command: 'delete <name>',
describe: false as any, // Hide from help
- builder: (y: Argv) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ builder: (y: Argv) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
handler: deleteHandler,
} as any)
.command({
command: 'start <name>',
describe: false as any, // Hide from help
- builder: (y: Argv) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ builder: (y: Argv) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
handler: startHandler,
} as any)
.command({
command: 'stop <name>',
describe: false as any, // Hide from help
- builder: (y: Argv) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ builder: (y: Argv) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
handler: stopHandler,
} as any)
.command({
command: 'restart <name>',
describe: false as any, // Hide from help
- builder: (y: Argv) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ builder: (y: Argv) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
handler: restartHandler,
} as any)
.command({
command: ['vnc <name>', 'open <name>'],
describe: false as any, // Hide from help
- builder: (y: Argv) => y.positional('name', { type: 'string', describe: 'Sandbox name' }),
+ builder: (y: Argv) =>
+ y.positional('name', { type: 'string', describe: 'Sandbox name' }),
handler: openHandler,
} as any);
diff --git a/libs/typescript/cua-cli/src/util.ts b/libs/typescript/cua-cli/src/util.ts
index aa841cf517..36c6e0d61b 100644
--- a/libs/typescript/cua-cli/src/util.ts
+++ b/libs/typescript/cua-cli/src/util.ts
@@ -25,7 +25,10 @@ export type SandboxItem = {
host?: string;
};
-export function printSandboxList(items: SandboxItem[], showPasswords: boolean = false) {
+export function printSandboxList(
+ items: SandboxItem[],
+ showPasswords: boolean = false
+) {
const headers = showPasswords
? ['NAME', 'STATUS', 'PASSWORD', 'HOST']
: ['NAME', 'STATUS', 'HOST'];