@yankeguo/dsh-devlead-protocol 0.2.5 → 0.2.6

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 CHANGED
@@ -25,10 +25,11 @@ Only install this package directly when you are composing the suite yourself.
25
25
  | `@yankeguo/dsh-devlead-protocol/client` | Browser-safe constants, types, and pure formatting helpers |
26
26
  | `@yankeguo/dsh-devlead-protocol/package.json` | Package manifest |
27
27
 
28
- The public contract includes the `devLead` / `devLeadMode` projection keys and types, durable
29
- `plugin:devlead/*` record types and their version (mode / watch / notification / **report** / **reset**;
30
- `DevLeadResetRecord` discards every earlier DevLead record of a Session and restarts both
31
- projections from their empty state), the watched-child `DevLeadReport` receipt
28
+ The public contract includes the `devLead` / `devLeadMode` / `devLeadWatch` projection keys and
29
+ types, durable `plugin:devlead/*` record types and their version (mode / watch / notification /
30
+ **report** / **reset**; `DevLeadResetRecord` discards every earlier DevLead record of a Session and
31
+ restarts all three projections from their empty state), the summary-sized `DevLeadWatchProjection`
32
+ (`{ sessions }`, used by the sidebar to mark watched rows), the watched-child `DevLeadReport` receipt
32
33
  (`kind`, `message`, `summary?`, sender/lead ids, turn; bounded message/summary), retention/excerpt/
33
34
  instant constants, transition/report-kind vocabulary, `devLeadReportId`, `reportLine`,
34
35
  `notificationLine` / `excerptLine` / `formatInstant`, the `DevLeadUseWorkspaceRequest` shape
@@ -44,6 +45,6 @@ carried by the required `DevLeadCreatedSession.isolation` field.
44
45
  ## 中文
45
46
 
46
47
  `@yankeguo/dsh-devlead-protocol` 是 DevLead 套件的纯协议包:host 与浏览器共用的类型、常量、
47
- projection 键、`plugin:devlead/*` 持久记录类型(mode / watch / notification / report / reset)与格式化
48
+ projection 键(`devLead` / `devLeadMode` / `devLeadWatch`)、`plugin:devlead/*` 持久记录类型(mode / watch / notification / report / reset)与格式化
48
49
  函数,以及 `DevLeadUseWorkspaceRequest`、必填的 `DevLeadCreatedSession.isolation` 等请求/结果
49
50
  形状。它没有运行时 DSH 依赖,通常随 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/lib/client.js CHANGED
@@ -9,6 +9,7 @@ var DEVLEAD_RESET_RECORD_TYPE = "plugin:devlead/reset";
9
9
  var DEVLEAD_RECORD_VERSION = 1;
10
10
  var DEVLEAD_PROJECTION_KEY = "devLead";
11
11
  var DEVLEAD_MODE_PROJECTION_KEY = "devLeadMode";
12
+ var DEVLEAD_WATCH_PROJECTION_KEY = "devLeadWatch";
12
13
  var DEVLEAD_COMMAND_NAME = "devlead";
13
14
  var DEVLEAD_MESSAGE_KIND = "devlead";
14
15
  var DEVLEAD_TOOL_PREFIX = "devlead_";
@@ -126,6 +127,7 @@ export {
126
127
  DEVLEAD_RESET_RECORD_TYPE,
127
128
  DEVLEAD_TOOL_PREFIX,
128
129
  DEVLEAD_TRANSITIONS,
130
+ DEVLEAD_WATCH_PROJECTION_KEY,
129
131
  DEVLEAD_WATCH_RECORD_TYPE,
130
132
  devLeadReportId,
131
133
  excerptLine,
package/lib/index.js CHANGED
@@ -9,6 +9,7 @@ var DEVLEAD_RESET_RECORD_TYPE = "plugin:devlead/reset";
9
9
  var DEVLEAD_RECORD_VERSION = 1;
10
10
  var DEVLEAD_PROJECTION_KEY = "devLead";
11
11
  var DEVLEAD_MODE_PROJECTION_KEY = "devLeadMode";
12
+ var DEVLEAD_WATCH_PROJECTION_KEY = "devLeadWatch";
12
13
  var DEVLEAD_COMMAND_NAME = "devlead";
13
14
  var DEVLEAD_MESSAGE_KIND = "devlead";
14
15
  var DEVLEAD_TOOL_PREFIX = "devlead_";
@@ -126,6 +127,7 @@ export {
126
127
  DEVLEAD_RESET_RECORD_TYPE,
127
128
  DEVLEAD_TOOL_PREFIX,
128
129
  DEVLEAD_TRANSITIONS,
130
+ DEVLEAD_WATCH_PROJECTION_KEY,
129
131
  DEVLEAD_WATCH_RECORD_TYPE,
130
132
  devLeadReportId,
131
133
  excerptLine,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-devlead-protocol",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Pure shared protocol of the devlead plugin suite: durable mode, watched-session and notification types, plus the pure fold and formatting rules used by both Host and browser.",
5
5
  "license": "MIT",
6
6
  "type": "module",