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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_CHAT_LABELS } from "../labels.js";
|
|
2
|
-
import { buildSessionRows } from "../session-list.js";
|
|
2
|
+
import { buildSessionRows, compareSessions } from "../session-list.js";
|
|
3
|
+
import { comparePinnedMains, isSidebarPinned } from "./project-main.js";
|
|
3
4
|
import { groupRows } from "zidane/chat/pure";
|
|
4
5
|
// src/chat/headless/sidebar/rows.ts
|
|
5
6
|
/**
|
|
@@ -43,7 +44,8 @@ function partitionMainSession(sessions, orchestrationEnabled) {
|
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
/**
|
|
46
|
-
* The sidebar's rows over the kit's session-list model: favorites
|
|
47
|
+
* The sidebar's rows over the kit's session-list model: favorites (with the project Mains that are on, first), git
|
|
48
|
+
* repositories and the project of each session.
|
|
47
49
|
*
|
|
48
50
|
* @param sessions - The sessions to list.
|
|
49
51
|
* @param groupBy - The session-list grouping.
|
|
@@ -52,13 +54,15 @@ function partitionMainSession(sessions, orchestrationEnabled) {
|
|
|
52
54
|
* @param project - The project a session groups under (defaults to {@link projectPathOf}).
|
|
53
55
|
*/
|
|
54
56
|
function buildSidebarRows(sessions, groupBy, sortBy, options = {}, project = projectPathOf) {
|
|
57
|
+
const compare = options.compare ?? ((a, b) => compareSessions(a, b, sortBy));
|
|
55
58
|
return buildSessionRows(sessions, {
|
|
56
59
|
...options,
|
|
57
60
|
groupBy,
|
|
58
61
|
sortBy,
|
|
59
62
|
project,
|
|
63
|
+
compare: (a, b) => comparePinnedMains(a, b) || compare(a, b),
|
|
60
64
|
isGitRepo: (s) => s.isGitRepo === true,
|
|
61
|
-
isFavorite:
|
|
65
|
+
isFavorite: isSidebarPinned
|
|
62
66
|
});
|
|
63
67
|
}
|
|
64
68
|
const HOST_SEP = "\0";
|
|
@@ -31,6 +31,11 @@ export interface SidebarListSession {
|
|
|
31
31
|
spaceId?: string;
|
|
32
32
|
/** The orchestration main session. */
|
|
33
33
|
isMain?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* A project's Main (docs/ORCHESTRATION.md § Project Mains): its project, and `off` while that project's Main is off.
|
|
36
|
+
* Off, the sidebar leaves it out; on, it is pinned first, and its pin can't be moved or removed.
|
|
37
|
+
*/
|
|
38
|
+
projectMain?: SidebarProjectMain;
|
|
34
39
|
/** Its folder is a git repository. */
|
|
35
40
|
isGitRepo?: boolean;
|
|
36
41
|
/**
|
|
@@ -60,6 +65,13 @@ export interface SidebarListSession {
|
|
|
60
65
|
*/
|
|
61
66
|
facets?: Readonly<Record<string, unknown>>;
|
|
62
67
|
}
|
|
68
|
+
/** A project's Main, as its sidebar row says it. */
|
|
69
|
+
export interface SidebarProjectMain {
|
|
70
|
+
/** The project it orchestrates. */
|
|
71
|
+
projectId: string;
|
|
72
|
+
/** The project's Main is off: the session is not listed. */
|
|
73
|
+
off?: true;
|
|
74
|
+
}
|
|
63
75
|
/** Which sessions the list reads: the archive axis is the one the host filters. */
|
|
64
76
|
export type SessionArchiveFilter = 'active' | 'archived' | 'all';
|
|
65
77
|
/** Only sessions touched within the last day, 3, 7 or 30 days. */
|
|
@@ -17,6 +17,18 @@
|
|
|
17
17
|
import { ChatEvent } from "../host.js";
|
|
18
18
|
import { MarkdownDeltaOptions, TranscriptEvents } from "zidane/chat/pure";
|
|
19
19
|
import { Owner, StreamEvent } from "zidane/chat";
|
|
20
|
+
/**
|
|
21
|
+
* The rows a run's end adds (`run:end`): its failure, with who stopped it when someone did, or, for a run that ended
|
|
22
|
+
* without a failure, the line that says who stopped it (as the reloaded transcript has it, `runEnding`).
|
|
23
|
+
*
|
|
24
|
+
* @param end - The run's end, as the host sent it.
|
|
25
|
+
*/
|
|
26
|
+
export declare function runEndEvents(end: {
|
|
27
|
+
ok: boolean;
|
|
28
|
+
error?: string;
|
|
29
|
+
detail?: StreamEvent['detail'];
|
|
30
|
+
stoppedBy?: StreamEvent['stoppedBy'];
|
|
31
|
+
}): ChatEvent[];
|
|
20
32
|
/** A live transcript event with the live timings (`ChatEvent`'s, the desktop app's `GuiStreamEvent`'s). */
|
|
21
33
|
type TimedEvent = Omit<StreamEvent, 'attachments'> & Pick<ChatEvent, 'thinkingStartedAt' | 'thinkingMs' | 'receivedAt'>;
|
|
22
34
|
/**
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
import { appendMarkdownDelta, appendThinkingLines, appendTranscriptEvent, chunkFact, finalizeStreamingMarkdown, mapTranscript, mergeTargetIndex, ownerOf, readEnvironmentSetup, transcriptFinalizeStreamingMarkdownForOwner, transcriptMarkdownDelta, transcriptThinkingLines, transcriptUpsertEnvironmentSetup, transcriptUpsertToolProgress, upsertEnvironmentSetup, upsertToolProgress, withTranscriptTail } from "zidane/chat/pure";
|
|
1
|
+
import { STOPPED_TEXT, appendMarkdownDelta, appendThinkingLines, appendTranscriptEvent, chunkFact, finalizeStreamingMarkdown, mapTranscript, mergeTargetIndex, ownerOf, readEnvironmentSetup, transcriptFinalizeStreamingMarkdownForOwner, transcriptMarkdownDelta, transcriptThinkingLines, transcriptUpsertEnvironmentSetup, transcriptUpsertToolProgress, upsertEnvironmentSetup, upsertToolProgress, withTranscriptTail } from "zidane/chat/pure";
|
|
2
2
|
// src/chat/headless/streams/live-events.ts
|
|
3
|
+
/**
|
|
4
|
+
* The rows a run's end adds (`run:end`): its failure, with who stopped it when someone did, or, for a run that ended
|
|
5
|
+
* without a failure, the line that says who stopped it (as the reloaded transcript has it, `runEnding`).
|
|
6
|
+
*
|
|
7
|
+
* @param end - The run's end, as the host sent it.
|
|
8
|
+
*/
|
|
9
|
+
function runEndEvents(end) {
|
|
10
|
+
if (!end.ok && end.error) return [{
|
|
11
|
+
kind: "error",
|
|
12
|
+
text: end.error,
|
|
13
|
+
...end.detail ? { detail: end.detail } : {},
|
|
14
|
+
...end.stoppedBy ? { stoppedBy: end.stoppedBy } : {}
|
|
15
|
+
}];
|
|
16
|
+
return end.stoppedBy ? [{
|
|
17
|
+
kind: "error",
|
|
18
|
+
text: STOPPED_TEXT,
|
|
19
|
+
stoppedBy: end.stoppedBy
|
|
20
|
+
}] : [];
|
|
21
|
+
}
|
|
3
22
|
const rows = (events) => events;
|
|
4
23
|
const timed = (events) => events;
|
|
5
24
|
function closed(event, startedAt, now) {
|
|
@@ -126,4 +145,4 @@ function isLive(events) {
|
|
|
126
145
|
function finishLiveTranscript(transcript, now = Date.now()) {
|
|
127
146
|
return mapTranscript(transcript, (events) => finishLive(events, now), (chunk) => chunkFact(chunk, "live", isLive));
|
|
128
147
|
}
|
|
129
|
-
export { applyLiveEvent, applyLiveEventToTranscript, closeThinkingSegment, endTurnInTranscript, finishLive, finishLiveTranscript };
|
|
148
|
+
export { applyLiveEvent, applyLiveEventToTranscript, closeThinkingSegment, endTurnInTranscript, finishLive, finishLiveTranscript, runEndEvents };
|
|
@@ -25,6 +25,11 @@ export interface PendingEcho {
|
|
|
25
25
|
clientMessageId?: string;
|
|
26
26
|
/** The row the client appended. The echo gives it its turn id. */
|
|
27
27
|
event: ChatEvent;
|
|
28
|
+
/**
|
|
29
|
+
* A live share's message the server holds while the owner's computer is offline: the owner's name. No run takes it
|
|
30
|
+
* before that computer is back, so a run's end keeps it waiting (`holdPrompt`).
|
|
31
|
+
*/
|
|
32
|
+
heldFor?: string;
|
|
28
33
|
}
|
|
29
34
|
/** Options for {@link SessionStreamStore}. */
|
|
30
35
|
export interface SessionStreamStoreOptions {
|
|
@@ -476,6 +481,16 @@ export declare class SessionStreamStore<K extends string = string> {
|
|
|
476
481
|
* @param clientMessageId - The id the send gave the message (`SendOptions.clientMessageId`). The store matches the echo by it.
|
|
477
482
|
*/
|
|
478
483
|
appendUserPrompt(sessionId: K, text: string, refs?: readonly PromptSegmentRef[], rawAttachments?: readonly ChatAttachment[], clientMessageId?: string): void;
|
|
484
|
+
/**
|
|
485
|
+
* Marks a prompt this client appended as held: a live share's server keeps it until the owner's computer is back
|
|
486
|
+
* (the send answered `waitingFor`). The row says so (`ChatEvent.heldFor`) until its echo comes, which turns it into
|
|
487
|
+
* the sent prompt, in place.
|
|
488
|
+
*
|
|
489
|
+
* @param sessionId - The session.
|
|
490
|
+
* @param clientMessageId - The id the send gave the message.
|
|
491
|
+
* @param owner - The owner's name.
|
|
492
|
+
*/
|
|
493
|
+
holdPrompt(sessionId: K, clientMessageId: string, owner: string): void;
|
|
479
494
|
/**
|
|
480
495
|
* Unwind ONE pending echo after a FAILED send — a refused/errored send
|
|
481
496
|
* produces no run, so the `run:end` sweep never fires and the stale
|
|
@@ -562,6 +577,8 @@ export declare class SessionStreamStore<K extends string = string> {
|
|
|
562
577
|
* turned on. A row that a reload replaced is left alone.
|
|
563
578
|
*/
|
|
564
579
|
private _bindLocalPrompt;
|
|
580
|
+
/** Puts `next` in place of this client's prompt row `local`, as the same row (it updates, never remounts). */
|
|
581
|
+
private _replaceLocalPrompt;
|
|
565
582
|
/**
|
|
566
583
|
* The loop changed a turn's text after it streamed (`turn:end.text`): the
|
|
567
584
|
* owner's streamed markdown rows of the turn become the saved text blocks,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inheritRowIdentity } from "../transcript/collapse.js";
|
|
2
|
-
import { applyLiveEventToTranscript, endTurnInTranscript, finishLiveTranscript } from "./live-events.js";
|
|
2
|
+
import { applyLiveEventToTranscript, endTurnInTranscript, finishLiveTranscript, runEndEvents } from "./live-events.js";
|
|
3
3
|
import { mergeLiveTail } from "./merge.js";
|
|
4
4
|
import { mergePromptPreviews, missingPreviewData } from "./prompt-previews.js";
|
|
5
5
|
import { defaultFrameScheduler } from "./scheduler.js";
|
|
@@ -790,6 +790,26 @@ var SessionStreamStore = class {
|
|
|
790
790
|
if (!had) this._notifyHas();
|
|
791
791
|
}
|
|
792
792
|
/**
|
|
793
|
+
* Marks a prompt this client appended as held: a live share's server keeps it until the owner's computer is back
|
|
794
|
+
* (the send answered `waitingFor`). The row says so (`ChatEvent.heldFor`) until its echo comes, which turns it into
|
|
795
|
+
* the sent prompt, in place.
|
|
796
|
+
*
|
|
797
|
+
* @param sessionId - The session.
|
|
798
|
+
* @param clientMessageId - The id the send gave the message.
|
|
799
|
+
* @param owner - The owner's name.
|
|
800
|
+
*/
|
|
801
|
+
holdPrompt(sessionId, clientMessageId, owner) {
|
|
802
|
+
const entry = this._pendingEcho.get(sessionId)?.find((p) => p.clientMessageId === clientMessageId);
|
|
803
|
+
if (!entry) return;
|
|
804
|
+
const held = {
|
|
805
|
+
...entry.event,
|
|
806
|
+
heldFor: owner
|
|
807
|
+
};
|
|
808
|
+
this._replaceLocalPrompt(sessionId, entry.event, held);
|
|
809
|
+
entry.event = held;
|
|
810
|
+
entry.heldFor = owner;
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
793
813
|
* Unwind ONE pending echo after a FAILED send — a refused/errored send
|
|
794
814
|
* produces no run, so the `run:end` sweep never fires and the stale
|
|
795
815
|
* entry would silently swallow an identical remote prompt later.
|
|
@@ -878,11 +898,7 @@ var SessionStreamStore = class {
|
|
|
878
898
|
this.runStateVersion++;
|
|
879
899
|
const prior = this._events.transcriptOrEmpty(signal.sessionId);
|
|
880
900
|
let next = finishLiveTranscript(prior);
|
|
881
|
-
|
|
882
|
-
kind: "error",
|
|
883
|
-
text: signal.error,
|
|
884
|
-
...signal.detail ? { detail: signal.detail } : {}
|
|
885
|
-
});
|
|
901
|
+
for (const event of runEndEvents(signal)) next = appendTranscriptEvent(next, event);
|
|
886
902
|
const had = this._events.has(signal.sessionId);
|
|
887
903
|
const wasRunning = this._running.get(signal.sessionId) === true;
|
|
888
904
|
this._events.setTranscript(signal.sessionId, next);
|
|
@@ -891,7 +907,9 @@ var SessionStreamStore = class {
|
|
|
891
907
|
const streamed = this._runActivity.delete(signal.sessionId);
|
|
892
908
|
if (!sawStart && (wasRunning || streamed) && this._pages.has(signal.sessionId)) this._refetchDue.add(signal.sessionId);
|
|
893
909
|
this._retry.delete(signal.sessionId);
|
|
894
|
-
this._pendingEcho.
|
|
910
|
+
const held = this._pendingEcho.get(signal.sessionId)?.filter((p) => p.heldFor !== void 0);
|
|
911
|
+
if (held?.length) this._pendingEcho.set(signal.sessionId, held);
|
|
912
|
+
else this._pendingEcho.delete(signal.sessionId);
|
|
895
913
|
this._notifySession(signal.sessionId);
|
|
896
914
|
if (!had) this._notifyHas();
|
|
897
915
|
return;
|
|
@@ -914,7 +932,7 @@ var SessionStreamStore = class {
|
|
|
914
932
|
if (pending && index !== -1) {
|
|
915
933
|
const [local] = pending.splice(index, 1);
|
|
916
934
|
const { turnId, skillGroups } = signal.event;
|
|
917
|
-
if (turnId !== void 0 || skillGroups?.length) this._bindLocalPrompt(signal.sessionId, local.event, {
|
|
935
|
+
if (turnId !== void 0 || skillGroups?.length || local.heldFor !== void 0) this._bindLocalPrompt(signal.sessionId, local.event, {
|
|
918
936
|
...turnId !== void 0 ? { turnId } : {},
|
|
919
937
|
...skillGroups?.length ? { skillGroups } : {}
|
|
920
938
|
});
|
|
@@ -1084,16 +1102,21 @@ var SessionStreamStore = class {
|
|
|
1084
1102
|
* turned on. A row that a reload replaced is left alone.
|
|
1085
1103
|
*/
|
|
1086
1104
|
_bindLocalPrompt(sessionId, local, echo) {
|
|
1105
|
+
const { heldFor: _held, ...sent } = local;
|
|
1106
|
+
this._replaceLocalPrompt(sessionId, local, {
|
|
1107
|
+
...sent,
|
|
1108
|
+
...echo
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
/** Puts `next` in place of this client's prompt row `local`, as the same row (it updates, never remounts). */
|
|
1112
|
+
_replaceLocalPrompt(sessionId, local, next) {
|
|
1087
1113
|
const events = this._events.get(sessionId);
|
|
1088
1114
|
const at = events?.indexOf(local) ?? -1;
|
|
1089
1115
|
if (!events || at === -1) return;
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
};
|
|
1095
|
-
inheritRowIdentity(events, next);
|
|
1096
|
-
this._events.set(sessionId, next);
|
|
1116
|
+
const replaced = events.slice();
|
|
1117
|
+
replaced[at] = next;
|
|
1118
|
+
inheritRowIdentity(events, replaced);
|
|
1119
|
+
this._events.set(sessionId, replaced);
|
|
1097
1120
|
this._notifySession(sessionId);
|
|
1098
1121
|
}
|
|
1099
1122
|
/**
|
|
@@ -60,7 +60,7 @@ export type SessionStreamSignal<K extends string = string> = {
|
|
|
60
60
|
runId?: string;
|
|
61
61
|
startedAt?: number;
|
|
62
62
|
} |
|
|
63
|
-
/** A run ended; a failed one (`ok: false` with an `error`) appends an error row. */
|
|
63
|
+
/** A run ended; a failed one (`ok: false` with an `error`) appends an error row, and so does one a named person stopped (`stoppedBy`). */
|
|
64
64
|
{
|
|
65
65
|
kind: 'run:end';
|
|
66
66
|
sessionId: K;
|
|
@@ -68,6 +68,7 @@ export type SessionStreamSignal<K extends string = string> = {
|
|
|
68
68
|
ok: boolean;
|
|
69
69
|
error?: string;
|
|
70
70
|
detail?: StreamEvent['detail'];
|
|
71
|
+
stoppedBy?: StreamEvent['stoppedBy'];
|
|
71
72
|
} |
|
|
72
73
|
/** A turn of the parent (or of the subagent `childId`) ended: its streaming markdown is final, and is `text` when the host sends it (the saved text blocks, when the loop changed them after they streamed). */
|
|
73
74
|
{
|
|
@@ -347,7 +347,8 @@ function collapseAll(events, showEditDiffs, isStreaming) {
|
|
|
347
347
|
...event.skillGroups && event.skillGroups.length > 0 ? { skillGroups: event.skillGroups } : {},
|
|
348
348
|
...eventAttachments && eventAttachments.length > 0 ? { attachments: eventAttachments } : {},
|
|
349
349
|
...event.synthetic ? { synthetic: true } : {},
|
|
350
|
-
...origin ? { origin } : {}
|
|
350
|
+
...origin ? { origin } : {},
|
|
351
|
+
...event.heldFor !== void 0 ? { heldFor: event.heldFor } : {}
|
|
351
352
|
};
|
|
352
353
|
}));
|
|
353
354
|
break;
|
|
@@ -503,6 +504,7 @@ function collapseAll(events, showEditDiffs, isStreaming) {
|
|
|
503
504
|
id: `e-${sid}`,
|
|
504
505
|
text: event.text,
|
|
505
506
|
...event.detail ? { detail: event.detail } : {},
|
|
507
|
+
...event.stoppedBy ? { stoppedBy: event.stoppedBy } : {},
|
|
506
508
|
...event.notice ? { notice: event.notice } : {},
|
|
507
509
|
...event.tool ? { tool: event.tool } : {},
|
|
508
510
|
...event.callId ? { callId: event.callId } : {}
|
|
@@ -120,6 +120,11 @@ export interface TranscriptRailState extends RailModel {
|
|
|
120
120
|
selected: string | null;
|
|
121
121
|
/** The session's whole prompt outline while part of its history is not loaded; `null` otherwise. */
|
|
122
122
|
outline: readonly PromptOutlineEntry[] | null;
|
|
123
|
+
/**
|
|
124
|
+
* The session's outline is being read for the first time (part of its history is not loaded): the rail waits for
|
|
125
|
+
* it, so it never shows the loaded prompts alone and then grows.
|
|
126
|
+
*/
|
|
127
|
+
outlinePending: boolean;
|
|
123
128
|
/** Loads the history up to a turn position (`Transcript.loadThrough`); `null`: unloaded prompts can't be reached. */
|
|
124
129
|
loadThrough: ((index: number) => Promise<boolean>) | null;
|
|
125
130
|
}
|
|
@@ -135,8 +140,10 @@ export interface TranscriptRailStore extends Readable<TranscriptRailState> {
|
|
|
135
140
|
hover: (id: string | null) => void;
|
|
136
141
|
/** The exchange holding select-turn mode's cursor, or `null`. */
|
|
137
142
|
select: (id: string | null) => void;
|
|
138
|
-
/** The session's outline (`null`: none, all is loaded) and how to load up to one of its prompts. */
|
|
143
|
+
/** The session's outline (`null`: none, all is loaded) and how to load up to one of its prompts. Ends `outlinePending`. */
|
|
139
144
|
publishOutline: (outline: readonly PromptOutlineEntry[] | null, loadThrough: ((index: number) => Promise<boolean>) | null) => void;
|
|
145
|
+
/** A session whose outline is about to be read: drops the last one, and the rail waits (`outlinePending`). */
|
|
146
|
+
expectOutline: () => void;
|
|
140
147
|
}
|
|
141
148
|
/** A rail store with no exchange: one per transcript view (the provider makes it). */
|
|
142
149
|
export declare function createTranscriptRailStore(): TranscriptRailStore;
|
|
@@ -262,6 +262,7 @@ function createTranscriptRailStore() {
|
|
|
262
262
|
hovered: null,
|
|
263
263
|
selected: null,
|
|
264
264
|
outline: null,
|
|
265
|
+
outlinePending: false,
|
|
265
266
|
loadThrough: null
|
|
266
267
|
});
|
|
267
268
|
return {
|
|
@@ -280,10 +281,16 @@ function createTranscriptRailStore() {
|
|
|
280
281
|
...prev,
|
|
281
282
|
selected: id
|
|
282
283
|
}),
|
|
283
|
-
publishOutline: (outline, loadThrough) => state.set((prev) => prev.outline === outline && prev.loadThrough === loadThrough ? prev : {
|
|
284
|
+
publishOutline: (outline, loadThrough) => state.set((prev) => prev.outline === outline && prev.loadThrough === loadThrough && !prev.outlinePending ? prev : {
|
|
284
285
|
...prev,
|
|
285
286
|
outline,
|
|
286
|
-
loadThrough
|
|
287
|
+
loadThrough,
|
|
288
|
+
outlinePending: false
|
|
289
|
+
}),
|
|
290
|
+
expectOutline: () => state.set((prev) => prev.outlinePending && prev.outline === null ? prev : {
|
|
291
|
+
...prev,
|
|
292
|
+
outline: null,
|
|
293
|
+
outlinePending: true
|
|
287
294
|
})
|
|
288
295
|
};
|
|
289
296
|
}
|
|
@@ -34,6 +34,8 @@ export type Row = (Owned & {
|
|
|
34
34
|
synthetic?: true;
|
|
35
35
|
/** Who sent it, when not the session's own user in a window (a channel, an event). */
|
|
36
36
|
origin?: PromptOrigin;
|
|
37
|
+
/** Held for the owner's computer of a live share (`ChatEvent.heldFor`): the owner's name. */
|
|
38
|
+
heldFor?: string;
|
|
37
39
|
}) | (Owned & {
|
|
38
40
|
kind: 'markdown';
|
|
39
41
|
id: string;
|
|
@@ -106,6 +108,8 @@ export type Row = (Owned & {
|
|
|
106
108
|
resume: 'continue' | 'retry';
|
|
107
109
|
prompt?: string;
|
|
108
110
|
};
|
|
111
|
+
/** Who stopped the run, when a named person or client did: the row reads "Stopped by <name>". */
|
|
112
|
+
stoppedBy?: StreamEvent['stoppedBy'];
|
|
109
113
|
/**
|
|
110
114
|
* The broken environment this error stopped on (`detail.environment`) was
|
|
111
115
|
* set up again, or answered again, later in the transcript (`markRunFailures`):
|
|
@@ -136,7 +140,7 @@ export type Row = (Owned & {
|
|
|
136
140
|
}) | (Owned & {
|
|
137
141
|
/**
|
|
138
142
|
* Background tasks that ended together: two or more consecutive
|
|
139
|
-
* `task` rows of one owner behind one line (`3 tasks ended
|
|
143
|
+
* `task` rows of one owner behind one line (`3 tasks ended, 1
|
|
140
144
|
* failed`) that opens onto each. Produced by {@link batchTaskRuns}.
|
|
141
145
|
*/
|
|
142
146
|
kind: 'task-batch';
|
|
@@ -33,6 +33,7 @@ export declare const TRANSCRIPT_LABELS: {
|
|
|
33
33
|
interactionWaitingAnswers: string;
|
|
34
34
|
interactionDismissed: string;
|
|
35
35
|
interactionAnsweredBy: (who: string) => string;
|
|
36
|
+
interactionAnsweredFirst: (who: string | undefined, decision: string) => string;
|
|
36
37
|
badgePathUnavailable: string;
|
|
37
38
|
badgeNoComposer: string;
|
|
38
39
|
badgeActionFailed: string;
|
package/dist/chat/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { TranscriptRows, TranscriptRowsInput, TranscriptSource, useSelectStops,
|
|
|
16
16
|
import { HostStatusDot, HostStatusDotProps } from "./HostStatusDot.js";
|
|
17
17
|
import { HostTranscript, HostTranscriptProps } from "./HostTranscript.js";
|
|
18
18
|
import "./interactions/index.js";
|
|
19
|
+
import { OrchestratorBadge, OrchestratorBadgeProps } from "./OrchestratorBadge.js";
|
|
19
20
|
import { PdfPreview, PdfPreviewProps } from "./PdfPreview.js";
|
|
20
21
|
import { providerColor, providerHue, providerTint } from "./provider-color.js";
|
|
21
22
|
import { RunEstimateChip, RunEstimateChipProps, RunEstimatesProvider, RunEstimatesProviderProps, useRunEstimate } from "./RunEstimateChip.js";
|
|
@@ -25,6 +26,7 @@ import { GroupGlyph, GroupGlyphProps, SessionGroupHeader, SessionGroupHeaderProp
|
|
|
25
26
|
import { SessionHostHeader, SessionHostHeaderProps } from "./SessionHostHeader.js";
|
|
26
27
|
import { SessionList, SessionListProps } from "./SessionList.js";
|
|
27
28
|
import { SessionListRow, SessionListRowProps } from "./SessionListRow.js";
|
|
29
|
+
import { SessionRow, SessionRowBadge, SessionRowList, SessionRowListProps, SessionRowProps, SessionRowState } from "./SessionRow.js";
|
|
28
30
|
import { TranscriptRenderersProvider, TranscriptRenderersProviderProps } from "./transcript/renderer-slots.js";
|
|
29
31
|
import { AttachmentLabelParts, CodeBlockSlotProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, InlineTextSlotProps, MarkdownSlotProps, PromptSlotProps, SessionTitleSlotProps, TextPreviewSlotProps, ToolBodySlotProps, TranscriptRenderers, defaultAttachmentLabel, useTranscriptRenderers } from "./transcript/renderers.js";
|
|
30
32
|
import { SessionStreamsProvider, SessionStreamsProviderProps, useCaptureRunState, useHasSessionEvents, useIsSessionHydrated, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript } from "./SessionStreamsProvider.js";
|
|
@@ -41,7 +43,7 @@ import { Composer, ComposerHandle, ComposerProps, ComposerResult, ComposerSubmit
|
|
|
41
43
|
import { HostAgentPicker, HostAgentPickerProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps } from "./composer/HostPickers.js";
|
|
42
44
|
import { ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerStatusPills, ComposerStatusPillsProps } from "./composer/ComposerControls.js";
|
|
43
45
|
import { ComposerHostProvider, ComposerHostProviderProps, useComposerHost, useComposerLabels } from "./composer/ComposerHostProvider.js";
|
|
44
|
-
import { ContextBreakdown, ContextBreakdownData, ContextBreakdownProps, colorForCategory } from "./composer/ContextBreakdown.js";
|
|
46
|
+
import { ContextBreakdown, ContextBreakdownData, ContextBreakdownProps, ContextBreakdownShape, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, colorForCategory, contextBreakdownShape } from "./composer/ContextBreakdown.js";
|
|
45
47
|
import { ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, contextGauge } from "./composer/ContextOrb.js";
|
|
46
48
|
import { ConversationBadges, ConversationBadgesProps } from "./composer/ConversationBadges.js";
|
|
47
49
|
import { ComposerDock, ComposerDockProps, DockCard, DockCardProps, DockRow, DockRowProps } from "./composer/DockCard.js";
|
|
@@ -134,7 +136,7 @@ import { Markdown, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps,
|
|
|
134
136
|
import { ChipOpener, CommandScope, CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, MarkdownContextValue, OpenSessionContext } from "./transcript/markdown-context.js";
|
|
135
137
|
import { MermaidDiagram, MermaidDiagramProps } from "./transcript/MermaidDiagram.js";
|
|
136
138
|
import { MessageGroupRow, MessageGroupRowProps } from "./transcript/messages.js";
|
|
137
|
-
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 "./transcript/notices.js";
|
|
139
|
+
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 "./transcript/notices.js";
|
|
138
140
|
import { AttachmentIcon, AttachmentIconProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps } from "./transcript/prompt.js";
|
|
139
141
|
import { PromptLines, PromptLinesProps, copyPromptLines } from "./transcript/prompt-lines.js";
|
|
140
142
|
import { PromptEcho, PromptEchoProps } from "./transcript/PromptEcho.js";
|
|
@@ -177,4 +179,4 @@ import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
|
177
179
|
import { MarkdownViews, MarkdownViewsProps } from "./transcript/view-scope.js";
|
|
178
180
|
import "./transcript/index.js";
|
|
179
181
|
import { useChatLabels } from "./useChatLabels.js";
|
|
180
|
-
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AgentPickerDialogProps, AgentPickerProps, AgentProfile, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AnsweredQuestions, AnsweredQuestionsProps, ApprovalDock, ApprovalDockProps, ArchivedBanner, ArchivedBannerProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelFn, AttachmentLabelParts, AttachmentNotices, AttachmentNoticesProps, AttachmentRefusedError, AttachmentRow, AttachmentRowProps, AttachmentTextState, AttachmentTiles, AttachmentTilesProps, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChatProvider, ChatProviderProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, Composer, type ComposerAttachment, ComposerBadge, ComposerBadgeTone, ComposerBadges, ComposerBadgesProps, ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerDock, ComposerDockProps, ComposerDraft, ComposerHandle, ComposerHostProvider, ComposerHostProviderProps, ComposerProps, ComposerResult, ComposerRetry, ComposerSearch, ComposerStatusPills, ComposerStatusPillsProps, ComposerSubmit, ComposerTarget, ContextBreakdown, type ContextBreakdownData, ContextBreakdownProps, ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, ConversationBadges, ConversationBadgesProps, Cursor, CvRow, CvRowProps, CycleAgentOptions, DEFAULT_BADGE_ORDER, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DaemonOrbButtonProps, DaemonOrbProps, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, DockCard, DockCardProps, DockRow, DockRowProps, Dot, DotProps, DraftPickers, DraftPickersProps, DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, EFFORT_LEVELS, EditDiffBlock, EditDiffBlockProps, EffortLevel, EffortPickerDialog, EffortPickerDialogProps, ElicitationCard, ElicitationCardProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, ForcedRows, GUTTER_STEP_PX, GroupGlyph, GroupGlyphProps, HostAgentPicker, HostAgentPickerProps, HostBadge, HostBadgeProps, HostComposer, HostComposerProps, HostContextOrb, HostContextOrbProps, HostInteractions, HostInteractionsProps, HostModelChainList, HostModelChainListProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps, HostPicker, HostPickerProps, HostStatusDot, HostStatusDotProps, HostTranscript, HostTranscriptProps, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, ImageModelList, ImageModelListProps, type ImageModelRow, InboxPanel, InboxPanelProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionCard, InteractionCardProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MentionItem, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, type ModelCatalogRow, ModelCatalogState, ModelChainFooter, ModelChainFooterProps, ModelChainHeader, ModelChainHeaderProps, ModelChainImages, ModelChainList, ModelChainListProps, ModelChainPopover, ModelChainPopoverProps, ModelChainRow, ModelChainRowProps, ModelChainRows, ModelChainRowsProps, ModelChainTooltip, ModelChainTooltipProps, ModelChoice, ModelFlag, ModelFlagProps, ModelGroupHeader, ModelGroupHeaderProps, ModelKind, ModelMeta, ModelMetaProps, ModelOption, ModelOptionsPicker, ModelOptionsPickerProps, type ModelPickRef, ModelPicker, ModelPickerDialog, ModelPickerDialogProps, ModelPickerFrame, ModelPickerFrameProps, ModelPickerProps, ModelProviderChip, ModelProviderChipProps, ModelProviderPills, ModelProviderPillsProps, ModelReasoning, ModelReasoningProps, ModelVerdict, ModelVerdictProps, ModelWindow, ModelWindowProps, NO_COMPOSER_HINT, NestedToolCalls, NestedToolCallsProps, NewChatsDefault, NewSessionDefaults, NewSessionModelSource, NoticeRow, NoticeRowProps, OPTION_ICON, OpenBadgeMenu, OpenSessionContext, OrbState, OrderedBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, ParsedRef, ParsedReferenceUrl, PdfPreview, PdfPreviewProps, PickerGroup, PickerPill, PickerPillProps, PlacePicker, PlacePickerHosts, PlacePickerProps, PlanBody, PlanBodyProps, PlanCard, PlanCardProps, ProjectMenu, ProjectMenuProps, PromptEcho, PromptEchoProps, PromptHistoryProvider, PromptHistoryProviderProps, PromptHistoryValue, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, QuestionField, QuestionFieldProps, QuestionForm, QuestionFormProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RetryPill, RetryPillProps, type RowActionItem, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunEstimateChip, RunEstimateChipProps, RunEstimatesProvider, RunEstimatesProviderProps, RunReceiptInline, RunReceiptInlineProps, RunStatusChip, RunStatusChipProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScopeToggle, ScopeToggleProps, ScrollPosition, SearchHighlightStyle, SecretInput, SecretInputProps, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnHintKeysProps, type SelectTurnHintProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SendButton, SendButtonProps, SendPromptControls, SendPromptOptions, SendRoute, ServerScopeToggle, ServerScopeToggleProps, SessionActivityFilter, SessionArchiveFilter, SessionCard, SessionCardProps, SessionDotState, SessionEventRow, SessionEventRowProps, SessionFilterAction, SessionFilterAxis, SessionFilterExtra, SessionFilterMenu, SessionFilterMenuProps, SessionFilterPlacement, SessionGroupHeader, SessionGroupHeaderProps, SessionHostHeader, SessionHostHeaderProps, SessionList, SessionListProps, SessionListRow, SessionListRowProps, SessionMeters, SessionMetersTarget, SessionProjectAxis, SessionStreamsProvider, SessionStreamsProviderProps, SessionTitleSlotProps, SessionView, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, ShowMoreRow, ShowMoreRowProps, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StatusDot, StatusDotProps, StatusOrb, StatusOrbProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, SuggestionKind, SuggestionPopup, SuggestionPopupProps, SuggestionSource, SuggestionState, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreview, TextPreviewProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingLevel, ThinkingRow, ThinkingRowProps, Throbber, ThrobberProps, ThrobberVariant, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, Transcript, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptOptions, TranscriptProps, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSelection, TranscriptSettling, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, WorkerDetailsProps, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
182
|
+
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AgentPickerDialogProps, AgentPickerProps, AgentProfile, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AnsweredQuestions, AnsweredQuestionsProps, ApprovalDock, ApprovalDockProps, ArchivedBanner, ArchivedBannerProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelFn, AttachmentLabelParts, AttachmentNotices, AttachmentNoticesProps, AttachmentRefusedError, AttachmentRow, AttachmentRowProps, AttachmentTextState, AttachmentTiles, AttachmentTilesProps, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChatProvider, ChatProviderProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, Composer, type ComposerAttachment, ComposerBadge, ComposerBadgeTone, ComposerBadges, ComposerBadgesProps, ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerDock, ComposerDockProps, ComposerDraft, ComposerHandle, ComposerHostProvider, ComposerHostProviderProps, ComposerProps, ComposerResult, ComposerRetry, ComposerSearch, ComposerStatusPills, ComposerStatusPillsProps, ComposerSubmit, ComposerTarget, ContextBreakdown, type ContextBreakdownData, ContextBreakdownProps, ContextBreakdownShape, ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, ConversationBadges, ConversationBadgesProps, Cursor, CvRow, CvRowProps, CycleAgentOptions, DEFAULT_BADGE_ORDER, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DaemonOrbButtonProps, DaemonOrbProps, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, DockCard, DockCardProps, DockRow, DockRowProps, Dot, DotProps, DraftPickers, DraftPickersProps, DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, EFFORT_LEVELS, EditDiffBlock, EditDiffBlockProps, EffortLevel, EffortPickerDialog, EffortPickerDialogProps, ElicitationCard, ElicitationCardProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, ForcedRows, GUTTER_STEP_PX, GroupGlyph, GroupGlyphProps, HostAgentPicker, HostAgentPickerProps, HostBadge, HostBadgeProps, HostComposer, HostComposerProps, HostContextOrb, HostContextOrbProps, HostInteractions, HostInteractionsProps, HostModelChainList, HostModelChainListProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps, HostPicker, HostPickerProps, HostStatusDot, HostStatusDotProps, HostTranscript, HostTranscriptProps, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, ImageModelList, ImageModelListProps, type ImageModelRow, InboxPanel, InboxPanelProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionCard, InteractionCardProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MentionItem, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, type ModelCatalogRow, ModelCatalogState, ModelChainFooter, ModelChainFooterProps, ModelChainHeader, ModelChainHeaderProps, ModelChainImages, ModelChainList, ModelChainListProps, ModelChainPopover, ModelChainPopoverProps, ModelChainRow, ModelChainRowProps, ModelChainRows, ModelChainRowsProps, ModelChainTooltip, ModelChainTooltipProps, ModelChoice, ModelFlag, ModelFlagProps, ModelGroupHeader, ModelGroupHeaderProps, ModelKind, ModelMeta, ModelMetaProps, ModelOption, ModelOptionsPicker, ModelOptionsPickerProps, type ModelPickRef, ModelPicker, ModelPickerDialog, ModelPickerDialogProps, ModelPickerFrame, ModelPickerFrameProps, ModelPickerProps, ModelProviderChip, ModelProviderChipProps, ModelProviderPills, ModelProviderPillsProps, ModelReasoning, ModelReasoningProps, ModelVerdict, ModelVerdictProps, ModelWindow, ModelWindowProps, NO_COMPOSER_HINT, NestedToolCalls, NestedToolCallsProps, NewChatsDefault, NewSessionDefaults, NewSessionModelSource, NoticeRow, NoticeRowProps, OPTION_ICON, OpenBadgeMenu, OpenSessionContext, OrbState, OrchestratorBadge, OrchestratorBadgeProps, OrderedBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, ParsedRef, ParsedReferenceUrl, PdfPreview, PdfPreviewProps, PickerGroup, PickerPill, PickerPillProps, PlacePicker, PlacePickerHosts, PlacePickerProps, PlanBody, PlanBodyProps, PlanCard, PlanCardProps, ProjectMenu, ProjectMenuProps, PromptEcho, PromptEchoProps, PromptHistoryProvider, PromptHistoryProviderProps, PromptHistoryValue, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, QuestionField, QuestionFieldProps, QuestionForm, QuestionFormProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RetryPill, RetryPillProps, type RowActionItem, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunEstimateChip, RunEstimateChipProps, RunEstimatesProvider, RunEstimatesProviderProps, RunReceiptInline, RunReceiptInlineProps, RunStatusChip, RunStatusChipProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScopeToggle, ScopeToggleProps, ScrollPosition, SearchHighlightStyle, SecretInput, SecretInputProps, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnHintKeysProps, type SelectTurnHintProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SendButton, SendButtonProps, SendPromptControls, SendPromptOptions, SendRoute, ServerScopeToggle, ServerScopeToggleProps, SessionActivityFilter, SessionArchiveFilter, SessionCard, SessionCardProps, SessionDotState, SessionEventRow, SessionEventRowProps, SessionFilterAction, SessionFilterAxis, SessionFilterExtra, SessionFilterMenu, SessionFilterMenuProps, SessionFilterPlacement, SessionGroupHeader, SessionGroupHeaderProps, SessionHostHeader, SessionHostHeaderProps, SessionList, SessionListProps, SessionListRow, SessionListRowProps, SessionMeters, SessionMetersTarget, SessionProjectAxis, SessionRow, SessionRowBadge, SessionRowList, SessionRowListProps, SessionRowProps, SessionRowState, SessionStreamsProvider, SessionStreamsProviderProps, SessionTitleSlotProps, SessionView, SetupChangedRow, SetupChangedRowProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, ShowMoreRow, ShowMoreRowProps, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StatusDot, StatusDotProps, StatusOrb, StatusOrbProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, SuggestionKind, SuggestionPopup, SuggestionPopupProps, SuggestionSource, SuggestionState, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreview, TextPreviewProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingLevel, ThinkingRow, ThinkingRowProps, Throbber, ThrobberProps, ThrobberVariant, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, Transcript, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptOptions, TranscriptProps, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSelection, TranscriptSettling, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, WorkerDetailsProps, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextBreakdownShape, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
package/dist/chat/index.js
CHANGED
|
@@ -40,8 +40,8 @@ import { HostStatusDot } from "./HostStatusDot.js";
|
|
|
40
40
|
import { parseReferenceUrl, referenceUrl, remarkReferences } from "./transcript/remark-references.js";
|
|
41
41
|
import { ProseMarkdown } from "./transcript/ProseMarkdown.js";
|
|
42
42
|
import { HostTranscript } from "./HostTranscript.js";
|
|
43
|
+
import { OrchestratorBadge } from "./OrchestratorBadge.js";
|
|
43
44
|
import { PdfPreview } from "./PdfPreview.js";
|
|
44
|
-
import { providerColor, providerHue, providerTint } from "./provider-color.js";
|
|
45
45
|
import { EnvironmentSetupDetails, EnvironmentSetupRow } from "./transcript/environment-setup.js";
|
|
46
46
|
import { WorkerDetails } from "./transcript/fold-worker.js";
|
|
47
47
|
import { ToolDetails } from "./transcript/tool-details.js";
|
|
@@ -49,12 +49,12 @@ import { ImageGenerationBlock, drawsImageGeneration, imageRequestsOf, savedPaths
|
|
|
49
49
|
import { ModelVerdict, NestedToolCalls, ToolRow } from "./transcript/tool-row.js";
|
|
50
50
|
import { ExchangeFoldRow, FoldHeader, LiveScriptsContext } from "./transcript/fold.js";
|
|
51
51
|
import { SelectCursor } from "./transcript/SelectCursor.js";
|
|
52
|
-
import {
|
|
52
|
+
import { providerColor, providerHue, providerTint } from "./provider-color.js";
|
|
53
53
|
import { SubagentBlock } from "./transcript/SubagentBlock.js";
|
|
54
54
|
import { TranscriptRail, TranscriptRailProvider, useRailOutline, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
55
55
|
import { MessageGroupRow } from "./transcript/messages.js";
|
|
56
56
|
import { AuthFailureCard } from "./transcript/AuthFailureCard.js";
|
|
57
|
-
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./transcript/notices.js";
|
|
57
|
+
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SetupChangedRow, SpawnEndRow, SpawnStartRow } from "./transcript/notices.js";
|
|
58
58
|
import { CompactSummaryRow, RunReceiptInline, RunSummaryRow } from "./transcript/run-rows.js";
|
|
59
59
|
import { NO_COMPOSER_HINT, __resetComposerScopesForTests, claimComposerFocus, focusComposer, focusComposerWhenReady, hasComposerFor, hasFocusedComposer, isFocusedComposer, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, registerComposerScope, takePendingComposerFocus, textAttachment, useComposerFor, useHasFocusedComposer } from "./composer/composer-bus.js";
|
|
60
60
|
import { RunnableCodeBlock, ShellBlockProvider } from "./transcript/shell-block.js";
|
|
@@ -64,11 +64,13 @@ import { UserBashRow } from "./transcript/user-bash.js";
|
|
|
64
64
|
import { TranscriptRow, TranscriptRowSlot, isHiddenRow } from "./transcript/TranscriptRow.js";
|
|
65
65
|
import { useSelectStops, useTranscriptRows } from "./transcript/use-transcript-rows.js";
|
|
66
66
|
import { useTranscriptSelectionCopy } from "./transcript/useTranscriptSelectionCopy.js";
|
|
67
|
+
import { RunEstimateChip, RunEstimatesProvider, useRunEstimate } from "./RunEstimateChip.js";
|
|
67
68
|
import { SessionFilterMenu } from "./SessionFilterMenu.js";
|
|
68
69
|
import { GroupGlyph, SessionGroupHeader, ShowMoreRow } from "./SessionGroupHeader.js";
|
|
69
70
|
import { SessionHostHeader } from "./SessionHostHeader.js";
|
|
70
71
|
import { SessionList } from "./SessionList.js";
|
|
71
72
|
import { SessionListRow } from "./SessionListRow.js";
|
|
73
|
+
import { SessionRow, SessionRowList } from "./SessionRow.js";
|
|
72
74
|
import { SessionStreamsProvider, useCaptureRunState, useHasSessionEvents, useIsSessionHydrated, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript } from "./SessionStreamsProvider.js";
|
|
73
75
|
import { StatusDot, dotStateFor } from "./StatusDot.js";
|
|
74
76
|
import { MAX_TEXT_PREVIEW_BYTES, TextPreview, useAttachmentText } from "./TextPreview.js";
|
|
@@ -92,7 +94,7 @@ import { SendButton } from "./composer/SendButton.js";
|
|
|
92
94
|
import { SuggestionPopup, TRIGGER } from "./composer/suggestions.js";
|
|
93
95
|
import { ATTACHMENT_NOTICE_MS, useAttachmentIngest, useAttachmentNotices } from "./composer/useAttachmentIngest.js";
|
|
94
96
|
import { Composer } from "./composer/Composer.js";
|
|
95
|
-
import { ContextBreakdown, colorForCategory } from "./composer/ContextBreakdown.js";
|
|
97
|
+
import { ContextBreakdown, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, colorForCategory, contextBreakdownShape } from "./composer/ContextBreakdown.js";
|
|
96
98
|
import { ContextOrb, contextGauge } from "./composer/ContextOrb.js";
|
|
97
99
|
import { resourceErrorText, useClearDraftKnobs, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs } from "./composer/use-composer-stores.js";
|
|
98
100
|
import { HostContextOrb } from "./composer/HostContextOrb.js";
|
|
@@ -164,4 +166,4 @@ import { useTranscriptFindKey } from "./transcript/useTranscriptFindKey.js";
|
|
|
164
166
|
import { useTranscriptFind } from "./transcript/useTranscriptFind.js";
|
|
165
167
|
import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
166
168
|
import { useTranscriptScroll } from "./transcript/useTranscriptScroll.js";
|
|
167
|
-
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AnsiSpans, AnsiText, AnsweredQuestions, ApprovalDock, ArchivedBanner, AttachmentIcon, AttachmentNotices, AttachmentRefusedError, AttachmentRow, AttachmentTiles, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChatProvider, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, Composer, ComposerBadges, ComposerControls, ComposerDock, ComposerHostProvider, ComposerStatusPills, ContextBreakdown, ContextOrb, ConversationBadges, CvRow, DEFAULT_BADGE_ORDER, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, DockCard, DockRow, Dot, DraftPickers, EFFORT_LEVELS, EditDiffBlock, EffortPickerDialog, ElicitationCard, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, GroupGlyph, HostAgentPicker, HostBadge, HostComposer, HostContextOrb, HostInteractions, HostModelChainList, HostModelOptionsPicker, HostModelPicker, HostPicker, HostStatusDot, HostTranscript, INLINE_CODE_CLASS, ImageGenerationBlock, ImageModelList, InboxPanel, InfoRow, InlineChipText, InlineCode, InteractionCard, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelChainFooter, ModelChainHeader, ModelChainList, ModelChainPopover, ModelChainRow, ModelChainRows, ModelChainTooltip, ModelFlag, ModelGroupHeader, ModelMeta, ModelOptionsPicker, ModelPicker, ModelPickerDialog, ModelPickerFrame, ModelProviderChip, ModelProviderPills, ModelReasoning, ModelVerdict, ModelWindow, NO_COMPOSER_HINT, NestedToolCalls, NoticeRow, OPTION_ICON, OpenSessionContext, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PdfPreview, PickerPill, PlacePicker, PlanBody, PlanCard, ProjectMenu, PromptEcho, PromptHistoryProvider, PromptLines, ProseMarkdown, QuestionField, QuestionForm, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RetryPill, RowFrame, RowIconsContext, RunEstimateChip, RunEstimatesProvider, RunReceiptInline, RunStatusChip, RunSummaryRow, RunnableCodeBlock, ScopeToggle, SearchHighlightStyle, SecretInput, SelectCursor, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnProvider, SendButton, ServerScopeToggle, SessionCard, SessionEventRow, SessionFilterMenu, SessionGroupHeader, SessionHostHeader, SessionList, SessionListRow, SessionStreamsProvider, ShellBlockProvider, ShowMoreRow, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, StatusDot, StatusOrb, SubagentBlock, SuggestionPopup, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskRow, TextPreview, TextRow, ThinkingBatchRow, ThinkingRow, Throbber, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, Transcript, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
169
|
+
export { ATTACHMENT_NOTICE_MS, AUTO_FILL_PAGES, AgentPicker, AgentPickerDialog, AnsiSpans, AnsiText, AnsweredQuestions, ApprovalDock, ArchivedBanner, AttachmentIcon, AttachmentNotices, AttachmentRefusedError, AttachmentRow, AttachmentTiles, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChatProvider, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, Composer, ComposerBadges, ComposerControls, ComposerDock, ComposerHostProvider, ComposerStatusPills, ContextBreakdown, ContextOrb, ConversationBadges, CvRow, DEFAULT_BADGE_ORDER, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, DEFAULT_TRANSCRIPT_OPTIONS, DEFAULT_TRANSCRIPT_RENDERERS, DaemonOrb, DaemonOrbButton, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, DockCard, DockRow, Dot, DraftPickers, EFFORT_LEVELS, EditDiffBlock, EffortPickerDialog, ElicitationCard, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, GroupGlyph, HostAgentPicker, HostBadge, HostComposer, HostContextOrb, HostInteractions, HostModelChainList, HostModelOptionsPicker, HostModelPicker, HostPicker, HostStatusDot, HostTranscript, INLINE_CODE_CLASS, ImageGenerationBlock, ImageModelList, InboxPanel, InfoRow, InlineChipText, InlineCode, InteractionCard, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MATCHES, MAX_MEDIA_ATTACHMENT_BYTES, MAX_TEXT_PREVIEW_BYTES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelChainFooter, ModelChainHeader, ModelChainList, ModelChainPopover, ModelChainRow, ModelChainRows, ModelChainTooltip, ModelFlag, ModelGroupHeader, ModelMeta, ModelOptionsPicker, ModelPicker, ModelPickerDialog, ModelPickerFrame, ModelProviderChip, ModelProviderPills, ModelReasoning, ModelVerdict, ModelWindow, NO_COMPOSER_HINT, NestedToolCalls, NoticeRow, OPTION_ICON, OpenSessionContext, OrchestratorBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PdfPreview, PickerPill, PlacePicker, PlanBody, PlanCard, ProjectMenu, PromptEcho, PromptHistoryProvider, PromptLines, ProseMarkdown, QuestionField, QuestionForm, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RetryPill, RowFrame, RowIconsContext, RunEstimateChip, RunEstimatesProvider, RunReceiptInline, RunStatusChip, RunSummaryRow, RunnableCodeBlock, ScopeToggle, SearchHighlightStyle, SecretInput, SelectCursor, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnProvider, SendButton, ServerScopeToggle, SessionCard, SessionEventRow, SessionFilterMenu, SessionGroupHeader, SessionHostHeader, SessionList, SessionListRow, SessionRow, SessionRowList, SessionStreamsProvider, SetupChangedRow, ShellBlockProvider, ShowMoreRow, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, StatusDot, StatusOrb, SubagentBlock, SuggestionPopup, THINKING_LEVELS, TRANSCRIPT_OPTION_KEYS, TRIGGER, TaskBatchRow, TaskRow, TextPreview, TextRow, ThinkingBatchRow, ThinkingRow, Throbber, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, Transcript, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WORK_HOLD_MS, WORK_SHOW_MS, WorkerDetails, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, attachmentSrcOf, catalogFromProviders, claimComposerFocus, classifyInlineRef, colorForCategory, compactWindow, contextBreakdownShape, contextGauge, copyPromptLines, createTurnCommands, decodeDataUrlAsText, defaultAttachmentLabel, defaultAttachmentTileLabel, detectLanguage, dotStateFor, drawsImageGeneration, effectiveImageModel, fileBadgeName, fileBadgeSpec, findModel, findRefs, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, hasInteractionBody, holdForceMountRows, imageCatalogRows, imageModelKey, imageRequestsOf, isAudioAttachment, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isHiddenRow, isPdfAttachment, isRequired, isTextLike, isVideoAttachment, lineStateOf, lineupKeyOf, linkGlyph, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, numberRef, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, optionTitle, orbState, orderComposerBadges, parseRefUrl, parseReferenceUrl, parseToolMedia, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, providerColor, providerHue, providerTint, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refHref, refKey, referenceUrl, registerComposerScope, remarkReferences, remarkRefs, resolveChain, resolvePick, resourceErrorText, revealRow, rowKey, savedPaths, seedDefaults, shouldFoldPasteToAttachment, siteIconValue, suggestionExtension, takePendingComposerFocus, textAttachment, toolMediaSrcOf, turnViewsOf, unresolveChain, useAgentProfiles, useAllInteractions, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useAttachmentText, useBackgroundMount, useBadgeMenu, useCacheHints, useCaptureRunState, useChatHost, useChatLabels, useChipResolution, useClearDraftKnobs, useCommand, useCommitInfo, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useComposerSearch, useCycleAgent, useDraftKnobs, useDraftTarget, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHasFocusedComposer, useHasSessionEvents, useHostResource, useHostSessions, useHostTurnMenu, useInteractionHead, useIsSessionHydrated, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelName, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, useOptionalChatHost, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, usePendingInteractions, usePromptHistory, useProviderReadyPoll, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useRememberedKnobs, useResolveChipNow, useRowIcons, useRunAccruedCost, useRunElapsedSec, useRunEstimate, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSelectStops, useSelectTurn, useSelectTurnKeys, useSendPrompt, useSessionContextStatus, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionMeters, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useSustainedWork, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptOptions, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause, withPrimary, workShowDelay };
|
|
@@ -2,6 +2,7 @@ import { useChatHost } from "../ChatProvider.js";
|
|
|
2
2
|
import { constant, useReadable } from "../headless/store.js";
|
|
3
3
|
import { useChatLabels } from "../useChatLabels.js";
|
|
4
4
|
import { InteractionCard } from "./InteractionCard.js";
|
|
5
|
+
import { useAnswerInteraction } from "./use-answer-interaction.js";
|
|
5
6
|
import { useMemo } from "react";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
// src/chat/interactions/HostInteractions.tsx
|
|
@@ -15,9 +16,10 @@ function HostInteractions({ sessionId, autoFocus = false, className = "", style,
|
|
|
15
16
|
const host = useChatHost();
|
|
16
17
|
const labels = useChatLabels();
|
|
17
18
|
const interactions = host.interactions;
|
|
19
|
+
const answer = useAnswerInteraction();
|
|
18
20
|
const store = useMemo(() => interactions?.pending(sessionId) ?? NONE, [interactions, sessionId]);
|
|
19
21
|
const pending = useReadable(store);
|
|
20
|
-
if (!interactions || pending.length === 0) return null;
|
|
22
|
+
if (!interactions || !answer || pending.length === 0) return null;
|
|
21
23
|
const cancel = interactions.cancel?.bind(interactions);
|
|
22
24
|
return /* @__PURE__ */ jsx("ul", {
|
|
23
25
|
className: `m-0 p-0 list-none flex flex-col gap-2 ${className}`,
|
|
@@ -27,7 +29,7 @@ function HostInteractions({ sessionId, autoFocus = false, className = "", style,
|
|
|
27
29
|
interaction: item,
|
|
28
30
|
autoFocus: autoFocus && i === 0,
|
|
29
31
|
Markdown,
|
|
30
|
-
onAnswer: (response) =>
|
|
32
|
+
onAnswer: (response) => answer(item.requestId, response),
|
|
31
33
|
...cancel ? { onDismiss: () => cancel(item.requestId) } : {}
|
|
32
34
|
}) }, item.requestId))
|
|
33
35
|
});
|