@linxin666/dsh-usage 0.4.6 → 0.4.7

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
  # node scripts/verify-docs.mjs --write <dir>
5
- README.md: 6300aa8ace7fe2d26e7b1bf19627760731b3e9d8
6
- README.zh.md: 0ea06549aeea2a968655f42f2fb3287e38c01c40
5
+ README.md: 474e17535c150db2c19ebee756c7b89fcddc5a9b
6
+ README.zh.md: 7efc2ea94d5c8f507845b40a4b67b5cef060b453
package/README.md CHANGED
@@ -5,7 +5,7 @@ English | [中文](README.zh.md)
5
5
  <p align="center">
6
6
  <img src="https://img.shields.io/npm/v/@linxin666/dsh-usage?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.0--rc.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
@@ -39,7 +39,7 @@ The published rule bills a Chinese public holiday entirely off-peak even on a Mo
39
39
 
40
40
  ## Install
41
41
 
42
- Requires DSH 0.2.0-rc.2 or later: the plugin is developed against the 0.2.0-rc.2 DSH cohort (its settings page is the Host-generated page of the plugin's own Config schema) and its `@deepseek-ai/*` runtime imports are provided by the host itself.
42
+ Requires DSH 0.2.1-rc.2 or later: the plugin is developed against the 0.2.1-rc.2 DSH cohort (its settings page is the Host-generated page of the plugin's own Config schema) and its `@deepseek-ai/*` runtime imports are provided by the host itself.
43
43
 
44
44
  In your profile (e.g. `~/.dsh/profiles/web`):
45
45
 
package/README.zh.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <p align="center">
6
6
  <img src="https://img.shields.io/npm/v/@linxin666/dsh-usage?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.0--rc.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.1--rc.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
@@ -39,7 +39,7 @@
39
39
 
40
40
  ## 安装
41
41
 
42
- 要求 DSH 0.2.0-rc.2 或更高:插件基于 0.2.0-rc.2 DSH cohort 开发(其设置页即宿主根据插件自身 Config schema 生成的页面),`@deepseek-ai/*` 运行时导入由宿主本体提供。
42
+ 要求 DSH 0.2.1-rc.2 或更高:插件基于 0.2.1-rc.2 DSH cohort 开发(其设置页即宿主根据插件自身 Config schema 生成的页面),`@deepseek-ai/*` 运行时导入由宿主本体提供。
43
43
 
44
44
  在 profile(如 `~/.dsh/profiles/web`)中:
45
45
 
package/lib/client.js CHANGED
@@ -4,22 +4,10 @@ window.__ModuleLoader__.load({
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
+ let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
7
8
  let react = require("react");
8
9
  let react_jsx_runtime = require("react/jsx-runtime");
9
10
  let react_dom_client = require("react-dom/client");
10
- //#region \0dsh-store-engine
11
- const platform = ["@deepseek-ai/dsh-client", "-store"].join("");
12
- const legacy = ["@deepseek-ai/dsh-client-runtime", "/client"].join("");
13
- let engine;
14
- try {
15
- engine = require(platform);
16
- } catch {
17
- engine = require(legacy);
18
- }
19
- engine.createSnapshotStore;
20
- const defineStore = engine.defineStore;
21
- engine.shallowEqual;
22
- //#endregion
23
11
  //#region src/client/usage-store.ts
24
12
  /**
25
13
  * Browser-side usage store: the overview snapshot polled from the host plus
@@ -29,7 +17,7 @@ window.__ModuleLoader__.load({
29
17
  */
30
18
  /** Create the usage store handle (apply world only; never module-level). */
31
19
  function createUsageStore() {
32
- return defineStore({
20
+ return (0, _deepseek_ai_dsh_client_store.defineStore)({
33
21
  init: () => ({
34
22
  snapshot: null,
35
23
  status: "loading",
@@ -2578,8 +2566,7 @@ window.__ModuleLoader__.load({
2578
2566
  base: void 0,
2579
2567
  user: void 0,
2580
2568
  revision: void 0,
2581
- writable: false,
2582
- mode: "host"
2569
+ writable: false
2583
2570
  };
2584
2571
  }
2585
2572
  /**