@opengeni/react 6.5.2-canary.41607687019001 → 6.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1154) hide show
  1. package/dist/app/app-state.d.ts +4 -0
  2. package/dist/app/app-state.js +19 -14
  3. package/dist/app/components/Composer.js +25 -23
  4. package/dist/app/components/agent/agent-capability-picker.js +10 -8
  5. package/dist/app/components/artifacts/artifact-browse-controls.js +4 -4
  6. package/dist/app/components/artifacts/artifact-library.js +21 -19
  7. package/dist/app/components/artifacts/artifact-page-chrome.js +3 -3
  8. package/dist/app/components/artifacts/artifact-viewer.js +23 -22
  9. package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
  10. package/dist/app/components/artifacts/chat-interactive-block.js +12 -12
  11. package/dist/app/components/artifacts/copy-artifact-link.js +7 -5
  12. package/dist/app/components/artifacts/file-reach-dialog.js +11 -9
  13. package/dist/app/components/artifacts/inline-chat-image.js +18 -18
  14. package/dist/app/components/artifacts/retained-file-preview.js +24 -23
  15. package/dist/app/components/artifacts/retained-text-preview.js +3 -3
  16. package/dist/app/components/artifacts/site-audience.js +6 -5
  17. package/dist/app/components/artifacts/site-conversations.js +16 -14
  18. package/dist/app/components/artifacts/site-data.js +18 -16
  19. package/dist/app/components/artifacts/site-public-link.js +3 -2
  20. package/dist/app/components/artifacts/site-publishing-page.js +39 -37
  21. package/dist/app/components/artifacts/site-publishing.js +34 -32
  22. package/dist/app/components/artifacts/site-settings.js +38 -36
  23. package/dist/app/components/artifacts/site-version-menu.js +8 -7
  24. package/dist/app/components/billing-class-mark.js +3 -3
  25. package/dist/app/components/bots/bot-launch-strip.js +17 -17
  26. package/dist/app/components/bots/bot-template-dialog.js +30 -28
  27. package/dist/app/components/bots/bot-template-shortcuts.js +19 -19
  28. package/dist/app/components/bots/bot-templates-page.js +38 -36
  29. package/dist/app/components/bots/bot-templates-page.js.map +1 -1
  30. package/dist/app/components/capabilities/capability-detail-sheet.js +13 -11
  31. package/dist/app/components/capabilities/capability-logo-source.js +13 -13
  32. package/dist/app/components/capabilities/capability-logo.js +4 -3
  33. package/dist/app/components/capabilities/connector-tool-permissions.js +8 -6
  34. package/dist/app/components/capabilities/native-connect-setup.js +14 -14
  35. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +7 -6
  36. package/dist/app/components/capabilities/perform-capability-action.js +7 -6
  37. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +17 -17
  38. package/dist/app/components/capabilities/session-capability-card.js +72 -70
  39. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  40. package/dist/app/components/capabilities/session-chrome-card.js +28 -26
  41. package/dist/app/components/capabilities/session-connection-accounts.js +4 -3
  42. package/dist/app/components/capabilities/session-custom-mcp-card.js +20 -19
  43. package/dist/app/components/capabilities/session-github-card.js +22 -20
  44. package/dist/app/components/capabilities/session-machine-card.js +27 -25
  45. package/dist/app/components/capabilities/session-personal-github-card.js +16 -16
  46. package/dist/app/components/capabilities/session-plugin-card.js +10 -9
  47. package/dist/app/components/capabilities/use-capabilities-catalog.js +4 -3
  48. package/dist/app/components/capabilities/use-connection-accounts.js +5 -4
  49. package/dist/app/components/command-menu/chat-status.js +15 -13
  50. package/dist/app/components/command-menu/chat-switcher.js +35 -33
  51. package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
  52. package/dist/app/components/command-menu/command-menu.js +53 -50
  53. package/dist/app/components/command-menu/command-menu.js.map +1 -1
  54. package/dist/app/components/command-menu/shortcut-sheet.js +18 -16
  55. package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
  56. package/dist/app/components/common.js +4 -3
  57. package/dist/app/components/composer-capabilities-menu-body.js +4 -4
  58. package/dist/app/components/composer-mobile-plus-panel.js +8 -8
  59. package/dist/app/components/composer-mobile-plus.js +1 -1
  60. package/dist/app/components/credit-required-gate.js +3 -3
  61. package/dist/app/components/credit-required-prompt.js +10 -8
  62. package/dist/app/components/credit-required-prompt.js.map +1 -1
  63. package/dist/app/components/credits/checkout-credits-celebration.js +3 -2
  64. package/dist/app/components/credits/checkout-return.js +3 -2
  65. package/dist/app/components/credits/checkout-return.js.map +1 -1
  66. package/dist/app/components/credits/coupon-redeem.js +5 -4
  67. package/dist/app/components/credits/credit-refusal-notice.js +7 -5
  68. package/dist/app/components/cross-slot-deep-link-recovery.js +5 -4
  69. package/dist/app/components/desktop/app-shots.js +13 -11
  70. package/dist/app/components/desktop/computer-use.js +6 -4
  71. package/dist/app/components/desktop/this-computer.js +9 -7
  72. package/dist/app/components/feedback.js +5 -4
  73. package/dist/app/components/follow-up-repository-menu-body.js +8 -6
  74. package/dist/app/components/follow-up-repository-menu-body.js.map +1 -1
  75. package/dist/app/components/follow-up-repository-picker.js +1 -1
  76. package/dist/app/components/github-app-connect-launcher.js +5 -4
  77. package/dist/app/components/in-app-help-link.js +3 -3
  78. package/dist/app/components/knowledge/agent-learning-settings.js +3 -2
  79. package/dist/app/components/knowledge/agent-learning-settings.js.map +1 -1
  80. package/dist/app/components/machines/connect-machine-dialog.js +18 -16
  81. package/dist/app/components/manual-repository-editor.js +3 -2
  82. package/dist/app/components/markdown.js +6 -6
  83. package/dist/app/components/models/models-ui.js +12 -10
  84. package/dist/app/components/my-things.js +12 -10
  85. package/dist/app/components/my-things.js.map +1 -1
  86. package/dist/app/components/new-session-starters.js +3 -3
  87. package/dist/app/components/own-where-it-works.js +9 -7
  88. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  89. package/dist/app/components/pickers.js +5 -5
  90. package/dist/app/components/rail/channel-create-dialog.js +7 -5
  91. package/dist/app/components/rail/project-glyph.js +17 -17
  92. package/dist/app/components/rail/project-profile.js +31 -29
  93. package/dist/app/components/rail/rail-context.js +3 -3
  94. package/dist/app/components/rail/rail-sections.js +68 -66
  95. package/dist/app/components/rail/session-header.js +59 -57
  96. package/dist/app/components/rail/session-list.js +66 -64
  97. package/dist/app/components/rail/session-row-content.js +4 -4
  98. package/dist/app/components/rail/session-row-hover-details.js +14 -12
  99. package/dist/app/components/rail/session-shell.js +90 -88
  100. package/dist/app/components/rail/site-session-group-heading.js +8 -8
  101. package/dist/app/components/repository-picker.js +8 -6
  102. package/dist/app/components/secrets/session-secrets-panel.js +4 -3
  103. package/dist/app/components/secrets/vault-model.js +3 -2
  104. package/dist/app/components/session/agent-configuration-panel.js +25 -23
  105. package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
  106. package/dist/app/components/session/artifact-link-boundary.js +3 -3
  107. package/dist/app/components/session/artifact-session-page.js +11 -9
  108. package/dist/app/components/session/banners.js +8 -8
  109. package/dist/app/components/session/codex-usage-notice.js +5 -3
  110. package/dist/app/components/session/console-new-conversation.js +42 -40
  111. package/dist/app/components/session/context-text-reader.js +3 -2
  112. package/dist/app/components/session/descendant-requests.js +39 -37
  113. package/dist/app/components/session/descendant-requests.js.map +1 -1
  114. package/dist/app/components/session/editable-artifacts-workspace.js +36 -34
  115. package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
  116. package/dist/app/components/session/failed-session-banner.js +13 -11
  117. package/dist/app/components/session/failed-session-banner.js.map +1 -1
  118. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  119. package/dist/app/components/session/human-input-delegation-record.js +2 -2
  120. package/dist/app/components/session/human-input.js +33 -31
  121. package/dist/app/components/session/inspector.js +57 -55
  122. package/dist/app/components/session/inspector.js.map +1 -1
  123. package/dist/app/components/session/message-actions.js +5 -4
  124. package/dist/app/components/session/message-actions.js.map +1 -1
  125. package/dist/app/components/session/message-resource-attachments.js +12 -11
  126. package/dist/app/components/session/message-resource-attachments.js.map +1 -1
  127. package/dist/app/components/session/model-context-inspector.js +6 -4
  128. package/dist/app/components/session/model-recovery-notice.js +3 -3
  129. package/dist/app/components/session/new-session-settings-menu.js +11 -9
  130. package/dist/app/components/session/new-session-setup-strip.js +18 -18
  131. package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
  132. package/dist/app/components/session/sandbox-switcher.js +10 -9
  133. package/dist/app/components/session/sandbox-workspace.js +47 -46
  134. package/dist/app/components/session/search-markdown-highlight.js +7 -7
  135. package/dist/app/components/session/search-results-view.js +8 -8
  136. package/dist/app/components/session/session-admin-access.js +13 -11
  137. package/dist/app/components/session/session-admission-notice.js +7 -5
  138. package/dist/app/components/session/session-avatar-picker.js +22 -20
  139. package/dist/app/components/session/session-avatar.js +16 -16
  140. package/dist/app/components/session/session-machine-access-notice.js +7 -5
  141. package/dist/app/components/session/session-profile-dialog.js +29 -27
  142. package/dist/app/components/session/session-profile-editor.js +30 -28
  143. package/dist/app/components/session/session-retention.js +10 -8
  144. package/dist/app/components/session/session-search-dialog.js +10 -10
  145. package/dist/app/components/session/session-skill-reviews.js +2 -1
  146. package/dist/app/components/session/session-skill-reviews.js.map +1 -1
  147. package/dist/app/components/session/session-tenancy-control.js +13 -11
  148. package/dist/app/components/session/session-tenancy-control.js.map +1 -1
  149. package/dist/app/components/session/session-unattended-setting.js +7 -5
  150. package/dist/app/components/session/session-usage-limit-section.js +11 -9
  151. package/dist/app/components/session/share-chat-dialog.js +9 -7
  152. package/dist/app/components/session/site-origin-link.js +3 -3
  153. package/dist/app/components/session/subagents.js +8 -8
  154. package/dist/app/components/session/subscription-account-indicator.js +6 -6
  155. package/dist/app/components/session-connectors-menu-body.js +4 -3
  156. package/dist/app/components/session-connectors-menu-body.js.map +1 -1
  157. package/dist/app/components/settings/row-select.js +7 -5
  158. package/dist/app/components/toaster.js +3 -2
  159. package/dist/app/components/transcription-settings.js +11 -9
  160. package/dist/app/components/ui/destructive-confirm.js +11 -9
  161. package/dist/app/components/usage/usage-entry.js +5 -5
  162. package/dist/app/components/window-bar.js +16 -14
  163. package/dist/app/components/workspace-composer-plus.js +22 -21
  164. package/dist/app/components/workspace-reach.js +6 -4
  165. package/dist/app/components/workspace-tenant-boundary.js +5 -4
  166. package/dist/app/embed/memory-navigation.js +3 -3
  167. package/dist/app/embed/session-app.js +211 -209
  168. package/dist/app/lib/actions/actions-provider.js +15 -13
  169. package/dist/app/lib/agent-capabilities.js +3 -3
  170. package/dist/app/lib/app-surfaces.js +7 -6
  171. package/dist/app/lib/archive-session.d.ts +9 -4
  172. package/dist/app/lib/archive-session.js +4 -2
  173. package/dist/app/lib/bot-templates.js +3 -2
  174. package/dist/app/lib/capabilities.js +3 -2
  175. package/dist/app/lib/codex-usage-query.js +2 -2
  176. package/dist/app/lib/composer-connectors.js +17 -16
  177. package/dist/app/lib/console-site.js +2 -2
  178. package/dist/app/lib/console-text.js +2 -2
  179. package/dist/app/lib/events.js +9 -9
  180. package/dist/app/lib/failed-session-copy.js +3 -3
  181. package/dist/app/lib/inbox.js +4 -2
  182. package/dist/app/lib/model-access-onboarding.js +3 -3
  183. package/dist/app/lib/move-chat-to-machine.js +3 -3
  184. package/dist/app/lib/navigation.js +2 -2
  185. package/dist/app/lib/session-branch-cache.js +6 -6
  186. package/dist/app/lib/session-create.js +4 -4
  187. package/dist/app/lib/session-group-pagination.js +6 -6
  188. package/dist/app/lib/session-hover-facts.js +13 -11
  189. package/dist/app/lib/session-model.js +2 -2
  190. package/dist/app/lib/session-rail.js +3 -3
  191. package/dist/app/lib/session-rename.js +3 -3
  192. package/dist/app/lib/session-restart-operation-controller.js +4 -3
  193. package/dist/app/lib/session-tenancy.js +3 -2
  194. package/dist/app/lib/session-usage-limit.js +3 -2
  195. package/dist/app/lib/sessions-group.js +5 -5
  196. package/dist/app/lib/site-publishing.js +3 -2
  197. package/dist/app/lib/site-tool-consent-dialog.js +9 -7
  198. package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
  199. package/dist/app/lib/site-tool-consent.js +1 -1
  200. package/dist/app/lib/subscription-plans.js +3 -2
  201. package/dist/app/lib/toast.js +2 -1
  202. package/dist/app/lib/turn-failure-analytics.js +4 -4
  203. package/dist/app/lib/use-duplicate-site.js +6 -5
  204. package/dist/app/lib/use-follow-up-repositories.js +6 -5
  205. package/dist/app/lib/use-workspace-integrations.js +4 -3
  206. package/dist/app/lib/use-workspace-machines.js +4 -4
  207. package/dist/app/lib/use-workspace-model-catalog.js +5 -4
  208. package/dist/app/lib/use-workspace-rigs.js +2 -2
  209. package/dist/app/lib/workspace-navigation-preference.js +4 -4
  210. package/dist/app/lib/workspace-scope-context.js +3 -3
  211. package/dist/app/routes/artifacts.js +67 -66
  212. package/dist/app/routes/artifacts.js.map +1 -1
  213. package/dist/app/routes/retained-artifact.js +42 -40
  214. package/dist/app/routes/retained-artifact.js.map +1 -1
  215. package/dist/app/routes/session-unavailable.js +8 -7
  216. package/dist/app/routes/session.js +119 -117
  217. package/dist/app/routes/sessions-index-hydration.js +5 -5
  218. package/dist/app/routes/sessions-index.js +104 -102
  219. package/dist/app/routes/site-view.js +67 -65
  220. package/dist/app/routes/site-view.js.map +1 -1
  221. package/dist/artifacts-document.js +4 -4
  222. package/dist/artifacts-presentation.js +4 -4
  223. package/dist/artifacts-spreadsheet.js +4 -4
  224. package/dist/artifacts.js +10 -10
  225. package/dist/automations.js +17 -15
  226. package/dist/automations.js.map +1 -1
  227. package/dist/browser-viewer-TC27OCIP.js +23 -0
  228. package/dist/chat-interactive-block-RWPQBHVS.js +18 -0
  229. package/dist/chunk-2BDT3UZQ.js +229 -0
  230. package/dist/chunk-2CLNIEK4.js +373 -0
  231. package/dist/chunk-2FSBSCZJ.js +451 -0
  232. package/dist/chunk-2I7HDP53.js +199 -0
  233. package/dist/chunk-2INLDVK3.js +15 -0
  234. package/dist/chunk-2KALVELR.js +126 -0
  235. package/dist/chunk-2M3J7ZWQ.js +418 -0
  236. package/dist/chunk-2OP6WLGV.js +708 -0
  237. package/dist/chunk-2RG7NIAS.js +2936 -0
  238. package/dist/chunk-2STUPWEL.js +135 -0
  239. package/dist/chunk-2YUOVM3G.js +271 -0
  240. package/dist/chunk-2Z3NQNTM.js +3670 -0
  241. package/dist/chunk-3CPWWGNK.js +920 -0
  242. package/dist/chunk-3ED2U6XE.js +37 -0
  243. package/dist/chunk-3GZA4BUW.js +216 -0
  244. package/dist/chunk-3IK6UYO6.js +1022 -0
  245. package/dist/chunk-3PZ7JZI2.js +431 -0
  246. package/dist/chunk-4DVJ6ONS.js +50 -0
  247. package/dist/chunk-4DVNUCRR.js +2386 -0
  248. package/dist/chunk-4DVNUCRR.js.map +1 -0
  249. package/dist/chunk-4E3ZJRTZ.js +41 -0
  250. package/dist/chunk-4SAWSRAA.js +141 -0
  251. package/dist/chunk-53AGXXZM.js +307 -0
  252. package/dist/chunk-54YW6SZZ.js +818 -0
  253. package/dist/chunk-57AZS3IE.js +2317 -0
  254. package/dist/chunk-5CPEEAFD.js +143 -0
  255. package/dist/chunk-5EWSRZ2Y.js +340 -0
  256. package/dist/chunk-5IE76VCY.js +387 -0
  257. package/dist/chunk-5NWEKLDZ.js +170 -0
  258. package/dist/chunk-5O2FCCHZ.js +198 -0
  259. package/dist/chunk-5QAY6K77.js +399 -0
  260. package/dist/chunk-5YKW2K6I.js +625 -0
  261. package/dist/chunk-5YKW2K6I.js.map +1 -0
  262. package/dist/chunk-6BCXNDEI.js +4116 -0
  263. package/dist/chunk-6BCXNDEI.js.map +1 -0
  264. package/dist/chunk-6DK6Z4UN.js +2599 -0
  265. package/dist/chunk-6DVCC7QS.js +702 -0
  266. package/dist/chunk-6JHU2UBS.js +2058 -0
  267. package/dist/chunk-6PZ7OBYU.js +490 -0
  268. package/dist/chunk-6WD2INST.js +539 -0
  269. package/dist/chunk-6WD2INST.js.map +1 -0
  270. package/dist/chunk-6WGRDRMA.js +163 -0
  271. package/dist/chunk-77WAKEAH.js +186 -0
  272. package/dist/chunk-7T2ZE3VT.js +5558 -0
  273. package/dist/chunk-7T2ZE3VT.js.map +1 -0
  274. package/dist/chunk-7TDO3CUM.js +393 -0
  275. package/dist/chunk-7TIX2UAR.js +247 -0
  276. package/dist/chunk-7V5REBCP.js +148 -0
  277. package/dist/chunk-7VMZGLYI.js +339 -0
  278. package/dist/chunk-7W37NS3I.js +236 -0
  279. package/dist/chunk-7X6SDK2C.js +111 -0
  280. package/dist/chunk-7ZNUHRP5.js +95 -0
  281. package/dist/chunk-A36PZALD.js +84 -0
  282. package/dist/chunk-AUI6VA63.js +107 -0
  283. package/dist/chunk-AW2MQB37.js +24 -0
  284. package/dist/chunk-AWKES45Y.js +198 -0
  285. package/dist/chunk-AXHZYXUV.js +132 -0
  286. package/dist/chunk-BHNSJVBC.js +129 -0
  287. package/dist/chunk-BJEJFISW.js +50 -0
  288. package/dist/chunk-BJFH6JI5.js +422 -0
  289. package/dist/chunk-BMICEQZQ.js +960 -0
  290. package/dist/chunk-BTLBYBLU.js +29 -0
  291. package/dist/chunk-BXBDYNRP.js +89 -0
  292. package/dist/chunk-C372BFOV.js +357 -0
  293. package/dist/chunk-C43KRXGA.js +234 -0
  294. package/dist/chunk-C43KRXGA.js.map +1 -0
  295. package/dist/chunk-CMKGILJK.js +4824 -0
  296. package/dist/chunk-CRAOSVHC.js +50 -0
  297. package/dist/chunk-CRU35QQH.js +281 -0
  298. package/dist/chunk-CUIWCGMA.js +172 -0
  299. package/dist/chunk-D5TWNFFE.js +38 -0
  300. package/dist/chunk-DF5EAHDN.js +4461 -0
  301. package/dist/chunk-DJAXC5OK.js +56 -0
  302. package/dist/chunk-DXBYWSL5.js +3550 -0
  303. package/dist/chunk-DXR5PDFP.js +84 -0
  304. package/dist/chunk-DZWARC4M.js +267 -0
  305. package/dist/chunk-DZXEDSQI.js +106 -0
  306. package/dist/chunk-E7XERZWC.js +48 -0
  307. package/dist/chunk-ECJBYNLJ.js +79 -0
  308. package/dist/chunk-EDI6SJ2N.js +43 -0
  309. package/dist/chunk-EWSOC6WF.js +114 -0
  310. package/dist/chunk-F2OPHAUN.js +103 -0
  311. package/dist/chunk-F4ISQGGM.js +81 -0
  312. package/dist/chunk-FO4LYKJL.js +197 -0
  313. package/dist/chunk-FPXASDG5.js +73 -0
  314. package/dist/chunk-FSOQDUCG.js +117 -0
  315. package/dist/chunk-FSOQDUCG.js.map +1 -0
  316. package/dist/chunk-FVXBNBHO.js +157 -0
  317. package/dist/chunk-FYWT2O76.js +34 -0
  318. package/dist/chunk-FYWT2O76.js.map +1 -0
  319. package/dist/chunk-FZC5N55X.js +981 -0
  320. package/dist/chunk-GAVYGBFI.js +99 -0
  321. package/dist/chunk-GFIMOUDT.js +846 -0
  322. package/dist/chunk-GFIMOUDT.js.map +1 -0
  323. package/dist/chunk-GKVJIDHF.js +33 -0
  324. package/dist/chunk-GVN5SZLX.js +212 -0
  325. package/dist/chunk-H3T7IWNA.js +134 -0
  326. package/dist/chunk-HAX4LCR5.js +261 -0
  327. package/dist/chunk-HC4JFZVU.js +121 -0
  328. package/dist/chunk-HEFPPMBQ.js +581 -0
  329. package/dist/chunk-HGKTHF2U.js +1356 -0
  330. package/dist/chunk-HGKTHF2U.js.map +1 -0
  331. package/dist/chunk-HNLR7Q4Z.js +83 -0
  332. package/dist/chunk-HSOXMJOT.js +12 -0
  333. package/dist/chunk-I4MRDSUF.js +281 -0
  334. package/dist/chunk-I4QEJ62Y.js +202 -0
  335. package/dist/chunk-I5B5L6Q4.js +56 -0
  336. package/dist/chunk-I5QZJODL.js +264 -0
  337. package/dist/chunk-I7ITSXSJ.js +603 -0
  338. package/dist/chunk-I7XIZRFD.js +390 -0
  339. package/dist/chunk-IDANQPRH.js +82 -0
  340. package/dist/chunk-IFB3WJ36.js +212 -0
  341. package/dist/chunk-IHTAKKTK.js +264 -0
  342. package/dist/chunk-IKXNLWAL.js +205 -0
  343. package/dist/chunk-IKXNLWAL.js.map +1 -0
  344. package/dist/chunk-ILDXWY37.js +173 -0
  345. package/dist/chunk-IMDQUHBJ.js +570 -0
  346. package/dist/chunk-IMZCQBOT.js +119 -0
  347. package/dist/chunk-IXPTECSC.js +403 -0
  348. package/dist/chunk-J255A3N5.js +71 -0
  349. package/dist/chunk-J5F5HPPW.js +141 -0
  350. package/dist/chunk-JDTGRRNU.js +5045 -0
  351. package/dist/chunk-JDTGRRNU.js.map +1 -0
  352. package/dist/chunk-JEA3QDX7.js +2469 -0
  353. package/dist/chunk-JEUPAVYY.js +156 -0
  354. package/dist/chunk-JKHKLL5W.js +194 -0
  355. package/dist/chunk-JQL7ZH6C.js +650 -0
  356. package/dist/chunk-JWB44UGJ.js +57 -0
  357. package/dist/chunk-JZ4NLCAP.js +333 -0
  358. package/dist/chunk-K2A5PXQ5.js +412 -0
  359. package/dist/chunk-K56XV3C3.js +623 -0
  360. package/dist/chunk-K6GAXXVA.js +23 -0
  361. package/dist/chunk-KCBMFSMS.js +199 -0
  362. package/dist/chunk-KF2FV3ZJ.js +268 -0
  363. package/dist/chunk-KJD65EJP.js +278 -0
  364. package/dist/chunk-KLEUWIMZ.js +386 -0
  365. package/dist/chunk-KODELWYT.js +309 -0
  366. package/dist/chunk-KRDR5RJD.js +83 -0
  367. package/dist/chunk-KUDGXAF7.js +914 -0
  368. package/dist/chunk-KY2R73CG.js +171 -0
  369. package/dist/chunk-KY2R73CG.js.map +1 -0
  370. package/dist/chunk-KYS77RPN.js +85 -0
  371. package/dist/chunk-L7YTNTIK.js +368 -0
  372. package/dist/chunk-LHPNABDH.js +686 -0
  373. package/dist/chunk-MFROMEKA.js +401 -0
  374. package/dist/chunk-MIHN76LX.js +2656 -0
  375. package/dist/chunk-MIYFS2XN.js +42 -0
  376. package/dist/chunk-MJUCFQMS.js +65 -0
  377. package/dist/chunk-MM4FNWI4.js +3064 -0
  378. package/dist/chunk-MNZG4OHU.js +790 -0
  379. package/dist/chunk-MVW6HNPI.js +250 -0
  380. package/dist/chunk-MVW6HNPI.js.map +1 -0
  381. package/dist/chunk-N6AACDUW.js +200 -0
  382. package/dist/chunk-NC55IFN3.js +781 -0
  383. package/dist/chunk-NC7PVOEK.js +98 -0
  384. package/dist/chunk-NCYMNCJO.js +70 -0
  385. package/dist/chunk-ND2BXV3P.js +259 -0
  386. package/dist/chunk-NDBTFUO6.js +272 -0
  387. package/dist/chunk-NDQJZ7HF.js +206 -0
  388. package/dist/chunk-NGJJJPZZ.js +162 -0
  389. package/dist/chunk-NJTSNNE7.js +251 -0
  390. package/dist/chunk-NPGISCU6.js +4159 -0
  391. package/dist/chunk-NPGISCU6.js.map +1 -0
  392. package/dist/chunk-NRTE7DNV.js +1270 -0
  393. package/dist/chunk-NULUNM7H.js +290 -0
  394. package/dist/chunk-NUNZS36W.js +227 -0
  395. package/dist/chunk-NW53H5RW.js +2424 -0
  396. package/dist/chunk-NXCMHIKI.js +263 -0
  397. package/dist/chunk-O3LKCBP5.js +159 -0
  398. package/dist/chunk-O4EA4F3W.js +103 -0
  399. package/dist/chunk-O4EA4F3W.js.map +1 -0
  400. package/dist/chunk-O4OOG3D6.js +116 -0
  401. package/dist/chunk-O4OOG3D6.js.map +1 -0
  402. package/dist/chunk-O6N4ABCA.js +376 -0
  403. package/dist/chunk-O732GAFC.js +112 -0
  404. package/dist/chunk-OF4TIKYC.js +690 -0
  405. package/dist/chunk-OMPVOMPP.js +70 -0
  406. package/dist/chunk-OPJJSKUK.js +118 -0
  407. package/dist/chunk-OPWCMA4D.js +196 -0
  408. package/dist/chunk-ORJPS5VN.js +1193 -0
  409. package/dist/chunk-OSY5K7L7.js +187 -0
  410. package/dist/chunk-OV6QJRT4.js +45 -0
  411. package/dist/chunk-OVKYVZMW.js +108 -0
  412. package/dist/chunk-OZCBM3UC.js +171 -0
  413. package/dist/chunk-P3A2EINJ.js +61 -0
  414. package/dist/chunk-PTAG4PDC.js +27 -0
  415. package/dist/chunk-PTF5B7TJ.js +298 -0
  416. package/dist/chunk-Q3DPEYX4.js +848 -0
  417. package/dist/chunk-Q6CGOPJD.js +215 -0
  418. package/dist/chunk-Q6CGOPJD.js.map +1 -0
  419. package/dist/chunk-QB2KMIDP.js +100 -0
  420. package/dist/chunk-QCSJ4CWE.js +1067 -0
  421. package/dist/chunk-QIOQ2NPQ.js +414 -0
  422. package/dist/chunk-QK5EFEUT.js +353 -0
  423. package/dist/chunk-QPQBLYQJ.js +41 -0
  424. package/dist/chunk-QPSGCC5D.js +184 -0
  425. package/dist/chunk-QZAAUQRN.js +474 -0
  426. package/dist/chunk-QZM6YDJW.js +489 -0
  427. package/dist/chunk-QZM6YDJW.js.map +1 -0
  428. package/dist/chunk-RGBI63KJ.js +188 -0
  429. package/dist/chunk-RLBKLAEY.js +138 -0
  430. package/dist/chunk-RMFKVOM7.js +304 -0
  431. package/dist/chunk-ROKQU7WG.js +258 -0
  432. package/dist/chunk-RPVREAU7.js +251 -0
  433. package/dist/chunk-RQKLF42C.js +723 -0
  434. package/dist/chunk-SC6RRD2D.js +38 -0
  435. package/dist/chunk-SC6RRD2D.js.map +1 -0
  436. package/dist/chunk-SEO7TICN.js +94 -0
  437. package/dist/chunk-SHHJCL7X.js +432 -0
  438. package/dist/chunk-SIRLACNZ.js +114 -0
  439. package/dist/chunk-SKPHMYAA.js +237 -0
  440. package/dist/chunk-SODC7T6L.js +1583 -0
  441. package/dist/chunk-SQJIKMN3.js +366 -0
  442. package/dist/chunk-SVINDKVW.js +26 -0
  443. package/dist/chunk-SYCDHPZF.js +335 -0
  444. package/dist/chunk-T2QX3FDP.js +133 -0
  445. package/dist/chunk-T3OWFVMS.js +1187 -0
  446. package/dist/chunk-T6XI5FLY.js +61 -0
  447. package/dist/chunk-T7OXJZCX.js +62 -0
  448. package/dist/chunk-TAT5USZN.js +353 -0
  449. package/dist/chunk-TPQTRNER.js +172 -0
  450. package/dist/chunk-TUIN4MB7.js +266 -0
  451. package/dist/chunk-TX3VECZU.js +71 -0
  452. package/dist/chunk-TXLIEOJX.js +9624 -0
  453. package/dist/chunk-U3DN4HEY.js +27 -0
  454. package/dist/chunk-U7XM7CB4.js +191 -0
  455. package/dist/chunk-UJK53QFL.js +140 -0
  456. package/dist/chunk-UMTXA2TH.js +319 -0
  457. package/dist/chunk-UPDSXFK5.js +199 -0
  458. package/dist/chunk-UTIAXH52.js +269 -0
  459. package/dist/chunk-UVN5TMHU.js +1184 -0
  460. package/dist/chunk-V4Z4B2E3.js +52 -0
  461. package/dist/chunk-V4Z4B2E3.js.map +1 -0
  462. package/dist/chunk-VGYXW3VG.js +246 -0
  463. package/dist/chunk-VS7AHPCZ.js +255 -0
  464. package/dist/chunk-VTTAJOQ7.js +121 -0
  465. package/dist/chunk-VWPOLUAO.js +99 -0
  466. package/dist/chunk-X3MWB2QU.js +3851 -0
  467. package/dist/chunk-X6KAJI3V.js +211 -0
  468. package/dist/chunk-XBLRHV5R.js +50 -0
  469. package/dist/chunk-XDFP2LMW.js +605 -0
  470. package/dist/chunk-XEQMZB3C.js +525 -0
  471. package/dist/chunk-XEYLT5VA.js +223 -0
  472. package/dist/chunk-XHIQ5I6N.js +918 -0
  473. package/dist/chunk-XLH7QY2R.js +378 -0
  474. package/dist/chunk-XWFAMUZQ.js +113 -0
  475. package/dist/chunk-Y4BB2KS2.js +294 -0
  476. package/dist/chunk-Y4BB2KS2.js.map +1 -0
  477. package/dist/chunk-Y4OBB2VN.js +84 -0
  478. package/dist/chunk-YCVD6CI3.js +234 -0
  479. package/dist/chunk-YENLNISG.js +270 -0
  480. package/dist/chunk-YIRVLKAX.js +351 -0
  481. package/dist/chunk-YL73CVNK.js +390 -0
  482. package/dist/chunk-YLS6QE5G.js +288 -0
  483. package/dist/chunk-YNF2OC54.js +366 -0
  484. package/dist/chunk-YNF2OC54.js.map +1 -0
  485. package/dist/chunk-YPWU5KPE.js +147 -0
  486. package/dist/chunk-YQXTDZSU.js +2984 -0
  487. package/dist/chunk-YSJEAAOL.js +178 -0
  488. package/dist/chunk-YWIFM7D7.js +499 -0
  489. package/dist/chunk-YWVI6ZMK.js +103 -0
  490. package/dist/chunk-Z4FMAFNH.js +847 -0
  491. package/dist/chunk-Z654FWNU.js +136 -0
  492. package/dist/chunk-Z7Y523PS.js +130 -0
  493. package/dist/chunk-ZD67RM6G.js +60 -0
  494. package/dist/chunk-ZEG4VPBL.js +187 -0
  495. package/dist/chunk-ZHDFQITM.js +283 -0
  496. package/dist/chunk-ZHDFQITM.js.map +1 -0
  497. package/dist/chunk-ZLYCOBHW.js +75 -0
  498. package/dist/chunk-ZNJ5MTXV.js +89 -0
  499. package/dist/chunk-ZSGY3H53.js +155 -0
  500. package/dist/chunk-ZTPXACWB.js +1788 -0
  501. package/dist/chunk-ZUA3JMI6.js +107 -0
  502. package/dist/chunk-ZYAZUPPV.js +559 -0
  503. package/dist/composer.js +8 -8
  504. package/dist/computer-viewer-TDDO25AV.js +21 -0
  505. package/dist/connect.js +12 -12
  506. package/dist/desktop-dictation.js +12 -10
  507. package/dist/desktop-dictation.js.map +1 -1
  508. package/dist/desktop.js +2 -2
  509. package/dist/editor.js +2 -2
  510. package/dist/embedded-new-voice-2G3VLPVQ.js +24 -0
  511. package/dist/embedded-voice-T5IWOWGD.js +24 -0
  512. package/dist/fleet-decision-row-WM64KXP3.js +361 -0
  513. package/dist/in-chat-connect-model.js +5 -5
  514. package/dist/index.js +51 -51
  515. package/dist/interaction.js +5 -5
  516. package/dist/machines.js +3 -3
  517. package/dist/meetings-recorder.js +1 -1
  518. package/dist/meetings.js +40 -32
  519. package/dist/meetings.js.map +1 -1
  520. package/dist/messages/en.d.ts +3 -0
  521. package/dist/messages.js +1 -1
  522. package/dist/model-policy-picker-menu-SMC6J6QN.js +22 -0
  523. package/dist/payment-page-card-G4U63KUV.js +223 -0
  524. package/dist/platform-activity-row-BUZGZAKZ.js +128 -0
  525. package/dist/queue-surface-implementation-4KUZ4PJV.js +908 -0
  526. package/dist/realtime.js +4 -4
  527. package/dist/recorder-host-WF2RRR56.js +69 -0
  528. package/dist/recorder-host-WF2RRR56.js.map +1 -0
  529. package/dist/recordings.js +3 -3
  530. package/dist/sandbox-files-ESDMOFSD.js +27 -0
  531. package/dist/session-app.js +211 -209
  532. package/dist/session-connect-cards-Q53KMMYY.js +25 -0
  533. package/dist/session-list-model.js +2 -2
  534. package/dist/session-realtime-CF3I35WJ.js +30 -0
  535. package/dist/session-realtime.js +2 -2
  536. package/dist/session-ui.js +33 -31
  537. package/dist/session.js +5 -5
  538. package/dist/sites.js +2 -2
  539. package/dist/terminal.js +2 -2
  540. package/dist/this-computer.js +3 -3
  541. package/dist/timeline-annotation-markers-CJK4RYZ4.js +157 -0
  542. package/dist/timeline-annotation-selection-67GF5H26.js +208 -0
  543. package/dist/timeline-annotations-dialog-ONJPQDJQ.js +283 -0
  544. package/dist/ui/access-list.js +11 -9
  545. package/dist/ui/access-list.js.map +1 -1
  546. package/dist/ui/api-error.d.ts +6 -3
  547. package/dist/ui/api-error.js +2 -1
  548. package/dist/ui/cadence-picker.js +6 -4
  549. package/dist/ui/choice-cards.js +5 -3
  550. package/dist/ui/confirm-dialog.js +2 -2
  551. package/dist/ui/copy-field.js +5 -3
  552. package/dist/ui/detail-page.js +2 -2
  553. package/dist/ui/detail-sheet.js +2 -2
  554. package/dist/ui/diff-view.js +4 -3
  555. package/dist/ui/disclosure.js +3 -3
  556. package/dist/ui/email-chips-input.js +5 -3
  557. package/dist/ui/error-message.js +2 -1
  558. package/dist/ui/error-reference.d.ts +15 -0
  559. package/dist/ui/error-text.d.ts +10 -0
  560. package/dist/ui/error-text.js +9 -0
  561. package/dist/ui/error-text.js.map +1 -0
  562. package/dist/ui/field.js +4 -2
  563. package/dist/ui/flush-form-page.js +8 -6
  564. package/dist/ui/form-dialog.js +7 -5
  565. package/dist/ui/list-row.js +3 -3
  566. package/dist/ui/load-failure.js +3 -2
  567. package/dist/ui/load-failure.js.map +1 -1
  568. package/dist/ui/notice.js +3 -1
  569. package/dist/ui/relative-time.js +2 -2
  570. package/dist/ui/revision-history.js +9 -7
  571. package/dist/ui/revision-history.js.map +1 -1
  572. package/dist/ui/role-select.js +10 -8
  573. package/dist/ui/segmented-control.js +4 -2
  574. package/dist/ui/select-menu.js +5 -3
  575. package/dist/ui/setting-row.js +3 -1
  576. package/dist/ui/switch.js +4 -2
  577. package/dist/ui/usage-meter.js +3 -3
  578. package/dist/ui/word-list-row.js +4 -2
  579. package/dist/usage.js +2 -2
  580. package/dist/workbench.js +4 -4
  581. package/package.json +5 -6
  582. package/src/app/app-state.tsx +126 -14
  583. package/src/app/components/artifacts/site-data.tsx +2 -2
  584. package/src/app/components/artifacts/site-settings.tsx +2 -2
  585. package/src/app/components/rail/session-list.tsx +7 -8
  586. package/src/app/components/rail/session-shell.tsx +3 -3
  587. package/src/app/components/repository-picker.tsx +8 -1
  588. package/src/app/components/session/model-context-inspector.tsx +2 -1
  589. package/src/app/components/session/session-admin-access.tsx +2 -2
  590. package/src/app/lib/actions/chat-operations.ts +4 -4
  591. package/src/app/lib/archive-session.test.tsx +265 -2
  592. package/src/app/lib/archive-session.tsx +175 -9
  593. package/src/app/lib/copy-link.ts +2 -2
  594. package/src/app/lib/inbox.tsx +2 -2
  595. package/src/app/lib/session-failure-toasts.ts +3 -2
  596. package/src/app/lib/toast.test.tsx +215 -0
  597. package/src/app/lib/toast.tsx +67 -2
  598. package/src/app/personal-github-reconnect.test.tsx +356 -0
  599. package/src/app/routes/artifacts.tsx +1 -2
  600. package/src/components/tool-action-review.tsx +14 -1
  601. package/src/meetings/delete-meeting-dialog.tsx +2 -1
  602. package/src/meetings/meeting-ask.tsx +2 -1
  603. package/src/meetings/meeting-detail-page.tsx +2 -1
  604. package/src/meetings/meeting-notes.tsx +2 -1
  605. package/src/meetings/meeting-settings.tsx +4 -1
  606. package/src/meetings/meeting-transcript.tsx +4 -1
  607. package/src/meetings/recorder-context.tsx +10 -0
  608. package/src/meetings/recorder-host.test.tsx +60 -2
  609. package/src/meetings/recorder-host.tsx +16 -3
  610. package/src/meetings/recorder-panel.tsx +2 -1
  611. package/src/meetings/recorder-workspace.test.tsx +26 -1
  612. package/src/messages/en.ts +6 -0
  613. package/src/ui/api-error.test.ts +29 -5
  614. package/src/ui/api-error.tsx +10 -4
  615. package/src/ui/error-message.tsx +8 -0
  616. package/src/ui/error-reference.test.ts +54 -0
  617. package/src/ui/error-reference.ts +51 -0
  618. package/src/ui/error-text.test.tsx +66 -0
  619. package/src/ui/error-text.tsx +49 -0
  620. package/src/ui/field.tsx +4 -1
  621. package/src/ui/notice.tsx +7 -2
  622. package/src/ui/setting-row.tsx +4 -1
  623. package/styles/app.css +12 -0
  624. package/styles/compiled.css +9 -0
  625. package/dist/browser-viewer-NOP5EAUO.js +0 -23
  626. package/dist/chat-interactive-block-G7O44JHR.js +0 -18
  627. package/dist/chunk-26RWVLRD.js +0 -135
  628. package/dist/chunk-2AHTY7OT.js +0 -247
  629. package/dist/chunk-2GDNWKSC.js +0 -3670
  630. package/dist/chunk-2JENKGCE.js +0 -339
  631. package/dist/chunk-2KYQC4T5.js +0 -155
  632. package/dist/chunk-2RREGDQH.js +0 -708
  633. package/dist/chunk-2T7DX6KR.js +0 -353
  634. package/dist/chunk-2VB2O4FQ.js +0 -920
  635. package/dist/chunk-2VTTKH23.js +0 -94
  636. package/dist/chunk-2XNG2KNT.js +0 -172
  637. package/dist/chunk-2YC6JQRO.js +0 -399
  638. package/dist/chunk-2ZVRJRXC.js +0 -27
  639. package/dist/chunk-35737UT4.js +0 -162
  640. package/dist/chunk-366XZ4PM.js +0 -41
  641. package/dist/chunk-36MIDGAH.js +0 -199
  642. package/dist/chunk-3FD76LXM.js +0 -212
  643. package/dist/chunk-3OVIXY4O.js +0 -213
  644. package/dist/chunk-3OVIXY4O.js.map +0 -1
  645. package/dist/chunk-3QNRBEYH.js +0 -432
  646. package/dist/chunk-3QX55WLC.js +0 -15
  647. package/dist/chunk-3USJPT2S.js +0 -1022
  648. package/dist/chunk-42CMQ5VR.js +0 -251
  649. package/dist/chunk-4LPOWQJY.js +0 -42
  650. package/dist/chunk-4NBTZRKT.js +0 -79
  651. package/dist/chunk-4OXI6HCV.js +0 -118
  652. package/dist/chunk-4SZZAFYQ.js +0 -2317
  653. package/dist/chunk-4TQL3WP2.js +0 -140
  654. package/dist/chunk-4Y6BK7IU.js +0 -196
  655. package/dist/chunk-4YD7YZC5.js +0 -373
  656. package/dist/chunk-5DTST3TP.js +0 -81
  657. package/dist/chunk-5FH5LQVS.js +0 -130
  658. package/dist/chunk-5KWMYPJV.js +0 -847
  659. package/dist/chunk-5MUJDC6C.js +0 -84
  660. package/dist/chunk-5QM2WPKV.js +0 -41
  661. package/dist/chunk-5WUN7XPD.js +0 -1184
  662. package/dist/chunk-64PO2WXU.js +0 -1067
  663. package/dist/chunk-6AHATAAY.js +0 -431
  664. package/dist/chunk-6ED2YWBT.js +0 -56
  665. package/dist/chunk-6GXVYAGR.js +0 -170
  666. package/dist/chunk-6H4SJBPE.js +0 -85
  667. package/dist/chunk-6MT3HHUB.js +0 -84
  668. package/dist/chunk-6UHCBH4G.js +0 -198
  669. package/dist/chunk-6WLX3NR3.js +0 -198
  670. package/dist/chunk-73NXYYWE.js +0 -112
  671. package/dist/chunk-76ERNKIZ.js +0 -603
  672. package/dist/chunk-776QZ573.js +0 -57
  673. package/dist/chunk-7BYWOFVH.js +0 -171
  674. package/dist/chunk-7O5CGGIQ.js +0 -108
  675. package/dist/chunk-7QOHRZ67.js +0 -251
  676. package/dist/chunk-7WIDB4PL.js +0 -2058
  677. package/dist/chunk-7WKP3DYJ.js +0 -37
  678. package/dist/chunk-7XOVTPDI.js +0 -227
  679. package/dist/chunk-AB5MBIXY.js +0 -281
  680. package/dist/chunk-ADNMXBCX.js +0 -1193
  681. package/dist/chunk-AFBJTUFK.js +0 -202
  682. package/dist/chunk-ALVRWCXE.js +0 -61
  683. package/dist/chunk-AOHU6O3M.js +0 -247
  684. package/dist/chunk-AOHU6O3M.js.map +0 -1
  685. package/dist/chunk-APW4T4SW.js +0 -270
  686. package/dist/chunk-AXBSYWKX.js +0 -2656
  687. package/dist/chunk-B2I5ZW35.js +0 -422
  688. package/dist/chunk-B3LMRTRF.js +0 -223
  689. package/dist/chunk-BE2XENG2.js +0 -292
  690. package/dist/chunk-BE2XENG2.js.map +0 -1
  691. package/dist/chunk-BF4SADKX.js +0 -29
  692. package/dist/chunk-BKP43KK4.js +0 -1788
  693. package/dist/chunk-BM3NEZ6X.js +0 -781
  694. package/dist/chunk-BT3BAGB5.js +0 -216
  695. package/dist/chunk-BTSYDIVJ.js +0 -357
  696. package/dist/chunk-BUBNGKWG.js +0 -70
  697. package/dist/chunk-BVUJV5WR.js +0 -126
  698. package/dist/chunk-BZO5ZMUP.js +0 -27
  699. package/dist/chunk-C3HUF3M2.js +0 -157
  700. package/dist/chunk-C5QCAOES.js +0 -264
  701. package/dist/chunk-CGK6ALQU.js +0 -159
  702. package/dist/chunk-CPYGO76Q.js +0 -335
  703. package/dist/chunk-CQH4FWYA.js +0 -490
  704. package/dist/chunk-CZP5QXNB.js +0 -234
  705. package/dist/chunk-D2TOWEYH.js +0 -266
  706. package/dist/chunk-D6L4GHRH.js +0 -340
  707. package/dist/chunk-DKT3N37I.js +0 -50
  708. package/dist/chunk-DMMJIFKA.js +0 -84
  709. package/dist/chunk-DO74DQC7.js +0 -26
  710. package/dist/chunk-DOFJZ2JU.js +0 -83
  711. package/dist/chunk-DSXVY5WZ.js +0 -119
  712. package/dist/chunk-E337C2VK.js +0 -82
  713. package/dist/chunk-E6NRSRBE.js +0 -114
  714. package/dist/chunk-E6SQKHAU.js +0 -114
  715. package/dist/chunk-E7UIVD7F.js +0 -236
  716. package/dist/chunk-EGBII4CP.js +0 -229
  717. package/dist/chunk-EILSAQVJ.js +0 -200
  718. package/dist/chunk-ELL6HSYR.js +0 -307
  719. package/dist/chunk-EUBGLFFR.js +0 -73
  720. package/dist/chunk-EW6RNWSH.js +0 -212
  721. package/dist/chunk-EYUT5Y6V.js +0 -2599
  722. package/dist/chunk-F7U3QPZ3.js +0 -304
  723. package/dist/chunk-FBTJKSTM.js +0 -1270
  724. package/dist/chunk-FC2FTSK3.js +0 -2424
  725. package/dist/chunk-FOGNA3BU.js +0 -148
  726. package/dist/chunk-FQFKHNC7.js +0 -650
  727. package/dist/chunk-FTCHM755.js +0 -50
  728. package/dist/chunk-FXSHP4JZ.js +0 -3550
  729. package/dist/chunk-G6ZZC543.js +0 -818
  730. package/dist/chunk-G7FU6PUA.js +0 -100
  731. package/dist/chunk-GA4YEAMX.js +0 -3851
  732. package/dist/chunk-GE33BGB7.js +0 -12
  733. package/dist/chunk-GQ67HSJY.js +0 -570
  734. package/dist/chunk-GXXZ3WAK.js +0 -106
  735. package/dist/chunk-H2TCRX3H.js +0 -237
  736. package/dist/chunk-HLL4PBO7.js +0 -60
  737. package/dist/chunk-HLOEPV5C.js +0 -259
  738. package/dist/chunk-HUAGBS4O.js +0 -56
  739. package/dist/chunk-I36GSRUJ.js +0 -211
  740. package/dist/chunk-I6VBHT7S.js +0 -261
  741. package/dist/chunk-ICNNNOXE.js +0 -333
  742. package/dist/chunk-ICX64J4U.js +0 -172
  743. package/dist/chunk-ID36Y46W.js +0 -5046
  744. package/dist/chunk-ID36Y46W.js.map +0 -1
  745. package/dist/chunk-IGVVXLKJ.js +0 -559
  746. package/dist/chunk-IKJLSBUI.js +0 -2984
  747. package/dist/chunk-IKMUFDVS.js +0 -50
  748. package/dist/chunk-IKUNOX7F.js +0 -255
  749. package/dist/chunk-ILKDYBON.js +0 -288
  750. package/dist/chunk-IVYJX3OY.js +0 -187
  751. package/dist/chunk-JCY4CMDH.js +0 -107
  752. package/dist/chunk-JJZPLGIP.js +0 -474
  753. package/dist/chunk-JW33RV4V.js +0 -143
  754. package/dist/chunk-JWPA6ZPZ.js +0 -351
  755. package/dist/chunk-JZ4QXS6D.js +0 -50
  756. package/dist/chunk-K42OUZQ3.js +0 -386
  757. package/dist/chunk-K5TOVX5A.js +0 -206
  758. package/dist/chunk-K63HGHZX.js +0 -99
  759. package/dist/chunk-K6R5T44I.js +0 -75
  760. package/dist/chunk-KHJ5PXFM.js +0 -914
  761. package/dist/chunk-KJZRQ55O.js +0 -2319
  762. package/dist/chunk-KJZRQ55O.js.map +0 -1
  763. package/dist/chunk-KKI55ZMW.js +0 -65
  764. package/dist/chunk-KRPLAAFP.js +0 -199
  765. package/dist/chunk-KVFEZDBO.js +0 -134
  766. package/dist/chunk-L4I665WK.js +0 -45
  767. package/dist/chunk-L4OF77LE.js +0 -110
  768. package/dist/chunk-L4OF77LE.js.map +0 -1
  769. package/dist/chunk-LA5T52RM.js +0 -70
  770. package/dist/chunk-LM2W5YAT.js +0 -401
  771. package/dist/chunk-LQ62ECE6.js +0 -390
  772. package/dist/chunk-LQDUHU3Y.js +0 -71
  773. package/dist/chunk-LRJIYTZW.js +0 -4157
  774. package/dist/chunk-LRJIYTZW.js.map +0 -1
  775. package/dist/chunk-LRN6GYAZ.js +0 -138
  776. package/dist/chunk-M4SDVTKJ.js +0 -790
  777. package/dist/chunk-MA6O7CM6.js +0 -99
  778. package/dist/chunk-MBIBB6GI.js +0 -197
  779. package/dist/chunk-MF3ZFB4H.js +0 -199
  780. package/dist/chunk-MJJGJMYJ.js +0 -98
  781. package/dist/chunk-MLJADQFI.js +0 -4824
  782. package/dist/chunk-MQG7RV3B.js +0 -62
  783. package/dist/chunk-MTTGSQA5.js +0 -186
  784. package/dist/chunk-MW7Y3T55.js +0 -525
  785. package/dist/chunk-MYUFMVCH.js +0 -121
  786. package/dist/chunk-N3OARGH2.js +0 -61
  787. package/dist/chunk-NB2HMRT2.js +0 -353
  788. package/dist/chunk-NFDFYWMV.js +0 -141
  789. package/dist/chunk-NWGNFN3N.js +0 -1187
  790. package/dist/chunk-NWJRPDIO.js +0 -840
  791. package/dist/chunk-NWJRPDIO.js.map +0 -1
  792. package/dist/chunk-NXWBBZJV.js +0 -267
  793. package/dist/chunk-NY2QWROL.js +0 -71
  794. package/dist/chunk-O2IOPP3R.js +0 -848
  795. package/dist/chunk-O2UWH5RG.js +0 -141
  796. package/dist/chunk-O5YWDLYF.js +0 -393
  797. package/dist/chunk-OBMCZO7E.js +0 -121
  798. package/dist/chunk-OD3DCCCB.js +0 -132
  799. package/dist/chunk-OMH7R6I3.js +0 -390
  800. package/dist/chunk-OSA5EQG5.js +0 -113
  801. package/dist/chunk-OSJ3MUTZ.js +0 -2936
  802. package/dist/chunk-OWAYJ2OV.js +0 -368
  803. package/dist/chunk-OYXBFSGK.js +0 -269
  804. package/dist/chunk-PC2EBA5G.js +0 -4116
  805. package/dist/chunk-PC2EBA5G.js.map +0 -1
  806. package/dist/chunk-PC2MVXIP.js +0 -363
  807. package/dist/chunk-PC2MVXIP.js.map +0 -1
  808. package/dist/chunk-PENGLDR5.js +0 -309
  809. package/dist/chunk-PSMAWRPL.js +0 -191
  810. package/dist/chunk-PW4IMTYR.js +0 -702
  811. package/dist/chunk-PW54V7T5.js +0 -387
  812. package/dist/chunk-Q2EXYSMO.js +0 -24
  813. package/dist/chunk-Q2XJK5I4.js +0 -51
  814. package/dist/chunk-Q2XJK5I4.js.map +0 -1
  815. package/dist/chunk-Q4EFRI6X.js +0 -258
  816. package/dist/chunk-Q52CXW6C.js +0 -48
  817. package/dist/chunk-Q6XQ2R37.js +0 -184
  818. package/dist/chunk-QAJ53XBW.js +0 -23
  819. package/dist/chunk-QDTKECT4.js +0 -129
  820. package/dist/chunk-QE3ZFGI3.js +0 -43
  821. package/dist/chunk-QHHSUR2Y.js +0 -298
  822. package/dist/chunk-QHNVNR7B.js +0 -173
  823. package/dist/chunk-QIK2Q6N5.js +0 -376
  824. package/dist/chunk-QWL4L366.js +0 -38
  825. package/dist/chunk-R3J2PTVQ.js +0 -690
  826. package/dist/chunk-RBRX5ZS3.js +0 -319
  827. package/dist/chunk-REX6JIC7.js +0 -33
  828. package/dist/chunk-RGZ7EEC3.js +0 -537
  829. package/dist/chunk-RGZ7EEC3.js.map +0 -1
  830. package/dist/chunk-RIPS7GFR.js +0 -960
  831. package/dist/chunk-RTBZNFNV.js +0 -1354
  832. package/dist/chunk-RTBZNFNV.js.map +0 -1
  833. package/dist/chunk-SKMNW4SW.js +0 -187
  834. package/dist/chunk-SRFARKXC.js +0 -623
  835. package/dist/chunk-SWIHWCTW.js +0 -4461
  836. package/dist/chunk-TA5CFTO4.js +0 -103
  837. package/dist/chunk-TF4ZVJLI.js +0 -156
  838. package/dist/chunk-TG7DADJR.js +0 -9624
  839. package/dist/chunk-TI4R2ZD5.js +0 -623
  840. package/dist/chunk-TI4R2ZD5.js.map +0 -1
  841. package/dist/chunk-TNKWOUWP.js +0 -412
  842. package/dist/chunk-TNUSPXPW.js +0 -5555
  843. package/dist/chunk-TNUSPXPW.js.map +0 -1
  844. package/dist/chunk-TNYFHKVV.js +0 -366
  845. package/dist/chunk-TPMZBOFH.js +0 -178
  846. package/dist/chunk-TW3LKRJF.js +0 -263
  847. package/dist/chunk-TZAO65I4.js +0 -83
  848. package/dist/chunk-U5EFEMYU.js +0 -89
  849. package/dist/chunk-U6M4LS3M.js +0 -378
  850. package/dist/chunk-UI4HI5QK.js +0 -918
  851. package/dist/chunk-UJDOWCQ3.js +0 -272
  852. package/dist/chunk-UJUQ2QOX.js +0 -581
  853. package/dist/chunk-UQ3IM6FY.js +0 -133
  854. package/dist/chunk-UYE47LO6.js +0 -246
  855. package/dist/chunk-VADHIT26.js +0 -89
  856. package/dist/chunk-VFQ3H6CO.js +0 -163
  857. package/dist/chunk-VGUN6VB2.js +0 -188
  858. package/dist/chunk-VGWWEVSD.js +0 -723
  859. package/dist/chunk-VIEFJ2DM.js +0 -2469
  860. package/dist/chunk-VLXM36VS.js +0 -268
  861. package/dist/chunk-W3BFRR2G.js +0 -499
  862. package/dist/chunk-W5MPXR3A.js +0 -981
  863. package/dist/chunk-W5OWKVZG.js +0 -136
  864. package/dist/chunk-W6FRORMX.js +0 -486
  865. package/dist/chunk-W6FRORMX.js.map +0 -1
  866. package/dist/chunk-W7XROSZO.js +0 -232
  867. package/dist/chunk-W7XROSZO.js.map +0 -1
  868. package/dist/chunk-WEZ5PXZP.js +0 -403
  869. package/dist/chunk-WHWUWN2X.js +0 -197
  870. package/dist/chunk-WHWUWN2X.js.map +0 -1
  871. package/dist/chunk-WLEDGIVS.js +0 -114
  872. package/dist/chunk-WLEDGIVS.js.map +0 -1
  873. package/dist/chunk-WNDAKLHG.js +0 -281
  874. package/dist/chunk-WTJ4PLMU.js +0 -103
  875. package/dist/chunk-WV2KPJUW.js +0 -107
  876. package/dist/chunk-X3VY5EGY.js +0 -277
  877. package/dist/chunk-X3VY5EGY.js.map +0 -1
  878. package/dist/chunk-XDBYWVCW.js +0 -418
  879. package/dist/chunk-XF7MA4U5.js +0 -36
  880. package/dist/chunk-XF7MA4U5.js.map +0 -1
  881. package/dist/chunk-XOSQP3YA.js +0 -605
  882. package/dist/chunk-XYBV4ZJQ.js +0 -271
  883. package/dist/chunk-YBKVGLQR.js +0 -147
  884. package/dist/chunk-YDCUBUWH.js +0 -1583
  885. package/dist/chunk-YG6NARQY.js +0 -51
  886. package/dist/chunk-YG6NARQY.js.map +0 -1
  887. package/dist/chunk-YSVD5HI4.js +0 -278
  888. package/dist/chunk-YT3WGNG6.js +0 -290
  889. package/dist/chunk-YYICQDK4.js +0 -414
  890. package/dist/chunk-YYLMZLI6.js +0 -686
  891. package/dist/chunk-ZAMTKG5U.js +0 -95
  892. package/dist/chunk-ZDLYSXKN.js +0 -111
  893. package/dist/chunk-ZG447FSS.js +0 -194
  894. package/dist/chunk-ZIT5KD4Q.js +0 -264
  895. package/dist/chunk-ZUDOVDKR.js +0 -3064
  896. package/dist/chunk-ZW2ECJ3A.js +0 -451
  897. package/dist/computer-viewer-LPZ763KF.js +0 -21
  898. package/dist/embedded-new-voice-YVMKSLKJ.js +0 -24
  899. package/dist/embedded-voice-BJPQFXSU.js +0 -24
  900. package/dist/fleet-decision-row-AA4H5CDT.js +0 -361
  901. package/dist/model-policy-picker-menu-HSMWVO4P.js +0 -22
  902. package/dist/payment-page-card-3LTSFJGN.js +0 -223
  903. package/dist/platform-activity-row-5VYV6TX4.js +0 -128
  904. package/dist/queue-surface-implementation-NXHZUKD2.js +0 -908
  905. package/dist/recorder-host-ZKRWTDBM.js +0 -57
  906. package/dist/recorder-host-ZKRWTDBM.js.map +0 -1
  907. package/dist/sandbox-files-YCMLQUFU.js +0 -27
  908. package/dist/session-connect-cards-KSQLMRM5.js +0 -25
  909. package/dist/session-realtime-ZR6JLG3Y.js +0 -30
  910. package/dist/timeline-annotation-markers-YAHDPWVG.js +0 -157
  911. package/dist/timeline-annotation-selection-KHXNCEJP.js +0 -208
  912. package/dist/timeline-annotations-dialog-Y4XD3N7B.js +0 -283
  913. /package/dist/{browser-viewer-NOP5EAUO.js.map → browser-viewer-TC27OCIP.js.map} +0 -0
  914. /package/dist/{chat-interactive-block-G7O44JHR.js.map → chat-interactive-block-RWPQBHVS.js.map} +0 -0
  915. /package/dist/{chunk-EGBII4CP.js.map → chunk-2BDT3UZQ.js.map} +0 -0
  916. /package/dist/{chunk-4YD7YZC5.js.map → chunk-2CLNIEK4.js.map} +0 -0
  917. /package/dist/{chunk-ZW2ECJ3A.js.map → chunk-2FSBSCZJ.js.map} +0 -0
  918. /package/dist/{chunk-KRPLAAFP.js.map → chunk-2I7HDP53.js.map} +0 -0
  919. /package/dist/{chunk-3QX55WLC.js.map → chunk-2INLDVK3.js.map} +0 -0
  920. /package/dist/{chunk-BVUJV5WR.js.map → chunk-2KALVELR.js.map} +0 -0
  921. /package/dist/{chunk-XDBYWVCW.js.map → chunk-2M3J7ZWQ.js.map} +0 -0
  922. /package/dist/{chunk-2RREGDQH.js.map → chunk-2OP6WLGV.js.map} +0 -0
  923. /package/dist/{chunk-OSJ3MUTZ.js.map → chunk-2RG7NIAS.js.map} +0 -0
  924. /package/dist/{chunk-26RWVLRD.js.map → chunk-2STUPWEL.js.map} +0 -0
  925. /package/dist/{chunk-XYBV4ZJQ.js.map → chunk-2YUOVM3G.js.map} +0 -0
  926. /package/dist/{chunk-2GDNWKSC.js.map → chunk-2Z3NQNTM.js.map} +0 -0
  927. /package/dist/{chunk-2VB2O4FQ.js.map → chunk-3CPWWGNK.js.map} +0 -0
  928. /package/dist/{chunk-7WKP3DYJ.js.map → chunk-3ED2U6XE.js.map} +0 -0
  929. /package/dist/{chunk-BT3BAGB5.js.map → chunk-3GZA4BUW.js.map} +0 -0
  930. /package/dist/{chunk-3USJPT2S.js.map → chunk-3IK6UYO6.js.map} +0 -0
  931. /package/dist/{chunk-6AHATAAY.js.map → chunk-3PZ7JZI2.js.map} +0 -0
  932. /package/dist/{chunk-JZ4QXS6D.js.map → chunk-4DVJ6ONS.js.map} +0 -0
  933. /package/dist/{chunk-5QM2WPKV.js.map → chunk-4E3ZJRTZ.js.map} +0 -0
  934. /package/dist/{chunk-NFDFYWMV.js.map → chunk-4SAWSRAA.js.map} +0 -0
  935. /package/dist/{chunk-ELL6HSYR.js.map → chunk-53AGXXZM.js.map} +0 -0
  936. /package/dist/{chunk-G6ZZC543.js.map → chunk-54YW6SZZ.js.map} +0 -0
  937. /package/dist/{chunk-4SZZAFYQ.js.map → chunk-57AZS3IE.js.map} +0 -0
  938. /package/dist/{chunk-JW33RV4V.js.map → chunk-5CPEEAFD.js.map} +0 -0
  939. /package/dist/{chunk-D6L4GHRH.js.map → chunk-5EWSRZ2Y.js.map} +0 -0
  940. /package/dist/{chunk-PW54V7T5.js.map → chunk-5IE76VCY.js.map} +0 -0
  941. /package/dist/{chunk-6GXVYAGR.js.map → chunk-5NWEKLDZ.js.map} +0 -0
  942. /package/dist/{chunk-6UHCBH4G.js.map → chunk-5O2FCCHZ.js.map} +0 -0
  943. /package/dist/{chunk-2YC6JQRO.js.map → chunk-5QAY6K77.js.map} +0 -0
  944. /package/dist/{chunk-EYUT5Y6V.js.map → chunk-6DK6Z4UN.js.map} +0 -0
  945. /package/dist/{chunk-PW4IMTYR.js.map → chunk-6DVCC7QS.js.map} +0 -0
  946. /package/dist/{chunk-7WIDB4PL.js.map → chunk-6JHU2UBS.js.map} +0 -0
  947. /package/dist/{chunk-CQH4FWYA.js.map → chunk-6PZ7OBYU.js.map} +0 -0
  948. /package/dist/{chunk-VFQ3H6CO.js.map → chunk-6WGRDRMA.js.map} +0 -0
  949. /package/dist/{chunk-MTTGSQA5.js.map → chunk-77WAKEAH.js.map} +0 -0
  950. /package/dist/{chunk-O5YWDLYF.js.map → chunk-7TDO3CUM.js.map} +0 -0
  951. /package/dist/{chunk-2AHTY7OT.js.map → chunk-7TIX2UAR.js.map} +0 -0
  952. /package/dist/{chunk-FOGNA3BU.js.map → chunk-7V5REBCP.js.map} +0 -0
  953. /package/dist/{chunk-2JENKGCE.js.map → chunk-7VMZGLYI.js.map} +0 -0
  954. /package/dist/{chunk-E7UIVD7F.js.map → chunk-7W37NS3I.js.map} +0 -0
  955. /package/dist/{chunk-ZDLYSXKN.js.map → chunk-7X6SDK2C.js.map} +0 -0
  956. /package/dist/{chunk-ZAMTKG5U.js.map → chunk-7ZNUHRP5.js.map} +0 -0
  957. /package/dist/{chunk-DMMJIFKA.js.map → chunk-A36PZALD.js.map} +0 -0
  958. /package/dist/{chunk-WV2KPJUW.js.map → chunk-AUI6VA63.js.map} +0 -0
  959. /package/dist/{chunk-Q2EXYSMO.js.map → chunk-AW2MQB37.js.map} +0 -0
  960. /package/dist/{chunk-6WLX3NR3.js.map → chunk-AWKES45Y.js.map} +0 -0
  961. /package/dist/{chunk-OD3DCCCB.js.map → chunk-AXHZYXUV.js.map} +0 -0
  962. /package/dist/{chunk-QDTKECT4.js.map → chunk-BHNSJVBC.js.map} +0 -0
  963. /package/dist/{chunk-FTCHM755.js.map → chunk-BJEJFISW.js.map} +0 -0
  964. /package/dist/{chunk-B2I5ZW35.js.map → chunk-BJFH6JI5.js.map} +0 -0
  965. /package/dist/{chunk-RIPS7GFR.js.map → chunk-BMICEQZQ.js.map} +0 -0
  966. /package/dist/{chunk-BF4SADKX.js.map → chunk-BTLBYBLU.js.map} +0 -0
  967. /package/dist/{chunk-U5EFEMYU.js.map → chunk-BXBDYNRP.js.map} +0 -0
  968. /package/dist/{chunk-BTSYDIVJ.js.map → chunk-C372BFOV.js.map} +0 -0
  969. /package/dist/{chunk-MLJADQFI.js.map → chunk-CMKGILJK.js.map} +0 -0
  970. /package/dist/{chunk-DKT3N37I.js.map → chunk-CRAOSVHC.js.map} +0 -0
  971. /package/dist/{chunk-WNDAKLHG.js.map → chunk-CRU35QQH.js.map} +0 -0
  972. /package/dist/{chunk-2XNG2KNT.js.map → chunk-CUIWCGMA.js.map} +0 -0
  973. /package/dist/{chunk-QWL4L366.js.map → chunk-D5TWNFFE.js.map} +0 -0
  974. /package/dist/{chunk-SWIHWCTW.js.map → chunk-DF5EAHDN.js.map} +0 -0
  975. /package/dist/{chunk-HUAGBS4O.js.map → chunk-DJAXC5OK.js.map} +0 -0
  976. /package/dist/{chunk-FXSHP4JZ.js.map → chunk-DXBYWSL5.js.map} +0 -0
  977. /package/dist/{chunk-5MUJDC6C.js.map → chunk-DXR5PDFP.js.map} +0 -0
  978. /package/dist/{chunk-NXWBBZJV.js.map → chunk-DZWARC4M.js.map} +0 -0
  979. /package/dist/{chunk-GXXZ3WAK.js.map → chunk-DZXEDSQI.js.map} +0 -0
  980. /package/dist/{chunk-Q52CXW6C.js.map → chunk-E7XERZWC.js.map} +0 -0
  981. /package/dist/{chunk-4NBTZRKT.js.map → chunk-ECJBYNLJ.js.map} +0 -0
  982. /package/dist/{chunk-QE3ZFGI3.js.map → chunk-EDI6SJ2N.js.map} +0 -0
  983. /package/dist/{chunk-E6NRSRBE.js.map → chunk-EWSOC6WF.js.map} +0 -0
  984. /package/dist/{chunk-TA5CFTO4.js.map → chunk-F2OPHAUN.js.map} +0 -0
  985. /package/dist/{chunk-5DTST3TP.js.map → chunk-F4ISQGGM.js.map} +0 -0
  986. /package/dist/{chunk-MBIBB6GI.js.map → chunk-FO4LYKJL.js.map} +0 -0
  987. /package/dist/{chunk-EUBGLFFR.js.map → chunk-FPXASDG5.js.map} +0 -0
  988. /package/dist/{chunk-C3HUF3M2.js.map → chunk-FVXBNBHO.js.map} +0 -0
  989. /package/dist/{chunk-W5MPXR3A.js.map → chunk-FZC5N55X.js.map} +0 -0
  990. /package/dist/{chunk-MA6O7CM6.js.map → chunk-GAVYGBFI.js.map} +0 -0
  991. /package/dist/{chunk-REX6JIC7.js.map → chunk-GKVJIDHF.js.map} +0 -0
  992. /package/dist/{chunk-EW6RNWSH.js.map → chunk-GVN5SZLX.js.map} +0 -0
  993. /package/dist/{chunk-KVFEZDBO.js.map → chunk-H3T7IWNA.js.map} +0 -0
  994. /package/dist/{chunk-I6VBHT7S.js.map → chunk-HAX4LCR5.js.map} +0 -0
  995. /package/dist/{chunk-OBMCZO7E.js.map → chunk-HC4JFZVU.js.map} +0 -0
  996. /package/dist/{chunk-UJUQ2QOX.js.map → chunk-HEFPPMBQ.js.map} +0 -0
  997. /package/dist/{chunk-DOFJZ2JU.js.map → chunk-HNLR7Q4Z.js.map} +0 -0
  998. /package/dist/{chunk-GE33BGB7.js.map → chunk-HSOXMJOT.js.map} +0 -0
  999. /package/dist/{chunk-AB5MBIXY.js.map → chunk-I4MRDSUF.js.map} +0 -0
  1000. /package/dist/{chunk-AFBJTUFK.js.map → chunk-I4QEJ62Y.js.map} +0 -0
  1001. /package/dist/{chunk-6ED2YWBT.js.map → chunk-I5B5L6Q4.js.map} +0 -0
  1002. /package/dist/{chunk-C5QCAOES.js.map → chunk-I5QZJODL.js.map} +0 -0
  1003. /package/dist/{chunk-76ERNKIZ.js.map → chunk-I7ITSXSJ.js.map} +0 -0
  1004. /package/dist/{chunk-OMH7R6I3.js.map → chunk-I7XIZRFD.js.map} +0 -0
  1005. /package/dist/{chunk-E337C2VK.js.map → chunk-IDANQPRH.js.map} +0 -0
  1006. /package/dist/{chunk-3FD76LXM.js.map → chunk-IFB3WJ36.js.map} +0 -0
  1007. /package/dist/{chunk-ZIT5KD4Q.js.map → chunk-IHTAKKTK.js.map} +0 -0
  1008. /package/dist/{chunk-QHNVNR7B.js.map → chunk-ILDXWY37.js.map} +0 -0
  1009. /package/dist/{chunk-GQ67HSJY.js.map → chunk-IMDQUHBJ.js.map} +0 -0
  1010. /package/dist/{chunk-DSXVY5WZ.js.map → chunk-IMZCQBOT.js.map} +0 -0
  1011. /package/dist/{chunk-WEZ5PXZP.js.map → chunk-IXPTECSC.js.map} +0 -0
  1012. /package/dist/{chunk-NY2QWROL.js.map → chunk-J255A3N5.js.map} +0 -0
  1013. /package/dist/{chunk-O2UWH5RG.js.map → chunk-J5F5HPPW.js.map} +0 -0
  1014. /package/dist/{chunk-VIEFJ2DM.js.map → chunk-JEA3QDX7.js.map} +0 -0
  1015. /package/dist/{chunk-TF4ZVJLI.js.map → chunk-JEUPAVYY.js.map} +0 -0
  1016. /package/dist/{chunk-ZG447FSS.js.map → chunk-JKHKLL5W.js.map} +0 -0
  1017. /package/dist/{chunk-FQFKHNC7.js.map → chunk-JQL7ZH6C.js.map} +0 -0
  1018. /package/dist/{chunk-776QZ573.js.map → chunk-JWB44UGJ.js.map} +0 -0
  1019. /package/dist/{chunk-ICNNNOXE.js.map → chunk-JZ4NLCAP.js.map} +0 -0
  1020. /package/dist/{chunk-TNKWOUWP.js.map → chunk-K2A5PXQ5.js.map} +0 -0
  1021. /package/dist/{chunk-SRFARKXC.js.map → chunk-K56XV3C3.js.map} +0 -0
  1022. /package/dist/{chunk-QAJ53XBW.js.map → chunk-K6GAXXVA.js.map} +0 -0
  1023. /package/dist/{chunk-MF3ZFB4H.js.map → chunk-KCBMFSMS.js.map} +0 -0
  1024. /package/dist/{chunk-VLXM36VS.js.map → chunk-KF2FV3ZJ.js.map} +0 -0
  1025. /package/dist/{chunk-YSVD5HI4.js.map → chunk-KJD65EJP.js.map} +0 -0
  1026. /package/dist/{chunk-K42OUZQ3.js.map → chunk-KLEUWIMZ.js.map} +0 -0
  1027. /package/dist/{chunk-PENGLDR5.js.map → chunk-KODELWYT.js.map} +0 -0
  1028. /package/dist/{chunk-TZAO65I4.js.map → chunk-KRDR5RJD.js.map} +0 -0
  1029. /package/dist/{chunk-KHJ5PXFM.js.map → chunk-KUDGXAF7.js.map} +0 -0
  1030. /package/dist/{chunk-6H4SJBPE.js.map → chunk-KYS77RPN.js.map} +0 -0
  1031. /package/dist/{chunk-OWAYJ2OV.js.map → chunk-L7YTNTIK.js.map} +0 -0
  1032. /package/dist/{chunk-YYLMZLI6.js.map → chunk-LHPNABDH.js.map} +0 -0
  1033. /package/dist/{chunk-LM2W5YAT.js.map → chunk-MFROMEKA.js.map} +0 -0
  1034. /package/dist/{chunk-AXBSYWKX.js.map → chunk-MIHN76LX.js.map} +0 -0
  1035. /package/dist/{chunk-4LPOWQJY.js.map → chunk-MIYFS2XN.js.map} +0 -0
  1036. /package/dist/{chunk-KKI55ZMW.js.map → chunk-MJUCFQMS.js.map} +0 -0
  1037. /package/dist/{chunk-ZUDOVDKR.js.map → chunk-MM4FNWI4.js.map} +0 -0
  1038. /package/dist/{chunk-M4SDVTKJ.js.map → chunk-MNZG4OHU.js.map} +0 -0
  1039. /package/dist/{chunk-EILSAQVJ.js.map → chunk-N6AACDUW.js.map} +0 -0
  1040. /package/dist/{chunk-BM3NEZ6X.js.map → chunk-NC55IFN3.js.map} +0 -0
  1041. /package/dist/{chunk-MJJGJMYJ.js.map → chunk-NC7PVOEK.js.map} +0 -0
  1042. /package/dist/{chunk-LA5T52RM.js.map → chunk-NCYMNCJO.js.map} +0 -0
  1043. /package/dist/{chunk-HLOEPV5C.js.map → chunk-ND2BXV3P.js.map} +0 -0
  1044. /package/dist/{chunk-UJDOWCQ3.js.map → chunk-NDBTFUO6.js.map} +0 -0
  1045. /package/dist/{chunk-K5TOVX5A.js.map → chunk-NDQJZ7HF.js.map} +0 -0
  1046. /package/dist/{chunk-35737UT4.js.map → chunk-NGJJJPZZ.js.map} +0 -0
  1047. /package/dist/{chunk-42CMQ5VR.js.map → chunk-NJTSNNE7.js.map} +0 -0
  1048. /package/dist/{chunk-FBTJKSTM.js.map → chunk-NRTE7DNV.js.map} +0 -0
  1049. /package/dist/{chunk-YT3WGNG6.js.map → chunk-NULUNM7H.js.map} +0 -0
  1050. /package/dist/{chunk-7XOVTPDI.js.map → chunk-NUNZS36W.js.map} +0 -0
  1051. /package/dist/{chunk-FC2FTSK3.js.map → chunk-NW53H5RW.js.map} +0 -0
  1052. /package/dist/{chunk-TW3LKRJF.js.map → chunk-NXCMHIKI.js.map} +0 -0
  1053. /package/dist/{chunk-CGK6ALQU.js.map → chunk-O3LKCBP5.js.map} +0 -0
  1054. /package/dist/{chunk-QIK2Q6N5.js.map → chunk-O6N4ABCA.js.map} +0 -0
  1055. /package/dist/{chunk-73NXYYWE.js.map → chunk-O732GAFC.js.map} +0 -0
  1056. /package/dist/{chunk-R3J2PTVQ.js.map → chunk-OF4TIKYC.js.map} +0 -0
  1057. /package/dist/{chunk-BUBNGKWG.js.map → chunk-OMPVOMPP.js.map} +0 -0
  1058. /package/dist/{chunk-4OXI6HCV.js.map → chunk-OPJJSKUK.js.map} +0 -0
  1059. /package/dist/{chunk-4Y6BK7IU.js.map → chunk-OPWCMA4D.js.map} +0 -0
  1060. /package/dist/{chunk-ADNMXBCX.js.map → chunk-ORJPS5VN.js.map} +0 -0
  1061. /package/dist/{chunk-SKMNW4SW.js.map → chunk-OSY5K7L7.js.map} +0 -0
  1062. /package/dist/{chunk-L4I665WK.js.map → chunk-OV6QJRT4.js.map} +0 -0
  1063. /package/dist/{chunk-7O5CGGIQ.js.map → chunk-OVKYVZMW.js.map} +0 -0
  1064. /package/dist/{chunk-7BYWOFVH.js.map → chunk-OZCBM3UC.js.map} +0 -0
  1065. /package/dist/{chunk-ALVRWCXE.js.map → chunk-P3A2EINJ.js.map} +0 -0
  1066. /package/dist/{chunk-BZO5ZMUP.js.map → chunk-PTAG4PDC.js.map} +0 -0
  1067. /package/dist/{chunk-QHHSUR2Y.js.map → chunk-PTF5B7TJ.js.map} +0 -0
  1068. /package/dist/{chunk-O2IOPP3R.js.map → chunk-Q3DPEYX4.js.map} +0 -0
  1069. /package/dist/{chunk-G7FU6PUA.js.map → chunk-QB2KMIDP.js.map} +0 -0
  1070. /package/dist/{chunk-64PO2WXU.js.map → chunk-QCSJ4CWE.js.map} +0 -0
  1071. /package/dist/{chunk-YYICQDK4.js.map → chunk-QIOQ2NPQ.js.map} +0 -0
  1072. /package/dist/{chunk-NB2HMRT2.js.map → chunk-QK5EFEUT.js.map} +0 -0
  1073. /package/dist/{chunk-366XZ4PM.js.map → chunk-QPQBLYQJ.js.map} +0 -0
  1074. /package/dist/{chunk-Q6XQ2R37.js.map → chunk-QPSGCC5D.js.map} +0 -0
  1075. /package/dist/{chunk-JJZPLGIP.js.map → chunk-QZAAUQRN.js.map} +0 -0
  1076. /package/dist/{chunk-VGUN6VB2.js.map → chunk-RGBI63KJ.js.map} +0 -0
  1077. /package/dist/{chunk-LRN6GYAZ.js.map → chunk-RLBKLAEY.js.map} +0 -0
  1078. /package/dist/{chunk-F7U3QPZ3.js.map → chunk-RMFKVOM7.js.map} +0 -0
  1079. /package/dist/{chunk-Q4EFRI6X.js.map → chunk-ROKQU7WG.js.map} +0 -0
  1080. /package/dist/{chunk-7QOHRZ67.js.map → chunk-RPVREAU7.js.map} +0 -0
  1081. /package/dist/{chunk-VGWWEVSD.js.map → chunk-RQKLF42C.js.map} +0 -0
  1082. /package/dist/{chunk-2VTTKH23.js.map → chunk-SEO7TICN.js.map} +0 -0
  1083. /package/dist/{chunk-3QNRBEYH.js.map → chunk-SHHJCL7X.js.map} +0 -0
  1084. /package/dist/{chunk-E6SQKHAU.js.map → chunk-SIRLACNZ.js.map} +0 -0
  1085. /package/dist/{chunk-H2TCRX3H.js.map → chunk-SKPHMYAA.js.map} +0 -0
  1086. /package/dist/{chunk-YDCUBUWH.js.map → chunk-SODC7T6L.js.map} +0 -0
  1087. /package/dist/{chunk-TNYFHKVV.js.map → chunk-SQJIKMN3.js.map} +0 -0
  1088. /package/dist/{chunk-DO74DQC7.js.map → chunk-SVINDKVW.js.map} +0 -0
  1089. /package/dist/{chunk-CPYGO76Q.js.map → chunk-SYCDHPZF.js.map} +0 -0
  1090. /package/dist/{chunk-UQ3IM6FY.js.map → chunk-T2QX3FDP.js.map} +0 -0
  1091. /package/dist/{chunk-NWGNFN3N.js.map → chunk-T3OWFVMS.js.map} +0 -0
  1092. /package/dist/{chunk-N3OARGH2.js.map → chunk-T6XI5FLY.js.map} +0 -0
  1093. /package/dist/{chunk-MQG7RV3B.js.map → chunk-T7OXJZCX.js.map} +0 -0
  1094. /package/dist/{chunk-2T7DX6KR.js.map → chunk-TAT5USZN.js.map} +0 -0
  1095. /package/dist/{chunk-ICX64J4U.js.map → chunk-TPQTRNER.js.map} +0 -0
  1096. /package/dist/{chunk-D2TOWEYH.js.map → chunk-TUIN4MB7.js.map} +0 -0
  1097. /package/dist/{chunk-LQDUHU3Y.js.map → chunk-TX3VECZU.js.map} +0 -0
  1098. /package/dist/{chunk-TG7DADJR.js.map → chunk-TXLIEOJX.js.map} +0 -0
  1099. /package/dist/{chunk-2ZVRJRXC.js.map → chunk-U3DN4HEY.js.map} +0 -0
  1100. /package/dist/{chunk-PSMAWRPL.js.map → chunk-U7XM7CB4.js.map} +0 -0
  1101. /package/dist/{chunk-4TQL3WP2.js.map → chunk-UJK53QFL.js.map} +0 -0
  1102. /package/dist/{chunk-RBRX5ZS3.js.map → chunk-UMTXA2TH.js.map} +0 -0
  1103. /package/dist/{chunk-36MIDGAH.js.map → chunk-UPDSXFK5.js.map} +0 -0
  1104. /package/dist/{chunk-OYXBFSGK.js.map → chunk-UTIAXH52.js.map} +0 -0
  1105. /package/dist/{chunk-5WUN7XPD.js.map → chunk-UVN5TMHU.js.map} +0 -0
  1106. /package/dist/{chunk-UYE47LO6.js.map → chunk-VGYXW3VG.js.map} +0 -0
  1107. /package/dist/{chunk-IKUNOX7F.js.map → chunk-VS7AHPCZ.js.map} +0 -0
  1108. /package/dist/{chunk-MYUFMVCH.js.map → chunk-VTTAJOQ7.js.map} +0 -0
  1109. /package/dist/{chunk-K63HGHZX.js.map → chunk-VWPOLUAO.js.map} +0 -0
  1110. /package/dist/{chunk-GA4YEAMX.js.map → chunk-X3MWB2QU.js.map} +0 -0
  1111. /package/dist/{chunk-I36GSRUJ.js.map → chunk-X6KAJI3V.js.map} +0 -0
  1112. /package/dist/{chunk-IKMUFDVS.js.map → chunk-XBLRHV5R.js.map} +0 -0
  1113. /package/dist/{chunk-XOSQP3YA.js.map → chunk-XDFP2LMW.js.map} +0 -0
  1114. /package/dist/{chunk-MW7Y3T55.js.map → chunk-XEQMZB3C.js.map} +0 -0
  1115. /package/dist/{chunk-B3LMRTRF.js.map → chunk-XEYLT5VA.js.map} +0 -0
  1116. /package/dist/{chunk-UI4HI5QK.js.map → chunk-XHIQ5I6N.js.map} +0 -0
  1117. /package/dist/{chunk-U6M4LS3M.js.map → chunk-XLH7QY2R.js.map} +0 -0
  1118. /package/dist/{chunk-OSA5EQG5.js.map → chunk-XWFAMUZQ.js.map} +0 -0
  1119. /package/dist/{chunk-6MT3HHUB.js.map → chunk-Y4OBB2VN.js.map} +0 -0
  1120. /package/dist/{chunk-CZP5QXNB.js.map → chunk-YCVD6CI3.js.map} +0 -0
  1121. /package/dist/{chunk-APW4T4SW.js.map → chunk-YENLNISG.js.map} +0 -0
  1122. /package/dist/{chunk-JWPA6ZPZ.js.map → chunk-YIRVLKAX.js.map} +0 -0
  1123. /package/dist/{chunk-LQ62ECE6.js.map → chunk-YL73CVNK.js.map} +0 -0
  1124. /package/dist/{chunk-ILKDYBON.js.map → chunk-YLS6QE5G.js.map} +0 -0
  1125. /package/dist/{chunk-YBKVGLQR.js.map → chunk-YPWU5KPE.js.map} +0 -0
  1126. /package/dist/{chunk-IKJLSBUI.js.map → chunk-YQXTDZSU.js.map} +0 -0
  1127. /package/dist/{chunk-TPMZBOFH.js.map → chunk-YSJEAAOL.js.map} +0 -0
  1128. /package/dist/{chunk-W3BFRR2G.js.map → chunk-YWIFM7D7.js.map} +0 -0
  1129. /package/dist/{chunk-WTJ4PLMU.js.map → chunk-YWVI6ZMK.js.map} +0 -0
  1130. /package/dist/{chunk-5KWMYPJV.js.map → chunk-Z4FMAFNH.js.map} +0 -0
  1131. /package/dist/{chunk-W5OWKVZG.js.map → chunk-Z654FWNU.js.map} +0 -0
  1132. /package/dist/{chunk-5FH5LQVS.js.map → chunk-Z7Y523PS.js.map} +0 -0
  1133. /package/dist/{chunk-HLL4PBO7.js.map → chunk-ZD67RM6G.js.map} +0 -0
  1134. /package/dist/{chunk-IVYJX3OY.js.map → chunk-ZEG4VPBL.js.map} +0 -0
  1135. /package/dist/{chunk-K6R5T44I.js.map → chunk-ZLYCOBHW.js.map} +0 -0
  1136. /package/dist/{chunk-VADHIT26.js.map → chunk-ZNJ5MTXV.js.map} +0 -0
  1137. /package/dist/{chunk-2KYQC4T5.js.map → chunk-ZSGY3H53.js.map} +0 -0
  1138. /package/dist/{chunk-BKP43KK4.js.map → chunk-ZTPXACWB.js.map} +0 -0
  1139. /package/dist/{chunk-JCY4CMDH.js.map → chunk-ZUA3JMI6.js.map} +0 -0
  1140. /package/dist/{chunk-IGVVXLKJ.js.map → chunk-ZYAZUPPV.js.map} +0 -0
  1141. /package/dist/{computer-viewer-LPZ763KF.js.map → computer-viewer-TDDO25AV.js.map} +0 -0
  1142. /package/dist/{embedded-new-voice-YVMKSLKJ.js.map → embedded-new-voice-2G3VLPVQ.js.map} +0 -0
  1143. /package/dist/{embedded-voice-BJPQFXSU.js.map → embedded-voice-T5IWOWGD.js.map} +0 -0
  1144. /package/dist/{fleet-decision-row-AA4H5CDT.js.map → fleet-decision-row-WM64KXP3.js.map} +0 -0
  1145. /package/dist/{model-policy-picker-menu-HSMWVO4P.js.map → model-policy-picker-menu-SMC6J6QN.js.map} +0 -0
  1146. /package/dist/{payment-page-card-3LTSFJGN.js.map → payment-page-card-G4U63KUV.js.map} +0 -0
  1147. /package/dist/{platform-activity-row-5VYV6TX4.js.map → platform-activity-row-BUZGZAKZ.js.map} +0 -0
  1148. /package/dist/{queue-surface-implementation-NXHZUKD2.js.map → queue-surface-implementation-4KUZ4PJV.js.map} +0 -0
  1149. /package/dist/{sandbox-files-YCMLQUFU.js.map → sandbox-files-ESDMOFSD.js.map} +0 -0
  1150. /package/dist/{session-connect-cards-KSQLMRM5.js.map → session-connect-cards-Q53KMMYY.js.map} +0 -0
  1151. /package/dist/{session-realtime-ZR6JLG3Y.js.map → session-realtime-CF3I35WJ.js.map} +0 -0
  1152. /package/dist/{timeline-annotation-markers-YAHDPWVG.js.map → timeline-annotation-markers-CJK4RYZ4.js.map} +0 -0
  1153. /package/dist/{timeline-annotation-selection-KHXNCEJP.js.map → timeline-annotation-selection-67GF5H26.js.map} +0 -0
  1154. /package/dist/{timeline-annotations-dialog-Y4XD3N7B.js.map → timeline-annotations-dialog-ONJPQDJQ.js.map} +0 -0
@@ -1,1788 +0,0 @@
1
- "use client";
2
- import {
3
- ConnectionLogo
4
- } from "./chunk-MF3ZFB4H.js";
5
- import {
6
- ConnectSetup,
7
- accountServiceCapability,
8
- capabilityConnectProviderId,
9
- connectionServicePresentation,
10
- gmail_default,
11
- isServiceConnectProvider
12
- } from "./chunk-PENGLDR5.js";
13
- import {
14
- McpConnectionCard
15
- } from "./chunk-EILSAQVJ.js";
16
- import {
17
- mcpConnectionDiscoveryState,
18
- useConnect
19
- } from "./chunk-GQ67HSJY.js";
20
- import {
21
- useNobodyToShareWith
22
- } from "./chunk-RNC6B4BN.js";
23
- import {
24
- copyTextToClipboard
25
- } from "./chunk-PEHTX3V7.js";
26
- import {
27
- useOpenGeniText
28
- } from "./chunk-TNUSPXPW.js";
29
-
30
- // src/capability-catalog-row.tsx
31
- import { AlertTriangleIcon, CheckIcon, Loader2Icon, PlusIcon } from "lucide-react";
32
- import { jsx, jsxs } from "react/jsx-runtime";
33
- var labels = (t) => ({
34
- available: t("capabilityCatalogRow.availableToAdd"),
35
- added: t("capabilityCatalogRow.added"),
36
- attention: t("capabilityCatalogRow.needsAttention"),
37
- unavailable: t("capabilityCatalogRow.unavailable"),
38
- loading: t("capabilityCatalogRow.working")
39
- });
40
- function CapabilityCatalogIndicator({
41
- status = "available",
42
- label,
43
- showLabel = false
44
- }) {
45
- const t = useOpenGeniText();
46
- const Icon = status === "added" ? CheckIcon : status === "attention" || status === "unavailable" ? AlertTriangleIcon : status === "loading" ? Loader2Icon : PlusIcon;
47
- return /* @__PURE__ */ jsxs("span", { className: "og-capability-catalog-indicator", "data-status": status, children: [
48
- /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" }),
49
- /* @__PURE__ */ jsx(
50
- "span",
51
- {
52
- className: showLabel || status === "attention" || status === "unavailable" ? "og-capability-catalog-notice" : "og-capability-catalog-sr-only",
53
- children: label ?? labels(t)[status]
54
- }
55
- )
56
- ] });
57
- }
58
- function CapabilityCatalogRow({
59
- name,
60
- description,
61
- icon,
62
- status = "available",
63
- statusLabel,
64
- showStatusLabel = false,
65
- onOpen,
66
- className = "",
67
- ...props
68
- }) {
69
- return /* @__PURE__ */ jsxs(
70
- "button",
71
- {
72
- ...props,
73
- type: "button",
74
- className: `og-capability-catalog-row ${className}`,
75
- onClick: onOpen,
76
- children: [
77
- icon ? /* @__PURE__ */ jsx("span", { className: "og-capability-catalog-icon", children: icon }) : null,
78
- /* @__PURE__ */ jsxs("span", { className: "og-capability-catalog-copy", children: [
79
- /* @__PURE__ */ jsx("strong", { children: name }),
80
- description ? /* @__PURE__ */ jsx("span", { children: description }) : null
81
- ] }),
82
- /* @__PURE__ */ jsx(CapabilityCatalogIndicator, { status, label: statusLabel, showLabel: showStatusLabel })
83
- ]
84
- }
85
- );
86
- }
87
-
88
- // src/skill-discovery.tsx
89
- import { useEffect, useState } from "react";
90
-
91
- // src/discovery-cache.ts
92
- function createDiscoveryCache(ttlMs = 6e4, capacity = 64) {
93
- const clients = /* @__PURE__ */ new WeakMap();
94
- return {
95
- peek(client, key) {
96
- const entry = clients.get(client)?.get(key);
97
- return entry && entry.expires > Date.now() ? entry.value : void 0;
98
- },
99
- read(client, key, fetch) {
100
- let entries = clients.get(client);
101
- if (!entries) {
102
- entries = /* @__PURE__ */ new Map();
103
- clients.set(client, entries);
104
- }
105
- const existing = entries.get(key);
106
- if (existing && existing.expires > Date.now()) return existing.pending;
107
- entries.delete(key);
108
- while (entries.size >= capacity) entries.delete(entries.keys().next().value);
109
- const entry = {
110
- expires: Date.now() + ttlMs,
111
- value: void 0,
112
- pending: Promise.resolve().then(fetch)
113
- };
114
- entries.set(key, entry);
115
- entry.pending = entry.pending.then(
116
- (value) => {
117
- entry.value = value;
118
- entry.expires = Date.now() + ttlMs;
119
- return value;
120
- },
121
- (error) => {
122
- if (entries.get(key) === entry) entries.delete(key);
123
- throw error;
124
- }
125
- );
126
- return entry.pending;
127
- }
128
- };
129
- }
130
-
131
- // src/skill-discovery.tsx
132
- import { BookOpenIcon } from "lucide-react";
133
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
134
- var discoveryCache = createDiscoveryCache();
135
- function SkillDiscovery(props) {
136
- const t = useOpenGeniText();
137
- const query = props.query.trim();
138
- const discoveryQuery = query || "agent";
139
- return /* @__PURE__ */ jsxs2("section", { className: "og-skill-discovery", "aria-label": t("skillDiscovery.discoverSkills"), children: [
140
- /* @__PURE__ */ jsxs2("header", { children: [
141
- /* @__PURE__ */ jsx2("h3", { children: props.resultLimit ? t("skillDiscovery.skills") : query ? t("skillDiscovery.searchSkills") : t("skillDiscovery.browseSkills") }),
142
- !props.resultLimit ? /* @__PURE__ */ jsx2(
143
- "a",
144
- {
145
- href: "https://skills.sh/",
146
- target: "_blank",
147
- rel: "noopener noreferrer",
148
- className: "og-skill-discovery-browse",
149
- children: t("skillDiscovery.browseSkillsSh")
150
- }
151
- ) : null
152
- ] }),
153
- !query ? /* @__PURE__ */ jsx2("p", { children: t("skillDiscovery.popularOnSkillsSh") }) : query.length < 2 ? /* @__PURE__ */ jsx2("p", { children: t("skillDiscovery.enterAtLeastTwoCharacters") }) : null,
154
- /* @__PURE__ */ jsx2(
155
- DiscoveryResults,
156
- {
157
- ...props,
158
- query: discoveryQuery
159
- },
160
- `${props.workspaceId}:${discoveryQuery}`
161
- )
162
- ] });
163
- }
164
- var keepText = (value) => value;
165
- var DEFAULT_ICON = /* @__PURE__ */ jsx2(BookOpenIcon, { "aria-hidden": "true" });
166
- var EMPTY_LOCAL_SKILLS = [];
167
- var EMPTY_INSTALLED_SKILLS = [];
168
- function DiscoveryResults({
169
- client,
170
- workspaceId,
171
- query,
172
- canManage,
173
- onImport,
174
- resultLimit,
175
- onShowMore,
176
- localSkills = EMPTY_LOCAL_SKILLS,
177
- installedSkills = EMPTY_INSTALLED_SKILLS,
178
- formatName = keepText,
179
- formatSource = keepText,
180
- icon = DEFAULT_ICON
181
- }) {
182
- const t = useOpenGeniText();
183
- const cacheKey = JSON.stringify([workspaceId, query]);
184
- const cached = discoveryCache.peek(client, cacheKey);
185
- const [result, setResult] = useState(cached ?? null);
186
- const [loading, setLoading] = useState(query.length >= 2 && !cached);
187
- const [error, setError] = useState(false);
188
- const [retry, setRetry] = useState(0);
189
- useEffect(() => {
190
- let active = true;
191
- setError(false);
192
- if (query.length < 2) return;
193
- const existing = discoveryCache.peek(client, cacheKey);
194
- setLoading(!existing);
195
- let timer;
196
- const search = async (attempt) => {
197
- try {
198
- const data = await discoveryCache.read(
199
- client,
200
- cacheKey,
201
- () => client.searchPublicSkills(workspaceId, query)
202
- );
203
- if (!active) return;
204
- setResult(data);
205
- setLoading(false);
206
- } catch (cause) {
207
- if (!active) return;
208
- const status = typeof cause === "object" && cause !== null && "status" in cause ? cause.status : void 0;
209
- const transient = cause instanceof TypeError || typeof status === "number" && status >= 500 && status <= 599;
210
- if (attempt === 0 && transient) {
211
- timer = setTimeout(() => void search(1), 750);
212
- return;
213
- }
214
- setError(true);
215
- setLoading(false);
216
- }
217
- };
218
- timer = setTimeout(() => void search(0), existing ? 0 : 300);
219
- return () => {
220
- active = false;
221
- clearTimeout(timer);
222
- };
223
- }, [client, workspaceId, query, cacheKey, retry]);
224
- const remoteSkills = result?.items.filter(
225
- (skill) => !localSkills.some((local) => local.name.toLowerCase() === skill.name.toLowerCase())
226
- ) ?? [];
227
- return /* @__PURE__ */ jsxs2("div", { "aria-busy": loading, children: [
228
- /* @__PURE__ */ jsxs2("div", { className: "og-skill-discovery-grid", children: [
229
- localSkills.slice(0, resultLimit).map((skill) => /* @__PURE__ */ jsx2(
230
- CapabilityCatalogRow,
231
- {
232
- name: skill.name,
233
- description: skill.description,
234
- icon,
235
- status: skill.status ?? "added",
236
- statusLabel: skill.statusLabel,
237
- onOpen: skill.onOpen
238
- },
239
- skill.id
240
- )),
241
- remoteSkills.slice(
242
- 0,
243
- resultLimit === void 0 ? void 0 : Math.max(0, resultLimit - localSkills.length)
244
- ).map((skill) => {
245
- const installed = installedSkills.some(
246
- (entry) => entry.sourceUrl.replace(/\/$/, "").toLowerCase() === skill.url.toLowerCase() || entry.repositoryUrl.replace(/\/$/, "").toLowerCase() === `https://github.com/${skill.source}`.toLowerCase() && entry.name.toLowerCase() === skill.name.toLowerCase()
247
- );
248
- return /* @__PURE__ */ jsx2(
249
- CapabilityCatalogRow,
250
- {
251
- disabled: !canManage,
252
- name: formatName(skill.name),
253
- description: formatSource(skill.source),
254
- icon,
255
- status: !canManage ? "unavailable" : installed ? "added" : "available",
256
- statusLabel: !canManage ? t("skillDiscovery.adminRequired") : installed ? t("skillDiscovery.installed") : t("skillDiscovery.availableToAdd"),
257
- onOpen: () => onImport(skill.url)
258
- },
259
- skill.id
260
- );
261
- })
262
- ] }),
263
- resultLimit && remoteSkills.length + localSkills.length > resultLimit && !loading ? /* @__PURE__ */ jsx2("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("skillDiscovery.viewAllSkills") }) : null,
264
- loading ? /* @__PURE__ */ jsx2("p", { role: "status", children: t("skillDiscovery.loadingSkills") }) : null,
265
- error ? /* @__PURE__ */ jsxs2("div", { role: "alert", className: "og-skill-discovery-error", children: [
266
- t("skillDiscovery.couldNotLoadSkills"),
267
- /* @__PURE__ */ jsx2("button", { type: "button", onClick: () => setRetry((value) => value + 1), children: t("skillDiscovery.retry") })
268
- ] }) : null,
269
- result && !remoteSkills.length && !localSkills.length && !loading && !error ? /* @__PURE__ */ jsx2("p", { role: "status", children: t("skillDiscovery.noMatchesForQuery", { query }) }) : null
270
- ] });
271
- }
272
-
273
- // src/connection-catalog.tsx
274
- import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
275
- function ConnectionOptionRow({ option }) {
276
- return /* @__PURE__ */ jsxs3("div", { className: "og-connection-catalog-action-row og-connection-option", children: [
277
- /* @__PURE__ */ jsx3(
278
- CapabilityCatalogRow,
279
- {
280
- name: option.name,
281
- description: option.description,
282
- status: option.state ?? (option.connected ? "added" : "available"),
283
- statusLabel: option.status,
284
- showStatusLabel: option.state === void 0,
285
- onOpen: option.onOpen
286
- }
287
- ),
288
- option.action ? /* @__PURE__ */ jsx3("span", { className: "og-connection-option-action", children: option.action }) : null
289
- ] });
290
- }
291
- function ConnectionServiceRow({ service }) {
292
- const t = useOpenGeniText();
293
- if (!service.options.length) return null;
294
- const connected = service.options.filter((option) => option.connected).length;
295
- const attention = service.options.find(
296
- (option) => option.state === "attention" || option.state === "unavailable"
297
- );
298
- const groupState = attention?.state ?? (service.options.some((option) => option.state === "loading") ? "loading" : connected === service.options.length ? "added" : "available");
299
- const identity = /* @__PURE__ */ jsxs3(Fragment, { children: [
300
- /* @__PURE__ */ jsx3("span", { className: "og-capability-catalog-icon", children: service.logo }),
301
- /* @__PURE__ */ jsxs3("span", { className: "og-capability-catalog-copy", children: [
302
- /* @__PURE__ */ jsx3("strong", { children: service.name }),
303
- /* @__PURE__ */ jsx3("span", { children: service.options.length === 1 ? service.options[0]?.description : service.options.map((option) => option.name).join(" \xB7 ") })
304
- ] }),
305
- /* @__PURE__ */ jsx3(
306
- CapabilityCatalogIndicator,
307
- {
308
- status: groupState,
309
- label: attention?.status ?? t("connectionCatalog.connectedOfLengthAdded", {
310
- connected,
311
- length: service.options.length
312
- })
313
- }
314
- )
315
- ] });
316
- return service.options.length === 1 ? /* @__PURE__ */ jsxs3("div", { className: "og-connection-catalog-action-row", children: [
317
- /* @__PURE__ */ jsx3(
318
- CapabilityCatalogRow,
319
- {
320
- name: service.name,
321
- description: service.options[0].description,
322
- icon: service.logo,
323
- status: service.options[0].state ?? (connected ? "added" : "available"),
324
- statusLabel: service.options[0].status,
325
- showStatusLabel: service.options[0].state === void 0,
326
- onOpen: service.options[0].onOpen
327
- }
328
- ),
329
- service.options[0]?.action
330
- ] }) : /* @__PURE__ */ jsxs3("details", { className: "og-connection-catalog-service", children: [
331
- /* @__PURE__ */ jsxs3("summary", { className: "og-capability-catalog-row", children: [
332
- identity,
333
- /* @__PURE__ */ jsx3("span", { "aria-hidden": true, className: "og-connection-group-chevron", children: "\u2304" })
334
- ] }),
335
- /* @__PURE__ */ jsx3("div", { className: "og-connection-catalog-options", children: service.options.map((option) => /* @__PURE__ */ jsx3(ConnectionOptionRow, { option }, option.id)) })
336
- ] });
337
- }
338
- function ConnectionCatalog({
339
- services,
340
- query = "",
341
- columns = 1,
342
- grouped = true,
343
- resultLimit,
344
- onShowMore,
345
- className = "",
346
- emptyMessage: emptyMessageProp
347
- }) {
348
- const t = useOpenGeniText();
349
- const emptyMessage = emptyMessageProp === void 0 ? t("connectionCatalog.noConnectionsMatchYourSearch") : emptyMessageProp;
350
- const search = query.trim().toLowerCase();
351
- const entries = grouped ? services : services.flatMap(
352
- (service) => service.options.map((option) => ({
353
- ...service,
354
- id: `${service.id}/${option.id}`,
355
- name: service.options.length > 1 && option.name !== service.name ? `${service.name} \xB7 ${option.name}` : service.name,
356
- options: [option]
357
- }))
358
- );
359
- const visible = entries.filter(
360
- (service) => [service.name, ...service.options.flatMap((option) => [option.name, option.description ?? ""])].join(" ").toLowerCase().includes(search)
361
- );
362
- return /* @__PURE__ */ jsxs3(Fragment, { children: [
363
- /* @__PURE__ */ jsx3("div", { className: `og-connection-catalog ${className}`, "data-columns": columns, children: visible.length ? visible.slice(0, resultLimit).map((service) => /* @__PURE__ */ jsx3(ConnectionServiceRow, { service }, service.id)) : /* @__PURE__ */ jsx3("p", { role: "status", children: emptyMessage }) }),
364
- resultLimit && visible.length > resultLimit ? /* @__PURE__ */ jsx3("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("connectionCatalog.viewAllConnections") }) : null
365
- ] });
366
- }
367
-
368
- // src/connect-chooser.tsx
369
- import { useEffect as useEffect2, useState as useState2 } from "react";
370
- import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
371
- function ConnectChooser(props) {
372
- const [scope, setScope] = useState2(props.controller);
373
- const [generation, setGeneration] = useState2(0);
374
- if (scope !== props.controller) {
375
- setScope(props.controller);
376
- setGeneration(generation + 1);
377
- }
378
- return /* @__PURE__ */ jsx4(ScopedChooser, { ...props }, generation);
379
- }
380
- function ScopedChooser({
381
- controller,
382
- returnUrl,
383
- className,
384
- presentation = "select",
385
- customOnly = false,
386
- providerOnly = false,
387
- compact = false,
388
- initialProviderId = "",
389
- personalOnly = false
390
- }) {
391
- const t = useOpenGeniText();
392
- const view = useConnect(controller);
393
- const [catalog, setCatalog] = useState2(null);
394
- const [accounts, setAccounts] = useState2([]);
395
- const [failed, setFailed] = useState2(false);
396
- const [load, setLoad] = useState2(0);
397
- const [query, setQuery] = useState2("");
398
- const [providerId, setProviderId] = useState2(initialProviderId);
399
- const [ownership, setOwnership] = useState2("");
400
- useEffect2(() => {
401
- const abort = new AbortController();
402
- setCatalog(null);
403
- setAccounts([]);
404
- setFailed(false);
405
- setProviderId(initialProviderId);
406
- setOwnership("");
407
- void Promise.resolve().then(() => {
408
- abort.signal.throwIfAborted();
409
- return Promise.all([
410
- controller.transport.catalog(controller.workspaceId, { signal: abort.signal }),
411
- presentation === "catalog" ? controller.transport.accounts(controller.workspaceId, { signal: abort.signal }) : Promise.resolve([])
412
- ]);
413
- }).then(([providers, inventory]) => {
414
- if (!abort.signal.aborted) {
415
- setCatalog(
416
- structuredClone(
417
- providers.filter(
418
- (entry) => entry.readiness === "available" && entry.ownership.length > 0 && (!providerOnly || entry.family !== "mcp" && !entry.setup.some(
419
- (kind) => ["installation", "openapi", "graphql"].includes(kind)
420
- )) && (!customOnly || entry.family === "mcp" || entry.setup.some(
421
- (kind) => ["installation", "openapi", "graphql"].includes(kind)
422
- ))
423
- )
424
- )
425
- );
426
- setAccounts(structuredClone(inventory));
427
- const initial = providers.find((entry) => entry.id === initialProviderId);
428
- if (initial)
429
- setOwnership(
430
- initial.ownership.includes("personal") && ["google", "microsoft"].includes(initial.family) ? "personal" : initial.ownership.includes("workspace") ? "workspace" : initial.ownership[0] ?? ""
431
- );
432
- }
433
- }).catch(() => {
434
- if (!abort.signal.aborted) setFailed(true);
435
- });
436
- return () => abort.abort();
437
- }, [controller, load, presentation, customOnly, providerOnly, initialProviderId]);
438
- const provider = catalog?.find((entry) => entry.id === providerId);
439
- const onlyOwnership = provider ? personalOnly && provider.ownership.includes("personal") ? "personal" : provider.ownership.length === 1 ? provider.ownership[0] : null : null;
440
- const chosenOwnership = onlyOwnership ?? ownership;
441
- const canBegin = provider?.readiness === "available" && (chosenOwnership === "personal" || chosenOwnership === "workspace") && provider.ownership.includes(chosenOwnership);
442
- const submit = (event) => {
443
- event.preventDefault();
444
- if (!canBegin || view.busy || chosenOwnership !== "personal" && chosenOwnership !== "workspace")
445
- return;
446
- setFailed(false);
447
- try {
448
- void controller.begin({
449
- providerId,
450
- ownership: chosenOwnership,
451
- returnUrl,
452
- idempotencyKey: crypto.randomUUID()
453
- }).catch(() => setFailed(true));
454
- } catch {
455
- setFailed(true);
456
- }
457
- };
458
- if (compact && (!catalog || catalog.length === 0) && !failed) return null;
459
- return /* @__PURE__ */ jsxs4(
460
- "section",
461
- {
462
- className,
463
- "aria-label": t("connectChooser.chooseAConnection"),
464
- "aria-busy": view.busy || !catalog && !failed,
465
- children: [
466
- failed && /* @__PURE__ */ jsx4("p", { role: "alert", children: t("connectChooser.connectionsCouldNotBeLoaded") }),
467
- !catalog && !failed && /* @__PURE__ */ jsx4("p", { role: "status", children: t("connectChooser.loadingConnections") }),
468
- catalog?.length === 0 && /* @__PURE__ */ jsx4("p", { role: "status", children: t("connectChooser.noConnectionsAreAvailable") }),
469
- Boolean(catalog?.length) && /* @__PURE__ */ jsx4("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs4("fieldset", { disabled: view.busy, children: [
470
- /* @__PURE__ */ jsx4("legend", { hidden: customOnly || compact, children: presentation === "catalog" ? t("connectChooser.addAConnection") : t("connectChooser.providerAndOwnership") }),
471
- presentation === "catalog" && !provider ? /* @__PURE__ */ jsxs4(Fragment2, { children: [
472
- /* @__PURE__ */ jsxs4("label", { hidden: customOnly || compact, children: [
473
- t("connectChooser.searchConnections"),
474
- /* @__PURE__ */ jsx4(
475
- "input",
476
- {
477
- type: "search",
478
- placeholder: t("connectChooser.findAService"),
479
- value: query,
480
- onChange: (event) => setQuery(event.target.value)
481
- }
482
- )
483
- ] }),
484
- [
485
- {
486
- name: t("connectChooser.services"),
487
- entries: catalog.filter(
488
- (entry) => entry.readiness === "available" && entry.family !== "mcp" && !entry.setup.some(
489
- (kind) => ["installation", "openapi", "graphql"].includes(kind)
490
- )
491
- ),
492
- secondary: false
493
- },
494
- {
495
- name: t("connectChooser.customConnections"),
496
- entries: catalog.filter(
497
- (entry) => entry.readiness === "available" && (entry.family === "mcp" || entry.setup.some(
498
- (kind) => ["installation", "openapi", "graphql"].includes(kind)
499
- ))
500
- ),
501
- secondary: true
502
- }
503
- ].map((group) => {
504
- const entries = group.entries.filter(
505
- (entry) => entry.label.toLocaleLowerCase().includes(query.toLocaleLowerCase().trim())
506
- );
507
- if (!entries.length) return null;
508
- const rows = /* @__PURE__ */ jsx4(
509
- ConnectionCatalog,
510
- {
511
- services: entries.map((entry) => {
512
- const connected = accounts.some(
513
- (account) => account.providerId === entry.id && account.status === "connected"
514
- );
515
- return {
516
- id: entry.id,
517
- name: entry.label,
518
- logo: /* @__PURE__ */ jsx4(
519
- ConnectionLogo,
520
- {
521
- src: connectionServicePresentation(entry).logo,
522
- name: entry.label
523
- }
524
- ),
525
- options: [
526
- {
527
- id: entry.id,
528
- name: entry.label,
529
- status: connected ? t("connectChooser.connected") : entry.readiness === "available" ? t("connectChooser.connect") : t("connectChooser.unavailable"),
530
- state: connected ? "added" : entry.readiness === "available" ? "available" : "unavailable",
531
- connected,
532
- onOpen: () => {
533
- if (!view.busy) {
534
- setProviderId(entry.id);
535
- setOwnership(
536
- entry.ownership.length === 1 ? entry.ownership[0] : ""
537
- );
538
- }
539
- }
540
- }
541
- ]
542
- };
543
- })
544
- }
545
- );
546
- return group.secondary && !customOnly ? /* @__PURE__ */ jsxs4(
547
- "details",
548
- {
549
- className: "og-connect-secondary",
550
- open: query.trim() ? true : void 0,
551
- children: [
552
- /* @__PURE__ */ jsxs4("summary", { children: [
553
- group.name,
554
- /* @__PURE__ */ jsx4("span", { children: entries.length })
555
- ] }),
556
- rows
557
- ]
558
- },
559
- group.name
560
- ) : /* @__PURE__ */ jsx4("div", { children: rows }, group.name);
561
- }),
562
- !catalog.some(
563
- (entry) => entry.label.toLocaleLowerCase().includes(query.toLocaleLowerCase().trim())
564
- ) && /* @__PURE__ */ jsx4("p", { role: "status", children: t("connectChooser.noServicesMatchYourSearch") })
565
- ] }) : null,
566
- presentation === "catalog" && provider && !initialProviderId ? /* @__PURE__ */ jsx4(
567
- "button",
568
- {
569
- type: "button",
570
- onClick: () => {
571
- setProviderId("");
572
- setOwnership("");
573
- },
574
- children: t("connectChooser.backToConnections")
575
- }
576
- ) : null,
577
- /* @__PURE__ */ jsxs4("label", { hidden: presentation === "catalog", children: [
578
- t("connectChooser.provider"),
579
- /* @__PURE__ */ jsxs4(
580
- "select",
581
- {
582
- required: true,
583
- value: providerId,
584
- onChange: (event) => {
585
- setProviderId(event.target.value);
586
- setOwnership("");
587
- },
588
- children: [
589
- /* @__PURE__ */ jsx4("option", { value: "", disabled: true, children: t("connectChooser.chooseAProvider") }),
590
- catalog.map((entry) => /* @__PURE__ */ jsxs4(
591
- "option",
592
- {
593
- value: entry.id,
594
- disabled: entry.readiness !== "available" || entry.ownership.length === 0,
595
- children: [
596
- entry.label,
597
- " \u2014 ",
598
- entry.id,
599
- " (",
600
- entry.readiness.replaceAll("_", " "),
601
- ")"
602
- ]
603
- },
604
- entry.id
605
- ))
606
- ]
607
- }
608
- )
609
- ] }),
610
- provider && /* @__PURE__ */ jsxs4(Fragment2, { children: [
611
- /* @__PURE__ */ jsx4("strong", { children: presentation === "catalog" ? provider.label : null }),
612
- provider.readiness !== "available" && /* @__PURE__ */ jsx4("p", { role: "status", children: provider.reason ?? t("connectChooser.thisServiceIsNotAvailable") }),
613
- onlyOwnership ? null : /* @__PURE__ */ jsxs4("label", { children: [
614
- t("connectChooser.whoCanUseThisConnection"),
615
- /* @__PURE__ */ jsxs4(
616
- "select",
617
- {
618
- required: true,
619
- value: ownership,
620
- onChange: (event) => setOwnership(event.target.value),
621
- children: [
622
- /* @__PURE__ */ jsx4("option", { value: "", disabled: true, children: t("connectChooser.chooseOwnership") }),
623
- provider.ownership.map((choice) => /* @__PURE__ */ jsx4("option", { value: choice, children: choice === "personal" ? t("connectChooser.onlyMe") : t("connectChooser.everyoneInThisWorkspace") }, choice))
624
- ]
625
- }
626
- )
627
- ] })
628
- ] }),
629
- /* @__PURE__ */ jsx4(
630
- "button",
631
- {
632
- hidden: presentation === "catalog" && !provider,
633
- type: "submit",
634
- disabled: !canBegin,
635
- children: t("connectChooser.continue")
636
- }
637
- )
638
- ] }) }),
639
- /* @__PURE__ */ jsx4("button", { hidden: !failed, type: "button", disabled: view.busy, onClick: () => setLoad(load + 1), children: t("connectChooser.reloadProviders") })
640
- ]
641
- }
642
- );
643
- }
644
-
645
- // src/connect-accounts.tsx
646
- import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
647
-
648
- // src/connection-service-logo.tsx
649
- import { useEffect as useEffect3, useState as useState3 } from "react";
650
-
651
- // src/capability-logo-fallback.ts
652
- function capabilityLogoFallback(item) {
653
- if (item.id.startsWith("mcp:integrations-sh:gmailmcp-googleapis-com-") || item.mcpUrl === "https://gmailmcp.googleapis.com/mcp/v1")
654
- return gmail_default;
655
- const original = item.metadata?.originalLogoUrl;
656
- if (typeof original !== "string") return null;
657
- try {
658
- const url = new URL(original);
659
- return url.protocol === "https:" || url.protocol === "http:" ? url.href : null;
660
- } catch {
661
- return null;
662
- }
663
- }
664
-
665
- // src/connection-service-logo.tsx
666
- import { jsx as jsx5 } from "react/jsx-runtime";
667
- function ConnectionServiceLogo({
668
- client,
669
- item,
670
- name,
671
- fallback = null
672
- }) {
673
- const path = item?.logoAssetPath;
674
- const [image, setImage] = useState3(null);
675
- useEffect3(() => {
676
- if (!client || !path?.startsWith("catalog-assets/")) return;
677
- const abort = new AbortController();
678
- let url = null;
679
- void client.downloadCatalogAsset(path, { signal: abort.signal }).then((blob) => {
680
- if (!abort.signal.aborted && blob.type.startsWith("image/") && blob.size <= 2e6)
681
- url = URL.createObjectURL(blob);
682
- }).catch(() => {
683
- }).finally(() => {
684
- if (!abort.signal.aborted) setImage({ client, path, url });
685
- });
686
- return () => {
687
- abort.abort();
688
- if (url) URL.revokeObjectURL(url);
689
- };
690
- }, [client, path]);
691
- const current = image && image.client === client && image.path === path ? image : null;
692
- const loading = Boolean(client && path?.startsWith("catalog-assets/") && !current);
693
- return /* @__PURE__ */ jsx5(
694
- ConnectionLogo,
695
- {
696
- name,
697
- loading,
698
- src: current?.url ?? (loading ? null : (item ? capabilityLogoFallback(item) : null) ?? fallback)
699
- }
700
- );
701
- }
702
-
703
- // src/connect-account-identity.tsx
704
- import { Fragment as Fragment3, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
705
- function ConnectAccountIdentity({
706
- account,
707
- client,
708
- capabilities
709
- }) {
710
- const t = useOpenGeniText();
711
- const item = accountServiceCapability(account, capabilities);
712
- const service = connectionServicePresentation({ id: account.providerId, label: account.label });
713
- const name = item?.name ?? service.name;
714
- return /* @__PURE__ */ jsxs5(Fragment3, { children: [
715
- /* @__PURE__ */ jsx6(ConnectionServiceLogo, { client, item, name, fallback: service.logo }),
716
- /* @__PURE__ */ jsxs5("div", { children: [
717
- /* @__PURE__ */ jsx6("strong", { children: name }),
718
- /* @__PURE__ */ jsxs5("small", { children: [
719
- account.ownership === "personal" ? t("connectAccountIdentity.onlyYou") : t("connectAccountIdentity.workspaceConnection"),
720
- name !== account.label ? ` \xB7 ${account.label}` : ""
721
- ] })
722
- ] })
723
- ] });
724
- }
725
-
726
- // src/connection-skeleton.tsx
727
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
728
- function ConnectionSkeleton({ rows = 1, label }) {
729
- return /* @__PURE__ */ jsx7("div", { role: "status", "aria-label": label, className: "og-connection-skeleton", children: Array.from({ length: rows }, (_, index) => /* @__PURE__ */ jsxs6("div", { className: "og-connection-skeleton-row", "aria-hidden": "true", children: [
730
- /* @__PURE__ */ jsx7("span", { className: "og-connection-skeleton-mark" }),
731
- /* @__PURE__ */ jsxs6("span", { className: "og-connection-skeleton-copy", children: [
732
- /* @__PURE__ */ jsx7("span", {}),
733
- /* @__PURE__ */ jsx7("span", {})
734
- ] })
735
- ] }, index)) });
736
- }
737
-
738
- // src/connect-accounts.tsx
739
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
740
- function ConnectAccounts(props) {
741
- const [scope, setScope] = useState4(props.controller);
742
- const [generation, setGeneration] = useState4(0);
743
- if (scope !== props.controller) {
744
- setScope(props.controller);
745
- setGeneration(generation + 1);
746
- }
747
- return /* @__PURE__ */ jsx8(ScopedAccounts, { ...props }, generation);
748
- }
749
- function ScopedAccounts({
750
- controller,
751
- className,
752
- returnUrl,
753
- client,
754
- onDisconnected
755
- }) {
756
- const t = useOpenGeniText();
757
- const view = useConnect(controller);
758
- const [accounts, setAccounts] = useState4(null);
759
- const [selected, setSelected] = useState4(null);
760
- const [busy, setBusy] = useState4(false);
761
- const [error, setError] = useState4(false);
762
- const [reload, setReload] = useState4(0);
763
- const [catalog, setCatalog] = useState4(null);
764
- const mutation = useRef(null);
765
- useEffect4(() => () => mutation.current?.abort(), []);
766
- useEffect4(() => {
767
- const abort = new AbortController();
768
- setAccounts(null);
769
- setCatalog(null);
770
- setSelected(null);
771
- setError(false);
772
- void Promise.resolve().then(() => {
773
- abort.signal.throwIfAborted();
774
- return Promise.all([
775
- controller.transport.accounts(controller.workspaceId, { signal: abort.signal }),
776
- client?.listCapabilities(controller.workspaceId).catch(() => null) ?? null
777
- ]);
778
- }).then(([result, metadata]) => {
779
- if (!abort.signal.aborted) {
780
- setAccounts(structuredClone(result.filter((account) => account.status !== "disabled")));
781
- if (client && metadata) setCatalog({ client, items: metadata.items });
782
- }
783
- }).catch(() => {
784
- if (!abort.signal.aborted) setError(true);
785
- });
786
- return () => abort.abort();
787
- }, [client, controller, reload]);
788
- const disconnect = async (account) => {
789
- const expectedVersion = account.version;
790
- if (mutation.current || view.busy || expectedVersion === void 0 || !Number.isSafeInteger(expectedVersion) || expectedVersion < 1)
791
- return;
792
- const abort = new AbortController();
793
- mutation.current = abort;
794
- setBusy(true);
795
- setError(false);
796
- try {
797
- await controller.transport.disconnect(controller.workspaceId, account.id, {
798
- expectedVersion,
799
- signal: abort.signal
800
- });
801
- if (!abort.signal.aborted) {
802
- setReload((value) => value + 1);
803
- onDisconnected?.();
804
- }
805
- } catch {
806
- if (!abort.signal.aborted) {
807
- setAccounts(null);
808
- setError(true);
809
- }
810
- } finally {
811
- if (!abort.signal.aborted) {
812
- mutation.current = null;
813
- setBusy(false);
814
- setSelected(null);
815
- }
816
- }
817
- };
818
- const reconnect = async (account) => {
819
- if (!returnUrl || mutation.current || view.busy) return;
820
- setError(false);
821
- try {
822
- await controller.begin({
823
- providerId: account.providerId,
824
- ownership: account.ownership,
825
- reconnectAccountId: account.id,
826
- returnUrl,
827
- idempotencyKey: crypto.randomUUID()
828
- });
829
- } catch {
830
- setError(true);
831
- }
832
- };
833
- return /* @__PURE__ */ jsxs7(
834
- "section",
835
- {
836
- className,
837
- "aria-label": t("connectAccounts.connectedAccounts"),
838
- "aria-busy": busy || view.busy || !accounts && !error,
839
- children: [
840
- /* @__PURE__ */ jsx8("h3", { children: t("connectAccounts.yourConnections") }),
841
- error && /* @__PURE__ */ jsx8("p", { role: "alert", children: t("connectAccounts.accountStateCouldNotBe") }),
842
- !accounts && !error && /* @__PURE__ */ jsx8(ConnectionSkeleton, { label: t("connectAccounts.loadingAccounts") }),
843
- accounts?.length === 0 && /* @__PURE__ */ jsx8("p", { role: "status", children: t("connectAccounts.noConnectedAccounts") }),
844
- accounts && accounts.length > 0 && /* @__PURE__ */ jsx8("ul", { children: accounts.map((account) => /* @__PURE__ */ jsx8("li", { className: "og-connect-account", children: /* @__PURE__ */ jsxs7("details", { className: "og-connect-account-details", children: [
845
- /* @__PURE__ */ jsxs7("summary", { className: "og-connect-account-heading", children: [
846
- /* @__PURE__ */ jsx8(
847
- ConnectAccountIdentity,
848
- {
849
- account,
850
- client,
851
- capabilities: catalog?.client === client ? catalog?.items ?? [] : []
852
- }
853
- ),
854
- /* @__PURE__ */ jsx8("span", { className: "og-connect-account-status", "data-status": account.status, children: account.status === "connected" ? t("connectAccounts.connected") : account.status === "auth_needed" ? t("connectAccounts.reconnectNeeded") : t("connectAccounts.disconnected") }),
855
- /* @__PURE__ */ jsx8(
856
- "svg",
857
- {
858
- className: "og-connect-account-chevron",
859
- "aria-hidden": "true",
860
- width: "16",
861
- height: "16",
862
- viewBox: "0 0 24 24",
863
- fill: "none",
864
- stroke: "currentColor",
865
- strokeWidth: "1.5",
866
- children: /* @__PURE__ */ jsx8("path", { d: "m9 6 6 6-6 6" })
867
- }
868
- )
869
- ] }),
870
- /* @__PURE__ */ jsxs7("div", { className: "og-connect-account-actions", children: [
871
- returnUrl && account.status === "auth_needed" && /* @__PURE__ */ jsx8(
872
- "button",
873
- {
874
- type: "button",
875
- "aria-label": t("connectAccounts.reconnectLabel", { label: account.label }),
876
- disabled: busy || view.busy,
877
- onClick: () => void reconnect(account),
878
- children: t("connectAccounts.reconnect")
879
- }
880
- ),
881
- selected === `${account.providerId}:${account.id}` ? /* @__PURE__ */ jsxs7(
882
- "div",
883
- {
884
- role: "group",
885
- "aria-label": t("connectAccounts.disconnectLabel", { label: account.label }),
886
- children: [
887
- /* @__PURE__ */ jsx8("p", { children: t("connectAccounts.thisRemovesLocalOpengeniAccess") }),
888
- /* @__PURE__ */ jsx8(
889
- "button",
890
- {
891
- type: "button",
892
- disabled: busy || view.busy,
893
- onClick: () => void disconnect(account),
894
- children: t("connectAccounts.confirmDisconnect")
895
- }
896
- ),
897
- /* @__PURE__ */ jsx8("button", { type: "button", disabled: busy, onClick: () => setSelected(null), children: t("connectAccounts.keepAccount") })
898
- ]
899
- }
900
- ) : /* @__PURE__ */ jsx8(
901
- "button",
902
- {
903
- type: "button",
904
- "aria-label": t("connectAccounts.disconnectLabel", { label: account.label }),
905
- disabled: busy || view.busy || account.status === "disabled" || !Number.isSafeInteger(account.version) || account.version < 1,
906
- onClick: () => setSelected(`${account.providerId}:${account.id}`),
907
- children: t("connectAccounts.disconnect")
908
- }
909
- )
910
- ] })
911
- ] }) }, `${account.providerId}:${account.id}`)) }),
912
- /* @__PURE__ */ jsx8(
913
- "button",
914
- {
915
- hidden: !error,
916
- type: "button",
917
- disabled: busy,
918
- onClick: () => setReload((value) => value + 1),
919
- children: t("connectAccounts.reloadAccounts")
920
- }
921
- )
922
- ]
923
- }
924
- );
925
- }
926
-
927
- // src/connect-panel.tsx
928
- import { useState as useState6 } from "react";
929
-
930
- // src/connection-discovery.tsx
931
- import { useEffect as useEffect5, useRef as useRef2, useState as useState5 } from "react";
932
- import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
933
- function ConnectionDiscovery(props) {
934
- const [scope, setScope] = useState5({ client: props.client, controller: props.controller });
935
- const [generation, setGeneration] = useState5(0);
936
- if (scope.client !== props.client || scope.controller !== props.controller) {
937
- setScope({ client: props.client, controller: props.controller });
938
- setGeneration(generation + 1);
939
- }
940
- return /* @__PURE__ */ jsx9(ScopedDiscovery, { ...props }, `${generation}:${props.workspaceId}`);
941
- }
942
- function ScopedDiscovery({
943
- client,
944
- controller,
945
- workspaceId,
946
- returnUrl,
947
- onConfigured
948
- }) {
949
- const t = useOpenGeniText();
950
- const [providers, setProviders] = useState5(null);
951
- const [accounts, setAccounts] = useState5([]);
952
- const [selectedProvider, setSelectedProvider] = useState5(null);
953
- const [providerFailed, setProviderFailed] = useState5(false);
954
- const [items, setItems] = useState5(null);
955
- const [failed, setFailed] = useState5(false);
956
- const [connections, setConnections] = useState5([]);
957
- const [reload, setReload] = useState5(0);
958
- const [query, setQuery] = useState5("");
959
- const [limit, setLimit] = useState5(12);
960
- const [selected, setSelected] = useState5(null);
961
- const opener = useRef2(null);
962
- const alone = useNobodyToShareWith(client, workspaceId);
963
- useEffect5(() => {
964
- const abort = new AbortController();
965
- const read = async (operation) => {
966
- abort.signal.throwIfAborted();
967
- return operation();
968
- };
969
- setFailed(false);
970
- setSelectedProvider(null);
971
- setProviders(null);
972
- setItems(null);
973
- setProviderFailed(false);
974
- if (controller)
975
- void Promise.all([
976
- read(() => controller.transport.catalog(workspaceId, { signal: abort.signal })),
977
- read(() => controller.transport.accounts(workspaceId, { signal: abort.signal }))
978
- ]).then(([catalog, inventory]) => {
979
- if (!abort.signal.aborted) {
980
- setProviders(catalog.filter(isServiceConnectProvider));
981
- setAccounts(inventory);
982
- }
983
- }).catch(() => {
984
- if (!abort.signal.aborted) setProviderFailed(true);
985
- });
986
- void Promise.all([
987
- read(() => client.listCapabilities(workspaceId)),
988
- read(() => client.listConnections(workspaceId))
989
- ]).then(([catalog, inventory]) => {
990
- if (!abort.signal.aborted) {
991
- setConnections(inventory);
992
- setItems(
993
- catalog.items.filter(
994
- (item) => item.kind === "mcp" && item.authKind === "oauth2" && Boolean(item.mcpUrl ?? item.endpointUrl) && // The provider refuses self-registration and this deployment
995
- // has no operator client for it: Connect cannot succeed.
996
- (item.enabled || item.runtime?.operatorOAuthClient?.configured !== false)
997
- )
998
- );
999
- }
1000
- }).catch(() => {
1001
- if (!abort.signal.aborted) setFailed(true);
1002
- });
1003
- return () => {
1004
- abort.abort();
1005
- };
1006
- }, [client, controller, workspaceId, reload]);
1007
- const matches = items?.filter(
1008
- (item) => `${item.name} ${item.description ?? ""} ${item.providerDomain ?? ""}`.toLocaleLowerCase().includes(query.trim().toLocaleLowerCase())
1009
- ) ?? [];
1010
- const providerMatches = (providers ?? []).filter(
1011
- (provider) => !items?.some((item) => capabilityConnectProviderId(item) === provider.id) && provider.label.toLocaleLowerCase().includes(query.trim().toLocaleLowerCase())
1012
- );
1013
- const loading = !items && !failed || Boolean(controller && !providers && !providerFailed);
1014
- if (selectedProvider && controller)
1015
- return /* @__PURE__ */ jsxs8(
1016
- "section",
1017
- {
1018
- "aria-label": t("connectionDiscovery.connectLabel", { label: selectedProvider.label }),
1019
- children: [
1020
- /* @__PURE__ */ jsx9("button", { type: "button", onClick: () => setSelectedProvider(null), children: t("connectionDiscovery.backToConnections") }),
1021
- /* @__PURE__ */ jsx9(
1022
- ConnectionLogo,
1023
- {
1024
- name: selectedProvider.label,
1025
- src: connectionServicePresentation(selectedProvider).logo
1026
- }
1027
- ),
1028
- /* @__PURE__ */ jsx9(
1029
- ConnectChooser,
1030
- {
1031
- controller,
1032
- returnUrl,
1033
- presentation: "catalog",
1034
- providerOnly: true,
1035
- initialProviderId: selectedProvider.id,
1036
- personalOnly: alone
1037
- }
1038
- )
1039
- ]
1040
- }
1041
- );
1042
- return /* @__PURE__ */ jsxs8(
1043
- "section",
1044
- {
1045
- className: "og-connection-discovery",
1046
- "aria-label": t("connectionDiscovery.findAConnection"),
1047
- children: [
1048
- /* @__PURE__ */ jsx9("h3", { children: t("connectionDiscovery.addAConnection") }),
1049
- /* @__PURE__ */ jsxs8("label", { children: [
1050
- /* @__PURE__ */ jsx9("span", { className: "og-capability-catalog-sr-only", children: t("connectionDiscovery.searchServices") }),
1051
- /* @__PURE__ */ jsx9(
1052
- "input",
1053
- {
1054
- type: "search",
1055
- placeholder: t("connectionDiscovery.searchServices2"),
1056
- value: query,
1057
- onChange: (event) => {
1058
- setQuery(event.target.value);
1059
- setLimit(12);
1060
- }
1061
- }
1062
- )
1063
- ] }),
1064
- (providerFailed || failed) && /* @__PURE__ */ jsxs8("p", { role: "alert", children: [
1065
- t("connectionDiscovery.someServicesCouldNotBe"),
1066
- " ",
1067
- /* @__PURE__ */ jsx9("button", { type: "button", onClick: () => setReload((value) => value + 1), children: t("connectionDiscovery.retry") })
1068
- ] }),
1069
- /* @__PURE__ */ jsxs8("div", { className: "og-connection-discovery-results", children: [
1070
- providerMatches.map((provider) => {
1071
- const connected = accounts.some(
1072
- (account) => account.providerId === provider.id && account.status === "connected"
1073
- );
1074
- return /* @__PURE__ */ jsx9(
1075
- CapabilityCatalogRow,
1076
- {
1077
- name: provider.label,
1078
- icon: /* @__PURE__ */ jsx9(
1079
- ConnectionLogo,
1080
- {
1081
- name: provider.label,
1082
- src: connectionServicePresentation(provider).logo
1083
- }
1084
- ),
1085
- status: connected ? "added" : "available",
1086
- statusLabel: connected ? t("connectionDiscovery.connected") : t("connectionDiscovery.connect"),
1087
- showStatusLabel: true,
1088
- onOpen: () => setSelectedProvider(provider)
1089
- },
1090
- provider.id
1091
- );
1092
- }),
1093
- matches.slice(0, limit).map((item) => {
1094
- const state = mcpConnectionDiscoveryState(t, item, connections);
1095
- return /* @__PURE__ */ jsx9(
1096
- CapabilityCatalogRow,
1097
- {
1098
- name: item.name,
1099
- description: item.description ?? void 0,
1100
- icon: /* @__PURE__ */ jsx9(ConnectionServiceLogo, { client, item, name: item.name }),
1101
- status: state.status,
1102
- statusLabel: state.label,
1103
- showStatusLabel: true,
1104
- onOpen: () => {
1105
- opener.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
1106
- setSelected(item);
1107
- }
1108
- },
1109
- item.id
1110
- );
1111
- }),
1112
- loading && /* @__PURE__ */ jsx9(ConnectionSkeleton, { rows: 3, label: t("connectionDiscovery.loadingServices") }),
1113
- !loading && !failed && !providerFailed && !matches.length && !providerMatches.length && /* @__PURE__ */ jsx9("p", { role: "status", children: t("connectionDiscovery.noServicesMatchYourSearch") }),
1114
- matches.length > limit && /* @__PURE__ */ jsx9("button", { type: "button", onClick: () => setLimit((value) => value + 12), children: t("connectionDiscovery.showMoreServices") })
1115
- ] }),
1116
- selected ? /* @__PURE__ */ jsx9(
1117
- McpConnectionCard,
1118
- {
1119
- client,
1120
- workspaceId,
1121
- capabilityId: selected.id,
1122
- name: selected.name,
1123
- returnUrl,
1124
- dialogOnly: true,
1125
- onClose: () => {
1126
- setSelected(null);
1127
- queueMicrotask(() => {
1128
- if (opener.current?.isConnected) opener.current.focus();
1129
- });
1130
- },
1131
- onConfigured: async () => {
1132
- setReload((value) => value + 1);
1133
- await onConfigured?.();
1134
- }
1135
- }
1136
- ) : null
1137
- ]
1138
- }
1139
- );
1140
- }
1141
-
1142
- // src/connect-panel.tsx
1143
- import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1144
- function ConnectPanel({
1145
- returnUrl,
1146
- title: titleProp,
1147
- showAccounts = true,
1148
- showCustomConnections = true,
1149
- showProviderConnections = false,
1150
- presentation = "select",
1151
- className,
1152
- client,
1153
- ...setup
1154
- }) {
1155
- const t = useOpenGeniText();
1156
- const title = titleProp === void 0 ? t("connectPanel.connections") : titleProp;
1157
- const { attempt } = useConnect(setup.controller);
1158
- const [inventoryRevision, setInventoryRevision] = useState6(0);
1159
- const alone = useNobodyToShareWith(client, setup.controller.workspaceId);
1160
- const activeSetup = attempt !== null && !["complete", "cancelled", "expired"].includes(attempt.state);
1161
- const serviceName = attempt ? connectionServicePresentation({ id: attempt.providerId, label: "" }).name : "";
1162
- return /* @__PURE__ */ jsxs9("div", { className: ["og-connect", className].filter(Boolean).join(" "), children: [
1163
- title !== null && /* @__PURE__ */ jsx10("h2", { children: title }),
1164
- showAccounts && !activeSetup && /* @__PURE__ */ jsx10(
1165
- ConnectAccounts,
1166
- {
1167
- controller: setup.controller,
1168
- returnUrl,
1169
- client,
1170
- onDisconnected: () => setInventoryRevision((value) => value + 1)
1171
- },
1172
- inventoryRevision
1173
- ),
1174
- !activeSetup && (client && presentation === "catalog" ? /* @__PURE__ */ jsxs9(Fragment4, { children: [
1175
- /* @__PURE__ */ jsx10(
1176
- ConnectionDiscovery,
1177
- {
1178
- controller: showProviderConnections ? setup.controller : void 0,
1179
- client,
1180
- workspaceId: setup.controller.workspaceId,
1181
- returnUrl,
1182
- onConfigured: () => setInventoryRevision((value) => value + 1)
1183
- },
1184
- inventoryRevision
1185
- ),
1186
- showCustomConnections && /* @__PURE__ */ jsxs9("details", { className: "og-connect-secondary", children: [
1187
- /* @__PURE__ */ jsx10("summary", { children: t("connectPanel.customConnection") }),
1188
- /* @__PURE__ */ jsx10(
1189
- ConnectChooser,
1190
- {
1191
- customOnly: true,
1192
- presentation,
1193
- controller: setup.controller,
1194
- returnUrl,
1195
- personalOnly: alone
1196
- }
1197
- )
1198
- ] })
1199
- ] }) : /* @__PURE__ */ jsx10(
1200
- ConnectChooser,
1201
- {
1202
- presentation,
1203
- controller: setup.controller,
1204
- returnUrl,
1205
- personalOnly: alone
1206
- }
1207
- )),
1208
- activeSetup && /* @__PURE__ */ jsx10(
1209
- ConnectSetup,
1210
- {
1211
- ...setup,
1212
- authorizeLabel: setup.authorizeLabel ?? (serviceName ? t("connectPanel.continueToServicename", { serviceName }) : t("connectPanel.authorizeConnection"))
1213
- }
1214
- )
1215
- ] });
1216
- }
1217
-
1218
- // src/device-authorization.tsx
1219
- import { useEffect as useEffect6, useRef as useRef3, useState as useState7 } from "react";
1220
- import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
1221
- function DeviceAuthorization(props) {
1222
- const t = useOpenGeniText();
1223
- const [copied, setCopied] = useState7(false);
1224
- const [copyError, setCopyError] = useState7(false);
1225
- const generation = useRef3(0);
1226
- const timer = useRef3(null);
1227
- useEffect6(() => {
1228
- generation.current++;
1229
- setCopied(false);
1230
- setCopyError(false);
1231
- return () => {
1232
- generation.current++;
1233
- if (timer.current) clearTimeout(timer.current);
1234
- };
1235
- }, [props.userCode]);
1236
- async function copy() {
1237
- const revision = ++generation.current;
1238
- if (timer.current) clearTimeout(timer.current);
1239
- setCopied(false);
1240
- setCopyError(false);
1241
- try {
1242
- const clipboard = props.loadClipboard ? await props.loadClipboard() : { copyTextToClipboard };
1243
- if (revision !== generation.current) return;
1244
- const success = await clipboard.copyTextToClipboard(props.userCode);
1245
- if (revision !== generation.current) return;
1246
- setCopied(success);
1247
- setCopyError(!success);
1248
- props.onCopyResult?.(success);
1249
- if (success)
1250
- timer.current = setTimeout(() => {
1251
- if (revision === generation.current) setCopied(false);
1252
- }, 1600);
1253
- } catch {
1254
- if (revision !== generation.current) return;
1255
- setCopyError(true);
1256
- props.onCopyResult?.(false);
1257
- }
1258
- }
1259
- let href;
1260
- try {
1261
- const url = new URL(props.verificationUri);
1262
- if (["https:", "http:"].includes(url.protocol) && !url.username && !url.password)
1263
- href = props.verificationUri;
1264
- } catch {
1265
- }
1266
- if (props.render) return props.render({ copied, copyError, copy, verificationHref: href });
1267
- return /* @__PURE__ */ jsxs10(
1268
- "section",
1269
- {
1270
- className: `og-connect ${props.className ?? ""}`,
1271
- "aria-label": t("deviceAuthorization.deviceAuthorization"),
1272
- children: [
1273
- /* @__PURE__ */ jsx11("p", { children: props.description ?? t("deviceAuthorization.enterThisCodeAtProviderlabel", {
1274
- providerLabel: props.providerLabel ?? t("deviceAuthorization.theProvider")
1275
- }) }),
1276
- /* @__PURE__ */ jsxs10("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem", alignItems: "center" }, children: [
1277
- /* @__PURE__ */ jsx11("code", { ...props.codeAttributes, style: { overflowWrap: "anywhere" }, children: props.userCode }),
1278
- /* @__PURE__ */ jsx11(
1279
- "button",
1280
- {
1281
- type: "button",
1282
- "aria-label": copied ? t("deviceAuthorization.codeCopied") : t("deviceAuthorization.copyCode"),
1283
- onClick: () => void copy(),
1284
- children: copied ? t("deviceAuthorization.copied") : t("deviceAuthorization.copyCode")
1285
- }
1286
- ),
1287
- href ? /* @__PURE__ */ jsxs10("a", { href, target: "_blank", rel: "noopener noreferrer", children: [
1288
- t("deviceAuthorization.open"),
1289
- " ",
1290
- props.providerLabel ?? t("deviceAuthorization.authPage")
1291
- ] }) : /* @__PURE__ */ jsx11("span", { role: "alert", children: t("deviceAuthorization.authorizationAddressUnavailable") })
1292
- ] }),
1293
- copyError ? /* @__PURE__ */ jsx11("p", { role: "alert", children: t("deviceAuthorization.couldnTCopyTheCode") }) : null,
1294
- /* @__PURE__ */ jsx11("p", { role: "status", children: t("deviceAuthorization.waitingForAuthorization") })
1295
- ]
1296
- }
1297
- );
1298
- }
1299
-
1300
- // src/identity-link-consent.tsx
1301
- import { useEffect as useEffect7, useRef as useRef4, useState as useState8 } from "react";
1302
- import { Fragment as Fragment5, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
1303
- function IdentityLinkConsent({
1304
- client,
1305
- workspaceId,
1306
- linkId,
1307
- challenge,
1308
- className,
1309
- onComplete
1310
- }) {
1311
- const t = useOpenGeniText();
1312
- const [link, setLink] = useState8(null);
1313
- const [preview, setPreview] = useState8(null);
1314
- const [selected, setSelected] = useState8([]);
1315
- const [busy, setBusy] = useState8(false);
1316
- const [error, setError] = useState8(false);
1317
- const [retry, setRetry] = useState8(0);
1318
- const generation = useRef4(0);
1319
- useEffect7(() => {
1320
- const current = ++generation.current;
1321
- setLink(null);
1322
- setPreview(null);
1323
- setSelected([]);
1324
- setBusy(true);
1325
- setError(false);
1326
- void client.previewIdentityLink(workspaceId, linkId, challenge).then(
1327
- (result) => {
1328
- if (generation.current !== current) return;
1329
- setPreview(result);
1330
- setLink(result.link);
1331
- setSelected(result.link.permissions);
1332
- },
1333
- () => {
1334
- if (generation.current === current) setError(true);
1335
- }
1336
- ).finally(() => {
1337
- if (generation.current === current) setBusy(false);
1338
- });
1339
- return () => {
1340
- generation.current++;
1341
- };
1342
- }, [client, workspaceId, linkId, challenge, retry]);
1343
- async function mutate(revoke) {
1344
- if (!link || busy) return;
1345
- const current = generation.current;
1346
- setBusy(true);
1347
- setError(false);
1348
- try {
1349
- const result = revoke ? await client.revokeIdentityLink(workspaceId, linkId, link.revision) : await client.confirmIdentityLink(workspaceId, linkId, {
1350
- challenge,
1351
- expectedRevision: link.revision,
1352
- permissions: selected
1353
- });
1354
- if (generation.current !== current) return;
1355
- setLink(result);
1356
- onComplete?.(result);
1357
- } catch {
1358
- if (generation.current === current) setError(true);
1359
- } finally {
1360
- if (generation.current === current) setBusy(false);
1361
- }
1362
- }
1363
- return /* @__PURE__ */ jsxs11(
1364
- "section",
1365
- {
1366
- className: ["og-connect og-identity-link", className].filter(Boolean).join(" "),
1367
- "aria-label": t("identityLinkConsent.linkYourAccount"),
1368
- "aria-busy": busy,
1369
- children: [
1370
- /* @__PURE__ */ jsx12("h2", { children: t("identityLinkConsent.linkYourOpengeniAccount") }),
1371
- /* @__PURE__ */ jsx12("p", { children: t("identityLinkConsent.onlyContinueIfYouStarted") }),
1372
- preview && /* @__PURE__ */ jsxs11("dl", { children: [
1373
- /* @__PURE__ */ jsx12("dt", { children: t("identityLinkConsent.organization") }),
1374
- /* @__PURE__ */ jsx12("dd", { children: preview.organizationId }),
1375
- /* @__PURE__ */ jsx12("dt", { children: t("identityLinkConsent.productUser") }),
1376
- /* @__PURE__ */ jsxs11("dd", { children: [
1377
- preview.externalIdentity.externalId,
1378
- " (",
1379
- preview.externalIdentity.source,
1380
- ")"
1381
- ] }),
1382
- /* @__PURE__ */ jsx12("dt", { children: t("identityLinkConsent.yourOpengeniIdentity") }),
1383
- /* @__PURE__ */ jsx12("dd", { children: preview.nativeSubjectId })
1384
- ] }),
1385
- error && /* @__PURE__ */ jsxs11("div", { role: "alert", children: [
1386
- t("identityLinkConsent.thisRequestCouldNotBe"),
1387
- !link && /* @__PURE__ */ jsx12("button", { type: "button", disabled: busy, onClick: () => setRetry((value) => value + 1), children: t("identityLinkConsent.tryAgain") })
1388
- ] }),
1389
- !link && busy && /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkConsent.loadingTheAccountLinkRequest") }),
1390
- link?.status === "pending" && /* @__PURE__ */ jsxs11(Fragment5, { children: [
1391
- /* @__PURE__ */ jsxs11("p", { children: [
1392
- link.expiresAt ? t("identityLinkConsent.accessEndsLocalestring", {
1393
- localeString: new Date(link.expiresAt).toLocaleString(t.locale)
1394
- }) : t("identityLinkConsent.accessLastsUntilYouOr"),
1395
- " ",
1396
- t("identityLinkConsent.yourCurrentPermissionsStillApply")
1397
- ] }),
1398
- /* @__PURE__ */ jsxs11("fieldset", { disabled: busy, children: [
1399
- /* @__PURE__ */ jsx12("legend", { children: t("identityLinkConsent.allowThesePermissions") }),
1400
- link.permissions.map((permission) => /* @__PURE__ */ jsxs11("label", { children: [
1401
- /* @__PURE__ */ jsx12(
1402
- "input",
1403
- {
1404
- type: "checkbox",
1405
- checked: selected.includes(permission),
1406
- onChange: (event) => setSelected(
1407
- (values) => event.target.checked ? [...values, permission] : values.filter((value) => value !== permission)
1408
- )
1409
- }
1410
- ),
1411
- /* @__PURE__ */ jsx12("span", { children: permission.replaceAll(":", " \xB7 ") })
1412
- ] }, permission))
1413
- ] }),
1414
- /* @__PURE__ */ jsx12(
1415
- "button",
1416
- {
1417
- type: "button",
1418
- disabled: busy || selected.length === 0,
1419
- onClick: () => void mutate(false),
1420
- children: busy ? t("identityLinkConsent.saving") : t("identityLinkConsent.allowSelectedAccess")
1421
- }
1422
- ),
1423
- /* @__PURE__ */ jsx12("p", { children: t("identityLinkConsent.youCanCloseThisPage") })
1424
- ] }),
1425
- link?.status === "active" && /* @__PURE__ */ jsxs11(Fragment5, { children: [
1426
- /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkConsent.accountLinkedReturnToYour") }),
1427
- /* @__PURE__ */ jsx12("button", { type: "button", disabled: busy, onClick: () => void mutate(true), children: t("identityLinkConsent.revokeThisLink") })
1428
- ] }),
1429
- link?.status === "revoked" && /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkConsent.linkRevokedYourOpengeniAccount") }),
1430
- link?.status === "expired" && /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkConsent.thisRequestHasExpiredStart") })
1431
- ]
1432
- }
1433
- );
1434
- }
1435
-
1436
- // src/identity-link-accounts.tsx
1437
- import { useEffect as useEffect8, useRef as useRef5, useState as useState9 } from "react";
1438
- import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
1439
- function IdentityLinkAccounts({
1440
- client,
1441
- workspaceId
1442
- }) {
1443
- const t = useOpenGeniText();
1444
- const [links, setLinks] = useState9([]);
1445
- const [cursor, setCursor] = useState9(null);
1446
- const [busy, setBusy] = useState9(true);
1447
- const [error, setError] = useState9(false);
1448
- const [revision, setRevision] = useState9(0);
1449
- const generation = useRef5(0);
1450
- const inFlight = useRef5(false);
1451
- useEffect8(() => {
1452
- const current = ++generation.current;
1453
- inFlight.current = true;
1454
- setLinks([]);
1455
- setCursor(null);
1456
- setBusy(true);
1457
- setError(false);
1458
- void client.listIdentityLinks(workspaceId).then(
1459
- (page) => {
1460
- if (current !== generation.current) return;
1461
- setLinks(page.links);
1462
- setCursor(page.nextCursor);
1463
- },
1464
- () => {
1465
- if (current === generation.current) setError(true);
1466
- }
1467
- ).finally(() => {
1468
- if (current === generation.current) {
1469
- inFlight.current = false;
1470
- setBusy(false);
1471
- }
1472
- });
1473
- return () => {
1474
- generation.current++;
1475
- };
1476
- }, [client, workspaceId, revision]);
1477
- async function act(link) {
1478
- if (inFlight.current || !link && !cursor) return;
1479
- const current = generation.current;
1480
- inFlight.current = true;
1481
- setBusy(true);
1482
- setError(false);
1483
- try {
1484
- if (link) {
1485
- const updated = await client.revokeIdentityLink(workspaceId, link.id, link.revision);
1486
- if (current === generation.current)
1487
- setLinks(
1488
- (values) => values.map((value) => value.id === updated.id ? { ...value, ...updated } : value)
1489
- );
1490
- } else {
1491
- const page = await client.listIdentityLinks(workspaceId, cursor);
1492
- if (current === generation.current) {
1493
- setLinks((values) => [
1494
- ...new Map([...values, ...page.links].map((value) => [value.id, value])).values()
1495
- ]);
1496
- setCursor(page.nextCursor);
1497
- }
1498
- }
1499
- } catch {
1500
- if (current === generation.current) setError(true);
1501
- } finally {
1502
- if (current === generation.current) {
1503
- inFlight.current = false;
1504
- setBusy(false);
1505
- }
1506
- }
1507
- }
1508
- return /* @__PURE__ */ jsxs12(
1509
- "section",
1510
- {
1511
- className: "og-connect og-identity-link",
1512
- "aria-label": t("identityLinkAccounts.linkedProductAccess"),
1513
- "aria-busy": busy,
1514
- children: [
1515
- /* @__PURE__ */ jsx13("h2", { children: t("identityLinkAccounts.linkedProductAccess") }),
1516
- /* @__PURE__ */ jsx13("p", { children: t("identityLinkAccounts.manageProductsAllowedToAct") }),
1517
- /* @__PURE__ */ jsxs12("div", { className: "og-identity-link-card", children: [
1518
- error && /* @__PURE__ */ jsxs12("div", { role: "alert", children: [
1519
- t("identityLinkAccounts.couldNotUpdateAccountLinks"),
1520
- /* @__PURE__ */ jsx13("button", { type: "button", disabled: busy, onClick: () => setRevision((value) => value + 1), children: t("identityLinkAccounts.reloadLinks") })
1521
- ] }),
1522
- busy && /* @__PURE__ */ jsx13("p", { role: "status", children: t("identityLinkAccounts.loadingAccountLinks") }),
1523
- !busy && !error && links.length === 0 && /* @__PURE__ */ jsx13("p", { children: t("identityLinkAccounts.noProductsHaveLinkedAccess") }),
1524
- /* @__PURE__ */ jsx13("ul", { children: links.map((link) => /* @__PURE__ */ jsxs12("li", { children: [
1525
- /* @__PURE__ */ jsxs12("p", { children: [
1526
- link.externalIdentity?.source || t("identityLinkAccounts.productIdentity"),
1527
- " ",
1528
- /* @__PURE__ */ jsx13("code", { children: link.externalIdentity?.externalId ?? link.externalIdentityId })
1529
- ] }),
1530
- /* @__PURE__ */ jsxs12("p", { children: [
1531
- t("identityLinkAccounts.statusStatus", { status: link.status }),
1532
- " ",
1533
- link.expiresAt ? t("identityLinkAccounts.expiresLocalestring", {
1534
- localeString: new Date(link.expiresAt).toLocaleString(t.locale)
1535
- }) : t("identityLinkAccounts.noAutomaticExpiry")
1536
- ] }),
1537
- /* @__PURE__ */ jsx13("p", { children: link.permissions.join(", ") }),
1538
- (link.status === "active" || link.status === "pending") && /* @__PURE__ */ jsx13("button", { type: "button", disabled: busy, onClick: () => void act(link), children: t("identityLinkAccounts.revokeAccess") })
1539
- ] }, link.id)) }),
1540
- cursor && /* @__PURE__ */ jsx13("button", { type: "button", disabled: busy, onClick: () => void act(), children: t("identityLinkAccounts.loadMoreLinks") })
1541
- ] })
1542
- ]
1543
- }
1544
- );
1545
- }
1546
-
1547
- // src/connection-installed.tsx
1548
- import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
1549
- function ConnectionInstalled({
1550
- items,
1551
- title: titleProp,
1552
- className = ""
1553
- }) {
1554
- const t = useOpenGeniText();
1555
- const title = titleProp === void 0 ? t("connectionInstalled.connected") : titleProp;
1556
- if (!items.length) return null;
1557
- return /* @__PURE__ */ jsxs13("section", { "aria-label": title, className: `og-connection-installed ${className}`, children: [
1558
- /* @__PURE__ */ jsxs13("h2", { children: [
1559
- title,
1560
- " ",
1561
- /* @__PURE__ */ jsx14("span", { children: items.length })
1562
- ] }),
1563
- /* @__PURE__ */ jsx14("div", { children: items.map((item) => /* @__PURE__ */ jsxs13(
1564
- "button",
1565
- {
1566
- type: "button",
1567
- onClick: item.onOpen,
1568
- disabled: item.disabled,
1569
- title: item.status,
1570
- "aria-label": `${item.name} \xB7 ${item.status}`,
1571
- children: [
1572
- item.icon,
1573
- /* @__PURE__ */ jsx14("span", { children: item.name }),
1574
- item.showStatus ? /* @__PURE__ */ jsx14("span", { className: "og-connection-installed-status", children: item.status }) : null,
1575
- item.needsAttention ? /* @__PURE__ */ jsx14("span", { "aria-label": t("connectionInstalled.needsAttention"), children: "!" }) : null
1576
- ]
1577
- },
1578
- item.id
1579
- )) })
1580
- ] });
1581
- }
1582
-
1583
- // src/connection-type-picker.tsx
1584
- import { useId } from "react";
1585
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
1586
- function ConnectionTypePicker({
1587
- value,
1588
- onChange,
1589
- disabled = false
1590
- }) {
1591
- const t = useOpenGeniText();
1592
- const name = useId();
1593
- return /* @__PURE__ */ jsxs14("fieldset", { className: "og-connection-type-picker", disabled, children: [
1594
- /* @__PURE__ */ jsx15("legend", { children: t("connectionTypePicker.connectionType") }),
1595
- [
1596
- ["mcp", t("connectionTypePicker.mcpServer")],
1597
- ["openapi", "OpenAPI"],
1598
- ["graphql", "GraphQL"]
1599
- ].map(([type, label]) => /* @__PURE__ */ jsxs14("label", { "data-selected": value === type, children: [
1600
- /* @__PURE__ */ jsx15(
1601
- "input",
1602
- {
1603
- type: "radio",
1604
- name,
1605
- value: type,
1606
- checked: value === type,
1607
- onChange: () => onChange(type)
1608
- }
1609
- ),
1610
- label
1611
- ] }, type))
1612
- ] });
1613
- }
1614
-
1615
- // src/plugin-discovery.tsx
1616
- import { useEffect as useEffect9, useRef as useRef6, useState as useState10 } from "react";
1617
- import { BoxesIcon } from "lucide-react";
1618
- import { Fragment as Fragment6, jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
1619
- var discoveryCache2 = createDiscoveryCache();
1620
- var spacedName = (name) => name.replace(/-/g, " ");
1621
- var EMPTY_INSTALLED_IDS = /* @__PURE__ */ new Set();
1622
- function PluginDiscovery(props) {
1623
- const t = useOpenGeniText();
1624
- const [provider, setProvider] = useState10(props.defaultProvider ?? "");
1625
- return /* @__PURE__ */ jsxs15(
1626
- "section",
1627
- {
1628
- className: `og-plugin-discovery ${props.resultLimit ? "og-catalog-overview" : ""}`,
1629
- "aria-label": t("pluginDiscovery.discoverPlugins"),
1630
- children: [
1631
- /* @__PURE__ */ jsxs15("header", { children: [
1632
- /* @__PURE__ */ jsx16("h3", { children: props.resultLimit ? t("pluginDiscovery.plugins") : t("pluginDiscovery.browsePlugins") }),
1633
- !props.resultLimit ? /* @__PURE__ */ jsx16(
1634
- "div",
1635
- {
1636
- className: "og-plugin-filters",
1637
- role: "group",
1638
- "aria-label": t("pluginDiscovery.pluginRegistry"),
1639
- children: [
1640
- { value: "", label: t("pluginDiscovery.all") },
1641
- { value: "openai", label: t("pluginDiscovery.openaiPluginRegistry") },
1642
- { value: "anthropic", label: t("pluginDiscovery.anthropicPluginRegistry") }
1643
- ].map((option) => /* @__PURE__ */ jsx16(
1644
- "button",
1645
- {
1646
- type: "button",
1647
- "aria-pressed": provider === option.value,
1648
- onClick: () => setProvider(option.value),
1649
- children: option.label
1650
- },
1651
- option.value
1652
- ))
1653
- }
1654
- ) : null
1655
- ] }),
1656
- /* @__PURE__ */ jsx16(
1657
- Results,
1658
- {
1659
- ...props,
1660
- provider
1661
- },
1662
- `${props.workspaceId}:${props.query}:${provider}`
1663
- )
1664
- ]
1665
- }
1666
- );
1667
- }
1668
- function Results({
1669
- client,
1670
- workspaceId,
1671
- query,
1672
- provider,
1673
- installedIds = EMPTY_INSTALLED_IDS,
1674
- onOpen,
1675
- resultLimit,
1676
- onShowMore,
1677
- formatName = spacedName,
1678
- renderIcon
1679
- }) {
1680
- const t = useOpenGeniText();
1681
- const initial = discoveryCache2.peek(client, JSON.stringify([workspaceId, query, provider, 0]));
1682
- const [items, setItems] = useState10(initial?.items ?? []);
1683
- const [offset, setOffset] = useState10(0);
1684
- const [next, setNext] = useState10(initial?.nextOffset ?? null);
1685
- const [total, setTotal] = useState10(initial?.total ?? 0);
1686
- const [loading, setLoading] = useState10(!initial);
1687
- const [error, setError] = useState10(false);
1688
- const [retry, setRetry] = useState10(0);
1689
- const sentinel = useRef6(null);
1690
- useEffect9(() => {
1691
- let active = true;
1692
- const cacheKey = JSON.stringify([workspaceId, query, provider, offset]);
1693
- const cached = discoveryCache2.peek(client, cacheKey);
1694
- setLoading(!cached);
1695
- setError(false);
1696
- const timer = setTimeout(
1697
- () => {
1698
- void discoveryCache2.read(
1699
- client,
1700
- cacheKey,
1701
- () => client.discoverPlugins(workspaceId, { query, provider, offset })
1702
- ).then(
1703
- (page) => {
1704
- if (!active) return;
1705
- setItems((previous) => offset ? [...previous, ...page.items] : page.items);
1706
- setTotal(page.total);
1707
- setNext(page.nextOffset);
1708
- setLoading(false);
1709
- },
1710
- () => {
1711
- if (active) {
1712
- setError(true);
1713
- setLoading(false);
1714
- }
1715
- }
1716
- );
1717
- },
1718
- cached || offset ? 0 : 200
1719
- );
1720
- return () => {
1721
- active = false;
1722
- clearTimeout(timer);
1723
- };
1724
- }, [client, workspaceId, query, provider, offset, retry]);
1725
- useEffect9(() => {
1726
- if (resultLimit || loading || error || next === null || !sentinel.current) return;
1727
- const observer = new IntersectionObserver(
1728
- (entries) => {
1729
- if (entries.some((entry) => entry.isIntersecting)) setOffset(next);
1730
- },
1731
- { rootMargin: "200px" }
1732
- );
1733
- observer.observe(sentinel.current);
1734
- return () => observer.disconnect();
1735
- }, [loading, error, next, resultLimit]);
1736
- return /* @__PURE__ */ jsxs15(Fragment6, { children: [
1737
- !loading && !error ? /* @__PURE__ */ jsx16("p", { role: "status", children: total ? t("pluginDiscovery.bundlesOfSkillsAndConnections") : query.trim() ? t("pluginDiscovery.noMatchesForTrim", { trim: query.trim() }) : t("pluginDiscovery.noPluginsInThisRegistry") }) : null,
1738
- /* @__PURE__ */ jsx16("div", { className: "og-plugin-discovery-grid", children: items.slice(0, resultLimit).map((item) => /* @__PURE__ */ jsx16(
1739
- CapabilityCatalogRow,
1740
- {
1741
- "data-plugin-id": item.id,
1742
- name: formatName(item.displayName),
1743
- description: item.description,
1744
- status: installedIds.has(item.id) ? "added" : "available",
1745
- statusLabel: installedIds.has(item.id) ? t("pluginDiscovery.installed") : t("pluginDiscovery.availableToInstall"),
1746
- onOpen: () => onOpen(item),
1747
- icon: renderIcon ? renderIcon(item) : /* @__PURE__ */ jsx16(
1748
- ConnectionLogo,
1749
- {
1750
- src: item.logoUrl,
1751
- name: item.displayName,
1752
- fallback: /* @__PURE__ */ jsx16(BoxesIcon, { "aria-hidden": "true" })
1753
- }
1754
- )
1755
- },
1756
- item.id
1757
- )) }),
1758
- loading ? /* @__PURE__ */ jsx16("p", { role: "status", children: t("pluginDiscovery.loadingPlugins") }) : null,
1759
- error ? /* @__PURE__ */ jsxs15("p", { role: "alert", children: [
1760
- t("pluginDiscovery.couldnTLoadPlugins"),
1761
- " ",
1762
- /* @__PURE__ */ jsx16("button", { type: "button", onClick: () => setRetry((value) => value + 1), children: t("pluginDiscovery.retry") })
1763
- ] }) : null,
1764
- resultLimit && !loading && !error && total > resultLimit ? /* @__PURE__ */ jsx16("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("pluginDiscovery.viewAllPlugins") }) : null,
1765
- /* @__PURE__ */ jsx16("div", { ref: sentinel, children: !resultLimit && next !== null && !loading && !error ? /* @__PURE__ */ jsx16("button", { className: "og-plugin-more", type: "button", onClick: () => setOffset(next), children: t("pluginDiscovery.showMorePlugins") }) : null })
1766
- ] });
1767
- }
1768
-
1769
- export {
1770
- CapabilityCatalogIndicator,
1771
- CapabilityCatalogRow,
1772
- SkillDiscovery,
1773
- ConnectionOptionRow,
1774
- ConnectionServiceRow,
1775
- ConnectionCatalog,
1776
- ConnectChooser,
1777
- capabilityLogoFallback,
1778
- ConnectAccounts,
1779
- ConnectionDiscovery,
1780
- ConnectPanel,
1781
- DeviceAuthorization,
1782
- IdentityLinkConsent,
1783
- IdentityLinkAccounts,
1784
- ConnectionInstalled,
1785
- ConnectionTypePicker,
1786
- PluginDiscovery
1787
- };
1788
- //# sourceMappingURL=chunk-BKP43KK4.js.map