@yankeguo/dsh-devlead-bundle 0.4.3-rc.2 → 0.4.3-rc.4

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 +26 -24
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -45,19 +45,20 @@ 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 a relative JSON path such as
50
- `.dsh/devlead/board.json` or `custom/board.json` (retain the other `devlead` config keys because
51
- DSH replaces the row's whole config). A non-blank value is resolved against the active lead's
52
- original workspace root (`SessionHeader.cwd`, not its worktree checkout); blank still uses
53
- `<cwd>/.dsh/devlead/board.json`. Both forms require that root to exist; the Host never recreates a
54
- missing root. Absolute POSIX paths and Windows drive/UNC paths fail fast with `BOARD_INVALID` at
55
- Loader/direct construction, with an error asking for a relative path. Backslashes, empty segments,
56
- and `..` root escapes are also rejected; after `path.resolve`, the path must stay inside the root
57
- and its final component cannot be a symlink. Existing
58
- absolute-path deployments fail on startup after upgrade and must migrate to a relative path. If the
59
- page was loaded before the lead was enabled and you use a custom `boardPath`, refresh the page once
60
- so the browser receives the resolved override path; the default derived path needs no refresh. Only
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
61
62
  the lead AI writes via `devlead_board_update`; humans and browser clients are read-only. See
62
63
  [docs/BOARD.md](https://github.com/yankeguo/dsh-devlead/blob/main/docs/BOARD.md) for schema v1 and
63
64
  the `window.__DSH_DEVLEAD_BOARD__` contract. No user path is hardcoded in this package.
@@ -66,7 +67,7 @@ Each project can also carry long-form Markdown notes outside `board.json`: the a
66
67
  `devlead_board_note_read` for list/read and `devlead_board_note_write` only for create/metadata/delete,
67
68
  then edits the returned absolute Markdown path with DSH-native file tools. People get a compact notes chip
68
69
  and an immersive, read-only Markdown reader in the board. Notes use a bounded metadata index under
69
- `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
70
71
  browser uses the same Workspace Files read path as the board with no write API or custom Remote.
71
72
 
72
73
  ## What's inside
@@ -110,21 +111,22 @@ dsh plugin --profile desktop add @yankeguo/dsh-devlead-bundle
110
111
  同一 Host 同一时间只能有一个 DevLead 会话,关闭用 `/devlead off`。
111
112
 
112
113
  项目看板默认启用、无需配置:active lead 会话的原始 workspace 根拥有
113
- `<workspace>/.dsh/devlead/board.json`,看板 tab/guide/会话头按钮只在该 lead 会话出现。需要固定
114
- 路径时,覆盖 profile `cordis.patch.yml` 中 loader row `devlead` 的 `config.boardPath`,非空仅接受
115
- `.dsh/devlead/board.json`、`custom/board.json` 等相对路径(保留其余 config 键,DSH 会整体替换一行的
116
- config);它相对原始 `SessionHeader.cwd`(不是 worktree checkout)解析,空白仍用默认路径。默认与
117
- override 都要求原始根存在,缺失时不重建。绝对 POSIX、Windows 盘符/UNC 在 Loader/直接构造时以
118
- `BOARD_INVALID` fail-fast,错误提示改用相对路径;反斜杠、空段与 `..` 逃逸同样被拒绝,
119
- `path.resolve` 后必须仍在根内,最终组件不能是 symlink。既有绝对路径部署升级后会启动失败,必须迁移为相对路径。若页面在 lead
120
- 启用前加载且使用自定义 `boardPath`,需刷新一次页面以拿到解析后的 override 路径(默认派生路径不需要
121
- 刷新)。只有 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` 写入,人类/浏览器只读;详见
122
124
  [docs/BOARD.md](https://github.com/yankeguo/dsh-devlead/blob/main/docs/BOARD.md)。
123
125
 
124
126
  每个项目还可在 `board.json` 之外保存长篇 Markdown notes:active lead 用
125
127
  `devlead_board_note_read` 读取列表/全文,只用 `devlead_board_note_write` 创建/更新元数据/删除,
126
128
  再用 DSH 原生文件工具编辑返回的绝对 Markdown 路径;用户通过项目卡上的紧凑 notes chip 打开全栏
127
- 只读阅读器。notes 在 `dirname(boardPath)/notes/` 下使用有界元数据索引,Host read/list 惰性对账且
129
+ 只读阅读器。notes 在 `<workspace>/<statePath>/notes/` 下使用有界元数据索引,Host read/list 惰性对账且
128
130
  不重写正文;浏览器沿用 Workspace Files 只读路径,没有写 API 或新增 Remote。
129
131
 
130
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.2",
3
+ "version": "0.4.3-rc.4",
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.2",
28
- "@yankeguo/dsh-tool-devlead": "0.4.3-rc.2",
29
- "@yankeguo/dsh-command-devlead": "0.4.3-rc.2",
30
- "@yankeguo/dsh-client-ui-devlead": "0.4.3-rc.2"
27
+ "@yankeguo/dsh-devlead": "0.4.3-rc.4",
28
+ "@yankeguo/dsh-tool-devlead": "0.4.3-rc.4",
29
+ "@yankeguo/dsh-command-devlead": "0.4.3-rc.4",
30
+ "@yankeguo/dsh-client-ui-devlead": "0.4.3-rc.4"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "~4.1.0"