dsh-task-dispatch-table 0.1.3 → 0.1.9
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 +29 -14
- package/dist/client.js.map +1 -1
- package/dist/receipt.js +13 -12
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -507,7 +507,7 @@ window.__ModuleLoader__.load({
|
|
|
507
507
|
explorerCollapse: "收起目录",
|
|
508
508
|
explorerEnter: "进入",
|
|
509
509
|
colOutputs: "产出",
|
|
510
|
-
procFilesTitle: "
|
|
510
|
+
procFilesTitle: "其他产出 · {count} 项",
|
|
511
511
|
deliverRowTitle: "交付文件",
|
|
512
512
|
deliverRowPreparing: "准备交付",
|
|
513
513
|
deliverRowRunning: "正在交付",
|
|
@@ -1176,7 +1176,7 @@ window.__ModuleLoader__.load({
|
|
|
1176
1176
|
explorerCollapse: "Collapse directory",
|
|
1177
1177
|
explorerEnter: "Open",
|
|
1178
1178
|
colOutputs: "Outputs",
|
|
1179
|
-
procFilesTitle: "
|
|
1179
|
+
procFilesTitle: "Other outputs · {count}",
|
|
1180
1180
|
deliverRowTitle: "Deliver files",
|
|
1181
1181
|
deliverRowPreparing: "Preparing delivery",
|
|
1182
1182
|
deliverRowRunning: "Delivering",
|
|
@@ -50178,9 +50178,11 @@ body[data-ds-dark-theme]{
|
|
|
50178
50178
|
.dsh-tdt-sv-crumbs-menu-wrap{position:relative;flex:none;display:inline-flex;}
|
|
50179
50179
|
.dsh-tdt-sv-crumbs-region{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:2px;overflow:hidden;}
|
|
50180
50180
|
.dsh-tdt-sv-crumbs-measure{position:absolute;top:0;left:0;display:inline-flex;align-items:center;gap:2px;visibility:hidden;pointer-events:none;white-space:nowrap;}
|
|
50181
|
-
.dsh-tdt-sv-crumb{appearance:none;background:0 0;border:none;padding:2px 4px;border-radius:var(--tdt-radius-sm,6px);font:inherit;font-size:var(--tdt-font-sm);line-height:var(--tdt-line-sm);color:var(--tdt-fg-2,rgba(128,128,128,.95));cursor:pointer;
|
|
50181
|
+
.dsh-tdt-sv-crumb{appearance:none;background:0 0;border:none;padding:2px 4px;border-radius:var(--tdt-radius-sm,6px);font:inherit;font-size:var(--tdt-font-sm);line-height:var(--tdt-line-sm);color:var(--tdt-fg-2,rgba(128,128,128,.95));cursor:pointer;display:inline-flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;}
|
|
50182
50182
|
.dsh-tdt-sv-crumb:hover{background:var(--tdt-hover,rgba(38,49,72,.06));color:var(--tdt-fg,#1f2328);}
|
|
50183
|
-
.dsh-tdt-sv-crumb-current{cursor:default;color:var(--tdt-fg,#1f2328);font-weight:600;
|
|
50183
|
+
.dsh-tdt-sv-crumb-current{cursor:default;color:var(--tdt-fg,#1f2328);font-weight:600;min-width:0;}
|
|
50184
|
+
/* MarqueeText 皮肤:填满 crumb 按钮内容宽、可收缩;字体/字色由按钮继承;截断出「…」时 hover 跑马灯。 */
|
|
50185
|
+
.dsh-tdt-sv-crumb-mq{flex:1 1 auto;min-width:0;}
|
|
50184
50186
|
.dsh-tdt-sv-crumb-current:hover{background:0 0;}
|
|
50185
50187
|
.dsh-tdt-sv-crumb-sep{flex:none;color:var(--tdt-fg-3,rgba(128,128,128,.7));}
|
|
50186
50188
|
/* 工作区之外的只读完整路径(用户 2026-10-03):**不可点**(无导航),但过长仍走
|
|
@@ -52292,8 +52294,8 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
52292
52294
|
/** 目录以尾斜杠表达(与 `normalizeOutputs` / `baseNameOf` 同一约定)。 */
|
|
52293
52295
|
const isDirPath$1 = (path) => path.endsWith("/");
|
|
52294
52296
|
function ProcessFiles(props) {
|
|
52295
|
-
const { paths, onOpen, className, t } = props;
|
|
52296
|
-
const [open, setOpen] = (0, react$1.useState)(false);
|
|
52297
|
+
const { paths, onOpen, className, defaultOpen, t } = props;
|
|
52298
|
+
const [open, setOpen] = (0, react$1.useState)(defaultOpen ?? false);
|
|
52297
52299
|
ensureControlsStyle();
|
|
52298
52300
|
const list = paths ?? [];
|
|
52299
52301
|
if (list.length === 0) return null;
|
|
@@ -52847,6 +52849,7 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
52847
52849
|
}) : null, showProc ? (0, react$1.createElement)(ProcessFiles, {
|
|
52848
52850
|
paths: processFiles,
|
|
52849
52851
|
onOpen: fileOpen?.open,
|
|
52852
|
+
defaultOpen: true,
|
|
52850
52853
|
t
|
|
52851
52854
|
}) : null) : null;
|
|
52852
52855
|
return data === void 0 || data.closing === null || data.closing === void 0 ? null : (0, react$1.createElement)(TurnTailNodeViewMirror, {
|
|
@@ -54520,6 +54523,8 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
54520
54523
|
onPick(relativizeToRoot(childPath, sessionId), false);
|
|
54521
54524
|
return;
|
|
54522
54525
|
}
|
|
54526
|
+
const parent = dirnameOf(childPath);
|
|
54527
|
+
if (parent !== dir) loadDir(parent);
|
|
54523
54528
|
setViewing(childPath);
|
|
54524
54529
|
setReloadNonce(0);
|
|
54525
54530
|
setSourceView(false);
|
|
@@ -54682,7 +54687,10 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
54682
54687
|
className: "dsh-tdt-sv-crumb",
|
|
54683
54688
|
disabled: true,
|
|
54684
54689
|
tabIndex: -1
|
|
54685
|
-
}, crumb.label)))), crumbsOverflow ? (0, react$1.createElement)("span", { className: "dsh-tdt-sv-crumb dsh-tdt-sv-crumb-current" },
|
|
54690
|
+
}, crumb.label)))), crumbsOverflow ? (0, react$1.createElement)("span", { className: "dsh-tdt-sv-crumb dsh-tdt-sv-crumb-current" }, (0, react$1.createElement)(MarqueeText, {
|
|
54691
|
+
text: crumbs.length > 0 ? crumbs[crumbs.length - 1].label : t("explorerRootName"),
|
|
54692
|
+
className: "dsh-tdt-sv-crumb-mq"
|
|
54693
|
+
})) : crumbs.length === 0 ? (0, react$1.createElement)("span", { className: "dsh-tdt-sv-crumb dsh-tdt-sv-crumb-current" }, t("explorerRootName")) : crumbs.map((crumb, index) => (0, react$1.createElement)(react$1.Fragment, { key: crumb.path }, index > 0 ? (0, react$1.createElement)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {
|
|
54686
54694
|
className: "dsh-tdt-sv-crumb-sep",
|
|
54687
54695
|
size: 12
|
|
54688
54696
|
}) : null, (0, react$1.createElement)("button", {
|
|
@@ -54691,7 +54699,10 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
54691
54699
|
onClick: () => {
|
|
54692
54700
|
loadDir(crumb.path);
|
|
54693
54701
|
}
|
|
54694
|
-
},
|
|
54702
|
+
}, (0, react$1.createElement)(MarqueeText, {
|
|
54703
|
+
text: crumb.label,
|
|
54704
|
+
className: "dsh-tdt-sv-crumb-mq"
|
|
54705
|
+
}))))), (0, react$1.createElement)("div", { className: "dsh-tdt-sv-head-actions" }, tooled(t("previewClose"), (0, react$1.createElement)(IconButton, {
|
|
54695
54706
|
variant: "plain",
|
|
54696
54707
|
size: "md",
|
|
54697
54708
|
icon: (0, react$1.createElement)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { size: 14 }),
|
|
@@ -64877,6 +64888,7 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
64877
64888
|
size: 14
|
|
64878
64889
|
}), (0, react$1.createElement)("span", { className: "dsh-tdt-ellipsis" }, baseNameOf(output)))))), (0, react$1.createElement)(ProcessFiles, {
|
|
64879
64890
|
paths: processOutputs,
|
|
64891
|
+
defaultOpen: true,
|
|
64880
64892
|
onOpen: canOpenFile && onOpenFile !== void 0 ? (path) => {
|
|
64881
64893
|
onOpenFile(sid, path);
|
|
64882
64894
|
} : void 0,
|
|
@@ -68086,6 +68098,7 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
68086
68098
|
}
|
|
68087
68099
|
})))), (0, react$1.createElement)(ProcessFiles, {
|
|
68088
68100
|
paths: processOutputs,
|
|
68101
|
+
defaultOpen: true,
|
|
68089
68102
|
onOpen: canOpenFile ? (path) => {
|
|
68090
68103
|
openFile?.(sid, path);
|
|
68091
68104
|
} : void 0,
|
|
@@ -71720,10 +71733,11 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
71720
71733
|
const openFile = (0, react$1.useCallback)((sessionId, path) => {
|
|
71721
71734
|
if (!canPreview) return;
|
|
71722
71735
|
lastWorkspaceSessionId.current = sessionId;
|
|
71723
|
-
setPreview({
|
|
71736
|
+
setPreview((prev) => ({
|
|
71724
71737
|
sessionId,
|
|
71725
|
-
path
|
|
71726
|
-
|
|
71738
|
+
path,
|
|
71739
|
+
seq: (prev?.seq ?? 0) + 1
|
|
71740
|
+
}));
|
|
71727
71741
|
}, [canPreview]);
|
|
71728
71742
|
const closePreview = (0, react$1.useCallback)(() => {
|
|
71729
71743
|
setPreview(null);
|
|
@@ -72452,7 +72466,7 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
72452
72466
|
officeToPdf,
|
|
72453
72467
|
workspaceAnchors: editorOptions.workspaceAnchors
|
|
72454
72468
|
}) : null, preview !== null && workspaceFiles !== null ? (0, react$1.createElement)(FileBrowser, {
|
|
72455
|
-
key: `${preview.sessionId}:${preview.path}`,
|
|
72469
|
+
key: `${preview.sessionId}:${preview.path}:${preview.seq}`,
|
|
72456
72470
|
workspaceFiles,
|
|
72457
72471
|
officeToPdf,
|
|
72458
72472
|
sessionId: preview.sessionId,
|
|
@@ -72465,9 +72479,10 @@ button.dsh-tdt-sv-tfc-file:focus-visible{box-shadow:inset 0 0 0 2px var(--tdt-fo
|
|
|
72465
72479
|
workspaces: editorOptions.workspaces.map((w) => w.value),
|
|
72466
72480
|
onSelectWorkspace: (name) => {
|
|
72467
72481
|
const anchor = editorOptions.workspaceAnchors[name];
|
|
72468
|
-
if (anchor !== void 0 && anchor !== preview.sessionId) setPreview({
|
|
72482
|
+
if (anchor !== void 0 && anchor !== preview.sessionId) setPreview((prev) => prev === null ? null : {
|
|
72469
72483
|
sessionId: anchor,
|
|
72470
|
-
path: ""
|
|
72484
|
+
path: "",
|
|
72485
|
+
seq: prev.seq + 1
|
|
72471
72486
|
});
|
|
72472
72487
|
}
|
|
72473
72488
|
}) : null);
|