@deepseek-harness-tui/dsh-tui 0.17.0 → 0.19.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 +43 -16
- package/bin/dsh-tui.js +46 -3
- package/cli/adapters/dsh/index.mjs +2 -2
- package/guide/dsh-tui-guide/cli.en.md +1 -1
- package/guide/dsh-tui-guide/cli.md +1 -1
- 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 +8 -2
- package/guide/dsh-tui-guide/configuration.md +8 -2
- package/guide/dsh-tui-guide/getting-started.en.md +174 -6
- package/guide/dsh-tui-guide/getting-started.md +125 -15
- package/guide/dsh-tui-guide/interaction.en.md +30 -8
- package/guide/dsh-tui-guide/interaction.md +18 -5
- package/guide/dsh-tui-guide/plugins.en.md +28 -7
- package/guide/dsh-tui-guide/plugins.md +18 -5
- package/guide/dsh-tui-guide/user-guide.en.md +32 -17
- package/guide/dsh-tui-guide/user-guide.md +23 -12
- package/lib/settings.json +3 -3
- package/lib/types/adapter/channel/ui-policy.d.ts +1 -0
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +1 -0
- package/lib/types/adapter/ports/channel-ui.d.ts +10 -2
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +31 -5
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.d.ts +60 -0
- package/lib/types/adapter/standard/grants.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.js +74 -0
- package/lib/types/agent/events.d.ts +16 -3
- 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/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/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +78 -10
- package/lib/types/channel/questions.d.ts +19 -3
- package/lib/types/channel/questions.d.ts.map +1 -1
- 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/GoalTodoPanel.d.ts +71 -6
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +165 -17
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +14 -9
- package/lib/types/components/PluginGrantList.d.ts +45 -0
- package/lib/types/components/PluginGrantList.d.ts.map +1 -0
- package/lib/types/components/PluginGrantList.js +126 -0
- package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
- package/lib/types/components/PluginInstallPane.js +35 -6
- package/lib/types/components/PluginManagePane.d.ts.map +1 -1
- package/lib/types/components/PluginManagePane.js +65 -8
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +63 -8
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +17 -1
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +12 -0
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +16 -7
- package/lib/types/components/onboardingModel.d.ts +2 -2
- package/lib/types/components/onboardingModel.js +3 -3
- package/lib/types/components/onboardingProviderPlan.d.ts +110 -0
- package/lib/types/components/onboardingProviderPlan.d.ts.map +1 -0
- package/lib/types/components/onboardingProviderPlan.js +78 -0
- package/lib/types/components/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 +41 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +123 -6
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +9 -2
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +9 -2
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +14 -2
- package/lib/types/components/sidePanel/types.d.ts +2 -0
- package/lib/types/components/sidePanel/types.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.js +15 -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/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/backend/session.d.ts +7 -1
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/session.js +74 -6
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +15 -6
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.js +3 -1
- package/lib/types/dsh-adapter/channel/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/composer-images.d.ts +2 -0
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +10 -2
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-mentions.js +22 -7
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +3 -7
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +16 -6
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +6 -0
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.js +35 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +3 -7
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +6 -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 +8 -0
- package/lib/types/dsh-adapter/channel/input-actions.d.ts +4 -4
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +59 -5
- 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 +21 -8
- package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mentions.js +21 -7
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +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/paths.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/paths.js +11 -9
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.js +6 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.js +3 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +10 -3
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.js +9 -3
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +11 -5
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +6 -3
- 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/contract.d.ts +27 -3
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +47 -5
- package/lib/types/dsh-adapter/entry-slot.d.ts +6 -0
- package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +3 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.js +4 -0
- 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/grant-file.d.ts +70 -0
- package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
- package/lib/types/dsh-adapter/grant-file.js +178 -0
- package/lib/types/dsh-adapter/host-access.d.ts +4 -0
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +114 -15
- 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 +0 -8
- package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +27 -6
- package/lib/types/dsh-adapter/host-entry.js +4 -0
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +8 -5
- 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/panels.d.ts +7 -1
- package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.d.ts +28 -0
- package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.js +43 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts +28 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-install.js +160 -13
- package/lib/types/dsh-adapter/plugin-manage.d.ts +53 -10
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +240 -51
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +203 -58
- package/lib/types/dsh-adapter/plugins-info.d.ts +6 -7
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +34 -21
- package/lib/types/dsh-adapter/presets.d.ts +41 -10
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +59 -12
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +11 -5
- package/lib/types/dsh-adapter/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/row-attachment.d.ts +30 -0
- package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
- package/lib/types/dsh-adapter/row-attachment.js +29 -0
- package/lib/types/dsh-adapter/session-list-metadata.js +2 -2
- package/lib/types/dsh-adapter/subagents.d.ts +5 -0
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +22 -1
- package/lib/types/dsh-adapter/team-mode.d.ts +17 -10
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +19 -12
- 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/dsh-adapter/worktree-tool.d.ts +27 -0
- package/lib/types/dsh-adapter/worktree-tool.d.ts.map +1 -0
- package/lib/types/dsh-adapter/worktree-tool.js +87 -0
- package/lib/types/heldInputs.d.ts +75 -0
- package/lib/types/heldInputs.d.ts.map +1 -0
- package/lib/types/heldInputs.js +409 -0
- package/lib/types/i18n.d.ts +577 -34
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +230 -22
- 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/events/input-event.d.ts.map +1 -1
- package/lib/types/ink/events/input-event.js +7 -6
- 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/ink.d.ts +1 -0
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +5 -2
- 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.d.ts +13 -2
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +29 -5
- package/lib/types/onboardingDraft.d.ts +143 -0
- package/lib/types/onboardingDraft.d.ts.map +1 -0
- package/lib/types/onboardingDraft.js +71 -0
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +133 -32
- package/lib/types/screens/Onboarding.d.ts +22 -3
- package/lib/types/screens/Onboarding.d.ts.map +1 -1
- package/lib/types/screens/Onboarding.js +606 -36
- package/lib/types/screens/SessionSupervisor.d.ts +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.js +2 -2
- 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/paths.d.ts +15 -0
- package/lib/types/utils/paths.d.ts.map +1 -1
- package/lib/types/utils/paths.js +25 -0
- package/lib/types/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 -108
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -29,8 +29,12 @@ PowerShell:
|
|
|
29
29
|
$env:DEEPSEEK_API_KEY = 'your-key'
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Never commit a real credential.
|
|
33
|
-
|
|
32
|
+
Never commit a real credential. You can also set nothing at all: the **first step of the
|
|
33
|
+
first-run guide** signs in to a subscription (OAuth, including DeepSeek account browser
|
|
34
|
+
authorization) or adds a model provider with an API key, writes it into the DSH credential
|
|
35
|
+
store (`$DSH_HOME/.credentials.yaml`, by default `~/.dsh/.credentials.yaml`) and picks one of
|
|
36
|
+
the models it brought in as the default — the environment variable is only the "you can also
|
|
37
|
+
do this" path. A normal profile launch reads the environment variable directly when it is set.
|
|
34
38
|
|
|
35
39
|
## Install
|
|
36
40
|
|
|
@@ -138,7 +142,7 @@ the same commands:
|
|
|
138
142
|
|
|
139
143
|
| Command | Purpose |
|
|
140
144
|
| --- | --- |
|
|
141
|
-
| `dsh-tui update` |
|
|
145
|
+
| `dsh-tui update` | Align the whole set (profile TUI, global dsh engine, global launcher) and verify it, without entering or restarting the TUI; same decision as the in-TUI `/update` |
|
|
142
146
|
| `dsh-tui doctor` | Environment checks: dsh/pnpm, profile install and version alignment, whether the API key is set (state only, never the value), config file presence; complements the in-TUI `/doctor` session diagnostics |
|
|
143
147
|
| `dsh-tui safe` | Safe mode: read-only diagnostics, inventory, repair guidance (`safe --rescue` also creates/verifies the clean rescue profile) |
|
|
144
148
|
| `dsh-tui version` | Show the launcher and profile versions (`--version`/`-v` are equivalent) |
|
|
@@ -211,19 +215,162 @@ diagnostics, a profile plugin inventory, and repair guidance.
|
|
|
211
215
|
|
|
212
216
|
## Update to the latest version
|
|
213
217
|
|
|
214
|
-
The project moves fast.
|
|
215
|
-
|
|
218
|
+
The project moves fast. One `/update` (or `dsh-tui update`) aligns **one
|
|
219
|
+
mutually compatible set** across three layers and verifies it; the in-TUI
|
|
220
|
+
`/update` then restarts and resumes the session, while `dsh-tui update` only
|
|
221
|
+
aligns — it neither enters nor restarts the TUI:
|
|
222
|
+
|
|
223
|
+
1. **The TUI inside the profile**: `dsh plugin --profile dsh-tui update @deepseek-harness-tui/dsh-tui@<version>`.
|
|
224
|
+
2. **The global `dsh` engine**: the highest version published on the registry
|
|
225
|
+
inside the target TUI's `dsh-app-boot` peer range, installed into the **same
|
|
226
|
+
global prefix** with the detected package manager (npm `--prefix` /
|
|
227
|
+
`pnpm add -g`). pnpm is auto-updated only when its owning install group is
|
|
228
|
+
proven to contain `dsh` alone: a one-package `pnpm add -g` replaces the whole
|
|
229
|
+
group and removes its other commands, so multi-member groups, shared-store
|
|
230
|
+
installs and unprovable homes are left untouched with `pnpm list -g --depth 0`
|
|
231
|
+
inspection guidance.
|
|
232
|
+
3. **The global `dsh-tui` launcher**: file-by-file atomic replacement for npm
|
|
233
|
+
layouts (`bin/dsh-tui.js` and `package.json` are separate renames, so a
|
|
234
|
+
failure between them leaves only the first replaced); `pnpm add -g` for pnpm
|
|
235
|
+
layouts only when the group is proven to contain just the launcher, with
|
|
236
|
+
multi-member or unprovable groups left untouched (details below).
|
|
237
|
+
|
|
238
|
+
The order is fixed — TUI → engine → launcher. A failed TUI install leaves the
|
|
239
|
+
engine untouched, so the old pair normally still boots; a timeout or
|
|
240
|
+
cancellation can leave a half-installed profile, though (see "Bounded update
|
|
241
|
+
installation" below), and the failure notice prints the recovery command. A
|
|
242
|
+
failed engine install keeps the update restartable while the current pair is
|
|
243
|
+
still inside the new TUI's range, and prints the engine repair command. When the
|
|
244
|
+
engine step cannot be automated at all (unproven pnpm group, unwritable prefix,
|
|
245
|
+
unrecognised layout, unreachable registry), the update still continues while
|
|
246
|
+
the current engine is inside the range, but the reason (with a manual command
|
|
247
|
+
when one is available) is reported and `dsh-tui update` exits non-zero instead
|
|
248
|
+
of claiming a whole-set success. **Launcher alignment is normally best effort,
|
|
249
|
+
but a failure after the engine advances blocks the restart** and prints the
|
|
250
|
+
manual repair command: an old launcher in the same npm prefix may keep the new
|
|
251
|
+
engine from loading the updated profile. When the engine did not advance, a
|
|
252
|
+
launcher failure remains a warning and does not block the restart.
|
|
253
|
+
**Never downgrade**: an engine or launcher ahead of the target is left alone and
|
|
254
|
+
reported as drift at boot and by `/update`.
|
|
255
|
+
There are two refusals. When the preflight sees "the TUI must move, but the
|
|
256
|
+
current engine is outside the new TUI's peer range", nothing is torn down and
|
|
257
|
+
nothing restarts: the official plugin manager validates the new TUI against the
|
|
258
|
+
dsh that is RUNNING, and the engine step runs after the TUI. A **below-range**
|
|
259
|
+
engine that can be upgraded automatically must be aligned first and `/update`
|
|
260
|
+
rerun (the refusal prints that command); an engine **above** the range (newer
|
|
261
|
+
than this TUI validates) is never downgraded and never paired with an
|
|
262
|
+
unvalidated TUI — the refusal only asks to wait for a dsh-tui release that
|
|
263
|
+
declares it, with no install command. When the preflight passes but the engine
|
|
264
|
+
step fails only after the TUI moved (the version did not advance, or the old
|
|
265
|
+
engine is no longer loadable), the new TUI is kept and only the restart is
|
|
266
|
+
refused. "The old engine is still loadable"
|
|
267
|
+
needs positive proof — its `bin.dsh` entry starts in a fresh process and
|
|
268
|
+
`--version` exits 0, or `dsh --version` runs — an existing entry file or a
|
|
269
|
+
readable manifest is not enough. On POSIX, if pnpm keeps the old store tree
|
|
270
|
+
behind a shared runtime fallback link, that link is atomically refreshed only
|
|
271
|
+
when the new entry belongs to the same pnpm home, matches the target version
|
|
272
|
+
and passes the startup probe; both the profile link and PATH are then verified.
|
|
273
|
+
The profile's own dependencies, real directories and links to other installs
|
|
274
|
+
are left untouched. Windows does not attempt a non-atomic junction replacement:
|
|
275
|
+
the old link and unverified result remain, requiring manual inspection and
|
|
276
|
+
recreation of the shared fallback link. A preflight refusal writes the current
|
|
277
|
+
version, target range and next step (with the manual command when one can run)
|
|
278
|
+
into the transcript; when the engine step fails only after the TUI was torn
|
|
279
|
+
down, the same details go to the terminal's stderr (`dsh-tui update` writes
|
|
280
|
+
stderr too). The toast stays a short pointer. A preflight refusal also names its
|
|
281
|
+
next step: an engine below the required range but installable is upgraded first
|
|
282
|
+
(and `/update` rerun afterwards), an engine above the range waits for a TUI
|
|
283
|
+
release that declares it (no downgrade/install), an unreachable registry is a
|
|
284
|
+
retry (not a compatibility verdict), a
|
|
285
|
+
dsh release missing from the declared range is a wait (no impossible install
|
|
286
|
+
command is printed), `DSH_TUI_UPDATE_ENGINE=0` is a switch to drop, and an
|
|
287
|
+
unrecognised/unwritable/ambiguous global install is a repair. When the TUI is
|
|
288
|
+
already current and the registry has a newer dsh outside that TUI's declared
|
|
289
|
+
peer range, `/update` says it is waiting for a dsh-tui release instead of
|
|
290
|
+
silently stopping at the validated line or installing an unvalidated engine.
|
|
291
|
+
After pnpm rotates a global install group, a direct DSH launch re-resolves and
|
|
292
|
+
probes its actual JS entry while preserving host options such as `--profile`
|
|
293
|
+
and `--patch`. An unproven entry refuses the restart and prints the repair
|
|
294
|
+
command instead of executing a deleted path in the old group.
|
|
295
|
+
|
|
296
|
+
Manual fallbacks (the refusal names the matching layout command when one can
|
|
297
|
+
run; an above-range engine only asks you to wait for a TUI release and never to
|
|
298
|
+
downgrade; for an unpublished release it only asks you to wait):
|
|
216
299
|
|
|
217
300
|
```sh
|
|
301
|
+
# TUI only
|
|
218
302
|
dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui@latest
|
|
303
|
+
# engine
|
|
304
|
+
npm install -g @deepseek-ai/dsh@0.2.2-rc.1
|
|
305
|
+
# or, for a pnpm global layout (first confirm the global group holds dsh
|
|
306
|
+
# alone; a one-package install replaces the whole group and its other commands):
|
|
307
|
+
pnpm add -g @deepseek-ai/dsh@0.2.2-rc.1
|
|
308
|
+
# global launcher
|
|
309
|
+
npm install -g --legacy-peer-deps @deepseek-harness-tui/dsh-tui@latest
|
|
310
|
+
# or, only after confirming the pnpm global group contains this package alone:
|
|
311
|
+
pnpm add -g --config.auto-install-peers=false @deepseek-harness-tui/dsh-tui@latest
|
|
219
312
|
```
|
|
220
313
|
|
|
314
|
+
When you launch through the global `dsh-tui` command, the launcher is aligned
|
|
315
|
+
automatically after a successful `/update`, and only against a global install it
|
|
316
|
+
can prove: an npm global install is replaced file by file, each write atomic on
|
|
317
|
+
its own (`bin/dsh-tui.js` and `package.json` are separate renames, so a failure
|
|
318
|
+
between them leaves only the first replaced; the launcher step reports that
|
|
319
|
+
failure and blocks the restart if the engine advanced; otherwise it remains
|
|
320
|
+
restartable), and it needs a matching global bin link or shim — project-local
|
|
321
|
+
npm/npx installs are never overwritten. A pnpm global
|
|
322
|
+
install goes through `pnpm add -g` only when its group is proven to contain just
|
|
323
|
+
the launcher, never through the store's symlinks. pnpm 11+ isolates packages
|
|
324
|
+
installed together into a group; recreating a multi-member group can lose other
|
|
325
|
+
tools' required peers even when their direct versions stay unchanged, so such
|
|
326
|
+
groups, and groups that cannot be proven, are left untouched with guidance to
|
|
327
|
+
inspect and preserve their dependencies rather than reinstalled automatically.
|
|
328
|
+
An undetermined install shape is also left untouched, leaving only the boot-time
|
|
329
|
+
notice. For older launchers carrying only a version marker, `dsh-tui` and `dst`
|
|
330
|
+
must not resolve to different installations on PATH. A pnpm logical group or
|
|
331
|
+
owning shim takes precedence over an inherited `PNPM_HOME`; the location of a
|
|
332
|
+
shared store is not ownership evidence. A failed alignment step prints a manual
|
|
333
|
+
install command only when that command is known to be safe.
|
|
334
|
+
|
|
335
|
+
Escape hatches: `DSH_TUI_UPDATE_ENGINE=0` skips the automatic engine install
|
|
336
|
+
(with a pinned engine, a TUI upgrade that no longer supports it is still
|
|
337
|
+
refused); `DSH_TUI_UPDATE_LAUNCHER=0` skips launcher alignment;
|
|
338
|
+
`DSH_TUI_DSH_PM=npm|pnpm` overrides package-manager detection (for diagnosing
|
|
339
|
+
an abnormal prefix).
|
|
340
|
+
|
|
221
341
|
- Without `@latest`, pnpm resolves within the version range already recorded
|
|
222
342
|
in the profile's `package.json` (for example `^0.1.4`), so it may stay on an
|
|
223
343
|
old line. That is the usual reason "re-running the install command" appears
|
|
224
344
|
to change nothing.
|
|
345
|
+
- To repair a version mismatch, prefer the **exact-version** command from the
|
|
346
|
+
refusal/failure notice (for example
|
|
347
|
+
`npm install -g @deepseek-harness-tui/dsh-tui@0.8.3`); use `@latest` only for
|
|
348
|
+
routine upgrades — it may be newer than the profile and stay misaligned.
|
|
349
|
+
- pnpm 11+ global installs are grouped: a one-package `pnpm add -g` replaces the
|
|
350
|
+
whole group and removes its other tools. `/update` never recreates multi-member
|
|
351
|
+
groups; even re-adding every direct version can lose their auto-installed peers.
|
|
352
|
+
Run `pnpm list -g --depth 0` to inspect the group, and preserve every member and
|
|
353
|
+
its installed peers before a manual repair. Use a separate global prefix when
|
|
354
|
+
reinstalling the launcher alone. Do not apply the single-package command above
|
|
355
|
+
to a multi-member group or use `pnpm update -g --latest` (it upgrades every
|
|
356
|
+
member to latest).
|
|
357
|
+
- A pnpm global alignment has two preconditions. It works without an exported
|
|
358
|
+
`PNPM_HOME` — the home is derived from the shim's own directory (`<PNPM_HOME>`
|
|
359
|
+
or `<PNPM_HOME>/bin`) and only accepted when that group provably owns this
|
|
360
|
+
package. And the launcher-only group install resolves **no peers**: every
|
|
361
|
+
`@deepseek-ai/*` package is provided by the profile at runtime, while pnpm's
|
|
362
|
+
peer auto-install follows their peer ranges onto an **unpublished stable
|
|
363
|
+
line** and fails with `ERR_PNPM_NO_MATCHING_VERSION`, so both the alignment
|
|
364
|
+
and the manual command above pass `--config.auto-install-peers=false` — the
|
|
365
|
+
same intent as npm's `--legacy-peer-deps`.
|
|
366
|
+
- pnpm ≥11 refuses versions published within 24 hours (`minimumReleaseAge`).
|
|
367
|
+
`/update` and `dsh-tui update` waive that window for the engine and launcher
|
|
368
|
+
steps (`PNPM_CONFIG_MINIMUM_RELEASE_AGE=0`); add the same prefix when running
|
|
369
|
+
the `pnpm add -g` lines above by hand, or a just-published version will not
|
|
370
|
+
install.
|
|
225
371
|
- To confirm: the startup banner shows the running version
|
|
226
|
-
(`✦ dsh-TUI vX.Y.Z`)
|
|
372
|
+
(`✦ dsh-TUI vX.Y.Z`), and the post-restart `DSH_TUI_UPDATED_FROM` /
|
|
373
|
+
`DSH_TUI_UPDATED_DSH_FROM` checks verify each layer actually advanced.
|
|
227
374
|
- Your `cordis.patch.yml` override layer survives updates untouched.
|
|
228
375
|
- Session storage may move between versions (since 0.3.7, `/resume` uses the
|
|
229
376
|
JSONL session store shared with dsh web), so older sessions missing from the
|
|
@@ -448,3 +595,24 @@ Run `/doctor`, record the terminal and mode, then consult
|
|
|
448
595
|
[Architecture and limitations](architecture.en.md). `DSH_TUI_RENDER_LOG` can
|
|
449
596
|
capture raw frames for rendering bugs, but those frames may contain visible
|
|
450
597
|
conversation content and should be handled as sensitive data.
|
|
598
|
+
|
|
599
|
+
### Git fails throughout a session under Orca (`unable to parse command-line config`)
|
|
600
|
+
|
|
601
|
+
Orca injects git's indexed-config protocol into the agent terminal —
|
|
602
|
+
`GIT_CONFIG_COUNT` plus `GIT_CONFIG_KEY_n` / `GIT_CONFIG_VALUE_n` — to turn off
|
|
603
|
+
credential-manager popups. The engine strips credential-shaped variables **by
|
|
604
|
+
name** (`/KEY|PASSWORD|SECRET|TOKEN/i`) when it spawns children, so every
|
|
605
|
+
`GIT_CONFIG_KEY_n` is dropped while `GIT_CONFIG_COUNT` and
|
|
606
|
+
`GIT_CONFIG_VALUE_n` survive; git receives a broken triple and every command
|
|
607
|
+
fails with `fatal: unable to parse command-line config` (exit 128).
|
|
608
|
+
|
|
609
|
+
The root cause is the engine package's `scrubbedParentEnv()`, not dsh-tui (issue
|
|
610
|
+
#1811). To work around it, drop `GIT_CONFIG_COUNT` before launching dsh-tui —
|
|
611
|
+
without it git ignores the orphaned `KEY`/`VALUE` entries:
|
|
612
|
+
|
|
613
|
+
```sh
|
|
614
|
+
env -u GIT_CONFIG_COUNT dsh-tui
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
The trade-off is losing Orca's credential-popup suppression; use
|
|
618
|
+
`GIT_TERMINAL_PROMPT=0` when you need non-interactive credentials instead.
|
|
@@ -24,7 +24,10 @@ PowerShell:
|
|
|
24
24
|
$env:DEEPSEEK_API_KEY = 'your-key'
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
不要把真实密钥提交到仓库。也可以什么都不设:**首次启动的引导第一步**可以直接
|
|
28
|
+
`登录订阅账号(OAuth)`(含 DeepSeek 账号浏览器授权)或 `添加模型提供方(API key)`,
|
|
29
|
+
写入 DSH 凭据库(`$DSH_HOME/.credentials.yaml`,默认 `~/.dsh/.credentials.yaml`),
|
|
30
|
+
并把接入进来的模型选一个作为默认——环境变量只是「你也可以这样做」的那条路。
|
|
28
31
|
|
|
29
32
|
## 安装
|
|
30
33
|
|
|
@@ -142,7 +145,7 @@ dsh-tui.cmd --resume
|
|
|
142
145
|
|
|
143
146
|
| 命令 | 作用 |
|
|
144
147
|
| --- | --- |
|
|
145
|
-
| `dsh-tui update` |
|
|
148
|
+
| `dsh-tui update` | 一次对齐整套(profile 的 TUI、全局 dsh 引擎、全局启动器)并校验,不进入 TUI、不重启;与 TUI 内 `/update` 同一决策 |
|
|
146
149
|
| `dsh-tui doctor` | 环境检查:dsh/pnpm、profile 安装与版本对齐、API key 是否设置(只报状态不读值)、配置文件存在性;与 TUI 内 `/doctor` 会话诊断互补 |
|
|
147
150
|
| `dsh-tui safe` | 安全模式:只读诊断、插件清单与修复指引(`safe --rescue` 还会创建/校验干净的救援 profile) |
|
|
148
151
|
| `dsh-tui version` | 显示启动器与 profile 版本(`--version`/`-v` 等价) |
|
|
@@ -198,29 +201,119 @@ dsh 意外结束时,安全模式提供只读的环境诊断、profile 插件
|
|
|
198
201
|
|
|
199
202
|
## 更新到最新版本
|
|
200
203
|
|
|
201
|
-
|
|
204
|
+
项目迭代很快。一次 `/update`(或 `dsh-tui update`)会把**同一套互相兼容的版本**
|
|
205
|
+
对齐到三层并校验;TUI 内的 `/update` 校验后自动重启并恢复会话,`dsh-tui update`
|
|
206
|
+
只对齐、不进入 TUI、不重启:
|
|
207
|
+
|
|
208
|
+
1. **Profile 里的 TUI**:`dsh plugin --profile dsh-tui update @deepseek-harness-tui/dsh-tui@<version>`。
|
|
209
|
+
2. **全局 `dsh` 引擎**:目标版本 = 目标 TUI 的 `dsh-app-boot` peer 范围里
|
|
210
|
+
registry 上已发布的最高版本;用检测到的包管理器装进**同一个全局前缀**
|
|
211
|
+
(npm `--prefix` / `pnpm add -g`)。pnpm 只在能证明「所属安装组只含 `dsh`」时
|
|
212
|
+
自动安装:单包 `pnpm add -g` 会替换整组并移除同组其他命令,所以多成员组、
|
|
213
|
+
共享 store 或无法确定所属 home 的安装保持原样,只打印 `pnpm list -g --depth 0`
|
|
214
|
+
的检查与保留指引。
|
|
215
|
+
3. **全局 `dsh-tui` 启动器**:npm 布局逐文件原子替换(`bin/dsh-tui.js` 与
|
|
216
|
+
`package.json` 各一次 rename,两次之间失败就只换了前一个文件),pnpm 布局仅在
|
|
217
|
+
确认组内只有启动器时走 `pnpm add -g`,多成员组或无法确定的组保持原样(细节见下)。
|
|
218
|
+
|
|
219
|
+
执行顺序固定为 TUI → 引擎 → 启动器:TUI 安装失败时引擎原样未动,旧组合通常仍
|
|
220
|
+
可启动(超时或取消可能留下半装的 profile,见下文「更新安装的有界等待」,失败
|
|
221
|
+
文案会给恢复命令);引擎失败但当前组合仍在新 TUI 的范围内时继续重启,并打印
|
|
222
|
+
引擎修复命令;引擎步骤根本无法自动执行(pnpm 组不唯一、前缀不可写、安装形态
|
|
223
|
+
无法识别、registry 查不到等)时,更新仍继续(当前引擎在范围内),但会把
|
|
224
|
+
原因(有手工命令时一并)写入转录,`dsh-tui update` 以非零退出,不再静默当作整套成功;
|
|
225
|
+
**启动器对齐通常为 best effort;但引擎已推进后若启动器对齐失败,会拒绝重启**,
|
|
226
|
+
并打印手工修复命令:npm 同前缀里的旧启动器可能让新引擎加载不到更新后的 profile。
|
|
227
|
+
引擎未推进时,启动器失败仍只警告,不阻止重启。**永不降级**:引擎或启动器比目标
|
|
228
|
+
新时保持原样,并在启动期与 `/update` 时提示漂移。
|
|
229
|
+
有两种拒绝:预检发现「TUI 要升级,而当前引擎不在新 TUI 的 peer 范围内」时,
|
|
230
|
+
不拆树、不重启——官方插件管理器用**当前运行**的 dsh 校验新 TUI,而引擎步骤
|
|
231
|
+
排在 TUI 之后。若当前引擎**低于**该范围但可自动安装,拒绝文案给出「先升级引擎,
|
|
232
|
+
再重新 /update」的命令;若当前引擎**高于**该范围(比目标 TUI 验证过的更新),
|
|
233
|
+
不降级、也不安装未验证组合,文案只提示等声明支持它的 dsh-tui 发布后重新
|
|
234
|
+
`/update`,不打印安装命令;若预检通过、TUI 已升级之后引擎步骤才失败
|
|
235
|
+
(版本未前进,或旧引擎已不可用),则保留新 TUI、拒绝重启。
|
|
236
|
+
「旧引擎仍可用」必须由真实启动探测证明(在独立进程里启动 `bin.dsh` 入口且
|
|
237
|
+
`--version` 退出 0,或 `dsh --version` 能跑);入口文件存在、manifest 可读都不算。
|
|
238
|
+
POSIX 上,pnpm 升级后若共享 runtime 回退链接仍指向保留的旧 store,仅当新入口
|
|
239
|
+
属于同一 pnpm home、版本等于目标且启动探测通过时才原子刷新该链接,再按 profile
|
|
240
|
+
链接和 PATH 两处校验;不改 profile 自己的依赖、普通目录或其他安装的链接。
|
|
241
|
+
Windows 不做非原子的 junction 替换:保留旧链接和未验证结果,需手动核对并重建
|
|
242
|
+
共享回退链接。
|
|
243
|
+
预检拒绝会把当前版本、目标范围与下一步(命令可执行时附手工命令)写入会话转录;
|
|
244
|
+
若安装后引擎步骤才失败(TUI 已拆),同一份信息写入终端 stderr(`dsh-tui update`
|
|
245
|
+
也写 stderr),toast 只留一句短提示。拒绝还会按原因给出下一步:当前引擎不在
|
|
246
|
+
范围内但可升级时先升级引擎再重新 `/update`;高于范围时等 TUI 适配(不降级、
|
|
247
|
+
不打印安装命令);registry 查询
|
|
248
|
+
失败(离线/镜像不可达)是重试项,网络恢复后重新 `/update`;范围要求的 dsh 尚未
|
|
249
|
+
发布是等待项,发布后再 `/update`,不会打印一个装不上的命令;
|
|
250
|
+
`DSH_TUI_UPDATE_ENGINE=0` 关闭了自动安装,去掉开关或按命令手工装;全局安装无法
|
|
251
|
+
识别、不可写或 pnpm 组不唯一,按命令修复安装。若 TUI 已是最新、registry 上有更新
|
|
252
|
+
的 dsh 但超出该 TUI 声明的 peer 范围,`/update` 会明确说明「等 dsh-tui 适配」,
|
|
253
|
+
不会静默停在验证线,也不会安装未验证的引擎。
|
|
254
|
+
pnpm 轮换全局安装组后,直接 DSH 启动路径会重新解析并探测实际 JS 入口,保留原来的
|
|
255
|
+
`--profile`、`--patch` 等宿主参数;无法证明入口可启动时拒绝重启并打印修复命令,
|
|
256
|
+
不会继续执行已删除的旧组路径。
|
|
257
|
+
|
|
258
|
+
手动兜底(拒绝文案在命令可执行时给出对应布局的那一条;高于范围时只提示等 TUI
|
|
259
|
+
适配、不降级;版本尚未发布时只提示等待):
|
|
202
260
|
|
|
203
261
|
```sh
|
|
204
|
-
#
|
|
262
|
+
# 只对齐 TUI
|
|
205
263
|
dsh plugin --profile dsh-tui add @deepseek-harness-tui/dsh-tui@latest
|
|
264
|
+
# 对齐引擎
|
|
265
|
+
npm install -g @deepseek-ai/dsh@0.2.2-rc.1
|
|
266
|
+
# 或(pnpm 全局布局;先确认 dsh 所在全局组只有它自己,
|
|
267
|
+
# 否则单包安装会替换整组并移除同组其他命令)
|
|
268
|
+
pnpm add -g @deepseek-ai/dsh@0.2.2-rc.1
|
|
269
|
+
# 对齐全局启动器
|
|
270
|
+
npm install -g --legacy-peer-deps @deepseek-harness-tui/dsh-tui@latest
|
|
271
|
+
# 或(确认 pnpm 全局组内只有本包时;刚发布的版本见下面「pnpm 延迟」一条)
|
|
272
|
+
pnpm add -g --config.auto-install-peers=false @deepseek-harness-tui/dsh-tui@latest
|
|
206
273
|
```
|
|
207
274
|
|
|
208
|
-
通过全局 `dsh-tui`
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
275
|
+
通过全局 `dsh-tui` 命令启动时,Launcher 会在 `/update` 成功后自动对齐,且只操作
|
|
276
|
+
可证明的全局安装:npm 布局逐文件原子替换(`bin/dsh-tui.js` 与 `package.json` 各
|
|
277
|
+
一次 rename,两次之间失败就只换了前一个文件,启动器步骤按失败报告;引擎已推进时
|
|
278
|
+
拒绝重启,未推进时仍可重启),并且需要匹配的全局 bin 链接或 shim——项目内 npm/npx 安装不会被覆写。
|
|
279
|
+
pnpm 布局仅在确认组内只有启动器时走 `pnpm add -g`,不穿过 store 的符号链接。
|
|
280
|
+
pnpm 11+ 把一起安装的包隔离成组;重建多成员组可能丢失其他工具的必需 peer,
|
|
281
|
+
即使它们的直接版本没有变化,因此多成员组或无法确定的组保持原样,只打印检查与
|
|
282
|
+
保留依赖的指引,不自动重装;无法判定安装形态时同样保持原样、只留启动期提示。
|
|
283
|
+
旧启动器只有版本标记时,`dsh-tui` 与 `dst` 的 PATH 查找若落到不同安装,会跳过
|
|
284
|
+
自动对齐;pnpm 的逻辑组或 shim 归属优先于继承的 `PNPM_HOME`,共享 store 所在
|
|
285
|
+
目录不算归属证据。可证明安全的对齐步骤失败时会打印对应布局的手工命令。
|
|
286
|
+
|
|
287
|
+
逃生开关:`DSH_TUI_UPDATE_ENGINE=0` 跳过引擎自动安装(钉死引擎时,若新 TUI
|
|
288
|
+
不再支持当前引擎,升级仍会被拒绝);`DSH_TUI_UPDATE_LAUNCHER=0` 跳过启动器
|
|
289
|
+
对齐;`DSH_TUI_DSH_PM=npm|pnpm` 覆盖包管理器判定(诊断异常前缀用)。
|
|
216
290
|
|
|
217
291
|
- 不带 `@latest` 时 pnpm 会按 profile `package.json` 里已记录的版本范围
|
|
218
292
|
(如 `^0.1.4`)就地解析,可能停留在旧的主线上——这是"重复执行安装命令
|
|
219
293
|
但版本没变"的常见原因。
|
|
220
|
-
- 修复"版本不一致"
|
|
294
|
+
- 修复"版本不一致"时,优先使用拒绝/失败文案里的**精确版本**命令(例如
|
|
221
295
|
`npm install -g @deepseek-harness-tui/dsh-tui@0.8.3`);日常主动升级才
|
|
222
|
-
使用 `@latest
|
|
223
|
-
-
|
|
296
|
+
使用 `@latest`——`@latest` 可能比 profile 里的版本更新,装上反而继续不一致。
|
|
297
|
+
- pnpm 11+ 的全局安装是分组的:单包 `pnpm add -g` 会替换整组并移除同组其他
|
|
298
|
+
工具。`/update` 不会重建多成员组;只按直接版本重装全部成员也可能丢失其
|
|
299
|
+
自动安装的 peer。先运行 `pnpm list -g --depth 0` 检查组,手工修复前保留
|
|
300
|
+
全部成员及其已安装的 peer;若只重装启动器,使用独立的全局前缀。不要对
|
|
301
|
+
多成员组套用上面的单包命令,也不要使用 `pnpm update -g --latest`
|
|
302
|
+
(它会把整组都升到 latest)。
|
|
303
|
+
- pnpm 全局对齐的两个前提:`PNPM_HOME` 没导出也能对齐——从 shim 所在目录
|
|
304
|
+
(`<PNPM_HOME>` 或 `<PNPM_HOME>/bin`)反推,并核对组内确实有本包;
|
|
305
|
+
启动器单成员组安装**不解析 peer**——`@deepseek-ai/*` 全部由 profile 在运行时提供,
|
|
306
|
+
pnpm 的 peer 自动安装会顺着它们彼此的 peer 范围撞上**未发布的稳定线**,必然以
|
|
307
|
+
`ERR_PNPM_NO_MATCHING_VERSION` 失败,所以启动器的对齐与上面那条启动器手工命令
|
|
308
|
+
都带 `--config.auto-install-peers=false`(npm 那侧对应的开关是
|
|
309
|
+
`--legacy-peer-deps`,两者同口径)。
|
|
310
|
+
- pnpm ≥11 默认不装发布不足 24 小时的版本(`minimumReleaseAge`)。`/update` 与
|
|
311
|
+
`dsh-tui update` 对引擎与启动器这两步会临时放开该窗口
|
|
312
|
+
(`PNPM_CONFIG_MINIMUM_RELEASE_AGE=0`);手工执行上面那两条 `pnpm add -g` 时
|
|
313
|
+
同样要加这个前缀,否则刚发布的版本会装不上。
|
|
314
|
+
- 确认生效:启动横幅右上角显示当前版本(`✦ dsh-TUI vX.Y.Z`),重启后的
|
|
315
|
+
`DSH_TUI_UPDATED_FROM` / `DSH_TUI_UPDATED_DSH_FROM` 校验也会检查各层是否
|
|
316
|
+
真的前进。
|
|
224
317
|
- 用户覆盖层 `cordis.patch.yml` 在更新中原样保留。
|
|
225
318
|
- 会话数据的存放位置可能随版本变化(如 0.3.7 起 `/resume` 改用与 dsh web
|
|
226
319
|
共享的 JSONL 会话库),跨大版本更新后旧会话不在列表属预期,原数据不会被删除。
|
|
@@ -434,3 +527,20 @@ dsh-tui
|
|
|
434
527
|
先运行 `/doctor`,记录终端类型和模式,再参考[交互文档](interaction.md)与
|
|
435
528
|
[架构文档](architecture.md)。渲染问题可使用 `DSH_TUI_RENDER_LOG` 采集原始帧,
|
|
436
529
|
但日志可能包含会话可见内容,应妥善处理。
|
|
530
|
+
|
|
531
|
+
### 在 Orca 终端里会话内的 git 全部失败(`unable to parse command-line config`)
|
|
532
|
+
|
|
533
|
+
Orca 会给 agent 终端注入 git 的索引配置协议 `GIT_CONFIG_COUNT` + `GIT_CONFIG_KEY_n` +
|
|
534
|
+
`GIT_CONFIG_VALUE_n`(用来关闭凭据管理器的弹窗)。引擎在派生子进程时按**变量名**剔除
|
|
535
|
+
凭据形状的变量(`/KEY|PASSWORD|SECRET|TOKEN/i`),于是 `GIT_CONFIG_KEY_n` 被删,
|
|
536
|
+
`GIT_CONFIG_COUNT` 与 `GIT_CONFIG_VALUE_n` 留下;git 只拿到残缺的三元组,任何命令都
|
|
537
|
+
直接 `fatal: unable to parse command-line config`(exit 128)。
|
|
538
|
+
|
|
539
|
+
根因在引擎包的 `scrubbedParentEnv()`,与 dsh-tui 无关(issue #1811)。规避办法是在启动
|
|
540
|
+
dsh-tui 前去掉 `GIT_CONFIG_COUNT`——没有它时 git 会忽略孤立的 `KEY`/`VALUE`:
|
|
541
|
+
|
|
542
|
+
```sh
|
|
543
|
+
env -u GIT_CONFIG_COUNT dsh-tui
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
代价是失去 Orca 对凭据弹窗的抑制;需要非交互凭据时改用 `GIT_TERMINAL_PROMPT=0`。
|
|
@@ -29,7 +29,7 @@ Fullscreen text selection belongs to its starting pane (chat, sidebar or one dif
|
|
|
29
29
|
| `Ctrl+D` | Same ladder as `Ctrl+C`: interrupt while working (press again to force-exit if the interrupt stalls); press twice while idle to exit |
|
|
30
30
|
| `Ctrl+O` | Toggle transcript/verbose detail, including full reasoning and tool arguments/output; also the escape hatch for the **long-line fold** (a single line over 1000 chars is clipped to 1000 with a `… N chars folded` marker — see the user guide §5). Clicking the folded row (or the tool card face) toggles it too |
|
|
31
31
|
| `Ctrl+P` | Toggle the loaded-context panel shown at startup (while it is on screen) |
|
|
32
|
-
| `Ctrl+B` | Side panel, three states: closed → open and focus the right column; open with the chat focused → focus the right column; panel focused → close and return to the chat. Splits only under `fullscreen` at a content width of ≥93 columns; on narrow terminals and in inline mode the key does nothing (`/jobs` & co. keep their full-screen panels — see the user guide §2.8) |
|
|
32
|
+
| `Ctrl+B` | Side panel, three states: closed → open and focus the right column; open with the chat focused → focus the right column; panel focused → close and return to the chat. Splits only under `fullscreen` at a content width of ≥93 columns; on narrow terminals and in inline mode the key does nothing (`/jobs` & co. keep their full-screen panels — see the user guide §2.8); with the panel focused, `↑`/`↓`/`PgUp`/`PgDn` go to the active panel (jobs selects and scrolls, todo scrolls a long goal with `↑`/`↓`) |
|
|
33
33
|
| `Alt+Z` | Zoom the active side panel (the chat column keeps its minimum width); press again to restore |
|
|
34
34
|
| `Ctrl+T` | Open the trajectory scene (same as `/trace`); `q`/`Esc` returns to the conversation |
|
|
35
35
|
| `Ctrl+R` | Open input-history search; repeat or press `Down` for the next result |
|
|
@@ -51,7 +51,7 @@ side panel (`Ctrl+B`/`Alt+Z`), subagent dashboard, show-all, and todo fold are r
|
|
|
51
51
|
|
|
52
52
|
- The `Ctrl+<key>` bindings above also work with `⌘<key>` on macOS (e.g. `⌘V` paste, `⌘O` expand details, `⌘Enter` send immediately).
|
|
53
53
|
- Only `Ctrl+C` / `Ctrl+D` (interrupt/exit) stay on Ctrl, to avoid clashing with muscle memory for macOS system-level `⌘C` copy and similar.
|
|
54
|
-
- `⌘` requires terminal support for the extended keyboard protocol (iTerm2 / kitty / WezTerm / ghostty / tmux).
|
|
54
|
+
- `⌘` requires terminal support for the extended keyboard protocol (iTerm2 / kitty / WezTerm / ghostty / rio / Orca / tmux). A terminal outside that list can opt in with `DSH_TUI_FORCE_EXTENDED_KEYS=1`; rio 0.5.x enables the protocol by default.
|
|
55
55
|
- macOS's built-in Terminal.app consumes `⌘` shortcuts itself, so keep using `Ctrl`.
|
|
56
56
|
|
|
57
57
|
`/` has two meanings:
|
|
@@ -144,10 +144,16 @@ results back to the chat screen and add no new behavior.
|
|
|
144
144
|
and opens the same kernel picker (keyboard path =
|
|
145
145
|
focus ring + `Enter`). Every row ends flush at the same right edge, the cwd plate is top-aligned to the
|
|
146
146
|
first row, and narrow terminals truncate per the existing truncate-middle contract.
|
|
147
|
-
- **Wizard**: `←`/`→` change step (except
|
|
148
|
-
horizontal keys belong to the child control), `Tab` switches between the language/theme and
|
|
149
|
-
model/effort/workspace panes, `↑`/`↓` move the selection; `Enter` runs the step (step 1 =
|
|
150
|
-
|
|
147
|
+
- **Wizard**: `←`/`→` change step (except step 3's effort slider, a drilled-in model list and step 1's
|
|
148
|
+
access sub-layer, where the horizontal keys belong to the child control), `Tab` switches between the language/theme and
|
|
149
|
+
model/effort/workspace panes, `↑`/`↓` move the selection; `Enter` runs the step (step 1 = act on the
|
|
150
|
+
focused action row — sign in to a subscription / add a provider (API key) / check again / skip this step;
|
|
151
|
+
both sign-in and key entry ride the shared question panel, which takes over the whole terminal and then
|
|
152
|
+
remounts the guide exactly where it was (progress lives in `src/onboardingDraft.ts`); after a sign-in
|
|
153
|
+
with several new models an inline default picker (single choice) appears: `↑`/`↓` move, `Enter` sets the
|
|
154
|
+
default, the last row "Keep the current model" leaves it alone, and `Esc` means the same and only pops
|
|
155
|
+
that layer. Step 3 = drill into a provider /
|
|
156
|
+
switch model / open the workspace picker — **effort is not
|
|
151
157
|
on Enter**, it is `←`/`→` only and applies as you move); the theme pane previews on cursor move while the
|
|
152
158
|
**language pane applies on `Enter`**; `Enter` on the last step finishes and records the guide when the
|
|
153
159
|
focused card is a shortcut card, and tries the command when it is a command card; `Esc` skips
|
|
@@ -247,6 +253,9 @@ Type `@` at **any position** of the message to open file completion.
|
|
|
247
253
|
- Keep typing to filter; `Tab`/`Enter` to pick; directories can be entered further.
|
|
248
254
|
- Plain fragments match **fuzzily** — `@ment` matches `src/utils/mentions.ts` (prefix/boundary and short-path boosts).
|
|
249
255
|
- Path-shaped queries (`@src/`, `@./`, `@../`, `@~/`, `@D:\`, or anything containing a separator) read **only that directory** for local completion.
|
|
256
|
+
- `~/` and `~\` expand to home at **any depth** (`@~/a/b/c` names the same directory as `@<home>/a/b/c`); the two spellings are equivalent, and a non-Windows terminal expands `~\` before completing too.
|
|
257
|
+
- `~user/` is **not** expanded (it is a literal path); when the current directory really has a child named `~`, `@~/…` still expands to home (shell semantics) — use `@./~/…` for the literal directory.
|
|
258
|
+
- Completion and the attachment produced on send share the same expansion: a `~/` path the menu can list resolves through the same home path.
|
|
250
259
|
- `Esc` closes only the current `@` token's menu; async refreshes keep your selected candidate.
|
|
251
260
|
- Text files and directory listings are attached as text; PNG, JPEG, WebP, and GIF files are sent as durable Harness image blocks.
|
|
252
261
|
- Reads use the active workspace filesystem, including provider-owned workspaces.
|
|
@@ -328,10 +337,23 @@ While the model is working, three paths have different placement:
|
|
|
328
337
|
with the draft right away.
|
|
329
338
|
- When a turn ends normally, queued messages still flow into the next turn;
|
|
330
339
|
`Ctrl+C` keeps the queue.
|
|
331
|
-
-
|
|
340
|
+
- On `Esc`, only messages the backend confirmed as withdrawn are held. With an older
|
|
332
341
|
Claude CLI that cannot withdraw them, or when the withdrawal request fails,
|
|
333
342
|
the backend still runs them next turn; dsh-TUI stops holding them, says so,
|
|
334
343
|
and never sends them twice.
|
|
344
|
+
- Messages dropped without running them (the session ended unexpectedly, or
|
|
345
|
+
the backend discarded them) are held as "not delivered": a loss whose
|
|
346
|
+
delivery is unknown — sent before a connection dropped, or Codex's
|
|
347
|
+
`turn/start` timing out — stays `discarded` and is not held, so nothing
|
|
348
|
+
runs twice. Held messages are never re-sent by themselves and stay for the
|
|
349
|
+
next session; on DSH, a message submitted after the session ended is held
|
|
350
|
+
the same way. While the session is ended `⏎` sends nothing: `/new` starts
|
|
351
|
+
a new session and `⏎` sends them there, or `/restart` resumes this one.
|
|
352
|
+
Images attached to a held message stay with it into the next session and
|
|
353
|
+
across a `/restart`. A held
|
|
354
|
+
message taken back with `↑` while the session is ended is an ordinary draft
|
|
355
|
+
again, and a draft's images do not survive `/new`: to keep the images,
|
|
356
|
+
run `/new` first and edit there.
|
|
335
357
|
|
|
336
358
|
## Session workflows
|
|
337
359
|
|
|
@@ -479,7 +501,7 @@ Notes:
|
|
|
479
501
|
and never reaches the main context or token counts (closing the panel discards it).
|
|
480
502
|
- **Never interrupts the running turn**: it can be triggered while the model is streaming; the main task keeps going.
|
|
481
503
|
- Inside the panel: `↑`/`↓` scroll, `Space`/`Enter`/`Esc` dismiss, `c` copies the answer; `Esc` cancels while the answer is still pending.
|
|
482
|
-
- The sidebar panel (when the panel column is open) has two layers: the default **reading layer** — `←`/`→` switch panels, `↑`/`↓` move the **selection** between turns, `PgUp`/`PgDn` page, `n` starts a new topic, `s` sends the **selected** turn's answer to the main composer (press `s` again to take it back), `c` copies the selected turn's answer; `Enter`/`Tab` (or a click on the input) enters the **editing layer** (`Esc` leaves one layer at a time: editing first, draft kept), where `←`/`→` move the caret first and, once the caret sits at the start/end, the same key falls through and switches panels again, while `↑` goes straight back up to the titles.
|
|
504
|
+
- The sidebar panel (when the panel column is open) has two layers: the default **reading layer** — `←`/`→` switch panels, `↑`/`↓` move the **selection** between turns, `PgUp`/`PgDn` page, `n` starts a new topic, `s` sends the **selected** turn's answer to the main composer (press `s` again to take it back), `c` copies the selected turn's answer; `Enter`/`Tab` (or a click on the input) enters the **editing layer** (`Esc` leaves one layer at a time: editing first, draft kept), where `←`/`→` move the caret first and, once the caret sits at the start/end, the same key falls through and switches panels again, while `↑` goes straight back up to the titles. In the editing layer `Ctrl+V`/`Alt+V` pastes clipboard text at the caret (terminal-native paste works too, flattened to one line), and it always lands in the btw composer — with the column focused, paste **never** writes into the main draft below. A clipboard holding an image or files is refused with "not pastable as text".
|
|
483
505
|
- The sidebar's bottom hint line **follows the layer** (the panel advertises it, the host only stitches it): with the cursor in the **list** it says `↑/↓ select · s to chat · c copy` (or `s unsend` for the attached turn); with the cursor in the **input** it drops s/c (there `s` is just a letter) and says `↑ select` instead. An empty thread advertises nothing there. The input box keeps only an `Enter to ask` placeholder.
|
|
484
506
|
- The selection shows itself in exactly two ways: the title's **text** is inverted (not the whole row) and the terminal cursor parks on that row — so `↑`/`↓` visibly walks the native caret between titles. Both are hidden while the cursor sits in the main input or the side composer: they mean "the list owns the keyboard". **Clicking a title row** moves the selection there too.
|
|
485
507
|
- Scrolling only happens when it must: a target title already inside the viewport scrolls nothing at all; one outside it scrolls just far enough to **exactly reveal** that row (flush to the top edge when walking up, flush to the bottom edge when walking down).
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
| `Ctrl+D` | 与 `Ctrl+C` 同阶梯:工作中=中断(未收敛时再按=强制退出);空闲时连续两次退出 |
|
|
30
30
|
| `Ctrl+O` | 切换 transcript/verbose 详情,展开思考与完整工具参数/输出;也是**超长单行折叠**(单行 > 1000 字符裁到 1000 + `… 已折叠 N 字符` 标记,见 user guide §5)的展开逃生门——鼠标点被折叠的那一行(或工具卡卡面)同样能展开/收起 |
|
|
31
31
|
| `Ctrl+P` | 切换启动时加载的 loaded-context 面板(面板在屏时有效) |
|
|
32
|
-
| `Ctrl+B` | 侧栏三态:未开 → 打开并聚焦右栏;已开且焦点在聊天 → 聚焦右栏;焦点在右栏 → 关闭并回聊天。仅 fullscreen 且内容区 ≥93 列可分栏,窄屏与 inline 下此键不生效(`/jobs` 等仍走整屏面板,见用户指南 §2.8
|
|
32
|
+
| `Ctrl+B` | 侧栏三态:未开 → 打开并聚焦右栏;已开且焦点在聊天 → 聚焦右栏;焦点在右栏 → 关闭并回聊天。仅 fullscreen 且内容区 ≥93 列可分栏,窄屏与 inline 下此键不生效(`/jobs` 等仍走整屏面板,见用户指南 §2.8);聚焦右栏后 `↑`/`↓`/`PgUp`/`PgDn` 交给活动面板(jobs 选择与滚动,todo 用 `↑`/`↓` 滚动长目标) |
|
|
33
33
|
| `Alt+Z` | 缩放当前侧栏面板(聊天列保留最小宽度),再按恢复 |
|
|
34
34
|
| `Ctrl+T` | 打开轨迹场景(等同 `/trace`);场景内 `q`/`Esc` 返回对话 |
|
|
35
35
|
| `Ctrl+R` | 打开输入历史搜索;重复按或 `Down` 移到下一项 |
|
|
@@ -117,9 +117,13 @@
|
|
|
117
117
|
「检测中…」;**登录状态不进铭牌**——要切内核时在选择器里看(未登录行可选,副标题标注「未登录」)。
|
|
118
118
|
整块可点,打开同一个内核选择器(键盘路径 = 焦点环 + `Enter`)。
|
|
119
119
|
各行右端贴齐同一条右边界,左下目录铭牌与第一行顶对齐,窄屏按既有 truncate-middle 截断。
|
|
120
|
-
- **引导向导**:`←`/`→`
|
|
120
|
+
- **引导向导**:`←`/`→` 换步骤(例外:第三步的强度区、已钻进去的模型列表,以及第一步的
|
|
121
|
+
接入子层——横向键归子控件/子层,不换步骤)、
|
|
121
122
|
`Tab` 在「语言 / 主题」与「模型 / 强度 / 工作区」两组面板间切、`↑`/`↓` 移动选择;
|
|
122
|
-
`Enter` 执行这一步(第一步 =
|
|
123
|
+
`Enter` 执行这一步(第一步 = 落在动作行上:登录订阅账号 / 添加模型提供方(API key)/ 重新检查 / 跳过这一步——
|
|
124
|
+
登录与加 key 都用共享问答面板,**面板挂起时向导让出整屏、回答后原步骤原样回来**(进度记在
|
|
125
|
+
`src/onboardingDraft.ts`);登录后若有多个新模型,进入内联选默认层(单选):`↑`/`↓` 移动、
|
|
126
|
+
`Enter` 设为默认,末尾「保持当前模型」不动默认,`Esc` 与它同义、只退这一层。第三步 = 钻进 provider / 换模型 / 打开工作区选择器——**强度不走 Enter**,只用 `←`/`→` 调且移动即生效);
|
|
123
127
|
主题面板移动光标即预览,**语言面板要 `Enter` 才生效**;最后一步的 `Enter` 在**键位卡**上「完成」并记账,
|
|
124
128
|
在命令卡上则是「试一下」;`Esc` 跳过(**不记账**,下次启动再问)。
|
|
125
129
|
- **鼠标**(落地页这一屏恒启用鼠标跟踪):落地页的快捷入口(悬停 = 文字变主题蓝加粗,移开复原)、
|
|
@@ -219,6 +223,9 @@ Bracketed paste(右键或终端原生粘贴)保留普通文本与换行。
|
|
|
219
223
|
- 输入即过滤,`Tab`/`Enter` 选择,目录可继续深入。
|
|
220
224
|
- 普通片段走**模糊匹配**(`@ment` 命中 `src/utils/mentions.ts`;前缀/边界命中优先,短路径优先)。
|
|
221
225
|
- 路径形态(`@src/`、`@./`、`@../`、`@~/`、`@D:\` 或含分隔符)只读**该目录**,不全仓扫描。
|
|
226
|
+
- `~/` 与 `~\` 展开到 home,且**逐级深入到任意层**(`@~/a/b/c` 与 `@<home>/a/b/c` 指向同一个目录);两种写法同义,非 Windows 终端也把 `~\` 展开后再补全。
|
|
227
|
+
- `~user/` **不展开**(按字面路径处理);当前目录里确实有名为 `~` 的目录时,`@~/…` 仍按 home 展开(与 shell 一致),要引用字面目录用 `@./~/…`。
|
|
228
|
+
- 补全与发送时的附加走同一套展开:菜单里能列出的 `~/` 路径,附加解析用的是同一个 home 路径。
|
|
222
229
|
- `Esc` 只关当前 `@` token 的菜单。
|
|
223
230
|
- 异步候选刷新时按候选身份保持当前选中项。
|
|
224
231
|
|
|
@@ -319,8 +326,14 @@ Bracketed paste(右键或终端原生粘贴)保留普通文本与换行。
|
|
|
319
326
|
消息继续暂存,不会和草稿合并发出。
|
|
320
327
|
- `Ctrl+Enter`(有草稿时)中断当前回合,连同暂存消息一起立即发送。
|
|
321
328
|
- 回合正常结束时,排队消息照常进入下一回合;`Ctrl+C` 中断时保留队列。
|
|
322
|
-
-
|
|
329
|
+
- `Esc` 中断时,只有后端确认已撤回的消息才会暂存。旧版 Claude CLI 不支持撤回,或撤回请求失败时,这些
|
|
323
330
|
消息仍由后端在下一回合执行,dsh-TUI 不再暂存它们并给出提示,不会重复发送。
|
|
331
|
+
- 会话意外结束、或后端自行丢弃且确定没有执行的消息显示为「未送达」暂存,不会自动重发,并且会留到
|
|
332
|
+
下一个会话;交付不确定的丢弃(断线前已发出、Codex 的 `turn/start` 超时)仍记为「已丢弃」,不暂存,
|
|
333
|
+
以免重复执行。在 DSH 上,会话结束后再提交的消息也同样暂存。会话结束时 `⏎` 不发送,`/new` 开新
|
|
334
|
+
会话后再按 `⏎`,或用 `/restart` 恢复本会话。消息附带的图片随暂存消息留到下一个会话,也随
|
|
335
|
+
`/restart` 带到重启后的进程;
|
|
336
|
+
但会话结束时按 `↑` 取回编辑的消息会变回普通草稿,草稿里的图片在 `/new` 时不保留,要带图片就先 `/new` 再编辑。
|
|
324
337
|
|
|
325
338
|
## 会话工作流
|
|
326
339
|
|
|
@@ -466,7 +479,7 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
|
|
|
466
479
|
- **不进会话历史**:问答不写入 session log,也不会出现在主上下文与 token 计数里(关闭面板即消失)。
|
|
467
480
|
- **不打断主回合**:模型正在流式输出时也可以触发,主任务继续运行。
|
|
468
481
|
- 面板内 `↑`/`↓` 滚动,`Space`/`Enter`/`Esc` 关闭,`c` 复制答案;等待答案时 `Esc` 取消。
|
|
469
|
-
- 侧栏面板形态(面板列展开时)分两层:默认**阅读层**——`←`/`→` 切面板、`↑`/`↓` 在轮之间移动**选中**、`PgUp`/`PgDn` 翻页、`n` 新话题、`s` 把**选中轮**的答案送进主输入框(再按一次 `s` = 撤回)、`c` 复制选中轮的答案;`Enter`/`Tab`(或点击输入框)进**编辑层**(`Esc` 逐层退出:先退编辑、草稿保留),编辑层里 `←`/`→` 先移光标,光标贴到行首/行尾后再按同一个键就交回宿主切面板,`↑`
|
|
482
|
+
- 侧栏面板形态(面板列展开时)分两层:默认**阅读层**——`←`/`→` 切面板、`↑`/`↓` 在轮之间移动**选中**、`PgUp`/`PgDn` 翻页、`n` 新话题、`s` 把**选中轮**的答案送进主输入框(再按一次 `s` = 撤回)、`c` 复制选中轮的答案;`Enter`/`Tab`(或点击输入框)进**编辑层**(`Esc` 逐层退出:先退编辑、草稿保留),编辑层里 `←`/`→` 先移光标,光标贴到行首/行尾后再按同一个键就交回宿主切面板,`↑` 则直接回到标题(列表)。编辑层里 `Ctrl+V`/`Alt+V` 把剪贴板文本粘到光标处(终端原生粘贴同样可用,多行压成一行),落点始终是 btw 输入框——光标在右栏时粘贴**不会**写进下面的主草稿;剪贴板是图片/文件时只提示「不能作为文字粘贴」。
|
|
470
483
|
- 侧栏那行底栏提示**按层换**(面板自己广告、宿主只拼):光标在**列表**里说 `↑/↓ 选择 · s 送聊天 · c 复制`(已附加的那一轮说 `s 撤回`),光标在**输入框**里则不说 s/c(那里 `s` 只是打字),改说 `↑ 选择`;空线程没有可选的轮,这一段不画。输入框里只留一句 `Enter 提问` 占位。
|
|
471
484
|
- 选中的标记只有两点:标题**文字**反色(不铺满整行),以及终端光标停在那一行(所以按 `↑`/`↓` 时原生光标的拖尾是在标题之间上下走)。光标在主输入框或侧栏输入框里时两者都不显示——它表示的是「列表正拿着键盘」。**点标题行**也能把选中挪到那一轮。
|
|
472
485
|
- 滚动只在必要时发生:目标标题已经在视口里就一行都不滚;走出视口才滚,而且只滚到**恰好露出**这一行(往上走贴视口顶、往下走贴视口底)。
|
|
@@ -151,11 +151,28 @@ Also an experimental public surface:
|
|
|
151
151
|
installed package sources: local and Git packages can claim the same name and version,
|
|
152
152
|
so an exact feed match cannot waive confirmation when enabling. These actions have **no
|
|
153
153
|
cancellation**: the service offers none, so `esc` only closes the pane while the write
|
|
154
|
-
finishes and reports itself into the transcript (same session).
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
154
|
+
finishes and reports itself into the transcript (same session).
|
|
155
|
+
- **Grants follow the lifecycle**: the `/plugin install` confirmation lists the
|
|
156
|
+
package's declared permissions and `Enter` writes the grant before installing
|
|
157
|
+
(rolling it back on a failed install); a registry package's declaration only
|
|
158
|
+
becomes readable after it lands, so a `grant` step follows a successful install.
|
|
159
|
+
`enable` grants the declaration before writing the profile, `disable` revokes the
|
|
160
|
+
permissions that component declared after switching it off, and `remove` deletes
|
|
161
|
+
the component's `grants`/`denies` entries after the removal — grants are keyed by
|
|
162
|
+
component id, so leaving them behind lets a later package reusing that id inherit
|
|
163
|
+
them silently; a reinstall therefore asks again. A failed grant write never blocks
|
|
164
|
+
an install or enable, it is reported instead. The grant matrix stays hand-editable
|
|
165
|
+
(`~/.dsh-tui/extension-grants.json`; the writer and reader share one strict parser,
|
|
166
|
+
and a corrupt file is refused rather than repaired). A write takes a sibling
|
|
167
|
+
`extension-grants.json.lock` (the same lock the profile's atomic writes use), so
|
|
168
|
+
a second TUI instance cannot lose a revoke/forget between the read and the rename.
|
|
169
|
+
On a terminal too short for a
|
|
170
|
+
permission row, the list folds to a count or the key hint carries the count; the
|
|
171
|
+
package identity and keys stay visible. **Known gaps**: a removal
|
|
172
|
+
deletes no user data — `~/.dsh-tui/backends/<id>/`, storage namespaces and the
|
|
173
|
+
effect ledger are **reported once by source** and left for the person to delete;
|
|
174
|
+
when a package's declaration cannot be read, the flow says it could not judge
|
|
175
|
+
rather than claiming the removal was clean.
|
|
159
176
|
- `grants` is now the narrower `HostGrantFacade`; see that PR for migration
|
|
160
177
|
details.
|
|
161
178
|
- On `TuiSceneProps.channel` (`ChannelUi`), `minimal` / `setMinimal()` were
|
|
@@ -181,8 +198,12 @@ Also an experimental public surface:
|
|
|
181
198
|
first frames use the auto-detected palette. The root-capability guard is
|
|
182
199
|
the same as under `dsh --profile`: a row activating after the first TUI row
|
|
183
200
|
cannot use `ctx.root` capabilities (`root.plugin`, `root.effect`,
|
|
184
|
-
`root.on`, …) in its apply.
|
|
185
|
-
|
|
201
|
+
`root.on`, …) in its apply. The one exception is the upstream-declared
|
|
202
|
+
root-owned `invocation` accessor, which the host materializes when it
|
|
203
|
+
installs the guard so a later official Remote service still constructs; a
|
|
204
|
+
plugin still cannot call `ctx.root` itself. A plugin that waits for
|
|
205
|
+
something in its apply holds the composition: start long work detached, not
|
|
206
|
+
awaited. On a scene's
|
|
186
207
|
`TuiSceneProps.channel`, `ready` is `false` (and `status` `'starting'`)
|
|
187
208
|
while no session stands behind the channel, e.g. after the startup session
|
|
188
209
|
failed to open (`startupFailure`).
|