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.
Files changed (320) hide show
  1. package/dist/adapters/browser-keybindings-host.js +3 -1
  2. package/dist/adapters/live.d.ts +6 -0
  3. package/dist/adapters/live.js +16 -8
  4. package/dist/adapters/server-composer-host.js +22 -9
  5. package/dist/adapters/server-host.js +143 -18
  6. package/dist/adapters/server-media.d.ts +9 -1
  7. package/dist/adapters/server-media.js +14 -1
  8. package/dist/adapters/server-settings-host.js +30 -3
  9. package/dist/adapters/server-settings-sections.js +23 -1
  10. package/dist/adapters/server-sidebar-host.d.ts +3 -1
  11. package/dist/adapters/server-sidebar-host.js +10 -1
  12. package/dist/app/ModalProvider.js +1 -1
  13. package/dist/approvals/ApprovalShell.js +1 -1
  14. package/dist/chat/DaemonOrb.d.ts +29 -1
  15. package/dist/chat/DaemonOrb.js +25 -12
  16. package/dist/chat/HostTranscript.d.ts +0 -12
  17. package/dist/chat/HostTranscript.js +6 -1
  18. package/dist/chat/SessionStreamsProvider.d.ts +8 -0
  19. package/dist/chat/SessionStreamsProvider.js +11 -2
  20. package/dist/chat/StatusDot.js +8 -2
  21. package/dist/chat/Transcript.d.ts +20 -11
  22. package/dist/chat/Transcript.js +335 -162
  23. package/dist/chat/composer/ComposerEditor.js +1 -1
  24. package/dist/chat/headless/host.d.ts +43 -7
  25. package/dist/chat/headless/index.d.ts +8 -6
  26. package/dist/chat/headless/index.js +11 -9
  27. package/dist/chat/headless/labels.d.ts +30 -0
  28. package/dist/chat/headless/labels.js +29 -0
  29. package/dist/chat/headless/markdown-chunks.d.ts +2 -1
  30. package/dist/chat/headless/markdown-chunks.js +12 -20
  31. package/dist/chat/headless/markdown-scan.d.ts +66 -0
  32. package/dist/chat/headless/markdown-scan.js +124 -0
  33. package/dist/chat/headless/markdown-stream.d.ts +64 -0
  34. package/dist/chat/headless/markdown-stream.js +143 -0
  35. package/dist/chat/headless/output-pager.d.ts +68 -0
  36. package/dist/chat/headless/output-pager.js +113 -0
  37. package/dist/chat/headless/session-list.d.ts +20 -0
  38. package/dist/chat/headless/sidebar/activity.d.ts +14 -0
  39. package/dist/chat/headless/sidebar/activity.js +32 -0
  40. package/dist/chat/headless/sidebar/directory.d.ts +17 -2
  41. package/dist/chat/headless/sidebar/directory.js +50 -54
  42. package/dist/chat/headless/sidebar/environment.d.ts +5 -2
  43. package/dist/chat/headless/sidebar/environment.js +11 -2
  44. package/dist/chat/headless/sidebar/host.d.ts +15 -0
  45. package/dist/chat/headless/sidebar/inbox.d.ts +12 -3
  46. package/dist/chat/headless/sidebar/inbox.js +18 -9
  47. package/dist/chat/headless/sidebar/index.d.ts +2 -2
  48. package/dist/chat/headless/sidebar/index.js +2 -2
  49. package/dist/chat/headless/sidebar/labels.d.ts +38 -2
  50. package/dist/chat/headless/sidebar/labels.js +16 -0
  51. package/dist/chat/headless/sidebar/prewarm.d.ts +68 -0
  52. package/dist/chat/headless/sidebar/prewarm.js +114 -0
  53. package/dist/chat/headless/streams/actions.d.ts +2 -0
  54. package/dist/chat/headless/streams/actions.js +1 -0
  55. package/dist/chat/headless/streams/event-bytes.d.ts +6 -0
  56. package/dist/chat/headless/streams/event-bytes.js +34 -0
  57. package/dist/chat/headless/streams/live-events.d.ts +25 -1
  58. package/dist/chat/headless/streams/live-events.js +53 -2
  59. package/dist/chat/headless/streams/selectors.d.ts +3 -0
  60. package/dist/chat/headless/streams/selectors.js +8 -1
  61. package/dist/chat/headless/streams/session-streams.d.ts +15 -3
  62. package/dist/chat/headless/streams/session-streams.js +31 -3
  63. package/dist/chat/headless/streams/store.d.ts +24 -1
  64. package/dist/chat/headless/streams/store.js +51 -26
  65. package/dist/chat/headless/streams/transcript-map.d.ts +57 -0
  66. package/dist/chat/headless/streams/transcript-map.js +88 -0
  67. package/dist/chat/headless/streams/transcript.d.ts +4 -2
  68. package/dist/chat/headless/streams/transcript.js +19 -7
  69. package/dist/chat/headless/transcript/batch.js +5 -1
  70. package/dist/chat/headless/transcript/blob-media.d.ts +15 -0
  71. package/dist/chat/headless/transcript/blob-media.js +23 -0
  72. package/dist/chat/headless/transcript/collapse.d.ts +10 -0
  73. package/dist/chat/headless/transcript/collapse.js +32 -6
  74. package/dist/chat/headless/transcript/derive.d.ts +98 -0
  75. package/dist/chat/headless/transcript/derive.js +89 -0
  76. package/dist/chat/headless/transcript/exchange-media.d.ts +3 -1
  77. package/dist/chat/headless/transcript/exchange-media.js +8 -5
  78. package/dist/chat/headless/transcript/fold-actions.d.ts +8 -3
  79. package/dist/chat/headless/transcript/fold-actions.js +16 -0
  80. package/dist/chat/headless/transcript/fold-attachments.d.ts +2 -0
  81. package/dist/chat/headless/transcript/fold-attachments.js +3 -2
  82. package/dist/chat/headless/transcript/fold.d.ts +4 -2
  83. package/dist/chat/headless/transcript/fold.js +37 -7
  84. package/dist/chat/headless/transcript/incremental.d.ts +53 -0
  85. package/dist/chat/headless/transcript/incremental.js +181 -0
  86. package/dist/chat/headless/transcript/index.d.ts +2 -1
  87. package/dist/chat/headless/transcript/index.js +2 -1
  88. package/dist/chat/headless/transcript/nesting.js +2 -1
  89. package/dist/chat/headless/transcript/rail.d.ts +142 -0
  90. package/dist/chat/headless/transcript/rail.js +290 -0
  91. package/dist/chat/headless/transcript/rows.d.ts +11 -1
  92. package/dist/chat/headless/transcript/run-failures.d.ts +4 -0
  93. package/dist/chat/headless/transcript/run-failures.js +31 -2
  94. package/dist/chat/headless/transcript/seams.d.ts +78 -0
  95. package/dist/chat/headless/transcript/seams.js +116 -0
  96. package/dist/chat/headless/transcript/tool-media.d.ts +6 -7
  97. package/dist/chat/headless/transcript/tool-media.js +27 -9
  98. package/dist/chat/headless/transcript-labels.d.ts +1 -0
  99. package/dist/chat/headless/turn-labels.d.ts +1 -0
  100. package/dist/chat/headless/turn-labels.js +2 -1
  101. package/dist/chat/index.d.ts +10 -8
  102. package/dist/chat/index.js +9 -7
  103. package/dist/chat/interactions/ElicitationCard.js +1 -1
  104. package/dist/chat/interactions/InteractionCard.js +1 -1
  105. package/dist/chat/interactions/PlanCard.js +3 -3
  106. package/dist/chat/interactions/QuestionField.js +4 -4
  107. package/dist/chat/interactions/QuestionForm.js +3 -3
  108. package/dist/chat/interactions/SecretInput.js +1 -1
  109. package/dist/chat/sidebar/ProjectIcon.d.ts +1 -1
  110. package/dist/chat/sidebar/ProjectIcon.js +1 -1
  111. package/dist/chat/sidebar/RowChips.d.ts +3 -2
  112. package/dist/chat/sidebar/RowChips.js +6 -3
  113. package/dist/chat/sidebar/SessionSidebar.js +13 -14
  114. package/dist/chat/sidebar/SidebarFooter.d.ts +8 -5
  115. package/dist/chat/sidebar/SidebarFooter.js +6 -6
  116. package/dist/chat/sidebar/SidebarFrame.d.ts +2 -0
  117. package/dist/chat/sidebar/SidebarFrame.js +5 -2
  118. package/dist/chat/sidebar/SidebarSessionRow.d.ts +3 -1
  119. package/dist/chat/sidebar/SidebarSessionRow.js +3 -1
  120. package/dist/chat/sidebar/SpacesSection.d.ts +20 -1
  121. package/dist/chat/sidebar/SpacesSection.js +34 -13
  122. package/dist/chat/sidebar/index.d.ts +2 -2
  123. package/dist/chat/sidebar/session-menu.d.ts +11 -2
  124. package/dist/chat/sidebar/session-menu.js +50 -5
  125. package/dist/chat/sidebar/sidebar-live.js +1 -1
  126. package/dist/chat/sidebar/useInboxRows.js +43 -2
  127. package/dist/chat/sidebar/useInboxTriage.js +19 -14
  128. package/dist/chat/testing/contract.d.ts +5 -3
  129. package/dist/chat/testing/contract.js +66 -1
  130. package/dist/chat/testing/fixture-sidebar-host.d.ts +7 -1
  131. package/dist/chat/testing/fixture-sidebar-host.js +12 -0
  132. package/dist/chat/testing/sidebar.contract.d.ts +6 -0
  133. package/dist/chat/testing/sidebar.contract.js +24 -0
  134. package/dist/chat/transcript/DiffLines.d.ts +6 -1
  135. package/dist/chat/transcript/DiffLines.js +35 -20
  136. package/dist/chat/transcript/EditDiffBlock.d.ts +5 -1
  137. package/dist/chat/transcript/EditDiffBlock.js +89 -30
  138. package/dist/chat/transcript/InteractionToolBody.js +1 -1
  139. package/dist/chat/transcript/LazyRow.d.ts +40 -40
  140. package/dist/chat/transcript/LazyRow.js +101 -149
  141. package/dist/chat/transcript/MermaidDiagram.js +2 -1
  142. package/dist/chat/transcript/SelectCursor.d.ts +11 -1
  143. package/dist/chat/transcript/SelectCursor.js +10 -5
  144. package/dist/chat/transcript/SubagentBlock.js +3 -2
  145. package/dist/chat/transcript/TranscriptRail.d.ts +109 -0
  146. package/dist/chat/transcript/TranscriptRail.js +579 -0
  147. package/dist/chat/transcript/TranscriptRow.d.ts +4 -7
  148. package/dist/chat/transcript/TranscriptRow.js +9 -5
  149. package/dist/chat/transcript/actions.d.ts +43 -3
  150. package/dist/chat/transcript/actions.js +27 -1
  151. package/dist/chat/transcript/clipped-output.d.ts +58 -0
  152. package/dist/chat/transcript/clipped-output.js +131 -0
  153. package/dist/chat/transcript/fold-attachments.js +10 -5
  154. package/dist/chat/transcript/fold-worker.js +3 -2
  155. package/dist/chat/transcript/fold.js +21 -2
  156. package/dist/chat/transcript/index.d.ts +11 -9
  157. package/dist/chat/transcript/index.js +10 -8
  158. package/dist/chat/transcript/markdown-cache.d.ts +7 -1
  159. package/dist/chat/transcript/markdown-cache.js +12 -1
  160. package/dist/chat/transcript/markdown.js +116 -54
  161. package/dist/chat/transcript/media-gallery.d.ts +3 -2
  162. package/dist/chat/transcript/media-gallery.js +10 -7
  163. package/dist/chat/transcript/notices.d.ts +23 -1
  164. package/dist/chat/transcript/notices.js +110 -28
  165. package/dist/chat/transcript/prompt.js +6 -4
  166. package/dist/chat/transcript/prose.js +3 -1
  167. package/dist/chat/transcript/receipt-parts.d.ts +22 -0
  168. package/dist/chat/transcript/receipt-parts.js +87 -0
  169. package/dist/chat/transcript/root-items.d.ts +96 -0
  170. package/dist/chat/transcript/root-items.js +180 -0
  171. package/dist/chat/transcript/row-mount.d.ts +165 -0
  172. package/dist/chat/transcript/row-mount.js +498 -0
  173. package/dist/chat/transcript/row-parking.d.ts +125 -0
  174. package/dist/chat/transcript/row-parking.js +135 -0
  175. package/dist/chat/transcript/row-ui-state.d.ts +37 -0
  176. package/dist/chat/transcript/row-ui-state.js +53 -0
  177. package/dist/chat/transcript/run-rows.js +6 -78
  178. package/dist/chat/transcript/script-input.d.ts +1 -1
  179. package/dist/chat/transcript/scroll-clamp.js +1 -1
  180. package/dist/chat/transcript/tasks.js +3 -2
  181. package/dist/chat/transcript/tool-media.d.ts +4 -2
  182. package/dist/chat/transcript/tool-media.js +15 -7
  183. package/dist/chat/transcript/tool-parts.d.ts +27 -4
  184. package/dist/chat/transcript/tool-parts.js +31 -5
  185. package/dist/chat/transcript/tool-payload.js +26 -11
  186. package/dist/chat/transcript/tool-row.d.ts +2 -1
  187. package/dist/chat/transcript/tool-row.js +38 -19
  188. package/dist/chat/transcript/use-transcript-rows.d.ts +24 -7
  189. package/dist/chat/transcript/use-transcript-rows.js +28 -46
  190. package/dist/chat/transcript/useSettledReveal.js +15 -3
  191. package/dist/chat/transcript/useStickToBottom.js +4 -4
  192. package/dist/chat/transcript/useTranscriptSearch.js +30 -14
  193. package/dist/chat/transcript/view-scope.d.ts +26 -6
  194. package/dist/chat/transcript/view-scope.js +106 -20
  195. package/dist/components/ChoiceCards.js +1 -1
  196. package/dist/components/ConfirmDialog.js +1 -1
  197. package/dist/components/CopyValue.d.ts +33 -0
  198. package/dist/components/CopyValue.js +54 -0
  199. package/dist/components/Form.js +1 -1
  200. package/dist/components/HowItWorks.js +1 -1
  201. package/dist/components/Menu.js +1 -1
  202. package/dist/components/StepFrame.js +2 -2
  203. package/dist/components/SwatchPicker.js +1 -1
  204. package/dist/components/ToggleCard.js +1 -1
  205. package/dist/components/floating/HoverCard.js +2 -3
  206. package/dist/components/floating/hover-delay.d.ts +4 -0
  207. package/dist/components/floating/hover-delay.js +6 -0
  208. package/dist/core.css +14 -12
  209. package/dist/dist/{index-Betz0OWq.d.ts → index-C6-t1SS9.d.ts} +21 -2
  210. package/dist/dist/index-De9AbmxS.d.ts +1 -0
  211. package/dist/dist/index.d.ts +5 -5
  212. package/dist/dist/sandbox-CSUihARm.d.ts +2 -0
  213. package/dist/dist/{timeout-CyU7HLyz.d.ts → timeout-CmTx6V9y.d.ts} +1 -0
  214. package/dist/extensions/ExtensionDialogHost.js +1 -1
  215. package/dist/files/TreeColumn.js +3 -1
  216. package/dist/files/headless/host.d.ts +2 -2
  217. package/dist/git/ImportRepoDialog.js +1 -1
  218. package/dist/git/MoveSessionDialog.js +2 -2
  219. package/dist/git/SandboxManager.d.ts +42 -0
  220. package/dist/git/SandboxManager.js +297 -0
  221. package/dist/git/SyncChip.js +1 -1
  222. package/dist/git/headless/index.d.ts +2 -1
  223. package/dist/git/headless/index.js +2 -1
  224. package/dist/git/headless/labels.d.ts +29 -0
  225. package/dist/git/headless/labels.js +34 -1
  226. package/dist/git/headless/sandboxes.d.ts +43 -0
  227. package/dist/git/headless/sandboxes.js +52 -0
  228. package/dist/git/index.d.ts +2 -1
  229. package/dist/git/index.js +2 -1
  230. package/dist/index.d.ts +2 -1
  231. package/dist/index.js +2 -1
  232. package/dist/keybindings/headless/catalog.d.ts +1 -1
  233. package/dist/keybindings/headless/catalog.js +12 -0
  234. package/dist/machines/HostsSection.d.ts +1 -1
  235. package/dist/machines/headless/labels.js +2 -2
  236. package/dist/motion/flip-list.js +3 -10
  237. package/dist/motion/presence.d.ts +10 -0
  238. package/dist/motion/presence.js +20 -1
  239. package/dist/motion/swap.d.ts +8 -2
  240. package/dist/motion/swap.js +5 -2
  241. package/dist/onboarding/conversation.js +27 -15
  242. package/dist/onboarding/demos/how-it-works.js +1 -1
  243. package/dist/onboarding/skills/parts.js +4 -4
  244. package/dist/onboarding/sources/SourceBrowser.js +1 -1
  245. package/dist/onboarding/steps/ReadyStep.js +1 -1
  246. package/dist/onboarding/steps/connect/KeyForm.js +1 -1
  247. package/dist/palette/headless/app-sources.js +20 -0
  248. package/dist/palette/headless/labels.js +2 -0
  249. package/dist/session/PlanTracker.js +3 -3
  250. package/dist/session/SecretsPanel.js +1 -1
  251. package/dist/session/SessionHeader.d.ts +18 -6
  252. package/dist/session/SessionHeader.js +68 -12
  253. package/dist/session/SessionPlaceMenu.d.ts +35 -0
  254. package/dist/session/SessionPlaceMenu.js +299 -0
  255. package/dist/session/SessionShell.js +1 -1
  256. package/dist/session/TurnDetailsDialog.js +1 -1
  257. package/dist/session/headless/index.d.ts +2 -1
  258. package/dist/session/headless/index.js +2 -1
  259. package/dist/session/headless/labels.d.ts +73 -0
  260. package/dist/session/headless/labels.js +73 -0
  261. package/dist/session/headless/place.d.ts +49 -0
  262. package/dist/session/headless/place.js +57 -0
  263. package/dist/session/index.d.ts +2 -1
  264. package/dist/session/index.js +2 -1
  265. package/dist/settings/ConversationPresetsCard.js +1 -1
  266. package/dist/settings/SettingCard.js +2 -2
  267. package/dist/settings/SettingsRowsPage.js +1 -1
  268. package/dist/settings/headless/fixture-performance.js +4 -2
  269. package/dist/settings/headless/fixture-sections.js +7 -0
  270. package/dist/settings/headless/labels.d.ts +1 -1
  271. package/dist/settings/headless/labels.js +1 -1
  272. package/dist/settings/headless/layout.d.ts +4 -4
  273. package/dist/settings/headless/layout.js +1 -1
  274. package/dist/settings/headless/performance.d.ts +4 -0
  275. package/dist/settings/headless/search.d.ts +2 -2
  276. package/dist/settings/headless/sections-host.d.ts +20 -2
  277. package/dist/settings/sections/claude-import/ClaudeImportDialog.js +1 -1
  278. package/dist/settings/sections/enabled-list/EnabledListSection.js +2 -2
  279. package/dist/settings/sections/environments/EnvironmentsSection.d.ts +9 -3
  280. package/dist/settings/sections/environments/EnvironmentsSection.js +292 -52
  281. package/dist/settings/sections/environments/labels.d.ts +15 -0
  282. package/dist/settings/sections/environments/labels.js +18 -3
  283. package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
  284. package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
  285. package/dist/settings/sections/extensions/ExtensionsSection.d.ts +3 -2
  286. package/dist/settings/sections/extensions/ExtensionsSection.js +9 -3
  287. package/dist/settings/sections/host-catalog/HostCatalogSection.js +15 -5
  288. package/dist/settings/sections/keybindings/labels.d.ts +2 -0
  289. package/dist/settings/sections/keybindings/labels.js +2 -0
  290. package/dist/settings/sections/keybindings/rows.js +8 -0
  291. package/dist/settings/sections/models/SpacesDefaultsSection.d.ts +7 -3
  292. package/dist/settings/sections/models/SpacesDefaultsSection.js +11 -5
  293. package/dist/settings/sections/performance/PerformanceSection.js +8 -1
  294. package/dist/settings/sections/performance/labels.d.ts +2 -0
  295. package/dist/settings/sections/performance/labels.js +2 -0
  296. package/dist/settings/sections/skills/SkillGroups.js +1 -1
  297. package/dist/settings/server-app.d.ts +4 -2
  298. package/dist/settings/server-app.js +7 -3
  299. package/dist/settings/testing/sections.contract.d.ts +7 -1
  300. package/dist/settings/testing/sections.contract.js +37 -0
  301. package/dist/styles.css +243 -19
  302. package/dist/terminal/TerminalDrawer.js +3 -1
  303. package/dist/views/headless/answers.d.ts +8 -2
  304. package/dist/views/headless/answers.js +58 -1
  305. package/dist/views/headless/placement.d.ts +78 -0
  306. package/dist/views/headless/placement.js +154 -44
  307. package/dist/workspace/SidePanel.js +3 -1
  308. package/package.json +2 -2
  309. package/src/styles/base.css +13 -0
  310. package/src/styles/chat.css +30 -0
  311. package/src/styles/components.css +0 -10
  312. package/src/styles/files.css +5 -0
  313. package/src/styles/sidebar.css +29 -7
  314. package/src/styles/terminal.css +6 -0
  315. package/src/styles/tokens.css +5 -0
  316. package/src/styles/transcript.css +138 -0
  317. package/src/styles/workspace.css +6 -0
  318. package/dist/dist/index-QcFzZlao.d.ts +0 -1
  319. package/dist/dist/sandbox-D0zsW8I1.d.ts +0 -2
  320. /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 › Accounts › Hosts: This computer and the saved zidane-servers,
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 › Accounts › 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 › Accounts › Hosts.`,
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.`,
@@ -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 seen = /* @__PURE__ */ new WeakSet();
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 (seen.has(node)) continue;
141
- seen.add(node);
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
@@ -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 };
@@ -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. */
@@ -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
- /** The sample conversation, with the chart and the notes its prompt attaches, and a diagram in its answer. */
29
- const SAMPLE = withAnswerDiagram(withPreviewAttachments(ONBOARDING_PREVIEW_EVENTS));
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: "overflow-y-auto p-3",
73
- style: { maxHeight },
74
- children: /* @__PURE__ */ jsx(Transcript, {
75
- events: SAMPLE,
76
- streaming: false,
77
- sessionId,
78
- options
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)] text-pretty",
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-chat-circle-dots-fill",
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)] text-pretty line-clamp-2",
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)] text-pretty line-clamp-2",
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)] text-pretty",
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)] text-pretty line-clamp-2",
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)] text-pretty",
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)] text-pretty",
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)] text-pretty",
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)] zg-pretty",
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)] zg-pretty",
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 zg-pretty",
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)] zg-pretty",
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 folder chip (plus the server chip for a server
3
- * session), the title (a click opens the details; renamable in place) and
4
- * the app's toolbar on the right. Right-click on the folder or the title
5
- * opens the app's actions menu (`menuItems`); its Rename sets `renaming`.
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 { CSSProperties, ReactNode } from "react";
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;