zidane-ui 9.4.0 → 9.5.0

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 (527) hide show
  1. package/dist/adapters/index.d.ts +2 -1
  2. package/dist/adapters/index.js +2 -1
  3. package/dist/adapters/live.d.ts +7 -2
  4. package/dist/adapters/live.js +5 -2
  5. package/dist/adapters/server-approvals-host.js +3 -1
  6. package/dist/adapters/server-channels-host.d.ts +32 -0
  7. package/dist/adapters/server-channels-host.js +49 -0
  8. package/dist/adapters/server-composer-host.js +13 -0
  9. package/dist/adapters/server-files-host.js +12 -31
  10. package/dist/adapters/server-host.js +27 -3
  11. package/dist/adapters/server-machines-host.d.ts +5 -0
  12. package/dist/adapters/server-machines-host.js +13 -6
  13. package/dist/adapters/server-oauth-flow.d.ts +2 -1
  14. package/dist/adapters/server-projects.d.ts +15 -0
  15. package/dist/adapters/server-projects.js +225 -0
  16. package/dist/adapters/server-session-host.d.ts +2 -0
  17. package/dist/adapters/server-session-host.js +20 -1
  18. package/dist/app/AppHostProvider.d.ts +1 -1
  19. package/dist/app/AppHostProvider.js +7 -2
  20. package/dist/app/ModalProvider.d.ts +6 -2
  21. package/dist/app/ModalProvider.js +38 -10
  22. package/dist/app/headless/app-host.d.ts +3 -0
  23. package/dist/approvals/ApprovalsProvider.d.ts +2 -1
  24. package/dist/approvals/ApprovalsProvider.js +12 -4
  25. package/dist/approvals/headless/host.d.ts +13 -2
  26. package/dist/approvals/headless/index.d.ts +3 -3
  27. package/dist/approvals/headless/index.js +2 -2
  28. package/dist/approvals/headless/labels.d.ts +12 -2
  29. package/dist/approvals/headless/labels.js +19 -1
  30. package/dist/channels/BindingEditorDialog.d.ts +18 -0
  31. package/dist/channels/BindingEditorDialog.js +637 -0
  32. package/dist/channels/ChannelAlertsList.d.ts +25 -0
  33. package/dist/channels/ChannelAlertsList.js +107 -0
  34. package/dist/channels/ChannelDefaultsSection.d.ts +20 -0
  35. package/dist/channels/ChannelDefaultsSection.js +133 -0
  36. package/dist/channels/ChannelsProvider.d.ts +31 -0
  37. package/dist/channels/ChannelsProvider.js +29 -0
  38. package/dist/channels/ChannelsSettingsSection.d.ts +40 -0
  39. package/dist/channels/ChannelsSettingsSection.js +456 -0
  40. package/dist/channels/ConnectionSetupDialog.d.ts +16 -0
  41. package/dist/channels/ConnectionSetupDialog.js +470 -0
  42. package/dist/channels/HeldRepliesList.d.ts +27 -0
  43. package/dist/channels/HeldRepliesList.js +173 -0
  44. package/dist/channels/ProjectChannelsSection.d.ts +55 -0
  45. package/dist/channels/ProjectChannelsSection.js +433 -0
  46. package/dist/channels/ReadinessChecklist.d.ts +102 -0
  47. package/dist/channels/ReadinessChecklist.js +273 -0
  48. package/dist/channels/TestSessionBanner.d.ts +24 -0
  49. package/dist/channels/TestSessionBanner.js +44 -0
  50. package/dist/channels/channels-parts.d.ts +104 -0
  51. package/dist/channels/channels-parts.js +203 -0
  52. package/dist/channels/context.d.ts +9 -0
  53. package/dist/channels/context.js +14 -0
  54. package/dist/channels/headless/access.d.ts +127 -0
  55. package/dist/channels/headless/access.js +187 -0
  56. package/dist/channels/headless/fixture-host.d.ts +83 -0
  57. package/dist/channels/headless/fixture-host.js +557 -0
  58. package/dist/channels/headless/host.d.ts +245 -0
  59. package/dist/channels/headless/host.js +39 -0
  60. package/dist/channels/headless/index.d.ts +10 -0
  61. package/dist/channels/headless/index.js +5 -0
  62. package/dist/channels/headless/labels.d.ts +217 -0
  63. package/dist/channels/headless/labels.js +260 -0
  64. package/dist/channels/headless/state.d.ts +22 -0
  65. package/dist/channels/headless/state.js +303 -0
  66. package/dist/channels/index.d.ts +21 -0
  67. package/dist/channels/index.js +13 -0
  68. package/dist/channels/testing/contract.d.ts +31 -0
  69. package/dist/channels/testing/contract.js +378 -0
  70. package/dist/channels/testing/index.d.ts +7 -0
  71. package/dist/channels/testing/index.js +1 -0
  72. package/dist/chat/HostBadge.js +1 -0
  73. package/dist/chat/OrchestratorBadge.d.ts +23 -0
  74. package/dist/chat/OrchestratorBadge.js +22 -0
  75. package/dist/chat/SessionGroupHeader.d.ts +11 -1
  76. package/dist/chat/SessionGroupHeader.js +25 -14
  77. package/dist/chat/SessionRow.d.ts +141 -0
  78. package/dist/chat/SessionRow.js +215 -0
  79. package/dist/chat/StatusDot.d.ts +7 -2
  80. package/dist/chat/StatusDot.js +3 -2
  81. package/dist/chat/composer/ContextBreakdown.d.ts +27 -2
  82. package/dist/chat/composer/ContextBreakdown.js +123 -2
  83. package/dist/chat/composer/DraftPickers.js +2 -0
  84. package/dist/chat/composer/HostContextOrb.d.ts +2 -0
  85. package/dist/chat/composer/HostContextOrb.js +17 -2
  86. package/dist/chat/composer/ProjectMenu.d.ts +16 -3
  87. package/dist/chat/composer/ProjectMenu.js +102 -20
  88. package/dist/chat/composer/ScopeToggle.d.ts +3 -1
  89. package/dist/chat/composer/ScopeToggle.js +2 -1
  90. package/dist/chat/composer/ServerScopeToggle.d.ts +3 -1
  91. package/dist/chat/composer/ServerScopeToggle.js +2 -1
  92. package/dist/chat/composer/index.d.ts +2 -2
  93. package/dist/chat/composer/index.js +2 -2
  94. package/dist/chat/composer/use-draft-target.d.ts +5 -0
  95. package/dist/chat/composer/use-draft-target.js +3 -0
  96. package/dist/chat/composer/use-send-prompt.d.ts +2 -0
  97. package/dist/chat/composer/use-send-prompt.js +4 -1
  98. package/dist/chat/headless/answered-first.d.ts +28 -0
  99. package/dist/chat/headless/answered-first.js +14 -0
  100. package/dist/chat/headless/chip-labels.d.ts +2 -0
  101. package/dist/chat/headless/chip-labels.js +2 -0
  102. package/dist/chat/headless/composer/composer-sources.d.ts +5 -2
  103. package/dist/chat/headless/composer/composer-sources.js +6 -0
  104. package/dist/chat/headless/composer/host.d.ts +13 -0
  105. package/dist/chat/headless/composer/index.d.ts +2 -2
  106. package/dist/chat/headless/composer/labels-chrome.d.ts +3 -0
  107. package/dist/chat/headless/composer/labels-chrome.js +4 -1
  108. package/dist/chat/headless/composer/labels-editor.d.ts +2 -0
  109. package/dist/chat/headless/composer/labels-editor.js +2 -0
  110. package/dist/chat/headless/draft-target.d.ts +2 -0
  111. package/dist/chat/headless/folder-groups.d.ts +41 -0
  112. package/dist/chat/headless/folder-groups.js +76 -0
  113. package/dist/chat/headless/host.d.ts +16 -1
  114. package/dist/chat/headless/hosts.d.ts +1 -1
  115. package/dist/chat/headless/index.d.ts +10 -6
  116. package/dist/chat/headless/index.js +30 -26
  117. package/dist/chat/headless/labels.d.ts +34 -4
  118. package/dist/chat/headless/labels.js +28 -6
  119. package/dist/chat/headless/prompt-origin.d.ts +2 -2
  120. package/dist/chat/headless/prompt-origin.js +3 -3
  121. package/dist/chat/headless/send-flow.d.ts +2 -0
  122. package/dist/chat/headless/session-list.d.ts +28 -2
  123. package/dist/chat/headless/sidebar/directory.d.ts +5 -0
  124. package/dist/chat/headless/sidebar/directory.js +2 -0
  125. package/dist/chat/headless/sidebar/inbox.d.ts +13 -3
  126. package/dist/chat/headless/sidebar/inbox.js +40 -19
  127. package/dist/chat/headless/sidebar/index.d.ts +5 -3
  128. package/dist/chat/headless/sidebar/index.js +4 -2
  129. package/dist/chat/headless/sidebar/labels.d.ts +30 -7
  130. package/dist/chat/headless/sidebar/labels.js +0 -3
  131. package/dist/chat/headless/sidebar/project-main.d.ts +43 -0
  132. package/dist/chat/headless/sidebar/project-main.js +46 -0
  133. package/dist/chat/headless/sidebar/row-changes.d.ts +43 -0
  134. package/dist/chat/headless/sidebar/row-changes.js +43 -0
  135. package/dist/chat/headless/sidebar/rows.d.ts +2 -1
  136. package/dist/chat/headless/sidebar/rows.js +7 -3
  137. package/dist/chat/headless/sidebar/types.d.ts +12 -0
  138. package/dist/chat/headless/streams/live-events.d.ts +12 -0
  139. package/dist/chat/headless/streams/live-events.js +21 -2
  140. package/dist/chat/headless/streams/store.d.ts +17 -0
  141. package/dist/chat/headless/streams/store.js +38 -15
  142. package/dist/chat/headless/streams/types.d.ts +2 -1
  143. package/dist/chat/headless/transcript/collapse.js +3 -1
  144. package/dist/chat/headless/transcript/rail.d.ts +8 -1
  145. package/dist/chat/headless/transcript/rail.js +9 -2
  146. package/dist/chat/headless/transcript/rows.d.ts +5 -1
  147. package/dist/chat/headless/transcript-labels.d.ts +1 -0
  148. package/dist/chat/index.d.ts +5 -3
  149. package/dist/chat/index.js +7 -5
  150. package/dist/chat/interactions/HostInteractions.js +4 -2
  151. package/dist/chat/interactions/InboxPanel.js +6 -4
  152. package/dist/chat/interactions/use-answer-interaction.d.ts +11 -0
  153. package/dist/chat/interactions/use-answer-interaction.js +19 -0
  154. package/dist/chat/rich-composer/artifact-mentions.d.ts +29 -0
  155. package/dist/chat/rich-composer/artifact-mentions.js +40 -0
  156. package/dist/chat/rich-composer/composer-extensions.d.ts +3 -2
  157. package/dist/chat/rich-composer/composer-extensions.js +12 -9
  158. package/dist/chat/rich-composer/use-composer-sources.js +1 -0
  159. package/dist/chat/sidebar/InboxList.d.ts +13 -2
  160. package/dist/chat/sidebar/InboxList.js +44 -48
  161. package/dist/chat/sidebar/MainSessionRow.d.ts +2 -1
  162. package/dist/chat/sidebar/MainSessionRow.js +1 -1
  163. package/dist/chat/sidebar/ProjectIcon.d.ts +8 -4
  164. package/dist/chat/sidebar/ProjectIcon.js +15 -3
  165. package/dist/chat/sidebar/SessionSidebar.d.ts +41 -0
  166. package/dist/chat/sidebar/SessionSidebar.js +63 -13
  167. package/dist/chat/sidebar/SidebarFooter.d.ts +2 -23
  168. package/dist/chat/sidebar/SidebarFooter.js +2 -43
  169. package/dist/chat/sidebar/SidebarGroupHeader.d.ts +7 -3
  170. package/dist/chat/sidebar/SidebarGroupHeader.js +15 -10
  171. package/dist/chat/sidebar/SidebarLiveProvider.d.ts +22 -0
  172. package/dist/chat/sidebar/SidebarLiveProvider.js +20 -0
  173. package/dist/chat/sidebar/SidebarSessionRow.d.ts +6 -1
  174. package/dist/chat/sidebar/SidebarSessionRow.js +16 -7
  175. package/dist/chat/sidebar/inbox-triage.d.ts +18 -2
  176. package/dist/chat/sidebar/inbox-triage.js +39 -12
  177. package/dist/chat/sidebar/index.d.ts +5 -4
  178. package/dist/chat/sidebar/index.js +3 -2
  179. package/dist/chat/sidebar/sidebar-live.d.ts +29 -2
  180. package/dist/chat/sidebar/sidebar-live.js +36 -2
  181. package/dist/chat/sidebar/useInboxRows.js +2 -3
  182. package/dist/chat/sidebar/useInboxTriage.d.ts +5 -2
  183. package/dist/chat/sidebar/useInboxTriage.js +28 -20
  184. package/dist/chat/testing/fixture-composer-host.d.ts +3 -1
  185. package/dist/chat/testing/fixture-composer-host.js +1 -0
  186. package/dist/chat/transcript/PromptEcho.js +15 -2
  187. package/dist/chat/transcript/PromptOriginLabel.d.ts +1 -1
  188. package/dist/chat/transcript/TranscriptRail.d.ts +3 -1
  189. package/dist/chat/transcript/TranscriptRail.js +12 -2
  190. package/dist/chat/transcript/TranscriptRow.js +1 -0
  191. package/dist/chat/transcript/badges.d.ts +1 -0
  192. package/dist/chat/transcript/badges.js +1 -0
  193. package/dist/chat/transcript/fold.js +2 -1
  194. package/dist/chat/transcript/index.d.ts +2 -2
  195. package/dist/chat/transcript/index.js +2 -2
  196. package/dist/chat/transcript/inline-facts.d.ts +9 -0
  197. package/dist/chat/transcript/inline-facts.js +20 -0
  198. package/dist/chat/transcript/notices.d.ts +25 -3
  199. package/dist/chat/transcript/notices.js +136 -17
  200. package/dist/chat/transcript/prompt.js +8 -1
  201. package/dist/chat/transcript/script-input.d.ts +1 -1
  202. package/dist/chat/transcript/tasks.d.ts +1 -1
  203. package/dist/chat/transcript/tasks.js +1 -1
  204. package/dist/chat/transcript/tool-row.js +3 -2
  205. package/dist/code/editor/FileView.js +1 -3
  206. package/dist/components/Form.d.ts +28 -1
  207. package/dist/components/Form.js +43 -7
  208. package/dist/components/HelpTip.d.ts +22 -0
  209. package/dist/components/HelpTip.js +26 -0
  210. package/dist/components/Menu.js +1 -1
  211. package/dist/components/Notice.d.ts +6 -4
  212. package/dist/components/Notice.js +73 -27
  213. package/dist/components/Progress.js +10 -4
  214. package/dist/components/SearchField.d.ts +46 -0
  215. package/dist/components/SearchField.js +50 -0
  216. package/dist/components/ShowMore.d.ts +48 -0
  217. package/dist/components/ShowMore.js +57 -0
  218. package/dist/components/Tooltip.js +8 -5
  219. package/dist/components/charts/ScatterChart.js +13 -6
  220. package/dist/components/floating/FloatingSurface.js +2 -2
  221. package/dist/components/floating/useAnchoredPosition.d.ts +15 -1
  222. package/dist/components/floating/useAnchoredPosition.js +41 -7
  223. package/dist/components/palette/PaletteList.d.ts +5 -5
  224. package/dist/components/palette/PaletteList.js +2 -3
  225. package/dist/components/palette/PalettePanel.js +18 -12
  226. package/dist/components/palette/palette-layout.d.ts +5 -1
  227. package/dist/components/palette/palette-layout.js +13 -10
  228. package/dist/core.css +45 -20
  229. package/dist/dist/index-BmO8bRgK.d.ts +1 -0
  230. package/dist/dist/{index-BheVJOLc.d.ts → index-Bsp5Ku7r.d.ts} +264 -134
  231. package/dist/dist/index.d.ts +5 -5
  232. package/dist/dist/sandbox-Bzg_jJK2.d.ts +2 -0
  233. package/dist/dist/{timeout-CmTx6V9y.d.ts → timeout-NoG7ppkm.d.ts} +1 -1
  234. package/dist/files/FilesProvider.d.ts +2 -0
  235. package/dist/files/FilesProvider.js +5 -1
  236. package/dist/files/headless/host.d.ts +6 -2
  237. package/dist/files/index.d.ts +2 -2
  238. package/dist/files/index.js +2 -2
  239. package/dist/git/GitBar.js +8 -2
  240. package/dist/git/MoveSessionDialog.js +8 -5
  241. package/dist/git/MoveToDialog.d.ts +3 -1
  242. package/dist/git/MoveToDialog.js +43 -16
  243. package/dist/git/TeleportSessionDialog.d.ts +11 -4
  244. package/dist/git/TeleportSessionDialog.js +263 -107
  245. package/dist/git/WherePicker.js +4 -1
  246. package/dist/git/headless/labels.d.ts +8 -0
  247. package/dist/git/headless/labels.js +24 -16
  248. package/dist/git/index.d.ts +2 -2
  249. package/dist/git/index.js +2 -2
  250. package/dist/git/useEnvironmentChoices.d.ts +19 -0
  251. package/dist/git/useEnvironmentChoices.js +34 -10
  252. package/dist/hooks/useLastCount.d.ts +9 -0
  253. package/dist/hooks/useLastCount.js +29 -0
  254. package/dist/index.d.ts +6 -2
  255. package/dist/index.js +7 -3
  256. package/dist/keybindings/headless/overrides.d.ts +1 -1
  257. package/dist/keybindings/headless/overrides.js +14 -3
  258. package/dist/labels.d.ts +7 -0
  259. package/dist/labels.js +10 -3
  260. package/dist/machines/AddMachineDialog.js +1 -1
  261. package/dist/machines/AddServerForm.d.ts +14 -2
  262. package/dist/machines/AddServerForm.js +167 -51
  263. package/dist/machines/HostCapabilities.js +8 -4
  264. package/dist/machines/HostSignIn.d.ts +2 -1
  265. package/dist/machines/HostSignIn.js +1 -0
  266. package/dist/machines/HostSyncPanel.d.ts +4 -1
  267. package/dist/machines/HostSyncPanel.js +248 -132
  268. package/dist/machines/HostsSection.d.ts +2 -2
  269. package/dist/machines/HostsSection.js +91 -52
  270. package/dist/machines/LinkedAccountsPanel.d.ts +29 -0
  271. package/dist/machines/LinkedAccountsPanel.js +268 -0
  272. package/dist/machines/MachinesExplainer.d.ts +4 -4
  273. package/dist/machines/MachinesExplainer.js +27 -17
  274. package/dist/machines/OrganizationPanel.d.ts +12 -5
  275. package/dist/machines/OrganizationPanel.js +420 -133
  276. package/dist/machines/ProjectsSpendPanel.d.ts +22 -0
  277. package/dist/machines/ProjectsSpendPanel.js +160 -0
  278. package/dist/machines/ServerMachinesPanel.js +19 -4
  279. package/dist/machines/ServerUpdatePanel.js +3 -3
  280. package/dist/machines/SyncAccounts.d.ts +14 -7
  281. package/dist/machines/SyncAccounts.js +67 -81
  282. package/dist/machines/TokensPanel.js +54 -30
  283. package/dist/machines/headless/fixture-host.d.ts +15 -10
  284. package/dist/machines/headless/fixture-host.js +75 -44
  285. package/dist/machines/headless/fixtures.d.ts +12 -0
  286. package/dist/machines/headless/fixtures.js +71 -1
  287. package/dist/machines/headless/host.d.ts +13 -9
  288. package/dist/machines/headless/index.d.ts +3 -3
  289. package/dist/machines/headless/index.js +2 -2
  290. package/dist/machines/headless/labels.d.ts +81 -40
  291. package/dist/machines/headless/labels.js +103 -60
  292. package/dist/machines/headless/linked-accounts.d.ts +42 -0
  293. package/dist/machines/headless/linked-accounts.js +31 -0
  294. package/dist/machines/headless/organization.d.ts +9 -3
  295. package/dist/machines/headless/organization.js +12 -2
  296. package/dist/machines/headless/sync.d.ts +2 -0
  297. package/dist/machines/index.d.ts +3 -2
  298. package/dist/machines/index.js +3 -2
  299. package/dist/machines/sync-rows.d.ts +8 -0
  300. package/dist/machines/sync-rows.js +10 -0
  301. package/dist/machines/testing/contract.d.ts +1 -25
  302. package/dist/machines/testing/contract.js +1 -97
  303. package/dist/machines/testing/index.d.ts +3 -3
  304. package/dist/machines/testing/index.js +2 -2
  305. package/dist/onboarding/demos/extensions.d.ts +4 -0
  306. package/dist/onboarding/demos/extensions.js +27 -1
  307. package/dist/onboarding/demos/sidebar-layout.d.ts +4 -2
  308. package/dist/onboarding/demos/sidebar-layout.js +5 -2
  309. package/dist/onboarding/headless/labels.d.ts +9 -0
  310. package/dist/onboarding/headless/labels.js +2 -0
  311. package/dist/onboarding/steps/SidebarStep.js +4 -2
  312. package/dist/onboarding/steps/setting-cards.d.ts +4 -2
  313. package/dist/onboarding/steps/setting-cards.js +3 -2
  314. package/dist/palette/PaletteDialog.js +4 -4
  315. package/dist/palette/PaletteRows.js +34 -16
  316. package/dist/palette/headless/app-sources.js +3 -1
  317. package/dist/palette/headless/labels.js +2 -2
  318. package/dist/palette/usePaletteController.js +4 -8
  319. package/dist/session/ArtifactsPanel.js +11 -23
  320. package/dist/session/NewProjectDialog.d.ts +33 -0
  321. package/dist/session/NewProjectDialog.js +216 -0
  322. package/dist/session/OpenProjectsDialog.d.ts +56 -0
  323. package/dist/session/OpenProjectsDialog.js +324 -0
  324. package/dist/session/OpenSessionsDialog.js +186 -61
  325. package/dist/session/ProjectArtifactsHome.d.ts +42 -0
  326. package/dist/session/ProjectArtifactsHome.js +98 -0
  327. package/dist/session/ProjectArtifactsSection.d.ts +13 -0
  328. package/dist/session/ProjectArtifactsSection.js +367 -0
  329. package/dist/session/ProjectBudgetsSection.d.ts +7 -0
  330. package/dist/session/ProjectBudgetsSection.js +377 -0
  331. package/dist/session/ProjectContextSection.d.ts +20 -0
  332. package/dist/session/ProjectContextSection.js +139 -0
  333. package/dist/session/ProjectHome.d.ts +32 -5
  334. package/dist/session/ProjectHome.js +496 -249
  335. package/dist/session/ProjectInstructionsSection.d.ts +7 -0
  336. package/dist/session/ProjectInstructionsSection.js +179 -0
  337. package/dist/session/ProjectMainButton.d.ts +35 -0
  338. package/dist/session/ProjectMainButton.js +73 -0
  339. package/dist/session/ProjectName.d.ts +76 -0
  340. package/dist/session/ProjectName.js +140 -0
  341. package/dist/session/ProjectOrchestratorSection.d.ts +14 -0
  342. package/dist/session/ProjectOrchestratorSection.js +117 -0
  343. package/dist/session/ProjectPublishDialog.d.ts +30 -0
  344. package/dist/session/ProjectPublishDialog.js +420 -0
  345. package/dist/session/ProjectSessionAccessSection.d.ts +13 -0
  346. package/dist/session/ProjectSessionAccessSection.js +109 -0
  347. package/dist/session/ProjectSessionsList.d.ts +53 -0
  348. package/dist/session/ProjectSessionsList.js +316 -0
  349. package/dist/session/ProjectSettingsDialog.d.ts +30 -0
  350. package/dist/session/ProjectSettingsDialog.js +693 -0
  351. package/dist/session/ProjectShareDialog.d.ts +36 -0
  352. package/dist/session/ProjectShareDialog.js +190 -0
  353. package/dist/session/ProjectSkillsSection.d.ts +7 -0
  354. package/dist/session/ProjectSkillsSection.js +197 -0
  355. package/dist/session/ProjectToolsSection.d.ts +16 -0
  356. package/dist/session/ProjectToolsSection.js +347 -0
  357. package/dist/session/ProjectUsage.d.ts +61 -0
  358. package/dist/session/ProjectUsage.js +344 -0
  359. package/dist/session/ProviderUsageProvider.d.ts +2 -3
  360. package/dist/session/QueueTab.js +11 -1
  361. package/dist/session/SessionAccessNotice.d.ts +31 -0
  362. package/dist/session/SessionAccessNotice.js +69 -0
  363. package/dist/session/SessionDetailsDialog.d.ts +3 -1
  364. package/dist/session/SessionDetailsDialog.js +16 -1
  365. package/dist/session/SessionHeader.d.ts +10 -3
  366. package/dist/session/SessionHeader.js +19 -7
  367. package/dist/session/SessionPeopleStack.d.ts +3 -2
  368. package/dist/session/SessionPeopleStack.js +51 -17
  369. package/dist/session/SessionPlaceMenu.js +2 -2
  370. package/dist/session/SessionProvider.d.ts +13 -1
  371. package/dist/session/SessionProvider.js +21 -1
  372. package/dist/session/ShareSessionDialog.d.ts +4 -4
  373. package/dist/session/ShareSessionDialog.js +182 -283
  374. package/dist/session/TypingLine.d.ts +9 -4
  375. package/dist/session/TypingLine.js +16 -5
  376. package/dist/session/{UsagePanel.d.ts → UsageSection.d.ts} +9 -13
  377. package/dist/session/{UsagePanel.js → UsageSection.js} +40 -41
  378. package/dist/session/artifact-row-parts.d.ts +32 -0
  379. package/dist/session/artifact-row-parts.js +51 -0
  380. package/dist/session/headless/access.d.ts +33 -0
  381. package/dist/session/headless/access.js +48 -0
  382. package/dist/session/headless/fixture-host.d.ts +48 -9
  383. package/dist/session/headless/fixture-host.js +139 -1
  384. package/dist/session/headless/fixture-project-artifacts.d.ts +77 -0
  385. package/dist/session/headless/fixture-project-artifacts.js +168 -0
  386. package/dist/session/headless/fixture-project-content.d.ts +67 -0
  387. package/dist/session/headless/fixture-project-content.js +176 -0
  388. package/dist/session/headless/fixture-projects.d.ts +175 -0
  389. package/dist/session/headless/fixture-projects.js +498 -0
  390. package/dist/session/headless/home-layout.d.ts +18 -2
  391. package/dist/session/headless/home-layout.js +20 -7
  392. package/dist/session/headless/host.d.ts +263 -7
  393. package/dist/session/headless/index.d.ts +10 -5
  394. package/dist/session/headless/index.js +8 -3
  395. package/dist/session/headless/labels.d.ts +381 -6
  396. package/dist/session/headless/labels.js +72 -24
  397. package/dist/session/headless/orchestration-labels.d.ts +52 -0
  398. package/dist/session/headless/orchestration-labels.js +59 -0
  399. package/dist/session/headless/project-artifact-labels.d.ts +67 -0
  400. package/dist/session/headless/project-artifact-labels.js +96 -0
  401. package/dist/session/headless/project-artifacts.d.ts +124 -0
  402. package/dist/session/headless/project-artifacts.js +271 -0
  403. package/dist/session/headless/project-content-labels.d.ts +88 -0
  404. package/dist/session/headless/project-content-labels.js +152 -0
  405. package/dist/session/headless/project-labels.d.ts +123 -0
  406. package/dist/session/headless/project-labels.js +128 -0
  407. package/dist/session/headless/project-sessions.d.ts +37 -0
  408. package/dist/session/headless/project-sessions.js +57 -0
  409. package/dist/session/headless/project-usage-labels.d.ts +74 -0
  410. package/dist/session/headless/project-usage-labels.js +81 -0
  411. package/dist/session/headless/project-usage.d.ts +65 -0
  412. package/dist/session/headless/project-usage.js +92 -0
  413. package/dist/session/headless/projects.d.ts +158 -0
  414. package/dist/session/headless/projects.js +301 -0
  415. package/dist/session/headless/pushed-once.d.ts +22 -0
  416. package/dist/session/headless/pushed-once.js +28 -0
  417. package/dist/session/headless/queue.js +2 -1
  418. package/dist/session/headless/typing.d.ts +20 -1
  419. package/dist/session/headless/typing.js +58 -3
  420. package/dist/session/home-block-parts.d.ts +40 -0
  421. package/dist/session/home-block-parts.js +46 -0
  422. package/dist/session/index.d.ts +17 -4
  423. package/dist/session/index.js +16 -3
  424. package/dist/session/modal-shell.d.ts +1 -1
  425. package/dist/session/modal-shell.js +1 -1
  426. package/dist/session/project-artifact-parts.d.ts +59 -0
  427. package/dist/session/project-artifact-parts.js +222 -0
  428. package/dist/session/project-content-parts.d.ts +176 -0
  429. package/dist/session/project-content-parts.js +546 -0
  430. package/dist/session/project-files.d.ts +48 -0
  431. package/dist/session/project-files.js +54 -0
  432. package/dist/session/project-folder-actions.d.ts +11 -0
  433. package/dist/session/project-folder-actions.js +39 -0
  434. package/dist/session/project-mcp-add.d.ts +23 -0
  435. package/dist/session/project-mcp-add.js +107 -0
  436. package/dist/session/project-record-document.d.ts +48 -0
  437. package/dist/session/project-record-document.js +225 -0
  438. package/dist/session/project-settings-parts.d.ts +69 -0
  439. package/dist/session/project-settings-parts.js +90 -0
  440. package/dist/session/share-people.d.ts +222 -0
  441. package/dist/session/share-people.js +457 -0
  442. package/dist/session/testing/contract.d.ts +67 -8
  443. package/dist/session/testing/contract.js +343 -6
  444. package/dist/session/testing/index.d.ts +5 -2
  445. package/dist/session/testing/index.js +4 -1
  446. package/dist/session/testing/project-artifacts.contract.js +159 -0
  447. package/dist/session/testing/project-content.contract.d.ts +19 -0
  448. package/dist/session/testing/project-content.contract.js +221 -0
  449. package/dist/session/testing/project-sessions.contract.js +134 -0
  450. package/dist/session/use-folder-missing.d.ts +6 -0
  451. package/dist/session/use-folder-missing.js +31 -0
  452. package/dist/session/use-folder-project.d.ts +14 -0
  453. package/dist/session/use-folder-project.js +37 -0
  454. package/dist/session/use-home-projects.d.ts +48 -0
  455. package/dist/session/use-home-projects.js +118 -0
  456. package/dist/session/use-project-home-layout.d.ts +33 -0
  457. package/dist/session/use-project-home-layout.js +134 -0
  458. package/dist/session/use-project-home-on.d.ts +2 -0
  459. package/dist/session/use-project-home-on.js +14 -0
  460. package/dist/settings/SettingCard.d.ts +3 -1
  461. package/dist/settings/SettingCard.js +2 -1
  462. package/dist/settings/SettingDemo.d.ts +3 -1
  463. package/dist/settings/SettingDemo.js +4 -3
  464. package/dist/settings/SettingsShell.d.ts +2 -1
  465. package/dist/settings/SettingsShell.js +55 -43
  466. package/dist/settings/headless/index.d.ts +2 -1
  467. package/dist/settings/headless/index.js +2 -1
  468. package/dist/settings/headless/mcp-requirement.d.ts +93 -0
  469. package/dist/settings/headless/mcp-requirement.js +116 -0
  470. package/dist/settings/headless/search.d.ts +1 -1
  471. package/dist/settings/index.d.ts +3 -2
  472. package/dist/settings/index.js +5 -4
  473. package/dist/settings/section.d.ts +9 -0
  474. package/dist/settings/section.js +12 -1
  475. package/dist/settings/sections/editor/labels.js +1 -1
  476. package/dist/settings/sections/extensions/ExtensionConfigRows.d.ts +6 -2
  477. package/dist/settings/sections/extensions/ExtensionConfigRows.js +10 -1
  478. package/dist/settings/sections/extensions/ExtensionOptionsSection.js +1 -0
  479. package/dist/settings/sections/extensions/ExtensionsSection.d.ts +6 -3
  480. package/dist/settings/sections/extensions/ExtensionsSection.js +24 -3
  481. package/dist/settings/sections/extensions/McpRequirementRow.d.ts +45 -0
  482. package/dist/settings/sections/extensions/McpRequirementRow.js +298 -0
  483. package/dist/settings/sections/extensions/labels.d.ts +4 -0
  484. package/dist/settings/sections/extensions/labels.js +4 -0
  485. package/dist/settings/sections/extensions/options-labels.d.ts +39 -0
  486. package/dist/settings/sections/extensions/options-labels.js +48 -1
  487. package/dist/settings/sections/extensions/use-mcp-setup.d.ts +6 -0
  488. package/dist/settings/sections/extensions/use-mcp-setup.js +41 -0
  489. package/dist/settings/sections/host-catalog/HostCatalogSection.js +3 -0
  490. package/dist/settings/sections/index.d.ts +4 -3
  491. package/dist/settings/sections/index.js +4 -3
  492. package/dist/settings/sections/instructions/InstructionsSection.d.ts +69 -1
  493. package/dist/settings/sections/instructions/InstructionsSection.js +181 -109
  494. package/dist/settings/sections/mcp/McpAddForm.d.ts +9 -2
  495. package/dist/settings/sections/mcp/McpAddForm.js +15 -7
  496. package/dist/settings/sections/mcp/McpServerRow.js +7 -47
  497. package/dist/settings/sections/mcp/McpSignIn.d.ts +38 -0
  498. package/dist/settings/sections/mcp/McpSignIn.js +72 -0
  499. package/dist/settings/sections/mcp/labels.js +1 -1
  500. package/dist/settings/sections/models/AgentDefaults.d.ts +12 -4
  501. package/dist/settings/sections/models/AgentDefaults.js +102 -70
  502. package/dist/settings/sections/models/ModelPickField.d.ts +10 -1
  503. package/dist/settings/sections/models/ModelPickField.js +87 -39
  504. package/dist/settings/sections/models/labels.d.ts +8 -0
  505. package/dist/settings/sections/models/labels.js +8 -0
  506. package/dist/settings/sections/performance/labels.js +2 -2
  507. package/dist/settings/sections/providers/ServerSignIn.d.ts +6 -1
  508. package/dist/settings/sections/providers/ServerSignIn.js +66 -61
  509. package/dist/settings/sections/skills/SkillList.d.ts +45 -0
  510. package/dist/settings/sections/skills/SkillList.js +58 -40
  511. package/dist/settings/server-app.d.ts +2 -0
  512. package/dist/settings/server-app.js +16 -4
  513. package/dist/styles.css +127 -34
  514. package/dist/theme/runtime-icons.js +7 -3
  515. package/dist/workspace/PanelContentView.js +1 -1
  516. package/package.json +26 -2
  517. package/src/styles/app.css +6 -3
  518. package/src/styles/palette.css +15 -19
  519. package/src/styles/primitives.css +3 -1
  520. package/src/styles/transcript.css +22 -0
  521. package/dist/dist/index-ttmMvjgM.d.ts +0 -1
  522. package/dist/dist/sandbox-CSUihARm.d.ts +0 -2
  523. package/dist/machines/PersonalLayerPanel.d.ts +0 -32
  524. package/dist/machines/PersonalLayerPanel.js +0 -360
  525. package/dist/machines/headless/layer.d.ts +0 -64
  526. package/dist/machines/headless/layer.js +0 -56
  527. /package/dist/dist/{execution-failure-SREfl-EZ.d.ts → execution-failure-_L2r_Qd-.d.ts} +0 -0
@@ -33,7 +33,7 @@ import { Markdown, MarkdownDiagrams, MarkdownDiagramsProps, MarkdownImageProps,
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, RepairedRow, RepairedRowProps, 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, SetupChangedRow, SetupChangedRowProps, 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";
@@ -78,4 +78,4 @@ import { MAX_MATCHES, SearchHighlightStyle, TranscriptSearchOptions, TranscriptS
78
78
  import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
79
79
  import { useWheelHoverPause } from "./useWheelHoverPause.js";
80
80
  import { MarkdownViews, MarkdownViewsProps } from "./view-scope.js";
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, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, 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, SetupChangedRow, SetupChangedRowProps, 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, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
@@ -29,7 +29,7 @@ import { CommandScopeContext, INLINE_CODE_CLASS, MarkdownContext, OpenSessionCon
29
29
  import { MermaidDiagram } from "./MermaidDiagram.js";
30
30
  import { MessageGroupRow } from "./messages.js";
31
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";
32
+ import { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SetupChangedRow, 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";
@@ -73,4 +73,4 @@ import { MAX_MATCHES, SearchHighlightStyle, useTranscriptSearch } from "./useTra
73
73
  import { useTranscriptSelectionCopy } from "./useTranscriptSelectionCopy.js";
74
74
  import { useWheelHoverPause } from "./useWheelHoverPause.js";
75
75
  import { MarkdownViews } from "./view-scope.js";
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, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, 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, SetupChangedRow, 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, useTokenSession, useToolMedia, useTranscriptActions, useTranscriptFind, useTranscriptFindKey, useTranscriptRailStore, useTranscriptRenderers, useTranscriptRows, useTranscriptScroll, useTranscriptSearch, useTranscriptSelectionCopy, useTurnCommands, useTurnMenu, useWheelHoverPause };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Facts on one line that truncates: each its own inline block, a gap apart, never a dot.
3
+ *
4
+ * @param props - Component props.
5
+ * @param props.facts - The facts, in order.
6
+ */
7
+ export declare function InlineFacts({ facts }: {
8
+ facts: readonly string[];
9
+ }): import("react").JSX.Element[];
@@ -0,0 +1,20 @@
1
+ import { Fragment } from "react";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ // src/chat/transcript/inline-facts.tsx
4
+ /**
5
+ * Facts on one line that truncates (a tool row's meta line). Kit {@link Facts} wraps between facts, so a
6
+ * one-line row that must truncate uses this inline form instead. Internal: not exported from the entry.
7
+ */
8
+ /**
9
+ * Facts on one line that truncates: each its own inline block, a gap apart, never a dot.
10
+ *
11
+ * @param props - Component props.
12
+ * @param props.facts - The facts, in order.
13
+ */
14
+ function InlineFacts({ facts }) {
15
+ return facts.map((fact, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 && " ", /* @__PURE__ */ jsx("span", {
16
+ className: i > 0 ? "ml-1.5" : void 0,
17
+ children: fact
18
+ })] }, i));
19
+ }
20
+ export { InlineFacts };
@@ -2,7 +2,8 @@
2
2
  * The transcript's quiet rows: notices and errors, a stopped run (with its
3
3
  * resume button when the app can resume), a worker's report
4
4
  * (`SessionEventRow`), a `/` command's note and detail, and the spawn
5
- * markers inside a subagent block. App services come in as props
5
+ * markers inside a subagent block, and the line that says a run's setup
6
+ * changed (`SetupChangedRow`). App services come in as props
6
7
  * (`onResume`, `onOpenSession`) and renderer slots (`renderers.tsx`).
7
8
  */
8
9
  import { Row } from "../headless/transcript/rows.js";
@@ -37,6 +38,22 @@ export interface InfoRowProps {
37
38
  }
38
39
  /** Renders a plain informational line from the harness, in muted text. */
39
40
  export declare const InfoRow: import("react").MemoExoticComponent<({ text, className, style }: InfoRowProps) => import("react").JSX.Element>;
41
+ /** Props for {@link SetupChangedRow}. */
42
+ export interface SetupChangedRowProps {
43
+ /** The notice's text: the summary on its first line, then one change per line. */
44
+ text: string;
45
+ /** Extra classes on the root element. */
46
+ className?: string;
47
+ /** Inline styles on the root element, merged after the component's own. */
48
+ style?: CSSProperties;
49
+ }
50
+ /**
51
+ * A run's setup changed since the previous run (docs/PROJECTS.md § Setup record): one small muted line, its summary
52
+ * ("Setup changed: 2 added, 1 removed"), with a caret that opens the changes, one per line in the meta voice
53
+ * (`+ skill foo`, `- mcp linear`, who saved a record). Collapsed at first; a row with no changes listed has no caret.
54
+ * A long list shows its first {@link SETUP_CHANGES_SHOWN} changes and a button for the rest.
55
+ */
56
+ export declare const SetupChangedRow: import("react").MemoExoticComponent<({ text, className, style }: SetupChangedRowProps) => import("react").JSX.Element>;
40
57
  /** Props for {@link NoticeRow}. */
41
58
  export interface NoticeRowProps {
42
59
  /** The structured notice: its severity and label. */
@@ -53,7 +70,10 @@ export interface NoticeRowProps {
53
70
  * GUI counterpart of the TUI's `NoticeRow` (which keeps the glyph + label,
54
71
  * this surface has color). Rendered for `info` events that carry
55
72
  * `notice` (run-end stop reasons, model fallback, repeat guard, …); plain
56
- * `info` events keep the quiet `InfoRow`.
73
+ * `info` events keep the quiet `InfoRow`. A run's setup change
74
+ * (`SETUP_CHANGED_LABEL`) is the quieter `SetupChangedRow`. A refused
75
+ * run's budget notice gets the labels' "Budget reached" as its badge, its
76
+ * sentence (which budget, how much, when runs start again) beneath in full.
57
77
  */
58
78
  export declare const NoticeRow: import("react").MemoExoticComponent<({ notice, text, className, style }: NoticeRowProps) => import("react").JSX.Element>;
59
79
  /** Props for {@link ErrorRow}. */
@@ -93,6 +113,8 @@ export interface FailureRowProps {
93
113
  detail?: StreamEvent['detail'];
94
114
  /** How the run ended and how it would resume. */
95
115
  failure: RunFailure;
116
+ /** The name of who stopped the run, when a named person or client did: reads "Stopped by <name>". */
117
+ stoppedBy?: string;
96
118
  /** The row is the transcript's last word: it offers Continue or Retry. */
97
119
  resumable: boolean;
98
120
  /** Called with the prompt that resumes the run. Absent: no button. */
@@ -115,7 +137,7 @@ export interface FailureRowProps {
115
137
  * host's queue until it is back. Setting a gone one up anew asks first (the
116
138
  * app's confirm dialog), as it can cost work.
117
139
  */
118
- export declare const FailureRow: import("react").MemoExoticComponent<({ text, detail, failure, resumable, onResume, className, style }: FailureRowProps) => import("react").JSX.Element>;
140
+ export declare const FailureRow: import("react").MemoExoticComponent<({ text, detail, failure, stoppedBy, resumable, onResume, className, style }: FailureRowProps) => import("react").JSX.Element>;
119
141
  /** Props for {@link SessionEventRow}. */
120
142
  export interface SessionEventRowProps {
121
143
  /** The worker's report. */
@@ -8,9 +8,9 @@ import { AuthFailureCard } from "./AuthFailureCard.js";
8
8
  import { Caret } from "./frame.js";
9
9
  import { useTranscriptRenderers } from "./renderers.js";
10
10
  import { useRowPartKey, useRowUiState } from "./row-ui-state.js";
11
- import { memo, useId, useState } from "react";
11
+ import { memo, useEffect, useId, useRef, useState } from "react";
12
12
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
13
- import { CONTINUE_PROMPT, SESSION_EVENT_STATUS_STYLE, describeSpawnEnd, sessionDirLabel, sessionEventExcerpt, sessionEventMeta, shortSessionId, spawnStartParts } from "zidane/chat/pure";
13
+ import { CONTINUE_PROMPT, SESSION_EVENT_STATUS_STYLE, SETUP_CHANGED_LABEL, describeSpawnEnd, sessionDirLabel, sessionEventExcerpt, sessionEventMeta, shortSessionId, spawnStartParts } from "zidane/chat/pure";
14
14
  // src/chat/transcript/notices.tsx
15
15
  /**
16
16
  * Command steps, outputs and a run's error line read at the transcript's
@@ -41,6 +41,96 @@ const InfoRow = memo(({ text, className, style }) => {
41
41
  children: text
42
42
  });
43
43
  });
44
+ /** How many of a run's setup changes show before the button for the rest. */
45
+ const SETUP_CHANGES_SHOWN = 12;
46
+ /**
47
+ * A run's setup changed since the previous run (docs/PROJECTS.md § Setup record): one small muted line, its summary
48
+ * ("Setup changed: 2 added, 1 removed"), with a caret that opens the changes, one per line in the meta voice
49
+ * (`+ skill foo`, `- mcp linear`, who saved a record). Collapsed at first; a row with no changes listed has no caret.
50
+ * A long list shows its first {@link SETUP_CHANGES_SHOWN} changes and a button for the rest.
51
+ */
52
+ const SetupChangedRow = memo(({ text, className, style }) => {
53
+ const labels = useChatLabels();
54
+ const [open, setOpen] = useRowUiState(useRowPartKey("setup-changed"), false);
55
+ const [all, setAll] = useRowUiState(useRowPartKey("setup-changed-all"), false);
56
+ const firstHidden = useRef(null);
57
+ const focusShown = useRef(false);
58
+ useEffect(() => {
59
+ if (all && focusShown.current) {
60
+ focusShown.current = false;
61
+ firstHidden.current?.focus();
62
+ }
63
+ }, [all]);
64
+ const mounted = useStaysMounted(open);
65
+ const listId = useId();
66
+ const [head = "", ...changes] = text.split("\n").filter((line) => line.trim() !== "");
67
+ const clipped = !all && changes.length > 15;
68
+ const root = ["text-xs text-[var(--zg-text-muted)]", className].filter(Boolean).join(" ");
69
+ const glyph = /* @__PURE__ */ jsx("span", {
70
+ "aria-hidden": true,
71
+ className: "i-ph-sliders-horizontal shrink-0"
72
+ });
73
+ if (changes.length === 0) return /* @__PURE__ */ jsxs("div", {
74
+ className: `${root} flex items-center gap-1.5 min-w-0 py-0.5`,
75
+ style,
76
+ "data-testid": "setup-changed",
77
+ children: [glyph, /* @__PURE__ */ jsx("span", {
78
+ className: "min-w-0 truncate",
79
+ children: head
80
+ })]
81
+ });
82
+ return /* @__PURE__ */ jsxs("div", {
83
+ className: root,
84
+ style,
85
+ "data-testid": "setup-changed",
86
+ children: [/* @__PURE__ */ jsxs("button", {
87
+ type: "button",
88
+ "aria-expanded": open,
89
+ "aria-controls": listId,
90
+ onClick: () => setOpen((current) => !current),
91
+ className: "zg-press-subtle zg-disclosure zg-focus-ring flex items-center gap-1.5 w-full min-w-0 py-0.5 rounded-zg-sm text-left",
92
+ children: [
93
+ glyph,
94
+ /* @__PURE__ */ jsx("span", {
95
+ className: "min-w-0 truncate",
96
+ children: head
97
+ }),
98
+ /* @__PURE__ */ jsx(Caret, {
99
+ open,
100
+ className: "self-center"
101
+ })
102
+ ]
103
+ }), /* @__PURE__ */ jsx("div", {
104
+ className: "zg-collapsible",
105
+ "data-open": open,
106
+ id: listId,
107
+ inert: !open || void 0,
108
+ children: /* @__PURE__ */ jsx("div", {
109
+ className: "zg-collapsible-inner",
110
+ children: mounted && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("ul", {
111
+ className: "zg-setup-changes zg-meta m-0 p-0 pt-1 pl-5 list-none flex flex-col gap-0.5",
112
+ children: (clipped ? changes.slice(0, SETUP_CHANGES_SHOWN) : changes).map((line, i) => /* @__PURE__ */ jsx("li", {
113
+ ref: i === SETUP_CHANGES_SHOWN ? firstHidden : void 0,
114
+ tabIndex: i === SETUP_CHANGES_SHOWN ? -1 : void 0,
115
+ className: "break-words outline-none",
116
+ children: line
117
+ }, i))
118
+ }), clipped && /* @__PURE__ */ jsx("button", {
119
+ type: "button",
120
+ onClick: () => {
121
+ focusShown.current = true;
122
+ setAll(true);
123
+ },
124
+ className: "zg-press-subtle zg-focus-ring ml-5 mt-1 px-1 -mx-1 rounded-zg-sm text-[var(--zg-text-muted)] hover:text-[var(--zg-text)] transition-colors",
125
+ children: labels.setupChangedMore(changes.length - SETUP_CHANGES_SHOWN)
126
+ })] })
127
+ })
128
+ })]
129
+ });
130
+ });
131
+ SetupChangedRow.displayName = "SetupChangedRow";
132
+ /** The label of the notice a refused run leaves (`emitSessionNotice` in `src/chat/host/runs/prepare.ts`): its text is a full sentence, so the badge says the headline and the sentence goes under it. */
133
+ const BUDGET_NOTICE_LABEL = "budget";
44
134
  /** A notice's badge tone and icon, by severity. */
45
135
  const NOTICE_STYLE = {
46
136
  error: {
@@ -61,31 +151,60 @@ const NOTICE_STYLE = {
61
151
  * GUI counterpart of the TUI's `NoticeRow` (which keeps the glyph + label,
62
152
  * this surface has color). Rendered for `info` events that carry
63
153
  * `notice` (run-end stop reasons, model fallback, repeat guard, …); plain
64
- * `info` events keep the quiet `InfoRow`.
154
+ * `info` events keep the quiet `InfoRow`. A run's setup change
155
+ * (`SETUP_CHANGED_LABEL`) is the quieter `SetupChangedRow`. A refused
156
+ * run's budget notice gets the labels' "Budget reached" as its badge, its
157
+ * sentence (which budget, how much, when runs start again) beneath in full.
65
158
  */
66
159
  const NoticeRow = memo(({ notice, text, className, style }) => {
160
+ const labels = useChatLabels();
161
+ if (notice.label === SETUP_CHANGED_LABEL) return /* @__PURE__ */ jsx(SetupChangedRow, {
162
+ text,
163
+ className,
164
+ style
165
+ });
67
166
  const { tone, icon } = NOTICE_STYLE[notice.severity] ?? NOTICE_STYLE.info;
68
- const [head, ...details] = text.split("\n").filter((line) => line.trim() !== "");
167
+ const lines = text.split("\n").filter((line) => line.trim() !== "");
168
+ const [head = "", ...details] = notice.label === BUDGET_NOTICE_LABEL ? [labels.noticeBudgetReached, ...lines.flatMap(sentencesOf)] : lines;
169
+ return /* @__PURE__ */ jsx(NoticeBody, {
170
+ head,
171
+ details,
172
+ tone,
173
+ icon,
174
+ className,
175
+ style
176
+ });
177
+ });
178
+ /** Splits prose into its sentences: a period, then a space and a capital ("$1.50" stays whole). */
179
+ function sentencesOf(line) {
180
+ return line.split(/(?<=[.!?])\s+(?=\p{Lu})/u);
181
+ }
182
+ /** A notice's badge (its headline, the full text in a tooltip when it truncates) and its facts beneath, one per line. */
183
+ function NoticeBody({ head, details, tone, icon, className, style }) {
184
+ const tip = useTooltip(head, { maxWidth: 420 });
69
185
  return /* @__PURE__ */ jsxs("div", {
70
186
  className: ["flex flex-col items-start gap-1 text-xs", className].filter(Boolean).join(" "),
71
187
  style,
72
- title: notice.label,
73
188
  children: [/* @__PURE__ */ jsxs("span", {
74
189
  className: `inline-flex max-w-full items-center gap-1.5 px-2 py-0.5 rounded-full shadow-[inset_0_0_0_1px_var(--zg-hairline)] font-medium ${tone}`,
75
- children: [/* @__PURE__ */ jsx("span", {
76
- "aria-hidden": true,
77
- className: `${icon} shrink-0`
78
- }), /* @__PURE__ */ jsx("span", {
79
- className: "min-w-0 truncate",
80
- title: head,
81
- children: head
82
- })]
190
+ children: [
191
+ /* @__PURE__ */ jsx("span", {
192
+ "aria-hidden": true,
193
+ className: `${icon} shrink-0`
194
+ }),
195
+ /* @__PURE__ */ jsx("span", {
196
+ ...tip.anchorProps,
197
+ className: "min-w-0 truncate",
198
+ children: head
199
+ }),
200
+ tip.tip
201
+ ]
83
202
  }), details.length > 0 && /* @__PURE__ */ jsx("span", {
84
203
  className: "min-w-0 max-w-full flex flex-col gap-0.5 px-2 break-words text-[var(--zg-text-muted)]",
85
204
  children: details.map((line, i) => /* @__PURE__ */ jsx("span", { children: line }, i))
86
205
  })]
87
206
  });
88
- });
207
+ }
89
208
  /** The transcript's one error tone (the `error` / `tool-err` Dot glyphs share it). */
90
209
  const ERROR_TONE = "text-zg-danger";
91
210
  /** Renders an error line in the transcript's error tone. */
@@ -141,7 +260,7 @@ RepairedRow.displayName = "RepairedRow";
141
260
  * host's queue until it is back. Setting a gone one up anew asks first (the
142
261
  * app's confirm dialog), as it can cost work.
143
262
  */
144
- const FailureRow = memo(({ text, detail, failure, resumable, onResume, className, style }) => {
263
+ const FailureRow = memo(({ text, detail, failure, stoppedBy, resumable, onResume, className, style }) => {
145
264
  const labels = useChatLabels();
146
265
  const { retryEnvironment } = useTranscriptActions();
147
266
  const confirm = useOptionalConfirm();
@@ -199,7 +318,7 @@ const FailureRow = memo(({ text, detail, failure, resumable, onResume, className
199
318
  className: "min-w-0 truncate",
200
319
  children: [/* @__PURE__ */ jsx("span", {
201
320
  className: byUser ? "text-[var(--zg-text-muted)]" : ERROR_TONE,
202
- children: byUser ? labels.stoppedByYou : labels.stopped
321
+ children: byUser ? stoppedBy ? labels.stoppedByName(stoppedBy) : labels.stoppedByYou : labels.stopped
203
322
  }), text && /* @__PURE__ */ jsxs("span", {
204
323
  className: "text-[var(--zg-text-muted)]",
205
324
  children: [" ", text]
@@ -426,4 +545,4 @@ const SpawnEndRow = memo(({ row, className, style }) => {
426
545
  }, value))]
427
546
  });
428
547
  });
429
- export { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SpawnEndRow, SpawnStartRow };
548
+ export { COMMAND_DETAIL_LINE, CommandDetailRow, CommandNoteRow, ErrorRow, FailureRow, InfoRow, NoticeRow, RepairedRow, SessionEventRow, SetupChangedRow, SpawnEndRow, SpawnStartRow };
@@ -23,6 +23,7 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
23
23
  function UserPromptRow({ row, onBubblePointerEnter, onBubbleContextMenu, className, style }) {
24
24
  const { Prompt } = useTranscriptRenderers();
25
25
  const icons = useRowIcons();
26
+ const labels = useChatLabels();
26
27
  const attachments = row.attachments ?? [];
27
28
  return /* @__PURE__ */ jsxs("div", {
28
29
  className: ["zg-row-enter relative flex items-start gap-3 pb-[var(--zg-row-gap,12px)]", className].filter(Boolean).join(" "),
@@ -49,7 +50,13 @@ function UserPromptRow({ row, onBubblePointerEnter, onBubbleContextMenu, classNa
49
50
  promptMediaOf(row.text).map((m) => /* @__PURE__ */ jsx(MessageMedia, {
50
51
  src: m.src,
51
52
  alt: m.alt
52
- }, m.src))
53
+ }, m.src)),
54
+ row.heldFor !== void 0 && /* @__PURE__ */ jsx("span", {
55
+ className: "text-zg-label text-[var(--zg-text-muted)]",
56
+ role: "status",
57
+ "data-testid": "prompt-held",
58
+ children: labels.promptHeldFor(row.heldFor)
59
+ })
53
60
  ]
54
61
  })]
55
62
  });
@@ -1,5 +1,5 @@
1
1
  /** What a Codemode script's input panel reads besides its input. Internal to the transcript. */
2
- import { aj as ScriptProgress } from "../../dist/index-BheVJOLc.js";
2
+ import { gz as ScriptProgress } from "../../dist/index-Bsp5Ku7r.js";
3
3
  import { ToolRowModel } from "../headless/transcript/rows.js";
4
4
  import "../headless/transcript/index.js";
5
5
  /**
@@ -32,7 +32,7 @@ export interface TaskBatchRowProps {
32
32
  style?: CSSProperties;
33
33
  }
34
34
  /**
35
- * Background tasks that ended together: `3 tasks ended · 1 failed` on one
35
+ * Background tasks that ended together: `3 tasks ended, 1 failed` on one
36
36
  * line, collapsed by default like a tool batch; opened, each task's line.
37
37
  */
38
38
  export declare const TaskBatchRow: import("react").MemoExoticComponent<({ row, className, style }: TaskBatchRowProps) => import("react").JSX.Element>;
@@ -58,7 +58,7 @@ const TaskRow = memo(({ row, className, style }) => /* @__PURE__ */ jsx("div", {
58
58
  children: /* @__PURE__ */ jsx(TaskLine, { task: row.task })
59
59
  }));
60
60
  /**
61
- * Background tasks that ended together: `3 tasks ended · 1 failed` on one
61
+ * Background tasks that ended together: `3 tasks ended, 1 failed` on one
62
62
  * line, collapsed by default like a tool batch; opened, each task's line.
63
63
  */
64
64
  const TaskBatchRow = memo(({ row, className, style }) => {
@@ -7,6 +7,7 @@ import { ClippedOutputControls, useClippedOutput } from "./clipped-output.js";
7
7
  import { EditDiffBlock } from "./EditDiffBlock.js";
8
8
  import { Caret, FailedMark } from "./frame.js";
9
9
  import { ImageGenerationBlock, drawsImageGeneration } from "./ImageGenerationBlock.js";
10
+ import { InlineFacts } from "./inline-facts.js";
10
11
  import { useTranscriptRenderers } from "./renderers.js";
11
12
  import { Rolling } from "./rolling.js";
12
13
  import { useRowUiState } from "./row-ui-state.js";
@@ -386,7 +387,7 @@ function useJobClock(running) {
386
387
  return now;
387
388
  }
388
389
  /**
389
- * An MCP job's line under its call's header (`MCP job · working · Linking · 40% · 2m 10s`),
390
+ * An MCP job's line under its call's header (`MCP job working Linking 40% 2m 10s`, each fact its own block),
390
391
  * with a bar while it runs and its progress has a total. A failed job reads as an error, a cancelled one muted.
391
392
  */
392
393
  function McpJobStatus({ job }) {
@@ -402,7 +403,7 @@ function McpJobStatus({ job }) {
402
403
  "data-status": job.status,
403
404
  children: /* @__PURE__ */ jsx("span", {
404
405
  className: tone,
405
- children: labels.mcpJobLine(job, now)
406
+ children: /* @__PURE__ */ jsx(InlineFacts, { facts: labels.mcpJobFacts(job, now) })
406
407
  })
407
408
  }), percent !== void 0 && /* @__PURE__ */ jsx("span", {
408
409
  role: "progressbar",
@@ -29,7 +29,6 @@ function FileViewInner({ name, contents, wrap = false, hideHeader = false, selec
29
29
  onTokenLeave,
30
30
  onTokenClick,
31
31
  onHighlighted,
32
- renderAnnotation,
33
32
  edit,
34
33
  wrap
35
34
  });
@@ -47,7 +46,6 @@ function FileViewInner({ name, contents, wrap = false, hideHeader = false, selec
47
46
  const token = words.token(t, e.clientX, e.clientY);
48
47
  if (token) latest().onTokenClick?.(token, e);
49
48
  },
50
- renderAnnotation: (a) => latest().renderAnnotation?.(a) ?? null,
51
49
  onEditChange: (e) => latest().edit?.onChange(e.file.contents, e.changes.map((c) => ({
52
50
  range: c.range,
53
51
  text: c.text
@@ -126,7 +124,7 @@ function FileViewInner({ name, contents, wrap = false, hideHeader = false, selec
126
124
  } : {},
127
125
  ...selectable ? { selectedLines: selectedLines ?? null } : {},
128
126
  ...lineAnnotations ? { lineAnnotations } : {},
129
- ...renderAnnotation ? { renderAnnotation: stable.renderAnnotation } : {},
127
+ ...renderAnnotation ? { renderAnnotation } : {},
130
128
  options
131
129
  })
132
130
  });
@@ -17,6 +17,11 @@ export declare const ROW_CLASS = "flex items-center gap-3 px-3 py-2";
17
17
  export declare const ROW_HOST_CLASS = "zg-press-host flex items-center gap-3 px-3 py-2 rounded-zg-md";
18
18
  /** The control of a {@link HostRow} that takes the row's width: a picker's trigger, holding the label and the value. */
19
19
  export declare const ROW_TRIGGER_CLASS = "zg-press-subtle flex items-center gap-3 flex-1 min-w-0 text-left bg-transparent border-0 p-0 cursor-pointer text-[var(--zg-text)] rounded-zg-sm disabled:cursor-default focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--zg-ring)]";
20
+ /**
21
+ * The control of a {@link HostRow} that is its value chip alone (the label stays outside it, a clear button can sit
22
+ * between them): the row hands it a click on the row.
23
+ */
24
+ export declare const ROW_CHIP_TRIGGER_CLASS = "zg-press-subtle inline-flex shrink-0 min-w-0 max-w-[60%] bg-transparent border-0 p-0 cursor-pointer rounded-full disabled:cursor-default focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--zg-ring)]";
20
25
  /** Single-line text input: a well set into its surface. */
21
26
  export declare const INPUT_CLASS = "zg-well w-full h-8 px-2.5 text-zg-ui placeholder:text-[var(--zg-text-subtle)] disabled:opacity-zg-disabled";
22
27
  /** Multi-line / code input. */
@@ -71,6 +76,11 @@ export interface FormSectionProps {
71
76
  'title'?: ReactNode;
72
77
  /** Right side of the label line: a count, a small action. */
73
78
  'trailing'?: ReactNode;
79
+ /**
80
+ * What the section is for, in a question mark's tooltip beside its title ({@link HelpTip}), in place of a
81
+ * paragraph at the top of the tray. Needs `title`.
82
+ */
83
+ 'help'?: ReactNode;
74
84
  /**
75
85
  * `rows` hosts flat rows; `cards` spaces raised {@link FormCard}s apart.
76
86
  * @default 'rows'
@@ -91,7 +101,7 @@ export interface FormSectionProps {
91
101
  *
92
102
  * @param props - Component props.
93
103
  */
94
- export declare function FormSection({ title, trailing, layout, className, children, style, 'data-testid': testId }: FormSectionProps): import("react").JSX.Element;
104
+ export declare function FormSection({ title, trailing, help, layout, className, children, style, 'data-testid': testId }: FormSectionProps): import("react").JSX.Element;
95
105
  /** Props for {@link FormCard}. */
96
106
  export interface FormCardProps {
97
107
  /** Extra classes on the card. */
@@ -131,6 +141,22 @@ export interface RowTextProps {
131
141
  * @param props - Component props.
132
142
  */
133
143
  export declare function RowText({ label, description, truncate, className, style }: RowTextProps): import("react").JSX.Element;
144
+ /** Props for {@link Facts}. */
145
+ export interface FactsProps {
146
+ /** The facts, in order. Empty ones (`undefined`, `null`, `false`, `''`) are left out. */
147
+ facts: readonly (ReactNode | undefined | false | null)[];
148
+ /** Extra classes on the root element. */
149
+ className?: string;
150
+ /** Inline styles on the root element, merged after the component's own. */
151
+ style?: CSSProperties;
152
+ }
153
+ /**
154
+ * Facts about a thing on one quiet line, each its own block with space between them (never a dot), wrapping
155
+ * between facts rather than inside a short one. Renders nothing when no fact is left.
156
+ *
157
+ * @param props - Component props.
158
+ */
159
+ export declare function Facts({ facts, className, style }: FactsProps): import("react").JSX.Element | null;
134
160
  /** Props for {@link MetaChip}. */
135
161
  export interface MetaChipProps {
136
162
  /**
@@ -292,6 +318,7 @@ export interface SegmentedRowProps<T extends string> {
292
318
  label: string;
293
319
  icon?: string;
294
320
  title?: string;
321
+ tooltip?: ReactNode;
295
322
  disabled?: boolean;
296
323
  }[];
297
324
  /** Extra classes on the root element. */
@@ -1,7 +1,9 @@
1
+ import { HelpTip } from "./HelpTip.js";
1
2
  import { Notice } from "./Notice.js";
2
3
  import { Segmented } from "./Segmented.js";
3
4
  import { Raised, SectionLabel, Tray } from "./Surface.js";
4
5
  import { SwitchGlyph } from "./SwitchGlyph.js";
6
+ import { Fragment } from "react";
5
7
  import { jsx, jsxs } from "react/jsx-runtime";
6
8
  // src/components/Form.tsx
7
9
  const FOCUS_RING = "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-[var(--zg-ring)]";
@@ -13,6 +15,11 @@ const ROW_CLASS = "flex items-center gap-3 px-3 py-2";
13
15
  const ROW_HOST_CLASS = `zg-press-host ${ROW_CLASS} rounded-zg-md`;
14
16
  /** The control of a {@link HostRow} that takes the row's width: a picker's trigger, holding the label and the value. */
15
17
  const ROW_TRIGGER_CLASS = `zg-press-subtle flex items-center gap-3 flex-1 min-w-0 text-left bg-transparent border-0 p-0 cursor-pointer text-[var(--zg-text)] rounded-zg-sm disabled:cursor-default ${FOCUS_RING}`;
18
+ /**
19
+ * The control of a {@link HostRow} that is its value chip alone (the label stays outside it, a clear button can sit
20
+ * between them): the row hands it a click on the row.
21
+ */
22
+ const ROW_CHIP_TRIGGER_CLASS = `zg-press-subtle inline-flex shrink-0 min-w-0 max-w-[60%] bg-transparent border-0 p-0 cursor-pointer rounded-full disabled:cursor-default ${FOCUS_RING}`;
16
23
  /** What answers a click on a host row by itself. */
17
24
  const ROW_OWN_TARGETS = "button, a, input, select, textarea, label";
18
25
  /** Single-line text input: a well set into its surface. */
@@ -62,14 +69,20 @@ function OpLine({ kind, children, className, style }) {
62
69
  *
63
70
  * @param props - Component props.
64
71
  */
65
- function FormSection({ title, trailing, layout = "rows", className = "", children, style, "data-testid": testId }) {
72
+ function FormSection({ title, trailing, help, layout = "rows", className = "", children, style, "data-testid": testId }) {
66
73
  return /* @__PURE__ */ jsxs("section", {
67
74
  className,
68
75
  style,
69
76
  "data-testid": testId,
70
77
  children: [(title || trailing) && /* @__PURE__ */ jsxs("div", {
71
- className: `flex items-center justify-between gap-2 min-h-5 ${layout === "rows" ? "px-4" : "px-1"} mb-1.5`,
72
- children: [title ? /* @__PURE__ */ jsx(SectionLabel, { children: title }) : /* @__PURE__ */ jsx("span", {}), trailing]
78
+ className: `flex items-center justify-between gap-2 min-h-7 ${layout === "rows" ? "px-4" : "px-1"} mb-1.5`,
79
+ children: [title ? help ? /* @__PURE__ */ jsxs("span", {
80
+ className: "flex items-center gap-1.5 min-w-0",
81
+ children: [/* @__PURE__ */ jsx(SectionLabel, { children: title }), /* @__PURE__ */ jsx(HelpTip, {
82
+ help,
83
+ ...typeof title === "string" ? { about: title } : {}
84
+ })]
85
+ }) : /* @__PURE__ */ jsx(SectionLabel, { children: title }) : /* @__PURE__ */ jsx("span", {}), trailing]
73
86
  }), /* @__PURE__ */ jsx(Tray, {
74
87
  radius: "lg",
75
88
  className: layout === "cards" ? "p-1.5 flex flex-col gap-1.5" : "p-1 flex flex-col",
@@ -108,6 +121,24 @@ function RowText({ label, description, truncate = true, className, style }) {
108
121
  })]
109
122
  });
110
123
  }
124
+ /**
125
+ * Facts about a thing on one quiet line, each its own block with space between them (never a dot), wrapping
126
+ * between facts rather than inside a short one. Renders nothing when no fact is left.
127
+ *
128
+ * @param props - Component props.
129
+ */
130
+ function Facts({ facts, className, style }) {
131
+ const shown = facts.filter((fact) => fact !== void 0 && fact !== false && fact !== null && fact !== "");
132
+ if (shown.length === 0) return null;
133
+ return /* @__PURE__ */ jsx("span", {
134
+ className: ["flex flex-wrap gap-x-3 gap-y-0.5 min-w-0", className].filter(Boolean).join(" "),
135
+ style,
136
+ children: shown.map((fact, i) => /* @__PURE__ */ jsxs(Fragment, { children: [i > 0 && " ", /* @__PURE__ */ jsx("span", {
137
+ className: "min-w-0 [overflow-wrap:anywhere]",
138
+ children: fact
139
+ })] }, i))
140
+ });
141
+ }
111
142
  const CHIP_TONE = {
112
143
  muted: "",
113
144
  text: "!text-[var(--zg-text)]",
@@ -262,18 +293,23 @@ function SwitchRow({ label, description, on, onToggle, className, style }) {
262
293
  */
263
294
  function SegmentedRow({ label, description, value, onChange, options, className, style }) {
264
295
  return /* @__PURE__ */ jsxs("div", {
265
- className: [ROW_CLASS, className].filter(Boolean).join(" "),
296
+ className: [
297
+ ROW_CLASS,
298
+ "flex-wrap gap-y-2",
299
+ className
300
+ ].filter(Boolean).join(" "),
266
301
  style,
267
302
  children: [/* @__PURE__ */ jsx(RowText, {
268
303
  label,
269
304
  description,
270
- truncate: false
305
+ truncate: false,
306
+ className: "min-w-[12rem] basis-[12rem]"
271
307
  }), /* @__PURE__ */ jsx(Segmented, {
272
308
  value,
273
309
  onChange,
274
310
  options,
275
311
  ariaLabel: label,
276
- className: "shrink-0"
312
+ className: "shrink-0 ml-auto"
277
313
  })]
278
314
  });
279
315
  }
@@ -310,4 +346,4 @@ function SliderRow({ label, description, value, min, max, step, format, onChange
310
346
  ]
311
347
  });
312
348
  }
313
- export { Checkbox, ErrorNote, FIELD_LABEL_CLASS, FORM_CARD_CLASS, FormCard, FormSection, HostRow, INPUT_CLASS, MetaChip, NavRow, OpLine, ROW_BUTTON_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, RowText, SegmentedRow, SliderRow, Switch, SwitchRow, TEXTAREA_CLASS, ToggleSwitch };
349
+ export { Checkbox, ErrorNote, FIELD_LABEL_CLASS, FORM_CARD_CLASS, Facts, FormCard, FormSection, HostRow, INPUT_CLASS, MetaChip, NavRow, OpLine, ROW_BUTTON_CLASS, ROW_CHIP_TRIGGER_CLASS, ROW_CLASS, ROW_HOST_CLASS, ROW_TRIGGER_CLASS, RowText, SegmentedRow, SliderRow, Switch, SwitchRow, TEXTAREA_CLASS, ToggleSwitch };