@yankeguo/dsh-devlead-protocol 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.
- package/README.md +7 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,10 +5,12 @@ types, the strict project-board and project-notes wire schemas (both v1), format
|
|
|
5
5
|
constants both the Host and the browser bundle use. It is the only package both halves share: the
|
|
6
6
|
board's default path segments (`DEVLEAD_BOARD_DIR_SEGMENTS`, `DEVLEAD_BOARD_FILE_NAME`) and the
|
|
7
7
|
`DEVLEAD_BOARD_READ_MAX_BYTES` tool-read cap live here, so the Host (which derives
|
|
8
|
-
`<lead header.cwd
|
|
9
|
-
from the Session summary `cwd` when the page-load
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
`<lead header.cwd>/<statePath>/board.json`, with deployment `statePath` defaulting to `.dsh/devlead`)
|
|
9
|
+
and the browser (which derives the same default path from the Session summary `cwd` when the page-load
|
|
10
|
+
global is absent) cannot drift. Notes constants identify `<workspace>/<statePath>/notes/index.json`
|
|
11
|
+
(equivalently, the already-resolved absolute `dirname(boardFilePath)/notes/index.json`), cap the index at
|
|
12
|
+
128 KiB and each Markdown body at 256 KiB, and limit each project to 100 notes. The wire fields and
|
|
13
|
+
schema are unchanged by the deployment-key rename.
|
|
12
14
|
|
|
13
15
|
This package has **no runtime dependency** on any DSH package. Its single DSH import is a
|
|
14
16
|
type-only projection-map augmentation; it is erased at build time. The one third-party runtime
|
|
@@ -72,4 +74,4 @@ core package.
|
|
|
72
74
|
## 中文
|
|
73
75
|
|
|
74
76
|
`@yankeguo/dsh-devlead-protocol` 是 DevLead 套件的纯协议包:host 与浏览器共用的类型、常量、
|
|
75
|
-
projection 键(`devLead` / `devLeadMode` / `devLeadWatch`)、`plugin:devlead/*` 持久记录类型(mode / watch / notification / report / reset)、项目看板与项目 notes 的严格 wire schema v1,以及格式化函数和请求/结果形状。看板导出 `createDevLeadBoardSchema(isAbsolutePath)`、limits、持久类型、重复 id/path 与 UTC 时间规则、RFC 6901 issue 映射;包内另导出看板默认路径段常量(`DEVLEAD_BOARD_DIR_SEGMENTS` = `.dsh`/`devlead`、`DEVLEAD_BOARD_FILE_NAME` = `board.json`)与 `devlead_board_read` 的 64 KiB 上限 `DEVLEAD_BOARD_READ_MAX_BYTES`,Host
|
|
77
|
+
projection 键(`devLead` / `devLeadMode` / `devLeadWatch`)、`plugin:devlead/*` 持久记录类型(mode / watch / notification / report / reset)、项目看板与项目 notes 的严格 wire schema v1,以及格式化函数和请求/结果形状。看板导出 `createDevLeadBoardSchema(isAbsolutePath)`、limits、持久类型、重复 id/path 与 UTC 时间规则、RFC 6901 issue 映射;包内另导出看板默认路径段常量(`DEVLEAD_BOARD_DIR_SEGMENTS` = `.dsh`/`devlead`、`DEVLEAD_BOARD_FILE_NAME` = `board.json`)与 `devlead_board_read` 的 64 KiB 上限 `DEVLEAD_BOARD_READ_MAX_BYTES`,Host 以部署 `statePath`(默认相对目录 `.dsh/devlead`)派生 `<workspace>/<statePath>/board.json`,浏览器在 global 缺失时派生同一默认路径,不会各写一份。notes 导出 `DevLeadNotesIndex` / `DevLeadNotesProject` / `DevLeadNoteMetadata`、`createDevLeadNotesIndexSchema()` / `parseDevLeadNotesIndex()` 与 `DEVLEAD_NOTES_*` 常量,索引路径为 `<workspace>/<statePath>/notes/index.json`(等价于内部已解析绝对 `dirname(boardFilePath)/notes/index.json`),wire schema 不随部署键改名:index 固定为 `{schemaVersion:1,revision,updatedAt,projects:[{id,directory,notes[]}]}`,metadata 固定为 `{id,title,summary,updatedAt,bytes,path}`;正文不进入 index,路径必须精确等于 `<directory>/<note-id>.md`。未知字段、重复 project id/directory/note id/path、绝对路径和 path traversal 一律拒绝;index ≤128 KiB、单 note ≤256 KiB、每项目 ≤100 条。它没有运行时 DSH 依赖;`zod` 是唯一的第三方运行期依赖,会被打包进两个发布入口,浏览器侧使用 DSH 冻结 module table 的 `zod` platform singleton。`@yankeguo/dsh-client-ui-devlead` 只依赖本包(不依赖 `@yankeguo/dsh-devlead`)。通常随 bundle 安装。完整中文文档见[根 README.zh.md](https://github.com/yankeguo/dsh-devlead/blob/main/README.zh.md)与[设计说明](https://github.com/yankeguo/dsh-devlead/blob/main/docs/DESIGN.md)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yankeguo/dsh-devlead-protocol",
|
|
3
|
-
"version": "0.4.3-rc.
|
|
3
|
+
"version": "0.4.3-rc.3",
|
|
4
4
|
"description": "Pure shared protocol of the devlead plugin suite: durable mode, watched-session and notification types, the project-board wire schema shared by Host and browser, plus the pure fold and formatting rules both sides use.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|