@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
|
@@ -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,6 +27,12 @@
|
|
|
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
|
*/
|
|
30
|
+
import * as dshLlm from '@deepseek-ai/dsh-llm';
|
|
31
|
+
/**
|
|
32
|
+
* A session event reduced to the envelope the projection relies on. Only
|
|
33
|
+
* `type`, `seq` and `time` are contractual across every event; `data` is
|
|
34
|
+
* deliberately `unknown` so nothing downstream can read it without a guard.
|
|
35
|
+
*/
|
|
29
36
|
/**
|
|
30
37
|
* The single widening point for the whole trajectory feature.
|
|
31
38
|
*
|
|
@@ -82,7 +89,7 @@ export function readRetry(data) {
|
|
|
82
89
|
export function readRetryStarted(data) {
|
|
83
90
|
return isRecord(data) ? str(data, 'retryId') : undefined;
|
|
84
91
|
}
|
|
85
|
-
/** Narrow a `tool/code-dispatch*` payload. */
|
|
92
|
+
/** Narrow a `tool/code-dispatch*` / `tool/ptc-dispatch*` payload. */
|
|
86
93
|
export function readDispatch(data) {
|
|
87
94
|
if (!isRecord(data))
|
|
88
95
|
return undefined;
|
|
@@ -115,6 +122,37 @@ export function readDispatch(data) {
|
|
|
115
122
|
isError: typeof isError === 'boolean' ? isError : undefined,
|
|
116
123
|
};
|
|
117
124
|
}
|
|
125
|
+
/**
|
|
126
|
+
* Expand the compact `stream` of a V3 `assistant/message` / `assistant/attempt`
|
|
127
|
+
* into timed chunks, or `undefined` when the event carries no usable stream.
|
|
128
|
+
*
|
|
129
|
+
* V3 logs replace per-token `assistant/chunk` events with one compact
|
|
130
|
+
* `AssistantStreamRecord[]` embedded in the settlement event. Upstream's
|
|
131
|
+
* `expandAssistantStream` is the validating read path for that record list —
|
|
132
|
+
* and it landed with the record type itself (0.1.5), so the binding is
|
|
133
|
+
* feature-detected through the namespace rather than named-imported: a
|
|
134
|
+
* pre-0.1.5 host lacks the export, and a named import would fail the whole
|
|
135
|
+
* module at link time instead of degrading this one read. The same
|
|
136
|
+
* never-throw contract as every guard here applies on both axes: a missing
|
|
137
|
+
* expander or a malformed record (the expander throws `TypeError`) yields
|
|
138
|
+
* `undefined`, and the fold simply contributes no stream timing.
|
|
139
|
+
*/
|
|
140
|
+
export function readAssistantStream(data) {
|
|
141
|
+
if (!isRecord(data))
|
|
142
|
+
return undefined;
|
|
143
|
+
const stream = data.stream;
|
|
144
|
+
if (!Array.isArray(stream) || stream.length === 0)
|
|
145
|
+
return undefined;
|
|
146
|
+
const expand = dshLlm.expandAssistantStream;
|
|
147
|
+
if (typeof expand !== 'function')
|
|
148
|
+
return undefined;
|
|
149
|
+
try {
|
|
150
|
+
return expand(stream);
|
|
151
|
+
}
|
|
152
|
+
catch {
|
|
153
|
+
return undefined;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
118
156
|
/** Narrow a `request/header` payload. */
|
|
119
157
|
export function readRequestHeader(data) {
|
|
120
158
|
if (!isRecord(data))
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* reads raw event payloads for display, and the boundary gate keeps it here.
|
|
12
12
|
* The scene renders the returned sections without knowing what an event is.
|
|
13
13
|
*/
|
|
14
|
+
import { type RawTrajEvent } from './guards.js';
|
|
14
15
|
import type { TrajNode } from './types.js';
|
|
15
|
-
import type { SessionEvent } from '@deepseek-ai/dsh-session';
|
|
16
16
|
/** One titled block of full content. */
|
|
17
17
|
export interface InspectSection {
|
|
18
18
|
readonly title: string;
|
|
@@ -36,5 +36,5 @@ export interface InspectDetail {
|
|
|
36
36
|
* @returns Display-ready sections. Always succeeds: a row whose owning event
|
|
37
37
|
* has been compacted away still yields its header facts.
|
|
38
38
|
*/
|
|
39
|
-
export declare function inspectNode(node: TrajNode, events: readonly
|
|
39
|
+
export declare function inspectNode(node: TrajNode, events: readonly RawTrajEvent[]): InspectDetail;
|
|
40
40
|
//# sourceMappingURL=inspect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/trajectory/inspect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"inspect.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/trajectory/inspect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAG1C,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,mDAAmD;IACnD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,wEAAwE;IACxE,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;CAChC;AAED,kDAAkD;AAClD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC,QAAQ,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAA;CAC7C;AAwCD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,aAAa,CA2F1F"}
|
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* ## What this is
|
|
5
5
|
*
|
|
6
|
-
* The DSH session log is an append-only stream of
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* The DSH session log is an append-only stream of dozens of event types (the
|
|
7
|
+
* vocabulary grows by host generation; the fold matches exact names and lets
|
|
8
|
+
* everything else fall through). This module folds it into the flat,
|
|
9
|
+
* turn-annotated node list the trajectory scene renders, pairing every
|
|
10
|
+
* bracket (`tool/call` ↔ `tool/result`,
|
|
9
11
|
* `step/start` ↔ `step/end`, `llm/retry` ↔ `llm/retry-started`,
|
|
10
12
|
* `approval/asked` ↔ `approval/decided`, `compaction/start` ↔
|
|
11
|
-
* `compaction/end`,
|
|
13
|
+
* `compaction/end`, and the code runner's dispatch bracket —
|
|
14
|
+
* `tool/code-dispatch-start` ↔ `tool/code-dispatch` pre-0.1.5, renamed
|
|
15
|
+
* `tool/ptc-dispatch-start` ↔ `tool/ptc-dispatch` in 0.1.5 with an identical
|
|
16
|
+
* payload, so both names feed the same fold) so a
|
|
12
17
|
* row can show its own wall-clock duration and outcome.
|
|
13
18
|
*
|
|
14
19
|
* ## Incrementality
|
|
@@ -30,22 +35,35 @@
|
|
|
30
35
|
* {@link previewText}). Full content is not held at all — `seq`/`endSeq`
|
|
31
36
|
* address the owning events for the inspector to re-read on demand.
|
|
32
37
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
38
|
+
* Stream timing reaches the fold in two generational shapes. Pre-0.1.5 logs
|
|
39
|
+
* pack chunks at the storage layer (`text-chunks`, `reasoning-chunks`,
|
|
40
|
+
* `tool-call-chunks`) — a durable *encoding*, not an event vocabulary: the
|
|
35
41
|
* persistence reader expands those rows back into `assistant/chunk` events
|
|
36
|
-
* before they reach the logical Session log,
|
|
37
|
-
*
|
|
42
|
+
* before they reach the logical Session log, and this fold reads their
|
|
43
|
+
* timestamps directly. 0.1.5 retires per-token events entirely: the compact
|
|
44
|
+
* `AssistantStreamRecord[]` travels embedded in the settling
|
|
45
|
+
* `assistant/message` (or in `assistant/attempt` for a failed/retried/
|
|
46
|
+
* cancelled attempt that committed no surface message), and the fold expands
|
|
47
|
+
* it through {@link readAssistantStream} into the same first/last-chunk
|
|
48
|
+
* timing slots. An attempt adds no ledger row — its failure already has one
|
|
49
|
+
* (`llm/retry`), a cancellation shows on the turn bracket, and the payload
|
|
50
|
+
* carries no reason to display — but its decode time is real wall-clock cost
|
|
51
|
+
* the step paid, so it feeds the timing slots exactly like a committed
|
|
52
|
+
* message.
|
|
38
53
|
*/
|
|
39
54
|
import { type RawTrajEvent } from './guards.js';
|
|
40
55
|
import { type TrajNode } from './types.js';
|
|
41
|
-
import type { SessionEvent } from '@deepseek-ai/dsh-session';
|
|
42
56
|
/** Per-step streaming timestamps, the source of TTFT and decode duration. */
|
|
43
57
|
export interface StepTiming {
|
|
44
58
|
/** `step/start` time. */
|
|
45
59
|
readonly startTime: number;
|
|
46
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* First streamed model output — a pre-0.1.5 `assistant/chunk` time, or the
|
|
62
|
+
* head of the expanded V3 stream embedded in `assistant/message` /
|
|
63
|
+
* `assistant/attempt`.
|
|
64
|
+
*/
|
|
47
65
|
firstChunk?: number;
|
|
48
|
-
/** Last
|
|
66
|
+
/** Last streamed model output, from the same two generational sources. */
|
|
49
67
|
lastChunk?: number;
|
|
50
68
|
/** `step/end` time, when the step closed. */
|
|
51
69
|
endTime?: number;
|
|
@@ -118,11 +136,11 @@ export declare function emptyTrajectory(): TrajBuild;
|
|
|
118
136
|
* @param events - The session's current immutable event snapshot.
|
|
119
137
|
* @returns A build over `events`; `previous` itself when nothing was appended.
|
|
120
138
|
*/
|
|
121
|
-
export declare function extendTrajectory(previous: TrajBuild | null, events: readonly
|
|
139
|
+
export declare function extendTrajectory(previous: TrajBuild | null, events: readonly RawTrajEvent[]): TrajBuild;
|
|
122
140
|
/**
|
|
123
141
|
* Fold from scratch — the one-shot form used by tests and by consumers that
|
|
124
142
|
* hold no previous build.
|
|
125
143
|
*/
|
|
126
|
-
export declare function buildTrajectory(events: readonly
|
|
144
|
+
export declare function buildTrajectory(events: readonly RawTrajEvent[]): TrajBuild;
|
|
127
145
|
export {};
|
|
128
146
|
//# sourceMappingURL=projection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/trajectory/projection.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../../../../src/dsh-adapter/trajectory/projection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH,OAAO,EAgBL,KAAK,YAAY,EAClB,MAAM,aAAa,CAAA;AACpB,OAAO,EAA4B,KAAK,QAAQ,EAAmB,MAAM,YAAY,CAAA;AAGrF,6EAA6E;AAC7E,MAAM,WAAW,UAAU;IACzB,yBAAyB;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;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oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,uEAAuE;IACvE,OAAO,EAAE,OAAO,CAAA;IAChB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAA;IAChB,iEAAiE;IACjE,UAAU,EAAE,QAAQ,EAAE,CAAA;CACvB;AA4nBD,2EAA2E;AAC3E,wBAAgB,eAAe,IAAI,SAAS,CAG3C;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,SAAS,GAAG,IAAI,EAC1B,MAAM,EAAE,SAAS,YAAY,EAAE,GAC9B,SAAS,CAwBX;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,CAE1E"}
|
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* ## What this is
|
|
5
5
|
*
|
|
6
|
-
* The DSH session log is an append-only stream of
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* The DSH session log is an append-only stream of dozens of event types (the
|
|
7
|
+
* vocabulary grows by host generation; the fold matches exact names and lets
|
|
8
|
+
* everything else fall through). This module folds it into the flat,
|
|
9
|
+
* turn-annotated node list the trajectory scene renders, pairing every
|
|
10
|
+
* bracket (`tool/call` ↔ `tool/result`,
|
|
9
11
|
* `step/start` ↔ `step/end`, `llm/retry` ↔ `llm/retry-started`,
|
|
10
12
|
* `approval/asked` ↔ `approval/decided`, `compaction/start` ↔
|
|
11
|
-
* `compaction/end`,
|
|
13
|
+
* `compaction/end`, and the code runner's dispatch bracket —
|
|
14
|
+
* `tool/code-dispatch-start` ↔ `tool/code-dispatch` pre-0.1.5, renamed
|
|
15
|
+
* `tool/ptc-dispatch-start` ↔ `tool/ptc-dispatch` in 0.1.5 with an identical
|
|
16
|
+
* payload, so both names feed the same fold) so a
|
|
12
17
|
* row can show its own wall-clock duration and outcome.
|
|
13
18
|
*
|
|
14
19
|
* ## Incrementality
|
|
@@ -30,13 +35,23 @@
|
|
|
30
35
|
* {@link previewText}). Full content is not held at all — `seq`/`endSeq`
|
|
31
36
|
* address the owning events for the inspector to re-read on demand.
|
|
32
37
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
38
|
+
* Stream timing reaches the fold in two generational shapes. Pre-0.1.5 logs
|
|
39
|
+
* pack chunks at the storage layer (`text-chunks`, `reasoning-chunks`,
|
|
40
|
+
* `tool-call-chunks`) — a durable *encoding*, not an event vocabulary: the
|
|
35
41
|
* persistence reader expands those rows back into `assistant/chunk` events
|
|
36
|
-
* before they reach the logical Session log,
|
|
37
|
-
*
|
|
42
|
+
* before they reach the logical Session log, and this fold reads their
|
|
43
|
+
* timestamps directly. 0.1.5 retires per-token events entirely: the compact
|
|
44
|
+
* `AssistantStreamRecord[]` travels embedded in the settling
|
|
45
|
+
* `assistant/message` (or in `assistant/attempt` for a failed/retried/
|
|
46
|
+
* cancelled attempt that committed no surface message), and the fold expands
|
|
47
|
+
* it through {@link readAssistantStream} into the same first/last-chunk
|
|
48
|
+
* timing slots. An attempt adds no ledger row — its failure already has one
|
|
49
|
+
* (`llm/retry`), a cancellation shows on the turn bracket, and the payload
|
|
50
|
+
* carries no reason to display — but its decode time is real wall-clock cost
|
|
51
|
+
* the step paid, so it feeds the timing slots exactly like a committed
|
|
52
|
+
* message.
|
|
38
53
|
*/
|
|
39
|
-
import { asRawEvents, isApprovalDenied, readApprovalAsked, readApprovalDecided, readCommandRun, readCompaction, readDispatch, readHook, readModeValue, readRequestHeader, readRetry, readRetryStarted, readSubagent, readTodos, } from './guards.js';
|
|
54
|
+
import { asRawEvents, isApprovalDenied, readApprovalAsked, readApprovalDecided, readAssistantStream, readCommandRun, readCompaction, readDispatch, readHook, readModeValue, readRequestHeader, readRetry, readRetryStarted, readSubagent, readTodos, } from './guards.js';
|
|
40
55
|
import { BURST_MIN } from './types.js';
|
|
41
56
|
/** Fresh, empty fold state. */
|
|
42
57
|
function newState() {
|
|
@@ -130,6 +145,27 @@ function readTokens(usage) {
|
|
|
130
145
|
const total = tokens.input + tokens.output + tokens.think + tokens.cacheRead + tokens.cacheWrite;
|
|
131
146
|
return total > 0 ? tokens : undefined;
|
|
132
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Feed a V3 settlement event's embedded stream into the step's timing slot.
|
|
150
|
+
*
|
|
151
|
+
* Shared by `assistant/message` and `assistant/attempt`: both carry the exact
|
|
152
|
+
* timed stream their step produced, and both fold into the same
|
|
153
|
+
* first/last-chunk slots a pre-0.1.5 log's `assistant/chunk` events fill.
|
|
154
|
+
* First-wins on `firstChunk` keeps TTFT anchored to the step's first
|
|
155
|
+
* observable output even when a retried attempt streamed before the committed
|
|
156
|
+
* one; `lastChunk` tracks the latest stream record, so an abandoned attempt's
|
|
157
|
+
* decode time is counted in the step's cost rather than silently dropped.
|
|
158
|
+
*/
|
|
159
|
+
function feedStreamTiming(timing, turn, step, data) {
|
|
160
|
+
const stream = readAssistantStream(data);
|
|
161
|
+
if (stream === undefined)
|
|
162
|
+
return;
|
|
163
|
+
const slot = timing.get(`${turn}:${step}`);
|
|
164
|
+
if (slot === undefined)
|
|
165
|
+
return;
|
|
166
|
+
slot.firstChunk ??= stream[0].time;
|
|
167
|
+
slot.lastChunk = stream[stream.length - 1].time;
|
|
168
|
+
}
|
|
133
169
|
/** Close a bracket node with its own duration and outcome. */
|
|
134
170
|
function close(state, node, event, status, errorCode) {
|
|
135
171
|
if (node === undefined)
|
|
@@ -254,8 +290,11 @@ function consume(state, nodes, timing, event) {
|
|
|
254
290
|
return;
|
|
255
291
|
}
|
|
256
292
|
case 'assistant/chunk': {
|
|
257
|
-
//
|
|
258
|
-
//
|
|
293
|
+
// Pre-0.1.5 per-token events (expanded from storage packing by the
|
|
294
|
+
// persistence reader). Chunks never become rows; they contribute only
|
|
295
|
+
// the two timestamps that separate time-to-first-token from decode
|
|
296
|
+
// throughput. 0.1.5 logs carry no such event — their stream timing
|
|
297
|
+
// arrives embedded in `assistant/message` / `assistant/attempt`.
|
|
259
298
|
const turn = typeof data?.turn === 'number' ? data.turn : state.turn;
|
|
260
299
|
const step = typeof data?.step === 'number' ? data.step : (state.step ?? 0);
|
|
261
300
|
const slot = timing.get(`${turn}:${step}`);
|
|
@@ -293,6 +332,7 @@ function consume(state, nodes, timing, event) {
|
|
|
293
332
|
case 'assistant/message': {
|
|
294
333
|
const turn = typeof data?.turn === 'number' ? data.turn : state.turn;
|
|
295
334
|
const step = typeof data?.step === 'number' ? data.step : state.step;
|
|
335
|
+
feedStreamTiming(timing, turn, step ?? 0, data);
|
|
296
336
|
const message = data?.message;
|
|
297
337
|
const content = typeof message === 'object' && message !== null
|
|
298
338
|
? message.content
|
|
@@ -326,6 +366,18 @@ function consume(state, nodes, timing, event) {
|
|
|
326
366
|
}
|
|
327
367
|
return;
|
|
328
368
|
}
|
|
369
|
+
case 'assistant/attempt': {
|
|
370
|
+
// 0.1.5+: a failed, retried, or cancelled attempt that settled without
|
|
371
|
+
// committing a surface message. No ledger row — the retry bracket
|
|
372
|
+
// (`llm/retry`) and the turn's own outcome already carry the failure,
|
|
373
|
+
// and the payload holds no reason to display. Its embedded stream is
|
|
374
|
+
// real decode time the step paid, so it feeds the timing slots exactly
|
|
375
|
+
// like a committed message's stream.
|
|
376
|
+
const turn = typeof data?.turn === 'number' ? data.turn : state.turn;
|
|
377
|
+
const step = typeof data?.step === 'number' ? data.step : (state.step ?? 0);
|
|
378
|
+
feedStreamTiming(timing, turn, step, data);
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
329
381
|
case 'tool/call': {
|
|
330
382
|
const callId = typeof data?.callId === 'string' ? data.callId : undefined;
|
|
331
383
|
const name = typeof data?.name === 'string' ? data.name : 'tool';
|
|
@@ -369,7 +421,10 @@ function consume(state, nodes, timing, event) {
|
|
|
369
421
|
state.tools.delete(callId);
|
|
370
422
|
return;
|
|
371
423
|
}
|
|
372
|
-
|
|
424
|
+
// The dispatch bracket kept its payload shape across its 0.1.5 rename,
|
|
425
|
+
// so both spellings pair through the same subtool bookkeeping.
|
|
426
|
+
case 'tool/code-dispatch-start':
|
|
427
|
+
case 'tool/ptc-dispatch-start': {
|
|
373
428
|
const payload = readDispatch(event.data);
|
|
374
429
|
if (payload === undefined)
|
|
375
430
|
return;
|
|
@@ -388,7 +443,8 @@ function consume(state, nodes, timing, event) {
|
|
|
388
443
|
push(state, nodes, node);
|
|
389
444
|
return;
|
|
390
445
|
}
|
|
391
|
-
case 'tool/code-dispatch':
|
|
446
|
+
case 'tool/code-dispatch':
|
|
447
|
+
case 'tool/ptc-dispatch': {
|
|
392
448
|
const payload = readDispatch(event.data);
|
|
393
449
|
if (payload === undefined)
|
|
394
450
|
return;
|
|
@@ -602,7 +658,8 @@ function consume(state, nodes, timing, event) {
|
|
|
602
658
|
}
|
|
603
659
|
default:
|
|
604
660
|
// Unknown or deliberately silent (request/context, session/title,
|
|
605
|
-
// agent/inbox/spliced, command/done,
|
|
661
|
+
// agent/inbox/spliced, command/done, system/message, model/selection,
|
|
662
|
+
// deliverables/presented, subagent/catalog, …): no ledger row. Forward
|
|
606
663
|
// compatibility is the default, not an error path.
|
|
607
664
|
return;
|
|
608
665
|
}
|
|
@@ -85,7 +85,7 @@ export interface TrajNode {
|
|
|
85
85
|
tokens?: TrajTokens;
|
|
86
86
|
/** Tool-call identity, used for `tool/call` ↔ `tool/result` pairing. */
|
|
87
87
|
readonly callId?: string;
|
|
88
|
-
/** Code-runner sub-call identity (`tool/code-dispatch*`
|
|
88
|
+
/** Code-runner sub-call identity (`tool/code-dispatch*` pre-0.1.5, `tool/ptc-dispatch*` since). */
|
|
89
89
|
readonly subCallId?: string;
|
|
90
90
|
/** Failure identity when `status === 'error'` (e.g. `RATE_LIMIT`). */
|
|
91
91
|
errorC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C;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,kCAAkC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,sDAAsD;IACtD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,4BAA4B;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAA;CAC5B;AAED,gDAAgD;AAChD,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEzD,qCAAqC;AACrC,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAAoC,CAAA;AAEpF;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAa9D"}
|
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import type { ContentBlock } from '@deepseek-ai/dsh-llm';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly width: number;
|
|
6
|
-
readonly height: number;
|
|
7
|
-
readonly name?: string;
|
|
8
|
-
/** Verified media type, when the durable reference carries one. */
|
|
9
|
-
readonly mediaType?: string;
|
|
10
|
-
/** Stored byte size, when the durable reference carries one. */
|
|
11
|
-
readonly bytes?: number;
|
|
12
|
-
/**
|
|
13
|
-
* Absolute local path the bytes were staged from in THIS process: a pasted
|
|
14
|
-
* or dropped file, or the clipboard bitmap's temp export. Display-only and
|
|
15
|
-
* never persisted — the durable event carries a content hash, so images
|
|
16
|
-
* restored from the session log have none.
|
|
17
|
-
*/
|
|
18
|
-
readonly path?: string;
|
|
19
|
-
read(signal?: AbortSignal): Promise<Uint8Array>;
|
|
20
|
-
}
|
|
2
|
+
import type { TranscriptImage } from '../adapter/ports/channel-view.js';
|
|
3
|
+
export type { TranscriptImage };
|
|
21
4
|
export declare function rememberImagePath(attachmentId: string, path: string): void;
|
|
22
5
|
/**
|
|
23
6
|
* Project durable image blocks without leaking the DSH attachment service
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcript-images.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/transcript-images.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"transcript-images.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/transcript-images.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAKvE,YAAY,EAAE,eAAe,EAAE,CAAA;AAU/B,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAQ1E;AASD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,EAC5C,kBAAkB,EAAE,MAAM,OAAO,GAChC,SAAS,eAAe,EAAE,CAiB5B;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,OAAO,EACd,kBAAkB,EAAE,MAAM,OAAO,GAChC,eAAe,GAAG,SAAS,CAyB7B"}
|
|
@@ -1,53 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* The TUI owns local URI parsing and session switching. Optional plugins add
|
|
5
|
-
* providers for external schemes without coupling the TUI to them.
|
|
6
|
-
*/
|
|
1
|
+
import type { TuiWorkspaceTarget, TuiWorkspaceCommand, TuiWorkspaceCommandResult } from '../adapter/ports/channel-workspace.js';
|
|
2
|
+
export type { TuiWorkspaceTarget, TuiWorkspaceKind, TuiWorkspaceCommand, TuiWorkspaceCommandResult, TuiWorkspaceChoice } from '../adapter/ports/channel-workspace.js';
|
|
7
3
|
import { Context, Service } from '@deepseek-ai/cordis';
|
|
8
|
-
export type TuiWorkspaceKind = 'local' | 'provider';
|
|
9
|
-
export interface TuiWorkspaceTarget {
|
|
10
|
-
/** Stable, user-pasteable target identifier. */
|
|
11
|
-
uri: string;
|
|
12
|
-
/** Host-side cwd recorded in the DSH session header. */
|
|
13
|
-
cwd: string;
|
|
14
|
-
/** Compact picker/status label. */
|
|
15
|
-
label: string;
|
|
16
|
-
/** Optional secondary picker copy. */
|
|
17
|
-
description?: string;
|
|
18
|
-
kind: TuiWorkspaceKind;
|
|
19
|
-
/** Provider-owned compact badge; the TUI does not interpret it. */
|
|
20
|
-
badge: string;
|
|
21
|
-
}
|
|
22
|
-
export interface TuiWorkspaceChoice {
|
|
23
|
-
id: string;
|
|
24
|
-
label: string;
|
|
25
|
-
description?: string;
|
|
26
|
-
badge?: string;
|
|
27
|
-
choose(signal?: AbortSignal): Promise<TuiWorkspaceCommandResult> | TuiWorkspaceCommandResult;
|
|
28
|
-
/** Optional inline editor entered with Tab while this choice is focused. */
|
|
29
|
-
input?: {
|
|
30
|
-
initialValue?: string;
|
|
31
|
-
placeholder?: string;
|
|
32
|
-
submit(value: string, signal?: AbortSignal): Promise<TuiWorkspaceCommandResult> | TuiWorkspaceCommandResult;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export type TuiWorkspaceCommandResult = {
|
|
36
|
-
kind: 'choices';
|
|
37
|
-
title: string;
|
|
38
|
-
choices: readonly TuiWorkspaceChoice[];
|
|
39
|
-
} | {
|
|
40
|
-
kind: 'target';
|
|
41
|
-
target: TuiWorkspaceTarget;
|
|
42
|
-
};
|
|
43
|
-
export interface TuiWorkspaceCommand {
|
|
44
|
-
name: string;
|
|
45
|
-
aliases?: readonly string[];
|
|
46
|
-
description: string;
|
|
47
|
-
run(input: string, context: {
|
|
48
|
-
cwd: string;
|
|
49
|
-
}, signal?: AbortSignal): Promise<TuiWorkspaceCommandResult> | TuiWorkspaceCommandResult;
|
|
50
|
-
}
|
|
51
4
|
export interface TuiCommandShell {
|
|
52
5
|
resolve(request: {
|
|
53
6
|
command: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/workspaces.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/dsh-adapter/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAoB,mBAAmB,EAAE,yBAAyB,EAAsB,MAAM,uCAAuC,CAAA;AACrK,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAUrK,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAQtD,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,OAAO,EAAE;QACf,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,SAAS,CAAC,EAAE,MAAM,CAAA;KACnB,GAAG,OAAO,CAAA;IACX,GAAG,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;QAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;QACvB,MAAM,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;QACxB,MAAM,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;QACxB,QAAQ,EAAE,OAAO,CAAA;KAClB,CAAC,CAAA;CACH;AAED,MAAM,WAAW,oBAAoB;IACnC,sEAAsE;IACtE,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IAC1B,gDAAgD;IAChD,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,kBAAkB,EAAE,CAAC,GA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,QAAQ,IAAI,SAAS,IAAI,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,CAAC,EAAE;IAM9E,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,yBAAyB,GAAG,SAAS,CAAC;IAMhI,OAAO,CAAC,qBAAqB;CAM9B;AAmBD,sEAAsE;AACtE,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,mBAAmB,GAAG,SAAS,GAAG,gBAAgB,GAAG,SAAS,CAO9G;AAkOD;gEACgE;AAChE,wBAAgB,2BAA2B,IAAI,IAAI,CACjD,mBAAmB,EACnB,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,cAAc,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,CACxF,CA4BA;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,oEAAoE;AACpE,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,GAAG,SAAS,CAY9F;AAwBD,eAAe,mBAAmB,CAAA"}
|
|
@@ -8,6 +8,8 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
|
8
8
|
import { basename, isAbsolute, resolve } from 'node:path';
|
|
9
9
|
import { Service } from '@deepseek-ai/cordis';
|
|
10
10
|
import { activationFiber, bindCallerEffect, compositionRoot, concreteService, requirePluginCaller } from './host-access.js';
|
|
11
|
+
import { assertCapabilityShadowPolicy, } from '../adapter/kernel/runtime.js';
|
|
12
|
+
import { adapterRuntimeFor } from '../adapter/kernel/runtime-context.js';
|
|
11
13
|
export const name = 'dsh-tui-workspaces';
|
|
12
14
|
/** Bound every provider promise so one plugin cannot park workspace flows. */
|
|
13
15
|
export const WORKSPACE_PROVIDER_TIMEOUT_MS = 2000;
|
|
@@ -37,19 +39,30 @@ export class TuiWorkspaceRuntime extends Service {
|
|
|
37
39
|
providerOwners: new Map(),
|
|
38
40
|
providerWaiters: new Set(),
|
|
39
41
|
host: undefined,
|
|
42
|
+
runtime: adapterRuntimeFor(ctx),
|
|
40
43
|
};
|
|
41
44
|
state.host = Object.freeze({
|
|
42
45
|
list: (currentCwd, signal) => listWorkspaces(runtime, currentCwd, signal, undefined),
|
|
43
46
|
resolve: (reference, currentCwd, signal) => resolveWorkspace(runtime, reference, currentCwd ?? process.cwd(), signal, undefined),
|
|
44
47
|
describe: (cwd) => describeWorkspace(runtime, cwd, undefined),
|
|
45
|
-
commandShell: (cwd) =>
|
|
46
|
-
|
|
48
|
+
commandShell: (cwd) => {
|
|
49
|
+
assertCapabilityShadowPolicy('host.workspaces.commandShell', state.runtime.mode, state.runtime.slices);
|
|
50
|
+
return commandShellFor(runtime, cwd, undefined);
|
|
51
|
+
},
|
|
52
|
+
rename: (cwd, title) => {
|
|
53
|
+
assertCapabilityShadowPolicy('host.workspaces.rename', state.runtime.mode, state.runtime.slices);
|
|
54
|
+
return renameWorkspace(runtime, cwd, title, undefined);
|
|
55
|
+
},
|
|
47
56
|
commands: () => workspaceCommands(runtime, undefined),
|
|
48
|
-
runCommand: (name, input, cwd, signal) =>
|
|
57
|
+
runCommand: (name, input, cwd, signal) => {
|
|
58
|
+
assertCapabilityShadowPolicy('host.workspaces.runCommand', state.runtime.mode, state.runtime.slices);
|
|
59
|
+
return runWorkspaceCommand(runtime, name, input, cwd, signal, undefined);
|
|
60
|
+
},
|
|
49
61
|
});
|
|
50
62
|
workspaceStates.set(this, state);
|
|
51
63
|
}
|
|
52
64
|
register(provider) {
|
|
65
|
+
assertCapabilityShadowPolicy('host.workspaces.register', workspaceStateFor(this).runtime.mode, workspaceStateFor(this).runtime.slices);
|
|
53
66
|
const caller = requirePluginCaller(this.ctx, 'tuiWorkspaces.register', this);
|
|
54
67
|
const state = workspaceStateFor(this);
|
|
55
68
|
state.providers.add(provider);
|
|
@@ -69,31 +82,38 @@ export class TuiWorkspaceRuntime extends Service {
|
|
|
69
82
|
return dispose;
|
|
70
83
|
}
|
|
71
84
|
async list(currentCwd, signal) {
|
|
85
|
+
assertCapabilityShadowPolicy('host.workspaces.list', workspaceStateFor(this).runtime.mode, workspaceStateFor(this).runtime.slices);
|
|
72
86
|
const owner = workspaceCaller(this, 'tuiWorkspaces.list');
|
|
73
87
|
return listWorkspaces(this, currentCwd, signal, owner);
|
|
74
88
|
}
|
|
75
89
|
/** Resolve a URI, briefly allowing concurrently mounted providers to register. */
|
|
76
90
|
async resolve(reference, currentCwd = process.cwd(), signal) {
|
|
91
|
+
assertCapabilityShadowPolicy('host.workspaces.resolve', workspaceStateFor(this).runtime.mode, workspaceStateFor(this).runtime.slices);
|
|
77
92
|
const owner = workspaceCaller(this, 'tuiWorkspaces.resolve');
|
|
78
93
|
return resolveWorkspace(this, reference, currentCwd, signal, owner);
|
|
79
94
|
}
|
|
80
95
|
describe(cwd) {
|
|
96
|
+
assertCapabilityShadowPolicy('host.workspaces.describe', workspaceStateFor(this).runtime.mode, workspaceStateFor(this).runtime.slices);
|
|
81
97
|
const owner = workspaceCaller(this, 'tuiWorkspaces.describe');
|
|
82
98
|
return describeWorkspace(this, cwd, owner);
|
|
83
99
|
}
|
|
84
100
|
async commandShell(cwd) {
|
|
101
|
+
assertCapabilityShadowPolicy('host.workspaces.commandShell', workspaceStateFor(this).runtime.mode, workspaceStateFor(this).runtime.slices);
|
|
85
102
|
const owner = workspaceCaller(this, 'tuiWorkspaces.commandShell');
|
|
86
103
|
return commandShellFor(this, cwd, owner);
|
|
87
104
|
}
|
|
88
105
|
async rename(cwd, title) {
|
|
106
|
+
assertCapabilityShadowPolicy('host.workspaces.rename', workspaceStateFor(this).runtime.mode, workspaceStateFor(this).runtime.slices);
|
|
89
107
|
const owner = workspaceCaller(this, 'tuiWorkspaces.rename');
|
|
90
108
|
return renameWorkspace(this, cwd, title, owner);
|
|
91
109
|
}
|
|
92
110
|
commands() {
|
|
111
|
+
assertCapabilityShadowPolicy('host.workspaces.commands', workspaceStateFor(this).runtime.mode, workspaceStateFor(this).runtime.slices);
|
|
93
112
|
const owner = workspaceCaller(this, 'tuiWorkspaces.commands');
|
|
94
113
|
return workspaceCommands(this, owner);
|
|
95
114
|
}
|
|
96
115
|
async runCommand(name, input, cwd, signal) {
|
|
116
|
+
assertCapabilityShadowPolicy('host.workspaces.runCommand', workspaceStateFor(this).runtime.mode, workspaceStateFor(this).runtime.slices);
|
|
97
117
|
const owner = workspaceCaller(this, 'tuiWorkspaces.runCommand');
|
|
98
118
|
return runWorkspaceCommand(this, name, input, cwd, signal, owner);
|
|
99
119
|
}
|
package/lib/types/i18n.d.ts
CHANGED
|
@@ -407,13 +407,17 @@ declare const dict: {
|
|
|
407
407
|
readonly zh: "API key: {{state}}";
|
|
408
408
|
readonly en: "API key: {{state}}";
|
|
409
409
|
};
|
|
410
|
-
readonly 'doctor-key-configured': {
|
|
411
|
-
readonly zh: "
|
|
412
|
-
readonly en: "configured";
|
|
410
|
+
readonly 'doctor-key-configured-env': {
|
|
411
|
+
readonly zh: "已配置(环境变量)";
|
|
412
|
+
readonly en: "configured (environment)";
|
|
413
|
+
};
|
|
414
|
+
readonly 'doctor-key-configured-store': {
|
|
415
|
+
readonly zh: "已配置(DSH 凭据库)";
|
|
416
|
+
readonly en: "configured (DSH credential store)";
|
|
413
417
|
};
|
|
414
418
|
readonly 'doctor-key-missing': {
|
|
415
|
-
readonly zh: "
|
|
416
|
-
readonly en: "not configured (DEEPSEEK_API_KEY)";
|
|
419
|
+
readonly zh: "未配置(环境变量与 DSH 凭据库中都没有 DEEPSEEK_API_KEY)";
|
|
420
|
+
readonly en: "not configured (neither DEEPSEEK_API_KEY nor a DSH credential-store ref)";
|
|
417
421
|
};
|
|
418
422
|
readonly 'doctor-model': {
|
|
419
423
|
readonly zh: "模型: {{model}} · 提供方: {{provider}}";
|
|
@@ -812,8 +816,8 @@ declare const dict: {
|
|
|
812
816
|
readonly en: "Model switched, but workspace attachment failed · {{err}}";
|
|
813
817
|
};
|
|
814
818
|
readonly 'model-usage': {
|
|
815
|
-
readonly zh: "用法:/model <provider/model>(如 deepseek/deepseek-
|
|
816
|
-
readonly en: "Usage: /model <provider/model> (e.g. deepseek/deepseek-
|
|
819
|
+
readonly zh: "用法:/model <provider/model>(如 deepseek/deepseek-flash)";
|
|
820
|
+
readonly en: "Usage: /model <provider/model> (e.g. deepseek/deepseek-flash)";
|
|
817
821
|
};
|
|
818
822
|
readonly 'model-unknown': {
|
|
819
823
|
readonly zh: "未知模型「{{spec}}」· /model 查看全部";
|
|
@@ -2714,6 +2718,10 @@ declare const dict: {
|
|
|
2714
2718
|
readonly zh: "(ctrl+o 展开)";
|
|
2715
2719
|
readonly en: "(ctrl+o to expand)";
|
|
2716
2720
|
};
|
|
2721
|
+
readonly 'long-line-folded': {
|
|
2722
|
+
readonly zh: "… 已折叠 {{n}} 字符(点击或 ctrl+o 展开)";
|
|
2723
|
+
readonly en: "… {{n}} chars folded (click or ctrl+o to expand)";
|
|
2724
|
+
};
|
|
2717
2725
|
readonly 'file-actions-title': {
|
|
2718
2726
|
readonly zh: "文件操作";
|
|
2719
2727
|
readonly en: "File actions";
|
|
@@ -2993,6 +3001,10 @@ declare const dict: {
|
|
|
2993
3001
|
readonly zh: "(宿主描述符已剔除漂移契约:{{dropped}})";
|
|
2994
3002
|
readonly en: "(host descriptor dropped drifted contracts: {{dropped}})";
|
|
2995
3003
|
};
|
|
3004
|
+
readonly 'plugins-check-host-unavailable': {
|
|
3005
|
+
readonly zh: "当前没有 live Host Descriptor;只做静态 manifest 校验,不进行协议支持声明/协商。";
|
|
3006
|
+
readonly en: "No live Host Descriptor is available; only static manifest validation was performed, no protocol support declaration/negotiation.";
|
|
3007
|
+
};
|
|
2996
3008
|
readonly 'doctor-plugin-generation': {
|
|
2997
3009
|
readonly zh: "插件运行时 generation:{{id}}";
|
|
2998
3010
|
readonly en: "Plugin runtime generation: {{id}}";
|