@deepseek-harness-tui/dsh-tui 0.15.0 → 0.16.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 +92 -5
- package/guide/dsh-tui-guide/codex-backend.en.md +13 -3
- package/guide/dsh-tui-guide/codex-backend.md +9 -2
- package/guide/dsh-tui-guide/configuration.en.md +39 -2
- package/guide/dsh-tui-guide/configuration.md +34 -2
- package/guide/dsh-tui-guide/getting-started.en.md +15 -0
- package/guide/dsh-tui-guide/getting-started.md +15 -0
- package/guide/dsh-tui-guide/interaction.en.md +8 -1
- package/guide/dsh-tui-guide/interaction.md +8 -1
- package/guide/dsh-tui-guide/plugins.en.md +66 -5
- package/guide/dsh-tui-guide/plugins.md +37 -3
- package/guide/dsh-tui-guide/user-guide.en.md +3 -2
- package/guide/dsh-tui-guide/user-guide.md +3 -2
- package/lib/settings.json +1 -1
- package/lib/types/adapter/channel/projection.d.ts.map +1 -1
- package/lib/types/adapter/channel/projection.js +1 -0
- package/lib/types/adapter/channel/ui-policy.d.ts +1 -1
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +1 -0
- package/lib/types/adapter/ports/channel-catalog.d.ts +5 -1
- package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-settings.d.ts +5 -3
- package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-ui.d.ts +7 -1
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +47 -0
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel.d.ts +2 -0
- package/lib/types/adapter/ports/channel.d.ts.map +1 -1
- package/lib/types/agent/events.d.ts +3 -2
- package/lib/types/agent/events.d.ts.map +1 -1
- package/lib/types/backends/codex/contract.d.ts +3 -0
- package/lib/types/backends/codex/contract.d.ts.map +1 -1
- package/lib/types/backends/codex/contract.js +3 -0
- package/lib/types/backends/codex/session/async-questions.d.ts +17 -0
- package/lib/types/backends/codex/session/async-questions.d.ts.map +1 -0
- package/lib/types/backends/codex/session/async-questions.js +89 -0
- package/lib/types/backends/codex/session/session.d.ts.map +1 -1
- package/lib/types/backends/codex/session/session.js +35 -9
- package/lib/types/backends/codex/text.d.ts +3 -3
- package/lib/types/backends/codex/text.js +1 -1
- package/lib/types/backends/codex/translate/items.d.ts.map +1 -1
- package/lib/types/backends/codex/translate/items.js +3 -1
- package/lib/types/backends/codex/translate/question-reply.d.ts +11 -0
- package/lib/types/backends/codex/translate/question-reply.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/question-reply.js +53 -0
- package/lib/types/channel/projection.d.ts.map +1 -1
- package/lib/types/channel/projection.js +10 -0
- package/lib/types/commands.d.ts +10 -0
- package/lib/types/commands.d.ts.map +1 -1
- package/lib/types/commands.js +11 -2
- package/lib/types/components/CommandSuggestions.d.ts.map +1 -1
- package/lib/types/components/CommandSuggestions.js +4 -1
- package/lib/types/components/LogoV2.d.ts +4 -1
- package/lib/types/components/LogoV2.d.ts.map +1 -1
- package/lib/types/components/LogoV2.js +5 -3
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +95 -14
- package/lib/types/components/PermissionsPicker.d.ts +10 -1
- package/lib/types/components/PermissionsPicker.d.ts.map +1 -1
- package/lib/types/components/PermissionsPicker.js +24 -16
- package/lib/types/components/PluginInstallPane.d.ts +21 -0
- package/lib/types/components/PluginInstallPane.d.ts.map +1 -0
- package/lib/types/components/PluginInstallPane.js +84 -0
- package/lib/types/components/PluginManagePane.d.ts +21 -0
- package/lib/types/components/PluginManagePane.d.ts.map +1 -0
- package/lib/types/components/PluginManagePane.js +69 -0
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +7 -3
- package/lib/types/components/SubagentCard.d.ts +13 -1
- package/lib/types/components/SubagentCard.d.ts.map +1 -1
- package/lib/types/components/SubagentCard.js +27 -12
- package/lib/types/components/SubagentDashboard.d.ts +8 -1
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +58 -16
- package/lib/types/components/launchpadLayout.d.ts +14 -1
- package/lib/types/components/launchpadLayout.d.ts.map +1 -1
- package/lib/types/components/launchpadLayout.js +36 -17
- package/lib/types/components/messages/TeamMessageBubble.d.ts +20 -0
- package/lib/types/components/messages/TeamMessageBubble.d.ts.map +1 -0
- package/lib/types/components/messages/TeamMessageBubble.js +15 -0
- package/lib/types/components/sidePanel/PanelHost.d.ts.map +1 -1
- package/lib/types/components/sidePanel/PanelHost.js +5 -1
- package/lib/types/components/sidePanel/PanelStore.d.ts +8 -0
- package/lib/types/components/sidePanel/PanelStore.d.ts.map +1 -1
- package/lib/types/components/sidePanel/PanelStore.js +11 -0
- package/lib/types/components/sidePanel/SidePanelColumn.d.ts.map +1 -1
- package/lib/types/components/sidePanel/SidePanelColumn.js +13 -1
- package/lib/types/components/sidePanel/SidePanelRuntimeContext.d.ts +7 -0
- package/lib/types/components/sidePanel/SidePanelRuntimeContext.d.ts.map +1 -1
- package/lib/types/components/sidePanel/SidePanelRuntimeContext.js +4 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +3 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwComposer.js +20 -8
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts +2 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +104 -13
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +6 -2
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +61 -15
- package/lib/types/components/sidePanel/btw/BtwThreadView.d.ts +14 -4
- package/lib/types/components/sidePanel/btw/BtwThreadView.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/BtwThreadView.js +90 -5
- package/lib/types/components/sidePanel/btw/threads.d.ts +18 -0
- package/lib/types/components/sidePanel/btw/threads.d.ts.map +1 -1
- package/lib/types/components/sidePanel/btw/threads.js +51 -0
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +5 -1
- package/lib/types/components/sidePanel/companion/SplashMascot.d.ts +5 -1
- package/lib/types/components/sidePanel/companion/SplashMascot.d.ts.map +1 -1
- package/lib/types/components/sidePanel/companion/SplashMascot.js +19 -4
- package/lib/types/components/sidePanel/companion/skins.d.ts +8 -0
- package/lib/types/components/sidePanel/companion/skins.d.ts.map +1 -1
- package/lib/types/components/sidePanel/companion/skins.js +57 -12
- package/lib/types/components/sidePanel/types.d.ts +6 -0
- package/lib/types/components/sidePanel/types.d.ts.map +1 -1
- package/lib/types/components/splashArtRows.d.ts +29 -0
- package/lib/types/components/splashArtRows.d.ts.map +1 -0
- package/lib/types/components/splashArtRows.js +31 -0
- package/lib/types/components/teamRoster.d.ts +70 -0
- package/lib/types/components/teamRoster.d.ts.map +1 -0
- package/lib/types/components/teamRoster.js +78 -0
- package/lib/types/dsh-adapter/admission-loader.d.ts +82 -0
- package/lib/types/dsh-adapter/admission-loader.d.ts.map +1 -1
- package/lib/types/dsh-adapter/admission-loader.js +73 -28
- package/lib/types/dsh-adapter/agent-view.d.ts.map +1 -1
- package/lib/types/dsh-adapter/agent-view.js +3 -1
- package/lib/types/dsh-adapter/approvals.d.ts +7 -0
- package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.js +45 -1
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend/translate.js +68 -8
- package/lib/types/dsh-adapter/backend-assembly.d.ts +31 -0
- package/lib/types/dsh-adapter/backend-assembly.d.ts.map +1 -0
- package/lib/types/dsh-adapter/backend-assembly.js +225 -0
- package/lib/types/dsh-adapter/backend-contribution.d.ts +36 -0
- package/lib/types/dsh-adapter/backend-contribution.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend-contribution.js +41 -0
- package/lib/types/dsh-adapter/backend-registry.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backend-registry.js +22 -3
- package/lib/types/dsh-adapter/backends.d.ts.map +1 -1
- package/lib/types/dsh-adapter/backends.js +4 -5
- package/lib/types/dsh-adapter/bundled-presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/bundled-presets.js +60 -3
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +1 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +1 -0
- package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/command-completions.js +64 -7
- package/lib/types/dsh-adapter/channel/compaction.d.ts +7 -2
- package/lib/types/dsh-adapter/channel/compaction.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/compaction.js +100 -26
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +3 -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 +2 -1
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/core/compose.js +12 -0
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/extensions.js +68 -8
- package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts +6 -0
- package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mode-permission-actions.js +104 -12
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.js +8 -1
- package/lib/types/dsh-adapter/channel/permissions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/permissions.js +4 -1
- package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection-helpers.js +2 -0
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-metadata.js +4 -3
- package/lib/types/dsh-adapter/channel/session-reset.js +2 -2
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +7 -0
- package/lib/types/dsh-adapter/channel/settings-host.d.ts +3 -0
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +135 -5
- package/lib/types/dsh-adapter/channel/state.d.ts +6 -0
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.js +18 -6
- package/lib/types/dsh-adapter/channel/transcript.d.ts +7 -0
- package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/transcript.js +19 -2
- package/lib/types/dsh-adapter/compat/agent-team-0.2.0.d.ts +55 -0
- package/lib/types/dsh-adapter/compat/agent-team-0.2.0.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/agent-team-0.2.0.js +96 -0
- package/lib/types/dsh-adapter/contract.d.ts +4 -4
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +5 -5
- package/lib/types/dsh-adapter/effect-ledger.d.ts +7 -0
- package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
- package/lib/types/dsh-adapter/effect-ledger.js +8 -1
- package/lib/types/dsh-adapter/entry-slot.d.ts +3 -1
- package/lib/types/dsh-adapter/entry-slot.d.ts.map +1 -1
- package/lib/types/dsh-adapter/entry-slot.js +2 -2
- package/lib/types/dsh-adapter/fresh-agent.d.ts.map +1 -1
- package/lib/types/dsh-adapter/fresh-agent.js +6 -1
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-access.js +95 -0
- 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 +3 -2
- package/lib/types/dsh-adapter/host-dsh.d.ts +8 -2
- package/lib/types/dsh-adapter/host-dsh.d.ts.map +1 -1
- package/lib/types/dsh-adapter/host-dsh.js +45 -30
- package/lib/types/dsh-adapter/host-entry.js +35 -10
- package/lib/types/dsh-adapter/index.d.ts +9 -10
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +8 -6
- package/lib/types/dsh-adapter/invariant.d.ts +7 -2
- package/lib/types/dsh-adapter/invariant.d.ts.map +1 -1
- package/lib/types/dsh-adapter/invariant.js +6 -3
- package/lib/types/dsh-adapter/migrate/index.js +2 -2
- package/lib/types/dsh-adapter/panels.d.ts.map +1 -1
- package/lib/types/dsh-adapter/panels.js +6 -0
- package/lib/types/dsh-adapter/plugin-declaration.d.ts +99 -1
- package/lib/types/dsh-adapter/plugin-declaration.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-declaration.js +132 -2
- package/lib/types/dsh-adapter/plugin-feed.d.ts +94 -0
- package/lib/types/dsh-adapter/plugin-feed.d.ts.map +1 -0
- package/lib/types/dsh-adapter/plugin-feed.js +135 -0
- package/lib/types/dsh-adapter/plugin-guard.d.ts +115 -0
- package/lib/types/dsh-adapter/plugin-guard.d.ts.map +1 -0
- package/lib/types/dsh-adapter/plugin-guard.js +108 -0
- package/lib/types/dsh-adapter/plugin-install.d.ts +160 -0
- package/lib/types/dsh-adapter/plugin-install.d.ts.map +1 -0
- package/lib/types/dsh-adapter/plugin-install.js +545 -0
- package/lib/types/dsh-adapter/plugin-manage.d.ts +178 -0
- package/lib/types/dsh-adapter/plugin-manage.d.ts.map +1 -0
- package/lib/types/dsh-adapter/plugin-manage.js +468 -0
- package/lib/types/dsh-adapter/plugin-manager.d.ts +78 -2
- package/lib/types/dsh-adapter/plugin-manager.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-manager.js +32 -0
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +49 -2
- package/lib/types/dsh-adapter/plugins-info.d.ts +87 -1
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +131 -26
- package/lib/types/dsh-adapter/process-exit.d.ts +1 -1
- package/lib/types/dsh-adapter/process-exit.d.ts.map +1 -1
- package/lib/types/dsh-adapter/process-exit.js +1 -1
- package/lib/types/dsh-adapter/session-projection-store.d.ts +66 -0
- package/lib/types/dsh-adapter/session-projection-store.d.ts.map +1 -0
- package/lib/types/dsh-adapter/session-projection-store.js +149 -0
- package/lib/types/dsh-adapter/settingsEditor.js +2 -2
- package/lib/types/dsh-adapter/sideQuestion.d.ts +21 -0
- package/lib/types/dsh-adapter/sideQuestion.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sideQuestion.js +53 -0
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +2 -1
- package/lib/types/dsh-adapter/team-mode.d.ts +74 -0
- package/lib/types/dsh-adapter/team-mode.d.ts.map +1 -0
- package/lib/types/dsh-adapter/team-mode.js +188 -0
- package/lib/types/dsh-adapter/team-roster.d.ts +67 -0
- package/lib/types/dsh-adapter/team-roster.d.ts.map +1 -0
- package/lib/types/dsh-adapter/team-roster.js +136 -0
- package/lib/types/dsh-adapter/team-tools.d.ts +58 -0
- package/lib/types/dsh-adapter/team-tools.d.ts.map +1 -0
- package/lib/types/dsh-adapter/team-tools.js +208 -0
- package/lib/types/dsh-adapter/types.d.ts +1 -1
- package/lib/types/dsh-adapter/types.d.ts.map +1 -1
- package/lib/types/i18n.d.ts +607 -16
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +295 -9
- package/lib/types/ink/components/ScrollBox.d.ts +9 -0
- package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
- package/lib/types/ink/components/ScrollBox.js +23 -0
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/kernelPrefs.d.ts +1 -1
- package/lib/types/kernelPrefs.d.ts.map +1 -1
- package/lib/types/native-ts/yoga-layout/index.d.ts.map +1 -1
- package/lib/types/native-ts/yoga-layout/index.js +8 -1
- package/lib/types/permissionPresetLabels.d.ts +25 -0
- package/lib/types/permissionPresetLabels.d.ts.map +1 -0
- package/lib/types/permissionPresetLabels.js +33 -0
- package/lib/types/preset-patch.d.ts +22 -0
- package/lib/types/preset-patch.d.ts.map +1 -0
- package/lib/types/preset-patch.js +14 -0
- package/lib/types/screens/Chat.d.ts +33 -1
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +301 -9
- package/lib/types/screens/Launchpad.d.ts +7 -1
- package/lib/types/screens/Launchpad.d.ts.map +1 -1
- package/lib/types/screens/Launchpad.js +19 -4
- package/lib/types/screens/Settings.d.ts.map +1 -1
- package/lib/types/screens/Settings.js +1 -0
- package/lib/types/screens/chat/usePluginWriteFlow.d.ts +68 -0
- package/lib/types/screens/chat/usePluginWriteFlow.d.ts.map +1 -0
- package/lib/types/screens/chat/usePluginWriteFlow.js +92 -0
- package/lib/types/screens/chatOverlay.d.ts +19 -1
- package/lib/types/screens/chatOverlay.d.ts.map +1 -1
- package/lib/types/sessionModes.d.ts +5 -3
- package/lib/types/sessionModes.d.ts.map +1 -1
- package/lib/types/sessionModes.js +9 -3
- package/lib/types/tips.js +2 -2
- package/lib/types/utils/paths.d.ts +11 -0
- package/lib/types/utils/paths.d.ts.map +1 -1
- package/lib/types/utils/paths.js +13 -0
- package/package.json +126 -120
- package/tui-profile/feed/README.md +63 -0
- package/tui-profile/feed/first-party.json +10 -0
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module @deepseek-harness-tui/dsh-tui/agent-view
|
|
8
8
|
*/
|
|
9
|
+
import { withoutTeammateReminder } from './compat/agent-team-0.2.0.js';
|
|
9
10
|
/** Agent-view row ordering: needs-input first, stopped last. */
|
|
10
11
|
export const AGENT_VIEW_STATUS_ORDER = [
|
|
11
12
|
'needs-input', 'working', 'failed', 'completed', 'idle', 'stopped',
|
|
@@ -59,7 +60,8 @@ export function foldAgentViewEvents(events, start, base) {
|
|
|
59
60
|
switch (event.type) {
|
|
60
61
|
case 'user/message': {
|
|
61
62
|
fold.hasTurns = true;
|
|
62
|
-
|
|
63
|
+
// compat(dsh 0.2.0, log): a 0.2.0 teammate's first prompt drops its identity block.
|
|
64
|
+
const text = agentViewTextOf(fold.firstPrompt.length === 0 ? withoutTeammateReminder(event.data).content : event.data.content);
|
|
63
65
|
if (fold.firstPrompt.length === 0 && text !== undefined)
|
|
64
66
|
fold.firstPrompt = oneLine(text);
|
|
65
67
|
// The prompt stands in for the summary only until the session
|
|
@@ -88,6 +88,9 @@ export declare class ApprovalStore implements PermissionPanelSource {
|
|
|
88
88
|
* have flipped — re-checks below this guard are skipped.
|
|
89
89
|
*/
|
|
90
90
|
private externalCheckedAtEvents;
|
|
91
|
+
/** UI language the parked asks' reasons were resolved in (see
|
|
92
|
+
* {@link refreshReasonLang}). */
|
|
93
|
+
private reasonLang;
|
|
91
94
|
private notifyQueued;
|
|
92
95
|
/**
|
|
93
96
|
* CallIds whose approval ask already settled (decided or cancelled).
|
|
@@ -138,6 +141,10 @@ export declare class ApprovalStore implements PermissionPanelSource {
|
|
|
138
141
|
/** Notify on a microtask so a re-check triggered inside getSnapshot
|
|
139
142
|
* (during a React render) never fires listeners synchronously mid-render. */
|
|
140
143
|
private scheduleNotify;
|
|
144
|
+
/** Re-resolve every parked ask's localized reason after a `/lang` switch;
|
|
145
|
+
* Chat re-renders on the switch, so the read below lands on the new
|
|
146
|
+
* language without a store subscription. */
|
|
147
|
+
private refreshReasonLang;
|
|
141
148
|
/** Rebuild the cached snapshot after any mutation of active. */
|
|
142
149
|
private rebuildSnapshot;
|
|
143
150
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/approvals.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAGL,KAAK,qBAAqB,EAC3B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACtF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"approvals.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/approvals.ts"],"names":[],"mappings":"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"}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
import { compositionRoot } from './host-access.js';
|
|
23
23
|
import { assertCapabilityShadowPolicy, defaultAdapterRuntime, } from '../adapter/kernel/runtime.js';
|
|
24
24
|
import { snapshotLiveSessionEvents } from './compat/liveSession.js';
|
|
25
|
+
import { getLang } from '../i18n.js';
|
|
25
26
|
import { DEFAULT_PERMISSION_OPTIONS, } from '../channel/permissions.js';
|
|
26
27
|
const approvalStores = new WeakMap();
|
|
27
28
|
/** Host-only registration used by the TUI plugin bootstrap. */
|
|
@@ -35,6 +36,26 @@ export function getApprovalStore(ctx) {
|
|
|
35
36
|
return approvalStores.get(root);
|
|
36
37
|
}
|
|
37
38
|
const COMMAND_CLIP = 500;
|
|
39
|
+
/**
|
|
40
|
+
* The ask's reason in the UI language. Requests may carry a localized
|
|
41
|
+
* `displayReason: { en, zh }` next to the English audit `reason` (DSH's
|
|
42
|
+
* auto-review asks do); older request types lack the field, so it is read
|
|
43
|
+
* structurally.
|
|
44
|
+
* @param req - The pending approval request.
|
|
45
|
+
* @returns The localized reason, else `req.reason`.
|
|
46
|
+
*/
|
|
47
|
+
function reasonOf(req) {
|
|
48
|
+
const display = req.displayReason;
|
|
49
|
+
if (display !== null && typeof display === 'object') {
|
|
50
|
+
const byLang = display;
|
|
51
|
+
for (const lang of [getLang(), 'en']) {
|
|
52
|
+
const text = byLang[lang];
|
|
53
|
+
if (typeof text === 'string' && text.trim() !== '')
|
|
54
|
+
return text;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return req.reason;
|
|
58
|
+
}
|
|
38
59
|
/**
|
|
39
60
|
* Recover the gated command from the session log: the approval request
|
|
40
61
|
* links to an already-presented tool call via `callId`, so the arguments
|
|
@@ -135,6 +156,9 @@ export class ApprovalStore {
|
|
|
135
156
|
* have flipped — re-checks below this guard are skipped.
|
|
136
157
|
*/
|
|
137
158
|
externalCheckedAtEvents = -1;
|
|
159
|
+
/** UI language the parked asks' reasons were resolved in (see
|
|
160
|
+
* {@link refreshReasonLang}). */
|
|
161
|
+
reasonLang = getLang();
|
|
138
162
|
notifyQueued = false;
|
|
139
163
|
/**
|
|
140
164
|
* CallIds whose approval ask already settled (decided or cancelled).
|
|
@@ -172,6 +196,7 @@ export class ApprovalStore {
|
|
|
172
196
|
* @returns The cached snapshot; the reference is stable between mutations.
|
|
173
197
|
*/
|
|
174
198
|
getSnapshot() {
|
|
199
|
+
this.refreshReasonLang();
|
|
175
200
|
this.refreshActiveExternal();
|
|
176
201
|
return this.snapshotCache;
|
|
177
202
|
}
|
|
@@ -200,6 +225,7 @@ export class ApprovalStore {
|
|
|
200
225
|
* when the agent has no parked ask.
|
|
201
226
|
*/
|
|
202
227
|
pendingAgentDetail(agentId) {
|
|
228
|
+
this.refreshReasonLang();
|
|
203
229
|
for (const ask of [...(this.active === undefined ? [] : [this.active]), ...this.queue]) {
|
|
204
230
|
if (ask.snapshot.agentId !== agentId)
|
|
205
231
|
continue;
|
|
@@ -223,6 +249,23 @@ export class ApprovalStore {
|
|
|
223
249
|
this.emit();
|
|
224
250
|
});
|
|
225
251
|
}
|
|
252
|
+
/** Re-resolve every parked ask's localized reason after a `/lang` switch;
|
|
253
|
+
* Chat re-renders on the switch, so the read below lands on the new
|
|
254
|
+
* language without a store subscription. */
|
|
255
|
+
refreshReasonLang() {
|
|
256
|
+
const lang = getLang();
|
|
257
|
+
if (lang === this.reasonLang)
|
|
258
|
+
return;
|
|
259
|
+
this.reasonLang = lang;
|
|
260
|
+
for (const pending of [...(this.active === undefined ? [] : [this.active]), ...this.queue]) {
|
|
261
|
+
const reason = reasonOf(pending.request);
|
|
262
|
+
if (reason === undefined)
|
|
263
|
+
delete pending.snapshot.reason;
|
|
264
|
+
else
|
|
265
|
+
pending.snapshot.reason = reason;
|
|
266
|
+
}
|
|
267
|
+
this.rebuildSnapshot();
|
|
268
|
+
}
|
|
226
269
|
/** Rebuild the cached snapshot after any mutation of active. */
|
|
227
270
|
rebuildSnapshot() {
|
|
228
271
|
const pending = this.active;
|
|
@@ -322,6 +365,7 @@ export class ApprovalStore {
|
|
|
322
365
|
assertCapabilityShadowPolicy('host.presentation.approve', this.runtime.mode, this.runtime.slices);
|
|
323
366
|
return new Promise(resolve => {
|
|
324
367
|
const command = commandOf(req);
|
|
368
|
+
const reason = reasonOf(req);
|
|
325
369
|
// Source badge: park() is reached through the approval/request
|
|
326
370
|
// waterfall, which any in-process plugin can dispatch — the agent-id
|
|
327
371
|
// gate in plugin.ts says whose SESSION it names, not that a live tool
|
|
@@ -342,7 +386,7 @@ export class ApprovalStore {
|
|
|
342
386
|
snapshot: {
|
|
343
387
|
agentId: String(req.agent.id),
|
|
344
388
|
toolName: req.toolName,
|
|
345
|
-
...(
|
|
389
|
+
...(reason !== undefined ? { reason } : {}),
|
|
346
390
|
...(command !== undefined ? { command } : {}),
|
|
347
391
|
...(external ? { external: true } : {}),
|
|
348
392
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/backend/translate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAElE,OAAO,KAAK,EAAE,YAAY,EAAqC,MAAM,0BAA0B,CAAA;AAC/F,OAAO,EAAa,KAAK,UAAU,EAAqB,KAAK,cAAc,EAA0D,MAAM,uBAAuB,CAAA;AAElK,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAI3D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/backend/translate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAElE,OAAO,KAAK,EAAE,YAAY,EAAqC,MAAM,0BAA0B,CAAA;AAC/F,OAAO,EAAa,KAAK,UAAU,EAAqB,KAAK,cAAc,EAA0D,MAAM,uBAAuB,CAAA;AAElK,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAI3D,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAM1F,MAAM,WAAW,iBAAiB;IAChC;;0DAEsD;IACtD,KAAK,IAAI,iBAAiB,GAAG,SAAS,CAAA;IACtC;4EACwE;IACxE,KAAK,IAAI,OAAO,CAAA;IAChB;+DAC2D;IAC3D,WAAW,IAAI,OAAO,CAAA;CACvB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAE5D;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAkEtD;AA6FD,2EAA2E;AAC3E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB;4BA+K1B,YAAY,KAAG,SAAS,UAAU,EAAE;4BA0JpC,oBAAoB,KAAG,SAAS,UAAU,EAAE;8BAmB1C,SAAS,YAAY,EAAE,KAAG,SAAS,UAAU,EAAE;iBAW9D,IAAI;4BA7TS,MAAM,WAAW,MAAM,KAAG,YAAY,GAAG,SAAS;8BAYhD,MAAM,WAAW,MAAM,QAAQ,YAAY,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,KAAG,cAAc,GAAG,SAAS;EAyTjI;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
|
@@ -4,6 +4,8 @@ import { BACKGROUND_START_ACK, isSubagentToolName, parseJobOutputId, todoPanelIt
|
|
|
4
4
|
import { harnessToolResultView, prepareReplayEvents, toolErrorText } from '../channel/transcript.js';
|
|
5
5
|
import { isCompactionCheckpointSource, toolResultPayload } from '../compat/messages.js';
|
|
6
6
|
import { transcriptImagesOf } from '../transcript-images.js';
|
|
7
|
+
import { isTeamToolName, TEAM_SPAWN_TOOL, teamMessageOf, teamToolCallView, teamToolResultView } from '../team-tools.js';
|
|
8
|
+
import { teamMailboxAsRelay, withoutTeammateReminder } from '../compat/agent-team-0.2.0.js';
|
|
7
9
|
/**
|
|
8
10
|
* DeepSeek's rate windows, injected into the shared projector as its
|
|
9
11
|
* `pricingWindow`: each usage buckets by the time its request ran.
|
|
@@ -148,6 +150,8 @@ export function createDshTranslator(deps) {
|
|
|
148
150
|
/** Frame revisions are monotone within one attached Agent lifecycle; a
|
|
149
151
|
* re-delivered or out-of-order frame is dropped here. */
|
|
150
152
|
let lastStreamRevision = -1;
|
|
153
|
+
/** Whether this session's first human prompt has been translated. */
|
|
154
|
+
let promptSeen = false;
|
|
151
155
|
/**
|
|
152
156
|
* Open calls by callId until their result: what the result's presenter,
|
|
153
157
|
* images and task feeds need. `card: false` = question-presented (the
|
|
@@ -156,6 +160,35 @@ export function createDshTranslator(deps) {
|
|
|
156
160
|
* projector's own card index: deleted on result, cleared on reset.
|
|
157
161
|
*/
|
|
158
162
|
const openCalls = new Map();
|
|
163
|
+
/**
|
|
164
|
+
* `spawn_teammate` calls that have not written their member yet. The team
|
|
165
|
+
* refuses a teammate (name taken or invalid, member limit, not the Lead,
|
|
166
|
+
* service disposing, cancelled) before it appends `team/member`: no roster
|
|
167
|
+
* row carries that error, so a failed result brings back the plain card.
|
|
168
|
+
* Once the member is written its failure shows on the roster, and the call
|
|
169
|
+
* leaves this map. Bounded like `openCalls`.
|
|
170
|
+
*/
|
|
171
|
+
const unwrittenSpawns = new Map();
|
|
172
|
+
/** A `team/member` write settles the pending spawn of that name. Two
|
|
173
|
+
* parallel spawns of one name cannot be told apart; the first one goes. */
|
|
174
|
+
const onTeamMember = (data) => {
|
|
175
|
+
const name = data?.member?.name;
|
|
176
|
+
if (typeof name !== 'string')
|
|
177
|
+
return;
|
|
178
|
+
for (const [callId, call] of unwrittenSpawns) {
|
|
179
|
+
let args;
|
|
180
|
+
try {
|
|
181
|
+
args = JSON.parse(call.argsJson);
|
|
182
|
+
}
|
|
183
|
+
catch {
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
if (args?.name === name) {
|
|
187
|
+
unwrittenSpawns.delete(callId);
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
159
192
|
/** Ask the producing tool how its call should render (diff/terminal/…).
|
|
160
193
|
* Unknown tool, unparseable args, or a throwing presenter all degrade to
|
|
161
194
|
* the plain text card. */
|
|
@@ -163,7 +196,7 @@ export function createDshTranslator(deps) {
|
|
|
163
196
|
try {
|
|
164
197
|
const tool = deps.tools()?.get(name, deps.scope());
|
|
165
198
|
if (tool?.presentCall === undefined)
|
|
166
|
-
return
|
|
199
|
+
return teamToolCallView(name, rawArgs);
|
|
167
200
|
return tool.presentCall(JSON.parse(rawArgs));
|
|
168
201
|
}
|
|
169
202
|
catch {
|
|
@@ -182,8 +215,13 @@ export function createDshTranslator(deps) {
|
|
|
182
215
|
if (local !== undefined)
|
|
183
216
|
return local;
|
|
184
217
|
const tool = deps.tools()?.get(name, deps.scope());
|
|
185
|
-
if (tool?.presentResult === undefined)
|
|
186
|
-
|
|
218
|
+
if (tool?.presentResult === undefined) {
|
|
219
|
+
// Only the team tools read the text: skip joining every other result.
|
|
220
|
+
if (!isTeamToolName(name))
|
|
221
|
+
return undefined;
|
|
222
|
+
const text = toolResultPayload(data.message).content.map(item => (item.type === 'text' ? item.text : '')).join('').trim();
|
|
223
|
+
return teamToolResultView(name, rawArgs, text);
|
|
224
|
+
}
|
|
187
225
|
return tool.presentResult(JSON.parse(rawArgs), {
|
|
188
226
|
...toolResultPayload(data.message),
|
|
189
227
|
...(data.meta !== undefined ? { meta: data.meta } : {}),
|
|
@@ -194,7 +232,8 @@ export function createDshTranslator(deps) {
|
|
|
194
232
|
}
|
|
195
233
|
};
|
|
196
234
|
const translateUserMessage = (event) => {
|
|
197
|
-
|
|
235
|
+
// compat(dsh 0.2.0, log): a 0.2.0 mailbox delivery reads as the relay it became.
|
|
236
|
+
const data = teamMailboxAsRelay(event.data);
|
|
198
237
|
const base = { id: data.id, anchor: String(event.seq), seq: event.seq, time: event.time, blocks: data.content };
|
|
199
238
|
// Both legacy and V4 checkpoints render as a folded summary rather than
|
|
200
239
|
// disappearing with the other injected context.
|
|
@@ -220,16 +259,25 @@ export function createDshTranslator(deps) {
|
|
|
220
259
|
if (data.source.kind === 'model-selection') {
|
|
221
260
|
return [{ type: 'notice', level: 'info', text: textOf(data.content) }];
|
|
222
261
|
}
|
|
262
|
+
// An Agent Teams peer message: a bubble labelled with its sender.
|
|
263
|
+
const team = teamMessageOf(data.source, data.content);
|
|
264
|
+
if (team !== undefined) {
|
|
265
|
+
return [{ type: 'user.message', ...base, blocks: team.blocks, source: 'team-message', sender: team.sender, text: team.text }];
|
|
266
|
+
}
|
|
223
267
|
// Injected context (plugin/skill source) is model-facing only; it has no
|
|
224
268
|
// transcript-facing text.
|
|
225
269
|
if (data.source.kind !== 'user')
|
|
226
270
|
return [{ type: 'user.message', ...base, source: 'injected', text: '' }];
|
|
271
|
+
// compat(dsh 0.2.0, log): a 0.2.0 teammate's first prompt drops its identity block.
|
|
272
|
+
const content = promptSeen ? data.content : withoutTeammateReminder(data).content;
|
|
273
|
+
promptSeen = true;
|
|
227
274
|
return [{
|
|
228
275
|
type: 'user.message',
|
|
229
276
|
...base,
|
|
277
|
+
blocks: content,
|
|
230
278
|
source: 'user',
|
|
231
|
-
text: firstTextOf(
|
|
232
|
-
images: transcriptImagesOf(
|
|
279
|
+
text: firstTextOf(content),
|
|
280
|
+
images: transcriptImagesOf(content, deps.attachments),
|
|
233
281
|
}];
|
|
234
282
|
};
|
|
235
283
|
const translateToolResult = (event) => {
|
|
@@ -237,6 +285,8 @@ export function createDshTranslator(deps) {
|
|
|
237
285
|
const callId = data.message.source.callId;
|
|
238
286
|
const call = openCalls.get(callId);
|
|
239
287
|
openCalls.delete(callId);
|
|
288
|
+
const spawn = unwrittenSpawns.get(callId);
|
|
289
|
+
unwrittenSpawns.delete(callId);
|
|
240
290
|
const payload = toolResultPayload(data.message);
|
|
241
291
|
const isError = data.error !== undefined || payload.isError;
|
|
242
292
|
// Text/presentation/images are derived only for results something
|
|
@@ -253,11 +303,13 @@ export function createDshTranslator(deps) {
|
|
|
253
303
|
time: event.time,
|
|
254
304
|
content: payload.content,
|
|
255
305
|
text,
|
|
256
|
-
...(isError && call !== undefined ? { errorText: toolErrorText(event) } : {}),
|
|
306
|
+
...(isError && (call !== undefined || spawn !== undefined) ? { errorText: toolErrorText(event) } : {}),
|
|
257
307
|
...(card === undefined ? {} : { images: transcriptImagesOf(data.message.content, deps.attachments) }),
|
|
258
308
|
...(data.meta === undefined ? {} : { meta: data.meta }),
|
|
259
309
|
...(card === undefined || isError ? {} : { presentation: presentResultView(card.name, card.args, data) }),
|
|
260
310
|
};
|
|
311
|
+
if (spawn !== undefined && isError)
|
|
312
|
+
return [{ ...spawn, presentation: presentCallView(spawn.name, spawn.argsJson) }, result];
|
|
261
313
|
if (card === undefined || isError)
|
|
262
314
|
return [result];
|
|
263
315
|
const events = [result];
|
|
@@ -328,8 +380,11 @@ export function createDshTranslator(deps) {
|
|
|
328
380
|
return [{ ...base, presentation: QUESTION }];
|
|
329
381
|
}
|
|
330
382
|
// The delegation tools render as the live subagent card.
|
|
331
|
-
if (isSubagentToolName(data.name))
|
|
383
|
+
if (isSubagentToolName(data.name)) {
|
|
384
|
+
if (data.name === TEAM_SPAWN_TOOL)
|
|
385
|
+
unwrittenSpawns.set(callId, base);
|
|
332
386
|
return [{ ...base, presentation: SUBAGENT }];
|
|
387
|
+
}
|
|
333
388
|
openCalls.set(callId, { name: data.name, args: data.arguments, card: true });
|
|
334
389
|
return [{ ...base, presentation: presentCallView(data.name, data.arguments) }];
|
|
335
390
|
}
|
|
@@ -374,6 +429,8 @@ export function createDshTranslator(deps) {
|
|
|
374
429
|
break;
|
|
375
430
|
}
|
|
376
431
|
const data = event.data;
|
|
432
|
+
if (type === 'team/member')
|
|
433
|
+
onTeamMember(data);
|
|
377
434
|
switch (type) {
|
|
378
435
|
case 'assistant/chunk': {
|
|
379
436
|
// Pre-0.1.5 live streams and raw pre-V3 logs carry per-token chunks
|
|
@@ -454,6 +511,7 @@ export function createDshTranslator(deps) {
|
|
|
454
511
|
*/
|
|
455
512
|
const translateReplay = (events) => {
|
|
456
513
|
lastStreamRevision = -1;
|
|
514
|
+
promptSeen = false;
|
|
457
515
|
const out = [];
|
|
458
516
|
for (const event of prepareReplayEvents(events)) {
|
|
459
517
|
for (const translated of translateEvent(event))
|
|
@@ -464,7 +522,9 @@ export function createDshTranslator(deps) {
|
|
|
464
522
|
/** Forget the frame fence and every open call (paired with a projector reset). */
|
|
465
523
|
const reset = () => {
|
|
466
524
|
lastStreamRevision = -1;
|
|
525
|
+
promptSeen = false;
|
|
467
526
|
openCalls.clear();
|
|
527
|
+
unwrittenSpawns.clear();
|
|
468
528
|
};
|
|
469
529
|
return { translateEvent, translateFrame, translateReplay, reset, presentCallView, presentResultView };
|
|
470
530
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
/** One bundle whose `Backend` declaration did not become a registry entry. */
|
|
3
|
+
export interface BackendAssemblyRefusal {
|
|
4
|
+
readonly bundle: string;
|
|
5
|
+
readonly reason: string;
|
|
6
|
+
}
|
|
7
|
+
/** What one assembly pass did. Returned rather than only logged, so the
|
|
8
|
+
* regression can assert the pass without reading the logs. */
|
|
9
|
+
export interface BackendAssembly {
|
|
10
|
+
/** The profile manifest the pass read, when this boot has one. */
|
|
11
|
+
readonly profile: string | undefined;
|
|
12
|
+
/** Bundle layers the pass looked at (composition-owned packages excluded). */
|
|
13
|
+
readonly scanned: readonly string[];
|
|
14
|
+
/** Backend ids registered by this pass, in scan order. The built-in seed is
|
|
15
|
+
* registered before it and is not part of the report. */
|
|
16
|
+
readonly registered: readonly string[];
|
|
17
|
+
/** Bundles that announced a backend this host could not assemble. */
|
|
18
|
+
readonly refused: readonly BackendAssemblyRefusal[];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Register every backend an installed bundle declares.
|
|
22
|
+
*
|
|
23
|
+
* Synchronous by contract (see the module comment): the caller runs this before
|
|
24
|
+
* the boot parses a backend choice. A second pass over the same composition is a
|
|
25
|
+
* no-op for the entries the first pass registered (see {@link assemblyStateOf}) —
|
|
26
|
+
* two callers exist on purpose: the entry decides which kernel to boot *before*
|
|
27
|
+
* `apply` runs, and both questions ("is this bundle a layer" for the route, "which
|
|
28
|
+
* backend is this id" for the session) are answered by the same registry.
|
|
29
|
+
*/
|
|
30
|
+
export declare function assembleBackendsFromProfile(ctx: Context): BackendAssembly;
|
|
31
|
+
//# sourceMappingURL=backend-assembly.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend-assembly.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/backend-assembly.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAOlD,8EAA8E;AAC9E,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB;AAED;+DAC+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,kEAAkE;IAClE,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,8EAA8E;IAC9E,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC;8DAC0D;IAC1D,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,qEAAqE;IACrE,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAA;CACpD;AAED;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,OAAO,GAAG,eAAe,CA2CzE"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The assembly point (Stage D-1 / roadmap §4.7): the `Backend` declarations of the
|
|
3
|
+
* bundles a profile composes become registry entries, so that installing a
|
|
4
|
+
* third-party backend bundle and restarting puts that backend in the kernel
|
|
5
|
+
* picker.
|
|
6
|
+
*
|
|
7
|
+
* Three properties decide the shape of this file.
|
|
8
|
+
*
|
|
9
|
+
* - **Discovery precedes parsing, synchronously.** The boot parses a backend
|
|
10
|
+
* choice through the registry (`parseBackendChoice`, membership is the second
|
|
11
|
+
* half of the parse — P0 D1), and an id that is not registered yet reads as an
|
|
12
|
+
* unknown value: dsh plus a warning, never the backend the user installed.
|
|
13
|
+
* Nothing that waits for a fiber to activate can satisfy that: a third-party
|
|
14
|
+
* bundle's rows are composed *after* this row (the profile's own bundles come
|
|
15
|
+
* before `cordis.patch.yml`), so an event or timer would fire after the parse.
|
|
16
|
+
* The discovery therefore reads **files** — the profile's own manifest — and
|
|
17
|
+
* registers before anything is parsed. The import of the backend module stays
|
|
18
|
+
* lazy (an installed backend nobody selects is never imported, D4).
|
|
19
|
+
*
|
|
20
|
+
* - **One reading of "what is installed".** `/plugin install` and the CLI both
|
|
21
|
+
* record an installed bundle in the profile manifest's `dsh.profile.bundles`
|
|
22
|
+
* (the manager's own `reconcile()` writes it), and the profile manifest is what
|
|
23
|
+
* the Loader composes. So the scan reads that file, not the plugin-manager
|
|
24
|
+
* service: the service's `listBundles()` is asynchronous, and a service answer
|
|
25
|
+
* would arrive after the parse. The predicate is the same one
|
|
26
|
+
* `./plugin-manager.ts`'s `extraBundles()` uses — the composition's own packages
|
|
27
|
+
* are not plugins a person installed — so the list and the assembly cannot
|
|
28
|
+
* disagree about whom they are talking about.
|
|
29
|
+
*
|
|
30
|
+
* - **Judgement, never a guess.** A bundle's declaration is read only through the
|
|
31
|
+
* identity rule #1568 established: the entry is resolved by the Loader's own ESM
|
|
32
|
+
* resolver and the `dsh-plugin.json` counts only beside the `package.json` that
|
|
33
|
+
* establishes that entry's package root. A Loader without Node internals cannot
|
|
34
|
+
* answer that question, and this module then refuses to answer it too, saying
|
|
35
|
+
* so, instead of falling back to a second path resolver of its own.
|
|
36
|
+
*
|
|
37
|
+
* A refusal is contained, never silent and never fatal: notes 0009 requires a
|
|
38
|
+
* failure to be attributable to the entry it belongs to, without taking the rest
|
|
39
|
+
* of the composition down. Registration errors therefore become one warning line
|
|
40
|
+
* naming the bundle and the reason (the registry's own checks stay as loud as they
|
|
41
|
+
* are — this catches them one level out), and every other bundle is still
|
|
42
|
+
* assembled.
|
|
43
|
+
*/
|
|
44
|
+
import { readFileSync } from 'node:fs';
|
|
45
|
+
import { fileURLToPath } from 'node:url';
|
|
46
|
+
import { join } from 'node:path';
|
|
47
|
+
import { logForDebugging } from '../utils/debug.js';
|
|
48
|
+
import { findManifest, loadThroughLoader, compositionLoader, resolveEntryUrl } from './admission-loader.js';
|
|
49
|
+
import { backendManifestOf } from './backend-contribution.js';
|
|
50
|
+
import { registerBackend } from './backend-registry.js';
|
|
51
|
+
import { declaredBackendsIn, isCompositionOwned } from './plugin-declaration.js';
|
|
52
|
+
/**
|
|
53
|
+
* Register every backend an installed bundle declares.
|
|
54
|
+
*
|
|
55
|
+
* Synchronous by contract (see the module comment): the caller runs this before
|
|
56
|
+
* the boot parses a backend choice. A second pass over the same composition is a
|
|
57
|
+
* no-op for the entries the first pass registered (see {@link assemblyStateOf}) —
|
|
58
|
+
* two callers exist on purpose: the entry decides which kernel to boot *before*
|
|
59
|
+
* `apply` runs, and both questions ("is this bundle a layer" for the route, "which
|
|
60
|
+
* backend is this id" for the session) are answered by the same registry.
|
|
61
|
+
*/
|
|
62
|
+
export function assembleBackendsFromProfile(ctx) {
|
|
63
|
+
const profile = profileManifestPathOf(ctx);
|
|
64
|
+
const refused = [];
|
|
65
|
+
const registered = [];
|
|
66
|
+
const done = (scanned) => ({ profile, scanned, registered, refused });
|
|
67
|
+
if (profile === undefined) {
|
|
68
|
+
logForDebugging('dsh-tui: backend assembly skipped — this composition has no profile directory to read (no baseUrl)');
|
|
69
|
+
return done([]);
|
|
70
|
+
}
|
|
71
|
+
const bundles = installedBundlesOf(profile);
|
|
72
|
+
if (bundles === undefined)
|
|
73
|
+
return done([]);
|
|
74
|
+
const scanned = bundles.filter(name => !isCompositionOwned(name));
|
|
75
|
+
if (scanned.length === 0)
|
|
76
|
+
return done(scanned);
|
|
77
|
+
const baseUrl = ctx.baseUrl;
|
|
78
|
+
const loader = compositionLoader(ctx);
|
|
79
|
+
if (loader?.internal === undefined) {
|
|
80
|
+
// The Loader runs plugins through plain `import()` when it has no Node
|
|
81
|
+
// internals, but that path resolves relative to *this* module: an answer
|
|
82
|
+
// computed here would name a module the Loader never executes. Refuse.
|
|
83
|
+
logForDebugging(`dsh-tui: backend assembly skipped — the Loader ESM resolver is unavailable, so the entry of `
|
|
84
|
+
+ `${scanned.length} installed bundle(s) cannot be established: ${scanned.join(', ')}`);
|
|
85
|
+
return done(scanned);
|
|
86
|
+
}
|
|
87
|
+
const state = assemblyStateOf(ctx);
|
|
88
|
+
for (const bundle of scanned) {
|
|
89
|
+
for (const refusal of assembleBundle(bundle, loader, baseUrl, registered, state.owners))
|
|
90
|
+
refused.push(refusal);
|
|
91
|
+
}
|
|
92
|
+
if (registered.length > 0) {
|
|
93
|
+
logForDebugging(`dsh-tui: registered ${registered.length} backend(s) from installed bundles: ${registered.join(', ')}`);
|
|
94
|
+
}
|
|
95
|
+
for (const refusal of refused) {
|
|
96
|
+
// Attributable and loud for the person who installed it — a backend that
|
|
97
|
+
// silently never appears is the one outcome nobody can debug. Said once per
|
|
98
|
+
// composition: the second pass (the entry assembles, `apply` assembles again)
|
|
99
|
+
// reports the same refusals and must not repeat them to the reader.
|
|
100
|
+
const said = `${refusal.bundle}\u0000${refusal.reason}`;
|
|
101
|
+
if (state.warned.has(said))
|
|
102
|
+
continue;
|
|
103
|
+
state.warned.add(said);
|
|
104
|
+
ctx.logger.warn(`dsh-tui: bundle "${refusal.bundle}" declares a backend that was not registered: ${refusal.reason}`);
|
|
105
|
+
}
|
|
106
|
+
return done(scanned);
|
|
107
|
+
}
|
|
108
|
+
const assemblyStateOf = (ctx) => {
|
|
109
|
+
const existing = assembled.get(ctx);
|
|
110
|
+
if (existing !== undefined)
|
|
111
|
+
return existing;
|
|
112
|
+
const fresh = { owners: new Map(), warned: new Set() };
|
|
113
|
+
assembled.set(ctx, fresh);
|
|
114
|
+
return fresh;
|
|
115
|
+
};
|
|
116
|
+
const assembled = new WeakMap();
|
|
117
|
+
/** One bundle's declarations → registry entries. Returns the refusals it owns. */
|
|
118
|
+
function assembleBundle(bundle, loader, baseUrl, registered, owned) {
|
|
119
|
+
const refuse = (reason) => [{ bundle, reason }];
|
|
120
|
+
const url = resolveEntryUrl(loader, bundle, baseUrl);
|
|
121
|
+
if (url === undefined) {
|
|
122
|
+
return refuse('its entry module could not be resolved through the Loader resolver');
|
|
123
|
+
}
|
|
124
|
+
let entryFile;
|
|
125
|
+
try {
|
|
126
|
+
entryFile = fileURLToPath(url);
|
|
127
|
+
}
|
|
128
|
+
catch {
|
|
129
|
+
return refuse(`its entry resolved to ${url}, which is not a file`);
|
|
130
|
+
}
|
|
131
|
+
const manifestPath = findManifest(entryFile);
|
|
132
|
+
// No package-root declaration: this bundle is not a TUI plugin at all, which
|
|
133
|
+
// is the normal case and not a problem to report.
|
|
134
|
+
if (manifestPath === undefined)
|
|
135
|
+
return [];
|
|
136
|
+
let source;
|
|
137
|
+
try {
|
|
138
|
+
source = readFileSync(manifestPath, 'utf8');
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
return refuse(`its declaration at ${manifestPath} could not be read (${messageOf(error)})`);
|
|
142
|
+
}
|
|
143
|
+
const { backends, problems } = declaredBackendsIn(source);
|
|
144
|
+
const refusals = problems.map(problem => ({ bundle, reason: problem }));
|
|
145
|
+
if (backends.length === 0 && problems.length === 0)
|
|
146
|
+
return [];
|
|
147
|
+
// The public declaration has no export selector: all entries would load the
|
|
148
|
+
// same `backend` object, which can carry only one session/data-directory id.
|
|
149
|
+
if (backends.length > 1)
|
|
150
|
+
return [...refusals, { bundle, reason: 'only one Backend per bundle can bind the fixed backend export' }];
|
|
151
|
+
for (const declared of backends) {
|
|
152
|
+
// A second pass over the same composition (the entry assembles before the
|
|
153
|
+
// route and `apply` assembles again) must be a no-op, not a storm of
|
|
154
|
+
// "already registered". An id this very bundle registered is the same entry;
|
|
155
|
+
// an id another bundle claimed is a conflict, and the registry answers it.
|
|
156
|
+
if (owned.get(declared.spec.id) === bundle)
|
|
157
|
+
continue;
|
|
158
|
+
let manifest;
|
|
159
|
+
try {
|
|
160
|
+
manifest = backendManifestOf(declared.spec);
|
|
161
|
+
}
|
|
162
|
+
catch (error) {
|
|
163
|
+
refusals.push({ bundle, reason: `its Backend declaration could not be projected (${messageOf(error)})` });
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
try {
|
|
167
|
+
// `load` is the module namespace, resolved once here and imported only if
|
|
168
|
+
// this backend is ever selected. The registry reads `backendExport`
|
|
169
|
+
// (default `backend`) and `unloadExport` out of that namespace, exactly as
|
|
170
|
+
// it does for the built-in index.
|
|
171
|
+
registerBackend({ manifest, load: () => loadThroughLoader(loader, bundle, url, baseUrl) });
|
|
172
|
+
registered.push(manifest.id);
|
|
173
|
+
owned.set(manifest.id, bundle);
|
|
174
|
+
}
|
|
175
|
+
catch (error) {
|
|
176
|
+
refusals.push({ bundle, reason: messageOf(error) });
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return refusals;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The profile manifest this boot reads and composes: the `package.json` of the
|
|
183
|
+
* directory the Loader resolves module specifiers against (`Context.baseUrl`, set
|
|
184
|
+
* by the host to the profile directory — every row's context inherits it). No
|
|
185
|
+
* `baseUrl` means no profile (a bare Cordis root, a `--config` overlay, a source
|
|
186
|
+
* checkout), and then no bundle was installed into anything either.
|
|
187
|
+
*/
|
|
188
|
+
function profileManifestPathOf(ctx) {
|
|
189
|
+
const baseUrl = ctx.baseUrl;
|
|
190
|
+
if (typeof baseUrl !== 'string' || baseUrl === '')
|
|
191
|
+
return undefined;
|
|
192
|
+
try {
|
|
193
|
+
const url = new URL(baseUrl);
|
|
194
|
+
if (url.protocol !== 'file:')
|
|
195
|
+
return undefined;
|
|
196
|
+
return join(fileURLToPath(url), 'package.json');
|
|
197
|
+
}
|
|
198
|
+
catch {
|
|
199
|
+
return undefined;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* The bundle layers this profile composes: `dsh.profile.bundles` in its manifest,
|
|
204
|
+
* which is what `/plugin install`, `enable` and the CLI all write (the manager's
|
|
205
|
+
* `reconcile()` appends every newly installed bundle that declares `dsh.bundle`;
|
|
206
|
+
* a disabled one leaves the list without being uninstalled). `undefined` when the
|
|
207
|
+
* file cannot be read or parsed — a broken profile is not an empty one.
|
|
208
|
+
*/
|
|
209
|
+
function installedBundlesOf(profile) {
|
|
210
|
+
let parsed;
|
|
211
|
+
try {
|
|
212
|
+
parsed = JSON.parse(readFileSync(profile, 'utf8'));
|
|
213
|
+
}
|
|
214
|
+
catch (error) {
|
|
215
|
+
logForDebugging(`dsh-tui: backend assembly skipped — ${profile} could not be read (${messageOf(error)})`);
|
|
216
|
+
return undefined;
|
|
217
|
+
}
|
|
218
|
+
const declared = parsed?.dsh?.profile?.bundles;
|
|
219
|
+
if (!Array.isArray(declared))
|
|
220
|
+
return [];
|
|
221
|
+
return declared.filter((name) => typeof name === 'string' && name !== '');
|
|
222
|
+
}
|
|
223
|
+
function messageOf(error) {
|
|
224
|
+
return error instanceof Error ? error.message : String(error);
|
|
225
|
+
}
|
|
@@ -15,12 +15,48 @@
|
|
|
15
15
|
* mechanism (the registry reads an export name out of a module namespace), not a
|
|
16
16
|
* contribution field. A contribution hands its handler object over at
|
|
17
17
|
* registration, like `assertSceneHandler`'s scene handlers.
|
|
18
|
+
*
|
|
19
|
+
* D-1 added the other direction ({@link backendManifestOf}): the runtime form of
|
|
20
|
+
* a **third-party** declaration, so that an installed bundle can be registered
|
|
21
|
+
* through the same registry as the seed. The two directions are inverses on the
|
|
22
|
+
* intersection of the two shapes; the in-tree-only fields are what the pair
|
|
23
|
+
* proves (a third-party entry can never grow one).
|
|
18
24
|
*/
|
|
19
25
|
import type { BackendManifest } from '../agent/backend-manifest.js';
|
|
26
|
+
import type { BackendSpec } from '../adapter/spec/tui-contributions.js';
|
|
20
27
|
/**
|
|
21
28
|
* Project one manifest onto the public declaration. Pure: the same manifest
|
|
22
29
|
* projects to a deep-equal value every time (no timestamps, no host state), which
|
|
23
30
|
* is what lets the gate compare two projections and diff keys.
|
|
24
31
|
*/
|
|
25
32
|
export declare function backendContributionOf(manifest: BackendManifest): Record<string, unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* The registry entry a **third-party** declaration becomes (D-1): the inverse of
|
|
35
|
+
* {@link backendContributionOf} on the fields both shapes carry.
|
|
36
|
+
*
|
|
37
|
+
* A contribution declares less than an in-tree manifest, and everything it cannot
|
|
38
|
+
* declare is fixed here rather than defaulted by the caller:
|
|
39
|
+
*
|
|
40
|
+
* - `inTree: false` — the one fact that flips the registry's rules (reserved ids,
|
|
41
|
+
* host label keys, `alwaysAvailable`, `nativeKey`, label sanitization). A
|
|
42
|
+
* contribution is exactly the non-in-tree case, so the projection says so
|
|
43
|
+
* instead of leaving a boolean for a caller to get wrong.
|
|
44
|
+
* - `label` is already the literal the spec requires; `label.kind === 'key'` is
|
|
45
|
+
* unreachable here (the spec has no such field, and `validateBackendSpec()`
|
|
46
|
+
* refuses it as an unknown field), so a declaration can never borrow this
|
|
47
|
+
* host's own vocabulary.
|
|
48
|
+
* - `alwaysAvailable` / `nativeKey` / `vendorPackages` / `backendExport` are
|
|
49
|
+
* **not** writable from a declaration and are therefore absent from the
|
|
50
|
+
* result: `registerBackend()` rejects an explicit `alwaysAvailable` /
|
|
51
|
+
* `nativeKey`, and the `backendExport` default (`'backend'`) is the registry's
|
|
52
|
+
* documented read of the module namespace, not a field to invent here.
|
|
53
|
+
* - `confirmation` stays behind: it is a request to the *install / enable* chain
|
|
54
|
+
* (`BACKEND_CONFIRMATION_POLICIES`), which reads the declaration, not the
|
|
55
|
+
* manifest. Dropping it here is what keeps one reading of it.
|
|
56
|
+
*
|
|
57
|
+
* Pure, like its counterpart: the same declaration projects to a deep-equal
|
|
58
|
+
* manifest every time, and the result is the value `registerBackend()` validates,
|
|
59
|
+
* admits and registers.
|
|
60
|
+
*/
|
|
61
|
+
export declare function backendManifestOf(spec: BackendSpec): BackendManifest;
|
|
26
62
|
//# sourceMappingURL=backend-contribution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend-contribution.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/backend-contribution.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"backend-contribution.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/backend-contribution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAA;AAoBvE;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAaxF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe,CAYpE"}
|