@deepseek-ai/dsh-session 0.1.5-alpha.1 → 0.1.5-alpha.2

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/core/session/README.md
5
- README.md: a06b22b5e8f48743047c68e883edd496fbc6eb77
6
- README.zh.md: 755894b4c30f0a3807f472cece32685d102efbeb
5
+ README.md: cdcab8ec4d2f6960bb651aff46745b20f91632e2
6
+ README.zh.md: 745615f67084430475e0739b22afa35556b71ee6
package/README.md CHANGED
@@ -181,7 +181,7 @@ Logging causes no invalidation, and exact reconstruction preserves request-prefi
181
181
  These limits define when the session store needs special care. They are current package constraints, not a task backlog.
182
182
 
183
183
  - **`fork()` cuts only at stable boundaries of live sessions** — the selected prefix must end outside an open turn and the source must be in the store; forking a persisted-but-unloaded session is excluded from the fork API.
184
- - **`SESSION_FORMAT_VERSION` names the current V3 logical representation** — the V3 reader rejects retired `header.system` and validates `system/message` payloads and protected-head rewrites. Historical headers and events belong to adjacent format packages; the V2→V3 edge converts supported history before constructing `Session`, and write open publishes only the V3 successor. Equal-version unknown events require the envelope's explicit `ignorable` marker, which does not promise safe structural migration ([mechanism](../../../.agents/notes/implemented/architecture/2026-08-31-released-session-format-migrations.md)).
184
+ - **`SESSION_FORMAT_VERSION` names the [current logical representation](../../../docs/session-format-status.md)** — the current reader rejects retired `header.system` and validates `system/message` payloads and protected-head rewrites. Historical headers and events belong to adjacent format packages; the adjacent migration chain converts supported history before constructing `Session`, and write open publishes only the current-format successor. Equal-version unknown events require the envelope's explicit `ignorable` marker, which does not promise safe structural migration ([mechanism](../../../.agents/notes/implemented/architecture/2026-08-31-released-session-format-migrations.md)).
185
185
  - **`TurnEndReasonMap` omits the ACP-named `refusal` / `max_turn_requests` variants** — producer-gated: they land when an adapter or the loop first emits them.
186
186
  - **No session tree beyond fork** — a pi-style entry tree over branched sessions is deferred unless a consumer needs more than boundary-based forking.
187
187
 
package/README.zh.md CHANGED
@@ -181,7 +181,7 @@ session.deriveMessages() // the derived model history
181
181
  这些限制说明会话存储何时需要特别留意。它们是当前包约束,不是任务积压。
182
182
 
183
183
  - **`fork()` 仅在实时会话的稳定边界处切分**:所选前缀结束时不得有开放轮次,且源会话必须位于存储中;fork API 不支持对已持久化但未加载的会话进行 fork。
184
- - **`SESSION_FORMAT_VERSION` 命名当前 V3 逻辑表示**——V3 读取器拒绝已退役的 `header.system`,并校验 `system/message` 载荷与受保护头节点的重写。历史 header 与事件归相邻格式包所有;V2→V3 迁移边在构造 `Session` 前转换受支持的历史,写打开只发布 V3 后继代际。同版本未知事件要求信封显式带有 `ignorable` 标记,但这不保证结构迁移的安全性([机制](../../../.agents/notes/implemented/architecture/2026-08-31-released-session-format-migrations.zh.md))。
184
+ - **`SESSION_FORMAT_VERSION` 命名[当前逻辑表示](../../../docs/session-format-status.zh.md)**——当前读取器拒绝已退役的 `header.system`,并校验 `system/message` 载荷与受保护头节点的重写。历史 header 与事件归相邻格式包所有;相邻迁移链在构造 `Session` 前转换受支持的历史,写打开只发布当前格式的后继代际。同版本未知事件要求信封显式带有 `ignorable` 标记,但这不保证结构迁移的安全性([机制](../../../.agents/notes/implemented/architecture/2026-08-31-released-session-format-migrations.zh.md))。
185
185
  - **`TurnEndReasonMap` 不含 ACP(Agent Client Protocol)命名的 `refusal`/`max_turn_requests` 变体**:受生产方约束;只有当适配器或循环首次产生这些变体时才加入。
186
186
  - **fork 之外没有会话树**:基于分支会话的 pi 风格条目树被推迟,除非消费方需要超越基于边界的 forking 的能力。
187
187
 
package/lib/index.js CHANGED
@@ -90,6 +90,7 @@ const KNOWN_SESSION_EVENT_TYPES = new Set([
90
90
  "compaction/prune",
91
91
  "compaction/start",
92
92
  "compaction/summary",
93
+ "deliverables/presented",
93
94
  "feedback/message-delete",
94
95
  "feedback/message-put",
95
96
  "feedback/record",
@@ -111,6 +112,7 @@ const KNOWN_SESSION_EVENT_TYPES = new Set([
111
112
  "session/title-llm-request",
112
113
  "step/end",
113
114
  "step/start",
115
+ "subagent/catalog",
114
116
  "subagent/descriptor",
115
117
  "subagent/model-selection-policy",
116
118
  "system/message",
@@ -32,6 +32,7 @@ export const KNOWN_SESSION_EVENT_TYPES = new Set([
32
32
  'compaction/prune',
33
33
  'compaction/start',
34
34
  'compaction/summary',
35
+ 'deliverables/presented',
35
36
  'feedback/message-delete',
36
37
  'feedback/message-put',
37
38
  'feedback/record',
@@ -53,6 +54,7 @@ export const KNOWN_SESSION_EVENT_TYPES = new Set([
53
54
  'session/title-llm-request',
54
55
  'step/end',
55
56
  'step/start',
57
+ 'subagent/catalog',
56
58
  'subagent/descriptor',
57
59
  'subagent/model-selection-policy',
58
60
  'system/message',
@@ -102,7 +102,7 @@ export interface CreateSessionOptions {
102
102
  /** Initial replay or fork history supplied at construction. */
103
103
  readonly seed?: readonly SessionEvent[];
104
104
  /**
105
- * Exact fork-inherited prefix length when `meta.isSeeded` is true. In v2 the
105
+ * Exact fork-inherited prefix length when `meta.isSeeded` is true. The
106
106
  * constructor seed is exactly this inherited prefix; the constructor
107
107
  * appends the child-owned tagged marker at the cut.
108
108
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-session",
3
3
  "description": "Event-sourced session store for the DeepSeek Harness",
4
- "version": "0.1.5-alpha.1",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -41,19 +41,19 @@
41
41
  ],
42
42
  "license": "MIT",
43
43
  "peerDependencies": {
44
- "@deepseek-ai/cordis": "^4.0.2",
45
- "@deepseek-ai/dsh-scope": "^0.1.5-alpha.1"
44
+ "@deepseek-ai/dsh-scope": "^0.1.5-alpha.2",
45
+ "@deepseek-ai/cordis": "^4.0.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@deepseek-ai/dsh-invariants": "^0.1.5-alpha.1",
49
- "@deepseek-ai/dsh-scope": "^0.1.5-alpha.1",
50
- "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.1",
51
- "@deepseek-ai/dsh-typert-registry": "^0.1.5-alpha.1",
48
+ "@deepseek-ai/dsh-invariants": "^0.1.5-alpha.2",
49
+ "@deepseek-ai/dsh-scope": "^0.1.5-alpha.2",
50
+ "@deepseek-ai/dsh-typert-registry": "^0.1.5-alpha.2",
51
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.2",
52
52
  "@deepseek-ai/cordis": "^4.0.2"
53
53
  },
54
54
  "dependencies": {
55
- "@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
56
- "@deepseek-ai/dsh-brand": "^0.1.5-alpha.1",
57
- "@deepseek-ai/dsh-util-values": "^0.1.5-alpha.1"
55
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
56
+ "@deepseek-ai/dsh-brand": "^0.1.5-alpha.2",
57
+ "@deepseek-ai/dsh-util-values": "^0.1.5-alpha.2"
58
58
  }
59
59
  }