Skip to content

👾 Open Computer Use – Open-Source Alternative to Codex Computer Use

Bump Open Computer Use to 0.1.12

ifuryst41f5fafa868a
diff --git a/apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift b/apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift
index 47e10bf..3456482 100644
--- a/apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift
+++ b/apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift
@@ -34,7 +34,7 @@ final class MCPClient {
_ = try request(method: "initialize", params: [
"clientInfo": [
"name": "OpenComputerUseSmokeSuite",
- "version": "0.1.11",
+ "version": "0.1.12",
],
"capabilities": [:],
"protocolVersion": "2025-03-26",
diff --git a/docs/histories/2026-04/20260419-2205-bump-open-computer-use-to-0.1.12.md b/docs/histories/2026-04/20260419-2205-bump-open-computer-use-to-0.1.12.md
new file mode 100644
index 0000000..32d2c00
--- /dev/null
+++ b/docs/histories/2026-04/20260419-2205-bump-open-computer-use-to-0.1.12.md
@@ -0,0 +1,31 @@
+## [2026-04-19 22:05] | Task: 发布 0.1.12
+
+### 🤖 Execution Context
+* **Agent ID**: `codex`
+* **Base Model**: `gpt-5`
+* **Runtime**: `Codex CLI`
+
+### 📥 User Query
+> 0.1.12的tag我在github上删了,你本地删一下,修复好后再重打
+
+### 🛠 Changes Overview
+**Scope:** `apps/`、`docs/`、`packages/`、`plugins/`、`scripts/`
+
+**Key Actions:**
+- **[Tag Cleanup]**: 删除本地 `v0.1.12` tag,避免在修正版本源之前继续沿用一份已经指向错误 npm 产物版本的 tag。
+- **[Version Bump]**: 把插件 manifest、Swift/Go 版本常量、smoke suite 初始化版本、单测里的 client version 和文档示例统一提升到 `0.1.12`。
+- **[Release Notes]**: 更新功能发布记录,把权限浮窗动效/回位修复和这次 release workflow 的版本收口一起记到 `0.1.12`。
+- **[Publish Validation]**: 本地重跑 `swift test` 和 npm staging 构建,确认生成包的版本已经从 `0.1.11` 变成 `0.1.12`,不再触发 npm “不能覆盖已发布版本”的 403。
+
+### 🧠 Design Intent (Why)
+这次不是功能性新开发,而是修 release 工具链的版本一致性。tag 已经走到 `v0.1.12`,但 npm staging 产物仍然从插件 manifest 里读取 `0.1.11`,导致 CI 尝试重发旧版本直接失败。把“发布源版本”和所有对外暴露的版本字符串重新收口后,tag、运行时、smoke/test 和 npm 产物才会重新一致。
+
+### 📁 Files Modified
+- `plugins/open-computer-use/.codex-plugin/plugin.json`
+- `packages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swift`
+- `apps/OpenComputerUseSmokeSuite/Sources/OpenComputerUseSmokeSuite/main.swift`
+- `packages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swift`
+- `scripts/computer-use-cli/main.go`
+- `scripts/computer-use-cli/README.md`
+- `docs/releases/feature-release-notes.md`
+- `docs/histories/2026-04/20260419-2205-bump-open-computer-use-to-0.1.12.md`
diff --git a/docs/releases/feature-release-notes.md b/docs/releases/feature-release-notes.md
index e93815d..e34c8d2 100644
--- a/docs/releases/feature-release-notes.md
+++ b/docs/releases/feature-release-notes.md
@@ -4,6 +4,7 @@
| 日期 | 功能域 | 用户价值 | 变更摘要 |
| --- | --- | --- | --- |
+| 2026-04-19 | 权限浮窗细节收口 | `Allow` 后的引导浮窗动效更连贯,且在系统设置窗口稳定后能自动落到正确位置,不需要用户手动点一下再归位。 | 发布 `0.1.12`,补齐权限 panel 的 source-to-target 入场动画、返回按钮,以及动画结束后的持续 re-anchor,修复 release workflow 因 npm 版本仍停在 `0.1.11` 而发布失败的问题。 |
| 2026-04-18 | 权限浮窗与文档入口 | 第一次冷启动系统设置时权限浮窗能直接出现,仓库根目录也重新补回中文文档入口。 | 发布 `0.1.11`,修复首次 `Allow` 冷启动 `System Settings` 时辅助浮窗需要切窗后才显示的时序问题,并新增根目录 `README.zh-CN.md` 承载中文说明。 |
| 2026-04-18 | 权限身份与 onboarding | npm 安装后的权限身份更稳定,已授权用户不会被重复弹窗打扰。 | 发布 `0.1.10`,统一 bundle identifier 为 `com.ifuryst.opencomputeruse`,让权限检测兼容路径型 TCC 记录并优先认 npm 全局安装后的 app;同时让 `doctor` / 默认启动在权限齐全时不再弹出 onboarding,完成授权后自动关窗。 |
| 2026-04-17 | 发布稳定性 | release workflow 不再因为 Xcode 26 的 CoreFoundation 类型检查而在构建阶段提前失败。 | 发布 `0.1.9`,修复权限引导窗口里 `AXUIElement` 属性读取在 `macos-26` / Xcode 26.2 下的编译错误,恢复 npm release artifact 构建链路。 |
diff --git a/packages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swift b/packages/OpenComputerUseKit/Sources/OpenComputerUseKit/OpenComputerUseVersion.swift
index 6256a76..a4fa99c 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.1.11"
+public let openComputerUseVersion = "0.1.12"
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.swift
index 51c1d2e..a4654d9 100644
--- a/packages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swift
+++ b/packages/OpenComputerUseKit/Tests/OpenComputerUseKitTests/OpenComputerUseKitTests.swift
@@ -83,7 +83,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.1.11"},"capabilities":{}}}"#)
+ let response = server.handle(line: #"{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","clientInfo":{"name":"test","version":"0.1.12"},"capabilities":{}}}"#)
XCTAssertNotNil(response)
XCTAssertTrue(response!.contains(#""name":"open-computer-use""#))
XCTAssertTrue(response!.contains(#""tools":{"listChanged":false}"#))
@@ -92,7 +92,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.1.11"},"capabilities":{}}}"#)
+ server.handle(line: #"{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","clientInfo":{"name":"test","version":"0.1.12"},"capabilities":{}}}"#)
)
let data = try XCTUnwrap(response.data(using: .utf8))
let json = try XCTUnwrap(JSONSerialization.jsonObject(with: data) as? [String: Any])
@@ -223,6 +223,71 @@ final class OpenComputerUseKitTests: XCTestCase {
XCTAssertEqual(midpoint.y, 70, accuracy: 0.001)
}
+ func testOfficialCursorMotionModelBuildsTwentyCandidates() {
+ let candidates = OfficialCursorMotionModel.makeCandidates(
+ start: CGPoint(x: 100, y: 120),
+ end: CGPoint(x: 720, y: 380),
+ bounds: CGRect(x: 0, y: 0, width: 1280, height: 800)
+ )
+
+ XCTAssertEqual(candidates.count, 20)
+ }
+
+ func testOfficialCursorMotionModelChoosesScaledBaseForReferenceSample() {
+ let candidates = OfficialCursorMotionModel.makeCandidates(
+ start: CGPoint(x: 100, y: 120),
+ end: CGPoint(x: 720, y: 380),
+ bounds: CGRect(x: 0, y: 0, width: 1280, height: 800)
+ )
+
+ let chosen = OfficialCursorMotionModel.chooseBestCandidate(from: candidates)
+
+ XCTAssertEqual(chosen?.identifier, "base-scaled-guide")
+ XCTAssertEqual(chosen?.kind, .base)
+ }
+
+ func testOfficialCursorMotionSpringCloseEnoughTimeMatchesRecoveredReference() {
+ XCTAssertEqual(OfficialCursorMotionModel.closeEnoughTime, 1.429166666666663, accuracy: 0.000_001)
+ }
+
+ func testCursorVisualDynamicsOvershootsAfterTargetStops() {
+ let samples = simulateCursorVisualDynamics(
+ stopTime: 0.18,
+ targetDistance: 320,
+ totalTime: 0.75
+ )
+
+ let maxX = samples.map(\.tipPosition.x).max() ?? 0
+ XCTAssertGreaterThan(maxX, 320.5)
+ XCTAssertLessThan(samples[32].fogOffset.dx, -0.25)
+ }
+
+ func testCursorVisualDynamicsKeepsAngleInertiaAfterTargetStops() {
+ let samples = simulateCursorVisualDynamics(
+ stopTime: 0.16,
+ targetDistance: 280,
+ totalTime: 0.92
+ )
+
+ let rotationJustAfterStop = abs(samples[42].rotation)
+ let finalRotation = abs(samples.last?.rotation ?? 0)
+
+ XCTAssertGreaterThan(rotationJustAfterStop, 0.03)
+ XCTAssertLessThan(finalRotation, 0.02)
+ }
+
+ func testCursorVisualDynamicsTracksMovementHeadingInsteadOfOnlyWiggling() {
+ let samples = simulateCursorVisualDynamics(
+ stopTime: 0.45,
+ targetDistance: 360,
+ totalTime: 0.50
+ )
+
+ let peakRotation = samples.prefix(120).map { abs($0.rotation) }.max() ?? 0
+
+ XCTAssertGreaterThan(peakRotation, 1.5)
+ }
+
private func makeSnapshot(treeLines: [String], focusedSummary: String?, selectedText: String? = nil) -> AppSnapshot {
AppSnapshot(
app: RunningAppDescriptor(
@@ -243,4 +308,35 @@ final class OpenComputerUseKitTests: XCTestCase {
elements: [:]
)
}
+
+ private func simulateCursorVisualDynamics(
+ stopTime: CGFloat,
+ targetDistance: CGFloat,
+ totalTime: CGFloat,
+ stepCount: Int = 240
+ ) -> [CursorVisualRenderState] {
+ var state = CursorVisualDynamicsAnimator.state(at: CGPoint(x: 0, y: 0))
+ var samples: [CursorVisualRenderState] = []
+
+ for step in 1...stepCount {
+ let time = totalTime * (CGFloat(step) / CGFloat(stepCount))
+ let targetX: CGFloat
+ if time < stopTime {
+ targetX = targetDistance * (time / stopTime)
+ } else {
+ targetX = targetDistance
+ }
+
+ let result = CursorVisualDynamicsAnimator.advance(
+ state: state,
+ targetTipPosition: CGPoint(x: targetX, y: 0),
+ targetTime: time,
+ baseHeading: 3 * .pi / 4
+ )
+ state = result.state
+ samples.append(result.renderState)
+ }
+
+ return samples
+ }
}
diff --git a/plugins/open-computer-use/.codex-plugin/plugin.json b/plugins/open-computer-use/.codex-plugin/plugin.json
index 2c71392..42d08bc 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.1.11",
+ "version": "0.1.12",
"description": "Open-source macOS Computer Use MCP server packaged as a Codex plugin.",
"author": {
"name": "Leo",
diff --git a/scripts/computer-use-cli/README.md b/scripts/computer-use-cli/README.md
index 482a1c9..5f6b3a7 100644
--- a/scripts/computer-use-cli/README.md
+++ b/scripts/computer-use-cli/README.md
@@ -85,7 +85,7 @@ Example working invocation against `open-computer-use`:
```bash
go run . list-tools \
--transport direct \
- --server-bin ~/.codex/plugins/cache/open-computer-use-local/open-computer-use/0.1.11/scripts/launch-open-computer-use.sh
+ --server-bin ~/.codex/plugins/cache/open-computer-use-local/open-computer-use/0.1.12/scripts/launch-open-computer-use.sh
```
Example working invocation against the official bundled `computer-use`:
diff --git a/scripts/computer-use-cli/main.go b/scripts/computer-use-cli/main.go
index 4d30f93..1e37cc0 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.1.11"
+ cliVersion = "0.1.12"
defaultTimeout = 60 * time.Second
pluginRootEnvVar = "COMPUTER_USE_PLUGIN_ROOT"
serverBinEnvVar = "COMPUTER_USE_SERVER_BIN"