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
|
@@ -1194,13 +1194,13 @@ window.__ModuleLoader__.load({
|
|
|
1194
1194
|
}
|
|
1195
1195
|
//#endregion
|
|
1196
1196
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-tool/src/client/tool/components/AskQuestionCard.module.css.mjs
|
|
1197
|
-
const css$
|
|
1198
|
-
const tagId$
|
|
1199
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
1197
|
+
const css$5 = ".fsXYAq_card{border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-base);flex-direction:column;gap:16px;max-height:360px;margin:4px 0 4px 4px;padding:16px 20px;display:flex;overflow-y:auto}.fsXYAq_item{flex-direction:column;gap:2px;min-width:0;display:flex}.fsXYAq_question,.fsXYAq_answer{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--dsh-content-font-size,14px);line-height:calc(24px + var(--dsh-content-font-delta,0px));margin:0}.fsXYAq_question{color:var(--dsw-alias-label-tertiary)}.fsXYAq_answer{color:var(--dsw-alias-label-primary)}.fsXYAq_answerLine{display:block}.fsXYAq_skipped{color:var(--dsw-alias-label-tertiary)}.fsXYAq_verdict{color:var(--dsw-alias-label-primary);font-size:var(--dsh-content-font-size,14px);line-height:calc(24px + var(--dsh-content-font-delta,0px));margin:0}.fsXYAq_questionList{flex-direction:column;gap:8px;margin:0;padding-left:20px;display:flex}.fsXYAq_unansweredQuestion{color:var(--dsw-alias-label-tertiary);white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--dsh-content-font-size,14px);line-height:calc(24px + var(--dsh-content-font-delta,0px))}";
|
|
1198
|
+
const tagId$5 = "@deepseek-ai/dsh-client-ui-tool/AskQuestionCard.module.css";
|
|
1199
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
1200
1200
|
const tag = document.createElement("style");
|
|
1201
1201
|
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-tool";
|
|
1202
|
-
tag.dataset.pluginCss = tagId$
|
|
1203
|
-
tag.textContent = css$
|
|
1202
|
+
tag.dataset.pluginCss = tagId$5;
|
|
1203
|
+
tag.textContent = css$5;
|
|
1204
1204
|
document.head.appendChild(tag);
|
|
1205
1205
|
}
|
|
1206
1206
|
var AskQuestionCard_module_css_default = {
|
|
@@ -1257,13 +1257,13 @@ window.__ModuleLoader__.load({
|
|
|
1257
1257
|
}
|
|
1258
1258
|
//#endregion
|
|
1259
1259
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-tool/src/client/tool/components/ToolDetails.module.css.mjs
|
|
1260
|
-
const css$
|
|
1261
|
-
const tagId$
|
|
1262
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
1260
|
+
const css$4 = ".DXqwVW_root{border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-markdown-code-block);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xs-13);margin:4px 0 4px 4px;overflow:hidden}.DXqwVW_list{max-height:320px;margin:0;padding:0;list-style:none;overflow-y:auto}.DXqwVW_item,.DXqwVW_empty{margin:0;padding:10px 14px}.DXqwVW_item+.DXqwVW_item{border-top:.5px solid var(--dsw-alias-border-l2)}.DXqwVW_root[data-inspect]:not([data-caption])>.DXqwVW_list>.DXqwVW_item,.DXqwVW_root[data-inspect]:not([data-caption]) .DXqwVW_empty,.DXqwVW_root[data-inspect] .DXqwVW_caption{padding-inline-end:88px}.DXqwVW_caption{color:var(--dsw-alias-label-caption);padding:10px 14px 6px;font-size:12px}.DXqwVW_heading{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.DXqwVW_text{white-space:pre-wrap;overflow-wrap:anywhere;flex:1;min-width:0}.DXqwVW_status{flex:none;justify-content:center;align-self:flex-start;align-items:center;width:14px;height:18px;font-size:16px;line-height:18px;display:inline-flex}.DXqwVW_pending{box-sizing:border-box;border:1px solid var(--dsw-alias-label-tertiary);border-radius:2px;width:10px;height:10px}.DXqwVW_heading:has(.DXqwVW_statusText) .DXqwVW_text{flex-basis:12em}.DXqwVW_statusText{color:var(--dsw-alias-label-caption);white-space:nowrap;margin-inline-start:auto;font-size:12px}.DXqwVW_previous,.DXqwVW_unchanged{color:var(--dsw-alias-label-tertiary)}.DXqwVW_item[data-change=added] .DXqwVW_status{color:var(--dsw-alias-state-success-primary)}.DXqwVW_item[data-change=removed] .DXqwVW_status{color:var(--dsw-alias-state-error-primary)}.DXqwVW_item[data-change=removed] .DXqwVW_text{color:var(--dsw-alias-label-tertiary);text-decoration:line-through}.DXqwVW_unchanged{border-top:.5px solid var(--dsw-alias-border-l2)}.DXqwVW_unchanged summary{cursor:pointer;align-items:center;gap:6px;padding:9px 14px;list-style:none;display:flex}.DXqwVW_unchanged summary::-webkit-details-marker{display:none}.DXqwVW_unchanged[open] summary svg{transform:rotate(90deg)}.DXqwVW_fields{margin:0}.DXqwVW_heading+.DXqwVW_fields{margin-top:6px}.DXqwVW_field{grid-template-columns:5.5em minmax(0,1fr);gap:12px;display:grid}.DXqwVW_field+.DXqwVW_field{margin-top:4px}.DXqwVW_field dt{color:var(--dsw-alias-label-caption)}.DXqwVW_field dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.DXqwVW_badge{color:var(--dsw-alias-label-caption);flex:none;align-items:center;gap:5px;font-size:12px;display:inline-flex}.DXqwVW_badge:before{content:\"\";corner-shape:round;background:currentColor;border-radius:50%;width:5px;height:5px}.DXqwVW_badge[data-tone=info]{color:var(--dsw-alias-state-business-primary)}.DXqwVW_badge[data-tone=success]{color:var(--dsw-alias-state-success-primary)}.DXqwVW_badge[data-tone=warning]{color:var(--dsw-alias-state-warn-primary)}.DXqwVW_badge[data-tone=error]{color:var(--dsw-alias-state-error-primary)}.DXqwVW_subtitle{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;margin-top:3px;font-size:12px}.DXqwVW_description{color:var(--dsw-alias-label-caption);white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.DXqwVW_lines{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;padding-inline-start:18px}.DXqwVW_lines li+li{margin-top:4px}.DXqwVW_group{border-top:.5px solid var(--dsw-alias-border-l2);margin-top:8px}.DXqwVW_group>summary{color:var(--dsw-alias-label-caption);cursor:pointer;overflow-wrap:anywhere;align-items:center;gap:6px;padding:8px 0 0;list-style:none;display:flex}.DXqwVW_group>summary::-webkit-details-marker{display:none}.DXqwVW_group[open]>summary svg{transform:rotate(90deg)}.DXqwVW_group>summary svg{flex:none}.DXqwVW_group .DXqwVW_list{max-height:none;overflow:visible}.DXqwVW_group .DXqwVW_item{padding:9px 0 2px 20px}.DXqwVW_prose,.DXqwVW_code{max-width:100%;font-size:13px}.DXqwVW_prose{margin-top:8px}.DXqwVW_root .DXqwVW_item>.DXqwVW_code{max-height:240px;margin:8px 0 0;overflow:auto}.DXqwVW_root .DXqwVW_item:has(>.DXqwVW_code:only-child){padding:0}.DXqwVW_root .DXqwVW_item>.DXqwVW_code:only-child{margin:0}.DXqwVW_root .DXqwVW_group .DXqwVW_item:has(>.DXqwVW_code:only-child){padding:4px 0 0 20px}.DXqwVW_path{min-width:0;color:inherit;font:inherit;text-align:start;overflow-wrap:anywhere;cursor:pointer;background:0 0;border:none;flex:1;padding:0}.DXqwVW_path:hover{text-decoration:underline}.DXqwVW_path:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:3px}";
|
|
1261
|
+
const tagId$4 = "@deepseek-ai/dsh-client-ui-tool/ToolDetails.module.css";
|
|
1262
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
1263
1263
|
const tag = document.createElement("style");
|
|
1264
1264
|
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-tool";
|
|
1265
|
-
tag.dataset.pluginCss = tagId$
|
|
1266
|
-
tag.textContent = css$
|
|
1265
|
+
tag.dataset.pluginCss = tagId$4;
|
|
1266
|
+
tag.textContent = css$4;
|
|
1267
1267
|
document.head.appendChild(tag);
|
|
1268
1268
|
}
|
|
1269
1269
|
var ToolDetails_module_css_default = {
|
|
@@ -1431,22 +1431,23 @@ window.__ModuleLoader__.load({
|
|
|
1431
1431
|
}
|
|
1432
1432
|
//#endregion
|
|
1433
1433
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-tool/src/client/tool/components/ToolRow.module.css.mjs
|
|
1434
|
-
const css$
|
|
1435
|
-
const tagId$
|
|
1436
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
1434
|
+
const css$3 = ".o3BgMG_root{flex-direction:column;display:flex}.o3BgMG_leading{flex-shrink:0}.o3BgMG_root[data-tool^=cordis_] .o3BgMG_title{font-weight:500}.o3BgMG_title{font-weight:400}.o3BgMG_sep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.o3BgMG_summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));flex:auto;overflow:hidden}.o3BgMG_summarySuffix{white-space:nowrap;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));flex:none;margin-left:4px}.o3BgMG_diffStat{font-family:var(--ds-font-family-code);font-size:calc(var(--dsh-content-font-size-secondary,13px) - 2px);margin-left:10px;transform:translateY(.5px)}.o3BgMG_row:is(:hover,[aria-expanded=true]) .o3BgMG_diffAdded{color:var(--dsw-alias-state-success-primary)}.o3BgMG_row:is(:hover,[aria-expanded=true]) .o3BgMG_diffRemoved{color:var(--dsw-alias-state-error-primary)}.o3BgMG_fileLink{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:inherit;text-align:left;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));color:inherit;text-underline-offset:3px;cursor:pointer;background:0 0;border:none;flex:0 auto;margin:0;padding:0;text-decoration:underline 1px dotted;overflow:hidden}.o3BgMG_errorSummary{color:var(--dsw-alias-state-error-primary)}.o3BgMG_stoppedSummary{color:var(--dsw-alias-state-warn-label)}.o3BgMG_bodyWrap{flex-direction:column;display:flex}.o3BgMG_inspectButton{border:.5px solid var(--dsw-alias-border-l3);corner-shape:round;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);cursor:pointer;opacity:0;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin:4px 0 2px 4px;padding:2px 8px;font-size:11px;line-height:16px;transition:opacity .1s;display:inline-flex}.o3BgMG_root:hover .o3BgMG_inspectButton,.o3BgMG_inspectButton:focus-visible{opacity:1}.o3BgMG_detailsBodyWrap{position:relative}.o3BgMG_detailsBodyWrap .o3BgMG_inspectButton{margin:0;position:absolute;top:12px;right:12px}.o3BgMG_inspectButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid);color:var(--dsw-alias-label-primary)}.o3BgMG_bodyScroll{max-height:260px;overflow-y:auto}.o3BgMG_ioCard{border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-markdown-code-block);font:var(--dsw-font-markdown-code-block-small);flex-direction:column;margin:4px 0 4px 4px;display:flex}.o3BgMG_ioSection{grid-template-columns:max-content 1fr;align-items:baseline;column-gap:14px;max-height:150px;padding:12px 16px;display:grid;overflow-y:auto}.o3BgMG_ioSection::-webkit-scrollbar-thumb{border-radius:var(--dsw-radius-sm);background-clip:padding-box;border:2px solid #0000}.o3BgMG_ioSection::-webkit-scrollbar-track{margin:6px 0}.o3BgMG_ioLabel{color:var(--dsw-alias-label-caption);align-self:start;position:sticky;top:0}.o3BgMG_ioDivider{background:var(--dsw-alias-border-l2);flex:none;height:.5px}.o3BgMG_ioText{white-space:pre-wrap;word-break:break-word;min-width:0;color:var(--dsw-alias-label-secondary)}.o3BgMG_ioText[data-error]{color:var(--dsw-alias-state-error-primary)}.o3BgMG_codeBody,.o3BgMG_terminalBody,.o3BgMG_diffBody,.o3BgMG_readBody,.o3BgMG_imageBody,.o3BgMG_searchBody,.o3BgMG_webBody{margin:4px 0 4px 4px}.o3BgMG_searchRecovery{white-space:pre-wrap;overflow-wrap:anywhere;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary);margin:4px 0 4px 4px}.o3BgMG_imageLabel{overflow-wrap:anywhere;font:var(--dsw-font-sm-13);color:var(--dsw-alias-label-secondary);margin-bottom:4px}.o3BgMG_imageMeta{white-space:pre-wrap;overflow-wrap:anywhere;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary)}.o3BgMG_terminalBody{--dsl-terminal-font:var(--dsw-font-markdown-code-block-small);--dsl-terminal-line-height:18px;--dsl-terminal-output-max-height:224px;border:.5px solid var(--dsw-alias-border-l1)}.o3BgMG_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}";
|
|
1435
|
+
const tagId$3 = "@deepseek-ai/dsh-client-ui-tool/ToolRow.module.css";
|
|
1436
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
1437
1437
|
const tag = document.createElement("style");
|
|
1438
1438
|
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-tool";
|
|
1439
|
-
tag.dataset.pluginCss = tagId$
|
|
1440
|
-
tag.textContent = css$
|
|
1439
|
+
tag.dataset.pluginCss = tagId$3;
|
|
1440
|
+
tag.textContent = css$3;
|
|
1441
1441
|
document.head.appendChild(tag);
|
|
1442
1442
|
}
|
|
1443
1443
|
var ToolRow_module_css_default = {
|
|
1444
1444
|
"bodyScroll": "o3BgMG_bodyScroll",
|
|
1445
1445
|
"bodyWrap": "o3BgMG_bodyWrap",
|
|
1446
|
-
"chevron": "o3BgMG_chevron",
|
|
1447
1446
|
"codeBody": "o3BgMG_codeBody",
|
|
1448
1447
|
"detailsBodyWrap": "o3BgMG_detailsBodyWrap",
|
|
1448
|
+
"diffAdded": "o3BgMG_diffAdded",
|
|
1449
1449
|
"diffBody": "o3BgMG_diffBody",
|
|
1450
|
+
"diffRemoved": "o3BgMG_diffRemoved",
|
|
1450
1451
|
"diffStat": "o3BgMG_diffStat",
|
|
1451
1452
|
"errorSummary": "o3BgMG_errorSummary",
|
|
1452
1453
|
"fileLink": "o3BgMG_fileLink",
|
|
@@ -1526,11 +1527,7 @@ window.__ModuleLoader__.load({
|
|
|
1526
1527
|
const running = state === "running" || state === "preparing";
|
|
1527
1528
|
const normalSummary = terminalBody?.description ?? (open ? detailsBody?.expandedSummary ?? summary : summary);
|
|
1528
1529
|
const summaryText = (state === "error" ? errorSummary ?? normalSummary : null) ?? normalSummary;
|
|
1529
|
-
const diffStat = (0, react.useMemo)(() =>
|
|
1530
|
-
if (diffBody === null) return null;
|
|
1531
|
-
const { added, removed } = (0, _deepseek_ai_dsh_client_ui_primitives.diffTotals)(diffBody.card.diffs);
|
|
1532
|
-
return `+${added} -${removed}`;
|
|
1533
|
-
}, [diffBody]);
|
|
1530
|
+
const diffStat = (0, react.useMemo)(() => diffBody === null ? null : (0, _deepseek_ai_dsh_client_ui_primitives.diffTotals)(diffBody.card.diffs), [diffBody]);
|
|
1534
1531
|
const settledWithCue = state === "error" || state === "stopped";
|
|
1535
1532
|
const suffix = settledWithCue ? null : summarySuffix ?? diffStat;
|
|
1536
1533
|
const openFile = (0, react.useMemo)(() => filePath !== void 0 && onOpenFile !== void 0 && !settledWithCue ? (event) => {
|
|
@@ -1573,15 +1570,23 @@ window.__ModuleLoader__.load({
|
|
|
1573
1570
|
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.TextShimmer, { children: summaryText })
|
|
1574
1571
|
}),
|
|
1575
1572
|
suffix !== null && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.TextShimmer, {
|
|
1576
|
-
className: clsx(ToolRow_module_css_default.summarySuffix, suffix
|
|
1577
|
-
children: suffix
|
|
1573
|
+
className: clsx(ToolRow_module_css_default.summarySuffix, typeof suffix !== "string" && ToolRow_module_css_default.diffStat),
|
|
1574
|
+
children: typeof suffix === "string" ? suffix : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
1575
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
1576
|
+
className: ToolRow_module_css_default.diffAdded,
|
|
1577
|
+
children: `+${suffix.added}`
|
|
1578
|
+
}),
|
|
1579
|
+
" ",
|
|
1580
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
1581
|
+
className: ToolRow_module_css_default.diffRemoved,
|
|
1582
|
+
children: `-${suffix.removed}`
|
|
1583
|
+
})
|
|
1584
|
+
] })
|
|
1578
1585
|
})
|
|
1579
1586
|
] }), [
|
|
1580
|
-
diffStat,
|
|
1581
1587
|
summaryLinkKeyDown,
|
|
1582
1588
|
linkHref,
|
|
1583
1589
|
openFile,
|
|
1584
|
-
running,
|
|
1585
1590
|
state,
|
|
1586
1591
|
suffix,
|
|
1587
1592
|
summaryText
|
|
@@ -1720,7 +1725,6 @@ window.__ModuleLoader__.load({
|
|
|
1720
1725
|
rowClassName: ToolRow_module_css_default.row,
|
|
1721
1726
|
leadingClassName: ToolRow_module_css_default.leading,
|
|
1722
1727
|
titleClassName: ToolRow_module_css_default.title,
|
|
1723
|
-
chevronClassName: ToolRow_module_css_default.chevron,
|
|
1724
1728
|
icon,
|
|
1725
1729
|
title,
|
|
1726
1730
|
running,
|
|
@@ -1781,13 +1785,13 @@ window.__ModuleLoader__.load({
|
|
|
1781
1785
|
}
|
|
1782
1786
|
//#endregion
|
|
1783
1787
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-tool/src/client/tool/ToolCallTree.module.css.mjs
|
|
1784
|
-
const css$
|
|
1785
|
-
const tagId$
|
|
1786
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
1788
|
+
const css$2 = ".ztWv_q_callRow{border-radius:var(--dsw-radius-sm)}.ztWv_q_subCalls{border-left:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:4px;margin:4px 0 2px 22px;padding-left:8px;display:flex}";
|
|
1789
|
+
const tagId$2 = "@deepseek-ai/dsh-client-ui-tool/ToolCallTree.module.css";
|
|
1790
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
1787
1791
|
const tag = document.createElement("style");
|
|
1788
1792
|
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-tool";
|
|
1789
|
-
tag.dataset.pluginCss = tagId$
|
|
1790
|
-
tag.textContent = css$
|
|
1793
|
+
tag.dataset.pluginCss = tagId$2;
|
|
1794
|
+
tag.textContent = css$2;
|
|
1791
1795
|
document.head.appendChild(tag);
|
|
1792
1796
|
}
|
|
1793
1797
|
var ToolCallTree_module_css_default = {
|
|
@@ -1947,6 +1951,111 @@ window.__ModuleLoader__.load({
|
|
|
1947
1951
|
/** Locale namespace supplied by the conversation owner to Tool renderers. */
|
|
1948
1952
|
const CONVERSATION_NS = "conversation";
|
|
1949
1953
|
//#endregion
|
|
1954
|
+
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-tool/src/client/tool/components/QuestionToolRow.module.css.mjs
|
|
1955
|
+
const css$1 = ".nvmz7W_panelButton{height:calc(22px + var(--dsh-content-font-delta,0px));corner-shape:round;background:var(--dsw-alias-button-floating-fill);color:var(--dsw-alias-label-primary);font-family:inherit;font-size:calc(var(--dsh-content-font-size-secondary,13px) - 1px);white-space:nowrap;cursor:pointer;border:none;border-radius:999px;flex:none;align-items:center;gap:4px;margin-left:8px;padding:0 10px;line-height:1;transition:background .1s;display:inline-flex}.nvmz7W_panelButton svg{width:13px;height:13px}.nvmz7W_panelButton:hover{background:var(--dsw-alias-button-floating-hover)}";
|
|
1956
|
+
const tagId$1 = "@deepseek-ai/dsh-client-ui-tool/QuestionToolRow.module.css";
|
|
1957
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
1958
|
+
const tag = document.createElement("style");
|
|
1959
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-tool";
|
|
1960
|
+
tag.dataset.pluginCss = tagId$1;
|
|
1961
|
+
tag.textContent = css$1;
|
|
1962
|
+
document.head.appendChild(tag);
|
|
1963
|
+
}
|
|
1964
|
+
var QuestionToolRow_module_css_default = { "panelButton": "nvmz7W_panelButton" };
|
|
1965
|
+
//#endregion
|
|
1966
|
+
//#region lib/types/client/tool/components/QuestionToolRow.js
|
|
1967
|
+
/** Question-owned summary action and transcript disclosure. */
|
|
1968
|
+
/**
|
|
1969
|
+
* Render a question with its answer-panel entry point.
|
|
1970
|
+
* @param props - Question transcript, panel action, and disclosure state.
|
|
1971
|
+
* @returns The question's summary and optional expanded record.
|
|
1972
|
+
*/
|
|
1973
|
+
function QuestionToolRow({ useDisclosure, t, summary, bodyRaw, output, askQuestion, state, inspect, openPanel, panelLabel }) {
|
|
1974
|
+
const { expanded, toggle } = useDisclosure();
|
|
1975
|
+
const expandable = bodyRaw != null || output != null || askQuestion != null;
|
|
1976
|
+
const open = expanded && expandable;
|
|
1977
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
1978
|
+
className: ToolRow_module_css_default.root,
|
|
1979
|
+
"data-variant": "others",
|
|
1980
|
+
"data-tool": "ask_user_question",
|
|
1981
|
+
"data-state": state,
|
|
1982
|
+
children: [state === "running" && (0, react_jsx_runtime.jsx)("span", {
|
|
1983
|
+
className: ToolRow_module_css_default.visuallyHidden,
|
|
1984
|
+
children: t("row.running")
|
|
1985
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.DisclosureRow, {
|
|
1986
|
+
rowClassName: ToolRow_module_css_default.row,
|
|
1987
|
+
leadingClassName: ToolRow_module_css_default.leading,
|
|
1988
|
+
titleClassName: ToolRow_module_css_default.title,
|
|
1989
|
+
chevronClassName: ToolRow_module_css_default.chevron,
|
|
1990
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconQuestionOutlineRegular, {}),
|
|
1991
|
+
title: t("ask.rowTitle"),
|
|
1992
|
+
running: state === "running",
|
|
1993
|
+
open,
|
|
1994
|
+
expandable,
|
|
1995
|
+
keepContentWhenOpen: true,
|
|
1996
|
+
onToggle: toggle,
|
|
1997
|
+
collapsedContent: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [summary !== "" && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1998
|
+
className: ToolRow_module_css_default.sep,
|
|
1999
|
+
"aria-hidden": true
|
|
2000
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
2001
|
+
className: ToolRow_module_css_default.summary,
|
|
2002
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.TextShimmer, {
|
|
2003
|
+
active: state === "running",
|
|
2004
|
+
children: summary
|
|
2005
|
+
})
|
|
2006
|
+
})] }), (0, react_jsx_runtime.jsxs)("button", {
|
|
2007
|
+
type: "button",
|
|
2008
|
+
className: QuestionToolRow_module_css_default.panelButton,
|
|
2009
|
+
onClick: (event) => {
|
|
2010
|
+
event.stopPropagation();
|
|
2011
|
+
if (!openPanel()) toggle();
|
|
2012
|
+
},
|
|
2013
|
+
onKeyDown: (event) => {
|
|
2014
|
+
if (event.key === "Enter" || event.key === " ") event.stopPropagation();
|
|
2015
|
+
},
|
|
2016
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconQuestionOutlineRegular, {}), panelLabel]
|
|
2017
|
+
})] }),
|
|
2018
|
+
children: open && (0, react_jsx_runtime.jsxs)("div", {
|
|
2019
|
+
className: ToolRow_module_css_default.bodyWrap,
|
|
2020
|
+
children: [askQuestion != null ? (0, react_jsx_runtime.jsx)(AskQuestionCard, { card: askQuestion }) : (0, react_jsx_runtime.jsxs)("div", {
|
|
2021
|
+
className: ToolRow_module_css_default.ioCard,
|
|
2022
|
+
children: [
|
|
2023
|
+
bodyRaw != null && (0, react_jsx_runtime.jsxs)("div", {
|
|
2024
|
+
className: ToolRow_module_css_default.ioSection,
|
|
2025
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
2026
|
+
className: ToolRow_module_css_default.ioLabel,
|
|
2027
|
+
children: t("row.input")
|
|
2028
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
2029
|
+
className: ToolRow_module_css_default.ioText,
|
|
2030
|
+
children: formatToolBody("others", bodyRaw)
|
|
2031
|
+
})]
|
|
2032
|
+
}),
|
|
2033
|
+
bodyRaw != null && output != null && (0, react_jsx_runtime.jsx)("span", {
|
|
2034
|
+
className: ToolRow_module_css_default.ioDivider,
|
|
2035
|
+
"aria-hidden": true
|
|
2036
|
+
}),
|
|
2037
|
+
output != null && (0, react_jsx_runtime.jsxs)("div", {
|
|
2038
|
+
className: ToolRow_module_css_default.ioSection,
|
|
2039
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
2040
|
+
className: ToolRow_module_css_default.ioLabel,
|
|
2041
|
+
children: t("row.output")
|
|
2042
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
2043
|
+
className: ToolRow_module_css_default.ioText,
|
|
2044
|
+
children: output
|
|
2045
|
+
})]
|
|
2046
|
+
})
|
|
2047
|
+
]
|
|
2048
|
+
}), inspect !== void 0 && (0, react_jsx_runtime.jsxs)("button", {
|
|
2049
|
+
type: "button",
|
|
2050
|
+
className: ToolRow_module_css_default.inspectButton,
|
|
2051
|
+
onClick: inspect,
|
|
2052
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconInspectOutlineRegular, {}), t("row.inspect")]
|
|
2053
|
+
})]
|
|
2054
|
+
})
|
|
2055
|
+
})]
|
|
2056
|
+
});
|
|
2057
|
+
}
|
|
2058
|
+
//#endregion
|
|
1950
2059
|
//#region lib/types/client/tool/toolviews/ask-question-row.js
|
|
1951
2060
|
function isRecord(value) {
|
|
1952
2061
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -1975,7 +2084,35 @@ window.__ModuleLoader__.load({
|
|
|
1975
2084
|
}
|
|
1976
2085
|
return entries;
|
|
1977
2086
|
}
|
|
1978
|
-
/**
|
|
2087
|
+
/** Answers from a submitted steer that still awaits admission to a step. */
|
|
2088
|
+
function queuedAnswerEntries(message, callId) {
|
|
2089
|
+
if (!isRecord(message) || !Array.isArray(message.content)) return null;
|
|
2090
|
+
const content = message.content[0];
|
|
2091
|
+
if (!isRecord(content) || content.type !== "text" || typeof content.text !== "string") return null;
|
|
2092
|
+
const parsed = parseJson(content.text);
|
|
2093
|
+
if (!isRecord(parsed) || parsed.kind !== "answer_to_pending_question" || parsed.callId !== callId) return null;
|
|
2094
|
+
return answerEntries(content.text);
|
|
2095
|
+
}
|
|
2096
|
+
/** One question's choices from call JSON; absent when any entry is malformed. */
|
|
2097
|
+
function optionEntries(value) {
|
|
2098
|
+
if (!Array.isArray(value)) return void 0;
|
|
2099
|
+
const options = [];
|
|
2100
|
+
for (const option of value) {
|
|
2101
|
+
if (!isRecord(option) || typeof option.label !== "string") return void 0;
|
|
2102
|
+
options.push({
|
|
2103
|
+
label: option.label,
|
|
2104
|
+
...typeof option.description === "string" ? { description: option.description } : {}
|
|
2105
|
+
});
|
|
2106
|
+
}
|
|
2107
|
+
return options;
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* Questions from call JSON; null when pairing with answers would be ambiguous.
|
|
2111
|
+
* The optional presentation fields are carried for the read-only answer panel,
|
|
2112
|
+
* which renders the same option lists the user chose from; a malformed one is
|
|
2113
|
+
* dropped rather than failing the whole call, because the transcript card needs
|
|
2114
|
+
* only the id and the question text.
|
|
2115
|
+
*/
|
|
1979
2116
|
function questionEntries(argsRaw) {
|
|
1980
2117
|
const parsed = parseJson(argsRaw);
|
|
1981
2118
|
if (!isRecord(parsed) || !Array.isArray(parsed.questions) || parsed.questions.length === 0) return null;
|
|
@@ -1984,17 +2121,21 @@ window.__ModuleLoader__.load({
|
|
|
1984
2121
|
for (const question of parsed.questions) {
|
|
1985
2122
|
if (!isRecord(question) || typeof question.id !== "string" || typeof question.question !== "string" || ids.has(question.id)) return null;
|
|
1986
2123
|
ids.add(question.id);
|
|
2124
|
+
const options = optionEntries(question.options);
|
|
1987
2125
|
questions.push({
|
|
1988
2126
|
id: question.id,
|
|
1989
|
-
question: question.question
|
|
2127
|
+
question: question.question,
|
|
2128
|
+
...typeof question.header === "string" ? { header: question.header } : {},
|
|
2129
|
+
...typeof question.detail === "string" ? { detail: question.detail } : {},
|
|
2130
|
+
...options === void 0 ? {} : { options },
|
|
2131
|
+
...typeof question.multi_select === "boolean" ? { multiSelect: question.multi_select } : {}
|
|
1990
2132
|
});
|
|
1991
2133
|
}
|
|
1992
2134
|
return questions;
|
|
1993
2135
|
}
|
|
1994
2136
|
/** Pair questions with result entries by their echoed stable ids. */
|
|
1995
|
-
function pairAnswers(
|
|
1996
|
-
|
|
1997
|
-
if (questions === null || questions.length !== answers.length) return null;
|
|
2137
|
+
function pairAnswers(questions, answers) {
|
|
2138
|
+
if (questions.length !== answers.length) return null;
|
|
1998
2139
|
const byId = /* @__PURE__ */ new Map();
|
|
1999
2140
|
for (const answer of answers) {
|
|
2000
2141
|
if (byId.has(answer.id)) return null;
|
|
@@ -2005,23 +2146,38 @@ window.__ModuleLoader__.load({
|
|
|
2005
2146
|
const answer = byId.get(question.id);
|
|
2006
2147
|
if (answer === void 0) return null;
|
|
2007
2148
|
paired.push({
|
|
2008
|
-
|
|
2149
|
+
id: question.id,
|
|
2150
|
+
question: question.question,
|
|
2009
2151
|
answers: [...answer.selected, ...answer.custom === void 0 || answer.custom === "" ? [] : [answer.custom]]
|
|
2010
2152
|
});
|
|
2011
2153
|
}
|
|
2012
2154
|
return paired;
|
|
2013
2155
|
}
|
|
2014
|
-
/**
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2156
|
+
/**
|
|
2157
|
+
* Answer summary, transcript content, and panel material from one recorded
|
|
2158
|
+
* answer batch, whether the result carried it in time or a late reply did.
|
|
2159
|
+
* @param questions - The call's questions, or null when they failed validation.
|
|
2160
|
+
* @param answers - The recorded answer batch.
|
|
2161
|
+
* @param t - Row translator.
|
|
2162
|
+
* @returns What the answered row shows.
|
|
2163
|
+
*/
|
|
2164
|
+
function answeredPresentation(questions, answers, t) {
|
|
2018
2165
|
const answered = answers.filter((answer) => answer.selected.length > 0 || (answer.custom ?? "") !== "").length;
|
|
2166
|
+
const paired = questions === null ? null : pairAnswers(questions, answers);
|
|
2019
2167
|
return {
|
|
2020
2168
|
summary: t("ask.answered", {
|
|
2021
2169
|
answered,
|
|
2022
2170
|
total: answers.length
|
|
2023
2171
|
}),
|
|
2024
|
-
|
|
2172
|
+
transcript: paired === null ? null : {
|
|
2173
|
+
kind: "answered",
|
|
2174
|
+
questions: paired,
|
|
2175
|
+
skippedLabel: t("ask.skipped")
|
|
2176
|
+
},
|
|
2177
|
+
record: paired === null || questions === null ? void 0 : {
|
|
2178
|
+
questions,
|
|
2179
|
+
answers
|
|
2180
|
+
}
|
|
2025
2181
|
};
|
|
2026
2182
|
}
|
|
2027
2183
|
/** Best-effort answered-count summary when strict transcript pairing fails. */
|
|
@@ -2036,14 +2192,31 @@ window.__ModuleLoader__.load({
|
|
|
2036
2192
|
total: answers.length
|
|
2037
2193
|
});
|
|
2038
2194
|
}
|
|
2195
|
+
/** Whether a successful tool result records a still-answerable timed question. */
|
|
2196
|
+
function isPendingResult(text) {
|
|
2197
|
+
const parsed = parseJson(text);
|
|
2198
|
+
return isRecord(parsed) && parsed.pending === true && typeof parsed.callId === "string";
|
|
2199
|
+
}
|
|
2039
2200
|
/** Summarizes a pending, answered, cancelled, or interrupted question set. */
|
|
2040
|
-
function AskQuestionRow({ toolName, block, inspect, useDisclosure, t }) {
|
|
2201
|
+
function AskQuestionRow({ callId, toolName, block, inspect, useDisclosure, useProjection, revealPanel, reviewPanel, t }) {
|
|
2041
2202
|
const model = toolRowModel(toolName, block);
|
|
2203
|
+
const answerable = useProjection("userQuestions", (view) => view?.active.some((row) => row.callId === callId) ?? false);
|
|
2204
|
+
const settled = useProjection("userQuestions", (view) => view?.settled.find((row) => row.callId === callId));
|
|
2205
|
+
const queuedReply = useProjection("inbox", (view) => {
|
|
2206
|
+
const matches = (message) => {
|
|
2207
|
+
const source = isRecord(message) ? message.source : void 0;
|
|
2208
|
+
return isRecord(source) && source.kind === "user-question-reply" && source.callId === callId;
|
|
2209
|
+
};
|
|
2210
|
+
return view?.["next-step"].find(matches) ?? view?.["next-turn"].find(matches);
|
|
2211
|
+
});
|
|
2212
|
+
const reopen = (0, react.useCallback)(() => revealPanel(callId), [callId, revealPanel]);
|
|
2042
2213
|
const code = "kind" in block ? block.error?.code : void 0;
|
|
2043
2214
|
const argsRaw = model.bodyRaw ?? "";
|
|
2044
2215
|
let summary = model.summary;
|
|
2045
2216
|
let state = model.state;
|
|
2046
2217
|
let transcript = null;
|
|
2218
|
+
let rowAction;
|
|
2219
|
+
let rowActionLabel = t("ask.reopen");
|
|
2047
2220
|
if (code === "ASK_CANCELLED") {
|
|
2048
2221
|
summary = t("ask.cancelled");
|
|
2049
2222
|
state = "ok";
|
|
@@ -2062,19 +2235,92 @@ window.__ModuleLoader__.load({
|
|
|
2062
2235
|
questions,
|
|
2063
2236
|
verdict: t("ask.interruptedDetail")
|
|
2064
2237
|
};
|
|
2065
|
-
} else if (model.state === "running")
|
|
2066
|
-
|
|
2238
|
+
} else if (model.state === "running") {
|
|
2239
|
+
summary = t("ask.waiting");
|
|
2240
|
+
if (answerable) rowAction = reopen;
|
|
2241
|
+
} else if (code === "TOOL_OUTCOME_UNKNOWN" && (answerable || settled !== void 0)) {
|
|
2242
|
+
state = "ok";
|
|
2243
|
+
const questions = questionEntries(argsRaw);
|
|
2244
|
+
if (answerable) {
|
|
2245
|
+
summary = t("ask.pending");
|
|
2246
|
+
if (questions !== null) transcript = {
|
|
2247
|
+
kind: "unanswered",
|
|
2248
|
+
questions,
|
|
2249
|
+
verdict: t("ask.pendingDetail")
|
|
2250
|
+
};
|
|
2251
|
+
rowAction = reopen;
|
|
2252
|
+
} else if (settled?.answers.length === 0) {
|
|
2253
|
+
summary = t("ask.closed");
|
|
2254
|
+
if (questions !== null) transcript = {
|
|
2255
|
+
kind: "unanswered",
|
|
2256
|
+
questions,
|
|
2257
|
+
verdict: t("ask.closedDetail")
|
|
2258
|
+
};
|
|
2259
|
+
} else if (settled !== void 0) {
|
|
2260
|
+
const presentation = answeredPresentation(questions, settled.answers, t);
|
|
2261
|
+
summary = presentation.summary;
|
|
2262
|
+
transcript = presentation.transcript;
|
|
2263
|
+
const record = presentation.record;
|
|
2264
|
+
if (record !== void 0) {
|
|
2265
|
+
rowAction = () => reviewPanel(callId, record);
|
|
2266
|
+
rowActionLabel = t("ask.review");
|
|
2267
|
+
}
|
|
2268
|
+
}
|
|
2269
|
+
} else if ("kind" in block && model.state === "ok") {
|
|
2067
2270
|
const text = singleResultText(block);
|
|
2068
2271
|
if (text !== void 0) {
|
|
2069
|
-
const
|
|
2070
|
-
|
|
2071
|
-
if (
|
|
2072
|
-
|
|
2073
|
-
questions
|
|
2074
|
-
|
|
2075
|
-
|
|
2272
|
+
const questions = questionEntries(argsRaw);
|
|
2273
|
+
const pending = isPendingResult(text);
|
|
2274
|
+
if (pending && answerable) {
|
|
2275
|
+
summary = t("ask.pending");
|
|
2276
|
+
if (questions !== null) transcript = {
|
|
2277
|
+
kind: "unanswered",
|
|
2278
|
+
questions,
|
|
2279
|
+
verdict: t("ask.pendingDetail")
|
|
2280
|
+
};
|
|
2281
|
+
rowAction = reopen;
|
|
2282
|
+
} else if (pending && (settled === void 0 || settled.answers.length === 0)) {
|
|
2283
|
+
summary = t("ask.closed");
|
|
2284
|
+
if (questions !== null) transcript = {
|
|
2285
|
+
kind: "unanswered",
|
|
2286
|
+
questions,
|
|
2287
|
+
verdict: t("ask.closedDetail")
|
|
2288
|
+
};
|
|
2289
|
+
} else {
|
|
2290
|
+
const answers = settled?.answers ?? answerEntries(text);
|
|
2291
|
+
const presentation = answers === null ? null : answeredPresentation(questions, answers, t);
|
|
2292
|
+
summary = presentation?.summary ?? answeredSummary(text, t) ?? model.summary;
|
|
2293
|
+
transcript = presentation?.transcript ?? null;
|
|
2294
|
+
const record = settled === void 0 ? void 0 : presentation?.record;
|
|
2295
|
+
if (record !== void 0) {
|
|
2296
|
+
rowAction = () => reviewPanel(callId, record);
|
|
2297
|
+
rowActionLabel = t("ask.review");
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
if (answerable && queuedReply !== void 0 && rowAction === reopen) {
|
|
2303
|
+
const answers = queuedAnswerEntries(queuedReply, callId);
|
|
2304
|
+
const presentation = answers === null ? null : answeredPresentation(questionEntries(argsRaw), answers, t);
|
|
2305
|
+
if (presentation?.record !== void 0) {
|
|
2306
|
+
summary = presentation.summary;
|
|
2307
|
+
transcript = presentation.transcript;
|
|
2308
|
+
rowAction = () => false;
|
|
2309
|
+
rowActionLabel = t("ask.review");
|
|
2076
2310
|
}
|
|
2077
2311
|
}
|
|
2312
|
+
if (rowAction !== void 0) return (0, react_jsx_runtime.jsx)(QuestionToolRow, {
|
|
2313
|
+
useDisclosure,
|
|
2314
|
+
t,
|
|
2315
|
+
summary,
|
|
2316
|
+
bodyRaw: transcript === null ? model.bodyRaw : null,
|
|
2317
|
+
output: transcript === null ? model.output : null,
|
|
2318
|
+
askQuestion: transcript,
|
|
2319
|
+
state,
|
|
2320
|
+
inspect,
|
|
2321
|
+
openPanel: rowAction,
|
|
2322
|
+
panelLabel: rowActionLabel
|
|
2323
|
+
});
|
|
2078
2324
|
return (0, react_jsx_runtime.jsx)(ToolRow, {
|
|
2079
2325
|
useDisclosure,
|
|
2080
2326
|
t,
|
|
@@ -2098,7 +2344,11 @@ window.__ModuleLoader__.load({
|
|
|
2098
2344
|
ctx.slots.inject("tool.call.toolview", () => ctx.slots.register({
|
|
2099
2345
|
name: "tool.call.toolview",
|
|
2100
2346
|
key: "ask_user_question",
|
|
2101
|
-
locale: CONVERSATION_NS
|
|
2347
|
+
locale: CONVERSATION_NS,
|
|
2348
|
+
inject: (sessionId) => ({
|
|
2349
|
+
revealPanel: (callId) => ctx.get("userQuestionPanels")?.reveal(sessionId, callId) ?? false,
|
|
2350
|
+
reviewPanel: (callId, record) => ctx.get("userQuestionPanels")?.review(sessionId, callId, record) ?? false
|
|
2351
|
+
})
|
|
2102
2352
|
}, AskQuestionRow));
|
|
2103
2353
|
}
|
|
2104
2354
|
};
|
|
@@ -2123,7 +2373,7 @@ window.__ModuleLoader__.load({
|
|
|
2123
2373
|
}
|
|
2124
2374
|
//#endregion
|
|
2125
2375
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-tool/src/client/tool/toolviews/bash-sample.module.css.mjs
|
|
2126
|
-
const css = ".CY-8Ka_card{flex-direction:column;display:flex}.CY-8Ka_terminal{--dsl-terminal-font:var(--dsw-font-markdown-code-block-small);--dsl-terminal-line-height:18px;--dsl-terminal-output-max-height:224px;border:.5px solid var(--dsw-alias-border-l1);margin:4px 0 4px 4px}.CY-8Ka_ioCard{border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-markdown-code-block);font:var(--dsw-font-markdown-code-block-small);flex-direction:column;margin:4px 0 4px 4px;display:flex}.CY-8Ka_ioSection{grid-template-columns:max-content 1fr;align-items:baseline;column-gap:14px;max-height:150px;padding:12px 16px;display:grid;overflow-y:auto}.CY-8Ka_ioSection::-webkit-scrollbar-thumb{border-radius:var(--dsw-radius-sm);background-clip:padding-box;border:2px solid #0000}.CY-8Ka_ioSection::-webkit-scrollbar-track{margin:6px 0}.CY-8Ka_ioLabel{color:var(--dsw-alias-label-caption);align-self:start;position:sticky;top:0}.CY-8Ka_ioDivider{background:var(--dsw-alias-border-l2);flex:none;height:.5px}.CY-8Ka_ioText{white-space:pre-wrap;word-break:break-word;min-width:0;color:var(--dsw-alias-label-secondary)}.CY-8Ka_ioText[data-error]{color:var(--dsw-alias-state-error-primary)}.CY-8Ka_root[data-expandable]{cursor:pointer}.CY-8Ka_root{height:calc(24px + var(--dsh-content-font-delta,0px));align-items:center;
|
|
2376
|
+
const css = ".CY-8Ka_card{flex-direction:column;display:flex}.CY-8Ka_terminal{--dsl-terminal-font:var(--dsw-font-markdown-code-block-small);--dsl-terminal-line-height:18px;--dsl-terminal-output-max-height:224px;border:.5px solid var(--dsw-alias-border-l1);margin:4px 0 4px 4px}.CY-8Ka_ioCard{border:.5px solid var(--dsw-alias-border-l1);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-markdown-code-block);font:var(--dsw-font-markdown-code-block-small);flex-direction:column;margin:4px 0 4px 4px;display:flex}.CY-8Ka_ioSection{grid-template-columns:max-content 1fr;align-items:baseline;column-gap:14px;max-height:150px;padding:12px 16px;display:grid;overflow-y:auto}.CY-8Ka_ioSection::-webkit-scrollbar-thumb{border-radius:var(--dsw-radius-sm);background-clip:padding-box;border:2px solid #0000}.CY-8Ka_ioSection::-webkit-scrollbar-track{margin:6px 0}.CY-8Ka_ioLabel{color:var(--dsw-alias-label-caption);align-self:start;position:sticky;top:0}.CY-8Ka_ioDivider{background:var(--dsw-alias-border-l2);flex:none;height:.5px}.CY-8Ka_ioText{white-space:pre-wrap;word-break:break-word;min-width:0;color:var(--dsw-alias-label-secondary)}.CY-8Ka_ioText[data-error]{color:var(--dsw-alias-state-error-primary)}.CY-8Ka_root[data-expandable]{cursor:pointer}.CY-8Ka_root{height:calc(24px + var(--dsh-content-font-delta,0px));min-width:0;color:var(--dsw-alias-label-tertiary);align-items:center;transition:color .1s;display:flex}.CY-8Ka_root:hover{color:var(--dsw-alias-label-secondary)}@media (prefers-reduced-motion:reduce){.CY-8Ka_root{transition:none}}.CY-8Ka_leading{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px));color:inherit;flex:none;justify-content:center;align-items:center;margin-right:6px;display:inline-flex;position:relative}.CY-8Ka_leading svg:not([data-state]){width:calc(14px + var(--dsh-content-font-delta,0px));height:calc(14px + var(--dsh-content-font-delta,0px))}.CY-8Ka_chevron{color:inherit}.CY-8Ka_iconIdle{opacity:1;transition:opacity .1s;display:inline-flex}.CY-8Ka_chevronHover{opacity:0;margin:auto;transition:opacity .1s;position:absolute;inset:0}.CY-8Ka_root:hover .CY-8Ka_iconIdle{opacity:0}.CY-8Ka_root:hover .CY-8Ka_chevronHover{opacity:1}.CY-8Ka_title{font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));flex:none}.CY-8Ka_sep{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.CY-8Ka_summary{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));flex:auto;overflow:hidden}.CY-8Ka_errorSummary{color:var(--dsw-alias-state-error-primary)}.CY-8Ka_stoppedSummary{color:var(--dsw-alias-state-warn-label)}.CY-8Ka_bodyWrap{flex-direction:column;display:flex}.CY-8Ka_inspectButton{border:.5px solid var(--dsw-alias-border-l4);corner-shape:round;background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-secondary);cursor:pointer;opacity:0;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin:4px 0 2px 4px;padding:2px 8px;font-size:11px;line-height:16px;transition:opacity .1s;display:inline-flex}.CY-8Ka_card:hover .CY-8Ka_inspectButton,.CY-8Ka_inspectButton:focus-visible{opacity:1}.CY-8Ka_inspectButton:hover{background:var(--dsw-alias-interactive-bg-hover-solid);color:var(--dsw-alias-label-primary)}.CY-8Ka_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}";
|
|
2127
2377
|
const tagId = "@deepseek-ai/dsh-client-ui-tool/bash-sample.module.css";
|
|
2128
2378
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
2129
2379
|
const tag = document.createElement("style");
|