zidane-ui 9.1.16 → 9.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (654) hide show
  1. package/dist/adapters/browser-keybindings-host.d.ts +10 -2
  2. package/dist/adapters/browser-keybindings-host.js +40 -2
  3. package/dist/adapters/index.d.ts +3 -2
  4. package/dist/adapters/index.js +3 -2
  5. package/dist/adapters/server-custom-frame.d.ts +22 -0
  6. package/dist/adapters/server-custom-frame.js +163 -0
  7. package/dist/adapters/server-host.js +8 -3
  8. package/dist/adapters/server-machines-host.js +1 -0
  9. package/dist/adapters/server-views-host.d.ts +24 -0
  10. package/dist/adapters/server-views-host.js +78 -0
  11. package/dist/app/AppHostProvider.d.ts +4 -1
  12. package/dist/app/AppHostProvider.js +11 -5
  13. package/dist/app/ModalProvider.js +2 -2
  14. package/dist/app/NoticeStack.js +1 -1
  15. package/dist/app/headless/app-host.d.ts +3 -0
  16. package/dist/app/useConfirm.js +1 -1
  17. package/dist/appearance/AppearanceProvider.js +1 -1
  18. package/dist/approvals/ApprovalBar.js +27 -15
  19. package/dist/approvals/ApprovalShell.js +1 -1
  20. package/dist/approvals/ApprovalsProvider.js +1 -1
  21. package/dist/approvals/FileEditApproval.js +1 -1
  22. package/dist/approvals/HunkPreviews.js +2 -2
  23. package/dist/approvals/SafelistPanel.js +2 -2
  24. package/dist/approvals/headless/labels.d.ts +3 -0
  25. package/dist/approvals/headless/labels.js +3 -0
  26. package/dist/chat/ChatProvider.js +1 -1
  27. package/dist/chat/DaemonOrb.js +1 -1
  28. package/dist/chat/HostBadge.js +1 -1
  29. package/dist/chat/HostTranscript.js +1 -1
  30. package/dist/chat/PdfPreview.js +1 -1
  31. package/dist/chat/RunEstimateChip.js +1 -1
  32. package/dist/chat/SessionFilterMenu.js +2 -2
  33. package/dist/chat/SessionList.js +1 -1
  34. package/dist/chat/SessionListRow.js +2 -2
  35. package/dist/chat/SessionStreamsProvider.d.ts +3 -1
  36. package/dist/chat/SessionStreamsProvider.js +6 -2
  37. package/dist/chat/StatusDot.js +1 -1
  38. package/dist/chat/TextPreview.js +1 -1
  39. package/dist/chat/Throbber.js +1 -1
  40. package/dist/chat/Transcript.d.ts +1 -1
  41. package/dist/chat/Transcript.js +95 -26
  42. package/dist/chat/composer/AgentPicker.js +1 -1
  43. package/dist/chat/composer/AgentPickerDialog.js +1 -1
  44. package/dist/chat/composer/ApprovalDock.js +1 -1
  45. package/dist/chat/composer/AttachmentTiles.js +2 -2
  46. package/dist/chat/composer/Composer.js +1 -1
  47. package/dist/chat/composer/ComposerBadges.js +2 -2
  48. package/dist/chat/composer/ComposerControls.js +1 -1
  49. package/dist/chat/composer/ComposerEditor.js +1 -1
  50. package/dist/chat/composer/ComposerHostProvider.js +1 -1
  51. package/dist/chat/composer/ComposerShell.js +1 -1
  52. package/dist/chat/composer/ContextBreakdown.js +23 -23
  53. package/dist/chat/composer/ConversationBadges.js +1 -1
  54. package/dist/chat/composer/DraftPickers.d.ts +38 -0
  55. package/dist/chat/composer/DraftPickers.js +72 -0
  56. package/dist/chat/composer/EffortPickerDialog.js +1 -1
  57. package/dist/chat/composer/HostComposer.js +2 -2
  58. package/dist/chat/composer/HostContextOrb.js +2 -2
  59. package/dist/chat/composer/HostModelChainList.js +1 -1
  60. package/dist/chat/composer/HostPickers.js +1 -1
  61. package/dist/chat/composer/ImageModelList.js +1 -1
  62. package/dist/chat/composer/ModelChainList.js +1 -1
  63. package/dist/chat/composer/ModelChainParts.js +1 -1
  64. package/dist/chat/composer/ModelChainRow.js +1 -1
  65. package/dist/chat/composer/ModelChainRows.js +1 -1
  66. package/dist/chat/composer/ModelOptionsPicker.js +1 -1
  67. package/dist/chat/composer/ModelPicker.js +2 -2
  68. package/dist/chat/composer/ModelPickerDialog.js +1 -1
  69. package/dist/chat/composer/ModelProviderPills.js +1 -1
  70. package/dist/chat/composer/PickerPill.js +1 -1
  71. package/dist/chat/composer/ProjectMenu.js +1 -1
  72. package/dist/chat/composer/PromptHistoryProvider.js +1 -1
  73. package/dist/chat/composer/RunStatusChip.js +1 -1
  74. package/dist/chat/composer/attachment-ingest.js +4 -2
  75. package/dist/chat/composer/heif.d.ts +12 -0
  76. package/dist/chat/composer/heif.js +115 -0
  77. package/dist/chat/composer/index.d.ts +5 -3
  78. package/dist/chat/composer/index.js +4 -2
  79. package/dist/chat/composer/suggestions.js +1 -1
  80. package/dist/chat/composer/use-composer-stores.d.ts +3 -1
  81. package/dist/chat/composer/use-composer-stores.js +7 -2
  82. package/dist/chat/composer/use-draft-target.d.ts +5 -0
  83. package/dist/chat/composer/use-draft-target.js +10 -8
  84. package/dist/chat/composer/use-new-chats-default.d.ts +25 -0
  85. package/dist/chat/composer/use-new-chats-default.js +32 -0
  86. package/dist/chat/composer/use-send-prompt.d.ts +11 -1
  87. package/dist/chat/composer/use-send-prompt.js +5 -3
  88. package/dist/chat/headless/host.d.ts +9 -0
  89. package/dist/chat/headless/index.d.ts +5 -4
  90. package/dist/chat/headless/index.js +5 -3
  91. package/dist/chat/headless/labels.d.ts +82 -1
  92. package/dist/chat/headless/labels.js +11 -1
  93. package/dist/chat/headless/notifications.d.ts +2 -0
  94. package/dist/chat/headless/notifications.js +1 -0
  95. package/dist/chat/headless/prompt-origin.d.ts +53 -2
  96. package/dist/chat/headless/prompt-origin.js +55 -5
  97. package/dist/chat/headless/session-list.d.ts +79 -0
  98. package/dist/chat/headless/sidebar/index.js +1 -1
  99. package/dist/chat/headless/sidebar/labels.d.ts +80 -1
  100. package/dist/chat/headless/transcript/batch.d.ts +12 -1
  101. package/dist/chat/headless/transcript/batch.js +47 -1
  102. package/dist/chat/headless/transcript/collapse.js +11 -0
  103. package/dist/chat/headless/transcript/fold.js +23 -7
  104. package/dist/chat/headless/transcript/index.d.ts +3 -3
  105. package/dist/chat/headless/transcript/index.js +2 -2
  106. package/dist/chat/headless/transcript/rows.d.ts +31 -2
  107. package/dist/chat/headless/transcript/select-stops.js +4 -0
  108. package/dist/chat/headless/transcript-labels.d.ts +1 -0
  109. package/dist/chat/headless/turn-labels.d.ts +2 -0
  110. package/dist/chat/headless/turn-labels.js +2 -0
  111. package/dist/chat/index.d.ts +10 -5
  112. package/dist/chat/index.js +9 -4
  113. package/dist/chat/interactions/HostInteractions.js +1 -1
  114. package/dist/chat/interactions/InboxPanel.js +2 -2
  115. package/dist/chat/interactions/PlanCard.js +4 -4
  116. package/dist/chat/interactions/QuestionField.js +2 -2
  117. package/dist/chat/interactions/QuestionForm.js +1 -1
  118. package/dist/chat/interactions/SecretInput.js +1 -1
  119. package/dist/chat/interactions/card-ui.js +1 -1
  120. package/dist/chat/rich-composer/MentionList.js +1 -1
  121. package/dist/chat/rich-composer/RichComposer.js +1 -1
  122. package/dist/chat/sidebar/MainSessionRow.js +1 -1
  123. package/dist/chat/sidebar/ProjectIcon.js +3 -3
  124. package/dist/chat/sidebar/SessionSidebar.js +2 -2
  125. package/dist/chat/sidebar/SidebarDecoration.js +2 -2
  126. package/dist/chat/sidebar/SidebarFilterMenu.js +1 -1
  127. package/dist/chat/sidebar/SidebarFooter.js +1 -1
  128. package/dist/chat/sidebar/SidebarFrame.js +2 -2
  129. package/dist/chat/sidebar/SidebarGroupHeader.js +3 -3
  130. package/dist/chat/sidebar/SidebarHostProvider.js +1 -1
  131. package/dist/chat/sidebar/SidebarRowView.js +1 -1
  132. package/dist/chat/sidebar/SidebarSessionRow.js +6 -6
  133. package/dist/chat/sidebar/SpaceSwitcher.js +1 -1
  134. package/dist/chat/sidebar/SpacesSection.js +2 -2
  135. package/dist/chat/sidebar/sidebar-live.js +3 -3
  136. package/dist/chat/transcript/AnsiText.js +4 -4
  137. package/dist/chat/transcript/AuthFailureCard.js +2 -2
  138. package/dist/chat/transcript/BadgeMenu.js +1 -1
  139. package/dist/chat/transcript/CardMarkdown.js +1 -1
  140. package/dist/chat/transcript/ChipCards.js +1 -1
  141. package/dist/chat/transcript/CodemodeScript.js +11 -6
  142. package/dist/chat/transcript/DiffLines.js +1 -1
  143. package/dist/chat/transcript/EarlierHistory.js +1 -1
  144. package/dist/chat/transcript/EditDiffBlock.js +1 -1
  145. package/dist/chat/transcript/FileChip.js +5 -5
  146. package/dist/chat/transcript/ImageGenerationBlock.js +1 -1
  147. package/dist/chat/transcript/LazyRow.js +1 -1
  148. package/dist/chat/transcript/LiveOutput.js +1 -1
  149. package/dist/chat/transcript/MermaidDiagram.d.ts +68 -2
  150. package/dist/chat/transcript/MermaidDiagram.js +344 -32
  151. package/dist/chat/transcript/PromptEcho.js +1 -1
  152. package/dist/chat/transcript/ProseMarkdown.js +1 -1
  153. package/dist/chat/transcript/ReferenceText.js +8 -8
  154. package/dist/chat/transcript/SelectCursor.js +1 -1
  155. package/dist/chat/transcript/SelectTurnProvider.js +1 -1
  156. package/dist/chat/transcript/SubagentBlock.js +1 -1
  157. package/dist/chat/transcript/TranscriptRow.js +20 -5
  158. package/dist/chat/transcript/TranscriptSearch.js +1 -1
  159. package/dist/chat/transcript/TurnMenu.js +1 -1
  160. package/dist/chat/transcript/actions.js +1 -1
  161. package/dist/chat/transcript/diagrams-scope.d.ts +4 -0
  162. package/dist/chat/transcript/diagrams-scope.js +11 -0
  163. package/dist/chat/transcript/extension-renderers.js +1 -1
  164. package/dist/chat/transcript/fold-attachments.js +1 -1
  165. package/dist/chat/transcript/fold-status.js +1 -1
  166. package/dist/chat/transcript/fold-worker.js +1 -1
  167. package/dist/chat/transcript/fold.js +5 -5
  168. package/dist/chat/transcript/frame.js +1 -1
  169. package/dist/chat/transcript/index.d.ts +5 -2
  170. package/dist/chat/transcript/index.js +5 -2
  171. package/dist/chat/transcript/markdown.js +95 -14
  172. package/dist/chat/transcript/messages.js +19 -10
  173. package/dist/chat/transcript/notices.js +2 -2
  174. package/dist/chat/transcript/prompt-lines.js +5 -5
  175. package/dist/chat/transcript/prompt.js +2 -2
  176. package/dist/chat/transcript/prose.js +1 -1
  177. package/dist/chat/transcript/renderer-slots.js +1 -1
  178. package/dist/chat/transcript/renderers.js +3 -3
  179. package/dist/chat/transcript/row-estimate.js +5 -1
  180. package/dist/chat/transcript/run-rows.js +2 -2
  181. package/dist/chat/transcript/script-input.d.ts +1 -1
  182. package/dist/chat/transcript/shell-block.js +4 -4
  183. package/dist/chat/transcript/tasks.d.ts +35 -0
  184. package/dist/chat/transcript/tasks.js +100 -0
  185. package/dist/chat/transcript/tool-batch.js +2 -2
  186. package/dist/chat/transcript/tool-media.js +1 -1
  187. package/dist/chat/transcript/tool-parts.js +1 -1
  188. package/dist/chat/transcript/tool-row.js +8 -8
  189. package/dist/chat/transcript/turn-commands.d.ts +15 -1
  190. package/dist/chat/transcript/turn-commands.js +43 -4
  191. package/dist/chat/transcript/use-host-turn-menu.d.ts +25 -0
  192. package/dist/chat/transcript/use-host-turn-menu.js +57 -0
  193. package/dist/chat/transcript/use-transcript-rows.js +2 -2
  194. package/dist/chat/transcript/useStickToBottom.js +1 -1
  195. package/dist/chat/transcript/useTranscriptSearch.js +1 -1
  196. package/dist/chat/transcript/user-bash.js +1 -1
  197. package/dist/chat/transcript/view-scope.d.ts +163 -0
  198. package/dist/chat/transcript/view-scope.js +224 -0
  199. package/dist/chat/transcript-options.d.ts +1 -1
  200. package/dist/chat/transcript-options.js +4 -1
  201. package/dist/code/CodeHighlightProvider.js +1 -1
  202. package/dist/code/HighlightedCode.js +1 -1
  203. package/dist/code/editor/CodeCompletion.js +3 -3
  204. package/dist/code/editor/CodeEditor.js +1 -1
  205. package/dist/code/editor/CodeHover.js +1 -1
  206. package/dist/code/editor/DiffView.js +1 -1
  207. package/dist/code/editor/EditorColumn.js +1 -1
  208. package/dist/code/editor/FileIcon.js +1 -1
  209. package/dist/code/editor/FileTree.js +1 -1
  210. package/dist/code/editor/FileView.js +1 -1
  211. package/dist/code/editor/HighlightWorkers.js +2 -2
  212. package/dist/code/editor/LanguageEditor.js +1 -1
  213. package/dist/code/editor/environment.js +1 -1
  214. package/dist/code/editor/find/FindBar.js +1 -1
  215. package/dist/components/Accordion.d.ts +30 -0
  216. package/dist/components/Accordion.js +96 -0
  217. package/dist/components/Breadcrumb.js +1 -1
  218. package/dist/components/Breakdown.d.ts +82 -0
  219. package/dist/components/Breakdown.js +212 -0
  220. package/dist/components/BrowserChrome.js +1 -1
  221. package/dist/components/BrowserSignIn.js +4 -4
  222. package/dist/components/Callout.d.ts +29 -0
  223. package/dist/components/Callout.js +60 -0
  224. package/dist/components/Checklist.d.ts +53 -0
  225. package/dist/components/Checklist.js +189 -0
  226. package/dist/components/ChoiceCards.d.ts +7 -1
  227. package/dist/components/ChoiceCards.js +11 -7
  228. package/dist/components/CodeFrame.js +1 -1
  229. package/dist/components/Compare.d.ts +65 -0
  230. package/dist/components/Compare.js +242 -0
  231. package/dist/components/ConfirmDialog.js +1 -1
  232. package/dist/components/CopyButton.js +1 -1
  233. package/dist/components/EditableTitle.js +1 -1
  234. package/dist/components/ErrorBoundary.js +1 -1
  235. package/dist/components/Form.d.ts +3 -1
  236. package/dist/components/Form.js +2 -1
  237. package/dist/components/HowItWorks.js +2 -2
  238. package/dist/components/IconButton.js +2 -2
  239. package/dist/components/KeyValue.d.ts +37 -0
  240. package/dist/components/KeyValue.js +43 -0
  241. package/dist/components/Lightbox.js +2 -2
  242. package/dist/components/Menu.js +2 -2
  243. package/dist/components/Overlay.js +2 -2
  244. package/dist/components/Progress.d.ts +55 -0
  245. package/dist/components/Progress.js +94 -0
  246. package/dist/components/ReorderTabs.js +1 -1
  247. package/dist/components/RowActionsMenu.js +3 -3
  248. package/dist/components/RowMenuButton.d.ts +24 -0
  249. package/dist/components/RowMenuButton.js +42 -0
  250. package/dist/components/Segmented.js +1 -1
  251. package/dist/components/Stat.d.ts +105 -0
  252. package/dist/components/Stat.js +131 -0
  253. package/dist/components/StepFrame.js +1 -1
  254. package/dist/components/Steps.d.ts +38 -0
  255. package/dist/components/Steps.js +49 -0
  256. package/dist/components/Surface.d.ts +1 -1
  257. package/dist/components/Surface.js +1 -1
  258. package/dist/components/SwatchPicker.js +1 -1
  259. package/dist/components/Table.d.ts +123 -0
  260. package/dist/components/Table.js +437 -0
  261. package/dist/components/Tabs.d.ts +41 -0
  262. package/dist/components/Tabs.js +103 -0
  263. package/dist/components/ToggleCard.js +3 -3
  264. package/dist/components/Tooltip.js +2 -2
  265. package/dist/components/ZidaneMark.js +1 -1
  266. package/dist/components/ZoomableImage.js +1 -1
  267. package/dist/components/charts/AreaChart.d.ts +24 -0
  268. package/dist/components/charts/AreaChart.js +210 -0
  269. package/dist/components/charts/BarChart.d.ts +112 -0
  270. package/dist/components/charts/BarChart.js +686 -0
  271. package/dist/components/charts/LineChart.d.ts +34 -0
  272. package/dist/components/charts/LineChart.js +299 -0
  273. package/dist/components/charts/ScatterChart.d.ts +83 -0
  274. package/dist/components/charts/ScatterChart.js +702 -0
  275. package/dist/components/charts/Sparkline.d.ts +31 -0
  276. package/dist/components/charts/Sparkline.js +82 -0
  277. package/dist/components/charts/Trend.d.ts +86 -0
  278. package/dist/components/charts/Trend.js +233 -0
  279. package/dist/components/charts/frame.d.ts +225 -0
  280. package/dist/components/charts/frame.js +475 -0
  281. package/dist/components/charts/index.d.ts +10 -0
  282. package/dist/components/charts/index.js +9 -0
  283. package/dist/components/charts/interact.d.ts +89 -0
  284. package/dist/components/charts/interact.js +296 -0
  285. package/dist/components/charts/measure.d.ts +29 -0
  286. package/dist/components/charts/measure.js +79 -0
  287. package/dist/components/charts/xy.d.ts +230 -0
  288. package/dist/components/charts/xy.js +488 -0
  289. package/dist/components/charts/zoom-reset.d.ts +7 -0
  290. package/dist/components/charts/zoom-reset.js +23 -0
  291. package/dist/components/floating/FloatingSurface.js +1 -1
  292. package/dist/components/floating/HoverCard.js +2 -2
  293. package/dist/components/floating/Popover.js +2 -2
  294. package/dist/components/lazy-part.d.ts +17 -0
  295. package/dist/components/lazy-part.js +33 -0
  296. package/dist/components/numbers.d.ts +74 -0
  297. package/dist/components/numbers.js +157 -0
  298. package/dist/components/palette/PaletteList.js +5 -5
  299. package/dist/components/palette/PalettePanel.js +2 -2
  300. package/dist/core.css +517 -3
  301. package/dist/dist/index-BUHcyEqA.d.ts +1 -0
  302. package/dist/dist/{index-BZM8tu4L.d.ts → index-CGCMyhB3.d.ts} +182 -126
  303. package/dist/dist/index.d.ts +4 -4
  304. package/dist/dist/sandbox-Cib3Qf4t.d.ts +2 -0
  305. package/dist/extensions/ExtensionComponent.js +6 -5
  306. package/dist/extensions/ExtensionDialogHost.js +1 -1
  307. package/dist/extensions/ExtensionRenderer.js +1 -1
  308. package/dist/extensions/ExtensionScreen.js +1 -1
  309. package/dist/extensions/ExtensionSettingsPage.js +1 -1
  310. package/dist/extensions/ExtensionSettingsSection.js +1 -1
  311. package/dist/extensions/ExtensionSettingsSidebar.js +1 -1
  312. package/dist/extensions/ExtensionSlot.js +2 -2
  313. package/dist/extensions/ExtensionWebview.js +1 -1
  314. package/dist/extensions/ExtensionsProvider.js +1 -1
  315. package/dist/extensions/headless/index.d.ts +2 -2
  316. package/dist/extensions/headless/wire.d.ts +5 -1
  317. package/dist/extensions/headless/wire.js +2 -1
  318. package/dist/extensions/links.js +1 -1
  319. package/dist/files/CodeViewer.js +1 -1
  320. package/dist/files/DiffFileViewer.js +1 -1
  321. package/dist/files/DiffsTab.js +2 -2
  322. package/dist/files/EditorColumn.js +62 -28
  323. package/dist/files/EditorEnvironmentRoot.js +1 -1
  324. package/dist/files/FilePreview.d.ts +24 -0
  325. package/dist/files/FilePreview.js +283 -0
  326. package/dist/files/FilesProvider.js +1 -1
  327. package/dist/files/FilesTab.js +2 -2
  328. package/dist/files/MediaDiff.js +1 -1
  329. package/dist/files/MediaView.js +1 -1
  330. package/dist/files/ReviewDraft.js +1 -1
  331. package/dist/files/ReviewableDiff.js +2 -2
  332. package/dist/files/SearchPanel.js +2 -2
  333. package/dist/files/TreeColumn.js +2 -2
  334. package/dist/files/file-actions.js +1 -0
  335. package/dist/files/headless/labels.d.ts +5 -0
  336. package/dist/files/headless/labels.js +5 -0
  337. package/dist/files/headless/preview.d.ts +44 -0
  338. package/dist/files/headless/preview.js +103 -0
  339. package/dist/files/lazy-tabs.js +1 -1
  340. package/dist/files/useCodeReview.js +1 -1
  341. package/dist/files/useLsp.js +1 -1
  342. package/dist/files/useOpenFiles.d.ts +2 -0
  343. package/dist/files/useOpenFiles.js +14 -0
  344. package/dist/git/BranchMenu.js +7 -7
  345. package/dist/git/GitBar.js +1 -1
  346. package/dist/git/GitProvider.js +1 -1
  347. package/dist/git/ImportRepoDialog.js +1 -1
  348. package/dist/git/MoveSessionDialog.js +2 -2
  349. package/dist/git/RemoteFolderPicker.js +4 -4
  350. package/dist/git/SyncChip.js +1 -1
  351. package/dist/git/WherePicker.d.ts +2 -0
  352. package/dist/git/WherePicker.js +15 -12
  353. package/dist/git/index.d.ts +1 -1
  354. package/dist/git/index.js +1 -1
  355. package/dist/hooks/useDisplayPath.js +1 -1
  356. package/dist/index.d.ts +14 -1
  357. package/dist/index.js +16 -3
  358. package/dist/keybindings/KeyCommands.js +1 -1
  359. package/dist/keybindings/KeybindingsProvider.js +4 -2
  360. package/dist/keybindings/headless/host.d.ts +5 -0
  361. package/dist/keybindings/headless/overrides.d.ts +2 -1
  362. package/dist/keybindings/headless/overrides.js +2 -1
  363. package/dist/keybindings/testing/contract.js +1 -0
  364. package/dist/labels.d.ts +97 -0
  365. package/dist/labels.js +104 -1
  366. package/dist/machines/AddMachineDialog.js +3 -3
  367. package/dist/machines/AddServerForm.js +1 -1
  368. package/dist/machines/DaemonMenu.js +3 -3
  369. package/dist/machines/HostCapabilities.js +5 -5
  370. package/dist/machines/HostIcon.d.ts +21 -0
  371. package/dist/machines/HostIcon.js +19 -0
  372. package/dist/machines/HostSignIn.js +1 -1
  373. package/dist/machines/HostSyncPanel.js +1 -1
  374. package/dist/machines/HostsSection.d.ts +27 -1
  375. package/dist/machines/HostsSection.js +60 -46
  376. package/dist/machines/MachinesProvider.js +1 -1
  377. package/dist/machines/ServerCard.d.ts +1 -2
  378. package/dist/machines/ServerCard.js +4 -9
  379. package/dist/machines/ServerMachinesPanel.js +161 -196
  380. package/dist/machines/ServerUpdatePanel.js +94 -111
  381. package/dist/machines/ShareThisComputerForm.js +1 -1
  382. package/dist/machines/SyncAccounts.js +1 -1
  383. package/dist/machines/SyncMarker.js +2 -2
  384. package/dist/machines/TokensPanel.js +225 -124
  385. package/dist/machines/headless/index.d.ts +2 -1
  386. package/dist/machines/headless/index.js +2 -1
  387. package/dist/machines/headless/labels.d.ts +22 -0
  388. package/dist/machines/headless/labels.js +25 -0
  389. package/dist/machines/headless/update-store.d.ts +29 -0
  390. package/dist/machines/headless/update-store.js +83 -0
  391. package/dist/machines/index.d.ts +5 -3
  392. package/dist/machines/index.js +5 -3
  393. package/dist/machines/server-update.d.ts +23 -0
  394. package/dist/machines/server-update.js +106 -0
  395. package/dist/motion/grow.js +1 -1
  396. package/dist/motion/provider.js +1 -1
  397. package/dist/motion/roll.js +2 -2
  398. package/dist/motion/size.js +1 -1
  399. package/dist/motion/springs.js +1 -1
  400. package/dist/motion/swap.js +1 -1
  401. package/dist/motion/title-text.js +2 -2
  402. package/dist/onboarding/OnboardingFlow.js +1 -1
  403. package/dist/onboarding/OnboardingProvider.js +1 -1
  404. package/dist/onboarding/conversation.js +1 -1
  405. package/dist/onboarding/demos/features.js +1 -1
  406. package/dist/onboarding/demos/index.js +1 -1
  407. package/dist/onboarding/demos/tour.js +1 -1
  408. package/dist/onboarding/headless/labels.d.ts +74 -0
  409. package/dist/onboarding/index.js +3 -3
  410. package/dist/onboarding/skills/SkillSourceBrowser.js +1 -1
  411. package/dist/onboarding/skills/parts.js +1 -1
  412. package/dist/onboarding/sources/SourceBrowser.js +4 -4
  413. package/dist/onboarding/steps/ConnectStep.js +1 -1
  414. package/dist/onboarding/steps/ConnectorsStep.js +3 -3
  415. package/dist/onboarding/steps/ConversationStep.js +2 -2
  416. package/dist/onboarding/steps/FeatureExample.js +2 -2
  417. package/dist/onboarding/steps/ImportStep.js +2 -2
  418. package/dist/onboarding/steps/LookStep.js +1 -1
  419. package/dist/onboarding/steps/ReadyStep.js +2 -2
  420. package/dist/onboarding/steps/SkillsStep.js +1 -1
  421. package/dist/onboarding/steps/connect/KeyForm.js +1 -1
  422. package/dist/onboarding/steps/connect/ProviderPanel.js +1 -1
  423. package/dist/onboarding/steps/connect/ProviderReady.js +2 -2
  424. package/dist/palette/CommandPalette.d.ts +3 -1
  425. package/dist/palette/CommandPalette.js +11 -3
  426. package/dist/palette/PaletteDialog.js +25 -2
  427. package/dist/palette/PaletteProvider.js +1 -1
  428. package/dist/palette/PaletteRows.js +5 -5
  429. package/dist/palette/headless/index.d.ts +2 -2
  430. package/dist/palette/headless/index.js +2 -2
  431. package/dist/palette/headless/labels.d.ts +2 -0
  432. package/dist/palette/headless/labels.js +2 -0
  433. package/dist/palette/headless/sources.d.ts +26 -2
  434. package/dist/palette/headless/sources.js +40 -1
  435. package/dist/session/ArtifactsPanel.js +2 -2
  436. package/dist/session/DiffFileTree.js +1 -1
  437. package/dist/session/PlanTracker.js +1 -1
  438. package/dist/session/ProjectHome.js +4 -4
  439. package/dist/session/ProviderUsageProvider.js +2 -2
  440. package/dist/session/QueueTab.js +6 -6
  441. package/dist/session/RemindersPanel.js +2 -2
  442. package/dist/session/RunningWorkDialog.js +3 -2
  443. package/dist/session/SecretsPanel.js +2 -2
  444. package/dist/session/SessionCacheFacts.js +56 -57
  445. package/dist/session/SessionDetailsDialog.js +29 -17
  446. package/dist/session/SessionHeader.js +1 -1
  447. package/dist/session/SessionProvider.js +1 -1
  448. package/dist/session/SessionShell.js +2 -2
  449. package/dist/session/SideChat.js +1 -1
  450. package/dist/session/StepStatusIcon.js +1 -1
  451. package/dist/session/TurnDetailsDialog.js +1 -1
  452. package/dist/session/UsagePanel.js +9 -5
  453. package/dist/session/WelcomeScreen.js +1 -1
  454. package/dist/session/headless/host.d.ts +1 -1
  455. package/dist/session/headless/index.js +1 -1
  456. package/dist/session/headless/labels.d.ts +1 -0
  457. package/dist/session/headless/labels.js +4 -2
  458. package/dist/settings/SettingsFooter.d.ts +51 -0
  459. package/dist/settings/SettingsFooter.js +91 -0
  460. package/dist/settings/SettingsHeadingText.js +1 -1
  461. package/dist/settings/SettingsNav.js +1 -1
  462. package/dist/settings/SettingsProvider.js +1 -1
  463. package/dist/settings/SettingsRestricted.js +2 -2
  464. package/dist/settings/SettingsRowsPage.js +2 -2
  465. package/dist/settings/SettingsShell.js +3 -3
  466. package/dist/settings/headless/app-update.d.ts +27 -0
  467. package/dist/settings/headless/app-update.js +0 -0
  468. package/dist/settings/headless/catalog.js +61 -1
  469. package/dist/settings/headless/fixture-accounts.js +7 -0
  470. package/dist/settings/headless/index.d.ts +2 -1
  471. package/dist/settings/headless/index.js +2 -2
  472. package/dist/settings/headless/labels.d.ts +13 -0
  473. package/dist/settings/headless/labels.js +16 -1
  474. package/dist/settings/headless/layout.js +30 -12
  475. package/dist/settings/headless/mcp.d.ts +4 -0
  476. package/dist/settings/headless/search.d.ts +1 -1
  477. package/dist/settings/index.d.ts +3 -1
  478. package/dist/settings/index.js +11 -9
  479. package/dist/settings/section.js +1 -1
  480. package/dist/settings/sections/appearance/AppearanceSection.js +1 -1
  481. package/dist/settings/sections/claude-import/ClaudeImportDialog.js +2 -2
  482. package/dist/settings/sections/descriptors.js +4 -4
  483. package/dist/settings/sections/editor/EditorSection.js +2 -2
  484. package/dist/settings/sections/enabled-list/EnabledListSection.js +1 -1
  485. package/dist/settings/sections/environments/EnvironmentsSection.js +3 -3
  486. package/dist/settings/sections/extensions/ChangeOriginDialog.js +1 -1
  487. package/dist/settings/sections/extensions/CreateExtensionDialog.js +1 -1
  488. package/dist/settings/sections/extensions/ExtensionConfigRows.js +2 -2
  489. package/dist/settings/sections/extensions/ExtensionOptionsSection.js +2 -2
  490. package/dist/settings/sections/extensions/ExtensionPicksBar.js +1 -1
  491. package/dist/settings/sections/extensions/ExtensionSourceBrowser.js +1 -1
  492. package/dist/settings/sections/extensions/ExtensionsSection.js +2 -2
  493. package/dist/settings/sections/host-catalog/HostCatalogSection.js +4 -4
  494. package/dist/settings/sections/index.js +8 -8
  495. package/dist/settings/sections/instructions/InstructionsSection.js +3 -3
  496. package/dist/settings/sections/keybindings/KeybindingsSection.js +2 -2
  497. package/dist/settings/sections/logs/LogsSection.js +1 -1
  498. package/dist/settings/sections/mcp/McpAddForm.js +48 -22
  499. package/dist/settings/sections/mcp/McpSection.js +14 -2
  500. package/dist/settings/sections/mcp/McpServerRow.d.ts +3 -1
  501. package/dist/settings/sections/mcp/McpServerRow.js +104 -10
  502. package/dist/settings/sections/mcp/labels.d.ts +18 -0
  503. package/dist/settings/sections/mcp/labels.js +18 -0
  504. package/dist/settings/sections/models/AgentDefaults.js +4 -4
  505. package/dist/settings/sections/models/ModelListPicker.js +1 -1
  506. package/dist/settings/sections/models/ModelPickField.js +1 -1
  507. package/dist/settings/sections/models/ModelRows.js +2 -2
  508. package/dist/settings/sections/models/model-test.js +1 -1
  509. package/dist/settings/sections/performance/PerfSparkline.js +1 -1
  510. package/dist/settings/sections/performance/PerformanceSection.js +14 -14
  511. package/dist/settings/sections/plugins/PluginsSection.js +1 -1
  512. package/dist/settings/sections/providers/CredentialSources.js +3 -3
  513. package/dist/settings/sections/providers/ProvidersSection.js +1 -1
  514. package/dist/settings/sections/providers/ServerProvidersSection.js +1 -1
  515. package/dist/settings/sections/providers/ServerSignIn.js +2 -2
  516. package/dist/settings/sections/shared/catalog.js +2 -2
  517. package/dist/settings/sections/skills/SkillList.js +5 -5
  518. package/dist/settings/sections/skills/SkillsSection.js +3 -3
  519. package/dist/settings/server-app.d.ts +41 -0
  520. package/dist/settings/server-app.js +155 -0
  521. package/dist/settings/testing/accounts.contract.d.ts +1 -1
  522. package/dist/settings/testing/accounts.contract.js +10 -1
  523. package/dist/styles.css +686 -30
  524. package/dist/terminal/HostTerminalSurface.js +4 -3
  525. package/dist/terminal/TerminalDrawer.js +2 -2
  526. package/dist/terminal/TerminalPanel.js +3 -3
  527. package/dist/terminal/TerminalProvider.d.ts +13 -2
  528. package/dist/terminal/TerminalProvider.js +15 -7
  529. package/dist/terminal/TerminalSurface.d.ts +3 -1
  530. package/dist/terminal/TerminalSurface.js +5 -4
  531. package/dist/terminal/assets.d.ts +10 -0
  532. package/dist/terminal/assets.js +23 -0
  533. package/dist/terminal/fonts/LICENSE +21 -0
  534. package/dist/terminal/fonts/SymbolsNerdFontMono-Regular.woff2 +0 -0
  535. package/dist/terminal/ghostty.d.ts +3 -1
  536. package/dist/terminal/ghostty.js +25 -4
  537. package/dist/terminal/index.d.ts +2 -2
  538. package/dist/theme/derive.d.ts +3 -2
  539. package/dist/theme/derive.js +3 -2
  540. package/dist/uno.js +2 -1
  541. package/dist/url-imports.d.ts +6 -0
  542. package/dist/views/BoolMark.d.ts +15 -0
  543. package/dist/views/BoolMark.js +28 -0
  544. package/dist/views/SvgImage.d.ts +19 -0
  545. package/dist/views/SvgImage.js +89 -0
  546. package/dist/views/TranscriptViews.d.ts +31 -0
  547. package/dist/views/TranscriptViews.js +59 -0
  548. package/dist/views/ViewAutoRefresh.d.ts +23 -0
  549. package/dist/views/ViewAutoRefresh.js +73 -0
  550. package/dist/views/ViewBlock.d.ts +40 -0
  551. package/dist/views/ViewBlock.js +482 -0
  552. package/dist/views/ViewCharts.d.ts +20 -0
  553. package/dist/views/ViewCharts.js +331 -0
  554. package/dist/views/ViewControls.d.ts +49 -0
  555. package/dist/views/ViewControls.js +208 -0
  556. package/dist/views/ViewCustom.d.ts +40 -0
  557. package/dist/views/ViewCustom.js +354 -0
  558. package/dist/views/ViewExpanded.d.ts +32 -0
  559. package/dist/views/ViewExpanded.js +107 -0
  560. package/dist/views/ViewExtension.d.ts +21 -0
  561. package/dist/views/ViewExtension.js +125 -0
  562. package/dist/views/ViewInputs.d.ts +24 -0
  563. package/dist/views/ViewInputs.js +561 -0
  564. package/dist/views/ViewMcpApp.d.ts +26 -0
  565. package/dist/views/ViewMcpApp.js +569 -0
  566. package/dist/views/ViewNodes.d.ts +92 -0
  567. package/dist/views/ViewNodes.js +1073 -0
  568. package/dist/views/ViewPreviewPage.d.ts +42 -0
  569. package/dist/views/ViewPreviewPage.js +214 -0
  570. package/dist/views/ViewTables.d.ts +15 -0
  571. package/dist/views/ViewTables.js +305 -0
  572. package/dist/views/ViewsProvider.d.ts +32 -0
  573. package/dist/views/ViewsProvider.js +50 -0
  574. package/dist/views/badge-tone.d.ts +20 -0
  575. package/dist/views/badge-tone.js +100 -0
  576. package/dist/views/expanded.d.ts +7 -0
  577. package/dist/views/expanded.js +14 -0
  578. package/dist/views/format.d.ts +18 -0
  579. package/dist/views/format.js +37 -0
  580. package/dist/views/headless/answers.d.ts +50 -0
  581. package/dist/views/headless/answers.js +85 -0
  582. package/dist/views/headless/custom-slots.d.ts +35 -0
  583. package/dist/views/headless/custom-slots.js +59 -0
  584. package/dist/views/headless/download.d.ts +10 -0
  585. package/dist/views/headless/download.js +26 -0
  586. package/dist/views/headless/frame-name.d.ts +17 -0
  587. package/dist/views/headless/frame-name.js +24 -0
  588. package/dist/views/headless/host.d.ts +197 -0
  589. package/dist/views/headless/host.js +0 -0
  590. package/dist/views/headless/index.d.ts +13 -0
  591. package/dist/views/headless/index.js +12 -0
  592. package/dist/views/headless/labels.d.ts +144 -0
  593. package/dist/views/headless/labels.js +147 -0
  594. package/dist/views/headless/live.d.ts +12 -0
  595. package/dist/views/headless/live.js +50 -0
  596. package/dist/views/headless/lru.d.ts +31 -0
  597. package/dist/views/headless/lru.js +62 -0
  598. package/dist/views/headless/mcp-app-bridge.d.ts +128 -0
  599. package/dist/views/headless/mcp-app-bridge.js +330 -0
  600. package/dist/views/headless/placement.d.ts +98 -0
  601. package/dist/views/headless/placement.js +227 -0
  602. package/dist/views/headless/records.d.ts +53 -0
  603. package/dist/views/headless/records.js +114 -0
  604. package/dist/views/headless/refs.d.ts +10 -0
  605. package/dist/views/headless/refs.js +13 -0
  606. package/dist/views/headless/safe.d.ts +35 -0
  607. package/dist/views/headless/safe.js +58 -0
  608. package/dist/views/headless/store.d.ts +54 -0
  609. package/dist/views/headless/store.js +228 -0
  610. package/dist/views/headless/streaming.d.ts +43 -0
  611. package/dist/views/headless/streaming.js +136 -0
  612. package/dist/views/headless/view-state.d.ts +20 -0
  613. package/dist/views/headless/view-state.js +55 -0
  614. package/dist/views/index.d.ts +2 -0
  615. package/dist/views/index.js +1 -0
  616. package/dist/views/input-preview.d.ts +5 -0
  617. package/dist/views/input-preview.js +11 -0
  618. package/dist/views/preview-style.d.ts +10 -0
  619. package/dist/views/preview-style.js +262 -0
  620. package/dist/views/preview.d.ts +2 -0
  621. package/dist/views/preview.js +1 -0
  622. package/dist/views/testing/contract.d.ts +50 -0
  623. package/dist/views/testing/contract.js +266 -0
  624. package/dist/views/testing/fixture-host.d.ts +29 -0
  625. package/dist/views/testing/fixture-host.js +77 -0
  626. package/dist/views/testing/index.d.ts +2 -0
  627. package/dist/views/testing/index.js +1 -0
  628. package/dist/views/theme-watch.d.ts +28 -0
  629. package/dist/views/theme-watch.js +65 -0
  630. package/dist/views/trusted.d.ts +17 -0
  631. package/dist/views/trusted.js +17 -0
  632. package/dist/views/viewport.d.ts +30 -0
  633. package/dist/views/viewport.js +87 -0
  634. package/dist/workspace/LayoutBudget.js +1 -1
  635. package/dist/workspace/PanelContentView.js +2 -2
  636. package/dist/workspace/PanelGroups.js +1 -1
  637. package/dist/workspace/PanelHome.js +1 -1
  638. package/dist/workspace/PanelItems.js +2 -2
  639. package/dist/workspace/PanelStrip.js +2 -2
  640. package/dist/workspace/PanelToolbar.js +2 -2
  641. package/dist/workspace/SidePanel.js +4 -4
  642. package/dist/workspace/TabParking.js +2 -2
  643. package/dist/workspace/WorkspaceProvider.js +1 -1
  644. package/dist/workspace/dnd/parking.js +2 -2
  645. package/dist/workspace/extension-tabs.js +2 -2
  646. package/package.json +49 -2
  647. package/src/styles/components.css +421 -0
  648. package/src/styles/files.css +15 -0
  649. package/src/styles/primitives.css +10 -0
  650. package/src/styles/tokens.css +20 -1
  651. package/src/styles/transcript.css +174 -18
  652. package/dist/dist/index-f-XWIoYo.d.ts +0 -1
  653. package/dist/dist/sandbox-B4OW6oNx.d.ts +0 -2
  654. /package/dist/dist/{types-2HrgolQz.d.ts → types-CgfAUN48.d.ts} +0 -0
@@ -4,8 +4,8 @@ import { RowActionsMenu } from "../../components/RowActionsMenu.js";
4
4
  import { useMergedKeybindings } from "../../keybindings/KeybindingsProvider.js";
5
5
  import { KeyHint } from "../../keybindings/KeyHint.js";
6
6
  import { useSidebarLabels } from "./useSidebarLabels.js";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
7
  import { useEffect, useLayoutEffect, useRef, useState } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { motion } from "motion/react";
10
10
  import { DEFAULT_SPACE_ID } from "zidane/chat/pure";
11
11
  //#region src/chat/sidebar/SpaceSwitcher.tsx
@@ -7,8 +7,8 @@ import { useConfirm } from "../../app/useConfirm.js";
7
7
  import { useSidebarLabels } from "./useSidebarLabels.js";
8
8
  import { IconPicker } from "./ProjectIcon.js";
9
9
  import { SpaceGlyph } from "./SpaceSwitcher.js";
10
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
10
  import { useEffect, useState } from "react";
11
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
12
12
  import { DEFAULT_SPACE_ID, newSpaceId, normalizeSpaces } from "zidane/chat/pure";
13
13
  //#region src/chat/sidebar/SpacesSection.tsx
14
14
  /**
@@ -170,7 +170,7 @@ function SpaceRow({ space, first, last, onRename, onIcon, onMove, onDelete, chil
170
170
  function SpaceIconButton({ space, onIcon }) {
171
171
  const labels = useSidebarLabels();
172
172
  const popover = usePopover();
173
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
173
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("button", {
174
174
  ref: (node) => {
175
175
  popover.triggerRef.current = node;
176
176
  },
@@ -18,8 +18,8 @@ import { deriveDotState } from "../headless/sidebar/dot-state.js";
18
18
  import { EnvironmentChip, ProjectChip } from "./RowChips.js";
19
19
  import { useSessionActivity } from "./useSessionActivity.js";
20
20
  import { useSessionBadges } from "./useSessionBadges.js";
21
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
22
21
  import { memo, useCallback, useEffect, useMemo, useReducer, useState } from "react";
22
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
23
23
  import { isRunEstimated, sessionBadgeTarget } from "zidane/chat/pure";
24
24
  //#region src/chat/sidebar/sidebar-live.tsx
25
25
  /**
@@ -145,7 +145,7 @@ function CardList({ title, count, children }) {
145
145
  function CardRow({ row, onOpen, onMenu }) {
146
146
  const onContextMenu = onMenu ? (e) => onMenu(e, row) : void 0;
147
147
  const className = "flex items-baseline gap-2 min-w-0 px-2 py-1.5 rounded-zg-md text-zg-label leading-4 text-[var(--zg-text)] no-underline";
148
- const body = /* @__PURE__ */ jsxs(Fragment, { children: [
148
+ const body = /* @__PURE__ */ jsxs(Fragment$1, { children: [
149
149
  row.icon?.gui && /* @__PURE__ */ jsx("span", {
150
150
  "aria-hidden": true,
151
151
  className: `${row.icon.gui} shrink-0 text-zg-label translate-y-[2px] ${badgeToneClass(row.tone)}`,
@@ -326,7 +326,7 @@ function createSidebarLive(options) {
326
326
  function RunTime({ sessionId }) {
327
327
  const estimate = useSessionEstimate(sessionId);
328
328
  if (estimate && isRunEstimated(estimate)) return /* @__PURE__ */ jsx(EstimateChip, { estimate });
329
- return /* @__PURE__ */ jsxs(Fragment, { children: [estimate && /* @__PURE__ */ jsx(RunEstimateChip, { estimate }), /* @__PURE__ */ jsx(Elapsed, { sessionId })] });
329
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [estimate && /* @__PURE__ */ jsx(RunEstimateChip, { estimate }), /* @__PURE__ */ jsx(Elapsed, { sessionId })] });
330
330
  }
331
331
  /**
332
332
  * The estimate chip. Its tooltip says how long the run has gone, read from the run's start when the
@@ -1,5 +1,5 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
1
  import { memo, useMemo } from "react";
2
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { hasAnsi, parseAnsi } from "zidane/chat/pure";
4
4
  //#region src/chat/transcript/AnsiText.tsx
5
5
  /**
@@ -56,7 +56,7 @@ function Span({ span }) {
56
56
  * @param props - The {@link AnsiSpansProps}.
57
57
  */
58
58
  const AnsiSpans = memo(function AnsiSpans({ spans }) {
59
- return /* @__PURE__ */ jsx(Fragment, { children: spans.map((span, i) => /* @__PURE__ */ jsx(Span, { span }, i)) });
59
+ return /* @__PURE__ */ jsx(Fragment$1, { children: spans.map((span, i) => /* @__PURE__ */ jsx(Span, { span }, i)) });
60
60
  });
61
61
  /**
62
62
  * Terminal output in the theme's colors, a line per line; parsed only when it holds an escape (else the text as
@@ -66,8 +66,8 @@ const AnsiSpans = memo(function AnsiSpans({ spans }) {
66
66
  */
67
67
  const AnsiText = memo(function AnsiText({ text }) {
68
68
  const lines = useMemo(() => hasAnsi(text) ? parseAnsi(text) : null, [text]);
69
- if (!lines) return /* @__PURE__ */ jsx(Fragment, { children: text });
70
- return /* @__PURE__ */ jsx(Fragment, { children: lines.map((spans, i) => /* @__PURE__ */ jsxs("span", { children: [i > 0 && "\n", /* @__PURE__ */ jsx(AnsiSpans, { spans })] }, i)) });
69
+ if (!lines) return /* @__PURE__ */ jsx(Fragment$1, { children: text });
70
+ return /* @__PURE__ */ jsx(Fragment$1, { children: lines.map((spans, i) => /* @__PURE__ */ jsxs("span", { children: [i > 0 && "\n", /* @__PURE__ */ jsx(AnsiSpans, { spans })] }, i)) });
71
71
  });
72
72
  //#endregion
73
73
  export { AnsiSpans, AnsiText };
@@ -8,8 +8,8 @@ import { useTranscriptActions } from "./actions.js";
8
8
  import { failureTooltip } from "../headless/transcript/run-failures.js";
9
9
  import { authFailureDetails, createAuthFixes, isAuthFixed, planAuthCard } from "../headless/transcript/auth-failure.js";
10
10
  import { useSignIn } from "../../onboarding/useSignIn.js";
11
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
11
  import { memo, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
12
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
13
  import { CONTINUE_PROMPT, authOffersSignInFallback, authPrimaryAction } from "zidane/chat/pure";
14
14
  //#region src/chat/transcript/AuthFailureCard.tsx
15
15
  /**
@@ -333,7 +333,7 @@ function SignInProgress({ state, submit, onCancel }) {
333
333
  /* @__PURE__ */ jsxs("form", {
334
334
  className: "flex flex-wrap items-center gap-1.5",
335
335
  onSubmit: send,
336
- children: [takesInput && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("input", {
336
+ children: [takesInput && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("input", {
337
337
  type: "text",
338
338
  autoComplete: "off",
339
339
  spellCheck: false,
@@ -7,8 +7,8 @@ import { openInNewTab } from "../../extensions/headless/links.js";
7
7
  import { useLinkRouter } from "../../extensions/links.js";
8
8
  import { extensionsBadgeActions } from "../headless/extension-sources.js";
9
9
  import { useChatLabels } from "../useChatLabels.js";
10
- import { jsx, jsxs } from "react/jsx-runtime";
11
10
  import { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
12
  import { builtinBadgeActions, builtinBadgeEffect, mergeBadgeMenu } from "zidane/chat/pure";
13
13
  //#region src/chat/transcript/BadgeMenu.tsx
14
14
  /**
@@ -1,7 +1,7 @@
1
1
  import { useLinkRouter } from "../../extensions/links.js";
2
2
  import { INLINE_CODE_CLASS } from "./markdown-context.js";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { memo, useLayoutEffect, useRef, useState } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  import ReactMarkdown from "react-markdown";
6
6
  import remarkGfm from "remark-gfm";
7
7
  //#region src/chat/transcript/CardMarkdown.tsx
@@ -3,8 +3,8 @@ import { CommandScopeContext, OpenSessionContext } from "./markdown-context.js";
3
3
  import { ChipCard } from "./ChipCard.js";
4
4
  import { commandView, commitView, sessionView, skillView } from "../headless/chip-views.js";
5
5
  import { useCommand, useCommitInfo, useReferencedSession, useSkill } from "./chip-details.js";
6
- import { jsx } from "react/jsx-runtime";
7
6
  import { useContext } from "react";
7
+ import { jsx } from "react/jsx-runtime";
8
8
  //#region src/chat/transcript/ChipCards.tsx
9
9
  /**
10
10
  * The hover cards of the kit's own chips, on the shared `ChipCard`: a
@@ -8,8 +8,8 @@ import { FailedMark } from "./frame.js";
8
8
  import { Rolling } from "./rolling.js";
9
9
  import { highlightedLines } from "../../code/highlight-lines.js";
10
10
  import { LiveOutput } from "./LiveOutput.js";
11
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
11
  import { memo, useEffect, useMemo, useRef, useState } from "react";
12
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
13
  import { SCRIPT_OUTPUT_TAIL_LINES, formatRunDuration, scriptProgressView } from "zidane/chat/pure";
14
14
  //#region src/chat/transcript/CodemodeScript.tsx
15
15
  /**
@@ -103,7 +103,8 @@ const CodemodeScript = memo(function CodemodeScript({ code, progress, finished =
103
103
  loop: loops.starts.get(line.number),
104
104
  inLoop: loops.active.has(line.number),
105
105
  calls: line.calls,
106
- until: line.until
106
+ until: line.until,
107
+ span: line.span
107
108
  }, line.number))
108
109
  })
109
110
  })
@@ -140,7 +141,7 @@ function loopLines(loops) {
140
141
  active
141
142
  };
142
143
  }
143
- const ScriptLine = memo(function ScriptLine({ number, label, text, tokens, state, tracked, error, loop, inLoop, calls, until }) {
144
+ const ScriptLine = memo(function ScriptLine({ number, label, text, tokens, state, tracked, error, loop, inLoop, calls, until, span }) {
144
145
  const labels = useChatLabels();
145
146
  const previous = useRef(state);
146
147
  const [settling, setSettling] = useState(false);
@@ -148,20 +149,24 @@ const ScriptLine = memo(function ScriptLine({ number, label, text, tokens, state
148
149
  if (previous.current !== state && state === "done") setSettling(true);
149
150
  previous.current = state;
150
151
  }, [state]);
151
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
152
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
152
153
  className: "zg-script-line",
153
154
  "data-line": number,
154
155
  "data-state": tracked ? state : void 0,
155
156
  "data-in-loop": tracked && inLoop ? "" : void 0,
157
+ "data-span": tracked ? span : void 0,
156
158
  "data-settling": settling ? "" : void 0,
157
159
  onAnimationEnd: settling ? () => setSettling(false) : void 0,
158
160
  children: [/* @__PURE__ */ jsxs("span", {
159
161
  className: "zg-script-gutter",
160
- children: [tracked && /* @__PURE__ */ jsx(LineMark, {
162
+ children: [tracked && (span === "mid" || span === "end" ? /* @__PURE__ */ jsx("span", {
163
+ className: "zg-script-mark",
164
+ "aria-hidden": true
165
+ }) : /* @__PURE__ */ jsx(LineMark, {
161
166
  state,
162
167
  calls,
163
168
  loop
164
- }), /* @__PURE__ */ jsx("span", {
169
+ })), /* @__PURE__ */ jsx("span", {
165
170
  className: "zg-script-number",
166
171
  "aria-hidden": true,
167
172
  children: label
@@ -1,5 +1,5 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
1
  import { memo, useMemo } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  //#region src/chat/transcript/DiffLines.tsx
4
4
  /**
5
5
  * Shared row-renderer for `DiffLine[]` — the single source of truth for
@@ -1,6 +1,6 @@
1
1
  import { useChatLabels } from "../useChatLabels.js";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
2
  import { useEffect, useRef } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  //#region src/chat/transcript/EarlierHistory.tsx
5
5
  /** Pages auto-loaded per activation before the explicit row takes over. */
6
6
  const AUTO_FILL_PAGES = 3;
@@ -1,8 +1,8 @@
1
1
  import { CopyButton } from "../../components/CopyButton.js";
2
2
  import { useDisplayPath } from "../../hooks/useDisplayPath.js";
3
3
  import { DiffLines } from "./DiffLines.js";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
4
  import { memo, useMemo } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { computeLineDiff, summarizeOutcomes } from "zidane/chat/pure";
7
7
  //#region src/chat/transcript/EditDiffBlock.tsx
8
8
  /**
@@ -10,8 +10,8 @@ import { CommitCard } from "./ChipCards.js";
10
10
  import { useChipResolution, useResolveChipNow } from "./chip-resolve.js";
11
11
  import { ReferenceChip } from "./ReferenceText.js";
12
12
  import { classifyInlineRef, refHref } from "./remark-refs.js";
13
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
13
  import { useContext, useRef, useState } from "react";
14
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
15
15
  import { GITHUB_ISSUE_PROVIDER_ID, GITHUB_PULL_PROVIDER_ID, githubRefKey } from "zidane/chat/pure";
16
16
  //#region src/chat/transcript/FileChip.tsx
17
17
  /**
@@ -93,7 +93,7 @@ function PlainRefChip({ parsed, label, link }) {
93
93
  ...href ? { href } : {}
94
94
  });
95
95
  const card = parsed.kind === "sha" && cwd !== null;
96
- const inner = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
96
+ const inner = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
97
97
  "aria-hidden": true,
98
98
  className: `zg-badge-icon ${icon}`
99
99
  }), parsed.kind === "sha" ? /* @__PURE__ */ jsx("span", {
@@ -172,7 +172,7 @@ function surelyPath(chip) {
172
172
  return chip !== null && (chip.kind === "file" || chip.path.endsWith("/"));
173
173
  }
174
174
  function ChipFace({ chip }) {
175
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(FileBadgeIcon, { chip }), /* @__PURE__ */ jsx("span", {
175
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(FileBadgeIcon, { chip }), /* @__PURE__ */ jsx("span", {
176
176
  className: "zg-badge-code",
177
177
  children: fileBadgeName(chip)
178
178
  })] });
@@ -197,7 +197,7 @@ function BranchChip({ branch, text }) {
197
197
  ...href ? { href } : {}
198
198
  });
199
199
  const onClick = useLinkRouter().anchorClick(href ?? void 0, { source: "chip" });
200
- const inner = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
200
+ const inner = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
201
201
  "aria-hidden": true,
202
202
  className: "zg-badge-icon i-ph-git-branch"
203
203
  }), /* @__PURE__ */ jsx("span", {
@@ -299,7 +299,7 @@ function LocalFileChip({ chip, resolution }) {
299
299
  onContextMenu,
300
300
  children: inner
301
301
  });
302
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ChipButton, {
302
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(ChipButton, {
303
303
  anchorRef,
304
304
  title: failed ? labels.chipNotFound(title) : title,
305
305
  failed,
@@ -2,8 +2,8 @@ import { useLightbox } from "../../components/Lightbox.js";
2
2
  import { useChatLabels } from "../useChatLabels.js";
3
3
  import { useTranscriptActions } from "./actions.js";
4
4
  import { useToolMedia } from "./tool-media.js";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
5
  import { useEffect, useRef, useState } from "react";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region src/chat/transcript/ImageGenerationBlock.tsx
8
8
  /**
9
9
  * A `generate_image` call, drawn in the row itself rather than behind its
@@ -1,6 +1,6 @@
1
1
  import { scrollRootOf } from "../../hooks/useNearViewport.js";
2
- import { jsx } from "react/jsx-runtime";
3
2
  import { createContext, useContext, useEffect, useRef, useState, useSyncExternalStore } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
4
  import { flushSync } from "react-dom";
5
5
  //#region src/chat/transcript/LazyRow.tsx
6
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { Grow, GrowPresence } from "../../motion/grow.js";
2
2
  import { AnsiSpans } from "./AnsiText.js";
3
- import { jsx } from "react/jsx-runtime";
4
3
  import { useState } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
5
  //#region src/chat/transcript/LiveOutput.tsx
6
6
  /**
7
7
  * The last lines a running thing wrote, live: a codemode script's prints and
@@ -10,13 +10,79 @@ interface MermaidDiagramProps {
10
10
  className?: string;
11
11
  /** Inline styles on the root element, merged after the component's own. */
12
12
  style?: CSSProperties;
13
+ /** Drawn in a view: direction by shape, scaled to the frame, the view's diagram style (docs/VIEWS-STYLE.md, Diagrams). */
14
+ view?: boolean;
15
+ /** No controls and no zoom: a drawing for a preview or a snapshot. */
16
+ still?: boolean;
17
+ /**
18
+ * In a view: the node ids of the path the question is about, in order. Those nodes and the edges
19
+ * between them draw in the accent, and a key line under the diagram names the path (DG5).
20
+ */
21
+ highlight?: readonly string[];
13
22
  }
23
+ /** A drawing's size, as Pele lays it out. */
24
+ interface DiagramSize {
25
+ width: number;
26
+ height: number;
27
+ }
28
+ /** Wider than this many times its height, a flowchart with no direction of its own draws top-down (DG2). */
29
+ declare const DIAGRAM_WIDE_RATIO = 3;
30
+ /** The smallest text a view's diagram draws, in px (TY14): a drawing that would shrink its text under it scrolls sideways instead. */
31
+ declare const VIEW_TEXT_MIN_PX = 11;
32
+ /**
33
+ * The source a view draws for a flowchart, by its shape at `width` (DG1, DG2). A source with no direction
34
+ * draws left to right while that fits and stays within {@link DIAGRAM_WIDE_RATIO}:1, else top-down. A source
35
+ * that sets `LR` or `RL` keeps it unless it would have to shrink (its text under 12 px) to fit: then
36
+ * top-down, when that is narrower. Any other source, or no width, as written.
37
+ *
38
+ * @param code - The Mermaid source.
39
+ * @param measure - Lays a source out at `width` (null: it does not draw).
40
+ * @param width - The frame's inner width, in px.
41
+ */
42
+ declare function viewSource(code: string, measure: (source: string) => DiagramSize | null, width: number): string;
43
+ /**
44
+ * The scale a view draws a drawing at in a frame `width` wide (DG1): down to fit, up (at most
45
+ * {@link VIEW_SCALE_MAX}) until it is {@link VIEW_WIDTH_SHARE} of the frame wide or
46
+ * {@link VIEW_GROW_HEIGHT} px tall, else as laid out.
47
+ *
48
+ * @param size - The drawing's laid-out size.
49
+ * @param width - The frame's inner width, in px.
50
+ */
51
+ declare function viewScale(size: DiagramSize, width: number): number;
52
+ /**
53
+ * The smallest scale that keeps every label at {@link VIEW_TEXT_MIN_PX} or more (TY14), from the
54
+ * smallest font size the drawing uses; 0 when it has no text.
55
+ *
56
+ * @param fontSizes - The font sizes of the drawing's text, as laid out (unscaled), in px.
57
+ */
58
+ declare function viewMinScale(fontSizes: readonly number[]): number;
59
+ /**
60
+ * A view draws an edge the source styles in the accent (DG5). A source that styles every edge
61
+ * (`linkStyle default`, or one line per edge) means its most common style as the plain one: those
62
+ * edges lose their style, so only the ones that differ stand out.
63
+ */
64
+ declare function plainCommonEdges(root: Element): void;
65
+ /**
66
+ * Marks the path `ids` (`data-zg-path`): each node it names, and each edge whose two ends it names
67
+ * (Pele files an edge as `L_<from>_<to>_<n>`). Answers the labels of the nodes it found, in order.
68
+ *
69
+ * @param root - The drawn SVG's container.
70
+ * @param ids - The path's node ids.
71
+ */
72
+ declare function markPath(root: Element, ids: readonly string[]): string[];
73
+ /**
74
+ * The source without its `%%{init: …}%%` directives: in a view the kit owns the spacing and the
75
+ * theme (tuning round 4: a `nodeSpacing: 15` drew a narrow strip in a wide frame).
76
+ *
77
+ * @param code - The Mermaid source.
78
+ */
79
+ declare function withoutInit(code: string): string;
14
80
  /**
15
81
  * Draws a Mermaid source as a themed SVG diagram, with zoom and a toggle to its source. Falls back to
16
82
  * the highlighted source when Pele cannot draw it.
17
83
  *
18
84
  * @param props - The {@link MermaidDiagramProps}.
19
85
  */
20
- declare const MermaidDiagram: import("react").MemoExoticComponent<({ code, streaming, className, style }: MermaidDiagramProps) => import("react").JSX.Element>;
86
+ declare const MermaidDiagram: import("react").MemoExoticComponent<({ code, streaming, className, style, view, still, highlight }: MermaidDiagramProps) => import("react").JSX.Element>;
21
87
  //#endregion
22
- export { MermaidDiagram, MermaidDiagramProps };
88
+ export { DIAGRAM_WIDE_RATIO, DiagramSize, MermaidDiagram, MermaidDiagramProps, VIEW_TEXT_MIN_PX, markPath, plainCommonEdges, viewMinScale, viewScale, viewSource, withoutInit };