@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,1027 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { PureComponent } from "react";
|
|
3
|
+
import { updateLastInteractionTime } from "../../bootstrap/state.js";
|
|
4
|
+
import { logForDebugging } from "../../utils/debug.js";
|
|
5
|
+
import { stopCapturingEarlyInput } from "../../utils/earlyInput.js";
|
|
6
|
+
import { isEnvTruthy } from "../../utils/envUtils.js";
|
|
7
|
+
import { isMouseClicksDisabled } from "../../utils/fullscreen.js";
|
|
8
|
+
import { isInputSuppressed } from "../input-suppression.js";
|
|
9
|
+
import { logMouseDebug } from "../../utils/debug.js";
|
|
10
|
+
import { logError } from "../../utils/log.js";
|
|
11
|
+
import { EventEmitter } from "../events/emitter.js";
|
|
12
|
+
import { InputEvent } from "../events/input-event.js";
|
|
13
|
+
import { TerminalFocusEvent } from "../events/terminal-focus-event.js";
|
|
14
|
+
import { DragEvent } from "../events/drag-event.js";
|
|
15
|
+
import { INITIAL_STATE, parseMultipleKeypresses, } from "../parse-keypress.js";
|
|
16
|
+
import reconciler from "../reconciler.js";
|
|
17
|
+
import { finishSelection, hasSelection, startSelection, } from "../selection.js";
|
|
18
|
+
import { isXtermJs, setXtversionName, supportsExtendedKeys, supportsWin32InputMode, } from "../terminal.js";
|
|
19
|
+
import { getTerminalFocused, setTerminalFocused, } from "../terminal-focus-state.js";
|
|
20
|
+
import { TerminalQuerier, xtversion } from "../terminal-querier.js";
|
|
21
|
+
import { DISABLE_KITTY_KEYBOARD, DISABLE_MODIFY_OTHER_KEYS, DISABLE_WIN32_INPUT_MODE, ENABLE_KITTY_KEYBOARD, ENABLE_MODIFY_OTHER_KEYS, ENABLE_WIN32_INPUT_MODE, FOCUS_IN, FOCUS_OUT, } from "../termio/csi.js";
|
|
22
|
+
import { DBP, DFE, DISABLE_MOUSE_TRACKING, EBP, EFE, HIDE_CURSOR, SHOW_CURSOR, } from "../termio/dec.js";
|
|
23
|
+
import AppContext from "./AppContext.js";
|
|
24
|
+
import { ClockProvider } from "./ClockContext.js";
|
|
25
|
+
import CursorDeclarationContext from "./CursorDeclarationContext.js";
|
|
26
|
+
import ErrorOverview from "./ErrorOverview.js";
|
|
27
|
+
import StdinContext from "./StdinContext.js";
|
|
28
|
+
import { TerminalFocusProvider } from "./TerminalFocusContext.js";
|
|
29
|
+
import { TerminalSizeContext } from "./TerminalSizeContext.js";
|
|
30
|
+
import { TerminalWriteProvider } from "../useTerminalNotification.js";
|
|
31
|
+
// Platforms that support Unix-style process suspension (SIGSTOP/SIGCONT)
|
|
32
|
+
const SUPPORTS_SUSPEND = process.platform !== "win32";
|
|
33
|
+
// After this many milliseconds of stdin silence, the next chunk triggers
|
|
34
|
+
// a terminal mode re-assert (mouse tracking). Catches tmux detach→attach,
|
|
35
|
+
// ssh reconnect, and laptop wake — the terminal resets DEC private modes
|
|
36
|
+
// but no signal reaches us. 5s is well above normal inter-keystroke gaps
|
|
37
|
+
// but short enough that the first scroll after reattach works.
|
|
38
|
+
const STDIN_RESUME_GAP_MS = 5000;
|
|
39
|
+
// Multi-click detection thresholds. 500ms is the macOS default; a small
|
|
40
|
+
// position tolerance allows for trackpad jitter between clicks.
|
|
41
|
+
const MULTI_CLICK_TIMEOUT_MS = 500;
|
|
42
|
+
const MULTI_CLICK_DISTANCE = 1;
|
|
43
|
+
// Root component for all Ink apps
|
|
44
|
+
// It renders stdin and stdout contexts, so that children can access them if needed
|
|
45
|
+
// It also handles Ctrl+C exiting and cursor visibility
|
|
46
|
+
export default class App extends PureComponent {
|
|
47
|
+
static displayName = "InternalApp";
|
|
48
|
+
static getDerivedStateFromError(error) {
|
|
49
|
+
return {
|
|
50
|
+
error,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
state = {
|
|
54
|
+
error: undefined,
|
|
55
|
+
};
|
|
56
|
+
// Count how many components enabled raw mode to avoid disabling
|
|
57
|
+
// raw mode until all components don't need it anymore
|
|
58
|
+
rawModeEnabledCount = 0;
|
|
59
|
+
internal_eventEmitter = new EventEmitter();
|
|
60
|
+
keyParseState = INITIAL_STATE;
|
|
61
|
+
// Timer for flushing incomplete escape sequences
|
|
62
|
+
incompleteEscapeTimer = null;
|
|
63
|
+
// Deferred XTVERSION probe (setImmediate). Cleared on unmount so the
|
|
64
|
+
// DA1 sentinel it flushes cannot land after raw mode is off.
|
|
65
|
+
xtversionProbe = null;
|
|
66
|
+
xtversionAttempted = false;
|
|
67
|
+
// Timeout durations for incomplete sequences (ms)
|
|
68
|
+
NORMAL_TIMEOUT = 50; // Short timeout for regular esc sequences
|
|
69
|
+
PASTE_TIMEOUT = 500; // Longer timeout for paste operations
|
|
70
|
+
// Terminal query/response dispatch. Responses arrive on stdin (parsed
|
|
71
|
+
// out by parse-keypress) and are routed to pending promise resolvers.
|
|
72
|
+
querier = new TerminalQuerier(this.props.stdout, enabled => this.handleSetRawMode(enabled));
|
|
73
|
+
// Multi-click tracking for double/triple-click text selection. A click
|
|
74
|
+
// within MULTI_CLICK_TIMEOUT_MS and MULTI_CLICK_DISTANCE of the previous
|
|
75
|
+
// click increments clickCount; otherwise it resets to 1.
|
|
76
|
+
lastClickTime = 0;
|
|
77
|
+
lastClickCol = -1;
|
|
78
|
+
lastClickRow = -1;
|
|
79
|
+
clickCount = 0;
|
|
80
|
+
// Deferred hyperlink-open timer — cancelled if a second click arrives
|
|
81
|
+
// within MULTI_CLICK_TIMEOUT_MS (so double-clicking a hyperlink selects
|
|
82
|
+
// the word without also opening the browser). DOM onClick dispatch is
|
|
83
|
+
// NOT deferred — it returns true from onClickAt and skips this timer.
|
|
84
|
+
pendingHyperlinkTimer = null;
|
|
85
|
+
/**
|
|
86
|
+
* Bitmask of currently held mouse buttons (bit 0 = left, 1 = middle,
|
|
87
|
+
* 2 = right). Updated in the transport layer of handleMouseEvent BEFORE
|
|
88
|
+
* the click-disabled gate, so DSH_TUI_DISABLE_MOUSE=1 still maintains
|
|
89
|
+
* the physical latch. X10's generic release (low bits 3) cannot identify
|
|
90
|
+
* which button ended and conservatively clears the entire set — a
|
|
91
|
+
* no-button motion or focus-out is the reliable termination signal.
|
|
92
|
+
*/
|
|
93
|
+
heldButtons = 0;
|
|
94
|
+
/**
|
|
95
|
+
* Set when an X10 generic release (low bits 3) arrived with buttons still
|
|
96
|
+
* potentially held — the release carries no button identity, so the probe
|
|
97
|
+
* stays blocked until a reliable termination signal (no-button motion,
|
|
98
|
+
* focus-out, or a fresh press identifying the still-held button).
|
|
99
|
+
*/
|
|
100
|
+
ambiguousHeld = false;
|
|
101
|
+
/**
|
|
102
|
+
* Set when a release, focus-out, or no-button motion cleared the gesture
|
|
103
|
+
* latch during the current batch. processKeysInBatch drains the deferred
|
|
104
|
+
* alt-screen re-entry / blocked probe at the batch tail, not mid-batch —
|
|
105
|
+
* a single stdin chunk can carry `release → next press`, and draining
|
|
106
|
+
* between them would write probe bytes into the next gesture's opening
|
|
107
|
+
* window.
|
|
108
|
+
*/
|
|
109
|
+
pendingReleaseTail = false;
|
|
110
|
+
/**
|
|
111
|
+
* Set when FOCUS_IN arrived during the current batch. The focus probe
|
|
112
|
+
* (handleTerminalFocusProbe) is deferred to the batch tail so a single
|
|
113
|
+
* stdin chunk carrying FOCUS_IN + press doesn't write probe bytes before
|
|
114
|
+
* the press latch is established.
|
|
115
|
+
*/
|
|
116
|
+
pendingFocusProbe = false;
|
|
117
|
+
/**
|
|
118
|
+
* Set when a release-path click deferred its health probe (deferProbe).
|
|
119
|
+
* The probe fires at the batch tail via onClickProbe.
|
|
120
|
+
*/
|
|
121
|
+
pendingClickProbe = false;
|
|
122
|
+
// Last mode-1003 motion position. Terminals already dedupe to cell
|
|
123
|
+
// granularity but this also lets us skip dispatchHover entirely on
|
|
124
|
+
// repeat events (drag-then-release at same cell, etc.).
|
|
125
|
+
lastHoverCol = -1;
|
|
126
|
+
lastHoverRow = -1;
|
|
127
|
+
// Active drag session (DOM HTML5 drag subset). Opened on an unmodified
|
|
128
|
+
// left press over a node whose ancestor chain carries an onDragStart
|
|
129
|
+
// handler; `started` flips on the FIRST drag motion — DOM dragstart
|
|
130
|
+
// fires on first move, not on press. lastCol/lastRow track the most
|
|
131
|
+
// recent pointer position so an interrupted session (focus loss,
|
|
132
|
+
// screen swap) can still fire dragend near where the pointer was.
|
|
133
|
+
dragSession = null;
|
|
134
|
+
/**
|
|
135
|
+
* End an in-flight drag session without a release event (focus lost,
|
|
136
|
+
* screen swap, pointer-state reset): fire dragend at the last known
|
|
137
|
+
* pointer position so consumers aren't left with an orphan session.
|
|
138
|
+
* A session that never started (press without movement) ends silently.
|
|
139
|
+
*/
|
|
140
|
+
finishDragSession() {
|
|
141
|
+
const session = this.dragSession;
|
|
142
|
+
if (!session)
|
|
143
|
+
return;
|
|
144
|
+
this.dragSession = null;
|
|
145
|
+
if (session.started) {
|
|
146
|
+
this.props.onDragDispatch?.(session.target, new DragEvent("dragend", session.lastCol, session.lastRow, session.startCol, session.startRow));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Reset all transient pointer state. Called by Ink when the alt screen
|
|
151
|
+
* is entered/exited and on resize: rects, hover targets, and the click
|
|
152
|
+
* chain from the previous screen geometry/scene must not leak into the
|
|
153
|
+
* new one (stale hover sets would suppress the next real onMouseEnter;
|
|
154
|
+
* a stale clickCount could turn the first click on a fresh screen into
|
|
155
|
+
* a double-click).
|
|
156
|
+
*/
|
|
157
|
+
resetPointerState() {
|
|
158
|
+
this.clickCount = 0;
|
|
159
|
+
this.lastClickTime = 0;
|
|
160
|
+
this.lastClickCol = -1;
|
|
161
|
+
this.lastClickRow = -1;
|
|
162
|
+
this.lastHoverCol = -1;
|
|
163
|
+
this.lastHoverRow = -1;
|
|
164
|
+
// Do NOT clear the pointer gesture latch here. A geometry reset
|
|
165
|
+
// (resize, screen swap) cancels the LOGICAL drag/selection below, but
|
|
166
|
+
// says nothing about the physical button — the user may still be
|
|
167
|
+
// holding it, and Ink's health probe writes (blind DECSET re-assert,
|
|
168
|
+
// DECRQM) must stay barred until a confirmed termination signal:
|
|
169
|
+
// release, no-button motion, or focus-out. Unlatching here let the
|
|
170
|
+
// resize handler's own probe write mid-gesture.
|
|
171
|
+
this.finishDragSession();
|
|
172
|
+
if (this.pendingHyperlinkTimer) {
|
|
173
|
+
clearTimeout(this.pendingHyperlinkTimer);
|
|
174
|
+
this.pendingHyperlinkTimer = null;
|
|
175
|
+
}
|
|
176
|
+
// A drag interrupted by a screen swap has no release coming — settle
|
|
177
|
+
// the selection so copy-on-select fires rather than orphaning
|
|
178
|
+
// isDragging with its drag-to-scroll timer running.
|
|
179
|
+
const sel = this.props.selection;
|
|
180
|
+
if (sel.isDragging) {
|
|
181
|
+
finishSelection(sel);
|
|
182
|
+
this.props.onSelectionChange();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
// Timestamp of last stdin chunk. Used to detect long gaps (tmux attach,
|
|
186
|
+
// ssh reconnect, laptop wake) and trigger terminal mode re-assert.
|
|
187
|
+
// Initialized to now so startup doesn't false-trigger.
|
|
188
|
+
lastStdinTime = Date.now();
|
|
189
|
+
// Raw stdout writer for control sequences that must bypass the frame
|
|
190
|
+
// pipeline (alt-screen enter/exit, mouse-tracking toggles, notifications).
|
|
191
|
+
// A class property (not a render-local closure) so the context value keeps
|
|
192
|
+
// a stable identity — a fresh function per render would re-run
|
|
193
|
+
// <AlternateScreen>'s insertion effect every frame, flapping the alt
|
|
194
|
+
// screen on/off.
|
|
195
|
+
writeRaw = (data) => {
|
|
196
|
+
if (data.includes("\x1b[?1049")) {
|
|
197
|
+
logMouseDebug("stdout:1049", { len: data.length, head: data.slice(0, 60) });
|
|
198
|
+
}
|
|
199
|
+
this.props.stdout.write(data);
|
|
200
|
+
};
|
|
201
|
+
// Determines if TTY is supported on the provided stdin
|
|
202
|
+
isRawModeSupported() {
|
|
203
|
+
return this.props.stdin.isTTY;
|
|
204
|
+
}
|
|
205
|
+
render() {
|
|
206
|
+
return (_jsx(TerminalWriteProvider, { value: this.writeRaw, children: _jsx(TerminalSizeContext.Provider, { value: {
|
|
207
|
+
columns: this.props.terminalColumns,
|
|
208
|
+
rows: this.props.terminalRows,
|
|
209
|
+
}, children: _jsx(AppContext.Provider, { value: {
|
|
210
|
+
exit: this.handleExit,
|
|
211
|
+
stdout: this.props.stdout,
|
|
212
|
+
}, children: _jsx(StdinContext.Provider, { value: {
|
|
213
|
+
stdin: this.props.stdin,
|
|
214
|
+
setRawMode: this.handleSetRawMode,
|
|
215
|
+
isRawModeSupported: this.isRawModeSupported(),
|
|
216
|
+
internal_exitOnCtrlC: this.props.exitOnCtrlC,
|
|
217
|
+
internal_eventEmitter: this.internal_eventEmitter,
|
|
218
|
+
internal_querier: this.querier,
|
|
219
|
+
}, children: _jsx(TerminalFocusProvider, { children: _jsx(ClockProvider, { children: _jsx(CursorDeclarationContext.Provider, { value: this.props.onCursorDeclaration ?? (() => { }), children: this.state.error ? (_jsx(ErrorOverview, { error: this.state.error })) : (this.props.children) }) }) }) }) }) }) }));
|
|
220
|
+
}
|
|
221
|
+
componentDidMount() {
|
|
222
|
+
// In accessibility mode, keep the native cursor visible for screen magnifiers and other tools
|
|
223
|
+
if (this.props.stdout.isTTY &&
|
|
224
|
+
!isEnvTruthy(process.env.DSH_TUI_ACCESSIBILITY)) {
|
|
225
|
+
this.props.stdout.write(HIDE_CURSOR);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
componentWillUnmount() {
|
|
229
|
+
if (this.props.stdout.isTTY) {
|
|
230
|
+
this.props.stdout.write(SHOW_CURSOR);
|
|
231
|
+
}
|
|
232
|
+
this.detachForShutdown();
|
|
233
|
+
}
|
|
234
|
+
/** Release timers and stdin ownership without requiring a React unmount. */
|
|
235
|
+
detachForShutdown() {
|
|
236
|
+
// Clear any pending timers
|
|
237
|
+
if (this.incompleteEscapeTimer) {
|
|
238
|
+
clearTimeout(this.incompleteEscapeTimer);
|
|
239
|
+
this.incompleteEscapeTimer = null;
|
|
240
|
+
}
|
|
241
|
+
if (this.pendingHyperlinkTimer) {
|
|
242
|
+
clearTimeout(this.pendingHyperlinkTimer);
|
|
243
|
+
this.pendingHyperlinkTimer = null;
|
|
244
|
+
}
|
|
245
|
+
if (this.xtversionProbe) {
|
|
246
|
+
clearImmediate(this.xtversionProbe);
|
|
247
|
+
this.xtversionProbe = null;
|
|
248
|
+
}
|
|
249
|
+
this.querier.dispose();
|
|
250
|
+
// ignore calling setRawMode on an handle stdin it cannot be called
|
|
251
|
+
if (this.isRawModeSupported()) {
|
|
252
|
+
while (this.rawModeEnabledCount > 0)
|
|
253
|
+
this.handleSetRawMode(false);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
componentDidCatch(error) {
|
|
257
|
+
this.handleExit(error);
|
|
258
|
+
}
|
|
259
|
+
scheduleXtversionProbe = () => {
|
|
260
|
+
if (this.xtversionAttempted || this.xtversionProbe !== null)
|
|
261
|
+
return;
|
|
262
|
+
this.xtversionProbe = setImmediate(() => {
|
|
263
|
+
this.xtversionProbe = null;
|
|
264
|
+
if (this.rawModeEnabledCount === 0 || this.querier.isSuspended)
|
|
265
|
+
return;
|
|
266
|
+
void Promise.all([
|
|
267
|
+
this.querier.send(xtversion()),
|
|
268
|
+
this.querier.flush(),
|
|
269
|
+
]).then(([r]) => {
|
|
270
|
+
// A handoff may suspend and drain this batch before its sentinel.
|
|
271
|
+
// Leave it retryable once the reply quarantine has ended.
|
|
272
|
+
if (this.querier.isSuspended)
|
|
273
|
+
return;
|
|
274
|
+
this.xtversionAttempted = true;
|
|
275
|
+
if (r) {
|
|
276
|
+
setXtversionName(r.name);
|
|
277
|
+
logForDebugging(`XTVERSION: terminal identified as "${r.name}"`);
|
|
278
|
+
}
|
|
279
|
+
else {
|
|
280
|
+
logForDebugging("XTVERSION: no reply (terminal ignored query)");
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
handleSetRawMode = (isEnabled) => {
|
|
286
|
+
const { stdin } = this.props;
|
|
287
|
+
if (!this.isRawModeSupported()) {
|
|
288
|
+
if (stdin === process.stdin) {
|
|
289
|
+
throw new Error("Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported");
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
throw new Error("Raw mode is not supported on the stdin provided to Ink.\nRead about how to prevent this error on https://github.com/vadimdemedes/ink/#israwmodesupported");
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
stdin.setEncoding("utf8");
|
|
296
|
+
if (isEnabled) {
|
|
297
|
+
// Ensure raw mode is enabled only once
|
|
298
|
+
if (this.rawModeEnabledCount === 0) {
|
|
299
|
+
// Stop early input capture right before we add our own readable handler.
|
|
300
|
+
// Both use the same stdin 'readable' + read() pattern, so they can't
|
|
301
|
+
// coexist -- our handler would drain stdin before Ink's can see it.
|
|
302
|
+
// The buffered text is preserved for REPL.tsx via consumeEarlyInput().
|
|
303
|
+
stopCapturingEarlyInput();
|
|
304
|
+
stdin.ref();
|
|
305
|
+
stdin.setRawMode(true);
|
|
306
|
+
stdin.addListener("readable", this.handleReadable);
|
|
307
|
+
// Enable bracketed paste mode
|
|
308
|
+
this.props.stdout.write(EBP);
|
|
309
|
+
// Enable terminal focus reporting (DECSET 1004)
|
|
310
|
+
this.props.stdout.write(EFE);
|
|
311
|
+
// Enable extended key reporting so ctrl+shift+<letter> is
|
|
312
|
+
// distinguishable from ctrl+<letter>. On native Windows use
|
|
313
|
+
// win32-input-mode instead: kitty/modifyOtherKeys there never
|
|
314
|
+
// attach modifiers to Enter (microsoft/terminal#530), so
|
|
315
|
+
// Shift+Enter is only visible as a win32 INPUT_RECORD
|
|
316
|
+
// (issue #147). Elsewhere, write both the kitty stack push
|
|
317
|
+
// (CSI >1u) and xterm modifyOtherKeys level 2 (CSI >4;2m) —
|
|
318
|
+
// terminals honor whichever they implement (tmux only accepts
|
|
319
|
+
// the latter).
|
|
320
|
+
if (supportsWin32InputMode()) {
|
|
321
|
+
this.props.stdout.write(ENABLE_WIN32_INPUT_MODE);
|
|
322
|
+
}
|
|
323
|
+
else if (supportsExtendedKeys()) {
|
|
324
|
+
this.props.stdout.write(ENABLE_KITTY_KEYBOARD);
|
|
325
|
+
this.props.stdout.write(ENABLE_MODIFY_OTHER_KEYS);
|
|
326
|
+
}
|
|
327
|
+
// Probe terminal identity. XTVERSION survives SSH (query/reply goes
|
|
328
|
+
// through the pty), unlike TERM_PROGRAM. Used for wheel-scroll base
|
|
329
|
+
// detection when env vars are absent. Fire-and-forget: the DA1
|
|
330
|
+
// sentinel bounds the round-trip, and if the terminal ignores the
|
|
331
|
+
// query, flush() still resolves and name stays undefined.
|
|
332
|
+
// Deferred to next tick so it fires AFTER the current synchronous
|
|
333
|
+
// init sequence completes — avoids interleaving with alt-screen/mouse
|
|
334
|
+
// tracking enable writes that may happen in the same render cycle.
|
|
335
|
+
this.scheduleXtversionProbe();
|
|
336
|
+
}
|
|
337
|
+
this.rawModeEnabledCount++;
|
|
338
|
+
return;
|
|
339
|
+
}
|
|
340
|
+
// Cleanups may race App unmount, which already drains every borrower.
|
|
341
|
+
if (this.rawModeEnabledCount === 0)
|
|
342
|
+
return;
|
|
343
|
+
// Disable raw mode only when no components left that are using it
|
|
344
|
+
if (--this.rawModeEnabledCount === 0) {
|
|
345
|
+
this.props.stdout.write(DISABLE_MODIFY_OTHER_KEYS);
|
|
346
|
+
this.props.stdout.write(DISABLE_KITTY_KEYBOARD);
|
|
347
|
+
// No-op on terminals that never entered win32-input-mode
|
|
348
|
+
this.props.stdout.write(DISABLE_WIN32_INPUT_MODE);
|
|
349
|
+
// Disable terminal focus reporting (DECSET 1004)
|
|
350
|
+
this.props.stdout.write(DFE);
|
|
351
|
+
// Disable bracketed paste mode
|
|
352
|
+
this.props.stdout.write(DBP);
|
|
353
|
+
stdin.setRawMode(false);
|
|
354
|
+
stdin.removeListener("readable", this.handleReadable);
|
|
355
|
+
stdin.unref();
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
// Helper to flush incomplete escape sequences
|
|
359
|
+
flushIncomplete = () => {
|
|
360
|
+
// Clear the timer reference
|
|
361
|
+
this.incompleteEscapeTimer = null;
|
|
362
|
+
// Only proceed if we have incomplete sequences
|
|
363
|
+
if (!this.keyParseState.incomplete)
|
|
364
|
+
return;
|
|
365
|
+
// Fullscreen: if stdin has data waiting, it's almost certainly the
|
|
366
|
+
// continuation of the buffered sequence (e.g. `[<64;74;16M` after a
|
|
367
|
+
// lone ESC). Node's event loop runs the timers phase before the poll
|
|
368
|
+
// phase, so when a heavy render blocks the loop past 50ms, this timer
|
|
369
|
+
// fires before the queued readable event even though the bytes are
|
|
370
|
+
// already buffered. Re-arm instead of flushing: handleReadable will
|
|
371
|
+
// drain stdin next and clear this timer. Prevents both the spurious
|
|
372
|
+
// Escape key and the lost scroll event.
|
|
373
|
+
if (this.props.stdin.readableLength > 0) {
|
|
374
|
+
this.incompleteEscapeTimer = setTimeout(this.flushIncomplete, this.NORMAL_TIMEOUT);
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
// Process incomplete as a flush operation (input=null)
|
|
378
|
+
// This reuses all existing parsing logic
|
|
379
|
+
this.processInput(null);
|
|
380
|
+
};
|
|
381
|
+
// Process input through the parser and handle the results
|
|
382
|
+
processInput = (input) => {
|
|
383
|
+
// Parse input using our state machine
|
|
384
|
+
const [keys, newState] = parseMultipleKeypresses(this.keyParseState, input);
|
|
385
|
+
// Gesture latch: a parser-captured SGR mouse prefix (mouseTailHold
|
|
386
|
+
// transitioned to a value, or the tokenizer's `incomplete` buffer
|
|
387
|
+
// starts with an SGR prefix) is byte-level evidence of a mouse event
|
|
388
|
+
// in flight — possibly a press with the physical button already down.
|
|
389
|
+
// Ink's health probe must not write while the report is in flight.
|
|
390
|
+
// This is a PROTOCOL-CANDIDATE latch, not the physical-button latch:
|
|
391
|
+
// it clears on any complete event (mouse or key), ordinary text,
|
|
392
|
+
// paste/response boundary, or the 1s hold deadline — see ink.tsx's
|
|
393
|
+
// setProtocolCandidateActive for the full contract.
|
|
394
|
+
// Candidate state is the OR of both signals: the latch stays active
|
|
395
|
+
// while EITHER a hold or an SGR-prefixed incomplete buffer remains —
|
|
396
|
+
// a flush can move the prefix from `incomplete` into `mouseTailHold`
|
|
397
|
+
// (or back), and treating either transition alone as a falling edge
|
|
398
|
+
// would drop the latch mid-report.
|
|
399
|
+
const hadCandidate = this.keyParseState.mouseTailHold !== undefined || this.keyParseState.incomplete.startsWith('\x1b[<');
|
|
400
|
+
const hasCandidate = newState.mouseTailHold !== undefined || newState.incomplete.startsWith('\x1b[<');
|
|
401
|
+
if (!hadCandidate && hasCandidate) {
|
|
402
|
+
this.props.onProtocolCandidateChange?.(true);
|
|
403
|
+
}
|
|
404
|
+
else if (hadCandidate && !hasCandidate) {
|
|
405
|
+
this.props.onProtocolCandidateChange?.(false);
|
|
406
|
+
// Candidate falling edge (timeout, response, paste boundary,
|
|
407
|
+
// completion): a probe/re-entry blocked by the candidate may be
|
|
408
|
+
// pending — schedule a batch-end drain. The drain re-checks the
|
|
409
|
+
// latch state, so a candidate that fell because a press completed
|
|
410
|
+
// (physical latch now held) stays safe.
|
|
411
|
+
this.pendingReleaseTail = true;
|
|
412
|
+
}
|
|
413
|
+
this.keyParseState = newState;
|
|
414
|
+
// Process ALL keys in a SINGLE discreteUpdates call to prevent
|
|
415
|
+
// "Maximum update depth exceeded" error when many keys arrive at once
|
|
416
|
+
// (e.g., from paste operations or holding keys rapidly).
|
|
417
|
+
// This batches all state updates from handleInput and all useInput
|
|
418
|
+
// listeners together within one high-priority update context.
|
|
419
|
+
if (keys.length > 0) {
|
|
420
|
+
reconciler.discreteUpdates(processKeysInBatch, this, keys, undefined, undefined);
|
|
421
|
+
}
|
|
422
|
+
// If we have incomplete escape sequences, set a timer to flush them
|
|
423
|
+
if (this.keyParseState.incomplete) {
|
|
424
|
+
// Cancel any existing timer first
|
|
425
|
+
if (this.incompleteEscapeTimer) {
|
|
426
|
+
clearTimeout(this.incompleteEscapeTimer);
|
|
427
|
+
}
|
|
428
|
+
// win32Paste.active: a decomposed bracketed paste on classic
|
|
429
|
+
// conhost (markers arrive as win32 key records) gets the same
|
|
430
|
+
// long grace as token-level paste — a mid-paste flush would
|
|
431
|
+
// finalize early and turn the remaining body into real keys.
|
|
432
|
+
const inPaste = this.keyParseState.mode === "IN_PASTE" ||
|
|
433
|
+
this.keyParseState.win32Paste?.active === true;
|
|
434
|
+
this.incompleteEscapeTimer = setTimeout(this.flushIncomplete, inPaste ? this.PASTE_TIMEOUT : this.NORMAL_TIMEOUT);
|
|
435
|
+
}
|
|
436
|
+
};
|
|
437
|
+
handleReadable = () => {
|
|
438
|
+
// Detect long stdin gaps (tmux attach, ssh reconnect, laptop wake).
|
|
439
|
+
// The terminal may have reset DEC private modes; re-assert mouse
|
|
440
|
+
// tracking. One Date.now() covers all chunks in this readable event.
|
|
441
|
+
const now = Date.now();
|
|
442
|
+
const resumedAfterGap = now - this.lastStdinTime > STDIN_RESUME_GAP_MS;
|
|
443
|
+
this.lastStdinTime = now;
|
|
444
|
+
try {
|
|
445
|
+
let chunk;
|
|
446
|
+
while ((chunk = this.props.stdin.read()) !== null) {
|
|
447
|
+
// Process the input chunk
|
|
448
|
+
this.processInput(chunk);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
catch (error) {
|
|
452
|
+
// In Bun, an uncaught throw inside a stream 'readable' handler can
|
|
453
|
+
// permanently wedge the stream: data stays buffered and 'readable'
|
|
454
|
+
// never re-emits. Catching here ensures the stream stays healthy so
|
|
455
|
+
// subsequent keystrokes are still delivered.
|
|
456
|
+
logError(error);
|
|
457
|
+
// Re-attach the listener in case the exception detached it.
|
|
458
|
+
// Bun may remove the listener after an error; without this,
|
|
459
|
+
// the session freezes permanently (stdin reader dead, event loop alive).
|
|
460
|
+
const { stdin } = this.props;
|
|
461
|
+
if (this.rawModeEnabledCount > 0 &&
|
|
462
|
+
!stdin.listeners("readable").includes(this.handleReadable)) {
|
|
463
|
+
logForDebugging("handleReadable: re-attaching stdin readable listener after error recovery", {
|
|
464
|
+
level: "warn",
|
|
465
|
+
});
|
|
466
|
+
stdin.addListener("readable", this.handleReadable);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
// Fire the resume hook only AFTER this batch is parsed. When the first
|
|
470
|
+
// post-gap input is an SGR mouse press, the physical button is already
|
|
471
|
+
// down — but the press only reaches handleMouseEvent (which engages
|
|
472
|
+
// Ink's gesture latch) inside processInput above. Firing before the
|
|
473
|
+
// read loop would let reassertTerminalModes write its blind
|
|
474
|
+
// ENABLE_MOUSE_TRACKING re-assert mid-press, which resets button
|
|
475
|
+
// tracking on WezTerm/xterm.js-family emulators and silently kills
|
|
476
|
+
// the gesture's motion stream.
|
|
477
|
+
if (resumedAfterGap) {
|
|
478
|
+
this.props.onStdinResume?.();
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
handleInput = (input) => {
|
|
482
|
+
// Exit on Ctrl+C
|
|
483
|
+
if (input === "\x03" && this.props.exitOnCtrlC) {
|
|
484
|
+
this.handleExit();
|
|
485
|
+
}
|
|
486
|
+
// Note: Ctrl+Z (suspend) is now handled in processKeysInBatch using the
|
|
487
|
+
// parsed key to support both raw (\x1a) and CSI u format from Kitty
|
|
488
|
+
// keyboard protocol terminals (Ghostty, iTerm2, kitty, WezTerm)
|
|
489
|
+
};
|
|
490
|
+
handleExit = (error) => {
|
|
491
|
+
if (this.isRawModeSupported()) {
|
|
492
|
+
this.handleSetRawMode(false);
|
|
493
|
+
}
|
|
494
|
+
this.props.onExit(error);
|
|
495
|
+
};
|
|
496
|
+
handleTerminalFocus = (isFocused) => {
|
|
497
|
+
// setTerminalFocused notifies subscribers: TerminalFocusProvider (context)
|
|
498
|
+
// and Clock (interval speed) — no App setState needed.
|
|
499
|
+
setTerminalFocused(isFocused);
|
|
500
|
+
};
|
|
501
|
+
handleSuspend = () => {
|
|
502
|
+
if (!this.isRawModeSupported()) {
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
// Store the exact raw mode count to restore it properly
|
|
506
|
+
const rawModeCountBeforeSuspend = this.rawModeEnabledCount;
|
|
507
|
+
// Completely disable raw mode before suspending
|
|
508
|
+
while (this.rawModeEnabledCount > 0) {
|
|
509
|
+
this.handleSetRawMode(false);
|
|
510
|
+
}
|
|
511
|
+
// Show cursor, disable focus reporting, and disable mouse tracking
|
|
512
|
+
// before suspending. DISABLE_MOUSE_TRACKING is a no-op if tracking
|
|
513
|
+
// wasn't enabled, so it's safe to emit unconditionally — without
|
|
514
|
+
// it, SGR mouse sequences would appear as garbled text at the
|
|
515
|
+
// shell prompt while suspended.
|
|
516
|
+
if (this.props.stdout.isTTY) {
|
|
517
|
+
this.props.stdout.write(SHOW_CURSOR + DFE + DISABLE_MOUSE_TRACKING);
|
|
518
|
+
}
|
|
519
|
+
// Notify the application of suspension. The listener manages its notification
|
|
520
|
+
this.internal_eventEmitter.emit("suspend");
|
|
521
|
+
// Set up resume handler
|
|
522
|
+
const resumeHandler = () => {
|
|
523
|
+
// Restore raw mode to exact previous state
|
|
524
|
+
for (let i = 0; i < rawModeCountBeforeSuspend; i++) {
|
|
525
|
+
if (this.isRawModeSupported()) {
|
|
526
|
+
this.handleSetRawMode(true);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
// Hide cursor (unless in accessibility mode) and re-enable focus reporting after resuming
|
|
530
|
+
if (this.props.stdout.isTTY) {
|
|
531
|
+
if (!isEnvTruthy(process.env.DSH_TUI_ACCESSIBILITY)) {
|
|
532
|
+
this.props.stdout.write(HIDE_CURSOR);
|
|
533
|
+
}
|
|
534
|
+
// Re-enable focus reporting to restore terminal state
|
|
535
|
+
this.props.stdout.write(EFE);
|
|
536
|
+
}
|
|
537
|
+
// Notify the application that the terminal resumed
|
|
538
|
+
this.internal_eventEmitter.emit("resume");
|
|
539
|
+
process.removeListener("SIGCONT", resumeHandler);
|
|
540
|
+
};
|
|
541
|
+
process.on("SIGCONT", resumeHandler);
|
|
542
|
+
process.kill(process.pid, "SIGSTOP");
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
// Helper to process all keys within a single discrete update context.
|
|
546
|
+
// discreteUpdates expects (fn, a, b, c, d) -> fn(a, b, c, d)
|
|
547
|
+
function processKeysInBatch(app, items, _unused1, _unused2) {
|
|
548
|
+
// Mouse-chain diagnostics: the single choke point every parsed mouse and
|
|
549
|
+
// wheel event passes through. Empty log here = the terminal never sent
|
|
550
|
+
// the sequences (tracking modes, ConPTY) rather than an in-app loss.
|
|
551
|
+
if (process.env.DSH_TUI_DEBUG_MOUSE) {
|
|
552
|
+
for (const item of items) {
|
|
553
|
+
if (item.kind === "mouse") {
|
|
554
|
+
logMouseDebug("mouse arrive", {
|
|
555
|
+
button: item.button,
|
|
556
|
+
action: item.action,
|
|
557
|
+
col: item.col,
|
|
558
|
+
row: item.row,
|
|
559
|
+
clicksDisabled: isMouseClicksDisabled(),
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
else if (item.kind === "key" &&
|
|
563
|
+
(item.name === "wheelup" || item.name === "wheeldown")) {
|
|
564
|
+
logMouseDebug("wheel arrive", { name: item.name });
|
|
565
|
+
}
|
|
566
|
+
else if (item.kind === "key") {
|
|
567
|
+
logMouseDebug("key arrive", {
|
|
568
|
+
name: item.name,
|
|
569
|
+
seq: (item.sequence ?? "").slice(0, 10),
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
// Update interaction time for notification timeout tracking.
|
|
575
|
+
// This is called from the central input handler to avoid having multiple
|
|
576
|
+
// stdin listeners that can cause race conditions and dropped input.
|
|
577
|
+
// Terminal responses (kind: 'response') are automated, not user input.
|
|
578
|
+
// Mode-1003 no-button motion is also excluded — passive cursor drift is
|
|
579
|
+
// not engagement (would suppress idle notifications + defer housekeeping).
|
|
580
|
+
if (items.some((i) => i.kind === "key" ||
|
|
581
|
+
(i.kind === "mouse" &&
|
|
582
|
+
!((i.button & 0x20) !== 0 && (i.button & 0x03) === 3)))) {
|
|
583
|
+
updateLastInteractionTime();
|
|
584
|
+
}
|
|
585
|
+
for (let i = 0; i < items.length; i++) {
|
|
586
|
+
const item = items[i];
|
|
587
|
+
// Terminal responses (DECRPM, DA1, OSC replies, etc.) are not user
|
|
588
|
+
// input — route them to the querier to resolve pending promises.
|
|
589
|
+
if (item.kind === "response") {
|
|
590
|
+
app.querier.onResponse(item.response);
|
|
591
|
+
continue;
|
|
592
|
+
}
|
|
593
|
+
// Mouse click/drag events update selection state (fullscreen only).
|
|
594
|
+
// Terminal sends 1-indexed col/row; convert to 0-indexed for the
|
|
595
|
+
// screen buffer. Button bit 0x20 = drag (motion while button held).
|
|
596
|
+
// Process EVERY no-button motion boundary: A→outside→A in one stdin
|
|
597
|
+
// chunk must emit leave/re-enter so tooltip dwell restarts. Inert motion
|
|
598
|
+
// remains cheap through dispatchHover's per-root no-interest rect, and
|
|
599
|
+
// exact same-cell repeats are dropped by handleMouseEvent's coordinates.
|
|
600
|
+
if (item.kind === "mouse") {
|
|
601
|
+
handleMouseEvent(app, item);
|
|
602
|
+
continue;
|
|
603
|
+
}
|
|
604
|
+
const sequence = item.sequence;
|
|
605
|
+
// Handle terminal focus events (DECSET 1004)
|
|
606
|
+
if (sequence === FOCUS_IN) {
|
|
607
|
+
app.handleTerminalFocus(true);
|
|
608
|
+
// Refocus is the first observable moment after a terminal-side
|
|
609
|
+
// mode reset (conpty drops 1049/mouse on DPI moves, renderer
|
|
610
|
+
// restarts, window snapping): probe and self-heal. Deferred to
|
|
611
|
+
// the batch tail — a single stdin chunk can carry FOCUS_IN +
|
|
612
|
+
// press, and the probe must not write before the press latch
|
|
613
|
+
// is established.
|
|
614
|
+
app.pendingFocusProbe = true;
|
|
615
|
+
const event = new TerminalFocusEvent("terminalfocus");
|
|
616
|
+
app.internal_eventEmitter.emit("terminalfocus", event);
|
|
617
|
+
continue;
|
|
618
|
+
}
|
|
619
|
+
if (sequence === FOCUS_OUT) {
|
|
620
|
+
app.handleTerminalFocus(false);
|
|
621
|
+
// Gesture latch: focus loss means no release event is coming for
|
|
622
|
+
// a held button (released outside the window or swallowed by the
|
|
623
|
+
// OS) — clear the held-button set so the health probe may write
|
|
624
|
+
// again.
|
|
625
|
+
app.heldButtons = 0;
|
|
626
|
+
app.ambiguousHeld = false;
|
|
627
|
+
app.props.onPointerGestureChange?.(false);
|
|
628
|
+
// Drag protocol: focus loss also orphans an in-flight drag
|
|
629
|
+
// session — settle it with a dragend (if started) like the
|
|
630
|
+
// selection recovery below.
|
|
631
|
+
app.finishDragSession();
|
|
632
|
+
// Defensive: if we lost the release event (mouse released outside
|
|
633
|
+
// terminal window — some emulators drop it rather than capturing the
|
|
634
|
+
// pointer), focus-out is the next observable signal that the drag is
|
|
635
|
+
// over. Without this, drag-to-scroll's timer runs until the scroll
|
|
636
|
+
// boundary is hit.
|
|
637
|
+
if (app.props.selection.isDragging) {
|
|
638
|
+
finishSelection(app.props.selection);
|
|
639
|
+
app.props.onSelectionChange();
|
|
640
|
+
}
|
|
641
|
+
// Safe boundary: mark the batch for a deferred drain at the batch
|
|
642
|
+
// tail (not mid-batch — see release's finally).
|
|
643
|
+
app.pendingReleaseTail = true;
|
|
644
|
+
const event = new TerminalFocusEvent("terminalblur");
|
|
645
|
+
app.internal_eventEmitter.emit("terminalblur", event);
|
|
646
|
+
continue;
|
|
647
|
+
}
|
|
648
|
+
// Failsafe: if we receive input, the terminal must be focused
|
|
649
|
+
if (!getTerminalFocused()) {
|
|
650
|
+
setTerminalFocused(true);
|
|
651
|
+
}
|
|
652
|
+
// Handle Ctrl+Z (suspend) using parsed key to support both raw (\x1a) and
|
|
653
|
+
// CSI u format (\x1b[122;5u) from Kitty keyboard protocol terminals
|
|
654
|
+
if (item.name === "z" && item.ctrl && SUPPORTS_SUSPEND) {
|
|
655
|
+
app.handleSuspend();
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
// Wheel keys carry the pointer position (SGR/X10 col/row). Route
|
|
659
|
+
// position-first: if a scroll container sits under the pointer, its
|
|
660
|
+
// onWheel consumes the event and the legacy global keybinding path
|
|
661
|
+
// never fires — exactly one layer scrolls. Events without coords
|
|
662
|
+
// (shouldn't happen for wheel) or over non-scroll areas fall
|
|
663
|
+
// through to the normal input path (Chat scrolls the transcript).
|
|
664
|
+
// Skipped during the post-handoff suppression window: a terminal
|
|
665
|
+
// replay burst can contain mouse-wheel fragments, and use-input's
|
|
666
|
+
// choke point never sees events consumed here.
|
|
667
|
+
if ((item.name === "wheelup" ||
|
|
668
|
+
item.name === "wheeldown" ||
|
|
669
|
+
item.name === "wheelleft" ||
|
|
670
|
+
item.name === "wheelright") &&
|
|
671
|
+
item.mouseCol !== undefined &&
|
|
672
|
+
item.mouseRow !== undefined &&
|
|
673
|
+
!isInputSuppressed()) {
|
|
674
|
+
const step = (item.name === "wheelup" || item.name === "wheelleft") ? -3 : 3;
|
|
675
|
+
const deltaY = item.name === "wheelup" || item.name === "wheeldown" ? step : 0;
|
|
676
|
+
const deltaX = item.name === "wheelleft" || item.name === "wheelright" ? step : 0;
|
|
677
|
+
const consumed = app.props.onWheelAt(item.mouseCol, item.mouseRow, deltaY, deltaX, item.mouseButton);
|
|
678
|
+
if (consumed) {
|
|
679
|
+
logMouseDebug("wheel routed by position", {
|
|
680
|
+
col: item.mouseCol,
|
|
681
|
+
row: item.mouseRow,
|
|
682
|
+
deltaY,
|
|
683
|
+
deltaX,
|
|
684
|
+
name: item.name,
|
|
685
|
+
});
|
|
686
|
+
continue;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
app.handleInput(sequence);
|
|
690
|
+
const event = new InputEvent(item);
|
|
691
|
+
app.internal_eventEmitter.emit("input", event);
|
|
692
|
+
// Also dispatch through the DOM tree so onKeyDown handlers fire.
|
|
693
|
+
app.props.dispatchKeyboardEvent(item);
|
|
694
|
+
}
|
|
695
|
+
// Batch tail: drain the deferred alt-screen re-entry / blocked probe if
|
|
696
|
+
// any release, focus-out, or no-button motion cleared the gesture latch
|
|
697
|
+
// during this batch. The drain is deferred to the batch tail so a single
|
|
698
|
+
// stdin chunk carrying `release → next press` doesn't write probe bytes
|
|
699
|
+
// into the next gesture's opening window.
|
|
700
|
+
if (app.pendingReleaseTail) {
|
|
701
|
+
app.pendingReleaseTail = false;
|
|
702
|
+
app.props.onReleaseTail?.();
|
|
703
|
+
}
|
|
704
|
+
// Focus-in probe is also deferred to the batch tail: a single stdin chunk
|
|
705
|
+
// can carry FOCUS_IN + press, and the probe must not write before the
|
|
706
|
+
// press latch is established.
|
|
707
|
+
if (app.pendingFocusProbe) {
|
|
708
|
+
app.pendingFocusProbe = false;
|
|
709
|
+
app.props.onTerminalFocus?.(true);
|
|
710
|
+
}
|
|
711
|
+
// Release-click probe deferred via deferProbe fires at the batch tail.
|
|
712
|
+
if (app.pendingClickProbe) {
|
|
713
|
+
app.pendingClickProbe = false;
|
|
714
|
+
app.props.onClickProbe?.();
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
/** Exported for testing. Mutates app.props.selection and click/hover state. */
|
|
718
|
+
export function handleMouseEvent(app, m) {
|
|
719
|
+
const sel = app.props.selection;
|
|
720
|
+
// Terminal coords are 1-indexed; screen buffer is 0-indexed. Clamp to
|
|
721
|
+
// the current frame's dimensions: a resize (or a terminal reporting a
|
|
722
|
+
// stale position) can deliver coordinates outside the screen buffer,
|
|
723
|
+
// and selection/hyperlink reads assume in-bounds cells.
|
|
724
|
+
const col = Math.max(0, Math.min(m.col - 1, app.props.terminalColumns - 1));
|
|
725
|
+
const row = Math.max(0, Math.min(m.row - 1, app.props.terminalRows - 1));
|
|
726
|
+
const baseButton = m.button & 0x03;
|
|
727
|
+
// Transport-layer button state: track held buttons BEFORE the
|
|
728
|
+
// click-disabled gate, so DSH_TUI_DISABLE_MOUSE=1 still maintains the
|
|
729
|
+
// physical latch (probe must not write while a button is held even if
|
|
730
|
+
// clicks are disabled). SGR encodes button identity in the low 2 bits;
|
|
731
|
+
// X10's generic release (low bits 3) cannot identify which button ended,
|
|
732
|
+
// so it conservatively enters an ambiguous-held state — the probe stays
|
|
733
|
+
// blocked until a reliable termination signal (no-button motion,
|
|
734
|
+
// focus-out, or a fresh press identifying the still-held button).
|
|
735
|
+
const wasLatched = app.heldButtons !== 0 || app.ambiguousHeld;
|
|
736
|
+
if (m.action === "press") {
|
|
737
|
+
if ((m.button & 0x20) !== 0 && baseButton === 3) {
|
|
738
|
+
// Mode-1003 no-button motion: no button held.
|
|
739
|
+
app.heldButtons = 0;
|
|
740
|
+
app.ambiguousHeld = false;
|
|
741
|
+
}
|
|
742
|
+
else {
|
|
743
|
+
// Real press: add the button to the held set.
|
|
744
|
+
app.heldButtons |= 1 << baseButton;
|
|
745
|
+
app.ambiguousHeld = false;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
else {
|
|
749
|
+
// Release: SGR encodes the released button; X10's generic release
|
|
750
|
+
// (low bits 3) cannot identify which button ended — conservatively
|
|
751
|
+
// keep the probe blocked (ambiguous-held) until a reliable
|
|
752
|
+
// termination signal arrives.
|
|
753
|
+
if (baseButton === 3) {
|
|
754
|
+
app.heldButtons = 0;
|
|
755
|
+
app.ambiguousHeld = true;
|
|
756
|
+
}
|
|
757
|
+
else {
|
|
758
|
+
app.heldButtons &= ~(1 << baseButton);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
const isLatched = app.heldButtons !== 0 || app.ambiguousHeld;
|
|
762
|
+
app.props.onPointerGestureChange?.(isLatched);
|
|
763
|
+
// Falling edge (latched → unlatched) is a recovery boundary: schedule a
|
|
764
|
+
// batch-end drain even when the click policy below will consume or skip
|
|
765
|
+
// the event — pending probe/re-entry recovery must not depend on click
|
|
766
|
+
// policy. The drain itself re-checks the latch state at the batch tail,
|
|
767
|
+
// so a `release → next press` chunk stays safe.
|
|
768
|
+
if (wasLatched && !isLatched) {
|
|
769
|
+
app.pendingReleaseTail = true;
|
|
770
|
+
}
|
|
771
|
+
// Allow disabling click handling while keeping wheel scroll (which goes
|
|
772
|
+
// through the keybinding system as 'wheelup'/'wheeldown', not here).
|
|
773
|
+
if (isMouseClicksDisabled())
|
|
774
|
+
return;
|
|
775
|
+
if (m.action === "press") {
|
|
776
|
+
if ((m.button & 0x20) !== 0 && baseButton === 3) {
|
|
777
|
+
// Mode-1003 motion with no button held. Dispatch hover; skip the
|
|
778
|
+
// rest of this handler (no selection, no click-count side effects).
|
|
779
|
+
// Lost-release recovery: no-button motion while isDragging=true means
|
|
780
|
+
// the release happened outside the terminal window (iTerm2 doesn't
|
|
781
|
+
// capture the pointer past window bounds, so the SGR 'm' never
|
|
782
|
+
// arrives). Finish the selection here so copy-on-select fires. The
|
|
783
|
+
// FOCUS_OUT handler covers the "switched apps" case but not "released
|
|
784
|
+
// past the edge, came back" — and tmux drops focus events unless
|
|
785
|
+
// `focus-events on` is set, so this is the more reliable signal.
|
|
786
|
+
if (sel.isDragging) {
|
|
787
|
+
finishSelection(sel);
|
|
788
|
+
app.props.onSelectionChange();
|
|
789
|
+
}
|
|
790
|
+
// Transport layer above already cleared heldButtons/ambiguousHeld
|
|
791
|
+
// and fired onPointerGestureChange — no duplicate unlatch here.
|
|
792
|
+
// Drag protocol: no-button motion during a drag session means
|
|
793
|
+
// the release was dropped (pointer left the window) — settle
|
|
794
|
+
// the session before the hover path takes over.
|
|
795
|
+
app.finishDragSession();
|
|
796
|
+
// Safe boundary: mark the batch for a deferred drain at the batch
|
|
797
|
+
// tail (not mid-batch — see release's finally).
|
|
798
|
+
app.pendingReleaseTail = true;
|
|
799
|
+
if (col === app.lastHoverCol && row === app.lastHoverRow)
|
|
800
|
+
return;
|
|
801
|
+
app.lastHoverCol = col;
|
|
802
|
+
app.lastHoverRow = row;
|
|
803
|
+
app.props.onHoverAt(col, row);
|
|
804
|
+
return;
|
|
805
|
+
}
|
|
806
|
+
// X10 cannot report releases. A fresh button press after a captured
|
|
807
|
+
// drag is therefore the first reliable evidence that the old gesture
|
|
808
|
+
// ended; settle it before this press can open a replacement session.
|
|
809
|
+
// The same fallback is harmless for malformed/duplicated SGR streams.
|
|
810
|
+
if ((m.button & 0x20) === 0 && app.dragSession) {
|
|
811
|
+
app.finishDragSession();
|
|
812
|
+
}
|
|
813
|
+
// Held-button state is updated in the transport layer above (before
|
|
814
|
+
// the click-disabled gate); no separate latch call needed here.
|
|
815
|
+
if (baseButton !== 0) {
|
|
816
|
+
// Non-left press breaks the multi-click chain.
|
|
817
|
+
app.clickCount = 0;
|
|
818
|
+
// Right-button press fires a contextmenu (DOM semantics: the
|
|
819
|
+
// menu shows on mousedown, not release). Dispatch BEFORE
|
|
820
|
+
// returning so the hit-test sees the frame the pointer is
|
|
821
|
+
// over; the row's own handler decides whether focus follows.
|
|
822
|
+
// Right-drag (motion bit) is a selection gesture, not a menu
|
|
823
|
+
// — skip it.
|
|
824
|
+
if (baseButton === 2 && (m.button & 0x20) === 0) {
|
|
825
|
+
app.props.onContextMenuAt(col, row, m.button);
|
|
826
|
+
}
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
if ((m.button & 0x20) !== 0) {
|
|
830
|
+
// Drag protocol motion: a live drag session owns the gesture —
|
|
831
|
+
// first motion fires dragstart (DOM: dragstart fires on first
|
|
832
|
+
// move, not press), then dragmove. Selection drag is skipped
|
|
833
|
+
// entirely (startSelection never ran for this press).
|
|
834
|
+
const session = app.dragSession;
|
|
835
|
+
if (session) {
|
|
836
|
+
// Anchor-cell exemption (parity with selection.ts): motion
|
|
837
|
+
// landing on the press cell is hand jitter, not a drag —
|
|
838
|
+
// keep the session dormant so release resolves to the plain
|
|
839
|
+
// click path (and the input's double-click detector sees
|
|
840
|
+
// the press). Without it, trackpads/1002 terminals turn a
|
|
841
|
+
// wobbly click into a 1-cell drag selection.
|
|
842
|
+
if (col === session.startCol && row === session.startRow) {
|
|
843
|
+
return;
|
|
844
|
+
}
|
|
845
|
+
session.lastCol = col;
|
|
846
|
+
session.lastRow = row;
|
|
847
|
+
if (!session.started) {
|
|
848
|
+
session.started = true;
|
|
849
|
+
app.props.onDragDispatch?.(session.target, new DragEvent("dragstart", col, row, session.startCol, session.startRow, { button: m.button }));
|
|
850
|
+
}
|
|
851
|
+
app.props.onDragDispatch?.(session.target, new DragEvent("dragmove", col, row, session.startCol, session.startRow, { button: m.button }));
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
// Drag motion: mode-aware extension (char/word/line). onSelectionDrag
|
|
855
|
+
// calls notifySelectionChange internally — no extra onSelectionChange.
|
|
856
|
+
app.props.onSelectionDrag(col, row);
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
// Lost-release fallback for mode-1002-only terminals: a fresh press
|
|
860
|
+
// while isDragging=true means the previous release was dropped (cursor
|
|
861
|
+
// left the window). Finish that selection so copy-on-select fires
|
|
862
|
+
// before startSelection/onMultiClick clobbers it. Mode-1003 terminals
|
|
863
|
+
// hit the no-button-motion recovery above instead, so this is rare.
|
|
864
|
+
if (sel.isDragging) {
|
|
865
|
+
finishSelection(sel);
|
|
866
|
+
app.props.onSelectionChange();
|
|
867
|
+
}
|
|
868
|
+
// Drag protocol: an UNMODIFIED left press over a node whose
|
|
869
|
+
// ancestor chain carries an onDragStart handler opens a drag
|
|
870
|
+
// session INSTEAD of text selection / multi-click. Modifier bits
|
|
871
|
+
// (0x04 shift / 0x08 alt / 0x10 ctrl) keep the baseline selection
|
|
872
|
+
// gesture — they never hijack. The session stays dormant until the
|
|
873
|
+
// first drag motion; a press+release without movement resolves to
|
|
874
|
+
// a normal click on release (see the release branch).
|
|
875
|
+
if (app.props.onDragTargetAt && (m.button & 0x1c) === 0) {
|
|
876
|
+
const dragTarget = app.props.onDragTargetAt(col, row);
|
|
877
|
+
if (dragTarget) {
|
|
878
|
+
app.dragSession = {
|
|
879
|
+
target: dragTarget,
|
|
880
|
+
startCol: col,
|
|
881
|
+
startRow: row,
|
|
882
|
+
lastCol: col,
|
|
883
|
+
lastRow: row,
|
|
884
|
+
started: false,
|
|
885
|
+
};
|
|
886
|
+
// A drag press must not feed the multi-click chain.
|
|
887
|
+
app.clickCount = 0;
|
|
888
|
+
return;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
// Modifier presses (shift/alt/ctrl) are selection-extension
|
|
892
|
+
// gestures — Shift+click extends the input selection via the click
|
|
893
|
+
// path, never a double-click word selection. Break the multi-click
|
|
894
|
+
// chain here: two Shift+clicks inside the 500ms/1-cell window must
|
|
895
|
+
// not fire onMultiClick (screen word select would swallow the click
|
|
896
|
+
// dispatch and overwrite the clipboard).
|
|
897
|
+
if ((m.button & 0x1c) !== 0) {
|
|
898
|
+
app.clickCount = 0;
|
|
899
|
+
app.lastClickTime = 0;
|
|
900
|
+
app.lastClickCol = -1;
|
|
901
|
+
app.lastClickRow = -1;
|
|
902
|
+
// Do not immediately seed the chain again: a Shift+click followed by
|
|
903
|
+
// a plain click in the same cell must remain two single clicks.
|
|
904
|
+
startSelection(sel, col, row);
|
|
905
|
+
sel.lastPressHadAlt = (m.button & 0x08) !== 0;
|
|
906
|
+
app.props.onSelectionChange();
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
// Fresh left press. Detect multi-click HERE (not on release) so the
|
|
910
|
+
// word/line highlight appears immediately and a subsequent drag can
|
|
911
|
+
// extend by word/line like native macOS. Previously detected on
|
|
912
|
+
// release, which meant (a) visible latency before the word highlights
|
|
913
|
+
// and (b) double-click+drag fell through to char-mode selection.
|
|
914
|
+
const now = Date.now();
|
|
915
|
+
const nearLast = now - app.lastClickTime < MULTI_CLICK_TIMEOUT_MS &&
|
|
916
|
+
Math.abs(col - app.lastClickCol) <= MULTI_CLICK_DISTANCE &&
|
|
917
|
+
Math.abs(row - app.lastClickRow) <= MULTI_CLICK_DISTANCE;
|
|
918
|
+
app.clickCount = nearLast ? app.clickCount + 1 : 1;
|
|
919
|
+
app.lastClickTime = now;
|
|
920
|
+
app.lastClickCol = col;
|
|
921
|
+
app.lastClickRow = row;
|
|
922
|
+
if (app.clickCount >= 2) {
|
|
923
|
+
// Cancel any pending hyperlink-open from the first click — this is
|
|
924
|
+
// a double-click, not a single-click on a link.
|
|
925
|
+
if (app.pendingHyperlinkTimer) {
|
|
926
|
+
clearTimeout(app.pendingHyperlinkTimer);
|
|
927
|
+
app.pendingHyperlinkTimer = null;
|
|
928
|
+
}
|
|
929
|
+
// Cap at 3 (line select) for quadruple+ clicks.
|
|
930
|
+
const count = app.clickCount === 2 ? 2 : 3;
|
|
931
|
+
app.props.onMultiClick(col, row, count);
|
|
932
|
+
return;
|
|
933
|
+
}
|
|
934
|
+
startSelection(sel, col, row);
|
|
935
|
+
// SGR bit 0x08 = alt (xterm.js wires altKey here, not metaKey — see
|
|
936
|
+
// comment at the hyperlink-open guard below). On macOS xterm.js,
|
|
937
|
+
// receiving alt means macOptionClickForcesSelection is OFF (otherwise
|
|
938
|
+
// xterm.js would have consumed the event for native selection).
|
|
939
|
+
sel.lastPressHadAlt = (m.button & 0x08) !== 0;
|
|
940
|
+
app.props.onSelectionChange();
|
|
941
|
+
return;
|
|
942
|
+
}
|
|
943
|
+
// Release: settle a captured component drag BEFORE filtering on the raw
|
|
944
|
+
// low button bits. Some terminals encode release as button=3 (legacy
|
|
945
|
+
// "no button") or retain the motion bit. A started session still needs
|
|
946
|
+
// dragend; a dormant press still needs its ordinary click replay.
|
|
947
|
+
// Held-button state is updated in the transport layer above (before the
|
|
948
|
+
// click-disabled gate); the release branch only handles selection/click
|
|
949
|
+
// policy.
|
|
950
|
+
try {
|
|
951
|
+
let replayedDormantDrag = false;
|
|
952
|
+
if (app.dragSession) {
|
|
953
|
+
const session = app.dragSession;
|
|
954
|
+
app.dragSession = null;
|
|
955
|
+
if (session.started) {
|
|
956
|
+
app.props.onDragDispatch?.(session.target, new DragEvent("dragend", col, row, session.startCol, session.startRow, { button: m.button }));
|
|
957
|
+
return;
|
|
958
|
+
}
|
|
959
|
+
startSelection(sel, col, row);
|
|
960
|
+
replayedDormantDrag = true;
|
|
961
|
+
}
|
|
962
|
+
// Classic X10 encodes every release as low bits 3. If a left selection is
|
|
963
|
+
// active, pair that generic release with it and continue through the normal
|
|
964
|
+
// click/selection tail; an unrelated middle/right release has no active
|
|
965
|
+
// selection and remains inert.
|
|
966
|
+
if (baseButton !== 0 && !replayedDormantDrag && !sel.isDragging)
|
|
967
|
+
return;
|
|
968
|
+
finishSelection(sel);
|
|
969
|
+
// NOTE: unlike the old release-based detection we do NOT reset clickCount
|
|
970
|
+
// on release-after-drag. This aligns with NSEvent.clickCount semantics:
|
|
971
|
+
// an intervening drag doesn't break the click chain. Practical upside:
|
|
972
|
+
// trackpad jitter during an intended double-click (press→wobble→release
|
|
973
|
+
// →press) now correctly resolves to word-select instead of breaking to a
|
|
974
|
+
// fresh single click. The nearLast window (500ms, 1 cell) bounds the
|
|
975
|
+
// effect — a deliberate drag past that just starts a fresh chain.
|
|
976
|
+
// A press+release with no drag in char mode is a click: anchor set,
|
|
977
|
+
// focus null → hasSelection false. In word/line mode the press already
|
|
978
|
+
// set anchor+focus (hasSelection true), so release just keeps the
|
|
979
|
+
// highlight. The anchor check guards against an orphaned release (no
|
|
980
|
+
// prior press — e.g. button was held when mouse tracking was enabled).
|
|
981
|
+
if (!hasSelection(sel) && sel.anchor) {
|
|
982
|
+
// Single click: dispatch DOM click immediately (cursor repositioning
|
|
983
|
+
// etc. are latency-sensitive). If no DOM handler consumed it, defer
|
|
984
|
+
// the hyperlink check so a second click can cancel it. deferProbe:
|
|
985
|
+
// the health probe is deferred to the batch tail — a single stdin
|
|
986
|
+
// chunk can carry `release → next press`, and the probe must not
|
|
987
|
+
// write before the next press latch is established.
|
|
988
|
+
app.pendingClickProbe = true;
|
|
989
|
+
if (!app.props.onClickAt(col, row, m.button, true)) {
|
|
990
|
+
// Resolve the hyperlink URL synchronously while the screen buffer
|
|
991
|
+
// still reflects what the user clicked — deferring only the
|
|
992
|
+
// browser-open so double-click can cancel it.
|
|
993
|
+
const url = app.props.getHyperlinkAt(col, row);
|
|
994
|
+
// xterm.js (VS Code, Cursor, Windsurf, etc.) has its own OSC 8 link
|
|
995
|
+
// handler that fires on Cmd+click *without consuming the mouse event*
|
|
996
|
+
// (Linkifier._handleMouseUp calls link.activate() but never
|
|
997
|
+
// preventDefault/stopPropagation). The click is also forwarded to the
|
|
998
|
+
// pty as SGR, so both VS Code's terminalLinkManager AND our handler
|
|
999
|
+
// here would open the URL — twice. We can't filter on Cmd: xterm.js
|
|
1000
|
+
// drops metaKey before SGR encoding (ICoreMouseEvent has no meta
|
|
1001
|
+
// field; the SGR bit we call 'meta' is wired to alt). Let xterm.js
|
|
1002
|
+
// own link-opening; Cmd+click is the native UX there anyway.
|
|
1003
|
+
// TERM_PROGRAM is the sync fast-path; isXtermJs() is the XTVERSION
|
|
1004
|
+
// probe result (catches SSH + non-VS Code embedders like Hyper).
|
|
1005
|
+
if (url && process.env.TERM_PROGRAM !== "vscode" && !isXtermJs()) {
|
|
1006
|
+
// Clear any prior pending timer — clicking a second link
|
|
1007
|
+
// supersedes the first (only the latest click opens).
|
|
1008
|
+
if (app.pendingHyperlinkTimer) {
|
|
1009
|
+
clearTimeout(app.pendingHyperlinkTimer);
|
|
1010
|
+
}
|
|
1011
|
+
app.pendingHyperlinkTimer = setTimeout((app, url) => {
|
|
1012
|
+
app.pendingHyperlinkTimer = null;
|
|
1013
|
+
app.props.onOpenHyperlink(url);
|
|
1014
|
+
}, MULTI_CLICK_TIMEOUT_MS, app, url);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
app.props.onSelectionChange();
|
|
1019
|
+
}
|
|
1020
|
+
finally {
|
|
1021
|
+
// The gesture latch cleared at the START of this release. Mark the
|
|
1022
|
+
// batch for a deferred drain at the batch tail — a single stdin chunk
|
|
1023
|
+
// can carry `release → next press`, and draining between them would
|
|
1024
|
+
// write probe bytes into the next gesture's opening window.
|
|
1025
|
+
app.pendingReleaseTail = true;
|
|
1026
|
+
}
|
|
1027
|
+
}
|