From 003e417c894c1be83bd4c34ec1e9df46208de82a Mon Sep 17 00:00:00 2001 From: Sarina Li Date: Tue, 18 Nov 2025 10:04:23 -0500 Subject: [PATCH] fix linting + format issues too --- blog/cloud-windows-ga-macos-preview.md | 9 ++--- docs/content/docs/computer-sdk/meta.json | 9 ++++- libs/typescript/cua-cli/src/commands/auth.ts | 7 +++- .../cua-cli/src/commands/sandbox.ts | 34 ++++++++++++------- libs/typescript/cua-cli/src/util.ts | 5 ++- 5 files changed, 44 insertions(+), 20 deletions(-) diff --git a/blog/cloud-windows-ga-macos-preview.md b/blog/cloud-windows-ga-macos-preview.md index ff14d9a9b..7f778daf9 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 |
diff --git a/docs/content/docs/computer-sdk/meta.json b/docs/content/docs/computer-sdk/meta.json index f2c124e75..e3b9c7e67 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 2c8decb34..b7fc6eafa 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 b91c3c1e6..a1aaaae46 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) => { 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 ', '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 ', '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 ', '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 ', '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 ', 'open '], '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 ', 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 ', 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 ', 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 ', 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 ', 'open '], 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 aa841cf51..36c6e0d61 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'];