@askdkc/dsh-cli 0.11.3
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/LICENSE +21 -0
- package/README.md +321 -0
- package/bin/dsh-tui.js +1366 -0
- package/cordis.patch.yml +482 -0
- package/cordis.yml +250 -0
- package/dsh-ecosystem-spec/protocols/profile-definitions.d.ts +13 -0
- package/dsh-ecosystem-spec/protocols/profile-definitions.js +59 -0
- package/dsh-ecosystem-spec/protocols/tui-channel-http.d.ts +15 -0
- package/dsh-ecosystem-spec/protocols/tui-channel-http.js +32 -0
- package/dsh-ecosystem-spec/protocols/tui-channel.d.ts +59 -0
- package/dsh-ecosystem-spec/protocols/tui-channel.js +166 -0
- package/dsh-ecosystem-spec/protocols/tui-contributions.d.ts +42 -0
- package/dsh-ecosystem-spec/protocols/tui-contributions.js +143 -0
- package/dsh-ecosystem-spec/registry/README.md +14 -0
- package/dsh-ecosystem-spec/registry/contracts/decision-events-v1alpha1.json +13 -0
- package/dsh-ecosystem-spec/registry/contracts/scene-v1alpha1.json +13 -0
- package/dsh-ecosystem-spec/registry/contracts/settings-section-v1alpha1.json +13 -0
- package/dsh-ecosystem-spec/registry/contracts/tui-channel-v1alpha1.json +30 -0
- package/dsh-ecosystem-spec/registry/contracts/workspace-provider-v1alpha1.json +6 -0
- package/dsh-ecosystem-spec/registry/host-descriptor.tui.example.json +56 -0
- package/dsh-ecosystem-spec/registry/permissions-0.1.json +13 -0
- package/dsh-ecosystem-spec/registry/registry-0.15.json +149 -0
- package/dsh-ecosystem-spec/schemas/conformance-claim.schema.json +15 -0
- package/dsh-ecosystem-spec/schemas/effect-ledger-record.schema.json +16 -0
- package/dsh-ecosystem-spec/schemas/host-descriptor.schema.json +26 -0
- package/lib/types/activityPrefs.d.ts +63 -0
- package/lib/types/activityPrefs.d.ts.map +1 -0
- package/lib/types/activityPrefs.js +126 -0
- 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 +249 -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 +57 -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 +109 -0
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -0
- package/lib/types/adapter/channel/ui-policy.js +170 -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 +173 -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 +216 -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 +428 -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 +327 -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 +16 -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 +279 -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 +593 -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 +663 -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 +68 -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 +148 -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 +62 -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/adapter/standard/grants.d.ts +30 -0
- package/lib/types/adapter/standard/grants.d.ts.map +1 -0
- package/lib/types/adapter/standard/grants.js +219 -0
- 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 +11 -0
- package/lib/types/adapter/standard/negotiate.d.ts.map +1 -0
- package/lib/types/adapter/standard/negotiate.js +97 -0
- package/lib/types/adapter/standard/permission-scope.d.ts +27 -0
- package/lib/types/adapter/standard/permission-scope.d.ts.map +1 -0
- package/lib/types/adapter/standard/permission-scope.js +68 -0
- 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 +23 -0
- package/lib/types/adapter/standard/registry.d.ts.map +1 -0
- package/lib/types/adapter/standard/registry.js +240 -0
- package/lib/types/adapter/standard/schema-check.d.ts +17 -0
- package/lib/types/adapter/standard/schema-check.d.ts.map +1 -0
- package/lib/types/adapter/standard/schema-check.js +167 -0
- 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/adapter/standard/types.d.ts +108 -0
- package/lib/types/adapter/standard/types.d.ts.map +1 -0
- package/lib/types/adapter/standard/types.js +10 -0
- package/lib/types/adapter/standard/validate.d.ts +21 -0
- package/lib/types/adapter/standard/validate.d.ts.map +1 -0
- package/lib/types/adapter/standard/validate.js +139 -0
- 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 +198 -0
- package/lib/types/api.d.ts +7 -0
- package/lib/types/api.d.ts.map +1 -0
- package/lib/types/api.js +1 -0
- package/lib/types/bootstrap/state.d.ts +11 -0
- package/lib/types/bootstrap/state.d.ts.map +1 -0
- package/lib/types/bootstrap/state.js +10 -0
- package/lib/types/command-trees.d.ts +4 -0
- package/lib/types/command-trees.d.ts.map +1 -0
- package/lib/types/command-trees.js +4 -0
- package/lib/types/commands.d.ts +87 -0
- package/lib/types/commands.d.ts.map +1 -0
- package/lib/types/commands.js +218 -0
- package/lib/types/components/ActivityLine.d.ts +34 -0
- package/lib/types/components/ActivityLine.d.ts.map +1 -0
- package/lib/types/components/ActivityLine.js +39 -0
- package/lib/types/components/ActivityPicker.d.ts +16 -0
- package/lib/types/components/ActivityPicker.d.ts.map +1 -0
- package/lib/types/components/ActivityPicker.js +23 -0
- package/lib/types/components/AutoRecapRow.d.ts +23 -0
- package/lib/types/components/AutoRecapRow.d.ts.map +1 -0
- package/lib/types/components/AutoRecapRow.js +23 -0
- package/lib/types/components/BalanceReportRow.d.ts +24 -0
- package/lib/types/components/BalanceReportRow.d.ts.map +1 -0
- package/lib/types/components/BalanceReportRow.js +87 -0
- package/lib/types/components/BtwPanel.d.ts +16 -0
- package/lib/types/components/BtwPanel.d.ts.map +1 -0
- package/lib/types/components/BtwPanel.js +47 -0
- package/lib/types/components/Chat/JobCard.d.ts +23 -0
- package/lib/types/components/Chat/JobCard.d.ts.map +1 -0
- package/lib/types/components/Chat/JobCard.js +93 -0
- package/lib/types/components/Chat/SubagentMessage.d.ts +20 -0
- package/lib/types/components/Chat/SubagentMessage.d.ts.map +1 -0
- package/lib/types/components/Chat/SubagentMessage.js +83 -0
- package/lib/types/components/ColorPicker.d.ts +17 -0
- package/lib/types/components/ColorPicker.d.ts.map +1 -0
- package/lib/types/components/ColorPicker.js +20 -0
- package/lib/types/components/CommandSuggestions.d.ts +34 -0
- package/lib/types/components/CommandSuggestions.d.ts.map +1 -0
- package/lib/types/components/CommandSuggestions.js +61 -0
- package/lib/types/components/ContextBarView.d.ts +41 -0
- package/lib/types/components/ContextBarView.d.ts.map +1 -0
- package/lib/types/components/ContextBarView.js +50 -0
- package/lib/types/components/EffortChargeGlyph.d.ts +26 -0
- package/lib/types/components/EffortChargeGlyph.d.ts.map +1 -0
- package/lib/types/components/EffortChargeGlyph.js +70 -0
- package/lib/types/components/EffortInputBorder.d.ts +47 -0
- package/lib/types/components/EffortInputBorder.d.ts.map +1 -0
- package/lib/types/components/EffortInputBorder.js +90 -0
- package/lib/types/components/EffortSlider.d.ts +18 -0
- package/lib/types/components/EffortSlider.d.ts.map +1 -0
- package/lib/types/components/EffortSlider.js +19 -0
- package/lib/types/components/EffortTierBadge.d.ts +26 -0
- package/lib/types/components/EffortTierBadge.d.ts.map +1 -0
- package/lib/types/components/EffortTierBadge.js +97 -0
- package/lib/types/components/ExtensionDialog.d.ts +40 -0
- package/lib/types/components/ExtensionDialog.d.ts.map +1 -0
- package/lib/types/components/ExtensionDialog.js +253 -0
- package/lib/types/components/FileActionsPanel.d.ts +22 -0
- package/lib/types/components/FileActionsPanel.d.ts.map +1 -0
- package/lib/types/components/FileActionsPanel.js +28 -0
- package/lib/types/components/FileSuggestions.d.ts +18 -0
- package/lib/types/components/FileSuggestions.d.ts.map +1 -0
- package/lib/types/components/FileSuggestions.js +78 -0
- package/lib/types/components/GoalTodoPanel.d.ts +38 -0
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -0
- package/lib/types/components/GoalTodoPanel.js +131 -0
- package/lib/types/components/HelpMenu.d.ts +29 -0
- package/lib/types/components/HelpMenu.d.ts.map +1 -0
- package/lib/types/components/HelpMenu.js +39 -0
- package/lib/types/components/HistorySearchDialog.d.ts +18 -0
- package/lib/types/components/HistorySearchDialog.d.ts.map +1 -0
- package/lib/types/components/HistorySearchDialog.js +47 -0
- package/lib/types/components/ImagePreviewOverlay.d.ts +51 -0
- package/lib/types/components/ImagePreviewOverlay.d.ts.map +1 -0
- package/lib/types/components/ImagePreviewOverlay.js +269 -0
- package/lib/types/components/JobsPanel.d.ts +17 -0
- package/lib/types/components/JobsPanel.d.ts.map +1 -0
- package/lib/types/components/JobsPanel.js +111 -0
- package/lib/types/components/LangPicker.d.ts +14 -0
- package/lib/types/components/LangPicker.d.ts.map +1 -0
- package/lib/types/components/LangPicker.js +17 -0
- package/lib/types/components/LoadedContextPanel.d.ts +20 -0
- package/lib/types/components/LoadedContextPanel.d.ts.map +1 -0
- package/lib/types/components/LoadedContextPanel.js +32 -0
- package/lib/types/components/LogoV2.d.ts +48 -0
- package/lib/types/components/LogoV2.d.ts.map +1 -0
- package/lib/types/components/LogoV2.js +239 -0
- package/lib/types/components/Markdown.d.ts +46 -0
- package/lib/types/components/Markdown.d.ts.map +1 -0
- package/lib/types/components/Markdown.js +178 -0
- package/lib/types/components/MarkdownTable.d.ts +13 -0
- package/lib/types/components/MarkdownTable.d.ts.map +1 -0
- package/lib/types/components/MarkdownTable.js +155 -0
- package/lib/types/components/MermaidDiagram.d.ts +13 -0
- package/lib/types/components/MermaidDiagram.d.ts.map +1 -0
- package/lib/types/components/MermaidDiagram.js +61 -0
- package/lib/types/components/MessageList.d.ts +144 -0
- package/lib/types/components/MessageList.d.ts.map +1 -0
- package/lib/types/components/MessageList.js +1170 -0
- package/lib/types/components/MigratePicker.d.ts +30 -0
- package/lib/types/components/MigratePicker.d.ts.map +1 -0
- package/lib/types/components/MigratePicker.js +38 -0
- package/lib/types/components/ModelPicker.d.ts +42 -0
- package/lib/types/components/ModelPicker.d.ts.map +1 -0
- package/lib/types/components/ModelPicker.js +51 -0
- package/lib/types/components/OverlayAbove.d.ts +48 -0
- package/lib/types/components/OverlayAbove.d.ts.map +1 -0
- package/lib/types/components/OverlayAbove.js +98 -0
- package/lib/types/components/PageMargin.d.ts +58 -0
- package/lib/types/components/PageMargin.d.ts.map +1 -0
- package/lib/types/components/PageMargin.js +38 -0
- package/lib/types/components/PermissionsPicker.d.ts +20 -0
- package/lib/types/components/PermissionsPicker.d.ts.map +1 -0
- package/lib/types/components/PermissionsPicker.js +33 -0
- package/lib/types/components/PlanPicker.d.ts +15 -0
- package/lib/types/components/PlanPicker.d.ts.map +1 -0
- package/lib/types/components/PlanPicker.js +18 -0
- package/lib/types/components/PluginSceneBoundary.d.ts +31 -0
- package/lib/types/components/PluginSceneBoundary.d.ts.map +1 -0
- package/lib/types/components/PluginSceneBoundary.js +29 -0
- package/lib/types/components/PluginStatusViewBoundary.d.ts +26 -0
- package/lib/types/components/PluginStatusViewBoundary.d.ts.map +1 -0
- package/lib/types/components/PluginStatusViewBoundary.js +22 -0
- package/lib/types/components/PresetPicker.d.ts +20 -0
- package/lib/types/components/PresetPicker.d.ts.map +1 -0
- package/lib/types/components/PresetPicker.js +24 -0
- package/lib/types/components/PromptEditor.d.ts +48 -0
- package/lib/types/components/PromptEditor.d.ts.map +1 -0
- package/lib/types/components/PromptEditor.js +75 -0
- package/lib/types/components/PromptInput.d.ts +163 -0
- package/lib/types/components/PromptInput.d.ts.map +1 -0
- package/lib/types/components/PromptInput.js +3503 -0
- package/lib/types/components/RecapPanel.d.ts +25 -0
- package/lib/types/components/RecapPanel.d.ts.map +1 -0
- package/lib/types/components/RecapPanel.js +55 -0
- package/lib/types/components/RewindPicker.d.ts +37 -0
- package/lib/types/components/RewindPicker.d.ts.map +1 -0
- package/lib/types/components/RewindPicker.js +66 -0
- package/lib/types/components/ScrollbarGutter.d.ts +43 -0
- package/lib/types/components/ScrollbarGutter.d.ts.map +1 -0
- package/lib/types/components/ScrollbarGutter.js +197 -0
- package/lib/types/components/SearchBox.d.ts +24 -0
- package/lib/types/components/SearchBox.d.ts.map +1 -0
- package/lib/types/components/SearchBox.js +132 -0
- package/lib/types/components/Select.d.ts +29 -0
- package/lib/types/components/Select.d.ts.map +1 -0
- package/lib/types/components/Select.js +21 -0
- package/lib/types/components/SkillsPicker.d.ts +21 -0
- package/lib/types/components/SkillsPicker.d.ts.map +1 -0
- package/lib/types/components/SkillsPicker.js +52 -0
- package/lib/types/components/Spinner/GlimmerMessage.d.ts +16 -0
- package/lib/types/components/Spinner/GlimmerMessage.d.ts.map +1 -0
- package/lib/types/components/Spinner/GlimmerMessage.js +57 -0
- package/lib/types/components/Spinner/SpinnerAnimationRow.d.ts +33 -0
- package/lib/types/components/Spinner/SpinnerAnimationRow.d.ts.map +1 -0
- package/lib/types/components/Spinner/SpinnerAnimationRow.js +168 -0
- package/lib/types/components/Spinner/SpinnerGlyph.d.ts +16 -0
- package/lib/types/components/Spinner/SpinnerGlyph.d.ts.map +1 -0
- package/lib/types/components/Spinner/SpinnerGlyph.js +36 -0
- package/lib/types/components/Spinner/spinnerMode.d.ts +2 -0
- package/lib/types/components/Spinner/spinnerMode.d.ts.map +1 -0
- package/lib/types/components/Spinner/spinnerMode.js +1 -0
- package/lib/types/components/Spinner/spinnerUtils.d.ts +36 -0
- package/lib/types/components/Spinner/spinnerUtils.d.ts.map +1 -0
- package/lib/types/components/Spinner/spinnerUtils.js +94 -0
- package/lib/types/components/Spinner/useStalledAnimation.d.ts +16 -0
- package/lib/types/components/Spinner/useStalledAnimation.d.ts.map +1 -0
- package/lib/types/components/Spinner/useStalledAnimation.js +52 -0
- package/lib/types/components/SplitDiffView.d.ts +25 -0
- package/lib/types/components/SplitDiffView.d.ts.map +1 -0
- package/lib/types/components/SplitDiffView.js +279 -0
- package/lib/types/components/StreamingMarkdown.d.ts +6 -0
- package/lib/types/components/StreamingMarkdown.d.ts.map +1 -0
- package/lib/types/components/StreamingMarkdown.js +279 -0
- package/lib/types/components/SubagentCard.d.ts +10 -0
- package/lib/types/components/SubagentCard.d.ts.map +1 -0
- package/lib/types/components/SubagentCard.js +39 -0
- package/lib/types/components/SubagentDashboard.d.ts +17 -0
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -0
- package/lib/types/components/SubagentDashboard.js +58 -0
- package/lib/types/components/SubagentDetailScene.d.ts +16 -0
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -0
- package/lib/types/components/SubagentDetailScene.js +147 -0
- package/lib/types/components/SuggestionCard.d.ts +65 -0
- package/lib/types/components/SuggestionCard.d.ts.map +1 -0
- package/lib/types/components/SuggestionCard.js +77 -0
- package/lib/types/components/SyntaxText.d.ts +15 -0
- package/lib/types/components/SyntaxText.d.ts.map +1 -0
- package/lib/types/components/SyntaxText.js +34 -0
- package/lib/types/components/ThemePicker.d.ts +27 -0
- package/lib/types/components/ThemePicker.d.ts.map +1 -0
- package/lib/types/components/ThemePicker.js +55 -0
- package/lib/types/components/ThinkingToggle.d.ts +13 -0
- package/lib/types/components/ThinkingToggle.d.ts.map +1 -0
- package/lib/types/components/ThinkingToggle.js +25 -0
- package/lib/types/components/TimelineRail.d.ts +53 -0
- package/lib/types/components/TimelineRail.d.ts.map +1 -0
- package/lib/types/components/TimelineRail.js +197 -0
- package/lib/types/components/TipsPanel.d.ts +14 -0
- package/lib/types/components/TipsPanel.d.ts.map +1 -0
- package/lib/types/components/TipsPanel.js +37 -0
- package/lib/types/components/ToolUseLoader.d.ts +18 -0
- package/lib/types/components/ToolUseLoader.d.ts.map +1 -0
- package/lib/types/components/ToolUseLoader.js +51 -0
- package/lib/types/components/Tooltip.d.ts +67 -0
- package/lib/types/components/Tooltip.d.ts.map +1 -0
- package/lib/types/components/Tooltip.js +266 -0
- package/lib/types/components/TurnInterruptedRow.d.ts +6 -0
- package/lib/types/components/TurnInterruptedRow.d.ts.map +1 -0
- package/lib/types/components/TurnInterruptedRow.js +9 -0
- package/lib/types/components/Whale.d.ts +42 -0
- package/lib/types/components/Whale.d.ts.map +1 -0
- package/lib/types/components/Whale.js +108 -0
- package/lib/types/components/WorkingSpinner.d.ts +26 -0
- package/lib/types/components/WorkingSpinner.d.ts.map +1 -0
- package/lib/types/components/WorkingSpinner.js +67 -0
- package/lib/types/components/WorkspaceFlowPicker.d.ts +20 -0
- package/lib/types/components/WorkspaceFlowPicker.d.ts.map +1 -0
- package/lib/types/components/WorkspaceFlowPicker.js +21 -0
- package/lib/types/components/WorkspaceMenuPicker.d.ts +19 -0
- package/lib/types/components/WorkspaceMenuPicker.d.ts.map +1 -0
- package/lib/types/components/WorkspaceMenuPicker.js +19 -0
- package/lib/types/components/WorkspacePicker.d.ts +12 -0
- package/lib/types/components/WorkspacePicker.d.ts.map +1 -0
- package/lib/types/components/WorkspacePicker.js +13 -0
- package/lib/types/components/activityFrames.d.ts +23 -0
- package/lib/types/components/activityFrames.d.ts.map +1 -0
- package/lib/types/components/activityFrames.js +31 -0
- package/lib/types/components/approvals/ApprovalPanel.d.ts +24 -0
- package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -0
- package/lib/types/components/approvals/ApprovalPanel.js +53 -0
- package/lib/types/components/bigfont.d.ts +28 -0
- package/lib/types/components/bigfont.d.ts.map +1 -0
- package/lib/types/components/bigfont.js +91 -0
- package/lib/types/components/design-system/Byline.d.ts +14 -0
- package/lib/types/components/design-system/Byline.d.ts.map +1 -0
- package/lib/types/components/design-system/Byline.js +17 -0
- package/lib/types/components/design-system/Divider.d.ts +61 -0
- package/lib/types/components/design-system/Divider.d.ts.map +1 -0
- package/lib/types/components/design-system/Divider.js +115 -0
- package/lib/types/components/design-system/HintLine.d.ts +11 -0
- package/lib/types/components/design-system/HintLine.d.ts.map +1 -0
- package/lib/types/components/design-system/HintLine.js +14 -0
- package/lib/types/components/design-system/ListItem.d.ts +42 -0
- package/lib/types/components/design-system/ListItem.d.ts.map +1 -0
- package/lib/types/components/design-system/ListItem.js +84 -0
- package/lib/types/components/design-system/LoadingState.d.ts +19 -0
- package/lib/types/components/design-system/LoadingState.d.ts.map +1 -0
- package/lib/types/components/design-system/LoadingState.js +22 -0
- package/lib/types/components/design-system/Pane.d.ts +17 -0
- package/lib/types/components/design-system/Pane.d.ts.map +1 -0
- package/lib/types/components/design-system/Pane.js +15 -0
- package/lib/types/components/design-system/ProgressBar.d.ts +21 -0
- package/lib/types/components/design-system/ProgressBar.d.ts.map +1 -0
- package/lib/types/components/design-system/ProgressBar.js +26 -0
- package/lib/types/components/design-system/StatusIcon.d.ts +15 -0
- package/lib/types/components/design-system/StatusIcon.d.ts.map +1 -0
- package/lib/types/components/design-system/StatusIcon.js +20 -0
- package/lib/types/components/design-system/ThemeProvider.d.ts +21 -0
- package/lib/types/components/design-system/ThemeProvider.d.ts.map +1 -0
- package/lib/types/components/design-system/ThemeProvider.js +256 -0
- package/lib/types/components/design-system/ThemedBox.d.ts +60 -0
- package/lib/types/components/design-system/ThemedBox.d.ts.map +1 -0
- package/lib/types/components/design-system/ThemedBox.js +29 -0
- package/lib/types/components/design-system/ThemedText.d.ts +61 -0
- package/lib/types/components/design-system/ThemedText.d.ts.map +1 -0
- package/lib/types/components/design-system/ThemedText.js +42 -0
- package/lib/types/components/listWindow.d.ts +26 -0
- package/lib/types/components/listWindow.d.ts.map +1 -0
- package/lib/types/components/listWindow.js +47 -0
- package/lib/types/components/messages/AssistantTextMessage.d.ts +20 -0
- package/lib/types/components/messages/AssistantTextMessage.d.ts.map +1 -0
- package/lib/types/components/messages/AssistantTextMessage.js +18 -0
- package/lib/types/components/messages/AssistantThinkingMessage.d.ts +40 -0
- package/lib/types/components/messages/AssistantThinkingMessage.d.ts.map +1 -0
- package/lib/types/components/messages/AssistantThinkingMessage.js +84 -0
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts +72 -0
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -0
- package/lib/types/components/messages/AssistantToolUseMessage.js +517 -0
- package/lib/types/components/messages/MessageMetadata.d.ts +14 -0
- package/lib/types/components/messages/MessageMetadata.d.ts.map +1 -0
- package/lib/types/components/messages/MessageMetadata.js +19 -0
- package/lib/types/components/messages/TranscriptImages.d.ts +21 -0
- package/lib/types/components/messages/TranscriptImages.d.ts.map +1 -0
- package/lib/types/components/messages/TranscriptImages.js +83 -0
- package/lib/types/components/messages/UserPromptMessage.d.ts +18 -0
- package/lib/types/components/messages/UserPromptMessage.d.ts.map +1 -0
- package/lib/types/components/messages/UserPromptMessage.js +28 -0
- package/lib/types/components/messages/imageInspection.d.ts +33 -0
- package/lib/types/components/messages/imageInspection.d.ts.map +1 -0
- package/lib/types/components/messages/imageInspection.js +107 -0
- package/lib/types/components/messages/originalImage.d.ts +5 -0
- package/lib/types/components/messages/originalImage.d.ts.map +1 -0
- package/lib/types/components/messages/originalImage.js +56 -0
- package/lib/types/components/messages/transcriptImageDecode.d.ts +9 -0
- package/lib/types/components/messages/transcriptImageDecode.d.ts.map +1 -0
- package/lib/types/components/messages/transcriptImageDecode.js +144 -0
- package/lib/types/components/messages/useImageInspection.d.ts +10 -0
- package/lib/types/components/messages/useImageInspection.d.ts.map +1 -0
- package/lib/types/components/messages/useImageInspection.js +91 -0
- 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/components/promptDraftCache.d.ts +102 -0
- package/lib/types/components/promptDraftCache.d.ts.map +1 -0
- package/lib/types/components/promptDraftCache.js +76 -0
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts +94 -0
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -0
- package/lib/types/components/questions/AskUserQuestionPanel.js +527 -0
- package/lib/types/components/questions/PlanReviewPanel.d.ts +55 -0
- package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -0
- package/lib/types/components/questions/PlanReviewPanel.js +351 -0
- package/lib/types/components/questions/QuestionMinimizedBar.d.ts +12 -0
- package/lib/types/components/questions/QuestionMinimizedBar.d.ts.map +1 -0
- package/lib/types/components/questions/QuestionMinimizedBar.js +43 -0
- package/lib/types/components/sessions/SessionListRow.d.ts +58 -0
- package/lib/types/components/sessions/SessionListRow.d.ts.map +1 -0
- package/lib/types/components/sessions/SessionListRow.js +108 -0
- package/lib/types/components/sessions/SessionPreview.d.ts +25 -0
- package/lib/types/components/sessions/SessionPreview.d.ts.map +1 -0
- package/lib/types/components/sessions/SessionPreview.js +62 -0
- package/lib/types/components/sessions/WorkspaceListRow.d.ts +17 -0
- package/lib/types/components/sessions/WorkspaceListRow.d.ts.map +1 -0
- package/lib/types/components/sessions/WorkspaceListRow.js +27 -0
- package/lib/types/components/shimmer.d.ts +35 -0
- package/lib/types/components/shimmer.d.ts.map +1 -0
- package/lib/types/components/shimmer.js +43 -0
- package/lib/types/components/smoothReveal.d.ts +57 -0
- package/lib/types/components/smoothReveal.d.ts.map +1 -0
- package/lib/types/components/smoothReveal.js +305 -0
- package/lib/types/components/trajectory/HotspotView.d.ts +20 -0
- package/lib/types/components/trajectory/HotspotView.d.ts.map +1 -0
- package/lib/types/components/trajectory/HotspotView.js +89 -0
- package/lib/types/components/trajectory/Inspector.d.ts +31 -0
- package/lib/types/components/trajectory/Inspector.d.ts.map +1 -0
- package/lib/types/components/trajectory/Inspector.js +67 -0
- package/lib/types/components/trajectory/Ledger.d.ts +28 -0
- package/lib/types/components/trajectory/Ledger.d.ts.map +1 -0
- package/lib/types/components/trajectory/Ledger.js +130 -0
- package/lib/types/components/trajectory/MiniWake.d.ts +24 -0
- package/lib/types/components/trajectory/MiniWake.d.ts.map +1 -0
- package/lib/types/components/trajectory/MiniWake.js +99 -0
- package/lib/types/components/trajectory/WaveBand.d.ts +42 -0
- package/lib/types/components/trajectory/WaveBand.d.ts.map +1 -0
- package/lib/types/components/trajectory/WaveBand.js +150 -0
- package/lib/types/components/whaleFrames.d.ts +81 -0
- package/lib/types/components/whaleFrames.d.ts.map +1 -0
- package/lib/types/components/whaleFrames.js +768 -0
- package/lib/types/components/whaleIdle.d.ts +66 -0
- package/lib/types/components/whaleIdle.d.ts.map +1 -0
- package/lib/types/components/whaleIdle.js +174 -0
- package/lib/types/components/whaleLayers.d.ts +28 -0
- package/lib/types/components/whaleLayers.d.ts.map +1 -0
- package/lib/types/components/whaleLayers.js +90 -0
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts +49 -0
- package/lib/types/components/workspaces/HomeWorkspaceRow.d.ts.map +1 -0
- package/lib/types/components/workspaces/HomeWorkspaceRow.js +50 -0
- package/lib/types/customTheme.d.ts +108 -0
- package/lib/types/customTheme.d.ts.map +1 -0
- package/lib/types/customTheme.js +281 -0
- package/lib/types/deepseekBalance.d.ts +19 -0
- package/lib/types/deepseekBalance.d.ts.map +1 -0
- package/lib/types/deepseekBalance.js +72 -0
- package/lib/types/deepseekPricing.d.ts +83 -0
- package/lib/types/deepseekPricing.d.ts.map +1 -0
- package/lib/types/deepseekPricing.js +140 -0
- package/lib/types/dsh-adapter/activity-store.d.ts +221 -0
- package/lib/types/dsh-adapter/activity-store.d.ts.map +1 -0
- package/lib/types/dsh-adapter/activity-store.js +359 -0
- package/lib/types/dsh-adapter/agent-view.d.ts +66 -0
- package/lib/types/dsh-adapter/agent-view.d.ts.map +1 -0
- package/lib/types/dsh-adapter/agent-view.js +153 -0
- package/lib/types/dsh-adapter/approvals.d.ts +225 -0
- package/lib/types/dsh-adapter/approvals.d.ts.map +1 -0
- package/lib/types/dsh-adapter/approvals.js +465 -0
- package/lib/types/dsh-adapter/bundled-presets.d.ts +10 -0
- package/lib/types/dsh-adapter/bundled-presets.d.ts.map +1 -0
- package/lib/types/dsh-adapter/bundled-presets.js +80 -0
- 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 +86 -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 +312 -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 +110 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +67 -0
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/binding-events.js +170 -0
- package/lib/types/dsh-adapter/channel/binding.d.ts +58 -0
- package/lib/types/dsh-adapter/channel/binding.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/binding.js +287 -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 +18 -0
- package/lib/types/dsh-adapter/channel/compaction.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/compaction.js +114 -0
- package/lib/types/dsh-adapter/channel/composer-images.d.ts +62 -0
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/composer-images.js +316 -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 +34 -0
- package/lib/types/dsh-adapter/channel/context-bookkeeping.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/context-bookkeeping.js +31 -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/ide-selection.d.ts +58 -0
- package/lib/types/dsh-adapter/channel/ide-selection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/ide-selection.js +226 -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 +42 -0
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/input-delivery.js +313 -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 +54 -0
- package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/local-actions.js +109 -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 +49 -0
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/model-actions.js +351 -0
- package/lib/types/dsh-adapter/channel/model-switch.d.ts +31 -0
- package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/model-switch.js +116 -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 +44 -0
- package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/projection.js +1031 -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 +163 -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 +36 -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 +109 -0
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +35 -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 +64 -0
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts +91 -0
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-metadata.js +220 -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 +43 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +65 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-resume.js +438 -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 +146 -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 +154 -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 +257 -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 +51 -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 +67 -0
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/subagent-projection.js +307 -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 +306 -0
- package/lib/types/dsh-adapter/channel/types.d.ts +167 -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 +23 -0
- package/lib/types/dsh-adapter/channel/workspace-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/workspace-actions.js +96 -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 +23 -0
- package/lib/types/dsh-adapter/channel.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel.js +999 -0
- package/lib/types/dsh-adapter/childStderr.d.ts +63 -0
- package/lib/types/dsh-adapter/childStderr.d.ts.map +1 -0
- package/lib/types/dsh-adapter/childStderr.js +180 -0
- package/lib/types/dsh-adapter/command-attribution.d.ts +51 -0
- package/lib/types/dsh-adapter/command-attribution.d.ts.map +1 -0
- package/lib/types/dsh-adapter/command-attribution.js +93 -0
- package/lib/types/dsh-adapter/command-errors.d.ts +42 -0
- package/lib/types/dsh-adapter/command-errors.d.ts.map +1 -0
- package/lib/types/dsh-adapter/command-errors.js +63 -0
- package/lib/types/dsh-adapter/command-trees.d.ts +34 -0
- package/lib/types/dsh-adapter/command-trees.d.ts.map +1 -0
- package/lib/types/dsh-adapter/command-trees.js +111 -0
- package/lib/types/dsh-adapter/compat/index.d.ts +29 -0
- package/lib/types/dsh-adapter/compat/index.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/index.js +28 -0
- package/lib/types/dsh-adapter/compat/liveSession.d.ts +79 -0
- package/lib/types/dsh-adapter/compat/liveSession.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/liveSession.js +223 -0
- package/lib/types/dsh-adapter/compat/messages.d.ts +15 -0
- package/lib/types/dsh-adapter/compat/messages.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/messages.js +15 -0
- 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 +309 -0
- package/lib/types/dsh-adapter/compat/sessionLog.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/sessionLog.js +1177 -0
- package/lib/types/dsh-adapter/compat/settings.d.ts +35 -0
- package/lib/types/dsh-adapter/compat/settings.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/settings.js +57 -0
- package/lib/types/dsh-adapter/compat/shell.d.ts +25 -0
- package/lib/types/dsh-adapter/compat/shell.d.ts.map +1 -0
- package/lib/types/dsh-adapter/compat/shell.js +11 -0
- package/lib/types/dsh-adapter/component-identity.d.ts +33 -0
- package/lib/types/dsh-adapter/component-identity.d.ts.map +1 -0
- package/lib/types/dsh-adapter/component-identity.js +108 -0
- package/lib/types/dsh-adapter/contract.d.ts +91 -0
- package/lib/types/dsh-adapter/contract.d.ts.map +1 -0
- package/lib/types/dsh-adapter/contract.js +276 -0
- package/lib/types/dsh-adapter/credentialRefGuard.d.ts +40 -0
- package/lib/types/dsh-adapter/credentialRefGuard.d.ts.map +1 -0
- package/lib/types/dsh-adapter/credentialRefGuard.js +43 -0
- package/lib/types/dsh-adapter/decision-guard.d.ts +128 -0
- package/lib/types/dsh-adapter/decision-guard.d.ts.map +1 -0
- package/lib/types/dsh-adapter/decision-guard.js +460 -0
- package/lib/types/dsh-adapter/dialogs.d.ts +145 -0
- package/lib/types/dsh-adapter/dialogs.d.ts.map +1 -0
- package/lib/types/dsh-adapter/dialogs.js +329 -0
- package/lib/types/dsh-adapter/effect-ledger.d.ts +96 -0
- package/lib/types/dsh-adapter/effect-ledger.d.ts.map +1 -0
- package/lib/types/dsh-adapter/effect-ledger.js +290 -0
- package/lib/types/dsh-adapter/extension-events.d.ts +186 -0
- package/lib/types/dsh-adapter/extension-events.d.ts.map +1 -0
- package/lib/types/dsh-adapter/extension-events.js +187 -0
- package/lib/types/dsh-adapter/extensions.d.ts +36 -0
- package/lib/types/dsh-adapter/extensions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/extensions.js +51 -0
- package/lib/types/dsh-adapter/host-access.d.ts +37 -0
- package/lib/types/dsh-adapter/host-access.d.ts.map +1 -0
- package/lib/types/dsh-adapter/host-access.js +652 -0
- 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/ide-channel.d.ts +224 -0
- package/lib/types/dsh-adapter/ide-channel.d.ts.map +1 -0
- package/lib/types/dsh-adapter/ide-channel.js +556 -0
- package/lib/types/dsh-adapter/index.d.ts +151 -0
- package/lib/types/dsh-adapter/index.d.ts.map +1 -0
- package/lib/types/dsh-adapter/index.js +119 -0
- package/lib/types/dsh-adapter/inject-channel.d.ts +108 -0
- package/lib/types/dsh-adapter/inject-channel.d.ts.map +1 -0
- package/lib/types/dsh-adapter/inject-channel.js +247 -0
- package/lib/types/dsh-adapter/invariant.d.ts +20 -0
- package/lib/types/dsh-adapter/invariant.d.ts.map +1 -0
- package/lib/types/dsh-adapter/invariant.js +26 -0
- package/lib/types/dsh-adapter/jobs.d.ts +101 -0
- package/lib/types/dsh-adapter/jobs.d.ts.map +1 -0
- package/lib/types/dsh-adapter/jobs.js +177 -0
- package/lib/types/dsh-adapter/message-observer.d.ts +186 -0
- package/lib/types/dsh-adapter/message-observer.d.ts.map +1 -0
- package/lib/types/dsh-adapter/message-observer.js +682 -0
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/claude-code.js +191 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/codex.js +133 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/grok-build.js +175 -0
- package/lib/types/dsh-adapter/migrate/adapters/omp.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/omp.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/omp.js +132 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan.d.ts +6 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/scan.js +38 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.d.ts +3 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/adapters/zcode.js +107 -0
- package/lib/types/dsh-adapter/migrate/bin-path.d.ts +6 -0
- package/lib/types/dsh-adapter/migrate/bin-path.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/bin-path.js +30 -0
- package/lib/types/dsh-adapter/migrate/cli.d.ts +9 -0
- package/lib/types/dsh-adapter/migrate/cli.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/cli.js +105 -0
- package/lib/types/dsh-adapter/migrate/index.d.ts +29 -0
- package/lib/types/dsh-adapter/migrate/index.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/index.js +108 -0
- package/lib/types/dsh-adapter/migrate/picker.d.ts +64 -0
- package/lib/types/dsh-adapter/migrate/picker.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/picker.js +86 -0
- package/lib/types/dsh-adapter/migrate/recent-agents.d.ts +40 -0
- package/lib/types/dsh-adapter/migrate/recent-agents.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/recent-agents.js +100 -0
- package/lib/types/dsh-adapter/migrate/sessionize.d.ts +19 -0
- package/lib/types/dsh-adapter/migrate/sessionize.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/sessionize.js +101 -0
- package/lib/types/dsh-adapter/migrate/types.d.ts +52 -0
- package/lib/types/dsh-adapter/migrate/types.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/types.js +11 -0
- package/lib/types/dsh-adapter/migrate/uuid.d.ts +7 -0
- package/lib/types/dsh-adapter/migrate/uuid.d.ts.map +1 -0
- package/lib/types/dsh-adapter/migrate/uuid.js +25 -0
- package/lib/types/dsh-adapter/packaged-presets.d.ts +22 -0
- package/lib/types/dsh-adapter/packaged-presets.d.ts.map +1 -0
- package/lib/types/dsh-adapter/packaged-presets.js +94 -0
- package/lib/types/dsh-adapter/plugin-host.d.ts +205 -0
- package/lib/types/dsh-adapter/plugin-host.d.ts.map +1 -0
- package/lib/types/dsh-adapter/plugin-host.js +762 -0
- package/lib/types/dsh-adapter/plugin-storage.d.ts +118 -0
- package/lib/types/dsh-adapter/plugin-storage.d.ts.map +1 -0
- package/lib/types/dsh-adapter/plugin-storage.js +536 -0
- package/lib/types/dsh-adapter/plugin.d.ts +70 -0
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -0
- package/lib/types/dsh-adapter/plugin.js +2140 -0
- package/lib/types/dsh-adapter/plugins-info.d.ts +43 -0
- package/lib/types/dsh-adapter/plugins-info.d.ts.map +1 -0
- package/lib/types/dsh-adapter/plugins-info.js +293 -0
- package/lib/types/dsh-adapter/preset-resolution.d.ts +57 -0
- package/lib/types/dsh-adapter/preset-resolution.d.ts.map +1 -0
- package/lib/types/dsh-adapter/preset-resolution.js +52 -0
- package/lib/types/dsh-adapter/presets.d.ts +110 -0
- package/lib/types/dsh-adapter/presets.d.ts.map +1 -0
- package/lib/types/dsh-adapter/presets.js +161 -0
- package/lib/types/dsh-adapter/promptDebug.d.ts +4 -0
- package/lib/types/dsh-adapter/promptDebug.d.ts.map +1 -0
- package/lib/types/dsh-adapter/promptDebug.js +163 -0
- package/lib/types/dsh-adapter/providerGuard.d.ts +75 -0
- package/lib/types/dsh-adapter/providerGuard.d.ts.map +1 -0
- package/lib/types/dsh-adapter/providerGuard.js +104 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts +42 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -0
- package/lib/types/dsh-adapter/providerWizard.js +921 -0
- package/lib/types/dsh-adapter/questions-answerer.d.ts +51 -0
- package/lib/types/dsh-adapter/questions-answerer.d.ts.map +1 -0
- package/lib/types/dsh-adapter/questions-answerer.js +64 -0
- package/lib/types/dsh-adapter/questions.d.ts +130 -0
- package/lib/types/dsh-adapter/questions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/questions.js +282 -0
- package/lib/types/dsh-adapter/recap.d.ts +41 -0
- package/lib/types/dsh-adapter/recap.d.ts.map +1 -0
- package/lib/types/dsh-adapter/recap.js +111 -0
- package/lib/types/dsh-adapter/renderers.d.ts +58 -0
- package/lib/types/dsh-adapter/renderers.d.ts.map +1 -0
- package/lib/types/dsh-adapter/renderers.js +198 -0
- package/lib/types/dsh-adapter/sanitize.d.ts +45 -0
- package/lib/types/dsh-adapter/sanitize.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sanitize.js +84 -0
- package/lib/types/dsh-adapter/scenes.d.ts +87 -0
- package/lib/types/dsh-adapter/scenes.d.ts.map +1 -0
- package/lib/types/dsh-adapter/scenes.js +223 -0
- package/lib/types/dsh-adapter/session-mount-heartbeat.d.ts +53 -0
- package/lib/types/dsh-adapter/session-mount-heartbeat.d.ts.map +1 -0
- package/lib/types/dsh-adapter/session-mount-heartbeat.js +100 -0
- package/lib/types/dsh-adapter/sessionTree.d.ts +232 -0
- package/lib/types/dsh-adapter/sessionTree.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessionTree.js +984 -0
- package/lib/types/dsh-adapter/sessions/digest.d.ts +54 -0
- package/lib/types/dsh-adapter/sessions/digest.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/digest.js +478 -0
- package/lib/types/dsh-adapter/sessions/frames.d.ts +103 -0
- package/lib/types/dsh-adapter/sessions/frames.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/frames.js +263 -0
- package/lib/types/dsh-adapter/sessions/header.d.ts +56 -0
- package/lib/types/dsh-adapter/sessions/header.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/header.js +85 -0
- package/lib/types/dsh-adapter/sessions/index.d.ts +17 -0
- package/lib/types/dsh-adapter/sessions/index.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/index.js +15 -0
- package/lib/types/dsh-adapter/sessions/list.d.ts +64 -0
- package/lib/types/dsh-adapter/sessions/list.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/list.js +331 -0
- package/lib/types/dsh-adapter/sessions/recovery.d.ts +17 -0
- package/lib/types/dsh-adapter/sessions/recovery.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/recovery.js +109 -0
- package/lib/types/dsh-adapter/sessions/store.d.ts +60 -0
- package/lib/types/dsh-adapter/sessions/store.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/store.js +221 -0
- package/lib/types/dsh-adapter/sessions/types.d.ts +21 -0
- package/lib/types/dsh-adapter/sessions/types.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sessions/types.js +1 -0
- package/lib/types/dsh-adapter/settings-sections.d.ts +48 -0
- package/lib/types/dsh-adapter/settings-sections.d.ts.map +1 -0
- package/lib/types/dsh-adapter/settings-sections.js +253 -0
- package/lib/types/dsh-adapter/settingsEditor.d.ts +100 -0
- package/lib/types/dsh-adapter/settingsEditor.d.ts.map +1 -0
- package/lib/types/dsh-adapter/settingsEditor.js +238 -0
- package/lib/types/dsh-adapter/sharp.d.ts +10 -0
- package/lib/types/dsh-adapter/sharp.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sharp.js +59 -0
- package/lib/types/dsh-adapter/shortcuts.d.ts +82 -0
- package/lib/types/dsh-adapter/shortcuts.d.ts.map +1 -0
- package/lib/types/dsh-adapter/shortcuts.js +252 -0
- package/lib/types/dsh-adapter/sideQuestion.d.ts +36 -0
- package/lib/types/dsh-adapter/sideQuestion.d.ts.map +1 -0
- package/lib/types/dsh-adapter/sideQuestion.js +59 -0
- package/lib/types/dsh-adapter/status.d.ts +148 -0
- package/lib/types/dsh-adapter/status.d.ts.map +1 -0
- package/lib/types/dsh-adapter/status.js +435 -0
- package/lib/types/dsh-adapter/subagents.d.ts +64 -0
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -0
- package/lib/types/dsh-adapter/subagents.js +366 -0
- package/lib/types/dsh-adapter/themes.d.ts +52 -0
- package/lib/types/dsh-adapter/themes.d.ts.map +1 -0
- package/lib/types/dsh-adapter/themes.js +307 -0
- package/lib/types/dsh-adapter/toast.d.ts +80 -0
- package/lib/types/dsh-adapter/toast.d.ts.map +1 -0
- package/lib/types/dsh-adapter/toast.js +171 -0
- package/lib/types/dsh-adapter/trajectory/aggregate.d.ts +47 -0
- package/lib/types/dsh-adapter/trajectory/aggregate.d.ts.map +1 -0
- package/lib/types/dsh-adapter/trajectory/aggregate.js +208 -0
- package/lib/types/dsh-adapter/trajectory/guards.d.ts +196 -0
- package/lib/types/dsh-adapter/trajectory/guards.d.ts.map +1 -0
- package/lib/types/dsh-adapter/trajectory/guards.js +273 -0
- package/lib/types/dsh-adapter/trajectory/index.d.ts +16 -0
- package/lib/types/dsh-adapter/trajectory/index.d.ts.map +1 -0
- package/lib/types/dsh-adapter/trajectory/index.js +15 -0
- package/lib/types/dsh-adapter/trajectory/inspect.d.ts +40 -0
- package/lib/types/dsh-adapter/trajectory/inspect.d.ts.map +1 -0
- package/lib/types/dsh-adapter/trajectory/inspect.js +160 -0
- package/lib/types/dsh-adapter/trajectory/projection.d.ts +146 -0
- package/lib/types/dsh-adapter/trajectory/projection.d.ts.map +1 -0
- package/lib/types/dsh-adapter/trajectory/projection.js +710 -0
- package/lib/types/dsh-adapter/trajectory/types.d.ts +232 -0
- package/lib/types/dsh-adapter/trajectory/types.d.ts.map +1 -0
- package/lib/types/dsh-adapter/trajectory/types.js +70 -0
- package/lib/types/dsh-adapter/trajectory/wave.d.ts +45 -0
- package/lib/types/dsh-adapter/trajectory/wave.d.ts.map +1 -0
- package/lib/types/dsh-adapter/trajectory/wave.js +210 -0
- package/lib/types/dsh-adapter/transcript-images.d.ts +17 -0
- package/lib/types/dsh-adapter/transcript-images.d.ts.map +1 -0
- package/lib/types/dsh-adapter/transcript-images.js +96 -0
- package/lib/types/dsh-adapter/types.d.ts +23 -0
- package/lib/types/dsh-adapter/types.d.ts.map +1 -0
- package/lib/types/dsh-adapter/types.js +1 -0
- package/lib/types/dsh-adapter/workspace.d.ts +22 -0
- package/lib/types/dsh-adapter/workspace.d.ts.map +1 -0
- package/lib/types/dsh-adapter/workspace.js +16 -0
- package/lib/types/dsh-adapter/workspaces.d.ts +125 -0
- package/lib/types/dsh-adapter/workspaces.d.ts.map +1 -0
- package/lib/types/dsh-adapter/workspaces.js +543 -0
- package/lib/types/effortPrefs.d.ts +48 -0
- package/lib/types/effortPrefs.d.ts.map +1 -0
- package/lib/types/effortPrefs.js +95 -0
- package/lib/types/extensions.d.ts +18 -0
- package/lib/types/extensions.d.ts.map +1 -0
- package/lib/types/extensions.js +27 -0
- package/lib/types/force-production-react.d.ts +1 -0
- package/lib/types/force-production-react.d.ts.map +1 -0
- package/lib/types/force-production-react.js +12 -0
- package/lib/types/herdr.d.ts +28 -0
- package/lib/types/herdr.d.ts.map +1 -0
- package/lib/types/herdr.js +133 -0
- package/lib/types/history.d.ts +39 -0
- package/lib/types/history.d.ts.map +1 -0
- package/lib/types/history.js +177 -0
- package/lib/types/homePrefs.d.ts +15 -0
- package/lib/types/homePrefs.d.ts.map +1 -0
- package/lib/types/homePrefs.js +53 -0
- package/lib/types/hooks/useBlink.d.ts +10 -0
- package/lib/types/hooks/useBlink.d.ts.map +1 -0
- package/lib/types/hooks/useBlink.js +19 -0
- package/lib/types/hooks/useExternalVersion.d.ts +32 -0
- package/lib/types/hooks/useExternalVersion.d.ts.map +1 -0
- package/lib/types/hooks/useExternalVersion.js +53 -0
- package/lib/types/hooks/useRevealVersion.d.ts +21 -0
- package/lib/types/hooks/useRevealVersion.d.ts.map +1 -0
- package/lib/types/hooks/useRevealVersion.js +33 -0
- package/lib/types/hooks/useRuntimeThemeSnapshot.d.ts +10 -0
- package/lib/types/hooks/useRuntimeThemeSnapshot.d.ts.map +1 -0
- package/lib/types/hooks/useRuntimeThemeSnapshot.js +32 -0
- package/lib/types/i18n.d.ts +4433 -0
- package/lib/types/i18n.d.ts.map +1 -0
- package/lib/types/i18n.js +1493 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +4 -0
- package/lib/types/ink/Ansi.d.ts +9 -0
- package/lib/types/ink/Ansi.d.ts.map +1 -0
- package/lib/types/ink/Ansi.js +45 -0
- package/lib/types/ink/bidi.d.ts +18 -0
- package/lib/types/ink/bidi.d.ts.map +1 -0
- package/lib/types/ink/bidi.js +119 -0
- package/lib/types/ink/clearTerminal.d.ts +22 -0
- package/lib/types/ink/clearTerminal.d.ts.map +1 -0
- package/lib/types/ink/clearTerminal.js +72 -0
- package/lib/types/ink/colorize.d.ts +43 -0
- package/lib/types/ink/colorize.d.ts.map +1 -0
- package/lib/types/ink/colorize.js +233 -0
- package/lib/types/ink/components/AlternateScreen.d.ts +8 -0
- package/lib/types/ink/components/AlternateScreen.d.ts.map +1 -0
- package/lib/types/ink/components/AlternateScreen.js +29 -0
- package/lib/types/ink/components/App.d.ts +149 -0
- package/lib/types/ink/components/App.d.ts.map +1 -0
- package/lib/types/ink/components/App.js +1027 -0
- package/lib/types/ink/components/AppContext.d.ts +17 -0
- package/lib/types/ink/components/AppContext.d.ts.map +1 -0
- package/lib/types/ink/components/AppContext.js +12 -0
- package/lib/types/ink/components/Box.d.ts +85 -0
- package/lib/types/ink/components/Box.d.ts.map +1 -0
- package/lib/types/ink/components/Box.js +22 -0
- package/lib/types/ink/components/Button.d.ts +37 -0
- package/lib/types/ink/components/Button.d.ts.map +1 -0
- package/lib/types/ink/components/Button.js +23 -0
- package/lib/types/ink/components/ClockContext.d.ts +17 -0
- package/lib/types/ink/components/ClockContext.d.ts.map +1 -0
- package/lib/types/ink/components/ClockContext.js +99 -0
- package/lib/types/ink/components/CursorDeclarationContext.d.ts +30 -0
- package/lib/types/ink/components/CursorDeclarationContext.d.ts.map +1 -0
- package/lib/types/ink/components/CursorDeclarationContext.js +6 -0
- package/lib/types/ink/components/ErrorOverview.d.ts +7 -0
- package/lib/types/ink/components/ErrorOverview.d.ts.map +1 -0
- package/lib/types/ink/components/ErrorOverview.js +49 -0
- package/lib/types/ink/components/Image.d.ts +28 -0
- package/lib/types/ink/components/Image.d.ts.map +1 -0
- package/lib/types/ink/components/Image.js +44 -0
- package/lib/types/ink/components/Link.d.ts +8 -0
- package/lib/types/ink/components/Link.d.ts.map +1 -0
- package/lib/types/ink/components/Link.js +7 -0
- package/lib/types/ink/components/Newline.d.ts +7 -0
- package/lib/types/ink/components/Newline.d.ts.map +1 -0
- package/lib/types/ink/components/Newline.js +5 -0
- package/lib/types/ink/components/NoSelect.d.ts +9 -0
- package/lib/types/ink/components/NoSelect.d.ts.map +1 -0
- package/lib/types/ink/components/NoSelect.js +6 -0
- package/lib/types/ink/components/RawAnsi.d.ts +9 -0
- package/lib/types/ink/components/RawAnsi.d.ts.map +1 -0
- package/lib/types/ink/components/RawAnsi.js +7 -0
- package/lib/types/ink/components/ScrollBox.d.ts +78 -0
- package/lib/types/ink/components/ScrollBox.d.ts.map +1 -0
- package/lib/types/ink/components/ScrollBox.js +309 -0
- package/lib/types/ink/components/Spacer.d.ts +4 -0
- package/lib/types/ink/components/Spacer.d.ts.map +1 -0
- package/lib/types/ink/components/Spacer.js +6 -0
- package/lib/types/ink/components/StdinContext.d.ts +32 -0
- package/lib/types/ink/components/StdinContext.d.ts.map +1 -0
- package/lib/types/ink/components/StdinContext.js +16 -0
- package/lib/types/ink/components/TerminalFocusContext.d.ts +11 -0
- package/lib/types/ink/components/TerminalFocusContext.d.ts.map +1 -0
- package/lib/types/ink/components/TerminalFocusContext.js +11 -0
- package/lib/types/ink/components/TerminalSizeContext.d.ts +6 -0
- package/lib/types/ink/components/TerminalSizeContext.d.ts.map +1 -0
- package/lib/types/ink/components/TerminalSizeContext.js +2 -0
- package/lib/types/ink/components/Text.d.ts +64 -0
- package/lib/types/ink/components/Text.d.ts.map +1 -0
- package/lib/types/ink/components/Text.js +19 -0
- package/lib/types/ink/constants.d.ts +12 -0
- package/lib/types/ink/constants.d.ts.map +1 -0
- package/lib/types/ink/constants.js +11 -0
- package/lib/types/ink/cursor.d.ts +11 -0
- package/lib/types/ink/cursor.d.ts.map +1 -0
- package/lib/types/ink/cursor.js +1 -0
- package/lib/types/ink/devtools.d.ts +7 -0
- package/lib/types/ink/devtools.d.ts.map +1 -0
- package/lib/types/ink/devtools.js +1 -0
- package/lib/types/ink/dom.d.ts +194 -0
- package/lib/types/ink/dom.d.ts.map +1 -0
- package/lib/types/ink/dom.js +424 -0
- package/lib/types/ink/events/click-event.d.ts +23 -0
- package/lib/types/ink/events/click-event.d.ts.map +1 -0
- package/lib/types/ink/events/click-event.js +33 -0
- package/lib/types/ink/events/context-menu-event.d.ts +19 -0
- package/lib/types/ink/events/context-menu-event.d.ts.map +1 -0
- package/lib/types/ink/events/context-menu-event.js +20 -0
- package/lib/types/ink/events/dispatcher.d.ts +63 -0
- package/lib/types/ink/events/dispatcher.d.ts.map +1 -0
- package/lib/types/ink/events/dispatcher.js +194 -0
- package/lib/types/ink/events/drag-event.d.ts +44 -0
- package/lib/types/ink/events/drag-event.d.ts.map +1 -0
- package/lib/types/ink/events/drag-event.js +39 -0
- package/lib/types/ink/events/emitter.d.ts +20 -0
- package/lib/types/ink/events/emitter.d.ts.map +1 -0
- package/lib/types/ink/events/emitter.js +43 -0
- package/lib/types/ink/events/event-handlers.d.ts +65 -0
- package/lib/types/ink/events/event-handlers.d.ts.map +1 -0
- package/lib/types/ink/events/event-handlers.js +40 -0
- package/lib/types/ink/events/event.d.ts +19 -0
- package/lib/types/ink/events/event.d.ts.map +1 -0
- package/lib/types/ink/events/event.js +22 -0
- package/lib/types/ink/events/focus-event.d.ts +19 -0
- package/lib/types/ink/events/focus-event.d.ts.map +1 -0
- package/lib/types/ink/events/focus-event.js +21 -0
- package/lib/types/ink/events/input-event.d.ts +72 -0
- package/lib/types/ink/events/input-event.d.ts.map +1 -0
- package/lib/types/ink/events/input-event.js +185 -0
- package/lib/types/ink/events/keyboard-event.d.ts +40 -0
- package/lib/types/ink/events/keyboard-event.d.ts.map +1 -0
- package/lib/types/ink/events/keyboard-event.js +65 -0
- package/lib/types/ink/events/paste-event.d.ts +11 -0
- package/lib/types/ink/events/paste-event.d.ts.map +1 -0
- package/lib/types/ink/events/paste-event.js +13 -0
- package/lib/types/ink/events/pointer-event.d.ts +61 -0
- package/lib/types/ink/events/pointer-event.d.ts.map +1 -0
- package/lib/types/ink/events/pointer-event.js +61 -0
- package/lib/types/ink/events/resize-event.d.ts +13 -0
- package/lib/types/ink/events/resize-event.d.ts.map +1 -0
- package/lib/types/ink/events/resize-event.js +16 -0
- package/lib/types/ink/events/terminal-event.d.ts +112 -0
- package/lib/types/ink/events/terminal-event.d.ts.map +1 -0
- package/lib/types/ink/events/terminal-event.js +131 -0
- package/lib/types/ink/events/terminal-focus-event.d.ts +21 -0
- package/lib/types/ink/events/terminal-focus-event.d.ts.map +1 -0
- package/lib/types/ink/events/terminal-focus-event.js +18 -0
- package/lib/types/ink/events/wheel-event.d.ts +17 -0
- package/lib/types/ink/events/wheel-event.d.ts.map +1 -0
- package/lib/types/ink/events/wheel-event.js +20 -0
- package/lib/types/ink/flush-tick.d.ts +26 -0
- package/lib/types/ink/flush-tick.d.ts.map +1 -0
- package/lib/types/ink/flush-tick.js +31 -0
- package/lib/types/ink/focus.d.ts +74 -0
- package/lib/types/ink/focus.d.ts.map +1 -0
- package/lib/types/ink/focus.js +188 -0
- package/lib/types/ink/frame.d.ts +128 -0
- package/lib/types/ink/frame.d.ts.map +1 -0
- package/lib/types/ink/frame.js +43 -0
- package/lib/types/ink/geometry-trace.d.ts +51 -0
- package/lib/types/ink/geometry-trace.d.ts.map +1 -0
- package/lib/types/ink/geometry-trace.js +83 -0
- package/lib/types/ink/get-max-width.d.ts +12 -0
- package/lib/types/ink/get-max-width.d.ts.map +1 -0
- package/lib/types/ink/get-max-width.js +12 -0
- package/lib/types/ink/hit-test.d.ts +181 -0
- package/lib/types/ink/hit-test.d.ts.map +1 -0
- package/lib/types/ink/hit-test.js +540 -0
- package/lib/types/ink/hooks/use-animation-frame.d.ts +27 -0
- package/lib/types/ink/hooks/use-animation-frame.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-animation-frame.js +48 -0
- package/lib/types/ink/hooks/use-app.d.ts +7 -0
- package/lib/types/ink/hooks/use-app.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-app.js +7 -0
- package/lib/types/ink/hooks/use-copy-on-select.d.ts +26 -0
- package/lib/types/ink/hooks/use-copy-on-select.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-copy-on-select.js +54 -0
- package/lib/types/ink/hooks/use-declared-cursor.d.ts +31 -0
- package/lib/types/ink/hooks/use-declared-cursor.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-declared-cursor.js +65 -0
- package/lib/types/ink/hooks/use-input.d.ts +41 -0
- package/lib/types/ink/hooks/use-input.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-input.js +81 -0
- package/lib/types/ink/hooks/use-interval.d.ts +23 -0
- package/lib/types/ink/hooks/use-interval.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-interval.js +58 -0
- package/lib/types/ink/hooks/use-search-highlight.d.ts +34 -0
- package/lib/types/ink/hooks/use-search-highlight.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-search-highlight.js +35 -0
- package/lib/types/ink/hooks/use-selection.d.ts +44 -0
- package/lib/types/ink/hooks/use-selection.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-selection.js +64 -0
- package/lib/types/ink/hooks/use-stdin.d.ts +8 -0
- package/lib/types/ink/hooks/use-stdin.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-stdin.js +8 -0
- package/lib/types/ink/hooks/use-tab-status.d.ts +18 -0
- package/lib/types/ink/hooks/use-tab-status.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-tab-status.js +58 -0
- package/lib/types/ink/hooks/use-terminal-focus.d.ts +11 -0
- package/lib/types/ink/hooks/use-terminal-focus.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-terminal-focus.js +15 -0
- package/lib/types/ink/hooks/use-terminal-images.d.ts +14 -0
- package/lib/types/ink/hooks/use-terminal-images.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-terminal-images.js +22 -0
- package/lib/types/ink/hooks/use-terminal-size.d.ts +6 -0
- package/lib/types/ink/hooks/use-terminal-size.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-terminal-size.js +12 -0
- package/lib/types/ink/hooks/use-terminal-title.d.ts +14 -0
- package/lib/types/ink/hooks/use-terminal-title.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-terminal-title.js +30 -0
- package/lib/types/ink/hooks/use-terminal-viewport.d.ts +32 -0
- package/lib/types/ink/hooks/use-terminal-viewport.d.ts.map +1 -0
- package/lib/types/ink/hooks/use-terminal-viewport.js +79 -0
- package/lib/types/ink/ink.d.ts +571 -0
- package/lib/types/ink/ink.d.ts.map +1 -0
- package/lib/types/ink/ink.js +2818 -0
- package/lib/types/ink/input-suppression.d.ts +20 -0
- package/lib/types/ink/input-suppression.d.ts.map +1 -0
- package/lib/types/ink/input-suppression.js +26 -0
- package/lib/types/ink/instances.d.ts +10 -0
- package/lib/types/ink/instances.d.ts.map +1 -0
- package/lib/types/ink/instances.js +13 -0
- package/lib/types/ink/kitty-graphics.d.ts +41 -0
- package/lib/types/ink/kitty-graphics.d.ts.map +1 -0
- package/lib/types/ink/kitty-graphics.js +229 -0
- package/lib/types/ink/layout/engine.d.ts +7 -0
- package/lib/types/ink/layout/engine.d.ts.map +1 -0
- package/lib/types/ink/layout/engine.js +8 -0
- package/lib/types/ink/layout/geometry.d.ts +86 -0
- package/lib/types/ink/layout/geometry.d.ts.map +1 -0
- package/lib/types/ink/layout/geometry.js +95 -0
- package/lib/types/ink/layout/node.d.ts +153 -0
- package/lib/types/ink/layout/node.d.ts.map +1 -0
- package/lib/types/ink/layout/node.js +72 -0
- package/lib/types/ink/layout/yoga.d.ts +70 -0
- package/lib/types/ink/layout/yoga.d.ts.map +1 -0
- package/lib/types/ink/layout/yoga.js +252 -0
- package/lib/types/ink/line-width-cache.d.ts +9 -0
- package/lib/types/ink/line-width-cache.d.ts.map +1 -0
- package/lib/types/ink/line-width-cache.js +45 -0
- package/lib/types/ink/log-update.d.ts +57 -0
- package/lib/types/ink/log-update.d.ts.map +1 -0
- package/lib/types/ink/log-update.js +1000 -0
- package/lib/types/ink/measure-element.d.ts +19 -0
- package/lib/types/ink/measure-element.d.ts.map +1 -0
- package/lib/types/ink/measure-element.js +10 -0
- package/lib/types/ink/measure-text.d.ts +13 -0
- package/lib/types/ink/measure-text.d.ts.map +1 -0
- package/lib/types/ink/measure-text.js +38 -0
- package/lib/types/ink/node-cache.d.ts +54 -0
- package/lib/types/ink/node-cache.d.ts.map +1 -0
- package/lib/types/ink/node-cache.js +45 -0
- package/lib/types/ink/optimizer.d.ts +18 -0
- package/lib/types/ink/optimizer.d.ts.map +1 -0
- package/lib/types/ink/optimizer.js +83 -0
- package/lib/types/ink/output.d.ts +300 -0
- package/lib/types/ink/output.d.ts.map +1 -0
- package/lib/types/ink/output.js +1205 -0
- package/lib/types/ink/parse-keypress.d.ts +217 -0
- package/lib/types/ink/parse-keypress.d.ts.map +1 -0
- package/lib/types/ink/parse-keypress.js +1550 -0
- package/lib/types/ink/reconciler.d.ts +43 -0
- package/lib/types/ink/reconciler.d.ts.map +1 -0
- package/lib/types/ink/reconciler.js +414 -0
- package/lib/types/ink/render-border.d.ts +41 -0
- package/lib/types/ink/render-border.d.ts.map +1 -0
- package/lib/types/ink/render-border.js +159 -0
- package/lib/types/ink/render-node-to-output.d.ts +199 -0
- package/lib/types/ink/render-node-to-output.d.ts.map +1 -0
- package/lib/types/ink/render-node-to-output.js +1758 -0
- package/lib/types/ink/render-to-screen.d.ts +65 -0
- package/lib/types/ink/render-to-screen.d.ts.map +1 -0
- package/lib/types/ink/render-to-screen.js +189 -0
- package/lib/types/ink/renderer.d.ts +34 -0
- package/lib/types/ink/renderer.d.ts.map +1 -0
- package/lib/types/ink/renderer.js +181 -0
- package/lib/types/ink/root.d.ts +109 -0
- package/lib/types/ink/root.d.ts.map +1 -0
- package/lib/types/ink/root.js +96 -0
- package/lib/types/ink/screen.d.ts +545 -0
- package/lib/types/ink/screen.d.ts.map +1 -0
- package/lib/types/ink/screen.js +1607 -0
- package/lib/types/ink/selection.d.ts +529 -0
- package/lib/types/ink/selection.d.ts.map +1 -0
- package/lib/types/ink/selection.js +1292 -0
- package/lib/types/ink/sixel-codec.d.ts +41 -0
- package/lib/types/ink/sixel-codec.d.ts.map +1 -0
- package/lib/types/ink/sixel-codec.js +128 -0
- package/lib/types/ink/sixel-graphics.d.ts +74 -0
- package/lib/types/ink/sixel-graphics.d.ts.map +1 -0
- package/lib/types/ink/sixel-graphics.js +498 -0
- package/lib/types/ink/sixel-worker.d.ts +2 -0
- package/lib/types/ink/sixel-worker.d.ts.map +1 -0
- package/lib/types/ink/sixel-worker.js +12 -0
- package/lib/types/ink/squash-text-nodes.d.ts +30 -0
- package/lib/types/ink/squash-text-nodes.d.ts.map +1 -0
- package/lib/types/ink/squash-text-nodes.js +63 -0
- package/lib/types/ink/stringWidth.d.ts +3 -0
- package/lib/types/ink/stringWidth.d.ts.map +1 -0
- package/lib/types/ink/stringWidth.js +248 -0
- package/lib/types/ink/styles.d.ts +346 -0
- package/lib/types/ink/styles.d.ts.map +1 -0
- package/lib/types/ink/styles.js +307 -0
- package/lib/types/ink/supports-hyperlinks.d.ts +20 -0
- package/lib/types/ink/supports-hyperlinks.d.ts.map +1 -0
- package/lib/types/ink/supports-hyperlinks.js +44 -0
- package/lib/types/ink/tabstops.d.ts +10 -0
- package/lib/types/ink/tabstops.d.ts.map +1 -0
- package/lib/types/ink/tabstops.js +47 -0
- package/lib/types/ink/terminal-focus-state.d.ts +35 -0
- package/lib/types/ink/terminal-focus-state.d.ts.map +1 -0
- package/lib/types/ink/terminal-focus-state.js +57 -0
- package/lib/types/ink/terminal-image-protocol.d.ts +4 -0
- package/lib/types/ink/terminal-image-protocol.d.ts.map +1 -0
- package/lib/types/ink/terminal-image-protocol.js +8 -0
- package/lib/types/ink/terminal-image.d.ts +102 -0
- package/lib/types/ink/terminal-image.d.ts.map +1 -0
- package/lib/types/ink/terminal-image.js +223 -0
- package/lib/types/ink/terminal-querier.d.ts +203 -0
- package/lib/types/ink/terminal-querier.d.ts.map +1 -0
- package/lib/types/ink/terminal-querier.js +286 -0
- package/lib/types/ink/terminal.d.ts +192 -0
- package/lib/types/ink/terminal.d.ts.map +1 -0
- package/lib/types/ink/terminal.js +436 -0
- package/lib/types/ink/termio/ansi.d.ts +75 -0
- package/lib/types/ink/termio/ansi.d.ts.map +1 -0
- package/lib/types/ink/termio/ansi.js +79 -0
- package/lib/types/ink/termio/csi.d.ts +263 -0
- package/lib/types/ink/termio/csi.d.ts.map +1 -0
- package/lib/types/ink/termio/csi.js +367 -0
- package/lib/types/ink/termio/dec.d.ts +61 -0
- package/lib/types/ink/termio/dec.d.ts.map +1 -0
- package/lib/types/ink/termio/dec.js +76 -0
- package/lib/types/ink/termio/esc.d.ts +15 -0
- package/lib/types/ink/termio/esc.d.ts.map +1 -0
- package/lib/types/ink/termio/esc.js +57 -0
- package/lib/types/ink/termio/osc.d.ts +198 -0
- package/lib/types/ink/termio/osc.d.ts.map +1 -0
- package/lib/types/ink/termio/osc.js +475 -0
- package/lib/types/ink/termio/parser.d.ts +46 -0
- package/lib/types/ink/termio/parser.d.ts.map +1 -0
- package/lib/types/ink/termio/parser.js +366 -0
- package/lib/types/ink/termio/sgr.d.ts +17 -0
- package/lib/types/ink/termio/sgr.d.ts.map +1 -0
- package/lib/types/ink/termio/sgr.js +300 -0
- package/lib/types/ink/termio/tokenize.d.ts +56 -0
- package/lib/types/ink/termio/tokenize.d.ts.map +1 -0
- package/lib/types/ink/termio/tokenize.js +290 -0
- package/lib/types/ink/termio/types.d.ts +211 -0
- package/lib/types/ink/termio/types.d.ts.map +1 -0
- package/lib/types/ink/termio/types.js +68 -0
- package/lib/types/ink/termio.d.ts +25 -0
- package/lib/types/ink/termio.d.ts.map +1 -0
- package/lib/types/ink/termio.js +24 -0
- package/lib/types/ink/timeline-rail.d.ts +134 -0
- package/lib/types/ink/timeline-rail.d.ts.map +1 -0
- package/lib/types/ink/timeline-rail.js +175 -0
- package/lib/types/ink/transcript-highlight.d.ts +25 -0
- package/lib/types/ink/transcript-highlight.d.ts.map +1 -0
- package/lib/types/ink/transcript-highlight.js +82 -0
- package/lib/types/ink/truncateToWidth.d.ts +7 -0
- package/lib/types/ink/truncateToWidth.d.ts.map +1 -0
- package/lib/types/ink/truncateToWidth.js +18 -0
- package/lib/types/ink/update-overflow-guard.d.ts +62 -0
- package/lib/types/ink/update-overflow-guard.d.ts.map +1 -0
- package/lib/types/ink/update-overflow-guard.js +164 -0
- package/lib/types/ink/useTerminalNotification.d.ts +45 -0
- package/lib/types/ink/useTerminalNotification.d.ts.map +1 -0
- package/lib/types/ink/useTerminalNotification.js +70 -0
- package/lib/types/ink/warn.d.ts +7 -0
- package/lib/types/ink/warn.d.ts.map +1 -0
- package/lib/types/ink/warn.js +15 -0
- package/lib/types/ink/widest-line.d.ts +7 -0
- package/lib/types/ink/widest-line.d.ts.map +1 -0
- package/lib/types/ink/widest-line.js +19 -0
- package/lib/types/ink/wrap-text.d.ts +10 -0
- package/lib/types/ink/wrap-text.d.ts.map +1 -0
- package/lib/types/ink/wrap-text.js +103 -0
- package/lib/types/ink/wrapAnsi.d.ts +17 -0
- package/lib/types/ink/wrapAnsi.d.ts.map +1 -0
- package/lib/types/ink/wrapAnsi.js +38 -0
- package/lib/types/jsx-runtime.d.ts +2 -0
- package/lib/types/jsx-runtime.d.ts.map +1 -0
- package/lib/types/jsx-runtime.js +13 -0
- package/lib/types/migrationPrefs.d.ts +60 -0
- package/lib/types/migrationPrefs.d.ts.map +1 -0
- package/lib/types/migrationPrefs.js +97 -0
- package/lib/types/minimalMode.d.ts +13 -0
- package/lib/types/minimalMode.d.ts.map +1 -0
- package/lib/types/minimalMode.js +17 -0
- package/lib/types/modelGroups.d.ts +72 -0
- package/lib/types/modelGroups.d.ts.map +1 -0
- package/lib/types/modelGroups.js +97 -0
- package/lib/types/modelPrefs.d.ts +37 -0
- package/lib/types/modelPrefs.d.ts.map +1 -0
- package/lib/types/modelPrefs.js +66 -0
- package/lib/types/modelRecents.d.ts +39 -0
- package/lib/types/modelRecents.d.ts.map +1 -0
- package/lib/types/modelRecents.js +97 -0
- package/lib/types/modelRoute.d.ts +87 -0
- package/lib/types/modelRoute.d.ts.map +1 -0
- package/lib/types/modelRoute.js +125 -0
- package/lib/types/native-ts/yoga-layout/enums.d.ts +183 -0
- package/lib/types/native-ts/yoga-layout/enums.d.ts.map +1 -0
- package/lib/types/native-ts/yoga-layout/enums.js +150 -0
- package/lib/types/native-ts/yoga-layout/index.d.ts +804 -0
- package/lib/types/native-ts/yoga-layout/index.d.ts.map +1 -0
- package/lib/types/native-ts/yoga-layout/index.js +2614 -0
- package/lib/types/oauth.d.ts +15 -0
- package/lib/types/oauth.d.ts.map +1 -0
- package/lib/types/oauth.js +14 -0
- package/lib/types/plugin-host.d.ts +14 -0
- package/lib/types/plugin-host.d.ts.map +1 -0
- package/lib/types/plugin-host.js +19 -0
- package/lib/types/presetPrefs.d.ts +30 -0
- package/lib/types/presetPrefs.d.ts.map +1 -0
- package/lib/types/presetPrefs.js +66 -0
- package/lib/types/reload.d.ts +109 -0
- package/lib/types/reload.d.ts.map +1 -0
- package/lib/types/reload.js +118 -0
- package/lib/types/scenes.d.ts +4 -0
- package/lib/types/scenes.d.ts.map +1 -0
- package/lib/types/scenes.js +4 -0
- package/lib/types/screens/Chat.d.ts +82 -0
- package/lib/types/screens/Chat.d.ts.map +1 -0
- package/lib/types/screens/Chat.js +4299 -0
- package/lib/types/screens/SessionSupervisor.d.ts +84 -0
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -0
- package/lib/types/screens/SessionSupervisor.js +350 -0
- package/lib/types/screens/SessionTree.d.ts +27 -0
- package/lib/types/screens/SessionTree.d.ts.map +1 -0
- package/lib/types/screens/SessionTree.js +583 -0
- package/lib/types/screens/Settings.d.ts +22 -0
- package/lib/types/screens/Settings.d.ts.map +1 -0
- package/lib/types/screens/Settings.js +592 -0
- package/lib/types/screens/StatusLine.d.ts +48 -0
- package/lib/types/screens/StatusLine.d.ts.map +1 -0
- package/lib/types/screens/StatusLine.js +453 -0
- package/lib/types/screens/StatusMetrics.d.ts +176 -0
- package/lib/types/screens/StatusMetrics.d.ts.map +1 -0
- package/lib/types/screens/StatusMetrics.js +372 -0
- package/lib/types/screens/TrajectoryScene.d.ts +16 -0
- package/lib/types/screens/TrajectoryScene.d.ts.map +1 -0
- package/lib/types/screens/TrajectoryScene.js +374 -0
- package/lib/types/screens/chatOverlay.d.ts +267 -0
- package/lib/types/screens/chatOverlay.d.ts.map +1 -0
- package/lib/types/screens/chatOverlay.js +132 -0
- package/lib/types/screens/sessionSupervisor/model.d.ts +83 -0
- package/lib/types/screens/sessionSupervisor/model.d.ts.map +1 -0
- package/lib/types/screens/sessionSupervisor/model.js +69 -0
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +120 -0
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -0
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +639 -0
- package/lib/types/sessionHistory.d.ts +59 -0
- package/lib/types/sessionHistory.d.ts.map +1 -0
- package/lib/types/sessionHistory.js +223 -0
- package/lib/types/sessionModes.d.ts +83 -0
- package/lib/types/sessionModes.d.ts.map +1 -0
- package/lib/types/sessionModes.js +141 -0
- package/lib/types/sessionMounts.d.ts +272 -0
- package/lib/types/sessionMounts.d.ts.map +1 -0
- package/lib/types/sessionMounts.js +706 -0
- package/lib/types/sessionPins.d.ts +33 -0
- package/lib/types/sessionPins.d.ts.map +1 -0
- package/lib/types/sessionPins.js +181 -0
- package/lib/types/sessions/format.d.ts +125 -0
- package/lib/types/sessions/format.d.ts.map +1 -0
- package/lib/types/sessions/format.js +276 -0
- package/lib/types/sessions/resumeFailure.d.ts +38 -0
- package/lib/types/sessions/resumeFailure.d.ts.map +1 -0
- package/lib/types/sessions/resumeFailure.js +58 -0
- package/lib/types/sessions/view.d.ts +162 -0
- package/lib/types/sessions/view.d.ts.map +1 -0
- package/lib/types/sessions/view.js +350 -0
- package/lib/types/settings-sections.d.ts +4 -0
- package/lib/types/settings-sections.d.ts.map +1 -0
- package/lib/types/settings-sections.js +4 -0
- package/lib/types/terminal-utils/cliHighlight.d.ts +20 -0
- package/lib/types/terminal-utils/cliHighlight.d.ts.map +1 -0
- package/lib/types/terminal-utils/cliHighlight.js +53 -0
- package/lib/types/terminal-utils/figures.d.ts +26 -0
- package/lib/types/terminal-utils/figures.d.ts.map +1 -0
- package/lib/types/terminal-utils/figures.js +36 -0
- package/lib/types/terminal-utils/format.d.ts +35 -0
- package/lib/types/terminal-utils/format.d.ts.map +1 -0
- package/lib/types/terminal-utils/format.js +63 -0
- package/lib/types/terminal-utils/hash.d.ts +25 -0
- package/lib/types/terminal-utils/hash.d.ts.map +1 -0
- package/lib/types/terminal-utils/hash.js +41 -0
- package/lib/types/terminal-utils/hyperlink.d.ts +27 -0
- package/lib/types/terminal-utils/hyperlink.d.ts.map +1 -0
- package/lib/types/terminal-utils/hyperlink.js +70 -0
- package/lib/types/terminal-utils/markdown.d.ts +58 -0
- package/lib/types/terminal-utils/markdown.d.ts.map +1 -0
- package/lib/types/terminal-utils/markdown.js +441 -0
- package/lib/types/terminal-utils/mermaid.d.ts +44 -0
- package/lib/types/terminal-utils/mermaid.d.ts.map +1 -0
- package/lib/types/terminal-utils/mermaid.js +83 -0
- package/lib/types/terminal-utils/sessionColors.d.ts +27 -0
- package/lib/types/terminal-utils/sessionColors.d.ts.map +1 -0
- package/lib/types/terminal-utils/sessionColors.js +39 -0
- package/lib/types/terminal-utils/spinnerVerbs.d.ts +3 -0
- package/lib/types/terminal-utils/spinnerVerbs.d.ts.map +1 -0
- package/lib/types/terminal-utils/spinnerVerbs.js +21 -0
- package/lib/types/terminal-utils/syntaxRuns.d.ts +16 -0
- package/lib/types/terminal-utils/syntaxRuns.d.ts.map +1 -0
- package/lib/types/terminal-utils/syntaxRuns.js +79 -0
- package/lib/types/terminal-utils/syntaxTheme.d.ts +12 -0
- package/lib/types/terminal-utils/syntaxTheme.d.ts.map +1 -0
- package/lib/types/terminal-utils/syntaxTheme.js +76 -0
- package/lib/types/theme.d.ts +201 -0
- package/lib/types/theme.d.ts.map +1 -0
- package/lib/types/theme.js +525 -0
- package/lib/types/themeCatalog.d.ts +36 -0
- package/lib/types/themeCatalog.d.ts.map +1 -0
- package/lib/types/themeCatalog.js +159 -0
- package/lib/types/themePrefs.d.ts +28 -0
- package/lib/types/themePrefs.d.ts.map +1 -0
- package/lib/types/themePrefs.js +59 -0
- package/lib/types/tips.d.ts +30 -0
- package/lib/types/tips.d.ts.map +1 -0
- package/lib/types/tips.js +899 -0
- package/lib/types/trajectory/effortIgnition.d.ts +66 -0
- package/lib/types/trajectory/effortIgnition.d.ts.map +1 -0
- package/lib/types/trajectory/effortIgnition.js +142 -0
- package/lib/types/trajectory/format.d.ts +100 -0
- package/lib/types/trajectory/format.d.ts.map +1 -0
- package/lib/types/trajectory/format.js +213 -0
- package/lib/types/trajectory/motion.d.ts +99 -0
- package/lib/types/trajectory/motion.d.ts.map +1 -0
- package/lib/types/trajectory/motion.js +143 -0
- package/lib/types/trajectory/query.d.ts +83 -0
- package/lib/types/trajectory/query.d.ts.map +1 -0
- package/lib/types/trajectory/query.js +187 -0
- package/lib/types/trajectoryPrefs.d.ts +36 -0
- package/lib/types/trajectoryPrefs.d.ts.map +1 -0
- package/lib/types/trajectoryPrefs.js +65 -0
- package/lib/types/tuiDisplayPrefs.d.ts +49 -0
- package/lib/types/tuiDisplayPrefs.d.ts.map +1 -0
- package/lib/types/tuiDisplayPrefs.js +168 -0
- package/lib/types/ui.d.ts +29 -0
- package/lib/types/ui.d.ts.map +1 -0
- package/lib/types/ui.js +25 -0
- package/lib/types/update.d.ts +550 -0
- package/lib/types/update.d.ts.map +1 -0
- package/lib/types/update.js +1751 -0
- package/lib/types/utils/clipboard.d.ts +122 -0
- package/lib/types/utils/clipboard.d.ts.map +1 -0
- package/lib/types/utils/clipboard.js +577 -0
- 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/debug.d.ts +18 -0
- package/lib/types/utils/debug.d.ts.map +1 -0
- package/lib/types/utils/debug.js +37 -0
- package/lib/types/utils/earlyInput.d.ts +6 -0
- package/lib/types/utils/earlyInput.d.ts.map +1 -0
- package/lib/types/utils/earlyInput.js +5 -0
- package/lib/types/utils/env.d.ts +8 -0
- package/lib/types/utils/env.d.ts.map +1 -0
- package/lib/types/utils/env.js +7 -0
- package/lib/types/utils/envUtils.d.ts +8 -0
- package/lib/types/utils/envUtils.d.ts.map +1 -0
- package/lib/types/utils/envUtils.js +13 -0
- package/lib/types/utils/execFileNoThrow.d.ts +17 -0
- package/lib/types/utils/execFileNoThrow.d.ts.map +1 -0
- package/lib/types/utils/execFileNoThrow.js +65 -0
- package/lib/types/utils/externalEditor.d.ts +116 -0
- package/lib/types/utils/externalEditor.d.ts.map +1 -0
- package/lib/types/utils/externalEditor.js +270 -0
- package/lib/types/utils/fileSuggestions.d.ts +12 -0
- package/lib/types/utils/fileSuggestions.d.ts.map +1 -0
- package/lib/types/utils/fileSuggestions.js +40 -0
- package/lib/types/utils/fileTarget.d.ts +46 -0
- package/lib/types/utils/fileTarget.d.ts.map +1 -0
- package/lib/types/utils/fileTarget.js +178 -0
- 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/lib/types/utils/fullscreen.d.ts +7 -0
- package/lib/types/utils/fullscreen.d.ts.map +1 -0
- package/lib/types/utils/fullscreen.js +9 -0
- package/lib/types/utils/imageResize.d.ts +90 -0
- package/lib/types/utils/imageResize.d.ts.map +1 -0
- package/lib/types/utils/imageResize.js +272 -0
- package/lib/types/utils/intl.d.ts +7 -0
- package/lib/types/utils/intl.d.ts.map +1 -0
- package/lib/types/utils/intl.js +9 -0
- package/lib/types/utils/keymap.d.ts +138 -0
- package/lib/types/utils/keymap.d.ts.map +1 -0
- package/lib/types/utils/keymap.js +351 -0
- package/lib/types/utils/loaded-context.d.ts +25 -0
- package/lib/types/utils/loaded-context.d.ts.map +1 -0
- package/lib/types/utils/loaded-context.js +72 -0
- package/lib/types/utils/log.d.ts +7 -0
- package/lib/types/utils/log.d.ts.map +1 -0
- package/lib/types/utils/log.js +9 -0
- package/lib/types/utils/mentions.d.ts +53 -0
- package/lib/types/utils/mentions.d.ts.map +1 -0
- package/lib/types/utils/mentions.js +133 -0
- package/lib/types/utils/modifiers.d.ts +43 -0
- package/lib/types/utils/modifiers.d.ts.map +1 -0
- package/lib/types/utils/modifiers.js +45 -0
- package/lib/types/utils/narration.d.ts +11 -0
- package/lib/types/utils/narration.d.ts.map +1 -0
- package/lib/types/utils/narration.js +16 -0
- package/lib/types/utils/openExternal.d.ts +50 -0
- package/lib/types/utils/openExternal.d.ts.map +1 -0
- package/lib/types/utils/openExternal.js +170 -0
- package/lib/types/utils/pastedImagePath.d.ts +51 -0
- package/lib/types/utils/pastedImagePath.d.ts.map +1 -0
- package/lib/types/utils/pastedImagePath.js +194 -0
- package/lib/types/utils/paths.d.ts +16 -0
- package/lib/types/utils/paths.d.ts.map +1 -0
- package/lib/types/utils/paths.js +19 -0
- package/lib/types/utils/semver.d.ts +9 -0
- package/lib/types/utils/semver.d.ts.map +1 -0
- package/lib/types/utils/semver.js +24 -0
- package/lib/types/utils/shellQuote.d.ts +14 -0
- package/lib/types/utils/shellQuote.d.ts.map +1 -0
- package/lib/types/utils/shellQuote.js +39 -0
- package/lib/types/utils/sliceAnsi.d.ts +12 -0
- package/lib/types/utils/sliceAnsi.d.ts.map +1 -0
- package/lib/types/utils/sliceAnsi.js +79 -0
- package/lib/types/utils/truncateMiddle.d.ts +9 -0
- package/lib/types/utils/truncateMiddle.d.ts.map +1 -0
- package/lib/types/utils/truncateMiddle.js +28 -0
- package/lib/types/utils/urlGuard.d.ts +28 -0
- package/lib/types/utils/urlGuard.d.ts.map +1 -0
- package/lib/types/utils/urlGuard.js +21 -0
- package/lib/types/utils/workspaceRoot.d.ts +21 -0
- package/lib/types/utils/workspaceRoot.d.ts.map +1 -0
- package/lib/types/utils/workspaceRoot.js +47 -0
- package/lib/types/working-activity.d.ts +32 -0
- package/lib/types/working-activity.d.ts.map +1 -0
- package/lib/types/working-activity.js +38 -0
- package/lib/types/workspaces.d.ts +5 -0
- package/lib/types/workspaces.d.ts.map +1 -0
- package/lib/types/workspaces.js +4 -0
- package/node_modules/@askdkc/dsh-auth/LICENSE +21 -0
- package/node_modules/@askdkc/dsh-auth/README.ja.md +164 -0
- package/node_modules/@askdkc/dsh-auth/README.md +163 -0
- package/node_modules/@askdkc/dsh-auth/cordis.patch.yml +11 -0
- package/node_modules/@askdkc/dsh-auth/dsh-plugin.json +44 -0
- package/node_modules/@askdkc/dsh-auth/lib/command.d.ts +14 -0
- package/node_modules/@askdkc/dsh-auth/lib/command.js +70 -0
- package/node_modules/@askdkc/dsh-auth/lib/credentials.d.ts +63 -0
- package/node_modules/@askdkc/dsh-auth/lib/credentials.js +204 -0
- package/node_modules/@askdkc/dsh-auth/lib/custom-profiles.d.ts +26 -0
- package/node_modules/@askdkc/dsh-auth/lib/custom-profiles.js +142 -0
- package/node_modules/@askdkc/dsh-auth/lib/index.d.ts +96 -0
- package/node_modules/@askdkc/dsh-auth/lib/index.js +263 -0
- package/node_modules/@askdkc/dsh-auth/lib/interaction.d.ts +68 -0
- package/node_modules/@askdkc/dsh-auth/lib/interaction.js +193 -0
- package/node_modules/@askdkc/dsh-auth/lib/nous-oauth.d.ts +5 -0
- package/node_modules/@askdkc/dsh-auth/lib/nous-oauth.js +112 -0
- package/node_modules/@askdkc/dsh-auth/lib/opener.d.ts +32 -0
- package/node_modules/@askdkc/dsh-auth/lib/opener.js +101 -0
- package/node_modules/@askdkc/dsh-auth/lib/pi-ai.d.ts +23 -0
- package/node_modules/@askdkc/dsh-auth/lib/pi-ai.js +27 -0
- package/node_modules/@askdkc/dsh-auth/lib/profiles.d.ts +45 -0
- package/node_modules/@askdkc/dsh-auth/lib/profiles.js +110 -0
- package/node_modules/@askdkc/dsh-auth/lib/service.d.ts +80 -0
- package/node_modules/@askdkc/dsh-auth/lib/service.js +224 -0
- package/node_modules/@askdkc/dsh-auth/package.json +70 -0
- package/node_modules/@dsh-std/command/CHANGELOG.md +8 -0
- package/node_modules/@dsh-std/command/LICENSE +21 -0
- package/node_modules/@dsh-std/command/README.md +26 -0
- package/node_modules/@dsh-std/command/README.zh.md +28 -0
- package/node_modules/@dsh-std/command/lib/index.d.ts +144 -0
- package/node_modules/@dsh-std/command/lib/index.d.ts.map +1 -0
- package/node_modules/@dsh-std/command/lib/index.js +252 -0
- package/node_modules/@dsh-std/command/lib/index.js.map +1 -0
- package/node_modules/@dsh-std/command/package.json +22 -0
- package/node_modules/@dsh-std/connection/CHANGELOG.md +8 -0
- package/node_modules/@dsh-std/connection/LICENSE +21 -0
- package/node_modules/@dsh-std/connection/README.md +42 -0
- package/node_modules/@dsh-std/connection/README.zh.md +42 -0
- package/node_modules/@dsh-std/connection/lib/connection-CdGcSQnu.d.ts +125 -0
- package/node_modules/@dsh-std/connection/lib/connection-CdGcSQnu.d.ts.map +1 -0
- package/node_modules/@dsh-std/connection/lib/index.d.ts +89 -0
- package/node_modules/@dsh-std/connection/lib/index.d.ts.map +1 -0
- package/node_modules/@dsh-std/connection/lib/index.js +158 -0
- package/node_modules/@dsh-std/connection/lib/index.js.map +1 -0
- package/node_modules/@dsh-std/connection/lib/memory.d.ts +24 -0
- package/node_modules/@dsh-std/connection/lib/memory.d.ts.map +1 -0
- package/node_modules/@dsh-std/connection/lib/memory.js +258 -0
- package/node_modules/@dsh-std/connection/lib/memory.js.map +1 -0
- package/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js +226 -0
- package/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js.map +1 -0
- package/node_modules/@dsh-std/connection/package.json +20 -0
- package/node_modules/@dsh-std/core/CHANGELOG.md +8 -0
- package/node_modules/@dsh-std/core/LICENSE +21 -0
- package/node_modules/@dsh-std/core/README.md +13 -0
- package/node_modules/@dsh-std/core/README.zh.md +13 -0
- package/node_modules/@dsh-std/core/lib/index.d.ts +112 -0
- package/node_modules/@dsh-std/core/lib/index.d.ts.map +1 -0
- package/node_modules/@dsh-std/core/lib/index.js +424 -0
- package/node_modules/@dsh-std/core/lib/index.js.map +1 -0
- package/node_modules/@dsh-std/core/package.json +21 -0
- package/node_modules/@dsh-std/manifest/CHANGELOG.md +9 -0
- package/node_modules/@dsh-std/manifest/LICENSE +21 -0
- package/node_modules/@dsh-std/manifest/README.md +5 -0
- package/node_modules/@dsh-std/manifest/README.zh.md +5 -0
- package/node_modules/@dsh-std/manifest/lib/index.d.ts +182 -0
- package/node_modules/@dsh-std/manifest/lib/index.d.ts.map +1 -0
- package/node_modules/@dsh-std/manifest/lib/index.js +625 -0
- package/node_modules/@dsh-std/manifest/lib/index.js.map +1 -0
- package/node_modules/@dsh-std/manifest/package.json +20 -0
- package/node_modules/@dsh-std/manifest/schema/dsh-plugin-0.15.schema.json +144 -0
- package/node_modules/@dsh-std/messages/CHANGELOG.md +8 -0
- package/node_modules/@dsh-std/messages/LICENSE +21 -0
- package/node_modules/@dsh-std/messages/README.md +5 -0
- package/node_modules/@dsh-std/messages/README.zh.md +7 -0
- package/node_modules/@dsh-std/messages/lib/index.d.ts +50 -0
- package/node_modules/@dsh-std/messages/lib/index.d.ts.map +1 -0
- package/node_modules/@dsh-std/messages/lib/index.js +151 -0
- package/node_modules/@dsh-std/messages/lib/index.js.map +1 -0
- package/node_modules/@dsh-std/messages/package.json +20 -0
- package/node_modules/@dsh-std/messages/schema/message-observer-envelope-0.15.schema.json +54 -0
- package/node_modules/@dsh-std/presentation/CHANGELOG.md +9 -0
- package/node_modules/@dsh-std/presentation/LICENSE +21 -0
- package/node_modules/@dsh-std/presentation/README.md +27 -0
- package/node_modules/@dsh-std/presentation/README.zh.md +29 -0
- package/node_modules/@dsh-std/presentation/lib/callback.d.ts +2 -0
- package/node_modules/@dsh-std/presentation/lib/callback.js +179 -0
- package/node_modules/@dsh-std/presentation/lib/callback.js.map +1 -0
- package/node_modules/@dsh-std/presentation/lib/index.d.ts +262 -0
- package/node_modules/@dsh-std/presentation/lib/index.d.ts.map +1 -0
- package/node_modules/@dsh-std/presentation/lib/index.js +550 -0
- package/node_modules/@dsh-std/presentation/lib/index.js.map +1 -0
- package/node_modules/@dsh-std/presentation/lib/interaction.d.ts +2 -0
- package/node_modules/@dsh-std/presentation/lib/interaction.js +2 -0
- package/node_modules/@dsh-std/presentation/lib/operations.d.ts +2 -0
- package/node_modules/@dsh-std/presentation/lib/operations.js +2 -0
- package/node_modules/@dsh-std/presentation/package.json +25 -0
- package/node_modules/@dsh-std/storage/CHANGELOG.md +8 -0
- package/node_modules/@dsh-std/storage/LICENSE +21 -0
- package/node_modules/@dsh-std/storage/README.md +5 -0
- package/node_modules/@dsh-std/storage/README.zh.md +7 -0
- package/node_modules/@dsh-std/storage/lib/index.d.ts +48 -0
- package/node_modules/@dsh-std/storage/lib/index.d.ts.map +1 -0
- package/node_modules/@dsh-std/storage/lib/index.js +104 -0
- package/node_modules/@dsh-std/storage/lib/index.js.map +1 -0
- package/node_modules/@dsh-std/storage/package.json +20 -0
- package/node_modules/@dsh-std/storage/schema/local-storage-0.15.schema.json +56 -0
- package/package.json +492 -0
- package/presets/liangshen/.dsh-tui-managed.json +5 -0
- package/presets/liangshen/agent.cordis.yml +425 -0
- package/presets/liangshen/compaction-epoch.mjs +83 -0
- package/presets/liangshen/custom-bash.mjs +301 -0
- package/presets/liangshen/instruction-hint.mjs +190 -0
- package/presets/liangshen/preset.yml +3 -0
- package/presets/liangshen/session-events.mjs +8 -0
- package/presets/liangshen/skill-search.mjs +141 -0
- package/presets/liangshen/tool-bootstrap.mjs +300 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/CHANGELOG.md +8 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/LICENSE +21 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/README.md +42 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/README.zh.md +42 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/connection-CdGcSQnu.d.ts +125 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/connection-CdGcSQnu.d.ts.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/index.d.ts +89 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/index.js +158 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/memory.d.ts +24 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/memory.d.ts.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/memory.js +258 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/memory.js.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js +226 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/connection/package.json +20 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/CHANGELOG.md +8 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/LICENSE +21 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/README.md +13 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/README.zh.md +13 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/lib/index.d.ts +112 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/lib/index.js +424 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/core/package.json +21 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/CHANGELOG.md +9 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/LICENSE +21 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/README.md +5 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/README.zh.md +5 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/lib/index.d.ts +182 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/lib/index.js +625 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/package.json +20 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/manifest/schema/dsh-plugin-0.15.schema.json +144 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/CHANGELOG.md +9 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/LICENSE +21 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/README.md +27 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/README.zh.md +29 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/callback.d.ts +2 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/callback.js +179 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/callback.js.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/index.d.ts +262 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/index.js +550 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/interaction.d.ts +2 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/interaction.js +2 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/operations.d.ts +2 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/lib/operations.js +2 -0
- package/vendor/dsh-std/packages/command/node_modules/@dsh-std/presentation/package.json +25 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/CHANGELOG.md +8 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/LICENSE +21 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/README.md +13 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/README.zh.md +13 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/lib/index.d.ts +112 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/lib/index.js +424 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/connection/node_modules/@dsh-std/core/package.json +21 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/CHANGELOG.md +8 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/LICENSE +21 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/README.md +13 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/README.zh.md +13 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/lib/index.d.ts +112 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/lib/index.js +424 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/manifest/node_modules/@dsh-std/core/package.json +21 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/CHANGELOG.md +8 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/LICENSE +21 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/README.md +13 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/README.zh.md +13 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/lib/index.d.ts +112 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/lib/index.js +424 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/messages/node_modules/@dsh-std/core/package.json +21 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/CHANGELOG.md +8 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/LICENSE +21 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/README.md +42 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/README.zh.md +42 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/connection-CdGcSQnu.d.ts +125 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/connection-CdGcSQnu.d.ts.map +1 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/index.d.ts +89 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/index.js +158 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/memory.d.ts +24 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/memory.d.ts.map +1 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/memory.js +258 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/memory.js.map +1 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js +226 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/lib/resolve-3X6ausgz.js.map +1 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/connection/package.json +20 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/CHANGELOG.md +8 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/LICENSE +21 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/README.md +13 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/README.zh.md +13 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/lib/index.d.ts +112 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/lib/index.js +424 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/presentation/node_modules/@dsh-std/core/package.json +21 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/CHANGELOG.md +8 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/LICENSE +21 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/README.md +13 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/README.zh.md +13 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/lib/index.d.ts +112 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/lib/index.d.ts.map +1 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/lib/index.js +424 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/lib/index.js.map +1 -0
- package/vendor/dsh-std/packages/storage/node_modules/@dsh-std/core/package.json +21 -0
|
@@ -0,0 +1,1205 @@
|
|
|
1
|
+
import { ansiCodesToString, styledCharsFromTokens, tokenize, } from '@alcalzone/ansi-tokenize';
|
|
2
|
+
import { logForDebugging } from '../utils/debug.js';
|
|
3
|
+
import { getGraphemeSegmenter } from '../utils/intl.js';
|
|
4
|
+
import sliceAnsi from '../utils/sliceAnsi.js';
|
|
5
|
+
import { reorderBidi } from './bidi.js';
|
|
6
|
+
import { unionRect } from './layout/geometry.js';
|
|
7
|
+
import { blitRegion, cellRunSpan, createCellRun, extractHyperlinkFromStyles, filterOutHyperlinkStyles, markNoSelectRegion, OSC8_PREFIX, shadeRegion, recordCellRunEntry, recordSpacerRunEntry, replayCellRun, resetScreen, setCellAt, shiftRows, } from './screen.js';
|
|
8
|
+
import { stringWidth } from './stringWidth.js';
|
|
9
|
+
import { expandTabs } from './tabstops.js';
|
|
10
|
+
import { TERMINAL_IMAGE_MAX_CELLS, TERMINAL_IMAGE_MAX_FRAME_BYTES, TERMINAL_IMAGE_MAX_PLACEMENTS, } from './terminal-image.js';
|
|
11
|
+
import { widestLine } from './widest-line.js';
|
|
12
|
+
/**
|
|
13
|
+
* charCache bounds. The entry-count cap alone was not enough: a streaming
|
|
14
|
+
* line produces a NEW cache key on every frame, and each entry's cost is
|
|
15
|
+
* proportional to the line length (one object per character, plus the key
|
|
16
|
+
* string itself). A 16384-entry cache of 80KB-line entries is tens of GB —
|
|
17
|
+
* the process OOMs long before reaching the count cap. Two extra guards:
|
|
18
|
+
*
|
|
19
|
+
* 1. Lines longer than MAX_CACHEABLE_LINE are never cached. During
|
|
20
|
+
* streaming the growing last line changes every frame, so a cached
|
|
21
|
+
* entry would be used for exactly one frame — pure cost, zero hits.
|
|
22
|
+
* Long lines are also rare in settled transcripts (minified code,
|
|
23
|
+
* base64, URLs), so skipping them barely affects the hit rate.
|
|
24
|
+
* 2. A byte budget (total characters of cached keys) caps retained
|
|
25
|
+
* memory regardless of the entry size distribution.
|
|
26
|
+
*
|
|
27
|
+
* Keys are detached from their parent string before caching: a line
|
|
28
|
+
* sliced out of a large streaming buffer is a V8 SlicedString that pins
|
|
29
|
+
* the whole parent, turning one 200-char entry into a 100KB retention.
|
|
30
|
+
*/
|
|
31
|
+
const MAX_CACHEABLE_LINE = 500;
|
|
32
|
+
const CHAR_CACHE_MAX_ENTRIES = 16384;
|
|
33
|
+
const CHAR_CACHE_MAX_CHARS = 100_000;
|
|
34
|
+
/** Packed-run line cap: runs are three integers per cell (no per-char
|
|
35
|
+
* objects like charCache entries), so long ANSI-art lines (the whale
|
|
36
|
+
* logo, ~700 chars) are worth caching — they would otherwise
|
|
37
|
+
* re-tokenize and re-cluster every frame. */
|
|
38
|
+
const PACKED_MAX_LINE = 4000;
|
|
39
|
+
/** Copy a string into a fresh flat string with no parent references. */
|
|
40
|
+
function detachString(s) {
|
|
41
|
+
// Buffer round-trip guarantees a newly allocated flat string; cheaper
|
|
42
|
+
// tricks (' '+s).slice(1) are optimized back into SlicedStrings by V8.
|
|
43
|
+
return Buffer.from(s, 'utf8').toString('utf8');
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Bounded cache of line → clustered characters. Enforces all three guards
|
|
47
|
+
* (line-length threshold, entry count, byte budget) at insertion time, so
|
|
48
|
+
* no caller can accidentally grow it unboundedly.
|
|
49
|
+
*/
|
|
50
|
+
export class CharCache {
|
|
51
|
+
/**
|
|
52
|
+
* LRU of line → clustered characters. A full clear on overflow
|
|
53
|
+
* (the original behavior) thrashes during long-session streaming: the
|
|
54
|
+
* mounted window's static lines alone approach the char budget, so the
|
|
55
|
+
* streaming row's per-frame new keys tip it over every frame or two,
|
|
56
|
+
* nuking the cache and forcing ~1800 line re-tokenizations per frame
|
|
57
|
+
* (measured ~100ms/frame at a 175-row session). Evicting oldest-first
|
|
58
|
+
* keeps the hot mounted lines resident while streaming churn falls out
|
|
59
|
+
* the back. Recency is refreshed on hit (delete + re-insert) so lines
|
|
60
|
+
* read every frame are never evicted by one-shot churn.
|
|
61
|
+
*/
|
|
62
|
+
map = new Map();
|
|
63
|
+
chars = 0;
|
|
64
|
+
/**
|
|
65
|
+
* Return the cached clustered characters for a line, if present, and
|
|
66
|
+
* refresh the entry's recency.
|
|
67
|
+
* @param line - the line to look up.
|
|
68
|
+
* @returns the cached characters, or undefined on a miss.
|
|
69
|
+
*/
|
|
70
|
+
get(line) {
|
|
71
|
+
const hit = this.map.get(line);
|
|
72
|
+
if (hit !== undefined) {
|
|
73
|
+
this.map.delete(line);
|
|
74
|
+
this.map.set(line, hit);
|
|
75
|
+
}
|
|
76
|
+
return hit;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Cache clustered characters for a line, enforcing the cache bounds by
|
|
80
|
+
* evicting least-recently-used entries (never a full clear).
|
|
81
|
+
* @param line - the line key.
|
|
82
|
+
* @param characters - the clustered characters to cache.
|
|
83
|
+
*/
|
|
84
|
+
set(line, characters) {
|
|
85
|
+
if (line.length > MAX_CACHEABLE_LINE)
|
|
86
|
+
return;
|
|
87
|
+
if (this.map.has(line)) {
|
|
88
|
+
this.map.delete(line);
|
|
89
|
+
this.chars -= line.length;
|
|
90
|
+
}
|
|
91
|
+
// Evict oldest entries until the new one fits. A single line longer
|
|
92
|
+
// than the whole budget cannot fit even empty — skip caching it.
|
|
93
|
+
if (line.length > CHAR_CACHE_MAX_CHARS)
|
|
94
|
+
return;
|
|
95
|
+
while (this.map.size >= CHAR_CACHE_MAX_ENTRIES ||
|
|
96
|
+
this.chars + line.length > CHAR_CACHE_MAX_CHARS) {
|
|
97
|
+
const oldest = this.map.keys().next();
|
|
98
|
+
if (oldest.done === true)
|
|
99
|
+
break;
|
|
100
|
+
const oldestKey = oldest.value;
|
|
101
|
+
this.chars -= oldestKey.length;
|
|
102
|
+
this.map.delete(oldestKey);
|
|
103
|
+
}
|
|
104
|
+
this.map.set(detachString(line), characters);
|
|
105
|
+
this.chars += line.length;
|
|
106
|
+
}
|
|
107
|
+
/** Retained-key character total, exposed for diagnostics/tests. */
|
|
108
|
+
get retainedChars() {
|
|
109
|
+
return this.chars;
|
|
110
|
+
}
|
|
111
|
+
/** Number of cached line entries. */
|
|
112
|
+
get size() {
|
|
113
|
+
return this.map.size;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Intersect two clips. `undefined` on an axis means unbounded; the other
|
|
118
|
+
* clip's bound wins. If both are bounded, take the tighter constraint
|
|
119
|
+
* (max of mins, min of maxes). If the resulting region is empty
|
|
120
|
+
* (x1 >= x2 or y1 >= y2), writes clipped by it will be dropped.
|
|
121
|
+
*/
|
|
122
|
+
function intersectClip(parent, child) {
|
|
123
|
+
if (!parent)
|
|
124
|
+
return child;
|
|
125
|
+
return {
|
|
126
|
+
x1: maxDefined(parent.x1, child.x1),
|
|
127
|
+
x2: minDefined(parent.x2, child.x2),
|
|
128
|
+
y1: maxDefined(parent.y1, child.y1),
|
|
129
|
+
y2: minDefined(parent.y2, child.y2),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
function maxDefined(a, b) {
|
|
133
|
+
if (a === undefined)
|
|
134
|
+
return b;
|
|
135
|
+
if (b === undefined)
|
|
136
|
+
return a;
|
|
137
|
+
return Math.max(a, b);
|
|
138
|
+
}
|
|
139
|
+
function minDefined(a, b) {
|
|
140
|
+
if (a === undefined)
|
|
141
|
+
return b;
|
|
142
|
+
if (b === undefined)
|
|
143
|
+
return a;
|
|
144
|
+
return Math.min(a, b);
|
|
145
|
+
}
|
|
146
|
+
function isNodeInSubtree(node, root) {
|
|
147
|
+
let current = node;
|
|
148
|
+
while (current !== undefined) {
|
|
149
|
+
if (current === root)
|
|
150
|
+
return true;
|
|
151
|
+
current = current.parentNode;
|
|
152
|
+
}
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Slot-reuse ceiling: the clustered array is a second full memory image of
|
|
157
|
+
* the line, and pathological single-line output (base64 blobs, minified
|
|
158
|
+
* code) would pin it across frames on top of the string itself. Past this
|
|
159
|
+
* length every frame takes the full path — transient, GC-able.
|
|
160
|
+
*/
|
|
161
|
+
const STREAMING_SLOT_MAX_LINE = 65_536;
|
|
162
|
+
/**
|
|
163
|
+
* Classify the tail of the line relative to its LAST ESC character.
|
|
164
|
+
* - 'none': no ESC at all
|
|
165
|
+
* - 'dangling': the last ESC starts an escape sequence that is cut off at
|
|
166
|
+
* end-of-line - next frame's continuation completes it, so the prefix
|
|
167
|
+
* clustering cannot be reused (the partial sequence was clustered as text)
|
|
168
|
+
* - 'bare': the last ESC's sequence is complete but ends exactly at
|
|
169
|
+
* end-of-line - the SGR state after it never applied to any character, so
|
|
170
|
+
* trailingStyles (derived from the last char) would be stale next frame
|
|
171
|
+
* - 'complete': last sequence terminated with plain text after it
|
|
172
|
+
*/
|
|
173
|
+
function escapeTailState(line) {
|
|
174
|
+
const i = line.lastIndexOf('\x1b');
|
|
175
|
+
if (i === -1)
|
|
176
|
+
return 'none';
|
|
177
|
+
const rest = line.slice(i);
|
|
178
|
+
const c1 = rest[1];
|
|
179
|
+
if (c1 === undefined)
|
|
180
|
+
return 'dangling';
|
|
181
|
+
if (c1 === '[') {
|
|
182
|
+
for (let k = 2; k < rest.length; k++) {
|
|
183
|
+
const ch = rest.charCodeAt(k);
|
|
184
|
+
if (ch >= 0x40 && ch <= 0x7e)
|
|
185
|
+
return k === rest.length - 1 ? 'bare' : 'complete';
|
|
186
|
+
if (ch < 0x20 || ch > 0x3f)
|
|
187
|
+
return 'complete';
|
|
188
|
+
}
|
|
189
|
+
return 'dangling';
|
|
190
|
+
}
|
|
191
|
+
if (c1 === ']' || c1 === 'P' || c1 === '_' || c1 === '^' || c1 === 'X') {
|
|
192
|
+
for (let k = 2; k < rest.length; k++) {
|
|
193
|
+
if (rest[k] === '\x07')
|
|
194
|
+
return k === rest.length - 1 ? 'bare' : 'complete';
|
|
195
|
+
if (rest[k] === '\x1b' && rest[k + 1] === '\\') {
|
|
196
|
+
return k + 1 === rest.length - 1 ? 'bare' : 'complete';
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
return 'dangling';
|
|
200
|
+
}
|
|
201
|
+
// Two-character sequence ESC <0x30-0x7E>: rest.length >= 2 means complete.
|
|
202
|
+
return rest.length === 2 ? 'bare' : 'complete';
|
|
203
|
+
}
|
|
204
|
+
/** True when the line's last code point may continue into a multi-codepoint
|
|
205
|
+
* grapheme (ZWJ, variation selectors, combining marks, skin tones, regional
|
|
206
|
+
* indicators) - appending to it would change the last grapheme's clustering. */
|
|
207
|
+
function endsWithOpenGrapheme(line) {
|
|
208
|
+
const cp = line.codePointAt(line.length - 1);
|
|
209
|
+
if (cp === undefined)
|
|
210
|
+
return false;
|
|
211
|
+
return (cp === 0x200d ||
|
|
212
|
+
cp === 0xfe0f ||
|
|
213
|
+
cp === 0xfe0e ||
|
|
214
|
+
(cp >= 0x0300 && cp <= 0x036f) ||
|
|
215
|
+
(cp >= 0x1f3fb && cp <= 0x1f3ff) ||
|
|
216
|
+
(cp >= 0x1f1e6 && cp <= 0x1f1ff));
|
|
217
|
+
}
|
|
218
|
+
/** Hebrew / Arabic / Syriac and related RTL blocks - bidirectional reordering
|
|
219
|
+
* is line-global, so prefix-reuse (which reorders only the suffix) is not
|
|
220
|
+
* safe for these; take the full path. */
|
|
221
|
+
function hasRtlChars(text) {
|
|
222
|
+
return /[\u0590-\u05FF\u0600-\u06FF\u0700-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/.test(text);
|
|
223
|
+
}
|
|
224
|
+
/** Update (or clear) the streaming slot after a full-path build of `line`.
|
|
225
|
+
* The slot is only kept when the line can safely be extended next frame. */
|
|
226
|
+
function updateStreamingSlot(slot, line, clustered, chars) {
|
|
227
|
+
if (line.length <= MAX_CACHEABLE_LINE ||
|
|
228
|
+
line.length > STREAMING_SLOT_MAX_LINE ||
|
|
229
|
+
endsWithOpenGrapheme(line) ||
|
|
230
|
+
hasRtlChars(line)) {
|
|
231
|
+
// Short lines are served by CharCache; complex tails always take the
|
|
232
|
+
// full path. Drop a stale slot when the stream settles.
|
|
233
|
+
if (slot.current)
|
|
234
|
+
slot.current = null;
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
const tail = escapeTailState(line);
|
|
238
|
+
if (tail === 'dangling' || tail === 'bare') {
|
|
239
|
+
if (slot.current)
|
|
240
|
+
slot.current = null;
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
slot.current = {
|
|
244
|
+
line: detachString(line),
|
|
245
|
+
clustered,
|
|
246
|
+
trailingStyles: chars.length > 0 ? chars[chars.length - 1].styles : [],
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Build the clustered characters for one line, taking the streaming-prefix
|
|
251
|
+
* fast path when possible. `slot` is the instance-level streaming slot;
|
|
252
|
+
* `prevChars`/`fullChars` wiring is handled by updateStreamingSlot.
|
|
253
|
+
*/
|
|
254
|
+
function buildClusteredChars(line, stylePool, slot) {
|
|
255
|
+
const prev = slot.current;
|
|
256
|
+
if (prev &&
|
|
257
|
+
line.length > MAX_CACHEABLE_LINE &&
|
|
258
|
+
line.length > prev.line.length &&
|
|
259
|
+
line.startsWith(prev.line) &&
|
|
260
|
+
!endsWithOpenGrapheme(prev.line) &&
|
|
261
|
+
!hasRtlChars(line.slice(prev.line.length))) {
|
|
262
|
+
// Reuse the prefix clustering verbatim; tokenize only the appended
|
|
263
|
+
// suffix, replaying the line-end SGR state so new characters inherit
|
|
264
|
+
// the correct style. Bidi runs on the suffix alone (line verified RTL-free).
|
|
265
|
+
const suffix = line.slice(prev.line.length);
|
|
266
|
+
const replay = styledCharsFromTokens(tokenize(ansiCodesToString(prev.trailingStyles) + suffix));
|
|
267
|
+
const clustered = styledCharsWithGraphemeClustering(replay, stylePool);
|
|
268
|
+
const result = prev.clustered.concat(reorderBidi(clustered));
|
|
269
|
+
updateStreamingSlot(slot, line, result, replay);
|
|
270
|
+
return result;
|
|
271
|
+
}
|
|
272
|
+
const chars = styledCharsFromTokens(tokenize(line));
|
|
273
|
+
const clustered = reorderBidi(styledCharsWithGraphemeClustering(chars, stylePool));
|
|
274
|
+
updateStreamingSlot(slot, line, clustered, chars);
|
|
275
|
+
return clustered;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* The screen rect a paint operation covers, when it can occlude a raster
|
|
279
|
+
* painted earlier in the same frame. `clip`/`unclip`/`noSelect` paint nothing.
|
|
280
|
+
*/
|
|
281
|
+
function imageOcclusionRect(op, width) {
|
|
282
|
+
if (op.type === 'write') {
|
|
283
|
+
return { x: op.x, y: op.y, width: widestLine(op.text), height: op.lines?.length ?? op.text.split('\n').length };
|
|
284
|
+
}
|
|
285
|
+
if (op.type === 'blit')
|
|
286
|
+
return op;
|
|
287
|
+
if (op.type === 'clear' || op.type === 'shade')
|
|
288
|
+
return op.region;
|
|
289
|
+
if (op.type === 'shift')
|
|
290
|
+
return { x: 0, y: op.top, width, height: op.bottom - op.top + 1 };
|
|
291
|
+
return undefined;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* The union of two rects, but only when that union covers no cell the pair did
|
|
295
|
+
* not already cover between them. Two rects qualify when one contains the
|
|
296
|
+
* other, or when they are bands sharing a full edge span (same x-span and
|
|
297
|
+
* abutting/overlapping rows, or the transpose) — exactly the pairs whose union
|
|
298
|
+
* is itself a rectangle. An L-shaped pair does not qualify: the bounding box of
|
|
299
|
+
* its two arms covers cells neither arm covers, and the caller would erase
|
|
300
|
+
* pixels that are still visible.
|
|
301
|
+
* @param a - the first rectangle.
|
|
302
|
+
* @param b - the second rectangle.
|
|
303
|
+
* @returns their union, or undefined when folding them would add cells.
|
|
304
|
+
*/
|
|
305
|
+
function exactUnion(a, b) {
|
|
306
|
+
const contains = (outer, inner) => outer.x <= inner.x && outer.y <= inner.y &&
|
|
307
|
+
outer.x + outer.width >= inner.x + inner.width &&
|
|
308
|
+
outer.y + outer.height >= inner.y + inner.height;
|
|
309
|
+
if (contains(a, b))
|
|
310
|
+
return a;
|
|
311
|
+
if (contains(b, a))
|
|
312
|
+
return b;
|
|
313
|
+
const sameColumns = a.x === b.x && a.width === b.width &&
|
|
314
|
+
a.y <= b.y + b.height && b.y <= a.y + a.height;
|
|
315
|
+
const sameRows = a.y === b.y && a.height === b.height &&
|
|
316
|
+
a.x <= b.x + b.width && b.x <= a.x + a.width;
|
|
317
|
+
return sameColumns || sameRows ? unionRect(a, b) : undefined;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Fold occluder rects that can be folded without covering anything new, so an
|
|
321
|
+
* image protocol that has to erase them (Sixel) does not repeat the same cells.
|
|
322
|
+
* One overlay usually contributes several rects for the same area (interior
|
|
323
|
+
* fill, border row, text row), and an overlay that covers several placements
|
|
324
|
+
* would otherwise erase the shared cells once per placement.
|
|
325
|
+
*
|
|
326
|
+
* Folding stops at exact unions on purpose. The erasure has to match the cells
|
|
327
|
+
* an overlay really covers: merging any two intersecting rects into their
|
|
328
|
+
* bounding box would take down the pixels beside an L-shaped cover, which are
|
|
329
|
+
* still on screen.
|
|
330
|
+
*/
|
|
331
|
+
function mergeOcclusionRects(rects) {
|
|
332
|
+
const merged = [];
|
|
333
|
+
for (const rect of rects) {
|
|
334
|
+
let current = rect;
|
|
335
|
+
let joined = true;
|
|
336
|
+
while (joined) {
|
|
337
|
+
joined = false;
|
|
338
|
+
for (let index = merged.length - 1; index >= 0; index--) {
|
|
339
|
+
const other = merged[index];
|
|
340
|
+
const union = exactUnion(current, other);
|
|
341
|
+
if (union === undefined)
|
|
342
|
+
continue;
|
|
343
|
+
current = union;
|
|
344
|
+
merged.splice(index, 1);
|
|
345
|
+
joined = true;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
merged.push(current);
|
|
349
|
+
}
|
|
350
|
+
return merged;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Collects write/blit/clear/clip operations from the render tree, then
|
|
354
|
+
* applies them to a Screen buffer in get(). The Screen is what gets
|
|
355
|
+
* diffed against the previous frame to produce terminal updates.
|
|
356
|
+
*/
|
|
357
|
+
export default class Output {
|
|
358
|
+
/** Screen width in columns. */
|
|
359
|
+
width;
|
|
360
|
+
/** Screen height in rows. */
|
|
361
|
+
height;
|
|
362
|
+
stylePool;
|
|
363
|
+
screen;
|
|
364
|
+
terminalImagesEnabled;
|
|
365
|
+
opaqueImageBacking;
|
|
366
|
+
imageReady;
|
|
367
|
+
operations = [];
|
|
368
|
+
imagePlacements = [];
|
|
369
|
+
imageNodes = new Set();
|
|
370
|
+
imageBackingEnds = new Map();
|
|
371
|
+
imageClips = [];
|
|
372
|
+
imageDecodedBytes = 0;
|
|
373
|
+
previousImages;
|
|
374
|
+
charCache = new CharCache();
|
|
375
|
+
/**
|
|
376
|
+
* LRU of line → recorded packed cell run, mirroring charCache's bounds.
|
|
377
|
+
* The main-screen architecture repaints every settled line each frame;
|
|
378
|
+
* the recorded run replays as raw two-word stores (no interning, no
|
|
379
|
+
* packing, no guard branches) — the long-session streaming fix. Runs are
|
|
380
|
+
* validated against the screen they were interned on and die with it.
|
|
381
|
+
*/
|
|
382
|
+
packedLines = new Map();
|
|
383
|
+
packedChars = 0;
|
|
384
|
+
/** Stable owner handle passed to writeLineToScreen (no per-call closure). */
|
|
385
|
+
packedOwner = {
|
|
386
|
+
lines: this.packedLines,
|
|
387
|
+
commit: (line, run) => {
|
|
388
|
+
this.setPackedLine(line, run);
|
|
389
|
+
},
|
|
390
|
+
};
|
|
391
|
+
/** Insert into the packed-lines LRU, evicting oldest entries on budget. */
|
|
392
|
+
setPackedLine(line, run) {
|
|
393
|
+
if (line.length > PACKED_MAX_LINE)
|
|
394
|
+
return;
|
|
395
|
+
if (this.packedLines.has(line)) {
|
|
396
|
+
this.packedLines.delete(line);
|
|
397
|
+
this.packedChars -= line.length;
|
|
398
|
+
}
|
|
399
|
+
while (this.packedLines.size >= CHAR_CACHE_MAX_ENTRIES ||
|
|
400
|
+
this.packedChars + line.length > CHAR_CACHE_MAX_CHARS) {
|
|
401
|
+
const oldest = this.packedLines.keys().next();
|
|
402
|
+
if (oldest.done === true)
|
|
403
|
+
break;
|
|
404
|
+
this.packedChars -= oldest.value.length;
|
|
405
|
+
this.packedLines.delete(oldest.value);
|
|
406
|
+
}
|
|
407
|
+
this.packedLines.set(detachString(line), run);
|
|
408
|
+
this.packedChars += line.length;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Streaming-tail slot, shared by every writeLineToScreen call of this
|
|
412
|
+
* Output (only one line grows per frame during streaming). Survives reset()
|
|
413
|
+
* like charCache - it is keyed by strict line extension, so stale entries
|
|
414
|
+
* can never produce a wrong hit.
|
|
415
|
+
*/
|
|
416
|
+
streamingSlot = { current: null };
|
|
417
|
+
constructor(options) {
|
|
418
|
+
const { width, height, stylePool, screen } = options;
|
|
419
|
+
this.width = width;
|
|
420
|
+
this.height = height;
|
|
421
|
+
this.stylePool = stylePool;
|
|
422
|
+
this.screen = screen;
|
|
423
|
+
this.terminalImagesEnabled = options.terminalImages ?? false;
|
|
424
|
+
this.opaqueImageBacking = options.opaqueImageBacking ?? false;
|
|
425
|
+
this.imageReady = options.imageReady;
|
|
426
|
+
this.previousImages = options.previousImages ?? [];
|
|
427
|
+
resetScreen(screen, width, height);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Reuse this Output for a new frame. Zeroes the screen buffer, clears
|
|
431
|
+
* the operation list (backing storage is retained), and caps charCache
|
|
432
|
+
* growth. Preserving charCache across frames is the main win — most
|
|
433
|
+
* lines don't change between renders, so tokenize + grapheme clustering
|
|
434
|
+
* becomes a cache hit.
|
|
435
|
+
* @param width - the new screen width in columns.
|
|
436
|
+
* @param height - the new screen height in rows.
|
|
437
|
+
* @param screen - the screen buffer to render into.
|
|
438
|
+
*/
|
|
439
|
+
reset(width, height, screen, terminalImages = false, previousImages = [], imageReady, opaqueImageBacking = false) {
|
|
440
|
+
this.width = width;
|
|
441
|
+
this.height = height;
|
|
442
|
+
this.screen = screen;
|
|
443
|
+
this.terminalImagesEnabled = terminalImages;
|
|
444
|
+
this.opaqueImageBacking = opaqueImageBacking;
|
|
445
|
+
this.imageReady = imageReady;
|
|
446
|
+
this.previousImages = previousImages;
|
|
447
|
+
this.operations.length = 0;
|
|
448
|
+
this.imagePlacements.length = 0;
|
|
449
|
+
this.imageNodes.clear();
|
|
450
|
+
this.imageBackingEnds.clear();
|
|
451
|
+
this.imageClips.length = 0;
|
|
452
|
+
this.imageDecodedBytes = 0;
|
|
453
|
+
resetScreen(screen, width, height);
|
|
454
|
+
// Bounds are enforced at insertion time (CharCache.set); nothing to
|
|
455
|
+
// do here. The cache intentionally survives frames — most lines don't
|
|
456
|
+
// change between renders, so tokenize + clustering becomes a hit.
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Copy cells from a source screen region (blit = block image transfer).
|
|
460
|
+
* @param src - the source screen.
|
|
461
|
+
* @param x - the destination left column.
|
|
462
|
+
* @param y - the destination top row.
|
|
463
|
+
* @param width - the region width in columns.
|
|
464
|
+
* @param height - the region height in rows.
|
|
465
|
+
*/
|
|
466
|
+
blit(src, x, y, width, height) {
|
|
467
|
+
this.operations.push({ type: 'blit', src, x, y, width, height });
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Shift full-width rows within [top, bottom] by n. n > 0 = up. Mirrors
|
|
471
|
+
* what DECSTBM + SU/SD does to the terminal. Paired with blit() to reuse
|
|
472
|
+
* prevScreen content during pure scroll, avoiding full child re-render.
|
|
473
|
+
* @param top - the first row of the shift region.
|
|
474
|
+
* @param bottom - the last row of the shift region.
|
|
475
|
+
* @param n - the shift amount; positive moves content up.
|
|
476
|
+
*/
|
|
477
|
+
shift(top, bottom, n) {
|
|
478
|
+
this.operations.push({ type: 'shift', top, bottom, n });
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* Clear a region by writing empty cells. Used when a node shrinks to
|
|
482
|
+
* ensure stale content from the previous frame is removed.
|
|
483
|
+
* @param region - the region to clear.
|
|
484
|
+
* @param fromAbsolute - whether the clear is for an absolute-positioned node's old bounds.
|
|
485
|
+
*/
|
|
486
|
+
clear(region, fromAbsolute) {
|
|
487
|
+
this.operations.push({ type: 'clear', region, fromAbsolute });
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Shade the cells painted so far inside `region` (see ShadeOperation).
|
|
491
|
+
* Idempotent per cell, so a clean subtree blitted back from prevScreen
|
|
492
|
+
* with last frame's shade is not shaded twice.
|
|
493
|
+
* @param region - the backdrop node's rect.
|
|
494
|
+
*/
|
|
495
|
+
shade(region) {
|
|
496
|
+
this.operations.push({ type: 'shade', region });
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Mark a region as non-selectable (excluded from fullscreen text
|
|
500
|
+
* selection copy + highlight). Used by <NoSelect> to fence off
|
|
501
|
+
* gutters (line numbers, diff sigils). Applied AFTER blit/write so
|
|
502
|
+
* the mark wins regardless of what's blitted into the region.
|
|
503
|
+
* @param region - the region to mark.
|
|
504
|
+
*/
|
|
505
|
+
noSelect(region) {
|
|
506
|
+
this.operations.push({ type: 'noSelect', region });
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Record a fully visible, frame-budgeted image request. Rejected placements
|
|
510
|
+
* keep their cell fallback, so terminal graphics never escape a clip or
|
|
511
|
+
* create an unbounded decoded-data upload burst.
|
|
512
|
+
*/
|
|
513
|
+
image(node, x, y, columns, rows, source, background) {
|
|
514
|
+
if (this.imageNodes.has(node))
|
|
515
|
+
return this.imagePlacements.find(p => p.node === node)?.graphicsReady !== false;
|
|
516
|
+
if (this.imagePlacements.length >= TERMINAL_IMAGE_MAX_PLACEMENTS)
|
|
517
|
+
return false;
|
|
518
|
+
const left = Math.floor(x);
|
|
519
|
+
const top = Math.floor(y);
|
|
520
|
+
const width = Math.floor(columns);
|
|
521
|
+
const height = Math.floor(rows);
|
|
522
|
+
if (width <= 0 ||
|
|
523
|
+
height <= 0 ||
|
|
524
|
+
width * height > TERMINAL_IMAGE_MAX_CELLS) {
|
|
525
|
+
return false;
|
|
526
|
+
}
|
|
527
|
+
const presentation = node.attributes.imagePresentation;
|
|
528
|
+
const canCrop = this.imageReady !== undefined && (presentation === 'preview' || presentation === 'transcript');
|
|
529
|
+
if (!canCrop && (left < 0 ||
|
|
530
|
+
top < 0 ||
|
|
531
|
+
left + width > this.width ||
|
|
532
|
+
top + height > this.height)) {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
const clip = this.imageClips.at(-1);
|
|
536
|
+
if (!canCrop && (clip !== undefined &&
|
|
537
|
+
((clip.x1 !== undefined && left < clip.x1) ||
|
|
538
|
+
(clip.x2 !== undefined && left + width > clip.x2) ||
|
|
539
|
+
(clip.y1 !== undefined && top < clip.y1) ||
|
|
540
|
+
(clip.y2 !== undefined && top + height > clip.y2)))) {
|
|
541
|
+
return false;
|
|
542
|
+
}
|
|
543
|
+
const visibleLeft = Math.max(0, left, Math.ceil(clip?.x1 ?? 0));
|
|
544
|
+
const visibleTop = Math.max(0, top, Math.ceil(clip?.y1 ?? 0));
|
|
545
|
+
const visibleRight = Math.min(this.width, left + width, Math.floor(clip?.x2 ?? this.width));
|
|
546
|
+
const visibleBottom = Math.min(this.height, top + height, Math.floor(clip?.y2 ?? this.height));
|
|
547
|
+
if (visibleRight <= visibleLeft || visibleBottom <= visibleTop)
|
|
548
|
+
return false;
|
|
549
|
+
const decodedBytes = source.data.byteLength;
|
|
550
|
+
if (this.imageDecodedBytes + decodedBytes >
|
|
551
|
+
TERMINAL_IMAGE_MAX_FRAME_BYTES) {
|
|
552
|
+
return false;
|
|
553
|
+
}
|
|
554
|
+
const placement = {
|
|
555
|
+
node,
|
|
556
|
+
x: left,
|
|
557
|
+
y: top,
|
|
558
|
+
columns: width,
|
|
559
|
+
rows: height,
|
|
560
|
+
source,
|
|
561
|
+
...(presentation === 'preview' || presentation === 'transcript' ? { presentation } : {}),
|
|
562
|
+
...(canCrop ? { clip: { x: visibleLeft, y: visibleTop, columns: visibleRight - visibleLeft, rows: visibleBottom - visibleTop } } : {}),
|
|
563
|
+
...(background !== undefined ? { background } : {}),
|
|
564
|
+
};
|
|
565
|
+
const graphicsReady = this.imageReady?.(placement);
|
|
566
|
+
this.imagePlacements.push(graphicsReady === undefined ? placement : { ...placement, graphicsReady });
|
|
567
|
+
this.imageNodes.add(node);
|
|
568
|
+
this.imageDecodedBytes += decodedBytes;
|
|
569
|
+
return graphicsReady !== false;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Reuse images inside a clean subtree whose cells came from prevScreen.
|
|
573
|
+
* Returns false when any former placement no longer fits this frame, so
|
|
574
|
+
* the painter can descend and restore that image's text fallback instead
|
|
575
|
+
* of blitting its old blank backing cells.
|
|
576
|
+
*/
|
|
577
|
+
reuseImages(node) {
|
|
578
|
+
// A scrollable image's current clip is only known inside its ScrollBox.
|
|
579
|
+
// Descend first rather than admitting stale placements from an ancestor blit.
|
|
580
|
+
if (this.imageReady && this.previousImages.some(p => isNodeInSubtree(p.node, node)))
|
|
581
|
+
return false;
|
|
582
|
+
let reusedAll = true;
|
|
583
|
+
for (const placement of this.previousImages) {
|
|
584
|
+
if (!isNodeInSubtree(placement.node, node))
|
|
585
|
+
continue;
|
|
586
|
+
const ready = this.image(placement.node, placement.x, placement.y, placement.columns, placement.rows, placement.source, placement.background);
|
|
587
|
+
if (!ready || ready !== (placement.graphicsReady !== false)) {
|
|
588
|
+
reusedAll = false;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
return reusedAll;
|
|
592
|
+
}
|
|
593
|
+
/** Whether this node owned a terminal placement in the previous frame. */
|
|
594
|
+
hadPreviousImage(node) {
|
|
595
|
+
return this.previousImages.some(placement => placement.node === node && placement.graphicsReady !== false);
|
|
596
|
+
}
|
|
597
|
+
/** Whether a baseline placement overlaps a screen region. */
|
|
598
|
+
hasPreviousImageInRegion(x, y, width, height) {
|
|
599
|
+
if (!this.terminalImagesEnabled)
|
|
600
|
+
return false;
|
|
601
|
+
const right = x + width;
|
|
602
|
+
const bottom = y + height;
|
|
603
|
+
return this.previousImages.some(placement => placement.graphicsReady !== false &&
|
|
604
|
+
placement.x < right &&
|
|
605
|
+
placement.x + placement.columns > x &&
|
|
606
|
+
placement.y < bottom &&
|
|
607
|
+
placement.y + placement.rows > y);
|
|
608
|
+
}
|
|
609
|
+
/** Current frame's immutable-by-convention terminal image requests. */
|
|
610
|
+
getImages() {
|
|
611
|
+
return this.imagePlacements.map(placement => {
|
|
612
|
+
const end = this.imageBackingEnds.get(placement.node);
|
|
613
|
+
if (end === undefined)
|
|
614
|
+
return placement;
|
|
615
|
+
const visible = placement.clip ?? placement;
|
|
616
|
+
const right = visible.x + visible.columns;
|
|
617
|
+
const bottom = visible.y + visible.rows;
|
|
618
|
+
const overlaps = (rect) => rect.x < right &&
|
|
619
|
+
rect.x + rect.width > visible.x && rect.y < bottom && rect.y + rect.height > visible.y;
|
|
620
|
+
// A later paint that covers the whole visible rect makes the raster
|
|
621
|
+
// unreachable and erasing is the only correct outcome (a blank `opaque`
|
|
622
|
+
// overlay would otherwise be pierced by the pixels beneath it). A paint
|
|
623
|
+
// that covers only part of it must not take the rest of the raster down
|
|
624
|
+
// with it — SixelGraphicsManager keeps those pixels instead.
|
|
625
|
+
const covers = (rect) => rect.x <= visible.x && rect.y <= visible.y &&
|
|
626
|
+
rect.x + rect.width >= right && rect.y + rect.height >= bottom;
|
|
627
|
+
let occluded = false;
|
|
628
|
+
let covered = false;
|
|
629
|
+
const occluders = [];
|
|
630
|
+
for (const op of this.operations.slice(end)) {
|
|
631
|
+
const rect = imageOcclusionRect(op, this.width);
|
|
632
|
+
if (rect === undefined || !overlaps(rect))
|
|
633
|
+
continue;
|
|
634
|
+
occluded = true;
|
|
635
|
+
if (covers(rect)) {
|
|
636
|
+
covered = true;
|
|
637
|
+
break;
|
|
638
|
+
}
|
|
639
|
+
occluders.push(rect);
|
|
640
|
+
}
|
|
641
|
+
if (!occluded)
|
|
642
|
+
return placement;
|
|
643
|
+
if (covered)
|
|
644
|
+
return { ...placement, occluded, occludedFully: true };
|
|
645
|
+
return { ...placement, occluded, coveredRects: mergeOcclusionRects(occluders) };
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/** Pixel ownership is determined by paint order, not just final text values. */
|
|
649
|
+
imageBacking(node) {
|
|
650
|
+
const placement = this.imagePlacements.find(image => image.node === node);
|
|
651
|
+
if (placement) {
|
|
652
|
+
const visible = placement.clip ?? placement;
|
|
653
|
+
this.noSelect({ x: visible.x, y: visible.y, width: visible.columns, height: visible.rows });
|
|
654
|
+
}
|
|
655
|
+
if (this.imageReady)
|
|
656
|
+
this.imageBackingEnds.set(node, this.operations.length);
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Queue a text write at a position, split across lines on newlines.
|
|
660
|
+
* @param x - the left column.
|
|
661
|
+
* @param y - the top row.
|
|
662
|
+
* @param text - the text to write.
|
|
663
|
+
* @param softWrap - per-line soft-wrap flags parallel to text.split('\n').
|
|
664
|
+
* @param lines - optional pre-split physical lines, exactly text.split('\n').
|
|
665
|
+
*/
|
|
666
|
+
write(x, y, text, softWrap, lines) {
|
|
667
|
+
if (!text) {
|
|
668
|
+
return;
|
|
669
|
+
}
|
|
670
|
+
this.operations.push({
|
|
671
|
+
type: 'write',
|
|
672
|
+
x,
|
|
673
|
+
y,
|
|
674
|
+
text,
|
|
675
|
+
softWrap,
|
|
676
|
+
lines,
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
/** Whether a rectangle can contribute cells under the current paint clip. */
|
|
680
|
+
isRectVisible(x, y, width, height) {
|
|
681
|
+
const clip = this.imageClips.at(-1);
|
|
682
|
+
return x < Math.min(this.width, clip?.x2 ?? this.width) &&
|
|
683
|
+
x + width > Math.max(0, clip?.x1 ?? 0) &&
|
|
684
|
+
y < Math.min(this.height, clip?.y2 ?? this.height) &&
|
|
685
|
+
y + height > Math.max(0, clip?.y1 ?? 0);
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Push a clip region; subsequent writes are restricted to it.
|
|
689
|
+
* @param clip - the clip region to apply.
|
|
690
|
+
*/
|
|
691
|
+
clip(clip) {
|
|
692
|
+
this.imageClips.push(intersectClip(this.imageClips.at(-1), clip));
|
|
693
|
+
this.operations.push({
|
|
694
|
+
type: 'clip',
|
|
695
|
+
clip,
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
/** Pop the most recent clip region. */
|
|
699
|
+
unclip() {
|
|
700
|
+
this.imageClips.pop();
|
|
701
|
+
this.operations.push({
|
|
702
|
+
type: 'unclip',
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* Apply all queued operations to the screen buffer and return it.
|
|
707
|
+
* @returns the rendered screen, diffable against the previous frame.
|
|
708
|
+
*/
|
|
709
|
+
get() {
|
|
710
|
+
const screen = this.screen;
|
|
711
|
+
const screenWidth = this.width;
|
|
712
|
+
const screenHeight = this.height;
|
|
713
|
+
// Track blit vs write cell counts for debugging
|
|
714
|
+
let blitCells = 0;
|
|
715
|
+
let writeCells = 0;
|
|
716
|
+
// Pass 1: expand damage to cover clear regions. The buffer is freshly
|
|
717
|
+
// zeroed by resetScreen, so this pass only marks damage so diff()
|
|
718
|
+
// checks these regions against the previous frame.
|
|
719
|
+
//
|
|
720
|
+
// Also collect clears from absolute-positioned nodes. An absolute
|
|
721
|
+
// node overlays normal-flow siblings; when it shrinks, its clear is
|
|
722
|
+
// pushed AFTER those siblings' clean-subtree blits (DOM order). The
|
|
723
|
+
// blit copies the absolute node's own stale paint from prevScreen,
|
|
724
|
+
// and since clear is damage-only, the ghost survives diff. Normal-
|
|
725
|
+
// flow clears don't need this — a normal-flow node's old position
|
|
726
|
+
// can't have been painted on top of a sibling's current position.
|
|
727
|
+
const absoluteClears = [];
|
|
728
|
+
for (const operation of this.operations) {
|
|
729
|
+
if (operation.type !== 'clear')
|
|
730
|
+
continue;
|
|
731
|
+
const { x, y, width, height } = operation.region;
|
|
732
|
+
const startX = Math.max(0, x);
|
|
733
|
+
const startY = Math.max(0, y);
|
|
734
|
+
const maxX = Math.min(x + width, screenWidth);
|
|
735
|
+
const maxY = Math.min(y + height, screenHeight);
|
|
736
|
+
if (startX >= maxX || startY >= maxY)
|
|
737
|
+
continue;
|
|
738
|
+
const rect = {
|
|
739
|
+
x: startX,
|
|
740
|
+
y: startY,
|
|
741
|
+
width: maxX - startX,
|
|
742
|
+
height: maxY - startY,
|
|
743
|
+
};
|
|
744
|
+
screen.damage = screen.damage ? unionRect(screen.damage, rect) : rect;
|
|
745
|
+
if (operation.fromAbsolute)
|
|
746
|
+
absoluteClears.push(rect);
|
|
747
|
+
}
|
|
748
|
+
const clips = [];
|
|
749
|
+
for (const operation of this.operations) {
|
|
750
|
+
switch (operation.type) {
|
|
751
|
+
case 'clear':
|
|
752
|
+
// handled in pass 1
|
|
753
|
+
continue;
|
|
754
|
+
case 'clip':
|
|
755
|
+
// Intersect with the parent clip (if any) so nested
|
|
756
|
+
// overflow:hidden boxes can't write outside their ancestor's
|
|
757
|
+
// clip region. Without this, a message with overflow:hidden at
|
|
758
|
+
// the bottom of a scrollbox pushes its OWN clip (based on its
|
|
759
|
+
// layout bounds, already translated by -scrollTop) which can
|
|
760
|
+
// extend below the scrollbox viewport — writes escape into
|
|
761
|
+
// the sibling bottom section's rows.
|
|
762
|
+
clips.push(intersectClip(clips.at(-1), operation.clip));
|
|
763
|
+
continue;
|
|
764
|
+
case 'unclip':
|
|
765
|
+
clips.pop();
|
|
766
|
+
continue;
|
|
767
|
+
case 'blit': {
|
|
768
|
+
// Bulk-copy cells from source screen region using TypedArray.set().
|
|
769
|
+
// Tracking damage ensures diff() checks blitted cells for stale content
|
|
770
|
+
// when a parent blits an area that previously contained child content.
|
|
771
|
+
const { src, x: regionX, y: regionY, width: regionWidth, height: regionHeight, } = operation;
|
|
772
|
+
// Intersect with active clip — a child's clean-blit passes its full
|
|
773
|
+
// cached rect, but the parent ScrollBox may have shrunk (pill mount).
|
|
774
|
+
// Without this, the blit writes past the ScrollBox's new bottom edge
|
|
775
|
+
// into the pill's row.
|
|
776
|
+
const clip = clips.at(-1);
|
|
777
|
+
const startX = Math.max(regionX, clip?.x1 ?? 0);
|
|
778
|
+
const startY = Math.max(regionY, clip?.y1 ?? 0);
|
|
779
|
+
const maxY = Math.min(regionY + regionHeight, screenHeight, src.height, clip?.y2 ?? Infinity);
|
|
780
|
+
const maxX = Math.min(regionX + regionWidth, screenWidth, src.width, clip?.x2 ?? Infinity);
|
|
781
|
+
if (startX >= maxX || startY >= maxY)
|
|
782
|
+
continue;
|
|
783
|
+
// Skip rows covered by an absolute-positioned node's clear.
|
|
784
|
+
// Absolute nodes overlay normal-flow siblings, so prevScreen in
|
|
785
|
+
// that region holds the absolute node's stale paint — blitting
|
|
786
|
+
// it back would ghost. See absoluteClears collection above.
|
|
787
|
+
if (absoluteClears.length === 0) {
|
|
788
|
+
blitRegion(screen, src, startX, startY, maxX, maxY);
|
|
789
|
+
blitCells += (maxY - startY) * (maxX - startX);
|
|
790
|
+
continue;
|
|
791
|
+
}
|
|
792
|
+
let rowStart = startY;
|
|
793
|
+
for (let row = startY; row <= maxY; row++) {
|
|
794
|
+
const excluded = row < maxY &&
|
|
795
|
+
absoluteClears.some(r => row >= r.y &&
|
|
796
|
+
row < r.y + r.height &&
|
|
797
|
+
startX >= r.x &&
|
|
798
|
+
maxX <= r.x + r.width);
|
|
799
|
+
if (excluded || row === maxY) {
|
|
800
|
+
if (row > rowStart) {
|
|
801
|
+
blitRegion(screen, src, startX, rowStart, maxX, row);
|
|
802
|
+
blitCells += (row - rowStart) * (maxX - startX);
|
|
803
|
+
}
|
|
804
|
+
rowStart = row + 1;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
continue;
|
|
808
|
+
}
|
|
809
|
+
case 'shift': {
|
|
810
|
+
shiftRows(screen, operation.top, operation.bottom, operation.n);
|
|
811
|
+
continue;
|
|
812
|
+
}
|
|
813
|
+
case 'shade': {
|
|
814
|
+
// Honour the active clip like a write: a backdrop inside an
|
|
815
|
+
// overflow-hidden ancestor must not shade cells outside it.
|
|
816
|
+
const { x, y, width, height } = operation.region;
|
|
817
|
+
const clip = clips.at(-1);
|
|
818
|
+
const startX = Math.max(x, clip?.x1 ?? 0);
|
|
819
|
+
const startY = Math.max(y, clip?.y1 ?? 0);
|
|
820
|
+
const maxX = Math.min(x + width, clip?.x2 ?? Infinity);
|
|
821
|
+
const maxY = Math.min(y + height, clip?.y2 ?? Infinity);
|
|
822
|
+
if (startX >= maxX || startY >= maxY)
|
|
823
|
+
continue;
|
|
824
|
+
shadeRegion(screen, this.stylePool, startX, startY, maxX - startX, maxY - startY);
|
|
825
|
+
continue;
|
|
826
|
+
}
|
|
827
|
+
case 'write': {
|
|
828
|
+
const { text, softWrap } = operation;
|
|
829
|
+
let { x, y } = operation;
|
|
830
|
+
let lines = operation.lines ?? text.split('\n');
|
|
831
|
+
let prevContentEnd = 0;
|
|
832
|
+
const clip = clips.at(-1);
|
|
833
|
+
// Clip vertically BEFORE measuring or slicing ANSI lines. A long
|
|
834
|
+
// tool result/code block may intersect the viewport by one row;
|
|
835
|
+
// horizontal work over its entire history is still O(transcript).
|
|
836
|
+
// Screen bounds apply even without an explicit overflow clip.
|
|
837
|
+
const from = Math.max(0, Math.max(0, clip?.y1 ?? 0) - y);
|
|
838
|
+
const to = Math.min(lines.length, Math.min(screenHeight, clip?.y2 ?? screenHeight) - y);
|
|
839
|
+
if (from >= to)
|
|
840
|
+
continue;
|
|
841
|
+
const swFrom = from;
|
|
842
|
+
const clipHorizontally = typeof clip?.x1 === 'number' && typeof clip?.x2 === 'number';
|
|
843
|
+
if (clipHorizontally && x >= clip.x2)
|
|
844
|
+
continue;
|
|
845
|
+
const clipLine = (line) => {
|
|
846
|
+
// Width/slicing treat raw tabs as zero cells. Expand at the
|
|
847
|
+
// ORIGINAL x before clipping, also for the soft-wrap predecessor.
|
|
848
|
+
line = expandTabs(line, undefined, x);
|
|
849
|
+
if (!clipHorizontally)
|
|
850
|
+
return line;
|
|
851
|
+
const start = Math.max(0, clip.x1 - x);
|
|
852
|
+
const width = stringWidth(line);
|
|
853
|
+
const end = Math.min(width, clip.x2 - x);
|
|
854
|
+
if (start >= end)
|
|
855
|
+
return '';
|
|
856
|
+
if (start === 0 && end === width)
|
|
857
|
+
return line;
|
|
858
|
+
let sliced = sliceAnsi(line, start, end);
|
|
859
|
+
// Do not leave a wide glyph's SpacerTail outside the clip.
|
|
860
|
+
if (stringWidth(sliced) > end - start)
|
|
861
|
+
sliced = sliceAnsi(line, start, end - 1);
|
|
862
|
+
return sliced;
|
|
863
|
+
};
|
|
864
|
+
const writeX = clipHorizontally ? Math.max(x, clip.x1) : x;
|
|
865
|
+
// Copy joins need only the preceding (horizontally clipped) line,
|
|
866
|
+
// not every discarded line. Preserve its content-end coordinate.
|
|
867
|
+
if (softWrap && from > 0 && softWrap[from] === true) {
|
|
868
|
+
prevContentEnd = writeX + stringWidth(clipLine(lines[from - 1]));
|
|
869
|
+
}
|
|
870
|
+
lines = lines.slice(from, to);
|
|
871
|
+
if (clipHorizontally)
|
|
872
|
+
lines = lines.map(clipLine);
|
|
873
|
+
x = writeX;
|
|
874
|
+
y += from;
|
|
875
|
+
const swBits = screen.softWrap;
|
|
876
|
+
let offsetY = 0;
|
|
877
|
+
for (const line of lines) {
|
|
878
|
+
const lineY = y + offsetY;
|
|
879
|
+
// Line can be outside screen if `text` is taller than screen height
|
|
880
|
+
if (lineY >= screenHeight) {
|
|
881
|
+
break;
|
|
882
|
+
}
|
|
883
|
+
const contentEnd = writeLineToScreen(screen, line, x, lineY, screenWidth, this.stylePool, this.charCache, this.streamingSlot, this.packedOwner);
|
|
884
|
+
writeCells += contentEnd - x;
|
|
885
|
+
// See Screen.softWrap docstring for the encoding. contentEnd
|
|
886
|
+
// from writeLineToScreen is tab-expansion-aware, unlike
|
|
887
|
+
// x+stringWidth(line) which treats tabs as width 0.
|
|
888
|
+
if (softWrap) {
|
|
889
|
+
const isSW = softWrap[swFrom + offsetY] === true;
|
|
890
|
+
swBits[lineY] = isSW ? prevContentEnd : 0;
|
|
891
|
+
prevContentEnd = contentEnd;
|
|
892
|
+
}
|
|
893
|
+
offsetY++;
|
|
894
|
+
}
|
|
895
|
+
continue;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
// noSelect ops go LAST so they win over blits (which copy noSelect
|
|
900
|
+
// from prevScreen) and writes (which don't touch noSelect). This way
|
|
901
|
+
// a <NoSelect> box correctly fences its region even when the parent
|
|
902
|
+
// blits, and moving a <NoSelect> between frames correctly clears the
|
|
903
|
+
// old region (resetScreen already zeroed the bitmap).
|
|
904
|
+
for (const operation of this.operations) {
|
|
905
|
+
if (operation.type === 'noSelect') {
|
|
906
|
+
const { x, y, width, height } = operation.region;
|
|
907
|
+
markNoSelectRegion(screen, x, y, width, height);
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
// Log blit/write ratio for debugging - high write count suggests blitting isn't working
|
|
911
|
+
const totalCells = blitCells + writeCells;
|
|
912
|
+
if (totalCells > 1000 && writeCells > blitCells) {
|
|
913
|
+
logForDebugging(`High write ratio: blit=${blitCells}, write=${writeCells} (${((writeCells / totalCells) * 100).toFixed(1)}% writes), screen=${screenHeight}x${screenWidth}`);
|
|
914
|
+
}
|
|
915
|
+
return screen;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
function stylesEqual(a, b) {
|
|
919
|
+
if (a === b)
|
|
920
|
+
return true; // Reference equality fast path
|
|
921
|
+
const len = a.length;
|
|
922
|
+
if (len !== b.length)
|
|
923
|
+
return false;
|
|
924
|
+
if (len === 0)
|
|
925
|
+
return true; // Both empty
|
|
926
|
+
for (let i = 0; i < len; i++) {
|
|
927
|
+
if (a[i].code !== b[i].code)
|
|
928
|
+
return false;
|
|
929
|
+
}
|
|
930
|
+
return true;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Convert a string with ANSI codes into styled characters with proper grapheme
|
|
934
|
+
* clustering. Fixes ansi-tokenize splitting grapheme clusters (like family
|
|
935
|
+
* emojis) into individual code points.
|
|
936
|
+
*
|
|
937
|
+
* Also precomputes styleId + hyperlink per style run (not per char) — an
|
|
938
|
+
* 80-char line with 3 style runs does 3 intern calls instead of 80.
|
|
939
|
+
*/
|
|
940
|
+
function styledCharsWithGraphemeClustering(chars, stylePool) {
|
|
941
|
+
const charCount = chars.length;
|
|
942
|
+
if (charCount === 0)
|
|
943
|
+
return [];
|
|
944
|
+
const result = [];
|
|
945
|
+
const bufferChars = [];
|
|
946
|
+
let bufferStyles = chars[0].styles;
|
|
947
|
+
for (let i = 0; i < charCount; i++) {
|
|
948
|
+
const char = chars[i];
|
|
949
|
+
const styles = char.styles;
|
|
950
|
+
// Different styles means we need to flush and start new buffer
|
|
951
|
+
if (bufferChars.length > 0 && !stylesEqual(styles, bufferStyles)) {
|
|
952
|
+
flushBuffer(bufferChars.join(''), bufferStyles, stylePool, result);
|
|
953
|
+
bufferChars.length = 0;
|
|
954
|
+
}
|
|
955
|
+
bufferChars.push(char.value);
|
|
956
|
+
bufferStyles = styles;
|
|
957
|
+
}
|
|
958
|
+
// Final flush
|
|
959
|
+
if (bufferChars.length > 0) {
|
|
960
|
+
flushBuffer(bufferChars.join(''), bufferStyles, stylePool, result);
|
|
961
|
+
}
|
|
962
|
+
return result;
|
|
963
|
+
}
|
|
964
|
+
function flushBuffer(buffer, styles, stylePool, out) {
|
|
965
|
+
// Compute styleId + hyperlink ONCE for the whole style run.
|
|
966
|
+
// Every grapheme in this buffer shares the same styles.
|
|
967
|
+
//
|
|
968
|
+
// Extract and track hyperlinks separately, filter from styles.
|
|
969
|
+
// Always check for OSC 8 codes to filter, not just when a URL is
|
|
970
|
+
// extracted. The tokenizer treats OSC 8 close codes (empty URL) as
|
|
971
|
+
// active styles, so they must be filtered even when no hyperlink
|
|
972
|
+
// URL is present.
|
|
973
|
+
const hyperlink = extractHyperlinkFromStyles(styles) ?? undefined;
|
|
974
|
+
const hasOsc8Styles = hyperlink !== undefined ||
|
|
975
|
+
styles.some(s => s.code.length >= OSC8_PREFIX.length && s.code.startsWith(OSC8_PREFIX));
|
|
976
|
+
const filteredStyles = hasOsc8Styles
|
|
977
|
+
? filterOutHyperlinkStyles(styles)
|
|
978
|
+
: styles;
|
|
979
|
+
const styleId = stylePool.intern(filteredStyles);
|
|
980
|
+
for (const { segment: grapheme } of getGraphemeSegmenter().segment(buffer)) {
|
|
981
|
+
out.push({
|
|
982
|
+
value: grapheme,
|
|
983
|
+
width: stringWidth(grapheme),
|
|
984
|
+
styleId,
|
|
985
|
+
hyperlink,
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Write a single line's characters into the screen buffer.
|
|
991
|
+
* Extracted from Output.get() so JSC can optimize this tight,
|
|
992
|
+
* monomorphic loop independently — better register allocation,
|
|
993
|
+
* setCellAt inlining, and type feedback than when buried inside
|
|
994
|
+
* a 300-line dispatch function.
|
|
995
|
+
*
|
|
996
|
+
* Returns the end column (x + visual width, including tab expansion) so
|
|
997
|
+
* the caller can record it in screen.softWrap without re-walking the
|
|
998
|
+
* line via stringWidth(). Caller computes the debug cell-count as end-x.
|
|
999
|
+
*/
|
|
1000
|
+
function writeLineToScreen(screen, line, x, y, screenWidth, stylePool, charCache, streamingSlot, packed) {
|
|
1001
|
+
// Fast path: replay the recorded packed run for this exact line — two
|
|
1002
|
+
// typed-array stores per cell, no interning/packing/guard work. The run
|
|
1003
|
+
// dies with its screen; a width transition needs the slow path's guards
|
|
1004
|
+
// and replayCellRun reports that.
|
|
1005
|
+
if (packed !== undefined) {
|
|
1006
|
+
const run = packed.lines.get(line);
|
|
1007
|
+
if (run !== undefined &&
|
|
1008
|
+
run.charPool === screen.charPool &&
|
|
1009
|
+
x >= 0 &&
|
|
1010
|
+
x + cellRunSpan(run) <= screenWidth) {
|
|
1011
|
+
if (replayCellRun(screen, x, y, run)) {
|
|
1012
|
+
// LRU refresh (chars budget unchanged: same key length).
|
|
1013
|
+
packed.lines.delete(line);
|
|
1014
|
+
packed.lines.set(line, run);
|
|
1015
|
+
return x + cellRunSpan(run);
|
|
1016
|
+
}
|
|
1017
|
+
// fall through to the slow path for this line this frame
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
let characters = charCache.get(line);
|
|
1021
|
+
if (!characters) {
|
|
1022
|
+
characters = buildClusteredChars(line, stylePool, streamingSlot);
|
|
1023
|
+
charCache.set(line, characters);
|
|
1024
|
+
}
|
|
1025
|
+
// Recording for the packed fast path: only plain single/wide char cells
|
|
1026
|
+
// are recordable — control chars (tab expansion is x-relative), edge
|
|
1027
|
+
// SpacerHead substitution, and y/x off-screen abort it. The packed-run
|
|
1028
|
+
// limit is far above the charCache's MAX_CACHEABLE_LINE: a run costs
|
|
1029
|
+
// three small integers per cell (no per-char objects), so even the
|
|
1030
|
+
// ~700-char ANSI-art whale lines belong — without this they
|
|
1031
|
+
// re-tokenize and re-cluster EVERY frame.
|
|
1032
|
+
const recordable = packed !== undefined &&
|
|
1033
|
+
line.length <= PACKED_MAX_LINE &&
|
|
1034
|
+
x >= 0 &&
|
|
1035
|
+
y >= 0 &&
|
|
1036
|
+
y < screen.height;
|
|
1037
|
+
let run = recordable ? createCellRun(screen) : undefined;
|
|
1038
|
+
let runAlive = run !== undefined;
|
|
1039
|
+
let offsetX = x;
|
|
1040
|
+
for (let charIdx = 0; charIdx < characters.length; charIdx++) {
|
|
1041
|
+
const character = characters[charIdx];
|
|
1042
|
+
const codePoint = character.value.codePointAt(0);
|
|
1043
|
+
// Handle C0 control characters (0x00-0x1F) that cause cursor movement
|
|
1044
|
+
// mismatches. stringWidth treats these as width 0, but terminals may
|
|
1045
|
+
// move the cursor differently.
|
|
1046
|
+
if (codePoint !== undefined && codePoint <= 0x1f) {
|
|
1047
|
+
// Not recordable: tab expansion is x-relative, ESC handling varies.
|
|
1048
|
+
runAlive = false;
|
|
1049
|
+
// Tab (0x09): expand to spaces at the tab's OWN style, not stylePool.none.
|
|
1050
|
+
// An unstyled space drops the background and is skipped by the diff's
|
|
1051
|
+
// empty-cell optimization, so a tab inside a bg region (code blocks) shows
|
|
1052
|
+
// the terminal default bg — the black indentation of issue #606.
|
|
1053
|
+
if (codePoint === 0x09) {
|
|
1054
|
+
const tabWidth = 8;
|
|
1055
|
+
const spacesToNextStop = tabWidth - (offsetX % tabWidth);
|
|
1056
|
+
for (let i = 0; i < spacesToNextStop && offsetX < screenWidth; i++) {
|
|
1057
|
+
setCellAt(screen, offsetX, y, {
|
|
1058
|
+
char: ' ',
|
|
1059
|
+
styleId: character.styleId,
|
|
1060
|
+
width: 0 /* CellWidth.Narrow */,
|
|
1061
|
+
hyperlink: undefined,
|
|
1062
|
+
});
|
|
1063
|
+
offsetX++;
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
// ESC (0x1B): skip incomplete escape sequences that ansi-tokenize
|
|
1067
|
+
// didn't recognize. ansi-tokenize only parses SGR sequences (ESC[...m)
|
|
1068
|
+
// and OSC 8 hyperlinks (ESC]8;;url BEL). Other sequences like cursor
|
|
1069
|
+
// movement, screen clearing, or terminal title become individual char
|
|
1070
|
+
// tokens that we need to skip here.
|
|
1071
|
+
else if (codePoint === 0x1b) {
|
|
1072
|
+
const nextChar = characters[charIdx + 1]?.value;
|
|
1073
|
+
const nextCode = nextChar?.codePointAt(0);
|
|
1074
|
+
if (nextChar === '(' ||
|
|
1075
|
+
nextChar === ')' ||
|
|
1076
|
+
nextChar === '*' ||
|
|
1077
|
+
nextChar === '+') {
|
|
1078
|
+
// Charset selection: ESC ( X, ESC ) X, etc.
|
|
1079
|
+
// Skip the intermediate char and the charset designator
|
|
1080
|
+
charIdx += 2;
|
|
1081
|
+
}
|
|
1082
|
+
else if (nextChar === '[') {
|
|
1083
|
+
// CSI sequence: ESC [ ... final-byte
|
|
1084
|
+
// Final byte is in range 0x40-0x7E (@, A-Z, [\]^_`, a-z, {|}~)
|
|
1085
|
+
// Examples: ESC[2J (clear), ESC[?25l (cursor hide), ESC[H (home)
|
|
1086
|
+
charIdx++; // skip the [
|
|
1087
|
+
while (charIdx < characters.length - 1) {
|
|
1088
|
+
charIdx++;
|
|
1089
|
+
const c = characters[charIdx]?.value.codePointAt(0);
|
|
1090
|
+
// Final byte terminates the sequence
|
|
1091
|
+
if (c !== undefined && c >= 0x40 && c <= 0x7e) {
|
|
1092
|
+
break;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
else if (nextChar === ']' ||
|
|
1097
|
+
nextChar === 'P' ||
|
|
1098
|
+
nextChar === '_' ||
|
|
1099
|
+
nextChar === '^' ||
|
|
1100
|
+
nextChar === 'X') {
|
|
1101
|
+
// String-based sequences terminated by BEL (0x07) or ST (ESC \):
|
|
1102
|
+
// - OSC: ESC ] ... (Operating System Command)
|
|
1103
|
+
// - DCS: ESC P ... (Device Control String)
|
|
1104
|
+
// - APC: ESC _ ... (Application Program Command)
|
|
1105
|
+
// - PM: ESC ^ ... (Privacy Message)
|
|
1106
|
+
// - SOS: ESC X ... (Start of String)
|
|
1107
|
+
charIdx++; // skip the introducer char
|
|
1108
|
+
while (charIdx < characters.length - 1) {
|
|
1109
|
+
charIdx++;
|
|
1110
|
+
const c = characters[charIdx]?.value;
|
|
1111
|
+
// BEL (0x07) terminates the sequence
|
|
1112
|
+
if (c === '\x07') {
|
|
1113
|
+
break;
|
|
1114
|
+
}
|
|
1115
|
+
// ST (String Terminator) is ESC \
|
|
1116
|
+
// When we see ESC, check if next char is backslash
|
|
1117
|
+
if (c === '\x1b') {
|
|
1118
|
+
const nextC = characters[charIdx + 1]?.value;
|
|
1119
|
+
if (nextC === '\\') {
|
|
1120
|
+
charIdx++; // skip the backslash too
|
|
1121
|
+
break;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
else if (nextCode !== undefined &&
|
|
1127
|
+
nextCode >= 0x30 &&
|
|
1128
|
+
nextCode <= 0x7e) {
|
|
1129
|
+
// Single-character escape sequences: ESC followed by 0x30-0x7E
|
|
1130
|
+
// (excluding the multi-char introducers already handled above)
|
|
1131
|
+
// - Fp range (0x30-0x3F): ESC 7 (save cursor), ESC 8 (restore)
|
|
1132
|
+
// - Fe range (0x40-0x5F): ESC D (index), ESC M (reverse index)
|
|
1133
|
+
// - Fs range (0x60-0x7E): ESC c (reset)
|
|
1134
|
+
charIdx++; // skip the command char
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
// Carriage return (0x0D): would move cursor to column 0, skip it
|
|
1138
|
+
// Backspace (0x08): would move cursor left, skip it
|
|
1139
|
+
// Bell (0x07), vertical tab (0x0B), form feed (0x0C): skip
|
|
1140
|
+
// All other control chars (0x00-0x06, 0x0E-0x1F): skip
|
|
1141
|
+
// Note: newline (0x0A) is already handled by line splitting
|
|
1142
|
+
continue;
|
|
1143
|
+
}
|
|
1144
|
+
// Zero-width characters (combining marks, ZWNJ, ZWS, etc.)
|
|
1145
|
+
// don't occupy terminal cells — storing them as Narrow cells
|
|
1146
|
+
// desyncs the virtual cursor from the real terminal cursor.
|
|
1147
|
+
// Width was computed once during clustering (cached via charCache).
|
|
1148
|
+
const charWidth = character.width;
|
|
1149
|
+
if (charWidth === 0) {
|
|
1150
|
+
continue;
|
|
1151
|
+
}
|
|
1152
|
+
const isWideCharacter = charWidth >= 2;
|
|
1153
|
+
// Wide char at last column can't fit — terminal would wrap it to
|
|
1154
|
+
// the next line, desyncing our cursor model. Place a SpacerHead to
|
|
1155
|
+
// mark the blank column, matching terminal behavior.
|
|
1156
|
+
if (isWideCharacter && offsetX + 2 > screenWidth) {
|
|
1157
|
+
runAlive = false;
|
|
1158
|
+
setCellAt(screen, offsetX, y, {
|
|
1159
|
+
char: ' ',
|
|
1160
|
+
styleId: stylePool.none,
|
|
1161
|
+
width: 3 /* CellWidth.SpacerHead */,
|
|
1162
|
+
hyperlink: undefined,
|
|
1163
|
+
});
|
|
1164
|
+
offsetX++;
|
|
1165
|
+
continue;
|
|
1166
|
+
}
|
|
1167
|
+
// styleId + hyperlink were precomputed during clustering (once per
|
|
1168
|
+
// style run, cached via charCache). Hot loop is now just property
|
|
1169
|
+
// reads — no intern, no extract, no filter per frame.
|
|
1170
|
+
const cellWidth = isWideCharacter ? 1 /* CellWidth.Wide */ : 0 /* CellWidth.Narrow */;
|
|
1171
|
+
setCellAt(screen, offsetX, y, {
|
|
1172
|
+
char: character.value,
|
|
1173
|
+
styleId: character.styleId,
|
|
1174
|
+
width: cellWidth,
|
|
1175
|
+
hyperlink: character.hyperlink,
|
|
1176
|
+
});
|
|
1177
|
+
if (runAlive && run !== undefined) {
|
|
1178
|
+
recordCellRunEntry(run, screen, offsetX, {
|
|
1179
|
+
char: character.value,
|
|
1180
|
+
styleId: character.styleId,
|
|
1181
|
+
width: cellWidth,
|
|
1182
|
+
hyperlink: character.hyperlink,
|
|
1183
|
+
});
|
|
1184
|
+
// setCellAt also writes a SpacerTail after a wide char (when it
|
|
1185
|
+
// fits); record that deterministic write too, or abort at the edge.
|
|
1186
|
+
if (isWideCharacter) {
|
|
1187
|
+
if (offsetX + 1 < screenWidth) {
|
|
1188
|
+
recordSpacerRunEntry(run, offsetX + 1);
|
|
1189
|
+
}
|
|
1190
|
+
else {
|
|
1191
|
+
runAlive = false;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
offsetX += isWideCharacter ? 2 : 1;
|
|
1196
|
+
}
|
|
1197
|
+
// Commit the recording for the packed fast path. Complete NON-EMPTY
|
|
1198
|
+
// runs only: an empty line ('' from split('\n'), zero-width-only lines)
|
|
1199
|
+
// records zero entries and would commit a degenerate run whose replay
|
|
1200
|
+
// writes NaN damage (gaps[0] undefined) and poisons the whole frame diff.
|
|
1201
|
+
if (runAlive && run !== undefined && packed !== undefined && run.gaps.length > 0) {
|
|
1202
|
+
packed.commit(line, run);
|
|
1203
|
+
}
|
|
1204
|
+
return offsetX;
|
|
1205
|
+
}
|