@deepseek-ai/dsh-session-checkpoint-policy 0.1.5-rc.2 → 0.1.6-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 +2 -2
- package/README.md +1 -1
- package/README.zh.md +3 -3
- package/package.json +16 -16
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/session/session-checkpoint-policy/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: 0114ffb82b53d456eb0677f209bff61c82bfbd98
|
|
6
|
+
README.zh.md: 2abe4d4d6ec411434ea668d83995c1a76ae9a726
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
|
|
|
9
9
|
|
|
10
10
|
## Summary
|
|
11
11
|
|
|
12
|
-
Use this package with a session persistence backend to make work durable before a model request, before a top-level tool can cause external effects, and before the next agent step begins. After each checkpoint,
|
|
12
|
+
Use this package with a session persistence backend to make work durable before a model request, before a top-level tool can cause external effects, and before the next agent step begins. After each checkpoint, work can resume after a crash from stored requests, tool calls, responses, and results without loss. Checkpoint failures are fail-closed: a model adapter or top-level tool body does not run until the durable write succeeds. The package has no configuration and adds no prompt or tool schema; unfinished Assistant streams remain transient, and interrupted tool calls recover with an unknown outcome instead of an automatic retry.
|
|
13
13
|
|
|
14
14
|
## Table of Contents
|
|
15
15
|
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "面向用户与维护者的语义会话持久性检查点说明,用于部署不会在崩溃时丢失模型请求或工具副作用的持久化 agent
|
|
2
|
+
description: "面向用户与维护者的语义会话持久性检查点说明,用于部署不会在崩溃时丢失模型请求或工具副作用的持久化 agent(智能体)。"
|
|
3
3
|
kind: "package-reference"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ kind: "package-reference"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
将本包与会话持久化后端配合使用,可在模型请求之前、顶层工具可能产生外部副作用之前以及下一 agent
|
|
12
|
+
将本包与会话持久化后端配合使用,可在模型请求之前、顶层工具可能产生外部副作用之前以及下一 agent 步骤开始之前持久记录工作。每个检查点之后,即使发生崩溃,系统也能从已存储的请求、工具调用、响应与结果恢复工作,而不会丢失这些工作。检查点失败按失败即阻止原则处理:持久写入成功前,模型适配器或顶层工具正文不会运行。本包没有配置,也不添加提示词或工具 schema;未完成的 Assistant 流保持瞬态,而中断的工具调用会以未知结果恢复,不会自动重试。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -29,7 +29,7 @@ kind: "package-reference"
|
|
|
29
29
|
|
|
30
30
|
### 何时选择
|
|
31
31
|
|
|
32
|
-
为每个可能被中断的持久化 agent
|
|
32
|
+
为每个可能被中断的持久化 agent 选择它——已记录工具调用与其结果之间、或模型请求与其响应之间的崩溃,正是本策略遏制的那类故障。不带它加载后端是有效的但更弱:仍位于后端批处理窗口内或尚未完成的写入可能丢失。当没有任何组件持久化会话,或专用部署刻意替换检查点调度时,跳过本策略。
|
|
33
33
|
|
|
34
34
|
### 最小配置
|
|
35
35
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-session-checkpoint-policy",
|
|
3
3
|
"description": "Semantic session durability checkpoints before model requests and tool side effects",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
31
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
32
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
33
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
34
|
-
"@deepseek-ai/dsh-
|
|
35
|
-
"@deepseek-ai/dsh-
|
|
31
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
|
|
32
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
33
|
+
"@deepseek-ai/dsh-session-persistence": "^0.1.6-alpha.2",
|
|
34
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.2",
|
|
35
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
39
39
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
40
|
-
"@deepseek-ai/dsh-agent
|
|
41
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
42
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.
|
|
43
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
44
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
45
|
-
"@deepseek-ai/dsh-session
|
|
46
|
-
"@deepseek-ai/dsh-session-
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
48
|
-
"@deepseek-ai/dsh-
|
|
49
|
-
"@deepseek-ai/dsh-tools": "^0.1.
|
|
40
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.2",
|
|
41
|
+
"@deepseek-ai/dsh-agent-loop": "^0.1.6-alpha.2",
|
|
42
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "^0.1.6-alpha.2",
|
|
43
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-session-persistence": "^0.1.6-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.6-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-session-projection": "^0.1.6-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.2"
|
|
50
50
|
}
|
|
51
51
|
}
|