@chatcode/cco-better-sidebar 0.18.0-rc.12 → 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 +8 -2
- package/README_EN.md +8 -2
- package/lib/client-editor.js +267 -268
- package/lib/client-mermaid.js +266 -267
- package/lib/client-registry.js +1803 -1772
- package/lib/client-terminal.js +264 -265
- package/lib/client.js +1631 -1600
- 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/client/useChatcodeAccount.d.ts +1 -0
- package/lib/types/ui-tweaks/turn-outcome.d.ts +1 -1
- package/package.json +59 -59
- package/src/client/AccountMenu.tsx +13 -17
- 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/client/useChatcodeAccount.ts +12 -2
- 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-registry.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 = "dsh-external/dsh-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,300 +12280,299 @@ window.__ModuleLoader__.load({
|
|
|
12280
12280
|
document.head.appendChild(tag);
|
|
12281
12281
|
}
|
|
12282
12282
|
var sidebar_module_css_default = {
|
|
12283
|
-
"
|
|
12283
|
+
"releaseNotesButton": "wm06mG_releaseNotesButton",
|
|
12284
|
+
"dropUp": "wm06mG_dropUp",
|
|
12285
|
+
"editorDownloadLink": "wm06mG_editorDownloadLink",
|
|
12286
|
+
"editorModeActive": "wm06mG_editorModeActive",
|
|
12287
|
+
"gitBadge": "wm06mG_gitBadge",
|
|
12284
12288
|
"gitDiff": "wm06mG_gitDiff",
|
|
12285
|
-
"
|
|
12286
|
-
"
|
|
12287
|
-
"
|
|
12288
|
-
"pane": "wm06mG_pane",
|
|
12289
|
-
"uploadOverlayProgress": "wm06mG_uploadOverlayProgress",
|
|
12290
|
-
"floatHeader": "wm06mG_floatHeader",
|
|
12291
|
-
"tabBoundaryError": "wm06mG_tabBoundaryError",
|
|
12292
|
-
"openWithPinActive": "wm06mG_openWithPinActive",
|
|
12293
|
-
"pinnedSessionMore": "wm06mG_pinnedSessionMore",
|
|
12289
|
+
"gitDiffHunk": "wm06mG_gitDiffHunk",
|
|
12290
|
+
"gitDiffFile": "wm06mG_gitDiffFile",
|
|
12291
|
+
"editorSearchInput": "wm06mG_editorSearchInput",
|
|
12294
12292
|
"sandboxDot": "wm06mG_sandboxDot",
|
|
12295
|
-
"
|
|
12296
|
-
"
|
|
12297
|
-
"
|
|
12298
|
-
"
|
|
12299
|
-
"
|
|
12300
|
-
"explorerRowDropTarget": "wm06mG_explorerRowDropTarget",
|
|
12301
|
-
"uploadDropZonePill": "wm06mG_uploadDropZonePill",
|
|
12302
|
-
"tab": "wm06mG_tab",
|
|
12303
|
-
"panelResize": "wm06mG_panelResize",
|
|
12304
|
-
"explorerSymlink": "wm06mG_explorerSymlink",
|
|
12305
|
-
"editorBinaryNotice": "wm06mG_editorBinaryNotice",
|
|
12293
|
+
"floatClose": "wm06mG_floatClose",
|
|
12294
|
+
"uploadDropZoneText": "wm06mG_uploadDropZoneText",
|
|
12295
|
+
"accountLogoutConfirm": "wm06mG_accountLogoutConfirm",
|
|
12296
|
+
"terminalDepsActions": "wm06mG_terminalDepsActions",
|
|
12297
|
+
"git": "wm06mG_git",
|
|
12306
12298
|
"chatcodeGateContent": "wm06mG_chatcodeGateContent",
|
|
12299
|
+
"accountMenu": "wm06mG_accountMenu",
|
|
12300
|
+
"panel": "wm06mG_panel",
|
|
12301
|
+
"accountTrigger": "wm06mG_accountTrigger",
|
|
12302
|
+
"uploadOverlayTitle": "wm06mG_uploadOverlayTitle",
|
|
12303
|
+
"editorMd": "wm06mG_editorMd",
|
|
12304
|
+
"gitLogLine2": "wm06mG_gitLogLine2",
|
|
12307
12305
|
"updateSettingsRow": "wm06mG_updateSettingsRow",
|
|
12308
|
-
"
|
|
12309
|
-
"
|
|
12310
|
-
"
|
|
12311
|
-
"
|
|
12312
|
-
"
|
|
12313
|
-
"
|
|
12306
|
+
"mermaidWrap": "wm06mG_mermaidWrap",
|
|
12307
|
+
"tabTitle": "wm06mG_tabTitle",
|
|
12308
|
+
"bottomPanel": "wm06mG_bottomPanel",
|
|
12309
|
+
"pinnedSessionMenuDivider": "wm06mG_pinnedSessionMenuDivider",
|
|
12310
|
+
"explorerRowDropTarget": "wm06mG_explorerRowDropTarget",
|
|
12311
|
+
"editorPathInput": "wm06mG_editorPathInput",
|
|
12312
|
+
"gitConfirmDesc": "wm06mG_gitConfirmDesc",
|
|
12313
|
+
"updateList": "wm06mG_updateList",
|
|
12314
|
+
"browserBlockedTitle": "wm06mG_browserBlockedTitle",
|
|
12315
|
+
"panelBody": "wm06mG_panelBody",
|
|
12316
|
+
"uploadDropChatCard": "wm06mG_uploadDropChatCard",
|
|
12317
|
+
"uploadOverlayCancel": "wm06mG_uploadOverlayCancel",
|
|
12318
|
+
"editorTreePanelFull": "wm06mG_editorTreePanelFull",
|
|
12319
|
+
"editorModeToggle": "wm06mG_editorModeToggle",
|
|
12320
|
+
"terminalDepsHint": "wm06mG_terminalDepsHint",
|
|
12321
|
+
"chatcodeGate": "wm06mG_chatcodeGate",
|
|
12322
|
+
"releaseNotesDialog": "wm06mG_releaseNotesDialog",
|
|
12323
|
+
"explorerHidden": "wm06mG_explorerHidden",
|
|
12324
|
+
"tocItem": "wm06mG_tocItem",
|
|
12325
|
+
"updateErrorText": "wm06mG_updateErrorText",
|
|
12326
|
+
"panelResizeActive": "wm06mG_panelResizeActive",
|
|
12327
|
+
"pinnedTab": "wm06mG_pinnedTab",
|
|
12328
|
+
"browserBlockedButton": "wm06mG_browserBlockedButton",
|
|
12314
12329
|
"tabActive": "wm06mG_tabActive",
|
|
12315
|
-
"
|
|
12330
|
+
"releaseNotesFooter": "wm06mG_releaseNotesFooter",
|
|
12331
|
+
"mermaidCode": "wm06mG_mermaidCode",
|
|
12332
|
+
"editorTreeSearch": "wm06mG_editorTreeSearch",
|
|
12333
|
+
"gitError": "wm06mG_gitError",
|
|
12334
|
+
"terminalDepsTitle": "wm06mG_terminalDepsTitle",
|
|
12335
|
+
"accountDropdownHeader": "wm06mG_accountDropdownHeader",
|
|
12316
12336
|
"gitLink": "wm06mG_gitLink",
|
|
12317
|
-
"
|
|
12337
|
+
"tabBar": "wm06mG_tabBar",
|
|
12338
|
+
"browserBlockedActions": "wm06mG_browserBlockedActions",
|
|
12339
|
+
"gitSectionHeader": "wm06mG_gitSectionHeader",
|
|
12340
|
+
"editorPptxButton": "wm06mG_editorPptxButton",
|
|
12341
|
+
"dividerRow": "wm06mG_dividerRow",
|
|
12342
|
+
"tabClose": "wm06mG_tabClose",
|
|
12343
|
+
"accountName": "wm06mG_accountName",
|
|
12344
|
+
"splitCol": "wm06mG_splitCol",
|
|
12345
|
+
"dividerCol": "wm06mG_dividerCol",
|
|
12318
12346
|
"gitDiffCode": "wm06mG_gitDiffCode",
|
|
12319
|
-
"
|
|
12320
|
-
"
|
|
12321
|
-
"gitDiffLine": "wm06mG_gitDiffLine",
|
|
12322
|
-
"editorDocxZoomRange": "wm06mG_editorDocxZoomRange",
|
|
12323
|
-
"accountDropdownHeader": "wm06mG_accountDropdownHeader",
|
|
12324
|
-
"editorPdfStage": "wm06mG_editorPdfStage",
|
|
12325
|
-
"tocItemLevel": "wm06mG_tocItemLevel",
|
|
12326
|
-
"gitWorktreeRow": "wm06mG_gitWorktreeRow",
|
|
12327
|
-
"panelHidden": "wm06mG_panelHidden",
|
|
12328
|
-
"dividerActive": "wm06mG_dividerActive",
|
|
12329
|
-
"paneDrop": "wm06mG_paneDrop",
|
|
12330
|
-
"orphanedType": "wm06mG_orphanedType",
|
|
12331
|
-
"browserBlockedDesc": "wm06mG_browserBlockedDesc",
|
|
12332
|
-
"gitCommitButton": "wm06mG_gitCommitButton",
|
|
12333
|
-
"sandboxAction": "wm06mG_sandboxAction",
|
|
12334
|
-
"openWithLabel": "wm06mG_openWithLabel",
|
|
12335
|
-
"pinnedTab": "wm06mG_pinnedTab",
|
|
12336
|
-
"gitDiffHunkSection": "wm06mG_gitDiffHunkSection",
|
|
12337
|
-
"editorMd": "wm06mG_editorMd",
|
|
12338
|
-
"dsh-toc-flash": "wm06mG_dsh-toc-flash",
|
|
12339
|
-
"gitLogRef": "wm06mG_gitLogRef",
|
|
12340
|
-
"gitRowMain": "wm06mG_gitRowMain",
|
|
12341
|
-
"accountAvatar": "wm06mG_accountAvatar",
|
|
12342
|
-
"editorTreeResize": "wm06mG_editorTreeResize",
|
|
12343
|
-
"uploadDropChatCard": "wm06mG_uploadDropChatCard",
|
|
12344
|
-
"mermaidModalStage": "wm06mG_mermaidModalStage",
|
|
12345
|
-
"editorSearchInput": "wm06mG_editorSearchInput",
|
|
12346
|
-
"gitDiffHunkHeader": "wm06mG_gitDiffHunkHeader",
|
|
12347
|
-
"gitDiffAdd": "wm06mG_gitDiffAdd",
|
|
12347
|
+
"tocPanel": "wm06mG_tocPanel",
|
|
12348
|
+
"gitLogMeta": "wm06mG_gitLogMeta",
|
|
12348
12349
|
"sandboxStatusOn": "wm06mG_sandboxStatusOn",
|
|
12350
|
+
"editorPdfFrameBlocked": "wm06mG_editorPdfFrameBlocked",
|
|
12351
|
+
"sandboxStatus": "wm06mG_sandboxStatus",
|
|
12352
|
+
"updateSettingsText": "wm06mG_updateSettingsText",
|
|
12353
|
+
"releaseNotesHeader": "wm06mG_releaseNotesHeader",
|
|
12354
|
+
"sandboxAction": "wm06mG_sandboxAction",
|
|
12355
|
+
"explorerEmpty": "wm06mG_explorerEmpty",
|
|
12356
|
+
"floatWindowDragging": "wm06mG_floatWindowDragging",
|
|
12357
|
+
"releaseNotesIconButton": "wm06mG_releaseNotesIconButton",
|
|
12358
|
+
"editorTreeToggleActive": "wm06mG_editorTreeToggleActive",
|
|
12359
|
+
"releaseNotesOverlay": "wm06mG_releaseNotesOverlay",
|
|
12360
|
+
"browser": "wm06mG_browser",
|
|
12361
|
+
"uploadOverlayCard": "wm06mG_uploadOverlayCard",
|
|
12362
|
+
"gitWorktreeLabel": "wm06mG_gitWorktreeLabel",
|
|
12363
|
+
"gitDiffFileTag": "wm06mG_gitDiffFileTag",
|
|
12364
|
+
"gitDiffDel": "wm06mG_gitDiffDel",
|
|
12365
|
+
"updateFooter": "wm06mG_updateFooter",
|
|
12366
|
+
"pinnedSessionMenu": "wm06mG_pinnedSessionMenu",
|
|
12349
12367
|
"explorer": "wm06mG_explorer",
|
|
12350
|
-
"openWithPin": "wm06mG_openWithPin",
|
|
12351
|
-
"chatcodeGateError": "wm06mG_chatcodeGateError",
|
|
12352
|
-
"browserStart": "wm06mG_browserStart",
|
|
12353
|
-
"tocButton": "wm06mG_tocButton",
|
|
12354
|
-
"accountName": "wm06mG_accountName",
|
|
12355
|
-
"accountLogoutConfirm": "wm06mG_accountLogoutConfirm",
|
|
12356
|
-
"gitSectionHeader": "wm06mG_gitSectionHeader",
|
|
12357
|
-
"dropLeft": "wm06mG_dropLeft",
|
|
12358
|
-
"editorDownloadLink": "wm06mG_editorDownloadLink",
|
|
12359
|
-
"dropDown": "wm06mG_dropDown",
|
|
12360
12368
|
"explorerBroken": "wm06mG_explorerBroken",
|
|
12361
|
-
"
|
|
12362
|
-
"
|
|
12369
|
+
"terminalDepsBanner": "wm06mG_terminalDepsBanner",
|
|
12370
|
+
"mermaidModalButton": "wm06mG_mermaidModalButton",
|
|
12371
|
+
"editorHtmlBlock": "wm06mG_editorHtmlBlock",
|
|
12372
|
+
"browserBlockedDesc": "wm06mG_browserBlockedDesc",
|
|
12373
|
+
"iconButton": "wm06mG_iconButton",
|
|
12374
|
+
"accountLogoutDialog": "wm06mG_accountLogoutDialog",
|
|
12375
|
+
"boundaryError": "wm06mG_boundaryError",
|
|
12376
|
+
"panelHidden": "wm06mG_panelHidden",
|
|
12377
|
+
"explorerSymlink": "wm06mG_explorerSymlink",
|
|
12378
|
+
"explorerCopied": "wm06mG_explorerCopied",
|
|
12363
12379
|
"updateBody": "wm06mG_updateBody",
|
|
12380
|
+
"bottomPanelHidden": "wm06mG_bottomPanelHidden",
|
|
12381
|
+
"dropDown": "wm06mG_dropDown",
|
|
12382
|
+
"gitEmpty": "wm06mG_gitEmpty",
|
|
12383
|
+
"gitDiffHunkSection": "wm06mG_gitDiffHunkSection",
|
|
12384
|
+
"tabBoundaryError": "wm06mG_tabBoundaryError",
|
|
12385
|
+
"explorerError": "wm06mG_explorerError",
|
|
12386
|
+
"editorBinaryNotice": "wm06mG_editorBinaryNotice",
|
|
12387
|
+
"editorCm": "wm06mG_editorCm",
|
|
12388
|
+
"browserFrame": "wm06mG_browserFrame",
|
|
12389
|
+
"selectionPopup": "wm06mG_selectionPopup",
|
|
12390
|
+
"pinnedSessionDot": "wm06mG_pinnedSessionDot",
|
|
12364
12391
|
"accountLogoutTitle": "wm06mG_accountLogoutTitle",
|
|
12365
|
-
"
|
|
12366
|
-
"
|
|
12367
|
-
"
|
|
12368
|
-
"
|
|
12369
|
-
"
|
|
12370
|
-
"
|
|
12371
|
-
"
|
|
12372
|
-
"
|
|
12373
|
-
"
|
|
12392
|
+
"gitDiffNum": "wm06mG_gitDiffNum",
|
|
12393
|
+
"updateVersions": "wm06mG_updateVersions",
|
|
12394
|
+
"floatHeader": "wm06mG_floatHeader",
|
|
12395
|
+
"chatcodeGateCard": "wm06mG_chatcodeGateCard",
|
|
12396
|
+
"gitDiffMetaText": "wm06mG_gitDiffMetaText",
|
|
12397
|
+
"editorCmHidden": "wm06mG_editorCmHidden",
|
|
12398
|
+
"editorImageWrap": "wm06mG_editorImageWrap",
|
|
12399
|
+
"gitDiffExpand": "wm06mG_gitDiffExpand",
|
|
12400
|
+
"paneDrop": "wm06mG_paneDrop",
|
|
12401
|
+
"mermaidBody": "wm06mG_mermaidBody",
|
|
12402
|
+
"gitCommit": "wm06mG_gitCommit",
|
|
12403
|
+
"dirtyDot": "wm06mG_dirtyDot",
|
|
12404
|
+
"mermaidModalStage": "wm06mG_mermaidModalStage",
|
|
12405
|
+
"dsh-row-in": "wm06mG_dsh-row-in",
|
|
12406
|
+
"openWithLabel": "wm06mG_openWithLabel",
|
|
12407
|
+
"editorPdfToolbar": "wm06mG_editorPdfToolbar",
|
|
12408
|
+
"tab": "wm06mG_tab",
|
|
12409
|
+
"editorPdf": "wm06mG_editorPdf",
|
|
12410
|
+
"editorBinary": "wm06mG_editorBinary",
|
|
12411
|
+
"tabBarPlus": "wm06mG_tabBarPlus",
|
|
12412
|
+
"updateSettingsDesc": "wm06mG_updateSettingsDesc",
|
|
12413
|
+
"editorBody": "wm06mG_editorBody",
|
|
12414
|
+
"orphanedType": "wm06mG_orphanedType",
|
|
12415
|
+
"gitDiffTab": "wm06mG_gitDiffTab",
|
|
12416
|
+
"accountMenuDivider": "wm06mG_accountMenuDivider",
|
|
12417
|
+
"editorPdfDragShield": "wm06mG_editorPdfDragShield",
|
|
12418
|
+
"terminal": "wm06mG_terminal",
|
|
12419
|
+
"editorModeButton": "wm06mG_editorModeButton",
|
|
12420
|
+
"gitDiffFileOld": "wm06mG_gitDiffFileOld",
|
|
12421
|
+
"editor": "wm06mG_editor",
|
|
12422
|
+
"gitDiffFilePath": "wm06mG_gitDiffFilePath",
|
|
12374
12423
|
"splitRow": "wm06mG_splitRow",
|
|
12375
|
-
"
|
|
12376
|
-
"
|
|
12424
|
+
"editorTitle": "wm06mG_editorTitle",
|
|
12425
|
+
"uploadOverlayProgressFill": "wm06mG_uploadOverlayProgressFill",
|
|
12426
|
+
"mermaidError": "wm06mG_mermaidError",
|
|
12377
12427
|
"editorHtml": "wm06mG_editorHtml",
|
|
12378
|
-
"
|
|
12428
|
+
"editorPdfDragShieldActive": "wm06mG_editorPdfDragShieldActive",
|
|
12429
|
+
"bottomResize": "wm06mG_bottomResize",
|
|
12430
|
+
"explorerRef": "wm06mG_explorerRef",
|
|
12431
|
+
"chatcodeGateError": "wm06mG_chatcodeGateError",
|
|
12432
|
+
"terminalDepsCommandRow": "wm06mG_terminalDepsCommandRow",
|
|
12433
|
+
"editorStatus": "wm06mG_editorStatus",
|
|
12434
|
+
"tabList": "wm06mG_tabList",
|
|
12435
|
+
"accountPresence": "wm06mG_accountPresence",
|
|
12436
|
+
"editorSearchHint": "wm06mG_editorSearchHint",
|
|
12437
|
+
"gitLogRef": "wm06mG_gitLogRef",
|
|
12438
|
+
"producedLabel": "wm06mG_producedLabel",
|
|
12439
|
+
"fenceError": "wm06mG_fenceError",
|
|
12440
|
+
"dropRight": "wm06mG_dropRight",
|
|
12441
|
+
"editorTreeDock": "wm06mG_editorTreeDock",
|
|
12442
|
+
"bottomResizeActive": "wm06mG_bottomResizeActive",
|
|
12443
|
+
"uploadOverlayStatus": "wm06mG_uploadOverlayStatus",
|
|
12444
|
+
"gitPlaceholder": "wm06mG_gitPlaceholder",
|
|
12445
|
+
"mermaidMarkdown": "wm06mG_mermaidMarkdown",
|
|
12446
|
+
"gitRowSelected": "wm06mG_gitRowSelected",
|
|
12447
|
+
"gitCommitInput": "wm06mG_gitCommitInput",
|
|
12448
|
+
"openWithPin": "wm06mG_openWithPin",
|
|
12449
|
+
"split": "wm06mG_split",
|
|
12450
|
+
"dividerActive": "wm06mG_dividerActive",
|
|
12451
|
+
"tocItemText": "wm06mG_tocItemText",
|
|
12379
12452
|
"updateOk": "wm06mG_updateOk",
|
|
12380
|
-
"
|
|
12453
|
+
"sandboxStatusOff": "wm06mG_sandboxStatusOff",
|
|
12454
|
+
"gitLogLine1": "wm06mG_gitLogLine1",
|
|
12455
|
+
"updateInline": "wm06mG_updateInline",
|
|
12456
|
+
"pane": "wm06mG_pane",
|
|
12381
12457
|
"gitDiffTabTitle": "wm06mG_gitDiffTabTitle",
|
|
12382
|
-
"
|
|
12383
|
-
"accountLogoutDialog": "wm06mG_accountLogoutDialog",
|
|
12384
|
-
"accountMenuDivider": "wm06mG_accountMenuDivider",
|
|
12385
|
-
"chatcodeGate": "wm06mG_chatcodeGate",
|
|
12386
|
-
"dsh-row-in": "wm06mG_dsh-row-in",
|
|
12387
|
-
"releaseNotesIconButton": "wm06mG_releaseNotesIconButton",
|
|
12388
|
-
"editorTitle": "wm06mG_editorTitle",
|
|
12389
|
-
"editorBinary": "wm06mG_editorBinary",
|
|
12390
|
-
"terminalDepsActions": "wm06mG_terminalDepsActions",
|
|
12391
|
-
"accountLogoutDescription": "wm06mG_accountLogoutDescription",
|
|
12392
|
-
"editorSearchHint": "wm06mG_editorSearchHint",
|
|
12393
|
-
"mermaidBody": "wm06mG_mermaidBody",
|
|
12394
|
-
"editorImageWrap": "wm06mG_editorImageWrap",
|
|
12395
|
-
"mermaidModalToolbar": "wm06mG_mermaidModalToolbar",
|
|
12396
|
-
"pinnedSessionRow": "wm06mG_pinnedSessionRow",
|
|
12397
|
-
"toggleClusterNative": "wm06mG_toggleClusterNative",
|
|
12398
|
-
"updateSettingsTitle": "wm06mG_updateSettingsTitle",
|
|
12399
|
-
"editorModeToggle": "wm06mG_editorModeToggle",
|
|
12400
|
-
"gitDiffFileTag": "wm06mG_gitDiffFileTag",
|
|
12401
|
-
"pinnedSessionDot": "wm06mG_pinnedSessionDot",
|
|
12402
|
-
"floatWindow": "wm06mG_floatWindow",
|
|
12403
|
-
"gitDiffFileOld": "wm06mG_gitDiffFileOld",
|
|
12404
|
-
"gitLogLine2": "wm06mG_gitLogLine2",
|
|
12405
|
-
"releaseNotesDialog": "wm06mG_releaseNotesDialog",
|
|
12406
|
-
"dropCenter": "wm06mG_dropCenter",
|
|
12407
|
-
"mermaidInfo": "wm06mG_mermaidInfo",
|
|
12408
|
-
"explorerEmpty": "wm06mG_explorerEmpty",
|
|
12409
|
-
"paneTabHidden": "wm06mG_paneTabHidden",
|
|
12458
|
+
"accountLogoutActions": "wm06mG_accountLogoutActions",
|
|
12410
12459
|
"bottomClose": "wm06mG_bottomClose",
|
|
12411
|
-
"gitLogMeta": "wm06mG_gitLogMeta",
|
|
12412
|
-
"gitLogMore": "wm06mG_gitLogMore",
|
|
12413
|
-
"browserBlockedActions": "wm06mG_browserBlockedActions",
|
|
12414
|
-
"terminalDepsHint": "wm06mG_terminalDepsHint",
|
|
12415
|
-
"gitError": "wm06mG_gitError",
|
|
12416
|
-
"gitDiffMetaText": "wm06mG_gitDiffMetaText",
|
|
12417
|
-
"uploadOverlayTitle": "wm06mG_uploadOverlayTitle",
|
|
12418
|
-
"splitCol": "wm06mG_splitCol",
|
|
12419
|
-
"editorPdf": "wm06mG_editorPdf",
|
|
12420
|
-
"explorerHidden": "wm06mG_explorerHidden",
|
|
12421
|
-
"editorTreePanelFull": "wm06mG_editorTreePanelFull",
|
|
12422
|
-
"pinnedSessionMenuDivider": "wm06mG_pinnedSessionMenuDivider",
|
|
12423
|
-
"mermaidCopy": "wm06mG_mermaidCopy",
|
|
12424
|
-
"terminalRepairCommand": "wm06mG_terminalRepairCommand",
|
|
12425
|
-
"mermaidModalButton": "wm06mG_mermaidModalButton",
|
|
12426
|
-
"accountItem": "wm06mG_accountItem",
|
|
12427
|
-
"browser": "wm06mG_browser",
|
|
12428
|
-
"releaseNotesHeader": "wm06mG_releaseNotesHeader",
|
|
12429
|
-
"sandboxStatusText": "wm06mG_sandboxStatusText",
|
|
12430
|
-
"browserBlocked": "wm06mG_browserBlocked",
|
|
12431
|
-
"mermaidError": "wm06mG_mermaidError",
|
|
12432
|
-
"tabBadge": "wm06mG_tabBadge",
|
|
12433
|
-
"gitBadge": "wm06mG_gitBadge",
|
|
12434
|
-
"floatWindowDragging": "wm06mG_floatWindowDragging",
|
|
12435
|
-
"terminalBannerUrl": "wm06mG_terminalBannerUrl",
|
|
12436
|
-
"gitDiffMeta": "wm06mG_gitDiffMeta",
|
|
12437
|
-
"tocPanel": "wm06mG_tocPanel",
|
|
12438
|
-
"tocItemText": "wm06mG_tocItemText",
|
|
12439
|
-
"gitWorktreeLabel": "wm06mG_gitWorktreeLabel",
|
|
12440
|
-
"manualButton": "wm06mG_manualButton",
|
|
12441
|
-
"dirtyDot": "wm06mG_dirtyDot",
|
|
12442
|
-
"chatcodeGateCard": "wm06mG_chatcodeGateCard",
|
|
12443
|
-
"gitCommit": "wm06mG_gitCommit",
|
|
12444
|
-
"explorerBody": "wm06mG_explorerBody",
|
|
12445
|
-
"dividerCol": "wm06mG_dividerCol",
|
|
12446
|
-
"toggleButton": "wm06mG_toggleButton",
|
|
12447
|
-
"browserInput": "wm06mG_browserInput",
|
|
12448
|
-
"uploadDropHero": "wm06mG_uploadDropHero",
|
|
12449
|
-
"uploadOverlayProgressFill": "wm06mG_uploadOverlayProgressFill",
|
|
12450
|
-
"gitConfirmDesc": "wm06mG_gitConfirmDesc",
|
|
12451
|
-
"gitDiffDel": "wm06mG_gitDiffDel",
|
|
12452
|
-
"panelResizeActive": "wm06mG_panelResizeActive",
|
|
12453
|
-
"tabList": "wm06mG_tabList",
|
|
12454
|
-
"releaseNotesButton": "wm06mG_releaseNotesButton",
|
|
12455
|
-
"browserBlockedTitle": "wm06mG_browserBlockedTitle",
|
|
12456
|
-
"panelBody": "wm06mG_panelBody",
|
|
12457
|
-
"uploadOverlayCancel": "wm06mG_uploadOverlayCancel",
|
|
12458
|
-
"editorPathInput": "wm06mG_editorPathInput",
|
|
12459
|
-
"editorMain": "wm06mG_editorMain",
|
|
12460
|
-
"gitLogLine1": "wm06mG_gitLogLine1",
|
|
12461
12460
|
"paneContent": "wm06mG_paneContent",
|
|
12462
|
-
"
|
|
12463
|
-
"
|
|
12464
|
-
"
|
|
12465
|
-
"
|
|
12461
|
+
"updateSettingsBlock": "wm06mG_updateSettingsBlock",
|
|
12462
|
+
"explorerDir": "wm06mG_explorerDir",
|
|
12463
|
+
"gitCommitButton": "wm06mG_gitCommitButton",
|
|
12464
|
+
"producedChip": "wm06mG_producedChip",
|
|
12465
|
+
"uploadDropChatHint": "wm06mG_uploadDropChatHint",
|
|
12466
|
+
"toggleClusterNative": "wm06mG_toggleClusterNative",
|
|
12467
|
+
"tocItemLevel": "wm06mG_tocItemLevel",
|
|
12468
|
+
"mermaidModalToolbar": "wm06mG_mermaidModalToolbar",
|
|
12466
12469
|
"mermaidHeader": "wm06mG_mermaidHeader",
|
|
12467
|
-
"
|
|
12468
|
-
"
|
|
12469
|
-
"
|
|
12470
|
-
"
|
|
12471
|
-
"
|
|
12472
|
-
"
|
|
12473
|
-
"
|
|
12474
|
-
"
|
|
12470
|
+
"gitDiffHunkHeader": "wm06mG_gitDiffHunkHeader",
|
|
12471
|
+
"accountItem": "wm06mG_accountItem",
|
|
12472
|
+
"openWithName": "wm06mG_openWithName",
|
|
12473
|
+
"gitLogRow": "wm06mG_gitLogRow",
|
|
12474
|
+
"editorTreeResize": "wm06mG_editorTreeResize",
|
|
12475
|
+
"chatcodeGateActions": "wm06mG_chatcodeGateActions",
|
|
12476
|
+
"uploadDropHero": "wm06mG_uploadDropHero",
|
|
12477
|
+
"editorPlaceholder": "wm06mG_editorPlaceholder",
|
|
12478
|
+
"editorStatusError": "wm06mG_editorStatusError",
|
|
12479
|
+
"dropLeft": "wm06mG_dropLeft",
|
|
12480
|
+
"uploadOverlayProgress": "wm06mG_uploadOverlayProgress",
|
|
12481
|
+
"gitBranchSelect": "wm06mG_gitBranchSelect",
|
|
12482
|
+
"workbench": "wm06mG_workbench",
|
|
12483
|
+
"editorDocxZoomRange": "wm06mG_editorDocxZoomRange",
|
|
12484
|
+
"explorerBody": "wm06mG_explorerBody",
|
|
12475
12485
|
"floatContent": "wm06mG_floatContent",
|
|
12476
|
-
"
|
|
12477
|
-
"editorPdfFrameBlocked": "wm06mG_editorPdfFrameBlocked",
|
|
12478
|
-
"editorSearchResult": "wm06mG_editorSearchResult",
|
|
12479
|
-
"terminal": "wm06mG_terminal",
|
|
12480
|
-
"gitDiffFilePath": "wm06mG_gitDiffFilePath",
|
|
12481
|
-
"openWithChevron": "wm06mG_openWithChevron",
|
|
12486
|
+
"floatDropHint": "wm06mG_floatDropHint",
|
|
12482
12487
|
"floatDropHintLabel": "wm06mG_floatDropHintLabel",
|
|
12483
|
-
"
|
|
12484
|
-
"
|
|
12485
|
-
"mermaidWrap": "wm06mG_mermaidWrap",
|
|
12486
|
-
"editor": "wm06mG_editor",
|
|
12487
|
-
"fenceError": "wm06mG_fenceError",
|
|
12488
|
+
"panelResize": "wm06mG_panelResize",
|
|
12489
|
+
"toggleButton": "wm06mG_toggleButton",
|
|
12488
12490
|
"pinnedSessions": "wm06mG_pinnedSessions",
|
|
12489
|
-
"
|
|
12490
|
-
"
|
|
12491
|
-
"
|
|
12491
|
+
"explorerHeader": "wm06mG_explorerHeader",
|
|
12492
|
+
"uploadOverlay": "wm06mG_uploadOverlay",
|
|
12493
|
+
"gitName": "wm06mG_gitName",
|
|
12494
|
+
"floatWindow": "wm06mG_floatWindow",
|
|
12495
|
+
"gitRowMain": "wm06mG_gitRowMain",
|
|
12496
|
+
"explorerRowRevealed": "wm06mG_explorerRowRevealed",
|
|
12497
|
+
"dsh-toc-flash": "wm06mG_dsh-toc-flash",
|
|
12498
|
+
"tocFlash": "wm06mG_tocFlash",
|
|
12499
|
+
"producedRow": "wm06mG_producedRow",
|
|
12500
|
+
"editorPdfStage": "wm06mG_editorPdfStage",
|
|
12501
|
+
"gitLogHash": "wm06mG_gitLogHash",
|
|
12502
|
+
"pinnedSessionRow": "wm06mG_pinnedSessionRow",
|
|
12503
|
+
"pinnedSessionTitle": "wm06mG_pinnedSessionTitle",
|
|
12492
12504
|
"uploadDropZone": "wm06mG_uploadDropZone",
|
|
12493
|
-
"
|
|
12494
|
-
"gitRowSelected": "wm06mG_gitRowSelected",
|
|
12495
|
-
"editorBody": "wm06mG_editorBody",
|
|
12496
|
-
"editorPptxButton": "wm06mG_editorPptxButton",
|
|
12497
|
-
"pinnedSessionMenu": "wm06mG_pinnedSessionMenu",
|
|
12498
|
-
"gitSection": "wm06mG_gitSection",
|
|
12499
|
-
"dividerRow": "wm06mG_dividerRow",
|
|
12500
|
-
"editorPdfFrame": "wm06mG_editorPdfFrame",
|
|
12501
|
-
"editorStatusError": "wm06mG_editorStatusError",
|
|
12502
|
-
"editorStatus": "wm06mG_editorStatus",
|
|
12503
|
-
"gitLogSubject": "wm06mG_gitLogSubject",
|
|
12504
|
-
"updateSettingsBlock": "wm06mG_updateSettingsBlock",
|
|
12505
|
-
"uploadDropChatHint": "wm06mG_uploadDropChatHint",
|
|
12506
|
-
"gitDiffFileChevron": "wm06mG_gitDiffFileChevron",
|
|
12507
|
-
"tabBarDrop": "wm06mG_tabBarDrop",
|
|
12508
|
-
"accountLogoutActions": "wm06mG_accountLogoutActions",
|
|
12509
|
-
"editorError": "wm06mG_editorError",
|
|
12510
|
-
"gitBranchSelect": "wm06mG_gitBranchSelect",
|
|
12505
|
+
"gitLogMore": "wm06mG_gitLogMore",
|
|
12511
12506
|
"pinnedSessionOpen": "wm06mG_pinnedSessionOpen",
|
|
12512
|
-
"
|
|
12513
|
-
"producedChip": "wm06mG_producedChip",
|
|
12507
|
+
"mermaidInfo": "wm06mG_mermaidInfo",
|
|
12514
12508
|
"updateError": "wm06mG_updateError",
|
|
12515
|
-
"
|
|
12516
|
-
"
|
|
12517
|
-
"
|
|
12518
|
-
"
|
|
12519
|
-
"
|
|
12509
|
+
"paneTab": "wm06mG_paneTab",
|
|
12510
|
+
"gitHeader": "wm06mG_gitHeader",
|
|
12511
|
+
"pinnedSessionMore": "wm06mG_pinnedSessionMore",
|
|
12512
|
+
"editorMain": "wm06mG_editorMain",
|
|
12513
|
+
"tocBar": "wm06mG_tocBar",
|
|
12514
|
+
"explorerRow": "wm06mG_explorerRow",
|
|
12515
|
+
"explorerRoot": "wm06mG_explorerRoot",
|
|
12516
|
+
"gitSection": "wm06mG_gitSection",
|
|
12517
|
+
"editorImage": "wm06mG_editorImage",
|
|
12518
|
+
"floatTitle": "wm06mG_floatTitle",
|
|
12519
|
+
"gitDiffMeta": "wm06mG_gitDiffMeta",
|
|
12520
|
+
"gitDiffFileChevron": "wm06mG_gitDiffFileChevron",
|
|
12521
|
+
"browserBar": "wm06mG_browserBar",
|
|
12520
12522
|
"terminalBanner": "wm06mG_terminalBanner",
|
|
12521
|
-
"
|
|
12522
|
-
"
|
|
12523
|
-
"
|
|
12524
|
-
"
|
|
12525
|
-
"
|
|
12526
|
-
"gitEmpty": "wm06mG_gitEmpty",
|
|
12527
|
-
"pinnedSessionsHeading": "wm06mG_pinnedSessionsHeading",
|
|
12528
|
-
"gitName": "wm06mG_gitName",
|
|
12529
|
-
"gitDiffExpand": "wm06mG_gitDiffExpand",
|
|
12530
|
-
"gitDiffHunk": "wm06mG_gitDiffHunk",
|
|
12531
|
-
"uploadDropZoneText": "wm06mG_uploadDropZoneText",
|
|
12532
|
-
"gitPlaceholder": "wm06mG_gitPlaceholder",
|
|
12533
|
-
"gitDiffTab": "wm06mG_gitDiffTab",
|
|
12534
|
-
"pinnedSessionsList": "wm06mG_pinnedSessionsList",
|
|
12523
|
+
"tabBarDrop": "wm06mG_tabBarDrop",
|
|
12524
|
+
"paneEmptyCards": "wm06mG_paneEmptyCards",
|
|
12525
|
+
"browserBlocked": "wm06mG_browserBlocked",
|
|
12526
|
+
"manualButton": "wm06mG_manualButton",
|
|
12527
|
+
"browserStart": "wm06mG_browserStart",
|
|
12535
12528
|
"mermaidModalHint": "wm06mG_mermaidModalHint",
|
|
12536
|
-
"
|
|
12537
|
-
"
|
|
12538
|
-
"
|
|
12539
|
-
"
|
|
12540
|
-
"
|
|
12541
|
-
"
|
|
12542
|
-
"
|
|
12543
|
-
"
|
|
12544
|
-
"
|
|
12545
|
-
"
|
|
12546
|
-
"tabBar": "wm06mG_tabBar",
|
|
12547
|
-
"updateSettingsDesc": "wm06mG_updateSettingsDesc",
|
|
12548
|
-
"explorerRoot": "wm06mG_explorerRoot",
|
|
12549
|
-
"dropRight": "wm06mG_dropRight",
|
|
12550
|
-
"gitDiffFileChevronExpanded": "wm06mG_gitDiffFileChevronExpanded",
|
|
12529
|
+
"gitLogSubject": "wm06mG_gitLogSubject",
|
|
12530
|
+
"terminalBannerUrl": "wm06mG_terminalBannerUrl",
|
|
12531
|
+
"tocButton": "wm06mG_tocButton",
|
|
12532
|
+
"mermaidCopy": "wm06mG_mermaidCopy",
|
|
12533
|
+
"updateSettingsTitle": "wm06mG_updateSettingsTitle",
|
|
12534
|
+
"pinnedSessionsHeading": "wm06mG_pinnedSessionsHeading",
|
|
12535
|
+
"uploadDropZonePill": "wm06mG_uploadDropZonePill",
|
|
12536
|
+
"editorPdfFrame": "wm06mG_editorPdfFrame",
|
|
12537
|
+
"producedMore": "wm06mG_producedMore",
|
|
12538
|
+
"accountLogoutDescription": "wm06mG_accountLogoutDescription",
|
|
12551
12539
|
"splitChild": "wm06mG_splitChild",
|
|
12552
|
-
"
|
|
12553
|
-
"
|
|
12554
|
-
"
|
|
12555
|
-
"
|
|
12556
|
-
"
|
|
12557
|
-
"
|
|
12558
|
-
"gitDiffNum": "wm06mG_gitDiffNum",
|
|
12559
|
-
"editorImage": "wm06mG_editorImage",
|
|
12540
|
+
"editorTreePanel": "wm06mG_editorTreePanel",
|
|
12541
|
+
"terminalDepsNote": "wm06mG_terminalDepsNote",
|
|
12542
|
+
"editorBanner": "wm06mG_editorBanner",
|
|
12543
|
+
"cornerHandle": "wm06mG_cornerHandle",
|
|
12544
|
+
"dropCenter": "wm06mG_dropCenter",
|
|
12545
|
+
"pinnedSessionsList": "wm06mG_pinnedSessionsList",
|
|
12560
12546
|
"terminalWrap": "wm06mG_terminalWrap",
|
|
12561
|
-
"
|
|
12547
|
+
"divider": "wm06mG_divider",
|
|
12548
|
+
"gitDiffAdd": "wm06mG_gitDiffAdd",
|
|
12549
|
+
"sandboxStatusText": "wm06mG_sandboxStatusText",
|
|
12550
|
+
"gitDiffTabHeader": "wm06mG_gitDiffTabHeader",
|
|
12551
|
+
"updateCommand": "wm06mG_updateCommand",
|
|
12552
|
+
"accountAvatar": "wm06mG_accountAvatar",
|
|
12553
|
+
"editorSearchResult": "wm06mG_editorSearchResult",
|
|
12554
|
+
"tabBadge": "wm06mG_tabBadge",
|
|
12555
|
+
"gitRow": "wm06mG_gitRow",
|
|
12556
|
+
"paneCard": "wm06mG_paneCard",
|
|
12557
|
+
"browserMessage": "wm06mG_browserMessage",
|
|
12558
|
+
"releaseNotesContent": "wm06mG_releaseNotesContent",
|
|
12559
|
+
"explorerName": "wm06mG_explorerName",
|
|
12560
|
+
"dropOverlay": "wm06mG_dropOverlay",
|
|
12561
|
+
"terminalRetry": "wm06mG_terminalRetry",
|
|
12562
|
+
"gitDiffFileChevronExpanded": "wm06mG_gitDiffFileChevronExpanded",
|
|
12563
|
+
"gitDiffLine": "wm06mG_gitDiffLine",
|
|
12564
|
+
"gitWorktreeRow": "wm06mG_gitWorktreeRow",
|
|
12565
|
+
"toggleCluster": "wm06mG_toggleCluster",
|
|
12566
|
+
"editorError": "wm06mG_editorError",
|
|
12567
|
+
"openWithPinActive": "wm06mG_openWithPinActive",
|
|
12568
|
+
"paneTabHidden": "wm06mG_paneTabHidden",
|
|
12562
12569
|
"gitDiffCtx": "wm06mG_gitDiffCtx",
|
|
12563
|
-
"
|
|
12564
|
-
"
|
|
12565
|
-
"
|
|
12566
|
-
"
|
|
12567
|
-
"
|
|
12568
|
-
"
|
|
12569
|
-
"editorModeButton": "wm06mG_editorModeButton",
|
|
12570
|
-
"mermaidModal": "wm06mG_mermaidModal",
|
|
12571
|
-
"editorPdfDragShieldActive": "wm06mG_editorPdfDragShieldActive",
|
|
12572
|
-
"explorerDir": "wm06mG_explorerDir",
|
|
12573
|
-
"explorerCopied": "wm06mG_explorerCopied",
|
|
12574
|
-
"boundaryError": "wm06mG_boundaryError",
|
|
12575
|
-
"floatClose": "wm06mG_floatClose",
|
|
12576
|
-
"editorTreeToggleActive": "wm06mG_editorTreeToggleActive"
|
|
12570
|
+
"editorHeader": "wm06mG_editorHeader",
|
|
12571
|
+
"browserInput": "wm06mG_browserInput",
|
|
12572
|
+
"accountDropdown": "wm06mG_accountDropdown",
|
|
12573
|
+
"terminalRepairCommand": "wm06mG_terminalRepairCommand",
|
|
12574
|
+
"mermaidModal": "wm06mG_mermaidModal",
|
|
12575
|
+
"floatResize": "wm06mG_floatResize"
|
|
12577
12576
|
};
|
|
12578
12577
|
//#endregion
|
|
12579
12578
|
//#region src/client/intercept.tsx
|
|
@@ -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 = {
|
|
15169
|
-
"suffix": "_9N6Bdq_suffix",
|
|
15170
15176
|
"openWithEditorInput": "_9N6Bdq_openWithEditorInput",
|
|
15171
|
-
"openWithHint": "_9N6Bdq_openWithHint",
|
|
15172
|
-
"cardTop": "_9N6Bdq_cardTop",
|
|
15173
|
-
"selectOptionIcon": "_9N6Bdq_selectOptionIcon",
|
|
15174
|
-
"card": "_9N6Bdq_card",
|
|
15175
|
-
"rowGear": "_9N6Bdq_rowGear",
|
|
15176
|
-
"pluginDesc": "_9N6Bdq_pluginDesc",
|
|
15177
|
-
"selectOptionText": "_9N6Bdq_selectOptionText",
|
|
15178
|
-
"typedInputNumber": "_9N6Bdq_typedInputNumber",
|
|
15179
|
-
"openWithEditorRow": "_9N6Bdq_openWithEditorRow",
|
|
15180
|
-
"selectAnchorIcon": "_9N6Bdq_selectAnchorIcon",
|
|
15181
15177
|
"popupRow": "_9N6Bdq_popupRow",
|
|
15182
|
-
"
|
|
15178
|
+
"count": "_9N6Bdq_count",
|
|
15179
|
+
"cardSettings": "_9N6Bdq_cardSettings",
|
|
15180
|
+
"selectOption": "_9N6Bdq_selectOption",
|
|
15181
|
+
"cardTitle": "_9N6Bdq_cardTitle",
|
|
15182
|
+
"typedInput": "_9N6Bdq_typedInput",
|
|
15183
|
+
"pluginSearch": "_9N6Bdq_pluginSearch",
|
|
15183
15184
|
"pluginEmpty": "_9N6Bdq_pluginEmpty",
|
|
15184
|
-
"
|
|
15185
|
+
"typedInputNumber": "_9N6Bdq_typedInputNumber",
|
|
15186
|
+
"pluginEntryHead": "_9N6Bdq_pluginEntryHead",
|
|
15185
15187
|
"pluginTopicBtn": "_9N6Bdq_pluginTopicBtn",
|
|
15186
|
-
"
|
|
15187
|
-
"
|
|
15188
|
+
"row": "_9N6Bdq_row",
|
|
15189
|
+
"cardSwitchThumb": "_9N6Bdq_cardSwitchThumb",
|
|
15188
15190
|
"selectAnchor": "_9N6Bdq_selectAnchor",
|
|
15189
|
-
"
|
|
15190
|
-
"
|
|
15191
|
-
"popupRows": "_9N6Bdq_popupRows",
|
|
15192
|
-
"pluginEntryActions": "_9N6Bdq_pluginEntryActions",
|
|
15193
|
-
"section": "_9N6Bdq_section",
|
|
15194
|
-
"cardMain": "_9N6Bdq_cardMain",
|
|
15195
|
-
"typedInput": "_9N6Bdq_typedInput",
|
|
15191
|
+
"cardSwitch": "_9N6Bdq_cardSwitch",
|
|
15192
|
+
"addCard": "_9N6Bdq_addCard",
|
|
15196
15193
|
"pluginInstall": "_9N6Bdq_pluginInstall",
|
|
15197
|
-
"
|
|
15198
|
-
"desc": "_9N6Bdq_desc",
|
|
15199
|
-
"switch": "_9N6Bdq_switch",
|
|
15200
|
-
"switchInput": "_9N6Bdq_switchInput",
|
|
15201
|
-
"pluginSearch": "_9N6Bdq_pluginSearch",
|
|
15202
|
-
"openWithRemove": "_9N6Bdq_openWithRemove",
|
|
15194
|
+
"openWithFamily": "_9N6Bdq_openWithFamily",
|
|
15203
15195
|
"group": "_9N6Bdq_group",
|
|
15204
|
-
"
|
|
15205
|
-
"
|
|
15206
|
-
"
|
|
15196
|
+
"grid": "_9N6Bdq_grid",
|
|
15197
|
+
"desc": "_9N6Bdq_desc",
|
|
15198
|
+
"cardMain": "_9N6Bdq_cardMain",
|
|
15199
|
+
"title": "_9N6Bdq_title",
|
|
15200
|
+
"selectOptionText": "_9N6Bdq_selectOptionText",
|
|
15201
|
+
"pluginGroupHeading": "_9N6Bdq_pluginGroupHeading",
|
|
15207
15202
|
"done": "_9N6Bdq_done",
|
|
15208
|
-
"
|
|
15209
|
-
"
|
|
15210
|
-
"error": "_9N6Bdq_error",
|
|
15211
|
-
"openWithFamily": "_9N6Bdq_openWithFamily",
|
|
15203
|
+
"section": "_9N6Bdq_section",
|
|
15204
|
+
"openWithEditorTemplate": "_9N6Bdq_openWithEditorTemplate",
|
|
15212
15205
|
"switchTrack": "_9N6Bdq_switchTrack",
|
|
15213
|
-
"
|
|
15214
|
-
"percentInput": "_9N6Bdq_percentInput",
|
|
15215
|
-
"selectOption": "_9N6Bdq_selectOption",
|
|
15216
|
-
"pluginEntry": "_9N6Bdq_pluginEntry",
|
|
15217
|
-
"pluginName": "_9N6Bdq_pluginName",
|
|
15206
|
+
"cardIconChip": "_9N6Bdq_cardIconChip",
|
|
15218
15207
|
"popupDialog": "_9N6Bdq_popupDialog",
|
|
15219
|
-
"
|
|
15220
|
-
"
|
|
15221
|
-
"
|
|
15208
|
+
"selectOptionIcon": "_9N6Bdq_selectOptionIcon",
|
|
15209
|
+
"intro": "_9N6Bdq_intro",
|
|
15210
|
+
"openWithEditorRow": "_9N6Bdq_openWithEditorRow",
|
|
15211
|
+
"control": "_9N6Bdq_control",
|
|
15222
15212
|
"pluginModal": "_9N6Bdq_pluginModal",
|
|
15223
|
-
"cardSwitchThumb": "_9N6Bdq_cardSwitchThumb",
|
|
15224
15213
|
"pluginJumpBtn": "_9N6Bdq_pluginJumpBtn",
|
|
15225
|
-
"
|
|
15226
|
-
"title": "_9N6Bdq_title",
|
|
15214
|
+
"pluginEntries": "_9N6Bdq_pluginEntries",
|
|
15227
15215
|
"pluginList": "_9N6Bdq_pluginList",
|
|
15228
|
-
"
|
|
15229
|
-
"
|
|
15230
|
-
"
|
|
15231
|
-
"
|
|
15216
|
+
"popupRows": "_9N6Bdq_popupRows",
|
|
15217
|
+
"pluginEntry": "_9N6Bdq_pluginEntry",
|
|
15218
|
+
"cardTop": "_9N6Bdq_cardTop",
|
|
15219
|
+
"pluginDesc": "_9N6Bdq_pluginDesc",
|
|
15220
|
+
"selectAnchorIcon": "_9N6Bdq_selectAnchorIcon",
|
|
15221
|
+
"card": "_9N6Bdq_card",
|
|
15222
|
+
"cssTextArea": "_9N6Bdq_cssTextArea",
|
|
15223
|
+
"cardDesc": "_9N6Bdq_cardDesc",
|
|
15224
|
+
"pluginEntryActions": "_9N6Bdq_pluginEntryActions",
|
|
15225
|
+
"percentInput": "_9N6Bdq_percentInput",
|
|
15226
|
+
"openWithRemove": "_9N6Bdq_openWithRemove",
|
|
15232
15227
|
"cardOn": "_9N6Bdq_cardOn",
|
|
15233
|
-
"
|
|
15234
|
-
"
|
|
15228
|
+
"cardSwitchTrack": "_9N6Bdq_cardSwitchTrack",
|
|
15229
|
+
"switch": "_9N6Bdq_switch",
|
|
15230
|
+
"pluginCopyBtn": "_9N6Bdq_pluginCopyBtn",
|
|
15231
|
+
"pluginGroup": "_9N6Bdq_pluginGroup",
|
|
15232
|
+
"pluginName": "_9N6Bdq_pluginName",
|
|
15233
|
+
"switchInput": "_9N6Bdq_switchInput",
|
|
15234
|
+
"selectAnchorText": "_9N6Bdq_selectAnchorText",
|
|
15235
|
+
"error": "_9N6Bdq_error",
|
|
15236
|
+
"rowGear": "_9N6Bdq_rowGear",
|
|
15237
|
+
"suffix": "_9N6Bdq_suffix",
|
|
15238
|
+
"rowText": "_9N6Bdq_rowText",
|
|
15239
|
+
"switchThumb": "_9N6Bdq_switchThumb",
|
|
15240
|
+
"openWithHint": "_9N6Bdq_openWithHint",
|
|
15241
|
+
"groupHeading": "_9N6Bdq_groupHeading"
|
|
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,36 +17219,36 @@ window.__ModuleLoader__.load({
|
|
|
17210
17219
|
document.head.appendChild(tag);
|
|
17211
17220
|
}
|
|
17212
17221
|
var PluginMarketView_module_css_default = {
|
|
17222
|
+
"actions": "ZPnUbq_actions",
|
|
17223
|
+
"directoryCrumbs": "ZPnUbq_directoryCrumbs",
|
|
17224
|
+
"subtitle": "ZPnUbq_subtitle",
|
|
17225
|
+
"marketCard": "ZPnUbq_marketCard",
|
|
17226
|
+
"projectInstall": "ZPnUbq_projectInstall",
|
|
17227
|
+
"projectRow": "ZPnUbq_projectRow",
|
|
17228
|
+
"description": "ZPnUbq_description",
|
|
17229
|
+
"head": "ZPnUbq_head",
|
|
17213
17230
|
"card": "ZPnUbq_card",
|
|
17214
17231
|
"operation": "ZPnUbq_operation",
|
|
17232
|
+
"directoryPath": "ZPnUbq_directoryPath",
|
|
17233
|
+
"meta": "ZPnUbq_meta",
|
|
17215
17234
|
"project": "ZPnUbq_project",
|
|
17216
|
-
"
|
|
17235
|
+
"directoryList": "ZPnUbq_directoryList",
|
|
17236
|
+
"spinning": "ZPnUbq_spinning",
|
|
17217
17237
|
"marketRefresh": "ZPnUbq_marketRefresh",
|
|
17238
|
+
"tabs": "ZPnUbq_tabs",
|
|
17218
17239
|
"title": "ZPnUbq_title",
|
|
17219
|
-
"
|
|
17240
|
+
"cardHead": "ZPnUbq_cardHead",
|
|
17241
|
+
"toolbar": "ZPnUbq_toolbar",
|
|
17220
17242
|
"installPath": "ZPnUbq_installPath",
|
|
17221
|
-
"description": "ZPnUbq_description",
|
|
17222
|
-
"head": "ZPnUbq_head",
|
|
17223
|
-
"subtitle": "ZPnUbq_subtitle",
|
|
17224
|
-
"error": "ZPnUbq_error",
|
|
17225
|
-
"tabs": "ZPnUbq_tabs",
|
|
17226
|
-
"confirmPath": "ZPnUbq_confirmPath",
|
|
17227
|
-
"directoryList": "ZPnUbq_directoryList",
|
|
17228
|
-
"projectPicker": "ZPnUbq_projectPicker",
|
|
17229
|
-
"spinning": "ZPnUbq_spinning",
|
|
17230
|
-
"actions": "ZPnUbq_actions",
|
|
17231
17243
|
"breadcrumb": "ZPnUbq_breadcrumb",
|
|
17232
|
-
"
|
|
17233
|
-
"projectRow": "ZPnUbq_projectRow",
|
|
17234
|
-
"enter": "ZPnUbq_enter",
|
|
17235
|
-
"meta": "ZPnUbq_meta",
|
|
17236
|
-
"directoryCrumbs": "ZPnUbq_directoryCrumbs",
|
|
17237
|
-
"marketCard": "ZPnUbq_marketCard",
|
|
17238
|
-
"directoryPath": "ZPnUbq_directoryPath",
|
|
17244
|
+
"projectPicker": "ZPnUbq_projectPicker",
|
|
17239
17245
|
"warning": "ZPnUbq_warning",
|
|
17240
|
-
"
|
|
17246
|
+
"enter": "ZPnUbq_enter",
|
|
17247
|
+
"root": "ZPnUbq_root",
|
|
17248
|
+
"confirmPath": "ZPnUbq_confirmPath",
|
|
17249
|
+
"error": "ZPnUbq_error",
|
|
17241
17250
|
"grid": "ZPnUbq_grid",
|
|
17242
|
-
"
|
|
17251
|
+
"state": "ZPnUbq_state",
|
|
17243
17252
|
"notice": "ZPnUbq_notice"
|
|
17244
17253
|
};
|
|
17245
17254
|
//#endregion
|
|
@@ -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,933 +19682,435 @@ 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
|
-
/** Browser lifecycle only; all account and credential decisions belong to the host service. */
|
|
19676
|
-
function useChatcodeAccount() {
|
|
19677
|
-
const [chatcode, setChatcode] = (0, react.useState)();
|
|
19678
|
-
const [busy, setBusy] = (0, react.useState)(false);
|
|
19679
|
-
const [error, setError] = (0, react.useState)();
|
|
19680
|
-
const [loginUrl, setLoginUrl] = (0, react.useState)();
|
|
19681
|
-
const [revision, setRevision] = (0, react.useState)(0);
|
|
19682
|
-
const busyRef = (0, react.useRef)(false);
|
|
19683
|
-
const mounted = (0, react.useRef)(false);
|
|
19684
|
-
const request = (0, react.useRef)();
|
|
19685
|
-
const attempt = (0, react.useRef)();
|
|
19686
|
-
(0, react.useEffect)(() => {
|
|
19687
|
-
mounted.current = true;
|
|
19688
|
-
return () => {
|
|
19689
|
-
mounted.current = false;
|
|
19690
|
-
};
|
|
19691
|
-
}, []);
|
|
19692
|
-
(0, react.useEffect)(() => {
|
|
19693
|
-
const controller = new AbortController();
|
|
19694
|
-
request.current = controller;
|
|
19695
|
-
let timer;
|
|
19696
|
-
let running = false;
|
|
19697
|
-
const refresh = async () => {
|
|
19698
|
-
if (controller.signal.aborted || running || busyRef.current) return;
|
|
19699
|
-
clearTimeout(timer);
|
|
19700
|
-
running = true;
|
|
19701
|
-
try {
|
|
19702
|
-
const state = await api.chatcodeStatus(controller.signal);
|
|
19703
|
-
if (controller.signal.aborted) return;
|
|
19704
|
-
setChatcode(state);
|
|
19705
|
-
setError((current) => current === "status" ? void 0 : current);
|
|
19706
|
-
const local = attempt.current;
|
|
19707
|
-
if (local && state.login?.sessionId === local.sessionId && state.login.state === "succeeded" && state.validation === "valid") {
|
|
19708
|
-
try {
|
|
19709
|
-
local.popup?.close();
|
|
19710
|
-
window.focus();
|
|
19711
|
-
} catch {}
|
|
19712
|
-
attempt.current = void 0;
|
|
19713
|
-
setLoginUrl(void 0);
|
|
19714
|
-
} else if (local && (state.login?.sessionId !== local.sessionId || state.login.state !== "pending")) {
|
|
19715
|
-
try {
|
|
19716
|
-
local.popup?.close();
|
|
19717
|
-
} catch {}
|
|
19718
|
-
attempt.current = void 0;
|
|
19719
|
-
setLoginUrl(void 0);
|
|
19720
|
-
}
|
|
19721
|
-
} catch {
|
|
19722
|
-
if (!controller.signal.aborted) setError("status");
|
|
19723
|
-
} finally {
|
|
19724
|
-
running = false;
|
|
19725
|
-
if (!controller.signal.aborted) timer = setTimeout(() => {
|
|
19726
|
-
refresh();
|
|
19727
|
-
}, 2e3);
|
|
19728
|
-
}
|
|
19729
|
-
};
|
|
19730
|
-
refresh();
|
|
19731
|
-
const visible = () => {
|
|
19732
|
-
if (document.visibilityState === "visible") refresh();
|
|
19733
|
-
};
|
|
19734
|
-
document.addEventListener("visibilitychange", visible);
|
|
19735
|
-
return () => {
|
|
19736
|
-
controller.abort();
|
|
19737
|
-
clearTimeout(timer);
|
|
19738
|
-
document.removeEventListener("visibilitychange", visible);
|
|
19739
|
-
};
|
|
19740
|
-
}, [revision]);
|
|
19741
|
-
const operate = (action) => {
|
|
19742
|
-
if (busyRef.current) return;
|
|
19743
|
-
busyRef.current = true;
|
|
19744
|
-
request.current?.abort();
|
|
19745
|
-
setBusy(true);
|
|
19746
|
-
setError(void 0);
|
|
19747
|
-
action().catch(() => {
|
|
19748
|
-
if (mounted.current) setError("operation");
|
|
19749
|
-
}).finally(() => {
|
|
19750
|
-
busyRef.current = false;
|
|
19751
|
-
if (mounted.current) {
|
|
19752
|
-
setBusy(false);
|
|
19753
|
-
setRevision((value) => value + 1);
|
|
19754
|
-
}
|
|
19755
|
-
});
|
|
19756
|
-
};
|
|
19757
|
-
const startLogin = () => {
|
|
19758
|
-
if (busyRef.current) return;
|
|
19759
|
-
let popup = null;
|
|
19760
|
-
try {
|
|
19761
|
-
popup = window.open("", "_blank");
|
|
19762
|
-
if (popup) popup.opener = null;
|
|
19763
|
-
} catch {
|
|
19764
|
-
popup = null;
|
|
19765
|
-
}
|
|
19766
|
-
operate(async () => {
|
|
19767
|
-
try {
|
|
19768
|
-
const start = await api.chatcodeStart();
|
|
19769
|
-
if (!mounted.current) {
|
|
19770
|
-
popup?.close();
|
|
19771
|
-
return;
|
|
19772
|
-
}
|
|
19773
|
-
try {
|
|
19774
|
-
attempt.current?.popup?.close();
|
|
19775
|
-
} catch {}
|
|
19776
|
-
attempt.current = {
|
|
19777
|
-
sessionId: start.sessionId,
|
|
19778
|
-
popup
|
|
19779
|
-
};
|
|
19780
|
-
setLoginUrl(start.url);
|
|
19781
|
-
setChatcode((current) => ({
|
|
19782
|
-
...current,
|
|
19783
|
-
available: true,
|
|
19784
|
-
login: {
|
|
19785
|
-
sessionId: start.sessionId,
|
|
19786
|
-
state: "pending",
|
|
19787
|
-
expiresAtMs: 0
|
|
19788
|
-
}
|
|
19789
|
-
}));
|
|
19790
|
-
try {
|
|
19791
|
-
if (popup && !popup.closed) popup.location.href = start.url;
|
|
19792
|
-
} catch {}
|
|
19793
|
-
} catch (error) {
|
|
19794
|
-
try {
|
|
19795
|
-
popup?.close();
|
|
19796
|
-
} catch {}
|
|
19797
|
-
throw error;
|
|
19798
|
-
}
|
|
19799
|
-
});
|
|
19800
|
-
};
|
|
19801
|
-
const logout = () => operate(async () => {
|
|
19802
|
-
await api.chatcodeLogout();
|
|
19803
|
-
if (!mounted.current) return;
|
|
19804
|
-
try {
|
|
19805
|
-
attempt.current?.popup?.close();
|
|
19806
|
-
} catch {}
|
|
19807
|
-
attempt.current = void 0;
|
|
19808
|
-
setLoginUrl(void 0);
|
|
19809
|
-
setChatcode({
|
|
19810
|
-
available: true,
|
|
19811
|
-
configured: false,
|
|
19812
|
-
expired: false,
|
|
19813
|
-
validation: "none"
|
|
19814
|
-
});
|
|
19815
|
-
});
|
|
19816
|
-
const cancelLogin = () => {
|
|
19817
|
-
const sessionId = chatcode?.login?.sessionId;
|
|
19818
|
-
if (sessionId) operate(async () => {
|
|
19819
|
-
await api.chatcodeCancel(sessionId);
|
|
19820
|
-
});
|
|
19821
|
-
};
|
|
19822
|
-
return {
|
|
19823
|
-
chatcode,
|
|
19824
|
-
busy,
|
|
19825
|
-
error,
|
|
19826
|
-
loginUrl,
|
|
19827
|
-
startLogin,
|
|
19828
|
-
logout,
|
|
19829
|
-
cancelLogin
|
|
19830
|
-
};
|
|
19831
|
-
}
|
|
19832
|
-
//#endregion
|
|
19833
|
-
//#region src/client/chatcode-login-route.ts
|
|
19834
|
-
/** Build the local ChatCode login gate URL while preserving the current page. */
|
|
19835
|
-
function chatcodeLoginRoute(location) {
|
|
19836
|
-
const back = `${location.pathname}${location.search}${location.hash}`;
|
|
19837
|
-
return `/sidebar/login?return=${encodeURIComponent(back)}`;
|
|
19838
|
-
}
|
|
19839
|
-
/** Enter the existing local login flow after account state cannot be read. */
|
|
19840
|
-
function redirectToChatcodeLogin(location = window.location) {
|
|
19841
|
-
if (location.pathname === "/sidebar/login") return;
|
|
19842
|
-
location.replace(chatcodeLoginRoute(location));
|
|
19843
|
-
}
|
|
19844
|
-
//#endregion
|
|
19845
|
-
//#region src/client/LogoutConfirmDialog.tsx
|
|
19846
|
-
/** Native modal supplies an inert background and default Cancel focus until a choice is made. */
|
|
19847
|
-
function LogoutConfirmDialog({ onCancel, onConfirm }) {
|
|
19848
|
-
const ref = (0, react.useRef)(null);
|
|
19849
|
-
const titleId = (0, react.useId)();
|
|
19850
|
-
const descriptionId = (0, react.useId)();
|
|
19851
|
-
(0, react.useEffect)(() => {
|
|
19852
|
-
const dialog = ref.current;
|
|
19853
|
-
dialog?.showModal();
|
|
19854
|
-
return () => {
|
|
19855
|
-
if (dialog?.open) dialog.close();
|
|
19856
|
-
};
|
|
19857
|
-
}, []);
|
|
19858
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dialog", {
|
|
19859
|
-
ref,
|
|
19860
|
-
className: sidebar_module_css_default.accountLogoutDialog,
|
|
19861
|
-
role: "alertdialog",
|
|
19862
|
-
"aria-modal": "true",
|
|
19863
|
-
"aria-labelledby": titleId,
|
|
19864
|
-
"aria-describedby": descriptionId,
|
|
19865
|
-
onCancel: (event) => {
|
|
19866
|
-
event.preventDefault();
|
|
19867
|
-
onCancel();
|
|
19868
|
-
},
|
|
19869
|
-
onKeyDown: (event) => {
|
|
19870
|
-
event.stopPropagation();
|
|
19871
|
-
},
|
|
19872
|
-
children: [
|
|
19873
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
19874
|
-
id: titleId,
|
|
19875
|
-
className: sidebar_module_css_default.accountLogoutTitle,
|
|
19876
|
-
children: t("accountMenuLogoutConfirmTitle")
|
|
19877
|
-
}),
|
|
19878
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
19879
|
-
id: descriptionId,
|
|
19880
|
-
className: sidebar_module_css_default.accountLogoutDescription,
|
|
19881
|
-
children: t("accountMenuLogoutConfirmDescription")
|
|
19882
|
-
}),
|
|
19883
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
19884
|
-
className: sidebar_module_css_default.accountLogoutActions,
|
|
19885
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
19886
|
-
type: "button",
|
|
19887
|
-
autoFocus: true,
|
|
19888
|
-
onClick: onCancel,
|
|
19889
|
-
children: t("cancel")
|
|
19890
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
19891
|
-
type: "button",
|
|
19892
|
-
className: sidebar_module_css_default.accountLogoutConfirm,
|
|
19893
|
-
onClick: onConfirm,
|
|
19894
|
-
children: t("accountMenuLogout")
|
|
19895
|
-
})]
|
|
19896
|
-
})
|
|
19897
|
-
]
|
|
19898
|
-
});
|
|
19899
|
-
}
|
|
19900
|
-
//#endregion
|
|
19901
|
-
//#region src/client/AccountMenu.tsx
|
|
19685
|
+
//#region src/client/Sidebar.tsx
|
|
19902
19686
|
/**
|
|
19903
|
-
*
|
|
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.
|
|
19904
19711
|
*
|
|
19905
|
-
*
|
|
19906
|
-
*
|
|
19907
|
-
*
|
|
19908
|
-
*
|
|
19909
|
-
*
|
|
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.
|
|
19910
19719
|
*/
|
|
19911
|
-
|
|
19912
|
-
|
|
19913
|
-
|
|
19914
|
-
|
|
19915
|
-
|
|
19916
|
-
|
|
19917
|
-
|
|
19918
|
-
|
|
19919
|
-
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
function
|
|
19926
|
-
|
|
19927
|
-
|
|
19928
|
-
|
|
19929
|
-
|
|
19930
|
-
return rect.left < window.innerWidth * .4 && rect.bottom > window.innerHeight - 120;
|
|
19931
|
-
}).sort((a, b) => b.getBoundingClientRect().bottom - a.getBoundingClientRect().bottom)[0];
|
|
19932
|
-
}
|
|
19933
|
-
/** Find the left navigation rail's usable width from the native launcher. */
|
|
19934
|
-
function railWidthOf(button) {
|
|
19935
|
-
let element = button?.parentElement ?? null;
|
|
19936
|
-
for (let depth = 0; element !== null && depth < 8; depth += 1, element = element.parentElement) {
|
|
19937
|
-
const rect = element.getBoundingClientRect();
|
|
19938
|
-
if (rect.left <= 8 && rect.width >= 160 && rect.width <= window.innerWidth * .5) return Math.round(rect.width);
|
|
19939
|
-
}
|
|
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;
|
|
19940
19739
|
}
|
|
19941
|
-
function
|
|
19942
|
-
|
|
19943
|
-
|
|
19944
|
-
|
|
19945
|
-
|
|
19946
|
-
|
|
19947
|
-
|
|
19948
|
-
|
|
19949
|
-
|
|
19950
|
-
|
|
19951
|
-
|
|
19952
|
-
|
|
19953
|
-
|
|
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 })]
|
|
19954
19754
|
})
|
|
19955
19755
|
});
|
|
19956
19756
|
}
|
|
19957
|
-
/**
|
|
19958
|
-
|
|
19959
|
-
|
|
19960
|
-
|
|
19961
|
-
|
|
19962
|
-
|
|
19963
|
-
|
|
19964
|
-
|
|
19965
|
-
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19970
|
-
|
|
19971
|
-
|
|
19972
|
-
|
|
19973
|
-
|
|
19974
|
-
|
|
19975
|
-
|
|
19976
|
-
|
|
19977
|
-
|
|
19757
|
+
/**
|
|
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.
|
|
19769
|
+
*/
|
|
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;
|
|
19978
19794
|
}
|
|
19979
|
-
/**
|
|
19980
|
-
function
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
|
|
19984
|
-
|
|
19985
|
-
|
|
19986
|
-
|
|
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
|
|
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
|
+
}));
|
|
19988
19842
|
}
|
|
19989
|
-
function
|
|
19990
|
-
const
|
|
19991
|
-
const
|
|
19992
|
-
const
|
|
19993
|
-
|
|
19994
|
-
|
|
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);
|
|
19995
19857
|
(0, react.useEffect)(() => {
|
|
19996
|
-
|
|
19997
|
-
|
|
19998
|
-
|
|
19999
|
-
|
|
20000
|
-
|
|
20001
|
-
|
|
20002
|
-
|
|
20003
|
-
|
|
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);
|
|
20004
19866
|
(0, react.useEffect)(() => {
|
|
20005
|
-
const
|
|
20006
|
-
|
|
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)));
|
|
20007
19875
|
};
|
|
20008
|
-
|
|
19876
|
+
const onResize = () => {
|
|
19877
|
+
if (frame === null) frame = requestAnimationFrame(measure);
|
|
19878
|
+
};
|
|
19879
|
+
vv.addEventListener("resize", onResize);
|
|
19880
|
+
vv.addEventListener("scroll", onResize);
|
|
19881
|
+
measure();
|
|
20009
19882
|
return () => {
|
|
20010
|
-
|
|
19883
|
+
vv.removeEventListener("resize", onResize);
|
|
19884
|
+
vv.removeEventListener("scroll", onResize);
|
|
19885
|
+
if (frame !== null) cancelAnimationFrame(frame);
|
|
20011
19886
|
};
|
|
20012
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]));
|
|
20013
19892
|
(0, react.useEffect)(() => {
|
|
20014
|
-
|
|
20015
|
-
}, [
|
|
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;
|
|
20016
19909
|
(0, react.useEffect)(() => {
|
|
20017
|
-
|
|
20018
|
-
|
|
20019
|
-
|
|
20020
|
-
|
|
20021
|
-
const width = railWidthOf(next);
|
|
20022
|
-
if (width !== void 0) rootRef.current?.style.setProperty("--dsh-account-menu-width", `${width}px`);
|
|
20023
|
-
if (next === current) return;
|
|
20024
|
-
if (current !== void 0 && originalStyle !== void 0) current.style.cssText = originalStyle;
|
|
20025
|
-
current = next;
|
|
20026
|
-
originalStyle = current?.style.cssText;
|
|
20027
|
-
if (current !== void 0) current.style.visibility = "hidden";
|
|
19910
|
+
if (collapsed) document.body.setAttribute("data-dsh-sidebar-collapsed", "");
|
|
19911
|
+
else document.body.removeAttribute("data-dsh-sidebar-collapsed");
|
|
19912
|
+
return () => {
|
|
19913
|
+
document.body.removeAttribute("data-dsh-sidebar-collapsed");
|
|
20028
19914
|
};
|
|
20029
|
-
|
|
20030
|
-
|
|
20031
|
-
|
|
19915
|
+
}, [collapsed]);
|
|
19916
|
+
(0, react.useEffect)(() => {
|
|
19917
|
+
const root = document.documentElement;
|
|
19918
|
+
let nativeButton = null;
|
|
19919
|
+
let toolbarHost = null;
|
|
19920
|
+
let observedCluster = null;
|
|
19921
|
+
let resizeObserver;
|
|
19922
|
+
let frame = null;
|
|
19923
|
+
const measure = () => {
|
|
19924
|
+
frame = null;
|
|
19925
|
+
const next = document.querySelector(NATIVE_SIDEBAR_TOGGLE);
|
|
19926
|
+
if (next !== nativeButton) {
|
|
19927
|
+
resizeObserver?.disconnect();
|
|
19928
|
+
nativeButton?.removeAttribute("data-dsh-better-sidebar-toggle");
|
|
19929
|
+
nativeButton = next;
|
|
19930
|
+
}
|
|
19931
|
+
const nextToolbarHost = nativeToolbarHostOf(nativeButton);
|
|
19932
|
+
setNativeToolbarHost((current) => current === nextToolbarHost ? current : nextToolbarHost);
|
|
19933
|
+
document.body.toggleAttribute("data-dsh-native-sidebar-toggle", nextToolbarHost !== null);
|
|
19934
|
+
const cluster = document.querySelector("[data-dsh-toggle-cluster]");
|
|
19935
|
+
if (nextToolbarHost !== toolbarHost || cluster !== observedCluster) {
|
|
19936
|
+
resizeObserver?.disconnect();
|
|
19937
|
+
toolbarHost = nextToolbarHost;
|
|
19938
|
+
observedCluster = cluster;
|
|
19939
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
19940
|
+
resizeObserver = new ResizeObserver(scheduleMeasure);
|
|
19941
|
+
if (toolbarHost !== null) resizeObserver.observe(toolbarHost);
|
|
19942
|
+
if (observedCluster !== null) resizeObserver.observe(observedCluster);
|
|
19943
|
+
}
|
|
19944
|
+
}
|
|
19945
|
+
if (nativeButton !== null) {
|
|
19946
|
+
nativeButton.setAttribute("data-dsh-better-sidebar-toggle", "");
|
|
19947
|
+
nativeButton.setAttribute("aria-label", state?.panelOpen === true ? t("collapse") : t("expand"));
|
|
19948
|
+
const rect = (nextToolbarHost ?? nativeButton).getBoundingClientRect();
|
|
19949
|
+
root.style.setProperty("--dsh-native-sidebar-toggle-top", `${Math.round(rect.top)}px`);
|
|
19950
|
+
} else root.style.removeProperty("--dsh-native-sidebar-toggle-top");
|
|
19951
|
+
if (cluster !== null) {
|
|
19952
|
+
const reserve = Math.ceil(cluster.getBoundingClientRect().width) + 26;
|
|
19953
|
+
root.style.setProperty("--dsh-sidebar-toggle-reserve", `${reserve}px`);
|
|
19954
|
+
}
|
|
19955
|
+
};
|
|
19956
|
+
function scheduleMeasure() {
|
|
19957
|
+
if (frame !== null) return;
|
|
19958
|
+
frame = requestAnimationFrame(measure);
|
|
19959
|
+
}
|
|
19960
|
+
const interceptNativeClick = (event) => {
|
|
19961
|
+
if ((event.target instanceof Element ? event.target.closest(NATIVE_SIDEBAR_TOGGLE) : null) === null) return;
|
|
19962
|
+
event.stopPropagation();
|
|
19963
|
+
store.reduce(togglePanel);
|
|
19964
|
+
};
|
|
19965
|
+
document.addEventListener("click", interceptNativeClick, true);
|
|
19966
|
+
window.addEventListener("resize", scheduleMeasure);
|
|
19967
|
+
const mutationObserver = new MutationObserver(scheduleMeasure);
|
|
19968
|
+
mutationObserver.observe(document.body, {
|
|
20032
19969
|
childList: true,
|
|
20033
|
-
subtree: true
|
|
20034
|
-
characterData: true
|
|
19970
|
+
subtree: true
|
|
20035
19971
|
});
|
|
19972
|
+
measure();
|
|
20036
19973
|
return () => {
|
|
20037
|
-
|
|
20038
|
-
|
|
19974
|
+
document.removeEventListener("click", interceptNativeClick, true);
|
|
19975
|
+
window.removeEventListener("resize", scheduleMeasure);
|
|
19976
|
+
mutationObserver.disconnect();
|
|
19977
|
+
resizeObserver?.disconnect();
|
|
19978
|
+
if (frame !== null) cancelAnimationFrame(frame);
|
|
19979
|
+
nativeButton?.removeAttribute("data-dsh-better-sidebar-toggle");
|
|
19980
|
+
document.body.removeAttribute("data-dsh-native-sidebar-toggle");
|
|
19981
|
+
root.style.removeProperty("--dsh-native-sidebar-toggle-top");
|
|
19982
|
+
root.style.removeProperty("--dsh-sidebar-toggle-reserve");
|
|
20039
19983
|
};
|
|
20040
|
-
}, []);
|
|
20041
|
-
const
|
|
20042
|
-
|
|
20043
|
-
|
|
20044
|
-
|
|
20045
|
-
const
|
|
20046
|
-
const
|
|
20047
|
-
|
|
20048
|
-
|
|
20049
|
-
|
|
20050
|
-
|
|
20051
|
-
|
|
20052
|
-
|
|
20053
|
-
|
|
20054
|
-
|
|
20055
|
-
|
|
20056
|
-
|
|
20057
|
-
|
|
20058
|
-
|
|
20059
|
-
|
|
20060
|
-
|
|
20061
|
-
|
|
20062
|
-
|
|
20063
|
-
|
|
20064
|
-
|
|
20065
|
-
|
|
20066
|
-
|
|
20067
|
-
|
|
20068
|
-
|
|
20069
|
-
|
|
20070
|
-
|
|
20071
|
-
|
|
20072
|
-
|
|
20073
|
-
|
|
20074
|
-
|
|
20075
|
-
|
|
20076
|
-
|
|
20077
|
-
|
|
20078
|
-
|
|
20079
|
-
|
|
20080
|
-
|
|
20081
|
-
|
|
20082
|
-
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
|
|
20086
|
-
|
|
20087
|
-
|
|
20088
|
-
|
|
20089
|
-
|
|
20090
|
-
|
|
20091
|
-
|
|
20092
|
-
|
|
20093
|
-
|
|
20094
|
-
|
|
20095
|
-
|
|
20096
|
-
|
|
20097
|
-
|
|
20098
|
-
|
|
20099
|
-
|
|
20100
|
-
|
|
20101
|
-
|
|
20102
|
-
|
|
20103
|
-
|
|
20104
|
-
|
|
20105
|
-
|
|
20106
|
-
|
|
20107
|
-
|
|
20108
|
-
|
|
20109
|
-
|
|
20110
|
-
|
|
20111
|
-
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20124
|
-
|
|
20125
|
-
|
|
20126
|
-
|
|
20127
|
-
|
|
20128
|
-
|
|
20129
|
-
|
|
20130
|
-
|
|
20131
|
-
|
|
20132
|
-
|
|
20133
|
-
|
|
20134
|
-
|
|
20135
|
-
|
|
20136
|
-
|
|
20137
|
-
|
|
20138
|
-
|
|
20139
|
-
|
|
20140
|
-
|
|
20141
|
-
|
|
20142
|
-
children: [
|
|
20143
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20144
|
-
className: sidebar_module_css_default.accountAvatar,
|
|
20145
|
-
children: chatcodeName.slice(0, 1).toUpperCase()
|
|
20146
|
-
}),
|
|
20147
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20148
|
-
className: sidebar_module_css_default.accountName,
|
|
20149
|
-
children: chatcodeName
|
|
20150
|
-
}),
|
|
20151
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
20152
|
-
className: sidebar_module_css_default.accountPresence,
|
|
20153
|
-
style: { opacity: signedIn ? 1 : .25 },
|
|
20154
|
-
"aria-hidden": "true"
|
|
20155
|
-
})
|
|
20156
|
-
]
|
|
20157
|
-
}),
|
|
20158
|
-
logoutTarget !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LogoutConfirmDialog, {
|
|
20159
|
-
onCancel: () => {
|
|
20160
|
-
setLogoutTarget(void 0);
|
|
20161
|
-
},
|
|
20162
|
-
onConfirm: () => {
|
|
20163
|
-
setLogoutTarget(void 0);
|
|
20164
|
-
if (logoutTarget === "chatcode") logoutChatcode();
|
|
20165
|
-
else logout();
|
|
19984
|
+
}, [state?.panelOpen, store]);
|
|
19985
|
+
const desktopEnv = parseDesktopEnv();
|
|
19986
|
+
const wco = (0, react.useSyncExternalStore)((0, react.useMemo)(() => subscribeWco, []), getWcoSnapshot);
|
|
19987
|
+
const scheme = snapshot.prefs.titleBarScheme;
|
|
19988
|
+
const preset = scheme === "preset" ? getShellPreset(snapshot.prefs.titleBarPresetId) : void 0;
|
|
19989
|
+
const titleBarStrip = computeTitleBarStrip(desktopEnv, wco, scheme, preset, snapshot.prefs.titleBarStripPx);
|
|
19990
|
+
const titleBarCompat = titleBarStrip > 0;
|
|
19991
|
+
(0, react.useEffect)(() => {
|
|
19992
|
+
const root = document.documentElement;
|
|
19993
|
+
if (titleBarCompat) {
|
|
19994
|
+
document.body.setAttribute("data-dsh-title-bar-compat", "");
|
|
19995
|
+
root.style.setProperty("--dsh-title-bar-strip", `${titleBarStrip}px`);
|
|
19996
|
+
} else {
|
|
19997
|
+
document.body.removeAttribute("data-dsh-title-bar-compat");
|
|
19998
|
+
root.style.removeProperty("--dsh-title-bar-strip");
|
|
19999
|
+
}
|
|
20000
|
+
return () => {
|
|
20001
|
+
document.body.removeAttribute("data-dsh-title-bar-compat");
|
|
20002
|
+
root.style.removeProperty("--dsh-title-bar-strip");
|
|
20003
|
+
};
|
|
20004
|
+
}, [titleBarCompat, titleBarStrip]);
|
|
20005
|
+
const presetCss = scheme === "preset" ? preset?.css ?? "" : "";
|
|
20006
|
+
const customCss = scheme === "custom" ? snapshot.prefs.customCss : "";
|
|
20007
|
+
(0, react.useEffect)(() => {
|
|
20008
|
+
const tags = [];
|
|
20009
|
+
if (presetCss !== "") tags.push(injectUserCss("data-dsh-preset-css", preset?.id ?? "", presetCss));
|
|
20010
|
+
if (customCss !== "") tags.push(injectUserCss("data-dsh-custom-css", "custom", customCss));
|
|
20011
|
+
return () => {
|
|
20012
|
+
for (const tag of tags) tag.remove();
|
|
20013
|
+
};
|
|
20014
|
+
}, [
|
|
20015
|
+
presetCss,
|
|
20016
|
+
customCss,
|
|
20017
|
+
preset?.id
|
|
20018
|
+
]);
|
|
20019
|
+
/**
|
|
20020
|
+
* Bottom-panel merge on narrow viewports: whenever a session is current
|
|
20021
|
+
* while narrow (mount, session switch, or a desktop→narrow transition),
|
|
20022
|
+
* throw the bottom tree's tabs into the right tree. Idempotent — after
|
|
20023
|
+
* the first migration the bottom tree is empty and the reducer returns
|
|
20024
|
+
* the same reference, so this effect settles immediately.
|
|
20025
|
+
*/
|
|
20026
|
+
(0, react.useEffect)(() => {
|
|
20027
|
+
if (!narrow || sessionId === void 0) return;
|
|
20028
|
+
store.reduce(migrateBottomTabs);
|
|
20029
|
+
}, [
|
|
20030
|
+
narrow,
|
|
20031
|
+
sessionId,
|
|
20032
|
+
store
|
|
20033
|
+
]);
|
|
20034
|
+
const [fetchedCwd, setFetchedCwd] = (0, react.useState)(void 0);
|
|
20035
|
+
(0, react.useEffect)(() => {
|
|
20036
|
+
setFetchedCwd(void 0);
|
|
20037
|
+
if (sessionId === void 0 || summaryCwd !== void 0) return;
|
|
20038
|
+
let cancelled = false;
|
|
20039
|
+
api.sessionCwd({ sessionId }).then((result) => {
|
|
20040
|
+
if (!cancelled) setFetchedCwd(result.cwd);
|
|
20041
|
+
}).catch(() => {});
|
|
20042
|
+
return () => {
|
|
20043
|
+
cancelled = true;
|
|
20044
|
+
};
|
|
20045
|
+
}, [sessionId, summaryCwd]);
|
|
20046
|
+
const cwd = summaryCwd ?? fetchedCwd;
|
|
20047
|
+
/**
|
|
20048
|
+
* Agent terminals push: subscribe to the host's live list of agent-owned
|
|
20049
|
+
* terminals for this session (created by the model through the
|
|
20050
|
+
* `terminal_create` tool). The host pushes a JSON array on every
|
|
20051
|
+
* create / close / exit; the sidebar reconciles the list into tabs
|
|
20052
|
+
* (id `agent:<uuid>`, title from the agent). A disconnected socket
|
|
20053
|
+
* retries with a short backoff so a refresh or transient drop reattaches
|
|
20054
|
+
* the same shell without losing the agent's work — capped like the
|
|
20055
|
+
* terminal view's own reconnect loop, so a refused endpoint never spins
|
|
20056
|
+
* forever (the next session switch restarts the loop).
|
|
20057
|
+
* While the terminal tab type is disabled in settings, pushes are
|
|
20058
|
+
* ignored (no auto-added tabs); re-enabling makes the next push converge.
|
|
20059
|
+
*/
|
|
20060
|
+
(0, react.useEffect)(() => {
|
|
20061
|
+
if (sessionId === void 0) return;
|
|
20062
|
+
let socket = null;
|
|
20063
|
+
let retry;
|
|
20064
|
+
let closed = false;
|
|
20065
|
+
let failures = 0;
|
|
20066
|
+
const connect = () => {
|
|
20067
|
+
if (closed) return;
|
|
20068
|
+
const url = new URL("/sidebar/ws/agent-terminals", location.origin);
|
|
20069
|
+
url.protocol = url.protocol === "https:" ? "wss:" : "ws:";
|
|
20070
|
+
url.search = new URLSearchParams({ sessionId }).toString();
|
|
20071
|
+
socket = new WebSocket(url.toString());
|
|
20072
|
+
socket.onmessage = (event) => {
|
|
20073
|
+
if (typeof event.data !== "string") return;
|
|
20074
|
+
try {
|
|
20075
|
+
const list = JSON.parse(event.data);
|
|
20076
|
+
if (!Array.isArray(list)) return;
|
|
20077
|
+
store.reduce((s) => ctx.get("betterSidebar")?.isTabEnabled("terminal") === false ? s : reconcileAgentTerminals(s, list));
|
|
20078
|
+
} catch {}
|
|
20079
|
+
};
|
|
20080
|
+
socket.onclose = () => {
|
|
20081
|
+
if (closed) return;
|
|
20082
|
+
failures += 1;
|
|
20083
|
+
if (failures >= FAILURE_LIMIT) {
|
|
20084
|
+
console.error("[dsh-better-sidebar] agent-terminals connection failed; stopping reconnect loop", sessionId);
|
|
20085
|
+
return;
|
|
20166
20086
|
}
|
|
20167
|
-
|
|
20168
|
-
|
|
20169
|
-
|
|
20170
|
-
|
|
20171
|
-
|
|
20172
|
-
//#region src/client/Sidebar.tsx
|
|
20173
|
-
/**
|
|
20174
|
-
* The sidebar shell: panels mounted inside the unified panel host — a
|
|
20175
|
-
* fixed, viewport-sized containing block ([data-dsh-panel-host]) appended
|
|
20176
|
-
* to document.body — instead of individual fixed-position elements, so a
|
|
20177
|
-
* desktop shell's intermediate wrapper transforms can never hijack the
|
|
20178
|
-
* panels' fixed containing block (the core AppFrame owns the left sidebar /
|
|
20179
|
-
* center / details columns and has no right-side hole for plugins). The
|
|
20180
|
-
* right panel hosts the original workbench; the bottom panel hosts a
|
|
20181
|
-
* second, independent workbench. The bottom panel squeezes ONLY the center
|
|
20182
|
-
* column (the agent output area): it spans from the app shell's own left
|
|
20183
|
-
* sidebar to the right panel's left edge, so neither sidebar gives up any
|
|
20184
|
-
* position (the right panel keeps its full height). A persistent cluster at
|
|
20185
|
-
* the top-right corner toggles the bottom panel; the host's native rightbar
|
|
20186
|
-
* button toggles this plugin's right panel (with a plugin fallback on older
|
|
20187
|
-
* hosts). The right panel's width drags from its left edge, the bottom
|
|
20188
|
-
* panel's height from its top edge, and the shared corner drags both at once.
|
|
20189
|
-
* Current DSH hosts receive one integrated Session-header control group for
|
|
20190
|
-
* the bottom panel, right panel, and manual; older hosts keep the viewport
|
|
20191
|
-
* fallback. The whole layout lives in the per-session store, so switching
|
|
20192
|
-
* conversations swaps the sidebar.
|
|
20193
|
-
*
|
|
20194
|
-
* The shell binds the workbench actions to the store and dispatches tab
|
|
20195
|
-
* content to the views. New tabs come from the + menu (explorer / git /
|
|
20196
|
-
* terminal; editors open from the explorer). Tabs live in one tree only —
|
|
20197
|
-
* they never cross panels; only the panel sizes drag against each other.
|
|
20198
|
-
*
|
|
20199
|
-
* Narrow (mobile, <768px) viewports show ONLY the right sidebar: entering
|
|
20200
|
-
* narrow migrates the bottom panel's tabs INTO the right tree
|
|
20201
|
-
* (migrateBottomTabs) — one workbench, the bottom tabs thrown into its
|
|
20202
|
-
* strips. The right panel becomes a full-width drawer, the bottom panel
|
|
20203
|
-
* and its toggle button disappear, and the layout push is disabled (the
|
|
20204
|
-
* drawer floats). Widening does not migrate back: the tabs keep living in
|
|
20205
|
-
* the right tree.
|
|
20206
|
-
*/
|
|
20207
|
-
/** How many consecutive reconnect failures stop the agent-terminals push loop
|
|
20208
|
-
* (mirror of the terminal view's own cap; the loop restarts on session switch). */
|
|
20209
|
-
const FAILURE_LIMIT = 3;
|
|
20210
|
-
/** Public CLI documentation opened by the persistent top-right manual action. */
|
|
20211
|
-
const USER_MANUAL_URL = "https://chatcode.chinaunicom.cn/doc/cli/";
|
|
20212
|
-
/** Stable host affordance contributed by DSH's native right sidebar. */
|
|
20213
|
-
const NATIVE_SIDEBAR_TOGGLE = "button[data-sidebar-right-expand]";
|
|
20214
|
-
/** Stable container left behind when DSH's native right sidebar is open and
|
|
20215
|
-
* its expand button is therefore absent. The utilities row immediately before
|
|
20216
|
-
* it owns Session actions such as the log-download menu. */
|
|
20217
|
-
const NATIVE_HEADER_CORNER = "[data-conversation-header-corner]";
|
|
20218
|
-
/** Resolve the shared Session-actions row on both native-sidebar states.
|
|
20219
|
-
* Current DSH keeps the corner seat mounted while its expand control comes and
|
|
20220
|
-
* goes; older hosts fall back to the native button's own parent. */
|
|
20221
|
-
function nativeToolbarHostOf(nativeButton) {
|
|
20222
|
-
const corner = nativeButton?.closest(NATIVE_HEADER_CORNER) ?? document.querySelector(NATIVE_HEADER_CORNER);
|
|
20223
|
-
const utilities = corner?.previousElementSibling;
|
|
20224
|
-
if (utilities instanceof HTMLElement && utilities.parentElement === corner?.parentElement) return utilities;
|
|
20225
|
-
return nativeButton?.parentElement ?? null;
|
|
20226
|
-
}
|
|
20227
|
-
function UserManualButton() {
|
|
20228
|
-
const label = t("userManual");
|
|
20229
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
20230
|
-
label,
|
|
20231
|
-
side: "bottom",
|
|
20232
|
-
delayMs: 500,
|
|
20233
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
20234
|
-
type: "button",
|
|
20235
|
-
className: sidebar_module_css_default.manualButton,
|
|
20236
|
-
"aria-label": label,
|
|
20237
|
-
onClick: () => {
|
|
20238
|
-
window.open(USER_MANUAL_URL, "_blank", "noopener,noreferrer");
|
|
20239
|
-
},
|
|
20240
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconBookOutline16, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label })]
|
|
20241
|
-
})
|
|
20242
|
-
});
|
|
20243
|
-
}
|
|
20244
|
-
/**
|
|
20245
|
-
* OS file drags over the sidebar belong to the sidebar, not to the chat:
|
|
20246
|
-
* DSH's composer (InputBar) listens for file drags on the DOCUMENT and
|
|
20247
|
-
* answers with a full-screen "drop image here" mask plus image intake on
|
|
20248
|
-
* drop. Both panel-host render sites swallow the whole event quartet —
|
|
20249
|
-
* enter/over/leave/drop — so the region is a black hole to that document
|
|
20250
|
-
* listener. All four must be stopped: InputBar keeps an enter/leave depth
|
|
20251
|
-
* counter, and a leave that escapes without its matching enter unbalances
|
|
20252
|
-
* the count (this was the full-screen mask flickering over the sidebar).
|
|
20253
|
-
* The conversation column keeps DSH's native overlay and intake untouched;
|
|
20254
|
-
* gated on the 'Files' type so in-app drags (tab reorder, split zones)
|
|
20255
|
-
* propagate exactly as before.
|
|
20256
|
-
*/
|
|
20257
|
-
const swallowOsFileDrag = (event) => {
|
|
20258
|
-
if (!(event.dataTransfer?.types.includes("Files") ?? false)) return;
|
|
20259
|
-
event.preventDefault();
|
|
20260
|
-
event.stopPropagation();
|
|
20261
|
-
};
|
|
20262
|
-
/** The four drag events a file drag must never carry past the panel host. */
|
|
20263
|
-
const osFileDragShield = {
|
|
20264
|
-
onDragEnter: swallowOsFileDrag,
|
|
20265
|
-
onDragOver: swallowOsFileDrag,
|
|
20266
|
-
onDragLeave: swallowOsFileDrag,
|
|
20267
|
-
onDrop: swallowOsFileDrag
|
|
20268
|
-
};
|
|
20269
|
-
/**
|
|
20270
|
-
* Append one user-space stylesheet (preset or custom CSS) as a tagged
|
|
20271
|
-
* `<style>` element. The tag attribute carries the source identity so the
|
|
20272
|
-
* running configuration is inspectable in DevTools; the returned tag is
|
|
20273
|
-
* removed by the caller's effect cleanup.
|
|
20274
|
-
*/
|
|
20275
|
-
function injectUserCss(attr, id, cssText) {
|
|
20276
|
-
const tag = document.createElement("style");
|
|
20277
|
-
tag.setAttribute(attr, id);
|
|
20278
|
-
tag.textContent = cssText;
|
|
20279
|
-
document.head.appendChild(tag);
|
|
20280
|
-
return tag;
|
|
20281
|
-
}
|
|
20282
|
-
/** Render the content of one tab (dispatched by type). */
|
|
20283
|
-
const TabContent = (0, react.memo)(function TabContent(props) {
|
|
20284
|
-
const { tab, effectiveTabId, sessionId, cwd, expanded, revealed, onToggleDir, onReferenceFile, ctx, store, visible, onSubagentJump, onOpenDiff } = props;
|
|
20285
|
-
const scope = {
|
|
20286
|
-
sessionId,
|
|
20287
|
-
cwd
|
|
20288
|
-
};
|
|
20289
|
-
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
20290
|
-
if (descriptor === void 0) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrphanedTab, {
|
|
20291
|
-
ctx,
|
|
20292
|
-
store,
|
|
20293
|
-
scope,
|
|
20294
|
-
tab,
|
|
20295
|
-
visible
|
|
20296
|
-
});
|
|
20297
|
-
const componentTab = effectiveTabId !== void 0 ? {
|
|
20298
|
-
...tab,
|
|
20299
|
-
id: effectiveTabId
|
|
20300
|
-
} : tab;
|
|
20301
|
-
return (0, react.createElement)(RenderBoundary, { className: sidebar_module_css_default.tabBoundaryError }, (0, react.createElement)(descriptor.component, {
|
|
20302
|
-
ctx,
|
|
20303
|
-
store,
|
|
20304
|
-
scope,
|
|
20305
|
-
tab: componentTab,
|
|
20306
|
-
visible,
|
|
20307
|
-
expanded,
|
|
20308
|
-
revealed,
|
|
20309
|
-
onToggleDir,
|
|
20310
|
-
onReferenceFile,
|
|
20311
|
-
onOpenDiff,
|
|
20312
|
-
onSubagentJump
|
|
20313
|
-
}));
|
|
20314
|
-
}, tabContentCompare);
|
|
20315
|
-
/** The + menu options for the current state, driven by the tab registry.
|
|
20316
|
-
* Hidden tabs (editor/diff) never show; `available` returning false shows
|
|
20317
|
-
* a disabled row (e.g. terminal at capacity) instead of hiding the option.
|
|
20318
|
-
* Tabs the user disabled in the side card settings are filtered out
|
|
20319
|
-
* entirely — re-enabling them is the settings page's job. */
|
|
20320
|
-
function buildNewTabOptions(state, ctx, scope) {
|
|
20321
|
-
const service = ctx.get("betterSidebar");
|
|
20322
|
-
if (service === void 0) return [];
|
|
20323
|
-
return service.getTabs().filter((d) => !d.hidden && service.isTabEnabled(d.id)).sort((a, b) => (a.order ?? 100) - (b.order ?? 100)).map((d) => ({
|
|
20324
|
-
id: d.id,
|
|
20325
|
-
label: typeof d.title === "function" ? d.title() : d.title,
|
|
20326
|
-
disabled: !(d.available?.(ctx, scope, state) ?? true),
|
|
20327
|
-
icon: typeof d.icon === "function" ? d.icon(16) : d.icon
|
|
20328
|
-
}));
|
|
20329
|
-
}
|
|
20330
|
-
function Sidebar(props) {
|
|
20331
|
-
const { ctx, store } = props;
|
|
20332
|
-
const localeRevision = (0, react.useSyncExternalStore)((0, react.useMemo)(() => (callback) => ctx.locale.subscribe(callback), [ctx]), (0, react.useCallback)(() => ctx.locale.getSnapshot().active, [ctx]));
|
|
20333
|
-
const betterLocaleStore = typeof ctx.get === "function" ? ctx.get("betterLocale") : void 0;
|
|
20334
|
-
(0, react.useSyncExternalStore)((0, react.useMemo)(() => {
|
|
20335
|
-
const store = betterLocaleStore;
|
|
20336
|
-
if (store === void 0) return (_cb) => () => {};
|
|
20337
|
-
return (callback) => store.subscribe(callback);
|
|
20338
|
-
}, [betterLocaleStore]), (0, react.useMemo)(() => {
|
|
20339
|
-
const store = betterLocaleStore;
|
|
20340
|
-
if (store === void 0) return () => void 0;
|
|
20341
|
-
return () => store.active;
|
|
20342
|
-
}, [betterLocaleStore]));
|
|
20343
|
-
const [tabsVersion, setTabsVersion] = (0, react.useState)(0);
|
|
20344
|
-
(0, react.useEffect)(() => {
|
|
20345
|
-
const service = ctx.get("betterSidebar");
|
|
20346
|
-
if (service === void 0) return;
|
|
20347
|
-
return service.subscribe(() => setTabsVersion((version) => version + 1));
|
|
20348
|
-
}, [ctx]);
|
|
20349
|
-
const viewport = useViewportSize();
|
|
20350
|
-
const narrow = isNarrowWidth(viewport.width);
|
|
20351
|
-
const [keyboardInset, setKeyboardInset] = (0, react.useState)(0);
|
|
20352
|
-
const [visualViewportHeight, setVisualViewportHeight] = (0, react.useState)(null);
|
|
20353
|
-
(0, react.useEffect)(() => {
|
|
20354
|
-
const vv = window.visualViewport;
|
|
20355
|
-
if (vv === null || vv === void 0) return;
|
|
20356
|
-
let frame = null;
|
|
20357
|
-
const measure = () => {
|
|
20358
|
-
frame = null;
|
|
20359
|
-
const inset = Math.max(0, window.innerHeight - (vv.height + vv.offsetTop));
|
|
20360
|
-
setKeyboardInset(inset > 1 ? Math.round(inset) : 0);
|
|
20361
|
-
setVisualViewportHeight(Math.max(0, Math.round(vv.height)));
|
|
20362
|
-
};
|
|
20363
|
-
const onResize = () => {
|
|
20364
|
-
if (frame === null) frame = requestAnimationFrame(measure);
|
|
20365
|
-
};
|
|
20366
|
-
vv.addEventListener("resize", onResize);
|
|
20367
|
-
vv.addEventListener("scroll", onResize);
|
|
20368
|
-
measure();
|
|
20369
|
-
return () => {
|
|
20370
|
-
vv.removeEventListener("resize", onResize);
|
|
20371
|
-
vv.removeEventListener("scroll", onResize);
|
|
20372
|
-
if (frame !== null) cancelAnimationFrame(frame);
|
|
20087
|
+
retry = window.setTimeout(connect, 2e3);
|
|
20088
|
+
};
|
|
20089
|
+
socket.onerror = () => {
|
|
20090
|
+
socket?.close();
|
|
20091
|
+
};
|
|
20373
20092
|
};
|
|
20374
|
-
|
|
20375
|
-
const layoutViewportHeight = visualViewportHeight ?? viewport.height;
|
|
20376
|
-
const sessionList = (0, react.useSyncExternalStore)((0, react.useMemo)(() => (callback) => ctx.sessions.list.subscribe(callback), [ctx]), (0, react.useCallback)(() => ctx.sessions.list.getSnapshot(), [ctx]));
|
|
20377
|
-
const current = useCurrentSessionId(ctx);
|
|
20378
|
-
const snapshot = (0, react.useSyncExternalStore)((0, react.useCallback)((callback) => store.subscribe(callback), [store]), (0, react.useCallback)(() => store.getSnapshot(), [store]));
|
|
20379
|
-
(0, react.useEffect)(() => {
|
|
20380
|
-
store.setSession(current);
|
|
20381
|
-
}, [current, store]);
|
|
20382
|
-
const state = snapshot.state;
|
|
20383
|
-
const sessionId = snapshot.sessionId;
|
|
20384
|
-
const [nativeToolbarHost, setNativeToolbarHost] = (0, react.useState)(() => nativeToolbarHostOf(document.querySelector(NATIVE_SIDEBAR_TOGGLE)));
|
|
20385
|
-
const summaryCwd = sessionId === void 0 ? void 0 : sessionList.byId[sessionId]?.cwd;
|
|
20386
|
-
const pushedBottomHeight = (bottomOpen, bottomHeight) => layoutPushSize({
|
|
20387
|
-
narrow,
|
|
20388
|
-
panelOpen: false,
|
|
20389
|
-
bottomOpen,
|
|
20390
|
-
width: 0,
|
|
20391
|
-
bottomHeight,
|
|
20392
|
-
viewportWidth: viewport.width,
|
|
20393
|
-
viewportHeight: layoutViewportHeight
|
|
20394
|
-
}).height;
|
|
20395
|
-
const collapsed = state === void 0 || !state.panelOpen;
|
|
20396
|
-
(0, react.useEffect)(() => {
|
|
20397
|
-
if (collapsed) document.body.setAttribute("data-dsh-sidebar-collapsed", "");
|
|
20398
|
-
else document.body.removeAttribute("data-dsh-sidebar-collapsed");
|
|
20093
|
+
connect();
|
|
20399
20094
|
return () => {
|
|
20400
|
-
|
|
20095
|
+
closed = true;
|
|
20096
|
+
window.clearTimeout(retry);
|
|
20097
|
+
socket?.close();
|
|
20401
20098
|
};
|
|
20402
|
-
}, [
|
|
20403
|
-
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
}
|
|
20418
|
-
const nextToolbarHost = nativeToolbarHostOf(nativeButton);
|
|
20419
|
-
setNativeToolbarHost((current) => current === nextToolbarHost ? current : nextToolbarHost);
|
|
20420
|
-
document.body.toggleAttribute("data-dsh-native-sidebar-toggle", nextToolbarHost !== null);
|
|
20421
|
-
const cluster = document.querySelector("[data-dsh-toggle-cluster]");
|
|
20422
|
-
if (nextToolbarHost !== toolbarHost || cluster !== observedCluster) {
|
|
20423
|
-
resizeObserver?.disconnect();
|
|
20424
|
-
toolbarHost = nextToolbarHost;
|
|
20425
|
-
observedCluster = cluster;
|
|
20426
|
-
if (typeof ResizeObserver !== "undefined") {
|
|
20427
|
-
resizeObserver = new ResizeObserver(scheduleMeasure);
|
|
20428
|
-
if (toolbarHost !== null) resizeObserver.observe(toolbarHost);
|
|
20429
|
-
if (observedCluster !== null) resizeObserver.observe(observedCluster);
|
|
20430
|
-
}
|
|
20431
|
-
}
|
|
20432
|
-
if (nativeButton !== null) {
|
|
20433
|
-
nativeButton.setAttribute("data-dsh-better-sidebar-toggle", "");
|
|
20434
|
-
nativeButton.setAttribute("aria-label", state?.panelOpen === true ? t("collapse") : t("expand"));
|
|
20435
|
-
const rect = (nextToolbarHost ?? nativeButton).getBoundingClientRect();
|
|
20436
|
-
root.style.setProperty("--dsh-native-sidebar-toggle-top", `${Math.round(rect.top)}px`);
|
|
20437
|
-
} else root.style.removeProperty("--dsh-native-sidebar-toggle-top");
|
|
20438
|
-
if (cluster !== null) {
|
|
20439
|
-
const reserve = Math.ceil(cluster.getBoundingClientRect().width) + 26;
|
|
20440
|
-
root.style.setProperty("--dsh-sidebar-toggle-reserve", `${reserve}px`);
|
|
20441
|
-
}
|
|
20442
|
-
};
|
|
20443
|
-
function scheduleMeasure() {
|
|
20444
|
-
if (frame !== null) return;
|
|
20445
|
-
frame = requestAnimationFrame(measure);
|
|
20446
|
-
}
|
|
20447
|
-
const interceptNativeClick = (event) => {
|
|
20448
|
-
if ((event.target instanceof Element ? event.target.closest(NATIVE_SIDEBAR_TOGGLE) : null) === null) return;
|
|
20449
|
-
event.stopPropagation();
|
|
20450
|
-
store.reduce(togglePanel);
|
|
20451
|
-
};
|
|
20452
|
-
document.addEventListener("click", interceptNativeClick, true);
|
|
20453
|
-
window.addEventListener("resize", scheduleMeasure);
|
|
20454
|
-
const mutationObserver = new MutationObserver(scheduleMeasure);
|
|
20455
|
-
mutationObserver.observe(document.body, {
|
|
20456
|
-
childList: true,
|
|
20457
|
-
subtree: true
|
|
20458
|
-
});
|
|
20459
|
-
measure();
|
|
20460
|
-
return () => {
|
|
20461
|
-
document.removeEventListener("click", interceptNativeClick, true);
|
|
20462
|
-
window.removeEventListener("resize", scheduleMeasure);
|
|
20463
|
-
mutationObserver.disconnect();
|
|
20464
|
-
resizeObserver?.disconnect();
|
|
20465
|
-
if (frame !== null) cancelAnimationFrame(frame);
|
|
20466
|
-
nativeButton?.removeAttribute("data-dsh-better-sidebar-toggle");
|
|
20467
|
-
document.body.removeAttribute("data-dsh-native-sidebar-toggle");
|
|
20468
|
-
root.style.removeProperty("--dsh-native-sidebar-toggle-top");
|
|
20469
|
-
root.style.removeProperty("--dsh-sidebar-toggle-reserve");
|
|
20470
|
-
};
|
|
20471
|
-
}, [state?.panelOpen, store]);
|
|
20472
|
-
const desktopEnv = parseDesktopEnv();
|
|
20473
|
-
const wco = (0, react.useSyncExternalStore)((0, react.useMemo)(() => subscribeWco, []), getWcoSnapshot);
|
|
20474
|
-
const scheme = snapshot.prefs.titleBarScheme;
|
|
20475
|
-
const preset = scheme === "preset" ? getShellPreset(snapshot.prefs.titleBarPresetId) : void 0;
|
|
20476
|
-
const titleBarStrip = computeTitleBarStrip(desktopEnv, wco, scheme, preset, snapshot.prefs.titleBarStripPx);
|
|
20477
|
-
const titleBarCompat = titleBarStrip > 0;
|
|
20478
|
-
(0, react.useEffect)(() => {
|
|
20479
|
-
const root = document.documentElement;
|
|
20480
|
-
if (titleBarCompat) {
|
|
20481
|
-
document.body.setAttribute("data-dsh-title-bar-compat", "");
|
|
20482
|
-
root.style.setProperty("--dsh-title-bar-strip", `${titleBarStrip}px`);
|
|
20483
|
-
} else {
|
|
20484
|
-
document.body.removeAttribute("data-dsh-title-bar-compat");
|
|
20485
|
-
root.style.removeProperty("--dsh-title-bar-strip");
|
|
20486
|
-
}
|
|
20487
|
-
return () => {
|
|
20488
|
-
document.body.removeAttribute("data-dsh-title-bar-compat");
|
|
20489
|
-
root.style.removeProperty("--dsh-title-bar-strip");
|
|
20490
|
-
};
|
|
20491
|
-
}, [titleBarCompat, titleBarStrip]);
|
|
20492
|
-
const presetCss = scheme === "preset" ? preset?.css ?? "" : "";
|
|
20493
|
-
const customCss = scheme === "custom" ? snapshot.prefs.customCss : "";
|
|
20494
|
-
(0, react.useEffect)(() => {
|
|
20495
|
-
const tags = [];
|
|
20496
|
-
if (presetCss !== "") tags.push(injectUserCss("data-dsh-preset-css", preset?.id ?? "", presetCss));
|
|
20497
|
-
if (customCss !== "") tags.push(injectUserCss("data-dsh-custom-css", "custom", customCss));
|
|
20498
|
-
return () => {
|
|
20499
|
-
for (const tag of tags) tag.remove();
|
|
20500
|
-
};
|
|
20501
|
-
}, [
|
|
20502
|
-
presetCss,
|
|
20503
|
-
customCss,
|
|
20504
|
-
preset?.id
|
|
20505
|
-
]);
|
|
20506
|
-
/**
|
|
20507
|
-
* Bottom-panel merge on narrow viewports: whenever a session is current
|
|
20508
|
-
* while narrow (mount, session switch, or a desktop→narrow transition),
|
|
20509
|
-
* throw the bottom tree's tabs into the right tree. Idempotent — after
|
|
20510
|
-
* the first migration the bottom tree is empty and the reducer returns
|
|
20511
|
-
* the same reference, so this effect settles immediately.
|
|
20512
|
-
*/
|
|
20513
|
-
(0, react.useEffect)(() => {
|
|
20514
|
-
if (!narrow || sessionId === void 0) return;
|
|
20515
|
-
store.reduce(migrateBottomTabs);
|
|
20516
|
-
}, [
|
|
20517
|
-
narrow,
|
|
20518
|
-
sessionId,
|
|
20519
|
-
store
|
|
20520
|
-
]);
|
|
20521
|
-
const [fetchedCwd, setFetchedCwd] = (0, react.useState)(void 0);
|
|
20522
|
-
(0, react.useEffect)(() => {
|
|
20523
|
-
setFetchedCwd(void 0);
|
|
20524
|
-
if (sessionId === void 0 || summaryCwd !== void 0) return;
|
|
20525
|
-
let cancelled = false;
|
|
20526
|
-
api.sessionCwd({ sessionId }).then((result) => {
|
|
20527
|
-
if (!cancelled) setFetchedCwd(result.cwd);
|
|
20528
|
-
}).catch(() => {});
|
|
20529
|
-
return () => {
|
|
20530
|
-
cancelled = true;
|
|
20531
|
-
};
|
|
20532
|
-
}, [sessionId, summaryCwd]);
|
|
20533
|
-
const cwd = summaryCwd ?? fetchedCwd;
|
|
20534
|
-
/**
|
|
20535
|
-
* Agent terminals push: subscribe to the host's live list of agent-owned
|
|
20536
|
-
* terminals for this session (created by the model through the
|
|
20537
|
-
* `terminal_create` tool). The host pushes a JSON array on every
|
|
20538
|
-
* create / close / exit; the sidebar reconciles the list into tabs
|
|
20539
|
-
* (id `agent:<uuid>`, title from the agent). A disconnected socket
|
|
20540
|
-
* retries with a short backoff so a refresh or transient drop reattaches
|
|
20541
|
-
* the same shell without losing the agent's work — capped like the
|
|
20542
|
-
* terminal view's own reconnect loop, so a refused endpoint never spins
|
|
20543
|
-
* forever (the next session switch restarts the loop).
|
|
20544
|
-
* While the terminal tab type is disabled in settings, pushes are
|
|
20545
|
-
* ignored (no auto-added tabs); re-enabling makes the next push converge.
|
|
20546
|
-
*/
|
|
20547
|
-
(0, react.useEffect)(() => {
|
|
20548
|
-
if (sessionId === void 0) return;
|
|
20549
|
-
let socket = null;
|
|
20550
|
-
let retry;
|
|
20551
|
-
let closed = false;
|
|
20552
|
-
let failures = 0;
|
|
20553
|
-
const connect = () => {
|
|
20554
|
-
if (closed) return;
|
|
20555
|
-
const url = new URL("/sidebar/ws/agent-terminals", location.origin);
|
|
20556
|
-
url.protocol = url.protocol === "https:" ? "wss:" : "ws:";
|
|
20557
|
-
url.search = new URLSearchParams({ sessionId }).toString();
|
|
20558
|
-
socket = new WebSocket(url.toString());
|
|
20559
|
-
socket.onmessage = (event) => {
|
|
20560
|
-
if (typeof event.data !== "string") return;
|
|
20561
|
-
try {
|
|
20562
|
-
const list = JSON.parse(event.data);
|
|
20563
|
-
if (!Array.isArray(list)) return;
|
|
20564
|
-
store.reduce((s) => ctx.get("betterSidebar")?.isTabEnabled("terminal") === false ? s : reconcileAgentTerminals(s, list));
|
|
20565
|
-
} catch {}
|
|
20566
|
-
};
|
|
20567
|
-
socket.onclose = () => {
|
|
20568
|
-
if (closed) return;
|
|
20569
|
-
failures += 1;
|
|
20570
|
-
if (failures >= FAILURE_LIMIT) {
|
|
20571
|
-
console.error("[dsh-better-sidebar] agent-terminals connection failed; stopping reconnect loop", sessionId);
|
|
20572
|
-
return;
|
|
20573
|
-
}
|
|
20574
|
-
retry = window.setTimeout(connect, 2e3);
|
|
20575
|
-
};
|
|
20576
|
-
socket.onerror = () => {
|
|
20577
|
-
socket?.close();
|
|
20578
|
-
};
|
|
20579
|
-
};
|
|
20580
|
-
connect();
|
|
20581
|
-
return () => {
|
|
20582
|
-
closed = true;
|
|
20583
|
-
window.clearTimeout(retry);
|
|
20584
|
-
socket?.close();
|
|
20585
|
-
};
|
|
20586
|
-
}, [sessionId, store]);
|
|
20587
|
-
/**
|
|
20588
|
-
* Agent opens push: subscribe to the host's `sidebar_open` requests for
|
|
20589
|
-
* this session (the model actively opens a file / folder / HTTP(S) page).
|
|
20590
|
-
* The host pushes one JSON request per open; the sidebar routes it to the
|
|
20591
|
-
* matching built-in tab: a file opens in the editor (per-path dedupe), a
|
|
20592
|
-
* folder opens a file window whose tree is rooted at the folder
|
|
20593
|
-
* (`meta.dir`), and a URL opens in the browser tab. A disconnected socket
|
|
20594
|
-
* retries with a short backoff (mirror of the agent-terminals loop): the
|
|
20595
|
-
* host queue keeps undelivered requests and replays them on the first
|
|
20596
|
-
* attach, so a refresh or a session switch lands the opens the model
|
|
20597
|
-
* queued while no view was connected.
|
|
20598
|
-
* While the side-card setting is off, pushes are ignored as a defensive
|
|
20599
|
-
* gate — the host already unregisters the tool and drains the queue.
|
|
20600
|
-
*/
|
|
20099
|
+
}, [sessionId, store]);
|
|
20100
|
+
/**
|
|
20101
|
+
* Agent opens push: subscribe to the host's `sidebar_open` requests for
|
|
20102
|
+
* this session (the model actively opens a file / folder / HTTP(S) page).
|
|
20103
|
+
* The host pushes one JSON request per open; the sidebar routes it to the
|
|
20104
|
+
* matching built-in tab: a file opens in the editor (per-path dedupe), a
|
|
20105
|
+
* folder opens a file window whose tree is rooted at the folder
|
|
20106
|
+
* (`meta.dir`), and a URL opens in the browser tab. A disconnected socket
|
|
20107
|
+
* retries with a short backoff (mirror of the agent-terminals loop): the
|
|
20108
|
+
* host queue keeps undelivered requests and replays them on the first
|
|
20109
|
+
* attach, so a refresh or a session switch lands the opens the model
|
|
20110
|
+
* queued while no view was connected.
|
|
20111
|
+
* While the side-card setting is off, pushes are ignored as a defensive
|
|
20112
|
+
* gate — the host already unregisters the tool and drains the queue.
|
|
20113
|
+
*/
|
|
20601
20114
|
(0, react.useEffect)(() => {
|
|
20602
20115
|
if (sessionId === void 0) return;
|
|
20603
20116
|
let socket = null;
|
|
@@ -21256,10 +20769,10 @@ window.__ModuleLoader__.load({
|
|
|
21256
20769
|
sessionId,
|
|
21257
20770
|
cwd
|
|
21258
20771
|
]);
|
|
21259
|
-
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", {
|
|
21260
20773
|
"data-dsh-panel-host": true,
|
|
21261
20774
|
...osFileDragShield,
|
|
21262
|
-
children:
|
|
20775
|
+
children: nativeToolbarHost !== null ? (0, react_dom.createPortal)(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21263
20776
|
className: clsx(sidebar_module_css_default.toggleCluster, sidebar_module_css_default.toggleClusterNative),
|
|
21264
20777
|
"data-dsh-toggle-cluster": true,
|
|
21265
20778
|
"data-dsh-native-toolbar-cluster": true,
|
|
@@ -21317,404 +20830,912 @@ window.__ModuleLoader__.load({
|
|
|
21317
20830
|
"aria-label": t("noSession"),
|
|
21318
20831
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelRightOutline16, {})
|
|
21319
20832
|
})
|
|
21320
|
-
}),
|
|
21321
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(UserManualButton, {})
|
|
21322
|
-
]
|
|
21323
|
-
})
|
|
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
|
+
})
|
|
21187
|
+
})
|
|
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
|
+
]
|
|
21324
21227
|
});
|
|
21325
|
-
|
|
21326
|
-
|
|
21327
|
-
|
|
21328
|
-
|
|
21329
|
-
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
const
|
|
21335
|
-
|
|
21336
|
-
|
|
21337
|
-
|
|
21338
|
-
|
|
21339
|
-
|
|
21340
|
-
|
|
21341
|
-
|
|
21342
|
-
|
|
21343
|
-
|
|
21344
|
-
|
|
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
|
+
}
|
|
21345
21318
|
});
|
|
21346
21319
|
};
|
|
21347
|
-
|
|
21348
|
-
|
|
21349
|
-
|
|
21350
|
-
* ctx and the conversation input service at click time; a missing service
|
|
21351
|
-
* or scope degrades to a logged no-op, never a crash.
|
|
21352
|
-
*/
|
|
21353
|
-
/** The tab icon from the tab-type registry (shared by every workbench). */
|
|
21354
|
-
const tabIconOf = (tab) => {
|
|
21355
|
-
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
21356
|
-
if (descriptor === void 0) return null;
|
|
21357
|
-
return typeof descriptor.icon === "function" ? descriptor.icon(14) : descriptor.icon;
|
|
21358
|
-
};
|
|
21359
|
-
/**
|
|
21360
|
-
* The tab badge from the tab-type registry: a count (99+ capped) or a
|
|
21361
|
-
* short text pill. A throwing badge is swallowed (no pill) — the tab
|
|
21362
|
-
* strip must never break because a plugin's badge computation failed.
|
|
21363
|
-
*/
|
|
21364
|
-
const tabBadgeOf = (tab) => {
|
|
21365
|
-
const descriptor = ctx.get("betterSidebar")?.getTab(tab.type);
|
|
21366
|
-
if (descriptor?.badge === void 0) return null;
|
|
21367
|
-
let value;
|
|
21320
|
+
const startLogin = () => {
|
|
21321
|
+
if (busyRef.current) return;
|
|
21322
|
+
let popup = null;
|
|
21368
21323
|
try {
|
|
21369
|
-
|
|
21370
|
-
|
|
21371
|
-
|
|
21372
|
-
|
|
21373
|
-
} catch (error) {
|
|
21374
|
-
console.error("[dsh-better-sidebar] tab badge error:", error);
|
|
21375
|
-
return null;
|
|
21324
|
+
popup = window.open("", "_blank");
|
|
21325
|
+
if (popup) popup.opener = null;
|
|
21326
|
+
} catch {
|
|
21327
|
+
popup = null;
|
|
21376
21328
|
}
|
|
21377
|
-
|
|
21378
|
-
|
|
21379
|
-
|
|
21380
|
-
|
|
21381
|
-
|
|
21382
|
-
|
|
21383
|
-
|
|
21384
|
-
|
|
21385
|
-
|
|
21386
|
-
|
|
21387
|
-
|
|
21388
|
-
|
|
21389
|
-
|
|
21390
|
-
|
|
21391
|
-
|
|
21392
|
-
|
|
21393
|
-
|
|
21394
|
-
|
|
21395
|
-
|
|
21396
|
-
|
|
21397
|
-
|
|
21398
|
-
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21403
|
-
|
|
21404
|
-
|
|
21405
|
-
|
|
21406
|
-
|
|
21407
|
-
|
|
21408
|
-
|
|
21409
|
-
|
|
21410
|
-
store.reduce((s) => openDiffTab(s, paneId, diffTab));
|
|
21411
|
-
},
|
|
21412
|
-
localeRevision,
|
|
21413
|
-
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
|
+
}
|
|
21414
21362
|
});
|
|
21415
21363
|
};
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
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
|
+
},
|
|
21419
21427
|
children: [
|
|
21420
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
21421
|
-
|
|
21422
|
-
className:
|
|
21423
|
-
"
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21432
|
-
|
|
21433
|
-
|
|
21434
|
-
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
21450
|
-
|
|
21451
|
-
|
|
21452
|
-
|
|
21453
|
-
|
|
21454
|
-
|
|
21455
|
-
|
|
21456
|
-
|
|
21457
|
-
|
|
21458
|
-
|
|
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"),
|
|
21459
21611
|
children: [
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
21464
|
-
|
|
21465
|
-
|
|
21466
|
-
|
|
21467
|
-
|
|
21468
|
-
|
|
21469
|
-
|
|
21470
|
-
},
|
|
21471
|
-
|
|
21472
|
-
|
|
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
|
+
]
|
|
21473
21629
|
}),
|
|
21474
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
21475
|
-
|
|
21476
|
-
|
|
21477
|
-
|
|
21478
|
-
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
"aria-label": state.panelOpen ? t("collapse") : t("expand"),
|
|
21482
|
-
onClick: () => {
|
|
21483
|
-
store.reduce(togglePanel);
|
|
21484
|
-
},
|
|
21485
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconPanelRightOutline16, {})
|
|
21486
|
-
})
|
|
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")]
|
|
21487
21637
|
}),
|
|
21488
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
21489
|
-
|
|
21490
|
-
|
|
21491
|
-
|
|
21492
|
-
ref: panelRef,
|
|
21493
|
-
className: clsx(sidebar_module_css_default.panel, !state.panelOpen && sidebar_module_css_default.panelHidden),
|
|
21494
|
-
"data-dsh-panel": true,
|
|
21495
|
-
style: {
|
|
21496
|
-
width: narrow ? "100vw" : Math.min(state.width, window.innerWidth),
|
|
21497
|
-
bottom: narrow && keyboardInset > 0 ? `${keyboardInset}px` : void 0
|
|
21498
|
-
},
|
|
21499
|
-
"data-dragging": anyDragging || void 0,
|
|
21500
|
-
children: [
|
|
21501
|
-
!narrow && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21502
|
-
className: clsx(sidebar_module_css_default.panelResize, draggingWidth && sidebar_module_css_default.panelResizeActive),
|
|
21503
|
-
onPointerDown: (event) => {
|
|
21504
|
-
event.preventDefault();
|
|
21505
|
-
event.currentTarget.setPointerCapture(event.pointerId);
|
|
21506
|
-
dragCommitted.current = false;
|
|
21507
|
-
widthDrag.current = {
|
|
21508
|
-
startX: event.clientX,
|
|
21509
|
-
startWidth: state.width
|
|
21510
|
-
};
|
|
21511
|
-
setDraggingWidth(true);
|
|
21512
|
-
},
|
|
21513
|
-
onPointerMove: (event) => {
|
|
21514
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21515
|
-
const { startX, startWidth } = widthDrag.current;
|
|
21516
|
-
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21517
|
-
const height = pushedBottomHeight(state.bottomOpen, state.bottomHeight);
|
|
21518
|
-
scheduleDrag(width, height);
|
|
21519
|
-
},
|
|
21520
|
-
onPointerUp: (event) => {
|
|
21521
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21522
|
-
if (dragCommitted.current) return;
|
|
21523
|
-
dragCommitted.current = true;
|
|
21524
|
-
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
21525
|
-
const { startX, startWidth } = widthDrag.current;
|
|
21526
|
-
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21527
|
-
const height = pushedBottomHeight(state.bottomOpen, state.bottomHeight);
|
|
21528
|
-
commitDrag(width, height, (s) => setWidth(s, width));
|
|
21529
|
-
setDraggingWidth(false);
|
|
21530
|
-
},
|
|
21531
|
-
onPointerCancel: (event) => {
|
|
21532
|
-
abortDrag(() => setDraggingWidth(false), event);
|
|
21533
|
-
},
|
|
21534
|
-
onLostPointerCapture: () => {
|
|
21535
|
-
abortDrag(() => setDraggingWidth(false));
|
|
21536
|
-
}
|
|
21638
|
+
error === "operation" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21639
|
+
role: "alert",
|
|
21640
|
+
className: sidebar_module_css_default.accountItem,
|
|
21641
|
+
children: t("accountMenuChatcodeError")
|
|
21537
21642
|
}),
|
|
21538
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21539
|
-
|
|
21540
|
-
|
|
21541
|
-
|
|
21542
|
-
tree: augmentedTree,
|
|
21543
|
-
newTabOptions: buildNewTabOptions(state, ctx, {
|
|
21544
|
-
sessionId,
|
|
21545
|
-
cwd
|
|
21546
|
-
}),
|
|
21547
|
-
actions: wrappedActions,
|
|
21548
|
-
onNewTab,
|
|
21549
|
-
renderTab,
|
|
21550
|
-
getTabIcon: tabIconOf,
|
|
21551
|
-
getTabBadge: tabBadgeOf
|
|
21552
|
-
})
|
|
21643
|
+
showLoginFailure && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21644
|
+
role: "alert",
|
|
21645
|
+
className: sidebar_module_css_default.accountItem,
|
|
21646
|
+
children: t("accountMenuChatcodeRetry")
|
|
21553
21647
|
}),
|
|
21554
|
-
|
|
21555
|
-
|
|
21556
|
-
|
|
21557
|
-
|
|
21558
|
-
|
|
21559
|
-
|
|
21560
|
-
|
|
21561
|
-
|
|
21562
|
-
startX: event.clientX,
|
|
21563
|
-
startY: event.clientY,
|
|
21564
|
-
startWidth: state.width,
|
|
21565
|
-
startHeight: state.bottomHeight
|
|
21566
|
-
};
|
|
21567
|
-
setDraggingCorner(true);
|
|
21568
|
-
},
|
|
21569
|
-
onPointerMove: (event) => {
|
|
21570
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21571
|
-
const { startX, startY, startWidth, startHeight } = cornerDrag.current;
|
|
21572
|
-
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21573
|
-
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21574
|
-
scheduleDrag(width, height);
|
|
21575
|
-
},
|
|
21576
|
-
onPointerUp: (event) => {
|
|
21577
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21578
|
-
if (dragCommitted.current) return;
|
|
21579
|
-
dragCommitted.current = true;
|
|
21580
|
-
event.currentTarget.releasePointerCapture(event.pointerId);
|
|
21581
|
-
const { startX, startY, startWidth, startHeight } = cornerDrag.current;
|
|
21582
|
-
const width = clampWidth(startWidth + (startX - event.clientX));
|
|
21583
|
-
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21584
|
-
commitDrag(width, height, (s) => setBottomHeight(setWidth(s, width), height));
|
|
21585
|
-
setDraggingCorner(false);
|
|
21586
|
-
},
|
|
21587
|
-
onPointerCancel: (event) => {
|
|
21588
|
-
abortDrag(() => setDraggingCorner(false), event);
|
|
21589
|
-
},
|
|
21590
|
-
onLostPointerCapture: () => {
|
|
21591
|
-
abortDrag(() => setDraggingCorner(false));
|
|
21592
|
-
}
|
|
21593
|
-
})
|
|
21594
|
-
]
|
|
21595
|
-
}),
|
|
21596
|
-
!narrow && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
21597
|
-
ref: bottomRef,
|
|
21598
|
-
className: clsx(sidebar_module_css_default.bottomPanel, !state.bottomOpen && sidebar_module_css_default.bottomPanelHidden),
|
|
21599
|
-
"data-dsh-panel": true,
|
|
21600
|
-
"data-dsh-bottom-panel": true,
|
|
21601
|
-
style: {
|
|
21602
|
-
height: bottomPanelHeight,
|
|
21603
|
-
left: centerRectRef.current.left,
|
|
21604
|
-
bottom: keyboardInset > 0 ? `${keyboardInset}px` : void 0,
|
|
21605
|
-
right: window.innerWidth - centerRectRef.current.right,
|
|
21606
|
-
borderRight: state.panelOpen ? "1px solid var(--dsw-alias-border-l2)" : void 0,
|
|
21607
|
-
visibility: centerMeasured ? void 0 : "hidden"
|
|
21608
|
-
},
|
|
21609
|
-
"data-dragging": draggingBottom || draggingCorner || void 0,
|
|
21610
|
-
children: [
|
|
21611
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21612
|
-
className: clsx(sidebar_module_css_default.bottomResize, draggingBottom && sidebar_module_css_default.bottomResizeActive),
|
|
21613
|
-
onPointerDown: (event) => {
|
|
21614
|
-
event.preventDefault();
|
|
21615
|
-
event.currentTarget.setPointerCapture(event.pointerId);
|
|
21616
|
-
dragCommitted.current = false;
|
|
21617
|
-
bottomDrag.current = {
|
|
21618
|
-
startY: event.clientY,
|
|
21619
|
-
startHeight: state.bottomHeight
|
|
21620
|
-
};
|
|
21621
|
-
setDraggingBottom(true);
|
|
21622
|
-
},
|
|
21623
|
-
onPointerMove: (event) => {
|
|
21624
|
-
if (!event.currentTarget.hasPointerCapture(event.pointerId)) return;
|
|
21625
|
-
const { startY, startHeight } = bottomDrag.current;
|
|
21626
|
-
const height = pushedBottomHeight(true, clampHeight(startHeight + (startY - event.clientY)));
|
|
21627
|
-
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();
|
|
21628
21656
|
},
|
|
21629
|
-
|
|
21630
|
-
|
|
21631
|
-
|
|
21632
|
-
|
|
21633
|
-
|
|
21634
|
-
|
|
21635
|
-
|
|
21636
|
-
|
|
21637
|
-
|
|
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");
|
|
21638
21673
|
},
|
|
21639
|
-
|
|
21640
|
-
|
|
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");
|
|
21641
21682
|
},
|
|
21642
|
-
|
|
21643
|
-
|
|
21644
|
-
|
|
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()
|
|
21645
21701
|
}),
|
|
21646
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
21647
|
-
|
|
21648
|
-
|
|
21649
|
-
delayMs: 500,
|
|
21650
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
21651
|
-
type: "button",
|
|
21652
|
-
className: sidebar_module_css_default.bottomClose,
|
|
21653
|
-
"aria-label": t("collapseBottomPanel"),
|
|
21654
|
-
onClick: () => {
|
|
21655
|
-
store.reduce(toggleBottomPanel);
|
|
21656
|
-
},
|
|
21657
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconCloseFill14, {})
|
|
21658
|
-
})
|
|
21702
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21703
|
+
className: sidebar_module_css_default.accountName,
|
|
21704
|
+
children: chatcodeName
|
|
21659
21705
|
}),
|
|
21660
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
21661
|
-
className: sidebar_module_css_default.
|
|
21662
|
-
|
|
21663
|
-
|
|
21664
|
-
tree: state.bottomSplits,
|
|
21665
|
-
newTabOptions: buildNewTabOptions(state, ctx, {
|
|
21666
|
-
sessionId,
|
|
21667
|
-
cwd
|
|
21668
|
-
}),
|
|
21669
|
-
actions,
|
|
21670
|
-
onNewTab,
|
|
21671
|
-
renderTab: (tab, active, paneId) => renderTab(tab, active, paneId, "bottom"),
|
|
21672
|
-
getTabIcon: tabIconOf,
|
|
21673
|
-
getTabBadge: tabBadgeOf
|
|
21674
|
-
})
|
|
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"
|
|
21675
21710
|
})
|
|
21676
21711
|
]
|
|
21677
21712
|
}),
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
getTabIcon: tabIconOf,
|
|
21682
|
-
onRaise: () => {
|
|
21683
|
-
store.reduce((s) => raiseFloat(s, float.id));
|
|
21684
|
-
},
|
|
21685
|
-
onMove: (x, y) => {
|
|
21686
|
-
store.reduce((s) => moveFloat(s, float.id, x, y));
|
|
21687
|
-
},
|
|
21688
|
-
onResize: (w, h) => {
|
|
21689
|
-
store.reduce((s) => resizeFloat(s, float.id, w, h));
|
|
21690
|
-
},
|
|
21691
|
-
onDock: (paneId) => {
|
|
21692
|
-
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);
|
|
21693
21716
|
},
|
|
21694
|
-
|
|
21695
|
-
|
|
21696
|
-
|
|
21697
|
-
|
|
21698
|
-
});
|
|
21717
|
+
onConfirm: () => {
|
|
21718
|
+
setLogoutTarget(void 0);
|
|
21719
|
+
if (logoutTarget === "chatcode") logoutChatcode();
|
|
21720
|
+
else logout();
|
|
21699
21721
|
}
|
|
21700
|
-
}, float.id)),
|
|
21701
|
-
floatHint !== null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
21702
|
-
className: sidebar_module_css_default.floatDropHint,
|
|
21703
|
-
style: {
|
|
21704
|
-
left: floatHint.left,
|
|
21705
|
-
top: floatHint.top,
|
|
21706
|
-
width: floatHint.width,
|
|
21707
|
-
height: floatHint.height
|
|
21708
|
-
},
|
|
21709
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
21710
|
-
className: sidebar_module_css_default.floatDropHintLabel,
|
|
21711
|
-
children: t("floatDropHint")
|
|
21712
|
-
})
|
|
21713
21722
|
})
|
|
21714
21723
|
]
|
|
21715
21724
|
});
|
|
21716
21725
|
}
|
|
21717
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
|
|
21718
21739
|
//#region src/client/ChatcodeGate.tsx
|
|
21719
21740
|
/** Mandatory Web sign-in surface. The host remains the authority for every decision. */
|
|
21720
21741
|
/** Decide whether this browser visit has enough verified ChatCode state to enter the workbench. */
|
|
@@ -21986,40 +22007,6 @@ window.__ModuleLoader__.load({
|
|
|
21986
22007
|
const PLUGIN_MARKET_NAV_MARKER = "data-dsh-better-sidebar-plugin-market-nav";
|
|
21987
22008
|
const UI_TWEAKS_NAV_MARKER = "data-dsh-better-sidebar-ui-tweaks-nav";
|
|
21988
22009
|
const SKILL_MARKET_NAV_MARKER = "data-dsh-better-sidebar-skill-market-nav";
|
|
21989
|
-
/**
|
|
21990
|
-
* Keep the marker on the settings-nav button whose visible text is this
|
|
21991
|
-
* plugin's current localized section label.
|
|
21992
|
-
* @param label - locale-aware label resolver used by the section registration.
|
|
21993
|
-
* @param marker - the marker attribute this registration owns (each icon gets
|
|
21994
|
-
* its own so several sections can mark their rows without stripping each
|
|
21995
|
-
* other's markers).
|
|
21996
|
-
* @returns disposer that disconnects observation and removes owned markers.
|
|
21997
|
-
*/
|
|
21998
|
-
function registerSettingsNavIcon(label, marker = SETTINGS_NAV_MARKER) {
|
|
21999
|
-
let disposed = false;
|
|
22000
|
-
const sync = () => {
|
|
22001
|
-
if (disposed) return;
|
|
22002
|
-
const resolved = label();
|
|
22003
|
-
const currentLabels = new Set((typeof resolved === "string" ? [resolved] : resolved).map((value) => value.trim()).filter(Boolean));
|
|
22004
|
-
const buttons = document.querySelectorAll("[role=\"dialog\"] nav button");
|
|
22005
|
-
for (const button of buttons) if (currentLabels.has(button.textContent?.trim() ?? "")) button.setAttribute(marker, "");
|
|
22006
|
-
else button.removeAttribute(marker);
|
|
22007
|
-
};
|
|
22008
|
-
sync();
|
|
22009
|
-
const observer = new MutationObserver(sync);
|
|
22010
|
-
observer.observe(document.body, {
|
|
22011
|
-
childList: true,
|
|
22012
|
-
subtree: true,
|
|
22013
|
-
characterData: true
|
|
22014
|
-
});
|
|
22015
|
-
return () => {
|
|
22016
|
-
disposed = true;
|
|
22017
|
-
observer.disconnect();
|
|
22018
|
-
document.querySelectorAll(`[${marker}]`).forEach((element) => {
|
|
22019
|
-
element.removeAttribute(marker);
|
|
22020
|
-
});
|
|
22021
|
-
};
|
|
22022
|
-
}
|
|
22023
22010
|
//#endregion
|
|
22024
22011
|
//#region src/client/session-pins.tsx
|
|
22025
22012
|
/**
|
|
@@ -23838,48 +23825,48 @@ window.__ModuleLoader__.load({
|
|
|
23838
23825
|
document.head.appendChild(tag);
|
|
23839
23826
|
}
|
|
23840
23827
|
var UsageHeatmapSection_module_css_default = {
|
|
23841
|
-
"tooltipSplit": "RkD2KW_tooltipSplit",
|
|
23842
|
-
"monthButton": "RkD2KW_monthButton",
|
|
23843
|
-
"monthLabel": "RkD2KW_monthLabel",
|
|
23844
|
-
"total": "RkD2KW_total",
|
|
23845
|
-
"spin": "RkD2KW_spin",
|
|
23846
|
-
"totalNumber": "RkD2KW_totalNumber",
|
|
23847
|
-
"todayDot": "RkD2KW_todayDot",
|
|
23848
|
-
"refreshButton": "RkD2KW_refreshButton",
|
|
23849
|
-
"grid": "RkD2KW_grid",
|
|
23850
|
-
"footer": "RkD2KW_footer",
|
|
23851
|
-
"statValue": "RkD2KW_statValue",
|
|
23852
23828
|
"todayLabel": "RkD2KW_todayLabel",
|
|
23853
|
-
"
|
|
23854
|
-
"
|
|
23855
|
-
"weekdays": "RkD2KW_weekdays",
|
|
23829
|
+
"gridBody": "RkD2KW_gridBody",
|
|
23830
|
+
"cellToday": "RkD2KW_cellToday",
|
|
23856
23831
|
"tooltip": "RkD2KW_tooltip",
|
|
23832
|
+
"section": "RkD2KW_section",
|
|
23857
23833
|
"group": "RkD2KW_group",
|
|
23834
|
+
"footer": "RkD2KW_footer",
|
|
23835
|
+
"stats": "RkD2KW_stats",
|
|
23836
|
+
"stat": "RkD2KW_stat",
|
|
23837
|
+
"cellDay": "RkD2KW_cellDay",
|
|
23838
|
+
"cellHover": "RkD2KW_cellHover",
|
|
23858
23839
|
"monthNav": "RkD2KW_monthNav",
|
|
23840
|
+
"spin": "RkD2KW_spin",
|
|
23841
|
+
"totalNumber": "RkD2KW_totalNumber",
|
|
23842
|
+
"retry": "RkD2KW_retry",
|
|
23859
23843
|
"legendSwatch": "RkD2KW_legendSwatch",
|
|
23844
|
+
"headerRow": "RkD2KW_headerRow",
|
|
23845
|
+
"total": "RkD2KW_total",
|
|
23860
23846
|
"state": "RkD2KW_state",
|
|
23861
|
-
"
|
|
23847
|
+
"weekdays": "RkD2KW_weekdays",
|
|
23848
|
+
"tooltipTokens": "RkD2KW_tooltipTokens",
|
|
23849
|
+
"cellTokens": "RkD2KW_cellTokens",
|
|
23850
|
+
"tooltipDate": "RkD2KW_tooltipDate",
|
|
23851
|
+
"cellFuture": "RkD2KW_cellFuture",
|
|
23852
|
+
"refreshButton": "RkD2KW_refreshButton",
|
|
23853
|
+
"dshSidebarUsageSpin": "RkD2KW_dshSidebarUsageSpin",
|
|
23854
|
+
"cell": "RkD2KW_cell",
|
|
23862
23855
|
"tooltipToday": "RkD2KW_tooltipToday",
|
|
23863
|
-
"empty": "RkD2KW_empty",
|
|
23864
|
-
"gridBody": "RkD2KW_gridBody",
|
|
23865
|
-
"section": "RkD2KW_section",
|
|
23866
23856
|
"totalUnit": "RkD2KW_totalUnit",
|
|
23867
|
-
"
|
|
23857
|
+
"todayDot": "RkD2KW_todayDot",
|
|
23858
|
+
"statValue": "RkD2KW_statValue",
|
|
23859
|
+
"monthButton": "RkD2KW_monthButton",
|
|
23860
|
+
"tooltipSplit": "RkD2KW_tooltipSplit",
|
|
23861
|
+
"empty": "RkD2KW_empty",
|
|
23868
23862
|
"totalValue": "RkD2KW_totalValue",
|
|
23869
|
-
"
|
|
23870
|
-
"
|
|
23871
|
-
"tooltipDate": "RkD2KW_tooltipDate",
|
|
23872
|
-
"stats": "RkD2KW_stats",
|
|
23873
|
-
"cell": "RkD2KW_cell",
|
|
23874
|
-
"statLabel": "RkD2KW_statLabel",
|
|
23875
|
-
"tooltipBelow": "RkD2KW_tooltipBelow",
|
|
23876
|
-
"cellDay": "RkD2KW_cellDay",
|
|
23877
|
-
"stat": "RkD2KW_stat",
|
|
23878
|
-
"headerRow": "RkD2KW_headerRow",
|
|
23879
|
-
"retry": "RkD2KW_retry",
|
|
23863
|
+
"monthLabel": "RkD2KW_monthLabel",
|
|
23864
|
+
"overview": "RkD2KW_overview",
|
|
23880
23865
|
"legend": "RkD2KW_legend",
|
|
23881
|
-
"
|
|
23882
|
-
"
|
|
23866
|
+
"grid": "RkD2KW_grid",
|
|
23867
|
+
"stateError": "RkD2KW_stateError",
|
|
23868
|
+
"tooltipBelow": "RkD2KW_tooltipBelow",
|
|
23869
|
+
"statLabel": "RkD2KW_statLabel"
|
|
23883
23870
|
};
|
|
23884
23871
|
//#endregion
|
|
23885
23872
|
//#region src/client/UsageHeatmapSection.tsx
|
|
@@ -24255,34 +24242,34 @@ window.__ModuleLoader__.load({
|
|
|
24255
24242
|
document.head.appendChild(tag);
|
|
24256
24243
|
}
|
|
24257
24244
|
var AiRatioSection_module_css_default = {
|
|
24245
|
+
"aiValue": "WM1Ima_aiValue",
|
|
24246
|
+
"ratioCardHigh": "WM1Ima_ratioCardHigh",
|
|
24247
|
+
"primaryButton": "WM1Ima_primaryButton",
|
|
24258
24248
|
"card": "WM1Ima_card",
|
|
24259
|
-
"
|
|
24249
|
+
"addedValue": "WM1Ima_addedValue",
|
|
24250
|
+
"cardRatio": "WM1Ima_cardRatio",
|
|
24251
|
+
"ratioValue": "WM1Ima_ratioValue",
|
|
24252
|
+
"section": "WM1Ima_section",
|
|
24253
|
+
"tableWrap": "WM1Ima_tableWrap",
|
|
24254
|
+
"cardValue": "WM1Ima_cardValue",
|
|
24255
|
+
"commitsValue": "WM1Ima_commitsValue",
|
|
24256
|
+
"pager": "WM1Ima_pager",
|
|
24260
24257
|
"ratioCardLow": "WM1Ima_ratioCardLow",
|
|
24258
|
+
"pageInfo": "WM1Ima_pageInfo",
|
|
24261
24259
|
"dateInput": "WM1Ima_dateInput",
|
|
24262
|
-
"tableHeading": "WM1Ima_tableHeading",
|
|
24263
24260
|
"num": "WM1Ima_num",
|
|
24264
|
-
"
|
|
24265
|
-
"ratioBar": "WM1Ima_ratioBar",
|
|
24261
|
+
"stateError": "WM1Ima_stateError",
|
|
24266
24262
|
"dateCell": "WM1Ima_dateCell",
|
|
24267
24263
|
"table": "WM1Ima_table",
|
|
24268
|
-
"addedValue": "WM1Ima_addedValue",
|
|
24269
|
-
"commitsValue": "WM1Ima_commitsValue",
|
|
24270
|
-
"primaryButton": "WM1Ima_primaryButton",
|
|
24271
|
-
"pager": "WM1Ima_pager",
|
|
24272
|
-
"ratioCardHigh": "WM1Ima_ratioCardHigh",
|
|
24273
|
-
"aiValue": "WM1Ima_aiValue",
|
|
24274
|
-
"state": "WM1Ima_state",
|
|
24275
|
-
"tableWrap": "WM1Ima_tableWrap",
|
|
24276
|
-
"cardValue": "WM1Ima_cardValue",
|
|
24277
|
-
"stateError": "WM1Ima_stateError",
|
|
24278
|
-
"pageInfo": "WM1Ima_pageInfo",
|
|
24279
|
-
"dash": "WM1Ima_dash",
|
|
24280
|
-
"section": "WM1Ima_section",
|
|
24281
24264
|
"queryRow": "WM1Ima_queryRow",
|
|
24282
|
-
"
|
|
24265
|
+
"ratioBar": "WM1Ima_ratioBar",
|
|
24266
|
+
"state": "WM1Ima_state",
|
|
24267
|
+
"tableHeading": "WM1Ima_tableHeading",
|
|
24283
24268
|
"exportButton": "WM1Ima_exportButton",
|
|
24269
|
+
"dash": "WM1Ima_dash",
|
|
24284
24270
|
"adoptedValue": "WM1Ima_adoptedValue",
|
|
24285
|
-
"overview": "WM1Ima_overview"
|
|
24271
|
+
"overview": "WM1Ima_overview",
|
|
24272
|
+
"cardLabel": "WM1Ima_cardLabel"
|
|
24286
24273
|
};
|
|
24287
24274
|
//#endregion
|
|
24288
24275
|
//#region src/client/AiRatioSection.tsx
|
|
@@ -29154,7 +29141,7 @@ to{transform:translateX(-8px)}
|
|
|
29154
29141
|
const subscribe = (0, react.useMemo)(() => list.subscribe.bind(list), [list]);
|
|
29155
29142
|
const running = (0, react.useSyncExternalStore)(subscribe, () => {
|
|
29156
29143
|
const snapshot = list.getSnapshot();
|
|
29157
|
-
const id = sessionId
|
|
29144
|
+
const id = sessionId;
|
|
29158
29145
|
return id !== void 0 && (snapshot.byId[id]?.running ?? false);
|
|
29159
29146
|
}, () => false);
|
|
29160
29147
|
const submitting = input.phase === "claimed" || input.phase === "submitting";
|
|
@@ -29310,7 +29297,7 @@ to{transform:translateX(-8px)}
|
|
|
29310
29297
|
];
|
|
29311
29298
|
/** Narrow the extensible host interaction roster to the notification copy we own. */
|
|
29312
29299
|
function pendingKind(snapshot, sessionId) {
|
|
29313
|
-
switch (snapshot.get(sessionId)?.kind) {
|
|
29300
|
+
switch (snapshot.get(sessionId)?.pendingInteraction?.kind) {
|
|
29314
29301
|
case "approval": return "approval";
|
|
29315
29302
|
case "plan-review": return "plan-review";
|
|
29316
29303
|
case "question": return "question";
|
|
@@ -29432,7 +29419,7 @@ to{transform:translateX(-8px)}
|
|
|
29432
29419
|
* @returns disposer — unsubscribes, restores the tab title and tears the channels down.
|
|
29433
29420
|
*/
|
|
29434
29421
|
function installTaskNotifier(input) {
|
|
29435
|
-
const { sessionsService,
|
|
29422
|
+
const { sessionsService, sessionStatus, openSession, text, readState } = input;
|
|
29436
29423
|
const list = sessionsService.list;
|
|
29437
29424
|
const watch = /* @__PURE__ */ new Map();
|
|
29438
29425
|
const lastFired = /* @__PURE__ */ new Map();
|
|
@@ -29484,7 +29471,7 @@ to{transform:translateX(-8px)}
|
|
|
29484
29471
|
window.focus();
|
|
29485
29472
|
} catch {}
|
|
29486
29473
|
try {
|
|
29487
|
-
|
|
29474
|
+
openSession(sessionId);
|
|
29488
29475
|
} catch {}
|
|
29489
29476
|
n.close();
|
|
29490
29477
|
};
|
|
@@ -29507,14 +29494,14 @@ to{transform:translateX(-8px)}
|
|
|
29507
29494
|
/** Seed the watch map without firing: fresh installs and reloads stay quiet. */
|
|
29508
29495
|
const armBaseline = () => {
|
|
29509
29496
|
watch.clear();
|
|
29510
|
-
const interactions =
|
|
29497
|
+
const interactions = sessionStatus.getSnapshot();
|
|
29511
29498
|
for (const row of Object.values(list.getSnapshot().byId)) {
|
|
29512
29499
|
if (row.parentId !== void 0 || row.blank) continue;
|
|
29513
29500
|
const outcome = row.projectionValues?.[TURN_OUTCOME_KEY] ?? void 0;
|
|
29514
29501
|
watch.set(row.id, {
|
|
29515
29502
|
running: row.running,
|
|
29516
29503
|
pending: pendingKind(interactions, row.id),
|
|
29517
|
-
completed: row.
|
|
29504
|
+
completed: interactions.get(row.id)?.completionUnread === true,
|
|
29518
29505
|
outcome
|
|
29519
29506
|
});
|
|
29520
29507
|
}
|
|
@@ -29524,7 +29511,7 @@ to{transform:translateX(-8px)}
|
|
|
29524
29511
|
const deliverable = !options.onlyWhenHidden || !visibleAndFocused();
|
|
29525
29512
|
const now = Date.now();
|
|
29526
29513
|
const snap = list.getSnapshot();
|
|
29527
|
-
const interactions =
|
|
29514
|
+
const interactions = sessionStatus.getSnapshot();
|
|
29528
29515
|
const seen = /* @__PURE__ */ new Set();
|
|
29529
29516
|
for (const row of Object.values(snap.byId)) {
|
|
29530
29517
|
if (row.parentId !== void 0 || row.blank) continue;
|
|
@@ -29535,7 +29522,7 @@ to{transform:translateX(-8px)}
|
|
|
29535
29522
|
watch.set(row.id, {
|
|
29536
29523
|
running: row.running,
|
|
29537
29524
|
pending,
|
|
29538
|
-
completed: row.
|
|
29525
|
+
completed: interactions.get(row.id)?.completionUnread === true,
|
|
29539
29526
|
outcome
|
|
29540
29527
|
});
|
|
29541
29528
|
if (prev === void 0) continue;
|
|
@@ -29544,7 +29531,7 @@ to{transform:translateX(-8px)}
|
|
|
29544
29531
|
continue;
|
|
29545
29532
|
}
|
|
29546
29533
|
const finished = prev.running && !row.running && pending === void 0;
|
|
29547
|
-
const completedReminder = !prev.completed && row.
|
|
29534
|
+
const completedReminder = !prev.completed && interactions.get(row.id)?.completionUnread === true;
|
|
29548
29535
|
if (finished || completedReminder) {
|
|
29549
29536
|
let shouldFire = finished;
|
|
29550
29537
|
if (!shouldFire) shouldFire = TERMINAL_KINDS.every((kind) => {
|
|
@@ -29561,7 +29548,7 @@ to{transform:translateX(-8px)}
|
|
|
29561
29548
|
};
|
|
29562
29549
|
armBaseline();
|
|
29563
29550
|
const disposeFeed = list.subscribe(check);
|
|
29564
|
-
const disposeInteractions =
|
|
29551
|
+
const disposeInteractions = sessionStatus.subscribe(check);
|
|
29565
29552
|
return () => {
|
|
29566
29553
|
disposeFeed();
|
|
29567
29554
|
disposeInteractions();
|
|
@@ -30597,13 +30584,23 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30597
30584
|
style.remove();
|
|
30598
30585
|
};
|
|
30599
30586
|
}
|
|
30587
|
+
var SettingsRequestError = class extends Error {
|
|
30588
|
+
code;
|
|
30589
|
+
constructor(code, message) {
|
|
30590
|
+
super(message);
|
|
30591
|
+
this.code = code;
|
|
30592
|
+
}
|
|
30593
|
+
};
|
|
30600
30594
|
async function apiRequest(init) {
|
|
30601
30595
|
const response = await fetch(SETTINGS_ROUTE, {
|
|
30602
30596
|
credentials: "same-origin",
|
|
30603
30597
|
...init
|
|
30604
30598
|
});
|
|
30605
30599
|
const body = await response.json();
|
|
30606
|
-
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
|
+
}
|
|
30607
30604
|
return body.value;
|
|
30608
30605
|
}
|
|
30609
30606
|
/** Small external store shared by the Settings route and the CSS engine. */
|
|
@@ -30616,6 +30613,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30616
30613
|
};
|
|
30617
30614
|
listeners = /* @__PURE__ */ new Set();
|
|
30618
30615
|
generation = 0;
|
|
30616
|
+
writes = Promise.resolve();
|
|
30619
30617
|
subscribe = (listener) => {
|
|
30620
30618
|
this.listeners.add(listener);
|
|
30621
30619
|
return () => {
|
|
@@ -30651,35 +30649,56 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30651
30649
|
});
|
|
30652
30650
|
}
|
|
30653
30651
|
}
|
|
30654
|
-
|
|
30655
|
-
const
|
|
30656
|
-
|
|
30657
|
-
|
|
30658
|
-
|
|
30659
|
-
|
|
30660
|
-
|
|
30661
|
-
|
|
30662
|
-
|
|
30663
|
-
|
|
30664
|
-
|
|
30665
|
-
|
|
30666
|
-
|
|
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
|
+
}
|
|
30667
30679
|
});
|
|
30680
|
+
this.writes = write.catch(() => {});
|
|
30681
|
+
return write;
|
|
30668
30682
|
}
|
|
30669
30683
|
async set(field, value) {
|
|
30670
|
-
await this.post({
|
|
30684
|
+
await this.post(() => ({
|
|
30671
30685
|
action: "set",
|
|
30672
30686
|
field,
|
|
30673
|
-
value
|
|
30674
|
-
|
|
30675
|
-
});
|
|
30687
|
+
value
|
|
30688
|
+
}));
|
|
30676
30689
|
}
|
|
30677
30690
|
async unset(field) {
|
|
30678
|
-
await this.post({
|
|
30691
|
+
await this.post(() => ({
|
|
30679
30692
|
action: "unset",
|
|
30693
|
+
field
|
|
30694
|
+
}));
|
|
30695
|
+
}
|
|
30696
|
+
async step(field, delta, minimum, maximum) {
|
|
30697
|
+
await this.post(() => ({
|
|
30698
|
+
action: "set",
|
|
30680
30699
|
field,
|
|
30681
|
-
|
|
30682
|
-
});
|
|
30700
|
+
value: Math.min(maximum, Math.max(minimum, resolveValue(this.state.value)[field] + delta))
|
|
30701
|
+
}));
|
|
30683
30702
|
}
|
|
30684
30703
|
};
|
|
30685
30704
|
/**
|
|
@@ -30818,7 +30837,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30818
30837
|
const stepFontSize = (delta) => {
|
|
30819
30838
|
const next = Math.min(MAX_FONT_SIZE, Math.max(MIN_FONT_SIZE, resolved.fontSize + delta));
|
|
30820
30839
|
setDraft(String(next));
|
|
30821
|
-
controller.
|
|
30840
|
+
controller.step("fontSize", delta, MIN_FONT_SIZE, MAX_FONT_SIZE).then(() => {
|
|
30822
30841
|
setStatus("applied");
|
|
30823
30842
|
}).catch(() => {
|
|
30824
30843
|
setStatus("unavailable");
|
|
@@ -30827,7 +30846,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30827
30846
|
const stepLineHeight = (delta) => {
|
|
30828
30847
|
const next = Math.min(MAX_LINE_HEIGHT, Math.max(MIN_LINE_HEIGHT, resolved.lineHeight + delta));
|
|
30829
30848
|
setLineHeightDraft(String(next));
|
|
30830
|
-
controller.
|
|
30849
|
+
controller.step("lineHeight", delta, MIN_LINE_HEIGHT, MAX_LINE_HEIGHT).then(() => {
|
|
30831
30850
|
setStatus("applied");
|
|
30832
30851
|
}).catch(() => {
|
|
30833
30852
|
setStatus("unavailable");
|
|
@@ -30836,7 +30855,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
30836
30855
|
const stepCodeSize = (delta) => {
|
|
30837
30856
|
const next = Math.min(MAX_CODE_FONT_SIZE, Math.max(MIN_CODE_FONT_SIZE, resolved.codeFontSize + delta));
|
|
30838
30857
|
setCodeDraft(String(next));
|
|
30839
|
-
controller.
|
|
30858
|
+
controller.step("codeFontSize", delta, MIN_CODE_FONT_SIZE, MAX_CODE_FONT_SIZE).then(() => {
|
|
30840
30859
|
setStatus("applied");
|
|
30841
30860
|
}).catch(() => {
|
|
30842
30861
|
setStatus("unavailable");
|
|
@@ -31682,7 +31701,7 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
31682
31701
|
const t = ctx.locale.bind(NS);
|
|
31683
31702
|
return ctx.commandUi.register({
|
|
31684
31703
|
name: "init",
|
|
31685
|
-
description: t("initDesc"),
|
|
31704
|
+
description: () => t("initDesc"),
|
|
31686
31705
|
available: () => true,
|
|
31687
31706
|
ui: {
|
|
31688
31707
|
kind: "popupSelect",
|
|
@@ -31903,7 +31922,8 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
31903
31922
|
const enabled = controller.getSnapshot().value?.notificationsEnabled === true;
|
|
31904
31923
|
if (enabled && disposeNotifier === void 0) disposeNotifier = installTaskNotifier({
|
|
31905
31924
|
sessionsService: ctx.sessions,
|
|
31906
|
-
|
|
31925
|
+
sessionStatus: ctx.uiSession.sessionStatus,
|
|
31926
|
+
openSession: (id) => ctx.uiWorkspace.openSession(id),
|
|
31907
31927
|
text: {
|
|
31908
31928
|
notifyTitleDone: t("notifyTitleDone"),
|
|
31909
31929
|
notifyTitleAborted: t("notifyTitleAborted"),
|
|
@@ -32031,6 +32051,10 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
32031
32051
|
attachBetterLocale(void 0);
|
|
32032
32052
|
};
|
|
32033
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));
|
|
32034
32058
|
const sidebarStore = createSidebarStore();
|
|
32035
32059
|
const pluginMarketCatalog = createPluginMarketCatalog();
|
|
32036
32060
|
ctx.effect(() => {
|
|
@@ -32244,22 +32268,29 @@ div[data-slot="conversation.chat.node"] [class*="_markdown"]:not([data-markdown-
|
|
|
32244
32268
|
return () => {};
|
|
32245
32269
|
}
|
|
32246
32270
|
}, "dsh-better-sidebar: IME composition guard");
|
|
32247
|
-
|
|
32248
|
-
|
|
32249
|
-
|
|
32250
|
-
|
|
32251
|
-
|
|
32252
|
-
|
|
32253
|
-
"
|
|
32254
|
-
"
|
|
32255
|
-
"
|
|
32256
|
-
]
|
|
32257
|
-
|
|
32258
|
-
|
|
32259
|
-
|
|
32260
|
-
|
|
32261
|
-
|
|
32262
|
-
|
|
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
|
+
})));
|
|
32263
32294
|
registerPluginMarketSettings(ctx, pluginMarketCatalog);
|
|
32264
32295
|
ctx.slots.inject("settings.section", () => ctx.slots.register({
|
|
32265
32296
|
name: "settings.section",
|