@deepseek-ai/dsh-session-telemetry 0.1.5-rc.1 → 0.1.6-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 +1 -1
- package/README.zh.md +5 -5
- package/package.json +6 -6
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/session/session-telemetry/README.md
|
|
5
5
|
README.md: ba503adf55409ada47dc89b68ee37029ab0381d6
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 5e7237ddac46f4eaab2850186153158e3d36b99a
|
package/README.zh.md
CHANGED
|
@@ -37,13 +37,13 @@ kind: "package-library"
|
|
|
37
37
|
|
|
38
38
|
### 捕获内容
|
|
39
39
|
|
|
40
|
-
捕获以两种模式之一运行。`live` 捕获在追加时跟随会话事件、在挂载时回放已存活会话并记录生命周期标记;`on-demand` 捕获只在后端通过 `captureSession(session, throughSeq?)` 请求前缀时读取权威会话日志。协调器选项决定是否包含存储历史。每条权威会话事件都按顺序映射为一条 ledger 记录。`assistant/message` 或 `assistant/attempt`
|
|
40
|
+
捕获以两种模式之一运行。`live` 捕获在追加时跟随会话事件、在挂载时回放已存活会话并记录生命周期标记;`on-demand` 捕获只在后端通过 `captureSession(session, throughSeq?)` 请求前缀时读取权威会话日志。协调器选项决定是否包含存储历史。每条权威会话事件都按顺序映射为一条 ledger 记录。`assistant/message` 或 `assistant/attempt` 记录会携带完整的嵌入式紧凑流,包括失败和重试输出。每条 ledger 记录还携带 `session.id`、`session.format_version`、数值型事件标识、可选 header 事实与预先映射的严重级别(`tool/result.isError`、`turn/end` 的错误原因与 `agent-error` 映射为 `error`;其余为 `info`)。
|
|
41
41
|
|
|
42
42
|
### 共享披露
|
|
43
43
|
|
|
44
44
|
<a id="the-sharing-disclosure"></a>
|
|
45
45
|
|
|
46
|
-
每个后端通过 `sharing` 披露部署模式:`full`、`feedback-only` 或 `disabled
|
|
46
|
+
每个后端通过 `sharing` 披露部署模式:`full`、`feedback-only` 或 `disabled`。后端还可限制符合条件的会话。该属性不是投递回执;交接是非阻塞入队,批处理、重试与丢失策略属于后端 SDK。
|
|
47
47
|
|
|
48
48
|
### 脱敏记录
|
|
49
49
|
|
|
@@ -74,11 +74,11 @@ seam 建立在一个边界之上:harness 的职责止于 `emit()`。完整事
|
|
|
74
74
|
|
|
75
75
|
### 捕获流程
|
|
76
76
|
|
|
77
|
-
实时捕获通过组合 fiber 的 effect 注册 Session 事件、刷新提示、关闭标记与 agent/error 观察器。按需捕获只注册释放 effect,并按历史策略读取请求的权威日志前缀。同步处理器隔离失败,避免影响 agent loop
|
|
77
|
+
实时捕获通过组合 fiber 的 effect 注册 Session 事件、刷新提示、关闭标记与 agent/error 观察器。按需捕获只注册释放 effect,并按历史策略读取请求的权威日志前缀。同步处理器隔离失败,避免影响 agent loop(智能体循环)或其他监听器。
|
|
78
78
|
|
|
79
79
|
### handoff 游标
|
|
80
80
|
|
|
81
|
-
模块作用域的 `WeakMap<Session, seq>` 记录已交接而非已投递的最高序号。重新收养同一对象时从该游标之后继续。捕获通常从 `firstLiveSeq` 开始;显式 `includeHistory: true` 从未交接对象的 seq 0
|
|
81
|
+
模块作用域的 `WeakMap<Session, seq>` 记录已交接而非已投递的最高序号。重新收养同一对象时从该游标之后继续。捕获通常从 `firstLiveSeq` 开始;显式 `includeHistory: true` 从未交接对象的 seq 0 开始,包含恢复或 fork 历史。后端负责捕获授权。存储的历史本身不授权捕获;OTel 后端等待新的显式反馈。接收方按 `(session.id, session.format_version, event.seq)` 对重复记录去重。
|
|
82
82
|
|
|
83
83
|
</details>
|
|
84
84
|
|
|
@@ -126,4 +126,4 @@ seam 建立在一个边界之上:harness 的职责止于 `emit()`。完整事
|
|
|
126
126
|
|
|
127
127
|
</details>
|
|
128
128
|
|
|
129
|
-
**运行时不变式:**
|
|
129
|
+
**运行时不变式:** 不发布伴生入口。本包的全部输出都是后端交接,即在所有权威事件流之外同步调用 `emit()`;捕获侧不追加会话事件,因此不存在可供独立 companion 观察的事件与数据关系。
|
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.1.
|
|
4
|
+
"version": "0.1.6-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-
|
|
30
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.1",
|
|
31
31
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
32
|
-
"@deepseek-ai/dsh-
|
|
32
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-
|
|
36
|
-
"@deepseek-ai/
|
|
37
|
-
"@deepseek-ai/
|
|
35
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.1",
|
|
36
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
37
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.1"
|
|
38
38
|
}
|
|
39
39
|
}
|