@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
|
@@ -34,14 +34,20 @@
|
|
|
34
34
|
* either way, so closing the pane does not stop it.
|
|
35
35
|
*/
|
|
36
36
|
import { existsSync } from 'node:fs';
|
|
37
|
+
import { join } from 'node:path';
|
|
38
|
+
import { readGrantStore } from '../adapter/standard/grants.js';
|
|
39
|
+
import { adapterRuntimeFor } from '../adapter/kernel/runtime-context.js';
|
|
37
40
|
import { t } from '../i18n.js';
|
|
38
41
|
import { resolveDshProfileName } from '../update.js';
|
|
39
42
|
import { backendDataDir, DATA_DIR } from '../utils/paths.js';
|
|
40
|
-
import {
|
|
43
|
+
import { applyGrantMutation, grantFailureText, grantsFilePath, planGrants } from './grant-file.js';
|
|
44
|
+
import { COMPOSITION_PACKAGE, declaredBackendsOf, declaredGrantsOf, pluginDeclarationOf } from './plugin-declaration.js';
|
|
45
|
+
import { getHostGrantStore } from './host-grants.js';
|
|
41
46
|
import { failureReasonOf } from './plugin-install.js';
|
|
42
47
|
import { HOST_BUNDLE, pluginGuardVerdict, } from './plugin-guard.js';
|
|
43
48
|
import { pluginManagerOf } from './plugin-manager.js';
|
|
44
|
-
import { cell, parsePluginArgs,
|
|
49
|
+
import { cell, parsePluginArgs, pluginFootprintPaths, pluginFootprintSourcesOf } from './plugins-info.js';
|
|
50
|
+
import { storageFileName } from './plugin-storage.js';
|
|
45
51
|
import { TEAM_BUNDLE } from './team-roster.js';
|
|
46
52
|
const NO_TEAM_MEMBERS = { active: 0, unseen: 0 };
|
|
47
53
|
/**
|
|
@@ -144,6 +150,10 @@ export function createPluginManageFlow(options) {
|
|
|
144
150
|
let target;
|
|
145
151
|
/** What the report calls it: its own name, never the argument text. */
|
|
146
152
|
let label = '';
|
|
153
|
+
/** The bundle's declaration, captured while the package is still installed. */
|
|
154
|
+
let declaration;
|
|
155
|
+
/** The plan for that declaration's permissions; `undefined` when unreadable. */
|
|
156
|
+
let grantPlan;
|
|
147
157
|
/** Whether the session that asked is still bound; false drops every write. */
|
|
148
158
|
const live = () => options.binding() === bindingAtStart;
|
|
149
159
|
const emit = (lines) => {
|
|
@@ -187,6 +197,13 @@ export function createPluginManageFlow(options) {
|
|
|
187
197
|
if (bundle !== undefined) {
|
|
188
198
|
target = bundleTarget(options.action, bundle);
|
|
189
199
|
label = cell(bundle.name);
|
|
200
|
+
// Read once, before the write, for every bundle action: a removal can no
|
|
201
|
+
// longer read the declaration afterwards, and enable/disable need the
|
|
202
|
+
// same id and permissions.
|
|
203
|
+
declaration = captureDeclaration(bundle.name);
|
|
204
|
+
grantPlan = declaration?.kind === 'declared' && declaration.grants !== undefined && options.grants !== undefined
|
|
205
|
+
? planGrants(options.grants, declaration.grants)
|
|
206
|
+
: undefined;
|
|
190
207
|
return await guardThenDecide(bundleGuardTarget(bundle), () => ask(hostRowIdsOf(bundles)));
|
|
191
208
|
}
|
|
192
209
|
let plugin = plugins.find(candidate => candidate.entryId === wanted)
|
|
@@ -242,16 +259,120 @@ export function createPluginManageFlow(options) {
|
|
|
242
259
|
const resolved = target;
|
|
243
260
|
if (resolved === undefined)
|
|
244
261
|
return { kind: 'done' };
|
|
262
|
+
const grants = resolved.kind === 'bundle' ? grantPlan : undefined;
|
|
245
263
|
if (options.action === 'remove')
|
|
246
|
-
return { kind: 'confirm', target: resolved, question: { kind: 'remove' } };
|
|
264
|
+
return { kind: 'confirm', target: resolved, question: { kind: 'remove' }, grants };
|
|
247
265
|
if (options.action === 'disable') {
|
|
248
266
|
const hostRow = resolved.kind === 'row' && resolved.patchId !== undefined && hostRowIds.has(resolved.patchId);
|
|
249
267
|
if (hostRow)
|
|
250
|
-
return { kind: 'confirm', target: resolved, question: { kind: 'host-row' } };
|
|
268
|
+
return { kind: 'confirm', target: resolved, question: { kind: 'host-row' }, grants };
|
|
251
269
|
const { active, unseen } = resolved.kind === 'bundle' && resolved.name === TEAM_BUNDLE ? options.teamActiveMembers?.() ?? NO_TEAM_MEMBERS : NO_TEAM_MEMBERS;
|
|
252
|
-
return active + unseen > 0 ? { kind: 'confirm', target: resolved, question: { kind: 'team-active', members: active, unseen } } : run();
|
|
270
|
+
return active + unseen > 0 ? { kind: 'confirm', target: resolved, question: { kind: 'team-active', members: active, unseen }, grants } : run();
|
|
253
271
|
}
|
|
254
|
-
return { kind: 'confirm', target: resolved, question: { kind: 'trust' } };
|
|
272
|
+
return { kind: 'confirm', target: resolved, question: { kind: 'trust' }, grants };
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Read one bundle's declaration before the write. A resolver that throws is
|
|
276
|
+
* treated exactly like an unreadable declaration: the action goes on, and
|
|
277
|
+
* this flow reports that it cannot name the component rather than guessing
|
|
278
|
+
* an id.
|
|
279
|
+
*/
|
|
280
|
+
function captureDeclaration(name) {
|
|
281
|
+
try {
|
|
282
|
+
return options.declarationOf?.(name);
|
|
283
|
+
}
|
|
284
|
+
catch {
|
|
285
|
+
return { kind: 'unreadable' };
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
/** The declared permission names a revoke acts on, de-duplicated, in order. */
|
|
289
|
+
function declaredNames(declared) {
|
|
290
|
+
return [...new Set(declared.permissions.map(permission => permission.name))];
|
|
291
|
+
}
|
|
292
|
+
/** What every grant write here hands the file layer. */
|
|
293
|
+
function grantWriteOptions() {
|
|
294
|
+
return {
|
|
295
|
+
dataDir: options.grantsDataDir,
|
|
296
|
+
knownPermissions: options.grants?.knownPermissions(),
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
/** Grant a bundle's declared permissions before its code is loaded (enable). */
|
|
300
|
+
async function ensureDeclared(plan) {
|
|
301
|
+
if (options.grants === undefined)
|
|
302
|
+
return undefined;
|
|
303
|
+
const write = await applyGrantMutation({ kind: 'ensure', id: plan.id, permissions: plan.entries }, grantWriteOptions());
|
|
304
|
+
if (!write.ok) {
|
|
305
|
+
emit([t('plugins-grant-write-refused', {
|
|
306
|
+
file: cell(grantsFilePath(options.grantsDataDir)),
|
|
307
|
+
reason: grantFailureText(write),
|
|
308
|
+
})]);
|
|
309
|
+
return undefined;
|
|
310
|
+
}
|
|
311
|
+
if (plan.unknown.length > 0) {
|
|
312
|
+
emit([t('plugins-grant-unknown-skipped', { names: cell(plan.unknown.join(', ')) })]);
|
|
313
|
+
}
|
|
314
|
+
if (write.changed) {
|
|
315
|
+
emit([t('plugins-manage-grant-granted', {
|
|
316
|
+
count: String(plan.entries.length),
|
|
317
|
+
id: cell(plan.id),
|
|
318
|
+
})]);
|
|
319
|
+
}
|
|
320
|
+
const store = options.grants;
|
|
321
|
+
if (store !== undefined) {
|
|
322
|
+
const unapplied = plan.entries.filter(entry => !store.allows({ componentId: plan.id }, entry.name, entry.scope));
|
|
323
|
+
if (unapplied.length > 0) {
|
|
324
|
+
emit([t('plugins-grant-unapplied', {
|
|
325
|
+
scopes: cell(unapplied.map(entry => `${entry.name}@${entry.scope}`).join(', ')),
|
|
326
|
+
})]);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return write;
|
|
330
|
+
}
|
|
331
|
+
/** Revoke the declared permission names after the code is unloaded (disable). */
|
|
332
|
+
async function revokeDeclared(declared) {
|
|
333
|
+
if (options.grants === undefined)
|
|
334
|
+
return;
|
|
335
|
+
const names = declaredNames(declared);
|
|
336
|
+
if (names.length === 0)
|
|
337
|
+
return;
|
|
338
|
+
const write = await applyGrantMutation({ kind: 'revoke', id: declared.id, names }, grantWriteOptions());
|
|
339
|
+
if (!write.ok) {
|
|
340
|
+
emit([t('plugins-manage-grant-revoke-failed', {
|
|
341
|
+
reason: grantFailureText(write),
|
|
342
|
+
id: cell(declared.id),
|
|
343
|
+
file: cell(grantsFilePath(options.grantsDataDir)),
|
|
344
|
+
})]);
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
if (write.changed) {
|
|
348
|
+
emit([t('plugins-manage-grant-revoked', { count: String(names.length), id: cell(declared.id) })]);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
/** Delete the component's grant entries after its package left (remove). */
|
|
352
|
+
async function forgetDeclared(declared) {
|
|
353
|
+
if (options.grants === undefined)
|
|
354
|
+
return;
|
|
355
|
+
const write = await applyGrantMutation({ kind: 'forget', id: declared.id }, grantWriteOptions());
|
|
356
|
+
if (!write.ok) {
|
|
357
|
+
// The one path that leaves an inheritance risk behind: a package reusing
|
|
358
|
+
// this component id would inherit these rules. Say so, with the id and
|
|
359
|
+
// the file, instead of a quiet warning.
|
|
360
|
+
emit([t('plugins-manage-grant-forget-failed', {
|
|
361
|
+
reason: grantFailureText(write),
|
|
362
|
+
id: cell(declared.id),
|
|
363
|
+
file: cell(grantsFilePath(options.grantsDataDir)),
|
|
364
|
+
})]);
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
if (write.changed)
|
|
368
|
+
emit([t('plugins-manage-grant-forgotten', { id: cell(declared.id) })]);
|
|
369
|
+
}
|
|
370
|
+
/** An enable whose write failed: put the grant back, or say why not. */
|
|
371
|
+
async function rollbackGrant(write) {
|
|
372
|
+
if (write === undefined || !write.changed)
|
|
373
|
+
return;
|
|
374
|
+
const restored = await write.undo();
|
|
375
|
+
emit([t(restored ? 'plugins-grant-rolled-back' : 'plugins-grant-rollback-failed')]);
|
|
255
376
|
}
|
|
256
377
|
/** Write through the service, then turn its result into the next step. */
|
|
257
378
|
async function run() {
|
|
@@ -263,16 +384,19 @@ export function createPluginManageFlow(options) {
|
|
|
263
384
|
const refused = refuseWhileBusy();
|
|
264
385
|
if (refused !== undefined)
|
|
265
386
|
return refused;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
catch {
|
|
273
|
-
// An unreadable declaration leaves the removal's residue unjudged.
|
|
274
|
-
}
|
|
387
|
+
// The declaration was captured in `decide()`, before the write: a removal
|
|
388
|
+
// can no longer read the package afterwards. A declaration that exists but
|
|
389
|
+
// cannot be read is reported here, with no id guessed.
|
|
390
|
+
if (current.kind === 'bundle' && declaration !== undefined
|
|
391
|
+
&& (declaration.kind === 'unreadable' || declaration.grants === undefined)) {
|
|
392
|
+
emit([t('plugins-manage-grant-unhandled', { target: label })]);
|
|
275
393
|
}
|
|
394
|
+
const declared = current.kind === 'bundle' && declaration?.kind === 'declared' ? declaration.grants : undefined;
|
|
395
|
+
const plan = current.kind === 'bundle' ? grantPlan : undefined;
|
|
396
|
+
// Grant before the write that loads the code; revoke and forget after the
|
|
397
|
+
// write that unloads it (grant lifecycle plan §6.2). A failed enable puts
|
|
398
|
+
// the grant back; the other two act only on a successful write.
|
|
399
|
+
const grantWrite = current.action === 'enable' && plan !== undefined ? await ensureDeclared(plan) : undefined;
|
|
276
400
|
let result;
|
|
277
401
|
try {
|
|
278
402
|
result = await write(current);
|
|
@@ -281,13 +405,24 @@ export function createPluginManageFlow(options) {
|
|
|
281
405
|
// The service folds its failures in-band; only a lock or a disposal error
|
|
282
406
|
// rejects, and that still has to leave a readable line behind.
|
|
283
407
|
emit([t('plugins-manage-failed', { reason: cell(error instanceof Error ? error.message : String(error)) })]);
|
|
408
|
+
if (current.action === 'enable')
|
|
409
|
+
await rollbackGrant(grantWrite);
|
|
284
410
|
return { kind: 'done' };
|
|
285
411
|
}
|
|
286
412
|
// None of these three offers a cancellation; a service that reports one
|
|
287
413
|
// anyway has already been reported by whatever stopped it.
|
|
288
|
-
if (result.application === 'cancelled')
|
|
414
|
+
if (result.application === 'cancelled') {
|
|
415
|
+
if (current.action === 'enable')
|
|
416
|
+
await rollbackGrant(grantWrite);
|
|
289
417
|
return { kind: 'done' };
|
|
418
|
+
}
|
|
290
419
|
if (result.application === 'failed') {
|
|
420
|
+
// The profile's own files decide whether the enable landed: a reload
|
|
421
|
+
// failure after the selection was saved keeps the grant (the next start
|
|
422
|
+
// enables the bundle with its declaration), while a failed save puts it
|
|
423
|
+
// back. `application` alone cannot tell the two apart.
|
|
424
|
+
if (current.action === 'enable' && !result.changed)
|
|
425
|
+
await rollbackGrant(grantWrite);
|
|
291
426
|
const incompatible = result.error?.code === 'incompatible-version' ? result.error.incompatible ?? [] : [];
|
|
292
427
|
emit([
|
|
293
428
|
t('plugins-manage-failed', { reason: failureReasonOf(result) }),
|
|
@@ -301,12 +436,26 @@ export function createPluginManageFlow(options) {
|
|
|
301
436
|
}),
|
|
302
437
|
t('plugins-install-rescue'),
|
|
303
438
|
]);
|
|
439
|
+
if (current.action === 'enable' && result.changed)
|
|
440
|
+
emit([t('plugins-manage-enable-persisted')]);
|
|
304
441
|
return { kind: 'done' };
|
|
305
442
|
}
|
|
443
|
+
// The write landed (or the profile was already in that state): a disable is
|
|
444
|
+
// still "off and revoked", and a removal still forgets the component. The
|
|
445
|
+
// declaration was read before the write, which is the only moment it could
|
|
446
|
+
// be read.
|
|
447
|
+
if (declared !== undefined) {
|
|
448
|
+
if (current.action === 'remove')
|
|
449
|
+
await forgetDeclared(declared);
|
|
450
|
+
else if (current.action === 'disable')
|
|
451
|
+
await revokeDeclared(declared);
|
|
452
|
+
}
|
|
306
453
|
// A disk no-op says nothing about higher-priority overrides or a pending
|
|
307
454
|
// restart. Only an applied no-op is already in the requested state.
|
|
308
455
|
if (!result.changed && result.application === 'applied') {
|
|
309
456
|
emit([t('plugins-manage-unchanged', { target: label })]);
|
|
457
|
+
if (current.kind === 'bundle' && current.action === 'remove')
|
|
458
|
+
reportResidue(current.name, declaration);
|
|
310
459
|
return { kind: 'done' };
|
|
311
460
|
}
|
|
312
461
|
const stateKey = result.application === 'restart-required'
|
|
@@ -317,7 +466,7 @@ export function createPluginManageFlow(options) {
|
|
|
317
466
|
...result.application === 'restart-required' ? [t('plugins-install-restart-hint')] : [],
|
|
318
467
|
]);
|
|
319
468
|
if (current.kind === 'bundle' && current.action === 'remove')
|
|
320
|
-
reportResidue(current.name,
|
|
469
|
+
reportResidue(current.name, declaration);
|
|
321
470
|
return { kind: 'done' };
|
|
322
471
|
}
|
|
323
472
|
/** The service call one action makes, with the id shape the service takes. */
|
|
@@ -332,15 +481,22 @@ export function createPluginManageFlow(options) {
|
|
|
332
481
|
}
|
|
333
482
|
/**
|
|
334
483
|
* What one removal left in this profile. The service rolls the profile's own
|
|
335
|
-
* files back; everything under `~/.dsh-tui` — a backend's data directory,
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
484
|
+
* files back; everything under `~/.dsh-tui` — a backend's data directory, the
|
|
485
|
+
* effect ledger, storage namespaces — is the person's own data and stays.
|
|
486
|
+
* The component's **grant entries** are the one exception: they are deleted
|
|
487
|
+
* with the component, because a later package reusing its id would inherit
|
|
488
|
+
* them (grant lifecycle plan D-3). Reported by source (D-5), once. Silent
|
|
489
|
+
* when the declaration was read and nothing is left.
|
|
341
490
|
*/
|
|
342
|
-
function reportResidue(name,
|
|
491
|
+
function reportResidue(name, declaration) {
|
|
492
|
+
if (declaration === undefined || declaration.kind === 'unreadable') {
|
|
493
|
+
emit([t('plugins-manage-residue-unjudged', { target: cell(name) })]);
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
const watch = declaration.residue;
|
|
343
497
|
if (watch === undefined) {
|
|
498
|
+
// The declaration named no identity this check could look for. The old
|
|
499
|
+
// residue watch answered the same way: not judged, never "clean".
|
|
344
500
|
emit([t('plugins-manage-residue-unjudged', { target: cell(name) })]);
|
|
345
501
|
return;
|
|
346
502
|
}
|
|
@@ -380,11 +536,11 @@ export function createPluginManageFlow(options) {
|
|
|
380
536
|
* through (the screen then runs the read-only report, which is where the CLI
|
|
381
537
|
* route is printed).
|
|
382
538
|
*
|
|
383
|
-
* This is the one place that knows how a
|
|
384
|
-
* composition, and the only place that touches the person's own data.
|
|
385
|
-
*
|
|
386
|
-
*
|
|
387
|
-
*
|
|
539
|
+
* This is the one place that knows how a lifecycle action is wired to the
|
|
540
|
+
* running composition, and the only place that touches the person's own data.
|
|
541
|
+
* The bundle's declaration is read here, **while it is still installed**: its
|
|
542
|
+
* grants and the residue watch both come from a file inside the package, so
|
|
543
|
+
* both are unreadable once the bundle has left.
|
|
388
544
|
*/
|
|
389
545
|
export function createPluginManageEntry(ctx, options = {}) {
|
|
390
546
|
return (args, sink) => {
|
|
@@ -396,6 +552,9 @@ export function createPluginManageEntry(ctx, options = {}) {
|
|
|
396
552
|
const manager = pluginManagerOf(ctx);
|
|
397
553
|
if (manager === undefined)
|
|
398
554
|
return undefined;
|
|
555
|
+
// The same live store the /plugin report and the plugin-host row use.
|
|
556
|
+
const grants = getHostGrantStore(ctx.get('tuiPluginHost'))
|
|
557
|
+
?? readGrantStore(undefined, undefined, adapterRuntimeFor(ctx));
|
|
399
558
|
return createPluginManageFlow({
|
|
400
559
|
manager,
|
|
401
560
|
action: parsed.kind,
|
|
@@ -405,9 +564,8 @@ export function createPluginManageEntry(ctx, options = {}) {
|
|
|
405
564
|
onLines: sink.onLines,
|
|
406
565
|
teamActiveMembers: sink.teamActiveMembers,
|
|
407
566
|
profileName: options.profileName ?? resolveDshProfileName(),
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
residueOf: parsed.kind === 'remove' ? name => residueWatchOf(ctx, name) : undefined,
|
|
567
|
+
grants,
|
|
568
|
+
declarationOf: name => bundleDeclarationOf(ctx, name),
|
|
411
569
|
});
|
|
412
570
|
};
|
|
413
571
|
}
|
|
@@ -426,6 +584,22 @@ export function createPluginManageEntry(ctx, options = {}) {
|
|
|
426
584
|
* is not evidence of a clean removal, only of an unanswerable question.
|
|
427
585
|
*/
|
|
428
586
|
export function residueWatchOf(ctx, name, dataRoot = DATA_DIR) {
|
|
587
|
+
const declaration = bundleDeclarationOf(ctx, name, dataRoot);
|
|
588
|
+
return declaration?.kind === 'declared' ? declaration.residue : undefined;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Read one installed bundle's declaration once, before any lifecycle write.
|
|
592
|
+
*
|
|
593
|
+
* The declaration is the package's own file, so it has to be read while the
|
|
594
|
+
* package is still there: after a removal it is gone, and after an enable or
|
|
595
|
+
* disable the grants half still has to name the component id. The raw parse
|
|
596
|
+
* feeds both answers — the residue watch (which trusts the declaration's own
|
|
597
|
+
* `id`/Backend ids, as before) and the grants reader (which applies the same
|
|
598
|
+
* parse/projection gates every other consumer does). A file that exists but
|
|
599
|
+
* cannot be read is `unreadable`, never "no declaration": the two lead to
|
|
600
|
+
* different reports.
|
|
601
|
+
*/
|
|
602
|
+
export function bundleDeclarationOf(ctx, name, dataRoot = DATA_DIR) {
|
|
429
603
|
const declaration = pluginDeclarationOf(ctx, name);
|
|
430
604
|
if (declaration === undefined)
|
|
431
605
|
return undefined;
|
|
@@ -434,27 +608,42 @@ export function residueWatchOf(ctx, name, dataRoot = DATA_DIR) {
|
|
|
434
608
|
parsed = JSON.parse(declaration.source);
|
|
435
609
|
}
|
|
436
610
|
catch {
|
|
437
|
-
return
|
|
611
|
+
return { kind: 'unreadable' };
|
|
438
612
|
}
|
|
439
|
-
|
|
440
|
-
|
|
613
|
+
if (parsed === null || typeof parsed !== 'object' || Array.isArray(parsed))
|
|
614
|
+
return { kind: 'unreadable' };
|
|
615
|
+
const record = parsed;
|
|
616
|
+
const componentId = typeof record.id === 'string' && record.id !== '' ? record.id : undefined;
|
|
441
617
|
const backendIds = backendIdsIn(record);
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
const
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
618
|
+
const grants = declaredGrantsOf(record);
|
|
619
|
+
const residue = componentId === undefined && backendIds.length === 0
|
|
620
|
+
? undefined
|
|
621
|
+
: () => {
|
|
622
|
+
const left = [];
|
|
623
|
+
for (const backendId of backendIds) {
|
|
624
|
+
const dir = backendDataDir(backendId, dataRoot);
|
|
625
|
+
if (existsSync(dir))
|
|
626
|
+
left.push(dir);
|
|
627
|
+
}
|
|
628
|
+
if (componentId !== undefined) {
|
|
629
|
+
// One source per line (D-5): the grants entry was deleted with the
|
|
630
|
+
// component, so what remains here is the audit ledger and the person's
|
|
631
|
+
// storage namespace, each named by its own path.
|
|
632
|
+
const sources = pluginFootprintSourcesOf(componentId, { dataDir: dataRoot });
|
|
633
|
+
const paths = pluginFootprintPaths({ dataDir: dataRoot });
|
|
634
|
+
const id = cell(componentId);
|
|
635
|
+
if (sources.ledger)
|
|
636
|
+
left.push(t('plugins-manage-residue-ledger', { id, file: cell(paths.ledgerFile) }));
|
|
637
|
+
if (sources.storage) {
|
|
638
|
+
left.push(t('plugins-manage-residue-storage', {
|
|
639
|
+
id,
|
|
640
|
+
file: cell(join(paths.storageDir, `${storageFileName(componentId)}.json`)),
|
|
641
|
+
}));
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
return left;
|
|
645
|
+
};
|
|
646
|
+
return { kind: 'declared', grants, residue };
|
|
458
647
|
}
|
|
459
648
|
/**
|
|
460
649
|
* The backend ids a declaration contributes. Only a `Backend` entry names one,
|
|
@@ -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,KAA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