@deepseek-ai/dsh-loader-smoke 0.1.2-alpha.2 → 0.1.2-alpha.3

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/loader-smoke/README.md
5
- README.md: 7e080273fd4ac9cb2745f6c722d3ed17057af208
6
- README.zh.md: 3973a0602a6451c64f4d145240a4e6f9a3a7f5d7
5
+ README.md: 47083f07615d76b394bf21887799eb1841f304ac
6
+ README.zh.md: f8229686213aa4f2d4a4059d6e23367694346691
package/README.md CHANGED
@@ -43,6 +43,10 @@ const result = await runLoaderSmoke({
43
43
 
44
44
  Set `expectedExitCode` when the scenario pins a designed failure surface — a one-shot turn ending in an error result — and a run that exits any other way, including succeeding, still fails the smoke.
45
45
 
46
+ ### Testing a shipped profile
47
+
48
+ Profile integration drivers use the repository-only `tests/fixtures/production-profile.ts` helper. It loads the named shipped profile and its bundle patches through `loadProfile`, reconciles the profile's module fallback, and passes the bundle patches followed by the test's `*.patch.yml` files to the root `cordis:include` mounted by `boot`. Those patches should contain only the test provider or model, isolated persistence paths, and subject-specific changes. Package-level unit tests that need an agent loop without profile integration mount `dsh-agent-loop-testkit` locally instead.
49
+
46
50
  ### Driving a fixture turn
47
51
 
48
52
  `runFixtureTurn(ctx, options)` drives one task through exactly one configured root agent: it waits for the task to reach the durable inbox, forwards canonical events to your observer, flushes the session, and returns the final assistant text plus accumulated usage. Example-local drivers keep configuration, rendering, and assertion ownership.
@@ -78,6 +82,7 @@ The harness is built on one separation: the smoke runs in a child process under
78
82
  | [`src/index.ts`](src/index.ts) | Mode resolver, `runLoaderSmoke` subprocess harness, options and result types |
79
83
  | [`src/agent-turn.ts`](src/agent-turn.ts) | `runFixtureTurn` direct-agent driver and result envelope |
80
84
  | [`src/invariant.ts`](src/invariant.ts) | Invariant companion (no runtime invariant; consuming test suites exercise the harness) |
85
+ | [`tests/fixtures/production-profile.ts`](tests/fixtures/production-profile.ts) | Repository-only shipped-profile composition helper for integration fixtures |
81
86
 
82
87
  </details>
83
88
 
package/README.zh.md CHANGED
@@ -43,6 +43,10 @@ const result = await runLoaderSmoke({
43
43
 
44
44
  当场景固定一个设计好的失败面——例如一次性轮次以错误结果结束——时设置 `expectedExitCode`;以任何其他方式退出(包括成功退出)都会使冒烟测试失败。
45
45
 
46
+ ### 测试交付 profile
47
+
48
+ Profile 集成 driver 使用仅限仓库内部的 `tests/fixtures/production-profile.ts` helper。它通过 `loadProfile` 加载指定的已交付 profile 及其组合包 patch,修复 profile 的模块回退,然后把组合包 patch 与测试 `*.patch.yml` 文件依次交给 `boot` 挂载的根 `cordis:include`。这些 patch 应只包含测试提供方或模型、隔离持久化路径及被测对象专用变更。只需要 agent loop 而不测试 profile 集成的包级单元测试改为在本地挂载 `dsh-agent-loop-testkit`。
49
+
46
50
  ### 驱动 fixture 轮次
47
51
 
48
52
  `runFixtureTurn(ctx, options)` 让一项任务通过恰好一个已配置的根 agent:它等待任务进入持久收件箱,把规范事件转发给你的观察器,刷写会话,并返回最终 assistant 文本与累计用量。示例本地的 driver 继续负责配置、渲染与断言。
@@ -78,6 +82,7 @@ harness 建立在一个分离之上:冒烟测试在隔离世界中的子进程
78
82
  | [`src/index.ts`](src/index.ts) | 模式解析器、`runLoaderSmoke` 子进程 harness、选项与结果类型 |
79
83
  | [`src/agent-turn.ts`](src/agent-turn.ts) | `runFixtureTurn` 直接 agent driver 与结果信封 |
80
84
  | [`src/invariant.ts`](src/invariant.ts) | 不变式伴生插件(无运行时不变式;消费它的测试套件会检验该 harness) |
85
+ | [`tests/fixtures/production-profile.ts`](tests/fixtures/production-profile.ts) | 仅限仓库内部、供集成 fixture 使用的交付 profile 组装 helper |
81
86
 
82
87
  </details>
83
88
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-loader-smoke",
3
3
  "description": "Shared subprocess and direct-agent harness for keyless real-Loader example smoke tests",
4
- "version": "0.1.2-alpha.2",
4
+ "version": "0.1.2-alpha.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,17 +37,17 @@
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@deepseek-ai/cordis": "^4.0.2",
40
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.2",
41
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.2",
42
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
43
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.2"
40
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.3",
41
+ "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
42
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
43
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.3"
44
44
  },
45
45
  "devDependencies": {
46
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.2",
47
- "@deepseek-ai/dsh-app-boot": "^0.1.2-alpha.2",
48
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
49
46
  "@deepseek-ai/cordis": "^4.0.2",
50
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.2",
51
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.2"
47
+ "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.3",
48
+ "@deepseek-ai/dsh-llm": "^0.1.2-alpha.3",
49
+ "@deepseek-ai/dsh-app-boot": "^0.1.2-alpha.3",
50
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.3",
51
+ "@deepseek-ai/dsh-agent": "^0.1.2-alpha.3"
52
52
  }
53
53
  }