@deepseek-harness-tui/dsh-tui 0.16.1 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +208 -31
- package/assets/plugin-icon.svg +13 -0
- package/assets/windows-installer.cs +308 -0
- package/assets/windows-installer.ps1 +17 -0
- package/bin/dsh-tui.js +64 -5
- package/cli/adapters/dsh/index.mjs +111 -0
- package/cli/adapters/dsh/locate.mjs +73 -0
- package/cli/adapters/dsh/management-plugin.mjs +111 -0
- package/cli/args.mjs +154 -0
- package/cli/contracts.d.ts +48 -0
- package/cli/engine.mjs +92 -0
- package/cli/entry.mjs +48 -0
- package/cli/process.mjs +118 -0
- package/cli/protocol.mjs +23 -0
- package/cli/schema-v1.json +33 -0
- package/cordis.patch.yml +3 -1
- package/cordis.yml +3 -1
- package/guide/dsh-tui-guide/SKILL.md +1 -0
- package/guide/dsh-tui-guide/cli.en.md +114 -0
- package/guide/dsh-tui-guide/cli.md +114 -0
- package/guide/dsh-tui-guide/configuration.en.md +6 -5
- package/guide/dsh-tui-guide/configuration.md +6 -5
- package/guide/dsh-tui-guide/getting-started.en.md +27 -1
- package/guide/dsh-tui-guide/getting-started.md +19 -1
- package/guide/dsh-tui-guide/interaction.en.md +22 -10
- package/guide/dsh-tui-guide/interaction.md +18 -8
- package/guide/dsh-tui-guide/plugins.en.md +35 -4
- package/guide/dsh-tui-guide/plugins.md +23 -2
- package/guide/dsh-tui-guide/user-guide.en.md +30 -23
- package/guide/dsh-tui-guide/user-guide.md +29 -22
- package/lib/settings.json +83 -40
- package/lib/types/adapter/channel/plugins.d.ts.map +1 -1
- package/lib/types/adapter/channel/plugins.js +8 -0
- package/lib/types/adapter/channel/ui-policy.d.ts +1 -1
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +3 -0
- package/lib/types/adapter/ports/channel-display.d.ts +10 -0
- package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-session.d.ts +2 -0
- package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
- package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-ui.d.ts +17 -2
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +8 -1
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel.d.ts +7 -0
- package/lib/types/adapter/ports/channel.d.ts.map +1 -1
- package/lib/types/agent/capabilities.d.ts +2 -0
- package/lib/types/agent/capabilities.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +8 -0
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/api.d.ts +2 -2
- package/lib/types/api.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/events.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/events.js +2 -1
- package/lib/types/backends/codex/auth/status.js +1 -1
- package/lib/types/backends/codex/session/controls.d.ts.map +1 -1
- package/lib/types/backends/codex/session/controls.js +6 -5
- package/lib/types/backends/codex/session/goals.d.ts.map +1 -1
- package/lib/types/backends/codex/session/side-query.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/events.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/events.js +3 -1
- package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -1
- package/lib/types/backends/shared/channel-tokens.js +9 -8
- package/lib/types/channel/history-restore.d.ts.map +1 -1
- package/lib/types/channel/history-restore.js +2 -0
- package/lib/types/channel/interaction.d.ts.map +1 -1
- package/lib/types/channel/interaction.js +1 -0
- package/lib/types/channel/projection.d.ts +1 -1
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +19 -4
- package/lib/types/channel/questions.d.ts +2 -0
- package/lib/types/channel/questions.d.ts.map +1 -1
- package/lib/types/channel/sanitize.d.ts +14 -0
- package/lib/types/channel/sanitize.d.ts.map +1 -1
- package/lib/types/channel/sanitize.js +55 -0
- package/lib/types/channel/working-directory.d.ts +9 -0
- package/lib/types/channel/working-directory.d.ts.map +1 -0
- package/lib/types/channel/working-directory.js +7 -0
- package/lib/types/commands.d.ts +8 -1
- package/lib/types/commands.d.ts.map +1 -1
- package/lib/types/commands.js +13 -4
- package/lib/types/components/ChatTitle.d.ts +7 -0
- package/lib/types/components/ChatTitle.d.ts.map +1 -0
- package/lib/types/components/ChatTitle.js +15 -0
- package/lib/types/components/CodeBlockFrame.d.ts.map +1 -1
- package/lib/types/components/CodeBlockFrame.js +10 -5
- package/lib/types/components/CompactionStatusRow.d.ts.map +1 -1
- package/lib/types/components/CompactionStatusRow.js +24 -3
- package/lib/types/components/GoalTodoPanel.d.ts +3 -1
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +2 -2
- package/lib/types/components/Markdown.d.ts +9 -1
- package/lib/types/components/Markdown.d.ts.map +1 -1
- package/lib/types/components/Markdown.js +5 -4
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +17 -12
- package/lib/types/components/PromptInput.d.ts +13 -5
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +189 -107
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +232 -22
- package/lib/types/components/SubagentDetailScene.d.ts +3 -1
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +5 -1
- package/lib/types/components/Whale.d.ts.map +1 -1
- package/lib/types/components/Whale.js +8 -5
- package/lib/types/components/approvals/ApprovalPanel.d.ts +1 -1
- package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
- package/lib/types/components/approvals/ApprovalPanel.js +93 -11
- package/lib/types/components/bigfont.d.ts.map +1 -1
- package/lib/types/components/bigfont.js +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +13 -6
- package/lib/types/components/previewRows.d.ts +19 -0
- package/lib/types/components/previewRows.d.ts.map +1 -0
- package/lib/types/components/previewRows.js +46 -0
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
- package/lib/types/components/questions/AskUserQuestionPanel.js +75 -10
- package/lib/types/components/sessions/ForeignSessionRow.d.ts +3 -9
- package/lib/types/components/sessions/ForeignSessionRow.d.ts.map +1 -1
- package/lib/types/components/sessions/ForeignSessionRow.js +6 -10
- package/lib/types/components/sessions/SessionListRow.d.ts +4 -9
- package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -1
- package/lib/types/components/sessions/SessionListRow.js +18 -10
- package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/InfoPanel.js +4 -3
- package/lib/types/components/sidePanel/SidePanelLayout.d.ts.map +1 -1
- package/lib/types/components/sidePanel/SidePanelLayout.js +5 -5
- package/lib/types/components/sidePanel/WorkspacePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/WorkspacePanel.js +19 -7
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +22 -16
- package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/companion/CompanionPanel.js +2 -1
- package/lib/types/components/sidePanel/panelMarkdown.d.ts +32 -0
- package/lib/types/components/sidePanel/panelMarkdown.d.ts.map +1 -0
- package/lib/types/components/sidePanel/panelMarkdown.js +45 -0
- package/lib/types/components/sidePanel/pluginPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/pluginPanelAdapter.js +6 -1
- package/lib/types/components/sidePanel/subagentFailureRead.d.ts +21 -0
- package/lib/types/components/sidePanel/subagentFailureRead.d.ts.map +1 -0
- package/lib/types/components/sidePanel/subagentFailureRead.js +66 -0
- package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.js +24 -6
- package/lib/types/components/trajectory/MiniWake.d.ts +2 -2
- package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -1
- package/lib/types/components/trajectory/MiniWake.js +7 -3
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
- package/lib/types/components/workspaces/HomeWorkspaceRow.js +4 -7
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +11 -1
- package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +5 -1
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +18 -1
- package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/command-completions.js +6 -8
- package/lib/types/dsh-adapter/channel/composer-images.d.ts +9 -1
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +111 -111
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-mentions.js +16 -10
- package/lib/types/dsh-adapter/channel/core/actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/actions.js +23 -2
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +4 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.js +13 -2
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +4 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +2 -0
- package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/files.js +2 -1
- package/lib/types/dsh-adapter/channel/core/host.d.ts +14 -10
- package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/host.js +192 -13
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +1 -0
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.js +32 -3
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +31 -5
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +4 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +4 -1
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +24 -1
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.js +7 -1
- package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-selection.js +6 -4
- package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-fork.js +1 -0
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-metadata.js +15 -2
- package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.js +4 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +46 -33
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +10 -3
- package/lib/types/dsh-adapter/channel/state.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/state.js +2 -2
- package/lib/types/dsh-adapter/channel/types.d.ts +13 -1
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/liveSession.d.ts +3 -3
- package/lib/types/dsh-adapter/compat/liveSession.js +3 -3
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts +1 -1
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/sessionLog.js +17 -1
- package/lib/types/dsh-adapter/contract.d.ts +6 -5
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +7 -5
- package/lib/types/dsh-adapter/effect-ledger.d.ts +1 -1
- package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
- package/lib/types/dsh-adapter/effect-ledger.js +1 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +26 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
- package/lib/types/dsh-adapter/experimental-bundles.js +11 -0
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.js +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +3 -3
- package/lib/types/dsh-adapter/index.d.ts +8 -4
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +9 -7
- package/lib/types/dsh-adapter/panels.d.ts +21 -7
- package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
- package/lib/types/dsh-adapter/panels.js +11 -56
- package/lib/types/dsh-adapter/plugin.d.ts +81 -0
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +318 -70
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +65 -10
- package/lib/types/dsh-adapter/presets.d.ts +15 -6
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +51 -12
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/session-tools.d.ts +34 -0
- package/lib/types/dsh-adapter/session-tools.d.ts.map +1 -0
- package/lib/types/dsh-adapter/session-tools.js +39 -0
- package/lib/types/dsh-adapter/settings-sections.d.ts +18 -1
- package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
- package/lib/types/dsh-adapter/settings-sections.js +73 -0
- package/lib/types/dsh-adapter/status.d.ts +88 -1
- package/lib/types/dsh-adapter/status.d.ts.map +1 -1
- package/lib/types/dsh-adapter/status.js +318 -3
- package/lib/types/dsh-adapter/team-mode.d.ts +42 -33
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +76 -112
- package/lib/types/extensions.d.ts +1 -1
- package/lib/types/extensions.d.ts.map +1 -1
- package/lib/types/force-production-react.js +3 -3
- package/lib/types/i18n.d.ts +195 -52
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +96 -30
- package/lib/types/ink/colorize.d.ts +7 -1
- package/lib/types/ink/colorize.d.ts.map +1 -1
- package/lib/types/ink/colorize.js +29 -8
- package/lib/types/ink/components/App.d.ts +2 -1
- package/lib/types/ink/components/App.d.ts.map +1 -1
- package/lib/types/ink/components/App.js +10 -3
- package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
- package/lib/types/ink/components/ScrollBox.js +1 -0
- package/lib/types/ink/dom.d.ts +1 -0
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-program-status.d.ts +78 -0
- package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-program-status.js +96 -0
- package/lib/types/ink/ink.d.ts +13 -4
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +119 -25
- package/lib/types/ink/output.d.ts +17 -2
- package/lib/types/ink/output.d.ts.map +1 -1
- package/lib/types/ink/output.js +85 -2
- package/lib/types/ink/parse-keypress.d.ts +1 -0
- package/lib/types/ink/parse-keypress.d.ts.map +1 -1
- package/lib/types/ink/parse-keypress.js +5 -4
- package/lib/types/ink/render-node-to-output.d.ts +2 -0
- package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
- package/lib/types/ink/render-node-to-output.js +79 -10
- package/lib/types/ink/root.d.ts +8 -0
- package/lib/types/ink/root.d.ts.map +1 -1
- package/lib/types/ink/root.js +12 -3
- package/lib/types/ink/screen.d.ts +11 -0
- package/lib/types/ink/screen.d.ts.map +1 -1
- package/lib/types/ink/screen.js +44 -0
- package/lib/types/ink/selection.d.ts +7 -2
- package/lib/types/ink/selection.d.ts.map +1 -1
- package/lib/types/ink/selection.js +187 -44
- package/lib/types/ink/shutdown-input.d.ts +15 -0
- package/lib/types/ink/shutdown-input.d.ts.map +1 -0
- package/lib/types/ink/shutdown-input.js +28 -0
- package/lib/types/ink/sixel-cursor-heal.d.ts +21 -0
- package/lib/types/ink/sixel-cursor-heal.d.ts.map +1 -0
- package/lib/types/ink/sixel-cursor-heal.js +62 -0
- package/lib/types/ink/sixel-graphics.d.ts +6 -0
- package/lib/types/ink/sixel-graphics.d.ts.map +1 -1
- package/lib/types/ink/sixel-graphics.js +18 -0
- package/lib/types/ink/styles.d.ts +8 -1
- package/lib/types/ink/styles.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification-windows.d.ts +195 -0
- package/lib/types/ink/terminal-notification-windows.d.ts.map +1 -0
- package/lib/types/ink/terminal-notification-windows.js +433 -0
- package/lib/types/ink/terminal-notification.d.ts +3 -1
- package/lib/types/ink/terminal-notification.d.ts.map +1 -1
- package/lib/types/ink/terminal-notification.js +4 -1
- package/lib/types/ink/terminal-querier.d.ts +9 -1
- package/lib/types/ink/terminal-querier.d.ts.map +1 -1
- package/lib/types/ink/terminal-querier.js +32 -1
- package/lib/types/ink/terminal.d.ts +23 -2
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +32 -2
- package/lib/types/ink/termio/osc.d.ts +2 -1
- package/lib/types/ink/termio/osc.d.ts.map +1 -1
- package/lib/types/ink/termio/osc.js +37 -8
- package/lib/types/ink/termio/osc7501.d.ts +102 -0
- package/lib/types/ink/termio/osc7501.d.ts.map +1 -0
- package/lib/types/ink/termio/osc7501.js +229 -0
- package/lib/types/ink/termio/tokenize.js +5 -7
- package/lib/types/panels.d.ts +1 -1
- package/lib/types/panels.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.d.ts +3 -1
- package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -1
- package/lib/types/screens/AgentTranscriptScene.js +5 -1
- package/lib/types/screens/Chat.d.ts +6 -6
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +304 -111
- package/lib/types/screens/Launchpad.d.ts +8 -2
- package/lib/types/screens/Launchpad.d.ts.map +1 -1
- package/lib/types/screens/Launchpad.js +32 -12
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/SessionSupervisor.js +31 -21
- package/lib/types/screens/Settings.d.ts +5 -1
- package/lib/types/screens/Settings.d.ts.map +1 -1
- package/lib/types/screens/Settings.js +528 -51
- package/lib/types/screens/StatusLine.d.ts +9 -3
- package/lib/types/screens/StatusLine.d.ts.map +1 -1
- package/lib/types/screens/StatusLine.js +91 -15
- package/lib/types/screens/StatusMetrics.d.ts +2 -11
- package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
- package/lib/types/screens/StatusMetrics.js +20 -14
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +13 -21
- package/lib/types/sessionMounts.d.ts +14 -0
- package/lib/types/sessionMounts.d.ts.map +1 -1
- package/lib/types/sessionMounts.js +20 -9
- package/lib/types/sessions/format.d.ts +39 -0
- package/lib/types/sessions/format.d.ts.map +1 -1
- package/lib/types/sessions/format.js +83 -0
- package/lib/types/sessions/resumeFailure.d.ts +4 -0
- package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
- package/lib/types/sessions/resumeFailure.js +12 -4
- package/lib/types/sessions/workspaceCounts.d.ts +6 -0
- package/lib/types/sessions/workspaceCounts.d.ts.map +1 -0
- package/lib/types/sessions/workspaceCounts.js +24 -0
- package/lib/types/settings/definitions.d.ts +24 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +38 -13
- package/lib/types/tips.js +2 -2
- package/lib/types/tuiDisplayPrefs.d.ts +113 -5
- package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
- package/lib/types/tuiDisplayPrefs.js +276 -14
- package/lib/types/update.d.ts +15 -14
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +163 -115
- package/lib/types/updateProcess.d.ts +28 -0
- package/lib/types/updateProcess.d.ts.map +1 -0
- package/lib/types/updateProcess.js +135 -0
- package/lib/types/utils/inputWordBoundary.d.ts +5 -0
- package/lib/types/utils/inputWordBoundary.d.ts.map +1 -0
- package/lib/types/utils/inputWordBoundary.js +18 -0
- package/lib/types/utils/keymap.d.ts +1 -1
- package/lib/types/utils/keymap.d.ts.map +1 -1
- package/lib/types/utils/keymap.js +6 -1
- package/lib/types/windowsInstaller.d.ts +4 -0
- package/lib/types/windowsInstaller.d.ts.map +1 -0
- package/lib/types/windowsInstaller.js +237 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +127 -111
- package/presets/liangshen/custom-bash.mjs +13 -1
- package/presets/liangshen/instruction-hint.mjs +4 -1
- package/presets/liangshen/skill-search.mjs +14 -2
- package/presets/winbash.mjs +16 -4
- package/tui-profile/feed/README.md +17 -8
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAmBA,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/contract.ts"],"names":[],"mappings":"AAmBA,gDAAgD;AAChD,eAAO,MAAM,0BAA0B,eAAe,CAAA;AAEtD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,2BAA2B,uSAoB9B,CAAA;AAEV;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAG5D,CAAA;AAED,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,wsCAuC5B,CAAA;AAEV,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,SAAS,EAAE,MAAM,CAAA;CAClB;AAoBD,4EAA4E;AAC5E,MAAM,MAAM,yBAAyB,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAA;AAE/D,4FAA4F;AAC5F,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,CAAC,CAAA;AAEvG,wEAAwE;AACxE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,oBAAoB,GAAG,SAAS,CAKlG;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,CAAC,EAAE,oBAAoB,EAAE,CAAC,EAAE,oBAAoB,GAAG,MAAM,CAQxF;AAkBD,sEAAsE;AACtE,eAAO,MAAM,wBAAwB,QAA6D,CAAA;AAYlG,wBAAgB,yBAAyB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAqB9E;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAE9F;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,GAAG,SAAS,CAQ3D;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAKnF;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,MAAM,EAAE,CAQV;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,kBAAkB,EAAE,CAuBtB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEtE,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,iBAAiB,CAAA;IACvB,sFAAsF;IACtF,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,iBAAiB,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAA+B,GAC5F,oBAAoB,GAAG,SAAS,CA0BlC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Upstream compatibility contract.
|
|
3
3
|
*
|
|
4
4
|
* The TUI is validated against a set of upstream prerelease lines — the
|
|
5
|
-
* current primary (0.2.1-rc.
|
|
5
|
+
* current primary (0.2.1-rc.3) plus older lines kept in backward
|
|
6
6
|
* compatibility across the 0.2.0, 0.1.7, 0.1.5, 0.1.3, 0.1.2, 0.1.1 and 0.1.0
|
|
7
7
|
* release families.
|
|
8
8
|
* Every official package this adapter touches is blessed here; anything
|
|
@@ -17,13 +17,14 @@ import { readFileSync } from 'node:fs';
|
|
|
17
17
|
import { fileURLToPath } from 'node:url';
|
|
18
18
|
import { ADAPTER_TYPE_PACKAGES, HOST_TYPE_PACKAGES } from './host-contract.js';
|
|
19
19
|
/** Primary validated upstream line (newest). */
|
|
20
|
-
export const UPSTREAM_VALIDATED_VERSION = '0.2.1-rc.
|
|
20
|
+
export const UPSTREAM_VALIDATED_VERSION = '0.2.1-rc.3';
|
|
21
21
|
/**
|
|
22
22
|
* Explicitly supported upstream prerelease lines, oldest first.
|
|
23
23
|
*
|
|
24
|
-
* 0.2.1-rc.
|
|
25
|
-
* 0.
|
|
26
|
-
*
|
|
24
|
+
* 0.2.1-rc.3 = primary continuous-CI line; 0.2.1-rc.2 and
|
|
25
|
+
* 0.2.0-rc.2/rc.1 = previous family (mapped compatibility);
|
|
26
|
+
* 0.1.7-rc.2/rc.1 = previous family (mapped compatibility);
|
|
27
|
+
* 0.1.5-rc.1/alpha.2/alpha.1 = mapped
|
|
27
28
|
* compatibility lines (source-checked when the primary line moves);
|
|
28
29
|
* 0.1.3-alpha.2 = compatibility line (the only 0.1.3 build on npm);
|
|
29
30
|
* 0.1.2-rc.1 = previous family (full CI coverage); 0.1.2-alpha.3–alpha.5 =
|
|
@@ -54,6 +55,7 @@ export const UPSTREAM_VALIDATED_VERSIONS = [
|
|
|
54
55
|
'0.2.0-rc.1',
|
|
55
56
|
'0.2.0-rc.2',
|
|
56
57
|
'0.2.1-rc.2',
|
|
58
|
+
'0.2.1-rc.3',
|
|
57
59
|
];
|
|
58
60
|
/**
|
|
59
61
|
* Framework packages version on their own lines; the contract validates
|
|
@@ -45,7 +45,7 @@ export declare const EFFECT_LEDGER_NAME = "effect-ledger.jsonl";
|
|
|
45
45
|
/** Default ledger file (JSONL, one record per line). */
|
|
46
46
|
export declare const EFFECT_LEDGER_FILE: string;
|
|
47
47
|
/** Resource kinds recorded by the host's wired emitters. */
|
|
48
|
-
export declare const LEDGER_RESOURCE_KINDS: readonly ["command", "scene", "shortcut", "status", "renderer", "theme", "storage-namespace", "subscription", "permission"];
|
|
48
|
+
export declare const LEDGER_RESOURCE_KINDS: readonly ["command", "scene", "shortcut", "status", "status-field", "renderer", "theme", "storage-namespace", "subscription", "permission"];
|
|
49
49
|
export type LedgerOperation = 'create' | 'bind' | 'replace' | 'release' | 'cleanup-failed';
|
|
50
50
|
export type LedgerResult = 'applied' | 'pending' | 'failed';
|
|
51
51
|
/** Caller-facing record input; the runtime fills the lifecycle triple. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effect-ledger.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/effect-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAIH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AActD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,wBAAwB,CAAA;AAEvD,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,QAAqC,CAAA;AAEpE,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"effect-ledger.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/effect-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAIH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AActD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,wBAAwB,CAAA;AAEvD,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,QAAqC,CAAA;AAEpE,4DAA4D;AAC5D,eAAO,MAAM,qBAAqB,6IAWxB,CAA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UAAU;IAgBlB,OAAO,CAAC,YAAY;CAarB;AA+CD,eAAe,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DSH installation-supplied experimental bundles this TUI can drive, and the
|
|
3
|
+
* line that says how.
|
|
4
|
+
*
|
|
5
|
+
* A curated list, not a discovery: the plugin service reports every optional
|
|
6
|
+
* bundle the installation ships (voice input and the plugin market included),
|
|
7
|
+
* but only entries with a real TUI entry point belong here. `/plugin list`
|
|
8
|
+
* intersects this list with what the running installation supplies, so an
|
|
9
|
+
* older dsh simply shows nothing.
|
|
10
|
+
*
|
|
11
|
+
* @module
|
|
12
|
+
*/
|
|
13
|
+
import type { I18nKey } from '../i18n.js';
|
|
14
|
+
/** The bundle that mounts the `auto` permission preset. */
|
|
15
|
+
export declare const AUTO_REVIEW_BUNDLE = "@deepseek-ai/dsh-experimental-auto-review";
|
|
16
|
+
/** The bundle that mounts the five read-only session-search tools. */
|
|
17
|
+
export declare const SESSION_SEARCH_BUNDLE = "@deepseek-ai/dsh-experimental-session-search";
|
|
18
|
+
/** One experimental feature the TUI knows how to switch on and use. */
|
|
19
|
+
export interface TuiExperimentalBundle {
|
|
20
|
+
readonly name: string;
|
|
21
|
+
/** How to use the feature once it is on, in the reader's language. */
|
|
22
|
+
readonly hint: I18nKey;
|
|
23
|
+
}
|
|
24
|
+
/** The features `/plugin list` advertises, in product order. */
|
|
25
|
+
export declare const TUI_EXPERIMENTAL_BUNDLES: readonly TuiExperimentalBundle[];
|
|
26
|
+
//# sourceMappingURL=experimental-bundles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimental-bundles.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/experimental-bundles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGzC,2DAA2D;AAC3D,eAAO,MAAM,kBAAkB,8CAA8C,CAAA;AAE7E,sEAAsE;AACtE,eAAO,MAAM,qBAAqB,iDAAiD,CAAA;AAEnF,uEAAuE;AACvE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CACvB;AAED,gEAAgE;AAChE,eAAO,MAAM,wBAAwB,EAAE,SAAS,qBAAqB,EAIpE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TEAM_BUNDLE } from './team-roster.js';
|
|
2
|
+
/** The bundle that mounts the `auto` permission preset. */
|
|
3
|
+
export const AUTO_REVIEW_BUNDLE = '@deepseek-ai/dsh-experimental-auto-review';
|
|
4
|
+
/** The bundle that mounts the five read-only session-search tools. */
|
|
5
|
+
export const SESSION_SEARCH_BUNDLE = '@deepseek-ai/dsh-experimental-session-search';
|
|
6
|
+
/** The features `/plugin list` advertises, in product order. */
|
|
7
|
+
export const TUI_EXPERIMENTAL_BUNDLES = [
|
|
8
|
+
{ name: TEAM_BUNDLE, hint: 'plugins-experimental-team-hint' },
|
|
9
|
+
{ name: AUTO_REVIEW_BUNDLE, hint: 'plugins-experimental-auto-review-hint' },
|
|
10
|
+
{ name: SESSION_SEARCH_BUNDLE, hint: 'plugins-experimental-session-search-hint' },
|
|
11
|
+
];
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** The host CLI package whose installation the entry loads. */
|
|
8
8
|
export declare const HOST_PACKAGE = "@deepseek-ai/dsh";
|
|
9
9
|
/** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
|
|
10
|
-
export declare const HOST_REPLICA_VERSION = "0.2.1-rc.
|
|
10
|
+
export declare const HOST_REPLICA_VERSION = "0.2.1-rc.3";
|
|
11
11
|
/** Where the entry resolves a host module from. */
|
|
12
12
|
export type HostModuleVia =
|
|
13
13
|
/** The host package's own `createRequire` (its nested node_modules). */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** The host CLI package whose installation the entry loads. */
|
|
8
8
|
export const HOST_PACKAGE = '@deepseek-ai/dsh';
|
|
9
9
|
/** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
|
|
10
|
-
export const HOST_REPLICA_VERSION = '0.2.1-rc.
|
|
10
|
+
export const HOST_REPLICA_VERSION = '0.2.1-rc.3';
|
|
11
11
|
/** The host modules the entry loads, all from one installation, in load order. */
|
|
12
12
|
export const HOST_MODULES = [
|
|
13
13
|
{ key: 'cordis', specifier: '@deepseek-ai/cordis', via: 'host', exports: ['Context'] },
|
|
@@ -391,7 +391,7 @@ function hostVersion(host) {
|
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
/**
|
|
394
|
-
* dsh `bin.js` reportStartupFailure (0.2.1-rc.
|
|
394
|
+
* dsh `bin.js` reportStartupFailure (0.2.1-rc.3), the file half only: the
|
|
395
395
|
* screen is up, so never stderr. Undefined when it could not be written.
|
|
396
396
|
*/
|
|
397
397
|
async function writeStartupReport(error, context) {
|
|
@@ -425,7 +425,7 @@ async function writeStartupReport(error, context) {
|
|
|
425
425
|
}
|
|
426
426
|
return logPath;
|
|
427
427
|
}
|
|
428
|
-
/** dsh `profile-boot` createAppReady (0.2.1-rc.
|
|
428
|
+
/** dsh `profile-boot` createAppReady (0.2.1-rc.3). */
|
|
429
429
|
function createAppReady() {
|
|
430
430
|
let ready = false;
|
|
431
431
|
const listeners = new Set();
|
|
@@ -450,7 +450,7 @@ function createAppReady() {
|
|
|
450
450
|
},
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
/** dsh `process-shutdown` createProcessShutdown (0.2.1-rc.
|
|
453
|
+
/** dsh `process-shutdown` createProcessShutdown (0.2.1-rc.3), the `shutdown` half only. */
|
|
454
454
|
function createProcessShutdown(dispose, timeoutMs = PROCESS_SHUTDOWN_TIMEOUT_MS) {
|
|
455
455
|
let pending;
|
|
456
456
|
let settled = false;
|
|
@@ -172,7 +172,8 @@ export interface Config {
|
|
|
172
172
|
smoothStreaming?: boolean;
|
|
173
173
|
/** Successful task notifications: off, unfocused (default), or always. */
|
|
174
174
|
taskNotifications?: TaskNotifications;
|
|
175
|
-
/**
|
|
175
|
+
/** Notification transport: auto (default), OSC 9, BEL, or the native Windows
|
|
176
|
+
* toast, which off Windows resolves back to the probed terminal protocol. */
|
|
176
177
|
notificationMethod?: NotificationMethod;
|
|
177
178
|
/** Mermaid diagrams (settings `dsh-tui.mermaidDiagrams`): ```mermaid
|
|
178
179
|
* fences in replies render as Unicode box-drawing art — flowcharts,
|
|
@@ -231,9 +232,12 @@ export interface Config {
|
|
|
231
232
|
/** Chat column as a fraction of the content width, clamped to 0.1–0.95
|
|
232
233
|
* (default 0.68); +/- while the panel is focused nudges it live. */
|
|
233
234
|
ratio?: number;
|
|
234
|
-
/**
|
|
235
|
-
*
|
|
236
|
-
*
|
|
235
|
+
/** Which panels the side-panel bar shows, in PanelBar order. `*` (the
|
|
236
|
+
* default) means every registered panel — built-ins plus whatever a
|
|
237
|
+
* plugin registers later; an explicit comma list means exactly those ids
|
|
238
|
+
* (an unknown-but-well-formed id stays as a placeholder for a plugin).
|
|
239
|
+
* Registration never rewrites this value: a malformed id is dropped, the
|
|
240
|
+
* rest keep their order. */
|
|
237
241
|
panels?: string;
|
|
238
242
|
};
|
|
239
243
|
/** Companion pet (settings `dsh-tui.companion.*`): which skin the panel
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AAE5F,OAAO,EAAk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iB;IACjB,SAAS,CAAC,EAAE;QACV;oEAC4D;QAC5D,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD;;wEAEoE;IACpE,GAAG,CAAC,EAAE;QACJ,yEAAyE;QACzE,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB;2EACmE;QACnE,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;IACD;;;;sCAIkC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAA;IACrD;;;yDAGqD;IACrD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;IACzB;;;;;;sEAMkE;IAClE,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;6EAE6E;AAC7E,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAElF;AAED,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAiKH,CAAA;AAEtD;;;;;;GAMG;AACH,wBAAsB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CA+BtF;AAkCD,OAAO,EACL,OAAO,EACP,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,WAAW,GACjB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Schema from '@deepseek-ai/schemastery';
|
|
2
2
|
import { parseBackendChoice } from './backend-registry.js';
|
|
3
3
|
import { parseBackendId } from '../kernelPrefs.js';
|
|
4
|
-
import { BTW_CONTEXT_BUDGET_DEFAULT, BTW_CONTEXT_TURNS_DEFAULT, DEFAULT_COMPANION_SKIN,
|
|
4
|
+
import { ALL_SIDE_PANELS, BTW_CONTEXT_BUDGET_DEFAULT, BTW_CONTEXT_TURNS_DEFAULT, DEFAULT_COMPANION_SKIN, DEFAULT_STATUS_BAR, normalizeBtwContextBudget, normalizeBtwContextTurns, normalizeCompanionSkin, normalizePageMargin, normalizeSidePanelPanels, normalizeSidePanelRatio } from '../tuiDisplayPrefs.js';
|
|
5
5
|
import { SHORTCUT_ACTIONS } from '../utils/keymap.js';
|
|
6
6
|
import { normalizeSplashFont } from '../components/splashFonts.js';
|
|
7
7
|
import { normalizeBrandSetting } from '../branding.js';
|
|
@@ -84,7 +84,7 @@ export const Config = editableConfig(Schema.object({
|
|
|
84
84
|
expandEditor: Schema.boolean().default(true),
|
|
85
85
|
smoothStreaming: Schema.boolean().default(true),
|
|
86
86
|
taskNotifications: Schema.union(['off', 'unfocused', 'always']),
|
|
87
|
-
notificationMethod: Schema.union(['auto', 'osc9', 'bel']),
|
|
87
|
+
notificationMethod: Schema.union(['auto', 'osc9', 'bel', 'windows']),
|
|
88
88
|
mermaidDiagrams: Schema.boolean().default(true),
|
|
89
89
|
codeFrameStyle: Schema.union(['light', 'full']),
|
|
90
90
|
mathRendering: Schema.union(['auto', 'image', 'unicode', 'source']),
|
|
@@ -120,6 +120,8 @@ export const Config = editableConfig(Schema.object({
|
|
|
120
120
|
activity: Schema.boolean().default(DEFAULT_STATUS_BAR.activity),
|
|
121
121
|
trajectory: Schema.boolean().default(DEFAULT_STATUS_BAR.trajectory),
|
|
122
122
|
shortcutHint: Schema.boolean().default(DEFAULT_STATUS_BAR.shortcutHint),
|
|
123
|
+
pluginFields: Schema.boolean().default(DEFAULT_STATUS_BAR.pluginFields),
|
|
124
|
+
pluginFieldsOrder: Schema.string().default(DEFAULT_STATUS_BAR.pluginFieldsOrder),
|
|
123
125
|
}).default({ ...DEFAULT_STATUS_BAR }),
|
|
124
126
|
// Side-panel preferences, same shape as statusBar: every member carries a
|
|
125
127
|
// default so an unset cordis.yml block and a partially hand-written one
|
|
@@ -129,8 +131,8 @@ export const Config = editableConfig(Schema.object({
|
|
|
129
131
|
splitEnabled: Schema.boolean().default(true),
|
|
130
132
|
open: Schema.boolean().default(false),
|
|
131
133
|
ratio: Schema.transform(Schema.number().default(0.68), value => normalizeSidePanelRatio(value)),
|
|
132
|
-
panels: Schema.transform(Schema.string().default(
|
|
133
|
-
}).default({ splitEnabled: true, open: false, ratio: 0.68, panels:
|
|
134
|
+
panels: Schema.transform(Schema.string().default(ALL_SIDE_PANELS), value => normalizeSidePanelPanels(value)),
|
|
135
|
+
}).default({ splitEnabled: true, open: false, ratio: 0.68, panels: ALL_SIDE_PANELS }),
|
|
134
136
|
companion: Schema.object({
|
|
135
137
|
skin: Schema.transform(Schema.string().default(DEFAULT_COMPANION_SKIN), value => normalizeCompanionSkin(value)),
|
|
136
138
|
}).default({ skin: DEFAULT_COMPANION_SKIN }),
|
|
@@ -227,9 +229,9 @@ function attachToEntry(ctx, config) {
|
|
|
227
229
|
// (scripts/verify-public-config-types.mjs compiles a real consumer file against
|
|
228
230
|
// the published declarations), and from here on it may only grow — removing any
|
|
229
231
|
// of it is a breaking change. What is NOT here: the registry, the loader and the
|
|
230
|
-
// picker. Those stay the host's
|
|
231
|
-
//
|
|
232
|
-
// docs/plugins.md).
|
|
232
|
+
// picker. Those stay the host's; an installed bundle's declaration reaches them
|
|
233
|
+
// through the boot-time assembly (`backend-assembly.ts`, D-1) on top of the W-2
|
|
234
|
+
// admission chain (see docs/plugins.md).
|
|
233
235
|
export { BACKEND, BACKEND_CAPABILITY_NAMES, BACKEND_RESERVED_IDS, validateBackendSpec, } from '../adapter/spec/tui-contributions.js';
|
|
234
236
|
export { backendAdmission } from './backend-admission.js';
|
|
235
237
|
export { backendContributionOf } from './backend-contribution.js';
|
|
@@ -38,6 +38,23 @@ export type TuiPanelTextProps = Omit<React.ComponentProps<typeof import('../ui.j
|
|
|
38
38
|
export type TuiPanelImageProps = React.ComponentProps<typeof import('../ui.js').Image>;
|
|
39
39
|
export type TuiPanelScrollBoxProps = Omit<React.ComponentProps<typeof import('../ui.js').ScrollBox>, 'ref'>;
|
|
40
40
|
export type TuiPanelDividerProps = React.ComponentProps<typeof import('../components/design-system/Divider.js').Divider>;
|
|
41
|
+
/**
|
|
42
|
+
* 面板内 markdown 正文:只收字符串。宽度走面板作用域的 TerminalSizeContext
|
|
43
|
+
* (PanelHost 已把 columns 收窄到面板宽),主题走只读 useTheme。
|
|
44
|
+
*
|
|
45
|
+
* 与上面几个**刻意不同**:它们是「直通宿主组件、只砍危险 prop」的 Omit 收窄,
|
|
46
|
+
* 这两个是**新定义的包装面**——只承诺一个字段,宿主组件的 props、实现与依赖
|
|
47
|
+
* 怎么改都不动这里的契约(包装在 components/sidePanel/panelMarkdown.tsx)。
|
|
48
|
+
*/
|
|
49
|
+
export interface TuiPanelMarkdownProps {
|
|
50
|
+
readonly children: string;
|
|
51
|
+
}
|
|
52
|
+
/** 面板内单个代码块:收原始文本 + 可选语言标签;围栏长度、语言标签清洗与
|
|
53
|
+
* 语法高亮都由宿主包装层负责,插件拿不到 token 或 highlight 句柄。 */
|
|
54
|
+
export interface TuiPanelCodeBlockProps {
|
|
55
|
+
readonly code: string;
|
|
56
|
+
readonly language?: string;
|
|
57
|
+
}
|
|
41
58
|
/**
|
|
42
59
|
* 面板内 UI kit:宿主 React + 收窄组件 + Panel 尺寸感知。钩子和元素
|
|
43
60
|
* 必须走宿主 React(与 plugin scene 同一 single-React 规则)。
|
|
@@ -62,6 +79,10 @@ export interface TuiPanelUi {
|
|
|
62
79
|
readonly useAnimationTime: (intervalMs: number | null) => number;
|
|
63
80
|
/** 只读主题。 */
|
|
64
81
|
readonly useTheme: typeof import('../ui.js').useTheme;
|
|
82
|
+
/** 面板内 markdown 正文(实验性);只收字符串,拿不到 token/句柄。 */
|
|
83
|
+
readonly Markdown: React.ComponentType<TuiPanelMarkdownProps>;
|
|
84
|
+
/** 面板内单个代码块(实验性);围栏与高亮由宿主负责。 */
|
|
85
|
+
readonly CodeBlock: React.ComponentType<TuiPanelCodeBlockProps>;
|
|
65
86
|
}
|
|
66
87
|
export type TuiPanelBadgeLevel = 'info' | 'warning' | 'error';
|
|
67
88
|
export type TuiPanelMode = 'split' | 'zoom' | 'fullscreen';
|
|
@@ -246,13 +267,6 @@ export declare class TuiPanelRuntime extends Service {
|
|
|
246
267
|
* error/disabled;opened/closed/focused/blurred/sidebar-toggled TODO)。 */
|
|
247
268
|
subscribe(listener: (event: TuiPanelEvent) => void): () => void;
|
|
248
269
|
}
|
|
249
|
-
/** 应用 `sidePanel.panels` 配置,已注册的面板 id 并回尾部(除非被显式移除)。 */
|
|
250
|
-
export declare function applyConfiguredSidePanelPanels(configured: string | undefined): void;
|
|
251
|
-
/**
|
|
252
|
-
* /settings 编辑那一跳:先记下用户删掉的已注册 id,再走并集。boot settings **不得**走这里——
|
|
253
|
-
* 那时 CSV 缺席的已注册 id 只说明它注册得晚,不是用户移除。
|
|
254
|
-
*/
|
|
255
|
-
export declare function applySidePanelPanelsFromSettings(configured: string | undefined): void;
|
|
256
270
|
export declare function getHostPanelRuntime(runtime: TuiPanelRuntime | undefined): TuiPanelHost | undefined;
|
|
257
271
|
export default TuiPanelRuntime;
|
|
258
272
|
//# sourceMappingURL=panels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panels.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/panels.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAetD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAS3D,2DAA2D;AAC3D,eAAO,MAAM,qBAAqB,IAAI,CAAA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AC,GAAG,SAAS;IA4KtF,+BAA+B;IAC/B,IAAI,IAAI,SAAS,eAAe,EAAE;IAclC;;;;OAIG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAyBzB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAa1B,6BAA6B;IAC7B,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,KAAK,EAAE,kBAAkB,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,OAAO;IA0BvF;6EACyE;IACzE,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,GAAG,MAAM,IAAI;CAoBhE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAOlG;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -28,7 +28,7 @@ import { adapterRuntimeFor } from '../adapter/kernel/runtime-context.js';
|
|
|
28
28
|
import { panelStore } from '../components/sidePanel/PanelStore.js';
|
|
29
29
|
import { makePluginPanelComponent } from '../components/sidePanel/pluginPanelAdapter.js';
|
|
30
30
|
import { panelBridgeRequests } from '../components/sidePanel/panelBridge.js';
|
|
31
|
-
import {
|
|
31
|
+
import { isTemporarySidePanelId, setTemporarySidePanelHidden } from '../tuiDisplayPrefs.js';
|
|
32
32
|
import { stringWidth } from '../ink/stringWidth.js';
|
|
33
33
|
import { countPanelsOwnedBy, countPluginPanels, deletePanelOwnerRecord, getPanelOwnerRecord, setPanelOwnerRecord, } from './panel-runtime-registry.js';
|
|
34
34
|
/** 插件 Panel API 版本(§18.2):descriptor.apiVersion 必须精确匹配。 */
|
|
@@ -53,8 +53,7 @@ function panelStateFor(runtime) {
|
|
|
53
53
|
throw new Error('tuiPanels host state is unavailable');
|
|
54
54
|
return state;
|
|
55
55
|
}
|
|
56
|
-
/**
|
|
57
|
-
* 按 activation fiber 发号。 */
|
|
56
|
+
/** Anonymous activation ids are session-only, never persistent identities. */
|
|
58
57
|
const fallbackPluginIds = new WeakMap();
|
|
59
58
|
let fallbackSeq = 0;
|
|
60
59
|
function pluginIdFor(caller, owner) {
|
|
@@ -65,7 +64,7 @@ function pluginIdFor(caller, owner) {
|
|
|
65
64
|
let fallback = fallbackPluginIds.get(owner);
|
|
66
65
|
if (fallback === undefined) {
|
|
67
66
|
fallbackSeq += 1;
|
|
68
|
-
fallback = 'act' + String(fallbackSeq);
|
|
67
|
+
fallback = 'session:act' + String(fallbackSeq);
|
|
69
68
|
fallbackPluginIds.set(owner, fallback);
|
|
70
69
|
}
|
|
71
70
|
return fallback;
|
|
@@ -246,8 +245,8 @@ export class TuiPanelRuntime extends Service {
|
|
|
246
245
|
const ownerTag = { pluginId, activation: owner };
|
|
247
246
|
const unregister = panelStore.register(definition, ownerTag);
|
|
248
247
|
setPanelOwnerRecord(finalId, { caller, owner, pluginId, lastOpenAt: 0 });
|
|
249
|
-
//
|
|
250
|
-
|
|
248
|
+
// 注册只动注册表:启用集合由 `sidePanel.panels` 的值派生
|
|
249
|
+
// (`*` = 全部已注册面板),注册路径绝不改写设置或 live store。
|
|
251
250
|
let disposed = false;
|
|
252
251
|
let ownerCleanup;
|
|
253
252
|
const dispose = () => {
|
|
@@ -255,10 +254,14 @@ export class TuiPanelRuntime extends Service {
|
|
|
255
254
|
return;
|
|
256
255
|
disposed = true;
|
|
257
256
|
// 先撤 store(unregistered 事件还需 owner record 做订阅过滤),再清
|
|
258
|
-
// owner
|
|
257
|
+
// owner 数据。
|
|
259
258
|
unregister();
|
|
260
259
|
deletePanelOwnerRecord(finalId);
|
|
261
|
-
|
|
260
|
+
// 临时面板的「本次运行隐藏」随这一次注册一起结束:同一个 activation
|
|
261
|
+
// 再次注册拿到的是同一个 session:actN:x,重新注册是一次新的贡献
|
|
262
|
+
// (与旧机制在注册时清掉显式移除同义),不能让它一出生就被藏住。
|
|
263
|
+
if (isTemporarySidePanelId(finalId))
|
|
264
|
+
setTemporarySidePanelHidden(finalId, false);
|
|
262
265
|
caller.get('tuiEffectLedger')?.record({ operation: 'release', resource: { kind: 'panel', id: finalId }, result: 'applied' }, identity);
|
|
263
266
|
const cleanup = ownerCleanup;
|
|
264
267
|
ownerCleanup = undefined;
|
|
@@ -385,54 +388,6 @@ export class TuiPanelRuntime extends Service {
|
|
|
385
388
|
return dispose;
|
|
386
389
|
}
|
|
387
390
|
}
|
|
388
|
-
// ── 启用列表接线(tuiDisplayPrefs 的 panels CSV;无环的 module store)──
|
|
389
|
-
/** 本进程内由插件注册、尚未撤下的面板 id:配置应用时并回启用 CSV,免得
|
|
390
|
-
* 先于 dsh-tui 行注册的面板被配置覆盖挤掉。 */
|
|
391
|
-
const registeredPanelIds = new Set();
|
|
392
|
-
/** 用户在 /settings 显式移除的已注册面板 id(Session 级):配置 CSV 分辨不出
|
|
393
|
-
* 「用户移除了它」与「文档还不知道它」,没有这份记录并集会把它一次次并回。 */
|
|
394
|
-
const removedPanelIds = new Set();
|
|
395
|
-
/** 注册成功后把最终 id 追加进侧栏启用 CSV(已存在则不动)——注册即
|
|
396
|
-
* 可见:PanelBar 出胶囊、open()/1-9/z 生效;/panel 与 /settings 仍可移除。
|
|
397
|
-
* 重新注册是一次新的贡献:上一轮的显式移除不再对它生效。 */
|
|
398
|
-
function enablePanelIdInStore(id) {
|
|
399
|
-
registeredPanelIds.add(id);
|
|
400
|
-
removedPanelIds.delete(id);
|
|
401
|
-
const ids = [...parseSidePanelIds(getSidePanelPanels())];
|
|
402
|
-
if (!ids.includes(id))
|
|
403
|
-
ids.push(id);
|
|
404
|
-
applySidePanelPanels(ids.join(','));
|
|
405
|
-
}
|
|
406
|
-
/** 撤下时把最终 id 从启用 CSV 摘掉(PanelHost 对缺失的 active 自动回
|
|
407
|
-
* 退到第一个已启用 Panel),并从注册集合里移除,后续配置应用不再并回。 */
|
|
408
|
-
function disablePanelIdInStore(id) {
|
|
409
|
-
registeredPanelIds.delete(id);
|
|
410
|
-
const ids = parseSidePanelIds(getSidePanelPanels()).filter(candidate => candidate !== id);
|
|
411
|
-
applySidePanelPanels(ids.join(','));
|
|
412
|
-
}
|
|
413
|
-
/** 应用 `sidePanel.panels` 配置,已注册的面板 id 并回尾部(除非被显式移除)。 */
|
|
414
|
-
export function applyConfiguredSidePanelPanels(configured) {
|
|
415
|
-
const ids = [...parseSidePanelIds(configured ?? getSidePanelPanels())];
|
|
416
|
-
for (const id of registeredPanelIds) {
|
|
417
|
-
if (removedPanelIds.has(id) || ids.includes(id))
|
|
418
|
-
continue;
|
|
419
|
-
ids.push(id);
|
|
420
|
-
}
|
|
421
|
-
applySidePanelPanels(ids.join(','));
|
|
422
|
-
}
|
|
423
|
-
/**
|
|
424
|
-
* /settings 编辑那一跳:先记下用户删掉的已注册 id,再走并集。boot settings **不得**走这里——
|
|
425
|
-
* 那时 CSV 缺席的已注册 id 只说明它注册得晚,不是用户移除。
|
|
426
|
-
*/
|
|
427
|
-
export function applySidePanelPanelsFromSettings(configured) {
|
|
428
|
-
if (configured !== undefined) {
|
|
429
|
-
const ids = new Set(parseSidePanelIds(configured));
|
|
430
|
-
for (const id of registeredPanelIds)
|
|
431
|
-
if (!ids.has(id))
|
|
432
|
-
removedPanelIds.add(id);
|
|
433
|
-
}
|
|
434
|
-
applyConfiguredSidePanelPanels(configured);
|
|
435
|
-
}
|
|
436
391
|
export function getHostPanelRuntime(runtime) {
|
|
437
392
|
if (runtime === undefined)
|
|
438
393
|
return undefined;
|
|
@@ -3,9 +3,13 @@ import type { Context } from '@deepseek-ai/cordis';
|
|
|
3
3
|
import { Config } from './index.js';
|
|
4
4
|
import { type RuntimeConfig } from './compat/settings.js';
|
|
5
5
|
import { type CrashDetail } from '../utils/crashDetail.js';
|
|
6
|
+
import { type PluginManagerView } from './plugin-manager.js';
|
|
7
|
+
import { createTerminalNotifier, type NotificationMethod, type TaskNotifications } from '../ink/terminal-notification.js';
|
|
8
|
+
import type { WindowsToastInput, WindowsToastResult } from '../ink/terminal-notification-windows.js';
|
|
6
9
|
import { initialPromptFromCmdlineArgs } from './startup-args.js';
|
|
7
10
|
import { type KernelBackendId } from '../kernelPrefs.js';
|
|
8
11
|
import { render } from '../ui.js';
|
|
12
|
+
import { type ShutdownInput } from '../ink/shutdown-input.js';
|
|
9
13
|
import type { EntrySlot } from './entry-slot.js';
|
|
10
14
|
import { type ProcessExitSeam } from './process-exit.js';
|
|
11
15
|
export { initialPromptFromCmdlineArgs };
|
|
@@ -65,6 +69,81 @@ export interface RuntimeApplyOptions {
|
|
|
65
69
|
/** Filled with this runtime's exit funnel once mounted, cleared on teardown. */
|
|
66
70
|
readonly exitSeam?: ProcessExitSeam;
|
|
67
71
|
}
|
|
72
|
+
/** Where a Windows task-completion announcement delivers, and where it falls back to. */
|
|
73
|
+
export interface TaskCompletionDelivery {
|
|
74
|
+
/** Live inventory from the running profile; installed packages alone do not own events. */
|
|
75
|
+
pluginManager?: Pick<PluginManagerView, 'listPlugins'>;
|
|
76
|
+
/** Live owner/settings permission for pending native dispatch and fallback. */
|
|
77
|
+
canDispatch?: () => boolean;
|
|
78
|
+
/** Hand the completion to the native toast transport (D8 keeps the dedup inside it). */
|
|
79
|
+
toast(input: WindowsToastInput): Promise<WindowsToastResult>;
|
|
80
|
+
/** The terminal bell, used when the native transport is unavailable. */
|
|
81
|
+
terminal(title: string, message: string): void;
|
|
82
|
+
}
|
|
83
|
+
/** The two live task-notification settings both delivery paths read. */
|
|
84
|
+
export interface TaskNotificationSettings {
|
|
85
|
+
/** When a completion is announced at all: `off` suppresses it entirely. */
|
|
86
|
+
condition: TaskNotifications;
|
|
87
|
+
/** How it is delivered: the native toast here, a terminal sequence or the bell there. */
|
|
88
|
+
method: NotificationMethod;
|
|
89
|
+
}
|
|
90
|
+
/** The terminal notifier the host configures, as `createTerminalNotifier` returns it. */
|
|
91
|
+
export type TerminalNotifier = ReturnType<typeof createTerminalNotifier>;
|
|
92
|
+
/** The live task-notification settings and their one writer. */
|
|
93
|
+
export interface TaskNotificationSettingsHandle {
|
|
94
|
+
/** The current values; the toast branch and the terminal fallback read these. */
|
|
95
|
+
readonly settings: TaskNotificationSettings;
|
|
96
|
+
/**
|
|
97
|
+
* Adopt a new condition/method: the terminal notifier and the toast branch
|
|
98
|
+
* both read these, so one writer keeps them in step.
|
|
99
|
+
* @param condition - The new condition, or undefined for the default.
|
|
100
|
+
* @param method - The new method, or undefined for the default.
|
|
101
|
+
*/
|
|
102
|
+
configure(condition: TaskNotifications | undefined, method: NotificationMethod | undefined): void;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Create the live task-notification settings around a notifier.
|
|
106
|
+
*
|
|
107
|
+
* The notifier holds the values for the terminal path, and the Windows branch
|
|
108
|
+
* needs the same two before it can decide whether to spawn anything. One writer
|
|
109
|
+
* keeps them in step - `applyDisplay` is the second caller, for a live /settings
|
|
110
|
+
* edit.
|
|
111
|
+
* @param notifier - The terminal notifier to configure.
|
|
112
|
+
* @param initial - The values this launch starts with.
|
|
113
|
+
* @returns The settings and the single function that changes them.
|
|
114
|
+
*/
|
|
115
|
+
export declare function createTaskNotificationSettings(notifier: TerminalNotifier, initial: TaskNotificationSettings): TaskNotificationSettingsHandle;
|
|
116
|
+
/**
|
|
117
|
+
* Ring the terminal for a completion the host's gate already approved.
|
|
118
|
+
*
|
|
119
|
+
* The gate asks whether the terminal is focused; this port runs after the toast's
|
|
120
|
+
* await, which is up to 30 s of PowerShell. Asking the focus question a second
|
|
121
|
+
* time here would drop the bell for a user who came back to the terminal in that
|
|
122
|
+
* window - while the log had already reported it rung (AC-5). The decision
|
|
123
|
+
* travels in instead. `notify()` is synchronous, so the override covers exactly
|
|
124
|
+
* this call.
|
|
125
|
+
* @param notifier - The terminal notifier the host configured.
|
|
126
|
+
* @param settings - The live settings the decision was taken from.
|
|
127
|
+
* @param title - The localized title.
|
|
128
|
+
* @param message - The single-line summary; empty rings for the title alone.
|
|
129
|
+
*/
|
|
130
|
+
export declare function ringTaskCompletion(notifier: TerminalNotifier, settings: TaskNotificationSettings, title: string, message: string): void;
|
|
131
|
+
/**
|
|
132
|
+
* Show one task-completion toast and answer for what it did.
|
|
133
|
+
*
|
|
134
|
+
* Exactly one answer reaches the terminal path: `unavailable` rings the bell
|
|
135
|
+
* (AC-5), because the alternative is a notification the user never learns
|
|
136
|
+
* about. `shown` is already delivered and `yielded` belongs to the external
|
|
137
|
+
* notifier (D8/AC-6) — ringing after either would remind the user twice.
|
|
138
|
+
*
|
|
139
|
+
* The transport is a parameter so the regression can drive all three answers
|
|
140
|
+
* without a toast, a registry write or a child process.
|
|
141
|
+
* @param title - The localized title.
|
|
142
|
+
* @param message - The single-line summary; empty shows the title alone.
|
|
143
|
+
* @param backendId - The session that completed; a DSH plugin only covers DSH events.
|
|
144
|
+
* @param delivery - The toast port, and the terminal path to fall back to.
|
|
145
|
+
*/
|
|
146
|
+
export declare function deliverTaskCompletionOnWindows(title: string, message: string, backendId: string, delivery: TaskCompletionDelivery): Promise<void>;
|
|
68
147
|
export declare function apply(ctx: Context, runtimeConfig: RuntimeConfig<Config>, configOwner?: Context, runtimeOptions?: RuntimeApplyOptions): Promise<void>;
|
|
69
148
|
/**
|
|
70
149
|
* Distinguish a user-driven exit from a cordis context teardown (issue #12).
|
|
@@ -174,6 +253,8 @@ export declare function isExitResumable(deps: {
|
|
|
174
253
|
*/
|
|
175
254
|
export declare function finishExit(ctx: Context, instance: Awaited<ReturnType<typeof render>> | undefined, fullscreen: boolean, notice: string | undefined, stderrNotice: string | undefined, done: () => void, options?: {
|
|
176
255
|
keepAltScreen?: boolean;
|
|
256
|
+
/** Explicit renderer lease for legacy wrappers that replace unmount(). */
|
|
257
|
+
shutdownInput?: ShutdownInput;
|
|
177
258
|
}): Promise<void>;
|
|
178
259
|
/** Deferred runtime failures must restore the terminal and fail the process. */
|
|
179
260
|
export declare function handleStartupError(ctx: Context, error: unknown): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/plugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAA;AAGhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAA+D,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAsBtH,OAAO,EAAmE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC3H,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE7E,OAAO,EAAE,sBAAsB,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACzH,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAuBpG,OAAO,EAAiB,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAI/E,OAAO,EAAsM,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAsC5P,OAAO,EAAE,MAAM,EAAkC,MAAM,UAAU,CAAA;AAMjE,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAO/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAA8E,KAAK,eAAe,EAA0B,MAAM,mBAAmB,CAAA;AAmC5J,OAAO,EAAE,4BAA4B,EAAE,CAAA;AAEvC;;;;;GAKG;AACH;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE;IAAE,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAEnG;AA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