@yankeguo/dsh-devlead-bundle 0.4.3-rc.1 → 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 +27 -14
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -45,13 +45,21 @@ active lead — turning the mode off or switching leads leaves the old file unto
45
45
  new one — and with no lead the board is disabled (the tools report `BOARD_DISABLED`, no board UI
46
46
  appears).
47
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
48
+ To place the board and notes in a deployment-specific state directory instead, override loader row
49
+ `devlead` in the profile's `cordis.patch.yml` and set `config.statePath` to a relative directory such
50
+ as `custom/state` (retain the other `devlead` config keys because DSH replaces the row's whole
51
+ config). It defaults to `.dsh/devlead` and resolves against the active lead's original workspace root
52
+ (`SessionHeader.cwd`, not its worktree checkout): the board is
53
+ `<workspace>/<statePath>/board.json`, and notes share `<workspace>/<statePath>/notes/`. The value is
54
+ a directory, not a JSON filename; there is no independent notes path and blank is not a default alias.
55
+ Both default and custom directories require that root to exist; the Host never recreates a missing
56
+ root. Absolute POSIX paths, Windows drive/UNC paths, backslashes, empty segments and `..` root escapes
57
+ fail fast with structured `BOARD_INVALID` and `/statePath` at Loader/direct construction. After
58
+ `path.resolve`, the directory must stay inside the root and the final derived `board.json` cannot be
59
+ a symlink; parent-directory symlinks are accepted. If the page was loaded before the lead was enabled
60
+ and you use a custom `statePath`, refresh the page once
61
+ so the browser receives the resolved custom path; the default derived path needs no refresh. Only
62
+ the lead AI writes via `devlead_board_update`; humans and browser clients are read-only. See
55
63
  [docs/BOARD.md](https://github.com/yankeguo/dsh-devlead/blob/main/docs/BOARD.md) for schema v1 and
56
64
  the `window.__DSH_DEVLEAD_BOARD__` contract. No user path is hardcoded in this package.
57
65
 
@@ -59,7 +67,7 @@ Each project can also carry long-form Markdown notes outside `board.json`: the a
59
67
  `devlead_board_note_read` for list/read and `devlead_board_note_write` only for create/metadata/delete,
60
68
  then edits the returned absolute Markdown path with DSH-native file tools. People get a compact notes chip
61
69
  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
70
+ `<workspace>/<statePath>/notes/`; Host reads lazily reconcile file metadata without rewriting bodies, and the
63
71
  browser uses the same Workspace Files read path as the board with no write API or custom Remote.
64
72
 
65
73
  ## What's inside
@@ -103,17 +111,22 @@ dsh plugin --profile desktop add @yankeguo/dsh-devlead-bundle
103
111
  同一 Host 同一时间只能有一个 DevLead 会话,关闭用 `/devlead off`。
104
112
 
105
113
  项目看板默认启用、无需配置: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` 写入,人类/浏览器只读;详见
114
+ `<workspace>/.dsh/devlead/board.json`,看板 tab/guide/会话头按钮只在该 lead 会话出现。需要自定义
115
+ board 与 notes 的共同状态目录时,覆盖 profile `cordis.patch.yml` 中 loader row `devlead` 的
116
+ `config.statePath`,例如相对目录 `custom/state`(保留其余 config 键,DSH 会整体替换一行的 config)。
117
+ 该键默认 `.dsh/devlead`,相对原始 `SessionHeader.cwd`(不是 worktree checkout)解析:看板为
118
+ `<workspace>/<statePath>/board.json`,notes 同目录派生到 `<workspace>/<statePath>/notes/`。配置值是目录
119
+ 而非 JSON 文件名,没有独立 notes 路径,空白也不是默认值别名。默认与自定义目录都要求原始根存在,缺失时
120
+ 不重建。绝对 POSIX、Windows 盘符/UNC、反斜杠、空段与 `..` 逃逸在 Loader/直接构造时以结构化
121
+ `BOARD_INVALID` + `/statePath` fail-fast;`path.resolve` 后必须仍在根内,最终派生的 `board.json` 不能是
122
+ symlink,父目录链 symlink 可接受。若页面在 lead 启用前加载且使用自定义 `statePath`,需刷新一次页面以拿到
123
+ 解析后的自定义路径(默认派生路径不需要刷新)。只有 lead AI 通过 `devlead_board_update` 写入,人类/浏览器只读;详见
111
124
  [docs/BOARD.md](https://github.com/yankeguo/dsh-devlead/blob/main/docs/BOARD.md)。
112
125
 
113
126
  每个项目还可在 `board.json` 之外保存长篇 Markdown notes:active lead 用
114
127
  `devlead_board_note_read` 读取列表/全文,只用 `devlead_board_note_write` 创建/更新元数据/删除,
115
128
  再用 DSH 原生文件工具编辑返回的绝对 Markdown 路径;用户通过项目卡上的紧凑 notes chip 打开全栏
116
- 只读阅读器。notes 在 `dirname(boardPath)/notes/` 下使用有界元数据索引,Host read/list 惰性对账且
129
+ 只读阅读器。notes 在 `<workspace>/<statePath>/notes/` 下使用有界元数据索引,Host read/list 惰性对账且
117
130
  不重写正文;浏览器沿用 Workspace Files 只读路径,没有写 API 或新增 Remote。
118
131
 
119
132
  更多文档见[根 README.zh.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md)与
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-devlead-bundle",
3
- "version": "0.4.3-rc.1",
3
+ "version": "0.4.3-rc.3",
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.3-rc.1",
28
- "@yankeguo/dsh-tool-devlead": "0.4.3-rc.1",
29
- "@yankeguo/dsh-command-devlead": "0.4.3-rc.1",
30
- "@yankeguo/dsh-client-ui-devlead": "0.4.3-rc.1"
27
+ "@yankeguo/dsh-devlead": "0.4.3-rc.3",
28
+ "@yankeguo/dsh-tool-devlead": "0.4.3-rc.3",
29
+ "@yankeguo/dsh-command-devlead": "0.4.3-rc.3",
30
+ "@yankeguo/dsh-client-ui-devlead": "0.4.3-rc.3"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "~4.1.0"