@chatcode/cco-better-sidebar 0.18.0-rc.13 → 0.18.0-rc.13.022-rc1
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.md +6 -2
- package/README_EN.md +6 -2
- package/lib/client-editor.js +266 -267
- package/lib/client-mermaid.js +264 -265
- package/lib/client-registry.js +2402 -2384
- package/lib/client-terminal.js +270 -271
- package/lib/client.js +1633 -1615
- package/lib/index.js +10 -6
- package/lib/types/client/AccountMenu.d.ts +4 -1
- package/lib/types/client/ContextMenu.d.ts +15 -0
- package/lib/types/client/service.d.ts +1 -1
- package/lib/types/client/ui-tweaks/index.d.ts +2 -0
- package/lib/types/client/ui-tweaks/notifier.d.ts +4 -2
- package/lib/types/ui-tweaks/turn-outcome.d.ts +1 -1
- package/package.json +59 -59
- package/src/client/AccountMenu.tsx +8 -14
- package/src/client/ContextMenu.tsx +22 -0
- package/src/client/FileTree.tsx +6 -13
- package/src/client/FreeWindow.tsx +4 -3
- package/src/client/GitView.tsx +8 -5
- package/src/client/Sidebar.tsx +0 -3
- package/src/client/TabBar.tsx +5 -4
- package/src/client/index.tsx +18 -40
- package/src/client/service.ts +1 -1
- package/src/client/shell-presets.ts +1 -1
- package/src/client/sidebar.module.css +23 -13
- package/src/client/ui-tweaks/index.tsx +45 -22
- package/src/client/ui-tweaks/notifier.ts +13 -12
- package/src/client/ui-tweaks/whale.tsx +1 -1
- package/src/index.ts +6 -2
- package/src/ui-tweaks/git.ts +1 -1
- package/src/ui-tweaks/turn-outcome.ts +3 -3
- package/src/ui-tweaks/web.ts +1 -0
package/lib/client.js
CHANGED
|
@@ -1503,7 +1503,7 @@ window.__ModuleLoader__.load({
|
|
|
1503
1503
|
* The plugin version this service instance reports. Keep in lockstep with
|
|
1504
1504
|
* `package.json`'s version — `tests/service.spec.ts` asserts the pair.
|
|
1505
1505
|
*/
|
|
1506
|
-
const SIDEBAR_SERVICE_VERSION = "0.18.0-
|
|
1506
|
+
const SIDEBAR_SERVICE_VERSION = "0.18.0-rc.13.022-rc1";
|
|
1507
1507
|
/**
|
|
1508
1508
|
* Monotonic capability list consumers use to gate new API usage (features
|
|
1509
1509
|
* are never removed). Each string names a v0.12.0+ capability:
|
|
@@ -12270,7 +12270,7 @@ window.__ModuleLoader__.load({
|
|
|
12270
12270
|
}
|
|
12271
12271
|
//#endregion
|
|
12272
12272
|
//#region \0dsh-css:/Users/shiguifeng/IdeaProjects/chonggou/cco-better-sidebar/src/client/sidebar.module.css.mjs
|
|
12273
|
-
const css$5 = ".wm06mG_releaseNotesOverlay{z-index:120;pointer-events:auto;background:color-mix(in srgb, var(--dsw-alias-bg-base) 72%, transparent);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.wm06mG_releaseNotesDialog{width:min(720px,100%);max-height:min(760px,100vh - 48px);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l1);border-radius:12px;flex-direction:column;display:flex;overflow:hidden}.wm06mG_releaseNotesHeader,.wm06mG_releaseNotesFooter{align-items:center;padding:16px 20px;display:flex}.wm06mG_releaseNotesHeader{border-bottom:1px solid var(--dsw-alias-border-l1);justify-content:space-between;gap:16px}.wm06mG_releaseNotesHeader h2{font:var(--dsw-font-s-18);margin:0}.wm06mG_releaseNotesContent{min-height:120px;font:var(--dsw-font-s-14);padding:20px;overflow:auto}.wm06mG_releaseNotesFooter{border-top:1px solid var(--dsw-alias-border-l1);justify-content:flex-end}.wm06mG_releaseNotesIconButton,.wm06mG_releaseNotesButton{border:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-2);cursor:pointer}.wm06mG_releaseNotesIconButton:hover,.wm06mG_releaseNotesButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_releaseNotesIconButton{width:32px;height:32px;font:var(--dsw-font-s-18);border-radius:50%;padding:0}.wm06mG_releaseNotesButton{min-width:84px;min-height:36px;font:var(--dsw-font-s-14);border-radius:8px;padding:6px 16px}.wm06mG_updateList{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.wm06mG_updateList li{font:var(--dsw-font-s-14);justify-content:space-between;align-items:center;gap:16px;display:flex}.wm06mG_updateVersions{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-secondary)}.wm06mG_updateOk{color:var(--dsw-alias-state-success-primary)}.wm06mG_updateError,.wm06mG_updateErrorText{color:var(--dsw-alias-state-error-primary)}.wm06mG_updateErrorText{white-space:pre-wrap;font:var(--dsw-font-s-14);margin:12px 0 0}.wm06mG_updateCommand{background:var(--dsw-alias-bg-layer-3);font-family:var(--dsw-font-code,var(--ds-font-family-code,monospace));white-space:pre-wrap;word-break:break-all;user-select:all;border-radius:6px;margin:8px 0 0;padding:8px 10px;font-size:12px;overflow-x:auto}.wm06mG_updateSettingsRow{justify-content:space-between;align-items:center;gap:16px;display:flex}.wm06mG_updateSettingsText{flex-direction:column;gap:2px;min-width:0;display:flex}.wm06mG_updateSettingsTitle{font:var(--dsw-font-s-14)}.wm06mG_updateSettingsDesc{font:var(--dsw-font-s-13);color:var(--dsw-alias-label-secondary)}.wm06mG_updateSettingsBlock{flex-direction:column;gap:12px;display:flex}.wm06mG_updateBody{font:var(--dsw-font-s-14);margin:20px 0 0}.wm06mG_updateFooter{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.wm06mG_updateInline{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:8px;padding:16px}[data-dsh-panel-host]{z-index:25;pointer-events:none;position:fixed;inset:0;overflow:clip}[data-dsh-panel-host][data-dsh-panel-host-degraded]{position:absolute;top:0;left:0}[data-dsh-pinned-sessions]{flex:none;min-width:0}.wm06mG_pinnedSessions{border-bottom:1px solid var(--dsw-alias-border-l1);margin:0 0 6px;padding:4px 0 6px}.wm06mG_pinnedSessionsHeading{height:36px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-14);align-items:center;padding:0 4px;display:flex}.wm06mG_pinnedSessionsList{gap:1px;display:grid}[data-slot=sidebar\\.workspaces] [class*=_sessionRow][data-dsh-session-pinned]{display:none}.wm06mG_pinnedSessionRow{border-radius:8px;align-items:center;min-width:0;height:32px;display:flex;position:relative}.wm06mG_pinnedSessionRow:hover,.wm06mG_pinnedSessionRow:focus-within{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_pinnedSessionOpen,.wm06mG_pinnedSessionMore,.wm06mG_pinnedSessionMenu button{font:inherit;cursor:pointer;border:0}.wm06mG_pinnedSessionOpen{min-width:0;height:100%;color:var(--dsw-alias-label-primary);text-align:left;font:var(--dsw-font-s-14);background:0 0;flex:1;align-items:center;gap:8px;padding:0 6px 0 8px;display:flex}.wm06mG_pinnedSessionOpen[aria-current=page]{color:var(--dsw-alias-brand-primary)}.wm06mG_pinnedSessionDot{background:var(--dsw-alias-label-tertiary);border-radius:50%;flex:none;width:6px;height:6px}.wm06mG_pinnedSessionDot[data-running]{background:var(--dsw-alias-state-success-primary)}.wm06mG_pinnedSessionTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.wm06mG_pinnedSessionMore{width:28px;height:28px;color:var(--dsw-alias-label-secondary);letter-spacing:1px;background:0 0;border-radius:50%;justify-content:center;align-items:center;margin-right:2px;padding:0;display:inline-flex}.wm06mG_pinnedSessionMore:hover,.wm06mG_pinnedSessionMore[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_pinnedSessionMenu{z-index:1101;box-sizing:border-box;border:1px solid var(--dsw-alias-border-inverted);background:var(--dsw-alias-bg-layer-2);border-radius:10px;min-width:150px;padding:4px;position:absolute;top:calc(100% + 2px);right:0}.wm06mG_pinnedSessionMenu button{width:100%;min-height:32px;color:var(--dsw-alias-label-primary);text-align:left;font:var(--dsw-font-xxs-12);background:0 0;border-radius:7px;align-items:center;gap:8px;padding:5px 8px;display:flex}.wm06mG_pinnedSessionMenu button:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_pinnedSessionMenuDivider{background:var(--dsw-alias-border-l1);height:1px;margin:4px}.wm06mG_accountMenu{z-index:3;box-sizing:border-box;width:var(--dsh-account-menu-width,280px);border-top:1px solid var(--dsw-alias-border-l2);border-right:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);pointer-events:auto;position:absolute;bottom:0;left:0}.wm06mG_accountTrigger,.wm06mG_accountItem{color:var(--dsw-alias-fg-base);font:inherit;cursor:pointer;border:0}.wm06mG_accountTrigger{box-sizing:border-box;width:100%;min-height:44px;padding:8px 12px max(8px, env(safe-area-inset-bottom));background:var(--dsw-alias-bg-layer-1);font:var(--dsw-font-xs-13);transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out);border-radius:0;align-items:center;gap:8px;display:flex}.wm06mG_accountTrigger:hover,.wm06mG_accountTrigger[aria-expanded=true]{background:var(--dsw-alias-bg-hover)}.wm06mG_accountTrigger:focus-visible,.wm06mG_accountItem:focus-visible{outline:2px solid var(--dsw-alias-border-accent);outline-offset:2px}.wm06mG_accountAvatar{box-sizing:border-box;background:var(--dsw-alias-bg-layer-3);border:1px solid var(--dsw-alias-border-l2);width:24px;height:24px;color:var(--dsw-alias-fg-accent);font:var(--dsw-font-xxs-12);border-radius:50%;flex:none;place-items:center;font-weight:600;display:grid;position:relative}.wm06mG_accountName{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.wm06mG_accountDropdown{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);z-index:1;border-radius:10px;width:min(224px,100% - 16px);padding:8px 6px 6px;display:grid;position:absolute;bottom:calc(100% + 8px);left:8px}.wm06mG_accountDropdownHeader{min-width:0;min-height:28px;font:var(--dsw-font-xs-13);align-items:center;gap:8px;padding:0 6px 6px;display:flex}.wm06mG_accountMenuDivider{background:var(--dsw-alias-border-l2);height:1px;margin:0 4px 4px}.wm06mG_accountItem{text-align:left;min-height:30px;font:var(--dsw-font-xs-13);background:0 0;border-radius:7px;align-items:center;gap:8px;padding:0 8px;display:flex}.wm06mG_accountItem:hover{background:var(--dsw-alias-bg-hover)}.wm06mG_accountPresence{box-sizing:content-box;border:2px solid var(--dsw-alias-bg-layer-2);background:var(--dsw-alias-fg-accent);border-radius:50%;flex:none;width:6px;height:6px;margin-left:auto}.wm06mG_accountTrigger .wm06mG_accountPresence{border-color:var(--dsw-alias-bg-layer-1)}.wm06mG_accountLogoutDialog{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);width:min(400px,100vw - 32px);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);color:var(--dsw-alias-fg-base);font:var(--dsw-font-s-14);border-radius:16px;margin:auto;padding:24px;overflow:auto}.wm06mG_accountLogoutDialog::backdrop{background:var(--dsw-alias-bg-mask-1)}.wm06mG_accountLogoutTitle{font:var(--dsw-font-base-strong-16);margin:0}.wm06mG_accountLogoutDescription{color:var(--dsw-alias-label-secondary);margin:12px 0 24px}.wm06mG_accountLogoutActions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.wm06mG_accountLogoutActions button{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);min-height:34px;color:var(--dsw-alias-fg-base);font:var(--dsw-font-xs-13);cursor:pointer;border-radius:8px;padding:6px 14px}.wm06mG_accountLogoutActions button:hover{background:var(--dsw-alias-bg-hover)}.wm06mG_accountLogoutActions button:focus-visible{outline:2px solid var(--dsw-alias-border-accent);outline-offset:2px}.wm06mG_accountLogoutActions .wm06mG_accountLogoutConfirm{border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}.wm06mG_toggleCluster{top:var(--dsh-native-sidebar-toggle-top,calc(3px + env(safe-area-inset-top)));z-index:45;pointer-events:auto;flex-direction:row;gap:4px;display:flex;position:absolute;right:10px}.wm06mG_toggleClusterNative{z-index:auto;flex:none;align-items:center;position:static;inset:auto}button[data-dsh-better-sidebar-toggle]{display:none}body:not([data-dsh-native-sidebar-toggle]) .wm06mG_panel:not(.wm06mG_panelHidden) .wm06mG_tabBar{padding-right:var(--dsh-sidebar-toggle-reserve,188px)}.wm06mG_toggleButton{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out), color var(--ds-transition-duration-slow) var(--ds-ease-in-out);background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;display:flex}.wm06mG_manualButton{min-width:94px;height:28px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);white-space:nowrap;cursor:pointer;transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out), color var(--ds-transition-duration-slow) var(--ds-ease-in-out);background:0 0;border:none;border-radius:6px;flex:none;justify-content:center;align-items:center;gap:6px;margin-right:4px;padding:0 10px;display:inline-flex}.wm06mG_manualButton:hover,.wm06mG_toggleButton:hover:not(:disabled):not([aria-disabled=true]){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_toggleButton:disabled,.wm06mG_toggleButton[aria-disabled=true]{opacity:.4;cursor:default}.wm06mG_panel{box-sizing:border-box;z-index:40;pointer-events:auto;background:var(--dsw-alias-bg-layer-1);border-left:1px solid var(--dsw-alias-border-l2);padding-bottom:env(safe-area-inset-bottom);transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), width var(--ds-transition-duration-slow) var(--ds-ease-in-out);flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0}.wm06mG_panelHidden{pointer-events:none;visibility:hidden;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), width var(--ds-transition-duration-slow) var(--ds-ease-in-out), visibility 0s linear var(--ds-transition-duration-slow);transform:translate(102%)}.wm06mG_panel[data-dragging]{transition:none}.wm06mG_panelResize{cursor:col-resize;z-index:2;touch-action:none;width:8px;position:absolute;top:0;bottom:0;left:-4px}.wm06mG_panelResizeActive{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_panelBody{flex:1;min-width:0;min-height:0;display:flex}.wm06mG_bottomPanel{z-index:40;background:var(--dsw-alias-bg-layer-1);border-top:1px solid var(--dsw-alias-border-l2);pointer-events:auto;padding-bottom:env(safe-area-inset-bottom);transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), height var(--ds-transition-duration-slow) var(--ds-ease-in-out);flex-direction:column;display:flex;position:absolute;bottom:0}.wm06mG_bottomPanelHidden{pointer-events:none;visibility:hidden;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), height var(--ds-transition-duration-slow) var(--ds-ease-in-out), visibility 0s linear var(--ds-transition-duration-slow);transform:translateY(102%)}.wm06mG_bottomPanel[data-dragging]{transition:none}.wm06mG_panel,.wm06mG_bottomPanel{contain:layout style}body[data-dsh-sidebar-dragging] .wm06mG_panel,body[data-dsh-sidebar-dragging] .wm06mG_bottomPanel{will-change:transform}.wm06mG_bottomResize{cursor:row-resize;z-index:2;touch-action:none;height:8px;position:absolute;top:-4px;left:0;right:0}.wm06mG_bottomResizeActive{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_bottomClose{z-index:4;width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;top:3px;right:6px}.wm06mG_bottomClose:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_bottomPanel .wm06mG_tabBar{padding-right:40px}.wm06mG_floatWindow{z-index:42;pointer-events:auto;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);box-shadow:var(--dsw-shadow-lv3);contain:layout style;border-radius:8px;flex-direction:column;display:flex;position:absolute;overflow:hidden}.wm06mG_floatWindowDragging{will-change:left, top, width, height}.wm06mG_floatHeader{height:34px;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-1);border-bottom:1px solid var(--dsw-alias-border-l1);cursor:grab;user-select:none;flex:none;align-items:center;gap:4px;padding:0 4px 0 10px;display:flex}.wm06mG_floatWindowDragging .wm06mG_floatHeader{cursor:grabbing}.wm06mG_floatTitle{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.wm06mG_floatClose{width:18px;height:18px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.wm06mG_floatClose:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_floatContent{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.wm06mG_floatResize{z-index:2;cursor:nwse-resize;touch-action:none;width:14px;height:14px;position:absolute;bottom:0;right:0}.wm06mG_floatResize:hover{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_pane[data-dsh-float-dock-over]{outline:2px dashed var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-2px}.wm06mG_floatDropHint{z-index:46;pointer-events:none;border:2px dashed var(--dsw-alias-interactive-bg-hover-accent);background:color-mix(in srgb, var(--dsw-alias-interactive-bg-hover-accent) 12%, transparent);border-radius:8px;justify-content:center;align-items:center;display:flex;position:absolute}.wm06mG_floatDropHintLabel{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);border-radius:999px;padding:4px 12px}.wm06mG_toggleCluster,.wm06mG_toggleButton,.wm06mG_manualButton,.wm06mG_tabBar,.wm06mG_floatHeader{-webkit-app-region:no-drag}body[data-dsh-title-bar-compat] .wm06mG_toggleCluster{top:var(--dsh-native-sidebar-toggle-top,calc(var(--dsh-title-bar-strip,40px) + 3px))}body[data-dsh-title-bar-compat] .wm06mG_panel{padding-top:var(--dsh-title-bar-strip,40px)}.wm06mG_cornerHandle{left:-6px;bottom:calc(var(--dsh-sidebar-height,0px) + 6px);z-index:2;cursor:nwse-resize;touch-action:none;width:12px;height:12px;position:absolute}.wm06mG_cornerHandle:hover,.wm06mG_cornerHandle[data-dragging]{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_iconButton{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.wm06mG_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_iconButton:disabled{opacity:.4;cursor:default}.wm06mG_workbench,.wm06mG_split{flex:1;min-width:0;min-height:0;display:flex}.wm06mG_splitRow{flex-direction:row}.wm06mG_splitCol{flex-direction:column}.wm06mG_splitChild{display:flex;position:relative;overflow:hidden}.wm06mG_divider{z-index:3;touch-action:none;flex:none;position:relative}.wm06mG_dividerRow:after,.wm06mG_dividerCol:after{content:\"\";background:var(--dsw-alias-border-l2);transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out);position:absolute}.wm06mG_dividerRow{cursor:col-resize;width:7px;margin:0 -2px}.wm06mG_dividerRow:after{width:1px;top:0;bottom:0;left:50%;transform:translate(-50%)}.wm06mG_dividerCol{cursor:row-resize;height:7px;margin:-2px 0}.wm06mG_dividerCol:after{height:1px;top:50%;left:0;right:0;transform:translateY(-50%)}.wm06mG_divider:hover:after,.wm06mG_dividerActive:after{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_pane{background:var(--dsw-alias-bg-base);flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.wm06mG_paneDrop{outline:1px solid var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-1px}.wm06mG_dropOverlay{z-index:6;pointer-events:none;background:var(--dsw-alias-interactive-bg-hover-accent);opacity:.5;position:absolute}.wm06mG_dropLeft{width:25%;top:0;bottom:0;left:0}.wm06mG_dropRight{width:25%;top:0;bottom:0;right:0}.wm06mG_dropUp{height:25%;top:0;left:0;right:0}.wm06mG_dropDown{height:25%;bottom:0;left:0;right:0}.wm06mG_dropCenter{outline:2px dashed var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-2px;background:0 0;inset:25%}.wm06mG_paneContent{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.wm06mG_paneTab{flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_paneTabHidden{display:none}.wm06mG_paneEmptyCards{flex:1;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));align-content:start;gap:8px;min-height:0;padding:12px;display:grid;overflow:hidden}.wm06mG_paneCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:0;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;text-align:center;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:12px 8px;display:flex}.wm06mG_paneCard:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-border-l2)}.wm06mG_paneCard:disabled{opacity:.45;cursor:default}.wm06mG_tabBar{border-bottom:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);flex:none;align-items:stretch;height:34px;display:flex}.wm06mG_tabBarDrop{outline:1px dashed var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-1px}.wm06mG_tabList{scrollbar-width:none;flex:1;min-width:0;display:flex;overflow-x:auto}.wm06mG_tabList::-webkit-scrollbar{display:none}.wm06mG_tab{min-width:64px;max-width:160px;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary);border-right:1px solid var(--dsw-alias-border-l1);cursor:pointer;user-select:none;background:0 0;flex:none;align-items:center;gap:4px;padding:0 4px 0 10px;display:flex}.wm06mG_tab:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_tabActive{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-active)}.wm06mG_tabTitle{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.wm06mG_tabBadge{min-width:16px;height:15px;font:var(--dsw-font-xxxs-strong-11);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-brand-primary);border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0 4px;display:inline-flex}.wm06mG_tabClose{width:18px;height:18px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.wm06mG_tabClose:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_tabBarPlus{background:var(--dsw-alias-bg-layer-1);width:22px;height:22px;color:var(--dsw-alias-label-tertiary);cursor:pointer;border:none;border-radius:5px;flex:none;justify-content:center;align-self:center;align-items:center;margin:0 6px;padding:0;display:inline-flex;position:sticky;right:0}.wm06mG_tabBarPlus:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_pinnedTab{color:var(--dsw-alias-label-tertiary);font-style:italic}.wm06mG_pinnedTab:hover{color:var(--dsw-alias-label-secondary)}.wm06mG_explorer{flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_explorerHeader{flex:none;justify-content:space-between;align-items:center;gap:8px;height:36px;padding:0 8px 0 12px;display:flex}.wm06mG_explorerRoot{font:var(--dsw-font-s-14);color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wm06mG_explorerBody{flex:1;min-height:0;padding:4px 8px 8px;overflow:hidden auto}.wm06mG_explorerRow{box-sizing:border-box;width:100%;max-width:100%;height:34px;font:var(--dsw-font-s-14);color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;white-space:nowrap;animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);background:0 0;border:none;border-radius:8px;align-items:center;gap:6px;padding:0 8px;display:flex}.wm06mG_explorerRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_explorerRowRevealed{background:var(--dsw-alias-state-business-tertiary)}.wm06mG_explorerRowRevealed+.wm06mG_explorerRowRevealed{border-top-left-radius:0;border-top-right-radius:0}.wm06mG_explorerRowRevealed:has(+.wm06mG_explorerRowRevealed){border-bottom-right-radius:0;border-bottom-left-radius:0}.wm06mG_explorerDir{font:var(--dsw-font-s-strong-14)}.wm06mG_explorerHidden{opacity:.45}.wm06mG_explorerSymlink{color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_explorerBroken .wm06mG_explorerName{color:var(--dsw-alias-state-error-primary)}.wm06mG_explorerName{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.wm06mG_explorerRef{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);height:20px;color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxxs-strong-11);cursor:pointer;border-radius:999px;flex:none;align-items:center;padding:0 8px;display:none}.wm06mG_explorerRef:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_explorerRow:hover .wm06mG_explorerRef,.wm06mG_explorerRow:focus-within .wm06mG_explorerRef{display:inline-flex}.wm06mG_explorerCopied{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_explorerError{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);cursor:default}@keyframes wm06mG_dsh-row-in{0%{opacity:0}}.wm06mG_explorerEmpty{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);text-align:center;padding:16px}.wm06mG_explorerRowDropTarget{background:var(--dsw-alias-interactive-bg-hover);outline:1px dashed var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-1px}.wm06mG_uploadDropZone{z-index:1001;pointer-events:none;border:2px dashed var(--dsw-alias-interactive-bg-hover-accent);box-shadow:0 0 0 200vmax var(--dsw-alias-bg-mask-drop);animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);border-radius:10px;justify-content:center;align-items:flex-start;padding:12px;display:flex;position:fixed}.wm06mG_uploadDropHero{flex-direction:column;align-items:center;gap:10px;max-width:100%;padding-top:8px;display:flex}.wm06mG_uploadDropZonePill{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);max-width:100%;box-shadow:var(--dsw-shadow-lv2);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-strong-12);border-radius:999px;align-items:center;gap:6px;padding:6px 12px;display:flex}.wm06mG_uploadDropZoneText{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wm06mG_uploadDropChatHint{z-index:1002;pointer-events:none;animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;top:0;bottom:0;left:0}.wm06mG_uploadDropChatCard{text-align:center;max-width:100%;color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-strong-14);flex-direction:column;align-items:center;gap:12px;display:flex}.wm06mG_uploadOverlay{z-index:30;background:var(--dsw-alias-bg-mask-1);backdrop-filter:var(--dsw-mask-blur);animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.wm06mG_uploadOverlayCard{border:1px solid var(--dsw-alias-border-inverted);background:var(--dsw-alias-bg-layer-2);min-width:280px;max-width:min(420px,100% - 48px);box-shadow:var(--dsw-shadow-lv3);border-radius:24px;flex-direction:column;gap:12px;padding:20px 24px;display:flex}.wm06mG_uploadOverlayTitle{font:var(--dsw-font-s-strong-14);color:var(--dsw-alias-label-primary);align-items:center;gap:8px;display:flex}.wm06mG_uploadOverlayTitle>svg{flex:none}.wm06mG_uploadOverlayTitle>span{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.wm06mG_uploadOverlayProgress{background:var(--dsw-alias-border-l2);border-radius:3px;height:6px;overflow:hidden}.wm06mG_uploadOverlayProgressFill{background:var(--dsw-alias-interactive-bg-hover-accent);height:100%;transition:width .15s var(--ds-ease-in-out);border-radius:3px}.wm06mG_uploadOverlayStatus{min-height:1em;font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-tertiary);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wm06mG_uploadOverlayCancel{border:1px solid var(--dsw-alias-border-l2);height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;background:0 0;border-radius:8px;align-self:flex-end;padding:0 14px}.wm06mG_uploadOverlayCancel:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);border-color:var(--dsw-alias-border-l2)}.wm06mG_uploadOverlayCancel:disabled{opacity:.4;cursor:default}.wm06mG_editor{flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_editorHeader{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;align-items:center;gap:6px;padding:6px 8px;display:flex}.wm06mG_editorTitle{min-width:0;font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.wm06mG_editorPathInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:0;height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;flex:1;padding:0 10px}.wm06mG_editorPathInput:focus{border-color:var(--dsw-alias-border-l2);outline:none}.wm06mG_editorTreeToggleActive{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-active)}.wm06mG_editorBody{flex:1;min-height:0;display:flex}.wm06mG_editorMain{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.wm06mG_editorTreeDock{border-left:1px solid var(--dsw-alias-border-l1);flex:none;min-height:0;display:flex;position:relative}.wm06mG_editorTreeResize{cursor:col-resize;touch-action:none;z-index:3;width:6px;position:absolute;top:0;bottom:0;left:0}.wm06mG_editorTreeResize:hover{background:var(--dsw-alias-border-l2)}.wm06mG_editorTreePanel{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.wm06mG_editorTreePanelFull{flex:1}.wm06mG_editorTreeSearch{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;align-items:center;gap:6px;padding:6px 8px;display:flex}.wm06mG_editorSearchInput{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:0;height:26px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;flex:1;padding:0 10px}.wm06mG_editorSearchInput:focus{border-color:var(--dsw-alias-border-l2);outline:none}.wm06mG_editorSearchHint{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);padding:8px 12px}.wm06mG_editorSearchResult{width:100%;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);text-align:left;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:none;border-radius:6px;padding:4px 8px;display:block;overflow:hidden}.wm06mG_editorSearchResult:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_editorStatus{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary)}.wm06mG_editorStatusError{color:var(--dsw-alias-state-error-primary)}.wm06mG_dirtyDot{background:var(--dsw-alias-state-warn-primary);border-radius:50%;flex:none;width:7px;height:7px}.wm06mG_editorPlaceholder{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);text-align:center;flex:1;justify-content:center;align-items:center;padding:16px;display:flex}.wm06mG_orphanedType{opacity:.7;overflow-wrap:anywhere;margin-top:8px;font-size:12px;display:block}.wm06mG_editorBinary{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:24px 16px;display:flex}.wm06mG_editorBinaryNotice{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary)}.wm06mG_editorDownloadLink{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out), border-color var(--ds-transition-duration-slow) var(--ds-ease-in-out);border-radius:6px;align-items:center;gap:6px;padding:6px 14px;text-decoration:none;display:inline-flex}.wm06mG_editorDownloadLink:hover{background:var(--dsw-alias-interactive-bg-hover);border-color:var(--dsw-alias-border-l2)}.wm06mG_editorError{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);padding:12px 16px}.wm06mG_fenceError{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 16px;display:flex}.wm06mG_editorBanner{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary);flex:none;padding:4px 8px}.wm06mG_sandboxStatus{font:var(--dsw-font-xxxs-11);flex:none;align-items:center;gap:8px;padding:4px 10px;display:flex}.wm06mG_sandboxStatusOn{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-1);border-bottom:1px solid var(--dsw-alias-border-l1)}.wm06mG_sandboxStatusOff{color:var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent);border-bottom:1px solid color-mix(in srgb, var(--dsw-alias-state-error-primary) 45%, transparent)}.wm06mG_sandboxDot{background:var(--dsw-alias-state-success-primary);border-radius:50%;flex:none;width:6px;height:6px}.wm06mG_sandboxStatusOff .wm06mG_sandboxDot{background:var(--dsw-alias-state-error-primary)}.wm06mG_sandboxStatusText{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.wm06mG_sandboxAction{border:1px solid var(--dsw-alias-border-l2);font:inherit;color:inherit;cursor:pointer;background:0 0;border-radius:6px;flex:none;padding:2px 8px}.wm06mG_sandboxAction:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_editorHtml{background:var(--dsw-alias-bg-base);border:none;flex:1;width:100%;min-height:0}.wm06mG_browser{flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_browserBar{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;align-items:center;gap:4px;padding:6px 8px;display:flex}.wm06mG_browserInput{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:0;height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;flex:1;padding:0 10px}.wm06mG_browserInput:focus{border-color:var(--dsw-alias-border-l2);outline:none}.wm06mG_browserMessage{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary);flex:none;padding:4px 12px}.wm06mG_browserFrame{background:var(--dsw-alias-bg-base);border:none;flex:1;width:100%;min-height:0}.wm06mG_browserStart{text-align:center;min-height:0;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary);flex:1;justify-content:center;align-items:center;padding:20px;display:flex}.wm06mG_browserBlocked{text-align:center;min-height:0;color:var(--dsw-alias-state-warn-primary);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;padding:24px;display:flex}.wm06mG_browserBlockedTitle{font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-label-primary)}.wm06mG_browserBlockedDesc{max-width:280px;font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-secondary)}.wm06mG_browserBlockedActions{gap:8px;margin-top:6px;display:flex}.wm06mG_browserBlockedButton{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxxs-11);cursor:pointer;border-radius:6px;padding:4px 12px}.wm06mG_browserBlockedButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_editorCm{background:0 0;flex:1;min-height:0;overflow:hidden}.wm06mG_editorCmHidden{display:none}.wm06mG_editorCm .cm-editor{height:100%}.wm06mG_editorCm .cm-scroller{padding:12px 16px}.wm06mG_editorCm .cm-editor.cm-focused{outline:none}.wm06mG_editorModeToggle{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:6px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.wm06mG_editorModeButton{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxxs-11);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 8px}.wm06mG_editorModeButton:hover{color:var(--dsw-alias-label-primary)}.wm06mG_editorModeActive{background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary)}.wm06mG_editorImageWrap{flex:1;justify-content:center;align-items:center;min-height:0;padding:12px;display:flex;overflow:auto}.wm06mG_editorImage{object-fit:contain;max-width:100%;max-height:100%}.wm06mG_editorMd{min-height:0;font:var(--dsw-font-xs-13);flex:1;padding:12px 16px;overflow-y:auto}.wm06mG_mermaidWrap{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:6px;margin:6px 0;overflow:hidden}.wm06mG_mermaidHeader{border-bottom:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);justify-content:space-between;align-items:center;gap:6px;padding:4px 8px;display:flex}.wm06mG_mermaidInfo{font:var(--dsw-font-xxxs-strong-11);color:var(--dsw-alias-label-tertiary)}.wm06mG_mermaidCopy{height:20px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxxs-11);cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:4px;padding:0 6px;display:inline-flex}.wm06mG_mermaidCopy:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_mermaidBody{cursor:zoom-in;justify-content:center;padding:10px;display:flex;overflow:auto}.wm06mG_mermaidBody svg{max-width:100%;height:auto}.wm06mG_mermaidError{border-bottom:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xxxs-11);padding:6px 10px}.wm06mG_mermaidCode{font:var(--dsw-font-xxxs-11);margin:0;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto}.wm06mG_mermaidMarkdown .md-code-block[data-mermaid-processed]{display:contents}.wm06mG_mermaidModal{z-index:1000;background:var(--dsw-alias-bg-mask-1);backdrop-filter:blur(2px);flex-direction:column;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.wm06mG_mermaidModalToolbar{z-index:10;gap:8px;display:flex;position:absolute;top:16px;right:16px}.wm06mG_mermaidModalButton{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:36px;height:36px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-strong-13);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.wm06mG_mermaidModalButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_mermaidModalStage{justify-content:center;align-items:center;width:90vw;height:80vh;display:flex;position:relative;overflow:hidden}.wm06mG_mermaidModalStage svg{cursor:grab;transform-origin:50%;user-select:none;-webkit-user-drag:none;background:var(--dsw-alias-bg-layer-1);border-radius:12px;max-width:none;max-height:none;padding:16px}.wm06mG_mermaidModalStage svg:active{cursor:grabbing}.wm06mG_mermaidModalHint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxxs-11);pointer-events:none;position:absolute;bottom:16px;left:50%;transform:translate(-50%)}.wm06mG_selectionPopup{z-index:60;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxxs-strong-11);white-space:nowrap;cursor:pointer;border-radius:6px;align-items:center;padding:0 10px;display:inline-flex;position:fixed;transform:translate(-50%,calc(-100% - 8px))}.wm06mG_selectionPopup:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_editorPdf{background:var(--dsw-alias-bg-base);flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_editorPdfToolbar{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;justify-content:flex-end;padding:6px 8px;display:flex}.wm06mG_editorPdfStage{flex:1;min-height:0;display:flex;position:relative}.wm06mG_editorPdfFrame{background:var(--dsw-alias-bg-base);border:none;flex:1;width:100%;min-height:0}.wm06mG_editorPdfFrameBlocked{pointer-events:none}.wm06mG_editorPdfDragShield{z-index:4;pointer-events:none;background:0 0;position:absolute;inset:0}.wm06mG_editorPdfDragShieldActive{pointer-events:auto}body[data-dsh-tab-dragging] .wm06mG_editorPdfFrame{pointer-events:none!important}body[data-dsh-tab-dragging] .wm06mG_editorPdfDragShield{pointer-events:auto!important}.wm06mG_terminalWrap{background:var(--dsw-alias-bg-base);flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.wm06mG_terminal{flex:1;min-height:0;padding:6px 4px 6px 8px}.wm06mG_terminal .xterm{height:100%}.wm06mG_terminalBanner{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary);flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding:3px 10px;display:flex}.wm06mG_terminalBannerUrl{word-break:break-all;opacity:.85;flex-basis:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.wm06mG_boundaryError{z-index:50;background:var(--dsw-alias-bg-layer-1);border-left:1px solid var(--dsw-alias-border-l2);font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);flex-direction:column;align-items:flex-start;gap:8px;padding:16px;display:flex;position:fixed;top:0;bottom:0;right:0;overflow:auto}.wm06mG_terminalRetry{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxxs-strong-11);cursor:pointer;border-radius:999px;flex:none;padding:1px 8px}.wm06mG_terminalRetry:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_terminalDepsBanner{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary);flex-direction:column;flex:none;gap:6px;padding:10px;display:flex}.wm06mG_terminalDepsTitle{font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-state-warn-primary)}.wm06mG_terminalDepsHint{opacity:.9}.wm06mG_terminalDepsCommandRow{align-items:flex-start;gap:8px;display:flex}.wm06mG_terminalRepairCommand{white-space:pre-wrap;word-break:break-all;user-select:text;min-width:0;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l2);border-radius:4px;flex:1;max-height:160px;margin:0;padding:6px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.5;overflow:auto}.wm06mG_terminalDepsNote{opacity:.85}.wm06mG_terminalDepsActions{align-items:center;gap:8px;display:flex}.wm06mG_tabBoundaryError{min-height:0;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);flex-direction:column;flex:1;align-items:flex-start;gap:8px;padding:12px 16px;display:flex;overflow:auto}.wm06mG_git{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden auto}.wm06mG_gitHeader{flex:none;align-items:center;gap:8px;height:36px;padding:0 8px 0 12px;display:flex}.wm06mG_gitWorktreeRow{flex:none;align-items:center;gap:8px;padding:6px 8px 0 12px;display:flex}.wm06mG_gitWorktreeLabel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxxs-11);flex:none}.wm06mG_gitBranchSelect{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);min-width:0;height:26px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;flex:1;padding:0 6px}.wm06mG_gitSection{border-top:1px solid var(--dsw-alias-border-l1)}.wm06mG_gitSectionHeader{font:var(--dsw-font-xxxs-strong-11);color:var(--dsw-alias-label-tertiary);text-transform:uppercase;justify-content:space-between;align-items:center;padding:6px 12px 4px;display:flex}.wm06mG_gitLink{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-brand-primary);cursor:pointer;background:0 0;border:none;padding:0}.wm06mG_gitLink:hover:not(:disabled){text-decoration:underline}.wm06mG_gitLink:disabled{opacity:.4;cursor:default}.wm06mG_gitRow{min-height:34px;animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);border-radius:8px;align-items:center;gap:6px;margin:0 6px;padding:0 8px;display:flex}.wm06mG_gitRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_gitRowSelected{background:var(--dsw-alias-interactive-bg-active)}.wm06mG_gitRowMain{cursor:pointer;text-align:left;background:0 0;border:none;flex:1;align-items:center;gap:8px;min-width:0;padding:3px 0;display:flex}.wm06mG_gitBadge{width:20px;height:16px;font:var(--dsw-font-xxxs-strong-11);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary);border-radius:4px;flex:none;justify-content:center;align-items:center;display:inline-flex}.wm06mG_gitName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:var(--dsw-font-s-14);color:var(--dsw-alias-label-primary);flex:1;overflow:hidden}.wm06mG_gitEmpty{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);padding:4px 12px 8px}.wm06mG_gitPlaceholder{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);text-align:center;padding:16px}.wm06mG_gitError{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);white-space:pre-wrap;padding:8px 12px}.wm06mG_gitDiff{border-top:1px solid var(--dsw-alias-border-l1);padding:8px}.wm06mG_gitDiffTab{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden auto}.wm06mG_gitDiffTabHeader{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;align-items:center;gap:8px;height:36px;padding:0 8px 0 12px;display:flex}.wm06mG_gitDiffTabTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-label-primary);flex:1;overflow:hidden}.wm06mG_gitDiffFile{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:baseline;gap:6px;padding:8px 2px 2px;display:flex}.wm06mG_gitDiffFile:disabled{cursor:default}.wm06mG_gitDiffFile:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_gitDiffFileChevron{color:var(--dsw-alias-label-tertiary);flex:none;transform:rotate(0)}.wm06mG_gitDiffFileChevronExpanded{transform:rotate(90deg)}.wm06mG_gitDiffFilePath{font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wm06mG_gitDiffFileOld{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;flex:none;max-width:40%;overflow:hidden}.wm06mG_gitDiffFileTag{border:1px solid var(--dsw-alias-border-l2);font:var(--dsw-font-xxxs-strong-11);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:0 6px}.wm06mG_gitDiffHunk{font:var(--dsw-font-markdown-code-block-small);color:var(--dsw-alias-label-tertiary);gap:8px;padding:3px 2px;display:flex}.wm06mG_gitDiffHunkHeader{color:var(--dsw-alias-label-secondary);flex:none}.wm06mG_gitDiffHunkSection{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wm06mG_gitDiffLine{font:var(--dsw-font-markdown-code-block-small);white-space:pre-wrap;overflow-wrap:anywhere;align-items:stretch;min-width:0;line-height:20px;display:flex}.wm06mG_gitDiffNum{text-align:right;width:36px;color:var(--dsw-alias-label-tertiary);user-select:none;flex:none;padding-right:8px}.wm06mG_gitDiffCode{flex:1;min-width:0;overflow:visible}.wm06mG_gitDiffCtx{color:var(--dsw-alias-label-primary)}.wm06mG_gitDiffDel{color:var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 12%, transparent)}.wm06mG_gitDiffAdd{color:var(--dsw-alias-state-success-primary);background:color-mix(in srgb, var(--dsw-alias-state-success-primary) 12%, transparent)}.wm06mG_gitDiffMeta{padding-left:2px}.wm06mG_gitDiffMetaText{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary);font-style:italic}.wm06mG_gitDiffExpand{width:100%;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-brand-primary);cursor:pointer;text-align:center;background:0 0;border:none;margin:4px 0;display:block}.wm06mG_gitDiffExpand:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_gitConfirmDesc{font:var(--dsw-font-s-14);color:var(--dsw-alias-label-primary);white-space:pre-wrap;margin:0}.wm06mG_gitCommit{border-top:1px solid var(--dsw-alias-border-l1);align-items:center;gap:6px;padding:8px 12px;display:flex}.wm06mG_gitCommitInput{flex:1;min-width:0}.wm06mG_gitCommitButton{background:var(--dsw-alias-button-primary-fill);height:26px;color:var(--dsw-alias-label-primary-inverted);font:var(--dsw-font-xxs-strong-12);cursor:pointer;border:none;border-radius:6px;flex:none;padding:0 12px}.wm06mG_gitCommitButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.wm06mG_gitCommitButton:disabled{opacity:.45;cursor:default}.wm06mG_gitLogRow{cursor:pointer;border-radius:8px;flex-direction:column;gap:2px;padding:5px 12px;display:flex}.wm06mG_gitLogRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_gitLogLine1{align-items:baseline;gap:8px;min-width:0;display:flex}.wm06mG_gitLogHash{font:var(--dsw-font-markdown-code-block-small);color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_gitLogLine2{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.wm06mG_gitLogRef{border:1px solid var(--dsw-alias-border-l2);font:var(--dsw-font-xxxs-strong-11);color:var(--dsw-alias-brand-primary);white-space:nowrap;border-radius:999px;flex:none;padding:0 5px}.wm06mG_gitLogSubject{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:var(--dsw-font-s-14);color:var(--dsw-alias-label-primary);flex:1;overflow:hidden}.wm06mG_gitLogMeta{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary)}.wm06mG_gitLogMore{border:1px solid var(--dsw-alias-border-l2);width:calc(100% - 24px);font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border-radius:6px;margin:4px 12px 8px;padding:6px 0;display:block}.wm06mG_gitLogMore:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_gitLogMore:disabled{opacity:.5;cursor:default}.wm06mG_producedRow{flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0;display:flex}.wm06mG_producedLabel{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary)}.wm06mG_producedChip{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);max-width:200px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);cursor:pointer;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;display:inline-flex;overflow:hidden}.wm06mG_producedChip:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_producedChip span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wm06mG_producedMore{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary)}.wm06mG_toggleButton:focus-visible,.wm06mG_manualButton:focus-visible,.wm06mG_bottomClose:focus-visible,.wm06mG_iconButton:focus-visible,.wm06mG_tab:focus-visible,.wm06mG_tabClose:focus-visible,.wm06mG_tabBarPlus:focus-visible,.wm06mG_paneCard:focus-visible,.wm06mG_explorerRow:focus-visible,.wm06mG_explorerRef:focus-visible,.wm06mG_gitRowMain:focus-visible,.wm06mG_gitLink:focus-visible,.wm06mG_gitCommitButton:focus-visible,.wm06mG_gitLogRow:focus-visible,.wm06mG_gitLogMore:focus-visible,.wm06mG_gitDiffFile:focus-visible,.wm06mG_gitDiffExpand:focus-visible,.wm06mG_terminalRetry:focus-visible,.wm06mG_editorModeButton:focus-visible,.wm06mG_editorDownloadLink:focus-visible,.wm06mG_editorPptxButton:focus-visible,.wm06mG_editorDocxZoomRange:focus-visible{outline:2px solid var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-1px}@media (prefers-reduced-motion:reduce){.wm06mG_panel,.wm06mG_panelHidden,.wm06mG_bottomPanel,.wm06mG_bottomPanelHidden,.wm06mG_toggleCluster,.wm06mG_toggleButton,.wm06mG_tab,.wm06mG_tabBarPlus,.wm06mG_paneCard,.wm06mG_explorerRow,.wm06mG_gitRow,.wm06mG_divider,.wm06mG_dividerRow:after,.wm06mG_dividerCol:after{transition:none;animation:none}}@media (width<=767px){.wm06mG_panel:not(.wm06mG_panelHidden) .wm06mG_tabBar{padding-right:148px}.wm06mG_tab{min-width:48px;max-width:128px}}.wm06mG_openWithLabel{align-items:center;gap:8px;width:100%;min-width:0;display:flex}.wm06mG_openWithName{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.wm06mG_openWithChevron{color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_openWithPin{width:20px;height:20px;color:var(--dsw-alias-label-tertiary);cursor:pointer;border-radius:6px;flex:none;justify-content:center;align-items:center;display:inline-flex}.wm06mG_openWithPin:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_openWithPinActive{color:var(--dsw-alias-state-business-primary)}.wm06mG_editorHtmlBlock{margin:8px 0}.wm06mG_editorHtmlBlock img,.wm06mG_editorHtmlBlock video{max-width:100%}.wm06mG_editorHtmlBlock details{margin:4px 0;padding:4px 0}.wm06mG_editorHtmlBlock summary{cursor:pointer}.wm06mG_tocBar{z-index:3;pointer-events:none;justify-content:flex-end;height:0;display:flex;position:sticky;top:0}.wm06mG_tocButton{pointer-events:auto;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);width:26px;height:26px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;margin:4px 2px 0 0;padding:0;display:inline-flex}.wm06mG_tocButton:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_tocPanel{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:min(300px,82%);max-height:60vh;box-shadow:var(--dsw-shadow-lv2);pointer-events:auto;border-radius:8px;flex-direction:column;padding:4px;display:flex;position:absolute;top:32px;right:2px;overflow-y:auto}.wm06mG_tocItem{min-width:0;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:baseline;gap:8px;padding:4px 8px;display:flex}.wm06mG_tocItem:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_tocItem[data-level=\"2\"]{padding-left:18px}.wm06mG_tocItem[data-level=\"3\"]{padding-left:28px}.wm06mG_tocItem[data-level=\"4\"]{padding-left:38px}.wm06mG_tocItem[data-level=\"5\"]{padding-left:48px}.wm06mG_tocItem[data-level=\"6\"]{padding-left:58px}.wm06mG_tocItemLevel{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_tocItemText{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}@keyframes wm06mG_dsh-toc-flash{0%,60%{background:var(--dsw-alias-interactive-bg-hover)}to{background:0 0}}.wm06mG_tocFlash{border-radius:4px;animation:1.2s ease-out wm06mG_dsh-toc-flash}.wm06mG_chatcodeGate{z-index:2147483000;isolation:isolate;background-color:var(--dsw-alias-tooltip-bg);background-image:linear-gradient(135deg, var(--dsw-alias-tooltip-bg) 0%, var(--dsw-alias-brand-primary) 48%, var(--dsw-alias-tooltip-bg) 100%);color:var(--dsw-alias-fg-base);pointer-events:auto;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow:hidden}.wm06mG_chatcodeGateCard{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:linear-gradient(145deg, var(--dsw-alias-bg-layer-2), var(--dsw-alias-bg-layer-1));width:min(460px,100%);box-shadow:var(--dsw-shadow-lv3);text-align:center;border-radius:20px;padding:40px 36px;position:relative}.wm06mG_chatcodeGateContent{position:relative}.wm06mG_chatcodeGateCard h1{font:var(--dsw-font-heading-lg);letter-spacing:-.02em;margin:0 0 12px;font-size:clamp(32px,5vw,46px);line-height:1.1}.wm06mG_chatcodeGateCard p{max-width:29em;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-s-14);margin:0 auto;line-height:1.7}.wm06mG_chatcodeGateError{border:1px solid color-mix(in srgb, var(--dsw-alias-fg-error) 36%, var(--dsw-alias-border-l2));background:color-mix(in srgb, var(--dsw-alias-fg-error) 8%, transparent);border-radius:10px;padding:9px 11px;position:relative;color:var(--dsw-alias-fg-error)!important;font:var(--dsw-font-xxs-12)!important;margin-top:16px!important;line-height:1.5!important}.wm06mG_chatcodeGateActions{justify-content:center;gap:10px;margin:28px 0 14px;display:flex;position:relative}.wm06mG_chatcodeGateActions button,.wm06mG_chatcodeGateCard a{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);min-height:42px;color:var(--dsw-alias-fg-base);font:var(--dsw-font-xxs-strong-12);cursor:pointer;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), background var(--ds-transition-duration-slow) var(--ds-ease-in-out), border-color var(--ds-transition-duration-slow) var(--ds-ease-in-out);border-radius:10px;padding:9px 17px}.wm06mG_chatcodeGateActions button:first-child{border-color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-state-error-primary);min-width:152px;min-height:46px;color:var(--dsw-alias-label-primary-inverted)}.wm06mG_chatcodeGateActions button:first-child:hover:not(:disabled){box-shadow:var(--dsw-shadow-lv2);transform:translateY(-2px);border-color:var(--dsw-alias-state-error-primary)!important;background:var(--dsw-alias-state-error-primary)!important;color:var(--dsw-alias-label-primary-inverted)!important}.wm06mG_chatcodeGateActions button:not(:first-child):hover:not(:disabled),.wm06mG_chatcodeGateCard a:hover{border-color:var(--dsw-alias-button-primary-hover);background:var(--dsw-alias-button-primary-hover);color:var(--dsw-alias-label-primary-inverted);transform:translateY(-1px)}.wm06mG_chatcodeGateActions button:disabled{cursor:default;opacity:.55}.wm06mG_chatcodeGateCard a{align-items:center;text-decoration:none;display:inline-flex;position:relative}.wm06mG_chatcodeGateActions button:focus-visible,.wm06mG_chatcodeGateCard a:focus-visible{outline:2px solid var(--dsw-alias-border-accent);outline-offset:3px}@media (width<=480px){.wm06mG_chatcodeGate{padding:16px}.wm06mG_chatcodeGateCard{padding:32px 24px}.wm06mG_chatcodeGateActions{flex-direction:column;align-items:stretch}.wm06mG_chatcodeGateActions button,.wm06mG_chatcodeGateCard a{justify-content:center}}";
|
|
12273
|
+
const css$5 = ".wm06mG_releaseNotesOverlay{z-index:120;pointer-events:auto;background:color-mix(in srgb, var(--dsw-alias-bg-base) 72%, transparent);place-items:center;padding:24px;display:grid;position:fixed;inset:0}.wm06mG_releaseNotesDialog{width:min(720px,100%);max-height:min(760px,100vh - 48px);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l1);border-radius:12px;flex-direction:column;display:flex;overflow:hidden}.wm06mG_releaseNotesHeader,.wm06mG_releaseNotesFooter{align-items:center;padding:16px 20px;display:flex}.wm06mG_releaseNotesHeader{border-bottom:1px solid var(--dsw-alias-border-l1);justify-content:space-between;gap:16px}.wm06mG_releaseNotesHeader h2{font:var(--dsw-font-s-18);margin:0}.wm06mG_releaseNotesContent{min-height:120px;font:var(--dsw-font-s-14);padding:20px;overflow:auto}.wm06mG_releaseNotesFooter{border-top:1px solid var(--dsw-alias-border-l1);justify-content:flex-end}.wm06mG_releaseNotesIconButton,.wm06mG_releaseNotesButton{border:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-2);cursor:pointer}.wm06mG_releaseNotesIconButton:hover,.wm06mG_releaseNotesButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_releaseNotesIconButton{width:32px;height:32px;font:var(--dsw-font-s-18);border-radius:50%;padding:0}.wm06mG_releaseNotesButton{min-width:84px;min-height:36px;font:var(--dsw-font-s-14);border-radius:8px;padding:6px 16px}.wm06mG_updateList{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.wm06mG_updateList li{font:var(--dsw-font-s-14);justify-content:space-between;align-items:center;gap:16px;display:flex}.wm06mG_updateVersions{font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-secondary)}.wm06mG_updateOk{color:var(--dsw-alias-state-success-primary)}.wm06mG_updateError,.wm06mG_updateErrorText{color:var(--dsw-alias-state-error-primary)}.wm06mG_updateErrorText{white-space:pre-wrap;font:var(--dsw-font-s-14);margin:12px 0 0}.wm06mG_updateCommand{background:var(--dsw-alias-bg-layer-3);font-family:var(--dsw-font-code,var(--ds-font-family-code,monospace));white-space:pre-wrap;word-break:break-all;user-select:all;border-radius:6px;margin:8px 0 0;padding:8px 10px;font-size:12px;overflow-x:auto}.wm06mG_updateSettingsRow{justify-content:space-between;align-items:center;gap:16px;display:flex}.wm06mG_updateSettingsText{flex-direction:column;gap:2px;min-width:0;display:flex}.wm06mG_updateSettingsTitle{font:var(--dsw-font-s-14)}.wm06mG_updateSettingsDesc{font:var(--dsw-font-s-13);color:var(--dsw-alias-label-secondary)}.wm06mG_updateSettingsBlock{flex-direction:column;gap:12px;display:flex}.wm06mG_updateBody{font:var(--dsw-font-s-14);margin:20px 0 0}.wm06mG_updateFooter{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.wm06mG_updateInline{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);border-radius:8px;padding:16px}[data-dsh-panel-host]{z-index:25;pointer-events:none;position:fixed;inset:0;overflow:clip}[data-dsh-panel-host][data-dsh-panel-host-degraded]{position:absolute;top:0;left:0}[data-dsh-pinned-sessions]{flex:none;min-width:0}.wm06mG_pinnedSessions{border-bottom:1px solid var(--dsw-alias-border-l1);margin:0 0 6px;padding:4px 0 6px}.wm06mG_pinnedSessionsHeading{height:36px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-14);align-items:center;padding:0 4px;display:flex}.wm06mG_pinnedSessionsList{gap:1px;display:grid}[data-slot=sidebar\\.workspaces] [class*=_sessionRow][data-dsh-session-pinned]{display:none}.wm06mG_pinnedSessionRow{border-radius:8px;align-items:center;min-width:0;height:32px;display:flex;position:relative}.wm06mG_pinnedSessionRow:hover,.wm06mG_pinnedSessionRow:focus-within{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_pinnedSessionOpen,.wm06mG_pinnedSessionMore,.wm06mG_pinnedSessionMenu button{font:inherit;cursor:pointer;border:0}.wm06mG_pinnedSessionOpen{min-width:0;height:100%;color:var(--dsw-alias-label-primary);text-align:left;font:var(--dsw-font-s-14);background:0 0;flex:1;align-items:center;gap:8px;padding:0 6px 0 8px;display:flex}.wm06mG_pinnedSessionOpen[aria-current=page]{color:var(--dsw-alias-brand-primary)}.wm06mG_pinnedSessionDot{background:var(--dsw-alias-label-tertiary);border-radius:50%;flex:none;width:6px;height:6px}.wm06mG_pinnedSessionDot[data-running]{background:var(--dsw-alias-state-success-primary)}.wm06mG_pinnedSessionTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.wm06mG_pinnedSessionMore{width:28px;height:28px;color:var(--dsw-alias-label-secondary);letter-spacing:1px;background:0 0;border-radius:50%;justify-content:center;align-items:center;margin-right:2px;padding:0;display:inline-flex}.wm06mG_pinnedSessionMore:hover,.wm06mG_pinnedSessionMore[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_pinnedSessionMenu{z-index:1101;box-sizing:border-box;border:1px solid var(--dsw-alias-border-inverted);background:var(--dsw-alias-bg-layer-2);border-radius:10px;min-width:150px;padding:4px;position:absolute;top:calc(100% + 2px);right:0}.wm06mG_pinnedSessionMenu button{width:100%;min-height:32px;color:var(--dsw-alias-label-primary);text-align:left;font:var(--dsw-font-xxs-12);background:0 0;border-radius:7px;align-items:center;gap:8px;padding:5px 8px;display:flex}.wm06mG_pinnedSessionMenu button:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_pinnedSessionMenuDivider{background:var(--dsw-alias-border-l1);height:1px;margin:4px}.wm06mG_accountMenu{z-index:3;box-sizing:border-box;width:var(--dsh-account-menu-width,280px);border-top:1px solid var(--dsw-alias-border-l2);border-right:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);pointer-events:auto;position:absolute;bottom:0;left:0}.wm06mG_accountTrigger,.wm06mG_accountItem{color:var(--dsw-alias-fg-base);font:inherit;cursor:pointer;border:0}.wm06mG_accountTrigger{box-sizing:border-box;width:100%;min-height:44px;padding:8px 12px max(8px, env(safe-area-inset-bottom));background:var(--dsw-alias-bg-layer-1);font:var(--dsw-font-xs-13);transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out);border-radius:0;align-items:center;gap:8px;display:flex}.wm06mG_accountTrigger:hover,.wm06mG_accountTrigger[aria-expanded=true]{background:var(--dsw-alias-bg-hover)}.wm06mG_accountTrigger:focus-visible,.wm06mG_accountItem:focus-visible{outline:2px solid var(--dsw-alias-border-accent);outline-offset:2px}.wm06mG_accountAvatar{box-sizing:border-box;corner-shape:round;background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l2);width:24px;height:24px;color:var(--dsw-alias-fg-base);font:var(--dsw-font-xxs-12);border-radius:50%;flex:none;place-items:center;font-weight:400;display:grid;position:relative}.wm06mG_accountName{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.wm06mG_accountDropdown{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);z-index:1;border-radius:10px;width:min(224px,100% - 16px);padding:8px 6px 6px;display:grid;position:absolute;bottom:calc(100% + 8px);left:8px}.wm06mG_accountDropdownHeader{min-width:0;min-height:28px;font:var(--dsw-font-xs-13);align-items:center;gap:8px;padding:0 6px 6px;display:flex}.wm06mG_accountMenuDivider{background:var(--dsw-alias-border-l2);height:1px;margin:0 4px 4px}.wm06mG_accountItem{text-align:left;min-height:30px;font:var(--dsw-font-xs-13);background:0 0;border-radius:7px;align-items:center;gap:8px;padding:0 8px;display:flex}.wm06mG_accountItem:hover{background:var(--dsw-alias-bg-hover)}.wm06mG_accountPresence{box-sizing:content-box;border:2px solid var(--dsw-alias-bg-layer-2);background:var(--dsw-alias-fg-accent);border-radius:50%;flex:none;width:6px;height:6px;margin-left:auto}.wm06mG_accountTrigger .wm06mG_accountPresence{display:none}.wm06mG_accountLogoutDialog{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);width:min(400px,100vw - 32px);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);color:var(--dsw-alias-fg-base);font:var(--dsw-font-s-14);border-radius:16px;margin:auto;padding:24px;overflow:auto}.wm06mG_accountLogoutDialog::backdrop{background:var(--dsw-alias-bg-mask-1)}.wm06mG_accountLogoutTitle{font:var(--dsw-font-base-strong-16);margin:0}.wm06mG_accountLogoutDescription{color:var(--dsw-alias-label-secondary);margin:12px 0 24px}.wm06mG_accountLogoutActions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.wm06mG_accountLogoutActions button{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);min-height:34px;color:var(--dsw-alias-fg-base);font:var(--dsw-font-xs-13);cursor:pointer;border-radius:8px;padding:6px 14px}.wm06mG_accountLogoutActions button:hover{background:var(--dsw-alias-bg-hover)}.wm06mG_accountLogoutActions button:focus-visible{outline:2px solid var(--dsw-alias-border-accent);outline-offset:2px}.wm06mG_accountLogoutActions .wm06mG_accountLogoutConfirm{border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}.wm06mG_toggleCluster{top:var(--dsh-native-sidebar-toggle-top,calc(3px + env(safe-area-inset-top)));z-index:45;pointer-events:auto;flex-direction:row;gap:4px;display:flex;position:absolute;right:10px}.wm06mG_toggleClusterNative{z-index:auto;flex:none;align-items:center;position:static;inset:auto}button[data-dsh-better-sidebar-toggle]{display:none}body:not([data-dsh-native-sidebar-toggle]) .wm06mG_panel:not(.wm06mG_panelHidden) .wm06mG_tabBar{padding-right:var(--dsh-sidebar-toggle-reserve,188px)}.wm06mG_toggleButton{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out), color var(--ds-transition-duration-slow) var(--ds-ease-in-out);background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;display:flex}.wm06mG_manualButton{min-width:94px;height:28px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);white-space:nowrap;cursor:pointer;transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out), color var(--ds-transition-duration-slow) var(--ds-ease-in-out);background:0 0;border:none;border-radius:6px;flex:none;justify-content:center;align-items:center;gap:6px;margin-right:4px;padding:0 10px;display:inline-flex}.wm06mG_manualButton:hover,.wm06mG_toggleButton:hover:not(:disabled):not([aria-disabled=true]){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_toggleButton:disabled,.wm06mG_toggleButton[aria-disabled=true]{opacity:.4;cursor:default}.wm06mG_panel{box-sizing:border-box;z-index:40;pointer-events:auto;background:var(--dsw-alias-bg-layer-1);border-left:1px solid var(--dsw-alias-border-l2);padding-bottom:env(safe-area-inset-bottom);transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), width var(--ds-transition-duration-slow) var(--ds-ease-in-out);flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0}.wm06mG_panelHidden{pointer-events:none;visibility:hidden;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), width var(--ds-transition-duration-slow) var(--ds-ease-in-out), visibility 0s linear var(--ds-transition-duration-slow);transform:translate(102%)}.wm06mG_panel[data-dragging]{transition:none}.wm06mG_panelResize{cursor:col-resize;z-index:2;touch-action:none;width:8px;position:absolute;top:0;bottom:0;left:-4px}.wm06mG_panelResizeActive{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_panelBody{flex:1;min-width:0;min-height:0;display:flex}.wm06mG_bottomPanel{z-index:40;background:var(--dsw-alias-bg-layer-1);border-top:1px solid var(--dsw-alias-border-l2);pointer-events:auto;padding-bottom:env(safe-area-inset-bottom);transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), height var(--ds-transition-duration-slow) var(--ds-ease-in-out);flex-direction:column;display:flex;position:absolute;bottom:0}.wm06mG_bottomPanelHidden{pointer-events:none;visibility:hidden;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), height var(--ds-transition-duration-slow) var(--ds-ease-in-out), visibility 0s linear var(--ds-transition-duration-slow);transform:translateY(102%)}.wm06mG_bottomPanel[data-dragging]{transition:none}.wm06mG_panel,.wm06mG_bottomPanel{contain:layout style}body[data-dsh-sidebar-dragging] .wm06mG_panel,body[data-dsh-sidebar-dragging] .wm06mG_bottomPanel{will-change:transform}.wm06mG_bottomResize{cursor:row-resize;z-index:2;touch-action:none;height:8px;position:absolute;top:-4px;left:0;right:0}.wm06mG_bottomResizeActive{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_bottomClose{z-index:4;width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;top:3px;right:6px}.wm06mG_bottomClose:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_bottomPanel .wm06mG_tabBar{padding-right:40px}.wm06mG_floatWindow{z-index:42;pointer-events:auto;background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);box-shadow:var(--dsw-shadow-lv3);contain:layout style;border-radius:8px;flex-direction:column;display:flex;position:absolute;overflow:hidden}.wm06mG_floatWindowDragging{will-change:left, top, width, height}.wm06mG_floatHeader{height:34px;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-1);border-bottom:1px solid var(--dsw-alias-border-l1);cursor:grab;user-select:none;flex:none;align-items:center;gap:4px;padding:0 4px 0 10px;display:flex}.wm06mG_floatWindowDragging .wm06mG_floatHeader{cursor:grabbing}.wm06mG_floatTitle{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.wm06mG_floatClose{width:18px;height:18px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.wm06mG_floatClose:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_floatContent{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden}.wm06mG_floatResize{z-index:2;cursor:nwse-resize;touch-action:none;width:14px;height:14px;position:absolute;bottom:0;right:0}.wm06mG_floatResize:hover{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_pane[data-dsh-float-dock-over]{outline:2px dashed var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-2px}.wm06mG_floatDropHint{z-index:46;pointer-events:none;border:2px dashed var(--dsw-alias-interactive-bg-hover-accent);background:color-mix(in srgb, var(--dsw-alias-interactive-bg-hover-accent) 12%, transparent);border-radius:8px;justify-content:center;align-items:center;display:flex;position:absolute}.wm06mG_floatDropHintLabel{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-1);border:1px solid var(--dsw-alias-border-l2);border-radius:999px;padding:4px 12px}.wm06mG_toggleCluster,.wm06mG_toggleButton,.wm06mG_manualButton,.wm06mG_tabBar,.wm06mG_floatHeader{-webkit-app-region:no-drag}body[data-dsh-title-bar-compat] .wm06mG_toggleCluster{top:var(--dsh-native-sidebar-toggle-top,calc(var(--dsh-title-bar-strip,40px) + 3px))}body[data-dsh-title-bar-compat] .wm06mG_panel{padding-top:var(--dsh-title-bar-strip,40px)}.wm06mG_cornerHandle{left:-6px;bottom:calc(var(--dsh-sidebar-height,0px) + 6px);z-index:2;cursor:nwse-resize;touch-action:none;width:12px;height:12px;position:absolute}.wm06mG_cornerHandle:hover,.wm06mG_cornerHandle[data-dragging]{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_iconButton{width:28px;height:28px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.wm06mG_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_iconButton:disabled{opacity:.4;cursor:default}.wm06mG_workbench,.wm06mG_split{flex:1;min-width:0;min-height:0;display:flex}.wm06mG_splitRow{flex-direction:row}.wm06mG_splitCol{flex-direction:column}.wm06mG_splitChild{display:flex;position:relative;overflow:hidden}.wm06mG_divider{z-index:3;touch-action:none;flex:none;position:relative}.wm06mG_dividerRow:after,.wm06mG_dividerCol:after{content:\"\";background:var(--dsw-alias-border-l2);transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out);position:absolute}.wm06mG_dividerRow{cursor:col-resize;width:7px;margin:0 -2px}.wm06mG_dividerRow:after{width:1px;top:0;bottom:0;left:50%;transform:translate(-50%)}.wm06mG_dividerCol{cursor:row-resize;height:7px;margin:-2px 0}.wm06mG_dividerCol:after{height:1px;top:50%;left:0;right:0;transform:translateY(-50%)}.wm06mG_divider:hover:after,.wm06mG_dividerActive:after{background:var(--dsw-alias-interactive-bg-hover-accent)}.wm06mG_pane{background:var(--dsw-alias-bg-base);flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.wm06mG_paneDrop{outline:1px solid var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-1px}.wm06mG_dropOverlay{z-index:6;pointer-events:none;background:var(--dsw-alias-interactive-bg-hover-accent);opacity:.5;position:absolute}.wm06mG_dropLeft{width:25%;top:0;bottom:0;left:0}.wm06mG_dropRight{width:25%;top:0;bottom:0;right:0}.wm06mG_dropUp{height:25%;top:0;left:0;right:0}.wm06mG_dropDown{height:25%;bottom:0;left:0;right:0}.wm06mG_dropCenter{outline:2px dashed var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-2px;background:0 0;inset:25%}.wm06mG_paneContent{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.wm06mG_paneTab{flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_paneTabHidden{display:none}.wm06mG_paneEmptyCards{flex:1;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));align-content:start;gap:8px;min-height:0;padding:12px;display:grid;overflow:hidden}.wm06mG_paneCard{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:0;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;text-align:center;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:12px 8px;display:flex}.wm06mG_paneCard:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-border-l2)}.wm06mG_paneCard:disabled{opacity:.45;cursor:default}.wm06mG_tabBar{border-bottom:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);flex:none;align-items:stretch;height:34px;display:flex}.wm06mG_tabBarDrop{outline:1px dashed var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-1px}.wm06mG_tabList{scrollbar-width:none;flex:1;min-width:0;display:flex;overflow-x:auto}.wm06mG_tabList::-webkit-scrollbar{display:none}.wm06mG_tab{min-width:64px;max-width:160px;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary);border-right:1px solid var(--dsw-alias-border-l1);cursor:pointer;user-select:none;background:0 0;flex:none;align-items:center;gap:4px;padding:0 4px 0 10px;display:flex}.wm06mG_tab:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_tabActive{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-active)}.wm06mG_tabTitle{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.wm06mG_tabBadge{min-width:16px;height:15px;font:var(--dsw-font-xxxs-strong-11);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-brand-primary);border-radius:8px;flex:none;justify-content:center;align-items:center;padding:0 4px;display:inline-flex}.wm06mG_tabClose{width:18px;height:18px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.wm06mG_tabClose:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_tabBarPlus{background:var(--dsw-alias-bg-layer-1);width:22px;height:22px;color:var(--dsw-alias-label-tertiary);cursor:pointer;border:none;border-radius:5px;flex:none;justify-content:center;align-self:center;align-items:center;margin:0 6px;padding:0;display:inline-flex;position:sticky;right:0}.wm06mG_tabBarPlus:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_pinnedTab{color:var(--dsw-alias-label-tertiary);font-style:italic}.wm06mG_pinnedTab:hover{color:var(--dsw-alias-label-secondary)}.wm06mG_explorer{flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_explorerHeader{flex:none;justify-content:space-between;align-items:center;gap:8px;height:36px;padding:0 8px 0 12px;display:flex}.wm06mG_explorerRoot{font:var(--dsw-font-s-14);color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wm06mG_explorerBody{flex:1;min-height:0;padding:4px 8px 8px;overflow:hidden auto}.wm06mG_explorerRow{box-sizing:border-box;width:100%;max-width:100%;height:34px;font:var(--dsw-font-s-14);color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;white-space:nowrap;animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);background:0 0;border:none;border-radius:8px;align-items:center;gap:6px;padding:0 8px;display:flex}.wm06mG_explorerRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_explorerRowRevealed{background:var(--dsw-alias-state-business-tertiary)}.wm06mG_explorerRowRevealed+.wm06mG_explorerRowRevealed{border-top-left-radius:0;border-top-right-radius:0}.wm06mG_explorerRowRevealed:has(+.wm06mG_explorerRowRevealed){border-bottom-right-radius:0;border-bottom-left-radius:0}.wm06mG_explorerDir{font:var(--dsw-font-s-strong-14)}.wm06mG_explorerHidden{opacity:.45}.wm06mG_explorerSymlink{color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_explorerBroken .wm06mG_explorerName{color:var(--dsw-alias-state-error-primary)}.wm06mG_explorerName{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.wm06mG_explorerRef{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);height:20px;color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxxs-strong-11);cursor:pointer;border-radius:999px;flex:none;align-items:center;padding:0 8px;display:none}.wm06mG_explorerRef:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_explorerRow:hover .wm06mG_explorerRef,.wm06mG_explorerRow:focus-within .wm06mG_explorerRef{display:inline-flex}.wm06mG_explorerCopied{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_explorerError{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);cursor:default}@keyframes wm06mG_dsh-row-in{0%{opacity:0}}.wm06mG_explorerEmpty{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);text-align:center;padding:16px}.wm06mG_explorerRowDropTarget{background:var(--dsw-alias-interactive-bg-hover);outline:1px dashed var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-1px}.wm06mG_uploadDropZone{z-index:1001;pointer-events:none;border:2px dashed var(--dsw-alias-interactive-bg-hover-accent);box-shadow:0 0 0 200vmax var(--dsw-alias-bg-mask-drop);animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);border-radius:10px;justify-content:center;align-items:flex-start;padding:12px;display:flex;position:fixed}.wm06mG_uploadDropHero{flex-direction:column;align-items:center;gap:10px;max-width:100%;padding-top:8px;display:flex}.wm06mG_uploadDropZonePill{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);max-width:100%;box-shadow:var(--dsw-shadow-lv2);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-strong-12);border-radius:999px;align-items:center;gap:6px;padding:6px 12px;display:flex}.wm06mG_uploadDropZoneText{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wm06mG_uploadDropChatHint{z-index:1002;pointer-events:none;animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;top:0;bottom:0;left:0}.wm06mG_uploadDropChatCard{text-align:center;max-width:100%;color:var(--dsw-alias-label-primary);font:var(--dsw-font-s-strong-14);flex-direction:column;align-items:center;gap:12px;display:flex}.wm06mG_uploadOverlay{z-index:30;background:var(--dsw-alias-bg-mask-1);backdrop-filter:var(--dsw-mask-blur);animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.wm06mG_uploadOverlayCard{border:1px solid var(--dsw-alias-border-inverted);background:var(--dsw-alias-bg-layer-2);min-width:280px;max-width:min(420px,100% - 48px);box-shadow:var(--dsw-shadow-lv3);border-radius:24px;flex-direction:column;gap:12px;padding:20px 24px;display:flex}.wm06mG_uploadOverlayTitle{font:var(--dsw-font-s-strong-14);color:var(--dsw-alias-label-primary);align-items:center;gap:8px;display:flex}.wm06mG_uploadOverlayTitle>svg{flex:none}.wm06mG_uploadOverlayTitle>span{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}.wm06mG_uploadOverlayProgress{background:var(--dsw-alias-border-l2);border-radius:3px;height:6px;overflow:hidden}.wm06mG_uploadOverlayProgressFill{background:var(--dsw-alias-interactive-bg-hover-accent);height:100%;transition:width .15s var(--ds-ease-in-out);border-radius:3px}.wm06mG_uploadOverlayStatus{min-height:1em;font:var(--dsw-font-xxs-12);font-variant-numeric:tabular-nums;color:var(--dsw-alias-label-tertiary);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wm06mG_uploadOverlayCancel{border:1px solid var(--dsw-alias-border-l2);height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;background:0 0;border-radius:8px;align-self:flex-end;padding:0 14px}.wm06mG_uploadOverlayCancel:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);border-color:var(--dsw-alias-border-l2)}.wm06mG_uploadOverlayCancel:disabled{opacity:.4;cursor:default}.wm06mG_editor{flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_editorHeader{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;align-items:center;gap:6px;padding:6px 8px;display:flex}.wm06mG_editorTitle{min-width:0;font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.wm06mG_editorPathInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:0;height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;flex:1;padding:0 10px}.wm06mG_editorPathInput:focus{border-color:var(--dsw-alias-border-l2);outline:none}.wm06mG_editorTreeToggleActive{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-active)}.wm06mG_editorBody{flex:1;min-height:0;display:flex}.wm06mG_editorMain{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.wm06mG_editorTreeDock{border-left:1px solid var(--dsw-alias-border-l1);flex:none;min-height:0;display:flex;position:relative}.wm06mG_editorTreeResize{cursor:col-resize;touch-action:none;z-index:3;width:6px;position:absolute;top:0;bottom:0;left:0}.wm06mG_editorTreeResize:hover{background:var(--dsw-alias-border-l2)}.wm06mG_editorTreePanel{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative}.wm06mG_editorTreePanelFull{flex:1}.wm06mG_editorTreeSearch{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;align-items:center;gap:6px;padding:6px 8px;display:flex}.wm06mG_editorSearchInput{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:0;height:26px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;flex:1;padding:0 10px}.wm06mG_editorSearchInput:focus{border-color:var(--dsw-alias-border-l2);outline:none}.wm06mG_editorSearchHint{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);padding:8px 12px}.wm06mG_editorSearchResult{width:100%;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);text-align:left;cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:none;border-radius:6px;padding:4px 8px;display:block;overflow:hidden}.wm06mG_editorSearchResult:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_editorStatus{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary)}.wm06mG_editorStatusError{color:var(--dsw-alias-state-error-primary)}.wm06mG_dirtyDot{background:var(--dsw-alias-state-warn-primary);border-radius:50%;flex:none;width:7px;height:7px}.wm06mG_editorPlaceholder{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);text-align:center;flex:1;justify-content:center;align-items:center;padding:16px;display:flex}.wm06mG_orphanedType{opacity:.7;overflow-wrap:anywhere;margin-top:8px;font-size:12px;display:block}.wm06mG_editorBinary{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:24px 16px;display:flex}.wm06mG_editorBinaryNotice{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary)}.wm06mG_editorDownloadLink{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-strong-12);cursor:pointer;transition:background var(--ds-transition-duration-slow) var(--ds-ease-in-out), border-color var(--ds-transition-duration-slow) var(--ds-ease-in-out);border-radius:6px;align-items:center;gap:6px;padding:6px 14px;text-decoration:none;display:inline-flex}.wm06mG_editorDownloadLink:hover{background:var(--dsw-alias-interactive-bg-hover);border-color:var(--dsw-alias-border-l2)}.wm06mG_editorError{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);padding:12px 16px}.wm06mG_fenceError{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 16px;display:flex}.wm06mG_editorBanner{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary);flex:none;padding:4px 8px}.wm06mG_sandboxStatus{font:var(--dsw-font-xxxs-11);flex:none;align-items:center;gap:8px;padding:4px 10px;display:flex}.wm06mG_sandboxStatusOn{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-bg-layer-1);border-bottom:1px solid var(--dsw-alias-border-l1)}.wm06mG_sandboxStatusOff{color:var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 10%, transparent);border-bottom:1px solid color-mix(in srgb, var(--dsw-alias-state-error-primary) 45%, transparent)}.wm06mG_sandboxDot{background:var(--dsw-alias-state-success-primary);border-radius:50%;flex:none;width:6px;height:6px}.wm06mG_sandboxStatusOff .wm06mG_sandboxDot{background:var(--dsw-alias-state-error-primary)}.wm06mG_sandboxStatusText{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.wm06mG_sandboxAction{border:1px solid var(--dsw-alias-border-l2);font:inherit;color:inherit;cursor:pointer;background:0 0;border-radius:6px;flex:none;padding:2px 8px}.wm06mG_sandboxAction:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_editorHtml{background:var(--dsw-alias-bg-base);border:none;flex:1;width:100%;min-height:0}.wm06mG_browser{flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_browserBar{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;align-items:center;gap:4px;padding:6px 8px;display:flex}.wm06mG_browserInput{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);min-width:0;height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;flex:1;padding:0 10px}.wm06mG_browserInput:focus{border-color:var(--dsw-alias-border-l2);outline:none}.wm06mG_browserMessage{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary);flex:none;padding:4px 12px}.wm06mG_browserFrame{background:var(--dsw-alias-bg-base);border:none;flex:1;width:100%;min-height:0}.wm06mG_browserStart{text-align:center;min-height:0;font:var(--dsw-font-xs-13);color:var(--dsw-alias-label-tertiary);flex:1;justify-content:center;align-items:center;padding:20px;display:flex}.wm06mG_browserBlocked{text-align:center;min-height:0;color:var(--dsw-alias-state-warn-primary);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:6px;padding:24px;display:flex}.wm06mG_browserBlockedTitle{font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-label-primary)}.wm06mG_browserBlockedDesc{max-width:280px;font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-secondary)}.wm06mG_browserBlockedActions{gap:8px;margin-top:6px;display:flex}.wm06mG_browserBlockedButton{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxxs-11);cursor:pointer;border-radius:6px;padding:4px 12px}.wm06mG_browserBlockedButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_editorCm{background:0 0;flex:1;min-height:0;overflow:hidden}.wm06mG_editorCmHidden{display:none}.wm06mG_editorCm .cm-editor{height:100%}.wm06mG_editorCm .cm-scroller{padding:12px 16px}.wm06mG_editorCm .cm-editor.cm-focused{outline:none}.wm06mG_editorModeToggle{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:6px;flex:none;align-items:center;gap:2px;padding:2px;display:inline-flex}.wm06mG_editorModeButton{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxxs-11);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px 8px}.wm06mG_editorModeButton:hover{color:var(--dsw-alias-label-primary)}.wm06mG_editorModeActive{background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary)}.wm06mG_editorImageWrap{flex:1;justify-content:center;align-items:center;min-height:0;padding:12px;display:flex;overflow:auto}.wm06mG_editorImage{object-fit:contain;max-width:100%;max-height:100%}.wm06mG_editorMd{min-height:0;font:var(--dsw-font-xs-13);flex:1;padding:12px 16px;overflow-y:auto}.wm06mG_mermaidWrap{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:6px;margin:6px 0;overflow:hidden}.wm06mG_mermaidHeader{border-bottom:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);justify-content:space-between;align-items:center;gap:6px;padding:4px 8px;display:flex}.wm06mG_mermaidInfo{font:var(--dsw-font-xxxs-strong-11);color:var(--dsw-alias-label-tertiary)}.wm06mG_mermaidCopy{height:20px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxxs-11);cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:4px;padding:0 6px;display:inline-flex}.wm06mG_mermaidCopy:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_mermaidBody{cursor:zoom-in;justify-content:center;padding:10px;display:flex;overflow:auto}.wm06mG_mermaidBody svg{max-width:100%;height:auto}.wm06mG_mermaidError{border-bottom:1px solid var(--dsw-alias-border-l1);color:var(--dsw-alias-state-error-primary);font:var(--dsw-font-xxxs-11);padding:6px 10px}.wm06mG_mermaidCode{font:var(--dsw-font-xxxs-11);margin:0;padding:8px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow:auto}.wm06mG_mermaidMarkdown .md-code-block[data-mermaid-processed]{display:contents}.wm06mG_mermaidModal{z-index:1000;background:var(--dsw-alias-bg-mask-1);backdrop-filter:blur(2px);flex-direction:column;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.wm06mG_mermaidModalToolbar{z-index:10;gap:8px;display:flex;position:absolute;top:16px;right:16px}.wm06mG_mermaidModalButton{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:36px;height:36px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-strong-13);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.wm06mG_mermaidModalButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_mermaidModalStage{justify-content:center;align-items:center;width:90vw;height:80vh;display:flex;position:relative;overflow:hidden}.wm06mG_mermaidModalStage svg{cursor:grab;transform-origin:50%;user-select:none;-webkit-user-drag:none;background:var(--dsw-alias-bg-layer-1);border-radius:12px;max-width:none;max-height:none;padding:16px}.wm06mG_mermaidModalStage svg:active{cursor:grabbing}.wm06mG_mermaidModalHint{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxxs-11);pointer-events:none;position:absolute;bottom:16px;left:50%;transform:translate(-50%)}.wm06mG_selectionPopup{z-index:60;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxxs-strong-11);white-space:nowrap;cursor:pointer;border-radius:6px;align-items:center;padding:0 10px;display:inline-flex;position:fixed;transform:translate(-50%,calc(-100% - 8px))}.wm06mG_selectionPopup:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_editorPdf{background:var(--dsw-alias-bg-base);flex-direction:column;flex:1;min-height:0;display:flex}.wm06mG_editorPdfToolbar{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;justify-content:flex-end;padding:6px 8px;display:flex}.wm06mG_editorPdfStage{flex:1;min-height:0;display:flex;position:relative}.wm06mG_editorPdfFrame{background:var(--dsw-alias-bg-base);border:none;flex:1;width:100%;min-height:0}.wm06mG_editorPdfFrameBlocked{pointer-events:none}.wm06mG_editorPdfDragShield{z-index:4;pointer-events:none;background:0 0;position:absolute;inset:0}.wm06mG_editorPdfDragShieldActive{pointer-events:auto}body[data-dsh-tab-dragging] .wm06mG_editorPdfFrame{pointer-events:none!important}body[data-dsh-tab-dragging] .wm06mG_editorPdfDragShield{pointer-events:auto!important}.wm06mG_terminalWrap{background:var(--dsw-alias-bg-base);flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.wm06mG_terminal{flex:1;min-height:0;padding:6px 4px 6px 8px}.wm06mG_terminal .xterm{height:100%}.wm06mG_terminalBanner{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary);flex-wrap:wrap;flex:none;align-items:center;gap:8px;padding:3px 10px;display:flex}.wm06mG_terminalBannerUrl{word-break:break-all;opacity:.85;flex-basis:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.wm06mG_boundaryError{z-index:50;background:var(--dsw-alias-bg-layer-1);border-left:1px solid var(--dsw-alias-border-l2);font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);flex-direction:column;align-items:flex-start;gap:8px;padding:16px;display:flex;position:fixed;top:0;bottom:0;right:0;overflow:auto}.wm06mG_terminalRetry{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxxs-strong-11);cursor:pointer;border-radius:999px;flex:none;padding:1px 8px}.wm06mG_terminalRetry:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_terminalDepsBanner{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-warn-label);background:var(--dsw-alias-state-warn-tertiary);flex-direction:column;flex:none;gap:6px;padding:10px;display:flex}.wm06mG_terminalDepsTitle{font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-state-warn-primary)}.wm06mG_terminalDepsHint{opacity:.9}.wm06mG_terminalDepsCommandRow{align-items:flex-start;gap:8px;display:flex}.wm06mG_terminalRepairCommand{white-space:pre-wrap;word-break:break-all;user-select:text;min-width:0;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l2);border-radius:4px;flex:1;max-height:160px;margin:0;padding:6px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;line-height:1.5;overflow:auto}.wm06mG_terminalDepsNote{opacity:.85}.wm06mG_terminalDepsActions{align-items:center;gap:8px;display:flex}.wm06mG_tabBoundaryError{min-height:0;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);flex-direction:column;flex:1;align-items:flex-start;gap:8px;padding:12px 16px;display:flex;overflow:auto}.wm06mG_git{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden auto}.wm06mG_gitHeader{flex:none;align-items:center;gap:8px;height:36px;padding:0 8px 0 12px;display:flex}.wm06mG_gitWorktreeRow{flex:none;align-items:center;gap:8px;padding:6px 8px 0 12px;display:flex}.wm06mG_gitWorktreeLabel{color:var(--dsw-alias-label-tertiary);font:var(--dsw-font-xxxs-11);flex:none}.wm06mG_gitBranchSelect{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);min-width:0;height:26px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;flex:1;padding:0 6px}.wm06mG_gitSection{border-top:1px solid var(--dsw-alias-border-l1)}.wm06mG_gitSectionHeader{font:var(--dsw-font-xxxs-strong-11);color:var(--dsw-alias-label-tertiary);text-transform:uppercase;justify-content:space-between;align-items:center;padding:6px 12px 4px;display:flex}.wm06mG_gitLink{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-brand-primary);cursor:pointer;background:0 0;border:none;padding:0}.wm06mG_gitLink:hover:not(:disabled){text-decoration:underline}.wm06mG_gitLink:disabled{opacity:.4;cursor:default}.wm06mG_gitRow{min-height:34px;animation:wm06mG_dsh-row-in .15s var(--ds-ease-in-out);border-radius:8px;align-items:center;gap:6px;margin:0 6px;padding:0 8px;display:flex}.wm06mG_gitRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_gitRowSelected{background:var(--dsw-alias-interactive-bg-active)}.wm06mG_gitRowMain{cursor:pointer;text-align:left;background:0 0;border:none;flex:1;align-items:center;gap:8px;min-width:0;padding:3px 0;display:flex}.wm06mG_gitBadge{width:20px;height:16px;font:var(--dsw-font-xxxs-strong-11);background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary);border-radius:4px;flex:none;justify-content:center;align-items:center;display:inline-flex}.wm06mG_gitName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:var(--dsw-font-s-14);color:var(--dsw-alias-label-primary);flex:1;overflow:hidden}.wm06mG_gitEmpty{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);padding:4px 12px 8px}.wm06mG_gitPlaceholder{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary);text-align:center;padding:16px}.wm06mG_gitError{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-state-error-primary);white-space:pre-wrap;padding:8px 12px}.wm06mG_gitDiff{border-top:1px solid var(--dsw-alias-border-l1);padding:8px}.wm06mG_gitDiffTab{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;overflow:hidden auto}.wm06mG_gitDiffTabHeader{border-bottom:1px solid var(--dsw-alias-border-l1);flex:none;align-items:center;gap:8px;height:36px;padding:0 8px 0 12px;display:flex}.wm06mG_gitDiffTabTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-label-primary);flex:1;overflow:hidden}.wm06mG_gitDiffFile{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:baseline;gap:6px;padding:8px 2px 2px;display:flex}.wm06mG_gitDiffFile:disabled{cursor:default}.wm06mG_gitDiffFile:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_gitDiffFileChevron{color:var(--dsw-alias-label-tertiary);flex:none;transform:rotate(0)}.wm06mG_gitDiffFileChevronExpanded{transform:rotate(90deg)}.wm06mG_gitDiffFilePath{font:var(--dsw-font-xxs-strong-12);color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wm06mG_gitDiffFileOld{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;flex:none;max-width:40%;overflow:hidden}.wm06mG_gitDiffFileTag{border:1px solid var(--dsw-alias-border-l2);font:var(--dsw-font-xxxs-strong-11);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:0 6px}.wm06mG_gitDiffHunk{font:var(--dsw-font-markdown-code-block-small);color:var(--dsw-alias-label-tertiary);gap:8px;padding:3px 2px;display:flex}.wm06mG_gitDiffHunkHeader{color:var(--dsw-alias-label-secondary);flex:none}.wm06mG_gitDiffHunkSection{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wm06mG_gitDiffLine{font:var(--dsw-font-markdown-code-block-small);white-space:pre-wrap;overflow-wrap:anywhere;align-items:stretch;min-width:0;line-height:20px;display:flex}.wm06mG_gitDiffNum{text-align:right;width:36px;color:var(--dsw-alias-label-tertiary);user-select:none;flex:none;padding-right:8px}.wm06mG_gitDiffCode{flex:1;min-width:0;overflow:visible}.wm06mG_gitDiffCtx{color:var(--dsw-alias-label-primary)}.wm06mG_gitDiffDel{color:var(--dsw-alias-state-error-primary);background:color-mix(in srgb, var(--dsw-alias-state-error-primary) 12%, transparent)}.wm06mG_gitDiffAdd{color:var(--dsw-alias-state-success-primary);background:color-mix(in srgb, var(--dsw-alias-state-success-primary) 12%, transparent)}.wm06mG_gitDiffMeta{padding-left:2px}.wm06mG_gitDiffMetaText{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary);font-style:italic}.wm06mG_gitDiffExpand{width:100%;font:var(--dsw-font-xxs-12);color:var(--dsw-alias-brand-primary);cursor:pointer;text-align:center;background:0 0;border:none;margin:4px 0;display:block}.wm06mG_gitDiffExpand:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_gitConfirmDesc{font:var(--dsw-font-s-14);color:var(--dsw-alias-label-primary);white-space:pre-wrap;margin:0}.wm06mG_gitCommit{border-top:1px solid var(--dsw-alias-border-l1);align-items:center;gap:6px;padding:8px 12px;display:flex}.wm06mG_gitCommitInput{flex:1;min-width:0}.wm06mG_gitCommitButton{background:var(--dsw-alias-button-primary-fill);height:26px;color:var(--dsw-alias-label-primary-inverted);font:var(--dsw-font-xxs-strong-12);cursor:pointer;border:none;border-radius:6px;flex:none;padding:0 12px}.wm06mG_gitCommitButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.wm06mG_gitCommitButton:disabled{opacity:.45;cursor:default}.wm06mG_gitLogRow{cursor:pointer;border-radius:8px;flex-direction:column;gap:2px;padding:5px 12px;display:flex}.wm06mG_gitLogRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.wm06mG_gitLogLine1{align-items:baseline;gap:8px;min-width:0;display:flex}.wm06mG_gitLogHash{font:var(--dsw-font-markdown-code-block-small);color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_gitLogLine2{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.wm06mG_gitLogRef{border:1px solid var(--dsw-alias-border-l2);font:var(--dsw-font-xxxs-strong-11);color:var(--dsw-alias-brand-primary);white-space:nowrap;border-radius:999px;flex:none;padding:0 5px}.wm06mG_gitLogSubject{text-overflow:ellipsis;white-space:nowrap;min-width:0;font:var(--dsw-font-s-14);color:var(--dsw-alias-label-primary);flex:1;overflow:hidden}.wm06mG_gitLogMeta{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary)}.wm06mG_gitLogMore{border:1px solid var(--dsw-alias-border-l2);width:calc(100% - 24px);font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border-radius:6px;margin:4px 12px 8px;padding:6px 0;display:block}.wm06mG_gitLogMore:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_gitLogMore:disabled{opacity:.5;cursor:default}.wm06mG_producedRow{flex-wrap:wrap;align-items:center;gap:8px;padding:4px 0;display:flex}.wm06mG_producedLabel{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary)}.wm06mG_producedChip{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);max-width:200px;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);cursor:pointer;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;display:inline-flex;overflow:hidden}.wm06mG_producedChip:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_producedChip span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.wm06mG_producedMore{font:var(--dsw-font-xxs-12);color:var(--dsw-alias-label-tertiary)}.wm06mG_toggleButton:focus-visible,.wm06mG_manualButton:focus-visible,.wm06mG_bottomClose:focus-visible,.wm06mG_iconButton:focus-visible,.wm06mG_tab:focus-visible,.wm06mG_tabClose:focus-visible,.wm06mG_tabBarPlus:focus-visible,.wm06mG_paneCard:focus-visible,.wm06mG_explorerRow:focus-visible,.wm06mG_explorerRef:focus-visible,.wm06mG_gitRowMain:focus-visible,.wm06mG_gitLink:focus-visible,.wm06mG_gitCommitButton:focus-visible,.wm06mG_gitLogRow:focus-visible,.wm06mG_gitLogMore:focus-visible,.wm06mG_gitDiffFile:focus-visible,.wm06mG_gitDiffExpand:focus-visible,.wm06mG_terminalRetry:focus-visible,.wm06mG_editorModeButton:focus-visible,.wm06mG_editorDownloadLink:focus-visible,.wm06mG_editorPptxButton:focus-visible,.wm06mG_editorDocxZoomRange:focus-visible{outline:2px solid var(--dsw-alias-interactive-bg-hover-accent);outline-offset:-1px}@media (prefers-reduced-motion:reduce){.wm06mG_panel,.wm06mG_panelHidden,.wm06mG_bottomPanel,.wm06mG_bottomPanelHidden,.wm06mG_toggleCluster,.wm06mG_toggleButton,.wm06mG_tab,.wm06mG_tabBarPlus,.wm06mG_paneCard,.wm06mG_explorerRow,.wm06mG_gitRow,.wm06mG_divider,.wm06mG_dividerRow:after,.wm06mG_dividerCol:after{transition:none;animation:none}}@media (width<=767px){.wm06mG_panel:not(.wm06mG_panelHidden) .wm06mG_tabBar{padding-right:148px}.wm06mG_tab{min-width:48px;max-width:128px}}.wm06mG_openWithLabel{align-items:center;gap:8px;width:100%;min-width:0;display:flex}.wm06mG_openWithName{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.wm06mG_openWithPin{width:20px;height:20px;color:var(--dsw-alias-label-tertiary);cursor:pointer;border-radius:6px;flex:none;justify-content:center;align-items:center;display:inline-flex}.wm06mG_openWithPin:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_openWithPinActive{color:var(--dsw-alias-state-business-primary)}.wm06mG_editorHtmlBlock{margin:8px 0}.wm06mG_editorHtmlBlock img,.wm06mG_editorHtmlBlock video{max-width:100%}.wm06mG_editorHtmlBlock details{margin:4px 0;padding:4px 0}.wm06mG_editorHtmlBlock summary{cursor:pointer}.wm06mG_tocBar{z-index:3;pointer-events:none;justify-content:flex-end;height:0;display:flex;position:sticky;top:0}.wm06mG_tocButton{pointer-events:auto;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);width:26px;height:26px;color:var(--dsw-alias-label-secondary);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;margin:4px 2px 0 0;padding:0;display:inline-flex}.wm06mG_tocButton:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_tocPanel{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-2);width:min(300px,82%);max-height:60vh;box-shadow:var(--dsw-shadow-lv2);pointer-events:auto;border-radius:8px;flex-direction:column;padding:4px;display:flex;position:absolute;top:32px;right:2px;overflow-y:auto}.wm06mG_tocItem{min-width:0;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-xxs-12);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:baseline;gap:8px;padding:4px 8px;display:flex}.wm06mG_tocItem:hover{background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.wm06mG_tocItem[data-level=\"2\"]{padding-left:18px}.wm06mG_tocItem[data-level=\"3\"]{padding-left:28px}.wm06mG_tocItem[data-level=\"4\"]{padding-left:38px}.wm06mG_tocItem[data-level=\"5\"]{padding-left:48px}.wm06mG_tocItem[data-level=\"6\"]{padding-left:58px}.wm06mG_tocItemLevel{font:var(--dsw-font-xxxs-11);color:var(--dsw-alias-label-tertiary);flex:none}.wm06mG_tocItemText{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}@keyframes wm06mG_dsh-toc-flash{0%,60%{background:var(--dsw-alias-interactive-bg-hover)}to{background:0 0}}.wm06mG_tocFlash{border-radius:4px;animation:1.2s ease-out wm06mG_dsh-toc-flash}.wm06mG_chatcodeGate{z-index:2147483000;isolation:isolate;background-color:var(--dsw-alias-tooltip-bg);background-image:linear-gradient(135deg, var(--dsw-alias-tooltip-bg) 0%, var(--dsw-alias-brand-primary) 48%, var(--dsw-alias-tooltip-bg) 100%);color:var(--dsw-alias-fg-base);pointer-events:auto;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow:hidden}.wm06mG_chatcodeGateCard{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:linear-gradient(145deg, var(--dsw-alias-bg-layer-2), var(--dsw-alias-bg-layer-1));width:min(460px,100%);box-shadow:var(--dsw-shadow-lv3);text-align:center;border-radius:20px;padding:40px 36px;position:relative}.wm06mG_chatcodeGateContent{position:relative}.wm06mG_chatcodeGateCard h1{font:var(--dsw-font-heading-lg);letter-spacing:-.02em;margin:0 0 12px;font-size:clamp(32px,5vw,46px);line-height:1.1}.wm06mG_chatcodeGateCard p{max-width:29em;color:var(--dsw-alias-label-secondary);font:var(--dsw-font-s-14);margin:0 auto;line-height:1.7}.wm06mG_chatcodeGateError{border:1px solid color-mix(in srgb, var(--dsw-alias-fg-error) 36%, var(--dsw-alias-border-l2));background:color-mix(in srgb, var(--dsw-alias-fg-error) 8%, transparent);border-radius:10px;padding:9px 11px;position:relative;color:var(--dsw-alias-fg-error)!important;font:var(--dsw-font-xxs-12)!important;margin-top:16px!important;line-height:1.5!important}.wm06mG_chatcodeGateActions{justify-content:center;gap:10px;margin:28px 0 14px;display:flex;position:relative}.wm06mG_chatcodeGateActions button,.wm06mG_chatcodeGateCard a{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);min-height:42px;color:var(--dsw-alias-fg-base);font:var(--dsw-font-xxs-strong-12);cursor:pointer;transition:transform var(--ds-transition-duration-slow) var(--ds-ease-in-out), background var(--ds-transition-duration-slow) var(--ds-ease-in-out), border-color var(--ds-transition-duration-slow) var(--ds-ease-in-out);border-radius:10px;padding:9px 17px}.wm06mG_chatcodeGateActions button:first-child{border-color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-state-error-primary);min-width:152px;min-height:46px;color:var(--dsw-alias-label-primary-inverted)}.wm06mG_chatcodeGateActions button:first-child:hover:not(:disabled){box-shadow:var(--dsw-shadow-lv2);transform:translateY(-2px);border-color:var(--dsw-alias-state-error-primary)!important;background:var(--dsw-alias-state-error-primary)!important;color:var(--dsw-alias-label-primary-inverted)!important}.wm06mG_chatcodeGateActions button:not(:first-child):hover:not(:disabled),.wm06mG_chatcodeGateCard a:hover{border-color:var(--dsw-alias-button-primary-hover);background:var(--dsw-alias-button-primary-hover);color:var(--dsw-alias-label-primary-inverted);transform:translateY(-1px)}.wm06mG_chatcodeGateActions button:disabled{cursor:default;opacity:.55}.wm06mG_chatcodeGateCard a{align-items:center;text-decoration:none;display:inline-flex;position:relative}.wm06mG_chatcodeGateActions button:focus-visible,.wm06mG_chatcodeGateCard a:focus-visible{outline:2px solid var(--dsw-alias-border-accent);outline-offset:3px}@media (width<=480px){.wm06mG_chatcodeGate{padding:16px}.wm06mG_chatcodeGateCard{padding:32px 24px}.wm06mG_chatcodeGateActions{flex-direction:column;align-items:stretch}.wm06mG_chatcodeGateActions button,.wm06mG_chatcodeGateCard a{justify-content:center}}.wm06mG_accountMenu[data-settings-launcher]{border:0;width:100%;position:relative}.wm06mG_accountMenu[data-settings-launcher]:not([data-rail]){width:calc(100% + 2 * var(--dsh-sidebar-inline-padding,8px));margin-inline:calc(-1 * var(--dsh-sidebar-inline-padding,8px));border-top:1px solid var(--dsw-alias-border-l2);margin-bottom:-10px}.wm06mG_accountMenu[data-settings-launcher][data-rail] .wm06mG_accountName{display:none}";
|
|
12274
12274
|
const tagId$5 = "@chatcode/cco-better-sidebar/sidebar.module.css";
|
|
12275
12275
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$5) + "]") === null) {
|
|
12276
12276
|
const tag = document.createElement("style");
|
|
@@ -12280,310 +12280,309 @@ window.__ModuleLoader__.load({
|
|
|
12280
12280
|
document.head.appendChild(tag);
|
|
12281
12281
|
}
|
|
12282
12282
|
var sidebar_module_css_default = {
|
|
12283
|
-
"
|
|
12284
|
-
"
|
|
12285
|
-
"
|
|
12283
|
+
"gitRowMain": "wm06mG_gitRowMain",
|
|
12284
|
+
"editorModeToggle": "wm06mG_editorModeToggle",
|
|
12285
|
+
"releaseNotesHeader": "wm06mG_releaseNotesHeader",
|
|
12286
|
+
"openWithLabel": "wm06mG_openWithLabel",
|
|
12287
|
+
"git": "wm06mG_git",
|
|
12286
12288
|
"browserBlockedDesc": "wm06mG_browserBlockedDesc",
|
|
12287
|
-
"
|
|
12288
|
-
"
|
|
12289
|
-
"
|
|
12290
|
-
"
|
|
12291
|
-
"
|
|
12292
|
-
"
|
|
12293
|
-
"
|
|
12294
|
-
"
|
|
12295
|
-
"
|
|
12296
|
-
"
|
|
12297
|
-
"
|
|
12298
|
-
"
|
|
12299
|
-
"
|
|
12300
|
-
"
|
|
12301
|
-
"
|
|
12302
|
-
"editorPdfFrameBlocked": "wm06mG_editorPdfFrameBlocked",
|
|
12303
|
-
"gitDiffFile": "wm06mG_gitDiffFile",
|
|
12304
|
-
"mermaidModal": "wm06mG_mermaidModal",
|
|
12305
|
-
"editorMd": "wm06mG_editorMd",
|
|
12306
|
-
"gitWorktreeLabel": "wm06mG_gitWorktreeLabel",
|
|
12307
|
-
"gitDiffMetaText": "wm06mG_gitDiffMetaText",
|
|
12308
|
-
"gitLogMore": "wm06mG_gitLogMore",
|
|
12309
|
-
"gitSection": "wm06mG_gitSection",
|
|
12289
|
+
"tabBadge": "wm06mG_tabBadge",
|
|
12290
|
+
"editorPdfDragShieldActive": "wm06mG_editorPdfDragShieldActive",
|
|
12291
|
+
"accountLogoutActions": "wm06mG_accountLogoutActions",
|
|
12292
|
+
"chatcodeGateCard": "wm06mG_chatcodeGateCard",
|
|
12293
|
+
"manualButton": "wm06mG_manualButton",
|
|
12294
|
+
"dividerRow": "wm06mG_dividerRow",
|
|
12295
|
+
"chatcodeGate": "wm06mG_chatcodeGate",
|
|
12296
|
+
"editorStatusError": "wm06mG_editorStatusError",
|
|
12297
|
+
"pinnedSessionMore": "wm06mG_pinnedSessionMore",
|
|
12298
|
+
"updateBody": "wm06mG_updateBody",
|
|
12299
|
+
"accountDropdownHeader": "wm06mG_accountDropdownHeader",
|
|
12300
|
+
"uploadOverlayProgressFill": "wm06mG_uploadOverlayProgressFill",
|
|
12301
|
+
"pinnedSessionTitle": "wm06mG_pinnedSessionTitle",
|
|
12302
|
+
"editorTitle": "wm06mG_editorTitle",
|
|
12303
|
+
"dropDown": "wm06mG_dropDown",
|
|
12310
12304
|
"gitDiffCtx": "wm06mG_gitDiffCtx",
|
|
12311
|
-
"
|
|
12312
|
-
"
|
|
12313
|
-
"
|
|
12314
|
-
"
|
|
12315
|
-
"
|
|
12316
|
-
"
|
|
12317
|
-
"
|
|
12318
|
-
"
|
|
12319
|
-
"
|
|
12320
|
-
"dropLeft": "wm06mG_dropLeft",
|
|
12321
|
-
"editorPdfStage": "wm06mG_editorPdfStage",
|
|
12322
|
-
"floatContent": "wm06mG_floatContent",
|
|
12323
|
-
"terminal": "wm06mG_terminal",
|
|
12324
|
-
"gitCommitButton": "wm06mG_gitCommitButton",
|
|
12325
|
-
"chatcodeGateActions": "wm06mG_chatcodeGateActions",
|
|
12326
|
-
"floatResize": "wm06mG_floatResize",
|
|
12327
|
-
"gitDiffFileTag": "wm06mG_gitDiffFileTag",
|
|
12328
|
-
"editorPdfToolbar": "wm06mG_editorPdfToolbar",
|
|
12329
|
-
"tab": "wm06mG_tab",
|
|
12330
|
-
"updateCommand": "wm06mG_updateCommand",
|
|
12331
|
-
"explorerEmpty": "wm06mG_explorerEmpty",
|
|
12332
|
-
"bottomResizeActive": "wm06mG_bottomResizeActive",
|
|
12305
|
+
"orphanedType": "wm06mG_orphanedType",
|
|
12306
|
+
"gitName": "wm06mG_gitName",
|
|
12307
|
+
"accountDropdown": "wm06mG_accountDropdown",
|
|
12308
|
+
"panel": "wm06mG_panel",
|
|
12309
|
+
"pinnedSessionDot": "wm06mG_pinnedSessionDot",
|
|
12310
|
+
"explorerSymlink": "wm06mG_explorerSymlink",
|
|
12311
|
+
"explorerRowDropTarget": "wm06mG_explorerRowDropTarget",
|
|
12312
|
+
"gitDiffHunk": "wm06mG_gitDiffHunk",
|
|
12313
|
+
"gitRow": "wm06mG_gitRow",
|
|
12333
12314
|
"gitDiffNum": "wm06mG_gitDiffNum",
|
|
12334
|
-
"
|
|
12335
|
-
"
|
|
12336
|
-
"
|
|
12337
|
-
"
|
|
12338
|
-
"
|
|
12315
|
+
"iconButton": "wm06mG_iconButton",
|
|
12316
|
+
"gitDiffMeta": "wm06mG_gitDiffMeta",
|
|
12317
|
+
"editorPptxButton": "wm06mG_editorPptxButton",
|
|
12318
|
+
"editorPlaceholder": "wm06mG_editorPlaceholder",
|
|
12319
|
+
"bottomClose": "wm06mG_bottomClose",
|
|
12320
|
+
"tabClose": "wm06mG_tabClose",
|
|
12339
12321
|
"editorCm": "wm06mG_editorCm",
|
|
12340
|
-
"
|
|
12341
|
-
"
|
|
12342
|
-
"updateFooter": "wm06mG_updateFooter",
|
|
12343
|
-
"editorTitle": "wm06mG_editorTitle",
|
|
12344
|
-
"tabBarPlus": "wm06mG_tabBarPlus",
|
|
12322
|
+
"releaseNotesIconButton": "wm06mG_releaseNotesIconButton",
|
|
12323
|
+
"uploadDropHero": "wm06mG_uploadDropHero",
|
|
12345
12324
|
"editorPdfFrame": "wm06mG_editorPdfFrame",
|
|
12346
|
-
"
|
|
12347
|
-
"terminalDepsTitle": "wm06mG_terminalDepsTitle",
|
|
12348
|
-
"pinnedSessionRow": "wm06mG_pinnedSessionRow",
|
|
12349
|
-
"browserBlockedTitle": "wm06mG_browserBlockedTitle",
|
|
12350
|
-
"terminalRepairCommand": "wm06mG_terminalRepairCommand",
|
|
12351
|
-
"gitDiffTabTitle": "wm06mG_gitDiffTabTitle",
|
|
12352
|
-
"gitHeader": "wm06mG_gitHeader",
|
|
12325
|
+
"gitError": "wm06mG_gitError",
|
|
12353
12326
|
"bottomResize": "wm06mG_bottomResize",
|
|
12354
|
-
"
|
|
12355
|
-
"
|
|
12356
|
-
"
|
|
12357
|
-
"
|
|
12358
|
-
"
|
|
12359
|
-
"
|
|
12360
|
-
"
|
|
12361
|
-
"
|
|
12362
|
-
"pinnedSessionsList": "wm06mG_pinnedSessionsList",
|
|
12363
|
-
"pinnedSessions": "wm06mG_pinnedSessions",
|
|
12364
|
-
"uploadOverlayCancel": "wm06mG_uploadOverlayCancel",
|
|
12365
|
-
"terminalDepsBanner": "wm06mG_terminalDepsBanner",
|
|
12366
|
-
"git": "wm06mG_git",
|
|
12367
|
-
"updateErrorText": "wm06mG_updateErrorText",
|
|
12368
|
-
"explorerHeader": "wm06mG_explorerHeader",
|
|
12327
|
+
"explorerDir": "wm06mG_explorerDir",
|
|
12328
|
+
"floatResize": "wm06mG_floatResize",
|
|
12329
|
+
"sandboxStatusText": "wm06mG_sandboxStatusText",
|
|
12330
|
+
"terminalWrap": "wm06mG_terminalWrap",
|
|
12331
|
+
"accountLogoutConfirm": "wm06mG_accountLogoutConfirm",
|
|
12332
|
+
"mermaidInfo": "wm06mG_mermaidInfo",
|
|
12333
|
+
"tocItem": "wm06mG_tocItem",
|
|
12334
|
+
"editorPdfStage": "wm06mG_editorPdfStage",
|
|
12369
12335
|
"pinnedTab": "wm06mG_pinnedTab",
|
|
12370
|
-
"
|
|
12371
|
-
"gitSectionHeader": "wm06mG_gitSectionHeader",
|
|
12372
|
-
"gitDiffMeta": "wm06mG_gitDiffMeta",
|
|
12373
|
-
"mermaidCode": "wm06mG_mermaidCode",
|
|
12374
|
-
"editorDownloadLink": "wm06mG_editorDownloadLink",
|
|
12375
|
-
"explorer": "wm06mG_explorer",
|
|
12376
|
-
"gitBranchSelect": "wm06mG_gitBranchSelect",
|
|
12336
|
+
"terminalRepairCommand": "wm06mG_terminalRepairCommand",
|
|
12377
12337
|
"gitDiffExpand": "wm06mG_gitDiffExpand",
|
|
12378
|
-
"
|
|
12379
|
-
"
|
|
12338
|
+
"updateInline": "wm06mG_updateInline",
|
|
12339
|
+
"tocFlash": "wm06mG_tocFlash",
|
|
12340
|
+
"editorTreeResize": "wm06mG_editorTreeResize",
|
|
12341
|
+
"releaseNotesFooter": "wm06mG_releaseNotesFooter",
|
|
12342
|
+
"terminalRetry": "wm06mG_terminalRetry",
|
|
12343
|
+
"gitLogRow": "wm06mG_gitLogRow",
|
|
12380
12344
|
"accountMenuDivider": "wm06mG_accountMenuDivider",
|
|
12381
|
-
"
|
|
12345
|
+
"floatWindowDragging": "wm06mG_floatWindowDragging",
|
|
12346
|
+
"split": "wm06mG_split",
|
|
12347
|
+
"sandboxStatusOn": "wm06mG_sandboxStatusOn",
|
|
12348
|
+
"browser": "wm06mG_browser",
|
|
12349
|
+
"chatcodeGateError": "wm06mG_chatcodeGateError",
|
|
12350
|
+
"pinnedSessions": "wm06mG_pinnedSessions",
|
|
12351
|
+
"dropRight": "wm06mG_dropRight",
|
|
12352
|
+
"uploadOverlayTitle": "wm06mG_uploadOverlayTitle",
|
|
12382
12353
|
"paneCard": "wm06mG_paneCard",
|
|
12383
|
-
"
|
|
12384
|
-
"
|
|
12385
|
-
"
|
|
12386
|
-
"
|
|
12387
|
-
"
|
|
12388
|
-
"
|
|
12389
|
-
"
|
|
12390
|
-
"
|
|
12391
|
-
"
|
|
12392
|
-
"
|
|
12393
|
-
"
|
|
12394
|
-
"editorHtml": "wm06mG_editorHtml",
|
|
12354
|
+
"sandboxAction": "wm06mG_sandboxAction",
|
|
12355
|
+
"paneEmptyCards": "wm06mG_paneEmptyCards",
|
|
12356
|
+
"uploadDropZoneText": "wm06mG_uploadDropZoneText",
|
|
12357
|
+
"explorerRoot": "wm06mG_explorerRoot",
|
|
12358
|
+
"editorBinary": "wm06mG_editorBinary",
|
|
12359
|
+
"tabTitle": "wm06mG_tabTitle",
|
|
12360
|
+
"boundaryError": "wm06mG_boundaryError",
|
|
12361
|
+
"mermaidBody": "wm06mG_mermaidBody",
|
|
12362
|
+
"editorTreeSearch": "wm06mG_editorTreeSearch",
|
|
12363
|
+
"gitEmpty": "wm06mG_gitEmpty",
|
|
12364
|
+
"editorTreeDock": "wm06mG_editorTreeDock",
|
|
12395
12365
|
"releaseNotesButton": "wm06mG_releaseNotesButton",
|
|
12396
|
-
"
|
|
12397
|
-
"
|
|
12398
|
-
"
|
|
12399
|
-
"
|
|
12400
|
-
"
|
|
12401
|
-
"
|
|
12402
|
-
"
|
|
12366
|
+
"editorTreePanelFull": "wm06mG_editorTreePanelFull",
|
|
12367
|
+
"updateSettingsBlock": "wm06mG_updateSettingsBlock",
|
|
12368
|
+
"explorerHeader": "wm06mG_explorerHeader",
|
|
12369
|
+
"accountLogoutTitle": "wm06mG_accountLogoutTitle",
|
|
12370
|
+
"accountMenu": "wm06mG_accountMenu",
|
|
12371
|
+
"editorSearchResult": "wm06mG_editorSearchResult",
|
|
12372
|
+
"explorerRef": "wm06mG_explorerRef",
|
|
12373
|
+
"floatHeader": "wm06mG_floatHeader",
|
|
12374
|
+
"editorSearchInput": "wm06mG_editorSearchInput",
|
|
12375
|
+
"browserBlockedTitle": "wm06mG_browserBlockedTitle",
|
|
12376
|
+
"mermaidModalToolbar": "wm06mG_mermaidModalToolbar",
|
|
12377
|
+
"gitDiffFilePath": "wm06mG_gitDiffFilePath",
|
|
12378
|
+
"splitChild": "wm06mG_splitChild",
|
|
12403
12379
|
"editorTreePanel": "wm06mG_editorTreePanel",
|
|
12404
|
-
"
|
|
12380
|
+
"terminalBannerUrl": "wm06mG_terminalBannerUrl",
|
|
12381
|
+
"gitLogLine1": "wm06mG_gitLogLine1",
|
|
12382
|
+
"toggleCluster": "wm06mG_toggleCluster",
|
|
12383
|
+
"gitLogMore": "wm06mG_gitLogMore",
|
|
12384
|
+
"editorDocxZoomRange": "wm06mG_editorDocxZoomRange",
|
|
12385
|
+
"browserBlockedActions": "wm06mG_browserBlockedActions",
|
|
12386
|
+
"pinnedSessionsHeading": "wm06mG_pinnedSessionsHeading",
|
|
12387
|
+
"gitDiffMetaText": "wm06mG_gitDiffMetaText",
|
|
12405
12388
|
"gitLogLine2": "wm06mG_gitLogLine2",
|
|
12406
|
-
"updateError": "wm06mG_updateError",
|
|
12407
|
-
"gitDiffLine": "wm06mG_gitDiffLine",
|
|
12408
|
-
"gitLogRef": "wm06mG_gitLogRef",
|
|
12409
|
-
"explorerRoot": "wm06mG_explorerRoot",
|
|
12410
|
-
"tabBarDrop": "wm06mG_tabBarDrop",
|
|
12411
|
-
"accountTrigger": "wm06mG_accountTrigger",
|
|
12412
|
-
"explorerRow": "wm06mG_explorerRow",
|
|
12413
12389
|
"fenceError": "wm06mG_fenceError",
|
|
12414
|
-
"
|
|
12415
|
-
"
|
|
12416
|
-
"editorError": "wm06mG_editorError",
|
|
12417
|
-
"splitChild": "wm06mG_splitChild",
|
|
12418
|
-
"editorBody": "wm06mG_editorBody",
|
|
12419
|
-
"uploadDropChatHint": "wm06mG_uploadDropChatHint",
|
|
12420
|
-
"toggleClusterNative": "wm06mG_toggleClusterNative",
|
|
12421
|
-
"panelBody": "wm06mG_panelBody",
|
|
12422
|
-
"updateList": "wm06mG_updateList",
|
|
12423
|
-
"workbench": "wm06mG_workbench",
|
|
12424
|
-
"uploadDropZonePill": "wm06mG_uploadDropZonePill",
|
|
12425
|
-
"sandboxAction": "wm06mG_sandboxAction",
|
|
12426
|
-
"gitBadge": "wm06mG_gitBadge",
|
|
12427
|
-
"gitName": "wm06mG_gitName",
|
|
12428
|
-
"accountLogoutConfirm": "wm06mG_accountLogoutConfirm",
|
|
12429
|
-
"pinnedSessionMenu": "wm06mG_pinnedSessionMenu",
|
|
12390
|
+
"dsh-row-in": "wm06mG_dsh-row-in",
|
|
12391
|
+
"gitDiffTabHeader": "wm06mG_gitDiffTabHeader",
|
|
12430
12392
|
"floatDropHintLabel": "wm06mG_floatDropHintLabel",
|
|
12431
|
-
"
|
|
12432
|
-
"
|
|
12433
|
-
"
|
|
12434
|
-
"editorBinaryNotice": "wm06mG_editorBinaryNotice",
|
|
12393
|
+
"gitDiffLine": "wm06mG_gitDiffLine",
|
|
12394
|
+
"floatClose": "wm06mG_floatClose",
|
|
12395
|
+
"explorerHidden": "wm06mG_explorerHidden",
|
|
12435
12396
|
"floatTitle": "wm06mG_floatTitle",
|
|
12436
|
-
"
|
|
12437
|
-
"
|
|
12438
|
-
"
|
|
12439
|
-
"
|
|
12440
|
-
"
|
|
12441
|
-
"
|
|
12442
|
-
"
|
|
12443
|
-
"
|
|
12444
|
-
"splitRow": "wm06mG_splitRow",
|
|
12445
|
-
"sandboxStatus": "wm06mG_sandboxStatus",
|
|
12446
|
-
"editorStatusError": "wm06mG_editorStatusError",
|
|
12447
|
-
"dropRight": "wm06mG_dropRight",
|
|
12448
|
-
"gitDiffHunkHeader": "wm06mG_gitDiffHunkHeader",
|
|
12397
|
+
"updateSettingsText": "wm06mG_updateSettingsText",
|
|
12398
|
+
"explorerBody": "wm06mG_explorerBody",
|
|
12399
|
+
"uploadOverlayStatus": "wm06mG_uploadOverlayStatus",
|
|
12400
|
+
"uploadDropChatCard": "wm06mG_uploadDropChatCard",
|
|
12401
|
+
"gitRowSelected": "wm06mG_gitRowSelected",
|
|
12402
|
+
"panelHidden": "wm06mG_panelHidden",
|
|
12403
|
+
"updateErrorText": "wm06mG_updateErrorText",
|
|
12404
|
+
"editorTreeToggleActive": "wm06mG_editorTreeToggleActive",
|
|
12449
12405
|
"editorPathInput": "wm06mG_editorPathInput",
|
|
12450
|
-
"
|
|
12451
|
-
"
|
|
12452
|
-
"
|
|
12453
|
-
"
|
|
12454
|
-
"
|
|
12455
|
-
"
|
|
12456
|
-
"
|
|
12406
|
+
"terminalBanner": "wm06mG_terminalBanner",
|
|
12407
|
+
"gitDiff": "wm06mG_gitDiff",
|
|
12408
|
+
"editor": "wm06mG_editor",
|
|
12409
|
+
"explorerBroken": "wm06mG_explorerBroken",
|
|
12410
|
+
"explorerError": "wm06mG_explorerError",
|
|
12411
|
+
"uploadDropZonePill": "wm06mG_uploadDropZonePill",
|
|
12412
|
+
"editorSearchHint": "wm06mG_editorSearchHint",
|
|
12413
|
+
"tabBar": "wm06mG_tabBar",
|
|
12414
|
+
"gitBranchSelect": "wm06mG_gitBranchSelect",
|
|
12415
|
+
"pinnedSessionsList": "wm06mG_pinnedSessionsList",
|
|
12416
|
+
"gitHeader": "wm06mG_gitHeader",
|
|
12417
|
+
"pinnedSessionMenu": "wm06mG_pinnedSessionMenu",
|
|
12418
|
+
"editorCmHidden": "wm06mG_editorCmHidden",
|
|
12419
|
+
"chatcodeGateContent": "wm06mG_chatcodeGateContent",
|
|
12420
|
+
"editorModeActive": "wm06mG_editorModeActive",
|
|
12421
|
+
"terminal": "wm06mG_terminal",
|
|
12422
|
+
"updateList": "wm06mG_updateList",
|
|
12423
|
+
"explorerName": "wm06mG_explorerName",
|
|
12424
|
+
"editorStatus": "wm06mG_editorStatus",
|
|
12425
|
+
"tabBarDrop": "wm06mG_tabBarDrop",
|
|
12426
|
+
"editorPdfToolbar": "wm06mG_editorPdfToolbar",
|
|
12427
|
+
"terminalDepsTitle": "wm06mG_terminalDepsTitle",
|
|
12428
|
+
"paneContent": "wm06mG_paneContent",
|
|
12457
12429
|
"updateOk": "wm06mG_updateOk",
|
|
12458
|
-
"
|
|
12430
|
+
"producedMore": "wm06mG_producedMore",
|
|
12431
|
+
"releaseNotesDialog": "wm06mG_releaseNotesDialog",
|
|
12432
|
+
"pane": "wm06mG_pane",
|
|
12433
|
+
"accountLogoutDialog": "wm06mG_accountLogoutDialog",
|
|
12434
|
+
"cornerHandle": "wm06mG_cornerHandle",
|
|
12435
|
+
"gitDiffTab": "wm06mG_gitDiffTab",
|
|
12436
|
+
"gitDiffFileOld": "wm06mG_gitDiffFileOld",
|
|
12437
|
+
"editorBanner": "wm06mG_editorBanner",
|
|
12459
12438
|
"gitDiffFileChevronExpanded": "wm06mG_gitDiffFileChevronExpanded",
|
|
12460
|
-
"
|
|
12461
|
-
"
|
|
12462
|
-
"dropUp": "wm06mG_dropUp",
|
|
12463
|
-
"editorSearchResult": "wm06mG_editorSearchResult",
|
|
12464
|
-
"tocPanel": "wm06mG_tocPanel",
|
|
12465
|
-
"explorerBody": "wm06mG_explorerBody",
|
|
12466
|
-
"tocButton": "wm06mG_tocButton",
|
|
12467
|
-
"mermaidInfo": "wm06mG_mermaidInfo",
|
|
12468
|
-
"toggleCluster": "wm06mG_toggleCluster",
|
|
12439
|
+
"gitDiffHunkHeader": "wm06mG_gitDiffHunkHeader",
|
|
12440
|
+
"mermaidModalButton": "wm06mG_mermaidModalButton",
|
|
12469
12441
|
"bottomPanelHidden": "wm06mG_bottomPanelHidden",
|
|
12470
|
-
"
|
|
12471
|
-
"
|
|
12472
|
-
"
|
|
12473
|
-
"
|
|
12474
|
-
"
|
|
12475
|
-
"
|
|
12476
|
-
"
|
|
12477
|
-
"
|
|
12478
|
-
"
|
|
12479
|
-
"
|
|
12442
|
+
"browserInput": "wm06mG_browserInput",
|
|
12443
|
+
"sandboxStatus": "wm06mG_sandboxStatus",
|
|
12444
|
+
"uploadOverlayCard": "wm06mG_uploadOverlayCard",
|
|
12445
|
+
"tocButton": "wm06mG_tocButton",
|
|
12446
|
+
"accountAvatar": "wm06mG_accountAvatar",
|
|
12447
|
+
"terminalDepsCommandRow": "wm06mG_terminalDepsCommandRow",
|
|
12448
|
+
"editorPdf": "wm06mG_editorPdf",
|
|
12449
|
+
"terminalDepsNote": "wm06mG_terminalDepsNote",
|
|
12450
|
+
"gitDiffDel": "wm06mG_gitDiffDel",
|
|
12451
|
+
"mermaidWrap": "wm06mG_mermaidWrap",
|
|
12452
|
+
"gitCommit": "wm06mG_gitCommit",
|
|
12453
|
+
"tabBoundaryError": "wm06mG_tabBoundaryError",
|
|
12454
|
+
"editorBinaryNotice": "wm06mG_editorBinaryNotice",
|
|
12455
|
+
"selectionPopup": "wm06mG_selectionPopup",
|
|
12456
|
+
"gitLogSubject": "wm06mG_gitLogSubject",
|
|
12457
|
+
"mermaidMarkdown": "wm06mG_mermaidMarkdown",
|
|
12458
|
+
"accountItem": "wm06mG_accountItem",
|
|
12459
|
+
"updateFooter": "wm06mG_updateFooter",
|
|
12460
|
+
"dividerActive": "wm06mG_dividerActive",
|
|
12480
12461
|
"mermaidCopy": "wm06mG_mermaidCopy",
|
|
12481
|
-
"
|
|
12482
|
-
"
|
|
12483
|
-
"
|
|
12484
|
-
"
|
|
12485
|
-
"
|
|
12486
|
-
"
|
|
12462
|
+
"gitLogHash": "wm06mG_gitLogHash",
|
|
12463
|
+
"panelResize": "wm06mG_panelResize",
|
|
12464
|
+
"tocBar": "wm06mG_tocBar",
|
|
12465
|
+
"pinnedSessionMenuDivider": "wm06mG_pinnedSessionMenuDivider",
|
|
12466
|
+
"sandboxStatusOff": "wm06mG_sandboxStatusOff",
|
|
12467
|
+
"explorerEmpty": "wm06mG_explorerEmpty",
|
|
12468
|
+
"uploadDropChatHint": "wm06mG_uploadDropChatHint",
|
|
12469
|
+
"gitWorktreeLabel": "wm06mG_gitWorktreeLabel",
|
|
12470
|
+
"accountLogoutDescription": "wm06mG_accountLogoutDescription",
|
|
12471
|
+
"gitDiffAdd": "wm06mG_gitDiffAdd",
|
|
12487
12472
|
"terminalDepsHint": "wm06mG_terminalDepsHint",
|
|
12473
|
+
"gitPlaceholder": "wm06mG_gitPlaceholder",
|
|
12474
|
+
"browserBar": "wm06mG_browserBar",
|
|
12475
|
+
"splitCol": "wm06mG_splitCol",
|
|
12476
|
+
"tabBarPlus": "wm06mG_tabBarPlus",
|
|
12477
|
+
"explorerRow": "wm06mG_explorerRow",
|
|
12478
|
+
"mermaidModalStage": "wm06mG_mermaidModalStage",
|
|
12479
|
+
"gitConfirmDesc": "wm06mG_gitConfirmDesc",
|
|
12480
|
+
"gitLogRef": "wm06mG_gitLogRef",
|
|
12481
|
+
"producedLabel": "wm06mG_producedLabel",
|
|
12482
|
+
"floatContent": "wm06mG_floatContent",
|
|
12483
|
+
"paneDrop": "wm06mG_paneDrop",
|
|
12488
12484
|
"gitDiffFileChevron": "wm06mG_gitDiffFileChevron",
|
|
12489
|
-
"
|
|
12485
|
+
"browserBlockedButton": "wm06mG_browserBlockedButton",
|
|
12490
12486
|
"editorPdfDragShield": "wm06mG_editorPdfDragShield",
|
|
12487
|
+
"browserMessage": "wm06mG_browserMessage",
|
|
12488
|
+
"gitDiffCode": "wm06mG_gitDiffCode",
|
|
12489
|
+
"sandboxDot": "wm06mG_sandboxDot",
|
|
12490
|
+
"gitCommitButton": "wm06mG_gitCommitButton",
|
|
12491
|
+
"editorDownloadLink": "wm06mG_editorDownloadLink",
|
|
12492
|
+
"floatDropHint": "wm06mG_floatDropHint",
|
|
12493
|
+
"tabActive": "wm06mG_tabActive",
|
|
12494
|
+
"openWithPinActive": "wm06mG_openWithPinActive",
|
|
12495
|
+
"mermaidHeader": "wm06mG_mermaidHeader",
|
|
12496
|
+
"uploadOverlayProgress": "wm06mG_uploadOverlayProgress",
|
|
12497
|
+
"editorImage": "wm06mG_editorImage",
|
|
12498
|
+
"terminalDepsBanner": "wm06mG_terminalDepsBanner",
|
|
12491
12499
|
"panelResizeActive": "wm06mG_panelResizeActive",
|
|
12492
|
-
"terminalWrap": "wm06mG_terminalWrap",
|
|
12493
|
-
"gitCommitInput": "wm06mG_gitCommitInput",
|
|
12494
|
-
"releaseNotesDialog": "wm06mG_releaseNotesDialog",
|
|
12495
|
-
"floatClose": "wm06mG_floatClose",
|
|
12496
|
-
"browser": "wm06mG_browser",
|
|
12497
|
-
"gitCommit": "wm06mG_gitCommit",
|
|
12498
|
-
"tocItemLevel": "wm06mG_tocItemLevel",
|
|
12499
|
-
"chatcodeGateError": "wm06mG_chatcodeGateError",
|
|
12500
|
-
"terminalRetry": "wm06mG_terminalRetry",
|
|
12501
|
-
"uploadDropChatCard": "wm06mG_uploadDropChatCard",
|
|
12502
12500
|
"gitLink": "wm06mG_gitLink",
|
|
12503
|
-
"
|
|
12504
|
-
"
|
|
12505
|
-
"
|
|
12506
|
-
"
|
|
12507
|
-
"
|
|
12508
|
-
"
|
|
12509
|
-
"
|
|
12501
|
+
"accountName": "wm06mG_accountName",
|
|
12502
|
+
"dropCenter": "wm06mG_dropCenter",
|
|
12503
|
+
"gitDiffTabTitle": "wm06mG_gitDiffTabTitle",
|
|
12504
|
+
"panelBody": "wm06mG_panelBody",
|
|
12505
|
+
"releaseNotesOverlay": "wm06mG_releaseNotesOverlay",
|
|
12506
|
+
"browserFrame": "wm06mG_browserFrame",
|
|
12507
|
+
"gitDiffFileTag": "wm06mG_gitDiffFileTag",
|
|
12508
|
+
"floatWindow": "wm06mG_floatWindow",
|
|
12509
|
+
"updateError": "wm06mG_updateError",
|
|
12510
|
+
"splitRow": "wm06mG_splitRow",
|
|
12511
|
+
"dropUp": "wm06mG_dropUp",
|
|
12512
|
+
"updateSettingsRow": "wm06mG_updateSettingsRow",
|
|
12513
|
+
"bottomResizeActive": "wm06mG_bottomResizeActive",
|
|
12514
|
+
"gitCommitInput": "wm06mG_gitCommitInput",
|
|
12515
|
+
"chatcodeGateActions": "wm06mG_chatcodeGateActions",
|
|
12516
|
+
"explorerRowRevealed": "wm06mG_explorerRowRevealed",
|
|
12517
|
+
"gitSectionHeader": "wm06mG_gitSectionHeader",
|
|
12518
|
+
"toggleClusterNative": "wm06mG_toggleClusterNative",
|
|
12519
|
+
"editorHtml": "wm06mG_editorHtml",
|
|
12520
|
+
"tocPanel": "wm06mG_tocPanel",
|
|
12521
|
+
"accountPresence": "wm06mG_accountPresence",
|
|
12510
12522
|
"browserBlocked": "wm06mG_browserBlocked",
|
|
12511
|
-
"
|
|
12512
|
-
"
|
|
12513
|
-
"
|
|
12514
|
-
"
|
|
12515
|
-
"
|
|
12516
|
-
"
|
|
12523
|
+
"editorMain": "wm06mG_editorMain",
|
|
12524
|
+
"mermaidModal": "wm06mG_mermaidModal",
|
|
12525
|
+
"gitLogMeta": "wm06mG_gitLogMeta",
|
|
12526
|
+
"openWithPin": "wm06mG_openWithPin",
|
|
12527
|
+
"tabList": "wm06mG_tabList",
|
|
12528
|
+
"updateSettingsTitle": "wm06mG_updateSettingsTitle",
|
|
12529
|
+
"gitWorktreeRow": "wm06mG_gitWorktreeRow",
|
|
12530
|
+
"mermaidModalHint": "wm06mG_mermaidModalHint",
|
|
12531
|
+
"uploadOverlayCancel": "wm06mG_uploadOverlayCancel",
|
|
12532
|
+
"paneTabHidden": "wm06mG_paneTabHidden",
|
|
12533
|
+
"tocItemLevel": "wm06mG_tocItemLevel",
|
|
12517
12534
|
"dividerCol": "wm06mG_dividerCol",
|
|
12518
|
-
"
|
|
12519
|
-
"
|
|
12520
|
-
"
|
|
12521
|
-
"
|
|
12522
|
-
"
|
|
12523
|
-
"producedMore": "wm06mG_producedMore",
|
|
12524
|
-
"updateSettingsBlock": "wm06mG_updateSettingsBlock",
|
|
12525
|
-
"sandboxStatusText": "wm06mG_sandboxStatusText",
|
|
12526
|
-
"editorModeToggle": "wm06mG_editorModeToggle",
|
|
12527
|
-
"uploadDropZone": "wm06mG_uploadDropZone",
|
|
12528
|
-
"terminalDepsCommandRow": "wm06mG_terminalDepsCommandRow",
|
|
12529
|
-
"producedRow": "wm06mG_producedRow",
|
|
12530
|
-
"openWithLabel": "wm06mG_openWithLabel",
|
|
12531
|
-
"editorImageWrap": "wm06mG_editorImageWrap",
|
|
12532
|
-
"pinnedSessionMore": "wm06mG_pinnedSessionMore",
|
|
12533
|
-
"gitDiff": "wm06mG_gitDiff",
|
|
12534
|
-
"browserBlockedButton": "wm06mG_browserBlockedButton",
|
|
12535
|
-
"tocFlash": "wm06mG_tocFlash",
|
|
12535
|
+
"editorPdfFrameBlocked": "wm06mG_editorPdfFrameBlocked",
|
|
12536
|
+
"producedChip": "wm06mG_producedChip",
|
|
12537
|
+
"releaseNotesContent": "wm06mG_releaseNotesContent",
|
|
12538
|
+
"tab": "wm06mG_tab",
|
|
12539
|
+
"editorHeader": "wm06mG_editorHeader",
|
|
12536
12540
|
"tocItemText": "wm06mG_tocItemText",
|
|
12537
|
-
"
|
|
12538
|
-
"terminalBanner": "wm06mG_terminalBanner",
|
|
12539
|
-
"mermaidHeader": "wm06mG_mermaidHeader",
|
|
12540
|
-
"tabBar": "wm06mG_tabBar",
|
|
12541
|
-
"bottomPanel": "wm06mG_bottomPanel",
|
|
12542
|
-
"explorerName": "wm06mG_explorerName",
|
|
12543
|
-
"accountName": "wm06mG_accountName",
|
|
12544
|
-
"accountLogoutActions": "wm06mG_accountLogoutActions",
|
|
12545
|
-
"selectionPopup": "wm06mG_selectionPopup",
|
|
12541
|
+
"dropLeft": "wm06mG_dropLeft",
|
|
12546
12542
|
"openWithName": "wm06mG_openWithName",
|
|
12543
|
+
"gitSection": "wm06mG_gitSection",
|
|
12544
|
+
"explorer": "wm06mG_explorer",
|
|
12545
|
+
"toggleButton": "wm06mG_toggleButton",
|
|
12546
|
+
"editorImageWrap": "wm06mG_editorImageWrap",
|
|
12547
|
+
"paneTab": "wm06mG_paneTab",
|
|
12548
|
+
"workbench": "wm06mG_workbench",
|
|
12549
|
+
"mermaidError": "wm06mG_mermaidError",
|
|
12550
|
+
"editorError": "wm06mG_editorError",
|
|
12551
|
+
"uploadDropZone": "wm06mG_uploadDropZone",
|
|
12552
|
+
"editorBody": "wm06mG_editorBody",
|
|
12553
|
+
"editorModeButton": "wm06mG_editorModeButton",
|
|
12554
|
+
"gitDiffHunkSection": "wm06mG_gitDiffHunkSection",
|
|
12555
|
+
"dropOverlay": "wm06mG_dropOverlay",
|
|
12547
12556
|
"dsh-toc-flash": "wm06mG_dsh-toc-flash",
|
|
12557
|
+
"editorMd": "wm06mG_editorMd",
|
|
12558
|
+
"editorHtmlBlock": "wm06mG_editorHtmlBlock",
|
|
12548
12559
|
"pinnedSessionOpen": "wm06mG_pinnedSessionOpen",
|
|
12549
|
-
"updateSettingsText": "wm06mG_updateSettingsText",
|
|
12550
|
-
"gitDiffDel": "wm06mG_gitDiffDel",
|
|
12551
|
-
"floatWindow": "wm06mG_floatWindow",
|
|
12552
|
-
"floatHeader": "wm06mG_floatHeader",
|
|
12553
|
-
"editorCmHidden": "wm06mG_editorCmHidden",
|
|
12554
|
-
"editorDocxZoomRange": "wm06mG_editorDocxZoomRange",
|
|
12555
|
-
"sandboxStatusOn": "wm06mG_sandboxStatusOn",
|
|
12556
|
-
"browserInput": "wm06mG_browserInput",
|
|
12557
|
-
"uploadOverlayProgress": "wm06mG_uploadOverlayProgress",
|
|
12558
|
-
"dirtyDot": "wm06mG_dirtyDot",
|
|
12559
|
-
"openWithPin": "wm06mG_openWithPin",
|
|
12560
|
-
"accountAvatar": "wm06mG_accountAvatar",
|
|
12561
|
-
"editorPdf": "wm06mG_editorPdf",
|
|
12562
|
-
"explorerDir": "wm06mG_explorerDir",
|
|
12563
|
-
"editorPptxButton": "wm06mG_editorPptxButton",
|
|
12564
|
-
"accountLogoutDescription": "wm06mG_accountLogoutDescription",
|
|
12565
|
-
"tabActive": "wm06mG_tabActive",
|
|
12566
|
-
"uploadOverlayCard": "wm06mG_uploadOverlayCard",
|
|
12567
|
-
"paneEmptyCards": "wm06mG_paneEmptyCards",
|
|
12568
|
-
"editorTreeSearch": "wm06mG_editorTreeSearch",
|
|
12569
|
-
"mermaidModalHint": "wm06mG_mermaidModalHint",
|
|
12570
|
-
"editorSearchHint": "wm06mG_editorSearchHint",
|
|
12571
|
-
"editorTreePanelFull": "wm06mG_editorTreePanelFull",
|
|
12572
|
-
"divider": "wm06mG_divider",
|
|
12573
12560
|
"browserStart": "wm06mG_browserStart",
|
|
12574
|
-
"
|
|
12575
|
-
"
|
|
12576
|
-
"
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12561
|
+
"divider": "wm06mG_divider",
|
|
12562
|
+
"updateVersions": "wm06mG_updateVersions",
|
|
12563
|
+
"accountTrigger": "wm06mG_accountTrigger",
|
|
12564
|
+
"producedRow": "wm06mG_producedRow",
|
|
12565
|
+
"updateSettingsDesc": "wm06mG_updateSettingsDesc",
|
|
12566
|
+
"bottomPanel": "wm06mG_bottomPanel",
|
|
12567
|
+
"gitBadge": "wm06mG_gitBadge",
|
|
12568
|
+
"dirtyDot": "wm06mG_dirtyDot",
|
|
12569
|
+
"updateCommand": "wm06mG_updateCommand",
|
|
12570
|
+
"pinnedSessionRow": "wm06mG_pinnedSessionRow",
|
|
12571
|
+
"uploadOverlay": "wm06mG_uploadOverlay",
|
|
12572
|
+
"explorerCopied": "wm06mG_explorerCopied",
|
|
12573
|
+
"terminalDepsActions": "wm06mG_terminalDepsActions",
|
|
12574
|
+
"gitDiffFile": "wm06mG_gitDiffFile",
|
|
12575
|
+
"mermaidCode": "wm06mG_mermaidCode"
|
|
12576
|
+
};
|
|
12577
|
+
//#endregion
|
|
12578
|
+
//#region src/client/intercept.tsx
|
|
12579
|
+
/**
|
|
12580
|
+
* Contribution of the chat's produced-files row. Current Hosts expose the
|
|
12581
|
+
* turn-tail surface as a list; older Hosts exposed it as a chain. The
|
|
12582
|
+
* registration supplies both shapes' routing fields so one bundle remains
|
|
12583
|
+
* compatible across that transition. The chips open the file in the sidebar
|
|
12584
|
+
* instead of the host OS.
|
|
12585
|
+
*/
|
|
12587
12586
|
/** Open a file in the sidebar's editor (used by the intercepted row and the explorer). */
|
|
12588
12587
|
function openSidebarFile(ctx, store, sessionId, path) {
|
|
12589
12588
|
const summary = ctx.sessions.list.getSnapshot().byId[sessionId];
|
|
@@ -13452,6 +13451,23 @@ window.__ModuleLoader__.load({
|
|
|
13452
13451
|
return t("uploadDone", { count: okCount });
|
|
13453
13452
|
}
|
|
13454
13453
|
//#endregion
|
|
13454
|
+
//#region src/client/ContextMenu.tsx
|
|
13455
|
+
/**
|
|
13456
|
+
* Place menus at viewport coordinates: published hosts consume getAnchorRect,
|
|
13457
|
+
* while the bundled host consumes anchorPoint.
|
|
13458
|
+
*/
|
|
13459
|
+
function ContextMenu({ anchorPoint, contextual, ...props }) {
|
|
13460
|
+
const positioning = {
|
|
13461
|
+
anchorPoint,
|
|
13462
|
+
contextual,
|
|
13463
|
+
getAnchorRect: anchorPoint === void 0 ? void 0 : () => new DOMRect(anchorPoint.x, anchorPoint.y, 0, 0)
|
|
13464
|
+
};
|
|
13465
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
|
|
13466
|
+
...props,
|
|
13467
|
+
...positioning
|
|
13468
|
+
});
|
|
13469
|
+
}
|
|
13470
|
+
//#endregion
|
|
13455
13471
|
//#region src/client/FileTree.tsx
|
|
13456
13472
|
/**
|
|
13457
13473
|
* The controlled file tree behind the files window's tree panel (TreePanel
|
|
@@ -13868,17 +13884,7 @@ window.__ModuleLoader__.load({
|
|
|
13868
13884
|
}] : [],
|
|
13869
13885
|
{
|
|
13870
13886
|
id: "open-with-menu",
|
|
13871
|
-
label:
|
|
13872
|
-
className: sidebar_module_css_default.openWithLabel,
|
|
13873
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
13874
|
-
className: sidebar_module_css_default.openWithName,
|
|
13875
|
-
children: t("openWithMenu")
|
|
13876
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronRightOutline14, {
|
|
13877
|
-
size: 14,
|
|
13878
|
-
className: sidebar_module_css_default.openWithChevron,
|
|
13879
|
-
"aria-hidden": true
|
|
13880
|
-
})]
|
|
13881
|
-
}),
|
|
13887
|
+
label: t("openWithMenu"),
|
|
13882
13888
|
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VscLinkExternal, { size: 16 }),
|
|
13883
13889
|
submenu
|
|
13884
13890
|
}
|
|
@@ -14072,7 +14078,7 @@ window.__ModuleLoader__.load({
|
|
|
14072
14078
|
event.target.value = "";
|
|
14073
14079
|
}
|
|
14074
14080
|
}),
|
|
14075
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
14081
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenu, {
|
|
14076
14082
|
open: rowMenu !== null,
|
|
14077
14083
|
onClose: () => {
|
|
14078
14084
|
setRowMenu(null);
|
|
@@ -14139,7 +14145,8 @@ window.__ModuleLoader__.load({
|
|
|
14139
14145
|
},
|
|
14140
14146
|
portal: true,
|
|
14141
14147
|
align: "start",
|
|
14142
|
-
|
|
14148
|
+
contextual: true,
|
|
14149
|
+
anchorPoint: rowMenu ?? void 0,
|
|
14143
14150
|
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {})
|
|
14144
14151
|
})
|
|
14145
14152
|
]
|
|
@@ -15166,72 +15173,72 @@ window.__ModuleLoader__.load({
|
|
|
15166
15173
|
document.head.appendChild(tag);
|
|
15167
15174
|
}
|
|
15168
15175
|
var SideCardSection_module_css_default = {
|
|
15176
|
+
"desc": "_9N6Bdq_desc",
|
|
15169
15177
|
"switch": "_9N6Bdq_switch",
|
|
15170
|
-
"
|
|
15171
|
-
"
|
|
15178
|
+
"pluginEntry": "_9N6Bdq_pluginEntry",
|
|
15179
|
+
"grid": "_9N6Bdq_grid",
|
|
15180
|
+
"rowText": "_9N6Bdq_rowText",
|
|
15172
15181
|
"done": "_9N6Bdq_done",
|
|
15173
|
-
"
|
|
15174
|
-
"
|
|
15175
|
-
"
|
|
15182
|
+
"popupRow": "_9N6Bdq_popupRow",
|
|
15183
|
+
"pluginGroup": "_9N6Bdq_pluginGroup",
|
|
15184
|
+
"openWithHint": "_9N6Bdq_openWithHint",
|
|
15185
|
+
"cardOn": "_9N6Bdq_cardOn",
|
|
15186
|
+
"typedInputNumber": "_9N6Bdq_typedInputNumber",
|
|
15187
|
+
"cardTop": "_9N6Bdq_cardTop",
|
|
15188
|
+
"openWithEditorRow": "_9N6Bdq_openWithEditorRow",
|
|
15189
|
+
"pluginModal": "_9N6Bdq_pluginModal",
|
|
15190
|
+
"addCard": "_9N6Bdq_addCard",
|
|
15176
15191
|
"selectOption": "_9N6Bdq_selectOption",
|
|
15177
|
-
"
|
|
15178
|
-
"
|
|
15179
|
-
"
|
|
15192
|
+
"selectOptionText": "_9N6Bdq_selectOptionText",
|
|
15193
|
+
"groupHeading": "_9N6Bdq_groupHeading",
|
|
15194
|
+
"pluginInstall": "_9N6Bdq_pluginInstall",
|
|
15195
|
+
"pluginGroupHeading": "_9N6Bdq_pluginGroupHeading",
|
|
15196
|
+
"group": "_9N6Bdq_group",
|
|
15197
|
+
"selectAnchorText": "_9N6Bdq_selectAnchorText",
|
|
15180
15198
|
"cardSettings": "_9N6Bdq_cardSettings",
|
|
15181
|
-
"
|
|
15182
|
-
"
|
|
15199
|
+
"typedInput": "_9N6Bdq_typedInput",
|
|
15200
|
+
"switchThumb": "_9N6Bdq_switchThumb",
|
|
15201
|
+
"popupRows": "_9N6Bdq_popupRows",
|
|
15202
|
+
"pluginEntryActions": "_9N6Bdq_pluginEntryActions",
|
|
15183
15203
|
"row": "_9N6Bdq_row",
|
|
15184
|
-
"rowGear": "_9N6Bdq_rowGear",
|
|
15185
|
-
"selectOptionText": "_9N6Bdq_selectOptionText",
|
|
15186
|
-
"cardIconChip": "_9N6Bdq_cardIconChip",
|
|
15187
|
-
"cardSwitch": "_9N6Bdq_cardSwitch",
|
|
15188
|
-
"cardMain": "_9N6Bdq_cardMain",
|
|
15189
|
-
"openWithEditorTemplate": "_9N6Bdq_openWithEditorTemplate",
|
|
15190
|
-
"openWithFamily": "_9N6Bdq_openWithFamily",
|
|
15191
15204
|
"openWithEditorInput": "_9N6Bdq_openWithEditorInput",
|
|
15192
|
-
"
|
|
15193
|
-
"
|
|
15205
|
+
"switchTrack": "_9N6Bdq_switchTrack",
|
|
15206
|
+
"control": "_9N6Bdq_control",
|
|
15194
15207
|
"intro": "_9N6Bdq_intro",
|
|
15195
|
-
"
|
|
15196
|
-
"
|
|
15197
|
-
"
|
|
15198
|
-
"
|
|
15199
|
-
"
|
|
15200
|
-
"
|
|
15201
|
-
"pluginEntryActions": "_9N6Bdq_pluginEntryActions",
|
|
15202
|
-
"pluginGroupHeading": "_9N6Bdq_pluginGroupHeading",
|
|
15203
|
-
"pluginList": "_9N6Bdq_pluginList",
|
|
15204
|
-
"popupRows": "_9N6Bdq_popupRows",
|
|
15205
|
-
"group": "_9N6Bdq_group",
|
|
15206
|
-
"pluginGroup": "_9N6Bdq_pluginGroup",
|
|
15207
|
-
"count": "_9N6Bdq_count",
|
|
15208
|
+
"openWithEditorTemplate": "_9N6Bdq_openWithEditorTemplate",
|
|
15209
|
+
"popupDialog": "_9N6Bdq_popupDialog",
|
|
15210
|
+
"pluginCopyBtn": "_9N6Bdq_pluginCopyBtn",
|
|
15211
|
+
"section": "_9N6Bdq_section",
|
|
15212
|
+
"switchInput": "_9N6Bdq_switchInput",
|
|
15213
|
+
"pluginName": "_9N6Bdq_pluginName",
|
|
15208
15214
|
"cardTitle": "_9N6Bdq_cardTitle",
|
|
15215
|
+
"percentInput": "_9N6Bdq_percentInput",
|
|
15216
|
+
"cardIconChip": "_9N6Bdq_cardIconChip",
|
|
15217
|
+
"selectAnchorIcon": "_9N6Bdq_selectAnchorIcon",
|
|
15209
15218
|
"cardSwitchThumb": "_9N6Bdq_cardSwitchThumb",
|
|
15210
|
-
"
|
|
15211
|
-
"
|
|
15212
|
-
"
|
|
15213
|
-
"
|
|
15214
|
-
"
|
|
15219
|
+
"rowGear": "_9N6Bdq_rowGear",
|
|
15220
|
+
"cardMain": "_9N6Bdq_cardMain",
|
|
15221
|
+
"cardSwitch": "_9N6Bdq_cardSwitch",
|
|
15222
|
+
"error": "_9N6Bdq_error",
|
|
15223
|
+
"pluginList": "_9N6Bdq_pluginList",
|
|
15224
|
+
"pluginJumpBtn": "_9N6Bdq_pluginJumpBtn",
|
|
15225
|
+
"count": "_9N6Bdq_count",
|
|
15215
15226
|
"pluginSearch": "_9N6Bdq_pluginSearch",
|
|
15216
|
-
"
|
|
15217
|
-
"
|
|
15218
|
-
"
|
|
15219
|
-
"
|
|
15220
|
-
"
|
|
15221
|
-
"
|
|
15222
|
-
"
|
|
15223
|
-
"
|
|
15227
|
+
"suffix": "_9N6Bdq_suffix",
|
|
15228
|
+
"cssTextArea": "_9N6Bdq_cssTextArea",
|
|
15229
|
+
"pluginEntries": "_9N6Bdq_pluginEntries",
|
|
15230
|
+
"openWithRemove": "_9N6Bdq_openWithRemove",
|
|
15231
|
+
"pluginDesc": "_9N6Bdq_pluginDesc",
|
|
15232
|
+
"pluginEntryHead": "_9N6Bdq_pluginEntryHead",
|
|
15233
|
+
"card": "_9N6Bdq_card",
|
|
15234
|
+
"title": "_9N6Bdq_title",
|
|
15224
15235
|
"cardDesc": "_9N6Bdq_cardDesc",
|
|
15225
|
-
"
|
|
15226
|
-
"
|
|
15227
|
-
"
|
|
15228
|
-
"percentInput": "_9N6Bdq_percentInput",
|
|
15229
|
-
"openWithEditorRow": "_9N6Bdq_openWithEditorRow",
|
|
15236
|
+
"cardSwitchTrack": "_9N6Bdq_cardSwitchTrack",
|
|
15237
|
+
"openWithFamily": "_9N6Bdq_openWithFamily",
|
|
15238
|
+
"pluginEmpty": "_9N6Bdq_pluginEmpty",
|
|
15230
15239
|
"pluginTopicBtn": "_9N6Bdq_pluginTopicBtn",
|
|
15231
|
-
"
|
|
15232
|
-
"
|
|
15233
|
-
"pluginJumpBtn": "_9N6Bdq_pluginJumpBtn",
|
|
15234
|
-
"cardOn": "_9N6Bdq_cardOn"
|
|
15240
|
+
"selectOptionIcon": "_9N6Bdq_selectOptionIcon",
|
|
15241
|
+
"selectAnchor": "_9N6Bdq_selectAnchor"
|
|
15235
15242
|
};
|
|
15236
15243
|
//#endregion
|
|
15237
15244
|
//#region src/client/open-with-settings.tsx
|
|
@@ -16085,7 +16092,7 @@ window.__ModuleLoader__.load({
|
|
|
16085
16092
|
})
|
|
16086
16093
|
]
|
|
16087
16094
|
}),
|
|
16088
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
16095
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenu, {
|
|
16089
16096
|
open: fileMenu !== null,
|
|
16090
16097
|
onClose: () => {
|
|
16091
16098
|
setFileMenu(null);
|
|
@@ -16157,10 +16164,11 @@ window.__ModuleLoader__.load({
|
|
|
16157
16164
|
},
|
|
16158
16165
|
portal: true,
|
|
16159
16166
|
align: "start",
|
|
16160
|
-
|
|
16167
|
+
contextual: true,
|
|
16168
|
+
anchorPoint: fileMenu ?? void 0,
|
|
16161
16169
|
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {})
|
|
16162
16170
|
}),
|
|
16163
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
16171
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenu, {
|
|
16164
16172
|
open: historyMenu !== null,
|
|
16165
16173
|
onClose: () => {
|
|
16166
16174
|
setHistoryMenu(null);
|
|
@@ -16238,7 +16246,8 @@ window.__ModuleLoader__.load({
|
|
|
16238
16246
|
},
|
|
16239
16247
|
portal: true,
|
|
16240
16248
|
align: "start",
|
|
16241
|
-
|
|
16249
|
+
contextual: true,
|
|
16250
|
+
anchorPoint: historyMenu ?? void 0,
|
|
16242
16251
|
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {})
|
|
16243
16252
|
}),
|
|
16244
16253
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
@@ -17210,37 +17219,37 @@ window.__ModuleLoader__.load({
|
|
|
17210
17219
|
document.head.appendChild(tag);
|
|
17211
17220
|
}
|
|
17212
17221
|
var PluginMarketView_module_css_default = {
|
|
17213
|
-
"grid": "ZPnUbq_grid",
|
|
17214
17222
|
"spinning": "ZPnUbq_spinning",
|
|
17215
|
-
"
|
|
17216
|
-
"projectRow": "ZPnUbq_projectRow",
|
|
17217
|
-
"projectPicker": "ZPnUbq_projectPicker",
|
|
17218
|
-
"enter": "ZPnUbq_enter",
|
|
17219
|
-
"project": "ZPnUbq_project",
|
|
17220
|
-
"notice": "ZPnUbq_notice",
|
|
17221
|
-
"warning": "ZPnUbq_warning",
|
|
17223
|
+
"tabs": "ZPnUbq_tabs",
|
|
17222
17224
|
"installPath": "ZPnUbq_installPath",
|
|
17223
|
-
"
|
|
17224
|
-
"
|
|
17225
|
-
"
|
|
17225
|
+
"projectRow": "ZPnUbq_projectRow",
|
|
17226
|
+
"toolbar": "ZPnUbq_toolbar",
|
|
17227
|
+
"projectInstall": "ZPnUbq_projectInstall",
|
|
17228
|
+
"error": "ZPnUbq_error",
|
|
17226
17229
|
"marketCard": "ZPnUbq_marketCard",
|
|
17227
|
-
"
|
|
17228
|
-
"
|
|
17229
|
-
"
|
|
17230
|
+
"warning": "ZPnUbq_warning",
|
|
17231
|
+
"project": "ZPnUbq_project",
|
|
17232
|
+
"description": "ZPnUbq_description",
|
|
17230
17233
|
"marketRefresh": "ZPnUbq_marketRefresh",
|
|
17231
|
-
"head": "ZPnUbq_head",
|
|
17232
17234
|
"card": "ZPnUbq_card",
|
|
17233
|
-
"
|
|
17234
|
-
"
|
|
17235
|
-
"projectInstall": "ZPnUbq_projectInstall",
|
|
17235
|
+
"breadcrumb": "ZPnUbq_breadcrumb",
|
|
17236
|
+
"notice": "ZPnUbq_notice",
|
|
17236
17237
|
"title": "ZPnUbq_title",
|
|
17237
|
-
"
|
|
17238
|
+
"head": "ZPnUbq_head",
|
|
17239
|
+
"directoryList": "ZPnUbq_directoryList",
|
|
17238
17240
|
"cardHead": "ZPnUbq_cardHead",
|
|
17239
|
-
"
|
|
17240
|
-
"
|
|
17241
|
+
"operation": "ZPnUbq_operation",
|
|
17242
|
+
"projectPicker": "ZPnUbq_projectPicker",
|
|
17243
|
+
"directoryPath": "ZPnUbq_directoryPath",
|
|
17244
|
+
"grid": "ZPnUbq_grid",
|
|
17245
|
+
"meta": "ZPnUbq_meta",
|
|
17241
17246
|
"state": "ZPnUbq_state",
|
|
17247
|
+
"actions": "ZPnUbq_actions",
|
|
17242
17248
|
"subtitle": "ZPnUbq_subtitle",
|
|
17243
|
-
"
|
|
17249
|
+
"root": "ZPnUbq_root",
|
|
17250
|
+
"directoryCrumbs": "ZPnUbq_directoryCrumbs",
|
|
17251
|
+
"enter": "ZPnUbq_enter",
|
|
17252
|
+
"confirmPath": "ZPnUbq_confirmPath"
|
|
17244
17253
|
};
|
|
17245
17254
|
//#endregion
|
|
17246
17255
|
//#region src/client/PluginProjectPicker.tsx
|
|
@@ -18779,7 +18788,7 @@ window.__ModuleLoader__.load({
|
|
|
18779
18788
|
]
|
|
18780
18789
|
}, tab.id);
|
|
18781
18790
|
}),
|
|
18782
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
18791
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenu, {
|
|
18783
18792
|
open: menuOpen,
|
|
18784
18793
|
onClose: () => {
|
|
18785
18794
|
setMenuOpen(false);
|
|
@@ -18808,7 +18817,7 @@ window.__ModuleLoader__.load({
|
|
|
18808
18817
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPlusOutline16, {})
|
|
18809
18818
|
})
|
|
18810
18819
|
}),
|
|
18811
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
18820
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenu, {
|
|
18812
18821
|
open: tabMenu !== null && tabMenuIndex >= 0,
|
|
18813
18822
|
onClose: () => {
|
|
18814
18823
|
setTabMenu(null);
|
|
@@ -18880,7 +18889,8 @@ window.__ModuleLoader__.load({
|
|
|
18880
18889
|
},
|
|
18881
18890
|
portal: true,
|
|
18882
18891
|
align: "start",
|
|
18883
|
-
|
|
18892
|
+
contextual: true,
|
|
18893
|
+
anchorPoint: tabMenu ?? void 0,
|
|
18884
18894
|
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {})
|
|
18885
18895
|
})
|
|
18886
18896
|
]
|
|
@@ -19261,7 +19271,7 @@ window.__ModuleLoader__.load({
|
|
|
19261
19271
|
//#region src/client/shell-presets.ts
|
|
19262
19272
|
const PRESETS = [{
|
|
19263
19273
|
id: "dsh-desktop",
|
|
19264
|
-
title: "
|
|
19274
|
+
title: "ChatCode CLI Desktop",
|
|
19265
19275
|
desc: "Electron 高级模式(无边框):macOS 顶栏 20px、Windows 无 WCO 时 32px 标题栏让位",
|
|
19266
19276
|
stripFor: (env) => {
|
|
19267
19277
|
if (env.mode !== "advanced") return void 0;
|
|
@@ -19519,7 +19529,7 @@ window.__ModuleLoader__.load({
|
|
|
19519
19529
|
},
|
|
19520
19530
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCloseFill14, {})
|
|
19521
19531
|
}),
|
|
19522
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
19532
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ContextMenu, {
|
|
19523
19533
|
open: menu !== null,
|
|
19524
19534
|
onClose: () => {
|
|
19525
19535
|
setMenu(null);
|
|
@@ -19538,7 +19548,8 @@ window.__ModuleLoader__.load({
|
|
|
19538
19548
|
},
|
|
19539
19549
|
portal: true,
|
|
19540
19550
|
align: "start",
|
|
19541
|
-
|
|
19551
|
+
contextual: true,
|
|
19552
|
+
anchorPoint: menu ?? void 0,
|
|
19542
19553
|
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {})
|
|
19543
19554
|
})
|
|
19544
19555
|
]
|
|
@@ -19671,746 +19682,235 @@ window.__ModuleLoader__.load({
|
|
|
19671
19682
|
return prev.tab === next.tab && prev.paneId === next.paneId && prev.sessionId === next.sessionId && prev.cwd === next.cwd && prev.visible === next.visible && prev.expanded === next.expanded && prev.revealed === next.revealed && prev.localeRevision === next.localeRevision && prev.tabsVersion === next.tabsVersion && prev.effectiveTabId === next.effectiveTabId;
|
|
19672
19683
|
}
|
|
19673
19684
|
//#endregion
|
|
19674
|
-
//#region src/client/
|
|
19675
|
-
/**
|
|
19676
|
-
|
|
19677
|
-
|
|
19678
|
-
|
|
19679
|
-
|
|
19680
|
-
|
|
19681
|
-
|
|
19682
|
-
|
|
19683
|
-
|
|
19684
|
-
|
|
19685
|
-
|
|
19686
|
-
|
|
19687
|
-
|
|
19688
|
-
|
|
19689
|
-
|
|
19690
|
-
|
|
19691
|
-
|
|
19692
|
-
|
|
19693
|
-
|
|
19694
|
-
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
|
|
19705
|
-
|
|
19706
|
-
|
|
19707
|
-
|
|
19708
|
-
|
|
19709
|
-
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
19713
|
-
|
|
19714
|
-
|
|
19715
|
-
|
|
19716
|
-
|
|
19717
|
-
|
|
19718
|
-
|
|
19719
|
-
|
|
19720
|
-
|
|
19721
|
-
|
|
19722
|
-
|
|
19723
|
-
|
|
19724
|
-
|
|
19725
|
-
|
|
19726
|
-
|
|
19727
|
-
|
|
19728
|
-
}
|
|
19729
|
-
};
|
|
19730
|
-
refresh();
|
|
19731
|
-
const visible = () => {
|
|
19732
|
-
if (document.visibilityState === "visible") refresh();
|
|
19733
|
-
};
|
|
19734
|
-
const refreshNow = () => {
|
|
19735
|
-
refresh();
|
|
19736
|
-
};
|
|
19737
|
-
document.addEventListener("visibilitychange", visible);
|
|
19738
|
-
window.addEventListener("focus", refreshNow);
|
|
19739
|
-
window.addEventListener("online", refreshNow);
|
|
19740
|
-
return () => {
|
|
19741
|
-
controller.abort();
|
|
19742
|
-
clearTimeout(timer);
|
|
19743
|
-
document.removeEventListener("visibilitychange", visible);
|
|
19744
|
-
window.removeEventListener("focus", refreshNow);
|
|
19745
|
-
window.removeEventListener("online", refreshNow);
|
|
19746
|
-
};
|
|
19747
|
-
}, [revision]);
|
|
19748
|
-
const operate = (action) => {
|
|
19749
|
-
if (busyRef.current) return;
|
|
19750
|
-
busyRef.current = true;
|
|
19751
|
-
request.current?.abort();
|
|
19752
|
-
setBusy(true);
|
|
19753
|
-
setError(void 0);
|
|
19754
|
-
action().catch(() => {
|
|
19755
|
-
if (mounted.current) setError("operation");
|
|
19756
|
-
}).finally(() => {
|
|
19757
|
-
busyRef.current = false;
|
|
19758
|
-
if (mounted.current) {
|
|
19759
|
-
setBusy(false);
|
|
19760
|
-
setRevision((value) => value + 1);
|
|
19761
|
-
}
|
|
19762
|
-
});
|
|
19763
|
-
};
|
|
19764
|
-
const startLogin = () => {
|
|
19765
|
-
if (busyRef.current) return;
|
|
19766
|
-
let popup = null;
|
|
19767
|
-
try {
|
|
19768
|
-
popup = window.open("", "_blank");
|
|
19769
|
-
if (popup) popup.opener = null;
|
|
19770
|
-
} catch {
|
|
19771
|
-
popup = null;
|
|
19772
|
-
}
|
|
19773
|
-
operate(async () => {
|
|
19774
|
-
try {
|
|
19775
|
-
const start = await api.chatcodeStart();
|
|
19776
|
-
if (!mounted.current) {
|
|
19777
|
-
popup?.close();
|
|
19778
|
-
return;
|
|
19779
|
-
}
|
|
19780
|
-
try {
|
|
19781
|
-
attempt.current?.popup?.close();
|
|
19782
|
-
} catch {}
|
|
19783
|
-
attempt.current = {
|
|
19784
|
-
sessionId: start.sessionId,
|
|
19785
|
-
popup
|
|
19786
|
-
};
|
|
19787
|
-
setLoginUrl(start.url);
|
|
19788
|
-
setChatcode((current) => ({
|
|
19789
|
-
...current,
|
|
19790
|
-
available: true,
|
|
19791
|
-
login: {
|
|
19792
|
-
sessionId: start.sessionId,
|
|
19793
|
-
state: "pending",
|
|
19794
|
-
expiresAtMs: 0
|
|
19795
|
-
}
|
|
19796
|
-
}));
|
|
19797
|
-
try {
|
|
19798
|
-
if (popup && !popup.closed) popup.location.href = start.url;
|
|
19799
|
-
} catch {}
|
|
19800
|
-
} catch (error) {
|
|
19801
|
-
try {
|
|
19802
|
-
popup?.close();
|
|
19803
|
-
} catch {}
|
|
19804
|
-
throw error;
|
|
19805
|
-
}
|
|
19806
|
-
});
|
|
19807
|
-
};
|
|
19808
|
-
const logout = () => operate(async () => {
|
|
19809
|
-
await api.chatcodeLogout();
|
|
19810
|
-
if (!mounted.current) return;
|
|
19811
|
-
try {
|
|
19812
|
-
attempt.current?.popup?.close();
|
|
19813
|
-
} catch {}
|
|
19814
|
-
attempt.current = void 0;
|
|
19815
|
-
setLoginUrl(void 0);
|
|
19816
|
-
setChatcode({
|
|
19817
|
-
available: true,
|
|
19818
|
-
configured: false,
|
|
19819
|
-
expired: false,
|
|
19820
|
-
validation: "none"
|
|
19821
|
-
});
|
|
19822
|
-
});
|
|
19823
|
-
const cancelLogin = () => {
|
|
19824
|
-
const sessionId = chatcode?.login?.sessionId;
|
|
19825
|
-
if (sessionId) operate(async () => {
|
|
19826
|
-
await api.chatcodeCancel(sessionId);
|
|
19827
|
-
});
|
|
19828
|
-
};
|
|
19829
|
-
const refresh = () => {
|
|
19830
|
-
setRevision((value) => value + 1);
|
|
19831
|
-
};
|
|
19832
|
-
return {
|
|
19833
|
-
chatcode,
|
|
19834
|
-
busy,
|
|
19835
|
-
error,
|
|
19836
|
-
loginUrl,
|
|
19837
|
-
startLogin,
|
|
19838
|
-
logout,
|
|
19839
|
-
cancelLogin,
|
|
19840
|
-
refresh
|
|
19841
|
-
};
|
|
19842
|
-
}
|
|
19843
|
-
//#endregion
|
|
19844
|
-
//#region src/client/chatcode-login-route.ts
|
|
19845
|
-
/** Build the local ChatCode login gate URL while preserving the current page. */
|
|
19846
|
-
function chatcodeLoginRoute(location) {
|
|
19847
|
-
const back = `${location.pathname}${location.search}${location.hash}`;
|
|
19848
|
-
return `/sidebar/login?return=${encodeURIComponent(back)}`;
|
|
19849
|
-
}
|
|
19850
|
-
/** Enter the existing local login flow after account state cannot be read. */
|
|
19851
|
-
function redirectToChatcodeLogin(location = window.location) {
|
|
19852
|
-
if (location.pathname === "/sidebar/login") return;
|
|
19853
|
-
location.replace(chatcodeLoginRoute(location));
|
|
19685
|
+
//#region src/client/Sidebar.tsx
|
|
19686
|
+
/**
|
|
19687
|
+
* The sidebar shell: panels mounted inside the unified panel host — a
|
|
19688
|
+
* fixed, viewport-sized containing block ([data-dsh-panel-host]) appended
|
|
19689
|
+
* to document.body — instead of individual fixed-position elements, so a
|
|
19690
|
+
* desktop shell's intermediate wrapper transforms can never hijack the
|
|
19691
|
+
* panels' fixed containing block (the core AppFrame owns the left sidebar /
|
|
19692
|
+
* center / details columns and has no right-side hole for plugins). The
|
|
19693
|
+
* right panel hosts the original workbench; the bottom panel hosts a
|
|
19694
|
+
* second, independent workbench. The bottom panel squeezes ONLY the center
|
|
19695
|
+
* column (the agent output area): it spans from the app shell's own left
|
|
19696
|
+
* sidebar to the right panel's left edge, so neither sidebar gives up any
|
|
19697
|
+
* position (the right panel keeps its full height). A persistent cluster at
|
|
19698
|
+
* the top-right corner toggles the bottom panel; the host's native rightbar
|
|
19699
|
+
* button toggles this plugin's right panel (with a plugin fallback on older
|
|
19700
|
+
* hosts). The right panel's width drags from its left edge, the bottom
|
|
19701
|
+
* panel's height from its top edge, and the shared corner drags both at once.
|
|
19702
|
+
* Current DSH hosts receive one integrated Session-header control group for
|
|
19703
|
+
* the bottom panel, right panel, and manual; older hosts keep the viewport
|
|
19704
|
+
* fallback. The whole layout lives in the per-session store, so switching
|
|
19705
|
+
* conversations swaps the sidebar.
|
|
19706
|
+
*
|
|
19707
|
+
* The shell binds the workbench actions to the store and dispatches tab
|
|
19708
|
+
* content to the views. New tabs come from the + menu (explorer / git /
|
|
19709
|
+
* terminal; editors open from the explorer). Tabs live in one tree only —
|
|
19710
|
+
* they never cross panels; only the panel sizes drag against each other.
|
|
19711
|
+
*
|
|
19712
|
+
* Narrow (mobile, <768px) viewports show ONLY the right sidebar: entering
|
|
19713
|
+
* narrow migrates the bottom panel's tabs INTO the right tree
|
|
19714
|
+
* (migrateBottomTabs) — one workbench, the bottom tabs thrown into its
|
|
19715
|
+
* strips. The right panel becomes a full-width drawer, the bottom panel
|
|
19716
|
+
* and its toggle button disappear, and the layout push is disabled (the
|
|
19717
|
+
* drawer floats). Widening does not migrate back: the tabs keep living in
|
|
19718
|
+
* the right tree.
|
|
19719
|
+
*/
|
|
19720
|
+
/** How many consecutive reconnect failures stop the agent-terminals push loop
|
|
19721
|
+
* (mirror of the terminal view's own cap; the loop restarts on session switch). */
|
|
19722
|
+
const FAILURE_LIMIT = 3;
|
|
19723
|
+
/** Public CLI documentation opened by the persistent top-right manual action. */
|
|
19724
|
+
const USER_MANUAL_URL = "https://chatcode.chinaunicom.cn/doc/cli/";
|
|
19725
|
+
/** Stable host affordance contributed by DSH's native right sidebar. */
|
|
19726
|
+
const NATIVE_SIDEBAR_TOGGLE = "button[data-sidebar-right-expand]";
|
|
19727
|
+
/** Stable container left behind when DSH's native right sidebar is open and
|
|
19728
|
+
* its expand button is therefore absent. The utilities row immediately before
|
|
19729
|
+
* it owns Session actions such as the log-download menu. */
|
|
19730
|
+
const NATIVE_HEADER_CORNER = "[data-conversation-header-corner]";
|
|
19731
|
+
/** Resolve the shared Session-actions row on both native-sidebar states.
|
|
19732
|
+
* Current DSH keeps the corner seat mounted while its expand control comes and
|
|
19733
|
+
* goes; older hosts fall back to the native button's own parent. */
|
|
19734
|
+
function nativeToolbarHostOf(nativeButton) {
|
|
19735
|
+
const corner = nativeButton?.closest(NATIVE_HEADER_CORNER) ?? document.querySelector(NATIVE_HEADER_CORNER);
|
|
19736
|
+
const utilities = corner?.previousElementSibling;
|
|
19737
|
+
if (utilities instanceof HTMLElement && utilities.parentElement === corner?.parentElement) return utilities;
|
|
19738
|
+
return nativeButton?.parentElement ?? null;
|
|
19854
19739
|
}
|
|
19855
|
-
|
|
19856
|
-
|
|
19857
|
-
|
|
19858
|
-
|
|
19859
|
-
|
|
19860
|
-
|
|
19861
|
-
|
|
19862
|
-
|
|
19863
|
-
|
|
19864
|
-
|
|
19865
|
-
|
|
19866
|
-
|
|
19867
|
-
|
|
19868
|
-
|
|
19869
|
-
|
|
19870
|
-
ref,
|
|
19871
|
-
className: sidebar_module_css_default.accountLogoutDialog,
|
|
19872
|
-
role: "alertdialog",
|
|
19873
|
-
"aria-modal": "true",
|
|
19874
|
-
"aria-labelledby": titleId,
|
|
19875
|
-
"aria-describedby": descriptionId,
|
|
19876
|
-
onCancel: (event) => {
|
|
19877
|
-
event.preventDefault();
|
|
19878
|
-
onCancel();
|
|
19879
|
-
},
|
|
19880
|
-
onKeyDown: (event) => {
|
|
19881
|
-
event.stopPropagation();
|
|
19882
|
-
},
|
|
19883
|
-
children: [
|
|
19884
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
19885
|
-
id: titleId,
|
|
19886
|
-
className: sidebar_module_css_default.accountLogoutTitle,
|
|
19887
|
-
children: t("accountMenuLogoutConfirmTitle")
|
|
19888
|
-
}),
|
|
19889
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19890
|
-
id: descriptionId,
|
|
19891
|
-
className: sidebar_module_css_default.accountLogoutDescription,
|
|
19892
|
-
children: t("accountMenuLogoutConfirmDescription")
|
|
19893
|
-
}),
|
|
19894
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19895
|
-
className: sidebar_module_css_default.accountLogoutActions,
|
|
19896
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
19897
|
-
type: "button",
|
|
19898
|
-
autoFocus: true,
|
|
19899
|
-
onClick: onCancel,
|
|
19900
|
-
children: t("cancel")
|
|
19901
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
19902
|
-
type: "button",
|
|
19903
|
-
className: sidebar_module_css_default.accountLogoutConfirm,
|
|
19904
|
-
onClick: onConfirm,
|
|
19905
|
-
children: t("accountMenuLogout")
|
|
19906
|
-
})]
|
|
19907
|
-
})
|
|
19908
|
-
]
|
|
19740
|
+
function UserManualButton() {
|
|
19741
|
+
const label = t("userManual");
|
|
19742
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
19743
|
+
label,
|
|
19744
|
+
side: "bottom",
|
|
19745
|
+
delayMs: 500,
|
|
19746
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
19747
|
+
type: "button",
|
|
19748
|
+
className: sidebar_module_css_default.manualButton,
|
|
19749
|
+
"aria-label": label,
|
|
19750
|
+
onClick: () => {
|
|
19751
|
+
window.open(USER_MANUAL_URL, "_blank", "noopener,noreferrer");
|
|
19752
|
+
},
|
|
19753
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBookOutline16, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label })]
|
|
19754
|
+
})
|
|
19909
19755
|
});
|
|
19910
19756
|
}
|
|
19911
|
-
//#endregion
|
|
19912
|
-
//#region src/client/AccountMenu.tsx
|
|
19913
19757
|
/**
|
|
19914
|
-
*
|
|
19915
|
-
*
|
|
19916
|
-
*
|
|
19917
|
-
*
|
|
19918
|
-
*
|
|
19919
|
-
*
|
|
19920
|
-
*
|
|
19758
|
+
* OS file drags over the sidebar belong to the sidebar, not to the chat:
|
|
19759
|
+
* DSH's composer (InputBar) listens for file drags on the DOCUMENT and
|
|
19760
|
+
* answers with a full-screen "drop image here" mask plus image intake on
|
|
19761
|
+
* drop. Both panel-host render sites swallow the whole event quartet —
|
|
19762
|
+
* enter/over/leave/drop — so the region is a black hole to that document
|
|
19763
|
+
* listener. All four must be stopped: InputBar keeps an enter/leave depth
|
|
19764
|
+
* counter, and a leave that escapes without its matching enter unbalances
|
|
19765
|
+
* the count (this was the full-screen mask flickering over the sidebar).
|
|
19766
|
+
* The conversation column keeps DSH's native overlay and intake untouched;
|
|
19767
|
+
* gated on the 'Files' type so in-app drags (tab reorder, split zones)
|
|
19768
|
+
* propagate exactly as before.
|
|
19921
19769
|
*/
|
|
19922
|
-
const
|
|
19923
|
-
"
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
|
|
19930
|
-
|
|
19931
|
-
|
|
19932
|
-
|
|
19933
|
-
|
|
19934
|
-
|
|
19935
|
-
|
|
19936
|
-
|
|
19937
|
-
|
|
19938
|
-
|
|
19939
|
-
|
|
19940
|
-
|
|
19941
|
-
|
|
19942
|
-
|
|
19943
|
-
|
|
19944
|
-
|
|
19945
|
-
|
|
19946
|
-
let element = button?.parentElement ?? null;
|
|
19947
|
-
for (let depth = 0; element !== null && depth < 8; depth += 1, element = element.parentElement) {
|
|
19948
|
-
const rect = element.getBoundingClientRect();
|
|
19949
|
-
if (rect.left <= 8 && rect.width >= 160 && rect.width <= window.innerWidth * .5) return Math.round(rect.width);
|
|
19950
|
-
}
|
|
19951
|
-
}
|
|
19952
|
-
function LogoutIcon() {
|
|
19953
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
19954
|
-
width: "16",
|
|
19955
|
-
height: "16",
|
|
19956
|
-
viewBox: "0 0 16 16",
|
|
19957
|
-
fill: "none",
|
|
19958
|
-
"aria-hidden": "true",
|
|
19959
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
19960
|
-
d: "M6.5 2.5h-2A1.5 1.5 0 0 0 3 4v8a1.5 1.5 0 0 0 1.5 1.5h2M8 5l3 3-3 3M5.5 8h5",
|
|
19961
|
-
stroke: "currentColor",
|
|
19962
|
-
strokeWidth: "1.5",
|
|
19963
|
-
strokeLinecap: "round",
|
|
19964
|
-
strokeLinejoin: "round"
|
|
19965
|
-
})
|
|
19966
|
-
});
|
|
19770
|
+
const swallowOsFileDrag = (event) => {
|
|
19771
|
+
if (!(event.dataTransfer?.types.includes("Files") ?? false)) return;
|
|
19772
|
+
event.preventDefault();
|
|
19773
|
+
event.stopPropagation();
|
|
19774
|
+
};
|
|
19775
|
+
/** The four drag events a file drag must never carry past the panel host. */
|
|
19776
|
+
const osFileDragShield = {
|
|
19777
|
+
onDragEnter: swallowOsFileDrag,
|
|
19778
|
+
onDragOver: swallowOsFileDrag,
|
|
19779
|
+
onDragLeave: swallowOsFileDrag,
|
|
19780
|
+
onDrop: swallowOsFileDrag
|
|
19781
|
+
};
|
|
19782
|
+
/**
|
|
19783
|
+
* Append one user-space stylesheet (preset or custom CSS) as a tagged
|
|
19784
|
+
* `<style>` element. The tag attribute carries the source identity so the
|
|
19785
|
+
* running configuration is inspectable in DevTools; the returned tag is
|
|
19786
|
+
* removed by the caller's effect cleanup.
|
|
19787
|
+
*/
|
|
19788
|
+
function injectUserCss(attr, id, cssText) {
|
|
19789
|
+
const tag = document.createElement("style");
|
|
19790
|
+
tag.setAttribute(attr, id);
|
|
19791
|
+
tag.textContent = cssText;
|
|
19792
|
+
document.head.appendChild(tag);
|
|
19793
|
+
return tag;
|
|
19967
19794
|
}
|
|
19968
|
-
/**
|
|
19969
|
-
function
|
|
19970
|
-
|
|
19971
|
-
|
|
19972
|
-
|
|
19973
|
-
|
|
19974
|
-
|
|
19975
|
-
|
|
19976
|
-
|
|
19977
|
-
|
|
19978
|
-
|
|
19979
|
-
|
|
19980
|
-
|
|
19981
|
-
|
|
19982
|
-
cx: "8",
|
|
19983
|
-
cy: "8",
|
|
19984
|
-
r: "1.75",
|
|
19985
|
-
stroke: "currentColor",
|
|
19986
|
-
strokeWidth: "1.25"
|
|
19987
|
-
})]
|
|
19795
|
+
/** Render the content of one tab (dispatched by type). */
|
|
19796
|
+
const TabContent = (0, react.memo)(function TabContent(props) {
|
|
19797
|
+
const { tab, effectiveTabId, sessionId, cwd, expanded, revealed, onToggleDir, onReferenceFile, ctx, store, visible, onSubagentJump, onOpenDiff } = props;
|
|
19798
|
+
const scope = {
|
|
19799
|
+
sessionId,
|
|
19800
|
+
cwd
|
|
19801
|
+
};
|
|
19802
|
+
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
19803
|
+
if (descriptor === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrphanedTab, {
|
|
19804
|
+
ctx,
|
|
19805
|
+
store,
|
|
19806
|
+
scope,
|
|
19807
|
+
tab,
|
|
19808
|
+
visible
|
|
19988
19809
|
});
|
|
19810
|
+
const componentTab = effectiveTabId !== void 0 ? {
|
|
19811
|
+
...tab,
|
|
19812
|
+
id: effectiveTabId
|
|
19813
|
+
} : tab;
|
|
19814
|
+
return (0, react.createElement)(RenderBoundary, { className: sidebar_module_css_default.tabBoundaryError }, (0, react.createElement)(descriptor.component, {
|
|
19815
|
+
ctx,
|
|
19816
|
+
store,
|
|
19817
|
+
scope,
|
|
19818
|
+
tab: componentTab,
|
|
19819
|
+
visible,
|
|
19820
|
+
expanded,
|
|
19821
|
+
revealed,
|
|
19822
|
+
onToggleDir,
|
|
19823
|
+
onReferenceFile,
|
|
19824
|
+
onOpenDiff,
|
|
19825
|
+
onSubagentJump
|
|
19826
|
+
}));
|
|
19827
|
+
}, tabContentCompare);
|
|
19828
|
+
/** The + menu options for the current state, driven by the tab registry.
|
|
19829
|
+
* Hidden tabs (editor/diff) never show; `available` returning false shows
|
|
19830
|
+
* a disabled row (e.g. terminal at capacity) instead of hiding the option.
|
|
19831
|
+
* Tabs the user disabled in the side card settings are filtered out
|
|
19832
|
+
* entirely — re-enabling them is the settings page's job. */
|
|
19833
|
+
function buildNewTabOptions(state, ctx, scope) {
|
|
19834
|
+
const service = ctx.get("betterSidebar");
|
|
19835
|
+
if (service === void 0) return [];
|
|
19836
|
+
return service.getTabs().filter((d) => !d.hidden && service.isTabEnabled(d.id)).sort((a, b) => (a.order ?? 100) - (b.order ?? 100)).map((d) => ({
|
|
19837
|
+
id: d.id,
|
|
19838
|
+
label: typeof d.title === "function" ? d.title() : d.title,
|
|
19839
|
+
disabled: !(d.available?.(ctx, scope, state) ?? true),
|
|
19840
|
+
icon: typeof d.icon === "function" ? d.icon(16) : d.icon
|
|
19841
|
+
}));
|
|
19989
19842
|
}
|
|
19990
|
-
|
|
19991
|
-
|
|
19992
|
-
|
|
19993
|
-
|
|
19994
|
-
|
|
19995
|
-
|
|
19996
|
-
|
|
19997
|
-
|
|
19998
|
-
|
|
19999
|
-
|
|
20000
|
-
|
|
20001
|
-
|
|
20002
|
-
|
|
20003
|
-
const [
|
|
20004
|
-
const [userName, setUserName] = (0, react.useState)("User");
|
|
20005
|
-
const { chatcode, busy, error, loginUrl, startLogin, logout: logoutChatcode, refresh } = useChatcodeAccount();
|
|
19843
|
+
function Sidebar(props) {
|
|
19844
|
+
const { ctx, store } = props;
|
|
19845
|
+
const localeRevision = (0, react.useSyncExternalStore)((0, react.useMemo)(() => (callback) => ctx.locale.subscribe(callback), [ctx]), (0, react.useCallback)(() => ctx.locale.getSnapshot().active, [ctx]));
|
|
19846
|
+
const betterLocaleStore = typeof ctx.get === "function" ? ctx.get("betterLocale") : void 0;
|
|
19847
|
+
(0, react.useSyncExternalStore)((0, react.useMemo)(() => {
|
|
19848
|
+
const store = betterLocaleStore;
|
|
19849
|
+
if (store === void 0) return (_cb) => () => {};
|
|
19850
|
+
return (callback) => store.subscribe(callback);
|
|
19851
|
+
}, [betterLocaleStore]), (0, react.useMemo)(() => {
|
|
19852
|
+
const store = betterLocaleStore;
|
|
19853
|
+
if (store === void 0) return () => void 0;
|
|
19854
|
+
return () => store.active;
|
|
19855
|
+
}, [betterLocaleStore]));
|
|
19856
|
+
const [tabsVersion, setTabsVersion] = (0, react.useState)(0);
|
|
20006
19857
|
(0, react.useEffect)(() => {
|
|
20007
|
-
|
|
20008
|
-
|
|
20009
|
-
|
|
20010
|
-
|
|
20011
|
-
|
|
20012
|
-
|
|
20013
|
-
|
|
20014
|
-
|
|
19858
|
+
const service = ctx.get("betterSidebar");
|
|
19859
|
+
if (service === void 0) return;
|
|
19860
|
+
return service.subscribe(() => setTabsVersion((version) => version + 1));
|
|
19861
|
+
}, [ctx]);
|
|
19862
|
+
const viewport = useViewportSize();
|
|
19863
|
+
const narrow = isNarrowWidth(viewport.width);
|
|
19864
|
+
const [keyboardInset, setKeyboardInset] = (0, react.useState)(0);
|
|
19865
|
+
const [visualViewportHeight, setVisualViewportHeight] = (0, react.useState)(null);
|
|
20015
19866
|
(0, react.useEffect)(() => {
|
|
20016
|
-
const
|
|
20017
|
-
|
|
19867
|
+
const vv = window.visualViewport;
|
|
19868
|
+
if (vv === null || vv === void 0) return;
|
|
19869
|
+
let frame = null;
|
|
19870
|
+
const measure = () => {
|
|
19871
|
+
frame = null;
|
|
19872
|
+
const inset = Math.max(0, window.innerHeight - (vv.height + vv.offsetTop));
|
|
19873
|
+
setKeyboardInset(inset > 1 ? Math.round(inset) : 0);
|
|
19874
|
+
setVisualViewportHeight(Math.max(0, Math.round(vv.height)));
|
|
20018
19875
|
};
|
|
20019
|
-
|
|
19876
|
+
const onResize = () => {
|
|
19877
|
+
if (frame === null) frame = requestAnimationFrame(measure);
|
|
19878
|
+
};
|
|
19879
|
+
vv.addEventListener("resize", onResize);
|
|
19880
|
+
vv.addEventListener("scroll", onResize);
|
|
19881
|
+
measure();
|
|
20020
19882
|
return () => {
|
|
20021
|
-
|
|
19883
|
+
vv.removeEventListener("resize", onResize);
|
|
19884
|
+
vv.removeEventListener("scroll", onResize);
|
|
19885
|
+
if (frame !== null) cancelAnimationFrame(frame);
|
|
20022
19886
|
};
|
|
20023
19887
|
}, []);
|
|
19888
|
+
const layoutViewportHeight = visualViewportHeight ?? viewport.height;
|
|
19889
|
+
const sessionList = (0, react.useSyncExternalStore)((0, react.useMemo)(() => (callback) => ctx.sessions.list.subscribe(callback), [ctx]), (0, react.useCallback)(() => ctx.sessions.list.getSnapshot(), [ctx]));
|
|
19890
|
+
const current = useCurrentSessionId(ctx);
|
|
19891
|
+
const snapshot = (0, react.useSyncExternalStore)((0, react.useCallback)((callback) => store.subscribe(callback), [store]), (0, react.useCallback)(() => store.getSnapshot(), [store]));
|
|
20024
19892
|
(0, react.useEffect)(() => {
|
|
20025
|
-
|
|
20026
|
-
}, [
|
|
19893
|
+
store.setSession(current);
|
|
19894
|
+
}, [current, store]);
|
|
19895
|
+
const state = snapshot.state;
|
|
19896
|
+
const sessionId = snapshot.sessionId;
|
|
19897
|
+
const [nativeToolbarHost, setNativeToolbarHost] = (0, react.useState)(() => nativeToolbarHostOf(document.querySelector(NATIVE_SIDEBAR_TOGGLE)));
|
|
19898
|
+
const summaryCwd = sessionId === void 0 ? void 0 : sessionList.byId[sessionId]?.cwd;
|
|
19899
|
+
const pushedBottomHeight = (bottomOpen, bottomHeight) => layoutPushSize({
|
|
19900
|
+
narrow,
|
|
19901
|
+
panelOpen: false,
|
|
19902
|
+
bottomOpen,
|
|
19903
|
+
width: 0,
|
|
19904
|
+
bottomHeight,
|
|
19905
|
+
viewportWidth: viewport.width,
|
|
19906
|
+
viewportHeight: layoutViewportHeight
|
|
19907
|
+
}).height;
|
|
19908
|
+
const collapsed = state === void 0 || !state.panelOpen;
|
|
20027
19909
|
(0, react.useEffect)(() => {
|
|
20028
|
-
|
|
20029
|
-
|
|
20030
|
-
const sync = () => {
|
|
20031
|
-
const next = nativeSettingsButton(rootRef.current);
|
|
20032
|
-
const width = railWidthOf(next);
|
|
20033
|
-
if (width !== void 0) rootRef.current?.style.setProperty("--dsh-account-menu-width", `${width}px`);
|
|
20034
|
-
if (next === current) return;
|
|
20035
|
-
if (current !== void 0 && originalStyle !== void 0) current.style.cssText = originalStyle;
|
|
20036
|
-
current = next;
|
|
20037
|
-
originalStyle = current?.style.cssText;
|
|
20038
|
-
if (current !== void 0) current.style.visibility = "hidden";
|
|
20039
|
-
};
|
|
20040
|
-
sync();
|
|
20041
|
-
const observer = new MutationObserver(sync);
|
|
20042
|
-
observer.observe(document.body, {
|
|
20043
|
-
childList: true,
|
|
20044
|
-
subtree: true,
|
|
20045
|
-
characterData: true
|
|
20046
|
-
});
|
|
19910
|
+
if (collapsed) document.body.setAttribute("data-dsh-sidebar-collapsed", "");
|
|
19911
|
+
else document.body.removeAttribute("data-dsh-sidebar-collapsed");
|
|
20047
19912
|
return () => {
|
|
20048
|
-
|
|
20049
|
-
if (current !== void 0 && originalStyle !== void 0) current.style.cssText = originalStyle;
|
|
20050
|
-
};
|
|
20051
|
-
}, []);
|
|
20052
|
-
const openSettings = () => {
|
|
20053
|
-
setOpen(false);
|
|
20054
|
-
nativeSettingsButton(rootRef.current)?.click();
|
|
20055
|
-
};
|
|
20056
|
-
const chatcodeName = chatcode?.userName?.trim() || chatcode?.emailAddress?.trim() || userName;
|
|
20057
|
-
const signedIn = chatcode?.validation === "valid" && chatcode.expired !== true;
|
|
20058
|
-
const showLoginFailure = !signedIn && (chatcode?.login?.state === "failed" || chatcode?.login?.state === "timed-out");
|
|
20059
|
-
const hasChatcodeAccount = chatcode?.available === true && chatcode.configured === true;
|
|
20060
|
-
const canStartChatcodeLogin = chatcode?.available === true && !hasChatcodeAccount && !(chatcode.configured === true && chatcode.validation === "unavailable");
|
|
20061
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
20062
|
-
ref: rootRef,
|
|
20063
|
-
className: sidebar_module_css_default.accountMenu,
|
|
20064
|
-
children: [
|
|
20065
|
-
open && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
20066
|
-
className: sidebar_module_css_default.accountDropdown,
|
|
20067
|
-
role: "menu",
|
|
20068
|
-
"aria-label": t("accountMenuLabel"),
|
|
20069
|
-
children: [
|
|
20070
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
20071
|
-
className: sidebar_module_css_default.accountDropdownHeader,
|
|
20072
|
-
children: [
|
|
20073
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20074
|
-
className: sidebar_module_css_default.accountAvatar,
|
|
20075
|
-
children: chatcodeName.slice(0, 1).toUpperCase()
|
|
20076
|
-
}),
|
|
20077
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20078
|
-
className: sidebar_module_css_default.accountName,
|
|
20079
|
-
children: chatcodeName
|
|
20080
|
-
}),
|
|
20081
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20082
|
-
className: sidebar_module_css_default.accountPresence,
|
|
20083
|
-
style: { opacity: signedIn ? 1 : .25 },
|
|
20084
|
-
"aria-hidden": "true"
|
|
20085
|
-
})
|
|
20086
|
-
]
|
|
20087
|
-
}),
|
|
20088
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: sidebar_module_css_default.accountMenuDivider }),
|
|
20089
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
20090
|
-
type: "button",
|
|
20091
|
-
role: "menuitem",
|
|
20092
|
-
className: sidebar_module_css_default.accountItem,
|
|
20093
|
-
onClick: openSettings,
|
|
20094
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsIcon, {}), t("accountMenuSettings")]
|
|
20095
|
-
}),
|
|
20096
|
-
error === "operation" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
20097
|
-
role: "alert",
|
|
20098
|
-
className: sidebar_module_css_default.accountItem,
|
|
20099
|
-
children: t("accountMenuChatcodeError")
|
|
20100
|
-
}),
|
|
20101
|
-
showLoginFailure && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
20102
|
-
role: "alert",
|
|
20103
|
-
className: sidebar_module_css_default.accountItem,
|
|
20104
|
-
children: t("accountMenuChatcodeRetry")
|
|
20105
|
-
}),
|
|
20106
|
-
loginUrl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
20107
|
-
"data-dsh-external": "true",
|
|
20108
|
-
className: sidebar_module_css_default.accountItem,
|
|
20109
|
-
href: loginUrl,
|
|
20110
|
-
target: "_blank",
|
|
20111
|
-
rel: "noopener noreferrer",
|
|
20112
|
-
onClick: (event) => {
|
|
20113
|
-
event.stopPropagation();
|
|
20114
|
-
},
|
|
20115
|
-
children: t("accountMenuChatcodeOpen")
|
|
20116
|
-
}),
|
|
20117
|
-
chatcode?.available === true && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [canStartChatcodeLogin && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
20118
|
-
type: "button",
|
|
20119
|
-
role: "menuitem",
|
|
20120
|
-
className: sidebar_module_css_default.accountItem,
|
|
20121
|
-
disabled: busy,
|
|
20122
|
-
onClick: startLogin,
|
|
20123
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutIcon, {}), busy ? t("accountMenuChatcodeStarting") : t("accountMenuChatcodeLogin")]
|
|
20124
|
-
}), hasChatcodeAccount && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
20125
|
-
type: "button",
|
|
20126
|
-
role: "menuitem",
|
|
20127
|
-
className: sidebar_module_css_default.accountItem,
|
|
20128
|
-
disabled: busy,
|
|
20129
|
-
onClick: () => {
|
|
20130
|
-
setLogoutTarget("chatcode");
|
|
20131
|
-
},
|
|
20132
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutIcon, {}), t("accountMenuLogout")]
|
|
20133
|
-
})] }),
|
|
20134
|
-
chatcode?.available === false && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
20135
|
-
type: "button",
|
|
20136
|
-
role: "menuitem",
|
|
20137
|
-
className: sidebar_module_css_default.accountItem,
|
|
20138
|
-
onClick: () => {
|
|
20139
|
-
setLogoutTarget("browser");
|
|
20140
|
-
},
|
|
20141
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutIcon, {}), t("accountMenuLogout")]
|
|
20142
|
-
})
|
|
20143
|
-
]
|
|
20144
|
-
}),
|
|
20145
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
20146
|
-
type: "button",
|
|
20147
|
-
className: sidebar_module_css_default.accountTrigger,
|
|
20148
|
-
"aria-expanded": open,
|
|
20149
|
-
"aria-haspopup": "menu",
|
|
20150
|
-
"aria-label": t("accountMenuLabel"),
|
|
20151
|
-
onClick: () => {
|
|
20152
|
-
if (!open) refresh();
|
|
20153
|
-
setOpen((value) => !value);
|
|
20154
|
-
},
|
|
20155
|
-
children: [
|
|
20156
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20157
|
-
className: sidebar_module_css_default.accountAvatar,
|
|
20158
|
-
children: chatcodeName.slice(0, 1).toUpperCase()
|
|
20159
|
-
}),
|
|
20160
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20161
|
-
className: sidebar_module_css_default.accountName,
|
|
20162
|
-
children: chatcodeName
|
|
20163
|
-
}),
|
|
20164
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20165
|
-
className: sidebar_module_css_default.accountPresence,
|
|
20166
|
-
style: { opacity: signedIn ? 1 : .25 },
|
|
20167
|
-
"aria-hidden": "true"
|
|
20168
|
-
})
|
|
20169
|
-
]
|
|
20170
|
-
}),
|
|
20171
|
-
logoutTarget !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutConfirmDialog, {
|
|
20172
|
-
onCancel: () => {
|
|
20173
|
-
setLogoutTarget(void 0);
|
|
20174
|
-
},
|
|
20175
|
-
onConfirm: () => {
|
|
20176
|
-
setLogoutTarget(void 0);
|
|
20177
|
-
if (logoutTarget === "chatcode") logoutChatcode();
|
|
20178
|
-
else logout();
|
|
20179
|
-
}
|
|
20180
|
-
})
|
|
20181
|
-
]
|
|
20182
|
-
});
|
|
20183
|
-
}
|
|
20184
|
-
//#endregion
|
|
20185
|
-
//#region src/client/Sidebar.tsx
|
|
20186
|
-
/**
|
|
20187
|
-
* The sidebar shell: panels mounted inside the unified panel host — a
|
|
20188
|
-
* fixed, viewport-sized containing block ([data-dsh-panel-host]) appended
|
|
20189
|
-
* to document.body — instead of individual fixed-position elements, so a
|
|
20190
|
-
* desktop shell's intermediate wrapper transforms can never hijack the
|
|
20191
|
-
* panels' fixed containing block (the core AppFrame owns the left sidebar /
|
|
20192
|
-
* center / details columns and has no right-side hole for plugins). The
|
|
20193
|
-
* right panel hosts the original workbench; the bottom panel hosts a
|
|
20194
|
-
* second, independent workbench. The bottom panel squeezes ONLY the center
|
|
20195
|
-
* column (the agent output area): it spans from the app shell's own left
|
|
20196
|
-
* sidebar to the right panel's left edge, so neither sidebar gives up any
|
|
20197
|
-
* position (the right panel keeps its full height). A persistent cluster at
|
|
20198
|
-
* the top-right corner toggles the bottom panel; the host's native rightbar
|
|
20199
|
-
* button toggles this plugin's right panel (with a plugin fallback on older
|
|
20200
|
-
* hosts). The right panel's width drags from its left edge, the bottom
|
|
20201
|
-
* panel's height from its top edge, and the shared corner drags both at once.
|
|
20202
|
-
* Current DSH hosts receive one integrated Session-header control group for
|
|
20203
|
-
* the bottom panel, right panel, and manual; older hosts keep the viewport
|
|
20204
|
-
* fallback. The whole layout lives in the per-session store, so switching
|
|
20205
|
-
* conversations swaps the sidebar.
|
|
20206
|
-
*
|
|
20207
|
-
* The shell binds the workbench actions to the store and dispatches tab
|
|
20208
|
-
* content to the views. New tabs come from the + menu (explorer / git /
|
|
20209
|
-
* terminal; editors open from the explorer). Tabs live in one tree only —
|
|
20210
|
-
* they never cross panels; only the panel sizes drag against each other.
|
|
20211
|
-
*
|
|
20212
|
-
* Narrow (mobile, <768px) viewports show ONLY the right sidebar: entering
|
|
20213
|
-
* narrow migrates the bottom panel's tabs INTO the right tree
|
|
20214
|
-
* (migrateBottomTabs) — one workbench, the bottom tabs thrown into its
|
|
20215
|
-
* strips. The right panel becomes a full-width drawer, the bottom panel
|
|
20216
|
-
* and its toggle button disappear, and the layout push is disabled (the
|
|
20217
|
-
* drawer floats). Widening does not migrate back: the tabs keep living in
|
|
20218
|
-
* the right tree.
|
|
20219
|
-
*/
|
|
20220
|
-
/** How many consecutive reconnect failures stop the agent-terminals push loop
|
|
20221
|
-
* (mirror of the terminal view's own cap; the loop restarts on session switch). */
|
|
20222
|
-
const FAILURE_LIMIT = 3;
|
|
20223
|
-
/** Public CLI documentation opened by the persistent top-right manual action. */
|
|
20224
|
-
const USER_MANUAL_URL = "https://chatcode.chinaunicom.cn/doc/cli/";
|
|
20225
|
-
/** Stable host affordance contributed by DSH's native right sidebar. */
|
|
20226
|
-
const NATIVE_SIDEBAR_TOGGLE = "button[data-sidebar-right-expand]";
|
|
20227
|
-
/** Stable container left behind when DSH's native right sidebar is open and
|
|
20228
|
-
* its expand button is therefore absent. The utilities row immediately before
|
|
20229
|
-
* it owns Session actions such as the log-download menu. */
|
|
20230
|
-
const NATIVE_HEADER_CORNER = "[data-conversation-header-corner]";
|
|
20231
|
-
/** Resolve the shared Session-actions row on both native-sidebar states.
|
|
20232
|
-
* Current DSH keeps the corner seat mounted while its expand control comes and
|
|
20233
|
-
* goes; older hosts fall back to the native button's own parent. */
|
|
20234
|
-
function nativeToolbarHostOf(nativeButton) {
|
|
20235
|
-
const corner = nativeButton?.closest(NATIVE_HEADER_CORNER) ?? document.querySelector(NATIVE_HEADER_CORNER);
|
|
20236
|
-
const utilities = corner?.previousElementSibling;
|
|
20237
|
-
if (utilities instanceof HTMLElement && utilities.parentElement === corner?.parentElement) return utilities;
|
|
20238
|
-
return nativeButton?.parentElement ?? null;
|
|
20239
|
-
}
|
|
20240
|
-
function UserManualButton() {
|
|
20241
|
-
const label = t("userManual");
|
|
20242
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
20243
|
-
label,
|
|
20244
|
-
side: "bottom",
|
|
20245
|
-
delayMs: 500,
|
|
20246
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
20247
|
-
type: "button",
|
|
20248
|
-
className: sidebar_module_css_default.manualButton,
|
|
20249
|
-
"aria-label": label,
|
|
20250
|
-
onClick: () => {
|
|
20251
|
-
window.open(USER_MANUAL_URL, "_blank", "noopener,noreferrer");
|
|
20252
|
-
},
|
|
20253
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBookOutline16, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label })]
|
|
20254
|
-
})
|
|
20255
|
-
});
|
|
20256
|
-
}
|
|
20257
|
-
/**
|
|
20258
|
-
* OS file drags over the sidebar belong to the sidebar, not to the chat:
|
|
20259
|
-
* DSH's composer (InputBar) listens for file drags on the DOCUMENT and
|
|
20260
|
-
* answers with a full-screen "drop image here" mask plus image intake on
|
|
20261
|
-
* drop. Both panel-host render sites swallow the whole event quartet —
|
|
20262
|
-
* enter/over/leave/drop — so the region is a black hole to that document
|
|
20263
|
-
* listener. All four must be stopped: InputBar keeps an enter/leave depth
|
|
20264
|
-
* counter, and a leave that escapes without its matching enter unbalances
|
|
20265
|
-
* the count (this was the full-screen mask flickering over the sidebar).
|
|
20266
|
-
* The conversation column keeps DSH's native overlay and intake untouched;
|
|
20267
|
-
* gated on the 'Files' type so in-app drags (tab reorder, split zones)
|
|
20268
|
-
* propagate exactly as before.
|
|
20269
|
-
*/
|
|
20270
|
-
const swallowOsFileDrag = (event) => {
|
|
20271
|
-
if (!(event.dataTransfer?.types.includes("Files") ?? false)) return;
|
|
20272
|
-
event.preventDefault();
|
|
20273
|
-
event.stopPropagation();
|
|
20274
|
-
};
|
|
20275
|
-
/** The four drag events a file drag must never carry past the panel host. */
|
|
20276
|
-
const osFileDragShield = {
|
|
20277
|
-
onDragEnter: swallowOsFileDrag,
|
|
20278
|
-
onDragOver: swallowOsFileDrag,
|
|
20279
|
-
onDragLeave: swallowOsFileDrag,
|
|
20280
|
-
onDrop: swallowOsFileDrag
|
|
20281
|
-
};
|
|
20282
|
-
/**
|
|
20283
|
-
* Append one user-space stylesheet (preset or custom CSS) as a tagged
|
|
20284
|
-
* `<style>` element. The tag attribute carries the source identity so the
|
|
20285
|
-
* running configuration is inspectable in DevTools; the returned tag is
|
|
20286
|
-
* removed by the caller's effect cleanup.
|
|
20287
|
-
*/
|
|
20288
|
-
function injectUserCss(attr, id, cssText) {
|
|
20289
|
-
const tag = document.createElement("style");
|
|
20290
|
-
tag.setAttribute(attr, id);
|
|
20291
|
-
tag.textContent = cssText;
|
|
20292
|
-
document.head.appendChild(tag);
|
|
20293
|
-
return tag;
|
|
20294
|
-
}
|
|
20295
|
-
/** Render the content of one tab (dispatched by type). */
|
|
20296
|
-
const TabContent = (0, react.memo)(function TabContent(props) {
|
|
20297
|
-
const { tab, effectiveTabId, sessionId, cwd, expanded, revealed, onToggleDir, onReferenceFile, ctx, store, visible, onSubagentJump, onOpenDiff } = props;
|
|
20298
|
-
const scope = {
|
|
20299
|
-
sessionId,
|
|
20300
|
-
cwd
|
|
20301
|
-
};
|
|
20302
|
-
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
20303
|
-
if (descriptor === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrphanedTab, {
|
|
20304
|
-
ctx,
|
|
20305
|
-
store,
|
|
20306
|
-
scope,
|
|
20307
|
-
tab,
|
|
20308
|
-
visible
|
|
20309
|
-
});
|
|
20310
|
-
const componentTab = effectiveTabId !== void 0 ? {
|
|
20311
|
-
...tab,
|
|
20312
|
-
id: effectiveTabId
|
|
20313
|
-
} : tab;
|
|
20314
|
-
return (0, react.createElement)(RenderBoundary, { className: sidebar_module_css_default.tabBoundaryError }, (0, react.createElement)(descriptor.component, {
|
|
20315
|
-
ctx,
|
|
20316
|
-
store,
|
|
20317
|
-
scope,
|
|
20318
|
-
tab: componentTab,
|
|
20319
|
-
visible,
|
|
20320
|
-
expanded,
|
|
20321
|
-
revealed,
|
|
20322
|
-
onToggleDir,
|
|
20323
|
-
onReferenceFile,
|
|
20324
|
-
onOpenDiff,
|
|
20325
|
-
onSubagentJump
|
|
20326
|
-
}));
|
|
20327
|
-
}, tabContentCompare);
|
|
20328
|
-
/** The + menu options for the current state, driven by the tab registry.
|
|
20329
|
-
* Hidden tabs (editor/diff) never show; `available` returning false shows
|
|
20330
|
-
* a disabled row (e.g. terminal at capacity) instead of hiding the option.
|
|
20331
|
-
* Tabs the user disabled in the side card settings are filtered out
|
|
20332
|
-
* entirely — re-enabling them is the settings page's job. */
|
|
20333
|
-
function buildNewTabOptions(state, ctx, scope) {
|
|
20334
|
-
const service = ctx.get("betterSidebar");
|
|
20335
|
-
if (service === void 0) return [];
|
|
20336
|
-
return service.getTabs().filter((d) => !d.hidden && service.isTabEnabled(d.id)).sort((a, b) => (a.order ?? 100) - (b.order ?? 100)).map((d) => ({
|
|
20337
|
-
id: d.id,
|
|
20338
|
-
label: typeof d.title === "function" ? d.title() : d.title,
|
|
20339
|
-
disabled: !(d.available?.(ctx, scope, state) ?? true),
|
|
20340
|
-
icon: typeof d.icon === "function" ? d.icon(16) : d.icon
|
|
20341
|
-
}));
|
|
20342
|
-
}
|
|
20343
|
-
function Sidebar(props) {
|
|
20344
|
-
const { ctx, store } = props;
|
|
20345
|
-
const localeRevision = (0, react.useSyncExternalStore)((0, react.useMemo)(() => (callback) => ctx.locale.subscribe(callback), [ctx]), (0, react.useCallback)(() => ctx.locale.getSnapshot().active, [ctx]));
|
|
20346
|
-
const betterLocaleStore = typeof ctx.get === "function" ? ctx.get("betterLocale") : void 0;
|
|
20347
|
-
(0, react.useSyncExternalStore)((0, react.useMemo)(() => {
|
|
20348
|
-
const store = betterLocaleStore;
|
|
20349
|
-
if (store === void 0) return (_cb) => () => {};
|
|
20350
|
-
return (callback) => store.subscribe(callback);
|
|
20351
|
-
}, [betterLocaleStore]), (0, react.useMemo)(() => {
|
|
20352
|
-
const store = betterLocaleStore;
|
|
20353
|
-
if (store === void 0) return () => void 0;
|
|
20354
|
-
return () => store.active;
|
|
20355
|
-
}, [betterLocaleStore]));
|
|
20356
|
-
const [tabsVersion, setTabsVersion] = (0, react.useState)(0);
|
|
20357
|
-
(0, react.useEffect)(() => {
|
|
20358
|
-
const service = ctx.get("betterSidebar");
|
|
20359
|
-
if (service === void 0) return;
|
|
20360
|
-
return service.subscribe(() => setTabsVersion((version) => version + 1));
|
|
20361
|
-
}, [ctx]);
|
|
20362
|
-
const viewport = useViewportSize();
|
|
20363
|
-
const narrow = isNarrowWidth(viewport.width);
|
|
20364
|
-
const [keyboardInset, setKeyboardInset] = (0, react.useState)(0);
|
|
20365
|
-
const [visualViewportHeight, setVisualViewportHeight] = (0, react.useState)(null);
|
|
20366
|
-
(0, react.useEffect)(() => {
|
|
20367
|
-
const vv = window.visualViewport;
|
|
20368
|
-
if (vv === null || vv === void 0) return;
|
|
20369
|
-
let frame = null;
|
|
20370
|
-
const measure = () => {
|
|
20371
|
-
frame = null;
|
|
20372
|
-
const inset = Math.max(0, window.innerHeight - (vv.height + vv.offsetTop));
|
|
20373
|
-
setKeyboardInset(inset > 1 ? Math.round(inset) : 0);
|
|
20374
|
-
setVisualViewportHeight(Math.max(0, Math.round(vv.height)));
|
|
20375
|
-
};
|
|
20376
|
-
const onResize = () => {
|
|
20377
|
-
if (frame === null) frame = requestAnimationFrame(measure);
|
|
20378
|
-
};
|
|
20379
|
-
vv.addEventListener("resize", onResize);
|
|
20380
|
-
vv.addEventListener("scroll", onResize);
|
|
20381
|
-
measure();
|
|
20382
|
-
return () => {
|
|
20383
|
-
vv.removeEventListener("resize", onResize);
|
|
20384
|
-
vv.removeEventListener("scroll", onResize);
|
|
20385
|
-
if (frame !== null) cancelAnimationFrame(frame);
|
|
20386
|
-
};
|
|
20387
|
-
}, []);
|
|
20388
|
-
const layoutViewportHeight = visualViewportHeight ?? viewport.height;
|
|
20389
|
-
const sessionList = (0, react.useSyncExternalStore)((0, react.useMemo)(() => (callback) => ctx.sessions.list.subscribe(callback), [ctx]), (0, react.useCallback)(() => ctx.sessions.list.getSnapshot(), [ctx]));
|
|
20390
|
-
const current = useCurrentSessionId(ctx);
|
|
20391
|
-
const snapshot = (0, react.useSyncExternalStore)((0, react.useCallback)((callback) => store.subscribe(callback), [store]), (0, react.useCallback)(() => store.getSnapshot(), [store]));
|
|
20392
|
-
(0, react.useEffect)(() => {
|
|
20393
|
-
store.setSession(current);
|
|
20394
|
-
}, [current, store]);
|
|
20395
|
-
const state = snapshot.state;
|
|
20396
|
-
const sessionId = snapshot.sessionId;
|
|
20397
|
-
const [nativeToolbarHost, setNativeToolbarHost] = (0, react.useState)(() => nativeToolbarHostOf(document.querySelector(NATIVE_SIDEBAR_TOGGLE)));
|
|
20398
|
-
const summaryCwd = sessionId === void 0 ? void 0 : sessionList.byId[sessionId]?.cwd;
|
|
20399
|
-
const pushedBottomHeight = (bottomOpen, bottomHeight) => layoutPushSize({
|
|
20400
|
-
narrow,
|
|
20401
|
-
panelOpen: false,
|
|
20402
|
-
bottomOpen,
|
|
20403
|
-
width: 0,
|
|
20404
|
-
bottomHeight,
|
|
20405
|
-
viewportWidth: viewport.width,
|
|
20406
|
-
viewportHeight: layoutViewportHeight
|
|
20407
|
-
}).height;
|
|
20408
|
-
const collapsed = state === void 0 || !state.panelOpen;
|
|
20409
|
-
(0, react.useEffect)(() => {
|
|
20410
|
-
if (collapsed) document.body.setAttribute("data-dsh-sidebar-collapsed", "");
|
|
20411
|
-
else document.body.removeAttribute("data-dsh-sidebar-collapsed");
|
|
20412
|
-
return () => {
|
|
20413
|
-
document.body.removeAttribute("data-dsh-sidebar-collapsed");
|
|
19913
|
+
document.body.removeAttribute("data-dsh-sidebar-collapsed");
|
|
20414
19914
|
};
|
|
20415
19915
|
}, [collapsed]);
|
|
20416
19916
|
(0, react.useEffect)(() => {
|
|
@@ -21269,10 +20769,10 @@ window.__ModuleLoader__.load({
|
|
|
21269
20769
|
sessionId,
|
|
21270
20770
|
cwd
|
|
21271
20771
|
]);
|
|
21272
|
-
if (state === void 0 || sessionId === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.
|
|
20772
|
+
if (state === void 0 || sessionId === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21273
20773
|
"data-dsh-panel-host": true,
|
|
21274
20774
|
...osFileDragShield,
|
|
21275
|
-
children:
|
|
20775
|
+
children: nativeToolbarHost !== null ? (0, react_dom.createPortal)(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21276
20776
|
className: clsx(sidebar_module_css_default.toggleCluster, sidebar_module_css_default.toggleClusterNative),
|
|
21277
20777
|
"data-dsh-toggle-cluster": true,
|
|
21278
20778
|
"data-dsh-native-toolbar-cluster": true,
|
|
@@ -21318,416 +20818,924 @@ window.__ModuleLoader__.load({
|
|
|
21318
20818
|
"aria-label": t("noSession"),
|
|
21319
20819
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelBottomOutline16, {})
|
|
21320
20820
|
})
|
|
21321
|
-
}),
|
|
21322
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
21323
|
-
label: t("noSession"),
|
|
21324
|
-
side: "bottom",
|
|
21325
|
-
delayMs: 500,
|
|
21326
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
21327
|
-
type: "button",
|
|
21328
|
-
className: sidebar_module_css_default.toggleButton,
|
|
21329
|
-
"aria-disabled": "true",
|
|
21330
|
-
"aria-label": t("noSession"),
|
|
21331
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelRightOutline16, {})
|
|
20821
|
+
}),
|
|
20822
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
20823
|
+
label: t("noSession"),
|
|
20824
|
+
side: "bottom",
|
|
20825
|
+
delayMs: 500,
|
|
20826
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
20827
|
+
type: "button",
|
|
20828
|
+
className: sidebar_module_css_default.toggleButton,
|
|
20829
|
+
"aria-disabled": "true",
|
|
20830
|
+
"aria-label": t("noSession"),
|
|
20831
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelRightOutline16, {})
|
|
20832
|
+
})
|
|
20833
|
+
}),
|
|
20834
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(UserManualButton, {})
|
|
20835
|
+
]
|
|
20836
|
+
})
|
|
20837
|
+
});
|
|
20838
|
+
const bottomPanelHeight = layoutPushSize({
|
|
20839
|
+
narrow,
|
|
20840
|
+
panelOpen: state.panelOpen,
|
|
20841
|
+
bottomOpen: true,
|
|
20842
|
+
width: state.width,
|
|
20843
|
+
bottomHeight: state.bottomHeight,
|
|
20844
|
+
viewportWidth: viewport.width,
|
|
20845
|
+
viewportHeight: layoutViewportHeight
|
|
20846
|
+
}).height;
|
|
20847
|
+
const onNewTab = (optionId) => {
|
|
20848
|
+
const service = ctx.get("betterSidebar");
|
|
20849
|
+
const descriptor = service?.getTab(optionId);
|
|
20850
|
+
if (service === void 0 || descriptor === void 0) return;
|
|
20851
|
+
const title = typeof descriptor.title === "function" ? descriptor.title() : descriptor.title;
|
|
20852
|
+
service.openTab({
|
|
20853
|
+
type: optionId,
|
|
20854
|
+
title
|
|
20855
|
+
}, {
|
|
20856
|
+
sessionId,
|
|
20857
|
+
cwd
|
|
20858
|
+
});
|
|
20859
|
+
};
|
|
20860
|
+
/**
|
|
20861
|
+
* The explorer's @-reference button: append `@<relative path>` to the
|
|
20862
|
+
* session's composer draft (space-separated). Resolves the session-scope
|
|
20863
|
+
* ctx and the conversation input service at click time; a missing service
|
|
20864
|
+
* or scope degrades to a logged no-op, never a crash.
|
|
20865
|
+
*/
|
|
20866
|
+
/** The tab icon from the tab-type registry (shared by every workbench). */
|
|
20867
|
+
const tabIconOf = (tab) => {
|
|
20868
|
+
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
20869
|
+
if (descriptor === void 0) return null;
|
|
20870
|
+
return typeof descriptor.icon === "function" ? descriptor.icon(14) : descriptor.icon;
|
|
20871
|
+
};
|
|
20872
|
+
/**
|
|
20873
|
+
* The tab badge from the tab-type registry: a count (99+ capped) or a
|
|
20874
|
+
* short text pill. A throwing badge is swallowed (no pill) — the tab
|
|
20875
|
+
* strip must never break because a plugin's badge computation failed.
|
|
20876
|
+
*/
|
|
20877
|
+
const tabBadgeOf = (tab) => {
|
|
20878
|
+
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
20879
|
+
if (descriptor?.badge === void 0) return null;
|
|
20880
|
+
let value;
|
|
20881
|
+
try {
|
|
20882
|
+
value = descriptor.badge(ctx, {
|
|
20883
|
+
sessionId,
|
|
20884
|
+
cwd
|
|
20885
|
+
}, state);
|
|
20886
|
+
} catch (error) {
|
|
20887
|
+
console.error("[dsh-better-sidebar] tab badge error:", error);
|
|
20888
|
+
return null;
|
|
20889
|
+
}
|
|
20890
|
+
if (value === null || value === void 0 || value === "") return null;
|
|
20891
|
+
const text = typeof value === "number" ? value > 99 ? "99+" : String(value) : String(value);
|
|
20892
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20893
|
+
className: sidebar_module_css_default.tabBadge,
|
|
20894
|
+
children: text
|
|
20895
|
+
});
|
|
20896
|
+
};
|
|
20897
|
+
/**
|
|
20898
|
+
* Render one tab's content. `active` (from the workbench) tells whether
|
|
20899
|
+
* this tab is the active one in its pane; combined with the panel's
|
|
20900
|
+
* open/closed state it gates live views (the Subagent topology pauses its
|
|
20901
|
+
* polling while the page is not actually visible). The pane id travels
|
|
20902
|
+
* with the tab so diff tabs can split below their source pane.
|
|
20903
|
+
*/
|
|
20904
|
+
const renderTab = (tab, active, paneId, placement = "top") => {
|
|
20905
|
+
const home = getPinnedHomeScope(tab);
|
|
20906
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TabContent, {
|
|
20907
|
+
tab,
|
|
20908
|
+
effectiveTabId: home?.tabId,
|
|
20909
|
+
paneId,
|
|
20910
|
+
sessionId: home?.sessionId ?? sessionId,
|
|
20911
|
+
cwd: home?.cwd ?? cwd,
|
|
20912
|
+
expanded: state.expanded,
|
|
20913
|
+
revealed: state.revealed ?? [],
|
|
20914
|
+
onToggleDir: (path) => {
|
|
20915
|
+
store.reduce((s) => toggleExpanded(s, path));
|
|
20916
|
+
},
|
|
20917
|
+
onReferenceFile: referenceInChat,
|
|
20918
|
+
ctx,
|
|
20919
|
+
store,
|
|
20920
|
+
visible: placement === "float" ? true : placement === "bottom" ? state.bottomOpen && active : state.panelOpen && active,
|
|
20921
|
+
onSubagentJump: () => {},
|
|
20922
|
+
onOpenDiff: (diffTab) => {
|
|
20923
|
+
store.reduce((s) => openDiffTab(s, paneId, diffTab));
|
|
20924
|
+
},
|
|
20925
|
+
localeRevision,
|
|
20926
|
+
tabsVersion
|
|
20927
|
+
});
|
|
20928
|
+
};
|
|
20929
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
20930
|
+
"data-dsh-panel-host": true,
|
|
20931
|
+
...osFileDragShield,
|
|
20932
|
+
children: [
|
|
20933
|
+
nativeToolbarHost !== null ? (0, react_dom.createPortal)(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
20934
|
+
className: clsx(sidebar_module_css_default.toggleCluster, sidebar_module_css_default.toggleClusterNative),
|
|
20935
|
+
"data-dsh-toggle-cluster": true,
|
|
20936
|
+
"data-dsh-native-toolbar-cluster": true,
|
|
20937
|
+
children: [
|
|
20938
|
+
!narrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
20939
|
+
label: state.bottomOpen ? t("collapseBottomPanel") : t("expandBottomPanel"),
|
|
20940
|
+
side: "bottom",
|
|
20941
|
+
delayMs: 500,
|
|
20942
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
20943
|
+
type: "button",
|
|
20944
|
+
className: sidebar_module_css_default.toggleButton,
|
|
20945
|
+
"aria-label": state.bottomOpen ? t("collapseBottomPanel") : t("expandBottomPanel"),
|
|
20946
|
+
onClick: () => {
|
|
20947
|
+
store.reduce(toggleBottomPanel);
|
|
20948
|
+
},
|
|
20949
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelBottomOutline16, {})
|
|
20950
|
+
})
|
|
20951
|
+
}),
|
|
20952
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
20953
|
+
label: state.panelOpen ? t("collapse") : t("expand"),
|
|
20954
|
+
side: "bottom",
|
|
20955
|
+
delayMs: 500,
|
|
20956
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
20957
|
+
type: "button",
|
|
20958
|
+
className: sidebar_module_css_default.toggleButton,
|
|
20959
|
+
"aria-label": state.panelOpen ? t("collapse") : t("expand"),
|
|
20960
|
+
onClick: () => {
|
|
20961
|
+
store.reduce(togglePanel);
|
|
20962
|
+
},
|
|
20963
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelRightOutline16, {})
|
|
20964
|
+
})
|
|
20965
|
+
}),
|
|
20966
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(UserManualButton, {})
|
|
20967
|
+
]
|
|
20968
|
+
}), nativeToolbarHost) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
20969
|
+
className: sidebar_module_css_default.toggleCluster,
|
|
20970
|
+
"data-dsh-toggle-cluster": true,
|
|
20971
|
+
children: [
|
|
20972
|
+
!narrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
20973
|
+
label: state.bottomOpen ? t("collapseBottomPanel") : t("expandBottomPanel"),
|
|
20974
|
+
side: "bottom",
|
|
20975
|
+
delayMs: 500,
|
|
20976
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
20977
|
+
type: "button",
|
|
20978
|
+
className: sidebar_module_css_default.toggleButton,
|
|
20979
|
+
"aria-label": state.bottomOpen ? t("collapseBottomPanel") : t("expandBottomPanel"),
|
|
20980
|
+
onClick: () => {
|
|
20981
|
+
store.reduce(toggleBottomPanel);
|
|
20982
|
+
},
|
|
20983
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelBottomOutline16, {})
|
|
20984
|
+
})
|
|
20985
|
+
}),
|
|
20986
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
20987
|
+
label: state.panelOpen ? t("collapse") : t("expand"),
|
|
20988
|
+
side: "bottom",
|
|
20989
|
+
delayMs: 500,
|
|
20990
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
20991
|
+
type: "button",
|
|
20992
|
+
className: sidebar_module_css_default.toggleButton,
|
|
20993
|
+
"aria-label": state.panelOpen ? t("collapse") : t("expand"),
|
|
20994
|
+
onClick: () => {
|
|
20995
|
+
store.reduce(togglePanel);
|
|
20996
|
+
},
|
|
20997
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelRightOutline16, {})
|
|
20998
|
+
})
|
|
20999
|
+
}),
|
|
21000
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(UserManualButton, {})
|
|
21001
|
+
]
|
|
21002
|
+
}),
|
|
21003
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21004
|
+
ref: panelRef,
|
|
21005
|
+
className: clsx(sidebar_module_css_default.panel, !state.panelOpen && sidebar_module_css_default.panelHidden),
|
|
21006
|
+
"data-dsh-panel": true,
|
|
21007
|
+
style: {
|
|
21008
|
+
width: narrow ? "100vw" : Math.min(state.width, window.innerWidth),
|
|
21009
|
+
bottom: narrow && keyboardInset > 0 ? `${keyboardInset}px` : void 0
|
|
21010
|
+
},
|
|
21011
|
+
"data-dragging": anyDragging || void 0,
|
|
21012
|
+
children: [
|
|
21013
|
+
!narrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21014
|
+
className: clsx(sidebar_module_css_default.panelResize, draggingWidth && sidebar_module_css_default.panelResizeActive),
|
|
21015
|
+
onPointerDown: (event) => {
|
|
21016
|
+
event.preventDefault();
|
|
21017
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
21018
|
+
dragCommitted.current = false;
|
|
21019
|
+
widthDrag.current = {
|
|
21020
|
+
startX: event.clientX,
|
|
21021
|
+
startWidth: state.width
|
|
21022
|
+
};
|
|
21023
|
+
setDraggingWidth(true);
|
|
21024
|
+
},
|
|
21025
|
+
onPointerMove: (event) => {
|
|
21026
|
+
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21027
|
+
const { startX, startWidth } = widthDrag.current;
|
|
21028
|
+
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21029
|
+
const height = pushedBottomHeight(state.bottomOpen, state.bottomHeight);
|
|
21030
|
+
scheduleDrag(width, height);
|
|
21031
|
+
},
|
|
21032
|
+
onPointerUp: (event) => {
|
|
21033
|
+
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21034
|
+
if (dragCommitted.current) return;
|
|
21035
|
+
dragCommitted.current = true;
|
|
21036
|
+
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
21037
|
+
const { startX, startWidth } = widthDrag.current;
|
|
21038
|
+
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21039
|
+
const height = pushedBottomHeight(state.bottomOpen, state.bottomHeight);
|
|
21040
|
+
commitDrag(width, height, (s) => setWidth(s, width));
|
|
21041
|
+
setDraggingWidth(false);
|
|
21042
|
+
},
|
|
21043
|
+
onPointerCancel: (event) => {
|
|
21044
|
+
abortDrag(() => setDraggingWidth(false), event);
|
|
21045
|
+
},
|
|
21046
|
+
onLostPointerCapture: () => {
|
|
21047
|
+
abortDrag(() => setDraggingWidth(false));
|
|
21048
|
+
}
|
|
21049
|
+
}),
|
|
21050
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21051
|
+
className: sidebar_module_css_default.panelBody,
|
|
21052
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Workbench, {
|
|
21053
|
+
state,
|
|
21054
|
+
tree: augmentedTree,
|
|
21055
|
+
newTabOptions: buildNewTabOptions(state, ctx, {
|
|
21056
|
+
sessionId,
|
|
21057
|
+
cwd
|
|
21058
|
+
}),
|
|
21059
|
+
actions: wrappedActions,
|
|
21060
|
+
onNewTab,
|
|
21061
|
+
renderTab,
|
|
21062
|
+
getTabIcon: tabIconOf,
|
|
21063
|
+
getTabBadge: tabBadgeOf
|
|
21064
|
+
})
|
|
21065
|
+
}),
|
|
21066
|
+
!narrow && state.panelOpen && state.bottomOpen && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21067
|
+
className: sidebar_module_css_default.cornerHandle,
|
|
21068
|
+
"data-dragging": draggingCorner || void 0,
|
|
21069
|
+
onPointerDown: (event) => {
|
|
21070
|
+
event.preventDefault();
|
|
21071
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
21072
|
+
dragCommitted.current = false;
|
|
21073
|
+
cornerDrag.current = {
|
|
21074
|
+
startX: event.clientX,
|
|
21075
|
+
startY: event.clientY,
|
|
21076
|
+
startWidth: state.width,
|
|
21077
|
+
startHeight: state.bottomHeight
|
|
21078
|
+
};
|
|
21079
|
+
setDraggingCorner(true);
|
|
21080
|
+
},
|
|
21081
|
+
onPointerMove: (event) => {
|
|
21082
|
+
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21083
|
+
const { startX, startY, startWidth, startHeight } = cornerDrag.current;
|
|
21084
|
+
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21085
|
+
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21086
|
+
scheduleDrag(width, height);
|
|
21087
|
+
},
|
|
21088
|
+
onPointerUp: (event) => {
|
|
21089
|
+
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21090
|
+
if (dragCommitted.current) return;
|
|
21091
|
+
dragCommitted.current = true;
|
|
21092
|
+
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
21093
|
+
const { startX, startY, startWidth, startHeight } = cornerDrag.current;
|
|
21094
|
+
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21095
|
+
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21096
|
+
commitDrag(width, height, (s) => setBottomHeight(setWidth(s, width), height));
|
|
21097
|
+
setDraggingCorner(false);
|
|
21098
|
+
},
|
|
21099
|
+
onPointerCancel: (event) => {
|
|
21100
|
+
abortDrag(() => setDraggingCorner(false), event);
|
|
21101
|
+
},
|
|
21102
|
+
onLostPointerCapture: () => {
|
|
21103
|
+
abortDrag(() => setDraggingCorner(false));
|
|
21104
|
+
}
|
|
21105
|
+
})
|
|
21106
|
+
]
|
|
21107
|
+
}),
|
|
21108
|
+
!narrow && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21109
|
+
ref: bottomRef,
|
|
21110
|
+
className: clsx(sidebar_module_css_default.bottomPanel, !state.bottomOpen && sidebar_module_css_default.bottomPanelHidden),
|
|
21111
|
+
"data-dsh-panel": true,
|
|
21112
|
+
"data-dsh-bottom-panel": true,
|
|
21113
|
+
style: {
|
|
21114
|
+
height: bottomPanelHeight,
|
|
21115
|
+
left: centerRectRef.current.left,
|
|
21116
|
+
bottom: keyboardInset > 0 ? `${keyboardInset}px` : void 0,
|
|
21117
|
+
right: window.innerWidth - centerRectRef.current.right,
|
|
21118
|
+
borderRight: state.panelOpen ? "1px solid var(--dsw-alias-border-l2)" : void 0,
|
|
21119
|
+
visibility: centerMeasured ? void 0 : "hidden"
|
|
21120
|
+
},
|
|
21121
|
+
"data-dragging": draggingBottom || draggingCorner || void 0,
|
|
21122
|
+
children: [
|
|
21123
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21124
|
+
className: clsx(sidebar_module_css_default.bottomResize, draggingBottom && sidebar_module_css_default.bottomResizeActive),
|
|
21125
|
+
onPointerDown: (event) => {
|
|
21126
|
+
event.preventDefault();
|
|
21127
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
21128
|
+
dragCommitted.current = false;
|
|
21129
|
+
bottomDrag.current = {
|
|
21130
|
+
startY: event.clientY,
|
|
21131
|
+
startHeight: state.bottomHeight
|
|
21132
|
+
};
|
|
21133
|
+
setDraggingBottom(true);
|
|
21134
|
+
},
|
|
21135
|
+
onPointerMove: (event) => {
|
|
21136
|
+
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21137
|
+
const { startY, startHeight } = bottomDrag.current;
|
|
21138
|
+
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21139
|
+
scheduleDrag(Math.min(state.width, window.innerWidth), height);
|
|
21140
|
+
},
|
|
21141
|
+
onPointerUp: (event) => {
|
|
21142
|
+
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21143
|
+
if (dragCommitted.current) return;
|
|
21144
|
+
dragCommitted.current = true;
|
|
21145
|
+
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
21146
|
+
const { startY, startHeight } = bottomDrag.current;
|
|
21147
|
+
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21148
|
+
commitDrag(Math.min(state.width, window.innerWidth), height, (s) => setBottomHeight(s, height));
|
|
21149
|
+
setDraggingBottom(false);
|
|
21150
|
+
},
|
|
21151
|
+
onPointerCancel: (event) => {
|
|
21152
|
+
abortDrag(() => setDraggingBottom(false), event);
|
|
21153
|
+
},
|
|
21154
|
+
onLostPointerCapture: () => {
|
|
21155
|
+
abortDrag(() => setDraggingBottom(false));
|
|
21156
|
+
}
|
|
21157
|
+
}),
|
|
21158
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
21159
|
+
label: t("collapseBottomPanel"),
|
|
21160
|
+
side: "bottom",
|
|
21161
|
+
delayMs: 500,
|
|
21162
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
21163
|
+
type: "button",
|
|
21164
|
+
className: sidebar_module_css_default.bottomClose,
|
|
21165
|
+
"aria-label": t("collapseBottomPanel"),
|
|
21166
|
+
onClick: () => {
|
|
21167
|
+
store.reduce(toggleBottomPanel);
|
|
21168
|
+
},
|
|
21169
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCloseFill14, {})
|
|
21170
|
+
})
|
|
21171
|
+
}),
|
|
21172
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21173
|
+
className: sidebar_module_css_default.panelBody,
|
|
21174
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Workbench, {
|
|
21175
|
+
state,
|
|
21176
|
+
tree: state.bottomSplits,
|
|
21177
|
+
newTabOptions: buildNewTabOptions(state, ctx, {
|
|
21178
|
+
sessionId,
|
|
21179
|
+
cwd
|
|
21180
|
+
}),
|
|
21181
|
+
actions,
|
|
21182
|
+
onNewTab,
|
|
21183
|
+
renderTab: (tab, active, paneId) => renderTab(tab, active, paneId, "bottom"),
|
|
21184
|
+
getTabIcon: tabIconOf,
|
|
21185
|
+
getTabBadge: tabBadgeOf
|
|
21186
|
+
})
|
|
21332
21187
|
})
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
|
|
21336
|
-
|
|
21188
|
+
]
|
|
21189
|
+
}),
|
|
21190
|
+
state.floats.map((float) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FreeWindow, {
|
|
21191
|
+
float,
|
|
21192
|
+
renderTab: (tab, active, paneId) => renderTab(tab, active, paneId, "float"),
|
|
21193
|
+
getTabIcon: tabIconOf,
|
|
21194
|
+
onRaise: () => {
|
|
21195
|
+
store.reduce((s) => raiseFloat(s, float.id));
|
|
21196
|
+
},
|
|
21197
|
+
onMove: (x, y) => {
|
|
21198
|
+
store.reduce((s) => moveFloat(s, float.id, x, y));
|
|
21199
|
+
},
|
|
21200
|
+
onResize: (w, h) => {
|
|
21201
|
+
store.reduce((s) => resizeFloat(s, float.id, w, h));
|
|
21202
|
+
},
|
|
21203
|
+
onDock: (paneId) => {
|
|
21204
|
+
store.reduce((s) => dockFloat(s, float.id, paneId ?? void 0));
|
|
21205
|
+
},
|
|
21206
|
+
onClose: () => {
|
|
21207
|
+
ctx.get("betterSidebar")?.closeTab(float.tab.id, sessionId === void 0 ? void 0 : {
|
|
21208
|
+
sessionId,
|
|
21209
|
+
cwd
|
|
21210
|
+
});
|
|
21211
|
+
}
|
|
21212
|
+
}, float.id)),
|
|
21213
|
+
floatHint !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21214
|
+
className: sidebar_module_css_default.floatDropHint,
|
|
21215
|
+
style: {
|
|
21216
|
+
left: floatHint.left,
|
|
21217
|
+
top: floatHint.top,
|
|
21218
|
+
width: floatHint.width,
|
|
21219
|
+
height: floatHint.height
|
|
21220
|
+
},
|
|
21221
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21222
|
+
className: sidebar_module_css_default.floatDropHintLabel,
|
|
21223
|
+
children: t("floatDropHint")
|
|
21224
|
+
})
|
|
21225
|
+
})
|
|
21226
|
+
]
|
|
21337
21227
|
});
|
|
21338
|
-
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
21345
|
-
|
|
21346
|
-
|
|
21347
|
-
const
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
|
|
21351
|
-
|
|
21352
|
-
|
|
21353
|
-
|
|
21354
|
-
|
|
21355
|
-
|
|
21356
|
-
|
|
21357
|
-
|
|
21228
|
+
}
|
|
21229
|
+
//#endregion
|
|
21230
|
+
//#region src/client/useChatcodeAccount.ts
|
|
21231
|
+
/** Browser lifecycle only; all account and credential decisions belong to the host service. */
|
|
21232
|
+
function useChatcodeAccount() {
|
|
21233
|
+
const [chatcode, setChatcode] = (0, react.useState)();
|
|
21234
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
21235
|
+
const [error, setError] = (0, react.useState)();
|
|
21236
|
+
const [loginUrl, setLoginUrl] = (0, react.useState)();
|
|
21237
|
+
const [revision, setRevision] = (0, react.useState)(0);
|
|
21238
|
+
const busyRef = (0, react.useRef)(false);
|
|
21239
|
+
const mounted = (0, react.useRef)(false);
|
|
21240
|
+
const request = (0, react.useRef)();
|
|
21241
|
+
const attempt = (0, react.useRef)();
|
|
21242
|
+
(0, react.useEffect)(() => {
|
|
21243
|
+
mounted.current = true;
|
|
21244
|
+
return () => {
|
|
21245
|
+
mounted.current = false;
|
|
21246
|
+
};
|
|
21247
|
+
}, []);
|
|
21248
|
+
(0, react.useEffect)(() => {
|
|
21249
|
+
const controller = new AbortController();
|
|
21250
|
+
request.current = controller;
|
|
21251
|
+
let timer;
|
|
21252
|
+
let running = false;
|
|
21253
|
+
const refresh = async () => {
|
|
21254
|
+
if (controller.signal.aborted || running || busyRef.current) return;
|
|
21255
|
+
clearTimeout(timer);
|
|
21256
|
+
running = true;
|
|
21257
|
+
try {
|
|
21258
|
+
const state = await api.chatcodeStatus(controller.signal);
|
|
21259
|
+
if (controller.signal.aborted) return;
|
|
21260
|
+
setChatcode(state);
|
|
21261
|
+
setError((current) => current === "status" ? void 0 : current);
|
|
21262
|
+
const local = attempt.current;
|
|
21263
|
+
if (local && state.login?.sessionId === local.sessionId && state.login.state === "succeeded" && state.validation === "valid") {
|
|
21264
|
+
try {
|
|
21265
|
+
local.popup?.close();
|
|
21266
|
+
window.focus();
|
|
21267
|
+
} catch {}
|
|
21268
|
+
attempt.current = void 0;
|
|
21269
|
+
setLoginUrl(void 0);
|
|
21270
|
+
} else if (local && (state.login?.sessionId !== local.sessionId || state.login.state !== "pending")) {
|
|
21271
|
+
try {
|
|
21272
|
+
local.popup?.close();
|
|
21273
|
+
} catch {}
|
|
21274
|
+
attempt.current = void 0;
|
|
21275
|
+
setLoginUrl(void 0);
|
|
21276
|
+
}
|
|
21277
|
+
} catch {
|
|
21278
|
+
if (!controller.signal.aborted) setError("status");
|
|
21279
|
+
} finally {
|
|
21280
|
+
running = false;
|
|
21281
|
+
if (!controller.signal.aborted) timer = setTimeout(() => {
|
|
21282
|
+
refresh();
|
|
21283
|
+
}, 2e3);
|
|
21284
|
+
}
|
|
21285
|
+
};
|
|
21286
|
+
refresh();
|
|
21287
|
+
const visible = () => {
|
|
21288
|
+
if (document.visibilityState === "visible") refresh();
|
|
21289
|
+
};
|
|
21290
|
+
const refreshNow = () => {
|
|
21291
|
+
refresh();
|
|
21292
|
+
};
|
|
21293
|
+
document.addEventListener("visibilitychange", visible);
|
|
21294
|
+
window.addEventListener("focus", refreshNow);
|
|
21295
|
+
window.addEventListener("online", refreshNow);
|
|
21296
|
+
return () => {
|
|
21297
|
+
controller.abort();
|
|
21298
|
+
clearTimeout(timer);
|
|
21299
|
+
document.removeEventListener("visibilitychange", visible);
|
|
21300
|
+
window.removeEventListener("focus", refreshNow);
|
|
21301
|
+
window.removeEventListener("online", refreshNow);
|
|
21302
|
+
};
|
|
21303
|
+
}, [revision]);
|
|
21304
|
+
const operate = (action) => {
|
|
21305
|
+
if (busyRef.current) return;
|
|
21306
|
+
busyRef.current = true;
|
|
21307
|
+
request.current?.abort();
|
|
21308
|
+
setBusy(true);
|
|
21309
|
+
setError(void 0);
|
|
21310
|
+
action().catch(() => {
|
|
21311
|
+
if (mounted.current) setError("operation");
|
|
21312
|
+
}).finally(() => {
|
|
21313
|
+
busyRef.current = false;
|
|
21314
|
+
if (mounted.current) {
|
|
21315
|
+
setBusy(false);
|
|
21316
|
+
setRevision((value) => value + 1);
|
|
21317
|
+
}
|
|
21358
21318
|
});
|
|
21359
21319
|
};
|
|
21360
|
-
|
|
21361
|
-
|
|
21362
|
-
|
|
21363
|
-
* ctx and the conversation input service at click time; a missing service
|
|
21364
|
-
* or scope degrades to a logged no-op, never a crash.
|
|
21365
|
-
*/
|
|
21366
|
-
/** The tab icon from the tab-type registry (shared by every workbench). */
|
|
21367
|
-
const tabIconOf = (tab) => {
|
|
21368
|
-
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
21369
|
-
if (descriptor === void 0) return null;
|
|
21370
|
-
return typeof descriptor.icon === "function" ? descriptor.icon(14) : descriptor.icon;
|
|
21371
|
-
};
|
|
21372
|
-
/**
|
|
21373
|
-
* The tab badge from the tab-type registry: a count (99+ capped) or a
|
|
21374
|
-
* short text pill. A throwing badge is swallowed (no pill) — the tab
|
|
21375
|
-
* strip must never break because a plugin's badge computation failed.
|
|
21376
|
-
*/
|
|
21377
|
-
const tabBadgeOf = (tab) => {
|
|
21378
|
-
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
21379
|
-
if (descriptor?.badge === void 0) return null;
|
|
21380
|
-
let value;
|
|
21320
|
+
const startLogin = () => {
|
|
21321
|
+
if (busyRef.current) return;
|
|
21322
|
+
let popup = null;
|
|
21381
21323
|
try {
|
|
21382
|
-
|
|
21383
|
-
|
|
21384
|
-
|
|
21385
|
-
|
|
21386
|
-
} catch (error) {
|
|
21387
|
-
console.error("[dsh-better-sidebar] tab badge error:", error);
|
|
21388
|
-
return null;
|
|
21324
|
+
popup = window.open("", "_blank");
|
|
21325
|
+
if (popup) popup.opener = null;
|
|
21326
|
+
} catch {
|
|
21327
|
+
popup = null;
|
|
21389
21328
|
}
|
|
21390
|
-
|
|
21391
|
-
|
|
21392
|
-
|
|
21393
|
-
|
|
21394
|
-
|
|
21395
|
-
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21403
|
-
|
|
21404
|
-
|
|
21405
|
-
|
|
21406
|
-
|
|
21407
|
-
|
|
21408
|
-
|
|
21409
|
-
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
|
|
21414
|
-
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
store.reduce((s) => openDiffTab(s, paneId, diffTab));
|
|
21424
|
-
},
|
|
21425
|
-
localeRevision,
|
|
21426
|
-
tabsVersion
|
|
21329
|
+
operate(async () => {
|
|
21330
|
+
try {
|
|
21331
|
+
const start = await api.chatcodeStart();
|
|
21332
|
+
if (!mounted.current) {
|
|
21333
|
+
popup?.close();
|
|
21334
|
+
return;
|
|
21335
|
+
}
|
|
21336
|
+
try {
|
|
21337
|
+
attempt.current?.popup?.close();
|
|
21338
|
+
} catch {}
|
|
21339
|
+
attempt.current = {
|
|
21340
|
+
sessionId: start.sessionId,
|
|
21341
|
+
popup
|
|
21342
|
+
};
|
|
21343
|
+
setLoginUrl(start.url);
|
|
21344
|
+
setChatcode((current) => ({
|
|
21345
|
+
...current,
|
|
21346
|
+
available: true,
|
|
21347
|
+
login: {
|
|
21348
|
+
sessionId: start.sessionId,
|
|
21349
|
+
state: "pending",
|
|
21350
|
+
expiresAtMs: 0
|
|
21351
|
+
}
|
|
21352
|
+
}));
|
|
21353
|
+
try {
|
|
21354
|
+
if (popup && !popup.closed) popup.location.href = start.url;
|
|
21355
|
+
} catch {}
|
|
21356
|
+
} catch (error) {
|
|
21357
|
+
try {
|
|
21358
|
+
popup?.close();
|
|
21359
|
+
} catch {}
|
|
21360
|
+
throw error;
|
|
21361
|
+
}
|
|
21427
21362
|
});
|
|
21428
21363
|
};
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21364
|
+
const logout = () => operate(async () => {
|
|
21365
|
+
await api.chatcodeLogout();
|
|
21366
|
+
if (!mounted.current) return;
|
|
21367
|
+
try {
|
|
21368
|
+
attempt.current?.popup?.close();
|
|
21369
|
+
} catch {}
|
|
21370
|
+
attempt.current = void 0;
|
|
21371
|
+
setLoginUrl(void 0);
|
|
21372
|
+
setChatcode({
|
|
21373
|
+
available: true,
|
|
21374
|
+
configured: false,
|
|
21375
|
+
expired: false,
|
|
21376
|
+
validation: "none"
|
|
21377
|
+
});
|
|
21378
|
+
});
|
|
21379
|
+
const cancelLogin = () => {
|
|
21380
|
+
const sessionId = chatcode?.login?.sessionId;
|
|
21381
|
+
if (sessionId) operate(async () => {
|
|
21382
|
+
await api.chatcodeCancel(sessionId);
|
|
21383
|
+
});
|
|
21384
|
+
};
|
|
21385
|
+
const refresh = () => {
|
|
21386
|
+
setRevision((value) => value + 1);
|
|
21387
|
+
};
|
|
21388
|
+
return {
|
|
21389
|
+
chatcode,
|
|
21390
|
+
busy,
|
|
21391
|
+
error,
|
|
21392
|
+
loginUrl,
|
|
21393
|
+
startLogin,
|
|
21394
|
+
logout,
|
|
21395
|
+
cancelLogin,
|
|
21396
|
+
refresh
|
|
21397
|
+
};
|
|
21398
|
+
}
|
|
21399
|
+
//#endregion
|
|
21400
|
+
//#region src/client/LogoutConfirmDialog.tsx
|
|
21401
|
+
/** Native modal supplies an inert background and default Cancel focus until a choice is made. */
|
|
21402
|
+
function LogoutConfirmDialog({ onCancel, onConfirm }) {
|
|
21403
|
+
const ref = (0, react.useRef)(null);
|
|
21404
|
+
const titleId = (0, react.useId)();
|
|
21405
|
+
const descriptionId = (0, react.useId)();
|
|
21406
|
+
(0, react.useEffect)(() => {
|
|
21407
|
+
const dialog = ref.current;
|
|
21408
|
+
dialog?.showModal();
|
|
21409
|
+
return () => {
|
|
21410
|
+
if (dialog?.open) dialog.close();
|
|
21411
|
+
};
|
|
21412
|
+
}, []);
|
|
21413
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dialog", {
|
|
21414
|
+
ref,
|
|
21415
|
+
className: sidebar_module_css_default.accountLogoutDialog,
|
|
21416
|
+
role: "alertdialog",
|
|
21417
|
+
"aria-modal": "true",
|
|
21418
|
+
"aria-labelledby": titleId,
|
|
21419
|
+
"aria-describedby": descriptionId,
|
|
21420
|
+
onCancel: (event) => {
|
|
21421
|
+
event.preventDefault();
|
|
21422
|
+
onCancel();
|
|
21423
|
+
},
|
|
21424
|
+
onKeyDown: (event) => {
|
|
21425
|
+
event.stopPropagation();
|
|
21426
|
+
},
|
|
21432
21427
|
children: [
|
|
21433
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
21434
|
-
|
|
21435
|
-
className:
|
|
21436
|
-
"
|
|
21437
|
-
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
|
|
21452
|
-
|
|
21453
|
-
|
|
21454
|
-
|
|
21455
|
-
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
21464
|
-
|
|
21465
|
-
|
|
21466
|
-
|
|
21467
|
-
|
|
21468
|
-
|
|
21469
|
-
|
|
21470
|
-
|
|
21471
|
-
|
|
21428
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
21429
|
+
id: titleId,
|
|
21430
|
+
className: sidebar_module_css_default.accountLogoutTitle,
|
|
21431
|
+
children: t("accountMenuLogoutConfirmTitle")
|
|
21432
|
+
}),
|
|
21433
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
21434
|
+
id: descriptionId,
|
|
21435
|
+
className: sidebar_module_css_default.accountLogoutDescription,
|
|
21436
|
+
children: t("accountMenuLogoutConfirmDescription")
|
|
21437
|
+
}),
|
|
21438
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21439
|
+
className: sidebar_module_css_default.accountLogoutActions,
|
|
21440
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
21441
|
+
type: "button",
|
|
21442
|
+
autoFocus: true,
|
|
21443
|
+
onClick: onCancel,
|
|
21444
|
+
children: t("cancel")
|
|
21445
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
21446
|
+
type: "button",
|
|
21447
|
+
className: sidebar_module_css_default.accountLogoutConfirm,
|
|
21448
|
+
onClick: onConfirm,
|
|
21449
|
+
children: t("accountMenuLogout")
|
|
21450
|
+
})]
|
|
21451
|
+
})
|
|
21452
|
+
]
|
|
21453
|
+
});
|
|
21454
|
+
}
|
|
21455
|
+
//#endregion
|
|
21456
|
+
//#region src/client/AccountMenu.tsx
|
|
21457
|
+
/**
|
|
21458
|
+
* Bottom-left account control.
|
|
21459
|
+
*
|
|
21460
|
+
* The settings.launcher slot supplies the shell-owned open callback. The
|
|
21461
|
+
* legacy DOM fallback is retained only for older embedders without that seat.
|
|
21462
|
+
*/
|
|
21463
|
+
const SETTINGS_LABELS = /* @__PURE__ */ new Set([
|
|
21464
|
+
"settings",
|
|
21465
|
+
"设置",
|
|
21466
|
+
"設定",
|
|
21467
|
+
"paramètres",
|
|
21468
|
+
"einstellungen",
|
|
21469
|
+
"impostazioni",
|
|
21470
|
+
"configurações",
|
|
21471
|
+
"instellingen",
|
|
21472
|
+
"inställningar",
|
|
21473
|
+
"ayarlar",
|
|
21474
|
+
"설정",
|
|
21475
|
+
"настройки"
|
|
21476
|
+
]);
|
|
21477
|
+
function nativeSettingsButton(except) {
|
|
21478
|
+
return [...document.querySelectorAll("button")].filter((button) => except === null || !except.contains(button)).filter((button) => {
|
|
21479
|
+
const text = `${button.getAttribute("aria-label") ?? ""} ${button.title} ${button.textContent ?? ""}`.trim().toLowerCase();
|
|
21480
|
+
if (![...SETTINGS_LABELS].some((label) => text === label || text.includes(label))) return false;
|
|
21481
|
+
const rect = button.getBoundingClientRect();
|
|
21482
|
+
return rect.left < window.innerWidth * .4 && rect.bottom > window.innerHeight - 120;
|
|
21483
|
+
}).sort((a, b) => b.getBoundingClientRect().bottom - a.getBoundingClientRect().bottom)[0];
|
|
21484
|
+
}
|
|
21485
|
+
/** Find the left navigation rail's usable width from the native launcher. */
|
|
21486
|
+
function railWidthOf(button) {
|
|
21487
|
+
let element = button?.parentElement ?? null;
|
|
21488
|
+
for (let depth = 0; element !== null && depth < 8; depth += 1, element = element.parentElement) {
|
|
21489
|
+
const rect = element.getBoundingClientRect();
|
|
21490
|
+
if (rect.left <= 8 && rect.width >= 160 && rect.width <= window.innerWidth * .5) return Math.round(rect.width);
|
|
21491
|
+
}
|
|
21492
|
+
}
|
|
21493
|
+
function LogoutIcon() {
|
|
21494
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
21495
|
+
width: "16",
|
|
21496
|
+
height: "16",
|
|
21497
|
+
viewBox: "0 0 16 16",
|
|
21498
|
+
fill: "none",
|
|
21499
|
+
"aria-hidden": "true",
|
|
21500
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
21501
|
+
d: "M6.5 2.5h-2A1.5 1.5 0 0 0 3 4v8a1.5 1.5 0 0 0 1.5 1.5h2M8 5l3 3-3 3M5.5 8h5",
|
|
21502
|
+
stroke: "currentColor",
|
|
21503
|
+
strokeWidth: "1.5",
|
|
21504
|
+
strokeLinecap: "round",
|
|
21505
|
+
strokeLinejoin: "round"
|
|
21506
|
+
})
|
|
21507
|
+
});
|
|
21508
|
+
}
|
|
21509
|
+
/** Settings glyph kept local so every account action shares the same SVG treatment. */
|
|
21510
|
+
function SettingsIcon() {
|
|
21511
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
21512
|
+
width: "16",
|
|
21513
|
+
height: "16",
|
|
21514
|
+
viewBox: "0 0 16 16",
|
|
21515
|
+
fill: "none",
|
|
21516
|
+
"aria-hidden": "true",
|
|
21517
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
21518
|
+
d: "M6.9 2.2h2.2l.35 1.28c.33.14.64.32.92.54l1.26-.38 1.1 1.9-.93.94c.03.17.05.35.05.54s-.02.37-.05.54l.93.94-1.1 1.9-1.26-.38c-.28.22-.59.4-.92.54L9.1 13.8H6.9l-.35-1.28a4.1 4.1 0 0 1-.92-.54l-1.26.38-1.1-1.9.93-.94a3.2 3.2 0 0 1 0-1.08l-.93-.94 1.1-1.9 1.26.38c.28-.22.59-.4.92-.54L6.9 2.2Z",
|
|
21519
|
+
stroke: "currentColor",
|
|
21520
|
+
strokeWidth: "1.25",
|
|
21521
|
+
strokeLinejoin: "round"
|
|
21522
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
21523
|
+
cx: "8",
|
|
21524
|
+
cy: "8",
|
|
21525
|
+
r: "1.75",
|
|
21526
|
+
stroke: "currentColor",
|
|
21527
|
+
strokeWidth: "1.25"
|
|
21528
|
+
})]
|
|
21529
|
+
});
|
|
21530
|
+
}
|
|
21531
|
+
/** Preserve the sidebar's existing browser-session exit when the optional ChatCode service is absent. */
|
|
21532
|
+
function logout() {
|
|
21533
|
+
for (const cookie of document.cookie.split(";")) {
|
|
21534
|
+
const name = cookie.split("=")[0]?.trim();
|
|
21535
|
+
if (name !== void 0 && name !== "") document.cookie = `${name}=; Max-Age=0; Path=/; SameSite=Lax`;
|
|
21536
|
+
}
|
|
21537
|
+
window.localStorage.clear();
|
|
21538
|
+
window.sessionStorage.clear();
|
|
21539
|
+
window.location.assign("/");
|
|
21540
|
+
}
|
|
21541
|
+
function AccountMenu({ openSettings: launchSettings, wide }) {
|
|
21542
|
+
const rootRef = (0, react.useRef)(null);
|
|
21543
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
21544
|
+
const [logoutTarget, setLogoutTarget] = (0, react.useState)();
|
|
21545
|
+
const [userName, setUserName] = (0, react.useState)("User");
|
|
21546
|
+
const { chatcode, busy, error, loginUrl, startLogin, logout: logoutChatcode, refresh } = useChatcodeAccount();
|
|
21547
|
+
(0, react.useEffect)(() => {
|
|
21548
|
+
let active = true;
|
|
21549
|
+
api.accountGet().then(({ userName: next }) => {
|
|
21550
|
+
if (active && next.trim() !== "") setUserName(next);
|
|
21551
|
+
}).catch(() => {});
|
|
21552
|
+
return () => {
|
|
21553
|
+
active = false;
|
|
21554
|
+
};
|
|
21555
|
+
}, []);
|
|
21556
|
+
(0, react.useEffect)(() => {
|
|
21557
|
+
const onPointerDown = (event) => {
|
|
21558
|
+
if (!rootRef.current?.contains(event.target)) setOpen(false);
|
|
21559
|
+
};
|
|
21560
|
+
document.addEventListener("pointerdown", onPointerDown);
|
|
21561
|
+
return () => {
|
|
21562
|
+
document.removeEventListener("pointerdown", onPointerDown);
|
|
21563
|
+
};
|
|
21564
|
+
}, []);
|
|
21565
|
+
(0, react.useEffect)(() => {
|
|
21566
|
+
if (launchSettings !== void 0) return;
|
|
21567
|
+
let current;
|
|
21568
|
+
let originalStyle;
|
|
21569
|
+
const sync = () => {
|
|
21570
|
+
const next = nativeSettingsButton(rootRef.current);
|
|
21571
|
+
const width = railWidthOf(next);
|
|
21572
|
+
if (width !== void 0) rootRef.current?.style.setProperty("--dsh-account-menu-width", `${width}px`);
|
|
21573
|
+
if (next === current) return;
|
|
21574
|
+
if (current !== void 0 && originalStyle !== void 0) current.style.cssText = originalStyle;
|
|
21575
|
+
current = next;
|
|
21576
|
+
originalStyle = current?.style.cssText;
|
|
21577
|
+
if (current !== void 0) current.style.visibility = "hidden";
|
|
21578
|
+
};
|
|
21579
|
+
sync();
|
|
21580
|
+
const observer = new MutationObserver(sync);
|
|
21581
|
+
observer.observe(document.body, {
|
|
21582
|
+
childList: true,
|
|
21583
|
+
subtree: true,
|
|
21584
|
+
characterData: true
|
|
21585
|
+
});
|
|
21586
|
+
return () => {
|
|
21587
|
+
observer.disconnect();
|
|
21588
|
+
if (current !== void 0 && originalStyle !== void 0) current.style.cssText = originalStyle;
|
|
21589
|
+
};
|
|
21590
|
+
}, [launchSettings]);
|
|
21591
|
+
const openSettings = () => {
|
|
21592
|
+
setOpen(false);
|
|
21593
|
+
if (launchSettings !== void 0) launchSettings();
|
|
21594
|
+
else nativeSettingsButton(rootRef.current)?.click();
|
|
21595
|
+
};
|
|
21596
|
+
const chatcodeName = chatcode?.userName?.trim() || chatcode?.emailAddress?.trim() || userName;
|
|
21597
|
+
const signedIn = chatcode?.validation === "valid" && chatcode.expired !== true;
|
|
21598
|
+
const showLoginFailure = !signedIn && (chatcode?.login?.state === "failed" || chatcode?.login?.state === "timed-out");
|
|
21599
|
+
const hasChatcodeAccount = chatcode?.available === true && chatcode.configured === true;
|
|
21600
|
+
const canStartChatcodeLogin = chatcode?.available === true && !hasChatcodeAccount && !(chatcode.configured === true && chatcode.validation === "unavailable");
|
|
21601
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21602
|
+
ref: rootRef,
|
|
21603
|
+
className: sidebar_module_css_default.accountMenu,
|
|
21604
|
+
"data-settings-launcher": launchSettings === void 0 ? void 0 : "",
|
|
21605
|
+
"data-rail": wide === false ? "" : void 0,
|
|
21606
|
+
children: [
|
|
21607
|
+
open && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21608
|
+
className: sidebar_module_css_default.accountDropdown,
|
|
21609
|
+
role: "menu",
|
|
21610
|
+
"aria-label": t("accountMenuLabel"),
|
|
21472
21611
|
children: [
|
|
21473
|
-
|
|
21474
|
-
|
|
21475
|
-
|
|
21476
|
-
|
|
21477
|
-
|
|
21478
|
-
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
},
|
|
21484
|
-
|
|
21485
|
-
|
|
21612
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21613
|
+
className: sidebar_module_css_default.accountDropdownHeader,
|
|
21614
|
+
children: [
|
|
21615
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21616
|
+
className: sidebar_module_css_default.accountAvatar,
|
|
21617
|
+
children: chatcodeName.slice(0, 1).toUpperCase()
|
|
21618
|
+
}),
|
|
21619
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21620
|
+
className: sidebar_module_css_default.accountName,
|
|
21621
|
+
children: chatcodeName
|
|
21622
|
+
}),
|
|
21623
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21624
|
+
className: sidebar_module_css_default.accountPresence,
|
|
21625
|
+
style: { opacity: signedIn ? 1 : .25 },
|
|
21626
|
+
"aria-hidden": "true"
|
|
21627
|
+
})
|
|
21628
|
+
]
|
|
21486
21629
|
}),
|
|
21487
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
21488
|
-
|
|
21489
|
-
|
|
21490
|
-
|
|
21491
|
-
|
|
21492
|
-
|
|
21493
|
-
|
|
21494
|
-
"aria-label": state.panelOpen ? t("collapse") : t("expand"),
|
|
21495
|
-
onClick: () => {
|
|
21496
|
-
store.reduce(togglePanel);
|
|
21497
|
-
},
|
|
21498
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelRightOutline16, {})
|
|
21499
|
-
})
|
|
21630
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: sidebar_module_css_default.accountMenuDivider }),
|
|
21631
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
21632
|
+
type: "button",
|
|
21633
|
+
role: "menuitem",
|
|
21634
|
+
className: sidebar_module_css_default.accountItem,
|
|
21635
|
+
onClick: openSettings,
|
|
21636
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsIcon, {}), t("accountMenuSettings")]
|
|
21500
21637
|
}),
|
|
21501
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
21502
|
-
|
|
21503
|
-
|
|
21504
|
-
|
|
21505
|
-
ref: panelRef,
|
|
21506
|
-
className: clsx(sidebar_module_css_default.panel, !state.panelOpen && sidebar_module_css_default.panelHidden),
|
|
21507
|
-
"data-dsh-panel": true,
|
|
21508
|
-
style: {
|
|
21509
|
-
width: narrow ? "100vw" : Math.min(state.width, window.innerWidth),
|
|
21510
|
-
bottom: narrow && keyboardInset > 0 ? `${keyboardInset}px` : void 0
|
|
21511
|
-
},
|
|
21512
|
-
"data-dragging": anyDragging || void 0,
|
|
21513
|
-
children: [
|
|
21514
|
-
!narrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21515
|
-
className: clsx(sidebar_module_css_default.panelResize, draggingWidth && sidebar_module_css_default.panelResizeActive),
|
|
21516
|
-
onPointerDown: (event) => {
|
|
21517
|
-
event.preventDefault();
|
|
21518
|
-
event.currentTarget.setPointerCapture(event.pointerId);
|
|
21519
|
-
dragCommitted.current = false;
|
|
21520
|
-
widthDrag.current = {
|
|
21521
|
-
startX: event.clientX,
|
|
21522
|
-
startWidth: state.width
|
|
21523
|
-
};
|
|
21524
|
-
setDraggingWidth(true);
|
|
21525
|
-
},
|
|
21526
|
-
onPointerMove: (event) => {
|
|
21527
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21528
|
-
const { startX, startWidth } = widthDrag.current;
|
|
21529
|
-
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21530
|
-
const height = pushedBottomHeight(state.bottomOpen, state.bottomHeight);
|
|
21531
|
-
scheduleDrag(width, height);
|
|
21532
|
-
},
|
|
21533
|
-
onPointerUp: (event) => {
|
|
21534
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21535
|
-
if (dragCommitted.current) return;
|
|
21536
|
-
dragCommitted.current = true;
|
|
21537
|
-
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
21538
|
-
const { startX, startWidth } = widthDrag.current;
|
|
21539
|
-
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21540
|
-
const height = pushedBottomHeight(state.bottomOpen, state.bottomHeight);
|
|
21541
|
-
commitDrag(width, height, (s) => setWidth(s, width));
|
|
21542
|
-
setDraggingWidth(false);
|
|
21543
|
-
},
|
|
21544
|
-
onPointerCancel: (event) => {
|
|
21545
|
-
abortDrag(() => setDraggingWidth(false), event);
|
|
21546
|
-
},
|
|
21547
|
-
onLostPointerCapture: () => {
|
|
21548
|
-
abortDrag(() => setDraggingWidth(false));
|
|
21549
|
-
}
|
|
21638
|
+
error === "operation" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21639
|
+
role: "alert",
|
|
21640
|
+
className: sidebar_module_css_default.accountItem,
|
|
21641
|
+
children: t("accountMenuChatcodeError")
|
|
21550
21642
|
}),
|
|
21551
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21552
|
-
|
|
21553
|
-
|
|
21554
|
-
|
|
21555
|
-
tree: augmentedTree,
|
|
21556
|
-
newTabOptions: buildNewTabOptions(state, ctx, {
|
|
21557
|
-
sessionId,
|
|
21558
|
-
cwd
|
|
21559
|
-
}),
|
|
21560
|
-
actions: wrappedActions,
|
|
21561
|
-
onNewTab,
|
|
21562
|
-
renderTab,
|
|
21563
|
-
getTabIcon: tabIconOf,
|
|
21564
|
-
getTabBadge: tabBadgeOf
|
|
21565
|
-
})
|
|
21643
|
+
showLoginFailure && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21644
|
+
role: "alert",
|
|
21645
|
+
className: sidebar_module_css_default.accountItem,
|
|
21646
|
+
children: t("accountMenuChatcodeRetry")
|
|
21566
21647
|
}),
|
|
21567
|
-
|
|
21568
|
-
|
|
21569
|
-
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
-
|
|
21574
|
-
|
|
21575
|
-
startX: event.clientX,
|
|
21576
|
-
startY: event.clientY,
|
|
21577
|
-
startWidth: state.width,
|
|
21578
|
-
startHeight: state.bottomHeight
|
|
21579
|
-
};
|
|
21580
|
-
setDraggingCorner(true);
|
|
21581
|
-
},
|
|
21582
|
-
onPointerMove: (event) => {
|
|
21583
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21584
|
-
const { startX, startY, startWidth, startHeight } = cornerDrag.current;
|
|
21585
|
-
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21586
|
-
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21587
|
-
scheduleDrag(width, height);
|
|
21588
|
-
},
|
|
21589
|
-
onPointerUp: (event) => {
|
|
21590
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21591
|
-
if (dragCommitted.current) return;
|
|
21592
|
-
dragCommitted.current = true;
|
|
21593
|
-
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
21594
|
-
const { startX, startY, startWidth, startHeight } = cornerDrag.current;
|
|
21595
|
-
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21596
|
-
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21597
|
-
commitDrag(width, height, (s) => setBottomHeight(setWidth(s, width), height));
|
|
21598
|
-
setDraggingCorner(false);
|
|
21599
|
-
},
|
|
21600
|
-
onPointerCancel: (event) => {
|
|
21601
|
-
abortDrag(() => setDraggingCorner(false), event);
|
|
21602
|
-
},
|
|
21603
|
-
onLostPointerCapture: () => {
|
|
21604
|
-
abortDrag(() => setDraggingCorner(false));
|
|
21605
|
-
}
|
|
21606
|
-
})
|
|
21607
|
-
]
|
|
21608
|
-
}),
|
|
21609
|
-
!narrow && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21610
|
-
ref: bottomRef,
|
|
21611
|
-
className: clsx(sidebar_module_css_default.bottomPanel, !state.bottomOpen && sidebar_module_css_default.bottomPanelHidden),
|
|
21612
|
-
"data-dsh-panel": true,
|
|
21613
|
-
"data-dsh-bottom-panel": true,
|
|
21614
|
-
style: {
|
|
21615
|
-
height: bottomPanelHeight,
|
|
21616
|
-
left: centerRectRef.current.left,
|
|
21617
|
-
bottom: keyboardInset > 0 ? `${keyboardInset}px` : void 0,
|
|
21618
|
-
right: window.innerWidth - centerRectRef.current.right,
|
|
21619
|
-
borderRight: state.panelOpen ? "1px solid var(--dsw-alias-border-l2)" : void 0,
|
|
21620
|
-
visibility: centerMeasured ? void 0 : "hidden"
|
|
21621
|
-
},
|
|
21622
|
-
"data-dragging": draggingBottom || draggingCorner || void 0,
|
|
21623
|
-
children: [
|
|
21624
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21625
|
-
className: clsx(sidebar_module_css_default.bottomResize, draggingBottom && sidebar_module_css_default.bottomResizeActive),
|
|
21626
|
-
onPointerDown: (event) => {
|
|
21627
|
-
event.preventDefault();
|
|
21628
|
-
event.currentTarget.setPointerCapture(event.pointerId);
|
|
21629
|
-
dragCommitted.current = false;
|
|
21630
|
-
bottomDrag.current = {
|
|
21631
|
-
startY: event.clientY,
|
|
21632
|
-
startHeight: state.bottomHeight
|
|
21633
|
-
};
|
|
21634
|
-
setDraggingBottom(true);
|
|
21635
|
-
},
|
|
21636
|
-
onPointerMove: (event) => {
|
|
21637
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21638
|
-
const { startY, startHeight } = bottomDrag.current;
|
|
21639
|
-
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21640
|
-
scheduleDrag(Math.min(state.width, window.innerWidth), height);
|
|
21648
|
+
loginUrl && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
21649
|
+
"data-dsh-external": "true",
|
|
21650
|
+
className: sidebar_module_css_default.accountItem,
|
|
21651
|
+
href: loginUrl,
|
|
21652
|
+
target: "_blank",
|
|
21653
|
+
rel: "noopener noreferrer",
|
|
21654
|
+
onClick: (event) => {
|
|
21655
|
+
event.stopPropagation();
|
|
21641
21656
|
},
|
|
21642
|
-
|
|
21643
|
-
|
|
21644
|
-
|
|
21645
|
-
|
|
21646
|
-
|
|
21647
|
-
|
|
21648
|
-
|
|
21649
|
-
|
|
21650
|
-
|
|
21657
|
+
children: t("accountMenuChatcodeOpen")
|
|
21658
|
+
}),
|
|
21659
|
+
chatcode?.available === true && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [canStartChatcodeLogin && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
21660
|
+
type: "button",
|
|
21661
|
+
role: "menuitem",
|
|
21662
|
+
className: sidebar_module_css_default.accountItem,
|
|
21663
|
+
disabled: busy,
|
|
21664
|
+
onClick: startLogin,
|
|
21665
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutIcon, {}), busy ? t("accountMenuChatcodeStarting") : t("accountMenuChatcodeLogin")]
|
|
21666
|
+
}), hasChatcodeAccount && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
21667
|
+
type: "button",
|
|
21668
|
+
role: "menuitem",
|
|
21669
|
+
className: sidebar_module_css_default.accountItem,
|
|
21670
|
+
disabled: busy,
|
|
21671
|
+
onClick: () => {
|
|
21672
|
+
setLogoutTarget("chatcode");
|
|
21651
21673
|
},
|
|
21652
|
-
|
|
21653
|
-
|
|
21674
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutIcon, {}), t("accountMenuLogout")]
|
|
21675
|
+
})] }),
|
|
21676
|
+
chatcode?.available === false && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
21677
|
+
type: "button",
|
|
21678
|
+
role: "menuitem",
|
|
21679
|
+
className: sidebar_module_css_default.accountItem,
|
|
21680
|
+
onClick: () => {
|
|
21681
|
+
setLogoutTarget("browser");
|
|
21654
21682
|
},
|
|
21655
|
-
|
|
21656
|
-
|
|
21657
|
-
|
|
21683
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutIcon, {}), t("accountMenuLogout")]
|
|
21684
|
+
})
|
|
21685
|
+
]
|
|
21686
|
+
}),
|
|
21687
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
21688
|
+
type: "button",
|
|
21689
|
+
className: sidebar_module_css_default.accountTrigger,
|
|
21690
|
+
"aria-expanded": open,
|
|
21691
|
+
"aria-haspopup": "menu",
|
|
21692
|
+
"aria-label": t("accountMenuLabel"),
|
|
21693
|
+
onClick: () => {
|
|
21694
|
+
if (!open) refresh();
|
|
21695
|
+
setOpen((value) => !value);
|
|
21696
|
+
},
|
|
21697
|
+
children: [
|
|
21698
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21699
|
+
className: sidebar_module_css_default.accountAvatar,
|
|
21700
|
+
children: chatcodeName.slice(0, 1).toUpperCase()
|
|
21658
21701
|
}),
|
|
21659
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
21660
|
-
|
|
21661
|
-
|
|
21662
|
-
delayMs: 500,
|
|
21663
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
21664
|
-
type: "button",
|
|
21665
|
-
className: sidebar_module_css_default.bottomClose,
|
|
21666
|
-
"aria-label": t("collapseBottomPanel"),
|
|
21667
|
-
onClick: () => {
|
|
21668
|
-
store.reduce(toggleBottomPanel);
|
|
21669
|
-
},
|
|
21670
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCloseFill14, {})
|
|
21671
|
-
})
|
|
21702
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21703
|
+
className: sidebar_module_css_default.accountName,
|
|
21704
|
+
children: chatcodeName
|
|
21672
21705
|
}),
|
|
21673
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
21674
|
-
className: sidebar_module_css_default.
|
|
21675
|
-
|
|
21676
|
-
|
|
21677
|
-
tree: state.bottomSplits,
|
|
21678
|
-
newTabOptions: buildNewTabOptions(state, ctx, {
|
|
21679
|
-
sessionId,
|
|
21680
|
-
cwd
|
|
21681
|
-
}),
|
|
21682
|
-
actions,
|
|
21683
|
-
onNewTab,
|
|
21684
|
-
renderTab: (tab, active, paneId) => renderTab(tab, active, paneId, "bottom"),
|
|
21685
|
-
getTabIcon: tabIconOf,
|
|
21686
|
-
getTabBadge: tabBadgeOf
|
|
21687
|
-
})
|
|
21706
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21707
|
+
className: sidebar_module_css_default.accountPresence,
|
|
21708
|
+
style: { opacity: signedIn ? 1 : .25 },
|
|
21709
|
+
"aria-hidden": "true"
|
|
21688
21710
|
})
|
|
21689
21711
|
]
|
|
21690
21712
|
}),
|
|
21691
|
-
|
|
21692
|
-
|
|
21693
|
-
|
|
21694
|
-
getTabIcon: tabIconOf,
|
|
21695
|
-
onRaise: () => {
|
|
21696
|
-
store.reduce((s) => raiseFloat(s, float.id));
|
|
21697
|
-
},
|
|
21698
|
-
onMove: (x, y) => {
|
|
21699
|
-
store.reduce((s) => moveFloat(s, float.id, x, y));
|
|
21700
|
-
},
|
|
21701
|
-
onResize: (w, h) => {
|
|
21702
|
-
store.reduce((s) => resizeFloat(s, float.id, w, h));
|
|
21703
|
-
},
|
|
21704
|
-
onDock: (paneId) => {
|
|
21705
|
-
store.reduce((s) => dockFloat(s, float.id, paneId ?? void 0));
|
|
21713
|
+
logoutTarget !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutConfirmDialog, {
|
|
21714
|
+
onCancel: () => {
|
|
21715
|
+
setLogoutTarget(void 0);
|
|
21706
21716
|
},
|
|
21707
|
-
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
});
|
|
21717
|
+
onConfirm: () => {
|
|
21718
|
+
setLogoutTarget(void 0);
|
|
21719
|
+
if (logoutTarget === "chatcode") logoutChatcode();
|
|
21720
|
+
else logout();
|
|
21712
21721
|
}
|
|
21713
|
-
}, float.id)),
|
|
21714
|
-
floatHint !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21715
|
-
className: sidebar_module_css_default.floatDropHint,
|
|
21716
|
-
style: {
|
|
21717
|
-
left: floatHint.left,
|
|
21718
|
-
top: floatHint.top,
|
|
21719
|
-
width: floatHint.width,
|
|
21720
|
-
height: floatHint.height
|
|
21721
|
-
},
|
|
21722
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21723
|
-
className: sidebar_module_css_default.floatDropHintLabel,
|
|
21724
|
-
children: t("floatDropHint")
|
|
21725
|
-
})
|
|
21726
21722
|
})
|
|
21727
21723
|
]
|
|
21728
21724
|
});
|
|
21729
21725
|
}
|
|
21730
21726
|
//#endregion
|
|
21727
|
+
//#region src/client/chatcode-login-route.ts
|
|
21728
|
+
/** Build the local ChatCode login gate URL while preserving the current page. */
|
|
21729
|
+
function chatcodeLoginRoute(location) {
|
|
21730
|
+
const back = `${location.pathname}${location.search}${location.hash}`;
|
|
21731
|
+
return `/sidebar/login?return=${encodeURIComponent(back)}`;
|
|
21732
|
+
}
|
|
21733
|
+
/** Enter the existing local login flow after account state cannot be read. */
|
|
21734
|
+
function redirectToChatcodeLogin(location = window.location) {
|
|
21735
|
+
if (location.pathname === "/sidebar/login") return;
|
|
21736
|
+
location.replace(chatcodeLoginRoute(location));
|
|
21737
|
+
}
|
|
21738
|
+
//#endregion
|
|
21731
21739
|
//#region src/client/ChatcodeGate.tsx
|
|
21732
21740
|
/** Mandatory Web sign-in surface. The host remains the authority for every decision. */
|
|
21733
21741
|
/** Decide whether this browser visit has enough verified ChatCode state to enter the workbench. */
|
|
@@ -21999,40 +22007,6 @@ window.__ModuleLoader__.load({
|
|
|
21999
22007
|
const PLUGIN_MARKET_NAV_MARKER = "data-dsh-better-sidebar-plugin-market-nav";
|
|
22000
22008
|
const UI_TWEAKS_NAV_MARKER = "data-dsh-better-sidebar-ui-tweaks-nav";
|
|
22001
22009
|
const SKILL_MARKET_NAV_MARKER = "data-dsh-better-sidebar-skill-market-nav";
|
|
22002
|
-
/**
|
|
22003
|
-
* Keep the marker on the settings-nav button whose visible text is this
|
|
22004
|
-
* plugin's current localized section label.
|
|
22005
|
-
* @param label - locale-aware label resolver used by the section registration.
|
|
22006
|
-
* @param marker - the marker attribute this registration owns (each icon gets
|
|
22007
|
-
* its own so several sections can mark their rows without stripping each
|
|
22008
|
-
* other's markers).
|
|
22009
|
-
* @returns disposer that disconnects observation and removes owned markers.
|
|
22010
|
-
*/
|
|
22011
|
-
function registerSettingsNavIcon(label, marker = SETTINGS_NAV_MARKER) {
|
|
22012
|
-
let disposed = false;
|
|
22013
|
-
const sync = () => {
|
|
22014
|
-
if (disposed) return;
|
|
22015
|
-
const resolved = label();
|
|
22016
|
-
const currentLabels = new Set((typeof resolved === "string" ? [resolved] : resolved).map((value) => value.trim()).filter(Boolean));
|
|
22017
|
-
const buttons = document.querySelectorAll("[role=\"dialog\"] nav button");
|
|
22018
|
-
for (const button of buttons) if (currentLabels.has(button.textContent?.trim() ?? "")) button.setAttribute(marker, "");
|
|
22019
|
-
else button.removeAttribute(marker);
|
|
22020
|
-
};
|
|
22021
|
-
sync();
|
|
22022
|
-
const observer = new MutationObserver(sync);
|
|
22023
|
-
observer.observe(document.body, {
|
|
22024
|
-
childList: true,
|
|
22025
|
-
subtree: true,
|
|
22026
|
-
characterData: true
|
|
22027
|
-
});
|
|
22028
|
-
return () => {
|
|
22029
|
-
disposed = true;
|
|
22030
|
-
observer.disconnect();
|
|
22031
|
-
document.querySelectorAll(`[${marker}]`).forEach((element) => {
|
|
22032
|
-
element.removeAttribute(marker);
|
|
22033
|
-
});
|
|
22034
|
-
};
|
|
22035
|
-
}
|
|
22036
22010
|
//#endregion
|
|
22037
22011
|
//#region src/client/session-pins.tsx
|
|
22038
22012
|
/**
|
|
@@ -23851,48 +23825,48 @@ window.__ModuleLoader__.load({
|
|
|
23851
23825
|
document.head.appendChild(tag);
|
|
23852
23826
|
}
|
|
23853
23827
|
var UsageHeatmapSection_module_css_default = {
|
|
23854
|
-
"
|
|
23855
|
-
"
|
|
23856
|
-
"
|
|
23857
|
-
"cellToday": "RkD2KW_cellToday",
|
|
23858
|
-
"totalValue": "RkD2KW_totalValue",
|
|
23859
|
-
"stats": "RkD2KW_stats",
|
|
23860
|
-
"monthNav": "RkD2KW_monthNav",
|
|
23861
|
-
"gridBody": "RkD2KW_gridBody",
|
|
23862
|
-
"cell": "RkD2KW_cell",
|
|
23863
|
-
"monthLabel": "RkD2KW_monthLabel",
|
|
23864
|
-
"total": "RkD2KW_total",
|
|
23828
|
+
"totalNumber": "RkD2KW_totalNumber",
|
|
23829
|
+
"tooltipTokens": "RkD2KW_tooltipTokens",
|
|
23830
|
+
"spin": "RkD2KW_spin",
|
|
23865
23831
|
"dshSidebarUsageSpin": "RkD2KW_dshSidebarUsageSpin",
|
|
23866
23832
|
"stateError": "RkD2KW_stateError",
|
|
23833
|
+
"state": "RkD2KW_state",
|
|
23834
|
+
"refreshButton": "RkD2KW_refreshButton",
|
|
23835
|
+
"monthLabel": "RkD2KW_monthLabel",
|
|
23867
23836
|
"footer": "RkD2KW_footer",
|
|
23868
|
-
"
|
|
23869
|
-
"
|
|
23837
|
+
"overview": "RkD2KW_overview",
|
|
23838
|
+
"cell": "RkD2KW_cell",
|
|
23839
|
+
"todayDot": "RkD2KW_todayDot",
|
|
23840
|
+
"cellHover": "RkD2KW_cellHover",
|
|
23841
|
+
"tooltipDate": "RkD2KW_tooltipDate",
|
|
23842
|
+
"totalUnit": "RkD2KW_totalUnit",
|
|
23843
|
+
"empty": "RkD2KW_empty",
|
|
23870
23844
|
"group": "RkD2KW_group",
|
|
23871
|
-
"tooltipTokens": "RkD2KW_tooltipTokens",
|
|
23872
23845
|
"legend": "RkD2KW_legend",
|
|
23873
|
-
"
|
|
23846
|
+
"stats": "RkD2KW_stats",
|
|
23847
|
+
"cellToday": "RkD2KW_cellToday",
|
|
23848
|
+
"statValue": "RkD2KW_statValue",
|
|
23849
|
+
"monthButton": "RkD2KW_monthButton",
|
|
23874
23850
|
"tooltipToday": "RkD2KW_tooltipToday",
|
|
23875
23851
|
"todayLabel": "RkD2KW_todayLabel",
|
|
23876
|
-
"
|
|
23877
|
-
"
|
|
23878
|
-
"
|
|
23879
|
-
"
|
|
23880
|
-
"
|
|
23852
|
+
"gridBody": "RkD2KW_gridBody",
|
|
23853
|
+
"stat": "RkD2KW_stat",
|
|
23854
|
+
"cellTokens": "RkD2KW_cellTokens",
|
|
23855
|
+
"cellFuture": "RkD2KW_cellFuture",
|
|
23856
|
+
"monthNav": "RkD2KW_monthNav",
|
|
23857
|
+
"cellDay": "RkD2KW_cellDay",
|
|
23881
23858
|
"tooltip": "RkD2KW_tooltip",
|
|
23882
|
-
"
|
|
23883
|
-
"
|
|
23859
|
+
"headerRow": "RkD2KW_headerRow",
|
|
23860
|
+
"total": "RkD2KW_total",
|
|
23884
23861
|
"retry": "RkD2KW_retry",
|
|
23885
|
-
"
|
|
23886
|
-
"
|
|
23887
|
-
"
|
|
23862
|
+
"tooltipSplit": "RkD2KW_tooltipSplit",
|
|
23863
|
+
"totalValue": "RkD2KW_totalValue",
|
|
23864
|
+
"section": "RkD2KW_section",
|
|
23865
|
+
"statLabel": "RkD2KW_statLabel",
|
|
23866
|
+
"grid": "RkD2KW_grid",
|
|
23888
23867
|
"legendSwatch": "RkD2KW_legendSwatch",
|
|
23889
|
-
"
|
|
23890
|
-
"
|
|
23891
|
-
"headerRow": "RkD2KW_headerRow",
|
|
23892
|
-
"cellTokens": "RkD2KW_cellTokens",
|
|
23893
|
-
"todayDot": "RkD2KW_todayDot",
|
|
23894
|
-
"stat": "RkD2KW_stat",
|
|
23895
|
-
"statLabel": "RkD2KW_statLabel"
|
|
23868
|
+
"tooltipBelow": "RkD2KW_tooltipBelow",
|
|
23869
|
+
"weekdays": "RkD2KW_weekdays"
|
|
23896
23870
|
};
|
|
23897
23871
|
//#endregion
|
|
23898
23872
|
//#region src/client/UsageHeatmapSection.tsx
|
|
@@ -24268,34 +24242,34 @@ window.__ModuleLoader__.load({
|
|
|
24268
24242
|
document.head.appendChild(tag);
|
|
24269
24243
|
}
|
|
24270
24244
|
var AiRatioSection_module_css_default = {
|
|
24271
|
-
"
|
|
24245
|
+
"dash": "WM1Ima_dash",
|
|
24246
|
+
"overview": "WM1Ima_overview",
|
|
24272
24247
|
"primaryButton": "WM1Ima_primaryButton",
|
|
24248
|
+
"tableHeading": "WM1Ima_tableHeading",
|
|
24249
|
+
"tableWrap": "WM1Ima_tableWrap",
|
|
24250
|
+
"aiValue": "WM1Ima_aiValue",
|
|
24273
24251
|
"pager": "WM1Ima_pager",
|
|
24274
|
-
"
|
|
24275
|
-
"dateCell": "WM1Ima_dateCell",
|
|
24276
|
-
"table": "WM1Ima_table",
|
|
24277
|
-
"stateError": "WM1Ima_stateError",
|
|
24278
|
-
"state": "WM1Ima_state",
|
|
24252
|
+
"dateInput": "WM1Ima_dateInput",
|
|
24279
24253
|
"pageInfo": "WM1Ima_pageInfo",
|
|
24254
|
+
"stateError": "WM1Ima_stateError",
|
|
24280
24255
|
"exportButton": "WM1Ima_exportButton",
|
|
24256
|
+
"num": "WM1Ima_num",
|
|
24257
|
+
"ratioBar": "WM1Ima_ratioBar",
|
|
24258
|
+
"dateCell": "WM1Ima_dateCell",
|
|
24259
|
+
"card": "WM1Ima_card",
|
|
24260
|
+
"table": "WM1Ima_table",
|
|
24281
24261
|
"ratioCardHigh": "WM1Ima_ratioCardHigh",
|
|
24282
|
-
"
|
|
24283
|
-
"dateInput": "WM1Ima_dateInput",
|
|
24284
|
-
"overview": "WM1Ima_overview",
|
|
24262
|
+
"cardValue": "WM1Ima_cardValue",
|
|
24285
24263
|
"addedValue": "WM1Ima_addedValue",
|
|
24264
|
+
"cardLabel": "WM1Ima_cardLabel",
|
|
24265
|
+
"state": "WM1Ima_state",
|
|
24266
|
+
"cardRatio": "WM1Ima_cardRatio",
|
|
24267
|
+
"adoptedValue": "WM1Ima_adoptedValue",
|
|
24286
24268
|
"ratioCardLow": "WM1Ima_ratioCardLow",
|
|
24287
|
-
"
|
|
24288
|
-
"cardValue": "WM1Ima_cardValue",
|
|
24269
|
+
"ratioValue": "WM1Ima_ratioValue",
|
|
24289
24270
|
"section": "WM1Ima_section",
|
|
24290
|
-
"cardLabel": "WM1Ima_cardLabel",
|
|
24291
24271
|
"queryRow": "WM1Ima_queryRow",
|
|
24292
|
-
"
|
|
24293
|
-
"card": "WM1Ima_card",
|
|
24294
|
-
"dash": "WM1Ima_dash",
|
|
24295
|
-
"adoptedValue": "WM1Ima_adoptedValue",
|
|
24296
|
-
"num": "WM1Ima_num",
|
|
24297
|
-
"aiValue": "WM1Ima_aiValue",
|
|
24298
|
-
"ratioValue": "WM1Ima_ratioValue"
|
|
24272
|
+
"commitsValue": "WM1Ima_commitsValue"
|
|
24299
24273
|
};
|
|
24300
24274
|
//#endregion
|
|
24301
24275
|
//#region src/client/AiRatioSection.tsx
|
|
@@ -29167,7 +29141,7 @@ to{transform:translateX(-8px)}
|
|
|
29167
29141
|
const subscribe = (0, react.useMemo)(() => list.subscribe.bind(list), [list]);
|
|
29168
29142
|
const running = (0, react.useSyncExternalStore)(subscribe, () => {
|
|
29169
29143
|
const snapshot = list.getSnapshot();
|
|
29170
|
-
const id = sessionId
|
|
29144
|
+
const id = sessionId;
|
|
29171
29145
|
return id !== void 0 && (snapshot.byId[id]?.running ?? false);
|
|
29172
29146
|
}, () => false);
|
|
29173
29147
|
const submitting = input.phase === "claimed" || input.phase === "submitting";
|
|
@@ -29323,7 +29297,7 @@ to{transform:translateX(-8px)}
|
|
|
29323
29297
|
];
|
|
29324
29298
|
/** Narrow the extensible host interaction roster to the notification copy we own. */
|
|
29325
29299
|
function pendingKind(snapshot, sessionId) {
|
|
29326
|
-
switch (snapshot.get(sessionId)?.kind) {
|
|
29300
|
+
switch (snapshot.get(sessionId)?.pendingInteraction?.kind) {
|
|
29327
29301
|
case "approval": return "approval";
|
|
29328
29302
|
case "plan-review": return "plan-review";
|
|
29329
29303
|
case "question": return "question";
|
|
@@ -29445,7 +29419,7 @@ to{transform:translateX(-8px)}
|
|
|
29445
29419
|
* @returns disposer — unsubscribes, restores the tab title and tears the channels down.
|
|
29446
29420
|
*/
|
|
29447
29421
|
function installTaskNotifier(input) {
|
|
29448
|
-
const { sessionsService,
|
|
29422
|
+
const { sessionsService, sessionStatus, openSession, text, readState } = input;
|
|
29449
29423
|
const list = sessionsService.list;
|
|
29450
29424
|
const watch = /* @__PURE__ */ new Map();
|
|
29451
29425
|
const lastFired = /* @__PURE__ */ new Map();
|
|
@@ -29497,7 +29471,7 @@ to{transform:translateX(-8px)}
|
|
|
29497
29471
|
window.focus();
|
|
29498
29472
|
} catch {}
|
|
29499
29473
|
try {
|
|
29500
|
-
|
|
29474
|
+
openSession(sessionId);
|
|
29501
29475
|
} catch {}
|
|
29502
29476
|
n.close();
|
|
29503
29477
|
};
|
|
@@ -29520,14 +29494,14 @@ to{transform:translateX(-8px)}
|
|
|
29520
29494
|
/** Seed the watch map without firing: fresh installs and reloads stay quiet. */
|
|
29521
29495
|
const armBaseline = () => {
|
|
29522
29496
|
watch.clear();
|
|
29523
|
-
const interactions =
|
|
29497
|
+
const interactions = sessionStatus.getSnapshot();
|
|
29524
29498
|
for (const row of Object.values(list.getSnapshot().byId)) {
|
|
29525
29499
|
if (row.parentId !== void 0 || row.blank) continue;
|
|
29526
29500
|
const outcome = row.projectionValues?.[TURN_OUTCOME_KEY] ?? void 0;
|
|
29527
29501
|
watch.set(row.id, {
|
|
29528
29502
|
running: row.running,
|
|
29529
29503
|
pending: pendingKind(interactions, row.id),
|
|
29530
|
-
completed: row.
|
|
29504
|
+
completed: interactions.get(row.id)?.completionUnread === true,
|
|
29531
29505
|
outcome
|
|
29532
29506
|
});
|
|
29533
29507
|
}
|
|
@@ -29537,7 +29511,7 @@ to{transform:translateX(-8px)}
|
|
|
29537
29511
|
const deliverable = !options.onlyWhenHidden || !visibleAndFocused();
|
|
29538
29512
|
const now = Date.now();
|
|
29539
29513
|
const snap = list.getSnapshot();
|
|
29540
|
-
const interactions =
|
|
29514
|
+
const interactions = sessionStatus.getSnapshot();
|
|
29541
29515
|
const seen = /* @__PURE__ */ new Set();
|
|
29542
29516
|
for (const row of Object.values(snap.byId)) {
|
|
29543
29517
|
if (row.parentId !== void 0 || row.blank) continue;
|
|
@@ -29548,7 +29522,7 @@ to{transform:translateX(-8px)}
|
|
|
29548
29522
|
watch.set(row.id, {
|
|
29549
29523
|
running: row.running,
|
|
29550
29524
|
pending,
|
|
29551
|
-
completed: row.
|
|
29525
|
+
completed: interactions.get(row.id)?.completionUnread === true,
|
|
29552
29526
|
outcome
|
|
29553
29527
|
});
|
|
29554
29528
|
if (prev === void 0) continue;
|
|
@@ -29557,7 +29531,7 @@ to{transform:translateX(-8px)}
|
|
|
29557
29531
|
continue;
|
|
29558
29532
|
}
|
|
29559
29533
|
const finished = prev.running && !row.running && pending === void 0;
|
|
29560
|
-
const completedReminder = !prev.completed && row.
|
|
29534
|
+
const completedReminder = !prev.completed && interactions.get(row.id)?.completionUnread === true;
|
|
29561
29535
|
if (finished || completedReminder) {
|
|
29562
29536
|
let shouldFire = finished;
|
|
29563
29537
|
if (!shouldFire) shouldFire = TERMINAL_KINDS.every((kind) => {
|
|
@@ -29574,7 +29548,7 @@ to{transform:translateX(-8px)}
|
|
|
29574
29548
|
};
|
|
29575
29549
|
armBaseline();
|
|
29576
29550
|
const disposeFeed = list.subscribe(check);
|
|
29577
|
-
const disposeInteractions =
|
|
29551
|
+
const disposeInteractions = sessionStatus.subscribe(check);
|
|
29578
29552
|
return () => {
|
|
29579
29553
|
disposeFeed();
|
|
29580
29554
|
disposeInteractions();
|
|
@@ -30610,13 +30584,23 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30610
30584
|
style.remove();
|
|
30611
30585
|
};
|
|
30612
30586
|
}
|
|
30587
|
+
var SettingsRequestError = class extends Error {
|
|
30588
|
+
code;
|
|
30589
|
+
constructor(code, message) {
|
|
30590
|
+
super(message);
|
|
30591
|
+
this.code = code;
|
|
30592
|
+
}
|
|
30593
|
+
};
|
|
30613
30594
|
async function apiRequest(init) {
|
|
30614
30595
|
const response = await fetch(SETTINGS_ROUTE, {
|
|
30615
30596
|
credentials: "same-origin",
|
|
30616
30597
|
...init
|
|
30617
30598
|
});
|
|
30618
30599
|
const body = await response.json();
|
|
30619
|
-
if (!response.ok || !body.ok)
|
|
30600
|
+
if (!response.ok || !body.ok) {
|
|
30601
|
+
const failure = body;
|
|
30602
|
+
throw new SettingsRequestError(failure.error?.code ?? "request-failed", failure.error?.message ?? `UI Tweaks request failed with HTTP ${response.status}`);
|
|
30603
|
+
}
|
|
30620
30604
|
return body.value;
|
|
30621
30605
|
}
|
|
30622
30606
|
/** Small external store shared by the Settings route and the CSS engine. */
|
|
@@ -30629,6 +30613,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30629
30613
|
};
|
|
30630
30614
|
listeners = /* @__PURE__ */ new Set();
|
|
30631
30615
|
generation = 0;
|
|
30616
|
+
writes = Promise.resolve();
|
|
30632
30617
|
subscribe = (listener) => {
|
|
30633
30618
|
this.listeners.add(listener);
|
|
30634
30619
|
return () => {
|
|
@@ -30664,35 +30649,56 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30664
30649
|
});
|
|
30665
30650
|
}
|
|
30666
30651
|
}
|
|
30667
|
-
|
|
30668
|
-
const
|
|
30669
|
-
|
|
30670
|
-
|
|
30671
|
-
|
|
30672
|
-
|
|
30673
|
-
|
|
30674
|
-
|
|
30675
|
-
|
|
30676
|
-
|
|
30677
|
-
|
|
30678
|
-
|
|
30679
|
-
|
|
30652
|
+
post(payload) {
|
|
30653
|
+
const write = this.writes.then(async () => {
|
|
30654
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
30655
|
+
++this.generation;
|
|
30656
|
+
try {
|
|
30657
|
+
const snapshot = await apiRequest({
|
|
30658
|
+
method: "POST",
|
|
30659
|
+
headers: { "Content-Type": "application/json" },
|
|
30660
|
+
body: JSON.stringify({
|
|
30661
|
+
...payload(),
|
|
30662
|
+
expectedRevision: this.state.revision ?? 0
|
|
30663
|
+
})
|
|
30664
|
+
});
|
|
30665
|
+
++this.generation;
|
|
30666
|
+
this.publish({
|
|
30667
|
+
status: "ready",
|
|
30668
|
+
writable: snapshot.writable,
|
|
30669
|
+
value: snapshot.value,
|
|
30670
|
+
revision: snapshot.revision
|
|
30671
|
+
});
|
|
30672
|
+
return;
|
|
30673
|
+
} catch (error) {
|
|
30674
|
+
if (!(error instanceof SettingsRequestError) || error.code !== "settings-conflict" || attempt > 0) throw error;
|
|
30675
|
+
await this.load();
|
|
30676
|
+
if (this.state.status !== "ready") throw new Error(this.state.error ?? "UI Tweaks settings could not be refreshed");
|
|
30677
|
+
}
|
|
30678
|
+
}
|
|
30680
30679
|
});
|
|
30680
|
+
this.writes = write.catch(() => {});
|
|
30681
|
+
return write;
|
|
30681
30682
|
}
|
|
30682
30683
|
async set(field, value) {
|
|
30683
|
-
await this.post({
|
|
30684
|
+
await this.post(() => ({
|
|
30684
30685
|
action: "set",
|
|
30685
30686
|
field,
|
|
30686
|
-
value
|
|
30687
|
-
|
|
30688
|
-
});
|
|
30687
|
+
value
|
|
30688
|
+
}));
|
|
30689
30689
|
}
|
|
30690
30690
|
async unset(field) {
|
|
30691
|
-
await this.post({
|
|
30691
|
+
await this.post(() => ({
|
|
30692
30692
|
action: "unset",
|
|
30693
|
+
field
|
|
30694
|
+
}));
|
|
30695
|
+
}
|
|
30696
|
+
async step(field, delta, minimum, maximum) {
|
|
30697
|
+
await this.post(() => ({
|
|
30698
|
+
action: "set",
|
|
30693
30699
|
field,
|
|
30694
|
-
|
|
30695
|
-
});
|
|
30700
|
+
value: Math.min(maximum, Math.max(minimum, resolveValue(this.state.value)[field] + delta))
|
|
30701
|
+
}));
|
|
30696
30702
|
}
|
|
30697
30703
|
};
|
|
30698
30704
|
/**
|
|
@@ -30831,7 +30837,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30831
30837
|
const stepFontSize = (delta) => {
|
|
30832
30838
|
const next = Math.min(MAX_FONT_SIZE, Math.max(MIN_FONT_SIZE, resolved.fontSize + delta));
|
|
30833
30839
|
setDraft(String(next));
|
|
30834
|
-
controller.
|
|
30840
|
+
controller.step("fontSize", delta, MIN_FONT_SIZE, MAX_FONT_SIZE).then(() => {
|
|
30835
30841
|
setStatus("applied");
|
|
30836
30842
|
}).catch(() => {
|
|
30837
30843
|
setStatus("unavailable");
|
|
@@ -30840,7 +30846,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30840
30846
|
const stepLineHeight = (delta) => {
|
|
30841
30847
|
const next = Math.min(MAX_LINE_HEIGHT, Math.max(MIN_LINE_HEIGHT, resolved.lineHeight + delta));
|
|
30842
30848
|
setLineHeightDraft(String(next));
|
|
30843
|
-
controller.
|
|
30849
|
+
controller.step("lineHeight", delta, MIN_LINE_HEIGHT, MAX_LINE_HEIGHT).then(() => {
|
|
30844
30850
|
setStatus("applied");
|
|
30845
30851
|
}).catch(() => {
|
|
30846
30852
|
setStatus("unavailable");
|
|
@@ -30849,7 +30855,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30849
30855
|
const stepCodeSize = (delta) => {
|
|
30850
30856
|
const next = Math.min(MAX_CODE_FONT_SIZE, Math.max(MIN_CODE_FONT_SIZE, resolved.codeFontSize + delta));
|
|
30851
30857
|
setCodeDraft(String(next));
|
|
30852
|
-
controller.
|
|
30858
|
+
controller.step("codeFontSize", delta, MIN_CODE_FONT_SIZE, MAX_CODE_FONT_SIZE).then(() => {
|
|
30853
30859
|
setStatus("applied");
|
|
30854
30860
|
}).catch(() => {
|
|
30855
30861
|
setStatus("unavailable");
|
|
@@ -31695,7 +31701,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
31695
31701
|
const t = ctx.locale.bind(NS);
|
|
31696
31702
|
return ctx.commandUi.register({
|
|
31697
31703
|
name: "init",
|
|
31698
|
-
description: t("initDesc"),
|
|
31704
|
+
description: () => t("initDesc"),
|
|
31699
31705
|
available: () => true,
|
|
31700
31706
|
ui: {
|
|
31701
31707
|
kind: "popupSelect",
|
|
@@ -31916,7 +31922,8 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
31916
31922
|
const enabled = controller.getSnapshot().value?.notificationsEnabled === true;
|
|
31917
31923
|
if (enabled && disposeNotifier === void 0) disposeNotifier = installTaskNotifier({
|
|
31918
31924
|
sessionsService: ctx.sessions,
|
|
31919
|
-
|
|
31925
|
+
sessionStatus: ctx.uiSession.sessionStatus,
|
|
31926
|
+
openSession: (id) => ctx.uiWorkspace.openSession(id),
|
|
31920
31927
|
text: {
|
|
31921
31928
|
notifyTitleDone: t("notifyTitleDone"),
|
|
31922
31929
|
notifyTitleAborted: t("notifyTitleAborted"),
|
|
@@ -32044,6 +32051,10 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
32044
32051
|
attachBetterLocale(void 0);
|
|
32045
32052
|
};
|
|
32046
32053
|
}, "dsh-better-sidebar: better-locale lazy integration");
|
|
32054
|
+
ctx.slots.inject("settings.launcher", () => ctx.slots.register({
|
|
32055
|
+
name: "settings.launcher",
|
|
32056
|
+
priority: -10
|
|
32057
|
+
}, AccountMenu));
|
|
32047
32058
|
const sidebarStore = createSidebarStore();
|
|
32048
32059
|
const pluginMarketCatalog = createPluginMarketCatalog();
|
|
32049
32060
|
ctx.effect(() => {
|
|
@@ -32257,22 +32268,29 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
32257
32268
|
return () => {};
|
|
32258
32269
|
}
|
|
32259
32270
|
}, "dsh-better-sidebar: IME composition guard");
|
|
32260
|
-
|
|
32261
|
-
|
|
32262
|
-
|
|
32263
|
-
|
|
32264
|
-
|
|
32265
|
-
|
|
32266
|
-
"
|
|
32267
|
-
"
|
|
32268
|
-
"
|
|
32269
|
-
]
|
|
32270
|
-
|
|
32271
|
-
|
|
32272
|
-
|
|
32273
|
-
|
|
32274
|
-
|
|
32275
|
-
|
|
32271
|
+
for (const [id, marker] of [
|
|
32272
|
+
["better-sidebar", SETTINGS_NAV_MARKER],
|
|
32273
|
+
["better-sidebar-usage", USAGE_NAV_MARKER],
|
|
32274
|
+
["better-sidebar-ai-ratio", AI_RATIO_NAV_MARKER],
|
|
32275
|
+
["better-sidebar-update", UPDATE_NAV_MARKER],
|
|
32276
|
+
["general", GENERAL_NAV_MARKER],
|
|
32277
|
+
["market", PLUGIN_MARKET_NAV_MARKER],
|
|
32278
|
+
["ui-tweaks", UI_TWEAKS_NAV_MARKER],
|
|
32279
|
+
["skill-market", SKILL_MARKET_NAV_MARKER]
|
|
32280
|
+
]) ctx.slots.inject("settings.section.icon", () => ctx.slots.register({
|
|
32281
|
+
name: "settings.section.icon",
|
|
32282
|
+
id,
|
|
32283
|
+
priority: -10
|
|
32284
|
+
}, () => (0, react.createElement)("span", {
|
|
32285
|
+
[marker]: "",
|
|
32286
|
+
"aria-hidden": true,
|
|
32287
|
+
style: {
|
|
32288
|
+
display: "flex",
|
|
32289
|
+
width: 16,
|
|
32290
|
+
height: 16,
|
|
32291
|
+
flex: "none"
|
|
32292
|
+
}
|
|
32293
|
+
})));
|
|
32276
32294
|
registerPluginMarketSettings(ctx, pluginMarketCatalog);
|
|
32277
32295
|
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
32278
32296
|
name: "settings.section",
|