dsh-edge 0.19.0 → 0.19.3
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/THIRD_PARTY_NOTICES.md +1991 -1741
- package/dist/assets/index-5SrrfWpU.js +127 -0
- package/dist/assets/index-BPHePDI_.css +1 -0
- package/dist/index.html +3 -3
- package/dist/plugins/@deepseek-ai/dsh-api-remotes/client.js +260 -20
- package/dist/plugins/@deepseek-ai/dsh-client-shortcuts/client.js +12 -7
- package/dist/plugins/@deepseek-ai/dsh-client-ui-agent-preset/client.js +9 -20
- package/dist/plugins/@deepseek-ai/dsh-client-ui-chat/client.js +90 -126
- package/dist/plugins/@deepseek-ai/dsh-client-ui-commands/client.js +111 -50
- package/dist/plugins/@deepseek-ai/dsh-client-ui-conversation/client.js +14 -1
- package/dist/plugins/@deepseek-ai/dsh-client-ui-deliverables/client.js +3 -3
- package/dist/plugins/@deepseek-ai/dsh-client-ui-model-selection/client.js +216 -63
- package/dist/plugins/@deepseek-ai/dsh-client-ui-open-in-app/client.js +37 -23
- package/dist/plugins/@deepseek-ai/dsh-client-ui-plan/client.js +4 -4
- package/dist/plugins/@deepseek-ai/dsh-client-ui-renderer/client.js +1 -1
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-general/client.js +7 -7
- package/dist/plugins/@deepseek-ai/dsh-client-ui-shortcuts/client.js +1 -1
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar/client.js +10 -15
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-files/client.js +9 -4
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-right/client.js +183 -156
- package/dist/plugins/@deepseek-ai/dsh-client-ui-skill/client.js +1 -1
- package/dist/plugins/@deepseek-ai/dsh-client-ui-theme/client.js +6 -6
- package/dist/plugins/@deepseek-ai/dsh-client-ui-tool/client.js +304 -54
- package/dist/plugins/@deepseek-ai/dsh-client-ui-user-questions/client.js +1257 -218
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workflow-run/client.js +1 -1
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workspace/client.js +3 -2
- package/package.json +93 -93
- package/worker/direct/index.js +945 -891
- package/worker/isolated/index.js +809 -755
- package/dist/assets/index-Cq6ljTv2.css +0 -1
- package/dist/assets/index-Dy0OhsZ5.js +0 -127
|
@@ -334,6 +334,27 @@ window.__ModuleLoader__.load({
|
|
|
334
334
|
return signal.reason instanceof Error ? signal.reason : /* @__PURE__ */ new Error("command directory wait aborted");
|
|
335
335
|
}
|
|
336
336
|
//#endregion
|
|
337
|
+
//#region lib/types/client/option-groups.js
|
|
338
|
+
/**
|
|
339
|
+
* Group rows by their caller-owned group name, without sorting groups or rows.
|
|
340
|
+
* Ungrouped rows occupy one block at their first occurrence.
|
|
341
|
+
* @param options - Options in display order.
|
|
342
|
+
* @returns groups in first-occurrence order, with original option objects.
|
|
343
|
+
*/
|
|
344
|
+
function groupOptions(options) {
|
|
345
|
+
const groups = /* @__PURE__ */ new Map();
|
|
346
|
+
for (const option of options) {
|
|
347
|
+
const name = option.group?.name;
|
|
348
|
+
const existing = groups.get(name);
|
|
349
|
+
if (existing !== void 0) existing.rows.push(option);
|
|
350
|
+
else groups.set(name, {
|
|
351
|
+
group: option.group,
|
|
352
|
+
rows: [option]
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
return [...groups.values()];
|
|
356
|
+
}
|
|
357
|
+
//#endregion
|
|
337
358
|
//#region lib/types/client/popup.js
|
|
338
359
|
/**
|
|
339
360
|
* Headless popupSelect shell state: one controller per client
|
|
@@ -352,6 +373,8 @@ window.__ModuleLoader__.load({
|
|
|
352
373
|
status: "pending",
|
|
353
374
|
options: [],
|
|
354
375
|
search: "",
|
|
376
|
+
searchLabels: null,
|
|
377
|
+
searchMode: "substring",
|
|
355
378
|
active: 0,
|
|
356
379
|
submitting: false,
|
|
357
380
|
confirming: null,
|
|
@@ -359,16 +382,23 @@ window.__ModuleLoader__.load({
|
|
|
359
382
|
error: null
|
|
360
383
|
};
|
|
361
384
|
/**
|
|
362
|
-
* Filter
|
|
363
|
-
*
|
|
385
|
+
* Filter rows using substring matching, or rank labels fuzzily within each group.
|
|
386
|
+
* Blank search keeps every row; fuzzy matching preserves group order.
|
|
364
387
|
* @param options - the loaded rows.
|
|
365
388
|
* @param search - the shell's search text.
|
|
366
|
-
* @
|
|
389
|
+
* @param mode - the command's policy; defaults to substring over label and detail.
|
|
390
|
+
* @returns the original option objects in the order shown and used for selection.
|
|
367
391
|
*/
|
|
368
|
-
function filterOptions(options, search) {
|
|
392
|
+
function filterOptions(options, search, mode = "substring") {
|
|
369
393
|
const query = search.trim().toLowerCase();
|
|
370
|
-
|
|
371
|
-
|
|
394
|
+
const groups = groupOptions(options);
|
|
395
|
+
const ordered = groups.some((group) => group.group !== void 0) ? groups.flatMap((group) => group.rows) : options;
|
|
396
|
+
if (query === "") return ordered;
|
|
397
|
+
if (mode === "fuzzy-label") return groups.flatMap((group) => (0, _deepseek_ai_dsh_client_ui_primitives.rankByName)(group.rows.map((option) => ({
|
|
398
|
+
name: option.label,
|
|
399
|
+
option
|
|
400
|
+
})), query).map((row) => row.option));
|
|
401
|
+
return ordered.filter((o) => o.label.toLowerCase().includes(query) || (o.detail?.toLowerCase().includes(query) ?? false));
|
|
372
402
|
}
|
|
373
403
|
/**
|
|
374
404
|
* Highlight index for a freshly loaded row list: the row marked as the current
|
|
@@ -377,10 +407,11 @@ window.__ModuleLoader__.load({
|
|
|
377
407
|
* made without looking confirms that value instead of the topmost row.
|
|
378
408
|
* @param options - the loaded rows.
|
|
379
409
|
* @param search - the shell's live filter text (non-empty after a retry).
|
|
410
|
+
* @param mode - the command's search policy.
|
|
380
411
|
* @returns index into the filtered rows.
|
|
381
412
|
*/
|
|
382
|
-
function currentIndex(options, search) {
|
|
383
|
-
const at = filterOptions(options, search).findIndex((option) => option.active === true);
|
|
413
|
+
function currentIndex(options, search, mode) {
|
|
414
|
+
const at = filterOptions(options, search, mode).findIndex((option) => option.active === true);
|
|
384
415
|
return at === -1 ? 0 : at;
|
|
385
416
|
}
|
|
386
417
|
/** The shell's error-strip line for a settlement failure. */
|
|
@@ -414,6 +445,7 @@ window.__ModuleLoader__.load({
|
|
|
414
445
|
* @param segment - open-time token segment snapshot for post-select consumption.
|
|
415
446
|
*/
|
|
416
447
|
open(command, spec, context, segment) {
|
|
448
|
+
const searchLabels = spec.searchLabels?.() ?? null;
|
|
417
449
|
this.binding?.abort.abort();
|
|
418
450
|
const binding = {
|
|
419
451
|
command,
|
|
@@ -426,7 +458,9 @@ window.__ModuleLoader__.load({
|
|
|
426
458
|
this.state.set({
|
|
427
459
|
...CLOSED,
|
|
428
460
|
open: true,
|
|
429
|
-
command
|
|
461
|
+
command,
|
|
462
|
+
searchLabels,
|
|
463
|
+
searchMode: spec.searchMode ?? "substring"
|
|
430
464
|
});
|
|
431
465
|
this.load(binding);
|
|
432
466
|
}
|
|
@@ -439,7 +473,7 @@ window.__ModuleLoader__.load({
|
|
|
439
473
|
...current,
|
|
440
474
|
status: "ready",
|
|
441
475
|
options,
|
|
442
|
-
active: currentIndex(options, current.search),
|
|
476
|
+
active: currentIndex(options, current.search, current.searchMode),
|
|
443
477
|
error: null
|
|
444
478
|
});
|
|
445
479
|
}, (error) => {
|
|
@@ -489,7 +523,7 @@ window.__ModuleLoader__.load({
|
|
|
489
523
|
move(dir) {
|
|
490
524
|
const s = this.state.getSnapshot();
|
|
491
525
|
if (!s.open || s.status !== "ready" || s.submitting || s.confirming !== null) return;
|
|
492
|
-
const rows = filterOptions(s.options, s.search);
|
|
526
|
+
const rows = filterOptions(s.options, s.search, s.searchMode);
|
|
493
527
|
if (rows.length === 0) return;
|
|
494
528
|
const active = (s.active + dir + rows.length) % rows.length;
|
|
495
529
|
this.state.set({
|
|
@@ -505,7 +539,7 @@ window.__ModuleLoader__.load({
|
|
|
505
539
|
highlight(index) {
|
|
506
540
|
const s = this.state.getSnapshot();
|
|
507
541
|
if (!s.open || s.status !== "ready" || s.submitting || s.confirming !== null) return;
|
|
508
|
-
if (index < 0 || index >= filterOptions(s.options, s.search).length || index === s.active) return;
|
|
542
|
+
if (index < 0 || index >= filterOptions(s.options, s.search, s.searchMode).length || index === s.active) return;
|
|
509
543
|
this.state.set({
|
|
510
544
|
...s,
|
|
511
545
|
active: index
|
|
@@ -525,7 +559,7 @@ window.__ModuleLoader__.load({
|
|
|
525
559
|
const binding = this.binding;
|
|
526
560
|
const s = this.state.getSnapshot();
|
|
527
561
|
if (binding === null || !s.open || s.status !== "ready" || s.submitting || s.confirming !== null) return;
|
|
528
|
-
const option = filterOptions(s.options, s.search)[index];
|
|
562
|
+
const option = filterOptions(s.options, s.search, s.searchMode)[index];
|
|
529
563
|
if (option === void 0) return;
|
|
530
564
|
if (option.confirmation !== void 0) {
|
|
531
565
|
this.state.set({
|
|
@@ -1129,7 +1163,7 @@ window.__ModuleLoader__.load({
|
|
|
1129
1163
|
}
|
|
1130
1164
|
//#endregion
|
|
1131
1165
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-commands/src/client/PopupSelectView.module.css.mjs
|
|
1132
|
-
const css = ".mufS8W_card{z-index:100;--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);min-width:min(220px,100%);max-width:100%;max-height:320px;box-shadow:var(--dsw-elevation-prominent);border:0;outline:none;flex-direction:column;padding:3px;display:flex;position:absolute;bottom:calc(100% + 4px);left:0;overflow:hidden}.mufS8W_viewport{flex-direction:column;min-height:0;display:flex;overflow-y:auto}.mufS8W_row{border-radius:var(--dsw-radius-md);cursor:pointer;color:var(--dsw-alias-label-primary);align-items:center;gap:6px;padding:5px 7px;font-size:12px;display:flex}.mufS8W_rowActive{background:var(--dsw-alias-interactive-bg-hover)}.mufS8W_label{flex:0 auto;align-items:baseline;gap:4px;min-width:0;display:flex}.mufS8W_labelText{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.mufS8W_badge{color:var(--dsw-alias-label-tertiary);letter-spacing:.2px;flex:none;align-self:flex-start;margin-top:-1px;font-size:8px;font-weight:600;line-height:10px}.mufS8W_detail{min-width:0;color:var(--dsw-alias-label-tertiary);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:11px;overflow:hidden}.mufS8W_check{color:var(--dsw-alias-label-primary);flex:none;margin-left:auto;display:inline-flex}.mufS8W_check svg{width:14px;height:14px}.mufS8W_status{color:var(--dsw-alias-label-tertiary);padding:7px 8px;font-size:12px}.mufS8W_search{border
|
|
1166
|
+
const css = ".mufS8W_card{box-sizing:border-box;z-index:100;--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);min-width:min(220px,100%);max-width:100%;max-height:320px;box-shadow:var(--dsw-elevation-prominent);border:0;outline:none;flex-direction:column;padding:3px;display:flex;position:absolute;bottom:calc(100% + 4px);left:0;right:0;overflow:hidden}.mufS8W_viewport{flex-direction:column;min-height:0;display:flex;overflow-y:auto}.mufS8W_row{border-radius:var(--dsw-radius-md);cursor:pointer;color:var(--dsw-alias-label-primary);align-items:center;gap:6px;padding:5px 7px;font-size:12px;display:flex}.mufS8W_rowActive{background:var(--dsw-alias-interactive-bg-hover)}.mufS8W_label{flex:0 auto;align-items:baseline;gap:4px;min-width:0;display:flex}.mufS8W_labelText{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.mufS8W_badge{color:var(--dsw-alias-label-tertiary);letter-spacing:.2px;flex:none;align-self:flex-start;margin-top:-1px;font-size:8px;font-weight:600;line-height:10px}.mufS8W_detail{min-width:0;color:var(--dsw-alias-label-tertiary);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:11px;overflow:hidden}.mufS8W_check{color:var(--dsw-alias-label-primary);flex:none;margin-left:auto;display:inline-flex}.mufS8W_check svg{width:14px;height:14px}.mufS8W_status{color:var(--dsw-alias-label-tertiary);padding:7px 8px;font-size:12px}.mufS8W_search{border-radius:var(--dsw-radius-md);color:var(--dsw-alias-label-primary);background:0 0;border:.5px solid #0000;outline:none;margin:2px 2px 3px;padding:5px 7px;font-size:12px}.mufS8W_error{color:var(--dsw-alias-state-error-primary);align-items:center;gap:6px;padding:5px 7px;font-size:11px;display:flex}.mufS8W_errorText{text-overflow:ellipsis;flex:1;overflow:hidden}.mufS8W_retry{border:.5px solid var(--dsw-alias-border-inverted);border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;padding:2px 7px;font-size:11px}";
|
|
1133
1167
|
const tagId = "@deepseek-ai/dsh-client-ui-commands/PopupSelectView.module.css";
|
|
1134
1168
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
1135
1169
|
const tag = document.createElement("style");
|
|
@@ -1179,12 +1213,33 @@ window.__ModuleLoader__.load({
|
|
|
1179
1213
|
const state = (0, react.useSyncExternalStore)((fn) => popup.state.subscribe(fn), () => popup.state.getSnapshot());
|
|
1180
1214
|
const cardRef = (0, react.useRef)(null);
|
|
1181
1215
|
const searchRef = (0, react.useRef)(null);
|
|
1216
|
+
const viewportRef = (0, react.useRef)(null);
|
|
1217
|
+
const rows = (0, react.useMemo)(() => filterOptions(state.options, state.search, state.searchMode), [
|
|
1218
|
+
state.options,
|
|
1219
|
+
state.search,
|
|
1220
|
+
state.searchMode
|
|
1221
|
+
]);
|
|
1222
|
+
const groups = (0, react.useMemo)(() => groupOptions(rows), [rows]);
|
|
1223
|
+
(0, react.useEffect)(() => {
|
|
1224
|
+
const viewport = viewportRef.current;
|
|
1225
|
+
if (viewport === null) return;
|
|
1226
|
+
return (0, _deepseek_ai_dsh_client_ui_primitives.observeStickyMenuGroups)(viewport);
|
|
1227
|
+
}, [
|
|
1228
|
+
state.open,
|
|
1229
|
+
state.status,
|
|
1230
|
+
state.confirming,
|
|
1231
|
+
groups
|
|
1232
|
+
]);
|
|
1182
1233
|
const maxHeight = (0, _deepseek_ai_dsh_client_ui_primitives.useAnchoredMaxHeight)(cardRef, MAX_HEIGHT, state);
|
|
1183
1234
|
const active = state.open ? state.active : null;
|
|
1184
1235
|
(0, react.useEffect)(() => {
|
|
1185
1236
|
if (active === null) return;
|
|
1186
1237
|
cardRef.current?.querySelector("[aria-selected=\"true\"]")?.scrollIntoView({ block: "nearest" });
|
|
1187
|
-
}, [
|
|
1238
|
+
}, [
|
|
1239
|
+
active,
|
|
1240
|
+
rows,
|
|
1241
|
+
state.confirming
|
|
1242
|
+
]);
|
|
1188
1243
|
(0, react.useEffect)(() => {
|
|
1189
1244
|
if (!state.open || state.confirming !== null) return;
|
|
1190
1245
|
const onPointerDown = (ev) => {
|
|
@@ -1204,8 +1259,8 @@ window.__ModuleLoader__.load({
|
|
|
1204
1259
|
if (state.open && state.confirming === null) searchRef.current?.focus();
|
|
1205
1260
|
}, [state.open, state.confirming]);
|
|
1206
1261
|
if (!state.open) return null;
|
|
1207
|
-
const rows = filterOptions(state.options, state.search);
|
|
1208
1262
|
const confirmation = state.confirming?.confirmation;
|
|
1263
|
+
const emptyLabel = state.searchLabels === null ? t("status.empty") : state.options.length === 0 ? state.searchLabels.empty : state.searchLabels.noResults;
|
|
1209
1264
|
const onKeyDown = (ev) => {
|
|
1210
1265
|
switch (ev.key) {
|
|
1211
1266
|
case "ArrowDown":
|
|
@@ -1233,6 +1288,39 @@ window.__ModuleLoader__.load({
|
|
|
1233
1288
|
default:
|
|
1234
1289
|
}
|
|
1235
1290
|
};
|
|
1291
|
+
const renderOption = (option, index) => (0, react_jsx_runtime.jsxs)("div", {
|
|
1292
|
+
role: "option",
|
|
1293
|
+
"aria-selected": index === state.active,
|
|
1294
|
+
"aria-label": option.badge === void 0 ? void 0 : `${option.label} ${option.badge}`,
|
|
1295
|
+
className: clsx(PopupSelectView_module_css_default.row, index === state.active && PopupSelectView_module_css_default.rowActive),
|
|
1296
|
+
onClick: () => {
|
|
1297
|
+
popup.select(index);
|
|
1298
|
+
},
|
|
1299
|
+
onMouseEnter: () => {
|
|
1300
|
+
popup.highlight(index);
|
|
1301
|
+
},
|
|
1302
|
+
children: [
|
|
1303
|
+
(0, react_jsx_runtime.jsxs)("span", {
|
|
1304
|
+
className: PopupSelectView_module_css_default.label,
|
|
1305
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1306
|
+
className: PopupSelectView_module_css_default.labelText,
|
|
1307
|
+
children: option.label
|
|
1308
|
+
}), option.badge !== void 0 && (0, react_jsx_runtime.jsx)("sup", {
|
|
1309
|
+
className: PopupSelectView_module_css_default.badge,
|
|
1310
|
+
children: option.badge
|
|
1311
|
+
})]
|
|
1312
|
+
}),
|
|
1313
|
+
option.detail !== void 0 && (0, react_jsx_runtime.jsx)("span", {
|
|
1314
|
+
className: PopupSelectView_module_css_default.detail,
|
|
1315
|
+
children: option.detail
|
|
1316
|
+
}),
|
|
1317
|
+
option.active === true && (0, react_jsx_runtime.jsx)("span", {
|
|
1318
|
+
className: PopupSelectView_module_css_default.check,
|
|
1319
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckOutlineRegular, {})
|
|
1320
|
+
})
|
|
1321
|
+
]
|
|
1322
|
+
}, option.id);
|
|
1323
|
+
let optionIndex = 0;
|
|
1236
1324
|
return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [state.confirming === null && (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.MenuSurface, {
|
|
1237
1325
|
ref: cardRef,
|
|
1238
1326
|
className: PopupSelectView_module_css_default.card,
|
|
@@ -1244,7 +1332,7 @@ window.__ModuleLoader__.load({
|
|
|
1244
1332
|
ref: searchRef,
|
|
1245
1333
|
className: PopupSelectView_module_css_default.search,
|
|
1246
1334
|
type: "text",
|
|
1247
|
-
placeholder: t("search.placeholder"),
|
|
1335
|
+
placeholder: state.searchLabels?.placeholder ?? t("search.placeholder"),
|
|
1248
1336
|
"aria-label": t("search.aria"),
|
|
1249
1337
|
value: state.search,
|
|
1250
1338
|
readOnly: state.submitting,
|
|
@@ -1277,44 +1365,17 @@ window.__ModuleLoader__.load({
|
|
|
1277
1365
|
}),
|
|
1278
1366
|
state.status === "ready" && rows.length === 0 && (0, react_jsx_runtime.jsx)("div", {
|
|
1279
1367
|
className: PopupSelectView_module_css_default.status,
|
|
1280
|
-
children:
|
|
1368
|
+
children: emptyLabel
|
|
1281
1369
|
}),
|
|
1282
1370
|
state.status === "ready" && (0, react_jsx_runtime.jsx)("div", {
|
|
1371
|
+
ref: viewportRef,
|
|
1283
1372
|
role: "listbox",
|
|
1284
1373
|
"aria-label": t("listbox.aria", { command: String(state.command) }),
|
|
1285
1374
|
className: PopupSelectView_module_css_default.viewport,
|
|
1286
|
-
children:
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
className: clsx(PopupSelectView_module_css_default.row, index === state.active && PopupSelectView_module_css_default.rowActive),
|
|
1291
|
-
onClick: () => {
|
|
1292
|
-
popup.select(index);
|
|
1293
|
-
},
|
|
1294
|
-
onMouseEnter: () => {
|
|
1295
|
-
popup.highlight(index);
|
|
1296
|
-
},
|
|
1297
|
-
children: [
|
|
1298
|
-
(0, react_jsx_runtime.jsxs)("span", {
|
|
1299
|
-
className: PopupSelectView_module_css_default.label,
|
|
1300
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1301
|
-
className: PopupSelectView_module_css_default.labelText,
|
|
1302
|
-
children: option.label
|
|
1303
|
-
}), option.badge !== void 0 && (0, react_jsx_runtime.jsx)("sup", {
|
|
1304
|
-
className: PopupSelectView_module_css_default.badge,
|
|
1305
|
-
children: option.badge
|
|
1306
|
-
})]
|
|
1307
|
-
}),
|
|
1308
|
-
option.detail !== void 0 && (0, react_jsx_runtime.jsx)("span", {
|
|
1309
|
-
className: PopupSelectView_module_css_default.detail,
|
|
1310
|
-
children: option.detail
|
|
1311
|
-
}),
|
|
1312
|
-
option.active === true && (0, react_jsx_runtime.jsx)("span", {
|
|
1313
|
-
className: PopupSelectView_module_css_default.check,
|
|
1314
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckOutlineRegular, {})
|
|
1315
|
-
})
|
|
1316
|
-
]
|
|
1317
|
-
}, option.id))
|
|
1375
|
+
children: groups.map(({ group, rows: groupRows }) => group === void 0 ? (0, react_jsx_runtime.jsx)(react.Fragment, { children: groupRows.map((option) => renderOption(option, optionIndex++)) }, "ungrouped") : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuGroup, {
|
|
1376
|
+
label: group.label,
|
|
1377
|
+
children: groupRows.map((option) => renderOption(option, optionIndex++))
|
|
1378
|
+
}, `group:${group.name}`))
|
|
1318
1379
|
})
|
|
1319
1380
|
]
|
|
1320
1381
|
}), confirmation !== void 0 && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.RiskConfirmation, {
|
|
@@ -14748,6 +14748,12 @@ window.__ModuleLoader__.load({
|
|
|
14748
14748
|
"command.attachmentsUnsupported": "/{command} 不接受附件,请先移除附件",
|
|
14749
14749
|
"ask.rowTitle": "提问",
|
|
14750
14750
|
"ask.waiting": "等待回答",
|
|
14751
|
+
"ask.pending": "已继续工作,仍可回答",
|
|
14752
|
+
"ask.pendingDetail": "等待中的问题仍可在输入框中回答",
|
|
14753
|
+
"ask.reopen": "回答",
|
|
14754
|
+
"ask.review": "查看回答",
|
|
14755
|
+
"ask.closed": "已结束",
|
|
14756
|
+
"ask.closedDetail": "该问题已结束,结果见下方对话",
|
|
14751
14757
|
"ask.cancelled": "已取消",
|
|
14752
14758
|
"ask.cancelledDetail": "本轮已取消,未提交回答",
|
|
14753
14759
|
"ask.interrupted": "已中断",
|
|
@@ -15114,6 +15120,12 @@ window.__ModuleLoader__.load({
|
|
|
15114
15120
|
"command.attachmentsUnsupported": "/{command} does not accept attachments; remove them first",
|
|
15115
15121
|
"ask.rowTitle": "Ask question",
|
|
15116
15122
|
"ask.waiting": "waiting",
|
|
15123
|
+
"ask.pending": "continued; answer still available",
|
|
15124
|
+
"ask.pendingDetail": "These pending questions remain answerable from the composer.",
|
|
15125
|
+
"ask.reopen": "Answer",
|
|
15126
|
+
"ask.review": "View answers",
|
|
15127
|
+
"ask.closed": "closed",
|
|
15128
|
+
"ask.closedDetail": "This question is closed; its outcome is in the conversation below.",
|
|
15117
15129
|
"ask.cancelled": "cancelled",
|
|
15118
15130
|
"ask.cancelledDetail": "This question set was cancelled before answers were submitted.",
|
|
15119
15131
|
"ask.interrupted": "interrupted",
|
|
@@ -15986,6 +15998,7 @@ window.__ModuleLoader__.load({
|
|
|
15986
15998
|
}
|
|
15987
15999
|
//#endregion
|
|
15988
16000
|
//#region lib/types/client/skeleton/ConversationMainPanel.js
|
|
16001
|
+
const CONTENT_SLOTS = { widthControls: ConversationWidthControls };
|
|
15989
16002
|
/**
|
|
15990
16003
|
* Render the existing main Conversation frame around the extracted content.
|
|
15991
16004
|
* @param props - the original `main.conversation` Slot props.
|
|
@@ -16009,7 +16022,7 @@ window.__ModuleLoader__.load({
|
|
|
16009
16022
|
variant: "main",
|
|
16010
16023
|
phase,
|
|
16011
16024
|
hero
|
|
16012
|
-
}, { slots:
|
|
16025
|
+
}, { slots: CONTENT_SLOTS })]
|
|
16013
16026
|
});
|
|
16014
16027
|
}
|
|
16015
16028
|
//#endregion
|
|
@@ -469,7 +469,7 @@ window.__ModuleLoader__.load({
|
|
|
469
469
|
};
|
|
470
470
|
//#endregion
|
|
471
471
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-deliverables/src/client/PresentRow.module.css.mjs
|
|
472
|
-
const css$4 = "._93YTAG_summary{min-width:0;color:
|
|
472
|
+
const css$4 = "._93YTAG_summary{min-width:0;color:inherit;align-items:center;gap:8px;margin-left:8px;font-size:12px;display:flex}._93YTAG_summary>:first-child{flex-shrink:0}._93YTAG_paths{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._93YTAG_output{border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;padding:12px;font-size:12px}._93YTAG_inspect{color:var(--dsw-alias-link);font:inherit;cursor:pointer;background:0 0;border:none;align-self:flex-start;padding:4px 0;font-size:12px}";
|
|
473
473
|
const tagId$4 = "@deepseek-ai/dsh-client-ui-deliverables/PresentRow.module.css";
|
|
474
474
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
475
475
|
const tag = document.createElement("style");
|
|
@@ -1289,7 +1289,7 @@ window.__ModuleLoader__.load({
|
|
|
1289
1289
|
}
|
|
1290
1290
|
//#endregion
|
|
1291
1291
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-deliverables/src/client/ChangedFiles.module.css.mjs
|
|
1292
|
-
const css$2 = ".hz8-rW_card{--changes-fill:var(--dsw-static-neutral-50);--changes-hover:var(--dsw-static-neutral-100);border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);min-width:0;color:var(--dsw-alias-label-primary);flex-direction:column;margin-top:4px;display:flex;overflow:hidden}.hz8-rW_card[data-single=true]{border-color:var(--dsw-alias-border-l1)}body[data-ds-dark-theme] .hz8-rW_card{--changes-fill:var(--dsw-static-neutral-850);--changes-hover:var(--dsw-static-neutral-800)}.hz8-rW_header{box-sizing:border-box;background:var(--changes-fill);width:100%;min-width:0;height:60px;color:inherit;font:inherit;text-align:left;border:0;align-items:center;gap:10px;margin:0;padding:8px 10px;display:flex}button.hz8-rW_header{cursor:pointer;transition:background-color .12s}button.hz8-rW_header:hover:not(:disabled),button.hz8-rW_header:focus-visible{background:var(--changes-hover)}button.hz8-rW_header:focus-visible{box-shadow:inset 0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}button.hz8-rW_header:disabled{cursor:progress}.hz8-rW_tile{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l1);
|
|
1292
|
+
const css$2 = ".hz8-rW_card{--changes-fill:var(--dsw-static-neutral-50);--changes-hover:var(--dsw-static-neutral-100);border:.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);min-width:0;color:var(--dsw-alias-label-primary);flex-direction:column;margin-top:4px;display:flex;overflow:hidden}.hz8-rW_card[data-single=true]{border-color:var(--dsw-alias-border-l1)}body[data-ds-dark-theme] .hz8-rW_card{--changes-fill:var(--dsw-static-neutral-850);--changes-hover:var(--dsw-static-neutral-800)}.hz8-rW_header{box-sizing:border-box;background:var(--changes-fill);width:100%;min-width:0;height:60px;color:inherit;font:inherit;text-align:left;border:0;align-items:center;gap:10px;margin:0;padding:8px 10px;display:flex}button.hz8-rW_header{cursor:pointer;transition:background-color .12s}button.hz8-rW_header:hover:not(:disabled),button.hz8-rW_header:focus-visible{background:var(--changes-hover)}button.hz8-rW_header:focus-visible{box-shadow:inset 0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}button.hz8-rW_header:disabled{cursor:progress}.hz8-rW_tile{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l1);background:color-mix(in srgb, var(--dsw-static-neutral-00) 50%, transparent);border-radius:10px;flex:none;place-items:center;width:40px;height:40px;display:grid}body[data-ds-dark-theme] .hz8-rW_tile{background:color-mix(in srgb, var(--dsw-static-neutral-00) 5%, transparent)}.hz8-rW_titles{flex-direction:column;flex:1;min-width:0;display:flex}.hz8-rW_title{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.hz8-rW_stat{color:var(--dsw-alias-label-tertiary);font-size:10px;line-height:16px;display:inline-flex}.hz8-rW_statCounts{font-family:var(--ds-font-family-code);gap:6px;display:inline-flex}.hz8-rW_previewHint,.hz8-rW_header:hover .hz8-rW_statCounts,.hz8-rW_header:focus-visible .hz8-rW_statCounts{display:none}.hz8-rW_header:hover .hz8-rW_previewHint,.hz8-rW_header:focus-visible .hz8-rW_previewHint{display:inline}.hz8-rW_stat[data-error=true],.hz8-rW_counts[data-error=true]{color:var(--dsw-alias-state-error-primary)}.hz8-rW_added{color:var(--dsw-alias-state-success-primary)}.hz8-rW_deleted{color:var(--dsw-alias-state-error-primary)}.hz8-rW_list{border-top:.5px solid var(--dsw-alias-border-l2);margin:0;padding:0;list-style:none}.hz8-rW_row{box-sizing:border-box;width:100%;min-width:0;min-height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;font-family:var(--ds-font-family-code);text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:10px;margin:0;padding:7px 18px 7px 14px;font-size:11px;line-height:18px;display:flex}.hz8-rW_row:hover:not(:disabled),.hz8-rW_row:focus-visible{background:var(--dsw-alias-interactive-bg-hover)}.hz8-rW_row:focus-visible{box-shadow:inset 0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}.hz8-rW_row:disabled{cursor:progress}.hz8-rW_path{min-width:0;font-family:var(--dsw-font-family);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.hz8-rW_counts{white-space:nowrap;color:var(--dsw-alias-label-tertiary);flex:none;gap:6px;display:inline-flex}.hz8-rW_toggle{box-sizing:border-box;width:100%;color:var(--dsw-alias-label-tertiary);cursor:pointer;font:inherit;text-align:left;background:0 0;border:0;justify-content:flex-start;align-items:center;gap:4px;margin:0;padding:10px 18px 10px 14px;font-size:12px;line-height:18px;display:inline-flex}.hz8-rW_toggle:hover{background:var(--dsw-alias-interactive-bg-hover)}.hz8-rW_toggle svg{flex:none;width:14px;height:14px}@media (pointer:coarse){.hz8-rW_row,.hz8-rW_toggle{min-height:44px}}.hz8-rW_preview{max-height:100%;overflow:hidden}.hz8-rW_previewPath{min-width:0;color:var(--dsw-alias-label-tertiary);font-family:var(--ds-font-family-code);white-space:nowrap;flex:auto;font-size:12px;line-height:20px;overflow:auto hidden}.hz8-rW_preview [data-diff-note=metadata],.hz8-rW_preview [data-diff-hunk-header]{display:none}";
|
|
1293
1293
|
const tagId$2 = "@deepseek-ai/dsh-client-ui-deliverables/ChangedFiles.module.css";
|
|
1294
1294
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
1295
1295
|
const tag = document.createElement("style");
|
|
@@ -1499,7 +1499,7 @@ window.__ModuleLoader__.load({
|
|
|
1499
1499
|
}
|
|
1500
1500
|
//#endregion
|
|
1501
1501
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-deliverables/src/client/Deliverables.module.css.mjs
|
|
1502
|
-
const css$1 = ".nyYjTG_root{--deliverable-fill:var(--dsw-static-neutral-50);--deliverable-hover:var(--dsw-static-neutral-100);flex-direction:column;gap:16px;min-width:0;margin-top:4px;display:flex;container-type:inline-size}.nyYjTG_root[data-after-changes=true]{margin-top:0}body[data-ds-dark-theme] .nyYjTG_root{--deliverable-fill:var(--dsw-static-neutral-850);--deliverable-hover:var(--dsw-static-neutral-800)}.nyYjTG_hostStatus{color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nyYjTG_presented{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;display:grid}.nyYjTG_presented[data-single=true]{grid-template-columns:minmax(0,1fr)}.nyYjTG_file{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-lg);background:var(--deliverable-fill);min-width:0;height:60px;color:var(--dsw-alias-label-primary);align-items:center;gap:10px;padding:8px 10px;transition:background-color .12s;display:flex;position:relative;overflow:hidden}.nyYjTG_file:hover{background:var(--deliverable-hover)}.nyYjTG_cardPreview{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;width:100%;padding:0;position:absolute;inset:0}.nyYjTG_cardPreview:focus-visible{box-shadow:inset 0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}.nyYjTG_fileIcon{z-index:2;box-sizing:border-box;pointer-events:none;border:.5px solid var(--dsw-alias-border-l1);
|
|
1502
|
+
const css$1 = ".nyYjTG_root{--deliverable-fill:var(--dsw-static-neutral-50);--deliverable-hover:var(--dsw-static-neutral-100);flex-direction:column;gap:16px;min-width:0;margin-top:4px;display:flex;container-type:inline-size}.nyYjTG_root[data-after-changes=true]{margin-top:0}body[data-ds-dark-theme] .nyYjTG_root{--deliverable-fill:var(--dsw-static-neutral-850);--deliverable-hover:var(--dsw-static-neutral-800)}.nyYjTG_hostStatus{color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;font-size:12px;line-height:18px;display:flex}.nyYjTG_presented{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0;display:grid}.nyYjTG_presented[data-single=true]{grid-template-columns:minmax(0,1fr)}.nyYjTG_file{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-lg);background:var(--deliverable-fill);min-width:0;height:60px;color:var(--dsw-alias-label-primary);align-items:center;gap:10px;padding:8px 10px;transition:background-color .12s;display:flex;position:relative;overflow:hidden}.nyYjTG_file:hover{background:var(--deliverable-hover)}.nyYjTG_cardPreview{z-index:1;border-radius:inherit;cursor:pointer;background:0 0;border:0;width:100%;padding:0;position:absolute;inset:0}.nyYjTG_cardPreview:focus-visible{box-shadow:inset 0 0 0 2px var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline:none}.nyYjTG_fileIcon{z-index:2;box-sizing:border-box;pointer-events:none;border:.5px solid var(--dsw-alias-border-l1);background:color-mix(in srgb, var(--dsw-static-neutral-00) 50%, transparent);width:40px;height:40px;color:var(--dsw-alias-link);border-radius:10px;flex:none;place-items:center;display:grid;position:relative;overflow:hidden}body[data-ds-dark-theme] .nyYjTG_fileIcon{background:color-mix(in srgb, var(--dsw-static-neutral-00) 5%, transparent)}.nyYjTG_fileBody{z-index:2;pointer-events:none;flex:1;justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex;position:relative}.nyYjTG_details{flex-direction:column;flex:1;justify-content:center;gap:2px;min-width:0;display:flex}.nyYjTG_fileName{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:20px;overflow:hidden}.nyYjTG_description{color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:400;line-height:16px;overflow:hidden}.nyYjTG_description[data-error=true]{color:var(--dsw-alias-state-error-primary)}.nyYjTG_previewHint,.nyYjTG_file:hover .nyYjTG_description:not([role=status]) .nyYjTG_secondaryText{display:none}.nyYjTG_file:hover .nyYjTG_description:not([role=status]) .nyYjTG_previewHint{display:inline}.nyYjTG_toggle{border-radius:var(--dsw-radius-sm);min-width:0;color:var(--dsw-alias-label-tertiary);cursor:pointer;font:inherit;background:0 0;border:0;align-self:center;align-items:center;gap:4px;padding:1px 11px;font-size:12px;line-height:18px;display:inline-flex}.nyYjTG_toggle:hover{background:var(--dsw-alias-interactive-bg-hover)}.nyYjTG_toggle svg{flex:none;width:14px;height:14px}@container (width<=620px){.nyYjTG_presented{grid-template-columns:minmax(0,1fr)}}.nyYjTG_actions{pointer-events:auto;flex:none;display:inline-flex}.nyYjTG_secondaryText[data-success]{animation-name:nyYjTG_success-fade;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes nyYjTG_success-fade{to{opacity:0}}@media (prefers-reduced-motion:reduce){.nyYjTG_secondaryText[data-success]{animation-name:none}}";
|
|
1503
1503
|
const tagId$1 = "@deepseek-ai/dsh-client-ui-deliverables/Deliverables.module.css";
|
|
1504
1504
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
1505
1505
|
const tag = document.createElement("style");
|