@hukj/dsh-subagent-model-tags 1.0.0 → 1.0.1
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/LICENSE +1 -1
- package/README.md +50 -3
- package/README.zh.md +91 -0
- package/package.json +13 -27
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
# dsh-subagent-model-tags
|
|
2
2
|
|
|
3
|
+
[](https://github.com/rolfhu/dsh-subagent-model-tags/actions/workflows/ci.yml)
|
|
4
|
+
|
|
5
|
+
English | [中文](README.zh.md)
|
|
6
|
+
|
|
3
7
|
A DeepSeek Harness plugin that shows each subagent's model name in the session-header subagent panels, and widens those panels from 360 px to 460 px.
|
|
4
8
|
|
|
5
|
-
|
|
9
|
+
## Screenshots
|
|
10
|
+
|
|
11
|
+
The model name appears on the row's name line — the second line when the row shows a description:
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
Every nesting level carries its own model name, including provider and reasoning effort:
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
Inside a subagent conversation, the breadcrumb panel shows model names too:
|
|
20
|
+
|
|
21
|
+

|
|
6
22
|
|
|
7
23
|
## What it does
|
|
8
24
|
|
|
9
|
-
- Adds each subagent's model name on its row's name line
|
|
25
|
+
- Adds each subagent's model name on its row's name line in every subagent panel: the root session's subagent panel, a subagent conversation's sibling switcher, and its own children panel. The name is written as `provider/model · reasoning effort`, at every nesting level.
|
|
10
26
|
- A subagent with no recorded model, and external subagents that have no local session, show `—`.
|
|
11
27
|
- Widens the subagent panels to 460 px (still bounded by the window width).
|
|
12
28
|
|
|
@@ -14,7 +30,7 @@ The model name comes from each subagent session's `modelSelection` projection, w
|
|
|
14
30
|
|
|
15
31
|
## Install
|
|
16
32
|
|
|
17
|
-
Requires DeepSeek Harness `0.2.2-rc.
|
|
33
|
+
Requires DeepSeek Harness `0.2.2-rc.4` and later `0.2.x`.
|
|
18
34
|
|
|
19
35
|
- **Published package**: open **Plugins** in the Web sidebar, choose **Add plugin**, and enter `@hukj/dsh-subagent-model-tags`. The Plugin Manager picks the registry through its own configuration and falls back through the configured registries.
|
|
20
36
|
- **Local development**: enter the absolute path of this directory in the same dialog.
|
|
@@ -37,8 +53,39 @@ Then enable the bundle if it is switched off. The change takes effect after a pa
|
|
|
37
53
|
| `cordis.patch.yml` | Bundle patch inserting the plugin row |
|
|
38
54
|
| `locale/*.json` | Plugin display metadata in eight languages |
|
|
39
55
|
| `docs/DETAIL.md`, `docs/preview.svg` | Detail page image |
|
|
56
|
+
| `docs/images/*.png` | README screenshots |
|
|
57
|
+
| `screenshots.json` | Screenshot list for plugin storefronts |
|
|
58
|
+
| `assets/icon-180.png` | Raster icon for plugin storefronts |
|
|
40
59
|
| `icon.svg` | Plugin icon |
|
|
41
60
|
|
|
61
|
+
## Development
|
|
62
|
+
|
|
63
|
+
The self-check loads the client module with a stub module loader, runs its factory, exercises both slot registrations, renders both components, and executes the effect bodies against a minimal fake DOM — including a panel sync where an equal-count wrong catalog root must be rejected by label verification.
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
node test/selftest.cjs
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
It is not part of the published package.
|
|
70
|
+
|
|
71
|
+
## Releasing
|
|
72
|
+
|
|
73
|
+
Publishing is automated up to the staging area: pushing a version tag runs the `Release` workflow, which checks that the tag matches `package.json`, runs the self-check, and stages the release on npm with provenance through Trusted Publishing (OIDC, no stored token).
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
# 1. bump the version in package.json and commit it
|
|
77
|
+
# 2. tag and push
|
|
78
|
+
git tag v1.0.1
|
|
79
|
+
git push origin v1.0.1
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Staging does not need 2FA. The final step is a human approval with 2FA, which is npm's proof-of-presence requirement for every publish:
|
|
83
|
+
|
|
84
|
+
- Open the staged version's page on npmjs.com (the workflow log prints the URL), or run `npm stage list` and `npm stage view <id>` locally
|
|
85
|
+
- Approve it with your 2FA on npmjs.com — `npm stage approve <id>` in a terminal needs a TOTP code and does not work with a passkey
|
|
86
|
+
|
|
87
|
+
The workflow's trusted-publisher connection allows `npm stage publish` (the default for connections created after 2026-09-03); direct `npm publish` over OIDC is refused unless a new connection explicitly allows it. `CI` runs the self-check on every push to `main` and on pull requests.
|
|
88
|
+
|
|
42
89
|
## License
|
|
43
90
|
|
|
44
91
|
MIT
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# dsh-subagent-model-tags
|
|
2
|
+
|
|
3
|
+
[](https://github.com/rolfhu/dsh-subagent-model-tags/actions/workflows/ci.yml)
|
|
4
|
+
|
|
5
|
+
[English](README.md) | 中文
|
|
6
|
+
|
|
7
|
+
一个 DeepSeek Harness 插件:在会话顶部的子代理面板里显示每个子代理所使用的模型名,并把面板宽度从 360px 加宽到 460px。
|
|
8
|
+
|
|
9
|
+
## 效果展示
|
|
10
|
+
|
|
11
|
+
模型名显示在行的名称行上(有描述的行就是第二行):
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
每一层嵌套都带自己的模型名,包含 provider 与推理档位:
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
进入子代理会话后,面包屑面板同样显示模型名:
|
|
20
|
+
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
## 功能说明
|
|
24
|
+
|
|
25
|
+
- 在会话顶部的各子代理面板中,为每个子代理的名称行追加模型名:根会话的子代理面板、子代理会话的兄弟切换面板、以及它自己的子代理面板,所有嵌套层级都生效。模型名格式为 `provider/model · 推理档位`。
|
|
26
|
+
- 没有任何模型记录的子代理、以及没有本地会话的 external 子代理显示 `—`。
|
|
27
|
+
- 把子代理面板加宽到 460px(仍受窗口宽度限制)。
|
|
28
|
+
|
|
29
|
+
模型名取自每个子代理会话的 `modelSelection` 投影(Harness 会持久记录),因此显示的是子代理实际使用的模型,而不是父会话「要求」的模型。
|
|
30
|
+
|
|
31
|
+
## 安装
|
|
32
|
+
|
|
33
|
+
要求 DeepSeek Harness `0.2.2-rc.4` 及之后的 `0.2.x` 版本。
|
|
34
|
+
|
|
35
|
+
- **已发布版本**:在 Web 侧边栏打开 **Plugins**,选择 **Add plugin**,输入 `@hukj/dsh-subagent-model-tags`。管理器会先按自身配置的 registry 查询,失败再按配置的回退 registry 依次尝试。
|
|
36
|
+
- **本地开发**:在同一个对话框里输入本目录的绝对路径。
|
|
37
|
+
|
|
38
|
+
若插件被关闭,请在列表里启用它。改动需要刷新页面后生效。
|
|
39
|
+
|
|
40
|
+
## 已知限制
|
|
41
|
+
|
|
42
|
+
- 模型名是以文本形式注入到面板已渲染的行里的,因此 DSH 未来改动面板结构时可能悄悄失效。插件只会在「能把面板每一行与已知目录(当前会话或某个祖先会话的目录)完整配对,且每行显示名与条目期望名逐一匹配」时才写入模型名;无法校验通过的面板宁可不显示,也不显示错误的模型。
|
|
43
|
+
- 两个目录层级的显示名序列完全相同时仍可能交叉配对;实际上要求同一条链上存在两组完全相同的子代理。
|
|
44
|
+
- 面板宽度通过宿主 `--dsh-subagent-menu-width` 变量提升;宿主重构面板时宽度规则可能失效。
|
|
45
|
+
- 调试方法:面板打开时在浏览器控制台执行 `__subagentModelsDebug()`,可以看到最近一次同步配对了什么、候选根为什么被拒绝。
|
|
46
|
+
|
|
47
|
+
## 文件说明
|
|
48
|
+
|
|
49
|
+
| 文件 | 作用 |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `client.js` | Web 客户端模块:面板加宽与两个写入模型名的隐形座位 |
|
|
52
|
+
| `index.js` | 空的 Host 入口 |
|
|
53
|
+
| `cordis.patch.yml` | 插入插件行的 bundle 补丁 |
|
|
54
|
+
| `locale/*.json` | 八种语言的插件展示元数据 |
|
|
55
|
+
| `docs/DETAIL.md`、`docs/preview.svg` | 详情页图片 |
|
|
56
|
+
| `docs/images/*.png` | README 截图 |
|
|
57
|
+
| `screenshots.json` | 插件市场用的截图清单 |
|
|
58
|
+
| `assets/icon-180.png` | 插件市场用的位图图标 |
|
|
59
|
+
| `icon.svg` | 插件图标 |
|
|
60
|
+
|
|
61
|
+
## 开发
|
|
62
|
+
|
|
63
|
+
自检脚本会用桩模块加载器加载客户端模块、执行工厂、检查两个槽位注册、渲染两个组件,并用一个极简假 DOM 执行 effect 主体——其中包括一个「行数相同但目录根错误」的面板同步场景,必须被名称校验拒绝。
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
node test/selftest.cjs
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
该脚本不参与 npm 发布包。
|
|
70
|
+
|
|
71
|
+
## 发布
|
|
72
|
+
|
|
73
|
+
发布已自动化到"暂存"这一步:推送版本标签会触发 `Release` 工作流,它先校验标签与 `package.json` 版本一致,再跑自检,最后通过 Trusted Publishing(OIDC,不存令牌)把发布提交到 npm 暂存区并附带 provenance。
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
# 1. 修改 package.json 版本并提交
|
|
77
|
+
# 2. 打标签并推送
|
|
78
|
+
git tag v1.0.1
|
|
79
|
+
git push origin v1.0.1
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
暂存本身不需要 2FA。最后一步是**人工用 2FA 批准**——这是 npm 对每次发布的 proof-of-presence 要求:
|
|
83
|
+
|
|
84
|
+
- 打开 npmjs.com 上该暂存版本的页面(工作流日志里会打印链接),或在本地跑 `npm stage list`、`npm stage view <id>`
|
|
85
|
+
- 在 npmjs.com 上用你的 2FA 批准;在终端里 `npm stage approve <id>` 需要 TOTP 验证码,passkey 用不了
|
|
86
|
+
|
|
87
|
+
工作流的 trusted-publisher 连接允许的是 `npm stage publish`(2026-09-03 之后创建的连接默认如此);除非新建连接时显式允许直接发布,OIDC 的 `npm publish` 会被拒绝。`CI` 工作流会在每次推送到 `main` 和每个 PR 上跑自检。
|
|
88
|
+
|
|
89
|
+
## 许可证
|
|
90
|
+
|
|
91
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,46 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hukj/dsh-subagent-model-tags",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Shows each subagent's model in the session-header subagent panels.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"plugin",
|
|
11
|
-
"subagent",
|
|
12
|
-
"model"
|
|
13
|
-
],
|
|
14
|
-
"engines": {
|
|
15
|
-
"dsh": ">=0.2.2-rc.5 <0.3.0"
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/rolfhu/dsh-subagent-model-tags.git"
|
|
16
10
|
},
|
|
17
|
-
"
|
|
18
|
-
"
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "node test/selftest.cjs"
|
|
19
13
|
},
|
|
14
|
+
"keywords": ["dsh", "deepseek-harness", "plugin", "subagent", "model"],
|
|
15
|
+
"engines": { "dsh": ">=0.2.2-rc.4 <0.3.0" },
|
|
16
|
+
"publishConfig": { "access": "public" },
|
|
20
17
|
"exports": {
|
|
21
18
|
".": "./index.js",
|
|
22
19
|
"./client": "./client.js",
|
|
23
20
|
"./locale/*.json": "./locale/*.json",
|
|
24
21
|
"./icon": "./icon.svg"
|
|
25
22
|
},
|
|
26
|
-
"files": [
|
|
27
|
-
"index.js",
|
|
28
|
-
"client.js",
|
|
29
|
-
"cordis.patch.yml",
|
|
30
|
-
"locale/*.json",
|
|
31
|
-
"docs",
|
|
32
|
-
"icon.svg"
|
|
33
|
-
],
|
|
23
|
+
"files": ["index.js", "client.js", "cordis.patch.yml", "locale/*.json", "docs/DETAIL.md", "docs/preview.svg", "icon.svg"],
|
|
34
24
|
"dsh": {
|
|
35
|
-
"bundle": {
|
|
36
|
-
"patch": "./cordis.patch.yml"
|
|
37
|
-
},
|
|
25
|
+
"bundle": { "patch": "./cordis.patch.yml" },
|
|
38
26
|
"client": {
|
|
39
27
|
"platform": "web",
|
|
40
28
|
"immediately": true,
|
|
41
|
-
"inject": [
|
|
42
|
-
"@deepseek-ai/dsh-client-ui-subagent"
|
|
43
|
-
]
|
|
29
|
+
"inject": ["@deepseek-ai/dsh-client-ui-subagent"]
|
|
44
30
|
}
|
|
45
31
|
}
|
|
46
|
-
}
|
|
32
|
+
}
|