zidane-ui 9.4.0 → 9.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/SessionList.d.ts +1 -1
- package/dist/chat/SessionList.js +1 -1
- 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/Transcript.js +6 -2
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/composer/ContextBreakdown.d.ts +27 -2
- package/dist/chat/composer/ContextBreakdown.js +123 -2
- package/dist/chat/composer/DraftPickers.d.ts +8 -2
- package/dist/chat/composer/DraftPickers.js +7 -3
- 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 +7 -2
- package/dist/chat/composer/ScopeToggle.js +4 -2
- package/dist/chat/composer/ServerScopeToggle.d.ts +7 -2
- package/dist/chat/composer/ServerScopeToggle.js +3 -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 +12 -1
- package/dist/chat/composer/use-draft-target.js +22 -10
- 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/fixtures/demo-transcript-all-kinds.d.ts +6 -0
- package/dist/chat/headless/fixtures/demo-transcript-all-kinds.js +90 -2
- 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 +15 -10
- package/dist/chat/headless/index.js +35 -30
- package/dist/chat/headless/labels.d.ts +43 -4
- package/dist/chat/headless/labels.js +40 -9
- 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 +36 -2
- package/dist/chat/headless/session-list.js +7 -0
- 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 +33 -7
- package/dist/chat/headless/sidebar/inbox.js +65 -26
- package/dist/chat/headless/sidebar/index.d.ts +6 -4
- package/dist/chat/headless/sidebar/index.js +5 -3
- package/dist/chat/headless/sidebar/labels.d.ts +36 -7
- package/dist/chat/headless/sidebar/labels.js +1 -4
- 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 +64 -6
- package/dist/chat/headless/sidebar/rows.js +98 -18
- 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/derive.d.ts +1 -0
- package/dist/chat/headless/transcript/derive.js +3 -1
- package/dist/chat/headless/transcript/fold.js +1 -0
- package/dist/chat/headless/transcript/index.d.ts +3 -2
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +8 -1
- package/dist/chat/headless/transcript/rail.js +10 -2
- package/dist/chat/headless/transcript/rows.d.ts +31 -3
- package/dist/chat/headless/transcript/select-stops.js +1 -0
- package/dist/chat/headless/transcript/session-groups.d.ts +36 -0
- package/dist/chat/headless/transcript/session-groups.js +94 -0
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/index.d.ts +8 -5
- package/dist/chat/index.js +9 -6
- 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 +26 -2
- package/dist/chat/sidebar/InboxList.js +65 -49
- 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 +51 -2
- package/dist/chat/sidebar/SessionSidebar.js +87 -17
- package/dist/chat/sidebar/SidebarFooter.d.ts +2 -23
- package/dist/chat/sidebar/SidebarFooter.js +2 -43
- package/dist/chat/sidebar/SidebarGroupHeader.d.ts +12 -3
- package/dist/chat/sidebar/SidebarGroupHeader.js +36 -15
- 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.d.ts +4 -1
- package/dist/chat/sidebar/useInboxRows.js +8 -6
- package/dist/chat/sidebar/useInboxTriage.d.ts +8 -2
- package/dist/chat/sidebar/useInboxTriage.js +29 -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/testing/index.d.ts +2 -2
- package/dist/chat/testing/index.js +2 -2
- package/dist/chat/transcript/BadgeMenu.d.ts +9 -2
- package/dist/chat/transcript/BadgeMenu.js +20 -2
- package/dist/chat/transcript/PromptEcho.js +15 -2
- package/dist/chat/transcript/PromptOriginLabel.d.ts +1 -1
- package/dist/chat/transcript/SubagentBlock.js +24 -7
- package/dist/chat/transcript/TranscriptRail.d.ts +3 -1
- package/dist/chat/transcript/TranscriptRail.js +15 -5
- package/dist/chat/transcript/TranscriptRow.js +9 -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/frame.d.ts +7 -0
- package/dist/chat/transcript/frame.js +51 -5
- package/dist/chat/transcript/index.d.ts +5 -4
- package/dist/chat/transcript/index.js +4 -3
- 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 +34 -12
- package/dist/chat/transcript/notices.js +213 -97
- package/dist/chat/transcript/prompt.js +8 -1
- package/dist/chat/transcript/receipt-parts.d.ts +29 -2
- package/dist/chat/transcript/receipt-parts.js +40 -7
- package/dist/chat/transcript/row-estimate.js +4 -1
- package/dist/chat/transcript/run-rows.js +2 -5
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/session-groups.d.ts +21 -0
- package/dist/chat/transcript/session-groups.js +154 -0
- package/dist/chat/transcript/session-line.d.ts +63 -0
- package/dist/chat/transcript/session-line.js +114 -0
- 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-DPbpsCtl.d.ts} +248 -118
- 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 +20 -8
- 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 +55 -0
- package/dist/session/use-home-projects.js +154 -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 +117 -0
- package/dist/settings/headless/mcp.d.ts +2 -0
- package/dist/settings/headless/mcp.js +3 -2
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.d.ts +3 -2
- package/dist/settings/index.js +13 -12
- 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/McpSection.js +3 -5
- 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 +170 -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 +61 -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
|
@@ -50,6 +50,7 @@ function* rowsWithin(row) {
|
|
|
50
50
|
for (const r of row.between) yield* rowsWithin(r);
|
|
51
51
|
yield* rowsWithin(row.current);
|
|
52
52
|
}
|
|
53
|
+
if (row.kind === "session-event-group") for (const r of row.rows) yield* rowsWithin(r);
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
55
56
|
* Works out the rail's exchanges from the root clusters a transcript paints.
|
|
@@ -262,6 +263,7 @@ function createTranscriptRailStore() {
|
|
|
262
263
|
hovered: null,
|
|
263
264
|
selected: null,
|
|
264
265
|
outline: null,
|
|
266
|
+
outlinePending: false,
|
|
265
267
|
loadThrough: null
|
|
266
268
|
});
|
|
267
269
|
return {
|
|
@@ -280,10 +282,16 @@ function createTranscriptRailStore() {
|
|
|
280
282
|
...prev,
|
|
281
283
|
selected: id
|
|
282
284
|
}),
|
|
283
|
-
publishOutline: (outline, loadThrough) => state.set((prev) => prev.outline === outline && prev.loadThrough === loadThrough ? prev : {
|
|
285
|
+
publishOutline: (outline, loadThrough) => state.set((prev) => prev.outline === outline && prev.loadThrough === loadThrough && !prev.outlinePending ? prev : {
|
|
284
286
|
...prev,
|
|
285
287
|
outline,
|
|
286
|
-
loadThrough
|
|
288
|
+
loadThrough,
|
|
289
|
+
outlinePending: false
|
|
290
|
+
}),
|
|
291
|
+
expectOutline: () => state.set((prev) => prev.outlinePending && prev.outline === null ? prev : {
|
|
292
|
+
...prev,
|
|
293
|
+
outline: null,
|
|
294
|
+
outlinePending: true
|
|
287
295
|
})
|
|
288
296
|
};
|
|
289
297
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { ChatAttachment } from "../host.js";
|
|
7
7
|
import { PromptOrigin } from "../prompt-origin.js";
|
|
8
8
|
import { EnvironmentSetupRecord, McpJobView, PromptSegmentRef, ScriptProgress } from "zidane/chat/pure";
|
|
9
|
-
import { SessionEventStatus, StreamEvent, ToolFormatLine } from "zidane/chat";
|
|
9
|
+
import { SessionEventStatus as SessionEventStatus$1, StreamEvent, ToolFormatLine } from "zidane/chat";
|
|
10
10
|
import { SkillGroupUse } from "zidane/skills";
|
|
11
11
|
/**
|
|
12
12
|
* Every row carries the optional ownership metadata from its source
|
|
@@ -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';
|
|
@@ -340,7 +344,31 @@ export type Row = (Owned & {
|
|
|
340
344
|
* that reply, as in the TUI.
|
|
341
345
|
*/
|
|
342
346
|
between: Row[];
|
|
347
|
+
}) | (Owned & {
|
|
348
|
+
/**
|
|
349
|
+
* Orchestration: updates from other sessions that came in a row, behind
|
|
350
|
+
* one line ({@link groupSessionEvents}). One kind at every level:
|
|
351
|
+
* `updates` is the whole run, `project` one project's updates when the
|
|
352
|
+
* run spans several, `worktree` the updates from one worktree of a
|
|
353
|
+
* project, `conversation` one session's updates when it sent two or
|
|
354
|
+
* more. `rows` is what the group paints, in order: sections, conversation
|
|
355
|
+
* groups and the `session-event` rows of sessions that sent one update.
|
|
356
|
+
*/
|
|
357
|
+
kind: 'session-event-group';
|
|
358
|
+
id: string;
|
|
359
|
+
level: SessionEventGroupLevel;
|
|
360
|
+
rows: Row[];
|
|
361
|
+
/** Every update in the group, in transcript order. */
|
|
362
|
+
events: SessionEventRowModel[];
|
|
363
|
+
/** The section's name: the project's folder (`project`; `undefined` for updates with no folder), the worktree's branch (`worktree`). */
|
|
364
|
+
place?: string;
|
|
343
365
|
});
|
|
366
|
+
/** How far in a {@link Row} `session-event-group` sits: the run of updates, one project's, one conversation's. */
|
|
367
|
+
export type SessionEventGroupLevel = 'updates' | 'project' | 'worktree' | 'conversation';
|
|
368
|
+
/** A worker's report row: what `SessionEventRow` paints. */
|
|
369
|
+
export type SessionEventRowModel = Extract<Row, {
|
|
370
|
+
kind: 'session-event';
|
|
371
|
+
}>;
|
|
344
372
|
/** A background task that ended: its id, command, outcome, duration and log file. */
|
|
345
373
|
export type TaskInfo = NonNullable<StreamEvent['task']>;
|
|
346
374
|
/** Counts shown on the summary line of a folded exchange. */
|
|
@@ -410,4 +438,4 @@ export interface BashExitMeta {
|
|
|
410
438
|
*/
|
|
411
439
|
export declare function parseBashExitMeta(text: string): BashExitMeta | null;
|
|
412
440
|
/** The status dot a row shows, chosen by {@link dotVariantFor}: a row kind, a tool state, or a session event status. */
|
|
413
|
-
export type DotVariant = 'user' | 'thinking' | 'text' | 'tool-running' | 'tool-ok' | 'tool-err' | 'info' | 'note' | 'error' | 'stopped' | 'spawn-start' | 'spawn-end' | 'compact' | 'messages' | `session-${SessionEventStatus}`;
|
|
441
|
+
export type DotVariant = 'user' | 'thinking' | 'text' | 'tool-running' | 'tool-ok' | 'tool-err' | 'info' | 'note' | 'error' | 'stopped' | 'spawn-start' | 'spawn-end' | 'compact' | 'messages' | 'session-group' | 'session-project' | 'session-worktree' | `session-${SessionEventStatus$1}`;
|
|
@@ -22,6 +22,7 @@ function rowTurnIds(row) {
|
|
|
22
22
|
for (const r of row.between) ids.push(...rowTurnIds(r));
|
|
23
23
|
ids.push(...rowTurnIds(row.current));
|
|
24
24
|
}
|
|
25
|
+
if (row.kind === "session-event-group") for (const r of row.events) ids.push(...rowTurnIds(r));
|
|
25
26
|
return ids;
|
|
26
27
|
}
|
|
27
28
|
const BOUNDARY = /* @__PURE__ */ new Set([
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orchestration: updates from other sessions (`session-event` rows) that
|
|
3
|
+
* come in a row fold behind one group, like an exchange's messages. A busy
|
|
4
|
+
* Main hears a dozen at a time, and one line each buried its own replies.
|
|
5
|
+
*
|
|
6
|
+
* - Two or more top-level updates next to each other make a group. Any other
|
|
7
|
+
* row between them (a reply of the Main, a prompt) ends it, so the Main's
|
|
8
|
+
* answers stay where they happened.
|
|
9
|
+
* - A run of one session's updates is that conversation's group.
|
|
10
|
+
* - Inside, a group that spans several projects holds one section per
|
|
11
|
+
* project (a project's Main hears only its own, so it never has these).
|
|
12
|
+
* In a project, the updates from a worktree gather in a section per
|
|
13
|
+
* worktree; the ones from the project's checkout sit in the project as
|
|
14
|
+
* they are. In each, a session that sent two or more updates gets its own
|
|
15
|
+
* group, and a session that sent one stays its update row. Order is first
|
|
16
|
+
* appearance. Where a session ran is `sessionEventPlace`.
|
|
17
|
+
*
|
|
18
|
+
* A group never spans an exchange start (a prompt ends it), so the incremental
|
|
19
|
+
* deriver's parts never cut one. Each group keeps its id and its object while
|
|
20
|
+
* its updates do: a new update re-renders only the groups it joins.
|
|
21
|
+
*/
|
|
22
|
+
import { Row, SessionEventRowModel } from "./rows.js";
|
|
23
|
+
/**
|
|
24
|
+
* Folds every run of two or more top-level updates into one
|
|
25
|
+
* `session-event-group` row, in place of the run.
|
|
26
|
+
*
|
|
27
|
+
* @param rows - The transcript rows, oldest first.
|
|
28
|
+
*/
|
|
29
|
+
export declare function groupSessionEvents(rows: readonly Row[]): Row[];
|
|
30
|
+
/**
|
|
31
|
+
* The newest update of each conversation in a group: what the session's
|
|
32
|
+
* status is now. The header counts these by status.
|
|
33
|
+
*
|
|
34
|
+
* @param events - The group's updates, in transcript order.
|
|
35
|
+
*/
|
|
36
|
+
export declare function latestPerConversation(events: readonly SessionEventRowModel[]): SessionEventRowModel[];
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { sameMembers } from "./batch.js";
|
|
2
|
+
import { noteTranscriptPass, sessionEventPlace } from "zidane/chat/pure";
|
|
3
|
+
// src/chat/headless/transcript/session-groups.ts
|
|
4
|
+
/** The fewest updates in a row that make a group. */
|
|
5
|
+
const MIN_GROUP = 2;
|
|
6
|
+
/** Groups by their first update, then by id: the same update leads a run, its project and its conversation. */
|
|
7
|
+
const GROUP_CACHE = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
function groupable(row) {
|
|
9
|
+
return row.kind === "session-event" && row.sessionEvent !== void 0 && !row.childId && !row.depth;
|
|
10
|
+
}
|
|
11
|
+
/** `items` in buckets by `key`, in the order each key first appears. */
|
|
12
|
+
function bucket(items, key) {
|
|
13
|
+
const out = /* @__PURE__ */ new Map();
|
|
14
|
+
for (const item of items) {
|
|
15
|
+
const k = key(item);
|
|
16
|
+
const list = out.get(k);
|
|
17
|
+
if (list) list.push(item);
|
|
18
|
+
else out.set(k, [item]);
|
|
19
|
+
}
|
|
20
|
+
return [...out.values()];
|
|
21
|
+
}
|
|
22
|
+
const sessionOf = (row) => row.sessionEvent.sessionId;
|
|
23
|
+
const projectOf = (row) => sessionEventPlace(row.sessionEvent).project ?? "";
|
|
24
|
+
const worktreeOf = (row) => sessionEventPlace(row.sessionEvent).worktree ?? "";
|
|
25
|
+
/** A session's updates: its own group from two of them, else its one row. */
|
|
26
|
+
function conversations(events, parentId) {
|
|
27
|
+
return bucket(events, sessionOf).map((list) => list.length >= MIN_GROUP ? group(list, `${parentId}/c:${sessionOf(list[0])}`, "conversation") : list[0]);
|
|
28
|
+
}
|
|
29
|
+
/** A project's updates: a section per worktree, the checkout's as they are. */
|
|
30
|
+
function places(events, parentId) {
|
|
31
|
+
return bucket(events, worktreeOf).flatMap((list) => {
|
|
32
|
+
const worktree = worktreeOf(list[0]);
|
|
33
|
+
return worktree ? [group(list, `${parentId}/w:${worktree}`, "worktree", worktree)] : conversations(list, parentId);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function group(events, id, level, place) {
|
|
37
|
+
const first = events[0];
|
|
38
|
+
const hit = GROUP_CACHE.get(first)?.get(id);
|
|
39
|
+
if (hit && sameMembers(hit.events, events)) return hit;
|
|
40
|
+
const projects = level === "updates" ? bucket(events, projectOf) : [];
|
|
41
|
+
const rows = level === "conversation" ? events : level === "worktree" ? conversations(events, id) : projects.length > 1 ? projects.map((list) => group(list, `${id}/p:${projectOf(list[0])}`, "project", projectOf(list[0]) || void 0)) : places(events, id);
|
|
42
|
+
const row = {
|
|
43
|
+
...first.turnId ? { turnId: first.turnId } : {},
|
|
44
|
+
kind: "session-event-group",
|
|
45
|
+
id,
|
|
46
|
+
level,
|
|
47
|
+
rows,
|
|
48
|
+
events,
|
|
49
|
+
...place !== void 0 ? { place } : {}
|
|
50
|
+
};
|
|
51
|
+
let byId = GROUP_CACHE.get(first);
|
|
52
|
+
if (!byId) {
|
|
53
|
+
byId = /* @__PURE__ */ new Map();
|
|
54
|
+
GROUP_CACHE.set(first, byId);
|
|
55
|
+
}
|
|
56
|
+
byId.set(id, row);
|
|
57
|
+
return row;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Folds every run of two or more top-level updates into one
|
|
61
|
+
* `session-event-group` row, in place of the run.
|
|
62
|
+
*
|
|
63
|
+
* @param rows - The transcript rows, oldest first.
|
|
64
|
+
*/
|
|
65
|
+
function groupSessionEvents(rows) {
|
|
66
|
+
noteTranscriptPass("group-session-events", rows.length);
|
|
67
|
+
const out = [];
|
|
68
|
+
let run = [];
|
|
69
|
+
const flush = () => {
|
|
70
|
+
if (run.length >= MIN_GROUP) out.push(group(run, `seg-${run[0].id}`, new Set(run.map(sessionOf)).size === 1 ? "conversation" : "updates"));
|
|
71
|
+
else out.push(...run);
|
|
72
|
+
run = [];
|
|
73
|
+
};
|
|
74
|
+
for (const row of rows) {
|
|
75
|
+
if (groupable(row)) {
|
|
76
|
+
run.push(row);
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
flush();
|
|
80
|
+
out.push(row);
|
|
81
|
+
}
|
|
82
|
+
flush();
|
|
83
|
+
return out;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The newest update of each conversation in a group: what the session's
|
|
87
|
+
* status is now. The header counts these by status.
|
|
88
|
+
*
|
|
89
|
+
* @param events - The group's updates, in transcript order.
|
|
90
|
+
*/
|
|
91
|
+
function latestPerConversation(events) {
|
|
92
|
+
return bucket(events, sessionOf).map((list) => list.at(-1));
|
|
93
|
+
}
|
|
94
|
+
export { groupSessionEvents, latestPerConversation };
|
|
@@ -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";
|
|
@@ -108,7 +110,7 @@ import { TRANSCRIPT_OPTION_KEYS, useTranscriptOptions } from "./transcript-optio
|
|
|
108
110
|
import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./transcript/actions.js";
|
|
109
111
|
import { AnsiSpans, AnsiSpansProps, AnsiText, AnsiTextProps } from "./transcript/AnsiText.js";
|
|
110
112
|
import { AuthFailureCard, AuthFailureCardProps } from "./transcript/AuthFailureCard.js";
|
|
111
|
-
import { BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, OpenBadgeMenu, useBadgeMenu } from "./transcript/BadgeMenu.js";
|
|
113
|
+
import { BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuOpenAction, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, OpenBadgeMenu, useBadgeMenu } from "./transcript/BadgeMenu.js";
|
|
112
114
|
import { BADGE_GLYPH, FileBadgeIcon, FileBadgeIconProps, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, fileBadgeName, fileBadgeSpec, linkGlyph, siteIconValue } from "./transcript/badges.js";
|
|
113
115
|
import { CardMarkdown, CardMarkdownProps } from "./transcript/CardMarkdown.js";
|
|
114
116
|
import { useCommand, useCommitInfo, useReferencedSession, useSkill, useTokenSession } from "./transcript/chip-details.js";
|
|
@@ -119,7 +121,7 @@ import { CodemodeScript, CodemodeScriptProps } from "./transcript/CodemodeScript
|
|
|
119
121
|
import { DiffLines, DiffLinesProps } from "./transcript/DiffLines.js";
|
|
120
122
|
import { AUTO_FILL_PAGES, FILL_MIN_PROMPTS, LoadEarlierRow, LoadEarlierRowProps, useFillViewportScrollback } from "./transcript/EarlierHistory.js";
|
|
121
123
|
import { EditDiffBlock, EditDiffBlockProps } from "./transcript/EditDiffBlock.js";
|
|
122
|
-
import { Caret, CaretProps, Dot, DotProps, FailedMark, FailedMarkProps, GUTTER_STEP_PX, LineState, RowFrame, RowFrameProps, RowIconsContext, lineStateOf, useRowIcons } from "./transcript/frame.js";
|
|
124
|
+
import { Caret, CaretProps, Dot, DotProps, FailedMark, FailedMarkProps, GUTTER_STEP_PX, LineState, RowFrame, RowFrameProps, RowIconsContext, SESSION_EVENT_DOT, lineStateOf, useRowIcons } from "./transcript/frame.js";
|
|
123
125
|
import { EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps } from "./transcript/environment-setup.js";
|
|
124
126
|
import { ParsedRef, RefMatch, classifyInlineRef, findRefs, numberRef, parseRefUrl, refHref, remarkRefs } from "./transcript/remark-refs.js";
|
|
125
127
|
import { InlineCode, InlineCodeProps, RefChip, RefChipProps } from "./transcript/FileChip.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";
|
|
@@ -148,6 +150,7 @@ import { CompactSummaryRow, CompactSummaryRowProps, RunReceiptInline, RunReceipt
|
|
|
148
150
|
import { SelectCursor, SelectCursorProps } from "./transcript/SelectCursor.js";
|
|
149
151
|
import { SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps } from "./transcript/SelectTurnHint.js";
|
|
150
152
|
import { SelectTurnCommands, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, useSelectTurn } from "./transcript/SelectTurnProvider.js";
|
|
153
|
+
import { SessionEventGroupRow, SessionEventGroupRowProps } from "./transcript/session-groups.js";
|
|
151
154
|
import { RunnableCodeBlockProps, ShellBlockScope, useShellBlockScope } from "./transcript/shell-block-scope.js";
|
|
152
155
|
import { RunnableCodeBlock, ShellBlockProvider, ShellBlockProviderProps } from "./transcript/shell-block.js";
|
|
153
156
|
import { useSiteIcon } from "./transcript/site-icons.js";
|
|
@@ -177,4 +180,4 @@ import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
|
177
180
|
import { MarkdownViews, MarkdownViewsProps } from "./transcript/view-scope.js";
|
|
178
181
|
import "./transcript/index.js";
|
|
179
182
|
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 };
|
|
183
|
+
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, BadgeMenuOpenAction, 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, SESSION_EVENT_DOT, 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, SessionEventGroupRow, SessionEventGroupRowProps, 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
|
@@ -23,7 +23,8 @@ import { Markdown, MarkdownDiagrams } from "./transcript/markdown.js";
|
|
|
23
23
|
import { parseToolMedia } from "./headless/transcript/tool-media.js";
|
|
24
24
|
import { HostBadge } from "./HostBadge.js";
|
|
25
25
|
import { AttachmentRefusedError, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MAX_MEDIA_ATTACHMENT_BYTES, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, attachmentErrorText, decodeDataUrlAsText, detectLanguage, formatBytes, isAudioAttachment, isPdfAttachment, isTextLike, isVideoAttachment, pastedTextFilename, readAttachment, shouldFoldPasteToAttachment } from "./composer/attachment-ingest.js";
|
|
26
|
-
import {
|
|
26
|
+
import { HostStatusDot } from "./HostStatusDot.js";
|
|
27
|
+
import { Caret, Dot, FailedMark, GUTTER_STEP_PX, RowFrame, RowIconsContext, SESSION_EVENT_DOT, lineStateOf, useRowIcons } from "./transcript/frame.js";
|
|
27
28
|
import { PromptLines, copyPromptLines } from "./transcript/prompt-lines.js";
|
|
28
29
|
import { AnsiSpans, AnsiText } from "./transcript/AnsiText.js";
|
|
29
30
|
import { LiveOutput } from "./transcript/LiveOutput.js";
|
|
@@ -36,10 +37,10 @@ import { ToolMedia, useToolMedia } from "./transcript/tool-media.js";
|
|
|
36
37
|
import { TranscriptRenderersProvider } from "./transcript/renderer-slots.js";
|
|
37
38
|
import { DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, defaultAttachmentLabel, useTranscriptRenderers } from "./transcript/renderers.js";
|
|
38
39
|
import { AttachmentIcon, UserPromptAttachments, UserPromptRow } from "./transcript/prompt.js";
|
|
39
|
-
import {
|
|
40
|
+
import { HostTranscript } from "./HostTranscript.js";
|
|
40
41
|
import { parseReferenceUrl, referenceUrl, remarkReferences } from "./transcript/remark-references.js";
|
|
41
42
|
import { ProseMarkdown } from "./transcript/ProseMarkdown.js";
|
|
42
|
-
import {
|
|
43
|
+
import { OrchestratorBadge } from "./OrchestratorBadge.js";
|
|
43
44
|
import { PdfPreview } from "./PdfPreview.js";
|
|
44
45
|
import { providerColor, providerHue, providerTint } from "./provider-color.js";
|
|
45
46
|
import { EnvironmentSetupDetails, EnvironmentSetupRow } from "./transcript/environment-setup.js";
|
|
@@ -54,8 +55,9 @@ import { SubagentBlock } from "./transcript/SubagentBlock.js";
|
|
|
54
55
|
import { TranscriptRail, TranscriptRailProvider, useRailOutline, useTranscriptRailStore } from "./transcript/TranscriptRail.js";
|
|
55
56
|
import { MessageGroupRow } from "./transcript/messages.js";
|
|
56
57
|
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";
|
|
58
|
+
import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SetupChangedRow, SpawnEndRow, SpawnStartRow } from "./transcript/notices.js";
|
|
58
59
|
import { CompactSummaryRow, RunReceiptInline, RunSummaryRow } from "./transcript/run-rows.js";
|
|
60
|
+
import { SessionEventGroupRow } from "./transcript/session-groups.js";
|
|
59
61
|
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
62
|
import { RunnableCodeBlock, ShellBlockProvider } from "./transcript/shell-block.js";
|
|
61
63
|
import { TaskBatchRow, TaskRow } from "./transcript/tasks.js";
|
|
@@ -69,6 +71,7 @@ import { GroupGlyph, SessionGroupHeader, ShowMoreRow } from "./SessionGroupHeade
|
|
|
69
71
|
import { SessionHostHeader } from "./SessionHostHeader.js";
|
|
70
72
|
import { SessionList } from "./SessionList.js";
|
|
71
73
|
import { SessionListRow } from "./SessionListRow.js";
|
|
74
|
+
import { SessionRow, SessionRowList } from "./SessionRow.js";
|
|
72
75
|
import { SessionStreamsProvider, useCaptureRunState, useHasSessionEvents, useIsSessionHydrated, useOptionalSessionStreamActions, usePeekRunSeq, usePeekSessionEvents, usePeekSessionRunning, useSessionEdits, useSessionEvents, useSessionEventsSelector, useSessionFallbackModel, useSessionPage, useSessionRetry, useSessionRunning, useSessionStreamActions, useSessionStreams, useSessionSystemMd, useSessionTranscript } from "./SessionStreamsProvider.js";
|
|
73
76
|
import { StatusDot, dotStateFor } from "./StatusDot.js";
|
|
74
77
|
import { MAX_TEXT_PREVIEW_BYTES, TextPreview, useAttachmentText } from "./TextPreview.js";
|
|
@@ -92,7 +95,7 @@ import { SendButton } from "./composer/SendButton.js";
|
|
|
92
95
|
import { SuggestionPopup, TRIGGER } from "./composer/suggestions.js";
|
|
93
96
|
import { ATTACHMENT_NOTICE_MS, useAttachmentIngest, useAttachmentNotices } from "./composer/useAttachmentIngest.js";
|
|
94
97
|
import { Composer } from "./composer/Composer.js";
|
|
95
|
-
import { ContextBreakdown, colorForCategory } from "./composer/ContextBreakdown.js";
|
|
98
|
+
import { ContextBreakdown, DEFAULT_CONTEXT_BREAKDOWN_SHAPE, colorForCategory, contextBreakdownShape } from "./composer/ContextBreakdown.js";
|
|
96
99
|
import { ContextOrb, contextGauge } from "./composer/ContextOrb.js";
|
|
97
100
|
import { resourceErrorText, useClearDraftKnobs, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs } from "./composer/use-composer-stores.js";
|
|
98
101
|
import { HostContextOrb } from "./composer/HostContextOrb.js";
|
|
@@ -164,4 +167,4 @@ import { useTranscriptFindKey } from "./transcript/useTranscriptFindKey.js";
|
|
|
164
167
|
import { useTranscriptFind } from "./transcript/useTranscriptFind.js";
|
|
165
168
|
import { useWheelHoverPause } from "./transcript/useWheelHoverPause.js";
|
|
166
169
|
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 };
|
|
170
|
+
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, SESSION_EVENT_DOT, ScopeToggle, SearchHighlightStyle, SecretInput, SelectCursor, SelectTurnExit, SelectTurnHint, SelectTurnHintKeys, SelectTurnProvider, SendButton, ServerScopeToggle, SessionCard, SessionEventGroupRow, 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
|
});
|
|
@@ -8,6 +8,7 @@ import { ElicitationCard } from "./ElicitationCard.js";
|
|
|
8
8
|
import { usePendingInteractions } from "./hooks.js";
|
|
9
9
|
import { PlanCard } from "./PlanCard.js";
|
|
10
10
|
import { QuestionForm } from "./QuestionForm.js";
|
|
11
|
+
import { useAnswerInteraction } from "./use-answer-interaction.js";
|
|
11
12
|
import { useEffect, useState } from "react";
|
|
12
13
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
14
|
// src/chat/interactions/InboxPanel.tsx
|
|
@@ -20,6 +21,7 @@ const DISMISSED = "dismissed by user";
|
|
|
20
21
|
*/
|
|
21
22
|
function InboxPanel({ sessionId, focus = false, onFocusTaken, onEscape, Markdown, inProgress, recent, className, style }) {
|
|
22
23
|
const interactions = useChatHost().interactions;
|
|
24
|
+
const answer = useAnswerInteraction();
|
|
23
25
|
const labels = useChatLabels();
|
|
24
26
|
const pending = usePendingInteractions(sessionId);
|
|
25
27
|
const [rows, setRows] = useState(() => pending.map((item) => ({
|
|
@@ -100,22 +102,22 @@ function InboxPanel({ sessionId, focus = false, onFocusTaken, onEscape, Markdown
|
|
|
100
102
|
open,
|
|
101
103
|
collapsible: !isHead,
|
|
102
104
|
onToggle: () => setExpanded((e) => e === row.item.requestId ? null : row.item.requestId)
|
|
103
|
-
}), open && !row.leaving && interactions && /* @__PURE__ */ jsx("div", {
|
|
105
|
+
}), open && !row.leaving && interactions && answer && /* @__PURE__ */ jsx("div", {
|
|
104
106
|
className: "px-3 pb-3",
|
|
105
107
|
children: request.kind === "plan" ? /* @__PURE__ */ jsx(PlanCard, {
|
|
106
108
|
request,
|
|
107
109
|
autoFocus: isHead && focus,
|
|
108
110
|
Markdown,
|
|
109
|
-
onAnswer: (response) =>
|
|
111
|
+
onAnswer: (response) => answer(request.id, response)
|
|
110
112
|
}) : request.kind === "elicitation" ? /* @__PURE__ */ jsx(ElicitationCard, {
|
|
111
113
|
request,
|
|
112
114
|
autoFocus: isHead && focus,
|
|
113
|
-
onAnswer: (response) =>
|
|
115
|
+
onAnswer: (response) => answer(request.id, response)
|
|
114
116
|
}) : /* @__PURE__ */ jsx(QuestionForm, {
|
|
115
117
|
request,
|
|
116
118
|
autoFocus: isHead && focus,
|
|
117
119
|
Markdown,
|
|
118
|
-
onAnswer: (response) =>
|
|
120
|
+
onAnswer: (response) => answer(request.id, response),
|
|
119
121
|
...interactions.cancel ? { onDismiss: () => interactions.cancel(request.id, DISMISSED) } : {}
|
|
120
122
|
})
|
|
121
123
|
})]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Answers a request through the chat host, and says so in a toast when
|
|
3
|
+
* someone else answered it first (another window, another person): their
|
|
4
|
+
* answer stands.
|
|
5
|
+
*/
|
|
6
|
+
import { InteractionResponse } from "zidane/chat";
|
|
7
|
+
/**
|
|
8
|
+
* The answer path of the cards: `host.interactions.answer`, and a toast that names who answered first when this
|
|
9
|
+
* answer came second. Absent when the host has no interactions.
|
|
10
|
+
*/
|
|
11
|
+
export declare function useAnswerInteraction(): ((requestId: string, response: InteractionResponse) => Promise<void>) | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { toast } from "../../app/toast.js";
|
|
2
|
+
import { useChatHost } from "../ChatProvider.js";
|
|
3
|
+
import { useChatLabels } from "../useChatLabels.js";
|
|
4
|
+
import { useCallback } from "react";
|
|
5
|
+
// src/chat/interactions/use-answer-interaction.ts
|
|
6
|
+
/**
|
|
7
|
+
* The answer path of the cards: `host.interactions.answer`, and a toast that names who answered first when this
|
|
8
|
+
* answer came second. Absent when the host has no interactions.
|
|
9
|
+
*/
|
|
10
|
+
function useAnswerInteraction() {
|
|
11
|
+
const interactions = useChatHost().interactions;
|
|
12
|
+
const labels = useChatLabels();
|
|
13
|
+
const answer = useCallback(async (requestId, response) => {
|
|
14
|
+
const outcome = await interactions?.answer(requestId, response);
|
|
15
|
+
if (outcome?.answeredFirst) toast.info(labels.interactionAnsweredFirst(outcome.answeredFirst.by, outcome.answeredFirst.decision), { source: "interactions" });
|
|
16
|
+
}, [interactions, labels]);
|
|
17
|
+
return interactions ? answer : void 0;
|
|
18
|
+
}
|
|
19
|
+
export { useAnswerInteraction };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `#` popover's rows for the artifacts of the composer's project (docs/ARTIFACTS.md § Mentions). A pick inserts
|
|
3
|
+
* the chat mention node with the mention's text as its id (`[label](artifact:<8 hex>)`, `artifactMention` without its
|
|
4
|
+
* `#`), so the prompt's text is the mention the host resolves at send, and the node shows the artifact's label.
|
|
5
|
+
*/
|
|
6
|
+
import { ComposerArtifactEntry } from "../headless/composer/host.js";
|
|
7
|
+
import { MentionItem } from "./MentionList.js";
|
|
8
|
+
/**
|
|
9
|
+
* The artifacts that match every word of `query` (in their label, locator or kind), as popover rows.
|
|
10
|
+
*
|
|
11
|
+
* @param entries - The project's artifacts, the newest first.
|
|
12
|
+
* @param query - What was typed after `#`.
|
|
13
|
+
* @param limit - The most rows.
|
|
14
|
+
* @param section - The rows' section label.
|
|
15
|
+
*/
|
|
16
|
+
export declare function artifactMentionItems(entries: readonly ComposerArtifactEntry[], query: string, limit: number, section: string): MentionItem[];
|
|
17
|
+
/**
|
|
18
|
+
* The text of an artifact's composer chip: its label, a long one cut to an ellipsis (the chip is an inline box, so it
|
|
19
|
+
* cannot clip itself; the full label is its hover text).
|
|
20
|
+
*
|
|
21
|
+
* @param label - The artifact's label.
|
|
22
|
+
*/
|
|
23
|
+
export declare function artifactChipLabel(label: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether a chat mention node's id is an artifact mention's text (a chat token never starts with `[`).
|
|
26
|
+
*
|
|
27
|
+
* @param id - The node's id.
|
|
28
|
+
*/
|
|
29
|
+
export declare function isArtifactMentionId(id: string): boolean;
|