@deepseek-harness-tui/dsh-tui 0.10.0 → 0.10.2
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 +5 -2
- package/bin/dsh-tui.js +99 -33
- package/cordis.patch.yml +25 -5
- package/lib/types/adapter/channel/actions.d.ts +17 -0
- package/lib/types/adapter/channel/actions.d.ts.map +1 -0
- package/lib/types/adapter/channel/actions.js +28 -0
- package/lib/types/adapter/channel/consumer.d.ts +34 -0
- package/lib/types/adapter/channel/consumer.d.ts.map +1 -0
- package/lib/types/adapter/channel/consumer.js +87 -0
- package/lib/types/adapter/channel/features.d.ts +12 -0
- package/lib/types/adapter/channel/features.d.ts.map +1 -0
- package/lib/types/adapter/channel/features.js +41 -0
- package/lib/types/adapter/channel/host-registry.d.ts +40 -0
- package/lib/types/adapter/channel/host-registry.d.ts.map +1 -0
- package/lib/types/adapter/channel/host-registry.js +120 -0
- package/lib/types/adapter/channel/index.d.ts +22 -0
- package/lib/types/adapter/channel/index.d.ts.map +1 -0
- package/lib/types/adapter/channel/index.js +21 -0
- package/lib/types/adapter/channel/internal-token.d.ts +12 -0
- package/lib/types/adapter/channel/internal-token.d.ts.map +1 -0
- package/lib/types/adapter/channel/internal-token.js +11 -0
- package/lib/types/adapter/channel/plugins.d.ts +17 -0
- package/lib/types/adapter/channel/plugins.d.ts.map +1 -0
- package/lib/types/adapter/channel/plugins.js +47 -0
- package/lib/types/adapter/channel/projection.d.ts +15 -0
- package/lib/types/adapter/channel/projection.d.ts.map +1 -0
- package/lib/types/adapter/channel/projection.js +59 -0
- package/lib/types/adapter/channel/provider.d.ts +52 -0
- package/lib/types/adapter/channel/provider.d.ts.map +1 -0
- package/lib/types/adapter/channel/provider.js +231 -0
- package/lib/types/adapter/channel/read-view.d.ts +4 -0
- package/lib/types/adapter/channel/read-view.d.ts.map +1 -0
- package/lib/types/adapter/channel/read-view.js +132 -0
- package/lib/types/adapter/channel/session-projection.d.ts +56 -0
- package/lib/types/adapter/channel/session-projection.d.ts.map +1 -0
- package/lib/types/adapter/channel/session-projection.js +247 -0
- package/lib/types/adapter/channel/state.d.ts +11 -0
- package/lib/types/adapter/channel/state.d.ts.map +1 -0
- package/lib/types/adapter/channel/state.js +55 -0
- package/lib/types/adapter/channel/transcript.d.ts +15 -0
- package/lib/types/adapter/channel/transcript.d.ts.map +1 -0
- package/lib/types/adapter/channel/transcript.js +22 -0
- package/lib/types/adapter/channel/ui-policy.d.ts +106 -0
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -0
- package/lib/types/adapter/channel/ui-policy.js +166 -0
- package/lib/types/adapter/channel/ui.d.ts +16 -0
- package/lib/types/adapter/channel/ui.d.ts.map +1 -0
- package/lib/types/adapter/channel/ui.js +168 -0
- package/lib/types/adapter/index.d.ts +20 -0
- package/lib/types/adapter/index.d.ts.map +1 -0
- package/lib/types/adapter/index.js +19 -0
- package/lib/types/adapter/kernel/contract-catalog.d.ts +12 -0
- package/lib/types/adapter/kernel/contract-catalog.d.ts.map +1 -0
- package/lib/types/adapter/kernel/contract-catalog.js +11 -0
- package/lib/types/adapter/kernel/diagnostics.d.ts +18 -0
- package/lib/types/adapter/kernel/diagnostics.d.ts.map +1 -0
- package/lib/types/adapter/kernel/diagnostics.js +16 -0
- package/lib/types/adapter/kernel/driver-types.d.ts +16 -0
- package/lib/types/adapter/kernel/driver-types.d.ts.map +1 -0
- package/lib/types/adapter/kernel/driver-types.js +8 -0
- package/lib/types/adapter/kernel/host-facade.d.ts +65 -0
- package/lib/types/adapter/kernel/host-facade.d.ts.map +1 -0
- package/lib/types/adapter/kernel/host-facade.js +215 -0
- package/lib/types/adapter/kernel/host-probe-access.d.ts +71 -0
- package/lib/types/adapter/kernel/host-probe-access.d.ts.map +1 -0
- package/lib/types/adapter/kernel/host-probe-access.js +121 -0
- package/lib/types/adapter/kernel/index.d.ts +20 -0
- package/lib/types/adapter/kernel/index.d.ts.map +1 -0
- package/lib/types/adapter/kernel/index.js +19 -0
- package/lib/types/adapter/kernel/kernel-runtime.d.ts +138 -0
- package/lib/types/adapter/kernel/kernel-runtime.d.ts.map +1 -0
- package/lib/types/adapter/kernel/kernel-runtime.js +572 -0
- package/lib/types/adapter/kernel/ledger.d.ts +55 -0
- package/lib/types/adapter/kernel/ledger.d.ts.map +1 -0
- package/lib/types/adapter/kernel/ledger.js +33 -0
- package/lib/types/adapter/kernel/legacy-facade.d.ts +22 -0
- package/lib/types/adapter/kernel/legacy-facade.d.ts.map +1 -0
- package/lib/types/adapter/kernel/legacy-facade.js +34 -0
- package/lib/types/adapter/kernel/lifecycle.d.ts +38 -0
- package/lib/types/adapter/kernel/lifecycle.d.ts.map +1 -0
- package/lib/types/adapter/kernel/lifecycle.js +53 -0
- package/lib/types/adapter/kernel/replay-isolation.d.ts +27 -0
- package/lib/types/adapter/kernel/replay-isolation.d.ts.map +1 -0
- package/lib/types/adapter/kernel/replay-isolation.js +45 -0
- package/lib/types/adapter/kernel/replay.d.ts +132 -0
- package/lib/types/adapter/kernel/replay.d.ts.map +1 -0
- package/lib/types/adapter/kernel/replay.js +425 -0
- package/lib/types/adapter/kernel/runtime-context.d.ts +15 -0
- package/lib/types/adapter/kernel/runtime-context.d.ts.map +1 -0
- package/lib/types/adapter/kernel/runtime-context.js +24 -0
- package/lib/types/adapter/kernel/runtime.d.ts +70 -0
- package/lib/types/adapter/kernel/runtime.d.ts.map +1 -0
- package/lib/types/adapter/kernel/runtime.js +325 -0
- package/lib/types/adapter/kernel/slices/channel.d.ts +3 -0
- package/lib/types/adapter/kernel/slices/channel.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/channel.js +8 -0
- package/lib/types/adapter/kernel/slices/decisions.d.ts +3 -0
- package/lib/types/adapter/kernel/slices/decisions.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/decisions.js +10 -0
- package/lib/types/adapter/kernel/slices/extensions.d.ts +8 -0
- package/lib/types/adapter/kernel/slices/extensions.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/extensions.js +43 -0
- package/lib/types/adapter/kernel/slices/index.d.ts +19 -0
- package/lib/types/adapter/kernel/slices/index.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/index.js +36 -0
- package/lib/types/adapter/kernel/slices/presentation.d.ts +3 -0
- package/lib/types/adapter/kernel/slices/presentation.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/presentation.js +14 -0
- package/lib/types/adapter/kernel/slices/scenes.d.ts +3 -0
- package/lib/types/adapter/kernel/slices/scenes.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/scenes.js +14 -0
- package/lib/types/adapter/kernel/slices/settings.d.ts +3 -0
- package/lib/types/adapter/kernel/slices/settings.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/settings.js +12 -0
- package/lib/types/adapter/kernel/slices/types.d.ts +20 -0
- package/lib/types/adapter/kernel/slices/types.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/types.js +12 -0
- package/lib/types/adapter/kernel/slices/workspace.d.ts +3 -0
- package/lib/types/adapter/kernel/slices/workspace.d.ts.map +1 -0
- package/lib/types/adapter/kernel/slices/workspace.js +15 -0
- package/lib/types/adapter/ports/channel-catalog.d.ts +90 -0
- package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -0
- package/lib/types/adapter/ports/channel-catalog.js +2 -0
- package/lib/types/adapter/ports/channel-display.d.ts +90 -0
- package/lib/types/adapter/ports/channel-display.d.ts.map +1 -0
- package/lib/types/adapter/ports/channel-display.js +2 -0
- package/lib/types/adapter/ports/channel-session.d.ts +229 -0
- package/lib/types/adapter/ports/channel-session.d.ts.map +1 -0
- package/lib/types/adapter/ports/channel-session.js +2 -0
- package/lib/types/adapter/ports/channel-settings.d.ts +273 -0
- package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -0
- package/lib/types/adapter/ports/channel-settings.js +1 -0
- package/lib/types/adapter/ports/channel-ui.d.ts +569 -0
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -0
- package/lib/types/adapter/ports/channel-ui.js +1 -0
- package/lib/types/adapter/ports/channel-view.d.ts +609 -0
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -0
- package/lib/types/adapter/ports/channel-view.js +2 -0
- package/lib/types/adapter/ports/channel-workspace.d.ts +45 -0
- package/lib/types/adapter/ports/channel-workspace.d.ts.map +1 -0
- package/lib/types/adapter/ports/channel-workspace.js +2 -0
- package/lib/types/adapter/ports/channel.d.ts +145 -0
- package/lib/types/adapter/ports/channel.d.ts.map +1 -0
- package/lib/types/adapter/ports/channel.js +22 -0
- package/lib/types/adapter/ports/decisions.d.ts +18 -0
- package/lib/types/adapter/ports/decisions.d.ts.map +1 -0
- package/lib/types/adapter/ports/decisions.js +9 -0
- package/lib/types/adapter/ports/descriptor.d.ts +25 -0
- package/lib/types/adapter/ports/descriptor.d.ts.map +1 -0
- package/lib/types/adapter/ports/descriptor.js +11 -0
- package/lib/types/adapter/ports/extensions.d.ts +86 -0
- package/lib/types/adapter/ports/extensions.d.ts.map +1 -0
- package/lib/types/adapter/ports/extensions.js +9 -0
- package/lib/types/adapter/ports/index.d.ts +23 -0
- package/lib/types/adapter/ports/index.d.ts.map +1 -0
- package/lib/types/adapter/ports/index.js +14 -0
- package/lib/types/adapter/ports/owner.d.ts +19 -0
- package/lib/types/adapter/ports/owner.d.ts.map +1 -0
- package/lib/types/adapter/ports/owner.js +9 -0
- package/lib/types/adapter/ports/presentation.d.ts +81 -0
- package/lib/types/adapter/ports/presentation.d.ts.map +1 -0
- package/lib/types/adapter/ports/presentation.js +10 -0
- package/lib/types/adapter/ports/scenes.d.ts +24 -0
- package/lib/types/adapter/ports/scenes.d.ts.map +1 -0
- package/lib/types/adapter/ports/scenes.js +8 -0
- package/lib/types/adapter/ports/settings.d.ts +44 -0
- package/lib/types/adapter/ports/settings.d.ts.map +1 -0
- package/lib/types/adapter/ports/settings.js +9 -0
- package/lib/types/adapter/ports/workspace.d.ts +60 -0
- package/lib/types/adapter/ports/workspace.d.ts.map +1 -0
- package/lib/types/adapter/ports/workspace.js +8 -0
- package/lib/types/adapter/spec/index.d.ts +11 -0
- package/lib/types/adapter/spec/index.d.ts.map +1 -0
- package/lib/types/adapter/spec/index.js +10 -0
- package/lib/types/adapter/spec/profile.d.ts +10 -0
- package/lib/types/adapter/spec/profile.d.ts.map +1 -0
- package/lib/types/adapter/spec/profile.js +9 -0
- package/lib/types/adapter/spec/protocol-constants.d.ts +60 -0
- package/lib/types/adapter/spec/protocol-constants.d.ts.map +1 -0
- package/lib/types/adapter/spec/protocol-constants.js +129 -0
- package/lib/types/adapter/spec/tui-contributions.d.ts +18 -0
- package/lib/types/adapter/spec/tui-contributions.d.ts.map +1 -0
- package/lib/types/adapter/spec/tui-contributions.js +19 -0
- package/lib/types/adapter/standard/admission.d.ts +11 -0
- package/lib/types/adapter/standard/admission.d.ts.map +1 -0
- package/lib/types/adapter/standard/admission.js +10 -0
- package/lib/types/adapter/standard/descriptor.d.ts +74 -0
- package/lib/types/adapter/standard/descriptor.d.ts.map +1 -0
- package/lib/types/adapter/standard/descriptor.js +356 -0
- package/lib/types/{dsh-adapter → adapter/standard}/grants.d.ts +8 -3
- package/lib/types/adapter/standard/grants.d.ts.map +1 -0
- package/lib/types/{dsh-adapter → adapter/standard}/grants.js +14 -8
- package/lib/types/adapter/standard/index.d.ts +25 -0
- package/lib/types/adapter/standard/index.d.ts.map +1 -0
- package/lib/types/adapter/standard/index.js +24 -0
- package/lib/types/adapter/standard/negotiate.d.ts.map +1 -0
- package/lib/types/{plugin-spec → adapter/standard}/permission-scope.d.ts +3 -8
- package/lib/types/adapter/standard/permission-scope.d.ts.map +1 -0
- package/lib/types/{plugin-spec → adapter/standard}/permission-scope.js +4 -26
- package/lib/types/adapter/standard/protocols.d.ts +12 -0
- package/lib/types/adapter/standard/protocols.d.ts.map +1 -0
- package/lib/types/adapter/standard/protocols.js +11 -0
- package/lib/types/adapter/standard/registry.d.ts.map +1 -0
- package/lib/types/{plugin-spec → adapter/standard}/registry.js +3 -15
- package/lib/types/adapter/standard/schema-check.d.ts.map +1 -0
- package/lib/types/{plugin-spec → adapter/standard}/schema-check.js +4 -2
- package/lib/types/adapter/standard/tui-extension.d.ts +25 -0
- package/lib/types/adapter/standard/tui-extension.d.ts.map +1 -0
- package/lib/types/adapter/standard/tui-extension.js +45 -0
- package/lib/types/{plugin-spec → adapter/standard}/types.d.ts +3 -9
- package/lib/types/adapter/standard/types.d.ts.map +1 -0
- package/lib/types/{plugin-spec → adapter/standard}/validate.d.ts +3 -3
- package/lib/types/adapter/standard/validate.d.ts.map +1 -0
- package/lib/types/{plugin-spec → adapter/standard}/validate.js +14 -13
- package/lib/types/adapter/upstream/channel-driver.d.ts +22 -0
- package/lib/types/adapter/upstream/channel-driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/channel-driver.js +424 -0
- package/lib/types/adapter/upstream/decisions-driver.d.ts +15 -0
- package/lib/types/adapter/upstream/decisions-driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/decisions-driver.js +141 -0
- package/lib/types/adapter/upstream/detection.d.ts +26 -0
- package/lib/types/adapter/upstream/detection.d.ts.map +1 -0
- package/lib/types/adapter/upstream/detection.js +9 -0
- package/lib/types/adapter/upstream/driver.d.ts +50 -0
- package/lib/types/adapter/upstream/driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/driver.js +8 -0
- package/lib/types/adapter/upstream/extensions-driver.d.ts +24 -0
- package/lib/types/adapter/upstream/extensions-driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/extensions-driver.js +697 -0
- package/lib/types/adapter/upstream/host-descriptor-driver.d.ts +45 -0
- package/lib/types/adapter/upstream/host-descriptor-driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/host-descriptor-driver.js +606 -0
- package/lib/types/adapter/upstream/index.d.ts +18 -0
- package/lib/types/adapter/upstream/index.d.ts.map +1 -0
- package/lib/types/adapter/upstream/index.js +15 -0
- package/lib/types/adapter/upstream/presentation-driver.d.ts +17 -0
- package/lib/types/adapter/upstream/presentation-driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/presentation-driver.js +129 -0
- package/lib/types/adapter/upstream/scenes-driver.d.ts +18 -0
- package/lib/types/adapter/upstream/scenes-driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/scenes-driver.js +170 -0
- package/lib/types/adapter/upstream/settings-driver.d.ts +20 -0
- package/lib/types/adapter/upstream/settings-driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/settings-driver.js +173 -0
- package/lib/types/adapter/upstream/workspace-driver.d.ts +19 -0
- package/lib/types/adapter/upstream/workspace-driver.d.ts.map +1 -0
- package/lib/types/adapter/upstream/workspace-driver.js +190 -0
- package/lib/types/api.d.ts +1 -1
- package/lib/types/api.d.ts.map +1 -1
- package/lib/types/commands.d.ts +2 -41
- package/lib/types/commands.d.ts.map +1 -1
- package/lib/types/commands.js +1 -1
- package/lib/types/components/Chat/JobCard.d.ts.map +1 -1
- package/lib/types/components/Chat/JobCard.js +8 -1
- package/lib/types/components/GoalTodoPanel.d.ts +2 -1
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/HistorySearchDialog.d.ts.map +1 -1
- package/lib/types/components/HistorySearchDialog.js +7 -5
- package/lib/types/components/Markdown.d.ts +2 -2
- package/lib/types/components/Markdown.d.ts.map +1 -1
- package/lib/types/components/Markdown.js +28 -3
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +46 -17
- package/lib/types/components/ModelPicker.d.ts +1 -1
- package/lib/types/components/ModelPicker.d.ts.map +1 -1
- package/lib/types/components/ModelPicker.js +8 -4
- package/lib/types/components/OverlayAbove.d.ts +22 -1
- package/lib/types/components/OverlayAbove.d.ts.map +1 -1
- package/lib/types/components/OverlayAbove.js +74 -5
- package/lib/types/components/PromptInput.d.ts +2 -1
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/RewindPicker.d.ts.map +1 -1
- package/lib/types/components/RewindPicker.js +14 -6
- package/lib/types/components/SkillsPicker.d.ts.map +1 -1
- package/lib/types/components/SkillsPicker.js +6 -4
- package/lib/types/components/Spinner/spinnerMode.d.ts +1 -5
- package/lib/types/components/Spinner/spinnerMode.d.ts.map +1 -1
- package/lib/types/components/StreamingMarkdown.d.ts.map +1 -1
- package/lib/types/components/StreamingMarkdown.js +61 -9
- package/lib/types/components/design-system/ThemedBox.d.ts +4 -2
- package/lib/types/components/design-system/ThemedBox.d.ts.map +1 -1
- package/lib/types/components/design-system/ThemedBox.js +2 -2
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +69 -25
- package/lib/types/components/overlayBudget.d.ts +39 -0
- package/lib/types/components/overlayBudget.d.ts.map +1 -0
- package/lib/types/components/overlayBudget.js +43 -0
- package/lib/types/deepseekBalance.d.ts +2 -36
- package/lib/types/deepseekBalance.d.ts.map +1 -1
- package/lib/types/deepseekBalance.js +0 -14
- package/lib/types/deepseekPricing.d.ts +2 -1
- package/lib/types/deepseekPricing.d.ts.map +1 -1
- package/lib/types/deepseekPricing.js +8 -1
- package/lib/types/dsh-adapter/approvals.d.ts +11 -1
- package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.js +32 -12
- package/lib/types/dsh-adapter/channel/action-readiness.d.ts +20 -0
- package/lib/types/dsh-adapter/channel/action-readiness.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/action-readiness.js +83 -0
- package/lib/types/dsh-adapter/channel/activity.d.ts +20 -0
- package/lib/types/dsh-adapter/channel/activity.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/activity.js +113 -0
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +64 -0
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/agent-view-projection.js +295 -0
- package/lib/types/dsh-adapter/channel/background-action.d.ts +41 -0
- package/lib/types/dsh-adapter/channel/background-action.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/background-action.js +86 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +65 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/binding-events.js +169 -0
- package/lib/types/dsh-adapter/channel/binding.d.ts +41 -0
- package/lib/types/dsh-adapter/channel/binding.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/binding.js +227 -0
- package/lib/types/dsh-adapter/channel/command-completions.d.ts +29 -0
- package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/command-completions.js +94 -0
- package/lib/types/dsh-adapter/channel/commands.d.ts +8 -0
- package/lib/types/dsh-adapter/channel/commands.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/commands.js +9 -0
- package/lib/types/dsh-adapter/channel/compaction.d.ts +19 -0
- package/lib/types/dsh-adapter/channel/compaction.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/compaction.js +116 -0
- package/lib/types/dsh-adapter/channel/composer-images.d.ts +57 -0
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/composer-images.js +217 -0
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts +15 -0
- package/lib/types/dsh-adapter/channel/composer-mentions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/composer-mentions.js +200 -0
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts +26 -0
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +30 -0
- package/lib/types/dsh-adapter/channel/decisions.d.ts +19 -0
- package/lib/types/dsh-adapter/channel/decisions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/decisions.js +90 -0
- package/lib/types/dsh-adapter/channel/emitter.d.ts +10 -0
- package/lib/types/dsh-adapter/channel/emitter.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/emitter.js +71 -0
- package/lib/types/dsh-adapter/channel/external-commands.d.ts +31 -0
- package/lib/types/dsh-adapter/channel/external-commands.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/external-commands.js +187 -0
- package/lib/types/dsh-adapter/channel/file-actions.d.ts +20 -0
- package/lib/types/dsh-adapter/channel/file-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/file-actions.js +45 -0
- package/lib/types/dsh-adapter/channel/input-actions.d.ts +13 -0
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/input-actions.js +135 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +37 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/input-delivery.js +305 -0
- package/lib/types/dsh-adapter/channel/job-projection.d.ts +28 -0
- package/lib/types/dsh-adapter/channel/job-projection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/job-projection.js +150 -0
- package/lib/types/dsh-adapter/channel/lifetime-resources.d.ts +9 -0
- package/lib/types/dsh-adapter/channel/lifetime-resources.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/lifetime-resources.js +33 -0
- package/lib/types/dsh-adapter/channel/loaded-context.d.ts +40 -0
- package/lib/types/dsh-adapter/channel/loaded-context.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/loaded-context.js +62 -0
- package/lib/types/dsh-adapter/channel/local-actions.d.ts +70 -0
- package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/local-actions.js +108 -0
- package/lib/types/dsh-adapter/channel/mentions.d.ts +29 -0
- package/lib/types/dsh-adapter/channel/mentions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/mentions.js +235 -0
- package/lib/types/dsh-adapter/channel/mode-actions.d.ts +30 -0
- package/lib/types/dsh-adapter/channel/mode-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/mode-actions.js +247 -0
- package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts +35 -0
- package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/mode-permission-actions.js +199 -0
- package/lib/types/dsh-adapter/channel/mode-permission.d.ts +58 -0
- package/lib/types/dsh-adapter/channel/mode-permission.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/mode-permission.js +240 -0
- package/lib/types/dsh-adapter/channel/mode-roster.d.ts +51 -0
- package/lib/types/dsh-adapter/channel/mode-roster.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/mode-roster.js +119 -0
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +46 -0
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/model-actions.js +275 -0
- package/lib/types/dsh-adapter/channel/model-switch.d.ts +32 -0
- package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/model-switch.js +98 -0
- package/lib/types/dsh-adapter/channel/notifications.d.ts +9 -0
- package/lib/types/dsh-adapter/channel/notifications.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/notifications.js +24 -0
- package/lib/types/dsh-adapter/channel/owner.d.ts +18 -0
- package/lib/types/dsh-adapter/channel/owner.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/owner.js +73 -0
- package/lib/types/dsh-adapter/channel/paths.d.ts +31 -0
- package/lib/types/dsh-adapter/channel/paths.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/paths.js +147 -0
- package/lib/types/dsh-adapter/channel/permissions.d.ts +40 -0
- package/lib/types/dsh-adapter/channel/permissions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/permissions.js +187 -0
- package/lib/types/dsh-adapter/channel/preferences.d.ts +3 -0
- package/lib/types/dsh-adapter/channel/preferences.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/preferences.js +103 -0
- package/lib/types/dsh-adapter/channel/projection-helpers.d.ts +13 -0
- package/lib/types/dsh-adapter/channel/projection-helpers.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/projection-helpers.js +63 -0
- package/lib/types/dsh-adapter/channel/projection.d.ts +40 -0
- package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/projection.js +1021 -0
- package/lib/types/dsh-adapter/channel/reports.d.ts +32 -0
- package/lib/types/dsh-adapter/channel/reports.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/reports.js +171 -0
- package/lib/types/dsh-adapter/channel/session-actions.d.ts +13 -0
- package/lib/types/dsh-adapter/channel/session-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-actions.js +29 -0
- package/lib/types/dsh-adapter/channel/session-adoption.d.ts +32 -0
- package/lib/types/dsh-adapter/channel/session-adoption.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-adoption.js +35 -0
- package/lib/types/dsh-adapter/channel/session-fork.d.ts +19 -0
- package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-fork.js +85 -0
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +32 -0
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-live-adoption.js +62 -0
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts +81 -0
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-metadata.js +209 -0
- package/lib/types/dsh-adapter/channel/session-reset.d.ts +11 -0
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-reset.js +44 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +56 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-resume.js +240 -0
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts +19 -0
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-rewind.js +128 -0
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +19 -0
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +138 -0
- package/lib/types/dsh-adapter/channel/session-tree.d.ts +10 -0
- package/lib/types/dsh-adapter/channel/session-tree.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-tree.js +503 -0
- package/lib/types/dsh-adapter/channel/settings-host.d.ts +4 -0
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/settings-host.js +256 -0
- package/lib/types/dsh-adapter/channel/skill-catalog.d.ts +33 -0
- package/lib/types/dsh-adapter/channel/skill-catalog.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/skill-catalog.js +215 -0
- package/lib/types/dsh-adapter/channel/state.d.ts +46 -0
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/state.js +31 -0
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +47 -0
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/subagent-projection.js +140 -0
- package/lib/types/dsh-adapter/channel/transcript.d.ts +73 -0
- package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/transcript.js +312 -0
- package/lib/types/dsh-adapter/channel/types.d.ts +162 -0
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/types.js +1 -0
- package/lib/types/dsh-adapter/channel/usage.d.ts +13 -0
- package/lib/types/dsh-adapter/channel/usage.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/usage.js +48 -0
- package/lib/types/dsh-adapter/channel/workspace-actions.d.ts +20 -0
- package/lib/types/dsh-adapter/channel/workspace-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/workspace-actions.js +56 -0
- package/lib/types/dsh-adapter/channel-facade-actions.d.ts +25 -0
- package/lib/types/dsh-adapter/channel-facade-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel-facade-actions.js +55 -0
- package/lib/types/dsh-adapter/channel-scene-outlet.d.ts +6 -0
- package/lib/types/dsh-adapter/channel-scene-outlet.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel-scene-outlet.js +13 -0
- package/lib/types/dsh-adapter/channel-ui.d.ts +9 -0
- package/lib/types/dsh-adapter/channel-ui.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel-ui.js +128 -0
- package/lib/types/dsh-adapter/channel.d.ts +9 -1525
- package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel.js +753 -8145
- package/lib/types/dsh-adapter/command-trees.d.ts +1 -0
- package/lib/types/dsh-adapter/command-trees.d.ts.map +1 -1
- package/lib/types/dsh-adapter/command-trees.js +20 -1
- package/lib/types/dsh-adapter/compat/liveSession.d.ts +8 -4
- package/lib/types/dsh-adapter/compat/liveSession.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/liveSession.js +28 -3
- package/lib/types/dsh-adapter/compat/persistence.d.ts +21 -0
- package/lib/types/dsh-adapter/compat/persistence.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/persistence.js +17 -0
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts +50 -11
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -1
- package/lib/types/dsh-adapter/compat/sessionLog.js +325 -36
- package/lib/types/dsh-adapter/component-identity.d.ts +1 -1
- package/lib/types/dsh-adapter/component-identity.d.ts.map +1 -1
- package/lib/types/dsh-adapter/component-identity.js +1 -1
- package/lib/types/dsh-adapter/contract.d.ts +11 -9
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -1
- package/lib/types/dsh-adapter/contract.js +19 -12
- package/lib/types/dsh-adapter/decision-guard.d.ts +56 -12
- package/lib/types/dsh-adapter/decision-guard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/decision-guard.js +134 -22
- package/lib/types/dsh-adapter/dialogs.d.ts.map +1 -1
- package/lib/types/dsh-adapter/dialogs.js +13 -0
- package/lib/types/dsh-adapter/effect-ledger.d.ts +5 -0
- package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -1
- package/lib/types/dsh-adapter/effect-ledger.js +53 -15
- package/lib/types/dsh-adapter/extension-events.d.ts +2 -9
- package/lib/types/dsh-adapter/extension-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/extension-events.js +0 -20
- package/lib/types/dsh-adapter/extensions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/extensions.js +3 -2
- package/lib/types/dsh-adapter/host-grants.d.ts +23 -0
- package/lib/types/dsh-adapter/host-grants.d.ts.map +1 -0
- package/lib/types/dsh-adapter/host-grants.js +45 -0
- package/lib/types/dsh-adapter/jobs.d.ts +2 -46
- package/lib/types/dsh-adapter/jobs.d.ts.map +1 -1
- package/lib/types/dsh-adapter/jobs.js +0 -25
- package/lib/types/dsh-adapter/message-observer.d.ts +15 -2
- package/lib/types/dsh-adapter/message-observer.d.ts.map +1 -1
- package/lib/types/dsh-adapter/message-observer.js +157 -28
- package/lib/types/dsh-adapter/plugin-host.d.ts +80 -11
- package/lib/types/dsh-adapter/plugin-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-host.js +438 -41
- package/lib/types/dsh-adapter/plugin-storage.d.ts +11 -1
- package/lib/types/dsh-adapter/plugin-storage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin-storage.js +150 -11
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +75 -34
- package/lib/types/dsh-adapter/plugins-info.d.ts +2 -2
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugins-info.js +11 -6
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -1
- package/lib/types/dsh-adapter/presets.js +3 -2
- package/lib/types/dsh-adapter/providerWizard.d.ts +2 -159
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/questions.d.ts +8 -0
- package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/questions.js +18 -0
- package/lib/types/dsh-adapter/recap.d.ts +1 -9
- package/lib/types/dsh-adapter/recap.d.ts.map +1 -1
- package/lib/types/dsh-adapter/recap.js +0 -14
- package/lib/types/dsh-adapter/renderers.d.ts +1 -0
- package/lib/types/dsh-adapter/renderers.d.ts.map +1 -1
- package/lib/types/dsh-adapter/renderers.js +26 -1
- package/lib/types/dsh-adapter/scenes.d.ts +3 -1
- package/lib/types/dsh-adapter/scenes.d.ts.map +1 -1
- package/lib/types/dsh-adapter/scenes.js +31 -0
- package/lib/types/dsh-adapter/sessionTree.d.ts +14 -95
- package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessionTree.js +51 -36
- package/lib/types/dsh-adapter/sessions/digest.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/digest.js +40 -19
- package/lib/types/dsh-adapter/sessions/frames.js +2 -0
- package/lib/types/dsh-adapter/sessions/index.d.ts +1 -1
- package/lib/types/dsh-adapter/sessions/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/index.js +1 -1
- package/lib/types/dsh-adapter/sessions/list.d.ts +23 -0
- package/lib/types/dsh-adapter/sessions/list.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/list.js +28 -17
- package/lib/types/dsh-adapter/sessions/store.d.ts +2 -2
- package/lib/types/dsh-adapter/sessions/store.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/store.js +12 -11
- package/lib/types/dsh-adapter/sessions/types.d.ts +4 -128
- package/lib/types/dsh-adapter/sessions/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/types.js +0 -13
- package/lib/types/dsh-adapter/settings-sections.d.ts +4 -95
- package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -1
- package/lib/types/dsh-adapter/settings-sections.js +50 -13
- package/lib/types/dsh-adapter/settingsEditor.d.ts +2 -36
- package/lib/types/dsh-adapter/settingsEditor.d.ts.map +1 -1
- package/lib/types/dsh-adapter/settingsEditor.js +0 -18
- package/lib/types/dsh-adapter/shortcuts.d.ts +5 -0
- package/lib/types/dsh-adapter/shortcuts.d.ts.map +1 -1
- package/lib/types/dsh-adapter/shortcuts.js +49 -0
- package/lib/types/dsh-adapter/status.d.ts +5 -0
- package/lib/types/dsh-adapter/status.d.ts.map +1 -1
- package/lib/types/dsh-adapter/status.js +29 -0
- package/lib/types/dsh-adapter/subagents.d.ts +9 -49
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +92 -1
- package/lib/types/dsh-adapter/themes.d.ts +1 -0
- package/lib/types/dsh-adapter/themes.d.ts.map +1 -1
- package/lib/types/dsh-adapter/themes.js +29 -0
- package/lib/types/dsh-adapter/toast.d.ts +13 -0
- package/lib/types/dsh-adapter/toast.d.ts.map +1 -1
- package/lib/types/dsh-adapter/toast.js +31 -1
- package/lib/types/dsh-adapter/trajectory/aggregate.d.ts +2 -1
- package/lib/types/dsh-adapter/trajectory/aggregate.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/aggregate.js +2 -1
- package/lib/types/dsh-adapter/trajectory/guards.d.ts +37 -18
- package/lib/types/dsh-adapter/trajectory/guards.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/guards.js +43 -5
- package/lib/types/dsh-adapter/trajectory/inspect.d.ts +2 -2
- package/lib/types/dsh-adapter/trajectory/inspect.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/projection.d.ts +31 -13
- package/lib/types/dsh-adapter/trajectory/projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/projection.js +71 -14
- package/lib/types/dsh-adapter/trajectory/types.d.ts +1 -1
- package/lib/types/dsh-adapter/trajectory/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/transcript-images.d.ts +2 -19
- package/lib/types/dsh-adapter/transcript-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/workspaces.d.ts +2 -49
- package/lib/types/dsh-adapter/workspaces.d.ts.map +1 -1
- package/lib/types/dsh-adapter/workspaces.js +23 -3
- package/lib/types/i18n.d.ts +19 -7
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +8 -3
- package/lib/types/ink/components/ScrollBox.d.ts.map +1 -1
- package/lib/types/ink/components/ScrollBox.js +30 -33
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/dom.js +32 -64
- package/lib/types/ink/get-max-width.d.ts +7 -15
- package/lib/types/ink/get-max-width.d.ts.map +1 -1
- package/lib/types/ink/get-max-width.js +7 -20
- 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 +22 -3
- package/lib/types/ink/layout/node.d.ts +2 -0
- package/lib/types/ink/layout/node.d.ts.map +1 -1
- package/lib/types/ink/layout/yoga.d.ts +1 -0
- package/lib/types/ink/layout/yoga.d.ts.map +1 -1
- package/lib/types/ink/layout/yoga.js +3 -0
- package/lib/types/ink/node-cache.d.ts +11 -0
- package/lib/types/ink/node-cache.d.ts.map +1 -1
- package/lib/types/ink/node-cache.js +3 -0
- package/lib/types/ink/output.d.ts +6 -1
- package/lib/types/ink/output.d.ts.map +1 -1
- package/lib/types/ink/output.js +55 -65
- package/lib/types/ink/render-node-to-output.d.ts +24 -1
- package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
- package/lib/types/ink/render-node-to-output.js +195 -71
- package/lib/types/ink/renderer.d.ts.map +1 -1
- package/lib/types/ink/renderer.js +14 -2
- package/lib/types/ink/styles.d.ts +12 -0
- package/lib/types/ink/styles.d.ts.map +1 -1
- package/lib/types/ink/tabstops.d.ts +3 -2
- package/lib/types/ink/tabstops.d.ts.map +1 -1
- package/lib/types/ink/tabstops.js +5 -4
- package/lib/types/ink/wrap-text.js +2 -2
- package/lib/types/modelGroups.d.ts +1 -1
- package/lib/types/modelGroups.d.ts.map +1 -1
- package/lib/types/modelRoute.js +1 -1
- package/lib/types/native-ts/yoga-layout/index.d.ts +8 -3
- package/lib/types/native-ts/yoga-layout/index.d.ts.map +1 -1
- package/lib/types/native-ts/yoga-layout/index.js +23 -8
- package/lib/types/plugin-host.d.ts +3 -4
- package/lib/types/plugin-host.d.ts.map +1 -1
- package/lib/types/plugin-host.js +8 -6
- package/lib/types/screens/AgentView.d.ts +1 -1
- package/lib/types/screens/AgentView.d.ts.map +1 -1
- package/lib/types/screens/Chat.d.ts +3 -2
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +91 -17
- package/lib/types/screens/SessionBrowser.d.ts +1 -1
- package/lib/types/screens/SessionBrowser.d.ts.map +1 -1
- package/lib/types/screens/SessionTree.d.ts +1 -1
- package/lib/types/screens/SessionTree.d.ts.map +1 -1
- package/lib/types/screens/Settings.d.ts +1 -1
- package/lib/types/screens/Settings.d.ts.map +1 -1
- package/lib/types/screens/StatusLine.d.ts +1 -1
- package/lib/types/screens/StatusLine.d.ts.map +1 -1
- package/lib/types/screens/StatusLine.js +40 -1
- package/lib/types/screens/TrajectoryScene.d.ts +1 -1
- package/lib/types/screens/TrajectoryScene.d.ts.map +1 -1
- package/lib/types/sessionModes.d.ts +11 -15
- package/lib/types/sessionModes.d.ts.map +1 -1
- package/lib/types/sessionModes.js +11 -0
- package/lib/types/tuiDisplayPrefs.d.ts +2 -68
- package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
- package/lib/types/tuiDisplayPrefs.js +5 -1
- package/lib/types/utils/credentials.d.ts +13 -0
- package/lib/types/utils/credentials.d.ts.map +1 -0
- package/lib/types/utils/credentials.js +41 -0
- package/lib/types/utils/fileSuggestions.d.ts +2 -9
- package/lib/types/utils/fileSuggestions.d.ts.map +1 -1
- package/lib/types/utils/fold-long-lines.d.ts +38 -0
- package/lib/types/utils/fold-long-lines.d.ts.map +1 -0
- package/lib/types/utils/fold-long-lines.js +91 -0
- package/node_modules/@deepseek-harness-tui/dsh-auth/lib/pi-ai.d.ts +1 -1
- package/node_modules/@deepseek-harness-tui/dsh-auth/lib/profiles.js +4 -0
- package/node_modules/@deepseek-harness-tui/dsh-auth/lib/service.js +15 -2
- package/node_modules/@deepseek-harness-tui/dsh-auth/package.json +10 -10
- package/package.json +125 -81
- package/presets/liangshen/.dsh-tui-managed.json +1 -1
- package/presets/liangshen/agent.cordis.yml +20 -4
- package/presets/liangshen/compaction-epoch.mjs +3 -1
- package/presets/liangshen/instruction-hint.mjs +2 -1
- package/presets/liangshen/session-events.mjs +8 -0
- package/lib/types/dsh-adapter/grants.d.ts.map +0 -1
- package/lib/types/dsh-adapter/host-descriptor.d.ts +0 -24
- package/lib/types/dsh-adapter/host-descriptor.d.ts.map +0 -1
- package/lib/types/dsh-adapter/host-descriptor.js +0 -169
- package/lib/types/dsh-adapter/plugin-test-utils.d.ts +0 -62
- package/lib/types/dsh-adapter/plugin-test-utils.d.ts.map +0 -1
- package/lib/types/dsh-adapter/plugin-test-utils.js +0 -61
- package/lib/types/plugin-spec/negotiate.d.ts.map +0 -1
- package/lib/types/plugin-spec/permission-scope.d.ts.map +0 -1
- package/lib/types/plugin-spec/registry.d.ts.map +0 -1
- package/lib/types/plugin-spec/schema-check.d.ts.map +0 -1
- package/lib/types/plugin-spec/tui-extension.d.ts +0 -16
- package/lib/types/plugin-spec/tui-extension.d.ts.map +0 -1
- package/lib/types/plugin-spec/tui-extension.js +0 -79
- package/lib/types/plugin-spec/types.d.ts.map +0 -1
- package/lib/types/plugin-spec/validate.d.ts.map +0 -1
- package/lib/types/test-utils.d.ts +0 -2
- package/lib/types/test-utils.d.ts.map +0 -1
- package/lib/types/test-utils.js +0 -8
- /package/lib/types/{plugin-spec → adapter/standard}/negotiate.d.ts +0 -0
- /package/lib/types/{plugin-spec → adapter/standard}/negotiate.js +0 -0
- /package/lib/types/{plugin-spec → adapter/standard}/registry.d.ts +0 -0
- /package/lib/types/{plugin-spec → adapter/standard}/schema-check.d.ts +0 -0
- /package/lib/types/{plugin-spec → adapter/standard}/types.js +0 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapter runtime / shadow-mode switch and effect-class enforcement.
|
|
3
|
+
*
|
|
4
|
+
* This is the Kernel's incremental-migration control surface. It does not load
|
|
5
|
+
* drivers or perform business translation; it selects and records shadow
|
|
6
|
+
* policy per capability, and provides the unified assertion every
|
|
7
|
+
* effect-producing Port/slice entry must call.
|
|
8
|
+
*/
|
|
9
|
+
import { isReplayIsolationActive } from './replay-isolation.js';
|
|
10
|
+
export const DEFAULT_ADAPTER_MODE = 'legacy';
|
|
11
|
+
/**
|
|
12
|
+
* Effect classification per adapter capability.
|
|
13
|
+
*
|
|
14
|
+
* Every capability that can produce an effect must be registered here so the
|
|
15
|
+
* runtime can enforce shadow policy uniformly instead of relying on ad-hoc
|
|
16
|
+
* call-site checks.
|
|
17
|
+
*/
|
|
18
|
+
export const ADAPTER_CAPABILITY_EFFECT_CLASSES = Object.freeze({
|
|
19
|
+
'host.descriptor': 'read-only',
|
|
20
|
+
'host.diagnostics': 'read-only',
|
|
21
|
+
'host.admission': 'mutate',
|
|
22
|
+
'host.grants.evaluate': 'read-only',
|
|
23
|
+
'host.grants.subscribe': 'subscribe',
|
|
24
|
+
'host.ledger.record': 'mutate',
|
|
25
|
+
'host.commands.register': 'register',
|
|
26
|
+
'host.commands.invoke': 'mutate',
|
|
27
|
+
'host.commands.liveProbe': 'register',
|
|
28
|
+
'host.storage.open': 'mutate',
|
|
29
|
+
'host.storage.read': 'read-only',
|
|
30
|
+
'host.storage.write': 'mutate',
|
|
31
|
+
'host.storage.probe': 'read-only',
|
|
32
|
+
'host.storage.liveProbe': 'mutate',
|
|
33
|
+
'host.messages.subscribe': 'subscribe',
|
|
34
|
+
'host.messages.probe': 'read-only',
|
|
35
|
+
'host.messages.liveProbe': 'subscribe',
|
|
36
|
+
'host.decision.subscribe': 'subscribe',
|
|
37
|
+
'host.decision.probe': 'read-only',
|
|
38
|
+
'host.presentation.ask': 'mutate',
|
|
39
|
+
'host.presentation.approve': 'mutate',
|
|
40
|
+
'host.presentation.dialog': 'mutate',
|
|
41
|
+
'host.scenes.register': 'register',
|
|
42
|
+
'host.scenes.list': 'read-only',
|
|
43
|
+
'host.scenes.open': 'mutate',
|
|
44
|
+
'host.scenes.close': 'mutate',
|
|
45
|
+
'host.scenes.active': 'read-only',
|
|
46
|
+
'host.scenes.subscribe': 'subscribe',
|
|
47
|
+
'host.settings.register': 'register',
|
|
48
|
+
'host.settings.list': 'read-only',
|
|
49
|
+
'host.settings.section': 'read-only',
|
|
50
|
+
'host.settings.subscribe': 'subscribe',
|
|
51
|
+
'host.status.set': 'mutate',
|
|
52
|
+
'host.status.register-view': 'register',
|
|
53
|
+
'host.status.snapshot': 'read-only',
|
|
54
|
+
'host.status.subscribe': 'subscribe',
|
|
55
|
+
'host.renderers.register': 'register',
|
|
56
|
+
'host.renderers.render': 'read-only',
|
|
57
|
+
'host.shortcuts.register': 'register',
|
|
58
|
+
'host.shortcuts.list': 'read-only',
|
|
59
|
+
'host.shortcuts.dispatch': 'mutate',
|
|
60
|
+
'host.themes.register': 'register',
|
|
61
|
+
'host.themes.snapshot': 'read-only',
|
|
62
|
+
'host.themes.resolver': 'read-only',
|
|
63
|
+
'host.themes.subscribe': 'subscribe',
|
|
64
|
+
'host.dialogs.select': 'mutate',
|
|
65
|
+
'host.dialogs.confirm': 'mutate',
|
|
66
|
+
'host.dialogs.input': 'mutate',
|
|
67
|
+
'host.toast.show': 'mutate',
|
|
68
|
+
'host.command-trees.register': 'register',
|
|
69
|
+
'host.command-trees.children': 'read-only',
|
|
70
|
+
'host.command-trees.descriptions': 'read-only',
|
|
71
|
+
'host.workspaces.register': 'register',
|
|
72
|
+
'host.workspaces.list': 'read-only',
|
|
73
|
+
'host.workspaces.resolve': 'read-only',
|
|
74
|
+
'host.workspaces.describe': 'read-only',
|
|
75
|
+
'host.workspaces.commandShell': 'mutate',
|
|
76
|
+
'host.workspaces.rename': 'mutate',
|
|
77
|
+
'host.workspaces.commands': 'read-only',
|
|
78
|
+
'host.workspaces.runCommand': 'mutate',
|
|
79
|
+
'host.channel.projection.ui': 'read-only',
|
|
80
|
+
'host.channel.projection.snapshot': 'read-only',
|
|
81
|
+
'host.channel.projection.subscribe': 'subscribe',
|
|
82
|
+
'host.channel.state.snapshot': 'read-only',
|
|
83
|
+
'host.channel.transcript.rows': 'read-only',
|
|
84
|
+
'host.channel.transcript.trace-events': 'read-only',
|
|
85
|
+
'host.channel.actions.loadOlder': 'mutate',
|
|
86
|
+
'host.channel.actions.submit': 'mutate',
|
|
87
|
+
'host.channel.actions.steer': 'mutate',
|
|
88
|
+
'host.channel.actions.cancel': 'mutate',
|
|
89
|
+
'host.channel.actions.interruptAndDeliver': 'mutate',
|
|
90
|
+
'host.channel.actions.clear': 'mutate',
|
|
91
|
+
'host.channel.actions.notify': 'mutate',
|
|
92
|
+
'host.channel.actions.new-session': 'mutate',
|
|
93
|
+
'host.channel.plugins.run-external-command': 'mutate',
|
|
94
|
+
'host.channel.plugins.open-scene': 'mutate',
|
|
95
|
+
'host.channel.plugins.close-scene': 'mutate',
|
|
96
|
+
'host.channel.plugins.settings-sections': 'read-only',
|
|
97
|
+
'host.channel.plugins.subscribe-settings-sections': 'subscribe',
|
|
98
|
+
});
|
|
99
|
+
/** Map a capability to its incremental migration slice. */
|
|
100
|
+
export const ADAPTER_CAPABILITY_SLICES = Object.freeze({
|
|
101
|
+
'host.descriptor': 'descriptor',
|
|
102
|
+
'host.diagnostics': 'descriptor',
|
|
103
|
+
'host.admission': 'admission',
|
|
104
|
+
'host.grants.evaluate': 'admission',
|
|
105
|
+
'host.grants.subscribe': 'admission',
|
|
106
|
+
'host.ledger.record': 'ledger',
|
|
107
|
+
'host.commands.register': 'commands',
|
|
108
|
+
'host.commands.invoke': 'commands',
|
|
109
|
+
'host.commands.liveProbe': 'commands',
|
|
110
|
+
'host.storage.open': 'storage',
|
|
111
|
+
'host.storage.read': 'storage',
|
|
112
|
+
'host.storage.write': 'storage',
|
|
113
|
+
'host.storage.probe': 'storage',
|
|
114
|
+
'host.storage.liveProbe': 'storage',
|
|
115
|
+
'host.messages.subscribe': 'messages',
|
|
116
|
+
'host.messages.probe': 'messages',
|
|
117
|
+
'host.messages.liveProbe': 'messages',
|
|
118
|
+
'host.decision.subscribe': 'decisions',
|
|
119
|
+
'host.decision.probe': 'decisions',
|
|
120
|
+
'host.presentation.ask': 'presentation',
|
|
121
|
+
'host.presentation.approve': 'presentation',
|
|
122
|
+
'host.presentation.dialog': 'presentation',
|
|
123
|
+
'host.scenes.register': 'scenes',
|
|
124
|
+
'host.scenes.list': 'scenes',
|
|
125
|
+
'host.scenes.open': 'scenes',
|
|
126
|
+
'host.scenes.close': 'scenes',
|
|
127
|
+
'host.scenes.active': 'scenes',
|
|
128
|
+
'host.scenes.subscribe': 'scenes',
|
|
129
|
+
'host.settings.register': 'settings',
|
|
130
|
+
'host.settings.list': 'settings',
|
|
131
|
+
'host.settings.section': 'settings',
|
|
132
|
+
'host.settings.subscribe': 'settings',
|
|
133
|
+
'host.status.set': 'status',
|
|
134
|
+
'host.status.snapshot': 'status',
|
|
135
|
+
'host.status.subscribe': 'status',
|
|
136
|
+
'host.renderers.register': 'renderers',
|
|
137
|
+
'host.renderers.render': 'renderers',
|
|
138
|
+
'host.shortcuts.register': 'shortcuts',
|
|
139
|
+
'host.shortcuts.list': 'shortcuts',
|
|
140
|
+
'host.shortcuts.dispatch': 'shortcuts',
|
|
141
|
+
'host.themes.register': 'themes',
|
|
142
|
+
'host.themes.snapshot': 'themes',
|
|
143
|
+
'host.themes.resolver': 'themes',
|
|
144
|
+
'host.themes.subscribe': 'themes',
|
|
145
|
+
'host.dialogs.select': 'presentation',
|
|
146
|
+
'host.dialogs.confirm': 'presentation',
|
|
147
|
+
'host.dialogs.input': 'presentation',
|
|
148
|
+
'host.toast.show': 'toast',
|
|
149
|
+
'host.command-trees.register': 'command-trees',
|
|
150
|
+
'host.command-trees.children': 'command-trees',
|
|
151
|
+
'host.command-trees.descriptions': 'command-trees',
|
|
152
|
+
'host.workspaces.register': 'workspaces',
|
|
153
|
+
'host.workspaces.list': 'workspaces',
|
|
154
|
+
'host.workspaces.resolve': 'workspaces',
|
|
155
|
+
'host.workspaces.describe': 'workspaces',
|
|
156
|
+
'host.workspaces.commandShell': 'workspaces',
|
|
157
|
+
'host.workspaces.rename': 'workspaces',
|
|
158
|
+
'host.workspaces.commands': 'workspaces',
|
|
159
|
+
'host.workspaces.runCommand': 'workspaces',
|
|
160
|
+
'host.channel.projection.snapshot': 'channel',
|
|
161
|
+
'host.channel.projection.subscribe': 'channel',
|
|
162
|
+
'host.channel.state.snapshot': 'channel',
|
|
163
|
+
'host.channel.transcript.rows': 'channel',
|
|
164
|
+
'host.channel.transcript.trace-events': 'channel',
|
|
165
|
+
'host.channel.actions.loadOlder': 'channel',
|
|
166
|
+
'host.channel.actions.submit': 'channel',
|
|
167
|
+
'host.channel.actions.new-session': 'channel',
|
|
168
|
+
'host.channel.actions.steer': 'channel',
|
|
169
|
+
'host.channel.actions.cancel': 'channel',
|
|
170
|
+
'host.channel.actions.interruptAndDeliver': 'channel',
|
|
171
|
+
'host.channel.actions.clear': 'channel',
|
|
172
|
+
'host.channel.actions.notify': 'channel',
|
|
173
|
+
'host.channel.plugins.run-external-command': 'channel',
|
|
174
|
+
'host.channel.plugins.open-scene': 'channel',
|
|
175
|
+
'host.channel.plugins.close-scene': 'channel',
|
|
176
|
+
'host.channel.plugins.settings-sections': 'channel',
|
|
177
|
+
'host.channel.plugins.subscribe-settings-sections': 'channel',
|
|
178
|
+
});
|
|
179
|
+
export function sliceForCapability(capability) {
|
|
180
|
+
return ADAPTER_CAPABILITY_SLICES[capability];
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* If an explicit slice allowlist is provided, only capabilities from those
|
|
184
|
+
* slices are governed by the selected AdapterMode. An empty/undefined slice
|
|
185
|
+
* list means the whole adapter surface is governed (the conservative default).
|
|
186
|
+
*/
|
|
187
|
+
function isSelectedSlice(capability, slices) {
|
|
188
|
+
if (slices === undefined || slices.length === 0)
|
|
189
|
+
return true;
|
|
190
|
+
const slice = sliceForCapability(capability);
|
|
191
|
+
return slice !== undefined && slices.includes(slice);
|
|
192
|
+
}
|
|
193
|
+
export function effectClassFor(capability) {
|
|
194
|
+
return ADAPTER_CAPABILITY_EFFECT_CLASSES[capability];
|
|
195
|
+
}
|
|
196
|
+
export function parseAdapterMode(value) {
|
|
197
|
+
const normalized = value?.trim().toLowerCase();
|
|
198
|
+
switch (normalized) {
|
|
199
|
+
case undefined:
|
|
200
|
+
return DEFAULT_ADAPTER_MODE;
|
|
201
|
+
case 'legacy':
|
|
202
|
+
case 'passive-shadow':
|
|
203
|
+
case 'replay-shadow':
|
|
204
|
+
case 'new':
|
|
205
|
+
return normalized;
|
|
206
|
+
default:
|
|
207
|
+
throw new Error(`dsh-tui: unknown DSH_TUI_ADAPTER_MODE ${JSON.stringify(value)}; valid modes: legacy, passive-shadow, replay-shadow, new`);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
export const ADAPTER_SLICE_ALIASES = Object.freeze({
|
|
211
|
+
'dialog': 'presentation',
|
|
212
|
+
'dialogs': 'presentation',
|
|
213
|
+
'decision': 'decisions',
|
|
214
|
+
'decision-events': 'decisions',
|
|
215
|
+
'decisionevents': 'decisions',
|
|
216
|
+
'command-tree': 'command-trees',
|
|
217
|
+
'commandtrees': 'command-trees',
|
|
218
|
+
'workspace': 'workspaces',
|
|
219
|
+
'setting': 'settings',
|
|
220
|
+
'scene': 'scenes',
|
|
221
|
+
'shortcut': 'shortcuts',
|
|
222
|
+
'renderer': 'renderers',
|
|
223
|
+
'theme': 'themes',
|
|
224
|
+
});
|
|
225
|
+
const KNOWN_ADAPTER_SLICES = new Set(Object.values(ADAPTER_CAPABILITY_SLICES));
|
|
226
|
+
function canonicalAdapterSlice(value) {
|
|
227
|
+
const trimmed = value.trim().toLowerCase();
|
|
228
|
+
return ADAPTER_SLICE_ALIASES[trimmed] ?? trimmed;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Normalize an explicit adapter-slice allowlist.
|
|
232
|
+
*
|
|
233
|
+
* Slice ids are case-insensitive and surrounding whitespace is ignored.
|
|
234
|
+
* Known aliases are mapped to their canonical slice id. Unknown ids are
|
|
235
|
+
* rejected loudly (fail-closed) instead of being silently ignored: a typo in
|
|
236
|
+
* `DSH_TUI_ADAPTER_SLICES` must never accidentally broaden or narrow the
|
|
237
|
+
* governed adapter surface without the operator noticing.
|
|
238
|
+
*/
|
|
239
|
+
export function normalizeAdapterSliceList(slices) {
|
|
240
|
+
const normalized = [];
|
|
241
|
+
for (const raw of slices) {
|
|
242
|
+
const name = canonicalAdapterSlice(raw);
|
|
243
|
+
if (name === '')
|
|
244
|
+
continue;
|
|
245
|
+
if (!KNOWN_ADAPTER_SLICES.has(name)) {
|
|
246
|
+
throw new Error(`dsh-tui: unknown adapter slice "${raw}"; valid slices: ${[...KNOWN_ADAPTER_SLICES].sort().join(', ')}`);
|
|
247
|
+
}
|
|
248
|
+
if (!normalized.includes(name))
|
|
249
|
+
normalized.push(name);
|
|
250
|
+
}
|
|
251
|
+
return Object.freeze(normalized);
|
|
252
|
+
}
|
|
253
|
+
export function parseAdapterRuntime(env = process.env) {
|
|
254
|
+
return Object.freeze({
|
|
255
|
+
mode: parseAdapterMode(env.DSH_TUI_ADAPTER_MODE),
|
|
256
|
+
slices: normalizeAdapterSliceList((env.DSH_TUI_ADAPTER_SLICES ?? '').split(',')),
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Immutable fallback snapshot factory for objects that are not bound to a
|
|
261
|
+
* Cordis composition (standalone stores, in-package local registries, unbound
|
|
262
|
+
* grant stores). Each object captures the process environment at construction
|
|
263
|
+
* time; once captured, that object never re-reads mutable process state.
|
|
264
|
+
* Production composition-bound services must use `adapterRuntimeFor(ctx)`
|
|
265
|
+
* instead so each composition root gets its own stable snapshot.
|
|
266
|
+
*/
|
|
267
|
+
export function defaultAdapterRuntime() {
|
|
268
|
+
return parseAdapterRuntime();
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Effect classification determines which shadow modes are allowed:
|
|
272
|
+
* - read-only may run as passive shadow and replay shadow;
|
|
273
|
+
* - subscribe/register require replay or direct switch;
|
|
274
|
+
* - mutate only runs in legacy/new (it must never pretend to be a shadow).
|
|
275
|
+
*/
|
|
276
|
+
export function isPassiveShadowAllowed(effectClass) {
|
|
277
|
+
return effectClass === 'read-only';
|
|
278
|
+
}
|
|
279
|
+
export function shadowPolicyAllowed(effectClass, mode) {
|
|
280
|
+
if (mode === 'legacy' || mode === 'new')
|
|
281
|
+
return true;
|
|
282
|
+
if (mode === 'replay-shadow') {
|
|
283
|
+
// On a real production host replay-shadow is fail-closed: without an
|
|
284
|
+
// explicit isolated replay section, subscribe/register-capable entries
|
|
285
|
+
// are refused just like passive-shadow. They are only allowed while the
|
|
286
|
+
// replay harness has entered an isolated mock/replay context.
|
|
287
|
+
if (!isReplayIsolationActive())
|
|
288
|
+
return effectClass === 'read-only';
|
|
289
|
+
return effectClass !== 'mutate';
|
|
290
|
+
}
|
|
291
|
+
return mode === 'passive-shadow' && isPassiveShadowAllowed(effectClass);
|
|
292
|
+
}
|
|
293
|
+
export function assertShadowPolicy(effectClass, mode) {
|
|
294
|
+
if (!shadowPolicyAllowed(effectClass, mode)) {
|
|
295
|
+
throw new Error(`dsh-tui: shadow policy denies ${effectClass} in ${mode} mode`);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Hard guard-position invariant for adapter capability methods:
|
|
300
|
+
* every mediated/effectful entry MUST call this guard (or the
|
|
301
|
+
* `assertAdapterCapability` convenience) as its FIRST side-effect-free
|
|
302
|
+
* preflight step, BEFORE creating subscriptions, registrations, file watches,
|
|
303
|
+
* writes, mounts or any other observable side effect. This is also enforced
|
|
304
|
+
* by `verify:adapter-shadow` for service methods and returned handles.
|
|
305
|
+
*/
|
|
306
|
+
export function assertCapabilityShadowPolicy(capability, mode, slices) {
|
|
307
|
+
// The slice allowlist is an incremental-migration switch for legacy/new
|
|
308
|
+
// only. Shadow modes are global safety modes: a capability outside the
|
|
309
|
+
// listed slice must still be denied if it would produce a real effect.
|
|
310
|
+
if (!isSelectedSlice(capability, slices) && (mode === 'legacy' || mode === 'new'))
|
|
311
|
+
return;
|
|
312
|
+
const effectClass = effectClassFor(capability);
|
|
313
|
+
if (effectClass === undefined) {
|
|
314
|
+
throw new Error(`dsh-tui: capability has no registered effect class: ${capability}`);
|
|
315
|
+
}
|
|
316
|
+
assertShadowPolicy(effectClass, mode);
|
|
317
|
+
}
|
|
318
|
+
/** Convenience for legacy adapter service methods: parse the process runtime
|
|
319
|
+
* once per call and assert the capability's shadow policy. This keeps
|
|
320
|
+
* migration-era service entry points on the same unified effect matrix. */
|
|
321
|
+
let defaultRuntimeSnapshot;
|
|
322
|
+
export function assertAdapterCapability(capability) {
|
|
323
|
+
defaultRuntimeSnapshot ??= parseAdapterRuntime();
|
|
324
|
+
assertCapabilityShadowPolicy(capability, defaultRuntimeSnapshot.mode, defaultRuntimeSnapshot.slices);
|
|
325
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/channel.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,YAAY,EAAE,WAKzB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { channelDriver } from '../../upstream/channel-driver.js';
|
|
2
|
+
import { CHANNEL_FEATURES } from '../../channel/features.js';
|
|
3
|
+
export const channelSlice = Object.freeze({
|
|
4
|
+
id: 'channel',
|
|
5
|
+
capability: 'host.channel',
|
|
6
|
+
driver: channelDriver,
|
|
7
|
+
standardDeclarations: Object.freeze([...CHANNEL_FEATURES]),
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/decisions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,cAAc,EAAE,WAQ3B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { decisionsDriver } from '../../upstream/decisions-driver.js';
|
|
2
|
+
export const decisionsSlice = Object.freeze({
|
|
3
|
+
id: 'decisions',
|
|
4
|
+
capability: 'host.decisions',
|
|
5
|
+
driver: decisionsDriver,
|
|
6
|
+
standardDeclarations: Object.freeze([
|
|
7
|
+
'host.decision.subscribe',
|
|
8
|
+
'host.decision.probe',
|
|
9
|
+
]),
|
|
10
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { KernelSlice } from './types.js';
|
|
2
|
+
export declare const statusSlice: KernelSlice;
|
|
3
|
+
export declare const shortcutsSlice: KernelSlice;
|
|
4
|
+
export declare const renderersSlice: KernelSlice;
|
|
5
|
+
export declare const themesSlice: KernelSlice;
|
|
6
|
+
export declare const toastSlice: KernelSlice;
|
|
7
|
+
export declare const commandTreesSlice: KernelSlice;
|
|
8
|
+
//# sourceMappingURL=extensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/extensions.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAwC7C,eAAO,MAAM,WAAW,aAA4E,CAAA;AACpG,eAAO,MAAM,cAAc,aAAwF,CAAA;AACnH,eAAO,MAAM,cAAc,aAAwF,CAAA;AACnH,eAAO,MAAM,WAAW,aAA4E,CAAA;AACpG,eAAO,MAAM,UAAU,aAAwE,CAAA;AAC/F,eAAO,MAAM,iBAAiB,aAAsG,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { statusDriver, shortcutsDriver, renderersDriver, themesDriver, toastDriver, commandTreesDriver, } from '../../upstream/extensions-driver.js';
|
|
2
|
+
const statusDeclarations = Object.freeze([
|
|
3
|
+
'host.status.set',
|
|
4
|
+
'host.status.snapshot',
|
|
5
|
+
'host.status.subscribe',
|
|
6
|
+
]);
|
|
7
|
+
const shortcutsDeclarations = Object.freeze([
|
|
8
|
+
'host.shortcuts.register',
|
|
9
|
+
'host.shortcuts.list',
|
|
10
|
+
'host.shortcuts.dispatch',
|
|
11
|
+
]);
|
|
12
|
+
const renderersDeclarations = Object.freeze([
|
|
13
|
+
'host.renderers.register',
|
|
14
|
+
'host.renderers.render',
|
|
15
|
+
]);
|
|
16
|
+
const themesDeclarations = Object.freeze([
|
|
17
|
+
'host.themes.register',
|
|
18
|
+
'host.themes.snapshot',
|
|
19
|
+
'host.themes.resolver',
|
|
20
|
+
'host.themes.subscribe',
|
|
21
|
+
]);
|
|
22
|
+
const toastDeclarations = Object.freeze([
|
|
23
|
+
'host.toast.show',
|
|
24
|
+
]);
|
|
25
|
+
const commandTreesDeclarations = Object.freeze([
|
|
26
|
+
'host.command-trees.register',
|
|
27
|
+
'host.command-trees.children',
|
|
28
|
+
'host.command-trees.descriptions',
|
|
29
|
+
]);
|
|
30
|
+
function extensionSlice(id, capability, driver, standardDeclarations) {
|
|
31
|
+
return Object.freeze({
|
|
32
|
+
id,
|
|
33
|
+
capability,
|
|
34
|
+
driver,
|
|
35
|
+
standardDeclarations,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export const statusSlice = extensionSlice('status', 'host.status', statusDriver, statusDeclarations);
|
|
39
|
+
export const shortcutsSlice = extensionSlice('shortcuts', 'host.shortcuts', shortcutsDriver, shortcutsDeclarations);
|
|
40
|
+
export const renderersSlice = extensionSlice('renderers', 'host.renderers', renderersDriver, renderersDeclarations);
|
|
41
|
+
export const themesSlice = extensionSlice('themes', 'host.themes', themesDriver, themesDeclarations);
|
|
42
|
+
export const toastSlice = extensionSlice('toast', 'host.toast', toastDriver, toastDeclarations);
|
|
43
|
+
export const commandTreesSlice = extensionSlice('command-trees', 'host.command-trees', commandTreesDriver, commandTreesDeclarations);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kernel slice registry.
|
|
3
|
+
*
|
|
4
|
+
* Each slice composes one upstream driver with the Standard/effect
|
|
5
|
+
* capability declarations it governs. The Kernel runtime can consume this
|
|
6
|
+
* list for composition and diagnostics; it does not turn slices into
|
|
7
|
+
* business logic.
|
|
8
|
+
*/
|
|
9
|
+
export type { KernelSlice } from './types.js';
|
|
10
|
+
export { presentationSlice } from './presentation.js';
|
|
11
|
+
export { workspaceSlice } from './workspace.js';
|
|
12
|
+
export { scenesSlice } from './scenes.js';
|
|
13
|
+
export { settingsSlice } from './settings.js';
|
|
14
|
+
export { channelSlice } from './channel.js';
|
|
15
|
+
export { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, } from './extensions.js';
|
|
16
|
+
export { decisionsSlice } from './decisions.js';
|
|
17
|
+
import type { KernelSlice } from './types.js';
|
|
18
|
+
export declare const ADAPTER_KERNEL_SLICES: readonly KernelSlice[];
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EACL,WAAW,EACX,cAAc,EACd,cAAc,EACd,WAAW,EACX,UAAU,EACV,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgB7C,eAAO,MAAM,qBAAqB,EAAE,SAAS,WAAW,EAatD,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kernel slice registry.
|
|
3
|
+
*
|
|
4
|
+
* Each slice composes one upstream driver with the Standard/effect
|
|
5
|
+
* capability declarations it governs. The Kernel runtime can consume this
|
|
6
|
+
* list for composition and diagnostics; it does not turn slices into
|
|
7
|
+
* business logic.
|
|
8
|
+
*/
|
|
9
|
+
export { presentationSlice } from './presentation.js';
|
|
10
|
+
export { workspaceSlice } from './workspace.js';
|
|
11
|
+
export { scenesSlice } from './scenes.js';
|
|
12
|
+
export { settingsSlice } from './settings.js';
|
|
13
|
+
export { channelSlice } from './channel.js';
|
|
14
|
+
export { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, } from './extensions.js';
|
|
15
|
+
export { decisionsSlice } from './decisions.js';
|
|
16
|
+
import { presentationSlice } from './presentation.js';
|
|
17
|
+
import { workspaceSlice } from './workspace.js';
|
|
18
|
+
import { scenesSlice } from './scenes.js';
|
|
19
|
+
import { settingsSlice } from './settings.js';
|
|
20
|
+
import { channelSlice } from './channel.js';
|
|
21
|
+
import { statusSlice, shortcutsSlice, renderersSlice, themesSlice, toastSlice, commandTreesSlice, } from './extensions.js';
|
|
22
|
+
import { decisionsSlice } from './decisions.js';
|
|
23
|
+
export const ADAPTER_KERNEL_SLICES = Object.freeze([
|
|
24
|
+
presentationSlice,
|
|
25
|
+
workspaceSlice,
|
|
26
|
+
scenesSlice,
|
|
27
|
+
settingsSlice,
|
|
28
|
+
channelSlice,
|
|
29
|
+
statusSlice,
|
|
30
|
+
shortcutsSlice,
|
|
31
|
+
renderersSlice,
|
|
32
|
+
themesSlice,
|
|
33
|
+
toastSlice,
|
|
34
|
+
commandTreesSlice,
|
|
35
|
+
decisionsSlice,
|
|
36
|
+
]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/presentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,iBAAiB,EAAE,WAY9B,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { presentationDriver } from '../../upstream/presentation-driver.js';
|
|
2
|
+
export const presentationSlice = Object.freeze({
|
|
3
|
+
id: 'presentation',
|
|
4
|
+
capability: 'host.presentation',
|
|
5
|
+
driver: presentationDriver,
|
|
6
|
+
standardDeclarations: Object.freeze([
|
|
7
|
+
'host.presentation.ask',
|
|
8
|
+
'host.presentation.approve',
|
|
9
|
+
'host.presentation.dialog',
|
|
10
|
+
'host.dialogs.select',
|
|
11
|
+
'host.dialogs.confirm',
|
|
12
|
+
'host.dialogs.input',
|
|
13
|
+
]),
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenes.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/scenes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,WAAW,EAAE,WAYxB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { scenesDriver } from '../../upstream/scenes-driver.js';
|
|
2
|
+
export const scenesSlice = Object.freeze({
|
|
3
|
+
id: 'scenes',
|
|
4
|
+
capability: 'host.scenes',
|
|
5
|
+
driver: scenesDriver,
|
|
6
|
+
standardDeclarations: Object.freeze([
|
|
7
|
+
'host.scenes.register',
|
|
8
|
+
'host.scenes.list',
|
|
9
|
+
'host.scenes.open',
|
|
10
|
+
'host.scenes.close',
|
|
11
|
+
'host.scenes.active',
|
|
12
|
+
'host.scenes.subscribe',
|
|
13
|
+
]),
|
|
14
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,aAAa,EAAE,WAU1B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { settingsDriver } from '../../upstream/settings-driver.js';
|
|
2
|
+
export const settingsSlice = Object.freeze({
|
|
3
|
+
id: 'settings',
|
|
4
|
+
capability: 'host.settings',
|
|
5
|
+
driver: settingsDriver,
|
|
6
|
+
standardDeclarations: Object.freeze([
|
|
7
|
+
'host.settings.register',
|
|
8
|
+
'host.settings.list',
|
|
9
|
+
'host.settings.section',
|
|
10
|
+
'host.settings.subscribe',
|
|
11
|
+
]),
|
|
12
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kernel slice: one vertical capability slice.
|
|
3
|
+
*
|
|
4
|
+
* A slice owns:
|
|
5
|
+
* - an upstream driver (detection/live-verification/mount),
|
|
6
|
+
* - the Host Port(s) the driver can mount,
|
|
7
|
+
* - the Standard/effect capabilities it declares and governs.
|
|
8
|
+
*
|
|
9
|
+
* The Kernel uses this only for composition/diagnostics; it never performs
|
|
10
|
+
* business translation itself.
|
|
11
|
+
*/
|
|
12
|
+
import type { UpstreamDriver } from '../../upstream/driver.js';
|
|
13
|
+
export interface KernelSlice {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly capability: string;
|
|
16
|
+
readonly driver: UpstreamDriver;
|
|
17
|
+
/** Effect-class capabilities governed by this slice (Standard declaration). */
|
|
18
|
+
readonly standardDeclarations: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAE9D,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAA;IAC/B,+EAA+E;IAC/E,QAAQ,CAAC,oBAAoB,EAAE,SAAS,MAAM,EAAE,CAAA;CACjD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kernel slice: one vertical capability slice.
|
|
3
|
+
*
|
|
4
|
+
* A slice owns:
|
|
5
|
+
* - an upstream driver (detection/live-verification/mount),
|
|
6
|
+
* - the Host Port(s) the driver can mount,
|
|
7
|
+
* - the Standard/effect capabilities it declares and governs.
|
|
8
|
+
*
|
|
9
|
+
* The Kernel uses this only for composition/diagnostics; it never performs
|
|
10
|
+
* business translation itself.
|
|
11
|
+
*/
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../../../src/adapter/kernel/slices/workspace.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,eAAO,MAAM,cAAc,EAAE,WAa3B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { workspaceDriver } from '../../upstream/workspace-driver.js';
|
|
2
|
+
export const workspaceSlice = Object.freeze({
|
|
3
|
+
id: 'workspace',
|
|
4
|
+
capability: 'host.workspaces',
|
|
5
|
+
driver: workspaceDriver,
|
|
6
|
+
standardDeclarations: Object.freeze([
|
|
7
|
+
'host.workspaces.list',
|
|
8
|
+
'host.workspaces.resolve',
|
|
9
|
+
'host.workspaces.describe',
|
|
10
|
+
'host.workspaces.commandShell',
|
|
11
|
+
'host.workspaces.rename',
|
|
12
|
+
'host.workspaces.commands',
|
|
13
|
+
'host.workspaces.runCommand',
|
|
14
|
+
]),
|
|
15
|
+
});
|