dsh-lead-mode 0.2.1 → 0.2.2

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.
package/README.md CHANGED
@@ -101,10 +101,10 @@ The model will not pretend it can delegate, and it will not pass `subagent` off
101
101
  Lead mode delegates through `spawn_teammate`, `send_message`, and `team_task_*`. Those come from the official dsh Team runtime, which this plugin does not ship.
102
102
 
103
103
  ```bash
104
- dsh plugin --profile <your profile name> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.3
104
+ dsh plugin --profile <your profile name> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.5
105
105
  ```
106
106
 
107
- **The version pin is required.** Without it npm resolves `latest`, which is 0.1.5-alpha.2 — built for 0.1.x hosts and it will not mount on a 0.2.1 host. `next` points at 0.2.1-rc.3, which is the correct one. Restart dsh afterwards.
107
+ **The version pin is required.** Without it npm resolves `latest`, which is 0.1.5-alpha.2 — built for 0.1.x hosts and it will not mount on a 0.2.1 host. `next` points at 0.2.1-rc.5, which is the correct one. The pin also has to equal your host version (`dsh --version`): the team packages pin exact `dsh-*` peers, so an older rc installs a peer set the newer host does not satisfy. Restart dsh afterwards.
108
108
 
109
109
  Not sure whether it is installed? Run `/lead-mode` in dsh; it reports dependency state.
110
110
 
@@ -181,7 +181,7 @@ This plugin ships none of the packages below. The host or an official bundle pro
181
181
 
182
182
  | Package | Requirement | Provided by | When missing |
183
183
  |---|---|---|---|
184
- | `@deepseek-ai/dsh-experimental-agent-team-profile` | `0.2.1-rc.3` | You install it explicitly | Cannot delegate; `/lead-mode` returns error; startup warn |
184
+ | `@deepseek-ai/dsh-experimental-agent-team-profile` | `0.2.1-rc.5` | You install it explicitly | Cannot delegate; `/lead-mode` returns error; startup warn |
185
185
  | `@deepseek-ai/dsh` | `>=0.2.1-rc.2` | Host | Will not install |
186
186
  | `@deepseek-ai/cordis` | `^4.0.5` | Host | Will not install |
187
187
  | `@deepseek-ai/schemastery` | `^3.18.5` | Host | Will not install |
@@ -189,7 +189,7 @@ This plugin ships none of the packages below. The host or an official bundle pro
189
189
  | `@deepseek-ai/dsh-skill` | `>=0.2.1-rc.2` | Host | Skill not registered; startup warn |
190
190
  | `@deepseek-ai/dsh-commands` | `>=0.2.1-rc.2` | Host | `/lead-mode` not registered; startup warn |
191
191
 
192
- The target host version is `dshTarget` in `package.json`: `0.2.1-rc.3`.
192
+ The target host version is `dshTarget` in `package.json`: `0.2.1-rc.5`.
193
193
 
194
194
  ## Why the install command pins a version
195
195
 
@@ -198,8 +198,8 @@ The target host version is `dshTarget` in `package.json`: `0.2.1-rc.3`.
198
198
  | dist-tag | Version | Host it fits |
199
199
  |---|---|---|
200
200
  | `latest` | 0.1.5-alpha.2 | 0.1.x |
201
- | `alpha` | 0.2.1-alpha.5 | the 0.2.1 prerelease line |
202
- | `next` | 0.2.1-rc.3 | 0.2.1 |
201
+ | `alpha` | 0.2.2-alpha.2 | the 0.2.2 line — do not mix it with a 0.2.1 host |
202
+ | `next` | 0.2.1-rc.5 | 0.2.1 |
203
203
 
204
204
  Bare package name resolves `latest`, which installs 0.1.5-alpha.2. That build targets 0.1.x hosts and does not mount on a 0.2.1 host. After installing it, no Team tools appear in dsh and `/lead-mode` still reports "not mounted".
205
205
 
@@ -210,9 +210,9 @@ $ npm view @deepseek-ai/dsh-experimental-agent-team-profile version
210
210
  0.1.5-alpha.2
211
211
  ```
212
212
 
213
- So every install command in this plugin carries `@0.2.1-rc.3`: the persona prefix, the `/lead-mode` output, the startup warn, and SKILL.md. `test/preset.test.mjs` and `test/smoke.test.mjs` both assert that string, so a future edit cannot quietly drop back to the bare name.
213
+ So every install command in this plugin carries `@0.2.1-rc.5`: the persona prefix, the `/lead-mode` output, the startup warn, and SKILL.md. `test/preset.test.mjs` and `test/smoke.test.mjs` both assert that string, so a future edit cannot quietly drop back to the bare name.
214
214
 
215
- For the `alpha` line, pin `@0.2.1-alpha.5` yourself; do not use the bare name.
215
+ `alpha` now points at `0.2.2-alpha.2`, which belongs to the 0.2.2 line; on a 0.2.1 host keep using the pinned rc.5 build.
216
216
 
217
217
  ## Difference from the official standard preset
218
218
 
package/README.zh-CN.md CHANGED
@@ -101,10 +101,10 @@
101
101
  Lead 模式靠 `spawn_teammate`、`send_message`、`team_task_*` 这些工具派活。它们由 dsh 官方的 Team 运行时提供,本插件不带。
102
102
 
103
103
  ```bash
104
- dsh plugin --profile <你的 profile 名> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.3
104
+ dsh plugin --profile <你的 profile 名> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.5
105
105
  ```
106
106
 
107
- **必须带版本号。** 不带会装到 `latest` 上的 0.1.5-alpha.2,那是给 0.1.x 宿主用的,在 0.2.1 宿主上挂不上。`next` 指向的 0.2.1-rc.3 才对。装完重启 dsh。
107
+ **必须带版本号。** 不带会装到 `latest` 上的 0.1.5-alpha.2,那是给 0.1.x 宿主用的,在 0.2.1 宿主上挂不上。`next` 指向的 0.2.1-rc.5 才对。版本号还要等于你的宿主版本(`dsh --version`):团队包把 `dsh-*` 的 peer 钉死到具体版本,老 rc 装到新宿主上,peer 对不上。装完重启 dsh。
108
108
 
109
109
  不确定装没装?进 dsh 敲 `/lead-mode`,它会报依赖状态。
110
110
 
@@ -181,7 +181,7 @@ Lead 模式 skill 里也写了这个入口,所以派活时模型会直接让
181
181
 
182
182
  | 包 | 版本要求 | 谁提供 | 缺了会怎样 |
183
183
  |---|---|---|---|
184
- | `@deepseek-ai/dsh-experimental-agent-team-profile` | `0.2.1-rc.3` | 用户显式安装 | 派不了活,`/lead-mode` 报 error,启动 warn |
184
+ | `@deepseek-ai/dsh-experimental-agent-team-profile` | `0.2.1-rc.5` | 用户显式安装 | 派不了活,`/lead-mode` 报 error,启动 warn |
185
185
  | `@deepseek-ai/dsh` | `>=0.2.1-rc.2` | 宿主 | 装不上 |
186
186
  | `@deepseek-ai/cordis` | `^4.0.5` | 宿主 | 装不上 |
187
187
  | `@deepseek-ai/schemastery` | `^3.18.5` | 宿主 | 装不上 |
@@ -189,7 +189,7 @@ Lead 模式 skill 里也写了这个入口,所以派活时模型会直接让
189
189
  | `@deepseek-ai/dsh-skill` | `>=0.2.1-rc.2` | 宿主 | skill 不注册,启动 warn |
190
190
  | `@deepseek-ai/dsh-commands` | `>=0.2.1-rc.2` | 宿主 | `/lead-mode` 不注册,启动 warn |
191
191
 
192
- 目标宿主版本写在 `package.json` 的 `dshTarget` 字段:`0.2.1-rc.3`。
192
+ 目标宿主版本写在 `package.json` 的 `dshTarget` 字段:`0.2.1-rc.5`。
193
193
 
194
194
  ## 为什么安装命令要带版本号
195
195
 
@@ -198,8 +198,8 @@ Lead 模式 skill 里也写了这个入口,所以派活时模型会直接让
198
198
  | dist-tag | 版本 | 配哪个宿主 |
199
199
  |---|---|---|
200
200
  | `latest` | 0.1.5-alpha.2 | 0.1.x |
201
- | `alpha` | 0.2.1-alpha.5 | 0.2.1 预发布线 |
202
- | `next` | 0.2.1-rc.3 | 0.2.1 |
201
+ | `alpha` | 0.2.2-alpha.2 | 0.2.2 线,别和 0.2.1 宿主混用 |
202
+ | `next` | 0.2.1-rc.5 | 0.2.1 |
203
203
 
204
204
  裸写包名,npm 解析 `latest`,装到 0.1.5-alpha.2。这个版本是给 0.1.x 宿主用的,在 0.2.1 宿主上挂不上。装完 dsh 里看不到 Team 工具,`/lead-mode` 还是报「未挂载」。
205
205
 
@@ -210,9 +210,9 @@ $ npm view @deepseek-ai/dsh-experimental-agent-team-profile version
210
210
  0.1.5-alpha.2
211
211
  ```
212
212
 
213
- 所以本插件里所有出现安装命令的地方都带 `@0.2.1-rc.3`:persona prefix、`/lead-mode` 输出、启动 warn、SKILL.md。`test/preset.test.mjs` 与 `test/smoke.test.mjs` 都断言这个字符串在,防止以后被改回裸包名。
213
+ 所以本插件里所有出现安装命令的地方都带 `@0.2.1-rc.5`:persona prefix、`/lead-mode` 输出、启动 warn、SKILL.md。`test/preset.test.mjs` 与 `test/smoke.test.mjs` 都断言这个字符串在,防止以后被改回裸包名。
214
214
 
215
- 要装 `alpha` 线的话自己换成 `@0.2.1-alpha.5`,别用裸名。
215
+ `alpha` 现在指向 `0.2.2-alpha.2`,属于 0.2.2 线;0.2.1 宿主继续用钉死的 rc.5 版本。
216
216
 
217
217
  ## 与官方 standard 预设的差异
218
218
 
package/cordis.patch.yml CHANGED
@@ -16,10 +16,13 @@
16
16
  # agent, so it belongs to the host plane, not to a preset row. Users turn it on
17
17
  # with the official profile package:
18
18
  #
19
- # dsh plugin --profile <name> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.3
19
+ # dsh plugin --profile <name> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.5
20
20
  #
21
21
  # The version pin matters: bare `npm i` resolves `latest`, which is 0.1.5-alpha.2
22
- # and does not mount on a 0.2.1 host. `next` points at 0.2.1-rc.3.
22
+ # and does not mount on a 0.2.1 host. `next` points at 0.2.1-rc.5. The pin must
23
+ # equal the host version (`dsh --version`): the team packages pin exact `dsh-*`
24
+ # peers, so a profile built for an older rc installs peers this host does not
25
+ # satisfy.
23
26
  - insert:
24
27
  - id: dsh-lead-mode
25
28
  name: 'dsh-lead-mode'
@@ -41,9 +44,9 @@
41
44
 
42
45
  没有的话,停下。只做一件事:告诉用户去开 dsh 官方的 Agent Teams,命令是
43
46
 
44
- dsh plugin --profile <你的 profile 名> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.3
47
+ dsh plugin --profile <你的 profile 名> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.5
45
48
 
46
- 不带版本号会装到 0.1.5-alpha.2,和 0.2.1 宿主对不上。装完重启 dsh。
49
+ 不带版本号会装到 0.1.5-alpha.2,和 0.2.1 宿主对不上。版本号要跟 `dsh --version` 的输出一致。装完重启 dsh。
47
50
 
48
51
  这是本插件存在的主要理由。没有这些工具,你派不了活。不要自己硬干,不要假装能派活,也不要拿 subagent 凑数顶替 teammate。
49
52
 
package/lib/index.js CHANGED
@@ -20,14 +20,21 @@ import { fileURLToPath } from 'node:url'
20
20
  /** Cordis plugin name. */
21
21
  export const name = 'lead-mode'
22
22
 
23
- /** Profile package that provides the Team runtime, pinned to the rc.3 line. */
24
- const TEAM_PROFILE_PACKAGE = '@deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.3'
23
+ /**
24
+ * Profile package that provides the Team runtime.
25
+ *
26
+ * The pin has to match the host version line: the team packages declare exact
27
+ * `@deepseek-ai/dsh-*` peers, so an older profile on a newer host installs an
28
+ * unsatisfied peer set. Bump this constant together with `engines.dsh` and
29
+ * `dshTarget` whenever the target host line moves.
30
+ */
31
+ const TEAM_PROFILE_PACKAGE = '@deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.5'
25
32
 
26
33
  /** Install command shown in every reminder. */
27
34
  const ENABLE_COMMAND = `dsh plugin --profile <你的 profile 名> add ${TEAM_PROFILE_PACKAGE}`
28
35
 
29
36
  /** Why the version pin matters, repeated wherever the command appears. */
30
- const VERSION_NOTE = '不带版本号会装到 0.1.5-alpha.2,和 0.2.1 宿主对不上。'
37
+ const VERSION_NOTE = '不带版本号会装到 0.1.5-alpha.2,和 0.2.1 宿主对不上。版本号要跟 `dsh --version` 的输出一致。'
31
38
 
32
39
  /** Directory holding one subdirectory per bundled skill; the directory name is the skill name. */
33
40
  const SKILLS_DIR = new URL('../skills/', import.meta.url)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-lead-mode",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Lead mode for DSH: an agent preset, a working-method skill, a dependency self-check, and two reminders that tell you to enable the official Agent Teams. | 给 DSH 加 Lead 模式:预设、skill、依赖自检、两条前置提醒。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -16,11 +16,16 @@
16
16
  "README.zh-CN.md",
17
17
  "LICENSE"
18
18
  ],
19
+ "scripts": {
20
+ "test": "node --test test/*.test.mjs",
21
+ "check": "node --check lib/index.js && node scripts/validate-names.mjs --manifest ./dsh-plugin.naming.json && node scripts/check-patch.mjs",
22
+ "pack:dry": "npm pack --dry-run"
23
+ },
19
24
  "engines": {
20
25
  "node": ">=20",
21
26
  "dsh": ">=0.2.1-rc.2"
22
27
  },
23
- "dshTarget": "0.2.1-rc.3",
28
+ "dshTarget": "0.2.1-rc.5",
24
29
  "dsh": {
25
30
  "bundle": {
26
31
  "patch": "./cordis.patch.yml"
@@ -14,10 +14,10 @@ description: Lead 工作法。当你要拆活、派活给 teammate、用共享
14
14
  没有就停下。只做一件事:让用户去开 dsh 官方 Agent Teams,命令是
15
15
 
16
16
  ```
17
- dsh plugin --profile <你的 profile 名> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.3
17
+ dsh plugin --profile <你的 profile 名> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.1-rc.5
18
18
  ```
19
19
 
20
- 不带版本号会装到 0.1.5-alpha.2,和 0.2.1 宿主对不上。
20
+ 不带版本号会装到 0.1.5-alpha.2,和 0.2.1 宿主对不上。版本号要跟 `dsh --version` 的输出一致。
21
21
 
22
22
  不要自己硬干,也不要假装能派活。
23
23