@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
|
@@ -14,6 +14,8 @@ import { Service } from '@deepseek-ai/cordis';
|
|
|
14
14
|
import { cleanScalarText } from './sanitize.js';
|
|
15
15
|
import { activationFiber, assertCallerContext, bindCallerEffect, compositionRoot, concreteService, requirePluginCaller } from './host-access.js';
|
|
16
16
|
import { componentIdentityOf } from './component-identity.js';
|
|
17
|
+
import { assertCapabilityShadowPolicy, } from '../adapter/kernel/runtime.js';
|
|
18
|
+
import { adapterRuntimeFor } from '../adapter/kernel/runtime-context.js';
|
|
17
19
|
// Colon-separated segments are the documented namespacing convention
|
|
18
20
|
// (`plugin:sub-item`); each segment stays a lowercase slug.
|
|
19
21
|
const KEY_PATTERN = /^[a-z][a-z0-9_-]*(:[a-z][a-z0-9_-]*)*$/u;
|
|
@@ -148,6 +150,7 @@ export class TuiStatusRuntime extends Service {
|
|
|
148
150
|
ctx.logger.warn(`dsh-tui: status view "${key}" crashed and was hidden: %o`, error);
|
|
149
151
|
}),
|
|
150
152
|
nextToken: 1,
|
|
153
|
+
runtime: adapterRuntimeFor(ctx),
|
|
151
154
|
};
|
|
152
155
|
hostStatusStores.set(this, state);
|
|
153
156
|
ctx.effect(() => () => state.store.clear());
|
|
@@ -172,6 +175,7 @@ export class TuiStatusRuntime extends Service {
|
|
|
172
175
|
* guess (C-060 honest identity).
|
|
173
176
|
*/
|
|
174
177
|
set(key, text, identity) {
|
|
178
|
+
assertCapabilityShadowPolicy('host.status.set', statusStateFor(this).runtime.mode, statusStateFor(this).runtime.slices);
|
|
175
179
|
const noop = () => { };
|
|
176
180
|
let caller;
|
|
177
181
|
try {
|
|
@@ -289,6 +293,7 @@ export class TuiStatusRuntime extends Service {
|
|
|
289
293
|
* same attribution-only meaning as `set()`.
|
|
290
294
|
*/
|
|
291
295
|
registerView(descriptor, identity) {
|
|
296
|
+
assertCapabilityShadowPolicy('host.status.register-view', statusStateFor(this).runtime.mode, statusStateFor(this).runtime.slices);
|
|
292
297
|
let caller;
|
|
293
298
|
try {
|
|
294
299
|
caller = requirePluginCaller(this.ctx, 'tuiStatus.registerView', this);
|
|
@@ -385,6 +390,30 @@ export class TuiStatusRuntime extends Service {
|
|
|
385
390
|
ledgerApplied = true;
|
|
386
391
|
return dispose;
|
|
387
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* Subscribe to status-line changes. Kept on the plugin-visible service so
|
|
395
|
+
* the shadow-policy gate covers this subscription effect too.
|
|
396
|
+
*/
|
|
397
|
+
subscribe(listener) {
|
|
398
|
+
assertCapabilityShadowPolicy('host.status.subscribe', statusStateFor(this).runtime.mode, statusStateFor(this).runtime.slices);
|
|
399
|
+
const caller = requirePluginCaller(this.ctx, 'tuiStatus.subscribe', this);
|
|
400
|
+
const owner = activationFiber(caller);
|
|
401
|
+
if (owner === undefined)
|
|
402
|
+
return () => { };
|
|
403
|
+
if (typeof listener !== 'function')
|
|
404
|
+
return () => { };
|
|
405
|
+
const wrapped = () => {
|
|
406
|
+
try {
|
|
407
|
+
listener();
|
|
408
|
+
}
|
|
409
|
+
catch (error) {
|
|
410
|
+
caller.logger.warn(`dsh-tui: tuiStatus listener failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
const dispose = statusStateFor(this).store.subscribe(wrapped);
|
|
414
|
+
bindCallerEffect(caller, dispose);
|
|
415
|
+
return dispose;
|
|
416
|
+
}
|
|
388
417
|
}
|
|
389
418
|
const hostStatusStores = new WeakMap();
|
|
390
419
|
function statusStateFor(runtime) {
|
|
@@ -1,56 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export interface SubagentOutputLine {
|
|
5
|
-
kind: SubagentOutputKind;
|
|
6
|
-
text: string;
|
|
7
|
-
at: number;
|
|
8
|
-
/** False while the line is still absorbing streaming deltas. */
|
|
9
|
-
settled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface SubagentToolCall {
|
|
12
|
-
id?: string;
|
|
13
|
-
name: string;
|
|
14
|
-
status: 'running' | 'completed' | 'failed';
|
|
15
|
-
startedAt: number;
|
|
16
|
-
endedAt?: number;
|
|
17
|
-
argsPreview?: string;
|
|
18
|
-
resultPreview?: string;
|
|
19
|
-
error?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface SubagentTokenUsage {
|
|
22
|
-
input?: number;
|
|
23
|
-
output?: number;
|
|
24
|
-
total?: number;
|
|
25
|
-
context?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface SubagentState {
|
|
28
|
-
agentId: string;
|
|
29
|
-
runId?: string;
|
|
30
|
-
description: string;
|
|
31
|
-
provider?: string;
|
|
32
|
-
model?: string;
|
|
33
|
-
effort?: string;
|
|
34
|
-
status: SubagentStatus;
|
|
35
|
-
startedAt: number;
|
|
36
|
-
completedAt?: number;
|
|
37
|
-
endedAt?: number;
|
|
38
|
-
local?: boolean;
|
|
39
|
-
parentSessionId?: string;
|
|
40
|
-
sessionId?: string;
|
|
41
|
-
stopReason?: string;
|
|
42
|
-
error?: string;
|
|
43
|
-
/** Compatibility projection for older consumers. */
|
|
44
|
-
output: string[];
|
|
45
|
-
outputEvents: SubagentOutputLine[];
|
|
46
|
-
toolCalls: SubagentToolCall[];
|
|
47
|
-
tokens?: SubagentTokenUsage;
|
|
48
|
-
summary?: string;
|
|
49
|
-
}
|
|
1
|
+
import type { AssistantStreamFrame } from '@deepseek-ai/dsh-agent';
|
|
2
|
+
import type { SubagentState, SubagentOutputKind, SubagentToolCall } from '../adapter/ports/channel-view.js';
|
|
3
|
+
export type { SubagentState, SubagentStatus, SubagentOutputLine, SubagentOutputKind, SubagentToolCall, SubagentTokenUsage } from '../adapter/ports/channel-view.js';
|
|
50
4
|
export declare class SubagentActivityStore {
|
|
51
5
|
private states;
|
|
52
6
|
private sessionToAgent;
|
|
53
7
|
private listeners;
|
|
8
|
+
private streams;
|
|
54
9
|
private commitLine;
|
|
55
10
|
private pushLine;
|
|
56
11
|
onSpawned(agentId: string, provider?: string, model?: string, info?: Partial<SubagentState>): void;
|
|
@@ -59,6 +14,11 @@ export declare class SubagentActivityStore {
|
|
|
59
14
|
appendOutput(agentId: string, text: string, kind?: SubagentOutputKind): void;
|
|
60
15
|
/** Mark the streaming tail line complete (run settlement). */
|
|
61
16
|
flushOutput(agentId: string): void;
|
|
17
|
+
/** 0.1.5 live stream: transient attempt frames replace `assistant/chunk`
|
|
18
|
+
* session events (the durable settlement keeps flowing as session events). */
|
|
19
|
+
onStreamFrame(agentId: string, frame: AssistantStreamFrame): void;
|
|
20
|
+
private restoreAttempt;
|
|
21
|
+
private settleAssistant;
|
|
62
22
|
onSessionEvent(agentId: string, event: unknown): void;
|
|
63
23
|
/** Merge partial updates (model discovery, session id) into one subagent. */
|
|
64
24
|
patch(agentId: string, partial: Partial<SubagentState>): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagents.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/subagents.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"subagents.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/subagents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAsC,kBAAkB,EAAE,gBAAgB,EAAsB,MAAM,kCAAkC,CAAA;AACnK,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,C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AE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAU3J,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,UAAU,SAAc,GAAG,IAAI;IAC9E,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAC9C,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAc,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI;IAE1E,OAAO,CAAC,MAAM;IAcd;;sEAEkE;IAClE,KAAK,IAAI,IAAI;IAOb,QAAQ,IAAI,aAAa,EAAE;IAC3B,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;IAC/C,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAC3C,OAAO,CAAC,MAAM;CACf"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** Unified subagent activity domain model used by the adapter and every view. */
|
|
2
1
|
const MAX_OUTPUT_EVENTS = 160;
|
|
3
2
|
const MAX_OUTPUT_LINES = 160;
|
|
4
3
|
export class SubagentActivityStore {
|
|
5
4
|
states = new Map();
|
|
6
5
|
sessionToAgent = new Map();
|
|
7
6
|
listeners = new Set();
|
|
7
|
+
streams = new Map();
|
|
8
8
|
commitLine(agentId, kind, text) {
|
|
9
9
|
const state = this.states.get(agentId);
|
|
10
10
|
if (!state)
|
|
@@ -91,6 +91,83 @@ export class SubagentActivityStore {
|
|
|
91
91
|
this.notify();
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
+
/** 0.1.5 live stream: transient attempt frames replace `assistant/chunk`
|
|
95
|
+
* session events (the durable settlement keeps flowing as session events). */
|
|
96
|
+
onStreamFrame(agentId, frame) {
|
|
97
|
+
const state = this.states.get(agentId);
|
|
98
|
+
if (!state || (state.status !== 'running' && state.status !== 'starting'))
|
|
99
|
+
return;
|
|
100
|
+
let stream = this.streams.get(agentId);
|
|
101
|
+
if (stream === undefined) {
|
|
102
|
+
stream = { revision: -1 };
|
|
103
|
+
this.streams.set(agentId, stream);
|
|
104
|
+
}
|
|
105
|
+
if (frame.revision <= stream.revision)
|
|
106
|
+
return;
|
|
107
|
+
stream.revision = frame.revision;
|
|
108
|
+
if (frame.type === 'end') {
|
|
109
|
+
if (stream.attempt?.id === frame.attemptId)
|
|
110
|
+
this.restoreAttempt(agentId, stream);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (frame.type === 'start' || stream.attempt === undefined) {
|
|
114
|
+
this.restoreAttempt(agentId, stream);
|
|
115
|
+
this.flushOutput(agentId);
|
|
116
|
+
// Retain at most the existing 160-line window, never the chunk history.
|
|
117
|
+
stream.attempt = {
|
|
118
|
+
id: frame.attemptId,
|
|
119
|
+
...(frame.type === 'start' ? { turn: frame.turn, step: frame.step } : {}),
|
|
120
|
+
before: state.outputEvents.map(line => ({ ...line })),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
if (frame.type === 'start' || stream.attempt?.id !== frame.attemptId)
|
|
124
|
+
return;
|
|
125
|
+
const chunk = frame.chunk;
|
|
126
|
+
if (chunk.type === 'text-delta' && chunk.text)
|
|
127
|
+
this.appendOutput(agentId, chunk.text, 'text');
|
|
128
|
+
else if (chunk.type === 'reasoning-delta' && chunk.text)
|
|
129
|
+
this.appendOutput(agentId, chunk.text, 'thinking');
|
|
130
|
+
else if (chunk.type === 'usage' && chunk.usage)
|
|
131
|
+
this.setTokens(agentId, chunk.usage);
|
|
132
|
+
}
|
|
133
|
+
restoreAttempt(agentId, stream) {
|
|
134
|
+
const state = this.states.get(agentId);
|
|
135
|
+
if (!state || stream.attempt === undefined)
|
|
136
|
+
return;
|
|
137
|
+
state.outputEvents = stream.attempt.before;
|
|
138
|
+
state.output = state.outputEvents.map(line => line.text);
|
|
139
|
+
stream.attempt = undefined;
|
|
140
|
+
this.notify();
|
|
141
|
+
}
|
|
142
|
+
settleAssistant(agentId, content, turn, step, seq) {
|
|
143
|
+
if (!this.states.has(agentId) || !Array.isArray(content))
|
|
144
|
+
return;
|
|
145
|
+
let stream = this.streams.get(agentId);
|
|
146
|
+
if (stream === undefined) {
|
|
147
|
+
stream = { revision: -1 };
|
|
148
|
+
this.streams.set(agentId, stream);
|
|
149
|
+
}
|
|
150
|
+
if (typeof seq === 'number') {
|
|
151
|
+
if (stream.settledSeq !== undefined && seq <= stream.settledSeq)
|
|
152
|
+
return;
|
|
153
|
+
stream.settledSeq = seq;
|
|
154
|
+
}
|
|
155
|
+
const attempt = stream.attempt;
|
|
156
|
+
if (attempt !== undefined && (attempt.turn === undefined || (attempt.turn === turn && attempt.step === step))) {
|
|
157
|
+
this.restoreAttempt(agentId, stream);
|
|
158
|
+
}
|
|
159
|
+
for (const block of content) {
|
|
160
|
+
if (block === null || typeof block !== 'object')
|
|
161
|
+
continue;
|
|
162
|
+
const value = block;
|
|
163
|
+
if ((value.type !== 'text' && value.type !== 'reasoning') || typeof value.text !== 'string' || value.text === '')
|
|
164
|
+
continue;
|
|
165
|
+
const kind = value.type === 'text' ? 'text' : 'thinking';
|
|
166
|
+
for (const line of value.text.split('\n').slice(-MAX_OUTPUT_EVENTS))
|
|
167
|
+
this.commitLine(agentId, kind, line);
|
|
168
|
+
}
|
|
169
|
+
this.notify();
|
|
170
|
+
}
|
|
94
171
|
onSessionEvent(agentId, event) {
|
|
95
172
|
if (!event || typeof event !== 'object')
|
|
96
173
|
return;
|
|
@@ -108,10 +185,20 @@ export class SubagentActivityStore {
|
|
|
108
185
|
break;
|
|
109
186
|
}
|
|
110
187
|
case 'assistant/message': {
|
|
188
|
+
if (Array.isArray(data.stream))
|
|
189
|
+
this.settleAssistant(agentId, data.message?.content, data.turn, data.step, ev.seq);
|
|
111
190
|
if (data.usage)
|
|
112
191
|
this.setTokens(agentId, data.usage);
|
|
113
192
|
break;
|
|
114
193
|
}
|
|
194
|
+
case 'assistant/attempt': {
|
|
195
|
+
const stream = this.streams.get(agentId);
|
|
196
|
+
const attempt = stream?.attempt;
|
|
197
|
+
if (stream !== undefined && attempt !== undefined && (attempt.turn === undefined || (attempt.turn === data.turn && attempt.step === data.step))) {
|
|
198
|
+
this.restoreAttempt(agentId, stream);
|
|
199
|
+
}
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
115
202
|
case 'tool/call': {
|
|
116
203
|
this.recordTool(agentId, { id: data.callId, name: data.name, status: 'running', startedAt: Date.now(), argsPreview: data.arguments });
|
|
117
204
|
break;
|
|
@@ -186,6 +273,9 @@ export class SubagentActivityStore {
|
|
|
186
273
|
const state = this.states.get(agentId);
|
|
187
274
|
if (!state || (state.status !== 'running' && state.status !== 'starting'))
|
|
188
275
|
return;
|
|
276
|
+
const stream = this.streams.get(agentId);
|
|
277
|
+
if (stream !== undefined)
|
|
278
|
+
this.restoreAttempt(agentId, stream);
|
|
189
279
|
state.status = status;
|
|
190
280
|
state.completedAt = Date.now();
|
|
191
281
|
state.endedAt = state.completedAt;
|
|
@@ -202,6 +292,7 @@ export class SubagentActivityStore {
|
|
|
202
292
|
reset() {
|
|
203
293
|
this.states.clear();
|
|
204
294
|
this.sessionToAgent.clear();
|
|
295
|
+
this.streams.clear();
|
|
205
296
|
this.notify();
|
|
206
297
|
}
|
|
207
298
|
snapshot() { return Array.from(this.states.values()).map(state => ({ ...state, output: [...state.output], outputEvents: [...state.outputEvents], toolCalls: state.toolCalls.map(tool => ({ ...tool })), tokens: state.tokens ? { ...state.tokens } : undefined })); }
|
|
@@ -26,6 +26,7 @@ export interface TuiThemeRegistration {
|
|
|
26
26
|
}
|
|
27
27
|
/** Host-only read surface for runtime themes. */
|
|
28
28
|
export interface TuiThemeHost {
|
|
29
|
+
register(descriptor: TuiThemeDescriptor): () => void;
|
|
29
30
|
getSnapshot(): readonly TuiThemeRegistration[];
|
|
30
31
|
resolve(name: string): Theme | undefined;
|
|
31
32
|
subscribe(listener: () => void): () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/themes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/themes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAgBtD,OAAO,EAOL,KAAK,aAAa,EAClB,KAAK,KAAK,EACX,MAAM,aAAa,CAAA;AAEpB,qDAAqD;AACrD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,CAAA;AAEzD,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;CACnE;AAED,6EAA6E;AAC7E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAA;CAC1C;AAED,iDAAiD;AACjD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,UAAU,EAAE,kBAAkB,GAAG,MAAM,IAAI,CAAA;IACpD,WAAW,IAAI,SAAS,oBAAoB,EAAE,CAAA;IAC9C,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;IACxC,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;CAC5C;AAED,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf,SAAS,EAAE,eAAe,CAAA;KAC3B;CACF;AAuKD,uDAAuD;AACvD,qBAAa,eAAgB,SAAQ,OAAO;gBAC9B,GAAG,EAAE,OAAO;IA2DxB;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,IAAI;CAoFzE;AAED,0EAA0E;AAC1E,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAO5F;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -10,6 +10,8 @@ import { Service } from '@deepseek-ai/cordis';
|
|
|
10
10
|
import { cleanRenderText } from './sanitize.js';
|
|
11
11
|
import { activationFiber, assertCallerContext, bindCallerEffect, compositionRoot, concreteService, requirePluginCaller, } from './host-access.js';
|
|
12
12
|
import { isThemeBase, isValidThemeColor } from '../customTheme.js';
|
|
13
|
+
import { assertCapabilityShadowPolicy, } from '../adapter/kernel/runtime.js';
|
|
14
|
+
import { adapterRuntimeFor } from '../adapter/kernel/runtime-context.js';
|
|
13
15
|
import { AUTO_THEME_NAME, getTheme, normalizeThemeKey, isRetiredThemeKey, registerRuntimeThemeResolver, THEME_NAMES, } from '../theme.js';
|
|
14
16
|
const NAME_PATTERN = /^[a-z][a-z0-9_-]*(?::[a-z][a-z0-9_-]*)?$/u;
|
|
15
17
|
const MAX_NAME_LENGTH = 128;
|
|
@@ -111,6 +113,7 @@ function emit(state) {
|
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
function resolveRuntimeTheme(runtime, name) {
|
|
116
|
+
assertCapabilityShadowPolicy('host.themes.resolver', themeStateFor(runtime).runtime.mode, themeStateFor(runtime).runtime.slices);
|
|
114
117
|
let normalized;
|
|
115
118
|
try {
|
|
116
119
|
normalized = normalizeRuntimeName(name);
|
|
@@ -157,9 +160,34 @@ export class TuiThemeRuntime extends Service {
|
|
|
157
160
|
host: undefined,
|
|
158
161
|
resolverCleanup: undefined,
|
|
159
162
|
disposed: false,
|
|
163
|
+
runtime: adapterRuntimeFor(ctx),
|
|
160
164
|
};
|
|
161
165
|
hostThemes.set(this, state);
|
|
166
|
+
const hostThemeOwner = Object.freeze({ kind: 'host-theme-owner' });
|
|
162
167
|
state.host = Object.freeze({
|
|
168
|
+
register: (descriptor) => {
|
|
169
|
+
const state = themeStateFor(runtime);
|
|
170
|
+
if (state.disposed)
|
|
171
|
+
return NOOP;
|
|
172
|
+
const validated = validateDescriptor(descriptor);
|
|
173
|
+
if (validated === undefined || state.entries.has(validated.name) || state.entries.size >= MAX_RUNTIME_THEMES) {
|
|
174
|
+
return NOOP;
|
|
175
|
+
}
|
|
176
|
+
const entry = Object.freeze({
|
|
177
|
+
...validated,
|
|
178
|
+
owner: hostThemeOwner,
|
|
179
|
+
theme: Object.freeze({ ...getTheme(validated.base), ...validated.colors }),
|
|
180
|
+
});
|
|
181
|
+
state.entries.set(entry.name, entry);
|
|
182
|
+
emit(state);
|
|
183
|
+
return () => {
|
|
184
|
+
const current = state.entries.get(entry.name);
|
|
185
|
+
if (current !== entry || current.owner !== hostThemeOwner)
|
|
186
|
+
return;
|
|
187
|
+
state.entries.delete(entry.name);
|
|
188
|
+
emit(state);
|
|
189
|
+
};
|
|
190
|
+
},
|
|
163
191
|
getSnapshot: () => themeStateFor(runtime).snapshot,
|
|
164
192
|
resolve: (name) => resolveRuntimeTheme(runtime, name),
|
|
165
193
|
subscribe: (listener) => subscribeRuntimeTheme(runtime, listener),
|
|
@@ -186,6 +214,7 @@ export class TuiThemeRuntime extends Service {
|
|
|
186
214
|
* the caller's Cordis activation and disappear with that activation.
|
|
187
215
|
*/
|
|
188
216
|
register(descriptor, identity) {
|
|
217
|
+
assertCapabilityShadowPolicy('host.themes.register', themeStateFor(this).runtime.mode, themeStateFor(this).runtime.slices);
|
|
189
218
|
try {
|
|
190
219
|
const caller = requirePluginCaller(this.ctx, 'tuiThemes.register', this);
|
|
191
220
|
const state = themeStateFor(this);
|
|
@@ -33,7 +33,20 @@ export interface TuiToastOptions {
|
|
|
33
33
|
* deliveries before/after a sink exists are dropped (returned as false). */
|
|
34
34
|
export declare class TuiToastStore {
|
|
35
35
|
private sink;
|
|
36
|
+
private readonly probeSinks;
|
|
36
37
|
setSink(sink: TuiToastSink | undefined): void;
|
|
38
|
+
/** Whether a real production sink (the host's channel.notify bridge) is
|
|
39
|
+
* present. Used by the toast live probe to distinguish “host store exists”
|
|
40
|
+
* from “real production delivery path is actually wired”. */
|
|
41
|
+
hasSink(): boolean;
|
|
42
|
+
/** Host-only probe sink registration. Probe sinks are independent of the
|
|
43
|
+
* production sink, so a live probe never replaces or swallows production
|
|
44
|
+
* toast delivery. */
|
|
45
|
+
addProbeSink(sink: TuiToastSink): () => void;
|
|
46
|
+
/** Deliver only to host-only probe sinks, leaving the production sink
|
|
47
|
+
* completely untouched. Returns true when at least one probe sink received
|
|
48
|
+
* the delivery. */
|
|
49
|
+
deliverProbe(delivery: TuiToastDelivery): boolean;
|
|
37
50
|
deliver(delivery: TuiToastDelivery): boolean;
|
|
38
51
|
}
|
|
39
52
|
declare module '@deepseek-ai/cordis' {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/toast.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;
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C9B,GAAG,EAAE,OAAO;IAOxB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,OAAO;CAyD9E;AAQD,0EAA0E;AAC1E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,CAOjG;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
import { Service } from '@deepseek-ai/cordis';
|
|
15
15
|
import { cleanScalarText } from './sanitize.js';
|
|
16
16
|
import { activationFiber, compositionRoot, concreteService, requirePluginCaller } from './host-access.js';
|
|
17
|
+
import { assertCapabilityShadowPolicy, } from '../adapter/kernel/runtime.js';
|
|
18
|
+
import { adapterRuntimeFor } from '../adapter/kernel/runtime-context.js';
|
|
17
19
|
// Same caps as the channel's own toast-bound plugin text (NOTICE_CELLS).
|
|
18
20
|
const TEXT_CELLS = 200;
|
|
19
21
|
const TIMEOUT_DEFAULT_MS = 4000;
|
|
@@ -27,9 +29,36 @@ const COLORS = new Set(['success', 'warning', 'error']);
|
|
|
27
29
|
* deliveries before/after a sink exists are dropped (returned as false). */
|
|
28
30
|
export class TuiToastStore {
|
|
29
31
|
sink;
|
|
32
|
+
probeSinks = new Set();
|
|
30
33
|
setSink(sink) {
|
|
31
34
|
this.sink = sink;
|
|
32
35
|
}
|
|
36
|
+
/** Whether a real production sink (the host's channel.notify bridge) is
|
|
37
|
+
* present. Used by the toast live probe to distinguish “host store exists”
|
|
38
|
+
* from “real production delivery path is actually wired”. */
|
|
39
|
+
hasSink() {
|
|
40
|
+
return this.sink !== undefined;
|
|
41
|
+
}
|
|
42
|
+
/** Host-only probe sink registration. Probe sinks are independent of the
|
|
43
|
+
* production sink, so a live probe never replaces or swallows production
|
|
44
|
+
* toast delivery. */
|
|
45
|
+
addProbeSink(sink) {
|
|
46
|
+
this.probeSinks.add(sink);
|
|
47
|
+
return () => {
|
|
48
|
+
this.probeSinks.delete(sink);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/** Deliver only to host-only probe sinks, leaving the production sink
|
|
52
|
+
* completely untouched. Returns true when at least one probe sink received
|
|
53
|
+
* the delivery. */
|
|
54
|
+
deliverProbe(delivery) {
|
|
55
|
+
let delivered = false;
|
|
56
|
+
for (const sink of this.probeSinks) {
|
|
57
|
+
sink(delivery);
|
|
58
|
+
delivered = true;
|
|
59
|
+
}
|
|
60
|
+
return delivered;
|
|
61
|
+
}
|
|
33
62
|
deliver(delivery) {
|
|
34
63
|
if (this.sink === undefined)
|
|
35
64
|
return false;
|
|
@@ -47,7 +76,7 @@ export class TuiToastRuntime extends Service {
|
|
|
47
76
|
constructor(ctx) {
|
|
48
77
|
super(ctx, 'tuiToast');
|
|
49
78
|
compositionRoot(ctx);
|
|
50
|
-
const state = { store: new TuiToastStore(), windows: new Map(), warned: new Set() };
|
|
79
|
+
const state = { store: new TuiToastStore(), windows: new Map(), warned: new Set(), runtime: adapterRuntimeFor(ctx) };
|
|
51
80
|
hostToastStores.set(this, state);
|
|
52
81
|
}
|
|
53
82
|
/**
|
|
@@ -62,6 +91,7 @@ export class TuiToastRuntime extends Service {
|
|
|
62
91
|
* minute; the first drop logs a sticky warning per activation).
|
|
63
92
|
*/
|
|
64
93
|
show(text, options = {}) {
|
|
94
|
+
assertCapabilityShadowPolicy('host.toast.show', toastStateFor(this).runtime.mode, toastStateFor(this).runtime.slices);
|
|
65
95
|
let caller;
|
|
66
96
|
try {
|
|
67
97
|
caller = requirePluginCaller(this.ctx, 'tuiToast.show', this);
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
*
|
|
12
12
|
* - **Own duration only.** A turn's cost is its own bracket, never the sum of
|
|
13
13
|
* its children — summing both would double-count every tool inside it.
|
|
14
|
-
* - **No fabricated spans.** A step that produced no
|
|
14
|
+
* - **No fabricated spans.** A step that produced no stream output (no
|
|
15
|
+
* `assistant/chunk` pre-0.1.5, no embedded settlement stream since — the
|
|
15
16
|
* request failed, or the log predates chunk capture) contributes no TTFT and
|
|
16
17
|
* no decode sample rather than a zero that would drag the average down.
|
|
17
18
|
* - **Bursts expand.** A folded run is one ledger row but N calls; the counts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aggregate.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/trajectory/aggregate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"aggregate.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/trajectory/aggregate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAA0B,MAAM,YAAY,CAAA;AAC1G,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAK5D;;;;;;GAMG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,SAAS,QAAQ,EAAE,EAC1B,KAAK,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,GACnD,IAAI,CASN;AAqCD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,UAAU,EAAE,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,EAAE,CAIrF;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,GAAE,WAAwB,GAAG,aAAa,CAuGzF"}
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
*
|
|
12
12
|
* - **Own duration only.** A turn's cost is its own bracket, never the sum of
|
|
13
13
|
* its children — summing both would double-count every tool inside it.
|
|
14
|
-
* - **No fabricated spans.** A step that produced no
|
|
14
|
+
* - **No fabricated spans.** A step that produced no stream output (no
|
|
15
|
+
* `assistant/chunk` pre-0.1.5, no embedded settlement stream since — the
|
|
15
16
|
* request failed, or the log predates chunk capture) contributes no TTFT and
|
|
16
17
|
* no decode sample rather than a zero that would drag the average down.
|
|
17
18
|
* - **Bursts expand.** A folded run is one ledger row but N calls; the counts
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* ## Why guards instead of the declared types
|
|
5
5
|
*
|
|
6
|
-
* `SessionEventMap` declares
|
|
7
|
-
*
|
|
6
|
+
* `SessionEventMap` declares a dozen-odd core event types. Everything else in
|
|
7
|
+
* the `KNOWN_SESSION_EVENT_TYPES` vocabulary arrives through *module
|
|
8
8
|
* augmentation* from the plugin that owns it — `llm/retry` from the LLM
|
|
9
|
-
* layer, `hook/*` from the hook runner, `tool/code-dispatch*`
|
|
10
|
-
*
|
|
9
|
+
* layer, `hook/*` from the hook runner, `tool/code-dispatch*` (pre-0.1.5) /
|
|
10
|
+
* `tool/ptc-dispatch*` (0.1.5) from the code/PTC runtime. Those declaration
|
|
11
|
+
* packages are not all in this bundle's dependency
|
|
11
12
|
* graph, so `event.type === 'llm/retry'` does not even type-check here: the
|
|
12
13
|
* literal is not a member of the union TypeScript can see.
|
|
13
14
|
*
|
|
@@ -26,18 +27,14 @@
|
|
|
26
27
|
* shape. Where a field was absent from every observed sample it is optional
|
|
27
28
|
* here, so a future harness that starts emitting it is picked up for free.
|
|
28
29
|
*/
|
|
29
|
-
import type {
|
|
30
|
+
import type { TimedStreamChunk } from '@deepseek-ai/dsh-llm';
|
|
31
|
+
import type { RawTrajEvent } from '../../adapter/ports/channel-view.js';
|
|
32
|
+
export type { RawTrajEvent } from '../../adapter/ports/channel-view.js';
|
|
30
33
|
/**
|
|
31
34
|
* A session event reduced to the envelope the projection relies on. Only
|
|
32
35
|
* `type`, `seq` and `time` are contractual across every event; `data` is
|
|
33
36
|
* deliberately `unknown` so nothing downstream can read it without a guard.
|
|
34
37
|
*/
|
|
35
|
-
export interface RawTrajEvent {
|
|
36
|
-
readonly type: string;
|
|
37
|
-
readonly seq: number;
|
|
38
|
-
readonly time: number;
|
|
39
|
-
readonly data: unknown;
|
|
40
|
-
}
|
|
41
38
|
/**
|
|
42
39
|
* The single widening point for the whole trajectory feature.
|
|
43
40
|
*
|
|
@@ -51,7 +48,7 @@ export interface RawTrajEvent {
|
|
|
51
48
|
* @param events - The session's immutable event snapshot.
|
|
52
49
|
* @returns The same array, typed for guard-mediated access.
|
|
53
50
|
*/
|
|
54
|
-
export declare function asRawEvents(events: readonly
|
|
51
|
+
export declare function asRawEvents(events: readonly RawTrajEvent[]): readonly RawTrajEvent[];
|
|
55
52
|
/**
|
|
56
53
|
* An `llm/retry` payload.
|
|
57
54
|
*
|
|
@@ -78,12 +75,18 @@ export declare function readRetry(data: unknown): RetryPayload | undefined;
|
|
|
78
75
|
/** The `retryId` of an `llm/retry-started`, used to close the retry bracket. */
|
|
79
76
|
export declare function readRetryStarted(data: unknown): string | undefined;
|
|
80
77
|
/**
|
|
81
|
-
* A `tool/code-dispatch*` payload — the code runner's
|
|
82
|
-
* the only source of SUBTOOL rows.
|
|
78
|
+
* A `tool/code-dispatch*` / `tool/ptc-dispatch*` payload — the code runner's
|
|
79
|
+
* nested tool calls, and the only source of SUBTOOL rows.
|
|
83
80
|
*
|
|
84
|
-
*
|
|
85
|
-
* `
|
|
86
|
-
*
|
|
81
|
+
* The dispatch bracket was renamed with the runtime: pre-0.1.5 logs carry
|
|
82
|
+
* `tool/code-dispatch-start` ↔ `tool/code-dispatch`, 0.1.5 logs carry
|
|
83
|
+
* `tool/ptc-dispatch-start` ↔ `tool/ptc-dispatch`, paired by `subCallId` in
|
|
84
|
+
* both generations; `rootCallId`/`parentCallId` give the enclosing
|
|
85
|
+
* model-issued call. The payload shape is identical across the rename, so
|
|
86
|
+
* this one guard serves both. `subCallId` is treated as an OPAQUE pairing
|
|
87
|
+
* key: the fold never parses the `<parent>:code:<n>` / `<parent>:ptc:<n>`
|
|
88
|
+
* infix, so a renamed (or future) id scheme cannot break pairing.
|
|
89
|
+
* `arguments` is a structured value here (unlike `tool/call`, whose
|
|
87
90
|
* `arguments` is the model's raw JSON string), so it is stringified for the
|
|
88
91
|
* preview at guard time — the payload object is small and already
|
|
89
92
|
* materialized by the log reader.
|
|
@@ -96,8 +99,24 @@ export interface DispatchPayload {
|
|
|
96
99
|
readonly args?: string;
|
|
97
100
|
readonly isError?: boolean;
|
|
98
101
|
}
|
|
99
|
-
/** Narrow a `tool/code-dispatch*` payload. */
|
|
102
|
+
/** Narrow a `tool/code-dispatch*` / `tool/ptc-dispatch*` payload. */
|
|
100
103
|
export declare function readDispatch(data: unknown): DispatchPayload | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Expand the compact `stream` of a V3 `assistant/message` / `assistant/attempt`
|
|
106
|
+
* into timed chunks, or `undefined` when the event carries no usable stream.
|
|
107
|
+
*
|
|
108
|
+
* V3 logs replace per-token `assistant/chunk` events with one compact
|
|
109
|
+
* `AssistantStreamRecord[]` embedded in the settlement event. Upstream's
|
|
110
|
+
* `expandAssistantStream` is the validating read path for that record list —
|
|
111
|
+
* and it landed with the record type itself (0.1.5), so the binding is
|
|
112
|
+
* feature-detected through the namespace rather than named-imported: a
|
|
113
|
+
* pre-0.1.5 host lacks the export, and a named import would fail the whole
|
|
114
|
+
* module at link time instead of degrading this one read. The same
|
|
115
|
+
* never-throw contract as every guard here applies on both axes: a missing
|
|
116
|
+
* expander or a malformed record (the expander throws `TypeError`) yields
|
|
117
|
+
* `undefined`, and the fold simply contributes no stream timing.
|
|
118
|
+
*/
|
|
119
|
+
export declare function readAssistantStream(data: unknown): readonly TimedStreamChunk[] | undefined;
|
|
101
120
|
/**
|
|
102
121
|
* A `request/header` payload, reduced to the route facts the trajectory
|
|
103
122
|
* shows: which model actually served this request, at which effort. The full
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/trajectory/guards.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"guards.d.ts","sourceR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