@chatcode/cco-better-sidebar 0.18.0-alpha.0
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/LICENSE +21 -0
- package/README.md +554 -0
- package/README_EN.md +563 -0
- package/assets/logo.svg +1 -0
- package/cordis.patch.yml +79 -0
- package/lib/client-editor.js +55744 -0
- package/lib/client-mermaid.js +208256 -0
- package/lib/client-registry.js +30378 -0
- package/lib/client-terminal.js +16894 -0
- package/lib/client.js +30378 -0
- package/lib/index.js +6897 -0
- package/lib/invariant.js +22 -0
- package/lib/types/agent-opens.d.ts +65 -0
- package/lib/types/agent-pty.d.ts +226 -0
- package/lib/types/browser-probe.d.ts +15 -0
- package/lib/types/bundle-route.d.ts +12 -0
- package/lib/types/chatcode-update.d.ts +47 -0
- package/lib/types/client/AccountMenu.d.ts +1 -0
- package/lib/types/client/AiRatioSection.d.ts +3 -0
- package/lib/types/client/BrowserView.d.ts +39 -0
- package/lib/types/client/ChatcodeGate.d.ts +6 -0
- package/lib/types/client/CodingPlanModelsSettings.d.ts +9 -0
- package/lib/types/client/DiffTab.d.ts +6 -0
- package/lib/types/client/DiffView.d.ts +51 -0
- package/lib/types/client/EditorHost.d.ts +13 -0
- package/lib/types/client/FenceErrorNotice.d.ts +5 -0
- package/lib/types/client/FileTree.d.ts +41 -0
- package/lib/types/client/FreeWindow.d.ts +29 -0
- package/lib/types/client/GitView.d.ts +12 -0
- package/lib/types/client/MarkdownHtml.d.ts +32 -0
- package/lib/types/client/OrphanedTab.d.ts +11 -0
- package/lib/types/client/PdfView.d.ts +6 -0
- package/lib/types/client/ReleaseNotesDialog.d.ts +11 -0
- package/lib/types/client/RenderBoundary.d.ts +32 -0
- package/lib/types/client/SandboxStatusBar.d.ts +10 -0
- package/lib/types/client/SideCardSection.d.ts +74 -0
- package/lib/types/client/Sidebar.d.ts +8 -0
- package/lib/types/client/TabBar.d.ts +54 -0
- package/lib/types/client/TerminalView.d.ts +24 -0
- package/lib/types/client/TextEditor.d.ts +10 -0
- package/lib/types/client/TreePanel.d.ts +27 -0
- package/lib/types/client/UpdateDialog.d.ts +10 -0
- package/lib/types/client/UpdateSettingsPanel.d.ts +1 -0
- package/lib/types/client/UpdateSettingsSection.d.ts +10 -0
- package/lib/types/client/UploadOverlay.d.ts +20 -0
- package/lib/types/client/UsageHeatmapSection.d.ts +4 -0
- package/lib/types/client/add-plugin-modal.d.ts +15 -0
- package/lib/types/client/api.d.ts +345 -0
- package/lib/types/client/binary-download.d.ts +12 -0
- package/lib/types/client/breakpoints.d.ts +17 -0
- package/lib/types/client/browser.d.ts +60 -0
- package/lib/types/client/builtins/index.d.ts +18 -0
- package/lib/types/client/builtins/tabs.d.ts +11 -0
- package/lib/types/client/builtins/viewers.d.ts +3 -0
- package/lib/types/client/chat-presentation.d.ts +13 -0
- package/lib/types/client/chunk-loader.d.ts +124 -0
- package/lib/types/client/chunks/editor.d.ts +9 -0
- package/lib/types/client/chunks/mermaid.d.ts +10 -0
- package/lib/types/client/chunks/terminal.d.ts +9 -0
- package/lib/types/client/cm-themes.d.ts +24 -0
- package/lib/types/client/conversation-draft.d.ts +14 -0
- package/lib/types/client/desktop-env.d.ts +35 -0
- package/lib/types/client/editor-load.d.ts +66 -0
- package/lib/types/client/frame-batcher.d.ts +24 -0
- package/lib/types/client/icons.d.ts +66 -0
- package/lib/types/client/image-types.d.ts +3 -0
- package/lib/types/client/ime-guard.d.ts +36 -0
- package/lib/types/client/index.d.ts +19 -0
- package/lib/types/client/intercept.d.ts +44 -0
- package/lib/types/client/lang.d.ts +14 -0
- package/lib/types/client/layout-push.d.ts +15 -0
- package/lib/types/client/lazy-chunk.d.ts +25 -0
- package/lib/types/client/link-intercept.d.ts +42 -0
- package/lib/types/client/locales-ar.d.ts +18 -0
- package/lib/types/client/locales-de.d.ts +4 -0
- package/lib/types/client/locales-fr.d.ts +10 -0
- package/lib/types/client/locales-hi.d.ts +17 -0
- package/lib/types/client/locales-id.d.ts +15 -0
- package/lib/types/client/locales-it.d.ts +8 -0
- package/lib/types/client/locales-ja.d.ts +17 -0
- package/lib/types/client/locales-ko.d.ts +9 -0
- package/lib/types/client/locales-nl.d.ts +16 -0
- package/lib/types/client/locales-pl.d.ts +19 -0
- package/lib/types/client/locales-pt.d.ts +1 -0
- package/lib/types/client/locales-ru.d.ts +13 -0
- package/lib/types/client/locales-sv.d.ts +1 -0
- package/lib/types/client/locales-th.d.ts +17 -0
- package/lib/types/client/locales-tr.d.ts +17 -0
- package/lib/types/client/locales-vi.d.ts +17 -0
- package/lib/types/client/locales-zh-HK.d.ts +32 -0
- package/lib/types/client/locales-zh-MO.d.ts +32 -0
- package/lib/types/client/locales-zh-TW.d.ts +32 -0
- package/lib/types/client/locales.d.ts +571 -0
- package/lib/types/client/markdown-html.d.ts +96 -0
- package/lib/types/client/markdown-images.d.ts +45 -0
- package/lib/types/client/markdown-labels.d.ts +21 -0
- package/lib/types/client/md-toc.d.ts +4 -0
- package/lib/types/client/mermaid-blocks.d.ts +47 -0
- package/lib/types/client/mermaid-sanitize.d.ts +2 -0
- package/lib/types/client/mermaid.d.ts +12 -0
- package/lib/types/client/open-when-sized.d.ts +20 -0
- package/lib/types/client/open-with-settings.d.ts +4 -0
- package/lib/types/client/open-with.d.ts +87 -0
- package/lib/types/client/openpath-intercept.d.ts +52 -0
- package/lib/types/client/paths.d.ts +43 -0
- package/lib/types/client/pdf-types.d.ts +2 -0
- package/lib/types/client/pinned.d.ts +86 -0
- package/lib/types/client/plugin-settings.d.ts +8 -0
- package/lib/types/client/plugins-shared.d.ts +27 -0
- package/lib/types/client/plugins-tabs.d.ts +3 -0
- package/lib/types/client/plugins-viewers.d.ts +3 -0
- package/lib/types/client/prefs.d.ts +41 -0
- package/lib/types/client/produced-files.d.ts +29 -0
- package/lib/types/client/selection-payload.d.ts +27 -0
- package/lib/types/client/service.d.ts +445 -0
- package/lib/types/client/session-pins.d.ts +14 -0
- package/lib/types/client/settings-nav-icon.d.ts +27 -0
- package/lib/types/client/shell-presets.d.ts +48 -0
- package/lib/types/client/split-pane.d.ts +38 -0
- package/lib/types/client/state.d.ts +480 -0
- package/lib/types/client/tab-content-memo.d.ts +40 -0
- package/lib/types/client/terminal-font.d.ts +78 -0
- package/lib/types/client/terminal-links.d.ts +119 -0
- package/lib/types/client/theme.d.ts +45 -0
- package/lib/types/client/titlebar-strip.d.ts +23 -0
- package/lib/types/client/ui-tweaks/appicons.d.ts +16 -0
- package/lib/types/client/ui-tweaks/archive.d.ts +42 -0
- package/lib/types/client/ui-tweaks/branding.d.ts +45 -0
- package/lib/types/client/ui-tweaks/cachehit.d.ts +41 -0
- package/lib/types/client/ui-tweaks/gitbar.d.ts +103 -0
- package/lib/types/client/ui-tweaks/index.d.ts +279 -0
- package/lib/types/client/ui-tweaks/mcp.d.ts +28 -0
- package/lib/types/client/ui-tweaks/notifier.d.ts +125 -0
- package/lib/types/client/ui-tweaks/whale.d.ts +55 -0
- package/lib/types/client/upload.d.ts +69 -0
- package/lib/types/client/useChatcodeAccount.d.ts +10 -0
- package/lib/types/client/wco.d.ts +47 -0
- package/lib/types/codingplan.d.ts +37 -0
- package/lib/types/config.d.ts +95 -0
- package/lib/types/context-types.d.ts +540 -0
- package/lib/types/fs-operations.d.ts +30 -0
- package/lib/types/fs-search.d.ts +24 -0
- package/lib/types/fs-tree.d.ts +51 -0
- package/lib/types/git.d.ts +124 -0
- package/lib/types/html-route.d.ts +59 -0
- package/lib/types/index.d.ts +47 -0
- package/lib/types/invariant.d.ts +15 -0
- package/lib/types/login-route.d.ts +2 -0
- package/lib/types/open-external.d.ts +24 -0
- package/lib/types/path-security.d.ts +26 -0
- package/lib/types/prefs-shared.d.ts +257 -0
- package/lib/types/pty-deps.d.ts +79 -0
- package/lib/types/pty-manager.d.ts +168 -0
- package/lib/types/tools.d.ts +34 -0
- package/lib/types/trust-fence.d.ts +24 -0
- package/lib/types/ui-tweaks/archive.d.ts +71 -0
- package/lib/types/ui-tweaks/config.d.ts +186 -0
- package/lib/types/ui-tweaks/git-web.d.ts +43 -0
- package/lib/types/ui-tweaks/git.d.ts +311 -0
- package/lib/types/ui-tweaks/index.d.ts +17 -0
- package/lib/types/ui-tweaks/mcp.d.ts +103 -0
- package/lib/types/ui-tweaks/turn-outcome.d.ts +57 -0
- package/lib/types/ui-tweaks/web.d.ts +55 -0
- package/lib/types/wire.d.ts +38 -0
- package/package.json +213 -0
- package/scripts/install.ps1 +310 -0
- package/scripts/install.sh +287 -0
- package/src/agent-opens.ts +265 -0
- package/src/agent-pty.ts +527 -0
- package/src/browser-probe.ts +26 -0
- package/src/bundle-route.ts +129 -0
- package/src/chatcode-update.ts +193 -0
- package/src/client/AccountMenu.tsx +177 -0
- package/src/client/AiRatioSection.module.css +329 -0
- package/src/client/AiRatioSection.tsx +292 -0
- package/src/client/BrowserView.tsx +289 -0
- package/src/client/ChatcodeGate.tsx +35 -0
- package/src/client/CodingPlanModelsSettings.module.css +118 -0
- package/src/client/CodingPlanModelsSettings.tsx +101 -0
- package/src/client/DiffTab.tsx +114 -0
- package/src/client/DiffView.tsx +305 -0
- package/src/client/EditorHost.tsx +563 -0
- package/src/client/FenceErrorNotice.tsx +40 -0
- package/src/client/FileTree.tsx +701 -0
- package/src/client/FreeWindow.tsx +337 -0
- package/src/client/GitView.tsx +722 -0
- package/src/client/MarkdownHtml.tsx +296 -0
- package/src/client/OrphanedTab.tsx +27 -0
- package/src/client/PdfView.tsx +110 -0
- package/src/client/ReleaseNotesDialog.tsx +91 -0
- package/src/client/RenderBoundary.tsx +49 -0
- package/src/client/SandboxStatusBar.tsx +60 -0
- package/src/client/SideCardSection.module.css +932 -0
- package/src/client/SideCardSection.tsx +1169 -0
- package/src/client/Sidebar.tsx +1857 -0
- package/src/client/TabBar.tsx +365 -0
- package/src/client/TerminalView.tsx +424 -0
- package/src/client/TextEditor.tsx +468 -0
- package/src/client/TreePanel.tsx +279 -0
- package/src/client/UpdateDialog.tsx +186 -0
- package/src/client/UpdateSettingsPanel.tsx +29 -0
- package/src/client/UpdateSettingsSection.tsx +22 -0
- package/src/client/UploadOverlay.tsx +62 -0
- package/src/client/UsageHeatmapSection.module.css +440 -0
- package/src/client/UsageHeatmapSection.tsx +301 -0
- package/src/client/add-plugin-modal.tsx +199 -0
- package/src/client/api.ts +433 -0
- package/src/client/binary-download.tsx +23 -0
- package/src/client/breakpoints.ts +61 -0
- package/src/client/browser.ts +167 -0
- package/src/client/builtins/index.ts +37 -0
- package/src/client/builtins/tabs.tsx +275 -0
- package/src/client/builtins/viewers.tsx +125 -0
- package/src/client/chat-presentation.ts +95 -0
- package/src/client/chunk-loader.ts +350 -0
- package/src/client/chunks/editor.tsx +9 -0
- package/src/client/chunks/mermaid.tsx +10 -0
- package/src/client/chunks/terminal.tsx +9 -0
- package/src/client/cm-themes.ts +129 -0
- package/src/client/conversation-draft.ts +29 -0
- package/src/client/css-modules.d.ts +5 -0
- package/src/client/desktop-env.ts +72 -0
- package/src/client/editor-load.ts +92 -0
- package/src/client/frame-batcher.ts +56 -0
- package/src/client/icons.tsx +170 -0
- package/src/client/image-types.ts +8 -0
- package/src/client/ime-guard.ts +47 -0
- package/src/client/index.tsx +501 -0
- package/src/client/intercept.tsx +172 -0
- package/src/client/lang.ts +225 -0
- package/src/client/layout-push.ts +37 -0
- package/src/client/layout.css +156 -0
- package/src/client/lazy-chunk.tsx +89 -0
- package/src/client/link-intercept.ts +73 -0
- package/src/client/locales-ar.ts +387 -0
- package/src/client/locales-de.ts +372 -0
- package/src/client/locales-fr.ts +379 -0
- package/src/client/locales-hi.ts +386 -0
- package/src/client/locales-id.ts +384 -0
- package/src/client/locales-it.ts +377 -0
- package/src/client/locales-ja.ts +486 -0
- package/src/client/locales-ko.ts +378 -0
- package/src/client/locales-nl.ts +384 -0
- package/src/client/locales-pl.ts +388 -0
- package/src/client/locales-pt.ts +369 -0
- package/src/client/locales-ru.ts +384 -0
- package/src/client/locales-sv.ts +369 -0
- package/src/client/locales-th.ts +386 -0
- package/src/client/locales-tr.ts +386 -0
- package/src/client/locales-vi.ts +386 -0
- package/src/client/locales-zh-HK.ts +401 -0
- package/src/client/locales-zh-MO.ts +401 -0
- package/src/client/locales-zh-TW.ts +401 -0
- package/src/client/locales.ts +1229 -0
- package/src/client/markdown-html.ts +331 -0
- package/src/client/markdown-images.ts +137 -0
- package/src/client/markdown-labels.tsx +31 -0
- package/src/client/md-toc.tsx +127 -0
- package/src/client/mermaid-blocks.ts +110 -0
- package/src/client/mermaid-sanitize.ts +93 -0
- package/src/client/mermaid.tsx +406 -0
- package/src/client/open-when-sized.ts +43 -0
- package/src/client/open-with-settings.tsx +135 -0
- package/src/client/open-with.ts +221 -0
- package/src/client/openpath-intercept.ts +79 -0
- package/src/client/paths.ts +63 -0
- package/src/client/pdf-types.ts +4 -0
- package/src/client/pinned.ts +184 -0
- package/src/client/plugin-settings.ts +43 -0
- package/src/client/plugins-shared.ts +29 -0
- package/src/client/plugins-tabs.ts +153 -0
- package/src/client/plugins-viewers.ts +44 -0
- package/src/client/prefs.ts +216 -0
- package/src/client/produced-files.ts +120 -0
- package/src/client/selection-payload.ts +86 -0
- package/src/client/service.ts +873 -0
- package/src/client/session-pins.tsx +334 -0
- package/src/client/settings-nav-icon.ts +55 -0
- package/src/client/shell-presets.ts +83 -0
- package/src/client/sidebar.module.css +3607 -0
- package/src/client/split-pane.tsx +333 -0
- package/src/client/state.ts +1646 -0
- package/src/client/tab-content-memo.ts +55 -0
- package/src/client/terminal-font.ts +224 -0
- package/src/client/terminal-links.ts +194 -0
- package/src/client/theme.ts +110 -0
- package/src/client/titlebar-strip.ts +37 -0
- package/src/client/ui-tweaks/appicons.ts +24 -0
- package/src/client/ui-tweaks/archive.tsx +281 -0
- package/src/client/ui-tweaks/branding.tsx +232 -0
- package/src/client/ui-tweaks/cachehit.tsx +122 -0
- package/src/client/ui-tweaks/gitbar.tsx +2559 -0
- package/src/client/ui-tweaks/index.tsx +1696 -0
- package/src/client/ui-tweaks/mcp.tsx +582 -0
- package/src/client/ui-tweaks/notifier.ts +514 -0
- package/src/client/ui-tweaks/whale.tsx +171 -0
- package/src/client/upload.ts +187 -0
- package/src/client/useChatcodeAccount.ts +103 -0
- package/src/client/wco.ts +120 -0
- package/src/codingplan.ts +146 -0
- package/src/config.ts +207 -0
- package/src/context-types.ts +559 -0
- package/src/fs-operations.ts +97 -0
- package/src/fs-search.ts +113 -0
- package/src/fs-tree.ts +158 -0
- package/src/git.ts +446 -0
- package/src/html-route.ts +106 -0
- package/src/index.ts +1524 -0
- package/src/invariant.ts +32 -0
- package/src/login-route.ts +26 -0
- package/src/open-external.ts +90 -0
- package/src/path-security.ts +81 -0
- package/src/prefs-shared.ts +303 -0
- package/src/pty-deps.ts +241 -0
- package/src/pty-manager.ts +376 -0
- package/src/tools.ts +482 -0
- package/src/trust-fence.ts +84 -0
- package/src/ui-tweaks/archive.ts +293 -0
- package/src/ui-tweaks/config.ts +257 -0
- package/src/ui-tweaks/git-web.ts +421 -0
- package/src/ui-tweaks/git.ts +1524 -0
- package/src/ui-tweaks/index.ts +61 -0
- package/src/ui-tweaks/mcp.ts +535 -0
- package/src/ui-tweaks/turn-outcome.ts +105 -0
- package/src/ui-tweaks/web.ts +225 -0
- package/src/wire.ts +110 -0
- package/vendor/addon-fit.js +2 -0
- package/vendor/xterm.css +218 -0
- package/vendor/xterm.js +5 -0
package/assets/logo.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1788509170307" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1681" xmlns:xlink="http://www.w3.org/1999/xlink" width="200.1953125" height="200"><path d="M733.373245 866.20891c-51.925994 51.978359-136.225239 51.978359-188.180813 0-20.439542-20.377984-32.450399-32.470785-32.450399-32.470785s-12.070017 12.092601-32.411625 32.470785c-52.039717 51.978359-136.282001 51.978359-188.262558 0-51.982956-51.994148-51.982956-136.245625 0-188.239773 14.445406-14.422621 159.008192-158.974016 159.008192-158.974016s-144.562786-144.526411-159.008192-158.971817c-51.982956-52.019331-51.982956-136.245625 0-188.239773 51.980557-51.969165 136.220642-51.969165 188.262558 0 20.341808 20.387177 32.411625 32.425416 32.411625 32.425416s12.010857-12.038238 32.450399-32.425416c51.955574-51.969165 136.254619-51.969165 188.180813 0 51.991949 51.994148 51.991949 136.220642 0 188.239973-14.438611 14.445406-158.998999 158.971817-158.998999 158.971817s144.562786 144.553593 158.998999 158.974016C785.365194 729.963485 785.365194 814.214762 733.373245 866.20891L733.373245 866.20891zM512.076284 580.006556c0 0-139.484829 140.8553-158.314863 159.665147-17.907259 17.882276-17.907259 46.934378 0 64.843836 17.884474 17.895867 46.952566 17.895867 64.871217 0 17.218526-17.252703 32.448-32.459393 32.448-32.459393l-49.096113-49.043748 61.679781-61.66619 49.077925 49.080124 49.046147-49.080124 61.679781 61.66619-49.030158 49.043748c0 0 15.14773 15.20689 32.414023 32.459393 17.961822 17.895867 46.96156 17.895867 64.843836 0 17.932242-17.907259 17.932242-46.96176 0-64.843836C652.895209 720.862056 512.076284 580.006556 512.076284 580.006556L512.076284 580.006556zM100.648033 486.572104c-8.93774 8.949132-13.381527 20.680379-13.381527 32.423017 0 11.758628 4.443787 23.476283 13.381527 32.427614 17.907259 17.895867 46.963958 17.895867 64.907593 0 14.538543-14.563526 32.411825-32.427614 32.411825-32.427614s-17.87548-17.870884-32.411825-32.423017C147.611991 468.651055 118.555292 468.651055 100.648033 486.572104L100.648033 486.572104zM671.693464 298.343523c17.932242-17.918651 17.932242-46.975351 0-64.868819-17.882276-17.92085-46.882214-17.92085-64.843836 0-17.266293 17.252703-32.414023 32.434409-32.414023 32.434409l49.030158 49.077925-61.679781 61.632013-49.043748-49.057339-49.077925 49.057339-61.679781-61.632013 49.07113-49.077925c0 0-15.20689-15.181907-32.423017-32.434409-17.918651-17.92085-46.986743-17.92085-64.8962 0-17.882276 17.893668-17.882276 46.950368 0 64.869019 18.855016 18.786863 158.342244 159.63097 158.342244 159.63097S652.895209 317.130386 671.693464 298.343523L671.693464 298.343523zM858.60134 486.572104c-14.538543 14.549935-32.414023 32.423017-32.414023 32.423017s17.873082 17.86169 32.414023 32.427614c17.918651 17.895867 46.998135 17.895867 64.902996 0 8.93774-8.951331 13.429295-20.668986 13.429295-32.427614 0-11.742638-4.493753-23.474085-13.429295-32.423017C905.597077 468.651055 876.517793 468.651055 858.60134 486.572104L858.60134 486.572104zM38.977245 613.109312c-25.981185-25.990379-38.976374-60.027301-38.976374-94.114191 0-34.084691 12.995189-68.119415 38.976374-94.111992 51.973762-52.003342 136.275205-52.003342 188.267155 0 14.888705 14.902296 32.411625 32.425416 32.411625 32.425416l49.043748-49.036953 61.691173 61.643406-49.102908 49.077925 49.102908 49.055141-61.691173 61.643406-49.043748-49.046147c0 0-17.523119 17.561693-32.411625 32.461791C175.250252 665.092267 90.951007 665.092267 38.977245 613.109312L38.977245 613.109312zM985.186316 613.109312c-51.996346 51.980557-136.295592 51.980557-188.27395 0-14.877313-14.902296-32.427614-32.457194-32.427614-32.457194l-49.057339 49.043748-61.66619-61.641207 49.084721-49.059737-49.084721-49.075527 61.66619-61.643406 49.057339 49.034754c0 0 17.550301-17.523119 32.427614-32.425416 51.978359-52.003342 136.282001-52.003342 188.27395 0 25.967594 25.992577 38.971977 60.0295 38.971977 94.114191C1024.158293 553.08201 1011.15391 587.119133 985.186316 613.109312L985.186316 613.109312z" fill="#E90003" p-id="1682"></path></svg>
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# @chatcode/cco-better-sidebar bundle patch
|
|
2
|
+
#
|
|
3
|
+
# This file is the `dsh.bundle.patch` layer of the published npm package: when
|
|
4
|
+
# the plugin is installed through the official CLI —
|
|
5
|
+
#
|
|
6
|
+
# chatcode-cli plugin --profile <name> add @chatcode/cco-better-sidebar@<version>
|
|
7
|
+
#
|
|
8
|
+
# — the command reconciles `dsh.profile.bundles` against installed packages
|
|
9
|
+
# and, seeing this declaration, appends `@chatcode/cco-better-sidebar` to the bundle
|
|
10
|
+
# stack. The profile boot then merges THIS patch (a single `insert` of the
|
|
11
|
+
# plugin row) exactly like the manual cordis.patch.yml mount line used
|
|
12
|
+
# before. No profile file edits needed — one command installs and mounts.
|
|
13
|
+
#
|
|
14
|
+
# This package now embeds dsh-ui-tweaks while deliberately retaining its
|
|
15
|
+
# `ui-tweaks` settings namespace and `/_dsh/ui-tweaks/*` routes. Remove any
|
|
16
|
+
# standalone `dsh-ui-tweaks` row/bundle before mounting this package; keeping
|
|
17
|
+
# both would register the same settings namespace and routes twice. Existing
|
|
18
|
+
# settings.yaml values do not need migration.
|
|
19
|
+
#
|
|
20
|
+
# If the profile still carries the old manual mount line in its own
|
|
21
|
+
# cordis.patch.yml, remove it before switching to the bundle channel to
|
|
22
|
+
# avoid double-mounting (two Node halves, two sidebars).
|
|
23
|
+
#
|
|
24
|
+
# To choose the terminal shell, add `config.shell` to the inserted plugin
|
|
25
|
+
# row (or to the profile's manual cordis.patch.yml mount line). When omitted,
|
|
26
|
+
# the host keeps resolving $SHELL / the login shell / powershell.exe.
|
|
27
|
+
# `config.userName` optionally overrides the system username shown in the
|
|
28
|
+
# bottom-left account menu.
|
|
29
|
+
# `config.shellArgs` optionally supplies explicit startup arguments; when
|
|
30
|
+
# non-empty they replace the automatic POSIX `-l` login flag:
|
|
31
|
+
# `config.codingPlan.baseUrl` selects the CodingPlan service origin (default
|
|
32
|
+
# http://localhost:8080). The sidebar reads `/api/cli/v1/model-runtime-configs`
|
|
33
|
+
# when it starts; returned API keys remain in the host process and are never
|
|
34
|
+
# sent to the browser.
|
|
35
|
+
#
|
|
36
|
+
# - insert:
|
|
37
|
+
# - id: better-sidebar
|
|
38
|
+
# name: '@chatcode/cco-better-sidebar'
|
|
39
|
+
# config:
|
|
40
|
+
# shell: /bin/zsh
|
|
41
|
+
# shellArgs:
|
|
42
|
+
# - --noprofile
|
|
43
|
+
# - --no-rc
|
|
44
|
+
#
|
|
45
|
+
# Aggregate double-mount guard: aggregate bundles (e.g. @linxin666/dsh-web-ui-all)
|
|
46
|
+
# may already mount this package under their own entry id (e.g.
|
|
47
|
+
# `web-ui-better-sidebar`). Two mounts register /sidebar/api twice and fail the
|
|
48
|
+
# whole plugin tree at boot ("duplicate prefix route"). The `!!js` disabled
|
|
49
|
+
# expression backs THIS row off when another *enabled* entry already mounts
|
|
50
|
+
# `@chatcode/cco-better-sidebar`; the aggregate instance then owns the sidebar. The
|
|
51
|
+
# loader evaluates it when this row is processed (entry-list order, only rows
|
|
52
|
+
# before this one are visible), so the aggregate bundle must precede this one
|
|
53
|
+
# in `dsh.profile.bundles` — the standard install order, since `dsh plugin add`
|
|
54
|
+
# appends new bundles last. The reverse order (this bundle before the
|
|
55
|
+
# aggregate) is a known limitation: the guard cannot see rows that come after
|
|
56
|
+
# it, and no runtime singleton guard is added. Same-id manual duplicates still
|
|
57
|
+
# fail loudly at the loader as before.
|
|
58
|
+
- insert:
|
|
59
|
+
- id: better-sidebar
|
|
60
|
+
name: '@chatcode/cco-better-sidebar'
|
|
61
|
+
disabled: !!js "[...ctx.loader.entries()].some((e) => e.options.name === '@chatcode/cco-better-sidebar' && e.options.id !== 'better-sidebar' && !e.disabled)"
|
|
62
|
+
|
|
63
|
+
# Aggregated browser mount: this package now bundles the shared real-browser
|
|
64
|
+
# capability as a dependency, so a single `dsh plugin add dsh-better-sidebar`
|
|
65
|
+
# install also mounts the browser seam, the Electron CDP provider, and the
|
|
66
|
+
# model-facing browser_* tools. Entry names mirror @chatcode/cco-builtin-browser's own
|
|
67
|
+
# bundle patch (subpath exports); the Electron provider reads the desktop
|
|
68
|
+
# shell's `electronViewHost`, self-hosting its own Electron window otherwise.
|
|
69
|
+
- insert:
|
|
70
|
+
- id: browser
|
|
71
|
+
name: '@chatcode/cco-builtin-browser/browser'
|
|
72
|
+
|
|
73
|
+
- id: browser-electron
|
|
74
|
+
name: '@chatcode/cco-builtin-browser/browser-electron'
|
|
75
|
+
config:
|
|
76
|
+
viewHost: !!js ctx.get('electronViewHost')
|
|
77
|
+
|
|
78
|
+
- id: tool-browser
|
|
79
|
+
name: '@chatcode/cco-builtin-browser/tool-browser'
|