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
@@ -14,9 +14,12 @@
14
14
  */
15
15
  import { SettingsMcpHost } from "../../settings/headless/mcp.js";
16
16
  import { SettingsProvidersHost } from "../../settings/headless/providers.js";
17
+ import { ChatAttachment } from "../headless/host.js";
18
+ import { ToolOutputRange } from "../headless/output-pager.js";
17
19
  import { AuthSettingsTarget } from "../headless/transcript/auth-failure.js";
18
20
  import { ReactNode } from "react";
19
- import { ModelNamer } from "zidane/chat/pure";
21
+ import { ModelNamer, ToolCallDetail } from "zidane/chat/pure";
22
+ import { ToolResultSlice } from "zidane/chat";
20
23
  /**
21
24
  * The accounts of the host that holds a session's credentials, for the card
22
25
  * a run stopped by a failed sign-in shows (`AuthFailureCard`). Each member is
@@ -45,10 +48,18 @@ export interface TranscriptActions {
45
48
  sessionId: string | null;
46
49
  /** The whole text of a tool result that was clipped for transport (`ChatHost.toolOutput`). `turnId`: the call's turn, a hint where to look first. */
47
50
  toolOutput?: (callId: string, turnId?: string) => Promise<string | null>;
51
+ /** One range of a clipped tool result (`ChatHost.toolOutputRange`): with it, "Load full output" pages through the result instead of reading it whole. */
52
+ toolOutputRange?: (callId: string, range: ToolOutputRange, turnId?: string) => Promise<ToolResultSlice | null>;
53
+ /** The whole of a tool call whose row went out lean: its input, every hunk of its edit (`ChatHost.toolCall`). `turnId`: the call's turn, a hint where to look first. */
54
+ toolCall?: (callId: string, turnId?: string) => Promise<ToolCallDetail | null>;
48
55
  /** Stops a running call (`ChatHost.cancelTool`). */
49
56
  cancelTool?: (callId: string) => void;
50
- /** Sets the session's failed environment up again. Without it a failed setup step offers no Retry. */
51
- retryEnvironment?: () => void;
57
+ /**
58
+ * Sets the session's failed environment up again (or reconnects it). Without it a failed setup step
59
+ * offers no Retry. A promise that settles once the host took the request lets a row send what waited
60
+ * for the repair after it.
61
+ */
62
+ retryEnvironment?: () => void | Promise<void>;
52
63
  /** Shows another session, named by its id (a worker a tool call addresses). */
53
64
  openSession?: (sessionId: string) => void;
54
65
  /** Sends a prompt as the user's next message. */
@@ -59,6 +70,13 @@ export interface TranscriptActions {
59
70
  * inline instead of `[image: …]` stand-ins.
60
71
  */
61
72
  toolMediaUrl?: (callId: string, index: number) => string;
73
+ /**
74
+ * The address of a medium the session store holds by content hash (a prompt's attachment, a tool result's media
75
+ * block held as `attachment://<hash>`). The same bytes for good: a page caches it for good. With it, such media
76
+ * load by hash; media still inline in their turn keep `toolMediaUrl` (and a prompt's own preview). `name` only ends
77
+ * the address. `undefined`: not served now (the older address stands).
78
+ */
79
+ blobMediaUrl?: (hash: string, name?: string) => string | undefined;
62
80
  /**
63
81
  * Where a message's media loads from (`![alt](src)` in a reply or a
64
82
  * prompt): `src` as written, or the app's address for a local file;
@@ -111,5 +129,27 @@ export interface TranscriptActionsProviderProps {
111
129
  export declare function TranscriptActionsProvider({ value, children }: TranscriptActionsProviderProps): import("react").JSX.Element;
112
130
  /** Returns the {@link TranscriptActions} from the nearest {@link TranscriptActionsProvider}. Without one it returns an object with no session and no actions. */
113
131
  export declare function useTranscriptActions(): TranscriptActions;
132
+ /**
133
+ * Where a prompt's attachment loads from: its own preview (`dataUrl`), else its blob's address when the store holds
134
+ * it by hash and the app serves blobs.
135
+ *
136
+ * @param actions - The transcript's actions.
137
+ * @param att - The attachment.
138
+ */
139
+ export declare function attachmentSrcOf(actions: Pick<TranscriptActions, 'blobMediaUrl'>, att: ChatAttachment): string | undefined;
140
+ /**
141
+ * Where a tool result's `index`-th media block loads from: by hash when the store holds it so and the app serves
142
+ * blobs, else by its call and position (`toolMediaUrl`); `undefined` when the app serves neither.
143
+ *
144
+ * @param actions - The transcript's actions.
145
+ * @param callId - The call that returned it.
146
+ * @param item - The block's position, and its hash when held by one.
147
+ * @param item.index - Its position among the result's media blocks.
148
+ * @param item.hash - Its blob hash, when held by one.
149
+ */
150
+ export declare function toolMediaSrcOf(actions: Pick<TranscriptActions, 'toolMediaUrl' | 'blobMediaUrl'>, callId: string, item: {
151
+ index: number;
152
+ hash?: string;
153
+ }): string | undefined;
114
154
  /** How the transcript names a model: the app's `modelName`, else from the id. */
115
155
  export declare function useModelName(): ModelNamer;
@@ -1,3 +1,4 @@
1
+ import { blobHashOf } from "../headless/transcript/blob-media.js";
1
2
  import { createContext, useContext } from "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { nameFromModelId } from "zidane/chat/pure";
@@ -18,8 +19,33 @@ function TranscriptActionsProvider({ value, children }) {
18
19
  function useTranscriptActions() {
19
20
  return useContext(TranscriptActionsContext);
20
21
  }
22
+ /**
23
+ * Where a prompt's attachment loads from: its own preview (`dataUrl`), else its blob's address when the store holds
24
+ * it by hash and the app serves blobs.
25
+ *
26
+ * @param actions - The transcript's actions.
27
+ * @param att - The attachment.
28
+ */
29
+ function attachmentSrcOf(actions, att) {
30
+ if (att.dataUrl !== void 0) return att.dataUrl;
31
+ const hash = blobHashOf(att.ref);
32
+ return hash && actions.blobMediaUrl ? actions.blobMediaUrl(hash, att.name) : void 0;
33
+ }
34
+ /**
35
+ * Where a tool result's `index`-th media block loads from: by hash when the store holds it so and the app serves
36
+ * blobs, else by its call and position (`toolMediaUrl`); `undefined` when the app serves neither.
37
+ *
38
+ * @param actions - The transcript's actions.
39
+ * @param callId - The call that returned it.
40
+ * @param item - The block's position, and its hash when held by one.
41
+ * @param item.index - Its position among the result's media blocks.
42
+ * @param item.hash - Its blob hash, when held by one.
43
+ */
44
+ function toolMediaSrcOf(actions, callId, item) {
45
+ return (item.hash ? actions.blobMediaUrl?.(item.hash) : void 0) ?? actions.toolMediaUrl?.(callId, item.index);
46
+ }
21
47
  /** How the transcript names a model: the app's `modelName`, else from the id. */
22
48
  function useModelName() {
23
49
  return useContext(TranscriptActionsContext).modelName ?? nameFromModelId;
24
50
  }
25
- export { TranscriptActionsProvider, useModelName, useTranscriptActions };
51
+ export { TranscriptActionsProvider, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions };
@@ -0,0 +1,58 @@
1
+ /**
2
+ * The rest of a tool result the host clipped for the wire. With
3
+ * `TranscriptActions.toolOutputRange` it pages: "Load full output" reads the
4
+ * first page (`TOOL_OUTPUT_PAGE_SIZE`), which replaces the clipped preview,
5
+ * then "Load more" and "Load all" read on, under a line that says how much is
6
+ * loaded. With `toolOutput` only, it reads the whole text in one go.
7
+ * Internal to the transcript: the tool rows use it.
8
+ */
9
+ import { ToolOutputPagerState } from "../headless/output-pager.js";
10
+ import { ToolRowModel } from "../headless/transcript/rows.js";
11
+ import "../headless/transcript/index.js";
12
+ import { CSSProperties } from "react";
13
+ /** A clipped result's loaded text and the way to load more, from {@link useClippedOutput}. */
14
+ export interface ClippedOutput {
15
+ /** The text that replaces the clipped preview; `null` while none is loaded. */
16
+ text: string | null;
17
+ /** The app can load the result: without it the row offers no control. */
18
+ available: boolean;
19
+ /** The call can be addressed (a session and a call id). */
20
+ ready: boolean;
21
+ /** The pages loaded, when the app reads ranges; `null` when it reads the whole text. */
22
+ paged: (ToolOutputPagerState & {
23
+ /** The read in flight, as the user asked it. */
24
+ running: 'more' | 'all' | null;
25
+ /** Reads the next page (`more`) or the rest (`all`). */
26
+ run: (what: 'more' | 'all') => void;
27
+ /** Runs the last read again, from where it stopped. */
28
+ retry: () => void;
29
+ }) | null;
30
+ /** Reads the whole text in one go (an app without ranges), and its state. */
31
+ whole: {
32
+ full: string | 'loading' | null;
33
+ load: () => void;
34
+ };
35
+ }
36
+ /**
37
+ * The rest of a clipped result, read through the transcript's actions: paged
38
+ * with `toolOutputRange`, whole with `toolOutput` only.
39
+ *
40
+ * @param tool - The clipped tool row. Its `callId` (and `turnId`, a hint) address the result.
41
+ */
42
+ export declare function useClippedOutput(tool: ToolRowModel): ClippedOutput;
43
+ /** Props for {@link ClippedOutputControls}. */
44
+ export interface ClippedOutputControlsProps {
45
+ /** The result's state, from {@link useClippedOutput}. */
46
+ output: ClippedOutput;
47
+ /** Extra classes on the root element. */
48
+ className?: string;
49
+ /** Inline styles on the root element. */
50
+ style?: CSSProperties;
51
+ }
52
+ /**
53
+ * "Load full output" over a clipped result; once a page shows, how much is
54
+ * loaded with "Load more" and "Load all", and a failed read with Retry.
55
+ *
56
+ * @param props - The result's state, `className` and `style`.
57
+ */
58
+ export declare function ClippedOutputControls({ output, className, style }: ClippedOutputControlsProps): import("react").JSX.Element | null;
@@ -0,0 +1,131 @@
1
+ import { LoadError } from "../../components/LoadError.js";
2
+ import { createToolOutputPager, toolOutputPagerDone } from "../headless/output-pager.js";
3
+ import { constant, useReadable } from "../headless/store.js";
4
+ import { useChatLabels } from "../useChatLabels.js";
5
+ import { useTranscriptActions } from "./actions.js";
6
+ import { LoadFullOutputButton, useFullOutput } from "./tool-parts.js";
7
+ import { useMemo, useState } from "react";
8
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
+ import { formatBytes } from "zidane/chat/pure";
10
+ // src/chat/transcript/clipped-output.tsx
11
+ const IDLE = constant({
12
+ text: "",
13
+ total: null,
14
+ missing: false,
15
+ loading: false,
16
+ error: null
17
+ });
18
+ /**
19
+ * The rest of a clipped result, read through the transcript's actions: paged
20
+ * with `toolOutputRange`, whole with `toolOutput` only.
21
+ *
22
+ * @param tool - The clipped tool row. Its `callId` (and `turnId`, a hint) address the result.
23
+ */
24
+ function useClippedOutput(tool) {
25
+ const { sessionId, toolOutputRange } = useTranscriptActions();
26
+ const whole = useFullOutput(tool);
27
+ const { callId, turnId, resultClipped } = tool;
28
+ const pager = useMemo(() => toolOutputRange && sessionId && callId && resultClipped ? createToolOutputPager((range) => toolOutputRange(callId, range, turnId)) : null, [
29
+ toolOutputRange,
30
+ sessionId,
31
+ callId,
32
+ turnId,
33
+ resultClipped
34
+ ]);
35
+ const state = useReadable(pager ?? IDLE);
36
+ const [running, setRunning] = useState(null);
37
+ const [last, setLast] = useState("more");
38
+ if (!pager) return {
39
+ text: typeof whole.full === "string" ? whole.full : null,
40
+ available: whole.available,
41
+ ready: whole.ready,
42
+ paged: null,
43
+ whole: {
44
+ full: whole.full,
45
+ load: whole.load
46
+ }
47
+ };
48
+ const run = (what) => {
49
+ setRunning(what);
50
+ setLast(what);
51
+ (what === "all" ? pager.loadAll() : pager.loadMore()).finally(() => setRunning(null));
52
+ };
53
+ return {
54
+ text: state.total !== null && !state.missing ? state.text : null,
55
+ available: true,
56
+ ready: true,
57
+ paged: {
58
+ ...state,
59
+ running: state.loading ? running : null,
60
+ run,
61
+ retry: () => run(last)
62
+ },
63
+ whole: {
64
+ full: whole.full,
65
+ load: whole.load
66
+ }
67
+ };
68
+ }
69
+ /**
70
+ * "Load full output" over a clipped result; once a page shows, how much is
71
+ * loaded with "Load more" and "Load all", and a failed read with Retry.
72
+ *
73
+ * @param props - The result's state, `className` and `style`.
74
+ */
75
+ function ClippedOutputControls({ output, className = "", style }) {
76
+ const labels = useChatLabels();
77
+ const { paged, whole } = output;
78
+ if (!output.available) return null;
79
+ if (!paged) {
80
+ if (typeof whole.full === "string") return null;
81
+ return /* @__PURE__ */ jsx(LoadFullOutputButton, {
82
+ loading: whole.full === "loading",
83
+ disabled: !output.ready,
84
+ onClick: whole.load,
85
+ className,
86
+ ...style ? { style } : {}
87
+ });
88
+ }
89
+ if (paged.missing || toolOutputPagerDone(paged) && paged.error === null) return null;
90
+ const failed = paged.error !== null && /* @__PURE__ */ jsx(LoadError, {
91
+ detail: paged.error,
92
+ onRetry: paged.retry,
93
+ children: labels.outputLoadFailed
94
+ });
95
+ if (paged.total === null) return /* @__PURE__ */ jsxs("div", {
96
+ className: `flex flex-col items-start gap-1.5 ${className}`,
97
+ style,
98
+ children: [/* @__PURE__ */ jsx(LoadFullOutputButton, {
99
+ loading: paged.loading,
100
+ disabled: false,
101
+ onClick: () => paged.run("more"),
102
+ className: ""
103
+ }), failed]
104
+ });
105
+ return /* @__PURE__ */ jsxs("div", {
106
+ className: `flex flex-col items-start gap-1.5 ${className}`,
107
+ style,
108
+ children: [/* @__PURE__ */ jsxs("div", {
109
+ className: "flex flex-wrap items-baseline gap-3",
110
+ children: [/* @__PURE__ */ jsx("span", {
111
+ className: "zg-meta",
112
+ children: labels.outputLoaded(formatBytes(paged.text.length), formatBytes(paged.total))
113
+ }), !toolOutputPagerDone(paged) && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(LoadFullOutputButton, {
114
+ loading: paged.running === "more",
115
+ disabled: paged.loading,
116
+ onClick: () => paged.run("more"),
117
+ className: "",
118
+ label: labels.loadMoreOutput,
119
+ loadingLabel: labels.loadingOutput
120
+ }), /* @__PURE__ */ jsx(LoadFullOutputButton, {
121
+ loading: paged.running === "all",
122
+ disabled: paged.loading,
123
+ onClick: () => paged.run("all"),
124
+ className: "",
125
+ label: labels.loadAllOutput,
126
+ loadingLabel: labels.loadingOutput
127
+ })] })]
128
+ }), failed]
129
+ });
130
+ }
131
+ export { ClippedOutputControls, useClippedOutput };
@@ -3,7 +3,7 @@ import { Grow, GrowPresence } from "../../motion/grow.js";
3
3
  import { RollingText } from "../../motion/roll.js";
4
4
  import { mediumKey } from "../headless/transcript/exchange-media.js";
5
5
  import { useChatLabels } from "../useChatLabels.js";
6
- import { useTranscriptActions } from "./actions.js";
6
+ import { toolMediaSrcOf, useTranscriptActions } from "./actions.js";
7
7
  import { useMediaGallery } from "./media-gallery.js";
8
8
  import { useThumbnail } from "./thumbnails.js";
9
9
  import { memo, useMemo, useState } from "react";
@@ -41,7 +41,7 @@ function stripLayout(images) {
41
41
  */
42
42
  const FoldAttachments = memo(({ attachments, className, style }) => {
43
43
  const labels = useChatLabels();
44
- const { toolMediaUrl } = useTranscriptActions();
44
+ const actions = useTranscriptActions();
45
45
  const lightbox = useLightbox();
46
46
  const mediaGallery = useMediaGallery();
47
47
  const [failed, setFailed] = useState(NO_FAILURES);
@@ -49,9 +49,14 @@ const FoldAttachments = memo(({ attachments, className, style }) => {
49
49
  keys: new Set(attachments.map((a) => a.key)),
50
50
  counted: attachments.length > STRIP_SIZE
51
51
  }));
52
- const { tiles, hidden } = useMemo(() => stripLayout(failed.size > 0 ? attachments.filter((a) => !failed.has(a.key)) : attachments), [attachments, failed]);
53
- if (!toolMediaUrl || tiles.length === 0) return null;
54
- const src = (a) => toolMediaUrl(a.callId, a.index);
52
+ const servable = (a) => toolMediaSrcOf(actions, a.callId, a) !== void 0;
53
+ const { tiles, hidden } = useMemo(() => stripLayout(attachments.filter((a) => !failed.has(a.key) && toolMediaSrcOf(actions, a.callId, a) !== void 0)), [
54
+ attachments,
55
+ failed,
56
+ actions
57
+ ]);
58
+ if (tiles.length === 0 || !servable(tiles[0])) return null;
59
+ const src = (a) => toolMediaSrcOf(actions, a.callId, a);
55
60
  const fail = (a) => {
56
61
  mediaGallery?.failed(mediumKey.tool(a.callId, a.index));
57
62
  setFailed((prev) => new Set(prev).add(a.key));
@@ -5,7 +5,8 @@ import { useChatLabels } from "../useChatLabels.js";
5
5
  import { useModelName } from "./actions.js";
6
6
  import { Caret } from "./frame.js";
7
7
  import { useTranscriptRenderers } from "./renderers.js";
8
- import { useMemo, useState } from "react";
8
+ import { useRowPartKey, useRowUiState } from "./row-ui-state.js";
9
+ import { useMemo } from "react";
9
10
  import { jsx, jsxs } from "react/jsx-runtime";
10
11
  // src/chat/transcript/fold-worker.tsx
11
12
  /**
@@ -64,7 +65,7 @@ function TaskStep({ task, model, type, resume, system }) {
64
65
  const labels = useChatLabels();
65
66
  const modelName = useModelName();
66
67
  const { Markdown } = useTranscriptRenderers();
67
- const [open, setOpen] = useState(false);
68
+ const [open, setOpen] = useRowUiState(useRowPartKey("worker-task"), false);
68
69
  const mounted = useStaysMounted(open);
69
70
  const first = task.split("\n").find((line) => line.trim()) ?? "";
70
71
  const settings = [
@@ -11,7 +11,10 @@ import { FoldAttachments } from "./fold-attachments.js";
11
11
  import { FoldStatusTime, useLiveFoldStatus } from "./fold-status.js";
12
12
  import { WorkerDetails } from "./fold-worker.js";
13
13
  import { Caret, Dot, RowFrame } from "./frame.js";
14
+ import { CompactMeta } from "./receipt-parts.js";
14
15
  import { createRecentMap } from "./recent-map.js";
16
+ import { useTranscriptRenderers } from "./renderers.js";
17
+ import { useRowUiState } from "./row-ui-state.js";
15
18
  import { ToolDetails } from "./tool-details.js";
16
19
  import { ToolTiming } from "./tool-parts.js";
17
20
  import { ModelVerdict } from "./tool-row.js";
@@ -55,7 +58,7 @@ const ExchangeFoldRow = memo(({ row, renderRows, status: runStatus, showAttachme
55
58
  const labels = useChatLabels();
56
59
  const [openState, setOpenState] = useState(() => FOLD_OPEN_STATE.get(row.id) ?? false);
57
60
  const [setupOpened] = useState(() => new Set(openSetupIds(row.rows)));
58
- const [openIds, setOpenIds] = useState(() => setupOpened.size > 0 ? new Set(setupOpened) : NO_OPEN_IDS);
61
+ const [openIds, setOpenIds] = useRowUiState(`fold-steps:${row.id}`, setupOpened.size > 0 ? new Set(setupOpened) : NO_OPEN_IDS);
59
62
  const setOpen = (next) => {
60
63
  FOLD_OPEN_STATE.set(row.id, next);
61
64
  setOpenState(next);
@@ -357,6 +360,7 @@ function hasActionDetails(item) {
357
360
  if (item.kind === "thought") return (item.thoughts ?? []).some((t) => t.text.trim() !== "");
358
361
  if (item.kind === "worker") return (item.workerRows ?? []).length > 0;
359
362
  if (item.kind === "setup") return item.setup !== void 0;
363
+ if (item.kind === "compact") return (item.compact?.text ?? "").trim() !== "";
360
364
  return item.tool !== void 0;
361
365
  }
362
366
  /**
@@ -378,10 +382,20 @@ function ActionLine({ item, open = false, onToggle }) {
378
382
  /* @__PURE__ */ jsxs("span", {
379
383
  className: "min-w-0 flex items-baseline gap-2 overflow-hidden",
380
384
  children: [
381
- /* @__PURE__ */ jsx("span", {
385
+ item.compact ? /* @__PURE__ */ jsxs("span", {
386
+ className: "truncate",
387
+ children: [/* @__PURE__ */ jsx("span", {
388
+ className: "tabular-nums",
389
+ children: item.compact.compact.replacedCount
390
+ }), ` ${labels.turnsCompacted}`]
391
+ }) : /* @__PURE__ */ jsx("span", {
382
392
  className: `truncate ${running ? "zg-shimmer" : ""}`,
383
393
  children: item.label
384
394
  }),
395
+ item.compact && /* @__PURE__ */ jsx(CompactMeta, {
396
+ meta: item.compact.compact,
397
+ className: "self-center"
398
+ }),
385
399
  item.hint && /* @__PURE__ */ jsx("span", {
386
400
  className: "min-w-0 truncate text-[var(--zg-text-subtle)]",
387
401
  children: item.hint
@@ -491,12 +505,17 @@ function ActionGlyph({ state }) {
491
505
  * Code stays code (monospace, 12px); reasoning stays prose.
492
506
  */
493
507
  function ActionDetails({ item, renderRows }) {
508
+ const { Markdown } = useTranscriptRenderers();
494
509
  const body = (() => {
495
510
  if (item.kind === "thought") return /* @__PURE__ */ jsx("div", {
496
511
  className: "text-zg-ui italic leading-relaxed text-[var(--zg-text-muted)] whitespace-pre-line",
497
512
  children: (item.thoughts ?? []).map((t) => t.text.replace(/\n{2,}/g, "\n")).join("\n\n")
498
513
  });
499
514
  if (item.kind === "setup" && item.setup) return /* @__PURE__ */ jsx(EnvironmentSetupDetails, { row: item.setup });
515
+ if (item.kind === "compact" && item.compact) return /* @__PURE__ */ jsx("div", {
516
+ className: "text-zg-ui leading-relaxed text-[var(--zg-text-muted)]",
517
+ children: /* @__PURE__ */ jsx(Markdown, { children: item.compact.text })
518
+ });
500
519
  if (item.kind === "worker" || item.tool?.name === "spawn") return /* @__PURE__ */ jsx(WorkerDetails, {
501
520
  item,
502
521
  renderRows
@@ -3,11 +3,11 @@
3
3
  * slots (`TranscriptRenderersProvider`) and actions (`TranscriptActionsProvider`).
4
4
  * `Transcript` / `HostTranscript` themselves are in `zidane-ui/chat`.
5
5
  */
6
- import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, useModelName, useTranscriptActions } from "./actions.js";
7
- import { TranscriptRenderersProvider, TranscriptRenderersProviderProps } from "./renderer-slots.js";
6
+ import { TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./actions.js";
8
7
  import { AnsiSpans, AnsiSpansProps, AnsiText, AnsiTextProps } from "./AnsiText.js";
9
- import { ToolMediaItem, parseToolMedia } from "../headless/transcript/tool-media.js";
8
+ import { TranscriptRenderersProvider, TranscriptRenderersProviderProps } from "./renderer-slots.js";
10
9
  import { AuthFailureCard, AuthFailureCardProps } from "./AuthFailureCard.js";
10
+ import { ToolMediaItem, parseToolMedia } from "../headless/transcript/tool-media.js";
11
11
  import { BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, OpenBadgeMenu, useBadgeMenu } from "./BadgeMenu.js";
12
12
  import { BADGE_GLYPH, FileBadgeIcon, FileBadgeIconProps, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, fileBadgeName, fileBadgeSpec, linkGlyph, siteIconValue } from "./badges.js";
13
13
  import { CardMarkdown, CardMarkdownProps } from "./CardMarkdown.js";
@@ -27,13 +27,13 @@ import { Caret, CaretProps, Dot, DotProps, FailedMark, FailedMarkProps, GUTTER_S
27
27
  import { ImageGenerationBlock, ImageGenerationBlockProps, drawsImageGeneration, imageRequestsOf, savedPaths } from "./ImageGenerationBlock.js";
28
28
  import { InlineChipText, InlineChipTextProps } from "./InlineChipText.js";
29
29
  import { InteractionTool, InteractionToolBody, InteractionToolBodyProps, hasInteractionBody } from "./InteractionToolBody.js";
30
- import { CvRow, CvRowProps, LazyRow, LazyRowProps, TranscriptSettling, holdForceMountRows, mountRowNow, useBackgroundMount, useForceMountRows } from "./LazyRow.js";
30
+ import { CvRow, CvRowProps, ForcedRows, LazyRow, LazyRowProps, TranscriptSettling, holdForceMountRows, useBackgroundMount, useForceMountRows, useForcedRows } from "./LazyRow.js";
31
31
  import { LiveOutput, LiveOutputProps } from "./LiveOutput.js";
32
32
  import { Markdown, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps } from "./markdown.js";
33
33
  import { ChipOpener, CommandScope, CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, MarkdownContextValue, OpenSessionContext } from "./markdown-context.js";
34
34
  import { MermaidDiagram, MermaidDiagramProps } from "./MermaidDiagram.js";
35
35
  import { MessageGroupRow, MessageGroupRowProps } from "./messages.js";
36
- import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, ErrorRow, ErrorRowProps, FailureRow, FailureRowProps, InfoRow, InfoRowProps, NoticeRow, NoticeRowProps, SessionEventRow, SessionEventRowProps, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps } from "./notices.js";
36
+ import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, ErrorRow, ErrorRowProps, FailureRow, FailureRowProps, InfoRow, InfoRowProps, NoticeRow, NoticeRowProps, RepairedRow, RepairedRowProps, SessionEventRow, SessionEventRowProps, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps } from "./notices.js";
37
37
  import { AttachmentIcon, AttachmentIconProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps } from "./prompt.js";
38
38
  import { PromptLines, PromptLinesProps, copyPromptLines } from "./prompt-lines.js";
39
39
  import { PromptEcho, PromptEchoProps } from "./PromptEcho.js";
@@ -44,26 +44,28 @@ import { ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps }
44
44
  import { ParsedReferenceUrl, parseReferenceUrl, referenceUrl, remarkReferences } from "./remark-references.js";
45
45
  import { ParsedRef, RefMatch, classifyInlineRef, findRefs, numberRef, parseRefUrl, refHref, remarkRefs } from "./remark-refs.js";
46
46
  import { AttachmentLabelParts, CodeBlockSlotProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, InlineTextSlotProps, MarkdownSlotProps, PromptSlotProps, SessionTitleSlotProps, TextPreviewSlotProps, ToolBodySlotProps, TranscriptRenderers, defaultAttachmentLabel, useTranscriptRenderers } from "./renderers.js";
47
+ import { revealRow } from "./row-mount.js";
47
48
  import { CompactSummaryRow, CompactSummaryRowProps, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps } from "./run-rows.js";
48
49
  import { SelectCursor, SelectCursorProps } from "./SelectCursor.js";
49
50
  import { SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps } from "./SelectTurnHint.js";
50
51
  import { SelectTurnCommands, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, useSelectTurn } from "./SelectTurnProvider.js";
51
52
  import { RunnableCodeBlock, ShellBlockProvider, ShellBlockProviderProps } from "./shell-block.js";
52
- import { RunnableCodeBlockProps, ShellBlockScope, useShellBlockScope } from "./shell-block-scope.js";
53
53
  import { useSiteIcon } from "./site-icons.js";
54
+ import { RunnableCodeBlockProps, ShellBlockScope, useShellBlockScope } from "./shell-block-scope.js";
54
55
  import { SubagentBlock, SubagentBlockProps } from "./SubagentBlock.js";
55
56
  import { TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps } from "./tasks.js";
56
57
  import { ToolBatchRow, ToolBatchRowProps } from "./tool-batch.js";
57
58
  import { ToolDetails, ToolDetailsProps } from "./tool-details.js";
58
59
  import { ToolMedia, ToolMediaProps, useToolMedia } from "./tool-media.js";
59
- import { CODE_PANEL, LoadFullOutputButton, LoadFullOutputButtonProps, ReadFileBlock, ReadFileBlockProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolTiming, ToolTimingProps, useFullOutput } from "./tool-parts.js";
60
+ import { CODE_PANEL, LoadFullOutputButton, LoadFullOutputButtonProps, ReadFileBlock, ReadFileBlockProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolTiming, ToolTimingProps, useFullOutput, useFullToolCall } from "./tool-parts.js";
60
61
  import { ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, ToolRow, ToolRowProps } from "./tool-row.js";
62
+ import { TranscriptRail, TranscriptRailProps, TranscriptRailProvider, TranscriptRailProviderProps, useRailOutline, useTranscriptRailStore } from "./TranscriptRail.js";
61
63
  import { RowContext, SlotEntry, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptTurnMenu, TurnMenuTarget, isHiddenRow } from "./TranscriptRow.js";
62
64
  import { TranscriptSearch, TranscriptSearchProps } from "./TranscriptSearch.js";
63
65
  import { TurnCommands, TurnCommandsOptions, createTurnCommands, turnViewsOf, useTurnCommands } from "./turn-commands.js";
64
66
  import { TurnMenuActions, useTurnMenu } from "./TurnMenu.js";
65
67
  import { HostTurnMenuOptions, useHostTurnMenu } from "./use-host-turn-menu.js";
66
- import { TranscriptRows, TranscriptRowsInput, useSelectStops, useTranscriptRows } from "./use-transcript-rows.js";
68
+ import { TranscriptRows, TranscriptRowsInput, TranscriptSource, useSelectStops, useTranscriptRows } from "./use-transcript-rows.js";
67
69
  import { ComposerSearch, useComposerSearch } from "./useComposerSearch.js";
68
70
  import { UserBashRow, UserBashRowProps } from "./user-bash.js";
69
71
  import { SelectTurnKeysOptions, useSelectTurnKeys } from "./useSelectTurnKeys.js";
@@ -76,4 +78,4 @@ import { MAX_MATCHES, SearchHighlightStyle, TranscriptSearchOptions, TranscriptS
76
78
  import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
77
79
  import { useWheelHoverPause } from "./useWheelHoverPause.js";
78
80
  import { MarkdownViews, MarkdownViewsProps } from "./view-scope.js";
79
- export { AUTO_FILL_PAGES, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelParts, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, ComposerSearch, CvRow, CvRowProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, Dot, DotProps, EditDiffBlock, EditDiffBlockProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, GUTTER_STEP_PX, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_MATCHES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, NoticeRow, NoticeRowProps, OpenBadgeMenu, OpenSessionContext, ParsedRef, ParsedReferenceUrl, PromptEcho, PromptEchoProps, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScrollPosition, SearchHighlightStyle, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SessionCard, SessionCardProps, SessionEventRow, SessionEventRowProps, SessionTitleSlotProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSettling, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useHostTurnMenu, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
81
+ export { AUTO_FILL_PAGES, AnsiSpans, type AnsiSpansProps, AnsiText, type AnsiTextProps, AttachmentIcon, AttachmentIconProps, AttachmentLabelParts, AuthFailureCard, AuthFailureCardProps, BADGE_GLYPH, BadgeEffectContext, BadgeMenuBrowser, BadgeMenuComposer, BadgeMenuProvider, BadgeMenuProviderProps, BadgeMenuSystem, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, CardMarkdownProps, Caret, CaretProps, ChipCard, ChipCardProps, ChipHover, ChipHoverProps, ChipOpener, CodeBlockSlotProps, CodemodeScript, type CodemodeScriptProps, CommandCard, CommandCardProps, CommandDetailRow, CommandDetailRowProps, CommandNoteRow, CommandNoteRowProps, CommandScope, CommandScopeContext, CommitCard, CommitCardProps, CompactSummaryRow, CompactSummaryRowProps, ComposerSearch, CvRow, CvRowProps, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultInlineTextProps, DefaultMarkdown, DefaultMarkdownProps, DefaultPrompt, DefaultPromptProps, DefaultSessionTitle, DefaultSessionTitleProps, DiffLines, DiffLinesProps, Dot, DotProps, EditDiffBlock, EditDiffBlockProps, EnvironmentSetupDetails, EnvironmentSetupDetailsProps, EnvironmentSetupRow, EnvironmentSetupRowProps, ErrorRow, ErrorRowProps, ExchangeFoldRow, ExchangeFoldRowProps, FILL_MIN_PROMPTS, FailedMark, FailedMarkProps, FailureRow, FailureRowProps, FileBadgeIcon, FileBadgeIconProps, FoldHeader, FoldHeaderProps, ForcedRows, GUTTER_STEP_PX, HostTurnMenuOptions, INLINE_CODE_CLASS, ImageGenerationBlock, ImageGenerationBlockProps, InfoRow, InfoRowProps, InlineChipText, InlineChipTextProps, InlineCode, InlineCodeProps, InlineTextSlotProps, InteractionTool, InteractionToolBody, InteractionToolBodyProps, LazyRow, LazyRowProps, LineState, LinkBadge, LinkBadgeProps, LinkIcon, LinkIconProps, LiveOutput, type LiveOutputProps, LiveScriptsContext, LoadEarlierRow, LoadEarlierRowProps, LoadFullOutputButton, LoadFullOutputButtonProps, MAX_MATCHES, Markdown, MarkdownContext, MarkdownContextValue, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps, MarkdownLinkProps, MarkdownProps, MarkdownSlotProps, MarkdownViews, type MarkdownViewsProps, MermaidDiagram, type MermaidDiagramProps, MessageGroupRow, MessageGroupRowProps, ModelVerdict, ModelVerdictProps, NestedToolCalls, NestedToolCallsProps, NoticeRow, NoticeRowProps, OpenBadgeMenu, OpenSessionContext, ParsedRef, ParsedReferenceUrl, PromptEcho, PromptEchoProps, PromptLines, PromptLinesProps, PromptSlotProps, ProseMarkdown, ProseMarkdownProps, ReadFileBlock, ReadFileBlockProps, RefChip, RefChipProps, RefMatch, ReferenceChip, ReferenceChipProps, ReferenceText, ReferenceTextProps, RepairedRow, RepairedRowProps, RowContext, RowFrame, RowFrameProps, RowIconsContext, RowPlace, RunReceiptInline, RunReceiptInlineProps, RunSummaryRow, RunSummaryRowProps, RunnableCodeBlock, type RunnableCodeBlockProps, ScrollPosition, SearchHighlightStyle, SelectCursor, SelectCursorProps, SelectTurnCommands, SelectTurnExit, SelectTurnHintKeys, SelectTurnHintKeysProps, SelectTurnKeysOptions, SelectTurnProvider, SelectTurnProviderProps, SelectTurnState, SelectTurnValue, SessionCard, SessionCardProps, SessionEventRow, SessionEventRowProps, SessionTitleSlotProps, ShellBlockProvider, type ShellBlockProviderProps, type ShellBlockScope, SkillCard, SkillCardProps, SkillGroupCard, SkillGroupCardProps, SlotEntry, SpawnEndRow, SpawnEndRowProps, SpawnStartRow, SpawnStartRowProps, StickToBottomOptions, SubagentBlock, SubagentBlockProps, TaskBatchRow, TaskBatchRowProps, TaskRow, TaskRowProps, TextPreviewSlotProps, TextRow, TextRowProps, ThinkingBatchRow, ThinkingBatchRowProps, ThinkingRow, ThinkingRowProps, ToolBatchRow, ToolBatchRowProps, ToolBodySlotProps, ToolDetails, ToolDetailsProps, ToolGlyph, ToolGlyphProps, ToolInput, ToolInputProps, ToolMedia, type ToolMediaItem, ToolMediaProps, ToolRow, ToolRowProps, ToolTiming, ToolTimingProps, TranscriptAccounts, TranscriptActions, TranscriptActionsProvider, TranscriptActionsProviderProps, TranscriptFind, TranscriptFindKeyOptions, TranscriptFindOptions, TranscriptFindTarget, TranscriptRail, type TranscriptRailProps, TranscriptRailProvider, type TranscriptRailProviderProps, TranscriptRenderers, TranscriptRenderersProvider, type TranscriptRenderersProviderProps, TranscriptRow, TranscriptRowProps, TranscriptRowSlot, TranscriptRowSlotProps, TranscriptRows, TranscriptRowsInput, TranscriptScrollInputs, TranscriptSearch, TranscriptSearchOptions, TranscriptSearchProps, TranscriptSearchState, TranscriptSettling, TranscriptSource, TranscriptTurnMenu, TurnCommands, TurnCommandsOptions, TurnMenuActions, TurnMenuTarget, UserBashRow, UserBashRowProps, UserPromptAttachments, UserPromptAttachmentsProps, UserPromptRow, UserPromptRowProps, WorkerDetails, WorkerDetailsProps, attachmentSrcOf, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, revealRow, savedPaths, siteIconValue, toolMediaSrcOf, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHostTurnMenu, useModelName, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
@@ -1,4 +1,4 @@
1
- import { TranscriptActionsProvider, useModelName, useTranscriptActions } from "./actions.js";
1
+ import { TranscriptActionsProvider, attachmentSrcOf, toolMediaSrcOf, useModelName, useTranscriptActions } from "./actions.js";
2
2
  import { AnsiSpans, AnsiText } from "./AnsiText.js";
3
3
  import { AuthFailureCard } from "./AuthFailureCard.js";
4
4
  import { BadgeMenuProvider, useBadgeMenu } from "./BadgeMenu.js";
@@ -13,23 +13,23 @@ import { DiffLines } from "./DiffLines.js";
13
13
  import { AUTO_FILL_PAGES, FILL_MIN_PROMPTS, LoadEarlierRow, useFillViewportScrollback } from "./EarlierHistory.js";
14
14
  import { EditDiffBlock } from "./EditDiffBlock.js";
15
15
  import { EnvironmentSetupDetails, EnvironmentSetupRow } from "./environment-setup.js";
16
- import { useShellBlockScope } from "./shell-block-scope.js";
17
16
  import { InlineCode, RefChip } from "./FileChip.js";
17
+ import { useShellBlockScope } from "./shell-block-scope.js";
18
18
  import { ExchangeFoldRow, FoldHeader, LiveScriptsContext } from "./fold.js";
19
- import { parseToolMedia } from "../headless/transcript/tool-media.js";
20
19
  import { WorkerDetails } from "./fold-worker.js";
20
+ import { parseToolMedia } from "../headless/transcript/tool-media.js";
21
21
  import { Caret, Dot, FailedMark, GUTTER_STEP_PX, RowFrame, RowIconsContext, lineStateOf, useRowIcons } from "./frame.js";
22
22
  import { ImageGenerationBlock, drawsImageGeneration, imageRequestsOf, savedPaths } from "./ImageGenerationBlock.js";
23
23
  import { InlineChipText } from "./InlineChipText.js";
24
24
  import { InteractionToolBody, hasInteractionBody } from "./InteractionToolBody.js";
25
- import { CvRow, LazyRow, TranscriptSettling, holdForceMountRows, mountRowNow, useBackgroundMount, useForceMountRows } from "./LazyRow.js";
25
+ import { CvRow, LazyRow, TranscriptSettling, holdForceMountRows, useBackgroundMount, useForceMountRows, useForcedRows } from "./LazyRow.js";
26
26
  import { LiveOutput } from "./LiveOutput.js";
27
27
  import { Markdown, MarkdownDiagrams } from "./markdown.js";
28
28
  import { CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, OpenSessionContext } from "./markdown-context.js";
29
29
  import { MermaidDiagram } from "./MermaidDiagram.js";
30
- import { TranscriptRenderersProvider } from "./renderer-slots.js";
31
30
  import { MessageGroupRow } from "./messages.js";
32
- import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
31
+ import { TranscriptRenderersProvider } from "./renderer-slots.js";
32
+ import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow } from "./notices.js";
33
33
  import { AttachmentIcon, UserPromptAttachments, UserPromptRow } from "./prompt.js";
34
34
  import { PromptLines, copyPromptLines } from "./prompt-lines.js";
35
35
  import { PromptEcho } from "./PromptEcho.js";
@@ -40,6 +40,7 @@ import { ReferenceChip, ReferenceText } from "./ReferenceText.js";
40
40
  import { parseReferenceUrl, referenceUrl, remarkReferences } from "./remark-references.js";
41
41
  import { classifyInlineRef, findRefs, numberRef, parseRefUrl, refHref, remarkRefs } from "./remark-refs.js";
42
42
  import { DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, defaultAttachmentLabel, useTranscriptRenderers } from "./renderers.js";
43
+ import { revealRow } from "./row-mount.js";
43
44
  import { CompactSummaryRow, RunReceiptInline, RunSummaryRow } from "./run-rows.js";
44
45
  import { SelectCursor } from "./SelectCursor.js";
45
46
  import { SelectTurnExit, SelectTurnHintKeys } from "./SelectTurnHint.js";
@@ -51,8 +52,9 @@ import { TaskBatchRow, TaskRow } from "./tasks.js";
51
52
  import { ToolBatchRow } from "./tool-batch.js";
52
53
  import { ToolDetails } from "./tool-details.js";
53
54
  import { ToolMedia, useToolMedia } from "./tool-media.js";
54
- import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput } from "./tool-parts.js";
55
+ import { CODE_PANEL, LoadFullOutputButton, ReadFileBlock, ToolGlyph, ToolInput, ToolTiming, useFullOutput, useFullToolCall } from "./tool-parts.js";
55
56
  import { ModelVerdict, NestedToolCalls, ToolRow } from "./tool-row.js";
57
+ import { TranscriptRail, TranscriptRailProvider, useRailOutline, useTranscriptRailStore } from "./TranscriptRail.js";
56
58
  import { TranscriptRow, TranscriptRowSlot, isHiddenRow } from "./TranscriptRow.js";
57
59
  import { TranscriptSearch } from "./TranscriptSearch.js";
58
60
  import { createTurnCommands, turnViewsOf, useTurnCommands } from "./turn-commands.js";
@@ -71,4 +73,4 @@ import { MAX_MATCHES, SearchHighlightStyle, useTranscriptSearch } from "./useTra
71
73
  import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
72
74
  import { useWheelHoverPause } from "./useWheelHoverPause.js";
73
75
  import { MarkdownViews } from "./view-scope.js";
74
- export { AUTO_FILL_PAGES, AnsiSpans, AnsiText, AttachmentIcon, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, CvRow, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, Dot, EditDiffBlock, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, InfoRow, InlineChipText, InlineCode, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_MATCHES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelVerdict, NestedToolCalls, NoticeRow, OpenSessionContext, PromptEcho, PromptLines, ProseMarkdown, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RowFrame, RowIconsContext, RunReceiptInline, RunSummaryRow, RunnableCodeBlock, SearchHighlightStyle, SelectCursor, SelectTurnExit, SelectTurnHintKeys, SelectTurnProvider, SessionCard, SessionEventRow, ShellBlockProvider, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, SubagentBlock, TaskBatchRow, TaskRow, TextRow, ThinkingBatchRow, ThinkingRow, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, TranscriptActionsProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WorkerDetails, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, mountRowNow, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, savedPaths, siteIconValue, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useFullOutput, useHostTurnMenu, useModelName, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
76
+ export { AUTO_FILL_PAGES, AnsiSpans, AnsiText, AttachmentIcon, AuthFailureCard, BADGE_GLYPH, BadgeMenuProvider, CHIP_CARD_WIDTH, CODE_PANEL, COMMAND_DETAIL_LINE, CardMarkdown, Caret, ChipCard, ChipHover, CodemodeScript, CommandCard, CommandDetailRow, CommandNoteRow, CommandScopeContext, CommitCard, CompactSummaryRow, CvRow, DEFAULT_TRANSCRIPT_RENDERERS, DefaultInlineText, DefaultMarkdown, DefaultPrompt, DefaultSessionTitle, DiffLines, Dot, EditDiffBlock, EnvironmentSetupDetails, EnvironmentSetupRow, ErrorRow, ExchangeFoldRow, FILL_MIN_PROMPTS, FailedMark, FailureRow, FileBadgeIcon, FoldHeader, GUTTER_STEP_PX, INLINE_CODE_CLASS, ImageGenerationBlock, InfoRow, InlineChipText, InlineCode, InteractionToolBody, LazyRow, LinkBadge, LinkIcon, LiveOutput, LiveScriptsContext, LoadEarlierRow, LoadFullOutputButton, MAX_MATCHES, Markdown, MarkdownContext, MarkdownDiagrams, MarkdownViews, MermaidDiagram, MessageGroupRow, ModelVerdict, NestedToolCalls, NoticeRow, OpenSessionContext, PromptEcho, PromptLines, ProseMarkdown, ReadFileBlock, RefChip, ReferenceChip, ReferenceText, RepairedRow, RowFrame, RowIconsContext, RunReceiptInline, RunSummaryRow, RunnableCodeBlock, SearchHighlightStyle, SelectCursor, SelectTurnExit, SelectTurnHintKeys, SelectTurnProvider, SessionCard, SessionEventRow, ShellBlockProvider, SkillCard, SkillGroupCard, SpawnEndRow, SpawnStartRow, SubagentBlock, TaskBatchRow, TaskRow, TextRow, ThinkingBatchRow, ThinkingRow, ToolBatchRow, ToolDetails, ToolGlyph, ToolInput, ToolMedia, ToolRow, ToolTiming, TranscriptActionsProvider, TranscriptRail, TranscriptRailProvider, TranscriptRenderersProvider, TranscriptRow, TranscriptRowSlot, TranscriptSearch, TranscriptSettling, UserBashRow, UserPromptAttachments, UserPromptRow, WorkerDetails, attachmentSrcOf, classifyInlineRef, copyPromptLines, createTurnCommands, defaultAttachmentLabel, drawsImageGeneration, fileBadgeName, fileBadgeSpec, findRefs, hasInteractionBody, holdForceMountRows, imageRequestsOf, isHiddenRow, lineStateOf, linkGlyph, numberRef, parseRefUrl, parseReferenceUrl, parseToolMedia, refHref, referenceUrl, remarkReferences, remarkRefs, revealRow, savedPaths, siteIconValue, toolMediaSrcOf, turnViewsOf, useBackgroundMount, useBadgeMenu, useChipResolution, useCommand, useCommitInfo, useComposerSearch, useFillViewportScrollback, useForceMountRows, useForcedRows, useFullOutput, useFullToolCall, useHostTurnMenu, useModelName, useRailOutline, useReferenceMatches, useReferenceProviders, useReferenceView, useReferencedSession, useResolveChipNow, useRowIcons, useSelectStops, useSelectTurn, useSelectTurnKeys, useSettledReveal, useShellBlockScope, useSiteIcon, useSkill, useStickToBottom, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
@@ -31,4 +31,10 @@ export interface MarkdownParseKey {
31
31
  */
32
32
  export declare function cachedMarkdown(text: string, key: MarkdownParseKey, parse: () => ReactElement): ReactElement;
33
33
  /** Empties the cache (tests). */
34
- export declare function clearMarkdownCache(): void;
34
+ export declare function clearMarkdownCache(): void;
35
+ /** What the cache holds, and how many parses it took in since it was last emptied (tests, benches). */
36
+ export declare function markdownCacheStats(): {
37
+ entries: number;
38
+ chars: number;
39
+ inserts: number;
40
+ };