👾 Open Computer Use – Open-Source Alternative to Codex Computer Use
Swift accessibilityai-agentai-agentsclaude-codecodexcodex-computer-usecomputer-usecomputer-use-agentcross-platformcuadesktop-automationgemini-cligui-automationmacosmcpmodel-context-protocolopen-computer-useopen-computer-use-mcpopenai-codexopencode
release: prepare v0.3.6
Leo93b817501e0b
diff --git a/apps/OpenComputerUseLinux/main.go b/apps/OpenComputerUseLinux/main.goindex 7a5c555..783a59b 100644--- a/apps/OpenComputerUseLinux/main.go+++ b/apps/OpenComputerUseLinux/main.go@@ -20,7 +20,7 @@ import ("time")-var version = "0.3.5"+var version = "0.3.6"var clickMethodValues = []string{"auto", "accessibility", "app_post", "sky_click", "global"}diff --git a/apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift b/apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swiftindex 9375572..b9d33ad 100644--- a/apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift+++ b/apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift@@ -35,7 +35,7 @@ final class MCPClient {_ = try request(method: "initialize", params: ["clientInfo": ["name": "OpenComputerUseSmokeSuite",- "version": "0.3.5",+ "version": "0.3.6",],"capabilities": [:],"protocolVersion": "2025-03-26",diff --git a/apps/OpenComputerUseWindows/main.go b/apps/OpenComputerUseWindows/main.goindex c70ed60..5ebaf99 100644--- a/apps/OpenComputerUseWindows/main.go+++ b/apps/OpenComputerUseWindows/main.go@@ -17,7 +17,7 @@ import ("time")-var version = "0.3.5"+var version = "0.3.6"var clickMethodValues = []string{"auto", "accessibility", "app_post", "sky_click", "global"}diff --git a/docs/histories/2026-09/20260929-1139-release-0-3-6.md b/docs/histories/2026-09/20260929-1139-release-0-3-6.mdnew file mode 100644index 0000000..a511068--- /dev/null+++ b/docs/histories/2026-09/20260929-1139-release-0-3-6.md@@ -0,0 +1,46 @@+## [2026-09-29 11:39] | Task: 发布 0.3.6++### 🤖 Execution Context+* **Agent ID**: `/root`+* **Base Model**: GPT-5+* **Runtime**: TraeCode++### 📥 User Query+> PR 合并后提升一个小版本,并按照仓库 SOP 完成发版。++### 🛠 Changes Overview+**Scope:** 跨平台版本源与发布文档。++**Key Actions:**+- 将 plugin manifest、Swift runtime / smoke / tests、Linux / Windows runtime 和 Go helper 的版本从 `0.3.5` 统一提升到 `0.3.6`。+- 汇总 `v0.3.5` 之后的 DSH 集成、持久 JavaScript REPL / CLI、错误传播与 macOS action read-back 优化,以及 GitHub Release direct-download assets。+- 修复发版前回归发现的 Worker REPL late-timer 错误串入下一次调用的问题。+- 新增审核版英文 GitHub Release notes,并同步用户可见功能发布记录。++### 🧠 Design Intent (Why)+以 patch release 交付已经合入 `main` 的新宿主集成、code-first 自动化与跨平台直接下载能力,同时保持 tag、运行时版本、npm 包、GitHub Release notes 和制品文件名一致。++### 📁 Files Modified+- `plugins/open-computer-use/.codex-plugin/plugin.json`+- `packages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swift`+- `packages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swift`+- `apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift`+- `apps/OpenComputerUseLinux/main.go`+- `apps/OpenComputerUseWindows/main.go`+- `scripts/computer-use-cli/main.go`+- `scripts/computer-use-cli/README.md`+- `scripts/node-repl/open-computer-use-repl.mjs`+- `docs/releases/feature-release-notes.md`+- `docs/releases/github/v0.3.6.md`++### Validation++- `node ./scripts/validate-github-release-notes.mjs --tag v0.3.6` 通过,确认 3 条英文用户可见变更与当前 tag / manifest 一致。+- Node 22 与 Node 25 下的 `scripts/node-repl/*.test.mjs` 均为 21/21 通过,包括 Persistent / Worker late-timer 隔离回归。+- `swift test` 通过:168 项测试、0 失败、1 项需要显式环境变量的 SkyClick live test 跳过。+- Linux runtime、Windows runtime 与 Go helper 的 `go test ./...` 均通过。+- npm staging 构建通过,版本为 `0.3.6`,包含 Linux / Windows arm64 与 amd64 runtime、可执行 `bin/ocu`,且未声明 `optionalDependencies`。+- GitHub Release staging 生成 macOS universal app zip、4 个 native CLI archives、两种 skill 包、manifest 与 `SHA256SUMS`;全部 SHA-256 校验通过。+- Cursor Motion universal release DMG 构建为 `dist/release/cursor-motion/CursorMotion-0.3.6.dmg`。+- `git diff --check`、文档骨架与 GitHub Action 固定 SHA 检查通过。+- 完整 repo hygiene 检查仍被仓库既有的 11 个模板文件缺口阻塞(包括 `.editorconfig` 和基础 `.github` 模板 / workflow);本轮不扩大 release 范围补模板。diff --git a/docs/releases/feature-release-notes.md b/docs/releases/feature-release-notes.mdindex 5f97628..aadbdde 100644--- a/docs/releases/feature-release-notes.md+++ b/docs/releases/feature-release-notes.md@@ -4,7 +4,7 @@| 日期 | 功能域 | 用户价值 | 变更摘要 || --- | --- | --- | --- |-| 2026-09-29 | GitHub Release 直接下载 | 不使用 npm 或 Homebrew 的用户也可以从 GitHub Releases 直接下载 macOS app、Linux / Windows CLI 和 Agent skill,并通过 checksum 校验制品。 | tag release 在全部构建成功后统一发布 macOS universal `.app.zip`、Linux / Windows 双架构 CLI archives、`.zip` / `.skill` skill 包、SHA-256 校验和与机器可读 manifest;Developer ID 和 notary 配置齐全时会公证并 staple macOS app。 |+| 2026-09-29 | 跨平台分发与 JavaScript 自动化 | Agent 可以通过持久 JavaScript 会话批量编排桌面操作,延迟异步错误不会污染下一次调用;DSH 用户获得一键兼容安装;不使用 npm 或 Homebrew 的用户也可直接下载三端 runtime 和 skill。 | 发布 `0.3.6`:新增 plugin `js` / `js_reset`、`ocu js` / `ocu repl`、DSH 验证式安装,并在 tag CI 完成后统一发布 macOS universal app、Linux / Windows 双架构 CLI、skill、SHA-256 校验和与 manifest。 || 2026-09-22 | JS REPL CLI | 用户无需先配置 MCP host,也可以直接用 `ocu js` 执行一次性 Computer Use JavaScript,或用 `ocu repl` 在终端中复用持久 binding;Agent 还能先读取结构化 capability 状态。 | npm launcher 新增 positional/stdin/file 三种 `js` 输入、持久 terminal REPL、`capabilities [--json]` 和稳定 help availability;`ocu mcp` 仍保持原生 9-tool surface。 || 2026-09-22 | JS REPL 错误传播与 read-back | `js` 代码抛出的异常立即以 `isError` 返回且保留 bindings,不再等到 30 s 超时并丢弃 session;macOS 上一批 action 不再为每个动作等待 150 ms 并重新读取整棵 AX tree,十次点击从数秒降到约一次 state read。 | REPL adapter 从 Node 的 `handleError`(Node 26)或 domain(Node 22)路径 settle 当前 evaluation;adapter 以 `OPEN_COMPUTER_USE_ACTION_READ_BACK=0` 启动 native runtime,macOS action 在该模式下返回短状态、跳过 settle 与 snapshot;默认 9-tool 行为不变,Linux / Windows 暂时忽略该变量。 || 2026-09-21 | JS REPL Computer Use | Agent 可以用异步 JavaScript 绑定 app,并在一个 tool round trip 内完成 inspect、action、条件和最终验证,不必在多轮间搬运所有中间状态。 | Codex plugin 通过持久 Node.js Worker 和 app-bound `cua` API 暴露 `js` / `js_reset`;`open-computer-use mcp` 继续保留既有 9-tool compatibility surface。 |diff --git a/docs/releases/github/v0.3.6.md b/docs/releases/github/v0.3.6.mdnew file mode 100644index 0000000..3d7db58--- /dev/null+++ b/docs/releases/github/v0.3.6.md@@ -0,0 +1,7 @@+## What's Changed++* Add a persistent JavaScript REPL to the Codex plugin plus `ocu js`, `ocu repl`, and capability inspection commands for composing multiple Computer Use operations in one session, with late async errors isolated to the call that created them.+* Add verified DeepSeek Harness installation with non-destructive skill setup and turn-boundary cleanup integration.+* Publish the macOS app, Linux and Windows native CLIs, installable skill bundles, checksums, and a machine-readable manifest directly on GitHub Releases after all release builds succeed.++**Full Changelog**: https://github.com/iFurySt/open-codex-computer-use/compare/v0.3.5...v0.3.6diff --git a/packages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swift b/packages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swiftindex 33e45e2..d1a2bb4 100644--- a/packages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swift+++ b/packages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swift@@ -1,6 +1,6 @@import Foundation-public let openComputerUseVersion = "0.3.5"+public let openComputerUseVersion = "0.3.6"public func resolvedOpenComputerUseVersion(bundle: Bundle = .main) -> String {if let version = bundle.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String,diff --git a/packages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swift b/packages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swiftindex c76bc8f..09c45ce 100644--- a/packages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swift+++ b/packages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swift@@ -604,7 +604,7 @@ final class OpenComputerUseKitTests: XCTestCase {func testInitializeResponseContainsToolsCapability() throws {let server = StdioMCPServer(service: ComputerUseService())- let response = server.handle(line: #"{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","clientInfo":{"name":"test","version":"0.3.5"},"capabilities":{}}}"#)+ let response = server.handle(line: #"{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","clientInfo":{"name":"test","version":"0.3.6"},"capabilities":{}}}"#)XCTAssertNotNil(response)XCTAssertTrue(response!.contains(#""name":"open-computer-use""#))XCTAssertTrue(response!.contains(#""tools":{"listChanged":false}"#))@@ -613,7 +613,7 @@ final class OpenComputerUseKitTests: XCTestCase {func testInitializeResponseContainsComputerUseInstructions() throws {let server = StdioMCPServer(service: ComputerUseService())let response = try XCTUnwrap(- server.handle(line: #"{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","clientInfo":{"name":"test","version":"0.3.5"},"capabilities":{}}}"#)+ server.handle(line: #"{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","clientInfo":{"name":"test","version":"0.3.6"},"capabilities":{}}}"#))let data = try XCTUnwrap(response.data(using: .utf8))let json = try XCTUnwrap(JSONSerialization.jsonObject(with: data) as? [String: Any])diff --git a/plugins/open-computer-use/.codex-plugin/plugin.json b/plugins/open-computer-use/.codex-plugin/plugin.jsonindex 9033f54..beea2e3 100644--- a/plugins/open-computer-use/.codex-plugin/plugin.json+++ b/plugins/open-computer-use/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "open-computer-use",- "version": "0.3.5",+ "version": "0.3.6","description": "Open-source cross-platform Computer Use with a persistent JavaScript REPL.","author": {"name": "Leo",diff --git a/scripts/computer-use-cli/README.md b/scripts/computer-use-cli/README.mdindex 3cfd4f4..ac1ab13 100644--- a/scripts/computer-use-cli/README.md+++ b/scripts/computer-use-cli/README.md@@ -131,7 +131,7 @@ Example working invocation against `open-computer-use`:```bashgo run . list-tools \--transport direct \- --server-bin ~/.codex/plugins/cache/open-computer-use-local/open-computer-use/0.3.5/scripts/launch-open-computer-use.sh+ --server-bin ~/.codex/plugins/cache/open-computer-use-local/open-computer-use/0.3.6/scripts/launch-open-computer-use.sh```Example working comparison flow against a local repo build:diff --git a/scripts/computer-use-cli/main.go b/scripts/computer-use-cli/main.goindex d6fe344..7f0140f 100644--- a/scripts/computer-use-cli/main.go+++ b/scripts/computer-use-cli/main.go@@ -21,7 +21,7 @@ import (const (cliName = "computer-use-cli"- cliVersion = "0.3.5"+ cliVersion = "0.3.6"defaultTimeout = 60 * time.SecondpluginRootEnvVar = "COMPUTER_USE_PLUGIN_ROOT"pluginVersionEnvVar = "COMPUTER_USE_PLUGIN_VERSION"diff --git a/scripts/node-repl/open-computer-use-repl.mjs b/scripts/node-repl/open-computer-use-repl.mjsindex 7c79d70..822fac8 100755--- a/scripts/node-repl/open-computer-use-repl.mjs+++ b/scripts/node-repl/open-computer-use-repl.mjs@@ -335,6 +335,28 @@ export class PersistentJavaScriptSession {return owner;}+ #settleOwner(owner, error) {+ if (owner && owner === this.active) owner.reject(error);+ }++ #ownedAsyncCallback(callback) {+ if (typeof callback !== "function") return callback;+ const owner = evaluationOwner.getStore();+ const session = this;+ return function (...args) {+ try {+ const value = evaluationOwner.run(owner, () => Reflect.apply(callback, this, args));+ if (value && typeof value.then === "function") {+ void value.catch(error => session.#settleOwner(owner, error));+ }+ return value;+ } catch (error) {+ session.#settleOwner(owner, error);+ return undefined;+ }+ };+ }+reset() {this.repl?.close();const input = new PassThrough();@@ -346,12 +368,20 @@ export class PersistentJavaScriptSession {// call that threw: a late throw from a finished call is dropped, as the REPL would.const settle = error => {const owner = evaluationOwner.getStore();- if (owner && owner === this.active) owner.reject(error);+ this.#settleOwner(owner, error);return "ignore";};this.repl = repl.start({ prompt: "", input, output, terminal: false, useGlobal: false, ignoreUndefined: true, breakEvalOnSigint: true, handleError: settle });this.repl.on("error", () => {});this.repl._domain?.on("error", settle);+ // Node's REPL domain can report an old timer's exception while a newer eval is+ // active, losing the AsyncLocalStorage owner that scheduled the callback. Wrap+ // timer callbacks inside the REPL context so their errors settle only their own+ // still-active evaluation and are otherwise dropped.+ this.repl.context.setTimeout = (callback, delay, ...args) => setTimeout(this.#ownedAsyncCallback(callback), delay, ...args);+ this.repl.context.setInterval = (callback, delay, ...args) => setInterval(this.#ownedAsyncCallback(callback), delay, ...args);+ this.repl.context.setImmediate = (callback, ...args) => setImmediate(this.#ownedAsyncCallback(callback), ...args);+ this.repl.context.queueMicrotask = callback => queueMicrotask(this.#ownedAsyncCallback(callback));const nodeRepl = {cwd: process.cwd(),homeDir: process.env.HOME ?? "",