zidane-ui 9.1.16 → 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 +22 -6
- package/dist/adapters/browser-keybindings-host.js +36 -10
- 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 +19 -17
- package/dist/adapters/index.js +16 -14
- 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 +19 -0
- package/dist/adapters/server-custom-frame.js +155 -0
- 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 +57 -19
- package/dist/adapters/server-machines-host.d.ts +5 -8
- package/dist/adapters/server-machines-host.js +3 -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 +27 -0
- package/dist/adapters/server-views-host.js +152 -0
- 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 +28 -6
- package/dist/app/AppHostProvider.js +21 -30
- package/dist/app/ModalProvider.d.ts +52 -22
- package/dist/app/ModalProvider.js +38 -59
- package/dist/app/Toaster.d.ts +21 -0
- package/dist/app/Toaster.js +32 -0
- package/dist/app/headless/app-host.d.ts +24 -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 +2 -14
- 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 +7 -25
- 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 +36 -27
- 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 +2 -10
- package/dist/approvals/ApprovalsProvider.d.ts +18 -10
- package/dist/approvals/ApprovalsProvider.js +3 -15
- package/dist/approvals/FileEditApproval.d.ts +18 -6
- package/dist/approvals/FileEditApproval.js +5 -21
- package/dist/approvals/HunkPreviews.d.ts +7 -5
- package/dist/approvals/HunkPreviews.js +5 -10
- package/dist/approvals/SafelistPanel.d.ts +7 -5
- package/dist/approvals/SafelistPanel.js +8 -14
- 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 +10 -5
- package/dist/approvals/headless/labels.js +4 -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 +2 -12
- package/dist/chat/DaemonOrb.d.ts +25 -9
- package/dist/chat/DaemonOrb.js +4 -23
- package/dist/chat/HostBadge.d.ts +8 -5
- package/dist/chat/HostBadge.js +5 -6
- 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 +38 -25
- package/dist/chat/PdfPreview.d.ts +9 -5
- package/dist/chat/PdfPreview.js +2 -10
- 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 +5 -16
- 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 +11 -25
- package/dist/chat/SessionListRow.d.ts +22 -5
- package/dist/chat/SessionListRow.js +96 -84
- package/dist/chat/SessionStreamsProvider.d.ts +31 -21
- package/dist/chat/SessionStreamsProvider.js +7 -15
- package/dist/chat/StatusDot.d.ts +17 -7
- package/dist/chat/StatusDot.js +2 -15
- package/dist/chat/TextPreview.d.ts +14 -8
- package/dist/chat/TextPreview.js +10 -14
- package/dist/chat/Throbber.d.ts +18 -6
- package/dist/chat/Throbber.js +4 -20
- package/dist/chat/Transcript.d.ts +36 -9
- package/dist/chat/Transcript.js +142 -79
- package/dist/chat/composer/AgentPicker.d.ts +16 -8
- package/dist/chat/composer/AgentPicker.js +5 -17
- package/dist/chat/composer/AgentPickerDialog.d.ts +13 -5
- package/dist/chat/composer/AgentPickerDialog.js +6 -18
- package/dist/chat/composer/ApprovalDock.d.ts +2 -5
- package/dist/chat/composer/ApprovalDock.js +3 -11
- 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 +38 -25
- package/dist/chat/composer/Composer.d.ts +14 -17
- package/dist/chat/composer/Composer.js +7 -7
- package/dist/chat/composer/ComposerBadges.d.ts +28 -7
- package/dist/chat/composer/ComposerBadges.js +6 -31
- package/dist/chat/composer/ComposerControls.d.ts +22 -9
- package/dist/chat/composer/ComposerControls.js +6 -23
- package/dist/chat/composer/ComposerEditor.d.ts +15 -10
- package/dist/chat/composer/ComposerEditor.js +6 -12
- package/dist/chat/composer/ComposerHostProvider.d.ts +9 -7
- package/dist/chat/composer/ComposerHostProvider.js +2 -8
- package/dist/chat/composer/ComposerShell.d.ts +17 -13
- package/dist/chat/composer/ComposerShell.js +4 -11
- package/dist/chat/composer/ContextBreakdown.d.ts +11 -6
- package/dist/chat/composer/ContextBreakdown.js +30 -38
- 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 +10 -32
- package/dist/chat/composer/DockCard.d.ts +23 -9
- package/dist/chat/composer/DockCard.js +1 -2
- package/dist/chat/composer/DraftPickers.d.ts +44 -0
- package/dist/chat/composer/DraftPickers.js +62 -0
- package/dist/chat/composer/EffortPickerDialog.d.ts +19 -6
- package/dist/chat/composer/EffortPickerDialog.js +10 -24
- package/dist/chat/composer/HostComposer.d.ts +16 -5
- package/dist/chat/composer/HostComposer.js +13 -26
- package/dist/chat/composer/HostContextOrb.d.ts +9 -6
- package/dist/chat/composer/HostContextOrb.js +3 -10
- package/dist/chat/composer/HostModelChainList.d.ts +18 -5
- package/dist/chat/composer/HostModelChainList.js +2 -19
- 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 +5 -15
- package/dist/chat/composer/ImageModelList.d.ts +21 -8
- package/dist/chat/composer/ImageModelList.js +5 -19
- package/dist/chat/composer/ModelChainList.d.ts +46 -5
- package/dist/chat/composer/ModelChainList.js +8 -50
- 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 +8 -18
- package/dist/chat/composer/ModelChainRows.d.ts +17 -6
- package/dist/chat/composer/ModelChainRows.js +10 -19
- 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 +25 -17
- package/dist/chat/composer/ModelPicker.d.ts +33 -16
- package/dist/chat/composer/ModelPicker.js +7 -28
- package/dist/chat/composer/ModelPickerDialog.d.ts +9 -5
- package/dist/chat/composer/ModelPickerDialog.js +4 -12
- package/dist/chat/composer/ModelProviderPills.d.ts +9 -5
- package/dist/chat/composer/ModelProviderPills.js +5 -12
- package/dist/chat/composer/PickerPill.d.ts +11 -5
- package/dist/chat/composer/PickerPill.js +4 -13
- 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 +9 -20
- package/dist/chat/composer/PromptHistoryProvider.d.ts +29 -7
- package/dist/chat/composer/PromptHistoryProvider.js +2 -27
- 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 +3 -38
- 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 +24 -16
- 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 +9 -0
- package/dist/chat/composer/heif.js +114 -0
- package/dist/chat/composer/index.d.ts +23 -15
- package/dist/chat/composer/index.js +46 -43
- 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 +3 -12
- 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 +22 -18
- package/dist/chat/composer/use-composer-stores.js +10 -11
- package/dist/chat/composer/use-draft-target.d.ts +42 -23
- package/dist/chat/composer/use-draft-target.js +12 -11
- package/dist/chat/composer/use-new-chats-default.d.ts +28 -0
- package/dist/chat/composer/use-new-chats-default.js +25 -0
- 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 +38 -16
- package/dist/chat/composer/use-send-prompt.js +10 -8
- 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 +78 -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 +67 -62
- package/dist/chat/headless/index.js +36 -30
- package/dist/chat/headless/labels.d.ts +157 -10
- package/dist/chat/headless/labels.js +93 -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 +7 -0
- package/dist/chat/headless/notifications.js +1 -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 +72 -9
- package/dist/chat/headless/prompt-origin.js +75 -10
- 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 +158 -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 +193 -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 +23 -11
- package/dist/chat/headless/transcript/batch.js +48 -7
- package/dist/chat/headless/transcript/collapse.d.ts +5 -8
- package/dist/chat/headless/transcript/collapse.js +49 -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 +33 -13
- 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 +66 -15
- 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 +5 -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 +7 -5
- package/dist/chat/headless/transcript-labels.js +1 -2
- package/dist/chat/headless/turn-labels.d.ts +4 -5
- package/dist/chat/headless/turn-labels.js +3 -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 +79 -63
- package/dist/chat/index.js +75 -66
- 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 +3 -13
- package/dist/chat/interactions/InboxPanel.d.ts +21 -7
- package/dist/chat/interactions/InboxPanel.js +13 -26
- 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 +6 -20
- package/dist/chat/interactions/QuestionField.d.ts +24 -6
- package/dist/chat/interactions/QuestionField.js +113 -31
- package/dist/chat/interactions/QuestionForm.d.ts +39 -16
- package/dist/chat/interactions/QuestionForm.js +33 -74
- package/dist/chat/interactions/SecretInput.d.ts +9 -5
- package/dist/chat/interactions/SecretInput.js +2 -10
- package/dist/chat/interactions/card-ui.d.ts +33 -14
- package/dist/chat/interactions/card-ui.js +39 -14
- 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 +8 -7
- package/dist/chat/rich-composer/RichComposer.d.ts +19 -8
- package/dist/chat/rich-composer/RichComposer.js +94 -92
- 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 +4 -12
- package/dist/chat/sidebar/ProjectIcon.d.ts +38 -19
- package/dist/chat/sidebar/ProjectIcon.js +53 -70
- 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 +350 -109
- package/dist/chat/sidebar/SidebarDecoration.d.ts +13 -7
- package/dist/chat/sidebar/SidebarDecoration.js +19 -19
- 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 +49 -11
- 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 +6 -7
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +21 -9
- package/dist/chat/sidebar/SidebarGroupHeader.js +8 -23
- 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 +6 -18
- 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 +93 -35
- 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 +6 -28
- package/dist/chat/sidebar/SpacesSection.d.ts +16 -5
- package/dist/chat/sidebar/SpacesSection.js +54 -57
- 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 +117 -69
- 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 +9 -15
- package/dist/chat/transcript/AuthFailureCard.d.ts +17 -5
- package/dist/chat/transcript/AuthFailureCard.js +17 -30
- package/dist/chat/transcript/BadgeMenu.d.ts +26 -16
- package/dist/chat/transcript/BadgeMenu.js +8 -28
- package/dist/chat/transcript/CardMarkdown.d.ts +2 -5
- package/dist/chat/transcript/CardMarkdown.js +8 -17
- 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 +75 -82
- 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 +2 -3
- package/dist/chat/transcript/EditDiffBlock.d.ts +2 -5
- package/dist/chat/transcript/EditDiffBlock.js +40 -36
- package/dist/chat/transcript/FileChip.d.ts +4 -7
- package/dist/chat/transcript/FileChip.js +9 -24
- package/dist/chat/transcript/ImageGenerationBlock.d.ts +5 -8
- package/dist/chat/transcript/ImageGenerationBlock.js +14 -27
- 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 +4 -31
- package/dist/chat/transcript/LiveOutput.d.ts +2 -5
- package/dist/chat/transcript/LiveOutput.js +2 -12
- package/dist/chat/transcript/MermaidDiagram.d.ts +68 -5
- package/dist/chat/transcript/MermaidDiagram.js +342 -62
- package/dist/chat/transcript/PromptEcho.d.ts +8 -5
- package/dist/chat/transcript/PromptEcho.js +47 -12
- 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 +7 -13
- package/dist/chat/transcript/ReferenceText.d.ts +21 -7
- package/dist/chat/transcript/ReferenceText.js +10 -11
- package/dist/chat/transcript/SelectCursor.d.ts +2 -5
- package/dist/chat/transcript/SelectCursor.js +2 -3
- 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 +3 -18
- package/dist/chat/transcript/SubagentBlock.d.ts +12 -15
- package/dist/chat/transcript/SubagentBlock.js +3 -4
- package/dist/chat/transcript/TranscriptRow.d.ts +19 -15
- package/dist/chat/transcript/TranscriptRow.js +48 -34
- package/dist/chat/transcript/TranscriptSearch.d.ts +18 -5
- package/dist/chat/transcript/TranscriptSearch.js +3 -20
- package/dist/chat/transcript/TurnMenu.d.ts +12 -15
- package/dist/chat/transcript/TurnMenu.js +2 -13
- package/dist/chat/transcript/actions.d.ts +51 -19
- package/dist/chat/transcript/actions.js +2 -17
- 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 -0
- package/dist/chat/transcript/diagrams-scope.js +10 -0
- 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 +8 -23
- package/dist/chat/transcript/fold-attachments.d.ts +30 -5
- package/dist/chat/transcript/fold-attachments.js +26 -39
- package/dist/chat/transcript/fold-status.d.ts +15 -7
- package/dist/chat/transcript/fold-status.js +4 -15
- package/dist/chat/transcript/fold-worker.d.ts +8 -5
- package/dist/chat/transcript/fold-worker.js +9 -16
- package/dist/chat/transcript/fold.d.ts +16 -7
- package/dist/chat/transcript/fold.js +93 -39
- package/dist/chat/transcript/frame.d.ts +13 -16
- package/dist/chat/transcript/frame.js +24 -24
- package/dist/chat/transcript/index.d.ts +51 -42
- package/dist/chat/transcript/index.js +51 -47
- 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 +118 -36
- 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 +26 -22
- package/dist/chat/transcript/notices.d.ts +26 -22
- package/dist/chat/transcript/notices.js +8 -16
- package/dist/chat/transcript/prompt-lines.d.ts +3 -6
- package/dist/chat/transcript/prompt-lines.js +6 -7
- package/dist/chat/transcript/prompt.d.ts +14 -9
- package/dist/chat/transcript/prompt.js +42 -29
- package/dist/chat/transcript/prose.d.ts +10 -9
- package/dist/chat/transcript/prose.js +3 -8
- 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 +2 -9
- package/dist/chat/transcript/renderers.d.ts +47 -24
- package/dist/chat/transcript/renderers.js +9 -30
- 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 +9 -3
- 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 +12 -25
- 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 +38 -0
- package/dist/chat/transcript/tasks.js +93 -0
- 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 +4 -9
- 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 +47 -24
- package/dist/chat/transcript/tool-parts.d.ts +18 -15
- package/dist/chat/transcript/tool-parts.js +2 -9
- 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 +63 -30
- package/dist/chat/transcript/turn-commands.d.ts +29 -13
- package/dist/chat/transcript/turn-commands.js +43 -10
- package/dist/chat/transcript/use-host-turn-menu.d.ts +29 -0
- package/dist/chat/transcript/use-host-turn-menu.js +43 -0
- package/dist/chat/transcript/use-transcript-rows.d.ts +4 -7
- package/dist/chat/transcript/use-transcript-rows.js +5 -13
- 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 +18 -43
- 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 +4 -6
- 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 +2 -8
- 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 +223 -0
- package/dist/chat/transcript/view-scope.js +300 -0
- package/dist/chat/transcript-options.d.ts +7 -5
- package/dist/chat/transcript-options.js +8 -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 +2 -12
- package/dist/code/HighlightedCode.d.ts +16 -5
- package/dist/code/HighlightedCode.js +3 -18
- 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 +31 -34
- package/dist/code/editor/CodeEditor.d.ts +26 -7
- package/dist/code/editor/CodeEditor.js +6 -7
- package/dist/code/editor/CodeHover.d.ts +30 -13
- package/dist/code/editor/CodeHover.js +5 -25
- 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 +2 -12
- package/dist/code/editor/EditorColumn.d.ts +23 -6
- package/dist/code/editor/EditorColumn.js +25 -45
- package/dist/code/editor/FileIcon.d.ts +10 -7
- package/dist/code/editor/FileIcon.js +4 -10
- 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 +2 -22
- package/dist/code/editor/FileView.d.ts +7 -9
- package/dist/code/editor/FileView.js +5 -11
- package/dist/code/editor/HighlightWorkers.d.ts +18 -5
- package/dist/code/editor/HighlightWorkers.js +3 -20
- package/dist/code/editor/LanguageEditor.d.ts +4 -7
- package/dist/code/editor/LanguageEditor.js +4 -12
- 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 +3 -11
- package/dist/code/editor/find/FindBar.d.ts +7 -5
- package/dist/code/editor/find/FindBar.js +3 -9
- 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 +33 -0
- package/dist/components/Accordion.js +89 -0
- 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 +2 -8
- package/dist/components/Breakdown.d.ts +91 -0
- package/dist/components/Breakdown.js +211 -0
- package/dist/components/BrowserChrome.d.ts +9 -7
- package/dist/components/BrowserChrome.js +3 -9
- package/dist/components/BrowserSignIn.d.ts +10 -6
- package/dist/components/BrowserSignIn.js +6 -14
- package/dist/components/Callout.d.ts +33 -0
- package/dist/components/Callout.js +59 -0
- package/dist/components/Checklist.d.ts +56 -0
- package/dist/components/Checklist.js +188 -0
- package/dist/components/ChoiceCards.d.ts +20 -6
- package/dist/components/ChoiceCards.js +13 -20
- package/dist/components/CodeFrame.d.ts +31 -7
- package/dist/components/CodeFrame.js +10 -33
- package/dist/components/Compare.d.ts +79 -0
- package/dist/components/Compare.js +241 -0
- package/dist/components/ConfirmDialog.d.ts +13 -7
- package/dist/components/ConfirmDialog.js +2 -12
- package/dist/components/CopyButton.d.ts +12 -5
- package/dist/components/CopyButton.js +4 -15
- package/dist/components/EditableTitle.d.ts +6 -5
- package/dist/components/EditableTitle.js +4 -7
- package/dist/components/ErrorBoundary.d.ts +22 -10
- package/dist/components/ErrorBoundary.js +3 -18
- package/dist/components/Form.d.ts +60 -49
- package/dist/components/Form.js +16 -14
- 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 +3 -15
- package/dist/components/IconButton.d.ts +42 -18
- package/dist/components/IconButton.js +46 -25
- 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 +39 -0
- package/dist/components/KeyValue.js +42 -0
- 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 +10 -33
- 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 +3 -32
- 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 +58 -0
- package/dist/components/Progress.js +93 -0
- package/dist/components/ReorderTabs.d.ts +10 -6
- package/dist/components/ReorderTabs.js +3 -11
- 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 +6 -29
- package/dist/components/RowMenuButton.d.ts +28 -0
- package/dist/components/RowMenuButton.js +34 -0
- 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 +2 -8
- package/dist/components/Skeleton.d.ts +26 -0
- package/dist/components/Skeleton.js +22 -0
- package/dist/components/Stat.d.ts +108 -0
- package/dist/components/Stat.js +124 -0
- package/dist/components/StepFrame.d.ts +14 -7
- package/dist/components/StepFrame.js +2 -13
- package/dist/components/Stepper.d.ts +9 -6
- package/dist/components/Stepper.js +1 -2
- package/dist/components/Steps.d.ts +40 -0
- package/dist/components/Steps.js +48 -0
- package/dist/components/Surface.d.ts +22 -16
- package/dist/components/Surface.js +3 -4
- package/dist/components/SwatchPicker.d.ts +11 -6
- package/dist/components/SwatchPicker.js +2 -10
- 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 +148 -0
- package/dist/components/Table.js +675 -0
- package/dist/components/Tabs.d.ts +45 -0
- package/dist/components/Tabs.js +95 -0
- 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 +31 -36
- package/dist/components/Tooltip.d.ts +68 -6
- package/dist/components/Tooltip.js +136 -72
- package/dist/components/ZidaneMark.d.ts +17 -5
- package/dist/components/ZidaneMark.js +6 -17
- package/dist/components/ZoomableImage.d.ts +35 -10
- package/dist/components/ZoomableImage.js +6 -29
- package/dist/components/button.d.ts +11 -13
- package/dist/components/button.js +6 -7
- package/dist/components/charts/AreaChart.d.ts +25 -0
- package/dist/components/charts/AreaChart.js +206 -0
- package/dist/components/charts/BarChart.d.ts +120 -0
- package/dist/components/charts/BarChart.js +675 -0
- package/dist/components/charts/LineChart.d.ts +36 -0
- package/dist/components/charts/LineChart.js +294 -0
- package/dist/components/charts/ScatterChart.d.ts +80 -0
- package/dist/components/charts/ScatterChart.js +689 -0
- package/dist/components/charts/Sparkline.d.ts +31 -0
- package/dist/components/charts/Sparkline.js +79 -0
- package/dist/components/charts/Trend.d.ts +91 -0
- package/dist/components/charts/Trend.js +225 -0
- package/dist/components/charts/frame.d.ts +234 -0
- package/dist/components/charts/frame.js +469 -0
- package/dist/components/charts/index.d.ts +15 -0
- package/dist/components/charts/index.js +9 -0
- package/dist/components/charts/interact.d.ts +102 -0
- package/dist/components/charts/interact.js +306 -0
- package/dist/components/charts/measure.d.ts +26 -0
- package/dist/components/charts/measure.js +78 -0
- package/dist/components/charts/xy.d.ts +231 -0
- package/dist/components/charts/xy.js +483 -0
- package/dist/components/charts/zoom-reset.d.ts +4 -0
- package/dist/components/charts/zoom-reset.js +22 -0
- package/dist/components/floating/FloatingSurface.d.ts +36 -20
- package/dist/components/floating/FloatingSurface.js +5 -21
- package/dist/components/floating/HoverCard.d.ts +11 -6
- package/dist/components/floating/HoverCard.js +4 -13
- package/dist/components/floating/Popover.d.ts +16 -8
- package/dist/components/floating/Popover.js +5 -17
- 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 +20 -0
- package/dist/components/lazy-part.js +32 -0
- package/dist/components/numbers.d.ts +71 -0
- package/dist/components/numbers.js +156 -0
- package/dist/components/palette/PaletteList.d.ts +36 -22
- package/dist/components/palette/PaletteList.js +33 -50
- package/dist/components/palette/PalettePanel.d.ts +19 -8
- package/dist/components/palette/PalettePanel.js +17 -30
- 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 +1007 -106
- package/dist/dist/{index-BZM8tu4L.d.ts → index-Betz0OWq.d.ts} +297 -150
- 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 +7 -18
- package/dist/extensions/ExtensionDialogHost.d.ts +5 -20
- package/dist/extensions/ExtensionDialogHost.js +44 -86
- package/dist/extensions/ExtensionRenderer.d.ts +12 -5
- package/dist/extensions/ExtensionRenderer.js +3 -14
- package/dist/extensions/ExtensionScreen.d.ts +11 -6
- package/dist/extensions/ExtensionScreen.js +6 -15
- package/dist/extensions/ExtensionSettingsPage.d.ts +10 -5
- package/dist/extensions/ExtensionSettingsPage.js +4 -13
- 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 +18 -25
- package/dist/extensions/ExtensionSettingsSidebar.d.ts +39 -12
- package/dist/extensions/ExtensionSettingsSidebar.js +12 -41
- package/dist/extensions/ExtensionSlot.d.ts +20 -8
- package/dist/extensions/ExtensionSlot.js +48 -63
- package/dist/extensions/ExtensionWebview.d.ts +18 -6
- package/dist/extensions/ExtensionWebview.js +2 -18
- package/dist/extensions/ExtensionsProvider.d.ts +20 -11
- package/dist/extensions/ExtensionsProvider.js +4 -17
- 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 +48 -40
- package/dist/extensions/headless/wire.js +3 -3
- 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 +2 -20
- 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 +12 -24
- package/dist/files/DiffFileViewer.d.ts +2 -5
- package/dist/files/DiffFileViewer.js +7 -13
- package/dist/files/DiffsTab.d.ts +18 -5
- package/dist/files/DiffsTab.js +214 -135
- package/dist/files/EditorColumn.d.ts +13 -9
- package/dist/files/EditorColumn.js +90 -61
- package/dist/files/EditorEnvironmentRoot.d.ts +9 -5
- package/dist/files/EditorEnvironmentRoot.js +3 -11
- package/dist/files/FilePreview.d.ts +21 -0
- package/dist/files/FilePreview.js +264 -0
- 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 +3 -12
- package/dist/files/FilesTab.d.ts +27 -6
- package/dist/files/FilesTab.js +11 -36
- package/dist/files/MediaDiff.d.ts +10 -6
- package/dist/files/MediaDiff.js +7 -14
- package/dist/files/MediaView.d.ts +17 -8
- package/dist/files/MediaView.js +3 -16
- package/dist/files/ReviewDraft.d.ts +2 -5
- package/dist/files/ReviewDraft.js +3 -4
- package/dist/files/ReviewableDiff.d.ts +7 -5
- package/dist/files/ReviewableDiff.js +6 -11
- package/dist/files/SearchPanel.d.ts +3 -6
- package/dist/files/SearchPanel.js +67 -78
- package/dist/files/TreeColumn.d.ts +12 -8
- package/dist/files/TreeColumn.js +7 -14
- 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 +2 -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 +9 -5
- package/dist/files/headless/labels.js +9 -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 +41 -0
- package/dist/files/headless/preview.js +102 -0
- 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 +2 -9
- 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 +4 -22
- 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 +2 -17
- package/dist/files/useOpenFiles.d.ts +26 -9
- package/dist/files/useOpenFiles.js +18 -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 +215 -254
- package/dist/git/GitBar.d.ts +27 -6
- package/dist/git/GitBar.js +12 -34
- package/dist/git/GitProvider.d.ts +13 -7
- package/dist/git/GitProvider.js +2 -12
- package/dist/git/ImportRepoDialog.d.ts +23 -7
- package/dist/git/ImportRepoDialog.js +13 -33
- package/dist/git/MoveSessionDialog.d.ts +25 -6
- package/dist/git/MoveSessionDialog.js +12 -35
- package/dist/git/RemoteFolderPicker.d.ts +23 -7
- package/dist/git/RemoteFolderPicker.js +37 -56
- package/dist/git/SyncChip.d.ts +19 -6
- package/dist/git/SyncChip.js +8 -25
- package/dist/git/WherePicker.d.ts +30 -7
- package/dist/git/WherePicker.js +33 -47
- 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 +2 -20
- 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 +59 -30
- package/dist/index.js +62 -46
- package/dist/keybindings/KeyCommands.d.ts +16 -8
- package/dist/keybindings/KeyCommands.js +3 -15
- 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 +6 -34
- 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 +22 -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 +12 -10
- package/dist/keybindings/headless/overrides.js +4 -8
- 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 +2 -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 +120 -12
- package/dist/labels.js +112 -14
- package/dist/machines/AddMachineDialog.d.ts +20 -8
- package/dist/machines/AddMachineDialog.js +20 -36
- package/dist/machines/AddServerForm.d.ts +8 -5
- package/dist/machines/AddServerForm.js +4 -11
- 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 +11 -22
- package/dist/machines/HostCapabilities.d.ts +14 -9
- package/dist/machines/HostCapabilities.js +8 -17
- package/dist/machines/HostIcon.d.ts +22 -0
- package/dist/machines/HostIcon.js +18 -0
- package/dist/machines/HostSignIn.d.ts +10 -5
- package/dist/machines/HostSignIn.js +3 -12
- package/dist/machines/HostSyncPanel.d.ts +20 -7
- package/dist/machines/HostSyncPanel.js +8 -25
- package/dist/machines/HostsSection.d.ts +41 -5
- package/dist/machines/HostsSection.js +70 -70
- 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 +6 -20
- package/dist/machines/ServerAddedCard.d.ts +9 -6
- package/dist/machines/ServerAddedCard.js +4 -5
- package/dist/machines/ServerCard.d.ts +20 -13
- package/dist/machines/ServerCard.js +18 -29
- package/dist/machines/ServerMachinesPanel.d.ts +20 -5
- package/dist/machines/ServerMachinesPanel.js +159 -213
- package/dist/machines/ServerUpdatePanel.d.ts +13 -5
- package/dist/machines/ServerUpdatePanel.js +95 -113
- package/dist/machines/ShareThisComputerForm.d.ts +8 -5
- package/dist/machines/ShareThisComputerForm.js +6 -13
- package/dist/machines/SyncAccounts.d.ts +14 -6
- package/dist/machines/SyncAccounts.js +3 -15
- package/dist/machines/SyncMarker.d.ts +11 -6
- package/dist/machines/SyncMarker.js +6 -15
- 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 +221 -129
- 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 -5
- package/dist/machines/headless/index.js +5 -4
- package/dist/machines/headless/labels.d.ts +46 -11
- package/dist/machines/headless/labels.js +34 -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 +33 -0
- package/dist/machines/headless/update-store.js +77 -0
- package/dist/machines/index.d.ts +8 -6
- package/dist/machines/index.js +11 -9
- package/dist/machines/server-update.d.ts +26 -0
- package/dist/machines/server-update.js +99 -0
- 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 +2 -8
- 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 +3 -9
- 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 +12 -27
- package/dist/motion/springs.d.ts +100 -31
- package/dist/motion/springs.js +50 -65
- package/dist/motion/swap.d.ts +22 -8
- package/dist/motion/swap.js +2 -20
- package/dist/motion/title-text.d.ts +16 -5
- package/dist/motion/title-text.js +3 -18
- 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 +8 -12
- package/dist/onboarding/OnboardingProvider.d.ts +22 -14
- package/dist/onboarding/OnboardingProvider.js +4 -16
- 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 +5 -13
- 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 +27 -23
- 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 +2 -10
- 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 +97 -9
- package/dist/onboarding/headless/labels.js +12 -10
- package/dist/onboarding/index.d.ts +18 -9
- package/dist/onboarding/index.js +14 -13
- 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 +3 -14
- package/dist/onboarding/skills/parts.d.ts +23 -18
- package/dist/onboarding/skills/parts.js +3 -12
- package/dist/onboarding/sources/SourceBrowser.d.ts +23 -8
- package/dist/onboarding/sources/SourceBrowser.js +7 -25
- 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 +5 -11
- package/dist/onboarding/steps/ConnectorsStep.d.ts +2 -5
- package/dist/onboarding/steps/ConnectorsStep.js +5 -14
- 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 +6 -16
- package/dist/onboarding/steps/ReadyStep.d.ts +2 -5
- package/dist/onboarding/steps/ReadyStep.js +13 -15
- 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 +2 -8
- package/dist/onboarding/steps/connect/ProviderPanel.d.ts +7 -5
- package/dist/onboarding/steps/connect/ProviderPanel.js +5 -11
- package/dist/onboarding/steps/connect/ProviderReady.d.ts +6 -5
- package/dist/onboarding/steps/connect/ProviderReady.js +5 -10
- 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 +10 -5
- package/dist/palette/CommandPalette.js +12 -5
- package/dist/palette/PaletteDialog.d.ts +19 -8
- package/dist/palette/PaletteDialog.js +28 -6
- package/dist/palette/PaletteProvider.d.ts +19 -12
- package/dist/palette/PaletteProvider.js +2 -3
- package/dist/palette/PaletteRows.d.ts +15 -9
- package/dist/palette/PaletteRows.js +16 -13
- 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 +6 -6
- package/dist/palette/headless/index.js +6 -6
- package/dist/palette/headless/labels.d.ts +4 -5
- package/dist/palette/headless/labels.js +3 -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 +46 -18
- package/dist/palette/headless/sources.js +42 -6
- 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 +59 -44
- 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 +15 -38
- package/dist/session/ProjectHome.d.ts +40 -9
- package/dist/session/ProjectHome.js +443 -202
- package/dist/session/ProviderUsageProvider.d.ts +16 -7
- package/dist/session/ProviderUsageProvider.js +4 -17
- package/dist/session/QueueTab.d.ts +21 -7
- package/dist/session/QueueTab.js +17 -35
- 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 +6 -14
- package/dist/session/SecretsPanel.d.ts +14 -5
- package/dist/session/SecretsPanel.js +9 -22
- package/dist/session/SessionCacheFacts.d.ts +10 -6
- package/dist/session/SessionCacheFacts.js +57 -66
- package/dist/session/SessionDetailsDialog.d.ts +21 -9
- package/dist/session/SessionDetailsDialog.js +52 -49
- package/dist/session/SessionHeader.d.ts +25 -6
- package/dist/session/SessionHeader.js +51 -16
- package/dist/session/SessionProvider.d.ts +19 -14
- package/dist/session/SessionProvider.js +3 -12
- package/dist/session/SessionShell.d.ts +12 -8
- package/dist/session/SessionShell.js +3 -11
- package/dist/session/SideChat.d.ts +18 -5
- package/dist/session/SideChat.js +8 -25
- package/dist/session/StepStatusIcon.d.ts +12 -6
- package/dist/session/StepStatusIcon.js +2 -12
- 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 +10 -20
- package/dist/session/UsagePanel.d.ts +10 -5
- package/dist/session/UsagePanel.js +18 -23
- package/dist/session/WelcomeScreen.d.ts +20 -5
- package/dist/session/WelcomeScreen.js +11 -10
- 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 +10 -10
- package/dist/session/headless/keyed.d.ts +12 -10
- package/dist/session/headless/keyed.js +1 -2
- package/dist/session/headless/labels.d.ts +30 -9
- package/dist/session/headless/labels.js +42 -14
- 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 +55 -0
- package/dist/settings/SettingsFooter.js +88 -0
- package/dist/settings/SettingsHeadingText.d.ts +10 -5
- package/dist/settings/SettingsHeadingText.js +2 -11
- 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 +8 -16
- package/dist/settings/SettingsProvider.d.ts +25 -13
- package/dist/settings/SettingsProvider.js +3 -19
- package/dist/settings/SettingsRestricted.d.ts +11 -6
- package/dist/settings/SettingsRestricted.js +4 -13
- 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 +158 -61
- 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 +24 -0
- package/dist/settings/headless/app-update.js +0 -0
- 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 -738
- 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 +9 -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 -13
- package/dist/settings/headless/index.js +12 -10
- package/dist/settings/headless/labels.d.ts +71 -5
- package/dist/settings/headless/labels.js +65 -3
- 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 -713
- package/dist/settings/headless/mcp.d.ts +43 -29
- 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 +36 -30
- package/dist/settings/index.js +27 -21
- 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 +5 -13
- package/dist/settings/sections/appearance/AppearanceSection.d.ts +15 -6
- package/dist/settings/sections/appearance/AppearanceSection.js +78 -75
- 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 +6 -20
- 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 +7 -8
- package/dist/settings/sections/editor/EditorSection.d.ts +13 -9
- package/dist/settings/sections/editor/EditorSection.js +7 -15
- 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 +4 -12
- 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 +18 -35
- 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 +5 -16
- package/dist/settings/sections/extensions/CreateExtensionDialog.d.ts +11 -6
- package/dist/settings/sections/extensions/CreateExtensionDialog.js +4 -13
- package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +25 -12
- package/dist/settings/sections/extensions/ExtensionConfigRows.js +8 -25
- package/dist/settings/sections/extensions/ExtensionOptionsSection.d.ts +19 -6
- package/dist/settings/sections/extensions/ExtensionOptionsSection.js +6 -23
- package/dist/settings/sections/extensions/ExtensionPicksBar.d.ts +11 -8
- package/dist/settings/sections/extensions/ExtensionPicksBar.js +4 -11
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.d.ts +14 -7
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +15 -22
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +33 -8
- package/dist/settings/sections/extensions/ExtensionsSection.js +32 -56
- 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 +41 -56
- 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 +40 -40
- package/dist/settings/sections/instructions/InstructionsSection.d.ts +19 -6
- package/dist/settings/sections/instructions/InstructionsSection.js +20 -33
- 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 +6 -18
- 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 +5 -16
- 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 +55 -38
- package/dist/settings/sections/mcp/McpSection.d.ts +17 -6
- package/dist/settings/sections/mcp/McpSection.js +56 -25
- package/dist/settings/sections/mcp/McpServerRow.d.ts +14 -5
- package/dist/settings/sections/mcp/McpServerRow.js +111 -27
- package/dist/settings/sections/mcp/labels.d.ts +46 -6
- package/dist/settings/sections/mcp/labels.js +37 -9
- package/dist/settings/sections/models/AgentDefaults.d.ts +18 -8
- package/dist/settings/sections/models/AgentDefaults.js +9 -23
- package/dist/settings/sections/models/ModelListPicker.d.ts +4 -7
- package/dist/settings/sections/models/ModelListPicker.js +11 -19
- package/dist/settings/sections/models/ModelPickField.d.ts +15 -6
- package/dist/settings/sections/models/ModelPickField.js +8 -21
- 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 +5 -12
- package/dist/settings/sections/performance/PerfSparkline.d.ts +6 -5
- package/dist/settings/sections/performance/PerfSparkline.js +4 -8
- 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 +76 -84
- 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 +9 -22
- 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 +92 -91
- package/dist/settings/sections/providers/ProvidersSection.d.ts +15 -7
- package/dist/settings/sections/providers/ProvidersSection.js +56 -58
- package/dist/settings/sections/providers/ServerProvidersSection.d.ts +11 -5
- package/dist/settings/sections/providers/ServerProvidersSection.js +26 -26
- package/dist/settings/sections/providers/ServerSignIn.d.ts +14 -5
- package/dist/settings/sections/providers/ServerSignIn.js +5 -18
- 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 +11 -17
- 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 +97 -127
- package/dist/settings/sections/skills/SkillsSection.d.ts +17 -5
- package/dist/settings/sections/skills/SkillsSection.js +21 -24
- 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 +52 -0
- package/dist/settings/server-app.js +146 -0
- 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 +18 -23
- 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 +2228 -416
- package/dist/terminal/HostTerminalSurface.d.ts +2 -5
- package/dist/terminal/HostTerminalSurface.js +22 -20
- package/dist/terminal/TerminalDrawer.d.ts +7 -10
- package/dist/terminal/TerminalDrawer.js +8 -16
- package/dist/terminal/TerminalPanel.d.ts +26 -6
- package/dist/terminal/TerminalPanel.js +46 -64
- package/dist/terminal/TerminalProvider.d.ts +56 -30
- package/dist/terminal/TerminalProvider.js +16 -27
- package/dist/terminal/TerminalSurface.d.ts +5 -6
- package/dist/terminal/TerminalSurface.js +7 -7
- package/dist/terminal/assets.d.ts +16 -0
- package/dist/terminal/assets.js +13 -0
- package/dist/terminal/box-glyphs.d.ts +3 -6
- package/dist/terminal/box-glyphs.js +1 -2
- package/dist/terminal/fonts/LICENSE +21 -0
- package/dist/terminal/fonts/SymbolsNerdFontMono-Regular.woff2 +0 -0
- package/dist/terminal/ghostty.d.ts +8 -8
- package/dist/terminal/ghostty.js +26 -6
- 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 +16 -5
- 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 +15 -17
- package/dist/theme/derive.js +6 -6
- 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 +47 -10
- package/dist/url-imports.d.ts +6 -0
- package/dist/views/BoolMark.d.ts +12 -0
- package/dist/views/BoolMark.js +27 -0
- 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 +16 -0
- package/dist/views/SvgImage.js +61 -0
- package/dist/views/TranscriptViews.d.ts +34 -0
- package/dist/views/TranscriptViews.js +74 -0
- package/dist/views/ViewAutoRefresh.d.ts +28 -0
- package/dist/views/ViewAutoRefresh.js +74 -0
- package/dist/views/ViewBlock.d.ts +69 -0
- package/dist/views/ViewBlock.js +796 -0
- package/dist/views/ViewCharts.d.ts +22 -0
- package/dist/views/ViewCharts.js +326 -0
- package/dist/views/ViewControls.d.ts +46 -0
- package/dist/views/ViewControls.js +199 -0
- package/dist/views/ViewCustom.d.ts +68 -0
- package/dist/views/ViewCustom.js +360 -0
- package/dist/views/ViewExpanded.d.ts +34 -0
- package/dist/views/ViewExpanded.js +120 -0
- package/dist/views/ViewExtension.d.ts +31 -0
- package/dist/views/ViewExtension.js +111 -0
- package/dist/views/ViewInputs.d.ts +21 -0
- package/dist/views/ViewInputs.js +586 -0
- package/dist/views/ViewMcpApp.d.ts +51 -0
- package/dist/views/ViewMcpApp.js +548 -0
- package/dist/views/ViewNodes.d.ts +135 -0
- package/dist/views/ViewNodes.js +1173 -0
- package/dist/views/ViewPreviewPage.d.ts +54 -0
- package/dist/views/ViewPreviewPage.js +219 -0
- 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 +18 -0
- package/dist/views/ViewTables.js +372 -0
- package/dist/views/ViewsProvider.d.ts +34 -0
- package/dist/views/ViewsProvider.js +44 -0
- package/dist/views/badge-tone.d.ts +17 -0
- package/dist/views/badge-tone.js +99 -0
- package/dist/views/expanded.d.ts +4 -0
- package/dist/views/expanded.js +13 -0
- package/dist/views/fit.d.ts +31 -0
- package/dist/views/fit.js +52 -0
- package/dist/views/format.d.ts +23 -0
- package/dist/views/format.js +38 -0
- package/dist/views/headless/answers.d.ts +58 -0
- package/dist/views/headless/answers.js +87 -0
- 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 +32 -0
- package/dist/views/headless/custom-slots.js +58 -0
- package/dist/views/headless/download.d.ts +14 -0
- package/dist/views/headless/download.js +25 -0
- package/dist/views/headless/frame-name.d.ts +14 -0
- package/dist/views/headless/frame-name.js +23 -0
- package/dist/views/headless/host.d.ts +296 -0
- package/dist/views/headless/host.js +0 -0
- package/dist/views/headless/index.d.ts +15 -0
- package/dist/views/headless/index.js +13 -0
- package/dist/views/headless/labels.d.ts +308 -0
- package/dist/views/headless/labels.js +328 -0
- package/dist/views/headless/live.d.ts +15 -0
- package/dist/views/headless/live.js +43 -0
- package/dist/views/headless/lru.d.ts +28 -0
- package/dist/views/headless/lru.js +61 -0
- package/dist/views/headless/mcp-app-bridge.d.ts +149 -0
- package/dist/views/headless/mcp-app-bridge.js +309 -0
- package/dist/views/headless/placement.d.ts +125 -0
- package/dist/views/headless/placement.js +249 -0
- package/dist/views/headless/records.d.ts +66 -0
- package/dist/views/headless/records.js +155 -0
- package/dist/views/headless/refs.d.ts +12 -0
- package/dist/views/headless/refs.js +14 -0
- package/dist/views/headless/safe.d.ts +32 -0
- package/dist/views/headless/safe.js +57 -0
- 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 +100 -0
- package/dist/views/headless/store.js +261 -0
- package/dist/views/headless/streaming.d.ts +48 -0
- package/dist/views/headless/streaming.js +170 -0
- package/dist/views/headless/view-state.d.ts +24 -0
- package/dist/views/headless/view-state.js +44 -0
- package/dist/views/index.d.ts +3 -0
- package/dist/views/index.js +3 -0
- package/dist/views/input-preview.d.ts +10 -0
- package/dist/views/input-preview.js +16 -0
- package/dist/views/preview-style.d.ts +24 -0
- package/dist/views/preview-style.js +261 -0
- package/dist/views/preview.d.ts +8 -0
- package/dist/views/preview.js +1 -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 +78 -0
- package/dist/views/testing/contract.js +406 -0
- package/dist/views/testing/fixture-host.d.ts +31 -0
- package/dist/views/testing/fixture-host.js +92 -0
- package/dist/views/testing/index.d.ts +8 -0
- package/dist/views/testing/index.js +3 -0
- 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 +29 -0
- package/dist/views/theme-watch.js +80 -0
- package/dist/views/trusted.d.ts +14 -0
- package/dist/views/trusted.js +16 -0
- 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 +34 -0
- package/dist/views/viewport.js +80 -0
- package/dist/workspace/LayoutBudget.d.ts +22 -9
- package/dist/workspace/LayoutBudget.js +2 -19
- package/dist/workspace/PanelContentView.d.ts +38 -10
- package/dist/workspace/PanelContentView.js +47 -15
- 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 +18 -27
- package/dist/workspace/PanelHome.d.ts +9 -5
- package/dist/workspace/PanelHome.js +5 -12
- package/dist/workspace/PanelItems.d.ts +20 -11
- package/dist/workspace/PanelItems.js +10 -10
- package/dist/workspace/PanelStrip.d.ts +7 -10
- package/dist/workspace/PanelStrip.js +13 -29
- package/dist/workspace/PanelToolbar.d.ts +40 -6
- package/dist/workspace/PanelToolbar.js +85 -16
- package/dist/workspace/SidePanel.d.ts +24 -5
- package/dist/workspace/SidePanel.js +11 -32
- package/dist/workspace/TabParking.d.ts +23 -12
- package/dist/workspace/TabParking.js +12 -26
- package/dist/workspace/WorkspaceProvider.d.ts +68 -36
- package/dist/workspace/WorkspaceProvider.js +16 -34
- 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 +4 -23
- package/dist/workspace/extension-tabs.d.ts +22 -6
- package/dist/workspace/extension-tabs.js +5 -24
- 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 +75 -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 +611 -51
- package/src/styles/composer.css +44 -15
- package/src/styles/editor.css +1 -1
- package/src/styles/files.css +15 -0
- 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 +179 -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 +59 -8
- package/src/styles/transcript.css +242 -45
- 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-f-XWIoYo.d.ts +0 -1
- package/dist/dist/oauth-callback-page-DMxIgurj.d.ts +0 -1
- package/dist/dist/sandbox-B4OW6oNx.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-2HrgolQz.d.ts → types-_Dtoq_No.d.ts} +0 -0
|
@@ -0,0 +1,1173 @@
|
|
|
1
|
+
import { DiffLines } from "../chat/transcript/DiffLines.js";
|
|
2
|
+
import { useViewsCustomCode, useViewsMcpApps } from "../chat/transcript/view-scope.js";
|
|
3
|
+
import { HighlightedCode } from "../code/HighlightedCode.js";
|
|
4
|
+
import { Accordion } from "../components/Accordion.js";
|
|
5
|
+
import { Breakdown } from "../components/Breakdown.js";
|
|
6
|
+
import { Callout } from "../components/Callout.js";
|
|
7
|
+
import { Checklist } from "../components/Checklist.js";
|
|
8
|
+
import { Compare } from "../components/Compare.js";
|
|
9
|
+
import { KeyValue } from "../components/KeyValue.js";
|
|
10
|
+
import { lazyPart } from "../components/lazy-part.js";
|
|
11
|
+
import { Notice } from "../components/Notice.js";
|
|
12
|
+
import { isCompact, trueMinus, withUnit } from "../components/numbers.js";
|
|
13
|
+
import { Progress } from "../components/Progress.js";
|
|
14
|
+
import { Delta, Stat, StatRow } from "../components/Stat.js";
|
|
15
|
+
import { Steps } from "../components/Steps.js";
|
|
16
|
+
import { Raised } from "../components/Surface.js";
|
|
17
|
+
import { Tabs } from "../components/Tabs.js";
|
|
18
|
+
import { RoutedLink } from "../extensions/links.js";
|
|
19
|
+
import { BADGE_TONE, TONES } from "./badge-tone.js";
|
|
20
|
+
import { BoolMark, boolText } from "./BoolMark.js";
|
|
21
|
+
import { arr, bool, cellText, formatterOf, num, oneOf, str, useViewNumbers } from "./format.js";
|
|
22
|
+
import { viewImageKind, viewLink } from "./headless/safe.js";
|
|
23
|
+
import { SessionActionPart, SessionRowsPart } from "./session-part.js";
|
|
24
|
+
import { SvgImage } from "./SvgImage.js";
|
|
25
|
+
import { appIsLight } from "./theme-watch.js";
|
|
26
|
+
import { useViewRef } from "./use-view-ref.js";
|
|
27
|
+
import { VIEW_CONTROL_NODES, ViewControl } from "./ViewControls.js";
|
|
28
|
+
import { useViewsHost, useViewsLabels } from "./ViewsProvider.js";
|
|
29
|
+
import { Suspense, createContext, memo, useContext, useEffect, useMemo, useState } from "react";
|
|
30
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
31
|
+
import { MCP_APP_NODE_TYPE, VIEW_FALLBACK_TYPE, VIEW_PREVIEW_GLOBAL, compareChange, computeLineDiff, nodePathOf, statChange } from "zidane/chat/pure";
|
|
32
|
+
// src/views/ViewNodes.tsx
|
|
33
|
+
const ScopeContext = createContext({});
|
|
34
|
+
/**
|
|
35
|
+
* The stored image of a `<Custom>` node for the app's light or dark scheme,
|
|
36
|
+
* or `undefined`.
|
|
37
|
+
*
|
|
38
|
+
* @param scope - The stored view.
|
|
39
|
+
* @param node - The node.
|
|
40
|
+
*/
|
|
41
|
+
function customShotOf(scope, node) {
|
|
42
|
+
if (!scope?.customShots) return void 0;
|
|
43
|
+
const path = nodePathOf(scope.tree, node);
|
|
44
|
+
const shot = path ? scope.customShots[path.join(".")] : void 0;
|
|
45
|
+
if (!shot) return void 0;
|
|
46
|
+
return appIsLight() ? shot.light ?? shot.dark : shot.dark ?? shot.light;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The stored image of each Custom part of the tree drawn now, for the theme shown, by node path:
|
|
50
|
+
* what a capture shows where it cannot draw a running page. `undefined` when there is none.
|
|
51
|
+
*
|
|
52
|
+
* @param scope - The stored view the tree belongs to.
|
|
53
|
+
*/
|
|
54
|
+
function themedCustomShots(scope) {
|
|
55
|
+
if (!scope?.customShots) return void 0;
|
|
56
|
+
const light = appIsLight();
|
|
57
|
+
const out = {};
|
|
58
|
+
for (const [path, shot] of Object.entries(scope.customShots)) {
|
|
59
|
+
const url = light ? shot.light ?? shot.dark : shot.dark ?? shot.light;
|
|
60
|
+
if (url) out[path] = url;
|
|
61
|
+
}
|
|
62
|
+
return Object.keys(out).length > 0 ? out : void 0;
|
|
63
|
+
}
|
|
64
|
+
const CustomScopeContext = createContext(null);
|
|
65
|
+
/** The stored view the nodes here belong to, or `null` (a fence not stored yet). */
|
|
66
|
+
function useViewCustomScope() {
|
|
67
|
+
return useContext(CustomScopeContext);
|
|
68
|
+
}
|
|
69
|
+
/** Charts: their own chunk (d3's scales and shapes). `main`: the view's main chart, drawn taller. */
|
|
70
|
+
const ChartPart = lazyPart(() => import("./ViewCharts.js").then((m) => m.ViewChart));
|
|
71
|
+
const NO_LAYOUT = {
|
|
72
|
+
lead: null,
|
|
73
|
+
mainChart: null,
|
|
74
|
+
progressCounts: /* @__PURE__ */ new Set()
|
|
75
|
+
};
|
|
76
|
+
/** Parts that answer a view when they open it. */
|
|
77
|
+
const ANSWER_TYPES = /* @__PURE__ */ new Set([
|
|
78
|
+
"StatRow",
|
|
79
|
+
"Stat",
|
|
80
|
+
"Headline"
|
|
81
|
+
]);
|
|
82
|
+
const LayoutContext = createContext(NO_LAYOUT);
|
|
83
|
+
/** Parts that draw their number at the figure size when they lead a view. */
|
|
84
|
+
const LEAD_TYPES = /* @__PURE__ */ new Set([
|
|
85
|
+
"Stat",
|
|
86
|
+
"Progress",
|
|
87
|
+
"Trend",
|
|
88
|
+
"Headline"
|
|
89
|
+
]);
|
|
90
|
+
/** Charts that take the main chart's height when first. */
|
|
91
|
+
const MAIN_CHART_TYPES = /* @__PURE__ */ new Set([
|
|
92
|
+
"BarChart",
|
|
93
|
+
"LineChart",
|
|
94
|
+
"AreaChart",
|
|
95
|
+
"ScatterChart",
|
|
96
|
+
"Trend"
|
|
97
|
+
]);
|
|
98
|
+
function isBlank(node) {
|
|
99
|
+
return typeof node === "string" && node.trim() === "";
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* The layout facts of a view's top-level nodes.
|
|
103
|
+
*
|
|
104
|
+
* @param nodes - The view's top-level nodes.
|
|
105
|
+
*/
|
|
106
|
+
function viewLayoutOf(nodes) {
|
|
107
|
+
const parts = nodes.filter((node) => !isBlank(node) && typeof node !== "string");
|
|
108
|
+
let lead = null;
|
|
109
|
+
const firstOf = (list) => {
|
|
110
|
+
const first = list.find((node) => typeof node !== "string" && node.type !== "Heading" && !VIEW_CONTROL_NODES.has(node.type));
|
|
111
|
+
return first?.type === "Stack" ? firstOf(first.children) : first;
|
|
112
|
+
};
|
|
113
|
+
const first = firstOf(parts);
|
|
114
|
+
if (first && LEAD_TYPES.has(first.type)) lead = first;
|
|
115
|
+
let mainChart = null;
|
|
116
|
+
const progressCounts = /* @__PURE__ */ new Set();
|
|
117
|
+
let headline = null;
|
|
118
|
+
const walk = (node, inGrid) => {
|
|
119
|
+
if (typeof node === "string") return;
|
|
120
|
+
if (node.type === "Headline" && !headline) headline = node;
|
|
121
|
+
if (!mainChart && !inGrid && MAIN_CHART_TYPES.has(node.type)) mainChart = node;
|
|
122
|
+
if (node.type === "Progress" && typeof node.props.value === "number") progressCounts.add(`${node.props.value}/${typeof node.props.max === "number" ? node.props.max : 100}`);
|
|
123
|
+
for (const child of node.children) walk(child, inGrid || node.type === "Grid" || node.type === "StatRow");
|
|
124
|
+
};
|
|
125
|
+
for (const node of parts) walk(node, false);
|
|
126
|
+
if (headline) lead = headline;
|
|
127
|
+
const answered = headline !== null || first !== void 0 && ANSWER_TYPES.has(first.type);
|
|
128
|
+
return {
|
|
129
|
+
lead,
|
|
130
|
+
mainChart,
|
|
131
|
+
progressCounts,
|
|
132
|
+
...answered ? { answered } : {}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/** Tables: their own chunk. */
|
|
136
|
+
const TablePart = lazyPart(() => import("./ViewTables.js").then((m) => m.ViewTable));
|
|
137
|
+
/**
|
|
138
|
+
* The nodes to draw, with a `Segmented` that comes just before a `Table` (blank text between
|
|
139
|
+
* them aside) moved into that table's toolbar line: `lead` on the table's entry. `i` keeps each
|
|
140
|
+
* node's index.
|
|
141
|
+
*/
|
|
142
|
+
function withLeads(nodes) {
|
|
143
|
+
const out = [];
|
|
144
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
145
|
+
const node = nodes[i];
|
|
146
|
+
if (typeof node !== "string" && node.type === "Segmented") {
|
|
147
|
+
let next = i + 1;
|
|
148
|
+
while (next < nodes.length && isBlank(nodes[next])) next++;
|
|
149
|
+
const table = nodes[next];
|
|
150
|
+
if (table !== void 0 && typeof table !== "string" && table.type === "Table") {
|
|
151
|
+
out.push({
|
|
152
|
+
i: next,
|
|
153
|
+
node: table,
|
|
154
|
+
lead: node
|
|
155
|
+
});
|
|
156
|
+
i = next;
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
out.push({
|
|
161
|
+
i,
|
|
162
|
+
node
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return out;
|
|
166
|
+
}
|
|
167
|
+
/** A Table with the view's control drawn before it, in its toolbar line. */
|
|
168
|
+
const LedTable = memo(({ node, lead }) => {
|
|
169
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
170
|
+
fallback: /* @__PURE__ */ jsx(PartSkeleton, { height: 120 }),
|
|
171
|
+
children: /* @__PURE__ */ jsx(TablePart, {
|
|
172
|
+
node,
|
|
173
|
+
lead: /* @__PURE__ */ jsx(ViewControl, { node: lead })
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
LedTable.displayName = "LedTable";
|
|
178
|
+
/** Inputs (Choice, Form, Action): their own chunk. `scope`: the stored view they answer, or `null`. */
|
|
179
|
+
const InputPart = lazyPart(() => import("./ViewInputs.js").then((m) => m.ViewInput));
|
|
180
|
+
/** An input node, with the stored view it belongs to (its answer names the view and the node). */
|
|
181
|
+
function InputNode({ node }) {
|
|
182
|
+
const scope = useContext(CustomScopeContext);
|
|
183
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
184
|
+
fallback: /* @__PURE__ */ jsx(PartSkeleton, {}),
|
|
185
|
+
children: /* @__PURE__ */ jsx(InputPart, {
|
|
186
|
+
node,
|
|
187
|
+
scope
|
|
188
|
+
})
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/** Custom frames: their own chunk, loaded only with custom code on and a host that runs it. */
|
|
192
|
+
const CustomPart = lazyPart(() => import("./ViewCustom.js").then((m) => m.CustomFrameView));
|
|
193
|
+
/** MCP apps (docs/VIEWS.md, MCP Apps): their own chunk, loaded only with custom code on and a host that runs them. */
|
|
194
|
+
const McpAppPart = lazyPart(() => import("./ViewMcpApp.js").then((m) => m.McpAppFrameView));
|
|
195
|
+
/** Diagrams: the transcript's Mermaid renderer, its own chunk (Pele loads on the first diagram). */
|
|
196
|
+
const DiagramPart = lazyPart(() => import("../chat/transcript/MermaidDiagram.js").then((m) => m.MermaidDiagram));
|
|
197
|
+
/** Extension components (`<Namespace.Name>`): their own chunk, loaded only for a view that holds one. */
|
|
198
|
+
const ExtensionPart = lazyPart(() => import("./ViewExtension.js").then((m) => m.ExtensionViewNode));
|
|
199
|
+
const CHART_TYPES = /* @__PURE__ */ new Set([
|
|
200
|
+
"BarChart",
|
|
201
|
+
"LineChart",
|
|
202
|
+
"AreaChart",
|
|
203
|
+
"ScatterChart",
|
|
204
|
+
"Sparkline",
|
|
205
|
+
"Trend"
|
|
206
|
+
]);
|
|
207
|
+
const INPUT_TYPES = /* @__PURE__ */ new Set([
|
|
208
|
+
"Choice",
|
|
209
|
+
"Form",
|
|
210
|
+
"Action"
|
|
211
|
+
]);
|
|
212
|
+
/** An `<Action session>`, or a Table with a `rowAction` (docs/VIEWS-ORCHESTRATION.md). */
|
|
213
|
+
function hasSessionAction(node) {
|
|
214
|
+
const own = node.type === "Action" ? node.props.session : node.type === "Table" ? node.props.rowAction : void 0;
|
|
215
|
+
return own !== null && typeof own === "object" && !Array.isArray(own);
|
|
216
|
+
}
|
|
217
|
+
/** The chunk a node draws with, if any. */
|
|
218
|
+
function partOf(node, run) {
|
|
219
|
+
if (run.sessions && hasSessionAction(node)) return node.type === "Table" ? SessionRowsPart : SessionActionPart;
|
|
220
|
+
if (CHART_TYPES.has(node.type)) return ChartPart;
|
|
221
|
+
if (INPUT_TYPES.has(node.type)) return InputPart;
|
|
222
|
+
if (node.type === MCP_APP_NODE_TYPE) return run.mcpApps ? McpAppPart : null;
|
|
223
|
+
if (node.type.includes(".")) return ExtensionPart;
|
|
224
|
+
switch (node.type) {
|
|
225
|
+
case "Table": return TablePart;
|
|
226
|
+
case "Diagram": return DiagramPart;
|
|
227
|
+
case "Custom": return run.custom ? CustomPart : null;
|
|
228
|
+
case "Stat": return Array.isArray(node.props.trend) && node.props.trend.length > 1 ? ChartPart : null;
|
|
229
|
+
default: return null;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The chunks a tree draws with (charts, tables, inputs, Custom pages…). A
|
|
234
|
+
* stored view draws once they have all loaded, so no part shows its
|
|
235
|
+
* loading skeleton and then grows: the view paints at its final height.
|
|
236
|
+
*
|
|
237
|
+
* @param nodes - The tree's nodes.
|
|
238
|
+
* @param run - What the view runs.
|
|
239
|
+
*/
|
|
240
|
+
function viewParts(nodes, run) {
|
|
241
|
+
const found = /* @__PURE__ */ new Set();
|
|
242
|
+
const walk = (list) => {
|
|
243
|
+
for (const node of list) {
|
|
244
|
+
if (typeof node === "string") continue;
|
|
245
|
+
const part = partOf(node, run);
|
|
246
|
+
if (part) found.add(part);
|
|
247
|
+
if (part && run.sessions && hasSessionAction(node)) found.add(node.type === "Table" ? TablePart : InputPart);
|
|
248
|
+
walk(node.children);
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
walk(nodes);
|
|
252
|
+
return [...found];
|
|
253
|
+
}
|
|
254
|
+
const GAP = {
|
|
255
|
+
none: "gap-0",
|
|
256
|
+
small: "gap-2",
|
|
257
|
+
medium: "gap-4",
|
|
258
|
+
large: "gap-6"
|
|
259
|
+
};
|
|
260
|
+
const GAPS = [
|
|
261
|
+
"none",
|
|
262
|
+
"small",
|
|
263
|
+
"medium",
|
|
264
|
+
"large"
|
|
265
|
+
];
|
|
266
|
+
const ALIGN = {
|
|
267
|
+
start: "items-start",
|
|
268
|
+
center: "items-center",
|
|
269
|
+
end: "items-end",
|
|
270
|
+
stretch: "items-stretch"
|
|
271
|
+
};
|
|
272
|
+
const TEXT_TONE = {
|
|
273
|
+
default: "text-[var(--zg-text)]",
|
|
274
|
+
muted: "text-[var(--zg-text-muted)]",
|
|
275
|
+
info: "text-zg-info",
|
|
276
|
+
success: "text-zg-success",
|
|
277
|
+
warning: "text-zg-warn",
|
|
278
|
+
danger: "text-zg-danger"
|
|
279
|
+
};
|
|
280
|
+
const HEADING = [
|
|
281
|
+
"text-zg-body leading-5 font-semibold",
|
|
282
|
+
"text-zg-body leading-5 font-semibold",
|
|
283
|
+
"text-zg-ui leading-5 font-semibold",
|
|
284
|
+
"text-zg-ui leading-5 font-medium"
|
|
285
|
+
];
|
|
286
|
+
/** The text of a node's children, joined. */
|
|
287
|
+
function textOf(children) {
|
|
288
|
+
return children.map((child) => typeof child === "string" ? child : textOf(child.children)).join("");
|
|
289
|
+
}
|
|
290
|
+
/** A skeleton at a reserved height, for a part whose code or chunk is not ready. */
|
|
291
|
+
function PartSkeleton({ height = 48, label }) {
|
|
292
|
+
return /* @__PURE__ */ jsx("div", {
|
|
293
|
+
role: label ? "status" : void 0,
|
|
294
|
+
"aria-label": label,
|
|
295
|
+
className: "zg-view-skeleton rounded-zg-md",
|
|
296
|
+
style: { height },
|
|
297
|
+
"data-zg-view-skeleton": ""
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
/** Whether `node` is a `Heading` that says `title` (the frame's title, maybe cut short with an ellipsis). */
|
|
301
|
+
function headingSays(node, title) {
|
|
302
|
+
if (!title || !node || typeof node === "string" || node.type !== "Heading") return false;
|
|
303
|
+
const text = textOf(node.children).replace(/\s+/g, " ").trim();
|
|
304
|
+
return text === title || title.endsWith("…") && text.startsWith(title.slice(0, -1));
|
|
305
|
+
}
|
|
306
|
+
function ViewLink({ href, children }) {
|
|
307
|
+
const labels = useViewsLabels();
|
|
308
|
+
const url = viewLink(href);
|
|
309
|
+
if (!url) return /* @__PURE__ */ jsx(Fragment$1, { children });
|
|
310
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
311
|
+
/* @__PURE__ */ jsx(RoutedLink, {
|
|
312
|
+
href: url.href,
|
|
313
|
+
source: "transcript",
|
|
314
|
+
className: "text-[var(--zg-accent)] hover:text-[var(--zg-accent-hover)] underline underline-offset-2",
|
|
315
|
+
children
|
|
316
|
+
}),
|
|
317
|
+
" ",
|
|
318
|
+
/* @__PURE__ */ jsx("span", {
|
|
319
|
+
className: "zg-meta",
|
|
320
|
+
children: labels.viewLinkDomain(url.hostname)
|
|
321
|
+
})
|
|
322
|
+
] });
|
|
323
|
+
}
|
|
324
|
+
function ViewImage({ source, alt }) {
|
|
325
|
+
const labels = useViewsLabels();
|
|
326
|
+
const host = useViewsHost();
|
|
327
|
+
const scope = useContext(CustomScopeContext);
|
|
328
|
+
const kind = viewImageKind(source);
|
|
329
|
+
const inlined = kind && kind !== "data" ? scope?.images?.[source] : void 0;
|
|
330
|
+
const ask = kind && kind !== "data" && !inlined && host?.image && scope ? source : null;
|
|
331
|
+
const ref = useViewRef(scope?.ref);
|
|
332
|
+
const [read, setRead] = useState(null);
|
|
333
|
+
useEffect(() => {
|
|
334
|
+
if (!ask || !ref || !host?.image) return void 0;
|
|
335
|
+
let live = true;
|
|
336
|
+
host.image(ref, ask).then((url) => {
|
|
337
|
+
if (live) setRead({
|
|
338
|
+
source: ask,
|
|
339
|
+
url
|
|
340
|
+
});
|
|
341
|
+
});
|
|
342
|
+
return () => {
|
|
343
|
+
live = false;
|
|
344
|
+
};
|
|
345
|
+
}, [
|
|
346
|
+
ask,
|
|
347
|
+
ref,
|
|
348
|
+
host
|
|
349
|
+
]);
|
|
350
|
+
const url = kind === "data" ? source : inlined ?? (read && read.source === ask ? read.url : null);
|
|
351
|
+
if (!url) return /* @__PURE__ */ jsx("div", {
|
|
352
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
353
|
+
children: labels.viewImageHidden(alt)
|
|
354
|
+
});
|
|
355
|
+
return /* @__PURE__ */ jsx("img", {
|
|
356
|
+
src: url,
|
|
357
|
+
alt,
|
|
358
|
+
className: "block max-w-full h-auto rounded-zg-sm",
|
|
359
|
+
draggable: false
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
function patchLines(patch) {
|
|
363
|
+
const lines = [];
|
|
364
|
+
for (const line of patch.split("\n")) {
|
|
365
|
+
if (/^(?:---|\+\+\+|@@|diff |index )/.test(line)) continue;
|
|
366
|
+
if (line.startsWith("+")) lines.push({
|
|
367
|
+
op: "add",
|
|
368
|
+
text: line.slice(1)
|
|
369
|
+
});
|
|
370
|
+
else if (line.startsWith("-")) lines.push({
|
|
371
|
+
op: "remove",
|
|
372
|
+
text: line.slice(1)
|
|
373
|
+
});
|
|
374
|
+
else lines.push({
|
|
375
|
+
op: "context",
|
|
376
|
+
text: line.startsWith(" ") ? line.slice(1) : line
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
return lines;
|
|
380
|
+
}
|
|
381
|
+
/** A part's title (TY3): 14 px semibold in the text color, 8 px over its body. */
|
|
382
|
+
function Title({ text }) {
|
|
383
|
+
return text ? /* @__PURE__ */ jsx("div", {
|
|
384
|
+
className: "text-zg-body leading-5 font-semibold text-[var(--zg-text)] mb-2",
|
|
385
|
+
children: text
|
|
386
|
+
}) : null;
|
|
387
|
+
}
|
|
388
|
+
/** The plain box an unknown node draws as. A known component whose props failed the check draws as a notice with the problem. */
|
|
389
|
+
function UnknownNode({ node }) {
|
|
390
|
+
const labels = useViewsLabels();
|
|
391
|
+
const name = node.type === VIEW_FALLBACK_TYPE ? str(node.props.name) ?? node.type : node.type;
|
|
392
|
+
const alt = str(node.props.alt);
|
|
393
|
+
if (node.type === VIEW_FALLBACK_TYPE && node.props.reason === "invalid") {
|
|
394
|
+
const problem = str(node.props.problem);
|
|
395
|
+
return /* @__PURE__ */ jsx("div", {
|
|
396
|
+
"data-zg-view-invalid": name,
|
|
397
|
+
children: /* @__PURE__ */ jsx(Notice, {
|
|
398
|
+
tone: "warning",
|
|
399
|
+
compact: true,
|
|
400
|
+
...problem ? { detail: problem } : {},
|
|
401
|
+
children: labels.viewInvalid(name)
|
|
402
|
+
})
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
406
|
+
className: "zg-view-unknown rounded-zg-md px-3 py-2 flex flex-col gap-1",
|
|
407
|
+
"data-zg-view-unknown": name,
|
|
408
|
+
children: [
|
|
409
|
+
/* @__PURE__ */ jsx("span", {
|
|
410
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
411
|
+
children: labels.viewUnknown(name)
|
|
412
|
+
}),
|
|
413
|
+
node.children.length > 0 ? /* @__PURE__ */ jsx("div", {
|
|
414
|
+
className: "text-zg-ui",
|
|
415
|
+
children: /* @__PURE__ */ jsx(Children, { nodes: node.children })
|
|
416
|
+
}) : null,
|
|
417
|
+
alt ? /* @__PURE__ */ jsx("div", {
|
|
418
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
419
|
+
children: alt
|
|
420
|
+
}) : null
|
|
421
|
+
]
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
function PlacedNode({ node }) {
|
|
425
|
+
const { placed } = useContext(ScopeContext);
|
|
426
|
+
const labels = useViewsLabels();
|
|
427
|
+
const ref = str(node.props.ref) ?? "";
|
|
428
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: placed ? placed(ref) : /* @__PURE__ */ jsx("div", {
|
|
429
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
430
|
+
children: labels.viewMissingRef(ref)
|
|
431
|
+
}) });
|
|
432
|
+
}
|
|
433
|
+
/** A `<Custom>` node that does not run: its title, its alt text and why. */
|
|
434
|
+
function CustomStatic({ p, note }) {
|
|
435
|
+
return /* @__PURE__ */ jsxs(Raised, {
|
|
436
|
+
radius: "md",
|
|
437
|
+
className: "px-3 py-2 flex flex-col gap-1",
|
|
438
|
+
"data-zg-view-custom": "static",
|
|
439
|
+
children: [
|
|
440
|
+
/* @__PURE__ */ jsx("div", {
|
|
441
|
+
className: "text-zg-ui font-medium",
|
|
442
|
+
children: str(p.title)
|
|
443
|
+
}),
|
|
444
|
+
/* @__PURE__ */ jsx("div", {
|
|
445
|
+
className: "text-zg-ui text-[var(--zg-text-muted)]",
|
|
446
|
+
children: str(p.alt)
|
|
447
|
+
}),
|
|
448
|
+
note ? /* @__PURE__ */ jsx("div", {
|
|
449
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
450
|
+
children: note
|
|
451
|
+
}) : null
|
|
452
|
+
]
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
/** The stored image of a Custom page that does not run, with a note under it. */
|
|
456
|
+
function CustomShotImage({ p, url, note }) {
|
|
457
|
+
const labels = useViewsLabels();
|
|
458
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
459
|
+
className: "flex flex-col gap-2 min-w-0",
|
|
460
|
+
"data-zg-view-custom": "shot",
|
|
461
|
+
children: [
|
|
462
|
+
/* @__PURE__ */ jsx("img", {
|
|
463
|
+
src: url,
|
|
464
|
+
alt: labels.viewCustomSnapshot(str(p.title) ?? ""),
|
|
465
|
+
className: "block max-w-full h-auto rounded-zg-md",
|
|
466
|
+
draggable: false
|
|
467
|
+
}),
|
|
468
|
+
/* @__PURE__ */ jsx("p", {
|
|
469
|
+
className: "sr-only",
|
|
470
|
+
children: str(p.alt)
|
|
471
|
+
}),
|
|
472
|
+
note ? /* @__PURE__ */ jsx("div", {
|
|
473
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
474
|
+
children: note
|
|
475
|
+
}) : null
|
|
476
|
+
]
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* An MCP app (docs/VIEWS.md, MCP Apps): its page in the Custom sandbox when
|
|
481
|
+
* custom code and MCP UI are on and the host runs it and its requests, else its title
|
|
482
|
+
* and alt text. The host serves the page only for a view it stored as an app.
|
|
483
|
+
*/
|
|
484
|
+
function McpAppNode({ node }) {
|
|
485
|
+
const labels = useViewsLabels();
|
|
486
|
+
const on = useViewsCustomCode();
|
|
487
|
+
const apps = useViewsMcpApps();
|
|
488
|
+
const host = useViewsHost();
|
|
489
|
+
const scope = useContext(CustomScopeContext);
|
|
490
|
+
const p = node.props;
|
|
491
|
+
if (!on) return /* @__PURE__ */ jsx(CustomStatic, {
|
|
492
|
+
p,
|
|
493
|
+
note: labels.viewMcpAppOff
|
|
494
|
+
});
|
|
495
|
+
if (!apps) return /* @__PURE__ */ jsx(CustomStatic, {
|
|
496
|
+
p,
|
|
497
|
+
note: labels.viewMcpAppUiOff
|
|
498
|
+
});
|
|
499
|
+
if (!host?.customFrame || !host.appRequest) return /* @__PURE__ */ jsx(CustomStatic, {
|
|
500
|
+
p,
|
|
501
|
+
note: labels.viewMcpAppUnsupported
|
|
502
|
+
});
|
|
503
|
+
if (!scope) return /* @__PURE__ */ jsx(CustomStatic, {
|
|
504
|
+
p,
|
|
505
|
+
note: labels.viewPending
|
|
506
|
+
});
|
|
507
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
508
|
+
fallback: /* @__PURE__ */ jsx(CustomStatic, { p }),
|
|
509
|
+
children: /* @__PURE__ */ jsx(McpAppPart, {
|
|
510
|
+
node,
|
|
511
|
+
scope
|
|
512
|
+
})
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* A `<Custom>` node: its page in a sandboxed frame when custom code is on,
|
|
517
|
+
* the host can run it and the node belongs to a stored view; else its
|
|
518
|
+
* stored image when the view has one, else its title and alt text. With
|
|
519
|
+
* custom code off the Custom chunk never loads.
|
|
520
|
+
*/
|
|
521
|
+
function CustomNode({ node }) {
|
|
522
|
+
const labels = useViewsLabels();
|
|
523
|
+
const on = useViewsCustomCode();
|
|
524
|
+
const host = useViewsHost();
|
|
525
|
+
const scope = useContext(CustomScopeContext);
|
|
526
|
+
const p = node.props;
|
|
527
|
+
const shot = !on || !host?.customFrame ? customShotOf(scope, node) : void 0;
|
|
528
|
+
if (shot && !host?.customFrame) return /* @__PURE__ */ jsx(CustomShotImage, {
|
|
529
|
+
p,
|
|
530
|
+
url: shot
|
|
531
|
+
});
|
|
532
|
+
if (!on) return shot ? /* @__PURE__ */ jsx(CustomShotImage, {
|
|
533
|
+
p,
|
|
534
|
+
url: shot,
|
|
535
|
+
note: labels.viewCustomOff
|
|
536
|
+
}) : /* @__PURE__ */ jsx(CustomStatic, {
|
|
537
|
+
p,
|
|
538
|
+
note: labels.viewCustomOff
|
|
539
|
+
});
|
|
540
|
+
if (!host?.customFrame) return /* @__PURE__ */ jsx(CustomStatic, {
|
|
541
|
+
p,
|
|
542
|
+
note: labels.viewCustomUnsupported
|
|
543
|
+
});
|
|
544
|
+
const stored = customShotOf(scope, node);
|
|
545
|
+
if (!scope) return /* @__PURE__ */ jsx(CustomStatic, {
|
|
546
|
+
p,
|
|
547
|
+
note: labels.viewPending
|
|
548
|
+
});
|
|
549
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
550
|
+
fallback: stored ? /* @__PURE__ */ jsx(CustomShotImage, {
|
|
551
|
+
p,
|
|
552
|
+
url: stored
|
|
553
|
+
}) : /* @__PURE__ */ jsx(CustomStatic, { p }),
|
|
554
|
+
children: /* @__PURE__ */ jsx(CustomPart, {
|
|
555
|
+
node,
|
|
556
|
+
scope
|
|
557
|
+
})
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
/** An extension component node, with its alt text while its chunk loads. */
|
|
561
|
+
function ExtensionNode({ node }) {
|
|
562
|
+
const scope = useContext(CustomScopeContext);
|
|
563
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
564
|
+
fallback: /* @__PURE__ */ jsx("div", {
|
|
565
|
+
className: "text-zg-ui whitespace-pre-wrap min-w-0",
|
|
566
|
+
"data-zg-view-extension": node.type,
|
|
567
|
+
"data-zg-view-pending": "",
|
|
568
|
+
children: node.alt ?? ""
|
|
569
|
+
}),
|
|
570
|
+
children: /* @__PURE__ */ jsx(ExtensionPart, {
|
|
571
|
+
node,
|
|
572
|
+
scope
|
|
573
|
+
})
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
/** A number node's `format` and `unit` as one formatter of a change's size, for `Delta`. */
|
|
577
|
+
function deltaFormat(format, unit, nf) {
|
|
578
|
+
if (!format && !unit) return void 0;
|
|
579
|
+
return (abs) => {
|
|
580
|
+
const text = format ? format(abs) : nf.number(abs, 1);
|
|
581
|
+
return withUnit(text, unit, isCompact(text));
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* A context line with its long bare numbers grouped: "20212 errors" reads "20,212 errors" (NU2). Ids ("ORD-10400") stay.
|
|
586
|
+
*/
|
|
587
|
+
function groupDigits(text, nf) {
|
|
588
|
+
return text.replace(/(?<![\w.,\-/#])\d{5,}(?![\w.,])/g, (digits) => nf.number(Number(digits)));
|
|
589
|
+
}
|
|
590
|
+
function StatNode({ p, headline = false }) {
|
|
591
|
+
const nf = useViewNumbers();
|
|
592
|
+
const raw = p.value;
|
|
593
|
+
const text = str(raw) ?? "";
|
|
594
|
+
const bare = typeof raw === "string" && /^-?\d{4,}(?:\.\d+)?$/.test(text.trim()) ? Number(text) : void 0;
|
|
595
|
+
const unit = str(p.unit);
|
|
596
|
+
const amount = typeof raw === "number" ? raw : bare;
|
|
597
|
+
const cents = amount !== void 0 && !Number.isInteger(amount) && /^[$€£¥₹]$/.test(unit?.trim() ?? "");
|
|
598
|
+
const value = amount !== void 0 ? trueMinus(cents ? nf.number(amount, 2, true) : nf.number(amount)) : trueMinus(text);
|
|
599
|
+
const change = statChange(p);
|
|
600
|
+
const delta = change?.delta;
|
|
601
|
+
const format = formatterOf(change?.format, nf);
|
|
602
|
+
const trend = arr(p.trend).filter((v) => typeof v === "number");
|
|
603
|
+
const goodWhen = oneOf(p.goodWhen, [
|
|
604
|
+
"up",
|
|
605
|
+
"down",
|
|
606
|
+
"neutral"
|
|
607
|
+
], "up");
|
|
608
|
+
return /* @__PURE__ */ jsx(Stat, {
|
|
609
|
+
tone: oneOf(p.tone, TONES, "neutral"),
|
|
610
|
+
size: headline ? "headline" : "stat",
|
|
611
|
+
label: str(p.label) ?? "",
|
|
612
|
+
value: unit && /[a-z]/i.test(unit) ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
613
|
+
value,
|
|
614
|
+
"\xA0",
|
|
615
|
+
/* @__PURE__ */ jsx("span", {
|
|
616
|
+
className: "text-zg-ui font-normal text-[var(--zg-text-muted)]",
|
|
617
|
+
"data-zg-stat-unit": "",
|
|
618
|
+
children: unit
|
|
619
|
+
})
|
|
620
|
+
] }) : withUnit(value, unit, isCompact(value)),
|
|
621
|
+
sub: str(p.sub) || trend.length > 1 ? /* @__PURE__ */ jsxs("span", {
|
|
622
|
+
className: "flex flex-col gap-1",
|
|
623
|
+
children: [str(p.sub) ? /* @__PURE__ */ jsx("span", { children: groupDigits(str(p.sub), nf) }) : null, trend.length > 1 ? /* @__PURE__ */ jsx(Suspense, {
|
|
624
|
+
fallback: /* @__PURE__ */ jsx(PartSkeleton, { height: 24 }),
|
|
625
|
+
children: /* @__PURE__ */ jsx(ChartPart, { node: {
|
|
626
|
+
type: "Sparkline",
|
|
627
|
+
props: { values: trend },
|
|
628
|
+
children: []
|
|
629
|
+
} })
|
|
630
|
+
}) : null]
|
|
631
|
+
}) : void 0,
|
|
632
|
+
delta: delta !== void 0 ? /* @__PURE__ */ jsx(Delta, {
|
|
633
|
+
value: delta,
|
|
634
|
+
...format ? { format } : {},
|
|
635
|
+
good: goodWhen === "neutral" ? "none" : goodWhen
|
|
636
|
+
}) : void 0
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
function DeltaNode({ p }) {
|
|
640
|
+
const nf = useViewNumbers();
|
|
641
|
+
const value = num(p.value) ?? 0;
|
|
642
|
+
const format = deltaFormat(formatterOf(p.format, nf), str(p.unit), nf);
|
|
643
|
+
const goodWhen = oneOf(p.goodWhen, [
|
|
644
|
+
"up",
|
|
645
|
+
"down",
|
|
646
|
+
"neutral"
|
|
647
|
+
], "up");
|
|
648
|
+
return /* @__PURE__ */ jsx(Delta, {
|
|
649
|
+
value,
|
|
650
|
+
...format ? { format } : {},
|
|
651
|
+
good: goodWhen === "neutral" ? "none" : goodWhen
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
function CellText({ value }) {
|
|
655
|
+
const nf = useViewNumbers();
|
|
656
|
+
if (typeof value === "boolean") return /* @__PURE__ */ jsx(BoolMark, { value });
|
|
657
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: cellText(value, void 0, void 0, nf) });
|
|
658
|
+
}
|
|
659
|
+
function CompareNode({ p }) {
|
|
660
|
+
const nf = useViewNumbers();
|
|
661
|
+
const format = formatterOf(p.format, nf);
|
|
662
|
+
const goodWhen = oneOf(p.goodWhen, ["up", "down"], "down");
|
|
663
|
+
const given = num(p.noise);
|
|
664
|
+
const noise = given !== void 0 && given >= 0 ? given : void 0;
|
|
665
|
+
const rows = arr(p.rows).flatMap((row) => {
|
|
666
|
+
if (!Array.isArray(row) || row.length < 3) return [];
|
|
667
|
+
const before = num(row[1]);
|
|
668
|
+
const after = num(row[2]);
|
|
669
|
+
if (before === void 0 || after === void 0) return [];
|
|
670
|
+
return [{
|
|
671
|
+
label: str(row[0]) ?? "",
|
|
672
|
+
before,
|
|
673
|
+
after,
|
|
674
|
+
...compareChange(before, after, goodWhen, noise)
|
|
675
|
+
}];
|
|
676
|
+
});
|
|
677
|
+
return /* @__PURE__ */ jsx(Compare, {
|
|
678
|
+
rows,
|
|
679
|
+
goodWhen,
|
|
680
|
+
...str(p.title) ? { title: str(p.title) } : {},
|
|
681
|
+
...str(p.unit) ? { unit: str(p.unit) } : {},
|
|
682
|
+
...format ? { format } : {},
|
|
683
|
+
...str(p.before) ? { before: str(p.before) } : {},
|
|
684
|
+
...str(p.after) ? { after: str(p.after) } : {},
|
|
685
|
+
mode: p.mode === "table" ? "table" : "bars"
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
function BreakdownNode({ p }) {
|
|
689
|
+
const nf = useViewNumbers();
|
|
690
|
+
const format = formatterOf(p.format, nf);
|
|
691
|
+
const parts = arr(p.parts).flatMap((part) => {
|
|
692
|
+
if (!Array.isArray(part) || part.length < 2) return [];
|
|
693
|
+
const value = num(part[1]);
|
|
694
|
+
return value === void 0 ? [] : [[str(part[0]) ?? "", value]];
|
|
695
|
+
});
|
|
696
|
+
const total = num(p.total);
|
|
697
|
+
return /* @__PURE__ */ jsx(Breakdown, {
|
|
698
|
+
parts,
|
|
699
|
+
...str(p.title) ? { title: str(p.title) } : {},
|
|
700
|
+
...str(p.unit) ? { unit: str(p.unit) } : {},
|
|
701
|
+
...format ? { format } : {},
|
|
702
|
+
...total !== void 0 ? { total } : {},
|
|
703
|
+
...str(p.highlight) !== void 0 ? { highlight: str(p.highlight) } : {},
|
|
704
|
+
...num(p.top) !== void 0 ? { top: num(p.top) } : {},
|
|
705
|
+
mode: p.mode === "stacked" ? "stacked" : "bars"
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
function ProgressNode({ p, headline = false }) {
|
|
709
|
+
const nf = useViewNumbers();
|
|
710
|
+
const format = formatterOf(p.format, nf);
|
|
711
|
+
const max = num(p.max);
|
|
712
|
+
const threshold = num(p.threshold);
|
|
713
|
+
return /* @__PURE__ */ jsx(Progress, {
|
|
714
|
+
value: num(p.value) ?? 0,
|
|
715
|
+
tone: oneOf(p.tone, TONES, "neutral"),
|
|
716
|
+
size: headline ? "headline" : "stat",
|
|
717
|
+
...threshold !== void 0 ? { threshold } : {},
|
|
718
|
+
...max !== void 0 && max > 0 ? { max } : {},
|
|
719
|
+
...str(p.label) ? { label: str(p.label) } : {},
|
|
720
|
+
...str(p.unit) ? { unit: str(p.unit) } : {},
|
|
721
|
+
...format ? { format } : {}
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
function ChecklistNode({ p }) {
|
|
725
|
+
const groups = arr(p.groups).flatMap((group) => {
|
|
726
|
+
if (!group || typeof group !== "object" || Array.isArray(group)) return [];
|
|
727
|
+
const items = arr(group.items).flatMap((item) => {
|
|
728
|
+
if (!item || typeof item !== "object" || Array.isArray(item)) return [];
|
|
729
|
+
const note = str(item.note);
|
|
730
|
+
return [{
|
|
731
|
+
label: str(item.label) ?? "",
|
|
732
|
+
status: oneOf(item.status, [
|
|
733
|
+
"done",
|
|
734
|
+
"failed",
|
|
735
|
+
"pending"
|
|
736
|
+
], "pending"),
|
|
737
|
+
...note ? { note } : {}
|
|
738
|
+
}];
|
|
739
|
+
});
|
|
740
|
+
return [{
|
|
741
|
+
label: str(group.label) ?? "",
|
|
742
|
+
items
|
|
743
|
+
}];
|
|
744
|
+
});
|
|
745
|
+
const { progressCounts } = useContext(LayoutContext);
|
|
746
|
+
const all = groups.flatMap((group) => group.items);
|
|
747
|
+
const said = progressCounts.has(`${all.filter((item) => item.status === "done").length}/${all.length}`);
|
|
748
|
+
return /* @__PURE__ */ jsx(Checklist, {
|
|
749
|
+
groups,
|
|
750
|
+
summary: !said,
|
|
751
|
+
...str(p.title) ? { title: str(p.title) } : {},
|
|
752
|
+
...str(p.groupLabel) ? { groupLabel: str(p.groupLabel) } : {}
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
function DiagramNode({ p }) {
|
|
756
|
+
const source = str(p.source) ?? "";
|
|
757
|
+
const still = typeof window !== "undefined" && VIEW_PREVIEW_GLOBAL in window;
|
|
758
|
+
const highlight = arr(p.highlight).flatMap((id) => typeof id === "string" && id ? [id] : []);
|
|
759
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
760
|
+
className: "min-w-0",
|
|
761
|
+
"data-zg-view-diagram": "",
|
|
762
|
+
children: [/* @__PURE__ */ jsx(Title, { text: str(p.title) }), /* @__PURE__ */ jsx(Suspense, {
|
|
763
|
+
fallback: /* @__PURE__ */ jsx(PartSkeleton, { height: 160 }),
|
|
764
|
+
children: /* @__PURE__ */ jsx(DiagramPart, {
|
|
765
|
+
code: source,
|
|
766
|
+
view: true,
|
|
767
|
+
still,
|
|
768
|
+
...highlight.length > 0 ? { highlight } : {}
|
|
769
|
+
})
|
|
770
|
+
})]
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
/** Parts that need a plot's width: side by side in a Grid only as small multiples. */
|
|
774
|
+
const WIDE_TYPES = /* @__PURE__ */ new Set([
|
|
775
|
+
"BarChart",
|
|
776
|
+
"LineChart",
|
|
777
|
+
"AreaChart",
|
|
778
|
+
"ScatterChart",
|
|
779
|
+
"Trend",
|
|
780
|
+
"Panel",
|
|
781
|
+
"Table",
|
|
782
|
+
"Compare",
|
|
783
|
+
"Breakdown",
|
|
784
|
+
"Diagram"
|
|
785
|
+
]);
|
|
786
|
+
/** A chart node, the main chart of its view drawn taller. */
|
|
787
|
+
function ChartNode({ node }) {
|
|
788
|
+
const { mainChart, lead, answered } = useContext(LayoutContext);
|
|
789
|
+
const main = mainChart === node;
|
|
790
|
+
const quiet = node.type === "Trend" && answered === true && lead !== node;
|
|
791
|
+
const fallback = num(node.props.height) ?? (node.type === "Sparkline" ? 24 : main ? 270 : 210);
|
|
792
|
+
return /* @__PURE__ */ jsx(Suspense, {
|
|
793
|
+
fallback: /* @__PURE__ */ jsx(PartSkeleton, { height: fallback }),
|
|
794
|
+
children: /* @__PURE__ */ jsx(ChartPart, {
|
|
795
|
+
node,
|
|
796
|
+
...main ? { main: true } : {},
|
|
797
|
+
...lead === node ? { headline: true } : {},
|
|
798
|
+
...quiet ? { quiet: true } : {}
|
|
799
|
+
})
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
/** A Stat or a Progress: at the figure size when it leads the view (LA2, IN6). */
|
|
803
|
+
function LeadNode({ node }) {
|
|
804
|
+
const { lead } = useContext(LayoutContext);
|
|
805
|
+
const headline = lead === node;
|
|
806
|
+
return node.type === "Progress" ? /* @__PURE__ */ jsx(ProgressNode, {
|
|
807
|
+
p: node.props,
|
|
808
|
+
headline
|
|
809
|
+
}) : /* @__PURE__ */ jsx(StatNode, {
|
|
810
|
+
p: node.props,
|
|
811
|
+
headline
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* The answer in one line with its figure (docs/VIEWS-STYLE.md, Principles 1): the number at the
|
|
816
|
+
* figure size with its unit and change, the answer as a line of text under it, and a muted
|
|
817
|
+
* context line.
|
|
818
|
+
*/
|
|
819
|
+
function HeadlineNode({ p, nodes }) {
|
|
820
|
+
const answer = textOf(nodes).trim();
|
|
821
|
+
const { sub, ...figure } = p;
|
|
822
|
+
const context = str(sub);
|
|
823
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
824
|
+
className: "flex flex-col min-w-0",
|
|
825
|
+
"data-zg-view-headline": "",
|
|
826
|
+
children: [
|
|
827
|
+
/* @__PURE__ */ jsx(StatNode, {
|
|
828
|
+
p: {
|
|
829
|
+
...figure,
|
|
830
|
+
label: p.label ?? ""
|
|
831
|
+
},
|
|
832
|
+
headline: true
|
|
833
|
+
}),
|
|
834
|
+
answer ? /* @__PURE__ */ jsx("p", {
|
|
835
|
+
className: "m-0 mt-2 max-w-[65ch] text-zg-body leading-5 text-[var(--zg-text)]",
|
|
836
|
+
"data-zg-headline-answer": "",
|
|
837
|
+
children: /* @__PURE__ */ jsx(Children, { nodes })
|
|
838
|
+
}) : null,
|
|
839
|
+
context ? /* @__PURE__ */ jsx("p", {
|
|
840
|
+
className: "m-0 mt-1 max-w-[65ch] text-zg-label leading-4 text-[var(--zg-text-muted)]",
|
|
841
|
+
"data-zg-headline-sub": "",
|
|
842
|
+
children: context
|
|
843
|
+
}) : null
|
|
844
|
+
]
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
/** Set inside a tile (a Panel): a StatRow there draws no tiles of its own, a tile in a tile is no step. */
|
|
848
|
+
const InTileContext = createContext(false);
|
|
849
|
+
/**
|
|
850
|
+
* A titled section of a dashboard, set in a tile (`.zg-tile`, LA11): one step into the view's tray,
|
|
851
|
+
* never raised. In a Grid, `span="full"` takes the whole row.
|
|
852
|
+
*/
|
|
853
|
+
function PanelNode({ node }) {
|
|
854
|
+
const p = node.props;
|
|
855
|
+
const title = str(p.title);
|
|
856
|
+
const caption = str(p.caption);
|
|
857
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
858
|
+
className: "zg-tile flex flex-col min-w-0 p-4",
|
|
859
|
+
style: p.span === "full" ? { gridColumn: "1 / -1" } : void 0,
|
|
860
|
+
"aria-label": title,
|
|
861
|
+
"data-zg-view-panel": "",
|
|
862
|
+
children: [title || caption ? /* @__PURE__ */ jsxs("div", {
|
|
863
|
+
className: "flex flex-col gap-1 mb-2 min-w-0",
|
|
864
|
+
children: [title ? /* @__PURE__ */ jsx("div", {
|
|
865
|
+
className: "text-zg-body leading-5 font-semibold text-[var(--zg-text)] truncate",
|
|
866
|
+
children: title
|
|
867
|
+
}) : null, caption ? /* @__PURE__ */ jsx("div", {
|
|
868
|
+
className: "text-zg-label leading-4 text-[var(--zg-text-muted)]",
|
|
869
|
+
children: caption
|
|
870
|
+
}) : null]
|
|
871
|
+
}) : null, /* @__PURE__ */ jsx("div", {
|
|
872
|
+
className: "flex flex-col gap-4 min-w-0",
|
|
873
|
+
children: /* @__PURE__ */ jsx(InTileContext.Provider, {
|
|
874
|
+
value: true,
|
|
875
|
+
children: /* @__PURE__ */ jsx(Children, { nodes: node.children })
|
|
876
|
+
})
|
|
877
|
+
})]
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
let nodeDraws = 0;
|
|
881
|
+
/** How many times a view node has drawn, for the tests that count redraws. */
|
|
882
|
+
function viewNodeDraws() {
|
|
883
|
+
return nodeDraws;
|
|
884
|
+
}
|
|
885
|
+
/** Draws one node of a view tree, memoized on the node's identity. */
|
|
886
|
+
const ViewNodeView = memo(function ViewNodeView({ node }) {
|
|
887
|
+
nodeDraws++;
|
|
888
|
+
const inTile = useContext(InTileContext);
|
|
889
|
+
if (typeof node === "string") return /* @__PURE__ */ jsx("span", {
|
|
890
|
+
className: "whitespace-pre-wrap",
|
|
891
|
+
children: node
|
|
892
|
+
});
|
|
893
|
+
const p = node.props;
|
|
894
|
+
if (CHART_TYPES.has(node.type)) return /* @__PURE__ */ jsx(ChartNode, { node });
|
|
895
|
+
if (INPUT_TYPES.has(node.type)) return /* @__PURE__ */ jsx(InputNode, { node });
|
|
896
|
+
if (node.type === "State") return null;
|
|
897
|
+
if (VIEW_CONTROL_NODES.has(node.type)) return /* @__PURE__ */ jsx(ViewControl, { node });
|
|
898
|
+
if (node.type.includes(".")) return /* @__PURE__ */ jsx(ExtensionNode, { node });
|
|
899
|
+
switch (node.type) {
|
|
900
|
+
case "Stack": {
|
|
901
|
+
const horizontal = p.direction === "horizontal";
|
|
902
|
+
const gap = GAP[oneOf(p.gap, GAPS, "medium")];
|
|
903
|
+
const align = ALIGN[oneOf(p.align, [
|
|
904
|
+
"start",
|
|
905
|
+
"center",
|
|
906
|
+
"end",
|
|
907
|
+
"stretch"
|
|
908
|
+
], horizontal ? "center" : "stretch")];
|
|
909
|
+
return /* @__PURE__ */ jsx("div", {
|
|
910
|
+
className: `flex min-w-0 ${horizontal ? "flex-row" : "flex-col"} ${bool(p.wrap) ? "flex-wrap" : ""} ${gap} ${align}`,
|
|
911
|
+
children: /* @__PURE__ */ jsx(Children, { nodes: node.children })
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
case "Grid": {
|
|
915
|
+
const columns = Math.min(6, Math.max(1, Math.round(num(p.columns) ?? 2)));
|
|
916
|
+
const wide = node.children.some((child) => typeof child !== "string" && WIDE_TYPES.has(child.type));
|
|
917
|
+
const least = wide ? "22.5rem" : "8rem";
|
|
918
|
+
return /* @__PURE__ */ jsx("div", {
|
|
919
|
+
className: `grid min-w-0 ${GAP[oneOf(p.gap, GAPS, wide ? "large" : "medium")]}`,
|
|
920
|
+
style: { gridTemplateColumns: `repeat(auto-fit, minmax(min(100%, max(${least}, calc(100% / ${columns} - 1.5rem))), 1fr))` },
|
|
921
|
+
children: /* @__PURE__ */ jsx(Children, { nodes: node.children })
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
case "Panel": return /* @__PURE__ */ jsx(PanelNode, { node });
|
|
925
|
+
case "Headline": return /* @__PURE__ */ jsx(HeadlineNode, {
|
|
926
|
+
p,
|
|
927
|
+
nodes: node.children
|
|
928
|
+
});
|
|
929
|
+
case "Box": {
|
|
930
|
+
const tone = oneOf(p.tone, TONES, "neutral");
|
|
931
|
+
const inner = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
932
|
+
/* @__PURE__ */ jsx(Title, { text: str(p.title) }),
|
|
933
|
+
p.image !== void 0 ? /* @__PURE__ */ jsx(ViewImage, {
|
|
934
|
+
source: p.image,
|
|
935
|
+
alt: str(p.imageAlt) ?? ""
|
|
936
|
+
}) : null,
|
|
937
|
+
/* @__PURE__ */ jsx("div", {
|
|
938
|
+
className: "flex flex-col gap-2 min-w-0 text-zg-ui",
|
|
939
|
+
children: /* @__PURE__ */ jsx(Children, { nodes: node.children })
|
|
940
|
+
})
|
|
941
|
+
] });
|
|
942
|
+
return tone === "neutral" ? /* @__PURE__ */ jsx(Raised, {
|
|
943
|
+
radius: "md",
|
|
944
|
+
className: "px-4 py-3 min-w-0",
|
|
945
|
+
children: inner
|
|
946
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
947
|
+
className: "zg-callout-bar pl-3 py-0.5 min-w-0",
|
|
948
|
+
"data-tone": tone,
|
|
949
|
+
children: inner
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
case "Text": {
|
|
953
|
+
const tone = TEXT_TONE[oneOf(p.tone, [
|
|
954
|
+
"default",
|
|
955
|
+
"muted",
|
|
956
|
+
"info",
|
|
957
|
+
"success",
|
|
958
|
+
"warning",
|
|
959
|
+
"danger"
|
|
960
|
+
], "default")];
|
|
961
|
+
const size = {
|
|
962
|
+
small: "text-zg-label",
|
|
963
|
+
medium: "text-zg-body",
|
|
964
|
+
large: "text-zg-title"
|
|
965
|
+
}[oneOf(p.size, [
|
|
966
|
+
"small",
|
|
967
|
+
"medium",
|
|
968
|
+
"large"
|
|
969
|
+
], "medium")];
|
|
970
|
+
const said = boolText(textOf(node.children));
|
|
971
|
+
const content = said === void 0 ? /* @__PURE__ */ jsx(Children, { nodes: node.children }) : /* @__PURE__ */ jsx(BoolMark, { value: said });
|
|
972
|
+
return /* @__PURE__ */ jsx("p", {
|
|
973
|
+
className: `m-0 whitespace-pre-wrap break-words ${tone} ${size} ${p.weight === "bold" ? "font-semibold" : ""} ${bool(p.mono) ? "font-mono" : ""}`,
|
|
974
|
+
children: typeof p.href === "string" ? /* @__PURE__ */ jsx(ViewLink, {
|
|
975
|
+
href: p.href,
|
|
976
|
+
children: content
|
|
977
|
+
}) : content
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
case "Heading": {
|
|
981
|
+
const level = Math.min(4, Math.max(1, Math.round(num(p.level) ?? 2)));
|
|
982
|
+
return /* @__PURE__ */ jsx("div", {
|
|
983
|
+
role: "heading",
|
|
984
|
+
"aria-level": level + 1,
|
|
985
|
+
className: `m-0 text-[var(--zg-text)] ${HEADING[level - 1]}`,
|
|
986
|
+
children: /* @__PURE__ */ jsx(Children, { nodes: node.children })
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
case "Divider": {
|
|
990
|
+
const label = str(p.label);
|
|
991
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
992
|
+
role: "separator",
|
|
993
|
+
className: "flex items-center gap-2",
|
|
994
|
+
children: [
|
|
995
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 border-t border-[var(--zg-hairline)]" }),
|
|
996
|
+
label ? /* @__PURE__ */ jsx("span", {
|
|
997
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
998
|
+
children: label
|
|
999
|
+
}) : null,
|
|
1000
|
+
label ? /* @__PURE__ */ jsx("span", { className: "flex-1 border-t border-[var(--zg-hairline)]" }) : null
|
|
1001
|
+
]
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
case "Tabs":
|
|
1005
|
+
case "Accordion": return /* @__PURE__ */ jsx(PanelsNode, { node });
|
|
1006
|
+
case "StatRow": return /* @__PURE__ */ jsx(StatRow, {
|
|
1007
|
+
tiles: !inTile,
|
|
1008
|
+
children: node.children.filter((child) => typeof child !== "string" || child.trim() !== "").map((child, i) => /* @__PURE__ */ jsx(ViewNodeView, { node: child }, i))
|
|
1009
|
+
});
|
|
1010
|
+
case "Compare": return /* @__PURE__ */ jsx(CompareNode, { p });
|
|
1011
|
+
case "Breakdown": return /* @__PURE__ */ jsx(BreakdownNode, { p });
|
|
1012
|
+
case "Progress": return /* @__PURE__ */ jsx(LeadNode, { node });
|
|
1013
|
+
case "Checklist": return /* @__PURE__ */ jsx(ChecklistNode, { p });
|
|
1014
|
+
case "Diagram": return /* @__PURE__ */ jsx(DiagramNode, { p });
|
|
1015
|
+
case "Stat": return /* @__PURE__ */ jsx(LeadNode, { node });
|
|
1016
|
+
case "Delta": return /* @__PURE__ */ jsx(DeltaNode, { p });
|
|
1017
|
+
case "KeyValue": {
|
|
1018
|
+
const items = arr(p.rows).flatMap((row, i) => Array.isArray(row) ? [{
|
|
1019
|
+
id: String(i),
|
|
1020
|
+
label: str(row[0]) ?? "",
|
|
1021
|
+
value: /* @__PURE__ */ jsx(CellText, { value: row[1] })
|
|
1022
|
+
}] : []);
|
|
1023
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1024
|
+
className: "min-w-0",
|
|
1025
|
+
children: [/* @__PURE__ */ jsx(Title, { text: str(p.title) }), /* @__PURE__ */ jsx(KeyValue, {
|
|
1026
|
+
items,
|
|
1027
|
+
size: "ui"
|
|
1028
|
+
})]
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
case "Table": return /* @__PURE__ */ jsx(Suspense, {
|
|
1032
|
+
fallback: /* @__PURE__ */ jsx(PartSkeleton, { height: 120 }),
|
|
1033
|
+
children: /* @__PURE__ */ jsx(TablePart, { node })
|
|
1034
|
+
});
|
|
1035
|
+
case "Steps": {
|
|
1036
|
+
const items = arr(p.items).flatMap((item, i) => {
|
|
1037
|
+
if (!item || typeof item !== "object" || Array.isArray(item)) return [];
|
|
1038
|
+
const status = oneOf(item.status, [
|
|
1039
|
+
"done",
|
|
1040
|
+
"active",
|
|
1041
|
+
"pending",
|
|
1042
|
+
"failed",
|
|
1043
|
+
"skipped"
|
|
1044
|
+
], "pending");
|
|
1045
|
+
return [{
|
|
1046
|
+
id: String(i),
|
|
1047
|
+
title: str(item.title) ?? "",
|
|
1048
|
+
...str(item.detail) ? { detail: str(item.detail) } : {},
|
|
1049
|
+
status
|
|
1050
|
+
}];
|
|
1051
|
+
});
|
|
1052
|
+
return /* @__PURE__ */ jsx(Steps, { items });
|
|
1053
|
+
}
|
|
1054
|
+
case "Callout": return /* @__PURE__ */ jsx(Callout, {
|
|
1055
|
+
tone: oneOf(p.tone, TONES, "neutral"),
|
|
1056
|
+
variant: "bar",
|
|
1057
|
+
title: str(p.title),
|
|
1058
|
+
children: /* @__PURE__ */ jsx(Children, { nodes: node.children })
|
|
1059
|
+
});
|
|
1060
|
+
case "Badge": {
|
|
1061
|
+
const tone = oneOf(p.tone, TONES, "neutral");
|
|
1062
|
+
const badge = /* @__PURE__ */ jsx("span", {
|
|
1063
|
+
className: `inline-flex items-center rounded-full px-1.5 text-zg-meta font-medium ${BADGE_TONE[tone]}`,
|
|
1064
|
+
children: /* @__PURE__ */ jsx(Children, { nodes: node.children })
|
|
1065
|
+
});
|
|
1066
|
+
return typeof p.href === "string" ? /* @__PURE__ */ jsx(ViewLink, {
|
|
1067
|
+
href: p.href,
|
|
1068
|
+
children: badge
|
|
1069
|
+
}) : /* @__PURE__ */ jsx("span", { children: badge });
|
|
1070
|
+
}
|
|
1071
|
+
case "Code": return /* @__PURE__ */ jsxs("div", {
|
|
1072
|
+
className: "min-w-0",
|
|
1073
|
+
children: [/* @__PURE__ */ jsx(Title, { text: str(p.title) }), /* @__PURE__ */ jsx(HighlightedCode, {
|
|
1074
|
+
code: str(p.code) ?? textOf(node.children),
|
|
1075
|
+
language: str(p.language) ?? "plaintext"
|
|
1076
|
+
})]
|
|
1077
|
+
});
|
|
1078
|
+
case "Diff": {
|
|
1079
|
+
const patch = str(p.patch);
|
|
1080
|
+
const lines = patch !== void 0 ? patchLines(patch) : computeLineDiff(str(p.before) ?? "", str(p.after) ?? "");
|
|
1081
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
1082
|
+
className: "min-w-0",
|
|
1083
|
+
children: [/* @__PURE__ */ jsx(Title, { text: str(p.title) }), /* @__PURE__ */ jsx(DiffLines, {
|
|
1084
|
+
lines,
|
|
1085
|
+
maxHeight: 360,
|
|
1086
|
+
className: "rounded-zg-md"
|
|
1087
|
+
})]
|
|
1088
|
+
});
|
|
1089
|
+
}
|
|
1090
|
+
case "Refresh": return null;
|
|
1091
|
+
case "Source": return null;
|
|
1092
|
+
case "View": return /* @__PURE__ */ jsx(PlacedNode, { node });
|
|
1093
|
+
case "Custom": return /* @__PURE__ */ jsx(CustomNode, { node });
|
|
1094
|
+
case MCP_APP_NODE_TYPE: return /* @__PURE__ */ jsx(McpAppNode, { node });
|
|
1095
|
+
case "svg": return typeof p.markup === "string" ? /* @__PURE__ */ jsx(SvgImage, { markup: p.markup }) : /* @__PURE__ */ jsx(UnknownNode, { node });
|
|
1096
|
+
default: return /* @__PURE__ */ jsx(UnknownNode, { node });
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
/**
|
|
1100
|
+
* Draws top-level view nodes in a column.
|
|
1101
|
+
*
|
|
1102
|
+
* @param props - {@link ViewNodesProps}.
|
|
1103
|
+
*/
|
|
1104
|
+
const ViewNodes = memo(({ nodes, scope, custom, frameTitle }) => {
|
|
1105
|
+
const skipFirst = headingSays(nodes[0], frameTitle);
|
|
1106
|
+
const lead = useMemo(() => {
|
|
1107
|
+
const node = nodes[0];
|
|
1108
|
+
if (skipFirst || !node || typeof node === "string" || node.type !== "Stack") return node;
|
|
1109
|
+
const at = node.children.findIndex((child) => !isBlank(child));
|
|
1110
|
+
return at >= 0 && headingSays(node.children[at], frameTitle) ? {
|
|
1111
|
+
...node,
|
|
1112
|
+
children: node.children.map((child, i) => i === at ? "" : child)
|
|
1113
|
+
} : node;
|
|
1114
|
+
}, [
|
|
1115
|
+
nodes,
|
|
1116
|
+
skipFirst,
|
|
1117
|
+
frameTitle
|
|
1118
|
+
]);
|
|
1119
|
+
const layout = useMemo(() => viewLayoutOf(nodes), [nodes]);
|
|
1120
|
+
let body = /* @__PURE__ */ jsx(LayoutContext.Provider, {
|
|
1121
|
+
value: layout,
|
|
1122
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
1123
|
+
className: "flex flex-col gap-6 min-w-0",
|
|
1124
|
+
"data-zg-view-nodes": "",
|
|
1125
|
+
children: withLeads(nodes).map(({ i, node, lead: control }) => i === 0 ? skipFirst ? null : /* @__PURE__ */ jsx(ViewNodeView, { node: lead }, i) : control && typeof node !== "string" ? /* @__PURE__ */ jsx(LedTable, {
|
|
1126
|
+
node,
|
|
1127
|
+
lead: control
|
|
1128
|
+
}, i) : /* @__PURE__ */ jsx(ViewNodeView, { node }, i))
|
|
1129
|
+
})
|
|
1130
|
+
});
|
|
1131
|
+
if (custom) body = /* @__PURE__ */ jsx(CustomScopeContext.Provider, {
|
|
1132
|
+
value: custom,
|
|
1133
|
+
children: body
|
|
1134
|
+
});
|
|
1135
|
+
return scope ? /* @__PURE__ */ jsx(ScopeContext.Provider, {
|
|
1136
|
+
value: scope,
|
|
1137
|
+
children: body
|
|
1138
|
+
}) : body;
|
|
1139
|
+
});
|
|
1140
|
+
ViewNodes.displayName = "ViewNodes";
|
|
1141
|
+
function Children({ nodes }) {
|
|
1142
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: withLeads(nodes).map(({ i, node, lead }) => lead && typeof node !== "string" ? /* @__PURE__ */ jsx(LedTable, {
|
|
1143
|
+
node,
|
|
1144
|
+
lead
|
|
1145
|
+
}, i) : /* @__PURE__ */ jsx(ViewNodeView, { node }, i)) });
|
|
1146
|
+
}
|
|
1147
|
+
/** Tabs and Accordion: item n holds child n (blank text children skipped). */
|
|
1148
|
+
function PanelsNode({ node }) {
|
|
1149
|
+
const panels = node.children.filter((child) => typeof child !== "string" || child.trim() !== "");
|
|
1150
|
+
const items = arr(node.props.items).map((item, i) => {
|
|
1151
|
+
const o = item && typeof item === "object" && !Array.isArray(item) ? item : {};
|
|
1152
|
+
const child = panels[i];
|
|
1153
|
+
return {
|
|
1154
|
+
id: String(i),
|
|
1155
|
+
title: str(o.title) ?? "",
|
|
1156
|
+
label: str(o.label) ?? "",
|
|
1157
|
+
open: bool(o.open),
|
|
1158
|
+
content: child === void 0 ? null : /* @__PURE__ */ jsx(ViewNodeView, { node: child })
|
|
1159
|
+
};
|
|
1160
|
+
});
|
|
1161
|
+
if (node.type === "Tabs") return /* @__PURE__ */ jsx(Tabs, { items: items.map(({ id, label, content }) => ({
|
|
1162
|
+
id,
|
|
1163
|
+
label,
|
|
1164
|
+
content
|
|
1165
|
+
})) });
|
|
1166
|
+
return /* @__PURE__ */ jsx(Accordion, { items: items.map(({ id, title, open, content }) => ({
|
|
1167
|
+
id,
|
|
1168
|
+
title,
|
|
1169
|
+
content,
|
|
1170
|
+
...open ? { defaultOpen: true } : {}
|
|
1171
|
+
})) });
|
|
1172
|
+
}
|
|
1173
|
+
export { CustomShotImage, CustomStatic, PartSkeleton, ViewNodeView, ViewNodes, customShotOf, hasSessionAction, textOf, themedCustomShots, useViewCustomScope, viewLayoutOf, viewNodeDraws, viewParts };
|