zidane-ui 9.1.17 → 9.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -39
- package/dist/adapters/browser-appearance-host.d.ts +10 -5
- package/dist/adapters/browser-appearance-host.js +1 -10
- package/dist/adapters/browser-keybindings-host.d.ts +14 -6
- package/dist/adapters/browser-keybindings-host.js +1 -13
- package/dist/adapters/browser-window-settings.d.ts +67 -0
- package/dist/adapters/browser-window-settings.js +124 -0
- package/dist/adapters/browser-workspace-host.d.ts +2 -5
- package/dist/adapters/browser-workspace-host.js +2 -2
- package/dist/adapters/closable-client.d.ts +3 -6
- package/dist/adapters/closable-client.js +1 -2
- package/dist/adapters/extension-modules.d.ts +24 -27
- package/dist/adapters/extension-modules.js +8 -7
- package/dist/adapters/index.d.ts +17 -16
- package/dist/adapters/index.js +14 -13
- package/dist/adapters/live-events.d.ts +5 -0
- package/dist/adapters/live.d.ts +40 -26
- package/dist/adapters/live.js +1 -2
- package/dist/adapters/run-host.d.ts +25 -14
- package/dist/adapters/run-host.js +1 -2
- package/dist/adapters/server-approvals-host.d.ts +2 -5
- package/dist/adapters/server-approvals-host.js +1 -2
- package/dist/adapters/server-client.d.ts +5 -0
- package/dist/adapters/server-composer-host.d.ts +4 -7
- package/dist/adapters/server-composer-host.js +19 -37
- package/dist/adapters/server-custom-frame.d.ts +3 -6
- package/dist/adapters/server-custom-frame.js +12 -20
- package/dist/adapters/server-extensions-host.d.ts +52 -19
- package/dist/adapters/server-extensions-host.js +25 -57
- package/dist/adapters/server-files-host.d.ts +2 -5
- package/dist/adapters/server-files-host.js +3 -16
- package/dist/adapters/server-git-host.d.ts +2 -5
- package/dist/adapters/server-git-host.js +7 -32
- package/dist/adapters/server-host.d.ts +10 -13
- package/dist/adapters/server-host.js +50 -17
- package/dist/adapters/server-machines-host.d.ts +5 -8
- package/dist/adapters/server-machines-host.js +2 -34
- package/dist/adapters/server-media.d.ts +22 -0
- package/dist/adapters/server-media.js +38 -0
- package/dist/adapters/server-oauth-flow.d.ts +3 -6
- package/dist/adapters/server-oauth-flow.js +3 -4
- package/dist/adapters/server-onboarding-host.d.ts +42 -7
- package/dist/adapters/server-onboarding-host.js +20 -36
- package/dist/adapters/server-palette-host.d.ts +7 -7
- package/dist/adapters/server-palette-host.js +18 -5
- package/dist/adapters/server-session-host.d.ts +4 -7
- package/dist/adapters/server-session-host.js +2 -3
- package/dist/adapters/server-settings-accounts.d.ts +1 -4
- package/dist/adapters/server-settings-accounts.js +5 -6
- package/dist/adapters/server-settings-host.d.ts +9 -7
- package/dist/adapters/server-settings-host.js +56 -15
- package/dist/adapters/server-settings-models.d.ts +11 -4
- package/dist/adapters/server-settings-models.js +1 -2
- package/dist/adapters/server-settings-performance.d.ts +1 -4
- package/dist/adapters/server-settings-performance.js +3 -14
- package/dist/adapters/server-settings-sections.d.ts +2 -5
- package/dist/adapters/server-settings-sections.js +28 -36
- package/dist/adapters/server-sidebar-host.d.ts +16 -5
- package/dist/adapters/server-sidebar-host.js +3 -18
- package/dist/adapters/server-terminal-host.d.ts +2 -5
- package/dist/adapters/server-terminal-host.js +1 -2
- package/dist/adapters/server-transcript-members.d.ts +2 -5
- package/dist/adapters/server-transcript-members.js +1 -19
- package/dist/adapters/server-views-host.d.ts +8 -5
- package/dist/adapters/server-views-host.js +94 -20
- package/dist/adapters/sse-host.d.ts +13 -8
- package/dist/adapters/sse-host.js +11 -9
- package/dist/adapters/sse-parser.d.ts +6 -9
- package/dist/adapters/sse-parser.js +1 -2
- package/dist/adapters/sse-protocol.d.ts +49 -16
- package/dist/adapters/sse-protocol.js +1 -2
- package/dist/adapters/stream-pacer.d.ts +18 -8
- package/dist/adapters/stream-pacer.js +1 -2
- package/dist/adapters/worker-host.d.ts +4 -7
- package/dist/adapters/worker-host.js +3 -4
- package/dist/adapters/worker-protocol.d.ts +30 -13
- package/dist/adapters/worker-protocol.js +1 -2
- package/dist/app/AppHostProvider.d.ts +25 -6
- package/dist/app/AppHostProvider.js +14 -29
- package/dist/app/ModalProvider.d.ts +52 -22
- package/dist/app/ModalProvider.js +36 -57
- package/dist/app/Toaster.d.ts +21 -0
- package/dist/app/Toaster.js +32 -0
- package/dist/app/headless/app-host.d.ts +21 -15
- package/dist/app/headless/index.d.ts +5 -1
- package/dist/app/headless/resource.d.ts +28 -31
- package/dist/app/headless/resource.js +1 -2
- package/dist/app/index.d.ts +8 -2
- package/dist/app/index.js +3 -2
- package/dist/app/testing/index.d.ts +17 -15
- package/dist/app/testing/index.js +2 -8
- package/dist/app/toast.d.ts +68 -0
- package/dist/app/toast.js +195 -0
- package/dist/app/useConfirm.d.ts +13 -5
- package/dist/app/useConfirm.js +1 -13
- package/dist/app/useResource.d.ts +5 -4
- package/dist/app/useResource.js +1 -6
- package/dist/appearance/AppearanceProvider.d.ts +35 -21
- package/dist/appearance/AppearanceProvider.js +6 -24
- package/dist/appearance/ZoomIndicator.d.ts +31 -0
- package/dist/appearance/ZoomIndicator.js +124 -0
- package/dist/appearance/apply.d.ts +7 -6
- package/dist/appearance/apply.js +2 -6
- package/dist/appearance/headless/fixture-host.d.ts +17 -15
- package/dist/appearance/headless/fixture-host.js +1 -2
- package/dist/appearance/headless/fonts.d.ts +27 -17
- package/dist/appearance/headless/fonts.js +5 -6
- package/dist/appearance/headless/host.d.ts +25 -16
- package/dist/appearance/headless/index.d.ts +2 -2
- package/dist/appearance/headless/index.js +1 -1
- package/dist/appearance/headless/prefs.d.ts +18 -18
- package/dist/appearance/headless/prefs.js +8 -5
- package/dist/appearance/headless/storage.d.ts +13 -10
- package/dist/appearance/headless/storage.js +1 -2
- package/dist/appearance/headless/zoom-commands.d.ts +7 -5
- package/dist/appearance/headless/zoom-commands.js +1 -2
- package/dist/appearance/index.d.ts +2 -1
- package/dist/appearance/index.js +3 -2
- package/dist/appearance/testing/contract.d.ts +30 -17
- package/dist/appearance/testing/contract.js +1 -18
- package/dist/appearance/testing/index.d.ts +5 -0
- package/dist/approvals/ApprovalBar.d.ts +10 -8
- package/dist/approvals/ApprovalBar.js +12 -15
- package/dist/approvals/ApprovalConcern.d.ts +6 -5
- package/dist/approvals/ApprovalConcern.js +2 -3
- package/dist/approvals/ApprovalShell.d.ts +9 -5
- package/dist/approvals/ApprovalShell.js +1 -9
- package/dist/approvals/ApprovalsProvider.d.ts +18 -10
- package/dist/approvals/ApprovalsProvider.js +2 -14
- package/dist/approvals/FileEditApproval.d.ts +18 -6
- package/dist/approvals/FileEditApproval.js +4 -20
- package/dist/approvals/HunkPreviews.d.ts +7 -5
- package/dist/approvals/HunkPreviews.js +3 -8
- package/dist/approvals/SafelistPanel.d.ts +7 -5
- package/dist/approvals/SafelistPanel.js +6 -12
- package/dist/approvals/headless/fixture-host.d.ts +12 -10
- package/dist/approvals/headless/fixture-host.js +1 -2
- package/dist/approvals/headless/fixtures.d.ts +10 -8
- package/dist/approvals/headless/fixtures.js +1 -2
- package/dist/approvals/headless/heads.d.ts +9 -7
- package/dist/approvals/headless/heads.js +1 -2
- package/dist/approvals/headless/host.d.ts +24 -13
- package/dist/approvals/headless/index.d.ts +2 -2
- package/dist/approvals/headless/index.js +2 -2
- package/dist/approvals/headless/labels.d.ts +7 -5
- package/dist/approvals/headless/labels.js +1 -2
- package/dist/approvals/headless/pending.d.ts +17 -11
- package/dist/approvals/headless/pending.js +1 -11
- package/dist/approvals/headless/preview.d.ts +13 -10
- package/dist/approvals/headless/preview.js +1 -2
- package/dist/approvals/headless/safelist.d.ts +10 -8
- package/dist/approvals/headless/safelist.js +1 -7
- package/dist/approvals/index.js +2 -2
- package/dist/approvals/key-scope.d.ts +2 -5
- package/dist/approvals/key-scope.js +1 -2
- package/dist/approvals/testing/contract.d.ts +29 -15
- package/dist/approvals/testing/contract.js +12 -28
- package/dist/approvals/testing/index.d.ts +7 -1
- package/dist/approvals/testing/index.js +2 -1
- package/dist/approvals/testing/worst-case.d.ts +17 -0
- package/dist/approvals/testing/worst-case.js +62 -0
- package/dist/brands/marks.d.ts +3 -6
- package/dist/brands/marks.js +1 -2
- package/dist/chat/ChatProvider.d.ts +15 -9
- package/dist/chat/ChatProvider.js +1 -11
- package/dist/chat/DaemonOrb.d.ts +25 -9
- package/dist/chat/DaemonOrb.js +3 -22
- package/dist/chat/HostBadge.d.ts +8 -5
- package/dist/chat/HostBadge.js +4 -5
- package/dist/chat/HostStatusDot.d.ts +8 -5
- package/dist/chat/HostStatusDot.js +8 -9
- package/dist/chat/HostTranscript.d.ts +17 -8
- package/dist/chat/HostTranscript.js +37 -24
- package/dist/chat/PdfPreview.d.ts +9 -5
- package/dist/chat/PdfPreview.js +1 -9
- package/dist/chat/RunEstimateChip.d.ts +13 -10
- package/dist/chat/RunEstimateChip.js +31 -21
- package/dist/chat/SessionFilterMenu.d.ts +20 -13
- package/dist/chat/SessionFilterMenu.js +3 -14
- package/dist/chat/SessionGroupHeader.d.ts +14 -9
- package/dist/chat/SessionGroupHeader.js +4 -5
- package/dist/chat/SessionHostHeader.d.ts +8 -5
- package/dist/chat/SessionHostHeader.js +2 -3
- package/dist/chat/SessionList.d.ts +31 -20
- package/dist/chat/SessionList.js +10 -24
- package/dist/chat/SessionListRow.d.ts +22 -5
- package/dist/chat/SessionListRow.js +95 -83
- package/dist/chat/SessionStreamsProvider.d.ts +30 -22
- package/dist/chat/SessionStreamsProvider.js +1 -13
- package/dist/chat/StatusDot.d.ts +17 -7
- package/dist/chat/StatusDot.js +1 -14
- package/dist/chat/TextPreview.d.ts +14 -8
- package/dist/chat/TextPreview.js +9 -13
- package/dist/chat/Throbber.d.ts +18 -6
- package/dist/chat/Throbber.js +3 -19
- package/dist/chat/Transcript.d.ts +36 -9
- package/dist/chat/Transcript.js +84 -90
- package/dist/chat/composer/AgentPicker.d.ts +16 -8
- package/dist/chat/composer/AgentPicker.js +4 -16
- package/dist/chat/composer/AgentPickerDialog.d.ts +13 -5
- package/dist/chat/composer/AgentPickerDialog.js +5 -17
- package/dist/chat/composer/ApprovalDock.d.ts +2 -5
- package/dist/chat/composer/ApprovalDock.js +2 -10
- package/dist/chat/composer/ArchivedBanner.d.ts +7 -5
- package/dist/chat/composer/ArchivedBanner.js +1 -2
- package/dist/chat/composer/AttachmentTiles.d.ts +11 -8
- package/dist/chat/composer/AttachmentTiles.js +36 -23
- package/dist/chat/composer/Composer.d.ts +14 -17
- package/dist/chat/composer/Composer.js +6 -6
- package/dist/chat/composer/ComposerBadges.d.ts +28 -7
- package/dist/chat/composer/ComposerBadges.js +4 -29
- package/dist/chat/composer/ComposerControls.d.ts +22 -9
- package/dist/chat/composer/ComposerControls.js +5 -22
- package/dist/chat/composer/ComposerEditor.d.ts +15 -10
- package/dist/chat/composer/ComposerEditor.js +5 -11
- package/dist/chat/composer/ComposerHostProvider.d.ts +9 -7
- package/dist/chat/composer/ComposerHostProvider.js +1 -7
- package/dist/chat/composer/ComposerShell.d.ts +17 -13
- package/dist/chat/composer/ComposerShell.js +3 -10
- package/dist/chat/composer/ContextBreakdown.d.ts +11 -6
- package/dist/chat/composer/ContextBreakdown.js +7 -15
- package/dist/chat/composer/ContextOrb.d.ts +15 -10
- package/dist/chat/composer/ContextOrb.js +3 -3
- package/dist/chat/composer/ConversationBadges.d.ts +24 -5
- package/dist/chat/composer/ConversationBadges.js +9 -31
- package/dist/chat/composer/DockCard.d.ts +23 -9
- package/dist/chat/composer/DockCard.js +1 -2
- package/dist/chat/composer/DraftPickers.d.ts +12 -6
- package/dist/chat/composer/DraftPickers.js +2 -12
- package/dist/chat/composer/EffortPickerDialog.d.ts +19 -6
- package/dist/chat/composer/EffortPickerDialog.js +9 -23
- package/dist/chat/composer/HostComposer.d.ts +16 -5
- package/dist/chat/composer/HostComposer.js +11 -24
- package/dist/chat/composer/HostContextOrb.d.ts +9 -6
- package/dist/chat/composer/HostContextOrb.js +1 -8
- package/dist/chat/composer/HostModelChainList.d.ts +18 -5
- package/dist/chat/composer/HostModelChainList.js +1 -18
- package/dist/chat/composer/HostPicker.d.ts +8 -5
- package/dist/chat/composer/HostPicker.js +3 -4
- package/dist/chat/composer/HostPickers.d.ts +17 -11
- package/dist/chat/composer/HostPickers.js +4 -14
- package/dist/chat/composer/ImageModelList.d.ts +21 -8
- package/dist/chat/composer/ImageModelList.js +4 -18
- package/dist/chat/composer/ModelChainList.d.ts +46 -5
- package/dist/chat/composer/ModelChainList.js +7 -49
- package/dist/chat/composer/ModelChainParts.d.ts +14 -10
- package/dist/chat/composer/ModelChainParts.js +56 -58
- package/dist/chat/composer/ModelChainRow.d.ts +16 -7
- package/dist/chat/composer/ModelChainRow.js +7 -17
- package/dist/chat/composer/ModelChainRows.d.ts +17 -6
- package/dist/chat/composer/ModelChainRows.js +9 -18
- package/dist/chat/composer/ModelChainTooltip.d.ts +12 -5
- package/dist/chat/composer/ModelChainTooltip.js +3 -4
- package/dist/chat/composer/ModelFacts.d.ts +20 -13
- package/dist/chat/composer/ModelFacts.js +3 -4
- package/dist/chat/composer/ModelOptionsPicker.d.ts +28 -13
- package/dist/chat/composer/ModelOptionsPicker.js +24 -16
- package/dist/chat/composer/ModelPicker.d.ts +33 -16
- package/dist/chat/composer/ModelPicker.js +5 -26
- package/dist/chat/composer/ModelPickerDialog.d.ts +9 -5
- package/dist/chat/composer/ModelPickerDialog.js +3 -11
- package/dist/chat/composer/ModelProviderPills.d.ts +9 -5
- package/dist/chat/composer/ModelProviderPills.js +4 -11
- package/dist/chat/composer/PickerPill.d.ts +11 -5
- package/dist/chat/composer/PickerPill.js +3 -12
- package/dist/chat/composer/PlacePicker.d.ts +46 -0
- package/dist/chat/composer/PlacePicker.js +105 -0
- package/dist/chat/composer/ProjectMenu.d.ts +16 -5
- package/dist/chat/composer/ProjectMenu.js +8 -19
- package/dist/chat/composer/PromptHistoryProvider.d.ts +29 -7
- package/dist/chat/composer/PromptHistoryProvider.js +1 -26
- package/dist/chat/composer/RetryPill.d.ts +10 -6
- package/dist/chat/composer/RetryPill.js +1 -2
- package/dist/chat/composer/RunStatusChip.d.ts +26 -5
- package/dist/chat/composer/RunStatusChip.js +2 -37
- package/dist/chat/composer/ScopeToggle.d.ts +18 -5
- package/dist/chat/composer/ScopeToggle.js +2 -3
- package/dist/chat/composer/SelectTurnHint.d.ts +7 -5
- package/dist/chat/composer/SelectTurnHint.js +3 -4
- package/dist/chat/composer/SendButton.d.ts +13 -8
- package/dist/chat/composer/SendButton.js +1 -2
- package/dist/chat/composer/ServerScopeToggle.d.ts +22 -5
- package/dist/chat/composer/ServerScopeToggle.js +4 -5
- package/dist/chat/composer/attachment-ingest.d.ts +36 -17
- package/dist/chat/composer/attachment-ingest.js +20 -14
- package/dist/chat/composer/attachments.d.ts +18 -15
- package/dist/chat/composer/attachments.js +23 -11
- package/dist/chat/composer/badge-order.d.ts +4 -7
- package/dist/chat/composer/badge-order.js +1 -2
- package/dist/chat/composer/composer-bus.d.ts +34 -29
- package/dist/chat/composer/composer-bus.js +3 -12
- package/dist/chat/composer/heif.d.ts +2 -5
- package/dist/chat/composer/heif.js +1 -2
- package/dist/chat/composer/index.d.ts +22 -16
- package/dist/chat/composer/index.js +46 -45
- package/dist/chat/composer/load-composer-editor.d.ts +3 -5
- package/dist/chat/composer/load-composer-editor.js +1 -2
- package/dist/chat/composer/model-catalog.d.ts +29 -32
- package/dist/chat/composer/model-catalog.js +6 -29
- package/dist/chat/composer/model-list-layout.d.ts +19 -14
- package/dist/chat/composer/model-list-layout.js +1 -2
- package/dist/chat/composer/prompt-history-nav.d.ts +18 -6
- package/dist/chat/composer/prompt-history-nav.js +1 -16
- package/dist/chat/composer/scope-side.d.ts +2 -5
- package/dist/chat/composer/scope-side.js +4 -3
- package/dist/chat/composer/suggestion-extension.d.ts +6 -4
- package/dist/chat/composer/suggestion-extension.js +2 -8
- package/dist/chat/composer/suggestions.d.ts +18 -13
- package/dist/chat/composer/suggestions.js +2 -11
- package/dist/chat/composer/use-agent-profiles.d.ts +10 -7
- package/dist/chat/composer/use-agent-profiles.js +2 -9
- package/dist/chat/composer/use-cache-hints.d.ts +6 -4
- package/dist/chat/composer/use-cache-hints.js +1 -7
- package/dist/chat/composer/use-composer-stores.d.ts +21 -19
- package/dist/chat/composer/use-composer-stores.js +3 -9
- package/dist/chat/composer/use-draft-target.d.ts +37 -23
- package/dist/chat/composer/use-draft-target.js +2 -3
- package/dist/chat/composer/use-new-chats-default.d.ts +9 -6
- package/dist/chat/composer/use-new-chats-default.js +1 -8
- package/dist/chat/composer/use-new-session-defaults.d.ts +11 -6
- package/dist/chat/composer/use-new-session-defaults.js +3 -12
- package/dist/chat/composer/use-provider-ready-poll.d.ts +8 -4
- package/dist/chat/composer/use-provider-ready-poll.js +1 -9
- package/dist/chat/composer/use-run-meter.d.ts +16 -13
- package/dist/chat/composer/use-run-meter.js +1 -8
- package/dist/chat/composer/use-send-prompt.d.ts +28 -16
- package/dist/chat/composer/use-send-prompt.js +5 -5
- package/dist/chat/composer/use-session-meters.d.ts +10 -7
- package/dist/chat/composer/use-session-meters.js +1 -8
- package/dist/chat/composer/use-sustained-work.d.ts +15 -7
- package/dist/chat/composer/use-sustained-work.js +1 -13
- package/dist/chat/composer/useAttachmentIngest.d.ts +12 -7
- package/dist/chat/composer/useAttachmentIngest.js +2 -11
- package/dist/chat/composer/useModelListSpy.d.ts +2 -5
- package/dist/chat/composer/useModelListSpy.js +1 -2
- package/dist/chat/composer/video-frame.d.ts +14 -0
- package/dist/chat/composer/video-frame.js +23 -0
- package/dist/chat/headless/badge-refs.d.ts +9 -6
- package/dist/chat/headless/badge-refs.js +3 -4
- package/dist/chat/headless/block-runs.d.ts +25 -18
- package/dist/chat/headless/block-runs.js +1 -12
- package/dist/chat/headless/chip-labels.d.ts +6 -5
- package/dist/chat/headless/chip-labels.js +5 -2
- package/dist/chat/headless/chip-settle.d.ts +4 -7
- package/dist/chat/headless/chip-settle.js +3 -3
- package/dist/chat/headless/chip-views.d.ts +26 -12
- package/dist/chat/headless/chip-views.js +27 -12
- package/dist/chat/headless/composer/attachment-dedupe.d.ts +4 -7
- package/dist/chat/headless/composer/attachment-dedupe.js +1 -2
- package/dist/chat/headless/composer/commands.d.ts +2 -4
- package/dist/chat/headless/composer/commands.js +1 -3
- package/dist/chat/headless/composer/composer-sources.d.ts +18 -10
- package/dist/chat/headless/composer/composer-sources.js +1 -2
- package/dist/chat/headless/composer/conversation-badges.d.ts +25 -11
- package/dist/chat/headless/composer/conversation-badges.js +4 -2
- package/dist/chat/headless/composer/draft-book.d.ts +110 -0
- package/dist/chat/headless/composer/draft-book.js +151 -0
- package/dist/chat/headless/composer/draft-sync.d.ts +31 -21
- package/dist/chat/headless/composer/draft-sync.js +20 -16
- package/dist/chat/headless/composer/editor-markdown.d.ts +14 -6
- package/dist/chat/headless/composer/editor-markdown.js +139 -7
- package/dist/chat/headless/composer/ghost-autocomplete.d.ts +34 -30
- package/dist/chat/headless/composer/ghost-autocomplete.js +2 -3
- package/dist/chat/headless/composer/host-chrome.d.ts +46 -41
- package/dist/chat/headless/composer/host.d.ts +71 -46
- package/dist/chat/headless/composer/index.d.ts +14 -13
- package/dist/chat/headless/composer/index.js +10 -9
- package/dist/chat/headless/composer/labels-chrome.d.ts +6 -5
- package/dist/chat/headless/composer/labels-chrome.js +6 -3
- package/dist/chat/headless/composer/labels-editor.d.ts +6 -5
- package/dist/chat/headless/composer/labels-editor.js +5 -2
- package/dist/chat/headless/composer/labels.d.ts +9 -5
- package/dist/chat/headless/composer/labels.js +1 -2
- package/dist/chat/headless/composer/live-cost.d.ts +20 -7
- package/dist/chat/headless/composer/live-cost.js +1 -18
- package/dist/chat/headless/composer/model-knobs.d.ts +30 -19
- package/dist/chat/headless/composer/model-knobs.js +1 -2
- package/dist/chat/headless/composer/model-names.d.ts +18 -13
- package/dist/chat/headless/composer/model-names.js +1 -10
- package/dist/chat/headless/composer/model-picker-prefs.d.ts +10 -13
- package/dist/chat/headless/composer/model-picker-prefs.js +1 -2
- package/dist/chat/headless/composer/models.d.ts +6 -9
- package/dist/chat/headless/composer/new-session-defaults.d.ts +11 -8
- package/dist/chat/headless/composer/new-session-defaults.js +1 -2
- package/dist/chat/headless/composer/prompt-suggestions.d.ts +11 -9
- package/dist/chat/headless/composer/prompt-suggestions.js +1 -2
- package/dist/chat/headless/composer/remember-model-pick.d.ts +15 -12
- package/dist/chat/headless/composer/remember-model-pick.js +1 -8
- package/dist/chat/headless/composer/run-meter.d.ts +28 -20
- package/dist/chat/headless/composer/run-meter.js +7 -10
- package/dist/chat/headless/composer/skill-groups.d.ts +21 -0
- package/dist/chat/headless/composer/skill-groups.js +21 -0
- package/dist/chat/headless/composer-modes.d.ts +9 -12
- package/dist/chat/headless/composer-modes.js +1 -2
- package/dist/chat/headless/draft-scope.d.ts +21 -17
- package/dist/chat/headless/draft-scope.js +1 -2
- package/dist/chat/headless/draft-target.d.ts +7 -10
- package/dist/chat/headless/draft-target.js +1 -2
- package/dist/chat/headless/extension-sources.d.ts +2 -5
- package/dist/chat/headless/extension-sources.js +1 -2
- package/dist/chat/headless/file-chip.d.ts +22 -9
- package/dist/chat/headless/file-chip.js +19 -20
- package/dist/chat/headless/fixture-host.d.ts +18 -11
- package/dist/chat/headless/fixture-host.js +10 -5
- package/dist/chat/headless/fixture-transcript.d.ts +11 -6
- package/dist/chat/headless/fixture-transcript.js +1 -9
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.d.ts +1 -4
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.js +1 -2
- package/dist/chat/headless/fixtures/demo-transcript.d.ts +14 -4
- package/dist/chat/headless/fixtures/demo-transcript.js +1 -15
- package/dist/chat/headless/host.d.ts +69 -47
- package/dist/chat/headless/hosts.d.ts +9 -7
- package/dist/chat/headless/hosts.js +1 -7
- package/dist/chat/headless/index.d.ts +66 -62
- package/dist/chat/headless/index.js +35 -31
- package/dist/chat/headless/labels.d.ts +76 -10
- package/dist/chat/headless/labels.js +83 -20
- package/dist/chat/headless/markdown-chunks.d.ts +17 -9
- package/dist/chat/headless/markdown-chunks.js +20 -19
- package/dist/chat/headless/notifications.d.ts +5 -0
- package/dist/chat/headless/path-resolver.d.ts +19 -12
- package/dist/chat/headless/path-resolver.js +1 -2
- package/dist/chat/headless/prompt-origin.d.ts +25 -13
- package/dist/chat/headless/prompt-origin.js +24 -9
- package/dist/chat/headless/reference-store.d.ts +37 -15
- package/dist/chat/headless/reference-store.js +1 -2
- package/dist/chat/headless/secrets.d.ts +3 -6
- package/dist/chat/headless/secrets.js +1 -2
- package/dist/chat/headless/send-flow.d.ts +46 -33
- package/dist/chat/headless/send-flow.js +21 -12
- package/dist/chat/headless/session-list.d.ts +79 -20
- package/dist/chat/headless/session-list.js +12 -15
- package/dist/chat/headless/sidebar/activity.d.ts +20 -13
- package/dist/chat/headless/sidebar/activity.js +1 -12
- package/dist/chat/headless/sidebar/badges.d.ts +34 -17
- package/dist/chat/headless/sidebar/badges.js +1 -2
- package/dist/chat/headless/sidebar/compaction.d.ts +9 -12
- package/dist/chat/headless/sidebar/compaction.js +1 -2
- package/dist/chat/headless/sidebar/directory.d.ts +132 -83
- package/dist/chat/headless/sidebar/directory.js +71 -50
- package/dist/chat/headless/sidebar/dot-state.d.ts +7 -6
- package/dist/chat/headless/sidebar/dot-state.js +1 -2
- package/dist/chat/headless/sidebar/environment.d.ts +10 -8
- package/dist/chat/headless/sidebar/environment.js +5 -3
- package/dist/chat/headless/sidebar/estimates.d.ts +21 -13
- package/dist/chat/headless/sidebar/estimates.js +1 -13
- package/dist/chat/headless/sidebar/history.d.ts +40 -21
- package/dist/chat/headless/sidebar/history.js +1 -24
- package/dist/chat/headless/sidebar/host.d.ts +21 -13
- package/dist/chat/headless/sidebar/inbox-state.d.ts +45 -0
- package/dist/chat/headless/sidebar/inbox-state.js +52 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +145 -0
- package/dist/chat/headless/sidebar/inbox.js +239 -0
- package/dist/chat/headless/sidebar/index.d.ts +16 -14
- package/dist/chat/headless/sidebar/index.js +15 -13
- package/dist/chat/headless/sidebar/labels.d.ts +114 -10
- package/dist/chat/headless/sidebar/labels.js +62 -5
- package/dist/chat/headless/sidebar/notifications.d.ts +7 -10
- package/dist/chat/headless/sidebar/notifications.js +1 -2
- package/dist/chat/headless/sidebar/pinned-projects.d.ts +4 -7
- package/dist/chat/headless/sidebar/pinned-projects.js +1 -2
- package/dist/chat/headless/sidebar/pinned-sessions.d.ts +2 -5
- package/dist/chat/headless/sidebar/pinned-sessions.js +1 -2
- package/dist/chat/headless/sidebar/project-icons.d.ts +8 -11
- package/dist/chat/headless/sidebar/project-icons.js +1 -2
- package/dist/chat/headless/sidebar/query.d.ts +49 -32
- package/dist/chat/headless/sidebar/query.js +4 -22
- package/dist/chat/headless/sidebar/rows.d.ts +26 -20
- package/dist/chat/headless/sidebar/rows.js +19 -11
- package/dist/chat/headless/sidebar/types.d.ts +29 -12
- package/dist/chat/headless/sidebar/types.js +1 -2
- package/dist/chat/headless/sidebar/view.d.ts +108 -38
- package/dist/chat/headless/sidebar/view.js +154 -68
- package/dist/chat/headless/site-icons.d.ts +8 -5
- package/dist/chat/headless/site-icons.js +1 -2
- package/dist/chat/headless/smooth-stream.d.ts +5 -8
- package/dist/chat/headless/smooth-stream.js +1 -2
- package/dist/chat/headless/store.d.ts +8 -11
- package/dist/chat/headless/store.js +1 -2
- package/dist/chat/headless/streams/actions.d.ts +27 -24
- package/dist/chat/headless/streams/actions.js +1 -2
- package/dist/chat/headless/streams/index.d.ts +6 -6
- package/dist/chat/headless/streams/index.js +3 -3
- package/dist/chat/headless/streams/live-events.d.ts +20 -6
- package/dist/chat/headless/streams/live-events.js +9 -7
- package/dist/chat/headless/streams/merge.d.ts +1 -4
- package/dist/chat/headless/streams/merge.js +1 -2
- package/dist/chat/headless/streams/pacer.d.ts +8 -11
- package/dist/chat/headless/streams/pacer.js +1 -2
- package/dist/chat/headless/streams/prompt-previews.d.ts +15 -5
- package/dist/chat/headless/streams/prompt-previews.js +4 -3
- package/dist/chat/headless/streams/scheduler.d.ts +7 -10
- package/dist/chat/headless/streams/scheduler.js +1 -2
- package/dist/chat/headless/streams/selectors.d.ts +17 -13
- package/dist/chat/headless/streams/selectors.js +1 -2
- package/dist/chat/headless/streams/session-streams.d.ts +30 -25
- package/dist/chat/headless/streams/session-streams.js +3 -12
- package/dist/chat/headless/streams/store.d.ts +31 -10
- package/dist/chat/headless/streams/store.js +35 -11
- package/dist/chat/headless/streams/transcript.d.ts +2 -5
- package/dist/chat/headless/streams/transcript.js +1 -2
- package/dist/chat/headless/streams/types.d.ts +7 -12
- package/dist/chat/headless/transcript/auth-failure.d.ts +18 -13
- package/dist/chat/headless/transcript/auth-failure.js +1 -10
- package/dist/chat/headless/transcript/batch.d.ts +13 -12
- package/dist/chat/headless/transcript/batch.js +1 -6
- package/dist/chat/headless/transcript/collapse.d.ts +5 -8
- package/dist/chat/headless/transcript/collapse.js +38 -17
- package/dist/chat/headless/transcript/exchange-media.d.ts +68 -0
- package/dist/chat/headless/transcript/exchange-media.js +111 -0
- package/dist/chat/headless/transcript/fold-actions.d.ts +25 -10
- package/dist/chat/headless/transcript/fold-actions.js +34 -16
- package/dist/chat/headless/transcript/fold-attachments.d.ts +8 -6
- package/dist/chat/headless/transcript/fold-attachments.js +2 -8
- package/dist/chat/headless/transcript/fold.d.ts +9 -8
- package/dist/chat/headless/transcript/fold.js +10 -6
- package/dist/chat/headless/transcript/index.d.ts +6 -5
- package/dist/chat/headless/transcript/index.js +7 -6
- package/dist/chat/headless/transcript/nesting.d.ts +9 -5
- package/dist/chat/headless/transcript/nesting.js +1 -9
- package/dist/chat/headless/transcript/pairing.d.ts +14 -6
- package/dist/chat/headless/transcript/pairing.js +1 -2
- package/dist/chat/headless/transcript/rows.d.ts +39 -17
- package/dist/chat/headless/transcript/rows.js +1 -2
- package/dist/chat/headless/transcript/run-failures.d.ts +15 -6
- package/dist/chat/headless/transcript/run-failures.js +1 -13
- package/dist/chat/headless/transcript/select-stops.d.ts +20 -7
- package/dist/chat/headless/transcript/select-stops.js +1 -2
- package/dist/chat/headless/transcript/tool-media.d.ts +3 -6
- package/dist/chat/headless/transcript/tool-media.js +1 -2
- package/dist/chat/headless/transcript-host.d.ts +43 -40
- package/dist/chat/headless/transcript-labels.d.ts +6 -5
- package/dist/chat/headless/transcript-labels.js +1 -2
- package/dist/chat/headless/turn-labels.d.ts +2 -5
- package/dist/chat/headless/turn-labels.js +1 -2
- package/dist/chat/headless/turn-prompt.d.ts +6 -5
- package/dist/chat/headless/turn-prompt.js +1 -2
- package/dist/chat/index.d.ts +76 -65
- package/dist/chat/index.js +72 -68
- package/dist/chat/interactions/ElicitationCard.d.ts +49 -0
- package/dist/chat/interactions/ElicitationCard.js +192 -0
- package/dist/chat/interactions/HostInteractions.d.ts +11 -5
- package/dist/chat/interactions/HostInteractions.js +2 -12
- package/dist/chat/interactions/InboxPanel.d.ts +21 -7
- package/dist/chat/interactions/InboxPanel.js +11 -24
- package/dist/chat/interactions/InteractionCard.d.ts +14 -8
- package/dist/chat/interactions/InteractionCard.js +9 -16
- package/dist/chat/interactions/PlanCard.d.ts +18 -8
- package/dist/chat/interactions/PlanCard.js +2 -16
- package/dist/chat/interactions/QuestionField.d.ts +24 -6
- package/dist/chat/interactions/QuestionField.js +111 -29
- package/dist/chat/interactions/QuestionForm.d.ts +39 -16
- package/dist/chat/interactions/QuestionForm.js +32 -73
- package/dist/chat/interactions/SecretInput.d.ts +9 -5
- package/dist/chat/interactions/SecretInput.js +1 -9
- package/dist/chat/interactions/card-ui.d.ts +33 -14
- package/dist/chat/interactions/card-ui.js +38 -13
- package/dist/chat/interactions/hooks.d.ts +8 -6
- package/dist/chat/interactions/hooks.js +2 -8
- package/dist/chat/interactions/index.d.ts +6 -3
- package/dist/chat/interactions/index.js +8 -6
- package/dist/chat/interactions/question-answers.d.ts +42 -0
- package/dist/chat/interactions/question-answers.js +100 -0
- package/dist/chat/provider-color.d.ts +3 -6
- package/dist/chat/provider-color.js +1 -2
- package/dist/chat/rich-composer/MentionList.d.ts +9 -7
- package/dist/chat/rich-composer/MentionList.js +7 -6
- package/dist/chat/rich-composer/RichComposer.d.ts +19 -8
- package/dist/chat/rich-composer/RichComposer.js +93 -91
- package/dist/chat/rich-composer/badge-decorations.d.ts +9 -7
- package/dist/chat/rich-composer/badge-decorations.js +17 -10
- package/dist/chat/rich-composer/composer-controls.d.ts +14 -12
- package/dist/chat/rich-composer/composer-controls.js +18 -7
- package/dist/chat/rich-composer/composer-extensions.d.ts +37 -8
- package/dist/chat/rich-composer/composer-extensions.js +125 -43
- package/dist/chat/rich-composer/composer-keys.d.ts +17 -6
- package/dist/chat/rich-composer/composer-keys.js +51 -12
- package/dist/chat/rich-composer/ghost-plugin.d.ts +9 -6
- package/dist/chat/rich-composer/ghost-plugin.js +1 -2
- package/dist/chat/rich-composer/index.d.ts +1 -1
- package/dist/chat/rich-composer/mention-popover.d.ts +9 -12
- package/dist/chat/rich-composer/mention-popover.js +2 -3
- package/dist/chat/rich-composer/slash-completion.d.ts +26 -8
- package/dist/chat/rich-composer/slash-completion.js +3 -24
- package/dist/chat/rich-composer/use-composer-bus.d.ts +15 -12
- package/dist/chat/rich-composer/use-composer-bus.js +1 -8
- package/dist/chat/rich-composer/use-composer-editor.d.ts +23 -15
- package/dist/chat/rich-composer/use-composer-editor.js +5 -12
- package/dist/chat/rich-composer/use-composer-sources.d.ts +16 -9
- package/dist/chat/rich-composer/use-composer-sources.js +10 -10
- package/dist/chat/rich-composer/use-draft-mirror.d.ts +60 -14
- package/dist/chat/rich-composer/use-draft-mirror.js +184 -71
- package/dist/chat/rich-composer/use-editor-handover.d.ts +8 -4
- package/dist/chat/rich-composer/use-editor-handover.js +1 -2
- package/dist/chat/rich-composer/use-extension-composer.d.ts +25 -10
- package/dist/chat/rich-composer/use-extension-composer.js +31 -7
- package/dist/chat/rich-composer/use-ghost-lifecycle.d.ts +6 -9
- package/dist/chat/rich-composer/use-ghost-lifecycle.js +5 -4
- package/dist/chat/rich-composer/use-prompt-ghost.d.ts +14 -10
- package/dist/chat/rich-composer/use-prompt-ghost.js +1 -8
- package/dist/chat/rich-composer/use-staged-attachments.d.ts +7 -5
- package/dist/chat/rich-composer/use-staged-attachments.js +2 -8
- package/dist/chat/sidebar/InboxList.d.ts +33 -0
- package/dist/chat/sidebar/InboxList.js +159 -0
- package/dist/chat/sidebar/InboxRowActions.d.ts +32 -0
- package/dist/chat/sidebar/InboxRowActions.js +74 -0
- package/dist/chat/sidebar/MainSessionRow.d.ts +10 -5
- package/dist/chat/sidebar/MainSessionRow.js +3 -11
- package/dist/chat/sidebar/ProjectIcon.d.ts +38 -19
- package/dist/chat/sidebar/ProjectIcon.js +51 -68
- package/dist/chat/sidebar/RowChips.d.ts +10 -8
- package/dist/chat/sidebar/RowChips.js +25 -16
- package/dist/chat/sidebar/SessionSidebar.d.ts +24 -13
- package/dist/chat/sidebar/SessionSidebar.js +349 -108
- package/dist/chat/sidebar/SidebarDecoration.d.ts +13 -7
- package/dist/chat/sidebar/SidebarDecoration.js +17 -17
- package/dist/chat/sidebar/SidebarEmpty.d.ts +11 -0
- package/dist/chat/sidebar/SidebarEmpty.js +40 -0
- package/dist/chat/sidebar/SidebarFilterMenu.d.ts +9 -6
- package/dist/chat/sidebar/SidebarFilterMenu.js +48 -10
- package/dist/chat/sidebar/SidebarFold.d.ts +29 -0
- package/dist/chat/sidebar/SidebarFold.js +46 -0
- package/dist/chat/sidebar/SidebarFooter.d.ts +22 -12
- package/dist/chat/sidebar/SidebarFooter.js +46 -44
- package/dist/chat/sidebar/SidebarFrame.d.ts +26 -9
- package/dist/chat/sidebar/SidebarFrame.js +4 -5
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +21 -9
- package/dist/chat/sidebar/SidebarGroupHeader.js +5 -20
- package/dist/chat/sidebar/SidebarHostProvider.d.ts +13 -11
- package/dist/chat/sidebar/SidebarHostProvider.js +11 -17
- package/dist/chat/sidebar/SidebarPreview.d.ts +43 -0
- package/dist/chat/sidebar/SidebarPreview.js +117 -0
- package/dist/chat/sidebar/SidebarRowView.d.ts +14 -5
- package/dist/chat/sidebar/SidebarRowView.js +5 -17
- package/dist/chat/sidebar/SidebarSearchRow.d.ts +11 -5
- package/dist/chat/sidebar/SidebarSearchRow.js +1 -2
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +35 -7
- package/dist/chat/sidebar/SidebarSessionRow.js +88 -30
- package/dist/chat/sidebar/SidebarToggleButton.d.ts +9 -5
- package/dist/chat/sidebar/SidebarToggleButton.js +5 -3
- package/dist/chat/sidebar/SpaceSwitcher.d.ts +25 -7
- package/dist/chat/sidebar/SpaceSwitcher.js +5 -27
- package/dist/chat/sidebar/SpacesSection.d.ts +16 -5
- package/dist/chat/sidebar/SpacesSection.js +53 -56
- package/dist/chat/sidebar/collapsed.d.ts +3 -6
- package/dist/chat/sidebar/collapsed.js +1 -2
- package/dist/chat/sidebar/inbox-triage.d.ts +85 -0
- package/dist/chat/sidebar/inbox-triage.js +120 -0
- package/dist/chat/sidebar/index.d.ts +13 -11
- package/dist/chat/sidebar/index.js +20 -18
- package/dist/chat/sidebar/pending-removals.d.ts +14 -0
- package/dist/chat/sidebar/pending-removals.js +61 -0
- package/dist/chat/sidebar/preview-data.d.ts +23 -0
- package/dist/chat/sidebar/preview-data.js +175 -0
- package/dist/chat/sidebar/session-menu.d.ts +31 -21
- package/dist/chat/sidebar/session-menu.js +28 -18
- package/dist/chat/sidebar/sidebar-focus-hold.d.ts +1 -4
- package/dist/chat/sidebar/sidebar-focus-hold.js +3 -4
- package/dist/chat/sidebar/sidebar-live.d.ts +54 -15
- package/dist/chat/sidebar/sidebar-live.js +115 -67
- package/dist/chat/sidebar/space-slide.d.ts +49 -0
- package/dist/chat/sidebar/space-slide.js +77 -0
- package/dist/chat/sidebar/use-main-session.d.ts +1 -4
- package/dist/chat/sidebar/use-main-session.js +1 -2
- package/dist/chat/sidebar/useAgentNames.d.ts +1 -4
- package/dist/chat/sidebar/useAgentNames.js +1 -2
- package/dist/chat/sidebar/useCompactionProgress.d.ts +1 -4
- package/dist/chat/sidebar/useCompactionProgress.js +1 -2
- package/dist/chat/sidebar/useInboxRows.d.ts +48 -0
- package/dist/chat/sidebar/useInboxRows.js +107 -0
- package/dist/chat/sidebar/useInboxTriage.d.ts +64 -0
- package/dist/chat/sidebar/useInboxTriage.js +616 -0
- package/dist/chat/sidebar/usePinnedProjects.d.ts +2 -5
- package/dist/chat/sidebar/usePinnedProjects.js +1 -2
- package/dist/chat/sidebar/useSaveViewAsSpace.d.ts +7 -4
- package/dist/chat/sidebar/useSaveViewAsSpace.js +2 -9
- package/dist/chat/sidebar/useSessionActivity.d.ts +1 -4
- package/dist/chat/sidebar/useSessionActivity.js +1 -2
- package/dist/chat/sidebar/useSessionBadges.d.ts +1 -4
- package/dist/chat/sidebar/useSessionBadges.js +1 -2
- package/dist/chat/sidebar/useSessionDirectoryView.d.ts +4 -7
- package/dist/chat/sidebar/useSessionDirectoryView.js +5 -6
- package/dist/chat/sidebar/useSessionSearch.d.ts +11 -7
- package/dist/chat/sidebar/useSessionSearch.js +1 -9
- package/dist/chat/sidebar/useSidebarKeyboardNav.d.ts +21 -6
- package/dist/chat/sidebar/useSidebarKeyboardNav.js +1 -20
- package/dist/chat/sidebar/useSidebarLabels.d.ts +1 -4
- package/dist/chat/sidebar/useSidebarLabels.js +1 -2
- package/dist/chat/testing/composer.contract.d.ts +25 -19
- package/dist/chat/testing/composer.contract.js +25 -9
- package/dist/chat/testing/contract.d.ts +29 -17
- package/dist/chat/testing/contract.js +28 -4
- package/dist/chat/testing/fixture-composer-chrome.d.ts +14 -12
- package/dist/chat/testing/fixture-composer-chrome.js +11 -10
- package/dist/chat/testing/fixture-composer-host.d.ts +20 -14
- package/dist/chat/testing/fixture-composer-host.js +6 -2
- package/dist/chat/testing/fixture-sidebar-host.d.ts +10 -8
- package/dist/chat/testing/fixture-sidebar-host.js +1 -2
- package/dist/chat/testing/index.d.ts +10 -4
- package/dist/chat/testing/index.js +4 -3
- package/dist/chat/testing/sidebar.contract.d.ts +26 -16
- package/dist/chat/testing/sidebar.contract.js +1 -2
- package/dist/chat/testing/worst-case-sidebar.d.ts +34 -0
- package/dist/chat/testing/worst-case-sidebar.js +153 -0
- package/dist/chat/transcript/AnsiText.d.ts +4 -7
- package/dist/chat/transcript/AnsiText.js +5 -11
- package/dist/chat/transcript/AuthFailureCard.d.ts +17 -5
- package/dist/chat/transcript/AuthFailureCard.js +15 -28
- package/dist/chat/transcript/BadgeMenu.d.ts +26 -16
- package/dist/chat/transcript/BadgeMenu.js +7 -27
- package/dist/chat/transcript/CardMarkdown.d.ts +2 -5
- package/dist/chat/transcript/CardMarkdown.js +7 -16
- package/dist/chat/transcript/ChipCard.d.ts +23 -8
- package/dist/chat/transcript/ChipCard.js +10 -10
- package/dist/chat/transcript/ChipCards.d.ts +30 -11
- package/dist/chat/transcript/ChipCards.js +51 -14
- package/dist/chat/transcript/CodemodeScript.d.ts +15 -5
- package/dist/chat/transcript/CodemodeScript.js +72 -84
- package/dist/chat/transcript/DiffLines.d.ts +26 -5
- package/dist/chat/transcript/DiffLines.js +89 -45
- package/dist/chat/transcript/EarlierHistory.d.ts +5 -8
- package/dist/chat/transcript/EarlierHistory.js +1 -2
- package/dist/chat/transcript/EditDiffBlock.d.ts +2 -5
- package/dist/chat/transcript/EditDiffBlock.js +39 -35
- package/dist/chat/transcript/FileChip.d.ts +4 -7
- package/dist/chat/transcript/FileChip.js +4 -19
- package/dist/chat/transcript/ImageGenerationBlock.d.ts +5 -8
- package/dist/chat/transcript/ImageGenerationBlock.js +13 -26
- package/dist/chat/transcript/InlineChipText.d.ts +2 -5
- package/dist/chat/transcript/InlineChipText.js +2 -3
- package/dist/chat/transcript/InteractionToolBody.d.ts +4 -7
- package/dist/chat/transcript/InteractionToolBody.js +7 -6
- package/dist/chat/transcript/LazyRow.d.ts +43 -20
- package/dist/chat/transcript/LazyRow.js +3 -30
- package/dist/chat/transcript/LiveOutput.d.ts +2 -5
- package/dist/chat/transcript/LiveOutput.js +1 -11
- package/dist/chat/transcript/MermaidDiagram.d.ts +12 -15
- package/dist/chat/transcript/MermaidDiagram.js +13 -45
- package/dist/chat/transcript/PromptEcho.d.ts +8 -5
- package/dist/chat/transcript/PromptEcho.js +46 -11
- package/dist/chat/transcript/PromptOriginLabel.d.ts +8 -5
- package/dist/chat/transcript/PromptOriginLabel.js +35 -8
- package/dist/chat/transcript/ProseMarkdown.d.ts +2 -5
- package/dist/chat/transcript/ProseMarkdown.js +6 -12
- package/dist/chat/transcript/ReferenceText.d.ts +21 -7
- package/dist/chat/transcript/ReferenceText.js +2 -3
- package/dist/chat/transcript/SelectCursor.d.ts +2 -5
- package/dist/chat/transcript/SelectCursor.js +1 -2
- package/dist/chat/transcript/SelectTurnHint.d.ts +10 -6
- package/dist/chat/transcript/SelectTurnHint.js +3 -4
- package/dist/chat/transcript/SelectTurnProvider.d.ts +31 -20
- package/dist/chat/transcript/SelectTurnProvider.js +2 -17
- package/dist/chat/transcript/SubagentBlock.d.ts +12 -15
- package/dist/chat/transcript/SubagentBlock.js +2 -3
- package/dist/chat/transcript/TranscriptRow.d.ts +19 -15
- package/dist/chat/transcript/TranscriptRow.js +29 -30
- package/dist/chat/transcript/TranscriptSearch.d.ts +18 -5
- package/dist/chat/transcript/TranscriptSearch.js +2 -19
- package/dist/chat/transcript/TurnMenu.d.ts +12 -15
- package/dist/chat/transcript/TurnMenu.js +1 -12
- package/dist/chat/transcript/actions.d.ts +51 -19
- package/dist/chat/transcript/actions.js +1 -16
- package/dist/chat/transcript/badges.d.ts +23 -14
- package/dist/chat/transcript/badges.js +4 -4
- package/dist/chat/transcript/chip-details.d.ts +5 -8
- package/dist/chat/transcript/chip-details.js +1 -10
- package/dist/chat/transcript/chip-resolve.d.ts +8 -5
- package/dist/chat/transcript/chip-resolve.js +1 -8
- package/dist/chat/transcript/diagrams-scope.d.ts +1 -4
- package/dist/chat/transcript/diagrams-scope.js +1 -2
- package/dist/chat/transcript/environment-setup.d.ts +51 -0
- package/dist/chat/transcript/environment-setup.js +205 -0
- package/dist/chat/transcript/extension-renderers.d.ts +4 -7
- package/dist/chat/transcript/extension-renderers.js +7 -22
- package/dist/chat/transcript/fold-attachments.d.ts +30 -5
- package/dist/chat/transcript/fold-attachments.js +25 -38
- package/dist/chat/transcript/fold-status.d.ts +15 -7
- package/dist/chat/transcript/fold-status.js +3 -14
- package/dist/chat/transcript/fold-worker.d.ts +8 -5
- package/dist/chat/transcript/fold-worker.js +8 -15
- package/dist/chat/transcript/fold.d.ts +16 -7
- package/dist/chat/transcript/fold.js +88 -34
- package/dist/chat/transcript/frame.d.ts +13 -16
- package/dist/chat/transcript/frame.js +23 -23
- package/dist/chat/transcript/index.d.ts +51 -45
- package/dist/chat/transcript/index.js +50 -49
- package/dist/chat/transcript/markdown-cache.d.ts +17 -6
- package/dist/chat/transcript/markdown-cache.js +5 -6
- package/dist/chat/transcript/markdown-context.d.ts +7 -10
- package/dist/chat/transcript/markdown-context.js +1 -2
- package/dist/chat/transcript/markdown.d.ts +31 -8
- package/dist/chat/transcript/markdown.js +51 -50
- package/dist/chat/transcript/media-gallery.d.ts +57 -0
- package/dist/chat/transcript/media-gallery.js +321 -0
- package/dist/chat/transcript/message-media.d.ts +43 -0
- package/dist/chat/transcript/message-media.js +192 -0
- package/dist/chat/transcript/messages.d.ts +6 -5
- package/dist/chat/transcript/messages.js +7 -12
- package/dist/chat/transcript/notices.d.ts +26 -22
- package/dist/chat/transcript/notices.js +6 -14
- package/dist/chat/transcript/prompt-lines.d.ts +3 -6
- package/dist/chat/transcript/prompt-lines.js +1 -2
- package/dist/chat/transcript/prompt.d.ts +14 -9
- package/dist/chat/transcript/prompt.js +40 -27
- package/dist/chat/transcript/prose.d.ts +10 -9
- package/dist/chat/transcript/prose.js +2 -7
- package/dist/chat/transcript/recent-map.d.ts +4 -7
- package/dist/chat/transcript/recent-map.js +1 -2
- package/dist/chat/transcript/references.d.ts +11 -6
- package/dist/chat/transcript/references.js +4 -13
- package/dist/chat/transcript/remark-references.d.ts +21 -7
- package/dist/chat/transcript/remark-references.js +1 -18
- package/dist/chat/transcript/remark-refs.d.ts +9 -11
- package/dist/chat/transcript/remark-refs.js +1 -2
- package/dist/chat/transcript/renderer-slots.d.ts +9 -6
- package/dist/chat/transcript/renderer-slots.js +1 -8
- package/dist/chat/transcript/renderers.d.ts +47 -24
- package/dist/chat/transcript/renderers.js +6 -27
- package/dist/chat/transcript/rolling.d.ts +2 -5
- package/dist/chat/transcript/rolling.js +1 -2
- package/dist/chat/transcript/row-estimate.d.ts +7 -5
- package/dist/chat/transcript/row-estimate.js +4 -2
- package/dist/chat/transcript/run-rows.d.ts +11 -9
- package/dist/chat/transcript/run-rows.js +9 -16
- package/dist/chat/transcript/script-input.d.ts +4 -6
- package/dist/chat/transcript/script-input.js +1 -2
- package/dist/chat/transcript/scroll-clamp.d.ts +8 -0
- package/dist/chat/transcript/scroll-clamp.js +49 -0
- package/dist/chat/transcript/shell-block-scope.d.ts +11 -9
- package/dist/chat/transcript/shell-block-scope.js +1 -7
- package/dist/chat/transcript/shell-block.d.ts +16 -6
- package/dist/chat/transcript/shell-block.js +8 -21
- package/dist/chat/transcript/site-icons.d.ts +1 -4
- package/dist/chat/transcript/site-icons.js +2 -3
- package/dist/chat/transcript/tasks.d.ts +10 -7
- package/dist/chat/transcript/tasks.js +2 -9
- package/dist/chat/transcript/thumbnails.d.ts +1 -4
- package/dist/chat/transcript/thumbnails.js +8 -4
- package/dist/chat/transcript/tool-batch.d.ts +6 -5
- package/dist/chat/transcript/tool-batch.js +2 -7
- package/dist/chat/transcript/tool-details.d.ts +7 -5
- package/dist/chat/transcript/tool-details.js +2 -3
- package/dist/chat/transcript/tool-media.d.ts +17 -6
- package/dist/chat/transcript/tool-media.js +46 -23
- package/dist/chat/transcript/tool-parts.d.ts +18 -15
- package/dist/chat/transcript/tool-parts.js +1 -8
- package/dist/chat/transcript/tool-payload.d.ts +9 -5
- package/dist/chat/transcript/tool-payload.js +5 -5
- package/dist/chat/transcript/tool-row.d.ts +13 -9
- package/dist/chat/transcript/tool-row.js +56 -23
- package/dist/chat/transcript/turn-commands.d.ts +17 -15
- package/dist/chat/transcript/turn-commands.js +2 -8
- package/dist/chat/transcript/use-host-turn-menu.d.ts +13 -9
- package/dist/chat/transcript/use-host-turn-menu.js +4 -18
- package/dist/chat/transcript/use-transcript-rows.d.ts +4 -7
- package/dist/chat/transcript/use-transcript-rows.js +4 -12
- package/dist/chat/transcript/useComposerSearch.d.ts +18 -6
- package/dist/chat/transcript/useComposerSearch.js +1 -17
- package/dist/chat/transcript/useSelectTurnKeys.d.ts +7 -10
- package/dist/chat/transcript/useSelectTurnKeys.js +1 -2
- package/dist/chat/transcript/useSettledReveal.d.ts +1 -4
- package/dist/chat/transcript/useSettledReveal.js +1 -2
- package/dist/chat/transcript/useStickToBottom.d.ts +41 -8
- package/dist/chat/transcript/useStickToBottom.js +17 -42
- package/dist/chat/transcript/useTranscriptFind.d.ts +7 -10
- package/dist/chat/transcript/useTranscriptFind.js +1 -2
- package/dist/chat/transcript/useTranscriptFindKey.d.ts +4 -7
- package/dist/chat/transcript/useTranscriptFindKey.js +1 -2
- package/dist/chat/transcript/useTranscriptScroll.d.ts +11 -6
- package/dist/chat/transcript/useTranscriptScroll.js +3 -12
- package/dist/chat/transcript/useTranscriptSearch.d.ts +5 -8
- package/dist/chat/transcript/useTranscriptSearch.js +3 -5
- package/dist/chat/transcript/useTranscriptSelectionCopy.d.ts +1 -4
- package/dist/chat/transcript/useTranscriptSelectionCopy.js +1 -2
- package/dist/chat/transcript/useWheelHoverPause.d.ts +17 -4
- package/dist/chat/transcript/useWheelHoverPause.js +1 -18
- package/dist/chat/transcript/user-bash.d.ts +7 -5
- package/dist/chat/transcript/user-bash.js +1 -7
- package/dist/chat/transcript/view-anchor.d.ts +13 -0
- package/dist/chat/transcript/view-anchor.js +26 -0
- package/dist/chat/transcript/view-scope.d.ts +101 -41
- package/dist/chat/transcript/view-scope.js +120 -44
- package/dist/chat/transcript-options.d.ts +7 -5
- package/dist/chat/transcript-options.js +5 -8
- package/dist/chat/useChatLabels.d.ts +5 -4
- package/dist/chat/useChatLabels.js +1 -6
- package/dist/code/CodeHighlightProvider.d.ts +14 -8
- package/dist/code/CodeHighlightProvider.js +1 -11
- package/dist/code/HighlightedCode.d.ts +16 -5
- package/dist/code/HighlightedCode.js +2 -17
- package/dist/code/code-themes.d.ts +11 -8
- package/dist/code/code-themes.js +1 -2
- package/dist/code/editor/CodeCompletion.d.ts +10 -12
- package/dist/code/editor/CodeCompletion.js +28 -31
- package/dist/code/editor/CodeEditor.d.ts +26 -7
- package/dist/code/editor/CodeEditor.js +5 -6
- package/dist/code/editor/CodeHover.d.ts +30 -13
- package/dist/code/editor/CodeHover.js +4 -24
- package/dist/code/editor/DiagnosticAnnotation.d.ts +7 -5
- package/dist/code/editor/DiagnosticAnnotation.js +2 -3
- package/dist/code/editor/DiagnosticsChip.d.ts +8 -6
- package/dist/code/editor/DiagnosticsChip.js +1 -2
- package/dist/code/editor/DiffView.d.ts +15 -8
- package/dist/code/editor/DiffView.js +1 -11
- package/dist/code/editor/EditorColumn.d.ts +23 -6
- package/dist/code/editor/EditorColumn.js +24 -44
- package/dist/code/editor/FileIcon.d.ts +10 -7
- package/dist/code/editor/FileIcon.js +3 -9
- package/dist/code/editor/FileTabPill.d.ts +2 -5
- package/dist/code/editor/FileTabPill.js +2 -3
- package/dist/code/editor/FileTree.d.ts +27 -11
- package/dist/code/editor/FileTree.js +1 -21
- package/dist/code/editor/FileView.d.ts +7 -9
- package/dist/code/editor/FileView.js +4 -10
- package/dist/code/editor/HighlightWorkers.d.ts +18 -5
- package/dist/code/editor/HighlightWorkers.js +1 -18
- package/dist/code/editor/LanguageEditor.d.ts +4 -7
- package/dist/code/editor/LanguageEditor.js +3 -11
- package/dist/code/editor/_vendor/tree-icon-colors.d.ts +2 -5
- package/dist/code/editor/_vendor/tree-icon-colors.js +1 -2
- package/dist/code/editor/diagnostics.d.ts +15 -13
- package/dist/code/editor/diagnostics.js +1 -2
- package/dist/code/editor/edit-session.d.ts +2 -5
- package/dist/code/editor/edit-session.js +1 -2
- package/dist/code/editor/environment.d.ts +13 -9
- package/dist/code/editor/environment.js +2 -10
- package/dist/code/editor/find/FindBar.d.ts +7 -5
- package/dist/code/editor/find/FindBar.js +2 -8
- package/dist/code/editor/find/find-highlight.d.ts +15 -9
- package/dist/code/editor/find/find-highlight.js +7 -13
- package/dist/code/editor/find/find-model.d.ts +14 -12
- package/dist/code/editor/find/find-model.js +1 -2
- package/dist/code/editor/find/settle-scroll.d.ts +3 -6
- package/dist/code/editor/find/settle-scroll.js +1 -2
- package/dist/code/editor/find/useFind.d.ts +15 -9
- package/dist/code/editor/find/useFind.js +5 -15
- package/dist/code/editor/fs-adapter.d.ts +14 -7
- package/dist/code/editor/index.d.ts +19 -13
- package/dist/code/editor/index.js +19 -19
- package/dist/code/editor/language.d.ts +9 -6
- package/dist/code/editor/patch-parse.d.ts +25 -14
- package/dist/code/editor/patch-parse.js +3 -4
- package/dist/code/editor/patch-parse.worker.js +3 -11
- package/dist/code/editor/pierre-theme.d.ts +16 -9
- package/dist/code/editor/pierre-theme.js +7 -5
- package/dist/code/editor/prime-diff.d.ts +10 -4
- package/dist/code/editor/prime-diff.js +1 -11
- package/dist/code/editor/reveal.d.ts +2 -5
- package/dist/code/editor/reveal.js +2 -3
- package/dist/code/editor/scroll-reach.d.ts +1 -4
- package/dist/code/editor/scroll-reach.js +1 -2
- package/dist/code/editor/useCodeDocument.d.ts +23 -8
- package/dist/code/editor/useCodeDocument.js +1 -20
- package/dist/code/editor/useDefinition.d.ts +12 -6
- package/dist/code/editor/useDefinition.js +1 -11
- package/dist/code/editor/useDetachCleanup.d.ts +1 -4
- package/dist/code/editor/useDetachCleanup.js +1 -2
- package/dist/code/editor/useFileDocument.d.ts +8 -6
- package/dist/code/editor/useFileDocument.js +1 -7
- package/dist/code/editor/useRevealLine.d.ts +12 -5
- package/dist/code/editor/useRevealLine.js +1 -12
- package/dist/code/editor/word-at.d.ts +5 -8
- package/dist/code/editor/word-at.js +1 -2
- package/dist/code/highlight-lines.d.ts +2 -5
- package/dist/code/highlight-lines.js +1 -2
- package/dist/code/highlight.worker.js +4 -5
- package/dist/code/highlighter.d.ts +7 -10
- package/dist/code/highlighter.js +1 -2
- package/dist/code/highlights.d.ts +1 -4
- package/dist/code/highlights.js +1 -12
- package/dist/code/mermaid-lexer.d.ts +17 -7
- package/dist/code/mermaid-lexer.js +3 -4
- package/dist/code/shiki-theme.d.ts +9 -5
- package/dist/code/shiki-theme.js +2 -3
- package/dist/code/use-highlighted-html.d.ts +1 -4
- package/dist/code/use-highlighted-html.js +2 -3
- package/dist/components/Accordion.d.ts +9 -6
- package/dist/components/Accordion.js +1 -8
- package/dist/components/BrandMark.d.ts +12 -7
- package/dist/components/BrandMark.js +2 -3
- package/dist/components/Breadcrumb.d.ts +7 -5
- package/dist/components/Breadcrumb.js +1 -7
- package/dist/components/Breakdown.d.ts +21 -12
- package/dist/components/Breakdown.js +1 -2
- package/dist/components/BrowserChrome.d.ts +9 -7
- package/dist/components/BrowserChrome.js +2 -8
- package/dist/components/BrowserSignIn.d.ts +10 -6
- package/dist/components/BrowserSignIn.js +2 -10
- package/dist/components/Callout.d.ts +11 -7
- package/dist/components/Callout.js +1 -2
- package/dist/components/Checklist.d.ts +12 -9
- package/dist/components/Checklist.js +2 -3
- package/dist/components/ChoiceCards.d.ts +14 -6
- package/dist/components/ChoiceCards.js +6 -17
- package/dist/components/CodeFrame.d.ts +31 -7
- package/dist/components/CodeFrame.js +9 -32
- package/dist/components/Compare.d.ts +22 -8
- package/dist/components/Compare.js +3 -4
- package/dist/components/ConfirmDialog.d.ts +13 -7
- package/dist/components/ConfirmDialog.js +1 -11
- package/dist/components/CopyButton.d.ts +12 -5
- package/dist/components/CopyButton.js +3 -14
- package/dist/components/EditableTitle.d.ts +6 -5
- package/dist/components/EditableTitle.js +3 -6
- package/dist/components/ErrorBoundary.d.ts +22 -10
- package/dist/components/ErrorBoundary.js +2 -17
- package/dist/components/Form.d.ts +58 -49
- package/dist/components/Form.js +14 -13
- package/dist/components/Highlighted.d.ts +2 -5
- package/dist/components/Highlighted.js +1 -2
- package/dist/components/HowItWorks.d.ts +14 -6
- package/dist/components/HowItWorks.js +1 -13
- package/dist/components/IconButton.d.ts +42 -18
- package/dist/components/IconButton.js +45 -24
- package/dist/components/IconButtonTip.d.ts +19 -0
- package/dist/components/IconButtonTip.js +32 -0
- package/dist/components/IconToggle.d.ts +2 -5
- package/dist/components/IconToggle.js +1 -2
- package/dist/components/KeyValue.d.ts +8 -6
- package/dist/components/KeyValue.js +1 -2
- package/dist/components/Keycap.d.ts +4 -7
- package/dist/components/Keycap.js +9 -10
- package/dist/components/Lightbox.d.ts +33 -8
- package/dist/components/Lightbox.js +84 -41
- package/dist/components/LoadError.d.ts +6 -5
- package/dist/components/LoadError.js +1 -2
- package/dist/components/MediaNav.d.ts +9 -6
- package/dist/components/MediaNav.js +1 -2
- package/dist/components/Menu.d.ts +49 -27
- package/dist/components/Menu.js +8 -31
- package/dist/components/Notice.d.ts +11 -6
- package/dist/components/Notice.js +1 -2
- package/dist/components/Overlay.d.ts +32 -7
- package/dist/components/Overlay.js +1 -30
- package/dist/components/PanelEmpty.d.ts +22 -14
- package/dist/components/PanelEmpty.js +32 -14
- package/dist/components/PanelRows.d.ts +12 -10
- package/dist/components/PanelRows.js +1 -2
- package/dist/components/PreviewWindow.d.ts +8 -5
- package/dist/components/PreviewWindow.js +1 -2
- package/dist/components/Progress.d.ts +11 -8
- package/dist/components/Progress.js +2 -3
- package/dist/components/ReorderTabs.d.ts +10 -6
- package/dist/components/ReorderTabs.js +2 -10
- package/dist/components/Restricted.d.ts +13 -5
- package/dist/components/Restricted.js +1 -2
- package/dist/components/RowActionsMenu.d.ts +26 -6
- package/dist/components/RowActionsMenu.js +3 -26
- package/dist/components/RowMenuButton.d.ts +9 -5
- package/dist/components/RowMenuButton.js +1 -9
- package/dist/components/SegmentSpinner.d.ts +14 -5
- package/dist/components/SegmentSpinner.js +1 -2
- package/dist/components/Segmented.d.ts +8 -6
- package/dist/components/Segmented.js +1 -7
- package/dist/components/Skeleton.d.ts +26 -0
- package/dist/components/Skeleton.js +22 -0
- package/dist/components/Stat.d.ts +17 -14
- package/dist/components/Stat.js +1 -8
- package/dist/components/StepFrame.d.ts +14 -7
- package/dist/components/StepFrame.js +1 -12
- package/dist/components/Stepper.d.ts +9 -6
- package/dist/components/Stepper.js +1 -2
- package/dist/components/Steps.d.ts +9 -7
- package/dist/components/Steps.js +1 -2
- package/dist/components/Surface.d.ts +21 -15
- package/dist/components/Surface.js +2 -3
- package/dist/components/SwatchPicker.d.ts +11 -6
- package/dist/components/SwatchPicker.js +1 -9
- package/dist/components/SwitchGlyph.d.ts +10 -5
- package/dist/components/SwitchGlyph.js +1 -2
- package/dist/components/TabPill.d.ts +18 -8
- package/dist/components/TabPill.js +1 -2
- package/dist/components/Table.d.ts +35 -10
- package/dist/components/Table.js +342 -104
- package/dist/components/Tabs.d.ts +10 -6
- package/dist/components/Tabs.js +1 -9
- package/dist/components/ThemeThumb.d.ts +7 -5
- package/dist/components/ThemeThumb.js +1 -2
- package/dist/components/ToggleCard.d.ts +15 -8
- package/dist/components/ToggleCard.js +29 -34
- package/dist/components/Tooltip.d.ts +68 -6
- package/dist/components/Tooltip.js +134 -70
- package/dist/components/ZidaneMark.d.ts +17 -5
- package/dist/components/ZidaneMark.js +5 -16
- package/dist/components/ZoomableImage.d.ts +35 -10
- package/dist/components/ZoomableImage.js +5 -28
- package/dist/components/button.d.ts +11 -13
- package/dist/components/button.js +6 -7
- package/dist/components/charts/AreaChart.d.ts +6 -5
- package/dist/components/charts/AreaChart.js +3 -7
- package/dist/components/charts/BarChart.d.ts +23 -15
- package/dist/components/charts/BarChart.js +4 -15
- package/dist/components/charts/LineChart.d.ts +9 -7
- package/dist/components/charts/LineChart.js +3 -8
- package/dist/components/charts/ScatterChart.d.ts +9 -12
- package/dist/components/charts/ScatterChart.js +5 -18
- package/dist/components/charts/Sparkline.d.ts +6 -6
- package/dist/components/charts/Sparkline.js +3 -6
- package/dist/components/charts/Trend.d.ts +17 -12
- package/dist/components/charts/Trend.js +8 -16
- package/dist/components/charts/frame.d.ts +51 -42
- package/dist/components/charts/frame.js +8 -14
- package/dist/components/charts/index.d.ts +8 -3
- package/dist/components/charts/index.js +2 -2
- package/dist/components/charts/interact.d.ts +29 -16
- package/dist/components/charts/interact.js +29 -19
- package/dist/components/charts/measure.d.ts +4 -7
- package/dist/components/charts/measure.js +1 -2
- package/dist/components/charts/xy.d.ts +26 -25
- package/dist/components/charts/xy.js +2 -7
- package/dist/components/charts/zoom-reset.d.ts +2 -5
- package/dist/components/charts/zoom-reset.js +1 -2
- package/dist/components/floating/FloatingSurface.d.ts +36 -20
- package/dist/components/floating/FloatingSurface.js +4 -20
- package/dist/components/floating/HoverCard.d.ts +11 -6
- package/dist/components/floating/HoverCard.js +2 -11
- package/dist/components/floating/Popover.d.ts +16 -8
- package/dist/components/floating/Popover.js +3 -15
- package/dist/components/floating/useAnchoredPosition.d.ts +9 -12
- package/dist/components/floating/useAnchoredPosition.js +1 -2
- package/dist/components/floating/usePopover.d.ts +6 -9
- package/dist/components/floating/usePopover.js +1 -2
- package/dist/components/image-clipboard.d.ts +3 -6
- package/dist/components/image-clipboard.js +1 -2
- package/dist/components/keyboard-layout.d.ts +7 -9
- package/dist/components/keyboard-layout.js +2 -3
- package/dist/components/lazy-part.d.ts +10 -7
- package/dist/components/lazy-part.js +12 -13
- package/dist/components/numbers.d.ts +11 -14
- package/dist/components/numbers.js +9 -10
- package/dist/components/palette/PaletteList.d.ts +36 -22
- package/dist/components/palette/PaletteList.js +28 -45
- package/dist/components/palette/PalettePanel.d.ts +19 -8
- package/dist/components/palette/PalettePanel.js +15 -28
- package/dist/components/palette/palette-layout.d.ts +13 -11
- package/dist/components/palette/palette-layout.js +1 -7
- package/dist/components/report-error.d.ts +9 -12
- package/dist/components/report-error.js +1 -2
- package/dist/components/tooltip-arming.d.ts +18 -0
- package/dist/components/tooltip-arming.js +32 -0
- package/dist/components/zidane-mark.d.ts +9 -12
- package/dist/components/zidane-mark.js +1 -2
- package/dist/components/zoom.d.ts +14 -17
- package/dist/components/zoom.js +3 -4
- package/dist/core.css +515 -128
- package/dist/dist/{index-CGCMyhB3.d.ts → index-Betz0OWq.d.ts} +123 -32
- package/dist/dist/index-QcFzZlao.d.ts +1 -0
- package/dist/dist/index.d.ts +6 -6
- package/dist/dist/oauth-callback-page-CV9oTMGy.d.ts +1 -0
- package/dist/dist/sandbox-D0zsW8I1.d.ts +2 -0
- package/dist/dist/{timeout-Cyx3VGPz.d.ts → timeout-CyU7HLyz.d.ts} +0 -2
- package/dist/extensions/ExtensionComponent.d.ts +21 -13
- package/dist/extensions/ExtensionComponent.js +1 -13
- package/dist/extensions/ExtensionDialogHost.d.ts +5 -20
- package/dist/extensions/ExtensionDialogHost.js +43 -85
- package/dist/extensions/ExtensionRenderer.d.ts +12 -5
- package/dist/extensions/ExtensionRenderer.js +2 -13
- package/dist/extensions/ExtensionScreen.d.ts +11 -6
- package/dist/extensions/ExtensionScreen.js +5 -14
- package/dist/extensions/ExtensionSettingsPage.d.ts +10 -5
- package/dist/extensions/ExtensionSettingsPage.js +3 -12
- package/dist/extensions/ExtensionSettingsPages.d.ts +10 -5
- package/dist/extensions/ExtensionSettingsPages.js +3 -4
- package/dist/extensions/ExtensionSettingsSection.d.ts +15 -5
- package/dist/extensions/ExtensionSettingsSection.js +17 -24
- package/dist/extensions/ExtensionSettingsSidebar.d.ts +39 -12
- package/dist/extensions/ExtensionSettingsSidebar.js +11 -40
- package/dist/extensions/ExtensionSlot.d.ts +20 -8
- package/dist/extensions/ExtensionSlot.js +46 -61
- package/dist/extensions/ExtensionWebview.d.ts +18 -6
- package/dist/extensions/ExtensionWebview.js +1 -17
- package/dist/extensions/ExtensionsProvider.d.ts +20 -11
- package/dist/extensions/ExtensionsProvider.js +3 -16
- package/dist/extensions/SettingsWireForm.d.ts +18 -9
- package/dist/extensions/SettingsWireForm.js +4 -5
- package/dist/extensions/headless/dialog-queue.d.ts +11 -9
- package/dist/extensions/headless/dialog-queue.js +1 -7
- package/dist/extensions/headless/effect-channel.d.ts +9 -7
- package/dist/extensions/headless/effect-channel.js +4 -3
- package/dist/extensions/headless/effect-router.d.ts +23 -11
- package/dist/extensions/headless/effect-router.js +1 -2
- package/dist/extensions/headless/fixture-host.d.ts +23 -26
- package/dist/extensions/headless/fixture-host.js +1 -8
- package/dist/extensions/headless/host-modules.d.ts +31 -0
- package/dist/extensions/headless/host-modules.js +46 -0
- package/dist/extensions/headless/host.d.ts +62 -56
- package/dist/extensions/headless/host.js +1 -2
- package/dist/extensions/headless/index.d.ts +18 -6
- package/dist/extensions/headless/index.js +6 -4
- package/dist/extensions/headless/keys.d.ts +102 -0
- package/dist/extensions/headless/keys.js +65 -0
- package/dist/extensions/headless/labels.d.ts +8 -5
- package/dist/extensions/headless/labels.js +1 -2
- package/dist/extensions/headless/links.d.ts +10 -6
- package/dist/extensions/headless/links.js +1 -2
- package/dist/extensions/headless/select.d.ts +19 -17
- package/dist/extensions/headless/select.js +1 -2
- package/dist/extensions/headless/webview-bridge.d.ts +19 -16
- package/dist/extensions/headless/webview-bridge.js +1 -2
- package/dist/extensions/headless/wire.d.ts +45 -41
- package/dist/extensions/headless/wire.js +1 -2
- package/dist/extensions/hooks.d.ts +16 -19
- package/dist/extensions/hooks.js +2 -14
- package/dist/extensions/index.d.ts +16 -4
- package/dist/extensions/index.js +8 -8
- package/dist/extensions/kit.d.ts +5 -5
- package/dist/extensions/kit.js +7 -7
- package/dist/extensions/links.d.ts +27 -13
- package/dist/extensions/links.js +1 -19
- package/dist/extensions/testing/contract.d.ts +36 -23
- package/dist/extensions/testing/contract.js +7 -22
- package/dist/extensions/testing/index.d.ts +5 -0
- package/dist/extensions/useExtensionsLabels.d.ts +5 -4
- package/dist/extensions/useExtensionsLabels.js +1 -6
- package/dist/files/CodeViewer.d.ts +3 -6
- package/dist/files/CodeViewer.js +11 -23
- package/dist/files/DiffFileViewer.d.ts +2 -5
- package/dist/files/DiffFileViewer.js +6 -12
- package/dist/files/DiffsTab.d.ts +18 -5
- package/dist/files/DiffsTab.js +212 -133
- package/dist/files/EditorColumn.d.ts +13 -9
- package/dist/files/EditorColumn.js +35 -40
- package/dist/files/EditorEnvironmentRoot.d.ts +9 -5
- package/dist/files/EditorEnvironmentRoot.js +2 -10
- package/dist/files/FilePreview.d.ts +3 -6
- package/dist/files/FilePreview.js +10 -29
- package/dist/files/FilesDiagnosticsChip.d.ts +6 -5
- package/dist/files/FilesDiagnosticsChip.js +2 -7
- package/dist/files/FilesProvider.d.ts +12 -7
- package/dist/files/FilesProvider.js +2 -11
- package/dist/files/FilesTab.d.ts +27 -6
- package/dist/files/FilesTab.js +9 -34
- package/dist/files/MediaDiff.d.ts +10 -6
- package/dist/files/MediaDiff.js +6 -13
- package/dist/files/MediaView.d.ts +17 -8
- package/dist/files/MediaView.js +2 -15
- package/dist/files/ReviewDraft.d.ts +2 -5
- package/dist/files/ReviewDraft.js +2 -3
- package/dist/files/ReviewableDiff.d.ts +7 -5
- package/dist/files/ReviewableDiff.js +4 -9
- package/dist/files/SearchPanel.d.ts +3 -6
- package/dist/files/SearchPanel.js +66 -77
- package/dist/files/TreeColumn.d.ts +12 -8
- package/dist/files/TreeColumn.js +6 -13
- package/dist/files/code-excerpt.d.ts +25 -22
- package/dist/files/code-excerpt.js +1 -8
- package/dist/files/code-menu.d.ts +10 -7
- package/dist/files/code-menu.js +1 -2
- package/dist/files/diff-window.d.ts +31 -0
- package/dist/files/diff-window.js +232 -0
- package/dist/files/drafts-store.d.ts +26 -10
- package/dist/files/drafts-store.js +1 -21
- package/dist/files/file-actions.d.ts +14 -12
- package/dist/files/file-actions.js +1 -2
- package/dist/files/headless/editor-prefs.d.ts +22 -19
- package/dist/files/headless/editor-prefs.js +1 -2
- package/dist/files/headless/entries.d.ts +18 -15
- package/dist/files/headless/entries.js +8 -7
- package/dist/files/headless/fixture-host.d.ts +19 -14
- package/dist/files/headless/fixture-host.js +1 -10
- package/dist/files/headless/host.d.ts +84 -71
- package/dist/files/headless/index.d.ts +3 -3
- package/dist/files/headless/index.js +1 -1
- package/dist/files/headless/labels.d.ts +4 -5
- package/dist/files/headless/labels.js +4 -3
- package/dist/files/headless/lsp-edits.d.ts +16 -9
- package/dist/files/headless/lsp-edits.js +1 -2
- package/dist/files/headless/media.d.ts +7 -6
- package/dist/files/headless/media.js +1 -2
- package/dist/files/headless/name-match.d.ts +6 -4
- package/dist/files/headless/name-match.js +1 -2
- package/dist/files/headless/preview.d.ts +5 -8
- package/dist/files/headless/preview.js +1 -2
- package/dist/files/headless/search.d.ts +6 -5
- package/dist/files/headless/search.js +1 -2
- package/dist/files/headless/view.d.ts +17 -15
- package/dist/files/headless/view.js +1 -2
- package/dist/files/headless/workspace-diff.d.ts +15 -12
- package/dist/files/headless/workspace-diff.js +1 -2
- package/dist/files/index.d.ts +3 -3
- package/dist/files/index.js +2 -2
- package/dist/files/lazy-tabs.d.ts +8 -5
- package/dist/files/lazy-tabs.js +1 -8
- package/dist/files/scroll-follow.d.ts +26 -0
- package/dist/files/scroll-follow.js +75 -0
- package/dist/files/session-patch.d.ts +5 -4
- package/dist/files/session-patch.js +1 -2
- package/dist/files/tab-hooks.d.ts +12 -10
- package/dist/files/tab-hooks.js +1 -7
- package/dist/files/testing/contract.d.ts +23 -13
- package/dist/files/testing/contract.js +1 -15
- package/dist/files/testing/demo.d.ts +5 -4
- package/dist/files/testing/demo.js +2 -3
- package/dist/files/testing/index.d.ts +5 -0
- package/dist/files/useCodeReview.d.ts +21 -7
- package/dist/files/useCodeReview.js +3 -21
- package/dist/files/useDiagnostics.d.ts +9 -5
- package/dist/files/useDiagnostics.js +1 -9
- package/dist/files/useDiagnosticsRun.d.ts +14 -7
- package/dist/files/useDiagnosticsRun.js +1 -12
- package/dist/files/useEntryActions.d.ts +13 -8
- package/dist/files/useEntryActions.js +3 -12
- package/dist/files/useFilesDiagnostics.d.ts +4 -7
- package/dist/files/useFilesDiagnostics.js +1 -8
- package/dist/files/useFilesLabels.d.ts +5 -4
- package/dist/files/useFilesLabels.js +1 -6
- package/dist/files/useFolderChanges.d.ts +8 -5
- package/dist/files/useFolderChanges.js +2 -9
- package/dist/files/useLsp.d.ts +22 -11
- package/dist/files/useLsp.js +1 -16
- package/dist/files/useOpenFiles.d.ts +24 -9
- package/dist/files/useOpenFiles.js +4 -22
- package/dist/files/useWorkspace.d.ts +16 -8
- package/dist/files/useWorkspace.js +2 -14
- package/dist/files/working-tree-diff.d.ts +16 -5
- package/dist/files/working-tree-diff.js +2 -17
- package/dist/git/BranchMenu.d.ts +45 -6
- package/dist/git/BranchMenu.js +214 -253
- package/dist/git/GitBar.d.ts +27 -6
- package/dist/git/GitBar.js +11 -33
- package/dist/git/GitProvider.d.ts +13 -7
- package/dist/git/GitProvider.js +1 -11
- package/dist/git/ImportRepoDialog.d.ts +23 -7
- package/dist/git/ImportRepoDialog.js +12 -32
- package/dist/git/MoveSessionDialog.d.ts +25 -6
- package/dist/git/MoveSessionDialog.js +10 -33
- package/dist/git/RemoteFolderPicker.d.ts +23 -7
- package/dist/git/RemoteFolderPicker.js +34 -53
- package/dist/git/SyncChip.d.ts +19 -6
- package/dist/git/SyncChip.js +7 -24
- package/dist/git/WherePicker.d.ts +28 -7
- package/dist/git/WherePicker.js +18 -35
- package/dist/git/headless/environment.d.ts +25 -16
- package/dist/git/headless/environment.js +1 -2
- package/dist/git/headless/host.d.ts +68 -60
- package/dist/git/headless/index.d.ts +4 -4
- package/dist/git/headless/index.js +3 -3
- package/dist/git/headless/labels.d.ts +13 -6
- package/dist/git/headless/labels.js +5 -2
- package/dist/git/headless/move.d.ts +11 -9
- package/dist/git/headless/move.js +1 -2
- package/dist/git/headless/remote-clone.d.ts +13 -5
- package/dist/git/headless/remote-clone.js +1 -13
- package/dist/git/headless/status-reads.d.ts +15 -6
- package/dist/git/headless/status-reads.js +1 -2
- package/dist/git/headless/switcher.d.ts +34 -23
- package/dist/git/headless/switcher.js +13 -8
- package/dist/git/headless/sync.d.ts +13 -8
- package/dist/git/headless/sync.js +1 -2
- package/dist/git/index.d.ts +2 -2
- package/dist/git/index.js +6 -6
- package/dist/git/testing/contract.d.ts +22 -12
- package/dist/git/testing/contract.js +1 -2
- package/dist/git/testing/index.d.ts +24 -20
- package/dist/git/testing/index.js +36 -32
- package/dist/git/testing/worst-case.d.ts +12 -0
- package/dist/git/testing/worst-case.js +128 -0
- package/dist/git/useEnvironmentChoices.d.ts +8 -4
- package/dist/git/useEnvironmentChoices.js +2 -3
- package/dist/git/useGitBar.d.ts +2 -5
- package/dist/git/useGitBar.js +1 -20
- package/dist/git/useStartFromPanel.d.ts +13 -6
- package/dist/git/useStartFromPanel.js +3 -14
- package/dist/hooks/keyed-store.d.ts +7 -10
- package/dist/hooks/keyed-store.js +1 -2
- package/dist/hooks/near-viewport-all.d.ts +1 -0
- package/dist/hooks/near-viewport-all.js +10 -0
- package/dist/hooks/useDisplayPath.d.ts +23 -9
- package/dist/hooks/useDisplayPath.js +1 -19
- package/dist/hooks/useHydrated.d.ts +1 -4
- package/dist/hooks/useHydrated.js +1 -2
- package/dist/hooks/useLongPress.d.ts +26 -0
- package/dist/hooks/useLongPress.js +53 -0
- package/dist/hooks/useMinuteTick.d.ts +1 -4
- package/dist/hooks/useMinuteTick.js +1 -2
- package/dist/hooks/useNearViewport.d.ts +14 -5
- package/dist/hooks/useNearViewport.js +8 -18
- package/dist/hooks/usePersistedState.d.ts +20 -8
- package/dist/hooks/usePersistedState.js +4 -18
- package/dist/hooks/useResizeDrag.d.ts +30 -12
- package/dist/hooks/useResizeDrag.js +3 -25
- package/dist/hooks/useTabDrag.d.ts +9 -6
- package/dist/hooks/useTabDrag.js +1 -8
- package/dist/index.d.ts +48 -32
- package/dist/index.js +54 -51
- package/dist/keybindings/KeyCommands.d.ts +16 -8
- package/dist/keybindings/KeyCommands.js +2 -14
- package/dist/keybindings/KeyHint.d.ts +10 -7
- package/dist/keybindings/KeyHint.js +1 -2
- package/dist/keybindings/KeybindingsProvider.d.ts +36 -10
- package/dist/keybindings/KeybindingsProvider.js +2 -32
- package/dist/keybindings/headless/catalog.d.ts +18 -9
- package/dist/keybindings/headless/catalog.js +1 -2
- package/dist/keybindings/headless/commands.d.ts +16 -11
- package/dist/keybindings/headless/commands.js +1 -2
- package/dist/keybindings/headless/fixture-host.d.ts +9 -9
- package/dist/keybindings/headless/fixture-host.js +1 -2
- package/dist/keybindings/headless/host.d.ts +17 -10
- package/dist/keybindings/headless/index.d.ts +8 -1
- package/dist/keybindings/headless/index.js +1 -1
- package/dist/keybindings/headless/key-scope.d.ts +19 -9
- package/dist/keybindings/headless/key-scope.js +1 -2
- package/dist/keybindings/headless/labels.d.ts +2 -5
- package/dist/keybindings/headless/labels.js +1 -2
- package/dist/keybindings/headless/overrides.d.ts +10 -9
- package/dist/keybindings/headless/overrides.js +2 -7
- package/dist/keybindings/index.d.ts +10 -2
- package/dist/keybindings/index.js +3 -3
- package/dist/keybindings/load-once.d.ts +1 -4
- package/dist/keybindings/load-once.js +1 -2
- package/dist/keybindings/match.d.ts +4 -4
- package/dist/keybindings/match.js +1 -5
- package/dist/keybindings/press.d.ts +4 -7
- package/dist/keybindings/press.js +1 -2
- package/dist/keybindings/testing/contract.d.ts +24 -12
- package/dist/keybindings/testing/contract.js +1 -17
- package/dist/keybindings/testing/index.d.ts +5 -0
- package/dist/keybindings/useHelpKey.d.ts +1 -4
- package/dist/keybindings/useHelpKey.js +1 -2
- package/dist/keybindings/useKeybindingsLabels.d.ts +5 -4
- package/dist/keybindings/useKeybindingsLabels.js +1 -6
- package/dist/labels.d.ts +23 -12
- package/dist/labels.js +9 -14
- package/dist/machines/AddMachineDialog.d.ts +20 -8
- package/dist/machines/AddMachineDialog.js +17 -33
- package/dist/machines/AddServerForm.d.ts +8 -5
- package/dist/machines/AddServerForm.js +3 -10
- package/dist/machines/Banners.d.ts +21 -15
- package/dist/machines/Banners.js +2 -3
- package/dist/machines/DaemonMenu.d.ts +12 -5
- package/dist/machines/DaemonMenu.js +8 -19
- package/dist/machines/HostCapabilities.d.ts +14 -9
- package/dist/machines/HostCapabilities.js +3 -12
- package/dist/machines/HostIcon.d.ts +7 -6
- package/dist/machines/HostIcon.js +1 -2
- package/dist/machines/HostSignIn.d.ts +10 -5
- package/dist/machines/HostSignIn.js +2 -11
- package/dist/machines/HostSyncPanel.d.ts +20 -7
- package/dist/machines/HostSyncPanel.js +7 -24
- package/dist/machines/HostsSection.d.ts +17 -7
- package/dist/machines/HostsSection.js +12 -26
- package/dist/machines/MachinesExplainer.d.ts +8 -5
- package/dist/machines/MachinesExplainer.js +1 -2
- package/dist/machines/MachinesProvider.d.ts +29 -19
- package/dist/machines/MachinesProvider.js +5 -19
- package/dist/machines/ServerAddedCard.d.ts +9 -6
- package/dist/machines/ServerAddedCard.js +4 -5
- package/dist/machines/ServerCard.d.ts +19 -11
- package/dist/machines/ServerCard.js +14 -20
- package/dist/machines/ServerMachinesPanel.d.ts +20 -5
- package/dist/machines/ServerMachinesPanel.js +9 -28
- package/dist/machines/ServerUpdatePanel.d.ts +13 -5
- package/dist/machines/ServerUpdatePanel.js +5 -6
- package/dist/machines/ShareThisComputerForm.d.ts +8 -5
- package/dist/machines/ShareThisComputerForm.js +5 -12
- package/dist/machines/SyncAccounts.d.ts +14 -6
- package/dist/machines/SyncAccounts.js +2 -14
- package/dist/machines/SyncMarker.d.ts +11 -6
- package/dist/machines/SyncMarker.js +4 -13
- package/dist/machines/SyncOutcomeBadge.d.ts +9 -5
- package/dist/machines/SyncOutcomeBadge.js +2 -3
- package/dist/machines/TokensPanel.d.ts +16 -5
- package/dist/machines/TokensPanel.js +12 -21
- package/dist/machines/headless/fixture-host.d.ts +20 -17
- package/dist/machines/headless/fixture-host.js +12 -11
- package/dist/machines/headless/fixtures.d.ts +15 -13
- package/dist/machines/headless/fixtures.js +1 -2
- package/dist/machines/headless/host.d.ts +95 -80
- package/dist/machines/headless/host.js +1 -2
- package/dist/machines/headless/index.d.ts +12 -6
- package/dist/machines/headless/index.js +4 -4
- package/dist/machines/headless/labels.d.ts +24 -11
- package/dist/machines/headless/labels.js +9 -8
- package/dist/machines/headless/messages.d.ts +17 -15
- package/dist/machines/headless/messages.js +3 -9
- package/dist/machines/headless/presence.d.ts +14 -8
- package/dist/machines/headless/presence.js +1 -11
- package/dist/machines/headless/settings-focus.d.ts +2 -5
- package/dist/machines/headless/settings-focus.js +1 -2
- package/dist/machines/headless/stores.d.ts +15 -12
- package/dist/machines/headless/stores.js +1 -2
- package/dist/machines/headless/sync.d.ts +21 -15
- package/dist/machines/headless/sync.js +1 -10
- package/dist/machines/headless/update-store.d.ts +13 -9
- package/dist/machines/headless/update-store.js +4 -10
- package/dist/machines/index.d.ts +5 -5
- package/dist/machines/index.js +10 -10
- package/dist/machines/server-update.d.ts +10 -7
- package/dist/machines/server-update.js +2 -9
- package/dist/machines/settings-section.d.ts +10 -5
- package/dist/machines/settings-section.js +3 -4
- package/dist/machines/testing/contract.d.ts +48 -33
- package/dist/machines/testing/contract.js +10 -26
- package/dist/machines/testing/index.d.ts +7 -1
- package/dist/machines/testing/index.js +2 -1
- package/dist/machines/testing/sync.contract.d.ts +27 -16
- package/dist/machines/testing/sync.contract.js +1 -16
- package/dist/machines/testing/worst-case.d.ts +9 -0
- package/dist/machines/testing/worst-case.js +30 -0
- package/dist/motion/SwapIcon.d.ts +2 -5
- package/dist/motion/SwapIcon.js +1 -2
- package/dist/motion/collapse.d.ts +1 -4
- package/dist/motion/collapse.js +1 -2
- package/dist/motion/flip-list.d.ts +116 -0
- package/dist/motion/flip-list.js +576 -0
- package/dist/motion/grow.d.ts +15 -12
- package/dist/motion/grow.js +1 -7
- package/dist/motion/layout-animating.d.ts +4 -7
- package/dist/motion/layout-animating.js +1 -2
- package/dist/motion/presence.d.ts +11 -14
- package/dist/motion/presence.js +4 -5
- package/dist/motion/provider.d.ts +19 -5
- package/dist/motion/provider.js +14 -17
- package/dist/motion/reduced.d.ts +3 -6
- package/dist/motion/reduced.js +1 -2
- package/dist/motion/roll.d.ts +10 -8
- package/dist/motion/roll.js +1 -7
- package/dist/motion/shimmer.d.ts +2 -5
- package/dist/motion/shimmer.js +1 -2
- package/dist/motion/size.d.ts +12 -9
- package/dist/motion/size.js +11 -26
- package/dist/motion/springs.d.ts +100 -31
- package/dist/motion/springs.js +49 -64
- package/dist/motion/swap.d.ts +22 -8
- package/dist/motion/swap.js +1 -19
- package/dist/motion/title-text.d.ts +16 -5
- package/dist/motion/title-text.js +1 -16
- package/dist/motion/use-flip-list.d.ts +66 -0
- package/dist/motion/use-flip-list.js +74 -0
- package/dist/onboarding/ConnectProviderCard.d.ts +10 -5
- package/dist/onboarding/ConnectProviderCard.js +1 -2
- package/dist/onboarding/OnboardingFlow.d.ts +12 -6
- package/dist/onboarding/OnboardingFlow.js +7 -11
- package/dist/onboarding/OnboardingProvider.d.ts +22 -14
- package/dist/onboarding/OnboardingProvider.js +3 -15
- package/dist/onboarding/OnboardingStepFrame.d.ts +9 -5
- package/dist/onboarding/OnboardingStepFrame.js +1 -2
- package/dist/onboarding/conversation.d.ts +12 -8
- package/dist/onboarding/conversation.js +4 -12
- package/dist/onboarding/demos/autonomy.d.ts +4 -7
- package/dist/onboarding/demos/autonomy.js +1 -2
- package/dist/onboarding/demos/delivery.d.ts +8 -5
- package/dist/onboarding/demos/delivery.js +1 -2
- package/dist/onboarding/demos/extensions.d.ts +12 -15
- package/dist/onboarding/demos/extensions.js +4 -5
- package/dist/onboarding/demos/features.d.ts +39 -38
- package/dist/onboarding/demos/features.js +26 -22
- package/dist/onboarding/demos/how-it-works.d.ts +26 -22
- package/dist/onboarding/demos/how-it-works.js +4 -5
- package/dist/onboarding/demos/index.d.ts +9 -4
- package/dist/onboarding/demos/index.js +2 -2
- package/dist/onboarding/demos/lazy.d.ts +18 -0
- package/dist/onboarding/demos/lazy.js +29 -0
- package/dist/onboarding/demos/parts.d.ts +16 -13
- package/dist/onboarding/demos/parts.js +1 -2
- package/dist/onboarding/demos/setting-demos.d.ts +8 -0
- package/dist/onboarding/demos/setting-demos.js +4 -0
- package/dist/onboarding/demos/setting-scenes.d.ts +30 -0
- package/dist/onboarding/demos/setting-scenes.js +164 -0
- package/dist/onboarding/demos/sidebar-layout.d.ts +17 -0
- package/dist/onboarding/demos/sidebar-layout.js +22 -0
- package/dist/onboarding/demos/tour.d.ts +20 -16
- package/dist/onboarding/demos/tour.js +1 -9
- package/dist/onboarding/headless/controller.d.ts +11 -6
- package/dist/onboarding/headless/controller.js +1 -9
- package/dist/onboarding/headless/fixture-host.d.ts +8 -5
- package/dist/onboarding/headless/fixture-host.js +2 -3
- package/dist/onboarding/headless/fixtures.d.ts +12 -8
- package/dist/onboarding/headless/fixtures.js +14 -20
- package/dist/onboarding/headless/host.d.ts +40 -31
- package/dist/onboarding/headless/index.d.ts +1 -1
- package/dist/onboarding/headless/labels.d.ts +23 -9
- package/dist/onboarding/headless/labels.js +12 -10
- package/dist/onboarding/index.d.ts +18 -9
- package/dist/onboarding/index.js +13 -12
- package/dist/onboarding/marks.d.ts +16 -10
- package/dist/onboarding/marks.js +1 -11
- package/dist/onboarding/preview-attachments.d.ts +8 -4
- package/dist/onboarding/preview-attachments.js +1 -2
- package/dist/onboarding/skills/SkillSourceBrowser.d.ts +13 -6
- package/dist/onboarding/skills/SkillSourceBrowser.js +2 -13
- package/dist/onboarding/skills/parts.d.ts +23 -18
- package/dist/onboarding/skills/parts.js +2 -11
- package/dist/onboarding/sources/SourceBrowser.d.ts +23 -8
- package/dist/onboarding/sources/SourceBrowser.js +3 -21
- package/dist/onboarding/steps/AutonomyStep.d.ts +2 -5
- package/dist/onboarding/steps/AutonomyStep.js +15 -99
- package/dist/onboarding/steps/ConnectStep.d.ts +2 -5
- package/dist/onboarding/steps/ConnectStep.js +4 -10
- package/dist/onboarding/steps/ConnectorsStep.d.ts +2 -5
- package/dist/onboarding/steps/ConnectorsStep.js +4 -13
- package/dist/onboarding/steps/ConversationStep.d.ts +2 -5
- package/dist/onboarding/steps/ConversationStep.js +40 -102
- package/dist/onboarding/steps/ExtensionsStep.d.ts +2 -5
- package/dist/onboarding/steps/ExtensionsStep.js +4 -13
- package/dist/onboarding/steps/FeaturesStep.d.ts +2 -5
- package/dist/onboarding/steps/FeaturesStep.js +15 -46
- package/dist/onboarding/steps/ImportStep.d.ts +2 -5
- package/dist/onboarding/steps/ImportStep.js +5 -16
- package/dist/onboarding/steps/LookStep.d.ts +2 -5
- package/dist/onboarding/steps/LookStep.js +5 -15
- package/dist/onboarding/steps/ReadyStep.d.ts +2 -5
- package/dist/onboarding/steps/ReadyStep.js +11 -13
- package/dist/onboarding/steps/SidebarStep.d.ts +11 -0
- package/dist/onboarding/steps/SidebarStep.js +33 -0
- package/dist/onboarding/steps/SkillsStep.d.ts +2 -5
- package/dist/onboarding/steps/SkillsStep.js +2 -3
- package/dist/onboarding/steps/StepSection.d.ts +10 -7
- package/dist/onboarding/steps/StepSection.js +1 -2
- package/dist/onboarding/steps/WelcomeStep.d.ts +2 -5
- package/dist/onboarding/steps/WelcomeStep.js +3 -10
- package/dist/onboarding/steps/connect/KeyForm.d.ts +7 -5
- package/dist/onboarding/steps/connect/KeyForm.js +1 -7
- package/dist/onboarding/steps/connect/ProviderPanel.d.ts +7 -5
- package/dist/onboarding/steps/connect/ProviderPanel.js +4 -10
- package/dist/onboarding/steps/connect/ProviderReady.d.ts +6 -5
- package/dist/onboarding/steps/connect/ProviderReady.js +3 -8
- package/dist/onboarding/steps/connect/ready-text.d.ts +2 -4
- package/dist/onboarding/steps/connect/ready-text.js +1 -2
- package/dist/onboarding/steps/index.d.ts +3 -1
- package/dist/onboarding/steps/index.js +2 -1
- package/dist/onboarding/steps/setting-cards.d.ts +72 -0
- package/dist/onboarding/steps/setting-cards.js +114 -0
- package/dist/onboarding/steps/tasks.d.ts +9 -7
- package/dist/onboarding/steps/tasks.js +6 -7
- package/dist/onboarding/testing/contract.d.ts +36 -18
- package/dist/onboarding/testing/contract.js +31 -49
- package/dist/onboarding/testing/index.d.ts +5 -0
- package/dist/onboarding/testing/index.js +1 -1
- package/dist/onboarding/tutorials.d.ts +9 -5
- package/dist/onboarding/tutorials.js +2 -3
- package/dist/onboarding/useSignIn.d.ts +7 -5
- package/dist/onboarding/useSignIn.js +1 -7
- package/dist/palette/CommandPalette.d.ts +8 -5
- package/dist/palette/CommandPalette.js +1 -2
- package/dist/palette/PaletteDialog.d.ts +19 -8
- package/dist/palette/PaletteDialog.js +3 -4
- package/dist/palette/PaletteProvider.d.ts +19 -12
- package/dist/palette/PaletteProvider.js +1 -2
- package/dist/palette/PaletteRows.d.ts +15 -9
- package/dist/palette/PaletteRows.js +12 -9
- package/dist/palette/app-sources.d.ts +12 -5
- package/dist/palette/app-sources.js +4 -15
- package/dist/palette/headless/app-sources.d.ts +30 -26
- package/dist/palette/headless/app-sources.js +2 -5
- package/dist/palette/headless/gather.d.ts +2 -5
- package/dist/palette/headless/gather.js +1 -2
- package/dist/palette/headless/host.d.ts +36 -29
- package/dist/palette/headless/index.d.ts +5 -5
- package/dist/palette/headless/index.js +4 -4
- package/dist/palette/headless/labels.d.ts +2 -5
- package/dist/palette/headless/labels.js +1 -2
- package/dist/palette/headless/rank-protocol.d.ts +8 -6
- package/dist/palette/headless/recents.d.ts +2 -5
- package/dist/palette/headless/recents.js +1 -2
- package/dist/palette/headless/session-sources.d.ts +33 -20
- package/dist/palette/headless/session-sources.js +1 -2
- package/dist/palette/headless/sources.d.ts +25 -21
- package/dist/palette/headless/sources.js +2 -5
- package/dist/palette/headless/store.d.ts +20 -12
- package/dist/palette/headless/store.js +1 -2
- package/dist/palette/index.d.ts +4 -4
- package/dist/palette/index.js +5 -5
- package/dist/palette/rank.worker.js +3 -4
- package/dist/palette/setup.d.ts +4 -6
- package/dist/palette/setup.js +1 -3
- package/dist/palette/testing/contract.d.ts +19 -10
- package/dist/palette/testing/contract.js +1 -2
- package/dist/palette/testing/index.d.ts +15 -11
- package/dist/palette/testing/index.js +3 -3
- package/dist/palette/testing/worst-case.d.ts +9 -0
- package/dist/palette/testing/worst-case.js +40 -0
- package/dist/palette/useConversationSearch.d.ts +15 -9
- package/dist/palette/useConversationSearch.js +2 -3
- package/dist/palette/usePaletteController.d.ts +19 -6
- package/dist/palette/usePaletteController.js +6 -9
- package/dist/palette/useRankedItems.d.ts +12 -5
- package/dist/palette/useRankedItems.js +1 -2
- package/dist/path.d.ts +6 -9
- package/dist/path.js +1 -2
- package/dist/server/demo-tools.d.ts +7 -5
- package/dist/server/demo-tools.js +1 -2
- package/dist/server/environment.d.ts +14 -8
- package/dist/server/environment.js +2 -12
- package/dist/server/scripted-provider.d.ts +17 -9
- package/dist/server/scripted-provider.js +3 -3
- package/dist/server/sse-handler.d.ts +6 -8
- package/dist/server/sse-handler.js +46 -56
- package/dist/session/ArtifactRowChips.d.ts +22 -13
- package/dist/session/ArtifactRowChips.js +28 -23
- package/dist/session/ArtifactsPanel.d.ts +29 -7
- package/dist/session/ArtifactsPanel.js +57 -42
- package/dist/session/DiffFileTree.d.ts +16 -6
- package/dist/session/DiffFileTree.js +160 -71
- package/dist/session/PanelAttention.d.ts +7 -10
- package/dist/session/PanelAttention.js +3 -24
- package/dist/session/PlanTracker.d.ts +28 -9
- package/dist/session/PlanTracker.js +14 -37
- package/dist/session/ProjectHome.d.ts +40 -9
- package/dist/session/ProjectHome.js +441 -200
- package/dist/session/ProviderUsageProvider.d.ts +16 -7
- package/dist/session/ProviderUsageProvider.js +2 -15
- package/dist/session/QueueTab.d.ts +21 -7
- package/dist/session/QueueTab.js +12 -30
- package/dist/session/RemindersPanel.d.ts +25 -6
- package/dist/session/RemindersPanel.js +56 -36
- package/dist/session/RunningWorkDialog.d.ts +10 -5
- package/dist/session/RunningWorkDialog.js +3 -12
- package/dist/session/SecretsPanel.d.ts +14 -5
- package/dist/session/SecretsPanel.js +7 -20
- package/dist/session/SessionCacheFacts.d.ts +10 -6
- package/dist/session/SessionCacheFacts.js +3 -11
- package/dist/session/SessionDetailsDialog.d.ts +21 -9
- package/dist/session/SessionDetailsDialog.js +27 -36
- package/dist/session/SessionHeader.d.ts +25 -6
- package/dist/session/SessionHeader.js +50 -15
- package/dist/session/SessionProvider.d.ts +19 -14
- package/dist/session/SessionProvider.js +2 -11
- package/dist/session/SessionShell.d.ts +12 -8
- package/dist/session/SessionShell.js +1 -9
- package/dist/session/SideChat.d.ts +18 -5
- package/dist/session/SideChat.js +7 -24
- package/dist/session/StepStatusIcon.d.ts +12 -6
- package/dist/session/StepStatusIcon.js +1 -11
- package/dist/session/TodoList.d.ts +14 -11
- package/dist/session/TodoList.js +2 -3
- package/dist/session/TurnDetailsDialog.d.ts +11 -5
- package/dist/session/TurnDetailsDialog.js +9 -19
- package/dist/session/UsagePanel.d.ts +10 -5
- package/dist/session/UsagePanel.js +9 -18
- package/dist/session/WelcomeScreen.d.ts +20 -5
- package/dist/session/WelcomeScreen.js +10 -9
- package/dist/session/headless/artifacts.d.ts +15 -11
- package/dist/session/headless/artifacts.js +1 -2
- package/dist/session/headless/diff-tree.d.ts +8 -11
- package/dist/session/headless/diff-tree.js +1 -2
- package/dist/session/headless/fixture-host.d.ts +23 -18
- package/dist/session/headless/fixture-host.js +8 -9
- package/dist/session/headless/fixture-plans.d.ts +21 -16
- package/dist/session/headless/fixture-plans.js +1 -2
- package/dist/session/headless/fixture-schedules.d.ts +23 -18
- package/dist/session/headless/fixture-schedules.js +1 -10
- package/dist/session/headless/home-layout.d.ts +101 -21
- package/dist/session/headless/home-layout.js +187 -12
- package/dist/session/headless/host.d.ts +95 -85
- package/dist/session/headless/index.d.ts +12 -12
- package/dist/session/headless/index.js +9 -9
- package/dist/session/headless/keyed.d.ts +12 -10
- package/dist/session/headless/keyed.js +1 -2
- package/dist/session/headless/labels.d.ts +29 -9
- package/dist/session/headless/labels.js +38 -12
- package/dist/session/headless/plans.d.ts +22 -14
- package/dist/session/headless/plans.js +1 -2
- package/dist/session/headless/queue-attachments.d.ts +9 -7
- package/dist/session/headless/queue-attachments.js +1 -2
- package/dist/session/headless/queue.d.ts +21 -16
- package/dist/session/headless/queue.js +1 -2
- package/dist/session/headless/reminder-labels.d.ts +7 -4
- package/dist/session/headless/reminder-labels.js +2 -3
- package/dist/session/headless/running-work.d.ts +15 -10
- package/dist/session/headless/running-work.js +1 -2
- package/dist/session/headless/schedules.d.ts +31 -22
- package/dist/session/headless/schedules.js +1 -14
- package/dist/session/headless/secrets.d.ts +13 -10
- package/dist/session/headless/secrets.js +1 -2
- package/dist/session/headless/session-actions.d.ts +37 -27
- package/dist/session/headless/session-actions.js +2 -3
- package/dist/session/headless/session-diffs.d.ts +13 -9
- package/dist/session/headless/session-diffs.js +21 -24
- package/dist/session/headless/side.d.ts +8 -11
- package/dist/session/headless/side.js +2 -3
- package/dist/session/headless/usage-format.d.ts +7 -4
- package/dist/session/headless/usage-format.js +1 -2
- package/dist/session/headless/usage.d.ts +43 -31
- package/dist/session/headless/usage.js +3 -4
- package/dist/session/index.d.ts +7 -6
- package/dist/session/index.js +9 -8
- package/dist/session/modal-shell.d.ts +7 -5
- package/dist/session/modal-shell.js +11 -10
- package/dist/session/testing/contract.d.ts +42 -17
- package/dist/session/testing/contract.js +28 -53
- package/dist/session/testing/demo.d.ts +13 -11
- package/dist/session/testing/demo.js +16 -15
- package/dist/session/testing/index.d.ts +7 -1
- package/dist/session/testing/index.js +4 -3
- package/dist/session/testing/worst-case.d.ts +33 -0
- package/dist/session/testing/worst-case.js +29 -0
- package/dist/session/useSessionActionError.d.ts +9 -0
- package/dist/session/useSessionActionError.js +13 -0
- package/dist/session/useSessionLabels.d.ts +5 -4
- package/dist/session/useSessionLabels.js +1 -6
- package/dist/session/useUsageSummary.d.ts +2 -5
- package/dist/session/useUsageSummary.js +2 -11
- package/dist/settings/ConversationPresetsCard.d.ts +55 -0
- package/dist/settings/ConversationPresetsCard.js +84 -0
- package/dist/settings/SettingCard.d.ts +147 -0
- package/dist/settings/SettingCard.js +148 -0
- package/dist/settings/SettingDemo.d.ts +28 -0
- package/dist/settings/SettingDemo.js +114 -0
- package/dist/settings/SettingsFooter.d.ts +13 -9
- package/dist/settings/SettingsFooter.js +11 -14
- package/dist/settings/SettingsHeadingText.d.ts +10 -5
- package/dist/settings/SettingsHeadingText.js +1 -10
- package/dist/settings/SettingsHostSwitcher.d.ts +16 -5
- package/dist/settings/SettingsHostSwitcher.js +72 -6
- package/dist/settings/SettingsNav.d.ts +14 -6
- package/dist/settings/SettingsNav.js +7 -15
- package/dist/settings/SettingsProvider.d.ts +25 -13
- package/dist/settings/SettingsProvider.js +2 -18
- package/dist/settings/SettingsRestricted.d.ts +11 -6
- package/dist/settings/SettingsRestricted.js +2 -11
- package/dist/settings/SettingsRowsPage.d.ts +52 -10
- package/dist/settings/SettingsRowsPage.js +315 -76
- package/dist/settings/SettingsSectionBoundary.d.ts +31 -0
- package/dist/settings/SettingsSectionBoundary.js +58 -0
- package/dist/settings/SettingsShell.d.ts +42 -8
- package/dist/settings/SettingsShell.js +155 -58
- package/dist/settings/SettingsTutorial.d.ts +15 -5
- package/dist/settings/SettingsTutorial.js +28 -9
- package/dist/settings/SidebarPreviewPane.d.ts +16 -0
- package/dist/settings/SidebarPreviewPane.js +30 -0
- package/dist/settings/ViewsMcpAllowedRow.d.ts +16 -0
- package/dist/settings/ViewsMcpAllowedRow.js +47 -0
- package/dist/settings/headless/app-update.d.ts +4 -7
- package/dist/settings/headless/cards.d.ts +41 -0
- package/dist/settings/headless/cards.js +68 -0
- package/dist/settings/headless/catalog.d.ts +9 -40
- package/dist/settings/headless/catalog.js +3 -798
- package/dist/settings/headless/claude-import.d.ts +8 -11
- package/dist/settings/headless/enabled.d.ts +3 -6
- package/dist/settings/headless/enabled.js +1 -2
- package/dist/settings/headless/fixture-accounts.d.ts +9 -12
- package/dist/settings/headless/fixture-accounts.js +2 -2
- package/dist/settings/headless/fixture-host.d.ts +20 -14
- package/dist/settings/headless/fixture-host.js +6 -3
- package/dist/settings/headless/fixture-models.d.ts +8 -6
- package/dist/settings/headless/fixture-models.js +9 -8
- package/dist/settings/headless/fixture-performance.d.ts +18 -13
- package/dist/settings/headless/fixture-performance.js +7 -6
- package/dist/settings/headless/fixture-sections.d.ts +30 -16
- package/dist/settings/headless/fixture-sections.js +79 -2
- package/dist/settings/headless/host.d.ts +48 -16
- package/dist/settings/headless/host.js +1 -2
- package/dist/settings/headless/index.d.ts +16 -14
- package/dist/settings/headless/index.js +11 -9
- package/dist/settings/headless/labels.d.ts +59 -6
- package/dist/settings/headless/labels.js +49 -2
- package/dist/settings/headless/layout-sections.d.ts +11 -10
- package/dist/settings/headless/layout-sections.js +4 -4
- package/dist/settings/headless/layout.d.ts +94 -49
- package/dist/settings/headless/layout.js +125 -731
- package/dist/settings/headless/mcp.d.ts +40 -30
- package/dist/settings/headless/mcp.js +2 -2
- package/dist/settings/headless/models.d.ts +14 -11
- package/dist/settings/headless/page-counts.d.ts +13 -9
- package/dist/settings/headless/page-counts.js +8 -13
- package/dist/settings/headless/performance.d.ts +75 -48
- package/dist/settings/headless/performance.js +81 -44
- package/dist/settings/headless/providers.d.ts +28 -20
- package/dist/settings/headless/providers.js +1 -2
- package/dist/settings/headless/registry.d.ts +8 -6
- package/dist/settings/headless/resource.d.ts +9 -6
- package/dist/settings/headless/resource.js +1 -8
- package/dist/settings/headless/search.d.ts +98 -14
- package/dist/settings/headless/search.js +129 -30
- package/dist/settings/headless/sections-host.d.ts +102 -71
- package/dist/settings/headless/skill-groups.d.ts +74 -0
- package/dist/settings/headless/skill-groups.js +71 -0
- package/dist/settings/index.d.ts +35 -31
- package/dist/settings/index.js +22 -18
- package/dist/settings/rows.d.ts +39 -20
- package/dist/settings/rows.js +73 -17
- package/dist/settings/scope.d.ts +36 -0
- package/dist/settings/scope.js +44 -0
- package/dist/settings/section.d.ts +20 -16
- package/dist/settings/section.js +4 -12
- package/dist/settings/sections/appearance/AppearanceSection.d.ts +15 -6
- package/dist/settings/sections/appearance/AppearanceSection.js +77 -74
- package/dist/settings/sections/appearance/labels.d.ts +4 -5
- package/dist/settings/sections/appearance/labels.js +3 -2
- package/dist/settings/sections/claude-import/ClaudeImportDialog.d.ts +16 -6
- package/dist/settings/sections/claude-import/ClaudeImportDialog.js +4 -18
- package/dist/settings/sections/claude-import/labels.d.ts +2 -5
- package/dist/settings/sections/claude-import/labels.js +1 -2
- package/dist/settings/sections/claude-import/use-claude-import-available.d.ts +1 -4
- package/dist/settings/sections/claude-import/use-claude-import-available.js +1 -8
- package/dist/settings/sections/descriptors.d.ts +20 -23
- package/dist/settings/sections/descriptors.js +4 -5
- package/dist/settings/sections/editor/EditorSection.d.ts +13 -9
- package/dist/settings/sections/editor/EditorSection.js +5 -13
- package/dist/settings/sections/editor/labels.d.ts +2 -5
- package/dist/settings/sections/editor/labels.js +1 -2
- package/dist/settings/sections/enabled-list/EnabledListSection.d.ts +10 -6
- package/dist/settings/sections/enabled-list/EnabledListSection.js +3 -11
- package/dist/settings/sections/enabled-list/labels.d.ts +8 -5
- package/dist/settings/sections/enabled-list/labels.js +1 -2
- package/dist/settings/sections/environments/EnvironmentsSection.d.ts +19 -6
- package/dist/settings/sections/environments/EnvironmentsSection.js +15 -32
- package/dist/settings/sections/environments/labels.d.ts +2 -5
- package/dist/settings/sections/environments/labels.js +1 -2
- package/dist/settings/sections/extensions/ChangeOriginDialog.d.ts +15 -8
- package/dist/settings/sections/extensions/ChangeOriginDialog.js +4 -15
- package/dist/settings/sections/extensions/CreateExtensionDialog.d.ts +11 -6
- package/dist/settings/sections/extensions/CreateExtensionDialog.js +3 -12
- package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +25 -12
- package/dist/settings/sections/extensions/ExtensionConfigRows.js +6 -23
- package/dist/settings/sections/extensions/ExtensionOptionsSection.d.ts +19 -6
- package/dist/settings/sections/extensions/ExtensionOptionsSection.js +4 -21
- package/dist/settings/sections/extensions/ExtensionPicksBar.d.ts +11 -8
- package/dist/settings/sections/extensions/ExtensionPicksBar.js +3 -10
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.d.ts +14 -7
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +14 -21
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +33 -8
- package/dist/settings/sections/extensions/ExtensionsSection.js +30 -54
- package/dist/settings/sections/extensions/create-labels.d.ts +2 -5
- package/dist/settings/sections/extensions/create-labels.js +1 -2
- package/dist/settings/sections/extensions/labels.d.ts +2 -5
- package/dist/settings/sections/extensions/labels.js +1 -2
- package/dist/settings/sections/extensions/options-labels.d.ts +7 -5
- package/dist/settings/sections/extensions/options-labels.js +1 -2
- package/dist/settings/sections/host-catalog/HostCatalogSection.d.ts +27 -7
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +37 -52
- package/dist/settings/sections/host-catalog/labels.d.ts +7 -5
- package/dist/settings/sections/host-catalog/labels.js +1 -2
- package/dist/settings/sections/index.d.ts +47 -38
- package/dist/settings/sections/index.js +37 -37
- package/dist/settings/sections/instructions/InstructionsSection.d.ts +19 -6
- package/dist/settings/sections/instructions/InstructionsSection.js +17 -30
- package/dist/settings/sections/instructions/labels.d.ts +2 -5
- package/dist/settings/sections/instructions/labels.js +1 -2
- package/dist/settings/sections/keybindings/KeybindingsSection.d.ts +14 -6
- package/dist/settings/sections/keybindings/KeybindingsSection.js +4 -16
- package/dist/settings/sections/keybindings/labels.d.ts +3 -6
- package/dist/settings/sections/keybindings/labels.js +1 -2
- package/dist/settings/sections/keybindings/rows.d.ts +10 -7
- package/dist/settings/sections/keybindings/rows.js +1 -2
- package/dist/settings/sections/logs/LogsSection.d.ts +13 -6
- package/dist/settings/sections/logs/LogsSection.js +4 -15
- package/dist/settings/sections/logs/labels.d.ts +2 -5
- package/dist/settings/sections/logs/labels.js +1 -2
- package/dist/settings/sections/mcp/McpAddForm.d.ts +11 -6
- package/dist/settings/sections/mcp/McpAddForm.js +9 -18
- package/dist/settings/sections/mcp/McpSection.d.ts +17 -6
- package/dist/settings/sections/mcp/McpSection.js +42 -23
- package/dist/settings/sections/mcp/McpServerRow.d.ts +12 -5
- package/dist/settings/sections/mcp/McpServerRow.js +19 -29
- package/dist/settings/sections/mcp/labels.d.ts +28 -6
- package/dist/settings/sections/mcp/labels.js +19 -9
- package/dist/settings/sections/models/AgentDefaults.d.ts +18 -8
- package/dist/settings/sections/models/AgentDefaults.js +5 -19
- package/dist/settings/sections/models/ModelListPicker.d.ts +4 -7
- package/dist/settings/sections/models/ModelListPicker.js +10 -18
- package/dist/settings/sections/models/ModelPickField.d.ts +15 -6
- package/dist/settings/sections/models/ModelPickField.js +7 -20
- package/dist/settings/sections/models/ModelRows.d.ts +35 -14
- package/dist/settings/sections/models/ModelRows.js +52 -21
- package/dist/settings/sections/models/NewChatPlaceRow.d.ts +15 -10
- package/dist/settings/sections/models/NewChatPlaceRow.js +17 -48
- package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +13 -7
- package/dist/settings/sections/models/SpacesDefaultsSection.js +31 -21
- package/dist/settings/sections/models/labels.d.ts +7 -7
- package/dist/settings/sections/models/labels.js +6 -4
- package/dist/settings/sections/models/model-test.d.ts +13 -10
- package/dist/settings/sections/models/model-test.js +4 -11
- package/dist/settings/sections/performance/PerfSparkline.d.ts +6 -5
- package/dist/settings/sections/performance/PerfSparkline.js +3 -7
- package/dist/settings/sections/performance/PerformanceHud.d.ts +8 -5
- package/dist/settings/sections/performance/PerformanceHud.js +8 -9
- package/dist/settings/sections/performance/PerformanceSection.d.ts +17 -6
- package/dist/settings/sections/performance/PerformanceSection.js +64 -72
- package/dist/settings/sections/performance/labels.d.ts +7 -5
- package/dist/settings/sections/performance/labels.js +6 -5
- package/dist/settings/sections/performance/use-perf-monitor.d.ts +12 -5
- package/dist/settings/sections/performance/use-perf-monitor.js +9 -9
- package/dist/settings/sections/plugins/PluginsSection.d.ts +17 -7
- package/dist/settings/sections/plugins/PluginsSection.js +8 -21
- package/dist/settings/sections/plugins/labels.d.ts +2 -5
- package/dist/settings/sections/plugins/labels.js +1 -2
- package/dist/settings/sections/providers/CredentialSources.d.ts +15 -7
- package/dist/settings/sections/providers/CredentialSources.js +91 -90
- package/dist/settings/sections/providers/ProvidersSection.d.ts +15 -7
- package/dist/settings/sections/providers/ProvidersSection.js +55 -57
- package/dist/settings/sections/providers/ServerProvidersSection.d.ts +11 -5
- package/dist/settings/sections/providers/ServerProvidersSection.js +25 -25
- package/dist/settings/sections/providers/ServerSignIn.d.ts +14 -5
- package/dist/settings/sections/providers/ServerSignIn.js +3 -16
- package/dist/settings/sections/providers/label-collisions.d.ts +14 -0
- package/dist/settings/sections/providers/label-collisions.js +23 -0
- package/dist/settings/sections/providers/labels.d.ts +9 -5
- package/dist/settings/sections/providers/labels.js +2 -10
- package/dist/settings/sections/shared/catalog.d.ts +21 -19
- package/dist/settings/sections/shared/catalog.js +9 -15
- package/dist/settings/sections/shared/filter.d.ts +53 -0
- package/dist/settings/sections/shared/filter.js +105 -0
- package/dist/settings/sections/shared/labels.d.ts +7 -5
- package/dist/settings/sections/shared/labels.js +1 -2
- package/dist/settings/sections/skills/SkillGroups.d.ts +30 -0
- package/dist/settings/sections/skills/SkillGroups.js +520 -0
- package/dist/settings/sections/skills/SkillList.d.ts +47 -7
- package/dist/settings/sections/skills/SkillList.js +95 -125
- package/dist/settings/sections/skills/SkillsSection.d.ts +17 -5
- package/dist/settings/sections/skills/SkillsSection.js +19 -22
- package/dist/settings/sections/skills/labels.d.ts +44 -5
- package/dist/settings/sections/skills/labels.js +44 -3
- package/dist/settings/sections/use-section-labels.d.ts +1 -4
- package/dist/settings/sections/use-section-labels.js +1 -2
- package/dist/settings/server-app.d.ts +19 -8
- package/dist/settings/server-app.js +15 -24
- package/dist/settings/testing/accounts-demo.d.ts +12 -7
- package/dist/settings/testing/accounts-demo.js +4 -2
- package/dist/settings/testing/accounts.contract.d.ts +14 -17
- package/dist/settings/testing/accounts.contract.js +8 -22
- package/dist/settings/testing/claude-import.contract.d.ts +14 -9
- package/dist/settings/testing/claude-import.contract.js +1 -10
- package/dist/settings/testing/contract.d.ts +33 -17
- package/dist/settings/testing/contract.js +8 -8
- package/dist/settings/testing/extension-options.contract.d.ts +19 -11
- package/dist/settings/testing/extension-options.contract.js +1 -2
- package/dist/settings/testing/index.d.ts +2 -2
- package/dist/settings/testing/index.js +2 -2
- package/dist/settings/testing/models.contract.d.ts +19 -10
- package/dist/settings/testing/models.contract.js +1 -14
- package/dist/settings/testing/performance.contract.d.ts +28 -16
- package/dist/settings/testing/performance.contract.js +1 -17
- package/dist/settings/testing/sections.contract.d.ts +30 -18
- package/dist/settings/testing/sections.contract.js +13 -12
- package/dist/settings/testing/skill-groups.contract.d.ts +45 -0
- package/dist/settings/testing/skill-groups.contract.js +94 -0
- package/dist/settings/use-panel-search.d.ts +15 -0
- package/dist/settings/use-panel-search.js +96 -0
- package/dist/styles.css +1541 -385
- package/dist/terminal/HostTerminalSurface.d.ts +2 -5
- package/dist/terminal/HostTerminalSurface.js +19 -18
- package/dist/terminal/TerminalDrawer.d.ts +7 -10
- package/dist/terminal/TerminalDrawer.js +7 -15
- package/dist/terminal/TerminalPanel.d.ts +26 -6
- package/dist/terminal/TerminalPanel.js +43 -61
- package/dist/terminal/TerminalProvider.d.ts +46 -31
- package/dist/terminal/TerminalProvider.js +1 -20
- package/dist/terminal/TerminalSurface.d.ts +3 -6
- package/dist/terminal/TerminalSurface.js +2 -3
- package/dist/terminal/assets.d.ts +12 -6
- package/dist/terminal/assets.js +1 -11
- package/dist/terminal/box-glyphs.d.ts +3 -6
- package/dist/terminal/box-glyphs.js +1 -2
- package/dist/terminal/ghostty.d.ts +6 -8
- package/dist/terminal/ghostty.js +1 -2
- package/dist/terminal/grid-size.d.ts +4 -7
- package/dist/terminal/grid-size.js +1 -2
- package/dist/terminal/headless/fixture-host.d.ts +17 -15
- package/dist/terminal/headless/fixture-host.js +2 -3
- package/dist/terminal/headless/host.d.ts +41 -28
- package/dist/terminal/headless/index.d.ts +8 -2
- package/dist/terminal/headless/index.js +2 -2
- package/dist/terminal/headless/labels.d.ts +6 -5
- package/dist/terminal/headless/labels.js +7 -4
- package/dist/terminal/headless/layout.d.ts +14 -11
- package/dist/terminal/headless/layout.js +1 -8
- package/dist/terminal/headless/links.d.ts +8 -11
- package/dist/terminal/headless/links.js +1 -2
- package/dist/terminal/headless/order.d.ts +3 -6
- package/dist/terminal/headless/order.js +1 -2
- package/dist/terminal/headless/output-cursor.d.ts +8 -15
- package/dist/terminal/headless/output-cursor.js +1 -2
- package/dist/terminal/headless/recent.d.ts +2 -5
- package/dist/terminal/headless/recent.js +1 -2
- package/dist/terminal/headless/replay.d.ts +2 -5
- package/dist/terminal/headless/replay.js +1 -2
- package/dist/terminal/headless/scope.d.ts +4 -7
- package/dist/terminal/headless/scope.js +1 -2
- package/dist/terminal/headless/store.d.ts +38 -15
- package/dist/terminal/headless/store.js +2 -3
- package/dist/terminal/index.d.ts +15 -4
- package/dist/terminal/index.js +5 -5
- package/dist/terminal/keys.d.ts +1 -4
- package/dist/terminal/keys.js +1 -2
- package/dist/terminal/testing/contract.d.ts +28 -15
- package/dist/terminal/testing/contract.js +20 -35
- package/dist/terminal/testing/demo.d.ts +7 -6
- package/dist/terminal/testing/demo.js +1 -6
- package/dist/terminal/testing/index.d.ts +5 -0
- package/dist/terminal/theme.d.ts +9 -6
- package/dist/terminal/theme.js +1 -8
- package/dist/terminal/useTerminalLabels.d.ts +5 -4
- package/dist/terminal/useTerminalLabels.js +1 -6
- package/dist/theme/accents.d.ts +3 -6
- package/dist/theme/accents.js +1 -2
- package/dist/theme/color.d.ts +19 -22
- package/dist/theme/color.js +5 -6
- package/dist/theme/css-vars.d.ts +38 -7
- package/dist/theme/css-vars.js +1 -2
- package/dist/theme/derive.d.ts +12 -15
- package/dist/theme/derive.js +3 -4
- package/dist/theme/from-theme.d.ts +11 -5
- package/dist/theme/from-theme.js +1 -2
- package/dist/theme/runtime-icons.d.ts +3 -6
- package/dist/theme/runtime-icons.js +1 -2
- package/dist/theme/stylesheet.d.ts +10 -7
- package/dist/theme/stylesheet.js +1 -8
- package/dist/theme/themes.d.ts +10 -13
- package/dist/theme/themes.js +10 -11
- package/dist/theme/without-transitions.d.ts +1 -4
- package/dist/theme/without-transitions.js +1 -2
- package/dist/uno.d.ts +2 -5
- package/dist/uno.js +45 -9
- package/dist/url-imports.d.ts +2 -2
- package/dist/views/BoolMark.d.ts +3 -6
- package/dist/views/BoolMark.js +1 -2
- package/dist/views/PinnedSavedView.d.ts +31 -0
- package/dist/views/PinnedSavedView.js +220 -0
- package/dist/views/SavedViewArtifact.d.ts +39 -0
- package/dist/views/SavedViewArtifact.js +373 -0
- package/dist/views/SavedViewTitle.d.ts +26 -0
- package/dist/views/SavedViewTitle.js +104 -0
- package/dist/views/SvgImage.d.ts +3 -6
- package/dist/views/SvgImage.js +9 -37
- package/dist/views/TranscriptViews.d.ts +11 -8
- package/dist/views/TranscriptViews.js +27 -12
- package/dist/views/ViewAutoRefresh.d.ts +12 -7
- package/dist/views/ViewAutoRefresh.js +18 -17
- package/dist/views/ViewBlock.d.ts +40 -11
- package/dist/views/ViewBlock.js +424 -110
- package/dist/views/ViewCharts.d.ts +7 -5
- package/dist/views/ViewCharts.js +9 -14
- package/dist/views/ViewControls.d.ts +10 -13
- package/dist/views/ViewControls.js +9 -18
- package/dist/views/ViewCustom.d.ts +38 -10
- package/dist/views/ViewCustom.js +56 -50
- package/dist/views/ViewExpanded.d.ts +10 -8
- package/dist/views/ViewExpanded.js +46 -33
- package/dist/views/ViewExtension.d.ts +16 -6
- package/dist/views/ViewExtension.js +8 -22
- package/dist/views/ViewInputs.d.ts +3 -6
- package/dist/views/ViewInputs.js +65 -40
- package/dist/views/ViewMcpApp.d.ts +32 -7
- package/dist/views/ViewMcpApp.js +49 -70
- package/dist/views/ViewNodes.d.ts +66 -23
- package/dist/views/ViewNodes.js +216 -116
- package/dist/views/ViewPreviewPage.d.ts +22 -10
- package/dist/views/ViewPreviewPage.js +35 -30
- package/dist/views/ViewSessionAction.d.ts +71 -0
- package/dist/views/ViewSessionAction.js +498 -0
- package/dist/views/ViewSources.d.ts +82 -0
- package/dist/views/ViewSources.js +435 -0
- package/dist/views/ViewTables.d.ts +8 -5
- package/dist/views/ViewTables.js +82 -15
- package/dist/views/ViewsProvider.d.ts +10 -8
- package/dist/views/ViewsProvider.js +1 -7
- package/dist/views/badge-tone.d.ts +5 -8
- package/dist/views/badge-tone.js +1 -2
- package/dist/views/expanded.d.ts +2 -5
- package/dist/views/expanded.js +1 -2
- package/dist/views/fit.d.ts +31 -0
- package/dist/views/fit.js +52 -0
- package/dist/views/format.d.ts +17 -12
- package/dist/views/format.js +7 -6
- package/dist/views/headless/answers.d.ts +15 -7
- package/dist/views/headless/answers.js +10 -8
- package/dist/views/headless/capture.d.ts +62 -0
- package/dist/views/headless/capture.js +286 -0
- package/dist/views/headless/copy-image.d.ts +18 -0
- package/dist/views/headless/copy-image.js +18 -0
- package/dist/views/headless/custom-slots.d.ts +9 -12
- package/dist/views/headless/custom-slots.js +1 -2
- package/dist/views/headless/download.d.ts +8 -4
- package/dist/views/headless/download.js +1 -2
- package/dist/views/headless/frame-name.d.ts +2 -5
- package/dist/views/headless/frame-name.js +2 -3
- package/dist/views/headless/host.d.ts +141 -42
- package/dist/views/headless/index.d.ts +8 -6
- package/dist/views/headless/index.js +7 -6
- package/dist/views/headless/labels.d.ts +169 -5
- package/dist/views/headless/labels.js +188 -7
- package/dist/views/headless/live.d.ts +7 -4
- package/dist/views/headless/live.js +1 -8
- package/dist/views/headless/lru.d.ts +2 -5
- package/dist/views/headless/lru.js +1 -2
- package/dist/views/headless/mcp-app-bridge.d.ts +42 -21
- package/dist/views/headless/mcp-app-bridge.js +26 -47
- package/dist/views/headless/placement.d.ts +42 -15
- package/dist/views/headless/placement.js +40 -18
- package/dist/views/headless/records.d.ts +29 -16
- package/dist/views/headless/records.js +63 -22
- package/dist/views/headless/refs.d.ts +6 -4
- package/dist/views/headless/refs.js +4 -3
- package/dist/views/headless/safe.d.ts +4 -7
- package/dist/views/headless/safe.js +2 -3
- package/dist/views/headless/session-links.d.ts +27 -0
- package/dist/views/headless/session-links.js +98 -0
- package/dist/views/headless/store.d.ts +75 -29
- package/dist/views/headless/store.js +59 -26
- package/dist/views/headless/streaming.d.ts +16 -11
- package/dist/views/headless/streaming.js +52 -18
- package/dist/views/headless/view-state.d.ts +12 -8
- package/dist/views/headless/view-state.js +10 -21
- package/dist/views/index.d.ts +2 -1
- package/dist/views/index.js +3 -1
- package/dist/views/input-preview.d.ts +9 -4
- package/dist/views/input-preview.js +8 -3
- package/dist/views/preview-style.d.ts +18 -4
- package/dist/views/preview-style.js +1 -2
- package/dist/views/preview.d.ts +6 -0
- package/dist/views/session-nav.d.ts +40 -0
- package/dist/views/session-nav.js +26 -0
- package/dist/views/session-part.d.ts +6 -0
- package/dist/views/session-part.js +12 -0
- package/dist/views/testing/contract.d.ts +42 -14
- package/dist/views/testing/contract.js +150 -10
- package/dist/views/testing/fixture-host.d.ts +12 -10
- package/dist/views/testing/fixture-host.js +23 -8
- package/dist/views/testing/index.d.ts +7 -1
- package/dist/views/testing/index.js +3 -1
- package/dist/views/testing/saved-memory.d.ts +28 -0
- package/dist/views/testing/saved-memory.js +84 -0
- package/dist/views/theme-watch.d.ts +12 -11
- package/dist/views/theme-watch.js +23 -8
- package/dist/views/trusted.d.ts +2 -5
- package/dist/views/trusted.js +1 -2
- package/dist/views/use-view-copy.d.ts +43 -0
- package/dist/views/use-view-copy.js +104 -0
- package/dist/views/use-view-pin.d.ts +61 -0
- package/dist/views/use-view-pin.js +170 -0
- package/dist/views/use-view-ref.d.ts +12 -0
- package/dist/views/use-view-ref.js +8 -0
- package/dist/views/use-view-save.d.ts +27 -0
- package/dist/views/use-view-save.js +147 -0
- package/dist/views/view-chrome.d.ts +25 -0
- package/dist/views/view-chrome.js +20 -0
- package/dist/views/viewport.d.ts +11 -7
- package/dist/views/viewport.js +1 -8
- package/dist/workspace/LayoutBudget.d.ts +22 -9
- package/dist/workspace/LayoutBudget.js +1 -18
- package/dist/workspace/PanelContentView.d.ts +38 -10
- package/dist/workspace/PanelContentView.js +45 -13
- package/dist/workspace/PanelCorner.d.ts +15 -6
- package/dist/workspace/PanelCorner.js +3 -3
- package/dist/workspace/PanelGlyph.d.ts +7 -5
- package/dist/workspace/PanelGlyph.js +1 -7
- package/dist/workspace/PanelGroups.d.ts +4 -7
- package/dist/workspace/PanelGroups.js +17 -26
- package/dist/workspace/PanelHome.d.ts +9 -5
- package/dist/workspace/PanelHome.js +4 -11
- package/dist/workspace/PanelItems.d.ts +20 -11
- package/dist/workspace/PanelItems.js +8 -8
- package/dist/workspace/PanelStrip.d.ts +7 -10
- package/dist/workspace/PanelStrip.js +11 -27
- package/dist/workspace/PanelToolbar.d.ts +40 -6
- package/dist/workspace/PanelToolbar.js +83 -14
- package/dist/workspace/SidePanel.d.ts +24 -5
- package/dist/workspace/SidePanel.js +7 -28
- package/dist/workspace/TabParking.d.ts +23 -12
- package/dist/workspace/TabParking.js +11 -25
- package/dist/workspace/WorkspaceProvider.d.ts +68 -36
- package/dist/workspace/WorkspaceProvider.js +15 -33
- package/dist/workspace/dnd/engine.d.ts +19 -14
- package/dist/workspace/dnd/engine.js +20 -21
- package/dist/workspace/dnd/hooks.d.ts +4 -6
- package/dist/workspace/dnd/hooks.js +1 -3
- package/dist/workspace/dnd/index.d.ts +31 -0
- package/dist/workspace/dnd/parking.d.ts +27 -18
- package/dist/workspace/dnd/parking.js +2 -21
- package/dist/workspace/extension-tabs.d.ts +22 -6
- package/dist/workspace/extension-tabs.js +3 -22
- package/dist/workspace/frame-motion.d.ts +17 -6
- package/dist/workspace/frame-motion.js +10 -21
- package/dist/workspace/headless/contents.d.ts +23 -18
- package/dist/workspace/headless/contents.js +1 -2
- package/dist/workspace/headless/host.d.ts +34 -23
- package/dist/workspace/headless/index.d.ts +10 -10
- package/dist/workspace/headless/index.js +9 -9
- package/dist/workspace/headless/labels.d.ts +2 -5
- package/dist/workspace/headless/labels.js +1 -2
- package/dist/workspace/headless/layout-memory.d.ts +70 -28
- package/dist/workspace/headless/layout-memory.js +15 -55
- package/dist/workspace/headless/layouts.d.ts +18 -14
- package/dist/workspace/headless/layouts.js +3 -4
- package/dist/workspace/headless/open-target.d.ts +21 -10
- package/dist/workspace/headless/open-target.js +1 -16
- package/dist/workspace/headless/ops.d.ts +17 -20
- package/dist/workspace/headless/ops.js +2 -3
- package/dist/workspace/headless/pages.d.ts +5 -5
- package/dist/workspace/headless/pages.js +1 -2
- package/dist/workspace/headless/panel-focus.d.ts +15 -10
- package/dist/workspace/headless/panel-focus.js +1 -2
- package/dist/workspace/headless/panel-tree.d.ts +26 -18
- package/dist/workspace/headless/panel-tree.js +1 -13
- package/dist/workspace/headless/resolve.d.ts +11 -14
- package/dist/workspace/headless/resolve.js +1 -2
- package/dist/workspace/headless/reveal-at.d.ts +3 -6
- package/dist/workspace/headless/reveal-at.js +1 -2
- package/dist/workspace/headless/strip-drop.d.ts +16 -12
- package/dist/workspace/headless/strip-drop.js +1 -9
- package/dist/workspace/headless/tab-mark.d.ts +6 -5
- package/dist/workspace/headless/tab-mark.js +1 -6
- package/dist/workspace/headless/tree.d.ts +34 -37
- package/dist/workspace/headless/tree.js +2 -3
- package/dist/workspace/headless/view.d.ts +21 -19
- package/dist/workspace/headless/view.js +7 -8
- package/dist/workspace/index.d.ts +8 -8
- package/dist/workspace/index.js +7 -7
- package/dist/workspace/panel-group-keys.d.ts +7 -4
- package/dist/workspace/panel-group-keys.js +1 -8
- package/dist/workspace/panel-view-item.d.ts +14 -0
- package/dist/workspace/panel-view-item.js +13 -0
- package/dist/workspace/panel-visibility.d.ts +3 -6
- package/dist/workspace/panel-visibility.js +1 -2
- package/dist/workspace/tab-scopes.d.ts +37 -15
- package/dist/workspace/tab-scopes.js +1 -27
- package/dist/workspace/testing/contract.d.ts +27 -14
- package/dist/workspace/testing/contract.js +2 -3
- package/dist/workspace/testing/index.d.ts +17 -15
- package/dist/workspace/testing/index.js +2 -3
- package/dist/workspace/use-split-drag.d.ts +13 -7
- package/dist/workspace/use-split-drag.js +1 -11
- package/dist/workspace/useScopeLayout.d.ts +5 -4
- package/dist/workspace/useScopeLayout.js +1 -6
- package/dist/workspace/useViewport.d.ts +1 -4
- package/dist/workspace/useViewport.js +1 -2
- package/dist/workspace/useWorkspaceLabels.d.ts +5 -4
- package/dist/workspace/useWorkspaceLabels.js +1 -6
- package/dist/workspace/workspace-key-commands.d.ts +19 -7
- package/dist/workspace/workspace-key-commands.js +2 -18
- package/package.json +28 -30
- package/src/styles/app.css +88 -0
- package/src/styles/base.css +73 -0
- package/src/styles/chat.css +162 -40
- package/src/styles/components.css +213 -74
- package/src/styles/composer.css +44 -15
- package/src/styles/editor.css +1 -1
- package/src/styles/fonts.css +9 -0
- package/src/styles/git.css +10 -3
- package/src/styles/index.css +2 -1
- package/src/styles/motion.css +34 -3
- package/src/styles/onboarding.css +26 -19
- package/src/styles/palette.css +18 -6
- package/src/styles/primitives.css +169 -20
- package/src/styles/rich-composer.css +89 -41
- package/src/styles/session.css +1 -18
- package/src/styles/settings.css +75 -22
- package/src/styles/sidebar.css +262 -9
- package/src/styles/tokens.css +39 -7
- package/src/styles/transcript.css +69 -28
- package/src/styles/workspace.css +16 -2
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/app/NoticeStack.d.ts +0 -33
- package/dist/app/NoticeStack.js +0 -90
- package/dist/dist/index-BUHcyEqA.d.ts +0 -1
- package/dist/dist/oauth-callback-page-DMxIgurj.d.ts +0 -1
- package/dist/dist/sandbox-Cib3Qf4t.d.ts +0 -2
- package/dist/onboarding/steps/FeatureExample.d.ts +0 -19
- package/dist/onboarding/steps/FeatureExample.js +0 -26
- package/dist/onboarding/steps/Tradeoff.d.ts +0 -21
- package/dist/onboarding/steps/Tradeoff.js +0 -44
- /package/dist/dist/{types-CgfAUN48.d.ts → types-_Dtoq_No.d.ts} +0 -0
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
//#region src/adapters/extension-modules.d.ts
|
|
2
1
|
/** Loads an extension's `ui.tsx` module: its exports by name (`zidane-ui/extensions`' `ExtensionModuleLoader`). */
|
|
3
|
-
type ExtensionModuleLoad = (extensionId: string) => Promise<Readonly<Record<string, unknown>>>;
|
|
2
|
+
export type ExtensionModuleLoad = (extensionId: string) => Promise<Readonly<Record<string, unknown>>>;
|
|
4
3
|
/** The global the linked bundles read host modules from. */
|
|
5
|
-
declare const EXTENSION_HOST_MODULES_GLOBAL = "__zidaneExtensionHostModules__";
|
|
4
|
+
export declare const EXTENSION_HOST_MODULES_GLOBAL = "__zidaneExtensionHostModules__";
|
|
6
5
|
/** A module namespace (`import * as React from 'react'`). */
|
|
7
|
-
type ExtensionHostModule = Readonly<Record<string, unknown>>;
|
|
6
|
+
export type ExtensionHostModule = Readonly<Record<string, unknown>>;
|
|
8
7
|
/** Host modules by specifier: what the app hands the extensions' components. */
|
|
9
|
-
type ExtensionHostModules = Readonly<Record<string, ExtensionHostModule>>;
|
|
8
|
+
export type ExtensionHostModules = Readonly<Record<string, ExtensionHostModule>>;
|
|
10
9
|
/**
|
|
11
10
|
* Host modules by specifier, each a namespace or a loader of one (a function resolving the namespace): a
|
|
12
11
|
* loader runs the first time a bundle imports its specifier, so the app's first load stays small.
|
|
13
12
|
*/
|
|
14
|
-
type ExtensionHostModuleSources = Readonly<Record<string, ExtensionHostModule | (() => Promise<ExtensionHostModule>)>>;
|
|
13
|
+
export type ExtensionHostModuleSources = Readonly<Record<string, ExtensionHostModule | (() => Promise<ExtensionHostModule>)>>;
|
|
15
14
|
/** A linked bundle: its code, and the host modules it reads. */
|
|
16
|
-
interface LinkedExtensionModule {
|
|
15
|
+
export interface LinkedExtensionModule {
|
|
17
16
|
/** The bundle with its host-module imports rewritten to reads of the shared module map. */
|
|
18
17
|
code: string;
|
|
19
18
|
/** The host module specifiers the code reads, each once. */
|
|
20
19
|
uses: readonly string[];
|
|
21
20
|
}
|
|
22
21
|
/** A bundle that imports something the app does not provide. */
|
|
23
|
-
declare class ExtensionModuleLinkError extends Error {
|
|
22
|
+
export declare class ExtensionModuleLinkError extends Error {
|
|
24
23
|
readonly specifiers: readonly string[];
|
|
25
24
|
/**
|
|
26
25
|
* @param specifiers - The specifiers the app has no module for.
|
|
@@ -37,16 +36,16 @@ declare class ExtensionModuleLinkError extends Error {
|
|
|
37
36
|
* @returns The linked code and the host modules it reads.
|
|
38
37
|
* @throws {ExtensionModuleLinkError} When it imports a bare specifier the app does not provide.
|
|
39
38
|
*/
|
|
40
|
-
declare function linkExtensionModule(code: string, provided: (specifier: string) => boolean): LinkedExtensionModule;
|
|
39
|
+
export declare function linkExtensionModule(code: string, provided: (specifier: string) => boolean): LinkedExtensionModule;
|
|
41
40
|
/**
|
|
42
41
|
* Puts `modules` in the host module map linked bundles read (merged over what is there).
|
|
43
42
|
*
|
|
44
43
|
* @param modules - Host modules by specifier.
|
|
45
44
|
* @param target - The global object. Default `globalThis`.
|
|
46
45
|
*/
|
|
47
|
-
declare function installExtensionHostModules(modules: ExtensionHostModules, target?: object): void;
|
|
46
|
+
export declare function installExtensionHostModules(modules: ExtensionHostModules, target?: object): void;
|
|
48
47
|
/** One extension's bundle in the folder's listing: where it is (relative to the server's origin), or why it did not bundle. */
|
|
49
|
-
type ServerExtensionBundle = {
|
|
48
|
+
export type ServerExtensionBundle = {
|
|
50
49
|
hash: string;
|
|
51
50
|
url: string;
|
|
52
51
|
} | {
|
|
@@ -56,11 +55,11 @@ type ServerExtensionBundle = {
|
|
|
56
55
|
* Where an extension's bundle is, from the folder's current listing (`ServerExtensionsHost.bundle`);
|
|
57
56
|
* `fresh`: list again first (the listed URL went stale). `undefined`: it has none.
|
|
58
57
|
*/
|
|
59
|
-
type ServerExtensionBundleLookup = (extensionId: string, opts?: {
|
|
58
|
+
export type ServerExtensionBundleLookup = (extensionId: string, opts?: {
|
|
60
59
|
fresh?: boolean;
|
|
61
60
|
}) => Promise<ServerExtensionBundle | undefined>;
|
|
62
61
|
/** A bundle that could not be loaded: not listed, did not bundle, or the server refused. */
|
|
63
|
-
declare class ExtensionModuleLoadError extends Error {
|
|
62
|
+
export declare class ExtensionModuleLoadError extends Error {
|
|
64
63
|
readonly extensionId: string;
|
|
65
64
|
/**
|
|
66
65
|
* @param extensionId - The extension.
|
|
@@ -69,7 +68,7 @@ declare class ExtensionModuleLoadError extends Error {
|
|
|
69
68
|
constructor(extensionId: string, message: string);
|
|
70
69
|
}
|
|
71
70
|
/** Options for {@link createServerExtensionModuleLoader}. */
|
|
72
|
-
interface ServerExtensionModuleLoaderOptions {
|
|
71
|
+
export interface ServerExtensionModuleLoaderOptions {
|
|
73
72
|
/** The server's HTTP origin (`https://zidane.example.com`). */
|
|
74
73
|
origin: string;
|
|
75
74
|
/** The client token. Absent: a server without auth. */
|
|
@@ -84,11 +83,11 @@ interface ServerExtensionModuleLoaderOptions {
|
|
|
84
83
|
importModule?: (code: string) => Promise<Readonly<Record<string, unknown>>>;
|
|
85
84
|
}
|
|
86
85
|
/** What {@link createServerExtensionModuleLoader} returns. */
|
|
87
|
-
interface ServerExtensionModuleLoader {
|
|
86
|
+
export interface ServerExtensionModuleLoader {
|
|
88
87
|
/** `AppHostProvider`'s `loadExtensionModule`. A new function after {@link ServerExtensionModuleLoader.invalidate}. */
|
|
89
88
|
load: ExtensionModuleLoad;
|
|
90
89
|
/** A fresh `load` (the folder changed, an extension reloaded, the server came back): a module loads again. */
|
|
91
|
-
invalidate()
|
|
90
|
+
invalidate: () => ExtensionModuleLoad;
|
|
92
91
|
}
|
|
93
92
|
/**
|
|
94
93
|
* Creates a loader of extension `ui.tsx` modules from zidane-server: each bundle where the folder's
|
|
@@ -97,9 +96,9 @@ interface ServerExtensionModuleLoader {
|
|
|
97
96
|
*
|
|
98
97
|
* @param options - The server's origin and token, where bundles are, the host modules.
|
|
99
98
|
*/
|
|
100
|
-
declare function createServerExtensionModuleLoader(options: ServerExtensionModuleLoaderOptions): ServerExtensionModuleLoader;
|
|
99
|
+
export declare function createServerExtensionModuleLoader(options: ServerExtensionModuleLoaderOptions): ServerExtensionModuleLoader;
|
|
101
100
|
/** Options for {@link createServerWebviewSources}. */
|
|
102
|
-
interface ServerWebviewSourcesOptions {
|
|
101
|
+
export interface ServerWebviewSourcesOptions {
|
|
103
102
|
/** The server's HTTP origin. */
|
|
104
103
|
origin: string;
|
|
105
104
|
/** The client token. Absent: a server without auth. */
|
|
@@ -112,28 +111,28 @@ interface ServerWebviewSourcesOptions {
|
|
|
112
111
|
onError?: (error: unknown) => void;
|
|
113
112
|
}
|
|
114
113
|
/** Webview URLs from zidane-server, for `ExtensionWebview`'s `resolveSrc`. */
|
|
115
|
-
interface ServerWebviewSources {
|
|
114
|
+
export interface ServerWebviewSources {
|
|
116
115
|
/**
|
|
117
116
|
* The URL a webview's iframe loads: a `url` source as given, a `file` source the URL the server
|
|
118
117
|
* minted for it (`null` until it answered; subscribers hear when it did).
|
|
119
118
|
*/
|
|
120
|
-
resolveSrc(webview: {
|
|
119
|
+
resolveSrc: (webview: {
|
|
121
120
|
id: string;
|
|
122
121
|
src: {
|
|
123
122
|
url: string;
|
|
124
123
|
} | {
|
|
125
124
|
file: string;
|
|
126
125
|
};
|
|
127
|
-
})
|
|
126
|
+
}) => string | null;
|
|
128
127
|
/** Called when a minted URL arrives. Returns the unsubscribe. */
|
|
129
|
-
subscribe(listener: () => void)
|
|
128
|
+
subscribe: (listener: () => void) => () => void;
|
|
130
129
|
/** Forgets the minted URLs (the folder changed): the next `resolveSrc` mints again. */
|
|
131
|
-
clear()
|
|
130
|
+
clear: () => void;
|
|
132
131
|
/**
|
|
133
132
|
* Forgets the minted URLs and tells subscribers, so every shown webview mints again (a rebuild, a
|
|
134
133
|
* reconnect to a server that may have restarted and dropped its tickets).
|
|
135
134
|
*/
|
|
136
|
-
reset()
|
|
135
|
+
reset: () => void;
|
|
137
136
|
}
|
|
138
137
|
/**
|
|
139
138
|
* Creates the webview URL source over zidane-server: a `file` source is minted once per folder
|
|
@@ -142,6 +141,4 @@ interface ServerWebviewSources {
|
|
|
142
141
|
*
|
|
143
142
|
* @param options - The server's origin and token, the folder.
|
|
144
143
|
*/
|
|
145
|
-
declare function createServerWebviewSources(options: ServerWebviewSourcesOptions): ServerWebviewSources;
|
|
146
|
-
//#endregion
|
|
147
|
-
export { EXTENSION_HOST_MODULES_GLOBAL, ExtensionHostModule, ExtensionHostModuleSources, ExtensionHostModules, ExtensionModuleLinkError, ExtensionModuleLoad, ExtensionModuleLoadError, LinkedExtensionModule, ServerExtensionBundle, ServerExtensionBundleLookup, ServerExtensionModuleLoader, ServerExtensionModuleLoaderOptions, ServerWebviewSources, ServerWebviewSourcesOptions, createServerExtensionModuleLoader, createServerWebviewSources, installExtensionHostModules, linkExtensionModule };
|
|
144
|
+
export declare function createServerWebviewSources(options: ServerWebviewSourcesOptions): ServerWebviewSources;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { EXTENSION_TYPE_ONLY_MODULES, extensionHostModuleRefusal } from "../extensions/headless/host-modules.js";
|
|
1
2
|
import { SERVER_EXTENSIONS_WEBVIEW_PATH } from "zidane/ipc/browser";
|
|
2
|
-
|
|
3
|
+
// src/adapters/extension-modules.ts
|
|
3
4
|
/**
|
|
4
5
|
* Loading an extension's `ui.tsx` bundle in a browser, from zidane-server.
|
|
5
6
|
*
|
|
@@ -29,14 +30,15 @@ var ExtensionModuleLinkError = class extends Error {
|
|
|
29
30
|
* @param specifiers - The specifiers the app has no module for.
|
|
30
31
|
*/
|
|
31
32
|
constructor(specifiers) {
|
|
32
|
-
|
|
33
|
+
const typeOnly = specifiers.filter((s) => EXTENSION_TYPE_ONLY_MODULES.includes(s));
|
|
34
|
+
super(`the extension module imports ${specifiers.map((s) => `"${s}"`).join(", ")}, which this app does not provide${typeOnly.length > 0 ? `. ${typeOnly.map((s) => extensionHostModuleRefusal(s, "this app")).join(" ")}` : ""}`);
|
|
33
35
|
this.specifiers = specifiers;
|
|
34
36
|
this.name = "ExtensionModuleLinkError";
|
|
35
37
|
}
|
|
36
38
|
};
|
|
37
39
|
const HELPER = "__zidaneHostModule$";
|
|
38
|
-
const STATIC_IMPORT = /^[ \t]*import\s*(?:([\w$]+)\s
|
|
39
|
-
const RE_EXPORT = /^[ \t]*export\s*(?:\*\s*(?:as\s+([\w$]+)\s*)?|\{([^}]*)\}
|
|
40
|
+
const STATIC_IMPORT = /^[ \t]*import\s*(?:([\w$]+)\s*(?:,\s*)?)?(?:(?:\*\s*as\s+([\w$]+)|\{([^}]*)\})\s*)?(?:from\s*)?(["'])([^"'\n]+)\4[ \t]*;?/gm;
|
|
41
|
+
const RE_EXPORT = /^[ \t]*export\s*(?:\*\s*(?:as\s+([\w$]+)\s*)?|\{([^}]*)\}\s*)from\s*(["'])([^"'\n]+)\3[ \t]*;?/gm;
|
|
40
42
|
const DYNAMIC_IMPORT = /\bimport\(\s*(["'])([^"'\n]+)\1\s*\)/g;
|
|
41
43
|
/** `a, b as c, "d" as e, default as f` → a destructuring pattern `a, b: c, "d": e, default: f`. */
|
|
42
44
|
function bindings(list) {
|
|
@@ -127,7 +129,7 @@ var ExtensionModuleLoadError = class extends Error {
|
|
|
127
129
|
this.name = "ExtensionModuleLoadError";
|
|
128
130
|
}
|
|
129
131
|
};
|
|
130
|
-
|
|
132
|
+
async function blobImport(code) {
|
|
131
133
|
const url = URL.createObjectURL(new Blob([code], { type: "text/javascript" }));
|
|
132
134
|
try {
|
|
133
135
|
return await import(
|
|
@@ -137,7 +139,7 @@ const blobImport = async (code) => {
|
|
|
137
139
|
} finally {
|
|
138
140
|
URL.revokeObjectURL(url);
|
|
139
141
|
}
|
|
140
|
-
}
|
|
142
|
+
}
|
|
141
143
|
/**
|
|
142
144
|
* Creates a loader of extension `ui.tsx` modules from zidane-server: each bundle where the folder's
|
|
143
145
|
* listing says, by its hash, linked against `modules`. A bundle URL the server no longer knows (it
|
|
@@ -240,5 +242,4 @@ function createServerWebviewSources(options) {
|
|
|
240
242
|
}
|
|
241
243
|
};
|
|
242
244
|
}
|
|
243
|
-
//#endregion
|
|
244
245
|
export { EXTENSION_HOST_MODULES_GLOBAL, ExtensionModuleLinkError, ExtensionModuleLoadError, createServerExtensionModuleLoader, createServerWebviewSources, installExtensionHostModules, linkExtensionModule };
|
package/dist/adapters/index.d.ts
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import { BrowserAppearanceHostOptions, createBrowserAppearanceHost } from "./browser-appearance-host.js";
|
|
2
2
|
import { BrowserKeybindingsHostOptions, browserKeybindingDefaults, createBrowserKeybindingsHost } from "./browser-keybindings-host.js";
|
|
3
|
+
import { BrowserWindowSettings, BrowserWindowSettingsOptions, createBrowserWindowSettings, isBrowserWindowSetting } from "./browser-window-settings.js";
|
|
3
4
|
import { BrowserWorkspaceHostOptions, createBrowserWorkspaceHost } from "./browser-workspace-host.js";
|
|
4
5
|
import { EXTENSION_HOST_MODULES_GLOBAL, ExtensionHostModule, ExtensionHostModuleSources, ExtensionHostModules, ExtensionModuleLinkError, ExtensionModuleLoad, ExtensionModuleLoadError, LinkedExtensionModule, ServerExtensionBundle, ServerExtensionBundleLookup, ServerExtensionModuleLoader, ServerExtensionModuleLoaderOptions, ServerWebviewSources, ServerWebviewSourcesOptions, createServerExtensionModuleLoader, createServerWebviewSources, installExtensionHostModules, linkExtensionModule } from "./extension-modules.js";
|
|
6
|
+
import { applyLiveEvent, closeThinkingSegment, finishLive } from "../chat/headless/streams/live-events.js";
|
|
7
|
+
import { LiveState, LiveStateOptions, LiveTranscript, createLiveState } from "./live.js";
|
|
8
|
+
import "./live-events.js";
|
|
5
9
|
import { RunContext, RunFn, RunHost, RunHostOptions, createRunHost } from "./run-host.js";
|
|
6
|
-
import { FromWorker, MessageEndpoint, ToWorker, WORKER_PROTOCOL_VERSION, WorkerRunInput, decodeFromWorker, decodeToWorker } from "./worker-protocol.js";
|
|
7
|
-
import { WorkerHostOptions, createWorkerHost, exposeRunHost } from "./worker-host.js";
|
|
8
|
-
import { SseHost, SseHostOptions, createSseHost } from "./sse-host.js";
|
|
9
|
-
import { SseParser, SseRecord, createSseParser } from "./sse-parser.js";
|
|
10
|
-
import { AnswerBody, HydrateResponse, SSE_HISTORY_RECORDS_VERSION, SSE_PROTOCOL_HEADER, SSE_PROTOCOL_VERSION, SendBody, StreamRecord, attachmentsFromPreviews, encodeSseRecord, formatCursor, parseCursor } from "./sse-protocol.js";
|
|
11
|
-
import { SERVER_AUTH_CHECK_PATH, ServerCallError, ServerClient, ServerClientOptions, ServerClientState, ServerConnectionError, ServerRefusal, createServerClient } from "./server-client.js";
|
|
12
|
-
import { ServerHost, ServerHostOptions, createServerHost, toChatModelProviders, toChatSession, toSidebarListSession } from "./server-host.js";
|
|
13
10
|
import { ServerApprovalsHostOptions, createServerApprovalsHost } from "./server-approvals-host.js";
|
|
14
|
-
import {
|
|
11
|
+
import { SERVER_AUTH_CHECK_PATH, ServerCallError, ServerClient, ServerClientOptions, ServerClientState, ServerConnectionError, ServerRefusal, createServerClient } from "./server-client.js";
|
|
15
12
|
import { ServerComposerHost, ServerComposerHostOptions, createServerComposerHost } from "./server-composer-host.js";
|
|
16
|
-
import {
|
|
17
|
-
import { ServerTerminalHostOptions, createServerTerminalHost } from "./server-terminal-host.js";
|
|
18
|
-
import { ServerGitHostOptions, createServerGitHost } from "./server-git-host.js";
|
|
13
|
+
import { ExtensionFlowStepHandler, ExtensionsClientAnnounce, ServerExtensionAssetsAccess, ServerExtensionCommandWire, ServerExtensionCommands, ServerExtensionDialogs, ServerExtensionsHost, ServerExtensionsHostOptions, createServerExtensionsHost } from "./server-extensions-host.js";
|
|
19
14
|
import { ServerFilesHostOptions, createServerFilesHost } from "./server-files-host.js";
|
|
15
|
+
import { ServerGitHostOptions, createServerGitHost } from "./server-git-host.js";
|
|
16
|
+
import { ServerHost, ServerHostOptions, createServerHost, toChatModelProviders, toChatSession, toSidebarListSession } from "./server-host.js";
|
|
20
17
|
import { SERVER_MACHINES_HOST_ID, ServerMachinesHost, ServerMachinesHostOptions, createServerMachinesHost } from "./server-machines-host.js";
|
|
21
18
|
import { ServerOnboardingHost, ServerOnboardingHostOptions, createServerOnboardingHost } from "./server-onboarding-host.js";
|
|
19
|
+
import { ServerPaletteHost, ServerPaletteHostOptions, createServerPaletteHost } from "./server-palette-host.js";
|
|
20
|
+
import { ServerSessionHost, ServerSessionHostOptions, createServerSessionHost } from "./server-session-host.js";
|
|
22
21
|
import { ServerSettingsHost, ServerSettingsHostOptions, createServerSettingsHost } from "./server-settings-host.js";
|
|
23
22
|
import { ServerSidebarHostOptions, createServerSidebarHost } from "./server-sidebar-host.js";
|
|
23
|
+
import { ServerTerminalHostOptions, createServerTerminalHost } from "./server-terminal-host.js";
|
|
24
24
|
import { ServerViewsHostOptions, createServerViewsHost } from "./server-views-host.js";
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import "./live-events.js";
|
|
25
|
+
import { SseHost, SseHostOptions, createSseHost } from "./sse-host.js";
|
|
26
|
+
import { SseParser, SseRecord, createSseParser } from "./sse-parser.js";
|
|
27
|
+
import { AnswerBody, HydrateResponse, SSE_HISTORY_RECORDS_VERSION, SSE_PROTOCOL_HEADER, SSE_PROTOCOL_VERSION, SendBody, StreamRecord, attachmentsFromPreviews, encodeSseRecord, formatCursor, parseCursor } from "./sse-protocol.js";
|
|
29
28
|
import { StreamPacer, StreamPacerOptions, createStreamPacer } from "./stream-pacer.js";
|
|
30
|
-
|
|
29
|
+
import { WorkerHostOptions, createWorkerHost, exposeRunHost } from "./worker-host.js";
|
|
30
|
+
import { FromWorker, MessageEndpoint, ToWorker, WORKER_PROTOCOL_VERSION, WorkerRunInput, decodeFromWorker, decodeToWorker } from "./worker-protocol.js";
|
|
31
|
+
export { AnswerBody, BrowserAppearanceHostOptions, BrowserKeybindingsHostOptions, BrowserWindowSettings, BrowserWindowSettingsOptions, BrowserWorkspaceHostOptions, EXTENSION_HOST_MODULES_GLOBAL, ExtensionFlowStepHandler, ExtensionHostModule, ExtensionHostModuleSources, ExtensionHostModules, ExtensionModuleLinkError, ExtensionModuleLoad, ExtensionModuleLoadError, ExtensionsClientAnnounce, FromWorker, HydrateResponse, LinkedExtensionModule, LiveState, LiveStateOptions, LiveTranscript, MessageEndpoint, RunContext, RunFn, RunHost, RunHostOptions, SERVER_AUTH_CHECK_PATH, SERVER_MACHINES_HOST_ID, SSE_HISTORY_RECORDS_VERSION, SSE_PROTOCOL_HEADER, SSE_PROTOCOL_VERSION, SendBody, ServerApprovalsHostOptions, ServerCallError, type ServerClient, type ServerClientOptions, type ServerClientState, ServerComposerHost, ServerComposerHostOptions, ServerConnectionError, ServerExtensionAssetsAccess, ServerExtensionBundle, ServerExtensionBundleLookup, ServerExtensionCommandWire, ServerExtensionCommands, ServerExtensionDialogs, ServerExtensionModuleLoader, ServerExtensionModuleLoaderOptions, ServerExtensionsHost, ServerExtensionsHostOptions, ServerFilesHostOptions, ServerGitHostOptions, ServerHost, ServerHostOptions, ServerMachinesHost, ServerMachinesHostOptions, ServerOnboardingHost, ServerOnboardingHostOptions, ServerPaletteHost, ServerPaletteHostOptions, type ServerRefusal, ServerSessionHost, ServerSessionHostOptions, ServerSettingsHost, ServerSettingsHostOptions, ServerSidebarHostOptions, ServerTerminalHostOptions, ServerViewsHostOptions, ServerWebviewSources, ServerWebviewSourcesOptions, SseHost, SseHostOptions, SseParser, SseRecord, StreamPacer, StreamPacerOptions, StreamRecord, ToWorker, WORKER_PROTOCOL_VERSION, WorkerHostOptions, WorkerRunInput, applyLiveEvent, attachmentsFromPreviews, browserKeybindingDefaults, closeThinkingSegment, createBrowserAppearanceHost, createBrowserKeybindingsHost, createBrowserWindowSettings, createBrowserWorkspaceHost, createLiveState, createRunHost, createServerApprovalsHost, createServerClient, createServerComposerHost, createServerExtensionModuleLoader, createServerExtensionsHost, createServerFilesHost, createServerGitHost, createServerHost, createServerMachinesHost, createServerOnboardingHost, createServerPaletteHost, createServerSessionHost, createServerSettingsHost, createServerSidebarHost, createServerTerminalHost, createServerViewsHost, createServerWebviewSources, createSseHost, createSseParser, createStreamPacer, createWorkerHost, decodeFromWorker, decodeToWorker, encodeSseRecord, exposeRunHost, finishLive, formatCursor, installExtensionHostModules, isBrowserWindowSetting, linkExtensionModule, parseCursor, toChatModelProviders, toChatSession, toSidebarListSession };
|
package/dist/adapters/index.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { createBrowserAppearanceHost } from "./browser-appearance-host.js";
|
|
2
2
|
import { browserKeybindingDefaults, createBrowserKeybindingsHost } from "./browser-keybindings-host.js";
|
|
3
|
+
import { createBrowserWindowSettings, isBrowserWindowSetting } from "./browser-window-settings.js";
|
|
3
4
|
import { createBrowserWorkspaceHost } from "./browser-workspace-host.js";
|
|
4
5
|
import { EXTENSION_HOST_MODULES_GLOBAL, ExtensionModuleLinkError, ExtensionModuleLoadError, createServerExtensionModuleLoader, createServerWebviewSources, installExtensionHostModules, linkExtensionModule } from "./extension-modules.js";
|
|
5
6
|
import { applyLiveEvent, closeThinkingSegment, finishLive } from "../chat/headless/streams/live-events.js";
|
|
6
7
|
import { createLiveState } from "./live.js";
|
|
7
8
|
import { createRunHost } from "./run-host.js";
|
|
8
|
-
import { WORKER_PROTOCOL_VERSION, decodeFromWorker, decodeToWorker } from "./worker-protocol.js";
|
|
9
|
-
import { createWorkerHost, exposeRunHost } from "./worker-host.js";
|
|
10
|
-
import { createSseParser } from "./sse-parser.js";
|
|
11
|
-
import { SSE_HISTORY_RECORDS_VERSION, SSE_PROTOCOL_HEADER, SSE_PROTOCOL_VERSION, attachmentsFromPreviews, encodeSseRecord, formatCursor, parseCursor } from "./sse-protocol.js";
|
|
12
|
-
import { createSseHost } from "./sse-host.js";
|
|
13
|
-
import { SERVER_AUTH_CHECK_PATH, ServerCallError, ServerConnectionError, createServerClient } from "./server-client.js";
|
|
14
|
-
import { createServerHost, toChatModelProviders, toChatSession, toSidebarListSession } from "./server-host.js";
|
|
15
9
|
import { createServerApprovalsHost } from "./server-approvals-host.js";
|
|
16
|
-
import {
|
|
10
|
+
import { SERVER_AUTH_CHECK_PATH, ServerCallError, ServerConnectionError, createServerClient } from "./server-client.js";
|
|
17
11
|
import { createServerComposerHost } from "./server-composer-host.js";
|
|
18
|
-
import {
|
|
19
|
-
import { createServerTerminalHost } from "./server-terminal-host.js";
|
|
20
|
-
import { createServerGitHost } from "./server-git-host.js";
|
|
12
|
+
import { createServerExtensionsHost } from "./server-extensions-host.js";
|
|
21
13
|
import { createServerFilesHost } from "./server-files-host.js";
|
|
14
|
+
import { createServerGitHost } from "./server-git-host.js";
|
|
15
|
+
import { createServerHost, toChatModelProviders, toChatSession, toSidebarListSession } from "./server-host.js";
|
|
22
16
|
import { SERVER_MACHINES_HOST_ID, createServerMachinesHost } from "./server-machines-host.js";
|
|
23
17
|
import { createServerOnboardingHost } from "./server-onboarding-host.js";
|
|
18
|
+
import { createServerPaletteHost } from "./server-palette-host.js";
|
|
19
|
+
import { createServerSessionHost } from "./server-session-host.js";
|
|
24
20
|
import { createServerSettingsHost } from "./server-settings-host.js";
|
|
25
21
|
import { createServerSidebarHost } from "./server-sidebar-host.js";
|
|
22
|
+
import { createServerTerminalHost } from "./server-terminal-host.js";
|
|
26
23
|
import { createServerViewsHost } from "./server-views-host.js";
|
|
27
|
-
import {
|
|
24
|
+
import { createSseHost } from "./sse-host.js";
|
|
25
|
+
import { createSseParser } from "./sse-parser.js";
|
|
26
|
+
import { SSE_HISTORY_RECORDS_VERSION, SSE_PROTOCOL_HEADER, SSE_PROTOCOL_VERSION, attachmentsFromPreviews, encodeSseRecord, formatCursor, parseCursor } from "./sse-protocol.js";
|
|
28
27
|
import { createStreamPacer } from "./stream-pacer.js";
|
|
29
|
-
|
|
28
|
+
import { createWorkerHost, exposeRunHost } from "./worker-host.js";
|
|
29
|
+
import { WORKER_PROTOCOL_VERSION, decodeFromWorker, decodeToWorker } from "./worker-protocol.js";
|
|
30
|
+
export { EXTENSION_HOST_MODULES_GLOBAL, ExtensionModuleLinkError, ExtensionModuleLoadError, SERVER_AUTH_CHECK_PATH, SERVER_MACHINES_HOST_ID, SSE_HISTORY_RECORDS_VERSION, SSE_PROTOCOL_HEADER, SSE_PROTOCOL_VERSION, ServerCallError, ServerConnectionError, WORKER_PROTOCOL_VERSION, applyLiveEvent, attachmentsFromPreviews, browserKeybindingDefaults, closeThinkingSegment, createBrowserAppearanceHost, createBrowserKeybindingsHost, createBrowserWindowSettings, createBrowserWorkspaceHost, createLiveState, createRunHost, createServerApprovalsHost, createServerClient, createServerComposerHost, createServerExtensionModuleLoader, createServerExtensionsHost, createServerFilesHost, createServerGitHost, createServerHost, createServerMachinesHost, createServerOnboardingHost, createServerPaletteHost, createServerSessionHost, createServerSettingsHost, createServerSidebarHost, createServerTerminalHost, createServerViewsHost, createServerWebviewSources, createSseHost, createSseParser, createStreamPacer, createWorkerHost, decodeFromWorker, decodeToWorker, encodeSseRecord, exposeRunHost, finishLive, formatCursor, installExtensionHostModules, isBrowserWindowSetting, linkExtensionModule, parseCursor, toChatModelProviders, toChatSession, toSidebarListSession };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* zidane's live event rule, re-exported for the adapters' public entry. It
|
|
3
|
+
* lives with the session stream store (`chat/headless/streams/`), which
|
|
4
|
+
* folds every transcript with it.
|
|
5
|
+
*/
|
|
1
6
|
import { applyLiveEvent, closeThinkingSegment, finishLive } from "../chat/headless/streams/live-events.js";
|
|
2
7
|
export { applyLiveEvent, closeThinkingSegment, finishLive };
|
package/dist/adapters/live.d.ts
CHANGED
|
@@ -1,72 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The client half of zidane's live transcript, shared by every adapter: the
|
|
3
|
+
* stores a `ChatHost` exposes (session list, transcripts, pending
|
|
4
|
+
* interactions), fed by live events folded with `applyLiveEvent`
|
|
5
|
+
* (`live-events.ts`, zidane's merge rule).
|
|
6
|
+
*
|
|
7
|
+
* The transcripts live in the session stream store (`SessionStreamStore`,
|
|
8
|
+
* `chat/headless/streams/`), the one the desktop app runs on: events fold
|
|
9
|
+
* and prompt echoes dedupe there. This module is a facade that keeps the
|
|
10
|
+
* adapters' own rules on top of it, because they differ from the desktop
|
|
11
|
+
* app's signal rules: a hydrate replaces the window wholesale and forgets
|
|
12
|
+
* pending echoes (the store reconciles a page with the live window),
|
|
13
|
+
* notifications go out at once (the store batches transcript events per
|
|
14
|
+
* frame), a run's end neither appends an error row nor drops pending echoes,
|
|
15
|
+
* and long messages split at the reducer's default size.
|
|
16
|
+
*/
|
|
2
17
|
import { ChatAttachment, ChatEvent, ChatInteraction, ChatSession, ChatSessionStatus, Transcript, TranscriptState } from "../chat/headless/host.js";
|
|
3
|
-
import {
|
|
18
|
+
import { Readable, Writable } from "../chat/headless/store.js";
|
|
4
19
|
import { PendingEcho } from "../chat/headless/streams/store.js";
|
|
20
|
+
import { applyLiveEvent, finishLive } from "../chat/headless/streams/live-events.js";
|
|
5
21
|
import { HistoryChange, HistorySince } from "zidane/chat/pure";
|
|
6
22
|
import { InteractionRequest } from "zidane/chat";
|
|
7
|
-
//#region src/adapters/live.d.ts
|
|
8
23
|
/** One session's live transcript: its state store and the echo bookkeeping. */
|
|
9
|
-
interface LiveTranscript {
|
|
24
|
+
export interface LiveTranscript {
|
|
10
25
|
/** The session's transcript state, updated as events arrive. */
|
|
11
26
|
state: Writable<TranscriptState>;
|
|
12
27
|
/** Prompts this client echoed itself, waiting for the host's echo to drop (the store's pending-echo list). */
|
|
13
28
|
echoes: PendingEcho[];
|
|
14
29
|
}
|
|
15
30
|
/** The client half of the live transcript: the stores a {@link ChatHost} exposes, fed by live events. Shared by every adapter. */
|
|
16
|
-
interface LiveState {
|
|
31
|
+
export interface LiveState {
|
|
17
32
|
/** The session list store. */
|
|
18
33
|
sessions: Writable<readonly ChatSession[]>;
|
|
19
34
|
/** Created on first use; `onOpen` runs then (an adapter starts its stream there). */
|
|
20
|
-
transcript(sessionId: string)
|
|
35
|
+
transcript: (sessionId: string) => LiveTranscript;
|
|
21
36
|
/** The `Transcript` a host hands the components, with `onFirstSubscribe` / `onLastUnsubscribe` hooks. */
|
|
22
|
-
readable(sessionId: string, extra?: Pick<Transcript, 'loadEarlier'>)
|
|
37
|
+
readable: (sessionId: string, extra?: Pick<Transcript, 'loadEarlier'>) => Transcript;
|
|
23
38
|
/**
|
|
24
39
|
* Replaces a session's events with a loaded history and marks it hydrated. `patch` sets other transcript state
|
|
25
40
|
* fields, such as `running`. `pos` is the history position the history was read at, and `historyId` is its
|
|
26
41
|
* numbering. Returns `false` and replaces nothing when the history is older than a write the window applied
|
|
27
42
|
* since. The adapter then reads it again.
|
|
28
43
|
*/
|
|
29
|
-
hydrate(sessionId: string, events: readonly ChatEvent[], patch?: Partial<TranscriptState>, pos?: number, historyId?: string)
|
|
44
|
+
hydrate: (sessionId: string, events: readonly ChatEvent[], patch?: Partial<TranscriptState>, pos?: number, historyId?: string) => boolean;
|
|
30
45
|
/**
|
|
31
46
|
* Applies one history write (`history:changed`) to a session's window with the shared rule
|
|
32
47
|
* (`applyHistoryOp`). Returns `true` when the adapter must hydrate the session again now (a rewrite, a
|
|
33
48
|
* missed write). While its run streams, that read waits for the run's end (`takeRefetchDue`).
|
|
34
49
|
*/
|
|
35
|
-
applyHistory(sessionId: string, change: HistoryChange)
|
|
50
|
+
applyHistory: (sessionId: string, change: HistoryChange) => boolean;
|
|
36
51
|
/** Whether the session must be hydrated again now that its run ended (see `applyHistory`). Clears the flag. */
|
|
37
|
-
takeRefetchDue(sessionId: string)
|
|
52
|
+
takeRefetchDue: (sessionId: string) => boolean;
|
|
38
53
|
/** Applies the reconnect ladder's second step (`applyHistorySince`). Returns `true` when the adapter must hydrate the session again. */
|
|
39
|
-
applyHistorySince(sessionId: string, since: HistorySince<ChatEvent>)
|
|
54
|
+
applyHistorySince: (sessionId: string, since: HistorySince<ChatEvent>) => boolean;
|
|
40
55
|
/** The history position the session's window is at (its reconnect bookmark), when known. */
|
|
41
|
-
historyPos(sessionId: string)
|
|
56
|
+
historyPos: (sessionId: string) => number | undefined;
|
|
42
57
|
/** The numbering of {@link LiveState.historyPos}, when known. */
|
|
43
|
-
historyId(sessionId: string)
|
|
58
|
+
historyId: (sessionId: string) => string | undefined;
|
|
44
59
|
/**
|
|
45
60
|
* Whether the session's rows are behind its history position. This is so when a tail read that a write asked for
|
|
46
61
|
* has not landed (it failed, or it waits for the run's end). A reconnect then reads the tail.
|
|
47
62
|
*/
|
|
48
|
-
tailDue(sessionId: string)
|
|
63
|
+
tailDue: (sessionId: string) => boolean;
|
|
49
64
|
/** A live event from the agent; `echo` marks the host repeating a prompt (dropped when this client echoed it). */
|
|
50
|
-
apply(sessionId: string, event: ChatEvent, echo?: boolean)
|
|
65
|
+
apply: (sessionId: string, event: ChatEvent, echo?: boolean) => void;
|
|
51
66
|
/** Show the user's prompt at once (with its attachment previews); the host's echo of it is then dropped. */
|
|
52
|
-
echoPrompt(sessionId: string, text: string, attachments?: readonly ChatAttachment[])
|
|
67
|
+
echoPrompt: (sessionId: string, text: string, attachments?: readonly ChatAttachment[]) => void;
|
|
53
68
|
/** A run started or ended; the session's status follows (`status` overrides: `'error'`, `'idle'` after an interrupt). */
|
|
54
|
-
setRunning(sessionId: string, running: boolean, status?: ChatSessionStatus)
|
|
69
|
+
setRunning: (sessionId: string, running: boolean, status?: ChatSessionStatus) => void;
|
|
55
70
|
/** Merges fields into a session in the list. A session the list does not hold is ignored. */
|
|
56
|
-
patchSession(sessionId: string, patch: Partial<ChatSession>)
|
|
71
|
+
patchSession: (sessionId: string, patch: Partial<ChatSession>) => void;
|
|
57
72
|
/** The store of a session's pending interactions. */
|
|
58
|
-
pending(sessionId: string)
|
|
73
|
+
pending: (sessionId: string) => Writable<readonly ChatInteraction[]>;
|
|
59
74
|
/** Every session's pending interactions, in arrival order. */
|
|
60
75
|
allPending: Readable<readonly ChatInteraction[]>;
|
|
61
76
|
/** Adds a pending request to a session. A request already pending is ignored. */
|
|
62
|
-
addInteraction(sessionId: string, request: InteractionRequest)
|
|
77
|
+
addInteraction: (sessionId: string, request: InteractionRequest) => void;
|
|
63
78
|
/** Removes a request from the pending interactions of every session. */
|
|
64
|
-
resolveInteraction(requestId: string)
|
|
79
|
+
resolveInteraction: (requestId: string) => void;
|
|
65
80
|
/** The session a pending request belongs to. */
|
|
66
|
-
interactionSession(requestId: string)
|
|
81
|
+
interactionSession: (requestId: string) => string | undefined;
|
|
67
82
|
}
|
|
68
83
|
/** Options for {@link createLiveState}. */
|
|
69
|
-
interface LiveStateOptions {
|
|
84
|
+
export interface LiveStateOptions {
|
|
70
85
|
/** The sessions the list starts with. Default: none. */
|
|
71
86
|
sessions?: readonly ChatSession[];
|
|
72
87
|
/** Called with the session id when the first subscriber of its transcript arrives. An adapter starts the session's stream here. */
|
|
@@ -85,6 +100,5 @@ interface LiveStateOptions {
|
|
|
85
100
|
*
|
|
86
101
|
* @param options - The initial sessions and the transcript open and close hooks.
|
|
87
102
|
*/
|
|
88
|
-
declare function createLiveState(options?: LiveStateOptions): LiveState;
|
|
89
|
-
|
|
90
|
-
export { LiveState, LiveStateOptions, LiveTranscript, applyLiveEvent, createLiveState, finishLive };
|
|
103
|
+
export declare function createLiveState(options?: LiveStateOptions): LiveState;
|
|
104
|
+
export { applyLiveEvent, finishLive };
|
package/dist/adapters/live.js
CHANGED
|
@@ -2,7 +2,7 @@ import { writable } from "../chat/headless/store.js";
|
|
|
2
2
|
import { applyLiveEvent, finishLive } from "../chat/headless/streams/live-events.js";
|
|
3
3
|
import { SessionStreamStore } from "../chat/headless/streams/store.js";
|
|
4
4
|
import { transcriptSnapshot } from "../chat/headless/streams/transcript.js";
|
|
5
|
-
|
|
5
|
+
// src/adapters/live.ts
|
|
6
6
|
/** Closed sessions whose windows stay, most recent first: the desktop's prewarm window (`sidebar/directory.ts`) less the open one. */
|
|
7
7
|
const RECENT_KEPT = 12;
|
|
8
8
|
/**
|
|
@@ -198,5 +198,4 @@ function transcriptState(store, sessionId) {
|
|
|
198
198
|
subscribe: (onChange) => store.subscribeSession(sessionId, onChange)
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
//#endregion
|
|
202
201
|
export { applyLiveEvent, createLiveState, finishLive };
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* A `ChatHost` around a run function you supply: the kit keeps the sessions,
|
|
3
|
+
* transcripts and pending interactions in memory, you run the agent.
|
|
4
|
+
*
|
|
5
|
+
* `run` is called once per sent prompt. It streams the reply with `emit`,
|
|
6
|
+
* using zidane's live event rule (see `live.ts`): `{ kind: 'markdown', text:
|
|
7
|
+
* delta, streaming: true }` and `{ kind: 'thinking', text: delta }` grow the
|
|
8
|
+
* open block, any other `StreamEvent` (`tool`, `tool-result`, `error`, …) is
|
|
9
|
+
* a row of its own. It raises a question or a plan with `ask` and gets the
|
|
10
|
+
* answer back (`null`: dismissed or interrupted). It watches `signal` for an
|
|
11
|
+
* interrupt. Wiring a real zidane agent into `run` is the app's job, which
|
|
12
|
+
* keeps this module free of the zidane runtime (it runs in a page or a Web
|
|
13
|
+
* Worker). The user's prompt is echoed by the host; `run` does not emit it.
|
|
14
|
+
*/
|
|
2
15
|
import { ChatAttachment, ChatEvent, ChatHost, ChatModelProvider, ChatSession, SendInput } from "../chat/headless/host.js";
|
|
16
|
+
import { Readable } from "../chat/headless/store.js";
|
|
3
17
|
import { InteractionRequest, InteractionResponse } from "zidane/chat";
|
|
4
|
-
//#region src/adapters/run-host.d.ts
|
|
5
18
|
/** What {@link createRunHost} hands to the `run` function for one sent prompt. */
|
|
6
|
-
interface RunContext {
|
|
19
|
+
export interface RunContext {
|
|
7
20
|
/** Id of the session the prompt was sent to. */
|
|
8
21
|
sessionId: string;
|
|
9
22
|
/** The prompt text. */
|
|
@@ -17,16 +30,16 @@ interface RunContext {
|
|
|
17
30
|
/** Aborted on interrupt. */
|
|
18
31
|
signal: AbortSignal;
|
|
19
32
|
/** Streams an event into the session's transcript. Markdown and thinking events with `streaming` grow the open block; any other event is a new row. */
|
|
20
|
-
emit(event: ChatEvent)
|
|
33
|
+
emit: (event: ChatEvent) => void;
|
|
21
34
|
/** Ask the user; resolves with the answer, or `null` when dismissed or interrupted. */
|
|
22
|
-
ask(request: InteractionRequest)
|
|
35
|
+
ask: (request: InteractionRequest) => Promise<InteractionResponse | null>;
|
|
23
36
|
/** Receive messages the user steers into this run. Without a listener, `steer` reports false. */
|
|
24
|
-
onSteer(listener: (message: string) => void)
|
|
37
|
+
onSteer: (listener: (message: string) => void) => void;
|
|
25
38
|
}
|
|
26
39
|
/** Runs the agent for one prompt. Called once per sent prompt with a {@link RunContext}. The run ends when the returned promise settles; a rejection shows as an error row. */
|
|
27
|
-
type RunFn = (context: RunContext) => void | Promise<void>;
|
|
40
|
+
export type RunFn = (context: RunContext) => void | Promise<void>;
|
|
28
41
|
/** Options for {@link createRunHost}. */
|
|
29
|
-
interface RunHostOptions {
|
|
42
|
+
export interface RunHostOptions {
|
|
30
43
|
/** The function that runs the agent for each sent prompt. */
|
|
31
44
|
run: RunFn;
|
|
32
45
|
/** Sessions to start with (default: none; the user creates them). */
|
|
@@ -39,22 +52,20 @@ interface RunHostOptions {
|
|
|
39
52
|
newId?: () => string;
|
|
40
53
|
}
|
|
41
54
|
/** The {@link ChatHost} {@link createRunHost} returns, plus what only an in-memory host can do. */
|
|
42
|
-
interface RunHost extends ChatHost {
|
|
55
|
+
export interface RunHost extends ChatHost {
|
|
43
56
|
/**
|
|
44
57
|
* Adds a session with a history, as a new session first in the list (a saved or shared one). Its events show as they are; the agent's own memory of them is the app's concern.
|
|
45
58
|
*
|
|
46
59
|
* @param session - The session's title.
|
|
47
60
|
* @param events - Its transcript events, oldest first.
|
|
48
61
|
*/
|
|
49
|
-
restore(session: {
|
|
62
|
+
restore: (session: {
|
|
50
63
|
title: string;
|
|
51
|
-
}, events: readonly ChatEvent[])
|
|
64
|
+
}, events: readonly ChatEvent[]) => ChatSession;
|
|
52
65
|
}
|
|
53
66
|
/**
|
|
54
67
|
* Creates a {@link ChatHost} around a run function. Sessions, transcripts, and pending interactions live in memory; the app supplies the agent through `run`.
|
|
55
68
|
*
|
|
56
69
|
* @param options - The `run` function and optional initial sessions, transcripts, and models.
|
|
57
70
|
*/
|
|
58
|
-
declare function createRunHost(options: RunHostOptions): RunHost;
|
|
59
|
-
//#endregion
|
|
60
|
-
export { RunContext, RunFn, RunHost, RunHostOptions, createRunHost };
|
|
71
|
+
export declare function createRunHost(options: RunHostOptions): RunHost;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { constant } from "../chat/headless/store.js";
|
|
2
2
|
import { createLiveState } from "./live.js";
|
|
3
|
-
|
|
3
|
+
// src/adapters/run-host.ts
|
|
4
4
|
/**
|
|
5
5
|
* Creates a {@link ChatHost} around a run function. Sessions, transcripts, and pending interactions live in memory; the app supplies the agent through `run`.
|
|
6
6
|
*
|
|
@@ -166,5 +166,4 @@ function createRunHost(options) {
|
|
|
166
166
|
function isReadable(value) {
|
|
167
167
|
return typeof value === "object" && value !== null && typeof value.subscribe === "function";
|
|
168
168
|
}
|
|
169
|
-
//#endregion
|
|
170
169
|
export { createRunHost };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ApprovalsHost } from "../approvals/headless/host.js";
|
|
2
2
|
import { ServerClient } from "zidane/ipc/browser";
|
|
3
|
-
//#region src/adapters/server-approvals-host.d.ts
|
|
4
3
|
/** Options for {@link createServerApprovalsHost}. */
|
|
5
|
-
interface ServerApprovalsHostOptions {
|
|
4
|
+
export interface ServerApprovalsHostOptions {
|
|
6
5
|
/** The client to speak through, shared with the chat host (`createServerHost({ client })`) and other areas' hosts. */
|
|
7
6
|
client: ServerClient;
|
|
8
7
|
/**
|
|
@@ -18,6 +17,4 @@ interface ServerApprovalsHostOptions {
|
|
|
18
17
|
*
|
|
19
18
|
* @param options - The shared client, whether the token may answer approvals, and where background errors go.
|
|
20
19
|
*/
|
|
21
|
-
declare function createServerApprovalsHost(options: ServerApprovalsHostOptions): ApprovalsHost;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { ServerApprovalsHostOptions, createServerApprovalsHost };
|
|
20
|
+
export declare function createServerApprovalsHost(options: ServerApprovalsHostOptions): ApprovalsHost;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createPendingApprovals } from "../approvals/headless/pending.js";
|
|
2
2
|
import { createSafelist } from "../approvals/headless/safelist.js";
|
|
3
|
-
|
|
3
|
+
// src/adapters/server-approvals-host.ts
|
|
4
4
|
/**
|
|
5
5
|
* Creates an {@link ApprovalsHost} on a running zidane-server.
|
|
6
6
|
*
|
|
@@ -58,5 +58,4 @@ function createServerApprovalsHost(options) {
|
|
|
58
58
|
} : {}
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
//#endregion
|
|
62
61
|
export { createServerApprovalsHost };
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The zidane-server client the server adapter speaks through: zidane's own browser client
|
|
3
|
+
* (`zidane/ipc/browser`), re-exported so an app reaches it from the kit. Share one client
|
|
4
|
+
* between the chat host and the other areas' hosts on the same server.
|
|
5
|
+
*/
|
|
1
6
|
import { SERVER_AUTH_CHECK_PATH, ServerCallError, ServerClient, ServerClientOptions, ServerClientState, ServerConnectionError, ServerRefusal, createServerClient } from "zidane/ipc/browser";
|
|
2
7
|
export { SERVER_AUTH_CHECK_PATH, ServerCallError, type ServerClient, type ServerClientOptions, type ServerClientState, ServerConnectionError, type ServerRefusal, createServerClient };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import { ComposerHost } from "../chat/headless/composer/host.js";
|
|
2
2
|
import { ServerClient } from "zidane/ipc/browser";
|
|
3
|
-
//#region src/adapters/server-composer-host.d.ts
|
|
4
3
|
/** Options for {@link createServerComposerHost}. */
|
|
5
|
-
interface ServerComposerHostOptions {
|
|
4
|
+
export interface ServerComposerHostOptions {
|
|
6
5
|
/** The client to speak through, shared with the chat host (`createServerHost(…).client`). */
|
|
7
6
|
client: ServerClient;
|
|
8
7
|
}
|
|
9
8
|
/** The {@link ComposerHost} {@link createServerComposerHost} returns. */
|
|
10
|
-
interface ServerComposerHost extends ComposerHost {
|
|
9
|
+
export interface ServerComposerHost extends ComposerHost {
|
|
11
10
|
/** Stops listening to the client (it leaves the client open). */
|
|
12
|
-
close()
|
|
11
|
+
close: () => void;
|
|
13
12
|
}
|
|
14
13
|
/**
|
|
15
14
|
* Creates a {@link ComposerHost} over a zidane-server client.
|
|
16
15
|
*
|
|
17
16
|
* @param options - The client to speak through.
|
|
18
17
|
*/
|
|
19
|
-
declare function createServerComposerHost(options: ServerComposerHostOptions): ServerComposerHost;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { ServerComposerHost, ServerComposerHostOptions, createServerComposerHost };
|
|
18
|
+
export declare function createServerComposerHost(options: ServerComposerHostOptions): ServerComposerHost;
|