@yankeguo/dsh-tool-devlead 0.4.3-rc.2 → 0.4.3-rc.3

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 (2) hide show
  1. package/README.md +19 -13
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -37,13 +37,15 @@ to create the directory. Domain failures are translated to `HarnessError` with a
37
37
  `DEVLEAD_*` code (board failures use `BOARD_*`). Tool outputs are canonical JSON validated against
38
38
  their declared output schemas.
39
39
 
40
- The board tools follow the board's default-on lifecycle: the active lead Session's original
41
- workspace root owns `<header.cwd>/.dsh/devlead/board.json`; a non-blank deployment `boardPath` is a
42
- relative-only override resolved against that same root. With no active lead / workspace root they
43
- report `BOARD_DISABLED`. Both derived and explicit-override boards require the recorded original
44
- workspace root to still exist as a directory: the Host never recreates a deleted or moved workspace
45
- just to host the board, and an explicit `boardPath` cannot bypass this missing-root gate. They never
46
- accept a board file path argument — the path is derived by the Host or set by deployment config only.
40
+ The board tools follow the board's default-on lifecycle: deployment `statePath` is a relative state
41
+ directory defaulting to `.dsh/devlead`, resolved against the active lead Session's original workspace
42
+ root. The board is `<workspace>/<statePath>/board.json`, and notes share
43
+ `<workspace>/<statePath>/notes/`; exact board JSON paths and independent notes paths are not accepted.
44
+ With no active lead / workspace root they report `BOARD_DISABLED`. Both default and custom directories
45
+ require the recorded original workspace root to still exist as a directory: the Host never recreates a
46
+ deleted or moved workspace just to host the board, and a custom `statePath` cannot bypass this
47
+ missing-root gate. The tools never accept a board file or notes-root path argument — both are derived
48
+ by the Host from deployment config only.
47
49
  `devlead_board_read` defaults to project summaries without tasks; a selected project includes at most
48
50
  50 tasks by default and reports `truncated:true` beyond that. The whole serialized result is also
49
51
  capped at 64 KiB (`DEVLEAD_BOARD_READ_MAX_BYTES`): tasks, then blockers, then whole project rows are
@@ -65,7 +67,8 @@ tool and then edit bodies with native file tools, reconcile stale state before r
65
67
  once instead of repeatedly retrying. Ordinary Sessions see neither text nor board tools.
66
68
 
67
69
  The two notes tools use the same active-lead gate and board-project id/title/absolute-path resolver,
68
- but never accept a notes file path argument. They read and manage only `dirname(boardPath)/notes/`: the strict
70
+ but never accept a notes file path argument. They read and manage only `<workspace>/<statePath>/notes/`
71
+ (equivalently, the Host's resolved absolute `dirname(boardFilePath)/notes/`): the strict
69
72
  schema-v1 `index.json` contains `{ revision, updatedAt, projects:[{ id, directory, notes[] }] }` and
70
73
  metadata only, while each body is `<directory>/<note-id>.md`. Every read/create/update-metadata/delete result adds a
71
74
  Host-derived `absolutePath` to returned note metadata; it is not persisted in the disk index. `create` makes an
@@ -191,10 +194,12 @@ supported platform.
191
194
  不虚构 id)。`preset` 是 Host 定义的 id;省略/空白先回退插件 `defaultAgentPreset`,再回退
192
195
  Host 默认/selectedDefault;无效 id 在创建阶段返回结构化错误,不会被静默忽略。领域错误翻译为
193
196
  稳定的 `DEVLEAD_*` code(看板为 `BOARD_*`)。`devlead_board_read` / `devlead_board_update` 提供
194
- 用户可见项目看板:默认启用,由唯一 active lead 的原始 workspace 根 `SessionHeader.cwd` 派生
195
- `<cwd>/.dsh/devlead/board.json`;非空 `boardPath` 只接受相对该根的 override,空白仍用默认路径。
196
- 没有 lead、没有绝对 workspace 根或原始根缺失时返回 `BOARD_DISABLED`;显式 override 也不能绕过
197
- missing-root 检查,Host 不重建目录。工具从不接受看板文件路径参数。读取结果按 64 KiB 上限(tasks → blockers →
197
+ 用户可见项目看板:默认启用,部署 `statePath` 缺省为相对目录 `.dsh/devlead`,由唯一 active lead 的
198
+ 原始 workspace 根 `SessionHeader.cwd` 解析;看板为 `<workspace>/<statePath>/board.json`,notes 同目录
199
+ 派生到 `<workspace>/<statePath>/notes/`。不接受精确 board JSON 路径或独立 notes 路径,空白也不是默认值
200
+ 别名。没有 lead、没有绝对 workspace 根或原始根缺失时返回 `BOARD_DISABLED`;自定义 `statePath` 也不能绕过
201
+ missing-root 检查,Host 不重建目录。工具从不接受看板文件或 notes 根
202
+ 路径参数。读取结果按 64 KiB 上限(tasks → blockers →
198
203
  project 行从尾部裁剪,`truncated:true`);update 使用 per-project revision CAS;插件只写文件,是否提交由各仓库
199
204
  自行决定;project 引用在锁内快照上解析,长
200
205
  workspace path/title 不再误报 `BOARD_LIMIT_EXCEEDED`,未知引用仍是
@@ -210,7 +215,8 @@ workspace path/title 不再误报 `BOARD_LIMIT_EXCEEDED`,未知引用仍是
210
215
  update-metadata 只改 title/summary。read/create/update-metadata/delete 返回的每个 note metadata 都增加
211
216
  Host 派生的 `absolutePath`(不写入磁盘 index),所有正文读写都用 DSH 原生 `read`/`write`/`edit` 作用于
212
217
  该绝对路径,不要手改 `notes/index.json`。project 仍按看板 id/title/绝对 path 解析,
213
- 两个工具都不接受文件路径参数。notes 根目录固定为 `dirname(boardPath)/notes/`,index 只含 metadata,正文路径固定为
218
+ 两个工具都不接受文件路径参数。notes 根目录固定为 `<workspace>/<statePath>/notes/`(等价于 Host 内部
219
+ 已解析绝对 `dirname(boardFilePath)/notes/`),index 只含 metadata,正文路径固定为
214
220
  `<directory>/<note-id>.md`;工具管理的 index/metadata/删除写入使用跨进程文件锁、原子替换与
215
221
  `expected_revision` CAS,index 是提交事实、orphan Markdown 忽略。index ≤128 KiB、单 note ≤256 KiB 合法 UTF-8、
216
222
  每项目 ≤100 条。详见
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-tool-devlead",
3
- "version": "0.4.3-rc.2",
3
+ "version": "0.4.3-rc.3",
4
4
  "description": "Model-facing DevLead tools: register and list DSH Workspaces, create and steer ordinary Sessions, read session status, watch state changes, and read the lead's notification feed.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,8 +26,8 @@
26
26
  "@deepseek-ai/schemastery": "~3.19.0"
27
27
  },
28
28
  "dependencies": {
29
- "@yankeguo/dsh-devlead": "0.4.3-rc.2",
30
- "@yankeguo/dsh-devlead-protocol": "0.4.3-rc.2"
29
+ "@yankeguo/dsh-devlead": "0.4.3-rc.3",
30
+ "@yankeguo/dsh-devlead-protocol": "0.4.3-rc.3"
31
31
  },
32
32
  "engines": {
33
33
  "dsh": ">=0.2.2-rc.1 <0.3.0"