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/styles.css
CHANGED
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
.i-ph-corners-out{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M216 48v40a8 8 0 0 1-16 0V56h-32a8 8 0 0 1 0-16h40a8 8 0 0 1 8 8M88 200H56v-32a8 8 0 0 0-16 0v40a8 8 0 0 0 8 8h40a8 8 0 0 0 0-16m120-40a8 8 0 0 0-8 8v32h-32a8 8 0 0 0 0 16h40a8 8 0 0 0 8-8v-40a8 8 0 0 0-8-8M88 40H48a8 8 0 0 0-8 8v40a8 8 0 0 0 16 0V56h32a8 8 0 0 0 0-16'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
90
90
|
.i-ph-cpu{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M152 96h-48a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8m-8 48h-32v-32h32Zm88 0h-16v-32h16a8 8 0 0 0 0-16h-16V56a16 16 0 0 0-16-16h-40V24a8 8 0 0 0-16 0v16h-32V24a8 8 0 0 0-16 0v16H56a16 16 0 0 0-16 16v40H24a8 8 0 0 0 0 16h16v32H24a8 8 0 0 0 0 16h16v40a16 16 0 0 0 16 16h40v16a8 8 0 0 0 16 0v-16h32v16a8 8 0 0 0 16 0v-16h40a16 16 0 0 0 16-16v-40h16a8 8 0 0 0 0-16m-32 56H56V56h144z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
91
91
|
.i-ph-cube{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m223.68 66.15l-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 32l80.34 44L128 120L47.66 76ZM40 90l80 43.78v85.79l-80-43.75Zm96 129.57v-85.75L216 90v85.78Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
92
|
+
.i-ph-cube-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m223.68 66.15l-88-48.15a15.88 15.88 0 0 0-15.36 0l-88 48.17a16 16 0 0 0-8.32 14v95.64a16 16 0 0 0 8.32 14l88 48.17a15.88 15.88 0 0 0 15.36 0l88-48.17a16 16 0 0 0 8.32-14V80.18a16 16 0 0 0-8.32-14.03M128 120L47.65 76L128 32l80.35 44Zm8 99.64v-85.81l80-43.78v85.76Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
92
93
|
.i-ph-cube-transparent{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m221.66 90.34l-56-56A8 8 0 0 0 160 32H40a8 8 0 0 0-8 8v120a8 8 0 0 0 2.3 5.61l56 56A8 8 0 0 0 96 224h120a8 8 0 0 0 8-8V96a8 8 0 0 0-2.34-5.66M168 59.31L196.69 88H168ZM88 196.69L59.31 168H88ZM88 152H48V59.31l40 40ZM59.31 48H152v40H99.31ZM152 104v48h-48v-48Zm-48 104v-40h52.69l40 40Zm104-11.31l-40-40V104h40Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
93
94
|
.i-ph-cursor-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.49 207.8l-12.69 12.69a12 12 0 0 1-17 0l-56.57-56.57L115 214.08l-.13.33a15.84 15.84 0 0 1-14.61 9.59h-.78a15.82 15.82 0 0 1-14.41-11L32.8 52.92A15.95 15.95 0 0 1 52.92 32.8L213 85.07a16 16 0 0 1 1.41 29.8l-.33.13l-50.16 19.27l56.57 56.56a12 12 0 0 1 0 16.97'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
94
95
|
.i-ph-cursor-text{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' height='1em' width='1em' display='inline-block' vertical-align='middle' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M184 208a8 8 0 0 1-8 8h-16a40 40 0 0 1-32-16a40 40 0 0 1-32 16H80a8 8 0 0 1 0-16h16a24 24 0 0 0 24-24v-40h-16a8 8 0 0 1 0-16h16V80a24 24 0 0 0-24-24H80a8 8 0 0 1 0-16h16a40 40 0 0 1 32 16a40 40 0 0 1 32-16h16a8 8 0 0 1 0 16h-16a24 24 0 0 0-24 24v40h16a8 8 0 0 1 0 16h-16v40a24 24 0 0 0 24 24h16a8 8 0 0 1 8 8'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;height:1em;width:1em;display:inline-block;vertical-align:middle;}
|
|
@@ -396,6 +397,7 @@
|
|
|
396
397
|
.top-7{top:1.75rem;}
|
|
397
398
|
.top-full{top:100%;}
|
|
398
399
|
.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;}
|
|
400
|
+
.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;}
|
|
399
401
|
.line-clamp-4{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;}
|
|
400
402
|
.isolate{isolation:isolate;}
|
|
401
403
|
.z-\[-1\]{z-index:-1;}
|
|
@@ -461,6 +463,7 @@
|
|
|
461
463
|
.mx-2{margin-left:0.5rem;margin-right:0.5rem;}
|
|
462
464
|
.mx-3{margin-left:0.75rem;margin-right:0.75rem;}
|
|
463
465
|
.mx-auto{margin-left:auto;margin-right:auto;}
|
|
466
|
+
.mx-px{margin-left:1px;margin-right:1px;}
|
|
464
467
|
.my{margin-top:1rem;margin-bottom:1rem;}
|
|
465
468
|
.my-1\.5{margin-top:0.375rem;margin-bottom:0.375rem;}
|
|
466
469
|
.my-2{margin-top:0.5rem;margin-bottom:0.5rem;}
|
|
@@ -805,6 +808,7 @@
|
|
|
805
808
|
.shrink,
|
|
806
809
|
.shrink-0\.,
|
|
807
810
|
.shrink-0\${flex-shrink:1;}
|
|
811
|
+
.shrink-\[2\]{flex-shrink:2;}
|
|
808
812
|
.shrink-0{flex-shrink:0;}
|
|
809
813
|
.flex-grow,
|
|
810
814
|
.grow{flex-grow:1;}
|
|
@@ -899,6 +903,7 @@
|
|
|
899
903
|
.gap-8{gap:2rem;}
|
|
900
904
|
.gap-px{gap:1px;}
|
|
901
905
|
.gap-x-1{column-gap:0.25rem;}
|
|
906
|
+
.gap-x-1\.5{column-gap:0.375rem;}
|
|
902
907
|
.gap-x-2{column-gap:0.5rem;}
|
|
903
908
|
.gap-x-2\.5{column-gap:0.625rem;}
|
|
904
909
|
.gap-x-3{column-gap:0.75rem;}
|
|
@@ -1120,6 +1125,7 @@
|
|
|
1120
1125
|
.pl-\[19px\]{padding-left:19px;}
|
|
1121
1126
|
.pl-\[22px\]{padding-left:22px;}
|
|
1122
1127
|
.pl-\[26px\]{padding-left:26px;}
|
|
1128
|
+
.pl-\[34px\]{padding-left:34px;}
|
|
1123
1129
|
.pl-\[35px\]{padding-left:35px;}
|
|
1124
1130
|
.pl-\[3px\]{padding-left:3px;}
|
|
1125
1131
|
.pl-\[42px\]{padding-left:42px;}
|
|
@@ -1172,7 +1178,6 @@
|
|
|
1172
1178
|
.text-right{text-align:right;}
|
|
1173
1179
|
.indent{text-indent:1.5rem;}
|
|
1174
1180
|
.text-balance{text-wrap:balance;}
|
|
1175
|
-
.text-pretty{text-wrap:pretty;}
|
|
1176
1181
|
.align-\[-0\.125em\]{vertical-align:-0.125em;}
|
|
1177
1182
|
.align-\[-2px\]{vertical-align:-2px;}
|
|
1178
1183
|
.align-\[calc\(0\.625cap_-_0\.5em\)\]{vertical-align:calc(0.625cap - 0.5em);}
|
|
@@ -1182,6 +1187,7 @@
|
|
|
1182
1187
|
.\!text-xs{font-size:0.75rem !important;line-height:1rem !important;}
|
|
1183
1188
|
.\!text-zg-label{font-size:var(--zg-font-size-label) !important;}
|
|
1184
1189
|
.\!text-zg-meta{font-size:var(--zg-font-size-meta) !important;}
|
|
1190
|
+
.\!text-zg-ui{font-size:var(--zg-font-size-ui) !important;}
|
|
1185
1191
|
.text-\[0\.85em\]{font-size:0.85em;}
|
|
1186
1192
|
.text-\[0\.8em\]{font-size:0.8em;}
|
|
1187
1193
|
.text-\[10px\]{font-size:10px;}
|
|
@@ -1298,7 +1304,8 @@
|
|
|
1298
1304
|
.opacity-40{opacity:0.4;}
|
|
1299
1305
|
.opacity-45{opacity:0.45;}
|
|
1300
1306
|
.opacity-50{opacity:0.5;}
|
|
1301
|
-
.opacity-60
|
|
1307
|
+
.opacity-60,
|
|
1308
|
+
.group\/copy:focus-visible .group-focus-visible\/copy\:opacity-60{opacity:0.6;}
|
|
1302
1309
|
.opacity-70{opacity:0.7;}
|
|
1303
1310
|
.opacity-75{opacity:0.75;}
|
|
1304
1311
|
.opacity-80{opacity:0.8;}
|
|
@@ -1425,6 +1432,8 @@
|
|
|
1425
1432
|
.group\/head:hover .group-hover\/head\:opacity-100,
|
|
1426
1433
|
.group\/queued:hover .group-hover\/queued\:opacity-100,
|
|
1427
1434
|
.group\/step:hover .group-hover\/step\:opacity-100{opacity:1;}
|
|
1435
|
+
.group\/copy:hover .group-hover\/copy\:opacity-60{opacity:0.6;}
|
|
1436
|
+
.group\/copy:hover .group-hover\/copy\:opacity-80{opacity:0.8;}
|
|
1428
1437
|
.hover\:opacity-100:hover{opacity:1;}
|
|
1429
1438
|
.hover\:\!bg-zg-danger\/10:hover{background-color:color-mix(in srgb, var(--zg-danger) 10%, transparent) !important;}
|
|
1430
1439
|
.hover\:before\:bg-zg-danger\/10:hover::before{background-color:color-mix(in srgb, var(--zg-danger) 10%, transparent);}
|
|
@@ -1608,6 +1617,11 @@
|
|
|
1608
1617
|
--zg-radius-xl: 16px;
|
|
1609
1618
|
--zg-radius-2xl: 24px;
|
|
1610
1619
|
|
|
1620
|
+
/* The transcript's and the composer's columns pad their sides by this
|
|
1621
|
+
(`.zg-transcript-column`), so both keep one edge and the prompt rail
|
|
1622
|
+
(`TranscriptRail`) has room beside the text whether it shows or not. */
|
|
1623
|
+
--zg-transcript-gutter: 12px;
|
|
1624
|
+
|
|
1611
1625
|
/* Interface type scale: every size outside the transcript and composer
|
|
1612
1626
|
bodies comes from it, never ad hoc (scale-guard.test.ts). In Uno:
|
|
1613
1627
|
`text-zg-badge` … `text-zg-body` (font-size only, line-height untouched).
|
|
@@ -1905,6 +1919,19 @@ html {
|
|
|
1905
1919
|
box-sizing: border-box;
|
|
1906
1920
|
}
|
|
1907
1921
|
|
|
1922
|
+
/* Text wraps without a lone last word, everywhere (inherited). Text that
|
|
1923
|
+
changes as you read it opts out: a word would hop between lines on each
|
|
1924
|
+
keystroke or token. Headings balance their lines instead. */
|
|
1925
|
+
html {
|
|
1926
|
+
text-wrap-style: pretty;
|
|
1927
|
+
}
|
|
1928
|
+
:is(input, textarea, [contenteditable]:not([contenteditable='false']), pre, .zg-streaming) {
|
|
1929
|
+
text-wrap-style: auto;
|
|
1930
|
+
}
|
|
1931
|
+
:is(h1, h2, h3, h4, h5, h6, .zg-balance) {
|
|
1932
|
+
text-wrap-style: balance;
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1908
1935
|
/* Thin, neutral scrollbars; the transparent track lets each surface show through. */
|
|
1909
1936
|
* {
|
|
1910
1937
|
scrollbar-width: thin;
|
|
@@ -3566,16 +3593,6 @@ html[data-motion='reduced'] .zg-attention::after {
|
|
|
3566
3593
|
0 0 0 2px var(--zg-bg),
|
|
3567
3594
|
0 0 0 4px var(--zg-ring);
|
|
3568
3595
|
}
|
|
3569
|
-
/* `text-wrap: balance` keeps short headings on roughly equal-width lines
|
|
3570
|
-
(no orphan words). Applied via class to opt-in surfaces — modals,
|
|
3571
|
-
session titles — so body copy keeps its default flow. */
|
|
3572
|
-
.zg-balance {
|
|
3573
|
-
text-wrap: balance;
|
|
3574
|
-
}
|
|
3575
|
-
/* `text-wrap: pretty` avoids single-word orphan lines in body copy. */
|
|
3576
|
-
.zg-pretty {
|
|
3577
|
-
text-wrap: pretty;
|
|
3578
|
-
}
|
|
3579
3596
|
/* Segment spinner (`SegmentSpinner.tsx`) — GUI twin of the TUI `▀▁▁▁▁` bar.
|
|
3580
3597
|
Each pill is lit for the first half of an 800 ms cycle and dim for the
|
|
3581
3598
|
rest; per-pill `animation-delay` (i × 80 ms) produces the fill → drain
|
|
@@ -5216,6 +5233,36 @@ html[data-motion='full'] .zg-orb:not([data-state='down']) {
|
|
|
5216
5233
|
}
|
|
5217
5234
|
}
|
|
5218
5235
|
|
|
5236
|
+
/* The cube: the same light on the Environments icon. The sphere's fill and
|
|
5237
|
+
rim give way to the glyph, which takes the gradient through its mask, and a
|
|
5238
|
+
drop-shadow in the state colour stands in for the halo. */
|
|
5239
|
+
.zg-orb[data-shape='cube'],
|
|
5240
|
+
html[data-motion='full'] .zg-orb[data-shape='cube'],
|
|
5241
|
+
.zg-orb[data-shape='cube'][data-state='down'] {
|
|
5242
|
+
background: none;
|
|
5243
|
+
box-shadow: none;
|
|
5244
|
+
}
|
|
5245
|
+
.zg-orb[data-shape='cube'] > .zg-orb-cube {
|
|
5246
|
+
position: absolute;
|
|
5247
|
+
inset: 0;
|
|
5248
|
+
width: 100%;
|
|
5249
|
+
height: 100%;
|
|
5250
|
+
background: linear-gradient(
|
|
5251
|
+
150deg,
|
|
5252
|
+
color-mix(in oklab, var(--orb) 45%, white) 0%,
|
|
5253
|
+
var(--orb) 45%,
|
|
5254
|
+
color-mix(in oklab, var(--orb), var(--zg-orb-tone) var(--zg-orb-shade)) 100%
|
|
5255
|
+
);
|
|
5256
|
+
filter: drop-shadow(0 0 4px color-mix(in oklab, var(--orb) calc(90% * var(--zg-orb-glow)), transparent));
|
|
5257
|
+
}
|
|
5258
|
+
.zg-orb[data-shape='cube'][data-state='down'] > .zg-orb-cube {
|
|
5259
|
+
filter: none;
|
|
5260
|
+
}
|
|
5261
|
+
/* The breathing halo is round: on a cube it reads as a disc behind it. */
|
|
5262
|
+
.zg-orb[data-shape='cube']::before {
|
|
5263
|
+
display: none;
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5219
5266
|
html[data-motion='off'] .zg-orb,
|
|
5220
5267
|
html[data-motion='off'] .zg-orb::before,
|
|
5221
5268
|
html[data-motion='off'] .zg-orb::after,
|
|
@@ -5303,6 +5350,12 @@ html[data-motion='reduced'] .zg-orb-ripple {
|
|
|
5303
5350
|
transition: opacity var(--zg-motion-fade);
|
|
5304
5351
|
}
|
|
5305
5352
|
|
|
5353
|
+
/* Open and done opening (`usePanelSettled`): the sheet follows the aside's width, so a width change while open
|
|
5354
|
+
(the layout budget) flows the content with the edge instead of jumping it to the new width. */
|
|
5355
|
+
.zg-sidebar[data-settled] .zg-sidebar-sheet {
|
|
5356
|
+
width: 100%;
|
|
5357
|
+
}
|
|
5358
|
+
|
|
5306
5359
|
.zg-sidebar[data-collapsed='true'] .zg-sidebar-sheet {
|
|
5307
5360
|
opacity: 0.4;
|
|
5308
5361
|
pointer-events: none;
|
|
@@ -5332,6 +5385,11 @@ html[data-motion='reduced'] .zg-orb-ripple {
|
|
|
5332
5385
|
.zg-sidebar-list {
|
|
5333
5386
|
/* Positioned: rows that leave fade out as stand-ins placed in it (motion/flip-list.ts). */
|
|
5334
5387
|
position: relative;
|
|
5388
|
+
/* The list scrolls down, never sideways: a scroller's `overflow-x` would compute to `auto` and turn
|
|
5389
|
+
anything a row lets poke out (badges, a title line on a narrow sidebar) into a horizontal scroll.
|
|
5390
|
+
`clip`, not `hidden`: the inbox's list holds its scrollers and must not become one itself (where it
|
|
5391
|
+
scrolls, the Groups layout, clip computes to hidden). */
|
|
5392
|
+
overflow-x: clip;
|
|
5335
5393
|
--zg-sticky-head-h: 36px;
|
|
5336
5394
|
scroll-padding-top: calc(var(--zg-sticky-head-h) + 4px);
|
|
5337
5395
|
}
|
|
@@ -5401,17 +5459,23 @@ html[data-motion='reduced'] .zg-orb-ripple {
|
|
|
5401
5459
|
top: var(--zg-sticky-head-h);
|
|
5402
5460
|
}
|
|
5403
5461
|
|
|
5404
|
-
/* A sidebar row's badges: one line; badges keep their width (not a squeeze)
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5462
|
+
/* A sidebar row's badges: one line; badges keep their width (not a squeeze). Past the row's edge the line
|
|
5463
|
+
scrolls sideways (a trackpad swipe, shift + wheel), without a scrollbar, and fades only on the side that
|
|
5464
|
+
has more (`.zg-scroll-fade-x`, primitives.css). The scroll stays in the line, never the sidebar's.
|
|
5465
|
+
`min-width: 0`: as a grid or flex item it never widens the row to its badges' whole width. */
|
|
5408
5466
|
.zg-badge-strip {
|
|
5409
5467
|
display: flex;
|
|
5410
5468
|
align-items: center;
|
|
5411
5469
|
column-gap: 0.25rem;
|
|
5412
|
-
|
|
5413
|
-
-
|
|
5414
|
-
|
|
5470
|
+
min-width: 0;
|
|
5471
|
+
overflow-x: auto;
|
|
5472
|
+
overflow-y: hidden;
|
|
5473
|
+
overscroll-behavior-x: contain;
|
|
5474
|
+
scrollbar-width: none;
|
|
5475
|
+
--zg-fade-size: 12px;
|
|
5476
|
+
}
|
|
5477
|
+
.zg-badge-strip::-webkit-scrollbar {
|
|
5478
|
+
display: none;
|
|
5415
5479
|
}
|
|
5416
5480
|
|
|
5417
5481
|
.zg-badge-strip > * {
|
|
@@ -5435,6 +5499,9 @@ html[data-motion='reduced'] .zg-orb-ripple {
|
|
|
5435
5499
|
.zg-row-extra {
|
|
5436
5500
|
display: grid;
|
|
5437
5501
|
grid-template-rows: 1fr;
|
|
5502
|
+
/* The track takes the row's width, never its badges': the strip clips at the row's edge. */
|
|
5503
|
+
grid-template-columns: minmax(0, 1fr);
|
|
5504
|
+
min-width: 0;
|
|
5438
5505
|
}
|
|
5439
5506
|
.zg-row-extra[data-grow] {
|
|
5440
5507
|
animation:
|
|
@@ -5491,6 +5558,7 @@ html[data-motion='reduced'] .zg-orb-ripple {
|
|
|
5491
5558
|
.zg-inbox-scroll {
|
|
5492
5559
|
flex: 1;
|
|
5493
5560
|
min-height: 0;
|
|
5561
|
+
overflow-x: hidden;
|
|
5494
5562
|
overflow-y: auto;
|
|
5495
5563
|
}
|
|
5496
5564
|
/* The dock sits on the tray; its first shelf's line is the edge against the rows above. */
|
|
@@ -5507,6 +5575,7 @@ html[data-motion='reduced'] .zg-orb-ripple {
|
|
|
5507
5575
|
}
|
|
5508
5576
|
.zg-inbox-dock-body {
|
|
5509
5577
|
min-height: 0;
|
|
5578
|
+
overflow-x: hidden;
|
|
5510
5579
|
overflow-y: auto;
|
|
5511
5580
|
}
|
|
5512
5581
|
.zg-inbox-dock .zg-inbox-shelf {
|
|
@@ -5775,6 +5844,13 @@ html[data-motion='reduced'] .zg-arc::after {
|
|
|
5775
5844
|
content: '\200b';
|
|
5776
5845
|
}
|
|
5777
5846
|
|
|
5847
|
+
/* The column a transcript and its composer share: the same side padding on
|
|
5848
|
+
both, always, so their edges line up and the prompt rail appearing or
|
|
5849
|
+
leaving moves nothing. */
|
|
5850
|
+
.zg-transcript-column {
|
|
5851
|
+
padding-inline: var(--zg-transcript-gutter);
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5778
5854
|
/* Select-turn highlight (Timeline SelectCursor): one tint behind the
|
|
5779
5855
|
transcript that fades in, then slides and resizes between selections.
|
|
5780
5856
|
The timeline isolates so it can sit behind the rows (z-index -1) and
|
|
@@ -5809,6 +5885,137 @@ html[data-motion='reduced'] .zg-arc::after {
|
|
|
5809
5885
|
height var(--zg-motion-snap);
|
|
5810
5886
|
}
|
|
5811
5887
|
|
|
5888
|
+
/* The prompt rail's hovered exchange (`RailTint`): the select cursor's
|
|
5889
|
+
element in the row hover's tone, so it never reads as a selection. */
|
|
5890
|
+
.zg-select-cursor.zg-rail-tint {
|
|
5891
|
+
background: var(--zg-hover-wash);
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
/* The prompt rail (`TranscriptRail`): ticks left of the transcript's text,
|
|
5895
|
+
centred in that space (near the pane's edge once it is wide) and on the
|
|
5896
|
+
view's height, over the layout (never in it). A tick is a
|
|
5897
|
+
short line; the one in view and the one under the pointer stretch to full
|
|
5898
|
+
length and take the text's tone. Touch screens get no rail. */
|
|
5899
|
+
.zg-prompt-rail {
|
|
5900
|
+
position: absolute;
|
|
5901
|
+
z-index: 2;
|
|
5902
|
+
transform: translateY(-50%);
|
|
5903
|
+
opacity: 0;
|
|
5904
|
+
visibility: hidden;
|
|
5905
|
+
pointer-events: none;
|
|
5906
|
+
transition:
|
|
5907
|
+
opacity var(--zg-motion-fade-out),
|
|
5908
|
+
visibility 0s linear var(--zg-motion-fade-out-duration, 0s);
|
|
5909
|
+
}
|
|
5910
|
+
|
|
5911
|
+
.zg-prompt-rail[data-on='true'] {
|
|
5912
|
+
opacity: 1;
|
|
5913
|
+
visibility: visible;
|
|
5914
|
+
pointer-events: auto;
|
|
5915
|
+
transition: opacity var(--zg-motion-fade);
|
|
5916
|
+
}
|
|
5917
|
+
|
|
5918
|
+
/* Past its most ticks (TranscriptRail sets the height) it scrolls; an end with more ticks fades. */
|
|
5919
|
+
.zg-prompt-rail-ticks {
|
|
5920
|
+
display: flex;
|
|
5921
|
+
flex-direction: column;
|
|
5922
|
+
overflow-y: auto;
|
|
5923
|
+
overscroll-behavior: contain;
|
|
5924
|
+
scrollbar-width: none;
|
|
5925
|
+
}
|
|
5926
|
+
|
|
5927
|
+
.zg-prompt-rail-ticks[data-fade-top] {
|
|
5928
|
+
mask-image: linear-gradient(to bottom, transparent, #000 24px);
|
|
5929
|
+
}
|
|
5930
|
+
|
|
5931
|
+
.zg-prompt-rail-ticks[data-fade-bottom] {
|
|
5932
|
+
mask-image: linear-gradient(to top, transparent, #000 24px);
|
|
5933
|
+
}
|
|
5934
|
+
|
|
5935
|
+
.zg-prompt-rail-ticks[data-fade-top][data-fade-bottom] {
|
|
5936
|
+
mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent);
|
|
5937
|
+
}
|
|
5938
|
+
|
|
5939
|
+
.zg-prompt-rail-ticks::-webkit-scrollbar {
|
|
5940
|
+
display: none;
|
|
5941
|
+
}
|
|
5942
|
+
|
|
5943
|
+
.zg-prompt-rail-tick {
|
|
5944
|
+
position: relative;
|
|
5945
|
+
flex: none;
|
|
5946
|
+
height: 8px;
|
|
5947
|
+
width: 100%;
|
|
5948
|
+
padding: 0;
|
|
5949
|
+
border: 0;
|
|
5950
|
+
background: none;
|
|
5951
|
+
cursor: pointer;
|
|
5952
|
+
}
|
|
5953
|
+
|
|
5954
|
+
.zg-prompt-rail-tick::before {
|
|
5955
|
+
content: '';
|
|
5956
|
+
position: absolute;
|
|
5957
|
+
top: 3px;
|
|
5958
|
+
left: 0;
|
|
5959
|
+
width: 14px;
|
|
5960
|
+
height: 2px;
|
|
5961
|
+
border-radius: 9999px;
|
|
5962
|
+
background: var(--zg-text-subtle);
|
|
5963
|
+
transform: scaleX(0.55);
|
|
5964
|
+
transform-origin: left center;
|
|
5965
|
+
transition:
|
|
5966
|
+
transform var(--zg-motion-snap),
|
|
5967
|
+
background-color var(--zg-motion-hover);
|
|
5968
|
+
}
|
|
5969
|
+
|
|
5970
|
+
.zg-prompt-rail-tick[aria-current='location']::before {
|
|
5971
|
+
background: var(--zg-text);
|
|
5972
|
+
transform: scaleX(1);
|
|
5973
|
+
}
|
|
5974
|
+
|
|
5975
|
+
.zg-prompt-rail-tick[data-hover]::before {
|
|
5976
|
+
background: var(--zg-text-muted);
|
|
5977
|
+
transform: scaleX(1);
|
|
5978
|
+
}
|
|
5979
|
+
|
|
5980
|
+
.zg-prompt-rail-tick[aria-current='location'][data-hover]::before {
|
|
5981
|
+
background: var(--zg-text);
|
|
5982
|
+
}
|
|
5983
|
+
|
|
5984
|
+
/* A prompt whose history is loading for a jump to it. */
|
|
5985
|
+
.zg-prompt-rail-tick[data-pending]::before {
|
|
5986
|
+
background: var(--zg-text-muted);
|
|
5987
|
+
transform: scaleX(1);
|
|
5988
|
+
animation: zg-prompt-rail-pending 0.9s ease-in-out infinite alternate;
|
|
5989
|
+
}
|
|
5990
|
+
|
|
5991
|
+
@keyframes zg-prompt-rail-pending {
|
|
5992
|
+
to {
|
|
5993
|
+
opacity: 0.35;
|
|
5994
|
+
}
|
|
5995
|
+
}
|
|
5996
|
+
|
|
5997
|
+
html[data-motion='off'] .zg-prompt-rail-tick[data-pending]::before,
|
|
5998
|
+
html[data-motion='reduced'] .zg-prompt-rail-tick[data-pending]::before {
|
|
5999
|
+
animation: none;
|
|
6000
|
+
}
|
|
6001
|
+
|
|
6002
|
+
.zg-prompt-rail-tick:focus-visible {
|
|
6003
|
+
outline: 2px solid var(--zg-ring);
|
|
6004
|
+
outline-offset: 1px;
|
|
6005
|
+
border-radius: var(--zg-radius-xs);
|
|
6006
|
+
}
|
|
6007
|
+
|
|
6008
|
+
/* A preview, not a menu: the pointer goes through it to the rail. */
|
|
6009
|
+
.zg-prompt-rail-card {
|
|
6010
|
+
pointer-events: none;
|
|
6011
|
+
}
|
|
6012
|
+
|
|
6013
|
+
@media (hover: none) {
|
|
6014
|
+
.zg-prompt-rail {
|
|
6015
|
+
display: none;
|
|
6016
|
+
}
|
|
6017
|
+
}
|
|
6018
|
+
|
|
5812
6019
|
/* In select mode (the only time rows carry `data-stop`) a row is clickable. */
|
|
5813
6020
|
[data-stop] {
|
|
5814
6021
|
cursor: pointer;
|
|
@@ -8222,6 +8429,12 @@ html[data-motion='reduced'] .zg-toaster [data-sonner-toast].zg-toast {
|
|
|
8222
8429
|
clip-path var(--zg-panel-ms) var(--zg-panel-ease);
|
|
8223
8430
|
}
|
|
8224
8431
|
|
|
8432
|
+
/* Open and done opening (`usePanelSettled`): the sheet follows the aside, so a width change while open
|
|
8433
|
+
(the budget, the sidebar toggling) flows the content with the edge instead of jumping it to the new width. */
|
|
8434
|
+
.zg-side-panel[data-settled] .zg-side-panel-sheet {
|
|
8435
|
+
width: 100%;
|
|
8436
|
+
}
|
|
8437
|
+
|
|
8225
8438
|
/* Full screen (`SidePanel`'s `expanded`): the aside keeps its width in the row (nothing
|
|
8226
8439
|
beside it reflows), its clip opens to the parent at once (`data-full`), and the sheet,
|
|
8227
8440
|
pinned to the outer edge, grows to the parent's width on the panel clock
|
|
@@ -9457,6 +9670,11 @@ html[data-motion='off'] .zg-tour-part[data-active] {
|
|
|
9457
9670
|
transition: opacity var(--zg-motion-fade);
|
|
9458
9671
|
}
|
|
9459
9672
|
|
|
9673
|
+
/* Open and done opening (`usePanelSettled`): the sheet follows the column's width. */
|
|
9674
|
+
.zg-files-tree[data-settled] .zg-files-tree-sheet {
|
|
9675
|
+
width: 100%;
|
|
9676
|
+
}
|
|
9677
|
+
|
|
9460
9678
|
.zg-files-tree[data-collapsed='true'] .zg-files-tree-sheet {
|
|
9461
9679
|
opacity: 0.4;
|
|
9462
9680
|
pointer-events: none;
|
|
@@ -9543,6 +9761,12 @@ html[data-motion='off'] .zg-tour-part[data-active] {
|
|
|
9543
9761
|
transition: opacity var(--zg-motion-fade);
|
|
9544
9762
|
}
|
|
9545
9763
|
|
|
9764
|
+
/* Open and done opening (`usePanelSettled`): the sheet follows the drawer's height (the clip's: the drawer less
|
|
9765
|
+
its border). */
|
|
9766
|
+
.zg-terminal-drawer[data-settled] .zg-terminal-drawer-sheet {
|
|
9767
|
+
height: 100%;
|
|
9768
|
+
}
|
|
9769
|
+
|
|
9546
9770
|
.zg-terminal-drawer[data-collapsed='true'] .zg-terminal-drawer-sheet {
|
|
9547
9771
|
opacity: 0.4;
|
|
9548
9772
|
pointer-events: none;
|
|
@@ -4,7 +4,7 @@ import { useResizeDrag } from "../hooks/useResizeDrag.js";
|
|
|
4
4
|
import { getMergedKeybindings } from "../keybindings/headless/overrides.js";
|
|
5
5
|
import { useKeybindingsHost } from "../keybindings/KeybindingsProvider.js";
|
|
6
6
|
import { KeyHint } from "../keybindings/KeyHint.js";
|
|
7
|
-
import { readPanelMs, usePresence } from "../motion/presence.js";
|
|
7
|
+
import { readPanelMs, usePanelSettled, usePresence } from "../motion/presence.js";
|
|
8
8
|
import { useWorkspaceView } from "../workspace/WorkspaceProvider.js";
|
|
9
9
|
import { terminalScopeKey } from "./headless/scope.js";
|
|
10
10
|
import { TerminalPanel } from "./TerminalPanel.js";
|
|
@@ -48,6 +48,7 @@ function Drawer({ scope, className }) {
|
|
|
48
48
|
exitMs: readPanelMs,
|
|
49
49
|
key: terminalScopeKey(scope)
|
|
50
50
|
});
|
|
51
|
+
const settled = usePanelSettled(presence.state);
|
|
51
52
|
const ref = useRef(null);
|
|
52
53
|
const [columnHeight, setColumnHeight] = useState(0);
|
|
53
54
|
useEffect(() => {
|
|
@@ -85,6 +86,7 @@ function Drawer({ scope, className }) {
|
|
|
85
86
|
"aria-hidden": !open,
|
|
86
87
|
"data-testid": "terminal-drawer",
|
|
87
88
|
"data-collapsed": !open,
|
|
89
|
+
"data-settled": settled || void 0,
|
|
88
90
|
...drawerProps,
|
|
89
91
|
className: `zg-terminal-drawer outline-none relative shrink-0 border-t border-[var(--zg-hairline)] bg-[var(--zg-bg)]${className ? ` ${className}` : ""}`,
|
|
90
92
|
style: { "--zg-terminal-h": `${height}px` },
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* draws again only when its answer changes.
|
|
11
11
|
*/
|
|
12
12
|
import { ChatEvent } from "../../chat/headless/host.js";
|
|
13
|
+
import { TranscriptEvents } from "zidane/chat/pure";
|
|
13
14
|
/** An answer the user sent from a view's input. */
|
|
14
15
|
export interface ViewAnswer {
|
|
15
16
|
/** The text the message showed. */
|
|
@@ -28,6 +29,9 @@ export declare function viewAnswerKey(viewId: string, path: readonly number[]):
|
|
|
28
29
|
export declare class ViewAnswers {
|
|
29
30
|
private map;
|
|
30
31
|
private seen;
|
|
32
|
+
private source;
|
|
33
|
+
/** A transcript store's settled answers, per chunk list. */
|
|
34
|
+
private settled;
|
|
31
35
|
private readonly changed;
|
|
32
36
|
private readonly listeners;
|
|
33
37
|
/** Number of answers held. */
|
|
@@ -35,9 +39,11 @@ export declare class ViewAnswers {
|
|
|
35
39
|
/**
|
|
36
40
|
* Reads the events. Call {@link flush} after to tell the controls whose answer changed.
|
|
37
41
|
*
|
|
38
|
-
* @param events - The session's events, oldest first.
|
|
42
|
+
* @param events - The session's events, oldest first, or its transcript store (its settled exchanges are read once).
|
|
39
43
|
*/
|
|
40
|
-
update(events: readonly ChatEvent[]): void;
|
|
44
|
+
update(events: readonly ChatEvent[] | TranscriptEvents<ChatEvent>): void;
|
|
45
|
+
private updateTranscript;
|
|
46
|
+
private updateArray;
|
|
41
47
|
/** Tells the controls whose answer changed since the last flush. */
|
|
42
48
|
flush(): void;
|
|
43
49
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { promptOriginOf } from "../../chat/headless/prompt-origin.js";
|
|
2
|
+
import { chunkFact, noteTranscriptPass } from "zidane/chat/pure";
|
|
2
3
|
// src/views/headless/answers.ts
|
|
3
4
|
/**
|
|
4
5
|
* The key of one input: its view and its node path.
|
|
@@ -13,10 +14,25 @@ function viewAnswerKey(viewId, path) {
|
|
|
13
14
|
function answerOf(event) {
|
|
14
15
|
return event.kind === "user-prompt" && event.childId === void 0 ? promptOriginOf(event)?.view : void 0;
|
|
15
16
|
}
|
|
17
|
+
/** The answers events hold, in order, each key once (the first answer of an input stands). */
|
|
18
|
+
function answersIn(events) {
|
|
19
|
+
const out = [];
|
|
20
|
+
for (const event of events) {
|
|
21
|
+
const view = answerOf(event);
|
|
22
|
+
if (view) out.push([viewAnswerKey(view.viewId, view.nodePath), {
|
|
23
|
+
text: event.text ?? "",
|
|
24
|
+
value: view.value
|
|
25
|
+
}]);
|
|
26
|
+
}
|
|
27
|
+
return out;
|
|
28
|
+
}
|
|
16
29
|
/** The answers of one transcript, per input. */
|
|
17
30
|
var ViewAnswers = class {
|
|
18
31
|
map = /* @__PURE__ */ new Map();
|
|
19
32
|
seen = [];
|
|
33
|
+
source = null;
|
|
34
|
+
/** A transcript store's settled answers, per chunk list. */
|
|
35
|
+
settled = null;
|
|
20
36
|
changed = /* @__PURE__ */ new Set();
|
|
21
37
|
listeners = /* @__PURE__ */ new Map();
|
|
22
38
|
/** Number of answers held. */
|
|
@@ -26,9 +42,50 @@ var ViewAnswers = class {
|
|
|
26
42
|
/**
|
|
27
43
|
* Reads the events. Call {@link flush} after to tell the controls whose answer changed.
|
|
28
44
|
*
|
|
29
|
-
* @param events - The session's events, oldest first.
|
|
45
|
+
* @param events - The session's events, oldest first, or its transcript store (its settled exchanges are read once).
|
|
30
46
|
*/
|
|
31
47
|
update(events) {
|
|
48
|
+
if (events === this.source) return;
|
|
49
|
+
this.source = events;
|
|
50
|
+
if (!Array.isArray(events)) {
|
|
51
|
+
this.updateTranscript(events);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
if (this.settled) {
|
|
55
|
+
for (const key of this.map.keys()) this.changed.add(key);
|
|
56
|
+
this.map = /* @__PURE__ */ new Map();
|
|
57
|
+
this.settled = null;
|
|
58
|
+
}
|
|
59
|
+
this.updateArray(events);
|
|
60
|
+
}
|
|
61
|
+
updateTranscript(transcript) {
|
|
62
|
+
this.seen = [];
|
|
63
|
+
let settled = this.settled;
|
|
64
|
+
if (!settled || settled.chunks !== transcript.chunks) {
|
|
65
|
+
const map = /* @__PURE__ */ new Map();
|
|
66
|
+
for (const chunk of transcript.chunks) for (const [key, answer] of chunkFact(chunk, "view-answers", answersIn)) if (!map.has(key)) map.set(key, answer);
|
|
67
|
+
settled = {
|
|
68
|
+
chunks: transcript.chunks,
|
|
69
|
+
map
|
|
70
|
+
};
|
|
71
|
+
this.settled = settled;
|
|
72
|
+
}
|
|
73
|
+
noteTranscriptPass("views:answers", transcript.tail.length);
|
|
74
|
+
const open = answersIn(transcript.tail);
|
|
75
|
+
let next = settled.map;
|
|
76
|
+
if (open.some(([key]) => !next.has(key))) {
|
|
77
|
+
next = new Map(next);
|
|
78
|
+
for (const [key, answer] of open) if (!next.has(key)) next.set(key, answer);
|
|
79
|
+
}
|
|
80
|
+
if (next === this.map) return;
|
|
81
|
+
for (const [key, answer] of next) {
|
|
82
|
+
const before = this.map.get(key);
|
|
83
|
+
if (!before || before.text !== answer.text || before.value !== answer.value) this.changed.add(key);
|
|
84
|
+
}
|
|
85
|
+
for (const key of this.map.keys()) if (!next.has(key)) this.changed.add(key);
|
|
86
|
+
this.map = next;
|
|
87
|
+
}
|
|
88
|
+
updateArray(events) {
|
|
32
89
|
if (events === this.seen) return;
|
|
33
90
|
const last = this.seen.length;
|
|
34
91
|
const grew = events.length >= last && (last === 0 || events[last - 1] === this.seen[last - 1]);
|
|
@@ -29,6 +29,49 @@ export interface ReplyViewPlace {
|
|
|
29
29
|
* @param previous - The result of the last call, or `undefined`.
|
|
30
30
|
*/
|
|
31
31
|
export declare function viewPlacements(events: readonly ChatEvent[], previous?: ReadonlyMap<string, ReplyViewPlace>): Map<string, ReplyViewPlace>;
|
|
32
|
+
/** A map read through to `base`, written to its own entries: a fold resumed from a settled state copies nothing of it. */
|
|
33
|
+
export declare class LayeredMap<K, V> {
|
|
34
|
+
readonly base: ReadonlyMap<K, V>;
|
|
35
|
+
readonly top: Map<K, V>;
|
|
36
|
+
constructor(base?: ReadonlyMap<K, V>);
|
|
37
|
+
get(key: K): V | undefined;
|
|
38
|
+
has(key: K): boolean;
|
|
39
|
+
set(key: K, value: V): this;
|
|
40
|
+
}
|
|
41
|
+
/** The state of {@link viewPlacements} part way through a transcript: resumed on the events after it. */
|
|
42
|
+
export interface PlacementFold {
|
|
43
|
+
places: Map<string, ReplyViewPlace> | LayeredMap<string, ReplyViewPlace>;
|
|
44
|
+
ordinals: Map<string, number> | LayeredMap<string, number>;
|
|
45
|
+
fencesByTurn: Map<string, number> | LayeredMap<string, number>;
|
|
46
|
+
exchangeTurns: string[];
|
|
47
|
+
finalReply: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A fold at the start of a transcript, or resumed after `base` (read through, never written).
|
|
51
|
+
*
|
|
52
|
+
* @param base - The fold of the events before, or none.
|
|
53
|
+
*/
|
|
54
|
+
export declare function placementFold(base?: PlacementFold): PlacementFold;
|
|
55
|
+
/**
|
|
56
|
+
* Gives the open exchange's final reply the turns whose unplaced codemode views it draws, and starts the next exchange.
|
|
57
|
+
*
|
|
58
|
+
* @param fold - The fold.
|
|
59
|
+
*/
|
|
60
|
+
export declare function closePlacementExchange(fold: PlacementFold): void;
|
|
61
|
+
/**
|
|
62
|
+
* Reads `events` into the fold (the open exchange stays open).
|
|
63
|
+
*
|
|
64
|
+
* @param fold - The fold.
|
|
65
|
+
* @param events - The events after those it read, oldest first.
|
|
66
|
+
*/
|
|
67
|
+
export declare function foldPlacements(fold: PlacementFold, events: readonly ChatEvent[]): void;
|
|
68
|
+
/**
|
|
69
|
+
* Whether two places send a reply's views to the same spots.
|
|
70
|
+
*
|
|
71
|
+
* @param a - One place.
|
|
72
|
+
* @param b - The other.
|
|
73
|
+
*/
|
|
74
|
+
export declare function sameViewPlace(a: ReplyViewPlace, b: ReplyViewPlace): boolean;
|
|
32
75
|
/**
|
|
33
76
|
* Whether a session with these events can hold a view: a reply with a `view` fence, or a tool
|
|
34
77
|
* call (a codemode script or an MCP app makes the others).
|
|
@@ -62,6 +105,41 @@ export interface TextlessExchange {
|
|
|
62
105
|
* @param events - The session's events, oldest first.
|
|
63
106
|
*/
|
|
64
107
|
export declare function textlessExchanges(events: readonly ChatEvent[]): TextlessExchange[];
|
|
108
|
+
/** The state of {@link textlessExchanges} part way through a transcript: the closed exchanges, and the open one. */
|
|
109
|
+
export interface TextlessFold {
|
|
110
|
+
/** The closed exchanges with no reply text. */
|
|
111
|
+
out: TextlessExchange[];
|
|
112
|
+
/** `out` is the base fold's: copied before the first push. */
|
|
113
|
+
shared: boolean;
|
|
114
|
+
turns: string[];
|
|
115
|
+
replied: boolean;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A fold at the start of a transcript, or resumed after `base` (its closed list is shared until one closes).
|
|
119
|
+
*
|
|
120
|
+
* @param base - The fold of the events before, or none.
|
|
121
|
+
*/
|
|
122
|
+
export declare function textlessFold(base?: TextlessFold): TextlessFold;
|
|
123
|
+
/**
|
|
124
|
+
* Reads `events` into the fold.
|
|
125
|
+
*
|
|
126
|
+
* @param fold - The fold.
|
|
127
|
+
* @param events - The events after those it read, oldest first.
|
|
128
|
+
*/
|
|
129
|
+
export declare function foldTextless(fold: TextlessFold, events: readonly ChatEvent[]): void;
|
|
130
|
+
/**
|
|
131
|
+
* The fold's exchanges with no reply text, the open one last.
|
|
132
|
+
*
|
|
133
|
+
* @param fold - The fold.
|
|
134
|
+
*/
|
|
135
|
+
export declare function textlessOf(fold: TextlessFold): TextlessExchange[];
|
|
136
|
+
/**
|
|
137
|
+
* Whether two lists name the same exchanges, turns and states.
|
|
138
|
+
*
|
|
139
|
+
* @param a - One list.
|
|
140
|
+
* @param b - The other.
|
|
141
|
+
*/
|
|
142
|
+
export declare function sameTextless(a: readonly TextlessExchange[], b: readonly TextlessExchange[]): boolean;
|
|
65
143
|
/** Container widths where a view's stored height changes, in CSS pixels. */
|
|
66
144
|
export declare const VIEW_WIDTH_STEPS: readonly [480, 720, 960];
|
|
67
145
|
/**
|