Skip to content

Commit 1d45930

Browse files
authored
chore(cua-computer): upgrade CUA Driver to 0.19.3 (#122191)
* chore(cua-computer): upgrade CUA Driver to 0.19.3 * test(cua-computer): verify CUA Driver enum contract
1 parent 7eaf2fc commit 1d45930

7 files changed

Lines changed: 60 additions & 37 deletions

File tree

‎docs/nodes/computer-use.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The agent emits one uniform command, `computer.act`; it cannot tell how a node f
1616
- A paired, connected node advertising both `computer.act` and `screen.snapshot`, with `screen.snapshot` returning `displayFrameId`.
1717
- **macOS fulfiller:** app setting **Allow Computer Control** enabled. It defaults on; an explicit off choice stays off.
1818
- **macOS fulfiller:** **Accessibility** and Event Posting access granted to OpenClaw (for pointer/keyboard injection), plus **Screen Recording** permission (for `screen.snapshot`).
19-
- **Windows/Linux fulfiller:** bundled `cua-computer` plugin enabled. Its package includes the pinned CUA Driver SDK 0.14.1 runtime; no `cua-driver` executable, daemon, or MCP server is configured.
19+
- **Windows/Linux fulfiller:** bundled `cua-computer` plugin enabled. Its package includes the pinned CUA Driver SDK 0.19.3 runtime; no `cua-driver` executable, daemon, or MCP server is configured.
2020
- The pairing update that includes `computer.act` approved on the gateway.
2121
- A vision-capable agent model.
2222
- Tool policy that exposes `computer`. The default `coding` profile does not. Add `computer` to `tools.alsoAllow`; sandboxed agents also need it in `tools.sandbox.tools.alsoAllow`.
@@ -37,7 +37,7 @@ Screenshots are kept **model-only**: they are never auto-delivered to the chat c
3737

3838
## Windows and Linux (experimental, via CUA Driver SDK)
3939

40-
The bundled `cua-computer` plugin provides an experimental fulfiller for Windows and Linux node hosts. It is disabled by default and uses the pinned CUA Driver SDK 0.14.1 contract directly:
40+
The bundled `cua-computer` plugin provides an experimental fulfiller for Windows and Linux node hosts. It is disabled by default and uses the pinned CUA Driver SDK 0.19.3 contract directly:
4141

4242
1. Enable the plugin:
4343

‎extensions/cua-computer/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Experimental CUA Driver SDK computer control for Windows and Linux node hosts",
55
"type": "module",
66
"dependencies": {
7-
"@trycua/cua-driver": "0.14.1",
7+
"@trycua/cua-driver": "0.19.3",
88
"rastermill": "0.3.1",
99
"zod": "4.4.3"
1010
},

‎extensions/cua-computer/src/driver-client.test.ts‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const sdk = {
2323
createTrustedSession: mocks.createTrustedSession,
2424
};
2525

26-
import { createCuaDriver } from "./driver-client.js";
26+
import { ClickButton, createCuaDriver, ScrollDirection } from "./driver-client.js";
2727

2828
const authorization = {
2929
allowedModes: ["unrestricted"],
@@ -48,6 +48,22 @@ describe("CUA Driver direct session", () => {
4848
});
4949
});
5050

51+
it("matches the installed CUA Driver desktop input enum contract", async () => {
52+
const driverSdk = await import("@trycua/cua-driver");
53+
54+
expect(ClickButton).toEqual({
55+
Left: driverSdk.ClickButton.Left,
56+
Right: driverSdk.ClickButton.Right,
57+
Middle: driverSdk.ClickButton.Middle,
58+
});
59+
expect(ScrollDirection).toEqual({
60+
Up: driverSdk.ScrollDirection.Up,
61+
Down: driverSdk.ScrollDirection.Down,
62+
Left: driverSdk.ScrollDirection.Left,
63+
Right: driverSdk.ScrollDirection.Right,
64+
});
65+
});
66+
5167
it("uses configured creation and one fixed trusted OpenClaw session", async () => {
5268
const driver = createCuaDriver({ loadSdk: () => sdk as never });
5369

‎extensions/cua-computer/src/driver-client.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type CuaDriverSdk = Pick<
1616

1717
export type CuaToolResult = import("@trycua/cua-driver").ToolResult;
1818

19-
// These numeric values are part of the pinned 0.14.1 SDK contract. Keeping
19+
// These numeric values are part of the pinned 0.19.3 SDK contract. Keeping
2020
// them local avoids loading the native library while OpenClaw is only
2121
// registering the bundled plugin.
2222
export const ClickButton = {

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1996,7 +1996,7 @@
19961996
"@openclaw/fs-safe": "0.5.5",
19971997
"@openclaw/proxyline": "0.3.4",
19981998
"@silvia-odwyer/photon-node": "0.3.4",
1999-
"@trycua/cua-driver": "0.14.1",
1999+
"@trycua/cua-driver": "0.19.3",
20002000
"acorn": "8.17.0",
20012001
"chalk": "6.0.0",
20022002
"chokidar": "5.0.0",

‎pnpm-lock.yaml‎

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ minimumReleaseAgeExclude:
6363
- "@microsoft/[email protected]"
6464
- "@microsoft/[email protected]"
6565
- "@modelcontextprotocol/[email protected]"
66+
- "@trycua/[email protected]"
67+
- "@trycua/[email protected]"
68+
- "@trycua/[email protected]"
69+
- "@trycua/[email protected]"
70+
- "@trycua/[email protected]"
71+
- "@trycua/[email protected]"
72+
- "@trycua/[email protected]"
6673
- "@openai/codex"
6774
- "@openai/codex-*"
6875
- "@pierre/[email protected]"

0 commit comments

Comments
 (0)