@deepseek-ai/dsh-llm-retry 0.1.3-alpha.2 → 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/llm/llm-retry/README.md
5
- README.md: 0ea815130212a165582540e43aad7d59fad32d2c
6
- README.zh.md: 43a0187c68d272e2764d34db35fa26e51a9d3a83
5
+ README.md: ca8018e1fbfcda7b091c30370a195bfe40c5f1b2
6
+ README.zh.md: db7e4db13123b955f9ba2931d6cda8359b30c0aa
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `@deepseek-ai/dsh-llm-retry` is the retry executor for failed model requests: it applies each provider's resolved retry policy at the agent loop's open-step `agent/request-error` extension point, so every retry re-runs the same step inside the same open turn over the same durable history. It does not wrap the streaming call itself — every adapter call remains one provider attempt, and direct `ctx.llm.stream()` consumers stay single-attempt. Retry scheduling is durable: the plugin appends `llm/retry` events to the session log before waiting, and cancellation during backoff leaves the log consistent. Normal mode retries a bounded set of failure codes up to `maxRetries` with exponential backoff; always mode asks downstream recovery first, then retries every failure without an attempt limit.
12
+ Mount `@deepseek-ai/dsh-llm-retry` to retry failed model requests at durable agent-step boundaries. Provider `retryPolicy` settings choose bounded normal-mode retries or unlimited always-mode retries; scheduled attempts reach the session log before backoff, and cancellation leaves consistent history. Retries re-run the failed step in the same open turn, while direct `ctx.llm.stream()` calls remain single-attempt. Each retry is another billed provider request, and always mode continues until success, cancellation, or disposal.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `@deepseek-ai/dsh-llm-retry` 是失败模型请求的重试执行器:它在 agent loop 的打开步骤 `agent/request-error` 扩展点上应用各提供方解析后的重试策略,因此每次重试都会在同一个打开的轮次内重跑同一个步骤(基于同一份持久历史)。它不包装流式调用本身——每次适配器调用仍是一次提供方尝试,直接 `ctx.llm.stream()` 消费方仍是单次尝试。重试调度是持久的:插件在等待之前就把 `llm/retry` 事件追加进会话日志,退避期间取消会让日志保持一致。normal mode 以指数退避重试一组有界的失败 code,最多 `maxRetries` 次;always mode 先询问下游恢复,然后无尝试上限地重试每个失败。
12
+ 挂载 `@deepseek-ai/dsh-llm-retry`,可在持久 agent 步骤边界重试失败的模型请求。提供方的 `retryPolicy` 设置可选择有界的 normal mode 重试或无上限的 always mode 重试;计划的尝试会在退避前写入会话日志,取消后历史仍保持一致。重试会在同一个打开的轮次内重跑失败步骤,而直接 `ctx.llm.stream()` 调用仍只尝试一次。每次重试都会产生另一次提供方请求计费,always mode 会持续到成功、取消或释放。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-llm-retry",
3
3
  "description": "Provider-routed LLM request retry policy for the DeepSeek Harness",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -36,36 +36,36 @@
36
36
  ],
37
37
  "license": "MIT",
38
38
  "peerDependencies": {
39
- "@deepseek-ai/dsh-brand": "^0.1.3-alpha.2",
40
- "@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
41
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
42
- "@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
39
+ "@deepseek-ai/dsh-brand": "^0.1.5-alpha.2",
40
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
41
+ "@deepseek-ai/dsh-invariants": "^0.1.5-alpha.2",
42
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
43
+ "@deepseek-ai/dsh-timeout": "^0.1.5-alpha.2",
44
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
43
45
  "@deepseek-ai/cordis": "^4.0.2",
44
- "@deepseek-ai/dsh-session-projection": "^0.1.3-alpha.2",
45
- "@deepseek-ai/dsh-invariants": "^0.1.3-alpha.2",
46
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2"
46
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.2"
47
47
  },
48
48
  "dependencies": {
49
49
  "zod": "^4.4.3",
50
50
  "@deepseek-ai/schemastery": "^3.18.2"
51
51
  },
52
52
  "devDependencies": {
53
- "@deepseek-ai/dsh-brand": "^0.1.3-alpha.2",
54
- "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
55
- "@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
56
- "@deepseek-ai/dsh-agent-loop": "^0.1.3-alpha.2",
53
+ "@deepseek-ai/dsh-brand": "^0.1.5-alpha.2",
57
54
  "@deepseek-ai/cordis-plugin-include": "^1.0.7",
58
- "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.3-alpha.2",
59
- "@deepseek-ai/dsh-invariants": "^0.1.3-alpha.2",
60
- "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
61
- "@deepseek-ai/dsh-llm-deepseek": "^0.1.3-alpha.2",
62
- "@deepseek-ai/dsh-llm-mock-server": "^0.1.3-alpha.2",
63
- "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
64
- "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.3-alpha.2",
65
- "@deepseek-ai/dsh-system-prompt": "^0.1.3-alpha.2",
66
- "@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
67
- "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
55
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
56
+ "@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
57
+ "@deepseek-ai/dsh-agent-loop": "^0.1.5-alpha.2",
58
+ "@deepseek-ai/dsh-invariants": "^0.1.5-alpha.2",
59
+ "@deepseek-ai/dsh-llm-deepseek": "^0.1.5-alpha.2",
60
+ "@deepseek-ai/dsh-llm-mock-server": "^0.1.5-alpha.2",
61
+ "@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
62
+ "@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
63
+ "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.5-alpha.2",
64
+ "@deepseek-ai/dsh-system-prompt": "^0.1.5-alpha.2",
65
+ "@deepseek-ai/dsh-session-projection": "^0.1.5-alpha.2",
66
+ "@deepseek-ai/dsh-timeout": "^0.1.5-alpha.2",
67
+ "@deepseek-ai/dsh-tools": "^0.1.5-alpha.2",
68
68
  "@deepseek-ai/cordis": "^4.0.2",
69
- "@deepseek-ai/dsh-session-projection": "^0.1.3-alpha.2"
69
+ "@deepseek-ai/dsh-agent-loop-testkit": "^0.1.5-alpha.2"
70
70
  }
71
71
  }