zidane-ui 9.1.16 → 9.1.17
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/browser-keybindings-host.d.ts +10 -2
- package/dist/adapters/browser-keybindings-host.js +40 -2
- package/dist/adapters/index.d.ts +3 -2
- package/dist/adapters/index.js +3 -2
- package/dist/adapters/server-custom-frame.d.ts +22 -0
- package/dist/adapters/server-custom-frame.js +163 -0
- package/dist/adapters/server-host.js +8 -3
- package/dist/adapters/server-machines-host.js +1 -0
- package/dist/adapters/server-views-host.d.ts +24 -0
- package/dist/adapters/server-views-host.js +78 -0
- package/dist/app/AppHostProvider.d.ts +4 -1
- package/dist/app/AppHostProvider.js +11 -5
- package/dist/app/ModalProvider.js +2 -2
- package/dist/app/NoticeStack.js +1 -1
- package/dist/app/headless/app-host.d.ts +3 -0
- package/dist/app/useConfirm.js +1 -1
- package/dist/appearance/AppearanceProvider.js +1 -1
- package/dist/approvals/ApprovalBar.js +27 -15
- package/dist/approvals/ApprovalShell.js +1 -1
- package/dist/approvals/ApprovalsProvider.js +1 -1
- package/dist/approvals/FileEditApproval.js +1 -1
- package/dist/approvals/HunkPreviews.js +2 -2
- package/dist/approvals/SafelistPanel.js +2 -2
- package/dist/approvals/headless/labels.d.ts +3 -0
- package/dist/approvals/headless/labels.js +3 -0
- package/dist/chat/ChatProvider.js +1 -1
- package/dist/chat/DaemonOrb.js +1 -1
- package/dist/chat/HostBadge.js +1 -1
- package/dist/chat/HostTranscript.js +1 -1
- package/dist/chat/PdfPreview.js +1 -1
- package/dist/chat/RunEstimateChip.js +1 -1
- package/dist/chat/SessionFilterMenu.js +2 -2
- package/dist/chat/SessionList.js +1 -1
- package/dist/chat/SessionListRow.js +2 -2
- package/dist/chat/SessionStreamsProvider.d.ts +3 -1
- package/dist/chat/SessionStreamsProvider.js +6 -2
- package/dist/chat/StatusDot.js +1 -1
- package/dist/chat/TextPreview.js +1 -1
- package/dist/chat/Throbber.js +1 -1
- package/dist/chat/Transcript.d.ts +1 -1
- package/dist/chat/Transcript.js +95 -26
- package/dist/chat/composer/AgentPicker.js +1 -1
- package/dist/chat/composer/AgentPickerDialog.js +1 -1
- package/dist/chat/composer/ApprovalDock.js +1 -1
- package/dist/chat/composer/AttachmentTiles.js +2 -2
- package/dist/chat/composer/Composer.js +1 -1
- package/dist/chat/composer/ComposerBadges.js +2 -2
- package/dist/chat/composer/ComposerControls.js +1 -1
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/composer/ComposerHostProvider.js +1 -1
- package/dist/chat/composer/ComposerShell.js +1 -1
- package/dist/chat/composer/ContextBreakdown.js +23 -23
- package/dist/chat/composer/ConversationBadges.js +1 -1
- package/dist/chat/composer/DraftPickers.d.ts +38 -0
- package/dist/chat/composer/DraftPickers.js +72 -0
- package/dist/chat/composer/EffortPickerDialog.js +1 -1
- package/dist/chat/composer/HostComposer.js +2 -2
- package/dist/chat/composer/HostContextOrb.js +2 -2
- package/dist/chat/composer/HostModelChainList.js +1 -1
- package/dist/chat/composer/HostPickers.js +1 -1
- package/dist/chat/composer/ImageModelList.js +1 -1
- package/dist/chat/composer/ModelChainList.js +1 -1
- package/dist/chat/composer/ModelChainParts.js +1 -1
- package/dist/chat/composer/ModelChainRow.js +1 -1
- package/dist/chat/composer/ModelChainRows.js +1 -1
- package/dist/chat/composer/ModelOptionsPicker.js +1 -1
- package/dist/chat/composer/ModelPicker.js +2 -2
- package/dist/chat/composer/ModelPickerDialog.js +1 -1
- package/dist/chat/composer/ModelProviderPills.js +1 -1
- package/dist/chat/composer/PickerPill.js +1 -1
- package/dist/chat/composer/ProjectMenu.js +1 -1
- package/dist/chat/composer/PromptHistoryProvider.js +1 -1
- package/dist/chat/composer/RunStatusChip.js +1 -1
- package/dist/chat/composer/attachment-ingest.js +4 -2
- package/dist/chat/composer/heif.d.ts +12 -0
- package/dist/chat/composer/heif.js +115 -0
- package/dist/chat/composer/index.d.ts +5 -3
- package/dist/chat/composer/index.js +4 -2
- package/dist/chat/composer/suggestions.js +1 -1
- package/dist/chat/composer/use-composer-stores.d.ts +3 -1
- package/dist/chat/composer/use-composer-stores.js +7 -2
- package/dist/chat/composer/use-draft-target.d.ts +5 -0
- package/dist/chat/composer/use-draft-target.js +10 -8
- package/dist/chat/composer/use-new-chats-default.d.ts +25 -0
- package/dist/chat/composer/use-new-chats-default.js +32 -0
- package/dist/chat/composer/use-send-prompt.d.ts +11 -1
- package/dist/chat/composer/use-send-prompt.js +5 -3
- package/dist/chat/headless/host.d.ts +9 -0
- package/dist/chat/headless/index.d.ts +5 -4
- package/dist/chat/headless/index.js +5 -3
- package/dist/chat/headless/labels.d.ts +82 -1
- package/dist/chat/headless/labels.js +11 -1
- package/dist/chat/headless/notifications.d.ts +2 -0
- package/dist/chat/headless/notifications.js +1 -0
- package/dist/chat/headless/prompt-origin.d.ts +53 -2
- package/dist/chat/headless/prompt-origin.js +55 -5
- package/dist/chat/headless/session-list.d.ts +79 -0
- package/dist/chat/headless/sidebar/index.js +1 -1
- package/dist/chat/headless/sidebar/labels.d.ts +80 -1
- package/dist/chat/headless/transcript/batch.d.ts +12 -1
- package/dist/chat/headless/transcript/batch.js +47 -1
- package/dist/chat/headless/transcript/collapse.js +11 -0
- package/dist/chat/headless/transcript/fold.js +23 -7
- package/dist/chat/headless/transcript/index.d.ts +3 -3
- package/dist/chat/headless/transcript/index.js +2 -2
- package/dist/chat/headless/transcript/rows.d.ts +31 -2
- package/dist/chat/headless/transcript/select-stops.js +4 -0
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.d.ts +2 -0
- package/dist/chat/headless/turn-labels.js +2 -0
- package/dist/chat/index.d.ts +10 -5
- package/dist/chat/index.js +9 -4
- package/dist/chat/interactions/HostInteractions.js +1 -1
- package/dist/chat/interactions/InboxPanel.js +2 -2
- package/dist/chat/interactions/PlanCard.js +4 -4
- package/dist/chat/interactions/QuestionField.js +2 -2
- package/dist/chat/interactions/QuestionForm.js +1 -1
- package/dist/chat/interactions/SecretInput.js +1 -1
- package/dist/chat/interactions/card-ui.js +1 -1
- package/dist/chat/rich-composer/MentionList.js +1 -1
- package/dist/chat/rich-composer/RichComposer.js +1 -1
- package/dist/chat/sidebar/MainSessionRow.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.js +3 -3
- package/dist/chat/sidebar/SessionSidebar.js +2 -2
- package/dist/chat/sidebar/SidebarDecoration.js +2 -2
- package/dist/chat/sidebar/SidebarFilterMenu.js +1 -1
- package/dist/chat/sidebar/SidebarFooter.js +1 -1
- package/dist/chat/sidebar/SidebarFrame.js +2 -2
- package/dist/chat/sidebar/SidebarGroupHeader.js +3 -3
- package/dist/chat/sidebar/SidebarHostProvider.js +1 -1
- package/dist/chat/sidebar/SidebarRowView.js +1 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +6 -6
- package/dist/chat/sidebar/SpaceSwitcher.js +1 -1
- package/dist/chat/sidebar/SpacesSection.js +2 -2
- package/dist/chat/sidebar/sidebar-live.js +3 -3
- package/dist/chat/transcript/AnsiText.js +4 -4
- package/dist/chat/transcript/AuthFailureCard.js +2 -2
- package/dist/chat/transcript/BadgeMenu.js +1 -1
- package/dist/chat/transcript/CardMarkdown.js +1 -1
- package/dist/chat/transcript/ChipCards.js +1 -1
- package/dist/chat/transcript/CodemodeScript.js +11 -6
- package/dist/chat/transcript/DiffLines.js +1 -1
- package/dist/chat/transcript/EarlierHistory.js +1 -1
- package/dist/chat/transcript/EditDiffBlock.js +1 -1
- package/dist/chat/transcript/FileChip.js +5 -5
- package/dist/chat/transcript/ImageGenerationBlock.js +1 -1
- package/dist/chat/transcript/LazyRow.js +1 -1
- package/dist/chat/transcript/LiveOutput.js +1 -1
- package/dist/chat/transcript/MermaidDiagram.d.ts +68 -2
- package/dist/chat/transcript/MermaidDiagram.js +344 -32
- package/dist/chat/transcript/PromptEcho.js +1 -1
- package/dist/chat/transcript/ProseMarkdown.js +1 -1
- package/dist/chat/transcript/ReferenceText.js +8 -8
- package/dist/chat/transcript/SelectCursor.js +1 -1
- package/dist/chat/transcript/SelectTurnProvider.js +1 -1
- package/dist/chat/transcript/SubagentBlock.js +1 -1
- package/dist/chat/transcript/TranscriptRow.js +20 -5
- package/dist/chat/transcript/TranscriptSearch.js +1 -1
- package/dist/chat/transcript/TurnMenu.js +1 -1
- package/dist/chat/transcript/actions.js +1 -1
- package/dist/chat/transcript/diagrams-scope.d.ts +4 -0
- package/dist/chat/transcript/diagrams-scope.js +11 -0
- package/dist/chat/transcript/extension-renderers.js +1 -1
- package/dist/chat/transcript/fold-attachments.js +1 -1
- package/dist/chat/transcript/fold-status.js +1 -1
- package/dist/chat/transcript/fold-worker.js +1 -1
- package/dist/chat/transcript/fold.js +5 -5
- package/dist/chat/transcript/frame.js +1 -1
- package/dist/chat/transcript/index.d.ts +5 -2
- package/dist/chat/transcript/index.js +5 -2
- package/dist/chat/transcript/markdown.js +95 -14
- package/dist/chat/transcript/messages.js +19 -10
- package/dist/chat/transcript/notices.js +2 -2
- package/dist/chat/transcript/prompt-lines.js +5 -5
- package/dist/chat/transcript/prompt.js +2 -2
- package/dist/chat/transcript/prose.js +1 -1
- package/dist/chat/transcript/renderer-slots.js +1 -1
- package/dist/chat/transcript/renderers.js +3 -3
- package/dist/chat/transcript/row-estimate.js +5 -1
- package/dist/chat/transcript/run-rows.js +2 -2
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/shell-block.js +4 -4
- package/dist/chat/transcript/tasks.d.ts +35 -0
- package/dist/chat/transcript/tasks.js +100 -0
- package/dist/chat/transcript/tool-batch.js +2 -2
- package/dist/chat/transcript/tool-media.js +1 -1
- package/dist/chat/transcript/tool-parts.js +1 -1
- package/dist/chat/transcript/tool-row.js +8 -8
- package/dist/chat/transcript/turn-commands.d.ts +15 -1
- package/dist/chat/transcript/turn-commands.js +43 -4
- package/dist/chat/transcript/use-host-turn-menu.d.ts +25 -0
- package/dist/chat/transcript/use-host-turn-menu.js +57 -0
- package/dist/chat/transcript/use-transcript-rows.js +2 -2
- package/dist/chat/transcript/useStickToBottom.js +1 -1
- package/dist/chat/transcript/useTranscriptSearch.js +1 -1
- package/dist/chat/transcript/user-bash.js +1 -1
- package/dist/chat/transcript/view-scope.d.ts +163 -0
- package/dist/chat/transcript/view-scope.js +224 -0
- package/dist/chat/transcript-options.d.ts +1 -1
- package/dist/chat/transcript-options.js +4 -1
- package/dist/code/CodeHighlightProvider.js +1 -1
- package/dist/code/HighlightedCode.js +1 -1
- package/dist/code/editor/CodeCompletion.js +3 -3
- package/dist/code/editor/CodeEditor.js +1 -1
- package/dist/code/editor/CodeHover.js +1 -1
- package/dist/code/editor/DiffView.js +1 -1
- package/dist/code/editor/EditorColumn.js +1 -1
- package/dist/code/editor/FileIcon.js +1 -1
- package/dist/code/editor/FileTree.js +1 -1
- package/dist/code/editor/FileView.js +1 -1
- package/dist/code/editor/HighlightWorkers.js +2 -2
- package/dist/code/editor/LanguageEditor.js +1 -1
- package/dist/code/editor/environment.js +1 -1
- package/dist/code/editor/find/FindBar.js +1 -1
- package/dist/components/Accordion.d.ts +30 -0
- package/dist/components/Accordion.js +96 -0
- package/dist/components/Breadcrumb.js +1 -1
- package/dist/components/Breakdown.d.ts +82 -0
- package/dist/components/Breakdown.js +212 -0
- package/dist/components/BrowserChrome.js +1 -1
- package/dist/components/BrowserSignIn.js +4 -4
- package/dist/components/Callout.d.ts +29 -0
- package/dist/components/Callout.js +60 -0
- package/dist/components/Checklist.d.ts +53 -0
- package/dist/components/Checklist.js +189 -0
- package/dist/components/ChoiceCards.d.ts +7 -1
- package/dist/components/ChoiceCards.js +11 -7
- package/dist/components/CodeFrame.js +1 -1
- package/dist/components/Compare.d.ts +65 -0
- package/dist/components/Compare.js +242 -0
- package/dist/components/ConfirmDialog.js +1 -1
- package/dist/components/CopyButton.js +1 -1
- package/dist/components/EditableTitle.js +1 -1
- package/dist/components/ErrorBoundary.js +1 -1
- package/dist/components/Form.d.ts +3 -1
- package/dist/components/Form.js +2 -1
- package/dist/components/HowItWorks.js +2 -2
- package/dist/components/IconButton.js +2 -2
- package/dist/components/KeyValue.d.ts +37 -0
- package/dist/components/KeyValue.js +43 -0
- package/dist/components/Lightbox.js +2 -2
- package/dist/components/Menu.js +2 -2
- package/dist/components/Overlay.js +2 -2
- package/dist/components/Progress.d.ts +55 -0
- package/dist/components/Progress.js +94 -0
- package/dist/components/ReorderTabs.js +1 -1
- package/dist/components/RowActionsMenu.js +3 -3
- package/dist/components/RowMenuButton.d.ts +24 -0
- package/dist/components/RowMenuButton.js +42 -0
- package/dist/components/Segmented.js +1 -1
- package/dist/components/Stat.d.ts +105 -0
- package/dist/components/Stat.js +131 -0
- package/dist/components/StepFrame.js +1 -1
- package/dist/components/Steps.d.ts +38 -0
- package/dist/components/Steps.js +49 -0
- package/dist/components/Surface.d.ts +1 -1
- package/dist/components/Surface.js +1 -1
- package/dist/components/SwatchPicker.js +1 -1
- package/dist/components/Table.d.ts +123 -0
- package/dist/components/Table.js +437 -0
- package/dist/components/Tabs.d.ts +41 -0
- package/dist/components/Tabs.js +103 -0
- package/dist/components/ToggleCard.js +3 -3
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/ZidaneMark.js +1 -1
- package/dist/components/ZoomableImage.js +1 -1
- package/dist/components/charts/AreaChart.d.ts +24 -0
- package/dist/components/charts/AreaChart.js +210 -0
- package/dist/components/charts/BarChart.d.ts +112 -0
- package/dist/components/charts/BarChart.js +686 -0
- package/dist/components/charts/LineChart.d.ts +34 -0
- package/dist/components/charts/LineChart.js +299 -0
- package/dist/components/charts/ScatterChart.d.ts +83 -0
- package/dist/components/charts/ScatterChart.js +702 -0
- package/dist/components/charts/Sparkline.d.ts +31 -0
- package/dist/components/charts/Sparkline.js +82 -0
- package/dist/components/charts/Trend.d.ts +86 -0
- package/dist/components/charts/Trend.js +233 -0
- package/dist/components/charts/frame.d.ts +225 -0
- package/dist/components/charts/frame.js +475 -0
- package/dist/components/charts/index.d.ts +10 -0
- package/dist/components/charts/index.js +9 -0
- package/dist/components/charts/interact.d.ts +89 -0
- package/dist/components/charts/interact.js +296 -0
- package/dist/components/charts/measure.d.ts +29 -0
- package/dist/components/charts/measure.js +79 -0
- package/dist/components/charts/xy.d.ts +230 -0
- package/dist/components/charts/xy.js +488 -0
- package/dist/components/charts/zoom-reset.d.ts +7 -0
- package/dist/components/charts/zoom-reset.js +23 -0
- package/dist/components/floating/FloatingSurface.js +1 -1
- package/dist/components/floating/HoverCard.js +2 -2
- package/dist/components/floating/Popover.js +2 -2
- package/dist/components/lazy-part.d.ts +17 -0
- package/dist/components/lazy-part.js +33 -0
- package/dist/components/numbers.d.ts +74 -0
- package/dist/components/numbers.js +157 -0
- package/dist/components/palette/PaletteList.js +5 -5
- package/dist/components/palette/PalettePanel.js +2 -2
- package/dist/core.css +517 -3
- package/dist/dist/index-BUHcyEqA.d.ts +1 -0
- package/dist/dist/{index-BZM8tu4L.d.ts → index-CGCMyhB3.d.ts} +182 -126
- package/dist/dist/index.d.ts +4 -4
- package/dist/dist/sandbox-Cib3Qf4t.d.ts +2 -0
- package/dist/extensions/ExtensionComponent.js +6 -5
- package/dist/extensions/ExtensionDialogHost.js +1 -1
- package/dist/extensions/ExtensionRenderer.js +1 -1
- package/dist/extensions/ExtensionScreen.js +1 -1
- package/dist/extensions/ExtensionSettingsPage.js +1 -1
- package/dist/extensions/ExtensionSettingsSection.js +1 -1
- package/dist/extensions/ExtensionSettingsSidebar.js +1 -1
- package/dist/extensions/ExtensionSlot.js +2 -2
- package/dist/extensions/ExtensionWebview.js +1 -1
- package/dist/extensions/ExtensionsProvider.js +1 -1
- package/dist/extensions/headless/index.d.ts +2 -2
- package/dist/extensions/headless/wire.d.ts +5 -1
- package/dist/extensions/headless/wire.js +2 -1
- package/dist/extensions/links.js +1 -1
- package/dist/files/CodeViewer.js +1 -1
- package/dist/files/DiffFileViewer.js +1 -1
- package/dist/files/DiffsTab.js +2 -2
- package/dist/files/EditorColumn.js +62 -28
- package/dist/files/EditorEnvironmentRoot.js +1 -1
- package/dist/files/FilePreview.d.ts +24 -0
- package/dist/files/FilePreview.js +283 -0
- package/dist/files/FilesProvider.js +1 -1
- package/dist/files/FilesTab.js +2 -2
- package/dist/files/MediaDiff.js +1 -1
- package/dist/files/MediaView.js +1 -1
- package/dist/files/ReviewDraft.js +1 -1
- package/dist/files/ReviewableDiff.js +2 -2
- package/dist/files/SearchPanel.js +2 -2
- package/dist/files/TreeColumn.js +2 -2
- package/dist/files/file-actions.js +1 -0
- package/dist/files/headless/labels.d.ts +5 -0
- package/dist/files/headless/labels.js +5 -0
- package/dist/files/headless/preview.d.ts +44 -0
- package/dist/files/headless/preview.js +103 -0
- package/dist/files/lazy-tabs.js +1 -1
- package/dist/files/useCodeReview.js +1 -1
- package/dist/files/useLsp.js +1 -1
- package/dist/files/useOpenFiles.d.ts +2 -0
- package/dist/files/useOpenFiles.js +14 -0
- package/dist/git/BranchMenu.js +7 -7
- package/dist/git/GitBar.js +1 -1
- package/dist/git/GitProvider.js +1 -1
- package/dist/git/ImportRepoDialog.js +1 -1
- package/dist/git/MoveSessionDialog.js +2 -2
- package/dist/git/RemoteFolderPicker.js +4 -4
- package/dist/git/SyncChip.js +1 -1
- package/dist/git/WherePicker.d.ts +2 -0
- package/dist/git/WherePicker.js +15 -12
- package/dist/git/index.d.ts +1 -1
- package/dist/git/index.js +1 -1
- package/dist/hooks/useDisplayPath.js +1 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +16 -3
- package/dist/keybindings/KeyCommands.js +1 -1
- package/dist/keybindings/KeybindingsProvider.js +4 -2
- package/dist/keybindings/headless/host.d.ts +5 -0
- package/dist/keybindings/headless/overrides.d.ts +2 -1
- package/dist/keybindings/headless/overrides.js +2 -1
- package/dist/keybindings/testing/contract.js +1 -0
- package/dist/labels.d.ts +97 -0
- package/dist/labels.js +104 -1
- package/dist/machines/AddMachineDialog.js +3 -3
- package/dist/machines/AddServerForm.js +1 -1
- package/dist/machines/DaemonMenu.js +3 -3
- package/dist/machines/HostCapabilities.js +5 -5
- package/dist/machines/HostIcon.d.ts +21 -0
- package/dist/machines/HostIcon.js +19 -0
- package/dist/machines/HostSignIn.js +1 -1
- package/dist/machines/HostSyncPanel.js +1 -1
- package/dist/machines/HostsSection.d.ts +27 -1
- package/dist/machines/HostsSection.js +60 -46
- package/dist/machines/MachinesProvider.js +1 -1
- package/dist/machines/ServerCard.d.ts +1 -2
- package/dist/machines/ServerCard.js +4 -9
- package/dist/machines/ServerMachinesPanel.js +161 -196
- package/dist/machines/ServerUpdatePanel.js +94 -111
- package/dist/machines/ShareThisComputerForm.js +1 -1
- package/dist/machines/SyncAccounts.js +1 -1
- package/dist/machines/SyncMarker.js +2 -2
- package/dist/machines/TokensPanel.js +225 -124
- package/dist/machines/headless/index.d.ts +2 -1
- package/dist/machines/headless/index.js +2 -1
- package/dist/machines/headless/labels.d.ts +22 -0
- package/dist/machines/headless/labels.js +25 -0
- package/dist/machines/headless/update-store.d.ts +29 -0
- package/dist/machines/headless/update-store.js +83 -0
- package/dist/machines/index.d.ts +5 -3
- package/dist/machines/index.js +5 -3
- package/dist/machines/server-update.d.ts +23 -0
- package/dist/machines/server-update.js +106 -0
- package/dist/motion/grow.js +1 -1
- package/dist/motion/provider.js +1 -1
- package/dist/motion/roll.js +2 -2
- package/dist/motion/size.js +1 -1
- package/dist/motion/springs.js +1 -1
- package/dist/motion/swap.js +1 -1
- package/dist/motion/title-text.js +2 -2
- package/dist/onboarding/OnboardingFlow.js +1 -1
- package/dist/onboarding/OnboardingProvider.js +1 -1
- package/dist/onboarding/conversation.js +1 -1
- package/dist/onboarding/demos/features.js +1 -1
- package/dist/onboarding/demos/index.js +1 -1
- package/dist/onboarding/demos/tour.js +1 -1
- package/dist/onboarding/headless/labels.d.ts +74 -0
- package/dist/onboarding/index.js +3 -3
- package/dist/onboarding/skills/SkillSourceBrowser.js +1 -1
- package/dist/onboarding/skills/parts.js +1 -1
- package/dist/onboarding/sources/SourceBrowser.js +4 -4
- package/dist/onboarding/steps/ConnectStep.js +1 -1
- package/dist/onboarding/steps/ConnectorsStep.js +3 -3
- package/dist/onboarding/steps/ConversationStep.js +2 -2
- package/dist/onboarding/steps/FeatureExample.js +2 -2
- package/dist/onboarding/steps/ImportStep.js +2 -2
- package/dist/onboarding/steps/LookStep.js +1 -1
- package/dist/onboarding/steps/ReadyStep.js +2 -2
- package/dist/onboarding/steps/SkillsStep.js +1 -1
- package/dist/onboarding/steps/connect/KeyForm.js +1 -1
- package/dist/onboarding/steps/connect/ProviderPanel.js +1 -1
- package/dist/onboarding/steps/connect/ProviderReady.js +2 -2
- package/dist/palette/CommandPalette.d.ts +3 -1
- package/dist/palette/CommandPalette.js +11 -3
- package/dist/palette/PaletteDialog.js +25 -2
- package/dist/palette/PaletteProvider.js +1 -1
- package/dist/palette/PaletteRows.js +5 -5
- package/dist/palette/headless/index.d.ts +2 -2
- package/dist/palette/headless/index.js +2 -2
- package/dist/palette/headless/labels.d.ts +2 -0
- package/dist/palette/headless/labels.js +2 -0
- package/dist/palette/headless/sources.d.ts +26 -2
- package/dist/palette/headless/sources.js +40 -1
- package/dist/session/ArtifactsPanel.js +2 -2
- package/dist/session/DiffFileTree.js +1 -1
- package/dist/session/PlanTracker.js +1 -1
- package/dist/session/ProjectHome.js +4 -4
- package/dist/session/ProviderUsageProvider.js +2 -2
- package/dist/session/QueueTab.js +6 -6
- package/dist/session/RemindersPanel.js +2 -2
- package/dist/session/RunningWorkDialog.js +3 -2
- package/dist/session/SecretsPanel.js +2 -2
- package/dist/session/SessionCacheFacts.js +56 -57
- package/dist/session/SessionDetailsDialog.js +29 -17
- package/dist/session/SessionHeader.js +1 -1
- package/dist/session/SessionProvider.js +1 -1
- package/dist/session/SessionShell.js +2 -2
- package/dist/session/SideChat.js +1 -1
- package/dist/session/StepStatusIcon.js +1 -1
- package/dist/session/TurnDetailsDialog.js +1 -1
- package/dist/session/UsagePanel.js +9 -5
- package/dist/session/WelcomeScreen.js +1 -1
- package/dist/session/headless/host.d.ts +1 -1
- package/dist/session/headless/index.js +1 -1
- package/dist/session/headless/labels.d.ts +1 -0
- package/dist/session/headless/labels.js +4 -2
- package/dist/settings/SettingsFooter.d.ts +51 -0
- package/dist/settings/SettingsFooter.js +91 -0
- package/dist/settings/SettingsHeadingText.js +1 -1
- package/dist/settings/SettingsNav.js +1 -1
- package/dist/settings/SettingsProvider.js +1 -1
- package/dist/settings/SettingsRestricted.js +2 -2
- package/dist/settings/SettingsRowsPage.js +2 -2
- package/dist/settings/SettingsShell.js +3 -3
- package/dist/settings/headless/app-update.d.ts +27 -0
- package/dist/settings/headless/app-update.js +0 -0
- package/dist/settings/headless/catalog.js +61 -1
- package/dist/settings/headless/fixture-accounts.js +7 -0
- package/dist/settings/headless/index.d.ts +2 -1
- package/dist/settings/headless/index.js +2 -2
- package/dist/settings/headless/labels.d.ts +13 -0
- package/dist/settings/headless/labels.js +16 -1
- package/dist/settings/headless/layout.js +30 -12
- package/dist/settings/headless/mcp.d.ts +4 -0
- package/dist/settings/headless/search.d.ts +1 -1
- package/dist/settings/index.d.ts +3 -1
- package/dist/settings/index.js +11 -9
- package/dist/settings/section.js +1 -1
- package/dist/settings/sections/appearance/AppearanceSection.js +1 -1
- package/dist/settings/sections/claude-import/ClaudeImportDialog.js +2 -2
- package/dist/settings/sections/descriptors.js +4 -4
- package/dist/settings/sections/editor/EditorSection.js +2 -2
- package/dist/settings/sections/enabled-list/EnabledListSection.js +1 -1
- package/dist/settings/sections/environments/EnvironmentsSection.js +3 -3
- package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
- package/dist/settings/sections/extensions/CreateExtensionDialog.js +1 -1
- package/dist/settings/sections/extensions/ExtensionConfigRows.js +2 -2
- package/dist/settings/sections/extensions/ExtensionOptionsSection.js +2 -2
- package/dist/settings/sections/extensions/ExtensionPicksBar.js +1 -1
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
- package/dist/settings/sections/extensions/ExtensionsSection.js +2 -2
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +4 -4
- package/dist/settings/sections/index.js +8 -8
- package/dist/settings/sections/instructions/InstructionsSection.js +3 -3
- package/dist/settings/sections/keybindings/KeybindingsSection.js +2 -2
- package/dist/settings/sections/logs/LogsSection.js +1 -1
- package/dist/settings/sections/mcp/McpAddForm.js +48 -22
- package/dist/settings/sections/mcp/McpSection.js +14 -2
- package/dist/settings/sections/mcp/McpServerRow.d.ts +3 -1
- package/dist/settings/sections/mcp/McpServerRow.js +104 -10
- package/dist/settings/sections/mcp/labels.d.ts +18 -0
- package/dist/settings/sections/mcp/labels.js +18 -0
- package/dist/settings/sections/models/AgentDefaults.js +4 -4
- package/dist/settings/sections/models/ModelListPicker.js +1 -1
- package/dist/settings/sections/models/ModelPickField.js +1 -1
- package/dist/settings/sections/models/ModelRows.js +2 -2
- package/dist/settings/sections/models/model-test.js +1 -1
- package/dist/settings/sections/performance/PerfSparkline.js +1 -1
- package/dist/settings/sections/performance/PerformanceSection.js +14 -14
- package/dist/settings/sections/plugins/PluginsSection.js +1 -1
- package/dist/settings/sections/providers/CredentialSources.js +3 -3
- package/dist/settings/sections/providers/ProvidersSection.js +1 -1
- package/dist/settings/sections/providers/ServerProvidersSection.js +1 -1
- package/dist/settings/sections/providers/ServerSignIn.js +2 -2
- package/dist/settings/sections/shared/catalog.js +2 -2
- package/dist/settings/sections/skills/SkillList.js +5 -5
- package/dist/settings/sections/skills/SkillsSection.js +3 -3
- package/dist/settings/server-app.d.ts +41 -0
- package/dist/settings/server-app.js +155 -0
- package/dist/settings/testing/accounts.contract.d.ts +1 -1
- package/dist/settings/testing/accounts.contract.js +10 -1
- package/dist/styles.css +686 -30
- package/dist/terminal/HostTerminalSurface.js +4 -3
- package/dist/terminal/TerminalDrawer.js +2 -2
- package/dist/terminal/TerminalPanel.js +3 -3
- package/dist/terminal/TerminalProvider.d.ts +13 -2
- package/dist/terminal/TerminalProvider.js +15 -7
- package/dist/terminal/TerminalSurface.d.ts +3 -1
- package/dist/terminal/TerminalSurface.js +5 -4
- package/dist/terminal/assets.d.ts +10 -0
- package/dist/terminal/assets.js +23 -0
- package/dist/terminal/fonts/LICENSE +21 -0
- package/dist/terminal/fonts/SymbolsNerdFontMono-Regular.woff2 +0 -0
- package/dist/terminal/ghostty.d.ts +3 -1
- package/dist/terminal/ghostty.js +25 -4
- package/dist/terminal/index.d.ts +2 -2
- package/dist/theme/derive.d.ts +3 -2
- package/dist/theme/derive.js +3 -2
- package/dist/uno.js +2 -1
- package/dist/url-imports.d.ts +6 -0
- package/dist/views/BoolMark.d.ts +15 -0
- package/dist/views/BoolMark.js +28 -0
- package/dist/views/SvgImage.d.ts +19 -0
- package/dist/views/SvgImage.js +89 -0
- package/dist/views/TranscriptViews.d.ts +31 -0
- package/dist/views/TranscriptViews.js +59 -0
- package/dist/views/ViewAutoRefresh.d.ts +23 -0
- package/dist/views/ViewAutoRefresh.js +73 -0
- package/dist/views/ViewBlock.d.ts +40 -0
- package/dist/views/ViewBlock.js +482 -0
- package/dist/views/ViewCharts.d.ts +20 -0
- package/dist/views/ViewCharts.js +331 -0
- package/dist/views/ViewControls.d.ts +49 -0
- package/dist/views/ViewControls.js +208 -0
- package/dist/views/ViewCustom.d.ts +40 -0
- package/dist/views/ViewCustom.js +354 -0
- package/dist/views/ViewExpanded.d.ts +32 -0
- package/dist/views/ViewExpanded.js +107 -0
- package/dist/views/ViewExtension.d.ts +21 -0
- package/dist/views/ViewExtension.js +125 -0
- package/dist/views/ViewInputs.d.ts +24 -0
- package/dist/views/ViewInputs.js +561 -0
- package/dist/views/ViewMcpApp.d.ts +26 -0
- package/dist/views/ViewMcpApp.js +569 -0
- package/dist/views/ViewNodes.d.ts +92 -0
- package/dist/views/ViewNodes.js +1073 -0
- package/dist/views/ViewPreviewPage.d.ts +42 -0
- package/dist/views/ViewPreviewPage.js +214 -0
- package/dist/views/ViewTables.d.ts +15 -0
- package/dist/views/ViewTables.js +305 -0
- package/dist/views/ViewsProvider.d.ts +32 -0
- package/dist/views/ViewsProvider.js +50 -0
- package/dist/views/badge-tone.d.ts +20 -0
- package/dist/views/badge-tone.js +100 -0
- package/dist/views/expanded.d.ts +7 -0
- package/dist/views/expanded.js +14 -0
- package/dist/views/format.d.ts +18 -0
- package/dist/views/format.js +37 -0
- package/dist/views/headless/answers.d.ts +50 -0
- package/dist/views/headless/answers.js +85 -0
- package/dist/views/headless/custom-slots.d.ts +35 -0
- package/dist/views/headless/custom-slots.js +59 -0
- package/dist/views/headless/download.d.ts +10 -0
- package/dist/views/headless/download.js +26 -0
- package/dist/views/headless/frame-name.d.ts +17 -0
- package/dist/views/headless/frame-name.js +24 -0
- package/dist/views/headless/host.d.ts +197 -0
- package/dist/views/headless/host.js +0 -0
- package/dist/views/headless/index.d.ts +13 -0
- package/dist/views/headless/index.js +12 -0
- package/dist/views/headless/labels.d.ts +144 -0
- package/dist/views/headless/labels.js +147 -0
- package/dist/views/headless/live.d.ts +12 -0
- package/dist/views/headless/live.js +50 -0
- package/dist/views/headless/lru.d.ts +31 -0
- package/dist/views/headless/lru.js +62 -0
- package/dist/views/headless/mcp-app-bridge.d.ts +128 -0
- package/dist/views/headless/mcp-app-bridge.js +330 -0
- package/dist/views/headless/placement.d.ts +98 -0
- package/dist/views/headless/placement.js +227 -0
- package/dist/views/headless/records.d.ts +53 -0
- package/dist/views/headless/records.js +114 -0
- package/dist/views/headless/refs.d.ts +10 -0
- package/dist/views/headless/refs.js +13 -0
- package/dist/views/headless/safe.d.ts +35 -0
- package/dist/views/headless/safe.js +58 -0
- package/dist/views/headless/store.d.ts +54 -0
- package/dist/views/headless/store.js +228 -0
- package/dist/views/headless/streaming.d.ts +43 -0
- package/dist/views/headless/streaming.js +136 -0
- package/dist/views/headless/view-state.d.ts +20 -0
- package/dist/views/headless/view-state.js +55 -0
- package/dist/views/index.d.ts +2 -0
- package/dist/views/index.js +1 -0
- package/dist/views/input-preview.d.ts +5 -0
- package/dist/views/input-preview.js +11 -0
- package/dist/views/preview-style.d.ts +10 -0
- package/dist/views/preview-style.js +262 -0
- package/dist/views/preview.d.ts +2 -0
- package/dist/views/preview.js +1 -0
- package/dist/views/testing/contract.d.ts +50 -0
- package/dist/views/testing/contract.js +266 -0
- package/dist/views/testing/fixture-host.d.ts +29 -0
- package/dist/views/testing/fixture-host.js +77 -0
- package/dist/views/testing/index.d.ts +2 -0
- package/dist/views/testing/index.js +1 -0
- package/dist/views/theme-watch.d.ts +28 -0
- package/dist/views/theme-watch.js +65 -0
- package/dist/views/trusted.d.ts +17 -0
- package/dist/views/trusted.js +17 -0
- package/dist/views/viewport.d.ts +30 -0
- package/dist/views/viewport.js +87 -0
- package/dist/workspace/LayoutBudget.js +1 -1
- package/dist/workspace/PanelContentView.js +2 -2
- package/dist/workspace/PanelGroups.js +1 -1
- package/dist/workspace/PanelHome.js +1 -1
- package/dist/workspace/PanelItems.js +2 -2
- package/dist/workspace/PanelStrip.js +2 -2
- package/dist/workspace/PanelToolbar.js +2 -2
- package/dist/workspace/SidePanel.js +4 -4
- package/dist/workspace/TabParking.js +2 -2
- package/dist/workspace/WorkspaceProvider.js +1 -1
- package/dist/workspace/dnd/parking.js +2 -2
- package/dist/workspace/extension-tabs.js +2 -2
- package/package.json +49 -2
- package/src/styles/components.css +421 -0
- package/src/styles/files.css +15 -0
- package/src/styles/primitives.css +10 -0
- package/src/styles/tokens.css +20 -1
- package/src/styles/transcript.css +174 -18
- package/dist/dist/index-f-XWIoYo.d.ts +0 -1
- package/dist/dist/sandbox-B4OW6oNx.d.ts +0 -2
- /package/dist/dist/{types-2HrgolQz.d.ts → types-CgfAUN48.d.ts} +0 -0
|
@@ -16,6 +16,8 @@ import { ContextBreakdown, ContextBreakdownData, ContextBreakdownProps, colorFor
|
|
|
16
16
|
import { ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, contextGauge } from "./ContextOrb.js";
|
|
17
17
|
import { ConversationBadges, ConversationBadgesProps } from "./ConversationBadges.js";
|
|
18
18
|
import { ComposerDock, ComposerDockProps, DockCard, DockCardProps, DockRow, DockRowProps } from "./DockCard.js";
|
|
19
|
+
import { DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, useDraftTarget } from "./use-draft-target.js";
|
|
20
|
+
import { DraftPickers, DraftPickersProps } from "./DraftPickers.js";
|
|
19
21
|
import { EffortPickerDialog, EffortPickerDialogProps } from "./EffortPickerDialog.js";
|
|
20
22
|
import { EFFORT_LEVELS, EffortLevel, ModelOption, ModelOptionsPicker, ModelOptionsPickerProps, OPTION_ICON, THINKING_LEVELS, ThinkingLevel } from "./ModelOptionsPicker.js";
|
|
21
23
|
import { HostComposer, HostComposerProps } from "./HostComposer.js";
|
|
@@ -48,14 +50,14 @@ import { ComposerDraft, ComposerTarget, NO_COMPOSER_HINT, __resetComposerScopesF
|
|
|
48
50
|
import { isCaretAtEnd, isCaretAtStart, plainTextToDocJson } from "./prompt-history-nav.js";
|
|
49
51
|
import { suggestionExtension } from "./suggestion-extension.js";
|
|
50
52
|
import { ATTACHMENT_NOTICE_MS, useAttachmentIngest, useAttachmentNotices } from "./useAttachmentIngest.js";
|
|
53
|
+
import { NewChatsDefault, useNewChatsDefault } from "./use-new-chats-default.js";
|
|
51
54
|
import { CycleAgentOptions, nextProfileId, useAgentProfiles, useCycleAgent } from "./use-agent-profiles.js";
|
|
52
55
|
import { useCacheHints } from "./use-cache-hints.js";
|
|
53
|
-
import { ModelCatalogState, resourceErrorText, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs } from "./use-composer-stores.js";
|
|
54
|
-
import { DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, useDraftTarget } from "./use-draft-target.js";
|
|
56
|
+
import { ModelCatalogState, resourceErrorText, useClearDraftKnobs, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs } from "./use-composer-stores.js";
|
|
55
57
|
import { useJoinedRunProgress, useRunAccruedCost, useRunElapsedSec, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt } from "./use-run-meter.js";
|
|
56
58
|
import { SendPromptControls, SendPromptOptions, useSendPrompt } from "./use-send-prompt.js";
|
|
57
59
|
import { SessionMeters, SessionMetersTarget, useSessionContextStatus, useSessionMeters } from "./use-session-meters.js";
|
|
58
60
|
import { NewSessionDefaults, NewSessionModelSource, useNewSessionDefaults } from "./use-new-session-defaults.js";
|
|
59
61
|
import { useProviderReadyPoll } from "./use-provider-ready-poll.js";
|
|
60
62
|
import { WORK_HOLD_MS, WORK_SHOW_MS, useSustainedWork, workShowDelay } from "./use-sustained-work.js";
|
|
61
|
-
export { ATTACHMENT_NOTICE_MS, AgentPicker, AgentPickerDialog, AgentPickerDialogProps, AgentPickerProps, AgentProfile, ApprovalDock, ApprovalDockProps, ArchivedBanner, ArchivedBannerProps, AttachmentLabelFn, AttachmentNotices, AttachmentNoticesProps, AttachmentRefusedError, AttachmentRow, AttachmentRowProps, AttachmentTiles, AttachmentTilesProps, Composer, type ComposerAttachment, ComposerBadge, ComposerBadgeTone, ComposerBadges, ComposerBadgesProps, ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerDock, ComposerDockProps, ComposerDraft, ComposerHandle, ComposerHostProvider, ComposerHostProviderProps, ComposerProps, ComposerResult, ComposerRetry, ComposerStatusPills, ComposerStatusPillsProps, ComposerSubmit, ComposerTarget, ContextBreakdown, type ContextBreakdownData, ContextBreakdownProps, ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, ConversationBadges, ConversationBadgesProps, Cursor, CycleAgentOptions, DEFAULT_BADGE_ORDER, DockCard, DockCardProps, DockRow, DockRowProps, DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, EFFORT_LEVELS, EffortLevel, EffortPickerDialog, EffortPickerDialogProps, HostAgentPicker, HostAgentPickerProps, HostComposer, HostComposerProps, HostContextOrb, HostContextOrbProps, HostModelChainList, HostModelChainListProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps, HostPicker, HostPickerProps, ImageModelList, ImageModelListProps, type ImageModelRow, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MentionItem, 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, ModelWindow, ModelWindowProps, NO_COMPOSER_HINT, NewSessionDefaults, NewSessionModelSource, OPTION_ICON, OrderedBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PickerGroup, PickerPill, PickerPillProps, ProjectMenu, ProjectMenuProps, PromptHistoryProvider, PromptHistoryProviderProps, PromptHistoryValue, RetryPill, RetryPillProps, RunStatusChip, RunStatusChipProps, ScopeToggle, ScopeToggleProps, SelectTurnHint, type SelectTurnHintProps, SendButton, SendButtonProps, SendPromptControls, SendPromptOptions, SendRoute, ServerScopeToggle, ServerScopeToggleProps, SessionMeters, SessionMetersTarget, SuggestionKind, SuggestionPopup, SuggestionPopupProps, SuggestionSource, SuggestionState, THINKING_LEVELS, TRIGGER, ThinkingLevel, WORK_HOLD_MS, WORK_SHOW_MS, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, canJoinChain, catalogFromProviders, claimComposerFocus, colorForCategory, compactWindow, contextGauge, decodeDataUrlAsText, defaultAttachmentTileLabel, detectLanguage, effectiveImageModel, findModel, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, imageCatalogRows, imageModelKey, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isPdfAttachment, isTextLike, lineupKeyOf, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, orderComposerBadges, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refKey, registerComposerScope, resolveChain, resolvePick, resourceErrorText, rowKey, shouldFoldPasteToAttachment, suggestionExtension, takePendingComposerFocus, textAttachment, unresolveChain, useAgentProfiles, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useCacheHints, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useCycleAgent, useDraftKnobs, useDraftTarget, useHasFocusedComposer, useHostResource, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useNewSessionDefaults, usePromptHistory, useProviderReadyPoll, useRememberedKnobs, useRunAccruedCost, useRunElapsedSec, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSendPrompt, useSessionContextStatus, useSessionMeters, useSustainedWork, withPrimary, workShowDelay };
|
|
63
|
+
export { ATTACHMENT_NOTICE_MS, AgentPicker, AgentPickerDialog, AgentPickerDialogProps, AgentPickerProps, AgentProfile, ApprovalDock, ApprovalDockProps, ArchivedBanner, ArchivedBannerProps, AttachmentLabelFn, AttachmentNotices, AttachmentNoticesProps, AttachmentRefusedError, AttachmentRow, AttachmentRowProps, AttachmentTiles, AttachmentTilesProps, Composer, type ComposerAttachment, ComposerBadge, ComposerBadgeTone, ComposerBadges, ComposerBadgesProps, ComposerControls, ComposerControlsProps, ComposerDefaults, ComposerDock, ComposerDockProps, ComposerDraft, ComposerHandle, ComposerHostProvider, ComposerHostProviderProps, ComposerProps, ComposerResult, ComposerRetry, ComposerStatusPills, ComposerStatusPillsProps, ComposerSubmit, ComposerTarget, ContextBreakdown, type ContextBreakdownData, ContextBreakdownProps, ContextCost, ContextGauge, ContextOrb, ContextOrbProps, ContextUsage, ConversationBadges, ConversationBadgesProps, Cursor, CycleAgentOptions, DEFAULT_BADGE_ORDER, DockCard, DockCardProps, DockRow, DockRowProps, DraftPickers, DraftPickersProps, DraftServer, DraftTarget, DraftTargetOptions, DraftTargetRequest, EFFORT_LEVELS, EffortLevel, EffortPickerDialog, EffortPickerDialogProps, HostAgentPicker, HostAgentPickerProps, HostComposer, HostComposerProps, HostContextOrb, HostContextOrbProps, HostModelChainList, HostModelChainListProps, HostModelImages, HostModelOptionsPicker, HostModelOptionsPickerProps, HostModelPicker, HostModelPickerProps, HostPicker, HostPickerProps, ImageModelList, ImageModelListProps, type ImageModelRow, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, MentionItem, 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, ModelWindow, ModelWindowProps, NO_COMPOSER_HINT, NewChatsDefault, NewSessionDefaults, NewSessionModelSource, OPTION_ICON, OrderedBadge, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PickerGroup, PickerPill, PickerPillProps, ProjectMenu, ProjectMenuProps, PromptHistoryProvider, PromptHistoryProviderProps, PromptHistoryValue, RetryPill, RetryPillProps, RunStatusChip, RunStatusChipProps, ScopeToggle, ScopeToggleProps, SelectTurnHint, type SelectTurnHintProps, SendButton, SendButtonProps, SendPromptControls, SendPromptOptions, SendRoute, ServerScopeToggle, ServerScopeToggleProps, SessionMeters, SessionMetersTarget, SuggestionKind, SuggestionPopup, SuggestionPopupProps, SuggestionSource, SuggestionState, THINKING_LEVELS, TRIGGER, ThinkingLevel, WORK_HOLD_MS, WORK_SHOW_MS, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, canJoinChain, catalogFromProviders, claimComposerFocus, colorForCategory, compactWindow, contextGauge, decodeDataUrlAsText, defaultAttachmentTileLabel, detectLanguage, effectiveImageModel, findModel, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, imageCatalogRows, imageModelKey, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isPdfAttachment, isTextLike, lineupKeyOf, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, orderComposerBadges, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refKey, registerComposerScope, resolveChain, resolvePick, resourceErrorText, rowKey, shouldFoldPasteToAttachment, suggestionExtension, takePendingComposerFocus, textAttachment, unresolveChain, useAgentProfiles, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useCacheHints, useClearDraftKnobs, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useCycleAgent, useDraftKnobs, useDraftTarget, useHasFocusedComposer, useHostResource, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, usePromptHistory, useProviderReadyPoll, useRememberedKnobs, useRunAccruedCost, useRunElapsedSec, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSendPrompt, useSessionContextStatus, useSessionMeters, useSustainedWork, withPrimary, workShowDelay };
|
|
@@ -35,7 +35,7 @@ import { AgentPickerDialog } from "./AgentPickerDialog.js";
|
|
|
35
35
|
import { ComposerDock, DockCard, DockRow } from "./DockCard.js";
|
|
36
36
|
import { ApprovalDock } from "./ApprovalDock.js";
|
|
37
37
|
import { ArchivedBanner } from "./ArchivedBanner.js";
|
|
38
|
-
import { resourceErrorText, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs } from "./use-composer-stores.js";
|
|
38
|
+
import { resourceErrorText, useClearDraftKnobs, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs } from "./use-composer-stores.js";
|
|
39
39
|
import { HostContextOrb } from "./HostContextOrb.js";
|
|
40
40
|
import { HostAgentPicker, HostModelOptionsPicker, HostModelPicker } from "./HostPickers.js";
|
|
41
41
|
import { useJoinedRunProgress, useRunAccruedCost, useRunElapsedSec, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt } from "./use-run-meter.js";
|
|
@@ -51,9 +51,11 @@ import { RetryPill } from "./RetryPill.js";
|
|
|
51
51
|
import { ProjectMenu } from "./ProjectMenu.js";
|
|
52
52
|
import { ScopeToggle } from "./ScopeToggle.js";
|
|
53
53
|
import { ServerScopeToggle } from "./ServerScopeToggle.js";
|
|
54
|
+
import { DraftPickers } from "./DraftPickers.js";
|
|
55
|
+
import { useNewChatsDefault } from "./use-new-chats-default.js";
|
|
54
56
|
import { useDraftTarget } from "./use-draft-target.js";
|
|
55
57
|
import { useSendPrompt } from "./use-send-prompt.js";
|
|
56
58
|
import { useSessionContextStatus, useSessionMeters } from "./use-session-meters.js";
|
|
57
59
|
import { useNewSessionDefaults } from "./use-new-session-defaults.js";
|
|
58
60
|
import { useProviderReadyPoll } from "./use-provider-ready-poll.js";
|
|
59
|
-
export { ATTACHMENT_NOTICE_MS, AgentPicker, AgentPickerDialog, ApprovalDock, ArchivedBanner, AttachmentNotices, AttachmentRefusedError, AttachmentRow, AttachmentTiles, Composer, ComposerBadges, ComposerControls, ComposerDock, ComposerHostProvider, ComposerStatusPills, ContextBreakdown, ContextOrb, ConversationBadges, DEFAULT_BADGE_ORDER, DockCard, DockRow, EFFORT_LEVELS, EffortPickerDialog, HostAgentPicker, HostComposer, HostContextOrb, HostModelChainList, HostModelOptionsPicker, HostModelPicker, HostPicker, ImageModelList, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, ModelChainFooter, ModelChainHeader, ModelChainList, ModelChainPopover, ModelChainRow, ModelChainRows, ModelChainTooltip, ModelFlag, ModelGroupHeader, ModelMeta, ModelOptionsPicker, ModelPicker, ModelPickerDialog, ModelPickerFrame, ModelProviderChip, ModelProviderPills, ModelReasoning, ModelWindow, NO_COMPOSER_HINT, OPTION_ICON, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PickerPill, ProjectMenu, PromptHistoryProvider, RetryPill, RunStatusChip, ScopeToggle, SelectTurnHint, SendButton, ServerScopeToggle, SuggestionPopup, THINKING_LEVELS, TRIGGER, WORK_HOLD_MS, WORK_SHOW_MS, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, canJoinChain, catalogFromProviders, claimComposerFocus, colorForCategory, compactWindow, contextGauge, decodeDataUrlAsText, defaultAttachmentTileLabel, detectLanguage, effectiveImageModel, findModel, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, imageCatalogRows, imageModelKey, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isPdfAttachment, isTextLike, lineupKeyOf, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, orderComposerBadges, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refKey, registerComposerScope, resolveChain, resolvePick, resourceErrorText, rowKey, shouldFoldPasteToAttachment, suggestionExtension, takePendingComposerFocus, textAttachment, unresolveChain, useAgentProfiles, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useCacheHints, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useCycleAgent, useDraftKnobs, useDraftTarget, useHasFocusedComposer, useHostResource, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useNewSessionDefaults, usePromptHistory, useProviderReadyPoll, useRememberedKnobs, useRunAccruedCost, useRunElapsedSec, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSendPrompt, useSessionContextStatus, useSessionMeters, useSustainedWork, withPrimary, workShowDelay };
|
|
61
|
+
export { ATTACHMENT_NOTICE_MS, AgentPicker, AgentPickerDialog, ApprovalDock, ArchivedBanner, AttachmentNotices, AttachmentRefusedError, AttachmentRow, AttachmentTiles, Composer, ComposerBadges, ComposerControls, ComposerDock, ComposerHostProvider, ComposerStatusPills, ContextBreakdown, ContextOrb, ConversationBadges, DEFAULT_BADGE_ORDER, DockCard, DockRow, DraftPickers, EFFORT_LEVELS, EffortPickerDialog, HostAgentPicker, HostComposer, HostContextOrb, HostModelChainList, HostModelOptionsPicker, HostModelPicker, HostPicker, ImageModelList, MAX_FILE_ATTACHMENT_BYTES, MAX_IMAGE_ATTACHMENT_BYTES, ModelChainFooter, ModelChainHeader, ModelChainList, ModelChainPopover, ModelChainRow, ModelChainRows, ModelChainTooltip, ModelFlag, ModelGroupHeader, ModelMeta, ModelOptionsPicker, ModelPicker, ModelPickerDialog, ModelPickerFrame, ModelProviderChip, ModelProviderPills, ModelReasoning, ModelWindow, NO_COMPOSER_HINT, OPTION_ICON, PASTE_FOLD_CHAR_THRESHOLD, PASTE_FOLD_LINE_THRESHOLD, PickerPill, ProjectMenu, PromptHistoryProvider, RetryPill, RunStatusChip, ScopeToggle, SelectTurnHint, SendButton, ServerScopeToggle, SuggestionPopup, THINKING_LEVELS, TRIGGER, WORK_HOLD_MS, WORK_SHOW_MS, __resetComposerScopesForTests, attachmentErrorText, attachmentLightboxItems, canJoinChain, catalogFromProviders, claimComposerFocus, colorForCategory, compactWindow, contextGauge, decodeDataUrlAsText, defaultAttachmentTileLabel, detectLanguage, effectiveImageModel, findModel, focusComposer, focusComposerWhenReady, formatBytes, groupKeyOf, hasComposerFor, hasFocusedComposer, imageCatalogRows, imageModelKey, isCaretAtEnd, isCaretAtStart, isFocusedComposer, isPdfAttachment, isTextLike, lineupKeyOf, mergeBadgeOrder, modelKey, modelLineup, modelNameOf, modelSearchScore, nextProfileId, offCatalogRows, onComposerAttachment, onComposerDraft, onComposerFocus, onComposerInsert, onComposerMention, onComposerPrompt, orderComposerBadges, pastedTextFilename, pickRefOf, pickerGroups, plainTextToDocJson, providerAccountLabel, pushComposerAttachment, pushComposerDraft, pushComposerInsert, pushComposerMention, pushComposerPrompt, readAttachment, refKey, registerComposerScope, resolveChain, resolvePick, resourceErrorText, rowKey, shouldFoldPasteToAttachment, suggestionExtension, takePendingComposerFocus, textAttachment, unresolveChain, useAgentProfiles, useAttachmentIngest, useAttachmentNotices, useAttachmentRemoval, useCacheHints, useClearDraftKnobs, useComposerFor, useComposerHost, useComposerLabels, useComposerModelName, useComposerProviderLabel, useCycleAgent, useDraftKnobs, useDraftTarget, useHasFocusedComposer, useHostResource, useJoinedRunProgress, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useNewChatsDefault, useNewSessionDefaults, usePromptHistory, useProviderReadyPoll, useRememberedKnobs, useRunAccruedCost, useRunElapsedSec, useRunMeterValue, useRunOutputTokens, useRunProgress, useRunStartedAt, useSendPrompt, useSessionContextStatus, useSessionMeters, useSustainedWork, withPrimary, workShowDelay };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Menu, MenuNote, MenuRow } from "../../components/Menu.js";
|
|
2
2
|
import { FloatingSurface } from "../../components/floating/FloatingSurface.js";
|
|
3
3
|
import { useChatLabels } from "../useChatLabels.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { useEffect, useRef } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/chat/composer/suggestions.tsx
|
|
7
7
|
/**
|
|
8
8
|
* The composer's two completion hooks, `@` mentions and `/` commands: each
|
|
@@ -39,6 +39,8 @@ declare function useModelCatalog(outer: readonly ComposerModelEntry[] | null, cw
|
|
|
39
39
|
declare function useModelPickerPrefsStore(): ModelPickerPrefsStore;
|
|
40
40
|
/** The model picker's preferences, live. */
|
|
41
41
|
declare function useModelPickerPrefs(): ModelPickerPrefs;
|
|
42
|
+
/** Forgets the draft's own effort and options (its chat was created): the next draft starts from the remembered ones. */
|
|
43
|
+
declare function useClearDraftKnobs(): () => void;
|
|
42
44
|
/**
|
|
43
45
|
* The last effort and options used with `modelId`, live.
|
|
44
46
|
*
|
|
@@ -59,4 +61,4 @@ declare function useComposerProviderLabel(): (providerKey: string) => string;
|
|
|
59
61
|
/** The remembered knobs of the nearest host, for actions. */
|
|
60
62
|
declare function useModelKnobs(): ModelKnobsStore;
|
|
61
63
|
//#endregion
|
|
62
|
-
export { ModelCatalogState, resourceErrorText, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs };
|
|
64
|
+
export { ModelCatalogState, resourceErrorText, useClearDraftKnobs, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs };
|
|
@@ -3,7 +3,7 @@ import { createModelPickerPrefs } from "../headless/composer/model-picker-prefs.
|
|
|
3
3
|
import { useComposerHost } from "./ComposerHostProvider.js";
|
|
4
4
|
import { modelKnobsOf } from "../headless/composer/model-knobs.js";
|
|
5
5
|
import { modelNamesOf } from "../headless/composer/model-names.js";
|
|
6
|
-
import { useEffect, useMemo, useSyncExternalStore } from "react";
|
|
6
|
+
import { useCallback, useEffect, useMemo, useSyncExternalStore } from "react";
|
|
7
7
|
//#region src/chat/composer/use-composer-stores.ts
|
|
8
8
|
/**
|
|
9
9
|
* The composer chrome's reads in a component: a host resource (a catalog, a
|
|
@@ -79,6 +79,11 @@ function useKnobsMemory() {
|
|
|
79
79
|
memory: useSyncExternalStore(store.subscribe, store.snapshot, store.snapshot)
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
+
/** Forgets the draft's own effort and options (its chat was created): the next draft starts from the remembered ones. */
|
|
83
|
+
function useClearDraftKnobs() {
|
|
84
|
+
const prefs = useComposerHost().prefs;
|
|
85
|
+
return useCallback(() => modelKnobsOf(prefs).clearDraft(), [prefs]);
|
|
86
|
+
}
|
|
82
87
|
/**
|
|
83
88
|
* The last effort and options used with `modelId`, live.
|
|
84
89
|
*
|
|
@@ -115,4 +120,4 @@ function useModelKnobs() {
|
|
|
115
120
|
return modelKnobsOf(useComposerHost().prefs);
|
|
116
121
|
}
|
|
117
122
|
//#endregion
|
|
118
|
-
export { resourceErrorText, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs };
|
|
123
|
+
export { resourceErrorText, useClearDraftKnobs, useComposerModelName, useComposerProviderLabel, useDraftKnobs, useHostResource, useModelCatalog, useModelKnobs, useModelPickerPrefs, useModelPickerPrefsStore, useRememberedKnobs };
|
|
@@ -42,6 +42,11 @@ interface DraftTargetOptions {
|
|
|
42
42
|
* draft, before a request. Absent: this computer.
|
|
43
43
|
*/
|
|
44
44
|
place?: NewChatPlace | null;
|
|
45
|
+
/**
|
|
46
|
+
* The host a draft starts on and falls back to. An app a server serves has no "this computer": its home is that
|
|
47
|
+
* server (one of {@link DraftTargetOptions.servers}). Default: this computer (`LOCAL_HOST_KEY`).
|
|
48
|
+
*/
|
|
49
|
+
home?: string;
|
|
45
50
|
}
|
|
46
51
|
/** A draft target picked outside the composer. */
|
|
47
52
|
interface DraftTargetRequest {
|
|
@@ -15,11 +15,12 @@ const OFFLINE_WAITS = { offlineWaits: true };
|
|
|
15
15
|
*/
|
|
16
16
|
function useDraftTarget(options) {
|
|
17
17
|
const { session, defaultFolder, setDefaultFolder, sessions, servers, onLocalFolder, request, place } = options;
|
|
18
|
+
const home = options.home ?? LOCAL_HOST_KEY;
|
|
18
19
|
const isNewSession = session == null;
|
|
19
20
|
const recentFolders = useMemo(() => recentLocalFolders(sessions), [sessions]);
|
|
20
21
|
const [folderlessDraft, setFolderlessDraft] = useState(false);
|
|
21
22
|
const [environment, setEnvironment] = useState(null);
|
|
22
|
-
const [hostId, setHostId] = useState(
|
|
23
|
+
const [hostId, setHostId] = useState(home);
|
|
23
24
|
const [remoteFolder, setRemoteFolder] = useState(null);
|
|
24
25
|
const [requestedMachineFolder, setRequestedMachineFolder] = useState(null);
|
|
25
26
|
const [appliedPlace, setAppliedPlace] = useState(null);
|
|
@@ -53,8 +54,8 @@ function useDraftTarget(options) {
|
|
|
53
54
|
const placeKey = `${place ? JSON.stringify(place) : ""}\u0000${placeSaved}`;
|
|
54
55
|
if (isNewSession && appliedPlace !== placeKey) {
|
|
55
56
|
setAppliedPlace(placeKey);
|
|
56
|
-
const target = place && placeSaved ? place.hostId :
|
|
57
|
-
const kind = place && placeSaved ? placeEnvironmentKind(place) : void 0;
|
|
57
|
+
const target = place && placeSaved && place.hostId !== LOCAL_HOST_KEY ? place.hostId : home;
|
|
58
|
+
const kind = place && placeSaved && place.hostId === target ? placeEnvironmentKind(place) : void 0;
|
|
58
59
|
setHostId(target);
|
|
59
60
|
setResetKeys((keys) => ({
|
|
60
61
|
...keys,
|
|
@@ -64,7 +65,8 @@ function useDraftTarget(options) {
|
|
|
64
65
|
kind,
|
|
65
66
|
branch: ""
|
|
66
67
|
} : null);
|
|
67
|
-
|
|
68
|
+
const own = place?.hostId === target ? place : null;
|
|
69
|
+
setRemoteFolder(target !== LOCAL_HOST_KEY && own && !own.machine ? own.folder ?? null : null);
|
|
68
70
|
setRequestedMachineFolder(kind && place?.machine && place.folder ? {
|
|
69
71
|
kind,
|
|
70
72
|
folder: place.folder
|
|
@@ -74,9 +76,9 @@ function useDraftTarget(options) {
|
|
|
74
76
|
hostName: place.hostName ?? place.hostId,
|
|
75
77
|
...place.hostUrl ? { hostUrl: place.hostUrl } : {}
|
|
76
78
|
} : null);
|
|
77
|
-
setPlaceCheck(target !== LOCAL_HOST_KEY && (
|
|
78
|
-
...
|
|
79
|
-
...
|
|
79
|
+
setPlaceCheck(target !== LOCAL_HOST_KEY && (own?.machine || own?.folder) ? {
|
|
80
|
+
...own.machine ? { machine: own.machine } : {},
|
|
81
|
+
...own.folder ? { folder: own.folder } : {}
|
|
80
82
|
} : null);
|
|
81
83
|
}
|
|
82
84
|
const [appliedRequest, setAppliedRequest] = useState(0);
|
|
@@ -101,7 +103,7 @@ function useDraftTarget(options) {
|
|
|
101
103
|
setPlaceCheck(null);
|
|
102
104
|
setPlaceIssue(null);
|
|
103
105
|
}
|
|
104
|
-
if (hostId !== LOCAL_HOST_KEY && !servers.some((host) => host.id === hostId)) setHostId(
|
|
106
|
+
if (hostId !== LOCAL_HOST_KEY && hostId !== home && !servers.some((host) => host.id === hostId)) setHostId(home);
|
|
105
107
|
const folderState = {
|
|
106
108
|
...session ? { sessionCwd: session.cwd } : {},
|
|
107
109
|
onServer: Boolean(server),
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DraftTarget } from "./use-draft-target.js";
|
|
2
|
+
import { NewChatPlace } from "zidane/chat/pure";
|
|
3
|
+
//#region src/chat/composer/use-new-chats-default.d.ts
|
|
4
|
+
/** What `WherePicker`'s `newChatsDefault` takes. */
|
|
5
|
+
interface NewChatsDefault {
|
|
6
|
+
/** The draft's place is where new chats start now. */
|
|
7
|
+
isDefault: boolean;
|
|
8
|
+
/** The space whose place it sets, by name (absent: the global place). */
|
|
9
|
+
space?: string;
|
|
10
|
+
/** Makes the draft's place the default, or stops it being so. */
|
|
11
|
+
onToggle: () => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The where menu's "Use for new chats" over the settings host.
|
|
15
|
+
*
|
|
16
|
+
* @param draft - The draft's target.
|
|
17
|
+
* @param place - Where new chats start now (`useNewSessionDefaults`' `place`).
|
|
18
|
+
* @param space - The space whose place it sets, and its name to show (absent: the global place).
|
|
19
|
+
*/
|
|
20
|
+
declare function useNewChatsDefault(draft: Pick<DraftTarget, 'here'>, place: NewChatPlace | null | undefined, space: {
|
|
21
|
+
id: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
} | null): NewChatsDefault;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { NewChatsDefault, useNewChatsDefault };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useSettingsHost } from "../../settings/SettingsProvider.js";
|
|
2
|
+
import { newChatPlacePatch, samePlace } from "zidane/chat/pure";
|
|
3
|
+
//#region src/chat/composer/use-new-chats-default.ts
|
|
4
|
+
/**
|
|
5
|
+
* "Use for new chats" in the where menu: whether the draft's place is where
|
|
6
|
+
* new chats start now, and the pick that makes it so (or stops it being so),
|
|
7
|
+
* written to the settings host as the space's place (Spaces on) or the
|
|
8
|
+
* global one (`newChatPlacePatch`).
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The where menu's "Use for new chats" over the settings host.
|
|
12
|
+
*
|
|
13
|
+
* @param draft - The draft's target.
|
|
14
|
+
* @param place - Where new chats start now (`useNewSessionDefaults`' `place`).
|
|
15
|
+
* @param space - The space whose place it sets, and its name to show (absent: the global place).
|
|
16
|
+
*/
|
|
17
|
+
function useNewChatsDefault(draft, place, space) {
|
|
18
|
+
const host = useSettingsHost();
|
|
19
|
+
const isDefault = Boolean(place) && samePlace(draft.here, place ?? void 0);
|
|
20
|
+
return {
|
|
21
|
+
isDefault,
|
|
22
|
+
...space?.name ? { space: space.name } : {},
|
|
23
|
+
onToggle: () => {
|
|
24
|
+
const doc = host.document.get();
|
|
25
|
+
if (doc.status !== "ready" || !host.update) return;
|
|
26
|
+
const patch = newChatPlacePatch(doc.values, space?.id, isDefault ? null : draft.here);
|
|
27
|
+
host.update(patch).catch(() => void 0);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { useNewChatsDefault };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Writable } from "../headless/store.js";
|
|
2
|
-
import { NewSessionDefaults, NewSessionRequest, SendAttachment } from "../headless/send-flow.js";
|
|
2
|
+
import { NewSessionDefaults, NewSessionRequest, SendAttachment, SendFlowDeps } from "../headless/send-flow.js";
|
|
3
3
|
import { DraftTarget } from "./use-draft-target.js";
|
|
4
4
|
import { MessageDelivery } from "zidane/chat";
|
|
5
5
|
//#region src/chat/composer/use-send-prompt.d.ts
|
|
@@ -30,6 +30,16 @@ interface SendPromptOptions {
|
|
|
30
30
|
side?(sessionId: string | null, question: string): string | null;
|
|
31
31
|
/** Whether a provider is ready on this computer (`null`: not known), which a send checks and updates. Absent: never checked. */
|
|
32
32
|
providerReady?: Writable<boolean | null>;
|
|
33
|
+
/**
|
|
34
|
+
* The draft's server is the one this app talks to (an app a server serves): its providers are the app's own, so
|
|
35
|
+
* the provider check applies there too. Default: false (a server's providers are its own business).
|
|
36
|
+
*/
|
|
37
|
+
homeServer?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Where the send flow writes errors and prompt previews. Default: the nearest `SessionStreamsProvider`'s (an app
|
|
40
|
+
* whose host keeps the transcript, a server's, passes its own).
|
|
41
|
+
*/
|
|
42
|
+
streams?: SendFlowDeps['streams'];
|
|
33
43
|
}
|
|
34
44
|
/** The composer's send and stop. */
|
|
35
45
|
interface SendPromptControls {
|
|
@@ -3,7 +3,7 @@ import { useChatHost } from "../ChatProvider.js";
|
|
|
3
3
|
import { useComposerHost, useComposerLabels } from "./ComposerHostProvider.js";
|
|
4
4
|
import { useGitHost } from "../../git/GitProvider.js";
|
|
5
5
|
import { useSessionHost } from "../../session/SessionProvider.js";
|
|
6
|
-
import {
|
|
6
|
+
import { useOptionalSessionStreamActions } from "../SessionStreamsProvider.js";
|
|
7
7
|
import { usePromptHistory } from "./PromptHistoryProvider.js";
|
|
8
8
|
import { useState, useSyncExternalStore } from "react";
|
|
9
9
|
import { parseCommandInvocation } from "zidane/chat/pure";
|
|
@@ -24,7 +24,9 @@ function useSendPrompt(options) {
|
|
|
24
24
|
const composer = useComposerHost();
|
|
25
25
|
const queue = useSessionHost().queue;
|
|
26
26
|
const history = usePromptHistory();
|
|
27
|
-
const
|
|
27
|
+
const provided = useOptionalSessionStreamActions();
|
|
28
|
+
const streams = options.streams ?? provided;
|
|
29
|
+
if (!streams) throw new Error("zidane-ui/chat: useSendPrompt needs a SessionStreamsProvider, or its `streams` option");
|
|
28
30
|
const labels = useComposerLabels();
|
|
29
31
|
const provider = providerReady ?? UNKNOWN;
|
|
30
32
|
const ready = useSyncExternalStore(provider.subscribe, provider.get, provider.get);
|
|
@@ -93,7 +95,7 @@ function useSendPrompt(options) {
|
|
|
93
95
|
...opts.delivery ? { delivery: opts.delivery } : {},
|
|
94
96
|
running,
|
|
95
97
|
cwd,
|
|
96
|
-
remote: Boolean(hostId || draft.server)
|
|
98
|
+
remote: Boolean(hostId || draft.server && !options.homeServer)
|
|
97
99
|
}, {
|
|
98
100
|
host: chat,
|
|
99
101
|
streams,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Readable } from "./store.js";
|
|
2
|
+
import { PromptOrigin } from "./prompt-origin.js";
|
|
2
3
|
import { SessionArchiveFilter, SidebarListSession } from "./sidebar/types.js";
|
|
3
4
|
import { SidebarViewsHost } from "./sidebar/view.js";
|
|
4
5
|
import { SessionRemoval, SessionRowChange } from "./sidebar/directory.js";
|
|
@@ -164,6 +165,14 @@ interface SendInput {
|
|
|
164
165
|
* current step), `queue` holds it until the run ends. A run that ends first gets it as a new prompt.
|
|
165
166
|
*/
|
|
166
167
|
delivery?: MessageDelivery;
|
|
168
|
+
/**
|
|
169
|
+
* Who the prompt comes from when not the composer: a view's input sets
|
|
170
|
+
* `{ kind: 'user', source: 'view', view }` (docs/VIEWS.md, Inputs). The
|
|
171
|
+
* host saves it with the prompt, and the transcript labels the message.
|
|
172
|
+
*/
|
|
173
|
+
origin?: PromptOrigin;
|
|
174
|
+
/** Never read the text as a `/` command: it reaches the model as sent. */
|
|
175
|
+
literal?: boolean;
|
|
167
176
|
}
|
|
168
177
|
/** A conversation whose content matched a search. */
|
|
169
178
|
interface SessionSearchHit {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Readable, Writable, constant, useReadable, writable } from "./store.js";
|
|
2
|
+
import { PromptOrigin, PromptOriginWire, PromptViewOrigin, promptOriginWire } from "./prompt-origin.js";
|
|
2
3
|
import { SessionNotification, SessionNotificationStore, createNotificationStore } from "./sidebar/notifications.js";
|
|
3
4
|
import { SessionActivityFilter, SessionArchiveFilter, SidebarExtensionView, SidebarGroupBy, SidebarListSession, SidebarOrigin, SidebarSortBy, SidebarView, VIEW_CHOICE } from "./sidebar/types.js";
|
|
4
5
|
import { DEFAULT_SIDEBAR_VIEW, DEFAULT_SWITCHER_PREFS, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SidebarLastSessions, SidebarViewMap, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, SpaceSwitcherPrefs, createSidebarViews, parseSidebarView, parseSwitcherPrefs, readSidebarViews } from "./sidebar/view.js";
|
|
@@ -34,10 +35,9 @@ import { ChipViewLabels, commandName, commandView, commitView, sessionForToken,
|
|
|
34
35
|
import { createSiteIcons, siteOrigin } from "./site-icons.js";
|
|
35
36
|
import { CalendarOptions, ListableSession, PROJECT_GROUP_CAP, RELATIVE_TIME_DATE_AFTER_DAYS, SessionGroupBy, SessionListOptions, SessionListRow, SessionSortBy, buildSessionRows, compareSessions, dateBucket, filterSessions, formatElapsedShort, relativeTime } from "./session-list.js";
|
|
36
37
|
import { CHUNK_THRESHOLD, OpenFence, openFenceOf, splitMarkdown, withoutPartialFence } from "./markdown-chunks.js";
|
|
37
|
-
import {
|
|
38
|
-
import { BashExitMeta, Cluster, DotVariant, ExchangeFoldStats, GroupCluster, Owned, Row, SpawnMeta, ToolRowModel, firstRowId, parseBashExitMeta } from "./transcript/rows.js";
|
|
38
|
+
import { BashExitMeta, Cluster, DotVariant, ExchangeFoldStats, GroupCluster, Owned, Row, SpawnMeta, TaskInfo, ToolRowModel, firstRowId, parseBashExitMeta } from "./transcript/rows.js";
|
|
39
39
|
import { collapseEvents, inheritRowIdentity, refusedSpawn, toolFailed } from "./transcript/collapse.js";
|
|
40
|
-
import { batchThinkingRuns, batchToolRuns, clusterByOwner } from "./transcript/batch.js";
|
|
40
|
+
import { batchTaskRuns, batchThinkingRuns, batchToolRuns, clusterByOwner } from "./transcript/batch.js";
|
|
41
41
|
import { dockRunReceipts, dotVariantFor, findLastStreamingRow, foldExchanges, foldWorkerRows } from "./transcript/fold.js";
|
|
42
42
|
import { nestToolCalls, nestedCallVisible } from "./transcript/nesting.js";
|
|
43
43
|
import { PairingResult, ToolPairing, pairToolEvents } from "./transcript/pairing.js";
|
|
@@ -79,4 +79,5 @@ import { EffortPickerTarget, defaultModelPatch, effortPickerTarget, rememberedDe
|
|
|
79
79
|
import { ConversationBadge, ConversationBadgeData, ConversationBadgeInput, InboxSummary, MAX_EXTENSION_COMPOSER_BADGES, conversationBadges, resolveBadgePanel } from "./composer/conversation-badges.js";
|
|
80
80
|
import { ModelNames, ModelNamesProvider, ModelNamesStore, createModelNames, modelNamesOf, namerFor } from "./composer/model-names.js";
|
|
81
81
|
import "./composer/index.js";
|
|
82
|
-
|
|
82
|
+
import { NotificationSettings, NotifyEvent, approvalNotificationDetail, notificationContent, questionNotificationDetail, shouldNotify } from "./notifications.js";
|
|
83
|
+
export { AGENT_GROUPING, type AuthCardPlan, type AuthFixes, type AuthSettingsTarget, type BashExitMeta, BuildQuerySidebarRowsOptions, BuildSidebarRowsOptions, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, CalendarOptions, ChatAttachment, ChatAttachmentOriginal, ChatBadgeActions, ChatBlockRunOptions, ChatBlockRunTransport, ChatBlockRuns, ChatChipDetails, ChatCommandFacts, ChatCommit, ChatContextFacts, ChatEvent, ChatHost, ChatInteraction, ChatLabels, ChatModel, ChatModelProvider, ChatPaths, ChatReferences, ChatReferencesChange, ChatResolvedPath, ChatSearchState, ChatSearchSync, ChatSession, ChatSessionFacts, ChatSessionStatus, ChatSiteIcons, ChatSkillFacts, ChipResolution, ChipViewLabels, type Cluster, type CommandArgSuggestionSummary, type CommandSummary, CompactionProgress, CompactionProgressStore, CompactionSignal, ComposerAgentProfile, ComposerAgents, ComposerAttachment, ComposerAutocomplete, ComposerCacheImpact, ComposerCacheImpactChange, ComposerChromeLabels, ComposerCommandArgs, ComposerCompletions, ComposerContext, ComposerContextBreakdown, ComposerContextStatus, ComposerControls, ComposerCostStatus, ComposerDraftAttachmentsListener, ComposerDrafts, ComposerEffort, ComposerExtensionItem, ComposerExtensionProvider, ComposerFolderLocation, ComposerFolders, ComposerHost, ComposerLabels, type ComposerListScope, type ComposerLists, ComposerMode, ComposerModelEntry, ComposerModelOption, ComposerModels, ComposerPrefs, ComposerPrefsState, ComposerPromptSuggestion, ComposerRememberedModel, ComposerRunProgress, ComposerRuns, ComposerScope, ComposerSessionView, ComposerSharedGhost, ComposerSuggestions, ConversationBadge, ConversationBadgeData, ConversationBadgeInput, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SWITCHER_PREFS, DeltaBucket, DirectoryServer, DirectorySettings, DotStateInput, type DotVariant, DraftFolderSource, DraftFolderState, DraftPlaceIssue, DraftScope, DraftScopeState, DraftScopeStore, DraftScopeStoreOptions, type DrainPlan, EMPTY_RUN_METER, EffortPickerTarget, type ExchangeFoldStats, FileChip, FileChipKind, type FileEntry, type FoldActionItem, type FoldActionState, type FrameScheduler, type GroupCluster, HostStatus, HostView, ImageModelRow, InboxSummary, LIVE_BLOCK_RUN_LINES, type LazyList, ListableSession, LiveBlockRun, LiveCostStatus, LiveStreamProgress, type LoadEarlierOptions, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, ModelCatalogRow, ModelKnobs, ModelKnobsMemory, ModelKnobsStore, ModelNames, ModelNamesProvider, ModelNamesStore, ModelPickRef, ModelPickerPrefs, ModelPickerPrefsStorage, ModelPickerPrefsStore, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, NewSessionDefaults, NewSessionRequest, type NotificationSettings, type NotifyEvent, OpenFence, type OtherStreamSignal, type Owned, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, type PairingResult, PathResolver, PathResolverOptions, type PendingEcho, PinsBySpace, ProjectIcon, ProjectIconMap, ProjectInSpace, type PromptAttachment, type PromptOrigin, type PromptOriginWire, type PromptViewOrigin, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, Readable, ReferenceStore, ReferenceStoreOptions, ReferenceViewEntry, type ResourceSnapshot, type Row, RunEstimatesRow, RunEstimatesSignal, RunEstimatesStore, type RunFailure, RunMeter, RunMeterRow, RunMeterSignal, RunMeterState, RuntimeNow, RuntimeOrigin, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SecretTimeLeft, type SelectStops, SendAttachment, SendDraft, SendFlowDeps, SendInput, SendPromptAttachment, SendRequest, SessionActivity, SessionActivityFilter, SessionActivitySignal, SessionActivityStore, SessionArchiveFilter, SessionBadgesEntry, SessionBadgesSource, SessionBadgesStore, SessionDirectory, SessionDirectoryOptions, SessionDirectorySource, SessionDirectoryState, SessionDirectoryStreams, type SessionFallbackModel, SessionGroupBy, SessionHistory, SessionHistoryDirection, SessionHistoryOptions, SessionHistoryPage, SessionHistoryState, SessionHistoryStore, SessionListOptions, SessionListRow, SessionNotification, SessionNotificationStore, type SessionPageState, SessionRef, SessionRemoval, type SessionRetryState, SessionRowChange, SessionSearchHit, SessionSortBy, type SessionStreamActions, type SessionStreamPage, type SessionStreamSignal, SessionStreamStore, type SessionStreamStoreOptions, type SessionStreamWrite, type SessionStreams, type SessionStreamsOptions, SessionWindowMode, SetDefaultModel, SharedDraft, SharedDraftAttachmentsChange, SharedDraftChange, SidebarContributionStores, SidebarContributions, SidebarDotState, SidebarEnvironmentHost, SidebarExtensionView, SidebarGroupBy, SidebarGrouping, SidebarHost, SidebarItemEntry, SidebarLabels, SidebarLastSessions, SidebarListRow, SidebarListSession, SidebarNode, SidebarOrigin, SidebarQueryLayer, SidebarRowChip, SidebarRowDecoration, SidebarSortBy, SidebarSpace, SidebarView, SidebarViewMap, SidebarViewRecord, SidebarViews, SidebarViewsHost, SidebarViewsOptions, SidebarViewsStorage, type SkillConfig, SpaceSwitcherPrefs, type SpawnMeta, type TaskInfo, type ToolPairing, type ToolRowModel, Transcript, TranscriptState, TurnPromptDraft, VIEW_CHOICE, Writable, activityLabel, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareSessions, composeLiveCost, composeSubmitText, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentSummaryText, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, formatElapsedShort, formatSessionCostLabel, groupsByFolder, hostReachable, hostStatusLabel, inheritRowIdentity, isAuthFixed, isProjectIcon, isProjectMember, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newSessionRequest, nextSavedViewName, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, siteOrigin, skillName, skillView, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialFence, writable };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { constant, useReadable, writable } from "./store.js";
|
|
2
|
+
import { promptOriginWire } from "./prompt-origin.js";
|
|
2
3
|
import { pairToolEvents } from "./transcript/pairing.js";
|
|
3
4
|
import { firstRowId, parseBashExitMeta } from "./transcript/rows.js";
|
|
4
5
|
import { collapseEvents, inheritRowIdentity, refusedSpawn, toolFailed } from "./transcript/collapse.js";
|
|
@@ -25,7 +26,7 @@ import { createPathResolver } from "./path-resolver.js";
|
|
|
25
26
|
import { REFERENCES_STORAGE_KEY, createReferenceStore } from "./reference-store.js";
|
|
26
27
|
import { CHUNK_THRESHOLD, openFenceOf, splitMarkdown, withoutPartialFence } from "./markdown-chunks.js";
|
|
27
28
|
import { hostReachable, hostStatusLabel } from "./hosts.js";
|
|
28
|
-
import { batchThinkingRuns, batchToolRuns, clusterByOwner } from "./transcript/batch.js";
|
|
29
|
+
import { batchTaskRuns, batchThinkingRuns, batchToolRuns, clusterByOwner } from "./transcript/batch.js";
|
|
29
30
|
import { foldActionItems, toolAction } from "./transcript/fold-actions.js";
|
|
30
31
|
import { dockRunReceipts, dotVariantFor, findLastStreamingRow, foldExchanges, foldWorkerRows } from "./transcript/fold.js";
|
|
31
32
|
import { nestToolCalls, nestedCallVisible } from "./transcript/nesting.js";
|
|
@@ -46,9 +47,9 @@ import { defaultModelPatch, effortPickerTarget, rememberedDefaultModel } from ".
|
|
|
46
47
|
import { secretTimeLeft, secretTimeLeftIso } from "./secrets.js";
|
|
47
48
|
import { wireAttachmentsToChat } from "./composer/draft-sync.js";
|
|
48
49
|
import { promptDraftOf } from "./turn-prompt.js";
|
|
50
|
+
import { pinSession, pinnedSessions } from "./sidebar/pinned-sessions.js";
|
|
49
51
|
import { COMMON_EMOJI, MAIN_SESSION_ICON_KEY, PROJECT_ICONS_KEY, firstGrapheme, isProjectIcon, parseProjectIcons } from "./sidebar/project-icons.js";
|
|
50
52
|
import { DEFAULT_SIDEBAR_LABELS } from "./sidebar/labels.js";
|
|
51
|
-
import { pinSession, pinnedSessions } from "./sidebar/pinned-sessions.js";
|
|
52
53
|
import { caretEffectivelyAtStart, composeSubmitText, decodeHistoryEntry, encodeHistoryDraft, exitsModeOnKey, modeForTypedChar, unsentDraft } from "./composer-modes.js";
|
|
53
54
|
import { createDraftScopeStore, draftScopeOf } from "./draft-scope.js";
|
|
54
55
|
import { VIEW_CHOICE } from "./sidebar/types.js";
|
|
@@ -65,4 +66,5 @@ import { availableProjectsOf, createSessionDirectory, filterDirectorySessions, p
|
|
|
65
66
|
import { deriveDotState } from "./sidebar/dot-state.js";
|
|
66
67
|
import { deleteSessionPrompt, environmentKindLabel, environmentSummaryText, runsInRemoteSandbox } from "./sidebar/environment.js";
|
|
67
68
|
import { createComposerLists } from "./composer/composer-sources.js";
|
|
68
|
-
|
|
69
|
+
import { approvalNotificationDetail, notificationContent, questionNotificationDetail, shouldNotify } from "./notifications.js";
|
|
70
|
+
export { AGENT_GROUPING, CHATS_BUCKET, CHUNK_THRESHOLD, COMMON_EMOJI, DEFAULT_CHAT_LABELS, DEFAULT_COMPOSER_CHROME_LABELS, DEFAULT_COMPOSER_LABELS, DEFAULT_MODEL_PICKER_PREFS, DEFAULT_SIDEBAR_LABELS, DEFAULT_SIDEBAR_VIEW, DEFAULT_SWITCHER_PREFS, EMPTY_RUN_METER, LIVE_BLOCK_RUN_LINES, MAIN_SESSION_ICON_KEY, MAX_EXTENSION_COMPOSER_BADGES, MAX_ROW_CHIPS, MODEL_PICKER_STORAGE_KEY, NO_PROVIDER_ERROR, NO_SIDEBAR_CONTRIBUTIONS, PINNED_PROJECTS_KEY, PROJECT_GROUP_CAP, PROJECT_ICONS_KEY, REFERENCES_STORAGE_KEY, RELATIVE_TIME_DATE_AFTER_DAYS, SESSION_HISTORY_LIMIT, SIDEBAR_SPACE_KEY, SIDEBAR_SWITCHER_KEY, SIDEBAR_VIEW_KEY, SIDEBAR_VIEW_VERSION, SMOOTH_TICK_MS, SessionStreamStore, VIEW_CHOICE, activityLabel, approvalNotificationDetail, authFailureDetails, availableProjectsOf, batchTaskRuns, batchThinkingRuns, batchToolRuns, beginChipWork, buildHostSidebarRows, buildQuerySidebarRows, buildSessionRows, buildSidebarRows, caretEffectivelyAtStart, chipForPath, chipWorkBusy, claimChildSessions, classifyInlineCode, clearedViewFilters, clusterByOwner, collapseEvents, commandName, commandRef, commandView, commitModelPick, commitView, compareSessions, composeLiveCost, composeSubmitText, computeSelectStops, constant, conversationBadges, createAuthFixes, createChatBlockRuns, createCompactionProgress, createComposerLists, createDecorator, createDraftScopeStore, createModelKnobs, createModelNames, createModelPickerPrefs, createNotificationStore, createPathResolver, createReferenceStore, createRunEstimates, createRunMeter, createSessionActivity, createSessionBadges, createSessionDirectory, createSessionHistory, createSessionStreamActions, createSessionStreams, createSidebarViews, createSiteIcons, dateBucket, decodeHistoryEntry, defaultFrameScheduler, defaultModelPatch, deleteSessionPrompt, deriveDotState, dockRunReceipts, dotVariantFor, draftFolderPath, draftLocalFolder, draftScopeOf, drainBucket, effortPickerTarget, encodeHistoryDraft, environmentKindLabel, environmentSummaryText, exitsModeOnKey, extensionSpaceOf, failureTooltip, filterDirectorySessions, filterQueryOf, filterSessions, filtersForSpace, findCommand, findLastStreamingRow, firstGrapheme, firstRowId, foldActionItems, foldExchanges, foldWorkerRows, formatElapsedShort, formatSessionCostLabel, groupsByFolder, hostReachable, hostStatusLabel, inheritRowIdentity, isAuthFixed, isProjectIcon, isProjectMember, itemRows, itemsForSpace, lastModelChainOf, markRunFailures, mergeLiveTail, mergePromptPreviews, mergeSidebarSpaces, missingPreviewData, modeForTypedChar, modelKnobsOf, modelNamesOf, namerFor, nestSidebarRows, nestToolCalls, nestedCallVisible, newSessionRequest, nextSavedViewName, notificationContent, openFenceOf, pairToolEvents, parseBashExitMeta, parseModelPickerPrefs, parsePinnedProjects, parseProjectIcons, parseSessionHistory, parseSidebarView, parseSwitcherPrefs, partitionMainSession, pickRunEstimate, pinSession, pinnedSessions, planAuthCard, positionSuffix, projectKeyOf, projectPathOf, promptAttachments, promptDraftOf, promptOriginWire, promptRefs, questionNotificationDetail, readSidebarViews, recentHostFolders, recentLocalFolders, reduceActivity, reduceCompaction, refusedSpawn, relativeTime, rememberableChain, rememberedDefaultModel, rememberedPick, repoGroups, resetChipWorkForTests, resolveBadgePanel, resolveChipPath, resolveGrouping, resolveSort, rowTurnIds, runsInRemoteSandbox, safeSurrogateSlice, secretExpiryWords, secretTimeLeft, secretTimeLeftIso, selectEditEvents, sendPrompt, sessionForToken, sessionRefsOf, sessionView, settledResource, shellCommandOf, shortUrl, shouldNotify, sidebarContributionsOf, siteOrigin, skillName, skillView, spaceMembership, splitMarkdown, stableSelection, stopForRow, switcherSpaces, tickBucket, toolAction, toolFailed, unsentDraft, urlRefs, useReadable, viewFilterOf, viewFiltersOn, whenChipsSettle, wireAttachmentsToChat, wireOriginal, withPinnedProject, withoutPartialFence, writable };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SecretTimeLeft } from "./secrets.js";
|
|
2
|
-
import { AuthFailure, SecretTtl } from "zidane/chat/pure";
|
|
2
|
+
import { AuthFailure, SecretTtl, TaskOutcome, TaskOutcomeCounts } from "zidane/chat/pure";
|
|
3
3
|
//#region src/chat/headless/labels.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* When a saved secret goes, in words.
|
|
@@ -161,6 +161,8 @@ declare const DEFAULT_CHAT_LABELS: {
|
|
|
161
161
|
copyDiagramSource: string;
|
|
162
162
|
/** Under a fence that could not be drawn; `at` is `line 3, column 7` or empty. */
|
|
163
163
|
diagramNotDrawn: (at: string) => string;
|
|
164
|
+
/** The key line under a view's diagram with a highlighted path: the path's node names, in order. */
|
|
165
|
+
diagramPathKey: (names: readonly string[]) => string;
|
|
164
166
|
/** Where a diagram error is. */
|
|
165
167
|
diagramErrorAt: (line: number, column: number) => string;
|
|
166
168
|
stopCommand: string;
|
|
@@ -203,6 +205,10 @@ declare const DEFAULT_CHAT_LABELS: {
|
|
|
203
205
|
workerSystemReplaced: string;
|
|
204
206
|
showSystemPrompt: string;
|
|
205
207
|
earlierMessages: (count: number) => string;
|
|
208
|
+
taskEnded: Record<TaskOutcome, string>;
|
|
209
|
+
taskBurst: (counts: TaskOutcomeCounts) => string;
|
|
210
|
+
/** The tooltip of a task's log chip. */
|
|
211
|
+
taskLog: (path: string) => string;
|
|
206
212
|
toolAttachments: string;
|
|
207
213
|
moreAttachments: (count: number) => string;
|
|
208
214
|
showMoreAttachments: (count: number) => string;
|
|
@@ -494,6 +500,7 @@ declare const DEFAULT_CHAT_LABELS: {
|
|
|
494
500
|
turnMenuStopFirst: (label: string) => string;
|
|
495
501
|
turnMenuSent: (age: string) => string;
|
|
496
502
|
turnMenuEditNeedsComposer: string;
|
|
503
|
+
turnMenuFailed: string;
|
|
497
504
|
selectTurnSelecting: string;
|
|
498
505
|
selectTurnMove: string;
|
|
499
506
|
selectTurnDetails: string;
|
|
@@ -579,6 +586,80 @@ declare const DEFAULT_CHAT_LABELS: {
|
|
|
579
586
|
diagnosticsNone: string;
|
|
580
587
|
steps: string;
|
|
581
588
|
stepOf: (index: number, count: number) => string;
|
|
589
|
+
stepStatus: {
|
|
590
|
+
done: string;
|
|
591
|
+
active: string;
|
|
592
|
+
pending: string;
|
|
593
|
+
failed: string;
|
|
594
|
+
skipped: string;
|
|
595
|
+
};
|
|
596
|
+
deltaUp: (value: string) => string;
|
|
597
|
+
deltaDown: (value: string) => string;
|
|
598
|
+
deltaFlat: string;
|
|
599
|
+
chartLabel: string;
|
|
600
|
+
chartLegend: string;
|
|
601
|
+
chartData: string;
|
|
602
|
+
chartHideSeries: (name: string) => string;
|
|
603
|
+
chartShowSeries: (name: string) => string;
|
|
604
|
+
chartResetZoom: string;
|
|
605
|
+
chartTotal: string;
|
|
606
|
+
sparklineLabel: string;
|
|
607
|
+
numberLocale: string;
|
|
608
|
+
compareBefore: string;
|
|
609
|
+
compareAfter: string;
|
|
610
|
+
compareSame: string;
|
|
611
|
+
compareAllSame: string;
|
|
612
|
+
compareBetter: (better: number, total: number) => string;
|
|
613
|
+
compareWorse: (worse: number, total: number) => string;
|
|
614
|
+
compareMixed: (better: number, worse: number, total: number) => string;
|
|
615
|
+
compareWithinNoise: (same: number) => string;
|
|
616
|
+
compareSideBetter: string;
|
|
617
|
+
compareSideWorse: string;
|
|
618
|
+
compareSideLeft: (side: string) => string;
|
|
619
|
+
compareSideRight: (side: string) => string;
|
|
620
|
+
compareFromTo: (before: string, after: string) => string;
|
|
621
|
+
chartFit: (r: string, equation: string) => string;
|
|
622
|
+
chartFitLabel: (r: string, equation: string) => string;
|
|
623
|
+
chartAxisTitle: (name: string, unit: string) => string;
|
|
624
|
+
chartLogAxis: (title: string) => string;
|
|
625
|
+
chartSize: string;
|
|
626
|
+
progressOf: (value: string, max: string) => string;
|
|
627
|
+
progressOfMax: (max: string) => string;
|
|
628
|
+
checklistDone: (done: number, total: number) => string;
|
|
629
|
+
checklistDoneOf: (total: number) => string;
|
|
630
|
+
checklistGroupsComplete: (complete: number, total: number) => string;
|
|
631
|
+
checklistGroupsCompleteOf: (total: number) => string;
|
|
632
|
+
checklistNotes: string;
|
|
633
|
+
checklistStatus: {
|
|
634
|
+
done: string;
|
|
635
|
+
failed: string;
|
|
636
|
+
pending: string;
|
|
637
|
+
};
|
|
638
|
+
checklistScore: string;
|
|
639
|
+
breakdownOther: string;
|
|
640
|
+
breakdownTotal: string;
|
|
641
|
+
breakdownParts: string;
|
|
642
|
+
trendSince: (label: string) => string;
|
|
643
|
+
trendWeekdays: string;
|
|
644
|
+
trendDaily: string;
|
|
645
|
+
trendWeekends: string;
|
|
646
|
+
trendAverage: string;
|
|
647
|
+
tableSearch: string;
|
|
648
|
+
tableFilter: (column: string) => string;
|
|
649
|
+
tableFilterAll: (column: string) => string;
|
|
650
|
+
tableNoMatch: string;
|
|
651
|
+
tablePage: (from: number, to: number, total: number) => string;
|
|
652
|
+
tablePrevious: string;
|
|
653
|
+
tableNext: string;
|
|
654
|
+
tableShowDetails: string;
|
|
655
|
+
tableHideDetails: string;
|
|
656
|
+
tableTotal: string;
|
|
657
|
+
tableFilterAllCount: (count: number) => string;
|
|
658
|
+
tableFilterValueCount: (value: string, count: number) => string;
|
|
659
|
+
tableRowsShown: string;
|
|
660
|
+
tableToneKey: (column: string, rules: string) => string;
|
|
661
|
+
tableToneAbove: (color: string, value: string) => string;
|
|
662
|
+
tableToneColor: (tone: "neutral" | "info" | "success" | "warning" | "danger") => string;
|
|
582
663
|
goToStep: (step: string) => string;
|
|
583
664
|
skip: string;
|
|
584
665
|
continue: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_LABELS } from "../../labels.js";
|
|
2
2
|
import { TRANSCRIPT_LABELS } from "./transcript-labels.js";
|
|
3
|
-
import { RUN_WAITING_LABEL, authFailureHeadline, runRetryingLabel } from "zidane/chat/pure";
|
|
3
|
+
import { RUN_WAITING_LABEL, authFailureHeadline, runRetryingLabel, taskBurstSummary } from "zidane/chat/pure";
|
|
4
4
|
//#region src/chat/headless/labels.ts
|
|
5
5
|
/**
|
|
6
6
|
* The chat layer's strings, on top of the design system's (`labels.tsx`).
|
|
@@ -195,6 +195,8 @@ const DEFAULT_CHAT_LABELS = {
|
|
|
195
195
|
copyDiagramSource: "Copy diagram source",
|
|
196
196
|
/** Under a fence that could not be drawn; `at` is `line 3, column 7` or empty. */
|
|
197
197
|
diagramNotDrawn: (at) => at ? `Diagram not drawn (${at}).` : "Diagram not drawn.",
|
|
198
|
+
/** The key line under a view's diagram with a highlighted path: the path's node names, in order. */
|
|
199
|
+
diagramPathKey: (names) => `Highlighted: ${names.join(" → ")}`,
|
|
198
200
|
/** Where a diagram error is. */
|
|
199
201
|
diagramErrorAt: (line, column) => column ? `line ${line}, column ${column}` : `line ${line}`,
|
|
200
202
|
stopCommand: "Stop command",
|
|
@@ -237,6 +239,14 @@ const DEFAULT_CHAT_LABELS = {
|
|
|
237
239
|
workerSystemReplaced: "replaced for this worker",
|
|
238
240
|
showSystemPrompt: "Show system prompt",
|
|
239
241
|
earlierMessages: (count) => `${count} earlier message${count === 1 ? "" : "s"}`,
|
|
242
|
+
taskEnded: {
|
|
243
|
+
finished: "Task finished",
|
|
244
|
+
failed: "Task failed",
|
|
245
|
+
stopped: "Task stopped"
|
|
246
|
+
},
|
|
247
|
+
taskBurst: (counts) => taskBurstSummary(counts),
|
|
248
|
+
/** The tooltip of a task's log chip. */
|
|
249
|
+
taskLog: (path) => `Output: ${path}`,
|
|
240
250
|
toolAttachments: "Tool attachments",
|
|
241
251
|
moreAttachments: (count) => `+${count}`,
|
|
242
252
|
showMoreAttachments: (count) => `Show ${count} more attachment${count === 1 ? "" : "s"}`,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { NotificationSettings, NotifyEvent, approvalNotificationDetail, notificationContent, questionNotificationDetail, shouldNotify } from "zidane/chat/pure";
|
|
2
|
+
export { type NotificationSettings, type NotifyEvent, approvalNotificationDetail, notificationContent, questionNotificationDetail, shouldNotify };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { approvalNotificationDetail, notificationContent, questionNotificationDetail, shouldNotify } from "zidane/chat/pure";
|