@deepseek-ai/dsh-session-telemetry 0.2.0-rc.2 → 0.2.1-alpha.1
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 +6 -6
- package/README.md +2 -4
- package/README.zh.md +2 -4
- package/lib/index.js +3 -3
- package/lib/types/index.d.ts +3 -3
- package/package.json +7 -7
package/README.i18n.yaml
CHANGED
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
en: cad1e9d195916553
|
|
37
37
|
zh: 2192f3ce5e2196bd
|
|
38
38
|
/deepseek-ai-dsh-session-telemetry/understand-the-implementation/design-concept:
|
|
39
|
-
en:
|
|
40
|
-
zh:
|
|
39
|
+
en: 2eeafa2e73202e92
|
|
40
|
+
zh: 003b796d53af7577
|
|
41
41
|
/deepseek-ai-dsh-session-telemetry/understand-the-implementation/source-map:
|
|
42
42
|
en: 5dc345ec3dda38b8
|
|
43
43
|
zh: 189d673734a2c20e
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
en: c213358e20f27173
|
|
49
49
|
zh: 84a5501335891f0b
|
|
50
50
|
/deepseek-ai-dsh-session-telemetry/further-exploration:
|
|
51
|
-
en:
|
|
52
|
-
zh:
|
|
51
|
+
en: de4295bc2bbfb076
|
|
52
|
+
zh: efaacf0686d460a6
|
|
53
53
|
/deepseek-ai-dsh-session-telemetry/model-experience:
|
|
54
54
|
en: 6a6b429828997572
|
|
55
55
|
zh: bde61df9dab8f840
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
en: dc950b1f59a057ec
|
|
61
61
|
zh: 6f353d426b03abb1
|
|
62
62
|
/deepseek-ai-dsh-session-telemetry/known-limitations-and-deferred-work/dev-note:
|
|
63
|
-
en:
|
|
64
|
-
zh:
|
|
63
|
+
en: e67f633dc6fe7773
|
|
64
|
+
zh: 3bb0c20c93f16f98
|
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ This section explains the capture design; the observable behavior is fully cover
|
|
|
65
65
|
|
|
66
66
|
### Design concept
|
|
67
67
|
|
|
68
|
-
The capture package owns complete event capture, redaction, and handoff cursors. Redaction rules must preserve `sourceEvent` for OTel upload; returning a fresh record without it withholds the event with a diagnostic. Its cloned envelope excludes `data`, which is carried only in `body`. The OTel backend owns byte/count scheduling and uses SDK transport/retries. The [revival Agent Note](../../../.agents/notes/
|
|
68
|
+
The capture package owns complete event capture, redaction, and handoff cursors. Redaction rules must preserve `sourceEvent` for OTel upload; returning a fresh record without it withholds the event with a diagnostic. Its cloned envelope excludes `data`, which is carried only in `body`. The OTel backend owns byte/count scheduling and uses SDK transport/retries. The [historical revival Agent Note](../../../.agents/notes/archived/feature/2026-07-23-session-telemetry-otel-revival.md) records capture and redaction rationale.
|
|
69
69
|
|
|
70
70
|
### Source map
|
|
71
71
|
|
|
@@ -93,7 +93,7 @@ Read these pages when the seam contract is not enough. They move from the shippe
|
|
|
93
93
|
|
|
94
94
|
- [OpenTelemetry telemetry backend](../session-telemetry-otel/README.md) — the shipped backend deployments load, with mode and exporter configuration.
|
|
95
95
|
- [Session telemetry subsystem](../../../docs/subsystems/session-telemetry.md) — the capability split and type declarations.
|
|
96
|
-
- [Session telemetry revival decision](../../../.agents/notes/
|
|
96
|
+
- [historical Session telemetry revival decision](../../../.agents/notes/archived/feature/2026-07-23-session-telemetry-otel-revival.md) — rationale, trade-offs, and rejected alternatives.
|
|
97
97
|
- [Session package map](../README.md) — adjacent persistence, projection, title, and telemetry packages.
|
|
98
98
|
|
|
99
99
|
-----
|
|
@@ -127,5 +127,3 @@ These limits define the delivery and data-protection guarantees a deployment get
|
|
|
127
127
|
None.
|
|
128
128
|
|
|
129
129
|
</details>
|
|
130
|
-
|
|
131
|
-
**Runtime invariant:** No companion is published. The package's whole output is the backend handoff — a synchronous `emit()` call outside every authoritative event stream — and its capture side never appends session events, so no event/data relation exists for an independent companion to observe.
|
package/README.zh.md
CHANGED
|
@@ -65,7 +65,7 @@ ledger 记录携带 `sourceEvent`,其中包含所属 Session id 和不含 `dat
|
|
|
65
65
|
|
|
66
66
|
### 设计理念
|
|
67
67
|
|
|
68
|
-
捕获包负责完整事件捕获、脱敏和交接游标。脱敏规则必须保留 `sourceEvent` 才能通过 OTel 上传;返回不含它的新记录会阻止该事件上传并产生诊断。复制的 envelope 不含 `data`,数据仅由 `body` 携带。OTel 后端负责字节/条数调度并使用 SDK 传输和重试。[
|
|
68
|
+
捕获包负责完整事件捕获、脱敏和交接游标。脱敏规则必须保留 `sourceEvent` 才能通过 OTel 上传;返回不含它的新记录会阻止该事件上传并产生诊断。复制的 envelope 不含 `data`,数据仅由 `body` 携带。OTel 后端负责字节/条数调度并使用 SDK 传输和重试。[历史恢复遥测决策记录](../../../.agents/notes/archived/feature/2026-07-23-session-telemetry-otel-revival.md) 说明捕获和脱敏依据。
|
|
69
69
|
|
|
70
70
|
### 源码地图
|
|
71
71
|
|
|
@@ -93,7 +93,7 @@ ledger 记录携带 `sourceEvent`,其中包含所属 Session id 和不含 `dat
|
|
|
93
93
|
|
|
94
94
|
- [OpenTelemetry 遥测后端](../session-telemetry-otel/README.zh.md)——部署方加载的随附后端,含模式与导出器配置。
|
|
95
95
|
- [会话遥测子系统](../../../docs/subsystems/session-telemetry.zh.md)——能力拆分与类型声明。
|
|
96
|
-
- [
|
|
96
|
+
- [历史会话遥测复活决策](../../../.agents/notes/archived/feature/2026-07-23-session-telemetry-otel-revival.md)——理由、权衡与被否决的替代方案。
|
|
97
97
|
- [会话包映射](../README.zh.md)——相邻的持久化、投影、标题与遥测包。
|
|
98
98
|
|
|
99
99
|
-----
|
|
@@ -127,5 +127,3 @@ ledger 记录携带 `sourceEvent`,其中包含所属 Session id 和不含 `dat
|
|
|
127
127
|
无。
|
|
128
128
|
|
|
129
129
|
</details>
|
|
130
|
-
|
|
131
|
-
**运行时不变式:** 不发布伴生入口。本包的全部输出都是后端交接,即在所有权威事件流之外同步调用 `emit()`;捕获侧不追加会话事件,因此不存在可供独立 companion 观察的事件与数据关系。
|
package/lib/index.js
CHANGED
|
@@ -258,9 +258,9 @@ function identityOf(session, event) {
|
|
|
258
258
|
* forwarding), live versus on-demand canonical-log capture, and the HMR
|
|
259
259
|
* cursor. Everything downstream of
|
|
260
260
|
* {@link SessionTelemetryBackend.emit} — batching, retry, queueing, and loss policy — is the
|
|
261
|
-
* backend's responsibility and is deliberately not modelled here.
|
|
262
|
-
*
|
|
263
|
-
* .
|
|
261
|
+
* backend's responsibility and is deliberately not modelled here. Capture and
|
|
262
|
+
* backend responsibilities are documented in the
|
|
263
|
+
* [Session telemetry reference](../README.md#understand-the-implementation).
|
|
264
264
|
*
|
|
265
265
|
* @module @deepseek-ai/dsh-session-telemetry
|
|
266
266
|
*/
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* forwarding), live versus on-demand canonical-log capture, and the HMR
|
|
8
8
|
* cursor. Everything downstream of
|
|
9
9
|
* {@link SessionTelemetryBackend.emit} — batching, retry, queueing, and loss policy — is the
|
|
10
|
-
* backend's responsibility and is deliberately not modelled here.
|
|
11
|
-
*
|
|
12
|
-
* .
|
|
10
|
+
* backend's responsibility and is deliberately not modelled here. Capture and
|
|
11
|
+
* backend responsibilities are documented in the
|
|
12
|
+
* [Session telemetry reference](../README.md#understand-the-implementation).
|
|
13
13
|
*
|
|
14
14
|
* @module @deepseek-ai/dsh-session-telemetry
|
|
15
15
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session-telemetry",
|
|
3
3
|
"description": "SessionTelemetryBackend seam for the DeepSeek Harness: session-event capture, projection, redaction, and handoff to a reporting backend",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1-alpha.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@deepseek-ai/dsh-
|
|
31
|
-
"@deepseek-ai/
|
|
32
|
-
"@deepseek-ai/
|
|
30
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.1",
|
|
31
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
32
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-agent": "0.2.
|
|
36
|
-
"@deepseek-ai/
|
|
37
|
-
"@deepseek-ai/
|
|
35
|
+
"@deepseek-ai/dsh-agent": "0.2.1-alpha.1",
|
|
36
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
37
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.1"
|
|
38
38
|
}
|
|
39
39
|
}
|