👾 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
docs: complete npm trusted publishing migration (#108)
Leo0daece0fd094
diff --git a/docs/exec-plans/active/20261017-repository-rename.md b/docs/exec-plans/completed/20261017-repository-rename.mdsimilarity index 76%rename from docs/exec-plans/active/20261017-repository-rename.mdrename to docs/exec-plans/completed/20261017-repository-rename.mdindex 94054a1..c27c58d 100644--- a/docs/exec-plans/active/20261017-repository-rename.md+++ b/docs/exec-plans/completed/20261017-repository-rename.md@@ -4,6 +4,10 @@将 GitHub 仓库从 `iFurySt/open-codex-computer-use` 改名为 `iFurySt/open-computer-use`,同步 npm、plugin、skill、发布校验和当前文档,保持现有安装与 App 身份兼容。+## 完成状态++2026-10-17 已完成:仓库代码通过 #107 合入 main,三个 npm 包的新 Trusted Publisher 已保存并完成真实 OIDC 验证,页面均显示 Valid。+## 范围与约束- 更新当前仓库引用、Go module 路径和本地 origin。@@ -34,7 +38,9 @@- [x] 完成验证:40 个本地 Node 测试、Linux / Windows Go 测试、14 个 Linux Python 测试、DSH 安装回归、文档与 Action pinning 检查;三个 npm 包真实 staging / pack、签名组件和 App 身份检查通过。同步并发合入的 #100 后,在 GitHub Linux runner 上再次验证两个 Go runtime、14 个 Python 测试与 4 个 release-notes 测试。- [x] GitHub 改名并更新共享 origin;新旧 GitHub API 与 Git 地址对应同一仓库,旧 Release 下载返回 HTTP 200。- [x] 提交并推送改动,代码迁移通过 [PR #107](https://github.com/iFurySt/open-computer-use/pull/107) 交付。-- [ ] 完成 npm Trusted Publisher 迁移;旧连接虽显示 Valid,真实 OIDC token exchange 三个包均返回 404,新连接保存正在等待用户完成 npm 安全密钥验证。+- [x] 完成 npm Trusted Publisher 迁移:用户逐包完成安全密钥验证,新连接均使用 `iFurySt/open-computer-use` / `release.yml`,沿用原有 publish / stage 权限。+- [x] 真实 OIDC 复验三个包均返回 HTTP 201,新连接均变为 Valid;没有发布新版本或保存返回的凭据。+- [x] 清理临时验证分支与已合入的代码迁移分支。## 验证边界@@ -42,7 +48,9 @@- npm staging 复用 registry 已发布的 1.1.1 原生 runtime,验证本次包元信息与封装,没有重建或发布 App。- 首次真实 OIDC 检查:[Actions run 39011291883](https://github.com/iFurySt/open-computer-use/actions/runs/39011291883),证明只检查页面状态不足以发现改名后的认证问题。- 同步 #100 后的 Linux 平台验证:[Actions run 39011557748](https://github.com/iFurySt/open-computer-use/actions/runs/39011557748) 的 platform tests step 通过;该 run 后续仍因尚未完成 npm 账号迁移而失败。新增 bridge 测试要求 Linux,不能以 macOS 本地执行结果替代。+- 最终复验:[Actions run 39012120822](https://github.com/iFurySt/open-computer-use/actions/runs/39012120822) 全部通过,包括两个 Go runtime、14 个 Python 测试、4 个 release-notes 测试及三个包的真实 OIDC token exchange;浏览器随后确认三个新连接均为 Valid。## 决策记录- 2026-10-17:仓库名采用全小写 open-computer-use;现有产品与包身份保持稳定。保留历史原文,避免改写已发布记录。+- 2026-10-17:真实 token exchange 已使三个新连接完成 validation,无需为了迁移验证而公开发布新版本。旧名失效连接保留为迁移记录,可在下一次正式发版后按需清理。diff --git a/docs/histories/2026-10/20261017-1449-rename-open-computer-use.md b/docs/histories/2026-10/20261017-1449-rename-open-computer-use.mdindex 92753a3..6d188df 100644--- a/docs/histories/2026-10/20261017-1449-rename-open-computer-use.md+++ b/docs/histories/2026-10/20261017-1449-rename-open-computer-use.md@@ -17,6 +17,7 @@- 保留三个 npm 包名、CLI 别名、旧 MCP 配置迁移、App Bundle ID 和签名身份。- 发布 notes 校验接受规范地址与原始历史地址;新增回归,拒绝无关仓库、相似 URL 和错误 tag。- 同步发布指南和功能记录;histories、已完成计划、已发布 notes 和逆向样本保留原文。+- 用户逐包完成安全密钥验证后,为三个 npm 包新增新仓库名的 Trusted Publisher,沿用原有权限;真实认证成功后,新连接均为 Valid,临时验证分支已清理。### Design Intent@@ -30,7 +31,8 @@- 基于已发布 1.1.1 runtime 生成并 pack 三个 npm 包,规范 repository / homepage / bugs 地址与四个 CLI 入口检查通过;universal App 的四个 Locked Use 组件签名验证通过,App 身份保持不变;`ocu capabilities --json` 全部可用。- 新旧 GitHub API / Git 地址指向同一仓库;已有 macOS Release 下载返回 HTTP 200。- 基础 CI 的 repo-hygiene 检查因 main 既有的 11 个模板文件缺失而失败;相关检查已分别执行,没有扩大本次改名范围。-- npm 旧 Trusted Publisher 页面在改名后仍显示 Valid,但三个包的真实 OIDC token exchange 均返回 HTTP 404。正在迁移到新仓库名,保存连接需要账号所有者完成 npm 安全密钥验证。+- npm 旧 Trusted Publisher 页面在改名后仍显示 Valid,但三个包的真实 OIDC token exchange 均返回 HTTP 404。新增新名称连接后,[最终复验 run 39012120822](https://github.com/iFurySt/open-computer-use/actions/runs/39012120822) 全部成功:三个包均返回 HTTP 201,随后页面均显示 Valid,最初的 Pending validation 已解除。没有发布新版本、保存返回的 token 或扩大原有权限。+- 旧名失效连接保留为迁移记录,下次正式发版成功后可按需清理;现有 npm 版本仍为 1.1.1,规范仓库元信息随下一次正常发版生效。### Files Modified@@ -42,4 +44,4 @@- `apps/OpenComputerUseLinux/go.mod`、`apps/OpenComputerUseWindows/go.mod`- `skills/open-computer-use/references/installation.md`- `docs/releases/RELEASE_GUIDE.md`、`docs/releases/github/TEMPLATE.md`、`docs/releases/feature-release-notes.md`-- `docs/exec-plans/active/20261017-repository-rename.md`+- `docs/exec-plans/completed/20261017-repository-rename.md`diff --git a/docs/releases/RELEASE_GUIDE.md b/docs/releases/RELEASE_GUIDE.mdindex d08e72c..ca356a8 100644--- a/docs/releases/RELEASE_GUIDE.md+++ b/docs/releases/RELEASE_GUIDE.md@@ -23,7 +23,9 @@ GitHub 仓库规范地址是 `https://github.com/iFurySt/open-computer-use`。npm staging 的 `repository.url` 必须与发布所在的 GitHub 仓库一致,否则 provenance / Trusted Publishing 可能失败。改名后应逐个核对 `open-computer-use`、`open-computer-use-mcp`、`open-codex-computer-use-mcp` 的 npm Trusted Publisher,workflow 文件仍为 `release.yml`。`npm publish --dry-run` 和 `npm whoami` 不能验证 GitHub OIDC;可在同一 workflow 文件的临时分支上,使用 GitHub OIDC 向 npm 官方 token-exchange API 验证三个包均返回 HTTP 201,不输出、保存或使用返回的 token,不执行 publish。该检查证明认证可用,完整构建 / provenance / 发布仍以实际发版为准。-publisher 即使已绑定仓库不可变身份、页面仍显示 Valid,也不能据此推断改名后的认证可用:本次迁移的旧名称连接在真实 token exchange 中返回 HTTP 404。应以新仓库名新增连接,沿用原有权限,并验证真实认证;在新连接生效前保留旧连接,验证成功后再清理。创建连接需要账号所有者完成 npm 的安全密钥二步验证。参考 [npm 官方 Trusted Publishing 文档](https://docs.npmjs.com/trusted-publishers/)与 [npm Registry API](https://api-docs.npmjs.com/)。+publisher 即使已绑定仓库不可变身份、页面仍显示 Valid,也不能据此推断改名后的认证可用:本次迁移的旧名称连接在真实 token exchange 中返回 HTTP 404。应以新仓库名新增连接,沿用原有权限,并验证真实认证。创建连接需要账号所有者逐包完成 npm 的安全密钥二步验证。旧名连接保留为迁移记录,下次正式发版成功后可按需清理;它们不能作为新仓库认证的 fallback。参考 [npm 官方 Trusted Publishing 文档](https://docs.npmjs.com/trusted-publishers/)与 [npm Registry API](https://api-docs.npmjs.com/)。++2026-10-17 的迁移已通过 [真实认证复验](https://github.com/iFurySt/open-computer-use/actions/runs/39012120822):三个包的 token exchange 均返回 HTTP 201,新连接随后从 Pending validation 变为 Valid。此次没有发布新版本或保存返回的 token;npm 现有版本仍为 1.1.1,新仓库元信息会随下一次正常发版进入 registry。- 本地 staging / 打 tgz:`./scripts/release-package.sh`- 本地重新封装 GitHub Release assets:`./scripts/package-github-release-assets.sh --version <version>`