@deepseek-ai/dsh-client-locale 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/client/locale/README.md
5
- README.md: 7c2264bb59165c7c4e213516b4337fd5bc854bf8
6
- README.zh.md: 1693f7fce4b3aab33e79d1fe20943050ff992188
5
+ README.md: da0931ff5cf78b16d57354a8ac6abe6bf1878e50
6
+ README.zh.md: 18eb233e80ba8a68621b2fa34442cdda3c4329a0
package/README.md CHANGED
@@ -138,3 +138,5 @@ These limits define where localization is incomplete or frozen at registration t
138
138
  None.
139
139
 
140
140
  </details>
141
+
142
+ **Runtime invariant:** No companion is published. The locale catalog and dictionaries have no independent runtime source to compare against; registration disposal, preference resolution, and fallback lookup are asserted by behavior specs.
package/README.zh.md CHANGED
@@ -138,3 +138,5 @@ Host 通过 settings 服务为 loopback 页面持久化偏好。Client 会刻意
138
138
  无。
139
139
 
140
140
  </details>
141
+
142
+ **运行时不变式:** 不发布伴生入口。locale catalog 与字典没有可供交叉核对的独立运行时来源;注册释放、偏好解析和 fallback 查找由行为测试覆盖。
package/lib/client.js CHANGED
@@ -908,7 +908,7 @@ window.__ModuleLoader__.load({
908
908
  const en = { "language.title": "Language" };
909
909
  //#endregion
910
910
  //#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/locale/src/client/LanguageRow.module.css.mjs
911
- const css = ".hVGvvW_row{border-bottom:1px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}.hVGvvW_rowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}.hVGvvW_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}.hVGvvW_selector{background:var(--dsw-alias-bg-module-platform);height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;border:none;border-radius:18px;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.hVGvvW_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}.hVGvvW_chevron{flex:none}";
911
+ const css = ".hVGvvW_row{border-bottom:.5px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}.hVGvvW_rowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}.hVGvvW_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}.hVGvvW_selector{background:var(--dsw-alias-bg-module-platform);height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;border:none;border-radius:18px;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.hVGvvW_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}.hVGvvW_chevron{flex:none}";
912
912
  const tagId = "@deepseek-ai/dsh-client-locale/LanguageRow.module.css";
913
913
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
914
914
  const tag = document.createElement("style");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-locale",
3
3
  "description": "Locale plugin: Host-backed preference, extensible language catalog, browser fallback, and typed built-in dictionaries",
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
  "./client": {
26
22
  "types": "./lib/types/client/index.d.ts",
27
23
  "default": "./lib/client.js"
@@ -49,23 +45,21 @@
49
45
  "@types/react": "~18.3.1",
50
46
  "react": "^18.2.0",
51
47
  "@deepseek-ai/cordis": "^4.0.2",
52
- "@deepseek-ai/dsh-api-remotes": "^0.1.2-alpha.2",
53
- "@deepseek-ai/dsh-client-store": "^0.1.2-alpha.2",
54
- "@deepseek-ai/dsh-client-test-runtime": "^0.1.2-alpha.2",
55
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.2-alpha.2",
56
- "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.2",
57
- "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-alpha.2",
58
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.2",
59
- "@deepseek-ai/dsh-invariants": "^0.1.2-alpha.2",
60
- "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.2",
61
- "@deepseek-ai/dsh-settings": "^0.1.2-alpha.2"
48
+ "@deepseek-ai/dsh-client-test-runtime": "^0.1.2-alpha.4",
49
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.2-alpha.4",
50
+ "@deepseek-ai/dsh-client-store": "^0.1.2-alpha.4",
51
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-alpha.4",
52
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.2-alpha.4",
53
+ "@deepseek-ai/dsh-client-ui-settings": "^0.1.2-alpha.4",
54
+ "@deepseek-ai/dsh-client-connection": "^0.1.2-alpha.4",
55
+ "@deepseek-ai/dsh-settings": "^0.1.2-alpha.4",
56
+ "@deepseek-ai/dsh-api-remotes": "^0.1.2-alpha.4"
62
57
  },
63
58
  "dependencies": {
64
59
  "@deepseek-ai/schemastery": "^3.18.2"
65
60
  },
66
61
  "files": [
67
62
  "lib/index.js",
68
- "lib/invariant.js",
69
63
  "lib/client.js",
70
64
  "lib/types/**/*.d.ts"
71
65
  ],
package/lib/invariant.js DELETED
@@ -1,24 +0,0 @@
1
- //#region lib/types/invariant.js
2
- /**
3
- * Package-owned invariant companion for `@deepseek-ai/dsh-client-locale`.
4
- * @module @deepseek-ai/dsh-client-locale/invariant
5
- */
6
- const PACKAGE_NAME = "@deepseek-ai/dsh-client-locale";
7
- /** Cordis companion plugin name. */
8
- const name = "client-locale-invariant";
9
- /** Service required before the companion can reserve package ownership. */
10
- const inject = ["invariants"];
11
- /**
12
- * No runtime invariant: the locale catalog and dictionaries have no
13
- * independent runtime source to compare against; registration disposal,
14
- * preference resolution, and fallback lookup are asserted by behavior specs.
15
- */
16
- const install = () => {};
17
- /**
18
- * Register this package's invariant companion.
19
- * @param ctx - Cordis context carrying the invariant service.
20
- * @returns the installed registration's disposer after setup succeeds.
21
- */
22
- const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
23
- //#endregion
24
- export { apply, inject, name };
@@ -1,16 +0,0 @@
1
- /**
2
- * Package-owned invariant companion for `@deepseek-ai/dsh-client-locale`.
3
- * @module @deepseek-ai/dsh-client-locale/invariant
4
- */
5
- import type { Context } from '@deepseek-ai/cordis';
6
- /** Cordis companion plugin name. */
7
- export declare const name = "client-locale-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