@musdrop/ds-harness-remote 0.6.20 → 0.6.23

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.md CHANGED
@@ -70,23 +70,23 @@ In DeepSeek Harness Desktop, open **Extensions / Plugin management**, choose ins
70
70
  from **npm**, and enter:
71
71
 
72
72
  ```text
73
- ds-harness-remote@0.6.8
73
+ ds-harness-remote
74
74
  ```
75
75
 
76
76
  Restart Desktop after installation. Its official `dsh` launcher can also install the package:
77
77
 
78
78
  ```sh
79
- dsh plugin --profile desktop add -w ds-harness-remote@0.6.8
79
+ dsh plugin --profile desktop add -w ds-harness-remote
80
80
  ```
81
81
 
82
82
  Use Desktop's official launcher to manage its reserved `desktop` profile.
83
83
 
84
84
  ### Existing DSH installation
85
85
 
86
- Add the current package version to the `web` profile, then restart Harness:
86
+ Add the package to the `web` profile, then restart Harness:
87
87
 
88
88
  ```sh
89
- dsh plugin --profile web add -w ds-harness-remote@0.6.8
89
+ dsh plugin --profile web add -w ds-harness-remote
90
90
  ```
91
91
 
92
92
  ## What’s new in 0.6.8
package/dist/client.js CHANGED
@@ -2226,8 +2226,9 @@ If a code was sent, recover the original submission without changing it.`,
2226
2226
  modelShareEdit: "Edit",
2227
2227
  modelShareSaveEdit: "Save rule",
2228
2228
  modelShareSelectModelsHint: "No models selected yet",
2229
- modelShareClearDraft: "Clear form"
2229
+ modelShareClearDraft: "Clear form",
2230
2230
  // [model-sharing] END
2231
+ modelShareBorrowStatusHostDisabled: "The other device is not lending to this machine right now (its model sharing is off, or no rule covers this device). Ask them to check their lending rules."
2231
2232
  }, zh = {
2232
2233
  uploadTooLarge: "\u6587\u4EF6\u8D85\u8FC7\u5F53\u524D\u8FDE\u63A5\u7684\u5355\u6587\u4EF6\u4E0A\u4F20\u4E0A\u9650\uFF08{size}\uFF09\u3002",
2233
2234
  relayUploadTooLarge: "\u6587\u4EF6\u8D85\u8FC7\u5F53\u524D\u8FDE\u63A5\u7684\u5355\u6587\u4EF6\u4E0A\u4F20\u4E0A\u9650\uFF08{size}\uFF09\u3002Relay \u548C TURN \u4E0A\u4F20\u65F6\uFF0C\u666E\u901A\u7528\u6237\u6BCF\u4E2A\u6587\u4EF6\u6700\u591A 20 MiB\uFF0C\u652F\u6301\u4F1A\u5458\u989D\u5EA6\u7684\u8FDE\u63A5\u6700\u591A 100 MiB\u3002",
@@ -2676,8 +2677,9 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
2676
2677
  modelShareEdit: "\u7F16\u8F91",
2677
2678
  modelShareSaveEdit: "\u4FDD\u5B58\u89C4\u5219",
2678
2679
  modelShareSelectModelsHint: "\u5C1A\u672A\u9009\u62E9\u6A21\u578B",
2679
- modelShareClearDraft: "\u6E05\u7A7A\u8868\u5355"
2680
+ modelShareClearDraft: "\u6E05\u7A7A\u8868\u5355",
2680
2681
  // [model-sharing] END
2682
+ modelShareBorrowStatusHostDisabled: "\u5BF9\u65B9\u5F53\u524D\u6CA1\u6709\u5411\u4F60\u501F\u51FA\uFF08\u5BF9\u65B9\u7684\u6A21\u578B\u5171\u4EAB\u5DF2\u5173\u95ED\uFF0C\u6216\u6CA1\u6709\u8986\u76D6\u672C\u8BBE\u5907\u7684\u89C4\u5219\uFF09\u3002\u8BF7\u5BF9\u65B9\u68C0\u67E5\u5176\u501F\u51FA\u89C4\u5219\u3002"
2681
2683
  }, ru = {
2682
2684
  uploadTooLarge: "\u0424\u0430\u0439\u043B \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043B\u0438\u043C\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438 ({size}).",
2683
2685
  relayUploadTooLarge: "\u0424\u0430\u0439\u043B \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0435\u0442 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u043B\u0438\u043C\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438 ({size}). \u0427\u0435\u0440\u0435\u0437 Relay \u0438 TURN \u043B\u0438\u043C\u0438\u0442 \u0441\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 20 \u041C\u0438\u0411 \u043D\u0430 \u0444\u0430\u0439\u043B \u0438\u043B\u0438 100 \u041C\u0438\u0411, \u0435\u0441\u043B\u0438 \u0441\u043E\u0435\u0434\u0438\u043D\u0435\u043D\u0438\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043B\u0438\u043C\u0438\u0442 \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438.",
@@ -3126,8 +3128,9 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
3126
3128
  modelShareEdit: "\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C",
3127
3129
  modelShareSaveEdit: "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u043E",
3128
3130
  modelShareSelectModelsHint: "\u041C\u043E\u0434\u0435\u043B\u0438 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u044B",
3129
- modelShareClearDraft: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u043E\u0440\u043C\u0443"
3131
+ modelShareClearDraft: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0444\u043E\u0440\u043C\u0443",
3130
3132
  // [model-sharing] END
3133
+ modelShareBorrowStatusHostDisabled: "\u0414\u0440\u0443\u0433\u043E\u0435 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u043C\u043E\u0434\u0435\u043B\u0438 \u044D\u0442\u043E\u043C\u0443 \u043A\u043E\u043C\u043F\u044C\u044E\u0442\u0435\u0440\u0443 (\u043E\u0431\u0449\u0438\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0432\u044B\u043A\u043B\u044E\u0447\u0435\u043D \u0438\u043B\u0438 \u043F\u0440\u0430\u0432\u0438\u043B\u043E \u043D\u0435 \u043E\u0445\u0432\u0430\u0442\u044B\u0432\u0430\u0435\u0442 \u044D\u0442\u043E \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432\u043E). \u041F\u043E\u043F\u0440\u043E\u0441\u0438\u0442\u0435 \u0435\u0433\u043E \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u0430."
3131
3134
  }, uk = {
3132
3135
  uploadTooLarge: "\u0424\u0430\u0439\u043B \u043F\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 \u043F\u043E\u0442\u043E\u0447\u043D\u0438\u0439 \u043B\u0456\u043C\u0456\u0442 \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F ({size}).",
3133
3136
  relayUploadTooLarge: "\u0424\u0430\u0439\u043B \u043F\u0435\u0440\u0435\u0432\u0438\u0449\u0443\u0454 \u043F\u043E\u0442\u043E\u0447\u043D\u0438\u0439 \u043B\u0456\u043C\u0456\u0442 \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F ({size}). \u0427\u0435\u0440\u0435\u0437 Relay \u0456 TURN \u043B\u0456\u043C\u0456\u0442 \u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C 20 \u041C\u0456\u0411 \u043D\u0430 \u0444\u0430\u0439\u043B \u0430\u0431\u043E 100 \u041C\u0456\u0411, \u044F\u043A\u0449\u043E \u0437\u2019\u0454\u0434\u043D\u0430\u043D\u043D\u044F \u043F\u0456\u0434\u0442\u0440\u0438\u043C\u0443\u0454 \u043B\u0456\u043C\u0456\u0442 \u043F\u0435\u0440\u0435\u0434\u043F\u043B\u0430\u0442\u0438.",
@@ -3576,8 +3579,9 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
3576
3579
  modelShareEdit: "\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",
3577
3580
  modelShareSaveEdit: "\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u043F\u0440\u0430\u0432\u0438\u043B\u043E",
3578
3581
  modelShareSelectModelsHint: "\u041C\u043E\u0434\u0435\u043B\u0456 \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E",
3579
- modelShareClearDraft: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0444\u043E\u0440\u043C\u0443"
3582
+ modelShareClearDraft: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0444\u043E\u0440\u043C\u0443",
3580
3583
  // [model-sharing] END
3584
+ modelShareBorrowStatusHostDisabled: "\u0406\u043D\u0448\u0438\u0439 \u043F\u0440\u0438\u0441\u0442\u0440\u0456\u0439 \u0437\u0430\u0440\u0430\u0437 \u043D\u0435 \u043D\u0430\u0434\u0430\u0454 \u043C\u043E\u0434\u0435\u043B\u0456 \u0446\u044C\u043E\u043C\u0443 \u043A\u043E\u043C\u043F\u2019\u044E\u0442\u0435\u0440\u0443 (\u0441\u043F\u0456\u043B\u044C\u043D\u0438\u0439 \u0434\u043E\u0441\u0442\u0443\u043F \u0432\u0438\u043C\u043A\u043D\u0435\u043D\u043E \u0430\u0431\u043E \u043F\u0440\u0430\u0432\u0438\u043B\u043E \u043D\u0435 \u043E\u0445\u043E\u043F\u043B\u044E\u0454 \u0446\u0435\u0439 \u043F\u0440\u0438\u0441\u0442\u0440\u0456\u0439). \u041F\u043E\u043F\u0440\u043E\u0441\u0456\u0442\u044C \u0439\u043E\u0433\u043E \u043F\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u043F\u0440\u0430\u0432\u0438\u043B\u0430."
3581
3585
  };
3582
3586
 
3583
3587
  // packages/plugin/src/client/header.ts
@@ -4403,7 +4407,7 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
4403
4407
  let current = viewRef.current;
4404
4408
  current === void 0 || !current.writable || !available || (busyRef.current = !0, setBusy(!0), setNotice(void 0), queueRef.current = queueRef.current.then(async () => {
4405
4409
  try {
4406
- let next = mutate(viewRef.current?.store ?? current.store), result = await control("modelshare.set", next);
4410
+ let expected = viewRef.current?.store ?? current.store, next = mutate(expected), result = await control("modelshare.set", { store: next, expected });
4407
4411
  applyView(result), setNotice(t("modelShareSaved"));
4408
4412
  } catch (reason) {
4409
4413
  setError(messageOf(reason, t));
@@ -4453,6 +4457,7 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
4453
4457
  case "registered":
4454
4458
  return { cls: "", text: t("modelShareBorrowStatusOk", { count: entry.modelCount }) };
4455
4459
  case "host-disabled":
4460
+ return { cls: " isFailed", text: t("modelShareBorrowStatusHostDisabled") };
4456
4461
  case "no-models":
4457
4462
  return { cls: " isFailed", text: t("modelShareBorrowStatusPeerEmpty") };
4458
4463
  case "failed":