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
fix(spaces): typecheck the Electron app without the web UI's node_modules (CUA-3232) (#6428)
injaneity12ceffdaff45
diff --git a/apps/cua-spaces-desktop/package.json b/apps/cua-spaces-desktop/package.jsonindex a16f2b492f..b125e7f61b 100644--- a/apps/cua-spaces-desktop/package.json+++ b/apps/cua-spaces-desktop/package.json@@ -41,6 +41,7 @@"sax": "1.6.1","tsdown": "0.23.0","typescript": "^5.9.0",+ "vite": "8.3.2","vitest": "5.0.3"}}diff --git a/apps/cua-spaces-desktop/pnpm-lock.yaml b/apps/cua-spaces-desktop/pnpm-lock.yamlindex 965109d6bd..ff9d54a618 100644--- a/apps/cua-spaces-desktop/pnpm-lock.yaml+++ b/apps/cua-spaces-desktop/pnpm-lock.yaml@@ -42,6 +42,9 @@ importers:typescript:specifier: ^5.9.0version: 5.9.3+ vite:+ specifier: 8.3.2+ version: 8.3.2(@types/[email protected])([email protected])vitest:specifier: 5.0.3version: 5.0.3(@opentelemetry/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected]))diff --git a/apps/cua-spaces-desktop/tsconfig.json b/apps/cua-spaces-desktop/tsconfig.jsonindex 088e1fd956..52319d6684 100644--- a/apps/cua-spaces-desktop/tsconfig.json+++ b/apps/cua-spaces-desktop/tsconfig.json@@ -4,7 +4,7 @@"module": "ESNext","moduleResolution": "Bundler","lib": ["ES2023", "DOM"],- "types": ["node"],+ "types": ["node", "vite/client"],"strict": true,"noUncheckedIndexedAccess": true,"skipLibCheck": true,diff --git a/apps/cua-spaces-web/src/bridge/DEPENDENCIES.md b/apps/cua-spaces-web/src/bridge/DEPENDENCIES.mdindex c0e9a83616..5ab415e3ec 100644--- a/apps/cua-spaces-web/src/bridge/DEPENDENCIES.md+++ b/apps/cua-spaces-web/src/bridge/DEPENDENCIES.md@@ -37,8 +37,11 @@ Homebrew `rust` comes earlier.## Config notes-- `tsconfig.json` must include `src/bridge/**` with `"types": ["vite/client", "node"]` (or keep the- `/// <reference types="vite/client" />` in `core/index.ts`). The bridge+- `tsconfig.json` must include `src/bridge/**` with `"types": ["vite/client", "node"]`.+ Any other package that typechecks `core/index.ts` (the Electron app's+ tests do) lists `vite/client` in its own `types` and has `vite` as its own+ devDependency: a triple-slash reference would resolve from this package's+ `node_modules`, which that package's CI does not install. The bridgecompiles cleanly under `strict` and `noUncheckedIndexedAccess`.- Vite needs no special config. `wasm-bindgen --target web` loads`core_bg.wasm` through `new URL(..., import.meta.url)`, which Vite emitsdiff --git a/apps/cua-spaces-web/src/bridge/core/index.ts b/apps/cua-spaces-web/src/bridge/core/index.tsindex 8a58e0e61b..63b40b59b3 100644--- a/apps/cua-spaces-web/src/bridge/core/index.ts+++ b/apps/cua-spaces-web/src/bridge/core/index.ts@@ -1,8 +1,6 @@// SPDX-License-Identifier: FSL-1.1-MIT// Copyright (c) 2026 Cua AI, Inc.-/// <reference types="vite/client" />-/*** The Cua Spaces app core (libs/cua/crates/cua-spaces-app-core) in the* page, as wasm. Same crate and shim as the Tauri app