@chatcode/chatcode-cli 3.0.5 → 3.0.6-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.i18n.yaml +6 -6
- package/README.md +7 -0
- package/README.zh.md +7 -0
- package/lib/bin.js +19 -5
- package/lib/{command-errors-CnbcOM1a.js → command-errors-vCFKCJFq.js} +12 -12
- package/lib/{command-trees-CU7BxVJo.js → command-trees-N2_LR4f-.js} +2 -2
- package/lib/{component-identity-kZK1_hFy.js → component-identity-CaV_MmmE.js} +3 -3
- package/lib/desktop-history-B0iUekXf.js +72 -0
- package/lib/desktop-history-DvgkONgj.js +2 -0
- package/lib/{dump-config-D8kXfdTs.js → dump-config-CgIYHBp2.js} +1 -1
- package/lib/dump-config-D6TruNva.js +2 -0
- package/lib/{dump-config-schema-CtZbroi6.js → dump-config-schema-GiAtkJwx.js} +2 -2
- package/lib/{extension-events-hLxwPvpg.js → extension-events-B5qKP0-X.js} +20 -20
- package/lib/{host-access-kT-u85k_.js → host-access-BRXW3V8i.js} +1 -1
- package/lib/{keymap-DS1M8sDo.js → keymap-BYjklwli.js} +2 -2
- package/lib/{plugin-CYw-MBRn.js → plugin-BACkrsVG.js} +1 -1
- package/lib/{plugin-d65VulBk.js → plugin-VYAv2o0K.js} +498 -348
- package/lib/{profile-boot-CffsubnV.js → profile-boot-c5YKtUIb.js} +17 -4
- package/lib/profile-boot.js +1 -1
- package/lib/{scenes-DG6T8t-A.js → scenes-B-iDMpgW.js} +3 -3
- package/lib/{settings-sections-2SuE0biI.js → settings-sections-CYCrZKUk.js} +3 -3
- package/lib/{statusBarSettings-B2MEAwnI.js → statusBarSettings-Cu-b_o4Q.js} +3 -3
- package/lib/{themes-DUO7kGW-.js → themes-DC9GpV6q.js} +12 -12
- package/lib/tui-compat-command-trees.js +1 -1
- package/lib/tui-compat-extensions.js +3 -3
- package/lib/tui-compat-plugin-host.js +5 -5
- package/lib/tui-compat-scenes.js +1 -1
- package/lib/tui-compat-settings-sections.js +1 -1
- package/lib/tui-compat-working-activity.js +1 -1
- package/lib/tui-compat-workspaces.js +1 -1
- package/lib/tui-compat.js +6 -6
- package/lib/types/args.d.ts +8 -1
- package/lib/types/desktop-history.d.ts +31 -0
- package/lib/types/installed-bin.d.ts +9 -0
- package/lib/{workspaces-CLOkL_yE.js → workspaces-BchdRzlw.js} +2 -2
- package/package.json +26 -26
- package/runtime/manifest.json +3 -2
- package/runtime/node_modules/@chatcode/runtime-client/README.md +225 -0
- package/runtime/node_modules/@chatcode/runtime-client/desktop-history-guard.mjs +65 -0
- package/runtime/node_modules/@chatcode/runtime-client/desktop-history.mjs +278 -0
- package/runtime/node_modules/@chatcode/runtime-client/desktop-permission-gate.mjs +28 -0
- package/runtime/node_modules/@chatcode/runtime-client/execution.mjs +593 -0
- package/runtime/node_modules/@chatcode/runtime-client/index.d.ts +449 -0
- package/runtime/node_modules/@chatcode/runtime-client/model-preferences.mjs +57 -0
- package/runtime/node_modules/@chatcode/runtime-client/package.json +53 -0
- package/runtime/node_modules/@chatcode/runtime-client/runtime-connector.mjs +736 -0
- package/runtime/node_modules/@chatcode/runtime-client/session-activity.mjs +121 -0
- package/runtime/node_modules/@chatcode/runtime-client/session-browser.mjs +122 -0
- package/runtime/node_modules/@chatcode/runtime-client/stdio-bridge.mjs +103 -0
- package/runtime/node_modules/@chatcode/runtime-client/user-questions.mjs +108 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/journal.d.ts +69 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/journal.d.ts.map +1 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/patch.d.ts +68 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-include/lib/types/patch.d.ts.map +1 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-loader/lib/types/resolve.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/cordis-plugin-loader/lib/types/resolve.d.ts.map +1 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/index.js +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-agent/lib/types/runtime-types.d.ts +12 -3
- package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/types/index.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +69 -17
- package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/invariant.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/types/agent.d.ts +3 -1
- package/runtime/node_modules/@deepseek-ai/dsh-agent-loop/lib/types/inbox.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.js +164 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +460 -79
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +636 -44
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +483 -55
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.d.ts +19 -1
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +377 -40
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.d.ts +24 -4
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +97 -15
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.d.ts +11 -2
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +172 -18
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.d.ts +35 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.js +48 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.js +80 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.d.ts +104 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +294 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.d.ts +105 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +297 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +4 -4
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.d.ts +88 -1
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +230 -6
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.d.ts +64 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/login-token-store.js +79 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.d.ts +45 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.js +289 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.js +112 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.d.ts +93 -1
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.d.ts +25 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.js +139 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.d.ts +42 -0
- package/runtime/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.js +101 -0
- package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/bundle-platform.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/startup-diagnostics.d.ts +38 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/client/socket.d.ts +50 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/connect-protocol.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-connection/lib/types/peer.d.ts +36 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/de.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/es.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/fr.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/ja.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/pt.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-locale/lib/types/locales/ru.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/assets.d.ts +51 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/client/notify.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-modules/lib/types/client/release-change.d.ts +44 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/types/client/CreatePluginMenuItem.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/types/client/analytics.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/types/client/ApprovalCard.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/types/client/ApprovalWarning.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/PixelWhale.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/artwork.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/code-fill.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/types/client/home-whale/renderer.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/ChatFlow.d.ts +4 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/ReasoningContent.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/RunningStatus.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/RunningWhaleTail.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/UserContent.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/flow-motion.d.ts +110 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/text-interaction.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/chat/text-selection.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/contract/group-tree.d.ts +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/conversation-nodes/group-tree-segments.d.ts +42 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/file-path.d.ts +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/client/reasoning-text.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/index.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/types/client/option-groups.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/text-interaction.d.ts +31 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/user-text.d.ts +60 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/interaction-registry.d.ts +28 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/user-text-document.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/conversation/user-text-registry.d.ts +26 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/draft.d.ts +23 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/CommandChip.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/QuoteNode.d.ts +61 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/command-chip-node.d.ts +87 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/editor/command-chip-selection.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/prompt.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/submission-analytics.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/UserText.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/session-reference-rule.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/user-text/whitespace-rules.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/view-pins.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/types/client/GoalCommandReference.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/types/client/user-text-rules.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/types/client/provider-order.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/context-menus.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/open-toast.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/outcome.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/types/client/session-open-with.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/BundleDetailSection.d.ts +26 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/PluginRefreshToast.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/detail-store.d.ts +76 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/header-scroll.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/sanitize-install-input.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/tab-ledger.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/types/client/versions.d.ts +33 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/AnimatedRows.module.css +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CommandText.module.css +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DetailDocument.module.css +67 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/InlineEditor.module.css +23 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/QuotePreview.module.css +101 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RowDragPreview.module.css +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/UserMessageBubble.module.css +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ZoomControls.module.css +54 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/AnimatedRows.d.ts +49 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CommandText.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DetailDocument.d.ts +78 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DraggableImage.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCardGroup.d.ts +25 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/InlineEditor.d.ts +23 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuRow.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/QuotePreview.d.ts +24 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SubmenuPanel.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/UserMessageBubble.d.ts +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ZoomControls.d.ts +27 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/document-zoom.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-drag-actions.d.ts +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/artwork.d.ts +426 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/image-drag.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/copy-tex.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/quote-text.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/windows-path-destinations.d.ts +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/menu-submenu-position.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/tooltip-placement.d.ts +35 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-clipboard-copy.d.ts +14 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useMenuSubmenu.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useRowDragPreview.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/types/client/FileReference.d.ts +29 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/types/client/user-text-rules.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/NewSessionLimit.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/RuleSelectRow.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/ScheduleEmptyIllustration.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/TaskEditorFields.d.ts +54 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/TaskRuleControls.d.ts +50 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/clear-ended.d.ts +33 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/editor-store.d.ts +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/editor-timing.d.ts +47 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/types/client/task-record.d.ts +30 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/account-avatar.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/browser-login.d.ts +33 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/client/notice-transition.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/index.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/onboarding-settings.d.ts +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/DesktopChannelRow.d.ts +31 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/HostReleasePrompt.d.ts +24 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/desktop-channel-source.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/ApiKeyInput.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/ModelReasoningEfforts.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/useModelRows.d.ts +41 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/PanelIcon.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/panel-pins.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/types/client/scroll-handoff.d.ts +24 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.frontmatter-fields.js +5768 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/PreviewFrame.d.ts +34 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/image/pan.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/markdown/frontmatter-fields.d.ts +20 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/markdown/frontmatter.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/FileNavigator.d.ts +33 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/FileTree.d.ts +114 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/NavigatorToggle.d.ts +28 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/navigator-layout.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/types/client/workspace-tree.d.ts +51 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/shell/TabMenuContent.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/shell/flash.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/tabs/guide/GuideMoreIcon.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/types/client/tabs/guide/guide-pins.d.ts +28 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/types/client/SkillReference.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/types/client/user-text-rules.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/types/client/slots.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/FontFamilyRow.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/FontSettingsGroup.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/types/client/icon-sprite.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/components/ExitCodeBadge.d.ts +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/components/QuestionToolRow.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/file-menu.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/types/client/tool/models/recorded-path.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/types/client/watch-tool-result.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/types/types.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/types/client/QuestionReplyView.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/types/client/question-reply.d.ts +74 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/contract/toast.d.ts +67 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/path-suffix.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/rows/WorkspaceDialogs.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/session-actions/SessionMenu.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/session-actions/context-menus.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/toast/Toast.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/toast/register.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.d.ts +46 -0
- package/runtime/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
- package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +11 -8
- package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/types/index.d.ts +3 -1
- package/runtime/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -10
- package/runtime/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/types/locales.d.ts +48 -0
- package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/MicrophonePicker.d.ts +6 -0
- package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/failure-text.d.ts +11 -0
- package/runtime/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/types/client/microphone-device.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-Bh4BGGk9.js → json-stream-Dc3g2Bl1.js} +11 -7
- package/runtime/node_modules/@deepseek-ai/dsh-hmr/lib/types/module-files.d.ts +48 -0
- package/runtime/node_modules/@deepseek-ai/dsh-hmr/lib/types/package-manifest.d.ts +35 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/index.js +241 -64
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +26 -11
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/call-config.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/call-config.js +5 -1
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/index.d.ts +30 -6
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +109 -8
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/message.d.ts +5 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/prompt-protocol-options.d.ts +5 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/prompt-protocol-options.js +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm/lib/types/types.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +19 -7
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/config.d.ts +3 -3
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/credential.d.ts +34 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listed-catalog.d.ts +56 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing-cache.d.ts +71 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing-config.d.ts +48 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/listing.d.ts +91 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocol-adapter.d.ts +3 -1
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/types/config.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/types/config.d.ts +2 -2
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +149 -28
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/adapter.d.ts +3 -1
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/prompt-options.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/provider-data.generated.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/types/types.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/credentials.d.ts +34 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/deadline.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/diagnostic.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/generation.d.ts +42 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/probe.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/status.d.ts +87 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/templates.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-mcp-client/lib/types/types.d.ts +85 -0
- package/runtime/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +4 -4
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.js +85 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.js +72 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.d.ts +27 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.js +65 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/official-install-target.js +54 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.d.ts +40 -0
- package/runtime/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.js +61 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/config.d.ts +38 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/configuration.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/async-function.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/index.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/repl.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/types.d.ts +68 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/vm-script-await.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/evaluators/vm-script.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/execution.d.ts +66 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/evaluation-ended.d.ts +7 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/module-hooks.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/imports/vm-modules.d.ts +35 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/persistent-process-entry.d.ts +2 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/persistent-process.d.ts +16 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/policy-processes.d.ts +30 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/rpc.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/types/worker.d.ts +66 -0
- package/runtime/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +215 -9
- package/runtime/node_modules/@deepseek-ai/dsh-sandbox/lib/types/locales.d.ts +41 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types/acl-skill.d.ts +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-Ci-q7_aQ.js → types-DwkEVVWZ.js} +357 -81
- package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-activity.d.ts +43 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-content.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/query-input.d.ts +12 -0
- package/runtime/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/types/user-questions.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session/lib/index.js +2 -1
- package/runtime/node_modules/@deepseek-ai/dsh-session/lib/types/request-header.js +2 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session/lib/types/types.d.ts +2 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/CopyToast.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/copy-controller.d.ts +76 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/markdown.d.ts +22 -0
- package/runtime/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +197 -9
- package/runtime/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +5 -5
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.d.ts +112 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/activation.js +112 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.d.ts +232 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +1250 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.d.ts +56 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.d.ts +49 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subagent/lib/types/structured.js +130 -0
- package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/types/linux-scope-selector.d.ts +60 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +215 -9
- package/runtime/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.d.ts +74 -0
- package/runtime/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.js +94 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/types/timed.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +31 -1
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch-output.d.ts +140 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch-presentation.d.ts +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/apply-patch.d.ts +10 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/mutation-result.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/execute.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/index.d.ts +17 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/plan.d.ts +52 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/preflight.d.ts +18 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-fs/lib/types/patch/types.d.ts +106 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent/lib/types/preset-selection.d.ts +36 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/wait-agent.d.ts +8 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/wait-agent.js +104 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.d.ts +26 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.js +246 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.d.ts +376 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.js +51 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/events.d.ts +58 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/events.js +2 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.d.ts +90 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.js +19 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.d.ts +154 -0
- package/runtime/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.js +701 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/principal.d.ts +13 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/principal.js +15 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-access.d.ts +32 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-access.js +9 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.d.ts +21 -0
- package/runtime/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.js +143 -0
- package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.d.ts +85 -0
- package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/projection.js +298 -0
- package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.d.ts +37 -0
- package/runtime/node_modules/@deepseek-ai/dsh-user-questions/lib/types/timed-wait.js +85 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/cron.d.ts +54 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/duration.d.ts +61 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/instant.d.ts +145 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/recurrence.d.ts +38 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-time/lib/types/rrule.d.ts +34 -0
- package/runtime/node_modules/@deepseek-ai/dsh-util-values/lib/types/partial-json.d.ts +152 -0
- package/runtime/node_modules/@deepseek-ai/dsh-web-app/lib/types/public-url.d.ts +16 -0
- package/lib/dump-config-DuCc-QB7.js +0 -2
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.d.ts +0 -26
- package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
- package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/watch-config.d.ts +0 -13
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/types/ImageLightbox.d.ts +0 -27
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/contract/queue.d.ts +0 -9
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/types/client/input/queue-store.d.ts +0 -20
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/types/client/ProducedFiles.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/types/client/icons.d.ts +0 -8
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -29
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/settings-contract.d.ts +0 -86
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/settings-scope.d.ts +0 -141
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/desktop-update-bridge.d.ts +0 -23
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/AgentLoopCard.d.ts +0 -12
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/BashCard.d.ts +0 -12
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/ConfigurablePluginsTab.d.ts +0 -19
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/PluginCard.d.ts +0 -42
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/PluginConfigForm.d.ts +0 -34
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentCard.d.ts +0 -12
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentLimitsFields.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentModelSelectionCard.d.ts +0 -12
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/SubagentModelSelectionFields.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/WebSearchCard.d.ts +0 -16
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/agent-loop-card-controller.d.ts +0 -43
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/bash-card-controller.d.ts +0 -45
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/card-form.d.ts +0 -171
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/fields.d.ts +0 -69
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/slot-contract.d.ts +0 -31
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-card-controller.d.ts +0 -32
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-limits-card-controller.d.ts +0 -33
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/subagent-model-selection-card-controller.d.ts +0 -129
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/tab-store.d.ts +0 -65
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/types/client/web-search-card-controller.d.ts +0 -93
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/code/languages.d.ts +0 -9
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/icons.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/types/client/pdf/PdfBody.d.ts +0 -24
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/types/client/TerminalBody.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/types/client/subagent-lineage.d.ts +0 -21
- package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/subagent-lineage.d.ts +0 -21
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/defaults.d.ts +0 -24
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/file-id.d.ts +0 -19
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/file-store.d.ts +0 -86
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/files-api.d.ts +0 -111
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/image-tokens.d.ts +0 -34
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/messages-api.d.ts +0 -10
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/model-info.d.ts +0 -16
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/models.d.ts +0 -4
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-extensions.d.ts +0 -16
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-files.d.ts +0 -49
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/request-pricing.d.ts +0 -60
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/types.d.ts +0 -119
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/common/upload-index.d.ts +0 -68
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/adapter.d.ts +0 -45
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/serialize.d.ts +0 -78
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/sse.d.ts +0 -24
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/translate.d.ts +0 -37
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/chat-completions/types.d.ts +0 -178
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/adapter.d.ts +0 -47
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/images.d.ts +0 -35
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/replay.d.ts +0 -27
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/serialize.d.ts +0 -18
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/sse.d.ts +0 -8
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/translate.d.ts +0 -14
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/transport.d.ts +0 -15
- package/runtime/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/types/protocols/messages/types.d.ts +0 -62
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.d.ts +0 -19
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +0 -30
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.d.ts +0 -35
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +0 -68
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.d.ts +0 -10
- package/runtime/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +0 -22
- package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.d.ts +0 -16
- package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.js +0 -41
- package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +0 -1525
- package/runtime/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/fiber-state.d.ts +0 -28
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/fiber-state.js +0 -25
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/inspect.d.ts +0 -93
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/inspect.js +0 -303
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/prompt.d.ts +0 -3
- package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/prompt.js +0 -5
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } from "./rolldown-runtime-2rV9d50f.js";
|
|
2
|
-
import { _ as settingsValue, a as formatContextUsage, c as normalizePageMargin, d as normalizeToolBackground, f as parsePageMarginSpec, h as displaySettingsScope, i as applyPageMargin, l as normalizeScrollGutter, m as subscribePageMargin, n as createStatusBarSchema, o as getPageMarginSetting, p as resolvePageMargin, s as isPageMarginMode, t as STATUS_BAR_FIELDS, u as normalizeStatusBar } from "./statusBarSettings-
|
|
3
|
-
import { a as draftComboConflict, d as setKeymapOverrides, f as isMod, h as modLabel, l as parseComboDraft, m as isPlainReturnInput, n as actionMatches, o as effectiveComboString, p as isPlainReturn, t as SHORTCUT_ACTIONS } from "./keymap-
|
|
4
|
-
import { c as withHostRootCapability } from "./host-access-
|
|
5
|
-
import { i as getHostWorkspaceRuntime, r as createLocalWorkspaceRuntime } from "./workspaces-
|
|
6
|
-
import { n as getHostCommandTrees } from "./command-trees-
|
|
7
|
-
import { a as isReservedCredentialRef, n as getHostSettingsSections, r as getLocalSettingsSectionsHost } from "./settings-sections-
|
|
8
|
-
import { n as getHostSceneRuntime } from "./scenes-
|
|
9
|
-
import { A as tuiEnvName, C as LEGACY_DATA_DIR, D as homeDir, E as detectLegacyEnv, J as parseManifest, M as loadSpecData, O as readTuiEnv, S as DATA_DIR, T as RENAMED_ENV, Y as projectManifest, _ as stripAnsi$1, a as normalizeCancelDecision, b as isWide, c as installDecisionGuard, d as capCells, f as cleanRenderText, g as getGraphemeSegmenter, h as stringWidth$1, i as dispatchTuiNotification, k as resolveChatCodeCliHome, m as flattenInline, p as cleanScalarText, r as dispatchTuiDecision, v as eastAsianWidth, w as PRE_DSH_TUI_DATA_DIR, x as readGrantStore, y as isFullWidth } from "./extension-events-
|
|
10
|
-
import { A as validatePlugin, D as buildHostDescriptor, O as negotiate, _ as getHostMessageObserver, a as commandOwner, k as createContractIndex, n as hasCommandErrorCode, r as mapCommandError, w as EFFECT_LEDGER_FILE } from "./command-errors-
|
|
11
|
-
import { D as getHostStatusStore, E as TuiStatusStore, M as getHostDialogStore, S as getHostShortcuts, a as listCustomThemes, b as getHostRenderers, c as THEME_NAMES, d as getTheme, f as isLightThemeActive, g as setAutoThemeBase, h as setActiveThemeName, i as isSafeThemeName, j as TuiDialogStore, l as getActiveTheme, m as registerCustomThemeResolver, n as getHostThemes, o as resolveCustomTheme, p as isThemeAvailable, r as buildTheme, s as AUTO_THEME_NAME, u as getAutoThemeBase, v as getHostToastStore } from "./themes-
|
|
2
|
+
import { _ as settingsValue, a as formatContextUsage, c as normalizePageMargin, d as normalizeToolBackground, f as parsePageMarginSpec, h as displaySettingsScope, i as applyPageMargin, l as normalizeScrollGutter, m as subscribePageMargin, n as createStatusBarSchema, o as getPageMarginSetting, p as resolvePageMargin, s as isPageMarginMode, t as STATUS_BAR_FIELDS, u as normalizeStatusBar } from "./statusBarSettings-Cu-b_o4Q.js";
|
|
3
|
+
import { a as draftComboConflict, d as setKeymapOverrides, f as isMod, h as modLabel, l as parseComboDraft, m as isPlainReturnInput, n as actionMatches, o as effectiveComboString, p as isPlainReturn, t as SHORTCUT_ACTIONS } from "./keymap-BYjklwli.js";
|
|
4
|
+
import { c as withHostRootCapability } from "./host-access-BRXW3V8i.js";
|
|
5
|
+
import { i as getHostWorkspaceRuntime, r as createLocalWorkspaceRuntime } from "./workspaces-BchdRzlw.js";
|
|
6
|
+
import { n as getHostCommandTrees } from "./command-trees-N2_LR4f-.js";
|
|
7
|
+
import { a as isReservedCredentialRef, n as getHostSettingsSections, r as getLocalSettingsSectionsHost } from "./settings-sections-CYCrZKUk.js";
|
|
8
|
+
import { n as getHostSceneRuntime } from "./scenes-B-iDMpgW.js";
|
|
9
|
+
import { A as tuiEnvName, C as LEGACY_DATA_DIR, D as homeDir, E as detectLegacyEnv, J as parseManifest, M as loadSpecData, O as readTuiEnv, S as DATA_DIR, T as RENAMED_ENV, Y as projectManifest, _ as stripAnsi$1, a as normalizeCancelDecision, b as isWide, c as installDecisionGuard, d as capCells, f as cleanRenderText, g as getGraphemeSegmenter, h as stringWidth$1, i as dispatchTuiNotification, k as resolveChatCodeCliHome, m as flattenInline, p as cleanScalarText, r as dispatchTuiDecision, v as eastAsianWidth, w as PRE_DSH_TUI_DATA_DIR, x as readGrantStore, y as isFullWidth } from "./extension-events-B5qKP0-X.js";
|
|
10
|
+
import { A as validatePlugin, D as buildHostDescriptor, O as negotiate, _ as getHostMessageObserver, a as commandOwner, k as createContractIndex, n as hasCommandErrorCode, r as mapCommandError, w as EFFECT_LEDGER_FILE } from "./command-errors-vCFKCJFq.js";
|
|
11
|
+
import { D as getHostStatusStore, E as TuiStatusStore, M as getHostDialogStore, S as getHostShortcuts, a as listCustomThemes, b as getHostRenderers, c as THEME_NAMES, d as getTheme, f as isLightThemeActive, g as setAutoThemeBase, h as setActiveThemeName, i as isSafeThemeName, j as TuiDialogStore, l as getActiveTheme, m as registerCustomThemeResolver, n as getHostThemes, o as resolveCustomTheme, p as isThemeAvailable, r as buildTheme, s as AUTO_THEME_NAME, u as getAutoThemeBase, v as getHostToastStore } from "./themes-DC9GpV6q.js";
|
|
12
12
|
import { a as resolvePreset, i as isPresetName, n as FRAME_PRESETS, o as ActivityTracker, r as PRESET_NAMES, t as DEFAULT_PRESET } from "./frames-B89znn_0.js";
|
|
13
13
|
import { n as require_has_flag, t as require_supports_color } from "./supports-color-CcW-FGjr.js";
|
|
14
14
|
import { createRequire, findPackageJSON } from "node:module";
|
|
@@ -19,6 +19,7 @@ import os, { homedir, tmpdir } from "node:os";
|
|
|
19
19
|
import { basename, delimiter, dirname, extname, isAbsolute, join, resolve, sep, win32 } from "node:path";
|
|
20
20
|
import { chmod, mkdir, mkdtemp, open, readFile, rename, rm, stat, unlink, writeFile } from "node:fs/promises";
|
|
21
21
|
import Schema from "@deepseek-ai/schemastery";
|
|
22
|
+
import { createInterface } from "node:readline/promises";
|
|
22
23
|
import { createServer } from "node:net";
|
|
23
24
|
import { writeFileAtomic } from "@deepseek-ai/dsh-atomic-write";
|
|
24
25
|
import { assembleContextFor, installModelSelection } from "@deepseek-ai/dsh-agent";
|
|
@@ -40,7 +41,6 @@ import { appendFileSync as appendFileSync$1, closeSync as closeSync$1, constants
|
|
|
40
41
|
import { format } from "util";
|
|
41
42
|
import process$1 from "node:process";
|
|
42
43
|
import tty from "node:tty";
|
|
43
|
-
import { createInterface } from "node:readline/promises";
|
|
44
44
|
//#region ../../node_modules/.pnpm/react@19.3.1/node_modules/react/cjs/react.production.js
|
|
45
45
|
/**
|
|
46
46
|
* @license React
|
|
@@ -1198,8 +1198,90 @@ var require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1198
1198
|
else module.exports = require_react_development();
|
|
1199
1199
|
}));
|
|
1200
1200
|
//#endregion
|
|
1201
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1201
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/account-model-sync.js
|
|
1202
1202
|
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
1203
|
+
/** Adopt only available routes on the same idle channel; failures leave the current route intact.
|
|
1204
|
+
* @param host - verified account reader supplied by the official CLI composition.
|
|
1205
|
+
* @param channel - live TUI model selection and Session identity.
|
|
1206
|
+
* @param report - localized failure notification, contained to one warning until recovery.
|
|
1207
|
+
* @returns a serialized idle checker and a close function that rejects late observations.
|
|
1208
|
+
*/
|
|
1209
|
+
function createAccountModelSync(host, channel, report) {
|
|
1210
|
+
let revision;
|
|
1211
|
+
let pending;
|
|
1212
|
+
let closed = false;
|
|
1213
|
+
let reported = false;
|
|
1214
|
+
return {
|
|
1215
|
+
tick() {
|
|
1216
|
+
if (closed || channel.working) return Promise.resolve();
|
|
1217
|
+
if (pending) return pending;
|
|
1218
|
+
const agentId = channel.agentId;
|
|
1219
|
+
pending = (async () => {
|
|
1220
|
+
const selection = await host.read();
|
|
1221
|
+
if (closed || channel.working || agentId !== channel.agentId || !selection || selection.revision === revision) return;
|
|
1222
|
+
const models = await channel.listModels();
|
|
1223
|
+
if (closed || channel.working || agentId !== channel.agentId) return;
|
|
1224
|
+
if (!models.some((model) => model.provider === selection.provider && model.id === selection.model)) throw new Error("Account model is unavailable");
|
|
1225
|
+
if (await channel.switchModel(selection.provider, selection.model)) {
|
|
1226
|
+
revision = selection.revision;
|
|
1227
|
+
reported = false;
|
|
1228
|
+
}
|
|
1229
|
+
})().catch(() => {
|
|
1230
|
+
if (!closed && !reported) {
|
|
1231
|
+
reported = true;
|
|
1232
|
+
report();
|
|
1233
|
+
}
|
|
1234
|
+
}).finally(() => {
|
|
1235
|
+
pending = void 0;
|
|
1236
|
+
});
|
|
1237
|
+
return pending;
|
|
1238
|
+
},
|
|
1239
|
+
close() {
|
|
1240
|
+
closed = true;
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
//#endregion
|
|
1245
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/desktop-history.js
|
|
1246
|
+
/** Optional launcher capability; ordinary TUI deployments keep their current history. */
|
|
1247
|
+
function desktopHistoryOf(ctx) {
|
|
1248
|
+
return ctx.get("desktopHistory");
|
|
1249
|
+
}
|
|
1250
|
+
/** Project discovered desktop metadata without enrolling it in the CLI workspace registry. */
|
|
1251
|
+
async function desktopHistoryRows(ctx) {
|
|
1252
|
+
const service = desktopHistoryOf(ctx);
|
|
1253
|
+
if (!service) return [];
|
|
1254
|
+
return (await service.list()).map((row) => ({
|
|
1255
|
+
id: row.id,
|
|
1256
|
+
historySource: "desktop",
|
|
1257
|
+
kind: { kind: "root" },
|
|
1258
|
+
title: {
|
|
1259
|
+
text: `${row.source} · ${row.title}`,
|
|
1260
|
+
source: "renamed"
|
|
1261
|
+
},
|
|
1262
|
+
cwd: row.cwd,
|
|
1263
|
+
createdAt: row.createdAt,
|
|
1264
|
+
updatedAt: row.updatedAt,
|
|
1265
|
+
bytes: void 0,
|
|
1266
|
+
hasPrompt: true,
|
|
1267
|
+
agentPreset: "cherry-chatcode",
|
|
1268
|
+
provider: row.provider,
|
|
1269
|
+
model: row.model,
|
|
1270
|
+
label: void 0,
|
|
1271
|
+
branch: void 0,
|
|
1272
|
+
childCount: 0
|
|
1273
|
+
}));
|
|
1274
|
+
}
|
|
1275
|
+
async function desktopHistoryPreview(ctx, id) {
|
|
1276
|
+
const service = desktopHistoryOf(ctx);
|
|
1277
|
+
if (!service?.has(id)) return void 0;
|
|
1278
|
+
return (await service.preview(id)).map((row) => ({
|
|
1279
|
+
...row,
|
|
1280
|
+
at: void 0
|
|
1281
|
+
}));
|
|
1282
|
+
}
|
|
1283
|
+
//#endregion
|
|
1284
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sideQuestion.js
|
|
1203
1285
|
/**
|
|
1204
1286
|
* Side Question (`/btw`) — CC's btw.tsx/sideQuestion.ts semantics on the
|
|
1205
1287
|
* dsh call primitives: a single-turn, TOOL-LESS LLM call replaying the
|
|
@@ -1268,7 +1350,7 @@ async function runSideQuestion(params) {
|
|
|
1268
1350
|
return { answer };
|
|
1269
1351
|
}
|
|
1270
1352
|
//#endregion
|
|
1271
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1353
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/recap.js
|
|
1272
1354
|
/**
|
|
1273
1355
|
* Session recap (`/recap`, pi-recap semantics): a single TOOL-LESS LLM
|
|
1274
1356
|
* call that summarizes the session's RECENT activity into one line and
|
|
@@ -1381,7 +1463,7 @@ function parseRecapResponse(raw) {
|
|
|
1381
1463
|
return { summary: raw.trim() };
|
|
1382
1464
|
}
|
|
1383
1465
|
//#endregion
|
|
1384
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1466
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/log.js
|
|
1385
1467
|
/**
|
|
1386
1468
|
* Error logger for the ported Ink core. Always writes to stderr (an Ink
|
|
1387
1469
|
* renderer failure must never pass silently).
|
|
@@ -1392,7 +1474,7 @@ function logError(error) {
|
|
|
1392
1474
|
process.stderr.write(`[ChatCode CLI TUI] ${text}\n`);
|
|
1393
1475
|
}
|
|
1394
1476
|
//#endregion
|
|
1395
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1477
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/update-overflow-guard.js
|
|
1396
1478
|
/**
|
|
1397
1479
|
* Self-healing guard for React's nested-update overflow — Minified React
|
|
1398
1480
|
* error #185 ("Maximum update depth exceeded").
|
|
@@ -1535,7 +1617,7 @@ function installNestedUpdateOverflowProcessGuard() {
|
|
|
1535
1617
|
});
|
|
1536
1618
|
}
|
|
1537
1619
|
//#endregion
|
|
1538
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1620
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/sessionColors.js
|
|
1539
1621
|
/**
|
|
1540
1622
|
* Session accent colors for `/color` (CC's /color semantics): a small
|
|
1541
1623
|
* named palette that overrides the prompt-input border (and its session
|
|
@@ -1576,7 +1658,7 @@ function sessionColorHex(name) {
|
|
|
1576
1658
|
return isValidSessionColor(name) ? SESSION_COLORS[name] : void 0;
|
|
1577
1659
|
}
|
|
1578
1660
|
//#endregion
|
|
1579
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1661
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/deepseekPricing.js
|
|
1580
1662
|
/**
|
|
1581
1663
|
* 是否处于高峰计费时段:北京时间周一至周五 9:00-12:00、14:00-18:00。
|
|
1582
1664
|
* 北京时间为 UTC+8 固定偏移(无夏令时),用 UTC 时刻加偏移换算。
|
|
@@ -1595,7 +1677,7 @@ Object.freeze({
|
|
|
1595
1677
|
cacheWrite: 0
|
|
1596
1678
|
});
|
|
1597
1679
|
//#endregion
|
|
1598
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
1680
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/i18n.js
|
|
1599
1681
|
/**
|
|
1600
1682
|
* dsh-tui localization — UI strings for Chinese (`zh`, the default) and
|
|
1601
1683
|
* English (`en`).
|
|
@@ -1637,6 +1719,10 @@ const dict = {
|
|
|
1637
1719
|
zh: "无法写入 ~/.chatcode-cli/tui/working-activity.json,切换未保存",
|
|
1638
1720
|
en: "Cannot write ~/.chatcode-cli/tui/working-activity.json, switch not saved"
|
|
1639
1721
|
},
|
|
1722
|
+
"model-account-sync-failed": {
|
|
1723
|
+
zh: "无法采用 Cherry 的模型选择:请确认账号认证、模型目录和 SDK 均可用。当前模型保持不变。",
|
|
1724
|
+
en: "Could not adopt the Cherry model. Check account verification, model availability and SDK support. The current model is unchanged."
|
|
1725
|
+
},
|
|
1640
1726
|
"model-pref-write-failed": {
|
|
1641
1727
|
zh: "无法写入 ~/.chatcode-cli/model.json,模型选择不会保存或同步",
|
|
1642
1728
|
en: "Cannot write ~/.chatcode-cli/model.json; the model choice will not persist or synchronize"
|
|
@@ -2216,6 +2302,14 @@ const dict = {
|
|
|
2216
2302
|
zh: "恢复不可用——agents 服务未加载",
|
|
2217
2303
|
en: "Resume unavailable — agents service not loaded"
|
|
2218
2304
|
},
|
|
2305
|
+
"desktop-history-connecting": {
|
|
2306
|
+
zh: "正在接续 Cherry 会话,请稍候…",
|
|
2307
|
+
en: "Connecting to the Cherry Session, please wait…"
|
|
2308
|
+
},
|
|
2309
|
+
"desktop-history-failed": {
|
|
2310
|
+
zh: "Cherry 会话接续失败,会话没有被替换。请保持 Cherry 运行并刷新历史后重试。",
|
|
2311
|
+
en: "Cherry Session handoff failed. The Session was not replaced. Keep Cherry running and refresh history before retrying."
|
|
2312
|
+
},
|
|
2219
2313
|
"resume-failed": {
|
|
2220
2314
|
zh: "恢复失败 · {{err}}",
|
|
2221
2315
|
en: "Resume failed · {{err}}"
|
|
@@ -6568,7 +6662,7 @@ function resolveStartupLang(dir = PREFS_DIR$6, env = process.env) {
|
|
|
6568
6662
|
return readLangPref(dir) ?? "zh";
|
|
6569
6663
|
}
|
|
6570
6664
|
//#endregion
|
|
6571
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
6665
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/commands.js
|
|
6572
6666
|
/**
|
|
6573
6667
|
* Local slash commands for the dsh-tui TUI. Claude Code's command system is
|
|
6574
6668
|
* deeply wired into its engine; dsh-tui ships a small built-in set with the
|
|
@@ -7042,7 +7136,7 @@ function matchingCompletionToken(candidate, prefix) {
|
|
|
7042
7136
|
return candidate.aliases?.find((alias) => alias.toLowerCase().startsWith(prefix));
|
|
7043
7137
|
}
|
|
7044
7138
|
//#endregion
|
|
7045
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7139
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionHistory.js
|
|
7046
7140
|
/**
|
|
7047
7141
|
* Launcher contract for `dsh-tui --resume`: the TUI writes the chosen session
|
|
7048
7142
|
* id to `<CHATCODE_CLI_HOME>/tui/resume.txt`, and the launcher feeds it back as
|
|
@@ -7209,7 +7303,7 @@ function forgetAgentViewSession(sessionId) {
|
|
|
7209
7303
|
} catch {}
|
|
7210
7304
|
}
|
|
7211
7305
|
//#endregion
|
|
7212
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7306
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionTags.js
|
|
7213
7307
|
/**
|
|
7214
7308
|
* One searchable local tag per persisted session.
|
|
7215
7309
|
*
|
|
@@ -7359,7 +7453,7 @@ function forgetSessionTag(sessionId, dir = DATA_DIR) {
|
|
|
7359
7453
|
return setSessionTag(sessionId, void 0, dir).ok;
|
|
7360
7454
|
}
|
|
7361
7455
|
//#endregion
|
|
7362
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7456
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/liveSession.js
|
|
7363
7457
|
/**
|
|
7364
7458
|
* Live Session compatibility facade.
|
|
7365
7459
|
*
|
|
@@ -7521,7 +7615,7 @@ function liveSessionCreateOptions(request) {
|
|
|
7521
7615
|
};
|
|
7522
7616
|
}
|
|
7523
7617
|
//#endregion
|
|
7524
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
7618
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionLog.js
|
|
7525
7619
|
/**
|
|
7526
7620
|
* Legacy third-party session-event types the TUI vouches for as ephemeral
|
|
7527
7621
|
* UI frames — safe for the strict read path to accept and skip. Exported
|
|
@@ -8213,7 +8307,7 @@ function appendSessionTitle(sessionId, title) {
|
|
|
8213
8307
|
}
|
|
8214
8308
|
}
|
|
8215
8309
|
//#endregion
|
|
8216
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8310
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/sessionEvent.js
|
|
8217
8311
|
/** Narrow an unknown/session event to the retired durable chunk envelope. */
|
|
8218
8312
|
function legacyAssistantChunkOf(event) {
|
|
8219
8313
|
if (event === null || typeof event !== "object") return void 0;
|
|
@@ -8227,7 +8321,7 @@ function legacyAssistantChunkOf(event) {
|
|
|
8227
8321
|
return event;
|
|
8228
8322
|
}
|
|
8229
8323
|
//#endregion
|
|
8230
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8324
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compaction.js
|
|
8231
8325
|
/**
|
|
8232
8326
|
* Recognize both the current checkpoint source and the legacy plugin marker.
|
|
8233
8327
|
* Harness session format v4 migrated `plugin/compact` to the dedicated
|
|
@@ -8238,14 +8332,14 @@ function isCompactionCheckpointSource(source) {
|
|
|
8238
8332
|
return source.kind === "compact-checkpoint" || source.kind === "plugin" && source.plugin === "compact";
|
|
8239
8333
|
}
|
|
8240
8334
|
//#endregion
|
|
8241
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8335
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/error-diagnostic.js
|
|
8242
8336
|
/** Redact provider diagnostics before transcript, notification, and history rendering. */
|
|
8243
8337
|
/** Remove credential fields and endpoint URLs before applying the display limit. */
|
|
8244
8338
|
function redactErrorDiagnostic(value) {
|
|
8245
8339
|
return cleanRenderText(cleanRenderText(value, Infinity).replace(/\bhttps?:\/\/[^\s<>"'`\\]+/giu, "[REDACTED]").replace(/\b(Bearer|Basic)\s+[a-z0-9._~+\/-]+=*/giu, "$1 [REDACTED]").replace(/((?:["']?(?:[\w-]*api[ _-]?key|authorization|[\w-]*token|password|secret|base[ _-]?url)["']?)\s*[:=]\s*)(?:(?:Bearer|Basic)\s+)?(?:\[REDACTED\]|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|[^\s,;}\]]+)/giu, "$1[REDACTED]").replace(/\bsk-[a-z0-9_-]+/giu, "[REDACTED]"), 4096);
|
|
8246
8340
|
}
|
|
8247
8341
|
//#endregion
|
|
8248
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
8342
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessionTree.js
|
|
8249
8343
|
const TREE_FILTERS = [
|
|
8250
8344
|
"default",
|
|
8251
8345
|
"no-tools",
|
|
@@ -10401,7 +10495,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
10401
10495
|
module.exports = subset;
|
|
10402
10496
|
}));
|
|
10403
10497
|
//#endregion
|
|
10404
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
10498
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/shellQuote.js
|
|
10405
10499
|
var import_semver = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
10406
10500
|
const internalRe = require_re();
|
|
10407
10501
|
const constants = require_constants$1();
|
|
@@ -10494,7 +10588,7 @@ function cmdEscapeArgument(arg, doubleEscapeMetaChars = false) {
|
|
|
10494
10588
|
return out;
|
|
10495
10589
|
}
|
|
10496
10590
|
//#endregion
|
|
10497
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
10591
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/update.js
|
|
10498
10592
|
const PACKAGE_NAME = "@chatcode/cco-tui";
|
|
10499
10593
|
const DEFAULT_REGISTRY = "https://registry.npmjs.org";
|
|
10500
10594
|
const GITHUB_REPO = "ccch1mneyyy/dsh-TUI";
|
|
@@ -11845,7 +11939,7 @@ async function restartTui(sessionId, options = {}) {
|
|
|
11845
11939
|
});
|
|
11846
11940
|
}
|
|
11847
11941
|
//#endregion
|
|
11848
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
11942
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/header.js
|
|
11849
11943
|
/** A finite number, or undefined for anything else (NaN and ±Infinity included). */
|
|
11850
11944
|
function finiteNumber(value) {
|
|
11851
11945
|
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
@@ -11919,7 +12013,7 @@ function classify(header) {
|
|
|
11919
12013
|
return { kind: "root" };
|
|
11920
12014
|
}
|
|
11921
12015
|
//#endregion
|
|
11922
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12016
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/frames.js
|
|
11923
12017
|
/**
|
|
11924
12018
|
* Bounded reads over the JSONL backend's concatenated-Zstandard session logs.
|
|
11925
12019
|
*
|
|
@@ -12165,7 +12259,7 @@ function decodeTail(window) {
|
|
|
12165
12259
|
return decodeFrames(window.buffer, window.whole ? walkFrames(window.buffer) : resyncFrames(window.buffer));
|
|
12166
12260
|
}
|
|
12167
12261
|
//#endregion
|
|
12168
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12262
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/digest.js
|
|
12169
12263
|
/**
|
|
12170
12264
|
* What a bounded read can learn about a session log.
|
|
12171
12265
|
*
|
|
@@ -12648,7 +12742,7 @@ function previewSession(path, limit) {
|
|
|
12648
12742
|
return entries.slice(-limit);
|
|
12649
12743
|
}
|
|
12650
12744
|
//#endregion
|
|
12651
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12745
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/artifact.js
|
|
12652
12746
|
/** Read-only artifact lookup for session summaries and previews. */
|
|
12653
12747
|
/** Highest published compressed generation; temporary migration files are ignored. */
|
|
12654
12748
|
function inDirectory(directory) {
|
|
@@ -12701,7 +12795,7 @@ function findSessionArtifact(sessionId, target) {
|
|
|
12701
12795
|
}
|
|
12702
12796
|
}
|
|
12703
12797
|
//#endregion
|
|
12704
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12798
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/store.js
|
|
12705
12799
|
/**
|
|
12706
12800
|
* The session index — a local cache keyed by the backend's own change token.
|
|
12707
12801
|
*
|
|
@@ -12865,7 +12959,7 @@ function noteBranch(sessionId, branch) {
|
|
|
12865
12959
|
writeIndex(index);
|
|
12866
12960
|
}
|
|
12867
12961
|
//#endregion
|
|
12868
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
12962
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/list.js
|
|
12869
12963
|
/**
|
|
12870
12964
|
* Building the session list.
|
|
12871
12965
|
*
|
|
@@ -13146,7 +13240,7 @@ async function locateSession(source, sessionId, signal) {
|
|
|
13146
13240
|
return match === void 0 ? void 0 : locate$1(source, match.raw, sessionId);
|
|
13147
13241
|
}
|
|
13148
13242
|
//#endregion
|
|
13149
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13243
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/agent-view.js
|
|
13150
13244
|
/**
|
|
13151
13245
|
* Agent view (CC `claude agents`) derivation helpers — pure functions over
|
|
13152
13246
|
* session events that the channel folds into {@link AgentViewRow}s. Kept in
|
|
@@ -13376,7 +13470,7 @@ function featureOn(config, name) {
|
|
|
13376
13470
|
return config.mode !== "minimal";
|
|
13377
13471
|
}
|
|
13378
13472
|
//#endregion
|
|
13379
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13473
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/activityPrefs.js
|
|
13380
13474
|
/**
|
|
13381
13475
|
* Persisted working-activity indicator preference, mirroring the pi
|
|
13382
13476
|
* working-activity extension's `~/.pi/agent/working-activity.json`
|
|
@@ -13445,7 +13539,7 @@ function writeActivityFrames(name, dir = PREFS_DIR$5) {
|
|
|
13445
13539
|
}
|
|
13446
13540
|
}
|
|
13447
13541
|
//#endregion
|
|
13448
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13542
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileSuggestions.js
|
|
13449
13543
|
function substringMatchScore(query, candidate) {
|
|
13450
13544
|
const needle = query.toLocaleLowerCase();
|
|
13451
13545
|
const haystack = candidate.toLocaleLowerCase();
|
|
@@ -13464,7 +13558,7 @@ function rankFileCandidates(candidates, query, topK) {
|
|
|
13464
13558
|
return topK === void 0 ? ranked : ranked.slice(0, Math.max(0, topK));
|
|
13465
13559
|
}
|
|
13466
13560
|
//#endregion
|
|
13467
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13561
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/effortPrefs.js
|
|
13468
13562
|
/**
|
|
13469
13563
|
* Persisted reasoning-effort preference (`~/.chatcode-cli/tui/effort.json`). Set via
|
|
13470
13564
|
* `/effort` (slider or `/effort <id>`; `/effort status` reports the current
|
|
@@ -13506,7 +13600,7 @@ function writeEffortPref(effort, dir = PREFS_DIR$4) {
|
|
|
13506
13600
|
}
|
|
13507
13601
|
}
|
|
13508
13602
|
//#endregion
|
|
13509
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13603
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelPrefs.js
|
|
13510
13604
|
/**
|
|
13511
13605
|
* Persisted model-route preference (`/model` picker choice), kept at
|
|
13512
13606
|
* `~/.chatcode-cli/model.json` (`provider` + `model` keys) so CLI and Web share it
|
|
@@ -13589,7 +13683,7 @@ function writeModelPref(provider, model, dir = PREFS_DIR$3) {
|
|
|
13589
13683
|
}
|
|
13590
13684
|
}
|
|
13591
13685
|
//#endregion
|
|
13592
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13686
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/modelRoute.js
|
|
13593
13687
|
/**
|
|
13594
13688
|
* Model route resolution (issue #67). The `(provider, model)` pair is a
|
|
13595
13689
|
* single value: every source either supplies the WHOLE route or is skipped,
|
|
@@ -13824,7 +13918,7 @@ function orderModelProviders(providers) {
|
|
|
13824
13918
|
return [...providers].sort((left, right) => rank(left.id) - rank(right.id));
|
|
13825
13919
|
}
|
|
13826
13920
|
//#endregion
|
|
13827
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
13921
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelSettings.js
|
|
13828
13922
|
/** Custom-model forms over the same settings and credential services used by Web. */
|
|
13829
13923
|
function record(value) {
|
|
13830
13924
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -14026,7 +14120,7 @@ function createCustomModelSettingsStore(path, host) {
|
|
|
14026
14120
|
};
|
|
14027
14121
|
}
|
|
14028
14122
|
//#endregion
|
|
14029
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14123
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/customModelTest.js
|
|
14030
14124
|
/** Direct, one-shot generation used by `/model-config` before a model is registered. */
|
|
14031
14125
|
function requestEndpoint(baseURL, api) {
|
|
14032
14126
|
const url = new URL(baseURL);
|
|
@@ -14115,7 +14209,7 @@ async function testCustomModelConnection(request, fetchImpl = fetch) {
|
|
|
14115
14209
|
}
|
|
14116
14210
|
}
|
|
14117
14211
|
//#endregion
|
|
14118
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14212
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/catalogDefaults.js
|
|
14119
14213
|
/** Read display defaults from the host adapter's own installed pi-ai catalog. */
|
|
14120
14214
|
const catalogs = /* @__PURE__ */ new Map();
|
|
14121
14215
|
async function installedCatalog(anchor) {
|
|
@@ -14162,7 +14256,7 @@ async function catalogProviderDefaults(provider, model, anchor = import.meta.url
|
|
|
14162
14256
|
};
|
|
14163
14257
|
}
|
|
14164
14258
|
//#endregion
|
|
14165
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14259
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/presetPrefs.js
|
|
14166
14260
|
/**
|
|
14167
14261
|
* Persisted agent-preset preference (`/preset` picker choice), kept at
|
|
14168
14262
|
* `~/.chatcode-cli/tui/agent-preset.json` (`preset` key) so the choice survives
|
|
@@ -14221,7 +14315,7 @@ function migratePresetPref(requested, resolved, dir = PREFS_DIR$2) {
|
|
|
14221
14315
|
return requested === void 0 || resolved === void 0 || requested === resolved ? true : writePresetPref(resolved, dir);
|
|
14222
14316
|
}
|
|
14223
14317
|
//#endregion
|
|
14224
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14318
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/compat/persistedSession.js
|
|
14225
14319
|
/** Undefined means the service exposes neither supported read API. */
|
|
14226
14320
|
async function readPersistedSession(persistence, id) {
|
|
14227
14321
|
if (persistence === null || typeof persistence !== "object") return void 0;
|
|
@@ -14241,7 +14335,7 @@ async function readPersistedSession(persistence, id) {
|
|
|
14241
14335
|
if (typeof reader.load === "function") return reader.load(id);
|
|
14242
14336
|
}
|
|
14243
14337
|
//#endregion
|
|
14244
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14338
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-resolution.js
|
|
14245
14339
|
/**
|
|
14246
14340
|
* Agent-preset resolution across upstream prerelease lines.
|
|
14247
14341
|
*
|
|
@@ -14279,7 +14373,7 @@ async function resolveCompatiblePreset(presets, requested) {
|
|
|
14279
14373
|
return presets.resolve(requested);
|
|
14280
14374
|
}
|
|
14281
14375
|
//#endregion
|
|
14282
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14376
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/presets.js
|
|
14283
14377
|
/**
|
|
14284
14378
|
* Agent-presets roster integration (issue #8): compose each session's
|
|
14285
14379
|
* model-facing world (tools, prompt sections, projections) from one preset
|
|
@@ -14429,7 +14523,7 @@ function serviceForAgent(ctx, agent, key) {
|
|
|
14429
14523
|
return ctx.get(key);
|
|
14430
14524
|
}
|
|
14431
14525
|
//#endregion
|
|
14432
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14526
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagent-control.js
|
|
14433
14527
|
/**
|
|
14434
14528
|
* Interrupt a child visible to the current parent without disposing its session.
|
|
14435
14529
|
* One-shot local agents use their cancellation method; continuable agents use
|
|
@@ -14469,7 +14563,7 @@ function interruptSubagent(ctx, parent, id) {
|
|
|
14469
14563
|
}
|
|
14470
14564
|
}
|
|
14471
14565
|
//#endregion
|
|
14472
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14566
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/preset-management.js
|
|
14473
14567
|
const failureReason = (error) => error instanceof Error ? error.message : String(error);
|
|
14474
14568
|
/** Read a roster-resolved composition without bypassing preset ownership. */
|
|
14475
14569
|
async function readPresetComposition(presets, presetId) {
|
|
@@ -14526,7 +14620,7 @@ async function removePresetComposition(presets, presetId) {
|
|
|
14526
14620
|
}
|
|
14527
14621
|
}
|
|
14528
14622
|
//#endregion
|
|
14529
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14623
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/session-organization.js
|
|
14530
14624
|
/** Adapter-only readers for optional Harness session-organization services. */
|
|
14531
14625
|
const STAT_KEYS = [
|
|
14532
14626
|
"turns",
|
|
@@ -14587,7 +14681,7 @@ function presetCompositionRows(content, limit = 80) {
|
|
|
14587
14681
|
};
|
|
14588
14682
|
}
|
|
14589
14683
|
//#endregion
|
|
14590
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14684
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/debug.js
|
|
14591
14685
|
/**
|
|
14592
14686
|
* Debug logger for the ported Ink core. Writes to stderr only when
|
|
14593
14687
|
* `CHATCODE_CLI_TUI_DEBUG` (or its legacy alias) is set, so normal runs stay quiet.
|
|
@@ -14617,7 +14711,7 @@ function logMouseDebug(message, fields) {
|
|
|
14617
14711
|
} catch {}
|
|
14618
14712
|
}
|
|
14619
14713
|
//#endregion
|
|
14620
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14714
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/mentions.js
|
|
14621
14715
|
/**
|
|
14622
14716
|
* `@` file-mention parsing (issue #15).
|
|
14623
14717
|
*
|
|
@@ -14768,7 +14862,7 @@ function mentionAtCaret(value, cursor) {
|
|
|
14768
14862
|
};
|
|
14769
14863
|
}
|
|
14770
14864
|
//#endregion
|
|
14771
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14865
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/commonUtilityCommands.js
|
|
14772
14866
|
/** Format only the files in the authoritative loaded-context projection. */
|
|
14773
14867
|
function loadedFileLines(files, copy) {
|
|
14774
14868
|
if (files === void 0) return [copy.unavailable];
|
|
@@ -14883,7 +14977,7 @@ function codeRatioLines(report, copy, maxAuthors = 20) {
|
|
|
14883
14977
|
return lines;
|
|
14884
14978
|
}
|
|
14885
14979
|
//#endregion
|
|
14886
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
14980
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themeCatalog.js
|
|
14887
14981
|
/**
|
|
14888
14982
|
* Cordis-free theme catalog shared by future pickers, commands and hosts.
|
|
14889
14983
|
*
|
|
@@ -14964,7 +15058,7 @@ function listThemeCatalog(host) {
|
|
|
14964
15058
|
return Object.freeze(entries);
|
|
14965
15059
|
}
|
|
14966
15060
|
//#endregion
|
|
14967
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15061
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionModes.js
|
|
14968
15062
|
/**
|
|
14969
15063
|
* Configurable Shift+Tab session modes (the `modes` dsh-tui plugin config):
|
|
14970
15064
|
* each mode is a named bundle of optional DSH plane switches — plan mode
|
|
@@ -15028,7 +15122,7 @@ function modeDisplayName(spec) {
|
|
|
15028
15122
|
return spec.id;
|
|
15029
15123
|
}
|
|
15030
15124
|
//#endregion
|
|
15031
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15125
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/subagents.js
|
|
15032
15126
|
/** Unified subagent activity domain model used by the adapter and every view. */
|
|
15033
15127
|
const MAX_OUTPUT_EVENTS = 160;
|
|
15034
15128
|
const MAX_OUTPUT_LINES = 160;
|
|
@@ -15406,7 +15500,7 @@ function formatJobDuration(job, now = Date.now()) {
|
|
|
15406
15500
|
return `${Math.floor(minutes / 60)}h${String(minutes % 60).padStart(2, "0")}m`;
|
|
15407
15501
|
}
|
|
15408
15502
|
//#endregion
|
|
15409
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15503
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/minimalMode.js
|
|
15410
15504
|
/**
|
|
15411
15505
|
* Minimal mode: one process-wide flag gating decorative UI (header splash,
|
|
15412
15506
|
* emoji status glyphs and non-tool text colors). Footer field choices remain
|
|
@@ -15426,7 +15520,7 @@ function setMinimalMode(enabled) {
|
|
|
15426
15520
|
minimal = enabled;
|
|
15427
15521
|
}
|
|
15428
15522
|
//#endregion
|
|
15429
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15523
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/workspace.js
|
|
15430
15524
|
function registryOf(ctx) {
|
|
15431
15525
|
const registry = ctx.get("workspaceRegistry");
|
|
15432
15526
|
if (registry === void 0 || typeof registry.pinSession !== "function" || typeof registry.unpinSession !== "function") return void 0;
|
|
@@ -15501,7 +15595,7 @@ async function unarchiveWorkspaceSession(ctx, id) {
|
|
|
15501
15595
|
return true;
|
|
15502
15596
|
}
|
|
15503
15597
|
//#endregion
|
|
15504
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
15598
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/contract.js
|
|
15505
15599
|
/**
|
|
15506
15600
|
* Upstream compatibility contract.
|
|
15507
15601
|
*
|
|
@@ -15930,7 +16024,7 @@ function pluginsInfoLines(args, deps) {
|
|
|
15930
16024
|
return lines;
|
|
15931
16025
|
}
|
|
15932
16026
|
//#endregion
|
|
15933
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
16027
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/mcp-status.js
|
|
15934
16028
|
/** Loader and tool-registry projection used by the TUI's `/mcp` report. */
|
|
15935
16029
|
const MCP_CLIENT_PACKAGE = "@deepseek-ai/dsh-mcp-client";
|
|
15936
16030
|
const FIBER_ACTIVE = 2;
|
|
@@ -15999,7 +16093,7 @@ function collectMcpServerStatus(schemas, entries, discovered = []) {
|
|
|
15999
16093
|
}));
|
|
16000
16094
|
}
|
|
16001
16095
|
//#endregion
|
|
16002
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
16096
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/asset-config.js
|
|
16003
16097
|
/** Read user and current-workspace configuration for local status commands. */
|
|
16004
16098
|
function object(value) {
|
|
16005
16099
|
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : void 0;
|
|
@@ -16097,7 +16191,7 @@ function hookHandlers(groups) {
|
|
|
16097
16191
|
});
|
|
16098
16192
|
}
|
|
16099
16193
|
//#endregion
|
|
16100
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
16194
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/format.js
|
|
16101
16195
|
/**
|
|
16102
16196
|
* Number, token-count, and duration formatters shared by the status line
|
|
16103
16197
|
* and message rows.
|
|
@@ -16160,7 +16254,7 @@ function formatDuration$4(durationMs, options = {}) {
|
|
|
16160
16254
|
return parts.join(" ");
|
|
16161
16255
|
}
|
|
16162
16256
|
//#endregion
|
|
16163
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
16257
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/contextUsage.js
|
|
16164
16258
|
/**
|
|
16165
16259
|
* Return the current context occupancy. The latest request is authoritative:
|
|
16166
16260
|
* its uncached input and cache read/write tokens are all part of that request's
|
|
@@ -16544,7 +16638,7 @@ function prepareMemoryTargetFile(requested, candidates, cwd, dshHome) {
|
|
|
16544
16638
|
}
|
|
16545
16639
|
}
|
|
16546
16640
|
//#endregion
|
|
16547
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
16641
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/channel.js
|
|
16548
16642
|
/** Return the step left open by a tree fork cut within one turn. */
|
|
16549
16643
|
function openStepAtForkCut(events, turn) {
|
|
16550
16644
|
for (let i = events.length - 1; i >= 0; i--) {
|
|
@@ -17107,8 +17201,7 @@ function agentIsRunning(agent) {
|
|
|
17107
17201
|
*/
|
|
17108
17202
|
async function listSessionsSnapshot(ctx) {
|
|
17109
17203
|
const persistence = ctx.get("sessionPersistence");
|
|
17110
|
-
|
|
17111
|
-
const rows = await listSummaries(persistence);
|
|
17204
|
+
const rows = [...persistence ? await listSummaries(persistence) : [], ...await desktopHistoryRows(ctx)];
|
|
17112
17205
|
const llm = ctx.get("llm");
|
|
17113
17206
|
if (llm === void 0) return rows;
|
|
17114
17207
|
const names = /* @__PURE__ */ new Map();
|
|
@@ -17567,7 +17660,10 @@ function createChannel(ctx, initialAgent, options) {
|
|
|
17567
17660
|
}
|
|
17568
17661
|
const originAgent = agent;
|
|
17569
17662
|
const originAgentId = state.agentId;
|
|
17570
|
-
inputChain = inputChain.then(
|
|
17663
|
+
inputChain = inputChain.then(async () => {
|
|
17664
|
+
await accountModelSync?.tick();
|
|
17665
|
+
await runUserTextDecision(text, placement, originAgent, originAgentId, instructionText);
|
|
17666
|
+
}).catch((error) => {
|
|
17571
17667
|
ctx.logger.warn("ChatCode CLI TUI: tui/input dispatch failed: %o", error);
|
|
17572
17668
|
});
|
|
17573
17669
|
};
|
|
@@ -19491,6 +19587,18 @@ function createChannel(ctx, initialAgent, options) {
|
|
|
19491
19587
|
reason: "working"
|
|
19492
19588
|
};
|
|
19493
19589
|
}
|
|
19590
|
+
const desktop = desktopHistoryOf(ctx);
|
|
19591
|
+
if (desktop?.has(sessionId)) try {
|
|
19592
|
+
const launch = await desktop.prepare(sessionId);
|
|
19593
|
+
ctx.emit("tui/desktop-history/launch", launch);
|
|
19594
|
+
return { ok: true };
|
|
19595
|
+
} catch (error) {
|
|
19596
|
+
state.notify(error instanceof Error ? error.message : t("resume-unavailable"), { color: "error" });
|
|
19597
|
+
return {
|
|
19598
|
+
ok: false,
|
|
19599
|
+
reason: "unavailable"
|
|
19600
|
+
};
|
|
19601
|
+
}
|
|
19494
19602
|
const agents = ctx.get("agents");
|
|
19495
19603
|
if (!agents) {
|
|
19496
19604
|
state.notify(t("resume-unavailable"), { color: "error" });
|
|
@@ -20602,6 +20710,8 @@ function createChannel(ctx, initialAgent, options) {
|
|
|
20602
20710
|
return rows;
|
|
20603
20711
|
},
|
|
20604
20712
|
async previewSession(sessionId) {
|
|
20713
|
+
const desktop = await desktopHistoryPreview(ctx, sessionId);
|
|
20714
|
+
if (desktop !== void 0) return desktop;
|
|
20605
20715
|
const persistence = ctx.get("sessionPersistence");
|
|
20606
20716
|
if (!persistence) return [];
|
|
20607
20717
|
const path = await locateSession(persistence, sessionId);
|
|
@@ -21417,6 +21527,7 @@ function createChannel(ctx, initialAgent, options) {
|
|
|
21417
21527
|
return lines;
|
|
21418
21528
|
},
|
|
21419
21529
|
releaseContributions() {
|
|
21530
|
+
accountModelSync?.close();
|
|
21420
21531
|
releaseSkillCommands();
|
|
21421
21532
|
unsubscribeScenes?.();
|
|
21422
21533
|
},
|
|
@@ -22846,6 +22957,21 @@ ${output}
|
|
|
22846
22957
|
}).catch(() => {});
|
|
22847
22958
|
};
|
|
22848
22959
|
refreshGitBranch();
|
|
22960
|
+
const modelSyncHost = ctx.get("accountModelSync");
|
|
22961
|
+
const accountModelSync = modelSyncHost && createAccountModelSync(modelSyncHost, state, () => {
|
|
22962
|
+
state.notify(t("model-account-sync-failed"), { color: "warning" });
|
|
22963
|
+
});
|
|
22964
|
+
if (accountModelSync) ctx.effect(() => {
|
|
22965
|
+
accountModelSync.tick();
|
|
22966
|
+
const timer = setInterval(() => {
|
|
22967
|
+
accountModelSync.tick();
|
|
22968
|
+
}, 5e3);
|
|
22969
|
+
timer.unref();
|
|
22970
|
+
return () => {
|
|
22971
|
+
clearInterval(timer);
|
|
22972
|
+
accountModelSync.close();
|
|
22973
|
+
};
|
|
22974
|
+
});
|
|
22849
22975
|
return state;
|
|
22850
22976
|
}
|
|
22851
22977
|
/** Trailing path segment (`C:/a/b` → `b`). */
|
|
@@ -23324,7 +23450,7 @@ async function expandMentions(fs, cwd, text, attachments, stagedImages) {
|
|
|
23324
23450
|
};
|
|
23325
23451
|
}
|
|
23326
23452
|
//#endregion
|
|
23327
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23453
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/childStderr.js
|
|
23328
23454
|
/**
|
|
23329
23455
|
* Child-process stderr guard (issue #17).
|
|
23330
23456
|
*
|
|
@@ -23493,7 +23619,7 @@ function createChildStderrReporter(notify, options = {}) {
|
|
|
23493
23619
|
};
|
|
23494
23620
|
}
|
|
23495
23621
|
//#endregion
|
|
23496
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23622
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/startupTrace.js
|
|
23497
23623
|
/** Opt-in startup timings; labels never contain paths, Session identities, or credentials. */
|
|
23498
23624
|
/**
|
|
23499
23625
|
* Measure one initialization operation without changing its result or failure.
|
|
@@ -23512,7 +23638,7 @@ async function traceTuiStartup(phase, operation) {
|
|
|
23512
23638
|
}
|
|
23513
23639
|
}
|
|
23514
23640
|
//#endregion
|
|
23515
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23641
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions.js
|
|
23516
23642
|
/**
|
|
23517
23643
|
* Ask-user-question store — the UI-side half of the DSH user-interaction
|
|
23518
23644
|
* seam (`ctx.userQuestions`). The harness's model-facing
|
|
@@ -23752,7 +23878,7 @@ var QuestionStore = class {
|
|
|
23752
23878
|
}
|
|
23753
23879
|
};
|
|
23754
23880
|
//#endregion
|
|
23755
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23881
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerGuard.js
|
|
23756
23882
|
/**
|
|
23757
23883
|
* Question-provider seat guard (issue #98 security follow-up).
|
|
23758
23884
|
*
|
|
@@ -23864,7 +23990,7 @@ function incumbentQuestionProviderId(service) {
|
|
|
23864
23990
|
} catch {}
|
|
23865
23991
|
}
|
|
23866
23992
|
//#endregion
|
|
23867
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
23993
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/questions-answerer.js
|
|
23868
23994
|
/**
|
|
23869
23995
|
* User-question answerer compatibility.
|
|
23870
23996
|
*
|
|
@@ -23923,7 +24049,7 @@ function prepareQuestionAnswerer(ctx, service, answerer) {
|
|
|
23923
24049
|
}
|
|
23924
24050
|
}
|
|
23925
24051
|
//#endregion
|
|
23926
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24052
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/approvals.js
|
|
23927
24053
|
/**
|
|
23928
24054
|
* Approval store — the UI-side answerer half of the DSH approval seam
|
|
23929
24055
|
* (`ctx.approval`). The harness's permission layer asks
|
|
@@ -24317,7 +24443,7 @@ var ApprovalStore = class {
|
|
|
24317
24443
|
}
|
|
24318
24444
|
};
|
|
24319
24445
|
//#endregion
|
|
24320
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24446
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/promptDebug.js
|
|
24321
24447
|
/**
|
|
24322
24448
|
* On-demand capture of every final AgentLoop request context observed for a
|
|
24323
24449
|
* live session.
|
|
@@ -24463,7 +24589,7 @@ function registerPromptDebug(ctx) {
|
|
|
24463
24589
|
}));
|
|
24464
24590
|
}
|
|
24465
24591
|
//#endregion
|
|
24466
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24592
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/migrationPrefs.js
|
|
24467
24593
|
/**
|
|
24468
24594
|
* One-time local migrations (`~/.chatcode-cli/tui/migrations.json`), keyed by stable
|
|
24469
24595
|
* migration id → ISO timestamp. Named keys (not a bare flag) so later
|
|
@@ -24554,7 +24680,7 @@ async function commitFullscreenFactoryMigration(plan, options) {
|
|
|
24554
24680
|
} catch {}
|
|
24555
24681
|
}
|
|
24556
24682
|
//#endregion
|
|
24557
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24683
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/retired-packaged-presets.js
|
|
24558
24684
|
const OWNER = "@chatcode/cco-tui";
|
|
24559
24685
|
const MARKER = ".dsh-tui-managed.json";
|
|
24560
24686
|
const RETIRED_PACKAGED_PRESETS = ["liangshen"];
|
|
@@ -24596,7 +24722,7 @@ function cleanupRetiredPackagedPresets(options = {}) {
|
|
|
24596
24722
|
return results;
|
|
24597
24723
|
}
|
|
24598
24724
|
//#endregion
|
|
24599
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
24725
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/view.js
|
|
24600
24726
|
/** The browser's default view: this project, conversations only. */
|
|
24601
24727
|
const DEFAULT_FILTERS = {
|
|
24602
24728
|
query: "",
|
|
@@ -24615,6 +24741,7 @@ function belongsToCurrentWorkspace(context, session) {
|
|
|
24615
24741
|
if (context.ungroupedOnly) return isUngrouped(context, session);
|
|
24616
24742
|
const current = normalizeWorkspaceCwd(context.cwd);
|
|
24617
24743
|
const recorded = normalizeWorkspaceCwd(session.cwd);
|
|
24744
|
+
if (session.historySource === "desktop") return current === recorded;
|
|
24618
24745
|
const accounted = context.workspaces?.find((workspace) => workspace.sessionIds?.includes(session.id));
|
|
24619
24746
|
if (accounted !== void 0) return normalizeWorkspaceCwd(accounted.cwd) === current;
|
|
24620
24747
|
if (context.workspaces?.some((workspace) => workspace.sessionIds !== void 0)) return false;
|
|
@@ -24630,6 +24757,7 @@ function belongsToCurrentWorkspace(context, session) {
|
|
|
24630
24757
|
return context.sameProject(context.cwd, session.cwd);
|
|
24631
24758
|
}
|
|
24632
24759
|
function isUngrouped(context, session) {
|
|
24760
|
+
if (session.historySource === "desktop") return false;
|
|
24633
24761
|
return context.workspaces?.some((workspace) => workspace.sessionIds !== void 0) === true && !context.workspaces.some((workspace) => workspace.sessionIds?.includes(session.id));
|
|
24634
24762
|
}
|
|
24635
24763
|
function workspaceKey(context, session) {
|
|
@@ -24930,7 +25058,7 @@ function windowEnd(rows, top, budget) {
|
|
|
24930
25058
|
return at;
|
|
24931
25059
|
}
|
|
24932
25060
|
//#endregion
|
|
24933
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25061
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/sessions/resume.js
|
|
24934
25062
|
/** Resolve launch-time resume flags against persisted conversations. */
|
|
24935
25063
|
/**
|
|
24936
25064
|
* Select the latest conversation in the exact launch directory for bare flags.
|
|
@@ -24950,7 +25078,7 @@ async function resolveStartupSessionId(source, argv, cwd) {
|
|
|
24950
25078
|
return latest.id;
|
|
24951
25079
|
}
|
|
24952
25080
|
//#endregion
|
|
24953
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25081
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workspaceRoot.js
|
|
24954
25082
|
/** Resolve a fresh session's working directory without widening it to a Git ancestor. */
|
|
24955
25083
|
/**
|
|
24956
25084
|
* Explicit configuration wins; otherwise keep the invoking directory, even
|
|
@@ -24963,7 +25091,7 @@ function resolveSessionCwd(configured, start = process.cwd()) {
|
|
|
24963
25091
|
return resolve(start, configured ?? "");
|
|
24964
25092
|
}
|
|
24965
25093
|
//#endregion
|
|
24966
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25094
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/openExternal.js
|
|
24967
25095
|
/**
|
|
24968
25096
|
* Open URLs, files and folders with the platform's default handler, fully
|
|
24969
25097
|
* detached from the TUI process (fire-and-forget: no stdio pipes, no wait,
|
|
@@ -25124,7 +25252,7 @@ function revealInFileManager(filePath) {
|
|
|
25124
25252
|
if (existsSync(dir)) openExternal(dir);
|
|
25125
25253
|
}
|
|
25126
25254
|
//#endregion
|
|
25127
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25255
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeApi.js
|
|
25128
25256
|
/** ChatCode API request capability. Credentials stay in the host adapter. */
|
|
25129
25257
|
const CHATCODE_API_BASE_URL = "https://chatcode.chinaunicom.cn";
|
|
25130
25258
|
/** CVP(天梯)平台基础 URL,承载 modules/notification 等公开/独立鉴权模块接口。 */
|
|
@@ -25132,7 +25260,7 @@ const CVP_CHATCODE_API_URL = `${CHATCODE_API_BASE_URL}/cvp`;
|
|
|
25132
25260
|
/** Each mounted TUI receives its own host-authorized request function. */
|
|
25133
25261
|
const ChatCodeApiContext = (0, import_react.createContext)(void 0);
|
|
25134
25262
|
//#endregion
|
|
25135
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25263
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/releaseNotes.js
|
|
25136
25264
|
const RELEASE_NOTE_PATH = join(DATA_DIR, "release-notes.json");
|
|
25137
25265
|
const RELEASE_NOTE_ENDPOINT = `${CHATCODE_API_BASE_URL}/chatcode/api/v1/cli/version/release-note`;
|
|
25138
25266
|
function acknowledgedVersion() {
|
|
@@ -25228,7 +25356,7 @@ var ReleaseNotesStore = class {
|
|
|
25228
25356
|
}
|
|
25229
25357
|
};
|
|
25230
25358
|
//#endregion
|
|
25231
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25359
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/version.js
|
|
25232
25360
|
const MAIN_CLI_PACKAGES = new Set(["@chatcode/chatcode-cli", "@chatcode/chatcode-cli-test"]);
|
|
25233
25361
|
const VERSION_PATTERN = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/u;
|
|
25234
25362
|
const PRODUCT_VERSION_ENV = "CHATCODE_CLI_PRODUCT_VERSION";
|
|
@@ -25268,7 +25396,7 @@ function resolveProductVersion(options = {}) {
|
|
|
25268
25396
|
/** Product version shown by the TUI, shared with `cco --version` and Web. */
|
|
25269
25397
|
const PRODUCT_VERSION = resolveProductVersion();
|
|
25270
25398
|
//#endregion
|
|
25271
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25399
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/execFileNoThrow.js
|
|
25272
25400
|
const MAX_CAPTURE_BYTES = 64 * 1024;
|
|
25273
25401
|
function appendBounded(chunks, chunk, total) {
|
|
25274
25402
|
if (total.value >= MAX_CAPTURE_BYTES) return;
|
|
@@ -25338,7 +25466,7 @@ function execFileNoThrow(file, args = [], options) {
|
|
|
25338
25466
|
});
|
|
25339
25467
|
}
|
|
25340
25468
|
//#endregion
|
|
25341
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25469
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/herdr.js
|
|
25342
25470
|
const REPORT_TIMEOUT_MS = 2e3;
|
|
25343
25471
|
const RELEASE_TIMEOUT_MS = 500;
|
|
25344
25472
|
const RETRY_DELAYS_MS = [
|
|
@@ -25726,7 +25854,7 @@ var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((expo
|
|
|
25726
25854
|
})();
|
|
25727
25855
|
}));
|
|
25728
25856
|
//#endregion
|
|
25729
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25857
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/themePrefs.js
|
|
25730
25858
|
var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
25731
25859
|
if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
|
|
25732
25860
|
else module.exports = require_react_jsx_runtime_development();
|
|
@@ -25783,7 +25911,7 @@ function writeThemePref(name, dir = PREFS_DIR) {
|
|
|
25783
25911
|
}
|
|
25784
25912
|
}
|
|
25785
25913
|
//#endregion
|
|
25786
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25914
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRuntimeThemeSnapshot.js
|
|
25787
25915
|
const EMPTY_THEME_SNAPSHOT = Object.freeze([]);
|
|
25788
25916
|
const subscribeNoThemes = (_listener) => () => {};
|
|
25789
25917
|
/**
|
|
@@ -25811,7 +25939,7 @@ function useRuntimeThemeSnapshot(themeHost) {
|
|
|
25811
25939
|
return import_react.useSyncExternalStore(subscribeThemes, getThemeSnapshot, getThemeSnapshot);
|
|
25812
25940
|
}
|
|
25813
25941
|
//#endregion
|
|
25814
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25942
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event.js
|
|
25815
25943
|
/**
|
|
25816
25944
|
* Base class for events with immediate-propagation control.
|
|
25817
25945
|
*
|
|
@@ -25835,7 +25963,7 @@ var Event = class {
|
|
|
25835
25963
|
}
|
|
25836
25964
|
};
|
|
25837
25965
|
//#endregion
|
|
25838
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25966
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/emitter.js
|
|
25839
25967
|
/**
|
|
25840
25968
|
* Node-compatible event emitter that is aware of the `Event` class, so
|
|
25841
25969
|
* `emit` respects `stopImmediatePropagation()` on dispatched events.
|
|
@@ -25868,7 +25996,7 @@ var EventEmitter$1 = class extends EventEmitter {
|
|
|
25868
25996
|
}
|
|
25869
25997
|
};
|
|
25870
25998
|
//#endregion
|
|
25871
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
25999
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/StdinContext.js
|
|
25872
26000
|
/**
|
|
25873
26001
|
* `StdinContext` is a React context, which exposes input stream.
|
|
25874
26002
|
*/
|
|
@@ -25882,14 +26010,14 @@ const StdinContext = (0, import_react.createContext)({
|
|
|
25882
26010
|
});
|
|
25883
26011
|
StdinContext.displayName = "InternalStdinContext";
|
|
25884
26012
|
//#endregion
|
|
25885
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26013
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-stdin.js
|
|
25886
26014
|
/**
|
|
25887
26015
|
* React hook exposing the stdin stream and raw-mode helpers from `StdinContext`.
|
|
25888
26016
|
* @returns the `StdinContext` value.
|
|
25889
26017
|
*/
|
|
25890
26018
|
const useStdin = () => (0, import_react.useContext)(StdinContext);
|
|
25891
26019
|
//#endregion
|
|
25892
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26020
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/ansi.js
|
|
25893
26021
|
/**
|
|
25894
26022
|
* ANSI Control Characters and Escape Sequence Introducers
|
|
25895
26023
|
*
|
|
@@ -25963,7 +26091,7 @@ function isEscFinal(byte) {
|
|
|
25963
26091
|
return byte >= 48 && byte <= 126;
|
|
25964
26092
|
}
|
|
25965
26093
|
//#endregion
|
|
25966
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26094
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/csi.js
|
|
25967
26095
|
/**
|
|
25968
26096
|
* CSI (Control Sequence Introducer) Types
|
|
25969
26097
|
*
|
|
@@ -26286,7 +26414,7 @@ const ENABLE_WIN32_INPUT_MODE = csi("?9001h");
|
|
|
26286
26414
|
*/
|
|
26287
26415
|
const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
|
|
26288
26416
|
//#endregion
|
|
26289
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26417
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/env.js
|
|
26290
26418
|
/**
|
|
26291
26419
|
* Minimal terminal-environment shim for the ported Ink core. The original
|
|
26292
26420
|
* module computed a richer `env` object from the Claude Code app context; the
|
|
@@ -26295,7 +26423,7 @@ const DISABLE_WIN32_INPUT_MODE = csi("?9001l");
|
|
|
26295
26423
|
*/
|
|
26296
26424
|
const env$1 = { terminal: (process.env.TERM_PROGRAM ?? process.env.TERM ?? "unknown").toLowerCase() };
|
|
26297
26425
|
//#endregion
|
|
26298
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26426
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/osc.js
|
|
26299
26427
|
/**
|
|
26300
26428
|
* OSC (Operating System Command) Types and Parser
|
|
26301
26429
|
*/
|
|
@@ -26691,7 +26819,7 @@ function supportsTabStatus() {
|
|
|
26691
26819
|
return process.env.USER_TYPE === "ant";
|
|
26692
26820
|
}
|
|
26693
26821
|
//#endregion
|
|
26694
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
26822
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-querier.js
|
|
26695
26823
|
/**
|
|
26696
26824
|
* Query the terminal and await responses without timeouts.
|
|
26697
26825
|
*
|
|
@@ -26881,7 +27009,7 @@ var TerminalQuerier = class {
|
|
|
26881
27009
|
}
|
|
26882
27010
|
};
|
|
26883
27011
|
//#endregion
|
|
26884
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
27012
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemeProvider.js
|
|
26885
27013
|
/**
|
|
26886
27014
|
* Theme provider with terminal-background auto-detection. With no explicit
|
|
26887
27015
|
* `theme` prop, no CHATCODE_CLI_TUI_THEME override and no persisted choice
|
|
@@ -27080,7 +27208,7 @@ function useTheme() {
|
|
|
27080
27208
|
return [theme, setTheme];
|
|
27081
27209
|
}
|
|
27082
27210
|
//#endregion
|
|
27083
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
27211
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/settingsEditor.js
|
|
27084
27212
|
/**
|
|
27085
27213
|
* React-free form model behind the `/settings` screen (issue #165), mirroring
|
|
27086
27214
|
* the web front door's card-form.ts semantics: a section stages what the user
|
|
@@ -27330,7 +27458,7 @@ var SettingsForm = class {
|
|
|
27330
27458
|
}
|
|
27331
27459
|
};
|
|
27332
27460
|
//#endregion
|
|
27333
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
27461
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/reload.js
|
|
27334
27462
|
/**
|
|
27335
27463
|
* `/reload` planning — the pi-style soft reload: re-read the TUI's persisted
|
|
27336
27464
|
* preference files (`~/.chatcode-cli/tui/{theme,lang,agent-preset,model,
|
|
@@ -28179,7 +28307,7 @@ var SignalExit = class extends SignalExitBase {
|
|
|
28179
28307
|
const process$2 = globalThis.process;
|
|
28180
28308
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
28181
28309
|
//#endregion
|
|
28182
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
28310
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/enums.js
|
|
28183
28311
|
/**
|
|
28184
28312
|
* Yoga enums — ported from yoga-layout/src/generated/YGEnums.ts
|
|
28185
28313
|
* Kept as `const` objects (not TS enums) per repo convention.
|
|
@@ -28311,7 +28439,7 @@ const Wrap = {
|
|
|
28311
28439
|
WrapReverse: 2
|
|
28312
28440
|
};
|
|
28313
28441
|
//#endregion
|
|
28314
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
28442
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/native-ts/yoga-layout/index.js
|
|
28315
28443
|
/**
|
|
28316
28444
|
* Pure-TypeScript port of yoga-layout (Meta's flexbox engine).
|
|
28317
28445
|
*
|
|
@@ -30762,7 +30890,7 @@ Object.defineProperties(createChalk.prototype, {
|
|
|
30762
30890
|
const chalk = createChalk();
|
|
30763
30891
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
30764
30892
|
//#endregion
|
|
30765
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
30893
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/colorize.js
|
|
30766
30894
|
/**
|
|
30767
30895
|
* xterm.js (VS Code, Cursor, code-server, Coder) has supported truecolor
|
|
30768
30896
|
* since 2017, but code-server/Coder containers often don't set
|
|
@@ -30893,7 +31021,7 @@ function applyColor(text, color) {
|
|
|
30893
31021
|
return colorize(text, color, "foreground");
|
|
30894
31022
|
}
|
|
30895
31023
|
//#endregion
|
|
30896
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
31024
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/envUtils.js
|
|
30897
31025
|
/**
|
|
30898
31026
|
* Environment truthiness check for the ported Ink core. Accepts the common
|
|
30899
31027
|
* shell truthy spellings (`1`, `true`, `yes`, `on`).
|
|
@@ -30911,7 +31039,7 @@ function isEnvTruthy(value) {
|
|
|
30911
31039
|
].includes(value.toLowerCase());
|
|
30912
31040
|
}
|
|
30913
31041
|
//#endregion
|
|
30914
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
31042
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fullscreen.js
|
|
30915
31043
|
/**
|
|
30916
31044
|
* Whether mouse click handling is disabled for the ported Ink core. dsh-tui
|
|
30917
31045
|
* reads its own env flag (`CHATCODE_CLI_TUI_DISABLE_MOUSE`); the original module
|
|
@@ -30922,7 +31050,7 @@ function isMouseClicksDisabled() {
|
|
|
30922
31050
|
return isEnvTruthy(readTuiEnv("DISABLE_MOUSE"));
|
|
30923
31051
|
}
|
|
30924
31052
|
//#endregion
|
|
30925
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
31053
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/input-suppression.js
|
|
30926
31054
|
/**
|
|
30927
31055
|
* Input suppression window for terminal handoffs (issue #123): when stdin is
|
|
30928
31056
|
* handed to an external TUI (full-screen editor) and back, the tty can
|
|
@@ -30949,7 +31077,7 @@ function isInputSuppressed() {
|
|
|
30949
31077
|
return Date.now() < suppressedUntil;
|
|
30950
31078
|
}
|
|
30951
31079
|
//#endregion
|
|
30952
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
31080
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/tokenize.js
|
|
30953
31081
|
/**
|
|
30954
31082
|
* Input Tokenizer - Escape sequence boundary detection
|
|
30955
31083
|
*
|
|
@@ -31147,7 +31275,7 @@ function tokenize$2(input, initialState, initialBuffer, flush, x10Mouse, splitIn
|
|
|
31147
31275
|
};
|
|
31148
31276
|
}
|
|
31149
31277
|
//#endregion
|
|
31150
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
31278
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/parse-keypress.js
|
|
31151
31279
|
/**
|
|
31152
31280
|
* Keyboard input parser - converts terminal input to key events
|
|
31153
31281
|
*
|
|
@@ -32256,7 +32384,7 @@ function createWheelKey(s, name, col, row, button) {
|
|
|
32256
32384
|
};
|
|
32257
32385
|
}
|
|
32258
32386
|
//#endregion
|
|
32259
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32387
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/input-event.js
|
|
32260
32388
|
function parseKey(keypress) {
|
|
32261
32389
|
const key = {
|
|
32262
32390
|
upArrow: keypress.name === "up",
|
|
@@ -32341,7 +32469,7 @@ var InputEvent = class extends Event {
|
|
|
32341
32469
|
}
|
|
32342
32470
|
};
|
|
32343
32471
|
//#endregion
|
|
32344
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32472
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-focus-event.js
|
|
32345
32473
|
/**
|
|
32346
32474
|
* Event fired when the terminal window gains or loses focus.
|
|
32347
32475
|
*
|
|
@@ -32360,7 +32488,7 @@ var TerminalFocusEvent = class extends Event {
|
|
|
32360
32488
|
}
|
|
32361
32489
|
};
|
|
32362
32490
|
//#endregion
|
|
32363
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32491
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/node-cache.js
|
|
32364
32492
|
/** Layout bounds cached per rendered node, used for blitting and clearing. */
|
|
32365
32493
|
const nodeCache = /* @__PURE__ */ new WeakMap();
|
|
32366
32494
|
/** Rects of removed children that need clearing on next render */
|
|
@@ -32398,7 +32526,7 @@ function consumeAbsoluteRemovedFlag() {
|
|
|
32398
32526
|
return had;
|
|
32399
32527
|
}
|
|
32400
32528
|
//#endregion
|
|
32401
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32529
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/terminal-event.js
|
|
32402
32530
|
/**
|
|
32403
32531
|
* Base class for all terminal events with DOM-style propagation.
|
|
32404
32532
|
*
|
|
@@ -32527,7 +32655,7 @@ var TerminalEvent = class extends Event {
|
|
|
32527
32655
|
_prepareForTarget(_target) {}
|
|
32528
32656
|
};
|
|
32529
32657
|
//#endregion
|
|
32530
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32658
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/pointer-event.js
|
|
32531
32659
|
/**
|
|
32532
32660
|
* Base class for pointer-derived terminal events (click, wheel, hover).
|
|
32533
32661
|
*
|
|
@@ -32588,7 +32716,7 @@ var PointerEvent = class extends TerminalEvent {
|
|
|
32588
32716
|
}
|
|
32589
32717
|
};
|
|
32590
32718
|
//#endregion
|
|
32591
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
32719
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/drag-event.js
|
|
32592
32720
|
/**
|
|
32593
32721
|
* Component-level drag event (DOM HTML5 drag semantics subset).
|
|
32594
32722
|
*
|
|
@@ -48696,7 +48824,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
|
|
|
48696
48824
|
}, module.exports.default = module.exports, Object.defineProperty(module.exports, "__esModule", { value: !0 }));
|
|
48697
48825
|
}));
|
|
48698
48826
|
//#endregion
|
|
48699
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48827
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/node.js
|
|
48700
48828
|
var import_react_reconciler = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
48701
48829
|
if (process.env.NODE_ENV === "production") module.exports = require_react_reconciler_production();
|
|
48702
48830
|
else module.exports = require_react_reconciler_development();
|
|
@@ -48772,7 +48900,7 @@ const LayoutMeasureMode = {
|
|
|
48772
48900
|
AtMost: "at-most"
|
|
48773
48901
|
};
|
|
48774
48902
|
//#endregion
|
|
48775
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
48903
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/yoga.js
|
|
48776
48904
|
const EDGE_MAP = {
|
|
48777
48905
|
all: Edge.All,
|
|
48778
48906
|
horizontal: Edge.Horizontal,
|
|
@@ -48999,7 +49127,7 @@ function createYogaLayoutNode() {
|
|
|
48999
49127
|
return new YogaLayoutNode(YOGA_INSTANCE.Node.create());
|
|
49000
49128
|
}
|
|
49001
49129
|
//#endregion
|
|
49002
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49130
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/engine.js
|
|
49003
49131
|
/**
|
|
49004
49132
|
* Create a new layout node backed by the Yoga adapter.
|
|
49005
49133
|
* @returns an empty layout node with no children, styles, or measure function.
|
|
@@ -49008,7 +49136,7 @@ function createLayoutNode() {
|
|
|
49008
49136
|
return createYogaLayoutNode();
|
|
49009
49137
|
}
|
|
49010
49138
|
//#endregion
|
|
49011
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49139
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/line-width-cache.js
|
|
49012
49140
|
const cache = /* @__PURE__ */ new Map();
|
|
49013
49141
|
const MAX_CACHE_SIZE = 4096;
|
|
49014
49142
|
const MAX_CACHE_CHARS = 1e5;
|
|
@@ -49044,7 +49172,7 @@ function lineWidth(line) {
|
|
|
49044
49172
|
return width;
|
|
49045
49173
|
}
|
|
49046
49174
|
//#endregion
|
|
49047
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49175
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-text.js
|
|
49048
49176
|
/**
|
|
49049
49177
|
* Measure wrapped text dimensions in a single pass.
|
|
49050
49178
|
* @param text - the text to measure.
|
|
@@ -49075,7 +49203,7 @@ function measureText(text, maxWidth) {
|
|
|
49075
49203
|
};
|
|
49076
49204
|
}
|
|
49077
49205
|
//#endregion
|
|
49078
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49206
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/squash-text-nodes.js
|
|
49079
49207
|
/**
|
|
49080
49208
|
* Squash text nodes into styled segments, propagating styles down through the tree.
|
|
49081
49209
|
* This allows structured styling without relying on ANSI string transforms.
|
|
@@ -49123,7 +49251,7 @@ function squashTextNodes(node) {
|
|
|
49123
49251
|
return text;
|
|
49124
49252
|
}
|
|
49125
49253
|
//#endregion
|
|
49126
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49254
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/tabstops.js
|
|
49127
49255
|
const DEFAULT_TAB_INTERVAL = 8;
|
|
49128
49256
|
/**
|
|
49129
49257
|
* Expand tab characters to spaces at fixed column intervals, preserving
|
|
@@ -49573,7 +49701,7 @@ function tokenize$1(str, endChar = Number.POSITIVE_INFINITY) {
|
|
|
49573
49701
|
return ret;
|
|
49574
49702
|
}
|
|
49575
49703
|
//#endregion
|
|
49576
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
49704
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sliceAnsi.js
|
|
49577
49705
|
function isEndCode(code) {
|
|
49578
49706
|
return code.code === code.endCode;
|
|
49579
49707
|
}
|
|
@@ -50190,7 +50318,7 @@ function wrapAnsi$1(string, columns, options) {
|
|
|
50190
50318
|
return normalizeText(String(string)).replaceAll("\r\n", "\n").split("\n").map((line) => exec(expandTabs$1(line), columns, options)).join("\n");
|
|
50191
50319
|
}
|
|
50192
50320
|
//#endregion
|
|
50193
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50321
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrapAnsi.js
|
|
50194
50322
|
const wrapAnsiBun = typeof Bun !== "undefined" && typeof Bun.wrapAnsi === "function" ? Bun.wrapAnsi : null;
|
|
50195
50323
|
const SLOT_MIN_LENGTH = 2048;
|
|
50196
50324
|
let slot = null;
|
|
@@ -50237,7 +50365,7 @@ function wrapAnsiNpmIncremental(input, columns, options) {
|
|
|
50237
50365
|
*/
|
|
50238
50366
|
const wrapAnsi = wrapAnsiBun ?? wrapAnsiNpmIncremental;
|
|
50239
50367
|
//#endregion
|
|
50240
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50368
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/wrap-text.js
|
|
50241
50369
|
const ELLIPSIS = "…";
|
|
50242
50370
|
const WRAP_CACHE_MAX_ENTRIES = 2048;
|
|
50243
50371
|
const WRAP_CACHE_MAX_CHARS = 2e6;
|
|
@@ -50301,7 +50429,7 @@ function wrapText$1(text, maxWidth, wrapType) {
|
|
|
50301
50429
|
return text;
|
|
50302
50430
|
}
|
|
50303
50431
|
//#endregion
|
|
50304
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50432
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/dom.js
|
|
50305
50433
|
/**
|
|
50306
50434
|
* Create an element node of the given kind, allocating its yoga layout node
|
|
50307
50435
|
* unless the kind renders without layout (`ink-virtual-text`, `ink-link`,
|
|
@@ -50621,7 +50749,7 @@ function findOwnerChainAtRow(root, y) {
|
|
|
50621
50749
|
}
|
|
50622
50750
|
}
|
|
50623
50751
|
//#endregion
|
|
50624
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50752
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/event-handlers.js
|
|
50625
50753
|
/**
|
|
50626
50754
|
* Reverse lookup: event type string → handler prop names.
|
|
50627
50755
|
* Used by the dispatcher for O(1) handler lookup per node.
|
|
@@ -50675,7 +50803,7 @@ const EVENT_HANDLER_PROPS = new Set([
|
|
|
50675
50803
|
"onWheel"
|
|
50676
50804
|
]);
|
|
50677
50805
|
//#endregion
|
|
50678
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50806
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/dispatcher.js
|
|
50679
50807
|
function getHandler(node, eventType, capture) {
|
|
50680
50808
|
const handlers = node._eventHandlers;
|
|
50681
50809
|
if (!handlers) return void 0;
|
|
@@ -50843,7 +50971,7 @@ var Dispatcher = class {
|
|
|
50843
50971
|
}
|
|
50844
50972
|
};
|
|
50845
50973
|
//#endregion
|
|
50846
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50974
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/focus-event.js
|
|
50847
50975
|
/**
|
|
50848
50976
|
* Focus event for component focus changes.
|
|
50849
50977
|
*
|
|
@@ -50868,7 +50996,7 @@ var FocusEvent = class extends TerminalEvent {
|
|
|
50868
50996
|
}
|
|
50869
50997
|
};
|
|
50870
50998
|
//#endregion
|
|
50871
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
50999
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/focus.js
|
|
50872
51000
|
const MAX_FOCUS_STACK = 32;
|
|
50873
51001
|
/**
|
|
50874
51002
|
* DOM-like focus manager for the Ink terminal UI.
|
|
@@ -51024,7 +51152,7 @@ function getFocusManager(node) {
|
|
|
51024
51152
|
return getRootNode(node).focusManager;
|
|
51025
51153
|
}
|
|
51026
51154
|
//#endregion
|
|
51027
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51155
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/styles.js
|
|
51028
51156
|
const applyPositionStyles = (node, style) => {
|
|
51029
51157
|
if ("position" in style) node.setPositionType(style.position === "absolute" ? LayoutPositionType.Absolute : LayoutPositionType.Relative);
|
|
51030
51158
|
if ("top" in style) applyPositionEdge(node, "top", style.top);
|
|
@@ -51159,7 +51287,7 @@ const styles = (node, style = {}, resolvedStyle) => {
|
|
|
51159
51287
|
applyGapStyles(node, style);
|
|
51160
51288
|
};
|
|
51161
51289
|
//#endregion
|
|
51162
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51290
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/reconciler.js
|
|
51163
51291
|
if (process.env.NODE_ENV === "development") try {
|
|
51164
51292
|
import("./devtools-la_KkjCS.js");
|
|
51165
51293
|
} catch (error) {
|
|
@@ -51479,7 +51607,7 @@ const reconciler = (0, import_react_reconciler.default)({
|
|
|
51479
51607
|
});
|
|
51480
51608
|
dispatcher.discreteUpdates = reconciler.discreteUpdates.bind(reconciler);
|
|
51481
51609
|
//#endregion
|
|
51482
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51610
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/layout/geometry.js
|
|
51483
51611
|
/**
|
|
51484
51612
|
* Compute the smallest rectangle containing both input rectangles.
|
|
51485
51613
|
* @param a - the first rectangle.
|
|
@@ -51511,7 +51639,7 @@ function clamp(value, min, max) {
|
|
|
51511
51639
|
return value;
|
|
51512
51640
|
}
|
|
51513
51641
|
//#endregion
|
|
51514
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51642
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/warn.js
|
|
51515
51643
|
/**
|
|
51516
51644
|
* Log a warning when a value is present but not an integer.
|
|
51517
51645
|
* @param value - the value to check; undefined is skipped silently.
|
|
@@ -51523,7 +51651,7 @@ function ifNotInteger(value, name) {
|
|
|
51523
51651
|
logForDebugging(`${name} should be an integer, got ${value}`, { level: "warn" });
|
|
51524
51652
|
}
|
|
51525
51653
|
//#endregion
|
|
51526
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
51654
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/screen.js
|
|
51527
51655
|
/**
|
|
51528
51656
|
* Pool of character strings shared across all screens.
|
|
51529
51657
|
* With a shared pool, interned char IDs are valid across screens, so
|
|
@@ -52592,7 +52720,7 @@ function markNoSelectRegion(screen, x, y, width, height) {
|
|
|
52592
52720
|
}
|
|
52593
52721
|
}
|
|
52594
52722
|
//#endregion
|
|
52595
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
52723
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/selection.js
|
|
52596
52724
|
/**
|
|
52597
52725
|
* Text selection state for fullscreen mode.
|
|
52598
52726
|
*
|
|
@@ -53558,7 +53686,7 @@ function applySelectionOverlay(screen, selection, stylePool) {
|
|
|
53558
53686
|
}
|
|
53559
53687
|
}
|
|
53560
53688
|
//#endregion
|
|
53561
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53689
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/dec.js
|
|
53562
53690
|
/**
|
|
53563
53691
|
* DEC (Digital Equipment Corporation) Private Mode Sequences
|
|
53564
53692
|
*
|
|
@@ -53624,7 +53752,7 @@ const ENABLE_MOUSE_TRACKING = decset(DEC.MOUSE_NORMAL) + decset(DEC.MOUSE_BUTTON
|
|
|
53624
53752
|
/** Disable all mouse tracking modes enabled by ENABLE_MOUSE_TRACKING. */
|
|
53625
53753
|
const DISABLE_MOUSE_TRACKING = decreset(DEC.MOUSE_SGR) + decreset(DEC.MOUSE_ANY) + decreset(DEC.MOUSE_BUTTON) + decreset(DEC.MOUSE_NORMAL);
|
|
53626
53754
|
//#endregion
|
|
53627
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53755
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal.js
|
|
53628
53756
|
/**
|
|
53629
53757
|
* True when running inside a JetBrains IDE terminal (JediTerm). The IDE
|
|
53630
53758
|
* injects `TERMINAL_EMULATOR=JetBrains-JediTerm` into the pty environment of
|
|
@@ -53866,7 +53994,7 @@ function writeDiffToTerminal(terminal, diff, skipSyncMarkers = false) {
|
|
|
53866
53994
|
terminal.stdout.write(buffer);
|
|
53867
53995
|
}
|
|
53868
53996
|
//#endregion
|
|
53869
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
53997
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/terminal-focus-state.js
|
|
53870
53998
|
let focusState = "unknown";
|
|
53871
53999
|
const resolvers = /* @__PURE__ */ new Set();
|
|
53872
54000
|
const subscribers = /* @__PURE__ */ new Set();
|
|
@@ -53910,7 +54038,7 @@ function subscribeTerminalFocus(cb) {
|
|
|
53910
54038
|
};
|
|
53911
54039
|
}
|
|
53912
54040
|
//#endregion
|
|
53913
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54041
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AppContext.js
|
|
53914
54042
|
/**
|
|
53915
54043
|
* `AppContext` is a React context, which exposes a method to manually exit the app (unmount).
|
|
53916
54044
|
*/
|
|
@@ -53955,13 +54083,13 @@ var require_react_compiler_runtime_development = /* @__PURE__ */ __commonJSMin((
|
|
|
53955
54083
|
})();
|
|
53956
54084
|
}));
|
|
53957
54085
|
//#endregion
|
|
53958
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54086
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/constants.js
|
|
53959
54087
|
var import_compiler_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
53960
54088
|
if (process.env.NODE_ENV === "production") module.exports = require_react_compiler_runtime_production();
|
|
53961
54089
|
else module.exports = require_react_compiler_runtime_development();
|
|
53962
54090
|
})))();
|
|
53963
54091
|
//#endregion
|
|
53964
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54092
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/geometry-trace.js
|
|
53965
54093
|
/**
|
|
53966
54094
|
* Geometry forensics — per-frame scroll-geometry trace (issues #421/#433).
|
|
53967
54095
|
*
|
|
@@ -54041,7 +54169,7 @@ function endGeometryFrame(durationMs) {
|
|
|
54041
54169
|
};
|
|
54042
54170
|
}
|
|
54043
54171
|
//#endregion
|
|
54044
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54172
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalFocusContext.js
|
|
54045
54173
|
const TerminalFocusContext = (0, import_react.createContext)({
|
|
54046
54174
|
isTerminalFocused: true,
|
|
54047
54175
|
terminalFocusState: "unknown"
|
|
@@ -54076,7 +54204,7 @@ function TerminalFocusProvider(t0) {
|
|
|
54076
54204
|
return t2;
|
|
54077
54205
|
}
|
|
54078
54206
|
//#endregion
|
|
54079
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54207
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-focus.js
|
|
54080
54208
|
/**
|
|
54081
54209
|
* Hook to check if the terminal has focus.
|
|
54082
54210
|
*
|
|
@@ -54091,7 +54219,7 @@ function useTerminalFocus() {
|
|
|
54091
54219
|
return isTerminalFocused;
|
|
54092
54220
|
}
|
|
54093
54221
|
//#endregion
|
|
54094
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54222
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ClockContext.js
|
|
54095
54223
|
function createClock(tickIntervalMs) {
|
|
54096
54224
|
const subscribers = /* @__PURE__ */ new Map();
|
|
54097
54225
|
let interval = null;
|
|
@@ -54188,7 +54316,7 @@ function _temp() {
|
|
|
54188
54316
|
return createClock(16);
|
|
54189
54317
|
}
|
|
54190
54318
|
//#endregion
|
|
54191
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54319
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/CursorDeclarationContext.js
|
|
54192
54320
|
/**
|
|
54193
54321
|
* React context that provides the cursor-declaration setter to descendants.
|
|
54194
54322
|
*/
|
|
@@ -54228,7 +54356,7 @@ var require_escape_string_regexp = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
54228
54356
|
};
|
|
54229
54357
|
}));
|
|
54230
54358
|
//#endregion
|
|
54231
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54359
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Box.js
|
|
54232
54360
|
var import_stack_utils = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
54233
54361
|
const escapeStringRegexp = require_escape_string_regexp();
|
|
54234
54362
|
const cwd = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".";
|
|
@@ -54596,7 +54724,7 @@ function Box(t0) {
|
|
|
54596
54724
|
return t4;
|
|
54597
54725
|
}
|
|
54598
54726
|
//#endregion
|
|
54599
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54727
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Text.js
|
|
54600
54728
|
const memoizedStylesForWrap = {
|
|
54601
54729
|
wrap: {
|
|
54602
54730
|
flexGrow: 0,
|
|
@@ -54748,7 +54876,7 @@ function Text(t0) {
|
|
|
54748
54876
|
return t16;
|
|
54749
54877
|
}
|
|
54750
54878
|
//#endregion
|
|
54751
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54879
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ErrorOverview.js
|
|
54752
54880
|
const cleanupPath = (path) => {
|
|
54753
54881
|
return path?.replace(`file://${process.cwd()}/`, "");
|
|
54754
54882
|
};
|
|
@@ -54853,10 +54981,10 @@ function ErrorOverview({ error }) {
|
|
|
54853
54981
|
});
|
|
54854
54982
|
}
|
|
54855
54983
|
//#endregion
|
|
54856
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54984
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/TerminalSizeContext.js
|
|
54857
54985
|
const TerminalSizeContext = (0, import_react.createContext)(null);
|
|
54858
54986
|
//#endregion
|
|
54859
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54987
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/useTerminalNotification.js
|
|
54860
54988
|
/**
|
|
54861
54989
|
* React context providing a raw terminal write function. Null until a
|
|
54862
54990
|
* TerminalWriteProvider is mounted.
|
|
@@ -54867,7 +54995,7 @@ const TerminalWriteContext = (0, import_react.createContext)(null);
|
|
|
54867
54995
|
*/
|
|
54868
54996
|
const TerminalWriteProvider = TerminalWriteContext.Provider;
|
|
54869
54997
|
//#endregion
|
|
54870
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
54998
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/App.js
|
|
54871
54999
|
const SUPPORTS_SUSPEND = process.platform !== "win32";
|
|
54872
55000
|
const STDIN_RESUME_GAP_MS = 5e3;
|
|
54873
55001
|
const MULTI_CLICK_TIMEOUT_MS = 500;
|
|
@@ -55393,7 +55521,7 @@ function handleMouseEvent(app, m) {
|
|
|
55393
55521
|
}
|
|
55394
55522
|
}
|
|
55395
55523
|
//#endregion
|
|
55396
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55524
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/keyboard-event.js
|
|
55397
55525
|
/**
|
|
55398
55526
|
* Keyboard event dispatched through the DOM tree via capture/bubble.
|
|
55399
55527
|
*
|
|
@@ -55453,7 +55581,7 @@ function keyFromParsed(parsed) {
|
|
|
55453
55581
|
return name || seq;
|
|
55454
55582
|
}
|
|
55455
55583
|
//#endregion
|
|
55456
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55584
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/frame.js
|
|
55457
55585
|
/**
|
|
55458
55586
|
* Create an empty frame with a zero-size screen, the given viewport, and a
|
|
55459
55587
|
* visible cursor at the origin.
|
|
@@ -55479,7 +55607,7 @@ function emptyFrame(rows, columns, stylePool, charPool, hyperlinkPool) {
|
|
|
55479
55607
|
};
|
|
55480
55608
|
}
|
|
55481
55609
|
//#endregion
|
|
55482
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55610
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/click-event.js
|
|
55483
55611
|
/**
|
|
55484
55612
|
* Mouse click event. Fired on left-button release without drag, only when
|
|
55485
55613
|
* mouse tracking is enabled (i.e. inside <AlternateScreen>).
|
|
@@ -55510,7 +55638,7 @@ var ClickEvent = class extends PointerEvent {
|
|
|
55510
55638
|
}
|
|
55511
55639
|
};
|
|
55512
55640
|
//#endregion
|
|
55513
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55641
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/context-menu-event.js
|
|
55514
55642
|
/**
|
|
55515
55643
|
* Mouse context-menu event. Fired on right-button press (SGR button 2,
|
|
55516
55644
|
* low bits of the raw button byte), mirroring the DOM `contextmenu` event
|
|
@@ -55534,7 +55662,7 @@ var ContextMenuEvent = class extends PointerEvent {
|
|
|
55534
55662
|
}
|
|
55535
55663
|
};
|
|
55536
55664
|
//#endregion
|
|
55537
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55665
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/events/wheel-event.js
|
|
55538
55666
|
/**
|
|
55539
55667
|
* Mouse wheel event dispatched to the ScrollBox under the pointer.
|
|
55540
55668
|
*
|
|
@@ -55570,7 +55698,7 @@ function indentString(string, count = 1, options = {}) {
|
|
|
55570
55698
|
return string.replace(regex, indent.repeat(count));
|
|
55571
55699
|
}
|
|
55572
55700
|
//#endregion
|
|
55573
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55701
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/get-max-width.js
|
|
55574
55702
|
/**
|
|
55575
55703
|
* Returns the yoga node's content width (computed width minus padding and
|
|
55576
55704
|
* border).
|
|
@@ -55675,7 +55803,7 @@ var cli_boxes_default = {
|
|
|
55675
55803
|
}
|
|
55676
55804
|
};
|
|
55677
55805
|
//#endregion
|
|
55678
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55806
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-border.js
|
|
55679
55807
|
/** Built-in border styles beyond those provided by cli-boxes. */
|
|
55680
55808
|
const CUSTOM_BORDER_STYLES = { dashed: {
|
|
55681
55809
|
top: "╌",
|
|
@@ -55765,7 +55893,7 @@ const renderBorder = (x, y, node, output) => {
|
|
|
55765
55893
|
}
|
|
55766
55894
|
};
|
|
55767
55895
|
//#endregion
|
|
55768
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55896
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/widest-line.js
|
|
55769
55897
|
/**
|
|
55770
55898
|
* Get the display width of the widest line in a string.
|
|
55771
55899
|
* @param string - the text to measure, possibly containing newlines.
|
|
@@ -55784,7 +55912,7 @@ function widestLine(string) {
|
|
|
55784
55912
|
return maxWidth;
|
|
55785
55913
|
}
|
|
55786
55914
|
//#endregion
|
|
55787
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
55915
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-node-to-output.js
|
|
55788
55916
|
function isXtermJsHost() {
|
|
55789
55917
|
return process.env.TERM_PROGRAM === "vscode" || isXtermJs();
|
|
55790
55918
|
}
|
|
@@ -56600,7 +56728,7 @@ function dropSubtreeCache(node) {
|
|
|
56600
56728
|
for (const child of node.childNodes) if (child.nodeName !== "#text") dropSubtreeCache(child);
|
|
56601
56729
|
}
|
|
56602
56730
|
//#endregion
|
|
56603
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
56731
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hit-test.js
|
|
56604
56732
|
/**
|
|
56605
56733
|
* Find the deepest DOM element whose rendered rect contains (col, row).
|
|
56606
56734
|
*
|
|
@@ -56990,7 +57118,7 @@ function dispatchHover(root, col, row, hovered) {
|
|
|
56990
57118
|
}
|
|
56991
57119
|
}
|
|
56992
57120
|
//#endregion
|
|
56993
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57121
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/flush-tick.js
|
|
56994
57122
|
/**
|
|
56995
57123
|
* Monotonic terminal-flush counter for the ported Ink core.
|
|
56996
57124
|
*
|
|
@@ -57023,7 +57151,7 @@ function getTerminalFlushTick() {
|
|
|
57023
57151
|
return flushTick;
|
|
57024
57152
|
}
|
|
57025
57153
|
//#endregion
|
|
57026
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57154
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/instances.js
|
|
57027
57155
|
/**
|
|
57028
57156
|
* Live Ink instances keyed by their output stream, so consecutive render()
|
|
57029
57157
|
* calls reuse the instance for a stream instead of creating a new one.
|
|
@@ -57032,7 +57160,7 @@ function getTerminalFlushTick() {
|
|
|
57032
57160
|
*/
|
|
57033
57161
|
const instances = /* @__PURE__ */ new Map();
|
|
57034
57162
|
//#endregion
|
|
57035
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57163
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/log-update.js
|
|
57036
57164
|
const CARRIAGE_RETURN = { type: "carriageReturn" };
|
|
57037
57165
|
const NEWLINE = {
|
|
57038
57166
|
type: "stdout",
|
|
@@ -57669,7 +57797,7 @@ var VirtualScreen = class {
|
|
|
57669
57797
|
}
|
|
57670
57798
|
};
|
|
57671
57799
|
//#endregion
|
|
57672
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57800
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/optimizer.js
|
|
57673
57801
|
/**
|
|
57674
57802
|
* Optimize a diff by applying all optimization rules in a single pass.
|
|
57675
57803
|
* This reduces the number of patches that need to be written to the terminal.
|
|
@@ -57734,7 +57862,7 @@ function optimize(diff) {
|
|
|
57734
57862
|
return result;
|
|
57735
57863
|
}
|
|
57736
57864
|
//#endregion
|
|
57737
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
57865
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/bidi.js
|
|
57738
57866
|
var import_bidi = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57739
57867
|
(function(global, factory) {
|
|
57740
57868
|
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.bidi_js = factory());
|
|
@@ -58510,7 +58638,7 @@ function hasRTLCharacters(text) {
|
|
|
58510
58638
|
return /[\u0590-\u05FF\uFB1D-\uFB4F\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF\u0780-\u07BF\u0700-\u074F]/u.test(text);
|
|
58511
58639
|
}
|
|
58512
58640
|
//#endregion
|
|
58513
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
58641
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/output.js
|
|
58514
58642
|
/**
|
|
58515
58643
|
* charCache bounds. The entry-count cap alone was not enough: a streaming
|
|
58516
58644
|
* line produces a NEW cache key on every frame, and each entry's cost is
|
|
@@ -59180,7 +59308,7 @@ function writeLineToScreen(screen, line, x, y, screenWidth, stylePool, charCache
|
|
|
59180
59308
|
return offsetX;
|
|
59181
59309
|
}
|
|
59182
59310
|
//#endregion
|
|
59183
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59311
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/render-to-screen.js
|
|
59184
59312
|
const timing = {
|
|
59185
59313
|
reconcile: 0,
|
|
59186
59314
|
yoga: 0,
|
|
@@ -59274,7 +59402,7 @@ function applyPositionedHighlight(screen, stylePool, positions, rowOffset, curre
|
|
|
59274
59402
|
return true;
|
|
59275
59403
|
}
|
|
59276
59404
|
//#endregion
|
|
59277
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59405
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/renderer.js
|
|
59278
59406
|
/**
|
|
59279
59407
|
* Create the renderer function for a root DOM node. The returned renderer
|
|
59280
59408
|
* reuses an Output across frames so its character cache persists.
|
|
@@ -59349,7 +59477,7 @@ function createRenderer(node, stylePool) {
|
|
|
59349
59477
|
};
|
|
59350
59478
|
}
|
|
59351
59479
|
//#endregion
|
|
59352
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59480
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/searchHighlight.js
|
|
59353
59481
|
/**
|
|
59354
59482
|
* Highlight all visible occurrences of `query` in the screen buffer by
|
|
59355
59483
|
* inverting cell styles (SGR 7). Post-render, same damage-tracking machinery
|
|
@@ -59411,7 +59539,7 @@ function applySearchHighlight(screen, query, stylePool) {
|
|
|
59411
59539
|
return applied;
|
|
59412
59540
|
}
|
|
59413
59541
|
//#endregion
|
|
59414
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
59542
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/ink.js
|
|
59415
59543
|
const ALT_SCREEN_ANCHOR_CURSOR = Object.freeze({
|
|
59416
59544
|
x: 0,
|
|
59417
59545
|
y: 0,
|
|
@@ -60964,7 +61092,7 @@ const CONSOLE_STDERR_METHODS = [
|
|
|
60964
61092
|
"trace"
|
|
60965
61093
|
];
|
|
60966
61094
|
//#endregion
|
|
60967
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61095
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/root.js
|
|
60968
61096
|
/**
|
|
60969
61097
|
* Mount a component and render the output.
|
|
60970
61098
|
* @param node - the React element to render.
|
|
@@ -61047,7 +61175,7 @@ const getInstance = (stdout, createInstance) => {
|
|
|
61047
61175
|
return instance;
|
|
61048
61176
|
};
|
|
61049
61177
|
//#endregion
|
|
61050
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61178
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedBox.js
|
|
61051
61179
|
/** Resolves a color value that may be a theme key to a raw Color. */
|
|
61052
61180
|
function resolveColor$1(color, theme) {
|
|
61053
61181
|
if (!color) return void 0;
|
|
@@ -61072,7 +61200,7 @@ function ThemedBox({ borderColor, borderTopColor, borderBottomColor, borderLeftC
|
|
|
61072
61200
|
});
|
|
61073
61201
|
}
|
|
61074
61202
|
//#endregion
|
|
61075
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61203
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ThemedText.js
|
|
61076
61204
|
/**
|
|
61077
61205
|
* Colors uncolored ThemedText in the subtree. Precedence: explicit `color` >
|
|
61078
61206
|
* this > dimColor (in the Claude Code visual language, where message rows
|
|
@@ -61108,7 +61236,7 @@ function ThemedText({ color, backgroundColor, dimColor = false, bold = false, it
|
|
|
61108
61236
|
});
|
|
61109
61237
|
}
|
|
61110
61238
|
//#endregion
|
|
61111
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61239
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Spacer.js
|
|
61112
61240
|
/**
|
|
61113
61241
|
* A flexible space that expands along the major axis of its containing layout.
|
|
61114
61242
|
* It's useful as a shortcut for filling all the available spaces between elements.
|
|
@@ -61123,7 +61251,7 @@ function Spacer() {
|
|
|
61123
61251
|
return t0;
|
|
61124
61252
|
}
|
|
61125
61253
|
//#endregion
|
|
61126
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61254
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Newline.js
|
|
61127
61255
|
/**
|
|
61128
61256
|
* Adds one or more newline (\n) characters. Must be used within <Text> components.
|
|
61129
61257
|
*/
|
|
@@ -61146,7 +61274,7 @@ function Newline(t0) {
|
|
|
61146
61274
|
return t3;
|
|
61147
61275
|
}
|
|
61148
61276
|
//#endregion
|
|
61149
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61277
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/NoSelect.js
|
|
61150
61278
|
/**
|
|
61151
61279
|
* Marks its contents as non-selectable in fullscreen text selection.
|
|
61152
61280
|
* Cells inside this box are skipped by both the selection highlight and
|
|
@@ -61197,7 +61325,7 @@ function NoSelect(t0) {
|
|
|
61197
61325
|
return t2;
|
|
61198
61326
|
}
|
|
61199
61327
|
//#endregion
|
|
61200
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61328
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/AlternateScreen.js
|
|
61201
61329
|
/**
|
|
61202
61330
|
* Run children in the terminal's alternate screen buffer, constrained to
|
|
61203
61331
|
* the viewport height. While mounted:
|
|
@@ -61272,7 +61400,7 @@ function AlternateScreen(t0) {
|
|
|
61272
61400
|
return t5;
|
|
61273
61401
|
}
|
|
61274
61402
|
//#endregion
|
|
61275
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61403
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/ScrollBox.js
|
|
61276
61404
|
/**
|
|
61277
61405
|
* A Box with `overflow: scroll` and an imperative scroll API.
|
|
61278
61406
|
*
|
|
@@ -61450,7 +61578,7 @@ function ScrollBox({ children, ref, stickyScroll, ...style }) {
|
|
|
61450
61578
|
});
|
|
61451
61579
|
}
|
|
61452
61580
|
//#endregion
|
|
61453
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61581
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-input.js
|
|
61454
61582
|
/**
|
|
61455
61583
|
* Keep an event listener stable while always dispatching to the latest render's
|
|
61456
61584
|
* callback. Keeping this hook local is important for packaged installs: a
|
|
@@ -61516,7 +61644,7 @@ const useInput = (inputHandler, options = {}) => {
|
|
|
61516
61644
|
}, [internal_eventEmitter, handleData]);
|
|
61517
61645
|
};
|
|
61518
61646
|
//#endregion
|
|
61519
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61647
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-selection.js
|
|
61520
61648
|
/**
|
|
61521
61649
|
* Access to text selection operations on the Ink instance (fullscreen only).
|
|
61522
61650
|
* Returns no-op functions when fullscreen mode is disabled.
|
|
@@ -61556,7 +61684,7 @@ function useSelection() {
|
|
|
61556
61684
|
}, [ink]);
|
|
61557
61685
|
}
|
|
61558
61686
|
//#endregion
|
|
61559
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61687
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-copy-on-select.js
|
|
61560
61688
|
/**
|
|
61561
61689
|
* Copy-on-select: when a drag finishes (or a double/triple click, or a
|
|
61562
61690
|
* shift+arrow extension, lands a selection), copy the selected text to the
|
|
@@ -61596,14 +61724,14 @@ function useCopyOnSelect(onCopied) {
|
|
|
61596
61724
|
]);
|
|
61597
61725
|
}
|
|
61598
61726
|
//#endregion
|
|
61599
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61727
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-app.js
|
|
61600
61728
|
/**
|
|
61601
61729
|
* React hook exposing the manual app-exit function from `AppContext`.
|
|
61602
61730
|
* @returns the `AppContext` value, whose `exit` function unmounts the app.
|
|
61603
61731
|
*/
|
|
61604
61732
|
const useApp = () => (0, import_react.useContext)(AppContext);
|
|
61605
61733
|
//#endregion
|
|
61606
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61734
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-viewport.js
|
|
61607
61735
|
/**
|
|
61608
61736
|
* Hook to detect if a component is within the terminal viewport.
|
|
61609
61737
|
*
|
|
@@ -61657,7 +61785,7 @@ function useTerminalViewport() {
|
|
|
61657
61785
|
return [setElement, entryRef.current];
|
|
61658
61786
|
}
|
|
61659
61787
|
//#endregion
|
|
61660
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61788
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-animation-frame.js
|
|
61661
61789
|
/**
|
|
61662
61790
|
* Hook for synchronized animations that pause when offscreen.
|
|
61663
61791
|
*
|
|
@@ -61706,7 +61834,7 @@ function useAnimationFrame(intervalMs = 16) {
|
|
|
61706
61834
|
return [viewportRef, time];
|
|
61707
61835
|
}
|
|
61708
61836
|
//#endregion
|
|
61709
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61837
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-size.js
|
|
61710
61838
|
/** Terminal dimensions from the Ink app shell (from Claude Code).
|
|
61711
61839
|
* @returns the current terminal dimensions.
|
|
61712
61840
|
*/
|
|
@@ -61716,7 +61844,7 @@ function useTerminalSize() {
|
|
|
61716
61844
|
return size;
|
|
61717
61845
|
}
|
|
61718
61846
|
//#endregion
|
|
61719
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61847
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useBlink.js
|
|
61720
61848
|
const BLINK_INTERVAL_MS = 600;
|
|
61721
61849
|
/**
|
|
61722
61850
|
* Hook for synchronized blinking animations that pause when offscreen
|
|
@@ -61733,7 +61861,7 @@ function useBlink(enabled, intervalMs = BLINK_INTERVAL_MS) {
|
|
|
61733
61861
|
return [ref, Math.floor(time / intervalMs) % 2 === 0];
|
|
61734
61862
|
}
|
|
61735
61863
|
//#endregion
|
|
61736
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61864
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/supports-hyperlinks.js
|
|
61737
61865
|
var import_supports_hyperlinks = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
61738
61866
|
const supportsColor = require_supports_color();
|
|
61739
61867
|
const hasFlag = require_has_flag();
|
|
@@ -61830,7 +61958,7 @@ function supportsHyperlinks(options) {
|
|
|
61830
61958
|
return false;
|
|
61831
61959
|
}
|
|
61832
61960
|
//#endregion
|
|
61833
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61961
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/components/Link.js
|
|
61834
61962
|
function Link(t0) {
|
|
61835
61963
|
const $ = (0, import_compiler_runtime.c)(5);
|
|
61836
61964
|
const { children, url, fallback } = t0;
|
|
@@ -61858,7 +61986,7 @@ function Link(t0) {
|
|
|
61858
61986
|
return t2;
|
|
61859
61987
|
}
|
|
61860
61988
|
//#endregion
|
|
61861
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
61989
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/esc.js
|
|
61862
61990
|
/**
|
|
61863
61991
|
* ESC Sequence Parser
|
|
61864
61992
|
*
|
|
@@ -61914,7 +62042,7 @@ function parseEsc(chars) {
|
|
|
61914
62042
|
};
|
|
61915
62043
|
}
|
|
61916
62044
|
//#endregion
|
|
61917
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62045
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/types.js
|
|
61918
62046
|
/**
|
|
61919
62047
|
* ANSI Parser - Semantic Types
|
|
61920
62048
|
*
|
|
@@ -61942,7 +62070,7 @@ function defaultStyle() {
|
|
|
61942
62070
|
};
|
|
61943
62071
|
}
|
|
61944
62072
|
//#endregion
|
|
61945
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62073
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/sgr.js
|
|
61946
62074
|
/**
|
|
61947
62075
|
* SGR (Select Graphic Rendition) Parser
|
|
61948
62076
|
*
|
|
@@ -62250,7 +62378,7 @@ function applySGR(paramStr, style) {
|
|
|
62250
62378
|
return s;
|
|
62251
62379
|
}
|
|
62252
62380
|
//#endregion
|
|
62253
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62381
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/termio/parser.js
|
|
62254
62382
|
/**
|
|
62255
62383
|
* ANSI Parser - Semantic Action Generator
|
|
62256
62384
|
*
|
|
@@ -62627,7 +62755,7 @@ var Parser = class {
|
|
|
62627
62755
|
}
|
|
62628
62756
|
};
|
|
62629
62757
|
//#endregion
|
|
62630
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
62758
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/Ansi.js
|
|
62631
62759
|
/**
|
|
62632
62760
|
* Component that parses ANSI escape codes and renders them using Text components.
|
|
62633
62761
|
*
|
|
@@ -62878,7 +63006,7 @@ function StyledText(t0) {
|
|
|
62878
63006
|
return t1;
|
|
62879
63007
|
}
|
|
62880
63008
|
//#endregion
|
|
62881
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
63009
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ui.js
|
|
62882
63010
|
var ui_exports = /* @__PURE__ */ __exportAll({
|
|
62883
63011
|
AlternateScreen: () => AlternateScreen,
|
|
62884
63012
|
Ansi: () => Ansi,
|
|
@@ -62902,7 +63030,7 @@ var ui_exports = /* @__PURE__ */ __exportAll({
|
|
|
62902
63030
|
useTheme: () => useTheme
|
|
62903
63031
|
});
|
|
62904
63032
|
//#endregion
|
|
62905
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
63033
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PageMargin.js
|
|
62906
63034
|
/** 嵌套安全的 inset(若未来出现嵌套 PageMargin 会累加)。 */
|
|
62907
63035
|
const PageInsetContext = import_react.createContext({
|
|
62908
63036
|
x: 0,
|
|
@@ -62956,7 +63084,7 @@ function PageMargin({ children }) {
|
|
|
62956
63084
|
});
|
|
62957
63085
|
}
|
|
62958
63086
|
//#endregion
|
|
62959
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
63087
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/figures.js
|
|
62960
63088
|
/**
|
|
62961
63089
|
* UI glyph constants used across the TUI: prompt markers, status badges,
|
|
62962
63090
|
* direction arrows, media controls, reasoning-effort indicators, and
|
|
@@ -62983,7 +63111,7 @@ const THINKING_SPINNER_FRAMES = [
|
|
|
62983
63111
|
"⠏"
|
|
62984
63112
|
];
|
|
62985
63113
|
//#endregion
|
|
62986
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
63114
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/providerWizard.js
|
|
62987
63115
|
/**
|
|
62988
63116
|
* `/provider` wizard — interactively adds, edits, or deletes an LLM
|
|
62989
63117
|
* provider route at runtime.
|
|
@@ -63709,7 +63837,7 @@ function buildProfile(input) {
|
|
|
63709
63837
|
return profile;
|
|
63710
63838
|
}
|
|
63711
63839
|
//#endregion
|
|
63712
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
63840
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/modelConfigWizard.js
|
|
63713
63841
|
/** `/model-config`: platform catalogs and shared provider configuration. */
|
|
63714
63842
|
const CUSTOM_MODEL_PROTOCOLS = [
|
|
63715
63843
|
"openai-completions",
|
|
@@ -64591,7 +64719,7 @@ function parseCapacity(value) {
|
|
|
64591
64719
|
return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : void 0;
|
|
64592
64720
|
}
|
|
64593
64721
|
//#endregion
|
|
64594
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64722
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-declared-cursor.js
|
|
64595
64723
|
/**
|
|
64596
64724
|
* Declares where the terminal cursor should be parked after each frame.
|
|
64597
64725
|
*
|
|
@@ -64640,7 +64768,7 @@ function useDeclaredCursor(options) {
|
|
|
64640
64768
|
return setNode;
|
|
64641
64769
|
}
|
|
64642
64770
|
//#endregion
|
|
64643
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64771
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/measure-element.js
|
|
64644
64772
|
/**
|
|
64645
64773
|
* Measure the rendered dimensions of a Box element.
|
|
64646
64774
|
* @param node - the DOM element to measure.
|
|
@@ -64651,7 +64779,7 @@ const measureElement = (node) => ({
|
|
|
64651
64779
|
height: node.yogaNode?.getComputedHeight() ?? 0
|
|
64652
64780
|
});
|
|
64653
64781
|
//#endregion
|
|
64654
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
64782
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Divider.js
|
|
64655
64783
|
const MAX_APPLIED_MEASUREMENTS = 8;
|
|
64656
64784
|
/**
|
|
64657
64785
|
* A horizontal divider line, optionally with a title in the middle
|
|
@@ -66379,7 +66507,7 @@ f.parseInline;
|
|
|
66379
66507
|
O.parse;
|
|
66380
66508
|
T.lex;
|
|
66381
66509
|
//#endregion
|
|
66382
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66510
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxTheme.js
|
|
66383
66511
|
/** highlight.js token classes -> theme syntax tokens. `default` catches
|
|
66384
66512
|
* every unmapped class so cli-highlight's own yellow never leaks through
|
|
66385
66513
|
* (issue #250, P2-6). */
|
|
@@ -66445,7 +66573,7 @@ function buildSyntaxTheme(theme) {
|
|
|
66445
66573
|
return out;
|
|
66446
66574
|
}
|
|
66447
66575
|
//#endregion
|
|
66448
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66576
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/hyperlink.js
|
|
66449
66577
|
/** OSC 8 hyperlink start sequence: `ESC ] 8 ; ;`, followed by the URL. */
|
|
66450
66578
|
const OSC8_START = "\x1B]8;;";
|
|
66451
66579
|
/** Schemes a rendered hyperlink may point at. Anything else degrades to
|
|
@@ -66487,7 +66615,7 @@ function createHyperlink(url, content, options) {
|
|
|
66487
66615
|
return `${OSC8_START}${safeUrl}${(options?.style ?? ((text) => chalk.blue(text)))(displayText)}${OSC8_START}`;
|
|
66488
66616
|
}
|
|
66489
66617
|
//#endregion
|
|
66490
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66618
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/fileTarget.js
|
|
66491
66619
|
/**
|
|
66492
66620
|
* Clickable file targets: turning path-like text in AI output into
|
|
66493
66621
|
* clickable targets, and resolving those targets back to absolute paths at
|
|
@@ -66629,7 +66757,7 @@ function linkifyFilePaths(text, wrap) {
|
|
|
66629
66757
|
});
|
|
66630
66758
|
}
|
|
66631
66759
|
//#endregion
|
|
66632
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
66760
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/markdown.js
|
|
66633
66761
|
/**
|
|
66634
66762
|
* Markdown-to-ANSI renderer over marked's token stream.
|
|
66635
66763
|
*
|
|
@@ -66944,7 +67072,7 @@ function padAligned(content, displayWidth, targetWidth, align) {
|
|
|
66944
67072
|
return content + " ".repeat(extra);
|
|
66945
67073
|
}
|
|
66946
67074
|
//#endregion
|
|
66947
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67075
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/cliHighlight.js
|
|
66948
67076
|
let cliHighlightPromise;
|
|
66949
67077
|
async function loadCliHighlight() {
|
|
66950
67078
|
try {
|
|
@@ -66967,7 +67095,7 @@ function getCliHighlightPromise() {
|
|
|
66967
67095
|
return cliHighlightPromise;
|
|
66968
67096
|
}
|
|
66969
67097
|
//#endregion
|
|
66970
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67098
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MarkdownTable.js
|
|
66971
67099
|
/** Accounts for parent indentation and terminal resize races (from Claude Code). */
|
|
66972
67100
|
const SAFETY_MARGIN = 4;
|
|
66973
67101
|
/** Minimum column width to prevent degenerate layouts */
|
|
@@ -67154,7 +67282,7 @@ function MarkdownTable({ token, highlight, forceWidth }) {
|
|
|
67154
67282
|
return (0, import_jsx_runtime.jsx)(Text, { children: tableLines.join("\n") });
|
|
67155
67283
|
}
|
|
67156
67284
|
//#endregion
|
|
67157
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67285
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Markdown.js
|
|
67158
67286
|
const TOKEN_CACHE_CAPACITY = 200;
|
|
67159
67287
|
const TOKEN_CACHE_CHAR_BUDGET = 2e5;
|
|
67160
67288
|
const TOKEN_CACHE_MAX_SOURCE_LENGTH = 2e4;
|
|
@@ -67263,7 +67391,7 @@ function MarkdownImpl({ children, dimColor = false, cacheTokens = true }) {
|
|
|
67263
67391
|
*/
|
|
67264
67392
|
const Markdown = import_react.memo(MarkdownImpl, (prev, next) => prev.children === next.children && prev.dimColor === next.dimColor && prev.cacheTokens === next.cacheTokens);
|
|
67265
67393
|
//#endregion
|
|
67266
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67394
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/PlanReviewPanel.js
|
|
67267
67395
|
/**
|
|
67268
67396
|
* The plan-review panel — Claude Code style exit-plan-mode decision card
|
|
67269
67397
|
* for the DSH user-interaction seam. plan-mode's `exit_plan_mode` tool asks
|
|
@@ -67585,7 +67713,7 @@ function PlanReviewPanel({ question, onAnswer, onCancel }) {
|
|
|
67585
67713
|
});
|
|
67586
67714
|
}
|
|
67587
67715
|
//#endregion
|
|
67588
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67716
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/listWindow.js
|
|
67589
67717
|
/**
|
|
67590
67718
|
* 焦点居中的列表窗口:长列表只渲染焦点附近的一段,保证焦点行始终可见。
|
|
67591
67719
|
* 瞬态面板走 OverlayAbove 零高度浮层后,超高部分会被 overflow 裁掉且焦点
|
|
@@ -67637,7 +67765,7 @@ function listWindow(heights, focusIndex, maxRows, gap = 0) {
|
|
|
67637
67765
|
}
|
|
67638
67766
|
}
|
|
67639
67767
|
//#endregion
|
|
67640
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
67768
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/questions/AskUserQuestionPanel.js
|
|
67641
67769
|
/**
|
|
67642
67770
|
* The questionnaire panel — Claude Code style ask-user-question UI for the
|
|
67643
67771
|
* DSH user-interaction seam. One question per panel (progress header, header
|
|
@@ -68231,7 +68359,7 @@ function AskUserQuestionPanel({ question, position, total, answered, initialDraf
|
|
|
68231
68359
|
});
|
|
68232
68360
|
}
|
|
68233
68361
|
//#endregion
|
|
68234
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68362
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/approvals/ApprovalPanel.js
|
|
68235
68363
|
/**
|
|
68236
68364
|
* The approval panel — Claude Code style permission prompt for the DSH
|
|
68237
68365
|
* approval seam (`ctx.approval`). One ask per panel: a permission-colored
|
|
@@ -68356,7 +68484,7 @@ function ApprovalPanel({ approval, background = false, onDecide }) {
|
|
|
68356
68484
|
});
|
|
68357
68485
|
}
|
|
68358
68486
|
//#endregion
|
|
68359
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68487
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Pane.js
|
|
68360
68488
|
/**
|
|
68361
68489
|
* A pane — a region below the prompt bounded by a colored top line with a
|
|
68362
68490
|
* one-row gap above and horizontal padding, mirroring Claude Code's
|
|
@@ -68378,7 +68506,7 @@ function Pane({ children, color }) {
|
|
|
68378
68506
|
});
|
|
68379
68507
|
}
|
|
68380
68508
|
//#endregion
|
|
68381
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68509
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/ListItem.js
|
|
68382
68510
|
/**
|
|
68383
68511
|
* A list item for selection UIs, mirroring Claude Code's
|
|
68384
68512
|
* design-system/ListItem.tsx: `❯` pointer for the focused row, `✓`
|
|
@@ -68475,7 +68603,7 @@ function flattenDeep(node) {
|
|
|
68475
68603
|
return node;
|
|
68476
68604
|
}
|
|
68477
68605
|
//#endregion
|
|
68478
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68606
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/HintLine.js
|
|
68479
68607
|
/**
|
|
68480
68608
|
* Localized shortcut-hint line: renders a `t('hint-*')` string, with the
|
|
68481
68609
|
* `**primary shortcut**` segment (the main action's key, wrapped in `**` in
|
|
@@ -68492,7 +68620,7 @@ function HintLine({ text }) {
|
|
|
68492
68620
|
}, index) : part) });
|
|
68493
68621
|
}
|
|
68494
68622
|
//#endregion
|
|
68495
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68623
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ExtensionDialog.js
|
|
68496
68624
|
/**
|
|
68497
68625
|
* The managed plugin dialog (`ctx.tuiDialogs`) — one panel rendering the
|
|
68498
68626
|
* store's current snapshot in the chat chrome (the slot approval/question
|
|
@@ -68752,7 +68880,7 @@ function InputDialog({ dialog, onDecide, onCancel }) {
|
|
|
68752
68880
|
});
|
|
68753
68881
|
}
|
|
68754
68882
|
//#endregion
|
|
68755
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68883
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-search-highlight.js
|
|
68756
68884
|
/**
|
|
68757
68885
|
* Set the search highlight query on the Ink instance. Non-empty → all
|
|
68758
68886
|
* visible occurrences are inverted on the next frame (SGR 7, screen-buffer
|
|
@@ -68784,7 +68912,7 @@ function useSearchHighlight() {
|
|
|
68784
68912
|
}, [ink]);
|
|
68785
68913
|
}
|
|
68786
68914
|
//#endregion
|
|
68787
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68915
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/hooks/use-terminal-title.js
|
|
68788
68916
|
/**
|
|
68789
68917
|
* Declaratively set the terminal tab/window title.
|
|
68790
68918
|
*
|
|
@@ -68807,7 +68935,7 @@ function useTerminalTitle(title) {
|
|
|
68807
68935
|
}, [title, writeRaw]);
|
|
68808
68936
|
}
|
|
68809
68937
|
//#endregion
|
|
68810
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
68938
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessions/format.js
|
|
68811
68939
|
/**
|
|
68812
68940
|
* Session browser formatting.
|
|
68813
68941
|
*
|
|
@@ -69056,7 +69184,7 @@ function projectName(cwd) {
|
|
|
69056
69184
|
return normalized.split("/").filter(Boolean).at(-1) ?? normalized;
|
|
69057
69185
|
}
|
|
69058
69186
|
//#endregion
|
|
69059
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69187
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/UserPromptMessage.js
|
|
69060
69188
|
/** User prompt row in the legacy CLI treatment: a full-width gray strip. */
|
|
69061
69189
|
function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
|
|
69062
69190
|
const { columns } = useTerminalSize();
|
|
@@ -69082,7 +69210,7 @@ function UserPromptMessage({ text, addMargin, isSelected = false, onClick }) {
|
|
|
69082
69210
|
});
|
|
69083
69211
|
}
|
|
69084
69212
|
//#endregion
|
|
69085
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69213
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantTextMessage.js
|
|
69086
69214
|
/**
|
|
69087
69215
|
* Assistant text message: bullet + markdown body (mirroring Claude Code's default branch).
|
|
69088
69216
|
*
|
|
@@ -69115,7 +69243,7 @@ function AssistantTextMessage({ text, addMargin, isSelected = false, isExpanded
|
|
|
69115
69243
|
});
|
|
69116
69244
|
}
|
|
69117
69245
|
//#endregion
|
|
69118
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69246
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/StreamingMarkdown.js
|
|
69119
69247
|
/**
|
|
69120
69248
|
* Renders markdown during streaming by splitting at the last top-level block
|
|
69121
69249
|
* boundary: everything before is stable (memoized, never re-parsed), only the
|
|
@@ -69305,7 +69433,7 @@ function StreamingMarkdown({ children, dimColor = false }) {
|
|
|
69305
69433
|
});
|
|
69306
69434
|
}
|
|
69307
69435
|
//#endregion
|
|
69308
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69436
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/spinnerUtils.js
|
|
69309
69437
|
/**
|
|
69310
69438
|
* Spinner 动画的通用工具集:平台相关的帧字符选择、RGB 颜色插值、
|
|
69311
69439
|
* HSL 色相转 RGB,以及 `rgb(...)` 颜色字符串的解析与记忆化。
|
|
@@ -69385,7 +69513,7 @@ function parseRGB(colorStr) {
|
|
|
69385
69513
|
return parsed;
|
|
69386
69514
|
}
|
|
69387
69515
|
//#endregion
|
|
69388
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69516
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/shimmer.js
|
|
69389
69517
|
/** Header blue-white ladder: brand → ice → pale → soft ice flash.
|
|
69390
69518
|
* FLASH stays visibly blue (never pure white) — the highlight reads as a
|
|
69391
69519
|
* mist-brightened crest, not a white strobe. */
|
|
@@ -69401,7 +69529,7 @@ const ICE = {
|
|
|
69401
69529
|
b: 255
|
|
69402
69530
|
};
|
|
69403
69531
|
//#endregion
|
|
69404
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69532
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantThinkingMessage.js
|
|
69405
69533
|
/** Preview body rows — a FIXED row count (kimicode-style constant-height
|
|
69406
69534
|
* ticker). Ink's truncate slices the whole string across newlines as one
|
|
69407
69535
|
* logical line, so a single joined Text collapses to 1-2 rows whenever
|
|
@@ -69514,7 +69642,7 @@ function AssistantThinkingMessage({ thinking, textFull, addMargin, verbose, stre
|
|
|
69514
69642
|
});
|
|
69515
69643
|
}
|
|
69516
69644
|
//#endregion
|
|
69517
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
69645
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ToolUseLoader.js
|
|
69518
69646
|
const CATEGORY_BY_TOOL = {
|
|
69519
69647
|
bash: "exec",
|
|
69520
69648
|
powershell: "exec",
|
|
@@ -70095,7 +70223,7 @@ var ArrayDiff = class extends Diff {
|
|
|
70095
70223
|
};
|
|
70096
70224
|
new ArrayDiff();
|
|
70097
70225
|
//#endregion
|
|
70098
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70226
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/cc/syntaxRuns.js
|
|
70099
70227
|
const ANSI16 = {
|
|
70100
70228
|
30: "rgb(0,0,0)",
|
|
70101
70229
|
31: "rgb(128,0,0)",
|
|
@@ -70180,7 +70308,7 @@ function syntaxThemeSignature(theme) {
|
|
|
70180
70308
|
return Object.values(SYNTAX_CLASS_TO_TOKEN).map((key) => palette[key] ?? "").join("|");
|
|
70181
70309
|
}
|
|
70182
70310
|
//#endregion
|
|
70183
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70311
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/smoothReveal.js
|
|
70184
70312
|
/**
|
|
70185
70313
|
* Smooth streaming reveal — decouples "text the provider has delivered" from
|
|
70186
70314
|
* "text the screen is showing" (the oh-my-pi `display.smoothStreaming` idea,
|
|
@@ -70426,7 +70554,7 @@ function revealLinesOf(key, total, options) {
|
|
|
70426
70554
|
return Math.min(existing.revealed, total);
|
|
70427
70555
|
}
|
|
70428
70556
|
//#endregion
|
|
70429
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70557
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SplitDiffView.js
|
|
70430
70558
|
/** Replace tabs so width math and alignment hold (pi convention). */
|
|
70431
70559
|
const expandTabs = (text) => text.replaceAll(" ", " ");
|
|
70432
70560
|
/**
|
|
@@ -70735,7 +70863,7 @@ function SplitDiffView({ diffs, width, maxRows, verbose, toolBackground = "none"
|
|
|
70735
70863
|
});
|
|
70736
70864
|
}
|
|
70737
70865
|
//#endregion
|
|
70738
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70866
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SyntaxText.js
|
|
70739
70867
|
/** Async nested Text renderer. Lexes the complete payload before splitting. */
|
|
70740
70868
|
function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, dimColor }) {
|
|
70741
70869
|
const [highlighter, setHighlighter] = import_react.useState(null);
|
|
@@ -70779,11 +70907,11 @@ function SyntaxText({ text, language, sourceText = text, lineIndex = 0, color, d
|
|
|
70779
70907
|
}, index)) });
|
|
70780
70908
|
}
|
|
70781
70909
|
//#endregion
|
|
70782
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
70910
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Tooltip.js
|
|
70783
70911
|
/**
|
|
70784
70912
|
* Tooltip hover system — the terminal equivalent of the HTML `title`
|
|
70785
70913
|
* attribute. Attach {@link useTooltip} props to any Box whose visible text
|
|
70786
|
-
* may be truncated (tool-call header paths,
|
|
70914
|
+
* may be truncated (tool-call header paths, session titles, status-line
|
|
70787
70915
|
* fields); after a ~600ms dwell the full content pops up in a floating card
|
|
70788
70916
|
* anchored at the pointer, and disappears the moment the pointer leaves.
|
|
70789
70917
|
*
|
|
@@ -70987,7 +71115,7 @@ function wrapTooltipContent(text, width) {
|
|
|
70987
71115
|
return rows;
|
|
70988
71116
|
}
|
|
70989
71117
|
//#endregion
|
|
70990
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71118
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/format.js
|
|
70991
71119
|
/**
|
|
70992
71120
|
* Trajectory formatting — durations, clocks, badges and heat.
|
|
70993
71121
|
*
|
|
@@ -71189,7 +71317,7 @@ function ledgerLayout(columns) {
|
|
|
71189
71317
|
};
|
|
71190
71318
|
}
|
|
71191
71319
|
//#endregion
|
|
71192
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71320
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useRevealVersion.js
|
|
71193
71321
|
/**
|
|
71194
71322
|
* Reveal-frame wakeup as a React hook — bumps once per advancing ~30fps
|
|
71195
71323
|
* scheduler tick so consumers re-run their render-phase cursor reads
|
|
@@ -71219,7 +71347,7 @@ function useRevealVersion(enabled = true) {
|
|
|
71219
71347
|
return version;
|
|
71220
71348
|
}
|
|
71221
71349
|
//#endregion
|
|
71222
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71350
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/AssistantToolUseMessage.js
|
|
71223
71351
|
/** Tool display names: DSH emits lowercase tool ids (`bash`); Claude Code
|
|
71224
71352
|
* shows capitalized names (`Bash`). Map the common ones, fall back to the
|
|
71225
71353
|
* id with its first letter uppercased. */
|
|
@@ -71755,7 +71883,7 @@ function AssistantToolUseMessage({ tool, addMargin, verbose, isSelected = false,
|
|
|
71755
71883
|
});
|
|
71756
71884
|
}
|
|
71757
71885
|
//#endregion
|
|
71758
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
71886
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/SubagentMessage.js
|
|
71759
71887
|
/** The waterfall window is a Kimi Code style constant-height region. */
|
|
71760
71888
|
const WATERFALL_ROWS = 3;
|
|
71761
71889
|
/** Card left padding + the `│ ` gutter prefix. */
|
|
@@ -71963,7 +72091,7 @@ function SubagentMessage({ subagent, addMargin, activityFrames, onClick }) {
|
|
|
71963
72091
|
});
|
|
71964
72092
|
}
|
|
71965
72093
|
//#endregion
|
|
71966
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72094
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Chat/JobCard.js
|
|
71967
72095
|
/** Card left padding + the `│ ` gutter prefix. */
|
|
71968
72096
|
const WATERFALL_GUTTER = 4;
|
|
71969
72097
|
/** Static status marker — deliberately NOT the animated activity-indicator
|
|
@@ -72116,7 +72244,7 @@ function JobCard({ job, addMargin, onClick }) {
|
|
|
72116
72244
|
});
|
|
72117
72245
|
}
|
|
72118
72246
|
//#endregion
|
|
72119
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72247
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/InterruptedByUser.js
|
|
72120
72248
|
/**
|
|
72121
72249
|
* The dim "interrupted" row shown when the user stops a turn, mirroring
|
|
72122
72250
|
* Claude Code's `InterruptedByUser.tsx`.
|
|
@@ -72131,7 +72259,7 @@ function InterruptedByUser() {
|
|
|
72131
72259
|
})] });
|
|
72132
72260
|
}
|
|
72133
72261
|
//#endregion
|
|
72134
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72262
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/gitCommitStats.js
|
|
72135
72263
|
/**
|
|
72136
72264
|
* 当月 AI 代码生成占比统计(移植自 chatcode-cli 的同名服务)。
|
|
72137
72265
|
*
|
|
@@ -72299,7 +72427,7 @@ function computeAiRatioPercent(records) {
|
|
|
72299
72427
|
return clampPercent(aiAdoptedTotal / addedTotal * 100);
|
|
72300
72428
|
}
|
|
72301
72429
|
//#endregion
|
|
72302
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72430
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useAiRatio.js
|
|
72303
72431
|
/**
|
|
72304
72432
|
* 「AI代码生成占比」数据源 Hook(移植自 chatcode-cli 的同名 Hook)。
|
|
72305
72433
|
*
|
|
@@ -72363,7 +72491,7 @@ function useAiRatio(enabled = true) {
|
|
|
72363
72491
|
};
|
|
72364
72492
|
}
|
|
72365
72493
|
//#endregion
|
|
72366
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72494
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useNotification.js
|
|
72367
72495
|
/**
|
|
72368
72496
|
* 「通知」数据源 Hook(移植自 chatcode-cli 的 LogoV2/FooterInfo 通知行)。
|
|
72369
72497
|
*
|
|
@@ -72400,7 +72528,7 @@ function useNotification() {
|
|
|
72400
72528
|
return { message };
|
|
72401
72529
|
}
|
|
72402
72530
|
//#endregion
|
|
72403
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72531
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/ink/truncateToWidth.js
|
|
72404
72532
|
/**
|
|
72405
72533
|
* Slice a string to at most `maxWidth` terminal cells, walking by code
|
|
72406
72534
|
* point so CJK wide characters never split mid-glyph. Assumes no ANSI in
|
|
@@ -72418,7 +72546,7 @@ function truncateToWidth(text, maxWidth) {
|
|
|
72418
72546
|
return out;
|
|
72419
72547
|
}
|
|
72420
72548
|
//#endregion
|
|
72421
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72549
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LogoV2.js
|
|
72422
72550
|
/** Main ChatCode CLI package version shown in the startup information panel. */
|
|
72423
72551
|
const VERSION = PRODUCT_VERSION;
|
|
72424
72552
|
const PRODUCT_LABEL = "chatcode-cli";
|
|
@@ -72689,7 +72817,7 @@ function LogoV2({ model, effort, cwd, whale = true, aiRatio, drift }) {
|
|
|
72689
72817
|
});
|
|
72690
72818
|
}
|
|
72691
72819
|
//#endregion
|
|
72692
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72820
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/messages/MessageMetadata.js
|
|
72693
72821
|
/**
|
|
72694
72822
|
* Transcript-mode metadata row: `HH:MM · model`, right-aligned above the
|
|
72695
72823
|
* assistant text, mirroring Claude Code's MessageTimestamp + MessageModel,
|
|
@@ -72711,7 +72839,7 @@ function MessageMetadata({ timestamp, model }) {
|
|
|
72711
72839
|
});
|
|
72712
72840
|
}
|
|
72713
72841
|
//#endregion
|
|
72714
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72842
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/narration.js
|
|
72715
72843
|
/**
|
|
72716
72844
|
* Strip the `⏵` self-narration line from assistant text. The
|
|
72717
72845
|
* dsh-working-activity narrate contract puts exactly one `⏵` line at the
|
|
@@ -72827,7 +72955,7 @@ function ellipsize(line, maxWidth) {
|
|
|
72827
72955
|
return `${out}…`;
|
|
72828
72956
|
}
|
|
72829
72957
|
//#endregion
|
|
72830
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
72958
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MessageList.js
|
|
72831
72959
|
/**
|
|
72832
72960
|
* Transcript rows rendered in the Claude Code visual language: user prompts
|
|
72833
72961
|
* on a grey bubble with a `❯` pointer, assistant text with a `●` bullet and
|
|
@@ -73645,7 +73773,7 @@ function LogoHeader({ model, effort, cwd, whale = true, skipIntro = false }) {
|
|
|
73645
73773
|
});
|
|
73646
73774
|
}
|
|
73647
73775
|
//#endregion
|
|
73648
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73776
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TimelineRail.js
|
|
73649
73777
|
/** ▴ / ▾ (U+25B4 / U+25BE — the small triangles; CP437-safe on ConHost too). */
|
|
73650
73778
|
const CHEVRON_UP = " ▴";
|
|
73651
73779
|
const CHEVRON_DOWN = " ▾";
|
|
@@ -73839,7 +73967,7 @@ function TimelineRail({ handle, turns, activeId, upId, downId, terminalWidth, ho
|
|
|
73839
73967
|
}) });
|
|
73840
73968
|
}
|
|
73841
73969
|
//#endregion
|
|
73842
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
73970
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ScrollbarGutter.js
|
|
73843
73971
|
/** Thumb glyph across the 2-col gutter: solid, clearly positional —
|
|
73844
73972
|
* deliberately distinct from the timeline's ━━ active tick. */
|
|
73845
73973
|
const THUMB = "██";
|
|
@@ -73955,7 +74083,7 @@ function ScrollbarGutter({ handle, terminalWidth }) {
|
|
|
73955
74083
|
}) });
|
|
73956
74084
|
}
|
|
73957
74085
|
//#endregion
|
|
73958
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74086
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/OverlayAbove.js
|
|
73959
74087
|
/**
|
|
73960
74088
|
* 瞬态面板的浮层容器:absolute 定位 + bottom:'100%' 把面板底边钉在锚点
|
|
73961
74089
|
* (父元素)顶边,向上覆盖转录尾部行,自身**不占布局高度**。
|
|
@@ -73988,7 +74116,7 @@ function OverlayAbove({ children, maxHeight }) {
|
|
|
73988
74116
|
});
|
|
73989
74117
|
}
|
|
73990
74118
|
//#endregion
|
|
73991
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74119
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/motion.js
|
|
73992
74120
|
/**
|
|
73993
74121
|
* Trajectory motion — five verbs, one shared clock, one hard rule.
|
|
73994
74122
|
*
|
|
@@ -74113,7 +74241,7 @@ function alert(tick, startTick) {
|
|
|
74113
74241
|
return Math.floor(age / 2) % 2 === 0 ? 1 : 0;
|
|
74114
74242
|
}
|
|
74115
74243
|
//#endregion
|
|
74116
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74244
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/effortIgnition.js
|
|
74117
74245
|
/** 三幕时间轴(ms):扫光全长、字样启动(波至中段)、字样渐亮、渐隐起止。边框扫光与输入行字样徽标共用。 */
|
|
74118
74246
|
const IGNITION_TIMELINE = {
|
|
74119
74247
|
sweepMs: 1e3,
|
|
@@ -74261,7 +74389,7 @@ function ignitionLineColors(options) {
|
|
|
74261
74389
|
return colors;
|
|
74262
74390
|
}
|
|
74263
74391
|
//#endregion
|
|
74264
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74392
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortChargeGlyph.js
|
|
74265
74393
|
/**
|
|
74266
74394
|
* EffortChargeGlyph — 输入提示前缀 `❯ ` 的最高档强调与充能。
|
|
74267
74395
|
*
|
|
@@ -74317,7 +74445,7 @@ function EffortChargeGlyph({ effort, levels, working }) {
|
|
|
74317
74445
|
});
|
|
74318
74446
|
}
|
|
74319
74447
|
//#endregion
|
|
74320
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74448
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortInputBorder.js
|
|
74321
74449
|
/**
|
|
74322
74450
|
* EffortInputBorder — 输入框层上的三幕点焰叠加(对齐 Codex 的完整
|
|
74323
74451
|
* 语义:光扫过、档位字样浮现、整体渐隐)。
|
|
@@ -74452,7 +74580,7 @@ function EffortInputBorder({ effort, levels, columns, onLight, idleColor, topRig
|
|
|
74452
74580
|
});
|
|
74453
74581
|
}
|
|
74454
74582
|
//#endregion
|
|
74455
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74583
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortTierBadge.js
|
|
74456
74584
|
/**
|
|
74457
74585
|
* EffortTierBadge — 输入行尾的档位字样徽标:三幕点焰的第二幕载体
|
|
74458
74586
|
* (与 EffortInputBorder 的双框扫光同一时间轴、同一触发),切到最高
|
|
@@ -74535,7 +74663,7 @@ function EffortTierBadge({ effort, levels, onLight, columns, leadingColumns }) {
|
|
|
74535
74663
|
});
|
|
74536
74664
|
}
|
|
74537
74665
|
//#endregion
|
|
74538
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
74666
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/clipboard.js
|
|
74539
74667
|
/**
|
|
74540
74668
|
* Cross-platform clipboard access for Ctrl+V paste. The TUI runs in raw
|
|
74541
74669
|
* mode, so the terminal never performs its own paste for Ctrl+V — the key
|
|
@@ -75064,7 +75192,7 @@ function formatClipboardInsert(content) {
|
|
|
75064
75192
|
return content.text.replace(/\r\n/g, "\n").replace(/\r/g, "\n");
|
|
75065
75193
|
}
|
|
75066
75194
|
//#endregion
|
|
75067
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75195
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/droppedFile.js
|
|
75068
75196
|
/**
|
|
75069
75197
|
* Terminal drag-and-drop normalization.
|
|
75070
75198
|
*
|
|
@@ -75123,7 +75251,7 @@ function droppedImageMention(raw, baseDir) {
|
|
|
75123
75251
|
return formatImageReference(path);
|
|
75124
75252
|
}
|
|
75125
75253
|
//#endregion
|
|
75126
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75254
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/externalEditor.js
|
|
75127
75255
|
/**
|
|
75128
75256
|
* External editor round-trip for the prompt input (issue #123): Ctrl+G dumps
|
|
75129
75257
|
* the current draft into a temp file, hands the terminal to `$VISUAL` /
|
|
@@ -75401,7 +75529,7 @@ async function editInExternalEditor(draft) {
|
|
|
75401
75529
|
}
|
|
75402
75530
|
}
|
|
75403
75531
|
//#endregion
|
|
75404
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75532
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptEditor.js
|
|
75405
75533
|
let editorNode = null;
|
|
75406
75534
|
const listeners = /* @__PURE__ */ new Set();
|
|
75407
75535
|
/** Publish (or withdraw, with null) the fullscreen editor subtree. */
|
|
@@ -75485,7 +75613,7 @@ function EditorButton({ label, hint, onClick, primary, accent }) {
|
|
|
75485
75613
|
});
|
|
75486
75614
|
}
|
|
75487
75615
|
//#endregion
|
|
75488
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75616
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/history.js
|
|
75489
75617
|
const HISTORY_DIR = DATA_DIR;
|
|
75490
75618
|
const HISTORY_FILE = join(HISTORY_DIR, "history.jsonl");
|
|
75491
75619
|
const HISTORY_LOCK = `${HISTORY_FILE}.lock`;
|
|
@@ -75619,7 +75747,7 @@ function historyEntryId(entry, index = 0) {
|
|
|
75619
75747
|
return createHash("sha1").update(`${entry.text}\0${entry.ts}\0${index}`).digest("hex").slice(0, 12);
|
|
75620
75748
|
}
|
|
75621
75749
|
//#endregion
|
|
75622
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75750
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SuggestionCard.js
|
|
75623
75751
|
/**
|
|
75624
75752
|
* `/` 命令菜单与 `@` 文件菜单共用的圆角卡片外壳(与输入框 EffortInputBorder
|
|
75625
75753
|
* 同款 ╭╮╰╯ 视觉语言):
|
|
@@ -75751,7 +75879,7 @@ function splitQueryMatch(name, query) {
|
|
|
75751
75879
|
return startsWith(0) ?? (lastSpace >= 0 ? startsWith(lastSpace + 1) : null) ?? startsWith(name.lastIndexOf("/") + 1);
|
|
75752
75880
|
}
|
|
75753
75881
|
//#endregion
|
|
75754
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75882
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/CommandSuggestions.js
|
|
75755
75883
|
/**
|
|
75756
75884
|
* The slash-command suggestion overlay, mirroring Claude Code's
|
|
75757
75885
|
* `PromptInputFooterSuggestions.tsx` (command layout only) wrapped in the
|
|
@@ -75831,7 +75959,7 @@ function CommandSuggestions({ commands, selectedIndex, columns, query = "", acce
|
|
|
75831
75959
|
});
|
|
75832
75960
|
}
|
|
75833
75961
|
//#endregion
|
|
75834
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
75962
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/FileSuggestions.js
|
|
75835
75963
|
/**
|
|
75836
75964
|
* The `@` file-completion overlay in CC's suggestion style, wrapped in the
|
|
75837
75965
|
* shared rounded `SuggestionCard` (与 `/` 命令菜单同一视觉语言):
|
|
@@ -75927,7 +76055,7 @@ function FileSuggestions({ files, selectedIndex, columns, query = "", maxVisible
|
|
|
75927
76055
|
});
|
|
75928
76056
|
}
|
|
75929
76057
|
//#endregion
|
|
75930
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
76058
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HelpMenu.js
|
|
75931
76059
|
/**
|
|
75932
76060
|
* The `?` help menu, mirroring Claude Code's `PromptInputHelpMenu.tsx`
|
|
75933
76061
|
* (three-column shortcut layout, trimmed to the keys dsh-tui actually binds).
|
|
@@ -76118,7 +76246,7 @@ function HelpCommandRow({ command, onPick }) {
|
|
|
76118
76246
|
});
|
|
76119
76247
|
}
|
|
76120
76248
|
//#endregion
|
|
76121
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
76249
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PromptInput.js
|
|
76122
76250
|
const HISTORY_LIMIT = 50;
|
|
76123
76251
|
/**
|
|
76124
76252
|
* Paste fold (CC-style collapse with a visible preview, no black box):
|
|
@@ -78541,7 +78669,7 @@ function wordSelectionAt(text, offset, lo, hi) {
|
|
|
78541
78669
|
};
|
|
78542
78670
|
}
|
|
78543
78671
|
//#endregion
|
|
78544
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78672
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/GoalTodoPanel.js
|
|
78545
78673
|
/** Maximum todo rows shown before the overflow line. */
|
|
78546
78674
|
const MAX_TODOS = 8;
|
|
78547
78675
|
const PHASE_LABEL = {
|
|
@@ -78785,7 +78913,7 @@ function GoalTodoPanel({ channel, collapsed = false, onToggle }) {
|
|
|
78785
78913
|
});
|
|
78786
78914
|
}
|
|
78787
78915
|
//#endregion
|
|
78788
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78916
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/AutoRecapRow.js
|
|
78789
78917
|
/**
|
|
78790
78918
|
* Auto-recap row (`dsh-tui.recapOnOpen` setting): a quiet, dim recap shown
|
|
78791
78919
|
* at the bottom of the transcript after an automatic summary on session
|
|
@@ -78865,7 +78993,7 @@ function summarizeLoadedContext(context) {
|
|
|
78865
78993
|
return parts.join(" · ");
|
|
78866
78994
|
}
|
|
78867
78995
|
//#endregion
|
|
78868
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
78996
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LoadedContextPanel.js
|
|
78869
78997
|
/** One named entry (section or dynamic context) with its full text. */
|
|
78870
78998
|
function Entry({ entry }) {
|
|
78871
78999
|
return (0, import_jsx_runtime.jsxs)(ThemedBox, {
|
|
@@ -79002,7 +79130,7 @@ function LoadedContextPanel({ context, open, onToggle }) {
|
|
|
79002
79130
|
});
|
|
79003
79131
|
}
|
|
79004
79132
|
//#endregion
|
|
79005
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79133
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/MoonPhaseSpinner.js
|
|
79006
79134
|
/**
|
|
79007
79135
|
* Terminal-safe construction cycle derived from the supplied China Unicom
|
|
79008
79136
|
* knot mark. Every frame is one display cell, unlike emoji on mixed terminals.
|
|
@@ -79034,7 +79162,7 @@ function UnicomKnotSpinner({ time }) {
|
|
|
79034
79162
|
});
|
|
79035
79163
|
}
|
|
79036
79164
|
//#endregion
|
|
79037
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79165
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityLine.js
|
|
79038
79166
|
/**
|
|
79039
79167
|
* Context-pressure percentage (0–100) from the last usage snapshot, or
|
|
79040
79168
|
* undefined when unknown — shared by the spinner-line and status-line
|
|
@@ -79106,7 +79234,7 @@ function ActivityLine({ activity, activityFrames, warnPct, warnDanger, suffix })
|
|
|
79106
79234
|
});
|
|
79107
79235
|
}
|
|
79108
79236
|
//#endregion
|
|
79109
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79237
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/guards.js
|
|
79110
79238
|
/**
|
|
79111
79239
|
* Structural guards for the session events the trajectory projection reads.
|
|
79112
79240
|
*
|
|
@@ -79330,7 +79458,7 @@ function readTodos(data) {
|
|
|
79330
79458
|
};
|
|
79331
79459
|
}
|
|
79332
79460
|
//#endregion
|
|
79333
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79461
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/types.js
|
|
79334
79462
|
/**
|
|
79335
79463
|
* Trajectory projection — the data contract shared by the adapter-side fold
|
|
79336
79464
|
* and the UI-side scene (issue #80 evolution).
|
|
@@ -79397,7 +79525,7 @@ function previewText(raw, limit) {
|
|
|
79397
79525
|
return `${flat.slice(0, limit)}…`;
|
|
79398
79526
|
}
|
|
79399
79527
|
//#endregion
|
|
79400
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
79528
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/projection.js
|
|
79401
79529
|
/**
|
|
79402
79530
|
* Trajectory projection — folding the session event log into ledger nodes.
|
|
79403
79531
|
*
|
|
@@ -79976,7 +80104,7 @@ function extendTrajectory(previous, events) {
|
|
|
79976
80104
|
};
|
|
79977
80105
|
}
|
|
79978
80106
|
//#endregion
|
|
79979
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80107
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/aggregate.js
|
|
79980
80108
|
/**
|
|
79981
80109
|
* Trajectory aggregate — the hotspot view's data and the session totals.
|
|
79982
80110
|
*
|
|
@@ -80197,7 +80325,7 @@ function modelTiming(timing) {
|
|
|
80197
80325
|
};
|
|
80198
80326
|
}
|
|
80199
80327
|
//#endregion
|
|
80200
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80328
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/inspect.js
|
|
80201
80329
|
/**
|
|
80202
80330
|
* Inspector detail — full content, resolved on demand.
|
|
80203
80331
|
*
|
|
@@ -80357,7 +80485,7 @@ function inspectNode(node, events) {
|
|
|
80357
80485
|
};
|
|
80358
80486
|
}
|
|
80359
80487
|
//#endregion
|
|
80360
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80488
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/trajectory/wave.js
|
|
80361
80489
|
/**
|
|
80362
80490
|
* Wave band projection — the whole session compressed onto one row of glyphs.
|
|
80363
80491
|
*
|
|
@@ -80530,7 +80658,7 @@ function columnOfIndex(band, ledgerIndex) {
|
|
|
80530
80658
|
return 0;
|
|
80531
80659
|
}
|
|
80532
80660
|
//#endregion
|
|
80533
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80661
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/MiniWake.js
|
|
80534
80662
|
/**
|
|
80535
80663
|
* The mini wake — the whole session as a dozen glyphs in the status line.
|
|
80536
80664
|
*
|
|
@@ -80633,7 +80761,7 @@ function toHex$1(colour) {
|
|
|
80633
80761
|
return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
|
|
80634
80762
|
}
|
|
80635
80763
|
//#endregion
|
|
80636
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
80764
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusMetrics.js
|
|
80637
80765
|
/**
|
|
80638
80766
|
* Status-line metric renderers, ported from two pi extensions:
|
|
80639
80767
|
* - `pi-nano-context`: segmented context progress bar (morandi pastel
|
|
@@ -80909,7 +81037,7 @@ function tpsStats(samples, nowMs) {
|
|
|
80909
81037
|
};
|
|
80910
81038
|
}
|
|
80911
81039
|
//#endregion
|
|
80912
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81040
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ContextBarView.js
|
|
80913
81041
|
/** Free-segment colors, mirroring StatusMetrics' dark-theme defaults. */
|
|
80914
81042
|
const FREE_FILL = "#E8E8E8";
|
|
80915
81043
|
const FREE_TEXT = "#4A4A4A";
|
|
@@ -80976,7 +81104,7 @@ function ContextBarView({ segments, usedTokens, contextWindow, width, colors, on
|
|
|
80976
81104
|
});
|
|
80977
81105
|
}
|
|
80978
81106
|
//#endregion
|
|
80979
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81107
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/chatCodeTokenTrend.js
|
|
80980
81108
|
/**
|
|
80981
81109
|
* ChatCode 今日总 Token 消耗量查询(移植自 chatcode-cli 的 chatCodeTokenTrend)。
|
|
80982
81110
|
*
|
|
@@ -81051,7 +81179,7 @@ async function fetchTodayTotalTokens(post, signal) {
|
|
|
81051
81179
|
}
|
|
81052
81180
|
}
|
|
81053
81181
|
//#endregion
|
|
81054
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81182
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useTodayTotalTokens.js
|
|
81055
81183
|
/**
|
|
81056
81184
|
* 「今日总Token消耗」数据源 Hook(移植自 chatcode-cli 的 useTokenDashboard)。
|
|
81057
81185
|
*
|
|
@@ -81083,7 +81211,7 @@ function useTodayTotalTokens(enabled = true) {
|
|
|
81083
81211
|
return { totalTokens };
|
|
81084
81212
|
}
|
|
81085
81213
|
//#endregion
|
|
81086
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81214
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TokenDashboard.js
|
|
81087
81215
|
const BAR_WIDTH = 14;
|
|
81088
81216
|
/** Yuanjing-compatible percentage label centered inside a fixed-width bar. */
|
|
81089
81217
|
function LabeledBar({ ratio, percent }) {
|
|
@@ -81167,7 +81295,7 @@ function TokenDashboard({ todayTokens, usedTokens, contextWindow, compact = fals
|
|
|
81167
81295
|
});
|
|
81168
81296
|
}
|
|
81169
81297
|
//#endregion
|
|
81170
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
81298
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/StatusLine.js
|
|
81171
81299
|
/** Stable fallback for stubbed channels: verify/repro harnesses render the
|
|
81172
81300
|
* real Chat with partial channel literals that predate the jobs field. */
|
|
81173
81301
|
const NO_BACKGROUND_JOBS = [];
|
|
@@ -82025,7 +82153,7 @@ const fallbackSymbols = {
|
|
|
82025
82153
|
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
|
|
82026
82154
|
Object.entries(specialMainSymbols);
|
|
82027
82155
|
//#endregion
|
|
82028
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82156
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/Byline.js
|
|
82029
82157
|
/**
|
|
82030
82158
|
* Joins children with a middot separator (" · ") for inline metadata display
|
|
82031
82159
|
* (in the Claude Code visual language). Automatically filters out
|
|
@@ -82041,7 +82169,7 @@ function Byline({ children }) {
|
|
|
82041
82169
|
}), child] }, (0, import_react.isValidElement)(child) ? child.key ?? index : index)) });
|
|
82042
82170
|
}
|
|
82043
82171
|
//#endregion
|
|
82044
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82172
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/GlimmerMessage.js
|
|
82045
82173
|
const ERROR_RED$1 = {
|
|
82046
82174
|
r: 171,
|
|
82047
82175
|
g: 43,
|
|
@@ -82131,7 +82259,7 @@ function GlimmerMessage({ message, mode, messageColor, glimmerIndex, flashOpacit
|
|
|
82131
82259
|
})] });
|
|
82132
82260
|
}
|
|
82133
82261
|
//#endregion
|
|
82134
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82262
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerGlyph.js
|
|
82135
82263
|
const DEFAULT_CHARACTERS = getDefaultCharacters();
|
|
82136
82264
|
const SPINNER_FRAMES$1 = [...DEFAULT_CHARACTERS, ...[...DEFAULT_CHARACTERS].reverse()];
|
|
82137
82265
|
const REDUCED_MOTION_DOT = "●";
|
|
@@ -82192,7 +82320,7 @@ function SpinnerGlyph({ frame, messageColor, stalledIntensity = 0, reducedMotion
|
|
|
82192
82320
|
});
|
|
82193
82321
|
}
|
|
82194
82322
|
//#endregion
|
|
82195
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82323
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/useStalledAnimation.js
|
|
82196
82324
|
/**
|
|
82197
82325
|
* Tracks the transition to red when tokens stop flowing (mirroring Claude Code's `Spinner/useStalledAnimation.ts`). Driven by the parent's animation
|
|
82198
82326
|
* clock time instead of independent intervals, so it slows down when the
|
|
@@ -82249,7 +82377,7 @@ function useStalledAnimation(time, currentResponseLength, hasActiveTools = false
|
|
|
82249
82377
|
};
|
|
82250
82378
|
}
|
|
82251
82379
|
//#endregion
|
|
82252
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82380
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Spinner/SpinnerAnimationRow.js
|
|
82253
82381
|
const SEP_WIDTH = stringWidth$1(" · ");
|
|
82254
82382
|
const THINKING_BARE_WIDTH = stringWidth$1("thinking");
|
|
82255
82383
|
const SHOW_TOKENS_AFTER_MS = 3e4;
|
|
@@ -82416,7 +82544,7 @@ function SpinnerModeGlyph({ mode }) {
|
|
|
82416
82544
|
}
|
|
82417
82545
|
}
|
|
82418
82546
|
//#endregion
|
|
82419
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82547
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkingSpinner.js
|
|
82420
82548
|
/**
|
|
82421
82549
|
* The working spinner block shown between the transcript and the prompt
|
|
82422
82550
|
* input while a turn is in flight. Mirrors Claude Code's `Spinner.tsx`
|
|
@@ -82486,7 +82614,7 @@ function useThinkingStatus(isThinking) {
|
|
|
82486
82614
|
return thinkingStatus;
|
|
82487
82615
|
}
|
|
82488
82616
|
//#endregion
|
|
82489
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82617
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ModelPicker.js
|
|
82490
82618
|
/**
|
|
82491
82619
|
* Model picker in the CC ModelPicker style: a permission-colored Pane with
|
|
82492
82620
|
* the rows as Select entries (❯ focus pointer, ✓ on the active row,
|
|
@@ -82546,7 +82674,7 @@ function ModelPicker(props) {
|
|
|
82546
82674
|
});
|
|
82547
82675
|
}
|
|
82548
82676
|
//#endregion
|
|
82549
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82677
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PluginSceneBoundary.js
|
|
82550
82678
|
/**
|
|
82551
82679
|
* Error boundary for plugin scenes (dsh-tui-scenes). A scene component is
|
|
82552
82680
|
* third-party code rendered inside Chat's tree: without a boundary a render
|
|
@@ -82572,7 +82700,7 @@ var PluginSceneBoundary = class extends import_react.Component {
|
|
|
82572
82700
|
}
|
|
82573
82701
|
};
|
|
82574
82702
|
//#endregion
|
|
82575
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82703
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/design-system/LoadingState.js
|
|
82576
82704
|
const SPINNER_FRAMES = [...getDefaultCharacters(), ...[...getDefaultCharacters()].reverse()];
|
|
82577
82705
|
/**
|
|
82578
82706
|
* A spinner with a loading message for async operations, mirroring Claude Code's design-system/LoadingState.tsx (using the small animated glyph).
|
|
@@ -82603,7 +82731,7 @@ function LoadingState({ message, bold = false, dimColor = false, subtitle }) {
|
|
|
82603
82731
|
});
|
|
82604
82732
|
}
|
|
82605
82733
|
//#endregion
|
|
82606
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82734
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SkillsPicker.js
|
|
82607
82735
|
/** 来源桶 → 本地化标签(未知桶原样显示,SkillSource 对自定义桶开放)。 */
|
|
82608
82736
|
function sourceLabel(source) {
|
|
82609
82737
|
switch (source) {
|
|
@@ -82681,7 +82809,7 @@ function SkillsPickerLoading() {
|
|
|
82681
82809
|
});
|
|
82682
82810
|
}
|
|
82683
82811
|
//#endregion
|
|
82684
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82812
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SearchBox.js
|
|
82685
82813
|
/**
|
|
82686
82814
|
* Window a single-line query around the caret so the visible slice fits
|
|
82687
82815
|
* `avail` display cells (CJK display width, code-point safe — `[...s]`
|
|
@@ -82819,7 +82947,7 @@ function SearchBox({ query, placeholder = "Search…", isFocused, isTerminalFocu
|
|
|
82819
82947
|
});
|
|
82820
82948
|
}
|
|
82821
82949
|
//#endregion
|
|
82822
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
82950
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionListRow.js
|
|
82823
82951
|
/**
|
|
82824
82952
|
* One session in the browser's list: a title line and a metadata line.
|
|
82825
82953
|
*
|
|
@@ -82900,7 +83028,7 @@ function SessionListRow({ session, width, depth, focused, pinned, now, onClick,
|
|
|
82900
83028
|
});
|
|
82901
83029
|
}
|
|
82902
83030
|
//#endregion
|
|
82903
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
83031
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/SessionPreview.js
|
|
82904
83032
|
/** Role marker and colour for a preview entry. */
|
|
82905
83033
|
const ROLE = {
|
|
82906
83034
|
user: {
|
|
@@ -82991,7 +83119,7 @@ function SessionPreview({ session, entries, loading, width, height, home, now })
|
|
|
82991
83119
|
});
|
|
82992
83120
|
}
|
|
82993
83121
|
//#endregion
|
|
82994
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
83122
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/sessions/WorkspaceListRow.js
|
|
82995
83123
|
/** One two-line working-directory choice in the /resume browser. */
|
|
82996
83124
|
function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width, focused, selected, home, now, onClick }) {
|
|
82997
83125
|
const [hovered, setHovered] = (0, import_react.useState)(false);
|
|
@@ -83036,7 +83164,7 @@ function WorkspaceListRow({ workspace, all, totalProjects, totalSessions, width,
|
|
|
83036
83164
|
});
|
|
83037
83165
|
}
|
|
83038
83166
|
//#endregion
|
|
83039
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
83167
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/sessionPins.js
|
|
83040
83168
|
/**
|
|
83041
83169
|
* Pinned sessions for the `/resume` browser, kept at
|
|
83042
83170
|
* `~/.chatcode-cli/tui/session-pins.json` (a JSON array of session ids) so the pins
|
|
@@ -83185,7 +83313,7 @@ function setSessionPinned(id, pinned, dir = DATA_DIR) {
|
|
|
83185
83313
|
}
|
|
83186
83314
|
}
|
|
83187
83315
|
//#endregion
|
|
83188
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
83316
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionBrowser.js
|
|
83189
83317
|
/**
|
|
83190
83318
|
* Rows the layout cannot do without: the header, the four-row scope/search
|
|
83191
83319
|
* card, the notice slot, and the hints. Everything else yields before these.
|
|
@@ -84185,7 +84313,7 @@ function SessionBrowser({ channel, home, sameProject, onClose }) {
|
|
|
84185
84313
|
});
|
|
84186
84314
|
}
|
|
84187
84315
|
//#endregion
|
|
84188
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
84316
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/SessionTree.js
|
|
84189
84317
|
/** Local HH:MM (or MM/DD HH:MM when older than this year). */
|
|
84190
84318
|
function formatTime(at, now) {
|
|
84191
84319
|
const date = new Date(at);
|
|
@@ -84941,7 +85069,7 @@ function PreviewPane({ entry, meta, width, height, liveSessionId, now, compact }
|
|
|
84941
85069
|
});
|
|
84942
85070
|
}
|
|
84943
85071
|
//#endregion
|
|
84944
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85072
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Settings.js
|
|
84945
85073
|
/** Pick the provider-owned translation for the active language. */
|
|
84946
85074
|
function pick(text, descriptions) {
|
|
84947
85075
|
return descriptions?.[getLang()] ?? text;
|
|
@@ -85766,7 +85894,7 @@ function Settings({ channel, onClose, initialGroup }) {
|
|
|
85766
85894
|
});
|
|
85767
85895
|
}
|
|
85768
85896
|
//#endregion
|
|
85769
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85897
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspacePicker.js
|
|
85770
85898
|
const WINDOW$1 = 8;
|
|
85771
85899
|
/** `/workspace` target picker contributed by local and optional providers. */
|
|
85772
85900
|
function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
|
|
@@ -85804,7 +85932,7 @@ function WorkspacePicker({ targets, focusIndex, currentCwd, onPick }) {
|
|
|
85804
85932
|
});
|
|
85805
85933
|
}
|
|
85806
85934
|
//#endregion
|
|
85807
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85935
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/Select.js
|
|
85808
85936
|
/**
|
|
85809
85937
|
* A single-choice select list in the CC CustomSelect style (ported visual:
|
|
85810
85938
|
* ListItem rows with ❯ focus pointer, ✓ selected checkmark, descriptions,
|
|
@@ -85831,7 +85959,7 @@ function Select({ options, focusIndex, selectedValue, visibleOptionCount = 5, on
|
|
|
85831
85959
|
});
|
|
85832
85960
|
}
|
|
85833
85961
|
//#endregion
|
|
85834
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
85962
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceMenuPicker.js
|
|
85835
85963
|
/**
|
|
85836
85964
|
* Bare `/workspace` action menu: the built-in subcommands (resume / rename /
|
|
85837
85965
|
* open) plus any dynamically registered workspace extensions. Enter runs the
|
|
@@ -85872,7 +86000,7 @@ function WorkspaceMenuPicker({ options, focusIndex, onPick }) {
|
|
|
85872
86000
|
});
|
|
85873
86001
|
}
|
|
85874
86002
|
//#endregion
|
|
85875
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86003
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/WorkspaceFlowPicker.js
|
|
85876
86004
|
const WINDOW = 8;
|
|
85877
86005
|
/** Generic nested choice surface returned by a workspace provider command. */
|
|
85878
86006
|
function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input = null, onPick }) {
|
|
@@ -85930,7 +86058,7 @@ function WorkspaceFlowPicker({ title, choices, focusIndex, busy = false, input =
|
|
|
85930
86058
|
});
|
|
85931
86059
|
}
|
|
85932
86060
|
//#endregion
|
|
85933
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86061
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ActivityPicker.js
|
|
85934
86062
|
/**
|
|
85935
86063
|
* Working-activity indicator picker in the CC ModelPicker style (ported
|
|
85936
86064
|
* from the pi extension's `/activity` interactive select): a
|
|
@@ -85972,7 +86100,7 @@ function ActivityPicker({ focusIndex, currentPreset, onPick }) {
|
|
|
85972
86100
|
});
|
|
85973
86101
|
}
|
|
85974
86102
|
//#endregion
|
|
85975
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86103
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ColorPicker.js
|
|
85976
86104
|
/**
|
|
85977
86105
|
* Session accent color picker (bare `/color`): a permission-colored Pane
|
|
85978
86106
|
* listing the whole palette with a colored swatch per row, `❯` focus
|
|
@@ -86016,7 +86144,7 @@ function ColorPicker({ focusIndex, currentColor, onPick }) {
|
|
|
86016
86144
|
});
|
|
86017
86145
|
}
|
|
86018
86146
|
//#endregion
|
|
86019
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86147
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/EffortSlider.js
|
|
86020
86148
|
/**
|
|
86021
86149
|
* Reasoning-effort slider (`/effort`): a rheostat row of the live route's
|
|
86022
86150
|
* adapter-owned levels in adapter order, ←/→ moving focus (each move applies
|
|
@@ -86075,7 +86203,7 @@ function EffortSlider({ options, focusIndex, currentId, onPick }) {
|
|
|
86075
86203
|
});
|
|
86076
86204
|
}
|
|
86077
86205
|
//#endregion
|
|
86078
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86206
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PresetPicker.js
|
|
86079
86207
|
/**
|
|
86080
86208
|
* Agent-preset picker (issue #8) in the CC ModelPicker style — same chrome
|
|
86081
86209
|
* as the ActivityPicker: a permission-colored Pane listing every roster
|
|
@@ -86119,7 +86247,7 @@ function PresetPicker({ presets, focusIndex, currentPreset, onPick }) {
|
|
|
86119
86247
|
});
|
|
86120
86248
|
}
|
|
86121
86249
|
//#endregion
|
|
86122
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86250
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PermissionsPicker.js
|
|
86123
86251
|
/**
|
|
86124
86252
|
* `/permission` sandbox-preset picker. The command itself is registered by
|
|
86125
86253
|
* the harness side (dsh-sandbox-policy / dsh-base permission-presets row);
|
|
@@ -86166,7 +86294,7 @@ function PermissionsPicker({ options, focusIndex, currentValue, cwd, onPick }) {
|
|
|
86166
86294
|
});
|
|
86167
86295
|
}
|
|
86168
86296
|
//#endregion
|
|
86169
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86297
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/PlanPicker.js
|
|
86170
86298
|
/**
|
|
86171
86299
|
* `/plan` on/off picker. The command itself is registered by dsh-plan-mode
|
|
86172
86300
|
* on the harness side; bare `/plan` opens this picker (with the current
|
|
@@ -86211,7 +86339,7 @@ function PlanPicker({ focusIndex, currentOn, onPick }) {
|
|
|
86211
86339
|
});
|
|
86212
86340
|
}
|
|
86213
86341
|
//#endregion
|
|
86214
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86342
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/LangPicker.js
|
|
86215
86343
|
/**
|
|
86216
86344
|
* `/lang` en/zh picker: bare `/lang` opens this picker (the current language
|
|
86217
86345
|
* marked) and Enter applies the choice through the same path as `/lang <id>`.
|
|
@@ -86250,7 +86378,7 @@ function LangPicker({ focusIndex, currentLang, onPick }) {
|
|
|
86250
86378
|
});
|
|
86251
86379
|
}
|
|
86252
86380
|
//#endregion
|
|
86253
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86381
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThemePicker.js
|
|
86254
86382
|
/** One double-block swatch character per preview key, in a row. */
|
|
86255
86383
|
const SWATCH = "██";
|
|
86256
86384
|
/** Theme keys previewed in the picker, chosen for visual contrast. */
|
|
@@ -86336,7 +86464,7 @@ function ThemePicker({ focusIndex, currentTheme, themeHost, onPick }) {
|
|
|
86336
86464
|
});
|
|
86337
86465
|
}
|
|
86338
86466
|
//#endregion
|
|
86339
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86467
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ThinkingToggle.js
|
|
86340
86468
|
/**
|
|
86341
86469
|
* The `/thinking` display dialog: a permission-colored Pane with a bold
|
|
86342
86470
|
* title, the Shown/Hidden select, and the Enter/Esc hint line.
|
|
@@ -86385,7 +86513,7 @@ function ThinkingToggle({ currentValue, focusIndex, onPick }) {
|
|
|
86385
86513
|
});
|
|
86386
86514
|
}
|
|
86387
86515
|
//#endregion
|
|
86388
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86516
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/HistorySearchDialog.js
|
|
86389
86517
|
/**
|
|
86390
86518
|
* The ctrl+r history search dialog, in the shape of Claude Code's
|
|
86391
86519
|
* HistorySearchDialog/FuzzyPicker: a permission-colored Pane with a bold
|
|
@@ -86448,7 +86576,7 @@ function formatRelativeAge(ts) {
|
|
|
86448
86576
|
return t("time-days-ago", { n: Math.floor(elapsed / 864e5) });
|
|
86449
86577
|
}
|
|
86450
86578
|
//#endregion
|
|
86451
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86579
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RewindPicker.js
|
|
86452
86580
|
/**
|
|
86453
86581
|
* Double-Esc rewind picker (CC's "Double-tap esc to rewind the code and/or
|
|
86454
86582
|
* conversation to a previous point in time"): lists the user's past messages
|
|
@@ -86585,7 +86713,7 @@ function preview(text) {
|
|
|
86585
86713
|
return flat.length <= 80 ? flat : `${flat.slice(0, 80)}…`;
|
|
86586
86714
|
}
|
|
86587
86715
|
//#endregion
|
|
86588
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86716
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/BtwPanel.js
|
|
86589
86717
|
/**
|
|
86590
86718
|
* /btw side-question panel (CC's btw.tsx, inline-pane form like the local
|
|
86591
86719
|
* pickers): title line with the question, a scrollable answer body (error /
|
|
@@ -86669,7 +86797,7 @@ function BtwPanel({ question, answer, error, streaming, onClose, onCopy }) {
|
|
|
86669
86797
|
});
|
|
86670
86798
|
}
|
|
86671
86799
|
//#endregion
|
|
86672
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86800
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ReleaseNotesPanel.js
|
|
86673
86801
|
function ReleaseNotesPanel({ release, onClose }) {
|
|
86674
86802
|
const scrollRef = import_react.useRef(null);
|
|
86675
86803
|
const { rows } = useTerminalSize();
|
|
@@ -86714,7 +86842,7 @@ function ReleaseNotesPanel({ release, onClose }) {
|
|
|
86714
86842
|
});
|
|
86715
86843
|
}
|
|
86716
86844
|
//#endregion
|
|
86717
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86845
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/RecapPanel.js
|
|
86718
86846
|
/**
|
|
86719
86847
|
* `/recap` panel (pi-recap semantics), in the picker/dialog visual
|
|
86720
86848
|
* language: a permission-colored Pane with a title bar (会话回顾), a
|
|
@@ -86835,7 +86963,7 @@ function RecapPanel({ summary, title, error, streaming, titleApplied, onClose, o
|
|
|
86835
86963
|
});
|
|
86836
86964
|
}
|
|
86837
86965
|
//#endregion
|
|
86838
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
86966
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/tips.js
|
|
86839
86967
|
/**
|
|
86840
86968
|
* 精简 Tips 池 —— 启动首屏轮换(LogoV2)与 `/tips` 命令面板共用。
|
|
86841
86969
|
*
|
|
@@ -87549,7 +87677,7 @@ const TIPS = [
|
|
|
87549
87677
|
}
|
|
87550
87678
|
];
|
|
87551
87679
|
//#endregion
|
|
87552
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87680
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/TipsPanel.js
|
|
87553
87681
|
const GROUP_ORDER = [
|
|
87554
87682
|
"keys",
|
|
87555
87683
|
"commands",
|
|
@@ -87628,7 +87756,7 @@ function TipsPanel({ onClose }) {
|
|
|
87628
87756
|
});
|
|
87629
87757
|
}
|
|
87630
87758
|
//#endregion
|
|
87631
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87759
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentCard.js
|
|
87632
87760
|
function formatDuration$1(ms) {
|
|
87633
87761
|
const seconds = Math.floor(ms / 1e3);
|
|
87634
87762
|
return seconds < 60 ? `${seconds}s` : `${Math.floor(seconds / 60)}m${seconds % 60}s`;
|
|
@@ -87683,7 +87811,7 @@ function SubagentCard({ subagent, focused, onClick }) {
|
|
|
87683
87811
|
});
|
|
87684
87812
|
}
|
|
87685
87813
|
//#endregion
|
|
87686
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87814
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDashboard.js
|
|
87687
87815
|
/** 可点击 ✕ 退出按钮:整屏/浮层场景的鼠标退出通道(Esc 等价)。 */
|
|
87688
87816
|
function ExitButton({ onClick }) {
|
|
87689
87817
|
const [hovered, setHovered] = import_react.useState(false);
|
|
@@ -87831,7 +87959,7 @@ function SubagentDashboard({ subagents, onClose, onSelect }) {
|
|
|
87831
87959
|
});
|
|
87832
87960
|
}
|
|
87833
87961
|
//#endregion
|
|
87834
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
87962
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/JobsPanel.js
|
|
87835
87963
|
function statusInfo(status) {
|
|
87836
87964
|
const minimal = isMinimalMode();
|
|
87837
87965
|
switch (status) {
|
|
@@ -88119,7 +88247,7 @@ function JobsPanel({ jobs, onClose, onKill }) {
|
|
|
88119
88247
|
});
|
|
88120
88248
|
}
|
|
88121
88249
|
//#endregion
|
|
88122
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88250
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/SubagentDetailScene.js
|
|
88123
88251
|
function formatDuration(ms) {
|
|
88124
88252
|
if (ms < 1e3) return `${ms}ms`;
|
|
88125
88253
|
if (ms < 6e4) return `${(ms / 1e3).toFixed(1)}s`;
|
|
@@ -88589,7 +88717,7 @@ function FileActionsPanel({ path, isDir, focusIndex, onPick }) {
|
|
|
88589
88717
|
});
|
|
88590
88718
|
}
|
|
88591
88719
|
//#endregion
|
|
88592
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88720
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/ProductivityPickers.js
|
|
88593
88721
|
function oneLine(text, max = 70) {
|
|
88594
88722
|
const compact = text.replace(/\s+/gu, " ").trim();
|
|
88595
88723
|
return compact.length > max ? `${compact.slice(0, max - 1)}…` : compact;
|
|
@@ -88681,7 +88809,7 @@ function DiffLoading() {
|
|
|
88681
88809
|
});
|
|
88682
88810
|
}
|
|
88683
88811
|
//#endregion
|
|
88684
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88812
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/productivityCommands.js
|
|
88685
88813
|
/** `/copy` argument is a one-based reply age; omission selects the latest. */
|
|
88686
88814
|
function parseCopyIndex(raw, count) {
|
|
88687
88815
|
const value = raw.trim();
|
|
@@ -88734,7 +88862,7 @@ function gitDiffLines(report, labels) {
|
|
|
88734
88862
|
];
|
|
88735
88863
|
}
|
|
88736
88864
|
//#endregion
|
|
88737
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88865
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/sessionOrganizationCommands.js
|
|
88738
88866
|
/** Compact duration suitable for a terminal report row. */
|
|
88739
88867
|
function formatStatsDuration(ms) {
|
|
88740
88868
|
if (ms < 1e3) return `${Math.round(ms)} ms`;
|
|
@@ -88780,7 +88908,7 @@ function parsePresetManagement(input) {
|
|
|
88780
88908
|
return { kind: "invalid" };
|
|
88781
88909
|
}
|
|
88782
88910
|
//#endregion
|
|
88783
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88911
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/workflowCommands.js
|
|
88784
88912
|
const ALIASES = {
|
|
88785
88913
|
map: "inspect",
|
|
88786
88914
|
fixit: "repair",
|
|
@@ -88835,7 +88963,7 @@ function buildWorkflowCommand(name, rawInput = "") {
|
|
|
88835
88963
|
};
|
|
88836
88964
|
}
|
|
88837
88965
|
//#endregion
|
|
88838
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88966
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/utils/urlGuard.js
|
|
88839
88967
|
const EXTERNAL_SCHEME = /^https?:\/\//i;
|
|
88840
88968
|
/**
|
|
88841
88969
|
* Classify a clicked link target. Mirrors the previous handleOpenTarget
|
|
@@ -88860,7 +88988,7 @@ function classifyOpenTarget(url) {
|
|
|
88860
88988
|
return { kind: "rejected" };
|
|
88861
88989
|
}
|
|
88862
88990
|
//#endregion
|
|
88863
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
88991
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/hooks/useExternalVersion.js
|
|
88864
88992
|
/**
|
|
88865
88993
|
* Subscribe to an external store's version counter at DEFAULT lane.
|
|
88866
88994
|
*
|
|
@@ -88909,7 +89037,7 @@ function useExternalVersion(subscribe, getVersion, enabled = true) {
|
|
|
88909
89037
|
return version;
|
|
88910
89038
|
}
|
|
88911
89039
|
//#endregion
|
|
88912
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89040
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/WaveBand.js
|
|
88913
89041
|
/**
|
|
88914
89042
|
* The wake — the whole session drawn as one row of glyphs.
|
|
88915
89043
|
*
|
|
@@ -89046,7 +89174,7 @@ function toHex(colour) {
|
|
|
89046
89174
|
return `#${hex(parsed.r)}${hex(parsed.g)}${hex(parsed.b)}`;
|
|
89047
89175
|
}
|
|
89048
89176
|
//#endregion
|
|
89049
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89177
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Ledger.js
|
|
89050
89178
|
/**
|
|
89051
89179
|
* The ledger — one line per event, columns aligned across every row.
|
|
89052
89180
|
*
|
|
@@ -89292,7 +89420,7 @@ function Ledger({ rows, start, height, cursor, width, tick, arrivalTick, arrival
|
|
|
89292
89420
|
});
|
|
89293
89421
|
}
|
|
89294
89422
|
//#endregion
|
|
89295
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89423
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/Inspector.js
|
|
89296
89424
|
/**
|
|
89297
89425
|
* The inspector — full detail for the focused row, in a fixed-height slot.
|
|
89298
89426
|
*
|
|
@@ -89398,7 +89526,7 @@ function Inspector({ node, detail, height, width, expanded, scroll }) {
|
|
|
89398
89526
|
});
|
|
89399
89527
|
}
|
|
89400
89528
|
//#endregion
|
|
89401
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89529
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/components/trajectory/HotspotView.js
|
|
89402
89530
|
/**
|
|
89403
89531
|
* The hotspot view — the session ranked by cost instead of ordered by time.
|
|
89404
89532
|
*
|
|
@@ -89561,7 +89689,7 @@ function HotspotView({ agg, sort, width, height, cursor, tick, switchTick, onRow
|
|
|
89561
89689
|
});
|
|
89562
89690
|
}
|
|
89563
89691
|
//#endregion
|
|
89564
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89692
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectory/query.js
|
|
89565
89693
|
/**
|
|
89566
89694
|
* Trajectory query — whole-session structured filtering.
|
|
89567
89695
|
*
|
|
@@ -89757,7 +89885,7 @@ function applyQuery(nodes, query) {
|
|
|
89757
89885
|
};
|
|
89758
89886
|
}
|
|
89759
89887
|
//#endregion
|
|
89760
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
89888
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/TrajectoryScene.js
|
|
89761
89889
|
/**
|
|
89762
89890
|
* The trajectory scene — the session's own screen.
|
|
89763
89891
|
*
|
|
@@ -90245,7 +90373,7 @@ function TrajectoryScene({ channel, build, onClose }) {
|
|
|
90245
90373
|
});
|
|
90246
90374
|
}
|
|
90247
90375
|
//#endregion
|
|
90248
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90376
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/LoadedContextScene.js
|
|
90249
90377
|
/** Build the non-empty pages shown by the loaded-context inspector. */
|
|
90250
90378
|
function contextPages(context) {
|
|
90251
90379
|
const pages = [];
|
|
@@ -90429,7 +90557,7 @@ function LoadedContextScene({ context, onClose }) {
|
|
|
90429
90557
|
});
|
|
90430
90558
|
}
|
|
90431
90559
|
//#endregion
|
|
90432
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
90560
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/AgentView.js
|
|
90433
90561
|
/** Rows the layout cannot do without: header, model/cwd line, dispatch
|
|
90434
90562
|
* input, hints. */
|
|
90435
90563
|
const MANDATORY_LINES = 4;
|
|
@@ -91038,7 +91166,7 @@ function AgentView({ channel, home, approval, onApprove, returnSessionId, onClos
|
|
|
91038
91166
|
});
|
|
91039
91167
|
}
|
|
91040
91168
|
//#endregion
|
|
91041
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
91169
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/trajectoryPrefs.js
|
|
91042
91170
|
/**
|
|
91043
91171
|
* Persisted "the user has seen the trajectory" flag, at
|
|
91044
91172
|
* `~/.chatcode-cli/tui/trajectory.json`.
|
|
@@ -91098,7 +91226,7 @@ function writeTrajectorySeen(dir = DATA_DIR) {
|
|
|
91098
91226
|
}
|
|
91099
91227
|
}
|
|
91100
91228
|
//#endregion
|
|
91101
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
91229
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/chatOverlay.js
|
|
91102
91230
|
const NO_OVERLAY = { kind: "none" };
|
|
91103
91231
|
/**
|
|
91104
91232
|
* One-step wrap-around cursor move — the single source of the wrapping rule
|
|
@@ -91208,7 +91336,7 @@ function dialogOverlayVisible(overlay, gates) {
|
|
|
91208
91336
|
}
|
|
91209
91337
|
}
|
|
91210
91338
|
//#endregion
|
|
91211
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
91339
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/screens/Chat.js
|
|
91212
91340
|
const LOGOUT_EXIT_DELAY_MS = 200;
|
|
91213
91341
|
/** Shared empty snapshot for hosts whose channel has no event log. */
|
|
91214
91342
|
const NO_EVENTS = [];
|
|
@@ -95033,7 +95161,7 @@ function ModelPickerLoading() {
|
|
|
95033
95161
|
});
|
|
95034
95162
|
}
|
|
95035
95163
|
//#endregion
|
|
95036
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95164
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/webLauncher.js
|
|
95037
95165
|
const MAIN_CLI_PACKAGE = "@chatcode/chatcode-cli";
|
|
95038
95166
|
function asError(value) {
|
|
95039
95167
|
return value instanceof Error ? value : new Error(String(value));
|
|
@@ -95189,7 +95317,7 @@ function launchWebFrontend(cwd, options = {}) {
|
|
|
95189
95317
|
}
|
|
95190
95318
|
}
|
|
95191
95319
|
//#endregion
|
|
95192
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95320
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/inject-channel.js
|
|
95193
95321
|
/**
|
|
95194
95322
|
* External injection channel — lets an out-of-process editor integration
|
|
95195
95323
|
* (e.g. the `dsh.nvim` Neovim plugin) push text into the running TUI's
|
|
@@ -95384,7 +95512,7 @@ function openInjectChannel(sessionId, cwd, handlers, onError) {
|
|
|
95384
95512
|
};
|
|
95385
95513
|
}
|
|
95386
95514
|
//#endregion
|
|
95387
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95515
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-auth.js
|
|
95388
95516
|
const CHATCODE_CLI_OAUTH_TOKEN = "CHATCODE_CLI_OAUTH_TOKEN";
|
|
95389
95517
|
const DEFAULT_SERVICE_WAIT_MS = 75e3;
|
|
95390
95518
|
function authService(ctx) {
|
|
@@ -95558,7 +95686,7 @@ async function requireChatCodeStartupLogin(ctx, options) {
|
|
|
95558
95686
|
return "ready";
|
|
95559
95687
|
}
|
|
95560
95688
|
//#endregion
|
|
95561
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95689
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/chatcode-api.js
|
|
95562
95690
|
/** Bind authenticated statistics requests to one TUI lifetime. */
|
|
95563
95691
|
function createChatCodeAuthorizedPost(ctx) {
|
|
95564
95692
|
const lifetime = new AbortController();
|
|
@@ -95597,7 +95725,7 @@ function createChatCodeAuthorizedPost(ctx) {
|
|
|
95597
95725
|
};
|
|
95598
95726
|
}
|
|
95599
95727
|
//#endregion
|
|
95600
|
-
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.
|
|
95728
|
+
//#region ../../node_modules/.pnpm/@chatcode+cco-tui@0.10.0-rc.29_08ea48c8555976e562c6368d51cb542b/node_modules/@chatcode/cco-tui/lib/types/dsh-adapter/plugin.js
|
|
95601
95729
|
/**
|
|
95602
95730
|
* Interactive TUI front door for ChatCode CLI agents.
|
|
95603
95731
|
*
|
|
@@ -96379,9 +96507,22 @@ async function apply(ctx, config) {
|
|
|
96379
96507
|
let updateRequested = false;
|
|
96380
96508
|
let updateTargetVersion;
|
|
96381
96509
|
let restartRequested = false;
|
|
96510
|
+
let desktopLaunch;
|
|
96382
96511
|
const profile = resolveDshProfileName();
|
|
96383
96512
|
const funnel = createExitFunnel({ onUserExit: (error) => {
|
|
96384
96513
|
exited = true;
|
|
96514
|
+
if (desktopLaunch !== void 0 && error === void 0) {
|
|
96515
|
+
const launch = desktopLaunch;
|
|
96516
|
+
finishExit(ctx, instance, bootedFullscreen, t("desktop-history-connecting"), void 0, () => {
|
|
96517
|
+
disposeRootAndThen(ctx, () => {
|
|
96518
|
+
launch().then((code) => process.exit(code), () => {
|
|
96519
|
+
process.stderr.write(`${t("desktop-history-failed")}\n`);
|
|
96520
|
+
process.exit(1);
|
|
96521
|
+
});
|
|
96522
|
+
});
|
|
96523
|
+
});
|
|
96524
|
+
return;
|
|
96525
|
+
}
|
|
96385
96526
|
if (error !== void 0) {
|
|
96386
96527
|
const message = error instanceof Error ? error.message : String(error);
|
|
96387
96528
|
ctx.logger.error(`ChatCode CLI TUI: exit after error: ${message}`);
|
|
@@ -96421,6 +96562,11 @@ async function apply(ctx, config) {
|
|
|
96421
96562
|
finishExit(ctx, instance, bootedFullscreen, hint, void 0, () => disposeRootAndExit(ctx, 0));
|
|
96422
96563
|
} });
|
|
96423
96564
|
const handleExit = funnel.handleExit;
|
|
96565
|
+
ctx.on("tui/desktop-history/launch", (launch) => {
|
|
96566
|
+
if (exited) return;
|
|
96567
|
+
desktopLaunch = launch;
|
|
96568
|
+
handleExit();
|
|
96569
|
+
});
|
|
96424
96570
|
const webLaunches = /* @__PURE__ */ new Set();
|
|
96425
96571
|
let webRequest = Promise.resolve();
|
|
96426
96572
|
let webClosing = false;
|
|
@@ -96594,9 +96740,12 @@ async function resolveAgent(ctx, requestedSessionId, configuredRoute, startupRou
|
|
|
96594
96740
|
};
|
|
96595
96741
|
try {
|
|
96596
96742
|
ensureLegacySessionEventTypes();
|
|
96597
|
-
const
|
|
96743
|
+
const persisted = await resolvePersistedPreset(ctx, resumeId);
|
|
96744
|
+
const composed = await composePreset(ctx, persisted);
|
|
96745
|
+
if (process.env.CHATCODE_DESKTOP_HISTORY_LEASE && (persisted !== "cherry-chatcode" || composed.agentPreset !== persisted || !composed.setup)) throw new Error("Desktop Session preset is unavailable; the original configuration is required");
|
|
96598
96746
|
const recorded = await resolvePersistedRoute(ctx, resumeId);
|
|
96599
96747
|
const { route: adoptedResumeRoute, rejected } = await validateResumeModelRoute(ctx.get("llm"), resumeRoute, recorded, availableFallback ?? startupRoute);
|
|
96748
|
+
if (process.env.CHATCODE_DESKTOP_HISTORY_LEASE && (rejected !== void 0 || adoptedResumeRoute === void 0 || recorded !== void 0 && (adoptedResumeRoute.provider !== recorded.provider || adoptedResumeRoute.model !== recorded.model))) throw new Error("Desktop Session model is unavailable; fallback is disabled for this Session");
|
|
96600
96749
|
if (rejected !== void 0 && adoptedResumeRoute !== void 0) ctx.logger.warn(`ChatCode CLI TUI: resumed model route ${rejected.provider}/${rejected.model} is not advertised by provider "${rejected.provider}"; falling back to ${adoptedResumeRoute.provider}/${adoptedResumeRoute.model}`);
|
|
96601
96750
|
const resumed = await ctx.agents.resume({
|
|
96602
96751
|
resumeSessionId: resumeId,
|
|
@@ -96843,6 +96992,7 @@ function disposeRootAndExit(ctx, code) {
|
|
|
96843
96992
|
* does this via --resume + ~/.chatcode-cli/tui/resume.txt.
|
|
96844
96993
|
*/
|
|
96845
96994
|
function resumeCommand(profile, sessionId) {
|
|
96995
|
+
if (process.env.CHATCODE_DESKTOP_HISTORY_LEASE) return `chatcode-cli desktop-history --resume ${sessionId}`;
|
|
96846
96996
|
const boot = profile === void 0 ? "chatcode-cli --config cordis.yml" : `chatcode-cli --profile ${profile}`;
|
|
96847
96997
|
return process.platform === "win32" ? `${profile === void 0 ? "chatcode-cli" : boot} --resume ${sessionId}` : `CHATCODE_CLI_TUI_RESUME_SESSION=${sessionId} ${boot}`;
|
|
96848
96998
|
}
|