@deepseek-ai/dsh-llm-replay 0.2.0-rc.2 → 0.2.1-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 +4 -4
- package/README.md +2 -1
- package/README.zh.md +2 -1
- package/lib/types/index.d.ts +1 -1
- package/package.json +13 -13
package/README.i18n.yaml
CHANGED
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
en: e2116be9c7a5c18f
|
|
19
19
|
zh: dc89da423decf4aa
|
|
20
20
|
/deepseek-ai-dsh-llm-replay/use-this-package/mounting-it:
|
|
21
|
-
en:
|
|
22
|
-
zh:
|
|
21
|
+
en: 0630839689756cf5
|
|
22
|
+
zh: f2ed5bf5110088a7
|
|
23
23
|
/deepseek-ai-dsh-llm-replay/use-this-package/how-the-fixture-works:
|
|
24
24
|
en: d7dd048cd69e723d
|
|
25
25
|
zh: 9f5dfa5186549cd0
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
en: dfd1dd70ea389c66
|
|
40
40
|
zh: 3c0f2e0ee601e3f5
|
|
41
41
|
/deepseek-ai-dsh-llm-replay/understand-the-implementation/source-map:
|
|
42
|
-
en:
|
|
43
|
-
zh:
|
|
42
|
+
en: 0542116615161c60
|
|
43
|
+
zh: 66fe2603b04760b6
|
|
44
44
|
/deepseek-ai-dsh-llm-replay/understand-the-implementation/binding-and-stream-flow:
|
|
45
45
|
en: 484c98a2679b218f
|
|
46
46
|
zh: 8d3266a0f3deac87
|
package/README.md
CHANGED
|
@@ -29,6 +29,8 @@ This package gives a keyless test a real agent with a fixed model transcript: mo
|
|
|
29
29
|
|
|
30
30
|
### Mounting it
|
|
31
31
|
|
|
32
|
+
Prepared callers require the routed adapter mode. Configure `models[].reasoningEfforts` from least to greatest selectable effort. Configuration functions receive that order during preparation; `defaultReasoningEffort` remains independent of the first entry.
|
|
33
|
+
|
|
32
34
|
With `providers` configured, the plugin registers a replay-only adapter whose catalog is available to scenarios that exercise model discovery; without `providers`, it installs the catch-all `llm/stream` waterfall used by tests that do not need discovery:
|
|
33
35
|
|
|
34
36
|
```yaml
|
|
@@ -107,7 +109,6 @@ The [committed-corpus test](tests/session-format-corpus.spec.ts) restores each v
|
|
|
107
109
|
|---|---|
|
|
108
110
|
| [`src/index.ts`](src/index.ts) | Types, fixture derivation, override validation, placeholder resolution, session binding, `installLlmReplay`, and the plugin export |
|
|
109
111
|
| [`tests/session-format-corpus.spec.ts`](tests/session-format-corpus.spec.ts) | Committed-generation restoration and exact historical refusal checks |
|
|
110
|
-
| — | No runtime invariant companion is published; this test-only adapter consumes a fixed replay script; its stream grammar is checked by the LLM companion and fixture derivation tests. |
|
|
111
112
|
|
|
112
113
|
### Binding and stream flow
|
|
113
114
|
|
package/README.zh.md
CHANGED
|
@@ -29,6 +29,8 @@ kind: "package-reference"
|
|
|
29
29
|
|
|
30
30
|
### 挂载它
|
|
31
31
|
|
|
32
|
+
已准备调用要求使用路由适配器模式。将 `models[].reasoningEfforts` 按可选强度从低到高排列。配置函数在准备期间接收该顺序;`defaultReasoningEffort` 仍独立于首个条目。
|
|
33
|
+
|
|
32
34
|
配置 `providers` 后,插件会注册仅用于回放的适配器,其模型目录可供测试模型发现功能的场景使用;未配置 `providers` 时,它安装无需模型发现功能的测试所用的 catch-all `llm/stream` waterfall(瀑布式事件):
|
|
33
35
|
|
|
34
36
|
```yaml
|
|
@@ -107,7 +109,6 @@ parent agent 委托给进程内 subagent 的场景会为每个 Session 记录一
|
|
|
107
109
|
|---|---|
|
|
108
110
|
| [`src/index.ts`](src/index.ts) | 类型、fixture 派生、override 校验、占位符解析、会话绑定、`installLlmReplay` 与插件导出 |
|
|
109
111
|
| [`tests/session-format-corpus.spec.ts`](tests/session-format-corpus.spec.ts) | 已提交代际还原与精确历史拒绝检查 |
|
|
110
|
-
| — | 不发布运行时不变式伴生入口;该仅测试适配器消费固定的回放脚本;其流语法由 LLM 伴生插件与 fixture 派生测试检验。 |
|
|
111
112
|
|
|
112
113
|
### 绑定与流式流程
|
|
113
114
|
|
package/lib/types/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface ReplayModelConfig {
|
|
|
56
56
|
* no image pricing.
|
|
57
57
|
*/
|
|
58
58
|
imageRequestTokens?: number;
|
|
59
|
-
/** Optional reasoning-effort ids
|
|
59
|
+
/** Optional reasoning-effort ids from least to greatest selectable effort. */
|
|
60
60
|
reasoningEfforts?: string[];
|
|
61
61
|
/**
|
|
62
62
|
* Optional effort materialized when callers omit one; must appear in
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-llm-replay",
|
|
3
3
|
"description": "Replay LLM plugin: short-circuits llm/stream with model chunks reconstructed from a recorded session JSONL (keyless snapshot tests)",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
31
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
32
|
-
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.2.
|
|
33
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
34
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
30
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
31
|
+
"@deepseek-ai/dsh-compaction": "0.2.1-alpha.2",
|
|
32
|
+
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.2.1-alpha.2",
|
|
33
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
|
|
34
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@deepseek-ai/dsh-deepseek-llm-api-extensions": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
43
|
-
"@deepseek-ai/dsh-compaction": "0.2.
|
|
44
|
-
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.2.
|
|
45
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
46
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
42
|
+
"@deepseek-ai/cordis": "~4.0.5-alpha.1",
|
|
43
|
+
"@deepseek-ai/dsh-compaction": "0.2.1-alpha.2",
|
|
44
|
+
"@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.2.1-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-llm": "0.2.1-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-session": "0.2.1-alpha.2"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@deepseek-ai/dsh-session-format-catalog": "0.2.
|
|
50
|
-
"@deepseek-ai/dsh-util-values": "0.2.
|
|
49
|
+
"@deepseek-ai/dsh-session-format-catalog": "0.2.1-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-util-values": "0.2.1-alpha.2"
|
|
51
51
|
}
|
|
52
52
|
}
|