@opengeni/react 6.40.0 → 6.41.1-canary.45704649926001

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 (1197) hide show
  1. package/dist/app/app-state.js +34 -34
  2. package/dist/app/components/Composer.js +45 -45
  3. package/dist/app/components/add-card-dialog.js +3 -3
  4. package/dist/app/components/add-card.js +2 -2
  5. package/dist/app/components/agent/agent-capability-picker.js +10 -10
  6. package/dist/app/components/agents/agent-can-use.js +51 -50
  7. package/dist/app/components/agents/agent-cost.js +2 -2
  8. package/dist/app/components/agents/agent-form-page.js +153 -152
  9. package/dist/app/components/agents/agent-form-page.js.map +1 -1
  10. package/dist/app/components/agents/agent-page.js +134 -133
  11. package/dist/app/components/agents/agent-setup-sections.js +81 -80
  12. package/dist/app/components/agents/agent-skills.js +15 -15
  13. package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
  14. package/dist/app/components/agents/agent-trigger-dialog.js +35 -35
  15. package/dist/app/components/agents/agent-trigger-picker.js +8 -8
  16. package/dist/app/components/agents/agent-trigger-repositories.js +16 -16
  17. package/dist/app/components/agents/agents-page.js +99 -98
  18. package/dist/app/components/agents/agents-page.js.map +1 -1
  19. package/dist/app/components/agents/composer-agent-chip.js +60 -59
  20. package/dist/app/components/agents/session-agent-chip.js +55 -54
  21. package/dist/app/components/artifacts/app-package.js +13 -13
  22. package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
  23. package/dist/app/components/artifacts/artifact-library.js +30 -30
  24. package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
  25. package/dist/app/components/artifacts/artifact-viewer.js +64 -63
  26. package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
  27. package/dist/app/components/artifacts/chat-interactive-block.js +30 -28
  28. package/dist/app/components/artifacts/chat-interactive-block.js.map +1 -1
  29. package/dist/app/components/artifacts/copy-artifact-link.js +3 -3
  30. package/dist/app/components/artifacts/file-reach-dialog.js +13 -13
  31. package/dist/app/components/artifacts/inline-chat-image.js +52 -51
  32. package/dist/app/components/artifacts/ready-made-apps.js +13 -13
  33. package/dist/app/components/artifacts/retained-file-preview.js +57 -56
  34. package/dist/app/components/artifacts/retained-text-preview.js +7 -7
  35. package/dist/app/components/artifacts/site-actions.js +11 -11
  36. package/dist/app/components/artifacts/site-audience.js +8 -8
  37. package/dist/app/components/artifacts/site-conversations.js +34 -34
  38. package/dist/app/components/artifacts/site-data.js +30 -30
  39. package/dist/app/components/artifacts/site-public-link.js +1 -1
  40. package/dist/app/components/artifacts/site-publishing-page.js +72 -72
  41. package/dist/app/components/artifacts/site-publishing.js +55 -55
  42. package/dist/app/components/artifacts/site-settings.js +71 -71
  43. package/dist/app/components/artifacts/site-version-menu.js +9 -9
  44. package/dist/app/components/billing-class-mark.js +7 -7
  45. package/dist/app/components/capabilities/capability-detail-sheet.js +18 -18
  46. package/dist/app/components/capabilities/capability-logo-source.js +31 -30
  47. package/dist/app/components/capabilities/capability-logo.js +1 -1
  48. package/dist/app/components/capabilities/connection-account-picker.js +2 -2
  49. package/dist/app/components/capabilities/connection-ownership-selector.js +4 -4
  50. package/dist/app/components/capabilities/connector-tool-permissions.js +7 -7
  51. package/dist/app/components/capabilities/detail-dialog.js +3 -3
  52. package/dist/app/components/capabilities/native-connect-setup.js +36 -35
  53. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -7
  54. package/dist/app/components/capabilities/perform-capability-action.js +3 -3
  55. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +35 -34
  56. package/dist/app/components/capabilities/session-capability-card.js +142 -141
  57. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  58. package/dist/app/components/capabilities/session-chrome-card.js +49 -49
  59. package/dist/app/components/capabilities/session-connect-inputs-card.js +38 -37
  60. package/dist/app/components/capabilities/session-custom-mcp-card.js +43 -42
  61. package/dist/app/components/capabilities/session-github-card.js +49 -48
  62. package/dist/app/components/capabilities/session-machine-card.js +50 -50
  63. package/dist/app/components/capabilities/session-personal-github-card.js +35 -34
  64. package/dist/app/components/capabilities/session-plugin-card.js +23 -22
  65. package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -4
  66. package/dist/app/components/capabilities/use-connection-accounts.js +3 -3
  67. package/dist/app/components/command-menu/chat-status.js +25 -25
  68. package/dist/app/components/command-menu/chat-switcher.js +90 -89
  69. package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
  70. package/dist/app/components/command-menu/command-menu.js +118 -117
  71. package/dist/app/components/command-menu/command-menu.js.map +1 -1
  72. package/dist/app/components/command-menu/shortcut-sheet.js +26 -26
  73. package/dist/app/components/composer-capabilities-menu-body.js +7 -7
  74. package/dist/app/components/composer-mobile-plus-panel.js +32 -32
  75. package/dist/app/components/composer-mobile-plus.js +5 -5
  76. package/dist/app/components/credit-amount-picker.js +2 -2
  77. package/dist/app/components/credit-required-gate.js +6 -6
  78. package/dist/app/components/credit-required-prompt.js +27 -27
  79. package/dist/app/components/credits/checkout-credits-celebration.js +4 -4
  80. package/dist/app/components/credits/checkout-return.js +4 -4
  81. package/dist/app/components/credits/coupon-redeem.js +1 -1
  82. package/dist/app/components/credits/credit-refusal-notice.js +8 -8
  83. package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
  84. package/dist/app/components/cross-slot-deep-link-recovery.js +2 -2
  85. package/dist/app/components/desktop/app-shots.js +10 -10
  86. package/dist/app/components/desktop/app-update.js +3 -3
  87. package/dist/app/components/desktop/computer-use.js +4 -4
  88. package/dist/app/components/desktop/this-computer.js +8 -8
  89. package/dist/app/components/feedback.js +11 -11
  90. package/dist/app/components/follow-up-repository-menu-body.js +12 -12
  91. package/dist/app/components/follow-up-repository-picker.js +1 -1
  92. package/dist/app/components/github-app-connect-launcher.js +2 -2
  93. package/dist/app/components/in-app-help-link.js +3 -3
  94. package/dist/app/components/knowledge/agent-learning-settings.js +5 -5
  95. package/dist/app/components/machines/connect-machine-dialog.js +25 -25
  96. package/dist/app/components/manual-repository-editor.js +1 -1
  97. package/dist/app/components/markdown.js +18 -17
  98. package/dist/app/components/model-identity.js +3 -3
  99. package/dist/app/components/models/models-ui.js +17 -17
  100. package/dist/app/components/models/provider-mark.js +3 -3
  101. package/dist/app/components/models/subscription-usage.js +5 -5
  102. package/dist/app/components/my-things.js +19 -19
  103. package/dist/app/components/own-where-it-works.js +12 -12
  104. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  105. package/dist/app/components/pickers.js +12 -12
  106. package/dist/app/components/rail/channel-create-dialog.js +6 -6
  107. package/dist/app/components/rail/project-glyph.js +54 -53
  108. package/dist/app/components/rail/project-profile.js +76 -75
  109. package/dist/app/components/rail/rail-context.js +2 -2
  110. package/dist/app/components/rail/rail-sections.js +155 -154
  111. package/dist/app/components/rail/session-header.js +125 -124
  112. package/dist/app/components/rail/session-list.js +153 -152
  113. package/dist/app/components/rail/session-row-content.js +6 -6
  114. package/dist/app/components/rail/session-row-hover-details.js +36 -36
  115. package/dist/app/components/rail/session-shell.js +194 -193
  116. package/dist/app/components/rail/site-session-group-heading.js +37 -37
  117. package/dist/app/components/repository-picker.js +12 -12
  118. package/dist/app/components/secrets/session-secrets-panel.js +3 -3
  119. package/dist/app/components/session/agent-configuration-panel.js +53 -53
  120. package/dist/app/components/session/artifact-session-page.js +8 -8
  121. package/dist/app/components/session/banners.js +22 -21
  122. package/dist/app/components/session/chat-avatar.js +54 -53
  123. package/dist/app/components/session/console-new-conversation.js +105 -104
  124. package/dist/app/components/session/descendant-requests.js +101 -100
  125. package/dist/app/components/session/descendant-requests.js.map +1 -1
  126. package/dist/app/components/session/editable-artifacts-workspace.js +62 -60
  127. package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
  128. package/dist/app/components/session/failed-session-banner.js +28 -28
  129. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  130. package/dist/app/components/session/human-input-delegation-record.js +3 -3
  131. package/dist/app/components/session/human-input.js +88 -87
  132. package/dist/app/components/session/inspector.js +136 -135
  133. package/dist/app/components/session/inspector.js.map +1 -1
  134. package/dist/app/components/session/linked-panel.js +3 -3
  135. package/dist/app/components/session/message-actions.js +11 -11
  136. package/dist/app/components/session/model-recovery-notice.js +4 -4
  137. package/dist/app/components/session/new-session-settings-menu.js +32 -32
  138. package/dist/app/components/session/new-session-setup-strip.js +58 -57
  139. package/dist/app/components/session/own-account-wait-notice.js +8 -8
  140. package/dist/app/components/session/pinned-account-wait-notice.js +8 -8
  141. package/dist/app/components/session/pull-request-panel.js +26 -25
  142. package/dist/app/components/session/sandbox-recovery-actions.js +5 -5
  143. package/dist/app/components/session/sandbox-switcher.js +22 -22
  144. package/dist/app/components/session/sandbox-workspace.js +118 -117
  145. package/dist/app/components/session/search-markdown-highlight.js +19 -18
  146. package/dist/app/components/session/search-results-view.js +20 -19
  147. package/dist/app/components/session/session-admin-access.js +12 -12
  148. package/dist/app/components/session/session-admission-notice.js +11 -11
  149. package/dist/app/components/session/session-avatar-picker.js +61 -60
  150. package/dist/app/components/session/session-avatar.js +56 -55
  151. package/dist/app/components/session/session-machine-access-notice.js +11 -11
  152. package/dist/app/components/session/session-profile-dialog.js +72 -71
  153. package/dist/app/components/session/session-profile-editor.js +73 -72
  154. package/dist/app/components/session/session-retention.js +8 -8
  155. package/dist/app/components/session/session-search-dialog.js +26 -25
  156. package/dist/app/components/session/session-search-dialog.js.map +1 -1
  157. package/dist/app/components/session/session-skill-reviews.js +5 -5
  158. package/dist/app/components/session/session-tenancy-control.js +25 -25
  159. package/dist/app/components/session/session-unattended-setting.js +4 -4
  160. package/dist/app/components/session/session-usage-limit-section.js +13 -13
  161. package/dist/app/components/session/share-chat-dialog.js +12 -12
  162. package/dist/app/components/session/subagents.js +22 -22
  163. package/dist/app/components/session/subscription-account-indicator.js +25 -25
  164. package/dist/app/components/session/subscription-account-menu.js +7 -7
  165. package/dist/app/components/session-connectors-menu-body.js +11 -11
  166. package/dist/app/components/settings/row-select.js +6 -6
  167. package/dist/app/components/transcription-settings.js +10 -10
  168. package/dist/app/components/ui/destructive-confirm.js +11 -11
  169. package/dist/app/components/usage/usage-entry.js +8 -8
  170. package/dist/app/components/window-bar.js +25 -25
  171. package/dist/app/components/workspace-composer-plus.js +46 -45
  172. package/dist/app/components/workspace-reach.d.ts +2 -0
  173. package/dist/app/components/workspace-reach.js +6 -6
  174. package/dist/app/embed/session-app.js +406 -405
  175. package/dist/app/lib/actions/actions-provider.js +18 -18
  176. package/dist/app/lib/agent-capabilities.js +4 -4
  177. package/dist/app/lib/app-connect-card.js +16 -16
  178. package/dist/app/lib/app-shared-key-dialog.js +9 -9
  179. package/dist/app/lib/app-surfaces.js +1 -1
  180. package/dist/app/lib/app-sync-opt-in.js +7 -7
  181. package/dist/app/lib/codex-usage-query.js +3 -3
  182. package/dist/app/lib/composer-agent.js +2 -2
  183. package/dist/app/lib/composer-connectors.js +35 -34
  184. package/dist/app/lib/composer-send-blocking.js +2 -2
  185. package/dist/app/lib/console-site.js +9 -9
  186. package/dist/app/lib/console-text.js +2 -2
  187. package/dist/app/lib/events.js +32 -31
  188. package/dist/app/lib/failed-session-copy.js +5 -5
  189. package/dist/app/lib/feedback-capture.js +2 -2
  190. package/dist/app/lib/model-access-onboarding.js +4 -4
  191. package/dist/app/lib/move-chat-to-machine.js +5 -5
  192. package/dist/app/lib/personal-resource-attachments.js +1 -1
  193. package/dist/app/lib/session-branch-cache.js +18 -18
  194. package/dist/app/lib/session-create.js +5 -5
  195. package/dist/app/lib/session-group-pagination.js +18 -18
  196. package/dist/app/lib/session-hover-facts.js +25 -25
  197. package/dist/app/lib/session-list-dirty-scopes.js +19 -19
  198. package/dist/app/lib/session-model.js +2 -2
  199. package/dist/app/lib/session-rail.js +15 -15
  200. package/dist/app/lib/session-rename.js +3 -3
  201. package/dist/app/lib/sessions-group.js +23 -23
  202. package/dist/app/lib/site-tool-consent-dialog.js +24 -24
  203. package/dist/app/lib/site-tool-consent.js +1 -1
  204. package/dist/app/lib/turn-failure-analytics.js +6 -6
  205. package/dist/app/lib/use-artifact-catalog.js +2 -2
  206. package/dist/app/lib/use-duplicate-site.js +4 -4
  207. package/dist/app/lib/use-follow-up-repositories.js +9 -9
  208. package/dist/app/lib/use-personal-resource-attachment.js +2 -2
  209. package/dist/app/lib/use-workspace-integrations.js +2 -2
  210. package/dist/app/lib/use-workspace-machines.js +10 -10
  211. package/dist/app/lib/use-workspace-model-catalog.js +6 -6
  212. package/dist/app/lib/use-workspace-rigs.js +6 -6
  213. package/dist/app/lib/workspace-navigation-preference.js +5 -5
  214. package/dist/app/lib/workspace-scope-context.js +4 -4
  215. package/dist/app/routes/app-page-view.js +52 -50
  216. package/dist/app/routes/app-page-view.js.map +1 -1
  217. package/dist/app/routes/app-page.js +2 -2
  218. package/dist/app/routes/artifacts.js +170 -168
  219. package/dist/app/routes/artifacts.js.map +1 -1
  220. package/dist/app/routes/retained-artifact.js +110 -109
  221. package/dist/app/routes/retained-artifact.js.map +1 -1
  222. package/dist/app/routes/session-unavailable.js +6 -6
  223. package/dist/app/routes/session.js +249 -248
  224. package/dist/app/routes/sessions-index-hydration.js +6 -6
  225. package/dist/app/routes/sessions-index.js +204 -203
  226. package/dist/app/routes/site-view.js +210 -209
  227. package/dist/app/routes/site-view.js.map +1 -1
  228. package/dist/artifacts-document.js +4 -4
  229. package/dist/artifacts-presentation.js +9 -9
  230. package/dist/artifacts-spreadsheet.js +4 -4
  231. package/dist/artifacts.js +53 -51
  232. package/dist/automation-model.js +6 -6
  233. package/dist/automations.js +64 -64
  234. package/dist/browser-viewer-TRPZI6NT.js +23 -0
  235. package/dist/chat-interactive-block-Y4BS4JCM.js +24 -0
  236. package/dist/chunk-22E2YJHT.js +469 -0
  237. package/dist/chunk-2T6TN2YL.js +538 -0
  238. package/dist/chunk-2WNN26NW.js +175 -0
  239. package/dist/chunk-3432A6XB.js +88 -0
  240. package/dist/chunk-35U7NSOR.js +366 -0
  241. package/dist/chunk-3EPR76WS.js +773 -0
  242. package/dist/chunk-3FXXEU5D.js +144 -0
  243. package/dist/chunk-3MXOPOEU.js +650 -0
  244. package/dist/chunk-3PKDU4JI.js +340 -0
  245. package/dist/chunk-3PMO2BIV.js +12 -0
  246. package/dist/chunk-3XWHJNFY.js +48 -0
  247. package/dist/chunk-45WD2PKE.js +401 -0
  248. package/dist/chunk-4H2OWNRA.js +598 -0
  249. package/dist/chunk-4HVGOTMU.js +263 -0
  250. package/dist/chunk-4JER2ZMV.js +818 -0
  251. package/dist/chunk-4LVZ2VOQ.js +214 -0
  252. package/dist/chunk-4OGDD2EM.js +2434 -0
  253. package/dist/chunk-4PQC6WMF.js +54 -0
  254. package/dist/chunk-4UVSWAT3.js +794 -0
  255. package/dist/chunk-53A47RBX.js +214 -0
  256. package/dist/chunk-552KKENW.js +114 -0
  257. package/dist/chunk-55F7L6M3.js +177 -0
  258. package/dist/chunk-5AHIKB3O.js +449 -0
  259. package/dist/chunk-5KQD6MLJ.js +3996 -0
  260. package/dist/chunk-5KQD6MLJ.js.map +1 -0
  261. package/dist/chunk-5N4L5WTE.js +199 -0
  262. package/dist/chunk-5OUJCVZI.js +79 -0
  263. package/dist/chunk-5OYXQ7MH.js +65 -0
  264. package/dist/chunk-5RGF74K5.js +371 -0
  265. package/dist/chunk-5RGF74K5.js.map +1 -0
  266. package/dist/chunk-5TAVVMFX.js +225 -0
  267. package/dist/chunk-5Y3LYRNH.js +269 -0
  268. package/dist/chunk-5ZJKKE4T.js +386 -0
  269. package/dist/chunk-62DPSQRZ.js +57 -0
  270. package/dist/chunk-64KMWTJ6.js +608 -0
  271. package/dist/chunk-6F34IWSA.js +47 -0
  272. package/dist/chunk-6F34IWSA.js.map +1 -0
  273. package/dist/chunk-6MZBNUS7.js +73 -0
  274. package/dist/chunk-6YCE4ZC4.js +250 -0
  275. package/dist/chunk-6YROWWMX.js +175 -0
  276. package/dist/chunk-73RZ72VU.js +1236 -0
  277. package/dist/chunk-74KV436L.js +84 -0
  278. package/dist/chunk-7HKGLPV5.js +83 -0
  279. package/dist/chunk-7JSWODT6.js +466 -0
  280. package/dist/chunk-7K3PKWER.js +428 -0
  281. package/dist/chunk-7MPWC42V.js +1356 -0
  282. package/dist/chunk-7REO6FRN.js +141 -0
  283. package/dist/chunk-7V3OL7JC.js +850 -0
  284. package/dist/chunk-7V3OL7JC.js.map +1 -0
  285. package/dist/chunk-7YMWRNRQ.js +145 -0
  286. package/dist/chunk-A6H3KJ7G.js +131 -0
  287. package/dist/chunk-AGQIE6YU.js +1769 -0
  288. package/dist/chunk-AHQM4I5V.js +373 -0
  289. package/dist/chunk-AMTRO7XF.js +172 -0
  290. package/dist/chunk-AO4LTCG7.js +91 -0
  291. package/dist/chunk-APJ22OZV.js +2580 -0
  292. package/dist/chunk-APWL37KW.js +407 -0
  293. package/dist/chunk-AQEJOBQ2.js +15 -0
  294. package/dist/chunk-ARKNT6BX.js +234 -0
  295. package/dist/chunk-B2IHDMAR.js +211 -0
  296. package/dist/chunk-BCKIV26W.js +112 -0
  297. package/dist/chunk-BE26JUSD.js +259 -0
  298. package/dist/chunk-BOVCD6KD.js +171 -0
  299. package/dist/chunk-BQWV66A6.js +129 -0
  300. package/dist/chunk-BSQJXGGP.js +441 -0
  301. package/dist/chunk-BZY3MEVZ.js +3183 -0
  302. package/dist/chunk-C3D3OOEY.js +335 -0
  303. package/dist/chunk-CDHYO3DP.js +82 -0
  304. package/dist/chunk-CDV5JGVI.js +79 -0
  305. package/dist/chunk-CNW45M7G.js +207 -0
  306. package/dist/chunk-CUVQ37HB.js +150 -0
  307. package/dist/chunk-D32T3IIC.js +532 -0
  308. package/dist/chunk-D32VVOBJ.js +738 -0
  309. package/dist/chunk-D32VVOBJ.js.map +1 -0
  310. package/dist/chunk-D65BSM64.js +371 -0
  311. package/dist/chunk-D7435DWV.js +570 -0
  312. package/dist/chunk-DFH3M7B3.js +72 -0
  313. package/dist/chunk-DGWBQ76M.js +162 -0
  314. package/dist/chunk-DHJDTGSJ.js +372 -0
  315. package/dist/chunk-DKEFTNCD.js +400 -0
  316. package/dist/chunk-DNAF6MT4.js +107 -0
  317. package/dist/chunk-DSJ7K5IF.js +380 -0
  318. package/dist/chunk-DSJ7K5IF.js.map +1 -0
  319. package/dist/chunk-E35XY7DS.js +27 -0
  320. package/dist/chunk-E5T5WIIP.js +396 -0
  321. package/dist/chunk-EL6ECD34.js +166 -0
  322. package/dist/chunk-ELR6ITRC.js +467 -0
  323. package/dist/chunk-EPE3V2VE.js +851 -0
  324. package/dist/chunk-EYGQHHVW.js +584 -0
  325. package/dist/chunk-EYQEJHYP.js +307 -0
  326. package/dist/chunk-EZTH2XMH.js +276 -0
  327. package/dist/chunk-F3QVHVFS.js +287 -0
  328. package/dist/chunk-F5VWPREQ.js +1187 -0
  329. package/dist/chunk-FM7AQUBL.js +113 -0
  330. package/dist/chunk-FP6BUXJM.js +100 -0
  331. package/dist/chunk-FVU52L3I.js +249 -0
  332. package/dist/chunk-FZKNXNNO.js +218 -0
  333. package/dist/chunk-G3IXJWRY.js +236 -0
  334. package/dist/chunk-G6EI2O3N.js +333 -0
  335. package/dist/chunk-G7KHMA3E.js +256 -0
  336. package/dist/chunk-G7KHMA3E.js.map +1 -0
  337. package/dist/chunk-GB5T6YMZ.js +401 -0
  338. package/dist/chunk-GBLD6FOG.js +157 -0
  339. package/dist/chunk-GJBFFXCY.js +137 -0
  340. package/dist/chunk-GJDP2K2S.js +66 -0
  341. package/dist/chunk-GP26XTDX.js +187 -0
  342. package/dist/chunk-GTE6WP4N.js +606 -0
  343. package/dist/chunk-GWG3OAV7.js +108 -0
  344. package/dist/chunk-GXMHTMM6.js +931 -0
  345. package/dist/chunk-GYRN5O2E.js +107 -0
  346. package/dist/chunk-GZX7W2WW.js +65 -0
  347. package/dist/chunk-H3QI2G2B.js +403 -0
  348. package/dist/chunk-H7D4DVWY.js +849 -0
  349. package/dist/chunk-HCDGBBBJ.js +191 -0
  350. package/dist/chunk-HDSH6MIJ.js +3851 -0
  351. package/dist/chunk-HOEUPZ6O.js +89 -0
  352. package/dist/chunk-HPQRWTQB.js +772 -0
  353. package/dist/chunk-HUKGLWAY.js +174 -0
  354. package/dist/chunk-HUTQJY3F.js +23 -0
  355. package/dist/chunk-HWOYJOKK.js +266 -0
  356. package/dist/chunk-HZR3WGUP.js +96 -0
  357. package/dist/chunk-I7YUDPDR.js +138 -0
  358. package/dist/chunk-IDII52M4.js +27 -0
  359. package/dist/chunk-IDPWEUM7.js +103 -0
  360. package/dist/chunk-IEWQFGEC.js +192 -0
  361. package/dist/chunk-IKWGPFT5.js +300 -0
  362. package/dist/chunk-IKWGPFT5.js.map +1 -0
  363. package/dist/chunk-IMTACEXF.js +351 -0
  364. package/dist/chunk-IVWT6M6N.js +114 -0
  365. package/dist/chunk-JE2YXAVR.js +485 -0
  366. package/dist/chunk-JE2YXAVR.js.map +1 -0
  367. package/dist/chunk-JEUPIHIP.js +111 -0
  368. package/dist/chunk-JF4WX3GQ.js +168 -0
  369. package/dist/chunk-JJPYXUKC.js +2591 -0
  370. package/dist/chunk-JNHWTYDD.js +43 -0
  371. package/dist/chunk-JP7AOJWD.js +46 -0
  372. package/dist/chunk-JTWT2WQA.js +297 -0
  373. package/dist/chunk-JW3WIHWO.js +117 -0
  374. package/dist/chunk-JW7RJMEZ.js +134 -0
  375. package/dist/chunk-K76PXR3O.js +2317 -0
  376. package/dist/chunk-KCNIQN6V.js +107 -0
  377. package/dist/chunk-KH6KHYST.js +231 -0
  378. package/dist/chunk-KK4SEN7N.js +247 -0
  379. package/dist/chunk-KOKRGAAI.js +383 -0
  380. package/dist/chunk-KQFNTGAF.js +187 -0
  381. package/dist/chunk-KRLNC6TH.js +50 -0
  382. package/dist/chunk-KYDLVMKA.js +99 -0
  383. package/dist/chunk-KZQDP2JM.js +155 -0
  384. package/dist/chunk-L2EZ2HOX.js +132 -0
  385. package/dist/chunk-L2UAFR2D.js +33 -0
  386. package/dist/chunk-L4R7ORMD.js +4596 -0
  387. package/dist/chunk-LCLWN64E.js +227 -0
  388. package/dist/chunk-LFQI2C46.js +175 -0
  389. package/dist/chunk-LLYX4F5A.js +1628 -0
  390. package/dist/chunk-LQX5QCDS.js +215 -0
  391. package/dist/chunk-LRMHASG2.js +196 -0
  392. package/dist/chunk-LVUSG56I.js +5930 -0
  393. package/dist/chunk-LVUSG56I.js.map +1 -0
  394. package/dist/chunk-M5FX5KH5.js +629 -0
  395. package/dist/chunk-MLOTUQJJ.js +201 -0
  396. package/dist/chunk-MPUKGKXZ.js +209 -0
  397. package/dist/chunk-MS6LW4VU.js +283 -0
  398. package/dist/chunk-MWN7LDYV.js +4601 -0
  399. package/dist/chunk-MWN7LDYV.js.map +1 -0
  400. package/dist/chunk-MXPW4F74.js +278 -0
  401. package/dist/chunk-MZ7GJX5S.js +158 -0
  402. package/dist/chunk-N5OUIUYD.js +1260 -0
  403. package/dist/chunk-N6FNORC7.js +412 -0
  404. package/dist/chunk-NALVKY4U.js +113 -0
  405. package/dist/chunk-NJ77ZL5T.js +5222 -0
  406. package/dist/chunk-NM2DNJDJ.js +270 -0
  407. package/dist/chunk-NNKRRF7E.js +110 -0
  408. package/dist/chunk-NP5UFWU4.js +318 -0
  409. package/dist/chunk-NV3AEIFO.js +118 -0
  410. package/dist/chunk-O6JDF7KH.js +828 -0
  411. package/dist/chunk-OERZH3J4.js +251 -0
  412. package/dist/chunk-OKHWTWWU.js +1152 -0
  413. package/dist/chunk-OLAIUVGT.js +274 -0
  414. package/dist/chunk-OO36IUMS.js +270 -0
  415. package/dist/chunk-OVDK7K2Z.js +57 -0
  416. package/dist/chunk-OX5ZCHZQ.js +63 -0
  417. package/dist/chunk-P6LLCGPO.js +515 -0
  418. package/dist/chunk-PA2CUHTD.js +505 -0
  419. package/dist/chunk-PB4CQIRA.js +4979 -0
  420. package/dist/chunk-PBV2P632.js +566 -0
  421. package/dist/chunk-PCSRHFRF.js +75 -0
  422. package/dist/chunk-PEPWW5BC.js +436 -0
  423. package/dist/chunk-PMBZMVKE.js +33 -0
  424. package/dist/chunk-PP32RE26.js +34 -0
  425. package/dist/chunk-PTXAPI3Q.js +73 -0
  426. package/dist/chunk-PULNNF7G.js +56 -0
  427. package/dist/chunk-Q6KNROUT.js +158 -0
  428. package/dist/chunk-QEGP3HSW.js +184 -0
  429. package/dist/chunk-QEGP3HSW.js.map +1 -0
  430. package/dist/chunk-QGJIFIKN.js +1032 -0
  431. package/dist/chunk-QKKKORGL.js +41 -0
  432. package/dist/chunk-QKUMMG6P.js +85 -0
  433. package/dist/chunk-QNOWKKZ4.js +40 -0
  434. package/dist/chunk-QSWD3AHE.js +84 -0
  435. package/dist/chunk-QZ4U2VL5.js +391 -0
  436. package/dist/chunk-QZJNCLHV.js +271 -0
  437. package/dist/chunk-R6CFPY3F.js +278 -0
  438. package/dist/chunk-R6QRUYUH.js +406 -0
  439. package/dist/chunk-RE3GAQI5.js +2984 -0
  440. package/dist/chunk-RFHUVPFA.js +1184 -0
  441. package/dist/chunk-RH45HT5T.js +3690 -0
  442. package/dist/chunk-RJNQTZ5O.js +439 -0
  443. package/dist/chunk-RN24AP7Q.js +247 -0
  444. package/dist/chunk-RN24AP7Q.js.map +1 -0
  445. package/dist/chunk-S2BJTAAB.js +37 -0
  446. package/dist/chunk-S56PWXIX.js +138 -0
  447. package/dist/chunk-S6BDABIC.js +1390 -0
  448. package/dist/chunk-S6BDABIC.js.map +1 -0
  449. package/dist/chunk-S6FFDIHD.js +640 -0
  450. package/dist/chunk-S6MAMIK2.js +56 -0
  451. package/dist/chunk-SERTO6H6.js +311 -0
  452. package/dist/chunk-STOOH7EI.js +200 -0
  453. package/dist/chunk-SWSTEUXX.js +121 -0
  454. package/dist/chunk-SWZN7NNZ.js +1029 -0
  455. package/dist/chunk-SYDF57KS.js +178 -0
  456. package/dist/chunk-T275CUVD.js +29 -0
  457. package/dist/chunk-T4OT7QWP.js +378 -0
  458. package/dist/chunk-TCSRY2NP.js +2582 -0
  459. package/dist/chunk-TCX5OA2X.js +1177 -0
  460. package/dist/chunk-TDW5CSO5.js +3158 -0
  461. package/dist/chunk-TGG3ODCS.js +99 -0
  462. package/dist/chunk-TILSTYUC.js +505 -0
  463. package/dist/chunk-TJ5DYWXU.js +1333 -0
  464. package/dist/chunk-TNRI4ZE6.js +391 -0
  465. package/dist/chunk-TPIFVUMF.js +188 -0
  466. package/dist/chunk-TSW6OF22.js +162 -0
  467. package/dist/chunk-TTSTBHGR.js +1095 -0
  468. package/dist/chunk-U3JYAWMR.js +170 -0
  469. package/dist/chunk-U7ODSHA5.js +124 -0
  470. package/dist/chunk-UEGEPRNP.js +48 -0
  471. package/dist/chunk-UGIA2YEJ.js +83 -0
  472. package/dist/chunk-UHLKKDNF.js +432 -0
  473. package/dist/chunk-ULVXKIPX.js +26 -0
  474. package/dist/chunk-UN37ZY6R.js +10074 -0
  475. package/dist/chunk-UN37ZY6R.js.map +1 -0
  476. package/dist/chunk-USUDKZ5G.js +98 -0
  477. package/dist/chunk-UVO6I2F6.js +85 -0
  478. package/dist/chunk-V6NVG4K2.js +357 -0
  479. package/dist/chunk-VCMQFD3G.js +1185 -0
  480. package/dist/chunk-VKPBDNIO.js +246 -0
  481. package/dist/chunk-VLDKWGHD.js +61 -0
  482. package/dist/chunk-VM2NA2EL.js +905 -0
  483. package/dist/chunk-VMZTCVEL.js +114 -0
  484. package/dist/chunk-VQH5AXZY.js +269 -0
  485. package/dist/chunk-VTBTW6N4.js +114 -0
  486. package/dist/chunk-VV7PLDX4.js +230 -0
  487. package/dist/chunk-VYGGLH5H.js +50 -0
  488. package/dist/chunk-VYQHHTQ4.js +133 -0
  489. package/dist/chunk-VYSGRD2W.js +292 -0
  490. package/dist/chunk-W4W63LTP.js +1309 -0
  491. package/dist/chunk-WFC2JA6D.js +2335 -0
  492. package/dist/chunk-WFC2JA6D.js.map +1 -0
  493. package/dist/chunk-WHTRR66J.js +197 -0
  494. package/dist/chunk-WICIQFHJ.js +42 -0
  495. package/dist/chunk-WJYYMCCC.js +283 -0
  496. package/dist/chunk-WSJOWQJE.js +399 -0
  497. package/dist/chunk-WY333GHH.js +108 -0
  498. package/dist/chunk-WY333GHH.js.map +1 -0
  499. package/dist/chunk-WYDUXZ2R.js +353 -0
  500. package/dist/chunk-X62CN4YR.js +3321 -0
  501. package/dist/chunk-XFQHKMO6.js +1024 -0
  502. package/dist/chunk-XGJ7XZHS.js +527 -0
  503. package/dist/chunk-XJFJNOEV.js +723 -0
  504. package/dist/chunk-XKJLHMXZ.js +234 -0
  505. package/dist/chunk-XLFPJVQS.js +103 -0
  506. package/dist/chunk-XM4ZLZFW.js +129 -0
  507. package/dist/chunk-Y2GAWEJD.js +1021 -0
  508. package/dist/chunk-Y3A74SVK.js +296 -0
  509. package/dist/chunk-YANEVGI3.js +92 -0
  510. package/dist/chunk-YHHSO5QR.js +128 -0
  511. package/dist/chunk-YOSOCHCB.js +52 -0
  512. package/dist/chunk-YP4SNX4P.js +220 -0
  513. package/dist/chunk-YQH6AMIH.js +176 -0
  514. package/dist/chunk-YRWL2IAE.js +165 -0
  515. package/dist/chunk-YTWRQ3WK.js +251 -0
  516. package/dist/chunk-YV5GGSLK.js +20 -0
  517. package/dist/chunk-YXUDK37V.js +126 -0
  518. package/dist/chunk-YYM5TSCR.js +75 -0
  519. package/dist/chunk-ZG2CKFQF.js +202 -0
  520. package/dist/chunk-ZGJXO2HH.js +93 -0
  521. package/dist/chunk-ZGV76PZ4.js +3070 -0
  522. package/dist/chunk-ZOBUR2VC.js +229 -0
  523. package/dist/components/artifacts/artifact-chrome.d.ts +4 -0
  524. package/dist/components/artifacts/artifact-sandbox.d.ts +13 -0
  525. package/dist/components/artifacts/inline-html-document.d.ts +10 -1
  526. package/dist/components/artifacts/published-html-artifact-frame.d.ts +17 -0
  527. package/dist/components/preview-loading.d.ts +3 -1
  528. package/dist/composer.js +37 -37
  529. package/dist/computer-viewer-S6AL3XDT.js +21 -0
  530. package/dist/connect.js +38 -37
  531. package/dist/connection-step-up-XGPZKQEL.js +149 -0
  532. package/dist/connection-step-up-XGPZKQEL.js.map +1 -0
  533. package/dist/desktop-dictation.js +23 -23
  534. package/dist/desktop.js +2 -2
  535. package/dist/editor.js +2 -2
  536. package/dist/embedded-new-voice-T3BXRYJX.js +25 -0
  537. package/dist/embedded-voice-ZJXMF3RP.js +25 -0
  538. package/dist/fleet-decision-row-AUCMLBCV.js +361 -0
  539. package/dist/in-chat-connect-model.js +5 -5
  540. package/dist/index.js +296 -295
  541. package/dist/interaction.js +9 -9
  542. package/dist/latest-question-D5BKKEP6.js +1 -1
  543. package/dist/machine-request-model.js +1 -1
  544. package/dist/machines.js +8 -8
  545. package/dist/meetings/meeting-detail-page.d.ts +14 -0
  546. package/dist/meetings/meeting-notes.d.ts +6 -2
  547. package/dist/meetings/meeting-transcript.d.ts +3 -1
  548. package/dist/meetings-recorder.js +1 -1
  549. package/dist/meetings.js +367 -260
  550. package/dist/meetings.js.map +1 -1
  551. package/dist/messages/en.d.ts +6 -2
  552. package/dist/messages.js +1 -1
  553. package/dist/model-policy-picker-menu-TO57YUQ6.js +23 -0
  554. package/dist/native-previews.js +1 -1
  555. package/dist/payment-page-card-DFGDAMTG.js +227 -0
  556. package/dist/platform-activity-row-ZMBEJGXN.js +156 -0
  557. package/dist/queue-surface-implementation-KDK5CYH6.js +933 -0
  558. package/dist/realtime.js +17 -17
  559. package/dist/recorder-host-3HLYRL4H.js +80 -0
  560. package/dist/recordings.js +3 -3
  561. package/dist/sandbox-files-UOZ4OJZU.js +29 -0
  562. package/dist/session-app.js +406 -405
  563. package/dist/session-connect-cards-VZIYLH45.js +28 -0
  564. package/dist/session-list-model.js +2 -2
  565. package/dist/session-realtime-2ZGJWVZP.js +30 -0
  566. package/dist/session-realtime.js +2 -2
  567. package/dist/session-ui.js +98 -97
  568. package/dist/session.js +40 -40
  569. package/dist/sites.js +3 -3
  570. package/dist/skills.js +32 -32
  571. package/dist/terminal.js +2 -2
  572. package/dist/testing/meetings-fixture.d.ts +8 -0
  573. package/dist/testing/meetings-fixture.js +22 -1
  574. package/dist/testing/meetings-fixture.js.map +1 -1
  575. package/dist/this-computer.js +3 -3
  576. package/dist/timeline-annotation-markers-KBTFWLME.js +157 -0
  577. package/dist/timeline-annotation-selection-VI4YSDR5.js +208 -0
  578. package/dist/timeline-annotations-dialog-4PLWNLRB.js +283 -0
  579. package/dist/timeline-model.js +37 -37
  580. package/dist/ui/access-list.js +24 -24
  581. package/dist/ui/cadence-picker.js +7 -7
  582. package/dist/ui/capability-page.js +10 -10
  583. package/dist/ui/choice-cards.js +3 -3
  584. package/dist/ui/confirm-dialog.js +4 -4
  585. package/dist/ui/copy-field.js +3 -3
  586. package/dist/ui/detail-page.js +6 -6
  587. package/dist/ui/detail-sheet.js +6 -6
  588. package/dist/ui/dialog.js +2 -2
  589. package/dist/ui/diff-view.js +3 -3
  590. package/dist/ui/disclosure.js +7 -7
  591. package/dist/ui/email-chips-input.js +3 -3
  592. package/dist/ui/field.js +2 -2
  593. package/dist/ui/flush-form-page.js +8 -8
  594. package/dist/ui/form-dialog.js +7 -7
  595. package/dist/ui/list-row.js +7 -7
  596. package/dist/ui/load-failure.js +3 -3
  597. package/dist/ui/relative-time.js +3 -3
  598. package/dist/ui/revision-history.js +16 -16
  599. package/dist/ui/role-select.js +13 -13
  600. package/dist/ui/select-menu.js +5 -5
  601. package/dist/ui/settings-nav.js +6 -6
  602. package/dist/ui/sheet.js +2 -2
  603. package/dist/ui/usage-meter.js +4 -4
  604. package/dist/usage.js +3 -3
  605. package/dist/workbench.js +11 -11
  606. package/package.json +6 -5
  607. package/src/app/components/session/sandbox-recovery-actions.test.tsx +26 -0
  608. package/src/app/components/session/sandbox-recovery-actions.tsx +2 -1
  609. package/src/app/components/workspace-reach.tsx +2 -0
  610. package/src/components/artifacts/artifact-chrome.tsx +6 -0
  611. package/src/components/artifacts/artifact-sandbox.tsx +119 -20
  612. package/src/components/artifacts/chat-interactive-block.tsx +1 -0
  613. package/src/components/artifacts/inline-html-document.ts +13 -3
  614. package/src/components/artifacts/published-html-artifact-frame.tsx +60 -4
  615. package/src/components/preview-loading.tsx +2 -2
  616. package/src/meetings/meeting-detail-page.tsx +232 -112
  617. package/src/meetings/meeting-notes.tsx +48 -24
  618. package/src/meetings/meeting-transcript.tsx +75 -57
  619. package/src/meetings/meetings-pages.test.tsx +181 -2
  620. package/src/messages/en.ts +6 -2
  621. package/src/testing/meetings-fixture.ts +35 -1
  622. package/styles/compiled.css +8 -0
  623. package/styles/index.css +7 -0
  624. package/dist/browser-viewer-KFMM5S2B.js +0 -23
  625. package/dist/chat-interactive-block-5DJ72HU7.js +0 -22
  626. package/dist/chunk-2B3RQRNQ.js +0 -584
  627. package/dist/chunk-2DA7DTHO.js +0 -83
  628. package/dist/chunk-2GXAXCS2.js +0 -401
  629. package/dist/chunk-2JTZMHQK.js +0 -57
  630. package/dist/chunk-2LRJ32SO.js +0 -114
  631. package/dist/chunk-2VK7FJNR.js +0 -307
  632. package/dist/chunk-2YJS75C3.js +0 -269
  633. package/dist/chunk-2YNEUYWM.js +0 -231
  634. package/dist/chunk-2ZR75AUO.js +0 -225
  635. package/dist/chunk-32LD46VC.js +0 -72
  636. package/dist/chunk-3FVVZW7J.js +0 -84
  637. package/dist/chunk-4327UGUS.js +0 -79
  638. package/dist/chunk-45TILHFZ.js +0 -249
  639. package/dist/chunk-4AUSS7CX.js +0 -318
  640. package/dist/chunk-4ECOHGUL.js +0 -818
  641. package/dist/chunk-4FKE42TW.js +0 -1333
  642. package/dist/chunk-4K5UVYZQ.js +0 -113
  643. package/dist/chunk-4UZE7ZT4.js +0 -54
  644. package/dist/chunk-4XQH4XPP.js +0 -400
  645. package/dist/chunk-4Z7BPBS7.js +0 -34
  646. package/dist/chunk-56KVDNOS.js +0 -98
  647. package/dist/chunk-56NHT2TZ.js +0 -56
  648. package/dist/chunk-57QWSJLX.js +0 -114
  649. package/dist/chunk-5AGRFQSH.js +0 -432
  650. package/dist/chunk-5JMX5FRF.js +0 -1309
  651. package/dist/chunk-5UTHPGFF.js +0 -93
  652. package/dist/chunk-5VPQVMJI.js +0 -84
  653. package/dist/chunk-5WJCOFIU.js +0 -207
  654. package/dist/chunk-62T2ZPD5.js +0 -266
  655. package/dist/chunk-63AVTSUI.js +0 -383
  656. package/dist/chunk-6CDBX3XG.js +0 -33
  657. package/dist/chunk-6D3D2JWY.js +0 -278
  658. package/dist/chunk-6GUG7FXP.js +0 -380
  659. package/dist/chunk-6GUG7FXP.js.map +0 -1
  660. package/dist/chunk-6JGMBTXP.js +0 -114
  661. package/dist/chunk-6LYBRPUG.js +0 -931
  662. package/dist/chunk-6PHBW7SS.js +0 -287
  663. package/dist/chunk-6S2XVKNI.js +0 -91
  664. package/dist/chunk-6TWS6AXT.js +0 -1021
  665. package/dist/chunk-6VEIDSF4.js +0 -73
  666. package/dist/chunk-76NGRVCY.js +0 -340
  667. package/dist/chunk-7FFZLLCH.js +0 -391
  668. package/dist/chunk-7RRDXPNC.js +0 -111
  669. package/dist/chunk-7TLYFHMT.js +0 -851
  670. package/dist/chunk-7V2CQLTN.js +0 -20
  671. package/dist/chunk-7VDWXFTL.js +0 -772
  672. package/dist/chunk-A2OMNLDF.js +0 -150
  673. package/dist/chunk-A3QEJ2IZ.js +0 -229
  674. package/dist/chunk-A6Q6EUBR.js +0 -209
  675. package/dist/chunk-AJSRYRJS.js +0 -138
  676. package/dist/chunk-APNPWJCK.js +0 -66
  677. package/dist/chunk-ARNQH2XE.js +0 -178
  678. package/dist/chunk-B6AH43UQ.js +0 -2434
  679. package/dist/chunk-BIXGAYDJ.js +0 -276
  680. package/dist/chunk-BJ3WRO2K.js +0 -441
  681. package/dist/chunk-BO3D22BS.js +0 -12
  682. package/dist/chunk-BR62BHVY.js +0 -357
  683. package/dist/chunk-BTMSR4OA.js +0 -214
  684. package/dist/chunk-BVZYHORS.js +0 -40
  685. package/dist/chunk-BWBBS6HJ.js +0 -42
  686. package/dist/chunk-C22UPHA2.js +0 -274
  687. package/dist/chunk-C2EERTYX.js +0 -353
  688. package/dist/chunk-C2F6SKOS.js +0 -270
  689. package/dist/chunk-C625ODRG.js +0 -92
  690. package/dist/chunk-CAF3HFJH.js +0 -184
  691. package/dist/chunk-CAF3HFJH.js.map +0 -1
  692. package/dist/chunk-CC4JBFWY.js +0 -85
  693. package/dist/chunk-CDB66JAO.js +0 -283
  694. package/dist/chunk-CG2HT7TI.js +0 -269
  695. package/dist/chunk-CNNOPEAK.js +0 -570
  696. package/dist/chunk-CRBHMSAP.js +0 -469
  697. package/dist/chunk-CSK2WOOX.js +0 -83
  698. package/dist/chunk-CTBPPPLR.js +0 -2580
  699. package/dist/chunk-CTOLX2EW.js +0 -2317
  700. package/dist/chunk-CVDY7P3E.js +0 -246
  701. package/dist/chunk-CX3Z7W5Y.js +0 -107
  702. package/dist/chunk-D5K2BS5Q.js +0 -259
  703. package/dist/chunk-DA7XLT5F.js +0 -366
  704. package/dist/chunk-DAKKJ3XM.js +0 -298
  705. package/dist/chunk-DAKKJ3XM.js.map +0 -1
  706. package/dist/chunk-DC6KFW2R.js +0 -333
  707. package/dist/chunk-DIHPR5KJ.js +0 -15
  708. package/dist/chunk-DLMYANZX.js +0 -3851
  709. package/dist/chunk-DRAG2LZP.js +0 -171
  710. package/dist/chunk-E2SGFW2B.js +0 -3321
  711. package/dist/chunk-EAXZSBWV.js +0 -412
  712. package/dist/chunk-EFKWOXBP.js +0 -428
  713. package/dist/chunk-EGD5RPRX.js +0 -401
  714. package/dist/chunk-ELC2ZPHI.js +0 -1177
  715. package/dist/chunk-EZ5ZBOGQ.js +0 -1032
  716. package/dist/chunk-F2JKNL73.js +0 -187
  717. package/dist/chunk-F3LIUDXN.js +0 -738
  718. package/dist/chunk-F3LIUDXN.js.map +0 -1
  719. package/dist/chunk-FAB5SXNO.js +0 -640
  720. package/dist/chunk-FQ33JHJN.js +0 -63
  721. package/dist/chunk-FX343J2L.js +0 -132
  722. package/dist/chunk-FXFOKD7A.js +0 -449
  723. package/dist/chunk-FY42DW2R.js +0 -515
  724. package/dist/chunk-G4E5WKY7.js +0 -65
  725. package/dist/chunk-GFTV3RR6.js +0 -187
  726. package/dist/chunk-GGBMQNAB.js +0 -33
  727. package/dist/chunk-GGU7KV4G.js +0 -124
  728. package/dist/chunk-GIHE7U3Y.js +0 -174
  729. package/dist/chunk-GRGK3JJI.js +0 -10074
  730. package/dist/chunk-GRGK3JJI.js.map +0 -1
  731. package/dist/chunk-GT3FJVU6.js +0 -4596
  732. package/dist/chunk-GTGPKGWC.js +0 -65
  733. package/dist/chunk-GY6DSWBM.js +0 -82
  734. package/dist/chunk-H3EP6GNA.js +0 -538
  735. package/dist/chunk-HD2MCYQF.js +0 -234
  736. package/dist/chunk-HE4VN5D3.js +0 -4979
  737. package/dist/chunk-HFROJDFQ.js +0 -118
  738. package/dist/chunk-HHFFPE67.js +0 -220
  739. package/dist/chunk-HJ2CDFZX.js +0 -117
  740. package/dist/chunk-HJ2J2XQI.js +0 -88
  741. package/dist/chunk-HLLZPULI.js +0 -172
  742. package/dist/chunk-HPYQ5MES.js +0 -103
  743. package/dist/chunk-HRLJNDDC.js +0 -197
  744. package/dist/chunk-HVGM5IME.js +0 -170
  745. package/dist/chunk-HZE6V7GW.js +0 -214
  746. package/dist/chunk-I5DW76GB.js +0 -200
  747. package/dist/chunk-I7MZOZGC.js +0 -121
  748. package/dist/chunk-IB2EX6GX.js +0 -292
  749. package/dist/chunk-IEDDIJ6B.js +0 -4601
  750. package/dist/chunk-IEDDIJ6B.js.map +0 -1
  751. package/dist/chunk-IGFZFLI2.js +0 -1390
  752. package/dist/chunk-IGFZFLI2.js.map +0 -1
  753. package/dist/chunk-IIMRBCA4.js +0 -271
  754. package/dist/chunk-IIWNSYFA.js +0 -129
  755. package/dist/chunk-IN2ZJR2A.js +0 -96
  756. package/dist/chunk-IUPIJWFK.js +0 -905
  757. package/dist/chunk-IZA2KBYK.js +0 -57
  758. package/dist/chunk-IZZINUFM.js +0 -527
  759. package/dist/chunk-JFEAJRG6.js +0 -1029
  760. package/dist/chunk-JG7MEMJP.js +0 -1184
  761. package/dist/chunk-JIZWFW5A.js +0 -107
  762. package/dist/chunk-JJKUERR4.js +0 -131
  763. package/dist/chunk-JL4PMUDG.js +0 -192
  764. package/dist/chunk-JTWK3VE7.js +0 -202
  765. package/dist/chunk-JV2TJLUW.js +0 -144
  766. package/dist/chunk-KBDWMUYA.js +0 -175
  767. package/dist/chunk-KF65UG2L.js +0 -1628
  768. package/dist/chunk-KFYLTQGK.js +0 -133
  769. package/dist/chunk-KJI2DVSO.js +0 -26
  770. package/dist/chunk-KLYBSXHE.js +0 -3183
  771. package/dist/chunk-KPD6TBO4.js +0 -89
  772. package/dist/chunk-KTGKGHEA.js +0 -75
  773. package/dist/chunk-KUYQTNVT.js +0 -794
  774. package/dist/chunk-KZE7M52Y.js +0 -598
  775. package/dist/chunk-KZYZ3JHS.js +0 -112
  776. package/dist/chunk-L6WVCO6D.js +0 -61
  777. package/dist/chunk-L7T7M2P3.js +0 -5222
  778. package/dist/chunk-LKF6IPFC.js +0 -247
  779. package/dist/chunk-LLU7VKCZ.js +0 -188
  780. package/dist/chunk-LWEJGMVO.js +0 -50
  781. package/dist/chunk-LX5IEXDF.js +0 -505
  782. package/dist/chunk-LYEALWBN.js +0 -251
  783. package/dist/chunk-M722GGD3.js +0 -566
  784. package/dist/chunk-MCPKUVMQ.js +0 -99
  785. package/dist/chunk-MDGNCUAC.js +0 -145
  786. package/dist/chunk-MFLU3466.js +0 -99
  787. package/dist/chunk-MITT6IZG.js +0 -134
  788. package/dist/chunk-MN4LJYKQ.js +0 -608
  789. package/dist/chunk-MNCBL5AX.js +0 -449
  790. package/dist/chunk-MNCBL5AX.js.map +0 -1
  791. package/dist/chunk-MO3XJQN2.js +0 -629
  792. package/dist/chunk-MPP6BEAN.js +0 -158
  793. package/dist/chunk-MQRUZ2LW.js +0 -335
  794. package/dist/chunk-MRJFF5KY.js +0 -351
  795. package/dist/chunk-MUB44LD3.js +0 -75
  796. package/dist/chunk-MYDFABO6.js +0 -296
  797. package/dist/chunk-NJVHMK5R.js +0 -3158
  798. package/dist/chunk-NO6VQNWH.js +0 -396
  799. package/dist/chunk-NUF43R2F.js +0 -278
  800. package/dist/chunk-NUM3QV66.js +0 -107
  801. package/dist/chunk-NW4RPGET.js +0 -48
  802. package/dist/chunk-NZBZLY7H.js +0 -165
  803. package/dist/chunk-O664PL2U.js +0 -47
  804. package/dist/chunk-O664PL2U.js.map +0 -1
  805. package/dist/chunk-OCS3KIYC.js +0 -378
  806. package/dist/chunk-OKI45WHM.js +0 -311
  807. package/dist/chunk-ONF5M5GP.js +0 -283
  808. package/dist/chunk-OPCPBLHA.js +0 -79
  809. package/dist/chunk-OROXCA6L.js +0 -251
  810. package/dist/chunk-OTMJS3FV.js +0 -56
  811. package/dist/chunk-OXM267RC.js +0 -128
  812. package/dist/chunk-P5FLGDXW.js +0 -723
  813. package/dist/chunk-PC3FWPOP.js +0 -828
  814. package/dist/chunk-PPQJIVGM.js +0 -175
  815. package/dist/chunk-PQOVMZI2.js +0 -372
  816. package/dist/chunk-PVGD2RAV.js +0 -5926
  817. package/dist/chunk-PVGD2RAV.js.map +0 -1
  818. package/dist/chunk-PYU7CLEG.js +0 -215
  819. package/dist/chunk-Q2N5UR7Q.js +0 -505
  820. package/dist/chunk-Q4GB2QU3.js +0 -199
  821. package/dist/chunk-Q4RJKXQM.js +0 -606
  822. package/dist/chunk-Q4ZNRQKH.js +0 -196
  823. package/dist/chunk-Q7QXSQ46.js +0 -1185
  824. package/dist/chunk-QAVSUXLA.js +0 -773
  825. package/dist/chunk-QBJDMSFA.js +0 -27
  826. package/dist/chunk-QCB3WNCA.js +0 -176
  827. package/dist/chunk-QIOIJ7K5.js +0 -162
  828. package/dist/chunk-QR72J6WR.js +0 -650
  829. package/dist/chunk-QUTMVW4P.js +0 -141
  830. package/dist/chunk-QUXQYYZO.js +0 -73
  831. package/dist/chunk-RDHK2NYW.js +0 -129
  832. package/dist/chunk-RFBYAUZH.js +0 -311
  833. package/dist/chunk-RFBYAUZH.js.map +0 -1
  834. package/dist/chunk-RGCCRYTY.js +0 -46
  835. package/dist/chunk-RSTS3RWN.js +0 -211
  836. package/dist/chunk-RY7YRYVT.js +0 -126
  837. package/dist/chunk-S4LRL5BA.js +0 -439
  838. package/dist/chunk-S62CVC5C.js +0 -850
  839. package/dist/chunk-S62CVC5C.js.map +0 -1
  840. package/dist/chunk-SHVW3C3Y.js +0 -50
  841. package/dist/chunk-SL4CLUHR.js +0 -48
  842. package/dist/chunk-SOPKVWZJ.js +0 -1187
  843. package/dist/chunk-ST3H53IJ.js +0 -201
  844. package/dist/chunk-SYYFA7W7.js +0 -23
  845. package/dist/chunk-TBUWK3RP.js +0 -399
  846. package/dist/chunk-TC42NAIJ.js +0 -177
  847. package/dist/chunk-TJBTP6LH.js +0 -297
  848. package/dist/chunk-TQQALBLU.js +0 -391
  849. package/dist/chunk-TW56PZBB.js +0 -407
  850. package/dist/chunk-U6XRXK2T.js +0 -1356
  851. package/dist/chunk-U735UBHS.js +0 -2431
  852. package/dist/chunk-U735UBHS.js.map +0 -1
  853. package/dist/chunk-UAKG7GLE.js +0 -155
  854. package/dist/chunk-UB4GKFCI.js +0 -1095
  855. package/dist/chunk-UEAAF27Y.js +0 -108
  856. package/dist/chunk-UITWSZH3.js +0 -162
  857. package/dist/chunk-UQ67SEGH.js +0 -234
  858. package/dist/chunk-URSNCM57.js +0 -37
  859. package/dist/chunk-V77BSX2F.js +0 -1152
  860. package/dist/chunk-VATOL3OZ.js +0 -110
  861. package/dist/chunk-VEJG6GQQ.js +0 -103
  862. package/dist/chunk-VFQZPHZR.js +0 -436
  863. package/dist/chunk-VFZJV26C.js +0 -41
  864. package/dist/chunk-VJZPVP6C.js +0 -230
  865. package/dist/chunk-VQL7FHIF.js +0 -27
  866. package/dist/chunk-VSS6LRAK.js +0 -263
  867. package/dist/chunk-VSSXDLO3.js +0 -467
  868. package/dist/chunk-VVCKB62D.js +0 -1024
  869. package/dist/chunk-VVJDYTD4.js +0 -168
  870. package/dist/chunk-VVXOG3ZC.js +0 -52
  871. package/dist/chunk-W2EX346X.js +0 -85
  872. package/dist/chunk-W3R4C7Z2.js +0 -166
  873. package/dist/chunk-W43FINJV.js +0 -218
  874. package/dist/chunk-W6PJWSZ6.js +0 -1769
  875. package/dist/chunk-WCP32H3P.js +0 -2984
  876. package/dist/chunk-WKELNNIG.js +0 -3690
  877. package/dist/chunk-WRFXCMRW.js +0 -2591
  878. package/dist/chunk-WRLEHV4A.js +0 -386
  879. package/dist/chunk-WTNQHM6Q.js +0 -43
  880. package/dist/chunk-WTZ6OJUY.js +0 -3070
  881. package/dist/chunk-WVFMFQRZ.js +0 -256
  882. package/dist/chunk-WVFMFQRZ.js.map +0 -1
  883. package/dist/chunk-WYIC3CXE.js +0 -157
  884. package/dist/chunk-WZABXFUL.js +0 -246
  885. package/dist/chunk-WZABXFUL.js.map +0 -1
  886. package/dist/chunk-X3GBTLKD.js +0 -175
  887. package/dist/chunk-XBOLFS6I.js +0 -532
  888. package/dist/chunk-XF4UH54P.js +0 -250
  889. package/dist/chunk-XHPBQTJP.js +0 -1260
  890. package/dist/chunk-XQ4TJITR.js +0 -270
  891. package/dist/chunk-XRFMGLCE.js +0 -466
  892. package/dist/chunk-XV2F7PGS.js +0 -236
  893. package/dist/chunk-Y2EQTW5Q.js +0 -100
  894. package/dist/chunk-YAOXCAQD.js +0 -371
  895. package/dist/chunk-YCDB3HPS.js +0 -137
  896. package/dist/chunk-YCONEOZQ.js +0 -191
  897. package/dist/chunk-YG243U6J.js +0 -158
  898. package/dist/chunk-YGQANOSV.js +0 -113
  899. package/dist/chunk-YKRWKRNX.js +0 -138
  900. package/dist/chunk-YKT5NYYJ.js +0 -3996
  901. package/dist/chunk-YKT5NYYJ.js.map +0 -1
  902. package/dist/chunk-YLWABUFE.js +0 -406
  903. package/dist/chunk-YOKIE7NG.js +0 -227
  904. package/dist/chunk-YRCDL3GO.js +0 -2582
  905. package/dist/chunk-YVBAYE7Y.js +0 -1236
  906. package/dist/chunk-YYKPRX4P.js +0 -29
  907. package/dist/chunk-Z4MW635R.js +0 -849
  908. package/dist/chunk-Z7IPPKG6.js +0 -403
  909. package/dist/chunk-ZFGXQ54H.js +0 -114
  910. package/dist/chunk-ZGBXHHCL.js +0 -373
  911. package/dist/computer-viewer-AVH5J4TC.js +0 -21
  912. package/dist/connection-step-up-T2B25VP7.js +0 -148
  913. package/dist/connection-step-up-T2B25VP7.js.map +0 -1
  914. package/dist/embedded-new-voice-M6PBWMQZ.js +0 -25
  915. package/dist/embedded-voice-7USALJKI.js +0 -25
  916. package/dist/fleet-decision-row-XY6OZPHA.js +0 -361
  917. package/dist/model-policy-picker-menu-S5RTVLMQ.js +0 -23
  918. package/dist/payment-page-card-XSY5NO7D.js +0 -227
  919. package/dist/platform-activity-row-77WER5O3.js +0 -156
  920. package/dist/queue-surface-implementation-SDV7I32L.js +0 -933
  921. package/dist/recorder-host-7GNQG6BB.js +0 -80
  922. package/dist/sandbox-files-JOH2Q57T.js +0 -29
  923. package/dist/session-connect-cards-HZIR4ZWT.js +0 -28
  924. package/dist/session-realtime-OPCPTIAP.js +0 -30
  925. package/dist/timeline-annotation-markers-WXCRA4BY.js +0 -157
  926. package/dist/timeline-annotation-selection-YBZQNCNX.js +0 -208
  927. package/dist/timeline-annotations-dialog-4WVXTKFW.js +0 -283
  928. /package/dist/{browser-viewer-KFMM5S2B.js.map → browser-viewer-TRPZI6NT.js.map} +0 -0
  929. /package/dist/{chat-interactive-block-5DJ72HU7.js.map → chat-interactive-block-Y4BS4JCM.js.map} +0 -0
  930. /package/dist/{chunk-CRBHMSAP.js.map → chunk-22E2YJHT.js.map} +0 -0
  931. /package/dist/{chunk-H3EP6GNA.js.map → chunk-2T6TN2YL.js.map} +0 -0
  932. /package/dist/{chunk-KBDWMUYA.js.map → chunk-2WNN26NW.js.map} +0 -0
  933. /package/dist/{chunk-HJ2J2XQI.js.map → chunk-3432A6XB.js.map} +0 -0
  934. /package/dist/{chunk-DA7XLT5F.js.map → chunk-35U7NSOR.js.map} +0 -0
  935. /package/dist/{chunk-QAVSUXLA.js.map → chunk-3EPR76WS.js.map} +0 -0
  936. /package/dist/{chunk-JV2TJLUW.js.map → chunk-3FXXEU5D.js.map} +0 -0
  937. /package/dist/{chunk-QR72J6WR.js.map → chunk-3MXOPOEU.js.map} +0 -0
  938. /package/dist/{chunk-76NGRVCY.js.map → chunk-3PKDU4JI.js.map} +0 -0
  939. /package/dist/{chunk-BO3D22BS.js.map → chunk-3PMO2BIV.js.map} +0 -0
  940. /package/dist/{chunk-SL4CLUHR.js.map → chunk-3XWHJNFY.js.map} +0 -0
  941. /package/dist/{chunk-EGD5RPRX.js.map → chunk-45WD2PKE.js.map} +0 -0
  942. /package/dist/{chunk-KZE7M52Y.js.map → chunk-4H2OWNRA.js.map} +0 -0
  943. /package/dist/{chunk-VSS6LRAK.js.map → chunk-4HVGOTMU.js.map} +0 -0
  944. /package/dist/{chunk-4ECOHGUL.js.map → chunk-4JER2ZMV.js.map} +0 -0
  945. /package/dist/{chunk-HZE6V7GW.js.map → chunk-4LVZ2VOQ.js.map} +0 -0
  946. /package/dist/{chunk-B6AH43UQ.js.map → chunk-4OGDD2EM.js.map} +0 -0
  947. /package/dist/{chunk-4UZE7ZT4.js.map → chunk-4PQC6WMF.js.map} +0 -0
  948. /package/dist/{chunk-KUYQTNVT.js.map → chunk-4UVSWAT3.js.map} +0 -0
  949. /package/dist/{chunk-BTMSR4OA.js.map → chunk-53A47RBX.js.map} +0 -0
  950. /package/dist/{chunk-57QWSJLX.js.map → chunk-552KKENW.js.map} +0 -0
  951. /package/dist/{chunk-TC42NAIJ.js.map → chunk-55F7L6M3.js.map} +0 -0
  952. /package/dist/{chunk-FXFOKD7A.js.map → chunk-5AHIKB3O.js.map} +0 -0
  953. /package/dist/{chunk-Q4GB2QU3.js.map → chunk-5N4L5WTE.js.map} +0 -0
  954. /package/dist/{chunk-4327UGUS.js.map → chunk-5OUJCVZI.js.map} +0 -0
  955. /package/dist/{chunk-GTGPKGWC.js.map → chunk-5OYXQ7MH.js.map} +0 -0
  956. /package/dist/{chunk-2ZR75AUO.js.map → chunk-5TAVVMFX.js.map} +0 -0
  957. /package/dist/{chunk-2YJS75C3.js.map → chunk-5Y3LYRNH.js.map} +0 -0
  958. /package/dist/{chunk-WRLEHV4A.js.map → chunk-5ZJKKE4T.js.map} +0 -0
  959. /package/dist/{chunk-2JTZMHQK.js.map → chunk-62DPSQRZ.js.map} +0 -0
  960. /package/dist/{chunk-MN4LJYKQ.js.map → chunk-64KMWTJ6.js.map} +0 -0
  961. /package/dist/{chunk-QUXQYYZO.js.map → chunk-6MZBNUS7.js.map} +0 -0
  962. /package/dist/{chunk-XF4UH54P.js.map → chunk-6YCE4ZC4.js.map} +0 -0
  963. /package/dist/{chunk-X3GBTLKD.js.map → chunk-6YROWWMX.js.map} +0 -0
  964. /package/dist/{chunk-YVBAYE7Y.js.map → chunk-73RZ72VU.js.map} +0 -0
  965. /package/dist/{chunk-5VPQVMJI.js.map → chunk-74KV436L.js.map} +0 -0
  966. /package/dist/{chunk-CSK2WOOX.js.map → chunk-7HKGLPV5.js.map} +0 -0
  967. /package/dist/{chunk-XRFMGLCE.js.map → chunk-7JSWODT6.js.map} +0 -0
  968. /package/dist/{chunk-EFKWOXBP.js.map → chunk-7K3PKWER.js.map} +0 -0
  969. /package/dist/{chunk-U6XRXK2T.js.map → chunk-7MPWC42V.js.map} +0 -0
  970. /package/dist/{chunk-QUTMVW4P.js.map → chunk-7REO6FRN.js.map} +0 -0
  971. /package/dist/{chunk-MDGNCUAC.js.map → chunk-7YMWRNRQ.js.map} +0 -0
  972. /package/dist/{chunk-JJKUERR4.js.map → chunk-A6H3KJ7G.js.map} +0 -0
  973. /package/dist/{chunk-W6PJWSZ6.js.map → chunk-AGQIE6YU.js.map} +0 -0
  974. /package/dist/{chunk-ZGBXHHCL.js.map → chunk-AHQM4I5V.js.map} +0 -0
  975. /package/dist/{chunk-HLLZPULI.js.map → chunk-AMTRO7XF.js.map} +0 -0
  976. /package/dist/{chunk-6S2XVKNI.js.map → chunk-AO4LTCG7.js.map} +0 -0
  977. /package/dist/{chunk-CTBPPPLR.js.map → chunk-APJ22OZV.js.map} +0 -0
  978. /package/dist/{chunk-TW56PZBB.js.map → chunk-APWL37KW.js.map} +0 -0
  979. /package/dist/{chunk-DIHPR5KJ.js.map → chunk-AQEJOBQ2.js.map} +0 -0
  980. /package/dist/{chunk-HD2MCYQF.js.map → chunk-ARKNT6BX.js.map} +0 -0
  981. /package/dist/{chunk-RSTS3RWN.js.map → chunk-B2IHDMAR.js.map} +0 -0
  982. /package/dist/{chunk-KZYZ3JHS.js.map → chunk-BCKIV26W.js.map} +0 -0
  983. /package/dist/{chunk-D5K2BS5Q.js.map → chunk-BE26JUSD.js.map} +0 -0
  984. /package/dist/{chunk-DRAG2LZP.js.map → chunk-BOVCD6KD.js.map} +0 -0
  985. /package/dist/{chunk-IIWNSYFA.js.map → chunk-BQWV66A6.js.map} +0 -0
  986. /package/dist/{chunk-BJ3WRO2K.js.map → chunk-BSQJXGGP.js.map} +0 -0
  987. /package/dist/{chunk-KLYBSXHE.js.map → chunk-BZY3MEVZ.js.map} +0 -0
  988. /package/dist/{chunk-MQRUZ2LW.js.map → chunk-C3D3OOEY.js.map} +0 -0
  989. /package/dist/{chunk-GY6DSWBM.js.map → chunk-CDHYO3DP.js.map} +0 -0
  990. /package/dist/{chunk-OPCPBLHA.js.map → chunk-CDV5JGVI.js.map} +0 -0
  991. /package/dist/{chunk-5WJCOFIU.js.map → chunk-CNW45M7G.js.map} +0 -0
  992. /package/dist/{chunk-A2OMNLDF.js.map → chunk-CUVQ37HB.js.map} +0 -0
  993. /package/dist/{chunk-XBOLFS6I.js.map → chunk-D32T3IIC.js.map} +0 -0
  994. /package/dist/{chunk-YAOXCAQD.js.map → chunk-D65BSM64.js.map} +0 -0
  995. /package/dist/{chunk-CNNOPEAK.js.map → chunk-D7435DWV.js.map} +0 -0
  996. /package/dist/{chunk-32LD46VC.js.map → chunk-DFH3M7B3.js.map} +0 -0
  997. /package/dist/{chunk-QIOIJ7K5.js.map → chunk-DGWBQ76M.js.map} +0 -0
  998. /package/dist/{chunk-PQOVMZI2.js.map → chunk-DHJDTGSJ.js.map} +0 -0
  999. /package/dist/{chunk-4XQH4XPP.js.map → chunk-DKEFTNCD.js.map} +0 -0
  1000. /package/dist/{chunk-JIZWFW5A.js.map → chunk-DNAF6MT4.js.map} +0 -0
  1001. /package/dist/{chunk-QBJDMSFA.js.map → chunk-E35XY7DS.js.map} +0 -0
  1002. /package/dist/{chunk-NO6VQNWH.js.map → chunk-E5T5WIIP.js.map} +0 -0
  1003. /package/dist/{chunk-W3R4C7Z2.js.map → chunk-EL6ECD34.js.map} +0 -0
  1004. /package/dist/{chunk-VSSXDLO3.js.map → chunk-ELR6ITRC.js.map} +0 -0
  1005. /package/dist/{chunk-7TLYFHMT.js.map → chunk-EPE3V2VE.js.map} +0 -0
  1006. /package/dist/{chunk-2B3RQRNQ.js.map → chunk-EYGQHHVW.js.map} +0 -0
  1007. /package/dist/{chunk-2VK7FJNR.js.map → chunk-EYQEJHYP.js.map} +0 -0
  1008. /package/dist/{chunk-BIXGAYDJ.js.map → chunk-EZTH2XMH.js.map} +0 -0
  1009. /package/dist/{chunk-6PHBW7SS.js.map → chunk-F3QVHVFS.js.map} +0 -0
  1010. /package/dist/{chunk-SOPKVWZJ.js.map → chunk-F5VWPREQ.js.map} +0 -0
  1011. /package/dist/{chunk-YGQANOSV.js.map → chunk-FM7AQUBL.js.map} +0 -0
  1012. /package/dist/{chunk-Y2EQTW5Q.js.map → chunk-FP6BUXJM.js.map} +0 -0
  1013. /package/dist/{chunk-45TILHFZ.js.map → chunk-FVU52L3I.js.map} +0 -0
  1014. /package/dist/{chunk-W43FINJV.js.map → chunk-FZKNXNNO.js.map} +0 -0
  1015. /package/dist/{chunk-XV2F7PGS.js.map → chunk-G3IXJWRY.js.map} +0 -0
  1016. /package/dist/{chunk-DC6KFW2R.js.map → chunk-G6EI2O3N.js.map} +0 -0
  1017. /package/dist/{chunk-2GXAXCS2.js.map → chunk-GB5T6YMZ.js.map} +0 -0
  1018. /package/dist/{chunk-WYIC3CXE.js.map → chunk-GBLD6FOG.js.map} +0 -0
  1019. /package/dist/{chunk-YCDB3HPS.js.map → chunk-GJBFFXCY.js.map} +0 -0
  1020. /package/dist/{chunk-APNPWJCK.js.map → chunk-GJDP2K2S.js.map} +0 -0
  1021. /package/dist/{chunk-GFTV3RR6.js.map → chunk-GP26XTDX.js.map} +0 -0
  1022. /package/dist/{chunk-Q4RJKXQM.js.map → chunk-GTE6WP4N.js.map} +0 -0
  1023. /package/dist/{chunk-UEAAF27Y.js.map → chunk-GWG3OAV7.js.map} +0 -0
  1024. /package/dist/{chunk-6LYBRPUG.js.map → chunk-GXMHTMM6.js.map} +0 -0
  1025. /package/dist/{chunk-NUM3QV66.js.map → chunk-GYRN5O2E.js.map} +0 -0
  1026. /package/dist/{chunk-G4E5WKY7.js.map → chunk-GZX7W2WW.js.map} +0 -0
  1027. /package/dist/{chunk-Z7IPPKG6.js.map → chunk-H3QI2G2B.js.map} +0 -0
  1028. /package/dist/{chunk-Z4MW635R.js.map → chunk-H7D4DVWY.js.map} +0 -0
  1029. /package/dist/{chunk-YCONEOZQ.js.map → chunk-HCDGBBBJ.js.map} +0 -0
  1030. /package/dist/{chunk-DLMYANZX.js.map → chunk-HDSH6MIJ.js.map} +0 -0
  1031. /package/dist/{chunk-KPD6TBO4.js.map → chunk-HOEUPZ6O.js.map} +0 -0
  1032. /package/dist/{chunk-7VDWXFTL.js.map → chunk-HPQRWTQB.js.map} +0 -0
  1033. /package/dist/{chunk-GIHE7U3Y.js.map → chunk-HUKGLWAY.js.map} +0 -0
  1034. /package/dist/{chunk-SYYFA7W7.js.map → chunk-HUTQJY3F.js.map} +0 -0
  1035. /package/dist/{chunk-62T2ZPD5.js.map → chunk-HWOYJOKK.js.map} +0 -0
  1036. /package/dist/{chunk-IN2ZJR2A.js.map → chunk-HZR3WGUP.js.map} +0 -0
  1037. /package/dist/{chunk-YKRWKRNX.js.map → chunk-I7YUDPDR.js.map} +0 -0
  1038. /package/dist/{chunk-VQL7FHIF.js.map → chunk-IDII52M4.js.map} +0 -0
  1039. /package/dist/{chunk-HPYQ5MES.js.map → chunk-IDPWEUM7.js.map} +0 -0
  1040. /package/dist/{chunk-JL4PMUDG.js.map → chunk-IEWQFGEC.js.map} +0 -0
  1041. /package/dist/{chunk-MRJFF5KY.js.map → chunk-IMTACEXF.js.map} +0 -0
  1042. /package/dist/{chunk-2LRJ32SO.js.map → chunk-IVWT6M6N.js.map} +0 -0
  1043. /package/dist/{chunk-7RRDXPNC.js.map → chunk-JEUPIHIP.js.map} +0 -0
  1044. /package/dist/{chunk-VVJDYTD4.js.map → chunk-JF4WX3GQ.js.map} +0 -0
  1045. /package/dist/{chunk-WRFXCMRW.js.map → chunk-JJPYXUKC.js.map} +0 -0
  1046. /package/dist/{chunk-WTNQHM6Q.js.map → chunk-JNHWTYDD.js.map} +0 -0
  1047. /package/dist/{chunk-RGCCRYTY.js.map → chunk-JP7AOJWD.js.map} +0 -0
  1048. /package/dist/{chunk-TJBTP6LH.js.map → chunk-JTWT2WQA.js.map} +0 -0
  1049. /package/dist/{chunk-HJ2CDFZX.js.map → chunk-JW3WIHWO.js.map} +0 -0
  1050. /package/dist/{chunk-MITT6IZG.js.map → chunk-JW7RJMEZ.js.map} +0 -0
  1051. /package/dist/{chunk-CTOLX2EW.js.map → chunk-K76PXR3O.js.map} +0 -0
  1052. /package/dist/{chunk-CX3Z7W5Y.js.map → chunk-KCNIQN6V.js.map} +0 -0
  1053. /package/dist/{chunk-2YNEUYWM.js.map → chunk-KH6KHYST.js.map} +0 -0
  1054. /package/dist/{chunk-LKF6IPFC.js.map → chunk-KK4SEN7N.js.map} +0 -0
  1055. /package/dist/{chunk-63AVTSUI.js.map → chunk-KOKRGAAI.js.map} +0 -0
  1056. /package/dist/{chunk-F2JKNL73.js.map → chunk-KQFNTGAF.js.map} +0 -0
  1057. /package/dist/{chunk-SHVW3C3Y.js.map → chunk-KRLNC6TH.js.map} +0 -0
  1058. /package/dist/{chunk-MFLU3466.js.map → chunk-KYDLVMKA.js.map} +0 -0
  1059. /package/dist/{chunk-UAKG7GLE.js.map → chunk-KZQDP2JM.js.map} +0 -0
  1060. /package/dist/{chunk-FX343J2L.js.map → chunk-L2EZ2HOX.js.map} +0 -0
  1061. /package/dist/{chunk-GGBMQNAB.js.map → chunk-L2UAFR2D.js.map} +0 -0
  1062. /package/dist/{chunk-GT3FJVU6.js.map → chunk-L4R7ORMD.js.map} +0 -0
  1063. /package/dist/{chunk-YOKIE7NG.js.map → chunk-LCLWN64E.js.map} +0 -0
  1064. /package/dist/{chunk-PPQJIVGM.js.map → chunk-LFQI2C46.js.map} +0 -0
  1065. /package/dist/{chunk-KF65UG2L.js.map → chunk-LLYX4F5A.js.map} +0 -0
  1066. /package/dist/{chunk-PYU7CLEG.js.map → chunk-LQX5QCDS.js.map} +0 -0
  1067. /package/dist/{chunk-Q4ZNRQKH.js.map → chunk-LRMHASG2.js.map} +0 -0
  1068. /package/dist/{chunk-MO3XJQN2.js.map → chunk-M5FX5KH5.js.map} +0 -0
  1069. /package/dist/{chunk-ST3H53IJ.js.map → chunk-MLOTUQJJ.js.map} +0 -0
  1070. /package/dist/{chunk-A6Q6EUBR.js.map → chunk-MPUKGKXZ.js.map} +0 -0
  1071. /package/dist/{chunk-ONF5M5GP.js.map → chunk-MS6LW4VU.js.map} +0 -0
  1072. /package/dist/{chunk-NUF43R2F.js.map → chunk-MXPW4F74.js.map} +0 -0
  1073. /package/dist/{chunk-MPP6BEAN.js.map → chunk-MZ7GJX5S.js.map} +0 -0
  1074. /package/dist/{chunk-XHPBQTJP.js.map → chunk-N5OUIUYD.js.map} +0 -0
  1075. /package/dist/{chunk-EAXZSBWV.js.map → chunk-N6FNORC7.js.map} +0 -0
  1076. /package/dist/{chunk-4K5UVYZQ.js.map → chunk-NALVKY4U.js.map} +0 -0
  1077. /package/dist/{chunk-L7T7M2P3.js.map → chunk-NJ77ZL5T.js.map} +0 -0
  1078. /package/dist/{chunk-XQ4TJITR.js.map → chunk-NM2DNJDJ.js.map} +0 -0
  1079. /package/dist/{chunk-VATOL3OZ.js.map → chunk-NNKRRF7E.js.map} +0 -0
  1080. /package/dist/{chunk-4AUSS7CX.js.map → chunk-NP5UFWU4.js.map} +0 -0
  1081. /package/dist/{chunk-HFROJDFQ.js.map → chunk-NV3AEIFO.js.map} +0 -0
  1082. /package/dist/{chunk-PC3FWPOP.js.map → chunk-O6JDF7KH.js.map} +0 -0
  1083. /package/dist/{chunk-OROXCA6L.js.map → chunk-OERZH3J4.js.map} +0 -0
  1084. /package/dist/{chunk-V77BSX2F.js.map → chunk-OKHWTWWU.js.map} +0 -0
  1085. /package/dist/{chunk-C22UPHA2.js.map → chunk-OLAIUVGT.js.map} +0 -0
  1086. /package/dist/{chunk-C2F6SKOS.js.map → chunk-OO36IUMS.js.map} +0 -0
  1087. /package/dist/{chunk-IZA2KBYK.js.map → chunk-OVDK7K2Z.js.map} +0 -0
  1088. /package/dist/{chunk-FQ33JHJN.js.map → chunk-OX5ZCHZQ.js.map} +0 -0
  1089. /package/dist/{chunk-FY42DW2R.js.map → chunk-P6LLCGPO.js.map} +0 -0
  1090. /package/dist/{chunk-LX5IEXDF.js.map → chunk-PA2CUHTD.js.map} +0 -0
  1091. /package/dist/{chunk-HE4VN5D3.js.map → chunk-PB4CQIRA.js.map} +0 -0
  1092. /package/dist/{chunk-M722GGD3.js.map → chunk-PBV2P632.js.map} +0 -0
  1093. /package/dist/{chunk-KTGKGHEA.js.map → chunk-PCSRHFRF.js.map} +0 -0
  1094. /package/dist/{chunk-VFQZPHZR.js.map → chunk-PEPWW5BC.js.map} +0 -0
  1095. /package/dist/{chunk-6CDBX3XG.js.map → chunk-PMBZMVKE.js.map} +0 -0
  1096. /package/dist/{chunk-4Z7BPBS7.js.map → chunk-PP32RE26.js.map} +0 -0
  1097. /package/dist/{chunk-6VEIDSF4.js.map → chunk-PTXAPI3Q.js.map} +0 -0
  1098. /package/dist/{chunk-OTMJS3FV.js.map → chunk-PULNNF7G.js.map} +0 -0
  1099. /package/dist/{chunk-YG243U6J.js.map → chunk-Q6KNROUT.js.map} +0 -0
  1100. /package/dist/{chunk-EZ5ZBOGQ.js.map → chunk-QGJIFIKN.js.map} +0 -0
  1101. /package/dist/{chunk-VFZJV26C.js.map → chunk-QKKKORGL.js.map} +0 -0
  1102. /package/dist/{chunk-W2EX346X.js.map → chunk-QKUMMG6P.js.map} +0 -0
  1103. /package/dist/{chunk-BVZYHORS.js.map → chunk-QNOWKKZ4.js.map} +0 -0
  1104. /package/dist/{chunk-3FVVZW7J.js.map → chunk-QSWD3AHE.js.map} +0 -0
  1105. /package/dist/{chunk-7FFZLLCH.js.map → chunk-QZ4U2VL5.js.map} +0 -0
  1106. /package/dist/{chunk-IIMRBCA4.js.map → chunk-QZJNCLHV.js.map} +0 -0
  1107. /package/dist/{chunk-6D3D2JWY.js.map → chunk-R6CFPY3F.js.map} +0 -0
  1108. /package/dist/{chunk-YLWABUFE.js.map → chunk-R6QRUYUH.js.map} +0 -0
  1109. /package/dist/{chunk-WCP32H3P.js.map → chunk-RE3GAQI5.js.map} +0 -0
  1110. /package/dist/{chunk-JG7MEMJP.js.map → chunk-RFHUVPFA.js.map} +0 -0
  1111. /package/dist/{chunk-WKELNNIG.js.map → chunk-RH45HT5T.js.map} +0 -0
  1112. /package/dist/{chunk-S4LRL5BA.js.map → chunk-RJNQTZ5O.js.map} +0 -0
  1113. /package/dist/{chunk-URSNCM57.js.map → chunk-S2BJTAAB.js.map} +0 -0
  1114. /package/dist/{chunk-AJSRYRJS.js.map → chunk-S56PWXIX.js.map} +0 -0
  1115. /package/dist/{chunk-FAB5SXNO.js.map → chunk-S6FFDIHD.js.map} +0 -0
  1116. /package/dist/{chunk-56NHT2TZ.js.map → chunk-S6MAMIK2.js.map} +0 -0
  1117. /package/dist/{chunk-OKI45WHM.js.map → chunk-SERTO6H6.js.map} +0 -0
  1118. /package/dist/{chunk-I5DW76GB.js.map → chunk-STOOH7EI.js.map} +0 -0
  1119. /package/dist/{chunk-I7MZOZGC.js.map → chunk-SWSTEUXX.js.map} +0 -0
  1120. /package/dist/{chunk-JFEAJRG6.js.map → chunk-SWZN7NNZ.js.map} +0 -0
  1121. /package/dist/{chunk-ARNQH2XE.js.map → chunk-SYDF57KS.js.map} +0 -0
  1122. /package/dist/{chunk-YYKPRX4P.js.map → chunk-T275CUVD.js.map} +0 -0
  1123. /package/dist/{chunk-OCS3KIYC.js.map → chunk-T4OT7QWP.js.map} +0 -0
  1124. /package/dist/{chunk-YRCDL3GO.js.map → chunk-TCSRY2NP.js.map} +0 -0
  1125. /package/dist/{chunk-ELC2ZPHI.js.map → chunk-TCX5OA2X.js.map} +0 -0
  1126. /package/dist/{chunk-NJVHMK5R.js.map → chunk-TDW5CSO5.js.map} +0 -0
  1127. /package/dist/{chunk-MCPKUVMQ.js.map → chunk-TGG3ODCS.js.map} +0 -0
  1128. /package/dist/{chunk-Q2N5UR7Q.js.map → chunk-TILSTYUC.js.map} +0 -0
  1129. /package/dist/{chunk-4FKE42TW.js.map → chunk-TJ5DYWXU.js.map} +0 -0
  1130. /package/dist/{chunk-TQQALBLU.js.map → chunk-TNRI4ZE6.js.map} +0 -0
  1131. /package/dist/{chunk-LLU7VKCZ.js.map → chunk-TPIFVUMF.js.map} +0 -0
  1132. /package/dist/{chunk-UITWSZH3.js.map → chunk-TSW6OF22.js.map} +0 -0
  1133. /package/dist/{chunk-UB4GKFCI.js.map → chunk-TTSTBHGR.js.map} +0 -0
  1134. /package/dist/{chunk-HVGM5IME.js.map → chunk-U3JYAWMR.js.map} +0 -0
  1135. /package/dist/{chunk-GGU7KV4G.js.map → chunk-U7ODSHA5.js.map} +0 -0
  1136. /package/dist/{chunk-NW4RPGET.js.map → chunk-UEGEPRNP.js.map} +0 -0
  1137. /package/dist/{chunk-2DA7DTHO.js.map → chunk-UGIA2YEJ.js.map} +0 -0
  1138. /package/dist/{chunk-5AGRFQSH.js.map → chunk-UHLKKDNF.js.map} +0 -0
  1139. /package/dist/{chunk-KJI2DVSO.js.map → chunk-ULVXKIPX.js.map} +0 -0
  1140. /package/dist/{chunk-56KVDNOS.js.map → chunk-USUDKZ5G.js.map} +0 -0
  1141. /package/dist/{chunk-CC4JBFWY.js.map → chunk-UVO6I2F6.js.map} +0 -0
  1142. /package/dist/{chunk-BR62BHVY.js.map → chunk-V6NVG4K2.js.map} +0 -0
  1143. /package/dist/{chunk-Q7QXSQ46.js.map → chunk-VCMQFD3G.js.map} +0 -0
  1144. /package/dist/{chunk-CVDY7P3E.js.map → chunk-VKPBDNIO.js.map} +0 -0
  1145. /package/dist/{chunk-L6WVCO6D.js.map → chunk-VLDKWGHD.js.map} +0 -0
  1146. /package/dist/{chunk-IUPIJWFK.js.map → chunk-VM2NA2EL.js.map} +0 -0
  1147. /package/dist/{chunk-6JGMBTXP.js.map → chunk-VMZTCVEL.js.map} +0 -0
  1148. /package/dist/{chunk-CG2HT7TI.js.map → chunk-VQH5AXZY.js.map} +0 -0
  1149. /package/dist/{chunk-ZFGXQ54H.js.map → chunk-VTBTW6N4.js.map} +0 -0
  1150. /package/dist/{chunk-VJZPVP6C.js.map → chunk-VV7PLDX4.js.map} +0 -0
  1151. /package/dist/{chunk-LWEJGMVO.js.map → chunk-VYGGLH5H.js.map} +0 -0
  1152. /package/dist/{chunk-KFYLTQGK.js.map → chunk-VYQHHTQ4.js.map} +0 -0
  1153. /package/dist/{chunk-IB2EX6GX.js.map → chunk-VYSGRD2W.js.map} +0 -0
  1154. /package/dist/{chunk-5JMX5FRF.js.map → chunk-W4W63LTP.js.map} +0 -0
  1155. /package/dist/{chunk-HRLJNDDC.js.map → chunk-WHTRR66J.js.map} +0 -0
  1156. /package/dist/{chunk-BWBBS6HJ.js.map → chunk-WICIQFHJ.js.map} +0 -0
  1157. /package/dist/{chunk-CDB66JAO.js.map → chunk-WJYYMCCC.js.map} +0 -0
  1158. /package/dist/{chunk-TBUWK3RP.js.map → chunk-WSJOWQJE.js.map} +0 -0
  1159. /package/dist/{chunk-C2EERTYX.js.map → chunk-WYDUXZ2R.js.map} +0 -0
  1160. /package/dist/{chunk-E2SGFW2B.js.map → chunk-X62CN4YR.js.map} +0 -0
  1161. /package/dist/{chunk-VVCKB62D.js.map → chunk-XFQHKMO6.js.map} +0 -0
  1162. /package/dist/{chunk-IZZINUFM.js.map → chunk-XGJ7XZHS.js.map} +0 -0
  1163. /package/dist/{chunk-P5FLGDXW.js.map → chunk-XJFJNOEV.js.map} +0 -0
  1164. /package/dist/{chunk-UQ67SEGH.js.map → chunk-XKJLHMXZ.js.map} +0 -0
  1165. /package/dist/{chunk-VEJG6GQQ.js.map → chunk-XLFPJVQS.js.map} +0 -0
  1166. /package/dist/{chunk-RDHK2NYW.js.map → chunk-XM4ZLZFW.js.map} +0 -0
  1167. /package/dist/{chunk-6TWS6AXT.js.map → chunk-Y2GAWEJD.js.map} +0 -0
  1168. /package/dist/{chunk-MYDFABO6.js.map → chunk-Y3A74SVK.js.map} +0 -0
  1169. /package/dist/{chunk-C625ODRG.js.map → chunk-YANEVGI3.js.map} +0 -0
  1170. /package/dist/{chunk-OXM267RC.js.map → chunk-YHHSO5QR.js.map} +0 -0
  1171. /package/dist/{chunk-VVXOG3ZC.js.map → chunk-YOSOCHCB.js.map} +0 -0
  1172. /package/dist/{chunk-HHFFPE67.js.map → chunk-YP4SNX4P.js.map} +0 -0
  1173. /package/dist/{chunk-QCB3WNCA.js.map → chunk-YQH6AMIH.js.map} +0 -0
  1174. /package/dist/{chunk-NZBZLY7H.js.map → chunk-YRWL2IAE.js.map} +0 -0
  1175. /package/dist/{chunk-LYEALWBN.js.map → chunk-YTWRQ3WK.js.map} +0 -0
  1176. /package/dist/{chunk-7V2CQLTN.js.map → chunk-YV5GGSLK.js.map} +0 -0
  1177. /package/dist/{chunk-RY7YRYVT.js.map → chunk-YXUDK37V.js.map} +0 -0
  1178. /package/dist/{chunk-MUB44LD3.js.map → chunk-YYM5TSCR.js.map} +0 -0
  1179. /package/dist/{chunk-JTWK3VE7.js.map → chunk-ZG2CKFQF.js.map} +0 -0
  1180. /package/dist/{chunk-5UTHPGFF.js.map → chunk-ZGJXO2HH.js.map} +0 -0
  1181. /package/dist/{chunk-WTZ6OJUY.js.map → chunk-ZGV76PZ4.js.map} +0 -0
  1182. /package/dist/{chunk-A3QEJ2IZ.js.map → chunk-ZOBUR2VC.js.map} +0 -0
  1183. /package/dist/{computer-viewer-AVH5J4TC.js.map → computer-viewer-S6AL3XDT.js.map} +0 -0
  1184. /package/dist/{embedded-new-voice-M6PBWMQZ.js.map → embedded-new-voice-T3BXRYJX.js.map} +0 -0
  1185. /package/dist/{embedded-voice-7USALJKI.js.map → embedded-voice-ZJXMF3RP.js.map} +0 -0
  1186. /package/dist/{fleet-decision-row-XY6OZPHA.js.map → fleet-decision-row-AUCMLBCV.js.map} +0 -0
  1187. /package/dist/{model-policy-picker-menu-S5RTVLMQ.js.map → model-policy-picker-menu-TO57YUQ6.js.map} +0 -0
  1188. /package/dist/{payment-page-card-XSY5NO7D.js.map → payment-page-card-DFGDAMTG.js.map} +0 -0
  1189. /package/dist/{platform-activity-row-77WER5O3.js.map → platform-activity-row-ZMBEJGXN.js.map} +0 -0
  1190. /package/dist/{queue-surface-implementation-SDV7I32L.js.map → queue-surface-implementation-KDK5CYH6.js.map} +0 -0
  1191. /package/dist/{recorder-host-7GNQG6BB.js.map → recorder-host-3HLYRL4H.js.map} +0 -0
  1192. /package/dist/{sandbox-files-JOH2Q57T.js.map → sandbox-files-UOZ4OJZU.js.map} +0 -0
  1193. /package/dist/{session-connect-cards-HZIR4ZWT.js.map → session-connect-cards-VZIYLH45.js.map} +0 -0
  1194. /package/dist/{session-realtime-OPCPTIAP.js.map → session-realtime-2ZGJWVZP.js.map} +0 -0
  1195. /package/dist/{timeline-annotation-markers-WXCRA4BY.js.map → timeline-annotation-markers-KBTFWLME.js.map} +0 -0
  1196. /package/dist/{timeline-annotation-selection-YBZQNCNX.js.map → timeline-annotation-selection-VI4YSDR5.js.map} +0 -0
  1197. /package/dist/{timeline-annotations-dialog-4WVXTKFW.js.map → timeline-annotations-dialog-4PLWNLRB.js.map} +0 -0
@@ -1,3996 +0,0 @@
1
- "use client";
2
- import {
3
- PierreDiff
4
- } from "./chunk-W43FINJV.js";
5
- import {
6
- useThemeType
7
- } from "./chunk-B27E3V37.js";
8
- import {
9
- useEntranceAnimation,
10
- useEntranceAnimationLive
11
- } from "./chunk-EAG6A27Q.js";
12
- import {
13
- GENIE_PREPARING_PHRASES,
14
- GENIE_WAITING_PHRASES,
15
- applyPatchPresentation,
16
- askPresentation,
17
- createToolRegistry,
18
- execPresentation,
19
- genericToolIconKind,
20
- machinePresentation,
21
- parseDisclosedTools,
22
- parseSearchHits,
23
- pathBasename,
24
- pathDirname,
25
- plainToolRow,
26
- presentedToolKind,
27
- presentsToolOutputPreview,
28
- runOnPresentation,
29
- toolRowPresentation,
30
- toolSearchPreview,
31
- toolSearchQuery,
32
- truncatePreview,
33
- useAgentIdentity,
34
- webSearchPresentation,
35
- writeStdinPresentation
36
- } from "./chunk-B6AH43UQ.js";
37
- import {
38
- createTurnSummaryContext,
39
- formatElapsed,
40
- resolveTurnSummaryFacets,
41
- selectTurnSummaryFacets,
42
- turnSummaryFallbackLabel,
43
- turnSummaryLiveMarkState
44
- } from "./chunk-FPSWN6GU.js";
45
- import {
46
- PatchApplyCommand,
47
- useRetainedImageObjectUrl
48
- } from "./chunk-HLLZPULI.js";
49
- import {
50
- isPatchFilename,
51
- isRetainedImageContentType,
52
- paymentPageOf
53
- } from "./chunk-HXYSZKCC.js";
54
- import {
55
- reviewFacts
56
- } from "./chunk-YMQVVFXI.js";
57
- import {
58
- CopyButton,
59
- LazyPart,
60
- MOTION_INSPECT_SCALE,
61
- Markdown
62
- } from "./chunk-U735UBHS.js";
63
- import {
64
- ActivityDisclosure,
65
- BodyNote,
66
- CompactActivityContext,
67
- MediaEmpty,
68
- MediaSkeleton,
69
- PayloadBlock,
70
- ScreenshotFigure,
71
- SecretRefText,
72
- TermBlock,
73
- Thumbnail,
74
- ToolCallTruncationProvider,
75
- ToolOutputPreviewProvider,
76
- useForcedDefaultOpen,
77
- useTimelineSearchReveal
78
- } from "./chunk-PC3FWPOP.js";
79
- import {
80
- DecisionActions,
81
- DecisionButton,
82
- DecisionMark,
83
- decisionCardClass,
84
- decisionCardPad
85
- } from "./chunk-2FASQ2SZ.js";
86
- import {
87
- useToolDetails
88
- } from "./chunk-RZLBICR5.js";
89
- import {
90
- LoadFailureNotice,
91
- isChunkLoadError
92
- } from "./chunk-CC4JBFWY.js";
93
- import {
94
- redactDeep,
95
- redactToolCall,
96
- signedValuesDeep
97
- } from "./chunk-YM45PLD6.js";
98
- import {
99
- ShimmerText
100
- } from "./chunk-HZPCSRSB.js";
101
- import {
102
- useOpenGeniLinkResolver
103
- } from "./chunk-W4QUDV6Y.js";
104
- import {
105
- approvalsFromRequiresAction
106
- } from "./chunk-IYSYSNAV.js";
107
- import {
108
- invokedToolCall,
109
- learningRefusalBody,
110
- learningRefusalPlace,
111
- learningRefusalPlaceLabel,
112
- learningRefusalTitle
113
- } from "./chunk-DEDEA3WS.js";
114
- import {
115
- workerRowTitleParts
116
- } from "./chunk-V5CHHBGS.js";
117
- import {
118
- generatedImageReceipt,
119
- mediaPreviewFact,
120
- parseToolArgs,
121
- retainedScreenshotMetadata,
122
- retainedToolResultImages,
123
- screenshotDataUrl,
124
- unwrapMcpOutput
125
- } from "./chunk-E4BLXMIZ.js";
126
- import {
127
- mcpToolLeaf,
128
- toolActionTitle,
129
- toolDisplayName,
130
- wordedToolActionReview
131
- } from "./chunk-KSNKF6FE.js";
132
- import {
133
- displayImageSrc
134
- } from "./chunk-S5ORWTCJ.js";
135
- import {
136
- clickDownloadLink,
137
- saveBlob
138
- } from "./chunk-BJFDVT5B.js";
139
- import {
140
- cn
141
- } from "./chunk-TXS65BB2.js";
142
- import {
143
- useOpenGeniText
144
- } from "./chunk-PVGD2RAV.js";
145
- import {
146
- formatBytes,
147
- truncate,
148
- tryParseJson
149
- } from "./chunk-UIK52VL4.js";
150
-
151
- // src/components/tool-action-review.tsx
152
- import {
153
- ArrowLeftIcon,
154
- CheckIcon,
155
- ChevronRightIcon,
156
- CircleAlertIcon,
157
- CircleSlashIcon,
158
- LoaderCircleIcon,
159
- ShieldCheckIcon
160
- } from "lucide-react";
161
- import {
162
- useEffect,
163
- useId,
164
- useMemo,
165
- useRef,
166
- useState
167
- } from "react";
168
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
169
- var statusText = (t) => ({
170
- pending: t("toolActionReview.approvalNeeded"),
171
- approved: t("toolActionReview.approved"),
172
- executing: t("toolActionReview.approvedRunning"),
173
- completed: t("toolActionReview.approvedDone"),
174
- partial: t("toolActionReview.partlyDone"),
175
- unknown: t("toolActionReview.outcomeUnknown"),
176
- rejected: t("toolActionReview.declined"),
177
- cancelled: t("toolActionReview.cancelled"),
178
- expired: t("toolActionReview.expired"),
179
- revoked: t("toolActionReview.accessUnavailable"),
180
- blocked: t("toolActionReview.blocked"),
181
- stale: t("toolActionReview.noLongerValid"),
182
- failed: t("toolActionReview.failed"),
183
- unavailable: t("toolActionReview.detailsUnavailable")
184
- });
185
- var statusDetail = (t) => ({
186
- unknown: t("toolActionReview.itMayHaveRunCheck"),
187
- rejected: t("toolActionReview.thisActionDidNotRun"),
188
- cancelled: t("toolActionReview.thisActionDidNotRun"),
189
- expired: t("toolActionReview.thisActionDidNotRun2"),
190
- revoked: t("toolActionReview.thisActionDidNotRun3"),
191
- stale: t("toolActionReview.theToolOrAccountChanged"),
192
- partial: t("toolActionReview.someOfItRanCheck"),
193
- failed: t("toolActionReview.theActionRanButReturned")
194
- });
195
- var statusTone = {
196
- pending: "waiting",
197
- approved: "ok",
198
- executing: "ok",
199
- completed: "ok",
200
- partial: "failed",
201
- unknown: "failed",
202
- rejected: "muted",
203
- cancelled: "muted",
204
- expired: "muted",
205
- revoked: "muted",
206
- blocked: "muted",
207
- stale: "muted",
208
- failed: "failed",
209
- unavailable: "muted"
210
- };
211
- var headerPart = "before:inline-block before:w-3 before:text-center before:text-og-fg-muted before:content-['\xB7'_/_'']";
212
- var toneText = {
213
- waiting: "text-og-fg-muted",
214
- ok: "text-og-fg-muted",
215
- failed: "text-og-status-failed",
216
- muted: "text-og-fg-muted"
217
- };
218
- var UNRECOVERABLE_TEXT = (t) => t("toolActionReview.theDetailsOfThisOlder");
219
- var ACCOUNT_OWNER_TEXT = (t, name) => name ? t("toolActionReview.onlyNameCanApprove", { name }) : t("toolActionReview.onlyTheAccountOwnerCanApprove");
220
- function StatusIcon({ status, busy }) {
221
- const className = "size-4";
222
- if (busy || status === "executing" || status === "approved")
223
- return /* @__PURE__ */ jsx(LoaderCircleIcon, { "aria-hidden": "true", className: cn(className, "animate-spin") });
224
- if (status === "pending") return /* @__PURE__ */ jsx(ShieldCheckIcon, { "aria-hidden": "true", className });
225
- if (status === "completed") return /* @__PURE__ */ jsx(CheckIcon, { "aria-hidden": "true", className });
226
- if (statusTone[status] === "failed")
227
- return /* @__PURE__ */ jsx(CircleAlertIcon, { "aria-hidden": "true", className });
228
- return /* @__PURE__ */ jsx(CircleSlashIcon, { "aria-hidden": "true", className });
229
- }
230
- function ToolReviewFrame({
231
- tone,
232
- icon,
233
- eyebrow,
234
- title,
235
- titleId,
236
- subtitle,
237
- children,
238
- footer,
239
- bare = false,
240
- ...rest
241
- }) {
242
- const waiting = tone === "waiting";
243
- return /* @__PURE__ */ jsxs(
244
- "article",
245
- {
246
- "aria-labelledby": titleId,
247
- ...rest,
248
- className: cn(
249
- "min-w-0 text-og-fg",
250
- !bare && (waiting ? decisionCardClass : "og-root @container/decision overflow-hidden rounded-og-lg border border-og-border bg-og-surface-1"),
251
- rest.className
252
- ),
253
- children: [
254
- /* @__PURE__ */ jsxs(
255
- "header",
256
- {
257
- className: cn(
258
- "flex min-w-0 items-start gap-3",
259
- bare ? "pb-1" : cn(decisionCardPad, "pt-4", !children && !footer && "pb-4")
260
- ),
261
- children: [
262
- /* @__PURE__ */ jsx(DecisionMark, { tone: tone === "failed" ? "danger" : "neutral", children: icon }),
263
- /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 pt-px", children: [
264
- /* @__PURE__ */ jsx(
265
- "h3",
266
- {
267
- tabIndex: -1,
268
- id: titleId,
269
- className: "m-0 break-words text-og-md font-semibold leading-snug text-balance text-og-fg outline-hidden [overflow-wrap:anywhere]",
270
- children: title
271
- }
272
- ),
273
- /* @__PURE__ */ jsx("p", { className: "m-0 mt-0.5 min-w-0 overflow-hidden text-og-xs leading-5 text-og-fg-muted", children: /* @__PURE__ */ jsxs("span", { className: "-ml-3 flex min-w-0 flex-wrap items-center", children: [
274
- /* @__PURE__ */ jsx("span", { className: headerPart, children: /* @__PURE__ */ jsxs(
275
- "span",
276
- {
277
- className: cn("inline-flex items-center gap-1.5", toneText[tone]),
278
- role: "status",
279
- "aria-live": "polite",
280
- children: [
281
- waiting ? /* @__PURE__ */ jsx(
282
- "span",
283
- {
284
- "aria-hidden": "true",
285
- className: "size-1.5 shrink-0 rounded-full bg-og-status-waiting"
286
- }
287
- ) : null,
288
- eyebrow
289
- ]
290
- }
291
- ) }),
292
- subtitle ? /* @__PURE__ */ jsx("span", { className: cn(headerPart, "min-w-0 break-words [overflow-wrap:anywhere]"), children: subtitle }) : null
293
- ] }) })
294
- ] })
295
- ]
296
- }
297
- ),
298
- children ? /* @__PURE__ */ jsx(
299
- "div",
300
- {
301
- className: cn("min-w-0", bare ? "pt-2" : cn(decisionCardPad, "pt-3", !footer && "pb-4")),
302
- children
303
- }
304
- ) : null,
305
- footer ? /* @__PURE__ */ jsx("footer", { className: cn("min-w-0", bare ? "pt-3" : cn(decisionCardPad, "pb-4 pt-4")), children: footer }) : null
306
- ]
307
- }
308
- );
309
- }
310
- var linkButton = "focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40 inline-flex min-h-8 items-center gap-1 rounded-og-sm text-left text-og-sm text-og-fg underline decoration-og-border-strong underline-offset-4 hover:decoration-current [@media(pointer:coarse)]:min-h-11";
311
- function ReviewFacts({
312
- review,
313
- onViewDetails,
314
- showStatusDetail
315
- }) {
316
- const t = useOpenGeniText();
317
- const canOpen = Boolean(onViewDetails && review.detailsAvailable);
318
- const { selection, shown, hiddenFields, effects } = reviewFacts(review);
319
- const note = (showStatusDetail ? review.status === "blocked" ? t("toolActionReview.reasonItDidNotRun", {
320
- reason: review.reason || t("toolActionReview.yourPermissionSettingsBlockThis")
321
- }) : statusDetail(t)[review.status] : void 0) ?? review.consequence;
322
- const samples = review.samples ?? [];
323
- const count = review.selectionCount ?? 0;
324
- const noun = review.selectionKind === "threads" ? count === 1 ? "conversation" : "conversations" : count === 1 ? "message" : "messages";
325
- const hasContent = note || effects.length || selection || shown.length || hiddenFields > 0 || samples.length;
326
- if (!hasContent) return null;
327
- return /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-col gap-3 text-og-sm", children: [
328
- note ? /* @__PURE__ */ jsx("p", { className: "m-0 leading-relaxed text-og-fg-muted", children: note }) : null,
329
- effects.length > 0 ? /* @__PURE__ */ jsx("ul", { className: "m-0 list-none space-y-1 p-0", "aria-label": t("toolActionReview.alsoChanges"), children: effects.map((effect) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-2 text-og-fg", children: [
330
- /* @__PURE__ */ jsx(
331
- "span",
332
- {
333
- "aria-hidden": "true",
334
- className: "mt-[0.55em] size-1 shrink-0 rounded-full bg-og-fg-muted"
335
- }
336
- ),
337
- /* @__PURE__ */ jsx("span", { className: "min-w-0 break-words", children: effect })
338
- ] }, effect)) }) : null,
339
- selection ? /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
340
- samples.length > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
341
- /* @__PURE__ */ jsx("p", { className: "m-0 mb-1 text-og-xs text-og-fg-muted", children: t("toolActionReview.includes") }),
342
- /* @__PURE__ */ jsxs("ul", { className: "m-0 list-none divide-y divide-og-border rounded-og-md border border-og-border bg-og-surface-1 p-0", children: [
343
- samples.map((sample) => /* @__PURE__ */ jsxs("li", { className: "min-w-0 px-3 py-2", children: [
344
- /* @__PURE__ */ jsx("p", { className: "m-0 truncate text-og-sm text-og-fg", children: sample.title }),
345
- sample.subtitle ? /* @__PURE__ */ jsx("p", { className: "m-0 mt-0.5 truncate text-og-xs text-og-fg-muted", children: sample.subtitle }) : null
346
- ] }, sample.id)),
347
- count > samples.length ? /* @__PURE__ */ jsxs("li", { className: "px-3 py-2 text-og-xs text-og-fg-muted", children: [
348
- t("toolActionReview.and"),
349
- " ",
350
- (count - samples.length).toLocaleString(t.locale),
351
- " ",
352
- t("toolActionReview.more")
353
- ] }) : null
354
- ] })
355
- ] }) : null,
356
- canOpen && count > 0 ? /* @__PURE__ */ jsxs(
357
- "button",
358
- {
359
- type: "button",
360
- className: cn(linkButton, samples.length > 0 && "mt-1"),
361
- "data-review-path": selection.path,
362
- onClick: () => onViewDetails(selection.path),
363
- children: [
364
- count === 1 ? t("toolActionReview.viewTheNoun", { noun }) : t("toolActionReview.viewAllLocalestringNoun", {
365
- localeString: count.toLocaleString(t.locale),
366
- noun
367
- }),
368
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
369
- ]
370
- }
371
- ) : null
372
- ] }) : null,
373
- shown.length > 0 ? /* @__PURE__ */ jsx("dl", { className: "m-0 min-w-0 space-y-2.5 rounded-og-md bg-og-fg/[0.035] px-3.5 py-3", children: shown.map((field) => /* @__PURE__ */ jsxs(
374
- "div",
375
- {
376
- className: "grid min-w-0 gap-x-4 gap-y-0.5 @[30rem]/decision:grid-cols-[minmax(0,7.5rem)_minmax(0,1fr)]",
377
- children: [
378
- /* @__PURE__ */ jsx("dt", { className: "m-0 break-words text-og-xs text-og-fg-muted @[30rem]/decision:pt-px @[30rem]/decision:text-og-sm", children: field.label }),
379
- /* @__PURE__ */ jsx("dd", { className: "m-0 min-w-0 whitespace-pre-wrap break-words text-og-fg [overflow-wrap:anywhere]", children: field.protected ? /* @__PURE__ */ jsx("span", { className: "text-og-fg-muted", children: t("toolActionReview.hidden") }) : field.truncated && canOpen ? /* @__PURE__ */ jsxs(
380
- "button",
381
- {
382
- type: "button",
383
- "data-review-path": field.path,
384
- "aria-label": t("toolActionReview.viewLabelPreview", {
385
- label: field.label,
386
- preview: field.preview
387
- }),
388
- onClick: () => onViewDetails(field.path),
389
- className: cn(linkButton, "max-w-full"),
390
- children: [
391
- /* @__PURE__ */ jsx("span", { className: "line-clamp-4 min-w-0 break-words [overflow-wrap:anywhere]", children: /* @__PURE__ */ jsx(SecretRefText, { text: field.preview, linkable: false }) }),
392
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
393
- ]
394
- }
395
- ) : /* @__PURE__ */ jsx(SecretRefText, { text: field.preview }) })
396
- ]
397
- },
398
- field.path
399
- )) }) : null,
400
- hiddenFields > 0 ? /* @__PURE__ */ jsxs("p", { className: "m-0 text-og-xs text-og-fg-muted", children: [
401
- hiddenFields === 1 ? t("toolActionReview.n1MoreValue") : t("toolActionReview.hiddenfieldsMoreValues", { hiddenFields }),
402
- " ",
403
- t("toolActionReview.inDetails")
404
- ] }) : null
405
- ] });
406
- }
407
- function DeclineButton({
408
- busy,
409
- submitting,
410
- label,
411
- onClick
412
- }) {
413
- const t = useOpenGeniText();
414
- return /* @__PURE__ */ jsx(DecisionButton, { kind: "secondary", disabled: busy, busy: submitting, onClick, children: submitting ? t("toolActionReview.declining") : label ?? t("toolActionReview.decline") });
415
- }
416
- function ToolActionReviewCard({
417
- review: savedReview,
418
- onApprove,
419
- onReject,
420
- submitting,
421
- disabled,
422
- onViewDetails,
423
- pendingLabel,
424
- rejectLabel,
425
- bare,
426
- notice,
427
- approvingLabel,
428
- interruptible
429
- }) {
430
- const t = useOpenGeniText();
431
- const review = useMemo(() => wordedToolActionReview(savedReview, t), [savedReview, t]);
432
- const titleId = useId();
433
- const canApprove = review.availableActions.includes("approve") && !!onApprove;
434
- const canReject = review.availableActions.includes("reject") && !!onReject;
435
- const actionable = review.status === "pending" && (canApprove || canReject);
436
- const busy = Boolean(disabled || submitting && !interruptible);
437
- const tone = statusTone[review.status];
438
- const eyebrow = submitting ? submitting === "approve" ? t("toolActionReview.approving") : t("toolActionReview.declining") : review.status === "pending" ? pendingLabel ?? statusText(t).pending : statusText(t)[review.status];
439
- const detailsLink = review.detailsAvailable && onViewDetails ? /* @__PURE__ */ jsx(
440
- "button",
441
- {
442
- type: "button",
443
- className: "inline-flex min-h-8 items-center rounded-og-sm text-og-sm text-og-fg-muted underline decoration-og-border-strong underline-offset-4 hover:text-og-fg hover:decoration-current [@media(pointer:coarse)]:min-h-11 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
444
- "data-review-path": "",
445
- onClick: () => onViewDetails(""),
446
- children: t("toolActionReview.details")
447
- }
448
- ) : null;
449
- const reason = review.reason.trim();
450
- return /* @__PURE__ */ jsxs(
451
- ToolReviewFrame,
452
- {
453
- tone,
454
- icon: /* @__PURE__ */ jsx(StatusIcon, { status: review.status, busy: Boolean(submitting) }),
455
- eyebrow,
456
- title: review.title,
457
- titleId,
458
- subtitle: review.accountLabel,
459
- bare,
460
- "aria-busy": Boolean(submitting),
461
- "data-og-tool-review": "",
462
- "data-review-status": review.status,
463
- footer: actionable ? /* @__PURE__ */ jsxs(
464
- DecisionActions,
465
- {
466
- lead: detailsLink || reason ? /* @__PURE__ */ jsxs(Fragment, { children: [
467
- detailsLink,
468
- reason ? /* @__PURE__ */ jsx("span", { className: "min-w-0 text-og-xs leading-relaxed text-og-fg-subtle", children: reason }) : null
469
- ] }) : null,
470
- children: [
471
- canReject ? /* @__PURE__ */ jsx(
472
- DeclineButton,
473
- {
474
- busy,
475
- submitting: submitting === "reject",
476
- label: rejectLabel,
477
- onClick: onReject
478
- }
479
- ) : null,
480
- canApprove ? /* @__PURE__ */ jsx(
481
- DecisionButton,
482
- {
483
- kind: "primary",
484
- disabled: busy,
485
- busy: submitting === "approve",
486
- onClick: onApprove,
487
- children: submitting === "approve" ? approvingLabel ?? t("toolActionReview.approving") : review.approveLabel
488
- }
489
- ) : null
490
- ]
491
- }
492
- ) : void 0,
493
- children: [
494
- actionable && !canApprove ? /* @__PURE__ */ jsx("p", { className: "m-0 mb-3 text-og-sm leading-relaxed text-og-fg", children: review.approvedBy === "account_owner" ? ACCOUNT_OWNER_TEXT(t, review.accountOwnerLabel) : UNRECOVERABLE_TEXT(t) }) : null,
495
- actionable && canApprove && review.approvedBy === "you" ? /* @__PURE__ */ jsx("p", { className: "m-0 mb-3 text-og-sm leading-relaxed text-og-fg", children: t("toolActionReview.onlyYouCanApprove") }) : null,
496
- /* @__PURE__ */ jsx(
497
- ReviewFacts,
498
- {
499
- review,
500
- onViewDetails,
501
- showStatusDetail: review.status !== "pending"
502
- }
503
- ),
504
- actionable && notice ? /* @__PURE__ */ jsx(
505
- "p",
506
- {
507
- className: "m-0 mt-2 text-og-xs leading-relaxed text-og-fg-subtle",
508
- "data-og-review-notice": "",
509
- children: notice
510
- }
511
- ) : null,
512
- !actionable && detailsLink ? /* @__PURE__ */ jsx("div", { className: "mt-2", children: detailsLink }) : null
513
- ]
514
- }
515
- );
516
- }
517
- function ToolActionReviewDetails({
518
- review,
519
- path: initialPath = "",
520
- load,
521
- onBack,
522
- manageFocus = true
523
- }) {
524
- const t = useOpenGeniText();
525
- const [path, setPath] = useState(initialPath);
526
- const [trail, setTrail] = useState([]);
527
- const [offset, setOffset] = useState(0);
528
- const [page, setPage] = useState(null);
529
- const [error, setError] = useState(false);
530
- const [retry, setRetry] = useState(0);
531
- const heading = useRef(null);
532
- const focusedOnce = useRef(false);
533
- useEffect(() => {
534
- if (page && manageFocus && !focusedOnce.current) {
535
- focusedOnce.current = true;
536
- heading.current?.focus({ preventScroll: true });
537
- heading.current?.scrollIntoView({ block: "start" });
538
- }
539
- }, [page, manageFocus]);
540
- useEffect(() => {
541
- let active = true;
542
- setPage(null);
543
- setError(false);
544
- void load(review, path, offset).then(
545
- (value) => {
546
- if (!active) return;
547
- if (value.actionDigest !== review.actionDigest || value.id !== review.id || value.path !== path) {
548
- setError(true);
549
- return;
550
- }
551
- setPage(value);
552
- },
553
- () => {
554
- if (active) setError(true);
555
- }
556
- );
557
- return () => {
558
- active = false;
559
- };
560
- }, [review, path, offset, load, retry]);
561
- const open = (next, label) => {
562
- setTrail((value) => [...value, { path, label }]);
563
- setPath(next);
564
- setOffset(0);
565
- };
566
- const up = () => {
567
- const previous = trail.at(-1);
568
- setTrail((value) => value.slice(0, -1));
569
- setPath(previous?.path ?? initialPath);
570
- setOffset(0);
571
- };
572
- return /* @__PURE__ */ jsxs(
573
- "section",
574
- {
575
- className: "og-root mx-auto w-full max-w-3xl px-4 py-5 text-og-fg sm:px-6",
576
- "data-og-review-details": "",
577
- children: [
578
- /* @__PURE__ */ jsxs(
579
- "button",
580
- {
581
- type: "button",
582
- onClick: onBack,
583
- className: "mb-4 inline-flex min-h-11 items-center gap-2 rounded-og-md pr-2 text-og-sm text-og-fg-muted hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
584
- children: [
585
- /* @__PURE__ */ jsx(ArrowLeftIcon, { className: "size-4", "aria-hidden": "true" }),
586
- t("toolActionReview.backToReview")
587
- ]
588
- }
589
- ),
590
- /* @__PURE__ */ jsx(
591
- "h2",
592
- {
593
- ref: heading,
594
- tabIndex: -1,
595
- className: "m-0 break-words text-og-md font-semibold outline-hidden [overflow-wrap:anywhere]",
596
- children: toolActionTitle(t, review.toolName) ?? review.title
597
- }
598
- ),
599
- review.accountLabel ? /* @__PURE__ */ jsx("p", { className: "m-0 mt-1 text-og-sm text-og-fg-muted", children: review.accountLabel }) : null,
600
- /* @__PURE__ */ jsx("p", { className: "m-0 mt-2 text-og-xs text-og-fg-subtle", children: t("toolActionReview.theExactValuesSavedFor") }),
601
- trail.length > 0 ? /* @__PURE__ */ jsxs(
602
- "button",
603
- {
604
- type: "button",
605
- className: "mt-3 inline-flex min-h-11 items-center gap-1.5 text-og-sm text-og-fg-muted underline underline-offset-4 hover:text-og-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
606
- onClick: up,
607
- children: [
608
- /* @__PURE__ */ jsx(ArrowLeftIcon, { className: "size-3.5", "aria-hidden": "true" }),
609
- t("toolActionReview.backTo"),
610
- " ",
611
- trail.at(-1)?.label ?? t("toolActionReview.allValues")
612
- ]
613
- }
614
- ) : null,
615
- error ? /* @__PURE__ */ jsxs("div", { role: "alert", className: "mt-4 py-4 text-og-sm", children: [
616
- t("toolActionReview.couldnTLoadTheseDetails"),
617
- " ",
618
- /* @__PURE__ */ jsx(
619
- "button",
620
- {
621
- type: "button",
622
- onClick: () => setRetry((value) => value + 1),
623
- className: "min-h-11 underline underline-offset-4 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
624
- children: t("toolActionReview.tryAgain")
625
- }
626
- )
627
- ] }) : !page ? /* @__PURE__ */ jsx("p", { role: "status", className: "mt-4 py-4 text-og-sm text-og-fg-muted", children: t("toolActionReview.loadingDetails") }) : /* @__PURE__ */ jsxs(Fragment, { children: [
628
- /* @__PURE__ */ jsx("dl", { className: "m-0 mt-4 divide-y divide-og-border border-y border-og-border", children: page.items.map((item) => /* @__PURE__ */ jsxs("div", { className: "py-3", children: [
629
- /* @__PURE__ */ jsx("dt", { className: "m-0 text-og-xs text-og-fg-muted", children: item.label }),
630
- /* @__PURE__ */ jsxs("dd", { className: "m-0 mt-1 whitespace-pre-wrap break-words text-og-sm leading-relaxed [overflow-wrap:anywhere]", children: [
631
- item.truncated && item.path ? /* @__PURE__ */ jsxs(
632
- "button",
633
- {
634
- type: "button",
635
- "aria-label": t("toolActionReview.openLabel", { label: item.label }),
636
- className: cn(linkButton, "max-w-full"),
637
- onClick: () => open(item.path, item.label),
638
- children: [
639
- /* @__PURE__ */ jsx("span", { className: "min-w-0 break-words focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40", children: /* @__PURE__ */ jsx(SecretRefText, { text: item.value, linkable: false }) }),
640
- /* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-3.5 shrink-0", "aria-hidden": "true" })
641
- ]
642
- }
643
- ) : /* @__PURE__ */ jsx(SecretRefText, { text: item.value }),
644
- item.detail ? /* @__PURE__ */ jsx("span", { className: "mt-0.5 block text-og-xs text-og-fg-muted", children: /* @__PURE__ */ jsx(SecretRefText, { text: item.detail, linkable: false }) }) : null
645
- ] })
646
- ] }, `${page.path}:${item.label}`)) }),
647
- page.total > page.items.length || offset > 0 ? /* @__PURE__ */ jsxs(
648
- "nav",
649
- {
650
- "aria-label": t("toolActionReview.detailPages"),
651
- className: "mt-4 flex flex-wrap items-center justify-between gap-3 text-og-sm",
652
- children: [
653
- /* @__PURE__ */ jsx(
654
- "button",
655
- {
656
- type: "button",
657
- disabled: offset === 0,
658
- onClick: () => setOffset(Math.max(0, offset - 25)),
659
- className: "min-h-11 rounded-og-md border border-og-border px-3 hover:bg-og-hover disabled:opacity-40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
660
- children: t("toolActionReview.previous")
661
- }
662
- ),
663
- /* @__PURE__ */ jsx("span", { className: "text-og-fg-muted tabular-nums", children: page.total === 0 ? t("toolActionReview.noItems") : `${(offset + 1).toLocaleString(t.locale)}\u2013${(offset + page.items.length).toLocaleString(t.locale)} of ${page.total.toLocaleString(t.locale)}` }),
664
- /* @__PURE__ */ jsx(
665
- "button",
666
- {
667
- type: "button",
668
- disabled: page.nextOffset === null,
669
- onClick: () => setOffset(page.nextOffset ?? offset),
670
- className: "min-h-11 rounded-og-md border border-og-border px-3 hover:bg-og-hover disabled:opacity-40 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent/40",
671
- children: t("toolActionReview.next")
672
- }
673
- )
674
- ]
675
- }
676
- ) : null
677
- ] })
678
- ]
679
- }
680
- );
681
- }
682
-
683
- // src/timeline/retained-loaders.ts
684
- function createWorkspaceRetainedArtifactLoader(client, workspaceId) {
685
- return async (artifact, signal, options) => {
686
- if (artifact.kind === "file" && options?.prefer !== "url") {
687
- const download2 = await client.downloadRetainedArtifact(workspaceId, artifact, { signal });
688
- return download2.bytes;
689
- }
690
- const download = await client.createRetainedArtifactDownloadUrl(workspaceId, artifact, {
691
- signal
692
- });
693
- return { url: download.url, expiresAt: download.expiresAt };
694
- };
695
- }
696
- function createSessionRetainedScreenshotLoader(client, workspaceId, sessionId) {
697
- return async (artifact, signal) => {
698
- const download = await client.downloadRetainedScreenshot(
699
- workspaceId,
700
- sessionId,
701
- artifact.artifactId,
702
- { signal }
703
- );
704
- if (!download.metadata.available || !download.bytes) return null;
705
- if (download.metadata.artifactId !== artifact.artifactId || download.metadata.kind !== artifact.kind || download.metadata.contentType !== artifact.contentType || download.metadata.originalBytes !== artifact.originalBytes || download.metadata.sha256 !== artifact.sha256 || download.metadata.dimensions?.width !== artifact.dimensions?.width || download.metadata.dimensions?.height !== artifact.dimensions?.height) {
706
- throw new Error("Retained screenshot receipt verification failed");
707
- }
708
- return download.bytes;
709
- };
710
- }
711
- function createWorkspaceRetainedVideoLoader(client, workspaceId) {
712
- return async (artifactId, signal) => await client.createVideoArtifactPlaybackSource(workspaceId, artifactId, { signal });
713
- }
714
-
715
- // src/components/tool-review-history.tsx
716
- import { createContext, useContext, useEffect as useEffect2, useMemo as useMemo2, useState as useState2 } from "react";
717
- import { jsx as jsx2 } from "react/jsx-runtime";
718
- var History = createContext(null);
719
- function ToolReviewHistoryProvider({
720
- events,
721
- load,
722
- onViewDetails,
723
- children
724
- }) {
725
- const value = useMemo2(
726
- () => ({
727
- approvalIds: new Set(
728
- events.flatMap(
729
- (event) => event.type === "session.requiresAction" ? approvalsFromRequiresAction(event.payload).map((approval) => approval.id) : []
730
- )
731
- ),
732
- revision: [...events].reverse().find(
733
- (event) => event.type === "session.requiresAction" || event.type === "agent.toolCall.output" || event.type.startsWith("turn.") || event.type === "user.approvalDecision" || event.type.startsWith("session.control.")
734
- )?.sequence ?? 0,
735
- load,
736
- onViewDetails
737
- }),
738
- [events, load, onViewDetails]
739
- );
740
- return /* @__PURE__ */ jsx2(History.Provider, { value, children });
741
- }
742
- function useHasToolReview(approvalId) {
743
- const history = useContext(History);
744
- return Boolean(approvalId && history?.approvalIds.has(approvalId));
745
- }
746
- function useRecordedToolReview(approvalId) {
747
- const history = useContext(History);
748
- const [review, setReview] = useState2(null);
749
- const load = history?.load;
750
- const revision = history?.revision;
751
- useEffect2(() => {
752
- if (!load || !approvalId) return;
753
- let active = true;
754
- void load(approvalId).then(
755
- (value) => {
756
- if (active && value.id === approvalId) setReview(value);
757
- },
758
- () => void 0
759
- );
760
- return () => {
761
- active = false;
762
- };
763
- }, [approvalId, load, revision]);
764
- const onViewDetails = history?.onViewDetails;
765
- return {
766
- review: review && review.id === approvalId ? review : null,
767
- onViewDetails: review && onViewDetails ? (path) => onViewDetails(review, path) : void 0
768
- };
769
- }
770
-
771
- // src/timeline/knowledge-receipt.tsx
772
- import { createContext as createContext2, useContext as useContext2, useState as useState3 } from "react";
773
- import { BrainCircuitIcon } from "lucide-react";
774
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
775
- var KnowledgeActions = createContext2({});
776
- function KnowledgeActivityProvider({
777
- children,
778
- ...actions
779
- }) {
780
- return /* @__PURE__ */ jsx3(KnowledgeActions.Provider, { value: actions, children });
781
- }
782
- function KnowledgeReceiptRow(props) {
783
- const t = useOpenGeniText();
784
- const actions = useContext2(KnowledgeActions);
785
- const [retrying, setRetrying] = useState3(false);
786
- const [retrySent, setRetrySent] = useState3(false);
787
- const [error, setError] = useState3(null);
788
- const label = props.outcome === "pending" ? t("timeline.knowledgeReceipt.knowledgeSavedForReview") : props.outcome === "failed" ? t("timeline.knowledgeReceipt.sourcePreparationFailed") : props.outcome === "rejected" ? t("timeline.knowledgeReceipt.sourceRemainsRejected") : props.outcome === "archived" ? t("timeline.knowledgeReceipt.knowledgeArchived") : props.source ? t("timeline.knowledgeReceipt.sourceSavedToKnowledge") : t("timeline.knowledgeReceipt.savedToKnowledge");
789
- const actionClass = "rounded-og-sm px-1 py-0.5 text-og-sm text-og-fg-muted hover:text-og-fg focus-visible:outline-2 focus-visible:outline-og-accent disabled:opacity-50";
790
- return /* @__PURE__ */ jsxs2(
791
- ActivityDisclosure,
792
- {
793
- icon: /* @__PURE__ */ jsx3(BrainCircuitIcon, { className: "size-3.5" }),
794
- iconTone: "muted",
795
- title: label,
796
- preview: props.title,
797
- children: [
798
- props.outcome === "pending" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.savedInNeedsReviewThis") }) : null,
799
- props.outcome === "failed" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.theOriginalFileRemainsAttached") }) : null,
800
- props.outcome === "rejected" ? /* @__PURE__ */ jsx3(BodyNote, { children: t("timeline.knowledgeReceipt.processingTheFileAgainLeaves") }) : null,
801
- props.entryId && actions.onInspect ? /* @__PURE__ */ jsx3(
802
- "button",
803
- {
804
- className: actionClass,
805
- type: "button",
806
- onClick: () => actions.onInspect?.(props.entryId),
807
- children: props.outcome === "pending" ? t("timeline.knowledgeReceipt.reviewInKnowledge") : t("timeline.knowledgeReceipt.viewInKnowledge")
808
- }
809
- ) : null,
810
- props.outcome === "failed" && props.fileId && actions.onRetryFile ? /* @__PURE__ */ jsx3(
811
- "button",
812
- {
813
- className: actionClass,
814
- type: "button",
815
- disabled: retrying || retrySent || actions.retryDisabled,
816
- onClick: () => {
817
- setRetrying(true);
818
- setError(null);
819
- void actions.onRetryFile(props.fileId).then((sent) => {
820
- if (sent !== false) setRetrySent(true);
821
- else setError(t("timeline.knowledgeReceipt.couldNotStartTheRetry"));
822
- }).catch(() => setError(t("timeline.knowledgeReceipt.couldNotStartTheRetry2"))).finally(() => setRetrying(false));
823
- },
824
- children: retrying ? t("timeline.knowledgeReceipt.startingRetry") : retrySent ? t("timeline.knowledgeReceipt.retryRequested") : t("timeline.knowledgeReceipt.retryPreparation")
825
- }
826
- ) : null,
827
- error ? /* @__PURE__ */ jsx3("p", { role: "alert", className: "text-og-sm", children: error }) : null
828
- ]
829
- }
830
- );
831
- }
832
-
833
- // src/timeline/tool-renderers.tsx
834
- import { defaultUrlTransform } from "react-markdown";
835
- import { parseSandboxFileArtifactReceipt } from "@opengeni/sdk";
836
- import {
837
- BrainCircuitIcon as BrainCircuitIcon3,
838
- CameraIcon,
839
- CameraOffIcon,
840
- DownloadIcon as DownloadIcon2,
841
- FileSearchIcon as FileSearchIcon2,
842
- GlobeIcon as GlobeIcon2,
843
- ImageIcon as ImageIcon2,
844
- KeyRoundIcon as KeyRoundIcon2,
845
- LockIcon,
846
- MessagesSquareIcon as MessagesSquareIcon2,
847
- MousePointer2Icon,
848
- PackageSearchIcon as PackageSearchIcon2,
849
- PanelsTopLeftIcon as PanelsTopLeftIcon2,
850
- VideoIcon as VideoIcon2
851
- } from "lucide-react";
852
- import { lazy, useContext as useContext5, useMemo as useMemo3, useState as useState6 } from "react";
853
-
854
- // src/timeline/compute-label.tsx
855
- import { createContext as createContext3, useContext as useContext3 } from "react";
856
- var TimelineComputeLabelContext = createContext3(null);
857
- var TimelineComputeLabelProvider = TimelineComputeLabelContext.Provider;
858
- function useTimelineComputeLabel() {
859
- return useContext3(TimelineComputeLabelContext);
860
- }
861
-
862
- // src/timeline/provider-logo.tsx
863
- import { createContext as createContext4, useContext as useContext4, useEffect as useEffect3, useState as useState4 } from "react";
864
- import { Fragment as Fragment2, jsx as jsx4 } from "react/jsx-runtime";
865
- var ProviderLogoContext = createContext4(void 0);
866
- var ProviderLogoProvider = ProviderLogoContext.Provider;
867
- function useToolConnectorLogo(display) {
868
- const resolve = useContext4(ProviderLogoContext);
869
- if (!resolve || !display?.providerDomain) return null;
870
- return resolve(display.providerDomain) ?? null;
871
- }
872
- function ConnectorLogoIcon({
873
- src,
874
- fallback: fallback2,
875
- className
876
- }) {
877
- const [failed, setFailed] = useState4(false);
878
- useEffect3(() => setFailed(false), [src]);
879
- if (!src || failed) return /* @__PURE__ */ jsx4(Fragment2, { children: fallback2 });
880
- return /* @__PURE__ */ jsx4(
881
- "img",
882
- {
883
- src: displayImageSrc(src),
884
- alt: "",
885
- "aria-hidden": "true",
886
- loading: "lazy",
887
- decoding: "async",
888
- "data-og-connector-logo": "",
889
- className: className ?? "size-3.5 shrink-0 rounded-[3px] object-contain",
890
- onError: () => setFailed(true)
891
- }
892
- );
893
- }
894
-
895
- // src/timeline/tool-icon.tsx
896
- import {
897
- ActivityIcon,
898
- AppWindowIcon,
899
- ArchiveIcon,
900
- BellIcon,
901
- BotIcon,
902
- BoxIcon,
903
- BrainCircuitIcon as BrainCircuitIcon2,
904
- CalendarClockIcon,
905
- CircleDotIcon,
906
- ClipboardIcon,
907
- CodeIcon,
908
- DownloadIcon,
909
- FileDiffIcon,
910
- FileIcon,
911
- FileSearchIcon,
912
- FileSpreadsheetIcon,
913
- FileTextIcon,
914
- FolderGitIcon,
915
- FolderIcon,
916
- GlobeIcon,
917
- GraduationCapIcon,
918
- HandIcon,
919
- HourglassIcon,
920
- ImageIcon,
921
- InboxIcon,
922
- KeyboardIcon,
923
- KeyRoundIcon,
924
- LogInIcon,
925
- MessageCircleQuestionIcon,
926
- MessagesSquareIcon,
927
- MessageSquareIcon,
928
- MonitorIcon,
929
- PackageSearchIcon,
930
- PanelsTopLeftIcon,
931
- PaperclipIcon,
932
- PencilIcon,
933
- PhoneIcon,
934
- PlugIcon,
935
- ReceiptIcon,
936
- SearchIcon,
937
- ServerCogIcon,
938
- ServerIcon,
939
- SettingsIcon,
940
- Share2Icon,
941
- SparklesIcon,
942
- TargetIcon,
943
- TerminalIcon,
944
- VideoIcon,
945
- WrenchIcon
946
- } from "lucide-react";
947
- import { jsx as jsx5 } from "react/jsx-runtime";
948
- function toolIcon(kind) {
949
- switch (kind) {
950
- case "terminal":
951
- return TerminalIcon;
952
- case "keyboard":
953
- return KeyboardIcon;
954
- case "file-diff":
955
- return FileDiffIcon;
956
- case "search":
957
- return SearchIcon;
958
- case "question":
959
- return MessageCircleQuestionIcon;
960
- case "target":
961
- return TargetIcon;
962
- case "brain":
963
- return BrainCircuitIcon2;
964
- case "sessions":
965
- return MessagesSquareIcon;
966
- case "server":
967
- return ServerIcon;
968
- case "server-cog":
969
- return ServerCogIcon;
970
- case "calendar":
971
- return CalendarClockIcon;
972
- case "panels":
973
- return PanelsTopLeftIcon;
974
- case "share":
975
- return Share2Icon;
976
- case "message":
977
- return MessageSquareIcon;
978
- case "git":
979
- return FolderGitIcon;
980
- case "box":
981
- return BoxIcon;
982
- case "key":
983
- return KeyRoundIcon;
984
- case "file-search":
985
- return FileSearchIcon;
986
- case "package-search":
987
- return PackageSearchIcon;
988
- case "plug":
989
- return PlugIcon;
990
- case "browser":
991
- return GlobeIcon;
992
- case "screen":
993
- return MonitorIcon;
994
- case "spreadsheet":
995
- return FileSpreadsheetIcon;
996
- case "wait":
997
- return HourglassIcon;
998
- case "download":
999
- return DownloadIcon;
1000
- case "clipboard":
1001
- return ClipboardIcon;
1002
- case "image":
1003
- return ImageIcon;
1004
- case "video":
1005
- return VideoIcon;
1006
- case "record":
1007
- return CircleDotIcon;
1008
- case "document":
1009
- return FileTextIcon;
1010
- case "file":
1011
- return FileIcon;
1012
- case "attachment":
1013
- return PaperclipIcon;
1014
- case "archive":
1015
- return ArchiveIcon;
1016
- case "folder":
1017
- return FolderIcon;
1018
- case "site":
1019
- return AppWindowIcon;
1020
- case "skill":
1021
- return GraduationCapIcon;
1022
- case "settings":
1023
- return SettingsIcon;
1024
- case "bell":
1025
- return BellIcon;
1026
- case "phone":
1027
- return PhoneIcon;
1028
- case "inbox":
1029
- return InboxIcon;
1030
- case "help":
1031
- return HandIcon;
1032
- case "model":
1033
- return SparklesIcon;
1034
- case "progress":
1035
- return ActivityIcon;
1036
- case "helper":
1037
- return BotIcon;
1038
- case "sign-in":
1039
- return LogInIcon;
1040
- case "code":
1041
- return CodeIcon;
1042
- case "accounting":
1043
- return ReceiptIcon;
1044
- case "rename":
1045
- return PencilIcon;
1046
- case "wrench":
1047
- return WrenchIcon;
1048
- }
1049
- }
1050
- function ToolKindIcon({ kind, className }) {
1051
- const Icon = toolIcon(kind);
1052
- return /* @__PURE__ */ jsx5(Icon, { className });
1053
- }
1054
-
1055
- // src/timeline/tool-diff.tsx
1056
- import { useState as useState5 } from "react";
1057
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
1058
- function ToolDiff({ files }) {
1059
- const [layout, setLayout] = useState5("unified");
1060
- const themeType = useThemeType(void 0);
1061
- return /* @__PURE__ */ jsxs3("div", { className: "min-w-0", children: [
1062
- /* @__PURE__ */ jsx6("div", { className: "mb-1.5 flex justify-end", children: /* @__PURE__ */ jsx6(LayoutToggle, { layout, onChange: setLayout }) }),
1063
- /* @__PURE__ */ jsx6(PierreDiff, { diff: files, layout, themeType })
1064
- ] });
1065
- }
1066
- function LayoutToggle({
1067
- layout,
1068
- onChange
1069
- }) {
1070
- return /* @__PURE__ */ jsx6("div", { className: "inline-flex items-center gap-px rounded-og-xs border border-og-border p-px", children: ["unified", "split"].map((value) => /* @__PURE__ */ jsx6(
1071
- "button",
1072
- {
1073
- type: "button",
1074
- onClick: () => onChange(value),
1075
- className: cn(
1076
- "rounded-og-xs px-2 py-[3px] text-og-xs font-medium capitalize transition-colors",
1077
- layout === value ? "bg-og-surface-2 text-og-fg" : "text-og-fg-subtle hover:text-og-fg-muted"
1078
- ),
1079
- children: value
1080
- },
1081
- value
1082
- )) });
1083
- }
1084
- function RawPatch({ diff }) {
1085
- const t = useOpenGeniText();
1086
- const occurrences = /* @__PURE__ */ new Map();
1087
- const lines = diff.split("\n").map((line) => {
1088
- const occurrence = (occurrences.get(line) ?? 0) + 1;
1089
- occurrences.set(line, occurrence);
1090
- return { key: `${line}\0${occurrence}`, line };
1091
- });
1092
- return /* @__PURE__ */ jsxs3("div", { className: "min-w-0", children: [
1093
- /* @__PURE__ */ jsx6("p", { className: "mb-1 text-og-xs font-medium uppercase tracking-[0.08em] text-og-fg-subtle", children: t("timeline.toolDiff.rawPatchCouldNotParse") }),
1094
- /* @__PURE__ */ jsx6("pre", { className: "max-h-72 overflow-auto border-l-2 border-og-border pl-3 font-og-mono text-og-xs leading-5", children: lines.map(({ key, line }) => /* @__PURE__ */ jsx6(
1095
- "span",
1096
- {
1097
- className: cn(
1098
- "block",
1099
- line.startsWith("@@") ? "text-og-accent" : line.startsWith("+") ? "text-og-status-idle" : line.startsWith("-") ? "text-og-status-failed" : "text-og-fg-muted"
1100
- ),
1101
- children: line || " "
1102
- },
1103
- key
1104
- )) })
1105
- ] });
1106
- }
1107
-
1108
- // src/timeline/tool-renderers.tsx
1109
- import { Fragment as Fragment3, jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
1110
- var ICON_SIZE = "size-3.5";
1111
- function RunningPreview({ children }) {
1112
- const compact = useContext5(CompactActivityContext);
1113
- return /* @__PURE__ */ jsxs4("span", { className: "inline-flex items-center gap-1.5", children: [
1114
- !compact && /* @__PURE__ */ jsx7("span", { className: "size-1.5 shrink-0 animate-og-pulse rounded-full bg-og-status-running" }),
1115
- /* @__PURE__ */ jsx7("span", { className: "min-w-0 truncate", children })
1116
- ] });
1117
- }
1118
- function PathPreview({
1119
- path,
1120
- add,
1121
- del
1122
- }) {
1123
- return /* @__PURE__ */ jsxs4("span", { className: "inline-flex items-center gap-2 truncate font-og-mono", children: [
1124
- /* @__PURE__ */ jsxs4("span", { className: "truncate", children: [
1125
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-subtle", children: pathDirname(path) }),
1126
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-muted", children: pathBasename(path) })
1127
- ] }),
1128
- add != null || del != null ? /* @__PURE__ */ jsxs4("span", { className: "shrink-0 text-og-fg-subtle", children: [
1129
- add != null ? `+${add}` : "",
1130
- add != null && del != null ? " " : "",
1131
- del != null ? `\u2212${del}` : ""
1132
- ] }) : null
1133
- ] });
1134
- }
1135
- function presentedPreviewNode(msg, preview) {
1136
- switch (preview.kind) {
1137
- case "text":
1138
- return preview.running ? /* @__PURE__ */ jsx7(RunningPreview, { children: preview.text }) : preview.text;
1139
- case "path":
1140
- return /* @__PURE__ */ jsx7(PathPreview, { path: preview.path, add: preview.add, del: preview.del });
1141
- case "files":
1142
- return /* @__PURE__ */ jsxs4("span", { className: "inline-flex items-center gap-2 font-og-mono", children: [
1143
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-muted", children: msg("timeline.toolRenderers.filesCount", { count: preview.count }) }),
1144
- /* @__PURE__ */ jsxs4("span", { className: "text-og-fg-subtle", children: [
1145
- "+",
1146
- preview.add,
1147
- " \u2212",
1148
- preview.del
1149
- ] })
1150
- ] });
1151
- case "malformed":
1152
- return /* @__PURE__ */ jsxs4("span", { className: "inline-flex items-center gap-2 font-og-mono", children: [
1153
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-muted", children: preview.name }),
1154
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-subtle", children: msg("timeline.toolRenderers.malformedPatch") })
1155
- ] });
1156
- }
1157
- }
1158
- function PresentedBody({ body }) {
1159
- switch (body.kind) {
1160
- case "term":
1161
- return /* @__PURE__ */ jsxs4(Fragment3, { children: [
1162
- /* @__PURE__ */ jsx7(
1163
- TermBlock,
1164
- {
1165
- command: body.command,
1166
- ...body.workdir !== null || body.command === null ? { workdir: body.workdir } : {},
1167
- output: body.output,
1168
- ...body.live ? { live: true } : {},
1169
- ...body.failed !== void 0 ? { failed: body.failed } : {}
1170
- }
1171
- ),
1172
- body.note ? /* @__PURE__ */ jsx7(BodyNote, { children: body.note }) : null
1173
- ] });
1174
- case "note":
1175
- return body.tone ? /* @__PURE__ */ jsx7(BodyNote, { tone: body.tone, children: body.text }) : /* @__PURE__ */ jsx7(BodyNote, { children: body.text });
1176
- case "payloads":
1177
- return /* @__PURE__ */ jsxs4(Fragment3, { children: [
1178
- body.note ? /* @__PURE__ */ jsx7("p", { className: "m-0 py-1 text-og-sm text-og-fg-muted", children: body.note }) : null,
1179
- body.blocks.map(
1180
- (block) => block.failed ? /* @__PURE__ */ jsx7(PayloadBlock, { label: block.label, value: block.value, failed: true }, block.label) : /* @__PURE__ */ jsx7(PayloadBlock, { label: block.label, value: block.value }, block.label)
1181
- )
1182
- ] });
1183
- case "patch":
1184
- if (body.bare) {
1185
- return /* @__PURE__ */ jsx7(RawPatch, { diff: body.files[0]?.diff ?? "" });
1186
- }
1187
- return /* @__PURE__ */ jsx7(Fragment3, { children: body.files.map(
1188
- (entry) => entry.file ? /* @__PURE__ */ jsx7(ToolDiff, { files: [entry.file] }, entry.key) : /* @__PURE__ */ jsxs4("div", { children: [
1189
- /* @__PURE__ */ jsx7("p", { className: "mb-1 font-og-mono text-og-xs text-og-fg-muted", children: entry.path }),
1190
- /* @__PURE__ */ jsx7(RawPatch, { diff: entry.diff })
1191
- ] }, entry.key)
1192
- ) });
1193
- case "web-results":
1194
- return /* @__PURE__ */ jsx7(WebSearchResults, { results: body.results });
1195
- case "none":
1196
- return null;
1197
- }
1198
- }
1199
- function WebSearchResults({ results }) {
1200
- const msg = useOpenGeniText();
1201
- const resultOccurrences = /* @__PURE__ */ new Map();
1202
- const keyedResults = results?.map((result) => {
1203
- const contentKey = `${result.domain}\0${result.title}\0${result.snippet}`;
1204
- const occurrence = (resultOccurrences.get(contentKey) ?? 0) + 1;
1205
- resultOccurrences.set(contentKey, occurrence);
1206
- return { key: `${contentKey}\0${occurrence}`, result };
1207
- });
1208
- if (!keyedResults || !keyedResults.length) {
1209
- return /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.resultsFoldedIntoModelContext") });
1210
- }
1211
- return /* @__PURE__ */ jsx7("ul", { className: "flex flex-col gap-2", children: keyedResults.map(({ key, result }) => /* @__PURE__ */ jsxs4("li", { className: "flex gap-2.5", children: [
1212
- /* @__PURE__ */ jsx7(GlobeIcon2, { className: "mt-0.5 size-3.5 shrink-0 text-og-fg-subtle" }),
1213
- /* @__PURE__ */ jsxs4("div", { className: "min-w-0", children: [
1214
- /* @__PURE__ */ jsxs4("p", { className: "truncate text-og-base text-og-fg", children: [
1215
- result.title,
1216
- " ",
1217
- /* @__PURE__ */ jsx7("span", { className: "text-og-fg-subtle", children: result.domain })
1218
- ] }),
1219
- /* @__PURE__ */ jsx7("p", { className: "text-og-sm leading-5 text-og-fg-muted", children: result.snippet })
1220
- ] })
1221
- ] }, key)) });
1222
- }
1223
- function PresentedToolRow({
1224
- presentation,
1225
- item,
1226
- logo = null
1227
- }) {
1228
- const msg = useOpenGeniText();
1229
- const computeLabel = useTimelineComputeLabel();
1230
- const p = useToolDetails() === "plain" ? plainToolRow(msg, item, presentation, { computeLabel }) : presentation;
1231
- const Icon = toolIcon(p.icon);
1232
- return /* @__PURE__ */ jsx7(
1233
- ActivityDisclosure,
1234
- {
1235
- icon: /* @__PURE__ */ jsx7(ConnectorLogoIcon, { src: logo, fallback: /* @__PURE__ */ jsx7(Icon, { className: ICON_SIZE }) }),
1236
- iconTone: p.iconTone,
1237
- title: /* @__PURE__ */ jsx7(SecretRefText, { text: p.title, linkable: false }),
1238
- ...p.titleMono ? { titleMono: true } : {},
1239
- ...p.running ? { running: true } : {},
1240
- ...p.chip ? { chip: p.chip } : {},
1241
- ...p.failed !== void 0 ? { failed: p.failed } : {},
1242
- ...p.cancelled !== void 0 ? { cancelled: p.cancelled } : {},
1243
- preview: p.preview ? presentedPreviewNode(msg, p.preview) : void 0,
1244
- expandable: p.body.kind !== "none",
1245
- children: /* @__PURE__ */ jsx7(PresentedBody, { body: p.body })
1246
- }
1247
- );
1248
- }
1249
- function ExecRenderer({ item }) {
1250
- const msg = useOpenGeniText();
1251
- const computeLabel = useTimelineComputeLabel();
1252
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: execPresentation(msg, item, { computeLabel }), item });
1253
- }
1254
- function WriteStdinRenderer({ item }) {
1255
- const msg = useOpenGeniText();
1256
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: writeStdinPresentation(msg, item), item });
1257
- }
1258
- function ApplyPatchRenderer({ item }) {
1259
- const msg = useOpenGeniText();
1260
- const presentation = applyPatchPresentation(msg, item);
1261
- return presentation ? /* @__PURE__ */ jsx7(PresentedToolRow, { presentation, item }) : /* @__PURE__ */ jsx7(GenericRenderer, { item });
1262
- }
1263
- function WebSearchRenderer({ item }) {
1264
- const msg = useOpenGeniText();
1265
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: webSearchPresentation(msg, item), item });
1266
- }
1267
- function AskRenderer({ item }) {
1268
- const msg = useOpenGeniText();
1269
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: askPresentation(msg, item), item });
1270
- }
1271
- function RunOnRenderer({ item }) {
1272
- const msg = useOpenGeniText();
1273
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: runOnPresentation(msg, item), item });
1274
- }
1275
- function MachineRenderer({ item, loadRetainedScreenshot }) {
1276
- const msg = useOpenGeniText();
1277
- const presentation = machinePresentation(msg, item);
1278
- const retained = mcpToolLeaf(item.name).startsWith("computer_") ? retainedScreenshotMetadata(item.output) : null;
1279
- if (!retained?.available) return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation, item });
1280
- return /* @__PURE__ */ jsx7(
1281
- RetainedSessionImageDisclosure,
1282
- {
1283
- artifact: retained,
1284
- load: loadRetainedScreenshot,
1285
- title: presentation.title,
1286
- caption: presentation.title,
1287
- noun: "screenshot",
1288
- icon: /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }),
1289
- lightboxLabel: msg("timeline.toolRenderers.screenshot"),
1290
- batched: null,
1291
- failed: item.status === "failed",
1292
- cancelled: item.status === "cancelled"
1293
- }
1294
- );
1295
- }
1296
- function UnreviewedGenericRenderer({ item, loadRetainedScreenshot }) {
1297
- const msg = useOpenGeniText();
1298
- const details = useToolDetails();
1299
- const logo = useToolConnectorLogo(item.display);
1300
- const { images, output } = retainedToolResultImages(item.output);
1301
- if (images.length === 0 || item.status === "running") {
1302
- return /* @__PURE__ */ jsx7(PresentedToolRow, { presentation: toolRowPresentation(msg, item), item, logo });
1303
- }
1304
- const presentation = toolRowPresentation(msg, { ...item, output }, { details });
1305
- const Icon = toolIcon(presentation.icon);
1306
- const [first, ...rest] = images;
1307
- return /* @__PURE__ */ jsxs4(
1308
- RetainedSessionImageDisclosure,
1309
- {
1310
- artifact: first,
1311
- load: loadRetainedScreenshot,
1312
- title: presentation.title,
1313
- caption: presentation.title,
1314
- noun: "image",
1315
- icon: /* @__PURE__ */ jsx7(ConnectorLogoIcon, { src: logo, fallback: /* @__PURE__ */ jsx7(Icon, { className: ICON_SIZE }) }),
1316
- lightboxLabel: presentation.title,
1317
- batched: null,
1318
- failed: presentation.failed ?? false,
1319
- cancelled: presentation.cancelled ?? false,
1320
- children: [
1321
- /* @__PURE__ */ jsx7(PresentedBody, { body: presentation.body }),
1322
- rest.map((image, index) => /* @__PURE__ */ jsx7(
1323
- RetainedSessionImageDisclosure,
1324
- {
1325
- artifact: image,
1326
- load: loadRetainedScreenshot,
1327
- title: msg("timeline.toolRenderers.imageIndex", { index: index + 2 }),
1328
- caption: `${presentation.title}, image ${index + 2}`,
1329
- noun: "image",
1330
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
1331
- lightboxLabel: presentation.title,
1332
- batched: null,
1333
- failed: false,
1334
- cancelled: false
1335
- },
1336
- image.artifactId
1337
- ))
1338
- ]
1339
- }
1340
- );
1341
- }
1342
- function computerVerb(msg, action) {
1343
- if (!action || !action.type) {
1344
- return msg("timeline.toolRenderers.acted");
1345
- }
1346
- switch (action.type) {
1347
- case "screenshot":
1348
- return msg("timeline.toolRenderers.screenshot");
1349
- case "click":
1350
- return msg("timeline.toolRenderers.clickedXY", { x: action.x, y: action.y });
1351
- case "double_click":
1352
- return msg("timeline.toolRenderers.doubleClickedXY", { x: action.x, y: action.y });
1353
- case "move":
1354
- return msg("timeline.toolRenderers.movedXY", { x: action.x, y: action.y });
1355
- case "scroll":
1356
- return msg("timeline.toolRenderers.scrolled");
1357
- case "type": {
1358
- const t = action.text ?? "";
1359
- return msg("timeline.toolRenderers.typedSliceValue", {
1360
- slice: t.slice(0, 28),
1361
- value: t.length > 28 ? "\u2026" : ""
1362
- });
1363
- }
1364
- case "keypress":
1365
- return msg("timeline.toolRenderers.pressedJoin", { join: (action.keys ?? []).join("+") });
1366
- case "drag":
1367
- return msg("timeline.toolRenderers.dragged");
1368
- case "wait":
1369
- return msg("timeline.toolRenderers.waited");
1370
- default:
1371
- return action.type;
1372
- }
1373
- }
1374
- function asComputerArgs(args) {
1375
- if (!args) {
1376
- return {};
1377
- }
1378
- const parsed = typeof args === "string" ? tryParseJson(args) : args;
1379
- if (!parsed || typeof parsed !== "object") {
1380
- return {};
1381
- }
1382
- const record = parsed;
1383
- return {
1384
- ...typeof record.x === "number" ? { x: record.x } : {},
1385
- ...typeof record.y === "number" ? { y: record.y } : {},
1386
- ...typeof record.text === "string" ? { text: record.text } : {},
1387
- ...Array.isArray(record.keys) ? { keys: record.keys } : {},
1388
- ...typeof record.button === "string" ? { button: record.button } : {}
1389
- };
1390
- }
1391
- function ComputerCallRenderer({ item, loadRetainedScreenshot }) {
1392
- const msg = useOpenGeniText();
1393
- const raw = item.raw ?? {};
1394
- const functionAction = !raw.action && item.name.startsWith("computer_") && item.name !== "computer_call" ? {
1395
- type: item.name.slice("computer_".length),
1396
- ...asComputerArgs(item.arguments)
1397
- } : void 0;
1398
- const action = raw.action ?? functionAction;
1399
- const actions = raw.actions ?? (action ? [action] : []);
1400
- const verb = computerVerb(msg, action);
1401
- const out = item.output;
1402
- const running = item.status === "running";
1403
- const rejected = raw.providerData?.approvalStatus === "rejected";
1404
- const readOnly = typeof out === "string" && out.includes("read-only");
1405
- const shotUrl = screenshotDataUrl(out);
1406
- const retained = retainedScreenshotMetadata(out);
1407
- const omittedMedia = mediaPreviewFact(out);
1408
- const empty = out === "" || out == null;
1409
- const batched = actions.length > 1 ? actions.map((a) => computerVerb(msg, a)).join(" \xB7 ") : null;
1410
- const countSuffix = actions.length > 1 ? ` \xB7${actions.length}` : "";
1411
- const isShot = action?.type === "screenshot";
1412
- if (running) {
1413
- return /* @__PURE__ */ jsx7(
1414
- ActivityDisclosure,
1415
- {
1416
- icon: isShot ? /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }) : /* @__PURE__ */ jsx7(MousePointer2Icon, { className: ICON_SIZE }),
1417
- iconTone: "running",
1418
- title: verb,
1419
- running: true,
1420
- media: /* @__PURE__ */ jsx7(MediaSkeleton, {}),
1421
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capturingFrame") })
1422
- }
1423
- );
1424
- }
1425
- if (readOnly) {
1426
- return /* @__PURE__ */ jsx7(
1427
- ActivityDisclosure,
1428
- {
1429
- icon: /* @__PURE__ */ jsx7(MousePointer2Icon, { className: ICON_SIZE }),
1430
- iconTone: "failed",
1431
- title: verb,
1432
- chip: { tone: "bad", text: "read-only" },
1433
- preview: "write actions disabled",
1434
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: "error", children: msg("timeline.toolRenderers.computerUseIsReadOnly") })
1435
- }
1436
- );
1437
- }
1438
- if (rejected) {
1439
- return /* @__PURE__ */ jsx7(
1440
- ActivityDisclosure,
1441
- {
1442
- icon: /* @__PURE__ */ jsx7(LockIcon, { className: ICON_SIZE }),
1443
- iconTone: "muted",
1444
- title: verb,
1445
- preview: msg("timeline.toolRenderers.approvalRejectedThisActionDid2"),
1446
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.approvalRejectedThisActionDid") })
1447
- }
1448
- );
1449
- }
1450
- const isFailed = item.status === "failed";
1451
- const isCancelled = item.status === "cancelled";
1452
- if (retained) {
1453
- if (!retained.available) {
1454
- const state = retained.reason === "expired" || retained.reason === "deleted" ? retained.reason : "unavailable";
1455
- return /* @__PURE__ */ jsx7(
1456
- ActivityDisclosure,
1457
- {
1458
- icon: /* @__PURE__ */ jsx7(CameraOffIcon, { className: ICON_SIZE }),
1459
- iconTone: isFailed ? "failed" : "muted",
1460
- title: `${verb}${countSuffix} \xB7 ${state}`,
1461
- failed: isFailed,
1462
- cancelled: isCancelled,
1463
- preview: `screenshot ${state}`,
1464
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
1465
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: isFailed ? "error" : void 0, children: msg("timeline.toolRenderers.screenshotStateReplaceall", {
1466
- state,
1467
- replaceAll: retained.reason.replaceAll("_", " ")
1468
- }) })
1469
- }
1470
- );
1471
- }
1472
- return /* @__PURE__ */ jsx7(
1473
- RetainedSessionImageDisclosure,
1474
- {
1475
- artifact: retained,
1476
- load: loadRetainedScreenshot,
1477
- title: `${verb}${countSuffix}`,
1478
- caption: `${verb}${countSuffix}`,
1479
- noun: "screenshot",
1480
- icon: /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }),
1481
- lightboxLabel: msg("timeline.toolRenderers.screenshot"),
1482
- batched,
1483
- failed: isFailed,
1484
- cancelled: isCancelled
1485
- }
1486
- );
1487
- }
1488
- if (shotUrl) {
1489
- const caption = `${verb}${actions.length > 1 ? ` (+${actions.length - 1} more)` : ""}`;
1490
- return /* @__PURE__ */ jsxs4(
1491
- ActivityDisclosure,
1492
- {
1493
- icon: isShot ? /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }) : /* @__PURE__ */ jsx7(MousePointer2Icon, { className: ICON_SIZE }),
1494
- iconTone: isFailed ? "failed" : "accent",
1495
- title: `${verb}${countSuffix}`,
1496
- failed: isFailed,
1497
- cancelled: isCancelled,
1498
- media: /* @__PURE__ */ jsx7(Thumbnail, { src: shotUrl, caption }),
1499
- children: [
1500
- /* @__PURE__ */ jsx7(ScreenshotFigure, { src: shotUrl, caption }),
1501
- batched ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.batchedBatched", { batched }) }) : null
1502
- ]
1503
- }
1504
- );
1505
- }
1506
- if (omittedMedia) {
1507
- return /* @__PURE__ */ jsxs4(
1508
- ActivityDisclosure,
1509
- {
1510
- icon: /* @__PURE__ */ jsx7(CameraOffIcon, { className: ICON_SIZE }),
1511
- iconTone: isFailed ? "failed" : "muted",
1512
- title: msg("timeline.toolRenderers.verbCountsuffixImageOmittedNot", { verb, countSuffix }),
1513
- failed: isFailed,
1514
- cancelled: isCancelled,
1515
- preview: msg("timeline.toolRenderers.inlineImageOmittedNotRetained"),
1516
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
1517
- children: [
1518
- /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.theInlineMediatypeOutputWas", {
1519
- mediaType: omittedMedia.mediaType
1520
- }) }),
1521
- batched ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.batchedBatched", { batched }) }) : null
1522
- ]
1523
- }
1524
- );
1525
- }
1526
- if (empty) {
1527
- return /* @__PURE__ */ jsx7(
1528
- ActivityDisclosure,
1529
- {
1530
- icon: /* @__PURE__ */ jsx7(CameraOffIcon, { className: ICON_SIZE }),
1531
- iconTone: isFailed ? "failed" : "muted",
1532
- title: verb,
1533
- failed: isFailed,
1534
- cancelled: isCancelled,
1535
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
1536
- children: /* @__PURE__ */ jsx7(BodyNote, { children: isFailed ? msg("timeline.toolRenderers.computerCallFailedNoImage") : isCancelled ? msg("timeline.toolRenderers.computerCallInterruptedNoImage") : msg("timeline.toolRenderers.noImageTheSessionReturned") })
1537
- }
1538
- );
1539
- }
1540
- return /* @__PURE__ */ jsx7(
1541
- ActivityDisclosure,
1542
- {
1543
- icon: /* @__PURE__ */ jsx7(MousePointer2Icon, { className: ICON_SIZE }),
1544
- iconTone: isFailed ? "failed" : "accent",
1545
- title: verb,
1546
- failed: isFailed,
1547
- cancelled: isCancelled,
1548
- preview: batched ?? void 0,
1549
- expandable: batched != null,
1550
- children: batched ? /* @__PURE__ */ jsx7(BodyNote, { children: batched }) : null
1551
- }
1552
- );
1553
- }
1554
- function BrowserScreenshotRenderer(props) {
1555
- const msg = useOpenGeniText();
1556
- const { item, loadRetainedScreenshot } = props;
1557
- const leaf = mcpToolLeaf(item.name);
1558
- const title = leaf === "browser_observe" ? msg("timeline.toolRenderers.observedBrowser") : leaf === "browser_act" ? msg("timeline.toolRenderers.usedBrowser") : msg("timeline.toolRenderers.browserScreenshot");
1559
- const retained = retainedScreenshotMetadata(item.output);
1560
- const isFailed = item.status === "failed";
1561
- const isCancelled = item.status === "cancelled";
1562
- if (item.status === "running" && leaf === "browser_screenshot") {
1563
- return /* @__PURE__ */ jsx7(
1564
- ActivityDisclosure,
1565
- {
1566
- icon: /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }),
1567
- iconTone: "running",
1568
- title,
1569
- running: true,
1570
- media: /* @__PURE__ */ jsx7(MediaSkeleton, {}),
1571
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capturingFrame") })
1572
- }
1573
- );
1574
- }
1575
- if (!retained) return /* @__PURE__ */ jsx7(GenericRenderer, { ...props });
1576
- if (!retained.available) {
1577
- const state = retained.reason === "expired" || retained.reason === "deleted" ? retained.reason : "unavailable";
1578
- return /* @__PURE__ */ jsx7(
1579
- ActivityDisclosure,
1580
- {
1581
- icon: /* @__PURE__ */ jsx7(CameraOffIcon, { className: ICON_SIZE }),
1582
- iconTone: isFailed ? "failed" : "muted",
1583
- title: `${title} \xB7 ${state}`,
1584
- failed: isFailed,
1585
- cancelled: isCancelled,
1586
- preview: `screenshot ${state}`,
1587
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
1588
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: isFailed ? "error" : void 0, children: msg("timeline.toolRenderers.screenshotStateReplaceall", {
1589
- state,
1590
- replaceAll: retained.reason.replaceAll("_", " ")
1591
- }) })
1592
- }
1593
- );
1594
- }
1595
- return /* @__PURE__ */ jsx7(
1596
- RetainedSessionImageDisclosure,
1597
- {
1598
- artifact: retained,
1599
- load: loadRetainedScreenshot,
1600
- title,
1601
- caption: title,
1602
- noun: "screenshot",
1603
- icon: /* @__PURE__ */ jsx7(CameraIcon, { className: ICON_SIZE }),
1604
- lightboxLabel: msg("timeline.toolRenderers.browserScreenshot"),
1605
- batched: null,
1606
- failed: isFailed,
1607
- cancelled: isCancelled
1608
- }
1609
- );
1610
- }
1611
- function RetainedSessionImageDisclosure(props) {
1612
- const compact = useContext5(CompactActivityContext);
1613
- if (compact) {
1614
- return /* @__PURE__ */ jsx7(
1615
- ActivityDisclosure,
1616
- {
1617
- icon: props.icon,
1618
- title: props.title,
1619
- compactPreview: null,
1620
- failed: props.failed,
1621
- cancelled: props.cancelled
1622
- }
1623
- );
1624
- }
1625
- return /* @__PURE__ */ jsx7(LoadedRetainedSessionImageDisclosure, { ...props });
1626
- }
1627
- function LoadedRetainedSessionImageDisclosure({
1628
- artifact,
1629
- load,
1630
- title,
1631
- caption,
1632
- noun,
1633
- icon,
1634
- lightboxLabel,
1635
- batched,
1636
- failed,
1637
- cancelled,
1638
- filename,
1639
- defaultOpen,
1640
- children
1641
- }) {
1642
- const msg = useOpenGeniText();
1643
- const state = useRetainedImageObjectUrl(artifact, load);
1644
- const downloadFilename = filename ?? retainedImageFilename(artifact);
1645
- const figure = {
1646
- src: state.kind === "ready" ? state.url : "",
1647
- caption,
1648
- alt: caption,
1649
- expandLabel: msg("timeline.toolRenderers.expandNoun", { noun }),
1650
- lightboxLabel,
1651
- downloadFilename
1652
- };
1653
- return /* @__PURE__ */ jsxs4(
1654
- ActivityDisclosure,
1655
- {
1656
- icon,
1657
- iconTone: failed ? "failed" : state.kind === "ready" ? "accent" : "muted",
1658
- title,
1659
- defaultOpen,
1660
- failed,
1661
- cancelled,
1662
- preview: state.kind === "loading" ? msg("timeline.toolRenderers.loadingRetainedNoun", { noun }) : state.kind === "error" ? msg("timeline.toolRenderers.nounRetrievalFailed", { noun }) : state.kind === "unavailable" ? `${noun} ${state.label}` : void 0,
1663
- media: state.kind === "ready" ? /* @__PURE__ */ jsx7(Thumbnail, { ...figure }) : state.kind === "loading" ? /* @__PURE__ */ jsx7(MediaSkeleton, {}) : /* @__PURE__ */ jsx7(MediaEmpty, {}),
1664
- children: [
1665
- state.kind === "ready" ? /* @__PURE__ */ jsx7(ScreenshotFigure, { ...figure, showCaption: caption !== title }) : state.kind === "loading" ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.loadingTheRetainedNoun", { noun }) }) : state.kind === "unavailable" ? /* @__PURE__ */ jsxs4(BodyNote, { children: [
1666
- noun === "screenshot" ? msg("timeline.toolRenderers.screenshot") : msg("timeline.toolRenderers.image"),
1667
- " ",
1668
- state.label,
1669
- "."
1670
- ] }) : /* @__PURE__ */ jsx7(ImageRetrievalError, { noun, retry: state.retry }),
1671
- batched ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.batchedBatched", { batched }) }) : null,
1672
- children
1673
- ]
1674
- }
1675
- );
1676
- }
1677
- function ImageRetrievalError({ noun = "image", retry }) {
1678
- const msg = useOpenGeniText();
1679
- return /* @__PURE__ */ jsxs4(BodyNote, { tone: "error", children: [
1680
- noun === "screenshot" ? msg("timeline.toolRenderers.screenshot") : msg("timeline.toolRenderers.image"),
1681
- " ",
1682
- msg("timeline.toolRenderers.retrievalFailed"),
1683
- " ",
1684
- /* @__PURE__ */ jsx7(
1685
- "button",
1686
- {
1687
- type: "button",
1688
- "aria-label": msg("timeline.toolRenderers.retryNounRetrieval", { noun }),
1689
- onClick: retry,
1690
- className: "underline underline-offset-2",
1691
- children: msg("timeline.toolRenderers.retry")
1692
- }
1693
- )
1694
- ] });
1695
- }
1696
- function GeneratedImageRenderer({ item, loadRetainedArtifact }) {
1697
- const msg = useOpenGeniText();
1698
- const args = parseToolArgs(item.arguments);
1699
- const prompt = typeof args.prompt === "string" ? args.prompt : "";
1700
- const raw = item.raw && typeof item.raw === "object" && !Array.isArray(item.raw) ? item.raw : null;
1701
- const receipt = generatedImageReceipt(item.output) ?? generatedImageReceipt(raw?.output);
1702
- if (item.status === "running") {
1703
- return /* @__PURE__ */ jsx7(
1704
- ActivityDisclosure,
1705
- {
1706
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
1707
- iconTone: "running",
1708
- title: msg("timeline.toolRenderers.generatingImage"),
1709
- running: true,
1710
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: truncatePreview(prompt, 72) || msg("timeline.toolRenderers.creating") }),
1711
- media: /* @__PURE__ */ jsx7(MediaSkeleton, {}),
1712
- children: prompt ? /* @__PURE__ */ jsx7(BodyNote, { children: prompt }) : null
1713
- }
1714
- );
1715
- }
1716
- if (!receipt) return /* @__PURE__ */ jsx7(GenericRenderer, { item });
1717
- return /* @__PURE__ */ jsx7(
1718
- GeneratedImageDisclosure,
1719
- {
1720
- receipt,
1721
- load: loadRetainedArtifact,
1722
- prompt,
1723
- failed: item.status === "failed",
1724
- cancelled: item.status === "cancelled"
1725
- }
1726
- );
1727
- }
1728
- function GeneratedVideoRenderer({ item }) {
1729
- const msg = useOpenGeniText();
1730
- const args = parseToolArgs(item.arguments);
1731
- const prompt = typeof args.prompt === "string" ? args.prompt : "";
1732
- const parsedOutput = typeof item.output === "string" ? tryParseJson(item.output) : item.output;
1733
- const accepted = parsedOutput && typeof parsedOutput === "object" && !Array.isArray(parsedOutput) && parsedOutput.status === "accepted";
1734
- const failed = item.status === "failed";
1735
- const cancelled = item.status === "cancelled";
1736
- const running = item.status === "running";
1737
- return /* @__PURE__ */ jsxs4(
1738
- ActivityDisclosure,
1739
- {
1740
- icon: /* @__PURE__ */ jsx7(VideoIcon2, { className: ICON_SIZE }),
1741
- iconTone: failed ? "failed" : running ? "running" : accepted ? "accent" : "muted",
1742
- title: running ? msg("timeline.toolRenderers.startingVideoGeneration") : accepted ? msg("timeline.toolRenderers.generatingVideo") : msg("timeline.toolRenderers.generateVideo"),
1743
- running,
1744
- failed,
1745
- cancelled,
1746
- preview: truncatePreview(prompt, 88) || (accepted ? msg("timeline.toolRenderers.requestAccepted") : void 0),
1747
- children: [
1748
- prompt ? /* @__PURE__ */ jsx7(BodyNote, { children: prompt }) : null,
1749
- accepted ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.theVideoWillAppearHere") }) : item.output !== void 0 ? /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.output"), value: item.output }) : null
1750
- ]
1751
- }
1752
- );
1753
- }
1754
- function SandboxFilePublishRenderer({ item, loadRetainedArtifact }) {
1755
- const msg = useOpenGeniText();
1756
- const plain = useToolDetails() === "plain";
1757
- const { text: output, isError } = unwrapMcpOutput(item.output);
1758
- const receipt = parseSandboxFileArtifactReceipt(output);
1759
- const [downloadState, setDownloadState] = useState6("idle");
1760
- if (item.status === "running") {
1761
- return /* @__PURE__ */ jsx7(
1762
- ActivityDisclosure,
1763
- {
1764
- icon: /* @__PURE__ */ jsx7(DownloadIcon2, { className: ICON_SIZE }),
1765
- iconTone: "running",
1766
- title: msg("timeline.toolRenderers.publishingFile"),
1767
- running: true,
1768
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.retainingWorkspaceBytes") })
1769
- }
1770
- );
1771
- }
1772
- if (!receipt || isError || item.status === "failed") {
1773
- return /* @__PURE__ */ jsx7(GenericRenderer, { item });
1774
- }
1775
- const workspaceId = /^\/v1\/workspaces\/([0-9a-f-]+)\/artifacts\//.exec(
1776
- receipt.artifact.retrieval.path
1777
- )?.[1];
1778
- const openLink = workspaceId ? /* @__PURE__ */ jsx7(
1779
- "a",
1780
- {
1781
- href: `/workspaces/${workspaceId}/artifacts/files/${receipt.artifact.artifactId}`,
1782
- "aria-label": msg("timeline.toolRenderers.openFilenameInArtifacts", {
1783
- filename: receipt.filename
1784
- }),
1785
- className: "inline-flex min-h-7 items-center rounded-og-sm px-2 text-og-sm font-medium text-og-accent-strong hover:bg-og-surface-2 hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:min-h-10",
1786
- onClick: (event) => event.stopPropagation(),
1787
- onKeyDown: (event) => event.stopPropagation(),
1788
- children: msg("timeline.toolRenderers.openInArtifacts")
1789
- }
1790
- ) : null;
1791
- const download = async () => {
1792
- if (!loadRetainedArtifact) {
1793
- setDownloadState("error");
1794
- return;
1795
- }
1796
- setDownloadState("loading");
1797
- try {
1798
- const source = await loadRetainedArtifact(receipt.artifact, new AbortController().signal);
1799
- if (!source) throw new Error("artifact unavailable");
1800
- if (source instanceof Uint8Array)
1801
- saveBlob(
1802
- new Blob([source], { type: receipt.artifact.contentType }),
1803
- receipt.filename
1804
- );
1805
- else clickDownloadLink(source.url, receipt.filename);
1806
- setDownloadState("idle");
1807
- } catch {
1808
- setDownloadState("error");
1809
- }
1810
- };
1811
- const downloadButton = /* @__PURE__ */ jsxs4(
1812
- "button",
1813
- {
1814
- type: "button",
1815
- onClick: () => void download(),
1816
- disabled: downloadState === "loading",
1817
- className: "inline-flex items-center gap-1.5 rounded-og-sm border border-og-border px-2.5 py-1.5 text-og-sm font-medium text-og-fg transition-colors hover:border-og-border-strong hover:bg-og-surface-2 disabled:cursor-wait disabled:opacity-60",
1818
- children: [
1819
- /* @__PURE__ */ jsx7(DownloadIcon2, { className: "size-3.5" }),
1820
- downloadState === "loading" ? msg("timeline.toolRenderers.preparing") : downloadState === "error" ? msg("timeline.toolRenderers.retryDownload") : msg("timeline.toolRenderers.download")
1821
- ]
1822
- }
1823
- );
1824
- if (isRetainedImageContentType(receipt.artifact.contentType)) {
1825
- return /* @__PURE__ */ jsxs4(
1826
- RetainedSessionImageDisclosure,
1827
- {
1828
- artifact: receipt.artifact,
1829
- load: loadRetainedArtifact,
1830
- title: msg("timeline.toolRenderers.publishedFilename", { filename: receipt.filename }),
1831
- caption: receipt.filename,
1832
- noun: "image",
1833
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
1834
- lightboxLabel: msg("timeline.toolRenderers.image"),
1835
- batched: null,
1836
- failed: false,
1837
- cancelled: false,
1838
- filename: receipt.filename,
1839
- defaultOpen: true,
1840
- children: [
1841
- downloadButton,
1842
- openLink
1843
- ]
1844
- }
1845
- );
1846
- }
1847
- return /* @__PURE__ */ jsxs4(
1848
- ActivityDisclosure,
1849
- {
1850
- icon: /* @__PURE__ */ jsx7(DownloadIcon2, { className: ICON_SIZE }),
1851
- iconTone: "accent",
1852
- title: msg("timeline.toolRenderers.publishedFilename", { filename: receipt.filename }),
1853
- defaultOpen: true,
1854
- preview: formatBytes(receipt.artifact.originalBytes),
1855
- children: [
1856
- downloadButton,
1857
- openLink,
1858
- plain ? null : isPatchFilename(receipt.filename) ? /* @__PURE__ */ jsx7(
1859
- PatchApplyCommand,
1860
- {
1861
- artifact: receipt.artifact,
1862
- filename: receipt.filename,
1863
- load: loadRetainedArtifact
1864
- }
1865
- ) : null
1866
- ]
1867
- }
1868
- );
1869
- }
1870
- function publishedSiteReceipt(output) {
1871
- const { text, isError } = unwrapMcpOutput(output);
1872
- if (isError) return null;
1873
- const parsed = tryParseJson(text);
1874
- if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
1875
- const artifact = parsed.artifact;
1876
- const version = parsed.version;
1877
- if (!artifact || typeof artifact !== "object" || Array.isArray(artifact) || !version || typeof version !== "object" || Array.isArray(version)) {
1878
- return null;
1879
- }
1880
- const artifactRecord = artifact;
1881
- const versionRecord = version;
1882
- if (typeof artifactRecord.workspaceId !== "string" || typeof artifactRecord.id !== "string" || typeof artifactRecord.title !== "string" || typeof versionRecord.revision !== "number" || !Number.isInteger(versionRecord.revision) || versionRecord.revision < 1) {
1883
- return null;
1884
- }
1885
- return {
1886
- workspaceId: artifactRecord.workspaceId,
1887
- artifactId: artifactRecord.id,
1888
- title: artifactRecord.title,
1889
- revision: versionRecord.revision,
1890
- replayed: parsed.replayed === true
1891
- };
1892
- }
1893
- var SITE_OPEN_CLASS = "inline-flex min-h-7 items-center rounded-og-sm px-2 text-og-sm font-medium text-og-accent-strong hover:bg-og-surface-2 hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-og-accent pointer-coarse:min-h-10";
1894
- function SiteOpenLink({ receipt }) {
1895
- const msg = useOpenGeniText();
1896
- const [pending, setPending] = useState6(false);
1897
- const [failed, setFailed] = useState6(false);
1898
- const resolution = useOpenGeniLinkResolver()?.({
1899
- kind: "site",
1900
- artifactId: receipt.artifactId,
1901
- workspaceId: receipt.workspaceId
1902
- });
1903
- const destination = resolution?.href ? defaultUrlTransform(resolution.href) : "";
1904
- if (destination) {
1905
- return /* @__PURE__ */ jsx7(
1906
- "a",
1907
- {
1908
- href: destination,
1909
- "aria-label": msg("timeline.toolRenderers.openTitle", { title: receipt.title }),
1910
- className: SITE_OPEN_CLASS,
1911
- onClick: (event) => event.stopPropagation(),
1912
- onKeyDown: (event) => event.stopPropagation(),
1913
- children: msg("timeline.toolRenderers.open")
1914
- }
1915
- );
1916
- }
1917
- if (resolution?.open) {
1918
- const open = resolution.open;
1919
- return /* @__PURE__ */ jsx7(
1920
- "button",
1921
- {
1922
- type: "button",
1923
- "aria-label": msg("timeline.toolRenderers.openTitle", { title: receipt.title }),
1924
- "aria-busy": pending,
1925
- disabled: pending,
1926
- className: SITE_OPEN_CLASS,
1927
- onClick: (event) => {
1928
- event.stopPropagation();
1929
- if (pending) return;
1930
- setPending(true);
1931
- setFailed(false);
1932
- void Promise.resolve().then(open).catch(() => setFailed(true)).finally(() => setPending(false));
1933
- },
1934
- onKeyDown: (event) => event.stopPropagation(),
1935
- children: pending ? msg("timeline.toolRenderers.opening") : failed ? msg("timeline.toolRenderers.retryOpen") : msg("timeline.toolRenderers.open")
1936
- }
1937
- );
1938
- }
1939
- return null;
1940
- }
1941
- function SiteArtifactRenderer({ item }) {
1942
- const msg = useOpenGeniText();
1943
- const leaf = mcpToolLeaf(item.name);
1944
- const publishingExisting = leaf === "artifacts_publish";
1945
- if (item.status === "running") {
1946
- return /* @__PURE__ */ jsx7(
1947
- ActivityDisclosure,
1948
- {
1949
- icon: /* @__PURE__ */ jsx7(PanelsTopLeftIcon2, { className: ICON_SIZE }),
1950
- iconTone: "running",
1951
- title: publishingExisting ? msg("timeline.toolRenderers.publishingSiteUpdate") : msg("timeline.toolRenderers.publishingSite"),
1952
- running: true,
1953
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.retainingSourceAndCompiledHtml") })
1954
- }
1955
- );
1956
- }
1957
- const receipt = publishedSiteReceipt(item.output);
1958
- if (!receipt || item.status === "failed") return /* @__PURE__ */ jsx7(GenericRenderer, { item });
1959
- return /* @__PURE__ */ jsx7(
1960
- ActivityDisclosure,
1961
- {
1962
- icon: /* @__PURE__ */ jsx7(PanelsTopLeftIcon2, { className: ICON_SIZE }),
1963
- iconTone: "accent",
1964
- title: publishingExisting ? msg("timeline.toolRenderers.updatedTitle", { title: receipt.title }) : msg("timeline.toolRenderers.publishedTitle", { title: receipt.title }),
1965
- media: /* @__PURE__ */ jsx7(SiteOpenLink, { receipt }),
1966
- children: /* @__PURE__ */ jsxs4(BodyNote, { children: [
1967
- msg("timeline.toolRenderers.versionRevisionIsLive", { revision: receipt.revision }),
1968
- receipt.replayed ? ` ${msg("timeline.toolRenderers.replayedFromTheOriginalPublication")}` : "."
1969
- ] })
1970
- }
1971
- );
1972
- }
1973
- function GeneratedImageDisclosure({
1974
- receipt,
1975
- load,
1976
- prompt,
1977
- failed,
1978
- cancelled
1979
- }) {
1980
- const msg = useOpenGeniText();
1981
- const state = useRetainedImageObjectUrl(receipt.artifact, load);
1982
- const dimensions = receipt.artifact.dimensions;
1983
- const title = failed ? msg("timeline.toolRenderers.imageGenerationFailed") : msg("timeline.toolRenderers.generatedImage");
1984
- const caption = prompt || msg("timeline.toolRenderers.generatedImageWidthHeight", {
1985
- width: dimensions.width,
1986
- height: dimensions.height
1987
- });
1988
- return /* @__PURE__ */ jsxs4(
1989
- ActivityDisclosure,
1990
- {
1991
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
1992
- iconTone: failed ? "failed" : state.kind === "ready" ? "accent" : "muted",
1993
- title,
1994
- defaultOpen: !failed && !cancelled,
1995
- failed,
1996
- cancelled,
1997
- preview: state.kind === "loading" ? msg("timeline.toolRenderers.loadingImage") : state.kind === "error" ? msg("timeline.toolRenderers.imageRetrievalFailed") : state.kind === "unavailable" ? `image ${state.label}` : truncatePreview(prompt, 88) || `${dimensions.width}\xD7${dimensions.height}`,
1998
- media: state.kind === "ready" ? /* @__PURE__ */ jsx7(
1999
- Thumbnail,
2000
- {
2001
- src: state.url,
2002
- caption,
2003
- alt: caption,
2004
- expandLabel: msg("timeline.toolRenderers.expandGeneratedImage"),
2005
- lightboxLabel: msg("timeline.toolRenderers.generatedImage")
2006
- }
2007
- ) : state.kind === "loading" ? /* @__PURE__ */ jsx7(MediaSkeleton, {}) : /* @__PURE__ */ jsx7(MediaEmpty, {}),
2008
- children: [
2009
- state.kind === "ready" ? /* @__PURE__ */ jsx7(
2010
- ScreenshotFigure,
2011
- {
2012
- src: state.url,
2013
- caption,
2014
- alt: caption,
2015
- expandLabel: msg("timeline.toolRenderers.expandGeneratedImage"),
2016
- lightboxLabel: msg("timeline.toolRenderers.generatedImage")
2017
- }
2018
- ) : state.kind === "loading" ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.loadingTheGeneratedImage") }) : state.kind === "unavailable" ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.imageLabel", { label: state.label }) }) : /* @__PURE__ */ jsx7(ImageRetrievalError, { retry: state.retry }),
2019
- /* @__PURE__ */ jsxs4(BodyNote, { children: [
2020
- dimensions.width,
2021
- "\xD7",
2022
- dimensions.height,
2023
- " \xB7 ",
2024
- receipt.sandboxPath
2025
- ] })
2026
- ]
2027
- }
2028
- );
2029
- }
2030
- function retainedImageFilename(artifact) {
2031
- const extension = artifact.contentType === "image/jpeg" ? "jpg" : artifact.contentType === "image/webp" ? "webp" : "png";
2032
- return `${artifact.kind}-${artifact.artifactId}.${extension}`;
2033
- }
2034
- var VIEW_IMAGE_ERRORS = (msg) => [
2035
- msg("timeline.toolRenderers.wasNotFound"),
2036
- msg("timeline.toolRenderers.isNotAFile"),
2037
- msg("timeline.toolRenderers.exceededTheAllowedSize"),
2038
- msg("timeline.toolRenderers.isNotASupportedImage"),
2039
- msg("timeline.toolRenderers.unableToReadImage")
2040
- ];
2041
- function ViewImageRenderer({ item, loadRetainedScreenshot }) {
2042
- const msg = useOpenGeniText();
2043
- const args = parseToolArgs(item.arguments);
2044
- const path = typeof args.path === "string" ? args.path : "";
2045
- const out = item.output;
2046
- const text = typeof out === "string" ? out : "";
2047
- const retained = retainedScreenshotMetadata(out);
2048
- const omittedMedia = mediaPreviewFact(out);
2049
- if (item.status === "running") {
2050
- return /* @__PURE__ */ jsx7(
2051
- ActivityDisclosure,
2052
- {
2053
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2054
- iconTone: "running",
2055
- title: msg("timeline.toolRenderers.viewPathbasename", { pathBasename: pathBasename(path) }),
2056
- running: true,
2057
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.reading") }),
2058
- media: /* @__PURE__ */ jsx7(MediaSkeleton, {}),
2059
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.readingImage") })
2060
- }
2061
- );
2062
- }
2063
- const viewFailed = item.status === "failed";
2064
- const viewCancelled = item.status === "cancelled";
2065
- if (retained) {
2066
- const title = msg("timeline.toolRenderers.viewedPathbasename", {
2067
- pathBasename: pathBasename(path)
2068
- });
2069
- if (!retained.available) {
2070
- const state = retained.reason === "expired" || retained.reason === "deleted" ? retained.reason : "unavailable";
2071
- return /* @__PURE__ */ jsx7(
2072
- ActivityDisclosure,
2073
- {
2074
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2075
- iconTone: viewFailed ? "failed" : "muted",
2076
- title: `${title} \xB7 ${state}`,
2077
- failed: viewFailed,
2078
- cancelled: viewCancelled,
2079
- preview: `image ${state}`,
2080
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
2081
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: viewFailed ? "error" : void 0, children: msg("timeline.toolRenderers.imageStateReplaceall", {
2082
- state,
2083
- replaceAll: retained.reason.replaceAll("_", " ")
2084
- }) })
2085
- }
2086
- );
2087
- }
2088
- return /* @__PURE__ */ jsx7(
2089
- RetainedSessionImageDisclosure,
2090
- {
2091
- artifact: retained,
2092
- load: loadRetainedScreenshot,
2093
- title,
2094
- caption: path || title,
2095
- noun: "image",
2096
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2097
- lightboxLabel: msg("timeline.toolRenderers.image"),
2098
- batched: null,
2099
- failed: viewFailed,
2100
- cancelled: viewCancelled
2101
- }
2102
- );
2103
- }
2104
- const errMatch = VIEW_IMAGE_ERRORS(msg).find((p) => text.includes(p));
2105
- if (errMatch) {
2106
- const tooBig = text.includes("exceeded the allowed size");
2107
- return /* @__PURE__ */ jsx7(
2108
- ActivityDisclosure,
2109
- {
2110
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2111
- iconTone: "failed",
2112
- title: msg("timeline.toolRenderers.viewPathbasename", { pathBasename: pathBasename(path) }),
2113
- chip: {
2114
- tone: "bad",
2115
- text: tooBig ? msg("timeline.toolRenderers.tooLarge") : msg("timeline.chip.error")
2116
- },
2117
- preview: text,
2118
- children: /* @__PURE__ */ jsx7(BodyNote, { tone: "error", children: text })
2119
- }
2120
- );
2121
- }
2122
- if (text.startsWith("OpenAI file reference:")) {
2123
- return /* @__PURE__ */ jsx7(
2124
- ActivityDisclosure,
2125
- {
2126
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2127
- iconTone: viewFailed ? "failed" : "muted",
2128
- title: msg("timeline.toolRenderers.viewedPathbasename", {
2129
- pathBasename: pathBasename(path)
2130
- }),
2131
- failed: viewFailed,
2132
- cancelled: viewCancelled,
2133
- preview: path,
2134
- children: /* @__PURE__ */ jsx7(BodyNote, { children: text })
2135
- }
2136
- );
2137
- }
2138
- if (omittedMedia) {
2139
- return /* @__PURE__ */ jsx7(
2140
- ActivityDisclosure,
2141
- {
2142
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2143
- iconTone: viewFailed ? "failed" : "muted",
2144
- title: msg("timeline.toolRenderers.viewedPathbasenameImageOmittedNot", {
2145
- pathBasename: pathBasename(path)
2146
- }),
2147
- failed: viewFailed,
2148
- cancelled: viewCancelled,
2149
- preview: msg("timeline.toolRenderers.inlineImageOmittedNotRetained"),
2150
- media: /* @__PURE__ */ jsx7(MediaEmpty, {}),
2151
- children: /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.theInlineMediatypeOutputWas", {
2152
- mediaType: omittedMedia.mediaType
2153
- }) })
2154
- }
2155
- );
2156
- }
2157
- if (text.includes("No image data")) {
2158
- return /* @__PURE__ */ jsx7(
2159
- ActivityDisclosure,
2160
- {
2161
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2162
- iconTone: viewFailed ? "failed" : "muted",
2163
- title: msg("timeline.toolRenderers.viewedPathbasename", {
2164
- pathBasename: pathBasename(path)
2165
- }),
2166
- failed: viewFailed,
2167
- cancelled: viewCancelled,
2168
- preview: msg("timeline.toolRenderers.noImage"),
2169
- children: /* @__PURE__ */ jsx7(BodyNote, { children: viewFailed ? msg("timeline.toolRenderers.viewImageFailedNoImage") : viewCancelled ? msg("timeline.toolRenderers.viewImageInterrupted") : msg("timeline.toolRenderers.noImageTheSandboxSession") })
2170
- }
2171
- );
2172
- }
2173
- if (text.startsWith("data:")) {
2174
- return /* @__PURE__ */ jsx7(
2175
- ActivityDisclosure,
2176
- {
2177
- icon: /* @__PURE__ */ jsx7(ImageIcon2, { className: ICON_SIZE }),
2178
- iconTone: viewFailed ? "failed" : "accent",
2179
- title: msg("timeline.toolRenderers.viewedPathbasename", {
2180
- pathBasename: pathBasename(path)
2181
- }),
2182
- failed: viewFailed,
2183
- cancelled: viewCancelled,
2184
- media: /* @__PURE__ */ jsx7(Thumbnail, { src: text, caption: path, alt: path }),
2185
- children: /* @__PURE__ */ jsx7(ScreenshotFigure, { src: text, caption: path, alt: path })
2186
- }
2187
- );
2188
- }
2189
- return /* @__PURE__ */ jsx7(GenericRenderer, { item });
2190
- }
2191
- function SecretSetRenderer(props) {
2192
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullSecretSetRenderer, { ...props });
2193
- }
2194
- function FullSecretSetRenderer({ item }) {
2195
- const msg = useOpenGeniText();
2196
- const args = parseToolArgs(item.arguments);
2197
- const name = typeof args.name === "string" ? args.name : "variable";
2198
- if (item.status === "running") {
2199
- return /* @__PURE__ */ jsx7(
2200
- ActivityDisclosure,
2201
- {
2202
- icon: /* @__PURE__ */ jsx7(KeyRoundIcon2, { className: ICON_SIZE }),
2203
- iconTone: "running",
2204
- title: msg("timeline.toolRenderers.setName", { name }),
2205
- running: true,
2206
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.setting") }),
2207
- children: /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args })
2208
- }
2209
- );
2210
- }
2211
- if (item.status === "failed") {
2212
- const errorText = typeof item.output === "string" ? item.output : null;
2213
- return /* @__PURE__ */ jsxs4(
2214
- ActivityDisclosure,
2215
- {
2216
- icon: /* @__PURE__ */ jsx7(KeyRoundIcon2, { className: ICON_SIZE }),
2217
- iconTone: "failed",
2218
- title: msg("timeline.toolRenderers.setName", { name }),
2219
- failed: true,
2220
- preview: errorText ?? msg("timeline.toolRenderers.variableWriteFailed"),
2221
- children: [
2222
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2223
- errorText ? /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: errorText, failed: true }) : /* @__PURE__ */ jsx7(BodyNote, { tone: "error", children: msg("timeline.toolRenderers.theToolCallFailedWith") })
2224
- ]
2225
- }
2226
- );
2227
- }
2228
- return /* @__PURE__ */ jsxs4(
2229
- ActivityDisclosure,
2230
- {
2231
- icon: /* @__PURE__ */ jsx7(KeyRoundIcon2, { className: ICON_SIZE }),
2232
- iconTone: "muted",
2233
- title: msg("timeline.toolRenderers.setName", { name }),
2234
- cancelled: item.status === "cancelled",
2235
- preview: "exact value preserved",
2236
- children: [
2237
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2238
- /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.theConfiguredValueIsPreserved") })
2239
- ]
2240
- }
2241
- );
2242
- }
2243
- function ToolSearchRenderer(props) {
2244
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullToolSearchRenderer, { ...props });
2245
- }
2246
- function FullToolSearchRenderer({ item }) {
2247
- const msg = useOpenGeniText();
2248
- const query = toolSearchQuery(item);
2249
- const icon = /* @__PURE__ */ jsx7(PackageSearchIcon2, { className: ICON_SIZE });
2250
- const running = item.status === "running";
2251
- const queryPreview = query ? truncatePreview(query, 64) : "";
2252
- if (running) {
2253
- return /* @__PURE__ */ jsxs4(
2254
- ActivityDisclosure,
2255
- {
2256
- icon,
2257
- iconTone: "running",
2258
- title: msg("timeline.toolRenderers.lookingUpTools"),
2259
- running: true,
2260
- preview: queryPreview ? /* @__PURE__ */ jsx7(RunningPreview, { children: queryPreview }) : /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.matchingCapabilities") }),
2261
- children: [
2262
- query ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capabilityQueryQuery", { query }) }) : null,
2263
- /* @__PURE__ */ jsx7(
2264
- PayloadBlock,
2265
- {
2266
- label: msg("timeline.toolRenderers.arguments"),
2267
- value: parseToolArgs(item.arguments)
2268
- }
2269
- )
2270
- ]
2271
- }
2272
- );
2273
- }
2274
- const { text: outText, isError } = unwrapMcpOutput(item.output);
2275
- if ((isError || item.status === "failed") && item.status !== "cancelled") {
2276
- return /* @__PURE__ */ jsxs4(
2277
- ActivityDisclosure,
2278
- {
2279
- icon,
2280
- iconTone: "failed",
2281
- title: msg("timeline.toolRenderers.toolLookupFailed"),
2282
- failed: true,
2283
- preview: truncatePreview(outText, 80) || queryPreview || msg("timeline.toolRenderers.lookupFailed"),
2284
- children: [
2285
- query ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capabilityQueryQuery", { query }) }) : null,
2286
- /* @__PURE__ */ jsx7(
2287
- PayloadBlock,
2288
- {
2289
- label: msg("timeline.toolRenderers.arguments"),
2290
- value: parseToolArgs(item.arguments)
2291
- }
2292
- ),
2293
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: outText, failed: true })
2294
- ]
2295
- }
2296
- );
2297
- }
2298
- const tools = parseDisclosedTools(item.output);
2299
- const preview = toolSearchPreview(msg, tools, item.status === "cancelled");
2300
- return /* @__PURE__ */ jsxs4(
2301
- ActivityDisclosure,
2302
- {
2303
- icon,
2304
- iconTone: "muted",
2305
- title: msg("timeline.toolRenderers.lookedUpTools"),
2306
- cancelled: item.status === "cancelled",
2307
- preview,
2308
- children: [
2309
- query ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.capabilityQueryQuery", { query }) }) : null,
2310
- tools && tools.length > 0 ? /* @__PURE__ */ jsxs4("ul", { className: "grid gap-1.5", children: [
2311
- tools.slice(0, 12).map((tool) => /* @__PURE__ */ jsxs4("li", { className: "flex min-w-0 items-baseline gap-2", children: [
2312
- tool.source ? /* @__PURE__ */ jsx7("span", { className: "shrink-0 text-og-xs text-og-fg-subtle", children: tool.source }) : null,
2313
- /* @__PURE__ */ jsx7("span", { className: "truncate font-mono text-og-sm text-og-fg", children: tool.leaf })
2314
- ] }, tool.name)),
2315
- tools.length > 12 ? /* @__PURE__ */ jsxs4("li", { className: "text-og-xs text-og-fg-muted", children: [
2316
- "+",
2317
- tools.length - 12,
2318
- " ",
2319
- msg("timeline.toolRenderers.more")
2320
- ] }) : null
2321
- ] }) : tools && tools.length === 0 ? /* @__PURE__ */ jsx7(BodyNote, { children: msg("timeline.toolRenderers.noDeferredToolsMatchedThis") }) : null,
2322
- /* @__PURE__ */ jsx7(
2323
- PayloadBlock,
2324
- {
2325
- label: msg("timeline.toolRenderers.arguments"),
2326
- value: parseToolArgs(item.arguments)
2327
- }
2328
- ),
2329
- tools == null && outText ? /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.result"), value: outText }) : null
2330
- ]
2331
- }
2332
- );
2333
- }
2334
- function DocsSearchRenderer(props) {
2335
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullDocsSearchRenderer, { ...props });
2336
- }
2337
- function FullDocsSearchRenderer({ item }) {
2338
- const msg = useOpenGeniText();
2339
- const args = parseToolArgs(item.arguments);
2340
- const query = typeof args.query === "string" ? args.query.trim() : "";
2341
- const title = query ? msg("timeline.toolRenderers.searchTruncatepreview", {
2342
- truncatePreview: truncatePreview(query, 48)
2343
- }) : toolDisplayName(msg, item.name, item.display);
2344
- const running = item.status === "running";
2345
- if (running) {
2346
- return /* @__PURE__ */ jsx7(
2347
- ActivityDisclosure,
2348
- {
2349
- icon: /* @__PURE__ */ jsx7(FileSearchIcon2, { className: ICON_SIZE }),
2350
- iconTone: "running",
2351
- title,
2352
- running: true,
2353
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.searching") }),
2354
- children: /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args })
2355
- }
2356
- );
2357
- }
2358
- const { text: outText, isError } = unwrapMcpOutput(item.output);
2359
- if ((isError || item.status === "failed") && item.status !== "cancelled") {
2360
- return /* @__PURE__ */ jsxs4(
2361
- ActivityDisclosure,
2362
- {
2363
- icon: /* @__PURE__ */ jsx7(FileSearchIcon2, { className: ICON_SIZE }),
2364
- iconTone: "failed",
2365
- title,
2366
- failed: true,
2367
- preview: truncatePreview(outText, 80) || msg("timeline.toolRenderers.searchFailed"),
2368
- children: [
2369
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2370
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: outText, failed: true })
2371
- ]
2372
- }
2373
- );
2374
- }
2375
- const hits = parseSearchHits(msg, outText);
2376
- const preview = item.status === "cancelled" ? void 0 : hits ? hits.length === 0 ? msg("timeline.toolRenderers.noHits") : msg("counts.hits", { count: hits.length }) : msg("timeline.toolRenderers.done");
2377
- return /* @__PURE__ */ jsxs4(
2378
- ActivityDisclosure,
2379
- {
2380
- icon: /* @__PURE__ */ jsx7(FileSearchIcon2, { className: ICON_SIZE }),
2381
- iconTone: "muted",
2382
- title,
2383
- cancelled: item.status === "cancelled",
2384
- preview,
2385
- children: [
2386
- hits && hits.length > 0 ? /* @__PURE__ */ jsx7("ul", { className: "grid gap-2", children: hits.slice(0, 8).map((hit) => /* @__PURE__ */ jsxs4("li", { className: "min-w-0", children: [
2387
- /* @__PURE__ */ jsx7("div", { className: "truncate text-og-sm font-medium text-og-fg", children: hit.title }),
2388
- hit.snippet ? /* @__PURE__ */ jsx7("div", { className: "mt-0.5 line-clamp-2 text-og-xs text-og-fg-muted", children: hit.snippet }) : null
2389
- ] }, `${hit.title}\0${hit.snippet}`)) }) : null,
2390
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2391
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.result"), value: outText })
2392
- ]
2393
- }
2394
- );
2395
- }
2396
- function SetSessionTitleRenderer(props) {
2397
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullSetSessionTitleRenderer, { ...props });
2398
- }
2399
- function FullSetSessionTitleRenderer({ item }) {
2400
- const msg = useOpenGeniText();
2401
- const args = parseToolArgs(item.arguments);
2402
- const titleArg = typeof args.title === "string" ? args.title.trim() : "";
2403
- const display = toolDisplayName(msg, item.name, item.display);
2404
- const previewTitle = titleArg ? truncatePreview(titleArg, 72) : "";
2405
- const icon = /* @__PURE__ */ jsx7(MessagesSquareIcon2, { className: ICON_SIZE });
2406
- if (item.status === "running") {
2407
- return /* @__PURE__ */ jsx7(
2408
- ActivityDisclosure,
2409
- {
2410
- icon,
2411
- iconTone: "running",
2412
- title: display,
2413
- running: true,
2414
- preview: previewTitle ? /* @__PURE__ */ jsx7(RunningPreview, { children: previewTitle }) : /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.settingTitle") }),
2415
- children: /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args })
2416
- }
2417
- );
2418
- }
2419
- const { text: outText, isError } = unwrapMcpOutput(item.output);
2420
- if ((isError || item.status === "failed") && item.status !== "cancelled") {
2421
- return /* @__PURE__ */ jsxs4(
2422
- ActivityDisclosure,
2423
- {
2424
- icon,
2425
- iconTone: "failed",
2426
- title: display,
2427
- failed: true,
2428
- preview: truncatePreview(outText, 80) || msg("timeline.toolRenderers.renameFailed"),
2429
- children: [
2430
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2431
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: outText, failed: true })
2432
- ]
2433
- }
2434
- );
2435
- }
2436
- let settledTitle = previewTitle;
2437
- if (!settledTitle) {
2438
- const parsed = tryParseJson(outText);
2439
- if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
2440
- const fromResult = parsed.title;
2441
- if (typeof fromResult === "string" && fromResult.trim()) {
2442
- settledTitle = truncatePreview(fromResult.trim(), 72);
2443
- }
2444
- }
2445
- }
2446
- return /* @__PURE__ */ jsxs4(
2447
- ActivityDisclosure,
2448
- {
2449
- icon,
2450
- iconTone: "muted",
2451
- title: display,
2452
- cancelled: item.status === "cancelled",
2453
- preview: item.status === "cancelled" ? void 0 : settledTitle || void 0,
2454
- children: [
2455
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args }),
2456
- outText ? /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.result"), value: outText }) : null
2457
- ]
2458
- }
2459
- );
2460
- }
2461
- function MemoryProposeRenderer(props) {
2462
- return useToolDetails() === "plain" ? /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props }) : /* @__PURE__ */ jsx7(FullMemoryProposeRenderer, { ...props });
2463
- }
2464
- function FullMemoryProposeRenderer({ item }) {
2465
- const msg = useOpenGeniText();
2466
- const args = parseToolArgs(item.arguments);
2467
- const text = typeof args.text === "string" ? args.text.trim() : "";
2468
- const title = msg("timeline.toolRenderers.proposeMemory");
2469
- const running = item.status === "running";
2470
- if (running) {
2471
- return /* @__PURE__ */ jsx7(
2472
- ActivityDisclosure,
2473
- {
2474
- icon: /* @__PURE__ */ jsx7(BrainCircuitIcon3, { className: ICON_SIZE }),
2475
- iconTone: "running",
2476
- title,
2477
- running: true,
2478
- preview: /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.proposing") }),
2479
- children: /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.arguments"), value: args })
2480
- }
2481
- );
2482
- }
2483
- const { text: outText, isError } = unwrapMcpOutput(item.output);
2484
- if ((isError || item.status === "failed") && item.status !== "cancelled") {
2485
- return /* @__PURE__ */ jsxs4(
2486
- ActivityDisclosure,
2487
- {
2488
- icon: /* @__PURE__ */ jsx7(BrainCircuitIcon3, { className: ICON_SIZE }),
2489
- iconTone: "failed",
2490
- title,
2491
- failed: true,
2492
- preview: truncatePreview(outText, 80) || msg("timeline.toolRenderers.proposeFailed"),
2493
- children: [
2494
- text ? /* @__PURE__ */ jsx7(BodyNote, { children: text }) : null,
2495
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.error"), value: outText, failed: true })
2496
- ]
2497
- }
2498
- );
2499
- }
2500
- return /* @__PURE__ */ jsxs4(
2501
- ActivityDisclosure,
2502
- {
2503
- icon: /* @__PURE__ */ jsx7(BrainCircuitIcon3, { className: ICON_SIZE }),
2504
- iconTone: "muted",
2505
- title,
2506
- cancelled: item.status === "cancelled",
2507
- preview: text ? truncatePreview(text, 90) : msg("timeline.toolRenderers.done"),
2508
- children: [
2509
- text ? /* @__PURE__ */ jsx7(BodyNote, { children: text }) : null,
2510
- /* @__PURE__ */ jsx7(PayloadBlock, { label: msg("timeline.toolRenderers.result"), value: outText })
2511
- ]
2512
- }
2513
- );
2514
- }
2515
- function GenericRenderer(props) {
2516
- const reviewed = useHasToolReview(props.item.callId);
2517
- if (reviewed && props.item.callId) return /* @__PURE__ */ jsx7(ReviewedGenericRenderer, { ...props });
2518
- return /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props });
2519
- }
2520
- var REVIEW_CHIP = (msg) => ({
2521
- rejected: { tone: "interrupted", text: msg("timeline.chip.declined") },
2522
- cancelled: { tone: "interrupted", text: msg("timeline.toolRenderers.notRun") },
2523
- expired: { tone: "interrupted", text: msg("timeline.chip.expired") },
2524
- stale: { tone: "interrupted", text: msg("timeline.toolRenderers.notRun") },
2525
- revoked: { tone: "interrupted", text: msg("timeline.toolRenderers.notRun") },
2526
- blocked: { tone: "interrupted", text: msg("timeline.chip.blocked") },
2527
- unknown: { tone: "bad", text: msg("timeline.toolRenderers.outcomeUnknown") },
2528
- partial: { tone: "bad", text: msg("timeline.toolRenderers.partlyDone") },
2529
- failed: { tone: "bad", text: msg("timeline.chip.failed") }
2530
- });
2531
- function ReviewedGenericRenderer(props) {
2532
- const msg = useOpenGeniText();
2533
- const { item } = props;
2534
- const { review: savedReview, onViewDetails } = useRecordedToolReview(item.callId);
2535
- const review = useMemo3(
2536
- () => savedReview ? redactDeep(
2537
- savedReview,
2538
- signedValuesDeep([savedReview, item.arguments, item.output, item.raw])
2539
- ) : null,
2540
- [savedReview, item.arguments, item.output, item.raw]
2541
- );
2542
- const logo = useToolConnectorLogo(item.display);
2543
- if (!review) return /* @__PURE__ */ jsx7(UnreviewedGenericRenderer, { ...props });
2544
- const ReviewIcon = toolIcon(genericToolIconKind(item.name));
2545
- const icon = /* @__PURE__ */ jsx7(ConnectorLogoIcon, { src: logo, fallback: /* @__PURE__ */ jsx7(ReviewIcon, { className: ICON_SIZE }) });
2546
- const waiting = review.status === "pending";
2547
- const running = !waiting && (review.status === "executing" || review.status === "approved") && item.status === "running";
2548
- const { text: outText, isError } = unwrapMcpOutput(retainedToolResultImages(item.output).output);
2549
- const chip = REVIEW_CHIP(msg)[review.status] ?? (isError && !running && !waiting ? { tone: "bad", text: msg("timeline.chip.error") } : void 0);
2550
- return /* @__PURE__ */ jsxs4(
2551
- ActivityDisclosure,
2552
- {
2553
- icon,
2554
- iconTone: chip?.tone === "bad" ? "failed" : waiting ? "accent" : "muted",
2555
- title: toolActionTitle(msg, review.toolName) ?? review.title,
2556
- running,
2557
- chip,
2558
- preview: waiting ? msg("timeline.toolRenderers.waitingForYourApproval") : running ? /* @__PURE__ */ jsx7(RunningPreview, { children: msg("timeline.toolRenderers.running") }) : item.display?.connector ? (
2559
- // The logo names the connector; only a second account needs words.
2560
- item.display.accountLabel ?? void 0
2561
- ) : review.accountLabel ?? void 0,
2562
- children: [
2563
- /* @__PURE__ */ jsx7("div", { className: "py-1", "data-approval-id": item.callId, "data-review-origin": "history", children: /* @__PURE__ */ jsx7(
2564
- ToolActionReviewCard,
2565
- {
2566
- bare: true,
2567
- review: { ...review, availableActions: [] },
2568
- onViewDetails
2569
- }
2570
- ) }),
2571
- outText ? /* @__PURE__ */ jsx7(
2572
- PayloadBlock,
2573
- {
2574
- label: msg("timeline.toolRenderers.result"),
2575
- value: outText,
2576
- failed: isError
2577
- }
2578
- ) : null
2579
- ]
2580
- }
2581
- );
2582
- }
2583
- var LazyPaymentPageCard = lazy(
2584
- () => import("./payment-page-card-XSY5NO7D.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-XY6OZPHA.js"));
3089
- var LazyPlatformActivityRow = lazy2(() => import("./platform-activity-row-77WER5O3.js"));
3090
- function familyOf(item) {
3091
- if (item.kind === "tool-call") {
3092
- return item.name === "exec_command" || item.name === "write_stdin" ? "terminal" : item.name;
3093
- }
3094
- return item.kind;
3095
- }
3096
- function ActivityRail({
3097
- items,
3098
- startupActive,
3099
- toolRegistry = defaultToolRegistry,
3100
- onOpenSession,
3101
- onMemoryClick,
3102
- loadRetainedScreenshot,
3103
- loadRetainedArtifact,
3104
- bare,
3105
- className
3106
- }) {
3107
- const msg = useOpenGeniText();
3108
- const debug = useStartupDetails();
3109
- const reducedMotion = useReducedMotion();
3110
- const [detailsOpen, setDetailsOpen] = useState10(false);
3111
- const phases = items.filter((item) => item.kind === "startup-phase");
3112
- const dispatch = phases.find((item) => item.dispatchWait !== void 0);
3113
- const hasWork = items.some(
3114
- (item) => item.kind !== "startup-phase" && (item.kind !== "reasoning" || item.text.trim().length > 0)
3115
- );
3116
- const interrupted = phases.some(
3117
- (item) => item.status === "failed" || item.status === "cancelled"
3118
- );
3119
- const providerResponded = phases.some(
3120
- (item) => item.phase === "provider_first_byte" && item.status === "complete"
3121
- );
3122
- const responsePending = phases.some((item) => item.phase === "provider_first_byte");
3123
- const loading = !hasWork && !interrupted && (startupActive ?? (!providerResponded && phases.some((item) => item.status === "running")));
3124
- const visibleItems = debug || detailsOpen ? items : items.filter(
3125
- (item) => item.kind === "startup-phase" ? item.status === "failed" || item.status === "cancelled" : item.kind !== "reasoning" || item.text.trim().length > 0
3126
- );
3127
- const startedAt = phases.reduce((first, item) => {
3128
- const start = item.loadingStartedAt ?? item.startedAt;
3129
- return start < first ? start : first;
3130
- }, phases[0]?.startedAt ?? "");
3131
- const enterMounted = useEntranceAnimation();
3132
- const enterLive = useEntranceAnimationLive();
3133
- const seenIds = useSeenActivityIds();
3134
- const enter = seenIds ? enterLive : enterMounted;
3135
- const previousIdsRef = useRef2(null);
3136
- const enteringIds = /* @__PURE__ */ new Set();
3137
- if (enter) {
3138
- for (const item of items) {
3139
- if (seenIds) {
3140
- if (!seenIds.has(item.id)) {
3141
- enteringIds.add(item.id);
3142
- }
3143
- } else if (previousIdsRef.current !== null && !previousIdsRef.current.has(item.id)) {
3144
- enteringIds.add(item.id);
3145
- }
3146
- }
3147
- }
3148
- useLayoutEffect(() => {
3149
- previousIdsRef.current = new Set(items.map((item) => item.id));
3150
- if (seenIds) {
3151
- for (const item of items) {
3152
- seenIds.add(item.id);
3153
- }
3154
- }
3155
- });
3156
- return /* @__PURE__ */ jsxs8(
3157
- "div",
3158
- {
3159
- className: cn(
3160
- // Rows sit TIGHT by default (gap-0.5) so a same-family run reads as one
3161
- // calm cluster; a family change opens real breathing room (mt-3) below,
3162
- // so a long rail reads as a few clusters, not a metronome of rows.
3163
- "relative flex flex-col gap-0.5",
3164
- !bare && "border-l-2 border-og-border pl-3 sm:pl-4",
3165
- // Whole-rail enter: standalone rails only (no seen-id map). Inside
3166
- // MessageTimeline, unknown ids take per-row enter — remounts stay quiet.
3167
- !bare && enter && !seenIds && previousIdsRef.current === null && "animate-og-enter",
3168
- className
3169
- ),
3170
- children: [
3171
- /* @__PURE__ */ jsx11(AnimatePresence, { initial: false, children: loading && !debug ? /* @__PURE__ */ jsx11(
3172
- motion.div,
3173
- {
3174
- initial: { opacity: 0 },
3175
- animate: { opacity: 1, height: "auto" },
3176
- exit: {
3177
- opacity: 0,
3178
- height: 0,
3179
- pointerEvents: "none"
3180
- },
3181
- transition: {
3182
- height: { duration: reducedMotion ? 0 : 0.32, ease: [0.22, 1, 0.36, 1] },
3183
- opacity: { duration: reducedMotion ? 0 : 0.16 }
3184
- },
3185
- style: { overflow: "hidden" },
3186
- children: /* @__PURE__ */ jsx11(
3187
- GenieLoading,
3188
- {
3189
- startedAt,
3190
- notice: dispatch?.dispatchWait?.lastError ? msg("timeline.activityRail.unableToStartYetYour") : void 0,
3191
- phase: responsePending ? "waiting" : "preparing",
3192
- detailsOpen,
3193
- onShowDetails: () => setDetailsOpen((open) => !open)
3194
- }
3195
- )
3196
- },
3197
- "startup"
3198
- ) : null }),
3199
- detailsOpen && !debug && !loading ? /* @__PURE__ */ jsx11(
3200
- "button",
3201
- {
3202
- type: "button",
3203
- className: "og-genie-details self-start",
3204
- onClick: () => setDetailsOpen(false),
3205
- children: msg("timeline.activityRail.hideStartupDetails")
3206
- }
3207
- ) : null,
3208
- dispatch && (detailsOpen || debug) ? /* @__PURE__ */ jsx11(StartupDispatchDetails, { wait: dispatch.dispatchWait ?? null }) : null,
3209
- visibleItems.map((item, index) => {
3210
- const newFamily = index > 0 && familyOf(item) !== familyOf(visibleItems[index - 1]);
3211
- const row = renderActivity(
3212
- msg,
3213
- item,
3214
- toolRegistry,
3215
- onOpenSession,
3216
- onMemoryClick,
3217
- loadRetainedScreenshot,
3218
- loadRetainedArtifact
3219
- );
3220
- return /* @__PURE__ */ jsx11(
3221
- "div",
3222
- {
3223
- "data-og-timeline-row-anchor": "",
3224
- "data-og-item": item.id,
3225
- "data-og-annotation-source-key": item.kind === "tool-call" ? item.annotationSource?.eventId : void 0,
3226
- className: cn(newFamily && "mt-3", enteringIds.has(item.id) && "animate-og-row-enter"),
3227
- children: row
3228
- },
3229
- item.id
3230
- );
3231
- })
3232
- ]
3233
- }
3234
- );
3235
- }
3236
- var ActivityNoteTextContext = createContext7(null);
3237
- function ActivityNoteRow({ item }) {
3238
- const renderText = useContext9(ActivityNoteTextContext);
3239
- if (!item.text.trim()) return null;
3240
- return /* @__PURE__ */ jsxs8("div", { className: "flex items-start gap-2 px-1.5 py-1.5", "data-og-activity-note": "", children: [
3241
- /* @__PURE__ */ jsx11("span", { className: "size-3.5 shrink-0", "aria-hidden": true }),
3242
- /* @__PURE__ */ jsx11(MessageSquareTextIcon, { "aria-hidden": true, className: "mt-1 size-3.5 shrink-0 text-og-fg-subtle" }),
3243
- /* @__PURE__ */ jsx11(
3244
- "div",
3245
- {
3246
- className: "min-w-0 flex-1 text-og-sm text-og-fg-muted",
3247
- "data-og-search-item": item.id,
3248
- "data-og-annotation-source-key": item.annotationSource?.eventId,
3249
- children: renderText ? renderText(item.text, item) : /* @__PURE__ */ jsx11(Markdown, { softLineBreaks: true, streaming: item.streaming, children: item.text })
3250
- }
3251
- )
3252
- ] });
3253
- }
3254
- function assertNever(item) {
3255
- throw new Error(`ActivityRail: unhandled activity item ${JSON.stringify(item)}`);
3256
- }
3257
- function renderActivity(msg, item, toolRegistry, onOpenSession, onMemoryClick, loadRetainedScreenshot, loadRetainedArtifact) {
3258
- switch (item.kind) {
3259
- case "reasoning":
3260
- case "sandbox":
3261
- case "startup-phase":
3262
- return /* @__PURE__ */ jsx11(LazyPart, { fallback: null, children: /* @__PURE__ */ jsx11(
3263
- LazyPlatformActivityRow,
3264
- {
3265
- item,
3266
- d: ActivityDisclosure,
3267
- p: PayloadBlock,
3268
- t: (name) => toolDisplayName(msg, name),
3269
- b: BotIcon2,
3270
- m: Markdown,
3271
- j: rowJsx,
3272
- s: rowJsxs
3273
- }
3274
- ) });
3275
- case "tool-call": {
3276
- const shown = invokedToolCall(redactToolCall(item));
3277
- const Renderer = toolRegistry.resolve(shown);
3278
- const outputPreview = item.outputPreview ?? null;
3279
- const exactFirst = outputPreview !== null && !rendersToolOutputPreview(Renderer, shown);
3280
- const Shown = exactFirst && (outputPreview.state === "error" || !outputPreview.load) ? toolRegistry.fallback : Renderer;
3281
- return /* @__PURE__ */ jsx11(ToolRowBoundary, { name: toolDisplayName(msg, shown.name), resetKeys: [item.status, Shown], children: /* @__PURE__ */ jsx11(ToolCallTruncationProvider, { value: item.truncation ?? null, children: /* @__PURE__ */ jsx11(ToolOutputPreviewProvider, { value: outputPreview, children: exactFirst && outputPreview.load && outputPreview.state !== "error" ? /* @__PURE__ */ jsx11(ToolOutputExactRow, { item: shown, preview: outputPreview }) : /* @__PURE__ */ jsx11(
3282
- Shown,
3283
- {
3284
- item: shown,
3285
- loadRetainedScreenshot,
3286
- loadRetainedArtifact
3287
- }
3288
- ) }) }) });
3289
- }
3290
- case "worker":
3291
- return /* @__PURE__ */ jsx11(WorkerRow, { item, onOpenSession });
3292
- case "knowledge":
3293
- return /* @__PURE__ */ jsx11(
3294
- KnowledgeReceiptRow,
3295
- {
3296
- outcome: item.outcome,
3297
- entryId: item.entryId,
3298
- fileId: item.fileId,
3299
- title: item.filename,
3300
- source: Boolean(item.fileId)
3301
- }
3302
- );
3303
- case "memory":
3304
- return /* @__PURE__ */ jsx11(MemoryRow, { item, onMemoryClick });
3305
- case "agent-message":
3306
- return /* @__PURE__ */ jsx11(ActivityNoteRow, { item });
3307
- case "fleet-decision":
3308
- return /* @__PURE__ */ jsx11(LazyPart, { fallback: null, children: /* @__PURE__ */ jsx11(
3309
- LazyFleetDecisionRow,
3310
- {
3311
- item,
3312
- d: ActivityDisclosure,
3313
- b: BodyNote,
3314
- j: rowJsx,
3315
- s: rowJsxs
3316
- }
3317
- ) });
3318
- default:
3319
- return assertNever(item);
3320
- }
3321
- }
3322
- function ToolOutputExactRow({
3323
- item,
3324
- preview
3325
- }) {
3326
- const msg = useOpenGeniText();
3327
- const pending = preview.state === "preview";
3328
- const load = preview.load;
3329
- useEffect6(() => {
3330
- if (pending) load?.();
3331
- }, [pending, load]);
3332
- return /* @__PURE__ */ jsx11("div", { "data-og-tool-output-loading": "", "aria-busy": "true", children: /* @__PURE__ */ jsx11(
3333
- ActivityDisclosure,
3334
- {
3335
- icon: /* @__PURE__ */ jsx11(ToolKindIcon, { kind: genericToolIconKind(item.name), className: "size-3.5" }),
3336
- title: toolDisplayName(msg, item.name, item.display),
3337
- preview: msg("timeline.toolRenderers.loadingOutput"),
3338
- expandable: false
3339
- }
3340
- ) });
3341
- }
3342
- var MEMORY_KIND_LABEL = (msg) => ({
3343
- preference: msg("timeline.activityRail.preference"),
3344
- semantic: msg("timeline.activityRail.fact"),
3345
- procedural: msg("timeline.activityRail.procedure"),
3346
- decision: msg("timeline.activityRail.decision"),
3347
- episodic: msg("timeline.activityRail.history")
3348
- });
3349
- function MemoryRow({
3350
- item,
3351
- onMemoryClick
3352
- }) {
3353
- const msg = useOpenGeniText();
3354
- const corrected = item.variant === "corrected";
3355
- const kindLabel = MEMORY_KIND_LABEL(msg)[item.memoryKind];
3356
- const superseded = corrected && Boolean(item.replacementPreview);
3357
- const targetId = corrected ? item.replacementMemoryId ?? item.memoryId : item.memoryId;
3358
- const deepLink = Boolean(onMemoryClick);
3359
- return /* @__PURE__ */ jsxs8(
3360
- ActivityDisclosure,
3361
- {
3362
- icon: /* @__PURE__ */ jsx11(BrainCircuitIcon4, { className: "size-3.5" }),
3363
- iconTone: "muted",
3364
- title: /* @__PURE__ */ jsxs8("span", { className: "inline-flex min-w-0 items-center gap-2", children: [
3365
- /* @__PURE__ */ jsx11("span", { className: "shrink-0", children: corrected ? msg("timeline.activityRail.updatedMemory") : msg("timeline.activityRail.savedToMemory") }),
3366
- kindLabel ? /* @__PURE__ */ jsx11("span", { className: "shrink-0 rounded-og-xs bg-og-surface-2 px-1.5 py-px text-og-xs font-normal leading-tight text-og-fg-subtle", children: kindLabel }) : null
3367
- ] }),
3368
- preview: superseded ? item.replacementPreview : item.preview,
3369
- children: [
3370
- superseded ? (
3371
- // The correction as a before → after: the old memory struck through and
3372
- // dimmed, the new text in the ordinary body weight below it.
3373
- /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-1.5", children: [
3374
- /* @__PURE__ */ jsx11("p", { className: "whitespace-pre-wrap text-og-sm leading-6 text-og-fg-subtle line-through", children: item.preview }),
3375
- /* @__PURE__ */ jsx11("p", { className: "whitespace-pre-wrap text-og-base leading-6 text-og-fg-muted", children: item.replacementPreview })
3376
- ] })
3377
- ) : corrected && item.action === "updated" ? (
3378
- // Edited in place, no replacement record: the memory is still live, so
3379
- // show its current text — NOT the archived treatment.
3380
- /* @__PURE__ */ jsxs8(Fragment5, { children: [
3381
- /* @__PURE__ */ jsx11("p", { className: "whitespace-pre-wrap text-og-base leading-6 text-og-fg-muted", children: item.preview }),
3382
- /* @__PURE__ */ jsx11(BodyNote, { tone: "muted", children: msg("timeline.activityRail.updatedInPlace") })
3383
- ] })
3384
- ) : corrected ? (
3385
- // A correction with no replacement (and not an in-place update) archived the record.
3386
- /* @__PURE__ */ jsx11(BodyNote, { tone: "muted", children: msg("timeline.activityRail.archived") })
3387
- ) : /* @__PURE__ */ jsx11("p", { className: "whitespace-pre-wrap text-og-base leading-6 text-og-fg-muted", children: item.preview }),
3388
- item.deduped ? /* @__PURE__ */ jsx11(BodyNote, { tone: "muted", children: msg("timeline.activityRail.mergedIntoAnExistingMemory") }) : null,
3389
- deepLink ? /* @__PURE__ */ jsxs8(
3390
- "button",
3391
- {
3392
- type: "button",
3393
- onClick: () => onMemoryClick?.(targetId),
3394
- className: cn(
3395
- "group/memlink -mx-1 inline-flex w-fit items-center gap-1 rounded-og-sm px-1 py-0.5 text-left text-og-sm text-og-fg-subtle",
3396
- "outline-hidden transition-colors duration-150 hover:text-og-fg focus-visible:ring-2 focus-visible:ring-og-accent"
3397
- ),
3398
- children: [
3399
- msg("timeline.activityRail.viewInMemory"),
3400
- /* @__PURE__ */ jsx11(ArrowRightIcon, { className: "size-3.5 transition-transform duration-150 group-hover/memlink:translate-x-0.5" })
3401
- ]
3402
- }
3403
- ) : null
3404
- ]
3405
- }
3406
- );
3407
- }
3408
- function WorkerRow({
3409
- item,
3410
- onOpenSession
3411
- }) {
3412
- const msg = useOpenGeniText();
3413
- const identity = useAgentIdentity();
3414
- const running = item.status === "running";
3415
- const failed = item.status === "failed";
3416
- const cancelled = item.status === "cancelled";
3417
- const sessionId = item.workerSessionId;
3418
- const name = identity.titleFor(sessionId) ?? (item.action === "spawn" ? item.title : null);
3419
- const title = workerRowTitleParts(msg, item, name);
3420
- const prompt = item.prompt?.trim() ? item.prompt.trim() : null;
3421
- const failure = failed ? item.failure : null;
3422
- const hasBody = Boolean(prompt) || Boolean(failure);
3423
- return /* @__PURE__ */ jsx11(
3424
- AgentRow,
3425
- {
3426
- icon: item.action === "spawn" ? /* @__PURE__ */ jsx11(BotIcon2, {}) : /* @__PURE__ */ jsx11(SendIcon, {}),
3427
- title,
3428
- preview: failure ? failure.message : prompt ? truncate(prompt.replace(/\s+/g, " "), 240) : null,
3429
- sessionId: cancelled ? null : sessionId,
3430
- onOpenSession: onOpenSession ?? identity.onOpenSession,
3431
- running,
3432
- failed,
3433
- cancelled,
3434
- children: hasBody ? /* @__PURE__ */ jsxs8(Fragment5, { children: [
3435
- prompt ? /* @__PURE__ */ jsx11(
3436
- AgentRowSection,
3437
- {
3438
- label: item.action === "spawn" ? msg("timeline.activityRail.brief") : msg("timeline.activityRail.message"),
3439
- children: prompt
3440
- }
3441
- ) : null,
3442
- failure ? /* @__PURE__ */ jsx11(AgentRowSection, { label: failure.code, muted: true, children: failure.message }) : null
3443
- ] }) : void 0
3444
- }
3445
- );
3446
- }
3447
- function ToolRowRenderError({ name }) {
3448
- const t = useOpenGeniText();
3449
- return /* @__PURE__ */ jsx11(
3450
- "div",
3451
- {
3452
- "data-testid": "tool-row-render-error",
3453
- role: "status",
3454
- className: "px-1.5 py-1.5 text-og-menu text-og-fg-subtle",
3455
- children: t("timeline.activityRail.nameCouldNotBeDisplayed", { name })
3456
- }
3457
- );
3458
- }
3459
- var ToolRowBoundary = class extends Component {
3460
- state = { failed: false, notLoaded: false, resetKeys: this.props.resetKeys };
3461
- static getDerivedStateFromError(error) {
3462
- return { failed: true, notLoaded: isChunkLoadError(error) };
3463
- }
3464
- /** A new status or renderer for the row gets a fresh attempt. */
3465
- static getDerivedStateFromProps(props, state) {
3466
- const same = props.resetKeys.length === state.resetKeys.length && props.resetKeys.every((key, index) => Object.is(key, state.resetKeys[index]));
3467
- return same ? null : { failed: false, notLoaded: false, resetKeys: props.resetKeys };
3468
- }
3469
- render() {
3470
- if (!this.state.failed) return this.props.children;
3471
- return this.state.notLoaded ? /* @__PURE__ */ jsx11(LoadFailureNotice, {}) : /* @__PURE__ */ jsx11(ToolRowRenderError, { name: this.props.name });
3472
- }
3473
- };
3474
-
3475
- // src/timeline/turn-summary.tsx
3476
- import { ChevronRightIcon as ChevronRightIcon3, CircleSlashIcon as CircleSlashIcon2, ShrinkIcon, TriangleAlertIcon } from "lucide-react";
3477
- import {
3478
- Component as Component2,
3479
- createContext as createContext9,
3480
- useContext as useContext11,
3481
- useEffect as useEffect7,
3482
- useLayoutEffect as useLayoutEffect2,
3483
- useMemo as useMemo4,
3484
- useRef as useRef3,
3485
- useState as useState11
3486
- } from "react";
3487
- import { Collapsible } from "radix-ui";
3488
-
3489
- // src/timeline/fold-memory.ts
3490
- import { createContext as createContext8, useContext as useContext10 } from "react";
3491
- var FoldMemoryContext = createContext8(null);
3492
- var FoldMemoryProvider = FoldMemoryContext.Provider;
3493
- function useFoldMemory() {
3494
- return useContext10(FoldMemoryContext);
3495
- }
3496
- function inheritFoldRestingState(memory, targetKey, sourceKeys) {
3497
- if (memory.has(targetKey) || sourceKeys.length !== 1) {
3498
- return;
3499
- }
3500
- const state = memory.get(sourceKeys[0]);
3501
- if (state !== void 0) {
3502
- memory.set(targetKey, state);
3503
- }
3504
- }
3505
-
3506
- // src/timeline/turn-summary.tsx
3507
- import { Fragment as Fragment6, jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
3508
- var TurnSettleChromeContext = createContext9(false);
3509
- function useTurnSettleOpen() {
3510
- return useContext11(TurnSettleChromeContext);
3511
- }
3512
- var SETTLE_FOLD_BEAT_MS = 1100 * MOTION_INSPECT_SCALE;
3513
- var SETTLE_COLLAPSE_MS = 820 * MOTION_INSPECT_SCALE;
3514
- var DISCLOSE_MS = 120 * MOTION_INSPECT_SCALE;
3515
- function TurnSummary({
3516
- items,
3517
- outcome,
3518
- failureText,
3519
- failureDetail,
3520
- durationMs,
3521
- defaultOpen,
3522
- liveHeader,
3523
- bare,
3524
- facets: facetConfiguration,
3525
- settleFold,
3526
- foldKey,
3527
- copyText,
3528
- contextCompactionCount,
3529
- status,
3530
- renderLiveMark,
3531
- expandable = true,
3532
- unloadedSteps,
3533
- onOpenStateChange,
3534
- children
3535
- }) {
3536
- const t = useOpenGeniText();
3537
- const forcedDefaultOpen = useForcedDefaultOpen();
3538
- const searchReveal = useTimelineSearchReveal();
3539
- const foldMemory = useFoldMemory();
3540
- const remembered = foldKey !== void 0 ? foldMemory?.get(foldKey) : void 0;
3541
- const restingOpen = remembered === "closed" ? false : remembered === "open" ? true : defaultOpen ?? forcedDefaultOpen ?? false;
3542
- const initialSettle = Boolean(settleFold) && !restingOpen && remembered === void 0;
3543
- const [settling, setSettling] = useState11(initialSettle);
3544
- const [openState, setOpen] = useState11(initialSettle ? true : restingOpen);
3545
- const open = expandable && openState;
3546
- const reportOpen = useRef3(onOpenStateChange);
3547
- reportOpen.current = onOpenStateChange;
3548
- useLayoutEffect2(() => {
3549
- reportOpen.current?.(open);
3550
- }, [open]);
3551
- const readerOwnsOpen = useRef3(remembered !== void 0);
3552
- useEffect7(() => {
3553
- if (status && defaultOpen && remembered === void 0 && !readerOwnsOpen.current) setOpen(true);
3554
- }, [status, defaultOpen, remembered]);
3555
- const [settlePhase, setSettlePhase] = useState11(initialSettle);
3556
- const [nestSuppressLatch, setNestSuppressLatch] = useState11(initialSettle);
3557
- const [expandReady, setExpandReady] = useState11(!initialSettle);
3558
- const settleTimerRef = useRef3(null);
3559
- const settleCloseDoneRef = useRef3(null);
3560
- const nestLatchClearRef = useRef3(null);
3561
- const settleFoldSeenRef = useRef3(Boolean(settleFold));
3562
- const settleArmedRef = useRef3(false);
3563
- const clearNestLatchTimer = () => {
3564
- if (nestLatchClearRef.current !== null) {
3565
- clearTimeout(nestLatchClearRef.current);
3566
- nestLatchClearRef.current = null;
3567
- }
3568
- };
3569
- const clearSettleTimers = () => {
3570
- if (settleTimerRef.current !== null) {
3571
- clearTimeout(settleTimerRef.current);
3572
- settleTimerRef.current = null;
3573
- }
3574
- if (settleCloseDoneRef.current !== null) {
3575
- clearTimeout(settleCloseDoneRef.current);
3576
- settleCloseDoneRef.current = null;
3577
- }
3578
- clearNestLatchTimer();
3579
- };
3580
- const rememberResting = (state) => {
3581
- if (foldKey !== void 0 && foldMemory) {
3582
- foldMemory.set(foldKey, state);
3583
- }
3584
- };
3585
- const armSettleCollapse = () => {
3586
- if (settleArmedRef.current) {
3587
- return;
3588
- }
3589
- settleArmedRef.current = true;
3590
- setSettling(true);
3591
- setSettlePhase(true);
3592
- setNestSuppressLatch(true);
3593
- setExpandReady(false);
3594
- setOpen(true);
3595
- clearSettleTimers();
3596
- settleTimerRef.current = setTimeout(() => {
3597
- settleTimerRef.current = null;
3598
- setExpandReady(true);
3599
- setOpen(false);
3600
- rememberResting("closed");
3601
- settleCloseDoneRef.current = setTimeout(() => {
3602
- settleCloseDoneRef.current = null;
3603
- settleArmedRef.current = false;
3604
- setSettlePhase(false);
3605
- setSettling(false);
3606
- setNestSuppressLatch(false);
3607
- }, SETTLE_COLLAPSE_MS);
3608
- }, SETTLE_FOLD_BEAT_MS);
3609
- };
3610
- const mountSettleRef = useRef3(initialSettle);
3611
- useEffect7(() => {
3612
- if (mountSettleRef.current) {
3613
- armSettleCollapse();
3614
- }
3615
- return () => {
3616
- clearSettleTimers();
3617
- settleArmedRef.current = false;
3618
- };
3619
- }, []);
3620
- useEffect7(() => {
3621
- const was = settleFoldSeenRef.current;
3622
- settleFoldSeenRef.current = Boolean(settleFold);
3623
- if (!was && settleFold) {
3624
- if (foldKey !== void 0 && foldMemory?.get(foldKey) !== void 0) {
3625
- return;
3626
- }
3627
- armSettleCollapse();
3628
- }
3629
- }, [settleFold]);
3630
- useEffect7(() => {
3631
- if (!searchReveal) return;
3632
- clearSettleTimers();
3633
- settleArmedRef.current = false;
3634
- setSettling(false);
3635
- setSettlePhase(false);
3636
- setNestSuppressLatch(false);
3637
- setOpen(true);
3638
- rememberResting("open");
3639
- }, [searchReveal]);
3640
- const onOpenChange = (next) => {
3641
- readerOwnsOpen.current = true;
3642
- const wasNestFlat = settling || settlePhase || nestSuppressLatch;
3643
- clearSettleTimers();
3644
- settleArmedRef.current = false;
3645
- rememberResting(next ? "open" : "closed");
3646
- setExpandReady(true);
3647
- setSettlePhase(false);
3648
- setSettling(false);
3649
- if (next) {
3650
- setNestSuppressLatch(false);
3651
- setOpen(true);
3652
- return;
3653
- }
3654
- setOpen(false);
3655
- if (wasNestFlat) {
3656
- setNestSuppressLatch(true);
3657
- nestLatchClearRef.current = setTimeout(() => {
3658
- nestLatchClearRef.current = null;
3659
- setNestSuppressLatch(false);
3660
- }, DISCLOSE_MS);
3661
- } else {
3662
- setNestSuppressLatch(false);
3663
- }
3664
- };
3665
- const enter = useEntranceAnimation();
3666
- const [allowEnterAnimation] = useState11(
3667
- () => Boolean(enter && !bare && !initialSettle && !restingOpen)
3668
- );
3669
- const context = useMemo4(
3670
- () => createTurnSummaryContext(
3671
- t,
3672
- items,
3673
- outcome,
3674
- failureText,
3675
- settling || settlePhase ? void 0 : durationMs,
3676
- contextCompactionCount ?? 0,
3677
- unloadedSteps ?? false
3678
- ),
3679
- [
3680
- items,
3681
- outcome,
3682
- failureText,
3683
- durationMs,
3684
- settling,
3685
- settlePhase,
3686
- contextCompactionCount,
3687
- unloadedSteps,
3688
- t
3689
- ]
3690
- );
3691
- const facetDefinitions = useMemo4(
3692
- () => resolveTurnSummaryFacets(facetConfiguration),
3693
- [facetConfiguration]
3694
- );
3695
- const statusKind = status?.kind;
3696
- const facets = useMemo4(
3697
- () => selectTurnSummaryFacets(facetDefinitions, context, statusKind),
3698
- [context, facetDefinitions, statusKind]
3699
- );
3700
- const failure = outcome === "failed" ? failureText?.trim() || null : null;
3701
- const failedQuietly = outcome === "failed" && !failure && !bare;
3702
- const liveShell = outcome === void 0 && open && !settlePhase && !bare;
3703
- const settleChrome = settling || settlePhase || nestSuppressLatch;
3704
- const statusLine = status ? turnSummaryStatusLine(t, status) : null;
3705
- const liveMarkState = renderLiveMark ? turnSummaryLiveMarkState(status) : null;
3706
- const copyable = Boolean(
3707
- copyText && copyText.trim().length > 0 && !bare && !liveShell && !open && !settlePhase
3708
- );
3709
- const headerClassName = cn(
3710
- // The section, not the viewport, bounds this sticky row. Content
3711
- // is a sibling: its disclosure overflow never traps the header.
3712
- // Nested rail folds must never stack additional sticky headers.
3713
- !bare && open && "sticky top-[var(--og-work-header-top,0px)] z-10 bg-og-bg",
3714
- settling && expandable && "animate-og-settle-chip",
3715
- // Top-level turn fold and (when used) nested cluster folds render as
3716
- // FLAT rail rows — chevron + glyph + facets on the page background, no
3717
- // border, no fill. Only a hover tint hints the row is expandable, so a
3718
- // collapsed turn never reads as a boxed card. The top-level row is a
3719
- // touch larger (base text, size-5 glyph, wider gap) so it still reads
3720
- // as a turn landmark above any nested cluster rows it groups.
3721
- "group flex w-full items-center rounded-og-sm text-left transition-colors",
3722
- // A folded turn is a touch target on coarse pointers: grow the row so it
3723
- // clears the 44px minimum without disturbing the calm desktop rhythm.
3724
- expandable && "pointer-coarse:min-h-11 pointer-coarse:py-2.5",
3725
- bare ? "gap-2 px-1.5 py-1.5 text-og-sm text-og-fg-muted" : "-mx-2 gap-2.5 px-2 py-1.5 text-og-base text-og-fg-muted",
3726
- // A failed fold keeps its red accent (glyph + inline reason below) and a
3727
- // faint red hover wash so attention still lands there; every other
3728
- // outcome gets the neutral surface hover. A row with nothing to reveal
3729
- // is not a control and gets no hover.
3730
- !expandable ? void 0 : outcome === "failed" ? "hover:bg-og-status-failed/[0.06] hover:text-og-fg" : "hover:bg-og-surface-1 hover:text-og-fg",
3731
- liveShell && "text-og-fg-subtle",
3732
- // Phones hide the hint, so keep the copy control clear of the separator.
3733
- status && copyable && "max-sm:pr-10"
3734
- );
3735
- const headerContent = /* @__PURE__ */ jsxs9(Fragment6, { children: [
3736
- expandable ? /* @__PURE__ */ jsx12(
3737
- ChevronRightIcon3,
3738
- {
3739
- className: cn(
3740
- "size-3.5 shrink-0 text-og-fg-subtle transition-transform ease-og-in-out group-data-[state=open]:rotate-90",
3741
- settlePhase ? "duration-[var(--_og-duration-disclose-settle)]" : "duration-[var(--_og-duration-disclose)]"
3742
- )
3743
- }
3744
- ) : /* @__PURE__ */ jsx12("span", { "aria-hidden": true, className: "size-3.5 shrink-0" }),
3745
- renderLiveMark && liveMarkState ? /* @__PURE__ */ jsx12(
3746
- "span",
3747
- {
3748
- "aria-hidden": true,
3749
- "data-og-live-mark": liveMarkState.kind,
3750
- className: "inline-flex h-5 shrink-0 items-center",
3751
- children: renderLiveMark(liveMarkState)
3752
- }
3753
- ) : null,
3754
- status || outcome === "complete" || !outcome && (liveHeader || context.settled) ? null : /* @__PURE__ */ jsx12(
3755
- "span",
3756
- {
3757
- className: cn(
3758
- "inline-flex shrink-0 items-center justify-center",
3759
- bare ? "size-3.5" : "size-5",
3760
- outcome === "failed" ? "text-og-status-failed" : "text-og-fg-subtle"
3761
- ),
3762
- children: outcome === "failed" ? /* @__PURE__ */ jsx12(TriangleAlertIcon, { className: "size-3" }) : outcome === "cancelled" ? /* @__PURE__ */ jsx12(CircleSlashIcon2, { className: "size-3" }) : /* @__PURE__ */ jsx12("span", { className: "size-1.5 animate-og-pulse rounded-full bg-og-fg-subtle" })
3763
- }
3764
- ),
3765
- /* @__PURE__ */ jsxs9(
3766
- "span",
3767
- {
3768
- className: cn(
3769
- "min-w-0 truncate",
3770
- status?.kind === "worked" ? "shrink" : "flex-1",
3771
- bare ? "text-og-sm" : "text-og-fg-muted"
3772
- ),
3773
- children: [
3774
- statusLine,
3775
- liveHeader && !open && !status ? liveHeader : !statusLine && facets.length === 0 && !failure && !failedQuietly && outcome !== "cancelled" ? turnSummaryFallbackLabel(t, context.items, unloadedSteps) : facets.map(({ facet, result }, index) => /* @__PURE__ */ jsx12(FacetRenderBoundary, { children: /* @__PURE__ */ jsxs9(Fragment6, { children: [
3776
- index > 0 || statusLine ? " \xB7 " : null,
3777
- /* @__PURE__ */ jsxs9("span", { "aria-label": result.ariaLabel, title: result.title, children: [
3778
- result.icon ? /* @__PURE__ */ jsx12("span", { "aria-hidden": true, className: "mr-1 inline-flex align-[-0.125em]", children: result.icon }) : null,
3779
- result.content
3780
- ] })
3781
- ] }) }, facet.id)),
3782
- failure ? /* @__PURE__ */ jsxs9("span", { className: "text-og-status-failed", title: failureDetail, children: [
3783
- " ",
3784
- "\xB7 ",
3785
- failure
3786
- ] }) : null,
3787
- failedQuietly ? /* @__PURE__ */ jsxs9("span", { className: "text-og-status-failed", children: [
3788
- statusLine || facets.length > 0 ? " \xB7 " : null,
3789
- t("timeline.turnSummary.failed")
3790
- ] }) : null,
3791
- outcome === "cancelled" ? /* @__PURE__ */ jsxs9("span", { className: "text-og-fg-subtle", children: [
3792
- " ",
3793
- t("timeline.turnSummary.interrupted")
3794
- ] }) : null
3795
- ]
3796
- }
3797
- ),
3798
- status?.kind === "worked" ? /* @__PURE__ */ jsx12("span", { "aria-hidden": true, className: "ml-1 h-px min-w-0 flex-1 bg-og-border" }) : null,
3799
- status && status.kind !== "worked" && (contextCompactionCount ?? 0) > 0 ? /* @__PURE__ */ jsx12(
3800
- ShrinkIcon,
3801
- {
3802
- className: "size-3.5 shrink-0",
3803
- "aria-label": t("timeline.turnSummary.contextCompactedExpandForDetails")
3804
- }
3805
- ) : null
3806
- ] });
3807
- return /* @__PURE__ */ jsx12(TurnSettleChromeContext.Provider, { value: settleChrome, children: /* @__PURE__ */ jsxs9("div", { className: cn(copyable && "group/copy relative"), children: [
3808
- /* @__PURE__ */ jsxs9(
3809
- Collapsible.Root,
3810
- {
3811
- "data-og-work-section": bare ? void 0 : "",
3812
- open,
3813
- onOpenChange,
3814
- className: allowEnterAnimation && !liveShell ? "animate-og-enter" : void 0,
3815
- children: [
3816
- expandable ? /* @__PURE__ */ jsx12(
3817
- Collapsible.Trigger,
3818
- {
3819
- "data-og-work-header": bare ? "nested" : "outer",
3820
- className: headerClassName,
3821
- children: headerContent
3822
- }
3823
- ) : (
3824
- // Nothing to reveal: a plain status row, not a disclosure control.
3825
- /* @__PURE__ */ jsx12("div", { "data-og-work-header": bare ? "nested" : "outer", className: headerClassName, children: headerContent })
3826
- ),
3827
- status?.guidance ? (
3828
- // Guidance the reader needs stays visible in both fold states.
3829
- /* @__PURE__ */ jsx12("div", { "data-og-exchange-guidance": "", className: "min-w-0 pb-1 pl-6", children: status.guidance })
3830
- ) : null,
3831
- status && !open && status.preview ? (
3832
- // Readable progress under the status line; the line above stays
3833
- // the one disclosure control, so a click here is a mouse shortcut.
3834
- /* @__PURE__ */ jsx12(
3835
- "div",
3836
- {
3837
- "data-og-exchange-preview": "",
3838
- className: cn(
3839
- "flex min-w-0 flex-col gap-0.5 pb-1 pl-6",
3840
- expandable && "cursor-pointer"
3841
- ),
3842
- onClick: expandable ? () => onOpenChange(true) : void 0,
3843
- children: status.preview ? /* @__PURE__ */ jsx12("div", { className: "min-w-0", children: status.preview }) : null
3844
- }
3845
- )
3846
- ) : null,
3847
- expandable ? /* @__PURE__ */ jsx12(
3848
- Collapsible.Content,
3849
- {
3850
- ...nestSuppressLatch ? { forceMount: true } : {},
3851
- "data-og-fold-content": "",
3852
- className: cn(
3853
- "overflow-hidden",
3854
- expandReady && "data-[state=open]:animate-og-expand",
3855
- // Auto-close: slow settle. Manual close (settlePhase cleared): fast.
3856
- settlePhase ? "data-[state=closed]:animate-og-settle-collapse" : "data-[state=closed]:animate-og-collapse"
3857
- ),
3858
- children: /* @__PURE__ */ jsx12("div", { className: bare ? "pt-1 pl-5" : "pt-2", children })
3859
- }
3860
- ) : null
3861
- ]
3862
- }
3863
- ),
3864
- copyable ? /* @__PURE__ */ jsx12("div", { className: "pointer-events-none absolute top-1.5 right-0 z-10", children: /* @__PURE__ */ jsx12("div", { className: "pointer-events-auto", children: /* @__PURE__ */ jsx12(
3865
- CopyButton,
3866
- {
3867
- text: copyText,
3868
- label: t("timeline.turnSummary.copyTurn"),
3869
- reveal: "group-hover"
3870
- }
3871
- ) }) }) : null
3872
- ] }) });
3873
- }
3874
- function turnSummaryStatusLine(t, status) {
3875
- if (status.kind === "worked") {
3876
- return status.durationMs !== void 0 && Number.isFinite(status.durationMs) && status.durationMs >= 1e3 ? /* @__PURE__ */ jsxs9("span", { "data-og-exchange-status": "worked", children: [
3877
- status.label ?? t("timeline.turnSummary.workedFor"),
3878
- " ",
3879
- formatElapsed(t, status.durationMs)
3880
- ] }) : null;
3881
- }
3882
- if (status.kind === "paused") {
3883
- return /* @__PURE__ */ jsxs9("span", { "data-og-exchange-status": "paused", children: [
3884
- status.label ?? t("timeline.turnSummary.paused"),
3885
- status.durationMs !== void 0 && Number.isFinite(status.durationMs) && status.durationMs >= 1e3 ? /* @__PURE__ */ jsx12("span", { className: "tabular-nums", children: ` \xB7 ${formatElapsed(t, status.durationMs)}` }) : null
3886
- ] });
3887
- }
3888
- const label = status.label ?? (status.kind === "working" ? t("timeline.turnSummary.working") : t("timeline.turnSummary.waiting"));
3889
- return /* @__PURE__ */ jsxs9("span", { "data-og-exchange-status": status.kind, children: [
3890
- status.kind === "working" ? /* @__PURE__ */ jsx12(ShimmerText, { children: label }) : /* @__PURE__ */ jsx12("span", { children: label }),
3891
- status.since ? /* @__PURE__ */ jsx12(LiveElapsed, { since: status.since }) : null
3892
- ] });
3893
- }
3894
- function LiveElapsed({ since }) {
3895
- const t = useOpenGeniText();
3896
- const startedAt = Date.parse(since);
3897
- const [now, setNow] = useState11(() => Date.now());
3898
- useEffect7(() => {
3899
- const timer = setInterval(() => setNow(Date.now()), 1e3);
3900
- return () => clearInterval(timer);
3901
- }, []);
3902
- if (!Number.isFinite(startedAt)) return null;
3903
- return /* @__PURE__ */ jsx12("span", { className: "tabular-nums", children: ` \xB7 ${formatElapsed(t, Math.max(0, now - startedAt))}` });
3904
- }
3905
- var FacetRenderBoundary = class extends Component2 {
3906
- state = { failed: false, notLoaded: false };
3907
- static getDerivedStateFromError(error) {
3908
- return { failed: true, notLoaded: isChunkLoadError(error) };
3909
- }
3910
- render() {
3911
- if (!this.state.failed) return this.props.children;
3912
- return this.state.notLoaded ? /* @__PURE__ */ jsx12(LoadFailureNotice, {}) : null;
3913
- }
3914
- };
3915
-
3916
- // src/timeline/learning-refusal-row.tsx
3917
- import { BrainCircuitIcon as BrainCircuitIcon5 } from "lucide-react";
3918
- import { createContext as createContext10, useContext as useContext12 } from "react";
3919
- import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
3920
- var LearningRefusalActionsContext = createContext10({});
3921
- function LearningRefusalActionsProvider({
3922
- children,
3923
- ...actions
3924
- }) {
3925
- return /* @__PURE__ */ jsx13(LearningRefusalActionsContext.Provider, { value: actions, children });
3926
- }
3927
- function LearningRefusalRow({ refusal }) {
3928
- const t = useOpenGeniText();
3929
- const enter = useEntranceAnimation();
3930
- const { onOpen } = useContext12(LearningRefusalActionsContext);
3931
- const place = learningRefusalPlace(refusal);
3932
- return /* @__PURE__ */ jsxs10(
3933
- "div",
3934
- {
3935
- className: cn(
3936
- enter && "animate-og-enter",
3937
- "flex items-start gap-2.5 rounded-og-md border border-og-status-waiting/35 bg-og-status-waiting/8 px-3.5 py-2.5 text-og-menu text-og-fg"
3938
- ),
3939
- role: "status",
3940
- "data-og-learning-refusal": refusal.reason,
3941
- children: [
3942
- /* @__PURE__ */ jsx13(BrainCircuitIcon5, { "aria-hidden": true, className: "mt-0.5 size-4 shrink-0 text-og-status-waiting" }),
3943
- /* @__PURE__ */ jsxs10("div", { className: "min-w-0 flex-1", children: [
3944
- /* @__PURE__ */ jsx13("p", { className: "font-medium", children: learningRefusalTitle(t, refusal) }),
3945
- /* @__PURE__ */ jsx13("p", { className: "mt-0.5 text-og-fg-muted", children: learningRefusalBody(t, refusal) }),
3946
- place && onOpen ? /* @__PURE__ */ jsx13(
3947
- "button",
3948
- {
3949
- type: "button",
3950
- className: "mt-1.5 -ml-1 rounded-og-sm px-1 py-0.5 font-medium text-og-fg underline-offset-2 hover:underline focus-visible:outline-2 focus-visible:outline-og-accent",
3951
- onClick: () => onOpen(place),
3952
- children: learningRefusalPlaceLabel(t, place)
3953
- }
3954
- ) : null
3955
- ] })
3956
- ]
3957
- }
3958
- );
3959
- }
3960
-
3961
- export {
3962
- UNRECOVERABLE_TEXT,
3963
- ToolReviewFrame,
3964
- DeclineButton,
3965
- ToolActionReviewCard,
3966
- ToolActionReviewDetails,
3967
- createWorkspaceRetainedArtifactLoader,
3968
- createSessionRetainedScreenshotLoader,
3969
- createWorkspaceRetainedVideoLoader,
3970
- ToolReviewHistoryProvider,
3971
- KnowledgeActivityProvider,
3972
- TimelineComputeLabelProvider,
3973
- ProviderLogoProvider,
3974
- ToolKindIcon,
3975
- defaultToolRegistry,
3976
- createDefaultToolRegistry,
3977
- AgentRow,
3978
- AgentRowText,
3979
- AgentRowSection,
3980
- GenieLoadingOptionsContext,
3981
- EMBEDDED_GENIE_LOADING,
3982
- setStartupDetails,
3983
- useStartupDetails,
3984
- SeenActivityIdsProvider,
3985
- ActivityRail,
3986
- ActivityNoteTextContext,
3987
- renderActivity,
3988
- FoldMemoryProvider,
3989
- useFoldMemory,
3990
- inheritFoldRestingState,
3991
- useTurnSettleOpen,
3992
- TurnSummary,
3993
- LearningRefusalActionsProvider,
3994
- LearningRefusalRow
3995
- };
3996
- //# sourceMappingURL=chunk-YKT5NYYJ.js.map