@deepseek-harness-tui/dsh-tui 0.16.1 → 0.17.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 +208 -31
- 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 +6 -5
- package/guide/dsh-tui-guide/configuration.md +6 -5
- package/guide/dsh-tui-guide/getting-started.en.md +27 -1
- package/guide/dsh-tui-guide/getting-started.md +19 -1
- package/guide/dsh-tui-guide/interaction.en.md +22 -10
- package/guide/dsh-tui-guide/interaction.md +18 -8
- package/guide/dsh-tui-guide/plugins.en.md +35 -4
- package/guide/dsh-tui-guide/plugins.md +23 -2
- package/guide/dsh-tui-guide/user-guide.en.md +30 -23
- package/guide/dsh-tui-guide/user-guide.md +29 -22
- package/lib/settings.json +83 -40
- 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 +1 -1
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +3 -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 +17 -2
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +8 -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/agent/capabilities.d.ts +2 -0
- package/lib/types/agent/capabilities.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +8 -0
- 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 +13 -4
- 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 +3 -1
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +2 -2
- 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 +17 -12
- 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 +189 -107
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +232 -22
- 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 +5 -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.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +13 -6
- 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/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +22 -16
- 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/useSidePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.js +24 -6
- 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/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +11 -1
- package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
- 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 +9 -1
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +111 -111
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-mentions.js +16 -10
- 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 +4 -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 +13 -2
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +4 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +2 -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.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +4 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +4 -1
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +24 -1
- 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/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-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 +4 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +46 -33
- 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 +6 -5
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +7 -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/experimental-bundles.d.ts +26 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
- package/lib/types/dsh-adapter/experimental-bundles.js +11 -0
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +1 -1
- 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 +9 -7
- package/lib/types/dsh-adapter/panels.d.ts +21 -7
- 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.d.ts +81 -0
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +318 -70
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +65 -10
- package/lib/types/dsh-adapter/presets.d.ts +15 -6
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +51 -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/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/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/i18n.d.ts +195 -52
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +96 -30
- 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/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 +304 -111
- 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/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 +38 -13
- 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/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 +127 -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
package/lib/types/i18n.js
CHANGED
|
@@ -137,6 +137,8 @@ const dict = {
|
|
|
137
137
|
'export-model': { zh: '- 模型: {{model}}', en: '- Model: {{model}}' },
|
|
138
138
|
'export-session': { zh: '- 会话: {{id}}', en: '- Session: {{id}}' },
|
|
139
139
|
'export-dir': { zh: '- 目录: {{cwd}}', en: '- Directory: {{cwd}}' },
|
|
140
|
+
'mentions-image-adjusted': { zh: '@{{path}} 已适配:{{detail}}', en: '@{{path}} adapted: {{detail}}' },
|
|
141
|
+
'mentions-image-failed': { zh: '@{{path}} 无法附加:{{reason}}', en: '@{{path}} could not be attached: {{reason}}' },
|
|
140
142
|
'mentions-attached': { zh: '已附加 {{count}} 个文件引用', en: { one: 'Attached {{count}} file reference', other: 'Attached {{count}} file references' } },
|
|
141
143
|
'mentions-missing': { zh: '未找到引用: {{paths}}', en: 'References not found: {{paths}}' },
|
|
142
144
|
// Agent Teams: the tag after the sender of a peer message bubble.
|
|
@@ -175,6 +177,7 @@ const dict = {
|
|
|
175
177
|
'input-images-staged': { zh: '已附加 {{count}} 张图片', en: { one: 'Attached {{count}} image', other: 'Attached {{count}} images' } },
|
|
176
178
|
'input-images-staged-adapted': { zh: '已附加 {{count}} 张图片 · {{adapted}} 张已适配', en: { one: 'Attached {{count}} image · {{adapted}} adapted', other: 'Attached {{count}} images · {{adapted}} adapted' } },
|
|
177
179
|
'send-failed': { zh: '发送失败 · {{err}}', en: 'Send failed · {{err}}' },
|
|
180
|
+
'input-not-accepted': { zh: '后端没有接受这条消息,请重试或检查会话状态', en: 'The backend did not accept this message; retry or check the session state' },
|
|
178
181
|
// ── agent team: 用户发给子代理的消息,由父代理转发(模型可见) ──────
|
|
179
182
|
'agent-message-native-envelope': { zh: '请通过 {{tool}} 将下面的消息发送给子代理 {{name}}(id: {{id}})。不要代替子代理回复。\n\n{{text}}', en: 'Use {{tool}} to send the following message to subagent {{name}} (id: {{id}}). Do not answer on behalf of the subagent.\n\n{{text}}' },
|
|
180
183
|
'agent-message-envelope': {
|
|
@@ -215,6 +218,8 @@ const dict = {
|
|
|
215
218
|
'status-rate-limit': { zh: '订阅用量 {{usage}}', en: 'Subscription usage {{usage}}' },
|
|
216
219
|
'interrupt-failed': { zh: '打断请求失败:排队消息没有撤回,仍会在下一回合发送;已取消暂存,避免重复发送', en: 'The interrupt request failed: the queued messages were not withdrawn and will still run next turn; they are no longer held, so nothing is sent twice' },
|
|
217
220
|
'interrupt-unconfirmed': { zh: '无法确认排队消息已撤回:它们仍会在下一回合发送,不再暂存', en: 'Could not confirm the queued messages were withdrawn: they will still run next turn and are no longer held' },
|
|
221
|
+
'interrupt-pending': { zh: '中断请求已发出,正在等待回合停止……', en: 'Interrupt requested; waiting for the turn to stop…' },
|
|
222
|
+
'interrupt-stuck': { zh: '中断迟迟没有生效(工具可能没有响应中断)。可用 /restart:它会中断当前回合并尝试重启;若进程无法正常收尾,退出后会打印恢复本会话的命令(排队输入不保留)。', en: 'The interrupt is not taking effect (a tool may be ignoring it). Use /restart: it interrupts this turn and tries to restart; if the process cannot shut down cleanly it exits and prints the command that resumes this session (queued input is not kept).' },
|
|
218
223
|
'cmd-unavailable-backend': { zh: '/{{cmd}} 在 {{backend}} 内核下不可用', en: '/{{cmd}} is not available on the {{backend}} kernel' },
|
|
219
224
|
'export-user-section': { zh: '## 用户', en: '## User' },
|
|
220
225
|
'export-thinking-section': { zh: '## 思考', en: '## Thinking' },
|
|
@@ -350,8 +355,17 @@ const dict = {
|
|
|
350
355
|
'resume-session-occupied': { zh: '该会话正被其他 TUI 终端占用(进程 {{pid}}),无法进入', en: 'Another TUI terminal holds this session (pid {{pid}}); cannot enter' },
|
|
351
356
|
'resume-mount-busy': { zh: '无法确认该会话是否被其他终端占用(占用检查正忙),请稍后重试', en: 'Could not confirm whether another terminal holds this session (the occupancy check is busy); retry in a moment' },
|
|
352
357
|
'resume-mount-unavailable': { zh: '无法验证该会话的占用状态 · {{detail}}', en: 'Could not verify this session\'s occupancy · {{detail}}' },
|
|
358
|
+
// 损坏账本的出口:只在拒绝句自称 `damaged` 时追加,所以它必须读起来像"针对那个文件"的
|
|
359
|
+
// 建议,而不是通用下一步。
|
|
360
|
+
//
|
|
361
|
+
// 长度由屏幕决定,不由作者决定:通知上限三行,而 120 列终端上实际换行宽度只有 80 列,
|
|
362
|
+
// 再长就会被裁。因此动作(删除 / remove)与前提(其他 / no other)必须挺过裁切,只有
|
|
363
|
+
// 末尾"会自动重建"这句安心话可以让位;`.lock` 同理不再在这里点名 —— 屏幕上放不下,
|
|
364
|
+
// 点名它的是 CLI 的 `--resume` 拒绝句。
|
|
365
|
+
'resume-mount-ledger-repair': { zh: '该文件已损坏:无其他 dsh-tui 运行时删除它,会自动重建', en: 'Damaged: remove it with no other TUI running (it rebuilds)' },
|
|
353
366
|
'session-mount-occupied-short': { zh: '占用 pid {{pid}}', en: 'held by pid {{pid}}' },
|
|
354
367
|
'resume-failed': { zh: '恢复失败 · {{err}}', en: 'Resume failed · {{err}}' },
|
|
368
|
+
'resume-owned-elsewhere': { zh: '另一个 DSH 进程正在写入此会话。请先在该进程(如 dsh web)释放会话,再重试恢复;不要删除会话或锁文件。', en: 'Another DSH process is writing this session. Release it in that process (for example, dsh web), then retry resume. Do not delete the session or lock files.' },
|
|
355
369
|
'resume-attach-failed': { zh: '已恢复会话,但工作区挂载失败 · {{err}}', en: 'Session resumed, but workspace attachment failed · {{err}}' },
|
|
356
370
|
'resume-session-changed': { zh: '会话已切换,恢复已放弃', en: 'The session changed; the resume was dropped' },
|
|
357
371
|
'new-session-while-working': { zh: '回合运行中,无法新建会话', en: 'Cannot start a new session while a turn is running' },
|
|
@@ -435,6 +449,7 @@ const dict = {
|
|
|
435
449
|
// ── questions.ts ─────────────────────────────────────────────────────
|
|
436
450
|
'questionnaire-answered': { zh: '📋 问卷已答 · {{total}} 题', en: '📋 Questionnaire answered · {{total}} questions' },
|
|
437
451
|
// ── utils/loaded-context.ts ─────────────────────────────────────────
|
|
452
|
+
'command-output-truncated': { zh: '…(命令输出已截断:最多 200 行、65536 个 UTF-16 码元、每行 4000 显示单元)', en: '… (command output truncated: 200 lines, 65536 UTF-16 code units, 4000 cells per line)' },
|
|
438
453
|
'context-truncated': { zh: '…(已截断)', en: '… (truncated)' },
|
|
439
454
|
'context-sections': { zh: '系统提示词 {{n}} 段', en: 'System prompt {{n}} sections' },
|
|
440
455
|
'context-files': { zh: '工作区指令 ×{{n}}', en: 'Workspace instructions ×{{n}}' },
|
|
@@ -494,6 +509,9 @@ const dict = {
|
|
|
494
509
|
'status-model': { zh: '模型 {{model}}', en: 'Model {{model}}' },
|
|
495
510
|
'status-working': { zh: '工作中', en: 'working' },
|
|
496
511
|
'status-idle': { zh: '空闲', en: 'idle' },
|
|
512
|
+
'program-status-approval': { zh: '等待授权:{{tool}}', en: 'Approval needed: {{tool}}' },
|
|
513
|
+
'program-status-question': { zh: '等待回答:{{question}}', en: 'Waiting for your answer: {{question}}' },
|
|
514
|
+
'program-status-dialog': { zh: '等待输入:{{title}}', en: 'Waiting for input: {{title}}' },
|
|
497
515
|
'status-state': { zh: '状态 {{state}}', en: 'Status {{state}}' },
|
|
498
516
|
'status-session': { zh: '会话 {{id}}', en: 'Session {{id}}' },
|
|
499
517
|
'status-dir': { zh: '目录 {{cwd}}', en: 'Directory {{cwd}}' },
|
|
@@ -532,7 +550,6 @@ const dict = {
|
|
|
532
550
|
'home-workspace-missing': { zh: '目录不存在', en: 'directory missing' },
|
|
533
551
|
'home-no-workspaces': { zh: '还没有工作区 · 在任意目录启动 dsh-tui 即可自动加入', en: 'No workspaces yet · start dsh-tui in a directory to add it' },
|
|
534
552
|
'home-sessions-title': { zh: '{{name}} 的会话', en: 'Sessions in {{name}}' },
|
|
535
|
-
'home-sessions-count': { zh: '{{n}} 个会话', en: { one: '{{n}} session', other: '{{n}} sessions' } },
|
|
536
553
|
'home-no-sessions': { zh: '这个工作区还没有会话 · Enter 新建一个', en: 'No sessions in this workspace yet · Enter starts one' },
|
|
537
554
|
'home-sessions-loading': { zh: '正在读取会话…', en: 'Loading sessions…' },
|
|
538
555
|
'home-sessions-refreshing': { zh: '后台刷新中', en: 'refreshing' },
|
|
@@ -740,6 +757,7 @@ const dict = {
|
|
|
740
757
|
'reload-kind-activity': { zh: '活动指示', en: 'activity' },
|
|
741
758
|
// ── /restart (process restart with session resume) ────────────────────
|
|
742
759
|
'restart-starting': { zh: '正在重启 dsh-tui,完成后自动恢复当前会话……', en: 'Restarting dsh-tui. The session resumes when it comes back…' },
|
|
760
|
+
'restart-during-turn': { zh: '当前回合仍在运行,正在中断重启;排队输入不会保留。若进程无法正常收尾,退出后会打印恢复本会话的命令。', en: 'The current turn is still running; interrupting and restarting. Queued input is not kept. If the process cannot shut down cleanly it exits and prints the command that resumes this session.' },
|
|
743
761
|
'restart-unavailable': { zh: '当前运行方式不支持进程内重启(未挂载重启通道)。', en: 'Restart is unavailable in this launch mode (no restart channel mounted).' },
|
|
744
762
|
'streaming-folded': { zh: '…(前 {{count}} 字符流式期间已折叠,落定后完整显示)', en: '…(first {{count}} chars folded while streaming; full text renders once the turn settles)' },
|
|
745
763
|
'mermaid-too-wide': { zh: '(图需要 {{width}} 列,当前宽度不足,显示源码)', en: '(diagram needs {{width}} columns; showing the source)' },
|
|
@@ -776,6 +794,7 @@ const dict = {
|
|
|
776
794
|
'btw-fullscreen-title': { zh: '侧问线程', en: 'Side thread' },
|
|
777
795
|
'btw-scene-hints': { zh: 'Enter 追问 · ↑/↓ 选择 · n 新话题 · s 送聊天 · c 复制 · Esc 返回', en: 'Enter ask · ↑/↓ select · n new · s to chat · c copy · Esc back' },
|
|
778
796
|
'btw-panel-unavailable': { zh: 'btw 面板未启用(/settings → dsh-tui.sidePanel.panels)', en: 'btw panel not enabled (/settings → dsh-tui.sidePanel.panels)' },
|
|
797
|
+
'btw-surface-busy': { zh: '侧问已发出,但当前界面挡住了它(关掉浮层后再 /btw)', en: 'Side question is hidden by the current screen — close it, then rerun /btw' },
|
|
779
798
|
'btw-output-unavailable': { zh: '没有收到回答', en: 'No answer received' },
|
|
780
799
|
'btw-answering': { zh: '思考中…', en: 'Answering…' },
|
|
781
800
|
'btw-hint-loading': { zh: 'Esc 取消', en: 'Esc cancel' },
|
|
@@ -973,11 +992,13 @@ const dict = {
|
|
|
973
992
|
'input-sent-after-turn': { zh: '已发送,当前回合结束后处理', en: 'Sent, processed after the current turn' },
|
|
974
993
|
'input-injected': { zh: '已从编辑器发送', en: 'Sent from editor' },
|
|
975
994
|
'input-interrupted-next': { zh: '已插话 · 下一步立即处理', en: 'Interrupted · processed next' },
|
|
995
|
+
'input-steer-pending': { zh: '已插话;中断尚未生效,等待回合恢复后再处理', en: 'Steered; the interrupt has not taken effect — held until the turn can advance' },
|
|
976
996
|
'input-queued-after-turn': { zh: '已排队 · 回合结束后处理', en: 'Queued · processed after the turn' },
|
|
977
997
|
'input-cannot-retract': { zh: '无法撤回:消息可能已被处理,或当前版本不支持', en: 'Cannot retract: the message may already be processed, or this version doesn\'t support it' },
|
|
978
998
|
'input-retracted': { zh: '已撤回,可编辑后重新发送', en: 'Retracted, editable and resendable' },
|
|
979
999
|
'input-empty': { zh: '输入为空,没有可发送的内容', en: 'Empty input, nothing to send' },
|
|
980
1000
|
'input-interrupt-immediate': { zh: '已打断当前回合,正在立即处理', en: 'Interrupted current turn, processing immediately' },
|
|
1001
|
+
'input-interrupt-deferred': { zh: '中断尚未生效:消息已排队,回合结束后处理;若持续卡住,可用 /restart', en: 'The interrupt has not taken effect yet: messages are queued until the turn ends. If it stays stuck, use /restart' },
|
|
981
1002
|
'input-clipboard-empty': { zh: '剪贴板为空', en: 'Clipboard is empty' },
|
|
982
1003
|
'input-editor-unavailable': { zh: '错误:未配置编辑器。请设置 $VISUAL 或 $EDITOR 环境变量。', en: 'Error: No editor configured. Set $VISUAL or $EDITOR environment variable.' },
|
|
983
1004
|
'input-editor-failed': { zh: '外部编辑器失败:{{name}}', en: 'External editor failed: {{name}}' },
|
|
@@ -997,6 +1018,7 @@ const dict = {
|
|
|
997
1018
|
'input-pending-actions-hint': { zh: '撤回 · Esc 打断并暂存排队消息', en: 'Retract · Esc interrupts and holds the queue' },
|
|
998
1019
|
'input-pending-dock-label': { zh: '已暂存 · 打断后保留,不会自动发送', en: 'Held · kept after the interrupt, not sent automatically' },
|
|
999
1020
|
'input-pending-dock-hint': { zh: '按 ↑ 编辑排队消息,⏎ 立即发送', en: 'Press ↑ to edit queued messages, ⏎ to send now' },
|
|
1021
|
+
'input-pending-dock-hint-working': { zh: '按 ↑ 编辑排队消息,回合结束后 ⏎ 发送', en: 'Press ↑ to edit queued messages, ⏎ sends after the turn' },
|
|
1000
1022
|
'input-dock-sent': { zh: '已发送 {{n}} 条暂存消息', en: 'Sent {{n}} held message(s)' },
|
|
1001
1023
|
'input-dock-swapped': { zh: '已交换:草稿暂存,所点消息回到输入框(Ctrl+Z 换回)', en: 'Swapped: the draft is held and the picked message is back in the input (Ctrl+Z swaps back)' },
|
|
1002
1024
|
'input-dock-confirming': { zh: '{{n}} 条暂存消息还在等打断完成,稍后再发送或编辑', en: '{{n}} held message(s) are waiting for the interrupt to finish; send or edit again in a moment' },
|
|
@@ -1066,6 +1088,9 @@ const dict = {
|
|
|
1066
1088
|
'tool-card-source-truncated': { zh: '原始数据已折叠:以上是预览,全文保留在会话日志里', en: 'Source folded: the above is a preview; the session log keeps the full text' },
|
|
1067
1089
|
'tool-card-full-unavailable': { zh: '以上是整理后的视图,没有保留可展开的原始全文', en: 'Formatted view above; no raw full text was kept to expand' },
|
|
1068
1090
|
'tool-card-window-shown': { zh: '… 只显示前 {{shown}}/{{total}} 行(全文仍保留)', en: '… showing the first {{shown}}/{{total}} lines (the full text is kept)' },
|
|
1091
|
+
// 双栏展开态的窗口按「换行后的屏幕行」计(一条源行可能占多行),与上面按源行计
|
|
1092
|
+
// 的 unified 卡不是同一个单位,故单独一条文案,避免「N/M 行」被读成源行数。
|
|
1093
|
+
'tool-card-window-shown-wrapped': { zh: '… 只显示前 {{shown}}/{{total}} 个换行后的行', en: '… showing the first {{shown}}/{{total}} wrapped rows' },
|
|
1069
1094
|
// 单回合用量行(/tokens、/cost、底栏 hover)。缓存段只在后端上报了缓存
|
|
1070
1095
|
// token 时显示,未上报不当作 0。
|
|
1071
1096
|
'usage-turn-summary': { zh: '本轮', en: 'turn' },
|
|
@@ -1085,8 +1110,6 @@ const dict = {
|
|
|
1085
1110
|
'sugg-more-below': { zh: '↓{{n}}', en: '↓{{n}}' },
|
|
1086
1111
|
// 二级补全子项描述(/lang /theme /effort /preset /activity 的 children)
|
|
1087
1112
|
'sugg-status-desc': { zh: '显示当前选择', en: 'Show the current choice' },
|
|
1088
|
-
'sugg-team-on-desc': { zh: '开启 Agent Teams(启用团队 bundle)', en: 'Switch Agent Teams on (enable the team bundle)' },
|
|
1089
|
-
'sugg-team-off-desc': { zh: '关闭 Agent Teams(停用团队 bundle)', en: 'Switch Agent Teams off (disable the team bundle)' },
|
|
1090
1113
|
'sugg-lang-zh-desc': { zh: '切换界面语言到中文', en: 'Switch the UI language to Chinese' },
|
|
1091
1114
|
'sugg-lang-en-desc': { zh: '切换界面语言到英文', en: 'Switch the UI language to English' },
|
|
1092
1115
|
'sugg-theme-auto-desc': { zh: '跟随终端背景自动切换', en: 'Follow the terminal background' },
|
|
@@ -1120,11 +1143,12 @@ const dict = {
|
|
|
1120
1143
|
'help-clear-input': { zh: 'esc 清空输入', en: 'esc to clear input' },
|
|
1121
1144
|
'help-history-nav': { zh: '↑/↓ 历史', en: '↑/↓ for history' },
|
|
1122
1145
|
'help-move-cursor': { zh: '←/→ 移动光标', en: '←/→ to move cursor' },
|
|
1123
|
-
'help-word-jumps': { zh: '{{mod}}←/→ 按词跳转', en: '{{mod}}←/→ for word jumps' },
|
|
1146
|
+
'help-word-jumps': { zh: '{{mod}}←/→ 或 Alt/Option+←/→ 按词跳转', en: '{{mod}}←/→ or Alt/Option+←/→ for word jumps' },
|
|
1124
1147
|
'help-complete-command': { zh: 'tab 补全命令', en: 'tab to complete command' },
|
|
1125
1148
|
'help-cycle-mode': { zh: 'shift+tab 切换模式', en: 'shift+tab to cycle mode' },
|
|
1126
1149
|
'help-open-editor': { zh: '{{key}} 打开编辑器', en: '{{key}} to open editor' },
|
|
1127
|
-
'help-fold-todos': { zh: '{{key}}
|
|
1150
|
+
'help-fold-todos': { zh: '{{key}} 运行时折叠/空闲时隐藏待办', en: '{{key}} to fold running / hide idle todos' },
|
|
1151
|
+
'goal-todo-hide-hint': { zh: '{{key}} 隐藏/恢复', en: '{{key}} to hide/restore' },
|
|
1128
1152
|
'goal-todo-fold-hint': { zh: '{{key}} 折叠', en: '{{key}} to fold' },
|
|
1129
1153
|
// ── goal budget and the backend-neutral /goal (src/channel/goal-command.ts)
|
|
1130
1154
|
'goal-budget-used': { zh: '已用 {{used}} / {{budget}} tokens · {{time}}', en: 'Used {{used}} / {{budget}} tokens · {{time}}' },
|
|
@@ -1196,10 +1220,20 @@ const dict = {
|
|
|
1196
1220
|
'settings-web-key-changed': { zh: '网页搜索设置已变化,请重新打开设置后输入密钥', en: 'Web search settings changed. Reopen settings and enter the key again.' },
|
|
1197
1221
|
// /settings 里 sidePanel.panels 的勾选列表。
|
|
1198
1222
|
'settings-panels-unclaimed': { zh: '暂无面板使用此 id:先保留,等插件注册后生效', en: 'No panel uses this id yet; kept until a plugin registers it' },
|
|
1223
|
+
'settings-panels-temporary': { zh: '临时面板 #{{n}} · 仅本次运行,不保存', en: 'Temporary panel #{{n}} · this run only, not saved' },
|
|
1224
|
+
'settings-panels-legacy-anonymous': { zh: '旧匿名地址无法识别,请移除并重新选择面板', en: 'Old anonymous address: remove it and select the panel again' },
|
|
1199
1225
|
'settings-panels-plugin': { zh: '插件面板({{plugin}})', en: 'Plugin panel ({{plugin}})' },
|
|
1200
1226
|
'settings-panels-advanced': { zh: '高级:编辑原始面板列表', en: 'Advanced: edit raw panel list' },
|
|
1227
|
+
'settings-fields-advanced': { zh: '高级:编辑原始字段列表', en: 'Advanced: edit raw field list' },
|
|
1228
|
+
'settings-fields-unclaimed': { zh: '未认领:先保留,等插件注册后生效', en: 'Unclaimed; kept until a plugin registers it' },
|
|
1229
|
+
'settings-fields-moved': { zh: '改自 {{slot}}', en: 'moved from {{slot}}' },
|
|
1230
|
+
'settings-fields-slot-left-tail': { zh: '左组末尾', en: 'Left group tail' },
|
|
1231
|
+
'settings-fields-slot-right-head': { zh: '右组开头', en: 'Right group head' },
|
|
1232
|
+
'settings-fields-slot-right-tail': { zh: '右组末尾', en: 'Right group tail' },
|
|
1201
1233
|
'settings-panels-min-one': { zh: '至少保留一个启用的面板', en: 'Keep at least one panel enabled' },
|
|
1234
|
+
'settings-page-general': { zh: '常规', en: 'General' },
|
|
1202
1235
|
'settings-hint-list': { zh: '**Enter** 进入/编辑/切换(改动即保存) · Esc 退出', en: '**Enter** open/edit/toggle (auto-saves) · Esc exit' },
|
|
1236
|
+
'settings-hint-list-pages': { zh: '**Enter** 进入/编辑/切换(改动即保存) · **Tab** 切换页 · Esc 退出', en: '**Enter** open/edit/toggle (auto-saves) · **Tab** switch page · Esc exit' },
|
|
1203
1237
|
'settings-hint-group': { zh: '**Enter** 编辑/切换(改动即保存) · Esc 返回', en: '**Enter** edit/toggle (auto-saves) · Esc back' },
|
|
1204
1238
|
'settings-hint-edit': { zh: '**Enter** 确认并保存 · Esc 取消', en: '**Enter** to confirm & save · Esc to cancel' },
|
|
1205
1239
|
// ── 会话与工作区列表行:行、计数、筛选、预览 ─────────────────────────
|
|
@@ -1235,6 +1269,7 @@ const dict = {
|
|
|
1235
1269
|
'hint-rewind-back': { zh: '**Enter** 回退 · Esc 返回', en: '**Enter** to rewind · Esc to back' },
|
|
1236
1270
|
'statusline-hint-select': { zh: 'esc 返回输入', en: 'esc to return to input' },
|
|
1237
1271
|
'statusline-hint-working': { zh: 'esc 中断', en: 'esc to interrupt' },
|
|
1272
|
+
'statusline-hint-interrupting': { zh: '中断中…', en: 'interrupting…' },
|
|
1238
1273
|
'statusline-hint-shortcuts': { zh: '? 查看快捷键', en: '? for shortcuts' },
|
|
1239
1274
|
// ── 底栏字段 hover 明细(补充行读出;技术标签 ctx/free/read 等保持不译)──
|
|
1240
1275
|
'status-detail-session-id': { zh: '会话日志目录与此 id 同名', en: 'the session log directory is named after this id' },
|
|
@@ -1306,6 +1341,7 @@ const dict = {
|
|
|
1306
1341
|
'ext-decision-pending': { zh: '正在等待插件决定({{event}})…', en: 'Waiting for a plugin decision ({{event}})…' },
|
|
1307
1342
|
'ext-stale-dropped': { zh: '等待插件期间会话已切换,该条输入已丢弃', en: 'Session switched while a plugin decided — the input was dropped' },
|
|
1308
1343
|
'ext-shortcut-failed': { zh: '插件快捷键 {{combo}} 执行失败', en: 'Plugin shortcut {{combo}} failed' },
|
|
1344
|
+
'ext-status-field-failed': { zh: '插件底栏字段 {{key}} 操作失败', en: 'Plugin footer field {{key}} failed' },
|
|
1309
1345
|
'command-invoke-denied': { zh: '命令调用已被授权文件拒绝(commands.invoke 已撤销)', en: 'Command invocation denied by the grants file (commands.invoke revoked)' },
|
|
1310
1346
|
'command-invoke-denied-owner': {
|
|
1311
1347
|
zh: '命令 "/{{name}}" 的调用已被拒绝——注册它的插件 "{{owner}}" 已被撤销 commands.invoke',
|
|
@@ -1362,9 +1398,31 @@ const dict = {
|
|
|
1362
1398
|
zh: '本 profile 没有额外插件:只有安装自带与 dsh-tui 自身。装好后用 /plugin list 复查。',
|
|
1363
1399
|
en: 'No extra plugins in this profile: only the installation-supplied bundles and dsh-tui itself. Run /plugin list again after installing one.',
|
|
1364
1400
|
},
|
|
1365
|
-
'plugins-
|
|
1366
|
-
zh: '
|
|
1367
|
-
en: '
|
|
1401
|
+
'plugins-experimental-header': {
|
|
1402
|
+
zh: 'DSH 自带实验性功能(EXP,{{count}} 项):',
|
|
1403
|
+
en: 'Experimental features shipped by DSH (EXP, {{count}}):',
|
|
1404
|
+
},
|
|
1405
|
+
'plugins-experimental-enable': {
|
|
1406
|
+
zh: '启用:/plugin enable {{bundle}}',
|
|
1407
|
+
en: 'Enable: /plugin enable {{bundle}}',
|
|
1408
|
+
},
|
|
1409
|
+
'plugins-experimental-disable': {
|
|
1410
|
+
zh: '关闭:/plugin disable {{bundle}}',
|
|
1411
|
+
en: 'Disable: /plugin disable {{bundle}}',
|
|
1412
|
+
},
|
|
1413
|
+
// 「用途」一行只回答「开完多出什么」,命令只留躲不掉的那一个:机制(索引在内存、
|
|
1414
|
+
// 极简模式如何取舍)与迁移细节都属于 README,这一屏是目录而不是说明书。
|
|
1415
|
+
'plugins-experimental-team-hint': {
|
|
1416
|
+
zh: '用途:Agent 分工合作,/team status 看状态',
|
|
1417
|
+
en: 'Use: agents divide the work; /team status shows the roster',
|
|
1418
|
+
},
|
|
1419
|
+
'plugins-experimental-auto-review-hint': {
|
|
1420
|
+
zh: '用途:/permission auto,模型自主审批',
|
|
1421
|
+
en: 'Use: /permission auto — the model approves on its own',
|
|
1422
|
+
},
|
|
1423
|
+
'plugins-experimental-session-search-hint': {
|
|
1424
|
+
zh: '用途:Agent 能翻本工作区的历史会话',
|
|
1425
|
+
en: 'Use: agents can browse past sessions in this workspace',
|
|
1368
1426
|
},
|
|
1369
1427
|
'plugins-bundles-header': { zh: '已装 bundle(数据来自 profile 插件服务):', en: 'Installed bundles (from the profile plugin service):' },
|
|
1370
1428
|
'plugins-bundles-official': { zh: '安装自带', en: 'Official (installation-supplied)' },
|
|
@@ -1659,6 +1717,7 @@ const dict = {
|
|
|
1659
1717
|
'question-fold-waiting': { zh: '正在等你回答', en: 'Waiting for your answer' },
|
|
1660
1718
|
'question-fold-expand': { zh: '{{combo}} 展开', en: '{{combo}} to expand' },
|
|
1661
1719
|
'question-fold-hint': { zh: '{{combo}} 折叠 / 点标题行收起', en: '{{combo}} to fold / click the header' },
|
|
1720
|
+
'question-detail-scroll': { zh: '… {{count}} 行未显示 · {{up}}/{{down}} 翻阅', en: { one: '… {{count}} line outside view · {{up}}/{{down}} to scroll', other: '… {{count}} lines outside view · {{up}}/{{down}} to scroll' } },
|
|
1662
1721
|
'question-submit-selection': { zh: '提交选择(Enter)', en: 'Submit selection (Enter)' },
|
|
1663
1722
|
'question-custom-tab': { zh: '自定义回答', en: 'Custom answer' },
|
|
1664
1723
|
'question-attached-label': { zh: '(附加:{{label}})', en: '(attached: {{label}})' },
|
|
@@ -1674,9 +1733,11 @@ const dict = {
|
|
|
1674
1733
|
'approval-always': { zh: '允许,且不再询问', en: 'Yes, and don\'t ask again' },
|
|
1675
1734
|
'approval-hint': { zh: '↑/↓ 选择 · Enter 确认 · Esc 拒绝', en: '↑/↓ select · Enter confirm · Esc reject' },
|
|
1676
1735
|
'approval-hint-feedback': { zh: '↑/↓/Tab 选择 · Enter 确认 · 选中拒绝后可输入理由 · Esc 拒绝', en: '↑/↓/Tab select · Enter confirm · on No, type a reason · Esc reject' },
|
|
1736
|
+
'approval-hint-preview': { zh: '↑/↓ 选择 · Enter 确认 · Esc 拒绝 · {{up}}/{{down}} 翻阅预览', en: '↑/↓ select · Enter confirm · Esc reject · {{up}}/{{down}} scroll preview' },
|
|
1677
1737
|
'approval-feedback-row': { zh: '{{label}}:{{reason}}', en: '{{label}}: {{reason}}' },
|
|
1678
1738
|
'approval-subagent': { zh: '来自子代理 {{id}} 的请求', en: 'Requested by subagent {{id}}' },
|
|
1679
1739
|
'approval-blocked-path': { zh: '涉及允许目录之外的路径:{{path}}', en: 'Outside the allowed directories: {{path}}' },
|
|
1740
|
+
'panel-preview-omitted': { zh: '… 另有 {{count}} 行未显示', en: { one: '… {{count}} more line not shown', other: '… {{count}} more lines not shown' } },
|
|
1680
1741
|
// ── components/Subagent*.tsx ────────────────────────────────────────
|
|
1681
1742
|
'subagent-model': { zh: '模型', en: 'Model' },
|
|
1682
1743
|
'subagent-duration': { zh: '时长', en: 'Duration' },
|
|
@@ -1742,29 +1803,35 @@ const dict = {
|
|
|
1742
1803
|
'team-last-run-failed': { zh: '上一轮失败 {{error}}', en: 'last run failed {{error}}' },
|
|
1743
1804
|
'team-task-blocked': { zh: '阻塞', en: 'blocked' },
|
|
1744
1805
|
'team-failure': { zh: '团队记录被拒:{{failure}}', en: 'Team record rejected: {{failure}}' },
|
|
1745
|
-
// ── /team
|
|
1806
|
+
// ── /team:团队状态(开关是 /plugin enable|disable,见 docs/agent-teams-design.md「开关机制」)──
|
|
1746
1807
|
'team-cmd-unavailable': { zh: '当前内核没有 Agent Teams。', en: 'The current kernel has no Agent Teams.' },
|
|
1747
|
-
'team-cmd-usage': { zh: '未知子命令「{{sub}}」。用法:/team [status]
|
|
1808
|
+
'team-cmd-usage': { zh: '未知子命令「{{sub}}」。用法:/team [status]', en: 'Unknown subcommand "{{sub}}". Usage: /team [status]' },
|
|
1809
|
+
'team-cmd-switch-moved': {
|
|
1810
|
+
zh: '团队开关已改为 /plugin enable|disable {{bundle}};/team 只报告状态。',
|
|
1811
|
+
en: 'The team switch moved to /plugin enable|disable {{bundle}}; /team only reports status.',
|
|
1812
|
+
},
|
|
1813
|
+
'team-cmd-not-enabled': {
|
|
1814
|
+
zh: '团队服务未运行(bundle 未启用、启用后尚未生效,或激活失败)。开启/应用:/plugin enable {{bundle}};需要时重启。',
|
|
1815
|
+
en: 'The team service is not running (bundle off, enabled but not applied yet, or activation failed). Enable/apply with /plugin enable {{bundle}}; restart if needed.',
|
|
1816
|
+
},
|
|
1817
|
+
'team-cmd-no-manager-route': {
|
|
1818
|
+
zh: '本次启动没有 profile 插件服务,无法在会话内切换。在终端用 dsh plugin --profile {{profile}} add {{bundle}}@<已装 DSH 版本>(关闭用 remove),然后重启;版本须与已装 DSH 完全一致。',
|
|
1819
|
+
en: 'This launch has no profile plugin service, so the team cannot be switched here. In a terminal run dsh plugin --profile {{profile}} add {{bundle}}@<your DSH version> (remove to switch off), then restart; the version must match the installed DSH exactly.',
|
|
1820
|
+
},
|
|
1821
|
+
'team-cmd-bundle-absent': {
|
|
1822
|
+
zh: '本次运行的 DSH 安装不自带团队包(/plugin list 不显示它):先把 DSH 换到自带团队包的版本线,再重启并开启。',
|
|
1823
|
+
en: 'The running DSH installation does not ship the team bundle (/plugin list does not show it): switch DSH to a line that ships the team packages first, then restart and enable it.',
|
|
1824
|
+
},
|
|
1748
1825
|
'team-cmd-no-manager': {
|
|
1749
|
-
zh: '本次启动没有 profile
|
|
1750
|
-
en: 'This launch has no profile plugin service
|
|
1826
|
+
zh: '本次启动没有 profile 插件服务:只能报告团队服务状态。',
|
|
1827
|
+
en: 'This launch has no profile plugin service: only the team service state can be reported.',
|
|
1751
1828
|
},
|
|
1752
1829
|
'team-cmd-bundle': { zh: '团队 bundle:{{state}}', en: 'Team bundle: {{state}}' },
|
|
1830
|
+
'team-cmd-bundle-unknown': { zh: '团队 bundle:未知(插件服务没有列出该包)', en: 'Team bundle: unknown (the plugin service does not list it)' },
|
|
1753
1831
|
'team-cmd-on': { zh: '已开启', en: 'on' },
|
|
1754
1832
|
'team-cmd-off': { zh: '已关闭', en: 'off' },
|
|
1755
|
-
'team-cmd-already-on': { zh: '团队 bundle 已开启,无需改动。', en: 'The team bundle is already on; nothing to change.' },
|
|
1756
|
-
'team-cmd-not-installed': {
|
|
1757
|
-
zh: '团队 bundle 未安装。在这里安装:/plugin install {{bundle}}(装完即开启);或在终端:dsh plugin --profile {{profile}} add {{bundle}}',
|
|
1758
|
-
en: 'The team bundle is not installed. Install it here with /plugin install {{bundle}} (it is switched on once installed), or in a terminal with dsh plugin --profile {{profile}} add {{bundle}}',
|
|
1759
|
-
},
|
|
1760
|
-
'team-cmd-kernel-unsupported': {
|
|
1761
|
-
zh: '运行中的 DSH {{version}} 没有本应用能读取的团队 bundle:先把 DSH 换成 {{lines}} 之一,再安装同版本的团队 bundle。',
|
|
1762
|
-
en: 'The running DSH {{version}} has no team bundle this app can read: switch DSH to one of {{lines}} first, then install the team bundle of that same version.',
|
|
1763
|
-
},
|
|
1764
|
-
'team-cmd-off-not-installed': { zh: '团队 bundle 未安装,团队本就是关闭的,无需改动。', en: 'The team bundle is not installed, so the team is already off; nothing to change.' },
|
|
1765
1833
|
'team-cmd-service': { zh: '团队服务:{{state}}', en: 'Team service: {{state}}' },
|
|
1766
1834
|
'team-cmd-running': { zh: '运行中', en: 'running' },
|
|
1767
|
-
'team-cmd-stopped': { zh: '未运行', en: 'not running' },
|
|
1768
1835
|
'team-cmd-pending-on': { zh: 'profile 已开启团队,但服务没有运行:重启后生效,或服务激活失败(见日志)。', en: 'The profile has the team on but the service is not running: it applies after a restart, or the service failed to activate (see the log).' },
|
|
1769
1836
|
'team-cmd-pending-off': { zh: 'profile 已关闭团队,但服务仍在运行:重启后生效。', en: 'The profile has the team off but the service is still running: it applies after a restart.' },
|
|
1770
1837
|
'team-cmd-no-members': { zh: '本会话没有 teammate。', en: 'No teammates in this session.' },
|
|
@@ -2143,7 +2210,7 @@ const dict = {
|
|
|
2143
2210
|
'cmd-desc-migrate': { zh: '从其他编程代理导入对话(claude-code/codex/omp/zcode/grok-build)' },
|
|
2144
2211
|
'cmd-desc-init': { zh: '在工作目录创建 AGENTS.md' },
|
|
2145
2212
|
'cmd-desc-agents': { zh: '查看本会话的子代理' },
|
|
2146
|
-
'cmd-desc-team': { zh: '
|
|
2213
|
+
'cmd-desc-team': { zh: '团队模式:团队服务运行时查看状态(开关用 /plugin enable|disable)' },
|
|
2147
2214
|
'cmd-desc-jobs': { zh: '查看本会话的后台任务' },
|
|
2148
2215
|
'cmd-desc-panel': { zh: '侧栏面板:开关 / 聚焦 / 缩放 / 切换', en: 'Side panel: toggle / focus / zoom / switch' },
|
|
2149
2216
|
'cmd-desc-kernel': { zh: '选择内核(切换后重启进入)', en: 'Choose the kernel (restarts into it)' },
|
|
@@ -2263,7 +2330,7 @@ const dict = {
|
|
|
2263
2330
|
'sugg-panel-zoom-desc': { zh: '缩放当前面板', en: 'Zoom the active panel' },
|
|
2264
2331
|
'sugg-panel-id-desc': { zh: '打开该面板', en: 'Open this panel' },
|
|
2265
2332
|
// /plugin 的子命令提示(补全树;动态实参见 plugin-completions.ts)
|
|
2266
|
-
'sugg-plugin-list-desc': { zh: '
|
|
2333
|
+
'sugg-plugin-list-desc': { zh: '列出额外插件与实验性功能', en: 'List added plugins and experimental features' },
|
|
2267
2334
|
'sugg-plugin-info-desc': { zh: '查单个条目或待装 spec', en: 'Describe an installed plugin or an install spec' },
|
|
2268
2335
|
'sugg-plugin-registries-desc': { zh: '查看安装源', en: 'Show where installations ask' },
|
|
2269
2336
|
'sugg-plugin-check-desc': { zh: '校验清单,不安装', en: 'Validate a manifest without installing it' },
|
|
@@ -2293,7 +2360,7 @@ const dict = {
|
|
|
2293
2360
|
'cmd-desc-hooks': { zh: '查看 hooks 状态' },
|
|
2294
2361
|
'cmd-desc-mcp': { zh: '查看 MCP 状态' },
|
|
2295
2362
|
'cmd-desc-skills': { zh: '列出所有可用技能' },
|
|
2296
|
-
'cmd-desc-plugin': { zh: '插件诊断;`list`
|
|
2363
|
+
'cmd-desc-plugin': { zh: '插件诊断;`list` 列额外插件与可开启的实验性功能,`info` 查单个条目或待装 spec' },
|
|
2297
2364
|
'cmd-desc-update': { zh: '更新 dsh-tui 并重启' },
|
|
2298
2365
|
// Misc
|
|
2299
2366
|
'cmd-desc-vim': { zh: '切换 vim 模式' },
|
|
@@ -2360,8 +2427,7 @@ const dict = {
|
|
|
2360
2427
|
'traj-hint-failure': { zh: '{{key}} 看完整轨迹', en: '{{key}} for the full trajectory' },
|
|
2361
2428
|
// ── screens/Launchpad.tsx(开屏落地页:取代旧的"只有标题的空白会话")───────
|
|
2362
2429
|
// 落地页是"启动后第一屏":大标题与吉祥物居中、输入框在下、再往下是
|
|
2363
|
-
//
|
|
2364
|
-
// 文案要短、要是动作而不是说明。
|
|
2430
|
+
// 信息与快捷入口。发送首句或开始多行编辑时进入聊天页;这里的文案要短。
|
|
2365
2431
|
'launchpad-placeholder': { zh: '说点什么,或输入 / 看命令…', en: 'Say something, or type / for commands…' },
|
|
2366
2432
|
// (launchpad-param-*-label / launchpad-param-mode-* 六键已删:2026-10 第四版
|
|
2367
2433
|
// 参数行只画值不画字段名——用户原话"大家都知道是模型啊,不用画蛇添足";
|
|
@@ -2374,8 +2440,8 @@ const dict = {
|
|
|
2374
2440
|
// 轮换顺序 = launchpad-tip → launchpad-tip-2 → launchpad-tip-3 → 回到首条;
|
|
2375
2441
|
// 首启那一条(launchpad-first-run)优先级最高,不参与轮换。
|
|
2376
2442
|
'launchpad-tip-2': {
|
|
2377
|
-
zh: 'Ctrl+V 直接粘贴,
|
|
2378
|
-
en: 'Ctrl+V pastes;
|
|
2443
|
+
zh: 'Ctrl+V 直接粘贴,Shift+Enter 进入聊天页换行',
|
|
2444
|
+
en: 'Ctrl+V pastes; Shift+Enter opens chat with a newline',
|
|
2379
2445
|
},
|
|
2380
2446
|
'launchpad-tip-3': {
|
|
2381
2447
|
zh: '参数行四段都能点:模型 · 思考深度 · 模式 · 权限',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Color, TextStyles } from './styles.js';
|
|
2
|
-
/** Whether chalk's color level was boosted to 3 for
|
|
2
|
+
/** Whether chalk's color level was boosted to 3 for VS Code or Windows Terminal. */
|
|
3
3
|
export declare const CHALK_BOOSTED_FOR_XTERMJS: boolean;
|
|
4
4
|
/** Whether chalk's color level was clamped to 2 for tmux passthrough. */
|
|
5
5
|
export declare const CHALK_CLAMPED_FOR_TMUX: boolean;
|
|
@@ -40,4 +40,10 @@ export declare function applyColor(text: string, color: Color | undefined): stri
|
|
|
40
40
|
* @returns the opening SGR sequence, or '' when no color applies.
|
|
41
41
|
*/
|
|
42
42
|
export declare function backgroundOpenCode(color: Color | undefined): string;
|
|
43
|
+
/**
|
|
44
|
+
* The opening SGR for a raw foreground color, without text or a reset.
|
|
45
|
+
* @param color - raw color; missing or disabled colors yield an empty string.
|
|
46
|
+
* @returns the capability-aware foreground opening sequence.
|
|
47
|
+
*/
|
|
48
|
+
export declare function foregroundOpenCode(color: Color | undefined): string;
|
|
43
49
|
//# sourceMappingURL=colorize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorize.d.ts","sourceRoot":"","sources":["../../../src/ink/colorize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"colorize.d.ts","sourceRoot":"","sources":["../../../src/ink/colorize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAmEpD,oFAAoF;AACpF,eAAO,MAAM,yBAAyB,SAA8B,CAAA;AACpE,yEAAyE;AACzE,eAAO,MAAM,sBAAsB,SAA2B,CAAA;AAE9D,mEAAmE;AACnE,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,YAAY,CAAA;AAWnD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GACnB,KAAK,MAAM,EACX,OAAO,MAAM,GAAG,SAAS,EACzB,MAAM,SAAS,KACd,MAgGF,CAAA;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,MAAM,CA4CxE;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAKzE;AAQD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAKnE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAKnE"}
|
|
@@ -7,15 +7,24 @@ import chalk from 'chalk';
|
|
|
7
7
|
* through to the -256color regex → level 2. At level 2, chalk.rgb()
|
|
8
8
|
* downgrades to the nearest 6×6×6 cube color: rgb(215,119,87) → idx 174 rgb(215,135,135) — washed-out salmon.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Windows Terminal has had truecolor since 2019 and sets WT_SESSION instead
|
|
11
|
+
* (forwarded into WSL), but neither COLORTERM nor TERM_PROGRAM; the same 256
|
|
12
|
+
* round-trip there collapses every dark diff/card tint onto one grey.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* Gated on level === 2 (not < 3) to preserve FORCE_COLOR=0 (level 0) and
|
|
15
|
+
* already-detected truecolor. NO_COLOR keeps chalk's existing detection
|
|
16
|
+
* semantics; this module does not add a separate NO_COLOR policy. Desktop
|
|
17
|
+
* VS Code sets COLORTERM=truecolor itself, so this is a no-op there (already 3).
|
|
18
|
+
* An explicit FORCE_COLOR=2 is a caller asking for 256 colors, so neither
|
|
19
|
+
* VS Code nor Windows Terminal overrides it.
|
|
20
|
+
*
|
|
21
|
+
* Must run BEFORE the tmux clamp — inside either truecolor host, tmux's
|
|
22
|
+
* passthrough limitation wins and we want level 2.
|
|
16
23
|
*/
|
|
17
24
|
function boostChalkLevelForXtermJs() {
|
|
18
|
-
|
|
25
|
+
const truecolorHost = process.env.TERM_PROGRAM === 'vscode'
|
|
26
|
+
|| Boolean(process.env.WT_SESSION);
|
|
27
|
+
if (truecolorHost && process.env.FORCE_COLOR !== '2' && chalk.level === 2) {
|
|
19
28
|
chalk.level = 3;
|
|
20
29
|
return true;
|
|
21
30
|
}
|
|
@@ -54,8 +63,8 @@ function clampChalkLevelForTmux() {
|
|
|
54
63
|
}
|
|
55
64
|
// Computed once at module load — terminal/tmux environment doesn't change mid-session.
|
|
56
65
|
// Order matters: boost first so the tmux clamp can re-clamp if tmux is running
|
|
57
|
-
// inside
|
|
58
|
-
/** Whether chalk's color level was boosted to 3 for
|
|
66
|
+
// inside either truecolor host. Exported for debugging — tree-shaken if unused.
|
|
67
|
+
/** Whether chalk's color level was boosted to 3 for VS Code or Windows Terminal. */
|
|
59
68
|
export const CHALK_BOOSTED_FOR_XTERMJS = boostChalkLevelForXtermJs();
|
|
60
69
|
/** Whether chalk's color level was clamped to 2 for tmux passthrough. */
|
|
61
70
|
export const CHALK_CLAMPED_FOR_TMUX = clampChalkLevelForTmux();
|
|
@@ -237,3 +246,15 @@ export function backgroundOpenCode(color) {
|
|
|
237
246
|
const end = styled.indexOf(SGR_OPEN_MARKER);
|
|
238
247
|
return end <= 0 ? '' : styled.slice(0, end);
|
|
239
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* The opening SGR for a raw foreground color, without text or a reset.
|
|
251
|
+
* @param color - raw color; missing or disabled colors yield an empty string.
|
|
252
|
+
* @returns the capability-aware foreground opening sequence.
|
|
253
|
+
*/
|
|
254
|
+
export function foregroundOpenCode(color) {
|
|
255
|
+
if (!color)
|
|
256
|
+
return '';
|
|
257
|
+
const styled = colorize(SGR_OPEN_MARKER, color, 'foreground');
|
|
258
|
+
const end = styled.indexOf(SGR_OPEN_MARKER);
|
|
259
|
+
return end <= 0 ? '' : styled.slice(0, end);
|
|
260
|
+
}
|
|
@@ -9,6 +9,7 @@ import { type CursorDeclarationSetter } from "./CursorDeclarationContext.js";
|
|
|
9
9
|
type Props = {
|
|
10
10
|
readonly children: ReactNode;
|
|
11
11
|
readonly stdin: NodeJS.ReadStream;
|
|
12
|
+
readonly ownsStdin?: () => boolean;
|
|
12
13
|
readonly stdout: NodeJS.WriteStream;
|
|
13
14
|
readonly stderr: NodeJS.WriteStream;
|
|
14
15
|
readonly exitOnCtrlC: boolean;
|
|
@@ -148,7 +149,7 @@ export default class App extends PureComponent<Props, State> {
|
|
|
148
149
|
handleExit: (error?: Error) => void;
|
|
149
150
|
handleTerminalFocus: (isFocused: boolean) => void;
|
|
150
151
|
/**
|
|
151
|
-
* Re-assert raw mode after an
|
|
152
|
+
* Re-assert owned raw mode after an external reset or SIGCONT. While the
|
|
152
153
|
* job is stopped the shell owns the tty and leaves it in its own cooked
|
|
153
154
|
* modes; the job is expected to restore its termios when it continues.
|
|
154
155
|
* The readable listener survives the stop, so only the termios flag comes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../src/ink/components/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAW7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIpD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAEN,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,WAAW,EAEhB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAGN,KAAK,cAAc,EACnB,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EAAE,eAAe,EAAa,MAAM,wBAAwB,CAAC;AAqBpE,OAAiC,EAEhC,KAAK,uBAAuB,EAC5B,MAAM,+BAA+B,CAAC;AAcvC,KAAK,KAAK,GAAG;IACZ,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../src/ink/components/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAW7D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAIpD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAEN,KAAK,aAAa,EAElB,KAAK,SAAS,EACd,KAAK,WAAW,EAEhB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAGN,KAAK,cAAc,EACnB,MAA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AAE,MAAM,CAAC;QAChB,OAAO,EAAE,OAAO,CAAC;KACjB,GAAG,IAAI,CAAQ;IAEhB;;;;;OAKG;IACH,iBAAiB,IAAI,IAAI;IAkBzB;;;;;;;OAOG;IACH,iBAAiB,IAAI,IAAI;IAgCzB,aAAa,SAAc;IAM3B,OAAO,CAAC,iBAAiB,CAAiD;IAC1E,OAAO,CAAC,eAAe;IAiBvB,QAAQ,GAAI,MAAM,MAAM,KAAG,IAAI,CAO7B;IAGF,kBAAkB,IAAI,OAAO;IAGpB,MAAM;IA6CN,iBAAiB;IASjB,oBAAoB;IAO7B,4EAA4E;IAC5E,iBAAiB;IAqBR,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE;QAAE,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE;IA0C/E,sBAAsB,QAAO,IAAI,CAqB/B;IAEF,gBAAgB,GAAI,WAAW,OAAO,KAAG,IAAI,CAoF3C;IAGF,eAAe,QAAO,IAAI,CA0BxB;IAGF,YAAY,GAAI,OAAO,MAAM,GAAG,MAAM,GAAG,IAAI,KAAG,IAAI,CA2FlD;IACF,cAAc,QAAO,IAAI,CAiDvB;IACF,WAAW,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,IAAI,CAK7C;IACF,UAAU,GAAI,QAAQ,KAAK,KAAG,IAAI,CAKhC;IACF,mBAAmB,GAAI,WAAW,OAAO,KAAG,IAAI,CAI9C;IACF;;;;;;;;;;;OAWG;IACH,eAAe,QAAO,IAAI,CAKxB;CACF;AAoMD,+EAA+E;AAC/E,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,WAAW,GAAG,IAAI,CAqV/D"}
|
|
@@ -266,7 +266,7 @@ export default class App extends PureComponent {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
componentWillUnmount() {
|
|
269
|
-
if (this.props.stdout.isTTY) {
|
|
269
|
+
if (this.props.stdout.isTTY && this.props.ownsStdin?.() !== false) {
|
|
270
270
|
this.props.stdout.write(SHOW_CURSOR);
|
|
271
271
|
}
|
|
272
272
|
this.detachForShutdown();
|
|
@@ -360,6 +360,11 @@ export default class App extends PureComponent {
|
|
|
360
360
|
};
|
|
361
361
|
handleSetRawMode = (isEnabled) => {
|
|
362
362
|
const { stdin } = this.props;
|
|
363
|
+
if (this.props.ownsStdin?.() === false) {
|
|
364
|
+
this.rawModeEnabledCount = 0;
|
|
365
|
+
stdin.removeListener('readable', this.handleReadable);
|
|
366
|
+
return;
|
|
367
|
+
}
|
|
363
368
|
if (!this.isRawModeSupported()) {
|
|
364
369
|
if (stdin === process.stdin) {
|
|
365
370
|
throw new Error("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported");
|
|
@@ -542,6 +547,8 @@ export default class App extends PureComponent {
|
|
|
542
547
|
}
|
|
543
548
|
};
|
|
544
549
|
handleReadable = () => {
|
|
550
|
+
if (this.props.ownsStdin?.() === false)
|
|
551
|
+
return;
|
|
545
552
|
// Detect long stdin gaps (tmux attach, ssh reconnect, laptop wake).
|
|
546
553
|
// The terminal may have reset DEC private modes; re-assert mouse
|
|
547
554
|
// tracking. One Date.now() covers all chunks in this readable event.
|
|
@@ -603,7 +610,7 @@ export default class App extends PureComponent {
|
|
|
603
610
|
setTerminalFocused(isFocused);
|
|
604
611
|
};
|
|
605
612
|
/**
|
|
606
|
-
* Re-assert raw mode after an
|
|
613
|
+
* Re-assert owned raw mode after an external reset or SIGCONT. While the
|
|
607
614
|
* job is stopped the shell owns the tty and leaves it in its own cooked
|
|
608
615
|
* modes; the job is expected to restore its termios when it continues.
|
|
609
616
|
* The readable listener survives the stop, so only the termios flag comes
|
|
@@ -615,7 +622,7 @@ export default class App extends PureComponent {
|
|
|
615
622
|
* back. `setRawMode(true)` is an idempotent ioctl.
|
|
616
623
|
*/
|
|
617
624
|
reassertRawMode = () => {
|
|
618
|
-
if (this.rawModeEnabledCount === 0 || !this.isRawModeSupported()) {
|
|
625
|
+
if (this.props.ownsStdin?.() === false || this.shutdownDetached || this.rawModeEnabledCount === 0 || !this.isRawModeSupported()) {
|
|
619
626
|
return;
|
|
620
627
|
}
|
|
621
628
|
this.props.stdin.setRawMode(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollBox.d.ts","sourceRoot":"","sources":["../../../../src/ink/components/ScrollBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,GAAG,EAAsD,MAAM,OAAO,CAAC;AACpH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAM5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B;;;;;;OAMG;IACH,eAAe,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,oBAAoB,EAAE,MAAM,MAAM,CAAC;IACnC,iBAAiB,EAAE,MAAM,MAAM,CAAC;IAChC;;;OAGG;IACH,cAAc,EAAE,MAAM,MAAM,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB;;;;;OAKG;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAA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AAc,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,MAAM,CAAC;IAC9B,eAAe,EAAE,MAAM,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,oBAAoB,EAAE,MAAM,MAAM,CAAC;IACnC,iBAAiB,EAAE,MAAM,MAAM,CAAC;IAChC;;;OAGG;IACH,cAAc,EAAE,MAAM,MAAM,CAAC;IAC7B;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB;;;;;OAKG;IACH,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAChD;;;;;;;OAOG;IACH,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3E;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC,GAAG;IACjG,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;IAC3B;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF;;;;;;;;;GASG;AACH,iBAAS,SAAS,CAAC,EACjB,QAAQ,EACR,GAAG,EACH,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,SAAS,CAmTrD;AACD,eAAe,SAAS,CAAC"}
|
|
@@ -291,6 +291,7 @@ function ScrollBox({ children, ref, stickyScroll, ...style }) {
|
|
|
291
291
|
if (el) {
|
|
292
292
|
el.scrollTop ??= 0;
|
|
293
293
|
el.onStickyRestore = notify;
|
|
294
|
+
el.onScrollDrainEnd = notifyCoalesced;
|
|
294
295
|
// A viewport-height change since the last layout pass means every
|
|
295
296
|
// geometry-reading subscriber painted the previous bounds (the
|
|
296
297
|
// renderer owns the write and this pass was otherwise silent). Wire
|
package/lib/types/ink/dom.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/ink/dom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAOlD,OAAO,KAAK,EAAE,MAAM,EAAkB,UAAU,EAAE,MAAM,aAAa,CAAA;AAKrE,KAAK,OAAO,GAAG;IACb,UAAU,EAAE,UAAU,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAA;AAC9B;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,UAAU,GACV,SAAS,GACT,UAAU,GACV,kBAAkB,GAClB,UAAU,GACV,cAAc,GACd,WAAW,GACX,cAAc,CAAA;AAElB;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,QAAQ,CAAA;AAE/C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAC5C,UAAU,EAAE,OAAO,EAAE,CAAA;IACrB,UAAU,CAAC,EAAE,UAAU,CAAA;IAGvB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAA;IAC5B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAE9B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAG5B,KAAK,E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