@deepseek-harness-tui/dsh-tui 0.16.1 → 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 +213 -34
- 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 +7 -5
- package/guide/dsh-tui-guide/configuration.md +7 -5
- package/guide/dsh-tui-guide/getting-started.en.md +33 -3
- package/guide/dsh-tui-guide/getting-started.md +23 -2
- package/guide/dsh-tui-guide/interaction.en.md +50 -17
- package/guide/dsh-tui-guide/interaction.md +35 -13
- package/guide/dsh-tui-guide/plugins.en.md +63 -11
- package/guide/dsh-tui-guide/plugins.md +41 -7
- package/guide/dsh-tui-guide/user-guide.en.md +55 -34
- package/guide/dsh-tui-guide/user-guide.md +45 -28
- package/lib/settings.json +85 -42
- 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 +2 -1
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +4 -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 +22 -2
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +11 -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/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/capabilities.d.ts +2 -0
- package/lib/types/agent/capabilities.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +15 -1
- 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 +14 -5
- 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 +73 -6
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +165 -17
- 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 +20 -14
- package/lib/types/components/PluginGrantList.d.ts +45 -0
- package/lib/types/components/PluginGrantList.d.ts.map +1 -0
- package/lib/types/components/PluginGrantList.js +126 -0
- package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
- package/lib/types/components/PluginInstallPane.js +35 -6
- package/lib/types/components/PluginManagePane.d.ts.map +1 -1
- package/lib/types/components/PluginManagePane.js +65 -8
- package/lib/types/components/PromptInput.d.ts +13 -5
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +190 -108
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +232 -22
- 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 +3 -1
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +17 -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 +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +24 -11
- 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/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/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 +36 -18
- 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/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 +39 -7
- 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/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 +18 -4
- package/lib/types/dsh-adapter/backend-admission.d.ts +3 -3
- 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/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 +11 -1
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +121 -113
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-mentions.js +38 -17
- 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/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 +10 -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 +48 -3
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +5 -2
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +7 -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 +2 -2
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +34 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +5 -2
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +31 -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/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/paths.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/paths.js +11 -9
- 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-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-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 +7 -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 +56 -36
- 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/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 +7 -5
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +10 -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/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 +29 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -0
- package/lib/types/dsh-adapter/experimental-bundles.js +15 -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 +8 -4
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +17 -12
- package/lib/types/dsh-adapter/panels.d.ts +28 -8
- 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-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 +81 -0
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +378 -84
- 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 +99 -31
- package/lib/types/dsh-adapter/presets.d.ts +19 -6
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +69 -12
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +11 -5
- package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
- package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
- package/lib/types/dsh-adapter/row-attachment.js +29 -0
- package/lib/types/dsh-adapter/session-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/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/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/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 +543 -73
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +265 -46
- 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/onboardingDraft.d.ts +143 -0
- package/lib/types/onboardingDraft.d.ts.map +1 -0
- package/lib/types/onboardingDraft.js +71 -0
- 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 +394 -141
- 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/Onboarding.d.ts +22 -3
- package/lib/types/screens/Onboarding.d.ts.map +1 -1
- package/lib/types/screens/Onboarding.js +606 -36
- package/lib/types/screens/SessionSupervisor.d.ts.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 +40 -15
- 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/utils/paths.d.ts +15 -0
- package/lib/types/utils/paths.d.ts.map +1 -1
- package/lib/types/utils/paths.js +25 -0
- package/lib/types/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 +130 -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,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 }),
|
|
@@ -201,17 +203,20 @@ export async function apply(ctx, config) {
|
|
|
201
203
|
/** The row under the entry's screen: the DSH side in its own runtime fiber
|
|
202
204
|
* once the Loader settled, never a second render; a recompose stays idle. */
|
|
203
205
|
function attachToEntry(ctx, config) {
|
|
204
|
-
const attach = takeEntryAttach();
|
|
205
|
-
if (attach === undefined) {
|
|
206
|
-
ctx.logger.warn('dsh-tui: the entry\'s screen already holds a DSH session; this dsh-tui row stays idle');
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
206
|
let disposed = false;
|
|
210
207
|
ctx.effect(() => () => { disposed = true; });
|
|
211
208
|
const loader = ctx.get('loader');
|
|
212
209
|
void (loader?.await() ?? ctx.fiber.await()).then(() => {
|
|
213
210
|
if (disposed)
|
|
214
211
|
return;
|
|
212
|
+
// Taken only now: a row that unloads before the Loader settled leaves the
|
|
213
|
+
// first attach to the next row. A later row takes over only once the
|
|
214
|
+
// previous one unloaded (#1651).
|
|
215
|
+
const attach = takeEntryAttach() ?? peekEntrySlot()?.reattachDsh?.();
|
|
216
|
+
if (attach === undefined) {
|
|
217
|
+
ctx.logger.warn('dsh-tui: the entry\'s screen already holds a DSH session; this dsh-tui row stays idle');
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
215
220
|
return ctx.plugin({
|
|
216
221
|
name: 'dsh-tui-runtime',
|
|
217
222
|
apply: (runtimeCtx) => attach(runtimeCtx, config, ctx),
|
|
@@ -227,9 +232,9 @@ function attachToEntry(ctx, config) {
|
|
|
227
232
|
// (scripts/verify-public-config-types.mjs compiles a real consumer file against
|
|
228
233
|
// the published declarations), and from here on it may only grow — removing any
|
|
229
234
|
// 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).
|
|
235
|
+
// picker. Those stay the host's; an installed bundle's declaration reaches them
|
|
236
|
+
// through the boot-time assembly (`backend-assembly.ts`, D-1) on top of the W-2
|
|
237
|
+
// admission chain (see docs/plugins.md).
|
|
233
238
|
export { BACKEND, BACKEND_CAPABILITY_NAMES, BACKEND_RESERVED_IDS, validateBackendSpec, } from '../adapter/spec/tui-contributions.js';
|
|
234
239
|
export { backendAdmission } from './backend-admission.js';
|
|
235
240
|
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,10 +79,20 @@ 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';
|
|
68
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* v2.1 键盘契约的插件视图:preventDefault() = 阻止宿主回退键。
|
|
91
|
+
*
|
|
92
|
+
* 分栏渲染时 keymap 可重映射的 `paste` 组合(默认 Ctrl+V / Alt+V,macOS 上
|
|
93
|
+
* 还接受 Cmd+V)会先投递给活动面板;只看 `input` 字符的字母快捷键必须先
|
|
94
|
+
* 排除 `ctrl`/`meta`/`super`,否则粘贴键会误触自己的快捷键。
|
|
95
|
+
*/
|
|
69
96
|
export interface TuiPanelKeyEvent {
|
|
70
97
|
readonly input: string;
|
|
71
98
|
readonly key: import('../components/sidePanel/types.js').SidePanelKeyFlags;
|
|
@@ -246,13 +273,6 @@ export declare class TuiPanelRuntime extends Service {
|
|
|
246
273
|
* error/disabled;opened/closed/focused/blurred/sidebar-toggled TODO)。 */
|
|
247
274
|
subscribe(listener: (event: TuiPanelEvent) => void): () => void;
|
|
248
275
|
}
|
|
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
276
|
export declare function getHostPanelRuntime(runtime: TuiPanelRuntime | undefined): TuiPanelHost | undefined;
|
|
257
277
|
export default TuiPanelRuntime;
|
|
258
278
|
//# 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,OA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AiCpC;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,OAAO;gBAC9B,GAAG,EAAE,OAAO;IA+CxB;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,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;
|
|
@@ -63,6 +63,34 @@ export declare function declaredBackendsOf(record: unknown): DeclaredBackends;
|
|
|
63
63
|
* something this host cannot read.
|
|
64
64
|
*/
|
|
65
65
|
export declare function declaredBackendsIn(source: string): DeclaredBackends;
|
|
66
|
+
/**
|
|
67
|
+
* The permissions one package declares, and the component id they belong to.
|
|
68
|
+
*
|
|
69
|
+
* Grants are keyed by the declaration's `id`, never by the bundle/package name:
|
|
70
|
+
* the two are different identities, and a rule written under the package name
|
|
71
|
+
* would never authorize anything. Consumers share this one reader — the
|
|
72
|
+
* install confirmation, the lifecycle flows and the residual-footprint check —
|
|
73
|
+
* so no surface can disagree about which permissions a package declares.
|
|
74
|
+
*/
|
|
75
|
+
export interface DeclaredGrants {
|
|
76
|
+
readonly id: string;
|
|
77
|
+
readonly permissions: readonly {
|
|
78
|
+
readonly name: string;
|
|
79
|
+
readonly scope: string;
|
|
80
|
+
}[];
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The grants one `dsh-plugin.json` record declares, or `undefined` when the
|
|
84
|
+
* record is not a declaration this profile accepts. Parsing and projection are
|
|
85
|
+
* the same pair the admission path and `/plugin check` use (`parseManifest` +
|
|
86
|
+
* `projectManifest`), so "declared" means the same thing everywhere. A record
|
|
87
|
+
* that validates but declares no permissions answers `{ id, permissions: [] }`.
|
|
88
|
+
*/
|
|
89
|
+
export declare function declaredGrantsOf(record: unknown): DeclaredGrants | undefined;
|
|
90
|
+
/** {@link declaredGrantsOf} over a declaration's raw bytes. */
|
|
91
|
+
export declare function declaredGrantsIn(source: string): DeclaredGrants | undefined;
|
|
92
|
+
/** The grants of the package installed in this composition; `undefined` when unreadable. */
|
|
93
|
+
export declare function declaredGrantsAt(ctx: Context, packageName: string): DeclaredGrants | undefined;
|
|
66
94
|
/** This application's own package: the composition, never a plugin of it. */
|
|
67
95
|
export declare const COMPOSITION_PACKAGE = "@deepseek-harness-tui/dsh-tui";
|
|
68
96
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-declaration.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/plugin-declaration.ts"],"names":[],"mappings":"AAk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Sync, readFileSync } from 'node:fs';
|
|
|
17
17
|
import { findPackageJSON } from 'node:module';
|
|
18
18
|
import { dirname, join } from 'node:path';
|
|
19
19
|
import { BACKEND, validateBackendSpec } from '../adapter/spec/tui-contributions.js';
|
|
20
|
-
import { projectManifest } from '../adapter/standard/protocols.js';
|
|
20
|
+
import { parseManifest, projectManifest } from '../adapter/standard/protocols.js';
|
|
21
21
|
/**
|
|
22
22
|
* The package-root `dsh-plugin.json` of `packageName`, or `undefined` when the
|
|
23
23
|
* package is not resolvable from this composition or ships no declaration.
|
|
@@ -149,6 +149,48 @@ export function declaredBackendsIn(source) {
|
|
|
149
149
|
}
|
|
150
150
|
return declaredBackendsOf(parsed);
|
|
151
151
|
}
|
|
152
|
+
/** The projection's answer for one already-validated manifest. */
|
|
153
|
+
function declaredGrantsFrom(manifest) {
|
|
154
|
+
return {
|
|
155
|
+
id: manifest.id,
|
|
156
|
+
permissions: manifest.permissions.map(permission => ({ name: permission.name, scope: permission.scope })),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* The grants one `dsh-plugin.json` record declares, or `undefined` when the
|
|
161
|
+
* record is not a declaration this profile accepts. Parsing and projection are
|
|
162
|
+
* the same pair the admission path and `/plugin check` use (`parseManifest` +
|
|
163
|
+
* `projectManifest`), so "declared" means the same thing everywhere. A record
|
|
164
|
+
* that validates but declares no permissions answers `{ id, permissions: [] }`.
|
|
165
|
+
*/
|
|
166
|
+
export function declaredGrantsOf(record) {
|
|
167
|
+
if (record === null || typeof record !== 'object' || Array.isArray(record))
|
|
168
|
+
return undefined;
|
|
169
|
+
try {
|
|
170
|
+
const manifest = parseManifest(JSON.stringify(record));
|
|
171
|
+
projectManifest(manifest);
|
|
172
|
+
return declaredGrantsFrom(manifest);
|
|
173
|
+
}
|
|
174
|
+
catch {
|
|
175
|
+
return undefined;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
/** {@link declaredGrantsOf} over a declaration's raw bytes. */
|
|
179
|
+
export function declaredGrantsIn(source) {
|
|
180
|
+
try {
|
|
181
|
+
const manifest = parseManifest(source);
|
|
182
|
+
projectManifest(manifest);
|
|
183
|
+
return declaredGrantsFrom(manifest);
|
|
184
|
+
}
|
|
185
|
+
catch {
|
|
186
|
+
return undefined;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
/** The grants of the package installed in this composition; `undefined` when unreadable. */
|
|
190
|
+
export function declaredGrantsAt(ctx, packageName) {
|
|
191
|
+
const declaration = pluginDeclarationOf(ctx, packageName);
|
|
192
|
+
return declaration === undefined ? undefined : declaredGrantsIn(declaration.source);
|
|
193
|
+
}
|
|
152
194
|
/** This application's own package: the composition, never a plugin of it. */
|
|
153
195
|
export const COMPOSITION_PACKAGE = '@deepseek-harness-tui/dsh-tui';
|
|
154
196
|
/**
|
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
*/
|
|
29
29
|
import type { Context } from '@deepseek-ai/cordis';
|
|
30
30
|
import type { ChangeResult, IncompatiblePlugin, InstallSpecKind, PluginInstallRequestId, Registry } from '@deepseek-ai/dsh-plugin-manager/types';
|
|
31
|
-
import { type
|
|
31
|
+
import { type GrantStore } from '../adapter/standard/grants.js';
|
|
32
|
+
import { type DeclaredGrants, type PluginInstallNotice } from './plugin-declaration.js';
|
|
33
|
+
import { type GrantPlan } from './grant-file.js';
|
|
32
34
|
import { type FirstPartyFeedLoad, type FirstPartyVerdict } from './plugin-feed.js';
|
|
33
35
|
import { type PluginInstallEvents, type PluginManagerView } from './plugin-manager.js';
|
|
34
36
|
/** How many lines of pnpm's output the failure report keeps. */
|
|
@@ -59,6 +61,21 @@ export type PluginInstallStep = {
|
|
|
59
61
|
readonly trust: FirstPartyVerdict;
|
|
60
62
|
/** Gate 1: what could be read about the package's declarations, before it lands. */
|
|
61
63
|
readonly notice: PluginInstallNotice;
|
|
64
|
+
/**
|
|
65
|
+
* The permissions this install would grant, when the declaration was
|
|
66
|
+
* readable before it landed. `undefined` covers "nothing declared" and
|
|
67
|
+
* "not readable yet" — the pane then shows no list.
|
|
68
|
+
*/
|
|
69
|
+
readonly grants: GrantPlan | undefined;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* A registry package landed with declared permissions that are not granted
|
|
73
|
+
* yet. The declaration only becomes readable once the package is on disk, so
|
|
74
|
+
* this is the point where the person can see the list and grant it.
|
|
75
|
+
*/
|
|
76
|
+
| {
|
|
77
|
+
readonly kind: 'grant';
|
|
78
|
+
readonly plan: GrantPlan;
|
|
62
79
|
}
|
|
63
80
|
/** pnpm was blocked by build scripts this profile has not approved. */
|
|
64
81
|
| {
|
|
@@ -112,6 +129,14 @@ export interface PluginInstallFlowOptions {
|
|
|
112
129
|
readonly profileName?: string | undefined;
|
|
113
130
|
/** The registry asked first. */
|
|
114
131
|
readonly registry?: Registry | undefined;
|
|
132
|
+
/** The live grant store: evaluates what is granted, and which names this host knows. */
|
|
133
|
+
readonly grants?: GrantStore | undefined;
|
|
134
|
+
/** The declaration of a package that is still a directory on this machine, by directory. */
|
|
135
|
+
readonly declaredGrantsOf?: ((directory: string) => DeclaredGrants | undefined) | undefined;
|
|
136
|
+
/** The declaration of a package that just landed, by package/bundle name. */
|
|
137
|
+
readonly installedGrantsOf?: ((packageName: string) => DeclaredGrants | undefined) | undefined;
|
|
138
|
+
/** Test override for the grants file's directory. */
|
|
139
|
+
readonly grantsDataDir?: string | undefined;
|
|
115
140
|
/** Injectable for a regression; a fresh process-unique id otherwise. */
|
|
116
141
|
readonly requestId?: PluginInstallRequestId | undefined;
|
|
117
142
|
}
|
|
@@ -121,6 +146,8 @@ export interface PluginInstallFlow {
|
|
|
121
146
|
begin(): Promise<PluginInstallStep>;
|
|
122
147
|
/** Answer a `confirm` step: proceed. */
|
|
123
148
|
confirm(): Promise<PluginInstallStep>;
|
|
149
|
+
/** Answer a `grant` step: write the declared permissions, then finish. */
|
|
150
|
+
grant(): Promise<PluginInstallStep>;
|
|
124
151
|
/** Answer a `build-blocked` step: allow these scripts and retry. */
|
|
125
152
|
approve(builds: readonly string[]): Promise<PluginInstallStep>;
|
|
126
153
|
/** Answer an `incompatible` step: exempt these exact versions and retry. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-install.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/plugin-install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAElB,eAAe,EACf,sBAAsB,EAEtB,QAAQ,EACT,MAAM,uCAAuC,CAAA;
|
|
1
|
+
{"version":3,"file":"plugin-install.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/plugin-install.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAElB,eAAe,EACf,sBAAsB,EAEtB,QAAQ,EACT,MAAM,uCAAuC,CAAA;AAG9C,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAI/E,OAAO,EAAgF,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AACrK,OAAO,EAAoE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAElH,OAAO,EAAE,KAAK,kBAAkB,EAAqB,KAAK,iBAAiB,EAAsB,MAAM,kBAAkB,CAAA;AACzH,OAAO,EAA6D,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGjJ,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,IAAI,CAAA;AAIjC,uDAAuD;AACvD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG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