@deepseek-harness-tui/dsh-tui 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -16
- package/bin/dsh-tui.js +46 -3
- package/cli/adapters/dsh/index.mjs +2 -2
- package/guide/dsh-tui-guide/cli.en.md +1 -1
- package/guide/dsh-tui-guide/cli.md +1 -1
- package/guide/dsh-tui-guide/codex-backend.en.md +2 -2
- package/guide/dsh-tui-guide/codex-backend.md +2 -2
- package/guide/dsh-tui-guide/configuration.en.md +8 -2
- package/guide/dsh-tui-guide/configuration.md +8 -2
- package/guide/dsh-tui-guide/getting-started.en.md +174 -6
- package/guide/dsh-tui-guide/getting-started.md +125 -15
- package/guide/dsh-tui-guide/interaction.en.md +30 -8
- package/guide/dsh-tui-guide/interaction.md +18 -5
- package/guide/dsh-tui-guide/plugins.en.md +28 -7
- package/guide/dsh-tui-guide/plugins.md +18 -5
- package/guide/dsh-tui-guide/user-guide.en.md +32 -17
- package/guide/dsh-tui-guide/user-guide.md +23 -12
- package/lib/settings.json +3 -3
- package/lib/types/adapter/channel/ui-policy.d.ts +1 -0
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +1 -0
- package/lib/types/adapter/ports/channel-ui.d.ts +10 -2
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +31 -5
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.d.ts +60 -0
- package/lib/types/adapter/standard/grants.d.ts.map +1 -1
- package/lib/types/adapter/standard/grants.js +74 -0
- package/lib/types/agent/events.d.ts +16 -3
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/agent/session.d.ts +5 -0
- package/lib/types/agent/session.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/core.d.ts +2 -2
- package/lib/types/backends/claude/translate/core.d.ts.map +1 -1
- package/lib/types/backends/claude/translate/core.js +10 -6
- package/lib/types/backends/codex/session/commands.d.ts +2 -0
- package/lib/types/backends/codex/session/commands.d.ts.map +1 -1
- package/lib/types/backends/codex/session/commands.js +8 -4
- package/lib/types/backends/codex/session/input.d.ts +11 -7
- package/lib/types/backends/codex/session/input.d.ts.map +1 -1
- package/lib/types/backends/codex/session/input.js +68 -15
- package/lib/types/backends/codex/session/session.d.ts.map +1 -1
- package/lib/types/backends/codex/session/session.js +2 -3
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +78 -10
- package/lib/types/channel/questions.d.ts +19 -3
- package/lib/types/channel/questions.d.ts.map +1 -1
- package/lib/types/channel/sanitize.d.ts.map +1 -1
- package/lib/types/channel/sanitize.js +8 -4
- package/lib/types/channel/subagent-failure.d.ts +49 -0
- package/lib/types/channel/subagent-failure.d.ts.map +1 -0
- package/lib/types/channel/subagent-failure.js +59 -0
- package/lib/types/channel/transcript.d.ts +17 -0
- package/lib/types/channel/transcript.d.ts.map +1 -1
- package/lib/types/channel/transcript.js +35 -0
- package/lib/types/commands.js +2 -2
- package/lib/types/components/GoalTodoPanel.d.ts +71 -6
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +165 -17
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +14 -9
- package/lib/types/components/PluginGrantList.d.ts +45 -0
- package/lib/types/components/PluginGrantList.d.ts.map +1 -0
- package/lib/types/components/PluginGrantList.js +126 -0
- package/lib/types/components/PluginInstallPane.d.ts.map +1 -1
- package/lib/types/components/PluginInstallPane.js +35 -6
- package/lib/types/components/PluginManagePane.d.ts.map +1 -1
- package/lib/types/components/PluginManagePane.js +65 -8
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +63 -8
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +17 -1
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +12 -0
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts +2 -1
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +16 -7
- package/lib/types/components/onboardingModel.d.ts +2 -2
- package/lib/types/components/onboardingModel.js +3 -3
- package/lib/types/components/onboardingProviderPlan.d.ts +110 -0
- package/lib/types/components/onboardingProviderPlan.d.ts.map +1 -0
- package/lib/types/components/onboardingProviderPlan.js +78 -0
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts +5 -8
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
- package/lib/types/components/questions/AskUserQuestionPanel.js +7 -4
- package/lib/types/components/questions/PlanReviewPanel.d.ts +3 -6
- package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
- package/lib/types/components/revealScope.d.ts +15 -0
- package/lib/types/components/revealScope.d.ts.map +1 -0
- package/lib/types/components/revealScope.js +17 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +41 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +123 -6
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +9 -2
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +7 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +9 -2
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts +30 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/useBtwComposerPaste.js +94 -0
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +14 -2
- package/lib/types/components/sidePanel/types.d.ts +2 -0
- package/lib/types/components/sidePanel/types.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/useSidePanel.js +15 -1
- package/lib/types/components/smoothReveal.d.ts +36 -6
- package/lib/types/components/smoothReveal.d.ts.map +1 -1
- package/lib/types/components/smoothReveal.js +92 -21
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts +4 -14
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -1
- package/lib/types/components/workspaces/HomeWorkspaceRow.js +26 -17
- package/lib/types/dsh-adapter/backend/session.d.ts +7 -1
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/session.js +74 -6
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +15 -6
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/agent-view-projection.js +3 -1
- package/lib/types/dsh-adapter/channel/attached-context.d.ts +15 -2
- package/lib/types/dsh-adapter/channel/attached-context.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/attached-context.js +26 -3
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +3 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +43 -2
- package/lib/types/dsh-adapter/channel/composer-images.d.ts +2 -0
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +10 -2
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-mentions.js +22 -7
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +3 -7
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +16 -6
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +6 -0
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/binding-feed.js +35 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +3 -7
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +6 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/local-actions.js +3 -26
- package/lib/types/dsh-adapter/channel/emitter.js +1 -1
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +8 -0
- package/lib/types/dsh-adapter/channel/input-actions.d.ts +4 -4
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +59 -5
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +3 -7
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +21 -8
- package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mentions.js +21 -7
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +4 -1
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.js +26 -9
- package/lib/types/dsh-adapter/channel/model-selection.d.ts +27 -2
- package/lib/types/dsh-adapter/channel/model-selection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-selection.js +81 -37
- package/lib/types/dsh-adapter/channel/model-switch.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/paths.js +11 -9
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.js +6 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.js +3 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +10 -3
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.js +9 -3
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +11 -5
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +6 -3
- package/lib/types/dsh-adapter/channel/transcript.d.ts +3 -2
- package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/transcript.js +13 -4
- package/lib/types/dsh-adapter/channel/types.d.ts +11 -2
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.d.ts +27 -3
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +47 -5
- package/lib/types/dsh-adapter/entry-slot.d.ts +6 -0
- package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.d.ts +3 -0
- package/lib/types/dsh-adapter/experimental-bundles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/experimental-bundles.js +4 -0
- package/lib/types/dsh-adapter/fresh-agent.d.ts +1 -1
- package/lib/types/dsh-adapter/fresh-agent.d.ts.map +1 -1
- package/lib/types/dsh-adapter/fresh-agent.js +60 -11
- package/lib/types/dsh-adapter/grant-file.d.ts +70 -0
- package/lib/types/dsh-adapter/grant-file.d.ts.map +1 -0
- package/lib/types/dsh-adapter/grant-file.js +178 -0
- package/lib/types/dsh-adapter/host-access.d.ts +4 -0
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +114 -15
- package/lib/types/dsh-adapter/host-contract.d.ts +1 -1
- package/lib/types/dsh-adapter/host-contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-contract.js +5 -3
- package/lib/types/dsh-adapter/host-dsh.d.ts +0 -8
- package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +27 -6
- package/lib/types/dsh-adapter/host-entry.js +4 -0
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +8 -5
- package/lib/types/dsh-adapter/oauth/profiles.d.ts.map +1 -1
- package/lib/types/dsh-adapter/oauth/profiles.js +14 -1
- package/lib/types/dsh-adapter/panels.d.ts +7 -1
- package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.d.ts +28 -0
- package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.js +43 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts +28 -1
- package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-install.js +160 -13
- package/lib/types/dsh-adapter/plugin-manage.d.ts +53 -10
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manage.js +240 -51
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +203 -58
- package/lib/types/dsh-adapter/plugins-info.d.ts +6 -7
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +34 -21
- package/lib/types/dsh-adapter/presets.d.ts +41 -10
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +59 -12
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/providerWizard.d.ts +2 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +11 -5
- package/lib/types/dsh-adapter/questions.d.ts +3 -4
- package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/questions.js +1 -1
- package/lib/types/dsh-adapter/row-attachment.d.ts +30 -0
- package/lib/types/dsh-adapter/row-attachment.d.ts.map +1 -0
- package/lib/types/dsh-adapter/row-attachment.js +29 -0
- package/lib/types/dsh-adapter/session-list-metadata.js +2 -2
- package/lib/types/dsh-adapter/subagents.d.ts +5 -0
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +22 -1
- package/lib/types/dsh-adapter/team-mode.d.ts +17 -10
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -1
- package/lib/types/dsh-adapter/team-mode.js +19 -12
- package/lib/types/dsh-adapter/tool-scope.d.ts +24 -0
- package/lib/types/dsh-adapter/tool-scope.d.ts.map +1 -0
- package/lib/types/dsh-adapter/tool-scope.js +127 -0
- package/lib/types/dsh-adapter/types.d.ts +2 -1
- package/lib/types/dsh-adapter/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/worktree-tool.d.ts +27 -0
- package/lib/types/dsh-adapter/worktree-tool.d.ts.map +1 -0
- package/lib/types/dsh-adapter/worktree-tool.js +87 -0
- package/lib/types/heldInputs.d.ts +75 -0
- package/lib/types/heldInputs.d.ts.map +1 -0
- package/lib/types/heldInputs.js +409 -0
- package/lib/types/i18n.d.ts +577 -34
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +230 -22
- package/lib/types/ink/components/App.d.ts +2 -0
- package/lib/types/ink/components/App.d.ts.map +1 -1
- package/lib/types/ink/components/App.js +8 -0
- package/lib/types/ink/events/input-event.d.ts.map +1 -1
- package/lib/types/ink/events/input-event.js +7 -6
- package/lib/types/ink/hit-test.d.ts +2 -0
- package/lib/types/ink/hit-test.d.ts.map +1 -1
- package/lib/types/ink/hit-test.js +10 -0
- package/lib/types/ink/hooks/use-program-status.d.ts +1 -1
- package/lib/types/ink/hooks/use-program-status.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-program-status.js +3 -2
- package/lib/types/ink/ink.d.ts +1 -0
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +5 -2
- package/lib/types/ink/parse-keypress.d.ts.map +1 -1
- package/lib/types/ink/parse-keypress.js +25 -0
- package/lib/types/ink/terminal.d.ts +13 -2
- package/lib/types/ink/terminal.d.ts.map +1 -1
- package/lib/types/ink/terminal.js +29 -5
- package/lib/types/onboardingDraft.d.ts +143 -0
- package/lib/types/onboardingDraft.d.ts.map +1 -0
- package/lib/types/onboardingDraft.js +71 -0
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +133 -32
- package/lib/types/screens/Onboarding.d.ts +22 -3
- package/lib/types/screens/Onboarding.d.ts.map +1 -1
- package/lib/types/screens/Onboarding.js +606 -36
- package/lib/types/screens/SessionSupervisor.d.ts +3 -6
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/SessionSupervisor.js +5 -8
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts +1 -2
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/ForeignSessionPanes.js +2 -2
- package/lib/types/screens/sessionSupervisor/model.d.ts +1 -1
- package/lib/types/screens/sessionSupervisor/model.js +1 -1
- package/lib/types/sessionMounts.d.ts +12 -5
- package/lib/types/sessionMounts.d.ts.map +1 -1
- package/lib/types/sessionMounts.js +33 -6
- package/lib/types/settings/definitions.js +2 -2
- package/lib/types/update.d.ts +412 -20
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +2094 -193
- package/lib/types/updateHost.d.ts +198 -0
- package/lib/types/updateHost.d.ts.map +1 -0
- package/lib/types/updateHost.js +608 -0
- package/lib/types/utils/paths.d.ts +15 -0
- package/lib/types/utils/paths.d.ts.map +1 -1
- package/lib/types/utils/paths.js +25 -0
- package/lib/types/utils/processName.d.ts +16 -0
- package/lib/types/utils/processName.d.ts.map +1 -0
- package/lib/types/utils/processName.js +27 -0
- package/package.json +114 -108
- package/tui-profile/feed/README.md +1 -1
- package/tui-profile/feed/first-party.json +1 -1
|
@@ -17,6 +17,10 @@ export declare function armRootCapabilityGuard(root: Context): void;
|
|
|
17
17
|
* the composition root while running from a host plugin callback. This module
|
|
18
18
|
* is internal and is not part of the public plugin package surface. */
|
|
19
19
|
export declare function withHostRootCapability<T>(callback: () => T): T;
|
|
20
|
+
/** Run host code outside the plugin activation that triggered it: an action
|
|
21
|
+
* the entry owns, which a row only sets off (the screen reopening its session
|
|
22
|
+
* when the dsh-tui row applies again), acts as the entry, not as that row. */
|
|
23
|
+
export declare function outsideActivation<T>(callback: () => T): T;
|
|
20
24
|
export declare function concreteService<T extends object>(service: T): T;
|
|
21
25
|
/** Bind a host-side disposer to the caller's authenticated Cordis activation.
|
|
22
26
|
* A failed registration immediately rolls back the owned contribution. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-access.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/host-access.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAS,MAAM,qBAAqB,CAAA;AAmLpD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,IAAI,CAKlE;AAWD;;;;;GA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AAC5E,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAO3E;AAED;;;iEAGiE;AACjE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAehH;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAmBlG"}
|
|
@@ -352,6 +352,12 @@ function currentActivationIsPlugin(root) {
|
|
|
352
352
|
export function withHostRootCapability(callback) {
|
|
353
353
|
return hostCapabilityStorage.run(true, callback);
|
|
354
354
|
}
|
|
355
|
+
/** Run host code outside the plugin activation that triggered it: an action
|
|
356
|
+
* the entry owns, which a row only sets off (the screen reopening its session
|
|
357
|
+
* when the dsh-tui row applies again), acts as the entry, not as that row. */
|
|
358
|
+
export function outsideActivation(callback) {
|
|
359
|
+
return activationStorage.exit(callback);
|
|
360
|
+
}
|
|
355
361
|
function rejectRootCapability(root, capability) {
|
|
356
362
|
if (currentActivationIsPlugin(root)) {
|
|
357
363
|
throw new Error(`dsh-tui: ${capability} is unavailable from a plugin activation`);
|
|
@@ -379,12 +385,15 @@ function guardRootCapabilities(root) {
|
|
|
379
385
|
const registry = concreteService(root.registry);
|
|
380
386
|
if (!guardedRootRegistries.has(registry)) {
|
|
381
387
|
guardedRootRegistries.add(registry);
|
|
388
|
+
// Mutations only. Reads move nothing, and `root.registry` should behave
|
|
389
|
+
// like `ctx.registry`, which the guard never inspected: `getTraceable`
|
|
390
|
+
// rebinds a service to its caller's context, so only the `root.` alias
|
|
391
|
+
// ever resolved to the root receiver. Cordis itself reads through this
|
|
392
|
+
// alias too — `ReflectService.notify` calls `this.ctx.registry.values()`
|
|
393
|
+
// after a `provide()` (cordis lib/index.js).
|
|
382
394
|
guardServiceMethod(registry, 'inject', root, 'root.inject', true);
|
|
383
395
|
guardServiceMethod(registry, 'plugin', root, 'root.plugin', true);
|
|
384
396
|
guardServiceMethod(registry, 'delete', root, 'root.registry.delete', true);
|
|
385
|
-
for (const method of ['resolve', 'get', 'has', 'keys', 'values', 'entries', 'forEach']) {
|
|
386
|
-
guardServiceMethod(registry, method, root, `root.registry.${method}`, true);
|
|
387
|
-
}
|
|
388
397
|
}
|
|
389
398
|
}
|
|
390
399
|
catch {
|
|
@@ -394,7 +403,18 @@ function guardRootCapabilities(root) {
|
|
|
394
403
|
const events = concreteService(root.events);
|
|
395
404
|
if (!guardedRootEvents.has(events)) {
|
|
396
405
|
guardedRootEvents.add(events);
|
|
397
|
-
|
|
406
|
+
// Dispatch stays open; subscribing stays closed. `waterfall` also carries
|
|
407
|
+
// Cordis' own `internal/get` / `internal/set` resolution, so treating it
|
|
408
|
+
// as a hook surface would put the service system behind the guard. What
|
|
409
|
+
// #1765 actually hit was the config-reload `emit` that `recompose()`
|
|
410
|
+
// performs on the root context at the end of a web-originated save: a
|
|
411
|
+
// property read on `root` short-circuits before `internal/get`, so the
|
|
412
|
+
// emit is the only stop that failed. Subscribing stays refused —
|
|
413
|
+
// `on`/`once`/`register`/`unregister` pin a listener to the root past
|
|
414
|
+
// the activation that added it. That covers the direct subscription
|
|
415
|
+
// methods only; Cordis' own `internal/listener` channel predates this
|
|
416
|
+
// guard and can still park a hook on the root fiber through `emit`.
|
|
417
|
+
for (const method of ['on', 'once', 'register', 'unregister']) {
|
|
398
418
|
guardServiceMethod(events, method, root, `root.events.${method}`, true);
|
|
399
419
|
}
|
|
400
420
|
}
|
|
@@ -413,14 +433,44 @@ function guardRootCapabilities(root) {
|
|
|
413
433
|
// Fall through when a minimal embedder omits reflection internals.
|
|
414
434
|
}
|
|
415
435
|
admitRootProjectionRegistrations(root);
|
|
436
|
+
installRootInvocationAccessor(root);
|
|
437
|
+
}
|
|
438
|
+
const invocationAccessorRoots = new WeakSet();
|
|
439
|
+
/**
|
|
440
|
+
* `dsh-typert-protocol` registers the `invocation` accessor on the root the
|
|
441
|
+
* first time any Remote service is constructed — "on the root, where it
|
|
442
|
+
* outlives any one Service". When that first Remote service activates after
|
|
443
|
+
* the guard (a dsh-base row resuming once the first TUI row installed it,
|
|
444
|
+
* #1616), the registration is refused and every later Remote service retries
|
|
445
|
+
* and fails the same way. The host installs that same root-owned property when
|
|
446
|
+
* it installs the guard, so the protocol finds it where it looks for it.
|
|
447
|
+
*
|
|
448
|
+
* This admits no activation: nothing here is owned by a plugin or released on
|
|
449
|
+
* its unload (the upstream contract puts the accessor on the root), a plugin
|
|
450
|
+
* gains no capability it lacked, and `root.accessor` from a plugin activation
|
|
451
|
+
* is still refused by the guard. A root without a reflection service keeps
|
|
452
|
+
* typert's own registration path and its refusal.
|
|
453
|
+
*/
|
|
454
|
+
function installRootInvocationAccessor(root) {
|
|
455
|
+
if (invocationAccessorRoots.has(root))
|
|
456
|
+
return;
|
|
457
|
+
invocationAccessorRoots.add(root);
|
|
458
|
+
try {
|
|
459
|
+
if (Object.hasOwn(root.reflect.props, 'invocation'))
|
|
460
|
+
return;
|
|
461
|
+
withHostRootCapability(() => root.accessor('invocation', { get: () => undefined }));
|
|
462
|
+
}
|
|
463
|
+
catch {
|
|
464
|
+
// A minimal embedder without a reflection service keeps the plain guard.
|
|
465
|
+
}
|
|
416
466
|
}
|
|
417
467
|
const projectionRegistryRoots = new WeakSet();
|
|
418
468
|
const guardedProjectionRegistries = new WeakSet();
|
|
419
469
|
/**
|
|
420
470
|
* `sessionProjections.register` hangs its disposer on the receiver's context
|
|
421
|
-
* (the registry's documented ownership: the calling fiber). DSH's
|
|
422
|
-
* service reaches it through `ctx.root`, which lands that effect on
|
|
423
|
-
* fiber and the guard above refuses it. Admit that one call with host
|
|
471
|
+
* (the registry's documented ownership: the calling fiber). Legacy DSH's
|
|
472
|
+
* agent-team service reaches it through `ctx.root`, which lands that effect on
|
|
473
|
+
* the root fiber and the guard above refuses it. Admit that one call with host
|
|
424
474
|
* capability, so the registration sits where it would without the guard and
|
|
425
475
|
* the caller's disposer releases it in the caller's own order; the plugin's
|
|
426
476
|
* unload releases one it leaves behind ({@link releaseAfterUnload}). The
|
|
@@ -464,8 +514,8 @@ function admitRootProjectionRegistrations(root) {
|
|
|
464
514
|
// disposer itself (DSH's TeamService unregisters after its async
|
|
465
515
|
// runtime teardown, which still reads the key). On the caller's fiber
|
|
466
516
|
// it would be a sibling effect, and Cordis unloads siblings at once.
|
|
467
|
-
const
|
|
468
|
-
return releaseAfterUnload(root, token.fiber,
|
|
517
|
+
const registration = withHostRootCapability(() => Reflect.apply(original, this, args));
|
|
518
|
+
return releaseAfterUnload(root, token.fiber, registration);
|
|
469
519
|
},
|
|
470
520
|
});
|
|
471
521
|
});
|
|
@@ -486,27 +536,76 @@ function admitRootProjectionRegistrations(root) {
|
|
|
486
536
|
* still dies with that plugin: if the plugin never disposes it, it goes once
|
|
487
537
|
* the plugin's fiber has finished unloading (every effect settled, async
|
|
488
538
|
* teardown included), whether the fiber reloads or not.
|
|
489
|
-
*
|
|
539
|
+
* Preserve the registration's await result too: old Cordis effects yield an
|
|
540
|
+
* async disposer, while 0.2.2 projections yield a retained reader handle.
|
|
541
|
+
* @returns the callable registration; every disposal face drops the watch.
|
|
490
542
|
*/
|
|
491
543
|
function releaseAfterUnload(root, fiber, dispose) {
|
|
492
544
|
let unwatch;
|
|
545
|
+
let released = false;
|
|
546
|
+
let disposal;
|
|
493
547
|
const release = () => {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
548
|
+
if (released)
|
|
549
|
+
return disposal;
|
|
550
|
+
released = true;
|
|
551
|
+
return disposal = withHostRootCapability(() => {
|
|
552
|
+
unwatch?.();
|
|
553
|
+
unwatch = undefined;
|
|
554
|
+
return dispose();
|
|
555
|
+
});
|
|
497
556
|
};
|
|
498
557
|
try {
|
|
499
558
|
unwatch = withHostRootCapability(() => root.on('internal/status', (changed, oldState) => {
|
|
500
559
|
// Cordis uses 5 for UNLOADING (see rememberFiber). The event carries
|
|
501
560
|
// either the activation's fiber or the wrapper normalized to it.
|
|
502
|
-
|
|
561
|
+
const subject = changed === fiber || rememberFiber(changed, root) === fiber
|
|
562
|
+
? changed
|
|
563
|
+
: undefined;
|
|
564
|
+
if (subject === undefined)
|
|
565
|
+
return;
|
|
566
|
+
// Up to Cordis 4.0.5 the settle transition (5 → disposed/loading) reached
|
|
567
|
+
// root listeners, so the state alone timed the release.
|
|
568
|
+
if (oldState === 5) {
|
|
503
569
|
release();
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
// 4.1 drops that emission once the fiber's context is gone; entering
|
|
573
|
+
// UNLOADING still arrives, so follow the transition promise it publishes
|
|
574
|
+
// instead — releasing after the plugin's async teardown, never before.
|
|
575
|
+
if (oldState === 2 && subject.state === 5) {
|
|
576
|
+
const inertia = subject.inertia;
|
|
577
|
+
if (inertia === undefined)
|
|
578
|
+
release();
|
|
579
|
+
else
|
|
580
|
+
void inertia.then(release, release);
|
|
581
|
+
}
|
|
504
582
|
}, { global: true }));
|
|
505
583
|
}
|
|
506
584
|
catch {
|
|
507
585
|
// Without the event helper only the plugin's own disposer releases it.
|
|
508
586
|
}
|
|
509
|
-
|
|
587
|
+
if (typeof dispose.then !== 'function')
|
|
588
|
+
return release;
|
|
589
|
+
// Observe lazily so callers that keep the deprecated synchronous disposer
|
|
590
|
+
// retain the registry's own unobserved-readiness error reporting.
|
|
591
|
+
let ready;
|
|
592
|
+
const whenReady = () => ready ??= Promise.resolve(dispose).then(value => {
|
|
593
|
+
if (typeof value === 'function')
|
|
594
|
+
return async () => { await release(); };
|
|
595
|
+
if (value !== null && typeof value === 'object' && typeof Reflect.get(value, 'dispose') === 'function') {
|
|
596
|
+
return { ...value, dispose: async () => { await release(); } };
|
|
597
|
+
}
|
|
598
|
+
return value;
|
|
599
|
+
}, error => {
|
|
600
|
+
release();
|
|
601
|
+
throw error;
|
|
602
|
+
});
|
|
603
|
+
return Object.assign(release, {
|
|
604
|
+
then: (resolve, reject) => whenReady().then(resolve, reject),
|
|
605
|
+
catch: (reject) => whenReady().catch(reject),
|
|
606
|
+
finally: (done) => whenReady().finally(done),
|
|
607
|
+
[Symbol.toStringTag]: 'Promise',
|
|
608
|
+
});
|
|
510
609
|
}
|
|
511
610
|
function guardFiberMethod(target, method, root, capability) {
|
|
512
611
|
const descriptor = Reflect.getOwnPropertyDescriptor(target, method);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** The host CLI package whose installation the entry loads. */
|
|
8
8
|
export declare const HOST_PACKAGE = "@deepseek-ai/dsh";
|
|
9
9
|
/** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
|
|
10
|
-
export declare const HOST_REPLICA_VERSION = "0.2.
|
|
10
|
+
export declare const HOST_REPLICA_VERSION = "0.2.2-rc.1";
|
|
11
11
|
/** Where the entry resolves a host module from. */
|
|
12
12
|
export type HostModuleVia =
|
|
13
13
|
/** The host package's own `createRequire` (its nested node_modules). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-contract.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/host-contract.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+DAA+D;AAC/D,eAAO,MAAM,YAAY,qBAAqB,CAAA;AAE9C,6FAA6F;AAC7F,eAAO,MAAM,oBAAoB,eAAe,CAAA;AAEhD,mDAAmD;AACnD,MAAM,MAAM,aAAa;AACvB,wEAAwE;AACtE,MAAM;AACR,wFAAwF;GACtF,UAAU,CAAA;AAEd,MAAM,WAAW,cAAc;IAC7B,oCAAoC;IACpC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,GAAG,EAAE,aAAa,CAAA;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAED,kFA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A2E;IAC3E,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAED,kFAAkF;AAClF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAeqB,CAAA;AAE9C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,yKAMrB,CAAA;AAEV;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,8CAExB,CAAA;AAEV,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAA;IACnC,wDAAwD;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAS/C,CAAA;AAED,6GAA6G;AAC7G,eAAO,MAAM,eAAe,EAAE,SAAS;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAapF,CAAA"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/** The host CLI package whose installation the entry loads. */
|
|
8
8
|
export const HOST_PACKAGE = '@deepseek-ai/dsh';
|
|
9
9
|
/** The host line the reproduced pieces were checked against (host-replica.snapshot.json). */
|
|
10
|
-
export const HOST_REPLICA_VERSION = '0.2.
|
|
10
|
+
export const HOST_REPLICA_VERSION = '0.2.2-rc.1';
|
|
11
11
|
/** The host modules the entry loads, all from one installation, in load order. */
|
|
12
12
|
export const HOST_MODULES = [
|
|
13
13
|
{ key: 'cordis', specifier: '@deepseek-ai/cordis', via: 'host', exports: ['Context'] },
|
|
@@ -58,7 +58,7 @@ export const HOST_REPLICAS = [
|
|
|
58
58
|
{ id: 'app-ready', package: HOST_PACKAGE, symbol: 'createAppReady', kind: 'function', local: 'createAppReady' },
|
|
59
59
|
{ id: 'compose-profile', package: HOST_PACKAGE, symbol: 'composeProfile', kind: 'function', local: 'prepareHostRoot steps 1–2 (no overlays, no resolvedProfile)' },
|
|
60
60
|
{ id: 'run-profile', package: HOST_PACKAGE, symbol: 'runProfile', kind: 'function', local: 'prepareHostRoot (PluginPackages), HostRoot.selectKernel (proxy, fail-loud, profileContext, launch environment, provideCmdline) and HostRoot.compose\'s appReady.commit' },
|
|
61
|
-
{ id: 'boot', package: '@deepseek-ai/dsh-app-boot', symbol: 'boot', kind: 'function', local: 'prepareHostRoot step 4 (baseUrl, dshHomePath, internal/update
|
|
61
|
+
{ id: 'boot', package: '@deepseek-ai/dsh-app-boot', symbol: 'boot', kind: 'function', local: 'prepareHostRoot step 4 (baseUrl, dshHomePath, Loader — the pre-0.2.2 internal/update hook is version-gated) and HostRoot.compose (startup-log exporter, mountRootInclude, loader.await, auditStartupEntries, StartupError.startup)' },
|
|
62
62
|
{ id: 'startup-report', package: HOST_PACKAGE, symbol: 'reportStartupFailure', kind: 'function', local: 'writeStartupReport: the file half' },
|
|
63
63
|
{ id: 'run-cli', package: HOST_PACKAGE, symbol: 'runCli', kind: 'function', local: 'prepareHostRoot\'s loadLayeredEnv call before the profile; the StartupError-only report' },
|
|
64
64
|
];
|
|
@@ -67,11 +67,13 @@ export const HOST_DEVIATIONS = [
|
|
|
67
67
|
{ id: 'no-interrupt', what: 'runProfile\'s SIGTERM/SIGINT handlers and createProcessShutdown().interrupt are not reproduced: the entry owns SIGTERM/SIGHUP/SIGINT (process-exit.ts installEntrySignals) and ends by the signal after the TUI\'s exit funnel, where interrupt exits 0 (TERM) / 130 (INT) — the launcher reads a numeric 130 as a crash (verify-entry-process-exit)' },
|
|
68
68
|
{ id: 'exit-seam', what: 'ctx.appExit (provideCmdline exit) goes to the TUI\'s exit funnel through ProcessExitSeam first, and to the reproduced shutdown only when the funnel refuses (prepareHostRoot exitSeam)' },
|
|
69
69
|
{ id: 'fail-loud-removable', what: 'installFailLoud\'s uninstaller is kept and called once apply() returned and processGuardActive() (host-entry.ts): from then on the TUI\'s process guard is the single owner of a fatal error; DSH_TUI_NO_185_PROCESS_GUARD=1 keeps fail-loud (verify-entry-process-exit)' },
|
|
70
|
+
{ id: 'no-startup-composition', what: 'boot\'s 0.2.2 captureStartupComposition (StartupError.composition) is not reproduced: the capture is not exported and runs before teardown, which only boot owns. The entry composes the profile itself and writes its own startup report instead (verify-host-contract pins the fingerprint; re-check this deviation when the symbol changes)' },
|
|
70
71
|
{ id: 'startup-report-always', what: 'bin.js saves a report for a StartupError only and lets other startup errors crash; the entry saves one for every composition failure (HostComposeError carries the path) because the screen stays up' },
|
|
71
72
|
{ id: 'startup-report-no-terminal', what: 'reportStartupFailure\'s terminal half is not reproduced: the screen is up, the failure row names the report' },
|
|
72
73
|
{ id: 'no-overlays', what: '--patch overlays, --from-default-profile and resolvedProfile are not reproduced (the launcher passes none)' },
|
|
73
|
-
{ id: 'defer-root-guard', what: 'deferRootCapabilityGuard(root) (host-access.ts) keeps the TUI\'s root-capability guard off from the entry\'s binding of the root through the screen\'s mount; armRootCapabilityGuard then lets the first TUI row activation install it, as on the profile path, and the composition\'s settling installs it if no TUI row activated' },
|
|
74
|
+
{ id: 'defer-root-guard', what: 'deferRootCapabilityGuard(root) (host-access.ts) keeps the TUI\'s root-capability guard off from the entry\'s binding of the root through the screen\'s mount; armRootCapabilityGuard then lets the first TUI row activation install it, as on the profile path, and the composition\'s settling installs it if no TUI row activated. Installing the guard also materializes the root-owned `invocation` accessor dsh-typert-protocol otherwise registers from the first Remote service, so a dsh-base row that resumes after the first TUI row (issue #1616) still activates; the guard itself is unchanged (verify-plugin-lifecycle)' },
|
|
74
75
|
{ id: 'report-exclude-network', what: 'host-entry.ts sets process.report.excludeNetwork = true for the process: DSH\'s flock libc probe (process.report.getReport) otherwise blocked ~10s on reverse lookups of sockets the mounted screen already opened' },
|
|
76
|
+
{ id: 'process-name', what: 'host-entry.ts names the process dsh-tui right after start (#1831) by writing /proc/self/comm on Linux: Node leaves the thread group leader as "MainThread", which is what ps -o comm, top and desktop process monitors show, while `dsh --profile` keeps the inherited name; argv is left alone, so cmdline still names the entry script (verify-entry-process-exit)' },
|
|
75
77
|
{ id: 'hijack-before-tui', what: 'the host\'s PluginPackages resolution is installed before any TUI module loads, for both kernels; runProfile installs it inside boot()\'s prepare' },
|
|
76
78
|
{ id: 'kernel-after-discovery', what: 'prepareHostRoot first supplies only the neutral Loader/resolution root; after backend assembly, HostRoot.selectKernel prepares DSH-only proxy, failure handlers and services from the same final kernel the entry uses for its slot and composition' },
|
|
77
79
|
];
|
|
@@ -93,14 +93,6 @@ export interface PrepareHostRootOptions {
|
|
|
93
93
|
/** Routes `ctx.appExit(code)` to the TUI's exit funnel; the bounded `shutdown` when unfilled or refused. */
|
|
94
94
|
readonly exitSeam?: ProcessExitSeam;
|
|
95
95
|
}
|
|
96
|
-
/**
|
|
97
|
-
* Build the entry's root from the host's `cordis` and install the host's
|
|
98
|
-
* module resolution on it before any TUI module is imported, so the TUI and
|
|
99
|
-
* the DSH plugins resolve shared packages (react, schemastery, the
|
|
100
|
-
* `@deepseek-ai/*` peers) the same way. Both kernels: otherwise the peers
|
|
101
|
-
* resolve only through `$DSH_HOME/profiles/node_modules`, which a fresh
|
|
102
|
-
* install may not have. The DSH kernel also gets the rest of `runProfile`'s prepare.
|
|
103
|
-
*/
|
|
104
96
|
export declare function prepareHostRoot(host: HostDsh, options: PrepareHostRootOptions): Promise<HostRoot>;
|
|
105
97
|
/** A composition failure, with the startup report saved for it. */
|
|
106
98
|
export declare class HostComposeError extends Error {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host-dsh.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/host-dsh.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,OAAO,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Q,KAAK;IAE7B,QAAQ,CAAC,QAAQ,EAAE,OAAO;IADtC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;gBACf,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS;CAKpE"}
|
|
@@ -12,6 +12,7 @@ import { createRequire } from 'node:module';
|
|
|
12
12
|
import { basename, delimiter, dirname, join, posix, win32 } from 'node:path';
|
|
13
13
|
import { pathToFileURL } from 'node:url';
|
|
14
14
|
import { inspect } from 'node:util';
|
|
15
|
+
import { compareVersions, parseUpstreamVersion } from './contract.js';
|
|
15
16
|
import { HOST_MODULES, HOST_PACKAGE } from './host-contract.js';
|
|
16
17
|
import { LITE_PROFILE_EXCLUDED_BUNDLES, liteProfilePlan } from './lite-profile.js';
|
|
17
18
|
import { PROCESS_SHUTDOWN_TIMEOUT_MS } from './process-exit.js';
|
|
@@ -221,6 +222,19 @@ export async function loadHostDsh(packageDir = undefined) {
|
|
|
221
222
|
* resolve only through `$DSH_HOME/profiles/node_modules`, which a fresh
|
|
222
223
|
* install may not have. The DSH kernel also gets the rest of `runProfile`'s prepare.
|
|
223
224
|
*/
|
|
225
|
+
/** Whether the loaded kernel predates `minimum` (unparseable counts as current). */
|
|
226
|
+
function kernelBefore(host, minimum) {
|
|
227
|
+
let version;
|
|
228
|
+
try {
|
|
229
|
+
version = host.appBoot.getDshRuntimeVersion();
|
|
230
|
+
}
|
|
231
|
+
catch {
|
|
232
|
+
version = undefined;
|
|
233
|
+
}
|
|
234
|
+
const installed = parseUpstreamVersion(version);
|
|
235
|
+
const floor = parseUpstreamVersion(minimum);
|
|
236
|
+
return installed !== undefined && floor !== undefined && compareVersions(installed, floor) < 0;
|
|
237
|
+
}
|
|
224
238
|
export async function prepareHostRoot(host, options) {
|
|
225
239
|
const { appBoot, profileBoot } = host;
|
|
226
240
|
// bin.js: the `.env` layers fill unset variables before anything reads them
|
|
@@ -235,9 +249,16 @@ export async function prepareHostRoot(host, options) {
|
|
|
235
249
|
const ctx = new host.Context();
|
|
236
250
|
ctx.baseUrl = pathToFileURL(dirname(rootConfig)).href + '/';
|
|
237
251
|
ctx.provide('dshHomePath', host.homePaths.dshHomePath);
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
252
|
+
// `boot` registered this hook until 0.2.1: a live profile reload's failures
|
|
253
|
+
// were swallowed instead of escaping into the TUI. 0.2.2 dropped it when the
|
|
254
|
+
// waterfall became `(resolvedConfig, next)` and started awaiting the restart
|
|
255
|
+
// itself; registering the old three-argument handler there would pass `next`
|
|
256
|
+
// as `noSave` and leave the restart unawaited.
|
|
257
|
+
if (kernelBefore(host, '0.2.2-rc.1')) {
|
|
258
|
+
ctx.on('internal/update', ((_config, _noSave, next) => {
|
|
259
|
+
Promise.resolve(next()).catch((error) => { ctx.logger.error(error); });
|
|
260
|
+
}), { global: true, prepend: true });
|
|
261
|
+
}
|
|
241
262
|
await ctx.plugin(host.Loader, undefined);
|
|
242
263
|
const shutdown = createProcessShutdown(() => ctx.fiber.dispose());
|
|
243
264
|
const appReady = createAppReady();
|
|
@@ -391,7 +412,7 @@ function hostVersion(host) {
|
|
|
391
412
|
}
|
|
392
413
|
}
|
|
393
414
|
/**
|
|
394
|
-
* dsh `bin.js` reportStartupFailure (0.2.
|
|
415
|
+
* dsh `bin.js` reportStartupFailure (0.2.2-rc.1), the file half only: the
|
|
395
416
|
* screen is up, so never stderr. Undefined when it could not be written.
|
|
396
417
|
*/
|
|
397
418
|
async function writeStartupReport(error, context) {
|
|
@@ -425,7 +446,7 @@ async function writeStartupReport(error, context) {
|
|
|
425
446
|
}
|
|
426
447
|
return logPath;
|
|
427
448
|
}
|
|
428
|
-
/** dsh `profile-boot` createAppReady (0.2.
|
|
449
|
+
/** dsh `profile-boot` createAppReady (0.2.2-rc.1). */
|
|
429
450
|
function createAppReady() {
|
|
430
451
|
let ready = false;
|
|
431
452
|
const listeners = new Set();
|
|
@@ -450,7 +471,7 @@ function createAppReady() {
|
|
|
450
471
|
},
|
|
451
472
|
};
|
|
452
473
|
}
|
|
453
|
-
/** dsh `process-shutdown` createProcessShutdown (0.2.
|
|
474
|
+
/** dsh `process-shutdown` createProcessShutdown (0.2.2-rc.1), the `shutdown` half only. */
|
|
454
475
|
function createProcessShutdown(dispose, timeoutMs = PROCESS_SHUTDOWN_TIMEOUT_MS) {
|
|
455
476
|
let pending;
|
|
456
477
|
let settled = false;
|
|
@@ -12,12 +12,16 @@ import { configuredBackend, delegatesToProfile, entryKernel, hostProfile } from
|
|
|
12
12
|
import { HANDOFF_ACK_FD_ENV } from '../handoffAck.js';
|
|
13
13
|
import { HOST_NOTICE_ENV } from '../kernelPrefs.js';
|
|
14
14
|
import { logForDebugging } from '../utils/debug.js';
|
|
15
|
+
import { setProcessName } from '../utils/processName.js';
|
|
15
16
|
import { cmdEscapeArgument } from '../utils/shellQuote.js';
|
|
16
17
|
import { ENTRY_ROW_DEFAULTS } from './lite-profile.js';
|
|
17
18
|
import { HostComposeError, loadHostDsh, NO_DSH_ON_PATH, prepareHostRoot } from './host-dsh.js';
|
|
18
19
|
import { installEntrySignals } from './process-exit.js';
|
|
19
20
|
import { disposeRootSettled, trackComposition } from './root-dispose.js';
|
|
20
21
|
markBoot('entry-start');
|
|
22
|
+
// #1831: process listings show the inherited main-thread name ("MainThread");
|
|
23
|
+
// the process that becomes the screen names itself as early as it can.
|
|
24
|
+
setProcessName('dsh-tui');
|
|
21
25
|
// DSH's native flock loader reads `process.report.getReport()`; with sockets
|
|
22
26
|
// already open, the network section's reverse lookups block the event loop.
|
|
23
27
|
if (process.report !== undefined)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,KAAK,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AAC,IAAI,CAAC,CA+BtF;AAqCD,OAAO,EACL,OAAO,EACP,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,WAAW,GACjB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC3G,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA"}
|
|
@@ -203,17 +203,20 @@ export async function apply(ctx, config) {
|
|
|
203
203
|
/** The row under the entry's screen: the DSH side in its own runtime fiber
|
|
204
204
|
* once the Loader settled, never a second render; a recompose stays idle. */
|
|
205
205
|
function attachToEntry(ctx, config) {
|
|
206
|
-
const attach = takeEntryAttach();
|
|
207
|
-
if (attach === undefined) {
|
|
208
|
-
ctx.logger.warn('dsh-tui: the entry\'s screen already holds a DSH session; this dsh-tui row stays idle');
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
206
|
let disposed = false;
|
|
212
207
|
ctx.effect(() => () => { disposed = true; });
|
|
213
208
|
const loader = ctx.get('loader');
|
|
214
209
|
void (loader?.await() ?? ctx.fiber.await()).then(() => {
|
|
215
210
|
if (disposed)
|
|
216
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
|
+
}
|
|
217
220
|
return ctx.plugin({
|
|
218
221
|
name: 'dsh-tui-runtime',
|
|
219
222
|
apply: (runtimeCtx) => attach(runtimeCtx, config, ctx),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/oauth/profiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AAE7E,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAEvE,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,iEAAkE,CAAA;AAEjG,gCAAgC;AAChC,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE,yEAAyE;AACzE,wBAAgB,yBAAyB,IAAI,eAAe,EAAE,CAG7D;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/oauth/profiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAA;AAE7E,OAAO,EAA2B,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAEvE,iEAAiE;AACjE,eAAO,MAAM,kBAAkB,iEAAkE,CAAA;AAEjG,gCAAgC;AAChC,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE,yEAAyE;AACzE,wBAAgB,yBAAyB,IAAI,eAAe,EAAE,CAG7D;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA+BD,oFAAoF;AACpF,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,CAMvF;AAmCD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,MAAM,EACV,cAAc,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,GACvD,2BAA2B,CAkC7B"}
|
|
@@ -29,6 +29,14 @@ const MAX_REQUEST_IMAGE_BYTES = 20 * 1024 * 1024;
|
|
|
29
29
|
const REQUEST_IMAGE_PIXEL_BUDGET = 2048 * 2048;
|
|
30
30
|
/** llm-pi-ai `DEFAULT_REQUEST_IMAGE_MAX_BYTES` (1 MiB per image). */
|
|
31
31
|
const REQUEST_IMAGE_MAX_BYTES = 1024 * 1024;
|
|
32
|
+
/**
|
|
33
|
+
* llm-pi-ai `DEFAULT_MAX_REQUEST_IMAGES` (50 retained images per request) and
|
|
34
|
+
* `DEFAULT_IMAGE_OFFLOAD_COUNT_QUANTUM` (10 offloaded per overflow). Required
|
|
35
|
+
* since 0.2.2, where the adapter bounds a request's image prefix; older
|
|
36
|
+
* adapters never read them, so carrying them is harmless on a pre-0.2.2 host.
|
|
37
|
+
*/
|
|
38
|
+
const MAX_REQUEST_IMAGES = 50;
|
|
39
|
+
const IMAGE_OFFLOAD_COUNT_QUANTUM = 10;
|
|
32
40
|
/** llm-pi-ai `DEFAULT_STREAM_IDLE_TIMEOUT_MS` (5 minutes). */
|
|
33
41
|
const STREAM_IDLE_TIMEOUT_MS = 300_000;
|
|
34
42
|
/** The installed pi-ai catalog provider for one route, whose OAuth flow we mount. */
|
|
@@ -95,7 +103,9 @@ export function buildOAuthProfile(id, modelOverrides) {
|
|
|
95
103
|
// An older pi-ai catalog can know the route but not its newer OAuth flow
|
|
96
104
|
// (notably `openai`). Explicit requests must fail at boot, not at /auth.
|
|
97
105
|
oauthOf(catalog);
|
|
98
|
-
|
|
106
|
+
// Infer the extended shape before returning: older host declarations omit
|
|
107
|
+
// the 0.2.2 image-count fields, but accept the same provider profile.
|
|
108
|
+
const profile = {
|
|
99
109
|
provider: id,
|
|
100
110
|
displayName: catalog.name,
|
|
101
111
|
streamIdleTimeoutMs: STREAM_IDLE_TIMEOUT_MS,
|
|
@@ -110,7 +120,10 @@ export function buildOAuthProfile(id, modelOverrides) {
|
|
|
110
120
|
// harmless on a pre-0.1.5 host.
|
|
111
121
|
modelErrors: new Map(),
|
|
112
122
|
maxRequestImageBytes: MAX_REQUEST_IMAGE_BYTES,
|
|
123
|
+
maxRequestImages: MAX_REQUEST_IMAGES,
|
|
124
|
+
imageOffloadCountQuantum: IMAGE_OFFLOAD_COUNT_QUANTUM,
|
|
113
125
|
requestImagePixelBudget: REQUEST_IMAGE_PIXEL_BUDGET,
|
|
114
126
|
requestImageMaxBytes: REQUEST_IMAGE_MAX_BYTES,
|
|
115
127
|
};
|
|
128
|
+
return profile;
|
|
116
129
|
}
|
|
@@ -86,7 +86,13 @@ export interface TuiPanelUi {
|
|
|
86
86
|
}
|
|
87
87
|
export type TuiPanelBadgeLevel = 'info' | 'warning' | 'error';
|
|
88
88
|
export type TuiPanelMode = 'split' | 'zoom' | 'fullscreen';
|
|
89
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* v2.1 键盘契约的插件视图:preventDefault() = 阻止宿主回退键。
|
|
91
|
+
*
|
|
92
|
+
* 分栏渲染时 keymap 可重映射的 `paste` 组合(默认 Ctrl+V / Alt+V,macOS 上
|
|
93
|
+
* 还接受 Cmd+V)会先投递给活动面板;只看 `input` 字符的字母快捷键必须先
|
|
94
|
+
* 排除 `ctrl`/`meta`/`super`,否则粘贴键会误触自己的快捷键。
|
|
95
|
+
*/
|
|
90
96
|
export interface TuiPanelKeyEvent {
|
|
91
97
|
readonly input: string;
|
|
92
98
|
readonly key: import('../components/sidePanel/types.js').SidePanelKeyFlags;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"panels.d.ts","sourceRoot":"","sources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vF;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"}
|
|
@@ -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":"AAkBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAgC,KAAK,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAIrG,2EAA2E;AAC3E,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAepG;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;8CAC0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,mFAAmF;IACnF,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAC3B;AAED,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAA;IAC7C;;4DAEwD;IACxD,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CACrC;AAID;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,GAAG,gBAAgB,CAwDpE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAQnE;AAED,6EAA6E;AAC7E,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