Merged
add cannbot-dsh #271
sundayAdd on 27 days ago
add cannbot-dsh #271
Merged
sundayAdd on 27 days ago
sunday
sundayCollaborators
27 days ago

描述

新增 CANNBot DSH 独立插件,在原版 DeepSeek Harness 中提供算子开发工作台,将工作流选择、工作区准备、需求与附件输入、任务进度和原生对话衔接到同一入口。面向 Windows 桌面端与 Linux Web 端,通过 DSH 扩展接口集成。

主要改动

  • 工作台与任务交互:新增 CANNBot 品牌界面、工作区继承与目录选择、需求及附件输入、准备进度和失败重试;完善任务列表、任务停止/恢复及工作流进度展示,并调整原生编排器的集成逻辑。
  • 三个默认工作流:提供 Ascend C Flash 核函数开发(ops-direct-invoke-flash,置顶并默认选中)、算子开发(ops-direct-invoke)和 ACLNN / GEIR 注册算子开发(ops-registry-invoke)。以统一清单约束打包、目录和更新范围,并清理升级后已下线工作流的缓存。
  • 工作流独立管理:主插件与工作流资源分包,支持工作流安装、检查更新、逐项或批量更新、回退与日志查看;安装阶段准备默认依赖,启用时加载已安装资源。
  • 安装与发布:提供主包 @cannbot-plugin/cannbot-dsh、短包 cannbot-dsh 和独立一键安装器。主插件及短包版本为 1.0.0-alpha.1。支持本地源码安装和远端源码安装,按内容散列刷新同版本资源及缓存,补充构建、打包与工作流发布脚本。
  • 可靠性与安全:补充资源路径校验、文件锁与初始化失败恢复、子进程超时处理、临时目录清理及前端状态同步等处理;完善许可证声明、源码许可证头和安装器的 OAT 配置。

兼容要求:Node.js >=24.9;DSH 版本范围为 >=0.1.1-rc.1 <0.3.0。完整工作台使用 DSH 0.2 系列公开接口,旧版按接口能力兼容。开发构建依赖及准备方法见 dsh/DEVELOPMENT.md。

关联的Issue

https://gitcode.com/cann/cannbot/issues/167

测试

  • 新增前后端及安装器测试,覆盖工作台与工作区选择、任务列表及停止/恢复、工作流上下文与进度、包管理、初始化事务、源码资源装配、升级缓存裁剪和运行时可靠性等场景。
  • 根据提交 063f0527、562ac23e 的验证记录:tests/run-gates.sh 通过;变更的 97 个 JSON/YAML 文件解析通过;OAT.xml XML 格式检查通过。
  • 完整 TypeScript 类型检查尚不能据现有记录认定通过:提交记录注明缺少 DSH 开发依赖,仍有模块解析报错。配置依赖后的类型检查、Vitest 及 Host 集成测试步骤见 dsh/DEVELOPMENT.md;Host 集成测试需先构建工作流包夹具。
  • 截至本次描述更新,最近的 CI run #865 分析报告仍显示 SCA 未通过:6 项问题、3 个待确认文件,需按扫描报告继续处理。检视意见已解决不代表该门禁已通过。

以上通过结果引用已有提交和流水线记录,本次描述更新未重新执行构建或测试。

文档更新

  • dsh/README.md:工作台使用、兼容范围、源码安装及工作流管理。
  • dsh/DEVELOPMENT.md:源码结构、开发依赖、构建打包和测试步骤。
  • dsh/WORKFLOW_PUBLISHING.md:工作流分包与独立发布流程。
  • 短包、一键安装器说明及第三方许可说明;同步原生工作流编排器说明。

类型标签

流水线故障排查

UT_Test 未通过? 请在流水线表格的 UT_Test 行点击右侧的 >>>>> 下载 CANNBot-skills UT 测试报告(HTML),展开「UT Test 失败修复指南」,按报告定位和修复。

SCA 未通过? 请查看对应流水线分析报告中的扫描报告链接,逐项确认并处理开源合规问题。

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for sunday's contribution.)
sundaysundayCollaborators
27 days ago Created pull request, commit d3549ae6
CANN-robotCANN-robotCollaborators
27 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
27 days ago Comments:

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
harness ✅ 宋恺, 汤平川 (2/2) ✅ 宋恺 (1/1)
repo-cann/cannbot ✅ 宋恺, 汤平川 (2/2) ✅ 宋恺, 汤平川 (2/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
27 days ago Set qq_37913898,w00934874,dengguojie,jon_jin,rxtfeng,songkai111,xutianze,pingchuantang,hanrui22,wangzheng97,hedi0515,benwallace52,linghuis,OpSphere,zihengwang2 as approver
CANN-robotCANN-robotCollaborators
27 days ago Set qq_37913898,w00934874,dengguojie,jon_jin,rxtfeng,songkai111,xutianze,pingchuantang,hanrui22,wangzheng97,hedi0515,benwallace52,linghuis,OpSphere,zihengwang2 as approver
132 messages are collapsed here。 See more
songkai111
songkai111Collaborators
24 days ago Comments:

/approve

likedislike
songkai111
songkai111Collaborators
24 days ago Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
24 days ago Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
24 days ago Closed associated issue
CANN-robotCANN-robotCollaborators
24 days ago Merged pull request