@huaweidevtools/aishell-dsh-client-credentials 0.0.37 → 0.0.38

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/lib/client.js CHANGED
@@ -94,6 +94,69 @@ async function readPermissionMode(sessionId) {
94
94
  }
95
95
  }
96
96
  /**
97
+ * Delays between read attempts while the mode is unknown.
98
+ *
99
+ * A Host answers a read once `api/aishell/permission` is registered; while the
100
+ * route is absent the answer is `undefined`. A conversation the browser
101
+ * restores can reach the page inside that window, so the schedule below gives
102
+ * the read a second attempt: short at first, because the route appears within
103
+ * a round trip of the Host being ready, and longer as the wait goes on, because
104
+ * each attempt costs a request.
105
+ *
106
+ * The list is finite: a mode that stays unreadable is answered by the manual
107
+ * re-read on the control, not by a request every few seconds for the life of
108
+ * the page. Together the delays cover roughly twenty seconds of start-up.
109
+ */
110
+ const MODE_READ_RETRY_DELAYS_MS = [
111
+ 200,
112
+ 500,
113
+ 1e3,
114
+ 2e3,
115
+ 3e3,
116
+ 5e3,
117
+ 8e3
118
+ ];
119
+ /**
120
+ * How long to wait before the next read, given how many have failed.
121
+ *
122
+ * @param failedAttempts - consecutive reads that returned no mode.
123
+ * @returns the delay in milliseconds; the final entry repeats.
124
+ */
125
+ function modeReadRetryDelay(failedAttempts) {
126
+ const last = MODE_READ_RETRY_DELAYS_MS.length - 1;
127
+ return MODE_READ_RETRY_DELAYS_MS[Math.min(Math.max(failedAttempts, 0), last)];
128
+ }
129
+ /**
130
+ * Read the mode, retrying over the start-up window.
131
+ *
132
+ * A successful read is the server's answer and ends the loop, so the ordinary
133
+ * case costs one request. Retries cover the interval in which the Host has not
134
+ * registered the route yet and answers `undefined`; a mode that has been read
135
+ * is final until the person changes it.
136
+ *
137
+ * Attempts are bounded by {@link MODE_READ_RETRY_DELAYS_MS}. `undefined` then
138
+ * means "still unknown", not "the mode is absent", and the control stays
139
+ * interactive so the person can ask again without reloading the page.
140
+ *
141
+ * @param deps - the read, the liveness check, and an optional sleep.
142
+ * @returns the mode once one is read, or `undefined` when the caller went away
143
+ * or the attempts ran out.
144
+ */
145
+ async function readPermissionModeUntilKnown(deps) {
146
+ const sleep = deps.sleep ?? ((ms) => new Promise((resolve) => {
147
+ setTimeout(resolve, ms);
148
+ }));
149
+ for (let failed = 0; failed <= MODE_READ_RETRY_DELAYS_MS.length; failed += 1) {
150
+ const mode = await deps.read();
151
+ if (mode !== void 0) return mode;
152
+ if (!deps.isLive() || failed === MODE_READ_RETRY_DELAYS_MS.length) return void 0;
153
+ await sleep(modeReadRetryDelay(failed));
154
+ if (!deps.isLive()) return void 0;
155
+ }
156
+ /* v8 ignore next -- the loop returns on the final iteration */
157
+ return void 0;
158
+ }
159
+ /**
97
160
  * Write one Session's mode through the Host route.
98
161
  *
99
162
  * @param sessionId - the conversation the switch belongs to.
@@ -120,9 +183,19 @@ async function writePermissionMode(sessionId, mode) {
120
183
  /**
121
184
  * Subscribe a control to the permission mode.
122
185
  *
123
- * Reads once on mount. The mode is server state that only a person changes, so
124
- * there is no poll — a second surface flipping it is not a case this handles;
125
- * each surface re-reads on its own mount.
186
+ * Reads on mount, and reads again when the person asks. The mode is server
187
+ * state that only a person changes, so there is no poll: each surface re-reads
188
+ * on its own mount, and a press on an unknown-mode control is the one other
189
+ * trigger.
190
+ *
191
+ * ## Why the read retries
192
+ *
193
+ * The mode lives in the Host process, and a page can render before that process
194
+ * has put `api/aishell/permission` in place — a restored conversation reaches
195
+ * the browser before the Host finishes registering its routes. A read in that
196
+ * window answers nothing about the mode, so the first read retries over a short
197
+ * schedule rather than reporting "unknown" from one attempt. The control a
198
+ * person presses reads again, which covers a window that was still too early.
126
199
  *
127
200
  * ## Why the confirmation lives here rather than in a chip
128
201
  *
@@ -155,16 +228,29 @@ function usePermissionMode(sessionId) {
155
228
  const [mode, setMode] = (0, react.useState)(void 0);
156
229
  const [busy, setBusy] = (0, react.useState)(false);
157
230
  const [confirmation, setConfirmation] = (0, react.useState)(void 0);
231
+ /**
232
+ * Bumped by {@link reread} to run the read again.
233
+ *
234
+ * A counter rather than a flag, so each press is a state change: a flag
235
+ * returned to `false` on completion either swallows a press made during a
236
+ * read or re-runs the effect on a value that did not change. The previous
237
+ * effect's cleanup runs before the new one, so its loop stops rather than
238
+ * overlapping.
239
+ */
240
+ const [readGeneration, setReadGeneration] = (0, react.useState)(0);
158
241
  (0, react.useEffect)(() => {
159
242
  let live = true;
160
243
  (async () => {
161
- const read = await readPermissionMode(sessionId);
244
+ const read = await readPermissionModeUntilKnown({
245
+ read: () => readPermissionMode(sessionId),
246
+ isLive: () => live
247
+ });
162
248
  if (live && read !== void 0) setMode(read);
163
249
  })();
164
250
  return () => {
165
251
  live = false;
166
252
  };
167
- }, [sessionId]);
253
+ }, [sessionId, readGeneration]);
168
254
  /** Write the mode the control should land on, from whatever is current. */
169
255
  const apply$1 = (next) => {
170
256
  setBusy(true);
@@ -200,13 +286,17 @@ function usePermissionMode(sessionId) {
200
286
  setConfirmation(void 0);
201
287
  apply$1("read_write");
202
288
  };
289
+ const reread = () => {
290
+ setReadGeneration((generation) => generation + 1);
291
+ };
203
292
  return {
204
293
  mode,
205
294
  busy,
206
295
  toggle,
207
296
  confirmation,
208
297
  cancelConfirmation,
209
- confirmToggle
298
+ confirmToggle,
299
+ reread
210
300
  };
211
301
  }
212
302
 
@@ -323,7 +413,7 @@ function AishellAccountHint(props) {
323
413
  const configured = Boolean(hint);
324
414
  const t = props.t;
325
415
  const openCredentialForm = props.openCredentialForm;
326
- const { mode, busy, toggle, confirmation, cancelConfirmation, confirmToggle } = usePermissionMode(props.sessionId);
416
+ const { mode, busy, toggle, confirmation, cancelConfirmation, confirmToggle, reread } = usePermissionMode(props.sessionId);
327
417
  const ref = (0, react.useRef)(null);
328
418
  (0, react.useEffect)(() => {
329
419
  const host = ref.current?.parentElement;
@@ -403,15 +493,16 @@ function AishellAccountHint(props) {
403
493
  type: "button",
404
494
  className: CHIP_CLASS,
405
495
  onClick: () => {
406
- toggle();
496
+ if (mode === void 0) reread();
497
+ else toggle();
407
498
  },
408
- disabled: mode === void 0 || busy,
409
- "aria-label": mode === "read_write" ? t("mode.switchToReadonly") : t("mode.switchToReadwrite"),
499
+ disabled: busy,
500
+ "aria-label": mode === void 0 ? t("mode.unavailable.retry") : mode === "read_write" ? t("mode.switchToReadonly") : t("mode.switchToReadwrite"),
410
501
  style: {
411
502
  ...pillStyle,
412
503
  color: mode === void 0 ? "var(--dsw-alias-label-tertiary)" : mode === "read_only" ? "var(--dsw-alias-state-success-primary)" : "var(--dsw-alias-state-warn-label)",
413
- opacity: mode === void 0 || busy ? .6 : 1,
414
- cursor: mode === void 0 || busy ? "default" : "pointer"
504
+ opacity: busy ? .6 : 1,
505
+ cursor: busy ? "default" : "pointer"
415
506
  },
416
507
  title: mode === void 0 ? t("mode.unavailable.hint") : mode === "read_only" ? t("mode.readonly.hint") : t("mode.readwrite.hint"),
417
508
  children: mode === void 0 ? t("mode.unavailable") : mode === "read_only" ? t("mode.readonly") : t("mode.readwrite")
@@ -431,7 +522,7 @@ function AishellAccountHint(props) {
431
522
  function AishellHeroChip(props) {
432
523
  const blank = props.useSession((session) => session.blank);
433
524
  const status = props.useCredentials((snapshot) => snapshot);
434
- const { mode, busy, toggle, confirmation, cancelConfirmation, confirmToggle } = usePermissionMode(props.sessionId);
525
+ const { mode, busy, toggle, confirmation, cancelConfirmation, confirmToggle, reread } = usePermissionMode(props.sessionId);
435
526
  const t = props.t;
436
527
  const openCredentialForm = props.openCredentialForm;
437
528
  const configured = Boolean(status.accessKeyIdHint);
@@ -559,16 +650,17 @@ function AishellHeroChip(props) {
559
650
  configured && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
560
651
  type: "button",
561
652
  onClick: () => {
562
- toggle();
653
+ if (mode === void 0) reread();
654
+ else toggle();
563
655
  },
564
- disabled: mode === void 0 || busy,
565
- "aria-label": mode === "read_write" ? t("mode.switchToReadonly") : t("mode.switchToReadwrite"),
656
+ disabled: busy,
657
+ "aria-label": mode === void 0 ? t("mode.unavailable.retry") : mode === "read_write" ? t("mode.switchToReadonly") : t("mode.switchToReadwrite"),
566
658
  title: mode === void 0 ? t("mode.unavailable.hint") : mode === "read_only" ? t("mode.readonly.hint") : t("mode.readwrite.hint"),
567
659
  style: {
568
660
  ...pillStyle,
569
661
  color: mode === void 0 ? "var(--dsw-alias-label-tertiary)" : mode === "read_only" ? "var(--dsw-alias-state-success-primary)" : "var(--dsw-alias-state-warn-label)",
570
- opacity: mode === void 0 || busy ? .6 : 1,
571
- cursor: mode === void 0 || busy ? "default" : "pointer"
662
+ opacity: busy ? .6 : 1,
663
+ cursor: busy ? "default" : "pointer"
572
664
  },
573
665
  children: mode === void 0 ? t("mode.unavailable") : mode === "read_only" ? t("mode.readonly") : t("mode.readwrite")
574
666
  }),
@@ -1909,7 +2001,8 @@ const zh = {
1909
2001
  "mode.unavailable": "权限模式不可用",
1910
2002
  "mode.readonly.hint": "当前:只读 — 只允许查询云资源,点击切换为读写",
1911
2003
  "mode.readwrite.hint": "当前:读写 — 允许变更云资源,点击切换为只读",
1912
- "mode.unavailable.hint": "无法读取权限模式;切换按钮暂不可用",
2004
+ "mode.unavailable.hint": "无法读取权限模式;点击重试",
2005
+ "mode.unavailable.retry": "重新读取权限模式",
1913
2006
  "mode.switchToReadonly": "切换为只读模式",
1914
2007
  "mode.switchToReadwrite": "切换为读写模式",
1915
2008
  "mode.confirm.title": "确认切换为读写模式?",
@@ -1965,7 +2058,8 @@ const en = {
1965
2058
  "mode.unavailable": "Mode unavailable",
1966
2059
  "mode.readonly.hint": "Read-only — cloud queries only. Click for read-write",
1967
2060
  "mode.readwrite.hint": "Read-write — cloud changes allowed. Click for read-only",
1968
- "mode.unavailable.hint": "Could not read the permission mode; the toggle is unavailable",
2061
+ "mode.unavailable.hint": "Could not read the permission mode; click to retry",
2062
+ "mode.unavailable.retry": "Read the permission mode again",
1969
2063
  "mode.switchToReadonly": "Switch to read-only mode",
1970
2064
  "mode.switchToReadwrite": "Switch to read-write mode",
1971
2065
  "mode.confirm.title": "Switch to read-write?",
@@ -13,7 +13,8 @@ export declare const zh: {
13
13
  readonly 'mode.unavailable': "权限模式不可用";
14
14
  readonly 'mode.readonly.hint': "当前:只读 — 只允许查询云资源,点击切换为读写";
15
15
  readonly 'mode.readwrite.hint': "当前:读写 — 允许变更云资源,点击切换为只读";
16
- readonly 'mode.unavailable.hint': "无法读取权限模式;切换按钮暂不可用";
16
+ readonly 'mode.unavailable.hint': "无法读取权限模式;点击重试";
17
+ readonly 'mode.unavailable.retry': "重新读取权限模式";
17
18
  readonly 'mode.switchToReadonly': "切换为只读模式";
18
19
  readonly 'mode.switchToReadwrite': "切换为读写模式";
19
20
  readonly 'mode.confirm.title': "确认切换为读写模式?";
@@ -69,7 +70,8 @@ export declare const en: {
69
70
  readonly 'mode.unavailable': "Mode unavailable";
70
71
  readonly 'mode.readonly.hint': "Read-only — cloud queries only. Click for read-write";
71
72
  readonly 'mode.readwrite.hint': "Read-write — cloud changes allowed. Click for read-only";
72
- readonly 'mode.unavailable.hint': "Could not read the permission mode; the toggle is unavailable";
73
+ readonly 'mode.unavailable.hint': "Could not read the permission mode; click to retry";
74
+ readonly 'mode.unavailable.retry': "Read the permission mode again";
73
75
  readonly 'mode.switchToReadonly': "Switch to read-only mode";
74
76
  readonly 'mode.switchToReadwrite': "Switch to read-write mode";
75
77
  readonly 'mode.confirm.title': "Switch to read-write?";
@@ -61,6 +61,60 @@ export declare function mayApply(acknowledged: boolean): boolean;
61
61
  * reported as unknown, never as `read_only`.
62
62
  */
63
63
  export declare function readPermissionMode(sessionId: string): Promise<PermissionMode | undefined>;
64
+ /**
65
+ * Delays between read attempts while the mode is unknown.
66
+ *
67
+ * A Host answers a read once `api/aishell/permission` is registered; while the
68
+ * route is absent the answer is `undefined`. A conversation the browser
69
+ * restores can reach the page inside that window, so the schedule below gives
70
+ * the read a second attempt: short at first, because the route appears within
71
+ * a round trip of the Host being ready, and longer as the wait goes on, because
72
+ * each attempt costs a request.
73
+ *
74
+ * The list is finite: a mode that stays unreadable is answered by the manual
75
+ * re-read on the control, not by a request every few seconds for the life of
76
+ * the page. Together the delays cover roughly twenty seconds of start-up.
77
+ */
78
+ export declare const MODE_READ_RETRY_DELAYS_MS: readonly [200, 500, 1000, 2000, 3000, 5000, 8000];
79
+ /**
80
+ * How long to wait before the next read, given how many have failed.
81
+ *
82
+ * @param failedAttempts - consecutive reads that returned no mode.
83
+ * @returns the delay in milliseconds; the final entry repeats.
84
+ */
85
+ export declare function modeReadRetryDelay(failedAttempts: number): number;
86
+ /** What {@link readPermissionModeUntilKnown} reads through. */
87
+ export interface ModeReadDeps {
88
+ /** One attempt; resolves `undefined` when it could not answer. */
89
+ readonly read: () => Promise<PermissionMode | undefined>;
90
+ /**
91
+ * Whether the caller is still mounted.
92
+ *
93
+ * Checked before each retry, so a read belongs to the surface that started
94
+ * it: a chip that unmounted stops asking, and no request goes out naming a
95
+ * conversation no page is showing.
96
+ */
97
+ readonly isLive: () => boolean;
98
+ /** Wait between attempts; injectable so a spec drives the schedule directly. */
99
+ readonly sleep?: (ms: number) => Promise<void>;
100
+ }
101
+ /**
102
+ * Read the mode, retrying over the start-up window.
103
+ *
104
+ * A successful read is the server's answer and ends the loop, so the ordinary
105
+ * case costs one request. Retries cover the interval in which the Host has not
106
+ * registered the route yet and answers `undefined`; a mode that has been read
107
+ * is final until the person changes it.
108
+ *
109
+ * Attempts are bounded by {@link MODE_READ_RETRY_DELAYS_MS}. `undefined` then
110
+ * means "still unknown", not "the mode is absent", and the control stays
111
+ * interactive so the person can ask again without reloading the page.
112
+ *
113
+ * @param deps - the read, the liveness check, and an optional sleep.
114
+ * @returns the mode once one is read, or `undefined` when the caller went away
115
+ * or the attempts ran out.
116
+ */
117
+ export declare function readPermissionModeUntilKnown(deps: ModeReadDeps): Promise<PermissionMode | undefined>;
64
118
  /**
65
119
  * Write one Session's mode through the Host route.
66
120
  *
@@ -83,7 +137,9 @@ export interface PermissionModeControl {
83
137
  * once the person acknowledges. A flip back to read-only gives up access,
84
138
  * which needs no warning, so it applies immediately.
85
139
  *
86
- * No-op while unknown or busy.
140
+ * No-op while unknown or busy. A press on an unknown-mode control belongs to
141
+ * {@link reread}: there is no current mode to flip away from, and the control
142
+ * that reaches this function has one meaning per state.
87
143
  */
88
144
  readonly toggle: () => void;
89
145
  /**
@@ -99,6 +155,20 @@ export interface PermissionModeControl {
99
155
  readonly cancelConfirmation: () => void;
100
156
  /** Apply the awaited read-write flip; the confirmation must be open. */
101
157
  readonly confirmToggle: () => void;
158
+ /**
159
+ * Read the mode again, for a control showing "unavailable".
160
+ *
161
+ * Starts a fresh read. Its first attempt is immediate, so a Host that has
162
+ * registered the route since answers within a round trip and the control
163
+ * updates at once; a Host still not ready resumes the schedule from its
164
+ * shortest delay, which keeps a press immediate rather than making it wait
165
+ * out a delay that a previous read already used.
166
+ *
167
+ * One read runs at a time: the new generation unmounts the previous effect
168
+ * first, whose loop stops before its next retry, so repeated presses cannot
169
+ * accumulate loops.
170
+ */
171
+ readonly reread: () => void;
102
172
  }
103
173
  /** The gate shown before a flip to read-write. */
104
174
  export interface PermissionConfirmation {
@@ -110,9 +180,19 @@ export interface PermissionConfirmation {
110
180
  /**
111
181
  * Subscribe a control to the permission mode.
112
182
  *
113
- * Reads once on mount. The mode is server state that only a person changes, so
114
- * there is no poll — a second surface flipping it is not a case this handles;
115
- * each surface re-reads on its own mount.
183
+ * Reads on mount, and reads again when the person asks. The mode is server
184
+ * state that only a person changes, so there is no poll: each surface re-reads
185
+ * on its own mount, and a press on an unknown-mode control is the one other
186
+ * trigger.
187
+ *
188
+ * ## Why the read retries
189
+ *
190
+ * The mode lives in the Host process, and a page can render before that process
191
+ * has put `api/aishell/permission` in place — a restored conversation reaches
192
+ * the browser before the Host finishes registering its routes. A read in that
193
+ * window answers nothing about the mode, so the first read retries over a short
194
+ * schedule rather than reporting "unknown" from one attempt. The control a
195
+ * person presses reads again, which covers a window that was still too early.
116
196
  *
117
197
  * ## Why the confirmation lives here rather than in a chip
118
198
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@huaweidevtools/aishell-dsh-client-credentials",
3
3
  "description": "AI Shell credentials — chip-opened web form for storing Huawei Cloud AK/SK in the credential store",
4
- "version": "0.0.37",
4
+ "version": "0.0.38",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -43,32 +43,32 @@
43
43
  },
44
44
  "license": "Apache-2.0",
45
45
  "dependencies": {
46
- "@deepseek-ai/dsh-client-store": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
46
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.5",
47
47
  "immer": "^10.1.3",
48
48
  "zustand": "~4.5.7",
49
- "@huaweidevtools/aishell-dsh-credentials-store": "0.0.37"
49
+ "@huaweidevtools/aishell-dsh-credentials-store": "0.0.38"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@deepseek-ai/cordis": "^4.1.0",
53
- "@deepseek-ai/dsh-client-connection": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
54
- "@deepseek-ai/dsh-settings": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
55
- "@deepseek-ai/dsh-tools": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3"
53
+ "@deepseek-ai/dsh-client-connection": "0.2.2-rc.5",
54
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.5",
55
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.5"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@deepseek-ai/cordis": "^4.1.0",
59
59
  "@deepseek-ai/cordis-plugin-loader": "^1.1.0",
60
- "@deepseek-ai/dsh-client-connection": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
61
- "@deepseek-ai/dsh-client-locale": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
62
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
63
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
64
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
65
- "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
66
- "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
67
- "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
68
- "@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
69
- "@deepseek-ai/dsh-session": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
70
- "@deepseek-ai/dsh-settings": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
71
- "@deepseek-ai/dsh-tools": "0.2.2-rc.1 || 0.2.2-rc.2 || 0.2.2-rc.3",
60
+ "@deepseek-ai/dsh-client-connection": "0.2.2-rc.5",
61
+ "@deepseek-ai/dsh-client-locale": "0.2.2-rc.5",
62
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.5",
63
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.5",
64
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.5",
65
+ "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.5",
66
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.5",
67
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.5",
68
+ "@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.5",
69
+ "@deepseek-ai/dsh-session": "0.2.2-rc.5",
70
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.5",
71
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.5",
72
72
  "@deepseek-ai/schemastery": "3.19.0",
73
73
  "@types/react": "~18.3.1",
74
74
  "react": "^18.2.0",