dsh-edge 0.18.0 → 0.19.0-alpha.2
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/README.i18n.yaml +2 -2
- package/README.md +8 -8
- package/README.zh.md +8 -8
- package/THIRD_PARTY_NOTICES.md +2011 -449
- package/dist/assets/fonts/Montserrat-OFL.txt +93 -0
- package/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
- package/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
- package/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
- package/dist/assets/index-Cq6ljTv2.css +1 -0
- package/dist/assets/index-Dy0OhsZ5.js +127 -0
- package/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
- package/dist/assets/langs/bat-BkioyH1T.js +2 -0
- package/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
- package/dist/assets/langs/clojure-P80f7IUj.js +2 -0
- package/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
- package/dist/assets/langs/csv-fuZLfV_i.js +2 -0
- package/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
- package/dist/assets/langs/diff-D97Zzqfu.js +2 -0
- package/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
- package/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
- package/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
- package/dist/assets/langs/fish-BvzEVeQv.js +2 -0
- package/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
- package/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
- package/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
- package/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
- package/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
- package/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
- package/dist/assets/langs/html-fwsONPVS.js +2 -0
- package/dist/assets/langs/http-DcV90OkR.js +2 -0
- package/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
- package/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
- package/dist/assets/langs/latex-B4C7GdlO.js +2 -0
- package/dist/assets/langs/log-2UxHyX5q.js +2 -0
- package/dist/assets/langs/make-CHLpvVh8.js +2 -0
- package/dist/assets/langs/nix-CwoSXNpI.js +2 -0
- package/dist/assets/langs/perl-DsWkoyyU.js +2 -0
- package/dist/assets/langs/php-LEPfNACG.js +2 -0
- package/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
- package/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
- package/dist/assets/langs/r-Dspwwk_N.js +2 -0
- package/dist/assets/langs/rst-BbocfKWr.js +2 -0
- package/dist/assets/langs/ruby-R292Iif0.js +2 -0
- package/dist/assets/langs/scala-C151Ov-r.js +2 -0
- package/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
- package/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
- package/dist/assets/langs/vb-D17OF-Vu.js +2 -0
- package/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
- package/dist/assets/langs/vue-Dq2x6432.js +2 -0
- package/dist/favicon-dark.svg +3 -0
- package/dist/favicon.svg +0 -5
- package/dist/index.html +5 -4
- package/dist/manifest.webmanifest +3 -4
- package/dist/plugins/@deepseek-ai/dsh-api-gateway/client.js +353 -101
- package/dist/plugins/@deepseek-ai/dsh-api-job-controller/client.js +367 -0
- package/dist/plugins/@deepseek-ai/dsh-api-remotes/client.js +7223 -3584
- package/dist/plugins/@deepseek-ai/dsh-api-session-controller/client.js +1107 -991
- package/dist/plugins/@deepseek-ai/dsh-api-workspace-controller/client.js +119 -6
- package/dist/plugins/@deepseek-ai/dsh-api-workspace-files/client.js +41 -35
- package/dist/plugins/@deepseek-ai/dsh-client-connection/client.js +354 -5279
- package/dist/plugins/@deepseek-ai/dsh-client-file-upload/client.js +10 -23
- package/dist/plugins/@deepseek-ai/dsh-client-locale/client.js +234 -80
- package/dist/plugins/@deepseek-ai/dsh-client-modules/client.js +554 -46
- package/dist/plugins/@deepseek-ai/dsh-client-shortcuts/client.js +2006 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-agent-preset/client.js +1090 -914
- package/dist/plugins/@deepseek-ai/dsh-client-ui-approval/client.js +79 -6
- package/dist/plugins/@deepseek-ai/dsh-client-ui-attachment/client.js +126 -155
- package/dist/plugins/@deepseek-ai/dsh-client-ui-chat/client.js +5776 -1593
- package/dist/plugins/@deepseek-ai/dsh-client-ui-commands/client.js +375 -121
- package/dist/plugins/@deepseek-ai/dsh-client-ui-conversation/client.js +3524 -1923
- package/dist/plugins/@deepseek-ai/dsh-client-ui-deliverables/client.js +1615 -258
- package/dist/plugins/@deepseek-ai/dsh-client-ui-directory-picker-browse/client.js +9 -9
- package/dist/plugins/@deepseek-ai/dsh-client-ui-goal/client.js +25 -10
- package/dist/plugins/@deepseek-ai/dsh-client-ui-input-trigger/client.js +169 -24
- package/dist/plugins/@deepseek-ai/dsh-client-ui-jobs/client.js +413 -63
- package/dist/plugins/@deepseek-ai/dsh-client-ui-layout/client.js +131 -14
- package/dist/plugins/@deepseek-ai/dsh-client-ui-message-feedback/client.js +24 -22
- package/dist/plugins/@deepseek-ai/dsh-client-ui-model-selection/client.js +281 -128
- package/dist/plugins/@deepseek-ai/dsh-client-ui-open-in-app/client.js +674 -223
- package/dist/plugins/@deepseek-ai/dsh-client-ui-plan/client.js +596 -18
- package/dist/plugins/@deepseek-ai/dsh-client-ui-reference/client.js +92 -9
- package/dist/plugins/@deepseek-ai/dsh-client-ui-renderer/client.js +467 -59
- package/dist/plugins/@deepseek-ai/dsh-client-ui-session/client.js +231 -72
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings/client.js +281 -117
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-general/client.js +642 -122
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-models/client.js +1565 -438
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/client.js +201 -75
- package/dist/plugins/@deepseek-ai/dsh-client-ui-settings-plugins/client.js +30 -1628
- package/dist/plugins/@deepseek-ai/dsh-client-ui-shortcuts/client.js +1163 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar/client.js +165 -39
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-browser/client.js +1648 -0
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/client.js +5515 -25622
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-files/client.js +419 -118
- package/dist/plugins/@deepseek-ai/dsh-client-ui-sidebar-right/client.js +5692 -260
- package/dist/plugins/@deepseek-ai/dsh-client-ui-skill/client.js +156 -41
- package/dist/plugins/@deepseek-ai/dsh-client-ui-subagent/client.js +386 -263
- package/dist/plugins/@deepseek-ai/dsh-client-ui-theme/client.js +183 -73
- package/dist/plugins/@deepseek-ai/dsh-client-ui-tool/client.js +2367 -429
- package/dist/plugins/@deepseek-ai/dsh-client-ui-trajectory/client.js +788 -270
- package/dist/plugins/@deepseek-ai/dsh-client-ui-user-questions/client.js +87 -79
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workflow-run/client.js +28 -14
- package/dist/plugins/@deepseek-ai/dsh-client-ui-workspace/client.js +2647 -1044
- package/dist/plugins/@deepseek-ai/dsh-typert-registry/client.js +22 -7
- package/dist/plugins/dsh-edge-client-ui/client.js +1 -10
- package/package.json +96 -86
- package/scripts/cli.mjs +16 -4
- package/scripts/install.d.mts +12 -2
- package/scripts/install.mjs +36 -9
- package/scripts/legal-files.mjs +15 -0
- package/worker/direct/index.js +2564 -1822
- package/worker/isolated/index.js +2144 -1402
- package/dist/assets/index-BKQ_L1z6.js +0 -117
- package/dist/assets/index-DPX2bQLO.css +0 -1
- package/dist/assets/langs/html-CfGypltT.js +0 -2
- package/dist/assets/langs/php-DJl5gRdb.js +0 -2
- package/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
- package/dist/plugins/@deepseek-ai/dsh-client-ui-permission-presets/client.js +0 -505
- package/dist/plugins/@deepseek-ai/dsh-client-ui-schedule/client.js +0 -307
|
@@ -21,16 +21,10 @@ window.__ModuleLoader__.load({
|
|
|
21
21
|
* Narrow a request to a renderable plan review, or return undefined to leave it
|
|
22
22
|
* to the generic question flow.
|
|
23
23
|
*
|
|
24
|
-
* The card
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* label the intent names, and is a binary single choice: at most one option
|
|
29
|
-
* besides approve, and not multi-select. A third option or a multi-select batch
|
|
30
|
-
* has answers two buttons cannot express, so the generic flow keeps it — as it
|
|
31
|
-
* keeps any request whose intent the asker's own service would have rejected,
|
|
32
|
-
* because the client sits downstream of a wire boundary and every request must
|
|
33
|
-
* stay answerable.
|
|
24
|
+
* The card offers approval and a return to the composer for change requests.
|
|
25
|
+
* It accepts one question carrying the plan as detail and the named approve
|
|
26
|
+
* option, with at most one alternative and no multi-select. Larger choices
|
|
27
|
+
* remain in the generic question flow.
|
|
34
28
|
*
|
|
35
29
|
* @param questions - the request's whole question batch.
|
|
36
30
|
* @returns The narrowed review, or undefined when the generic flow owns it.
|
|
@@ -50,6 +44,7 @@ window.__ModuleLoader__.load({
|
|
|
50
44
|
id: question.id,
|
|
51
45
|
question: question.question,
|
|
52
46
|
plan: question.detail,
|
|
47
|
+
...intent.callId === void 0 ? {} : { callId: intent.callId },
|
|
53
48
|
approve,
|
|
54
49
|
...decline === void 0 ? {} : { decline }
|
|
55
50
|
};
|
|
@@ -205,7 +200,7 @@ window.__ModuleLoader__.load({
|
|
|
205
200
|
}
|
|
206
201
|
//#endregion
|
|
207
202
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-user-questions/src/client/PlanReviewPanel.module.css.mjs
|
|
208
|
-
const css$1 = ".LVzXQa_frame{padding:6px calc(var(--dsh-composer-side-clearance) + 16px) 10px;justify-content:center;display:flex}.LVzXQa_card{width:100%;max-width:var(--dsh-chat-content-width)
|
|
203
|
+
const css$1 = ".LVzXQa_frame{padding:6px calc(var(--dsh-composer-side-clearance) + 16px) 10px;justify-content:center;display:flex}.LVzXQa_card{width:100%;max-width:var(--dsh-chat-content-width);--dsw-elevation-stroke-color:var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-xl);background:var(--dsw-specific-input-major);box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);border:0;flex-direction:column;display:flex;overflow:hidden}.LVzXQa_card,.LVzXQa_card *{box-sizing:border-box}.LVzXQa_strip{background:var(--dsw-alias-state-warn-tertiary);color:var(--dsw-alias-state-warn-primary);flex-shrink:0;align-items:center;gap:8px;padding:12px 16px;font-size:14px;line-height:20px;display:flex}.LVzXQa_footer{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:8px 16px 12px;display:flex}.LVzXQa_feedback{min-height:16px;color:var(--dsw-alias-state-error-primary);font-size:11px;line-height:16px}.LVzXQa_actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.LVzXQa_summary{min-width:0;padding:14px 16px 12px}.LVzXQa_title{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:15px;font-weight:500;line-height:22px;overflow:hidden}.LVzXQa_description{-webkit-line-clamp:2;color:var(--dsw-alias-label-secondary);-webkit-box-orient:vertical;margin:8px 0 0;font-size:14px;line-height:24px;display:-webkit-box;overflow:hidden}.LVzXQa_discuss{gap:6px}@media (width<=720px){.LVzXQa_card{border-radius:var(--dsw-radius-xl)}.LVzXQa_footer{align-items:flex-end;padding:8px 12px 10px}}.LVzXQa_previewActions{align-items:center;margin-left:auto;display:flex}";
|
|
209
204
|
const tagId$1 = "@deepseek-ai/dsh-client-ui-user-questions/PlanReviewPanel.module.css";
|
|
210
205
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
211
206
|
const tag = document.createElement("style");
|
|
@@ -216,14 +211,16 @@ window.__ModuleLoader__.load({
|
|
|
216
211
|
}
|
|
217
212
|
var PlanReviewPanel_module_css_default = {
|
|
218
213
|
"actions": "LVzXQa_actions",
|
|
219
|
-
"body": "LVzXQa_body",
|
|
220
214
|
"card": "LVzXQa_card",
|
|
215
|
+
"description": "LVzXQa_description",
|
|
221
216
|
"discuss": "LVzXQa_discuss",
|
|
222
|
-
"dot": "LVzXQa_dot",
|
|
223
217
|
"feedback": "LVzXQa_feedback",
|
|
224
218
|
"footer": "LVzXQa_footer",
|
|
225
219
|
"frame": "LVzXQa_frame",
|
|
226
|
-
"
|
|
220
|
+
"previewActions": "LVzXQa_previewActions",
|
|
221
|
+
"strip": "LVzXQa_strip",
|
|
222
|
+
"summary": "LVzXQa_summary",
|
|
223
|
+
"title": "LVzXQa_title"
|
|
227
224
|
};
|
|
228
225
|
//#endregion
|
|
229
226
|
//#region lib/types/client/PlanReviewPanel.js
|
|
@@ -238,19 +235,12 @@ window.__ModuleLoader__.load({
|
|
|
238
235
|
return description === void 0 ? {} : { title: description };
|
|
239
236
|
}
|
|
240
237
|
/**
|
|
241
|
-
* Render
|
|
238
|
+
* Render plan review controls; the submitted document opens in the sidebar.
|
|
242
239
|
*
|
|
243
240
|
* @param props - the question domain face, the narrowed plan review, and `t`.
|
|
244
241
|
* @returns The plan-review takeover for this request.
|
|
245
242
|
*/
|
|
246
|
-
function PlanReviewPanel({ pending, review, t }) {
|
|
247
|
-
const markdownLabels = (0, react.useMemo)(() => ({
|
|
248
|
-
code: {
|
|
249
|
-
copyLabel: t("copy"),
|
|
250
|
-
copiedLabel: t("copied")
|
|
251
|
-
},
|
|
252
|
-
footnotes: t("markdown.footnotes")
|
|
253
|
-
}), [t]);
|
|
243
|
+
function PlanReviewPanel({ pending, review, t, renderSlot }) {
|
|
254
244
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
255
245
|
const [error, setError] = (0, react.useState)(null);
|
|
256
246
|
const settle = (send) => {
|
|
@@ -267,25 +257,45 @@ window.__ModuleLoader__.load({
|
|
|
267
257
|
selected: [label]
|
|
268
258
|
}] }));
|
|
269
259
|
};
|
|
270
|
-
const
|
|
260
|
+
const summary = (0, react.useMemo)(() => {
|
|
261
|
+
const title = (0, _deepseek_ai_dsh_client_ui_primitives.extractMarkdownPlainText)(review.plan, { mode: "first-line" });
|
|
262
|
+
const description = (0, _deepseek_ai_dsh_client_ui_primitives.extractMarkdownPlainText)(review.plan, { mode: "first-paragraph" });
|
|
263
|
+
return {
|
|
264
|
+
title,
|
|
265
|
+
description: description === title ? "" : description
|
|
266
|
+
};
|
|
267
|
+
}, [review.plan]);
|
|
271
268
|
return (0, react_jsx_runtime.jsx)("div", {
|
|
272
269
|
className: PlanReviewPanel_module_css_default.frame,
|
|
273
270
|
"data-plan-review-key": pending.key,
|
|
274
271
|
children: (0, react_jsx_runtime.jsxs)("section", {
|
|
275
272
|
className: PlanReviewPanel_module_css_default.card,
|
|
276
273
|
"aria-label": review.question,
|
|
274
|
+
"aria-busy": busy,
|
|
277
275
|
children: [
|
|
278
276
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
279
277
|
className: PlanReviewPanel_module_css_default.strip,
|
|
280
|
-
children: [
|
|
278
|
+
children: [
|
|
279
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, { state: busy ? "ongoing" : "warning" }),
|
|
280
|
+
t("plan.header"),
|
|
281
|
+
(0, react_jsx_runtime.jsx)("div", {
|
|
282
|
+
className: PlanReviewPanel_module_css_default.previewActions,
|
|
283
|
+
children: renderSlot("conversation.plan-review.actions", {
|
|
284
|
+
review,
|
|
285
|
+
requestKey: pending.key
|
|
286
|
+
})
|
|
287
|
+
})
|
|
288
|
+
]
|
|
281
289
|
}),
|
|
282
|
-
(0, react_jsx_runtime.
|
|
283
|
-
className: PlanReviewPanel_module_css_default.
|
|
284
|
-
"
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
290
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
291
|
+
className: PlanReviewPanel_module_css_default.summary,
|
|
292
|
+
children: [(0, react_jsx_runtime.jsx)("h3", {
|
|
293
|
+
className: PlanReviewPanel_module_css_default.title,
|
|
294
|
+
children: summary.title
|
|
295
|
+
}), summary.description !== "" && (0, react_jsx_runtime.jsx)("p", {
|
|
296
|
+
className: PlanReviewPanel_module_css_default.description,
|
|
297
|
+
children: summary.description
|
|
298
|
+
})]
|
|
289
299
|
}),
|
|
290
300
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
291
301
|
className: PlanReviewPanel_module_css_default.footer,
|
|
@@ -295,36 +305,24 @@ window.__ModuleLoader__.load({
|
|
|
295
305
|
children: error
|
|
296
306
|
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
297
307
|
className: PlanReviewPanel_module_css_default.actions,
|
|
298
|
-
children: [
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
children: t("plan.decline")
|
|
317
|
-
}),
|
|
318
|
-
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
319
|
-
variant: "primary",
|
|
320
|
-
...tooltip(review.approve.description),
|
|
321
|
-
disabled: busy,
|
|
322
|
-
onClick: () => {
|
|
323
|
-
decide(review.approve.label);
|
|
324
|
-
},
|
|
325
|
-
children: t("plan.approve")
|
|
326
|
-
})
|
|
327
|
-
]
|
|
308
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
309
|
+
variant: "outline",
|
|
310
|
+
className: PlanReviewPanel_module_css_default.discuss,
|
|
311
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEditOutlineRegular, { size: 14 }),
|
|
312
|
+
disabled: busy,
|
|
313
|
+
onClick: () => {
|
|
314
|
+
settle(() => pending.cancel());
|
|
315
|
+
},
|
|
316
|
+
children: t("plan.discuss")
|
|
317
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
318
|
+
variant: "primary",
|
|
319
|
+
...tooltip(review.approve.description),
|
|
320
|
+
disabled: busy,
|
|
321
|
+
onClick: () => {
|
|
322
|
+
decide(review.approve.label);
|
|
323
|
+
},
|
|
324
|
+
children: t("plan.approve")
|
|
325
|
+
})]
|
|
328
326
|
})]
|
|
329
327
|
})
|
|
330
328
|
]
|
|
@@ -333,7 +331,7 @@ window.__ModuleLoader__.load({
|
|
|
333
331
|
}
|
|
334
332
|
//#endregion
|
|
335
333
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-user-questions/src/client/QuestionComposer.module.css.mjs
|
|
336
|
-
const css = ".Mbwy4a_frame{padding:6px calc(var(--dsh-composer-side-clearance) + 16px) 10px;justify-content:center;display:flex}.Mbwy4a_card{width:100%;max-width:var(--dsh-chat-content-width);--dsw-elevation-stroke-color:var(--dsw-alias-border-l2-darkmode-thin);background:var(--dsw-specific-input-major);max-height:min(60vh,520px);box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border:0;
|
|
334
|
+
const css = ".Mbwy4a_frame{padding:6px calc(var(--dsh-composer-side-clearance) + 16px) 10px;justify-content:center;display:flex}.Mbwy4a_card{width:100%;max-width:var(--dsh-chat-content-width);--dsw-elevation-stroke-color:var(--dsw-alias-border-l2-darkmode-thin);border-radius:var(--dsw-radius-xl);background:var(--dsw-specific-input-major);max-height:min(60vh,520px);box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border:0;flex-direction:column;padding:0 0 10px;display:flex;overflow:hidden}.Mbwy4a_card,.Mbwy4a_card *{box-sizing:border-box}.Mbwy4a_cardMinimized{max-height:none}.Mbwy4a_cardMinimized .Mbwy4a_header{padding-bottom:14px}.Mbwy4a_headerActions{flex-shrink:0;align-items:center;gap:4px;display:flex}.Mbwy4a_header{flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 16px 0 24px;display:flex}.Mbwy4a_headingBlock{min-width:0}.Mbwy4a_eyebrow{color:var(--dsw-alias-label-tertiary);margin-bottom:5px;font-size:11px;line-height:16px}.Mbwy4a_title{margin:0;font-size:16px;font-weight:500;line-height:22px}.Mbwy4a_detail{margin:0 2px 8px}.Mbwy4a_footerActions{flex-shrink:0;align-items:center;gap:12px;display:flex}.Mbwy4a_pager{flex-shrink:0;align-items:center;gap:6px;display:flex}.Mbwy4a_progress{color:var(--dsw-alias-label-secondary);white-space:nowrap;word-spacing:-2px;padding:0 4px;font-size:14px;font-weight:500;line-height:24px}.Mbwy4a_iconButton{corner-shape:round;width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:999px;place-items:center;padding:0;display:grid}.Mbwy4a_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.Mbwy4a_iconButton:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}.Mbwy4a_body{overscroll-behavior:contain;flex-direction:column;flex:auto;min-height:0;display:flex;overflow-y:auto}.Mbwy4a_options{flex-direction:column;gap:1px;margin:8px 0 0;padding:4px 12px;display:flex}.Mbwy4a_option{border-radius:var(--dsw-radius-md);width:100%;min-height:40px;color:inherit;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;flex-shrink:0;align-items:flex-start;gap:8px;padding:8px 12px 8px 8px;transition:background-color .12s,border-color .12s;display:flex}.Mbwy4a_option:hover:not(:disabled),.Mbwy4a_optionSelected{background:var(--dsw-alias-interactive-bg-hover)}.Mbwy4a_optionSelected{border-color:var(--dsw-alias-border-l2)}.Mbwy4a_option:disabled{cursor:default}.Mbwy4a_number{border-radius:var(--dsw-radius-xs);background:var(--dsw-alias-bg-overlay);width:20px;height:20px;color:var(--dsw-alias-label-secondary);flex:0 0 20px;place-items:center;margin-top:2px;font-size:12px;font-weight:500;line-height:18px;display:grid}.Mbwy4a_checkbox{flex:0 0 20px;place-items:center;width:20px;height:20px;margin-top:2px;display:grid}.Mbwy4a_checkbox:before{content:\"\";border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-xs);grid-area:1/1;width:14px;height:14px;transition:background-color .12s,border-color .12s}.Mbwy4a_checkbox>svg{grid-area:1/1}.Mbwy4a_checkboxChecked{color:var(--dsw-alias-label-primary-foreground)}.Mbwy4a_checkboxChecked:before{border-color:var(--dsw-alias-label-primary);background:var(--dsw-alias-label-primary)}.Mbwy4a_optionCopy{flex:1;min-width:0}.Mbwy4a_optionLine{flex-wrap:wrap;align-items:baseline;gap:2px 6px;display:flex}.Mbwy4a_optionLabel{font-size:14px;font-weight:500;line-height:24px}.Mbwy4a_badge{border-radius:var(--dsw-radius-xs);background:var(--dsw-specific-sidebar-nav-item-active-accent);color:var(--dsw-alias-button-info-fill);padding:0 4px;font-size:11px;font-weight:600;line-height:18px}.Mbwy4a_description{color:var(--dsw-alias-label-tertiary);font-size:14px;font-weight:400;line-height:24px}.Mbwy4a_customRow{border-radius:var(--dsw-radius-md);border:1px solid #0000;flex-shrink:0;align-items:flex-start;gap:8px;width:100%;min-height:40px;padding:8px 12px 8px 8px;transition:background-color .12s,border-color .12s;display:flex}.Mbwy4a_customRow:hover,.Mbwy4a_customRow:focus-within,.Mbwy4a_customRowActive{background:var(--dsw-alias-interactive-bg-hover)}.Mbwy4a_customRow:focus-within,.Mbwy4a_customRowActive{border-color:var(--dsw-alias-border-l2)}.Mbwy4a_field{--dsh-answer-field-padding:0;min-width:0;display:grid}.Mbwy4a_field>*{min-width:0;padding:var(--dsh-answer-field-padding);font:inherit;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;grid-area:1/1;font-size:14px;line-height:24px}.Mbwy4a_fieldMirror{box-sizing:content-box;visibility:hidden;max-height:144px;overflow:hidden}.Mbwy4a_fieldInput{resize:none;color:var(--dsw-alias-label-primary);caret-color:var(--dsw-alias-state-business-primary);background:0 0;border:none;outline:none;overflow-y:auto}.Mbwy4a_fieldInput::placeholder{color:var(--dsw-alias-label-caption)}.Mbwy4a_customInline{flex:1}.Mbwy4a_customBlock{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-module-platform);--dsh-answer-field-padding:8px 12px;flex-shrink:0;min-height:64px;margin:0 12px}.Mbwy4a_customBlock:focus-within{border-color:var(--dsw-alias-state-business-primary)}.Mbwy4a_footer{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding:0 10px 0 18px;display:flex}.Mbwy4a_feedback{min-height:16px;color:var(--dsw-alias-state-error-primary);text-align:right;flex:1;font-size:11px;line-height:16px}@media (width<=720px){.Mbwy4a_card{border-radius:var(--dsw-radius-xl)}.Mbwy4a_header{padding:10px 12px 0 18px}.Mbwy4a_options{padding:4px 8px}.Mbwy4a_title{font-size:15px;line-height:21px}.Mbwy4a_option,.Mbwy4a_customRow{padding:8px 6px}.Mbwy4a_footer{align-items:flex-end;padding:0 10px}.Mbwy4a_footerActions{flex-shrink:0}}@media (prefers-reduced-motion:reduce){.Mbwy4a_option,.Mbwy4a_customRow{transition:none}}";
|
|
337
335
|
const tagId = "@deepseek-ai/dsh-client-ui-user-questions/QuestionComposer.module.css";
|
|
338
336
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
339
337
|
const tag = document.createElement("style");
|
|
@@ -397,7 +395,7 @@ window.__ModuleLoader__.load({
|
|
|
397
395
|
}
|
|
398
396
|
/** Return whether a text-field key event belongs to an active IME composition. */
|
|
399
397
|
function isComposing(event) {
|
|
400
|
-
return event.nativeEvent.isComposing || event.nativeEvent
|
|
398
|
+
return event.nativeEvent.isComposing || Reflect.get(event.nativeEvent, "keyCode") === 229;
|
|
401
399
|
}
|
|
402
400
|
/**
|
|
403
401
|
* Auto-growing free-text answer: a textarea, so a long answer soft-wraps and
|
|
@@ -460,7 +458,8 @@ window.__ModuleLoader__.load({
|
|
|
460
458
|
}, question.key) : (0, react_jsx_runtime.jsx)(PlanReviewPanel, {
|
|
461
459
|
pending: question,
|
|
462
460
|
review,
|
|
463
|
-
t: props.t
|
|
461
|
+
t: props.t,
|
|
462
|
+
renderSlot: props.renderSlot
|
|
464
463
|
}, question.key);
|
|
465
464
|
}
|
|
466
465
|
function QuestionFlow({ pending, t, useStore, actions }) {
|
|
@@ -468,7 +467,12 @@ window.__ModuleLoader__.load({
|
|
|
468
467
|
const markdownLabels = (0, react.useMemo)(() => ({
|
|
469
468
|
code: {
|
|
470
469
|
copyLabel: t("copy"),
|
|
471
|
-
copiedLabel: t("copied")
|
|
470
|
+
copiedLabel: t("copied"),
|
|
471
|
+
toolbarLabels: {
|
|
472
|
+
codeLabel: t("codeBlock.title"),
|
|
473
|
+
wrapLabel: t("codeBlock.wrap"),
|
|
474
|
+
unwrapLabel: t("codeBlock.unwrap")
|
|
475
|
+
}
|
|
472
476
|
},
|
|
473
477
|
footnotes: t("markdown.footnotes")
|
|
474
478
|
}), [t]);
|
|
@@ -623,7 +627,7 @@ window.__ModuleLoader__.load({
|
|
|
623
627
|
onClick: () => {
|
|
624
628
|
setMinimized((current) => !current);
|
|
625
629
|
},
|
|
626
|
-
children: minimized ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
630
|
+
children: minimized ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronUpOutlineRegular, {}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {})
|
|
627
631
|
}), (0, react_jsx_runtime.jsx)("button", {
|
|
628
632
|
type: "button",
|
|
629
633
|
className: QuestionComposer_module_css_default.iconButton,
|
|
@@ -631,7 +635,7 @@ window.__ModuleLoader__.load({
|
|
|
631
635
|
title: t("nav.cancel"),
|
|
632
636
|
disabled: busy !== null,
|
|
633
637
|
onClick: cancelFlow,
|
|
634
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
638
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, {})
|
|
635
639
|
})]
|
|
636
640
|
})]
|
|
637
641
|
}), !minimized && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -667,7 +671,7 @@ window.__ModuleLoader__.load({
|
|
|
667
671
|
children: [question.multiSelect === true ? (0, react_jsx_runtime.jsx)("span", {
|
|
668
672
|
className: clsx(QuestionComposer_module_css_default.checkbox, selected && QuestionComposer_module_css_default.checkboxChecked),
|
|
669
673
|
"aria-hidden": "true",
|
|
670
|
-
children: selected && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
674
|
+
children: selected && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckOutlineRegular, { size: 12 })
|
|
671
675
|
}) : (0, react_jsx_runtime.jsx)("span", {
|
|
672
676
|
className: QuestionComposer_module_css_default.number,
|
|
673
677
|
children: optionIndex + 1
|
|
@@ -697,11 +701,11 @@ window.__ModuleLoader__.load({
|
|
|
697
701
|
children: [question.multiSelect === true ? (0, react_jsx_runtime.jsx)("span", {
|
|
698
702
|
className: clsx(QuestionComposer_module_css_default.checkbox, draft.custom !== "" && QuestionComposer_module_css_default.checkboxChecked),
|
|
699
703
|
"aria-hidden": "true",
|
|
700
|
-
children: draft.custom !== "" && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
704
|
+
children: draft.custom !== "" && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckOutlineRegular, { size: 12 })
|
|
701
705
|
}) : (0, react_jsx_runtime.jsx)("span", {
|
|
702
706
|
className: QuestionComposer_module_css_default.number,
|
|
703
707
|
"aria-hidden": "true",
|
|
704
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
708
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEditOutlineRegular, { size: 12 })
|
|
705
709
|
}), (0, react_jsx_runtime.jsx)(AnswerField, {
|
|
706
710
|
variant: "inline",
|
|
707
711
|
value: draft.custom,
|
|
@@ -738,7 +742,7 @@ window.__ModuleLoader__.load({
|
|
|
738
742
|
replaceProgress(index - 1, drafts);
|
|
739
743
|
setError(null);
|
|
740
744
|
},
|
|
741
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
745
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronLeftOutlineRegular, {})
|
|
742
746
|
}),
|
|
743
747
|
(0, react_jsx_runtime.jsxs)("span", {
|
|
744
748
|
className: QuestionComposer_module_css_default.progress,
|
|
@@ -757,7 +761,7 @@ window.__ModuleLoader__.load({
|
|
|
757
761
|
replaceProgress(index + 1, drafts);
|
|
758
762
|
setError(null);
|
|
759
763
|
},
|
|
760
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
764
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {})
|
|
761
765
|
})
|
|
762
766
|
]
|
|
763
767
|
}),
|
|
@@ -799,12 +803,12 @@ window.__ModuleLoader__.load({
|
|
|
799
803
|
"nav.cancel": "放弃整组问题",
|
|
800
804
|
"option.recommended": "推荐",
|
|
801
805
|
"custom.placeholder": "输入你的答案",
|
|
802
|
-
"action.skip": "
|
|
806
|
+
"action.skip": "跳过",
|
|
803
807
|
"action.next": "下一题",
|
|
804
808
|
"plan.header": "计划待审",
|
|
805
|
-
"plan.approve": "
|
|
809
|
+
"plan.approve": "同意执行",
|
|
806
810
|
"plan.decline": "拒绝",
|
|
807
|
-
"plan.discuss": "
|
|
811
|
+
"plan.discuss": "要求修改"
|
|
808
812
|
};
|
|
809
813
|
/** English dictionary, checked complete against the zh key set. */
|
|
810
814
|
const en = {
|
|
@@ -817,12 +821,12 @@ window.__ModuleLoader__.load({
|
|
|
817
821
|
"nav.cancel": "Dismiss all questions",
|
|
818
822
|
"option.recommended": "Recommended",
|
|
819
823
|
"custom.placeholder": "Type your answer",
|
|
820
|
-
"action.skip": "Skip
|
|
824
|
+
"action.skip": "Skip",
|
|
821
825
|
"action.next": "Next",
|
|
822
826
|
"plan.header": "Plan review",
|
|
823
827
|
"plan.approve": "Approve",
|
|
824
828
|
"plan.decline": "Refuse",
|
|
825
|
-
"plan.discuss": "
|
|
829
|
+
"plan.discuss": "Request changes"
|
|
826
830
|
};
|
|
827
831
|
//#endregion
|
|
828
832
|
//#region lib/types/client/index.js
|
|
@@ -875,7 +879,11 @@ window.__ModuleLoader__.load({
|
|
|
875
879
|
name: "conversation.composer",
|
|
876
880
|
select: ({ pendingInteraction }) => pendingInteraction instanceof PendingQuestion ? pendingInteraction : null,
|
|
877
881
|
locale: NS,
|
|
878
|
-
store: questionDraftStore
|
|
882
|
+
store: questionDraftStore,
|
|
883
|
+
children: { "conversation.plan-review.actions": {
|
|
884
|
+
kind: "list",
|
|
885
|
+
scope: "session"
|
|
886
|
+
} }
|
|
879
887
|
}, QuestionComposer));
|
|
880
888
|
ctx.remote.$on("user-questions/request", function(request, next) {
|
|
881
889
|
return answerQuestion(ctx, this, request, next, registerPendingInteraction);
|
|
@@ -9,7 +9,7 @@ window.__ModuleLoader__.load({
|
|
|
9
9
|
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
10
10
|
let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
|
|
11
11
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-workflow-run/src/client/WorkflowRunPanel.module.css.mjs
|
|
12
|
-
const css = ".DBuyfa_root{width:100%;min-width:0}.DBuyfa_runHeader{box-sizing:border-box;background:var(--dsw-alias-bg-module-platform);
|
|
12
|
+
const css = ".DBuyfa_root{width:100%;min-width:0}.DBuyfa_runHeader{box-sizing:border-box;border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-module-platform);align-items:center;gap:6px;width:100%;min-width:0;height:32px;padding:0 8px;display:flex}.DBuyfa_runHeader:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}.DBuyfa_runLeading{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;margin-right:0;display:inline-flex}.DBuyfa_runTitle{max-width:42%;color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size-secondary,13px);font-weight:510;line-height:calc(24px + var(--dsh-content-font-delta,0px));text-overflow:ellipsis;white-space:nowrap;flex:none;overflow:hidden}.DBuyfa_runSummary{min-width:0;color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(18px + var(--dsh-content-font-delta-secondary,0px));text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.DBuyfa_statusTail{height:20px;color:var(--dsw-alias-label-secondary);white-space:nowrap;flex:none;align-items:center;gap:4px;font-size:11px;font-weight:510;line-height:16px;display:inline-flex;overflow:hidden}.DBuyfa_phaseHeader{box-sizing:border-box;align-items:center;gap:6px;width:100%;min-width:0;height:32px;display:flex}.DBuyfa_phaseHeader:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px;border-radius:var(--dsw-radius-md)}.DBuyfa_phaseLeading{width:calc(16px + var(--dsh-content-font-delta,0px));height:calc(16px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;margin-right:0;display:inline-flex}.DBuyfa_phaseTitle{min-width:0;max-width:42%;color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(24px + var(--dsh-content-font-delta,0px));text-overflow:ellipsis;white-space:nowrap;flex:0 auto;overflow:hidden}.DBuyfa_phaseCount{min-width:0;color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.DBuyfa_phaseStatus{width:calc(132px + var(--dsh-content-font-delta-secondary,0px) * 10);color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:none;overflow:hidden}.DBuyfa_separator{corner-shape:round;background:var(--dsw-alias-label-tertiary);border-radius:50%;flex:none;width:2px;height:2px}.DBuyfa_phaseList{flex-direction:column;gap:4px;min-width:0;padding:4px 0 0 16px;display:flex}.DBuyfa_phase{min-width:0}.DBuyfa_members{flex-direction:column;gap:2px;min-width:0;padding:0 0 0 16px;display:flex}.DBuyfa_memberRow,.DBuyfa_memberButton{width:100%;min-width:0;min-height:calc(24px + var(--dsh-content-font-delta,0px));border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-secondary);font:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:12px;padding:0;display:flex}.DBuyfa_memberButton{cursor:pointer}.DBuyfa_memberButton .DBuyfa_memberLabel{color:var(--dsw-alias-link);font-weight:500;text-decoration:none}.DBuyfa_memberButton:hover .DBuyfa_memberLabel,.DBuyfa_memberButton:focus-visible .DBuyfa_memberLabel{text-underline-offset:3px;text-decoration:underline dotted}.DBuyfa_dotSlot{width:16px;height:calc(24px + var(--dsh-content-font-delta,0px));flex:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.DBuyfa_memberButton:focus-visible{outline:none}.DBuyfa_memberButton:focus-visible .DBuyfa_memberLabelWrap{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-1px}.DBuyfa_memberLabelWrap{min-width:0;height:calc(24px + var(--dsh-content-font-delta,0px));border-radius:var(--dsw-radius-sm);flex:1;align-items:center;padding:0 2px;display:flex;overflow:hidden}.DBuyfa_memberLabel{min-width:0;color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size,14px);line-height:calc(24px + var(--dsh-content-font-delta,0px));text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.DBuyfa_memberStatus{width:64px;color:var(--dsw-alias-label-secondary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:none;overflow:hidden}.DBuyfa_empty{color:var(--dsw-alias-label-tertiary);font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));padding:0}@media (width<=560px){.DBuyfa_phaseList,.DBuyfa_members{padding-left:12px}}.DBuyfa_headerContent{flex:1}.DBuyfa_headerContentLayout{gap:6px}";
|
|
13
13
|
const tagId = "@deepseek-ai/dsh-client-ui-workflow-run/WorkflowRunPanel.module.css";
|
|
14
14
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
15
15
|
const tag = document.createElement("style");
|
|
@@ -21,6 +21,8 @@ window.__ModuleLoader__.load({
|
|
|
21
21
|
var WorkflowRunPanel_module_css_default = {
|
|
22
22
|
"dotSlot": "DBuyfa_dotSlot",
|
|
23
23
|
"empty": "DBuyfa_empty",
|
|
24
|
+
"headerContent": "DBuyfa_headerContent",
|
|
25
|
+
"headerContentLayout": "DBuyfa_headerContentLayout",
|
|
24
26
|
"memberButton": "DBuyfa_memberButton",
|
|
25
27
|
"memberLabel": "DBuyfa_memberLabel",
|
|
26
28
|
"memberLabelWrap": "DBuyfa_memberLabelWrap",
|
|
@@ -168,18 +170,18 @@ window.__ModuleLoader__.load({
|
|
|
168
170
|
if (active.length === 0) return statusCount("completed", count("completed"), t);
|
|
169
171
|
return (active.includes("interrupted") && count("completed") > 0 ? ["completed", ...active] : active).map((status) => statusCount(status, count(status), t)).join(" · ");
|
|
170
172
|
}
|
|
171
|
-
function navigableMembers(sessions, phases, parentId) {
|
|
172
|
-
const
|
|
173
|
+
function navigableMembers(sessions, phases, parentId, statuses) {
|
|
174
|
+
const catalog = sessions.projectionsBySession[parentId];
|
|
173
175
|
const result = [];
|
|
174
176
|
for (const phase of phases) for (const member of phase.members) {
|
|
175
|
-
const
|
|
176
|
-
if (member.status === "running" &&
|
|
177
|
+
const child = catalog?.values.subagentCatalog?.find((entry) => entry.id === member.childId);
|
|
178
|
+
if (member.status === "running" && child !== void 0 && (statuses.get(child.id)?.running ?? sessions.byId[child.id]?.running) === true) result.push(member.childId);
|
|
177
179
|
}
|
|
178
180
|
return result;
|
|
179
181
|
}
|
|
180
182
|
function RunHeader({ children, count, name, onToggle, open, status, t }) {
|
|
181
183
|
return (0, react_jsx_runtime.jsx)(StatusDisclosure, {
|
|
182
|
-
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
184
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {}),
|
|
183
185
|
title: t("run.title", { name }),
|
|
184
186
|
open,
|
|
185
187
|
onToggle,
|
|
@@ -187,6 +189,8 @@ window.__ModuleLoader__.load({
|
|
|
187
189
|
previewChevron: false,
|
|
188
190
|
keepContentWhenOpen: true,
|
|
189
191
|
rowClassName: WorkflowRunPanel_module_css_default.runHeader,
|
|
192
|
+
contentClassName: WorkflowRunPanel_module_css_default.headerContent,
|
|
193
|
+
contentLayoutClassName: WorkflowRunPanel_module_css_default.headerContentLayout,
|
|
190
194
|
leadingClassName: WorkflowRunPanel_module_css_default.runLeading,
|
|
191
195
|
titleClassName: WorkflowRunPanel_module_css_default.runTitle,
|
|
192
196
|
collapsedContent: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
@@ -207,7 +211,7 @@ window.__ModuleLoader__.load({
|
|
|
207
211
|
children
|
|
208
212
|
});
|
|
209
213
|
}
|
|
210
|
-
function MemberRow({ member, navigable, openSession, t }) {
|
|
214
|
+
function MemberRow({ member, navigable, openSession, parentSessionId, t }) {
|
|
211
215
|
const name = readableMember(member.label, t);
|
|
212
216
|
const [focused, setFocused] = (0, react.useState)(false);
|
|
213
217
|
const renderButton = navigable || focused;
|
|
@@ -250,17 +254,21 @@ window.__ModuleLoader__.load({
|
|
|
250
254
|
setFocused(false);
|
|
251
255
|
},
|
|
252
256
|
onClick: navigable ? () => {
|
|
253
|
-
openSession(
|
|
257
|
+
openSession({
|
|
258
|
+
parentSessionId,
|
|
259
|
+
childSessionId: member.childId,
|
|
260
|
+
mode: "one-shot"
|
|
261
|
+
});
|
|
254
262
|
} : void 0,
|
|
255
263
|
children: content
|
|
256
264
|
});
|
|
257
265
|
}
|
|
258
|
-
function PhaseSection({ contentRef, onContentBlur, onToggle, open, pendingCleanCollapse, phase, navigable, openSession, t }) {
|
|
266
|
+
function PhaseSection({ contentRef, onContentBlur, onToggle, open, pendingCleanCollapse, phase, navigable, openSession, parentSessionId, t }) {
|
|
259
267
|
return (0, react_jsx_runtime.jsx)("div", {
|
|
260
268
|
className: WorkflowRunPanel_module_css_default.phase,
|
|
261
269
|
onMouseDownCapture: pendingCleanCollapse ? preventPendingHeaderFocus : void 0,
|
|
262
270
|
children: (0, react_jsx_runtime.jsx)(StatusDisclosure, {
|
|
263
|
-
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
271
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {}),
|
|
264
272
|
title: readablePhase(phase.phase, t),
|
|
265
273
|
open,
|
|
266
274
|
onToggle,
|
|
@@ -268,6 +276,8 @@ window.__ModuleLoader__.load({
|
|
|
268
276
|
previewChevron: false,
|
|
269
277
|
keepContentWhenOpen: true,
|
|
270
278
|
rowClassName: WorkflowRunPanel_module_css_default.phaseHeader,
|
|
279
|
+
contentClassName: WorkflowRunPanel_module_css_default.headerContent,
|
|
280
|
+
contentLayoutClassName: WorkflowRunPanel_module_css_default.headerContentLayout,
|
|
271
281
|
leadingClassName: WorkflowRunPanel_module_css_default.phaseLeading,
|
|
272
282
|
titleClassName: WorkflowRunPanel_module_css_default.phaseTitle,
|
|
273
283
|
collapsedContent: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
@@ -294,6 +304,7 @@ window.__ModuleLoader__.load({
|
|
|
294
304
|
member,
|
|
295
305
|
navigable: navigable.includes(member.childId),
|
|
296
306
|
openSession,
|
|
307
|
+
parentSessionId,
|
|
297
308
|
t
|
|
298
309
|
}, member.seq))
|
|
299
310
|
})
|
|
@@ -301,7 +312,7 @@ window.__ModuleLoader__.load({
|
|
|
301
312
|
});
|
|
302
313
|
}
|
|
303
314
|
/** Render one durable workflow run with status-driven run and phase disclosure. */
|
|
304
|
-
function WorkflowRunPanel({ node, sessionId, useSessions, openSession, t }) {
|
|
315
|
+
function WorkflowRunPanel({ node, sessionId, useSessions, useSessionStatus, openSession, t }) {
|
|
305
316
|
const phaseFacts = (0, react.useMemo)(() => node.data.phases.map((phase) => [phase.key, phaseDisclosureFacts(phase)]), [node.data.phases]);
|
|
306
317
|
const runFacts = (0, react.useMemo)(() => runDisclosureFacts(node.data.status, phaseFacts), [node.data.status, phaseFacts]);
|
|
307
318
|
const totalMembers = runFacts.activityCount;
|
|
@@ -311,7 +322,8 @@ window.__ModuleLoader__.load({
|
|
|
311
322
|
}));
|
|
312
323
|
const runContentRef = (0, react.useRef)(null);
|
|
313
324
|
const phaseContentRefs = (0, react.useRef)(/* @__PURE__ */ new Map());
|
|
314
|
-
const
|
|
325
|
+
const statuses = useSessionStatus((value) => value);
|
|
326
|
+
const navigable = useSessions((sessions) => navigableMembers(sessions, node.data.phases, sessionId, statuses), _deepseek_ai_dsh_client_store.shallowEqual);
|
|
315
327
|
(0, react.useLayoutEffect)(() => {
|
|
316
328
|
setDisclosures((current) => {
|
|
317
329
|
const phases = /* @__PURE__ */ new Map();
|
|
@@ -427,6 +439,7 @@ window.__ModuleLoader__.load({
|
|
|
427
439
|
phase,
|
|
428
440
|
navigable,
|
|
429
441
|
openSession,
|
|
442
|
+
parentSessionId: sessionId,
|
|
430
443
|
t
|
|
431
444
|
}, phase.key);
|
|
432
445
|
})
|
|
@@ -619,6 +632,7 @@ window.__ModuleLoader__.load({
|
|
|
619
632
|
/** Required services for Definition, keyed renderer, navigation, and copy. */
|
|
620
633
|
const inject = [
|
|
621
634
|
"uiConversation",
|
|
635
|
+
"uiWorkspace",
|
|
622
636
|
"slots",
|
|
623
637
|
"sessions",
|
|
624
638
|
"locale"
|
|
@@ -634,8 +648,8 @@ window.__ModuleLoader__.load({
|
|
|
634
648
|
name: "conversation.chat.node",
|
|
635
649
|
key: "workflow-run",
|
|
636
650
|
locale: NS,
|
|
637
|
-
inject: () => ({ openSession: (
|
|
638
|
-
ctx.
|
|
651
|
+
inject: () => ({ openSession: (target) => {
|
|
652
|
+
ctx.uiWorkspace.openSession(target);
|
|
639
653
|
} })
|
|
640
654
|
}, WorkflowRunPanel));
|
|
641
655
|
}
|