@prettier-ai/dsh-client-ui-session 0.1.2-alpha.3 → 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/client/ui-session/README.md
5
- README.md: a98692cab4c40a53d7e4b78eec91a45af85fe76f
6
- README.zh.md: 4b8e26da6b7255bd90af853315ad551c2ad85801
5
+ README.md: 75fd792866afc29c6c99fd0879588e80b75b22dc
6
+ README.zh.md: bad90a7602bf097a3ba24e7a39c7cb8e5776d141
package/README.md CHANGED
@@ -43,3 +43,5 @@ None; Session selectors and Slot scopes do not assemble model requests.
43
43
  None.
44
44
 
45
45
  </details>
46
+
47
+ **Runtime invariant:** No companion is published. The adapter materialization path enforces Session binding consistency.
package/README.zh.md CHANGED
@@ -43,3 +43,5 @@ kind: "package-reference"
43
43
  无。
44
44
 
45
45
  </details>
46
+
47
+ **运行时不变式:** 不发布伴生入口。adapter materialization 路径已经强制 Session binding 一致。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prettier-ai/dsh-client-ui-session",
3
3
  "description": "Session Controller adapter for React and session-scoped slots",
4
- "version": "0.1.2-alpha.3",
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
  "./client": {
26
22
  "types": "./lib/types/client/index.d.ts",
27
23
  "default": "./lib/client.js"
@@ -45,17 +41,15 @@
45
41
  "devDependencies": {
46
42
  "@types/react": "~18.3.1",
47
43
  "react": "^18.2.0",
48
- "@prettier-ai/dsh-client-store": "^0.1.2-alpha.3",
49
- "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.3",
44
+ "@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.4",
45
+ "@prettier-ai/dsh-client-store": "^0.1.2-alpha.4",
46
+ "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
50
47
  "@prettier-ai/cordis": "^4.0.2",
51
- "@prettier-ai/dsh-client-ui-slots": "^0.1.2-alpha.3",
52
- "@prettier-ai/dsh-api-session-controller": "^0.1.2-alpha.3",
53
- "@prettier-ai/dsh-invariants": "^0.1.2-alpha.3",
54
- "@prettier-ai/dsh-session": "^0.1.2-alpha.3"
48
+ "@prettier-ai/dsh-session": "^0.1.2-alpha.4",
49
+ "@prettier-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4"
55
50
  },
56
51
  "files": [
57
52
  "lib/index.js",
58
- "lib/invariant.js",
59
53
  "lib/client.js",
60
54
  "lib/types/**/*.d.ts"
61
55
  ],
package/lib/invariant.js DELETED
@@ -1,16 +0,0 @@
1
- //#region lib/types/invariant.js
2
- const PACKAGE_NAME = "@prettier-ai/dsh-client-ui-session";
3
- /** Cordis companion plugin name. */
4
- const name = "client-ui-session-invariant";
5
- /** Service required before the companion reserves package ownership. */
6
- const inject = ["invariants"];
7
- /** No runtime invariant: the adapter materialization path enforces Session binding consistency. */
8
- const install = () => {};
9
- /**
10
- * Register this package's invariant companion.
11
- * @param ctx - Cordis context carrying the invariant service.
12
- * @returns the installed registration's disposer.
13
- */
14
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
15
- //#endregion
16
- export { apply, inject, name };
@@ -1,13 +0,0 @@
1
- /** Package-owned invariant companion for the Session UI adapter. */
2
- import type { Context } from '@prettier-ai/cordis';
3
- /** Cordis companion plugin name. */
4
- export declare const name = "client-ui-session-invariant";
5
- /** Service required before the companion reserves package ownership. */
6
- export declare const inject: string[];
7
- /**
8
- * Register this package's invariant companion.
9
- * @param ctx - Cordis context carrying the invariant service.
10
- * @returns the installed registration's disposer.
11
- */
12
- export declare const apply: (ctx: Context) => Promise<() => void>;
13
- //# sourceMappingURL=invariant.d.ts.map