yinfoyuan/dsh-cicd ↗★ 0

dsh-cicd

Per-project CI/CD pipelines for DeepSeek Harness: list, trigger, track, read logs, and cancel. Currently ships an Alibaba Cloud DevOps (Yunxiao Flow) adapter. 适合需要直接在DSH中管理和触发云效流水线的开发者。

Package
dsh-cicd
Compatibility
Unverified
Harness peer range
>=0.2.0-rc.2 <0.3.0
Cordis peer range
>=4.0.2 <5
Version
0.2.0
License
MIT
Last updated
Oct 23, 2026

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yinfoyuan/dsh-cicd

3. 手动配置(可选)

如果不想用 skill,在项目根创建 .dsh/cicd.json:

{
  "pipelines": {
    "deploy-test": {
      "type": "yunxiao",
      "title": "部署测试环境",
      "organizationId": "5ebbc0228123212b59xxxxx",
      "pipelineId": "123456",
      "environment": "test",
      "confirm": true
    }
  }
}
  • organizationId:从带 /organizations// 的链接里取;中心版必填;
  • pipelineId:纯数字,例如 123456;
  • 链接里没有组织时,skill / 手动配置都需要先确认组织。

配置字段

字段必填说明
type是固定 yunxiao(也接受 devops / flow)
title是展示名,出现在列表、通知里
organizationId中心版必填云效组织 ID
pipelineId是云效流水线数字 ID
environment否环境标签:development / test / staging / production,界面显示中文
confirm否true 时模型必须显式带 confirm:true 才能触发;部署类建议开启
branchMode否多分支默认策略:append / replace / off
params否云效运行参数,按 JSON 对象传入

tokenEnv 可省略,默认 YUNXIAO_TOKEN。token 不会写进 cicd.json。

日常使用

说法实际工具
列一下流水线cicd_list
跑 deploy-testcicd_run
现在到哪一步了cicd_status
看下失败日志cicd_logs
取消这次运行cicd_cancel
冲突在哪、哪些文件cicd_conflict(只读)

触发类流水线(confirm: true)需要用户同意后,模型才会带 confirm: true 执行。

触发后不用一直等,也不该等:

  • cicd_run 立即返回 runId,触发完成本轮就结束;
  • 后台跟踪阶段变化和结束,主动弹 toast;
  • 模型不要用 Start-Sleep / 循环 cicd_status 等结果;用户之后要查进度时再用 cicd_status(只查一次,不阻塞);
  • 如果用户在触发之外还有后续诉求(结束后继续处理、关注冲突/异常):触发时带 followUp: true,终态或检测到冲突时会自动唤醒模型继续处理(默认关闭,只发 toast);
  • 用户主动取消后仍会有一条「已取消」toast,但不会再唤醒模型;
  • 错过了通知,点会话头部右上角的消息图标看历史。