zidane-ui 9.2.2 → 9.3.1
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.js +3 -1
- package/dist/adapters/live.d.ts +6 -0
- package/dist/adapters/live.js +16 -8
- package/dist/adapters/server-composer-host.js +22 -9
- package/dist/adapters/server-host.js +143 -18
- package/dist/adapters/server-media.d.ts +9 -1
- package/dist/adapters/server-media.js +14 -1
- package/dist/adapters/server-settings-host.js +30 -3
- package/dist/adapters/server-settings-sections.js +23 -1
- package/dist/adapters/server-sidebar-host.d.ts +3 -1
- package/dist/adapters/server-sidebar-host.js +10 -1
- package/dist/app/ModalProvider.js +1 -1
- package/dist/approvals/ApprovalShell.js +1 -1
- package/dist/chat/DaemonOrb.d.ts +29 -1
- package/dist/chat/DaemonOrb.js +25 -12
- package/dist/chat/HostTranscript.d.ts +0 -12
- package/dist/chat/HostTranscript.js +6 -1
- package/dist/chat/SessionStreamsProvider.d.ts +8 -0
- package/dist/chat/SessionStreamsProvider.js +11 -2
- package/dist/chat/StatusDot.js +8 -2
- package/dist/chat/Transcript.d.ts +20 -11
- package/dist/chat/Transcript.js +335 -162
- package/dist/chat/composer/ComposerEditor.js +1 -1
- package/dist/chat/headless/host.d.ts +43 -7
- package/dist/chat/headless/index.d.ts +8 -6
- package/dist/chat/headless/index.js +11 -9
- package/dist/chat/headless/labels.d.ts +30 -0
- package/dist/chat/headless/labels.js +29 -0
- package/dist/chat/headless/markdown-chunks.d.ts +2 -1
- package/dist/chat/headless/markdown-chunks.js +12 -20
- package/dist/chat/headless/markdown-scan.d.ts +66 -0
- package/dist/chat/headless/markdown-scan.js +124 -0
- package/dist/chat/headless/markdown-stream.d.ts +64 -0
- package/dist/chat/headless/markdown-stream.js +143 -0
- package/dist/chat/headless/output-pager.d.ts +68 -0
- package/dist/chat/headless/output-pager.js +113 -0
- package/dist/chat/headless/session-list.d.ts +20 -0
- package/dist/chat/headless/sidebar/activity.d.ts +14 -0
- package/dist/chat/headless/sidebar/activity.js +32 -0
- package/dist/chat/headless/sidebar/directory.d.ts +17 -2
- package/dist/chat/headless/sidebar/directory.js +50 -54
- package/dist/chat/headless/sidebar/environment.d.ts +5 -2
- package/dist/chat/headless/sidebar/environment.js +11 -2
- package/dist/chat/headless/sidebar/host.d.ts +15 -0
- package/dist/chat/headless/sidebar/inbox.d.ts +12 -3
- package/dist/chat/headless/sidebar/inbox.js +18 -9
- package/dist/chat/headless/sidebar/index.d.ts +2 -2
- package/dist/chat/headless/sidebar/index.js +2 -2
- package/dist/chat/headless/sidebar/labels.d.ts +38 -2
- package/dist/chat/headless/sidebar/labels.js +16 -0
- package/dist/chat/headless/sidebar/prewarm.d.ts +68 -0
- package/dist/chat/headless/sidebar/prewarm.js +114 -0
- package/dist/chat/headless/streams/actions.d.ts +2 -0
- package/dist/chat/headless/streams/actions.js +1 -0
- package/dist/chat/headless/streams/event-bytes.d.ts +6 -0
- package/dist/chat/headless/streams/event-bytes.js +34 -0
- package/dist/chat/headless/streams/live-events.d.ts +25 -1
- package/dist/chat/headless/streams/live-events.js +53 -2
- package/dist/chat/headless/streams/selectors.d.ts +3 -0
- package/dist/chat/headless/streams/selectors.js +8 -1
- package/dist/chat/headless/streams/session-streams.d.ts +15 -3
- package/dist/chat/headless/streams/session-streams.js +31 -3
- package/dist/chat/headless/streams/store.d.ts +24 -1
- package/dist/chat/headless/streams/store.js +51 -26
- package/dist/chat/headless/streams/transcript-map.d.ts +57 -0
- package/dist/chat/headless/streams/transcript-map.js +88 -0
- package/dist/chat/headless/streams/transcript.d.ts +4 -2
- package/dist/chat/headless/streams/transcript.js +19 -7
- package/dist/chat/headless/transcript/batch.js +5 -1
- package/dist/chat/headless/transcript/blob-media.d.ts +15 -0
- package/dist/chat/headless/transcript/blob-media.js +23 -0
- package/dist/chat/headless/transcript/collapse.d.ts +10 -0
- package/dist/chat/headless/transcript/collapse.js +32 -6
- package/dist/chat/headless/transcript/derive.d.ts +98 -0
- package/dist/chat/headless/transcript/derive.js +89 -0
- package/dist/chat/headless/transcript/exchange-media.d.ts +3 -1
- package/dist/chat/headless/transcript/exchange-media.js +8 -5
- package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
- package/dist/chat/headless/transcript/fold-actions.js +16 -0
- package/dist/chat/headless/transcript/fold-attachments.d.ts +2 -0
- package/dist/chat/headless/transcript/fold-attachments.js +3 -2
- package/dist/chat/headless/transcript/fold.d.ts +4 -2
- package/dist/chat/headless/transcript/fold.js +37 -7
- package/dist/chat/headless/transcript/incremental.d.ts +53 -0
- package/dist/chat/headless/transcript/incremental.js +181 -0
- package/dist/chat/headless/transcript/index.d.ts +2 -1
- package/dist/chat/headless/transcript/index.js +2 -1
- package/dist/chat/headless/transcript/nesting.js +2 -1
- package/dist/chat/headless/transcript/rail.d.ts +142 -0
- package/dist/chat/headless/transcript/rail.js +290 -0
- package/dist/chat/headless/transcript/rows.d.ts +11 -1
- package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
- package/dist/chat/headless/transcript/run-failures.js +31 -2
- package/dist/chat/headless/transcript/seams.d.ts +78 -0
- package/dist/chat/headless/transcript/seams.js +116 -0
- package/dist/chat/headless/transcript/tool-media.d.ts +6 -7
- package/dist/chat/headless/transcript/tool-media.js +27 -9
- package/dist/chat/headless/transcript-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.d.ts +1 -0
- package/dist/chat/headless/turn-labels.js +2 -1
- package/dist/chat/index.d.ts +10 -8
- package/dist/chat/index.js +9 -7
- package/dist/chat/interactions/ElicitationCard.js +1 -1
- package/dist/chat/interactions/InteractionCard.js +1 -1
- package/dist/chat/interactions/PlanCard.js +3 -3
- package/dist/chat/interactions/QuestionField.js +4 -4
- package/dist/chat/interactions/QuestionForm.js +3 -3
- package/dist/chat/interactions/SecretInput.js +1 -1
- package/dist/chat/sidebar/ProjectIcon.d.ts +1 -1
- package/dist/chat/sidebar/ProjectIcon.js +1 -1
- package/dist/chat/sidebar/RowChips.d.ts +3 -2
- package/dist/chat/sidebar/RowChips.js +6 -3
- package/dist/chat/sidebar/SessionSidebar.js +13 -14
- package/dist/chat/sidebar/SidebarFooter.d.ts +8 -5
- package/dist/chat/sidebar/SidebarFooter.js +6 -6
- package/dist/chat/sidebar/SidebarFrame.d.ts +2 -0
- package/dist/chat/sidebar/SidebarFrame.js +5 -2
- package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
- package/dist/chat/sidebar/SidebarSessionRow.js +3 -1
- package/dist/chat/sidebar/SpacesSection.d.ts +20 -1
- package/dist/chat/sidebar/SpacesSection.js +34 -13
- package/dist/chat/sidebar/index.d.ts +2 -2
- package/dist/chat/sidebar/session-menu.d.ts +11 -2
- package/dist/chat/sidebar/session-menu.js +50 -5
- package/dist/chat/sidebar/sidebar-live.js +1 -1
- package/dist/chat/sidebar/useInboxRows.js +43 -2
- package/dist/chat/sidebar/useInboxTriage.js +19 -14
- package/dist/chat/testing/contract.d.ts +5 -3
- package/dist/chat/testing/contract.js +66 -1
- package/dist/chat/testing/fixture-sidebar-host.d.ts +7 -1
- package/dist/chat/testing/fixture-sidebar-host.js +12 -0
- package/dist/chat/testing/sidebar.contract.d.ts +6 -0
- package/dist/chat/testing/sidebar.contract.js +24 -0
- package/dist/chat/transcript/DiffLines.d.ts +6 -1
- package/dist/chat/transcript/DiffLines.js +35 -20
- package/dist/chat/transcript/EditDiffBlock.d.ts +5 -1
- package/dist/chat/transcript/EditDiffBlock.js +89 -30
- package/dist/chat/transcript/InteractionToolBody.js +1 -1
- package/dist/chat/transcript/LazyRow.d.ts +40 -40
- package/dist/chat/transcript/LazyRow.js +101 -149
- package/dist/chat/transcript/MermaidDiagram.js +2 -1
- package/dist/chat/transcript/SelectCursor.d.ts +11 -1
- package/dist/chat/transcript/SelectCursor.js +10 -5
- package/dist/chat/transcript/SubagentBlock.js +3 -2
- package/dist/chat/transcript/TranscriptRail.d.ts +109 -0
- package/dist/chat/transcript/TranscriptRail.js +579 -0
- package/dist/chat/transcript/TranscriptRow.d.ts +4 -7
- package/dist/chat/transcript/TranscriptRow.js +9 -5
- package/dist/chat/transcript/actions.d.ts +43 -3
- package/dist/chat/transcript/actions.js +27 -1
- package/dist/chat/transcript/clipped-output.d.ts +58 -0
- package/dist/chat/transcript/clipped-output.js +131 -0
- package/dist/chat/transcript/fold-attachments.js +10 -5
- package/dist/chat/transcript/fold-worker.js +3 -2
- package/dist/chat/transcript/fold.js +21 -2
- package/dist/chat/transcript/index.d.ts +11 -9
- package/dist/chat/transcript/index.js +10 -8
- package/dist/chat/transcript/markdown-cache.d.ts +7 -1
- package/dist/chat/transcript/markdown-cache.js +12 -1
- package/dist/chat/transcript/markdown.js +116 -54
- package/dist/chat/transcript/media-gallery.d.ts +3 -2
- package/dist/chat/transcript/media-gallery.js +10 -7
- package/dist/chat/transcript/notices.d.ts +23 -1
- package/dist/chat/transcript/notices.js +110 -28
- package/dist/chat/transcript/prompt.js +6 -4
- package/dist/chat/transcript/prose.js +3 -1
- package/dist/chat/transcript/receipt-parts.d.ts +22 -0
- package/dist/chat/transcript/receipt-parts.js +87 -0
- package/dist/chat/transcript/root-items.d.ts +96 -0
- package/dist/chat/transcript/root-items.js +180 -0
- package/dist/chat/transcript/row-mount.d.ts +165 -0
- package/dist/chat/transcript/row-mount.js +498 -0
- package/dist/chat/transcript/row-parking.d.ts +125 -0
- package/dist/chat/transcript/row-parking.js +135 -0
- package/dist/chat/transcript/row-ui-state.d.ts +37 -0
- package/dist/chat/transcript/row-ui-state.js +53 -0
- package/dist/chat/transcript/run-rows.js +6 -78
- package/dist/chat/transcript/script-input.d.ts +1 -1
- package/dist/chat/transcript/scroll-clamp.js +1 -1
- package/dist/chat/transcript/tasks.js +3 -2
- package/dist/chat/transcript/tool-media.d.ts +4 -2
- package/dist/chat/transcript/tool-media.js +15 -7
- package/dist/chat/transcript/tool-parts.d.ts +27 -4
- package/dist/chat/transcript/tool-parts.js +31 -5
- package/dist/chat/transcript/tool-payload.js +26 -11
- package/dist/chat/transcript/tool-row.d.ts +2 -1
- package/dist/chat/transcript/tool-row.js +38 -19
- package/dist/chat/transcript/use-transcript-rows.d.ts +24 -7
- package/dist/chat/transcript/use-transcript-rows.js +28 -46
- package/dist/chat/transcript/useSettledReveal.js +15 -3
- package/dist/chat/transcript/useStickToBottom.js +4 -4
- package/dist/chat/transcript/useTranscriptSearch.js +30 -14
- package/dist/chat/transcript/view-scope.d.ts +26 -6
- package/dist/chat/transcript/view-scope.js +106 -20
- package/dist/components/ChoiceCards.js +1 -1
- package/dist/components/ConfirmDialog.js +1 -1
- package/dist/components/CopyValue.d.ts +33 -0
- package/dist/components/CopyValue.js +54 -0
- package/dist/components/Form.js +1 -1
- package/dist/components/HowItWorks.js +1 -1
- package/dist/components/Menu.js +1 -1
- package/dist/components/StepFrame.js +2 -2
- package/dist/components/SwatchPicker.js +1 -1
- package/dist/components/ToggleCard.js +1 -1
- package/dist/components/floating/HoverCard.js +2 -3
- package/dist/components/floating/hover-delay.d.ts +4 -0
- package/dist/components/floating/hover-delay.js +6 -0
- package/dist/core.css +14 -12
- package/dist/dist/{index-Betz0OWq.d.ts → index-C6-t1SS9.d.ts} +21 -2
- package/dist/dist/index-De9AbmxS.d.ts +1 -0
- package/dist/dist/index.d.ts +5 -5
- package/dist/dist/sandbox-CSUihARm.d.ts +2 -0
- package/dist/dist/{timeout-CyU7HLyz.d.ts → timeout-CmTx6V9y.d.ts} +1 -0
- package/dist/extensions/ExtensionDialogHost.js +1 -1
- package/dist/files/TreeColumn.js +3 -1
- package/dist/files/headless/host.d.ts +2 -2
- package/dist/git/ImportRepoDialog.js +1 -1
- package/dist/git/MoveSessionDialog.js +2 -2
- package/dist/git/SandboxManager.d.ts +42 -0
- package/dist/git/SandboxManager.js +297 -0
- package/dist/git/SyncChip.js +1 -1
- package/dist/git/headless/index.d.ts +2 -1
- package/dist/git/headless/index.js +2 -1
- package/dist/git/headless/labels.d.ts +29 -0
- package/dist/git/headless/labels.js +34 -1
- package/dist/git/headless/sandboxes.d.ts +43 -0
- package/dist/git/headless/sandboxes.js +52 -0
- package/dist/git/index.d.ts +2 -1
- package/dist/git/index.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/keybindings/headless/catalog.d.ts +1 -1
- package/dist/keybindings/headless/catalog.js +12 -0
- package/dist/machines/HostsSection.d.ts +1 -1
- package/dist/machines/headless/labels.js +2 -2
- package/dist/motion/flip-list.js +3 -10
- package/dist/motion/presence.d.ts +10 -0
- package/dist/motion/presence.js +20 -1
- package/dist/motion/swap.d.ts +8 -2
- package/dist/motion/swap.js +5 -2
- package/dist/onboarding/conversation.js +27 -15
- package/dist/onboarding/demos/how-it-works.js +1 -1
- package/dist/onboarding/skills/parts.js +4 -4
- package/dist/onboarding/sources/SourceBrowser.js +1 -1
- package/dist/onboarding/steps/ReadyStep.js +1 -1
- package/dist/onboarding/steps/connect/KeyForm.js +1 -1
- package/dist/palette/headless/app-sources.js +20 -0
- package/dist/palette/headless/labels.js +2 -0
- package/dist/session/PlanTracker.js +3 -3
- package/dist/session/SecretsPanel.js +1 -1
- package/dist/session/SessionHeader.d.ts +18 -6
- package/dist/session/SessionHeader.js +68 -12
- package/dist/session/SessionPlaceMenu.d.ts +35 -0
- package/dist/session/SessionPlaceMenu.js +299 -0
- package/dist/session/SessionShell.js +1 -1
- package/dist/session/TurnDetailsDialog.js +1 -1
- package/dist/session/headless/index.d.ts +2 -1
- package/dist/session/headless/index.js +2 -1
- package/dist/session/headless/labels.d.ts +73 -0
- package/dist/session/headless/labels.js +73 -0
- package/dist/session/headless/place.d.ts +49 -0
- package/dist/session/headless/place.js +57 -0
- package/dist/session/index.d.ts +2 -1
- package/dist/session/index.js +2 -1
- package/dist/settings/ConversationPresetsCard.js +1 -1
- package/dist/settings/SettingCard.js +2 -2
- package/dist/settings/SettingsRowsPage.js +1 -1
- package/dist/settings/headless/fixture-performance.js +4 -2
- package/dist/settings/headless/fixture-sections.js +7 -0
- package/dist/settings/headless/labels.d.ts +1 -1
- package/dist/settings/headless/labels.js +1 -1
- package/dist/settings/headless/layout.d.ts +4 -4
- package/dist/settings/headless/layout.js +1 -1
- package/dist/settings/headless/performance.d.ts +4 -0
- package/dist/settings/headless/search.d.ts +2 -2
- package/dist/settings/headless/sections-host.d.ts +20 -2
- package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
- package/dist/settings/sections/enabled-list/EnabledListSection.js +2 -2
- package/dist/settings/sections/environments/EnvironmentsSection.d.ts +9 -3
- package/dist/settings/sections/environments/EnvironmentsSection.js +292 -52
- package/dist/settings/sections/environments/labels.d.ts +15 -0
- package/dist/settings/sections/environments/labels.js +18 -3
- package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
- package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
- package/dist/settings/sections/extensions/ExtensionsSection.d.ts +3 -2
- package/dist/settings/sections/extensions/ExtensionsSection.js +9 -3
- package/dist/settings/sections/host-catalog/HostCatalogSection.js +15 -5
- package/dist/settings/sections/keybindings/labels.d.ts +2 -0
- package/dist/settings/sections/keybindings/labels.js +2 -0
- package/dist/settings/sections/keybindings/rows.js +8 -0
- package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +7 -3
- package/dist/settings/sections/models/SpacesDefaultsSection.js +11 -5
- package/dist/settings/sections/performance/PerformanceSection.js +8 -1
- package/dist/settings/sections/performance/labels.d.ts +2 -0
- package/dist/settings/sections/performance/labels.js +2 -0
- package/dist/settings/sections/skills/SkillGroups.js +1 -1
- package/dist/settings/server-app.d.ts +4 -2
- package/dist/settings/server-app.js +7 -3
- package/dist/settings/testing/sections.contract.d.ts +7 -1
- package/dist/settings/testing/sections.contract.js +37 -0
- package/dist/styles.css +243 -19
- package/dist/terminal/TerminalDrawer.js +3 -1
- package/dist/views/headless/answers.d.ts +8 -2
- package/dist/views/headless/answers.js +58 -1
- package/dist/views/headless/placement.d.ts +78 -0
- package/dist/views/headless/placement.js +154 -44
- package/dist/workspace/SidePanel.js +3 -1
- package/package.json +2 -2
- package/src/styles/base.css +13 -0
- package/src/styles/chat.css +30 -0
- package/src/styles/components.css +0 -10
- package/src/styles/files.css +5 -0
- package/src/styles/sidebar.css +29 -7
- package/src/styles/terminal.css +6 -0
- package/src/styles/tokens.css +5 -0
- package/src/styles/transcript.css +138 -0
- package/src/styles/workspace.css +6 -0
- package/dist/dist/index-QcFzZlao.d.ts +0 -1
- package/dist/dist/sandbox-D0zsW8I1.d.ts +0 -2
- /package/dist/dist/{types-_Dtoq_No.d.ts → execution-failure-SREfl-EZ.d.ts} +0 -0
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ import { CodeFrame, CodeWrapProvider } from "./components/CodeFrame.js";
|
|
|
18
18
|
import { Compare, compareBars } from "./components/Compare.js";
|
|
19
19
|
import { CONFIRM_TITLE_ID, ConfirmDialog } from "./components/ConfirmDialog.js";
|
|
20
20
|
import { CopyButton } from "./components/CopyButton.js";
|
|
21
|
+
import { CopyValue } from "./components/CopyValue.js";
|
|
21
22
|
import { EditableTitle } from "./components/EditableTitle.js";
|
|
22
23
|
import { ErrorBoundary, ErrorDetails, ErrorFallback } from "./components/ErrorBoundary.js";
|
|
23
24
|
import { FloatingSurface } from "./components/floating/FloatingSurface.js";
|
|
@@ -103,4 +104,4 @@ import { watchRuntimeIcons } from "./theme/runtime-icons.js";
|
|
|
103
104
|
import { themeCssVars, themeStylesheet } from "./theme/stylesheet.js";
|
|
104
105
|
import { BUILTIN_THEMES, DEFAULT_THEME, resolveTheme } from "./theme/themes.js";
|
|
105
106
|
import { withoutTransitions } from "./theme/without-transitions.js";
|
|
106
|
-
export { ACCENT_PRESETS, Accordion, AddressBar, BRAND_MARKS, BREAKDOWN_MIN_SHARE, BREAKDOWN_SHOW_ALL, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BrandMark, Breadcrumb, Breakdown, BrowserSignIn, CONFIRM_TITLE_ID, CONTRAST, Callout, Checkbox, Checklist, ChoiceCards, CodeFrame, CodeHighlightProvider, CodePanel, CodeWrapProvider, Compare, ConfirmDialog, CopyButton, CountBadge, Crossfade, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, Delta, DiffCounts, EditableTitle, EditorEnvironmentProvider, EmptyState, ErrorBoundary, ErrorDetails, ErrorFallback, ErrorNote, FADE_KEYS, FIELD_LABEL_CLASS, FLIP_CLIP_ATTR, FLIP_FLIGHT_ATTR, FLIP_KEY_ATTR, FLIP_MOVING_ATTR, FLIP_REGION_ATTR, FLIP_SCROLLER_ATTR, FLIP_STICKY_ATTR, FORM_CARD_CLASS, FlipSnapshot, FloatingSurface, FormCard, FormSection, Grow, GrowPresence, HOVER_MOTION, HeldWidth, Highlighted, HighlightedCode, HostRow, HoverCard, HowItWorks, INPUT_CLASS, INSTANT, IconButton, IconToggle, KeyCombo, KeyValue, Keycap, LabelsProvider, LoadError, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MediaNav, Menu, MenuNote, MenuRow, MenuSection, MenuSeparator, MenuSwitch, Meta, MetaChip, MotionProvider, NavButton, NavRow, Notice, OpLine, Overlay, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteIcon, PaletteList, PaletteOption, PalettePanel, PaletteRow, PanelEmpty, PanelLoading, PathDisplayProvider, PathDisplayScope, Popover, Presence, PreviewWindow, Progress, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, ReorderTabs, Restricted, RollingText, RowActionsMenu, RowBadge, RowMenuButton, RowText, SHIMMER_MS, STAT_ROW_COLUMNS, SectionLabel, SegmentSpinner, Segmented, SegmentedRow, Skeleton, SliderRow, SmoothHeight, SmoothWidth, Stat, StatRow, StepActions, StepFrame, Stepper, Steps, SwapIcon, SwatchPicker, Switch, SwitchGlyph, SwitchRow, TEXTAREA_CLASS, TabPill, Table, Tabs, ThemeThumb, TitleText, ToggleCard, ToggleSwitch, Tooltip, Tray, ZidaneMark, ZoomableImage, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, breakdownColor, breakdownSlices, breakdownTop, buttonClass, capChroma, checklistIsGrid, clampWidth, compactPath, compareBars, compareCells, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createFlipList, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, deltaTone, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isCompact, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, numberFormats, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, progressShare, progressTone, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, setDecimals, shareDecimals, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, trueMinus, typesStandIn, unitDecimals, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useFlipList, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useTooltip, useWithFade, waapiTiming, watchRuntimeIcons, withAlpha, withFade, withLightness, withUnit, withoutTransitions, writePersisted };
|
|
107
|
+
export { ACCENT_PRESETS, Accordion, AddressBar, BRAND_MARKS, BREAKDOWN_MIN_SHARE, BREAKDOWN_SHOW_ALL, BTN_DANGER, BTN_DANGER_CONFIRM, BTN_LG_DANGER, BTN_LG_PRIMARY, BTN_LG_SECONDARY, BTN_LG_SOLID, BTN_PRIMARY, BTN_SECONDARY, BUILTIN_THEMES, BrandMark, Breadcrumb, Breakdown, BrowserSignIn, CONFIRM_TITLE_ID, CONTRAST, Callout, Checkbox, Checklist, ChoiceCards, CodeFrame, CodeHighlightProvider, CodePanel, CodeWrapProvider, Compare, ConfirmDialog, CopyButton, CopyValue, CountBadge, Crossfade, DARK_LUMINANCE_THRESHOLD, DEFAULT_EDITOR_SETTINGS, DEFAULT_LABELS, DEFAULT_PANEL_MS, DEFAULT_THEME, Delta, DiffCounts, EditableTitle, EditorEnvironmentProvider, EmptyState, ErrorBoundary, ErrorDetails, ErrorFallback, ErrorNote, FADE_KEYS, FIELD_LABEL_CLASS, FLIP_CLIP_ATTR, FLIP_FLIGHT_ATTR, FLIP_KEY_ATTR, FLIP_MOVING_ATTR, FLIP_REGION_ATTR, FLIP_SCROLLER_ATTR, FLIP_STICKY_ATTR, FORM_CARD_CLASS, FlipSnapshot, FloatingSurface, FormCard, FormSection, Grow, GrowPresence, HOVER_MOTION, HeldWidth, Highlighted, HighlightedCode, HostRow, HoverCard, HowItWorks, INPUT_CLASS, INSTANT, IconButton, IconToggle, KeyCombo, KeyValue, Keycap, LabelsProvider, LoadError, MAX_REAL_SCALE, MENU_FADE_RATIO, MOTIONS, MOTION_NAMES, MatchedTitle, MediaNav, Menu, MenuNote, MenuRow, MenuSection, MenuSeparator, MenuSwitch, Meta, MetaChip, MotionProvider, NavButton, NavRow, Notice, OpLine, Overlay, PANEL_ROW, PANEL_ROW_HOVER, PUNCTUATION_CODES, PaletteIcon, PaletteList, PaletteOption, PalettePanel, PaletteRow, PanelEmpty, PanelLoading, PathDisplayProvider, PathDisplayScope, Popover, Presence, PreviewWindow, Progress, REDUCED_FADE, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, Raised, ReorderTabs, Restricted, RollingText, RowActionsMenu, RowBadge, RowMenuButton, RowText, SHIMMER_MS, STAT_ROW_COLUMNS, SectionLabel, SegmentSpinner, Segmented, SegmentedRow, Skeleton, SliderRow, SmoothHeight, SmoothWidth, Stat, StatRow, StepActions, StepFrame, Stepper, Steps, SwapIcon, SwatchPicker, Switch, SwitchGlyph, SwitchRow, TEXTAREA_CLASS, TabPill, Table, Tabs, ThemeThumb, TitleText, ToggleCard, ToggleSwitch, Tooltip, Tray, ZidaneMark, ZoomableImage, _resetKeyboardLayout, anchorNudge, applyMotionVars, basename, beginLayoutAnimation, breakdownColor, breakdownSlices, breakdownTop, buttonClass, capChroma, checklistIsGrid, clampWidth, compactPath, compareBars, compareCells, configureErrorReports, contrastRatio, contrastToCssVars, createCodeHighlighter, createFlipList, createKeyedStore, cssMotionVars, currentMotionPrefs, currentMotionTransition, currentWithFade, defaultPaletteKeys, defaultShikiTheme, deltaTone, depthToCssVars, derivePalette, ensureContrast, errorMessage, errorStacksShown, extendLabels, fadeTransition, focusMenuRow, formatColor, formatPathForCwd, handleMenuKeyDown, hasBrandMark, iconButtonClass, inferAppearance, installRendererErrorHandlers, isCompact, isDark, isLayoutAnimating, layoutKeyLabel, luminance, menuTransition, mix, motionTransition, motionVars, moveId, numberFormats, oklch, oklchToRgb, oneOf, paletteToCssVars, paletteVerb, panelMotionVars, parseBoolean, parseColor, placeSurface, presetFor, progressShare, progressTone, pulseLayout, readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, readPersisted, readRollMs, readableOn, reportRendererError, resetReportedErrors, resolveTheme, returnFocus, rgbToOklch, rollCells, scrollRootOf, seedFromTheme, setDecimals, shareDecimals, shikiThemeFor, splitPath, subscribeLayoutAnimating, syncShimmer, themeCssVars, themeStylesheet, tildePath, tildeText, tintedNeutral, toOklch, transitionState, trueMinus, typesStandIn, unitDecimals, useAnchoredPosition, useCadencedValue, useCodeHighlight, useDismiss, useDisplayPath, useDocumentAppearance, useEditorEnvironment, useFlipList, useKeyboardLayout, useKeyedValue, useLabels, useLayer, useLightbox, useMenuTransition, useMinuteTick, useMotionLevel, useMotionPrefs, useMotionTransition, useNearViewport, usePersistedState, usePopover, usePresence, useReducedMotion, useResizeDrag, useRowHint, useScrollLock, useSprings, useStaysMounted, useTabDrag, useTabExit, useTooltip, useWithFade, waapiTiming, watchRuntimeIcons, withAlpha, withFade, withLightness, withUnit, withoutTransitions, writePersisted };
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ParsedBinding, bindingAlternatives, parseBindingSpec, parseBindingSpecs } from "zidane/chat/pure";
|
|
13
13
|
/** Every action a key binding can fire. */
|
|
14
|
-
export type KeyAction = 'openSettings' | 'openSessionDetails' | 'openModelPicker' | 'openEffortPicker' | 'openTodos' | 'openArtifacts' | 'openMainSession' | 'openUsagePanel' | 'newSession' | 'openKeybindings' | 'openPalette' | 'cancelToolCall' | 'cycleAgent' | 'enterSelectTurnMode' | 'toggleSidebar' | 'navigateBack' | 'navigateForward' | 'sessionGenerateTitle' | 'sessionCompact' | 'sessionExportMarkdown' | 'sessionExportJson' | 'sessionDelete' | 'sessionCopyId' | 'sessionFavorite' | 'zoomIn' | 'zoomOut' | 'zoomReset' | 'panelNext' | 'panelPrev' | 'tabNext' | 'tabPrev' | 'closeTab' | 'toggleTerminal' | 'newTerminal' | 'annotatePage' | 'splitTabRight' | 'splitTabDown';
|
|
14
|
+
export type KeyAction = 'openSettings' | 'openSessionDetails' | 'openModelPicker' | 'openEffortPicker' | 'openTodos' | 'openArtifacts' | 'openMainSession' | 'openUsagePanel' | 'newSession' | 'openKeybindings' | 'openPalette' | 'cancelToolCall' | 'cycleAgent' | 'enterSelectTurnMode' | 'previousPrompt' | 'nextPrompt' | 'toggleSidebar' | 'navigateBack' | 'navigateForward' | 'sessionGenerateTitle' | 'sessionCompact' | 'sessionExportMarkdown' | 'sessionExportJson' | 'sessionDelete' | 'sessionCopyId' | 'sessionFavorite' | 'zoomIn' | 'zoomOut' | 'zoomReset' | 'panelNext' | 'panelPrev' | 'tabNext' | 'tabPrev' | 'closeTab' | 'toggleTerminal' | 'newTerminal' | 'annotatePage' | 'splitTabRight' | 'splitTabDown';
|
|
15
15
|
/** One action of the catalog. */
|
|
16
16
|
export interface KeyBindingDef {
|
|
17
17
|
/** The action. */
|
|
@@ -97,6 +97,18 @@ const KEYBINDING_DEFS = [
|
|
|
97
97
|
description: "enter select-turn mode to navigate previous messages",
|
|
98
98
|
urgent: true
|
|
99
99
|
},
|
|
100
|
+
{
|
|
101
|
+
action: "previousPrompt",
|
|
102
|
+
default: "cmd+alt+[",
|
|
103
|
+
label: "previous message",
|
|
104
|
+
description: "scroll the conversation to your previous message"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
action: "nextPrompt",
|
|
108
|
+
default: "cmd+alt+]",
|
|
109
|
+
label: "next message",
|
|
110
|
+
description: "scroll the conversation to your next message, or past the last one to the end"
|
|
111
|
+
},
|
|
100
112
|
{
|
|
101
113
|
action: "toggleSidebar",
|
|
102
114
|
default: "cmd+b",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Settings ›
|
|
2
|
+
* Settings › Advanced › Hosts: This computer and the saved zidane-servers,
|
|
3
3
|
* each with its status, the server's own name and version, what it can do
|
|
4
4
|
* and its last sync. Add a server with its URL and a device token
|
|
5
5
|
* (`AddServerForm`: typed masked, tested before anything is saved). A
|
|
@@ -37,8 +37,8 @@ const DEFAULT_MACHINES_LABELS = {
|
|
|
37
37
|
machinesAgo: (short) => `${short} ago`,
|
|
38
38
|
machinesThisServer: "This server",
|
|
39
39
|
machinesOfflineRemoved: (name) => `${name} was removed from your hosts.`,
|
|
40
|
-
machinesOfflineAuthRefused: (name) => `${name} refused this computer's token. Remove it in Settings ›
|
|
41
|
-
machinesOfflineIdentity: (name) => `A different server answers at ${name}'s address. If it was reinstalled, remove it and add it again in Settings ›
|
|
40
|
+
machinesOfflineAuthRefused: (name) => `${name} refused this computer's token. Remove it in Settings › Advanced › Hosts, then add it again with a new token.`,
|
|
41
|
+
machinesOfflineIdentity: (name) => `A different server answers at ${name}'s address. If it was reinstalled, remove it and add it again in Settings › Advanced › Hosts.`,
|
|
42
42
|
machinesOfflineVersion: (name, error) => `${name} speaks another protocol version${error ? ` (${error})` : ""}. This session is read-only until one side is upgraded.`,
|
|
43
43
|
machinesOfflineConnecting: (name) => `${name} is still connecting. This session is read-only until it is connected.`,
|
|
44
44
|
machinesOfflineOther: (name, status) => `${name} is ${status}. This session is read-only until it reconnects.`,
|
package/dist/motion/flip-list.js
CHANGED
|
@@ -132,23 +132,16 @@ function createFlipList(container, options = {}) {
|
|
|
132
132
|
};
|
|
133
133
|
/** A region's top on screen, without its glide in flight. */
|
|
134
134
|
const regionTopOf = (region) => region.getBoundingClientRect().top - (running.has(region) ? translateYOf(region) : 0);
|
|
135
|
-
const
|
|
136
|
-
let revealFrame = 0;
|
|
135
|
+
const measured = /* @__PURE__ */ new WeakSet();
|
|
137
136
|
const revealNew = (nodes) => {
|
|
138
137
|
const fresh = [];
|
|
139
138
|
for (const node of nodes) {
|
|
140
|
-
if (
|
|
141
|
-
|
|
139
|
+
if (measured.has(node)) continue;
|
|
140
|
+
measured.add(node);
|
|
142
141
|
if (!node.style.contentVisibility) fresh.push(node);
|
|
143
142
|
}
|
|
144
143
|
if (!last || fresh.length === 0 || fresh.length > maxChanges) return;
|
|
145
144
|
for (const node of fresh) node.style.contentVisibility = "visible";
|
|
146
|
-
cancelAnimationFrame(revealFrame);
|
|
147
|
-
revealFrame = requestAnimationFrame(() => {
|
|
148
|
-
revealFrame = requestAnimationFrame(() => {
|
|
149
|
-
for (const node of fresh) if (node.style.contentVisibility === "visible") node.style.contentVisibility = "";
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
145
|
};
|
|
153
146
|
/** Every tracked row's box on screen, from the list's top; `visual` keeps transforms in (a drag's). */
|
|
154
147
|
const measure = (visual = false) => {
|
|
@@ -61,6 +61,16 @@ export declare const transitionState: (state: PresenceState) => "open" | "closed
|
|
|
61
61
|
* (`exitMs`, in ms or a function read when the close starts), and whose node it is (`key`).
|
|
62
62
|
*/
|
|
63
63
|
export declare function usePresence(open: boolean, { enter, exitMs, key }?: PresenceOptions): Presence;
|
|
64
|
+
/**
|
|
65
|
+
* Whether a panel that slides on the panel clock is open and done opening. A panel's frame animates its size while
|
|
66
|
+
* the sheet inside keeps the full size, so the content never reflows while it slides open or shut. Once it is
|
|
67
|
+
* settled the sheet follows the frame instead: a size change while open (the layout budget, the other sidebar
|
|
68
|
+
* toggling) animates the frame, and the content flows with it, as on a window resize, instead of jumping to the
|
|
69
|
+
* new size on the first frame. A panel open on mount is settled at once; closing unsettles it on the same render.
|
|
70
|
+
*
|
|
71
|
+
* @param state - The panel's phase, from {@link usePresence}.
|
|
72
|
+
*/
|
|
73
|
+
export declare function usePanelSettled(state: PresenceState): boolean;
|
|
64
74
|
/**
|
|
65
75
|
* Locks page scroll while `active` (menus, dialogs). Counted: with layers
|
|
66
76
|
* stacked, the page stays locked until the last one lets go, whatever order
|
package/dist/motion/presence.js
CHANGED
|
@@ -110,6 +110,25 @@ function usePresence(open, { enter = false, exitMs = 0, key = null } = {}) {
|
|
|
110
110
|
state: shown
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Whether a panel that slides on the panel clock is open and done opening. A panel's frame animates its size while
|
|
115
|
+
* the sheet inside keeps the full size, so the content never reflows while it slides open or shut. Once it is
|
|
116
|
+
* settled the sheet follows the frame instead: a size change while open (the layout budget, the other sidebar
|
|
117
|
+
* toggling) animates the frame, and the content flows with it, as on a window resize, instead of jumping to the
|
|
118
|
+
* new size on the first frame. A panel open on mount is settled at once; closing unsettles it on the same render.
|
|
119
|
+
*
|
|
120
|
+
* @param state - The panel's phase, from {@link usePresence}.
|
|
121
|
+
*/
|
|
122
|
+
function usePanelSettled(state) {
|
|
123
|
+
const [settled, setSettled] = useState(state === "open");
|
|
124
|
+
if (state !== "open" && settled) setSettled(false);
|
|
125
|
+
useEffect(() => {
|
|
126
|
+
if (state !== "open" || settled) return void 0;
|
|
127
|
+
const timer = window.setTimeout(setSettled, readPanelMs(), true);
|
|
128
|
+
return () => window.clearTimeout(timer);
|
|
129
|
+
}, [state, settled]);
|
|
130
|
+
return settled && state === "open";
|
|
131
|
+
}
|
|
113
132
|
/** How many active locks hold the page, and the root's own styles from before the first. */
|
|
114
133
|
let scrollLocks = 0;
|
|
115
134
|
let unlocked = null;
|
|
@@ -146,4 +165,4 @@ function useScrollLock(active) {
|
|
|
146
165
|
return unlockScroll;
|
|
147
166
|
}, [active]);
|
|
148
167
|
}
|
|
149
|
-
export { readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, transitionState, usePresence, useScrollLock };
|
|
168
|
+
export { readDurationVar, readExitMs, readMenuExitMs, readMotionMs, readPanelMs, transitionState, usePanelSettled, usePresence, useScrollLock };
|
package/dist/motion/swap.d.ts
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* content is swapped by key (spinner → check → x).
|
|
4
4
|
*
|
|
5
5
|
* Presence keeps a leaving node mounted through a short exit and stamps
|
|
6
|
-
* `data-state="enter" | "exit"` for CSS (`.zg-presence`)
|
|
6
|
+
* `data-state="enter" | "exit"` for CSS (`.zg-presence`); content
|
|
7
|
+
* shown since it mounted is `"shown"`: drawn as it is, no entrance
|
|
7
8
|
* Crossfade stacks the outgoing and incoming nodes in one grid cell so one
|
|
8
9
|
* fades / scales out while the other fades / scales in
|
|
9
10
|
* useCadencedValue holds a fast-changing value to a readable cadence
|
|
@@ -30,6 +31,11 @@ export interface PresenceProps {
|
|
|
30
31
|
display?: 'inline' | 'block';
|
|
31
32
|
/** `scale` (default) for glyphs; `text` blurs a line of words in and out, anchored left. */
|
|
32
33
|
variant?: 'scale' | 'text';
|
|
34
|
+
/**
|
|
35
|
+
* Plays the entrance when it mounts shown. Default false: content shown from the start was already there (a
|
|
36
|
+
* row mounting again in another section, a panel opening), and only a later `show` plays the entrance.
|
|
37
|
+
*/
|
|
38
|
+
appear?: boolean;
|
|
33
39
|
}
|
|
34
40
|
/**
|
|
35
41
|
* Keeps `children` mounted for the exit (`readExitMs()`) after `show` flips
|
|
@@ -37,7 +43,7 @@ export interface PresenceProps {
|
|
|
37
43
|
*
|
|
38
44
|
* @param props - Component props.
|
|
39
45
|
*/
|
|
40
|
-
export declare function Presence({ show, children, className, style, display, variant }: PresenceProps): import("react").JSX.Element | null;
|
|
46
|
+
export declare function Presence({ show, children, className, style, display, variant, appear }: PresenceProps): import("react").JSX.Element | null;
|
|
41
47
|
/** Props for {@link Crossfade}. */
|
|
42
48
|
export interface CrossfadeProps {
|
|
43
49
|
/** Identity of the current content; a change triggers the swap. */
|
package/dist/motion/swap.js
CHANGED
|
@@ -10,13 +10,16 @@ const SETTLE_MS = 200;
|
|
|
10
10
|
*
|
|
11
11
|
* @param props - Component props.
|
|
12
12
|
*/
|
|
13
|
-
function Presence({ show, children, className = "", style, display = "inline", variant = "scale" }) {
|
|
13
|
+
function Presence({ show, children, className = "", style, display = "inline", variant = "scale", appear = false }) {
|
|
14
14
|
const { mounted } = usePresence(show, { exitMs: readExitMs });
|
|
15
|
+
const [shownAtMount] = useState(show && !appear);
|
|
16
|
+
const [changed, setChanged] = useState(false);
|
|
17
|
+
if (!changed && show !== shownAtMount) setChanged(true);
|
|
15
18
|
if (!mounted) return null;
|
|
16
19
|
return /* @__PURE__ */ jsx("span", {
|
|
17
20
|
className: `zg-presence ${display === "block" ? "block" : "inline-flex items-center"} ${className}`,
|
|
18
21
|
style,
|
|
19
|
-
"data-state": show ? "enter" : "exit",
|
|
22
|
+
"data-state": show ? changed || !shownAtMount ? "enter" : "shown" : "exit",
|
|
20
23
|
"data-variant": variant,
|
|
21
24
|
children
|
|
22
25
|
});
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Transcript } from "../chat/Transcript.js";
|
|
2
|
+
import { TranscriptRail, TranscriptRailProvider } from "../chat/transcript/TranscriptRail.js";
|
|
2
3
|
import { buttonClass } from "../components/button.js";
|
|
3
4
|
import { PreviewWindow } from "../components/PreviewWindow.js";
|
|
4
5
|
import { Segmented } from "../components/Segmented.js";
|
|
5
6
|
import { useOnboardingLabels } from "./OnboardingProvider.js";
|
|
6
7
|
import { withPreviewAttachments } from "./preview-attachments.js";
|
|
7
|
-
import { useId, useMemo, useState } from "react";
|
|
8
|
+
import { useId, useMemo, useRef, useState } from "react";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { ONBOARDING_PREVIEW_EVENTS, TRANSCRIPT_PRESETS, transcriptPreset, transcriptPresetOf } from "zidane/chat/pure";
|
|
10
|
+
import { ONBOARDING_PREVIEW_EVENTS, ONBOARDING_PREVIEW_FOLLOW_UP, TRANSCRIPT_PRESETS, transcriptPreset, transcriptPresetOf } from "zidane/chat/pure";
|
|
10
11
|
// src/onboarding/conversation.tsx
|
|
11
12
|
/** The diagram the sample's answer ends on, so the preview shows the Diagrams setting at work. */
|
|
12
13
|
const ANSWER_DIAGRAM = [
|
|
@@ -25,8 +26,11 @@ function withAnswerDiagram(events) {
|
|
|
25
26
|
text: `${event.text}\n\n${ANSWER_DIAGRAM}`
|
|
26
27
|
} : event);
|
|
27
28
|
}
|
|
28
|
-
/**
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* The sample conversation, with the chart and the notes its prompt attaches, a diagram in its answer, and a short
|
|
31
|
+
* follow-up: two messages for the message rail to step between.
|
|
32
|
+
*/
|
|
33
|
+
const SAMPLE = [...withAnswerDiagram(withPreviewAttachments(ONBOARDING_PREVIEW_EVENTS)), ...ONBOARDING_PREVIEW_FOLLOW_UP];
|
|
30
34
|
/** The settings that change how the transcript draws the sample. */
|
|
31
35
|
const OPTION_KEYS = [
|
|
32
36
|
"showRowIcons",
|
|
@@ -63,21 +67,29 @@ function ConversationPreview({ settings, title, maxHeight = 440, className = "",
|
|
|
63
67
|
const labels = useOnboardingLabels();
|
|
64
68
|
const options = useMemo(() => transcriptPreviewOptions(settings), [settings]);
|
|
65
69
|
const sessionId = useId();
|
|
70
|
+
const scroller = useRef(null);
|
|
66
71
|
return /* @__PURE__ */ jsx(PreviewWindow, {
|
|
67
72
|
title: title ?? labels.preview,
|
|
68
73
|
label: title ?? labels.preview,
|
|
69
74
|
className,
|
|
70
75
|
style,
|
|
71
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
72
|
-
className: "
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
children: /* @__PURE__ */ jsx(TranscriptRailProvider, { children: /* @__PURE__ */ jsxs("div", {
|
|
77
|
+
className: "relative",
|
|
78
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
79
|
+
ref: scroller,
|
|
80
|
+
className: "overflow-y-auto p-3",
|
|
81
|
+
style: { maxHeight },
|
|
82
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
83
|
+
className: "zg-transcript-column",
|
|
84
|
+
children: /* @__PURE__ */ jsx(Transcript, {
|
|
85
|
+
events: SAMPLE,
|
|
86
|
+
streaming: false,
|
|
87
|
+
sessionId,
|
|
88
|
+
options
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
}), settings.transcriptRail === true && /* @__PURE__ */ jsx(TranscriptRail, { scroller })]
|
|
92
|
+
}) })
|
|
81
93
|
});
|
|
82
94
|
}
|
|
83
95
|
/**
|
|
@@ -133,7 +145,7 @@ function ConversationPresetPreview({ settings, onApply, maxHeight = 360, classNa
|
|
|
133
145
|
})]
|
|
134
146
|
}),
|
|
135
147
|
tab !== "yours" && /* @__PURE__ */ jsx("p", {
|
|
136
|
-
className: "m-0 px-1 text-zg-label text-[var(--zg-text-muted)]
|
|
148
|
+
className: "m-0 px-1 text-zg-label text-[var(--zg-text-muted)]",
|
|
137
149
|
children: transcriptPreset(tab).description
|
|
138
150
|
}),
|
|
139
151
|
/* @__PURE__ */ jsx(ConversationPreview, {
|
|
@@ -543,7 +543,7 @@ function EnvironmentsScene({ step, className, style }) {
|
|
|
543
543
|
/* @__PURE__ */ jsx(Node, {
|
|
544
544
|
label: labels.sceneSession,
|
|
545
545
|
children: /* @__PURE__ */ jsx(Glyph, {
|
|
546
|
-
icon: "i-ph-
|
|
546
|
+
icon: "i-ph-cube-fill",
|
|
547
547
|
className: "text-[var(--zg-accent)]"
|
|
548
548
|
})
|
|
549
549
|
}),
|
|
@@ -116,7 +116,7 @@ function SourceRows({ sources, images, picked, onOpen, className, style }) {
|
|
|
116
116
|
]
|
|
117
117
|
}), /* @__PURE__ */ jsx("span", {
|
|
118
118
|
id: `${id}-${source.id}`,
|
|
119
|
-
className: "text-zg-label text-[var(--zg-text-muted)]
|
|
119
|
+
className: "text-zg-label text-[var(--zg-text-muted)] line-clamp-2",
|
|
120
120
|
children: source.description
|
|
121
121
|
})]
|
|
122
122
|
}),
|
|
@@ -248,11 +248,11 @@ function SourceHeader({ source, count, images, picked, allPicked, selectable, on
|
|
|
248
248
|
]
|
|
249
249
|
}),
|
|
250
250
|
source.description && /* @__PURE__ */ jsx("p", {
|
|
251
|
-
className: "m-0 text-zg-label text-[var(--zg-text-muted)]
|
|
251
|
+
className: "m-0 text-zg-label text-[var(--zg-text-muted)] line-clamp-2",
|
|
252
252
|
children: source.description
|
|
253
253
|
}),
|
|
254
254
|
source.collection && /* @__PURE__ */ jsx("p", {
|
|
255
|
-
className: "m-0 text-zg-label text-[var(--zg-text-muted)]
|
|
255
|
+
className: "m-0 text-zg-label text-[var(--zg-text-muted)]",
|
|
256
256
|
children: labels.packHint
|
|
257
257
|
}),
|
|
258
258
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -322,7 +322,7 @@ function SkillRow({ skill, picked, installed, onToggle, className, style }) {
|
|
|
322
322
|
})
|
|
323
323
|
]
|
|
324
324
|
}), skill.description && /* @__PURE__ */ jsx("span", {
|
|
325
|
-
className: "text-zg-label text-[var(--zg-text-muted)]
|
|
325
|
+
className: "text-zg-label text-[var(--zg-text-muted)] line-clamp-2",
|
|
326
326
|
children: skill.description
|
|
327
327
|
})]
|
|
328
328
|
})]
|
|
@@ -221,7 +221,7 @@ function SourceBrowser({ browse, itemsOf, cardOf, pickOf, selectable: canPick, r
|
|
|
221
221
|
onSelectAll: (on) => onToggle(selectable.map((item) => pickOf(item, listing)), on)
|
|
222
222
|
}),
|
|
223
223
|
note && /* @__PURE__ */ jsx("p", {
|
|
224
|
-
className: "m-0 px-3 pb-2 text-zg-label text-[var(--zg-text-muted)]
|
|
224
|
+
className: "m-0 px-3 pb-2 text-zg-label text-[var(--zg-text-muted)]",
|
|
225
225
|
children: note
|
|
226
226
|
}),
|
|
227
227
|
truncatedOf?.(listing) && /* @__PURE__ */ jsx(Notice, {
|
|
@@ -181,7 +181,7 @@ function ReadyStep({ className }) {
|
|
|
181
181
|
})
|
|
182
182
|
}),
|
|
183
183
|
/* @__PURE__ */ jsx("p", {
|
|
184
|
-
className: "m-0 px-1 text-zg-label text-[var(--zg-text-muted)]
|
|
184
|
+
className: "m-0 px-1 text-zg-label text-[var(--zg-text-muted)]",
|
|
185
185
|
children: labels.changeLater
|
|
186
186
|
})
|
|
187
187
|
]
|
|
@@ -93,7 +93,7 @@ function KeyForm({ provider, className, style }) {
|
|
|
93
93
|
/* @__PURE__ */ jsxs("div", {
|
|
94
94
|
className: "flex items-center gap-3",
|
|
95
95
|
children: [setup.credentialsPath && /* @__PURE__ */ jsx("span", {
|
|
96
|
-
className: "text-zg-label text-[var(--zg-text-muted)]
|
|
96
|
+
className: "text-zg-label text-[var(--zg-text-muted)]",
|
|
97
97
|
children: labels.credentialsAt(setup.credentialsPath)
|
|
98
98
|
}), /* @__PURE__ */ jsx("button", {
|
|
99
99
|
type: "submit",
|
|
@@ -59,6 +59,26 @@ const ACTIONS = {
|
|
|
59
59
|
icon: "i-ph-list-numbers",
|
|
60
60
|
keywords: ["turn", "navigate"]
|
|
61
61
|
},
|
|
62
|
+
previousPrompt: {
|
|
63
|
+
group: "navigate",
|
|
64
|
+
icon: "i-ph-arrow-up",
|
|
65
|
+
keywords: [
|
|
66
|
+
"prompt",
|
|
67
|
+
"message",
|
|
68
|
+
"scroll",
|
|
69
|
+
"rail"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
nextPrompt: {
|
|
73
|
+
group: "navigate",
|
|
74
|
+
icon: "i-ph-arrow-down",
|
|
75
|
+
keywords: [
|
|
76
|
+
"prompt",
|
|
77
|
+
"message",
|
|
78
|
+
"scroll",
|
|
79
|
+
"rail"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
62
82
|
openArtifacts: {
|
|
63
83
|
group: "navigate",
|
|
64
84
|
icon: "i-ph-cube"
|
|
@@ -61,6 +61,8 @@ const DEFAULT_PALETTE_LABELS = {
|
|
|
61
61
|
sessionDelete: "Delete session",
|
|
62
62
|
cancelToolCall: "Cancel a running tool",
|
|
63
63
|
enterSelectTurnMode: "Select a message",
|
|
64
|
+
previousPrompt: "Go to previous message",
|
|
65
|
+
nextPrompt: "Go to next message",
|
|
64
66
|
openArtifacts: "Show artifacts",
|
|
65
67
|
openUsagePanel: "Show usage",
|
|
66
68
|
toggleSidebar: "Toggle sidebar",
|
|
@@ -159,7 +159,7 @@ function PlanTracker({ sessionId, plan, hideHeader = false, className, style })
|
|
|
159
159
|
}),
|
|
160
160
|
plan.body && /* @__PURE__ */ jsx("div", {
|
|
161
161
|
"data-testid": "plan-body",
|
|
162
|
-
className: "px-2 text-zg-ui text-[var(--zg-text)]
|
|
162
|
+
className: "px-2 text-zg-ui text-[var(--zg-text)]",
|
|
163
163
|
children: /* @__PURE__ */ jsx(ProseMarkdown, { children: plan.body })
|
|
164
164
|
}),
|
|
165
165
|
steps.length === 0 && /* @__PURE__ */ jsx("p", {
|
|
@@ -213,11 +213,11 @@ function PlanTracker({ sessionId, plan, hideHeader = false, className, style })
|
|
|
213
213
|
children: step.title
|
|
214
214
|
}),
|
|
215
215
|
step.description && /* @__PURE__ */ jsx("span", {
|
|
216
|
-
className: "text-zg-meta mt-0.5 text-[var(--zg-text-muted)]
|
|
216
|
+
className: "text-zg-meta mt-0.5 text-[var(--zg-text-muted)]",
|
|
217
217
|
children: step.description
|
|
218
218
|
}),
|
|
219
219
|
step.note && /* @__PURE__ */ jsx("span", {
|
|
220
|
-
className: "text-zg-meta leading-4 text-[var(--zg-text-subtle)] italic
|
|
220
|
+
className: "text-zg-meta leading-4 text-[var(--zg-text-subtle)] italic",
|
|
221
221
|
children: labels.stepAgentNote(step.note)
|
|
222
222
|
})
|
|
223
223
|
]
|
|
@@ -82,7 +82,7 @@ function SecretsPanel({ sessionId, className = "", style }) {
|
|
|
82
82
|
})] }) : /* @__PURE__ */ jsxs("div", {
|
|
83
83
|
className: "flex flex-col gap-2",
|
|
84
84
|
children: [/* @__PURE__ */ jsx("p", {
|
|
85
|
-
className: "m-0 text-zg-meta leading-4 text-[var(--zg-text-muted)]
|
|
85
|
+
className: "m-0 text-zg-meta leading-4 text-[var(--zg-text-muted)]",
|
|
86
86
|
children: labels.secretsNote
|
|
87
87
|
}), /* @__PURE__ */ jsx("ul", {
|
|
88
88
|
className: "m-0 p-0 list-none flex flex-col",
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The session header: the
|
|
3
|
-
*
|
|
4
|
-
* the
|
|
5
|
-
*
|
|
2
|
+
* The session header, a breadcrumb: where the session runs (`place`, a dot for a
|
|
3
|
+
* sandbox or a server), its project (the original repository, a click changes
|
|
4
|
+
* the folder), its own branch for a worktree or a sandbox (a click opens the
|
|
5
|
+
* switcher), then the title (a click opens the details; renamable in place),
|
|
6
|
+
* and the app's toolbar on the right. A server session without a `place` names
|
|
7
|
+
* its server in a chip. Right-click on the project or the title opens the app's
|
|
8
|
+
* actions menu (`menuItems`); its Rename sets `renaming`.
|
|
6
9
|
*
|
|
7
10
|
* The title only ellipsizes when it would collide with the toolbar: a
|
|
8
11
|
* ResizeObserver (rAF-debounced) compares its content width with its box.
|
|
9
12
|
*/
|
|
10
13
|
import { RowActionItem } from "../components/RowActionsMenu.js";
|
|
11
|
-
import {
|
|
14
|
+
import { GitBarBranchMenuProps } from "../git/GitBar.js";
|
|
15
|
+
import { CSSProperties, ComponentType, ReactNode } from "react";
|
|
12
16
|
/** The server a server session runs on. */
|
|
13
17
|
export interface SessionHeaderServer {
|
|
14
18
|
/** Its name; absent when it is no longer saved. */
|
|
@@ -39,6 +43,14 @@ export interface SessionHeaderProps {
|
|
|
39
43
|
titleScope?: string;
|
|
40
44
|
/** The session's folder; `''` for a chat without one. */
|
|
41
45
|
cwd: string;
|
|
46
|
+
/** The repository the folder is a checkout of (a worktree's or a sandbox's source): named first. Default: `cwd`. */
|
|
47
|
+
projectRoot?: string;
|
|
48
|
+
/** The session's own branch (a worktree's or a sandbox's): between the project and the title. Absent: none. */
|
|
49
|
+
branch?: string;
|
|
50
|
+
/** The switcher a click on the branch opens (the git bar's). Absent: the branch is plain text. Keep it stable. */
|
|
51
|
+
BranchMenu?: ComponentType<GitBarBranchMenuProps>;
|
|
52
|
+
/** Leads the breadcrumb: where the session runs (`SessionPlaceMenu`). Absent: nothing, and a server session keeps its chip. */
|
|
53
|
+
place?: ReactNode;
|
|
42
54
|
/** The orchestration main: no folder, a fixed name. */
|
|
43
55
|
isMain?: boolean;
|
|
44
56
|
/** A run is in progress (a folderless chat can't attach a folder mid-run). */
|
|
@@ -76,4 +88,4 @@ export interface SessionHeaderProps {
|
|
|
76
88
|
* @param props - The session facts, the folder, details and rename handlers, the menu, the `toolbar`, `className` and
|
|
77
89
|
* `style`.
|
|
78
90
|
*/
|
|
79
|
-
export declare function SessionHeader({ title, titleDisplay, titleScope, cwd, isMain, running, server, onPickFolder, onOpenDetails, onRename, renaming, onRenamingChange, menuItems, onMenuOpenChange, startedFrom, toolbar, sessionId, className, style }: SessionHeaderProps): import("react").JSX.Element;
|
|
91
|
+
export declare function SessionHeader({ title, titleDisplay, titleScope, cwd, projectRoot, branch, BranchMenu, place, isMain, running, server, onPickFolder, onOpenDetails, onRename, renaming, onRenamingChange, menuItems, onMenuOpenChange, startedFrom, toolbar, sessionId, className, style }: SessionHeaderProps): import("react").JSX.Element;
|