已合并
feat(ops-registry-invoke): add installable workflow plugin #19
feat(ops-registry-invoke): add installable workflow plugin #19
已合并
zhangzijie创建于 8 天前
zhangzijie
8 天前

目标

打通最小安装通路:

npx @cannbot-plugin/cannbot@latest install ops-registry-invoke --tool codex

本 PR 只保证 ops-registry-invoke 可以通过现有统一安装器安装到 Codex。OpenCode/Claude Code 支持、workflow 能力增强、文档扩展后续再补。

改动

  • 新增最小插件 plugins/ops-registry-invoke/:
    • .claude-plugin/plugin.json
    • .codex-plugin/plugin.json
    • plugin-sources.json
    • agents/general-executor.md
    • agents/general-verifier.md
    • skills/ops-registry-invoke/SKILL.md
    • workflow/op-develop.yaml
  • workflow 保留 44 节点;普通节点 executor/verifier 统一为 general-executor / general-verifier,路径改为 Codex 布局。
  • 通过 plugin-sources.json 引用仓内 harness/:
    • harness/workflow-orchestrator
    • harness/workflow-rollback-advice
  • marketplace 新增 local 来源的 harness-skills 和官方插件 ops-registry-invoke。
  • README 官方插件表新增一行。
  • script/test/install.test.js 做最小公共测试适配:
    • 官方插件清单从 marketplace/plugins 数据发现,避免继续硬编码插件名。
    • 支持 source.source === "local" 的仓内 skills 来源。
    • SKILLS_LICENSE 按各插件 plugin-sources.json.skillsRepository 推导。
    • 新增 ops-registry-invoke 的 Codex repository/package 最小安装回归。

已按 Review 收窄范围

  • 不修改 CHANGELOG.md
  • 不修改 docs/repository-guide.md
  • 不修改 plugins/README.md
  • 不修改 script/docs/cannbot-workflows.md
  • 不修改 script/scripts/smoke-package.js
  • 不新增插件 README
  • 不修改统一安装器核心实现

验证

环境:Linux x86_64,Node v24.18.0,npm 11.16.0,Python 3.12.9。

  1. npm run build:plugins
    • assembled ops-registry-invoke: 3 Skills
    • dist 包含 ops-registry-invoke、workflow-orchestrator、workflow-rollback-advice
  2. npm test
    • 44 tests passed
  3. 隔离 Codex 安装
    • repository source:验证 .agents/skills/ops-registry-invoke/SKILL.md、.agents/skills/workflow-orchestrator/scripts/orchestrator.py、.agents/skills/workflow-rollback-advice/SKILL.md、.codex/agents/general-executor.toml、.codex/agents/general-verifier.toml、.codex/cannbot-plugin.json
    • package source:验证相同安装结果,source.kind=package、skillInstallMode=copy
    • 验证沙箱 HOME 内 .codex-plugin/plugin.json 与 marketplace 条目存在
    • 验证目标项目不生成 AGENTS.md 与 .cannbot/settings.json
  4. workflow 静态校验
    • 44 节点
    • 41 个普通节点 executor/verifier 均为 general 角色
    • 3 个 subgraph 节点保持原结构
    • 无 .opencode / glacier 残留
  5. orchestrator 运行校验
    • python3 <target>/.agents/skills/workflow-orchestrator/scripts/orchestrator.py --help 正常输出
    • provider 列表包含 codex
  6. npm run pack:smoke
    • 本地 npm 全局配置存在 allow-scripts=true,直接执行会触发 npm 11 的 EALLOWSCRIPTS。
    • 为避免修改公共 smoke 脚本,使用 npm_config_allow_scripts= npm run pack:smoke 验证通过。
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhangzijie 的贡献)
Zzhangzijie
8 天前 创建了 pull request,commit 49d0a96a
CANN-robot
CANN-robot成员
8 天前 评论:

Hi @zhangzijie, welcome to submitting your first PR to cannbot!

PR Merge Steps

1. CLA Signing

If the current PR label includes cann-cla/yes, it means you have signed the CLA and can proceed to the next step. If the label includes cann-cla/no, please sign the CLA first. If you have any questions, please refer to the FAQ.

2. CI Check

Please comment /compile to trigger the CI pipeline check. If the CI run is successful, the PR will be tagged with ci-pipeline-passed and you can proceed to the next step. If the CI run fails, the PR will be tagged with ci-pipeline-failed, please check the CI logs to fix the issues in the PR. If you have any questions, please refer to the FAQ.

3. Code Review

After CI passes, please refer to the PR Approval Progress and proactively @ the committers in the table to review the code. After approval, committers will comment /lgtm and /approve. Once the lgtm and approved labels are successfully added, the PR will be merged automatically.

likedislike
CANN-robotCANN-robot成员
8 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
8 天前 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/cannbot ✅ 汤平川, xutianze (2/2) ✅ 汤平川, xutianze (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

zhangzijie, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
zhangzijie8 天前进行代码检视2
.claude-plugin/marketplace.json
已过期
@@ -181,0 +191,4 @@
191+ {
192+ "name": "ops-registry-invoke",
193+ "source": "./plugins/ops-registry-invoke",
194+ "description": "aclnn/registry-invoke 算子开发工作流,通过 workflow-orchestrator 编排 44 个节点的需求、规格、设计、实现、测试与交付流程。",
zhangzijie8 天前评论:

"description": "ACLNN算子开发工作流"

likedislike
System
系统消息系统
8 天前 评论:

changed this line on edf0be0c view diff detail

此处折叠了94条消息 查看更多
CANN-robot
CANN-robot成员
5 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
5 天前 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
5 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
5 天前 添加了label:ci-pipeline-passed
CANN-robotCANN-robot成员
5 天前 合入了pull request