@yankeguo/dsh-devlead-bundle 0.4.0 → 0.4.2-rc.10
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 +98 -173
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,196 +1,121 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Dev Lead mode for DeepSeek Harness: turn one session into a lead that creates and steers ordinary Workspaces and Sessions, watches their state, and is woken on change."
|
|
3
|
-
kind: "package-bundle"
|
|
4
|
-
---
|
|
5
|
-
|
|
6
1
|
# @yankeguo/dsh-devlead-bundle
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## 特性
|
|
14
|
-
|
|
15
|
-
- **DevLead 模式**:每个会话一个持久开关;打开后获得 14 个主 `devlead_*` 工具(已关注会话另有 1 个 `devlead_report`)、DevLead 系统
|
|
16
|
-
提示,以及两态 UI:composer 工具条里的 DevLead 图标 + 文本按钮在两种状态下都常驻并负责
|
|
17
|
-
开启/关闭,开启后 composer 上方才出现只读状态条。
|
|
18
|
-
当前激活的 DevLead 行会显示强调色 ring(无行尾图标),被关注 Session 行显示弱化准星,关掉会话后仍可辨识(DSH rc.1 对
|
|
19
|
-
blank / 尚无 turn 的新会话行不渲染该 seat,首次 turn 后才显示)。
|
|
20
|
-
开关是**人类专属操作**(`/devlead on|off` 或 composer 工具条开关),模型无法自行打开。
|
|
21
|
-
- **产出物是标准 DSH 实体**:Workspace 真实注册进 `ctx.workspaceRegistry`,子会话是真实普通
|
|
22
|
-
Session(侧边栏可见、可被人类打开接管),**不是 subagent**。
|
|
23
|
-
- **关注与唤醒**:已关注的会话每个 `turn/end` 都写入 DevLead 会话的持久通知记录;Agent
|
|
24
|
-
存活时经合并窗口唤醒它决定下一步。关注关系索引在 Host 重启 / 插件重载后从持久记录重建
|
|
25
|
-
(cold lead rehydration),已 dispose 的 lead 继续观察;冷 lead 默认 resume 投递
|
|
26
|
-
(`wakeColdSession: true`)。
|
|
27
|
-
- **事件溯源**:模式 / 关注集合 / 通知 / 中途汇报 / reset 以可忽略的 `plugin:devlead/*` 记录持久化,
|
|
28
|
-
可跨重启 / 恢复 / fork;`devLead` Session projection 把状态同步到浏览器,summary 级 `devLeadMode` 与
|
|
29
|
-
`devLeadWatch`(关注集合)随每个会话列表行下发,供侧边栏激活/已关注标记使用。
|
|
30
|
-
- **人类命令**:`/devlead`、`/devlead on|off`、`/devlead reset`(损坏状态恢复)、
|
|
31
|
-
`/devlead watch|unwatch <session>`。
|
|
32
|
-
- **两态 UI**:composer 工具条里的 ghost 图标 + DevLead 文本按钮在两种状态下都显示——关闭态
|
|
33
|
-
点击 `/devlead on`,开启态点击 `/devlead off`;开启后 composer 上方出现只读 DevLeadBar,
|
|
34
|
-
显示已关注会话数 / 运行中数与最近通知;侧边栏同时标识激活 lead 与已关注会话。
|
|
35
|
-
|
|
36
|
-
## 本 bundle 包含的插件行
|
|
37
|
-
|
|
38
|
-
| entry id | 包 | 作用 |
|
|
39
|
-
| --- | --- | --- |
|
|
40
|
-
| `devlead` | `@yankeguo/dsh-devlead` | 核心服务 `ctx.devLead`:模式、Workspace/Session 编排、通知投递、`devLead` projection |
|
|
41
|
-
| `devlead-tool` | `@yankeguo/dsh-tool-devlead` | 14 个主工具 + 1 个汇报工具与条件 system prompt |
|
|
42
|
-
| `devlead-command` | `@yankeguo/dsh-command-devlead` | `/devlead` 人类命令 |
|
|
43
|
-
| `devlead-ui` | `@yankeguo/dsh-client-ui-devlead` | 浏览器两态 UI:常驻工具条开关(图标 + 文本)+ 开启后的只读 DevLeadBar + 侧边栏激活/已关注标记 |
|
|
44
|
-
|
|
45
|
-
依赖方向:`protocol ← devlead ← {tool, command}`;`client-ui` 只依赖 `protocol`(浏览器侧)。
|
|
46
|
-
|
|
47
|
-
## 安装
|
|
48
|
-
|
|
49
|
-
### 从 npm 安装(发布后,推荐)
|
|
3
|
+
The npm bundle that upgrades one ordinary [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
|
|
4
|
+
(DSH) session into a **DevLead session**: it ships the core host service, eighteen lead
|
|
5
|
+
`devlead_*` tools plus the watched-child `devlead_report` tool, the human `/devlead` command, and
|
|
6
|
+
the browser UI (composer-toolbar switch, read-only status strip, sidebar marks, and the lead-only
|
|
7
|
+
read-only project board).
|
|
50
8
|
|
|
51
|
-
|
|
52
|
-
或:
|
|
9
|
+
## Install
|
|
53
10
|
|
|
54
11
|
```sh
|
|
55
12
|
dsh plugin --profile desktop add @yankeguo/dsh-devlead-bundle
|
|
56
13
|
```
|
|
57
14
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
dsh plugin --profile desktop add @yankeguo/dsh-devlead-bundle@0.2.0 # 升级到指定版本
|
|
63
|
-
dsh plugin --profile desktop remove @yankeguo/dsh-devlead-bundle # 卸载
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### 本地 checkout 安装
|
|
67
|
-
|
|
68
|
-
```sh
|
|
69
|
-
pnpm install && pnpm build
|
|
70
|
-
pnpm install:profile # 链接到 ~/.dsh/profiles/desktop 并启用 bundle
|
|
71
|
-
```
|
|
15
|
+
Or install it from the Web UI: open **Plugins → Add plugin**, enter
|
|
16
|
+
`@yankeguo/dsh-devlead-bundle`, and confirm. Afterwards check that the bundle is enabled on the
|
|
17
|
+
**Plugins** page (freshly installed bundles are usually enabled by default; tick it if not), then
|
|
18
|
+
reload the Web page.
|
|
72
19
|
|
|
73
|
-
|
|
20
|
+
## Open DevLead
|
|
74
21
|
|
|
75
|
-
|
|
76
|
-
# 一次性:创建专用 dev profile(不要复用 desktop —— 它已启用本 bundle)
|
|
77
|
-
dsh devlead --from-default-profile web --dump-config
|
|
22
|
+
In the session that should lead, run:
|
|
78
23
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
# 脚本会打印确切的启动命令,例如:
|
|
82
|
-
dsh --profile devlead --patch "$PWD/.tmp/cordis.patch.yml" --no-open
|
|
24
|
+
```text
|
|
25
|
+
/devlead on
|
|
83
26
|
```
|
|
84
27
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
`
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
28
|
+
The switch is **human-only**: no model call or tool can enable it. You can also click the
|
|
29
|
+
**DevLead** icon + label button in the composer toolbar — the same button stays in place in both
|
|
30
|
+
states and sends `/devlead on` when off and `/devlead off` when on. One Host runs at most one
|
|
31
|
+
DevLead session at a time; `/devlead on` in a second session is refused until the current holder
|
|
32
|
+
runs `/devlead off`. `/devlead` on its own prints the status view (mode, watched sessions, recent
|
|
33
|
+
notifications and mid-turn reports), and `/devlead reset` recovers a damaged state.
|
|
34
|
+
|
|
35
|
+
Once the mode is on, that session gains the lead tools: it can register Workspaces, create
|
|
36
|
+
ordinary child sessions, prompt and watch them, and be woken when they settle. The child sessions
|
|
37
|
+
are standard DSH Sessions — visible in the sidebar and openable by a human — not subagents.
|
|
38
|
+
|
|
39
|
+
## Project board (on by default)
|
|
40
|
+
|
|
41
|
+
The board is enabled by default and needs no configuration: the active DevLead session's original
|
|
42
|
+
workspace root owns `<workspace>/.dsh/devlead/board.json`, and the read-only right-Sidebar tab,
|
|
43
|
+
guide entry and Session-header button appear only in that lead Session. The file follows the single
|
|
44
|
+
active lead — turning the mode off or switching leads leaves the old file untouched and reads the
|
|
45
|
+
new one — and with no lead the board is disabled (the tools report `BOARD_DISABLED`, no board UI
|
|
46
|
+
appears).
|
|
47
|
+
|
|
48
|
+
To pin the file to a deployment-specific location instead, override loader row `devlead` in the
|
|
49
|
+
profile's `cordis.patch.yml` and set `config.boardPath` to an absolute JSON path (retain the other
|
|
50
|
+
`devlead` config keys because DSH replaces the row's whole config). `boardPath` is optional, wins
|
|
51
|
+
over the derived path, and existing explicit `boardPath` deployments keep working unchanged. If the
|
|
52
|
+
page was loaded before the lead was enabled and you use a custom `boardPath`, refresh the page once
|
|
53
|
+
so the browser receives the override path; the default derived path needs no refresh. Only the lead
|
|
54
|
+
AI writes via `devlead_board_update`; humans and browser clients are read-only. See
|
|
55
|
+
[docs/BOARD.md](https://github.com/yankeguo/dsh-devlead/blob/main/docs/BOARD.md) for schema v1 and
|
|
56
|
+
the `window.__DSH_DEVLEAD_BOARD__` contract. No user path is hardcoded in this package.
|
|
57
|
+
|
|
58
|
+
Each project can also carry long-form Markdown notes outside `board.json`: the active lead uses
|
|
59
|
+
`devlead_board_note_read` for list/read and `devlead_board_note_write` only for create/metadata/delete,
|
|
60
|
+
then edits the returned absolute Markdown path with DSH-native file tools. People get a compact notes chip
|
|
61
|
+
and an immersive, read-only Markdown reader in the board. Notes use a bounded metadata index under
|
|
62
|
+
`dirname(boardPath)/notes/`; Host reads lazily reconcile file metadata without rewriting bodies, and the
|
|
63
|
+
browser uses the same Workspace Files read path as the board with no write API or custom Remote.
|
|
64
|
+
|
|
65
|
+
## What's inside
|
|
66
|
+
|
|
67
|
+
The bundle's patch inserts four plugin rows:
|
|
68
|
+
|
|
69
|
+
| entry id | package | role |
|
|
70
|
+
| --- | --- | --- |
|
|
71
|
+
| `devlead` | `@yankeguo/dsh-devlead` | Host core service `ctx.devLead`: durable mode switch, Workspace/Session orchestration, notification hub, Session projections |
|
|
72
|
+
| `devlead-tool` | `@yankeguo/dsh-tool-devlead` | Eighteen lead `devlead_*` tools plus `devlead_report`, and the conditional DevLead system prompt/context |
|
|
73
|
+
| `devlead-command` | `@yankeguo/dsh-command-devlead` | The human `/devlead` command: status, on/off, reset, watch/unwatch |
|
|
74
|
+
| `devlead-ui` | `@yankeguo/dsh-client-ui-devlead` | Browser UI: composer-toolbar switch, read-only status strip, sidebar active/watched marks, and the lead-only read-only project board — renders on the DSH **Web** platform |
|
|
121
75
|
|
|
122
|
-
|
|
123
|
-
/devlead # 状态:模式状态、已关注会话、最近通知、帮助
|
|
124
|
-
/devlead on # 打开当前会话的 DevLead 模式(人类专属)
|
|
125
|
-
/devlead off # 关闭(fold 冻结时同时完成隐式 reset 恢复)
|
|
126
|
-
/devlead reset # 人类专属恢复:丢弃本会话的 DevLead 状态(模式/watch/digest)
|
|
127
|
-
/devlead watch <session> # 关注某个会话(完整 id 或唯一前缀)
|
|
128
|
-
/devlead unwatch <session> # 取消关注
|
|
129
|
-
```
|
|
76
|
+
## Learn more
|
|
130
77
|
|
|
131
|
-
|
|
132
|
-
|
|
78
|
+
- [Repository README (English)](https://github.com/yankeguo/dsh-devlead/blob/main/README.md) · [中文](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md)
|
|
79
|
+
- [Design notes](https://github.com/yankeguo/dsh-devlead/blob/main/docs/DESIGN.md): domain model, durable records, service API, notification pump
|
|
80
|
+
- [Compatibility notes](https://github.com/yankeguo/dsh-devlead/blob/main/docs/COMPATIBILITY.md): the supported DSH surface
|
|
81
|
+
- [v0.4.1 release notes](https://github.com/yankeguo/dsh-devlead/blob/main/docs/releases/v0.4.1.md) · [GitHub Releases](https://github.com/yankeguo/dsh-devlead/releases)
|
|
82
|
+
- Package READMEs: [protocol](https://github.com/yankeguo/dsh-devlead/blob/main/packages/protocol/README.md) · [devlead](https://github.com/yankeguo/dsh-devlead/blob/main/packages/devlead/README.md) · [tool](https://github.com/yankeguo/dsh-devlead/blob/main/packages/tool/README.md) · [command](https://github.com/yankeguo/dsh-devlead/blob/main/packages/command/README.md) · [client-ui](https://github.com/yankeguo/dsh-devlead/blob/main/packages/client-ui/README.md)
|
|
133
83
|
|
|
134
|
-
|
|
84
|
+
## License
|
|
135
85
|
|
|
136
|
-
|
|
137
|
-
先用 devlead_use_workspace 注册 /absolute/path/to/repo,
|
|
138
|
-
再用 devlead_create_session 在这个工作区创建一个子会话,下发下面的任务:……
|
|
139
|
-
```
|
|
86
|
+
MIT. See [LICENSE](https://github.com/yankeguo/dsh-devlead/blob/main/LICENSE).
|
|
140
87
|
|
|
141
|
-
|
|
142
|
-
「使用」与「通知机制」。
|
|
88
|
+
## 中文
|
|
143
89
|
|
|
144
|
-
|
|
90
|
+
`@yankeguo/dsh-devlead-bundle` 是 DevLead 套件的安装入口:把 DSH 的一个普通会话升级为 DevLead
|
|
91
|
+
会话,内含核心服务 `ctx.devLead`、18 个主 `devlead_*` 工具加 1 个 `devlead_report` 汇报工具、
|
|
92
|
+
人类 `/devlead` 命令,以及浏览器端 UI(composer 工具条开关、只读状态条、侧边栏标记,以及仅
|
|
93
|
+
lead 可见的只读项目看板;UI 只在 DSH Web 平台渲染)。
|
|
145
94
|
|
|
146
|
-
|
|
147
|
-
`cordis.patch.yml` 里按 loader row id `devlead` 覆盖该行 `config`(DSH 的 patch 是整体替换
|
|
148
|
-
该行 config,需写全要保留的字段)。
|
|
95
|
+
安装,或从 Web 的 **Plugins → Add plugin** 输入包名安装:
|
|
149
96
|
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
config:
|
|
153
|
-
notificationBatchMs: 400 # 通知合并窗口(0–2147483647 毫秒)
|
|
154
|
-
maxWatchedSessions: 64 # 每个 lead 最多关注的会话数
|
|
155
|
-
maxListedSessions: 200 # 会话列表最大行数
|
|
156
|
-
wakeColdSession: true # resume 冷 DevLead 会话以投递其排队的通知(默认)
|
|
157
|
-
defaultAgentPreset: '' # 创建会话的默认 Agent preset(空 = 用 Host 默认;无效 id 创建失败)
|
|
97
|
+
```sh
|
|
98
|
+
dsh plugin --profile desktop add @yankeguo/dsh-devlead-bundle
|
|
158
99
|
```
|
|
159
100
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
- 仓库 [README.zh.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md):功能、安装、使用、通知机制、配置与故障排查(英文版见 [README.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.md))
|
|
182
|
-
- [DESIGN](https://github.com/yankeguo/dsh-devlead/blob/main/docs/DESIGN.md):领域模型、持久记录、核心服务 API、通知泵与权限模型
|
|
183
|
-
- [PUBLISHING](https://github.com/yankeguo/dsh-devlead/blob/main/docs/PUBLISHING.md):npm staged publish 发布流程(CI 只 stage、维护者人工 approve 后公开)
|
|
184
|
-
- [v0.2.0 release notes](https://github.com/yankeguo/dsh-devlead/blob/main/docs/releases/v0.2.0.md)
|
|
185
|
-
- 包 README:[protocol](https://github.com/yankeguo/dsh-devlead/blob/main/packages/protocol/README.md) · [devlead](https://github.com/yankeguo/dsh-devlead/blob/main/packages/devlead/README.md) ·
|
|
186
|
-
[tool](https://github.com/yankeguo/dsh-devlead/blob/main/packages/tool/README.md) · [command](https://github.com/yankeguo/dsh-devlead/blob/main/packages/command/README.md) ·
|
|
187
|
-
[client-ui](https://github.com/yankeguo/dsh-devlead/blob/main/packages/client-ui/README.md)
|
|
188
|
-
|
|
189
|
-
## English summary
|
|
190
|
-
|
|
191
|
-
`@yankeguo/dsh-devlead-bundle` installs the whole DevLead suite - the core `ctx.devLead` service,
|
|
192
|
-
fourteen lead `devlead_*` tools plus the watched-child `devlead_report` tool, the `/devlead` human command, and the Web UI (composer-toolbar toggle
|
|
193
|
-
plus a status-only strip and sidebar marks). The suite targets the default DSH Web composition
|
|
194
|
-
(`dsh-base` + `dsh-web-app`) and has no hard dependency on experimental plugins. Full docs:
|
|
195
|
-
[README.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.md) (English), [README.zh.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md) (中文), and
|
|
196
|
-
[DESIGN.md](https://github.com/yankeguo/dsh-devlead/blob/main/docs/DESIGN.md).
|
|
101
|
+
安装后在 Plugins 页面确认 bundle 已启用(通常默认启用),刷新页面。要打开 DevLead,在目标
|
|
102
|
+
会话执行 `/devlead on`(人类专属操作;也可点 composer 工具条里的 DevLead 图标 + 文本按钮)。
|
|
103
|
+
同一 Host 同一时间只能有一个 DevLead 会话,关闭用 `/devlead off`。
|
|
104
|
+
|
|
105
|
+
项目看板默认启用、无需配置:active lead 会话的原始 workspace 根拥有
|
|
106
|
+
`<workspace>/.dsh/devlead/board.json`,看板 tab/guide/会话头按钮只在该 lead 会话出现。需要固定
|
|
107
|
+
路径时,覆盖 profile `cordis.patch.yml` 中 loader row `devlead` 的 `config.boardPath`(绝对路径、
|
|
108
|
+
可选;保留其余 config 键,DSH 会整体替换一行的 config)。已显式配置 `boardPath` 的部署行为不变;
|
|
109
|
+
若页面在 lead 启用前加载且使用自定义 `boardPath`,需刷新一次页面以拿到 override 路径(默认
|
|
110
|
+
派生路径不需要刷新)。只有 lead AI 通过 `devlead_board_update` 写入,人类/浏览器只读;详见
|
|
111
|
+
[docs/BOARD.md](https://github.com/yankeguo/dsh-devlead/blob/main/docs/BOARD.md)。
|
|
112
|
+
|
|
113
|
+
每个项目还可在 `board.json` 之外保存长篇 Markdown notes:active lead 用
|
|
114
|
+
`devlead_board_note_read` 读取列表/全文,只用 `devlead_board_note_write` 创建/更新元数据/删除,
|
|
115
|
+
再用 DSH 原生文件工具编辑返回的绝对 Markdown 路径;用户通过项目卡上的紧凑 notes chip 打开全栏
|
|
116
|
+
只读阅读器。notes 在 `dirname(boardPath)/notes/` 下使用有界元数据索引,Host read/list 惰性对账且
|
|
117
|
+
不重写正文;浏览器沿用 Workspace Files 只读路径,没有写 API 或新增 Remote。
|
|
118
|
+
|
|
119
|
+
更多文档见[根 README.zh.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md)与
|
|
120
|
+
[设计说明](https://github.com/yankeguo/dsh-devlead/blob/main/docs/DESIGN.md);License 为 MIT,
|
|
121
|
+
见 [LICENSE](https://github.com/yankeguo/dsh-devlead/blob/main/LICENSE)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yankeguo/dsh-devlead-bundle",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2-rc.10",
|
|
4
4
|
"description": "Dev Lead mode for DeepSeek Harness: turn one session into a lead that creates and steers ordinary Workspaces and Sessions, watches their state, and is woken on change.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@yankeguo/dsh-devlead": "0.4.
|
|
28
|
-
"@yankeguo/dsh-tool-devlead": "0.4.
|
|
29
|
-
"@yankeguo/dsh-command-devlead": "0.4.
|
|
30
|
-
"@yankeguo/dsh-client-ui-devlead": "0.4.
|
|
27
|
+
"@yankeguo/dsh-devlead": "0.4.2-rc.10",
|
|
28
|
+
"@yankeguo/dsh-tool-devlead": "0.4.2-rc.10",
|
|
29
|
+
"@yankeguo/dsh-command-devlead": "0.4.2-rc.10",
|
|
30
|
+
"@yankeguo/dsh-client-ui-devlead": "0.4.2-rc.10"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "~4.1.0"
|