@opengeni/react 6.35.1-canary.45058281793001 → 6.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1124) hide show
  1. package/dist/app/app-state.js +34 -34
  2. package/dist/app/components/Composer.js +43 -43
  3. package/dist/app/components/add-card-dialog.js +1 -1
  4. package/dist/app/components/add-card.js +2 -2
  5. package/dist/app/components/agent/agent-capability-picker.js +9 -9
  6. package/dist/app/components/agents/agent-can-use.js +47 -47
  7. package/dist/app/components/agents/agent-form-page.js +140 -140
  8. package/dist/app/components/agents/agent-page.js +123 -123
  9. package/dist/app/components/agents/agent-setup-sections.js +74 -74
  10. package/dist/app/components/agents/agent-skills.js +13 -13
  11. package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
  12. package/dist/app/components/agents/agent-trigger-dialog.js +31 -31
  13. package/dist/app/components/agents/agent-trigger-picker.js +8 -8
  14. package/dist/app/components/agents/agents-page.js +90 -90
  15. package/dist/app/components/agents/composer-agent-chip.js +59 -59
  16. package/dist/app/components/agents/session-agent-chip.js +54 -54
  17. package/dist/app/components/artifacts/app-package.js +10 -10
  18. package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
  19. package/dist/app/components/artifacts/artifact-library.js +28 -28
  20. package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
  21. package/dist/app/components/artifacts/artifact-viewer.js +68 -68
  22. package/dist/app/components/artifacts/chat-interactive-block.js +27 -27
  23. package/dist/app/components/artifacts/copy-artifact-link.js +1 -1
  24. package/dist/app/components/artifacts/file-reach-dialog.js +11 -11
  25. package/dist/app/components/artifacts/inline-chat-image.js +51 -51
  26. package/dist/app/components/artifacts/retained-file-preview.js +57 -57
  27. package/dist/app/components/artifacts/retained-text-preview.js +8 -8
  28. package/dist/app/components/artifacts/site-actions.js +11 -11
  29. package/dist/app/components/artifacts/site-audience.js +7 -7
  30. package/dist/app/components/artifacts/site-conversations.js +33 -33
  31. package/dist/app/components/artifacts/site-data.js +28 -28
  32. package/dist/app/components/artifacts/site-public-link.js +3 -3
  33. package/dist/app/components/artifacts/site-publishing-page.js +66 -66
  34. package/dist/app/components/artifacts/site-publishing.js +51 -51
  35. package/dist/app/components/artifacts/site-settings.js +65 -65
  36. package/dist/app/components/artifacts/site-version-menu.js +9 -9
  37. package/dist/app/components/billing-class-mark.js +8 -8
  38. package/dist/app/components/capabilities/capability-detail-sheet.js +18 -18
  39. package/dist/app/components/capabilities/capability-logo-source.js +27 -27
  40. package/dist/app/components/capabilities/capability-logo.js +1 -1
  41. package/dist/app/components/capabilities/connection-account-picker.js +2 -2
  42. package/dist/app/components/capabilities/connector-tool-permissions.js +8 -8
  43. package/dist/app/components/capabilities/native-connect-setup.js +31 -31
  44. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +6 -6
  45. package/dist/app/components/capabilities/perform-capability-action.js +2 -2
  46. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +30 -30
  47. package/dist/app/components/capabilities/session-capability-card.js +142 -142
  48. package/dist/app/components/capabilities/session-chrome-card.js +49 -49
  49. package/dist/app/components/capabilities/session-connect-inputs-card.js +33 -33
  50. package/dist/app/components/capabilities/session-custom-mcp-card.js +37 -37
  51. package/dist/app/components/capabilities/session-github-card.js +46 -46
  52. package/dist/app/components/capabilities/session-machine-card.js +50 -50
  53. package/dist/app/components/capabilities/session-personal-github-card.js +31 -31
  54. package/dist/app/components/capabilities/session-plugin-card.js +20 -20
  55. package/dist/app/components/capabilities/use-capabilities-catalog.js +3 -3
  56. package/dist/app/components/capabilities/use-connection-accounts.js +2 -2
  57. package/dist/app/components/chat-payment-pages.js +2 -2
  58. package/dist/app/components/command-menu/chat-status.js +25 -25
  59. package/dist/app/components/command-menu/chat-switcher.js +84 -84
  60. package/dist/app/components/command-menu/command-menu.js +113 -113
  61. package/dist/app/components/command-menu/shortcut-sheet.js +25 -25
  62. package/dist/app/components/composer-capabilities-menu-body.js +6 -6
  63. package/dist/app/components/composer-mobile-plus-panel.js +31 -31
  64. package/dist/app/components/composer-mobile-plus.js +3 -3
  65. package/dist/app/components/credit-required-gate.js +6 -6
  66. package/dist/app/components/credit-required-prompt.js +19 -19
  67. package/dist/app/components/credits/checkout-credits-celebration.js +1 -1
  68. package/dist/app/components/credits/checkout-return.js +1 -1
  69. package/dist/app/components/credits/coupon-redeem.js +1 -1
  70. package/dist/app/components/credits/credit-refusal-notice.js +7 -7
  71. package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
  72. package/dist/app/components/desktop/app-shots.js +9 -9
  73. package/dist/app/components/desktop/app-update.js +3 -3
  74. package/dist/app/components/desktop/computer-use.js +3 -3
  75. package/dist/app/components/desktop/this-computer.js +6 -6
  76. package/dist/app/components/feedback.js +10 -10
  77. package/dist/app/components/follow-up-repository-menu-body.js +14 -14
  78. package/dist/app/components/follow-up-repository-picker.js +1 -1
  79. package/dist/app/components/github-app-connect-launcher.js +2 -2
  80. package/dist/app/components/in-app-help-link.js +3 -3
  81. package/dist/app/components/knowledge/agent-learning-settings.js +3 -3
  82. package/dist/app/components/machines/connect-machine-dialog.js +25 -25
  83. package/dist/app/components/manual-repository-editor.js +4 -4
  84. package/dist/app/components/markdown.js +15 -15
  85. package/dist/app/components/model-identity.js +3 -3
  86. package/dist/app/components/models/models-ui.js +16 -16
  87. package/dist/app/components/models/provider-mark.js +3 -3
  88. package/dist/app/components/models/subscription-usage.js +5 -5
  89. package/dist/app/components/my-things.js +16 -16
  90. package/dist/app/components/own-where-it-works.js +10 -10
  91. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  92. package/dist/app/components/pickers.js +11 -11
  93. package/dist/app/components/rail/channel-create-dialog.js +5 -5
  94. package/dist/app/components/rail/project-glyph.js +52 -52
  95. package/dist/app/components/rail/project-profile.js +74 -74
  96. package/dist/app/components/rail/rail-context.js +2 -2
  97. package/dist/app/components/rail/rail-sections.js +157 -157
  98. package/dist/app/components/rail/session-header.js +128 -128
  99. package/dist/app/components/rail/session-list.js +155 -155
  100. package/dist/app/components/rail/session-row-content.js +7 -7
  101. package/dist/app/components/rail/session-row-hover-details.js +34 -34
  102. package/dist/app/components/rail/session-shell.js +196 -196
  103. package/dist/app/components/rail/site-session-group-heading.js +37 -37
  104. package/dist/app/components/repository-picker.js +14 -14
  105. package/dist/app/components/repository-ref-input.js +2 -2
  106. package/dist/app/components/secrets/session-secrets-panel.js +4 -4
  107. package/dist/app/components/session/agent-configuration-panel.js +46 -46
  108. package/dist/app/components/session/artifact-session-page.js +6 -6
  109. package/dist/app/components/session/banners.js +19 -19
  110. package/dist/app/components/session/chat-avatar.js +52 -52
  111. package/dist/app/components/session/console-new-conversation.js +109 -109
  112. package/dist/app/components/session/conversation-find.js +3 -3
  113. package/dist/app/components/session/descendant-requests.js +109 -109
  114. package/dist/app/components/session/editable-artifacts-workspace.js +59 -59
  115. package/dist/app/components/session/failed-session-banner.js +22 -22
  116. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  117. package/dist/app/components/session/human-input-delegation-record.js +3 -3
  118. package/dist/app/components/session/human-input.js +87 -87
  119. package/dist/app/components/session/inspector.js +143 -143
  120. package/dist/app/components/session/linked-panel.js +3 -3
  121. package/dist/app/components/session/message-actions.js +10 -10
  122. package/dist/app/components/session/model-recovery-notice.js +4 -4
  123. package/dist/app/components/session/new-session-settings-menu.js +30 -30
  124. package/dist/app/components/session/new-session-setup-strip.js +55 -55
  125. package/dist/app/components/session/pull-request-panel.js +24 -24
  126. package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
  127. package/dist/app/components/session/sandbox-switcher.js +23 -23
  128. package/dist/app/components/session/sandbox-workspace.js +119 -119
  129. package/dist/app/components/session/search-markdown-highlight.js +16 -16
  130. package/dist/app/components/session/search-results-view.js +17 -17
  131. package/dist/app/components/session/session-admin-access.js +11 -11
  132. package/dist/app/components/session/session-admission-notice.js +11 -11
  133. package/dist/app/components/session/session-avatar-picker.js +59 -59
  134. package/dist/app/components/session/session-avatar.js +54 -54
  135. package/dist/app/components/session/session-machine-access-notice.js +11 -11
  136. package/dist/app/components/session/session-profile-dialog.js +70 -70
  137. package/dist/app/components/session/session-profile-editor.js +71 -71
  138. package/dist/app/components/session/session-retention.js +7 -7
  139. package/dist/app/components/session/session-search-dialog.js +22 -22
  140. package/dist/app/components/session/session-skill-reviews.js +5 -5
  141. package/dist/app/components/session/session-tenancy-control.js +27 -27
  142. package/dist/app/components/session/session-unattended-setting.js +3 -3
  143. package/dist/app/components/session/session-usage-limit-section.js +14 -14
  144. package/dist/app/components/session/share-chat-dialog.js +9 -9
  145. package/dist/app/components/session/subagents.js +23 -23
  146. package/dist/app/components/session/subscription-account-indicator.js +25 -25
  147. package/dist/app/components/session/subscription-account-menu.js +7 -7
  148. package/dist/app/components/session-connectors-menu-body.js +7 -7
  149. package/dist/app/components/settings/row-select.js +6 -6
  150. package/dist/app/components/toaster.js +2 -2
  151. package/dist/app/components/transcription-settings.js +10 -10
  152. package/dist/app/components/ui/destructive-confirm.js +9 -9
  153. package/dist/app/components/usage/usage-entry.js +8 -8
  154. package/dist/app/components/window-bar.js +26 -26
  155. package/dist/app/components/workspace-composer-plus.js +41 -41
  156. package/dist/app/components/workspace-reach.js +6 -6
  157. package/dist/app/embed/session-app.js +406 -406
  158. package/dist/app/lib/actions/actions-provider.js +20 -20
  159. package/dist/app/lib/agent-capabilities.js +4 -4
  160. package/dist/app/lib/app-connect-card.js +14 -14
  161. package/dist/app/lib/app-shared-key-dialog.js +8 -8
  162. package/dist/app/lib/app-surfaces.js +1 -1
  163. package/dist/app/lib/app-sync-opt-in.js +4 -4
  164. package/dist/app/lib/codex-usage-query.js +3 -3
  165. package/dist/app/lib/composer-agent.js +2 -2
  166. package/dist/app/lib/composer-connectors.js +31 -31
  167. package/dist/app/lib/composer-send-blocking.js +3 -3
  168. package/dist/app/lib/console-site.js +6 -6
  169. package/dist/app/lib/console-text.js +2 -2
  170. package/dist/app/lib/deployment-free-model.js +2 -2
  171. package/dist/app/lib/events.js +29 -29
  172. package/dist/app/lib/failed-session-copy.js +6 -6
  173. package/dist/app/lib/feedback-capture.js +2 -2
  174. package/dist/app/lib/free-credit-gap.js +2 -2
  175. package/dist/app/lib/model-access-onboarding.js +5 -5
  176. package/dist/app/lib/model-policy.js +1 -1
  177. package/dist/app/lib/move-chat-to-machine.js +5 -5
  178. package/dist/app/lib/personal-resource-attachments.js +1 -1
  179. package/dist/app/lib/session-branch-cache.js +18 -18
  180. package/dist/app/lib/session-create.js +5 -5
  181. package/dist/app/lib/session-group-pagination.js +18 -18
  182. package/dist/app/lib/session-hover-facts.js +25 -25
  183. package/dist/app/lib/session-list-dirty-scopes.js +19 -19
  184. package/dist/app/lib/session-model.js +3 -3
  185. package/dist/app/lib/session-rail.js +16 -16
  186. package/dist/app/lib/session-rename.js +4 -4
  187. package/dist/app/lib/sessions-group.js +22 -22
  188. package/dist/app/lib/site-tool-consent-dialog.js +23 -23
  189. package/dist/app/lib/site-tool-consent.js +1 -1
  190. package/dist/app/lib/turn-failure-analytics.js +7 -7
  191. package/dist/app/lib/unavailable-session-model.js +2 -2
  192. package/dist/app/lib/use-artifact-catalog.js +2 -2
  193. package/dist/app/lib/use-duplicate-site.js +4 -4
  194. package/dist/app/lib/use-follow-up-repositories.js +6 -6
  195. package/dist/app/lib/use-personal-resource-attachment.js +2 -2
  196. package/dist/app/lib/use-workspace-machines.js +10 -10
  197. package/dist/app/lib/use-workspace-model-catalog.js +6 -6
  198. package/dist/app/lib/use-workspace-rigs.js +7 -7
  199. package/dist/app/lib/workspace-navigation-preference.js +5 -5
  200. package/dist/app/lib/workspace-scope-context.js +4 -4
  201. package/dist/app/routes/app-page-view.js +17 -17
  202. package/dist/app/routes/app-page.js +2 -2
  203. package/dist/app/routes/artifacts.js +158 -158
  204. package/dist/app/routes/retained-artifact.js +114 -114
  205. package/dist/app/routes/session-unavailable.js +5 -5
  206. package/dist/app/routes/session.js +247 -247
  207. package/dist/app/routes/sessions-index-hydration.js +6 -6
  208. package/dist/app/routes/sessions-index.js +203 -203
  209. package/dist/app/routes/site-view.js +200 -200
  210. package/dist/artifacts-document.js +4 -4
  211. package/dist/artifacts-presentation.js +7 -7
  212. package/dist/artifacts-spreadsheet.js +4 -4
  213. package/dist/artifacts.js +50 -50
  214. package/dist/automation-model.js +7 -7
  215. package/dist/automations.js +67 -67
  216. package/dist/browser-viewer-EIEMRVFF.js +23 -0
  217. package/dist/chat-interactive-block-FV37LWYZ.js +22 -0
  218. package/dist/chunk-2COBAJC7.js +818 -0
  219. package/dist/chunk-2HS3IUXE.js +170 -0
  220. package/dist/chunk-2JTMFYCT.js +296 -0
  221. package/dist/chunk-2JXKP4M6.js +114 -0
  222. package/dist/chunk-2P5K7CBH.js +269 -0
  223. package/dist/chunk-2XGRHMRI.js +250 -0
  224. package/dist/chunk-332BYSAZ.js +65 -0
  225. package/dist/chunk-3EM5GTP3.js +158 -0
  226. package/dist/chunk-3L5ATO4A.js +52 -0
  227. package/dist/chunk-3S3PJB7J.js +107 -0
  228. package/dist/chunk-3SBKYPNM.js +270 -0
  229. package/dist/chunk-3Z7VA6ET.js +114 -0
  230. package/dist/chunk-43BRJBEV.js +207 -0
  231. package/dist/chunk-46LZO4ZO.js +188 -0
  232. package/dist/chunk-46ZC5VNC.js +38 -0
  233. package/dist/chunk-4AH4EEHE.js +298 -0
  234. package/dist/chunk-4D3YJNVN.js +270 -0
  235. package/dist/chunk-4E5QVAT4.js +4480 -0
  236. package/dist/chunk-4E5QVAT4.js.map +1 -0
  237. package/dist/chunk-4I4RTI4D.js +37 -0
  238. package/dist/chunk-4KASGJTF.js +287 -0
  239. package/dist/chunk-4RUKLIOF.js +1263 -0
  240. package/dist/chunk-4UU7FN3I.js +650 -0
  241. package/dist/chunk-4VEIBNC2.js +427 -0
  242. package/dist/chunk-4VEIBNC2.js.map +1 -0
  243. package/dist/chunk-4ZRNASBF.js +2551 -0
  244. package/dist/chunk-5EJBPQI2.js +41 -0
  245. package/dist/chunk-5G4IGG7F.js +209 -0
  246. package/dist/chunk-5JAYZOAW.js +131 -0
  247. package/dist/chunk-5JOKVDSR.js +789 -0
  248. package/dist/chunk-5MP3G7ZV.js +1236 -0
  249. package/dist/chunk-5OVRMKP5.js +42 -0
  250. package/dist/chunk-5SGTRULO.js +1184 -0
  251. package/dist/chunk-5SOL4INY.js +572 -0
  252. package/dist/chunk-5Y34P32B.js +27 -0
  253. package/dist/chunk-62HIKJ5F.js +72 -0
  254. package/dist/chunk-62T2ZPD5.js +266 -0
  255. package/dist/chunk-63VNZRLY.js +386 -0
  256. package/dist/chunk-6CDBX3XG.js +33 -0
  257. package/dist/chunk-6D3D2JWY.js +278 -0
  258. package/dist/chunk-6DOIINY4.js +201 -0
  259. package/dist/chunk-6DQBUKGJ.js +112 -0
  260. package/dist/chunk-6SETNFNH.js +1399 -0
  261. package/dist/chunk-6XYFMHNT.js +56 -0
  262. package/dist/chunk-6YU3WV2P.js +33 -0
  263. package/dist/chunk-6YUHDFOZ.js +351 -0
  264. package/dist/chunk-72EOXOR7.js +1185 -0
  265. package/dist/chunk-72ND4ALI.js +532 -0
  266. package/dist/chunk-757LE32E.js +283 -0
  267. package/dist/chunk-7FDEV6XW.js +89 -0
  268. package/dist/chunk-7S2S4MXR.js +138 -0
  269. package/dist/chunk-7SYCHMXS.js +200 -0
  270. package/dist/chunk-7TVAPQOV.js +5089 -0
  271. package/dist/chunk-7UDLRDHK.js +214 -0
  272. package/dist/chunk-7YLQCMZP.js +357 -0
  273. package/dist/chunk-A5GX3CAE.js +849 -0
  274. package/dist/chunk-A7EBV2EB.js +318 -0
  275. package/dist/chunk-AB5SPXUR.js +114 -0
  276. package/dist/chunk-AHVQGL5A.js +202 -0
  277. package/dist/chunk-AI77ZKEV.js +26 -0
  278. package/dist/chunk-AIX2D6RB.js +1019 -0
  279. package/dist/chunk-AVSIHP7Q.js +192 -0
  280. package/dist/chunk-AWK23Q32.js +107 -0
  281. package/dist/chunk-AYVWA6KD.js +432 -0
  282. package/dist/chunk-AYZXE4IM.js +2553 -0
  283. package/dist/chunk-AZGGSPTE.js +124 -0
  284. package/dist/chunk-B45TB4HY.js +931 -0
  285. package/dist/chunk-BIUJHNVR.js +46 -0
  286. package/dist/chunk-BJUOKUE5.js +234 -0
  287. package/dist/chunk-BPEEVMKH.js +292 -0
  288. package/dist/chunk-BPHPAGYF.js +74 -0
  289. package/dist/chunk-BXMND6YU.js +307 -0
  290. package/dist/chunk-C6OM2SRG.js +117 -0
  291. package/dist/chunk-CIRCUDKF.js +1309 -0
  292. package/dist/chunk-CLKR4UG3.js +403 -0
  293. package/dist/chunk-CPX6BHER.js +554 -0
  294. package/dist/chunk-CVC4RO7D.js +155 -0
  295. package/dist/chunk-D3YJAQGK.js +103 -0
  296. package/dist/chunk-DFQ72BLS.js +1024 -0
  297. package/dist/chunk-DG65PJOZ.js +4564 -0
  298. package/dist/chunk-DNAXAS5R.js +406 -0
  299. package/dist/chunk-DO247ITS.js +175 -0
  300. package/dist/chunk-DONBARLL.js +154 -0
  301. package/dist/chunk-DTLXQ3ZU.js +373 -0
  302. package/dist/chunk-EAXTACI4.js +274 -0
  303. package/dist/chunk-EDPH7AJH.js +412 -0
  304. package/dist/chunk-EER3B3G5.js +10036 -0
  305. package/dist/chunk-EER3B3G5.js.map +1 -0
  306. package/dist/chunk-EFKQHCGJ.js +276 -0
  307. package/dist/chunk-EILSPMVD.js +133 -0
  308. package/dist/chunk-EK7KIETS.js +211 -0
  309. package/dist/chunk-EMWT6GOK.js +437 -0
  310. package/dist/chunk-EO22NST7.js +259 -0
  311. package/dist/chunk-ER5MYLIE.js +256 -0
  312. package/dist/chunk-ES5HKVQF.js +234 -0
  313. package/dist/chunk-EXRQ5ATC.js +738 -0
  314. package/dist/chunk-EXRQ5ATC.js.map +1 -0
  315. package/dist/chunk-F26YBYAZ.js +111 -0
  316. package/dist/chunk-F6QP4GSK.js +515 -0
  317. package/dist/chunk-F7QEO7M2.js +851 -0
  318. package/dist/chunk-FJFGDLXB.js +12 -0
  319. package/dist/chunk-FLLJ2WXW.js +113 -0
  320. package/dist/chunk-FMBJKMT4.js +107 -0
  321. package/dist/chunk-FPN4I4CG.js +3690 -0
  322. package/dist/chunk-FUXFJTXL.js +3070 -0
  323. package/dist/chunk-FZI4QOAV.js +3996 -0
  324. package/dist/chunk-FZI4QOAV.js.map +1 -0
  325. package/dist/chunk-G6SSSX5R.js +158 -0
  326. package/dist/chunk-GBGCMHBB.js +608 -0
  327. package/dist/chunk-GIHE7U3Y.js +174 -0
  328. package/dist/chunk-GJ4GTYOD.js +372 -0
  329. package/dist/chunk-GLSDWNFV.js +432 -0
  330. package/dist/chunk-GMGAW3T6.js +278 -0
  331. package/dist/chunk-GNGI6XFN.js +43 -0
  332. package/dist/chunk-GO5VIAA7.js +264 -0
  333. package/dist/chunk-GSW4YHZE.js +229 -0
  334. package/dist/chunk-GUC6IWEY.js +407 -0
  335. package/dist/chunk-GWAY3SO5.js +15 -0
  336. package/dist/chunk-GXOTNT5D.js +168 -0
  337. package/dist/chunk-GZZCVF76.js +3851 -0
  338. package/dist/chunk-H4VMHFOX.js +214 -0
  339. package/dist/chunk-HA5RFQAF.js +110 -0
  340. package/dist/chunk-HFROJDFQ.js +118 -0
  341. package/dist/chunk-HHFFPE67.js +220 -0
  342. package/dist/chunk-HJLHGXWL.js +103 -0
  343. package/dist/chunk-HKNMNL7B.js +2984 -0
  344. package/dist/chunk-HT7MBHLY.js +1021 -0
  345. package/dist/chunk-I5FSUZVW.js +584 -0
  346. package/dist/chunk-IINQO425.js +246 -0
  347. package/dist/chunk-IIXNEOK4.js +1022 -0
  348. package/dist/chunk-IM3WA5AL.js +311 -0
  349. package/dist/chunk-IX4P4OGR.js +399 -0
  350. package/dist/chunk-IX5VHZYS.js +129 -0
  351. package/dist/chunk-JB3TSUZO.js +263 -0
  352. package/dist/chunk-JIC6RLUB.js +27 -0
  353. package/dist/chunk-JNJIZCTN.js +172 -0
  354. package/dist/chunk-JNV5ZPUV.js +828 -0
  355. package/dist/chunk-JPQFVR24.js +50 -0
  356. package/dist/chunk-JPZVMXDP.js +1333 -0
  357. package/dist/chunk-JVPF34MX.js +215 -0
  358. package/dist/chunk-KED67KAF.js +85 -0
  359. package/dist/chunk-KJ72GMZ2.js +378 -0
  360. package/dist/chunk-KTGKGHEA.js +75 -0
  361. package/dist/chunk-KU77XHWB.js +285 -0
  362. package/dist/chunk-KVPQUADA.js +5915 -0
  363. package/dist/chunk-KVPQUADA.js.map +1 -0
  364. package/dist/chunk-KXBLLFOO.js +249 -0
  365. package/dist/chunk-L6WVCO6D.js +61 -0
  366. package/dist/chunk-LIOZ2MXJ.js +380 -0
  367. package/dist/chunk-LIOZ2MXJ.js.map +1 -0
  368. package/dist/chunk-LPEFULJY.js +73 -0
  369. package/dist/chunk-LRMGPO7E.js +98 -0
  370. package/dist/chunk-LVKTKORH.js +121 -0
  371. package/dist/chunk-MCPKUVMQ.js +99 -0
  372. package/dist/chunk-MFLU3466.js +99 -0
  373. package/dist/chunk-MIUJ3EH5.js +60 -0
  374. package/dist/chunk-MIUMNTIJ.js +175 -0
  375. package/dist/chunk-ML46TXRM.js +113 -0
  376. package/dist/chunk-MO3XJQN2.js +629 -0
  377. package/dist/chunk-MQRHTOQ2.js +218 -0
  378. package/dist/chunk-MVYQDBE6.js +79 -0
  379. package/dist/chunk-NE5P7LFQ.js +100 -0
  380. package/dist/chunk-NIPON7YB.js +850 -0
  381. package/dist/chunk-NIPON7YB.js.map +1 -0
  382. package/dist/chunk-NPBEUU22.js +196 -0
  383. package/dist/chunk-NSXKGS2K.js +178 -0
  384. package/dist/chunk-NUEFORM6.js +2317 -0
  385. package/dist/chunk-NZOFNQNC.js +176 -0
  386. package/dist/chunk-O664PL2U.js +47 -0
  387. package/dist/chunk-O664PL2U.js.map +1 -0
  388. package/dist/chunk-OATXCLTY.js +211 -0
  389. package/dist/chunk-OG3ELROW.js +538 -0
  390. package/dist/chunk-OI4WS7FW.js +162 -0
  391. package/dist/chunk-OITGZUDC.js +82 -0
  392. package/dist/chunk-OKD2LBMK.js +333 -0
  393. package/dist/chunk-OLFOGAWU.js +273 -0
  394. package/dist/chunk-OLFOGAWU.js.map +1 -0
  395. package/dist/chunk-OSA4CGST.js +134 -0
  396. package/dist/chunk-OXYAKUFU.js +401 -0
  397. package/dist/chunk-OYMSMU5O.js +396 -0
  398. package/dist/chunk-P4NZ72KY.js +162 -0
  399. package/dist/chunk-PBYL2VIM.js +379 -0
  400. package/dist/chunk-PDW3OOSZ.js +505 -0
  401. package/dist/chunk-PGRKTQIW.js +523 -0
  402. package/dist/chunk-PPQJIVGM.js +175 -0
  403. package/dist/chunk-PYMQM65Y.js +125 -0
  404. package/dist/chunk-Q273Q33U.js +166 -0
  405. package/dist/chunk-Q4CLS2HL.js +340 -0
  406. package/dist/chunk-QA5UNVHD.js +85 -0
  407. package/dist/chunk-QFOBUA2J.js +428 -0
  408. package/dist/chunk-QLIM4D56.js +1095 -0
  409. package/dist/chunk-QMQF5U2D.js +20 -0
  410. package/dist/chunk-QNOWKKZ4.js +40 -0
  411. package/dist/chunk-QPOUPVPD.js +144 -0
  412. package/dist/chunk-QTJAQ6DS.js +48 -0
  413. package/dist/chunk-QUOFP3G7.js +404 -0
  414. package/dist/chunk-QVOTPOXK.js +29 -0
  415. package/dist/chunk-QYZ5RVGM.js +184 -0
  416. package/dist/chunk-R7CVDKRN.js +2580 -0
  417. package/dist/chunk-RB7MXNZD.js +639 -0
  418. package/dist/chunk-RDZQFZOQ.js +187 -0
  419. package/dist/chunk-RIHKEGWS.js +194 -0
  420. package/dist/chunk-ROSB7GF6.js +57 -0
  421. package/dist/chunk-RP3YMYCX.js +723 -0
  422. package/dist/chunk-RPHXJHNX.js +271 -0
  423. package/dist/chunk-RVC3M66H.js +191 -0
  424. package/dist/chunk-S3OTJAAC.js +283 -0
  425. package/dist/chunk-SBWPMVRN.js +56 -0
  426. package/dist/chunk-SERECSAR.js +138 -0
  427. package/dist/chunk-SHSEF3GJ.js +187 -0
  428. package/dist/chunk-SMS2M3RG.js +772 -0
  429. package/dist/chunk-SRDHDIRQ.js +177 -0
  430. package/dist/chunk-SXRYA7NN.js +389 -0
  431. package/dist/chunk-SYA3WYG4.js +1187 -0
  432. package/dist/chunk-SYYFA7W7.js +23 -0
  433. package/dist/chunk-T2QDSTBH.js +371 -0
  434. package/dist/chunk-TFSCGFYV.js +251 -0
  435. package/dist/chunk-TGCKZOSX.js +246 -0
  436. package/dist/chunk-THILLYQM.js +132 -0
  437. package/dist/chunk-TI6LGUEZ.js +2412 -0
  438. package/dist/chunk-TSY6YZL2.js +366 -0
  439. package/dist/chunk-TW2RHTLH.js +3321 -0
  440. package/dist/chunk-TWA5G277.js +141 -0
  441. package/dist/chunk-TZZ2S4XI.js +247 -0
  442. package/dist/chunk-U5D3K53R.js +58 -0
  443. package/dist/chunk-UECD27LX.js +251 -0
  444. package/dist/chunk-UFJDETKG.js +108 -0
  445. package/dist/chunk-UHCFYX4I.js +570 -0
  446. package/dist/chunk-UHTURYJO.js +898 -0
  447. package/dist/chunk-UJH63JT3.js +67 -0
  448. package/dist/chunk-UOLDS6S5.js +1152 -0
  449. package/dist/chunk-UUE3OGXI.js +84 -0
  450. package/dist/chunk-UUNJ2E57.js +391 -0
  451. package/dist/chunk-UYQVWRAH.js +199 -0
  452. package/dist/chunk-UYWVK7JQ.js +234 -0
  453. package/dist/chunk-UYWWUEL4.js +126 -0
  454. package/dist/chunk-V4CQKX5H.js +48 -0
  455. package/dist/chunk-V4QM7GDQ.js +3176 -0
  456. package/dist/chunk-V5Y74WII.js +91 -0
  457. package/dist/chunk-VGGZLUQK.js +129 -0
  458. package/dist/chunk-VGX636MB.js +311 -0
  459. package/dist/chunk-VGZLFQO2.js +773 -0
  460. package/dist/chunk-VJWZATNF.js +137 -0
  461. package/dist/chunk-VMWCIC2N.js +50 -0
  462. package/dist/chunk-VPWKTIU5.js +227 -0
  463. package/dist/chunk-VXOLG6YB.js +469 -0
  464. package/dist/chunk-W2NAU5VB.js +1628 -0
  465. package/dist/chunk-WGORKMR3.js +353 -0
  466. package/dist/chunk-WMIDELSJ.js +391 -0
  467. package/dist/chunk-WSOSGL2G.js +383 -0
  468. package/dist/chunk-WXUUOM4X.js +400 -0
  469. package/dist/chunk-WZ74QHLE.js +4863 -0
  470. package/dist/chunk-X2OWM2ME.js +1870 -0
  471. package/dist/chunk-X6UMGG4T.js +68 -0
  472. package/dist/chunk-XDXKB25W.js +93 -0
  473. package/dist/chunk-XE4PHI74.js +231 -0
  474. package/dist/chunk-XHF2XNU5.js +73 -0
  475. package/dist/chunk-XLJ4SQFS.js +230 -0
  476. package/dist/chunk-XOD4FX6M.js +2434 -0
  477. package/dist/chunk-XODQ2GPF.js +3110 -0
  478. package/dist/chunk-XT54RTAM.js +441 -0
  479. package/dist/chunk-YAVW5OJ5.js +131 -0
  480. package/dist/chunk-YDQHFJM2.js +83 -0
  481. package/dist/chunk-YH6O6OQ6.js +1356 -0
  482. package/dist/chunk-YIKPC2QP.js +794 -0
  483. package/dist/chunk-ZD7PKYC4.js +335 -0
  484. package/dist/chunk-ZEQYHEWP.js +406 -0
  485. package/dist/chunk-ZMYL6DTE.js +225 -0
  486. package/dist/chunk-ZP3QCPYG.js +21 -0
  487. package/dist/chunk-ZRVUCTSI.js +265 -0
  488. package/dist/chunk-ZSI3ITRK.js +449 -0
  489. package/dist/chunk-ZZMEQCIZ.js +236 -0
  490. package/dist/composer.js +36 -36
  491. package/dist/computer-viewer-ZBY3BPYW.js +21 -0
  492. package/dist/connect.js +29 -29
  493. package/dist/connection-step-up-JQ4OFSQN.js +145 -0
  494. package/dist/desktop-dictation.js +24 -24
  495. package/dist/desktop.js +2 -2
  496. package/dist/editor.js +2 -2
  497. package/dist/embedded-new-voice-ZB5XLKLU.js +25 -0
  498. package/dist/embedded-voice-MZJISDCS.js +25 -0
  499. package/dist/fleet-decision-row-LG3SYVR3.js +361 -0
  500. package/dist/human-input-model.d.ts +2 -0
  501. package/dist/in-chat-connect-model.js +6 -6
  502. package/dist/index.js +298 -298
  503. package/dist/interaction.js +9 -9
  504. package/dist/latest-question-QWJTXMFA.js +1 -1
  505. package/dist/machine-request-model.js +1 -1
  506. package/dist/machines.js +8 -8
  507. package/dist/meetings-recorder.js +1 -1
  508. package/dist/meetings.js +122 -122
  509. package/dist/messages/en.d.ts +10 -0
  510. package/dist/messages.js +1 -1
  511. package/dist/model-levels.js +2 -2
  512. package/dist/model-picker-model.js +2 -2
  513. package/dist/model-policy-picker-menu-5Y72PLNF.js +23 -0
  514. package/dist/model-policy.js +1 -1
  515. package/dist/payment-page-card-YPSXRHBA.js +226 -0
  516. package/dist/platform-activity-row-ZU4MEBNK.js +156 -0
  517. package/dist/queue-surface-implementation-6Q25RPH6.js +932 -0
  518. package/dist/realtime.js +17 -17
  519. package/dist/recorder-host-JD4GWJ2Z.js +80 -0
  520. package/dist/recordings.js +3 -3
  521. package/dist/sandbox-files-HCLEEJMU.js +28 -0
  522. package/dist/session-app.js +406 -406
  523. package/dist/session-connect-cards-DRKEN3Z4.js +27 -0
  524. package/dist/session-list-model.js +3 -3
  525. package/dist/session-realtime-IZOTTRH6.js +30 -0
  526. package/dist/session-realtime.js +2 -2
  527. package/dist/session-ui.js +95 -95
  528. package/dist/session.js +42 -42
  529. package/dist/sites.js +3 -3
  530. package/dist/terminal.js +2 -2
  531. package/dist/this-computer.js +3 -3
  532. package/dist/timeline-annotation-markers-WWXNJOXI.js +157 -0
  533. package/dist/timeline-annotation-selection-ZKRIQFIQ.js +208 -0
  534. package/dist/timeline-annotations-dialog-4IMKTOXJ.js +283 -0
  535. package/dist/timeline-model.js +58 -58
  536. package/dist/ui/access-list.js +19 -19
  537. package/dist/ui/cadence-picker.js +7 -7
  538. package/dist/ui/choice-cards.js +3 -3
  539. package/dist/ui/confirm-dialog.js +2 -2
  540. package/dist/ui/copy-field.js +3 -3
  541. package/dist/ui/detail-page.js +6 -6
  542. package/dist/ui/detail-sheet.js +6 -6
  543. package/dist/ui/diff-view.js +2 -2
  544. package/dist/ui/disclosure.js +7 -7
  545. package/dist/ui/email-chips-input.js +3 -3
  546. package/dist/ui/field.js +2 -2
  547. package/dist/ui/flush-form-page.js +6 -6
  548. package/dist/ui/form-dialog.js +5 -5
  549. package/dist/ui/list-row.js +7 -7
  550. package/dist/ui/load-failure.js +3 -3
  551. package/dist/ui/relative-time.js +3 -3
  552. package/dist/ui/revision-history.js +10 -10
  553. package/dist/ui/role-select.js +10 -10
  554. package/dist/ui/select-menu.js +5 -5
  555. package/dist/ui/settings-nav.js +6 -6
  556. package/dist/ui/sheet.js +2 -2
  557. package/dist/ui/usage-meter.js +4 -4
  558. package/dist/usage.js +3 -3
  559. package/dist/workbench.js +11 -11
  560. package/package.json +5 -6
  561. package/src/components/secret-question-field.tsx +2 -1
  562. package/src/human-input-model.ts +53 -12
  563. package/src/messages/en.ts +10 -0
  564. package/src/model-policy.ts +3 -1
  565. package/dist/browser-viewer-WGRM3JME.js +0 -23
  566. package/dist/chat-interactive-block-5E3UQYHO.js +0 -22
  567. package/dist/chunk-26KK6DN5.js +0 -41
  568. package/dist/chunk-272XEENJ.js +0 -100
  569. package/dist/chunk-2AU2S5NP.js +0 -772
  570. package/dist/chunk-2L7TCAO4.js +0 -188
  571. package/dist/chunk-2MXP6ZRP.js +0 -1095
  572. package/dist/chunk-2Q4XBV3J.js +0 -113
  573. package/dist/chunk-2U5ZJMNP.js +0 -386
  574. package/dist/chunk-2VHPKSFK.js +0 -1236
  575. package/dist/chunk-2WF5XIPA.js +0 -48
  576. package/dist/chunk-2Y53MMGA.js +0 -56
  577. package/dist/chunk-2ZR75AUO.js +0 -225
  578. package/dist/chunk-33QC4RN7.js +0 -133
  579. package/dist/chunk-35LBFD5I.js +0 -311
  580. package/dist/chunk-37J3ZX2N.js +0 -270
  581. package/dist/chunk-37SXZVSY.js +0 -380
  582. package/dist/chunk-37SXZVSY.js.map +0 -1
  583. package/dist/chunk-3ITEAD3E.js +0 -639
  584. package/dist/chunk-3JBLX5BN.js +0 -629
  585. package/dist/chunk-3JYID53J.js +0 -432
  586. package/dist/chunk-3MZCXSC7.js +0 -723
  587. package/dist/chunk-3NRJ4Z3A.js +0 -3176
  588. package/dist/chunk-3UG2AJHR.js +0 -89
  589. package/dist/chunk-3XS3A6Y6.js +0 -162
  590. package/dist/chunk-3ZBQIZEM.js +0 -214
  591. package/dist/chunk-3ZVACRTK.js +0 -82
  592. package/dist/chunk-46USHCHK.js +0 -389
  593. package/dist/chunk-4IMVT7OU.js +0 -263
  594. package/dist/chunk-4J4IPUPZ.js +0 -103
  595. package/dist/chunk-4PG2BEQA.js +0 -175
  596. package/dist/chunk-4YQFDBKE.js +0 -532
  597. package/dist/chunk-5ERDSF2C.js +0 -79
  598. package/dist/chunk-5EZELID5.js +0 -789
  599. package/dist/chunk-5NGW5K2D.js +0 -1333
  600. package/dist/chunk-5SK5PYFN.js +0 -15
  601. package/dist/chunk-5UI3VPCY.js +0 -1152
  602. package/dist/chunk-5W4ZGFXZ.js +0 -373
  603. package/dist/chunk-64XZTYX4.js +0 -572
  604. package/dist/chunk-67MFNMGH.js +0 -200
  605. package/dist/chunk-6C55RLFY.js +0 -103
  606. package/dist/chunk-6DFHNNWJ.js +0 -121
  607. package/dist/chunk-6F34IWSA.js +0 -47
  608. package/dist/chunk-6F34IWSA.js.map +0 -1
  609. package/dist/chunk-6FWBGVFL.js +0 -5905
  610. package/dist/chunk-6FWBGVFL.js.map +0 -1
  611. package/dist/chunk-6GBJFFQL.js +0 -215
  612. package/dist/chunk-6H2OQ6XG.js +0 -318
  613. package/dist/chunk-6LUF4TOE.js +0 -91
  614. package/dist/chunk-6M2WXQX5.js +0 -523
  615. package/dist/chunk-6O6CHBD3.js +0 -29
  616. package/dist/chunk-6U3PE427.js +0 -794
  617. package/dist/chunk-6V2UH36U.js +0 -187
  618. package/dist/chunk-73YALMGG.js +0 -1022
  619. package/dist/chunk-7JNWIGM4.js +0 -1628
  620. package/dist/chunk-7QODDTOI.js +0 -554
  621. package/dist/chunk-7TEXZ5LW.js +0 -46
  622. package/dist/chunk-A4SKSSSS.js +0 -2553
  623. package/dist/chunk-A7Z65D33.js +0 -400
  624. package/dist/chunk-ACUDUVDJ.js +0 -231
  625. package/dist/chunk-AI7XM4MY.js +0 -194
  626. package/dist/chunk-AJEOTFQE.js +0 -234
  627. package/dist/chunk-AKQSOR4G.js +0 -538
  628. package/dist/chunk-AP4FMXAM.js +0 -353
  629. package/dist/chunk-AQHQUPEF.js +0 -202
  630. package/dist/chunk-ATVSG5CO.js +0 -296
  631. package/dist/chunk-B6YDINPE.js +0 -68
  632. package/dist/chunk-BMOYN4HY.js +0 -283
  633. package/dist/chunk-BMSMK7SA.js +0 -84
  634. package/dist/chunk-BY7AWWDB.js +0 -177
  635. package/dist/chunk-BZ4GSY44.js +0 -2412
  636. package/dist/chunk-CGYPX3HJ.js +0 -292
  637. package/dist/chunk-CHYAUIZ3.js +0 -2984
  638. package/dist/chunk-CJEQQBNZ.js +0 -818
  639. package/dist/chunk-CP53LM7W.js +0 -1021
  640. package/dist/chunk-CQW4ZPU4.js +0 -191
  641. package/dist/chunk-CTKUOOU4.js +0 -246
  642. package/dist/chunk-CWKFPDYB.js +0 -124
  643. package/dist/chunk-CYBRD5BP.js +0 -113
  644. package/dist/chunk-CYPMAJ75.js +0 -449
  645. package/dist/chunk-CYPNXHWM.js +0 -379
  646. package/dist/chunk-D45IDQBW.js +0 -114
  647. package/dist/chunk-D4RTU236.js +0 -230
  648. package/dist/chunk-DBGOJIMM.js +0 -399
  649. package/dist/chunk-DD3DT5MY.js +0 -3321
  650. package/dist/chunk-DG3GW325.js +0 -72
  651. package/dist/chunk-DHLGGANG.js +0 -50
  652. package/dist/chunk-DHZW6JXQ.js +0 -10035
  653. package/dist/chunk-DHZW6JXQ.js.map +0 -1
  654. package/dist/chunk-DLHR7HHS.js +0 -931
  655. package/dist/chunk-DM7JLUWN.js +0 -406
  656. package/dist/chunk-DMQY35LC.js +0 -98
  657. package/dist/chunk-EBVL3YJQ.js +0 -67
  658. package/dist/chunk-EIQQYUOT.js +0 -274
  659. package/dist/chunk-EMART4X3.js +0 -107
  660. package/dist/chunk-EMJSJTIE.js +0 -207
  661. package/dist/chunk-ES3JAYQJ.js +0 -214
  662. package/dist/chunk-EWJ7WEZT.js +0 -175
  663. package/dist/chunk-FC6MLU5C.js +0 -52
  664. package/dist/chunk-FD6F2OE5.js +0 -515
  665. package/dist/chunk-FE4HNBHF.js +0 -48
  666. package/dist/chunk-FFXJF5KU.js +0 -201
  667. package/dist/chunk-FN5UTQSL.js +0 -117
  668. package/dist/chunk-FT4ZKYTG.js +0 -138
  669. package/dist/chunk-FYOGQHCD.js +0 -209
  670. package/dist/chunk-FZOK37SC.js +0 -155
  671. package/dist/chunk-GA42NSDJ.js +0 -132
  672. package/dist/chunk-GDWKVSMK.js +0 -372
  673. package/dist/chunk-GH3Q5XW4.js +0 -2551
  674. package/dist/chunk-GHLUZSIB.js +0 -259
  675. package/dist/chunk-GISBCT5E.js +0 -366
  676. package/dist/chunk-GKA5LFYR.js +0 -21
  677. package/dist/chunk-GPRM5GYZ.js +0 -131
  678. package/dist/chunk-GWJLR55B.js +0 -333
  679. package/dist/chunk-GX3RAB4W.js +0 -357
  680. package/dist/chunk-GYNTJYWY.js +0 -166
  681. package/dist/chunk-GYWQ4KVM.js +0 -85
  682. package/dist/chunk-H2AOQJQP.js +0 -378
  683. package/dist/chunk-H35G5UHL.js +0 -111
  684. package/dist/chunk-H6PJEWZH.js +0 -170
  685. package/dist/chunk-HHUTU5EN.js +0 -108
  686. package/dist/chunk-HPH3MFFE.js +0 -3996
  687. package/dist/chunk-HPH3MFFE.js.map +0 -1
  688. package/dist/chunk-HQZ6NGUU.js +0 -114
  689. package/dist/chunk-HSEHIVAE.js +0 -4564
  690. package/dist/chunk-HTYDPAJL.js +0 -391
  691. package/dist/chunk-HUKGLWAY.js +0 -174
  692. package/dist/chunk-HUTQJY3F.js +0 -23
  693. package/dist/chunk-HUWJZRD3.js +0 -311
  694. package/dist/chunk-HVL7TCB5.js +0 -50
  695. package/dist/chunk-HWOYJOKK.js +0 -266
  696. package/dist/chunk-HXANXMPH.js +0 -3851
  697. package/dist/chunk-HZBPL4KB.js +0 -244
  698. package/dist/chunk-HZBPL4KB.js.map +0 -1
  699. package/dist/chunk-I4CXHN6E.js +0 -269
  700. package/dist/chunk-I6YOCSEP.js +0 -37
  701. package/dist/chunk-IAXF3IO6.js +0 -1399
  702. package/dist/chunk-IGUPUA3G.js +0 -403
  703. package/dist/chunk-IKAVNCO5.js +0 -112
  704. package/dist/chunk-IMWP2Q4W.js +0 -137
  705. package/dist/chunk-IXPLYZFO.js +0 -40
  706. package/dist/chunk-J3CHK7NH.js +0 -12
  707. package/dist/chunk-JAC5I2BN.js +0 -85
  708. package/dist/chunk-JK2WTBLD.js +0 -158
  709. package/dist/chunk-JOKNFHFU.js +0 -412
  710. package/dist/chunk-JOVCPP44.js +0 -441
  711. package/dist/chunk-JTRRMV7B.js +0 -469
  712. package/dist/chunk-K2WDXLZS.js +0 -134
  713. package/dist/chunk-K6JW7GB3.js +0 -828
  714. package/dist/chunk-KA5H2Z3E.js +0 -168
  715. package/dist/chunk-KQBVH5LN.js +0 -229
  716. package/dist/chunk-KQVHSEQQ.js +0 -20
  717. package/dist/chunk-KREVCOE7.js +0 -187
  718. package/dist/chunk-KYDLVMKA.js +0 -99
  719. package/dist/chunk-L4PIAAQB.js +0 -4863
  720. package/dist/chunk-L64LMYJD.js +0 -114
  721. package/dist/chunk-L7XVC27Z.js +0 -850
  722. package/dist/chunk-L7XVC27Z.js.map +0 -1
  723. package/dist/chunk-L7ZLPS37.js +0 -371
  724. package/dist/chunk-LDZSUY7K.js +0 -298
  725. package/dist/chunk-LK3AAMN7.js +0 -404
  726. package/dist/chunk-LLVJ3P2N.js +0 -428
  727. package/dist/chunk-LPHBZCCV.js +0 -1263
  728. package/dist/chunk-LT3MK2XP.js +0 -608
  729. package/dist/chunk-M72GFKDP.js +0 -335
  730. package/dist/chunk-M73QQXUQ.js +0 -270
  731. package/dist/chunk-M7NPDODK.js +0 -1870
  732. package/dist/chunk-MB5EK2PA.js +0 -211
  733. package/dist/chunk-MB5WRIYX.js +0 -33
  734. package/dist/chunk-MBYHDOTU.js +0 -42
  735. package/dist/chunk-MDIHQGPV.js +0 -276
  736. package/dist/chunk-MQFJPFL4.js +0 -5089
  737. package/dist/chunk-MU6IU4IH.js +0 -650
  738. package/dist/chunk-N7IOCNWK.js +0 -1019
  739. package/dist/chunk-NDJPEX7P.js +0 -1187
  740. package/dist/chunk-NLKHAZMG.js +0 -898
  741. package/dist/chunk-NLYAWFDY.js +0 -199
  742. package/dist/chunk-NNIUBJOE.js +0 -154
  743. package/dist/chunk-NSBOITEM.js +0 -175
  744. package/dist/chunk-NUZNJSL5.js +0 -285
  745. package/dist/chunk-NZFMEGPE.js +0 -287
  746. package/dist/chunk-O4UAH7WR.js +0 -427
  747. package/dist/chunk-O4UAH7WR.js.map +0 -1
  748. package/dist/chunk-O4VCJWKV.js +0 -176
  749. package/dist/chunk-OE4QJJ4C.js +0 -432
  750. package/dist/chunk-OQEAJGAJ.js +0 -65
  751. package/dist/chunk-ORSFNFNY.js +0 -1184
  752. package/dist/chunk-OU2J6K3L.js +0 -129
  753. package/dist/chunk-OVAT4PIR.js +0 -437
  754. package/dist/chunk-OWF2AVT6.js +0 -407
  755. package/dist/chunk-P2OHWZMB.js +0 -256
  756. package/dist/chunk-PCSRHFRF.js +0 -75
  757. package/dist/chunk-PH2FDKJE.js +0 -250
  758. package/dist/chunk-PMBZMVKE.js +0 -33
  759. package/dist/chunk-PNLVWZSM.js +0 -211
  760. package/dist/chunk-PQ7WJAKL.js +0 -74
  761. package/dist/chunk-PTSRBKQC.js +0 -118
  762. package/dist/chunk-PTUIF4TT.js +0 -144
  763. package/dist/chunk-PV7X4PRR.js +0 -570
  764. package/dist/chunk-Q35LFE7H.js +0 -26
  765. package/dist/chunk-QAHGGBL2.js +0 -1024
  766. package/dist/chunk-QI5RXPYP.js +0 -56
  767. package/dist/chunk-QODAMEOR.js +0 -2317
  768. package/dist/chunk-QXOO5U46.js +0 -172
  769. package/dist/chunk-R6OBJ7LF.js +0 -131
  770. package/dist/chunk-R6WQLIFX.js +0 -73
  771. package/dist/chunk-R7SBV5KD.js +0 -3690
  772. package/dist/chunk-R7ZIFQ7D.js +0 -738
  773. package/dist/chunk-R7ZIFQ7D.js.map +0 -1
  774. package/dist/chunk-RFBJ6TUL.js +0 -43
  775. package/dist/chunk-RLNJSAHP.js +0 -851
  776. package/dist/chunk-RMVKH4EE.js +0 -351
  777. package/dist/chunk-RO2UO3VN.js +0 -107
  778. package/dist/chunk-ROCQ3IDW.js +0 -184
  779. package/dist/chunk-RPWI6A3H.js +0 -849
  780. package/dist/chunk-RTJVIXH5.js +0 -141
  781. package/dist/chunk-RZ5IQ3SX.js +0 -278
  782. package/dist/chunk-S7NX6KSE.js +0 -406
  783. package/dist/chunk-SFWP4DNI.js +0 -218
  784. package/dist/chunk-SI2RFGQX.js +0 -158
  785. package/dist/chunk-SKHYIIH4.js +0 -107
  786. package/dist/chunk-SOC5IBQT.js +0 -383
  787. package/dist/chunk-SUMBC7BQ.js +0 -396
  788. package/dist/chunk-T4UTYGB2.js +0 -110
  789. package/dist/chunk-T6N33M46.js +0 -251
  790. package/dist/chunk-TD5EKKVD.js +0 -83
  791. package/dist/chunk-TGG3ODCS.js +0 -99
  792. package/dist/chunk-TGVTVLNI.js +0 -401
  793. package/dist/chunk-TLTE3QSX.js +0 -73
  794. package/dist/chunk-TXAMGOUG.js +0 -2580
  795. package/dist/chunk-U4OIE2MJ.js +0 -271
  796. package/dist/chunk-UBTDG6GC.js +0 -126
  797. package/dist/chunk-UFRXYZCJ.js +0 -125
  798. package/dist/chunk-UHU2WESP.js +0 -340
  799. package/dist/chunk-UKDLZ76A.js +0 -2434
  800. package/dist/chunk-UPRN4FBY.js +0 -38
  801. package/dist/chunk-UQDT3SM2.js +0 -27
  802. package/dist/chunk-UQFUI3KT.js +0 -3070
  803. package/dist/chunk-UXBW2TYH.js +0 -1356
  804. package/dist/chunk-UXZLTAJO.js +0 -227
  805. package/dist/chunk-UZAVFOZC.js +0 -505
  806. package/dist/chunk-V2A4I4GC.js +0 -265
  807. package/dist/chunk-VAN6CEAV.js +0 -234
  808. package/dist/chunk-VDHWFRTL.js +0 -58
  809. package/dist/chunk-VLDKWGHD.js +0 -61
  810. package/dist/chunk-W4ABZ6XO.js +0 -4480
  811. package/dist/chunk-W4ABZ6XO.js.map +0 -1
  812. package/dist/chunk-W4TOPPVT.js +0 -162
  813. package/dist/chunk-W7P44UAE.js +0 -278
  814. package/dist/chunk-WAVR3UIC.js +0 -773
  815. package/dist/chunk-WLRB74VH.js +0 -251
  816. package/dist/chunk-WOVGVEKP.js +0 -192
  817. package/dist/chunk-WQ35KUFP.js +0 -264
  818. package/dist/chunk-WSBUFP77.js +0 -391
  819. package/dist/chunk-X56NEOYY.js +0 -283
  820. package/dist/chunk-XET2K3TU.js +0 -138
  821. package/dist/chunk-XJPDGFVT.js +0 -307
  822. package/dist/chunk-XK4VFZHQ.js +0 -246
  823. package/dist/chunk-XVP23IJS.js +0 -236
  824. package/dist/chunk-YEU2JC3B.js +0 -27
  825. package/dist/chunk-YFU2VZXS.js +0 -249
  826. package/dist/chunk-YMY2OO3V.js +0 -584
  827. package/dist/chunk-YNRZN3TU.js +0 -57
  828. package/dist/chunk-YP4SNX4P.js +0 -220
  829. package/dist/chunk-YSZAX6WJ.js +0 -196
  830. package/dist/chunk-YTUVANLR.js +0 -93
  831. package/dist/chunk-YUEYZTBP.js +0 -1309
  832. package/dist/chunk-YUVS7HYN.js +0 -129
  833. package/dist/chunk-YVQUPHYL.js +0 -234
  834. package/dist/chunk-YW4YRCXI.js +0 -3110
  835. package/dist/chunk-YZ2G24VJ.js +0 -1185
  836. package/dist/chunk-ZBTYTG4E.js +0 -247
  837. package/dist/chunk-ZCQJUYDX.js +0 -178
  838. package/dist/chunk-ZD67RM6G.js +0 -60
  839. package/dist/computer-viewer-BWWVUD6J.js +0 -21
  840. package/dist/connection-step-up-7ICLBORD.js +0 -145
  841. package/dist/embedded-new-voice-VD6GR5JQ.js +0 -25
  842. package/dist/embedded-voice-J2B6J2QQ.js +0 -25
  843. package/dist/fleet-decision-row-B672XMNG.js +0 -361
  844. package/dist/model-policy-picker-menu-HT3TWGSS.js +0 -23
  845. package/dist/payment-page-card-4LZPJ3OK.js +0 -226
  846. package/dist/platform-activity-row-TWXWUCXD.js +0 -156
  847. package/dist/queue-surface-implementation-SQ7K2TM4.js +0 -932
  848. package/dist/recorder-host-N2S7G3CW.js +0 -80
  849. package/dist/sandbox-files-6CKWJ2CU.js +0 -28
  850. package/dist/session-connect-cards-VNQWMX7A.js +0 -27
  851. package/dist/session-realtime-CRG7DRV6.js +0 -30
  852. package/dist/timeline-annotation-markers-JXCNK4S6.js +0 -157
  853. package/dist/timeline-annotation-selection-5ZTVYJXT.js +0 -208
  854. package/dist/timeline-annotations-dialog-4QWVCZCF.js +0 -283
  855. /package/dist/{browser-viewer-WGRM3JME.js.map → browser-viewer-EIEMRVFF.js.map} +0 -0
  856. /package/dist/{chat-interactive-block-5E3UQYHO.js.map → chat-interactive-block-FV37LWYZ.js.map} +0 -0
  857. /package/dist/{chunk-CJEQQBNZ.js.map → chunk-2COBAJC7.js.map} +0 -0
  858. /package/dist/{chunk-H6PJEWZH.js.map → chunk-2HS3IUXE.js.map} +0 -0
  859. /package/dist/{chunk-ATVSG5CO.js.map → chunk-2JTMFYCT.js.map} +0 -0
  860. /package/dist/{chunk-L64LMYJD.js.map → chunk-2JXKP4M6.js.map} +0 -0
  861. /package/dist/{chunk-I4CXHN6E.js.map → chunk-2P5K7CBH.js.map} +0 -0
  862. /package/dist/{chunk-PH2FDKJE.js.map → chunk-2XGRHMRI.js.map} +0 -0
  863. /package/dist/{chunk-OQEAJGAJ.js.map → chunk-332BYSAZ.js.map} +0 -0
  864. /package/dist/{chunk-SI2RFGQX.js.map → chunk-3EM5GTP3.js.map} +0 -0
  865. /package/dist/{chunk-FC6MLU5C.js.map → chunk-3L5ATO4A.js.map} +0 -0
  866. /package/dist/{chunk-SKHYIIH4.js.map → chunk-3S3PJB7J.js.map} +0 -0
  867. /package/dist/{chunk-37J3ZX2N.js.map → chunk-3SBKYPNM.js.map} +0 -0
  868. /package/dist/{chunk-D45IDQBW.js.map → chunk-3Z7VA6ET.js.map} +0 -0
  869. /package/dist/{chunk-EMJSJTIE.js.map → chunk-43BRJBEV.js.map} +0 -0
  870. /package/dist/{chunk-2L7TCAO4.js.map → chunk-46LZO4ZO.js.map} +0 -0
  871. /package/dist/{chunk-UPRN4FBY.js.map → chunk-46ZC5VNC.js.map} +0 -0
  872. /package/dist/{chunk-LDZSUY7K.js.map → chunk-4AH4EEHE.js.map} +0 -0
  873. /package/dist/{chunk-M73QQXUQ.js.map → chunk-4D3YJNVN.js.map} +0 -0
  874. /package/dist/{chunk-I6YOCSEP.js.map → chunk-4I4RTI4D.js.map} +0 -0
  875. /package/dist/{chunk-NZFMEGPE.js.map → chunk-4KASGJTF.js.map} +0 -0
  876. /package/dist/{chunk-LPHBZCCV.js.map → chunk-4RUKLIOF.js.map} +0 -0
  877. /package/dist/{chunk-MU6IU4IH.js.map → chunk-4UU7FN3I.js.map} +0 -0
  878. /package/dist/{chunk-GH3Q5XW4.js.map → chunk-4ZRNASBF.js.map} +0 -0
  879. /package/dist/{chunk-26KK6DN5.js.map → chunk-5EJBPQI2.js.map} +0 -0
  880. /package/dist/{chunk-FYOGQHCD.js.map → chunk-5G4IGG7F.js.map} +0 -0
  881. /package/dist/{chunk-GPRM5GYZ.js.map → chunk-5JAYZOAW.js.map} +0 -0
  882. /package/dist/{chunk-5EZELID5.js.map → chunk-5JOKVDSR.js.map} +0 -0
  883. /package/dist/{chunk-2VHPKSFK.js.map → chunk-5MP3G7ZV.js.map} +0 -0
  884. /package/dist/{chunk-MBYHDOTU.js.map → chunk-5OVRMKP5.js.map} +0 -0
  885. /package/dist/{chunk-ORSFNFNY.js.map → chunk-5SGTRULO.js.map} +0 -0
  886. /package/dist/{chunk-64XZTYX4.js.map → chunk-5SOL4INY.js.map} +0 -0
  887. /package/dist/{chunk-YEU2JC3B.js.map → chunk-5Y34P32B.js.map} +0 -0
  888. /package/dist/{chunk-DG3GW325.js.map → chunk-62HIKJ5F.js.map} +0 -0
  889. /package/dist/{chunk-HWOYJOKK.js.map → chunk-62T2ZPD5.js.map} +0 -0
  890. /package/dist/{chunk-2U5ZJMNP.js.map → chunk-63VNZRLY.js.map} +0 -0
  891. /package/dist/{chunk-PMBZMVKE.js.map → chunk-6CDBX3XG.js.map} +0 -0
  892. /package/dist/{chunk-W7P44UAE.js.map → chunk-6D3D2JWY.js.map} +0 -0
  893. /package/dist/{chunk-FFXJF5KU.js.map → chunk-6DOIINY4.js.map} +0 -0
  894. /package/dist/{chunk-IKAVNCO5.js.map → chunk-6DQBUKGJ.js.map} +0 -0
  895. /package/dist/{chunk-IAXF3IO6.js.map → chunk-6SETNFNH.js.map} +0 -0
  896. /package/dist/{chunk-QI5RXPYP.js.map → chunk-6XYFMHNT.js.map} +0 -0
  897. /package/dist/{chunk-MB5WRIYX.js.map → chunk-6YU3WV2P.js.map} +0 -0
  898. /package/dist/{chunk-RMVKH4EE.js.map → chunk-6YUHDFOZ.js.map} +0 -0
  899. /package/dist/{chunk-YZ2G24VJ.js.map → chunk-72EOXOR7.js.map} +0 -0
  900. /package/dist/{chunk-4YQFDBKE.js.map → chunk-72ND4ALI.js.map} +0 -0
  901. /package/dist/{chunk-X56NEOYY.js.map → chunk-757LE32E.js.map} +0 -0
  902. /package/dist/{chunk-3UG2AJHR.js.map → chunk-7FDEV6XW.js.map} +0 -0
  903. /package/dist/{chunk-XET2K3TU.js.map → chunk-7S2S4MXR.js.map} +0 -0
  904. /package/dist/{chunk-67MFNMGH.js.map → chunk-7SYCHMXS.js.map} +0 -0
  905. /package/dist/{chunk-MQFJPFL4.js.map → chunk-7TVAPQOV.js.map} +0 -0
  906. /package/dist/{chunk-ES3JAYQJ.js.map → chunk-7UDLRDHK.js.map} +0 -0
  907. /package/dist/{chunk-GX3RAB4W.js.map → chunk-7YLQCMZP.js.map} +0 -0
  908. /package/dist/{chunk-RPWI6A3H.js.map → chunk-A5GX3CAE.js.map} +0 -0
  909. /package/dist/{chunk-6H2OQ6XG.js.map → chunk-A7EBV2EB.js.map} +0 -0
  910. /package/dist/{chunk-HQZ6NGUU.js.map → chunk-AB5SPXUR.js.map} +0 -0
  911. /package/dist/{chunk-AQHQUPEF.js.map → chunk-AHVQGL5A.js.map} +0 -0
  912. /package/dist/{chunk-Q35LFE7H.js.map → chunk-AI77ZKEV.js.map} +0 -0
  913. /package/dist/{chunk-N7IOCNWK.js.map → chunk-AIX2D6RB.js.map} +0 -0
  914. /package/dist/{chunk-WOVGVEKP.js.map → chunk-AVSIHP7Q.js.map} +0 -0
  915. /package/dist/{chunk-EMART4X3.js.map → chunk-AWK23Q32.js.map} +0 -0
  916. /package/dist/{chunk-3JYID53J.js.map → chunk-AYVWA6KD.js.map} +0 -0
  917. /package/dist/{chunk-A4SKSSSS.js.map → chunk-AYZXE4IM.js.map} +0 -0
  918. /package/dist/{chunk-CWKFPDYB.js.map → chunk-AZGGSPTE.js.map} +0 -0
  919. /package/dist/{chunk-DLHR7HHS.js.map → chunk-B45TB4HY.js.map} +0 -0
  920. /package/dist/{chunk-7TEXZ5LW.js.map → chunk-BIUJHNVR.js.map} +0 -0
  921. /package/dist/{chunk-AJEOTFQE.js.map → chunk-BJUOKUE5.js.map} +0 -0
  922. /package/dist/{chunk-CGYPX3HJ.js.map → chunk-BPEEVMKH.js.map} +0 -0
  923. /package/dist/{chunk-PQ7WJAKL.js.map → chunk-BPHPAGYF.js.map} +0 -0
  924. /package/dist/{chunk-XJPDGFVT.js.map → chunk-BXMND6YU.js.map} +0 -0
  925. /package/dist/{chunk-FN5UTQSL.js.map → chunk-C6OM2SRG.js.map} +0 -0
  926. /package/dist/{chunk-YUEYZTBP.js.map → chunk-CIRCUDKF.js.map} +0 -0
  927. /package/dist/{chunk-IGUPUA3G.js.map → chunk-CLKR4UG3.js.map} +0 -0
  928. /package/dist/{chunk-7QODDTOI.js.map → chunk-CPX6BHER.js.map} +0 -0
  929. /package/dist/{chunk-FZOK37SC.js.map → chunk-CVC4RO7D.js.map} +0 -0
  930. /package/dist/{chunk-6C55RLFY.js.map → chunk-D3YJAQGK.js.map} +0 -0
  931. /package/dist/{chunk-QAHGGBL2.js.map → chunk-DFQ72BLS.js.map} +0 -0
  932. /package/dist/{chunk-HSEHIVAE.js.map → chunk-DG65PJOZ.js.map} +0 -0
  933. /package/dist/{chunk-DM7JLUWN.js.map → chunk-DNAXAS5R.js.map} +0 -0
  934. /package/dist/{chunk-NSBOITEM.js.map → chunk-DO247ITS.js.map} +0 -0
  935. /package/dist/{chunk-NNIUBJOE.js.map → chunk-DONBARLL.js.map} +0 -0
  936. /package/dist/{chunk-5W4ZGFXZ.js.map → chunk-DTLXQ3ZU.js.map} +0 -0
  937. /package/dist/{chunk-EIQQYUOT.js.map → chunk-EAXTACI4.js.map} +0 -0
  938. /package/dist/{chunk-JOKNFHFU.js.map → chunk-EDPH7AJH.js.map} +0 -0
  939. /package/dist/{chunk-MDIHQGPV.js.map → chunk-EFKQHCGJ.js.map} +0 -0
  940. /package/dist/{chunk-33QC4RN7.js.map → chunk-EILSPMVD.js.map} +0 -0
  941. /package/dist/{chunk-PNLVWZSM.js.map → chunk-EK7KIETS.js.map} +0 -0
  942. /package/dist/{chunk-OVAT4PIR.js.map → chunk-EMWT6GOK.js.map} +0 -0
  943. /package/dist/{chunk-GHLUZSIB.js.map → chunk-EO22NST7.js.map} +0 -0
  944. /package/dist/{chunk-P2OHWZMB.js.map → chunk-ER5MYLIE.js.map} +0 -0
  945. /package/dist/{chunk-YVQUPHYL.js.map → chunk-ES5HKVQF.js.map} +0 -0
  946. /package/dist/{chunk-H35G5UHL.js.map → chunk-F26YBYAZ.js.map} +0 -0
  947. /package/dist/{chunk-FD6F2OE5.js.map → chunk-F6QP4GSK.js.map} +0 -0
  948. /package/dist/{chunk-RLNJSAHP.js.map → chunk-F7QEO7M2.js.map} +0 -0
  949. /package/dist/{chunk-J3CHK7NH.js.map → chunk-FJFGDLXB.js.map} +0 -0
  950. /package/dist/{chunk-CYBRD5BP.js.map → chunk-FLLJ2WXW.js.map} +0 -0
  951. /package/dist/{chunk-RO2UO3VN.js.map → chunk-FMBJKMT4.js.map} +0 -0
  952. /package/dist/{chunk-R7SBV5KD.js.map → chunk-FPN4I4CG.js.map} +0 -0
  953. /package/dist/{chunk-UQFUI3KT.js.map → chunk-FUXFJTXL.js.map} +0 -0
  954. /package/dist/{chunk-JK2WTBLD.js.map → chunk-G6SSSX5R.js.map} +0 -0
  955. /package/dist/{chunk-LT3MK2XP.js.map → chunk-GBGCMHBB.js.map} +0 -0
  956. /package/dist/{chunk-HUKGLWAY.js.map → chunk-GIHE7U3Y.js.map} +0 -0
  957. /package/dist/{chunk-GDWKVSMK.js.map → chunk-GJ4GTYOD.js.map} +0 -0
  958. /package/dist/{chunk-OE4QJJ4C.js.map → chunk-GLSDWNFV.js.map} +0 -0
  959. /package/dist/{chunk-RZ5IQ3SX.js.map → chunk-GMGAW3T6.js.map} +0 -0
  960. /package/dist/{chunk-RFBJ6TUL.js.map → chunk-GNGI6XFN.js.map} +0 -0
  961. /package/dist/{chunk-WQ35KUFP.js.map → chunk-GO5VIAA7.js.map} +0 -0
  962. /package/dist/{chunk-KQBVH5LN.js.map → chunk-GSW4YHZE.js.map} +0 -0
  963. /package/dist/{chunk-OWF2AVT6.js.map → chunk-GUC6IWEY.js.map} +0 -0
  964. /package/dist/{chunk-5SK5PYFN.js.map → chunk-GWAY3SO5.js.map} +0 -0
  965. /package/dist/{chunk-KA5H2Z3E.js.map → chunk-GXOTNT5D.js.map} +0 -0
  966. /package/dist/{chunk-HXANXMPH.js.map → chunk-GZZCVF76.js.map} +0 -0
  967. /package/dist/{chunk-3ZBQIZEM.js.map → chunk-H4VMHFOX.js.map} +0 -0
  968. /package/dist/{chunk-T4UTYGB2.js.map → chunk-HA5RFQAF.js.map} +0 -0
  969. /package/dist/{chunk-PTSRBKQC.js.map → chunk-HFROJDFQ.js.map} +0 -0
  970. /package/dist/{chunk-YP4SNX4P.js.map → chunk-HHFFPE67.js.map} +0 -0
  971. /package/dist/{chunk-4J4IPUPZ.js.map → chunk-HJLHGXWL.js.map} +0 -0
  972. /package/dist/{chunk-CHYAUIZ3.js.map → chunk-HKNMNL7B.js.map} +0 -0
  973. /package/dist/{chunk-CP53LM7W.js.map → chunk-HT7MBHLY.js.map} +0 -0
  974. /package/dist/{chunk-YMY2OO3V.js.map → chunk-I5FSUZVW.js.map} +0 -0
  975. /package/dist/{chunk-CTKUOOU4.js.map → chunk-IINQO425.js.map} +0 -0
  976. /package/dist/{chunk-73YALMGG.js.map → chunk-IIXNEOK4.js.map} +0 -0
  977. /package/dist/{chunk-HUWJZRD3.js.map → chunk-IM3WA5AL.js.map} +0 -0
  978. /package/dist/{chunk-DBGOJIMM.js.map → chunk-IX4P4OGR.js.map} +0 -0
  979. /package/dist/{chunk-OU2J6K3L.js.map → chunk-IX5VHZYS.js.map} +0 -0
  980. /package/dist/{chunk-4IMVT7OU.js.map → chunk-JB3TSUZO.js.map} +0 -0
  981. /package/dist/{chunk-UQDT3SM2.js.map → chunk-JIC6RLUB.js.map} +0 -0
  982. /package/dist/{chunk-QXOO5U46.js.map → chunk-JNJIZCTN.js.map} +0 -0
  983. /package/dist/{chunk-K6JW7GB3.js.map → chunk-JNV5ZPUV.js.map} +0 -0
  984. /package/dist/{chunk-HVL7TCB5.js.map → chunk-JPQFVR24.js.map} +0 -0
  985. /package/dist/{chunk-5NGW5K2D.js.map → chunk-JPZVMXDP.js.map} +0 -0
  986. /package/dist/{chunk-6GBJFFQL.js.map → chunk-JVPF34MX.js.map} +0 -0
  987. /package/dist/{chunk-JAC5I2BN.js.map → chunk-KED67KAF.js.map} +0 -0
  988. /package/dist/{chunk-H2AOQJQP.js.map → chunk-KJ72GMZ2.js.map} +0 -0
  989. /package/dist/{chunk-PCSRHFRF.js.map → chunk-KTGKGHEA.js.map} +0 -0
  990. /package/dist/{chunk-NUZNJSL5.js.map → chunk-KU77XHWB.js.map} +0 -0
  991. /package/dist/{chunk-YFU2VZXS.js.map → chunk-KXBLLFOO.js.map} +0 -0
  992. /package/dist/{chunk-VLDKWGHD.js.map → chunk-L6WVCO6D.js.map} +0 -0
  993. /package/dist/{chunk-TLTE3QSX.js.map → chunk-LPEFULJY.js.map} +0 -0
  994. /package/dist/{chunk-DMQY35LC.js.map → chunk-LRMGPO7E.js.map} +0 -0
  995. /package/dist/{chunk-6DFHNNWJ.js.map → chunk-LVKTKORH.js.map} +0 -0
  996. /package/dist/{chunk-TGG3ODCS.js.map → chunk-MCPKUVMQ.js.map} +0 -0
  997. /package/dist/{chunk-KYDLVMKA.js.map → chunk-MFLU3466.js.map} +0 -0
  998. /package/dist/{chunk-ZD67RM6G.js.map → chunk-MIUJ3EH5.js.map} +0 -0
  999. /package/dist/{chunk-EWJ7WEZT.js.map → chunk-MIUMNTIJ.js.map} +0 -0
  1000. /package/dist/{chunk-2Q4XBV3J.js.map → chunk-ML46TXRM.js.map} +0 -0
  1001. /package/dist/{chunk-3JBLX5BN.js.map → chunk-MO3XJQN2.js.map} +0 -0
  1002. /package/dist/{chunk-SFWP4DNI.js.map → chunk-MQRHTOQ2.js.map} +0 -0
  1003. /package/dist/{chunk-5ERDSF2C.js.map → chunk-MVYQDBE6.js.map} +0 -0
  1004. /package/dist/{chunk-272XEENJ.js.map → chunk-NE5P7LFQ.js.map} +0 -0
  1005. /package/dist/{chunk-YSZAX6WJ.js.map → chunk-NPBEUU22.js.map} +0 -0
  1006. /package/dist/{chunk-ZCQJUYDX.js.map → chunk-NSXKGS2K.js.map} +0 -0
  1007. /package/dist/{chunk-QODAMEOR.js.map → chunk-NUEFORM6.js.map} +0 -0
  1008. /package/dist/{chunk-O4VCJWKV.js.map → chunk-NZOFNQNC.js.map} +0 -0
  1009. /package/dist/{chunk-MB5EK2PA.js.map → chunk-OATXCLTY.js.map} +0 -0
  1010. /package/dist/{chunk-AKQSOR4G.js.map → chunk-OG3ELROW.js.map} +0 -0
  1011. /package/dist/{chunk-W4TOPPVT.js.map → chunk-OI4WS7FW.js.map} +0 -0
  1012. /package/dist/{chunk-3ZVACRTK.js.map → chunk-OITGZUDC.js.map} +0 -0
  1013. /package/dist/{chunk-GWJLR55B.js.map → chunk-OKD2LBMK.js.map} +0 -0
  1014. /package/dist/{chunk-K2WDXLZS.js.map → chunk-OSA4CGST.js.map} +0 -0
  1015. /package/dist/{chunk-TGVTVLNI.js.map → chunk-OXYAKUFU.js.map} +0 -0
  1016. /package/dist/{chunk-SUMBC7BQ.js.map → chunk-OYMSMU5O.js.map} +0 -0
  1017. /package/dist/{chunk-3XS3A6Y6.js.map → chunk-P4NZ72KY.js.map} +0 -0
  1018. /package/dist/{chunk-CYPNXHWM.js.map → chunk-PBYL2VIM.js.map} +0 -0
  1019. /package/dist/{chunk-UZAVFOZC.js.map → chunk-PDW3OOSZ.js.map} +0 -0
  1020. /package/dist/{chunk-6M2WXQX5.js.map → chunk-PGRKTQIW.js.map} +0 -0
  1021. /package/dist/{chunk-4PG2BEQA.js.map → chunk-PPQJIVGM.js.map} +0 -0
  1022. /package/dist/{chunk-UFRXYZCJ.js.map → chunk-PYMQM65Y.js.map} +0 -0
  1023. /package/dist/{chunk-GYNTJYWY.js.map → chunk-Q273Q33U.js.map} +0 -0
  1024. /package/dist/{chunk-UHU2WESP.js.map → chunk-Q4CLS2HL.js.map} +0 -0
  1025. /package/dist/{chunk-GYWQ4KVM.js.map → chunk-QA5UNVHD.js.map} +0 -0
  1026. /package/dist/{chunk-LLVJ3P2N.js.map → chunk-QFOBUA2J.js.map} +0 -0
  1027. /package/dist/{chunk-2MXP6ZRP.js.map → chunk-QLIM4D56.js.map} +0 -0
  1028. /package/dist/{chunk-KQVHSEQQ.js.map → chunk-QMQF5U2D.js.map} +0 -0
  1029. /package/dist/{chunk-IXPLYZFO.js.map → chunk-QNOWKKZ4.js.map} +0 -0
  1030. /package/dist/{chunk-PTUIF4TT.js.map → chunk-QPOUPVPD.js.map} +0 -0
  1031. /package/dist/{chunk-FE4HNBHF.js.map → chunk-QTJAQ6DS.js.map} +0 -0
  1032. /package/dist/{chunk-LK3AAMN7.js.map → chunk-QUOFP3G7.js.map} +0 -0
  1033. /package/dist/{chunk-6O6CHBD3.js.map → chunk-QVOTPOXK.js.map} +0 -0
  1034. /package/dist/{chunk-ROCQ3IDW.js.map → chunk-QYZ5RVGM.js.map} +0 -0
  1035. /package/dist/{chunk-TXAMGOUG.js.map → chunk-R7CVDKRN.js.map} +0 -0
  1036. /package/dist/{chunk-3ITEAD3E.js.map → chunk-RB7MXNZD.js.map} +0 -0
  1037. /package/dist/{chunk-KREVCOE7.js.map → chunk-RDZQFZOQ.js.map} +0 -0
  1038. /package/dist/{chunk-AI7XM4MY.js.map → chunk-RIHKEGWS.js.map} +0 -0
  1039. /package/dist/{chunk-YNRZN3TU.js.map → chunk-ROSB7GF6.js.map} +0 -0
  1040. /package/dist/{chunk-3MZCXSC7.js.map → chunk-RP3YMYCX.js.map} +0 -0
  1041. /package/dist/{chunk-U4OIE2MJ.js.map → chunk-RPHXJHNX.js.map} +0 -0
  1042. /package/dist/{chunk-CQW4ZPU4.js.map → chunk-RVC3M66H.js.map} +0 -0
  1043. /package/dist/{chunk-BMOYN4HY.js.map → chunk-S3OTJAAC.js.map} +0 -0
  1044. /package/dist/{chunk-2Y53MMGA.js.map → chunk-SBWPMVRN.js.map} +0 -0
  1045. /package/dist/{chunk-FT4ZKYTG.js.map → chunk-SERECSAR.js.map} +0 -0
  1046. /package/dist/{chunk-6V2UH36U.js.map → chunk-SHSEF3GJ.js.map} +0 -0
  1047. /package/dist/{chunk-2AU2S5NP.js.map → chunk-SMS2M3RG.js.map} +0 -0
  1048. /package/dist/{chunk-BY7AWWDB.js.map → chunk-SRDHDIRQ.js.map} +0 -0
  1049. /package/dist/{chunk-46USHCHK.js.map → chunk-SXRYA7NN.js.map} +0 -0
  1050. /package/dist/{chunk-NDJPEX7P.js.map → chunk-SYA3WYG4.js.map} +0 -0
  1051. /package/dist/{chunk-HUTQJY3F.js.map → chunk-SYYFA7W7.js.map} +0 -0
  1052. /package/dist/{chunk-L7ZLPS37.js.map → chunk-T2QDSTBH.js.map} +0 -0
  1053. /package/dist/{chunk-T6N33M46.js.map → chunk-TFSCGFYV.js.map} +0 -0
  1054. /package/dist/{chunk-XK4VFZHQ.js.map → chunk-TGCKZOSX.js.map} +0 -0
  1055. /package/dist/{chunk-GA42NSDJ.js.map → chunk-THILLYQM.js.map} +0 -0
  1056. /package/dist/{chunk-BZ4GSY44.js.map → chunk-TI6LGUEZ.js.map} +0 -0
  1057. /package/dist/{chunk-GISBCT5E.js.map → chunk-TSY6YZL2.js.map} +0 -0
  1058. /package/dist/{chunk-DD3DT5MY.js.map → chunk-TW2RHTLH.js.map} +0 -0
  1059. /package/dist/{chunk-RTJVIXH5.js.map → chunk-TWA5G277.js.map} +0 -0
  1060. /package/dist/{chunk-ZBTYTG4E.js.map → chunk-TZZ2S4XI.js.map} +0 -0
  1061. /package/dist/{chunk-VDHWFRTL.js.map → chunk-U5D3K53R.js.map} +0 -0
  1062. /package/dist/{chunk-WLRB74VH.js.map → chunk-UECD27LX.js.map} +0 -0
  1063. /package/dist/{chunk-HHUTU5EN.js.map → chunk-UFJDETKG.js.map} +0 -0
  1064. /package/dist/{chunk-PV7X4PRR.js.map → chunk-UHCFYX4I.js.map} +0 -0
  1065. /package/dist/{chunk-NLKHAZMG.js.map → chunk-UHTURYJO.js.map} +0 -0
  1066. /package/dist/{chunk-EBVL3YJQ.js.map → chunk-UJH63JT3.js.map} +0 -0
  1067. /package/dist/{chunk-5UI3VPCY.js.map → chunk-UOLDS6S5.js.map} +0 -0
  1068. /package/dist/{chunk-BMSMK7SA.js.map → chunk-UUE3OGXI.js.map} +0 -0
  1069. /package/dist/{chunk-WSBUFP77.js.map → chunk-UUNJ2E57.js.map} +0 -0
  1070. /package/dist/{chunk-NLYAWFDY.js.map → chunk-UYQVWRAH.js.map} +0 -0
  1071. /package/dist/{chunk-VAN6CEAV.js.map → chunk-UYWVK7JQ.js.map} +0 -0
  1072. /package/dist/{chunk-UBTDG6GC.js.map → chunk-UYWWUEL4.js.map} +0 -0
  1073. /package/dist/{chunk-2WF5XIPA.js.map → chunk-V4CQKX5H.js.map} +0 -0
  1074. /package/dist/{chunk-3NRJ4Z3A.js.map → chunk-V4QM7GDQ.js.map} +0 -0
  1075. /package/dist/{chunk-6LUF4TOE.js.map → chunk-V5Y74WII.js.map} +0 -0
  1076. /package/dist/{chunk-YUVS7HYN.js.map → chunk-VGGZLUQK.js.map} +0 -0
  1077. /package/dist/{chunk-35LBFD5I.js.map → chunk-VGX636MB.js.map} +0 -0
  1078. /package/dist/{chunk-WAVR3UIC.js.map → chunk-VGZLFQO2.js.map} +0 -0
  1079. /package/dist/{chunk-IMWP2Q4W.js.map → chunk-VJWZATNF.js.map} +0 -0
  1080. /package/dist/{chunk-DHLGGANG.js.map → chunk-VMWCIC2N.js.map} +0 -0
  1081. /package/dist/{chunk-UXZLTAJO.js.map → chunk-VPWKTIU5.js.map} +0 -0
  1082. /package/dist/{chunk-JTRRMV7B.js.map → chunk-VXOLG6YB.js.map} +0 -0
  1083. /package/dist/{chunk-7JNWIGM4.js.map → chunk-W2NAU5VB.js.map} +0 -0
  1084. /package/dist/{chunk-AP4FMXAM.js.map → chunk-WGORKMR3.js.map} +0 -0
  1085. /package/dist/{chunk-HTYDPAJL.js.map → chunk-WMIDELSJ.js.map} +0 -0
  1086. /package/dist/{chunk-SOC5IBQT.js.map → chunk-WSOSGL2G.js.map} +0 -0
  1087. /package/dist/{chunk-A7Z65D33.js.map → chunk-WXUUOM4X.js.map} +0 -0
  1088. /package/dist/{chunk-L4PIAAQB.js.map → chunk-WZ74QHLE.js.map} +0 -0
  1089. /package/dist/{chunk-M7NPDODK.js.map → chunk-X2OWM2ME.js.map} +0 -0
  1090. /package/dist/{chunk-B6YDINPE.js.map → chunk-X6UMGG4T.js.map} +0 -0
  1091. /package/dist/{chunk-YTUVANLR.js.map → chunk-XDXKB25W.js.map} +0 -0
  1092. /package/dist/{chunk-ACUDUVDJ.js.map → chunk-XE4PHI74.js.map} +0 -0
  1093. /package/dist/{chunk-R6WQLIFX.js.map → chunk-XHF2XNU5.js.map} +0 -0
  1094. /package/dist/{chunk-D4RTU236.js.map → chunk-XLJ4SQFS.js.map} +0 -0
  1095. /package/dist/{chunk-UKDLZ76A.js.map → chunk-XOD4FX6M.js.map} +0 -0
  1096. /package/dist/{chunk-YW4YRCXI.js.map → chunk-XODQ2GPF.js.map} +0 -0
  1097. /package/dist/{chunk-JOVCPP44.js.map → chunk-XT54RTAM.js.map} +0 -0
  1098. /package/dist/{chunk-R6OBJ7LF.js.map → chunk-YAVW5OJ5.js.map} +0 -0
  1099. /package/dist/{chunk-TD5EKKVD.js.map → chunk-YDQHFJM2.js.map} +0 -0
  1100. /package/dist/{chunk-UXBW2TYH.js.map → chunk-YH6O6OQ6.js.map} +0 -0
  1101. /package/dist/{chunk-6U3PE427.js.map → chunk-YIKPC2QP.js.map} +0 -0
  1102. /package/dist/{chunk-M72GFKDP.js.map → chunk-ZD7PKYC4.js.map} +0 -0
  1103. /package/dist/{chunk-S7NX6KSE.js.map → chunk-ZEQYHEWP.js.map} +0 -0
  1104. /package/dist/{chunk-2ZR75AUO.js.map → chunk-ZMYL6DTE.js.map} +0 -0
  1105. /package/dist/{chunk-GKA5LFYR.js.map → chunk-ZP3QCPYG.js.map} +0 -0
  1106. /package/dist/{chunk-V2A4I4GC.js.map → chunk-ZRVUCTSI.js.map} +0 -0
  1107. /package/dist/{chunk-CYPMAJ75.js.map → chunk-ZSI3ITRK.js.map} +0 -0
  1108. /package/dist/{chunk-XVP23IJS.js.map → chunk-ZZMEQCIZ.js.map} +0 -0
  1109. /package/dist/{computer-viewer-BWWVUD6J.js.map → computer-viewer-ZBY3BPYW.js.map} +0 -0
  1110. /package/dist/{connection-step-up-7ICLBORD.js.map → connection-step-up-JQ4OFSQN.js.map} +0 -0
  1111. /package/dist/{embedded-new-voice-VD6GR5JQ.js.map → embedded-new-voice-ZB5XLKLU.js.map} +0 -0
  1112. /package/dist/{embedded-voice-J2B6J2QQ.js.map → embedded-voice-MZJISDCS.js.map} +0 -0
  1113. /package/dist/{fleet-decision-row-B672XMNG.js.map → fleet-decision-row-LG3SYVR3.js.map} +0 -0
  1114. /package/dist/{model-policy-picker-menu-HT3TWGSS.js.map → model-policy-picker-menu-5Y72PLNF.js.map} +0 -0
  1115. /package/dist/{payment-page-card-4LZPJ3OK.js.map → payment-page-card-YPSXRHBA.js.map} +0 -0
  1116. /package/dist/{platform-activity-row-TWXWUCXD.js.map → platform-activity-row-ZU4MEBNK.js.map} +0 -0
  1117. /package/dist/{queue-surface-implementation-SQ7K2TM4.js.map → queue-surface-implementation-6Q25RPH6.js.map} +0 -0
  1118. /package/dist/{recorder-host-N2S7G3CW.js.map → recorder-host-JD4GWJ2Z.js.map} +0 -0
  1119. /package/dist/{sandbox-files-6CKWJ2CU.js.map → sandbox-files-HCLEEJMU.js.map} +0 -0
  1120. /package/dist/{session-connect-cards-VNQWMX7A.js.map → session-connect-cards-DRKEN3Z4.js.map} +0 -0
  1121. /package/dist/{session-realtime-CRG7DRV6.js.map → session-realtime-IZOTTRH6.js.map} +0 -0
  1122. /package/dist/{timeline-annotation-markers-JXCNK4S6.js.map → timeline-annotation-markers-WWXNJOXI.js.map} +0 -0
  1123. /package/dist/{timeline-annotation-selection-5ZTVYJXT.js.map → timeline-annotation-selection-ZKRIQFIQ.js.map} +0 -0
  1124. /package/dist/{timeline-annotations-dialog-4QWVCZCF.js.map → timeline-annotations-dialog-4IMKTOXJ.js.map} +0 -0
@@ -1,3996 +0,0 @@
1
- "use client";
2
- import {
3
- useEntranceAnimation,
4
- useEntranceAnimationLive
5
- } from "./chunk-EAG6A27Q.js";
6
- import {
7
- PierreDiff
8
- } from "./chunk-SFWP4DNI.js";
9
- import {
10
- useThemeType
11
- } from "./chunk-B27E3V37.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-UKDLZ76A.js";
37
- import {
38
- createTurnSummaryContext,
39
- formatElapsed,
40
- resolveTurnSummaryFacets,
41
- selectTurnSummaryFacets,
42
- turnSummaryFallbackLabel,
43
- turnSummaryLiveMarkState
44
- } from "./chunk-FPSWN6GU.js";
45
- import {
46
- approvalsFromRequiresAction
47
- } from "./chunk-BC7PTVXW.js";
48
- import {
49
- invokedToolCall,
50
- learningRefusalBody,
51
- learningRefusalPlace,
52
- learningRefusalPlaceLabel,
53
- learningRefusalTitle
54
- } from "./chunk-MFVUNNFN.js";
55
- import {
56
- workerRowTitleParts
57
- } from "./chunk-V5CHHBGS.js";
58
- import {
59
- PatchApplyCommand,
60
- useRetainedImageObjectUrl
61
- } from "./chunk-QXOO5U46.js";
62
- import {
63
- isPatchFilename,
64
- isRetainedImageContentType,
65
- paymentPageOf
66
- } from "./chunk-II376XH3.js";
67
- import {
68
- generatedImageReceipt,
69
- mediaPreviewFact,
70
- parseToolArgs,
71
- retainedScreenshotMetadata,
72
- retainedToolResultImages,
73
- screenshotDataUrl,
74
- unwrapMcpOutput
75
- } from "./chunk-E4BLXMIZ.js";
76
- import {
77
- CopyButton,
78
- LazyPart,
79
- MOTION_INSPECT_SCALE,
80
- Markdown
81
- } from "./chunk-BZ4GSY44.js";
82
- import {
83
- ActivityDisclosure,
84
- BodyNote,
85
- CompactActivityContext,
86
- MediaEmpty,
87
- MediaSkeleton,
88
- PayloadBlock,
89
- ScreenshotFigure,
90
- SecretRefText,
91
- TermBlock,
92
- Thumbnail,
93
- ToolCallTruncationProvider,
94
- ToolOutputPreviewProvider,
95
- useForcedDefaultOpen,
96
- useTimelineSearchReveal
97
- } from "./chunk-K6JW7GB3.js";
98
- import {
99
- DecisionActions,
100
- DecisionButton,
101
- DecisionMark,
102
- decisionCardClass,
103
- decisionCardPad
104
- } from "./chunk-2FASQ2SZ.js";
105
- import {
106
- useToolDetails
107
- } from "./chunk-RZLBICR5.js";
108
- import {
109
- LoadFailureNotice,
110
- isChunkLoadError
111
- } from "./chunk-JAC5I2BN.js";
112
- import {
113
- redactDeep,
114
- redactToolCall,
115
- signedValuesDeep
116
- } from "./chunk-YM45PLD6.js";
117
- import {
118
- useOpenGeniLinkResolver
119
- } from "./chunk-W4QUDV6Y.js";
120
- import {
121
- reviewFacts
122
- } from "./chunk-UMLPIMGW.js";
123
- import {
124
- mcpToolLeaf,
125
- toolActionTitle,
126
- toolDisplayName,
127
- wordedToolActionReview
128
- } from "./chunk-J7QHW2KS.js";
129
- import {
130
- ShimmerText
131
- } from "./chunk-HZPCSRSB.js";
132
- import {
133
- displayImageSrc
134
- } from "./chunk-S5ORWTCJ.js";
135
- import {
136
- formatBytes,
137
- truncate,
138
- tryParseJson
139
- } from "./chunk-UIK52VL4.js";
140
- import {
141
- clickDownloadLink,
142
- saveBlob
143
- } from "./chunk-BJFDVT5B.js";
144
- import {
145
- cn
146
- } from "./chunk-TXS65BB2.js";
147
- import {
148
- useOpenGeniText
149
- } from "./chunk-6FWBGVFL.js";
150
-
151
- // src/timeline/retained-loaders.ts
152
- function createWorkspaceRetainedArtifactLoader(client, workspaceId) {
153
- return async (artifact, signal, options) => {
154
- if (artifact.kind === "file" && options?.prefer !== "url") {
155
- const download2 = await client.downloadRetainedArtifact(workspaceId, artifact, { signal });
156
- return download2.bytes;
157
- }
158
- const download = await client.createRetainedArtifactDownloadUrl(workspaceId, artifact, {
159
- signal
160
- });
161
- return { url: download.url, expiresAt: download.expiresAt };
162
- };
163
- }
164
- function createSessionRetainedScreenshotLoader(client, workspaceId, sessionId) {
165
- return async (artifact, signal) => {
166
- const download = await client.downloadRetainedScreenshot(
167
- workspaceId,
168
- sessionId,
169
- artifact.artifactId,
170
- { signal }
171
- );
172
- if (!download.metadata.available || !download.bytes) return null;
173
- 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) {
174
- throw new Error("Retained screenshot receipt verification failed");
175
- }
176
- return download.bytes;
177
- };
178
- }
179
- function createWorkspaceRetainedVideoLoader(client, workspaceId) {
180
- return async (artifactId, signal) => await client.createVideoArtifactPlaybackSource(workspaceId, artifactId, { signal });
181
- }
182
-
183
- // src/components/tool-review-history.tsx
184
- import { createContext, useContext, useEffect, useMemo, useState } from "react";
185
- import { jsx } from "react/jsx-runtime";
186
- var History = createContext(null);
187
- function ToolReviewHistoryProvider({
188
- events,
189
- load,
190
- onViewDetails,
191
- children
192
- }) {
193
- const value = useMemo(
194
- () => ({
195
- approvalIds: new Set(
196
- events.flatMap(
197
- (event) => event.type === "session.requiresAction" ? approvalsFromRequiresAction(event.payload).map((approval) => approval.id) : []
198
- )
199
- ),
200
- revision: [...events].reverse().find(
201
- (event) => event.type === "session.requiresAction" || event.type === "agent.toolCall.output" || event.type.startsWith("turn.") || event.type === "user.approvalDecision" || event.type.startsWith("session.control.")
202
- )?.sequence ?? 0,
203
- load,
204
- onViewDetails
205
- }),
206
- [events, load, onViewDetails]
207
- );
208
- return /* @__PURE__ */ jsx(History.Provider, { value, children });
209
- }
210
- function useHasToolReview(approvalId) {
211
- const history = useContext(History);
212
- return Boolean(approvalId && history?.approvalIds.has(approvalId));
213
- }
214
- function useRecordedToolReview(approvalId) {
215
- const history = useContext(History);
216
- const [review, setReview] = useState(null);
217
- const load = history?.load;
218
- const revision = history?.revision;
219
- useEffect(() => {
220
- if (!load || !approvalId) return;
221
- let active = true;
222
- void load(approvalId).then(
223
- (value) => {
224
- if (active && value.id === approvalId) setReview(value);
225
- },
226
- () => void 0
227
- );
228
- return () => {
229
- active = false;
230
- };
231
- }, [approvalId, load, revision]);
232
- const onViewDetails = history?.onViewDetails;
233
- return {
234
- review: review && review.id === approvalId ? review : null,
235
- onViewDetails: review && onViewDetails ? (path) => onViewDetails(review, path) : void 0
236
- };
237
- }
238
-
239
- // src/components/tool-action-review.tsx
240
- import {
241
- ArrowLeftIcon,
242
- CheckIcon,
243
- ChevronRightIcon,
244
- CircleAlertIcon,
245
- CircleSlashIcon,
246
- LoaderCircleIcon,
247
- ShieldCheckIcon
248
- } from "lucide-react";
249
- import {
250
- useEffect as useEffect2,
251
- useId,
252
- useMemo as useMemo2,
253
- useRef,
254
- useState as useState2
255
- } from "react";
256
- import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
257
- var statusText = (t) => ({
258
- pending: t("toolActionReview.approvalNeeded"),
259
- approved: t("toolActionReview.approved"),
260
- executing: t("toolActionReview.approvedRunning"),
261
- completed: t("toolActionReview.approvedDone"),
262
- partial: t("toolActionReview.partlyDone"),
263
- unknown: t("toolActionReview.outcomeUnknown"),
264
- rejected: t("toolActionReview.declined"),
265
- cancelled: t("toolActionReview.cancelled"),
266
- expired: t("toolActionReview.expired"),
267
- revoked: t("toolActionReview.accessUnavailable"),
268
- blocked: t("toolActionReview.blocked"),
269
- stale: t("toolActionReview.noLongerValid"),
270
- failed: t("toolActionReview.failed"),
271
- unavailable: t("toolActionReview.detailsUnavailable")
272
- });
273
- var statusDetail = (t) => ({
274
- unknown: t("toolActionReview.itMayHaveRunCheck"),
275
- rejected: t("toolActionReview.thisActionDidNotRun"),
276
- cancelled: t("toolActionReview.thisActionDidNotRun"),
277
- expired: t("toolActionReview.thisActionDidNotRun2"),
278
- revoked: t("toolActionReview.thisActionDidNotRun3"),
279
- stale: t("toolActionReview.theToolOrAccountChanged"),
280
- partial: t("toolActionReview.someOfItRanCheck"),
281
- failed: t("toolActionReview.theActionRanButReturned")
282
- });
283
- var statusTone = {
284
- pending: "waiting",
285
- approved: "ok",
286
- executing: "ok",
287
- completed: "ok",
288
- partial: "failed",
289
- unknown: "failed",
290
- rejected: "muted",
291
- cancelled: "muted",
292
- expired: "muted",
293
- revoked: "muted",
294
- blocked: "muted",
295
- stale: "muted",
296
- failed: "failed",
297
- unavailable: "muted"
298
- };
299
- var headerPart = "before:inline-block before:w-3 before:text-center before:text-og-fg-muted before:content-['\xB7'_/_'']";
300
- var toneText = {
301
- waiting: "text-og-fg-muted",
302
- ok: "text-og-fg-muted",
303
- failed: "text-og-status-failed",
304
- muted: "text-og-fg-muted"
305
- };
306
- var UNRECOVERABLE_TEXT = (t) => t("toolActionReview.theDetailsOfThisOlder");
307
- var ACCOUNT_OWNER_TEXT = (t, name) => name ? t("toolActionReview.onlyNameCanApprove", { name }) : t("toolActionReview.onlyTheAccountOwnerCanApprove");
308
- function StatusIcon({ status, busy }) {
309
- const className = "size-4";
310
- if (busy || status === "executing" || status === "approved")
311
- return /* @__PURE__ */ jsx2(LoaderCircleIcon, { "aria-hidden": "true", className: cn(className, "animate-spin") });
312
- if (status === "pending") return /* @__PURE__ */ jsx2(ShieldCheckIcon, { "aria-hidden": "true", className });
313
- if (status === "completed") return /* @__PURE__ */ jsx2(CheckIcon, { "aria-hidden": "true", className });
314
- if (statusTone[status] === "failed")
315
- return /* @__PURE__ */ jsx2(CircleAlertIcon, { "aria-hidden": "true", className });
316
- return /* @__PURE__ */ jsx2(CircleSlashIcon, { "aria-hidden": "true", className });
317
- }
318
- function ToolReviewFrame({
319
- tone,
320
- icon,
321
- eyebrow,
322
- title,
323
- titleId,
324
- subtitle,
325
- children,
326
- footer,
327
- bare = false,
328
- ...rest
329
- }) {
330
- const waiting = tone === "waiting";
331
- return /* @__PURE__ */ jsxs(
332
- "article",
333
- {
334
- "aria-labelledby": titleId,
335
- ...rest,
336
- className: cn(
337
- "min-w-0 text-og-fg",
338
- !bare && (waiting ? decisionCardClass : "og-root @container/decision overflow-hidden rounded-og-lg border border-og-border bg-og-surface-1"),
339
- rest.className
340
- ),
341
- children: [
342
- /* @__PURE__ */ jsxs(
343
- "header",
344
- {
345
- className: cn(
346
- "flex min-w-0 items-start gap-3",
347
- bare ? "pb-1" : cn(decisionCardPad, "pt-4", !children && !footer && "pb-4")
348
- ),
349
- children: [
350
- /* @__PURE__ */ jsx2(DecisionMark, { tone: tone === "failed" ? "danger" : "neutral", children: icon }),
351
- /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 pt-px", children: [
352
- /* @__PURE__ */ jsx2(
353
- "h3",
354
- {
355
- tabIndex: -1,
356
- id: titleId,
357
- className: "m-0 break-words text-og-md font-semibold leading-snug text-balance text-og-fg outline-hidden [overflow-wrap:anywhere]",
358
- children: title
359
- }
360
- ),
361
- /* @__PURE__ */ jsx2("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: [
362
- /* @__PURE__ */ jsx2("span", { className: headerPart, children: /* @__PURE__ */ jsxs(
363
- "span",
364
- {
365
- className: cn("inline-flex items-center gap-1.5", toneText[tone]),
366
- role: "status",
367
- "aria-live": "polite",
368
- children: [
369
- waiting ? /* @__PURE__ */ jsx2(
370
- "span",
371
- {
372
- "aria-hidden": "true",
373
- className: "size-1.5 shrink-0 rounded-full bg-og-status-waiting"
374
- }
375
- ) : null,
376
- eyebrow
377
- ]
378
- }
379
- ) }),
380
- subtitle ? /* @__PURE__ */ jsx2("span", { className: cn(headerPart, "min-w-0 break-words [overflow-wrap:anywhere]"), children: subtitle }) : null
381
- ] }) })
382
- ] })
383
- ]
384
- }
385
- ),
386
- children ? /* @__PURE__ */ jsx2(
387
- "div",
388
- {
389
- className: cn("min-w-0", bare ? "pt-2" : cn(decisionCardPad, "pt-3", !footer && "pb-4")),
390
- children
391
- }
392
- ) : null,
393
- footer ? /* @__PURE__ */ jsx2("footer", { className: cn("min-w-0", bare ? "pt-3" : cn(decisionCardPad, "pb-4 pt-4")), children: footer }) : null
394
- ]
395
- }
396
- );
397
- }
398
- 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";
399
- function ReviewFacts({
400
- review,
401
- onViewDetails,
402
- showStatusDetail
403
- }) {
404
- const t = useOpenGeniText();
405
- const canOpen = Boolean(onViewDetails && review.detailsAvailable);
406
- const { selection, shown, hiddenFields, effects } = reviewFacts(review);
407
- const note = (showStatusDetail ? review.status === "blocked" ? t("toolActionReview.reasonItDidNotRun", {
408
- reason: review.reason || t("toolActionReview.yourPermissionSettingsBlockThis")
409
- }) : statusDetail(t)[review.status] : void 0) ?? review.consequence;
410
- const samples = review.samples ?? [];
411
- const count = review.selectionCount ?? 0;
412
- const noun = review.selectionKind === "threads" ? count === 1 ? "conversation" : "conversations" : count === 1 ? "message" : "messages";
413
- const hasContent = note || effects.length || selection || shown.length || hiddenFields > 0 || samples.length;
414
- if (!hasContent) return null;
415
- return /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-3 text-og-sm", children: [
416
- note ? /* @__PURE__ */ jsx2("p", { className: "m-0 leading-relaxed text-og-fg-muted", children: note }) : null,
417
- effects.length > 0 ? /* @__PURE__ */ jsx2("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: [
418
- /* @__PURE__ */ jsx2(
419
- "span",
420
- {
421
- "aria-hidden": "true",
422
- className: "mt-[0.55em] size-1 shrink-0 rounded-full bg-og-fg-muted"
423
- }
424
- ),
425
- /* @__PURE__ */ jsx2("span", { className: "min-w-0 break-words", children: effect })
426
- ] }, effect)) }) : null,
427
- selection ? /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
428
- samples.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
429
- /* @__PURE__ */ jsx2("p", { className: "m-0 mb-1 text-og-xs text-og-fg-muted", children: t("toolActionReview.includes") }),
430
- /* @__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: [
431
- samples.map((sample) => /* @__PURE__ */ jsxs("li", { className: "min-w-0 px-3 py-2", children: [
432
- /* @__PURE__ */ jsx2("p", { className: "m-0 truncate text-og-sm text-og-fg", children: sample.title }),
433
- sample.subtitle ? /* @__PURE__ */ jsx2("p", { className: "m-0 mt-0.5 truncate text-og-xs text-og-fg-muted", children: sample.subtitle }) : null
434
- ] }, sample.id)),
435
- count > samples.length ? /* @__PURE__ */ jsxs("li", { className: "px-3 py-2 text-og-xs text-og-fg-muted", children: [
436
- t("toolActionReview.and"),
437
- " ",
438
- (count - samples.length).toLocaleString(t.locale),
439
- " ",
440
- t("toolActionReview.more")
441
- ] }) : null
442
- ] })
443
- ] }) : null,
444
- canOpen && count > 0 ? /* @__PURE__ */ jsxs(
445
- "button",
446
- {
447
- type: "button",
448
- className: cn(linkButton, samples.length > 0 && "mt-1"),
449
- "data-review-path": selection.path,
450
- onClick: () => onViewDetails(selection.path),
451
- children: [
452
- count === 1 ? t("toolActionReview.viewTheNoun", { noun }) : t("toolActionReview.viewAllLocalestringNoun", {
453
- localeString: count.toLocaleString(t.locale),
454
- noun
455
- }),
456
- /* @__PURE__ */ jsx2(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
457
- ]
458
- }
459
- ) : null
460
- ] }) : null,
461
- shown.length > 0 ? /* @__PURE__ */ jsx2("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(
462
- "div",
463
- {
464
- className: "grid min-w-0 gap-x-4 gap-y-0.5 @[30rem]/decision:grid-cols-[minmax(0,7.5rem)_minmax(0,1fr)]",
465
- children: [
466
- /* @__PURE__ */ jsx2("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 }),
467
- /* @__PURE__ */ jsx2("dd", { className: "m-0 min-w-0 whitespace-pre-wrap break-words text-og-fg [overflow-wrap:anywhere]", children: field.protected ? /* @__PURE__ */ jsx2("span", { className: "text-og-fg-muted", children: t("toolActionReview.hidden") }) : field.truncated && canOpen ? /* @__PURE__ */ jsxs(
468
- "button",
469
- {
470
- type: "button",
471
- "data-review-path": field.path,
472
- "aria-label": t("toolActionReview.viewLabelPreview", {
473
- label: field.label,
474
- preview: field.preview
475
- }),
476
- onClick: () => onViewDetails(field.path),
477
- className: cn(linkButton, "max-w-full"),
478
- children: [
479
- /* @__PURE__ */ jsx2("span", { className: "line-clamp-4 min-w-0 break-words [overflow-wrap:anywhere]", children: /* @__PURE__ */ jsx2(SecretRefText, { text: field.preview, linkable: false }) }),
480
- /* @__PURE__ */ jsx2(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
481
- ]
482
- }
483
- ) : /* @__PURE__ */ jsx2(SecretRefText, { text: field.preview }) })
484
- ]
485
- },
486
- field.path
487
- )) }) : null,
488
- hiddenFields > 0 ? /* @__PURE__ */ jsxs("p", { className: "m-0 text-og-xs text-og-fg-muted", children: [
489
- hiddenFields === 1 ? t("toolActionReview.n1MoreValue") : t("toolActionReview.hiddenfieldsMoreValues", { hiddenFields }),
490
- " ",
491
- t("toolActionReview.inDetails")
492
- ] }) : null
493
- ] });
494
- }
495
- function DeclineButton({
496
- busy,
497
- submitting,
498
- label,
499
- onClick
500
- }) {
501
- const t = useOpenGeniText();
502
- return /* @__PURE__ */ jsx2(DecisionButton, { kind: "secondary", disabled: busy, busy: submitting, onClick, children: submitting ? t("toolActionReview.declining") : label ?? t("toolActionReview.decline") });
503
- }
504
- function ToolActionReviewCard({
505
- review: savedReview,
506
- onApprove,
507
- onReject,
508
- submitting,
509
- disabled,
510
- onViewDetails,
511
- pendingLabel,
512
- rejectLabel,
513
- bare,
514
- notice,
515
- approvingLabel,
516
- interruptible
517
- }) {
518
- const t = useOpenGeniText();
519
- const review = useMemo2(() => wordedToolActionReview(savedReview, t), [savedReview, t]);
520
- const titleId = useId();
521
- const canApprove = review.availableActions.includes("approve") && !!onApprove;
522
- const canReject = review.availableActions.includes("reject") && !!onReject;
523
- const actionable = review.status === "pending" && (canApprove || canReject);
524
- const busy = Boolean(disabled || submitting && !interruptible);
525
- const tone = statusTone[review.status];
526
- const eyebrow = submitting ? submitting === "approve" ? t("toolActionReview.approving") : t("toolActionReview.declining") : review.status === "pending" ? pendingLabel ?? statusText(t).pending : statusText(t)[review.status];
527
- const detailsLink = review.detailsAvailable && onViewDetails ? /* @__PURE__ */ jsx2(
528
- "button",
529
- {
530
- type: "button",
531
- 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",
532
- "data-review-path": "",
533
- onClick: () => onViewDetails(""),
534
- children: t("toolActionReview.details")
535
- }
536
- ) : null;
537
- const reason = review.reason.trim();
538
- return /* @__PURE__ */ jsxs(
539
- ToolReviewFrame,
540
- {
541
- tone,
542
- icon: /* @__PURE__ */ jsx2(StatusIcon, { status: review.status, busy: Boolean(submitting) }),
543
- eyebrow,
544
- title: review.title,
545
- titleId,
546
- subtitle: review.accountLabel,
547
- bare,
548
- "aria-busy": Boolean(submitting),
549
- "data-og-tool-review": "",
550
- "data-review-status": review.status,
551
- footer: actionable ? /* @__PURE__ */ jsxs(
552
- DecisionActions,
553
- {
554
- lead: detailsLink || reason ? /* @__PURE__ */ jsxs(Fragment, { children: [
555
- detailsLink,
556
- reason ? /* @__PURE__ */ jsx2("span", { className: "min-w-0 text-og-xs leading-relaxed text-og-fg-subtle", children: reason }) : null
557
- ] }) : null,
558
- children: [
559
- canReject ? /* @__PURE__ */ jsx2(
560
- DeclineButton,
561
- {
562
- busy,
563
- submitting: submitting === "reject",
564
- label: rejectLabel,
565
- onClick: onReject
566
- }
567
- ) : null,
568
- canApprove ? /* @__PURE__ */ jsx2(
569
- DecisionButton,
570
- {
571
- kind: "primary",
572
- disabled: busy,
573
- busy: submitting === "approve",
574
- onClick: onApprove,
575
- children: submitting === "approve" ? approvingLabel ?? t("toolActionReview.approving") : review.approveLabel
576
- }
577
- ) : null
578
- ]
579
- }
580
- ) : void 0,
581
- children: [
582
- actionable && !canApprove ? /* @__PURE__ */ jsx2("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,
583
- actionable && canApprove && review.approvedBy === "you" ? /* @__PURE__ */ jsx2("p", { className: "m-0 mb-3 text-og-sm leading-relaxed text-og-fg", children: t("toolActionReview.onlyYouCanApprove") }) : null,
584
- /* @__PURE__ */ jsx2(
585
- ReviewFacts,
586
- {
587
- review,
588
- onViewDetails,
589
- showStatusDetail: review.status !== "pending"
590
- }
591
- ),
592
- actionable && notice ? /* @__PURE__ */ jsx2(
593
- "p",
594
- {
595
- className: "m-0 mt-2 text-og-xs leading-relaxed text-og-fg-subtle",
596
- "data-og-review-notice": "",
597
- children: notice
598
- }
599
- ) : null,
600
- !actionable && detailsLink ? /* @__PURE__ */ jsx2("div", { className: "mt-2", children: detailsLink }) : null
601
- ]
602
- }
603
- );
604
- }
605
- function ToolActionReviewDetails({
606
- review,
607
- path: initialPath = "",
608
- load,
609
- onBack,
610
- manageFocus = true
611
- }) {
612
- const t = useOpenGeniText();
613
- const [path, setPath] = useState2(initialPath);
614
- const [trail, setTrail] = useState2([]);
615
- const [offset, setOffset] = useState2(0);
616
- const [page, setPage] = useState2(null);
617
- const [error, setError] = useState2(false);
618
- const [retry, setRetry] = useState2(0);
619
- const heading = useRef(null);
620
- const focusedOnce = useRef(false);
621
- useEffect2(() => {
622
- if (page && manageFocus && !focusedOnce.current) {
623
- focusedOnce.current = true;
624
- heading.current?.focus({ preventScroll: true });
625
- heading.current?.scrollIntoView({ block: "start" });
626
- }
627
- }, [page, manageFocus]);
628
- useEffect2(() => {
629
- let active = true;
630
- setPage(null);
631
- setError(false);
632
- void load(review, path, offset).then(
633
- (value) => {
634
- if (!active) return;
635
- if (value.actionDigest !== review.actionDigest || value.id !== review.id || value.path !== path) {
636
- setError(true);
637
- return;
638
- }
639
- setPage(value);
640
- },
641
- () => {
642
- if (active) setError(true);
643
- }
644
- );
645
- return () => {
646
- active = false;
647
- };
648
- }, [review, path, offset, load, retry]);
649
- const open = (next, label) => {
650
- setTrail((value) => [...value, { path, label }]);
651
- setPath(next);
652
- setOffset(0);
653
- };
654
- const up = () => {
655
- const previous = trail.at(-1);
656
- setTrail((value) => value.slice(0, -1));
657
- setPath(previous?.path ?? initialPath);
658
- setOffset(0);
659
- };
660
- return /* @__PURE__ */ jsxs(
661
- "section",
662
- {
663
- className: "og-root mx-auto w-full max-w-3xl px-4 py-5 text-og-fg sm:px-6",
664
- "data-og-review-details": "",
665
- children: [
666
- /* @__PURE__ */ jsxs(
667
- "button",
668
- {
669
- type: "button",
670
- onClick: onBack,
671
- 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",
672
- children: [
673
- /* @__PURE__ */ jsx2(ArrowLeftIcon, { className: "size-4", "aria-hidden": "true" }),
674
- t("toolActionReview.backToReview")
675
- ]
676
- }
677
- ),
678
- /* @__PURE__ */ jsx2(
679
- "h2",
680
- {
681
- ref: heading,
682
- tabIndex: -1,
683
- className: "m-0 break-words text-og-md font-semibold outline-hidden [overflow-wrap:anywhere]",
684
- children: toolActionTitle(t, review.toolName) ?? review.title
685
- }
686
- ),
687
- review.accountLabel ? /* @__PURE__ */ jsx2("p", { className: "m-0 mt-1 text-og-sm text-og-fg-muted", children: review.accountLabel }) : null,
688
- /* @__PURE__ */ jsx2("p", { className: "m-0 mt-2 text-og-xs text-og-fg-subtle", children: t("toolActionReview.theExactValuesSavedFor") }),
689
- trail.length > 0 ? /* @__PURE__ */ jsxs(
690
- "button",
691
- {
692
- type: "button",
693
- 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",
694
- onClick: up,
695
- children: [
696
- /* @__PURE__ */ jsx2(ArrowLeftIcon, { className: "size-3.5", "aria-hidden": "true" }),
697
- t("toolActionReview.backTo"),
698
- " ",
699
- trail.at(-1)?.label ?? t("toolActionReview.allValues")
700
- ]
701
- }
702
- ) : null,
703
- error ? /* @__PURE__ */ jsxs("div", { role: "alert", className: "mt-4 py-4 text-og-sm", children: [
704
- t("toolActionReview.couldnTLoadTheseDetails"),
705
- " ",
706
- /* @__PURE__ */ jsx2(
707
- "button",
708
- {
709
- type: "button",
710
- onClick: () => setRetry((value) => value + 1),
711
- className: "min-h-11 underline underline-offset-4 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
712
- children: t("toolActionReview.tryAgain")
713
- }
714
- )
715
- ] }) : !page ? /* @__PURE__ */ jsx2("p", { role: "status", className: "mt-4 py-4 text-og-sm text-og-fg-muted", children: t("toolActionReview.loadingDetails") }) : /* @__PURE__ */ jsxs(Fragment, { children: [
716
- /* @__PURE__ */ jsx2("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: [
717
- /* @__PURE__ */ jsx2("dt", { className: "m-0 text-og-xs text-og-fg-muted", children: item.label }),
718
- /* @__PURE__ */ jsxs("dd", { className: "m-0 mt-1 whitespace-pre-wrap break-words text-og-sm leading-relaxed [overflow-wrap:anywhere]", children: [
719
- item.truncated && item.path ? /* @__PURE__ */ jsxs(
720
- "button",
721
- {
722
- type: "button",
723
- "aria-label": t("toolActionReview.openLabel", { label: item.label }),
724
- className: cn(linkButton, "max-w-full"),
725
- onClick: () => open(item.path, item.label),
726
- children: [
727
- /* @__PURE__ */ jsx2("span", { className: "min-w-0 break-words focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40", children: /* @__PURE__ */ jsx2(SecretRefText, { text: item.value, linkable: false }) }),
728
- /* @__PURE__ */ jsx2(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
729
- ]
730
- }
731
- ) : /* @__PURE__ */ jsx2(SecretRefText, { text: item.value }),
732
- item.detail ? /* @__PURE__ */ jsx2("span", { className: "mt-0.5 block text-og-xs text-og-fg-muted", children: /* @__PURE__ */ jsx2(SecretRefText, { text: item.detail, linkable: false }) }) : null
733
- ] })
734
- ] }, `${page.path}:${item.label}`)) }),
735
- page.total > page.items.length || offset > 0 ? /* @__PURE__ */ jsxs(
736
- "nav",
737
- {
738
- "aria-label": t("toolActionReview.detailPages"),
739
- className: "mt-4 flex flex-wrap items-center justify-between gap-3 text-og-sm",
740
- children: [
741
- /* @__PURE__ */ jsx2(
742
- "button",
743
- {
744
- type: "button",
745
- disabled: offset === 0,
746
- onClick: () => setOffset(Math.max(0, offset - 25)),
747
- 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",
748
- children: t("toolActionReview.previous")
749
- }
750
- ),
751
- /* @__PURE__ */ jsx2("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)}` }),
752
- /* @__PURE__ */ jsx2(
753
- "button",
754
- {
755
- type: "button",
756
- disabled: page.nextOffset === null,
757
- onClick: () => setOffset(page.nextOffset ?? offset),
758
- 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",
759
- children: t("toolActionReview.next")
760
- }
761
- )
762
- ]
763
- }
764
- ) : null
765
- ] })
766
- ]
767
- }
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-4LZPJ3OK.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-B672XMNG.js"));
3089
- var LazyPlatformActivityRow = lazy2(() => import("./platform-activity-row-TWXWUCXD.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
- createWorkspaceRetainedArtifactLoader,
3963
- createSessionRetainedScreenshotLoader,
3964
- createWorkspaceRetainedVideoLoader,
3965
- ToolReviewHistoryProvider,
3966
- UNRECOVERABLE_TEXT,
3967
- ToolReviewFrame,
3968
- DeclineButton,
3969
- ToolActionReviewCard,
3970
- ToolActionReviewDetails,
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-HPH3MFFE.js.map