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
|
@@ -30,11 +30,13 @@ window.__ModuleLoader__.load({
|
|
|
30
30
|
* @param viewport - available frame width in px.
|
|
31
31
|
* @param sidebar - sidebar width preference in px (0 = closed).
|
|
32
32
|
* @param rightbar - requested right panel width in px (0 = no track).
|
|
33
|
+
* @param collapsedWidth - track width of the closed sidebar; the default keeps
|
|
34
|
+
* the icon rail, 0 hides the column entirely (macOS desktop).
|
|
33
35
|
* @returns actual widths after shrinking or removing the right track; only
|
|
34
36
|
* without that track may the center fall below its minimum, down to zero.
|
|
35
37
|
*/
|
|
36
|
-
function computeColumns(viewport, sidebar, rightbar) {
|
|
37
|
-
const s = sidebar === 0 ?
|
|
38
|
+
function computeColumns(viewport, sidebar, rightbar, collapsedWidth = 56) {
|
|
39
|
+
const s = sidebar === 0 ? collapsedWidth : clampWidth(sidebar, 264, 420);
|
|
38
40
|
const available = viewport - s - 400;
|
|
39
41
|
const r = rightbar === 0 || available < 300 ? 0 : Math.min(available, clampWidth(rightbar, 300, viewport * RIGHTBAR_MAX_RATIO));
|
|
40
42
|
return {
|
|
@@ -55,7 +57,7 @@ window.__ModuleLoader__.load({
|
|
|
55
57
|
function DocumentTitle({ useSessions, usePanelInfo, productTitle }) {
|
|
56
58
|
const showSessionTitle = usePanelInfo((info) => info.activePanelId === null);
|
|
57
59
|
const title = useSessions((state) => {
|
|
58
|
-
const current = state.
|
|
60
|
+
const current = Object.values(state.byId).find((session) => (session.retainedBy.mainView ?? 0) > 0)?.id;
|
|
59
61
|
return !showSessionTitle || current === void 0 ? void 0 : state.byId[current]?.title;
|
|
60
62
|
});
|
|
61
63
|
(0, react.useEffect)(() => {
|
|
@@ -68,7 +70,7 @@ window.__ModuleLoader__.load({
|
|
|
68
70
|
}
|
|
69
71
|
//#endregion
|
|
70
72
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-layout/src/client/AppFrame.module.css.mjs
|
|
71
|
-
const css = ".pI_x6G_frame{background:var(--dsw-alias-bg-base);height:100%;transition:grid-template-columns var(--ds-transition-duration-slow) var(--ds-ease-in-out);grid-template-rows:
|
|
73
|
+
const css = ".pI_x6G_frame{background:var(--dsw-alias-bg-base);grid-template-rows:100%;height:100%;display:grid;position:relative;overflow:hidden}.pI_x6G_frame[data-animating]{transition:grid-template-columns var(--ds-transition-duration-slow) var(--ds-ease-in-out)}.pI_x6G_frame[data-dragging]{transition:none}[data-windows-titlebar] .pI_x6G_frame{--dsh-windows-content-radius:16px;box-sizing:border-box;padding-top:var(--dsh-windows-titlebar-height);background:var(--dsw-specific-sidebar-fill);grid-template-rows:minmax(0,1fr)}[data-windows-titlebar] .pI_x6G_centerCol{background:var(--dsw-alias-bg-base);border-radius:var(--dsh-windows-content-radius) 0 0 0;corner-shape:round}[data-windows-titlebar] .pI_x6G_frame:before{content:\"\";height:var(--dsh-windows-titlebar-height);background:var(--dsw-specific-sidebar-fill);-webkit-app-region:drag;position:absolute;inset:0 0 auto}[data-windows-titlebar] .pI_x6G_sidebarCol{border-right:none}[data-windows-titlebar] .pI_x6G_handle{top:var(--dsh-windows-titlebar-height)}@media (prefers-reduced-motion:reduce){.pI_x6G_frame[data-animating]{transition:none}}.pI_x6G_sidebarCol{background:var(--dsw-specific-sidebar-fill);border-right:.5px solid var(--dsw-alias-border-l3);min-width:0;overflow:hidden}.pI_x6G_centerCol{flex-direction:column;min-width:0;display:flex;overflow:hidden}[data-platform=darwin] .pI_x6G_frame{background:0 0}html[data-platform=darwin]{--dsh-frame-top-clearance:48px}html[data-windows-titlebar]{--dsh-frame-top-clearance:var(--dsh-windows-titlebar-height);--dsh-frame-chrome-top:var(--dsh-windows-titlebar-height)}html[data-platform=darwin],html[data-windows-titlebar]{--dsh-frame-overlay-top:calc(var(--dsh-frame-top-clearance) + 20px)}html[data-platform=darwin][data-fullscreen],html[data-windows-titlebar][data-fullscreen]{--dsh-frame-overlay-top:20px;--dsh-frame-chrome-top:0px}[data-platform=darwin] .pI_x6G_sidebarCol{background:linear-gradient(to bottom, #7a9bf01a, #7a9bf000 35%, #8f89b800 68%, #8f89b817), color-mix(in srgb, color-mix(in srgb, var(--dsw-specific-sidebar-fill) 97%, #7a9bf0) 40%, transparent);border-right:none}[data-platform=darwin] [data-ds-dark-theme] .pI_x6G_sidebarCol{background:linear-gradient(to bottom, #7a9bf014, #7a9bf000 35%, #8f89b800 68%, #8f89b812), color-mix(in srgb, var(--dsw-specific-sidebar-fill) 50%, transparent)}@media (prefers-reduced-transparency:reduce){[data-platform=darwin] .pI_x6G_sidebarCol,[data-platform=darwin] [data-ds-dark-theme] .pI_x6G_sidebarCol{background:color-mix(in srgb, var(--dsw-specific-sidebar-fill) 90%, transparent)}}[data-platform=darwin] .pI_x6G_centerCol{background:var(--dsw-alias-bg-base);border-left:.5px solid var(--dsw-alias-border-l3)}[data-platform=darwin] .pI_x6G_rightbarCol{background:var(--dsw-alias-bg-base)}[data-platform=darwin] [data-sidebar-collapsed] .pI_x6G_centerCol{border-left:none}[data-platform=darwin] .pI_x6G_frame[data-sidebar-collapsed]{--dsh-frame-leading-clearance:160px}[data-platform=darwin][data-fullscreen] .pI_x6G_frame[data-sidebar-collapsed]{--dsh-frame-leading-clearance:84px}[data-platform=darwin][data-fullscreen] .pI_x6G_leadingSeat{left:12px}.pI_x6G_leadingSeat{z-index:15;-webkit-app-region:no-drag;align-items:center;display:flex;position:absolute;top:11px;left:88px}.pI_x6G_handle{cursor:col-resize;z-index:11;touch-action:none;width:8px;margin-left:-4px;position:absolute;top:0;bottom:0}.pI_x6G_frame[data-animating] .pI_x6G_handle{transition:left var(--ds-transition-duration-slow) var(--ds-ease-in-out)}.pI_x6G_frame[data-dragging] .pI_x6G_handle,.pI_x6G_frame[data-rightbar-fullscreen],.pI_x6G_frame[data-rightbar-fullscreen] .pI_x6G_handle,.pI_x6G_frame[data-rightbar-instant],.pI_x6G_frame[data-rightbar-instant] .pI_x6G_handle{transition:none}@media (prefers-reduced-motion:reduce){.pI_x6G_frame[data-animating] .pI_x6G_handle{transition:none}}.pI_x6G_rightbarCol{min-width:0;position:relative;overflow:visible}.pI_x6G_overlayLayer{z-index:20;pointer-events:none;position:absolute;inset:0}.pI_x6G_overlayLayer>*{pointer-events:auto}";
|
|
72
74
|
const tagId = "@deepseek-ai/dsh-client-ui-layout/AppFrame.module.css";
|
|
73
75
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
74
76
|
const tag = document.createElement("style");
|
|
@@ -81,6 +83,7 @@ window.__ModuleLoader__.load({
|
|
|
81
83
|
"centerCol": "pI_x6G_centerCol",
|
|
82
84
|
"frame": "pI_x6G_frame",
|
|
83
85
|
"handle": "pI_x6G_handle",
|
|
86
|
+
"leadingSeat": "pI_x6G_leadingSeat",
|
|
84
87
|
"overlayLayer": "pI_x6G_overlayLayer",
|
|
85
88
|
"rightbarCol": "pI_x6G_rightbarCol",
|
|
86
89
|
"sidebarCol": "pI_x6G_sidebarCol"
|
|
@@ -234,8 +237,10 @@ window.__ModuleLoader__.load({
|
|
|
234
237
|
const sidebarCollapsed = narrow ? !layoutInfo.narrowExpanded : layoutInfo.sidebar === 0;
|
|
235
238
|
const sidebarPreference = sidebarCollapsed ? 0 : layoutInfo.sidebar === 0 ? 280 : layoutInfo.sidebar;
|
|
236
239
|
const rightbarPreference = layoutInfo.rightbar ?? viewport * .45;
|
|
237
|
-
const
|
|
238
|
-
const
|
|
240
|
+
const darwin = document.documentElement.dataset.platform === "darwin";
|
|
241
|
+
const collapsedWidth = darwin || document.documentElement.hasAttribute("data-windows-titlebar") ? 0 : 56;
|
|
242
|
+
const normal = computeColumns(viewport, !layoutInfo.rightbarShown && narrow ? 0 : sidebarPreference, rightbarPreference, collapsedWidth);
|
|
243
|
+
const cols = computeColumns(viewport, sidebarPreference, layoutInfo.rightbarTrack ? rightbarPreference : 0, collapsedWidth);
|
|
239
244
|
const colsRef = (0, react.useRef)(cols);
|
|
240
245
|
colsRef.current = cols;
|
|
241
246
|
const rightbarWidth = (0, react.useRef)(normal.rightbar);
|
|
@@ -243,6 +248,36 @@ window.__ModuleLoader__.load({
|
|
|
243
248
|
const sidebarBase = (0, react.useRef)(0);
|
|
244
249
|
const rightbarBase = (0, react.useRef)(0);
|
|
245
250
|
const [dragging, setDragging] = (0, react.useState)(false);
|
|
251
|
+
const [animating, setAnimating] = (0, react.useState)(0);
|
|
252
|
+
const trackToggle = `${sidebarCollapsed}:${layoutInfo.rightbarTrack}`;
|
|
253
|
+
const previousToggle = (0, react.useRef)(trackToggle);
|
|
254
|
+
const previousViewport = (0, react.useRef)(viewport);
|
|
255
|
+
(0, react.useLayoutEffect)(() => {
|
|
256
|
+
const viewportChanged = previousViewport.current !== viewport;
|
|
257
|
+
previousViewport.current = viewport;
|
|
258
|
+
if (previousToggle.current === trackToggle) return;
|
|
259
|
+
previousToggle.current = trackToggle;
|
|
260
|
+
if (viewportChanged) return;
|
|
261
|
+
setAnimating((token) => token + 1);
|
|
262
|
+
}, [trackToggle, viewport]);
|
|
263
|
+
(0, react.useEffect)(() => {
|
|
264
|
+
if (animating === 0) return;
|
|
265
|
+
const frame = frameRef.current;
|
|
266
|
+
/* v8 ignore next -- the ref is always attached by effect time: the frame div renders unconditionally. */
|
|
267
|
+
if (frame === null) return;
|
|
268
|
+
const settle = () => {
|
|
269
|
+
setAnimating(0);
|
|
270
|
+
};
|
|
271
|
+
const onTransitionEnd = (event) => {
|
|
272
|
+
if (event.target === frame && event.propertyName === "grid-template-columns") settle();
|
|
273
|
+
};
|
|
274
|
+
frame.addEventListener("transitionend", onTransitionEnd);
|
|
275
|
+
const timer = setTimeout(settle, 600);
|
|
276
|
+
return () => {
|
|
277
|
+
frame.removeEventListener("transitionend", onTransitionEnd);
|
|
278
|
+
clearTimeout(timer);
|
|
279
|
+
};
|
|
280
|
+
}, [animating]);
|
|
246
281
|
const onDragEnd = (0, react.useCallback)(() => {
|
|
247
282
|
setDragging(false);
|
|
248
283
|
}, []);
|
|
@@ -261,6 +296,7 @@ window.__ModuleLoader__.load({
|
|
|
261
296
|
actions.setRightbar(rightbarBase.current - dx);
|
|
262
297
|
}, [actions]);
|
|
263
298
|
const productTitle = "DeepSeek Harness";
|
|
299
|
+
const rightbarMax = cols.rightbar === 0 ? 0 : clampWidth(rightbarPreference, 300, viewport * RIGHTBAR_MAX_RATIO);
|
|
264
300
|
const sidebar = (0, react.useMemo)(() => renderSlot("sidebar", {
|
|
265
301
|
collapsed: sidebarCollapsed,
|
|
266
302
|
width: cols.sidebar
|
|
@@ -274,15 +310,21 @@ window.__ModuleLoader__.load({
|
|
|
274
310
|
renderSlot
|
|
275
311
|
}), [usePanelInfo, renderSlot]);
|
|
276
312
|
const overlays = (0, react.useMemo)(() => renderSlot("shell.overlay", {}), [renderSlot]);
|
|
313
|
+
const leading = (0, react.useMemo)(() => renderSlot("shell.leading", {}), [renderSlot]);
|
|
314
|
+
const leadingMounted = darwin && sidebarCollapsed;
|
|
277
315
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
278
316
|
ref: frameRef,
|
|
279
317
|
className: AppFrame_module_css_default.frame,
|
|
280
|
-
style: {
|
|
318
|
+
style: {
|
|
319
|
+
...document.documentElement.hasAttribute("data-windows-titlebar") ? { "--dsh-windows-sidebar-width": `${cols.sidebar}px` } : {},
|
|
320
|
+
gridTemplateColumns: `${cols.sidebar}px minmax(${cols.rightbar === 0 ? 0 : 400}px, 1fr) minmax(0px, ${rightbarMax}px)`
|
|
321
|
+
},
|
|
281
322
|
"data-sidebar-collapsed": sidebarCollapsed || void 0,
|
|
282
323
|
"data-rightbar-collapsed": cols.rightbar === 0 || void 0,
|
|
283
324
|
"data-rightbar-fullscreen": layoutInfo.rightbarFullscreen || void 0,
|
|
284
325
|
"data-rightbar-instant": layoutInfo.rightbarInstant || void 0,
|
|
285
326
|
"data-dragging": dragging || void 0,
|
|
327
|
+
"data-animating": animating > 0 || void 0,
|
|
286
328
|
children: [
|
|
287
329
|
(0, react_jsx_runtime.jsx)(DocumentTitle, {
|
|
288
330
|
productTitle,
|
|
@@ -303,6 +345,11 @@ window.__ModuleLoader__.load({
|
|
|
303
345
|
"data-shell-overlay": true,
|
|
304
346
|
children: overlays
|
|
305
347
|
}),
|
|
348
|
+
leadingMounted && (0, react_jsx_runtime.jsx)("div", {
|
|
349
|
+
className: AppFrame_module_css_default.leadingSeat,
|
|
350
|
+
"data-shell-leading": true,
|
|
351
|
+
children: leading
|
|
352
|
+
}),
|
|
306
353
|
!sidebarCollapsed && (0, react_jsx_runtime.jsx)(DragHandle, {
|
|
307
354
|
side: "sidebar",
|
|
308
355
|
left: cols.sidebar,
|
|
@@ -399,14 +446,17 @@ window.__ModuleLoader__.load({
|
|
|
399
446
|
var LayoutController = class {
|
|
400
447
|
panels;
|
|
401
448
|
hasMainPanel;
|
|
449
|
+
panelInfo;
|
|
402
450
|
navigation = new AbortController();
|
|
403
451
|
/**
|
|
404
452
|
* @param panels - actions of the instance shared with the root entry.
|
|
405
453
|
* @param hasMainPanel - checks the live main-slot registry for a panel id.
|
|
454
|
+
* @param panelInfo - root store's shared central-panel selection source.
|
|
406
455
|
*/
|
|
407
|
-
constructor(panels, hasMainPanel) {
|
|
456
|
+
constructor(panels, hasMainPanel, panelInfo) {
|
|
408
457
|
this.panels = panels;
|
|
409
458
|
this.hasMainPanel = hasMainPanel;
|
|
459
|
+
this.panelInfo = panelInfo;
|
|
410
460
|
}
|
|
411
461
|
/** Select a global panel or return to the Conversation. */
|
|
412
462
|
selectPanel(panelId) {
|
|
@@ -438,9 +488,25 @@ window.__ModuleLoader__.load({
|
|
|
438
488
|
}
|
|
439
489
|
};
|
|
440
490
|
//#endregion
|
|
491
|
+
//#region lib/types/client/shortcut-locales.js
|
|
492
|
+
/** Layout command labels. */
|
|
493
|
+
const zh = { toggle: "展开/收起左侧栏" };
|
|
494
|
+
/** English labels for the same layout commands. */
|
|
495
|
+
const en = { toggle: "Toggle left sidebar" };
|
|
496
|
+
//#endregion
|
|
441
497
|
//#region lib/types/client/theme-presenter.js
|
|
442
498
|
/** Body attribute selecting the dark base palette in the token stylesheets. */
|
|
443
499
|
const DARK_ATTRIBUTE = "data-ds-dark-theme";
|
|
500
|
+
/**
|
|
501
|
+
* Root attribute publishing the theme source (`light`, `dark`, or `system`)
|
|
502
|
+
* for host shells that mirror it into the native theme (the Electron preload
|
|
503
|
+
* forwards it to `nativeTheme.themeSource`, so native chrome, renderer
|
|
504
|
+
* `prefers-color-scheme` queries, and Platform login links follow the app
|
|
505
|
+
* palette on every platform). `system` only when the preference is `system`;
|
|
506
|
+
* a fixed preference (including registered theme ids) publishes its resolved
|
|
507
|
+
* scheme.
|
|
508
|
+
*/
|
|
509
|
+
const THEME_SOURCE_ATTRIBUTE = "data-ds-theme-source";
|
|
444
510
|
/** Body variable carrying the user's content font size in px. */
|
|
445
511
|
const CONTENT_FONT_SIZE_VARIABLE = "--dsh-content-font-size";
|
|
446
512
|
/** Applies theme snapshots to the document; one instance per plugin fiber. */
|
|
@@ -466,6 +532,7 @@ window.__ModuleLoader__.load({
|
|
|
466
532
|
apply(snapshot) {
|
|
467
533
|
const scheme = snapshot.active.colorScheme;
|
|
468
534
|
document.documentElement.style.colorScheme = scheme;
|
|
535
|
+
document.documentElement.setAttribute(THEME_SOURCE_ATTRIBUTE, snapshot.preference === "system" ? "system" : scheme);
|
|
469
536
|
const body = document.body;
|
|
470
537
|
if (scheme === "dark") body.setAttribute(DARK_ATTRIBUTE, "");
|
|
471
538
|
else body.removeAttribute(DARK_ATTRIBUTE);
|
|
@@ -479,9 +546,13 @@ window.__ModuleLoader__.load({
|
|
|
479
546
|
this.themeColorMeta.content = getComputedStyle(body).backgroundColor;
|
|
480
547
|
if (!this.themeColorMeta.isConnected) document.head.append(this.themeColorMeta);
|
|
481
548
|
}
|
|
482
|
-
/**
|
|
549
|
+
/**
|
|
550
|
+
* Retract root color-scheme, the theme-source attribute, the palette
|
|
551
|
+
* attribute, token variables, the font-size axis, and the owned metadata node.
|
|
552
|
+
*/
|
|
483
553
|
dispose() {
|
|
484
554
|
document.documentElement.style.removeProperty("color-scheme");
|
|
555
|
+
document.documentElement.removeAttribute(THEME_SOURCE_ATTRIBUTE);
|
|
485
556
|
const body = document.body;
|
|
486
557
|
body.removeAttribute(DARK_ATTRIBUTE);
|
|
487
558
|
body.style.removeProperty(CONTENT_FONT_SIZE_VARIABLE);
|
|
@@ -496,15 +567,21 @@ window.__ModuleLoader__.load({
|
|
|
496
567
|
const inject = [
|
|
497
568
|
"slots",
|
|
498
569
|
"theme",
|
|
499
|
-
"locale"
|
|
570
|
+
"locale",
|
|
571
|
+
"shortcuts"
|
|
500
572
|
];
|
|
501
573
|
/**
|
|
502
574
|
* Client plugin body: provide ctx.layout, then one register() call — AppFrame
|
|
503
|
-
* into 'root' with the
|
|
575
|
+
* into 'root' with the five child-slot declarations, the layout store seat,
|
|
504
576
|
* and the shared root instance supplying commands and the panel-info source.
|
|
505
577
|
* @param ctx - client root context.
|
|
506
578
|
*/
|
|
507
579
|
function apply(ctx) {
|
|
580
|
+
ctx.effect(() => ctx.locale.register("shortcuts.layout", {
|
|
581
|
+
zh,
|
|
582
|
+
en
|
|
583
|
+
}), "layout: command labels");
|
|
584
|
+
const t = ctx.locale.bind("shortcuts.layout");
|
|
508
585
|
ctx.effect(() => {
|
|
509
586
|
const handle = createLayoutStore();
|
|
510
587
|
const instance = handle.create();
|
|
@@ -512,14 +589,14 @@ window.__ModuleLoader__.load({
|
|
|
512
589
|
...handle,
|
|
513
590
|
create: () => instance
|
|
514
591
|
};
|
|
515
|
-
const layout = new LayoutController(instance.actions, (id) => ctx.slots.entries("main").some((entry) => entry.options.key === id));
|
|
516
592
|
const retainMainPanels = () => {
|
|
517
593
|
instance.actions.retainMainPanels(ctx.slots.entries("main").flatMap((entry) => entry.options.key === void 0 ? [] : [entry.options.key]));
|
|
518
594
|
};
|
|
519
|
-
const
|
|
595
|
+
const layout = new LayoutController(instance.actions, (id) => ctx.slots.entries("main").some((entry) => entry.options.key === id), {
|
|
520
596
|
getSnapshot: () => instance.getSnapshot().panelInfo,
|
|
521
597
|
subscribe: (listener) => instance.subscribe(listener)
|
|
522
|
-
}
|
|
598
|
+
});
|
|
599
|
+
const disposePanelInfo = ctx.slots.provideRoot({ hooks: { panelInfo: layout.panelInfo } });
|
|
523
600
|
const disposeService = ctx.reflect.provide("layout", layout);
|
|
524
601
|
const disposeRegistration = ctx.slots.register({
|
|
525
602
|
name: "root",
|
|
@@ -540,13 +617,53 @@ window.__ModuleLoader__.load({
|
|
|
540
617
|
"shell.overlay": {
|
|
541
618
|
kind: "list",
|
|
542
619
|
scope: "root"
|
|
620
|
+
},
|
|
621
|
+
"shell.leading": {
|
|
622
|
+
kind: "single",
|
|
623
|
+
scope: "root"
|
|
543
624
|
}
|
|
544
625
|
},
|
|
545
626
|
store
|
|
546
627
|
}, AppFrame);
|
|
628
|
+
const disposeShortcut = ctx.shortcuts.register({
|
|
629
|
+
id: "sidebar.left.toggle",
|
|
630
|
+
label: () => t("toggle"),
|
|
631
|
+
aliases: ["sidebar", "toggle left sidebar"],
|
|
632
|
+
defaults: {
|
|
633
|
+
"desktop:macos": {
|
|
634
|
+
code: "KeyB",
|
|
635
|
+
modifiers: ["primary"]
|
|
636
|
+
},
|
|
637
|
+
"desktop:windows": {
|
|
638
|
+
code: "KeyB",
|
|
639
|
+
modifiers: ["primary"]
|
|
640
|
+
},
|
|
641
|
+
"desktop:linux": {
|
|
642
|
+
code: "KeyB",
|
|
643
|
+
modifiers: ["primary"]
|
|
644
|
+
},
|
|
645
|
+
"web:macos": {
|
|
646
|
+
code: "KeyB",
|
|
647
|
+
modifiers: ["primary", "alt"]
|
|
648
|
+
},
|
|
649
|
+
"web:windows": {
|
|
650
|
+
code: "KeyB",
|
|
651
|
+
modifiers: ["primary", "alt"]
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
regions: ["page", "editable"],
|
|
655
|
+
modals: [],
|
|
656
|
+
resolve: () => ({
|
|
657
|
+
status: "handled",
|
|
658
|
+
run: () => {
|
|
659
|
+
layout.toggleSidebar();
|
|
660
|
+
}
|
|
661
|
+
})
|
|
662
|
+
});
|
|
547
663
|
const disposePanels = ctx.slots.subscribe("main", retainMainPanels);
|
|
548
664
|
retainMainPanels();
|
|
549
665
|
return () => {
|
|
666
|
+
disposeShortcut();
|
|
550
667
|
layout.dispose();
|
|
551
668
|
disposePanels();
|
|
552
669
|
disposeRegistration();
|
|
@@ -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-message-feedback/src/client/FeedbackDialog.module.css.mjs
|
|
12
|
-
const css$1 = "._6_jNJa_dialog._6_jNJa_dialog{border-radius:
|
|
12
|
+
const css$1 = "._6_jNJa_dialog._6_jNJa_dialog{border-radius:var(--dsw-radius-panel);gap:38px;width:min(488px,100%)}._6_jNJa_categories{flex-wrap:wrap;gap:8px;margin-top:-14px;display:flex}._6_jNJa_chip{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);height:28px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;padding:0 12px;font-size:13px;line-height:18px;transition:background-color .12s,border-color .12s,color .12s}._6_jNJa_chip:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}._6_jNJa_chip:disabled{cursor:default;opacity:.4}._6_jNJa_chip:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:2px}._6_jNJa_chipActive,._6_jNJa_chipActive:hover:not(:disabled){border-color:var(--dsw-alias-button-primary-fill);background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}._6_jNJa_detail{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);background:var(--dsw-alias-bg-layer-1);width:100%;min-height:116px;max-height:280px;color:var(--dsw-alias-label-primary);font:inherit;field-sizing:content;resize:none;margin-top:18px;padding:12px 14px;font-size:14px;line-height:22px;transition:border-color .12s,box-shadow .12s;display:block}._6_jNJa_detail::placeholder{color:var(--dsw-alias-label-caption)}._6_jNJa_detail:focus{border-color:var(--dsw-alias-border-l3);box-shadow:0 0 0 1px var(--dsw-alias-state-business-primary);outline:none}._6_jNJa_submit{border-radius:var(--dsw-radius-lg);width:100%;height:44px;font-size:14px;font-weight:500}@media (prefers-reduced-motion:reduce){._6_jNJa_chip,._6_jNJa_detail{transition:none}}";
|
|
13
13
|
const tagId$1 = "@deepseek-ai/dsh-client-ui-message-feedback/FeedbackDialog.module.css";
|
|
14
14
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
15
15
|
const tag = document.createElement("style");
|
|
@@ -24,8 +24,7 @@ window.__ModuleLoader__.load({
|
|
|
24
24
|
"chipActive": "_6_jNJa_chipActive",
|
|
25
25
|
"detail": "_6_jNJa_detail",
|
|
26
26
|
"dialog": "_6_jNJa_dialog",
|
|
27
|
-
"submit": "_6_jNJa_submit"
|
|
28
|
-
"toastIcon": "_6_jNJa_toastIcon"
|
|
27
|
+
"submit": "_6_jNJa_submit"
|
|
29
28
|
};
|
|
30
29
|
//#endregion
|
|
31
30
|
//#region lib/types/client/FeedbackDialog.js
|
|
@@ -82,16 +81,13 @@ window.__ModuleLoader__.load({
|
|
|
82
81
|
}),
|
|
83
82
|
toast > 0 && failure === null && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Toast, {
|
|
84
83
|
text: t("toast.recorded"),
|
|
85
|
-
|
|
86
|
-
className: FeedbackDialog_module_css_default.toastIcon,
|
|
87
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckOutline16, { size: 12 })
|
|
88
|
-
}),
|
|
84
|
+
tone: "success",
|
|
89
85
|
anchor: card,
|
|
90
86
|
onDone: onToastDone
|
|
91
87
|
}, toast),
|
|
92
88
|
failure !== null && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Toast, {
|
|
93
89
|
text: failure,
|
|
94
|
-
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
90
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWarningOutlineRegular, {}),
|
|
95
91
|
anchor: card,
|
|
96
92
|
holdMs: 6e3,
|
|
97
93
|
onDone: onFailureDone
|
|
@@ -140,7 +136,7 @@ window.__ModuleLoader__.load({
|
|
|
140
136
|
}
|
|
141
137
|
//#endregion
|
|
142
138
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-message-feedback/src/client/MessageFeedbackActions.module.css.mjs
|
|
143
|
-
const css = "._8_XoUG_action{width:calc(28px + var(--dsh-content-font-delta,0px));height:calc(28px + var(--dsh-content-font-delta,0px));color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;
|
|
139
|
+
const css = "._8_XoUG_action{width:calc(28px + var(--dsh-content-font-delta,0px));height:calc(28px + var(--dsh-content-font-delta,0px));border-radius:var(--dsw-radius-sm);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:6px;display:inline-flex}._8_XoUG_action svg{width:calc(15px + var(--dsh-content-font-delta,0px));height:calc(15px + var(--dsh-content-font-delta,0px))}._8_XoUG_action:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}._8_XoUG_action:disabled{cursor:default;opacity:.4}._8_XoUG_action[data-active]{color:var(--dsw-alias-label-tertiary)}._8_XoUG_failure{color:var(--dsw-alias-label-tertiary);padding-left:4px;font-size:13px;line-height:20px}";
|
|
144
140
|
const tagId = "@deepseek-ai/dsh-client-ui-message-feedback/MessageFeedbackActions.module.css";
|
|
145
141
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
146
142
|
const tag = document.createElement("style");
|
|
@@ -234,7 +230,7 @@ window.__ModuleLoader__.load({
|
|
|
234
230
|
onFocus: seed,
|
|
235
231
|
onPointerEnter: seed,
|
|
236
232
|
onClick: onLike,
|
|
237
|
-
children: rating === "positive" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
233
|
+
children: rating === "positive" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconLikeFillRegular, {}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconLikeOutlineRegular, {})
|
|
238
234
|
})
|
|
239
235
|
}),
|
|
240
236
|
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
@@ -250,7 +246,7 @@ window.__ModuleLoader__.load({
|
|
|
250
246
|
onFocus: seed,
|
|
251
247
|
onPointerEnter: seed,
|
|
252
248
|
onClick: onDislike,
|
|
253
|
-
children: rating === "negative" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
249
|
+
children: rating === "negative" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconDislikeFillRegular, {}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconDislikeOutlineRegular, {})
|
|
254
250
|
})
|
|
255
251
|
}),
|
|
256
252
|
failure === null && loadFailed && (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -320,7 +316,7 @@ window.__ModuleLoader__.load({
|
|
|
320
316
|
* control in that Session, so a single list read seeds them all.
|
|
321
317
|
*/
|
|
322
318
|
var MessageFeedbackController = class {
|
|
323
|
-
|
|
319
|
+
remote;
|
|
324
320
|
sessionId;
|
|
325
321
|
view = INITIAL_VIEW;
|
|
326
322
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -328,11 +324,11 @@ window.__ModuleLoader__.load({
|
|
|
328
324
|
operationTail = Promise.resolve();
|
|
329
325
|
disposed = false;
|
|
330
326
|
/**
|
|
331
|
-
* @param
|
|
327
|
+
* @param remote - the messageFeedback Remote namespace.
|
|
332
328
|
* @param sessionId - Session owning every addressed assistant message.
|
|
333
329
|
*/
|
|
334
|
-
constructor(
|
|
335
|
-
this.
|
|
330
|
+
constructor(remote, sessionId) {
|
|
331
|
+
this.remote = remote;
|
|
336
332
|
this.sessionId = sessionId;
|
|
337
333
|
}
|
|
338
334
|
/** Return the cached immutable view. */
|
|
@@ -414,7 +410,7 @@ window.__ModuleLoader__.load({
|
|
|
414
410
|
}
|
|
415
411
|
/** Commit one put against the observed version and reconcile a conflict. */
|
|
416
412
|
async putCommitted(messageId, rating, entry, observed) {
|
|
417
|
-
const carried = await this.
|
|
413
|
+
const carried = await this.remote.put({
|
|
418
414
|
sessionId: this.sessionId,
|
|
419
415
|
messageId,
|
|
420
416
|
rating,
|
|
@@ -433,7 +429,7 @@ window.__ModuleLoader__.load({
|
|
|
433
429
|
}
|
|
434
430
|
/** Commit one delete against the observed version and reconcile a conflict. */
|
|
435
431
|
async deleteCommitted(messageId, observed) {
|
|
436
|
-
const carried = await this.
|
|
432
|
+
const carried = await this.remote.delete({
|
|
437
433
|
sessionId: this.sessionId,
|
|
438
434
|
messageId,
|
|
439
435
|
ifVersion: observed.version
|
|
@@ -454,7 +450,7 @@ window.__ModuleLoader__.load({
|
|
|
454
450
|
}
|
|
455
451
|
/** Fetch the whole sidecar and publish it as the seeded view. */
|
|
456
452
|
async load() {
|
|
457
|
-
const carried = await this.
|
|
453
|
+
const carried = await this.remote.list({ sessionId: this.sessionId });
|
|
458
454
|
if (this.disposed) return OK;
|
|
459
455
|
if (!carried.ok) {
|
|
460
456
|
this.publish({
|
|
@@ -684,7 +680,7 @@ window.__ModuleLoader__.load({
|
|
|
684
680
|
constructor(ctx, sessionId) {
|
|
685
681
|
this.ctx = ctx;
|
|
686
682
|
this.sessionId = sessionId;
|
|
687
|
-
this.feedback = new MessageFeedbackController(ctx, sessionId);
|
|
683
|
+
this.feedback = new MessageFeedbackController(ctx.remote.messageFeedback, sessionId);
|
|
688
684
|
this.dialog = new FeedbackDialogController((target, entry) => target.kind === "message" ? this.feedback.rate(target.messageId, target.rating, entry) : this.recordSession(entry));
|
|
689
685
|
}
|
|
690
686
|
/** Record one Session-level remark through the sessionFeedback Remote. */
|
|
@@ -771,7 +767,8 @@ window.__ModuleLoader__.load({
|
|
|
771
767
|
* conversation.chat.assistant-actions strip, the feedback dialog and its
|
|
772
768
|
* acknowledgement and failure toasts in conversation.input.overlay, and the `/feedback`
|
|
773
769
|
* decoration that opens the dialog from the composer menu or a bare typed
|
|
774
|
-
* command.
|
|
770
|
+
* command. The feedbackUi service opens the same dialog for other plugins.
|
|
771
|
+
* One FeedbackSurface per Session backs every entry in that Session.
|
|
775
772
|
* @module @deepseek-ai/dsh-client-ui-message-feedback/client
|
|
776
773
|
*/
|
|
777
774
|
/** Dictionary namespace owned by this plugin. */
|
|
@@ -786,7 +783,8 @@ window.__ModuleLoader__.load({
|
|
|
786
783
|
];
|
|
787
784
|
/**
|
|
788
785
|
* Client plugin body: the per-message feedback entry, the Session's dialog
|
|
789
|
-
* entry, the `/feedback` decoration, and their
|
|
786
|
+
* entry, the `feedbackUi` service, the `/feedback` decoration, and their
|
|
787
|
+
* per-session surfaces.
|
|
790
788
|
* @param ctx - client root context.
|
|
791
789
|
*/
|
|
792
790
|
function apply(ctx) {
|
|
@@ -807,6 +805,10 @@ window.__ModuleLoader__.load({
|
|
|
807
805
|
for (const surface of surfaces.values()) surface.dispose();
|
|
808
806
|
surfaces.clear();
|
|
809
807
|
}, "ui-message-feedback: per-session surfaces");
|
|
808
|
+
const feedbackUi = { openSession: (sessionId) => {
|
|
809
|
+
surfaceFor(sessionId).dialog.open({ kind: "session" });
|
|
810
|
+
} };
|
|
811
|
+
ctx.provide("feedbackUi", feedbackUi);
|
|
810
812
|
ctx.on("connection/reset", () => {
|
|
811
813
|
for (const { feedback } of surfaces.values()) if (feedback.getSnapshot().status !== "cold") feedback.resync();
|
|
812
814
|
});
|
|
@@ -864,7 +866,7 @@ window.__ModuleLoader__.load({
|
|
|
864
866
|
ui: {
|
|
865
867
|
kind: "action",
|
|
866
868
|
run: (session) => {
|
|
867
|
-
|
|
869
|
+
feedbackUi.openSession(session.sessionId);
|
|
868
870
|
}
|
|
869
871
|
}
|
|
870
872
|
}), "ui-message-feedback: /feedback decoration");
|