dsh-lean-router 1.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/NOTICE.md +2 -4
  2. package/README.en.md +47 -43
  3. package/README.md +45 -41
  4. package/cordis.patch.yml +4 -26
  5. package/docs/agents/domain.md +1 -1
  6. package/docs/architecture.en.md +51 -86
  7. package/docs/architecture.md +46 -77
  8. package/docs/changelog.en.md +24 -1
  9. package/docs/changelog.md +24 -1
  10. package/docs/configuration.en.md +25 -56
  11. package/docs/configuration.md +14 -45
  12. package/docs/install.en.md +2 -2
  13. package/docs/install.md +2 -2
  14. package/docs/quickstart.en.md +29 -34
  15. package/docs/quickstart.md +11 -16
  16. package/docs/release-checklist.en.md +3 -4
  17. package/docs/release-checklist.md +5 -6
  18. package/docs//350/267/257/347/224/261-/350/256/276/350/256/241/350/257/264/346/230/216.md +2 -2
  19. package/lib/index.js +9 -61
  20. package/lib/router.js +15 -148
  21. package/package.json +4 -15
  22. package/presets/base/frag-lean.patch.yml +1 -5
  23. package/presets/base/frag-preset.patch.yml +1 -3
  24. package/presets/base/frag-router.patch.yml +1 -12
  25. package/presets/base/frag-toolface.patch.yml +0 -2
  26. package/presets/base/lean-router.patch.yml +1 -4
  27. package/scripts/doctor.mjs +15 -10
  28. package/test/integration-preset.test.mjs +4 -3
  29. package/test/plugin-entry.test.mjs +15 -50
  30. package/test/router.test.mjs +7 -47
  31. package/assets/gating.weights.json +0 -13
  32. package/assets/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
  33. package/assets/skills/ask-matt/SKILL.md +0 -80
  34. package/assets/skills/ask-matt/agents/openai.yaml +0 -5
  35. package/assets/skills/chief-of-staff/SKILL.md +0 -76
  36. package/assets/skills/chief-of-staff/agents/openai.yaml +0 -5
  37. package/assets/skills/code-review/SKILL.md +0 -91
  38. package/assets/skills/code-review/agents/openai.yaml +0 -5
  39. package/assets/skills/codebase-design/DEEPENING.md +0 -37
  40. package/assets/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
  41. package/assets/skills/codebase-design/SKILL.md +0 -116
  42. package/assets/skills/codebase-design/agents/openai.yaml +0 -5
  43. package/assets/skills/diagnosing-bugs/SKILL.md +0 -140
  44. package/assets/skills/diagnosing-bugs/agents/openai.yaml +0 -5
  45. package/assets/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
  46. package/assets/skills/domain-modeling/ADR-FORMAT.md +0 -47
  47. package/assets/skills/domain-modeling/GLOSSARY-FORMAT.md +0 -60
  48. package/assets/skills/domain-modeling/SKILL.md +0 -76
  49. package/assets/skills/domain-modeling/agents/openai.yaml +0 -5
  50. package/assets/skills/grilling/SKILL.md +0 -52
  51. package/assets/skills/grilling/agents/openai.yaml +0 -5
  52. package/assets/skills/handoff/SKILL.md +0 -17
  53. package/assets/skills/handoff/agents/openai.yaml +0 -5
  54. package/assets/skills/implement/SKILL.md +0 -55
  55. package/assets/skills/implement/agents/openai.yaml +0 -5
  56. package/assets/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
  57. package/assets/skills/improve-codebase-architecture/SKILL.md +0 -72
  58. package/assets/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
  59. package/assets/skills/loop-me/SKILL.md +0 -33
  60. package/assets/skills/loop-me/agents/openai.yaml +0 -5
  61. package/assets/skills/pr/CREDITS.md +0 -3
  62. package/assets/skills/pr/SKILL.md +0 -172
  63. package/assets/skills/pr/agents/openai.yaml +0 -5
  64. package/assets/skills/prototype/LOGIC.md +0 -67
  65. package/assets/skills/prototype/SKILL.md +0 -28
  66. package/assets/skills/prototype/UI.md +0 -112
  67. package/assets/skills/prototype/agents/openai.yaml +0 -5
  68. package/assets/skills/research/SKILL.md +0 -14
  69. package/assets/skills/research/agents/openai.yaml +0 -5
  70. package/assets/skills/retro/SKILL.md +0 -45
  71. package/assets/skills/retro/agents/openai.yaml +0 -5
  72. package/assets/skills/setup-matt-pocock-skills/SKILL.md +0 -121
  73. package/assets/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
  74. package/assets/skills/setup-matt-pocock-skills/domain.md +0 -51
  75. package/assets/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -50
  76. package/assets/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
  77. package/assets/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
  78. package/assets/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
  79. package/assets/skills/setup-ts-deep-modules/SKILL.md +0 -103
  80. package/assets/skills/setup-ts-deep-modules/agents/openai.yaml +0 -5
  81. package/assets/skills/setup-ts-deep-modules/dependency-cruiser.config.cjs +0 -95
  82. package/assets/skills/software-factory/EXAMPLE-TASKS.md +0 -80
  83. package/assets/skills/software-factory/GIT-HOSTS.md +0 -84
  84. package/assets/skills/software-factory/OBSERVABILITY-PLATFORMS.md +0 -75
  85. package/assets/skills/software-factory/RUNNERS.md +0 -94
  86. package/assets/skills/software-factory/SKILL.md +0 -99
  87. package/assets/skills/software-factory/TICKET-TRACKERS.md +0 -85
  88. package/assets/skills/tdd/SKILL.md +0 -40
  89. package/assets/skills/tdd/agents/openai.yaml +0 -5
  90. package/assets/skills/tdd/mocking.md +0 -59
  91. package/assets/skills/tdd/tests.md +0 -77
  92. package/assets/skills/teach/GLOSSARY-FORMAT.md +0 -35
  93. package/assets/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
  94. package/assets/skills/teach/MISSION-FORMAT.md +0 -31
  95. package/assets/skills/teach/RESOURCES-FORMAT.md +0 -32
  96. package/assets/skills/teach/SKILL.md +0 -141
  97. package/assets/skills/teach/agents/openai.yaml +0 -5
  98. package/assets/skills/to-questionnaire/SKILL.md +0 -55
  99. package/assets/skills/to-questionnaire/agents/openai.yaml +0 -5
  100. package/assets/skills/to-spec/SKILL.md +0 -76
  101. package/assets/skills/to-spec/agents/openai.yaml +0 -5
  102. package/assets/skills/to-tickets/SKILL.md +0 -106
  103. package/assets/skills/to-tickets/agents/openai.yaml +0 -5
  104. package/assets/skills/triage/AGENT-BRIEF.md +0 -207
  105. package/assets/skills/triage/OUT-OF-SCOPE.md +0 -105
  106. package/assets/skills/triage/SKILL.md +0 -113
  107. package/assets/skills/triage/agents/openai.yaml +0 -5
  108. package/assets/skills/wait-what/SKILL.md +0 -8
  109. package/assets/skills/wait-what/agents/openai.yaml +0 -5
  110. package/assets/skills/wayfinder/SKILL.md +0 -129
  111. package/assets/skills/wayfinder/agents/openai.yaml +0 -5
  112. package/assets/skills/wizard/SKILL.md +0 -46
  113. package/assets/skills/wizard/agents/openai.yaml +0 -5
  114. package/assets/skills/wizard/template.sh +0 -223
  115. package/assets/skills/writing-beats/SKILL.md +0 -44
  116. package/assets/skills/writing-beats/agents/openai.yaml +0 -5
  117. package/assets/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
  118. package/assets/skills/writing-for-agents/SKILL.md +0 -83
  119. package/assets/skills/writing-for-agents/agents/openai.yaml +0 -5
  120. package/assets/skills/writing-fragments/SKILL.md +0 -80
  121. package/assets/skills/writing-fragments/agents/openai.yaml +0 -5
  122. package/assets/skills/writing-shape/SKILL.md +0 -59
  123. package/assets/skills/writing-shape/agents/openai.yaml +0 -5
  124. package/assets/skills.matrix.json +0 -311
  125. package/docs/HANDOFF-2026-11-22.md +0 -155
  126. package/docs/matrix.en.md +0 -57
  127. package/docs/matrix.md +0 -57
  128. package/docs//346/212/200/350/203/275/351/227/250/346/216/247-/350/256/276/350/256/241/350/257/264/346/230/216.md +0 -134
  129. package/docs//351/235/242/346/235/277-/350/256/276/350/256/241/350/257/264/346/230/216.md +0 -205
  130. package/lib/audit-commands.js +0 -289
  131. package/lib/audit-sink.js +0 -137
  132. package/lib/client.js +0 -203
  133. package/lib/gate-runner.js +0 -179
  134. package/lib/skill-provider.js +0 -167
  135. package/lib/skillgate.js +0 -396
  136. package/lib/skills-panel.js +0 -322
  137. package/scripts/check-drift.mjs +0 -24
  138. package/skills.manifest.json +0 -287
  139. package/test/audit-commands.test.mjs +0 -325
  140. package/test/audit-sink.test.mjs +0 -150
  141. package/test/client-plugin.test.mjs +0 -117
  142. package/test/gate-run.test.mjs +0 -173
  143. package/test/manifest.test.mjs +0 -25
  144. package/test/provider.test.mjs +0 -21
  145. package/test/skillgate-provider.test.mjs +0 -122
  146. package/test/skillgate.test.mjs +0 -217
  147. package/test/skills-panel.test.mjs +0 -114
  148. package/ui/go.json +0 -19
@@ -1,11 +1,11 @@
1
1
  # 快速上手(quickstart)
2
2
 
3
- > 本包 **dsh-lean-router** 是一张 DeepSeek Harness(DSH)cordis 插件卡:lean 省 token × 思考链路由 × `code_run` 工具遮蔽 × mattpocock 31 技能自动调用,四个机制合并在一个预设里。中文为第一语言,本篇的英文版是 [quickstart.en.md](./quickstart.en.md)(本包双语文档采用「中文默认 + 英文 .en.md 独立文件」方案)。
3
+ > 本包 **dsh-lean-router** 是一张 DeepSeek Harness(DSH)cordis 插件卡:lean 省 token × 思考链路由 × `code_run` 工具遮蔽,三个机制合并在一个预设里。中文为第一语言,英文版见 [quickstart.en.md](./quickstart.en.md)。
4
4
 
5
5
  ## 前置条件
6
6
 
7
7
  - DSH `>=0.2.1-rc.5 <0.2.4-0`(实测基线 0.2.3-alpha.2;见 package.json engines 字段)。
8
- - 本包已发布到 npm(`dsh-lean-router`),推荐路径 B;改代码调试走路径 A。DSH 处于 developer preview,版本越界将以 engines 闸 + doctor 自检 + warn 黄条应对,不做静默降级。
8
+ - 本包已发布到 npm(`dsh-lean-router`),推荐路径 B;改代码调试走路径 A。DSH 处于 developer preview,版本越界将以 engines 闸 + doctor 自检应对,不做静默降级。
9
9
 
10
10
  ## 安装
11
11
 
@@ -20,22 +20,20 @@ dsh plugin --profile desktop add "link:D:\path\to\dsh-lean-router"
20
20
  ### 路径 B:npm 安装(推荐)
21
21
 
22
22
  ~~~powershell
23
- dsh plugin --profile desktop add npm:dsh-lean-router@1.1.0
23
+ dsh plugin --profile desktop add npm:dsh-lean-router@2.0.0
24
24
  ~~~
25
25
 
26
- (两条路径与 scripts/install.mjs 输出的说明一致;真安装器、认领边界与 `--uninstall` 回滚归票 09。)
27
-
28
26
  ### 缺依赖时的 stub 引导行为
29
27
 
30
28
  本包依赖 `@deepseek-ai/dsh-tool-executor-native`(package.json dependencies)。若该依赖未随包解析(如手动复制目录安装),工具遮蔽层不会静默坏掉:executor 会退化为安装提示 stub——首次调用 `describe` 直接抛出含安装指引的错误(lib/toolface/executor.js L57-63),错误信息为:
31
29
 
32
30
  > dsh-lean-router/toolface requires the dependency "@deepseek-ai/dsh-tool-executor-native". Install dsh-lean-router together with its dependencies (dsh plugin add resolves them) or upgrade the package; ...
33
31
 
34
- 手动补装:在该包目录 `npm install`,或用 `dsh plugin add` 重装以让宿主解析依赖树(fixture 路径注意事项票 09 补)。
32
+ 手动补装:在该包目录 `npm install`,或用 `dsh plugin add` 重装以让宿主解析依赖树。
35
33
 
36
34
  ## 首次使用
37
35
 
38
- 1. 新会话选择预设:**Lean router**(13 条纪律 + 3 软门 + 路由)或 **Lean router (balance)**(3 条纪律,v1 暂不含路由指令)。
36
+ 1. 新会话选择预设:**Lean router**(13 条纪律 + 3 软门 + 路由)或 **Lean router (balance)**(3 条纪律,暂不含路由指令)。
39
37
  2. 可选显式路由指令(写在首条真实用户消息里):
40
38
 
41
39
  ~~~text
@@ -44,19 +42,18 @@ dsh plugin --profile desktop add npm:dsh-lean-router@1.1.0
44
42
  [router] band=auto
45
43
  ~~~
46
44
 
47
- band 含义见 [architecture.md](./architecture.md)「三带」。省略指令时按关键词自动分类,平票归 `weak`(模型自分类)。
45
+ 省略指令时按关键词自动分类,平票归 `weak`(模型自分类)。
48
46
  3. 常用命令:
49
47
  - `/band`:查看或切换路由带(spec/react/weak/auto)。
50
- - `/skill`:列出可用技能与 invocation 开关;`/skill <name>` 看单个技能。
51
48
  - `/compact`:手动触发上下文压缩(compaction 组)。
52
49
  4. 工具遮蔽是自动的:模型工具列表只出现预设自有工具 + `code_run`;MCP 与预设外插件工具在 `code_run` 程序内用 `tools.code_tools_search(...)` 发现后调用。直呼被遮蔽名会被拒绝并提示先搜索。
53
50
 
54
51
  ## 体检
55
52
 
56
53
  ~~~powershell
57
- node scripts/doctor.mjs # 7 项结构自检(包名/engines/patch/预设行/manifest 31/目录 31/矩阵 13-10-8);build --check 反向一致为第 8 道把关
54
+ node scripts/doctor.mjs # 11 项结构自检(包名/engines/patch/预设行/路由行/无技能 provider 行/无客户端宿主行/三个入口文件/客户端 bundle 已移除)
58
55
  npm run verify # build --check(cordis.patch.yml 反向逐字节一致)+ doctor
59
- npm test # node --test test/(20 个测试文件)
56
+ npm test # node --test "test/*.test.mjs"
60
57
  ~~~
61
58
 
62
59
  ## 术语表(全包统一)
@@ -66,15 +63,13 @@ npm test # node --test test/(20 个测试文件)
66
63
  | lean | 省 token 的四机制总称(轮次压缩/输出裁剪/关插件/行为纪律),外加两个加料件(交付门/并发标记) |
67
64
  | 遮蔽(masking) | 把预设不拥有的工具从模型请求面隐藏,程序内仍可调用(toolface 层) |
68
65
  | 路由(routing) | 把任务分到三条行为带并在近场注入对应引导(router 层) |
69
- | 门控(gating) | 每轮对 31 技能全量打分、只放行高分技能进近场通道(skillgate 层) |
70
66
  | 带(band) | spec(inspect-and-plan)/ react(hands-on-production)/ weak(model-routed)三带 |
71
67
  | 近场引导 | 通过 dynamic context 注入的固定文本:同一带内文本恒定、宿主判等零写入 |
72
68
 
73
- ## 已知 v1 现状(如实标注,勿当承诺)
69
+ ## 现状(如实标注,勿当承诺)
74
70
 
75
- - **audit 面板进行中**(票 07 在飞):门控审计通道(内存环形缓冲 + 订阅)已就绪,面板 UI 未验收。
76
- - balance 预设行暂不含路由指令(v1 裁定)。
71
+ - balance 预设行暂不含路由指令。
77
72
  - plan-mode 政策段保留 flash 原文(含 PTC `run_code` 句)。
78
- - 门控每轮评分走注入缝而非重新调 `list()`:宿主 `SkillRegistry.collect()` 缓存生效时审计标注 `mode: "fallback-cached-list"`。
73
+ - 2.0.0 起技能子系统(31 技能、每轮门控、审计、面板)已整体移除。
79
74
 
80
75
  详见 [architecture.md](./architecture.md)、[configuration.md](./configuration.md)、[changelog.md](./changelog.md)。
@@ -22,7 +22,6 @@ Package `dsh-lean-router` · version `1.0.0` · repo https://github.com/ShawnSun
22
22
  | Tests | `npm test` | `tests 200 / pass 199 / fail 0 / skipped 1` |
23
23
  | Doctor | `npm run doctor` | 7 PASS |
24
24
  | Build | `npm run build -- --check` | PASS, no rewrite |
25
- | Drift | `npm run drift` | no drift |
26
25
  | CI YAML | `python -c "import yaml; yaml.safe_load(open(r'.github/workflows/ci.yml', encoding='utf-8')); print('YAML_OK')"` | prints `YAML_OK` |
27
26
  | Pack smoke | `npm pack` → temp dir `npm i <tgz>` → `node -e "require('dsh-lean-router')"` | installs, 3 exports |
28
27
 
@@ -71,12 +70,12 @@ Verify: `git tag -l "v1.0.0"`, `gh release view v1.0.0`.
71
70
 
72
71
  ```powershell
73
72
  dsh plugin install dsh-lean-router
74
- dsh --dump-config | Select-String "skill-lean-router"
73
+ dsh --dump-config | Select-String "lean-router-router"
75
74
  dsh plugin uninstall dsh-lean-router
76
- dsh --dump-config | Select-String "skill-lean-router" # expect no output
75
+ dsh --dump-config | Select-String "lean-router-router" # expect no output
77
76
  ```
78
77
 
79
- Pass: install exits 0; `--dump-config` shows `skill-lean-router`; after uninstall it disappears with no leftover files. Do not restart a running DSH app.
78
+ Pass: install exits 0; `--dump-config` shows `lean-router-router`; after uninstall it disappears with no leftover files. Do not restart a running DSH app.
80
79
 
81
80
  ## Scope guard
82
81
 
@@ -19,10 +19,9 @@
19
19
 
20
20
  | 检查 | 命令 | 通过判据 |
21
21
  |---|---|---|
22
- | 全仓测试 | `npm test` | `tests 200 / pass 199 / fail 0 / skipped 1`(1 skip = 宿主 yaml-asar 不可读,已知限制) |
23
- | 体检 | `npm run doctor` | 7 PASS |
22
+ | 全仓测试 | `npm test` | `tests 157 / pass 156 / fail 0 / skipped 1`(1 skip = 宿主 yaml-asar 不可读,已知限制) |
23
+ | 体检 | `npm run doctor` | 11 PASS |
24
24
  | 构建一致性 | `npm run build -- --check` | PASS,无重写 |
25
- | 漂移 | `npm run drift` | 无漂移 |
26
25
  | CI YAML | `python -c "import yaml; yaml.safe_load(open(r'.github/workflows/ci.yml', encoding='utf-8')); print('YAML_OK')"` | 打印 `YAML_OK` |
27
26
  | 打包冒烟 | `npm pack` → 临时目录 `npm i <tgz>` → `node -e "require('dsh-lean-router')"` | 安装成功且导入返回 3 个导出 |
28
27
 
@@ -104,18 +103,18 @@ dsh plugin install dsh-lean-router
104
103
  # 或:npm i -g dsh-lean-router 后按 DSH 文档挂到 profile
105
104
 
106
105
  # 5.2 装配检查(不启动对话,只看配置合成结果)
107
- dsh --dump-config | Select-String "skill-lean-router|dsh-lean-router"
106
+ dsh --dump-config | Select-String "lean-router-router|dsh-lean-router"
108
107
 
109
108
  # 5.3 卸载
110
109
  dsh plugin uninstall dsh-lean-router
111
110
 
112
111
  # 5.4 卸载后确认无残留
113
- dsh --dump-config | Select-String "skill-lean-router" # 期望无输出
112
+ dsh --dump-config | Select-String "lean-router-router" # 期望无输出
114
113
  ```
115
114
 
116
115
  **验证判据**:
117
116
  1. 安装命令退出码 0;
118
- 2. `--dump-config` 输出里能查到本插件(plugin 名 `skill-lean-router`);
117
+ 2. `--dump-config` 输出里能查到本插件(plugin 名 `lean-router-router`);
119
118
  3. 卸载后 `--dump-config` 不再出现该插件,且 profile 配置目录无残留文件;
120
119
  4. 期间**不重启**正在运行的 DSH 应用、不写 `~/.dsh`(如必须,由主人手动执行)。
121
120
 
@@ -29,7 +29,7 @@
29
29
  | 交付物 | 内容 |
30
30
  |---|---|
31
31
  | `lib/bands.js` | 三带配置表 `BANDS`(persona 变体文本常量 + 工具面宽窄标记 + 引导固定文本)、`classifyTask`、`parseRouterDirective`、`isComplexTask`、`diligenceReminder` |
32
- | `lib/router.js` | 路由插件 `apply`:首轮捕获、指令解析、近场引导注入、勤勉自检、`/band` `/skill` 命令;导出 `ROUTER_PROMPT` 与 `ROUTER_INJECTION_NOTES` |
32
+ | `lib/router.js` | 路由插件 `apply`:首轮捕获、指令解析、近场引导注入、勤勉自检、`/band` 命令;导出 `ROUTER_PROMPT` 与 `ROUTER_INJECTION_NOTES` |
33
33
  | `presets/base/frag-router.patch.yml` | 顶层列表续项(钩子行 + 命令行),由 `scripts/build-bundle.mjs` 续接 |
34
34
  | `test/router-bands.test.mjs` `test/router.test.mjs` | 纯函数与假 ctx 集成单测,21/21 宿主纯 node 全绿 |
35
35
 
@@ -88,7 +88,7 @@
88
88
  - id: lean-router-router # 钩子行:捕获 + 引导 + 勤勉
89
89
  name: dsh-lean-router/router
90
90
  config: { hooks: true, commands: false, diligenceEvery: 10 }
91
- - id: lean-router-commands # 命令行:/band /skill
91
+ - id: lean-router-commands # 命令行:/band
92
92
  name: dsh-lean-router/router
93
93
  config: { hooks: false, commands: true }
94
94
  ```
package/lib/index.js CHANGED
@@ -1,64 +1,12 @@
1
- // dsh-lean-router - cordis 插件入口
1
+ // dsh-lean-router - cordis 插件入口(包根)
2
2
  //
3
- // 1.0.5 修:宿主层需要以裸包名 dsh-lean-router 挂一行,否则 dsh-client-modules 扫不到本包
4
- // 的 dsh.client 声明,客户端 bundle 不会加载(顶栏按钮因此不出现)。
5
- //
6
- // 但 inject = ["skills"] 会让宿主层那一行永远停在“等待依赖”——skills 服务由预设里的
7
- // @deepseek-ai/dsh-skill-filesystem 提供,宿主作用域没有它。插件不 apply,扫描就看不到活跃
8
- // 条目。
9
- //
10
- // 1.0.6 修:cordis 的 inject 只有两种形状——服务名数组,或「服务名 → 拦截配置」映射
11
- // (registry.ts: Inject<M> = (keyof M)[] | { [K in keyof M]?: M[K] })。写成
12
- // { required: [], optional: ["skills"] } 会被当成两个叫 required / optional 的服务,
13
- // 宿主层那行永远 PENDING(0.2.3 实机诊断:pending (waiting for services: required, optional))。
14
- // 改为「无必需依赖」+ apply 内 ctx.inject(["skills"], …):宿主层立刻激活(客户端 bundle 才会
15
- // 被 dsh-client-modules 扫到),预设层等 skills 就绪后再注册 provider。
16
- import { appendFileSync, mkdirSync } from "node:fs";
17
- import { homedir } from "node:os";
18
- import { join } from "node:path";
19
- import { makeProvider } from "./skill-provider.js";
20
- import { getAuditChannel } from "./skillgate.js";
21
-
22
- export const name = "skill-lean-router";
3
+ // 2.0.0:技能子系统(31 技能、每轮门控打分、审计落盘、技能面板 UI 与客户端 bundle)已整体移除,
4
+ // 这里不再注册任何东西,只保留一个可被加载的合法插件形状:
5
+ // - inject 必须是服务名数组(cordis 的 Inject 只有数组或「服务名 → 拦截配置」映射两种形状;
6
+ // 写成 { required, optional } 会被当成两个服务名,宿主行永远 PENDING)。
7
+ // - apply 必须返回 undefined(返回普通对象会触发 cordis 的 Invalid effect)。
8
+ // 真正的功能挂在 lib/router.js(路由 + /band)、lib/lean/*(省 token)、lib/toolface/*(工具遮蔽)。
9
+ export const name = "lean-router";
23
10
  export const inject = [];
24
11
 
25
- /** 启动自检:把宿主层是否 apply、ctx 上有哪些能力,写进 ~/.dsh/lean-router/boot.log。 */
26
- function probe(line) {
27
- try {
28
- const dir = join(homedir(), ".dsh", "lean-router");
29
- mkdirSync(dir, { recursive: true });
30
- appendFileSync(join(dir, "boot.log"), new Date().toISOString() + " " + line + "\n", "utf8");
31
- } catch {
32
- // 自检失败绝不影响插件本身
33
- }
34
- }
35
-
36
- export function apply(ctx, options) {
37
- const cfg = options ?? {};
38
- try {
39
- probe(
40
- "apply: options=" + JSON.stringify(cfg) +
41
- " hasSkills=" + Boolean(ctx.skills) +
42
- " slots=" + typeof ctx.slots +
43
- " register=" + typeof ctx.register +
44
- " inject=" + typeof ctx.inject
45
- );
46
- } catch {}
47
-
48
- if (cfg.provider === false) return;
49
- const register = (scope) => {
50
- if (!scope.skills || typeof scope.skills.registerProvider !== "function") {
51
- probe("skip provider: ctx.skills 不可用(宿主作用域属正常)");
52
- return;
53
- }
54
- const rank = typeof cfg.rank === "number" ? cfg.rank : 350;
55
- scope.skills.registerProvider(() => makeProvider({ rank, audit: getAuditChannel() }));
56
- };
57
- // ctx.inject(deps, cb):服务可用后运行 cb,服务变化时自动重跑(cordis 官方语义)。
58
- // 返回值是子 fiber,apply 必须继续返回 undefined,别把 fiber 当 effect 交回去。
59
- if (typeof ctx.inject === "function") {
60
- ctx.inject(["skills"], register);
61
- } else {
62
- register(ctx);
63
- }
64
- }
12
+ export function apply() {}
package/lib/router.js CHANGED
@@ -10,11 +10,9 @@
10
10
  // 每步累积,违反缓存友好约束(证据见 docs/路由-设计说明.md 接缝表)。
11
11
  // 3. 勤勉自检:每 diligenceEvery 轮在引导文本尾部追加一段勤勉提醒(轮次号入文,
12
12
  // 非 10 的倍数轮文本不变、零写入)。
13
- // 4. 命令:/band 显式改档(人在回路)、/skill 列出可用技能与 invocation 开关,
14
- // 走 ctx.commands.register 宿主命令缝。
15
- // 5. 每轮门控(票 09):gate:true 时 pre-step 近场求值里调 skillgate.round(),hint
16
- // 追加进近场引导文本、决策经共享审计通道发出(接线见 lib/gate-runner.js 与
17
- // docs/面板-设计说明.md §9.3 已接线);gate 默认关 = 一切不变。
13
+ // 4. 命令:/band 显式改档(人在回路),走 ctx.commands.register 宿主命令缝。
14
+ //
15
+ // 2.0.0:技能子系统(31 技能、每轮门控打分、审计落盘、技能面板 UI)已整体移除。
18
16
  //
19
17
  // 路由状态存 agent 会话作用域 WeakMap(keyed by agent),不污染全局;
20
18
  // 禁直接改 persona —— ROUTER_PROMPT 以导出常量交付,拼接点见 ROUTER_INJECTION_NOTES。
@@ -29,11 +27,6 @@ import {
29
27
  explainClassification,
30
28
  parseRouterDirective,
31
29
  } from "./bands.js";
32
- import { defaultAuditPath, wireAuditSink } from "./audit-sink.js";
33
- import { executeAuditCommand } from "./audit-commands.js";
34
- import { getAuditChannel } from "./skillgate.js";
35
- import { createGateRunner } from "./gate-runner.js";
36
- import { executeSkillsPanelCommand } from "./skills-panel.js";
37
30
 
38
31
  /** 三带配置表(re-export,满足单入口消费)。 */
39
32
  export { BANDS, BAND_IDS, DIRECTIVE_BAND_IDS, classifyTask, isComplexTask, parseRouterDirective, diligenceReminder } from "./bands.js";
@@ -76,8 +69,8 @@ export const ROUTER_INJECTION_NOTES = {
76
69
  /** 插件名(cordis loader 诊断用)。 */
77
70
  export const name = "lean-router-router";
78
71
 
79
- /** 依赖的宿主服务:agents(ctx.on 事件)、systemPrompt(动态 context)、commands、skills。 */
80
- export const inject = ["agents", "systemPrompt", "commands", "skills"];
72
+ /** 依赖的宿主服务:agents(ctx.on 事件)、systemPrompt(动态 context)、commands。 */
73
+ export const inject = ["agents", "systemPrompt", "commands"];
81
74
 
82
75
  /** 从用户消息 content 里提取纯文本(防御嵌套与字符串 content)。 */
83
76
  function messageText(message) {
@@ -149,10 +142,8 @@ function capture(states, agent, message, turn, skipInherited) {
149
142
 
150
143
  /**
151
144
  * 渲染该 agent 当前应渲染的近场引导文本(含任务回显与勤勉自检;未路由返回空串)。
152
- * 票 09 加法:第 4 参 gateHint 为每轮门控的 hint 文本(lib/gate-runner.js);空串/
153
- * 缺省不追加,近场文本与现状逐字符一致;非空时按行续接在勤勉自检之后。
154
145
  */
155
- function guideTextFor(states, agent, diligenceEvery, gateHint) {
146
+ function guideTextFor(states, agent, diligenceEvery) {
156
147
  const state = stateOf(states, agent);
157
148
  if (state === null || state.band === null) return "";
158
149
  const band = BANDS[state.band];
@@ -162,39 +153,26 @@ function guideTextFor(states, agent, diligenceEvery, gateHint) {
162
153
  if (diligenceEvery > 0 && Number.isSafeInteger(state.turn) && state.turn > 0 && state.turn % diligenceEvery === 0) {
163
154
  text += "\n" + diligenceReminder(state.turn);
164
155
  }
165
- if (typeof gateHint === "string" && gateHint.length > 0) text += "\n" + gateHint;
166
156
  return text;
167
157
  }
168
158
 
169
159
  /** 校验插件 options(未知键报错;仿宿主 plan-mode resolveConfig 的失败尽早原则)。 */
170
160
  function resolveOptions(options) {
171
161
  const cfg = options ?? {};
162
+ // 2.0.0:audit / auditPath / weightsPath / gate 只为兼容旧 patch 配置而保留在允许键里,
163
+ // 行为已整体移除(技能门控子系统下线);旧配置不再让插件启动失败。
172
164
  const unknown = Object.keys(cfg).filter(
173
165
  (key) => !["diligenceEvery", "hooks", "commands", "guideOrder", "skipInherited", "audit", "auditPath", "weightsPath", "gate"].includes(key)
174
166
  );
175
167
  if (unknown.length > 0) throw new Error("lean-router-router has unknown option(s): " + unknown.join(", "));
176
168
  const diligenceEvery = cfg.diligenceEvery ?? DEFAULT_DILIGENCE_EVERY;
177
169
  if (!Number.isSafeInteger(diligenceEvery) || diligenceEvery < 0) throw new Error("lean-router-router: diligenceEvery must be a non-negative safe integer");
178
- if (cfg.auditPath !== undefined && (typeof cfg.auditPath !== "string" || cfg.auditPath.length === 0)) {
179
- throw new Error("lean-router-router: auditPath must be a non-empty string");
180
- }
181
- if (cfg.weightsPath !== undefined && (typeof cfg.weightsPath !== "string" || cfg.weightsPath.length === 0)) {
182
- throw new Error("lean-router-router: weightsPath must be a non-empty string");
183
- }
184
170
  return {
185
171
  diligenceEvery,
186
172
  hooks: cfg.hooks !== false,
187
173
  commands: cfg.commands !== false,
188
174
  guideOrder: cfg.guideOrder ?? 220,
189
175
  skipInherited: cfg.skipInherited !== false,
190
- // 票 07:审计落盘默认关(master 集成在 patch 行加 audit: true + 可选 auditPath;
191
- // 关闭 = 零行为变化,既有断言不受影响)。weightsPath 仅作 /lean-audit weights 展示。
192
- audit: cfg.audit === true,
193
- auditPath: cfg.auditPath ?? null,
194
- weightsPath: cfg.weightsPath ?? null,
195
- // 票 09:每轮门控默认关(master 集成在 patch 钩子行加 gate: true);关闭 = 近场
196
- // 文本与现状逐字符一致、round() 不执行、不发审计(约束台账 3 零副作用锚点)。
197
- gate: cfg.gate === true,
198
176
  };
199
177
  }
200
178
 
@@ -263,103 +241,26 @@ function executeBandCommand(states, invocation) {
263
241
  };
264
242
  }
265
243
 
266
- /**
267
- * 票 07 加法接线:audit:true 时把 sink 挂上 skillgate 共享审计通道
268
- * (决策流 -> JSONL;默认路径 <homedir>/.dsh/lean-router/audit.jsonl)。
269
- * 返回 { channel, sink, unsubscribe };测试可直调(传 auditPath 覆盖到临时目录)。
270
- * 幂等护栏:patch 两行实例若都开 audit,同一解析路径只挂一次 sink
271
- * (重复订阅会把每条决策双写进同一 JSONL,统计翻倍);unsubscribe 会清掉注册。
272
- */
273
- const wiredAuditPaths = new Map();
274
-
275
- function setupAudit(options) {
276
- const key = options?.auditPath ?? "__default__";
277
- const existing = wiredAuditPaths.get(key);
278
- if (existing) return existing;
279
- const channel = getAuditChannel();
280
- const auditPath = options?.auditPath ?? null;
281
- const handle = wireAuditSink(channel, auditPath ? { path: auditPath } : undefined);
282
- const wired = {
283
- channel,
284
- sink: handle.sink,
285
- unsubscribe: () => {
286
- handle.unsubscribe();
287
- wiredAuditPaths.delete(key);
288
- },
289
- };
290
- wiredAuditPaths.set(key, wired);
291
- return wired;
292
- }
293
-
294
- /** /skill 命令 handler 的共享实现(skills 服务注入;测试可直调假 skills)。 */
295
- async function executeSkillCommand(ctx, invocation) {
296
- const agent = invocation?.agent;
297
- if (!agent) return { kind: "error", text: "/skill has no active agent to list skills for." };
298
- const raw = (invocation.rawInput ?? "").trim();
299
- const options = { scope: agent, signal: invocation.signal };
300
- try {
301
- if (raw.length === 0) {
302
- const skills = await ctx.skills.list(options);
303
- const lines = skills.map((s) => {
304
- const flags = [s.invocation?.modelInvocable ? "model" : null, s.invocation?.userInvocable ? "user" : null].filter(Boolean).join("+") || "off";
305
- return s.name + " [" + flags + "] - " + (s.description ?? "");
306
- });
307
- return { kind: "success", text: (lines.length === 0 ? "No skills registered." : lines.join("\n")) + "\nUsage: /skill <name>" };
308
- }
309
- const skill = await ctx.skills.get(raw, options);
310
- if (skill === undefined) return { kind: "error", text: "Unknown skill: " + raw };
311
- const flags = [skill.invocation?.modelInvocable ? "model" : null, skill.invocation?.userInvocable ? "user" : null].filter(Boolean).join("+") || "off";
312
- return {
313
- kind: "success",
314
- text:
315
- skill.name + " [" + flags + "]\n" +
316
- (skill.description ?? "") + "\n" +
317
- "provider: " + (skill.provider ?? "-") + " source: " + (skill.source ?? "-") +
318
- (skill.resourceBase?.kind === "directory" ? "\nbase: " + skill.resourceBase.path : ""),
319
- };
320
- } catch (error) {
321
- return { kind: "error", text: "Skill lookup failed: " + (error instanceof Error ? error.message : String(error)) };
322
- }
323
- }
324
-
325
244
  /**
326
245
  * 路由层插件入口(cordis)。
327
246
  * options 分流(patch 两实例复用同一入口模块):
328
247
  * - hooks: 首轮捕获 + 近场引导 + 勤勉自检(默认 true)
329
- * - commands: /band /skill 注册(默认 true)
248
+ * - commands: /band 注册(默认 true)
330
249
  * - diligenceEvery: 勤勉自检轮距,0 关闭(默认 10)
331
250
  * - guideOrder: 引导 context 排位(默认 220,避开宿主 CONTEXT_ORDERS 100-210)
332
251
  * - skipInherited: 子代理/fork 继承会话跳过路由(默认 true)
333
- * - gate: 每轮门控开关(票 09;默认 false。true 时 pre-step 近场求值调 skillgate.round(),
334
- * hint 追加进近场文本、决策发共享审计通道;关闭 = 一切不变)
252
+ *
253
+ * 2.0.0:gate / audit / auditPath / weightsPath 已无行为(技能子系统下线),
254
+ * 仅为兼容旧 patch 配置继续接受这些键而不报错。
335
255
  */
336
256
  export function apply(ctx, options) {
337
257
  const cfg = resolveOptions(options);
338
258
  /** agent 会话作用域路由状态(不污染全局)。 */
339
259
  const states = new WeakMap();
340
260
 
341
- // 票 09 加法接线:gate:true 时 pre-step 每轮门控(设计说明 §9.3)——claimed 捕获
342
- // 当轮用户消息并异步热读权重/观察 dsActive,近场 text 同步 round() 出 hint 追加进
343
- // 引导文本,决策经共享审计通道发出(commands 行实例 audit:true 已挂 sink 落盘)。
344
- // gate 默认关:runner 不创建,text 与现状逐字符一致(约束台账 3)。
345
- const gateRunner =
346
- cfg.hooks && cfg.gate
347
- ? createGateRunner({ weightsPath: cfg.weightsPath ?? undefined, skills: ctx.skills ?? null })
348
- : null;
349
-
350
261
  if (cfg.hooks) {
351
- ctx.on("agent/inbox/claimed", async ({ agent, message, turn }) => {
262
+ ctx.on("agent/inbox/claimed", ({ agent, message, turn }) => {
352
263
  capture(states, agent, message, turn, cfg.skipInherited);
353
- if (
354
- gateRunner !== null &&
355
- message &&
356
- message.source?.kind === "user" &&
357
- !(cfg.skipInherited && isInherited(agent))
358
- ) {
359
- try {
360
- await gateRunner.capture(agent, messageText(message), turn);
361
- } catch {} // 门控永不破坏路由管线(与审计错误策略同原则)
362
- }
363
264
  });
364
265
  ctx.systemPrompt.context({
365
266
  name: GUIDE_CONTEXT_NAME,
@@ -367,17 +268,11 @@ export function apply(ctx, options) {
367
268
  text: (assembly) => {
368
269
  const agent = assembly?.agent;
369
270
  if (agent === undefined || (cfg.skipInherited && isInherited(agent))) return "";
370
- const hint = gateRunner !== null ? gateRunner.hintFor(agent, stateOf(states, agent)?.band ?? null) : "";
371
- return guideTextFor(states, agent, cfg.diligenceEvery, hint);
271
+ return guideTextFor(states, agent, cfg.diligenceEvery);
372
272
  },
373
273
  });
374
274
  }
375
275
 
376
- // 票 07 加法接线:审计落盘(audit:true 才挂 sink;决策流 = skillgate 共享通道)。
377
- if (cfg.audit) {
378
- setupAudit({ auditPath: cfg.auditPath });
379
- }
380
-
381
276
  if (cfg.commands) {
382
277
  ctx.commands.register({
383
278
  name: "band",
@@ -385,36 +280,8 @@ export function apply(ctx, options) {
385
280
  input: { hint: "[spec|react|weak|auto] [task <one line>]" },
386
281
  handler: (invocation) => executeBandCommand(states, invocation),
387
282
  });
388
- ctx.commands.register({
389
- name: "skill",
390
- description: "List available skills or show one skill's invocation policy",
391
- input: { hint: "[name]" },
392
- handler: (invocation) => executeSkillCommand(ctx, invocation),
393
- });
394
- // 票 07 加法接线:/lean-audit 双入口之一(命令;实现放 lib/audit-commands.js,
395
- // 数据源 = 审计 JSONL 回放,不新增内存态)。ui/go.json 面板按钮是另一入口。
396
- // 1.0.5:技能面板的命令输出形态(客户端插件未修好前的可用形态)。
397
- ctx.commands.register({
398
- name: "panel",
399
- description: "Skill panel: 31 skills with switches, current round hit scores and history stats",
400
- input: { hint: "[summary|skills|round|stats|never] [all]" },
401
- handler: (invocation) =>
402
- executeSkillsPanelCommand(invocation, {
403
- auditPath: cfg.auditPath ?? defaultAuditPath(),
404
- }),
405
- });
406
- ctx.commands.register({
407
- name: "lean-audit",
408
- description: "Show recent skill-gate audit decisions, hit statistics and manual weights",
409
- input: { hint: "[scores|stats|weights] [N]" },
410
- handler: (invocation) =>
411
- executeAuditCommand(invocation, {
412
- auditPath: cfg.auditPath ?? defaultAuditPath(),
413
- weightsPath: cfg.weightsPath,
414
- }),
415
- });
416
283
  }
417
284
  }
418
285
 
419
286
  /** 测试与集成内用的内部实现出口(不进公开契约文档)。 */
420
- export const internals = { capture, guideTextFor, executeBandCommand, executeSkillCommand, executeAuditCommand, messageText, resolveOptions, setupAudit };
287
+ export const internals = { capture, guideTextFor, executeBandCommand, messageText, resolveOptions };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-lean-router",
3
- "version": "1.1.0",
4
- "description": "lean 省 token × 思考链路由 × code_run 工具遮蔽 × mattpocock 技能自动调用的 DSH cordis 插件(单 bundle:预设+配套技能)",
3
+ "version": "2.0.0",
4
+ "description": "lean 省 token × 思考链路由 × code_run 工具遮蔽的 DSH cordis 插件(单 bundle:预设)",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -10,18 +10,12 @@
10
10
  "./router": "./lib/router.js",
11
11
  "./toolface": "./lib/toolface/index.js",
12
12
  "./lean/delivery-gate": "./lib/lean/delivery-gate.js",
13
- "./lean/tool-concurrency": "./lib/lean/tool-concurrency.js",
14
- "./client": {
15
- "default": "./lib/client.js"
16
- }
13
+ "./lean/tool-concurrency": "./lib/lean/tool-concurrency.js"
17
14
  },
18
15
  "files": [
19
16
  "lib",
20
17
  "presets",
21
- "assets",
22
- "ui",
23
18
  "docs",
24
- "skills.manifest.json",
25
19
  "cordis.patch.yml",
26
20
  "scripts",
27
21
  "test",
@@ -42,16 +36,12 @@
42
36
  "scripts": {
43
37
  "test": "node --test \"test/*.test.mjs\"",
44
38
  "build": "node scripts/build-bundle.mjs",
45
- "drift": "node scripts/check-drift.mjs",
46
39
  "doctor": "node scripts/doctor.mjs",
47
40
  "verify": "node scripts/verify.mjs"
48
41
  },
49
42
  "dsh": {
50
43
  "bundle": {
51
44
  "patch": "./cordis.patch.yml"
52
- },
53
- "client": {
54
- "platform": "web"
55
45
  }
56
46
  },
57
47
  "keywords": [
@@ -59,8 +49,7 @@
59
49
  "agent-preset",
60
50
  "lean",
61
51
  "router",
62
- "codemode",
63
- "skills"
52
+ "codemode"
64
53
  ],
65
54
  "dependencies": {
66
55
  "@deepseek-ai/dsh-tool-executor-native": ">=0.2.2-alpha.3 <0.2.4-0"
@@ -17,7 +17,7 @@
17
17
  config:
18
18
  id: lean-router
19
19
  name: Lean router
20
- description: "lean 省 token × 思考链路由 × code_run 遮蔽 × mattpocock 技能自动调用(lean 档:13 条纪律 + 3 软门 + 自检题钩子)。"
20
+ description: "lean 省 token × 思考链路由 × code_run 遮蔽(lean 档:13 条纪律 + 3 软门 + 自检题钩子)。"
21
21
  order: 30
22
22
  plugins:
23
23
  # 机制 4 · 行为纪律(persona 双档;lean 档 13 条硬规则 + 3 软门 + 自检题钩子)
@@ -106,8 +106,6 @@
106
106
  name: '@deepseek-ai/dsh-tool-jobs'
107
107
  - id: skill-filesystem
108
108
  name: '@deepseek-ai/dsh-skill-filesystem'
109
- - id: skill-lean-router
110
- name: dsh-lean-router
111
109
  - id: tool-skill
112
110
  name: '@deepseek-ai/dsh-tool-skill'
113
111
  - id: command-goal
@@ -284,8 +282,6 @@
284
282
  name: '@deepseek-ai/dsh-tool-jobs'
285
283
  - id: skill-filesystem
286
284
  name: '@deepseek-ai/dsh-skill-filesystem'
287
- - id: skill-lean-router
288
- name: dsh-lean-router
289
285
  - id: tool-skill
290
286
  name: '@deepseek-ai/dsh-tool-skill'
291
287
  - id: command-goal
@@ -9,7 +9,7 @@
9
9
  config:
10
10
  id: lean-router
11
11
  name: Lean router
12
- description: "lean 省 token × 思考链路由 × code_run 遮蔽 × mattpocock 技能自动调用(lean 档:13 条纪律 + 3 软门 + 自检题钩子)。"
12
+ description: "lean 省 token × 思考链路由 × code_run 遮蔽(lean 档:13 条纪律 + 3 软门 + 自检题钩子)。"
13
13
  order: 30
14
14
  plugins:
15
15
  - id: persona
@@ -100,8 +100,6 @@
100
100
  name: '@deepseek-ai/dsh-tool-jobs'
101
101
  - id: skill-filesystem
102
102
  name: '@deepseek-ai/dsh-skill-filesystem'
103
- - id: skill-lean-router
104
- name: dsh-lean-router
105
103
  - id: tool-skill
106
104
  name: '@deepseek-ai/dsh-tool-skill'
107
105
  - id: command-goal
@@ -1,28 +1,17 @@
1
1
  # dsh-lean-router 票 05 路由层分片(顶层列表续项;由 scripts/build-bundle.mjs 续接进 cordis.patch.yml)
2
2
  # 钩子行:agent/inbox/claimed 首轮捕获 + 近场引导 dynamic context + 勤勉自检
3
- # 命令行:/band 显式改档、/skill 技能与 invocation 列表(宿主 ctx.commands 缝)
3
+ # 命令行:/band 显式改档(宿主 ctx.commands 缝)
4
4
  # 入口子路径 dsh-lean-router/router 需要 package.json exports 增补 "./router": "./lib/router.js"
5
5
  # (package.json 为共享文件,由 master 统一集成;见 lib/router.js ROUTER_INJECTION_NOTES.patchEntry)
6
6
  - insert:
7
- # 1.0.5 修:宿主层裸包名行(对照 dsh-cost-meter 的 "one host row")。
8
- # 没有这一行,客户端模块扫描看不到 dsh.client -> 客户端 bundle 不加载 -> 无顶栏按钮。
9
- # config.provider=false:不重复注册 skill provider(预设层已注册)。
10
- - id: lean-router-client-host
11
- name: dsh-lean-router
12
7
  - id: lean-router-router
13
8
  name: dsh-lean-router/router
14
9
  config:
15
10
  hooks: true
16
11
  commands: false
17
12
  diligenceEvery: 10
18
- # 1.0.5 修:每轮门控必须开,否则 skillgate 不跑 -> 审计零条目、审计文件从不生成。
19
- # 依据 lib/router.js:345(cfg.hooks && cfg.gate 才建 runner)与 lib/router.js:194。
20
- gate: true
21
13
  - id: lean-router-commands
22
14
  name: dsh-lean-router/router
23
15
  config:
24
16
  hooks: false
25
17
  commands: true
26
- # master 集成(票 07 §9.1):审计落盘开;auditPath/weightsPath 省略 = 默认值
27
- # (注意不能传空串:lib/router.js:145-149 对空串抛错,缺省语义见 §9.1 修正版)
28
- audit: true
@@ -37,8 +37,6 @@
37
37
  name: '@deepseek-ai/dsh-tool-jobs'
38
38
  - id: skill-filesystem
39
39
  name: '@deepseek-ai/dsh-skill-filesystem'
40
- - id: skill-lean-router
41
- name: dsh-lean-router
42
40
  - id: tool-skill
43
41
  name: '@deepseek-ai/dsh-tool-skill'
44
42
  - id: command-goal