@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,90 @@
|
|
|
1
|
+
/** Host-owned in-process Channel contract. No runtime or upstream imports. */
|
|
2
|
+
export interface LocalCommand {
|
|
3
|
+
/** The command name without the slash, e.g. `clear`. */
|
|
4
|
+
name: string;
|
|
5
|
+
/**
|
|
6
|
+
* One-line description shown in the suggestion overlay — the English text
|
|
7
|
+
* and the fallback for languages without a `cmd-desc-<name>` dict entry
|
|
8
|
+
* (see {@link localizedDescription}).
|
|
9
|
+
*/
|
|
10
|
+
description: string;
|
|
11
|
+
/** Provider-owned translations selected with the active TUI language. */
|
|
12
|
+
descriptions?: LocalizedDescriptions;
|
|
13
|
+
/** Optional bracket tag shown between name and description. */
|
|
14
|
+
tag?: string;
|
|
15
|
+
/** True when a DSH plugin registered this command (not built in). */
|
|
16
|
+
external?: boolean;
|
|
17
|
+
/** True when this command explicitly accepts composer images. Local
|
|
18
|
+
* commands default to false; registry entries mirror `input.images`. */
|
|
19
|
+
acceptsImages?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* True when the entry is a user-invocable skill discovered by the DSH
|
|
22
|
+
* skill registry (issue #86). Skill entries are completion-only: dispatch
|
|
23
|
+
* falls through to the model as plain text, where dsh-tool-skill's
|
|
24
|
+
* pre-step hook injects the skill body — the same path a hand-typed
|
|
25
|
+
* `/skill-name` takes. The help menu hides them (chrome commands only).
|
|
26
|
+
*/
|
|
27
|
+
skill?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export type LocalizedDescriptions = Readonly<Partial<Record<'zh' | 'en', string>>>;
|
|
30
|
+
/** A concrete completion row, including the text inserted by Tab/Enter. */
|
|
31
|
+
export interface CommandCompletion extends LocalCommand {
|
|
32
|
+
replacement: string;
|
|
33
|
+
commandLine: string;
|
|
34
|
+
descriptionKey?: string;
|
|
35
|
+
}
|
|
36
|
+
export type BalanceResult = {
|
|
37
|
+
readonly ok: true;
|
|
38
|
+
/** 账户是否可用(是否有可用额度)。 */
|
|
39
|
+
readonly isAvailable: boolean;
|
|
40
|
+
readonly balances: readonly BalanceInfo[];
|
|
41
|
+
} | {
|
|
42
|
+
readonly ok: false;
|
|
43
|
+
/** 失败分类:无 key / 网络或超时 / 认证失败 / 非 2xx / 响应结构非法。 */
|
|
44
|
+
readonly reason: 'no-key' | 'network' | 'unauthorized' | 'http' | 'invalid';
|
|
45
|
+
/** 非 2xx 时的 HTTP 状态码(其余分类无)。 */
|
|
46
|
+
readonly status?: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* DeepSeek 官方账户余额查询(`GET /user/balance`)。
|
|
50
|
+
*
|
|
51
|
+
* 纯函数模块:只负责"用 key 换余额",密钥由调用方(channel 的 credentials
|
|
52
|
+
* seam → 环境变量兜底)解析,绝不在此打印或持久化。查询接口本身是只读的,
|
|
53
|
+
* 不消耗 API 额度(社区插件均按秒/分钟级轮询使用)。
|
|
54
|
+
*
|
|
55
|
+
* 响应结构(官方文档):
|
|
56
|
+
* { "is_available": true, "balance_infos": [
|
|
57
|
+
* { "currency": "CNY", "total_balance": "110.00",
|
|
58
|
+
* "granted_balance": "10.00", "topped_up_balance": "100.00" } ] }
|
|
59
|
+
* 余额字段是字符串数字;`granted` 为赠送余额,`topped_up` 为充值余额,
|
|
60
|
+
* 扣费优先扣赠送余额。
|
|
61
|
+
*/
|
|
62
|
+
/** 单个币种的余额快照(元)。 */
|
|
63
|
+
export interface BalanceInfo {
|
|
64
|
+
currency: string;
|
|
65
|
+
/** 总余额 = granted + toppedUp。 */
|
|
66
|
+
total: number;
|
|
67
|
+
/** 赠送余额。 */
|
|
68
|
+
granted: number;
|
|
69
|
+
/** 充值余额。 */
|
|
70
|
+
toppedUp: number;
|
|
71
|
+
}
|
|
72
|
+
export interface FileCandidate {
|
|
73
|
+
id: string;
|
|
74
|
+
path: string;
|
|
75
|
+
displayPath: string;
|
|
76
|
+
name: string;
|
|
77
|
+
kind: FileCandidateKind;
|
|
78
|
+
score: number;
|
|
79
|
+
}
|
|
80
|
+
export type FileCandidateKind = 'file' | 'directory';
|
|
81
|
+
/** Outcome of one recap call, as surfaced on the Channel. */
|
|
82
|
+
export interface RecapOutcome {
|
|
83
|
+
/** The one-line summary, or null when the call failed. */
|
|
84
|
+
summary: string | null;
|
|
85
|
+
/** Proposed session title, when the model offered one. */
|
|
86
|
+
title?: string;
|
|
87
|
+
/** Human-readable failure reason (llm missing, stream error, …). */
|
|
88
|
+
error?: string;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=channel-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-catalog.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/channel-catalog.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAG9E,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB,yEAAyE;IACzE,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,+DAA+D;IAC/D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;4EACwE;IACxE,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;AAElF,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AAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/** Host-owned in-process Channel contract. No runtime or upstream imports. */
|
|
2
|
+
/**
|
|
3
|
+
* Spinner presentation phase: the stage of the current turn the spinner
|
|
4
|
+
* should convey.
|
|
5
|
+
*/
|
|
6
|
+
export type SpinnerMode = 'requesting' | 'thinking' | 'responding' | 'tool-use' | 'tool-input';
|
|
7
|
+
/** Background treatment applied to tool-call cards. */
|
|
8
|
+
export type ToolBackground = 'none' | 'subtle' | 'strong';
|
|
9
|
+
/**
|
|
10
|
+
* What the fullscreen transcript's right gutter shows:
|
|
11
|
+
* - `timeline`: Grok-style turn rail — one tick per user turn (conversation
|
|
12
|
+
* order, not scroll proportion), active turn highlighted, click to jump;
|
|
13
|
+
* - `scrollbar`: classic proportional thumb — position/size of the visible
|
|
14
|
+
* window over the whole content, click the track to scroll there;
|
|
15
|
+
* - `hidden`: no gutter; the transcript takes the full width.
|
|
16
|
+
*/
|
|
17
|
+
export type ScrollGutterMode = 'timeline' | 'scrollbar' | 'hidden';
|
|
18
|
+
/** A stored page-margin setting: a preset name or a custom spec. */
|
|
19
|
+
export type PageMarginSetting = PageMarginMode | PageMarginSpec;
|
|
20
|
+
/**
|
|
21
|
+
* Root page inset (settings `dsh-tui.pageMargin`): some terminals carry
|
|
22
|
+
* their own viewport padding (Windows Terminal's 8px default, GUI
|
|
23
|
+
* emulators), others — bare WSL, tmux, SSH — have none, so the UI text
|
|
24
|
+
* touches the screen edges. A setting is either a preset name
|
|
25
|
+
* (none/slim/normal/roomy) or a custom spec (see {@link PageMarginSpec}).
|
|
26
|
+
* The resolved geometry is what `PageMargin` (the root inset box above
|
|
27
|
+
* Chat) renders; the channel carries the setting for tests, the module
|
|
28
|
+
* store below is what the box itself subscribes to (the channel's version
|
|
29
|
+
* bump only re-renders below Chat).
|
|
30
|
+
*/
|
|
31
|
+
export type PageMarginMode = 'none' | 'slim' | 'normal' | 'roomy';
|
|
32
|
+
/** Custom spec: `NxM` — N blank columns per side, M blank rows top/bottom
|
|
33
|
+
* (e.g. `3x1`). */
|
|
34
|
+
export type PageMarginSpec = `${number}x${number}`;
|
|
35
|
+
/** Individually selectable fields in the status footer. */
|
|
36
|
+
export interface StatusBarConfig {
|
|
37
|
+
/** Prefer the compact, single-line presentation when space permits. */
|
|
38
|
+
compact: boolean;
|
|
39
|
+
/** Live model id. */
|
|
40
|
+
model: boolean;
|
|
41
|
+
/** Reasoning effort / thinking mode. */
|
|
42
|
+
thinking: boolean;
|
|
43
|
+
/** Session working directory. */
|
|
44
|
+
cwd: boolean;
|
|
45
|
+
/** Current context-window consumption. */
|
|
46
|
+
contextUsage: boolean;
|
|
47
|
+
/** Prompt-cache hit rate. */
|
|
48
|
+
cache: boolean;
|
|
49
|
+
/** Running input/output token totals. */
|
|
50
|
+
tokens: boolean;
|
|
51
|
+
/** Estimated session spend (≈¥, DeepSeek official pricing — only shown
|
|
52
|
+
* for official DeepSeek providers whose model has a known price). */
|
|
53
|
+
cost: boolean;
|
|
54
|
+
/** Live and recent output speed. */
|
|
55
|
+
tps: boolean;
|
|
56
|
+
/** Current git branch. */
|
|
57
|
+
gitBranch: boolean;
|
|
58
|
+
/** Current session title. */
|
|
59
|
+
sessionTitle: boolean;
|
|
60
|
+
/** Short session id (# + first 8 chars), matching the session log filename. */
|
|
61
|
+
sessionId: boolean;
|
|
62
|
+
/** Compact goal chip (phase glyph + rounds) while a goal exists. */
|
|
63
|
+
goal: boolean;
|
|
64
|
+
/** Non-default session mode. */
|
|
65
|
+
mode: boolean;
|
|
66
|
+
/** Segmented context progress bar on its own footer row. */
|
|
67
|
+
contextBar: boolean;
|
|
68
|
+
/** Idle working-activity summary. */
|
|
69
|
+
activity: boolean;
|
|
70
|
+
/** Mini trajectory wake rendered at the footer's right edge. */
|
|
71
|
+
trajectory: boolean;
|
|
72
|
+
/** Idle `? for shortcuts` reminder; shortcut keys remain available when hidden. */
|
|
73
|
+
shortcutHint: boolean;
|
|
74
|
+
}
|
|
75
|
+
export interface SessionModeSpec {
|
|
76
|
+
/** Stable id; also the display name unless `label` is set or the id is a
|
|
77
|
+
* localized built-in (`default`/`plan`/`full`). */
|
|
78
|
+
id: string;
|
|
79
|
+
/** Optional display label; wins over the built-in i18n name. */
|
|
80
|
+
label?: string;
|
|
81
|
+
/** Plan mode on/off (dsh-plan-mode `/plan`). */
|
|
82
|
+
plan?: boolean;
|
|
83
|
+
/** Sandbox mode override (dsh-sandbox-policy `sandbox/mode`). */
|
|
84
|
+
sandbox?: 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
85
|
+
/** Approval policy override (dsh-user-approval `approval/policy`). */
|
|
86
|
+
approval?: 'ask' | 'never';
|
|
87
|
+
/** Durable DSH permission preset identity (`permission/preset`). */
|
|
88
|
+
permission?: string;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=channel-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-display.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/channel-display.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAG9E;;;GAGG;AACH,MAAM,MAAM,WAAW,GACnB,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,UAAU,GACV,YAAY,CAAA;AAEhB,uDAAuD;AACvD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEzD;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAA;AAElE,oEAAoE;AACpE,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,cAAc,CAAA;AAE/D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEjE;oBACoB;AACpB,MAAM,MAAM,cAAc,GAAG,GAAG,MAAM,IAAI,MAAM,EAA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@ -0,0 +1,229 @@
|
|
|
1
|
+
/** Host-owned in-process Channel contract. No runtime or upstream imports. */
|
|
2
|
+
/** One extra rewind mode offered by a plugin (e.g. "also restore files"). */
|
|
3
|
+
export interface TuiRewindMode {
|
|
4
|
+
/** Stable id reported back in `TuiRewindDoneEvent.mode`. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** One-line label shown in the confirm pane. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Optional dimmed description under the label. */
|
|
9
|
+
description?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SessionTreeData {
|
|
12
|
+
readonly roots: readonly TreeNode[];
|
|
13
|
+
/** Node ids on the path from the family root to the live tip (`•` marker). */
|
|
14
|
+
readonly activePath: ReadonlySet<string>;
|
|
15
|
+
/** Live session's last node (initial cursor target). */
|
|
16
|
+
readonly activeLeafId: string | null;
|
|
17
|
+
/** Per-session display facts (branch-head labels in the screen). */
|
|
18
|
+
readonly sessions: ReadonlyMap<string, SessionTreeMeta>;
|
|
19
|
+
/** Per-session rewind UX facts (drop-turn warning, branch-adopt target). */
|
|
20
|
+
readonly rewindFacts: ReadonlyMap<string, SessionRewindFacts>;
|
|
21
|
+
/** True when the family exceeded a cap and distant branches were dropped. */
|
|
22
|
+
readonly truncated: boolean;
|
|
23
|
+
readonly sessionCount: number;
|
|
24
|
+
}
|
|
25
|
+
export interface TreeNode {
|
|
26
|
+
/** `${sessionId}:${seq}`, or `${sessionId}:head` for a placeholder. */
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/** Null only on a session's placeholder node (empty fork / unreadable log). */
|
|
29
|
+
readonly entry: TreeEntry | null;
|
|
30
|
+
/** Session whose chain this node belongs to. */
|
|
31
|
+
readonly sessionId: string;
|
|
32
|
+
/** True on a session chain's first node (renders the fork/session marker). */
|
|
33
|
+
branchHead: boolean;
|
|
34
|
+
children: TreeNode[];
|
|
35
|
+
}
|
|
36
|
+
/** One displayable log entry; identity = (sessionId, seq). */
|
|
37
|
+
export interface TreeEntry {
|
|
38
|
+
readonly sessionId: string;
|
|
39
|
+
/** Source event seq inside that session's log (the fork anchor). */
|
|
40
|
+
readonly seq: number;
|
|
41
|
+
readonly kind: TreeEntryKind;
|
|
42
|
+
/** One-line preview (whitespace folded, capped). */
|
|
43
|
+
readonly text: string;
|
|
44
|
+
/** Uncapped searchable text (kind + tool name + content). */
|
|
45
|
+
readonly searchText: string;
|
|
46
|
+
/** Event wall-clock time. */
|
|
47
|
+
readonly time: number;
|
|
48
|
+
/** Tool outcome for kind 'tool' (settled by tool/result during extraction). */
|
|
49
|
+
readonly toolStatus?: 'running' | 'ok' | 'error';
|
|
50
|
+
/** Extra marker (e.g. `aborted` for chunk-only assistant text). */
|
|
51
|
+
readonly label?: string;
|
|
52
|
+
/** True on entries of the log's OWN first turn (a complete log's turn 0).
|
|
53
|
+
* Only USER entries among them are unrewindable (dropping turn 0 needs
|
|
54
|
+
* boundary -1, "cannot rewind to the very first message"), so the screen
|
|
55
|
+
* refuses those up front instead of failing at confirm time; non-user
|
|
56
|
+
* turn-0 entries rewind fine (a mid-turn cut at their step's step/end, or
|
|
57
|
+
* turn 0's closing turn/end). Never set on a truncated tail: its first
|
|
58
|
+
* VISIBLE turn rewinds fine against the full log, which is where
|
|
59
|
+
* rewindToNode computes boundaries. */
|
|
60
|
+
readonly firstTurn?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/** Displayable entry kinds (a subset of ChatRow kinds, plus fork structure). */
|
|
63
|
+
export type TreeEntryKind = 'user' | 'assistant' | 'tool' | 'compact' | 'interrupt' | 'notice';
|
|
64
|
+
export interface SessionTreeMeta {
|
|
65
|
+
readonly title?: string;
|
|
66
|
+
readonly createdAt: number;
|
|
67
|
+
readonly live: boolean;
|
|
68
|
+
readonly unreadable: boolean;
|
|
69
|
+
/** Log unread because the browse budget was spent (placeholder node). */
|
|
70
|
+
readonly unloaded: boolean;
|
|
71
|
+
}
|
|
72
|
+
/** Per-session rewind UX facts, derived from the loaded events at build time. */
|
|
73
|
+
export interface SessionRewindFacts {
|
|
74
|
+
/** Own turns in seq order. A turn whose start was trimmed away (coverage /
|
|
75
|
+
* budget head cut) has no range — its entries find no match and the
|
|
76
|
+
* confirm UX stays silent rather than guessing. */
|
|
77
|
+
readonly turns: readonly TurnRange[];
|
|
78
|
+
/** Own entries displayed for this session. */
|
|
79
|
+
readonly ownEntries: number;
|
|
80
|
+
/** The loaded events reach the log tip (see FamilySession.tailComplete). */
|
|
81
|
+
readonly tailComplete: boolean;
|
|
82
|
+
/** Adopt-this-branch fork target: the log's last turn/end seq. Only set
|
|
83
|
+
* when tailComplete holds and a closed turn exists — a tail-cut read's
|
|
84
|
+
* last turn/end is NOT the branch tip, and forking there would silently
|
|
85
|
+
* drop the unseen tail the user means to keep. */
|
|
86
|
+
readonly tipBoundary?: number;
|
|
87
|
+
}
|
|
88
|
+
/** One own turn of a session, as far as the loaded events show it. */
|
|
89
|
+
export interface TurnRange {
|
|
90
|
+
/** turn/start seq. */
|
|
91
|
+
readonly start: number;
|
|
92
|
+
/** turn/end seq, or the last loaded event's seq while the turn is open. */
|
|
93
|
+
readonly end: number;
|
|
94
|
+
/** Displayable own entries inside (start, end]. */
|
|
95
|
+
readonly entries: number;
|
|
96
|
+
/** The turn/end was seen (an open turn's end is only the loaded tail). */
|
|
97
|
+
readonly closed: boolean;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Everything the browser shows for one session, and nothing that costs an
|
|
101
|
+
* unbounded read to learn.
|
|
102
|
+
*
|
|
103
|
+
* That second half is an invariant, not an accident: every field here comes
|
|
104
|
+
* from the persistence header, one `stat`, or a bounded window at one end of
|
|
105
|
+
* the log. A session's full statistics (turn counts, tool totals, token spend)
|
|
106
|
+
* require folding the entire event log, which is what the trajectory scene is
|
|
107
|
+
* for — the browser stays responsive on a 4 MB log because it never asks a
|
|
108
|
+
* question that big.
|
|
109
|
+
*/
|
|
110
|
+
export interface SessionSummary {
|
|
111
|
+
readonly id: string;
|
|
112
|
+
readonly kind: SessionKind;
|
|
113
|
+
readonly title: SessionTitle;
|
|
114
|
+
/** Working directory recorded in the header; '' when it recorded none. */
|
|
115
|
+
readonly cwd: string;
|
|
116
|
+
readonly createdAt: number;
|
|
117
|
+
/**
|
|
118
|
+
* Last activity: the later of the log's own mtime and this install's
|
|
119
|
+
* last-used note. Both are lower bounds on "when this session was last
|
|
120
|
+
* touched" — the mtime catches writes by another client (dsh web appends to
|
|
121
|
+
* the same store), the note catches a resume this install performed. The
|
|
122
|
+
* later of two lower bounds is the best available answer, and unlike a
|
|
123
|
+
* composite value there is no risk of stitching halves from different
|
|
124
|
+
* origins: this is one scalar with two witnesses.
|
|
125
|
+
*/
|
|
126
|
+
readonly updatedAt: number;
|
|
127
|
+
/** Log size in bytes; undefined when the backend owns no per-session file. */
|
|
128
|
+
readonly bytes: number | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the log holds a human message (including image-only input), or
|
|
131
|
+
* the read was inconclusive. False requires a complete successful scan;
|
|
132
|
+
* unknown logs must stay visible and out of empty-session cleanup.
|
|
133
|
+
*
|
|
134
|
+
* `list()` reports *materialized* sessions, not conversations: a session
|
|
135
|
+
* that only ever recorded its own boot policy is a real stored session with
|
|
136
|
+
* nothing to resume. Answering this is the consumer's job — the header does
|
|
137
|
+
* not promise it — and getting it wrong is why one empty row per launch used
|
|
138
|
+
* to accumulate in the picker.
|
|
139
|
+
*/
|
|
140
|
+
readonly hasPrompt: boolean;
|
|
141
|
+
/** Agent preset the session was composed from, when the deployment records one. */
|
|
142
|
+
readonly agentPreset: string | undefined;
|
|
143
|
+
/** Model last seen in the log's trailing window, when one is recorded. */
|
|
144
|
+
readonly model: string | undefined;
|
|
145
|
+
/** Sub-agent label from the run's descriptor (`subagent` kind only). */
|
|
146
|
+
readonly label: string | undefined;
|
|
147
|
+
/** Git branch noted when this install last used the session. */
|
|
148
|
+
readonly branch: string | undefined;
|
|
149
|
+
/** How many sub-agent runs name this session as their parent. */
|
|
150
|
+
readonly childCount: number;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* What the TUI knows about a persisted session before opening it.
|
|
154
|
+
*
|
|
155
|
+
* The shape here is the whole point of this feature. The picker used to run on
|
|
156
|
+
* `{ id, title, cwd, createdAt, updatedAt }`, and every defect it had was
|
|
157
|
+
* downstream of that: it could not tell a delegated sub-agent run from a
|
|
158
|
+
* conversation because it never carried the distinction, and it could not show
|
|
159
|
+
* why a row was labelled the way it was because the label arrived without its
|
|
160
|
+
* provenance. So the types below carry both — the kind as a closed sum, and
|
|
161
|
+
* every derived label together with the evidence that produced it.
|
|
162
|
+
*
|
|
163
|
+
* @module @deepseek-harness-tui/dsh-tui/sessions/types
|
|
164
|
+
*/
|
|
165
|
+
/**
|
|
166
|
+
* What a persisted session *is*, decided once from its immutable header.
|
|
167
|
+
*
|
|
168
|
+
* A closed sum rather than a pair of booleans: `isSubagent`/`isFork` would
|
|
169
|
+
* admit a fourth, meaningless combination, and every reader would have to
|
|
170
|
+
* re-derive the precedence between them. Deciding once, here, is also the fix
|
|
171
|
+
* for the defect that started this work — `origin` and `parentSession` reached
|
|
172
|
+
* the picker and were dropped on the floor.
|
|
173
|
+
*
|
|
174
|
+
* The discriminator is `origin`, never `parentSession`. A `/rewind` fork
|
|
175
|
+
* carries `parentSession` and no `origin`, so filtering on lineage alone would
|
|
176
|
+
* silently hide the user's own rewound branches along with the sub-agents.
|
|
177
|
+
*/
|
|
178
|
+
export type SessionKind =
|
|
179
|
+
/** A conversation the user started. */
|
|
180
|
+
{
|
|
181
|
+
readonly kind: 'root';
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A `/rewind` fork: a real conversation that inherited a prefix of its
|
|
185
|
+
* parent's log. `parent` is what defines it, so it is never absent.
|
|
186
|
+
*/
|
|
187
|
+
| {
|
|
188
|
+
readonly kind: 'fork';
|
|
189
|
+
readonly parent: string;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* A delegated sub-agent run. `origin: 'subagent'` is the authority, so the
|
|
193
|
+
* lineage link is reported as it is found — a run whose header records no
|
|
194
|
+
* parent is still a sub-agent run.
|
|
195
|
+
*/
|
|
196
|
+
| {
|
|
197
|
+
readonly kind: 'subagent';
|
|
198
|
+
readonly parent: string | undefined;
|
|
199
|
+
readonly depth: number;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* A display title and the evidence behind it.
|
|
203
|
+
*
|
|
204
|
+
* The source travels with the text because the UI consumes it: a `fallback`
|
|
205
|
+
* title is dimmed rather than presented as if the session were named that, and
|
|
206
|
+
* a reader who wonders why a row carries a fallback label can be told. A source that
|
|
207
|
+
* nothing consumed would be decoration; this one changes what is rendered.
|
|
208
|
+
*/
|
|
209
|
+
export interface SessionTitle {
|
|
210
|
+
readonly text: string;
|
|
211
|
+
readonly source: TitleSource;
|
|
212
|
+
}
|
|
213
|
+
/** Which evidence produced a session's display title. */
|
|
214
|
+
export type TitleSource =
|
|
215
|
+
/** A `session/title` event appended after the session's own opening — a rename. */
|
|
216
|
+
'renamed'
|
|
217
|
+
/** The session's first `session/title`, written for it automatically. */
|
|
218
|
+
| 'auto'
|
|
219
|
+
/** No title event; the opening user prompt stands in. */
|
|
220
|
+
| 'prompt'
|
|
221
|
+
/** Nothing readable; the working directory's basename stands in. */
|
|
222
|
+
| 'fallback';
|
|
223
|
+
/** One exchange in the preview pane, newest last. */
|
|
224
|
+
export interface PreviewEntry {
|
|
225
|
+
readonly role: 'user' | 'assistant';
|
|
226
|
+
readonly text: string;
|
|
227
|
+
readonly at: number | undefined;
|
|
228
|
+
}
|
|
229
|
+
//# sourceMappingURL=channel-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-session.d.ts","sourceRoot":"","sources":["../../../../src/adapter/ports/channel-session.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAG9E,6EAA6E;AAC7E,MAAM,WAAW,aAAa;IAC5B,4DAA4D;IAC5D,EAAE,EAAE,MAAM,CAAA;I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