@deepseek-ai/dsh-llm-replay 0.1.6-alpha.2 → 0.1.7-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/test-support/llm-replay/README.md
5
- README.md: 5877db20babb07523e870d6f3041e1c35f076130
6
- README.zh.md: dc2c015ff4f1347da41f49608452702c9c90a67a
5
+ README.md: 1124572ce28375a1d67b474c23dbe29000124f01
6
+ README.zh.md: ee7f75509687da17867adbb5e414b74b8775addf
package/README.md CHANGED
@@ -83,6 +83,8 @@ Two failure modes are not reconstructable from a durable Assistant settlement al
83
83
  - **An unrecorded session makes a call** — replay fails loud and tells you to re-record the scenario.
84
84
  - **A scripted placeholder matches nothing** — `{{fromRequest:<regex>}}` resolution validates the pattern and the request corpus and fails loud on no match, an invalid pattern, or an unterminated placeholder.
85
85
 
86
+ Isolated transcript extraction supplies an explicit empty child-fact set to V3→V4. It retains recorded catalog entries but does not discover related files. Complete historical parent catalog migration belongs to JSONL persistence.
87
+
86
88
  -----
87
89
 
88
90
  <a id="understand-the-implementation"></a>
package/README.zh.md CHANGED
@@ -83,6 +83,8 @@ parent agent 委托给进程内 subagent 的场景会为每个 Session 记录一
83
83
  - **未记录的会话发起调用**——回放会明确报错,并提示你重新录制场景。
84
84
  - **脚本占位符匹配不到内容**——`{{fromRequest:<regex>}}` 解析会校验模式与请求语料,匹配不到、模式非法或占位符未闭合都会明确报错。
85
85
 
86
+ 独立转录提取向 V3→V4 显式提供空的子 Session 事实集合;保留已有目录记录,但不发现关联文件。完整的历史父目录迁移由 JSONL 持久化负责。
87
+
86
88
  -----
87
89
 
88
90
  <a id="understand-the-implementation"></a>
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
2
2
  import { delimiter } from "node:path";
3
3
  import { SESSION_FORMAT_VERSION, SessionLogOffset } from "@deepseek-ai/dsh-session";
4
- import { SessionFormatUnsupportedMigrationError, sessionFormatCatalog } from "@deepseek-ai/dsh-session-format-catalog";
4
+ import { SessionFormatUnsupportedMigrationError, createSessionFormatCatalogWithChildren, sessionFormatCatalog } from "@deepseek-ai/dsh-session-format-catalog";
5
5
  import { LlmAdapter, LlmError, ReasoningEffortId, expandAssistantStream, offloadedImageText, requestImageHandleText, resolveRetryPolicy } from "@deepseek-ai/dsh-llm";
6
6
  import { assertNever } from "@deepseek-ai/dsh-util-values";
7
7
  //#region lib/types/index.js
@@ -55,7 +55,7 @@ function parseSessionFixture(text) {
55
55
  headerLineNumber = lineNumber;
56
56
  sourceHeader = recordValue;
57
57
  try {
58
- restore = sessionFormatCatalog.createRestore(normalizeProjectedHeader(recordValue), {
58
+ restore = createSessionFormatCatalogWithChildren([]).createRestore(normalizeProjectedHeader(recordValue), {
59
59
  recovery: "strict",
60
60
  validation: "current"
61
61
  });
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.1.6-alpha.2",
4
+ "version": "0.1.7-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.2",
31
- "@deepseek-ai/dsh-deepseek-llm-api-extensions": "^0.1.6-alpha.2",
32
- "@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
33
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.2",
34
- "@deepseek-ai/dsh-compaction": "^0.1.6-alpha.2"
30
+ "@deepseek-ai/dsh-compaction": "0.1.7-alpha.2",
31
+ "@deepseek-ai/cordis": "~4.0.4",
32
+ "@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.1.7-alpha.2",
33
+ "@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
34
+ "@deepseek-ai/dsh-session": "0.1.7-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.2",
43
- "@deepseek-ai/dsh-compaction": "^0.1.6-alpha.2",
44
- "@deepseek-ai/dsh-deepseek-llm-api-extensions": "^0.1.6-alpha.2",
45
- "@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
46
- "@deepseek-ai/dsh-session": "^0.1.6-alpha.2"
42
+ "@deepseek-ai/cordis": "~4.0.4",
43
+ "@deepseek-ai/dsh-compaction": "0.1.7-alpha.2",
44
+ "@deepseek-ai/dsh-deepseek-llm-api-extensions": "0.1.7-alpha.2",
45
+ "@deepseek-ai/dsh-llm": "0.1.7-alpha.2",
46
+ "@deepseek-ai/dsh-session": "0.1.7-alpha.2"
47
47
  },
48
48
  "dependencies": {
49
- "@deepseek-ai/dsh-session-format-catalog": "^0.1.6-alpha.2",
50
- "@deepseek-ai/dsh-util-values": "^0.1.6-alpha.2"
49
+ "@deepseek-ai/dsh-util-values": "0.1.7-alpha.2",
50
+ "@deepseek-ai/dsh-session-format-catalog": "0.1.7-alpha.2"
51
51
  }
52
52
  }