@deepseek-harness-tui/dsh-tui 0.18.0 → 0.20.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 +90 -59
- package/bin/dsh-tui.js +46 -3
- package/cordis.patch.yml +5 -3
- package/cordis.yml +3 -2
- package/guide/dsh-tui-guide/codex-backend.en.md +2 -2
- package/guide/dsh-tui-guide/codex-backend.md +2 -2
- package/guide/dsh-tui-guide/configuration.en.md +7 -2
- package/guide/dsh-tui-guide/configuration.md +7 -2
- package/guide/dsh-tui-guide/getting-started.en.md +168 -4
- package/guide/dsh-tui-guide/getting-started.md +121 -14
- package/guide/dsh-tui-guide/interaction.en.md +11 -10
- package/guide/dsh-tui-guide/interaction.md +5 -4
- package/guide/dsh-tui-guide/user-guide.en.md +12 -6
- package/guide/dsh-tui-guide/user-guide.md +12 -6
- package/lib/settings.json +24 -8
- package/lib/types/adapter/ports/channel-ui.d.ts +10 -7
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +67 -8
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +14 -5
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/agent/session.d.ts +5 -0
- package/lib/types/agent/session.d.ts.map +1 -1
- package/lib/types/backends/claude/tools.d.ts.map +1 -1
- package/lib/types/backends/claude/tools.js +8 -3
- package/lib/types/backends/claude/translate/core.d.ts +2 -2
- package/lib/types/backends/claude/translate/core.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/core.js +10 -6
- package/lib/types/backends/codex/session/commands.d.ts +2 -0
- package/lib/types/backends/codex/session/commands.d.ts.map +1 -1
- package/lib/types/backends/codex/session/commands.js +8 -4
- package/lib/types/backends/codex/session/input.d.ts +11 -7
- package/lib/types/backends/codex/session/input.d.ts.map +1 -1
- package/lib/types/backends/codex/session/input.js +68 -15
- package/lib/types/backends/codex/session/session.d.ts.map +1 -1
- package/lib/types/backends/codex/session/session.js +2 -3
- package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/presentation.js +5 -2
- package/lib/types/channel/interaction.d.ts.map +1 -1
- package/lib/types/channel/interaction.js +1 -0
- package/lib/types/channel/permissions.d.ts +15 -0
- package/lib/types/channel/permissions.d.ts.map +1 -1
- package/lib/types/channel/permissions.js +28 -0
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +89 -11
- package/lib/types/channel/questions.d.ts +45 -3
- package/lib/types/channel/questions.d.ts.map +1 -1
- package/lib/types/channel/questions.js +43 -0
- package/lib/types/channel/sanitize.d.ts.map +1 -1
- package/lib/types/channel/sanitize.js +8 -4
- package/lib/types/channel/subagent-failure.d.ts +49 -0
- package/lib/types/channel/subagent-failure.d.ts.map +1 -0
- package/lib/types/channel/subagent-failure.js +59 -0
- package/lib/types/channel/transcript.d.ts +17 -0
- package/lib/types/channel/transcript.d.ts.map +1 -1
- package/lib/types/channel/transcript.js +35 -0
- package/lib/types/commands.js +2 -2
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +14 -10
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +61 -6
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +3 -2
- package/lib/types/components/StarPrompt.d.ts +5 -3
- package/lib/types/components/StarPrompt.d.ts.map +1 -1
- package/lib/types/components/StarPrompt.js +56 -6
- package/lib/types/components/SubagentCard.d.ts.map +1 -1
- package/lib/types/components/SubagentCard.js +1 -1
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +9 -2
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +126 -25
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts +5 -8
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
- package/lib/types/components/questions/AskUserQuestionPanel.js +7 -4
- package/lib/types/components/questions/PlanReviewPanel.d.ts +3 -6
- package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
- package/lib/types/components/revealScope.d.ts +15 -0
- package/lib/types/components/revealScope.d.ts.map +1 -0
- package/lib/types/components/revealScope.js +17 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +34 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +108 -7
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +1 -1
- package/lib/types/components/smoothReveal.d.ts +36 -6
- package/lib/types/components/smoothReveal.d.ts.map +1 -1
- package/lib/types/components/smoothReveal.js +92 -21
- package/lib/types/components/teamRoster.d.ts +6 -3
- package/lib/types/components/teamRoster.d.ts.map +1 -1
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts +4 -14
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
- package/lib/types/components/workspaces/HomeWorkspaceRow.js +26 -17
- package/lib/types/dsh-adapter/approvals.d.ts +19 -0
- package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.js +17 -1
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/session.js +12 -0
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +21 -4
- package/lib/types/dsh-adapter/channel/attached-context.d.ts +15 -2
- package/lib/types/dsh-adapter/channel/attached-context.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/attached-context.js +26 -3
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +3 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +43 -2
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +2 -6
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +7 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +2 -6
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +1 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.js +3 -26
- package/lib/types/dsh-adapter/channel/emitter.js +1 -1
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +15 -4
- 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 -10
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +3 -7
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +14 -5
- package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/local-actions.js +7 -3
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +4 -1
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.js +26 -9
- package/lib/types/dsh-adapter/channel/model-selection.d.ts +27 -2
- package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-selection.js +81 -37
- package/lib/types/dsh-adapter/channel/model-switch.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection-helpers.js +4 -2
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.js +6 -2
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +8 -4
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +185 -36
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +55 -4
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.js +80 -16
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-transcript.js +6 -5
- package/lib/types/dsh-adapter/channel/task-completion.js +2 -10
- package/lib/types/dsh-adapter/channel/transcript.d.ts +3 -2
- package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/transcript.js +13 -4
- package/lib/types/dsh-adapter/channel/types.d.ts +11 -2
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/compaction-previews.d.ts +11 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/compaction-previews.js +38 -0
- package/lib/types/dsh-adapter/compat/messages.d.ts +1 -1
- package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/messages.js +2 -2
- package/lib/types/dsh-adapter/contract.d.ts +29 -3
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +48 -5
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +5 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.js +0 -2
- package/lib/types/dsh-adapter/fresh-agent.d.ts +1 -1
- package/lib/types/dsh-adapter/fresh-agent.d.ts.map +1 -1
- package/lib/types/dsh-adapter/fresh-agent.js +60 -11
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +60 -11
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-contract.js +5 -3
- package/lib/types/dsh-adapter/host-dsh.d.ts +2 -8
- package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +30 -6
- package/lib/types/dsh-adapter/host-entry.js +4 -0
- package/lib/types/dsh-adapter/index.d.ts +9 -1
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +5 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.d.ts +73 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.d.ts.map +1 -0
- package/lib/types/dsh-adapter/oauth/account-notifications.js +250 -0
- package/lib/types/dsh-adapter/oauth/bonus.d.ts +34 -9
- package/lib/types/dsh-adapter/oauth/bonus.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/bonus.js +47 -5
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts +7 -2
- package/lib/types/dsh-adapter/oauth/deepseek.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/deepseek.js +6 -1
- package/lib/types/dsh-adapter/oauth/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/index.js +44 -0
- package/lib/types/dsh-adapter/oauth/profiles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/profiles.js +14 -1
- package/lib/types/dsh-adapter/oauth/service.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/service.js +5 -6
- package/lib/types/dsh-adapter/plugin-manage.d.ts +6 -4
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +3 -2
- package/lib/types/dsh-adapter/plugin.d.ts +237 -6
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +751 -67
- package/lib/types/dsh-adapter/presets.d.ts +38 -11
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +46 -17
- 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/questions.d.ts +3 -4
- package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/questions.js +1 -1
- package/lib/types/dsh-adapter/session-list-metadata.js +2 -2
- package/lib/types/dsh-adapter/session-projection-store.d.ts +1 -1
- package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -1
- package/lib/types/dsh-adapter/session-projection-store.js +30 -23
- package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessionTree.js +4 -1
- package/lib/types/dsh-adapter/subagents.d.ts +6 -0
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +32 -3
- package/lib/types/dsh-adapter/team-mode.d.ts +46 -27
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +157 -29
- package/lib/types/dsh-adapter/team-roster.d.ts +53 -18
- package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-roster.js +206 -39
- package/lib/types/dsh-adapter/team-tools.d.ts +25 -12
- package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-tools.js +81 -26
- package/lib/types/dsh-adapter/tool-scope.d.ts +24 -0
- package/lib/types/dsh-adapter/tool-scope.d.ts.map +1 -0
- package/lib/types/dsh-adapter/tool-scope.js +127 -0
- package/lib/types/dsh-adapter/types.d.ts +2 -1
- package/lib/types/dsh-adapter/types.d.ts.map +1 -1
- package/lib/types/heldInputs.d.ts +55 -16
- package/lib/types/heldInputs.d.ts.map +1 -1
- package/lib/types/heldInputs.js +277 -41
- package/lib/types/i18n.d.ts +292 -20
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +89 -13
- package/lib/types/ink/components/App.d.ts +2 -0
- package/lib/types/ink/components/App.d.ts.map +1 -1
- package/lib/types/ink/components/App.js +8 -0
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/dom.js +13 -3
- package/lib/types/ink/events/input-event.d.ts.map +1 -1
- package/lib/types/ink/events/input-event.js +7 -6
- package/lib/types/ink/flush-tick.d.ts +6 -0
- package/lib/types/ink/flush-tick.d.ts.map +1 -1
- package/lib/types/ink/flush-tick.js +31 -0
- package/lib/types/ink/hit-test.d.ts +2 -0
- package/lib/types/ink/hit-test.d.ts.map +1 -1
- package/lib/types/ink/hit-test.js +10 -0
- package/lib/types/ink/hooks/use-program-status.d.ts +1 -1
- package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-program-status.js +3 -2
- package/lib/types/ink/hooks/use-terminal-title.d.ts +15 -0
- package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-terminal-title.js +23 -3
- package/lib/types/ink/ink.d.ts +1 -0
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +7 -4
- package/lib/types/ink/jumpback-state.d.ts +33 -0
- package/lib/types/ink/jumpback-state.d.ts.map +1 -0
- package/lib/types/ink/jumpback-state.js +51 -0
- package/lib/types/ink/jumpback.d.ts +78 -0
- package/lib/types/ink/jumpback.d.ts.map +1 -0
- package/lib/types/ink/jumpback.js +515 -0
- package/lib/types/ink/log-update.js +37 -14
- package/lib/types/ink/notify-helper/activate.cs +836 -0
- package/lib/types/ink/notify-helper/compile.d.ts +30 -0
- package/lib/types/ink/notify-helper/compile.d.ts.map +1 -0
- package/lib/types/ink/notify-helper/compile.js +235 -0
- package/lib/types/ink/parse-keypress.d.ts.map +1 -1
- package/lib/types/ink/parse-keypress.js +25 -0
- package/lib/types/ink/terminal-notification-windows.d.ts +8 -4
- package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification-windows.js +14 -21
- package/lib/types/ink/terminal-notification.d.ts +31 -2
- package/lib/types/ink/terminal-notification.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification.js +51 -0
- package/lib/types/ink/terminal.d.ts +15 -3
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +38 -9
- package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.js +1 -1
- package/lib/types/screens/Chat.d.ts +4 -3
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +81 -11
- package/lib/types/screens/SessionSupervisor.d.ts +3 -6
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/SessionSupervisor.js +5 -8
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts +1 -2
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +2 -2
- package/lib/types/screens/sessionSupervisor/model.d.ts +1 -1
- package/lib/types/screens/sessionSupervisor/model.js +1 -1
- package/lib/types/sessionMounts.d.ts +12 -5
- package/lib/types/sessionMounts.d.ts.map +1 -1
- package/lib/types/sessionMounts.js +33 -6
- package/lib/types/settings/definitions.d.ts +12 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +15 -7
- package/lib/types/update.d.ts +412 -20
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +2094 -193
- package/lib/types/updateHost.d.ts +198 -0
- package/lib/types/updateHost.d.ts.map +1 -0
- package/lib/types/updateHost.js +608 -0
- package/lib/types/utils/processName.d.ts +16 -0
- package/lib/types/utils/processName.d.ts.map +1 -0
- package/lib/types/utils/processName.js +27 -0
- package/package.json +114 -111
- package/presets/liangshen/agent.cordis.yml +4 -0
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
package/lib/types/i18n.js
CHANGED
|
@@ -262,6 +262,10 @@ const dict = {
|
|
|
262
262
|
'subagent-status-unknown': { zh: '状态未知', en: 'status unknown' },
|
|
263
263
|
'subagent-task-fallback': { zh: '{{kind}} 任务', en: '{{kind}} task' },
|
|
264
264
|
'task-complete-notification': { zh: 'dsh-TUI · 任务已完成', en: 'dsh-TUI · Task complete' },
|
|
265
|
+
'approval-notification': { zh: 'dsh-TUI · 等待授权', en: 'dsh-TUI · Approval needed' },
|
|
266
|
+
'question-notification': { zh: 'dsh-TUI · 等待回答', en: 'dsh-TUI · Waiting for your answer' },
|
|
267
|
+
'plan-review-notification': { zh: 'dsh-TUI · 计划评审', en: 'dsh-TUI · Plan review' },
|
|
268
|
+
'untitled-session': { zh: '未命名会话', en: 'Untitled session' },
|
|
265
269
|
'subagent-background': { zh: '后台', en: 'background' },
|
|
266
270
|
'subagent-interrupt-failed': { zh: '无法停止子代理 {{id}}(已结束或被拒绝)', en: 'Could not stop subagent {{id}} (already finished or refused)' },
|
|
267
271
|
'agent-preset-switched': { zh: 'Agent preset 已切换:{{preset}}', en: 'Agent preset switched: {{preset}}' },
|
|
@@ -453,6 +457,7 @@ const dict = {
|
|
|
453
457
|
'questionnaire-answered': { zh: '📋 问卷已答 · {{total}} 题', en: '📋 Questionnaire answered · {{total}} questions' },
|
|
454
458
|
// ── utils/loaded-context.ts ─────────────────────────────────────────
|
|
455
459
|
'command-output-truncated': { zh: '…(命令输出已截断:最多 200 行、65536 个 UTF-16 码元、每行 4000 显示单元)', en: '… (command output truncated: 200 lines, 65536 UTF-16 code units, 4000 cells per line)' },
|
|
460
|
+
'command-output-title': { zh: '命令输出', en: 'Command output' },
|
|
456
461
|
'context-truncated': { zh: '…(已截断)', en: '… (truncated)' },
|
|
457
462
|
'context-sections': { zh: '系统提示词 {{n}} 段', en: 'System prompt {{n}} sections' },
|
|
458
463
|
'context-files': { zh: '工作区指令 ×{{n}}', en: 'Workspace instructions ×{{n}}' },
|
|
@@ -550,7 +555,7 @@ const dict = {
|
|
|
550
555
|
'home-section-workspaces': { zh: '工作区({{n}})', en: 'Workspaces ({{n}})' },
|
|
551
556
|
'home-add-workspace': { zh: '添加工作区', en: 'Add workspace' },
|
|
552
557
|
'home-add-hint': { zh: '选择目录并加入列表', en: 'Pick a directory and add it to the list' },
|
|
553
|
-
'home-workspace-missing': { zh: '
|
|
558
|
+
'home-workspace-missing': { zh: '缺失', en: 'gone' },
|
|
554
559
|
'home-no-workspaces': { zh: '还没有工作区 · 在任意目录启动 dsh-tui 即可自动加入', en: 'No workspaces yet · start dsh-tui in a directory to add it' },
|
|
555
560
|
'home-sessions-title': { zh: '{{name}} 的会话', en: 'Sessions in {{name}}' },
|
|
556
561
|
'home-no-sessions': { zh: '这个工作区还没有会话 · Enter 新建一个', en: 'No sessions in this workspace yet · Enter starts one' },
|
|
@@ -574,6 +579,7 @@ const dict = {
|
|
|
574
579
|
'supervisor-title': { zh: '会话管理', en: 'Sessions' },
|
|
575
580
|
'supervisor-unregistered': { zh: '未登记的工作区', en: 'Unregistered' },
|
|
576
581
|
'supervisor-history-only': { zh: '仅历史', en: 'History only' },
|
|
582
|
+
'supervisor-history-only-short': { zh: '历史', en: 'Hist' },
|
|
577
583
|
'supervisor-workspace-groups': { zh: '工作区 {{registered}} · 历史目录 {{history}}', en: 'Workspaces {{registered}} · History {{history}}' },
|
|
578
584
|
'supervisor-workspace-removed': { zh: '工作区登记已移除;目录与历史会话仍保留', en: 'Workspace registration removed; directory and past sessions remain' },
|
|
579
585
|
'supervisor-no-matches': { zh: '没有匹配的会话 · Esc 清空筛选', en: 'No sessions match · Esc clears the filter' },
|
|
@@ -737,14 +743,65 @@ const dict = {
|
|
|
737
743
|
'update-unavailable': { zh: '当前运行方式不支持自动更新(需经 dsh --profile 启动),请在终端执行 dsh plugin --profile <name> update @deepseek-harness-tui/dsh-tui', en: 'Automatic update is unavailable in this launch mode (needs dsh --profile). Run dsh plugin --profile <name> update @deepseek-harness-tui/dsh-tui in a terminal.' },
|
|
738
744
|
'update-working': { zh: '当前回合仍在运行,请等待完成后再更新 TUI。', en: 'The current turn is still running. Wait for it to finish before updating the TUI.' },
|
|
739
745
|
'update-starting': { zh: '正在更新 @deepseek-harness-tui/dsh-tui,完成后会自动重启并恢复当前会话……', en: 'Updating @deepseek-harness-tui/dsh-tui. The TUI will restart and resume this session when finished…' },
|
|
740
|
-
'update-available': { zh: '发现新版本:v{{latest}}(当前 v{{current}})· 输入 /update
|
|
741
|
-
'update-already-latest': { zh: '当前已是最新版本(v{{current}})。', en: 'Already on the latest version (v{{current}}).' },
|
|
746
|
+
'update-available': { zh: '发现新版本:v{{latest}}(当前 v{{current}})· 输入 /update 一次性对齐 TUI、dsh 引擎与启动器', en: 'New version available: v{{latest}} (current v{{current}}) · type /update to align the TUI, dsh engine and launcher together' },
|
|
742
747
|
'update-check-failed': { zh: '无法确认新版本(网络或 registry 不可达),已尝试直接更新……', en: 'Could not confirm a newer version (network or registry unreachable); attempting the update anyway…' },
|
|
743
748
|
'update-refused-deadlock': { zh: '已取消更新:镜像 registry 目前只能装到 v{{latest}},而该版本在旧全局启动器的 patch 下会启动死锁(#183/#307);官方最新为 v{{authoritative}},待镜像同步后再 /update。', en: 'Update cancelled: the mirror registry can only serve v{{latest}}, which deadlocks boot under older global-launcher patches (#183/#307); official latest is v{{authoritative}} — retry /update after the mirror syncs.' },
|
|
744
749
|
'update-mirror-lag': { zh: '镜像 registry 滞后:本次安装 v{{latest}};官方最新 v{{authoritative}},镜像同步后可再 /update。', en: 'Mirror registry lag: installing v{{latest}} now; official latest is v{{authoritative}} — run /update again once the mirror syncs.' },
|
|
745
750
|
'update-standalone-available': { zh: '发现便携包新版本:v{{latest}}(当前 v{{current}})· 输入 /update 自动更新', en: 'New standalone version available: v{{latest}} (current v{{current}}) · type /update to update' },
|
|
746
751
|
'update-standalone-no-checksum': { zh: '该版本未发布 SHA256 校验和,更新包完整性无法验证', en: 'this release publishes no SHA256 checksums; the update payload cannot be integrity-verified' },
|
|
747
752
|
'update-standalone-starting': { zh: '正在下载便携包新版本并自动替换,完成后会自动重启并恢复当前会话……', en: 'Downloading and replacing standalone binary. The TUI will restart and resume this session when finished…' },
|
|
753
|
+
// ── /update 三层对齐:TUI / dsh 引擎 / 全局启动器(#1844)──────────────
|
|
754
|
+
'update-plan-starting': { zh: '即将对齐:{{layers}}。完成后会自动重启并恢复当前会话……', en: 'Aligning: {{layers}}. The TUI will restart and resume this session when finished…' },
|
|
755
|
+
'update-cli-starting': { zh: '即将对齐:{{layers}}。', en: 'Aligning: {{layers}}.' },
|
|
756
|
+
'update-plan-empty': { zh: '已成套最新:{{layers}}。', en: 'Everything is already aligned: {{layers}}.' },
|
|
757
|
+
'update-plan-idle': { zh: 'TUI 已是最新({{current}});{{reason}},本次未做改动。', en: 'The TUI is already current ({{current}}); {{reason}} — nothing was changed this time.' },
|
|
758
|
+
'update-plan-manual-title': { zh: '引擎需要手动对齐', en: 'Engine alignment needs a manual step' },
|
|
759
|
+
'update-plan-manual': { zh: 'TUI 已是最新({{current}});{{reason}},本次未做改动。请手动执行:\n {{command}}', en: 'The TUI is already current ({{current}}); {{reason}} — nothing was changed this time. Run this manually:\n {{command}}' },
|
|
760
|
+
'update-plan-manual-toast': { zh: 'TUI 已最新;引擎无法自动对齐,完整修复指引已写入会话。', en: 'The TUI is current; the engine cannot be aligned automatically — the full repair guidance is in the transcript.' },
|
|
761
|
+
'update-plan-newer-title': { zh: 'dsh 有新版本尚未纳入验证', en: 'A newer dsh release is outside the validated line' },
|
|
762
|
+
'update-plan-newer': { zh: '当前 TUI({{tui}})声明的 dsh 范围是 {{range}};registry 上已有 dsh {{newer}},但该 TUI 版本尚未声明支持它,因此本次没有改动引擎。等 dsh-tui 适配后重新 /update 即可;这不是安装失败,无需手工安装。', en: 'The current TUI ({{tui}}) declares dsh {{range}}; dsh {{newer}} is already on the registry, but this TUI release does not declare support for it yet, so this run left the engine untouched. Run /update again once a dsh-tui release adds support — this is not an install failure, and no manual install is needed.' },
|
|
763
|
+
'update-plan-newer-toast': { zh: 'dsh {{newer}} 已发布,但尚未纳入本 TUI 的验证范围;原因已写入会话。', en: 'dsh {{newer}} is published but outside this TUI’s validated line; the reason is in the transcript.' },
|
|
764
|
+
'update-plan-blocked': { zh: '已取消更新:新 TUI({{tui}})支持的 dsh 范围是 {{range}},当前 dsh 为 {{current}},且引擎无法自动升级。原因:{{reason}}。', en: 'Update cancelled: the new TUI ({{tui}}) supports dsh {{range}}, but the current dsh is {{current}} and the engine cannot be upgraded automatically. Why: {{reason}}.' },
|
|
765
|
+
'update-plan-blocked-engine-first': { zh: '已取消更新:官方插件管理器用「当前」引擎校验新 TUI({{tui}}),它只接受 dsh {{range}},而当前是 {{current}};引擎升级排在 TUI 之后,所以这次安装必然被拒绝。先把引擎对齐,再重新 /update,TUI 与启动器会自动跟上。', en: 'Update cancelled: the official plugin manager validates the new TUI ({{tui}}) against the CURRENT engine; it accepts dsh {{range}}, but this engine is {{current}}. The engine step runs after the TUI, so that install would always be rejected. Align the engine first, then rerun /update — the TUI and launcher follow automatically.' },
|
|
766
|
+
'update-plan-blocked-title': { zh: '更新已取消:新 TUI {{tui}} 需要更新的 dsh', en: 'Update cancelled: the new TUI ({{tui}}) needs a newer dsh' },
|
|
767
|
+
'update-plan-blocked-toast': { zh: '更新已取消:新 TUI {{tui}} 需要更新的 dsh;完整说明已写入会话。', en: 'Update cancelled: the new TUI ({{tui}}) needs a newer dsh; the full explanation is in the transcript.' },
|
|
768
|
+
'update-plan-blocked-next-retry': { zh: '这是 registry 查询失败,不代表版本不兼容;网络或镜像恢复后重新 /update 即可。\n 若现在就要安装:{{command}}', en: 'The registry lookup failed; this is not a compatibility verdict. Retry /update once the network or mirror is reachable.\n To install now anyway: {{command}}' },
|
|
769
|
+
'update-plan-blocked-next-wait': { zh: '该范围要求的 dsh 版本尚未发布;等 dsh 发布后重新 /update 即可,无需手工安装。', en: 'The dsh release this range requires is not published yet; run /update again after it ships. No manual install is needed.' },
|
|
770
|
+
'update-plan-blocked-next-switch': { zh: '引擎自动安装被 DSH_TUI_UPDATE_ENGINE=0 关闭;去掉该开关重新 /update,或现在手动执行:\n {{command}}', en: 'Engine auto-install is switched off by DSH_TUI_UPDATE_ENGINE=0. Drop that switch and rerun /update, or install manually now:\n {{command}}' },
|
|
771
|
+
'update-plan-blocked-next-repair': { zh: '这是全局 dsh 安装本身的问题(见上);修复后重新 /update,或现在手动执行:\n {{command}}', en: 'The global dsh install itself is the problem (see above). Fix it and rerun /update, or install manually now:\n {{command}}' },
|
|
772
|
+
'update-plan-blocked-next-engine-first': { zh: '先升级引擎,然后重新 /update:\n {{command}}', en: 'Upgrade the engine first, then rerun /update:\n {{command}}' },
|
|
773
|
+
'update-plan-blocked-too-new': { zh: '已取消更新:新 TUI({{tui}})的 dsh 范围最高到 {{range}},当前 dsh({{current}})比它新;不会降级,也不会安装未验证的组合。等 dsh-tui 适配该引擎后再 /update。', en: 'Update cancelled: the new TUI ({{tui}}) declares dsh up to {{range}}, but the current dsh ({{current}}) is newer. This tool never downgrades and will not install an unvalidated combination. Run /update again after a dsh-tui release supports this engine.' },
|
|
774
|
+
'update-plan-blocked-too-new-title': { zh: '更新已取消:新 TUI {{tui}} 尚未声明支持当前更新的 dsh', en: 'Update cancelled: the new TUI ({{tui}}) does not declare support for your newer dsh' },
|
|
775
|
+
'update-plan-blocked-too-new-toast': { zh: '更新已取消:新 TUI {{tui}} 尚未声明支持当前更新的 dsh;完整说明已写入会话。', en: 'Update cancelled: the new TUI ({{tui}}) does not declare support for your newer dsh; the full explanation is in the transcript.' },
|
|
776
|
+
'update-plan-blocked-next-too-new': { zh: '目标 TUI 尚未声明支持这个更新的 dsh;等 dsh-tui 适配后重新 /update 即可,不要降级。', en: 'This TUI release does not declare support for the newer dsh yet; rerun /update after a dsh-tui release adds it. Do not downgrade.' },
|
|
777
|
+
'update-launcher-unresolved': { zh: '无法确认全局启动器的位置', en: 'the global launcher could not be located' },
|
|
778
|
+
'update-launcher-disabled': { zh: '全局启动器对齐已被 DSH_TUI_UPDATE_LAUNCHER=0 跳过', en: 'global launcher alignment is skipped by DSH_TUI_UPDATE_LAUNCHER=0' },
|
|
779
|
+
'update-launcher-unsafe-restart': { zh: 'dsh 引擎已推进到 {{version}},但全局启动器对齐失败——旧启动器与新引擎可能无法加载更新后的 profile,本次不重启。请先对齐启动器,再手动启动:\n {{command}}', en: 'The dsh engine advanced to {{version}}, but global launcher alignment failed — the old launcher and new engine may not load the updated profile; not restarting. Align the launcher before starting again:\n {{command}}' },
|
|
780
|
+
'update-tui-already-current': { zh: 'dsh-tui 已是最新({{version}}),继续对齐引擎与启动器……', en: 'dsh-tui is already current ({{version}}); aligning the engine and launcher…' },
|
|
781
|
+
'update-engine-starting': { zh: '正在对齐 dsh 引擎:{{from}} → {{to}}……', en: 'Aligning the dsh engine: {{from}} → {{to}}…' },
|
|
782
|
+
'update-engine-failed': { zh: 'dsh 引擎未对齐(退出码 {{code}}),正在检查现有引擎是否仍可启动……若为网络或镜像原因,可稍后重新 /update;否则手动修复:\n {{command}}', en: 'The dsh engine was not aligned (exit {{code}}); checking whether the existing engine still starts… For a network or mirror failure, retry /update later; otherwise repair manually:\n {{command}}' },
|
|
783
|
+
'update-engine-unverified': { zh: 'dsh 引擎安装后版本校验未通过(期望 {{expected}},读到 {{installed}})。手动修复:\n {{command}}', en: 'The dsh engine install failed its version check (expected {{expected}}, read {{installed}}). Repair manually:\n {{command}}' },
|
|
784
|
+
'update-engine-skip-title': { zh: 'dsh {{version}} 未对齐', en: 'dsh {{version}} was not aligned' },
|
|
785
|
+
'update-engine-skip': { zh: '{{reason}}。更新会继续;稍后重试 /update 即可。', en: '{{reason}}. The update continues; retry /update later.' },
|
|
786
|
+
'update-engine-skip-manual': { zh: '{{reason}}。更新会继续;请手动对齐引擎:\n {{command}}', en: '{{reason}}. The update continues; align the engine manually:\n {{command}}' },
|
|
787
|
+
'update-engine-skip-toast': { zh: 'dsh 引擎未对齐,完整指引已写入会话。', en: 'The dsh engine was not aligned; the full guidance is in the transcript.' },
|
|
788
|
+
'update-engine-failure-tolerated': { zh: '现有 dsh {{current}} 仍可启动,且在目标 TUI 支持的 {{range}} 内;继续。', en: 'The existing dsh {{current}} still starts and is within the target TUI’s supported {{range}}; continuing.' },
|
|
789
|
+
'update-engine-unsafe-restart': { zh: '引擎步骤失败,且无法证明现有 dsh 仍可启动(入口进程启动失败,`dsh --version` 也跑不通)——为避免重启到半损坏的引擎,本次不重启。当前 dsh:{{current}};目标范围:{{range}}。请先修复引擎(Windows 上可先执行 `dsh-tui update`):\n {{command}}', en: 'The engine step failed and the existing dsh cannot be proven bootable (its entry point failed to start and `dsh --version` did not run) — not restarting into a half-written engine. Current dsh: {{current}}; target range: {{range}}. Repair the engine first (on Windows, `dsh-tui update` is the clean path):\n {{command}}' },
|
|
790
|
+
'update-engine-entry-unresolved': { zh: '引擎安装已结束,但无法确认可启动的 dsh JS 入口——为避免执行已删除的旧安装路径,本次不重启。当前 dsh:{{current}};目标范围:{{range}}。请先修复引擎:\n {{command}}', en: 'The engine install finished, but a bootable dsh JS entry could not be confirmed — not restarting through a stale install path. Current dsh: {{current}}; target range: {{range}}. Repair the engine first:\n {{command}}' },
|
|
791
|
+
'update-engine-path-mismatch': { zh: 'dsh 引擎已装到目标前缀,但 PATH 上的 `dsh --version` 仍报告 {{cli}}(期望 {{expected}})——下一次启动可能仍用旧引擎。请检查 PATH,或手动执行:\n {{command}}', en: 'The dsh engine landed in the target prefix, but `dsh --version` on PATH still reports {{cli}} (expected {{expected}}) — the next launch may still use the old engine. Check PATH, or run:\n {{command}}' },
|
|
792
|
+
'update-engine-not-advanced': { zh: 'dsh 引擎更新后版本没有前进(仍为 {{now}},原为 {{from}});请执行 {{command}} 后重试。', en: 'The dsh engine did not advance after the update (still {{now}}, was {{from}}); run {{command}} and retry.' },
|
|
793
|
+
'update-suite-incompatible': { zh: 'TUI 已更新,但 dsh {{current}} 不在新 TUI 支持的 {{range}} 内,引擎升级失败——为避免启动失败,本次不重启。请任选其一:\n {{commands}}', en: 'The TUI was updated, but dsh {{current}} is outside the supported {{range}} of the new TUI and the engine upgrade failed — not restarting to avoid a broken boot. Choose one:\n {{commands}}' },
|
|
794
|
+
'update-host-pending': { zh: '引擎升级待执行', en: 'engine upgrade pending' },
|
|
795
|
+
'update-host-disabled': { zh: '引擎升级已被 DSH_TUI_UPDATE_ENGINE=0 禁用', en: 'engine upgrades are disabled by DSH_TUI_UPDATE_ENGINE=0' },
|
|
796
|
+
'update-host-unknown-current': { zh: '无法读取当前 dsh 版本', en: 'the current dsh version could not be read' },
|
|
797
|
+
'update-host-unknown-range': { zh: '无法确定目标 TUI 支持的 dsh 范围', en: 'the target TUI dsh range could not be determined' },
|
|
798
|
+
'update-host-newer': { zh: '当前 dsh 比目标 TUI 验证过的版本更新(不降级;等 dsh-tui 适配后会重新纳入验证)', en: 'the current dsh is newer than the target TUI validates (never downgraded; it is re-validated once a dsh-tui release supports it)' },
|
|
799
|
+
'update-host-newer-published': { zh: 'registry 上已有 dsh {{newer}},但该 TUI 版本尚未声明支持它(停在验证线内,等 dsh-tui 适配后再 /update)', en: 'dsh {{newer}} is already on the registry, but this TUI release does not declare support for it yet (staying on the validated line; run /update after a dsh-tui update adds support)' },
|
|
800
|
+
'update-host-offline': { zh: '无法查询 registry 上的 dsh 版本(离线或 registry 不可达)', en: 'could not check dsh versions on the registry (offline or registry unreachable)' },
|
|
801
|
+
'update-host-no-version': { zh: 'registry 上没有该 TUI 版本支持的 dsh 发行版', en: 'the registry has no dsh release supported by the target TUI' },
|
|
802
|
+
'update-host-no-installer': { zh: '无法识别 dsh 的全局安装方式', en: 'the dsh global install layout is not recognised' },
|
|
803
|
+
'update-host-group-unproven': { zh: '无法证明 dsh 所属的 pnpm 安装组只含它自己(单包安装会替换整组并移除同组其他工具)', en: 'the pnpm group that owns dsh cannot be proven to contain only it (a one-package install replaces the whole group and removes its other tools)' },
|
|
804
|
+
'update-host-not-writable': { zh: 'dsh 的全局安装目录不可写', en: 'the dsh global prefix is not writable' },
|
|
748
805
|
// ── /reload (pi-style soft reload) ────────────────────────────────────
|
|
749
806
|
'reload-header': { zh: '已重读偏好文件:', en: 'Preferences reloaded:' },
|
|
750
807
|
'reload-applied': { zh: '{{kind}} {{from}} → {{to}}(已应用)', en: '{{kind}} {{from}} → {{to}} (applied)' },
|
|
@@ -760,7 +817,7 @@ const dict = {
|
|
|
760
817
|
'reload-kind-activity': { zh: '活动指示', en: 'activity' },
|
|
761
818
|
// ── /restart (process restart with session resume) ────────────────────
|
|
762
819
|
'restart-starting': { zh: '正在重启 dsh-tui,完成后自动恢复当前会话……', en: 'Restarting dsh-tui. The session resumes when it comes back…' },
|
|
763
|
-
'restart-during-turn': { zh: '
|
|
820
|
+
'restart-during-turn': { zh: '当前回合仍在运行,正在中断重启;排队输入(连同图片)会在重启后暂存,不会自动发送。若进程无法正常收尾,退出后会打印恢复本会话的命令,并注明排队输入保存在哪里。', en: 'The current turn is still running; interrupting and restarting. Queued input is held after the restart, images included, not sent automatically. If the process cannot shut down cleanly it exits and prints the command that resumes this session and where the queued input is kept.' },
|
|
764
821
|
'restart-unavailable': { zh: '当前运行方式不支持进程内重启(未挂载重启通道)。', en: 'Restart is unavailable in this launch mode (no restart channel mounted).' },
|
|
765
822
|
'streaming-folded': { zh: '…(前 {{count}} 字符流式期间已折叠,落定后完整显示)', en: '…(first {{count}} chars folded while streaming; full text renders once the turn settles)' },
|
|
766
823
|
'mermaid-too-wide': { zh: '(图需要 {{width}} 列,当前宽度不足,显示源码)', en: '(diagram needs {{width}} columns; showing the source)' },
|
|
@@ -970,6 +1027,9 @@ const dict = {
|
|
|
970
1027
|
'coupon-modal-title': { zh: '鲸鱼券', en: 'Whale coupon' },
|
|
971
1028
|
'coupon-modal-received': { zh: 'DeepSeek 送你的 {{amount}} {{unit}}鲸鱼券到账啦~', en: 'Your {{amount}} {{unit}} whale coupon from DeepSeek is here ~' },
|
|
972
1029
|
'coupon-modal-expiry': { zh: 'Deepy提醒:这张券 {{month}} 月 {{day}} 日 {{time}} 就要过期啦,别忘记用掉哦~', en: 'Deepy says: this coupon expires on {{month}}/{{day}} at {{time}}. Do not forget to use it ~' },
|
|
1030
|
+
'account-notice-hint': { zh: 'Enter / Esc {{label}} · ↑↓ 滚动', en: 'Enter / Esc {{label}} · ↑↓ scroll' },
|
|
1031
|
+
'account-notice-close': { zh: '关闭', en: 'Dismiss' },
|
|
1032
|
+
'account-notice-account-route': { zh: '“{{label}}”需在 DSH 账号页面操作;此处可阅读并关闭消息。', en: '“{{label}}” is available on the DSH account page; this view supports reading and dismissing the message.' },
|
|
973
1033
|
'coupon-modal-hint': { zh: '**Enter** / **Esc** 收好鲸鱼券', en: '**Enter** / **Esc** to tuck it away' },
|
|
974
1034
|
'logo-tip-prefix': { zh: '提示:', en: 'Tip: ' },
|
|
975
1035
|
'logo-tip-more': { zh: '更多技巧', en: 'more tips' },
|
|
@@ -1188,6 +1248,7 @@ const dict = {
|
|
|
1188
1248
|
'tips-title': { zh: '使用技巧(快捷键 · 命令 · 工作流 · 个性化 · 避坑)', en: 'Usage tips (shortcuts · commands · workflow · display · gotchas)' },
|
|
1189
1249
|
'tips-hint': { zh: '↑/↓ 滚动 · Esc 关闭', en: '↑/↓ scroll · Esc to close' },
|
|
1190
1250
|
// ── components/TurnInterruptedRow.tsx ────────────────────────────────
|
|
1251
|
+
'session-stopped': { zh: '会话已停止', en: 'Session stopped' },
|
|
1191
1252
|
'interrupted-by-user': { zh: '已打断 ', en: 'Interrupted ' },
|
|
1192
1253
|
'interrupted-ask-next': { zh: '· 接下来想让 DeepSeek 做什么?', en: '· What should DeepSeek do instead?' },
|
|
1193
1254
|
'interrupted-ask-backend': { zh: '· 接下来想让 {{name}} 做什么?', en: '· What should {{name}} do instead?' },
|
|
@@ -1228,7 +1289,7 @@ const dict = {
|
|
|
1228
1289
|
'settings-saved': { zh: '已保存 {{ns}}', en: 'Saved {{ns}}' },
|
|
1229
1290
|
'settings-save-failed': { zh: '保存 {{ns}} 失败——请重试', en: 'Saving {{ns}} failed — please retry' },
|
|
1230
1291
|
'settings-secret-ref-reserved': { zh: '凭据 {{ref}} 由宿主保留,写入被拒绝:第三方设置区块不能覆盖宿主共享凭据', en: 'Credential {{ref}} is reserved by the host; write rejected: third-party settings sections cannot overwrite host-shared credentials' },
|
|
1231
|
-
'settings-web-key-changed': { zh: '
|
|
1292
|
+
'settings-web-key-changed': { zh: '搜索/抓取密钥设置已变化(端点、密钥引用或提供者),请重新打开设置后输入密钥', en: 'Search/Fetch key settings changed (endpoint, key reference, or provider). Reopen settings and enter the key again.' },
|
|
1232
1293
|
// /settings 里 sidePanel.panels 的勾选列表。
|
|
1233
1294
|
'settings-panels-unclaimed': { zh: '暂无面板使用此 id:先保留,等插件注册后生效', en: 'No panel uses this id yet; kept until a plugin registers it' },
|
|
1234
1295
|
'settings-panels-temporary': { zh: '临时面板 #{{n}} · 仅本次运行,不保存', en: 'Temporary panel #{{n}} · this run only, not saved' },
|
|
@@ -1423,10 +1484,6 @@ const dict = {
|
|
|
1423
1484
|
},
|
|
1424
1485
|
// 「用途」一行只回答「开完多出什么」,命令只留躲不掉的那一个:机制(索引在内存、
|
|
1425
1486
|
// 极简模式如何取舍)与迁移细节都属于 README,这一屏是目录而不是说明书。
|
|
1426
|
-
'plugins-experimental-team-hint': {
|
|
1427
|
-
zh: '用途:Agent 分工合作,/team status 看状态',
|
|
1428
|
-
en: 'Use: agents divide the work; /team status shows the roster',
|
|
1429
|
-
},
|
|
1430
1487
|
'plugins-experimental-auto-review-hint': {
|
|
1431
1488
|
zh: '用途:/permission auto,模型自主审批',
|
|
1432
1489
|
en: 'Use: /permission auto — the model approves on its own',
|
|
@@ -1850,6 +1907,7 @@ const dict = {
|
|
|
1850
1907
|
'subagent-started': { zh: '开始时间', en: 'Started' },
|
|
1851
1908
|
'subagent-completed': { zh: '完成时间', en: 'Completed' },
|
|
1852
1909
|
'subagent-error-label': { zh: '错误', en: 'Error' },
|
|
1910
|
+
'subagent-channel-degraded': { zh: '通道 {{provider}}:结算 {{settled}} 次、失败 {{failed}} 次——可改用其他 delegation provider', en: 'channel {{provider}}: {{failed}} of {{settled}} settled runs failed — try another delegation provider' },
|
|
1853
1911
|
'subagent-output-label': { zh: '输出', en: 'Output' },
|
|
1854
1912
|
'subagent-no-output': { zh: '暂无输出', en: 'No output yet' },
|
|
1855
1913
|
'subagent-dashboard-title': { zh: ' 子代理面板 ', en: ' Subagent Dashboard ' },
|
|
@@ -1888,6 +1946,11 @@ const dict = {
|
|
|
1888
1946
|
'subagent-empty-hint': { zh: '让主代理发起 Task 后,子代理会出现在这里', en: 'Subagents appear here once the main agent starts Task delegations' },
|
|
1889
1947
|
// ── Agent Teams:代理面板的团队模式(components/SubagentDashboard.tsx)──
|
|
1890
1948
|
'team-dashboard-title': { zh: ' 代理团队 ', en: ' Agent Team ' },
|
|
1949
|
+
'team-dashboard-title-off': { zh: ' 代理团队(已关闭) ', en: ' Agent Team (off) ' },
|
|
1950
|
+
'team-mode-off-note': {
|
|
1951
|
+
zh: '团队已关闭:任务板只读,子代理继续运行;/team on 重新开启。',
|
|
1952
|
+
en: 'Team is off: the task board is read-only and subagents keep running; /team on enables it again.',
|
|
1953
|
+
},
|
|
1891
1954
|
'team-status-provisioning': { zh: '准备中', en: 'provisioning' },
|
|
1892
1955
|
'team-status-running': { zh: '运行中', en: 'running' },
|
|
1893
1956
|
'team-status-idle': { zh: '空闲', en: 'idle' },
|
|
@@ -1904,9 +1967,22 @@ const dict = {
|
|
|
1904
1967
|
'team-last-run-failed': { zh: '上一轮失败 {{error}}', en: 'last run failed {{error}}' },
|
|
1905
1968
|
'team-task-blocked': { zh: '阻塞', en: 'blocked' },
|
|
1906
1969
|
'team-failure': { zh: '团队记录被拒:{{failure}}', en: 'Team record rejected: {{failure}}' },
|
|
1907
|
-
// ── /team
|
|
1970
|
+
// ── /team:团队状态与开关。旧宿主(≤0.2.2-rc.1)开关是 /plugin enable|disable;
|
|
1971
|
+
// rc.2+ 由 /team on|off 写会话级选择(见 docs/agent-teams-design.md「开关机制」)──
|
|
1908
1972
|
'team-cmd-unavailable': { zh: '当前内核没有 Agent Teams。', en: 'The current kernel has no Agent Teams.' },
|
|
1909
|
-
'team-cmd-usage': { zh: '未知子命令「{{sub}}」。用法:/team [status]', en: 'Unknown subcommand "{{sub}}". Usage: /team [status]' },
|
|
1973
|
+
'team-cmd-usage': { zh: '未知子命令「{{sub}}」。用法:/team [status|on|off]', en: 'Unknown subcommand "{{sub}}". Usage: /team [status|on|off]' },
|
|
1974
|
+
'team-cmd-mode': { zh: '团队模式:{{state}}', en: 'Team mode: {{state}}' },
|
|
1975
|
+
'team-cmd-mode-unavailable': { zh: '团队模式:无法读取(取不到本会话的根 Agent)', en: 'Team mode: unreadable (the root agent of this session is unavailable)' },
|
|
1976
|
+
'team-cmd-use-switch': { zh: '切换:/team on · /team off', en: 'Switch: /team on · /team off' },
|
|
1977
|
+
'team-cmd-switch-confirm': {
|
|
1978
|
+
zh: '本会话有 {{members}} 个子代理在运行或可能仍在运行:关闭团队不会停止它们(任务工具停止,任务板与子代理保留)。确认关闭请执行 /team off force。',
|
|
1979
|
+
en: '{{members}} subagent(s) in this session are running or may still be running: switching Team off does not stop them (task tools stop; the task board and subagents stay). Run /team off force to confirm.',
|
|
1980
|
+
},
|
|
1981
|
+
'team-cmd-switch-failed': { zh: '切换团队模式失败:{{reason}}', en: 'Switching Team mode failed: {{reason}}' },
|
|
1982
|
+
'team-cmd-switch-unavailable': {
|
|
1983
|
+
zh: '当前启动取不到绑定会话的根 Agent,不能在会话内切换团队模式;/team 仍可查看状态。',
|
|
1984
|
+
en: 'This launch cannot resolve the bound session\'s root agent, so Team mode cannot be switched here; /team still reports status.',
|
|
1985
|
+
},
|
|
1910
1986
|
'team-cmd-switch-moved': {
|
|
1911
1987
|
zh: '团队开关已改为 /plugin enable|disable {{bundle}};/team 只报告状态。',
|
|
1912
1988
|
en: 'The team switch moved to /plugin enable|disable {{bundle}}; /team only reports status.',
|
|
@@ -2312,7 +2388,7 @@ const dict = {
|
|
|
2312
2388
|
'cmd-desc-migrate': { zh: '从其他编程代理导入对话(claude-code/codex/omp/zcode/grok-build)' },
|
|
2313
2389
|
'cmd-desc-init': { zh: '在工作目录创建 AGENTS.md' },
|
|
2314
2390
|
'cmd-desc-agents': { zh: '查看本会话的子代理' },
|
|
2315
|
-
'cmd-desc-team': { zh: '
|
|
2391
|
+
'cmd-desc-team': { zh: '团队模式:查看状态;开关方式见 /team' },
|
|
2316
2392
|
'cmd-desc-jobs': { zh: '查看本会话的后台任务' },
|
|
2317
2393
|
'cmd-desc-panel': { zh: '侧栏面板:开关 / 聚焦 / 缩放 / 切换', en: 'Side panel: toggle / focus / zoom / switch' },
|
|
2318
2394
|
'cmd-desc-kernel': { zh: '选择内核(切换后重启进入)', en: 'Choose the kernel (restarts into it)' },
|
|
@@ -2463,7 +2539,7 @@ const dict = {
|
|
|
2463
2539
|
'cmd-desc-mcp': { zh: '查看 MCP 状态' },
|
|
2464
2540
|
'cmd-desc-skills': { zh: '列出所有可用技能' },
|
|
2465
2541
|
'cmd-desc-plugin': { zh: '插件诊断;`list` 列额外插件与可开启的实验性功能,`info` 查单个条目或待装 spec' },
|
|
2466
|
-
'cmd-desc-update': { zh: '
|
|
2542
|
+
'cmd-desc-update': { zh: '一次性对齐 dsh-tui、dsh 引擎与全局启动器并重启' },
|
|
2467
2543
|
// Misc
|
|
2468
2544
|
'cmd-desc-vim': { zh: '切换 vim 模式' },
|
|
2469
2545
|
'cmd-desc-terminal-setup': { zh: '查看终端配置建议' },
|
|
@@ -19,6 +19,7 @@ type Props = {
|
|
|
19
19
|
readonly selection: SelectionState;
|
|
20
20
|
readonly onSelectionChange: () => void;
|
|
21
21
|
readonly onClickAt: (col: number, row: number, button?: number, deferProbe?: boolean) => boolean;
|
|
22
|
+
readonly onClickTargetAt?: (col: number, row: number) => DOMElement | null;
|
|
22
23
|
readonly onContextMenuAt: (col: number, row: number, button?: number) => boolean;
|
|
23
24
|
readonly onHoverAt: (col: number, row: number) => void;
|
|
24
25
|
readonly onWheelAt: (col: number, row: number, deltaY: number, deltaX: number, button?: number) => boolean;
|
|
@@ -62,6 +63,7 @@ export default class App extends PureComponent<Props, State> {
|
|
|
62
63
|
lastClickTime: number;
|
|
63
64
|
lastClickCol: number;
|
|
64
65
|
lastClickRow: number;
|
|
66
|
+
lastClickTarget: DOMElement | null;
|
|
65
67
|
clickCount: number;
|
|
66
68
|
pendingHyperlinkTimer: ReturnType<typeof setTimeout> | null;
|
|
67
69
|
/**
|
|
@@ -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;AAqBp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AAG,IAAI,CA2V/D"}
|
|
@@ -103,6 +103,7 @@ export default class App extends PureComponent {
|
|
|
103
103
|
lastClickTime = 0;
|
|
104
104
|
lastClickCol = -1;
|
|
105
105
|
lastClickRow = -1;
|
|
106
|
+
lastClickTarget = null;
|
|
106
107
|
clickCount = 0;
|
|
107
108
|
// Deferred hyperlink-open timer — cancelled if a second click arrives
|
|
108
109
|
// within MULTI_CLICK_TIMEOUT_MS (so double-clicking a hyperlink selects
|
|
@@ -186,6 +187,7 @@ export default class App extends PureComponent {
|
|
|
186
187
|
this.lastClickTime = 0;
|
|
187
188
|
this.lastClickCol = -1;
|
|
188
189
|
this.lastClickRow = -1;
|
|
190
|
+
this.lastClickTarget = null;
|
|
189
191
|
this.lastHoverCol = -1;
|
|
190
192
|
this.lastHoverRow = -1;
|
|
191
193
|
// Do NOT clear the pointer gesture latch here. A geometry reset
|
|
@@ -992,13 +994,16 @@ export function handleMouseEvent(app, m) {
|
|
|
992
994
|
// release, which meant (a) visible latency before the word highlights
|
|
993
995
|
// and (b) double-click+drag fell through to char-mode selection.
|
|
994
996
|
const now = Date.now();
|
|
997
|
+
const target = app.props.onClickTargetAt?.(col, row) ?? null;
|
|
995
998
|
const nearLast = now - app.lastClickTime < MULTI_CLICK_TIMEOUT_MS &&
|
|
999
|
+
target === app.lastClickTarget &&
|
|
996
1000
|
Math.abs(col - app.lastClickCol) <= MULTI_CLICK_DISTANCE &&
|
|
997
1001
|
Math.abs(row - app.lastClickRow) <= MULTI_CLICK_DISTANCE;
|
|
998
1002
|
app.clickCount = nearLast ? app.clickCount + 1 : 1;
|
|
999
1003
|
app.lastClickTime = now;
|
|
1000
1004
|
app.lastClickCol = col;
|
|
1001
1005
|
app.lastClickRow = row;
|
|
1006
|
+
app.lastClickTarget = target;
|
|
1002
1007
|
if (app.clickCount >= 2) {
|
|
1003
1008
|
// Cancel any pending hyperlink-open from the first click — this is
|
|
1004
1009
|
// a double-click, not a single-click on a link.
|
|
@@ -1065,6 +1070,9 @@ export function handleMouseEvent(app, m) {
|
|
|
1065
1070
|
// the health probe is deferred to the batch tail — a single stdin
|
|
1066
1071
|
// chunk can carry `release → next press`, and the probe must not
|
|
1067
1072
|
// write before the next press latch is established.
|
|
1073
|
+
// The click is dispatched at release coordinates; capture that target
|
|
1074
|
+
// before its handler can synchronously change the DOM tree.
|
|
1075
|
+
app.lastClickTarget = app.props.onClickTargetAt?.(col, row) ?? null;
|
|
1068
1076
|
app.pendingClickProbe = true;
|
|
1069
1077
|
if (!app.props.onClickAt(col, row, m.button, true)) {
|
|
1070
1078
|
// Resolve the hyperlink URL synchronously while the screen buffer
|
|
@@ -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,OAA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AAU,EAChB,YAAY,OAAO,KAClB,IAgBF,CAAA;AAwBD;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,UAAU,EAChB,KAAK,MAAM,EACX,OAAO,gBAAgB,KACtB,IAaF,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,MAAM,OAAO,EAAE,OAAO,MAAM,KAAG,IAQvD,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GACxB,MAAM,UAAU,EAChB,YAAY,UAAU,KACrB,IAUF,CAAA;AA6BD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,QAY7C,CAAA;AAwLD;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,KAAG,IAuB1C,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,IAkB9C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,OAAO,KAAG,IAInD,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,QAAQ,EAAE,MAAM,MAAM,KAAG,IAY/D,CAAA;AAMD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,MAAM,UAAU,GAAG,QAAQ,KAAG,IAOrE,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAmBzE"}
|
package/lib/types/ink/dom.js
CHANGED
|
@@ -322,10 +322,20 @@ function measureTextDimensions(text, width, widthMode, textWrap) {
|
|
|
322
322
|
return dimensions;
|
|
323
323
|
}
|
|
324
324
|
// This is happening when <Box> is shrinking child nodes and layout asks
|
|
325
|
-
// if we can fit this text node in a <1px space
|
|
326
|
-
|
|
327
|
-
|
|
325
|
+
// if we can fit this text node in a <1px space. Truncated text never wraps:
|
|
326
|
+
// below one column the drawing path cuts the whole string — newlines
|
|
327
|
+
// included — to nothing, so the node paints exactly one row. The `dimensions`
|
|
328
|
+
// measured above are instead the WRAPPED count of the untruncated text (a `~`
|
|
329
|
+
// measured at 0.16 columns reports height 7), and a footer row that keeps that
|
|
330
|
+
// height paints one line plus six blank ones — the narrow-footer blank band
|
|
331
|
+
// (#1883/#1926). Width keeps reporting the natural extent so the parent still
|
|
332
|
+
// sees "does not fit" and keeps shrinking.
|
|
333
|
+
if (textWrap.startsWith('truncate') && dimensions.width >= 1 && width > 0 && width < 1) {
|
|
334
|
+
return { width: dimensions.width, height: 1 };
|
|
328
335
|
}
|
|
336
|
+
// Wrapping modes must reach wrapText below: paint still wraps at this
|
|
337
|
+
// fractional width (one grapheme per row), so the wrapped count of the
|
|
338
|
+
// untruncated text is not the height the node occupies (#1933).
|
|
329
339
|
// For text with embedded newlines (pre-wrapped content), avoid re-wrapping
|
|
330
340
|
// at measurement width when layout is asking for intrinsic size (Undefined mode).
|
|
331
341
|
// This prevents height inflation during min/max size checks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-event.d.ts","sourceRoot":"","sources":["../../../../src/ink/events/input-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC;;;GAGG;AACH,MAAM,MAAM,GAAG,GAAG;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,IA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,EAAE,EAAE,OAAO,CAAA;IACX,GAAG,EAAE,OAAO,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,OAAO,CAAA;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AA6KD;;;GAGG;AACH,qBAAa,UAAW,SAAQ,KAAK;IACnC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;wBAGoB;IACpB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAA;gBAEd,QAAQ,EAAE,SAAS;CAShC"}
|
|
@@ -89,14 +89,15 @@ function parseKey(keypress) {
|
|
|
89
89
|
input = '';
|
|
90
90
|
}
|
|
91
91
|
else {
|
|
92
|
-
// 'space' → ' ';
|
|
93
|
-
// processedAsSpecialSequence bypasses the
|
|
94
|
-
// clear below, so
|
|
95
|
-
// otherwise
|
|
92
|
+
// 'space' → ' '; every other non-printing key → '' (its flag carries it:
|
|
93
|
+
// return/tab/backspace/arrows/…). processedAsSpecialSequence bypasses the
|
|
94
|
+
// nonAlphanumericKeys clear below, so the filter has to run here too —
|
|
95
|
+
// otherwise a handler that inserts any non-empty input writes the
|
|
96
|
+
// literal key name ("return", "tab", "up") into its draft.
|
|
96
97
|
input =
|
|
97
98
|
keypress.name === 'space'
|
|
98
99
|
? ' '
|
|
99
|
-
: keypress.name
|
|
100
|
+
: nonAlphanumericKeys.includes(keypress.name)
|
|
100
101
|
? ''
|
|
101
102
|
: keypress.name;
|
|
102
103
|
}
|
|
@@ -118,7 +119,7 @@ function parseKey(keypress) {
|
|
|
118
119
|
input =
|
|
119
120
|
keypress.name === 'space'
|
|
120
121
|
? ' '
|
|
121
|
-
: keypress.name
|
|
122
|
+
: nonAlphanumericKeys.includes(keypress.name)
|
|
122
123
|
? ''
|
|
123
124
|
: keypress.name;
|
|
124
125
|
}
|
|
@@ -20,6 +20,12 @@
|
|
|
20
20
|
* after writeDiffToTerminal; test harnesses that bypass ink and write
|
|
21
21
|
* frames directly may call it manually to keep consumers in step. */
|
|
22
22
|
export declare function noteTerminalFlush(): void;
|
|
23
|
+
/** Capture this frame's presentation waiters before enqueueing its write.
|
|
24
|
+
* Later commits cannot claim an older queued frame's completion. */
|
|
25
|
+
export declare function takeTerminalFlushWaiters(stdout: NodeJS.WriteStream): ((error?: Error | null) => void) | undefined;
|
|
26
|
+
/** Subscribe during React's mutation phase, before resetAfterCommit can flush.
|
|
27
|
+
* Cleanup also cancels a queued callback if a newer commit removes the card. */
|
|
28
|
+
export declare function afterNextTerminalFlush(stdout: NodeJS.WriteStream, callback: () => void): () => void;
|
|
23
29
|
/** Current flush tick. Consumers capture it when they widen state and only
|
|
24
30
|
* tighten again once the tick has advanced (a frame flushed since). */
|
|
25
31
|
export declare function getTerminalFlushTick(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flush-tick.d.ts","sourceRoot":"","sources":["../../../src/ink/flush-tick.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH;;sEAEsE;AACtE,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAED;wEACwE;AACxE,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
|
1
|
+
{"version":3,"file":"flush-tick.d.ts","sourceRoot":"","sources":["../../../src/ink/flush-tick.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH;;sEAEsE;AACtE,wBAAgB,iBAAiB,IAAI,IAAI,CAExC;AAED;oEACoE;AACpE,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAQjH;AAMD;gFACgF;AAChF,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAOnG;AAED;wEACwE;AACxE,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
|
|
@@ -24,6 +24,37 @@ let flushTick = 0;
|
|
|
24
24
|
export function noteTerminalFlush() {
|
|
25
25
|
flushTick++;
|
|
26
26
|
}
|
|
27
|
+
/** Capture this frame's presentation waiters before enqueueing its write.
|
|
28
|
+
* Later commits cannot claim an older queued frame's completion. */
|
|
29
|
+
export function takeTerminalFlushWaiters(stdout) {
|
|
30
|
+
const pending = flushWaiters.get(stdout);
|
|
31
|
+
if (pending === undefined || pending.size === 0)
|
|
32
|
+
return undefined;
|
|
33
|
+
flushWaiters.delete(stdout);
|
|
34
|
+
return error => {
|
|
35
|
+
if (error !== undefined && error !== null)
|
|
36
|
+
return;
|
|
37
|
+
for (const notify of pending)
|
|
38
|
+
notify();
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
// Scoped to the renderer's output: another app's frame cannot acknowledge this
|
|
42
|
+
// app's content. A waiter is consumed by one completed terminal write only.
|
|
43
|
+
const flushWaiters = new WeakMap();
|
|
44
|
+
/** Subscribe during React's mutation phase, before resetAfterCommit can flush.
|
|
45
|
+
* Cleanup also cancels a queued callback if a newer commit removes the card. */
|
|
46
|
+
export function afterNextTerminalFlush(stdout, callback) {
|
|
47
|
+
let active = true;
|
|
48
|
+
const notify = () => { queueMicrotask(() => { if (active)
|
|
49
|
+
callback(); }); };
|
|
50
|
+
let pending = flushWaiters.get(stdout);
|
|
51
|
+
if (pending === undefined) {
|
|
52
|
+
pending = new Set();
|
|
53
|
+
flushWaiters.set(stdout, pending);
|
|
54
|
+
}
|
|
55
|
+
pending.add(notify);
|
|
56
|
+
return () => { active = false; pending.delete(notify); };
|
|
57
|
+
}
|
|
27
58
|
/** Current flush tick. Consumers capture it when they widen state and only
|
|
28
59
|
* tighten again once the tick has advanced (a frame flushed since). */
|
|
29
60
|
export function getTerminalFlushTick() {
|
|
@@ -47,6 +47,8 @@ export declare function resetHitTestWithOverlaysCount(): void;
|
|
|
47
47
|
* @returns the deepest element at (col, row), or null.
|
|
48
48
|
*/
|
|
49
49
|
export declare function hitTestWithOverlays(root: DOMElement, col: number, row: number): DOMElement | null;
|
|
50
|
+
/** Find the nearest click handler owner, rather than its hit text child. */
|
|
51
|
+
export declare function findClickTarget(root: DOMElement, col: number, row: number): DOMElement | null;
|
|
50
52
|
/**
|
|
51
53
|
* Hit-test the root at (col, row) and bubble a ClickEvent from the deepest
|
|
52
54
|
* containing node up through parentNode. Only nodes with an onClick handler
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hit-test.d.ts","sourceRoot":"","sources":["../../../src/ink/hit-test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAG1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AASvD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,UAAU,GAAG,IAAI,CA8BnB;AAOD;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,MAAM,CAEpD;AAED,yEAAyE;AACzE,wBAAgB,6BAA6B,IAAI,IAAI,CAEpD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,UAAU,GAAG,IAAI,CAmBnB;A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,EAChB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,UAAU,GAAG,IAAI,CAQnB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,UAAU,EAClB,KAAK,EAAE,SAAS,GACf,IAAI,CAON;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,GAAG,CAAC,UAAU,CAAC,EACxB,GAAG,SAAK,EACR,GAAG,SAAK,GACP,IAAI,CAiBN;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,MAAM,SAAI,EACV,MAAM,SAAI,GACT,OAAO,CAcT;AA6BD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,GAAG,IAAI,GAC5C,IAAI,CAEN;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAE/C;AAqED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,EAChB,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,GAAG,CAAC,UAAU,CAAC,GACvB,IAAI,CA4FN"}
|
|
@@ -111,6 +111,16 @@ export function hitTestWithOverlays(root, col, row) {
|
|
|
111
111
|
}
|
|
112
112
|
return hitTest(root, col, row);
|
|
113
113
|
}
|
|
114
|
+
/** Find the nearest click handler owner, rather than its hit text child. */
|
|
115
|
+
export function findClickTarget(root, col, row) {
|
|
116
|
+
let node = hitTestWithOverlays(root, col, row) ?? undefined;
|
|
117
|
+
while (node) {
|
|
118
|
+
if (node._eventHandlers?.onClick)
|
|
119
|
+
return node;
|
|
120
|
+
node = node.parentNode;
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
114
124
|
/**
|
|
115
125
|
* Hit-test the root at (col, row) and bubble a ClickEvent from the deepest
|
|
116
126
|
* containing node up through parentNode. Only nodes with an onClick handler
|
|
@@ -29,7 +29,7 @@ export type ProgramStatusChannel = {
|
|
|
29
29
|
* that instead would report idle for a first failure and, after a
|
|
30
30
|
* successful turn, report the previous `completed` as a fresh `done`.
|
|
31
31
|
*/
|
|
32
|
-
turnOutcome: 'completed' | 'interrupted' | 'error' | undefined;
|
|
32
|
+
turnOutcome: 'completed' | 'interrupted' | 'error' | 'stopped' | undefined;
|
|
33
33
|
/** Live ends from the channel router, including turns that started in replay. */
|
|
34
34
|
liveTurnEnds: number;
|
|
35
35
|
/** Changes on a rebind even when the backend keeps the same session id. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-program-status.d.ts","sourceRoot":"","sources":["../../../../src/ink/hooks/use-program-status.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,sBAAsB,CAAA;AAE7B,gEAAgE;AAChE,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,8EAA8E;IAC9E,IAAI,EAAE,kBAAkB,CAAA;IACxB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,0EAA0E;IAC1E,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAA;IACpD,yBAAyB;IACzB,OAAO,EAAE,OAAO,CAAA;IAChB;;;;;;OAMG;IACH,WAAW,EAAE,WAAW,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"use-program-status.d.ts","sourceRoot":"","sources":["../../../../src/ink/hooks/use-program-status.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,kBAAkB,EAExB,MAAM,sBAAsB,CAAA;AAE7B,gEAAgE;AAChE,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAE3C;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,8EAA8E;IAC9E,IAAI,EAAE,kBAAkB,CAAA;IACxB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,0EAA0E;IAC1E,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAA;IACpD,yBAAyB;IACzB,OAAO,EAAE,OAAO,CAAA;IAChB;;;;;;OAMG;IACH,WAAW,EAAE,WAAW,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAA;IAC1E,iFAAiF;IACjF,YAAY,EAAE,MAAM,CAAA;IACpB,2EAA2E;IAC3E,sBAAsB,EAAE,MAAM,CAAA;IAC9B,oDAAoD;IACpD,YAAY,EAAE,MAAM,CAAA;IACpB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6DAA6D;IAC7D,OAAO,EAAE,oBAAoB,CAAA;IAC7B,8EAA8E;IAC9E,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAA;IACpC,6CAA6C;IAC7C,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAqEhE"}
|
|
@@ -69,8 +69,9 @@ export function useProgramStatus(input) {
|
|
|
69
69
|
case 'error':
|
|
70
70
|
return { state: 'error' };
|
|
71
71
|
case 'interrupted':
|
|
72
|
-
|
|
73
|
-
//
|
|
72
|
+
case 'stopped':
|
|
73
|
+
// The user cancelled or the backend disposed the session: back at
|
|
74
|
+
// rest, per the spec's "report idle when the user interrupts".
|
|
74
75
|
return { state: 'idle' };
|
|
75
76
|
case 'completed':
|
|
76
77
|
return { state: 'done' };
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import { type JumpBackState } from '../jumpback-state.js';
|
|
2
|
+
/**
|
|
3
|
+
* The pane-title suffix that names this pane to the jump-back helper, or ''
|
|
4
|
+
* when the marker must not appear — disabled, not minted yet, or not Windows
|
|
5
|
+
* (no other host can resolve it).
|
|
6
|
+
* @param state - the published jump-back state.
|
|
7
|
+
* @param platform - the host platform; injectable for verification.
|
|
8
|
+
* @returns `' [dsh-tui:<16 hex>]'` when the marker belongs in the title.
|
|
9
|
+
*/
|
|
10
|
+
export declare function jumpBackTitleSuffix(state: JumpBackState, platform?: NodeJS.Platform): string;
|
|
1
11
|
/**
|
|
2
12
|
* Declaratively set the terminal tab/window title.
|
|
3
13
|
*
|
|
@@ -8,6 +18,11 @@
|
|
|
8
18
|
*
|
|
9
19
|
* On Windows, uses `process.title` (classic conhost doesn't support OSC).
|
|
10
20
|
* Elsewhere, writes OSC 0 (set title+icon) via Ink's stdout.
|
|
21
|
+
*
|
|
22
|
+
* When jump-back is enabled on Windows, the pane marker is appended after
|
|
23
|
+
* ANSI stripping. The hook subscribes to the jump-back state so flipping the
|
|
24
|
+
* setting rewrites the title immediately, and the marker it appends is the
|
|
25
|
+
* same published value the activation URI carries.
|
|
11
26
|
* @param title - the title to set, or null to opt out.
|
|
12
27
|
*/
|
|
13
28
|
export declare function useTerminalTitle(title: string | null): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-terminal-title.d.ts","sourceRoot":"","sources":["../../../../src/ink/hooks/use-terminal-title.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-terminal-title.d.ts","sourceRoot":"","sources":["../../../../src/ink/hooks/use-terminal-title.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuC,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAI9F;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,aAAa,EACpB,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAC3C,MAAM,CAGR;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAe3D"}
|