@deepseek-harness-tui/dsh-tui 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -8
- 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/configuration.en.md +3 -2
- package/guide/dsh-tui-guide/configuration.md +3 -2
- package/guide/dsh-tui-guide/getting-started.en.md +6 -2
- package/guide/dsh-tui-guide/getting-started.md +4 -1
- package/guide/dsh-tui-guide/interaction.en.md +28 -7
- package/guide/dsh-tui-guide/interaction.md +17 -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 +29 -15
- package/guide/dsh-tui-guide/user-guide.md +20 -10
- 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 +5 -0
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +3 -0
- 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 +7 -1
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/commands.js +1 -1
- 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 +3 -2
- 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.js +2 -2
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +10 -0
- package/lib/types/components/SubagentDetailScene.d.ts.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 +11 -5
- 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/sidePanel/btw/BtwComposer.d.ts +7 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +16 -0
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +8 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +8 -1
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +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/dsh-adapter/backend/session.d.ts +7 -1
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/session.js +62 -6
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +9 -5
- 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/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 +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +9 -5
- package/lib/types/dsh-adapter/channel/core/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 +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +5 -0
- 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 +30 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +8 -4
- package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mentions.js +21 -7
- package/lib/types/dsh-adapter/channel/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 +3 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +3 -1
- package/lib/types/dsh-adapter/contract.d.ts +4 -3
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +6 -3
- 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/grant-file.d.ts +70 -0
- package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
- package/lib/types/dsh-adapter/grant-file.js +178 -0
- package/lib/types/dsh-adapter/host-access.d.ts +4 -0
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +54 -4
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +2 -2
- package/lib/types/dsh-adapter/host-dsh.js +3 -3
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +8 -5
- 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 +64 -18
- 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 +6 -2
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +23 -5
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +11 -5
- package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
- package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
- package/lib/types/dsh-adapter/row-attachment.js +29 -0
- package/lib/types/dsh-adapter/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 +36 -0
- package/lib/types/heldInputs.d.ts.map +1 -0
- package/lib/types/heldInputs.js +173 -0
- package/lib/types/i18n.d.ts +352 -25
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +171 -18
- 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 +90 -30
- 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/settings/definitions.js +2 -2
- 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/package.json +111 -108
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ Resuming a DSH session preserves its recorded reasoning effort (or its live sele
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
- **Pixel whale pet** — three startup intros, click to wake; freezes after the first task.
|
|
45
|
-
- **Launchpad and first-run guide** — every ordinary launch lands on a landing page with a **real input box** (big text + whale + quick actions, dropping whole blocks on short/narrow terminals; whale-girl images use a compact native-canvas footprint instead of leaving a large gap before the title; on by default — /settings `launchpad` off boots straight into chat); command completion matches chat: `Tab` fills the input, `Enter` runs the command and clears it. The first run walks a four-step wizard (
|
|
45
|
+
- **Launchpad and first-run guide** — every ordinary launch lands on a landing page with a **real input box** (big text + whale + quick actions, dropping whole blocks on short/narrow terminals; whale-girl images use a compact native-canvas footprint instead of leaving a large gap before the title; on by default — /settings `launchpad` off boots straight into chat); command completion matches chat: `Tab` fills the input, `Enter` runs the command and clears it. The first run walks a four-step wizard (accounts & models / language+theme / model+workspace / shortcuts), re-runnable with `/setup`; its first step signs in to a subscription and catches the models it brings in (none → no question, one → that one, several → you choose), or adds an API key through the `/provider` wizard, which asks which of the enabled models to switch to or keeps the current one.
|
|
46
46
|
- **Terminal-native UI** — streaming Markdown, tool cards, `/` and `@` completion, `#L12-14` ranges, history search, zh/en UI.
|
|
47
47
|
- **Task completion notifications** — DSH, Claude and Codex notify after successful live work settles, with no queued follow-up or active goal. The title is “dsh-TUI · Task complete”; the body shows the latest settled reply as a single-line plain-text preview (Markdown formatting removed, up to 200 characters). OSC 777/9 apply an additional 2048-byte sequence budget, including title and protocol bytes, preserving whole graphemes. No reply shows only the title; BEL only rings. `/settings` → Conversation: `taskNotifications` = `unfocused` (default), `always`, or `off`; `notificationMethod` = `auto` (default), `osc9`, `bel`, or `windows`. Auto uses separate title/body fields on Ghostty/WezTerm (OSC 777) and Kitty (OSC 99); iTerm2/Warp and explicit `osc9` use a title prefix; other terminals ring the bell; delivery follows your terminal's notification/bell settings. On local Windows, `auto` resolves to `windows`, the system's native notifications: a task-completion toast. The first toast registers that user's AppUserModelID under HKCU, the toast appears about 3 seconds after the task ends (the PowerShell cold start that buys the no-extra-install route), and for DSH sessions an enabled, active external DSH notification plugin in the running profile makes dsh-TUI yield to it (no toast, no bell); an installed but disabled plugin does not suppress notifications; if that AppUserModelID cannot be written, the notification falls back to the bell instead of going silent. SSH sessions keep the attached terminal's notification protocol in `auto` mode; explicit `windows` still selects the host's native transport. tmux requires `set -g allow-passthrough on` for OSC notifications and `set -g focus-events on` for focus reporting. Terminals without focus reporting need `always`. Replay, cancellation and failures do not notify. Works in inline and fullscreen modes.
|
|
48
48
|
- **Native cursor** — focused text inputs inherit your terminal's cursor shape, color, blinking, and enabled animation or trail effects in both inline and fullscreen modes. The `/model` picker shows the same cursor during movement between provider tabs, model rows, and effort levels, then hides it after **0.5 seconds at rest**; clipped regions fall back to the model row. The session manager also moves this cursor between the workspace rail, session rows, and search box; typing claims the search caret, and navigation returns it to the focused row. Configure animation and trail effects in your terminal.
|
|
@@ -50,7 +50,7 @@ Resuming a DSH session preserves its recorded reasoning effort (or its live sele
|
|
|
50
50
|
- **Mermaid diagrams** — ````mermaid ```` fences drawn as Unicode diagrams.
|
|
51
51
|
- **LaTeX math** — `$…$` and `$$…$$` formulas as Unicode text, fractions and limits stacked in display blocks; `mathRendering: image` typesets block and one-row inline formulas as terminal images on graphics terminals.
|
|
52
52
|
- **Timeline rail** — every turn clickable; timeline / scrollbar / hidden gutter.
|
|
53
|
-
- **Side panel** — `Ctrl+B` splits the chat with a panel column once the terminal is wide enough; drag the divider to resize it. All eight built-in panels are enabled by default, and so are plugin panels registered later (`sidePanel.panels: '*'`; untick a row in `/settings` to switch to an explicit list). The header shows each inactive panel's symbol; hover to see its name. Narrow terminals and inline mode keep full-screen panels.
|
|
53
|
+
- **Side panel** — `Ctrl+B` splits the chat with a panel column once the terminal is wide enough; drag the divider to resize it. All eight built-in panels are enabled by default, and so are plugin panels registered later (`sidePanel.panels: '*'`; untick a row in `/settings` to switch to an explicit list). The header shows each inactive panel's symbol; hover to see its name. Narrow terminals and inline mode keep full-screen panels. In the `todo` panel a long goal wraps to the panel width with its phase on a separate row; when the content exceeds the viewport, focus the panel and scroll with `↑`/`↓` or the wheel (every todo is reachable too) (the compact goal row above the chat input stays a single truncated line with a hover tooltip).
|
|
54
54
|
- **Live state** — activity animation, context bar, TPS, cache hit rate, effort, tokens, session cost estimate (main + subagents), Git and session metadata. Title, trajectory-strip and session-state animations update independently of the transcript and pause when idle or unfocused.
|
|
55
55
|
Context-bar fill follows backend occupancy; colors estimate content composition. Compaction clears obsolete estimates, and missing composition displays a single used block with a measured used count in both hover details.
|
|
56
56
|
- **One session manager** — `/resume` `/home` `/agentview` `/bg` `⌸`.
|
|
@@ -129,7 +129,7 @@ The `deepseek-official` API-key route needs `DEEPSEEK_API_KEY`. On DSH
|
|
|
129
129
|
and select the separate account route through `/model`. Other supported
|
|
130
130
|
accounts can sign in through `/provider` or `/auth` after startup.
|
|
131
131
|
|
|
132
|
-
The primary compatibility target is DSH `0.2.1-rc.
|
|
132
|
+
The primary compatibility target is DSH `0.2.1-rc.5`. This adapter supports its
|
|
133
133
|
Shell API, V4 session messages, declarative presets, and profile-backed settings;
|
|
134
134
|
older supported hosts retain their compatibility paths. See [configuration](docs/configuration.en.md).
|
|
135
135
|
|
|
@@ -185,7 +185,7 @@ source builds, and troubleshooting, including migration from the former
|
|
|
185
185
|
|
|
186
186
|
Automation: `dst -p "task"`, `dst run --json`, `dst session list --json`.
|
|
187
187
|
The independent engine does not load the TUI or inherit its profile/preferences;
|
|
188
|
-
it uses official DSH headless/services (validated on 0.2.0-rc.2, 0.2.1-rc.2 and 0.2.1-rc.
|
|
188
|
+
it uses official DSH headless/services (validated on 0.2.0-rc.2, 0.2.1-rc.2, 0.2.1-rc.3, 0.2.1-rc.4 and 0.2.1-rc.5).
|
|
189
189
|
`dst cli --help` lists its commands; `dst dsh <argv...>` forwards native DSH.
|
|
190
190
|
See [Automation CLI](docs/cli.en.md) for protocol, limits, resume restrictions,
|
|
191
191
|
and Node/Python/PowerShell integration examples.
|
|
@@ -366,7 +366,7 @@ team record stays in the session and comes back when the bundle is enabled
|
|
|
366
366
|
again.
|
|
367
367
|
|
|
368
368
|
If the running DSH does not ship the bundle (`/plugin list` stays silent),
|
|
369
|
-
switch DSH to one of the supported lines first (`0.2.1-rc.3`, `0.2.1-rc.2`, `0.2.1-alpha.5`,
|
|
369
|
+
switch DSH to one of the supported lines first (`0.2.1-rc.5`, `0.2.1-rc.4`, `0.2.1-rc.3`, `0.2.1-rc.2`, `0.2.1-alpha.5`,
|
|
370
370
|
`0.2.0-rc.1` or `0.2.0-rc.2`). To install it into the profile explicitly,
|
|
371
371
|
run `dsh plugin --profile dsh-tui add @deepseek-ai/dsh-experimental-agent-team-profile@<your-dsh-version>`:
|
|
372
372
|
the team packages ship in lockstep with DSH and pin their DSH peers exactly,
|
|
@@ -597,7 +597,7 @@ Each bundle may declare one backend, and its handler id must match the declarati
|
|
|
597
597
|
|
|
598
598
|
Seam grading and API notes: [Plugin development](docs/plugins.en.md). The organization maintains the listing only; it does not endorse community plugins.
|
|
599
599
|
|
|
600
|
-
Installing a plugin from inside the TUI: `/plugin install <package | path | git url>`. It goes through the host's profile plugin manager — a pre-install notice, a trust confirmation, cancellable progress, build-script approval and exact-version exemptions. Packages on the first-party feed this package ships (`tui-profile/feed/first-party.json`, pinned per release and decided offline) skip the trust confirmation, and only a spec that names that exact version qualifies: a bare name, a tag or a range is resolved again at install time, so it is confirmed with the person instead. What was confirmed is what gets installed — the run pins the exact `name@version` the inspection read — and a turn that is still running refuses the install (finish it, or `/new`, first). The same actions remain available from the CLI (`dsh plugin --profile dsh-tui …`).
|
|
600
|
+
Installing a plugin from inside the TUI: `/plugin install <package | path | git url>`. It goes through the host's profile plugin manager — a pre-install notice, a trust confirmation, cancellable progress, build-script approval and exact-version exemptions. Packages on the first-party feed this package ships (`tui-profile/feed/first-party.json`, pinned per release and decided offline) skip the trust confirmation, and only a spec that names that exact version qualifies: a bare name, a tag or a range is resolved again at install time, so it is confirmed with the person instead. What was confirmed is what gets installed — the run pins the exact `name@version` the inspection read — and a turn that is still running refuses the install (finish it, or `/new`, first). The same actions remain available from the CLI (`dsh plugin --profile dsh-tui …`). The confirmation lists the permissions the package declares; `Enter` installs **and grants** — the grant is written to `~/.dsh-tui/extension-grants.json` before the install starts, and a failed install rolls that write back. A registry package's declaration cannot be read before it lands, so a `grant` step follows a successful install: `Enter` grants, `Esc` skips (the install stays). Declared permissions this host does not know are skipped and named. On a terminal too short for a permission row, the list folds to a count or the key hint carries the count; the package identity, the notice and the keys stay visible.
|
|
601
601
|
|
|
602
602
|
A spec names one of three things:
|
|
603
603
|
|
|
@@ -615,9 +615,9 @@ Failed installs show up to six redacted log lines; lines larger than 16 KiB are
|
|
|
615
615
|
|
|
616
616
|
Managing what is installed: `/plugin remove <bundle>`, `/plugin enable <name | row id>` and `/plugin disable <name | row id>`. A bundle is a composition layer and a row is one patch entry, so the two are separate actions, and a bundle name is matched before any row identity. A module name shared by multiple rows requires a specific row ID. **Gate 2 refuses the three ways this app could switch itself off** — removing or disabling the bundle that provides it, the host layer `dsh-base`, or one of its own rows — and says which rule it broke, without calling the service at all; that holds whether or not hot reload is live, which is the path the host's own guard misses. `enable` is never refused by gate 2 (it is the repair action). Every enable and removal asks first; `disable` asks only about a host-layer row. The host does not attest installed package sources, so even an exact feed match requires confirmation before enabling.
|
|
617
617
|
|
|
618
|
-
These three actions have no cancellation — the service offers none — so `esc` only closes the pane while the write finishes and reports itself into the transcript. Enable and disable have no CLI verb either (the service writes them into the profile's own files), and
|
|
618
|
+
These three actions have no cancellation — the service offers none — so `esc` only closes the pane while the write finishes and reports itself into the transcript. Enable and disable have no CLI verb either (the service writes them into the profile's own files). **Grants follow the lifecycle**: `enable` enables and grants the declared permissions, `disable` disables and revokes the permissions that component declared, and `remove` **deletes the component's `grants`/`denies` entries** after the removal — grants are keyed by component id, so leaving them behind lets any later package reusing that id inherit them silently; a reinstall asks again. Backend data directories, storage namespaces and the effect ledger stay, and the residue report names each source by its path. A failed grant write never blocks an install or enable — it is reported instead. Grants are behavioural constraints, not a security boundary.
|
|
619
619
|
|
|
620
|
-
`/plugin list` also advertises the experimental features DSH ships, leaves off by default, and this app knows how to drive (currently Agent Teams, Auto review and
|
|
620
|
+
`/plugin list` also advertises the experimental features DSH ships, leaves off by default, and this app knows how to drive (currently Agent Teams, Auto review, Session search and Git worktrees), each with its switch and usage line. A DSH installation that does not ship one shows no such section.
|
|
621
621
|
|
|
622
622
|
## Documentation
|
|
623
623
|
|
|
@@ -660,6 +660,8 @@ No sandbox of its own: dsh-TUI uses the active DSH profile's filesystem, shell,
|
|
|
660
660
|
|
|
661
661
|
**Session search** (DSH, experimental): `/plugin list` advertises it; after `/plugin enable @deepseek-ai/dsh-experimental-session-search`, an agent gains five read-only tools (`session_search`, `session_event_search`, `session_trace`, `session_event_trace`, `session_event_read`) over earlier sessions in the same workspace — cross-session access requires an identical `cwd`. The index is in memory and is built on the first search; nothing is written to disk. This app keeps the kernel Minimal preset at its single persistent-shell tool, so Minimal never shows these five tools or their usage guidance.
|
|
662
662
|
|
|
663
|
+
**Git worktrees** (DSH, experimental): `/plugin list` advertises it; after `/plugin enable @deepseek-ai/dsh-experimental-tool-worktree`, an agent gains `create_worktree`, which creates a new Git branch and a checkout under `.agents/worktrees/<name>` of the current repository (from `HEAD` or a local revision; uncommitted files stay in the source checkout) and moves the session into it — the status line, Git branch and `@` completion follow, while the session stays registered under its project. Its card reads `Worktree("<branch>")` with the checkout path and base revision. Nothing is cleaned up: remove the checkout with `git worktree remove <path>` and the branch separately with `git branch -D <branch>` (the agent leaves with `working_directory`; once the checkout is gone, the next request returns the session to the project). A leftover branch makes a later `create_worktree` with the same name fail. Calling it from inside a worktree nests the new checkout under that worktree. Moving does not change file permissions or already-open terminals. This app hides `create_worktree` from the kernel Minimal preset and the bundled liangshen preset: their persistent shell (liangshen's on macOS and Linux) keeps the directory it started in, so after a move it would still edit the source checkout.
|
|
664
|
+
|
|
663
665
|
**Upstream auto-retry** (DSH): whenever a session binds (boot, `/model` switch, resume), the TUI seeds a retry policy — 5 attempts, transport-drop-aware failure codes including `STREAM_CLOSED` (a dropped upstream stream) — on **the provider route that session actually uses**, through the official `llm-pi-ai` settings section (the policy the kernel's `llm-retry` plugin executes). Only routes without an explicit `retryPolicy` are seeded — dormant channels are never written — and `upstreamRetry: false` in cordis.yml opts out.
|
|
664
666
|
|
|
665
667
|
Details: [Permissions and security boundary](docs/architecture.en.md#permissions-and-security-boundary).
|
|
@@ -8,12 +8,12 @@ import { startProcess, records, parseRecord } from '../../process.mjs'
|
|
|
8
8
|
import { locateDsh } from './locate.mjs'
|
|
9
9
|
|
|
10
10
|
const manager = fileURLToPath(new URL('./management-plugin.mjs', import.meta.url))
|
|
11
|
-
const validated = new Set(['0.2.0-rc.2', '0.2.1-rc.2', '0.2.1-rc.3'])
|
|
11
|
+
const validated = new Set(['0.2.0-rc.2', '0.2.1-rc.2', '0.2.1-rc.3', '0.2.1-rc.4', '0.2.1-rc.5'])
|
|
12
12
|
const allowedEvents = new Set(['session', 'status', 'text', 'thinking', 'tool_call', 'tool_result', 'error', 'final'])
|
|
13
13
|
|
|
14
14
|
function requireContract(runtime) {
|
|
15
15
|
// A new version is not proof of wire compatibility. Passthrough is ungated.
|
|
16
|
-
if (!validated.has(runtime.version)) throw new CliError('ADAPTER_UNAVAILABLE', `This adapter validates DSH ${[...validated].join('
|
|
16
|
+
if (!validated.has(runtime.version)) throw new CliError('ADAPTER_UNAVAILABLE', `This adapter validates DSH ${[...validated].join(', ')}; use dst dsh for another runtime`, 3)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/** Create the default adapter; host/process facilities are injectable in tests. */
|
|
@@ -16,7 +16,7 @@ dst run --continue "continue this directory's latest compatible root session"
|
|
|
16
16
|
dst cli --help
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Install the official DSH CLI. The automation adapter currently validates **0.2.0-rc.2, 0.2.1-rc.2 and 0.2.1-rc.
|
|
19
|
+
Install the official DSH CLI. The automation adapter currently validates **0.2.0-rc.2, 0.2.1-rc.2, 0.2.1-rc.3, 0.2.1-rc.4 and 0.2.1-rc.5**; other versions are rejected before a task starts. `dst dsh <args...>` bypasses protocol conversion and this version restriction. Resolution follows the first DSH installation on PATH. Use `--dsh-bin /path/to/dsh/lib/bin.js` or `DSH_TUI_CLI_DSH_BIN` for an explicit built JS entry belonging to the official package. The adapter never executes a `.cmd`, PowerShell command, or interpolated shell string.
|
|
20
20
|
|
|
21
21
|
### Input, output and execution
|
|
22
22
|
|
|
@@ -16,7 +16,7 @@ dst run --continue "继续当前目录最近的兼容主会话"
|
|
|
16
16
|
dst cli --help
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
需要安装官方 DSH,当前自动化 adapter 验证版本是 **0.2.0-rc.2、0.2.1-rc.2 与 0.2.1-rc.
|
|
19
|
+
需要安装官方 DSH,当前自动化 adapter 验证版本是 **0.2.0-rc.2、0.2.1-rc.2、0.2.1-rc.3、0.2.1-rc.4 与 0.2.1-rc.5**;其他版本在任务开始前拒绝。`dst dsh <参数...>` 不经过本地协议转换,不限制官方版本。解析 PATH 上第一个 DSH 安装,也可用 `--dsh-bin /path/to/dsh/lib/bin.js` 或 `DSH_TUI_CLI_DSH_BIN` 指定官方包的已构建 JS 入口;不执行 `.cmd`、PowerShell 或任意 shell 字符串。
|
|
20
20
|
|
|
21
21
|
### 输入、输出和执行
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ only for a genuinely new service.
|
|
|
26
26
|
> When a row is overridden, its `config` block is replaced as a whole. It is
|
|
27
27
|
> not deep-merged, so repeat every key that must remain active.
|
|
28
28
|
|
|
29
|
-
## Web search and fetch (DSH 0.2.1-rc.
|
|
29
|
+
## Web search and fetch (DSH 0.2.1-rc.5)
|
|
30
30
|
|
|
31
31
|
The standard DSH profile loads the new DeepSeek Search / Fetch API providers,
|
|
32
32
|
while Messages search and local HTTP fetch remain the defaults. In `/settings`,
|
|
@@ -411,6 +411,7 @@ for the complete field reference.
|
|
|
411
411
|
| `DSH_TUI_RESUME_SESSION` | Resume a session at startup, normally set by a launcher |
|
|
412
412
|
| `DSH_TUI_RESUME_BACKEND` | The backend `DSH_TUI_RESUME_SESSION` was read from; set only when the launcher **derived** the target (a bare `--resume` reading that backend's last session, or the safe-mode retry following the last-run record). When the boot lands on another backend — an uninstalled id falling back to `dsh`, or the remembered kernel when `DSH_TUI_BACKEND` is absent — that target **refuses with a non-zero exit**: never carried across, never a silent cold start, never a new session (the safe-mode retry is the one exception, degrading to a warning plus a cold start). An id the user passed explicitly carries no mark and is handed over as it is |
|
|
413
413
|
| `DSH_TUI_RESUME_RETRY` | One-shot marker: this boot is safe mode's "retry normal startup". A retry derives its target from the last-run record, whose backend may no longer be registered, so a launch carrying this marker degrades a revoked resume target to a warning plus a cold start instead of failing. The boot deletes it from `process.env` as soon as it reads it |
|
|
414
|
+
| `DSH_TUI_HELD_INPUTS` | The queued-message file a `/restart` hands its replacement (`~/.dsh-tui/held-inputs-<pid>-<random>.json`); the replacement removes the variable from `process.env` at boot and deletes the file once the texts are back as held messages (a replacement that exits before that leaves it). It appears in the printed resume command when a restart stalls or fails to start (on Windows in the PowerShell form `$env:DSH_TUI_HELD_INPUTS='…'; …`); a file nobody resumed within 7 days is removed at a later launch |
|
|
414
415
|
| `DSH_TUI_BACKEND` | Session backend (built-in `dsh` / `claude` / `codex`, or an installed plugin backend), normally set by `dsh-tui --backend`; an uninstalled or misspelled id starts on `dsh` with a warning (with a resume request in play it refuses instead, see above) |
|
|
415
416
|
| `DSH_TUI_HOST_ENTRY` | Set to `0` to start both kernels through `dsh --profile` (by default both start from the package's own entry). When the entry cannot use the installed dsh (the `dsh` on `PATH` is not `@deepseek-ai/dsh`, its launcher script cannot be followed, or a module or export it needs is missing), a DSH launch falls back to `dsh --profile` by itself and says why in the terminal and on screen |
|
|
416
417
|
| `DSH_TUI_CLAUDE_PERMISSION_MODE` | Start permission mode of the Claude backend (`default`/`acceptEdits`/`plan`/`dontAsk`/`bypassPermissions`); wins over the mode `/permission` remembered |
|
|
@@ -476,7 +477,7 @@ The `/provider` add branch signs in to ChatGPT/Codex (`openai-codex`), Claude
|
|
|
476
477
|
(`anthropic`), or Grok (`xai`) subscriptions. When the installed host's pi-ai
|
|
477
478
|
catalog ships the corresponding flows, it also offers OpenAI direct ChatGPT sign-in
|
|
478
479
|
(`openai`, using the OpenAI API rather than the legacy Codex backend) and Meta
|
|
479
|
-
Muse (`meta`). The primary validated DSH `0.2.1-rc.
|
|
480
|
+
Muse (`meta`). The primary validated DSH `0.2.1-rc.5` development fixture resolves pi-ai
|
|
480
481
|
`1.2.0`, which includes Meta Muse and OpenAI direct sign-in.
|
|
481
482
|
`/auth status`, `/auth login [provider]`, and `/auth logout <provider>` use
|
|
482
483
|
that credential store for these pi-ai routes. Browser authorization tries to open the page
|
|
@@ -25,7 +25,7 @@ Profile 启动按顺序叠加:
|
|
|
25
25
|
> 覆盖某一行时,`config` 是整块替换,不是逐字段深合并。需要继续生效的字段必须
|
|
26
26
|
> 在用户补丁中全部重写。
|
|
27
27
|
|
|
28
|
-
## 网页搜索与抓取(DSH 0.2.1-rc.
|
|
28
|
+
## 网页搜索与抓取(DSH 0.2.1-rc.5)
|
|
29
29
|
|
|
30
30
|
标准 DSH profile 会加载新的 DeepSeek Search / Fetch API 提供者,默认仍使用
|
|
31
31
|
Messages 搜索和本地 HTTP 抓取。在 `/settings` 的「网页搜索」分区,用左右键将
|
|
@@ -362,6 +362,7 @@ Profile 模式不再使用旧的 `DSH_TUI_COMPACT_RATIO`、`DSH_TUI_COMPACT_RETA
|
|
|
362
362
|
| `DSH_TUI_RESUME_SESSION` | 启动时恢复指定会话,通常由启动器设置 |
|
|
363
363
|
| `DSH_TUI_RESUME_BACKEND` | `DSH_TUI_RESUME_SESSION` 的来源后端,只在启动器**派生**恢复目标时(裸 `--resume` 读该后端的上次会话、安全模式重试按最后运行记录)设置;boot 若落在别的后端(未装的 id 回落 `dsh`、没给 `DSH_TUI_BACKEND` 时跟随记住的内核),该目标一律**明确报错并非零退出**——不跨后端恢复、不静默冷启动、不新建会话(安全模式重试是唯一例外,降级为告警 + 冷启动)。用户显式给出的 id 不带此标记、原样透传 |
|
|
364
364
|
| `DSH_TUI_RESUME_RETRY` | 一次性标记:本次启动是安全模式的「重试正常启动」。重试的目标派生自最后运行记录,记录里的内核可能已经不在注册表里,所以带此标记的那次启动在恢复目标被撤销时降级为告警 + 冷启动,而不是报错退出。boot 读到即从 `process.env` 删除 |
|
|
365
|
+
| `DSH_TUI_HELD_INPUTS` | `/restart` 交给替身进程的排队消息文件(`~/.dsh-tui/held-inputs-<pid>-<random>.json`),替身启动时把其中的文字作为暂存消息放回、启动时从 `process.env` 移除,放回为暂存消息后删除文件(就绪前退出则文件保留);重启卡住或启动失败时会出现在打印的恢复命令里(Windows 上是 PowerShell 形式 `$env:DSH_TUI_HELD_INPUTS='…'; …`),超过 7 天没人恢复的文件会在之后某次启动时清理 |
|
|
365
366
|
| `DSH_TUI_BACKEND` | 会话后端(内置 `dsh` / `claude` / `codex`,或已装的插件后端),通常由 `dsh-tui --backend` 设置;未安装或写错的 id 按 `dsh` 启动并告警(若同时带了 `--resume` 请求则改为报错退出,见上) |
|
|
366
367
|
| `DSH_TUI_HOST_ENTRY` | 设为 `0` 时两个内核都经 `dsh --profile` 启动(默认两个内核都从本包入口启动)。入口用不了已安装的 dsh(`PATH` 上的 `dsh` 不是 `@deepseek-ai/dsh`、启动脚本跟不进去、所需模块或导出缺失)时,DSH 启动自动回退到 `dsh --profile`,并在终端与界面里说明原因 |
|
|
367
368
|
| `DSH_TUI_CLAUDE_PERMISSION_MODE` | Claude 后端的起始权限模式(`default`/`acceptEdits`/`plan`/`dontAsk`/`bypassPermissions`),优先于 `/permission` 记住的选择 |
|
|
@@ -415,7 +416,7 @@ Profile 模式不再使用旧的 `DSH_TUI_COMPACT_RATIO`、`DSH_TUI_COMPACT_RETA
|
|
|
415
416
|
`dsh-auth` 插件包**。`/provider` 的添加分支提供 ChatGPT/Codex(`openai-codex`)、
|
|
416
417
|
Claude(`anthropic`)、Grok(`xai`)订阅账号登录。宿主 pi-ai catalog 提供相应流程
|
|
417
418
|
时还可使用 OpenAI 直连 ChatGPT 登录(`openai`,使用 OpenAI API 而非旧版 Codex
|
|
418
|
-
后端)和 Meta Muse(`meta`)。当前主验证线 DSH `0.2.1-rc.
|
|
419
|
+
后端)和 Meta Muse(`meta`)。当前主验证线 DSH `0.2.1-rc.5` 的开发依赖解析到 pi-ai
|
|
419
420
|
`1.2.0`,包含 Meta Muse 与 OpenAI 直连登录。`/auth status`、`/auth login [provider]`、
|
|
420
421
|
`/auth logout <provider>` 对这些 pi-ai 路由操作同一套凭据。浏览器授权会尝试自动打开页面,并在同一
|
|
421
422
|
问卷中提供授权链接与手动粘贴回调 URL/代码的输入;设备码流程在轮询期间显示可复制的
|
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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 |
|
|
@@ -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,22 @@ 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 the DSH kernel dropped without running them (the session ended
|
|
345
|
+
unexpectedly, or the kernel discarded them) are held as "not delivered";
|
|
346
|
+
Claude and Codex still report such losses as discarded, so those are not
|
|
347
|
+
held. Held messages are never re-sent by themselves and stay for the next
|
|
348
|
+
session; on DSH, a message submitted after the session ended is held the
|
|
349
|
+
same way. While the session
|
|
350
|
+
is ended `⏎` sends nothing: `/new` starts a new session and `⏎` sends them
|
|
351
|
+
there, or `/restart` resumes this one (only text survives a restart).
|
|
352
|
+
Images attached to a held message stay with it into the next session. A held
|
|
353
|
+
message taken back with `↑` while the session is ended is an ordinary draft
|
|
354
|
+
again, and a draft's images do not survive `/new`: to keep the images,
|
|
355
|
+
run `/new` first and edit there.
|
|
335
356
|
|
|
336
357
|
## Session workflows
|
|
337
358
|
|
|
@@ -479,7 +500,7 @@ Notes:
|
|
|
479
500
|
and never reaches the main context or token counts (closing the panel discards it).
|
|
480
501
|
- **Never interrupts the running turn**: it can be triggered while the model is streaming; the main task keeps going.
|
|
481
502
|
- 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.
|
|
503
|
+
- 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
504
|
- 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
505
|
- 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
506
|
- 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,13 @@ Bracketed paste(右键或终端原生粘贴)保留普通文本与换行。
|
|
|
319
326
|
消息继续暂存,不会和草稿合并发出。
|
|
320
327
|
- `Ctrl+Enter`(有草稿时)中断当前回合,连同暂存消息一起立即发送。
|
|
321
328
|
- 回合正常结束时,排队消息照常进入下一回合;`Ctrl+C` 中断时保留队列。
|
|
322
|
-
-
|
|
329
|
+
- `Esc` 中断时,只有后端确认已撤回的消息才会暂存。旧版 Claude CLI 不支持撤回,或撤回请求失败时,这些
|
|
323
330
|
消息仍由后端在下一回合执行,dsh-TUI 不再暂存它们并给出提示,不会重复发送。
|
|
331
|
+
- 会话意外结束、或 DSH 内核自行丢弃的消息显示为「未送达」暂存(Claude 与 Codex 后端目前把这类丢失
|
|
332
|
+
记为「已丢弃」,不暂存),不会自动重发,并且会留到下一个会话;在 DSH 上,会话结束后再提交的消息
|
|
333
|
+
也同样暂存。会话结束时 `⏎` 不发送,`/new` 开新会话后
|
|
334
|
+
再按 `⏎`,或用 `/restart` 恢复本会话(跨重启只保留文字)。消息附带的图片随暂存消息留到下一个会话;
|
|
335
|
+
但会话结束时按 `↑` 取回编辑的消息会变回普通草稿,草稿里的图片在 `/new` 时不保留,要带图片就先 `/new` 再编辑。
|
|
324
336
|
|
|
325
337
|
## 会话工作流
|
|
326
338
|
|
|
@@ -466,7 +478,7 @@ Windows `dsh-tui.cmd --resume` 使用 `~/.dsh-tui/resume.txt` 中最后选择的
|
|
|
466
478
|
- **不进会话历史**:问答不写入 session log,也不会出现在主上下文与 token 计数里(关闭面板即消失)。
|
|
467
479
|
- **不打断主回合**:模型正在流式输出时也可以触发,主任务继续运行。
|
|
468
480
|
- 面板内 `↑`/`↓` 滚动,`Space`/`Enter`/`Esc` 关闭,`c` 复制答案;等待答案时 `Esc` 取消。
|
|
469
|
-
- 侧栏面板形态(面板列展开时)分两层:默认**阅读层**——`←`/`→` 切面板、`↑`/`↓` 在轮之间移动**选中**、`PgUp`/`PgDn` 翻页、`n` 新话题、`s` 把**选中轮**的答案送进主输入框(再按一次 `s` = 撤回)、`c` 复制选中轮的答案;`Enter`/`Tab`(或点击输入框)进**编辑层**(`Esc` 逐层退出:先退编辑、草稿保留),编辑层里 `←`/`→` 先移光标,光标贴到行首/行尾后再按同一个键就交回宿主切面板,`↑`
|
|
481
|
+
- 侧栏面板形态(面板列展开时)分两层:默认**阅读层**——`←`/`→` 切面板、`↑`/`↓` 在轮之间移动**选中**、`PgUp`/`PgDn` 翻页、`n` 新话题、`s` 把**选中轮**的答案送进主输入框(再按一次 `s` = 撤回)、`c` 复制选中轮的答案;`Enter`/`Tab`(或点击输入框)进**编辑层**(`Esc` 逐层退出:先退编辑、草稿保留),编辑层里 `←`/`→` 先移光标,光标贴到行首/行尾后再按同一个键就交回宿主切面板,`↑` 则直接回到标题(列表)。编辑层里 `Ctrl+V`/`Alt+V` 把剪贴板文本粘到光标处(终端原生粘贴同样可用,多行压成一行),落点始终是 btw 输入框——光标在右栏时粘贴**不会**写进下面的主草稿;剪贴板是图片/文件时只提示「不能作为文字粘贴」。
|
|
470
482
|
- 侧栏那行底栏提示**按层换**(面板自己广告、宿主只拼):光标在**列表**里说 `↑/↓ 选择 · s 送聊天 · c 复制`(已附加的那一轮说 `s 撤回`),光标在**输入框**里则不说 s/c(那里 `s` 只是打字),改说 `↑ 选择`;空线程没有可选的轮,这一段不画。输入框里只留一句 `Enter 提问` 占位。
|
|
471
483
|
- 选中的标记只有两点:标题**文字**反色(不铺满整行),以及终端光标停在那一行(所以按 `↑`/`↓` 时原生光标的拖尾是在标题之间上下走)。光标在主输入框或侧栏输入框里时两者都不显示——它表示的是「列表正拿着键盘」。**点标题行**也能把选中挪到那一轮。
|
|
472
484
|
- 滚动只在必要时发生:目标标题已经在视口里就一行都不滚;走出视口才滚,而且只滚到**恰好露出**这一行(往上走贴视口顶、往下走贴视口底)。
|
|
@@ -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`).
|
|
@@ -105,9 +105,20 @@
|
|
|
105
105
|
`unaddressable`)则两个方向都拒,并原样转述上游的理由。**任何 `enable` 与 `remove` 都要确认**(卸载列出它会动的行数与覆盖数),
|
|
106
106
|
`disable` 只对宿主层自己的行问一句(关掉它会卸载本应用注入的服务)。宿主不提供
|
|
107
107
|
已装包的来源证明,本地或 Git 包也能声明嫡系的名称与版本,因此即使命中 feed 也不能免确认。这些动作**没有取消面**:
|
|
108
|
-
服务不提供,Esc
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
服务不提供,Esc 只关面板,写入照旧跑完并(在同一会话里)把结果写进转录。
|
|
109
|
+
- **授权跟着生命周期走**:`/plugin install` 的确认页列出包内声明的权限,`Enter` 先写授权
|
|
110
|
+
再安装(失败回滚);registry 包在装上后才读得到声明,装成功后补一个「授予」步骤。
|
|
111
|
+
`enable` 在写入 profile 前按声明授予,`disable` 在关闭后撤销该组件声明过的权限,`remove`
|
|
112
|
+
在卸载后删除该组件的 `grants`/`denies` 条目——授权以 component id 为键,留着会被后来
|
|
113
|
+
复用同一 id 的包静默继承,因此重新安装后需要再授权一次。写授权失败不阻塞安装或启用,
|
|
114
|
+
只会在转录里说明;授权矩阵仍可直接手改(`~/.dsh-tui/extension-grants.json`,写入器与
|
|
115
|
+
读取器共用同一套严格解析,损坏即拒写)。写入会取同目录的 `extension-grants.json.lock`
|
|
116
|
+
(与 profile 原子写同一把锁),多实例的读-改-写因此串行,不会丢掉 revoke/forget。
|
|
117
|
+
终端高度不足以放下一行权限时,清单折成
|
|
118
|
+
计数或把计数放进按键提示;包名与按键提示始终保留。
|
|
119
|
+
**已知缺口**:卸载不删用户数据——`~/.dsh-tui/backends/<id>/`、存储命名空间与效果台账
|
|
120
|
+
保留并按来源逐项**报告一次**,由用户自己决定删不删;包内声明读不到时明说「判断不了」,
|
|
121
|
+
不制造「已清理」的假象。
|
|
111
122
|
- `grants` 收窄为 `HostGrantFacade`,迁移细节见该 PR。
|
|
112
123
|
- `TuiSceneProps.channel`(`ChannelUi`)上的 `minimal` / `setMinimal()` 已更名为
|
|
113
124
|
`minimalUi` / `setMinimalUi()`;旧名保留为 **deprecated 别名**,读写同一个
|
|
@@ -124,8 +135,10 @@
|
|
|
124
135
|
已挂载的界面上(主题、面板、状态视图等实时加入)。用户选定的运行时主题在其插件
|
|
125
136
|
注册后生效,此前的首帧用自动检测的配色。根能力守卫与 `dsh --profile` 一致:在首个
|
|
126
137
|
TUI 行之后激活的行,apply 里不能用 `ctx.root` 的能力(`root.plugin`、
|
|
127
|
-
`root.effect`、`root.on`
|
|
128
|
-
|
|
138
|
+
`root.effect`、`root.on` 等)。上游声明为 root 所有的 `invocation` accessor 是唯一例外:
|
|
139
|
+
宿主在装守卫时先物化它,之后的官方 Remote 服务因此仍能构造;插件自己调用 `ctx.root` 依旧被拒。
|
|
140
|
+
apply 里等待会拖住组合:耗时工作脱离 apply 启动、不要 await。场景的
|
|
141
|
+
`TuiSceneProps.channel` 在没有会话撑着时(例如启动会话打开失败,
|
|
129
142
|
见 `startupFailure`)`ready` 为 `false`、`status` 为 `'starting'`。
|
|
130
143
|
- **Claude 与 Codex 内核**(轻量 profile;Claude 已验收,Codex 走同一条组合路径但尚未验收):入口在首帧之后组合本包的行与 profile 声明的
|
|
131
144
|
第三方 bundle,不含 `@deepseek-ai/dsh-base`,规则同上条。`inject` 里有只由 DSH 核心
|
|
@@ -30,19 +30,33 @@ dsh-tui
|
|
|
30
30
|
- `dsh-tui safe`: safe mode — read-only environment view, lists profile plugins, suggests fixes, and can create a clean rescue profile (see §5.5).
|
|
31
31
|
- `dsh --profile dsh-tui`: manual launch, equivalent to `dsh-tui` (`/update` only works this way).
|
|
32
32
|
- The `deepseek-official` route needs `DEEPSEEK_API_KEY`; on DSH 0.2.0-rc.1+ the standard profile can use the separate `deepseek-account` browser-authorization route. Other supported subscriptions use built-in OAuth sign-in. Run `/doctor` to check the environment.
|
|
33
|
-
- Primary verified dsh engine version: `0.2.1-rc.
|
|
33
|
+
- Primary verified dsh engine version: `0.2.1-rc.5`. See `ADAPTER.md` for compatibility lines; versions outside that list show a drift note and the command to align on the logo page.
|
|
34
34
|
- If the logo page shows a ⚠ version-drift warning, align the dsh engine:
|
|
35
35
|
`npm i -g @deepseek-ai/dsh@<版本>`
|
|
36
36
|
|
|
37
37
|
### 1.2 What you see on first launch
|
|
38
38
|
|
|
39
39
|
1. **First-run guide** (whenever the guide has not been completed yet — a fresh install, or a
|
|
40
|
-
guide that bumped its own version): a four-step wizard — **
|
|
41
|
-
theme → model & workspace → shortcuts & moves**.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
guide that bumped its own version): a four-step wizard — **accounts & models → language &
|
|
41
|
+
theme → model & workspace → shortcuts & moves**. The first step is no longer a check page: it
|
|
42
|
+
offers **actions** — `Sign in to a subscription (OAuth)` (ChatGPT / Claude / Grok, or DeepSeek
|
|
43
|
+
account browser sign-in, each annotated with its masked sign-in state), `Add a model provider
|
|
44
|
+
(API key)` (the same wizard as `/provider`: a built-in catalog or a custom endpoint), `Check
|
|
45
|
+
again`, `Skip this step`. After a subscription sign-in, the **newly available models are caught**:
|
|
46
|
+
none → just a report; exactly one → it becomes the default; several → an inline default picker:
|
|
47
|
+
all of them are usable once you are signed in, so it only picks the default (`↑`/`↓` move, `Enter`
|
|
48
|
+
sets the default; the last row "Keep the current model", or `Esc`, leaves it alone). With a
|
|
49
|
+
signed-in subscription or a keyed route, step 1 no longer reports a missing `DEEPSEEK_API_KEY` as a
|
|
50
|
+
failure — only the DeepSeek official API's balance check is skipped. Adding a provider leaves which models to enable and which of
|
|
51
|
+
them to switch to (or keeping the current model) to the `/provider` wizard itself; back in the guide
|
|
52
|
+
it only reports the result, without
|
|
53
|
+
asking again or changing the default the wizard settled. When no in-app seam exists (an older host, a bare `cordis.yml`) the fallback names the
|
|
54
|
+
**real** manual paths — the `refs:` block of `$DSH_HOME/.credentials.yaml` and PowerShell's
|
|
55
|
+
user-level variable / cmd's `setx` — instead of a config file nothing reads.
|
|
56
|
+
`←/→` change step, `Tab` switches between the two panes, `↑/↓` move the selection, `Enter` runs
|
|
57
|
+
the step, `Esc` skips. **Skipping is not recorded** (you are asked again next launch); the last
|
|
58
|
+
step only counts as finished — and writes the marker — when `Enter` lands on a **shortcut card**
|
|
59
|
+
(on a command card `Enter` tries the command). Re-run it any time with `/setup`.
|
|
46
60
|
2. **Launchpad** (the first screen of an **ordinary launch** — no `--resume`, no workspace target,
|
|
47
61
|
no prompt; turn it off in `/settings` (`launchpad`, on by default, restart to apply), or
|
|
48
62
|
`DSH_TUI_NO_LAUNCHPAD=1` skips it entirely): the pixel-whale header (`✦ dsh-TUI`
|
|
@@ -275,7 +289,7 @@ one-column seam between the two surfaces.
|
|
|
275
289
|
chat-focused → focus the panel; panel-focused → close and return to the chat.
|
|
276
290
|
- **Panel keys**: `Esc` steps back to the input (the panel stays open) · `←`/`→` or `[`/`]` switch
|
|
277
291
|
panels · `1`-`9` jump to the Nth · `z` or `Alt+Z` zoom · `+`/`-` resize (`+` widens the panel by 4 columns) · `↑`/`↓`/`PgUp`/`PgDn`
|
|
278
|
-
go to the active panel (jobs selects and scrolls with them). Keys the panel does not take never
|
|
292
|
+
go to the active panel (jobs selects and scrolls with them; the todo panel scrolls a long goal with `↑`/`↓`). Keys the panel does not take never
|
|
279
293
|
reach the chat, while `Ctrl+C`/`Ctrl+D`/`Ctrl+L` and the other Ctrl combos still do.
|
|
280
294
|
- **Mouse**: click the chat column to focus the chat, click the panel column to focus the panel;
|
|
281
295
|
clicking a tab on the bar switches to that panel (hover highlights it), and the `⤢` on its right
|
|
@@ -284,7 +298,7 @@ one-column seam between the two surfaces.
|
|
|
284
298
|
at least 64 columns and the panel at least 28. Dragging exits zoom, preserves keyboard focus,
|
|
285
299
|
and keeps the width for the current session. Text drags starting in chat select only chat;
|
|
286
300
|
drags starting inside the panel can select panel text.
|
|
287
|
-
- **Panels**: by default (`sidePanel.panels: '*'`) every panel is enabled — the eight built-ins plus plugin panels registered later; change it in `sidePanel.panels` or the `/settings` checkboxes. `todo` (Goals/Todos — with a split it moves here from above the input), `jobs`
|
|
301
|
+
- **Panels**: by default (`sidePanel.panels: '*'`) every panel is enabled — the eight built-ins plus plugin panels registered later; change it in `sidePanel.panels` or the `/settings` checkboxes. `todo` (Goals/Todos — with a split it moves here from above the input; a long goal wraps to the panel width with its phase on a separate row, and `↑`/`↓` or the wheel scrolls the whole goal and every todo when the panel is focused), `jobs`
|
|
288
302
|
(background jobs; clicking a job card in the transcript focuses that job here), `agents`
|
|
289
303
|
(subagent dashboard and detail: Enter opens the detail, Esc steps back), `companion`
|
|
290
304
|
(the pet — its mood follows
|
|
@@ -346,7 +360,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
|
|
|
346
360
|
| `/home` / `/agentview` / `/bg` | none | the same session manager (`/home`=workspace view · `/agentview`=hosted session state · `/bg`=send to background and open, alias `/background`) |
|
|
347
361
|
| `/tree` | none | session fork tree: hover to preview, click to rewind / fork / switch branch |
|
|
348
362
|
| `/fork` | none | copy the current session into a resumable clone (original unaffected); a DSH copy with history records its source and belongs to the same session family |
|
|
349
|
-
| `/restart` | none | restart the process and resume this session. Allowed mid-turn too: the running turn is interrupted and queued input
|
|
363
|
+
| `/restart` | none | restart the process and resume this session. Allowed mid-turn too: the running turn is interrupted and queued input comes back as held messages, text only (attached images are not kept; nothing is sent until you press ⏎ on the dock); if a tool ignores the interrupt and the process cannot shut down cleanly, it exits after ~5 s and prints the command that resumes this session |
|
|
350
364
|
| `/kernel` | none | kernel picker: switch between DSH, Codex and the experimental Claude backend; remembers the pick and restarts into a new session (rejected mid-turn); see [Claude backend](claude-backend.en.md) |
|
|
351
365
|
| `/dsh` / `/codex` / `/claude` | none | directly choose the named kernel through the same checks and restart flow as `/kernel`; the current kernel does not restart, a running turn blocks switching, and missing Claude opens the install wizard |
|
|
352
366
|
| `/rename` | `<新名称>` | rename the current session (no arg shows the current title and usage) |
|
|
@@ -376,7 +390,7 @@ The command menu = built-in commands (aliases included) + DSH registry commands
|
|
|
376
390
|
| `/team` | `status` (default) | experimental Agent Teams status; appears in Help and `/` completion only while the team service runs, reporting the bundle, the service and this session's teammates. Switch with `/plugin enable\|disable @deepseek-ai/dsh-experimental-agent-team-profile` (a typed `/team` while the service is absent gives the enable route) |
|
|
377
391
|
| `/jobs` | none | background-task panel: status/runtime/exit-code tracking, `↑/↓` select, `k` stop; while open, `Esc` **closes only the panel** and won't interrupt the turn (close the panel first, then `Ctrl+C`) |
|
|
378
392
|
| `/settings` | none | open the plugin settings editor (namespace read/edit) |
|
|
379
|
-
| `/setup` | none | re-run the first-run guide (
|
|
393
|
+
| `/setup` | none | re-run the first-run guide (accounts & models / language+theme / model+workspace / shortcuts) — same screen as the very first launch |
|
|
380
394
|
| `/help` | none | shortcut + command help menu (`?` entry) |
|
|
381
395
|
|
|
382
396
|
### 3.3 Model / display
|
|
@@ -479,7 +493,7 @@ Keys are in §2.1:
|
|
|
479
493
|
|
|
480
494
|
`/btw <问题>`: one no-tool, single-turn answer reusing the current context,
|
|
481
495
|
**not written to history, no token counted**.
|
|
482
|
-
Panel `↑/↓` scroll · `c` copy · `Esc` close.
|
|
496
|
+
Panel `↑/↓` scroll · `c` copy · `Esc` close; in the sidebar panel's follow-up input, `Ctrl+V`/`Alt+V` pastes at the caret.
|
|
483
497
|
|
|
484
498
|
### 4.5 Trace scene (Ctrl+T / /trace)
|
|
485
499
|
|
|
@@ -517,7 +531,7 @@ Keys are in §2.7. Key points:
|
|
|
517
531
|
- `/plan` `/goal` `/feedback` `/permission` come from the DSH registry, merged into the `/` menu.
|
|
518
532
|
- **Goals/Todos panel appears automatically**: when the model writes a goal/todo, it renders above the input
|
|
519
533
|
(🎯 goal + phase badge + tree todo), no action needed; with a split it moves to the `todo` panel on the right (see §2.8).
|
|
520
|
-
The goal bar keeps a one-line summary: hovering truncated goal text reads the whole objective, and a bare `/goal` prints the
|
|
534
|
+
The goal bar keeps a one-line summary: hovering truncated goal text reads the whole objective (the right-column `todo` panel wraps the whole goal instead and scrolls), and a bare `/goal` prints the
|
|
521
535
|
full status (objective, phase, rounds or budget, available commands) as a `/plugins`-shaped transcript block — inline mode has
|
|
522
536
|
no pointer, so a long objective is read from that block.
|
|
523
537
|
|
|
@@ -646,7 +660,7 @@ Common items below, full list on the /settings screen. Most topics (**Appearance
|
|
|
646
660
|
| jobGroupFold | consecutive background-job cards: auto (default — runs of 2+ group, a settled run of 3+ folds into its summary line) / always (any run of 2+ folds right away, live jobs included) / never (never folds on its own, every card stays). The group header summarizes status and total time; click it or press Ctrl+O to expand |
|
|
647
661
|
| effortDefault | default reasoning effort: Auto plus the current backend/model’s declared tiers (including custom IDs). Saved unsupported values remain readable; only Auto is selectable while loading or unavailable |
|
|
648
662
|
| smoothStreaming | smooth streaming output (default on): replies/thinking/tool-card text reveal at ~30fps; replay/history always direct |
|
|
649
|
-
| toolBackground | tool-card background emphasis: none / subtle / strong |
|
|
663
|
+
| toolBackground | tool-card background emphasis: none / subtle / strong; also applies when expanded |
|
|
650
664
|
| turnUsageRow | Turn-usage row (default off): show a per-turn summary of tokens, cache, duration and retries; `/tokens`, `/status` and the footer token hover are unaffected |
|
|
651
665
|
| mermaidDiagrams | Mermaid diagrams (default on): ```` ```mermaid ```` blocks render as character diagrams, forming while streaming; too-wide or unsupported types keep source with the required columns. Applies immediately |
|
|
652
666
|
| mathRendering | LaTeX math (default `auto`; lives on the **Formula** subpage of `/settings`): how `$…$` / `\(…\)` inline and `$$…$$` / `\[…\]` / bare display-environment (`\begin{align}` …) block formulas in replies show. `auto` uses the best available renderer (today Unicode text, with fractions and limits stacked in blocks), `image` typesets formulas with MathJax as terminal images when the terminal has graphics — the Kitty graphics protocol (Kitty, Ghostty, WezTerm, iTerm2…) or Sixel (Windows Terminal 1.22+, xterm, foot, WezTerm) — in the theme's text color (block formulas up to 16 rows; inline formulas as one-row images when a single row can hold them legibly; still-streaming formulas, dimmed thinking, terminals without graphics, formulas too small on one row, and any render failure fall back to Unicode), `unicode` pins Unicode text, `source` keeps the TeX. Unsupported, still-streaming, or too-wide formulas keep their source (a too-wide block first falls back to one line). Prices (`$5`), shell variables (`$HOME`), and `$` in code are left alone. The older `latexMath: false` still means `source`. **Click a formula image** to open the preview card: it re-typesets at twice the cell size, zooms 100–800%, pans, closes on `Esc` or a click outside, and titles itself with the formula's TeX. On Sixel the formulas carry **no backing** (only their strokes), so the terminal background or wallpaper shows through. Illustrations that ship with their own transparent margins — the `whaleGirl` raster — float the same way; photographs, screenshots, and images inside cards still composite onto a colour, because Sixel cannot express soft alpha. Applies immediately |
|
|
@@ -754,7 +768,7 @@ When dsh exits unexpectedly, safe mode gives a **read-only** environment diagnos
|
|
|
754
768
|
11. Context pressure ≥80% turns amber, ≥95% red — time to `/compact` (unavailable under minimal preset).
|
|
755
769
|
12. Session manager (`/resume`, `/home`, `/agentview`, `/bg`, or `⌸` at the input line start):
|
|
756
770
|
type to filter, `★` pin, `Ctrl+X` stop a background session; switching just parks it.
|
|
757
|
-
13. Mid-turn, `/compact` and `/model` are rejected — `Ctrl+C` first or wait for the turn to end. `/restart` is not gated: it interrupts the running turn (queued input
|
|
771
|
+
13. Mid-turn, `/compact` and `/model` are rejected — `Ctrl+C` first or wait for the turn to end. `/restart` is not gated: it interrupts the running turn (queued input comes back held, text only and not sent automatically) and restarts; if Esc or `Ctrl+C` cannot stop a turn (a tool ignoring the interrupt) the process exits after ~5 s and prints the command that resumes this session — run it to get back in.
|
|
758
772
|
14. `/model` switches subsequent requests in the same session (ID and history kept); the choice is saved as the default for new sessions, while a resumed session keeps its last recorded request route.
|
|
759
773
|
|
|
760
774
|
**Ask the manual**
|