Computer use for the Pi coding agent — Windows apps, browsers and desktops through native UI trees, screenshots and real input.
TypeScript accessibilityagent-toolsai-agentbrowser-automationcomputer-usecuadesktop-automationelectronpipi-coding-agentpi-extensionpi-packageplaywrighttypescriptui-automationvisionwebview2windowswindows-automationwsl
fix(runtime): ship merged Cua 0.38 Windows build4b547b54
Aleksandr Shpuntenkoe031bd121838
diff --git a/docs/bundled-runtime.md b/docs/bundled-runtime.mdindex 20d47ee..6ca5bd0 100644--- a/docs/bundled-runtime.md+++ b/docs/bundled-runtime.md@@ -1,6 +1,6 @@# Bundled CUA runtime-The npm package carries one native runtime: Cua Driver 0.38.0 for Windows x64, built from source `505d090e` of the [alexshpunt/cua](https://github.com/alexshpunt/cua) fork. [FORK.md](https://github.com/alexshpunt/cua/blob/pi-computer-use/FORK.md) lists the fork's changes. The `windows-desktop` profile needs no separate driver configuration:+The npm package carries one native runtime: Cua Driver 0.38.0 for Windows x64, built from source `4b547b54` of the [alexshpunt/cua](https://github.com/alexshpunt/cua) fork. [FORK.md](https://github.com/alexshpunt/cua/blob/pi-computer-use/FORK.md) lists the fork's changes. The `windows-desktop` profile needs no separate driver configuration:```shpi install npm:pi-agent-computer-use@@ -10,7 +10,7 @@ An update installs a new extension version with its exact runtime. Computer use## Where the files come from-The files are published as the fork release [`pi-runtime-0.38.0-505d090e`](https://github.com/alexshpunt/cua/releases/tag/pi-runtime-0.38.0-505d090e): `cua-driver.exe`, `cua-driver-uia.exe`, `cua-cursor-theme.exe`, `LICENSE.md` and `THIRD_PARTY_NOTICES.md`. They were cross-built with Rust 1.97.1, cargo-xwin 0.23.1 and LLVM 18, with a static CRT and canonical Windows manifest resources. They are not copies of a GitHub Actions artifact.+The files are published as the fork release [`pi-runtime-0.38.0-4b547b54`](https://github.com/alexshpunt/cua/releases/tag/pi-runtime-0.38.0-4b547b54): `cua-driver.exe`, `cua-driver-uia.exe`, `cua-cursor-theme.exe`, `LICENSE.md` and `THIRD_PARTY_NOTICES.md`. They were cross-built with Rust 1.97.1, cargo-xwin 0.23.1 and LLVM 18, with a static CRT and canonical Windows manifest resources. They are not copies of a GitHub Actions artifact.`src/runtime-pins.json` pins the source, the version, the release URL and the SHA-256 of every file. Before packing, `npm pack` runs `scripts/fetch-runtime.mjs`, which downloads the files into `native-runtime/win32-x64/runtime/` and checks each hash. The directory is not committed to Git.diff --git a/src/driver.ts b/src/driver.tsindex 2641501..cfcc859 100644--- a/src/driver.ts+++ b/src/driver.ts@@ -87,8 +87,8 @@ export const WINDOW_RESTORE_RUNTIME = {} as const;/** Window management plus every earlier native capability; `windows-desktop` selects these bytes. Browser pages use Playwright, not this runtime. */export const WINDOW_MANAGEMENT_RUNTIME = {- source: "505d090e1538b9cbe349e579c30006abf1379871", version: "0.38.0",- sha256: "a4e68758c1c9403db40f6c9505d1defb551a5badde788f6e0983a1584eac8edc",+ source: "4b547b547edf415908557829fa723f143f781649", version: "0.38.0",+ sha256: "18d3e3378a4111cf41e3fafd85035525dab1870af77b1ac0725f5b410397f623",} as const;const forkRuntimes = {"windows-desktop": WINDOW_MANAGEMENT_RUNTIME,diff --git a/src/runtime-pins.json b/src/runtime-pins.jsonindex 2711d93..684fc18 100644--- a/src/runtime-pins.json+++ b/src/runtime-pins.json@@ -1,12 +1,12 @@{"format": 2,- "source": "505d090e1538b9cbe349e579c30006abf1379871",+ "source": "4b547b547edf415908557829fa723f143f781649","version": "0.38.0",- "url": "https://github.com/alexshpunt/cua/releases/download/pi-runtime-0.38.0-505d090e/",+ "url": "https://github.com/alexshpunt/cua/releases/download/pi-runtime-0.38.0-4b547b54/","files": {- "cua-driver.exe": "a4e68758c1c9403db40f6c9505d1defb551a5badde788f6e0983a1584eac8edc",- "cua-driver-uia.exe": "3ed915184ca5744c0777e511caaf5be2c59b9f6bd985a761d9e5b79ddda5752b",- "cua-cursor-theme.exe": "9f58498df873551dff446d6d9a46288d5a3a242856b849da013ed8e5da9e87c4",+ "cua-driver.exe": "18d3e3378a4111cf41e3fafd85035525dab1870af77b1ac0725f5b410397f623",+ "cua-driver-uia.exe": "8a724cd67d92a91a6df47df7180d1ecf3be2de7c12b90e777fd9d14ec4ba65be",+ "cua-cursor-theme.exe": "d91276d2301c62dfe9adf5bc8a30846b40ec3057defea1ff670f10c2345deea4","LICENSE.md": "c0779290c1d4783169aa3dbfb55feb505e563ef8a004bbf55298ceffcfbda8d9","THIRD_PARTY_NOTICES.md": "1fb1119fed1ad8e3397558aeda43b3e323fd80a1cbbe58934546dc6cee9e8bf7"}