@deepseek-harness-tui/dsh-tui 0.16.1 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +213 -34
- package/assets/plugin-icon.svg +13 -0
- package/assets/windows-installer.cs +308 -0
- package/assets/windows-installer.ps1 +17 -0
- package/bin/dsh-tui.js +64 -5
- package/cli/adapters/dsh/index.mjs +111 -0
- package/cli/adapters/dsh/locate.mjs +73 -0
- package/cli/adapters/dsh/management-plugin.mjs +111 -0
- package/cli/args.mjs +154 -0
- package/cli/contracts.d.ts +48 -0
- package/cli/engine.mjs +92 -0
- package/cli/entry.mjs +48 -0
- package/cli/process.mjs +118 -0
- package/cli/protocol.mjs +23 -0
- package/cli/schema-v1.json +33 -0
- package/cordis.patch.yml +3 -1
- package/cordis.yml +3 -1
- package/guide/dsh-tui-guide/SKILL.md +1 -0
- package/guide/dsh-tui-guide/cli.en.md +114 -0
- package/guide/dsh-tui-guide/cli.md +114 -0
- package/guide/dsh-tui-guide/configuration.en.md +7 -5
- package/guide/dsh-tui-guide/configuration.md +7 -5
- package/guide/dsh-tui-guide/getting-started.en.md +33 -3
- package/guide/dsh-tui-guide/getting-started.md +23 -2
- package/guide/dsh-tui-guide/interaction.en.md +50 -17
- package/guide/dsh-tui-guide/interaction.md +35 -13
- package/guide/dsh-tui-guide/plugins.en.md +63 -11
- package/guide/dsh-tui-guide/plugins.md +41 -7
- package/guide/dsh-tui-guide/user-guide.en.md +55 -34
- package/guide/dsh-tui-guide/user-guide.md +45 -28
- package/lib/settings.json +85 -42
- package/lib/types/adapter/channel/plugins.d.ts.map +1 -1
- package/lib/types/adapter/channel/plugins.js +8 -0
- package/lib/types/adapter/channel/ui-policy.d.ts +2 -1
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +4 -0
- package/lib/types/adapter/ports/channel-display.d.ts +10 -0
- package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-session.d.ts +2 -0
- package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
- package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-ui.d.ts +22 -2
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +11 -1
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel.d.ts +7 -0
- package/lib/types/adapter/ports/channel.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.d.ts +60 -0
- package/lib/types/adapter/standard/grants.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.js +74 -0
- package/lib/types/agent/capabilities.d.ts +2 -0
- package/lib/types/agent/capabilities.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +15 -1
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/api.d.ts +2 -2
- package/lib/types/api.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/events.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/events.js +2 -1
- package/lib/types/backends/codex/auth/status.js +1 -1
- package/lib/types/backends/codex/session/controls.d.ts.map +1 -1
- package/lib/types/backends/codex/session/controls.js +6 -5
- package/lib/types/backends/codex/session/goals.d.ts.map +1 -1
- package/lib/types/backends/codex/session/side-query.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/events.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/events.js +3 -1
- package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -1
- package/lib/types/backends/shared/channel-tokens.js +9 -8
- package/lib/types/channel/history-restore.d.ts.map +1 -1
- package/lib/types/channel/history-restore.js +2 -0
- package/lib/types/channel/interaction.d.ts.map +1 -1
- package/lib/types/channel/interaction.js +1 -0
- package/lib/types/channel/projection.d.ts +1 -1
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +19 -4
- package/lib/types/channel/questions.d.ts +2 -0
- package/lib/types/channel/questions.d.ts.map +1 -1
- package/lib/types/channel/sanitize.d.ts +14 -0
- package/lib/types/channel/sanitize.d.ts.map +1 -1
- package/lib/types/channel/sanitize.js +55 -0
- package/lib/types/channel/working-directory.d.ts +9 -0
- package/lib/types/channel/working-directory.d.ts.map +1 -0
- package/lib/types/channel/working-directory.js +7 -0
- package/lib/types/commands.d.ts +8 -1
- package/lib/types/commands.d.ts.map +1 -1
- package/lib/types/commands.js +14 -5
- package/lib/types/components/ChatTitle.d.ts +7 -0
- package/lib/types/components/ChatTitle.d.ts.map +1 -0
- package/lib/types/components/ChatTitle.js +15 -0
- package/lib/types/components/CodeBlockFrame.d.ts.map +1 -1
- package/lib/types/components/CodeBlockFrame.js +10 -5
- package/lib/types/components/CompactionStatusRow.d.ts.map +1 -1
- package/lib/types/components/CompactionStatusRow.js +24 -3
- package/lib/types/components/GoalTodoPanel.d.ts +73 -6
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +165 -17
- package/lib/types/components/Markdown.d.ts +9 -1
- package/lib/types/components/Markdown.d.ts.map +1 -1
- package/lib/types/components/Markdown.js +5 -4
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +20 -14
- package/lib/types/components/PluginGrantList.d.ts +45 -0
- package/lib/types/components/PluginGrantList.d.ts.map +1 -0
- package/lib/types/components/PluginGrantList.js +126 -0
- package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
- package/lib/types/components/PluginInstallPane.js +35 -6
- package/lib/types/components/PluginManagePane.d.ts.map +1 -1
- package/lib/types/components/PluginManagePane.js +65 -8
- package/lib/types/components/PromptInput.d.ts +13 -5
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +190 -108
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +232 -22
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +10 -0
- package/lib/types/components/SubagentDetailScene.d.ts +3 -1
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +17 -1
- package/lib/types/components/Whale.d.ts.map +1 -1
- package/lib/types/components/Whale.js +8 -5
- package/lib/types/components/approvals/ApprovalPanel.d.ts +1 -1
- package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
- package/lib/types/components/approvals/ApprovalPanel.js +93 -11
- package/lib/types/components/bigfont.d.ts.map +1 -1
- package/lib/types/components/bigfont.js +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +24 -11
- package/lib/types/components/onboardingModel.d.ts +2 -2
- package/lib/types/components/onboardingModel.js +3 -3
- package/lib/types/components/onboardingProviderPlan.d.ts +110 -0
- package/lib/types/components/onboardingProviderPlan.d.ts.map +1 -0
- package/lib/types/components/onboardingProviderPlan.js +78 -0
- package/lib/types/components/previewRows.d.ts +19 -0
- package/lib/types/components/previewRows.d.ts.map +1 -0
- package/lib/types/components/previewRows.js +46 -0
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
- package/lib/types/components/questions/AskUserQuestionPanel.js +75 -10
- package/lib/types/components/sessions/ForeignSessionRow.d.ts +3 -9
- package/lib/types/components/sessions/ForeignSessionRow.d.ts.map +1 -1
- package/lib/types/components/sessions/ForeignSessionRow.js +6 -10
- package/lib/types/components/sessions/SessionListRow.d.ts +4 -9
- package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -1
- package/lib/types/components/sessions/SessionListRow.js +18 -10
- package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/InfoPanel.js +4 -3
- package/lib/types/components/sidePanel/SidePanelLayout.d.ts.map +1 -1
- package/lib/types/components/sidePanel/SidePanelLayout.js +5 -5
- package/lib/types/components/sidePanel/WorkspacePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/WorkspacePanel.js +19 -7
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +7 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +16 -0
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +8 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +8 -1
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +36 -18
- package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/companion/CompanionPanel.js +2 -1
- package/lib/types/components/sidePanel/panelMarkdown.d.ts +32 -0
- package/lib/types/components/sidePanel/panelMarkdown.d.ts.map +1 -0
- package/lib/types/components/sidePanel/panelMarkdown.js +45 -0
- package/lib/types/components/sidePanel/pluginPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/pluginPanelAdapter.js +6 -1
- package/lib/types/components/sidePanel/subagentFailureRead.d.ts +21 -0
- package/lib/types/components/sidePanel/subagentFailureRead.d.ts.map +1 -0
- package/lib/types/components/sidePanel/subagentFailureRead.js +66 -0
- package/lib/types/components/sidePanel/types.d.ts +2 -0
- package/lib/types/components/sidePanel/types.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.js +39 -7
- package/lib/types/components/trajectory/MiniWake.d.ts +2 -2
- package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -1
- package/lib/types/components/trajectory/MiniWake.js +7 -3
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
- package/lib/types/components/workspaces/HomeWorkspaceRow.js +4 -7
- package/lib/types/dsh-adapter/backend/session.d.ts +7 -1
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/session.js +62 -6
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +18 -4
- package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.js +3 -1
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +5 -1
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +18 -1
- package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/command-completions.js +6 -8
- package/lib/types/dsh-adapter/channel/composer-images.d.ts +11 -1
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +121 -113
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-mentions.js +38 -17
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +9 -5
- package/lib/types/dsh-adapter/channel/core/actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/actions.js +23 -2
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +10 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.js +48 -3
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +5 -2
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +7 -0
- package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/files.js +2 -1
- package/lib/types/dsh-adapter/channel/core/host.d.ts +14 -10
- package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/host.js +192 -13
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +1 -0
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.js +32 -3
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +31 -5
- package/lib/types/dsh-adapter/channel/input-actions.d.ts +2 -2
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +34 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +5 -2
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +31 -4
- package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mentions.js +21 -7
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.js +7 -1
- package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-selection.js +6 -4
- package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/paths.js +11 -9
- package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-fork.js +1 -0
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.js +6 -1
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-metadata.js +15 -2
- package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.js +7 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +56 -36
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.js +3 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +3 -1
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +10 -3
- package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/state.js +2 -2
- package/lib/types/dsh-adapter/channel/types.d.ts +13 -1
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/liveSession.d.ts +3 -3
- package/lib/types/dsh-adapter/compat/liveSession.js +3 -3
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts +1 -1
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/sessionLog.js +17 -1
- package/lib/types/dsh-adapter/contract.d.ts +7 -5
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +10 -5
- package/lib/types/dsh-adapter/effect-ledger.d.ts +1 -1
- package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
- package/lib/types/dsh-adapter/effect-ledger.js +1 -0
- package/lib/types/dsh-adapter/entry-slot.d.ts +6 -0
- package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +29 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
- package/lib/types/dsh-adapter/experimental-bundles.js +15 -0
- package/lib/types/dsh-adapter/grant-file.d.ts +70 -0
- package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
- package/lib/types/dsh-adapter/grant-file.js +178 -0
- package/lib/types/dsh-adapter/host-access.d.ts +4 -0
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +54 -4
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +2 -2
- package/lib/types/dsh-adapter/host-dsh.js +3 -3
- package/lib/types/dsh-adapter/index.d.ts +8 -4
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +17 -12
- package/lib/types/dsh-adapter/panels.d.ts +28 -8
- package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
- package/lib/types/dsh-adapter/panels.js +11 -56
- package/lib/types/dsh-adapter/plugin-declaration.d.ts +28 -0
- package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.js +43 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts +28 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-install.js +160 -13
- package/lib/types/dsh-adapter/plugin-manage.d.ts +53 -10
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +240 -51
- package/lib/types/dsh-adapter/plugin.d.ts +81 -0
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +378 -84
- package/lib/types/dsh-adapter/plugins-info.d.ts +6 -7
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +99 -31
- package/lib/types/dsh-adapter/presets.d.ts +19 -6
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +69 -12
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +11 -5
- package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
- package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
- package/lib/types/dsh-adapter/row-attachment.js +29 -0
- package/lib/types/dsh-adapter/session-tools.d.ts +34 -0
- package/lib/types/dsh-adapter/session-tools.d.ts.map +1 -0
- package/lib/types/dsh-adapter/session-tools.js +39 -0
- package/lib/types/dsh-adapter/settings-sections.d.ts +18 -1
- package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
- package/lib/types/dsh-adapter/settings-sections.js +73 -0
- package/lib/types/dsh-adapter/status.d.ts +88 -1
- package/lib/types/dsh-adapter/status.d.ts.map +1 -1
- package/lib/types/dsh-adapter/status.js +318 -3
- package/lib/types/dsh-adapter/team-mode.d.ts +42 -33
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +76 -112
- package/lib/types/dsh-adapter/worktree-tool.d.ts +27 -0
- package/lib/types/dsh-adapter/worktree-tool.d.ts.map +1 -0
- package/lib/types/dsh-adapter/worktree-tool.js +87 -0
- package/lib/types/extensions.d.ts +1 -1
- package/lib/types/extensions.d.ts.map +1 -1
- package/lib/types/force-production-react.js +3 -3
- package/lib/types/heldInputs.d.ts +36 -0
- package/lib/types/heldInputs.d.ts.map +1 -0
- package/lib/types/heldInputs.js +173 -0
- package/lib/types/i18n.d.ts +543 -73
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +265 -46
- package/lib/types/ink/colorize.d.ts +7 -1
- package/lib/types/ink/colorize.d.ts.map +1 -1
- package/lib/types/ink/colorize.js +29 -8
- package/lib/types/ink/components/App.d.ts +2 -1
- package/lib/types/ink/components/App.d.ts.map +1 -1
- package/lib/types/ink/components/App.js +10 -3
- package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
- package/lib/types/ink/components/ScrollBox.js +1 -0
- package/lib/types/ink/dom.d.ts +1 -0
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-program-status.d.ts +78 -0
- package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-program-status.js +96 -0
- package/lib/types/ink/ink.d.ts +13 -4
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +119 -25
- package/lib/types/ink/output.d.ts +17 -2
- package/lib/types/ink/output.d.ts.map +1 -1
- package/lib/types/ink/output.js +85 -2
- package/lib/types/ink/parse-keypress.d.ts +1 -0
- package/lib/types/ink/parse-keypress.d.ts.map +1 -1
- package/lib/types/ink/parse-keypress.js +5 -4
- package/lib/types/ink/render-node-to-output.d.ts +2 -0
- package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
- package/lib/types/ink/render-node-to-output.js +79 -10
- package/lib/types/ink/root.d.ts +8 -0
- package/lib/types/ink/root.d.ts.map +1 -1
- package/lib/types/ink/root.js +12 -3
- package/lib/types/ink/screen.d.ts +11 -0
- package/lib/types/ink/screen.d.ts.map +1 -1
- package/lib/types/ink/screen.js +44 -0
- package/lib/types/ink/selection.d.ts +7 -2
- package/lib/types/ink/selection.d.ts.map +1 -1
- package/lib/types/ink/selection.js +187 -44
- package/lib/types/ink/shutdown-input.d.ts +15 -0
- package/lib/types/ink/shutdown-input.d.ts.map +1 -0
- package/lib/types/ink/shutdown-input.js +28 -0
- package/lib/types/ink/sixel-cursor-heal.d.ts +21 -0
- package/lib/types/ink/sixel-cursor-heal.d.ts.map +1 -0
- package/lib/types/ink/sixel-cursor-heal.js +62 -0
- package/lib/types/ink/sixel-graphics.d.ts +6 -0
- package/lib/types/ink/sixel-graphics.d.ts.map +1 -1
- package/lib/types/ink/sixel-graphics.js +18 -0
- package/lib/types/ink/styles.d.ts +8 -1
- package/lib/types/ink/styles.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification-windows.d.ts +195 -0
- package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -0
- package/lib/types/ink/terminal-notification-windows.js +433 -0
- package/lib/types/ink/terminal-notification.d.ts +3 -1
- package/lib/types/ink/terminal-notification.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification.js +4 -1
- package/lib/types/ink/terminal-querier.d.ts +9 -1
- package/lib/types/ink/terminal-querier.d.ts.map +1 -1
- package/lib/types/ink/terminal-querier.js +32 -1
- package/lib/types/ink/terminal.d.ts +23 -2
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +32 -2
- package/lib/types/ink/termio/osc.d.ts +2 -1
- package/lib/types/ink/termio/osc.d.ts.map +1 -1
- package/lib/types/ink/termio/osc.js +37 -8
- package/lib/types/ink/termio/osc7501.d.ts +102 -0
- package/lib/types/ink/termio/osc7501.d.ts.map +1 -0
- package/lib/types/ink/termio/osc7501.js +229 -0
- package/lib/types/ink/termio/tokenize.js +5 -7
- package/lib/types/onboardingDraft.d.ts +143 -0
- package/lib/types/onboardingDraft.d.ts.map +1 -0
- package/lib/types/onboardingDraft.js +71 -0
- package/lib/types/panels.d.ts +1 -1
- package/lib/types/panels.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.d.ts +3 -1
- package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.js +5 -1
- package/lib/types/screens/Chat.d.ts +6 -6
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +394 -141
- package/lib/types/screens/Launchpad.d.ts +8 -2
- package/lib/types/screens/Launchpad.d.ts.map +1 -1
- package/lib/types/screens/Launchpad.js +32 -12
- package/lib/types/screens/Onboarding.d.ts +22 -3
- package/lib/types/screens/Onboarding.d.ts.map +1 -1
- package/lib/types/screens/Onboarding.js +606 -36
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/SessionSupervisor.js +31 -21
- package/lib/types/screens/Settings.d.ts +5 -1
- package/lib/types/screens/Settings.d.ts.map +1 -1
- package/lib/types/screens/Settings.js +528 -51
- package/lib/types/screens/StatusLine.d.ts +9 -3
- package/lib/types/screens/StatusLine.d.ts.map +1 -1
- package/lib/types/screens/StatusLine.js +91 -15
- package/lib/types/screens/StatusMetrics.d.ts +2 -11
- package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
- package/lib/types/screens/StatusMetrics.js +20 -14
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +13 -21
- package/lib/types/sessionMounts.d.ts +14 -0
- package/lib/types/sessionMounts.d.ts.map +1 -1
- package/lib/types/sessionMounts.js +20 -9
- package/lib/types/sessions/format.d.ts +39 -0
- package/lib/types/sessions/format.d.ts.map +1 -1
- package/lib/types/sessions/format.js +83 -0
- package/lib/types/sessions/resumeFailure.d.ts +4 -0
- package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
- package/lib/types/sessions/resumeFailure.js +12 -4
- package/lib/types/sessions/workspaceCounts.d.ts +6 -0
- package/lib/types/sessions/workspaceCounts.d.ts.map +1 -0
- package/lib/types/sessions/workspaceCounts.js +24 -0
- package/lib/types/settings/definitions.d.ts +24 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +40 -15
- package/lib/types/tips.js +2 -2
- package/lib/types/tuiDisplayPrefs.d.ts +113 -5
- package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
- package/lib/types/tuiDisplayPrefs.js +276 -14
- package/lib/types/update.d.ts +15 -14
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +163 -115
- package/lib/types/updateProcess.d.ts +28 -0
- package/lib/types/updateProcess.d.ts.map +1 -0
- package/lib/types/updateProcess.js +135 -0
- package/lib/types/utils/inputWordBoundary.d.ts +5 -0
- package/lib/types/utils/inputWordBoundary.d.ts.map +1 -0
- package/lib/types/utils/inputWordBoundary.js +18 -0
- package/lib/types/utils/keymap.d.ts +1 -1
- package/lib/types/utils/keymap.d.ts.map +1 -1
- package/lib/types/utils/keymap.js +6 -1
- package/lib/types/utils/paths.d.ts +15 -0
- package/lib/types/utils/paths.d.ts.map +1 -1
- package/lib/types/utils/paths.js +25 -0
- package/lib/types/windowsInstaller.d.ts +4 -0
- package/lib/types/windowsInstaller.d.ts.map +1 -0
- package/lib/types/windowsInstaller.js +237 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +130 -111
- package/presets/liangshen/custom-bash.mjs +13 -1
- package/presets/liangshen/instruction-hint.mjs +4 -1
- package/presets/liangshen/skill-search.mjs +14 -2
- package/presets/winbash.mjs +16 -4
- package/tui-profile/feed/README.md +17 -8
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -40,6 +40,10 @@ const WIDE_HEADER_MIN_COLUMNS = 56;
|
|
|
40
40
|
const MIN_NET_BODY_WIDTH = 8;
|
|
41
41
|
/** Rail column + the single padding column. */
|
|
42
42
|
const FRAME_OVERHEAD = 2;
|
|
43
|
+
/** Keep hard-line insets selectable; soft-wrap padding is decoration. */
|
|
44
|
+
const BODY_DECORATION = {
|
|
45
|
+
prefix: { text: ' ', width: 1, continuationNoSelect: 1 },
|
|
46
|
+
};
|
|
43
47
|
/**
|
|
44
48
|
* Which frame engine renders code fences. `typed` is the default;
|
|
45
49
|
* `DSH_TUI_CODE_FRAME=hybrid` selects the component layout.
|
|
@@ -88,10 +92,11 @@ export function CodeBlockFrame({ token, highlight, dimColor = false, forceWidth
|
|
|
88
92
|
header: headerText,
|
|
89
93
|
headerFill,
|
|
90
94
|
prefix: {
|
|
91
|
-
//
|
|
95
|
+
// Hard rows retain their inset; continuations copy only source text.
|
|
92
96
|
text: colorize('│', theme.subtle, 'foreground') + ' ',
|
|
93
97
|
width: FRAME_OVERHEAD,
|
|
94
98
|
noSelect: 1,
|
|
99
|
+
continuationNoSelect: FRAME_OVERHEAD,
|
|
95
100
|
},
|
|
96
101
|
};
|
|
97
102
|
}, [headerText, headerFill, emptyBody, theme.subtle]);
|
|
@@ -116,8 +121,8 @@ export function CodeBlockFrame({ token, highlight, dimColor = false, forceWidth
|
|
|
116
121
|
* The `full` style: the hybrid layout with the box closed - a right wall
|
|
117
122
|
* (a layout border, so it stays continuous across wrapped rows and
|
|
118
123
|
* follows the content column) and a bottom edge under the whole block.
|
|
119
|
-
* Header/rail/wall/bottom stay NoSelect;
|
|
120
|
-
*
|
|
124
|
+
* Header/rail/wall/bottom stay NoSelect; hard-line insets stay selectable
|
|
125
|
+
* and soft-wrap padding does not - the same contract as the light frame.
|
|
121
126
|
*/
|
|
122
127
|
function CodeBlockFrameFull({ contentWidth, label, body, subtle, themeSubtle, dimColor, }) {
|
|
123
128
|
return (_jsxs(Box, { flexDirection: "column", width: "100%", children: [_jsx(NoSelect, { borderStyle: "single", borderTop: true, borderLeft: true, borderRight: true, borderBottom: false, borderColor: subtle, borderText: {
|
|
@@ -125,7 +130,7 @@ function CodeBlockFrameFull({ contentWidth, label, body, subtle, themeSubtle, di
|
|
|
125
130
|
position: 'top',
|
|
126
131
|
align: 'start',
|
|
127
132
|
offset: 1,
|
|
128
|
-
} }), _jsxs(Box, { flexDirection: "row", children: [_jsx(NoSelect, { borderStyle: "single", borderLeft: true, borderTop: false, borderRight: false, borderBottom: false, borderColor: subtle }), _jsx(
|
|
133
|
+
} }), _jsxs(Box, { flexDirection: "row", children: [_jsx(NoSelect, { borderStyle: "single", borderLeft: true, borderTop: false, borderRight: false, borderBottom: false, borderColor: subtle }), _jsx(NoSelect, { position: "absolute", right: 0, top: 0, bottom: 0, borderStyle: "single", borderRight: true, borderTop: false, borderLeft: false, borderBottom: false, borderColor: subtle }), _jsx(Box, { paddingRight: 1, flexGrow: 1, flexBasis: 0, children: _jsx(Text, { dimColor: dimColor, decoration: BODY_DECORATION, children: body }) })] }), _jsx(NoSelect, { borderStyle: "single", borderLeft: true, borderRight: true, borderBottom: true, borderTop: false, borderColor: subtle })] }));
|
|
129
134
|
}
|
|
130
135
|
/** The component layout behind DSH_TUI_CODE_FRAME=hybrid. */
|
|
131
136
|
function CodeBlockFrameHybrid({ contentWidth, label, body, subtle, themeSubtle, dimColor, }) {
|
|
@@ -134,5 +139,5 @@ function CodeBlockFrameHybrid({ contentWidth, label, body, subtle, themeSubtle,
|
|
|
134
139
|
position: 'top',
|
|
135
140
|
align: 'start',
|
|
136
141
|
offset: 1,
|
|
137
|
-
} })) : (_jsx(NoSelect, { children: _jsx(Text, { color: "subtle", children: '┌─ ' + label }) })), _jsxs(Box, { flexDirection: "row", children: [_jsx(NoSelect, { borderStyle: "single", borderLeft: true, borderTop: false, borderRight: false, borderBottom: false, borderColor: subtle }), _jsx(Box, {
|
|
142
|
+
} })) : (_jsx(NoSelect, { children: _jsx(Text, { color: "subtle", children: '┌─ ' + label }) })), _jsxs(Box, { flexDirection: "row", children: [_jsx(NoSelect, { borderStyle: "single", borderLeft: true, borderTop: false, borderRight: false, borderBottom: false, borderColor: subtle }), _jsx(Box, { flexGrow: 1, flexBasis: 0, children: _jsx(Text, { dimColor: dimColor, decoration: BODY_DECORATION, children: body }) })] })] }));
|
|
138
143
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompactionStatusRow.d.ts","sourceRoot":"","sources":["../../../src/components/CompactionStatusRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"CompactionStatusRow.d.ts","sourceRoot":"","sources":["../../../src/components/CompactionStatusRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAmBxE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,UAAU,EACV,cAAc,GACf,EAAE;IACD,UAAU,EAAE,gBAAgB,CAAA;IAC5B;8BAC0B;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,KAAK,CAAC,SAAS,CAoElB"}
|
|
@@ -4,6 +4,7 @@ import { Box, Text } from '../ui.js';
|
|
|
4
4
|
import { useAnimationFrame } from '../ink/hooks/use-animation-frame.js';
|
|
5
5
|
import { useTerminalSize } from '../ink/hooks/use-terminal-size.js';
|
|
6
6
|
import { stringWidth } from '../ink/stringWidth.js';
|
|
7
|
+
import { getGraphemeSegmenter } from '../utils/intl.js';
|
|
7
8
|
import { t } from '../i18n.js';
|
|
8
9
|
import { formatDuration, formatTokens } from '../terminal-utils/format.js';
|
|
9
10
|
import { SpinnerGlyph } from './Spinner/SpinnerGlyph.js';
|
|
@@ -60,13 +61,33 @@ export function CompactionStatusRow({ compaction, activityPreset, }) {
|
|
|
60
61
|
// The hint is actionable and the phase is informative, so a narrow terminal
|
|
61
62
|
// drops the phase first and the hint only when even that does not fit.
|
|
62
63
|
const budget = Math.max(0, columns - RESERVE);
|
|
63
|
-
const
|
|
64
|
+
const indicatorWidth = indicator === null ? DOT_SLOT : indicator.width;
|
|
65
|
+
const base = indicatorWidth + stringWidth(label);
|
|
64
66
|
const elapsedWidth = stringWidth(SEP) + stringWidth(elapsed);
|
|
65
67
|
const hintWidth = hint === undefined ? 0 : stringWidth(SEP) + stringWidth(hint);
|
|
66
68
|
const detailWidth = stringWidth(SEP) + stringWidth(detail);
|
|
67
69
|
const showHint = hint !== undefined && base + elapsedWidth + hintWidth <= budget;
|
|
68
70
|
const showDetail = base + elapsedWidth + hintWidth + detailWidth <= budget;
|
|
69
|
-
|
|
71
|
+
// Keep the timer atomic, then spend the remaining cells on whole graphemes.
|
|
72
|
+
// Drop an oversized indicator before sacrificing an otherwise fitting timer.
|
|
73
|
+
const showIndicator = indicatorWidth < budget
|
|
74
|
+
&& (indicatorWidth + elapsedWidth < budget || elapsedWidth >= budget);
|
|
75
|
+
const remaining = budget - (showIndicator ? indicatorWidth : 0);
|
|
76
|
+
const showElapsed = elapsedWidth < remaining;
|
|
77
|
+
const labelWidth = Math.max(0, remaining - (showElapsed ? elapsedWidth : 0)
|
|
78
|
+
- (showHint ? hintWidth : 0) - (showDetail ? detailWidth : 0));
|
|
79
|
+
let fittedLabel = label;
|
|
80
|
+
if (stringWidth(label) > labelWidth) {
|
|
81
|
+
fittedLabel = '';
|
|
82
|
+
for (const { segment } of getGraphemeSegmenter().segment(label)) {
|
|
83
|
+
if (stringWidth(fittedLabel + segment) > labelWidth - 1)
|
|
84
|
+
break;
|
|
85
|
+
fittedLabel += segment;
|
|
86
|
+
}
|
|
87
|
+
if (labelWidth > 0)
|
|
88
|
+
fittedLabel += '…';
|
|
89
|
+
}
|
|
90
|
+
return (_jsxs(Box, { ref: viewportRef, flexDirection: "row", flexWrap: "nowrap", height: 1, overflow: "hidden", marginTop: 1, width: "100%", children: [showIndicator && (glyph === null
|
|
70
91
|
? _jsx(SpinnerGlyph, { frame: frame, messageColor: "accent" })
|
|
71
|
-
: _jsx(Text, { color: "activity", children: `${glyph} ` }), _jsx(Text, { color: "accent", children:
|
|
92
|
+
: _jsx(Text, { color: "activity", children: `${glyph} ` })), _jsx(Text, { color: "accent", children: fittedLabel }), showDetail && _jsx(Text, { dimColor: true, children: `${SEP}${detail}` }), showElapsed && _jsx(Text, { dimColor: true, children: `${SEP}${elapsed}` }), showHint && _jsx(Text, { dimColor: true, children: `${SEP}${hint}` })] }));
|
|
72
93
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ChannelUi as Channel } from '../adapter/channel/ui-policy.js';
|
|
3
|
-
import type { ChannelGoal } from '../dsh-adapter/channel.js';
|
|
3
|
+
import type { ChannelGoal, TodoPanelItem } from '../dsh-adapter/channel.js';
|
|
4
4
|
/**
|
|
5
5
|
* Compact goal chip for the status footer: phase glyph + rounds (a goal a
|
|
6
6
|
* backend budgets by tokens: tokens used / budget instead), colored by
|
|
@@ -11,6 +11,67 @@ export declare function GoalStatusChip({ goal, minimal }: {
|
|
|
11
11
|
goal: ChannelGoal;
|
|
12
12
|
minimal?: boolean;
|
|
13
13
|
}): React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* 面板内容宽:面板宽减去左右 padding 各 1。所有折行/截断都以显示单元
|
|
16
|
+
* 宽(stringWidth)为准,不用 JS 字符串长度。
|
|
17
|
+
*/
|
|
18
|
+
export declare function goalPanelContentWidth(width: number): number;
|
|
19
|
+
/** 目标折行宽:去掉首行 glyph 前缀,再留 1 格余量防 ink 二次折行。 */
|
|
20
|
+
export declare function goalObjectiveWidth(contentWidth: number): number;
|
|
21
|
+
/** blocked 原因折行宽:去掉竖线前缀,同样留 1 格余量。 */
|
|
22
|
+
export declare function goalBlockedWidth(contentWidth: number): number;
|
|
23
|
+
/** todo 折行:单条最多 2 行,超出部分拼回一行截断加省略号(现状语义)。 */
|
|
24
|
+
export declare function wrapTodoLines(content: string, width: number): string[];
|
|
25
|
+
/**
|
|
26
|
+
* panel 形态的逐行模型:拍平成「每行恰好一个终端行」,渲染时只切可视
|
|
27
|
+
* 窗口(D-5:不用 ScrollBox——内容平移会让折叠头的点击命中错位)。
|
|
28
|
+
* 纯函数、无 React:回归直接断言同一份行模型,避免「渲染一套、断言另一套」。
|
|
29
|
+
*/
|
|
30
|
+
export type GoalPanelRow = {
|
|
31
|
+
readonly kind: 'objective';
|
|
32
|
+
readonly text: string;
|
|
33
|
+
readonly first: boolean;
|
|
34
|
+
readonly softWrapContinuation?: number;
|
|
35
|
+
} | {
|
|
36
|
+
readonly kind: 'status';
|
|
37
|
+
}
|
|
38
|
+
/** blocked 前的空行(与 default 形态的 marginTop 对应)。 */
|
|
39
|
+
| {
|
|
40
|
+
readonly kind: 'gap';
|
|
41
|
+
} | {
|
|
42
|
+
readonly kind: 'blocked';
|
|
43
|
+
readonly text: string;
|
|
44
|
+
readonly softWrapContinuation?: number;
|
|
45
|
+
}
|
|
46
|
+
/** ✓ done/total 折叠头(折叠时同一行带预览)。 */
|
|
47
|
+
| {
|
|
48
|
+
readonly kind: 'header';
|
|
49
|
+
} | {
|
|
50
|
+
readonly kind: 'todo';
|
|
51
|
+
readonly text: string;
|
|
52
|
+
readonly status: TodoPanelItem['status'];
|
|
53
|
+
readonly first: boolean;
|
|
54
|
+
readonly last: boolean;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* panel 形态的行模型:目标/状态/blocked/折叠头/todo 全部拍平成逐行数据。
|
|
58
|
+
* 面板可滚动,因此 todo 不再按高度截断(没有 `…N more`)——所有条目都
|
|
59
|
+
* 进入模型,渲染时只挂载视口内的行。折叠时只保留固定行。
|
|
60
|
+
*/
|
|
61
|
+
export declare function buildGoalPanelRows(input: {
|
|
62
|
+
goal: ChannelGoal | undefined;
|
|
63
|
+
todos: readonly TodoPanelItem[];
|
|
64
|
+
showTodoSection: boolean;
|
|
65
|
+
collapsed: boolean;
|
|
66
|
+
contentWidth: number;
|
|
67
|
+
todoWidth: number;
|
|
68
|
+
}): GoalPanelRow[];
|
|
69
|
+
/** panel 视口行数:height 含顶部 padding(height>1 时占 1 行;缺省不窗口化)。 */
|
|
70
|
+
export declare function goalPanelViewportRows(height: number | undefined): number;
|
|
71
|
+
/** panel 形态的滚动句柄:adapter 只把键交进来,不复制折行/窗口。 */
|
|
72
|
+
export interface GoalTodoPanelScrollHandle {
|
|
73
|
+
scrollBy(delta: number): void;
|
|
74
|
+
}
|
|
14
75
|
/**
|
|
15
76
|
* Live goal + todo panel above the prompt input. Data rides on the channel:
|
|
16
77
|
* `channel.goal` is folded from `goal/change` context events and
|
|
@@ -29,23 +90,29 @@ export declare function GoalStatusChip({ goal, minimal }: {
|
|
|
29
90
|
* id first appears, frozen on completion) — deliberately not derived from
|
|
30
91
|
* session-event timestamps.
|
|
31
92
|
*/
|
|
32
|
-
export declare function GoalTodoPanel({ channel, collapsed, onToggle, variant, visible,
|
|
93
|
+
export declare function GoalTodoPanel({ channel, collapsed, onToggle, idleDismissal, variant, visible, wrapWidth, width, height, scrollRef, }: {
|
|
33
94
|
channel: Channel;
|
|
34
95
|
/** Fold the whole todo section to its summary header line. */
|
|
35
96
|
collapsed?: boolean;
|
|
36
97
|
/** Toggle the fold (click on the header row; shares the hotkey state). */
|
|
37
98
|
onToggle?: () => void;
|
|
99
|
+
/** The host uses the idle toggle to dismiss this footer instead of folding. */
|
|
100
|
+
idleDismissal?: boolean;
|
|
38
101
|
/** 'panel' = 侧栏 Todo Panel 形态:更紧凑(去外层 padding 与折叠
|
|
39
102
|
* 提示行),计时走共享动画时钟(visible=false 时零订阅)。 */
|
|
40
103
|
variant?: 'default' | 'panel';
|
|
41
104
|
/** 侧栏 visible 契约:非 active Panel 时 false——暂停本地计时,
|
|
42
105
|
* store(channel.goal/todos)照常更新,重新打开直接读最新值。 */
|
|
43
106
|
visible?: boolean;
|
|
44
|
-
/** 覆盖 MAX_TODOS(panel variant 按宿主高度传入)。 */
|
|
45
|
-
maxTodos?: number;
|
|
46
107
|
/** panel variant:todo 行按此宽度折行——单条最多 2 行,超出部分截断
|
|
47
|
-
*
|
|
48
|
-
*
|
|
108
|
+
* 加省略号;全部条目都进入行模型,靠滚动查看。缺省(default 形态)
|
|
109
|
+
* 不折行,保持单行 truncate 的 chat 页现状。 */
|
|
49
110
|
wrapWidth?: number;
|
|
111
|
+
/** panel variant:面板宽(含左右 padding)。缺省时按 wrapWidth 反推。 */
|
|
112
|
+
width?: number;
|
|
113
|
+
/** panel variant:面板高(含顶部 padding)。缺省时不窗口化(直接挂载)。 */
|
|
114
|
+
height?: number;
|
|
115
|
+
/** panel variant:滚动句柄(adapter 的 ↑/↓ 与滚轮走这里)。 */
|
|
116
|
+
scrollRef?: React.Ref<GoalTodoPanelScrollHandle>;
|
|
50
117
|
}): React.ReactNode;
|
|
51
118
|
//# sourceMappingURL=GoalTodoPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoalTodoPanel.d.ts","sourceRoot":"","sources":["../../../src/components/GoalTodoPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"GoalTodoPanel.d.ts","sourceRoot":"","sources":["../../../src/components/GoalTodoPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAwC3E;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,OAAe,EAAE,EAAE;IAAE,IAAI,EAAE,WAAW,CAAC;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,CAAA;CACjD,GAAG,KAAK,CAAC,SAAS,CAoUlB"}
|
|
@@ -51,9 +51,9 @@ export function GoalStatusChip({ goal, minimal = false }) {
|
|
|
51
51
|
function PhaseBadge({ phase, roundsStarted, maxGoalRounds, budget, elapsed, }) {
|
|
52
52
|
const color = phaseColor(phase);
|
|
53
53
|
if (budget !== undefined) {
|
|
54
|
-
return (_jsxs(Text, { color: color, dimColor: phase === 'complete', children: [PHASE_LABEL[phase], " \u00B7 ", formatGoalBudget(budget)] }));
|
|
54
|
+
return (_jsxs(Text, { color: color, dimColor: phase === 'complete', wrap: "truncate", children: [PHASE_LABEL[phase], " \u00B7 ", formatGoalBudget(budget)] }));
|
|
55
55
|
}
|
|
56
|
-
return (_jsxs(Text, { color: color, dimColor: phase === 'complete', children: [PHASE_LABEL[phase], " \u00B7 ", roundsStarted, "/", maxGoalRounds, elapsed !== undefined ? ` · ${elapsed}` : ''] }));
|
|
56
|
+
return (_jsxs(Text, { color: color, dimColor: phase === 'complete', wrap: "truncate", children: [PHASE_LABEL[phase], " \u00B7 ", roundsStarted, "/", maxGoalRounds, elapsed !== undefined ? ` · ${elapsed}` : ''] }));
|
|
57
57
|
}
|
|
58
58
|
function TodoGlyph({ status }) {
|
|
59
59
|
switch (status) {
|
|
@@ -73,6 +73,91 @@ function TodoGlyph({ status }) {
|
|
|
73
73
|
function BranchPrefix({ last }) {
|
|
74
74
|
return _jsx(Text, { dimColor: true, children: last ? '└─ ' : '├─ ' });
|
|
75
75
|
}
|
|
76
|
+
/** 目标首行前缀;display width 运行时算(emoji 宽度随终端数据源变化)。 */
|
|
77
|
+
const GOAL_GLYPH = '🎯 ';
|
|
78
|
+
/** blocked 原因行前缀(与 §16 的树形装饰同宽)。 */
|
|
79
|
+
const BLOCKED_BAR = '│ ';
|
|
80
|
+
/**
|
|
81
|
+
* 面板内容宽:面板宽减去左右 padding 各 1。所有折行/截断都以显示单元
|
|
82
|
+
* 宽(stringWidth)为准,不用 JS 字符串长度。
|
|
83
|
+
*/
|
|
84
|
+
export function goalPanelContentWidth(width) {
|
|
85
|
+
return Math.max(4, width - 2);
|
|
86
|
+
}
|
|
87
|
+
/** 目标折行宽:去掉首行 glyph 前缀,再留 1 格余量防 ink 二次折行。 */
|
|
88
|
+
export function goalObjectiveWidth(contentWidth) {
|
|
89
|
+
return Math.max(4, contentWidth - stringWidth(GOAL_GLYPH) - 1);
|
|
90
|
+
}
|
|
91
|
+
/** blocked 原因折行宽:去掉竖线前缀,同样留 1 格余量。 */
|
|
92
|
+
export function goalBlockedWidth(contentWidth) {
|
|
93
|
+
return Math.max(4, contentWidth - stringWidth(BLOCKED_BAR) - 1);
|
|
94
|
+
}
|
|
95
|
+
/** todo 折行:单条最多 2 行,超出部分拼回一行截断加省略号(现状语义)。 */
|
|
96
|
+
export function wrapTodoLines(content, width) {
|
|
97
|
+
const wrapped = wrapTextLines(content, width).map(line => line.text);
|
|
98
|
+
if (wrapped.length <= 2)
|
|
99
|
+
return wrapped;
|
|
100
|
+
return [wrapped[0], wrapText(wrapped.slice(1).join(''), width, 'truncate')];
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* panel 形态的行模型:目标/状态/blocked/折叠头/todo 全部拍平成逐行数据。
|
|
104
|
+
* 面板可滚动,因此 todo 不再按高度截断(没有 `…N more`)——所有条目都
|
|
105
|
+
* 进入模型,渲染时只挂载视口内的行。折叠时只保留固定行。
|
|
106
|
+
*/
|
|
107
|
+
export function buildGoalPanelRows(input) {
|
|
108
|
+
const { goal, todos, showTodoSection, collapsed, contentWidth, todoWidth } = input;
|
|
109
|
+
const rows = [];
|
|
110
|
+
if (goal !== undefined) {
|
|
111
|
+
const objectiveWidth = goalObjectiveWidth(contentWidth);
|
|
112
|
+
const objectiveLines = wrapTextLines(goal.objective, objectiveWidth);
|
|
113
|
+
objectiveLines.forEach((line, index) => {
|
|
114
|
+
rows.push({
|
|
115
|
+
kind: 'objective', text: line.text, first: index === 0,
|
|
116
|
+
// Signed content-end column is the renderer's copy contract: a
|
|
117
|
+
// negative value restores the separator omitted at an exact fill.
|
|
118
|
+
softWrapContinuation: line.continuation
|
|
119
|
+
? (line.gap ? -1 : 1) * (stringWidth(GOAL_GLYPH) + stringWidth(objectiveLines[index - 1].text))
|
|
120
|
+
: undefined,
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
rows.push({ kind: 'status' });
|
|
124
|
+
if (goal.phase === 'blocked' && goal.blockedReason !== undefined) {
|
|
125
|
+
rows.push({ kind: 'gap' });
|
|
126
|
+
const blockedLines = wrapTextLines(goal.blockedReason.message, goalBlockedWidth(contentWidth));
|
|
127
|
+
blockedLines.forEach((line, index) => {
|
|
128
|
+
rows.push({
|
|
129
|
+
kind: 'blocked', text: line.text,
|
|
130
|
+
softWrapContinuation: line.continuation
|
|
131
|
+
? (line.gap ? -1 : 1) * (stringWidth(BLOCKED_BAR) + stringWidth(blockedLines[index - 1].text))
|
|
132
|
+
: undefined,
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (showTodoSection)
|
|
138
|
+
rows.push({ kind: 'header' });
|
|
139
|
+
if (!showTodoSection || collapsed)
|
|
140
|
+
return rows;
|
|
141
|
+
// 全部 todo 进入模型(D-9 修订:可滚动后不再用 `…N more` 隐藏条目)。
|
|
142
|
+
// 视口只挂载 slice 出来的行,列表再长也不会撑破盒高。
|
|
143
|
+
todos.forEach((todo, index) => {
|
|
144
|
+
const last = index === todos.length - 1;
|
|
145
|
+
wrapTodoLines(todo.content, todoWidth).forEach((text, lineIndex) => {
|
|
146
|
+
rows.push({
|
|
147
|
+
kind: 'todo',
|
|
148
|
+
text,
|
|
149
|
+
status: todo.status,
|
|
150
|
+
first: lineIndex === 0,
|
|
151
|
+
last,
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
return rows;
|
|
156
|
+
}
|
|
157
|
+
/** panel 视口行数:height 含顶部 padding(height>1 时占 1 行;缺省不窗口化)。 */
|
|
158
|
+
export function goalPanelViewportRows(height) {
|
|
159
|
+
return height === undefined ? Number.POSITIVE_INFINITY : Math.max(1, height - (height > 1 ? 1 : 0));
|
|
160
|
+
}
|
|
76
161
|
/**
|
|
77
162
|
* Live goal + todo panel above the prompt input. Data rides on the channel:
|
|
78
163
|
* `channel.goal` is folded from `goal/change` context events and
|
|
@@ -91,10 +176,14 @@ function BranchPrefix({ last }) {
|
|
|
91
176
|
* id first appears, frozen on completion) — deliberately not derived from
|
|
92
177
|
* session-event timestamps.
|
|
93
178
|
*/
|
|
94
|
-
export function GoalTodoPanel({ channel, collapsed = false, onToggle, variant = 'default', visible = true,
|
|
179
|
+
export function GoalTodoPanel({ channel, collapsed = false, onToggle, idleDismissal = false, variant = 'default', visible = true, wrapWidth, width, height, scrollRef, }) {
|
|
95
180
|
const goal = channel.goal;
|
|
96
181
|
const objectiveRef = React.useRef(null);
|
|
97
182
|
const goalTooltip = useTooltip(() => {
|
|
183
|
+
// panel 形态目标完整可见、滚动就是全文入口——不挂 hover 全文(D-7);
|
|
184
|
+
// default 形态(chat 页底部 chrome)的 tooltip 原样保留。
|
|
185
|
+
if (variant === 'panel')
|
|
186
|
+
return '';
|
|
98
187
|
const width = objectiveRef.current?.yogaNode?.getComputedWidth() ?? 0;
|
|
99
188
|
if (goal === undefined || width <= 0)
|
|
100
189
|
return '';
|
|
@@ -152,21 +241,83 @@ export function GoalTodoPanel({ channel, collapsed = false, onToggle, variant =
|
|
|
152
241
|
const anyUnfinished = allTodos.some(todo => todo.status !== 'completed');
|
|
153
242
|
const showTodoSection = allTodos.length > 0 &&
|
|
154
243
|
(channel.working || anyUnfinished || goal !== undefined || variant === 'panel');
|
|
244
|
+
// ── panel 几何 / 滚动(default 形态不读这些值) ─────────────────────────
|
|
245
|
+
// 宽度、折行与视口全部按显示单元计;直接挂载(缺省 width/height)时退化
|
|
246
|
+
// 为不窗口化,行为与旧面板一致,夹具可以直接断言行模型。
|
|
247
|
+
const [scrollTop, setScrollTop] = React.useState(0);
|
|
248
|
+
const panelWidth = width ?? (wrapWidth !== undefined ? wrapWidth + 8 : 80);
|
|
249
|
+
const contentWidth = goalPanelContentWidth(panelWidth);
|
|
250
|
+
const todoWidth = wrapWidth !== undefined && wrapWidth > 4 ? wrapWidth : Math.max(10, panelWidth - 8);
|
|
251
|
+
const viewportRows = goalPanelViewportRows(height);
|
|
252
|
+
const panelRows = variant === 'panel'
|
|
253
|
+
? buildGoalPanelRows({ goal, todos, showTodoSection, collapsed, contentWidth, todoWidth })
|
|
254
|
+
: undefined;
|
|
255
|
+
const maxScroll = panelRows === undefined
|
|
256
|
+
? 0
|
|
257
|
+
: Math.max(0, panelRows.length - viewportRows);
|
|
258
|
+
// 渲染永远用 clamp 后的 top:state 短暂超过 maxScroll 也不会画出空白。
|
|
259
|
+
const top = Math.min(scrollTop, maxScroll);
|
|
260
|
+
const scrollBy = React.useCallback((delta) => {
|
|
261
|
+
// 折叠头可能被滚出视口,onMouseLeave 不再触发——这里主动清 hover 底色。
|
|
262
|
+
setHeaderHovered(false);
|
|
263
|
+
setScrollTop(current => Math.max(0, Math.min(maxScroll, current + delta)));
|
|
264
|
+
}, [maxScroll]);
|
|
265
|
+
React.useImperativeHandle(scrollRef, () => ({ scrollBy }), [scrollBy]);
|
|
266
|
+
// 切换会话或 goal 复位;同 id 的 revision 更新保留滚动位置。
|
|
267
|
+
React.useEffect(() => {
|
|
268
|
+
setScrollTop(0);
|
|
269
|
+
setHeaderHovered(false);
|
|
270
|
+
}, [channel.sessionId, goal?.id]);
|
|
271
|
+
// 内容变短 / 折叠 / resize:只收敛 offset,不强制归零。
|
|
272
|
+
React.useEffect(() => {
|
|
273
|
+
setScrollTop(current => Math.min(current, maxScroll));
|
|
274
|
+
}, [maxScroll]);
|
|
155
275
|
if (goal === undefined && !showTodoSection)
|
|
156
276
|
return null;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
//
|
|
161
|
-
//
|
|
277
|
+
// Collapsed preview: the live task when one runs, else the next open row.
|
|
278
|
+
const preview = allTodos.find(todo => todo.status === 'in_progress')
|
|
279
|
+
?? allTodos.find(todo => todo.status !== 'completed');
|
|
280
|
+
// 折叠头两种形态共用同一份结构/行为(点击、hover、▸/▾、✓ done/total、
|
|
281
|
+
// 折叠预览),避免面板形态与 chat 页形态漂移。
|
|
282
|
+
const foldHeader = (key) => (_jsxs(Box, { flexDirection: "row", height: 1, onClick: onToggle, onMouseEnter: () => setHeaderHovered(true), onMouseLeave: () => setHeaderHovered(false), backgroundColor: headerHovered ? 'userMessageBackgroundHover' : undefined, children: [_jsxs(Text, { dimColor: true, children: [collapsed ? '▸' : '▾', " "] }), _jsxs(Text, { dimColor: true, children: ["\u2713 ", doneCount, "/", allTodos.length] }), collapsed && preview !== undefined && (_jsx(Box, { flexGrow: 1, flexShrink: 1, marginLeft: 1, children: preview.status === 'in_progress' ? (_jsxs(Text, { wrap: "truncate", children: [_jsx(Text, { color: "suggestion", children: "\u25CF " }), preview.content] })) : (_jsxs(Text, { wrap: "truncate", dimColor: true, children: ["\u25CB ", preview.content] })) }))] }, key));
|
|
283
|
+
if (variant === 'panel' && panelRows !== undefined) {
|
|
284
|
+
const objectiveIndent = ' '.repeat(stringWidth(GOAL_GLYPH));
|
|
285
|
+
return (_jsx(Box, { ref: clockRef, flexDirection: "column", width: width, height: height, paddingLeft: 1, paddingRight: 1, paddingTop: height !== undefined && height > 1 ? 1 : 0, overflow: "hidden", onWheel: (event) => {
|
|
286
|
+
if (event.deltaY !== 0)
|
|
287
|
+
scrollBy(event.deltaY > 0 ? 1 : -1);
|
|
288
|
+
}, children: panelRows.slice(top, top + viewportRows).map((row, index) => {
|
|
289
|
+
switch (row.kind) {
|
|
290
|
+
case 'objective':
|
|
291
|
+
// 折行是渲染前预算好的(wrapTextLines),每行显式 height={1};
|
|
292
|
+
// 续行用等宽空格对齐首行正文。前提是终端与 stringWidth 对 🎯 的
|
|
293
|
+
// 宽度取法一致:终端把它记成 1 格时,首行正文会比续行左移一格
|
|
294
|
+
// (宽度表差异,面板侧无法同时对齐两种终端)。
|
|
295
|
+
return (_jsxs(Box, { flexDirection: "row", height: 1, softWrapContinuation: row.softWrapContinuation, children: [_jsx(Box, { noSelect: true, marginLeft: -1, paddingLeft: 1, children: _jsx(Text, { color: "suggestion", children: row.first ? GOAL_GLYPH : objectiveIndent }) }), _jsx(Text, { bold: true, wrap: "truncate", children: row.text })] }, index));
|
|
296
|
+
case 'status':
|
|
297
|
+
// 状态独占一行,不再和目标争宽(窄面板下 truncate 兜底)。
|
|
298
|
+
return (_jsx(Box, { flexDirection: "row", height: 1, children: _jsx(PhaseBadge, { phase: goal.phase, roundsStarted: goal.roundsStarted, maxGoalRounds: goal.maxGoalRounds, budget: goal.budget, elapsed: elapsed }) }, index));
|
|
299
|
+
case 'gap':
|
|
300
|
+
return _jsx(Box, { height: 1 }, index);
|
|
301
|
+
case 'blocked':
|
|
302
|
+
return (_jsxs(Box, { flexDirection: "row", height: 1, softWrapContinuation: row.softWrapContinuation, children: [_jsx(Box, { noSelect: true, marginLeft: -1, paddingLeft: 1, children: _jsx(Text, { dimColor: true, children: BLOCKED_BAR }) }), _jsx(Text, { color: "error", wrap: "truncate", children: row.text })] }, index));
|
|
303
|
+
case 'header':
|
|
304
|
+
return foldHeader(index);
|
|
305
|
+
case 'todo':
|
|
306
|
+
return (_jsxs(Box, { flexDirection: "row", height: 1, children: [row.first ? (_jsxs(_Fragment, { children: [_jsx(BranchPrefix, { last: row.last }), _jsx(TodoGlyph, { status: row.status })] })) : (_jsx(Text, { dimColor: true, children: row.last ? ' ' : '\u2502 ' })), _jsx(Text, { wrap: "truncate", dimColor: row.status === 'completed', children: row.text })] }, index));
|
|
307
|
+
}
|
|
308
|
+
}) }));
|
|
309
|
+
}
|
|
310
|
+
// ── default 形态的行预算(panel 形态渲染全部 todo,不走这段) ──
|
|
311
|
+
const budget = MAX_TODOS;
|
|
312
|
+
// 折行形态(宿主传 wrapWidth 时):每条 todo 占 1~2 行,预算按「行」
|
|
313
|
+
// 折算——放不下的整条让位给「…N more」,不撑破盒高。cap:折出 >2 行时
|
|
314
|
+
// 保留第一行、其余拼回一行截断加省略号(wrapText truncate)。
|
|
315
|
+
// 单行形态(chat 页现状):与原 slice 语义逐字节一致。
|
|
162
316
|
const display = [];
|
|
163
317
|
if (wrapWidth !== undefined && wrapWidth > 4) {
|
|
164
318
|
let used = 0;
|
|
165
319
|
for (const todo of todos) {
|
|
166
|
-
const
|
|
167
|
-
const lines = wrapped.length <= 2
|
|
168
|
-
? wrapped
|
|
169
|
-
: [wrapped[0], wrapText(wrapped.slice(1).join(''), wrapWidth, 'truncate')];
|
|
320
|
+
const lines = wrapTodoLines(todo.content, wrapWidth);
|
|
170
321
|
if (display.length > 0 && used + lines.length > budget)
|
|
171
322
|
break;
|
|
172
323
|
display.push({ todo, lines });
|
|
@@ -179,11 +330,8 @@ export function GoalTodoPanel({ channel, collapsed = false, onToggle, variant =
|
|
|
179
330
|
}
|
|
180
331
|
const visibleTodos = display;
|
|
181
332
|
const hidden = todos.length - display.length;
|
|
182
|
-
|
|
183
|
-
const preview = allTodos.find(todo => todo.status === 'in_progress')
|
|
184
|
-
?? allTodos.find(todo => todo.status !== 'completed');
|
|
185
|
-
return (_jsxs(Box, { ref: variant === 'panel' ? clockRef : undefined, flexDirection: "column", paddingLeft: variant === 'panel' ? 1 : 2, paddingRight: variant === 'panel' ? 1 : 2, paddingTop: 1, children: [goal !== undefined && (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", width: "100%", height: 1, children: [_jsx(Text, { color: "suggestion", children: "\uD83C\uDFAF " }), _jsx(Box, { ref: objectiveRef, flexGrow: 1, flexShrink: 1, ...goalTooltip, children: _jsx(Text, { bold: true, wrap: "truncate", children: goal.objective }) }), _jsx(Box, { flexShrink: 0, marginLeft: 1, children: _jsx(PhaseBadge, { phase: goal.phase, roundsStarted: goal.roundsStarted, maxGoalRounds: goal.maxGoalRounds, budget: goal.budget, elapsed: elapsed }) })] }), goal.phase === 'blocked' && goal.blockedReason !== undefined && (_jsxs(Box, { flexDirection: "row", marginTop: 1, height: 1, children: [_jsx(Text, { dimColor: true, children: "\u2502 " }), _jsx(Text, { color: "error", wrap: "truncate", children: goal.blockedReason.message })] }))] })), showTodoSection && (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", height: 1, onClick: onToggle, onMouseEnter: () => setHeaderHovered(true), onMouseLeave: () => setHeaderHovered(false), backgroundColor: headerHovered ? 'userMessageBackgroundHover' : undefined, children: [_jsxs(Text, { dimColor: true, children: [collapsed ? '▸' : '▾', " "] }), _jsxs(Text, { dimColor: true, children: ["\u2713 ", doneCount, "/", allTodos.length] }), collapsed && preview !== undefined && (_jsx(Box, { flexGrow: 1, flexShrink: 1, marginLeft: 1, children: preview.status === 'in_progress' ? (_jsxs(Text, { wrap: "truncate", children: [_jsx(Text, { color: "suggestion", children: "\u25CF " }), preview.content] })) : (_jsxs(Text, { wrap: "truncate", dimColor: true, children: ["\u25CB ", preview.content] })) }))] }), !collapsed && (_jsxs(Box, { flexDirection: "column", children: [visibleTodos.map((item, index) => {
|
|
333
|
+
return (_jsxs(Box, { flexDirection: "column", paddingLeft: 2, paddingRight: 2, paddingTop: 1, children: [goal !== undefined && (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { flexDirection: "row", width: "100%", height: 1, children: [_jsx(Text, { color: "suggestion", children: GOAL_GLYPH }), _jsx(Box, { ref: objectiveRef, flexGrow: 1, flexShrink: 1, ...goalTooltip, children: _jsx(Text, { bold: true, wrap: "truncate", children: goal.objective }) }), _jsx(Box, { flexShrink: 0, marginLeft: 1, children: _jsx(PhaseBadge, { phase: goal.phase, roundsStarted: goal.roundsStarted, maxGoalRounds: goal.maxGoalRounds, budget: goal.budget, elapsed: elapsed }) })] }), goal.phase === 'blocked' && goal.blockedReason !== undefined && (_jsxs(Box, { flexDirection: "row", marginTop: 1, height: 1, children: [_jsx(Text, { dimColor: true, children: BLOCKED_BAR }), _jsx(Text, { color: "error", wrap: "truncate", children: goal.blockedReason.message })] }))] })), showTodoSection && (_jsxs(Box, { flexDirection: "column", children: [foldHeader(), !collapsed && (_jsxs(Box, { flexDirection: "column", children: [visibleTodos.map((item, index) => {
|
|
186
334
|
const last = index === visibleTodos.length - 1 && hidden === 0;
|
|
187
335
|
return item.lines.map((line, li) => (_jsxs(Box, { flexDirection: "row", height: 1, children: [li === 0 ? (_jsxs(_Fragment, { children: [_jsx(BranchPrefix, { last: last }), _jsx(TodoGlyph, { status: item.todo.status })] })) : (_jsx(Text, { dimColor: true, children: last ? ' ' : '\u2502 ' })), _jsx(Text, { wrap: "truncate", dimColor: item.todo.status === 'completed', children: line })] }, li)));
|
|
188
|
-
}), hidden > 0 && (_jsxs(Box, { flexDirection: "row", height: 1, children: [_jsx(BranchPrefix, { last: true }), _jsxs(Text, { dimColor: true, children: ["\u2026 ", hidden, " more"] })] })),
|
|
336
|
+
}), hidden > 0 && (_jsxs(Box, { flexDirection: "row", height: 1, children: [_jsx(BranchPrefix, { last: true }), _jsxs(Text, { dimColor: true, children: ["\u2026 ", hidden, " more"] })] })), _jsxs(Text, { dimColor: true, children: [" ", t(idleDismissal && !channel.working ? 'goal-todo-hide-hint' : 'goal-todo-fold-hint', { key: primaryComboString('todoFold') })] })] }))] }))] }));
|
|
189
337
|
}
|
|
@@ -24,6 +24,14 @@ type Props = {
|
|
|
24
24
|
* mid-stream would re-wrap under the reader; the settled message switches.
|
|
25
25
|
*/
|
|
26
26
|
inlineMathImages?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to strip the model-internal prompt-analysis tag blocks
|
|
29
|
+
* (`<commit_analysis>`, `<context>`, `<function_analysis>`, `<pr_analysis>`)
|
|
30
|
+
* before lexing. Chat prose keeps the default; the plugin panel's
|
|
31
|
+
* `ui.CodeBlock` passes false so its raw code reaches the screen line for
|
|
32
|
+
* line (that API promises raw code, not the chat's pre-processing).
|
|
33
|
+
*/
|
|
34
|
+
stripPromptTags?: boolean;
|
|
27
35
|
};
|
|
28
36
|
/**
|
|
29
37
|
* Tokens that render as their own layout node (a width-aware component)
|
|
@@ -44,7 +52,7 @@ export declare function isStandaloneToken(token: Token): boolean;
|
|
|
44
52
|
* block — the dominant long-output stall (string-width via wrap-ansi, 60%+
|
|
45
53
|
* of CPU in streaming profiles).
|
|
46
54
|
*/
|
|
47
|
-
declare function MarkdownImpl({ children, dimColor, cacheTokens, inlineMathImages }: Props): React.ReactNode;
|
|
55
|
+
declare function MarkdownImpl({ children, dimColor, cacheTokens, inlineMathImages, stripPromptTags }: Props): React.ReactNode;
|
|
48
56
|
/**
|
|
49
57
|
* Memoized Markdown: skips the whole token→ANSI→layout pipeline when the
|
|
50
58
|
* content string is the same reference (see MarkdownImpl's doc comment).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAU,KAAK,KAAK,EAAe,MAAM,QAAQ,CAAA;AAexD;;;;;;;;;;;GAWG;AAEH,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../src/components/Markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAU,KAAK,KAAK,EAAe,MAAM,QAAQ,CAAA;AAexD;;;;;;;;;;;GAWG;AAEH,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAiFD;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAOvD;AAkHD;;;;;;;;;;GAUG;AACH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,QAAgB,EAAE,WAAkB,EAAE,gBAAuB,EAAE,eAAsB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,SAAS,CAwCjJ;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,gDAQpB,CAAA"}
|
|
@@ -200,7 +200,7 @@ function renderTokensToNodes(tokens, highlight, dimColor, inlineMathImages) {
|
|
|
200
200
|
* block — the dominant long-output stall (string-width via wrap-ansi, 60%+
|
|
201
201
|
* of CPU in streaming profiles).
|
|
202
202
|
*/
|
|
203
|
-
function MarkdownImpl({ children, dimColor = false, cacheTokens = true, inlineMathImages = true }) {
|
|
203
|
+
function MarkdownImpl({ children, dimColor = false, cacheTokens = true, inlineMathImages = true, stripPromptTags = true }) {
|
|
204
204
|
const [highlight, setHighlight] = React.useState(null);
|
|
205
205
|
// Inline math is baked into the ANSI text, so the switch must invalidate
|
|
206
206
|
// the memo below (MathBlock nodes subscribe on their own).
|
|
@@ -223,11 +223,11 @@ function MarkdownImpl({ children, dimColor = false, cacheTokens = true, inlineMa
|
|
|
223
223
|
}, []);
|
|
224
224
|
configureMarked();
|
|
225
225
|
const renderedNodes = React.useMemo(() => {
|
|
226
|
-
const source = stripPromptXMLTags(children);
|
|
226
|
+
const source = stripPromptTags ? stripPromptXMLTags(children) : children;
|
|
227
227
|
return renderTokensToNodes(lexWithCache(source, cacheTokens), highlight, dimColor,
|
|
228
228
|
// Dimmed text (thinking) cannot dim an image, so it keeps Unicode.
|
|
229
229
|
inlineMathImages && mathRendering === 'image' && !dimColor);
|
|
230
|
-
}, [children, dimColor, highlight, cacheTokens, mathRendering, inlineMathImages, palette]);
|
|
230
|
+
}, [children, dimColor, highlight, cacheTokens, mathRendering, inlineMathImages, palette, stripPromptTags]);
|
|
231
231
|
return (_jsx(Box, { flexDirection: "column", gap: 1, children: renderedNodes }));
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
@@ -237,4 +237,5 @@ function MarkdownImpl({ children, dimColor = false, cacheTokens = true, inlineMa
|
|
|
237
237
|
export const Markdown = React.memo(MarkdownImpl, (prev, next) => prev.children === next.children &&
|
|
238
238
|
prev.dimColor === next.dimColor &&
|
|
239
239
|
prev.cacheTokens === next.cacheTokens &&
|
|
240
|
-
prev.inlineMathImages === next.inlineMathImages
|
|
240
|
+
prev.inlineMathImages === next.inlineMathImages &&
|
|
241
|
+
prev.stripPromptTags === next.stripPromptTags);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../../src/components/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,EAA8B,KAAK,eAAe,EAAE,MAAM,UAAU,CAAA;AAE3E,OAAO,KAAK,EAAE,OAAO,EAA2E,MAAM,2BAA2B,CAAA;AAEjI,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAe/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAO3C,OAAO,EAAe,KAAK,gBAAgB,EAAqB,MAAM,yBAAyB,CAAA;AAC/F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"MessageList.d.ts","s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