@deepseek-ai/dsh-client-test-runtime 0.1.2-alpha.2 → 0.1.2-alpha.4

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/client-runtime/README.md
5
- README.md: 085b819258f235bcbda0d5406c52fc03a12b81d5
6
- README.zh.md: e2292802b19109cc6e39100fb9c0ff5147a78497
5
+ README.md: 3cc916343c25144720bfd599b87da7b5a2bb6b5d
6
+ README.zh.md: cd8a935f16bee9946edad8df41dab37c3b72af69
package/README.md CHANGED
@@ -97,7 +97,7 @@ The bench copies no production logic: it mounts the production `SlotRegistry`, p
97
97
  | [`src/remote.ts`](src/remote.ts) | `TestRemote` double for host RPC, `RemoteError` value re-export |
98
98
  | [`src/translate.ts`](src/translate.ts) + [`src/locale-env.ts`](src/locale-env.ts) | Translation and pinned-browser-language test helpers |
99
99
  | [`src/settings-scope.ts`](src/settings-scope.ts) | `stubSettingsScope` with test-driven publications and a write spy |
100
- | [`src/invariant.ts`](src/invariant.ts) | Invariant companion (no runtime invariant; the mounted production packages own theirs) |
100
+ | | No runtime invariant companion is published; this test-support package owns no production event stream or mutable data — it assembles the runtime SlotRegistry and renderer (whose packages own their invariants) around test doubles; its own behavior is exercised by its package tests. |
101
101
 
102
102
  ### Lifecycle
103
103
 
package/README.zh.md CHANGED
@@ -97,7 +97,7 @@ expect(view.getByRole('alert')).toHaveTextContent('goal/not-found')
97
97
  | [`src/remote.ts`](src/remote.ts) | 用于 host RPC 的 `TestRemote` 替身、`RemoteError` 值转出 |
98
98
  | [`src/translate.ts`](src/translate.ts) + [`src/locale-env.ts`](src/locale-env.ts) | 翻译与固定浏览器语言测试辅助 |
99
99
  | [`src/settings-scope.ts`](src/settings-scope.ts) | 带测试驱动发布与写入 spy 的 `stubSettingsScope` |
100
- | [`src/invariant.ts`](src/invariant.ts) | 不变式伴生插件(无运行时不变式;所挂载的生产包拥有各自的不变式) |
100
+ | | 不发布运行时不变式伴生入口;所挂载的生产包拥有各自的不变式。 |
101
101
 
102
102
  ### 生命周期
103
103
 
package/lib/index.js CHANGED
@@ -272,6 +272,13 @@ var FixtureSession = class {
272
272
  throw new Error(`test session "${this.sessionId}": loadOlder is not stubbed — supply it on the fixture's session face`);
273
273
  }
274
274
  /**
275
+ * Fail-loud stub; supply `loadThrough` on the fixture's session face to exercise it.
276
+ * @returns never — always throws.
277
+ */
278
+ loadThrough() {
279
+ throw new Error(`test session "${this.sessionId}": loadThrough is not stubbed — supply it on the fixture's session face`);
280
+ }
281
+ /**
275
282
  * Fail-loud stub; supply `rename` on the fixture's session face to exercise it.
276
283
  * @returns never — always throws.
277
284
  */
@@ -78,6 +78,11 @@ export declare class FixtureSession implements SessionFace {
78
78
  * @returns never — always throws.
79
79
  */
80
80
  loadOlder(): never;
81
+ /**
82
+ * Fail-loud stub; supply `loadThrough` on the fixture's session face to exercise it.
83
+ * @returns never — always throws.
84
+ */
85
+ loadThrough(): never;
81
86
  /**
82
87
  * Fail-loud stub; supply `rename` on the fixture's session face to exercise it.
83
88
  * @returns never — always throws.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-test-runtime",
3
3
  "description": "jsdom slot test runtime: real Cordis Context + SlotRegistry + UI renderer with test-owned session/workspace doubles for feature specs",
4
- "version": "0.1.2-alpha.2",
4
+ "version": "0.1.2-alpha.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,10 +18,6 @@
18
18
  "types": "./lib/types/index.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
- "./invariant": {
22
- "types": "./lib/types/invariant.d.ts",
23
- "default": "./lib/invariant.js"
24
- },
25
21
  "./src/*": "./src/*",
26
22
  "./package.json": "./package.json"
27
23
  },
@@ -34,48 +30,45 @@
34
30
  "peerDependencies": {
35
31
  "react": "^18.2.0",
36
32
  "react-dom": "^18.2.0",
37
- "@deepseek-ai/dsh-api-workspace-controller": "^0.1.2-alpha.2",
38
- "@deepseek-ai/dsh-attachment": "^0.1.2-alpha.2",
39
- "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.2",
40
- "@deepseek-ai/dsh-client-store": "^0.1.2-alpha.2",
41
- "@deepseek-ai/dsh-client-ui-chat": "^0.1.2-alpha.2",
42
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-alpha.2",
43
- "@deepseek-ai/dsh-client-ui-session": "^0.1.2-alpha.2",
44
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.2",
45
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-alpha.2",
46
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.2",
47
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
48
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.2",
49
- "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.2",
50
- "@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.2",
51
- "@deepseek-ai/cordis": "^4.0.2",
52
- "@deepseek-ai/dsh-api-session-controller": "^0.1.2-alpha.2"
33
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.2-alpha.4",
34
+ "@deepseek-ai/dsh-api-workspace-controller": "^0.1.2-alpha.4",
35
+ "@deepseek-ai/dsh-attachment": "^0.1.2-alpha.4",
36
+ "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.4",
37
+ "@deepseek-ai/dsh-client-store": "^0.1.2-alpha.4",
38
+ "@deepseek-ai/dsh-client-ui-chat": "^0.1.2-alpha.4",
39
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-alpha.4",
40
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4",
41
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.2-alpha.4",
42
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-alpha.4",
43
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
44
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.4",
45
+ "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.4",
46
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.4",
47
+ "@deepseek-ai/cordis": "^4.0.2"
53
48
  },
54
49
  "devDependencies": {
55
50
  "@types/react": "~18.3.1",
56
51
  "@types/react-dom": "~18.3.0",
57
52
  "react": "^18.2.0",
58
53
  "react-dom": "^18.2.0",
59
- "@deepseek-ai/dsh-api-workspace-controller": "^0.1.2-alpha.2",
60
- "@deepseek-ai/dsh-api-session-controller": "^0.1.2-alpha.2",
61
- "@deepseek-ai/dsh-attachment": "^0.1.2-alpha.2",
62
- "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.2",
63
- "@deepseek-ai/dsh-client-store": "^0.1.2-alpha.2",
64
- "@deepseek-ai/dsh-client-ui-chat": "^0.1.2-alpha.2",
65
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.2",
66
- "@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-alpha.2",
67
- "@deepseek-ai/dsh-client-ui-session": "^0.1.2-alpha.2",
68
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-alpha.2",
69
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.2",
70
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
71
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.2",
72
- "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.2",
73
- "@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.2",
54
+ "@deepseek-ai/dsh-api-workspace-controller": "^0.1.2-alpha.4",
55
+ "@deepseek-ai/dsh-attachment": "^0.1.2-alpha.4",
56
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.2-alpha.4",
57
+ "@deepseek-ai/dsh-client-store": "^0.1.2-alpha.4",
58
+ "@deepseek-ai/dsh-client-ui-chat": "^0.1.2-alpha.4",
59
+ "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.4",
60
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-alpha.4",
61
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4",
62
+ "@deepseek-ai/dsh-client-ui-session": "^0.1.2-alpha.4",
63
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-alpha.4",
64
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
65
+ "@deepseek-ai/dsh-session": "^0.1.2-alpha.4",
66
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.2-alpha.4",
67
+ "@deepseek-ai/dsh-subagent": "^0.1.2-alpha.4",
74
68
  "@deepseek-ai/cordis": "^4.0.2"
75
69
  },
76
70
  "files": [
77
71
  "lib/index.js",
78
- "lib/invariant.js",
79
72
  "lib/types/**/*.d.ts"
80
73
  ]
81
74
  }
package/lib/invariant.js DELETED
@@ -1,25 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@deepseek-ai/dsh-client-test-runtime`.
4
- * @module @deepseek-ai/dsh-client-test-runtime/invariant
5
- */
6
- const PACKAGE_NAME = "@deepseek-ai/dsh-client-test-runtime";
7
- /** Cordis companion plugin name. */
8
- const name = "client-test-runtime-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: this test-support package owns no production event
13
- * stream or mutable data — it assembles the runtime SlotRegistry and renderer
14
- * (whose packages own their invariants) around test doubles; its own behavior
15
- * is exercised by its package tests.
16
- */
17
- const install = () => {};
18
- /**
19
- * Register this package's invariant companion.
20
- * @param ctx - Cordis context carrying the invariant service.
21
- * @returns the installed registration's disposer after setup succeeds.
22
- */
23
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
24
- //#endregion
25
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@deepseek-ai/dsh-client-test-runtime`.
3
- * @module @deepseek-ai/dsh-client-test-runtime/invariant
4
- */
5
- import type { Context } from '@deepseek-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "client-test-runtime-invariant";
8
- /** Service required before the companion can reserve package ownership. */
9
- export declare const inject: string[];
10
- /**
11
- * Register this package's invariant companion.
12
- * @param ctx - Cordis context carrying the invariant service.
13
- * @returns the installed registration's disposer after setup succeeds.
14
- */
15
- export declare const apply: (ctx: Context) => Promise<() => void>;
16
- //# sourceMappingURL=invariant.d.ts.map