@opengeni/react 6.36.0 → 6.36.1-canary.45113772604001

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 (1087) hide show
  1. package/dist/app/app-state.js +10 -10
  2. package/dist/app/components/Composer.js +19 -19
  3. package/dist/app/components/agent/agent-capability-picker.js +6 -6
  4. package/dist/app/components/agents/agent-can-use.js +21 -20
  5. package/dist/app/components/agents/agent-form-page.js +69 -65
  6. package/dist/app/components/agents/agent-form-page.js.map +1 -1
  7. package/dist/app/components/agents/agent-page.js +68 -64
  8. package/dist/app/components/agents/agent-setup-sections.js +40 -36
  9. package/dist/app/components/agents/agent-skills.js +5 -5
  10. package/dist/app/components/agents/agent-trigger-chat-field.js +4 -4
  11. package/dist/app/components/agents/agent-trigger-dialog.js +20 -17
  12. package/dist/app/components/agents/agent-trigger-model.d.ts +14 -0
  13. package/dist/app/components/agents/agent-trigger-picker.js +6 -5
  14. package/dist/app/components/agents/agent-trigger-repositories.d.ts +9 -0
  15. package/dist/app/components/agents/agent-trigger-repositories.js +31 -0
  16. package/dist/app/components/agents/agents-page.css +1905 -0
  17. package/dist/app/components/agents/agents-page.css.map +1 -0
  18. package/dist/app/components/agents/agents-page.js +106 -61
  19. package/dist/app/components/agents/agents-page.js.map +1 -1
  20. package/dist/app/components/agents/composer-agent-chip.js +29 -29
  21. package/dist/app/components/agents/session-agent-chip.js +29 -29
  22. package/dist/app/components/artifacts/app-package.js +3 -3
  23. package/dist/app/components/artifacts/app-server-status.d.ts +22 -0
  24. package/dist/app/components/artifacts/app-server-status.js +13 -0
  25. package/dist/app/components/artifacts/artifact-library.css +1905 -0
  26. package/dist/app/components/artifacts/artifact-library.css.map +1 -0
  27. package/dist/app/components/artifacts/artifact-library.js +8 -8
  28. package/dist/app/components/artifacts/artifact-viewer.css +1905 -0
  29. package/dist/app/components/artifacts/artifact-viewer.css.map +1 -0
  30. package/dist/app/components/artifacts/artifact-viewer.js +30 -30
  31. package/dist/app/components/artifacts/chat-interactive-block.js +16 -16
  32. package/dist/app/components/artifacts/file-reach-dialog.js +6 -6
  33. package/dist/app/components/artifacts/inline-chat-image.js +28 -28
  34. package/dist/app/components/artifacts/ready-made-apps.css +1905 -0
  35. package/dist/app/components/artifacts/ready-made-apps.css.map +1 -0
  36. package/dist/app/components/artifacts/ready-made-apps.d.ts +3 -0
  37. package/dist/app/components/artifacts/ready-made-apps.js +40 -0
  38. package/dist/app/components/artifacts/retained-file-preview.js +30 -30
  39. package/dist/app/components/artifacts/retained-text-preview.js +3 -3
  40. package/dist/app/components/artifacts/site-actions.js +1 -1
  41. package/dist/app/components/artifacts/site-audience.js +3 -3
  42. package/dist/app/components/artifacts/site-conversations.js +15 -15
  43. package/dist/app/components/artifacts/site-data.js +11 -11
  44. package/dist/app/components/artifacts/site-publishing-page.js +32 -32
  45. package/dist/app/components/artifacts/site-publishing.js +24 -24
  46. package/dist/app/components/artifacts/site-settings.js +31 -31
  47. package/dist/app/components/artifacts/site-version-menu.js +4 -4
  48. package/dist/app/components/billing-class-mark.js +3 -3
  49. package/dist/app/components/capabilities/capability-detail-sheet.js +7 -7
  50. package/dist/app/components/capabilities/capability-logo-source.js +15 -14
  51. package/dist/app/components/capabilities/connector-tool-permissions.js +4 -4
  52. package/dist/app/components/capabilities/native-connect-setup.js +16 -15
  53. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +3 -3
  54. package/dist/app/components/capabilities/perform-capability-action.js +1 -1
  55. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -16
  56. package/dist/app/components/capabilities/session-capability-card.js +70 -69
  57. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  58. package/dist/app/components/capabilities/session-chrome-card.js +22 -22
  59. package/dist/app/components/capabilities/session-connect-inputs-card.js +16 -15
  60. package/dist/app/components/capabilities/session-custom-mcp-card.js +18 -17
  61. package/dist/app/components/capabilities/session-github-card.js +19 -18
  62. package/dist/app/components/capabilities/session-machine-card.js +21 -21
  63. package/dist/app/components/capabilities/session-personal-github-card.js +16 -15
  64. package/dist/app/components/capabilities/session-plugin-card.js +9 -9
  65. package/dist/app/components/capabilities/use-connection-accounts.js +1 -1
  66. package/dist/app/components/command-menu/chat-status.js +18 -18
  67. package/dist/app/components/command-menu/chat-switcher.js +47 -47
  68. package/dist/app/components/command-menu/command-menu.js +58 -58
  69. package/dist/app/components/command-menu/shortcut-sheet.js +15 -15
  70. package/dist/app/components/composer-capabilities-menu-body.js +4 -4
  71. package/dist/app/components/composer-mobile-plus-panel.js +9 -9
  72. package/dist/app/components/composer-mobile-plus.js +1 -1
  73. package/dist/app/components/credit-required-gate.js +1 -1
  74. package/dist/app/components/credit-required-prompt.js +11 -11
  75. package/dist/app/components/credits/checkout-credits-celebration.js +2 -2
  76. package/dist/app/components/credits/checkout-return.js +2 -2
  77. package/dist/app/components/credits/credit-refusal-notice.js +2 -2
  78. package/dist/app/components/desktop/app-shots.js +7 -7
  79. package/dist/app/components/desktop/computer-use.js +2 -2
  80. package/dist/app/components/desktop/this-computer.js +5 -5
  81. package/dist/app/components/feedback.js +3 -3
  82. package/dist/app/components/follow-up-repository-menu-body.js +2 -2
  83. package/dist/app/components/follow-up-repository-picker.js +1 -1
  84. package/dist/app/components/github-app-connect-launcher.js +1 -1
  85. package/dist/app/components/machines/connect-machine-dialog.js +11 -11
  86. package/dist/app/components/markdown.js +7 -7
  87. package/dist/app/components/models/models-ui.js +6 -6
  88. package/dist/app/components/models/subscription-usage.js +5 -5
  89. package/dist/app/components/my-things.js +4 -4
  90. package/dist/app/components/own-where-it-works.js +3 -3
  91. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  92. package/dist/app/components/pickers.js +6 -6
  93. package/dist/app/components/rail/channel-create-dialog.js +3 -3
  94. package/dist/app/components/rail/project-glyph.js +29 -29
  95. package/dist/app/components/rail/project-profile.js +36 -36
  96. package/dist/app/components/rail/rail-context.js +1 -1
  97. package/dist/app/components/rail/rail-sections.js +80 -80
  98. package/dist/app/components/rail/session-header.js +64 -64
  99. package/dist/app/components/rail/session-list.js +78 -78
  100. package/dist/app/components/rail/session-row-content.js +4 -4
  101. package/dist/app/components/rail/session-row-hover-details.js +20 -20
  102. package/dist/app/components/rail/session-shell.js +102 -102
  103. package/dist/app/components/rail/site-session-group-heading.js +14 -14
  104. package/dist/app/components/repository-picker.js +2 -2
  105. package/dist/app/components/session/agent-configuration-panel.js +16 -16
  106. package/dist/app/components/session/artifact-session-page.js +1 -1
  107. package/dist/app/components/session/banners.js +9 -9
  108. package/dist/app/components/session/chat-avatar.js +29 -29
  109. package/dist/app/components/session/console-new-conversation.js +51 -51
  110. package/dist/app/components/session/descendant-requests.js +46 -46
  111. package/dist/app/components/session/editable-artifacts-workspace.css +1905 -0
  112. package/dist/app/components/session/editable-artifacts-workspace.css.map +1 -0
  113. package/dist/app/components/session/editable-artifacts-workspace.js +22 -22
  114. package/dist/app/components/session/failed-session-banner.js +10 -10
  115. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  116. package/dist/app/components/session/human-input-delegation-record.js +2 -2
  117. package/dist/app/components/session/human-input.js +42 -42
  118. package/dist/app/components/session/inspector.js +56 -56
  119. package/dist/app/components/session/linked-panel.js +3 -3
  120. package/dist/app/components/session/message-actions.js +3 -3
  121. package/dist/app/components/session/model-recovery-notice.js +3 -3
  122. package/dist/app/components/session/new-session-settings-menu.js +11 -11
  123. package/dist/app/components/session/new-session-setup-strip.js +30 -30
  124. package/dist/app/components/session/pull-request-panel.js +11 -11
  125. package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
  126. package/dist/app/components/session/sandbox-switcher.js +8 -8
  127. package/dist/app/components/session/sandbox-workspace.js +58 -58
  128. package/dist/app/components/session/search-markdown-highlight.js +8 -8
  129. package/dist/app/components/session/search-results-view.js +9 -9
  130. package/dist/app/components/session/session-admin-access.js +4 -4
  131. package/dist/app/components/session/session-admission-notice.js +4 -4
  132. package/dist/app/components/session/session-avatar-picker.js +30 -30
  133. package/dist/app/components/session/session-avatar.js +28 -28
  134. package/dist/app/components/session/session-machine-access-notice.js +4 -4
  135. package/dist/app/components/session/session-profile-dialog.js +34 -34
  136. package/dist/app/components/session/session-profile-editor.js +35 -35
  137. package/dist/app/components/session/session-retention.js +4 -4
  138. package/dist/app/components/session/session-search-dialog.js +9 -9
  139. package/dist/app/components/session/session-tenancy-control.js +8 -8
  140. package/dist/app/components/session/session-usage-limit-section.js +4 -4
  141. package/dist/app/components/session/share-chat-dialog.js +6 -6
  142. package/dist/app/components/session/subagents.js +13 -13
  143. package/dist/app/components/session/subscription-account-indicator.js +11 -11
  144. package/dist/app/components/session/subscription-account-menu.js +6 -6
  145. package/dist/app/components/settings/row-select.js +4 -4
  146. package/dist/app/components/toaster.js +2 -2
  147. package/dist/app/components/transcription-settings.js +6 -6
  148. package/dist/app/components/ui/destructive-confirm.js +5 -5
  149. package/dist/app/components/usage/usage-entry.js +3 -3
  150. package/dist/app/components/window-bar.js +13 -13
  151. package/dist/app/components/workspace-composer-plus.js +18 -17
  152. package/dist/app/components/workspace-reach.js +4 -4
  153. package/dist/app/embed/session-app.js +241 -240
  154. package/dist/app/lib/actions/actions-provider.js +12 -12
  155. package/dist/app/lib/agent-capabilities.js +3 -3
  156. package/dist/app/lib/app-connect-card.js +9 -9
  157. package/dist/app/lib/app-shared-key-dialog.js +4 -4
  158. package/dist/app/lib/app-sync-opt-in.js +3 -3
  159. package/dist/app/lib/codex-usage-query.js +2 -2
  160. package/dist/app/lib/composer-connectors.js +16 -15
  161. package/dist/app/lib/console-site.js +5 -5
  162. package/dist/app/lib/console-text.js +2 -2
  163. package/dist/app/lib/events.js +18 -18
  164. package/dist/app/lib/failed-session-copy.js +3 -3
  165. package/dist/app/lib/model-access-onboarding.js +3 -3
  166. package/dist/app/lib/move-chat-to-machine.js +3 -3
  167. package/dist/app/lib/needs-you.d.ts +2 -1
  168. package/dist/app/lib/needs-you.js +1 -1
  169. package/dist/app/lib/ready-made-apps.d.ts +14 -0
  170. package/dist/app/lib/ready-made-apps.js +8 -0
  171. package/dist/app/lib/session-branch-cache.js +13 -13
  172. package/dist/app/lib/session-capabilities.js +1 -1
  173. package/dist/app/lib/session-create.js +4 -4
  174. package/dist/app/lib/session-group-pagination.js +13 -13
  175. package/dist/app/lib/session-hover-facts.js +17 -17
  176. package/dist/app/lib/session-list-dirty-scopes.js +14 -14
  177. package/dist/app/lib/session-model.js +2 -2
  178. package/dist/app/lib/session-rail.js +10 -10
  179. package/dist/app/lib/session-rename.js +3 -3
  180. package/dist/app/lib/sessions-group.js +12 -12
  181. package/dist/app/lib/site-tool-consent-dialog.js +8 -8
  182. package/dist/app/lib/site-tool-consent.js +1 -1
  183. package/dist/app/lib/turn-failure-analytics.js +4 -4
  184. package/dist/app/lib/use-follow-up-repositories.js +3 -3
  185. package/dist/app/lib/use-workspace-machines.js +4 -4
  186. package/dist/app/lib/use-workspace-model-catalog.js +3 -3
  187. package/dist/app/lib/use-workspace-rigs.js +2 -2
  188. package/dist/app/lib/workspace-navigation-preference.js +4 -4
  189. package/dist/app/lib/workspace-scope-context.js +3 -3
  190. package/dist/app/routes/app-page-view.js +10 -10
  191. package/dist/app/routes/app-page.js +1 -1
  192. package/dist/app/routes/artifacts.css +1905 -0
  193. package/dist/app/routes/artifacts.css.map +1 -0
  194. package/dist/app/routes/artifacts.js +105 -94
  195. package/dist/app/routes/artifacts.js.map +1 -1
  196. package/dist/app/routes/retained-artifact.js +47 -47
  197. package/dist/app/routes/session-unavailable.js +2 -2
  198. package/dist/app/routes/session.js +131 -130
  199. package/dist/app/routes/sessions-index-hydration.js +5 -5
  200. package/dist/app/routes/sessions-index.js +108 -107
  201. package/dist/app/routes/site-view.js +107 -95
  202. package/dist/app/routes/site-view.js.map +1 -1
  203. package/dist/approval-review-model.js +2 -2
  204. package/dist/artifacts-document.js +4 -4
  205. package/dist/artifacts-presentation.js +5 -5
  206. package/dist/artifacts-spreadsheet.js +4 -4
  207. package/dist/artifacts.js +15 -15
  208. package/dist/automation-model.js +5 -5
  209. package/dist/automations.d.ts +1 -0
  210. package/dist/automations.js +29 -22
  211. package/dist/automations.js.map +1 -1
  212. package/dist/browser-viewer-EPGAK2W6.js +23 -0
  213. package/dist/chat-interactive-block-65YU6TMO.js +22 -0
  214. package/dist/chunk-25ODMMHH.js +403 -0
  215. package/dist/chunk-266ZPUMH.js +400 -0
  216. package/dist/chunk-2A7SB7UR.js +168 -0
  217. package/dist/chunk-2EU4Y7A7.js +100 -0
  218. package/dist/chunk-2F7VSGRS.js +1177 -0
  219. package/dist/chunk-2F7VSGRS.js.map +1 -0
  220. package/dist/chunk-2L6B6766.js +5915 -0
  221. package/dist/chunk-2L6B6766.js.map +1 -0
  222. package/dist/chunk-2LBYEHBH.js +570 -0
  223. package/dist/chunk-2MHIIF4N.js +141 -0
  224. package/dist/chunk-2SHWGDAA.js +283 -0
  225. package/dist/chunk-2VX42S4W.js +773 -0
  226. package/dist/chunk-2WGJQ4XK.js +311 -0
  227. package/dist/chunk-2XSF44TY.js +15 -0
  228. package/dist/chunk-33HUZMNE.js +639 -0
  229. package/dist/chunk-36IKHM4Q.js +148 -0
  230. package/dist/chunk-3JVQZAXQ.js +4480 -0
  231. package/dist/chunk-3SDESU6U.js +287 -0
  232. package/dist/chunk-3VXZFBP6.js +292 -0
  233. package/dist/chunk-3WDNCSVU.js +197 -0
  234. package/dist/chunk-3WDNCSVU.js.map +1 -0
  235. package/dist/chunk-3YKED2ZV.js +307 -0
  236. package/dist/chunk-3ZNOKD3S.js +1019 -0
  237. package/dist/chunk-45SB4UK3.js +2580 -0
  238. package/dist/chunk-47BETTVA.js +133 -0
  239. package/dist/chunk-4BTQ473O.js +274 -0
  240. package/dist/chunk-4JQRWJVR.js +249 -0
  241. package/dist/chunk-4NGIKV2W.js +316 -0
  242. package/dist/chunk-4NGIKV2W.js.map +1 -0
  243. package/dist/chunk-4R6WFQKZ.js +202 -0
  244. package/dist/chunk-4WEPVL7X.js +283 -0
  245. package/dist/chunk-4YWHOAB4.js +201 -0
  246. package/dist/chunk-52XGYRVS.js +155 -0
  247. package/dist/chunk-5G6UHUJZ.js +43 -0
  248. package/dist/chunk-5HFITPHH.js +229 -0
  249. package/dist/chunk-5LVVN2K7.js +650 -0
  250. package/dist/chunk-5PVXFVIT.js +48 -0
  251. package/dist/chunk-5WFGW7B7.js +187 -0
  252. package/dist/chunk-5YMSLKJP.js +92 -0
  253. package/dist/chunk-5YMSLKJP.js.map +1 -0
  254. package/dist/chunk-66M7RVM6.js +3070 -0
  255. package/dist/chunk-6AGNZI2W.js +437 -0
  256. package/dist/chunk-6ENO634Y.js +373 -0
  257. package/dist/chunk-6LQ5KEMP.js +200 -0
  258. package/dist/chunk-6QGIWLH5.js +428 -0
  259. package/dist/chunk-6WEDWD4N.js +170 -0
  260. package/dist/chunk-6YCYPXDA.js +114 -0
  261. package/dist/chunk-6YTNMDFP.js +318 -0
  262. package/dist/chunk-73O7NO3F.js +50 -0
  263. package/dist/chunk-76VXLTQF.js +251 -0
  264. package/dist/chunk-7EJ7PSZT.js +93 -0
  265. package/dist/chunk-7GS2MGFU.js +27 -0
  266. package/dist/chunk-7MF6MFHS.js +406 -0
  267. package/dist/chunk-7N35XBSC.js +386 -0
  268. package/dist/chunk-7ND2VMKV.js +270 -0
  269. package/dist/chunk-7RVJLO3N.js +154 -0
  270. package/dist/chunk-7VAILBP6.js +353 -0
  271. package/dist/chunk-7VSJQWFO.js +37 -0
  272. package/dist/chunk-7YKUIKGH.js +335 -0
  273. package/dist/chunk-A7DS77WC.js +138 -0
  274. package/dist/chunk-ABGHRGID.js +376 -0
  275. package/dist/chunk-ABGHRGID.js.map +1 -0
  276. package/dist/chunk-AEH34OOU.js +298 -0
  277. package/dist/chunk-ANWMRO2G.js +554 -0
  278. package/dist/chunk-APGUIORF.js +247 -0
  279. package/dist/chunk-ASCVQJB4.js +1309 -0
  280. package/dist/chunk-AVYFJKQS.js +10044 -0
  281. package/dist/chunk-AVYFJKQS.js.map +1 -0
  282. package/dist/chunk-AY4XH73V.js +1333 -0
  283. package/dist/chunk-B6AH43UQ.js +2434 -0
  284. package/dist/chunk-BBZUHH4F.js +154 -0
  285. package/dist/chunk-BBZUHH4F.js.map +1 -0
  286. package/dist/chunk-BGT43KDL.js +42 -0
  287. package/dist/chunk-BHS4KW4W.js +3851 -0
  288. package/dist/chunk-BJUDGPOD.js +1803 -0
  289. package/dist/chunk-BJUDGPOD.js.map +1 -0
  290. package/dist/chunk-BNWO72C2.js +851 -0
  291. package/dist/chunk-BSPIASSQ.js +2551 -0
  292. package/dist/chunk-BVWJEZXG.js +230 -0
  293. package/dist/chunk-BZ47G3VP.js +366 -0
  294. package/dist/chunk-C6KI5P3H.js +72 -0
  295. package/dist/chunk-CLERWAEA.js +2317 -0
  296. package/dist/chunk-CNRFFCAE.js +572 -0
  297. package/dist/chunk-CPC6CYVW.js +236 -0
  298. package/dist/chunk-D23UAPXK.js +107 -0
  299. package/dist/chunk-DAPZEB4R.js +29 -0
  300. package/dist/chunk-DEDEA3WS.js +205 -0
  301. package/dist/chunk-DHVA3T3K.js +271 -0
  302. package/dist/chunk-DJQ6TKIP.js +391 -0
  303. package/dist/chunk-DK2CDAMR.js +33 -0
  304. package/dist/chunk-DPOB6MUS.js +278 -0
  305. package/dist/chunk-DSO7S6PZ.js +137 -0
  306. package/dist/chunk-DV3OECO6.js +333 -0
  307. package/dist/chunk-DW2IQRMB.js +1187 -0
  308. package/dist/chunk-DWLPQTDL.js +134 -0
  309. package/dist/chunk-DXMKECFR.js +3176 -0
  310. package/dist/chunk-DYQRNIID.js +73 -0
  311. package/dist/chunk-DZLWO73N.js +129 -0
  312. package/dist/chunk-DZZSFPMW.js +66 -0
  313. package/dist/chunk-DZZSFPMW.js.map +1 -0
  314. package/dist/chunk-E2GNUL64.js +107 -0
  315. package/dist/chunk-E7XU2KHD.js +192 -0
  316. package/dist/chunk-ENYULVQW.js +114 -0
  317. package/dist/chunk-EWHQ3DFM.js +41 -0
  318. package/dist/chunk-F2T4J7CK.js +4957 -0
  319. package/dist/chunk-F2T4J7CK.js.map +1 -0
  320. package/dist/chunk-F3LIUDXN.js +738 -0
  321. package/dist/chunk-F5C7DTVR.js +103 -0
  322. package/dist/chunk-F5NFGBIN.js +391 -0
  323. package/dist/chunk-F6XJLGOV.js +175 -0
  324. package/dist/chunk-F7T2STMX.js +158 -0
  325. package/dist/chunk-FAEVOM6B.js +371 -0
  326. package/dist/chunk-FCFAXQDM.js +276 -0
  327. package/dist/chunk-FEQVCQMK.js +138 -0
  328. package/dist/chunk-FLD4VOJW.js +4565 -0
  329. package/dist/chunk-FLD4VOJW.js.map +1 -0
  330. package/dist/chunk-FLDF2Z44.js +396 -0
  331. package/dist/chunk-GADABL3P.js +772 -0
  332. package/dist/chunk-GFUDB3SA.js +140 -0
  333. package/dist/chunk-GGPZPBHS.js +215 -0
  334. package/dist/chunk-GIEGIEMT.js +311 -0
  335. package/dist/chunk-GKWFQEO3.js +187 -0
  336. package/dist/chunk-GMMB4NCN.js +250 -0
  337. package/dist/chunk-GN4FOL2G.js +269 -0
  338. package/dist/chunk-GQJAMANY.js +469 -0
  339. package/dist/chunk-H7F4ANJQ.js +379 -0
  340. package/dist/chunk-HEPFJ3XQ.js +3110 -0
  341. package/dist/chunk-HLRAQITA.js +234 -0
  342. package/dist/chunk-HXYSZKCC.js +117 -0
  343. package/dist/chunk-I5Q6FVHP.js +828 -0
  344. package/dist/chunk-I7M5BYJU.js +265 -0
  345. package/dist/chunk-IH3J7VWW.js +85 -0
  346. package/dist/chunk-IMMDXSZ4.js +178 -0
  347. package/dist/chunk-IOMZDY5D.js +199 -0
  348. package/dist/chunk-IQTCUUDF.js +1236 -0
  349. package/dist/chunk-ISR6KXWT.js +898 -0
  350. package/dist/chunk-IWPPGXUZ.js +3321 -0
  351. package/dist/chunk-IYKO6BBK.js +3854 -0
  352. package/dist/chunk-IYKO6BBK.js.map +1 -0
  353. package/dist/chunk-IYUZPNMU.js +79 -0
  354. package/dist/chunk-IYUZPNMU.js.map +1 -0
  355. package/dist/chunk-JNPCRNPA.js +84 -0
  356. package/dist/chunk-JSJGGP32.js +505 -0
  357. package/dist/chunk-JZZUEJYD.js +56 -0
  358. package/dist/chunk-K5XFZKK5.js +270 -0
  359. package/dist/chunk-K6GRTSEA.js +65 -0
  360. package/dist/chunk-KA4PZU3Q.js +103 -0
  361. package/dist/chunk-KGZ35ESO.js +83 -0
  362. package/dist/chunk-KRM4PW5N.js +1021 -0
  363. package/dist/chunk-KSNKF6FE.js +551 -0
  364. package/dist/chunk-KSNKF6FE.js.map +1 -0
  365. package/dist/chunk-LEZGGRDQ.js +1095 -0
  366. package/dist/chunk-LFWMFFKT.js +144 -0
  367. package/dist/chunk-LKSPUZPH.js +849 -0
  368. package/dist/chunk-LLX4S6BI.js +401 -0
  369. package/dist/chunk-M4WEF4DZ.js +850 -0
  370. package/dist/chunk-MATYGLUT.js +121 -0
  371. package/dist/chunk-MDI6SH7B.js +27 -0
  372. package/dist/chunk-MQO7MSA6.js +43 -0
  373. package/dist/chunk-MQO7MSA6.js.map +1 -0
  374. package/dist/chunk-MQTYIBY6.js +263 -0
  375. package/dist/chunk-MRKY2GL5.js +1185 -0
  376. package/dist/chunk-MSIQ42IY.js +794 -0
  377. package/dist/chunk-MVGU7BET.js +357 -0
  378. package/dist/chunk-MWY4TBDY.js +404 -0
  379. package/dist/chunk-NGQCWCD6.js +234 -0
  380. package/dist/chunk-NKXMIOYN.js +538 -0
  381. package/dist/chunk-NMVRFFCR.js +256 -0
  382. package/dist/chunk-NNTDIKJP.js +407 -0
  383. package/dist/chunk-NQXCPP4G.js +98 -0
  384. package/dist/chunk-NYGS6FNV.js +132 -0
  385. package/dist/chunk-O3LOQDTI.js +176 -0
  386. package/dist/chunk-O5HRZ2KG.js +818 -0
  387. package/dist/chunk-O5PZRVQR.js +214 -0
  388. package/dist/chunk-O6KR5SN7.js +399 -0
  389. package/dist/chunk-OBKDRV2H.js +259 -0
  390. package/dist/chunk-OBKKUBGL.js +107 -0
  391. package/dist/chunk-OFYXDB6I.js +52 -0
  392. package/dist/chunk-OLMWJGSJ.js +50 -0
  393. package/dist/chunk-OO7N6APA.js +598 -0
  394. package/dist/chunk-OO7N6APA.js.map +1 -0
  395. package/dist/chunk-ORRACKLB.js +1263 -0
  396. package/dist/chunk-P426WWAB.js +351 -0
  397. package/dist/chunk-P4GOY3ZL.js +177 -0
  398. package/dist/chunk-P4KVJLUC.js +129 -0
  399. package/dist/chunk-P4N7ZS6W.js +56 -0
  400. package/dist/chunk-P6LSLNSL.js +209 -0
  401. package/dist/chunk-P7MQCSML.js +77 -0
  402. package/dist/chunk-P7MQCSML.js.map +1 -0
  403. package/dist/chunk-PAFSIDM2.js +111 -0
  404. package/dist/chunk-PC2JAIAH.js +117 -0
  405. package/dist/chunk-PGSXT5OY.js +207 -0
  406. package/dist/chunk-QDMGUTOU.js +2984 -0
  407. package/dist/chunk-QEMDQKQT.js +1356 -0
  408. package/dist/chunk-QK7VU5N3.js +2412 -0
  409. package/dist/chunk-QL4Q332Z.js +12 -0
  410. package/dist/chunk-QL5227KT.js +1184 -0
  411. package/dist/chunk-QREYGVWO.js +297 -0
  412. package/dist/chunk-QREYGVWO.js.map +1 -0
  413. package/dist/chunk-QUFCZMHG.js +114 -0
  414. package/dist/chunk-QXPKUKOV.js +227 -0
  415. package/dist/chunk-QZE3KD34.js +441 -0
  416. package/dist/chunk-RAIUIXCY.js +166 -0
  417. package/dist/chunk-RDLS6IZY.js +723 -0
  418. package/dist/chunk-RKPETJDJ.js +175 -0
  419. package/dist/chunk-RMDLTRLI.js +372 -0
  420. package/dist/chunk-RR6DQN4X.js +523 -0
  421. package/dist/chunk-RVPH6BB7.js +218 -0
  422. package/dist/chunk-RVXLSVJH.js +931 -0
  423. package/dist/chunk-RVY5EZNU.js +246 -0
  424. package/dist/chunk-RWHBX4MN.js +1024 -0
  425. package/dist/chunk-RWHDMGFG.js +214 -0
  426. package/dist/chunk-RYB3WBMZ.js +113 -0
  427. package/dist/chunk-S7EO77EE.js +449 -0
  428. package/dist/chunk-S7J4HBPP.js +584 -0
  429. package/dist/chunk-SA3XI7FB.js +108 -0
  430. package/dist/chunk-SKRTCSUL.js +196 -0
  431. package/dist/chunk-SUWDILUY.js +5089 -0
  432. package/dist/chunk-SWTPVMR4.js +251 -0
  433. package/dist/chunk-T5BYEE66.js +191 -0
  434. package/dist/chunk-T652Q4R6.js +48 -0
  435. package/dist/chunk-TBUOHK6R.js +608 -0
  436. package/dist/chunk-TCUAGCAX.js +1628 -0
  437. package/dist/chunk-TLWH4E3P.js +126 -0
  438. package/dist/chunk-TNHGSWG3.js +1152 -0
  439. package/dist/chunk-TO6VBJI3.js +383 -0
  440. package/dist/chunk-TOL7MOAN.js +162 -0
  441. package/dist/chunk-U243CBVZ.js +2553 -0
  442. package/dist/chunk-U2CEPRDH.js +46 -0
  443. package/dist/chunk-UAZPXKPH.js +3996 -0
  444. package/dist/chunk-UHRGUMLJ.js +412 -0
  445. package/dist/chunk-UNDSD6UA.js +131 -0
  446. package/dist/chunk-USU2SS4V.js +3690 -0
  447. package/dist/chunk-USWA5GQQ.js +340 -0
  448. package/dist/chunk-UXGTI4HR.js +184 -0
  449. package/dist/chunk-UZKAHEQO.js +172 -0
  450. package/dist/chunk-VALESBNH.js +113 -0
  451. package/dist/chunk-VMSMVWCJ.js +515 -0
  452. package/dist/chunk-VPERSFGV.js +158 -0
  453. package/dist/chunk-VVW2CBWK.js +21 -0
  454. package/dist/chunk-VVW2CBWK.js.map +1 -0
  455. package/dist/chunk-VXPY2GF3.js +124 -0
  456. package/dist/chunk-W7RKXZDV.js +112 -0
  457. package/dist/chunk-WEGZPK4I.js +532 -0
  458. package/dist/chunk-WPKY3BGG.js +380 -0
  459. package/dist/chunk-X3T3N6W5.js +1022 -0
  460. package/dist/chunk-X4OGMBY6.js +110 -0
  461. package/dist/chunk-X7ZHIJEI.js +82 -0
  462. package/dist/chunk-XR7Y2HPZ.js +67 -0
  463. package/dist/chunk-Y2NMKJ7F.js +57 -0
  464. package/dist/chunk-Y2QYPJDN.js +26 -0
  465. package/dist/chunk-Y47EPVCD.js +211 -0
  466. package/dist/chunk-Y5Q4ETIW.js +162 -0
  467. package/dist/chunk-YMQVVFXI.js +105 -0
  468. package/dist/chunk-YQ6FP33X.js +378 -0
  469. package/dist/chunk-YUA42N5A.js +406 -0
  470. package/dist/chunk-YXFNW64N.js +91 -0
  471. package/dist/chunk-Z76RJPZF.js +389 -0
  472. package/dist/chunk-ZD67RM6G.js +60 -0
  473. package/dist/chunk-ZE4RD7U5.js +231 -0
  474. package/dist/chunk-ZGR7LNXC.js +432 -0
  475. package/dist/chunk-ZNA65Q6Y.js +20 -0
  476. package/dist/chunk-ZRNK6FK6.js +188 -0
  477. package/dist/chunk-ZVAIKQMC.js +296 -0
  478. package/dist/chunk-ZZ3KNGTJ.js +246 -0
  479. package/dist/components/automations/pasted-webhook-steps.d.ts +29 -0
  480. package/dist/components/browser-viewer.d.ts +4 -1
  481. package/dist/components/human-input-form.d.ts +3 -4
  482. package/dist/components/use-fit-browser-viewport.d.ts +10 -0
  483. package/dist/composer.js +8 -8
  484. package/dist/computer-viewer-M5N3GWBR.js +21 -0
  485. package/dist/connect.js +17 -15
  486. package/dist/connection-step-up-CNVFVWYO.js +146 -0
  487. package/dist/connection-step-up-CNVFVWYO.js.map +1 -0
  488. package/dist/desktop-dictation.js +8 -8
  489. package/dist/desktop.js +2 -2
  490. package/dist/editor.js +2 -2
  491. package/dist/embedded-new-voice-QZJG5DZ3.js +25 -0
  492. package/dist/embedded-voice-7KOQNGKU.js +25 -0
  493. package/dist/fleet-decision-row-FJPAWNOQ.js +361 -0
  494. package/dist/in-chat-connect-model.js +5 -5
  495. package/dist/index.js +65 -65
  496. package/dist/interaction.js +5 -5
  497. package/dist/latest-question-F3VPDR7U.js +124 -0
  498. package/dist/machines.js +3 -3
  499. package/dist/meetings-recorder.js +1 -1
  500. package/dist/meetings.js +20 -20
  501. package/dist/messages/en.d.ts +1 -1
  502. package/dist/messages.js +1 -1
  503. package/dist/model-policy-picker-menu-UNI5B6N6.js +23 -0
  504. package/dist/model-policy-picker-menu-UNI5B6N6.js.map +1 -0
  505. package/dist/payment-page-card-HZJVN3F4.js +226 -0
  506. package/dist/platform-activity-row-NPEGG2VE.js +156 -0
  507. package/dist/queue-surface-implementation-RTCTPF5T.js +932 -0
  508. package/dist/realtime.js +4 -4
  509. package/dist/recorder-host-YPWPLMS6.js +80 -0
  510. package/dist/recordings.js +3 -3
  511. package/dist/sandbox-files-BJKCREOU.js +28 -0
  512. package/dist/sandbox-files-BJKCREOU.js.map +1 -0
  513. package/dist/session-app.js +242 -241
  514. package/dist/session-connect-cards-DK3UJZRY.js +27 -0
  515. package/dist/session-connect-cards-DK3UJZRY.js.map +1 -0
  516. package/dist/session-list-model.js +2 -2
  517. package/dist/session-realtime-AKDUKFY4.js +30 -0
  518. package/dist/session-realtime-AKDUKFY4.js.map +1 -0
  519. package/dist/session-realtime.js +2 -2
  520. package/dist/session-ui.js +42 -42
  521. package/dist/session.js +11 -11
  522. package/dist/sites.js +2 -2
  523. package/dist/terminal.js +2 -2
  524. package/dist/this-computer.js +3 -3
  525. package/dist/timeline-annotation-markers-7QSYK22C.js +157 -0
  526. package/dist/timeline-annotation-selection-XYNMESWL.js +208 -0
  527. package/dist/timeline-annotations-dialog-WSI6L2CP.js +283 -0
  528. package/dist/timeline-model.js +26 -26
  529. package/dist/ui/access-list.js +5 -5
  530. package/dist/ui/cadence-picker.js +5 -5
  531. package/dist/ui/choice-cards.js +3 -3
  532. package/dist/ui/confirm-dialog.js +2 -2
  533. package/dist/ui/copy-field.js +3 -3
  534. package/dist/ui/detail-page.js +2 -2
  535. package/dist/ui/detail-sheet.js +2 -2
  536. package/dist/ui/disclosure.js +3 -3
  537. package/dist/ui/email-chips-input.js +3 -3
  538. package/dist/ui/field.js +2 -2
  539. package/dist/ui/flush-form-page.js +3 -3
  540. package/dist/ui/form-dialog.js +2 -2
  541. package/dist/ui/list-row.js +4 -4
  542. package/dist/ui/relative-time.js +3 -3
  543. package/dist/ui/revision-history.js +5 -5
  544. package/dist/ui/role-select.js +5 -5
  545. package/dist/ui/select-menu.js +3 -3
  546. package/dist/ui/usage-meter.js +4 -4
  547. package/dist/usage.js +2 -2
  548. package/dist/workbench.js +4 -4
  549. package/package.json +6 -5
  550. package/src/app/components/agents/agent-skills.tsx +21 -18
  551. package/src/app/components/agents/agent-trigger-dialog.tsx +80 -119
  552. package/src/app/components/agents/agent-trigger-model.ts +47 -0
  553. package/src/app/components/agents/agent-trigger-repositories.tsx +88 -0
  554. package/src/app/components/agents/agents-page.tsx +118 -38
  555. package/src/app/components/artifacts/app-server-status.test.tsx +33 -0
  556. package/src/app/components/artifacts/app-server-status.tsx +93 -0
  557. package/src/app/components/artifacts/ready-made-apps.tsx +84 -0
  558. package/src/app/lib/codex-model-switch.ts +1 -0
  559. package/src/app/lib/needs-you.test.ts +8 -0
  560. package/src/app/lib/needs-you.tsx +3 -1
  561. package/src/app/lib/ready-made-apps.tsx +42 -0
  562. package/src/app/lib/session-capabilities.tsx +1 -0
  563. package/src/app/routes/artifacts.tsx +11 -0
  564. package/src/app/routes/site-view.tsx +9 -0
  565. package/src/automations.ts +8 -2
  566. package/src/components/automations/pasted-webhook-steps.tsx +89 -0
  567. package/src/components/browser-viewer.tsx +49 -7
  568. package/src/components/human-input-form.tsx +16 -5
  569. package/src/components/secret-question-field.tsx +42 -32
  570. package/src/components/use-fit-browser-viewport.ts +84 -0
  571. package/src/messages/en.ts +1 -1
  572. package/src/timeline/projection.ts +5 -2
  573. package/src/timeline/tool-steps.ts +2 -0
  574. package/dist/browser-viewer-EIEMRVFF.js +0 -23
  575. package/dist/chat-interactive-block-FV37LWYZ.js +0 -22
  576. package/dist/chunk-2COBAJC7.js +0 -818
  577. package/dist/chunk-2HS3IUXE.js +0 -170
  578. package/dist/chunk-2JTMFYCT.js +0 -296
  579. package/dist/chunk-2JXKP4M6.js +0 -114
  580. package/dist/chunk-2P5K7CBH.js +0 -269
  581. package/dist/chunk-2XGRHMRI.js +0 -250
  582. package/dist/chunk-332BYSAZ.js +0 -65
  583. package/dist/chunk-3EM5GTP3.js +0 -158
  584. package/dist/chunk-3L5ATO4A.js +0 -52
  585. package/dist/chunk-3S3PJB7J.js +0 -107
  586. package/dist/chunk-3SBKYPNM.js +0 -270
  587. package/dist/chunk-3Z7VA6ET.js +0 -114
  588. package/dist/chunk-43BRJBEV.js +0 -207
  589. package/dist/chunk-46LZO4ZO.js +0 -188
  590. package/dist/chunk-4AH4EEHE.js +0 -298
  591. package/dist/chunk-4D3YJNVN.js +0 -270
  592. package/dist/chunk-4E5QVAT4.js +0 -4480
  593. package/dist/chunk-4I4RTI4D.js +0 -37
  594. package/dist/chunk-4KASGJTF.js +0 -287
  595. package/dist/chunk-4RUKLIOF.js +0 -1263
  596. package/dist/chunk-4UU7FN3I.js +0 -650
  597. package/dist/chunk-4ZRNASBF.js +0 -2551
  598. package/dist/chunk-5EJBPQI2.js +0 -41
  599. package/dist/chunk-5G4IGG7F.js +0 -209
  600. package/dist/chunk-5JAYZOAW.js +0 -131
  601. package/dist/chunk-5JOKVDSR.js +0 -789
  602. package/dist/chunk-5JOKVDSR.js.map +0 -1
  603. package/dist/chunk-5MP3G7ZV.js +0 -1236
  604. package/dist/chunk-5OVRMKP5.js +0 -42
  605. package/dist/chunk-5SGTRULO.js +0 -1184
  606. package/dist/chunk-5SOL4INY.js +0 -572
  607. package/dist/chunk-5Y34P32B.js +0 -27
  608. package/dist/chunk-62HIKJ5F.js +0 -72
  609. package/dist/chunk-63VNZRLY.js +0 -386
  610. package/dist/chunk-63WDQV5X.js +0 -148
  611. package/dist/chunk-6DOIINY4.js +0 -201
  612. package/dist/chunk-6DQBUKGJ.js +0 -112
  613. package/dist/chunk-6SETNFNH.js +0 -1399
  614. package/dist/chunk-6SETNFNH.js.map +0 -1
  615. package/dist/chunk-6XYFMHNT.js +0 -56
  616. package/dist/chunk-6YU3WV2P.js +0 -33
  617. package/dist/chunk-6YUHDFOZ.js +0 -351
  618. package/dist/chunk-72EOXOR7.js +0 -1185
  619. package/dist/chunk-72ND4ALI.js +0 -532
  620. package/dist/chunk-757LE32E.js +0 -283
  621. package/dist/chunk-7S2S4MXR.js +0 -138
  622. package/dist/chunk-7SYCHMXS.js +0 -200
  623. package/dist/chunk-7TVAPQOV.js +0 -5089
  624. package/dist/chunk-7UDLRDHK.js +0 -214
  625. package/dist/chunk-7YLQCMZP.js +0 -357
  626. package/dist/chunk-A5GX3CAE.js +0 -849
  627. package/dist/chunk-A7EBV2EB.js +0 -318
  628. package/dist/chunk-AB5SPXUR.js +0 -114
  629. package/dist/chunk-AHVQGL5A.js +0 -202
  630. package/dist/chunk-AI77ZKEV.js +0 -26
  631. package/dist/chunk-AIX2D6RB.js +0 -1019
  632. package/dist/chunk-AVSIHP7Q.js +0 -192
  633. package/dist/chunk-AWK23Q32.js +0 -107
  634. package/dist/chunk-AYM3UFP2.js +0 -43
  635. package/dist/chunk-AYM3UFP2.js.map +0 -1
  636. package/dist/chunk-AYVWA6KD.js +0 -432
  637. package/dist/chunk-AYVWA6KD.js.map +0 -1
  638. package/dist/chunk-AYZXE4IM.js +0 -2553
  639. package/dist/chunk-AZGGSPTE.js +0 -124
  640. package/dist/chunk-B45TB4HY.js +0 -931
  641. package/dist/chunk-BC7PTVXW.js +0 -140
  642. package/dist/chunk-BIUJHNVR.js +0 -46
  643. package/dist/chunk-BJUOKUE5.js +0 -234
  644. package/dist/chunk-BMT5IXQW.js +0 -154
  645. package/dist/chunk-BMT5IXQW.js.map +0 -1
  646. package/dist/chunk-BPEEVMKH.js +0 -292
  647. package/dist/chunk-BXMND6YU.js +0 -307
  648. package/dist/chunk-C6OM2SRG.js +0 -117
  649. package/dist/chunk-CIRCUDKF.js +0 -1309
  650. package/dist/chunk-CLKR4UG3.js +0 -403
  651. package/dist/chunk-CPX6BHER.js +0 -554
  652. package/dist/chunk-CVC4RO7D.js +0 -155
  653. package/dist/chunk-D3YJAQGK.js +0 -103
  654. package/dist/chunk-DFQ72BLS.js +0 -1024
  655. package/dist/chunk-DG65PJOZ.js +0 -4564
  656. package/dist/chunk-DG65PJOZ.js.map +0 -1
  657. package/dist/chunk-DNAXAS5R.js +0 -406
  658. package/dist/chunk-DO247ITS.js +0 -175
  659. package/dist/chunk-DONBARLL.js +0 -154
  660. package/dist/chunk-DTLXQ3ZU.js +0 -373
  661. package/dist/chunk-EAXTACI4.js +0 -274
  662. package/dist/chunk-EDPH7AJH.js +0 -412
  663. package/dist/chunk-EER3B3G5.js +0 -10036
  664. package/dist/chunk-EER3B3G5.js.map +0 -1
  665. package/dist/chunk-EFKQHCGJ.js +0 -276
  666. package/dist/chunk-EILSPMVD.js +0 -133
  667. package/dist/chunk-EMWT6GOK.js +0 -437
  668. package/dist/chunk-EO22NST7.js +0 -259
  669. package/dist/chunk-ER5MYLIE.js +0 -256
  670. package/dist/chunk-ES5HKVQF.js +0 -234
  671. package/dist/chunk-EXRQ5ATC.js +0 -738
  672. package/dist/chunk-F26YBYAZ.js +0 -111
  673. package/dist/chunk-F6QP4GSK.js +0 -515
  674. package/dist/chunk-F7QEO7M2.js +0 -851
  675. package/dist/chunk-FJFGDLXB.js +0 -12
  676. package/dist/chunk-FLLJ2WXW.js +0 -113
  677. package/dist/chunk-FMBJKMT4.js +0 -107
  678. package/dist/chunk-FPN4I4CG.js +0 -3690
  679. package/dist/chunk-FUXFJTXL.js +0 -3070
  680. package/dist/chunk-FZI4QOAV.js +0 -3996
  681. package/dist/chunk-G6SSSX5R.js +0 -158
  682. package/dist/chunk-GBGCMHBB.js +0 -608
  683. package/dist/chunk-GJ4GTYOD.js +0 -372
  684. package/dist/chunk-GLSDWNFV.js +0 -432
  685. package/dist/chunk-GMGAW3T6.js +0 -278
  686. package/dist/chunk-GNGI6XFN.js +0 -43
  687. package/dist/chunk-GSW4YHZE.js +0 -229
  688. package/dist/chunk-GUC6IWEY.js +0 -407
  689. package/dist/chunk-GWAY3SO5.js +0 -15
  690. package/dist/chunk-GXOTNT5D.js +0 -168
  691. package/dist/chunk-GZZCVF76.js +0 -3851
  692. package/dist/chunk-H4VMHFOX.js +0 -214
  693. package/dist/chunk-HA5RFQAF.js +0 -110
  694. package/dist/chunk-HJLHGXWL.js +0 -103
  695. package/dist/chunk-HKNMNL7B.js +0 -2984
  696. package/dist/chunk-HT7MBHLY.js +0 -1021
  697. package/dist/chunk-I5FSUZVW.js +0 -584
  698. package/dist/chunk-II376XH3.js +0 -117
  699. package/dist/chunk-IINQO425.js +0 -246
  700. package/dist/chunk-IIXNEOK4.js +0 -1022
  701. package/dist/chunk-IM3WA5AL.js +0 -311
  702. package/dist/chunk-IX4P4OGR.js +0 -399
  703. package/dist/chunk-IX5VHZYS.js +0 -129
  704. package/dist/chunk-J7QHW2KS.js +0 -549
  705. package/dist/chunk-J7QHW2KS.js.map +0 -1
  706. package/dist/chunk-JB3TSUZO.js +0 -263
  707. package/dist/chunk-JD6LHU26.js +0 -3852
  708. package/dist/chunk-JD6LHU26.js.map +0 -1
  709. package/dist/chunk-JIC6RLUB.js +0 -27
  710. package/dist/chunk-JNJIZCTN.js +0 -172
  711. package/dist/chunk-JNV5ZPUV.js +0 -828
  712. package/dist/chunk-JPQFVR24.js +0 -50
  713. package/dist/chunk-JPZVMXDP.js +0 -1333
  714. package/dist/chunk-JVPF34MX.js +0 -215
  715. package/dist/chunk-KED67KAF.js +0 -85
  716. package/dist/chunk-KJ72GMZ2.js +0 -378
  717. package/dist/chunk-KVPQUADA.js +0 -5915
  718. package/dist/chunk-KVPQUADA.js.map +0 -1
  719. package/dist/chunk-KXBLLFOO.js +0 -249
  720. package/dist/chunk-LIOZ2MXJ.js +0 -380
  721. package/dist/chunk-LPEFULJY.js +0 -73
  722. package/dist/chunk-LRMGPO7E.js +0 -98
  723. package/dist/chunk-LVKTKORH.js +0 -121
  724. package/dist/chunk-MFVUNNFN.js +0 -205
  725. package/dist/chunk-MIUJ3EH5.js +0 -60
  726. package/dist/chunk-MIUMNTIJ.js +0 -175
  727. package/dist/chunk-ML46TXRM.js +0 -113
  728. package/dist/chunk-MQRHTOQ2.js +0 -218
  729. package/dist/chunk-NIPON7YB.js +0 -850
  730. package/dist/chunk-NPBEUU22.js +0 -196
  731. package/dist/chunk-NSXKGS2K.js +0 -178
  732. package/dist/chunk-NUEFORM6.js +0 -2317
  733. package/dist/chunk-NZOFNQNC.js +0 -176
  734. package/dist/chunk-OATXCLTY.js +0 -211
  735. package/dist/chunk-OG3ELROW.js +0 -538
  736. package/dist/chunk-OI4WS7FW.js +0 -162
  737. package/dist/chunk-OITGZUDC.js +0 -82
  738. package/dist/chunk-OKD2LBMK.js +0 -333
  739. package/dist/chunk-OSA4CGST.js +0 -134
  740. package/dist/chunk-OXYAKUFU.js +0 -401
  741. package/dist/chunk-OYMSMU5O.js +0 -396
  742. package/dist/chunk-P4NZ72KY.js +0 -162
  743. package/dist/chunk-PBYL2VIM.js +0 -379
  744. package/dist/chunk-PDW3OOSZ.js +0 -505
  745. package/dist/chunk-PGRKTQIW.js +0 -523
  746. package/dist/chunk-Q273Q33U.js +0 -166
  747. package/dist/chunk-Q4CLS2HL.js +0 -340
  748. package/dist/chunk-QFOBUA2J.js +0 -428
  749. package/dist/chunk-QLIM4D56.js +0 -1095
  750. package/dist/chunk-QMQF5U2D.js +0 -20
  751. package/dist/chunk-QPOUPVPD.js +0 -144
  752. package/dist/chunk-QTJAQ6DS.js +0 -48
  753. package/dist/chunk-QUOFP3G7.js +0 -404
  754. package/dist/chunk-QVOTPOXK.js +0 -29
  755. package/dist/chunk-QYZ5RVGM.js +0 -184
  756. package/dist/chunk-R7CVDKRN.js +0 -2580
  757. package/dist/chunk-RB7MXNZD.js +0 -639
  758. package/dist/chunk-RDZQFZOQ.js +0 -187
  759. package/dist/chunk-RIHKEGWS.js +0 -194
  760. package/dist/chunk-RIHKEGWS.js.map +0 -1
  761. package/dist/chunk-ROSB7GF6.js +0 -57
  762. package/dist/chunk-RP3YMYCX.js +0 -723
  763. package/dist/chunk-RPHXJHNX.js +0 -271
  764. package/dist/chunk-RVC3M66H.js +0 -191
  765. package/dist/chunk-S3OTJAAC.js +0 -283
  766. package/dist/chunk-SBWPMVRN.js +0 -56
  767. package/dist/chunk-SERECSAR.js +0 -138
  768. package/dist/chunk-SHSEF3GJ.js +0 -187
  769. package/dist/chunk-SMS2M3RG.js +0 -772
  770. package/dist/chunk-SRDHDIRQ.js +0 -177
  771. package/dist/chunk-SXRYA7NN.js +0 -389
  772. package/dist/chunk-SYA3WYG4.js +0 -1187
  773. package/dist/chunk-T2QDSTBH.js +0 -371
  774. package/dist/chunk-TFSCGFYV.js +0 -251
  775. package/dist/chunk-TGCKZOSX.js +0 -246
  776. package/dist/chunk-THILLYQM.js +0 -132
  777. package/dist/chunk-TI6LGUEZ.js +0 -2412
  778. package/dist/chunk-TSY6YZL2.js +0 -366
  779. package/dist/chunk-TW2RHTLH.js +0 -3321
  780. package/dist/chunk-TWA5G277.js +0 -141
  781. package/dist/chunk-TZZ2S4XI.js +0 -247
  782. package/dist/chunk-UECD27LX.js +0 -251
  783. package/dist/chunk-UFJDETKG.js +0 -108
  784. package/dist/chunk-UHBIXNRW.js +0 -100
  785. package/dist/chunk-UHCFYX4I.js +0 -570
  786. package/dist/chunk-UHTURYJO.js +0 -898
  787. package/dist/chunk-UJH63JT3.js +0 -67
  788. package/dist/chunk-UMLPIMGW.js +0 -105
  789. package/dist/chunk-UOLDS6S5.js +0 -1152
  790. package/dist/chunk-UUE3OGXI.js +0 -84
  791. package/dist/chunk-UUNJ2E57.js +0 -391
  792. package/dist/chunk-UYQVWRAH.js +0 -199
  793. package/dist/chunk-UYWWUEL4.js +0 -126
  794. package/dist/chunk-V4CQKX5H.js +0 -48
  795. package/dist/chunk-V4QM7GDQ.js +0 -3176
  796. package/dist/chunk-V5Y74WII.js +0 -91
  797. package/dist/chunk-VGGZLUQK.js +0 -129
  798. package/dist/chunk-VGX636MB.js +0 -311
  799. package/dist/chunk-VGZLFQO2.js +0 -773
  800. package/dist/chunk-VJWZATNF.js +0 -137
  801. package/dist/chunk-VMWCIC2N.js +0 -50
  802. package/dist/chunk-VPWKTIU5.js +0 -227
  803. package/dist/chunk-VXOLG6YB.js +0 -469
  804. package/dist/chunk-W2NAU5VB.js +0 -1628
  805. package/dist/chunk-WGORKMR3.js +0 -353
  806. package/dist/chunk-WMIDELSJ.js +0 -391
  807. package/dist/chunk-WSOSGL2G.js +0 -383
  808. package/dist/chunk-WXUUOM4X.js +0 -400
  809. package/dist/chunk-WZ74QHLE.js +0 -4863
  810. package/dist/chunk-WZ74QHLE.js.map +0 -1
  811. package/dist/chunk-X2OWM2ME.js +0 -1870
  812. package/dist/chunk-X2OWM2ME.js.map +0 -1
  813. package/dist/chunk-XDXKB25W.js +0 -93
  814. package/dist/chunk-XE4PHI74.js +0 -231
  815. package/dist/chunk-XLJ4SQFS.js +0 -230
  816. package/dist/chunk-XOD4FX6M.js +0 -2434
  817. package/dist/chunk-XODQ2GPF.js +0 -3110
  818. package/dist/chunk-XT54RTAM.js +0 -441
  819. package/dist/chunk-YDQHFJM2.js +0 -83
  820. package/dist/chunk-YH6O6OQ6.js +0 -1356
  821. package/dist/chunk-YIKPC2QP.js +0 -794
  822. package/dist/chunk-ZD7PKYC4.js +0 -335
  823. package/dist/chunk-ZEQYHEWP.js +0 -406
  824. package/dist/chunk-ZRVUCTSI.js +0 -265
  825. package/dist/chunk-ZSI3ITRK.js +0 -449
  826. package/dist/chunk-ZZMEQCIZ.js +0 -236
  827. package/dist/computer-viewer-ZBY3BPYW.js +0 -21
  828. package/dist/connection-step-up-JQ4OFSQN.js +0 -145
  829. package/dist/connection-step-up-JQ4OFSQN.js.map +0 -1
  830. package/dist/embedded-new-voice-ZB5XLKLU.js +0 -25
  831. package/dist/embedded-voice-MZJISDCS.js +0 -25
  832. package/dist/fleet-decision-row-LG3SYVR3.js +0 -361
  833. package/dist/latest-question-QWJTXMFA.js +0 -124
  834. package/dist/model-policy-picker-menu-5Y72PLNF.js +0 -23
  835. package/dist/payment-page-card-YPSXRHBA.js +0 -226
  836. package/dist/platform-activity-row-ZU4MEBNK.js +0 -156
  837. package/dist/queue-surface-implementation-6Q25RPH6.js +0 -932
  838. package/dist/recorder-host-JD4GWJ2Z.js +0 -80
  839. package/dist/sandbox-files-HCLEEJMU.js +0 -28
  840. package/dist/session-connect-cards-DRKEN3Z4.js +0 -27
  841. package/dist/session-realtime-IZOTTRH6.js +0 -30
  842. package/dist/timeline-annotation-markers-WWXNJOXI.js +0 -157
  843. package/dist/timeline-annotation-selection-ZKRIQFIQ.js +0 -208
  844. package/dist/timeline-annotations-dialog-4IMKTOXJ.js +0 -283
  845. /package/dist/{browser-viewer-EIEMRVFF.js.map → app/components/agents/agent-trigger-repositories.js.map} +0 -0
  846. /package/dist/{chat-interactive-block-FV37LWYZ.js.map → app/components/artifacts/app-server-status.js.map} +0 -0
  847. /package/dist/{computer-viewer-ZBY3BPYW.js.map → app/components/artifacts/ready-made-apps.js.map} +0 -0
  848. /package/dist/{embedded-new-voice-ZB5XLKLU.js.map → app/lib/ready-made-apps.js.map} +0 -0
  849. /package/dist/{embedded-voice-MZJISDCS.js.map → browser-viewer-EPGAK2W6.js.map} +0 -0
  850. /package/dist/{model-policy-picker-menu-5Y72PLNF.js.map → chat-interactive-block-65YU6TMO.js.map} +0 -0
  851. /package/dist/{chunk-CLKR4UG3.js.map → chunk-25ODMMHH.js.map} +0 -0
  852. /package/dist/{chunk-WXUUOM4X.js.map → chunk-266ZPUMH.js.map} +0 -0
  853. /package/dist/{chunk-GXOTNT5D.js.map → chunk-2A7SB7UR.js.map} +0 -0
  854. /package/dist/{chunk-UHBIXNRW.js.map → chunk-2EU4Y7A7.js.map} +0 -0
  855. /package/dist/{chunk-UHCFYX4I.js.map → chunk-2LBYEHBH.js.map} +0 -0
  856. /package/dist/{chunk-TWA5G277.js.map → chunk-2MHIIF4N.js.map} +0 -0
  857. /package/dist/{chunk-757LE32E.js.map → chunk-2SHWGDAA.js.map} +0 -0
  858. /package/dist/{chunk-VGZLFQO2.js.map → chunk-2VX42S4W.js.map} +0 -0
  859. /package/dist/{chunk-VGX636MB.js.map → chunk-2WGJQ4XK.js.map} +0 -0
  860. /package/dist/{chunk-GWAY3SO5.js.map → chunk-2XSF44TY.js.map} +0 -0
  861. /package/dist/{chunk-RB7MXNZD.js.map → chunk-33HUZMNE.js.map} +0 -0
  862. /package/dist/{chunk-63WDQV5X.js.map → chunk-36IKHM4Q.js.map} +0 -0
  863. /package/dist/{chunk-4E5QVAT4.js.map → chunk-3JVQZAXQ.js.map} +0 -0
  864. /package/dist/{chunk-4KASGJTF.js.map → chunk-3SDESU6U.js.map} +0 -0
  865. /package/dist/{chunk-BPEEVMKH.js.map → chunk-3VXZFBP6.js.map} +0 -0
  866. /package/dist/{chunk-BXMND6YU.js.map → chunk-3YKED2ZV.js.map} +0 -0
  867. /package/dist/{chunk-AIX2D6RB.js.map → chunk-3ZNOKD3S.js.map} +0 -0
  868. /package/dist/{chunk-R7CVDKRN.js.map → chunk-45SB4UK3.js.map} +0 -0
  869. /package/dist/{chunk-EILSPMVD.js.map → chunk-47BETTVA.js.map} +0 -0
  870. /package/dist/{chunk-EAXTACI4.js.map → chunk-4BTQ473O.js.map} +0 -0
  871. /package/dist/{chunk-KXBLLFOO.js.map → chunk-4JQRWJVR.js.map} +0 -0
  872. /package/dist/{chunk-AHVQGL5A.js.map → chunk-4R6WFQKZ.js.map} +0 -0
  873. /package/dist/{chunk-S3OTJAAC.js.map → chunk-4WEPVL7X.js.map} +0 -0
  874. /package/dist/{chunk-6DOIINY4.js.map → chunk-4YWHOAB4.js.map} +0 -0
  875. /package/dist/{chunk-CVC4RO7D.js.map → chunk-52XGYRVS.js.map} +0 -0
  876. /package/dist/{chunk-GNGI6XFN.js.map → chunk-5G6UHUJZ.js.map} +0 -0
  877. /package/dist/{chunk-GSW4YHZE.js.map → chunk-5HFITPHH.js.map} +0 -0
  878. /package/dist/{chunk-4UU7FN3I.js.map → chunk-5LVVN2K7.js.map} +0 -0
  879. /package/dist/{chunk-V4CQKX5H.js.map → chunk-5PVXFVIT.js.map} +0 -0
  880. /package/dist/{chunk-RDZQFZOQ.js.map → chunk-5WFGW7B7.js.map} +0 -0
  881. /package/dist/{chunk-FUXFJTXL.js.map → chunk-66M7RVM6.js.map} +0 -0
  882. /package/dist/{chunk-EMWT6GOK.js.map → chunk-6AGNZI2W.js.map} +0 -0
  883. /package/dist/{chunk-DTLXQ3ZU.js.map → chunk-6ENO634Y.js.map} +0 -0
  884. /package/dist/{chunk-7SYCHMXS.js.map → chunk-6LQ5KEMP.js.map} +0 -0
  885. /package/dist/{chunk-QFOBUA2J.js.map → chunk-6QGIWLH5.js.map} +0 -0
  886. /package/dist/{chunk-2HS3IUXE.js.map → chunk-6WEDWD4N.js.map} +0 -0
  887. /package/dist/{chunk-AB5SPXUR.js.map → chunk-6YCYPXDA.js.map} +0 -0
  888. /package/dist/{chunk-A7EBV2EB.js.map → chunk-6YTNMDFP.js.map} +0 -0
  889. /package/dist/{chunk-JPQFVR24.js.map → chunk-73O7NO3F.js.map} +0 -0
  890. /package/dist/{chunk-UECD27LX.js.map → chunk-76VXLTQF.js.map} +0 -0
  891. /package/dist/{chunk-XDXKB25W.js.map → chunk-7EJ7PSZT.js.map} +0 -0
  892. /package/dist/{chunk-JIC6RLUB.js.map → chunk-7GS2MGFU.js.map} +0 -0
  893. /package/dist/{chunk-DNAXAS5R.js.map → chunk-7MF6MFHS.js.map} +0 -0
  894. /package/dist/{chunk-63VNZRLY.js.map → chunk-7N35XBSC.js.map} +0 -0
  895. /package/dist/{chunk-3SBKYPNM.js.map → chunk-7ND2VMKV.js.map} +0 -0
  896. /package/dist/{chunk-DONBARLL.js.map → chunk-7RVJLO3N.js.map} +0 -0
  897. /package/dist/{chunk-WGORKMR3.js.map → chunk-7VAILBP6.js.map} +0 -0
  898. /package/dist/{chunk-4I4RTI4D.js.map → chunk-7VSJQWFO.js.map} +0 -0
  899. /package/dist/{chunk-ZD7PKYC4.js.map → chunk-7YKUIKGH.js.map} +0 -0
  900. /package/dist/{chunk-SERECSAR.js.map → chunk-A7DS77WC.js.map} +0 -0
  901. /package/dist/{chunk-4AH4EEHE.js.map → chunk-AEH34OOU.js.map} +0 -0
  902. /package/dist/{chunk-CPX6BHER.js.map → chunk-ANWMRO2G.js.map} +0 -0
  903. /package/dist/{chunk-TZZ2S4XI.js.map → chunk-APGUIORF.js.map} +0 -0
  904. /package/dist/{chunk-CIRCUDKF.js.map → chunk-ASCVQJB4.js.map} +0 -0
  905. /package/dist/{chunk-JPZVMXDP.js.map → chunk-AY4XH73V.js.map} +0 -0
  906. /package/dist/{chunk-XOD4FX6M.js.map → chunk-B6AH43UQ.js.map} +0 -0
  907. /package/dist/{chunk-5OVRMKP5.js.map → chunk-BGT43KDL.js.map} +0 -0
  908. /package/dist/{chunk-GZZCVF76.js.map → chunk-BHS4KW4W.js.map} +0 -0
  909. /package/dist/{chunk-F7QEO7M2.js.map → chunk-BNWO72C2.js.map} +0 -0
  910. /package/dist/{chunk-4ZRNASBF.js.map → chunk-BSPIASSQ.js.map} +0 -0
  911. /package/dist/{chunk-XLJ4SQFS.js.map → chunk-BVWJEZXG.js.map} +0 -0
  912. /package/dist/{chunk-TSY6YZL2.js.map → chunk-BZ47G3VP.js.map} +0 -0
  913. /package/dist/{chunk-62HIKJ5F.js.map → chunk-C6KI5P3H.js.map} +0 -0
  914. /package/dist/{chunk-NUEFORM6.js.map → chunk-CLERWAEA.js.map} +0 -0
  915. /package/dist/{chunk-5SOL4INY.js.map → chunk-CNRFFCAE.js.map} +0 -0
  916. /package/dist/{chunk-ZZMEQCIZ.js.map → chunk-CPC6CYVW.js.map} +0 -0
  917. /package/dist/{chunk-FMBJKMT4.js.map → chunk-D23UAPXK.js.map} +0 -0
  918. /package/dist/{chunk-QVOTPOXK.js.map → chunk-DAPZEB4R.js.map} +0 -0
  919. /package/dist/{chunk-MFVUNNFN.js.map → chunk-DEDEA3WS.js.map} +0 -0
  920. /package/dist/{chunk-RPHXJHNX.js.map → chunk-DHVA3T3K.js.map} +0 -0
  921. /package/dist/{chunk-UUNJ2E57.js.map → chunk-DJQ6TKIP.js.map} +0 -0
  922. /package/dist/{chunk-6YU3WV2P.js.map → chunk-DK2CDAMR.js.map} +0 -0
  923. /package/dist/{chunk-GMGAW3T6.js.map → chunk-DPOB6MUS.js.map} +0 -0
  924. /package/dist/{chunk-VJWZATNF.js.map → chunk-DSO7S6PZ.js.map} +0 -0
  925. /package/dist/{chunk-OKD2LBMK.js.map → chunk-DV3OECO6.js.map} +0 -0
  926. /package/dist/{chunk-SYA3WYG4.js.map → chunk-DW2IQRMB.js.map} +0 -0
  927. /package/dist/{chunk-OSA4CGST.js.map → chunk-DWLPQTDL.js.map} +0 -0
  928. /package/dist/{chunk-V4QM7GDQ.js.map → chunk-DXMKECFR.js.map} +0 -0
  929. /package/dist/{chunk-LPEFULJY.js.map → chunk-DYQRNIID.js.map} +0 -0
  930. /package/dist/{chunk-VGGZLUQK.js.map → chunk-DZLWO73N.js.map} +0 -0
  931. /package/dist/{chunk-AWK23Q32.js.map → chunk-E2GNUL64.js.map} +0 -0
  932. /package/dist/{chunk-AVSIHP7Q.js.map → chunk-E7XU2KHD.js.map} +0 -0
  933. /package/dist/{chunk-2JXKP4M6.js.map → chunk-ENYULVQW.js.map} +0 -0
  934. /package/dist/{chunk-5EJBPQI2.js.map → chunk-EWHQ3DFM.js.map} +0 -0
  935. /package/dist/{chunk-EXRQ5ATC.js.map → chunk-F3LIUDXN.js.map} +0 -0
  936. /package/dist/{chunk-D3YJAQGK.js.map → chunk-F5C7DTVR.js.map} +0 -0
  937. /package/dist/{chunk-WMIDELSJ.js.map → chunk-F5NFGBIN.js.map} +0 -0
  938. /package/dist/{chunk-DO247ITS.js.map → chunk-F6XJLGOV.js.map} +0 -0
  939. /package/dist/{chunk-G6SSSX5R.js.map → chunk-F7T2STMX.js.map} +0 -0
  940. /package/dist/{chunk-T2QDSTBH.js.map → chunk-FAEVOM6B.js.map} +0 -0
  941. /package/dist/{chunk-EFKQHCGJ.js.map → chunk-FCFAXQDM.js.map} +0 -0
  942. /package/dist/{chunk-7S2S4MXR.js.map → chunk-FEQVCQMK.js.map} +0 -0
  943. /package/dist/{chunk-OYMSMU5O.js.map → chunk-FLDF2Z44.js.map} +0 -0
  944. /package/dist/{chunk-SMS2M3RG.js.map → chunk-GADABL3P.js.map} +0 -0
  945. /package/dist/{chunk-BC7PTVXW.js.map → chunk-GFUDB3SA.js.map} +0 -0
  946. /package/dist/{chunk-JVPF34MX.js.map → chunk-GGPZPBHS.js.map} +0 -0
  947. /package/dist/{chunk-IM3WA5AL.js.map → chunk-GIEGIEMT.js.map} +0 -0
  948. /package/dist/{chunk-SHSEF3GJ.js.map → chunk-GKWFQEO3.js.map} +0 -0
  949. /package/dist/{chunk-2XGRHMRI.js.map → chunk-GMMB4NCN.js.map} +0 -0
  950. /package/dist/{chunk-2P5K7CBH.js.map → chunk-GN4FOL2G.js.map} +0 -0
  951. /package/dist/{chunk-VXOLG6YB.js.map → chunk-GQJAMANY.js.map} +0 -0
  952. /package/dist/{chunk-PBYL2VIM.js.map → chunk-H7F4ANJQ.js.map} +0 -0
  953. /package/dist/{chunk-XODQ2GPF.js.map → chunk-HEPFJ3XQ.js.map} +0 -0
  954. /package/dist/{chunk-ES5HKVQF.js.map → chunk-HLRAQITA.js.map} +0 -0
  955. /package/dist/{chunk-II376XH3.js.map → chunk-HXYSZKCC.js.map} +0 -0
  956. /package/dist/{chunk-JNV5ZPUV.js.map → chunk-I5Q6FVHP.js.map} +0 -0
  957. /package/dist/{chunk-ZRVUCTSI.js.map → chunk-I7M5BYJU.js.map} +0 -0
  958. /package/dist/{chunk-KED67KAF.js.map → chunk-IH3J7VWW.js.map} +0 -0
  959. /package/dist/{chunk-NSXKGS2K.js.map → chunk-IMMDXSZ4.js.map} +0 -0
  960. /package/dist/{chunk-UYQVWRAH.js.map → chunk-IOMZDY5D.js.map} +0 -0
  961. /package/dist/{chunk-5MP3G7ZV.js.map → chunk-IQTCUUDF.js.map} +0 -0
  962. /package/dist/{chunk-UHTURYJO.js.map → chunk-ISR6KXWT.js.map} +0 -0
  963. /package/dist/{chunk-TW2RHTLH.js.map → chunk-IWPPGXUZ.js.map} +0 -0
  964. /package/dist/{chunk-UUE3OGXI.js.map → chunk-JNPCRNPA.js.map} +0 -0
  965. /package/dist/{chunk-PDW3OOSZ.js.map → chunk-JSJGGP32.js.map} +0 -0
  966. /package/dist/{chunk-SBWPMVRN.js.map → chunk-JZZUEJYD.js.map} +0 -0
  967. /package/dist/{chunk-4D3YJNVN.js.map → chunk-K5XFZKK5.js.map} +0 -0
  968. /package/dist/{chunk-332BYSAZ.js.map → chunk-K6GRTSEA.js.map} +0 -0
  969. /package/dist/{chunk-HJLHGXWL.js.map → chunk-KA4PZU3Q.js.map} +0 -0
  970. /package/dist/{chunk-YDQHFJM2.js.map → chunk-KGZ35ESO.js.map} +0 -0
  971. /package/dist/{chunk-HT7MBHLY.js.map → chunk-KRM4PW5N.js.map} +0 -0
  972. /package/dist/{chunk-QLIM4D56.js.map → chunk-LEZGGRDQ.js.map} +0 -0
  973. /package/dist/{chunk-QPOUPVPD.js.map → chunk-LFWMFFKT.js.map} +0 -0
  974. /package/dist/{chunk-A5GX3CAE.js.map → chunk-LKSPUZPH.js.map} +0 -0
  975. /package/dist/{chunk-OXYAKUFU.js.map → chunk-LLX4S6BI.js.map} +0 -0
  976. /package/dist/{chunk-NIPON7YB.js.map → chunk-M4WEF4DZ.js.map} +0 -0
  977. /package/dist/{chunk-LVKTKORH.js.map → chunk-MATYGLUT.js.map} +0 -0
  978. /package/dist/{chunk-5Y34P32B.js.map → chunk-MDI6SH7B.js.map} +0 -0
  979. /package/dist/{chunk-JB3TSUZO.js.map → chunk-MQTYIBY6.js.map} +0 -0
  980. /package/dist/{chunk-72EOXOR7.js.map → chunk-MRKY2GL5.js.map} +0 -0
  981. /package/dist/{chunk-YIKPC2QP.js.map → chunk-MSIQ42IY.js.map} +0 -0
  982. /package/dist/{chunk-7YLQCMZP.js.map → chunk-MVGU7BET.js.map} +0 -0
  983. /package/dist/{chunk-QUOFP3G7.js.map → chunk-MWY4TBDY.js.map} +0 -0
  984. /package/dist/{chunk-BJUOKUE5.js.map → chunk-NGQCWCD6.js.map} +0 -0
  985. /package/dist/{chunk-OG3ELROW.js.map → chunk-NKXMIOYN.js.map} +0 -0
  986. /package/dist/{chunk-ER5MYLIE.js.map → chunk-NMVRFFCR.js.map} +0 -0
  987. /package/dist/{chunk-GUC6IWEY.js.map → chunk-NNTDIKJP.js.map} +0 -0
  988. /package/dist/{chunk-LRMGPO7E.js.map → chunk-NQXCPP4G.js.map} +0 -0
  989. /package/dist/{chunk-THILLYQM.js.map → chunk-NYGS6FNV.js.map} +0 -0
  990. /package/dist/{chunk-NZOFNQNC.js.map → chunk-O3LOQDTI.js.map} +0 -0
  991. /package/dist/{chunk-2COBAJC7.js.map → chunk-O5HRZ2KG.js.map} +0 -0
  992. /package/dist/{chunk-H4VMHFOX.js.map → chunk-O5PZRVQR.js.map} +0 -0
  993. /package/dist/{chunk-IX4P4OGR.js.map → chunk-O6KR5SN7.js.map} +0 -0
  994. /package/dist/{chunk-EO22NST7.js.map → chunk-OBKDRV2H.js.map} +0 -0
  995. /package/dist/{chunk-3S3PJB7J.js.map → chunk-OBKKUBGL.js.map} +0 -0
  996. /package/dist/{chunk-3L5ATO4A.js.map → chunk-OFYXDB6I.js.map} +0 -0
  997. /package/dist/{chunk-VMWCIC2N.js.map → chunk-OLMWJGSJ.js.map} +0 -0
  998. /package/dist/{chunk-4RUKLIOF.js.map → chunk-ORRACKLB.js.map} +0 -0
  999. /package/dist/{chunk-6YUHDFOZ.js.map → chunk-P426WWAB.js.map} +0 -0
  1000. /package/dist/{chunk-SRDHDIRQ.js.map → chunk-P4GOY3ZL.js.map} +0 -0
  1001. /package/dist/{chunk-IX5VHZYS.js.map → chunk-P4KVJLUC.js.map} +0 -0
  1002. /package/dist/{chunk-6XYFMHNT.js.map → chunk-P4N7ZS6W.js.map} +0 -0
  1003. /package/dist/{chunk-5G4IGG7F.js.map → chunk-P6LSLNSL.js.map} +0 -0
  1004. /package/dist/{chunk-F26YBYAZ.js.map → chunk-PAFSIDM2.js.map} +0 -0
  1005. /package/dist/{chunk-C6OM2SRG.js.map → chunk-PC2JAIAH.js.map} +0 -0
  1006. /package/dist/{chunk-43BRJBEV.js.map → chunk-PGSXT5OY.js.map} +0 -0
  1007. /package/dist/{chunk-HKNMNL7B.js.map → chunk-QDMGUTOU.js.map} +0 -0
  1008. /package/dist/{chunk-YH6O6OQ6.js.map → chunk-QEMDQKQT.js.map} +0 -0
  1009. /package/dist/{chunk-TI6LGUEZ.js.map → chunk-QK7VU5N3.js.map} +0 -0
  1010. /package/dist/{chunk-FJFGDLXB.js.map → chunk-QL4Q332Z.js.map} +0 -0
  1011. /package/dist/{chunk-5SGTRULO.js.map → chunk-QL5227KT.js.map} +0 -0
  1012. /package/dist/{chunk-3Z7VA6ET.js.map → chunk-QUFCZMHG.js.map} +0 -0
  1013. /package/dist/{chunk-VPWKTIU5.js.map → chunk-QXPKUKOV.js.map} +0 -0
  1014. /package/dist/{chunk-XT54RTAM.js.map → chunk-QZE3KD34.js.map} +0 -0
  1015. /package/dist/{chunk-Q273Q33U.js.map → chunk-RAIUIXCY.js.map} +0 -0
  1016. /package/dist/{chunk-RP3YMYCX.js.map → chunk-RDLS6IZY.js.map} +0 -0
  1017. /package/dist/{chunk-MIUMNTIJ.js.map → chunk-RKPETJDJ.js.map} +0 -0
  1018. /package/dist/{chunk-GJ4GTYOD.js.map → chunk-RMDLTRLI.js.map} +0 -0
  1019. /package/dist/{chunk-PGRKTQIW.js.map → chunk-RR6DQN4X.js.map} +0 -0
  1020. /package/dist/{chunk-MQRHTOQ2.js.map → chunk-RVPH6BB7.js.map} +0 -0
  1021. /package/dist/{chunk-B45TB4HY.js.map → chunk-RVXLSVJH.js.map} +0 -0
  1022. /package/dist/{chunk-IINQO425.js.map → chunk-RVY5EZNU.js.map} +0 -0
  1023. /package/dist/{chunk-DFQ72BLS.js.map → chunk-RWHBX4MN.js.map} +0 -0
  1024. /package/dist/{chunk-7UDLRDHK.js.map → chunk-RWHDMGFG.js.map} +0 -0
  1025. /package/dist/{chunk-FLLJ2WXW.js.map → chunk-RYB3WBMZ.js.map} +0 -0
  1026. /package/dist/{chunk-ZSI3ITRK.js.map → chunk-S7EO77EE.js.map} +0 -0
  1027. /package/dist/{chunk-I5FSUZVW.js.map → chunk-S7J4HBPP.js.map} +0 -0
  1028. /package/dist/{chunk-UFJDETKG.js.map → chunk-SA3XI7FB.js.map} +0 -0
  1029. /package/dist/{chunk-NPBEUU22.js.map → chunk-SKRTCSUL.js.map} +0 -0
  1030. /package/dist/{chunk-7TVAPQOV.js.map → chunk-SUWDILUY.js.map} +0 -0
  1031. /package/dist/{chunk-TFSCGFYV.js.map → chunk-SWTPVMR4.js.map} +0 -0
  1032. /package/dist/{chunk-RVC3M66H.js.map → chunk-T5BYEE66.js.map} +0 -0
  1033. /package/dist/{chunk-QTJAQ6DS.js.map → chunk-T652Q4R6.js.map} +0 -0
  1034. /package/dist/{chunk-GBGCMHBB.js.map → chunk-TBUOHK6R.js.map} +0 -0
  1035. /package/dist/{chunk-W2NAU5VB.js.map → chunk-TCUAGCAX.js.map} +0 -0
  1036. /package/dist/{chunk-UYWWUEL4.js.map → chunk-TLWH4E3P.js.map} +0 -0
  1037. /package/dist/{chunk-UOLDS6S5.js.map → chunk-TNHGSWG3.js.map} +0 -0
  1038. /package/dist/{chunk-WSOSGL2G.js.map → chunk-TO6VBJI3.js.map} +0 -0
  1039. /package/dist/{chunk-OI4WS7FW.js.map → chunk-TOL7MOAN.js.map} +0 -0
  1040. /package/dist/{chunk-AYZXE4IM.js.map → chunk-U243CBVZ.js.map} +0 -0
  1041. /package/dist/{chunk-BIUJHNVR.js.map → chunk-U2CEPRDH.js.map} +0 -0
  1042. /package/dist/{chunk-FZI4QOAV.js.map → chunk-UAZPXKPH.js.map} +0 -0
  1043. /package/dist/{chunk-EDPH7AJH.js.map → chunk-UHRGUMLJ.js.map} +0 -0
  1044. /package/dist/{chunk-5JAYZOAW.js.map → chunk-UNDSD6UA.js.map} +0 -0
  1045. /package/dist/{chunk-FPN4I4CG.js.map → chunk-USU2SS4V.js.map} +0 -0
  1046. /package/dist/{chunk-Q4CLS2HL.js.map → chunk-USWA5GQQ.js.map} +0 -0
  1047. /package/dist/{chunk-QYZ5RVGM.js.map → chunk-UXGTI4HR.js.map} +0 -0
  1048. /package/dist/{chunk-JNJIZCTN.js.map → chunk-UZKAHEQO.js.map} +0 -0
  1049. /package/dist/{chunk-ML46TXRM.js.map → chunk-VALESBNH.js.map} +0 -0
  1050. /package/dist/{chunk-F6QP4GSK.js.map → chunk-VMSMVWCJ.js.map} +0 -0
  1051. /package/dist/{chunk-3EM5GTP3.js.map → chunk-VPERSFGV.js.map} +0 -0
  1052. /package/dist/{chunk-AZGGSPTE.js.map → chunk-VXPY2GF3.js.map} +0 -0
  1053. /package/dist/{chunk-6DQBUKGJ.js.map → chunk-W7RKXZDV.js.map} +0 -0
  1054. /package/dist/{chunk-72ND4ALI.js.map → chunk-WEGZPK4I.js.map} +0 -0
  1055. /package/dist/{chunk-LIOZ2MXJ.js.map → chunk-WPKY3BGG.js.map} +0 -0
  1056. /package/dist/{chunk-IIXNEOK4.js.map → chunk-X3T3N6W5.js.map} +0 -0
  1057. /package/dist/{chunk-HA5RFQAF.js.map → chunk-X4OGMBY6.js.map} +0 -0
  1058. /package/dist/{chunk-OITGZUDC.js.map → chunk-X7ZHIJEI.js.map} +0 -0
  1059. /package/dist/{chunk-UJH63JT3.js.map → chunk-XR7Y2HPZ.js.map} +0 -0
  1060. /package/dist/{chunk-ROSB7GF6.js.map → chunk-Y2NMKJ7F.js.map} +0 -0
  1061. /package/dist/{chunk-AI77ZKEV.js.map → chunk-Y2QYPJDN.js.map} +0 -0
  1062. /package/dist/{chunk-OATXCLTY.js.map → chunk-Y47EPVCD.js.map} +0 -0
  1063. /package/dist/{chunk-P4NZ72KY.js.map → chunk-Y5Q4ETIW.js.map} +0 -0
  1064. /package/dist/{chunk-UMLPIMGW.js.map → chunk-YMQVVFXI.js.map} +0 -0
  1065. /package/dist/{chunk-KJ72GMZ2.js.map → chunk-YQ6FP33X.js.map} +0 -0
  1066. /package/dist/{chunk-ZEQYHEWP.js.map → chunk-YUA42N5A.js.map} +0 -0
  1067. /package/dist/{chunk-V5Y74WII.js.map → chunk-YXFNW64N.js.map} +0 -0
  1068. /package/dist/{chunk-SXRYA7NN.js.map → chunk-Z76RJPZF.js.map} +0 -0
  1069. /package/dist/{chunk-MIUJ3EH5.js.map → chunk-ZD67RM6G.js.map} +0 -0
  1070. /package/dist/{chunk-XE4PHI74.js.map → chunk-ZE4RD7U5.js.map} +0 -0
  1071. /package/dist/{chunk-GLSDWNFV.js.map → chunk-ZGR7LNXC.js.map} +0 -0
  1072. /package/dist/{chunk-QMQF5U2D.js.map → chunk-ZNA65Q6Y.js.map} +0 -0
  1073. /package/dist/{chunk-46LZO4ZO.js.map → chunk-ZRNK6FK6.js.map} +0 -0
  1074. /package/dist/{chunk-2JTMFYCT.js.map → chunk-ZVAIKQMC.js.map} +0 -0
  1075. /package/dist/{chunk-TGCKZOSX.js.map → chunk-ZZ3KNGTJ.js.map} +0 -0
  1076. /package/dist/{sandbox-files-HCLEEJMU.js.map → computer-viewer-M5N3GWBR.js.map} +0 -0
  1077. /package/dist/{session-connect-cards-DRKEN3Z4.js.map → embedded-new-voice-QZJG5DZ3.js.map} +0 -0
  1078. /package/dist/{session-realtime-IZOTTRH6.js.map → embedded-voice-7KOQNGKU.js.map} +0 -0
  1079. /package/dist/{fleet-decision-row-LG3SYVR3.js.map → fleet-decision-row-FJPAWNOQ.js.map} +0 -0
  1080. /package/dist/{latest-question-QWJTXMFA.js.map → latest-question-F3VPDR7U.js.map} +0 -0
  1081. /package/dist/{payment-page-card-YPSXRHBA.js.map → payment-page-card-HZJVN3F4.js.map} +0 -0
  1082. /package/dist/{platform-activity-row-ZU4MEBNK.js.map → platform-activity-row-NPEGG2VE.js.map} +0 -0
  1083. /package/dist/{queue-surface-implementation-6Q25RPH6.js.map → queue-surface-implementation-RTCTPF5T.js.map} +0 -0
  1084. /package/dist/{recorder-host-JD4GWJ2Z.js.map → recorder-host-YPWPLMS6.js.map} +0 -0
  1085. /package/dist/{timeline-annotation-markers-WWXNJOXI.js.map → timeline-annotation-markers-7QSYK22C.js.map} +0 -0
  1086. /package/dist/{timeline-annotation-selection-ZKRIQFIQ.js.map → timeline-annotation-selection-XYNMESWL.js.map} +0 -0
  1087. /package/dist/{timeline-annotations-dialog-4IMKTOXJ.js.map → timeline-annotations-dialog-WSI6L2CP.js.map} +0 -0
@@ -1,3996 +0,0 @@
1
- "use client";
2
- import {
3
- PierreDiff
4
- } from "./chunk-MQRHTOQ2.js";
5
- import {
6
- useThemeType
7
- } from "./chunk-B27E3V37.js";
8
- import {
9
- useEntranceAnimation,
10
- useEntranceAnimationLive
11
- } from "./chunk-EAG6A27Q.js";
12
- import {
13
- GENIE_PREPARING_PHRASES,
14
- GENIE_WAITING_PHRASES,
15
- applyPatchPresentation,
16
- askPresentation,
17
- createToolRegistry,
18
- execPresentation,
19
- genericToolIconKind,
20
- machinePresentation,
21
- parseDisclosedTools,
22
- parseSearchHits,
23
- pathBasename,
24
- pathDirname,
25
- plainToolRow,
26
- presentedToolKind,
27
- presentsToolOutputPreview,
28
- runOnPresentation,
29
- toolRowPresentation,
30
- toolSearchPreview,
31
- toolSearchQuery,
32
- truncatePreview,
33
- useAgentIdentity,
34
- webSearchPresentation,
35
- writeStdinPresentation
36
- } from "./chunk-XOD4FX6M.js";
37
- import {
38
- createTurnSummaryContext,
39
- formatElapsed,
40
- resolveTurnSummaryFacets,
41
- selectTurnSummaryFacets,
42
- turnSummaryFallbackLabel,
43
- turnSummaryLiveMarkState
44
- } from "./chunk-FPSWN6GU.js";
45
- import {
46
- PatchApplyCommand,
47
- useRetainedImageObjectUrl
48
- } from "./chunk-JNJIZCTN.js";
49
- import {
50
- isPatchFilename,
51
- isRetainedImageContentType,
52
- paymentPageOf
53
- } from "./chunk-II376XH3.js";
54
- import {
55
- reviewFacts
56
- } from "./chunk-UMLPIMGW.js";
57
- import {
58
- CopyButton,
59
- LazyPart,
60
- MOTION_INSPECT_SCALE,
61
- Markdown
62
- } from "./chunk-TI6LGUEZ.js";
63
- import {
64
- ActivityDisclosure,
65
- BodyNote,
66
- CompactActivityContext,
67
- MediaEmpty,
68
- MediaSkeleton,
69
- PayloadBlock,
70
- ScreenshotFigure,
71
- SecretRefText,
72
- TermBlock,
73
- Thumbnail,
74
- ToolCallTruncationProvider,
75
- ToolOutputPreviewProvider,
76
- useForcedDefaultOpen,
77
- useTimelineSearchReveal
78
- } from "./chunk-JNV5ZPUV.js";
79
- import {
80
- DecisionActions,
81
- DecisionButton,
82
- DecisionMark,
83
- decisionCardClass,
84
- decisionCardPad
85
- } from "./chunk-2FASQ2SZ.js";
86
- import {
87
- useToolDetails
88
- } from "./chunk-RZLBICR5.js";
89
- import {
90
- LoadFailureNotice,
91
- isChunkLoadError
92
- } from "./chunk-KED67KAF.js";
93
- import {
94
- redactDeep,
95
- redactToolCall,
96
- signedValuesDeep
97
- } from "./chunk-YM45PLD6.js";
98
- import {
99
- ShimmerText
100
- } from "./chunk-HZPCSRSB.js";
101
- import {
102
- useOpenGeniLinkResolver
103
- } from "./chunk-W4QUDV6Y.js";
104
- import {
105
- approvalsFromRequiresAction
106
- } from "./chunk-BC7PTVXW.js";
107
- import {
108
- invokedToolCall,
109
- learningRefusalBody,
110
- learningRefusalPlace,
111
- learningRefusalPlaceLabel,
112
- learningRefusalTitle
113
- } from "./chunk-MFVUNNFN.js";
114
- import {
115
- workerRowTitleParts
116
- } from "./chunk-V5CHHBGS.js";
117
- import {
118
- generatedImageReceipt,
119
- mediaPreviewFact,
120
- parseToolArgs,
121
- retainedScreenshotMetadata,
122
- retainedToolResultImages,
123
- screenshotDataUrl,
124
- unwrapMcpOutput
125
- } from "./chunk-E4BLXMIZ.js";
126
- import {
127
- mcpToolLeaf,
128
- toolActionTitle,
129
- toolDisplayName,
130
- wordedToolActionReview
131
- } from "./chunk-J7QHW2KS.js";
132
- import {
133
- displayImageSrc
134
- } from "./chunk-S5ORWTCJ.js";
135
- import {
136
- clickDownloadLink,
137
- saveBlob
138
- } from "./chunk-BJFDVT5B.js";
139
- import {
140
- cn
141
- } from "./chunk-TXS65BB2.js";
142
- import {
143
- useOpenGeniText
144
- } from "./chunk-KVPQUADA.js";
145
- import {
146
- formatBytes,
147
- truncate,
148
- tryParseJson
149
- } from "./chunk-UIK52VL4.js";
150
-
151
- // src/components/tool-action-review.tsx
152
- import {
153
- ArrowLeftIcon,
154
- CheckIcon,
155
- ChevronRightIcon,
156
- CircleAlertIcon,
157
- CircleSlashIcon,
158
- LoaderCircleIcon,
159
- ShieldCheckIcon
160
- } from "lucide-react";
161
- import {
162
- useEffect,
163
- useId,
164
- useMemo,
165
- useRef,
166
- useState
167
- } from "react";
168
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
169
- var statusText = (t) => ({
170
- pending: t("toolActionReview.approvalNeeded"),
171
- approved: t("toolActionReview.approved"),
172
- executing: t("toolActionReview.approvedRunning"),
173
- completed: t("toolActionReview.approvedDone"),
174
- partial: t("toolActionReview.partlyDone"),
175
- unknown: t("toolActionReview.outcomeUnknown"),
176
- rejected: t("toolActionReview.declined"),
177
- cancelled: t("toolActionReview.cancelled"),
178
- expired: t("toolActionReview.expired"),
179
- revoked: t("toolActionReview.accessUnavailable"),
180
- blocked: t("toolActionReview.blocked"),
181
- stale: t("toolActionReview.noLongerValid"),
182
- failed: t("toolActionReview.failed"),
183
- unavailable: t("toolActionReview.detailsUnavailable")
184
- });
185
- var statusDetail = (t) => ({
186
- unknown: t("toolActionReview.itMayHaveRunCheck"),
187
- rejected: t("toolActionReview.thisActionDidNotRun"),
188
- cancelled: t("toolActionReview.thisActionDidNotRun"),
189
- expired: t("toolActionReview.thisActionDidNotRun2"),
190
- revoked: t("toolActionReview.thisActionDidNotRun3"),
191
- stale: t("toolActionReview.theToolOrAccountChanged"),
192
- partial: t("toolActionReview.someOfItRanCheck"),
193
- failed: t("toolActionReview.theActionRanButReturned")
194
- });
195
- var statusTone = {
196
- pending: "waiting",
197
- approved: "ok",
198
- executing: "ok",
199
- completed: "ok",
200
- partial: "failed",
201
- unknown: "failed",
202
- rejected: "muted",
203
- cancelled: "muted",
204
- expired: "muted",
205
- revoked: "muted",
206
- blocked: "muted",
207
- stale: "muted",
208
- failed: "failed",
209
- unavailable: "muted"
210
- };
211
- var headerPart = "before:inline-block before:w-3 before:text-center before:text-og-fg-muted before:content-['\xB7'_/_'']";
212
- var toneText = {
213
- waiting: "text-og-fg-muted",
214
- ok: "text-og-fg-muted",
215
- failed: "text-og-status-failed",
216
- muted: "text-og-fg-muted"
217
- };
218
- var UNRECOVERABLE_TEXT = (t) => t("toolActionReview.theDetailsOfThisOlder");
219
- var ACCOUNT_OWNER_TEXT = (t, name) => name ? t("toolActionReview.onlyNameCanApprove", { name }) : t("toolActionReview.onlyTheAccountOwnerCanApprove");
220
- function StatusIcon({ status, busy }) {
221
- const className = "size-4";
222
- if (busy || status === "executing" || status === "approved")
223
- return /* @__PURE__ */ jsx(LoaderCircleIcon, { "aria-hidden": "true", className: cn(className, "animate-spin") });
224
- if (status === "pending") return /* @__PURE__ */ jsx(ShieldCheckIcon, { "aria-hidden": "true", className });
225
- if (status === "completed") return /* @__PURE__ */ jsx(CheckIcon, { "aria-hidden": "true", className });
226
- if (statusTone[status] === "failed")
227
- return /* @__PURE__ */ jsx(CircleAlertIcon, { "aria-hidden": "true", className });
228
- return /* @__PURE__ */ jsx(CircleSlashIcon, { "aria-hidden": "true", className });
229
- }
230
- function ToolReviewFrame({
231
- tone,
232
- icon,
233
- eyebrow,
234
- title,
235
- titleId,
236
- subtitle,
237
- children,
238
- footer,
239
- bare = false,
240
- ...rest
241
- }) {
242
- const waiting = tone === "waiting";
243
- return /* @__PURE__ */ jsxs(
244
- "article",
245
- {
246
- "aria-labelledby": titleId,
247
- ...rest,
248
- className: cn(
249
- "min-w-0 text-og-fg",
250
- !bare && (waiting ? decisionCardClass : "og-root @container/decision overflow-hidden rounded-og-lg border border-og-border bg-og-surface-1"),
251
- rest.className
252
- ),
253
- children: [
254
- /* @__PURE__ */ jsxs(
255
- "header",
256
- {
257
- className: cn(
258
- "flex min-w-0 items-start gap-3",
259
- bare ? "pb-1" : cn(decisionCardPad, "pt-4", !children && !footer && "pb-4")
260
- ),
261
- children: [
262
- /* @__PURE__ */ jsx(DecisionMark, { tone: tone === "failed" ? "danger" : "neutral", children: icon }),
263
- /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 pt-px", children: [
264
- /* @__PURE__ */ jsx(
265
- "h3",
266
- {
267
- tabIndex: -1,
268
- id: titleId,
269
- className: "m-0 break-words text-og-md font-semibold leading-snug text-balance text-og-fg outline-hidden [overflow-wrap:anywhere]",
270
- children: title
271
- }
272
- ),
273
- /* @__PURE__ */ jsx("p", { className: "m-0 mt-0.5 min-w-0 overflow-hidden text-og-xs leading-5 text-og-fg-muted", children: /* @__PURE__ */ jsxs("span", { className: "-ml-3 flex min-w-0 flex-wrap items-center", children: [
274
- /* @__PURE__ */ jsx("span", { className: headerPart, children: /* @__PURE__ */ jsxs(
275
- "span",
276
- {
277
- className: cn("inline-flex items-center gap-1.5", toneText[tone]),
278
- role: "status",
279
- "aria-live": "polite",
280
- children: [
281
- waiting ? /* @__PURE__ */ jsx(
282
- "span",
283
- {
284
- "aria-hidden": "true",
285
- className: "size-1.5 shrink-0 rounded-full bg-og-status-waiting"
286
- }
287
- ) : null,
288
- eyebrow
289
- ]
290
- }
291
- ) }),
292
- subtitle ? /* @__PURE__ */ jsx("span", { className: cn(headerPart, "min-w-0 break-words [overflow-wrap:anywhere]"), children: subtitle }) : null
293
- ] }) })
294
- ] })
295
- ]
296
- }
297
- ),
298
- children ? /* @__PURE__ */ jsx(
299
- "div",
300
- {
301
- className: cn("min-w-0", bare ? "pt-2" : cn(decisionCardPad, "pt-3", !footer && "pb-4")),
302
- children
303
- }
304
- ) : null,
305
- footer ? /* @__PURE__ */ jsx("footer", { className: cn("min-w-0", bare ? "pt-3" : cn(decisionCardPad, "pb-4 pt-4")), children: footer }) : null
306
- ]
307
- }
308
- );
309
- }
310
- var linkButton = "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40 inline-flex min-h-8 items-center gap-1 rounded-og-sm text-left text-og-sm text-og-fg underline decoration-og-border-strong underline-offset-4 hover:decoration-current [@media(pointer:coarse)]:min-h-11";
311
- function ReviewFacts({
312
- review,
313
- onViewDetails,
314
- showStatusDetail
315
- }) {
316
- const t = useOpenGeniText();
317
- const canOpen = Boolean(onViewDetails && review.detailsAvailable);
318
- const { selection, shown, hiddenFields, effects } = reviewFacts(review);
319
- const note = (showStatusDetail ? review.status === "blocked" ? t("toolActionReview.reasonItDidNotRun", {
320
- reason: review.reason || t("toolActionReview.yourPermissionSettingsBlockThis")
321
- }) : statusDetail(t)[review.status] : void 0) ?? review.consequence;
322
- const samples = review.samples ?? [];
323
- const count = review.selectionCount ?? 0;
324
- const noun = review.selectionKind === "threads" ? count === 1 ? "conversation" : "conversations" : count === 1 ? "message" : "messages";
325
- const hasContent = note || effects.length || selection || shown.length || hiddenFields > 0 || samples.length;
326
- if (!hasContent) return null;
327
- return /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-3 text-og-sm", children: [
328
- note ? /* @__PURE__ */ jsx("p", { className: "m-0 leading-relaxed text-og-fg-muted", children: note }) : null,
329
- effects.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "m-0 list-none space-y-1 p-0", "aria-label": t("toolActionReview.alsoChanges"), children: effects.map((effect) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-og-fg", children: [
330
- /* @__PURE__ */ jsx(
331
- "span",
332
- {
333
- "aria-hidden": "true",
334
- className: "mt-[0.55em] size-1 shrink-0 rounded-full bg-og-fg-muted"
335
- }
336
- ),
337
- /* @__PURE__ */ jsx("span", { className: "min-w-0 break-words", children: effect })
338
- ] }, effect)) }) : null,
339
- selection ? /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
340
- samples.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
341
- /* @__PURE__ */ jsx("p", { className: "m-0 mb-1 text-og-xs text-og-fg-muted", children: t("toolActionReview.includes") }),
342
- /* @__PURE__ */ jsxs("ul", { className: "m-0 list-none divide-y divide-og-border rounded-og-md border border-og-border bg-og-surface-1 p-0", children: [
343
- samples.map((sample) => /* @__PURE__ */ jsxs("li", { className: "min-w-0 px-3 py-2", children: [
344
- /* @__PURE__ */ jsx("p", { className: "m-0 truncate text-og-sm text-og-fg", children: sample.title }),
345
- sample.subtitle ? /* @__PURE__ */ jsx("p", { className: "m-0 mt-0.5 truncate text-og-xs text-og-fg-muted", children: sample.subtitle }) : null
346
- ] }, sample.id)),
347
- count > samples.length ? /* @__PURE__ */ jsxs("li", { className: "px-3 py-2 text-og-xs text-og-fg-muted", children: [
348
- t("toolActionReview.and"),
349
- " ",
350
- (count - samples.length).toLocaleString(t.locale),
351
- " ",
352
- t("toolActionReview.more")
353
- ] }) : null
354
- ] })
355
- ] }) : null,
356
- canOpen && count > 0 ? /* @__PURE__ */ jsxs(
357
- "button",
358
- {
359
- type: "button",
360
- className: cn(linkButton, samples.length > 0 && "mt-1"),
361
- "data-review-path": selection.path,
362
- onClick: () => onViewDetails(selection.path),
363
- children: [
364
- count === 1 ? t("toolActionReview.viewTheNoun", { noun }) : t("toolActionReview.viewAllLocalestringNoun", {
365
- localeString: count.toLocaleString(t.locale),
366
- noun
367
- }),
368
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
369
- ]
370
- }
371
- ) : null
372
- ] }) : null,
373
- shown.length > 0 ? /* @__PURE__ */ jsx("dl", { className: "m-0 min-w-0 space-y-2.5 rounded-og-md bg-og-fg/[0.035] px-3.5 py-3", children: shown.map((field) => /* @__PURE__ */ jsxs(
374
- "div",
375
- {
376
- className: "grid min-w-0 gap-x-4 gap-y-0.5 @[30rem]/decision:grid-cols-[minmax(0,7.5rem)_minmax(0,1fr)]",
377
- children: [
378
- /* @__PURE__ */ jsx("dt", { className: "m-0 break-words text-og-xs text-og-fg-muted @[30rem]/decision:pt-px @[30rem]/decision:text-og-sm", children: field.label }),
379
- /* @__PURE__ */ jsx("dd", { className: "m-0 min-w-0 whitespace-pre-wrap break-words text-og-fg [overflow-wrap:anywhere]", children: field.protected ? /* @__PURE__ */ jsx("span", { className: "text-og-fg-muted", children: t("toolActionReview.hidden") }) : field.truncated && canOpen ? /* @__PURE__ */ jsxs(
380
- "button",
381
- {
382
- type: "button",
383
- "data-review-path": field.path,
384
- "aria-label": t("toolActionReview.viewLabelPreview", {
385
- label: field.label,
386
- preview: field.preview
387
- }),
388
- onClick: () => onViewDetails(field.path),
389
- className: cn(linkButton, "max-w-full"),
390
- children: [
391
- /* @__PURE__ */ jsx("span", { className: "line-clamp-4 min-w-0 break-words [overflow-wrap:anywhere]", children: /* @__PURE__ */ jsx(SecretRefText, { text: field.preview, linkable: false }) }),
392
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
393
- ]
394
- }
395
- ) : /* @__PURE__ */ jsx(SecretRefText, { text: field.preview }) })
396
- ]
397
- },
398
- field.path
399
- )) }) : null,
400
- hiddenFields > 0 ? /* @__PURE__ */ jsxs("p", { className: "m-0 text-og-xs text-og-fg-muted", children: [
401
- hiddenFields === 1 ? t("toolActionReview.n1MoreValue") : t("toolActionReview.hiddenfieldsMoreValues", { hiddenFields }),
402
- " ",
403
- t("toolActionReview.inDetails")
404
- ] }) : null
405
- ] });
406
- }
407
- function DeclineButton({
408
- busy,
409
- submitting,
410
- label,
411
- onClick
412
- }) {
413
- const t = useOpenGeniText();
414
- return /* @__PURE__ */ jsx(DecisionButton, { kind: "secondary", disabled: busy, busy: submitting, onClick, children: submitting ? t("toolActionReview.declining") : label ?? t("toolActionReview.decline") });
415
- }
416
- function ToolActionReviewCard({
417
- review: savedReview,
418
- onApprove,
419
- onReject,
420
- submitting,
421
- disabled,
422
- onViewDetails,
423
- pendingLabel,
424
- rejectLabel,
425
- bare,
426
- notice,
427
- approvingLabel,
428
- interruptible
429
- }) {
430
- const t = useOpenGeniText();
431
- const review = useMemo(() => wordedToolActionReview(savedReview, t), [savedReview, t]);
432
- const titleId = useId();
433
- const canApprove = review.availableActions.includes("approve") && !!onApprove;
434
- const canReject = review.availableActions.includes("reject") && !!onReject;
435
- const actionable = review.status === "pending" && (canApprove || canReject);
436
- const busy = Boolean(disabled || submitting && !interruptible);
437
- const tone = statusTone[review.status];
438
- const eyebrow = submitting ? submitting === "approve" ? t("toolActionReview.approving") : t("toolActionReview.declining") : review.status === "pending" ? pendingLabel ?? statusText(t).pending : statusText(t)[review.status];
439
- const detailsLink = review.detailsAvailable && onViewDetails ? /* @__PURE__ */ jsx(
440
- "button",
441
- {
442
- type: "button",
443
- className: "inline-flex min-h-8 items-center rounded-og-sm text-og-sm text-og-fg-muted underline decoration-og-border-strong underline-offset-4 hover:text-og-fg hover:decoration-current [@media(pointer:coarse)]:min-h-11 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
444
- "data-review-path": "",
445
- onClick: () => onViewDetails(""),
446
- children: t("toolActionReview.details")
447
- }
448
- ) : null;
449
- const reason = review.reason.trim();
450
- return /* @__PURE__ */ jsxs(
451
- ToolReviewFrame,
452
- {
453
- tone,
454
- icon: /* @__PURE__ */ jsx(StatusIcon, { status: review.status, busy: Boolean(submitting) }),
455
- eyebrow,
456
- title: review.title,
457
- titleId,
458
- subtitle: review.accountLabel,
459
- bare,
460
- "aria-busy": Boolean(submitting),
461
- "data-og-tool-review": "",
462
- "data-review-status": review.status,
463
- footer: actionable ? /* @__PURE__ */ jsxs(
464
- DecisionActions,
465
- {
466
- lead: detailsLink || reason ? /* @__PURE__ */ jsxs(Fragment, { children: [
467
- detailsLink,
468
- reason ? /* @__PURE__ */ jsx("span", { className: "min-w-0 text-og-xs leading-relaxed text-og-fg-subtle", children: reason }) : null
469
- ] }) : null,
470
- children: [
471
- canReject ? /* @__PURE__ */ jsx(
472
- DeclineButton,
473
- {
474
- busy,
475
- submitting: submitting === "reject",
476
- label: rejectLabel,
477
- onClick: onReject
478
- }
479
- ) : null,
480
- canApprove ? /* @__PURE__ */ jsx(
481
- DecisionButton,
482
- {
483
- kind: "primary",
484
- disabled: busy,
485
- busy: submitting === "approve",
486
- onClick: onApprove,
487
- children: submitting === "approve" ? approvingLabel ?? t("toolActionReview.approving") : review.approveLabel
488
- }
489
- ) : null
490
- ]
491
- }
492
- ) : void 0,
493
- children: [
494
- actionable && !canApprove ? /* @__PURE__ */ jsx("p", { className: "m-0 mb-3 text-og-sm leading-relaxed text-og-fg", children: review.approvedBy === "account_owner" ? ACCOUNT_OWNER_TEXT(t, review.accountOwnerLabel) : UNRECOVERABLE_TEXT(t) }) : null,
495
- actionable && canApprove && review.approvedBy === "you" ? /* @__PURE__ */ jsx("p", { className: "m-0 mb-3 text-og-sm leading-relaxed text-og-fg", children: t("toolActionReview.onlyYouCanApprove") }) : null,
496
- /* @__PURE__ */ jsx(
497
- ReviewFacts,
498
- {
499
- review,
500
- onViewDetails,
501
- showStatusDetail: review.status !== "pending"
502
- }
503
- ),
504
- actionable && notice ? /* @__PURE__ */ jsx(
505
- "p",
506
- {
507
- className: "m-0 mt-2 text-og-xs leading-relaxed text-og-fg-subtle",
508
- "data-og-review-notice": "",
509
- children: notice
510
- }
511
- ) : null,
512
- !actionable && detailsLink ? /* @__PURE__ */ jsx("div", { className: "mt-2", children: detailsLink }) : null
513
- ]
514
- }
515
- );
516
- }
517
- function ToolActionReviewDetails({
518
- review,
519
- path: initialPath = "",
520
- load,
521
- onBack,
522
- manageFocus = true
523
- }) {
524
- const t = useOpenGeniText();
525
- const [path, setPath] = useState(initialPath);
526
- const [trail, setTrail] = useState([]);
527
- const [offset, setOffset] = useState(0);
528
- const [page, setPage] = useState(null);
529
- const [error, setError] = useState(false);
530
- const [retry, setRetry] = useState(0);
531
- const heading = useRef(null);
532
- const focusedOnce = useRef(false);
533
- useEffect(() => {
534
- if (page && manageFocus && !focusedOnce.current) {
535
- focusedOnce.current = true;
536
- heading.current?.focus({ preventScroll: true });
537
- heading.current?.scrollIntoView({ block: "start" });
538
- }
539
- }, [page, manageFocus]);
540
- useEffect(() => {
541
- let active = true;
542
- setPage(null);
543
- setError(false);
544
- void load(review, path, offset).then(
545
- (value) => {
546
- if (!active) return;
547
- if (value.actionDigest !== review.actionDigest || value.id !== review.id || value.path !== path) {
548
- setError(true);
549
- return;
550
- }
551
- setPage(value);
552
- },
553
- () => {
554
- if (active) setError(true);
555
- }
556
- );
557
- return () => {
558
- active = false;
559
- };
560
- }, [review, path, offset, load, retry]);
561
- const open = (next, label) => {
562
- setTrail((value) => [...value, { path, label }]);
563
- setPath(next);
564
- setOffset(0);
565
- };
566
- const up = () => {
567
- const previous = trail.at(-1);
568
- setTrail((value) => value.slice(0, -1));
569
- setPath(previous?.path ?? initialPath);
570
- setOffset(0);
571
- };
572
- return /* @__PURE__ */ jsxs(
573
- "section",
574
- {
575
- className: "og-root mx-auto w-full max-w-3xl px-4 py-5 text-og-fg sm:px-6",
576
- "data-og-review-details": "",
577
- children: [
578
- /* @__PURE__ */ jsxs(
579
- "button",
580
- {
581
- type: "button",
582
- onClick: onBack,
583
- className: "mb-4 inline-flex min-h-11 items-center gap-2 rounded-og-md pr-2 text-og-sm text-og-fg-muted hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
584
- children: [
585
- /* @__PURE__ */ jsx(ArrowLeftIcon, { className: "size-4", "aria-hidden": "true" }),
586
- t("toolActionReview.backToReview")
587
- ]
588
- }
589
- ),
590
- /* @__PURE__ */ jsx(
591
- "h2",
592
- {
593
- ref: heading,
594
- tabIndex: -1,
595
- className: "m-0 break-words text-og-md font-semibold outline-hidden [overflow-wrap:anywhere]",
596
- children: toolActionTitle(t, review.toolName) ?? review.title
597
- }
598
- ),
599
- review.accountLabel ? /* @__PURE__ */ jsx("p", { className: "m-0 mt-1 text-og-sm text-og-fg-muted", children: review.accountLabel }) : null,
600
- /* @__PURE__ */ jsx("p", { className: "m-0 mt-2 text-og-xs text-og-fg-subtle", children: t("toolActionReview.theExactValuesSavedFor") }),
601
- trail.length > 0 ? /* @__PURE__ */ jsxs(
602
- "button",
603
- {
604
- type: "button",
605
- className: "mt-3 inline-flex min-h-11 items-center gap-1.5 text-og-sm text-og-fg-muted underline underline-offset-4 hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
606
- onClick: up,
607
- children: [
608
- /* @__PURE__ */ jsx(ArrowLeftIcon, { className: "size-3.5", "aria-hidden": "true" }),
609
- t("toolActionReview.backTo"),
610
- " ",
611
- trail.at(-1)?.label ?? t("toolActionReview.allValues")
612
- ]
613
- }
614
- ) : null,
615
- error ? /* @__PURE__ */ jsxs("div", { role: "alert", className: "mt-4 py-4 text-og-sm", children: [
616
- t("toolActionReview.couldnTLoadTheseDetails"),
617
- " ",
618
- /* @__PURE__ */ jsx(
619
- "button",
620
- {
621
- type: "button",
622
- onClick: () => setRetry((value) => value + 1),
623
- className: "min-h-11 underline underline-offset-4 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
624
- children: t("toolActionReview.tryAgain")
625
- }
626
- )
627
- ] }) : !page ? /* @__PURE__ */ jsx("p", { role: "status", className: "mt-4 py-4 text-og-sm text-og-fg-muted", children: t("toolActionReview.loadingDetails") }) : /* @__PURE__ */ jsxs(Fragment, { children: [
628
- /* @__PURE__ */ jsx("dl", { className: "m-0 mt-4 divide-y divide-og-border border-y border-og-border", children: page.items.map((item) => /* @__PURE__ */ jsxs("div", { className: "py-3", children: [
629
- /* @__PURE__ */ jsx("dt", { className: "m-0 text-og-xs text-og-fg-muted", children: item.label }),
630
- /* @__PURE__ */ jsxs("dd", { className: "m-0 mt-1 whitespace-pre-wrap break-words text-og-sm leading-relaxed [overflow-wrap:anywhere]", children: [
631
- item.truncated && item.path ? /* @__PURE__ */ jsxs(
632
- "button",
633
- {
634
- type: "button",
635
- "aria-label": t("toolActionReview.openLabel", { label: item.label }),
636
- className: cn(linkButton, "max-w-full"),
637
- onClick: () => open(item.path, item.label),
638
- children: [
639
- /* @__PURE__ */ jsx("span", { className: "min-w-0 break-words focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40", children: /* @__PURE__ */ jsx(SecretRefText, { text: item.value, linkable: false }) }),
640
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
641
- ]
642
- }
643
- ) : /* @__PURE__ */ jsx(SecretRefText, { text: item.value }),
644
- item.detail ? /* @__PURE__ */ jsx("span", { className: "mt-0.5 block text-og-xs text-og-fg-muted", children: /* @__PURE__ */ jsx(SecretRefText, { text: item.detail, linkable: false }) }) : null
645
- ] })
646
- ] }, `${page.path}:${item.label}`)) }),
647
- page.total > page.items.length || offset > 0 ? /* @__PURE__ */ jsxs(
648
- "nav",
649
- {
650
- "aria-label": t("toolActionReview.detailPages"),
651
- className: "mt-4 flex flex-wrap items-center justify-between gap-3 text-og-sm",
652
- children: [
653
- /* @__PURE__ */ jsx(
654
- "button",
655
- {
656
- type: "button",
657
- disabled: offset === 0,
658
- onClick: () => setOffset(Math.max(0, offset - 25)),
659
- className: "min-h-11 rounded-og-md border border-og-border px-3 hover:bg-og-hover disabled:opacity-40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
660
- children: t("toolActionReview.previous")
661
- }
662
- ),
663
- /* @__PURE__ */ jsx("span", { className: "text-og-fg-muted tabular-nums", children: page.total === 0 ? t("toolActionReview.noItems") : `${(offset + 1).toLocaleString(t.locale)}\u2013${(offset + page.items.length).toLocaleString(t.locale)} of ${page.total.toLocaleString(t.locale)}` }),
664
- /* @__PURE__ */ jsx(
665
- "button",
666
- {
667
- type: "button",
668
- disabled: page.nextOffset === null,
669
- onClick: () => setOffset(page.nextOffset ?? offset),
670
- className: "min-h-11 rounded-og-md border border-og-border px-3 hover:bg-og-hover disabled:opacity-40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
671
- children: t("toolActionReview.next")
672
- }
673
- )
674
- ]
675
- }
676
- ) : null
677
- ] })
678
- ]
679
- }
680
- );
681
- }
682
-
683
- // src/timeline/retained-loaders.ts
684
- function createWorkspaceRetainedArtifactLoader(client, workspaceId) {
685
- return async (artifact, signal, options) => {
686
- if (artifact.kind === "file" && options?.prefer !== "url") {
687
- const download2 = await client.downloadRetainedArtifact(workspaceId, artifact, { signal });
688
- return download2.bytes;
689
- }
690
- const download = await client.createRetainedArtifactDownloadUrl(workspaceId, artifact, {
691
- signal
692
- });
693
- return { url: download.url, expiresAt: download.expiresAt };
694
- };
695
- }
696
- function createSessionRetainedScreenshotLoader(client, workspaceId, sessionId) {
697
- return async (artifact, signal) => {
698
- const download = await client.downloadRetainedScreenshot(
699
- workspaceId,
700
- sessionId,
701
- artifact.artifactId,
702
- { signal }
703
- );
704
- if (!download.metadata.available || !download.bytes) return null;
705
- if (download.metadata.artifactId !== artifact.artifactId || download.metadata.kind !== artifact.kind || download.metadata.contentType !== artifact.contentType || download.metadata.originalBytes !== artifact.originalBytes || download.metadata.sha256 !== artifact.sha256 || download.metadata.dimensions?.width !== artifact.dimensions?.width || download.metadata.dimensions?.height !== artifact.dimensions?.height) {
706
- throw new Error("Retained screenshot receipt verification failed");
707
- }
708
- return download.bytes;
709
- };
710
- }
711
- function createWorkspaceRetainedVideoLoader(client, workspaceId) {
712
- return async (artifactId, signal) => await client.createVideoArtifactPlaybackSource(workspaceId, artifactId, { signal });
713
- }
714
-
715
- // src/components/tool-review-history.tsx
716
- import { createContext, useContext, useEffect as useEffect2, useMemo as useMemo2, useState as useState2 } from "react";
717
- import { jsx as jsx2 } from "react/jsx-runtime";
718
- var History = createContext(null);
719
- function ToolReviewHistoryProvider({
720
- events,
721
- load,
722
- onViewDetails,
723
- children
724
- }) {
725
- const value = useMemo2(
726
- () => ({
727
- approvalIds: new Set(
728
- events.flatMap(
729
- (event) => event.type === "session.requiresAction" ? approvalsFromRequiresAction(event.payload).map((approval) => approval.id) : []
730
- )
731
- ),
732
- revision: [...events].reverse().find(
733
- (event) => event.type === "session.requiresAction" || event.type === "agent.toolCall.output" || event.type.startsWith("turn.") || event.type === "user.approvalDecision" || event.type.startsWith("session.control.")
734
- )?.sequence ?? 0,
735
- load,
736
- onViewDetails
737
- }),
738
- [events, load, onViewDetails]
739
- );
740
- return /* @__PURE__ */ jsx2(History.Provider, { value, children });
741
- }
742
- function useHasToolReview(approvalId) {
743
- const history = useContext(History);
744
- return Boolean(approvalId && history?.approvalIds.has(approvalId));
745
- }
746
- function useRecordedToolReview(approvalId) {
747
- const history = useContext(History);
748
- const [review, setReview] = useState2(null);
749
- const load = history?.load;
750
- const revision = history?.revision;
751
- useEffect2(() => {
752
- if (!load || !approvalId) return;
753
- let active = true;
754
- void load(approvalId).then(
755
- (value) => {
756
- if (active && value.id === approvalId) setReview(value);
757
- },
758
- () => void 0
759
- );
760
- return () => {
761
- active = false;
762
- };
763
- }, [approvalId, load, revision]);
764
- const onViewDetails = history?.onViewDetails;
765
- return {
766
- review: review && review.id === approvalId ? review : null,
767
- onViewDetails: review && onViewDetails ? (path) => onViewDetails(review, path) : void 0
768
- };
769
- }
770
-
771
- // src/timeline/knowledge-receipt.tsx
772
- import { createContext as createContext2, useContext as useContext2, useState as useState3 } from "react";
773
- import { BrainCircuitIcon } from "lucide-react";
774
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
775
- var KnowledgeActions = createContext2({});
776
- function KnowledgeActivityProvider({
777
- children,
778
- ...actions
779
- }) {
780
- return /* @__PURE__ */ jsx3(KnowledgeActions.Provider, { value: actions, children });
781
- }
782
- function KnowledgeReceiptRow(props) {
783
- const t = useOpenGeniText();
784
- const actions = useContext2(KnowledgeActions);
785
- const [retrying, setRetrying] = useState3(false);
786
- const [retrySent, setRetrySent] = useState3(false);
787
- const [error, setError] = useState3(null);
788
- const label = props.outcome === "pending" ? t("timeline.knowledgeReceipt.knowledgeSavedForReview") : props.outcome === "failed" ? t("timeline.knowledgeReceipt.sourcePreparationFailed") : props.outcome === "rejected" ? t("timeline.knowledgeReceipt.sourceRemainsRejected") : props.outcome === "archived" ? t("timeline.knowledgeReceipt.knowledgeArchived") : props.source ? t("timeline.knowledgeReceipt.sourceSavedToKnowledge") : t("timeline.knowledgeReceipt.savedToKnowledge");
789
- const actionClass = "rounded-og-sm px-1 py-0.5 text-og-sm text-og-fg-muted hover:text-og-fg focus-visible:outline-2 focus-visible:outline-og-accent disabled:opacity-50";
790
- return /* @__PURE__ */ jsxs2(
791
- ActivityDisclosure,
792
- {
793
- icon: /* @__PURE__ */ jsx3(BrainCircuitIcon, { className: "size-3.5" }),
794
- iconTone: "muted",
795
- title: label,
796
- preview: props.title,
797
- children: [
798
- props.outcome === "pending" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.savedInNeedsReviewThis") }) : null,
799
- props.outcome === "failed" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.theOriginalFileRemainsAttached") }) : null,
800
- props.outcome === "rejected" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.processingTheFileAgainLeaves") }) : null,
801
- props.entryId && actions.onInspect ? /* @__PURE__ */ jsx3(
802
- "button",
803
- {
804
- className: actionClass,
805
- type: "button",
806
- onClick: () => actions.onInspect?.(props.entryId),
807
- children: props.outcome === "pending" ? t("timeline.knowledgeReceipt.reviewInKnowledge") : t("timeline.knowledgeReceipt.viewInKnowledge")
808
- }
809
- ) : null,
810
- props.outcome === "failed" && props.fileId && actions.onRetryFile ? /* @__PURE__ */ jsx3(
811
- "button",
812
- {
813
- className: actionClass,
814
- type: "button",
815
- disabled: retrying || retrySent || actions.retryDisabled,
816
- onClick: () => {
817
- setRetrying(true);
818
- setError(null);
819
- void actions.onRetryFile(props.fileId).then((sent) => {
820
- if (sent !== false) setRetrySent(true);
821
- else setError(t("timeline.knowledgeReceipt.couldNotStartTheRetry"));
822
- }).catch(() => setError(t("timeline.knowledgeReceipt.couldNotStartTheRetry2"))).finally(() => setRetrying(false));
823
- },
824
- children: retrying ? t("timeline.knowledgeReceipt.startingRetry") : retrySent ? t("timeline.knowledgeReceipt.retryRequested") : t("timeline.knowledgeReceipt.retryPreparation")
825
- }
826
- ) : null,
827
- error ? /* @__PURE__ */ jsx3("p", { role: "alert", className: "text-og-sm", children: error }) : null
828
- ]
829
- }
830
- );
831
- }
832
-
833
- // src/timeline/tool-renderers.tsx
834
- import { defaultUrlTransform } from "react-markdown";
835
- import { parseSandboxFileArtifactReceipt } from "@opengeni/sdk";
836
- import {
837
- BrainCircuitIcon as BrainCircuitIcon3,
838
- CameraIcon,
839
- CameraOffIcon,
840
- DownloadIcon as DownloadIcon2,
841
- FileSearchIcon as FileSearchIcon2,
842
- GlobeIcon as GlobeIcon2,
843
- ImageIcon as ImageIcon2,
844
- KeyRoundIcon as KeyRoundIcon2,
845
- LockIcon,
846
- MessagesSquareIcon as MessagesSquareIcon2,
847
- MousePointer2Icon,
848
- PackageSearchIcon as PackageSearchIcon2,
849
- PanelsTopLeftIcon as PanelsTopLeftIcon2,
850
- VideoIcon as VideoIcon2
851
- } from "lucide-react";
852
- import { lazy, useContext as useContext5, useMemo as useMemo3, useState as useState6 } from "react";
853
-
854
- // src/timeline/compute-label.tsx
855
- import { createContext as createContext3, useContext as useContext3 } from "react";
856
- var TimelineComputeLabelContext = createContext3(null);
857
- var TimelineComputeLabelProvider = TimelineComputeLabelContext.Provider;
858
- function useTimelineComputeLabel() {
859
- return useContext3(TimelineComputeLabelContext);
860
- }
861
-
862
- // src/timeline/provider-logo.tsx
863
- import { createContext as createContext4, useContext as useContext4, useEffect as useEffect3, useState as useState4 } from "react";
864
- import { Fragment as Fragment2, jsx as jsx4 } from "react/jsx-runtime";
865
- var ProviderLogoContext = createContext4(void 0);
866
- var ProviderLogoProvider = ProviderLogoContext.Provider;
867
- function useToolConnectorLogo(display) {
868
- const resolve = useContext4(ProviderLogoContext);
869
- if (!resolve || !display?.providerDomain) return null;
870
- return resolve(display.providerDomain) ?? null;
871
- }
872
- function ConnectorLogoIcon({
873
- src,
874
- fallback: fallback2,
875
- className
876
- }) {
877
- const [failed, setFailed] = useState4(false);
878
- useEffect3(() => setFailed(false), [src]);
879
- if (!src || failed) return /* @__PURE__ */ jsx4(Fragment2, { children: fallback2 });
880
- return /* @__PURE__ */ jsx4(
881
- "img",
882
- {
883
- src: displayImageSrc(src),
884
- alt: "",
885
- "aria-hidden": "true",
886
- loading: "lazy",
887
- decoding: "async",
888
- "data-og-connector-logo": "",
889
- className: className ?? "size-3.5 shrink-0 rounded-[3px] object-contain",
890
- onError: () => setFailed(true)
891
- }
892
- );
893
- }
894
-
895
- // src/timeline/tool-icon.tsx
896
- import {
897
- ActivityIcon,
898
- AppWindowIcon,
899
- ArchiveIcon,
900
- BellIcon,
901
- BotIcon,
902
- BoxIcon,
903
- BrainCircuitIcon as BrainCircuitIcon2,
904
- CalendarClockIcon,
905
- CircleDotIcon,
906
- ClipboardIcon,
907
- CodeIcon,
908
- DownloadIcon,
909
- FileDiffIcon,
910
- FileIcon,
911
- FileSearchIcon,
912
- FileSpreadsheetIcon,
913
- FileTextIcon,
914
- FolderGitIcon,
915
- FolderIcon,
916
- GlobeIcon,
917
- GraduationCapIcon,
918
- HandIcon,
919
- HourglassIcon,
920
- ImageIcon,
921
- InboxIcon,
922
- KeyboardIcon,
923
- KeyRoundIcon,
924
- LogInIcon,
925
- MessageCircleQuestionIcon,
926
- MessagesSquareIcon,
927
- MessageSquareIcon,
928
- MonitorIcon,
929
- PackageSearchIcon,
930
- PanelsTopLeftIcon,
931
- PaperclipIcon,
932
- PencilIcon,
933
- PhoneIcon,
934
- PlugIcon,
935
- ReceiptIcon,
936
- SearchIcon,
937
- ServerCogIcon,
938
- ServerIcon,
939
- SettingsIcon,
940
- Share2Icon,
941
- SparklesIcon,
942
- TargetIcon,
943
- TerminalIcon,
944
- VideoIcon,
945
- WrenchIcon
946
- } from "lucide-react";
947
- import { jsx as jsx5 } from "react/jsx-runtime";
948
- function toolIcon(kind) {
949
- switch (kind) {
950
- case "terminal":
951
- return TerminalIcon;
952
- case "keyboard":
953
- return KeyboardIcon;
954
- case "file-diff":
955
- return FileDiffIcon;
956
- case "search":
957
- return SearchIcon;
958
- case "question":
959
- return MessageCircleQuestionIcon;
960
- case "target":
961
- return TargetIcon;
962
- case "brain":
963
- return BrainCircuitIcon2;
964
- case "sessions":
965
- return MessagesSquareIcon;
966
- case "server":
967
- return ServerIcon;
968
- case "server-cog":
969
- return ServerCogIcon;
970
- case "calendar":
971
- return CalendarClockIcon;
972
- case "panels":
973
- return PanelsTopLeftIcon;
974
- case "share":
975
- return Share2Icon;
976
- case "message":
977
- return MessageSquareIcon;
978
- case "git":
979
- return FolderGitIcon;
980
- case "box":
981
- return BoxIcon;
982
- case "key":
983
- return KeyRoundIcon;
984
- case "file-search":
985
- return FileSearchIcon;
986
- case "package-search":
987
- return PackageSearchIcon;
988
- case "plug":
989
- return PlugIcon;
990
- case "browser":
991
- return GlobeIcon;
992
- case "screen":
993
- return MonitorIcon;
994
- case "spreadsheet":
995
- return FileSpreadsheetIcon;
996
- case "wait":
997
- return HourglassIcon;
998
- case "download":
999
- return DownloadIcon;
1000
- case "clipboard":
1001
- return ClipboardIcon;
1002
- case "image":
1003
- return ImageIcon;
1004
- case "video":
1005
- return VideoIcon;
1006
- case "record":
1007
- return CircleDotIcon;
1008
- case "document":
1009
- return FileTextIcon;
1010
- case "file":
1011
- return FileIcon;
1012
- case "attachment":
1013
- return PaperclipIcon;
1014
- case "archive":
1015
- return ArchiveIcon;
1016
- case "folder":
1017
- return FolderIcon;
1018
- case "site":
1019
- return AppWindowIcon;
1020
- case "skill":
1021
- return GraduationCapIcon;
1022
- case "settings":
1023
- return SettingsIcon;
1024
- case "bell":
1025
- return BellIcon;
1026
- case "phone":
1027
- return PhoneIcon;
1028
- case "inbox":
1029
- return InboxIcon;
1030
- case "help":
1031
- return HandIcon;
1032
- case "model":
1033
- return SparklesIcon;
1034
- case "progress":
1035
- return ActivityIcon;
1036
- case "helper":
1037
- return BotIcon;
1038
- case "sign-in":
1039
- return LogInIcon;
1040
- case "code":
1041
- return CodeIcon;
1042
- case "accounting":
1043
- return ReceiptIcon;
1044
- case "rename":
1045
- return PencilIcon;
1046
- case "wrench":
1047
- return WrenchIcon;
1048
- }
1049
- }
1050
- function ToolKindIcon({ kind, className }) {
1051
- const Icon = toolIcon(kind);
1052
- return /* @__PURE__ */ jsx5(Icon, { className });
1053
- }
1054
-
1055
- // src/timeline/tool-diff.tsx
1056
- import { useState as useState5 } from "react";
1057
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
1058
- function ToolDiff({ files }) {
1059
- const [layout, setLayout] = useState5("unified");
1060
- const themeType = useThemeType(void 0);
1061
- return /* @__PURE__ */ jsxs3("div", { className: "min-w-0", children: [
1062
- /* @__PURE__ */ jsx6("div", { className: "mb-1.5 flex justify-end", children: /* @__PURE__ */ jsx6(LayoutToggle, { layout, onChange: setLayout }) }),
1063
- /* @__PURE__ */ jsx6(PierreDiff, { diff: files, layout, themeType })
1064
- ] });
1065
- }
1066
- function LayoutToggle({
1067
- layout,
1068
- onChange
1069
- }) {
1070
- return /* @__PURE__ */ jsx6("div", { className: "inline-flex items-center gap-px rounded-og-xs border border-og-border p-px", children: ["unified", "split"].map((value) => /* @__PURE__ */ jsx6(
1071
- "button",
1072
- {
1073
- type: "button",
1074
- onClick: () => onChange(value),
1075
- className: cn(
1076
- "rounded-og-xs px-2 py-[3px] text-og-xs font-medium capitalize transition-colors",
1077
- layout === value ? "bg-og-surface-2 text-og-fg" : "text-og-fg-subtle hover:text-og-fg-muted"
1078
- ),
1079
- children: value
1080
- },
1081
- value
1082
- )) });
1083
- }
1084
- function RawPatch({ diff }) {
1085
- const t = useOpenGeniText();
1086
- const occurrences = /* @__PURE__ */ new Map();
1087
- const lines = diff.split("\n").map((line) => {
1088
- const occurrence = (occurrences.get(line) ?? 0) + 1;
1089
- occurrences.set(line, occurrence);
1090
- return { key: `${line}\0${occurrence}`, line };
1091
- });
1092
- return /* @__PURE__ */ jsxs3("div", { className: "min-w-0", children: [
1093
- /* @__PURE__ */ jsx6("p", { className: "mb-1 text-og-xs font-medium uppercase tracking-[0.08em] text-og-fg-subtle", children: t("timeline.toolDiff.rawPatchCouldNotParse") }),
1094
- /* @__PURE__ */ jsx6("pre", { className: "max-h-72 overflow-auto border-l-2 border-og-border pl-3 font-og-mono text-og-xs leading-5", children: lines.map(({ key, line }) => /* @__PURE__ */ jsx6(
1095
- "span",
1096
- {
1097
- className: cn(
1098
- "block",
1099
- line.startsWith("@@") ? "text-og-accent" : line.startsWith("+") ? "text-og-status-idle" : line.startsWith("-") ? "text-og-status-failed" : "text-og-fg-muted"
1100
- ),
1101
- children: line || " "
1102
- },
1103
- key
1104
- )) })
1105
- ] });
1106
- }
1107
-
1108
- // src/timeline/tool-renderers.tsx
1109
- import { Fragment as Fragment3, jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
1110
- var ICON_SIZE = "size-3.5";
1111
- function RunningPreview({ children }) {
1112
- const compact = useContext5(CompactActivityContext);
1113
- return /* @__PURE__ */ jsxs4("span", { className: "inline-flex items-center gap-1.5", children: [
1114
- !compact && /* @__PURE__ */ jsx7("span", { className: "size-1.5 shrink-0 animate-og-pulse rounded-full bg-og-status-running" }),
1115
- /* @__PURE__ */ jsx7("span", { className: "min-w-0 truncate", children })
1116
- ] });
1117
- }
1118
- function PathPreview({
1119
- path,
1120
- add,
1121
- del
1122
- }) {
1123
- return /* @__PURE__ */ jsxs4("span", { className: "inline-flex items-center gap-2 truncate font-og-mono", children: [
1124
- /* @__PURE__ */ jsxs4("span", { className: "truncate", children: [
1125
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-subtle", children: pathDirname(path) }),
1126
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-muted", children: pathBasename(path) })
1127
- ] }),
1128
- add != null || del != null ? /* @__PURE__ */ jsxs4("span", { className: "shrink-0 text-og-fg-subtle", children: [
1129
- add != null ? `+${add}` : "",
1130
- add != null && del != null ? " " : "",
1131
- del != null ? `\u2212${del}` : ""
1132
- ] }) : null
1133
- ] });
1134
- }
1135
- function presentedPreviewNode(msg, preview) {
1136
- switch (preview.kind) {
1137
- case "text":
1138
- return preview.running ? /* @__PURE__ */ jsx7(RunningPreview, { children: preview.text }) : preview.text;
1139
- case "path":
1140
- return /* @__PURE__ */ jsx7(PathPreview, { path: preview.path, add: preview.add, del: preview.del });
1141
- case "files":
1142
- return /* @__PURE__ */ jsxs4("span", { className: "inline-flex items-center gap-2 font-og-mono", children: [
1143
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-muted", children: msg("timeline.toolRenderers.filesCount", { count: preview.count }) }),
1144
- /* @__PURE__ */ jsxs4("span", { className: "text-og-fg-subtle", children: [
1145
- "+",
1146
- preview.add,
1147
- " \u2212",
1148
- preview.del
1149
- ] })
1150
- ] });
1151
- case "malformed":
1152
- return /* @__PURE__ */ jsxs4("span", { className: "inline-flex items-center gap-2 font-og-mono", children: [
1153
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-muted", children: preview.name }),
1154
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-subtle", children: msg("timeline.toolRenderers.malformedPatch") })
1155
- ] });
1156
- }
1157
- }
1158
- function PresentedBody({ body }) {
1159
- switch (body.kind) {
1160
- case "term":
1161
- return /* @__PURE__ */ jsxs4(Fragment3, { children: [
1162
- /* @__PURE__ */ jsx7(
1163
- TermBlock,
1164
- {
1165
- command: body.command,
1166
- ...body.workdir !== null || body.command === null ? { workdir: body.workdir } : {},
1167
- output: body.output,
1168
- ...body.live ? { live: true } : {},
1169
- ...body.failed !== void 0 ? { failed: body.failed } : {}
1170
- }
1171
- ),
1172
- body.note ? /* @__PURE__ */ jsx7(BodyNote, { children: body.note }) : null
1173
- ] });
1174
- case "note":
1175
- return body.tone ? /* @__PURE__ */ jsx7(BodyNote, { tone: body.tone, children: body.text }) : /* @__PURE__ */ jsx7(BodyNote, { children: body.text });
1176
- case "payloads":
1177
- return /* @__PURE__ */ jsxs4(Fragment3, { children: [
1178
- body.note ? /* @__PURE__ */ jsx7("p", { className: "m-0 py-1 text-og-sm text-og-fg-muted", children: body.note }) : null,
1179
- body.blocks.map(
1180
- (block) => block.failed ? /* @__PURE__ */ jsx7(PayloadBlock, { label: block.label, value: block.value, failed: true }, block.label) : /* @__PURE__ */ jsx7(PayloadBlock, { label: block.label, value: block.value }, block.label)
1181
- )
1182
- ] });
1183
- case "patch":
1184
- if (body.bare) {
1185
- return /* @__PURE__ */ jsx7(RawPatch, { diff: body.files[0]?.diff ?? "" });
1186
- }
1187
- return /* @__PURE__ */ jsx7(Fragment3, { children: body.files.map(
1188
- (entry) => entry.file ? /* @__PURE__ */ jsx7(ToolDiff, { files: [entry.file] }, entry.key) : /* @__PURE__ */ jsxs4("div", { children: [
1189
- /* @__PURE__ */ jsx7("p", { className: "mb-1 font-og-mono text-og-xs text-og-fg-muted", children: entry.path }),
1190
- /* @__PURE__ */ jsx7(RawPatch, { diff: entry.diff })
1191
- ] }, entry.key)
1192
- ) });
1193
- case "web-results":
1194
- return /* @__PURE__ */ jsx7(WebSearchResults, { results: body.results });
1195
- case "none":
1196
- return null;
1197
- }
1198
- }
1199
- function WebSearchResults({ results }) {
1200
- const msg = useOpenGeniText();
1201
- const resultOccurrences = /* @__PURE__ */ new Map();
1202
- const keyedResults = results?.map((result) => {
1203
- const contentKey = `${result.domain}\0${result.title}\0${result.snippet}`;
1204
- const occurrence = (resultOccurrences.get(contentKey) ?? 0) + 1;
1205
- resultOccurrences.set(contentKey, occurrence);
1206
- return { key: `${contentKey}\0${occurrence}`, result };
1207
- });
1208
- if (!keyedResults || !keyedResults.length) {
1209
- return /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.resultsFoldedIntoModelContext") });
1210
- }
1211
- return /* @__PURE__ */ jsx7("ul", { className: "flex flex-col gap-2", children: keyedResults.map(({ key, result }) => /* @__PURE__ */ jsxs4("li", { className: "flex gap-2.5", children: [
1212
- /* @__PURE__ */ jsx7(GlobeIcon2, { className: "mt-0.5 size-3.5 shrink-0 text-og-fg-subtle" }),
1213
- /* @__PURE__ */ jsxs4("div", { className: "min-w-0", children: [
1214
- /* @__PURE__ */ jsxs4("p", { className: "truncate text-og-base text-og-fg", children: [
1215
- result.title,
1216
- " ",
1217
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-subtle", children: result.domain })
1218
- ] }),
1219
- /* @__PURE__ */ jsx7("p", { className: "text-og-sm leading-5 text-og-fg-muted", children: result.snippet })
1220
- ] })
1221
- ] }, key)) });
1222
- }
1223
- function PresentedToolRow({
1224
- presentation,
1225
- item,
1226
- logo = null
1227
- }) {
1228
- const msg = useOpenGeniText();
1229
- const computeLabel = useTimelineComputeLabel();
1230
- const p = useToolDetails() === "plain" ? plainToolRow(msg, item, presentation, { computeLabel }) : presentation;
1231
- const Icon = toolIcon(p.icon);
1232
- return /* @__PURE__ */ jsx7(
1233
- ActivityDisclosure,
1234
- {
1235
- icon: /* @__PURE__ */ jsx7(ConnectorLogoIcon, { src: logo, fallback: /* @__PURE__ */ jsx7(Icon, { className: ICON_SIZE }) }),
1236
- iconTone: p.iconTone,
1237
- title: /* @__PURE__ */ jsx7(SecretRefText, { text: p.title, linkable: false }),
1238
- ...p.titleMono ? { titleMono: true } : {},
1239
- ...p.running ? { running: true } : {},
1240
- ...p.chip ? { chip: p.chip } : {},
1241
- ...p.failed !== void 0 ? { failed: p.failed } : {},
1242
- ...p.cancelled !== void 0 ? { cancelled: p.cancelled } : {},
1243
- preview: p.preview ? presentedPreviewNode(msg, p.preview) : void 0,
1244
- expandable: p.body.kind !== "none",
1245
- children: /* @__PURE__ */ jsx7(PresentedBody, { body: p.body })
1246
- }
1247
- );
1248
- }
1249
- function ExecRenderer({ item }) {
1250
- const msg = useOpenGeniText();
1251
- const computeLabel = useTimelineComputeLabel();
1252
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: execPresentation(msg, item, { computeLabel }), item });
1253
- }
1254
- function WriteStdinRenderer({ item }) {
1255
- const msg = useOpenGeniText();
1256
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: writeStdinPresentation(msg, item), item });
1257
- }
1258
- function ApplyPatchRenderer({ item }) {
1259
- const msg = useOpenGeniText();
1260
- const presentation = applyPatchPresentation(msg, item);
1261
- return presentation ? /* @__PURE__ */ jsx7(PresentedToolRow, { presentation, item }) : /* @__PURE__ */ jsx7(GenericRenderer, { item });
1262
- }
1263
- function WebSearchRenderer({ item }) {
1264
- const msg = useOpenGeniText();
1265
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: webSearchPresentation(msg, item), item });
1266
- }
1267
- function AskRenderer({ item }) {
1268
- const msg = useOpenGeniText();
1269
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: askPresentation(msg, item), item });
1270
- }
1271
- function RunOnRenderer({ item }) {
1272
- const msg = useOpenGeniText();
1273
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: runOnPresentation(msg, item), item });
1274
- }
1275
- function MachineRenderer({ item, loadRetainedScreenshot }) {
1276
- const msg = useOpenGeniText();
1277
- const presentation = machinePresentation(msg, item);
1278
- const retained = mcpToolLeaf(item.name).startsWith("computer_") ? retainedScreenshotMetadata(item.output) : null;
1279
- if (!retained?.available) return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation, item });
1280
- return /* @__PURE__ */ jsx7(
1281
- RetainedSessionImageDisclosure,
1282
- {
1283
- artifact: retained,
1284
- load: loadRetainedScreenshot,
1285
- title: presentation.title,
1286
- caption: presentation.title,
1287
- noun: "screenshot",
1288
- icon: /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }),
1289
- lightboxLabel: msg("timeline.toolRenderers.screenshot"),
1290
- batched: null,
1291
- failed: item.status === "failed",
1292
- cancelled: item.status === "cancelled"
1293
- }
1294
- );
1295
- }
1296
- function UnreviewedGenericRenderer({ item, loadRetainedScreenshot }) {
1297
- const msg = useOpenGeniText();
1298
- const details = useToolDetails();
1299
- const logo = useToolConnectorLogo(item.display);
1300
- const { images, output } = retainedToolResultImages(item.output);
1301
- if (images.length === 0 || item.status === "running") {
1302
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: toolRowPresentation(msg, item), item, logo });
1303
- }
1304
- const presentation = toolRowPresentation(msg, { ...item, output }, { details });
1305
- const Icon = toolIcon(presentation.icon);
1306
- const [first, ...rest] = images;
1307
- return /* @__PURE__ */ jsxs4(
1308
- RetainedSessionImageDisclosure,
1309
- {
1310
- artifact: first,
1311
- load: loadRetainedScreenshot,
1312
- title: presentation.title,
1313
- caption: presentation.title,
1314
- noun: "image",
1315
- icon: /* @__PURE__ */ jsx7(ConnectorLogoIcon, { src: logo, fallback: /* @__PURE__ */ jsx7(Icon, { className: ICON_SIZE }) }),
1316
- lightboxLabel: presentation.title,
1317
- batched: null,
1318
- failed: presentation.failed ?? false,
1319
- cancelled: presentation.cancelled ?? false,
1320
- children: [
1321
- /* @__PURE__ */ jsx7(PresentedBody, { body: presentation.body }),
1322
- rest.map((image, index) => /* @__PURE__ */ jsx7(
1323
- RetainedSessionImageDisclosure,
1324
- {
1325
- artifact: image,
1326
- load: loadRetainedScreenshot,
1327
- title: msg("timeline.toolRenderers.imageIndex", { index: index + 2 }),
1328
- caption: `${presentation.title}, image ${index + 2}`,
1329
- noun: "image",
1330
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
1331
- lightboxLabel: presentation.title,
1332
- batched: null,
1333
- failed: false,
1334
- cancelled: false
1335
- },
1336
- image.artifactId
1337
- ))
1338
- ]
1339
- }
1340
- );
1341
- }
1342
- function computerVerb(msg, action) {
1343
- if (!action || !action.type) {
1344
- return msg("timeline.toolRenderers.acted");
1345
- }
1346
- switch (action.type) {
1347
- case "screenshot":
1348
- return msg("timeline.toolRenderers.screenshot");
1349
- case "click":
1350
- return msg("timeline.toolRenderers.clickedXY", { x: action.x, y: action.y });
1351
- case "double_click":
1352
- return msg("timeline.toolRenderers.doubleClickedXY", { x: action.x, y: action.y });
1353
- case "move":
1354
- return msg("timeline.toolRenderers.movedXY", { x: action.x, y: action.y });
1355
- case "scroll":
1356
- return msg("timeline.toolRenderers.scrolled");
1357
- case "type": {
1358
- const t = action.text ?? "";
1359
- return msg("timeline.toolRenderers.typedSliceValue", {
1360
- slice: t.slice(0, 28),
1361
- value: t.length > 28 ? "\u2026" : ""
1362
- });
1363
- }
1364
- case "keypress":
1365
- return msg("timeline.toolRenderers.pressedJoin", { join: (action.keys ?? []).join("+") });
1366
- case "drag":
1367
- return msg("timeline.toolRenderers.dragged");
1368
- case "wait":
1369
- return msg("timeline.toolRenderers.waited");
1370
- default:
1371
- return action.type;
1372
- }
1373
- }
1374
- function asComputerArgs(args) {
1375
- if (!args) {
1376
- return {};
1377
- }
1378
- const parsed = typeof args === "string" ? tryParseJson(args) : args;
1379
- if (!parsed || typeof parsed !== "object") {
1380
- return {};
1381
- }
1382
- const record = parsed;
1383
- return {
1384
- ...typeof record.x === "number" ? { x: record.x } : {},
1385
- ...typeof record.y === "number" ? { y: record.y } : {},
1386
- ...typeof record.text === "string" ? { text: record.text } : {},
1387
- ...Array.isArray(record.keys) ? { keys: record.keys } : {},
1388
- ...typeof record.button === "string" ? { button: record.button } : {}
1389
- };
1390
- }
1391
- function ComputerCallRenderer({ item, loadRetainedScreenshot }) {
1392
- const msg = useOpenGeniText();
1393
- const raw = item.raw ?? {};
1394
- const functionAction = !raw.action && item.name.startsWith("computer_") && item.name !== "computer_call" ? {
1395
- type: item.name.slice("computer_".length),
1396
- ...asComputerArgs(item.arguments)
1397
- } : void 0;
1398
- const action = raw.action ?? functionAction;
1399
- const actions = raw.actions ?? (action ? [action] : []);
1400
- const verb = computerVerb(msg, action);
1401
- const out = item.output;
1402
- const running = item.status === "running";
1403
- const rejected = raw.providerData?.approvalStatus === "rejected";
1404
- const readOnly = typeof out === "string" && out.includes("read-only");
1405
- const shotUrl = screenshotDataUrl(out);
1406
- const retained = retainedScreenshotMetadata(out);
1407
- const omittedMedia = mediaPreviewFact(out);
1408
- const empty = out === "" || out == null;
1409
- const batched = actions.length > 1 ? actions.map((a) => computerVerb(msg, a)).join(" \xB7 ") : null;
1410
- const countSuffix = actions.length > 1 ? ` \xB7${actions.length}` : "";
1411
- const isShot = action?.type === "screenshot";
1412
- if (running) {
1413
- return /* @__PURE__ */ jsx7(
1414
- ActivityDisclosure,
1415
- {
1416
- icon: isShot ? /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }) : /* @__PURE__ */ jsx7(MousePointer2Icon, { className: ICON_SIZE }),
1417
- iconTone: "running",
1418
- title: verb,
1419
- running: true,
1420
- media: /* @__PURE__ */ jsx7(MediaSkeleton, {}),
1421
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capturingFrame") })
1422
- }
1423
- );
1424
- }
1425
- if (readOnly) {
1426
- return /* @__PURE__ */ jsx7(
1427
- ActivityDisclosure,
1428
- {
1429
- icon: /* @__PURE__ */ jsx7(MousePointer2Icon, { className: ICON_SIZE }),
1430
- iconTone: "failed",
1431
- title: verb,
1432
- chip: { tone: "bad", text: "read-only" },
1433
- preview: "write actions disabled",
1434
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: "error", children: msg("timeline.toolRenderers.computerUseIsReadOnly") })
1435
- }
1436
- );
1437
- }
1438
- if (rejected) {
1439
- return /* @__PURE__ */ jsx7(
1440
- ActivityDisclosure,
1441
- {
1442
- icon: /* @__PURE__ */ jsx7(LockIcon, { className: ICON_SIZE }),
1443
- iconTone: "muted",
1444
- title: verb,
1445
- preview: msg("timeline.toolRenderers.approvalRejectedThisActionDid2"),
1446
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.approvalRejectedThisActionDid") })
1447
- }
1448
- );
1449
- }
1450
- const isFailed = item.status === "failed";
1451
- const isCancelled = item.status === "cancelled";
1452
- if (retained) {
1453
- if (!retained.available) {
1454
- const state = retained.reason === "expired" || retained.reason === "deleted" ? retained.reason : "unavailable";
1455
- return /* @__PURE__ */ jsx7(
1456
- ActivityDisclosure,
1457
- {
1458
- icon: /* @__PURE__ */ jsx7(CameraOffIcon, { className: ICON_SIZE }),
1459
- iconTone: isFailed ? "failed" : "muted",
1460
- title: `${verb}${countSuffix} \xB7 ${state}`,
1461
- failed: isFailed,
1462
- cancelled: isCancelled,
1463
- preview: `screenshot ${state}`,
1464
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
1465
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: isFailed ? "error" : void 0, children: msg("timeline.toolRenderers.screenshotStateReplaceall", {
1466
- state,
1467
- replaceAll: retained.reason.replaceAll("_", " ")
1468
- }) })
1469
- }
1470
- );
1471
- }
1472
- return /* @__PURE__ */ jsx7(
1473
- RetainedSessionImageDisclosure,
1474
- {
1475
- artifact: retained,
1476
- load: loadRetainedScreenshot,
1477
- title: `${verb}${countSuffix}`,
1478
- caption: `${verb}${countSuffix}`,
1479
- noun: "screenshot",
1480
- icon: /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }),
1481
- lightboxLabel: msg("timeline.toolRenderers.screenshot"),
1482
- batched,
1483
- failed: isFailed,
1484
- cancelled: isCancelled
1485
- }
1486
- );
1487
- }
1488
- if (shotUrl) {
1489
- const caption = `${verb}${actions.length > 1 ? ` (+${actions.length - 1} more)` : ""}`;
1490
- return /* @__PURE__ */ jsxs4(
1491
- ActivityDisclosure,
1492
- {
1493
- icon: isShot ? /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }) : /* @__PURE__ */ jsx7(MousePointer2Icon, { className: ICON_SIZE }),
1494
- iconTone: isFailed ? "failed" : "accent",
1495
- title: `${verb}${countSuffix}`,
1496
- failed: isFailed,
1497
- cancelled: isCancelled,
1498
- media: /* @__PURE__ */ jsx7(Thumbnail, { src: shotUrl, caption }),
1499
- children: [
1500
- /* @__PURE__ */ jsx7(ScreenshotFigure, { src: shotUrl, caption }),
1501
- batched ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.batchedBatched", { batched }) }) : null
1502
- ]
1503
- }
1504
- );
1505
- }
1506
- if (omittedMedia) {
1507
- return /* @__PURE__ */ jsxs4(
1508
- ActivityDisclosure,
1509
- {
1510
- icon: /* @__PURE__ */ jsx7(CameraOffIcon, { className: ICON_SIZE }),
1511
- iconTone: isFailed ? "failed" : "muted",
1512
- title: msg("timeline.toolRenderers.verbCountsuffixImageOmittedNot", { verb, countSuffix }),
1513
- failed: isFailed,
1514
- cancelled: isCancelled,
1515
- preview: msg("timeline.toolRenderers.inlineImageOmittedNotRetained"),
1516
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
1517
- children: [
1518
- /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.theInlineMediatypeOutputWas", {
1519
- mediaType: omittedMedia.mediaType
1520
- }) }),
1521
- batched ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.batchedBatched", { batched }) }) : null
1522
- ]
1523
- }
1524
- );
1525
- }
1526
- if (empty) {
1527
- return /* @__PURE__ */ jsx7(
1528
- ActivityDisclosure,
1529
- {
1530
- icon: /* @__PURE__ */ jsx7(CameraOffIcon, { className: ICON_SIZE }),
1531
- iconTone: isFailed ? "failed" : "muted",
1532
- title: verb,
1533
- failed: isFailed,
1534
- cancelled: isCancelled,
1535
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
1536
- children: /* @__PURE__ */ jsx7(BodyNote, { children: isFailed ? msg("timeline.toolRenderers.computerCallFailedNoImage") : isCancelled ? msg("timeline.toolRenderers.computerCallInterruptedNoImage") : msg("timeline.toolRenderers.noImageTheSessionReturned") })
1537
- }
1538
- );
1539
- }
1540
- return /* @__PURE__ */ jsx7(
1541
- ActivityDisclosure,
1542
- {
1543
- icon: /* @__PURE__ */ jsx7(MousePointer2Icon, { className: ICON_SIZE }),
1544
- iconTone: isFailed ? "failed" : "accent",
1545
- title: verb,
1546
- failed: isFailed,
1547
- cancelled: isCancelled,
1548
- preview: batched ?? void 0,
1549
- expandable: batched != null,
1550
- children: batched ? /* @__PURE__ */ jsx7(BodyNote, { children: batched }) : null
1551
- }
1552
- );
1553
- }
1554
- function BrowserScreenshotRenderer(props) {
1555
- const msg = useOpenGeniText();
1556
- const { item, loadRetainedScreenshot } = props;
1557
- const leaf = mcpToolLeaf(item.name);
1558
- const title = leaf === "browser_observe" ? msg("timeline.toolRenderers.observedBrowser") : leaf === "browser_act" ? msg("timeline.toolRenderers.usedBrowser") : msg("timeline.toolRenderers.browserScreenshot");
1559
- const retained = retainedScreenshotMetadata(item.output);
1560
- const isFailed = item.status === "failed";
1561
- const isCancelled = item.status === "cancelled";
1562
- if (item.status === "running" && leaf === "browser_screenshot") {
1563
- return /* @__PURE__ */ jsx7(
1564
- ActivityDisclosure,
1565
- {
1566
- icon: /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }),
1567
- iconTone: "running",
1568
- title,
1569
- running: true,
1570
- media: /* @__PURE__ */ jsx7(MediaSkeleton, {}),
1571
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capturingFrame") })
1572
- }
1573
- );
1574
- }
1575
- if (!retained) return /* @__PURE__ */ jsx7(GenericRenderer, { ...props });
1576
- if (!retained.available) {
1577
- const state = retained.reason === "expired" || retained.reason === "deleted" ? retained.reason : "unavailable";
1578
- return /* @__PURE__ */ jsx7(
1579
- ActivityDisclosure,
1580
- {
1581
- icon: /* @__PURE__ */ jsx7(CameraOffIcon, { className: ICON_SIZE }),
1582
- iconTone: isFailed ? "failed" : "muted",
1583
- title: `${title} \xB7 ${state}`,
1584
- failed: isFailed,
1585
- cancelled: isCancelled,
1586
- preview: `screenshot ${state}`,
1587
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
1588
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: isFailed ? "error" : void 0, children: msg("timeline.toolRenderers.screenshotStateReplaceall", {
1589
- state,
1590
- replaceAll: retained.reason.replaceAll("_", " ")
1591
- }) })
1592
- }
1593
- );
1594
- }
1595
- return /* @__PURE__ */ jsx7(
1596
- RetainedSessionImageDisclosure,
1597
- {
1598
- artifact: retained,
1599
- load: loadRetainedScreenshot,
1600
- title,
1601
- caption: title,
1602
- noun: "screenshot",
1603
- icon: /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }),
1604
- lightboxLabel: msg("timeline.toolRenderers.browserScreenshot"),
1605
- batched: null,
1606
- failed: isFailed,
1607
- cancelled: isCancelled
1608
- }
1609
- );
1610
- }
1611
- function RetainedSessionImageDisclosure(props) {
1612
- const compact = useContext5(CompactActivityContext);
1613
- if (compact) {
1614
- return /* @__PURE__ */ jsx7(
1615
- ActivityDisclosure,
1616
- {
1617
- icon: props.icon,
1618
- title: props.title,
1619
- compactPreview: null,
1620
- failed: props.failed,
1621
- cancelled: props.cancelled
1622
- }
1623
- );
1624
- }
1625
- return /* @__PURE__ */ jsx7(LoadedRetainedSessionImageDisclosure, { ...props });
1626
- }
1627
- function LoadedRetainedSessionImageDisclosure({
1628
- artifact,
1629
- load,
1630
- title,
1631
- caption,
1632
- noun,
1633
- icon,
1634
- lightboxLabel,
1635
- batched,
1636
- failed,
1637
- cancelled,
1638
- filename,
1639
- defaultOpen,
1640
- children
1641
- }) {
1642
- const msg = useOpenGeniText();
1643
- const state = useRetainedImageObjectUrl(artifact, load);
1644
- const downloadFilename = filename ?? retainedImageFilename(artifact);
1645
- const figure = {
1646
- src: state.kind === "ready" ? state.url : "",
1647
- caption,
1648
- alt: caption,
1649
- expandLabel: msg("timeline.toolRenderers.expandNoun", { noun }),
1650
- lightboxLabel,
1651
- downloadFilename
1652
- };
1653
- return /* @__PURE__ */ jsxs4(
1654
- ActivityDisclosure,
1655
- {
1656
- icon,
1657
- iconTone: failed ? "failed" : state.kind === "ready" ? "accent" : "muted",
1658
- title,
1659
- defaultOpen,
1660
- failed,
1661
- cancelled,
1662
- preview: state.kind === "loading" ? msg("timeline.toolRenderers.loadingRetainedNoun", { noun }) : state.kind === "error" ? msg("timeline.toolRenderers.nounRetrievalFailed", { noun }) : state.kind === "unavailable" ? `${noun} ${state.label}` : void 0,
1663
- media: state.kind === "ready" ? /* @__PURE__ */ jsx7(Thumbnail, { ...figure }) : state.kind === "loading" ? /* @__PURE__ */ jsx7(MediaSkeleton, {}) : /* @__PURE__ */ jsx7(MediaEmpty, {}),
1664
- children: [
1665
- state.kind === "ready" ? /* @__PURE__ */ jsx7(ScreenshotFigure, { ...figure, showCaption: caption !== title }) : state.kind === "loading" ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.loadingTheRetainedNoun", { noun }) }) : state.kind === "unavailable" ? /* @__PURE__ */ jsxs4(BodyNote, { children: [
1666
- noun === "screenshot" ? msg("timeline.toolRenderers.screenshot") : msg("timeline.toolRenderers.image"),
1667
- " ",
1668
- state.label,
1669
- "."
1670
- ] }) : /* @__PURE__ */ jsx7(ImageRetrievalError, { noun, retry: state.retry }),
1671
- batched ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.batchedBatched", { batched }) }) : null,
1672
- children
1673
- ]
1674
- }
1675
- );
1676
- }
1677
- function ImageRetrievalError({ noun = "image", retry }) {
1678
- const msg = useOpenGeniText();
1679
- return /* @__PURE__ */ jsxs4(BodyNote, { tone: "error", children: [
1680
- noun === "screenshot" ? msg("timeline.toolRenderers.screenshot") : msg("timeline.toolRenderers.image"),
1681
- " ",
1682
- msg("timeline.toolRenderers.retrievalFailed"),
1683
- " ",
1684
- /* @__PURE__ */ jsx7(
1685
- "button",
1686
- {
1687
- type: "button",
1688
- "aria-label": msg("timeline.toolRenderers.retryNounRetrieval", { noun }),
1689
- onClick: retry,
1690
- className: "underline underline-offset-2",
1691
- children: msg("timeline.toolRenderers.retry")
1692
- }
1693
- )
1694
- ] });
1695
- }
1696
- function GeneratedImageRenderer({ item, loadRetainedArtifact }) {
1697
- const msg = useOpenGeniText();
1698
- const args = parseToolArgs(item.arguments);
1699
- const prompt = typeof args.prompt === "string" ? args.prompt : "";
1700
- const raw = item.raw && typeof item.raw === "object" && !Array.isArray(item.raw) ? item.raw : null;
1701
- const receipt = generatedImageReceipt(item.output) ?? generatedImageReceipt(raw?.output);
1702
- if (item.status === "running") {
1703
- return /* @__PURE__ */ jsx7(
1704
- ActivityDisclosure,
1705
- {
1706
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
1707
- iconTone: "running",
1708
- title: msg("timeline.toolRenderers.generatingImage"),
1709
- running: true,
1710
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: truncatePreview(prompt, 72) || msg("timeline.toolRenderers.creating") }),
1711
- media: /* @__PURE__ */ jsx7(MediaSkeleton, {}),
1712
- children: prompt ? /* @__PURE__ */ jsx7(BodyNote, { children: prompt }) : null
1713
- }
1714
- );
1715
- }
1716
- if (!receipt) return /* @__PURE__ */ jsx7(GenericRenderer, { item });
1717
- return /* @__PURE__ */ jsx7(
1718
- GeneratedImageDisclosure,
1719
- {
1720
- receipt,
1721
- load: loadRetainedArtifact,
1722
- prompt,
1723
- failed: item.status === "failed",
1724
- cancelled: item.status === "cancelled"
1725
- }
1726
- );
1727
- }
1728
- function GeneratedVideoRenderer({ item }) {
1729
- const msg = useOpenGeniText();
1730
- const args = parseToolArgs(item.arguments);
1731
- const prompt = typeof args.prompt === "string" ? args.prompt : "";
1732
- const parsedOutput = typeof item.output === "string" ? tryParseJson(item.output) : item.output;
1733
- const accepted = parsedOutput && typeof parsedOutput === "object" && !Array.isArray(parsedOutput) && parsedOutput.status === "accepted";
1734
- const failed = item.status === "failed";
1735
- const cancelled = item.status === "cancelled";
1736
- const running = item.status === "running";
1737
- return /* @__PURE__ */ jsxs4(
1738
- ActivityDisclosure,
1739
- {
1740
- icon: /* @__PURE__ */ jsx7(VideoIcon2, { className: ICON_SIZE }),
1741
- iconTone: failed ? "failed" : running ? "running" : accepted ? "accent" : "muted",
1742
- title: running ? msg("timeline.toolRenderers.startingVideoGeneration") : accepted ? msg("timeline.toolRenderers.generatingVideo") : msg("timeline.toolRenderers.generateVideo"),
1743
- running,
1744
- failed,
1745
- cancelled,
1746
- preview: truncatePreview(prompt, 88) || (accepted ? msg("timeline.toolRenderers.requestAccepted") : void 0),
1747
- children: [
1748
- prompt ? /* @__PURE__ */ jsx7(BodyNote, { children: prompt }) : null,
1749
- accepted ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.theVideoWillAppearHere") }) : item.output !== void 0 ? /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.output"), value: item.output }) : null
1750
- ]
1751
- }
1752
- );
1753
- }
1754
- function SandboxFilePublishRenderer({ item, loadRetainedArtifact }) {
1755
- const msg = useOpenGeniText();
1756
- const plain = useToolDetails() === "plain";
1757
- const { text: output, isError } = unwrapMcpOutput(item.output);
1758
- const receipt = parseSandboxFileArtifactReceipt(output);
1759
- const [downloadState, setDownloadState] = useState6("idle");
1760
- if (item.status === "running") {
1761
- return /* @__PURE__ */ jsx7(
1762
- ActivityDisclosure,
1763
- {
1764
- icon: /* @__PURE__ */ jsx7(DownloadIcon2, { className: ICON_SIZE }),
1765
- iconTone: "running",
1766
- title: msg("timeline.toolRenderers.publishingFile"),
1767
- running: true,
1768
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.retainingWorkspaceBytes") })
1769
- }
1770
- );
1771
- }
1772
- if (!receipt || isError || item.status === "failed") {
1773
- return /* @__PURE__ */ jsx7(GenericRenderer, { item });
1774
- }
1775
- const workspaceId = /^\/v1\/workspaces\/([0-9a-f-]+)\/artifacts\//.exec(
1776
- receipt.artifact.retrieval.path
1777
- )?.[1];
1778
- const openLink = workspaceId ? /* @__PURE__ */ jsx7(
1779
- "a",
1780
- {
1781
- href: `/workspaces/${workspaceId}/artifacts/files/${receipt.artifact.artifactId}`,
1782
- "aria-label": msg("timeline.toolRenderers.openFilenameInArtifacts", {
1783
- filename: receipt.filename
1784
- }),
1785
- className: "inline-flex min-h-7 items-center rounded-og-sm px-2 text-og-sm font-medium text-og-accent-strong hover:bg-og-surface-2 hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:min-h-10",
1786
- onClick: (event) => event.stopPropagation(),
1787
- onKeyDown: (event) => event.stopPropagation(),
1788
- children: msg("timeline.toolRenderers.openInArtifacts")
1789
- }
1790
- ) : null;
1791
- const download = async () => {
1792
- if (!loadRetainedArtifact) {
1793
- setDownloadState("error");
1794
- return;
1795
- }
1796
- setDownloadState("loading");
1797
- try {
1798
- const source = await loadRetainedArtifact(receipt.artifact, new AbortController().signal);
1799
- if (!source) throw new Error("artifact unavailable");
1800
- if (source instanceof Uint8Array)
1801
- saveBlob(
1802
- new Blob([source], { type: receipt.artifact.contentType }),
1803
- receipt.filename
1804
- );
1805
- else clickDownloadLink(source.url, receipt.filename);
1806
- setDownloadState("idle");
1807
- } catch {
1808
- setDownloadState("error");
1809
- }
1810
- };
1811
- const downloadButton = /* @__PURE__ */ jsxs4(
1812
- "button",
1813
- {
1814
- type: "button",
1815
- onClick: () => void download(),
1816
- disabled: downloadState === "loading",
1817
- className: "inline-flex items-center gap-1.5 rounded-og-sm border border-og-border px-2.5 py-1.5 text-og-sm font-medium text-og-fg transition-colors hover:border-og-border-strong hover:bg-og-surface-2 disabled:cursor-wait disabled:opacity-60",
1818
- children: [
1819
- /* @__PURE__ */ jsx7(DownloadIcon2, { className: "size-3.5" }),
1820
- downloadState === "loading" ? msg("timeline.toolRenderers.preparing") : downloadState === "error" ? msg("timeline.toolRenderers.retryDownload") : msg("timeline.toolRenderers.download")
1821
- ]
1822
- }
1823
- );
1824
- if (isRetainedImageContentType(receipt.artifact.contentType)) {
1825
- return /* @__PURE__ */ jsxs4(
1826
- RetainedSessionImageDisclosure,
1827
- {
1828
- artifact: receipt.artifact,
1829
- load: loadRetainedArtifact,
1830
- title: msg("timeline.toolRenderers.publishedFilename", { filename: receipt.filename }),
1831
- caption: receipt.filename,
1832
- noun: "image",
1833
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
1834
- lightboxLabel: msg("timeline.toolRenderers.image"),
1835
- batched: null,
1836
- failed: false,
1837
- cancelled: false,
1838
- filename: receipt.filename,
1839
- defaultOpen: true,
1840
- children: [
1841
- downloadButton,
1842
- openLink
1843
- ]
1844
- }
1845
- );
1846
- }
1847
- return /* @__PURE__ */ jsxs4(
1848
- ActivityDisclosure,
1849
- {
1850
- icon: /* @__PURE__ */ jsx7(DownloadIcon2, { className: ICON_SIZE }),
1851
- iconTone: "accent",
1852
- title: msg("timeline.toolRenderers.publishedFilename", { filename: receipt.filename }),
1853
- defaultOpen: true,
1854
- preview: formatBytes(receipt.artifact.originalBytes),
1855
- children: [
1856
- downloadButton,
1857
- openLink,
1858
- plain ? null : isPatchFilename(receipt.filename) ? /* @__PURE__ */ jsx7(
1859
- PatchApplyCommand,
1860
- {
1861
- artifact: receipt.artifact,
1862
- filename: receipt.filename,
1863
- load: loadRetainedArtifact
1864
- }
1865
- ) : null
1866
- ]
1867
- }
1868
- );
1869
- }
1870
- function publishedSiteReceipt(output) {
1871
- const { text, isError } = unwrapMcpOutput(output);
1872
- if (isError) return null;
1873
- const parsed = tryParseJson(text);
1874
- if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
1875
- const artifact = parsed.artifact;
1876
- const version = parsed.version;
1877
- if (!artifact || typeof artifact !== "object" || Array.isArray(artifact) || !version || typeof version !== "object" || Array.isArray(version)) {
1878
- return null;
1879
- }
1880
- const artifactRecord = artifact;
1881
- const versionRecord = version;
1882
- if (typeof artifactRecord.workspaceId !== "string" || typeof artifactRecord.id !== "string" || typeof artifactRecord.title !== "string" || typeof versionRecord.revision !== "number" || !Number.isInteger(versionRecord.revision) || versionRecord.revision < 1) {
1883
- return null;
1884
- }
1885
- return {
1886
- workspaceId: artifactRecord.workspaceId,
1887
- artifactId: artifactRecord.id,
1888
- title: artifactRecord.title,
1889
- revision: versionRecord.revision,
1890
- replayed: parsed.replayed === true
1891
- };
1892
- }
1893
- var SITE_OPEN_CLASS = "inline-flex min-h-7 items-center rounded-og-sm px-2 text-og-sm font-medium text-og-accent-strong hover:bg-og-surface-2 hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:min-h-10";
1894
- function SiteOpenLink({ receipt }) {
1895
- const msg = useOpenGeniText();
1896
- const [pending, setPending] = useState6(false);
1897
- const [failed, setFailed] = useState6(false);
1898
- const resolution = useOpenGeniLinkResolver()?.({
1899
- kind: "site",
1900
- artifactId: receipt.artifactId,
1901
- workspaceId: receipt.workspaceId
1902
- });
1903
- const destination = resolution?.href ? defaultUrlTransform(resolution.href) : "";
1904
- if (destination) {
1905
- return /* @__PURE__ */ jsx7(
1906
- "a",
1907
- {
1908
- href: destination,
1909
- "aria-label": msg("timeline.toolRenderers.openTitle", { title: receipt.title }),
1910
- className: SITE_OPEN_CLASS,
1911
- onClick: (event) => event.stopPropagation(),
1912
- onKeyDown: (event) => event.stopPropagation(),
1913
- children: msg("timeline.toolRenderers.open")
1914
- }
1915
- );
1916
- }
1917
- if (resolution?.open) {
1918
- const open = resolution.open;
1919
- return /* @__PURE__ */ jsx7(
1920
- "button",
1921
- {
1922
- type: "button",
1923
- "aria-label": msg("timeline.toolRenderers.openTitle", { title: receipt.title }),
1924
- "aria-busy": pending,
1925
- disabled: pending,
1926
- className: SITE_OPEN_CLASS,
1927
- onClick: (event) => {
1928
- event.stopPropagation();
1929
- if (pending) return;
1930
- setPending(true);
1931
- setFailed(false);
1932
- void Promise.resolve().then(open).catch(() => setFailed(true)).finally(() => setPending(false));
1933
- },
1934
- onKeyDown: (event) => event.stopPropagation(),
1935
- children: pending ? msg("timeline.toolRenderers.opening") : failed ? msg("timeline.toolRenderers.retryOpen") : msg("timeline.toolRenderers.open")
1936
- }
1937
- );
1938
- }
1939
- return null;
1940
- }
1941
- function SiteArtifactRenderer({ item }) {
1942
- const msg = useOpenGeniText();
1943
- const leaf = mcpToolLeaf(item.name);
1944
- const publishingExisting = leaf === "artifacts_publish";
1945
- if (item.status === "running") {
1946
- return /* @__PURE__ */ jsx7(
1947
- ActivityDisclosure,
1948
- {
1949
- icon: /* @__PURE__ */ jsx7(PanelsTopLeftIcon2, { className: ICON_SIZE }),
1950
- iconTone: "running",
1951
- title: publishingExisting ? msg("timeline.toolRenderers.publishingSiteUpdate") : msg("timeline.toolRenderers.publishingSite"),
1952
- running: true,
1953
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.retainingSourceAndCompiledHtml") })
1954
- }
1955
- );
1956
- }
1957
- const receipt = publishedSiteReceipt(item.output);
1958
- if (!receipt || item.status === "failed") return /* @__PURE__ */ jsx7(GenericRenderer, { item });
1959
- return /* @__PURE__ */ jsx7(
1960
- ActivityDisclosure,
1961
- {
1962
- icon: /* @__PURE__ */ jsx7(PanelsTopLeftIcon2, { className: ICON_SIZE }),
1963
- iconTone: "accent",
1964
- title: publishingExisting ? msg("timeline.toolRenderers.updatedTitle", { title: receipt.title }) : msg("timeline.toolRenderers.publishedTitle", { title: receipt.title }),
1965
- media: /* @__PURE__ */ jsx7(SiteOpenLink, { receipt }),
1966
- children: /* @__PURE__ */ jsxs4(BodyNote, { children: [
1967
- msg("timeline.toolRenderers.versionRevisionIsLive", { revision: receipt.revision }),
1968
- receipt.replayed ? ` ${msg("timeline.toolRenderers.replayedFromTheOriginalPublication")}` : "."
1969
- ] })
1970
- }
1971
- );
1972
- }
1973
- function GeneratedImageDisclosure({
1974
- receipt,
1975
- load,
1976
- prompt,
1977
- failed,
1978
- cancelled
1979
- }) {
1980
- const msg = useOpenGeniText();
1981
- const state = useRetainedImageObjectUrl(receipt.artifact, load);
1982
- const dimensions = receipt.artifact.dimensions;
1983
- const title = failed ? msg("timeline.toolRenderers.imageGenerationFailed") : msg("timeline.toolRenderers.generatedImage");
1984
- const caption = prompt || msg("timeline.toolRenderers.generatedImageWidthHeight", {
1985
- width: dimensions.width,
1986
- height: dimensions.height
1987
- });
1988
- return /* @__PURE__ */ jsxs4(
1989
- ActivityDisclosure,
1990
- {
1991
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
1992
- iconTone: failed ? "failed" : state.kind === "ready" ? "accent" : "muted",
1993
- title,
1994
- defaultOpen: !failed && !cancelled,
1995
- failed,
1996
- cancelled,
1997
- preview: state.kind === "loading" ? msg("timeline.toolRenderers.loadingImage") : state.kind === "error" ? msg("timeline.toolRenderers.imageRetrievalFailed") : state.kind === "unavailable" ? `image ${state.label}` : truncatePreview(prompt, 88) || `${dimensions.width}\xD7${dimensions.height}`,
1998
- media: state.kind === "ready" ? /* @__PURE__ */ jsx7(
1999
- Thumbnail,
2000
- {
2001
- src: state.url,
2002
- caption,
2003
- alt: caption,
2004
- expandLabel: msg("timeline.toolRenderers.expandGeneratedImage"),
2005
- lightboxLabel: msg("timeline.toolRenderers.generatedImage")
2006
- }
2007
- ) : state.kind === "loading" ? /* @__PURE__ */ jsx7(MediaSkeleton, {}) : /* @__PURE__ */ jsx7(MediaEmpty, {}),
2008
- children: [
2009
- state.kind === "ready" ? /* @__PURE__ */ jsx7(
2010
- ScreenshotFigure,
2011
- {
2012
- src: state.url,
2013
- caption,
2014
- alt: caption,
2015
- expandLabel: msg("timeline.toolRenderers.expandGeneratedImage"),
2016
- lightboxLabel: msg("timeline.toolRenderers.generatedImage")
2017
- }
2018
- ) : state.kind === "loading" ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.loadingTheGeneratedImage") }) : state.kind === "unavailable" ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.imageLabel", { label: state.label }) }) : /* @__PURE__ */ jsx7(ImageRetrievalError, { retry: state.retry }),
2019
- /* @__PURE__ */ jsxs4(BodyNote, { children: [
2020
- dimensions.width,
2021
- "\xD7",
2022
- dimensions.height,
2023
- " \xB7 ",
2024
- receipt.sandboxPath
2025
- ] })
2026
- ]
2027
- }
2028
- );
2029
- }
2030
- function retainedImageFilename(artifact) {
2031
- const extension = artifact.contentType === "image/jpeg" ? "jpg" : artifact.contentType === "image/webp" ? "webp" : "png";
2032
- return `${artifact.kind}-${artifact.artifactId}.${extension}`;
2033
- }
2034
- var VIEW_IMAGE_ERRORS = (msg) => [
2035
- msg("timeline.toolRenderers.wasNotFound"),
2036
- msg("timeline.toolRenderers.isNotAFile"),
2037
- msg("timeline.toolRenderers.exceededTheAllowedSize"),
2038
- msg("timeline.toolRenderers.isNotASupportedImage"),
2039
- msg("timeline.toolRenderers.unableToReadImage")
2040
- ];
2041
- function ViewImageRenderer({ item, loadRetainedScreenshot }) {
2042
- const msg = useOpenGeniText();
2043
- const args = parseToolArgs(item.arguments);
2044
- const path = typeof args.path === "string" ? args.path : "";
2045
- const out = item.output;
2046
- const text = typeof out === "string" ? out : "";
2047
- const retained = retainedScreenshotMetadata(out);
2048
- const omittedMedia = mediaPreviewFact(out);
2049
- if (item.status === "running") {
2050
- return /* @__PURE__ */ jsx7(
2051
- ActivityDisclosure,
2052
- {
2053
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2054
- iconTone: "running",
2055
- title: msg("timeline.toolRenderers.viewPathbasename", { pathBasename: pathBasename(path) }),
2056
- running: true,
2057
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.reading") }),
2058
- media: /* @__PURE__ */ jsx7(MediaSkeleton, {}),
2059
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.readingImage") })
2060
- }
2061
- );
2062
- }
2063
- const viewFailed = item.status === "failed";
2064
- const viewCancelled = item.status === "cancelled";
2065
- if (retained) {
2066
- const title = msg("timeline.toolRenderers.viewedPathbasename", {
2067
- pathBasename: pathBasename(path)
2068
- });
2069
- if (!retained.available) {
2070
- const state = retained.reason === "expired" || retained.reason === "deleted" ? retained.reason : "unavailable";
2071
- return /* @__PURE__ */ jsx7(
2072
- ActivityDisclosure,
2073
- {
2074
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2075
- iconTone: viewFailed ? "failed" : "muted",
2076
- title: `${title} \xB7 ${state}`,
2077
- failed: viewFailed,
2078
- cancelled: viewCancelled,
2079
- preview: `image ${state}`,
2080
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
2081
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: viewFailed ? "error" : void 0, children: msg("timeline.toolRenderers.imageStateReplaceall", {
2082
- state,
2083
- replaceAll: retained.reason.replaceAll("_", " ")
2084
- }) })
2085
- }
2086
- );
2087
- }
2088
- return /* @__PURE__ */ jsx7(
2089
- RetainedSessionImageDisclosure,
2090
- {
2091
- artifact: retained,
2092
- load: loadRetainedScreenshot,
2093
- title,
2094
- caption: path || title,
2095
- noun: "image",
2096
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2097
- lightboxLabel: msg("timeline.toolRenderers.image"),
2098
- batched: null,
2099
- failed: viewFailed,
2100
- cancelled: viewCancelled
2101
- }
2102
- );
2103
- }
2104
- const errMatch = VIEW_IMAGE_ERRORS(msg).find((p) => text.includes(p));
2105
- if (errMatch) {
2106
- const tooBig = text.includes("exceeded the allowed size");
2107
- return /* @__PURE__ */ jsx7(
2108
- ActivityDisclosure,
2109
- {
2110
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2111
- iconTone: "failed",
2112
- title: msg("timeline.toolRenderers.viewPathbasename", { pathBasename: pathBasename(path) }),
2113
- chip: {
2114
- tone: "bad",
2115
- text: tooBig ? msg("timeline.toolRenderers.tooLarge") : msg("timeline.chip.error")
2116
- },
2117
- preview: text,
2118
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: "error", children: text })
2119
- }
2120
- );
2121
- }
2122
- if (text.startsWith("OpenAI file reference:")) {
2123
- return /* @__PURE__ */ jsx7(
2124
- ActivityDisclosure,
2125
- {
2126
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2127
- iconTone: viewFailed ? "failed" : "muted",
2128
- title: msg("timeline.toolRenderers.viewedPathbasename", {
2129
- pathBasename: pathBasename(path)
2130
- }),
2131
- failed: viewFailed,
2132
- cancelled: viewCancelled,
2133
- preview: path,
2134
- children: /* @__PURE__ */ jsx7(BodyNote, { children: text })
2135
- }
2136
- );
2137
- }
2138
- if (omittedMedia) {
2139
- return /* @__PURE__ */ jsx7(
2140
- ActivityDisclosure,
2141
- {
2142
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2143
- iconTone: viewFailed ? "failed" : "muted",
2144
- title: msg("timeline.toolRenderers.viewedPathbasenameImageOmittedNot", {
2145
- pathBasename: pathBasename(path)
2146
- }),
2147
- failed: viewFailed,
2148
- cancelled: viewCancelled,
2149
- preview: msg("timeline.toolRenderers.inlineImageOmittedNotRetained"),
2150
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
2151
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.theInlineMediatypeOutputWas", {
2152
- mediaType: omittedMedia.mediaType
2153
- }) })
2154
- }
2155
- );
2156
- }
2157
- if (text.includes("No image data")) {
2158
- return /* @__PURE__ */ jsx7(
2159
- ActivityDisclosure,
2160
- {
2161
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2162
- iconTone: viewFailed ? "failed" : "muted",
2163
- title: msg("timeline.toolRenderers.viewedPathbasename", {
2164
- pathBasename: pathBasename(path)
2165
- }),
2166
- failed: viewFailed,
2167
- cancelled: viewCancelled,
2168
- preview: msg("timeline.toolRenderers.noImage"),
2169
- children: /* @__PURE__ */ jsx7(BodyNote, { children: viewFailed ? msg("timeline.toolRenderers.viewImageFailedNoImage") : viewCancelled ? msg("timeline.toolRenderers.viewImageInterrupted") : msg("timeline.toolRenderers.noImageTheSandboxSession") })
2170
- }
2171
- );
2172
- }
2173
- if (text.startsWith("data:")) {
2174
- return /* @__PURE__ */ jsx7(
2175
- ActivityDisclosure,
2176
- {
2177
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2178
- iconTone: viewFailed ? "failed" : "accent",
2179
- title: msg("timeline.toolRenderers.viewedPathbasename", {
2180
- pathBasename: pathBasename(path)
2181
- }),
2182
- failed: viewFailed,
2183
- cancelled: viewCancelled,
2184
- media: /* @__PURE__ */ jsx7(Thumbnail, { src: text, caption: path, alt: path }),
2185
- children: /* @__PURE__ */ jsx7(ScreenshotFigure, { src: text, caption: path, alt: path })
2186
- }
2187
- );
2188
- }
2189
- return /* @__PURE__ */ jsx7(GenericRenderer, { item });
2190
- }
2191
- function SecretSetRenderer(props) {
2192
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullSecretSetRenderer, { ...props });
2193
- }
2194
- function FullSecretSetRenderer({ item }) {
2195
- const msg = useOpenGeniText();
2196
- const args = parseToolArgs(item.arguments);
2197
- const name = typeof args.name === "string" ? args.name : "variable";
2198
- if (item.status === "running") {
2199
- return /* @__PURE__ */ jsx7(
2200
- ActivityDisclosure,
2201
- {
2202
- icon: /* @__PURE__ */ jsx7(KeyRoundIcon2, { className: ICON_SIZE }),
2203
- iconTone: "running",
2204
- title: msg("timeline.toolRenderers.setName", { name }),
2205
- running: true,
2206
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.setting") }),
2207
- children: /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args })
2208
- }
2209
- );
2210
- }
2211
- if (item.status === "failed") {
2212
- const errorText = typeof item.output === "string" ? item.output : null;
2213
- return /* @__PURE__ */ jsxs4(
2214
- ActivityDisclosure,
2215
- {
2216
- icon: /* @__PURE__ */ jsx7(KeyRoundIcon2, { className: ICON_SIZE }),
2217
- iconTone: "failed",
2218
- title: msg("timeline.toolRenderers.setName", { name }),
2219
- failed: true,
2220
- preview: errorText ?? msg("timeline.toolRenderers.variableWriteFailed"),
2221
- children: [
2222
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2223
- errorText ? /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: errorText, failed: true }) : /* @__PURE__ */ jsx7(BodyNote, { tone: "error", children: msg("timeline.toolRenderers.theToolCallFailedWith") })
2224
- ]
2225
- }
2226
- );
2227
- }
2228
- return /* @__PURE__ */ jsxs4(
2229
- ActivityDisclosure,
2230
- {
2231
- icon: /* @__PURE__ */ jsx7(KeyRoundIcon2, { className: ICON_SIZE }),
2232
- iconTone: "muted",
2233
- title: msg("timeline.toolRenderers.setName", { name }),
2234
- cancelled: item.status === "cancelled",
2235
- preview: "exact value preserved",
2236
- children: [
2237
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2238
- /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.theConfiguredValueIsPreserved") })
2239
- ]
2240
- }
2241
- );
2242
- }
2243
- function ToolSearchRenderer(props) {
2244
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullToolSearchRenderer, { ...props });
2245
- }
2246
- function FullToolSearchRenderer({ item }) {
2247
- const msg = useOpenGeniText();
2248
- const query = toolSearchQuery(item);
2249
- const icon = /* @__PURE__ */ jsx7(PackageSearchIcon2, { className: ICON_SIZE });
2250
- const running = item.status === "running";
2251
- const queryPreview = query ? truncatePreview(query, 64) : "";
2252
- if (running) {
2253
- return /* @__PURE__ */ jsxs4(
2254
- ActivityDisclosure,
2255
- {
2256
- icon,
2257
- iconTone: "running",
2258
- title: msg("timeline.toolRenderers.lookingUpTools"),
2259
- running: true,
2260
- preview: queryPreview ? /* @__PURE__ */ jsx7(RunningPreview, { children: queryPreview }) : /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.matchingCapabilities") }),
2261
- children: [
2262
- query ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capabilityQueryQuery", { query }) }) : null,
2263
- /* @__PURE__ */ jsx7(
2264
- PayloadBlock,
2265
- {
2266
- label: msg("timeline.toolRenderers.arguments"),
2267
- value: parseToolArgs(item.arguments)
2268
- }
2269
- )
2270
- ]
2271
- }
2272
- );
2273
- }
2274
- const { text: outText, isError } = unwrapMcpOutput(item.output);
2275
- if ((isError || item.status === "failed") && item.status !== "cancelled") {
2276
- return /* @__PURE__ */ jsxs4(
2277
- ActivityDisclosure,
2278
- {
2279
- icon,
2280
- iconTone: "failed",
2281
- title: msg("timeline.toolRenderers.toolLookupFailed"),
2282
- failed: true,
2283
- preview: truncatePreview(outText, 80) || queryPreview || msg("timeline.toolRenderers.lookupFailed"),
2284
- children: [
2285
- query ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capabilityQueryQuery", { query }) }) : null,
2286
- /* @__PURE__ */ jsx7(
2287
- PayloadBlock,
2288
- {
2289
- label: msg("timeline.toolRenderers.arguments"),
2290
- value: parseToolArgs(item.arguments)
2291
- }
2292
- ),
2293
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: outText, failed: true })
2294
- ]
2295
- }
2296
- );
2297
- }
2298
- const tools = parseDisclosedTools(item.output);
2299
- const preview = toolSearchPreview(msg, tools, item.status === "cancelled");
2300
- return /* @__PURE__ */ jsxs4(
2301
- ActivityDisclosure,
2302
- {
2303
- icon,
2304
- iconTone: "muted",
2305
- title: msg("timeline.toolRenderers.lookedUpTools"),
2306
- cancelled: item.status === "cancelled",
2307
- preview,
2308
- children: [
2309
- query ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capabilityQueryQuery", { query }) }) : null,
2310
- tools && tools.length > 0 ? /* @__PURE__ */ jsxs4("ul", { className: "grid gap-1.5", children: [
2311
- tools.slice(0, 12).map((tool) => /* @__PURE__ */ jsxs4("li", { className: "flex min-w-0 items-baseline gap-2", children: [
2312
- tool.source ? /* @__PURE__ */ jsx7("span", { className: "shrink-0 text-og-xs text-og-fg-subtle", children: tool.source }) : null,
2313
- /* @__PURE__ */ jsx7("span", { className: "truncate font-mono text-og-sm text-og-fg", children: tool.leaf })
2314
- ] }, tool.name)),
2315
- tools.length > 12 ? /* @__PURE__ */ jsxs4("li", { className: "text-og-xs text-og-fg-muted", children: [
2316
- "+",
2317
- tools.length - 12,
2318
- " ",
2319
- msg("timeline.toolRenderers.more")
2320
- ] }) : null
2321
- ] }) : tools && tools.length === 0 ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.noDeferredToolsMatchedThis") }) : null,
2322
- /* @__PURE__ */ jsx7(
2323
- PayloadBlock,
2324
- {
2325
- label: msg("timeline.toolRenderers.arguments"),
2326
- value: parseToolArgs(item.arguments)
2327
- }
2328
- ),
2329
- tools == null && outText ? /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.result"), value: outText }) : null
2330
- ]
2331
- }
2332
- );
2333
- }
2334
- function DocsSearchRenderer(props) {
2335
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullDocsSearchRenderer, { ...props });
2336
- }
2337
- function FullDocsSearchRenderer({ item }) {
2338
- const msg = useOpenGeniText();
2339
- const args = parseToolArgs(item.arguments);
2340
- const query = typeof args.query === "string" ? args.query.trim() : "";
2341
- const title = query ? msg("timeline.toolRenderers.searchTruncatepreview", {
2342
- truncatePreview: truncatePreview(query, 48)
2343
- }) : toolDisplayName(msg, item.name, item.display);
2344
- const running = item.status === "running";
2345
- if (running) {
2346
- return /* @__PURE__ */ jsx7(
2347
- ActivityDisclosure,
2348
- {
2349
- icon: /* @__PURE__ */ jsx7(FileSearchIcon2, { className: ICON_SIZE }),
2350
- iconTone: "running",
2351
- title,
2352
- running: true,
2353
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.searching") }),
2354
- children: /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args })
2355
- }
2356
- );
2357
- }
2358
- const { text: outText, isError } = unwrapMcpOutput(item.output);
2359
- if ((isError || item.status === "failed") && item.status !== "cancelled") {
2360
- return /* @__PURE__ */ jsxs4(
2361
- ActivityDisclosure,
2362
- {
2363
- icon: /* @__PURE__ */ jsx7(FileSearchIcon2, { className: ICON_SIZE }),
2364
- iconTone: "failed",
2365
- title,
2366
- failed: true,
2367
- preview: truncatePreview(outText, 80) || msg("timeline.toolRenderers.searchFailed"),
2368
- children: [
2369
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2370
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: outText, failed: true })
2371
- ]
2372
- }
2373
- );
2374
- }
2375
- const hits = parseSearchHits(msg, outText);
2376
- const preview = item.status === "cancelled" ? void 0 : hits ? hits.length === 0 ? msg("timeline.toolRenderers.noHits") : msg("counts.hits", { count: hits.length }) : msg("timeline.toolRenderers.done");
2377
- return /* @__PURE__ */ jsxs4(
2378
- ActivityDisclosure,
2379
- {
2380
- icon: /* @__PURE__ */ jsx7(FileSearchIcon2, { className: ICON_SIZE }),
2381
- iconTone: "muted",
2382
- title,
2383
- cancelled: item.status === "cancelled",
2384
- preview,
2385
- children: [
2386
- hits && hits.length > 0 ? /* @__PURE__ */ jsx7("ul", { className: "grid gap-2", children: hits.slice(0, 8).map((hit) => /* @__PURE__ */ jsxs4("li", { className: "min-w-0", children: [
2387
- /* @__PURE__ */ jsx7("div", { className: "truncate text-og-sm font-medium text-og-fg", children: hit.title }),
2388
- hit.snippet ? /* @__PURE__ */ jsx7("div", { className: "mt-0.5 line-clamp-2 text-og-xs text-og-fg-muted", children: hit.snippet }) : null
2389
- ] }, `${hit.title}\0${hit.snippet}`)) }) : null,
2390
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2391
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.result"), value: outText })
2392
- ]
2393
- }
2394
- );
2395
- }
2396
- function SetSessionTitleRenderer(props) {
2397
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullSetSessionTitleRenderer, { ...props });
2398
- }
2399
- function FullSetSessionTitleRenderer({ item }) {
2400
- const msg = useOpenGeniText();
2401
- const args = parseToolArgs(item.arguments);
2402
- const titleArg = typeof args.title === "string" ? args.title.trim() : "";
2403
- const display = toolDisplayName(msg, item.name, item.display);
2404
- const previewTitle = titleArg ? truncatePreview(titleArg, 72) : "";
2405
- const icon = /* @__PURE__ */ jsx7(MessagesSquareIcon2, { className: ICON_SIZE });
2406
- if (item.status === "running") {
2407
- return /* @__PURE__ */ jsx7(
2408
- ActivityDisclosure,
2409
- {
2410
- icon,
2411
- iconTone: "running",
2412
- title: display,
2413
- running: true,
2414
- preview: previewTitle ? /* @__PURE__ */ jsx7(RunningPreview, { children: previewTitle }) : /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.settingTitle") }),
2415
- children: /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args })
2416
- }
2417
- );
2418
- }
2419
- const { text: outText, isError } = unwrapMcpOutput(item.output);
2420
- if ((isError || item.status === "failed") && item.status !== "cancelled") {
2421
- return /* @__PURE__ */ jsxs4(
2422
- ActivityDisclosure,
2423
- {
2424
- icon,
2425
- iconTone: "failed",
2426
- title: display,
2427
- failed: true,
2428
- preview: truncatePreview(outText, 80) || msg("timeline.toolRenderers.renameFailed"),
2429
- children: [
2430
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2431
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: outText, failed: true })
2432
- ]
2433
- }
2434
- );
2435
- }
2436
- let settledTitle = previewTitle;
2437
- if (!settledTitle) {
2438
- const parsed = tryParseJson(outText);
2439
- if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
2440
- const fromResult = parsed.title;
2441
- if (typeof fromResult === "string" && fromResult.trim()) {
2442
- settledTitle = truncatePreview(fromResult.trim(), 72);
2443
- }
2444
- }
2445
- }
2446
- return /* @__PURE__ */ jsxs4(
2447
- ActivityDisclosure,
2448
- {
2449
- icon,
2450
- iconTone: "muted",
2451
- title: display,
2452
- cancelled: item.status === "cancelled",
2453
- preview: item.status === "cancelled" ? void 0 : settledTitle || void 0,
2454
- children: [
2455
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2456
- outText ? /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.result"), value: outText }) : null
2457
- ]
2458
- }
2459
- );
2460
- }
2461
- function MemoryProposeRenderer(props) {
2462
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullMemoryProposeRenderer, { ...props });
2463
- }
2464
- function FullMemoryProposeRenderer({ item }) {
2465
- const msg = useOpenGeniText();
2466
- const args = parseToolArgs(item.arguments);
2467
- const text = typeof args.text === "string" ? args.text.trim() : "";
2468
- const title = msg("timeline.toolRenderers.proposeMemory");
2469
- const running = item.status === "running";
2470
- if (running) {
2471
- return /* @__PURE__ */ jsx7(
2472
- ActivityDisclosure,
2473
- {
2474
- icon: /* @__PURE__ */ jsx7(BrainCircuitIcon3, { className: ICON_SIZE }),
2475
- iconTone: "running",
2476
- title,
2477
- running: true,
2478
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.proposing") }),
2479
- children: /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args })
2480
- }
2481
- );
2482
- }
2483
- const { text: outText, isError } = unwrapMcpOutput(item.output);
2484
- if ((isError || item.status === "failed") && item.status !== "cancelled") {
2485
- return /* @__PURE__ */ jsxs4(
2486
- ActivityDisclosure,
2487
- {
2488
- icon: /* @__PURE__ */ jsx7(BrainCircuitIcon3, { className: ICON_SIZE }),
2489
- iconTone: "failed",
2490
- title,
2491
- failed: true,
2492
- preview: truncatePreview(outText, 80) || msg("timeline.toolRenderers.proposeFailed"),
2493
- children: [
2494
- text ? /* @__PURE__ */ jsx7(BodyNote, { children: text }) : null,
2495
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: outText, failed: true })
2496
- ]
2497
- }
2498
- );
2499
- }
2500
- return /* @__PURE__ */ jsxs4(
2501
- ActivityDisclosure,
2502
- {
2503
- icon: /* @__PURE__ */ jsx7(BrainCircuitIcon3, { className: ICON_SIZE }),
2504
- iconTone: "muted",
2505
- title,
2506
- cancelled: item.status === "cancelled",
2507
- preview: text ? truncatePreview(text, 90) : msg("timeline.toolRenderers.done"),
2508
- children: [
2509
- text ? /* @__PURE__ */ jsx7(BodyNote, { children: text }) : null,
2510
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.result"), value: outText })
2511
- ]
2512
- }
2513
- );
2514
- }
2515
- function GenericRenderer(props) {
2516
- const reviewed = useHasToolReview(props.item.callId);
2517
- if (reviewed && props.item.callId) return /* @__PURE__ */ jsx7(ReviewedGenericRenderer, { ...props });
2518
- return /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props });
2519
- }
2520
- var REVIEW_CHIP = (msg) => ({
2521
- rejected: { tone: "interrupted", text: msg("timeline.chip.declined") },
2522
- cancelled: { tone: "interrupted", text: msg("timeline.toolRenderers.notRun") },
2523
- expired: { tone: "interrupted", text: msg("timeline.chip.expired") },
2524
- stale: { tone: "interrupted", text: msg("timeline.toolRenderers.notRun") },
2525
- revoked: { tone: "interrupted", text: msg("timeline.toolRenderers.notRun") },
2526
- blocked: { tone: "interrupted", text: msg("timeline.chip.blocked") },
2527
- unknown: { tone: "bad", text: msg("timeline.toolRenderers.outcomeUnknown") },
2528
- partial: { tone: "bad", text: msg("timeline.toolRenderers.partlyDone") },
2529
- failed: { tone: "bad", text: msg("timeline.chip.failed") }
2530
- });
2531
- function ReviewedGenericRenderer(props) {
2532
- const msg = useOpenGeniText();
2533
- const { item } = props;
2534
- const { review: savedReview, onViewDetails } = useRecordedToolReview(item.callId);
2535
- const review = useMemo3(
2536
- () => savedReview ? redactDeep(
2537
- savedReview,
2538
- signedValuesDeep([savedReview, item.arguments, item.output, item.raw])
2539
- ) : null,
2540
- [savedReview, item.arguments, item.output, item.raw]
2541
- );
2542
- const logo = useToolConnectorLogo(item.display);
2543
- if (!review) return /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props });
2544
- const ReviewIcon = toolIcon(genericToolIconKind(item.name));
2545
- const icon = /* @__PURE__ */ jsx7(ConnectorLogoIcon, { src: logo, fallback: /* @__PURE__ */ jsx7(ReviewIcon, { className: ICON_SIZE }) });
2546
- const waiting = review.status === "pending";
2547
- const running = !waiting && (review.status === "executing" || review.status === "approved") && item.status === "running";
2548
- const { text: outText, isError } = unwrapMcpOutput(retainedToolResultImages(item.output).output);
2549
- const chip = REVIEW_CHIP(msg)[review.status] ?? (isError && !running && !waiting ? { tone: "bad", text: msg("timeline.chip.error") } : void 0);
2550
- return /* @__PURE__ */ jsxs4(
2551
- ActivityDisclosure,
2552
- {
2553
- icon,
2554
- iconTone: chip?.tone === "bad" ? "failed" : waiting ? "accent" : "muted",
2555
- title: toolActionTitle(msg, review.toolName) ?? review.title,
2556
- running,
2557
- chip,
2558
- preview: waiting ? msg("timeline.toolRenderers.waitingForYourApproval") : running ? /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.running") }) : item.display?.connector ? (
2559
- // The logo names the connector; only a second account needs words.
2560
- item.display.accountLabel ?? void 0
2561
- ) : review.accountLabel ?? void 0,
2562
- children: [
2563
- /* @__PURE__ */ jsx7("div", { className: "py-1", "data-approval-id": item.callId, "data-review-origin": "history", children: /* @__PURE__ */ jsx7(
2564
- ToolActionReviewCard,
2565
- {
2566
- bare: true,
2567
- review: { ...review, availableActions: [] },
2568
- onViewDetails
2569
- }
2570
- ) }),
2571
- outText ? /* @__PURE__ */ jsx7(
2572
- PayloadBlock,
2573
- {
2574
- label: msg("timeline.toolRenderers.result"),
2575
- value: outText,
2576
- failed: isError
2577
- }
2578
- ) : null
2579
- ]
2580
- }
2581
- );
2582
- }
2583
- var LazyPaymentPageCard = lazy(
2584
- () => import("./payment-page-card-YPSXRHBA.js").then((module) => ({ default: module.PaymentPageCard }))
2585
- );
2586
- function AppActionCallRenderer(props) {
2587
- const page = paymentPageOf(props.item);
2588
- return page ? /* @__PURE__ */ jsx7(LazyPart, { children: /* @__PURE__ */ jsx7(LazyPaymentPageCard, { page }) }) : /* @__PURE__ */ jsx7(GenericRenderer, { ...props });
2589
- }
2590
- function KnowledgeSaveRenderer({ item }) {
2591
- const output = unwrapMcpOutput(item.output);
2592
- const parsed = tryParseJson(output.text);
2593
- if (item.status === "running" || output.isError || !parsed || typeof parsed !== "object")
2594
- return /* @__PURE__ */ jsx7(GenericRenderer, { item });
2595
- const value = parsed;
2596
- const receipt = value.status === "retained" ? value.receipt : value;
2597
- if (!receipt || typeof receipt.entryId !== "string" || !["published", "pending", "rejected", "archived"].includes(String(receipt.outcome)))
2598
- return /* @__PURE__ */ jsx7(GenericRenderer, { item });
2599
- const args = parseToolArgs(item.arguments);
2600
- const entry = args.entry;
2601
- return /* @__PURE__ */ jsx7(
2602
- KnowledgeReceiptRow,
2603
- {
2604
- outcome: receipt.outcome,
2605
- entryId: receipt.entryId,
2606
- title: typeof entry?.title === "string" ? entry.title : typeof value.filename === "string" ? value.filename : void 0,
2607
- source: value.status === "retained" || value.retained === true
2608
- }
2609
- );
2610
- }
2611
- var BASE_ENTRIES = [
2612
- ...[
2613
- "knowledge_save",
2614
- "knowledge_archive",
2615
- "knowledge_retain_file",
2616
- "knowledge_retain_message",
2617
- "task_note_promote_knowledge"
2618
- ].flatMap(
2619
- (name) => [name, `opengeni__${name}`, `mcp__opengeni__${name}`].map((trustedName) => ({
2620
- match: "name",
2621
- name: trustedName,
2622
- matchPrefixedLeaf: false,
2623
- render: KnowledgeSaveRenderer
2624
- }))
2625
- ),
2626
- // Only the Opengeni server's own app actions: a page another server returns
2627
- // is never drawn as a payment button. Spelled out here, like the knowledge
2628
- // tools above, because this registry is built while its chunk loads and the
2629
- // payment-page parser lives in a lazily shared chunk (the same names as its
2630
- // TRUSTED_APP_ACTION_CALL_NAMES, which a test keeps equal).
2631
- ...["admin_action_call", "opengeni__admin_action_call", "mcp__opengeni__admin_action_call"].map(
2632
- (trustedName) => ({
2633
- match: "name",
2634
- name: trustedName,
2635
- matchPrefixedLeaf: false,
2636
- render: AppActionCallRenderer
2637
- })
2638
- ),
2639
- // Provider-native items carry `raw.type` on the wire — this is their source of
2640
- // truth and is consulted first by the registry.
2641
- { match: "rawType", type: "apply_patch_call", render: ApplyPatchRenderer },
2642
- { match: "rawType", type: "computer_call", render: ComputerCallRenderer },
2643
- { match: "rawType", type: "tool_search_call", render: ToolSearchRenderer },
2644
- // First-party sandbox + MCP tools resolve by name (exact or MCP leaf).
2645
- { match: "name", name: "exec_command", render: ExecRenderer },
2646
- { match: "name", name: "request_human_input", render: AskRenderer },
2647
- { match: "name", name: "run_on", render: RunOnRenderer },
2648
- { match: "name", name: "sandboxes_list", render: MachineRenderer },
2649
- { match: "name", name: "sandbox_swap", render: MachineRenderer },
2650
- { match: "name", name: "computer_open", render: MachineRenderer },
2651
- { match: "name", name: "computer_observe", render: MachineRenderer },
2652
- { match: "name", name: "computer_act", render: MachineRenderer },
2653
- { match: "name", name: "write_stdin", render: WriteStdinRenderer },
2654
- { match: "name", name: "apply_patch_call", render: ApplyPatchRenderer },
2655
- { match: "name", name: "apply_patch", render: ApplyPatchRenderer },
2656
- { match: "name", name: "computer_call", render: ComputerCallRenderer },
2657
- {
2658
- match: "name",
2659
- name: "browser_screenshot",
2660
- render: BrowserScreenshotRenderer
2661
- },
2662
- { match: "name", name: "browser_observe", render: BrowserScreenshotRenderer },
2663
- { match: "name", name: "browser_act", render: BrowserScreenshotRenderer },
2664
- // Function-mode computer tools (codex / chat-wire transports).
2665
- { match: "name", name: "computer_screenshot", render: ComputerCallRenderer },
2666
- { match: "name", name: "computer_click", render: ComputerCallRenderer },
2667
- {
2668
- match: "name",
2669
- name: "computer_double_click",
2670
- render: ComputerCallRenderer
2671
- },
2672
- { match: "name", name: "computer_move", render: ComputerCallRenderer },
2673
- { match: "name", name: "computer_scroll", render: ComputerCallRenderer },
2674
- { match: "name", name: "computer_type", render: ComputerCallRenderer },
2675
- { match: "name", name: "computer_keypress", render: ComputerCallRenderer },
2676
- { match: "name", name: "computer_drag", render: ComputerCallRenderer },
2677
- { match: "name", name: "web_search_call", render: WebSearchRenderer },
2678
- {
2679
- match: "name",
2680
- name: "image_generation_call",
2681
- render: GeneratedImageRenderer
2682
- },
2683
- { match: "name", name: "generate_image", render: GeneratedImageRenderer },
2684
- { match: "name", name: "generate_video", render: GeneratedVideoRenderer },
2685
- { match: "name", name: "tool_search", render: ToolSearchRenderer },
2686
- { match: "name", name: "view_image", render: ViewImageRenderer },
2687
- {
2688
- match: "name",
2689
- name: "sandbox_file_publish",
2690
- render: SandboxFilePublishRenderer
2691
- },
2692
- {
2693
- match: "name",
2694
- name: "artifacts_create",
2695
- render: SiteArtifactRenderer,
2696
- matchPrefixedLeaf: false
2697
- },
2698
- {
2699
- match: "name",
2700
- name: "artifacts_publish",
2701
- render: SiteArtifactRenderer,
2702
- matchPrefixedLeaf: false
2703
- },
2704
- {
2705
- match: "name",
2706
- name: "opengeni__artifacts_create",
2707
- render: SiteArtifactRenderer,
2708
- matchPrefixedLeaf: false
2709
- },
2710
- {
2711
- match: "name",
2712
- name: "opengeni__artifacts_publish",
2713
- render: SiteArtifactRenderer,
2714
- matchPrefixedLeaf: false
2715
- },
2716
- {
2717
- match: "name",
2718
- name: "environment_set_variable",
2719
- render: SecretSetRenderer
2720
- },
2721
- {
2722
- match: "name",
2723
- name: "variable_set_set_variable",
2724
- render: SecretSetRenderer
2725
- },
2726
- { match: "name", name: "search_documents", render: DocsSearchRenderer },
2727
- { match: "name", name: "knowledge_search", render: DocsSearchRenderer },
2728
- { match: "name", name: "memory_propose", render: MemoryProposeRenderer },
2729
- { match: "name", name: "set_session_title", render: SetSessionTitleRenderer },
2730
- {
2731
- match: "name",
2732
- name: "set_other_session_title",
2733
- render: SetSessionTitleRenderer
2734
- }
2735
- ];
2736
- var PRESENTATION_RENDERERS = /* @__PURE__ */ new Map([
2737
- [ExecRenderer, "exec"],
2738
- [WriteStdinRenderer, "write_stdin"],
2739
- [ApplyPatchRenderer, "apply_patch"],
2740
- [GenericRenderer, "generic"],
2741
- [AppActionCallRenderer, "generic"]
2742
- ]);
2743
- function rendersToolOutputPreview(renderer, item) {
2744
- if (!item.outputPreview) return true;
2745
- return PRESENTATION_RENDERERS.get(renderer) === presentedToolKind(item) && presentsToolOutputPreview(item);
2746
- }
2747
- var defaultToolRegistry = createToolRegistry(BASE_ENTRIES, GenericRenderer);
2748
- function createDefaultToolRegistry(options = {}) {
2749
- return createToolRegistry(BASE_ENTRIES, GenericRenderer, options);
2750
- }
2751
-
2752
- // src/timeline/startup-preference.ts
2753
- import { useSyncExternalStore } from "react";
2754
- var KEY = "opengeni:startup-details:v1";
2755
- var EVENT = "opengeni:startup-details-changed";
2756
- var fallback = false;
2757
- function snapshot() {
2758
- try {
2759
- return window.localStorage.getItem(KEY) === "true";
2760
- } catch {
2761
- return fallback;
2762
- }
2763
- }
2764
- function subscribe(listener) {
2765
- window.addEventListener(EVENT, listener);
2766
- window.addEventListener("storage", listener);
2767
- return () => {
2768
- window.removeEventListener(EVENT, listener);
2769
- window.removeEventListener("storage", listener);
2770
- };
2771
- }
2772
- function setStartupDetails(value) {
2773
- fallback = value;
2774
- try {
2775
- window.localStorage.setItem(KEY, String(value));
2776
- } catch {
2777
- }
2778
- window.dispatchEvent(new Event(EVENT));
2779
- }
2780
- function useStartupDetails() {
2781
- return useSyncExternalStore(subscribe, snapshot, () => false);
2782
- }
2783
-
2784
- // src/timeline/agent-row.tsx
2785
- import { ArrowUpRightIcon, ChevronRightIcon as ChevronRightIcon2 } from "lucide-react";
2786
- import { useContext as useContext6, useState as useState7 } from "react";
2787
- import { Fragment as Fragment4, jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
2788
- function AgentRow({
2789
- icon,
2790
- title,
2791
- preview,
2792
- previewLines = 1,
2793
- meta,
2794
- sessionId,
2795
- onOpenSession,
2796
- running,
2797
- failed,
2798
- cancelled,
2799
- children
2800
- }) {
2801
- const t = useOpenGeniText();
2802
- const compact = useContext6(CompactActivityContext);
2803
- const forcedDefaultOpen = useForcedDefaultOpen();
2804
- const [open, setOpen] = useState7(forcedDefaultOpen ?? false);
2805
- if (compact) {
2806
- return /* @__PURE__ */ jsx8(
2807
- ActivityDisclosure,
2808
- {
2809
- icon,
2810
- title: title.text,
2811
- preview: preview ?? void 0,
2812
- running,
2813
- failed,
2814
- cancelled
2815
- }
2816
- );
2817
- }
2818
- const hasBody = children != null;
2819
- const canOpen = Boolean(sessionId && onOpenSession);
2820
- const openLabel = title.name ? t("timeline.agentRow.openName", { name: title.name }) : t("timeline.agentRow.openAgentSession");
2821
- const status = failed ? "failed" : cancelled ? "cancelled" : running ? "running" : void 0;
2822
- const inner = /* @__PURE__ */ jsxs5(Fragment4, { children: [
2823
- hasBody ? /* @__PURE__ */ jsx8(
2824
- ChevronRightIcon2,
2825
- {
2826
- "aria-hidden": true,
2827
- className: "mt-[3px] size-3.5 shrink-0 text-og-fg-subtle transition-transform duration-[var(--_og-duration-disclose)] ease-og-in-out group-data-[state=open]/agent:rotate-90"
2828
- }
2829
- ) : /* @__PURE__ */ jsx8("span", { className: "size-3.5 shrink-0", "aria-hidden": true }),
2830
- /* @__PURE__ */ jsx8(
2831
- "span",
2832
- {
2833
- "aria-hidden": true,
2834
- className: cn(
2835
- "mt-[3px] shrink-0 [&_svg]:size-3.5",
2836
- failed ? "text-og-status-failed" : "text-og-fg-subtle"
2837
- ),
2838
- children: icon
2839
- }
2840
- ),
2841
- /* @__PURE__ */ jsxs5("span", { className: "min-w-0 flex-1", children: [
2842
- /* @__PURE__ */ jsxs5("span", { className: "flex min-w-0 items-baseline gap-2", children: [
2843
- /* @__PURE__ */ jsx8(
2844
- ShimmerText,
2845
- {
2846
- active: Boolean(running),
2847
- className: cn(
2848
- "min-w-0 truncate text-og-base leading-5",
2849
- failed && "text-og-status-failed"
2850
- ),
2851
- children: title.name ? /* @__PURE__ */ jsxs5(Fragment4, { children: [
2852
- title.before ? /* @__PURE__ */ jsx8("span", { className: "text-og-fg-muted", children: title.before }) : null,
2853
- /* @__PURE__ */ jsx8("span", { className: cn("font-medium", failed ? void 0 : "text-og-fg"), children: title.name }),
2854
- title.after ? /* @__PURE__ */ jsx8("span", { className: "text-og-fg-muted", children: title.after }) : null
2855
- ] }) : /* @__PURE__ */ jsx8("span", { className: cn("font-medium", failed ? void 0 : "text-og-fg"), children: title.text })
2856
- }
2857
- ),
2858
- meta ? /* @__PURE__ */ jsx8("span", { className: "shrink-0 text-og-xs text-og-fg-subtle tabular-nums", children: meta }) : null
2859
- ] }),
2860
- preview && !open ? /* @__PURE__ */ jsx8(
2861
- "span",
2862
- {
2863
- "data-og-agent-preview": "",
2864
- className: cn(
2865
- "mt-0.5 block text-og-sm leading-5 text-og-fg-muted",
2866
- previewLines === 2 ? "line-clamp-2 break-words" : "truncate"
2867
- ),
2868
- children: preview
2869
- }
2870
- ) : null
2871
- ] }),
2872
- failed ? /* @__PURE__ */ jsxs5("span", { className: "inline-flex shrink-0 items-center gap-1.5 self-center font-og-mono text-og-xs leading-none text-og-status-failed", children: [
2873
- /* @__PURE__ */ jsx8("span", { className: "size-1.5 rounded-full bg-og-status-failed" }),
2874
- t("timeline.agentRow.failed")
2875
- ] }) : cancelled ? /* @__PURE__ */ jsx8("span", { className: "og-cancelled-chip shrink-0 self-center font-og-mono text-og-xs leading-none text-og-fg-subtle", children: t("timeline.agentRow.interrupted") }) : null,
2876
- canOpen && sessionId && onOpenSession ? /* @__PURE__ */ jsx8(
2877
- "button",
2878
- {
2879
- type: "button",
2880
- "aria-label": openLabel,
2881
- title: openLabel,
2882
- onClick: (event) => {
2883
- event.stopPropagation();
2884
- onOpenSession(sessionId);
2885
- },
2886
- onKeyDown: (event) => event.stopPropagation(),
2887
- className: cn(
2888
- "-my-0.5 inline-grid size-6 shrink-0 place-items-center rounded-og-sm text-og-fg-subtle",
2889
- "outline-hidden transition-colors duration-150 hover:bg-og-surface-2 hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent",
2890
- "pointer-coarse:size-10"
2891
- ),
2892
- children: /* @__PURE__ */ jsx8(ArrowUpRightIcon, { "aria-hidden": true, className: "size-3.5" })
2893
- }
2894
- ) : null
2895
- ] });
2896
- const rowClass = cn(
2897
- "group/agent flex w-full min-w-0 items-start gap-2 rounded-og-sm px-1.5 py-1.5 text-left",
2898
- "pointer-coarse:min-h-11 pointer-coarse:py-2.5"
2899
- );
2900
- if (!hasBody) {
2901
- return /* @__PURE__ */ jsx8("div", { "data-og-agent-row": "", "data-status": status, className: rowClass, children: inner });
2902
- }
2903
- return /* @__PURE__ */ jsxs5("div", { "data-og-agent-row": "", "data-status": status, children: [
2904
- /* @__PURE__ */ jsx8(
2905
- "div",
2906
- {
2907
- role: "button",
2908
- tabIndex: 0,
2909
- "aria-expanded": open,
2910
- "data-state": open ? "open" : "closed",
2911
- onClick: () => setOpen((previous) => !previous),
2912
- onKeyDown: (event) => {
2913
- if (event.key === "Enter" || event.key === " ") {
2914
- event.preventDefault();
2915
- setOpen((previous) => !previous);
2916
- }
2917
- },
2918
- className: cn(
2919
- rowClass,
2920
- "cursor-pointer outline-hidden transition-colors duration-150 hover:bg-og-surface-1",
2921
- "focus-visible:ring-2 focus-visible:ring-og-accent"
2922
- ),
2923
- children: inner
2924
- }
2925
- ),
2926
- open ? /* @__PURE__ */ jsx8("div", { className: "mb-2 ml-[2.125rem] mr-1.5 mt-0.5 flex flex-col gap-2 border-l border-og-border pl-4 text-og-sm leading-6 text-og-fg animate-og-expand", children }) : null
2927
- ] });
2928
- }
2929
- function AgentRowText({ children }) {
2930
- return /* @__PURE__ */ jsx8("p", { className: "whitespace-pre-wrap break-words", children });
2931
- }
2932
- function AgentRowSection({
2933
- label,
2934
- children,
2935
- muted
2936
- }) {
2937
- return /* @__PURE__ */ jsxs5("div", { className: "min-w-0", children: [
2938
- /* @__PURE__ */ jsx8("p", { className: "text-og-xs font-medium text-og-fg-subtle", children: label }),
2939
- /* @__PURE__ */ jsx8(
2940
- "p",
2941
- {
2942
- className: cn("whitespace-pre-wrap break-words", muted ? "text-og-fg-muted" : "text-og-fg"),
2943
- children
2944
- }
2945
- )
2946
- ] });
2947
- }
2948
-
2949
- // src/timeline/activity-rail.tsx
2950
- import { AnimatePresence, motion, useReducedMotion } from "motion/react";
2951
-
2952
- // src/timeline/genie-loading.tsx
2953
- import { ThinkingOrb } from "thinking-orbs";
2954
- import { createContext as createContext5, useContext as useContext7, useEffect as useEffect4, useState as useState8 } from "react";
2955
- import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
2956
- var GenieLoadingOptionsContext = createContext5(void 0);
2957
- var EMBEDDED_GENIE_LOADING = (t) => ({
2958
- phrases: [t("timeline.genieLoading.thinking")],
2959
- messages: { showDetails: t("timeline.genieLoading.showDetails") }
2960
- });
2961
- function GenieLoading({
2962
- startedAt,
2963
- phase = "preparing",
2964
- onShowDetails,
2965
- detailsOpen = false,
2966
- notice
2967
- }) {
2968
- const t = useOpenGeniText();
2969
- const options = useContext7(GenieLoadingOptionsContext);
2970
- const waiting = phase === "waiting";
2971
- const phrases = options?.phrases?.length ? options.phrases : waiting ? GENIE_WAITING_PHRASES(t) : GENIE_PREPARING_PHRASES(t);
2972
- const theme = useThemeType(void 0);
2973
- const [phrase, setPhrase] = useState8(0);
2974
- const [showDetails, setShowDetails] = useState8(false);
2975
- const [slow, setSlow] = useState8(false);
2976
- const phraseCount = phrases.length;
2977
- useEffect4(() => {
2978
- const update = () => {
2979
- setShowDetails(Date.now() - Date.parse(startedAt) >= 3e4);
2980
- setSlow(Date.now() - Date.parse(startedAt) >= 6e4);
2981
- if (!document.hidden) setPhrase(Math.floor(Math.random() * phraseCount));
2982
- };
2983
- update();
2984
- const timer = window.setInterval(update, 5e3);
2985
- return () => window.clearInterval(timer);
2986
- }, [startedAt, phraseCount]);
2987
- if (options?.render && !notice)
2988
- return options.render({ startedAt, phase, detailsOpen, onShowDetails });
2989
- return /* @__PURE__ */ jsxs6("div", { className: "og-genie-loading", children: [
2990
- /* @__PURE__ */ jsx9(
2991
- "div",
2992
- {
2993
- className: "og-genie-orb",
2994
- "aria-hidden": "true",
2995
- style: {
2996
- width: options?.orb?.size ?? 64,
2997
- height: options?.orb?.size ?? 64,
2998
- flexBasis: options?.orb?.size ?? 64
2999
- },
3000
- children: /* @__PURE__ */ jsx9(ThinkingOrb, { state: "searching", size: 64, theme, speed: 0.8, ...options?.orb })
3001
- }
3002
- ),
3003
- /* @__PURE__ */ jsxs6("div", { className: "og-genie-copy", children: [
3004
- /* @__PURE__ */ jsx9("span", { className: "sr-only", role: "status", children: notice ?? (slow ? options?.messages?.slowStatus ?? (waiting ? t("timeline.genieLoading.waitingForAResponseTaking") : t("timeline.genieLoading.preparingYourTaskTakingLonger")) : options?.messages?.status ?? (waiting ? t("timeline.genieLoading.waitingForAResponse") : t("timeline.genieLoading.preparingYourTask"))) }),
3005
- /* @__PURE__ */ jsx9(
3006
- "span",
3007
- {
3008
- className: "og-genie-phrase",
3009
- style: notice ? { animation: "none" } : void 0,
3010
- "aria-hidden": "true",
3011
- children: notice ?? (slow ? options?.messages?.slowText ?? (waiting ? t("timeline.genieLoading.stillWaitingForAResponse") : t("timeline.genieLoading.aLittleLongerThanUsual")) : phrases[phrase % phrases.length])
3012
- },
3013
- notice ?? (slow ? "slow" : phrase)
3014
- ),
3015
- showDetails || detailsOpen || notice ? /* @__PURE__ */ jsxs6(
3016
- "button",
3017
- {
3018
- type: "button",
3019
- className: "og-genie-details",
3020
- "aria-expanded": detailsOpen,
3021
- onClick: onShowDetails,
3022
- children: [
3023
- detailsOpen ? options?.messages?.hideDetails ?? t("timeline.genieLoading.hideDetails") : options?.messages?.showDetails ?? (waiting ? t("timeline.genieLoading.showDetails") : t("timeline.genieLoading.behindTheMagic")),
3024
- /* @__PURE__ */ jsx9("span", { "aria-hidden": "true", children: " \u2197" })
3025
- ]
3026
- }
3027
- ) : null
3028
- ] })
3029
- ] });
3030
- }
3031
-
3032
- // src/timeline/startup-dispatch-details.tsx
3033
- import { useEffect as useEffect5, useState as useState9 } from "react";
3034
- import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
3035
- function StartupDispatchDetails({ wait }) {
3036
- const t = useOpenGeniText();
3037
- const [now, setNow] = useState9(Date.now);
3038
- useEffect5(() => {
3039
- const timer = setInterval(() => setNow(Date.now()), 15e3);
3040
- return () => clearInterval(timer);
3041
- }, []);
3042
- const next = wait?.nextAttemptAt ? new Date(wait.nextAttemptAt) : null;
3043
- return /* @__PURE__ */ jsxs7("div", { className: "text-og-xs text-og-fg-muted", "data-og-startup-dispatch-details": "", children: [
3044
- /* @__PURE__ */ jsx10("p", { children: t("timeline.startupDispatchDetails.yourMessagesAreSavedNo") }),
3045
- /* @__PURE__ */ jsx10("p", { children: wait?.state === "pending" && next ? next.getTime() <= now ? t("timeline.startupDispatchDetails.automaticStartRetryIsDue") : t("timeline.startupDispatchDetails.automaticStartRetryAtLocaletimestring", {
3046
- localeTimeString: next.toLocaleTimeString(t.locale, {
3047
- hour: "2-digit",
3048
- minute: "2-digit"
3049
- })
3050
- }) : wait?.state === "acknowledged" ? t("timeline.startupDispatchDetails.theStartRequestWasAccepted") : t("timeline.startupDispatchDetails.startConfirmationIsUnavailable") }),
3051
- wait && wait.attempts > 0 ? /* @__PURE__ */ jsx10("p", { children: t("timeline.startupDispatchDetails.dispatchAttempts", { count: wait.attempts }) }) : null,
3052
- wait?.lastError ? /* @__PURE__ */ jsx10("p", { className: "max-h-32 overflow-y-auto whitespace-pre-wrap break-words", children: t("timeline.startupDispatchDetails.lastRecordedDispatchErrorLasterror", {
3053
- lastError: wait.lastError
3054
- }) }) : null
3055
- ] });
3056
- }
3057
-
3058
- // src/timeline/activity-rail.tsx
3059
- import {
3060
- ArrowRightIcon,
3061
- BotIcon as BotIcon2,
3062
- BrainCircuitIcon as BrainCircuitIcon4,
3063
- MessageSquareTextIcon,
3064
- SendIcon
3065
- } from "lucide-react";
3066
- import {
3067
- Component,
3068
- createContext as createContext7,
3069
- lazy as lazy2,
3070
- useContext as useContext9,
3071
- useEffect as useEffect6,
3072
- useLayoutEffect,
3073
- useRef as useRef2,
3074
- useState as useState10
3075
- } from "react";
3076
- import { jsx as rowJsx, jsxs as rowJsxs } from "react/jsx-runtime";
3077
-
3078
- // src/timeline/seen-activity-ids.ts
3079
- import { createContext as createContext6, useContext as useContext8 } from "react";
3080
- var SeenActivityIdsContext = createContext6(null);
3081
- var SeenActivityIdsProvider = SeenActivityIdsContext.Provider;
3082
- function useSeenActivityIds() {
3083
- return useContext8(SeenActivityIdsContext);
3084
- }
3085
-
3086
- // src/timeline/activity-rail.tsx
3087
- import { Fragment as Fragment5, jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
3088
- var LazyFleetDecisionRow = lazy2(() => import("./fleet-decision-row-LG3SYVR3.js"));
3089
- var LazyPlatformActivityRow = lazy2(() => import("./platform-activity-row-ZU4MEBNK.js"));
3090
- function familyOf(item) {
3091
- if (item.kind === "tool-call") {
3092
- return item.name === "exec_command" || item.name === "write_stdin" ? "terminal" : item.name;
3093
- }
3094
- return item.kind;
3095
- }
3096
- function ActivityRail({
3097
- items,
3098
- startupActive,
3099
- toolRegistry = defaultToolRegistry,
3100
- onOpenSession,
3101
- onMemoryClick,
3102
- loadRetainedScreenshot,
3103
- loadRetainedArtifact,
3104
- bare,
3105
- className
3106
- }) {
3107
- const msg = useOpenGeniText();
3108
- const debug = useStartupDetails();
3109
- const reducedMotion = useReducedMotion();
3110
- const [detailsOpen, setDetailsOpen] = useState10(false);
3111
- const phases = items.filter((item) => item.kind === "startup-phase");
3112
- const dispatch = phases.find((item) => item.dispatchWait !== void 0);
3113
- const hasWork = items.some(
3114
- (item) => item.kind !== "startup-phase" && (item.kind !== "reasoning" || item.text.trim().length > 0)
3115
- );
3116
- const interrupted = phases.some(
3117
- (item) => item.status === "failed" || item.status === "cancelled"
3118
- );
3119
- const providerResponded = phases.some(
3120
- (item) => item.phase === "provider_first_byte" && item.status === "complete"
3121
- );
3122
- const responsePending = phases.some((item) => item.phase === "provider_first_byte");
3123
- const loading = !hasWork && !interrupted && (startupActive ?? (!providerResponded && phases.some((item) => item.status === "running")));
3124
- const visibleItems = debug || detailsOpen ? items : items.filter(
3125
- (item) => item.kind === "startup-phase" ? item.status === "failed" || item.status === "cancelled" : item.kind !== "reasoning" || item.text.trim().length > 0
3126
- );
3127
- const startedAt = phases.reduce((first, item) => {
3128
- const start = item.loadingStartedAt ?? item.startedAt;
3129
- return start < first ? start : first;
3130
- }, phases[0]?.startedAt ?? "");
3131
- const enterMounted = useEntranceAnimation();
3132
- const enterLive = useEntranceAnimationLive();
3133
- const seenIds = useSeenActivityIds();
3134
- const enter = seenIds ? enterLive : enterMounted;
3135
- const previousIdsRef = useRef2(null);
3136
- const enteringIds = /* @__PURE__ */ new Set();
3137
- if (enter) {
3138
- for (const item of items) {
3139
- if (seenIds) {
3140
- if (!seenIds.has(item.id)) {
3141
- enteringIds.add(item.id);
3142
- }
3143
- } else if (previousIdsRef.current !== null && !previousIdsRef.current.has(item.id)) {
3144
- enteringIds.add(item.id);
3145
- }
3146
- }
3147
- }
3148
- useLayoutEffect(() => {
3149
- previousIdsRef.current = new Set(items.map((item) => item.id));
3150
- if (seenIds) {
3151
- for (const item of items) {
3152
- seenIds.add(item.id);
3153
- }
3154
- }
3155
- });
3156
- return /* @__PURE__ */ jsxs8(
3157
- "div",
3158
- {
3159
- className: cn(
3160
- // Rows sit TIGHT by default (gap-0.5) so a same-family run reads as one
3161
- // calm cluster; a family change opens real breathing room (mt-3) below,
3162
- // so a long rail reads as a few clusters, not a metronome of rows.
3163
- "relative flex flex-col gap-0.5",
3164
- !bare && "border-l-2 border-og-border pl-3 sm:pl-4",
3165
- // Whole-rail enter: standalone rails only (no seen-id map). Inside
3166
- // MessageTimeline, unknown ids take per-row enter — remounts stay quiet.
3167
- !bare && enter && !seenIds && previousIdsRef.current === null && "animate-og-enter",
3168
- className
3169
- ),
3170
- children: [
3171
- /* @__PURE__ */ jsx11(AnimatePresence, { initial: false, children: loading && !debug ? /* @__PURE__ */ jsx11(
3172
- motion.div,
3173
- {
3174
- initial: { opacity: 0 },
3175
- animate: { opacity: 1, height: "auto" },
3176
- exit: {
3177
- opacity: 0,
3178
- height: 0,
3179
- pointerEvents: "none"
3180
- },
3181
- transition: {
3182
- height: { duration: reducedMotion ? 0 : 0.32, ease: [0.22, 1, 0.36, 1] },
3183
- opacity: { duration: reducedMotion ? 0 : 0.16 }
3184
- },
3185
- style: { overflow: "hidden" },
3186
- children: /* @__PURE__ */ jsx11(
3187
- GenieLoading,
3188
- {
3189
- startedAt,
3190
- notice: dispatch?.dispatchWait?.lastError ? msg("timeline.activityRail.unableToStartYetYour") : void 0,
3191
- phase: responsePending ? "waiting" : "preparing",
3192
- detailsOpen,
3193
- onShowDetails: () => setDetailsOpen((open) => !open)
3194
- }
3195
- )
3196
- },
3197
- "startup"
3198
- ) : null }),
3199
- detailsOpen && !debug && !loading ? /* @__PURE__ */ jsx11(
3200
- "button",
3201
- {
3202
- type: "button",
3203
- className: "og-genie-details self-start",
3204
- onClick: () => setDetailsOpen(false),
3205
- children: msg("timeline.activityRail.hideStartupDetails")
3206
- }
3207
- ) : null,
3208
- dispatch && (detailsOpen || debug) ? /* @__PURE__ */ jsx11(StartupDispatchDetails, { wait: dispatch.dispatchWait ?? null }) : null,
3209
- visibleItems.map((item, index) => {
3210
- const newFamily = index > 0 && familyOf(item) !== familyOf(visibleItems[index - 1]);
3211
- const row = renderActivity(
3212
- msg,
3213
- item,
3214
- toolRegistry,
3215
- onOpenSession,
3216
- onMemoryClick,
3217
- loadRetainedScreenshot,
3218
- loadRetainedArtifact
3219
- );
3220
- return /* @__PURE__ */ jsx11(
3221
- "div",
3222
- {
3223
- "data-og-timeline-row-anchor": "",
3224
- "data-og-item": item.id,
3225
- "data-og-annotation-source-key": item.kind === "tool-call" ? item.annotationSource?.eventId : void 0,
3226
- className: cn(newFamily && "mt-3", enteringIds.has(item.id) && "animate-og-row-enter"),
3227
- children: row
3228
- },
3229
- item.id
3230
- );
3231
- })
3232
- ]
3233
- }
3234
- );
3235
- }
3236
- var ActivityNoteTextContext = createContext7(null);
3237
- function ActivityNoteRow({ item }) {
3238
- const renderText = useContext9(ActivityNoteTextContext);
3239
- if (!item.text.trim()) return null;
3240
- return /* @__PURE__ */ jsxs8("div", { className: "flex items-start gap-2 px-1.5 py-1.5", "data-og-activity-note": "", children: [
3241
- /* @__PURE__ */ jsx11("span", { className: "size-3.5 shrink-0", "aria-hidden": true }),
3242
- /* @__PURE__ */ jsx11(MessageSquareTextIcon, { "aria-hidden": true, className: "mt-1 size-3.5 shrink-0 text-og-fg-subtle" }),
3243
- /* @__PURE__ */ jsx11(
3244
- "div",
3245
- {
3246
- className: "min-w-0 flex-1 text-og-sm text-og-fg-muted",
3247
- "data-og-search-item": item.id,
3248
- "data-og-annotation-source-key": item.annotationSource?.eventId,
3249
- children: renderText ? renderText(item.text, item) : /* @__PURE__ */ jsx11(Markdown, { softLineBreaks: true, streaming: item.streaming, children: item.text })
3250
- }
3251
- )
3252
- ] });
3253
- }
3254
- function assertNever(item) {
3255
- throw new Error(`ActivityRail: unhandled activity item ${JSON.stringify(item)}`);
3256
- }
3257
- function renderActivity(msg, item, toolRegistry, onOpenSession, onMemoryClick, loadRetainedScreenshot, loadRetainedArtifact) {
3258
- switch (item.kind) {
3259
- case "reasoning":
3260
- case "sandbox":
3261
- case "startup-phase":
3262
- return /* @__PURE__ */ jsx11(LazyPart, { fallback: null, children: /* @__PURE__ */ jsx11(
3263
- LazyPlatformActivityRow,
3264
- {
3265
- item,
3266
- d: ActivityDisclosure,
3267
- p: PayloadBlock,
3268
- t: (name) => toolDisplayName(msg, name),
3269
- b: BotIcon2,
3270
- m: Markdown,
3271
- j: rowJsx,
3272
- s: rowJsxs
3273
- }
3274
- ) });
3275
- case "tool-call": {
3276
- const shown = invokedToolCall(redactToolCall(item));
3277
- const Renderer = toolRegistry.resolve(shown);
3278
- const outputPreview = item.outputPreview ?? null;
3279
- const exactFirst = outputPreview !== null && !rendersToolOutputPreview(Renderer, shown);
3280
- const Shown = exactFirst && (outputPreview.state === "error" || !outputPreview.load) ? toolRegistry.fallback : Renderer;
3281
- return /* @__PURE__ */ jsx11(ToolRowBoundary, { name: toolDisplayName(msg, shown.name), resetKeys: [item.status, Shown], children: /* @__PURE__ */ jsx11(ToolCallTruncationProvider, { value: item.truncation ?? null, children: /* @__PURE__ */ jsx11(ToolOutputPreviewProvider, { value: outputPreview, children: exactFirst && outputPreview.load && outputPreview.state !== "error" ? /* @__PURE__ */ jsx11(ToolOutputExactRow, { item: shown, preview: outputPreview }) : /* @__PURE__ */ jsx11(
3282
- Shown,
3283
- {
3284
- item: shown,
3285
- loadRetainedScreenshot,
3286
- loadRetainedArtifact
3287
- }
3288
- ) }) }) });
3289
- }
3290
- case "worker":
3291
- return /* @__PURE__ */ jsx11(WorkerRow, { item, onOpenSession });
3292
- case "knowledge":
3293
- return /* @__PURE__ */ jsx11(
3294
- KnowledgeReceiptRow,
3295
- {
3296
- outcome: item.outcome,
3297
- entryId: item.entryId,
3298
- fileId: item.fileId,
3299
- title: item.filename,
3300
- source: Boolean(item.fileId)
3301
- }
3302
- );
3303
- case "memory":
3304
- return /* @__PURE__ */ jsx11(MemoryRow, { item, onMemoryClick });
3305
- case "agent-message":
3306
- return /* @__PURE__ */ jsx11(ActivityNoteRow, { item });
3307
- case "fleet-decision":
3308
- return /* @__PURE__ */ jsx11(LazyPart, { fallback: null, children: /* @__PURE__ */ jsx11(
3309
- LazyFleetDecisionRow,
3310
- {
3311
- item,
3312
- d: ActivityDisclosure,
3313
- b: BodyNote,
3314
- j: rowJsx,
3315
- s: rowJsxs
3316
- }
3317
- ) });
3318
- default:
3319
- return assertNever(item);
3320
- }
3321
- }
3322
- function ToolOutputExactRow({
3323
- item,
3324
- preview
3325
- }) {
3326
- const msg = useOpenGeniText();
3327
- const pending = preview.state === "preview";
3328
- const load = preview.load;
3329
- useEffect6(() => {
3330
- if (pending) load?.();
3331
- }, [pending, load]);
3332
- return /* @__PURE__ */ jsx11("div", { "data-og-tool-output-loading": "", "aria-busy": "true", children: /* @__PURE__ */ jsx11(
3333
- ActivityDisclosure,
3334
- {
3335
- icon: /* @__PURE__ */ jsx11(ToolKindIcon, { kind: genericToolIconKind(item.name), className: "size-3.5" }),
3336
- title: toolDisplayName(msg, item.name, item.display),
3337
- preview: msg("timeline.toolRenderers.loadingOutput"),
3338
- expandable: false
3339
- }
3340
- ) });
3341
- }
3342
- var MEMORY_KIND_LABEL = (msg) => ({
3343
- preference: msg("timeline.activityRail.preference"),
3344
- semantic: msg("timeline.activityRail.fact"),
3345
- procedural: msg("timeline.activityRail.procedure"),
3346
- decision: msg("timeline.activityRail.decision"),
3347
- episodic: msg("timeline.activityRail.history")
3348
- });
3349
- function MemoryRow({
3350
- item,
3351
- onMemoryClick
3352
- }) {
3353
- const msg = useOpenGeniText();
3354
- const corrected = item.variant === "corrected";
3355
- const kindLabel = MEMORY_KIND_LABEL(msg)[item.memoryKind];
3356
- const superseded = corrected && Boolean(item.replacementPreview);
3357
- const targetId = corrected ? item.replacementMemoryId ?? item.memoryId : item.memoryId;
3358
- const deepLink = Boolean(onMemoryClick);
3359
- return /* @__PURE__ */ jsxs8(
3360
- ActivityDisclosure,
3361
- {
3362
- icon: /* @__PURE__ */ jsx11(BrainCircuitIcon4, { className: "size-3.5" }),
3363
- iconTone: "muted",
3364
- title: /* @__PURE__ */ jsxs8("span", { className: "inline-flex min-w-0 items-center gap-2", children: [
3365
- /* @__PURE__ */ jsx11("span", { className: "shrink-0", children: corrected ? msg("timeline.activityRail.updatedMemory") : msg("timeline.activityRail.savedToMemory") }),
3366
- kindLabel ? /* @__PURE__ */ jsx11("span", { className: "shrink-0 rounded-og-xs bg-og-surface-2 px-1.5 py-px text-og-xs font-normal leading-tight text-og-fg-subtle", children: kindLabel }) : null
3367
- ] }),
3368
- preview: superseded ? item.replacementPreview : item.preview,
3369
- children: [
3370
- superseded ? (
3371
- // The correction as a before → after: the old memory struck through and
3372
- // dimmed, the new text in the ordinary body weight below it.
3373
- /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1.5", children: [
3374
- /* @__PURE__ */ jsx11("p", { className: "whitespace-pre-wrap text-og-sm leading-6 text-og-fg-subtle line-through", children: item.preview }),
3375
- /* @__PURE__ */ jsx11("p", { className: "whitespace-pre-wrap text-og-base leading-6 text-og-fg-muted", children: item.replacementPreview })
3376
- ] })
3377
- ) : corrected && item.action === "updated" ? (
3378
- // Edited in place, no replacement record: the memory is still live, so
3379
- // show its current text — NOT the archived treatment.
3380
- /* @__PURE__ */ jsxs8(Fragment5, { children: [
3381
- /* @__PURE__ */ jsx11("p", { className: "whitespace-pre-wrap text-og-base leading-6 text-og-fg-muted", children: item.preview }),
3382
- /* @__PURE__ */ jsx11(BodyNote, { tone: "muted", children: msg("timeline.activityRail.updatedInPlace") })
3383
- ] })
3384
- ) : corrected ? (
3385
- // A correction with no replacement (and not an in-place update) archived the record.
3386
- /* @__PURE__ */ jsx11(BodyNote, { tone: "muted", children: msg("timeline.activityRail.archived") })
3387
- ) : /* @__PURE__ */ jsx11("p", { className: "whitespace-pre-wrap text-og-base leading-6 text-og-fg-muted", children: item.preview }),
3388
- item.deduped ? /* @__PURE__ */ jsx11(BodyNote, { tone: "muted", children: msg("timeline.activityRail.mergedIntoAnExistingMemory") }) : null,
3389
- deepLink ? /* @__PURE__ */ jsxs8(
3390
- "button",
3391
- {
3392
- type: "button",
3393
- onClick: () => onMemoryClick?.(targetId),
3394
- className: cn(
3395
- "group/memlink -mx-1 inline-flex w-fit items-center gap-1 rounded-og-sm px-1 py-0.5 text-left text-og-sm text-og-fg-subtle",
3396
- "outline-hidden transition-colors duration-150 hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent"
3397
- ),
3398
- children: [
3399
- msg("timeline.activityRail.viewInMemory"),
3400
- /* @__PURE__ */ jsx11(ArrowRightIcon, { className: "size-3.5 transition-transform duration-150 group-hover/memlink:translate-x-0.5" })
3401
- ]
3402
- }
3403
- ) : null
3404
- ]
3405
- }
3406
- );
3407
- }
3408
- function WorkerRow({
3409
- item,
3410
- onOpenSession
3411
- }) {
3412
- const msg = useOpenGeniText();
3413
- const identity = useAgentIdentity();
3414
- const running = item.status === "running";
3415
- const failed = item.status === "failed";
3416
- const cancelled = item.status === "cancelled";
3417
- const sessionId = item.workerSessionId;
3418
- const name = identity.titleFor(sessionId) ?? (item.action === "spawn" ? item.title : null);
3419
- const title = workerRowTitleParts(msg, item, name);
3420
- const prompt = item.prompt?.trim() ? item.prompt.trim() : null;
3421
- const failure = failed ? item.failure : null;
3422
- const hasBody = Boolean(prompt) || Boolean(failure);
3423
- return /* @__PURE__ */ jsx11(
3424
- AgentRow,
3425
- {
3426
- icon: item.action === "spawn" ? /* @__PURE__ */ jsx11(BotIcon2, {}) : /* @__PURE__ */ jsx11(SendIcon, {}),
3427
- title,
3428
- preview: failure ? failure.message : prompt ? truncate(prompt.replace(/\s+/g, " "), 240) : null,
3429
- sessionId: cancelled ? null : sessionId,
3430
- onOpenSession: onOpenSession ?? identity.onOpenSession,
3431
- running,
3432
- failed,
3433
- cancelled,
3434
- children: hasBody ? /* @__PURE__ */ jsxs8(Fragment5, { children: [
3435
- prompt ? /* @__PURE__ */ jsx11(
3436
- AgentRowSection,
3437
- {
3438
- label: item.action === "spawn" ? msg("timeline.activityRail.brief") : msg("timeline.activityRail.message"),
3439
- children: prompt
3440
- }
3441
- ) : null,
3442
- failure ? /* @__PURE__ */ jsx11(AgentRowSection, { label: failure.code, muted: true, children: failure.message }) : null
3443
- ] }) : void 0
3444
- }
3445
- );
3446
- }
3447
- function ToolRowRenderError({ name }) {
3448
- const t = useOpenGeniText();
3449
- return /* @__PURE__ */ jsx11(
3450
- "div",
3451
- {
3452
- "data-testid": "tool-row-render-error",
3453
- role: "status",
3454
- className: "px-1.5 py-1.5 text-og-menu text-og-fg-subtle",
3455
- children: t("timeline.activityRail.nameCouldNotBeDisplayed", { name })
3456
- }
3457
- );
3458
- }
3459
- var ToolRowBoundary = class extends Component {
3460
- state = { failed: false, notLoaded: false, resetKeys: this.props.resetKeys };
3461
- static getDerivedStateFromError(error) {
3462
- return { failed: true, notLoaded: isChunkLoadError(error) };
3463
- }
3464
- /** A new status or renderer for the row gets a fresh attempt. */
3465
- static getDerivedStateFromProps(props, state) {
3466
- const same = props.resetKeys.length === state.resetKeys.length && props.resetKeys.every((key, index) => Object.is(key, state.resetKeys[index]));
3467
- return same ? null : { failed: false, notLoaded: false, resetKeys: props.resetKeys };
3468
- }
3469
- render() {
3470
- if (!this.state.failed) return this.props.children;
3471
- return this.state.notLoaded ? /* @__PURE__ */ jsx11(LoadFailureNotice, {}) : /* @__PURE__ */ jsx11(ToolRowRenderError, { name: this.props.name });
3472
- }
3473
- };
3474
-
3475
- // src/timeline/turn-summary.tsx
3476
- import { ChevronRightIcon as ChevronRightIcon3, CircleSlashIcon as CircleSlashIcon2, ShrinkIcon, TriangleAlertIcon } from "lucide-react";
3477
- import {
3478
- Component as Component2,
3479
- createContext as createContext9,
3480
- useContext as useContext11,
3481
- useEffect as useEffect7,
3482
- useLayoutEffect as useLayoutEffect2,
3483
- useMemo as useMemo4,
3484
- useRef as useRef3,
3485
- useState as useState11
3486
- } from "react";
3487
- import { Collapsible } from "radix-ui";
3488
-
3489
- // src/timeline/fold-memory.ts
3490
- import { createContext as createContext8, useContext as useContext10 } from "react";
3491
- var FoldMemoryContext = createContext8(null);
3492
- var FoldMemoryProvider = FoldMemoryContext.Provider;
3493
- function useFoldMemory() {
3494
- return useContext10(FoldMemoryContext);
3495
- }
3496
- function inheritFoldRestingState(memory, targetKey, sourceKeys) {
3497
- if (memory.has(targetKey) || sourceKeys.length !== 1) {
3498
- return;
3499
- }
3500
- const state = memory.get(sourceKeys[0]);
3501
- if (state !== void 0) {
3502
- memory.set(targetKey, state);
3503
- }
3504
- }
3505
-
3506
- // src/timeline/turn-summary.tsx
3507
- import { Fragment as Fragment6, jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
3508
- var TurnSettleChromeContext = createContext9(false);
3509
- function useTurnSettleOpen() {
3510
- return useContext11(TurnSettleChromeContext);
3511
- }
3512
- var SETTLE_FOLD_BEAT_MS = 1100 * MOTION_INSPECT_SCALE;
3513
- var SETTLE_COLLAPSE_MS = 820 * MOTION_INSPECT_SCALE;
3514
- var DISCLOSE_MS = 120 * MOTION_INSPECT_SCALE;
3515
- function TurnSummary({
3516
- items,
3517
- outcome,
3518
- failureText,
3519
- failureDetail,
3520
- durationMs,
3521
- defaultOpen,
3522
- liveHeader,
3523
- bare,
3524
- facets: facetConfiguration,
3525
- settleFold,
3526
- foldKey,
3527
- copyText,
3528
- contextCompactionCount,
3529
- status,
3530
- renderLiveMark,
3531
- expandable = true,
3532
- unloadedSteps,
3533
- onOpenStateChange,
3534
- children
3535
- }) {
3536
- const t = useOpenGeniText();
3537
- const forcedDefaultOpen = useForcedDefaultOpen();
3538
- const searchReveal = useTimelineSearchReveal();
3539
- const foldMemory = useFoldMemory();
3540
- const remembered = foldKey !== void 0 ? foldMemory?.get(foldKey) : void 0;
3541
- const restingOpen = remembered === "closed" ? false : remembered === "open" ? true : defaultOpen ?? forcedDefaultOpen ?? false;
3542
- const initialSettle = Boolean(settleFold) && !restingOpen && remembered === void 0;
3543
- const [settling, setSettling] = useState11(initialSettle);
3544
- const [openState, setOpen] = useState11(initialSettle ? true : restingOpen);
3545
- const open = expandable && openState;
3546
- const reportOpen = useRef3(onOpenStateChange);
3547
- reportOpen.current = onOpenStateChange;
3548
- useLayoutEffect2(() => {
3549
- reportOpen.current?.(open);
3550
- }, [open]);
3551
- const readerOwnsOpen = useRef3(remembered !== void 0);
3552
- useEffect7(() => {
3553
- if (status && defaultOpen && remembered === void 0 && !readerOwnsOpen.current) setOpen(true);
3554
- }, [status, defaultOpen, remembered]);
3555
- const [settlePhase, setSettlePhase] = useState11(initialSettle);
3556
- const [nestSuppressLatch, setNestSuppressLatch] = useState11(initialSettle);
3557
- const [expandReady, setExpandReady] = useState11(!initialSettle);
3558
- const settleTimerRef = useRef3(null);
3559
- const settleCloseDoneRef = useRef3(null);
3560
- const nestLatchClearRef = useRef3(null);
3561
- const settleFoldSeenRef = useRef3(Boolean(settleFold));
3562
- const settleArmedRef = useRef3(false);
3563
- const clearNestLatchTimer = () => {
3564
- if (nestLatchClearRef.current !== null) {
3565
- clearTimeout(nestLatchClearRef.current);
3566
- nestLatchClearRef.current = null;
3567
- }
3568
- };
3569
- const clearSettleTimers = () => {
3570
- if (settleTimerRef.current !== null) {
3571
- clearTimeout(settleTimerRef.current);
3572
- settleTimerRef.current = null;
3573
- }
3574
- if (settleCloseDoneRef.current !== null) {
3575
- clearTimeout(settleCloseDoneRef.current);
3576
- settleCloseDoneRef.current = null;
3577
- }
3578
- clearNestLatchTimer();
3579
- };
3580
- const rememberResting = (state) => {
3581
- if (foldKey !== void 0 && foldMemory) {
3582
- foldMemory.set(foldKey, state);
3583
- }
3584
- };
3585
- const armSettleCollapse = () => {
3586
- if (settleArmedRef.current) {
3587
- return;
3588
- }
3589
- settleArmedRef.current = true;
3590
- setSettling(true);
3591
- setSettlePhase(true);
3592
- setNestSuppressLatch(true);
3593
- setExpandReady(false);
3594
- setOpen(true);
3595
- clearSettleTimers();
3596
- settleTimerRef.current = setTimeout(() => {
3597
- settleTimerRef.current = null;
3598
- setExpandReady(true);
3599
- setOpen(false);
3600
- rememberResting("closed");
3601
- settleCloseDoneRef.current = setTimeout(() => {
3602
- settleCloseDoneRef.current = null;
3603
- settleArmedRef.current = false;
3604
- setSettlePhase(false);
3605
- setSettling(false);
3606
- setNestSuppressLatch(false);
3607
- }, SETTLE_COLLAPSE_MS);
3608
- }, SETTLE_FOLD_BEAT_MS);
3609
- };
3610
- const mountSettleRef = useRef3(initialSettle);
3611
- useEffect7(() => {
3612
- if (mountSettleRef.current) {
3613
- armSettleCollapse();
3614
- }
3615
- return () => {
3616
- clearSettleTimers();
3617
- settleArmedRef.current = false;
3618
- };
3619
- }, []);
3620
- useEffect7(() => {
3621
- const was = settleFoldSeenRef.current;
3622
- settleFoldSeenRef.current = Boolean(settleFold);
3623
- if (!was && settleFold) {
3624
- if (foldKey !== void 0 && foldMemory?.get(foldKey) !== void 0) {
3625
- return;
3626
- }
3627
- armSettleCollapse();
3628
- }
3629
- }, [settleFold]);
3630
- useEffect7(() => {
3631
- if (!searchReveal) return;
3632
- clearSettleTimers();
3633
- settleArmedRef.current = false;
3634
- setSettling(false);
3635
- setSettlePhase(false);
3636
- setNestSuppressLatch(false);
3637
- setOpen(true);
3638
- rememberResting("open");
3639
- }, [searchReveal]);
3640
- const onOpenChange = (next) => {
3641
- readerOwnsOpen.current = true;
3642
- const wasNestFlat = settling || settlePhase || nestSuppressLatch;
3643
- clearSettleTimers();
3644
- settleArmedRef.current = false;
3645
- rememberResting(next ? "open" : "closed");
3646
- setExpandReady(true);
3647
- setSettlePhase(false);
3648
- setSettling(false);
3649
- if (next) {
3650
- setNestSuppressLatch(false);
3651
- setOpen(true);
3652
- return;
3653
- }
3654
- setOpen(false);
3655
- if (wasNestFlat) {
3656
- setNestSuppressLatch(true);
3657
- nestLatchClearRef.current = setTimeout(() => {
3658
- nestLatchClearRef.current = null;
3659
- setNestSuppressLatch(false);
3660
- }, DISCLOSE_MS);
3661
- } else {
3662
- setNestSuppressLatch(false);
3663
- }
3664
- };
3665
- const enter = useEntranceAnimation();
3666
- const [allowEnterAnimation] = useState11(
3667
- () => Boolean(enter && !bare && !initialSettle && !restingOpen)
3668
- );
3669
- const context = useMemo4(
3670
- () => createTurnSummaryContext(
3671
- t,
3672
- items,
3673
- outcome,
3674
- failureText,
3675
- settling || settlePhase ? void 0 : durationMs,
3676
- contextCompactionCount ?? 0,
3677
- unloadedSteps ?? false
3678
- ),
3679
- [
3680
- items,
3681
- outcome,
3682
- failureText,
3683
- durationMs,
3684
- settling,
3685
- settlePhase,
3686
- contextCompactionCount,
3687
- unloadedSteps,
3688
- t
3689
- ]
3690
- );
3691
- const facetDefinitions = useMemo4(
3692
- () => resolveTurnSummaryFacets(facetConfiguration),
3693
- [facetConfiguration]
3694
- );
3695
- const statusKind = status?.kind;
3696
- const facets = useMemo4(
3697
- () => selectTurnSummaryFacets(facetDefinitions, context, statusKind),
3698
- [context, facetDefinitions, statusKind]
3699
- );
3700
- const failure = outcome === "failed" ? failureText?.trim() || null : null;
3701
- const failedQuietly = outcome === "failed" && !failure && !bare;
3702
- const liveShell = outcome === void 0 && open && !settlePhase && !bare;
3703
- const settleChrome = settling || settlePhase || nestSuppressLatch;
3704
- const statusLine = status ? turnSummaryStatusLine(t, status) : null;
3705
- const liveMarkState = renderLiveMark ? turnSummaryLiveMarkState(status) : null;
3706
- const copyable = Boolean(
3707
- copyText && copyText.trim().length > 0 && !bare && !liveShell && !open && !settlePhase
3708
- );
3709
- const headerClassName = cn(
3710
- // The section, not the viewport, bounds this sticky row. Content
3711
- // is a sibling: its disclosure overflow never traps the header.
3712
- // Nested rail folds must never stack additional sticky headers.
3713
- !bare && open && "sticky top-[var(--og-work-header-top,0px)] z-10 bg-og-bg",
3714
- settling && expandable && "animate-og-settle-chip",
3715
- // Top-level turn fold and (when used) nested cluster folds render as
3716
- // FLAT rail rows — chevron + glyph + facets on the page background, no
3717
- // border, no fill. Only a hover tint hints the row is expandable, so a
3718
- // collapsed turn never reads as a boxed card. The top-level row is a
3719
- // touch larger (base text, size-5 glyph, wider gap) so it still reads
3720
- // as a turn landmark above any nested cluster rows it groups.
3721
- "group flex w-full items-center rounded-og-sm text-left transition-colors",
3722
- // A folded turn is a touch target on coarse pointers: grow the row so it
3723
- // clears the 44px minimum without disturbing the calm desktop rhythm.
3724
- expandable && "pointer-coarse:min-h-11 pointer-coarse:py-2.5",
3725
- bare ? "gap-2 px-1.5 py-1.5 text-og-sm text-og-fg-muted" : "-mx-2 gap-2.5 px-2 py-1.5 text-og-base text-og-fg-muted",
3726
- // A failed fold keeps its red accent (glyph + inline reason below) and a
3727
- // faint red hover wash so attention still lands there; every other
3728
- // outcome gets the neutral surface hover. A row with nothing to reveal
3729
- // is not a control and gets no hover.
3730
- !expandable ? void 0 : outcome === "failed" ? "hover:bg-og-status-failed/[0.06] hover:text-og-fg" : "hover:bg-og-surface-1 hover:text-og-fg",
3731
- liveShell && "text-og-fg-subtle",
3732
- // Phones hide the hint, so keep the copy control clear of the separator.
3733
- status && copyable && "max-sm:pr-10"
3734
- );
3735
- const headerContent = /* @__PURE__ */ jsxs9(Fragment6, { children: [
3736
- expandable ? /* @__PURE__ */ jsx12(
3737
- ChevronRightIcon3,
3738
- {
3739
- className: cn(
3740
- "size-3.5 shrink-0 text-og-fg-subtle transition-transform ease-og-in-out group-data-[state=open]:rotate-90",
3741
- settlePhase ? "duration-[var(--_og-duration-disclose-settle)]" : "duration-[var(--_og-duration-disclose)]"
3742
- )
3743
- }
3744
- ) : /* @__PURE__ */ jsx12("span", { "aria-hidden": true, className: "size-3.5 shrink-0" }),
3745
- renderLiveMark && liveMarkState ? /* @__PURE__ */ jsx12(
3746
- "span",
3747
- {
3748
- "aria-hidden": true,
3749
- "data-og-live-mark": liveMarkState.kind,
3750
- className: "inline-flex h-5 shrink-0 items-center",
3751
- children: renderLiveMark(liveMarkState)
3752
- }
3753
- ) : null,
3754
- status || outcome === "complete" || !outcome && (liveHeader || context.settled) ? null : /* @__PURE__ */ jsx12(
3755
- "span",
3756
- {
3757
- className: cn(
3758
- "inline-flex shrink-0 items-center justify-center",
3759
- bare ? "size-3.5" : "size-5",
3760
- outcome === "failed" ? "text-og-status-failed" : "text-og-fg-subtle"
3761
- ),
3762
- children: outcome === "failed" ? /* @__PURE__ */ jsx12(TriangleAlertIcon, { className: "size-3" }) : outcome === "cancelled" ? /* @__PURE__ */ jsx12(CircleSlashIcon2, { className: "size-3" }) : /* @__PURE__ */ jsx12("span", { className: "size-1.5 animate-og-pulse rounded-full bg-og-fg-subtle" })
3763
- }
3764
- ),
3765
- /* @__PURE__ */ jsxs9(
3766
- "span",
3767
- {
3768
- className: cn(
3769
- "min-w-0 truncate",
3770
- status?.kind === "worked" ? "shrink" : "flex-1",
3771
- bare ? "text-og-sm" : "text-og-fg-muted"
3772
- ),
3773
- children: [
3774
- statusLine,
3775
- liveHeader && !open && !status ? liveHeader : !statusLine && facets.length === 0 && !failure && !failedQuietly && outcome !== "cancelled" ? turnSummaryFallbackLabel(t, context.items, unloadedSteps) : facets.map(({ facet, result }, index) => /* @__PURE__ */ jsx12(FacetRenderBoundary, { children: /* @__PURE__ */ jsxs9(Fragment6, { children: [
3776
- index > 0 || statusLine ? " \xB7 " : null,
3777
- /* @__PURE__ */ jsxs9("span", { "aria-label": result.ariaLabel, title: result.title, children: [
3778
- result.icon ? /* @__PURE__ */ jsx12("span", { "aria-hidden": true, className: "mr-1 inline-flex align-[-0.125em]", children: result.icon }) : null,
3779
- result.content
3780
- ] })
3781
- ] }) }, facet.id)),
3782
- failure ? /* @__PURE__ */ jsxs9("span", { className: "text-og-status-failed", title: failureDetail, children: [
3783
- " ",
3784
- "\xB7 ",
3785
- failure
3786
- ] }) : null,
3787
- failedQuietly ? /* @__PURE__ */ jsxs9("span", { className: "text-og-status-failed", children: [
3788
- statusLine || facets.length > 0 ? " \xB7 " : null,
3789
- t("timeline.turnSummary.failed")
3790
- ] }) : null,
3791
- outcome === "cancelled" ? /* @__PURE__ */ jsxs9("span", { className: "text-og-fg-subtle", children: [
3792
- " ",
3793
- t("timeline.turnSummary.interrupted")
3794
- ] }) : null
3795
- ]
3796
- }
3797
- ),
3798
- status?.kind === "worked" ? /* @__PURE__ */ jsx12("span", { "aria-hidden": true, className: "ml-1 h-px min-w-0 flex-1 bg-og-border" }) : null,
3799
- status && status.kind !== "worked" && (contextCompactionCount ?? 0) > 0 ? /* @__PURE__ */ jsx12(
3800
- ShrinkIcon,
3801
- {
3802
- className: "size-3.5 shrink-0",
3803
- "aria-label": t("timeline.turnSummary.contextCompactedExpandForDetails")
3804
- }
3805
- ) : null
3806
- ] });
3807
- return /* @__PURE__ */ jsx12(TurnSettleChromeContext.Provider, { value: settleChrome, children: /* @__PURE__ */ jsxs9("div", { className: cn(copyable && "group/copy relative"), children: [
3808
- /* @__PURE__ */ jsxs9(
3809
- Collapsible.Root,
3810
- {
3811
- "data-og-work-section": bare ? void 0 : "",
3812
- open,
3813
- onOpenChange,
3814
- className: allowEnterAnimation && !liveShell ? "animate-og-enter" : void 0,
3815
- children: [
3816
- expandable ? /* @__PURE__ */ jsx12(
3817
- Collapsible.Trigger,
3818
- {
3819
- "data-og-work-header": bare ? "nested" : "outer",
3820
- className: headerClassName,
3821
- children: headerContent
3822
- }
3823
- ) : (
3824
- // Nothing to reveal: a plain status row, not a disclosure control.
3825
- /* @__PURE__ */ jsx12("div", { "data-og-work-header": bare ? "nested" : "outer", className: headerClassName, children: headerContent })
3826
- ),
3827
- status?.guidance ? (
3828
- // Guidance the reader needs stays visible in both fold states.
3829
- /* @__PURE__ */ jsx12("div", { "data-og-exchange-guidance": "", className: "min-w-0 pb-1 pl-6", children: status.guidance })
3830
- ) : null,
3831
- status && !open && status.preview ? (
3832
- // Readable progress under the status line; the line above stays
3833
- // the one disclosure control, so a click here is a mouse shortcut.
3834
- /* @__PURE__ */ jsx12(
3835
- "div",
3836
- {
3837
- "data-og-exchange-preview": "",
3838
- className: cn(
3839
- "flex min-w-0 flex-col gap-0.5 pb-1 pl-6",
3840
- expandable && "cursor-pointer"
3841
- ),
3842
- onClick: expandable ? () => onOpenChange(true) : void 0,
3843
- children: status.preview ? /* @__PURE__ */ jsx12("div", { className: "min-w-0", children: status.preview }) : null
3844
- }
3845
- )
3846
- ) : null,
3847
- expandable ? /* @__PURE__ */ jsx12(
3848
- Collapsible.Content,
3849
- {
3850
- ...nestSuppressLatch ? { forceMount: true } : {},
3851
- "data-og-fold-content": "",
3852
- className: cn(
3853
- "overflow-hidden",
3854
- expandReady && "data-[state=open]:animate-og-expand",
3855
- // Auto-close: slow settle. Manual close (settlePhase cleared): fast.
3856
- settlePhase ? "data-[state=closed]:animate-og-settle-collapse" : "data-[state=closed]:animate-og-collapse"
3857
- ),
3858
- children: /* @__PURE__ */ jsx12("div", { className: bare ? "pt-1 pl-5" : "pt-2", children })
3859
- }
3860
- ) : null
3861
- ]
3862
- }
3863
- ),
3864
- copyable ? /* @__PURE__ */ jsx12("div", { className: "pointer-events-none absolute top-1.5 right-0 z-10", children: /* @__PURE__ */ jsx12("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx12(
3865
- CopyButton,
3866
- {
3867
- text: copyText,
3868
- label: t("timeline.turnSummary.copyTurn"),
3869
- reveal: "group-hover"
3870
- }
3871
- ) }) }) : null
3872
- ] }) });
3873
- }
3874
- function turnSummaryStatusLine(t, status) {
3875
- if (status.kind === "worked") {
3876
- return status.durationMs !== void 0 && Number.isFinite(status.durationMs) && status.durationMs >= 1e3 ? /* @__PURE__ */ jsxs9("span", { "data-og-exchange-status": "worked", children: [
3877
- status.label ?? t("timeline.turnSummary.workedFor"),
3878
- " ",
3879
- formatElapsed(t, status.durationMs)
3880
- ] }) : null;
3881
- }
3882
- if (status.kind === "paused") {
3883
- return /* @__PURE__ */ jsxs9("span", { "data-og-exchange-status": "paused", children: [
3884
- status.label ?? t("timeline.turnSummary.paused"),
3885
- status.durationMs !== void 0 && Number.isFinite(status.durationMs) && status.durationMs >= 1e3 ? /* @__PURE__ */ jsx12("span", { className: "tabular-nums", children: ` \xB7 ${formatElapsed(t, status.durationMs)}` }) : null
3886
- ] });
3887
- }
3888
- const label = status.label ?? (status.kind === "working" ? t("timeline.turnSummary.working") : t("timeline.turnSummary.waiting"));
3889
- return /* @__PURE__ */ jsxs9("span", { "data-og-exchange-status": status.kind, children: [
3890
- status.kind === "working" ? /* @__PURE__ */ jsx12(ShimmerText, { children: label }) : /* @__PURE__ */ jsx12("span", { children: label }),
3891
- status.since ? /* @__PURE__ */ jsx12(LiveElapsed, { since: status.since }) : null
3892
- ] });
3893
- }
3894
- function LiveElapsed({ since }) {
3895
- const t = useOpenGeniText();
3896
- const startedAt = Date.parse(since);
3897
- const [now, setNow] = useState11(() => Date.now());
3898
- useEffect7(() => {
3899
- const timer = setInterval(() => setNow(Date.now()), 1e3);
3900
- return () => clearInterval(timer);
3901
- }, []);
3902
- if (!Number.isFinite(startedAt)) return null;
3903
- return /* @__PURE__ */ jsx12("span", { className: "tabular-nums", children: ` \xB7 ${formatElapsed(t, Math.max(0, now - startedAt))}` });
3904
- }
3905
- var FacetRenderBoundary = class extends Component2 {
3906
- state = { failed: false, notLoaded: false };
3907
- static getDerivedStateFromError(error) {
3908
- return { failed: true, notLoaded: isChunkLoadError(error) };
3909
- }
3910
- render() {
3911
- if (!this.state.failed) return this.props.children;
3912
- return this.state.notLoaded ? /* @__PURE__ */ jsx12(LoadFailureNotice, {}) : null;
3913
- }
3914
- };
3915
-
3916
- // src/timeline/learning-refusal-row.tsx
3917
- import { BrainCircuitIcon as BrainCircuitIcon5 } from "lucide-react";
3918
- import { createContext as createContext10, useContext as useContext12 } from "react";
3919
- import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
3920
- var LearningRefusalActionsContext = createContext10({});
3921
- function LearningRefusalActionsProvider({
3922
- children,
3923
- ...actions
3924
- }) {
3925
- return /* @__PURE__ */ jsx13(LearningRefusalActionsContext.Provider, { value: actions, children });
3926
- }
3927
- function LearningRefusalRow({ refusal }) {
3928
- const t = useOpenGeniText();
3929
- const enter = useEntranceAnimation();
3930
- const { onOpen } = useContext12(LearningRefusalActionsContext);
3931
- const place = learningRefusalPlace(refusal);
3932
- return /* @__PURE__ */ jsxs10(
3933
- "div",
3934
- {
3935
- className: cn(
3936
- enter && "animate-og-enter",
3937
- "flex items-start gap-2.5 rounded-og-md border border-og-status-waiting/35 bg-og-status-waiting/8 px-3.5 py-2.5 text-og-menu text-og-fg"
3938
- ),
3939
- role: "status",
3940
- "data-og-learning-refusal": refusal.reason,
3941
- children: [
3942
- /* @__PURE__ */ jsx13(BrainCircuitIcon5, { "aria-hidden": true, className: "mt-0.5 size-4 shrink-0 text-og-status-waiting" }),
3943
- /* @__PURE__ */ jsxs10("div", { className: "min-w-0 flex-1", children: [
3944
- /* @__PURE__ */ jsx13("p", { className: "font-medium", children: learningRefusalTitle(t, refusal) }),
3945
- /* @__PURE__ */ jsx13("p", { className: "mt-0.5 text-og-fg-muted", children: learningRefusalBody(t, refusal) }),
3946
- place && onOpen ? /* @__PURE__ */ jsx13(
3947
- "button",
3948
- {
3949
- type: "button",
3950
- className: "mt-1.5 -ml-1 rounded-og-sm px-1 py-0.5 font-medium text-og-fg underline-offset-2 hover:underline focus-visible:outline-2 focus-visible:outline-og-accent",
3951
- onClick: () => onOpen(place),
3952
- children: learningRefusalPlaceLabel(t, place)
3953
- }
3954
- ) : null
3955
- ] })
3956
- ]
3957
- }
3958
- );
3959
- }
3960
-
3961
- export {
3962
- UNRECOVERABLE_TEXT,
3963
- ToolReviewFrame,
3964
- DeclineButton,
3965
- ToolActionReviewCard,
3966
- ToolActionReviewDetails,
3967
- createWorkspaceRetainedArtifactLoader,
3968
- createSessionRetainedScreenshotLoader,
3969
- createWorkspaceRetainedVideoLoader,
3970
- ToolReviewHistoryProvider,
3971
- KnowledgeActivityProvider,
3972
- TimelineComputeLabelProvider,
3973
- ProviderLogoProvider,
3974
- ToolKindIcon,
3975
- defaultToolRegistry,
3976
- createDefaultToolRegistry,
3977
- AgentRow,
3978
- AgentRowText,
3979
- AgentRowSection,
3980
- GenieLoadingOptionsContext,
3981
- EMBEDDED_GENIE_LOADING,
3982
- setStartupDetails,
3983
- useStartupDetails,
3984
- SeenActivityIdsProvider,
3985
- ActivityRail,
3986
- ActivityNoteTextContext,
3987
- renderActivity,
3988
- FoldMemoryProvider,
3989
- useFoldMemory,
3990
- inheritFoldRestingState,
3991
- useTurnSettleOpen,
3992
- TurnSummary,
3993
- LearningRefusalActionsProvider,
3994
- LearningRefusalRow
3995
- };
3996
- //# sourceMappingURL=chunk-FZI4QOAV.js.map