Skip to content

feat: 新增 Oh My Pi (omp) 更新支持 - #1

Merged
dncore merged 2 commits into
dncore:mainfrom
CaffreySun:feat/omp
Aug 12, 2026
Merged

dncore merged 2 commits into
dncore:mainfrom
CaffreySun:feat/omp

Conversation

@CaffreySun

Copy link
Copy Markdown
Contributor

变更内容

  • src/agents.ts:KNOWN_AGENTS 新增 omp(Oh My Pi,npm 包 @oh-my-pi/pi-coding-agent)
    • 版本解析:omp --version(输出 omp/17.2.15,现有 extractVersion 可直接解析)
    • 更新路径:bun 全局安装走 bun add -g @oh-my-pi/pi-coding-agent,native 安装走 omp update(oclif 自更新,支持 --check/--force)
    • 检测/分类/更新全部复用现有通用逻辑,无需改动 detect.ts/update.ts
  • README.md:agent 表格补充 Oh My Pi 行

附带修复:typecheck

package.json 补 @types/node devDependency。上游 fresh clone 下 npm run typecheck 报 46 个 TS 错误(Cannot find module 'node:fs' 等)——lockfile 中 @types/node 仅为 vitest/tsup 的 optional peer 引用,不会实际安装,而 CI 包含 npm run typecheck 步骤。独立提交(build:),可单独 revert。

验证

  • 实机(macOS arm64,omp 经 bun 全局安装):auway list 正确检出 Oh My Pi 17.2.15 bun global ~/.bun/install/global/node_modules/@oh-my-pi/pi-coding-agent/dist/cli.js
  • npm run typecheck 通过;npm test 31/31 通过;npm run build 成功

[EDIT-BY-AI]

- KNOWN_AGENTS 注册 omp(@oh-my-pi/pi-coding-agent):检测、版本解析(omp --version)、bun/native 更新路径
- README agent 表格补充 Oh My Pi 行

[EDIT-BY-AI]
- 上游 package.json 缺少 @types/node,fresh clone 下 npm run typecheck 报 46 个 node 模块类型错误(CI 含此步骤)
- lockfile 中原有 @types/node 仅为 vitest/tsup 的 optional peer 引用,不会实际安装

[EDIT-BY-AI]
@dncore
dncore merged commit 76838be into dncore:main Aug 12, 2026
1 check passed
@CaffreySun
CaffreySun deleted the feat/omp branch August 12, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants