@musdrop/ds-harness-remote 0.6.13 → 0.6.14
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/dist/client.js +78 -60
- package/dist/index.js +5 -3
- package/dsh-plugin.json +1 -1
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -2223,7 +2223,8 @@ If a code was sent, recover the original submission without changing it.`,
|
|
|
2223
2223
|
modelShareBorrowStatusPeerEmpty: "This device lends nothing usable right now.",
|
|
2224
2224
|
modelShareRuleAnyDeviceHint: "A rule without any selected device applies to every authorized peer.",
|
|
2225
2225
|
modelShareEdit: "Edit",
|
|
2226
|
-
modelShareSaveEdit: "Save rule"
|
|
2226
|
+
modelShareSaveEdit: "Save rule",
|
|
2227
|
+
modelShareSelectModelsHint: "No models selected yet"
|
|
2227
2228
|
}, zh = {
|
|
2228
2229
|
uploadTooLarge: "\u6587\u4EF6\u8D85\u8FC7\u5F53\u524D\u8FDE\u63A5\u7684\u5355\u6587\u4EF6\u4E0A\u4F20\u4E0A\u9650\uFF08{size}\uFF09\u3002",
|
|
2229
2230
|
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",
|
|
@@ -2669,7 +2670,8 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
2669
2670
|
modelShareBorrowStatusPeerEmpty: "\u8BE5\u8BBE\u5907\u5F53\u524D\u6CA1\u6709\u53EF\u501F\u7528\u7684\u6A21\u578B\u3002",
|
|
2670
2671
|
modelShareRuleAnyDeviceHint: "\u672A\u9009\u62E9\u4EFB\u4F55\u8BBE\u5907\u7684\u89C4\u5219\u5BF9\u6240\u6709\u5DF2\u6388\u6743\u7684\u8BBE\u5907\u751F\u6548\u3002",
|
|
2671
2672
|
modelShareEdit: "\u7F16\u8F91",
|
|
2672
|
-
modelShareSaveEdit: "\u4FDD\u5B58\u89C4\u5219"
|
|
2673
|
+
modelShareSaveEdit: "\u4FDD\u5B58\u89C4\u5219",
|
|
2674
|
+
modelShareSelectModelsHint: "\u5C1A\u672A\u9009\u62E9\u6A21\u578B"
|
|
2673
2675
|
}, ru = {
|
|
2674
2676
|
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}).",
|
|
2675
2677
|
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.",
|
|
@@ -3115,7 +3117,8 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
3115
3117
|
modelShareBorrowStatusPeerEmpty: "\u042D\u0442\u043E \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\u0435\u0439.",
|
|
3116
3118
|
modelShareRuleAnyDeviceHint: "\u041F\u0440\u0430\u0432\u0438\u043B\u043E \u0431\u0435\u0437 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043B\u044F \u0432\u0441\u0435\u0445 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0443\u0441\u0442\u0440\u043E\u0439\u0441\u0442\u0432.",
|
|
3117
3119
|
modelShareEdit: "\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C",
|
|
3118
|
-
modelShareSaveEdit: "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u043E"
|
|
3120
|
+
modelShareSaveEdit: "\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u043F\u0440\u0430\u0432\u0438\u043B\u043E",
|
|
3121
|
+
modelShareSelectModelsHint: "\u041C\u043E\u0434\u0435\u043B\u0438 \u043D\u0435 \u0432\u044B\u0431\u0440\u0430\u043D\u044B"
|
|
3119
3122
|
}, uk = {
|
|
3120
3123
|
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}).",
|
|
3121
3124
|
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.",
|
|
@@ -3561,7 +3564,8 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
3561
3564
|
modelShareBorrowStatusPeerEmpty: "\u0426\u0435\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\u0435\u0439.",
|
|
3562
3565
|
modelShareRuleAnyDeviceHint: "\u041F\u0440\u0430\u0432\u0438\u043B\u043E \u0431\u0435\u0437 \u0432\u0438\u0431\u0440\u0430\u043D\u0438\u0445 \u043F\u0440\u0438\u0441\u0442\u0440\u043E\u0457\u0432 \u0434\u0456\u0454 \u0434\u043B\u044F \u0432\u0441\u0456\u0445 \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u043E\u0432\u0430\u043D\u0438\u0445 \u043F\u0440\u0438\u0441\u0442\u0440\u043E\u0457\u0432.",
|
|
3563
3566
|
modelShareEdit: "\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",
|
|
3564
|
-
modelShareSaveEdit: "\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u043F\u0440\u0430\u0432\u0438\u043B\u043E"
|
|
3567
|
+
modelShareSaveEdit: "\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u043F\u0440\u0430\u0432\u0438\u043B\u043E",
|
|
3568
|
+
modelShareSelectModelsHint: "\u041C\u043E\u0434\u0435\u043B\u0456 \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E"
|
|
3565
3569
|
};
|
|
3566
3570
|
|
|
3567
3571
|
// packages/plugin/src/client/header.ts
|
|
@@ -4369,7 +4373,7 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
4369
4373
|
}
|
|
4370
4374
|
function createModelSharingSection(React) {
|
|
4371
4375
|
return function(props) {
|
|
4372
|
-
let { control, t, available = !0 } = props, [view, setView] = React.useState(void 0), [busy, setBusy] = React.useState(!1), [error, setError] = React.useState(void 0), [notice, setNotice] = React.useState(void 0), [
|
|
4376
|
+
let { control, t, available = !0 } = props, [view, setView] = React.useState(void 0), [busy, setBusy] = React.useState(!1), [error, setError] = React.useState(void 0), [notice, setNotice] = React.useState(void 0), [grantSelectedModels, setGrantSelectedModels] = React.useState([]), [grantAllOfProvider, setGrantAllOfProvider] = React.useState([]), [grantAnyDevice, setGrantAnyDevice] = React.useState(!0), [grantDevices, setGrantDevices] = React.useState([]), [editingGrant, setEditingGrant] = React.useState(!1), [concurrencyDraft, setConcurrencyDraft] = React.useState(void 0), viewRef = React.useRef(void 0), queueRef = React.useRef(Promise.resolve()), busyRef = React.useRef(!1), applyView = (next) => {
|
|
4373
4377
|
viewRef.current = next, setView(next), setConcurrencyDraft(void 0);
|
|
4374
4378
|
}, load = React.useCallback(async () => {
|
|
4375
4379
|
setError(void 0);
|
|
@@ -4408,18 +4412,35 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
4408
4412
|
}, patchSources(sources);
|
|
4409
4413
|
}, removeGrant = (index) => {
|
|
4410
4414
|
view !== void 0 && patchHost({ grants: view.store.host.grants.filter((_, i) => i !== index) });
|
|
4411
|
-
},
|
|
4412
|
-
|
|
4413
|
-
},
|
|
4414
|
-
|
|
4415
|
+
}, toggleGrantModel = (routeKey) => {
|
|
4416
|
+
setGrantSelectedModels((current) => current.includes(routeKey) ? current.filter((id) => id !== routeKey) : [...current, routeKey]);
|
|
4417
|
+
}, toggleGrantAllOfProvider = (provider) => {
|
|
4418
|
+
setGrantAllOfProvider((current) => current.includes(provider) ? current.filter((id) => id !== provider) : [...current, provider]);
|
|
4415
4419
|
}, toggleGrantDevice = (deviceId) => {
|
|
4416
4420
|
setGrantDevices((current) => current.includes(deviceId) ? current.filter((id) => id !== deviceId) : [...current, deviceId]);
|
|
4417
4421
|
}, addGrant = () => {
|
|
4418
|
-
if (view === void 0
|
|
4419
|
-
let
|
|
4420
|
-
for (let deviceId of anyDevice ? [void 0] : grantDevices)
|
|
4421
|
-
|
|
4422
|
-
|
|
4422
|
+
if (view === void 0) return;
|
|
4423
|
+
let anyDevice = grantAnyDevice || grantDevices.length === 0, replaced = new Set(anyDevice ? ["*"] : grantDevices), selected = new Set(grantSelectedModels), allProviders = new Set(grantAllOfProvider), grants = view.store.host.grants.filter((grant) => allProviders.has(grant.provider) ? !1 : grant.models.length === 0 ? !0 : !grant.models.some((model) => selected.has(`${grant.provider}::${model}`)));
|
|
4424
|
+
for (let deviceId of anyDevice ? [void 0] : grantDevices) {
|
|
4425
|
+
for (let provider of grantAllOfProvider)
|
|
4426
|
+
grants.push({ ...deviceId === void 0 ? {} : { deviceId }, provider, models: [] });
|
|
4427
|
+
for (let route of grantSelectedModels) {
|
|
4428
|
+
let separator = route.indexOf("::");
|
|
4429
|
+
if (separator <= 0) continue;
|
|
4430
|
+
let provider = route.slice(0, separator);
|
|
4431
|
+
allProviders.has(provider) || grants.push({
|
|
4432
|
+
...deviceId === void 0 ? {} : { deviceId },
|
|
4433
|
+
provider,
|
|
4434
|
+
models: [.../* @__PURE__ */ new Set([
|
|
4435
|
+
...grants.filter((grant) => grant.provider === provider && grant.deviceId === deviceId).flatMap((grant) => grant.models),
|
|
4436
|
+
route.slice(separator + 2)
|
|
4437
|
+
])]
|
|
4438
|
+
});
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
patchHost({ grants, enabled: !0 }), setGrantSelectedModels([]), setGrantAllOfProvider([]), setGrantAnyDevice(!0), setGrantDevices([]), setEditingGrant(!1);
|
|
4442
|
+
}, resetGrantForm = () => {
|
|
4443
|
+
setGrantSelectedModels([]), setGrantAllOfProvider([]), setGrantAnyDevice(!0), setGrantDevices([]), setEditingGrant(!1);
|
|
4423
4444
|
}, label = (device) => `${device.name}${device.online ? ` \xB7 ${t("modelShareOnline")}` : device.known ? ` \xB7 ${t("modelShareOffline")}` : ""}`, peerName = (deviceId) => view?.peers.find((device) => device.deviceId === deviceId)?.name ?? deviceId, grantModelsSummary = (models) => models.length === 0 ? t("modelShareAllModels") : models.join(", "), borrowStatus = (deviceId, source) => {
|
|
4424
4445
|
if (view === void 0 || source?.enabled !== !0) return;
|
|
4425
4446
|
let diagnostics = view.borrowerDiagnostics;
|
|
@@ -4446,7 +4467,7 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
4446
4467
|
React.createElement("p", null, error ?? t("modelShareNotLoaded"))
|
|
4447
4468
|
)
|
|
4448
4469
|
);
|
|
4449
|
-
let { host, borrower } = view.store, disabled = busy || !view.writable || !available, draftModels = view.localProviders.
|
|
4470
|
+
let { host, borrower } = view.store, disabled = busy || !view.writable || !available, draftModels = view.localProviders.flatMap((provider) => provider.models.map((model) => ({ provider, model }))), selectedCount = grantSelectedModels.length + grantAllOfProvider.length, modelsSummary = selectedCount === 0 ? t("modelShareSelectModelsHint") : t("modelShareSelectedCount", { count: selectedCount }), devicesSummary = grantAnyDevice || grantDevices.length === 0 ? t("modelShareAnyDevice") : t("modelShareSelectedCount", { count: grantDevices.length }), deviceSummaryLine = `${t("modelShareDevice")}: ${devicesSummary}`, modelSummaryLine = `${t("modelShareModels")}: ${modelsSummary}`, grantGroups = [];
|
|
4450
4471
|
host.grants.forEach((grant, index) => {
|
|
4451
4472
|
let group = grantGroups.find((candidate) => candidate.provider === grant.provider);
|
|
4452
4473
|
group === void 0 && (group = { provider: grant.provider, entries: [] }, grantGroups.push(group)), group.entries.push({ index, grant });
|
|
@@ -4531,7 +4552,7 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
4531
4552
|
// Edit = prefill the form from this grant and drop the saved
|
|
4532
4553
|
// entry; saving the form writes the edited rule back.
|
|
4533
4554
|
onClick: () => {
|
|
4534
|
-
|
|
4555
|
+
setGrantAnyDevice(entry.grant.deviceId === void 0), setGrantDevices(entry.grant.deviceId === void 0 ? [] : [entry.grant.deviceId]), entry.grant.models.length === 0 ? (setGrantAllOfProvider([group.provider]), setGrantSelectedModels([])) : (setGrantAllOfProvider([]), setGrantSelectedModels(entry.grant.models.map((model) => `${group.provider}::${model}`))), removeGrant(entry.index), setEditingGrant(!0);
|
|
4535
4556
|
}
|
|
4536
4557
|
}, t("modelShareEdit")),
|
|
4537
4558
|
React.createElement("button", {
|
|
@@ -4551,36 +4572,22 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
4551
4572
|
React.createElement(
|
|
4552
4573
|
"div",
|
|
4553
4574
|
{ className: "dshRemoteAcpAddInputs" },
|
|
4554
|
-
React.createElement(
|
|
4555
|
-
"select",
|
|
4556
|
-
{
|
|
4557
|
-
value: grantProvider,
|
|
4558
|
-
disabled,
|
|
4559
|
-
"aria-label": t("modelShareProvider"),
|
|
4560
|
-
onChange: (event) => selectGrantProvider(event.target.value)
|
|
4561
|
-
},
|
|
4562
|
-
React.createElement("option", { value: "" }, t("modelShareSelectProvider")),
|
|
4563
|
-
...view.localProviders.map((provider) => React.createElement("option", {
|
|
4564
|
-
key: provider.id,
|
|
4565
|
-
value: provider.id
|
|
4566
|
-
}, provider.name ?? provider.id))
|
|
4567
|
-
),
|
|
4568
4575
|
React.createElement("button", {
|
|
4569
4576
|
type: "button",
|
|
4570
4577
|
className: "dshRemoteAcpAddTrigger",
|
|
4571
|
-
disabled: disabled ||
|
|
4578
|
+
disabled: disabled || grantSelectedModels.length === 0 && grantAllOfProvider.length === 0,
|
|
4572
4579
|
onClick: addGrant
|
|
4573
4580
|
}, t(editingGrant ? "modelShareSaveEdit" : "modelShareAddGrant")),
|
|
4574
4581
|
editingGrant ? React.createElement("button", {
|
|
4575
4582
|
type: "button",
|
|
4576
4583
|
className: "dshRemoteAcpAddTrigger",
|
|
4577
4584
|
disabled,
|
|
4578
|
-
onClick:
|
|
4579
|
-
setGrantProvider(""), setGrantAllModels(!0), setGrantModels([]), setGrantAnyDevice(!0), setGrantDevices([]), setEditingGrant(!1);
|
|
4580
|
-
}
|
|
4585
|
+
onClick: resetGrantForm
|
|
4581
4586
|
}, t("cancelServiceAddressEdit")) : null
|
|
4582
4587
|
),
|
|
4583
|
-
//
|
|
4588
|
+
// One flat picker: every provider's models, grouped under provider
|
|
4589
|
+
// headings, all selectable in a single pass. A provider heading row
|
|
4590
|
+
// checks all of that provider's models at once.
|
|
4584
4591
|
React.createElement(
|
|
4585
4592
|
"details",
|
|
4586
4593
|
{ className: "dshRemoteModelSharePicker" },
|
|
@@ -4588,31 +4595,42 @@ DSH Go \u626B\u7801\u6682\u4E0D\u652F\u6301\u591A\u53F0\u8BBE\u5907\u63A7\u5236\
|
|
|
4588
4595
|
React.createElement(
|
|
4589
4596
|
"div",
|
|
4590
4597
|
{ className: "dshRemoteModelSharePickerList", role: "group", "aria-label": t("modelShareModels") },
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4598
|
+
...view.localProviders.map((provider) => {
|
|
4599
|
+
let allChecked = grantAllOfProvider.includes(provider.id);
|
|
4600
|
+
return React.createElement(
|
|
4601
|
+
"div",
|
|
4602
|
+
{ key: `prov-${provider.id}`, className: "dshRemoteModelShareProviderGroup" },
|
|
4603
|
+
React.createElement(
|
|
4604
|
+
"label",
|
|
4605
|
+
{ className: "dshRemoteModelShareProviderHeading" },
|
|
4606
|
+
React.createElement("input", {
|
|
4607
|
+
type: "checkbox",
|
|
4608
|
+
checked: allChecked,
|
|
4609
|
+
disabled,
|
|
4610
|
+
"aria-label": `${t("modelShareAllModels")}: ${provider.name ?? provider.id}`,
|
|
4611
|
+
onChange: () => toggleGrantAllOfProvider(provider.id)
|
|
4612
|
+
}),
|
|
4613
|
+
React.createElement("strong", null, provider.name ?? provider.id)
|
|
4614
|
+
),
|
|
4615
|
+
...provider.models.map((model) => {
|
|
4616
|
+
let route = `${provider.id}::${model.id}`;
|
|
4617
|
+
return React.createElement(
|
|
4618
|
+
"label",
|
|
4619
|
+
{ key: `model-${route}` },
|
|
4620
|
+
React.createElement("input", {
|
|
4621
|
+
type: "checkbox",
|
|
4622
|
+
checked: allChecked || grantSelectedModels.includes(route),
|
|
4623
|
+
// An "all of this provider" heading supersedes the
|
|
4624
|
+
// individual boxes of that provider.
|
|
4625
|
+
disabled: disabled || allChecked,
|
|
4626
|
+
"aria-label": `${provider.name ?? provider.id} / ${model.name ?? model.id}`,
|
|
4627
|
+
onChange: () => toggleGrantModel(route)
|
|
4628
|
+
}),
|
|
4629
|
+
model.name ?? model.id
|
|
4630
|
+
);
|
|
4631
|
+
})
|
|
4632
|
+
);
|
|
4633
|
+
})
|
|
4616
4634
|
)
|
|
4617
4635
|
),
|
|
4618
4636
|
// Collapsible multi-device selection; empty means every peer.
|
package/dist/index.js
CHANGED
|
@@ -75383,7 +75383,7 @@ function parseIpv6(value) {
|
|
|
75383
75383
|
}
|
|
75384
75384
|
|
|
75385
75385
|
// packages/plugin/src/version.ts
|
|
75386
|
-
var PLUGIN_VERSION = "0.6.
|
|
75386
|
+
var PLUGIN_VERSION = "0.6.14";
|
|
75387
75387
|
|
|
75388
75388
|
// packages/plugin/src/server-api.ts
|
|
75389
75389
|
var TERMINAL_CONTROL_CHARACTERS = /[\u0000-\u001f\u007f-\u009f]/u;
|
|
@@ -122713,13 +122713,15 @@ var ModelShareHost = class {
|
|
|
122713
122713
|
const id7 = routeKey(grant.provider, resolved.id);
|
|
122714
122714
|
if (seen.has(id7)) continue;
|
|
122715
122715
|
seen.add(id7);
|
|
122716
|
+
const contextWindow = resolved.context?.contextWindow ?? resolved.contextWindow;
|
|
122717
|
+
const maxTokens = resolved.defaultMaxTokens ?? resolved.maxTokens;
|
|
122716
122718
|
const parsed = sharedModelSchema.safeParse({
|
|
122717
122719
|
id: id7,
|
|
122718
122720
|
provider: grant.provider,
|
|
122719
122721
|
model: resolved.id,
|
|
122720
122722
|
name: resolved.name ?? resolved.id,
|
|
122721
|
-
...
|
|
122722
|
-
...
|
|
122723
|
+
...contextWindow === void 0 ? {} : { contextWindow },
|
|
122724
|
+
...maxTokens === void 0 ? {} : { maxTokens },
|
|
122723
122725
|
...resolved.reasoning?.efforts === void 0 ? {} : { reasoningEfforts: resolved.reasoning.efforts.map((effort) => effort.id) },
|
|
122724
122726
|
...resolved.inputModalities === void 0 ? {} : { inputModalities: [...resolved.inputModalities] }
|
|
122725
122727
|
});
|
package/dsh-plugin.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@musdrop/ds-harness-remote",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.14",
|
|
4
4
|
"description": "P2P-based, end-to-end encrypted remote access to DeepSeek Harness, CodeX, Claude Code, Pi, and other workspaces from web and mobile clients. Fork adding cross-device model lending/borrowing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek",
|