zidane-ui 9.4.0 → 9.5.0
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/dist/adapters/index.d.ts +2 -1
- package/dist/adapters/index.js +2 -1
- package/dist/adapters/live.d.ts +7 -2
- package/dist/adapters/live.js +5 -2
- package/dist/adapters/server-approvals-host.js +3 -1
- package/dist/adapters/server-channels-host.d.ts +32 -0
- package/dist/adapters/server-channels-host.js +49 -0
- package/dist/adapters/server-composer-host.js +13 -0
- package/dist/adapters/server-files-host.js +12 -31
- package/dist/adapters/server-host.js +27 -3
- package/dist/adapters/server-machines-host.d.ts +5 -0
- package/dist/adapters/server-machines-host.js +13 -6
- package/dist/adapters/server-oauth-flow.d.ts +2 -1
- package/dist/adapters/server-projects.d.ts +15 -0
- package/dist/adapters/server-projects.js +225 -0
- package/dist/adapters/server-session-host.d.ts +2 -0
- package/dist/adapters/server-session-host.js +20 -1
- package/dist/app/AppHostProvider.d.ts +1 -1
- package/dist/app/AppHostProvider.js +7 -2
- package/dist/app/ModalProvider.d.ts +6 -2
- package/dist/app/ModalProvider.js +38 -10
- package/dist/app/headless/app-host.d.ts +3 -0
- package/dist/approvals/ApprovalsProvider.d.ts +2 -1
- package/dist/approvals/ApprovalsProvider.js +12 -4
- package/dist/approvals/headless/host.d.ts +13 -2
- package/dist/approvals/headless/index.d.ts +3 -3
- package/dist/approvals/headless/index.js +2 -2
- package/dist/approvals/headless/labels.d.ts +12 -2
- package/dist/approvals/headless/labels.js +19 -1
- package/dist/channels/BindingEditorDialog.d.ts +18 -0
- package/dist/channels/BindingEditorDialog.js +637 -0
- package/dist/channels/ChannelAlertsList.d.ts +25 -0
- package/dist/channels/ChannelAlertsList.js +107 -0
- package/dist/channels/ChannelDefaultsSection.d.ts +20 -0
- package/dist/channels/ChannelDefaultsSection.js +133 -0
- package/dist/channels/ChannelsProvider.d.ts +31 -0
- package/dist/channels/ChannelsProvider.js +29 -0
- package/dist/channels/ChannelsSettingsSection.d.ts +40 -0
- package/dist/channels/ChannelsSettingsSection.js +456 -0
- package/dist/channels/ConnectionSetupDialog.d.ts +16 -0
- package/dist/channels/ConnectionSetupDialog.js +470 -0
- package/dist/channels/HeldRepliesList.d.ts +27 -0
- package/dist/channels/HeldRepliesList.js +173 -0
- package/dist/channels/ProjectChannelsSection.d.ts +55 -0
- package/dist/channels/ProjectChannelsSection.js +433 -0
- package/dist/channels/ReadinessChecklist.d.ts +102 -0
- package/dist/channels/ReadinessChecklist.js +273 -0
- package/dist/channels/TestSessionBanner.d.ts +24 -0
- package/dist/channels/TestSessionBanner.js +44 -0
- package/dist/channels/channels-parts.d.ts +104 -0
- package/dist/channels/channels-parts.js +203 -0
- package/dist/channels/context.d.ts +9 -0
- package/dist/channels/context.js +14 -0
- package/dist/channels/headless/access.d.ts +127 -0
- package/dist/channels/headless/access.js +187 -0
- package/dist/channels/headless/fixture-host.d.ts +83 -0
- package/dist/channels/headless/fixture-host.js +557 -0
- package/dist/channels/headless/host.d.ts +245 -0
- package/dist/channels/headless/host.js +39 -0
- package/dist/channels/headless/index.d.ts +10 -0
- package/dist/channels/headless/index.js +5 -0
- package/dist/channels/headless/labels.d.ts +217 -0
- package/dist/channels/headless/labels.js +260 -0
- package/dist/channels/headless/state.d.ts +22 -0
- package/dist/channels/headless/state.js +303 -0
- package/dist/channels/index.d.ts +21 -0
- package/dist/channels/index.js +13 -0
- package/dist/channels/testing/contract.d.ts +31 -0
- package/dist/channels/testing/contract.js +378 -0
- package/dist/channels/testing/index.d.ts +7 -0
- package/dist/channels/testing/index.js +1 -0
- package/dist/chat/HostBadge.js +1 -0
- package/dist/chat/OrchestratorBadge.d.ts +23 -0
- package/dist/chat/OrchestratorBadge.js +22 -0
- package/dist/chat/SessionGroupHeader.d.ts +11 -1
- package/dist/chat/SessionGroupHeader.js +25 -14
- package/dist/chat/SessionRow.d.ts +141 -0
- package/dist/chat/SessionRow.js +215 -0
- package/dist/chat/StatusDot.d.ts +7 -2
- package/dist/chat/StatusDot.js +3 -2
- package/dist/chat/composer/ContextBreakdown.d.ts +27 -2
- package/dist/chat/composer/ContextBreakdown.js +123 -2
- package/dist/chat/composer/DraftPickers.js +2 -0
- package/dist/chat/composer/HostContextOrb.d.ts +2 -0
- package/dist/chat/composer/HostContextOrb.js +17 -2
- package/dist/chat/composer/ProjectMenu.d.ts +16 -3
- package/dist/chat/composer/ProjectMenu.js +102 -20
- package/dist/chat/composer/ScopeToggle.d.ts +3 -1
- package/dist/chat/composer/ScopeToggle.js +2 -1
- package/dist/chat/composer/ServerScopeToggle.d.ts +3 -1
- package/dist/chat/composer/ServerScopeToggle.js +2 -1
- package/dist/chat/composer/index.d.ts +2 -2
- package/dist/chat/composer/index.js +2 -2
- package/dist/chat/composer/use-draft-target.d.ts +5 -0
- package/dist/chat/composer/use-draft-target.js +3 -0
- package/dist/chat/composer/use-send-prompt.d.ts +2 -0
- package/dist/chat/composer/use-send-prompt.js +4 -1
- package/dist/chat/headless/answered-first.d.ts +28 -0
- package/dist/chat/headless/answered-first.js +14 -0
- package/dist/chat/headless/chip-labels.d.ts +2 -0
- package/dist/chat/headless/chip-labels.js +2 -0
- package/dist/chat/headless/composer/composer-sources.d.ts +5 -2
- package/dist/chat/headless/composer/composer-sources.js +6 -0
- package/dist/chat/headless/composer/host.d.ts +13 -0
- package/dist/chat/headless/composer/index.d.ts +2 -2
- package/dist/chat/headless/composer/labels-chrome.d.ts +3 -0
- package/dist/chat/headless/composer/labels-chrome.js +4 -1
- package/dist/chat/headless/composer/labels-editor.d.ts +2 -0
- package/dist/chat/headless/composer/labels-editor.js +2 -0
- package/dist/chat/headless/draft-target.d.ts +2 -0
- package/dist/chat/headless/folder-groups.d.ts +41 -0
- package/dist/chat/headless/folder-groups.js +76 -0
- package/dist/chat/headless/host.d.ts +16 -1
- package/dist/chat/headless/hosts.d.ts +1 -1
- package/dist/chat/headless/index.d.ts +10 -6
- package/dist/chat/headless/index.js +30 -26
- package/dist/chat/headless/labels.d.ts +34 -4
- package/dist/chat/headless/labels.js +28 -6
- package/dist/chat/headless/prompt-origin.d.ts +2 -2
- package/dist/chat/headless/prompt-origin.js +3 -3
- package/dist/chat/headless/send-flow.d.ts +2 -0
- package/dist/chat/headless/session-list.d.ts +28 -2
- package/dist/chat/headless/sidebar/directory.d.ts +5 -0
- package/dist/chat/headless/sidebar/directory.js +2 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +13 -3
- package/dist/chat/headless/sidebar/inbox.js +40 -19
- package/dist/chat/headless/sidebar/index.d.ts +5 -3
- package/dist/chat/headless/sidebar/index.js +4 -2
- package/dist/chat/headless/sidebar/labels.d.ts +30 -7
- package/dist/chat/headless/sidebar/labels.js +0 -3
- package/dist/chat/headless/sidebar/project-main.d.ts +43 -0
- package/dist/chat/headless/sidebar/project-main.js +46 -0
- package/dist/chat/headless/sidebar/row-changes.d.ts +43 -0
- package/dist/chat/headless/sidebar/row-changes.js +43 -0
- package/dist/chat/headless/sidebar/rows.d.ts +2 -1
- package/dist/chat/headless/sidebar/rows.js +7 -3
- package/dist/chat/headless/sidebar/types.d.ts +12 -0
- package/dist/chat/headless/streams/live-events.d.ts +12 -0
- package/dist/chat/headless/streams/live-events.js +21 -2
- package/dist/chat/headless/streams/store.d.ts +17 -0
- package/dist/chat/headless/streams/store.js +38 -15
- package/dist/chat/headless/streams/types.d.ts +2 -1
- package/dist/chat/headless/transcript/collapse.js +3 -1
- package/dist/chat/headless/transcript/rail.d.ts +8 -1
- package/dist/chat/headless/transcript/rail.js +9 -2
- package/dist/chat/headless/transcript/rows.d.ts +5 -1
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/index.d.ts +5 -3
- package/dist/chat/index.js +7 -5
- package/dist/chat/interactions/HostInteractions.js +4 -2
- package/dist/chat/interactions/InboxPanel.js +6 -4
- package/dist/chat/interactions/use-answer-interaction.d.ts +11 -0
- package/dist/chat/interactions/use-answer-interaction.js +19 -0
- package/dist/chat/rich-composer/artifact-mentions.d.ts +29 -0
- package/dist/chat/rich-composer/artifact-mentions.js +40 -0
- package/dist/chat/rich-composer/composer-extensions.d.ts +3 -2
- package/dist/chat/rich-composer/composer-extensions.js +12 -9
- package/dist/chat/rich-composer/use-composer-sources.js +1 -0
- package/dist/chat/sidebar/InboxList.d.ts +13 -2
- package/dist/chat/sidebar/InboxList.js +44 -48
- package/dist/chat/sidebar/MainSessionRow.d.ts +2 -1
- package/dist/chat/sidebar/MainSessionRow.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +8 -4
- package/dist/chat/sidebar/ProjectIcon.js +15 -3
- package/dist/chat/sidebar/SessionSidebar.d.ts +41 -0
- package/dist/chat/sidebar/SessionSidebar.js +63 -13
- package/dist/chat/sidebar/SidebarFooter.d.ts +2 -23
- package/dist/chat/sidebar/SidebarFooter.js +2 -43
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +7 -3
- package/dist/chat/sidebar/SidebarGroupHeader.js +15 -10
- package/dist/chat/sidebar/SidebarLiveProvider.d.ts +22 -0
- package/dist/chat/sidebar/SidebarLiveProvider.js +20 -0
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +6 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +16 -7
- package/dist/chat/sidebar/inbox-triage.d.ts +18 -2
- package/dist/chat/sidebar/inbox-triage.js +39 -12
- package/dist/chat/sidebar/index.d.ts +5 -4
- package/dist/chat/sidebar/index.js +3 -2
- package/dist/chat/sidebar/sidebar-live.d.ts +29 -2
- package/dist/chat/sidebar/sidebar-live.js +36 -2
- package/dist/chat/sidebar/useInboxRows.js +2 -3
- package/dist/chat/sidebar/useInboxTriage.d.ts +5 -2
- package/dist/chat/sidebar/useInboxTriage.js +28 -20
- package/dist/chat/testing/fixture-composer-host.d.ts +3 -1
- package/dist/chat/testing/fixture-composer-host.js +1 -0
- package/dist/chat/transcript/PromptEcho.js +15 -2
- package/dist/chat/transcript/PromptOriginLabel.d.ts +1 -1
- package/dist/chat/transcript/TranscriptRail.d.ts +3 -1
- package/dist/chat/transcript/TranscriptRail.js +12 -2
- package/dist/chat/transcript/TranscriptRow.js +1 -0
- package/dist/chat/transcript/badges.d.ts +1 -0
- package/dist/chat/transcript/badges.js +1 -0
- package/dist/chat/transcript/fold.js +2 -1
- package/dist/chat/transcript/index.d.ts +2 -2
- package/dist/chat/transcript/index.js +2 -2
- package/dist/chat/transcript/inline-facts.d.ts +9 -0
- package/dist/chat/transcript/inline-facts.js +20 -0
- package/dist/chat/transcript/notices.d.ts +25 -3
- package/dist/chat/transcript/notices.js +136 -17
- package/dist/chat/transcript/prompt.js +8 -1
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/tasks.d.ts +1 -1
- package/dist/chat/transcript/tasks.js +1 -1
- package/dist/chat/transcript/tool-row.js +3 -2
- package/dist/code/editor/FileView.js +1 -3
- package/dist/components/Form.d.ts +28 -1
- package/dist/components/Form.js +43 -7
- package/dist/components/HelpTip.d.ts +22 -0
- package/dist/components/HelpTip.js +26 -0
- package/dist/components/Menu.js +1 -1
- package/dist/components/Notice.d.ts +6 -4
- package/dist/components/Notice.js +73 -27
- package/dist/components/Progress.js +10 -4
- package/dist/components/SearchField.d.ts +46 -0
- package/dist/components/SearchField.js +50 -0
- package/dist/components/ShowMore.d.ts +48 -0
- package/dist/components/ShowMore.js +57 -0
- package/dist/components/Tooltip.js +8 -5
- package/dist/components/charts/ScatterChart.js +13 -6
- package/dist/components/floating/FloatingSurface.js +2 -2
- package/dist/components/floating/useAnchoredPosition.d.ts +15 -1
- package/dist/components/floating/useAnchoredPosition.js +41 -7
- package/dist/components/palette/PaletteList.d.ts +5 -5
- package/dist/components/palette/PaletteList.js +2 -3
- package/dist/components/palette/PalettePanel.js +18 -12
- package/dist/components/palette/palette-layout.d.ts +5 -1
- package/dist/components/palette/palette-layout.js +13 -10
- package/dist/core.css +45 -20
- package/dist/dist/index-BmO8bRgK.d.ts +1 -0
- package/dist/dist/{index-BheVJOLc.d.ts → index-Bsp5Ku7r.d.ts} +264 -134
- package/dist/dist/index.d.ts +5 -5
- package/dist/dist/sandbox-Bzg_jJK2.d.ts +2 -0
- package/dist/dist/{timeout-CmTx6V9y.d.ts → timeout-NoG7ppkm.d.ts} +1 -1
- package/dist/files/FilesProvider.d.ts +2 -0
- package/dist/files/FilesProvider.js +5 -1
- package/dist/files/headless/host.d.ts +6 -2
- package/dist/files/index.d.ts +2 -2
- package/dist/files/index.js +2 -2
- package/dist/git/GitBar.js +8 -2
- package/dist/git/MoveSessionDialog.js +8 -5
- package/dist/git/MoveToDialog.d.ts +3 -1
- package/dist/git/MoveToDialog.js +43 -16
- package/dist/git/TeleportSessionDialog.d.ts +11 -4
- package/dist/git/TeleportSessionDialog.js +263 -107
- package/dist/git/WherePicker.js +4 -1
- package/dist/git/headless/labels.d.ts +8 -0
- package/dist/git/headless/labels.js +24 -16
- package/dist/git/index.d.ts +2 -2
- package/dist/git/index.js +2 -2
- package/dist/git/useEnvironmentChoices.d.ts +19 -0
- package/dist/git/useEnvironmentChoices.js +34 -10
- package/dist/hooks/useLastCount.d.ts +9 -0
- package/dist/hooks/useLastCount.js +29 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +7 -3
- package/dist/keybindings/headless/overrides.d.ts +1 -1
- package/dist/keybindings/headless/overrides.js +14 -3
- package/dist/labels.d.ts +7 -0
- package/dist/labels.js +10 -3
- package/dist/machines/AddMachineDialog.js +1 -1
- package/dist/machines/AddServerForm.d.ts +14 -2
- package/dist/machines/AddServerForm.js +167 -51
- package/dist/machines/HostCapabilities.js +8 -4
- package/dist/machines/HostSignIn.d.ts +2 -1
- package/dist/machines/HostSignIn.js +1 -0
- package/dist/machines/HostSyncPanel.d.ts +4 -1
- package/dist/machines/HostSyncPanel.js +248 -132
- package/dist/machines/HostsSection.d.ts +2 -2
- package/dist/machines/HostsSection.js +91 -52
- package/dist/machines/LinkedAccountsPanel.d.ts +29 -0
- package/dist/machines/LinkedAccountsPanel.js +268 -0
- package/dist/machines/MachinesExplainer.d.ts +4 -4
- package/dist/machines/MachinesExplainer.js +27 -17
- package/dist/machines/OrganizationPanel.d.ts +12 -5
- package/dist/machines/OrganizationPanel.js +420 -133
- package/dist/machines/ProjectsSpendPanel.d.ts +22 -0
- package/dist/machines/ProjectsSpendPanel.js +160 -0
- package/dist/machines/ServerMachinesPanel.js +19 -4
- package/dist/machines/ServerUpdatePanel.js +3 -3
- package/dist/machines/SyncAccounts.d.ts +14 -7
- package/dist/machines/SyncAccounts.js +67 -81
- package/dist/machines/TokensPanel.js +54 -30
- package/dist/machines/headless/fixture-host.d.ts +15 -10
- package/dist/machines/headless/fixture-host.js +75 -44
- package/dist/machines/headless/fixtures.d.ts +12 -0
- package/dist/machines/headless/fixtures.js +71 -1
- package/dist/machines/headless/host.d.ts +13 -9
- package/dist/machines/headless/index.d.ts +3 -3
- package/dist/machines/headless/index.js +2 -2
- package/dist/machines/headless/labels.d.ts +81 -40
- package/dist/machines/headless/labels.js +103 -60
- package/dist/machines/headless/linked-accounts.d.ts +42 -0
- package/dist/machines/headless/linked-accounts.js +31 -0
- package/dist/machines/headless/organization.d.ts +9 -3
- package/dist/machines/headless/organization.js +12 -2
- package/dist/machines/headless/sync.d.ts +2 -0
- package/dist/machines/index.d.ts +3 -2
- package/dist/machines/index.js +3 -2
- package/dist/machines/sync-rows.d.ts +8 -0
- package/dist/machines/sync-rows.js +10 -0
- package/dist/machines/testing/contract.d.ts +1 -25
- package/dist/machines/testing/contract.js +1 -97
- package/dist/machines/testing/index.d.ts +3 -3
- package/dist/machines/testing/index.js +2 -2
- package/dist/onboarding/demos/extensions.d.ts +4 -0
- package/dist/onboarding/demos/extensions.js +27 -1
- package/dist/onboarding/demos/sidebar-layout.d.ts +4 -2
- package/dist/onboarding/demos/sidebar-layout.js +5 -2
- package/dist/onboarding/headless/labels.d.ts +9 -0
- package/dist/onboarding/headless/labels.js +2 -0
- package/dist/onboarding/steps/SidebarStep.js +4 -2
- package/dist/onboarding/steps/setting-cards.d.ts +4 -2
- package/dist/onboarding/steps/setting-cards.js +3 -2
- package/dist/palette/PaletteDialog.js +4 -4
- package/dist/palette/PaletteRows.js +34 -16
- package/dist/palette/headless/app-sources.js +3 -1
- package/dist/palette/headless/labels.js +2 -2
- package/dist/palette/usePaletteController.js +4 -8
- package/dist/session/ArtifactsPanel.js +11 -23
- package/dist/session/NewProjectDialog.d.ts +33 -0
- package/dist/session/NewProjectDialog.js +216 -0
- package/dist/session/OpenProjectsDialog.d.ts +56 -0
- package/dist/session/OpenProjectsDialog.js +324 -0
- package/dist/session/OpenSessionsDialog.js +186 -61
- package/dist/session/ProjectArtifactsHome.d.ts +42 -0
- package/dist/session/ProjectArtifactsHome.js +98 -0
- package/dist/session/ProjectArtifactsSection.d.ts +13 -0
- package/dist/session/ProjectArtifactsSection.js +367 -0
- package/dist/session/ProjectBudgetsSection.d.ts +7 -0
- package/dist/session/ProjectBudgetsSection.js +377 -0
- package/dist/session/ProjectContextSection.d.ts +20 -0
- package/dist/session/ProjectContextSection.js +139 -0
- package/dist/session/ProjectHome.d.ts +32 -5
- package/dist/session/ProjectHome.js +496 -249
- package/dist/session/ProjectInstructionsSection.d.ts +7 -0
- package/dist/session/ProjectInstructionsSection.js +179 -0
- package/dist/session/ProjectMainButton.d.ts +35 -0
- package/dist/session/ProjectMainButton.js +73 -0
- package/dist/session/ProjectName.d.ts +76 -0
- package/dist/session/ProjectName.js +140 -0
- package/dist/session/ProjectOrchestratorSection.d.ts +14 -0
- package/dist/session/ProjectOrchestratorSection.js +117 -0
- package/dist/session/ProjectPublishDialog.d.ts +30 -0
- package/dist/session/ProjectPublishDialog.js +420 -0
- package/dist/session/ProjectSessionAccessSection.d.ts +13 -0
- package/dist/session/ProjectSessionAccessSection.js +109 -0
- package/dist/session/ProjectSessionsList.d.ts +53 -0
- package/dist/session/ProjectSessionsList.js +316 -0
- package/dist/session/ProjectSettingsDialog.d.ts +30 -0
- package/dist/session/ProjectSettingsDialog.js +693 -0
- package/dist/session/ProjectShareDialog.d.ts +36 -0
- package/dist/session/ProjectShareDialog.js +190 -0
- package/dist/session/ProjectSkillsSection.d.ts +7 -0
- package/dist/session/ProjectSkillsSection.js +197 -0
- package/dist/session/ProjectToolsSection.d.ts +16 -0
- package/dist/session/ProjectToolsSection.js +347 -0
- package/dist/session/ProjectUsage.d.ts +61 -0
- package/dist/session/ProjectUsage.js +344 -0
- package/dist/session/ProviderUsageProvider.d.ts +2 -3
- package/dist/session/QueueTab.js +11 -1
- package/dist/session/SessionAccessNotice.d.ts +31 -0
- package/dist/session/SessionAccessNotice.js +69 -0
- package/dist/session/SessionDetailsDialog.d.ts +3 -1
- package/dist/session/SessionDetailsDialog.js +16 -1
- package/dist/session/SessionHeader.d.ts +10 -3
- package/dist/session/SessionHeader.js +19 -7
- package/dist/session/SessionPeopleStack.d.ts +3 -2
- package/dist/session/SessionPeopleStack.js +51 -17
- package/dist/session/SessionPlaceMenu.js +2 -2
- package/dist/session/SessionProvider.d.ts +13 -1
- package/dist/session/SessionProvider.js +21 -1
- package/dist/session/ShareSessionDialog.d.ts +4 -4
- package/dist/session/ShareSessionDialog.js +182 -283
- package/dist/session/TypingLine.d.ts +9 -4
- package/dist/session/TypingLine.js +16 -5
- package/dist/session/{UsagePanel.d.ts → UsageSection.d.ts} +9 -13
- package/dist/session/{UsagePanel.js → UsageSection.js} +40 -41
- package/dist/session/artifact-row-parts.d.ts +32 -0
- package/dist/session/artifact-row-parts.js +51 -0
- package/dist/session/headless/access.d.ts +33 -0
- package/dist/session/headless/access.js +48 -0
- package/dist/session/headless/fixture-host.d.ts +48 -9
- package/dist/session/headless/fixture-host.js +139 -1
- package/dist/session/headless/fixture-project-artifacts.d.ts +77 -0
- package/dist/session/headless/fixture-project-artifacts.js +168 -0
- package/dist/session/headless/fixture-project-content.d.ts +67 -0
- package/dist/session/headless/fixture-project-content.js +176 -0
- package/dist/session/headless/fixture-projects.d.ts +175 -0
- package/dist/session/headless/fixture-projects.js +498 -0
- package/dist/session/headless/home-layout.d.ts +18 -2
- package/dist/session/headless/home-layout.js +20 -7
- package/dist/session/headless/host.d.ts +263 -7
- package/dist/session/headless/index.d.ts +10 -5
- package/dist/session/headless/index.js +8 -3
- package/dist/session/headless/labels.d.ts +381 -6
- package/dist/session/headless/labels.js +72 -24
- package/dist/session/headless/orchestration-labels.d.ts +52 -0
- package/dist/session/headless/orchestration-labels.js +59 -0
- package/dist/session/headless/project-artifact-labels.d.ts +67 -0
- package/dist/session/headless/project-artifact-labels.js +96 -0
- package/dist/session/headless/project-artifacts.d.ts +124 -0
- package/dist/session/headless/project-artifacts.js +271 -0
- package/dist/session/headless/project-content-labels.d.ts +88 -0
- package/dist/session/headless/project-content-labels.js +152 -0
- package/dist/session/headless/project-labels.d.ts +123 -0
- package/dist/session/headless/project-labels.js +128 -0
- package/dist/session/headless/project-sessions.d.ts +37 -0
- package/dist/session/headless/project-sessions.js +57 -0
- package/dist/session/headless/project-usage-labels.d.ts +74 -0
- package/dist/session/headless/project-usage-labels.js +81 -0
- package/dist/session/headless/project-usage.d.ts +65 -0
- package/dist/session/headless/project-usage.js +92 -0
- package/dist/session/headless/projects.d.ts +158 -0
- package/dist/session/headless/projects.js +301 -0
- package/dist/session/headless/pushed-once.d.ts +22 -0
- package/dist/session/headless/pushed-once.js +28 -0
- package/dist/session/headless/queue.js +2 -1
- package/dist/session/headless/typing.d.ts +20 -1
- package/dist/session/headless/typing.js +58 -3
- package/dist/session/home-block-parts.d.ts +40 -0
- package/dist/session/home-block-parts.js +46 -0
- package/dist/session/index.d.ts +17 -4
- package/dist/session/index.js +16 -3
- package/dist/session/modal-shell.d.ts +1 -1
- package/dist/session/modal-shell.js +1 -1
- package/dist/session/project-artifact-parts.d.ts +59 -0
- package/dist/session/project-artifact-parts.js +222 -0
- package/dist/session/project-content-parts.d.ts +176 -0
- package/dist/session/project-content-parts.js +546 -0
- package/dist/session/project-files.d.ts +48 -0
- package/dist/session/project-files.js +54 -0
- package/dist/session/project-folder-actions.d.ts +11 -0
- package/dist/session/project-folder-actions.js +39 -0
- package/dist/session/project-mcp-add.d.ts +23 -0
- package/dist/session/project-mcp-add.js +107 -0
- package/dist/session/project-record-document.d.ts +48 -0
- package/dist/session/project-record-document.js +225 -0
- package/dist/session/project-settings-parts.d.ts +69 -0
- package/dist/session/project-settings-parts.js +90 -0
- package/dist/session/share-people.d.ts +222 -0
- package/dist/session/share-people.js +457 -0
- package/dist/session/testing/contract.d.ts +67 -8
- package/dist/session/testing/contract.js +343 -6
- package/dist/session/testing/index.d.ts +5 -2
- package/dist/session/testing/index.js +4 -1
- package/dist/session/testing/project-artifacts.contract.js +159 -0
- package/dist/session/testing/project-content.contract.d.ts +19 -0
- package/dist/session/testing/project-content.contract.js +221 -0
- package/dist/session/testing/project-sessions.contract.js +134 -0
- package/dist/session/use-folder-missing.d.ts +6 -0
- package/dist/session/use-folder-missing.js +31 -0
- package/dist/session/use-folder-project.d.ts +14 -0
- package/dist/session/use-folder-project.js +37 -0
- package/dist/session/use-home-projects.d.ts +48 -0
- package/dist/session/use-home-projects.js +118 -0
- package/dist/session/use-project-home-layout.d.ts +33 -0
- package/dist/session/use-project-home-layout.js +134 -0
- package/dist/session/use-project-home-on.d.ts +2 -0
- package/dist/session/use-project-home-on.js +14 -0
- package/dist/settings/SettingCard.d.ts +3 -1
- package/dist/settings/SettingCard.js +2 -1
- package/dist/settings/SettingDemo.d.ts +3 -1
- package/dist/settings/SettingDemo.js +4 -3
- package/dist/settings/SettingsShell.d.ts +2 -1
- package/dist/settings/SettingsShell.js +55 -43
- package/dist/settings/headless/index.d.ts +2 -1
- package/dist/settings/headless/index.js +2 -1
- package/dist/settings/headless/mcp-requirement.d.ts +93 -0
- package/dist/settings/headless/mcp-requirement.js +116 -0
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +5 -4
- package/dist/settings/section.d.ts +9 -0
- package/dist/settings/section.js +12 -1
- package/dist/settings/sections/editor/labels.js +1 -1
- package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +6 -2
- package/dist/settings/sections/extensions/ExtensionConfigRows.js +10 -1
- package/dist/settings/sections/extensions/ExtensionOptionsSection.js +1 -0
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +6 -3
- package/dist/settings/sections/extensions/ExtensionsSection.js +24 -3
- package/dist/settings/sections/extensions/McpRequirementRow.d.ts +45 -0
- package/dist/settings/sections/extensions/McpRequirementRow.js +298 -0
- package/dist/settings/sections/extensions/labels.d.ts +4 -0
- package/dist/settings/sections/extensions/labels.js +4 -0
- package/dist/settings/sections/extensions/options-labels.d.ts +39 -0
- package/dist/settings/sections/extensions/options-labels.js +48 -1
- package/dist/settings/sections/extensions/use-mcp-setup.d.ts +6 -0
- package/dist/settings/sections/extensions/use-mcp-setup.js +41 -0
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +3 -0
- package/dist/settings/sections/index.d.ts +4 -3
- package/dist/settings/sections/index.js +4 -3
- package/dist/settings/sections/instructions/InstructionsSection.d.ts +69 -1
- package/dist/settings/sections/instructions/InstructionsSection.js +181 -109
- package/dist/settings/sections/mcp/McpAddForm.d.ts +9 -2
- package/dist/settings/sections/mcp/McpAddForm.js +15 -7
- package/dist/settings/sections/mcp/McpServerRow.js +7 -47
- package/dist/settings/sections/mcp/McpSignIn.d.ts +38 -0
- package/dist/settings/sections/mcp/McpSignIn.js +72 -0
- package/dist/settings/sections/mcp/labels.js +1 -1
- package/dist/settings/sections/models/AgentDefaults.d.ts +12 -4
- package/dist/settings/sections/models/AgentDefaults.js +102 -70
- package/dist/settings/sections/models/ModelPickField.d.ts +10 -1
- package/dist/settings/sections/models/ModelPickField.js +87 -39
- package/dist/settings/sections/models/labels.d.ts +8 -0
- package/dist/settings/sections/models/labels.js +8 -0
- package/dist/settings/sections/performance/labels.js +2 -2
- package/dist/settings/sections/providers/ServerSignIn.d.ts +6 -1
- package/dist/settings/sections/providers/ServerSignIn.js +66 -61
- package/dist/settings/sections/skills/SkillList.d.ts +45 -0
- package/dist/settings/sections/skills/SkillList.js +58 -40
- package/dist/settings/server-app.d.ts +2 -0
- package/dist/settings/server-app.js +16 -4
- package/dist/styles.css +127 -34
- package/dist/theme/runtime-icons.js +7 -3
- package/dist/workspace/PanelContentView.js +1 -1
- package/package.json +26 -2
- package/src/styles/app.css +6 -3
- package/src/styles/palette.css +15 -19
- package/src/styles/primitives.css +3 -1
- package/src/styles/transcript.css +22 -0
- package/dist/dist/index-ttmMvjgM.d.ts +0 -1
- package/dist/dist/sandbox-CSUihARm.d.ts +0 -2
- package/dist/machines/PersonalLayerPanel.d.ts +0 -32
- package/dist/machines/PersonalLayerPanel.js +0 -360
- package/dist/machines/headless/layer.d.ts +0 -64
- package/dist/machines/headless/layer.js +0 -56
- /package/dist/dist/{execution-failure-SREfl-EZ.d.ts → execution-failure-_L2r_Qd-.d.ts} +0 -0
|
@@ -33,7 +33,7 @@ import { Markdown, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps,
|
|
|
33
33
|
import { ChipOpener, CommandScope, CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, MarkdownContextValue, OpenSessionContext } from "./markdown-context.js";
|
|
34
34
|
import { MermaidDiagram, MermaidDiagramProps } from "./MermaidDiagram.js";
|
|
35
35
|
import { MessageGroupRow, MessageGroupRowProps } from "./messages.js";
|
|
36
|
-
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, ErrorRow, ErrorRowProps, FailureRow, FailureRowProps, InfoRow, InfoRowProps, NoticeRow, NoticeRowProps, RepairedRow, RepairedRowProps, SessionEventRow, SessionEventRowProps, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps } from "./notices.js";
|
|
36
|
+
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, ErrorRow, ErrorRowProps, FailureRow, FailureRowProps, InfoRow, InfoRowProps, NoticeRow, NoticeRowProps, RepairedRow, RepairedRowProps, SessionEventRow, SessionEventRowProps, SetupChangedRow, SetupChangedRowProps, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps } from "./notices.js";
|
|
37
37
|
import { AttachmentIcon, AttachmentIconProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps } from "./prompt.js";
|
|
38
38
|
import { PromptLines, PromptLinesProps, copyPromptLines } from "./prompt-lines.js";
|
|
39
39
|
import { PromptEcho, PromptEchoProps } from "./PromptEcho.js";
|
|
@@ -78,4 +78,4 @@ import { MAX_MATCHES, SearchHighlightStyle, TranscriptSearchOptions, TranscriptS
|
|
|
78
78
|
import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
|
|
79
79
|
import { useWheelHoverPause } from "./useWheelHoverPause.js";
|
|
80
80
|
import { MarkdownViews, MarkdownViewsProps } from "./view-scope.js";
|
|
81
|
-
export { AUTO_FILL_PAGES, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelParts, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, ComposerSearch, CvRow, CvRowProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, Dot, DotProps, EditDiffBlock, EditDiffBlockProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, ForcedRows, GUTTER_STEP_PX, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_MATCHES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, NoticeRow, NoticeRowProps, OpenBadgeMenu, OpenSessionContext, ParsedRef, ParsedReferenceUrl, PromptEcho, PromptEchoProps, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScrollPosition, SearchHighlightStyle, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SessionCard, SessionCardProps, SessionEventRow, SessionEventRowProps, SessionTitleSlotProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSettling, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, attachmentSrcOf, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, revealRow, savedPaths, siteIconValue, toolMediaSrcOf, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHostTurnMenu, useModelName, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
81
|
+
export { AUTO_FILL_PAGES, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelParts, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, ComposerSearch, CvRow, CvRowProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, Dot, DotProps, EditDiffBlock, EditDiffBlockProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, ForcedRows, GUTTER_STEP_PX, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_MATCHES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, NoticeRow, NoticeRowProps, OpenBadgeMenu, OpenSessionContext, ParsedRef, ParsedReferenceUrl, PromptEcho, PromptEchoProps, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScrollPosition, SearchHighlightStyle, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SessionCard, SessionCardProps, SessionEventRow, SessionEventRowProps, SessionTitleSlotProps, SetupChangedRow, SetupChangedRowProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSettling, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, attachmentSrcOf, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, revealRow, savedPaths, siteIconValue, toolMediaSrcOf, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHostTurnMenu, useModelName, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
@@ -29,7 +29,7 @@ import { CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, OpenSessionCon
|
|
|
29
29
|
import { MermaidDiagram } from "./MermaidDiagram.js";
|
|
30
30
|
import { MessageGroupRow } from "./messages.js";
|
|
31
31
|
import { TranscriptRenderersProvider } from "./renderer-slots.js";
|
|
32
|
-
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
|
|
32
|
+
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SetupChangedRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
|
|
33
33
|
import { AttachmentIcon, UserPromptAttachments, UserPromptRow } from "./prompt.js";
|
|
34
34
|
import { PromptLines, copyPromptLines } from "./prompt-lines.js";
|
|
35
35
|
import { PromptEcho } from "./PromptEcho.js";
|
|
@@ -73,4 +73,4 @@ import { MAX_MATCHES, SearchHighlightStyle, useTranscriptSearch } from "./useTra
|
|
|
73
73
|
import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
|
|
74
74
|
import { useWheelHoverPause } from "./useWheelHoverPause.js";
|
|
75
75
|
import { MarkdownViews } from "./view-scope.js";
|
|
76
|
-
export { AUTO_FILL_PAGES, AnsiSpans, AnsiText, AttachmentIcon, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, CvRow, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, Dot, EditDiffBlock, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, InfoRow, InlineChipText, InlineCode, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_MATCHES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelVerdict, NestedToolCalls, NoticeRow, OpenSessionContext, PromptEcho, PromptLines, ProseMarkdown, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RowFrame, RowIconsContext, RunReceiptInline, RunSummaryRow, RunnableCodeBlock, SearchHighlightStyle, SelectCursor, SelectTurnExit, SelectTurnHintKeys, SelectTurnProvider, SessionCard, SessionEventRow, ShellBlockProvider, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, SubagentBlock, TaskBatchRow, TaskRow, TextRow, ThinkingBatchRow, ThinkingRow, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WorkerDetails, attachmentSrcOf, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, revealRow, savedPaths, siteIconValue, toolMediaSrcOf, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHostTurnMenu, useModelName, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
76
|
+
export { AUTO_FILL_PAGES, AnsiSpans, AnsiText, AttachmentIcon, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, CvRow, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, Dot, EditDiffBlock, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, InfoRow, InlineChipText, InlineCode, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_MATCHES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelVerdict, NestedToolCalls, NoticeRow, OpenSessionContext, PromptEcho, PromptLines, ProseMarkdown, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RowFrame, RowIconsContext, RunReceiptInline, RunSummaryRow, RunnableCodeBlock, SearchHighlightStyle, SelectCursor, SelectTurnExit, SelectTurnHintKeys, SelectTurnProvider, SessionCard, SessionEventRow, SetupChangedRow, ShellBlockProvider, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, SubagentBlock, TaskBatchRow, TaskRow, TextRow, ThinkingBatchRow, ThinkingRow, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WorkerDetails, attachmentSrcOf, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, revealRow, savedPaths, siteIconValue, toolMediaSrcOf, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHostTurnMenu, useModelName, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Facts on one line that truncates: each its own inline block, a gap apart, never a dot.
|
|
3
|
+
*
|
|
4
|
+
* @param props - Component props.
|
|
5
|
+
* @param props.facts - The facts, in order.
|
|
6
|
+
*/
|
|
7
|
+
export declare function InlineFacts({ facts }: {
|
|
8
|
+
facts: readonly string[];
|
|
9
|
+
}): import("react").JSX.Element[];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Fragment } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
// src/chat/transcript/inline-facts.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Facts on one line that truncates (a tool row's meta line). Kit {@link Facts} wraps between facts, so a
|
|
6
|
+
* one-line row that must truncate uses this inline form instead. Internal: not exported from the entry.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Facts on one line that truncates: each its own inline block, a gap apart, never a dot.
|
|
10
|
+
*
|
|
11
|
+
* @param props - Component props.
|
|
12
|
+
* @param props.facts - The facts, in order.
|
|
13
|
+
*/
|
|
14
|
+
function InlineFacts({ facts }) {
|
|
15
|
+
return facts.map((fact, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 && " ", /* @__PURE__ */ jsx("span", {
|
|
16
|
+
className: i > 0 ? "ml-1.5" : void 0,
|
|
17
|
+
children: fact
|
|
18
|
+
})] }, i));
|
|
19
|
+
}
|
|
20
|
+
export { InlineFacts };
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* The transcript's quiet rows: notices and errors, a stopped run (with its
|
|
3
3
|
* resume button when the app can resume), a worker's report
|
|
4
4
|
* (`SessionEventRow`), a `/` command's note and detail, and the spawn
|
|
5
|
-
* markers inside a subagent block
|
|
5
|
+
* markers inside a subagent block, and the line that says a run's setup
|
|
6
|
+
* changed (`SetupChangedRow`). App services come in as props
|
|
6
7
|
* (`onResume`, `onOpenSession`) and renderer slots (`renderers.tsx`).
|
|
7
8
|
*/
|
|
8
9
|
import { Row } from "../headless/transcript/rows.js";
|
|
@@ -37,6 +38,22 @@ export interface InfoRowProps {
|
|
|
37
38
|
}
|
|
38
39
|
/** Renders a plain informational line from the harness, in muted text. */
|
|
39
40
|
export declare const InfoRow: import("react").MemoExoticComponent<({ text, className, style }: InfoRowProps) => import("react").JSX.Element>;
|
|
41
|
+
/** Props for {@link SetupChangedRow}. */
|
|
42
|
+
export interface SetupChangedRowProps {
|
|
43
|
+
/** The notice's text: the summary on its first line, then one change per line. */
|
|
44
|
+
text: string;
|
|
45
|
+
/** Extra classes on the root element. */
|
|
46
|
+
className?: string;
|
|
47
|
+
/** Inline styles on the root element, merged after the component's own. */
|
|
48
|
+
style?: CSSProperties;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* A run's setup changed since the previous run (docs/PROJECTS.md § Setup record): one small muted line, its summary
|
|
52
|
+
* ("Setup changed: 2 added, 1 removed"), with a caret that opens the changes, one per line in the meta voice
|
|
53
|
+
* (`+ skill foo`, `- mcp linear`, who saved a record). Collapsed at first; a row with no changes listed has no caret.
|
|
54
|
+
* A long list shows its first {@link SETUP_CHANGES_SHOWN} changes and a button for the rest.
|
|
55
|
+
*/
|
|
56
|
+
export declare const SetupChangedRow: import("react").MemoExoticComponent<({ text, className, style }: SetupChangedRowProps) => import("react").JSX.Element>;
|
|
40
57
|
/** Props for {@link NoticeRow}. */
|
|
41
58
|
export interface NoticeRowProps {
|
|
42
59
|
/** The structured notice: its severity and label. */
|
|
@@ -53,7 +70,10 @@ export interface NoticeRowProps {
|
|
|
53
70
|
* GUI counterpart of the TUI's `NoticeRow` (which keeps the glyph + label,
|
|
54
71
|
* this surface has color). Rendered for `info` events that carry
|
|
55
72
|
* `notice` (run-end stop reasons, model fallback, repeat guard, …); plain
|
|
56
|
-
* `info` events keep the quiet `InfoRow`.
|
|
73
|
+
* `info` events keep the quiet `InfoRow`. A run's setup change
|
|
74
|
+
* (`SETUP_CHANGED_LABEL`) is the quieter `SetupChangedRow`. A refused
|
|
75
|
+
* run's budget notice gets the labels' "Budget reached" as its badge, its
|
|
76
|
+
* sentence (which budget, how much, when runs start again) beneath in full.
|
|
57
77
|
*/
|
|
58
78
|
export declare const NoticeRow: import("react").MemoExoticComponent<({ notice, text, className, style }: NoticeRowProps) => import("react").JSX.Element>;
|
|
59
79
|
/** Props for {@link ErrorRow}. */
|
|
@@ -93,6 +113,8 @@ export interface FailureRowProps {
|
|
|
93
113
|
detail?: StreamEvent['detail'];
|
|
94
114
|
/** How the run ended and how it would resume. */
|
|
95
115
|
failure: RunFailure;
|
|
116
|
+
/** The name of who stopped the run, when a named person or client did: reads "Stopped by <name>". */
|
|
117
|
+
stoppedBy?: string;
|
|
96
118
|
/** The row is the transcript's last word: it offers Continue or Retry. */
|
|
97
119
|
resumable: boolean;
|
|
98
120
|
/** Called with the prompt that resumes the run. Absent: no button. */
|
|
@@ -115,7 +137,7 @@ export interface FailureRowProps {
|
|
|
115
137
|
* host's queue until it is back. Setting a gone one up anew asks first (the
|
|
116
138
|
* app's confirm dialog), as it can cost work.
|
|
117
139
|
*/
|
|
118
|
-
export declare const FailureRow: import("react").MemoExoticComponent<({ text, detail, failure, resumable, onResume, className, style }: FailureRowProps) => import("react").JSX.Element>;
|
|
140
|
+
export declare const FailureRow: import("react").MemoExoticComponent<({ text, detail, failure, stoppedBy, resumable, onResume, className, style }: FailureRowProps) => import("react").JSX.Element>;
|
|
119
141
|
/** Props for {@link SessionEventRow}. */
|
|
120
142
|
export interface SessionEventRowProps {
|
|
121
143
|
/** The worker's report. */
|
|
@@ -8,9 +8,9 @@ import { AuthFailureCard } from "./AuthFailureCard.js";
|
|
|
8
8
|
import { Caret } from "./frame.js";
|
|
9
9
|
import { useTranscriptRenderers } from "./renderers.js";
|
|
10
10
|
import { useRowPartKey, useRowUiState } from "./row-ui-state.js";
|
|
11
|
-
import { memo, useId, useState } from "react";
|
|
11
|
+
import { memo, useEffect, useId, useRef, useState } from "react";
|
|
12
12
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { CONTINUE_PROMPT, SESSION_EVENT_STATUS_STYLE, describeSpawnEnd, sessionDirLabel, sessionEventExcerpt, sessionEventMeta, shortSessionId, spawnStartParts } from "zidane/chat/pure";
|
|
13
|
+
import { CONTINUE_PROMPT, SESSION_EVENT_STATUS_STYLE, SETUP_CHANGED_LABEL, describeSpawnEnd, sessionDirLabel, sessionEventExcerpt, sessionEventMeta, shortSessionId, spawnStartParts } from "zidane/chat/pure";
|
|
14
14
|
// src/chat/transcript/notices.tsx
|
|
15
15
|
/**
|
|
16
16
|
* Command steps, outputs and a run's error line read at the transcript's
|
|
@@ -41,6 +41,96 @@ const InfoRow = memo(({ text, className, style }) => {
|
|
|
41
41
|
children: text
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
+
/** How many of a run's setup changes show before the button for the rest. */
|
|
45
|
+
const SETUP_CHANGES_SHOWN = 12;
|
|
46
|
+
/**
|
|
47
|
+
* A run's setup changed since the previous run (docs/PROJECTS.md § Setup record): one small muted line, its summary
|
|
48
|
+
* ("Setup changed: 2 added, 1 removed"), with a caret that opens the changes, one per line in the meta voice
|
|
49
|
+
* (`+ skill foo`, `- mcp linear`, who saved a record). Collapsed at first; a row with no changes listed has no caret.
|
|
50
|
+
* A long list shows its first {@link SETUP_CHANGES_SHOWN} changes and a button for the rest.
|
|
51
|
+
*/
|
|
52
|
+
const SetupChangedRow = memo(({ text, className, style }) => {
|
|
53
|
+
const labels = useChatLabels();
|
|
54
|
+
const [open, setOpen] = useRowUiState(useRowPartKey("setup-changed"), false);
|
|
55
|
+
const [all, setAll] = useRowUiState(useRowPartKey("setup-changed-all"), false);
|
|
56
|
+
const firstHidden = useRef(null);
|
|
57
|
+
const focusShown = useRef(false);
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (all && focusShown.current) {
|
|
60
|
+
focusShown.current = false;
|
|
61
|
+
firstHidden.current?.focus();
|
|
62
|
+
}
|
|
63
|
+
}, [all]);
|
|
64
|
+
const mounted = useStaysMounted(open);
|
|
65
|
+
const listId = useId();
|
|
66
|
+
const [head = "", ...changes] = text.split("\n").filter((line) => line.trim() !== "");
|
|
67
|
+
const clipped = !all && changes.length > 15;
|
|
68
|
+
const root = ["text-xs text-[var(--zg-text-muted)]", className].filter(Boolean).join(" ");
|
|
69
|
+
const glyph = /* @__PURE__ */ jsx("span", {
|
|
70
|
+
"aria-hidden": true,
|
|
71
|
+
className: "i-ph-sliders-horizontal shrink-0"
|
|
72
|
+
});
|
|
73
|
+
if (changes.length === 0) return /* @__PURE__ */ jsxs("div", {
|
|
74
|
+
className: `${root} flex items-center gap-1.5 min-w-0 py-0.5`,
|
|
75
|
+
style,
|
|
76
|
+
"data-testid": "setup-changed",
|
|
77
|
+
children: [glyph, /* @__PURE__ */ jsx("span", {
|
|
78
|
+
className: "min-w-0 truncate",
|
|
79
|
+
children: head
|
|
80
|
+
})]
|
|
81
|
+
});
|
|
82
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
83
|
+
className: root,
|
|
84
|
+
style,
|
|
85
|
+
"data-testid": "setup-changed",
|
|
86
|
+
children: [/* @__PURE__ */ jsxs("button", {
|
|
87
|
+
type: "button",
|
|
88
|
+
"aria-expanded": open,
|
|
89
|
+
"aria-controls": listId,
|
|
90
|
+
onClick: () => setOpen((current) => !current),
|
|
91
|
+
className: "zg-press-subtle zg-disclosure zg-focus-ring flex items-center gap-1.5 w-full min-w-0 py-0.5 rounded-zg-sm text-left",
|
|
92
|
+
children: [
|
|
93
|
+
glyph,
|
|
94
|
+
/* @__PURE__ */ jsx("span", {
|
|
95
|
+
className: "min-w-0 truncate",
|
|
96
|
+
children: head
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ jsx(Caret, {
|
|
99
|
+
open,
|
|
100
|
+
className: "self-center"
|
|
101
|
+
})
|
|
102
|
+
]
|
|
103
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
104
|
+
className: "zg-collapsible",
|
|
105
|
+
"data-open": open,
|
|
106
|
+
id: listId,
|
|
107
|
+
inert: !open || void 0,
|
|
108
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
109
|
+
className: "zg-collapsible-inner",
|
|
110
|
+
children: mounted && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("ul", {
|
|
111
|
+
className: "zg-setup-changes zg-meta m-0 p-0 pt-1 pl-5 list-none flex flex-col gap-0.5",
|
|
112
|
+
children: (clipped ? changes.slice(0, SETUP_CHANGES_SHOWN) : changes).map((line, i) => /* @__PURE__ */ jsx("li", {
|
|
113
|
+
ref: i === SETUP_CHANGES_SHOWN ? firstHidden : void 0,
|
|
114
|
+
tabIndex: i === SETUP_CHANGES_SHOWN ? -1 : void 0,
|
|
115
|
+
className: "break-words outline-none",
|
|
116
|
+
children: line
|
|
117
|
+
}, i))
|
|
118
|
+
}), clipped && /* @__PURE__ */ jsx("button", {
|
|
119
|
+
type: "button",
|
|
120
|
+
onClick: () => {
|
|
121
|
+
focusShown.current = true;
|
|
122
|
+
setAll(true);
|
|
123
|
+
},
|
|
124
|
+
className: "zg-press-subtle zg-focus-ring ml-5 mt-1 px-1 -mx-1 rounded-zg-sm text-[var(--zg-text-muted)] hover:text-[var(--zg-text)] transition-colors",
|
|
125
|
+
children: labels.setupChangedMore(changes.length - SETUP_CHANGES_SHOWN)
|
|
126
|
+
})] })
|
|
127
|
+
})
|
|
128
|
+
})]
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
SetupChangedRow.displayName = "SetupChangedRow";
|
|
132
|
+
/** The label of the notice a refused run leaves (`emitSessionNotice` in `src/chat/host/runs/prepare.ts`): its text is a full sentence, so the badge says the headline and the sentence goes under it. */
|
|
133
|
+
const BUDGET_NOTICE_LABEL = "budget";
|
|
44
134
|
/** A notice's badge tone and icon, by severity. */
|
|
45
135
|
const NOTICE_STYLE = {
|
|
46
136
|
error: {
|
|
@@ -61,31 +151,60 @@ const NOTICE_STYLE = {
|
|
|
61
151
|
* GUI counterpart of the TUI's `NoticeRow` (which keeps the glyph + label,
|
|
62
152
|
* this surface has color). Rendered for `info` events that carry
|
|
63
153
|
* `notice` (run-end stop reasons, model fallback, repeat guard, …); plain
|
|
64
|
-
* `info` events keep the quiet `InfoRow`.
|
|
154
|
+
* `info` events keep the quiet `InfoRow`. A run's setup change
|
|
155
|
+
* (`SETUP_CHANGED_LABEL`) is the quieter `SetupChangedRow`. A refused
|
|
156
|
+
* run's budget notice gets the labels' "Budget reached" as its badge, its
|
|
157
|
+
* sentence (which budget, how much, when runs start again) beneath in full.
|
|
65
158
|
*/
|
|
66
159
|
const NoticeRow = memo(({ notice, text, className, style }) => {
|
|
160
|
+
const labels = useChatLabels();
|
|
161
|
+
if (notice.label === SETUP_CHANGED_LABEL) return /* @__PURE__ */ jsx(SetupChangedRow, {
|
|
162
|
+
text,
|
|
163
|
+
className,
|
|
164
|
+
style
|
|
165
|
+
});
|
|
67
166
|
const { tone, icon } = NOTICE_STYLE[notice.severity] ?? NOTICE_STYLE.info;
|
|
68
|
-
const
|
|
167
|
+
const lines = text.split("\n").filter((line) => line.trim() !== "");
|
|
168
|
+
const [head = "", ...details] = notice.label === BUDGET_NOTICE_LABEL ? [labels.noticeBudgetReached, ...lines.flatMap(sentencesOf)] : lines;
|
|
169
|
+
return /* @__PURE__ */ jsx(NoticeBody, {
|
|
170
|
+
head,
|
|
171
|
+
details,
|
|
172
|
+
tone,
|
|
173
|
+
icon,
|
|
174
|
+
className,
|
|
175
|
+
style
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
/** Splits prose into its sentences: a period, then a space and a capital ("$1.50" stays whole). */
|
|
179
|
+
function sentencesOf(line) {
|
|
180
|
+
return line.split(/(?<=[.!?])\s+(?=\p{Lu})/u);
|
|
181
|
+
}
|
|
182
|
+
/** A notice's badge (its headline, the full text in a tooltip when it truncates) and its facts beneath, one per line. */
|
|
183
|
+
function NoticeBody({ head, details, tone, icon, className, style }) {
|
|
184
|
+
const tip = useTooltip(head, { maxWidth: 420 });
|
|
69
185
|
return /* @__PURE__ */ jsxs("div", {
|
|
70
186
|
className: ["flex flex-col items-start gap-1 text-xs", className].filter(Boolean).join(" "),
|
|
71
187
|
style,
|
|
72
|
-
title: notice.label,
|
|
73
188
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
74
189
|
className: `inline-flex max-w-full items-center gap-1.5 px-2 py-0.5 rounded-full shadow-[inset_0_0_0_1px_var(--zg-hairline)] font-medium ${tone}`,
|
|
75
|
-
children: [
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ jsx("span", {
|
|
192
|
+
"aria-hidden": true,
|
|
193
|
+
className: `${icon} shrink-0`
|
|
194
|
+
}),
|
|
195
|
+
/* @__PURE__ */ jsx("span", {
|
|
196
|
+
...tip.anchorProps,
|
|
197
|
+
className: "min-w-0 truncate",
|
|
198
|
+
children: head
|
|
199
|
+
}),
|
|
200
|
+
tip.tip
|
|
201
|
+
]
|
|
83
202
|
}), details.length > 0 && /* @__PURE__ */ jsx("span", {
|
|
84
203
|
className: "min-w-0 max-w-full flex flex-col gap-0.5 px-2 break-words text-[var(--zg-text-muted)]",
|
|
85
204
|
children: details.map((line, i) => /* @__PURE__ */ jsx("span", { children: line }, i))
|
|
86
205
|
})]
|
|
87
206
|
});
|
|
88
|
-
}
|
|
207
|
+
}
|
|
89
208
|
/** The transcript's one error tone (the `error` / `tool-err` Dot glyphs share it). */
|
|
90
209
|
const ERROR_TONE = "text-zg-danger";
|
|
91
210
|
/** Renders an error line in the transcript's error tone. */
|
|
@@ -141,7 +260,7 @@ RepairedRow.displayName = "RepairedRow";
|
|
|
141
260
|
* host's queue until it is back. Setting a gone one up anew asks first (the
|
|
142
261
|
* app's confirm dialog), as it can cost work.
|
|
143
262
|
*/
|
|
144
|
-
const FailureRow = memo(({ text, detail, failure, resumable, onResume, className, style }) => {
|
|
263
|
+
const FailureRow = memo(({ text, detail, failure, stoppedBy, resumable, onResume, className, style }) => {
|
|
145
264
|
const labels = useChatLabels();
|
|
146
265
|
const { retryEnvironment } = useTranscriptActions();
|
|
147
266
|
const confirm = useOptionalConfirm();
|
|
@@ -199,7 +318,7 @@ const FailureRow = memo(({ text, detail, failure, resumable, onResume, className
|
|
|
199
318
|
className: "min-w-0 truncate",
|
|
200
319
|
children: [/* @__PURE__ */ jsx("span", {
|
|
201
320
|
className: byUser ? "text-[var(--zg-text-muted)]" : ERROR_TONE,
|
|
202
|
-
children: byUser ? labels.stoppedByYou : labels.stopped
|
|
321
|
+
children: byUser ? stoppedBy ? labels.stoppedByName(stoppedBy) : labels.stoppedByYou : labels.stopped
|
|
203
322
|
}), text && /* @__PURE__ */ jsxs("span", {
|
|
204
323
|
className: "text-[var(--zg-text-muted)]",
|
|
205
324
|
children: [" ", text]
|
|
@@ -426,4 +545,4 @@ const SpawnEndRow = memo(({ row, className, style }) => {
|
|
|
426
545
|
}, value))]
|
|
427
546
|
});
|
|
428
547
|
});
|
|
429
|
-
export { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow };
|
|
548
|
+
export { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SetupChangedRow, SpawnEndRow, SpawnStartRow };
|
|
@@ -23,6 +23,7 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
|
23
23
|
function UserPromptRow({ row, onBubblePointerEnter, onBubbleContextMenu, className, style }) {
|
|
24
24
|
const { Prompt } = useTranscriptRenderers();
|
|
25
25
|
const icons = useRowIcons();
|
|
26
|
+
const labels = useChatLabels();
|
|
26
27
|
const attachments = row.attachments ?? [];
|
|
27
28
|
return /* @__PURE__ */ jsxs("div", {
|
|
28
29
|
className: ["zg-row-enter relative flex items-start gap-3 pb-[var(--zg-row-gap,12px)]", className].filter(Boolean).join(" "),
|
|
@@ -49,7 +50,13 @@ function UserPromptRow({ row, onBubblePointerEnter, onBubbleContextMenu, classNa
|
|
|
49
50
|
promptMediaOf(row.text).map((m) => /* @__PURE__ */ jsx(MessageMedia, {
|
|
50
51
|
src: m.src,
|
|
51
52
|
alt: m.alt
|
|
52
|
-
}, m.src))
|
|
53
|
+
}, m.src)),
|
|
54
|
+
row.heldFor !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
55
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
56
|
+
role: "status",
|
|
57
|
+
"data-testid": "prompt-held",
|
|
58
|
+
children: labels.promptHeldFor(row.heldFor)
|
|
59
|
+
})
|
|
53
60
|
]
|
|
54
61
|
})]
|
|
55
62
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** What a Codemode script's input panel reads besides its input. Internal to the transcript. */
|
|
2
|
-
import {
|
|
2
|
+
import { gz as ScriptProgress } from "../../dist/index-Bsp5Ku7r.js";
|
|
3
3
|
import { ToolRowModel } from "../headless/transcript/rows.js";
|
|
4
4
|
import "../headless/transcript/index.js";
|
|
5
5
|
/**
|
|
@@ -32,7 +32,7 @@ export interface TaskBatchRowProps {
|
|
|
32
32
|
style?: CSSProperties;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* Background tasks that ended together: `3 tasks ended
|
|
35
|
+
* Background tasks that ended together: `3 tasks ended, 1 failed` on one
|
|
36
36
|
* line, collapsed by default like a tool batch; opened, each task's line.
|
|
37
37
|
*/
|
|
38
38
|
export declare const TaskBatchRow: import("react").MemoExoticComponent<({ row, className, style }: TaskBatchRowProps) => import("react").JSX.Element>;
|
|
@@ -58,7 +58,7 @@ const TaskRow = memo(({ row, className, style }) => /* @__PURE__ */ jsx("div", {
|
|
|
58
58
|
children: /* @__PURE__ */ jsx(TaskLine, { task: row.task })
|
|
59
59
|
}));
|
|
60
60
|
/**
|
|
61
|
-
* Background tasks that ended together: `3 tasks ended
|
|
61
|
+
* Background tasks that ended together: `3 tasks ended, 1 failed` on one
|
|
62
62
|
* line, collapsed by default like a tool batch; opened, each task's line.
|
|
63
63
|
*/
|
|
64
64
|
const TaskBatchRow = memo(({ row, className, style }) => {
|
|
@@ -7,6 +7,7 @@ import { ClippedOutputControls, useClippedOutput } from "./clipped-output.js";
|
|
|
7
7
|
import { EditDiffBlock } from "./EditDiffBlock.js";
|
|
8
8
|
import { Caret, FailedMark } from "./frame.js";
|
|
9
9
|
import { ImageGenerationBlock, drawsImageGeneration } from "./ImageGenerationBlock.js";
|
|
10
|
+
import { InlineFacts } from "./inline-facts.js";
|
|
10
11
|
import { useTranscriptRenderers } from "./renderers.js";
|
|
11
12
|
import { Rolling } from "./rolling.js";
|
|
12
13
|
import { useRowUiState } from "./row-ui-state.js";
|
|
@@ -386,7 +387,7 @@ function useJobClock(running) {
|
|
|
386
387
|
return now;
|
|
387
388
|
}
|
|
388
389
|
/**
|
|
389
|
-
* An MCP job's line under its call's header (`MCP job
|
|
390
|
+
* An MCP job's line under its call's header (`MCP job working Linking 40% 2m 10s`, each fact its own block),
|
|
390
391
|
* with a bar while it runs and its progress has a total. A failed job reads as an error, a cancelled one muted.
|
|
391
392
|
*/
|
|
392
393
|
function McpJobStatus({ job }) {
|
|
@@ -402,7 +403,7 @@ function McpJobStatus({ job }) {
|
|
|
402
403
|
"data-status": job.status,
|
|
403
404
|
children: /* @__PURE__ */ jsx("span", {
|
|
404
405
|
className: tone,
|
|
405
|
-
children: labels.
|
|
406
|
+
children: /* @__PURE__ */ jsx(InlineFacts, { facts: labels.mcpJobFacts(job, now) })
|
|
406
407
|
})
|
|
407
408
|
}), percent !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
408
409
|
role: "progressbar",
|
|
@@ -29,7 +29,6 @@ function FileViewInner({ name, contents, wrap = false, hideHeader = false, selec
|
|
|
29
29
|
onTokenLeave,
|
|
30
30
|
onTokenClick,
|
|
31
31
|
onHighlighted,
|
|
32
|
-
renderAnnotation,
|
|
33
32
|
edit,
|
|
34
33
|
wrap
|
|
35
34
|
});
|
|
@@ -47,7 +46,6 @@ function FileViewInner({ name, contents, wrap = false, hideHeader = false, selec
|
|
|
47
46
|
const token = words.token(t, e.clientX, e.clientY);
|
|
48
47
|
if (token) latest().onTokenClick?.(token, e);
|
|
49
48
|
},
|
|
50
|
-
renderAnnotation: (a) => latest().renderAnnotation?.(a) ?? null,
|
|
51
49
|
onEditChange: (e) => latest().edit?.onChange(e.file.contents, e.changes.map((c) => ({
|
|
52
50
|
range: c.range,
|
|
53
51
|
text: c.text
|
|
@@ -126,7 +124,7 @@ function FileViewInner({ name, contents, wrap = false, hideHeader = false, selec
|
|
|
126
124
|
} : {},
|
|
127
125
|
...selectable ? { selectedLines: selectedLines ?? null } : {},
|
|
128
126
|
...lineAnnotations ? { lineAnnotations } : {},
|
|
129
|
-
...renderAnnotation ? { renderAnnotation
|
|
127
|
+
...renderAnnotation ? { renderAnnotation } : {},
|
|
130
128
|
options
|
|
131
129
|
})
|
|
132
130
|
});
|
|
@@ -17,6 +17,11 @@ export declare const ROW_CLASS = "flex items-center gap-3 px-3 py-2";
|
|
|
17
17
|
export declare const ROW_HOST_CLASS = "zg-press-host flex items-center gap-3 px-3 py-2 rounded-zg-md";
|
|
18
18
|
/** The control of a {@link HostRow} that takes the row's width: a picker's trigger, holding the label and the value. */
|
|
19
19
|
export declare const ROW_TRIGGER_CLASS = "zg-press-subtle flex items-center gap-3 flex-1 min-w-0 text-left bg-transparent border-0 p-0 cursor-pointer text-[var(--zg-text)] rounded-zg-sm disabled:cursor-default focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--zg-ring)]";
|
|
20
|
+
/**
|
|
21
|
+
* The control of a {@link HostRow} that is its value chip alone (the label stays outside it, a clear button can sit
|
|
22
|
+
* between them): the row hands it a click on the row.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ROW_CHIP_TRIGGER_CLASS = "zg-press-subtle inline-flex shrink-0 min-w-0 max-w-[60%] bg-transparent border-0 p-0 cursor-pointer rounded-full disabled:cursor-default focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--zg-ring)]";
|
|
20
25
|
/** Single-line text input: a well set into its surface. */
|
|
21
26
|
export declare const INPUT_CLASS = "zg-well w-full h-8 px-2.5 text-zg-ui placeholder:text-[var(--zg-text-subtle)] disabled:opacity-zg-disabled";
|
|
22
27
|
/** Multi-line / code input. */
|
|
@@ -71,6 +76,11 @@ export interface FormSectionProps {
|
|
|
71
76
|
'title'?: ReactNode;
|
|
72
77
|
/** Right side of the label line: a count, a small action. */
|
|
73
78
|
'trailing'?: ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* What the section is for, in a question mark's tooltip beside its title ({@link HelpTip}), in place of a
|
|
81
|
+
* paragraph at the top of the tray. Needs `title`.
|
|
82
|
+
*/
|
|
83
|
+
'help'?: ReactNode;
|
|
74
84
|
/**
|
|
75
85
|
* `rows` hosts flat rows; `cards` spaces raised {@link FormCard}s apart.
|
|
76
86
|
* @default 'rows'
|
|
@@ -91,7 +101,7 @@ export interface FormSectionProps {
|
|
|
91
101
|
*
|
|
92
102
|
* @param props - Component props.
|
|
93
103
|
*/
|
|
94
|
-
export declare function FormSection({ title, trailing, layout, className, children, style, 'data-testid': testId }: FormSectionProps): import("react").JSX.Element;
|
|
104
|
+
export declare function FormSection({ title, trailing, help, layout, className, children, style, 'data-testid': testId }: FormSectionProps): import("react").JSX.Element;
|
|
95
105
|
/** Props for {@link FormCard}. */
|
|
96
106
|
export interface FormCardProps {
|
|
97
107
|
/** Extra classes on the card. */
|
|
@@ -131,6 +141,22 @@ export interface RowTextProps {
|
|
|
131
141
|
* @param props - Component props.
|
|
132
142
|
*/
|
|
133
143
|
export declare function RowText({ label, description, truncate, className, style }: RowTextProps): import("react").JSX.Element;
|
|
144
|
+
/** Props for {@link Facts}. */
|
|
145
|
+
export interface FactsProps {
|
|
146
|
+
/** The facts, in order. Empty ones (`undefined`, `null`, `false`, `''`) are left out. */
|
|
147
|
+
facts: readonly (ReactNode | undefined | false | null)[];
|
|
148
|
+
/** Extra classes on the root element. */
|
|
149
|
+
className?: string;
|
|
150
|
+
/** Inline styles on the root element, merged after the component's own. */
|
|
151
|
+
style?: CSSProperties;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Facts about a thing on one quiet line, each its own block with space between them (never a dot), wrapping
|
|
155
|
+
* between facts rather than inside a short one. Renders nothing when no fact is left.
|
|
156
|
+
*
|
|
157
|
+
* @param props - Component props.
|
|
158
|
+
*/
|
|
159
|
+
export declare function Facts({ facts, className, style }: FactsProps): import("react").JSX.Element | null;
|
|
134
160
|
/** Props for {@link MetaChip}. */
|
|
135
161
|
export interface MetaChipProps {
|
|
136
162
|
/**
|
|
@@ -292,6 +318,7 @@ export interface SegmentedRowProps<T extends string> {
|
|
|
292
318
|
label: string;
|
|
293
319
|
icon?: string;
|
|
294
320
|
title?: string;
|
|
321
|
+
tooltip?: ReactNode;
|
|
295
322
|
disabled?: boolean;
|
|
296
323
|
}[];
|
|
297
324
|
/** Extra classes on the root element. */
|
package/dist/components/Form.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { HelpTip } from "./HelpTip.js";
|
|
1
2
|
import { Notice } from "./Notice.js";
|
|
2
3
|
import { Segmented } from "./Segmented.js";
|
|
3
4
|
import { Raised, SectionLabel, Tray } from "./Surface.js";
|
|
4
5
|
import { SwitchGlyph } from "./SwitchGlyph.js";
|
|
6
|
+
import { Fragment } from "react";
|
|
5
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
8
|
// src/components/Form.tsx
|
|
7
9
|
const FOCUS_RING = "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--zg-ring)]";
|
|
@@ -13,6 +15,11 @@ const ROW_CLASS = "flex items-center gap-3 px-3 py-2";
|
|
|
13
15
|
const ROW_HOST_CLASS = `zg-press-host ${ROW_CLASS} rounded-zg-md`;
|
|
14
16
|
/** The control of a {@link HostRow} that takes the row's width: a picker's trigger, holding the label and the value. */
|
|
15
17
|
const ROW_TRIGGER_CLASS = `zg-press-subtle flex items-center gap-3 flex-1 min-w-0 text-left bg-transparent border-0 p-0 cursor-pointer text-[var(--zg-text)] rounded-zg-sm disabled:cursor-default ${FOCUS_RING}`;
|
|
18
|
+
/**
|
|
19
|
+
* The control of a {@link HostRow} that is its value chip alone (the label stays outside it, a clear button can sit
|
|
20
|
+
* between them): the row hands it a click on the row.
|
|
21
|
+
*/
|
|
22
|
+
const ROW_CHIP_TRIGGER_CLASS = `zg-press-subtle inline-flex shrink-0 min-w-0 max-w-[60%] bg-transparent border-0 p-0 cursor-pointer rounded-full disabled:cursor-default ${FOCUS_RING}`;
|
|
16
23
|
/** What answers a click on a host row by itself. */
|
|
17
24
|
const ROW_OWN_TARGETS = "button, a, input, select, textarea, label";
|
|
18
25
|
/** Single-line text input: a well set into its surface. */
|
|
@@ -62,14 +69,20 @@ function OpLine({ kind, children, className, style }) {
|
|
|
62
69
|
*
|
|
63
70
|
* @param props - Component props.
|
|
64
71
|
*/
|
|
65
|
-
function FormSection({ title, trailing, layout = "rows", className = "", children, style, "data-testid": testId }) {
|
|
72
|
+
function FormSection({ title, trailing, help, layout = "rows", className = "", children, style, "data-testid": testId }) {
|
|
66
73
|
return /* @__PURE__ */ jsxs("section", {
|
|
67
74
|
className,
|
|
68
75
|
style,
|
|
69
76
|
"data-testid": testId,
|
|
70
77
|
children: [(title || trailing) && /* @__PURE__ */ jsxs("div", {
|
|
71
|
-
className: `flex items-center justify-between gap-2 min-h-
|
|
72
|
-
children: [title ?
|
|
78
|
+
className: `flex items-center justify-between gap-2 min-h-7 ${layout === "rows" ? "px-4" : "px-1"} mb-1.5`,
|
|
79
|
+
children: [title ? help ? /* @__PURE__ */ jsxs("span", {
|
|
80
|
+
className: "flex items-center gap-1.5 min-w-0",
|
|
81
|
+
children: [/* @__PURE__ */ jsx(SectionLabel, { children: title }), /* @__PURE__ */ jsx(HelpTip, {
|
|
82
|
+
help,
|
|
83
|
+
...typeof title === "string" ? { about: title } : {}
|
|
84
|
+
})]
|
|
85
|
+
}) : /* @__PURE__ */ jsx(SectionLabel, { children: title }) : /* @__PURE__ */ jsx("span", {}), trailing]
|
|
73
86
|
}), /* @__PURE__ */ jsx(Tray, {
|
|
74
87
|
radius: "lg",
|
|
75
88
|
className: layout === "cards" ? "p-1.5 flex flex-col gap-1.5" : "p-1 flex flex-col",
|
|
@@ -108,6 +121,24 @@ function RowText({ label, description, truncate = true, className, style }) {
|
|
|
108
121
|
})]
|
|
109
122
|
});
|
|
110
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* Facts about a thing on one quiet line, each its own block with space between them (never a dot), wrapping
|
|
126
|
+
* between facts rather than inside a short one. Renders nothing when no fact is left.
|
|
127
|
+
*
|
|
128
|
+
* @param props - Component props.
|
|
129
|
+
*/
|
|
130
|
+
function Facts({ facts, className, style }) {
|
|
131
|
+
const shown = facts.filter((fact) => fact !== void 0 && fact !== false && fact !== null && fact !== "");
|
|
132
|
+
if (shown.length === 0) return null;
|
|
133
|
+
return /* @__PURE__ */ jsx("span", {
|
|
134
|
+
className: ["flex flex-wrap gap-x-3 gap-y-0.5 min-w-0", className].filter(Boolean).join(" "),
|
|
135
|
+
style,
|
|
136
|
+
children: shown.map((fact, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 && " ", /* @__PURE__ */ jsx("span", {
|
|
137
|
+
className: "min-w-0 [overflow-wrap:anywhere]",
|
|
138
|
+
children: fact
|
|
139
|
+
})] }, i))
|
|
140
|
+
});
|
|
141
|
+
}
|
|
111
142
|
const CHIP_TONE = {
|
|
112
143
|
muted: "",
|
|
113
144
|
text: "!text-[var(--zg-text)]",
|
|
@@ -262,18 +293,23 @@ function SwitchRow({ label, description, on, onToggle, className, style }) {
|
|
|
262
293
|
*/
|
|
263
294
|
function SegmentedRow({ label, description, value, onChange, options, className, style }) {
|
|
264
295
|
return /* @__PURE__ */ jsxs("div", {
|
|
265
|
-
className: [
|
|
296
|
+
className: [
|
|
297
|
+
ROW_CLASS,
|
|
298
|
+
"flex-wrap gap-y-2",
|
|
299
|
+
className
|
|
300
|
+
].filter(Boolean).join(" "),
|
|
266
301
|
style,
|
|
267
302
|
children: [/* @__PURE__ */ jsx(RowText, {
|
|
268
303
|
label,
|
|
269
304
|
description,
|
|
270
|
-
truncate: false
|
|
305
|
+
truncate: false,
|
|
306
|
+
className: "min-w-[12rem] basis-[12rem]"
|
|
271
307
|
}), /* @__PURE__ */ jsx(Segmented, {
|
|
272
308
|
value,
|
|
273
309
|
onChange,
|
|
274
310
|
options,
|
|
275
311
|
ariaLabel: label,
|
|
276
|
-
className: "shrink-0"
|
|
312
|
+
className: "shrink-0 ml-auto"
|
|
277
313
|
})]
|
|
278
314
|
});
|
|
279
315
|
}
|
|
@@ -310,4 +346,4 @@ function SliderRow({ label, description, value, min, max, step, format, onChange
|
|
|
310
346
|
]
|
|
311
347
|
});
|
|
312
348
|
}
|
|
313
|
-
export { Checkbox, ErrorNote, FIELD_LABEL_CLASS, FORM_CARD_CLASS, FormCard, FormSection, HostRow, INPUT_CLASS, MetaChip, NavRow, OpLine, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, RowText, SegmentedRow, SliderRow, Switch, SwitchRow, TEXTAREA_CLASS, ToggleSwitch };
|
|
349
|
+
export { Checkbox, ErrorNote, FIELD_LABEL_CLASS, FORM_CARD_CLASS, Facts, FormCard, FormSection, HostRow, INPUT_CLASS, MetaChip, NavRow, OpLine, ROW_BUTTON_CLASS, ROW_CHIP_TRIGGER_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, RowText, SegmentedRow, SliderRow, Switch, SwitchRow, TEXTAREA_CLASS, ToggleSwitch };
|