@sparkelf/dsh-plugin-subagent-settings 0.2.1-rc.2.2 → 0.2.9-alpha.82
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 +65 -63
- package/package.json +11 -11
package/lib/client.js
CHANGED
|
@@ -4,9 +4,9 @@ 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 react_jsx_runtime = require("react/jsx-runtime");
|
|
7
8
|
let react = require("react");
|
|
8
9
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
10
|
let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
|
|
11
11
|
//#region \0dsh-css:/root/projects/deepseek-harness-plus/packages/plus/subagent-settings/src/client/SubagentCard.module.css.mjs
|
|
12
12
|
const css = ".G7o8qW_section{box-sizing:border-box;width:min(100%,680px);padding:0 24px 28px 0}.G7o8qW_heading{color:var(--dsw-alias-label-primary);margin:0;font-size:20px;font-weight:600;line-height:28px}.G7o8qW_intro{color:var(--dsw-alias-label-secondary);margin:6px 0 18px;font-size:14px;line-height:22px}.G7o8qW_card{border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:8px;overflow:hidden}.G7o8qW_modeTabs{border-bottom:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;display:grid}.G7o8qW_modeTab{min-width:0;min-height:38px;color:var(--dsw-alias-label-secondary);cursor:pointer;font:inherit;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:7px 12px;font-size:14px;font-weight:500;line-height:22px;display:inline-flex;position:relative}.G7o8qW_modeTab:hover{background:var(--dsw-alias-interactive-bg-hover)}.G7o8qW_modeTab[data-active=true]{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}.G7o8qW_modeTab:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.G7o8qW_unsavedDot{corner-shape:round;background:var(--dsw-alias-brand-primary);border-radius:50%;flex:none;width:6px;height:6px}.G7o8qW_panel{padding:18px}.G7o8qW_modeHeader{border-bottom:.5px solid var(--dsw-alias-border-l2);justify-content:space-between;align-items:center;gap:20px;padding-bottom:16px;display:flex}.G7o8qW_modeCopy{min-width:0}.G7o8qW_modeCopy h3{color:var(--dsw-alias-label-primary);margin:0;font-size:15px;font-weight:600;line-height:22px}.G7o8qW_modeCopy p{color:var(--dsw-alias-label-tertiary);margin:3px 0 0;font-size:13px;line-height:20px}.G7o8qW_switchLabel{color:var(--dsw-alias-label-primary);cursor:pointer;flex:none;align-items:center;gap:10px;font-size:13px;font-weight:500;line-height:20px;display:inline-flex;position:relative}.G7o8qW_switchInput{z-index:1;opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.G7o8qW_switchInput:disabled{cursor:not-allowed}.G7o8qW_switchTrack{background:var(--dsw-alias-border-l1);border-radius:10px;width:36px;height:20px;transition:background-color .12s;position:relative}.G7o8qW_switchTrack>span{corner-shape:round;background:var(--dsw-alias-bg-layer-1);width:16px;height:16px;box-shadow:var(--dsw-shadow-lv1);border-radius:50%;transition:transform .12s;position:absolute;top:2px;left:2px}.G7o8qW_switchInput:checked+.G7o8qW_switchTrack{background:var(--dsw-alias-brand-primary)}.G7o8qW_switchInput:checked+.G7o8qW_switchTrack>span{transform:translate(16px)}.G7o8qW_switchInput:focus-visible+.G7o8qW_switchTrack{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.G7o8qW_switchInput:disabled+.G7o8qW_switchTrack{opacity:.48}.G7o8qW_switchLabel:has(.G7o8qW_switchInput:disabled){cursor:not-allowed;color:var(--dsw-alias-label-tertiary)}.G7o8qW_readOnly,.G7o8qW_failed{margin:12px 0 0;font-size:13px;line-height:20px}.G7o8qW_readOnly{color:var(--dsw-alias-label-tertiary)}.G7o8qW_failed{color:var(--dsw-alias-label-error);flex:1}.G7o8qW_editor{gap:18px;padding-top:18px;display:grid}.G7o8qW_group{gap:8px;display:grid}.G7o8qW_group h3{color:var(--dsw-alias-label-primary);margin:0;font-size:14px;font-weight:500;line-height:22px}.G7o8qW_radioRow{min-height:24px;color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;font-size:14px;line-height:22px;display:flex}.G7o8qW_radioRow input{accent-color:var(--dsw-alias-brand-primary);flex:none;margin:0}.G7o8qW_field{color:var(--dsw-alias-label-secondary);gap:6px;font-size:13px;line-height:20px;display:grid}.G7o8qW_control{box-sizing:border-box;width:100%;display:flex!important}.G7o8qW_textarea{box-sizing:border-box;resize:vertical;border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:112px;color:var(--dsw-alias-label-primary);font:inherit;border-radius:8px;padding:8px 10px;font-size:14px;line-height:22px}.G7o8qW_textarea:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.G7o8qW_select{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:36px;color:var(--dsw-alias-label-primary);cursor:pointer;font:inherit;text-align:left;border-radius:8px;justify-content:space-between;align-items:center;padding:0 10px;font-size:14px;line-height:22px;display:flex}.G7o8qW_select:hover:not(:disabled){border-color:var(--dsw-alias-label-dimmed)}.G7o8qW_select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.G7o8qW_select:disabled{cursor:not-allowed;opacity:.48}.G7o8qW_actions{justify-content:flex-start;padding-top:2px;display:flex}.G7o8qW_footer{border-top:.5px solid var(--dsw-alias-border-l2);justify-content:flex-end;align-items:center;gap:10px;min-height:44px;margin-top:18px;padding-top:14px;display:flex}.G7o8qW_discard,.G7o8qW_save{cursor:pointer;min-height:34px;font:inherit;border-radius:8px;padding:5px 14px;font-size:14px;line-height:22px}.G7o8qW_discard{border:.5px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-primary);background:0 0}.G7o8qW_save{background:var(--dsw-alias-brand-primary);color:var(--dsw-alias-bg-layer-3);border:1px solid #0000}.G7o8qW_discard:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.G7o8qW_save:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.G7o8qW_discard:disabled,.G7o8qW_save:disabled{cursor:not-allowed;opacity:.42}";
|
|
@@ -47,7 +47,7 @@ window.__ModuleLoader__.load({
|
|
|
47
47
|
"unsavedDot": "G7o8qW_unsavedDot"
|
|
48
48
|
};
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region
|
|
50
|
+
//#region lib/types/client/SubagentCard.js
|
|
51
51
|
/** Unified settings section for continuous and one-shot delegation modes. */
|
|
52
52
|
function without(value, key) {
|
|
53
53
|
const { [key]: _omitted, ...rest } = value;
|
|
@@ -137,25 +137,25 @@ window.__ModuleLoader__.load({
|
|
|
137
137
|
return current;
|
|
138
138
|
});
|
|
139
139
|
};
|
|
140
|
-
return
|
|
140
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
141
141
|
className: SubagentCard_module_css_default.editor,
|
|
142
142
|
children: [
|
|
143
|
-
|
|
143
|
+
(0, react_jsx_runtime.jsxs)("section", {
|
|
144
144
|
className: SubagentCard_module_css_default.group,
|
|
145
145
|
children: [
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
(0, react_jsx_runtime.jsx)("h3", { children: t("subagentModel") }),
|
|
147
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
148
148
|
className: SubagentCard_module_css_default.radioRow,
|
|
149
|
-
children: [
|
|
149
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
150
150
|
type: "radio",
|
|
151
151
|
checked: !fixedModel,
|
|
152
152
|
disabled: !writable || saving,
|
|
153
153
|
onChange: followParent
|
|
154
154
|
}), t("subagentFollowParent")]
|
|
155
155
|
}),
|
|
156
|
-
|
|
156
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
157
157
|
className: SubagentCard_module_css_default.radioRow,
|
|
158
|
-
children: [
|
|
158
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
159
159
|
type: "radio",
|
|
160
160
|
checked: fixedModel,
|
|
161
161
|
disabled: !writable || saving,
|
|
@@ -167,9 +167,9 @@ window.__ModuleLoader__.load({
|
|
|
167
167
|
}
|
|
168
168
|
}), t("subagentFixedModel")]
|
|
169
169
|
}),
|
|
170
|
-
fixedModel &&
|
|
170
|
+
fixedModel && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("label", {
|
|
171
171
|
className: SubagentCard_module_css_default.field,
|
|
172
|
-
children: [t("subagentProvider"),
|
|
172
|
+
children: [t("subagentProvider"), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
173
173
|
className: SubagentCard_module_css_default.control,
|
|
174
174
|
value: draft.agentOptions?.provider ?? "",
|
|
175
175
|
disabled: !writable || saving,
|
|
@@ -177,9 +177,9 @@ window.__ModuleLoader__.load({
|
|
|
177
177
|
setOptions({ provider: event.target.value });
|
|
178
178
|
}
|
|
179
179
|
})]
|
|
180
|
-
}),
|
|
180
|
+
}), (0, react_jsx_runtime.jsxs)("label", {
|
|
181
181
|
className: SubagentCard_module_css_default.field,
|
|
182
|
-
children: [t("subagentModelId"),
|
|
182
|
+
children: [t("subagentModelId"), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
183
183
|
className: SubagentCard_module_css_default.control,
|
|
184
184
|
value: draft.agentOptions?.model ?? "",
|
|
185
185
|
disabled: !writable || saving,
|
|
@@ -188,9 +188,9 @@ window.__ModuleLoader__.load({
|
|
|
188
188
|
}
|
|
189
189
|
})]
|
|
190
190
|
})] }),
|
|
191
|
-
|
|
191
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
192
192
|
className: SubagentCard_module_css_default.field,
|
|
193
|
-
children: [t("subagentMaxTokens"),
|
|
193
|
+
children: [t("subagentMaxTokens"), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
194
194
|
className: SubagentCard_module_css_default.control,
|
|
195
195
|
type: "number",
|
|
196
196
|
min: "1",
|
|
@@ -205,13 +205,13 @@ window.__ModuleLoader__.load({
|
|
|
205
205
|
})
|
|
206
206
|
]
|
|
207
207
|
}),
|
|
208
|
-
|
|
208
|
+
(0, react_jsx_runtime.jsxs)("section", {
|
|
209
209
|
className: SubagentCard_module_css_default.group,
|
|
210
210
|
children: [
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
(0, react_jsx_runtime.jsx)("h3", { children: t("subagentPersona") }),
|
|
212
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
213
213
|
className: SubagentCard_module_css_default.radioRow,
|
|
214
|
-
children: [
|
|
214
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
215
215
|
type: "radio",
|
|
216
216
|
checked: draft.persona === void 0,
|
|
217
217
|
disabled: !writable || saving,
|
|
@@ -220,9 +220,9 @@ window.__ModuleLoader__.load({
|
|
|
220
220
|
}
|
|
221
221
|
}), t("subagentInheritPersona")]
|
|
222
222
|
}),
|
|
223
|
-
|
|
223
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
224
224
|
className: SubagentCard_module_css_default.radioRow,
|
|
225
|
-
children: [
|
|
225
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
226
226
|
type: "radio",
|
|
227
227
|
checked: draft.persona !== void 0,
|
|
228
228
|
disabled: !writable || saving,
|
|
@@ -234,7 +234,7 @@ window.__ModuleLoader__.load({
|
|
|
234
234
|
}
|
|
235
235
|
}), t("subagentOverridePersona")]
|
|
236
236
|
}),
|
|
237
|
-
draft.persona !== void 0 &&
|
|
237
|
+
draft.persona !== void 0 && (0, react_jsx_runtime.jsx)("textarea", {
|
|
238
238
|
"aria-label": t("subagentPersona"),
|
|
239
239
|
className: SubagentCard_module_css_default.textarea,
|
|
240
240
|
value: draft.persona,
|
|
@@ -249,13 +249,13 @@ window.__ModuleLoader__.load({
|
|
|
249
249
|
})
|
|
250
250
|
]
|
|
251
251
|
}),
|
|
252
|
-
|
|
252
|
+
(0, react_jsx_runtime.jsxs)("section", {
|
|
253
253
|
className: SubagentCard_module_css_default.group,
|
|
254
254
|
children: [
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
(0, react_jsx_runtime.jsx)("h3", { children: t("subagentTools") }),
|
|
256
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
257
257
|
className: SubagentCard_module_css_default.radioRow,
|
|
258
|
-
children: [
|
|
258
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
259
259
|
type: "radio",
|
|
260
260
|
checked: toolMode === "all",
|
|
261
261
|
disabled: !writable || saving,
|
|
@@ -264,9 +264,9 @@ window.__ModuleLoader__.load({
|
|
|
264
264
|
}
|
|
265
265
|
}), t("subagentAllTools")]
|
|
266
266
|
}),
|
|
267
|
-
|
|
267
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
268
268
|
className: SubagentCard_module_css_default.radioRow,
|
|
269
|
-
children: [
|
|
269
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
270
270
|
type: "radio",
|
|
271
271
|
checked: toolMode === "allow",
|
|
272
272
|
disabled: !writable || saving,
|
|
@@ -275,9 +275,9 @@ window.__ModuleLoader__.load({
|
|
|
275
275
|
}
|
|
276
276
|
}), t("subagentAllowTools")]
|
|
277
277
|
}),
|
|
278
|
-
|
|
278
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
279
279
|
className: SubagentCard_module_css_default.radioRow,
|
|
280
|
-
children: [
|
|
280
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
281
281
|
type: "radio",
|
|
282
282
|
checked: toolMode === "deny",
|
|
283
283
|
disabled: !writable || saving,
|
|
@@ -286,7 +286,7 @@ window.__ModuleLoader__.load({
|
|
|
286
286
|
}
|
|
287
287
|
}), t("subagentDenyTools")]
|
|
288
288
|
}),
|
|
289
|
-
toolMode !== "all" &&
|
|
289
|
+
toolMode !== "all" && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
|
|
290
290
|
className: SubagentCard_module_css_default.control,
|
|
291
291
|
"aria-label": t("subagentTools"),
|
|
292
292
|
value: namesOf(draft.toolFilter),
|
|
@@ -298,13 +298,13 @@ window.__ModuleLoader__.load({
|
|
|
298
298
|
})
|
|
299
299
|
]
|
|
300
300
|
}),
|
|
301
|
-
|
|
301
|
+
(0, react_jsx_runtime.jsx)("section", {
|
|
302
302
|
className: SubagentCard_module_css_default.group,
|
|
303
|
-
children:
|
|
303
|
+
children: (0, react_jsx_runtime.jsxs)("label", {
|
|
304
304
|
className: SubagentCard_module_css_default.field,
|
|
305
|
-
children: [t("subagentDepth"),
|
|
305
|
+
children: [t("subagentDepth"), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
|
|
306
306
|
open: depthMenuOpen,
|
|
307
|
-
anchor:
|
|
307
|
+
anchor: (0, react_jsx_runtime.jsxs)("button", {
|
|
308
308
|
type: "button",
|
|
309
309
|
className: SubagentCard_module_css_default.select,
|
|
310
310
|
"aria-label": t("subagentDepth"),
|
|
@@ -314,7 +314,7 @@ window.__ModuleLoader__.load({
|
|
|
314
314
|
onClick: () => {
|
|
315
315
|
setDepthMenuOpen((current) => !current);
|
|
316
316
|
},
|
|
317
|
-
children: [depthItems.find((item) => item.id === depthId)?.label ?? depthId,
|
|
317
|
+
children: [depthItems.find((item) => item.id === depthId)?.label ?? depthId, (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {})]
|
|
318
318
|
}),
|
|
319
319
|
items: depthItems,
|
|
320
320
|
selectedId: depthId,
|
|
@@ -332,9 +332,9 @@ window.__ModuleLoader__.load({
|
|
|
332
332
|
})]
|
|
333
333
|
})
|
|
334
334
|
}),
|
|
335
|
-
|
|
335
|
+
(0, react_jsx_runtime.jsx)("div", {
|
|
336
336
|
className: SubagentCard_module_css_default.actions,
|
|
337
|
-
children:
|
|
337
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
338
338
|
variant: "outline",
|
|
339
339
|
size: "sm",
|
|
340
340
|
disabled: !writable || saving,
|
|
@@ -367,26 +367,26 @@ window.__ModuleLoader__.load({
|
|
|
367
367
|
const dirty = state.drafts[entry.ns] !== void 0;
|
|
368
368
|
const failed = state.saveErrors[entry.ns] !== void 0;
|
|
369
369
|
const blocked = !dirty || state.saving;
|
|
370
|
-
return
|
|
370
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
371
371
|
className: SubagentCard_module_css_default.section,
|
|
372
372
|
children: [
|
|
373
|
-
|
|
373
|
+
(0, react_jsx_runtime.jsx)("h2", {
|
|
374
374
|
className: SubagentCard_module_css_default.heading,
|
|
375
375
|
children: t("subagentTitle")
|
|
376
376
|
}),
|
|
377
|
-
|
|
377
|
+
(0, react_jsx_runtime.jsx)("p", {
|
|
378
378
|
className: SubagentCard_module_css_default.intro,
|
|
379
379
|
children: t("subagentIntro")
|
|
380
380
|
}),
|
|
381
|
-
|
|
381
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
382
382
|
className: SubagentCard_module_css_default.card,
|
|
383
|
-
children: [
|
|
383
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
384
384
|
className: SubagentCard_module_css_default.modeTabs,
|
|
385
385
|
role: "tablist",
|
|
386
386
|
"aria-label": t("subagentModes"),
|
|
387
387
|
children: state.entries.map((candidate, index) => {
|
|
388
388
|
const selected = candidate.ns === entry.ns;
|
|
389
|
-
return
|
|
389
|
+
return (0, react_jsx_runtime.jsxs)("button", {
|
|
390
390
|
ref: (element) => {
|
|
391
391
|
tabRefs.current[index] = element;
|
|
392
392
|
},
|
|
@@ -423,29 +423,29 @@ window.__ModuleLoader__.load({
|
|
|
423
423
|
setRequestedNamespace(next.ns);
|
|
424
424
|
tabRefs.current[nextIndex].focus();
|
|
425
425
|
},
|
|
426
|
-
children: [
|
|
426
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t(candidate.label) }), state.drafts[candidate.ns] !== void 0 ? (0, react_jsx_runtime.jsx)("span", {
|
|
427
427
|
className: SubagentCard_module_css_default.unsavedDot,
|
|
428
428
|
title: t("unsaved"),
|
|
429
429
|
"aria-hidden": "true"
|
|
430
430
|
}) : null]
|
|
431
431
|
}, candidate.ns);
|
|
432
432
|
})
|
|
433
|
-
}),
|
|
433
|
+
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
434
434
|
id: `${tabsId}-panel`,
|
|
435
435
|
className: SubagentCard_module_css_default.panel,
|
|
436
436
|
role: "tabpanel",
|
|
437
437
|
"aria-labelledby": `${tabsId}-tab-${entry.ns}`,
|
|
438
438
|
children: [
|
|
439
|
-
|
|
439
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
440
440
|
className: SubagentCard_module_css_default.modeHeader,
|
|
441
|
-
children: [
|
|
441
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
442
442
|
className: SubagentCard_module_css_default.modeCopy,
|
|
443
|
-
children: [
|
|
444
|
-
}),
|
|
443
|
+
children: [(0, react_jsx_runtime.jsx)("h3", { children: t(entry.label) }), (0, react_jsx_runtime.jsx)("p", { children: t(descriptionKey(entry.ns)) })]
|
|
444
|
+
}), (0, react_jsx_runtime.jsxs)("label", {
|
|
445
445
|
className: SubagentCard_module_css_default.switchLabel,
|
|
446
446
|
children: [
|
|
447
|
-
|
|
448
|
-
|
|
447
|
+
(0, react_jsx_runtime.jsx)("span", { children: t(enabledKey(entry.ns)) }),
|
|
448
|
+
(0, react_jsx_runtime.jsx)("input", {
|
|
449
449
|
className: SubagentCard_module_css_default.switchInput,
|
|
450
450
|
type: "checkbox",
|
|
451
451
|
role: "switch",
|
|
@@ -458,20 +458,20 @@ window.__ModuleLoader__.load({
|
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
}),
|
|
461
|
-
|
|
461
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
462
462
|
className: SubagentCard_module_css_default.switchTrack,
|
|
463
463
|
"aria-hidden": "true",
|
|
464
|
-
children:
|
|
464
|
+
children: (0, react_jsx_runtime.jsx)("span", {})
|
|
465
465
|
})
|
|
466
466
|
]
|
|
467
467
|
})]
|
|
468
468
|
}),
|
|
469
|
-
!state.writable ?
|
|
469
|
+
!state.writable ? (0, react_jsx_runtime.jsx)("p", {
|
|
470
470
|
className: SubagentCard_module_css_default.readOnly,
|
|
471
471
|
role: "status",
|
|
472
472
|
children: t("readOnly")
|
|
473
473
|
}) : null,
|
|
474
|
-
|
|
474
|
+
(0, react_jsx_runtime.jsx)(EntryEditor, {
|
|
475
475
|
entry,
|
|
476
476
|
value: draft,
|
|
477
477
|
writable: state.writable,
|
|
@@ -484,15 +484,15 @@ window.__ModuleLoader__.load({
|
|
|
484
484
|
props.reset(entry);
|
|
485
485
|
}
|
|
486
486
|
}, entry.ns),
|
|
487
|
-
|
|
487
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
488
488
|
className: SubagentCard_module_css_default.footer,
|
|
489
489
|
children: [
|
|
490
|
-
failed ?
|
|
490
|
+
failed ? (0, react_jsx_runtime.jsx)("p", {
|
|
491
491
|
className: SubagentCard_module_css_default.failed,
|
|
492
492
|
role: "status",
|
|
493
493
|
children: t("saveFailed")
|
|
494
494
|
}) : null,
|
|
495
|
-
|
|
495
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
496
496
|
type: "button",
|
|
497
497
|
className: SubagentCard_module_css_default.discard,
|
|
498
498
|
disabled: !dirty || state.saving,
|
|
@@ -501,7 +501,7 @@ window.__ModuleLoader__.load({
|
|
|
501
501
|
},
|
|
502
502
|
children: t("discard")
|
|
503
503
|
}),
|
|
504
|
-
|
|
504
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
505
505
|
type: "button",
|
|
506
506
|
className: SubagentCard_module_css_default.save,
|
|
507
507
|
disabled: blocked,
|
|
@@ -519,7 +519,7 @@ window.__ModuleLoader__.load({
|
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
//#endregion
|
|
522
|
-
//#region
|
|
522
|
+
//#region lib/types/client/subagent-store.js
|
|
523
523
|
/** Shared Settings-scope state for the unified subagent settings section. */
|
|
524
524
|
const SUBAGENT_NAMESPACES = ["subagent", "subagent-fork"];
|
|
525
525
|
const ENTRY_META = {
|
|
@@ -697,7 +697,8 @@ window.__ModuleLoader__.load({
|
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
699
|
//#endregion
|
|
700
|
-
//#region
|
|
700
|
+
//#region lib/types/client/locales.js
|
|
701
|
+
/** Typed dictionaries owned by the Subagent settings capability. */
|
|
701
702
|
/** English product copy. */
|
|
702
703
|
const en = {
|
|
703
704
|
nav: "Subagents",
|
|
@@ -773,7 +774,8 @@ window.__ModuleLoader__.load({
|
|
|
773
774
|
subagentProviderManaged: "由提供方管理"
|
|
774
775
|
};
|
|
775
776
|
//#endregion
|
|
776
|
-
//#region
|
|
777
|
+
//#region lib/types/client/index.js
|
|
778
|
+
/** Browser Settings section for the two shipped settings-backed delegation entries. */
|
|
777
779
|
const NS = "settings.subagents";
|
|
778
780
|
/** Required browser services. */
|
|
779
781
|
const inject = [
|
package/package.json
CHANGED
|
@@ -59,16 +59,16 @@
|
|
|
59
59
|
"name": "@sparkelf/dsh-plugin-subagent-settings",
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@deepseek-ai/cordis": ">=4.0.1",
|
|
62
|
-
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.1",
|
|
63
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.1",
|
|
64
|
-
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.1",
|
|
65
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1.6-alpha.1",
|
|
66
|
-
"@deepseek-ai/dsh-jobs": "^0.1.6-alpha.1",
|
|
67
|
-
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.1",
|
|
68
|
-
"@deepseek-ai/dsh-settings": "^0.1.6-alpha.1",
|
|
69
|
-
"@deepseek-ai/dsh-subagent": "^0.1.6-alpha.1",
|
|
70
|
-
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.1",
|
|
71
|
-
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.1"
|
|
62
|
+
"@deepseek-ai/dsh-agent": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-jobs": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-settings": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-subagent": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.6-alpha.1 || ^0.2.2-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-tools": "^0.1.6-alpha.1 || ^0.2.2-rc.2"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
},
|
|
85
85
|
"type": "module",
|
|
86
86
|
"types": "lib/types/index.d.ts",
|
|
87
|
-
"version": "0.2.
|
|
87
|
+
"version": "0.2.9-alpha.82"
|
|
88
88
|
}
|