| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
源码安装使用 submodule Skill 软链 Co-authored-by: chendunyang<chendunyang1@huawei.com> # message auto-generated for no-merge-commit merge: !4 merge migration/source-install-website-plugins into master 源码安装使用 submodule Skill 软链 Created-by: qq_37913898 Commit-by: chendunyang Merged-by: cann-robot Description: ## 修改内容 - 三个官方插件的非 Skill 内容由 plugins/ 中的实体文件提供 - plugin-sources.json 声明源码 Skill 安装模式为 symlink - 源码执行 init.sh 时,Skill 以相对软链指向 vendor/cannbot-skills - 无参数执行 init.sh 时安装到 cannbot 仓库根目录 - 保护目标项目中已有的同名真实 Skill 目录 - 源码依赖清理脚本从 submodule 的实际 Skill 路径执行 - npm 安装继续使用自包含发布包并复制 Skill - 更新 Claude/Codex manifest 及安装说明 - 根 README 收敛为极简快速入门,安装命令通过 <plugin-id> 与官方插件表联动,并提供 ops-direct-invoke 示例 - 架构、目录、发布和维护信息移至内部文档 ## 验证 - npm --prefix script test:42/42 通过 - npm --prefix script run pack:check:通过 - npm --prefix script run pack:smoke:通过 - README 本地链接检查:通过 - 全新递归克隆后,三个插件均可无参数源码安装 - 仓库整体移动后相对 Skill 软链仍可解析 - 插件源码目录无 Git 软链、无安装写入 See merge request: cann/cannbot!4 | 5 天前 | |
源码安装使用 submodule Skill 软链 Co-authored-by: chendunyang<chendunyang1@huawei.com> # message auto-generated for no-merge-commit merge: !4 merge migration/source-install-website-plugins into master 源码安装使用 submodule Skill 软链 Created-by: qq_37913898 Commit-by: chendunyang Merged-by: cann-robot Description: ## 修改内容 - 三个官方插件的非 Skill 内容由 plugins/ 中的实体文件提供 - plugin-sources.json 声明源码 Skill 安装模式为 symlink - 源码执行 init.sh 时,Skill 以相对软链指向 vendor/cannbot-skills - 无参数执行 init.sh 时安装到 cannbot 仓库根目录 - 保护目标项目中已有的同名真实 Skill 目录 - 源码依赖清理脚本从 submodule 的实际 Skill 路径执行 - npm 安装继续使用自包含发布包并复制 Skill - 更新 Claude/Codex manifest 及安装说明 - 根 README 收敛为极简快速入门,安装命令通过 <plugin-id> 与官方插件表联动,并提供 ops-direct-invoke 示例 - 架构、目录、发布和维护信息移至内部文档 ## 验证 - npm --prefix script test:42/42 通过 - npm --prefix script run pack:check:通过 - npm --prefix script run pack:smoke:通过 - README 本地链接检查:通过 - 全新递归克隆后,三个插件均可无参数源码安装 - 仓库整体移动后相对 Skill 软链仍可解析 - 插件源码目录无 Git 软链、无安装写入 See merge request: cann/cannbot!4 | 5 天前 | |
refactor(ops-direct-invoke): 重构为 skill 驱动的多角色编排工作流,支持算子仓继承与静默模式 Co-authored-by: xutianze<xutianze2@huawei.com> # message auto-generated for no-merge-commit merge: !5 merge feat/ops-direct-invoke-skill-workflow into master refactor(ops-direct-invoke): 重构为 skill 驱动的多角色编排工作流,支持算子仓继承与静默模式 Created-by: xutianze Commit-by: xutianze Merged-by: cann-robot Description: ## 描述 本次重构将 ops-direct-invoke 插件的工作流实现从「静态 agents + workflows 目录」模型改为 **skill 驱动的多角色编排**模型,借鉴面向对象设计思想,将通用工作流沉淀为 CANNBot 维护的「基类」,各算子仓作为「子类」继承编排流程、仅覆写与自身耦合的领域知识,达到一套核心流程服务所有算子仓、消除重复建设的目的。 #### 主要变更 - **角色重构**:由 4 个角色(ascendc-kernel-architect / design-reviewer / developer / reviewer)扩展为 6 个专业角色(architect、developer、developer-code、developer-test、developer-doc、QA),PM 主 Agent 只调度不执行,执行与验收职责分离。 - **工作流引擎化**:删除旧 workflows/ 静态目录,新增 16 个子 skill: - ops-direct-invoke-workflow:统一流程编排(阶段 0-7、CP0-CP5 检查点、任务回退、静默模式) - ops-direct-invoke-workflow-maintain:维护红线与 SOLID 设计约束看护 - plugin-experience-summary / plugin-perf-iteration / plugin-pr-submit:可插拔流程插件,frontmatter 声明挂载点、init 注册到 .cannbot/settings.json,自闭环可单独触发 - repo-build-guide / repo-coding-rules / repo-knowledge / repo-op-templates / repo-test-develop:仓库领域知识 - workflow-cp0 ~ workflow-cp5:各检查点验收 skill - workflow-doc-templates / workflow-agent-permissions:文档模板与权限管理 - **跨平台权限守卫**:旧 hooks(hooks.json / run-hook.cmd / session-start-ops-direct)替换为按角色写权限隔离的 permission-guard hooks,覆盖 claude / codex / dsh / opencode / trae 五类 CLI(dsh 提供可选部署级 Cordis 守卫插件)。 - **配置统一与静默模式**:运行时配置收敛到 .cannbot/settings.json 唯一权威(工作流模式、插件注册与启用状态、问卷状态);新增静默模式(--mode silent 完全无人值守,支持会话内「开启/关闭静默模式」切换与权限预检)。 - **init.sh 重写为 constructor 模式**:装配 .cannbot/permissions、权限 hook、.cannbot/settings.json、依赖仓 clone 到 .cannbot/;example/init.sh 提供算子仓接入范例。 - **安装一致性**:install-helper 不再声明 installSkills / externalRepos,改由 init.sh 完成装配;dependency_validator.py 增强 DG-11 校验,支持从 agents/*.md frontmatter 解析 skill 白名单。 ## 测试 我们在 [CannBench](https://cannbench.com/leaderboard) 官方任务集上完成 53 个算子的全量实现与评测(方案名 direct-invoke@Claude deepseek-v4-flash),标准集用例通过率 98.8%、隐藏集 95.5%,总分 7383.64,平均加速比标准集 0.53、隐藏集 0.85。 ## 文档更新 - 新增 plugins-official/ops-direct-invoke/README.md:设计思想、知识分层、角色与流程概览、设计约束、静默模式说明 ## 类型标签 - [x] ♻️ 代码重构 ## 流水线故障排查 <!-- 如果下方的流水线检查未通过,可参考以下指引进行自助修复 --> See merge request: cann/cannbot!5 | 5 天前 | |
迁移 CANNBot 插件编排与交付仓库 Co-authored-by: chendunyang<chendunyang1@huawei.com> # message auto-generated for no-merge-commit merge: !1 merge migration/import-cannbot-test into master 迁移 CANNBot 插件编排与交付仓库 Created-by: qq_37913898 Commit-by: chendunyang Merged-by: cann-robot Description: ## 迁移说明 将 CANNBot 插件编排、交付能力和静态插件门户迁移至 cann/cannbot。 ## 主要内容 - 导入官方插件、统一安装器和 npm 发布工程; - 将算子测试插件切换为 ascendc-st-design,对应 ops/ascendc-st-design Skill,支持参数定义、测试因子、约束分析及 L0/L1/L2 ST 用例与覆盖报告; - 引入 vendor/cannbot-skills submodule,通过 gitlink 锁定可复现的 Skill 版本; - 支持同一项目安装多个官方插件,独立管理指令区块和安装记录; - 为组装包和安装目标随附插件与 Skills 许可证,明确 npm 混合许可证边界; - 增加发布前完整测试和实际 tgz/npm-bin smoke test; - 补齐 npm 新仓元数据、Skills 显式更新命令、HTTPS 插件链接和发布文档; - 纳入静态网站,更新算子测试卡片、插件文档、中英文文案和五客户端安装命令; - 已发布 npm 1.3.2,后续从 cann/cannbot 发布和维护; - 将全部迁移内容整理为基于目标仓 master 的单个提交。 ## 验证 - cd script && npm test:40 项测试全部通过; - cd script && npm run pack:check:npm dry-run 打包通过; - cd script && npm run pack:smoke:实际 tgz 安装和 cannbot npm bin 验证通过; - cd script && npm run prepublishOnly:完整发布前门禁通过; - 从公共 npm registry 全新下载 1.3.0,OpenCode、Codex、Claude Code、TRAE、DSH 五种安装目标全部通过; - 公共包内 ascendc-st-design Python 生成脚本可启动; - 网站已部署至 https://cann.cannbot.cn,首页、ascendc-st-design 插件直达页和静态资源公网验收通过; - GitCode 服务端 Hooks 检查通过。 See merge request: cann/cannbot!1 | 8 天前 | |
源码安装使用 submodule Skill 软链 Co-authored-by: chendunyang<chendunyang1@huawei.com> # message auto-generated for no-merge-commit merge: !4 merge migration/source-install-website-plugins into master 源码安装使用 submodule Skill 软链 Created-by: qq_37913898 Commit-by: chendunyang Merged-by: cann-robot Description: ## 修改内容 - 三个官方插件的非 Skill 内容由 plugins/ 中的实体文件提供 - plugin-sources.json 声明源码 Skill 安装模式为 symlink - 源码执行 init.sh 时,Skill 以相对软链指向 vendor/cannbot-skills - 无参数执行 init.sh 时安装到 cannbot 仓库根目录 - 保护目标项目中已有的同名真实 Skill 目录 - 源码依赖清理脚本从 submodule 的实际 Skill 路径执行 - npm 安装继续使用自包含发布包并复制 Skill - 更新 Claude/Codex manifest 及安装说明 - 根 README 收敛为极简快速入门,安装命令通过 <plugin-id> 与官方插件表联动,并提供 ops-direct-invoke 示例 - 架构、目录、发布和维护信息移至内部文档 ## 验证 - npm --prefix script test:42/42 通过 - npm --prefix script run pack:check:通过 - npm --prefix script run pack:smoke:通过 - README 本地链接检查:通过 - 全新递归克隆后,三个插件均可无参数源码安装 - 仓库整体移动后相对 Skill 软链仍可解析 - 插件源码目录无 Git 软链、无安装写入 See merge request: cann/cannbot!4 | 5 天前 |
CANNBot managed plugins
This directory contains the official CANNBot plugin definitions and non-Skill files:
ops-direct-invokeascendc-st-designmodel-infer-optimize
Each plugin declares the Skills it needs in plugin-sources.json. The actual Skill source is maintained in the vendor/cannbot-skills submodule and is not duplicated in this repository.
Each plugin's init.sh creates project Skill symlinks to the submodule. npm --prefix script run build:plugins instead copies the declared Skills into script/dist/plugins/<plugin>/skills/ for a self-contained npm package.
Each init.sh is a thin source adapter for the shared Node installer. Optional dependency repositories are declared in plugin-install.json.