lerqian883-alt/dsh-plugin-ml-phase-gate ↗★ 3
dsh-plugin-ml-phase-gate
DSH ML phase gate plugin with configurable activation, evidence gates, and portable project bootstrap. 项目管理工具。适合需要对ML项目各阶段进行自动化指标验证与状态管理的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lerqian883-alt/dsh-plugin-ml-phase-gateREADME
Read the full README ↗推荐方式:使用 bootstrap
在插件仓库中执行:
$projectRoot = "D:\ML\my-project"
node scripts/bootstrap-project.mjs `
--root $projectRoot `
--template standard
也可以先进入目标项目,再省略 --root:
cd D:\ML\my-project
node C:\path\to\dsh-plugin-ml-phase-gate\scripts\bootstrap-project.mjs `
--template standard
bootstrap 会在目标项目根目录下创建:
.dsh-ml-phase/
phases.yml
state.json
work/
verify.*
checks/
outputs/
可用参数:
--root
指定 ML 项目根目录
--platform auto|windows|posix
--template standard|node
--force 覆盖管理路径中的冲突文件
--dry-run 只显示计划,不写文件
生成的检查脚本是占位检查,默认不会伪造通过。你需要把它们替换成真正能证明阶段完成的检查。
配置
默认配置:
- id: ml-phase-gate
name: dsh-plugin-ml-phase-gate
config:
activationMode: auto
watchAutoRun: false
activationMode
| 模式 | 行为 |
|---|---|
auto | 有阶段快照时显示;非 ML 项目安静降级 |
always | 没有阶段快照时也显示“未开始” |
off | Host 不注册能力,Dock/Audit 不显示 ML 内容 |
watchAutoRun
默认:
watchAutoRun: false
含义是文件变化只标记数据可能过期,不会自动执行项目验证脚本。
只有显式打开后,才会在文件变化时自动运行检查:
watchAutoRun: true
这会启动真实子进程。除非你明确知道项目脚本的行为,否则建议保持关闭。