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.

329 B
Raw Blame
// docs: test="docs" prelude="spacesd,spacesd-vars"
import { CuaError, embedded } from '@trycua/cua';

const sb = await embedded().sandboxes().connectUrl(URL, 'wrong-token', undefined);
try {
  await sb.spacesd(5000);
} catch (e) {
  if (!CuaError.Unauthenticated.instanceOf(e)) throw e;
  console.log('rejected:', e.message);
}