@opengeni/react 6.37.3 → 6.37.4-canary.45279257475001

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 (1192) hide show
  1. package/dist/app/app-state.js +32 -32
  2. package/dist/app/components/Composer.css +1 -1
  3. package/dist/app/components/Composer.css.map +1 -1
  4. package/dist/app/components/Composer.js +44 -43
  5. package/dist/app/components/add-card-dialog.js +3 -2
  6. package/dist/app/components/add-card-dialog.js.map +1 -1
  7. package/dist/app/components/add-card.js +3 -3
  8. package/dist/app/components/agent/agent-capability-picker.js +9 -9
  9. package/dist/app/components/agents/agent-can-use.js +48 -47
  10. package/dist/app/components/agents/agent-form-page.js +143 -142
  11. package/dist/app/components/agents/agent-form-page.js.map +1 -1
  12. package/dist/app/components/agents/agent-page.js +124 -123
  13. package/dist/app/components/agents/agent-setup-sections.js +78 -77
  14. package/dist/app/components/agents/agent-skills.js +14 -13
  15. package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
  16. package/dist/app/components/agents/agent-trigger-dialog.js +34 -33
  17. package/dist/app/components/agents/agent-trigger-picker.js +8 -8
  18. package/dist/app/components/agents/agent-trigger-repositories.js +16 -16
  19. package/dist/app/components/agents/agents-page.js +96 -95
  20. package/dist/app/components/agents/agents-page.js.map +1 -1
  21. package/dist/app/components/agents/composer-agent-chip.js +60 -59
  22. package/dist/app/components/agents/session-agent-chip.js +55 -54
  23. package/dist/app/components/artifacts/app-package.js +13 -12
  24. package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
  25. package/dist/app/components/artifacts/artifact-library.js +29 -28
  26. package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
  27. package/dist/app/components/artifacts/artifact-viewer.js +67 -66
  28. package/dist/app/components/artifacts/artifact-viewer.js.map +1 -1
  29. package/dist/app/components/artifacts/chat-interactive-block.js +30 -29
  30. package/dist/app/components/artifacts/chat-interactive-block.js.map +1 -1
  31. package/dist/app/components/artifacts/copy-artifact-link.js +2 -2
  32. package/dist/app/components/artifacts/file-reach-dialog.js +13 -12
  33. package/dist/app/components/artifacts/inline-chat-image.js +52 -51
  34. package/dist/app/components/artifacts/ready-made-apps.js +13 -12
  35. package/dist/app/components/artifacts/retained-file-preview.js +58 -57
  36. package/dist/app/components/artifacts/retained-text-preview.js +8 -8
  37. package/dist/app/components/artifacts/site-actions.js +12 -12
  38. package/dist/app/components/artifacts/site-audience.js +9 -8
  39. package/dist/app/components/artifacts/site-conversations.js +35 -35
  40. package/dist/app/components/artifacts/site-data.js +27 -26
  41. package/dist/app/components/artifacts/site-public-link.js +3 -3
  42. package/dist/app/components/artifacts/site-publishing-page.js +69 -68
  43. package/dist/app/components/artifacts/site-publishing.js +54 -53
  44. package/dist/app/components/artifacts/site-settings.js +68 -67
  45. package/dist/app/components/artifacts/site-version-menu.js +10 -10
  46. package/dist/app/components/billing-class-mark.js +7 -7
  47. package/dist/app/components/capabilities/capability-detail-sheet.js +18 -17
  48. package/dist/app/components/capabilities/capability-logo-source.js +29 -28
  49. package/dist/app/components/capabilities/capability-logo.js +1 -1
  50. package/dist/app/components/capabilities/connection-account-picker.js +2 -2
  51. package/dist/app/components/capabilities/connection-ownership-selector.js +4 -3
  52. package/dist/app/components/capabilities/connector-tool-permissions.js +8 -8
  53. package/dist/app/components/capabilities/detail-dialog.js +3 -2
  54. package/dist/app/components/capabilities/native-connect-setup.js +32 -31
  55. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +6 -6
  56. package/dist/app/components/capabilities/perform-capability-action.js +2 -2
  57. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +32 -31
  58. package/dist/app/components/capabilities/session-capability-card.css +1 -1
  59. package/dist/app/components/capabilities/session-capability-card.css.map +1 -1
  60. package/dist/app/components/capabilities/session-capability-card.js +136 -135
  61. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  62. package/dist/app/components/capabilities/session-chrome-card.css +1 -1
  63. package/dist/app/components/capabilities/session-chrome-card.css.map +1 -1
  64. package/dist/app/components/capabilities/session-chrome-card.js +49 -48
  65. package/dist/app/components/capabilities/session-connect-inputs-card.js +34 -33
  66. package/dist/app/components/capabilities/session-custom-mcp-card.js +39 -38
  67. package/dist/app/components/capabilities/session-github-card.js +45 -44
  68. package/dist/app/components/capabilities/session-machine-card.css +1 -1
  69. package/dist/app/components/capabilities/session-machine-card.css.map +1 -1
  70. package/dist/app/components/capabilities/session-machine-card.js +50 -49
  71. package/dist/app/components/capabilities/session-personal-github-card.js +33 -32
  72. package/dist/app/components/capabilities/session-plugin-card.js +21 -20
  73. package/dist/app/components/capabilities/use-capabilities-catalog.js +1 -1
  74. package/dist/app/components/capabilities/use-connection-accounts.js +2 -2
  75. package/dist/app/components/chat-payment-pages.js +2 -2
  76. package/dist/app/components/command-menu/chat-status.js +26 -26
  77. package/dist/app/components/command-menu/chat-switcher.js +87 -86
  78. package/dist/app/components/command-menu/chat-switcher.js.map +1 -1
  79. package/dist/app/components/command-menu/command-menu.js +332 -330
  80. package/dist/app/components/command-menu/command-menu.js.map +1 -1
  81. package/dist/app/components/command-menu/shortcut-sheet.js +27 -26
  82. package/dist/app/components/command-menu/shortcut-sheet.js.map +1 -1
  83. package/dist/app/components/composer-capabilities-menu-body.js +7 -7
  84. package/dist/app/components/composer-mobile-plus-panel.js +29 -28
  85. package/dist/app/components/composer-mobile-plus-panel.js.map +1 -1
  86. package/dist/app/components/composer-mobile-plus.js +5 -4
  87. package/dist/app/components/credit-required-gate.js +7 -7
  88. package/dist/app/components/credit-required-prompt.js +25 -24
  89. package/dist/app/components/credit-required-prompt.js.map +1 -1
  90. package/dist/app/components/credits/checkout-credits-celebration.js +4 -3
  91. package/dist/app/components/credits/checkout-return.js +4 -3
  92. package/dist/app/components/credits/checkout-return.js.map +1 -1
  93. package/dist/app/components/credits/coupon-redeem.js +1 -1
  94. package/dist/app/components/credits/credit-refusal-notice.js +7 -7
  95. package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
  96. package/dist/app/components/desktop/app-shots.css +1 -1
  97. package/dist/app/components/desktop/app-shots.css.map +1 -1
  98. package/dist/app/components/desktop/app-shots.js +10 -9
  99. package/dist/app/components/desktop/app-update.js +3 -3
  100. package/dist/app/components/desktop/computer-use.js +3 -3
  101. package/dist/app/components/desktop/this-computer.css +1 -1
  102. package/dist/app/components/desktop/this-computer.css.map +1 -1
  103. package/dist/app/components/desktop/this-computer.js +7 -6
  104. package/dist/app/components/feedback.js +11 -10
  105. package/dist/app/components/follow-up-repository-menu-body.js +13 -13
  106. package/dist/app/components/follow-up-repository-picker.js +1 -1
  107. package/dist/app/components/github-app-connect-launcher.js +3 -3
  108. package/dist/app/components/in-app-help-link.js +3 -3
  109. package/dist/app/components/knowledge/agent-learning-settings.js +3 -3
  110. package/dist/app/components/machines/connect-machine-dialog.css +1 -1
  111. package/dist/app/components/machines/connect-machine-dialog.css.map +1 -1
  112. package/dist/app/components/machines/connect-machine-dialog.js +25 -24
  113. package/dist/app/components/manual-repository-editor.js +3 -3
  114. package/dist/app/components/markdown.js +16 -15
  115. package/dist/app/components/model-identity.js +3 -3
  116. package/dist/app/components/models/models-ui.js +17 -16
  117. package/dist/app/components/models/provider-mark.js +3 -3
  118. package/dist/app/components/models/subscription-usage.js +5 -5
  119. package/dist/app/components/my-things.js +16 -15
  120. package/dist/app/components/my-things.js.map +1 -1
  121. package/dist/app/components/own-where-it-works.js +11 -10
  122. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  123. package/dist/app/components/pickers.js +11 -11
  124. package/dist/app/components/rail/channel-create-dialog.js +7 -6
  125. package/dist/app/components/rail/project-glyph.js +53 -52
  126. package/dist/app/components/rail/project-profile.js +74 -73
  127. package/dist/app/components/rail/rail-context.js +2 -2
  128. package/dist/app/components/rail/rail-sections.js +155 -154
  129. package/dist/app/components/rail/session-header.js +125 -124
  130. package/dist/app/components/rail/session-list.js +152 -151
  131. package/dist/app/components/rail/session-row-content.js +6 -6
  132. package/dist/app/components/rail/session-row-hover-details.js +36 -36
  133. package/dist/app/components/rail/session-shell.js +192 -191
  134. package/dist/app/components/rail/site-session-group-heading.js +36 -36
  135. package/dist/app/components/repository-picker.js +13 -13
  136. package/dist/app/components/secrets/session-secrets-panel.js +4 -4
  137. package/dist/app/components/session/agent-configuration-panel.js +45 -44
  138. package/dist/app/components/session/agent-configuration-panel.js.map +1 -1
  139. package/dist/app/components/session/artifact-session-page.js +7 -7
  140. package/dist/app/components/session/banners.js +20 -19
  141. package/dist/app/components/session/chat-avatar.js +53 -52
  142. package/dist/app/components/session/console-new-conversation.css +1 -1
  143. package/dist/app/components/session/console-new-conversation.css.map +1 -1
  144. package/dist/app/components/session/console-new-conversation.js +110 -109
  145. package/dist/app/components/session/descendant-requests.js +110 -109
  146. package/dist/app/components/session/descendant-requests.js.map +1 -1
  147. package/dist/app/components/session/editable-artifacts-workspace.js +60 -59
  148. package/dist/app/components/session/editable-artifacts-workspace.js.map +1 -1
  149. package/dist/app/components/session/failed-session-banner.js +29 -28
  150. package/dist/app/components/session/failed-session-banner.js.map +1 -1
  151. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  152. package/dist/app/components/session/human-input-delegation-record.js +3 -3
  153. package/dist/app/components/session/human-input.js +88 -87
  154. package/dist/app/components/session/inspector.js +146 -145
  155. package/dist/app/components/session/inspector.js.map +1 -1
  156. package/dist/app/components/session/linked-panel.js +3 -3
  157. package/dist/app/components/session/message-actions.js +11 -10
  158. package/dist/app/components/session/message-actions.js.map +1 -1
  159. package/dist/app/components/session/model-recovery-notice.js +4 -4
  160. package/dist/app/components/session/new-session-settings-menu.css +1 -1
  161. package/dist/app/components/session/new-session-settings-menu.css.map +1 -1
  162. package/dist/app/components/session/new-session-settings-menu.js +30 -29
  163. package/dist/app/components/session/new-session-setup-strip.js +56 -55
  164. package/dist/app/components/session/pull-request-panel.js +25 -24
  165. package/dist/app/components/session/sandbox-recovery-actions.js +5 -4
  166. package/dist/app/components/session/sandbox-switcher.js +22 -22
  167. package/dist/app/components/session/sandbox-workspace.js +120 -119
  168. package/dist/app/components/session/search-markdown-highlight.js +17 -16
  169. package/dist/app/components/session/search-results-view.js +18 -17
  170. package/dist/app/components/session/session-admin-access.js +14 -13
  171. package/dist/app/components/session/session-admission-notice.js +11 -11
  172. package/dist/app/components/session/session-avatar-picker.js +60 -59
  173. package/dist/app/components/session/session-avatar.js +55 -54
  174. package/dist/app/components/session/session-machine-access-notice.js +11 -11
  175. package/dist/app/components/session/session-profile-dialog.js +71 -70
  176. package/dist/app/components/session/session-profile-editor.js +72 -71
  177. package/dist/app/components/session/session-retention.js +6 -6
  178. package/dist/app/components/session/session-search-dialog.js +21 -20
  179. package/dist/app/components/session/session-search-dialog.js.map +1 -1
  180. package/dist/app/components/session/session-skill-reviews.js +5 -5
  181. package/dist/app/components/session/session-tenancy-control.js +32 -31
  182. package/dist/app/components/session/session-tenancy-control.js.map +1 -1
  183. package/dist/app/components/session/session-unattended-setting.js +1 -1
  184. package/dist/app/components/session/session-usage-limit-section.js +11 -11
  185. package/dist/app/components/session/share-chat-dialog.js +11 -10
  186. package/dist/app/components/session/subagents.js +23 -23
  187. package/dist/app/components/session/subscription-account-indicator.js +25 -25
  188. package/dist/app/components/session/subscription-account-menu.js +7 -7
  189. package/dist/app/components/session-connectors-menu-body.js +10 -10
  190. package/dist/app/components/settings/row-select.js +6 -6
  191. package/dist/app/components/toaster.js +2 -2
  192. package/dist/app/components/transcription-settings.js +10 -10
  193. package/dist/app/components/ui/destructive-confirm.js +11 -10
  194. package/dist/app/components/usage/usage-entry.js +8 -8
  195. package/dist/app/components/window-bar.js +26 -26
  196. package/dist/app/components/workspace-composer-plus.js +44 -43
  197. package/dist/app/components/workspace-reach.js +6 -6
  198. package/dist/app/embed/session-app.css +1 -1
  199. package/dist/app/embed/session-app.css.map +1 -1
  200. package/dist/app/embed/session-app.js +388 -387
  201. package/dist/app/lib/actions/actions-provider.js +19 -19
  202. package/dist/app/lib/agent-capabilities.js +4 -4
  203. package/dist/app/lib/app-connect-card.js +15 -14
  204. package/dist/app/lib/app-shared-key-dialog.js +9 -8
  205. package/dist/app/lib/app-surfaces.js +2 -2
  206. package/dist/app/lib/app-sync-opt-in.js +6 -5
  207. package/dist/app/lib/codex-usage-query.js +3 -3
  208. package/dist/app/lib/composer-agent.js +2 -2
  209. package/dist/app/lib/composer-connectors.js +33 -32
  210. package/dist/app/lib/composer-send-blocking.js +2 -2
  211. package/dist/app/lib/console-site.js +8 -7
  212. package/dist/app/lib/console-text.js +2 -2
  213. package/dist/app/lib/events.js +30 -29
  214. package/dist/app/lib/failed-session-copy.js +5 -5
  215. package/dist/app/lib/feedback-capture.js +2 -2
  216. package/dist/app/lib/model-access-onboarding.js +4 -4
  217. package/dist/app/lib/move-chat-to-machine.js +5 -5
  218. package/dist/app/lib/personal-resource-attachments.js +1 -1
  219. package/dist/app/lib/session-branch-cache.js +19 -19
  220. package/dist/app/lib/session-create.js +5 -5
  221. package/dist/app/lib/session-group-pagination.js +19 -19
  222. package/dist/app/lib/session-hover-facts.js +26 -26
  223. package/dist/app/lib/session-list-dirty-scopes.js +20 -20
  224. package/dist/app/lib/session-model.js +2 -2
  225. package/dist/app/lib/session-rail.js +16 -16
  226. package/dist/app/lib/session-rename.js +3 -3
  227. package/dist/app/lib/sessions-group.js +23 -23
  228. package/dist/app/lib/site-tool-consent-dialog.js +25 -24
  229. package/dist/app/lib/site-tool-consent-dialog.js.map +1 -1
  230. package/dist/app/lib/site-tool-consent.js +1 -1
  231. package/dist/app/lib/turn-failure-analytics.js +6 -6
  232. package/dist/app/lib/use-artifact-catalog.js +2 -2
  233. package/dist/app/lib/use-duplicate-site.js +5 -5
  234. package/dist/app/lib/use-follow-up-repositories.js +7 -6
  235. package/dist/app/lib/use-personal-resource-attachment.js +2 -2
  236. package/dist/app/lib/use-workspace-machines.js +9 -9
  237. package/dist/app/lib/use-workspace-model-catalog.js +5 -5
  238. package/dist/app/lib/use-workspace-rigs.js +6 -6
  239. package/dist/app/lib/workspace-navigation-preference.js +5 -5
  240. package/dist/app/lib/workspace-scope-context.js +4 -4
  241. package/dist/app/routes/app-page-view.js +22 -21
  242. package/dist/app/routes/app-page-view.js.map +1 -1
  243. package/dist/app/routes/app-page.js +2 -2
  244. package/dist/app/routes/artifacts.js +153 -152
  245. package/dist/app/routes/artifacts.js.map +1 -1
  246. package/dist/app/routes/retained-artifact.js +106 -105
  247. package/dist/app/routes/retained-artifact.js.map +1 -1
  248. package/dist/app/routes/session-unavailable.js +6 -6
  249. package/dist/app/routes/session.css +1 -1
  250. package/dist/app/routes/session.css.map +1 -1
  251. package/dist/app/routes/session.js +246 -245
  252. package/dist/app/routes/sessions-index-hydration.js +6 -6
  253. package/dist/app/routes/sessions-index.css +1 -1
  254. package/dist/app/routes/sessions-index.css.map +1 -1
  255. package/dist/app/routes/sessions-index.js +202 -201
  256. package/dist/app/routes/site-view.css +1 -1
  257. package/dist/app/routes/site-view.css.map +1 -1
  258. package/dist/app/routes/site-view.js +195 -194
  259. package/dist/app/routes/site-view.js.map +1 -1
  260. package/dist/artifacts-document.js +4 -4
  261. package/dist/artifacts-presentation.js +9 -8
  262. package/dist/artifacts-spreadsheet.js +4 -4
  263. package/dist/artifacts.js +51 -50
  264. package/dist/automation-model.js +6 -6
  265. package/dist/automations.js +71 -70
  266. package/dist/automations.js.map +1 -1
  267. package/dist/browser-viewer-O5FJOWWI.js +23 -0
  268. package/dist/chat-interactive-block-TQTOUHRC.js +22 -0
  269. package/dist/chunk-23TTCFRP.js +3690 -0
  270. package/dist/chunk-2BOFLWNJ.js +129 -0
  271. package/dist/chunk-2NO5QJCL.js +438 -0
  272. package/dist/chunk-2NO5QJCL.js.map +1 -0
  273. package/dist/chunk-3DMD2KHT.js +851 -0
  274. package/dist/chunk-3DOISS3I.js +132 -0
  275. package/dist/chunk-3KWTXE4O.js +199 -0
  276. package/dist/chunk-3TRERIPD.js +93 -0
  277. package/dist/chunk-3UXBTL7Z.js +92 -0
  278. package/dist/chunk-3XEKXNB4.js +283 -0
  279. package/dist/chunk-3ZJUQG4K.js +428 -0
  280. package/dist/chunk-42WTAUUW.js +335 -0
  281. package/dist/chunk-46ZC5VNC.js +38 -0
  282. package/dist/chunk-4BVEFGX7.js +166 -0
  283. package/dist/chunk-4IOFV4S4.js +401 -0
  284. package/dist/chunk-4ISXBLJV.js +137 -0
  285. package/dist/chunk-4L2MBYLH.js +283 -0
  286. package/dist/chunk-4N3B25HA.js +850 -0
  287. package/dist/chunk-4N3B25HA.js.map +1 -0
  288. package/dist/chunk-4NWUZ6SL.js +176 -0
  289. package/dist/chunk-4QVX6CTT.js +318 -0
  290. package/dist/chunk-4YARO4Y5.js +2984 -0
  291. package/dist/chunk-4Z7BPBS7.js +34 -0
  292. package/dist/chunk-55ILMX6B.js +794 -0
  293. package/dist/chunk-57OAQTWD.js +103 -0
  294. package/dist/chunk-5BRPLALX.js +380 -0
  295. package/dist/chunk-5BRPLALX.js.map +1 -0
  296. package/dist/chunk-5EF4JI6Q.js +214 -0
  297. package/dist/chunk-5EF4JI6Q.js.map +1 -0
  298. package/dist/chunk-5GXX3NI7.js +46 -0
  299. package/dist/chunk-5VE3PPSK.js +353 -0
  300. package/dist/chunk-62T2ZPD5.js +266 -0
  301. package/dist/chunk-655JT4VH.js +251 -0
  302. package/dist/chunk-65OPNLE4.js +505 -0
  303. package/dist/chunk-67PIP46J.js +229 -0
  304. package/dist/chunk-6CAK65QV.js +211 -0
  305. package/dist/chunk-6CDBX3XG.js +33 -0
  306. package/dist/chunk-6D3D2JWY.js +278 -0
  307. package/dist/chunk-6DGQB6GT.js +107 -0
  308. package/dist/chunk-6NFK3J2O.js +188 -0
  309. package/dist/chunk-6R3QX3AC.js +538 -0
  310. package/dist/chunk-6S5OMLAL.js +400 -0
  311. package/dist/chunk-6SG2VVVB.js +249 -0
  312. package/dist/chunk-6U57GGJI.js +110 -0
  313. package/dist/chunk-6V2PEFPS.js +98 -0
  314. package/dist/chunk-6VASZZVV.js +3321 -0
  315. package/dist/chunk-7BBYH5R5.js +168 -0
  316. package/dist/chunk-7EO3T3IX.js +209 -0
  317. package/dist/chunk-7EZQ6EKM.js +158 -0
  318. package/dist/chunk-7HI53NPP.js +15 -0
  319. package/dist/chunk-7J4BFENI.js +37 -0
  320. package/dist/chunk-7LSGNY2L.js +114 -0
  321. package/dist/chunk-7MMONDFK.js +1236 -0
  322. package/dist/chunk-7MWPBGDX.js +175 -0
  323. package/dist/chunk-7NSDIQMY.js +371 -0
  324. package/dist/chunk-7XPDLT5G.js +231 -0
  325. package/dist/chunk-A3BCF4MV.js +378 -0
  326. package/dist/chunk-A5GX3CAE.js +849 -0
  327. package/dist/chunk-AAHQJWEP.js +515 -0
  328. package/dist/chunk-AAWEPZOG.js +144 -0
  329. package/dist/chunk-ABRT345L.js +598 -0
  330. package/dist/chunk-AJ7KJ7XZ.js +4519 -0
  331. package/dist/chunk-AJ7KJ7XZ.js.map +1 -0
  332. package/dist/chunk-ANXFE2EP.js +91 -0
  333. package/dist/chunk-AQNE4XWU.js +271 -0
  334. package/dist/chunk-AV2OMWDS.js +4979 -0
  335. package/dist/chunk-AYHMHAU5.js +1019 -0
  336. package/dist/chunk-AZ637XK3.js +50 -0
  337. package/dist/chunk-B6AH43UQ.js +2434 -0
  338. package/dist/chunk-BBECLK22.js +383 -0
  339. package/dist/chunk-BWYPJG3P.js +158 -0
  340. package/dist/chunk-CI7F4Y26.js +396 -0
  341. package/dist/chunk-CNLSXEQC.js +931 -0
  342. package/dist/chunk-COCB4HE3.js +65 -0
  343. package/dist/chunk-CPEVLG3B.js +357 -0
  344. package/dist/chunk-CRHH5C6Z.js +5920 -0
  345. package/dist/chunk-CRHH5C6Z.js.map +1 -0
  346. package/dist/chunk-CVC4RO7D.js +155 -0
  347. package/dist/chunk-CY6RLRHJ.js +3110 -0
  348. package/dist/chunk-D3WLSMCL.js +117 -0
  349. package/dist/chunk-D7SSOJEU.js +178 -0
  350. package/dist/chunk-DBOD5WXT.js +818 -0
  351. package/dist/chunk-DFWSRIFL.js +162 -0
  352. package/dist/chunk-DITZUBOK.js +126 -0
  353. package/dist/chunk-DKD2ZZSJ.js +287 -0
  354. package/dist/chunk-DOJWHSRD.js +246 -0
  355. package/dist/chunk-DR6LZXJI.js +187 -0
  356. package/dist/chunk-DV73XOVB.js +650 -0
  357. package/dist/chunk-DYO7DNDD.js +316 -0
  358. package/dist/chunk-DYZASWWT.js +234 -0
  359. package/dist/chunk-EAJHD44A.js +573 -0
  360. package/dist/chunk-EAJHD44A.js.map +1 -0
  361. package/dist/chunk-EC5HUNXI.js +1263 -0
  362. package/dist/chunk-ECQ7FV3E.js +247 -0
  363. package/dist/chunk-ECVCSZWY.js +406 -0
  364. package/dist/chunk-EMXO5HCY.js +333 -0
  365. package/dist/chunk-ENJX5TAA.js +265 -0
  366. package/dist/chunk-EQSYPIAI.js +66 -0
  367. package/dist/chunk-EV73XMK3.js +1152 -0
  368. package/dist/chunk-F2SGC74A.js +2553 -0
  369. package/dist/chunk-F3LIUDXN.js +738 -0
  370. package/dist/chunk-F3LIUDXN.js.map +1 -0
  371. package/dist/chunk-F5ABIEWA.js +1029 -0
  372. package/dist/chunk-F5ABIEWA.js.map +1 -0
  373. package/dist/chunk-F5DEBD4D.js +230 -0
  374. package/dist/chunk-F6JJBUQ2.js +566 -0
  375. package/dist/chunk-FEVZDJOZ.js +1024 -0
  376. package/dist/chunk-FF22IUY3.js +121 -0
  377. package/dist/chunk-FILRDNUQ.js +256 -0
  378. package/dist/chunk-FLB3BP2E.js +227 -0
  379. package/dist/chunk-FZVMMHPC.js +639 -0
  380. package/dist/chunk-G6D5NVWM.js +112 -0
  381. package/dist/chunk-GGH5STTP.js +192 -0
  382. package/dist/chunk-GGHX6GS7.js +187 -0
  383. package/dist/chunk-GIHE7U3Y.js +174 -0
  384. package/dist/chunk-GO5VIAA7.js +264 -0
  385. package/dist/chunk-GSK637QS.js +27 -0
  386. package/dist/chunk-HBYO34CP.js +56 -0
  387. package/dist/chunk-HFROJDFQ.js +118 -0
  388. package/dist/chunk-HGEDFQ7G.js +251 -0
  389. package/dist/chunk-HH3QTFGV.js +1356 -0
  390. package/dist/chunk-HHFFPE67.js +220 -0
  391. package/dist/chunk-HHYTB5OL.js +246 -0
  392. package/dist/chunk-HPKWAHHI.js +48 -0
  393. package/dist/chunk-HSPOCEGP.js +373 -0
  394. package/dist/chunk-IC74VN2I.js +608 -0
  395. package/dist/chunk-ICSQO2CV.js +1021 -0
  396. package/dist/chunk-IEZE7SL6.js +3070 -0
  397. package/dist/chunk-IGHNTARW.js +170 -0
  398. package/dist/chunk-IKYS56PQ.js +138 -0
  399. package/dist/chunk-IO474NRY.js +56 -0
  400. package/dist/chunk-IP2CCFAV.js +723 -0
  401. package/dist/chunk-IT5GF54F.js +3851 -0
  402. package/dist/chunk-IX67G5FD.js +270 -0
  403. package/dist/chunk-IXNJK7KJ.js +292 -0
  404. package/dist/chunk-IZWTARYT.js +276 -0
  405. package/dist/chunk-JBV2HY43.js +108 -0
  406. package/dist/chunk-JE62XK5K.js +33 -0
  407. package/dist/chunk-JFAWCALM.js +85 -0
  408. package/dist/chunk-JQGPATQZ.js +83 -0
  409. package/dist/chunk-JYZGX5UZ.js +274 -0
  410. package/dist/chunk-K227GMSM.js +72 -0
  411. package/dist/chunk-KB2O7JIJ.js +449 -0
  412. package/dist/chunk-KT6GC67G.js +12 -0
  413. package/dist/chunk-KTGKGHEA.js +75 -0
  414. package/dist/chunk-KU77XHWB.js +285 -0
  415. package/dist/chunk-KZIRVLCM.js +175 -0
  416. package/dist/chunk-L3DUSTRN.js +259 -0
  417. package/dist/chunk-L6WVCO6D.js +61 -0
  418. package/dist/chunk-L7PCZEEG.js +79 -0
  419. package/dist/chunk-LEN2DVU6.js +311 -0
  420. package/dist/chunk-LGOQW2CE.js +191 -0
  421. package/dist/chunk-LK2JO72Y.js +389 -0
  422. package/dist/chunk-LSJPFW34.js +3996 -0
  423. package/dist/chunk-LSJPFW34.js.map +1 -0
  424. package/dist/chunk-LXLHIOJM.js +584 -0
  425. package/dist/chunk-LYQQ4VBE.js +1333 -0
  426. package/dist/chunk-M22ZHQ7S.js +1628 -0
  427. package/dist/chunk-M5RKFV6K.js +20 -0
  428. package/dist/chunk-MCPKUVMQ.js +99 -0
  429. package/dist/chunk-MDGNCUAC.js +145 -0
  430. package/dist/chunk-MFLU3466.js +99 -0
  431. package/dist/chunk-MIUJ3EH5.js +60 -0
  432. package/dist/chunk-MO3XJQN2.js +629 -0
  433. package/dist/chunk-MTHAYXDH.js +107 -0
  434. package/dist/chunk-MVYQDBE6.js +79 -0
  435. package/dist/chunk-NA7VZQPL.js +307 -0
  436. package/dist/chunk-ND6FWOSO.js +2431 -0
  437. package/dist/chunk-NGTCSS53.js +24 -0
  438. package/dist/chunk-NGTCSS53.js.map +1 -0
  439. package/dist/chunk-NIFPH34L.js +351 -0
  440. package/dist/chunk-NKYC6WHQ.js +103 -0
  441. package/dist/chunk-NML7VKLU.js +391 -0
  442. package/dist/chunk-NPAWLKJB.js +41 -0
  443. package/dist/chunk-NQSKI2YD.js +1185 -0
  444. package/dist/chunk-NXQFBC22.js +114 -0
  445. package/dist/chunk-NXRZMHVM.js +43 -0
  446. package/dist/chunk-NYU5DE4K.js +1309 -0
  447. package/dist/chunk-O2EEYPIZ.js +48 -0
  448. package/dist/chunk-O4TOEISQ.js +67 -0
  449. package/dist/chunk-O533L2TG.js +129 -0
  450. package/dist/chunk-O664PL2U.js +47 -0
  451. package/dist/chunk-O664PL2U.js.map +1 -0
  452. package/dist/chunk-ON6ZGJDW.js +532 -0
  453. package/dist/chunk-OPELE3Z4.js +311 -0
  454. package/dist/chunk-OTSUC6PP.js +234 -0
  455. package/dist/chunk-OXM267RC.js +128 -0
  456. package/dist/chunk-OXM267RC.js.map +1 -0
  457. package/dist/chunk-OZNL5OKT.js +1184 -0
  458. package/dist/chunk-P3PDKPLK.js +432 -0
  459. package/dist/chunk-PCZBYN2H.js +372 -0
  460. package/dist/chunk-PIPXXQFV.js +57 -0
  461. package/dist/chunk-PMUZUPPE.js +131 -0
  462. package/dist/chunk-PN52EIFV.js +113 -0
  463. package/dist/chunk-PPQJIVGM.js +175 -0
  464. package/dist/chunk-PQYFOTNI.js +469 -0
  465. package/dist/chunk-PUX4YJAW.js +1095 -0
  466. package/dist/chunk-PYMQM65Y.js +125 -0
  467. package/dist/chunk-Q5UO7GT5.js +404 -0
  468. package/dist/chunk-QA5UNVHD.js +85 -0
  469. package/dist/chunk-QDZR7FXG.js +215 -0
  470. package/dist/chunk-QNOWKKZ4.js +40 -0
  471. package/dist/chunk-QUXQYYZO.js +73 -0
  472. package/dist/chunk-QVOTPOXK.js +29 -0
  473. package/dist/chunk-R2DSOIME.js +772 -0
  474. package/dist/chunk-RFQQXXJ6.js +366 -0
  475. package/dist/chunk-RLWI34XM.js +27 -0
  476. package/dist/chunk-RMWCGSEP.js +124 -0
  477. package/dist/chunk-ROTEQD2Z.js +441 -0
  478. package/dist/chunk-RPCWZFP7.js +296 -0
  479. package/dist/chunk-RW5QRWVI.js +141 -0
  480. package/dist/chunk-RZZHOHL6.js +5089 -0
  481. package/dist/chunk-S5STZCBZ.js +133 -0
  482. package/dist/chunk-SD4A5P24.js +1803 -0
  483. package/dist/chunk-SJM4TCWJ.js +197 -0
  484. package/dist/chunk-SJXK56WZ.js +905 -0
  485. package/dist/chunk-SJXK56WZ.js.map +1 -0
  486. package/dist/chunk-SQYTYXR4.js +100 -0
  487. package/dist/chunk-SRDHDIRQ.js +177 -0
  488. package/dist/chunk-SVC674IM.js +263 -0
  489. package/dist/chunk-SYYFA7W7.js +23 -0
  490. package/dist/chunk-T2UUHB7V.js +1187 -0
  491. package/dist/chunk-TBOH54QP.js +298 -0
  492. package/dist/chunk-TG2GO424.js +196 -0
  493. package/dist/chunk-TOJNLC42.js +107 -0
  494. package/dist/chunk-TW75KM7T.js +412 -0
  495. package/dist/chunk-TWWAPJYE.js +26 -0
  496. package/dist/chunk-UARZCGWU.js +202 -0
  497. package/dist/chunk-UCNTAS2U.js +2580 -0
  498. package/dist/chunk-UD7IARSL.js +162 -0
  499. package/dist/chunk-UDKZKGUQ.js +379 -0
  500. package/dist/chunk-UEUYUUZA.js +3183 -0
  501. package/dist/chunk-UEUYUUZA.js.map +1 -0
  502. package/dist/chunk-UJRSZ6ZB.js +391 -0
  503. package/dist/chunk-UTM23O3G.js +50 -0
  504. package/dist/chunk-UUJSS56V.js +4570 -0
  505. package/dist/chunk-UWSF733U.js +42 -0
  506. package/dist/chunk-V4ZYJWU3.js +386 -0
  507. package/dist/chunk-VEIT2EGK.js +207 -0
  508. package/dist/chunk-VGG6DOTN.js +172 -0
  509. package/dist/chunk-VGSGAQJX.js +82 -0
  510. package/dist/chunk-VHK5CBIG.js +2317 -0
  511. package/dist/chunk-VLA2DTYG.js +154 -0
  512. package/dist/chunk-VSN6XKZ5.js +278 -0
  513. package/dist/chunk-VW6TOTDQ.js +111 -0
  514. package/dist/chunk-W3HKBWPM.js +406 -0
  515. package/dist/chunk-WDYM5SFM.js +73 -0
  516. package/dist/chunk-WJ4AZ2AR.js +2551 -0
  517. package/dist/chunk-WMQHP4E3.js +214 -0
  518. package/dist/chunk-WP5A6F6P.js +269 -0
  519. package/dist/chunk-WUR2DYJX.js +527 -0
  520. package/dist/chunk-WUR2DYJX.js.map +1 -0
  521. package/dist/chunk-WWQH3L6M.js +407 -0
  522. package/dist/chunk-WYIC3CXE.js +157 -0
  523. package/dist/chunk-WYIC3CXE.js.map +1 -0
  524. package/dist/chunk-X3T6ULUZ.js +297 -0
  525. package/dist/chunk-XA32OUL4.js +52 -0
  526. package/dist/chunk-XCICIQIE.js +113 -0
  527. package/dist/chunk-XHRIUCBD.js +138 -0
  528. package/dist/chunk-XJBWVT5X.js +1177 -0
  529. package/dist/chunk-XKQRWJFE.js +270 -0
  530. package/dist/chunk-XN3EVUB5.js +134 -0
  531. package/dist/chunk-XT6GBN2G.js +828 -0
  532. package/dist/chunk-XYVDTM4D.js +184 -0
  533. package/dist/chunk-XZO5X3KH.js +84 -0
  534. package/dist/chunk-Y34DIEOG.js +201 -0
  535. package/dist/chunk-YAIYUFCX.js +114 -0
  536. package/dist/chunk-YFLRBEDS.js +200 -0
  537. package/dist/chunk-YIKMBS4B.js +10053 -0
  538. package/dist/chunk-YIKMBS4B.js.map +1 -0
  539. package/dist/chunk-YQX227EF.js +403 -0
  540. package/dist/chunk-YVAB57JZ.js +340 -0
  541. package/dist/chunk-YWHSODBB.js +250 -0
  542. package/dist/chunk-YWJHCJQW.js +218 -0
  543. package/dist/chunk-Z37DSW2K.js +570 -0
  544. package/dist/chunk-ZELN2B72.js +399 -0
  545. package/dist/chunk-ZFGGR2JW.js +236 -0
  546. package/dist/chunk-ZL7SEED7.js +773 -0
  547. package/dist/composer.js +37 -36
  548. package/dist/computer-viewer-CNYFTUGF.js +21 -0
  549. package/dist/connect.js +31 -30
  550. package/dist/connection-step-up-EZRZW2LY.js +147 -0
  551. package/dist/connection-step-up-EZRZW2LY.js.map +1 -0
  552. package/dist/desktop-dictation.js +24 -24
  553. package/dist/desktop.js +2 -2
  554. package/dist/editor.js +2 -2
  555. package/dist/embedded-new-voice-A56WDECM.js +25 -0
  556. package/dist/embedded-voice-CBTSMIWW.js +25 -0
  557. package/dist/fleet-decision-row-6PQTGI2U.js +361 -0
  558. package/dist/in-chat-connect-model.js +5 -5
  559. package/dist/index.js +299 -298
  560. package/dist/interaction.js +9 -9
  561. package/dist/latest-question-F3VPDR7U.js +1 -1
  562. package/dist/lib/modal-layer.d.ts +11 -0
  563. package/dist/machine-request-model.js +1 -1
  564. package/dist/machines.js +8 -8
  565. package/dist/meetings-recorder.js +1 -1
  566. package/dist/meetings.js +117 -116
  567. package/dist/meetings.js.map +1 -1
  568. package/dist/messages/en.d.ts +1 -0
  569. package/dist/messages.js +1 -1
  570. package/dist/model-policy-picker-menu-ZU72JATS.js +23 -0
  571. package/dist/payment-page-card-5VEUANFD.js +227 -0
  572. package/dist/payment-page-card-5VEUANFD.js.map +1 -0
  573. package/dist/platform-activity-row-5IQT6R5Z.js +156 -0
  574. package/dist/queue-surface-implementation-TPCJ4R6N.js +933 -0
  575. package/dist/queue-surface-implementation-TPCJ4R6N.js.map +1 -0
  576. package/dist/realtime.js +17 -17
  577. package/dist/recorder-host-G5M676VM.js +80 -0
  578. package/dist/recordings.js +3 -3
  579. package/dist/sandbox-files-HCXOP6ZO.js +29 -0
  580. package/dist/session-app.css +1 -1
  581. package/dist/session-app.css.map +1 -1
  582. package/dist/session-app.js +388 -387
  583. package/dist/session-connect-cards-MYJRQWSA.js +28 -0
  584. package/dist/session-list-model.js +2 -2
  585. package/dist/session-realtime-YFVGQFJK.js +30 -0
  586. package/dist/session-realtime.js +2 -2
  587. package/dist/session-ui.js +96 -95
  588. package/dist/session.js +42 -42
  589. package/dist/sites.js +3 -3
  590. package/dist/terminal.js +2 -2
  591. package/dist/this-computer.js +4 -3
  592. package/dist/timeline-annotation-markers-5ELTFV5B.js +157 -0
  593. package/dist/timeline-annotation-selection-XHUOFRIY.js +208 -0
  594. package/dist/timeline-annotations-dialog-X2VNDYZ4.js +283 -0
  595. package/dist/timeline-model.js +58 -58
  596. package/dist/ui/access-list.js +24 -23
  597. package/dist/ui/access-list.js.map +1 -1
  598. package/dist/ui/cadence-picker.js +7 -7
  599. package/dist/ui/choice-cards.js +3 -3
  600. package/dist/ui/confirm-dialog.js +4 -3
  601. package/dist/ui/copy-field.js +3 -3
  602. package/dist/ui/detail-page.js +6 -5
  603. package/dist/ui/detail-sheet.js +6 -5
  604. package/dist/ui/dialog.js +2 -1
  605. package/dist/ui/diff-view.js +3 -3
  606. package/dist/ui/disclosure.js +7 -6
  607. package/dist/ui/email-chips-input.js +3 -3
  608. package/dist/ui/field.js +2 -2
  609. package/dist/ui/flush-form-page.js +8 -7
  610. package/dist/ui/form-dialog.js +7 -6
  611. package/dist/ui/list-row.js +6 -6
  612. package/dist/ui/load-failure.js +3 -3
  613. package/dist/ui/relative-time.js +3 -3
  614. package/dist/ui/revision-history.js +13 -13
  615. package/dist/ui/role-select.js +12 -11
  616. package/dist/ui/select-menu.js +5 -5
  617. package/dist/ui/settings-nav.js +6 -6
  618. package/dist/ui/sheet.js +3 -2
  619. package/dist/ui/usage-meter.js +4 -4
  620. package/dist/usage.js +3 -3
  621. package/dist/workbench.js +11 -11
  622. package/package.json +6 -5
  623. package/src/app/components/command-menu/command-menu.tsx +232 -228
  624. package/src/components/automations/automation-model.ts +1 -0
  625. package/src/components/file-browser.tsx +69 -64
  626. package/src/components/session-capability-frame.tsx +36 -34
  627. package/src/components/this-computer/this-computer-setup.tsx +36 -29
  628. package/src/lib/modal-layer.tsx +33 -0
  629. package/src/messages/en.ts +1 -0
  630. package/src/timeline/screenshot-lightbox.tsx +137 -128
  631. package/src/ui/detail-sheet.tsx +44 -40
  632. package/src/ui/dialog.tsx +39 -35
  633. package/src/ui/form-dialog-layer.test.tsx +4 -3
  634. package/src/ui/form-dialog.tsx +28 -26
  635. package/src/ui/sheet.tsx +36 -46
  636. package/styles/compiled.css +57 -12
  637. package/styles/index.css +19 -0
  638. package/styles/this-computer.css +1 -1
  639. package/dist/browser-viewer-J6O65JXH.js +0 -23
  640. package/dist/chat-interactive-block-R5JEJYMR.js +0 -22
  641. package/dist/chunk-236GMLCR.js +0 -50
  642. package/dist/chunk-24S44WBL.js +0 -200
  643. package/dist/chunk-27HN57HE.js +0 -274
  644. package/dist/chunk-2FLGURHP.js +0 -297
  645. package/dist/chunk-2SH6CLOR.js +0 -378
  646. package/dist/chunk-2XZ3EUSP.js +0 -505
  647. package/dist/chunk-2ZC62PY4.js +0 -113
  648. package/dist/chunk-36YTBVYF.js +0 -197
  649. package/dist/chunk-3775TQE5.js +0 -10053
  650. package/dist/chunk-3775TQE5.js.map +0 -1
  651. package/dist/chunk-3CF2B2LD.js +0 -110
  652. package/dist/chunk-3GENISSH.js +0 -129
  653. package/dist/chunk-3IEVQMGO.js +0 -2431
  654. package/dist/chunk-3N3EN7FA.js +0 -34
  655. package/dist/chunk-3NMKLLEB.js +0 -218
  656. package/dist/chunk-3VSKLEUE.js +0 -4570
  657. package/dist/chunk-3X4HTUUR.js +0 -538
  658. package/dist/chunk-3XHPCZ6N.js +0 -380
  659. package/dist/chunk-3XHPCZ6N.js.map +0 -1
  660. package/dist/chunk-4GFLP4OY.js +0 -131
  661. package/dist/chunk-4GUPD7CJ.js +0 -234
  662. package/dist/chunk-4OGDD2EM.js +0 -2434
  663. package/dist/chunk-4T2RJ2HY.js +0 -93
  664. package/dist/chunk-4XEPZARK.js +0 -391
  665. package/dist/chunk-4YJGB22T.js +0 -570
  666. package/dist/chunk-4YNWA5YG.js +0 -236
  667. package/dist/chunk-4ZRGFCSP.js +0 -5919
  668. package/dist/chunk-4ZRGFCSP.js.map +0 -1
  669. package/dist/chunk-54NTSBQO.js +0 -33
  670. package/dist/chunk-5BRK72J5.js +0 -214
  671. package/dist/chunk-5BRK72J5.js.map +0 -1
  672. package/dist/chunk-5CGZOJN7.js +0 -111
  673. package/dist/chunk-5ERDSF2C.js +0 -79
  674. package/dist/chunk-5I6CWDA6.js +0 -3176
  675. package/dist/chunk-5I6CWDA6.js.map +0 -1
  676. package/dist/chunk-5JG277OH.js +0 -92
  677. package/dist/chunk-5JOTMM3F.js +0 -3996
  678. package/dist/chunk-5JOTMM3F.js.map +0 -1
  679. package/dist/chunk-5ORXRVXV.js +0 -469
  680. package/dist/chunk-5XVOL3KH.js +0 -931
  681. package/dist/chunk-67BMBRTK.js +0 -406
  682. package/dist/chunk-67JCL67N.js +0 -84
  683. package/dist/chunk-6F34IWSA.js +0 -47
  684. package/dist/chunk-6F34IWSA.js.map +0 -1
  685. package/dist/chunk-6GCMLYER.js +0 -432
  686. package/dist/chunk-6GODDS6F.js +0 -103
  687. package/dist/chunk-6GYRHQVL.js +0 -5089
  688. package/dist/chunk-6LF2ZE52.js +0 -851
  689. package/dist/chunk-6MSTIFAL.js +0 -406
  690. package/dist/chunk-6OMREP52.js +0 -187
  691. package/dist/chunk-6P3QOMPV.js +0 -57
  692. package/dist/chunk-6SPEMI7K.js +0 -850
  693. package/dist/chunk-6SPEMI7K.js.map +0 -1
  694. package/dist/chunk-6WGJB6GO.js +0 -65
  695. package/dist/chunk-72PGXQDN.js +0 -399
  696. package/dist/chunk-75LF7LSI.js +0 -307
  697. package/dist/chunk-7CIMPDGL.js +0 -26
  698. package/dist/chunk-7EJWP62C.js +0 -271
  699. package/dist/chunk-7FY47EN2.js +0 -138
  700. package/dist/chunk-7I4KWTJS.js +0 -112
  701. package/dist/chunk-7J3TLTPI.js +0 -50
  702. package/dist/chunk-7M5DPUGZ.js +0 -215
  703. package/dist/chunk-7ZQVRVNI.js +0 -1263
  704. package/dist/chunk-A2QOUEU3.js +0 -256
  705. package/dist/chunk-A36WG3BT.js +0 -175
  706. package/dist/chunk-ADFUTR45.js +0 -138
  707. package/dist/chunk-ADNH5GSP.js +0 -1236
  708. package/dist/chunk-AGW5H6QV.js +0 -1356
  709. package/dist/chunk-AHBEBGLO.js +0 -27
  710. package/dist/chunk-AJIGRQIO.js +0 -311
  711. package/dist/chunk-AP63EUPJ.js +0 -145
  712. package/dist/chunk-ATWXYAWP.js +0 -227
  713. package/dist/chunk-AU2DT7O2.js +0 -29
  714. package/dist/chunk-AX65L6QV.js +0 -316
  715. package/dist/chunk-AZHZ2EU4.js +0 -333
  716. package/dist/chunk-B57G2C45.js +0 -357
  717. package/dist/chunk-BIQMUTVW.js +0 -1333
  718. package/dist/chunk-BOZN54YB.js +0 -149
  719. package/dist/chunk-BOZN54YB.js.map +0 -1
  720. package/dist/chunk-BPCI4ZGR.js +0 -4979
  721. package/dist/chunk-BRJLN3ZL.js +0 -67
  722. package/dist/chunk-BY7AWWDB.js +0 -177
  723. package/dist/chunk-CBSBNUGV.js +0 -523
  724. package/dist/chunk-CBSBNUGV.js.map +0 -1
  725. package/dist/chunk-CGS44LYC.js +0 -1022
  726. package/dist/chunk-CGS44LYC.js.map +0 -1
  727. package/dist/chunk-CHKHQHOO.js +0 -3070
  728. package/dist/chunk-CSGKUDNB.js +0 -1024
  729. package/dist/chunk-CZPN2HP3.js +0 -441
  730. package/dist/chunk-D2VP4C5B.js +0 -515
  731. package/dist/chunk-D32VVOBJ.js +0 -738
  732. package/dist/chunk-D32VVOBJ.js.map +0 -1
  733. package/dist/chunk-D4AF4SOJ.js +0 -246
  734. package/dist/chunk-DCML4SXQ.js +0 -201
  735. package/dist/chunk-DECSYLBP.js +0 -572
  736. package/dist/chunk-DECSYLBP.js.map +0 -1
  737. package/dist/chunk-DEKCTHXM.js +0 -639
  738. package/dist/chunk-DGS62JWP.js +0 -828
  739. package/dist/chunk-DHXRMZPQ.js +0 -276
  740. package/dist/chunk-DJ4X4U4A.js +0 -1021
  741. package/dist/chunk-DLMMQMKZ.js +0 -2551
  742. package/dist/chunk-DWPE3Y7M.js +0 -144
  743. package/dist/chunk-EFD4DD3E.js +0 -113
  744. package/dist/chunk-EGSRY63C.js +0 -251
  745. package/dist/chunk-EIVA3MAH.js +0 -85
  746. package/dist/chunk-EJYHPNXD.js +0 -103
  747. package/dist/chunk-EQ263DHZ.js +0 -27
  748. package/dist/chunk-EVJ42E62.js +0 -137
  749. package/dist/chunk-EW3N5SCT.js +0 -1628
  750. package/dist/chunk-F47X7XPQ.js +0 -124
  751. package/dist/chunk-F4ESDJTE.js +0 -400
  752. package/dist/chunk-F7NV3EL5.js +0 -2580
  753. package/dist/chunk-FFWVFU6S.js +0 -48
  754. package/dist/chunk-FPPPLIGK.js +0 -1184
  755. package/dist/chunk-FUJ6DWRZ.js +0 -207
  756. package/dist/chunk-FWEMP52Y.js +0 -199
  757. package/dist/chunk-FX4HG4FR.js +0 -37
  758. package/dist/chunk-FZOK37SC.js +0 -155
  759. package/dist/chunk-GBGJIR6F.js +0 -404
  760. package/dist/chunk-GCURVP5U.js +0 -211
  761. package/dist/chunk-GFMRMSFN.js +0 -196
  762. package/dist/chunk-GH4VY3H5.js +0 -178
  763. package/dist/chunk-GJFTPSGN.js +0 -278
  764. package/dist/chunk-GKOIWZ4C.js +0 -794
  765. package/dist/chunk-GNTEF5TL.js +0 -158
  766. package/dist/chunk-GQF2HWQE.js +0 -407
  767. package/dist/chunk-GXYS6BI3.js +0 -311
  768. package/dist/chunk-H27MS36Q.js +0 -318
  769. package/dist/chunk-H4NDK35I.js +0 -85
  770. package/dist/chunk-H6DJIEO6.js +0 -269
  771. package/dist/chunk-HC7C4ZN2.js +0 -608
  772. package/dist/chunk-HUKGLWAY.js +0 -174
  773. package/dist/chunk-HUS2QEPV.js +0 -428
  774. package/dist/chunk-HUTQJY3F.js +0 -23
  775. package/dist/chunk-HWOYJOKK.js +0 -266
  776. package/dist/chunk-I46F7LUI.js +0 -15
  777. package/dist/chunk-I57PYKVN.js +0 -386
  778. package/dist/chunk-IBI3N3P7.js +0 -56
  779. package/dist/chunk-IEUZ4ASX.js +0 -3110
  780. package/dist/chunk-IHLF7R6Q.js +0 -1309
  781. package/dist/chunk-J3XWJ2A6.js +0 -209
  782. package/dist/chunk-J45WTHTL.js +0 -229
  783. package/dist/chunk-J4OOKDRV.js +0 -40
  784. package/dist/chunk-J6YVN3W7.js +0 -162
  785. package/dist/chunk-JOZFVEBN.js +0 -2984
  786. package/dist/chunk-K7GGLL2U.js +0 -231
  787. package/dist/chunk-KDHWX7XH.js +0 -292
  788. package/dist/chunk-KMLELG4O.js +0 -46
  789. package/dist/chunk-KQY4P4EO.js +0 -373
  790. package/dist/chunk-KSDCQPJY.js +0 -12
  791. package/dist/chunk-KW4OJ3RS.js +0 -175
  792. package/dist/chunk-KWOYMJKM.js +0 -1803
  793. package/dist/chunk-KYDLVMKA.js +0 -99
  794. package/dist/chunk-KZYQNVXE.js +0 -449
  795. package/dist/chunk-L3GNEC6B.js +0 -1019
  796. package/dist/chunk-L5JV7MAF.js +0 -372
  797. package/dist/chunk-LC5E7CVA.js +0 -191
  798. package/dist/chunk-LEYZQZFS.js +0 -121
  799. package/dist/chunk-LFMTPBET.js +0 -265
  800. package/dist/chunk-LFQI2C46.js +0 -175
  801. package/dist/chunk-LH3SDMDC.js +0 -172
  802. package/dist/chunk-LJKZGQTI.js +0 -192
  803. package/dist/chunk-LQDSZPB5.js +0 -73
  804. package/dist/chunk-LTYUE572.js +0 -117
  805. package/dist/chunk-M3WCB73E.js +0 -379
  806. package/dist/chunk-M47MKLW2.js +0 -283
  807. package/dist/chunk-M5FX5KH5.js +0 -629
  808. package/dist/chunk-MHL727ZE.js +0 -129
  809. package/dist/chunk-N3AAMSBH.js +0 -170
  810. package/dist/chunk-N4TJ7A7I.js +0 -41
  811. package/dist/chunk-NFZAMHSR.js +0 -401
  812. package/dist/chunk-NRAVQJE2.js +0 -61
  813. package/dist/chunk-NU4HYZ3C.js +0 -48
  814. package/dist/chunk-NUZNJSL5.js +0 -285
  815. package/dist/chunk-NY5DX43C.js +0 -133
  816. package/dist/chunk-O3C4BASC.js +0 -773
  817. package/dist/chunk-O5JDQZGV.js +0 -176
  818. package/dist/chunk-OMYT3X2Y.js +0 -107
  819. package/dist/chunk-OSQ6YGZW.js +0 -412
  820. package/dist/chunk-OWXSWGP3.js +0 -263
  821. package/dist/chunk-PBCSPCF6.js +0 -43
  822. package/dist/chunk-PBKG2OPJ.js +0 -849
  823. package/dist/chunk-PCP5GF77.js +0 -366
  824. package/dist/chunk-PCSRHFRF.js +0 -75
  825. package/dist/chunk-PHNHJKEL.js +0 -287
  826. package/dist/chunk-PIPD74PT.js +0 -650
  827. package/dist/chunk-PMBZMVKE.js +0 -33
  828. package/dist/chunk-PMVZYQ5W.js +0 -107
  829. package/dist/chunk-POUIWV6K.js +0 -2553
  830. package/dist/chunk-PTSRBKQC.js +0 -118
  831. package/dist/chunk-Q5AQJQXU.js +0 -114
  832. package/dist/chunk-QAS2OFG5.js +0 -371
  833. package/dist/chunk-QCJ6SNCP.js +0 -532
  834. package/dist/chunk-QFMPAR74.js +0 -73
  835. package/dist/chunk-QHF4B7R4.js +0 -166
  836. package/dist/chunk-QHGWFKTK.js +0 -52
  837. package/dist/chunk-QJ4YC4PM.js +0 -353
  838. package/dist/chunk-QMFX5BDA.js +0 -3851
  839. package/dist/chunk-QSG6FWOK.js +0 -126
  840. package/dist/chunk-QTT5574G.js +0 -154
  841. package/dist/chunk-R6CFPY3F.js +0 -278
  842. package/dist/chunk-R6OBJ7LF.js +0 -131
  843. package/dist/chunk-R6OBJ7LF.js.map +0 -1
  844. package/dist/chunk-RAUWORZV.js +0 -1187
  845. package/dist/chunk-RG7PMYWW.js +0 -82
  846. package/dist/chunk-RLS563ST.js +0 -403
  847. package/dist/chunk-RQAE6DI7.js +0 -259
  848. package/dist/chunk-RWWQLVGV.js +0 -184
  849. package/dist/chunk-S6GFECVG.js +0 -56
  850. package/dist/chunk-SBWVYYRA.js +0 -283
  851. package/dist/chunk-SHW2QUOE.js +0 -158
  852. package/dist/chunk-SQJQVTHA.js +0 -3690
  853. package/dist/chunk-STTCF3OR.js +0 -202
  854. package/dist/chunk-SVG5U7UN.js +0 -270
  855. package/dist/chunk-SY6V3Z2U.js +0 -270
  856. package/dist/chunk-T3WYQHAO.js +0 -42
  857. package/dist/chunk-TCDDOFRG.js +0 -79
  858. package/dist/chunk-TGG3ODCS.js +0 -99
  859. package/dist/chunk-TL6UOSMX.js +0 -4519
  860. package/dist/chunk-TL6UOSMX.js.map +0 -1
  861. package/dist/chunk-TU6FW6IJ.js +0 -566
  862. package/dist/chunk-TXSZR2SB.js +0 -188
  863. package/dist/chunk-TYZ3WUKG.js +0 -1095
  864. package/dist/chunk-U3GQZEAO.js +0 -584
  865. package/dist/chunk-U4EMW7RP.js +0 -249
  866. package/dist/chunk-UBSHJB6M.js +0 -83
  867. package/dist/chunk-UFRXYZCJ.js +0 -125
  868. package/dist/chunk-UHBIXNRW.js +0 -100
  869. package/dist/chunk-UJB54P4M.js +0 -335
  870. package/dist/chunk-UJKVMFFF.js +0 -114
  871. package/dist/chunk-UJSXNGKJ.js +0 -141
  872. package/dist/chunk-UNOJ5PNN.js +0 -3321
  873. package/dist/chunk-UOBJFO25.js +0 -351
  874. package/dist/chunk-UPRN4FBY.js +0 -38
  875. package/dist/chunk-UQQUMT5P.js +0 -91
  876. package/dist/chunk-UTFX46TK.js +0 -1177
  877. package/dist/chunk-V5HRUE42.js +0 -396
  878. package/dist/chunk-VCWRMKTQ.js +0 -296
  879. package/dist/chunk-VJAP57SP.js +0 -114
  880. package/dist/chunk-VMJN6YQL.js +0 -391
  881. package/dist/chunk-VUNGU657.js +0 -20
  882. package/dist/chunk-VWEGG7JQ.js +0 -134
  883. package/dist/chunk-VWT7ORWC.js +0 -437
  884. package/dist/chunk-VWT7ORWC.js.map +0 -1
  885. package/dist/chunk-VXGQVX53.js +0 -1152
  886. package/dist/chunk-W7UFWXZ6.js +0 -72
  887. package/dist/chunk-WKBJNGYV.js +0 -230
  888. package/dist/chunk-WZZV7DUU.js +0 -723
  889. package/dist/chunk-XDWW2DLJ.js +0 -247
  890. package/dist/chunk-XF55A7CC.js +0 -162
  891. package/dist/chunk-XGUBIE35.js +0 -187
  892. package/dist/chunk-XIUJL352.js +0 -66
  893. package/dist/chunk-XKPVWLMM.js +0 -383
  894. package/dist/chunk-XSR6J5LY.js +0 -234
  895. package/dist/chunk-Y2LD4FTV.js +0 -132
  896. package/dist/chunk-Y3TQ2M2O.js +0 -214
  897. package/dist/chunk-Y5HXP2NR.js +0 -251
  898. package/dist/chunk-Y6CNWBV3.js +0 -264
  899. package/dist/chunk-YGPMLIFT.js +0 -2317
  900. package/dist/chunk-YIR4KVJO.js +0 -389
  901. package/dist/chunk-YN6UVG4Z.js +0 -250
  902. package/dist/chunk-YNIDJOGT.js +0 -340
  903. package/dist/chunk-YP4SNX4P.js +0 -220
  904. package/dist/chunk-YPIOAMHD.js +0 -246
  905. package/dist/chunk-YPM3T3UM.js +0 -598
  906. package/dist/chunk-YRJZYQ5A.js +0 -898
  907. package/dist/chunk-YRJZYQ5A.js.map +0 -1
  908. package/dist/chunk-YVODOJZG.js +0 -298
  909. package/dist/chunk-ZAGLLXX5.js +0 -107
  910. package/dist/chunk-ZD67RM6G.js +0 -60
  911. package/dist/chunk-ZLY7M463.js +0 -1185
  912. package/dist/chunk-ZNIG3CPB.js +0 -98
  913. package/dist/chunk-ZOQKWIFS.js +0 -108
  914. package/dist/chunk-ZU5WVSHV.js +0 -168
  915. package/dist/chunk-ZWEVJPXC.js +0 -818
  916. package/dist/chunk-ZWFLYN7T.js +0 -772
  917. package/dist/computer-viewer-ZISZUM4L.js +0 -21
  918. package/dist/connection-step-up-UQHDCXFE.js +0 -146
  919. package/dist/connection-step-up-UQHDCXFE.js.map +0 -1
  920. package/dist/embedded-new-voice-UWSSA7AB.js +0 -25
  921. package/dist/embedded-voice-T34K465A.js +0 -25
  922. package/dist/fleet-decision-row-REAWMEHI.js +0 -361
  923. package/dist/model-policy-picker-menu-2CTRKSDJ.js +0 -23
  924. package/dist/payment-page-card-OOOFGIMH.js +0 -226
  925. package/dist/payment-page-card-OOOFGIMH.js.map +0 -1
  926. package/dist/platform-activity-row-EZYTZPYR.js +0 -156
  927. package/dist/queue-surface-implementation-HDZ42LN7.js +0 -932
  928. package/dist/queue-surface-implementation-HDZ42LN7.js.map +0 -1
  929. package/dist/recorder-host-6HFQQTNI.js +0 -80
  930. package/dist/sandbox-files-6JY7WVMO.js +0 -28
  931. package/dist/session-connect-cards-VTSJODCX.js +0 -27
  932. package/dist/session-realtime-G3ZGG3KR.js +0 -30
  933. package/dist/timeline-annotation-markers-S6DMHCI6.js +0 -157
  934. package/dist/timeline-annotation-selection-UFZOKL5E.js +0 -208
  935. package/dist/timeline-annotations-dialog-FPJ4MPHD.js +0 -283
  936. /package/dist/{browser-viewer-J6O65JXH.js.map → browser-viewer-O5FJOWWI.js.map} +0 -0
  937. /package/dist/{chat-interactive-block-R5JEJYMR.js.map → chat-interactive-block-TQTOUHRC.js.map} +0 -0
  938. /package/dist/{chunk-SQJQVTHA.js.map → chunk-23TTCFRP.js.map} +0 -0
  939. /package/dist/{chunk-3GENISSH.js.map → chunk-2BOFLWNJ.js.map} +0 -0
  940. /package/dist/{chunk-6LF2ZE52.js.map → chunk-3DMD2KHT.js.map} +0 -0
  941. /package/dist/{chunk-Y2LD4FTV.js.map → chunk-3DOISS3I.js.map} +0 -0
  942. /package/dist/{chunk-FWEMP52Y.js.map → chunk-3KWTXE4O.js.map} +0 -0
  943. /package/dist/{chunk-4T2RJ2HY.js.map → chunk-3TRERIPD.js.map} +0 -0
  944. /package/dist/{chunk-5JG277OH.js.map → chunk-3UXBTL7Z.js.map} +0 -0
  945. /package/dist/{chunk-M47MKLW2.js.map → chunk-3XEKXNB4.js.map} +0 -0
  946. /package/dist/{chunk-HUS2QEPV.js.map → chunk-3ZJUQG4K.js.map} +0 -0
  947. /package/dist/{chunk-UJB54P4M.js.map → chunk-42WTAUUW.js.map} +0 -0
  948. /package/dist/{chunk-UPRN4FBY.js.map → chunk-46ZC5VNC.js.map} +0 -0
  949. /package/dist/{chunk-QHF4B7R4.js.map → chunk-4BVEFGX7.js.map} +0 -0
  950. /package/dist/{chunk-NFZAMHSR.js.map → chunk-4IOFV4S4.js.map} +0 -0
  951. /package/dist/{chunk-EVJ42E62.js.map → chunk-4ISXBLJV.js.map} +0 -0
  952. /package/dist/{chunk-SBWVYYRA.js.map → chunk-4L2MBYLH.js.map} +0 -0
  953. /package/dist/{chunk-O5JDQZGV.js.map → chunk-4NWUZ6SL.js.map} +0 -0
  954. /package/dist/{chunk-H27MS36Q.js.map → chunk-4QVX6CTT.js.map} +0 -0
  955. /package/dist/{chunk-JOZFVEBN.js.map → chunk-4YARO4Y5.js.map} +0 -0
  956. /package/dist/{chunk-3N3EN7FA.js.map → chunk-4Z7BPBS7.js.map} +0 -0
  957. /package/dist/{chunk-GKOIWZ4C.js.map → chunk-55ILMX6B.js.map} +0 -0
  958. /package/dist/{chunk-6GODDS6F.js.map → chunk-57OAQTWD.js.map} +0 -0
  959. /package/dist/{chunk-KMLELG4O.js.map → chunk-5GXX3NI7.js.map} +0 -0
  960. /package/dist/{chunk-QJ4YC4PM.js.map → chunk-5VE3PPSK.js.map} +0 -0
  961. /package/dist/{chunk-HWOYJOKK.js.map → chunk-62T2ZPD5.js.map} +0 -0
  962. /package/dist/{chunk-EGSRY63C.js.map → chunk-655JT4VH.js.map} +0 -0
  963. /package/dist/{chunk-2XZ3EUSP.js.map → chunk-65OPNLE4.js.map} +0 -0
  964. /package/dist/{chunk-J45WTHTL.js.map → chunk-67PIP46J.js.map} +0 -0
  965. /package/dist/{chunk-GCURVP5U.js.map → chunk-6CAK65QV.js.map} +0 -0
  966. /package/dist/{chunk-PMBZMVKE.js.map → chunk-6CDBX3XG.js.map} +0 -0
  967. /package/dist/{chunk-R6CFPY3F.js.map → chunk-6D3D2JWY.js.map} +0 -0
  968. /package/dist/{chunk-PMVZYQ5W.js.map → chunk-6DGQB6GT.js.map} +0 -0
  969. /package/dist/{chunk-TXSZR2SB.js.map → chunk-6NFK3J2O.js.map} +0 -0
  970. /package/dist/{chunk-3X4HTUUR.js.map → chunk-6R3QX3AC.js.map} +0 -0
  971. /package/dist/{chunk-F4ESDJTE.js.map → chunk-6S5OMLAL.js.map} +0 -0
  972. /package/dist/{chunk-U4EMW7RP.js.map → chunk-6SG2VVVB.js.map} +0 -0
  973. /package/dist/{chunk-3CF2B2LD.js.map → chunk-6U57GGJI.js.map} +0 -0
  974. /package/dist/{chunk-ZNIG3CPB.js.map → chunk-6V2PEFPS.js.map} +0 -0
  975. /package/dist/{chunk-UNOJ5PNN.js.map → chunk-6VASZZVV.js.map} +0 -0
  976. /package/dist/{chunk-ZU5WVSHV.js.map → chunk-7BBYH5R5.js.map} +0 -0
  977. /package/dist/{chunk-J3XWJ2A6.js.map → chunk-7EO3T3IX.js.map} +0 -0
  978. /package/dist/{chunk-SHW2QUOE.js.map → chunk-7EZQ6EKM.js.map} +0 -0
  979. /package/dist/{chunk-I46F7LUI.js.map → chunk-7HI53NPP.js.map} +0 -0
  980. /package/dist/{chunk-FX4HG4FR.js.map → chunk-7J4BFENI.js.map} +0 -0
  981. /package/dist/{chunk-Q5AQJQXU.js.map → chunk-7LSGNY2L.js.map} +0 -0
  982. /package/dist/{chunk-ADNH5GSP.js.map → chunk-7MMONDFK.js.map} +0 -0
  983. /package/dist/{chunk-KW4OJ3RS.js.map → chunk-7MWPBGDX.js.map} +0 -0
  984. /package/dist/{chunk-QAS2OFG5.js.map → chunk-7NSDIQMY.js.map} +0 -0
  985. /package/dist/{chunk-K7GGLL2U.js.map → chunk-7XPDLT5G.js.map} +0 -0
  986. /package/dist/{chunk-2SH6CLOR.js.map → chunk-A3BCF4MV.js.map} +0 -0
  987. /package/dist/{chunk-PBKG2OPJ.js.map → chunk-A5GX3CAE.js.map} +0 -0
  988. /package/dist/{chunk-D2VP4C5B.js.map → chunk-AAHQJWEP.js.map} +0 -0
  989. /package/dist/{chunk-DWPE3Y7M.js.map → chunk-AAWEPZOG.js.map} +0 -0
  990. /package/dist/{chunk-YPM3T3UM.js.map → chunk-ABRT345L.js.map} +0 -0
  991. /package/dist/{chunk-UQQUMT5P.js.map → chunk-ANXFE2EP.js.map} +0 -0
  992. /package/dist/{chunk-7EJWP62C.js.map → chunk-AQNE4XWU.js.map} +0 -0
  993. /package/dist/{chunk-BPCI4ZGR.js.map → chunk-AV2OMWDS.js.map} +0 -0
  994. /package/dist/{chunk-L3GNEC6B.js.map → chunk-AYHMHAU5.js.map} +0 -0
  995. /package/dist/{chunk-7J3TLTPI.js.map → chunk-AZ637XK3.js.map} +0 -0
  996. /package/dist/{chunk-4OGDD2EM.js.map → chunk-B6AH43UQ.js.map} +0 -0
  997. /package/dist/{chunk-XKPVWLMM.js.map → chunk-BBECLK22.js.map} +0 -0
  998. /package/dist/{chunk-GNTEF5TL.js.map → chunk-BWYPJG3P.js.map} +0 -0
  999. /package/dist/{chunk-V5HRUE42.js.map → chunk-CI7F4Y26.js.map} +0 -0
  1000. /package/dist/{chunk-5XVOL3KH.js.map → chunk-CNLSXEQC.js.map} +0 -0
  1001. /package/dist/{chunk-6WGJB6GO.js.map → chunk-COCB4HE3.js.map} +0 -0
  1002. /package/dist/{chunk-B57G2C45.js.map → chunk-CPEVLG3B.js.map} +0 -0
  1003. /package/dist/{chunk-FZOK37SC.js.map → chunk-CVC4RO7D.js.map} +0 -0
  1004. /package/dist/{chunk-IEUZ4ASX.js.map → chunk-CY6RLRHJ.js.map} +0 -0
  1005. /package/dist/{chunk-LTYUE572.js.map → chunk-D3WLSMCL.js.map} +0 -0
  1006. /package/dist/{chunk-GH4VY3H5.js.map → chunk-D7SSOJEU.js.map} +0 -0
  1007. /package/dist/{chunk-ZWEVJPXC.js.map → chunk-DBOD5WXT.js.map} +0 -0
  1008. /package/dist/{chunk-J6YVN3W7.js.map → chunk-DFWSRIFL.js.map} +0 -0
  1009. /package/dist/{chunk-QSG6FWOK.js.map → chunk-DITZUBOK.js.map} +0 -0
  1010. /package/dist/{chunk-PHNHJKEL.js.map → chunk-DKD2ZZSJ.js.map} +0 -0
  1011. /package/dist/{chunk-YPIOAMHD.js.map → chunk-DOJWHSRD.js.map} +0 -0
  1012. /package/dist/{chunk-XGUBIE35.js.map → chunk-DR6LZXJI.js.map} +0 -0
  1013. /package/dist/{chunk-PIPD74PT.js.map → chunk-DV73XOVB.js.map} +0 -0
  1014. /package/dist/{chunk-AX65L6QV.js.map → chunk-DYO7DNDD.js.map} +0 -0
  1015. /package/dist/{chunk-4GUPD7CJ.js.map → chunk-DYZASWWT.js.map} +0 -0
  1016. /package/dist/{chunk-7ZQVRVNI.js.map → chunk-EC5HUNXI.js.map} +0 -0
  1017. /package/dist/{chunk-XDWW2DLJ.js.map → chunk-ECQ7FV3E.js.map} +0 -0
  1018. /package/dist/{chunk-67BMBRTK.js.map → chunk-ECVCSZWY.js.map} +0 -0
  1019. /package/dist/{chunk-AZHZ2EU4.js.map → chunk-EMXO5HCY.js.map} +0 -0
  1020. /package/dist/{chunk-LFMTPBET.js.map → chunk-ENJX5TAA.js.map} +0 -0
  1021. /package/dist/{chunk-XIUJL352.js.map → chunk-EQSYPIAI.js.map} +0 -0
  1022. /package/dist/{chunk-VXGQVX53.js.map → chunk-EV73XMK3.js.map} +0 -0
  1023. /package/dist/{chunk-POUIWV6K.js.map → chunk-F2SGC74A.js.map} +0 -0
  1024. /package/dist/{chunk-WKBJNGYV.js.map → chunk-F5DEBD4D.js.map} +0 -0
  1025. /package/dist/{chunk-TU6FW6IJ.js.map → chunk-F6JJBUQ2.js.map} +0 -0
  1026. /package/dist/{chunk-CSGKUDNB.js.map → chunk-FEVZDJOZ.js.map} +0 -0
  1027. /package/dist/{chunk-LEYZQZFS.js.map → chunk-FF22IUY3.js.map} +0 -0
  1028. /package/dist/{chunk-A2QOUEU3.js.map → chunk-FILRDNUQ.js.map} +0 -0
  1029. /package/dist/{chunk-ATWXYAWP.js.map → chunk-FLB3BP2E.js.map} +0 -0
  1030. /package/dist/{chunk-DEKCTHXM.js.map → chunk-FZVMMHPC.js.map} +0 -0
  1031. /package/dist/{chunk-7I4KWTJS.js.map → chunk-G6D5NVWM.js.map} +0 -0
  1032. /package/dist/{chunk-LJKZGQTI.js.map → chunk-GGH5STTP.js.map} +0 -0
  1033. /package/dist/{chunk-6OMREP52.js.map → chunk-GGHX6GS7.js.map} +0 -0
  1034. /package/dist/{chunk-HUKGLWAY.js.map → chunk-GIHE7U3Y.js.map} +0 -0
  1035. /package/dist/{chunk-Y6CNWBV3.js.map → chunk-GO5VIAA7.js.map} +0 -0
  1036. /package/dist/{chunk-AHBEBGLO.js.map → chunk-GSK637QS.js.map} +0 -0
  1037. /package/dist/{chunk-S6GFECVG.js.map → chunk-HBYO34CP.js.map} +0 -0
  1038. /package/dist/{chunk-PTSRBKQC.js.map → chunk-HFROJDFQ.js.map} +0 -0
  1039. /package/dist/{chunk-Y5HXP2NR.js.map → chunk-HGEDFQ7G.js.map} +0 -0
  1040. /package/dist/{chunk-AGW5H6QV.js.map → chunk-HH3QTFGV.js.map} +0 -0
  1041. /package/dist/{chunk-YP4SNX4P.js.map → chunk-HHFFPE67.js.map} +0 -0
  1042. /package/dist/{chunk-D4AF4SOJ.js.map → chunk-HHYTB5OL.js.map} +0 -0
  1043. /package/dist/{chunk-FFWVFU6S.js.map → chunk-HPKWAHHI.js.map} +0 -0
  1044. /package/dist/{chunk-KQY4P4EO.js.map → chunk-HSPOCEGP.js.map} +0 -0
  1045. /package/dist/{chunk-HC7C4ZN2.js.map → chunk-IC74VN2I.js.map} +0 -0
  1046. /package/dist/{chunk-DJ4X4U4A.js.map → chunk-ICSQO2CV.js.map} +0 -0
  1047. /package/dist/{chunk-CHKHQHOO.js.map → chunk-IEZE7SL6.js.map} +0 -0
  1048. /package/dist/{chunk-N3AAMSBH.js.map → chunk-IGHNTARW.js.map} +0 -0
  1049. /package/dist/{chunk-7FY47EN2.js.map → chunk-IKYS56PQ.js.map} +0 -0
  1050. /package/dist/{chunk-IBI3N3P7.js.map → chunk-IO474NRY.js.map} +0 -0
  1051. /package/dist/{chunk-WZZV7DUU.js.map → chunk-IP2CCFAV.js.map} +0 -0
  1052. /package/dist/{chunk-QMFX5BDA.js.map → chunk-IT5GF54F.js.map} +0 -0
  1053. /package/dist/{chunk-SVG5U7UN.js.map → chunk-IX67G5FD.js.map} +0 -0
  1054. /package/dist/{chunk-KDHWX7XH.js.map → chunk-IXNJK7KJ.js.map} +0 -0
  1055. /package/dist/{chunk-DHXRMZPQ.js.map → chunk-IZWTARYT.js.map} +0 -0
  1056. /package/dist/{chunk-ZOQKWIFS.js.map → chunk-JBV2HY43.js.map} +0 -0
  1057. /package/dist/{chunk-54NTSBQO.js.map → chunk-JE62XK5K.js.map} +0 -0
  1058. /package/dist/{chunk-EIVA3MAH.js.map → chunk-JFAWCALM.js.map} +0 -0
  1059. /package/dist/{chunk-UBSHJB6M.js.map → chunk-JQGPATQZ.js.map} +0 -0
  1060. /package/dist/{chunk-27HN57HE.js.map → chunk-JYZGX5UZ.js.map} +0 -0
  1061. /package/dist/{chunk-W7UFWXZ6.js.map → chunk-K227GMSM.js.map} +0 -0
  1062. /package/dist/{chunk-KZYQNVXE.js.map → chunk-KB2O7JIJ.js.map} +0 -0
  1063. /package/dist/{chunk-KSDCQPJY.js.map → chunk-KT6GC67G.js.map} +0 -0
  1064. /package/dist/{chunk-PCSRHFRF.js.map → chunk-KTGKGHEA.js.map} +0 -0
  1065. /package/dist/{chunk-NUZNJSL5.js.map → chunk-KU77XHWB.js.map} +0 -0
  1066. /package/dist/{chunk-A36WG3BT.js.map → chunk-KZIRVLCM.js.map} +0 -0
  1067. /package/dist/{chunk-RQAE6DI7.js.map → chunk-L3DUSTRN.js.map} +0 -0
  1068. /package/dist/{chunk-NRAVQJE2.js.map → chunk-L6WVCO6D.js.map} +0 -0
  1069. /package/dist/{chunk-TCDDOFRG.js.map → chunk-L7PCZEEG.js.map} +0 -0
  1070. /package/dist/{chunk-GXYS6BI3.js.map → chunk-LEN2DVU6.js.map} +0 -0
  1071. /package/dist/{chunk-LC5E7CVA.js.map → chunk-LGOQW2CE.js.map} +0 -0
  1072. /package/dist/{chunk-YIR4KVJO.js.map → chunk-LK2JO72Y.js.map} +0 -0
  1073. /package/dist/{chunk-U3GQZEAO.js.map → chunk-LXLHIOJM.js.map} +0 -0
  1074. /package/dist/{chunk-BIQMUTVW.js.map → chunk-LYQQ4VBE.js.map} +0 -0
  1075. /package/dist/{chunk-EW3N5SCT.js.map → chunk-M22ZHQ7S.js.map} +0 -0
  1076. /package/dist/{chunk-VUNGU657.js.map → chunk-M5RKFV6K.js.map} +0 -0
  1077. /package/dist/{chunk-TGG3ODCS.js.map → chunk-MCPKUVMQ.js.map} +0 -0
  1078. /package/dist/{chunk-AP63EUPJ.js.map → chunk-MDGNCUAC.js.map} +0 -0
  1079. /package/dist/{chunk-KYDLVMKA.js.map → chunk-MFLU3466.js.map} +0 -0
  1080. /package/dist/{chunk-ZD67RM6G.js.map → chunk-MIUJ3EH5.js.map} +0 -0
  1081. /package/dist/{chunk-M5FX5KH5.js.map → chunk-MO3XJQN2.js.map} +0 -0
  1082. /package/dist/{chunk-OMYT3X2Y.js.map → chunk-MTHAYXDH.js.map} +0 -0
  1083. /package/dist/{chunk-5ERDSF2C.js.map → chunk-MVYQDBE6.js.map} +0 -0
  1084. /package/dist/{chunk-75LF7LSI.js.map → chunk-NA7VZQPL.js.map} +0 -0
  1085. /package/dist/{chunk-3IEVQMGO.js.map → chunk-ND6FWOSO.js.map} +0 -0
  1086. /package/dist/{chunk-UOBJFO25.js.map → chunk-NIFPH34L.js.map} +0 -0
  1087. /package/dist/{chunk-EJYHPNXD.js.map → chunk-NKYC6WHQ.js.map} +0 -0
  1088. /package/dist/{chunk-4XEPZARK.js.map → chunk-NML7VKLU.js.map} +0 -0
  1089. /package/dist/{chunk-N4TJ7A7I.js.map → chunk-NPAWLKJB.js.map} +0 -0
  1090. /package/dist/{chunk-ZLY7M463.js.map → chunk-NQSKI2YD.js.map} +0 -0
  1091. /package/dist/{chunk-VJAP57SP.js.map → chunk-NXQFBC22.js.map} +0 -0
  1092. /package/dist/{chunk-PBCSPCF6.js.map → chunk-NXRZMHVM.js.map} +0 -0
  1093. /package/dist/{chunk-IHLF7R6Q.js.map → chunk-NYU5DE4K.js.map} +0 -0
  1094. /package/dist/{chunk-NU4HYZ3C.js.map → chunk-O2EEYPIZ.js.map} +0 -0
  1095. /package/dist/{chunk-BRJLN3ZL.js.map → chunk-O4TOEISQ.js.map} +0 -0
  1096. /package/dist/{chunk-MHL727ZE.js.map → chunk-O533L2TG.js.map} +0 -0
  1097. /package/dist/{chunk-QCJ6SNCP.js.map → chunk-ON6ZGJDW.js.map} +0 -0
  1098. /package/dist/{chunk-AJIGRQIO.js.map → chunk-OPELE3Z4.js.map} +0 -0
  1099. /package/dist/{chunk-XSR6J5LY.js.map → chunk-OTSUC6PP.js.map} +0 -0
  1100. /package/dist/{chunk-FPPPLIGK.js.map → chunk-OZNL5OKT.js.map} +0 -0
  1101. /package/dist/{chunk-6GCMLYER.js.map → chunk-P3PDKPLK.js.map} +0 -0
  1102. /package/dist/{chunk-L5JV7MAF.js.map → chunk-PCZBYN2H.js.map} +0 -0
  1103. /package/dist/{chunk-6P3QOMPV.js.map → chunk-PIPXXQFV.js.map} +0 -0
  1104. /package/dist/{chunk-4GFLP4OY.js.map → chunk-PMUZUPPE.js.map} +0 -0
  1105. /package/dist/{chunk-EFD4DD3E.js.map → chunk-PN52EIFV.js.map} +0 -0
  1106. /package/dist/{chunk-LFQI2C46.js.map → chunk-PPQJIVGM.js.map} +0 -0
  1107. /package/dist/{chunk-5ORXRVXV.js.map → chunk-PQYFOTNI.js.map} +0 -0
  1108. /package/dist/{chunk-TYZ3WUKG.js.map → chunk-PUX4YJAW.js.map} +0 -0
  1109. /package/dist/{chunk-UFRXYZCJ.js.map → chunk-PYMQM65Y.js.map} +0 -0
  1110. /package/dist/{chunk-GBGJIR6F.js.map → chunk-Q5UO7GT5.js.map} +0 -0
  1111. /package/dist/{chunk-H4NDK35I.js.map → chunk-QA5UNVHD.js.map} +0 -0
  1112. /package/dist/{chunk-7M5DPUGZ.js.map → chunk-QDZR7FXG.js.map} +0 -0
  1113. /package/dist/{chunk-J4OOKDRV.js.map → chunk-QNOWKKZ4.js.map} +0 -0
  1114. /package/dist/{chunk-QFMPAR74.js.map → chunk-QUXQYYZO.js.map} +0 -0
  1115. /package/dist/{chunk-AU2DT7O2.js.map → chunk-QVOTPOXK.js.map} +0 -0
  1116. /package/dist/{chunk-ZWFLYN7T.js.map → chunk-R2DSOIME.js.map} +0 -0
  1117. /package/dist/{chunk-PCP5GF77.js.map → chunk-RFQQXXJ6.js.map} +0 -0
  1118. /package/dist/{chunk-EQ263DHZ.js.map → chunk-RLWI34XM.js.map} +0 -0
  1119. /package/dist/{chunk-F47X7XPQ.js.map → chunk-RMWCGSEP.js.map} +0 -0
  1120. /package/dist/{chunk-CZPN2HP3.js.map → chunk-ROTEQD2Z.js.map} +0 -0
  1121. /package/dist/{chunk-VCWRMKTQ.js.map → chunk-RPCWZFP7.js.map} +0 -0
  1122. /package/dist/{chunk-UJSXNGKJ.js.map → chunk-RW5QRWVI.js.map} +0 -0
  1123. /package/dist/{chunk-6GYRHQVL.js.map → chunk-RZZHOHL6.js.map} +0 -0
  1124. /package/dist/{chunk-NY5DX43C.js.map → chunk-S5STZCBZ.js.map} +0 -0
  1125. /package/dist/{chunk-KWOYMJKM.js.map → chunk-SD4A5P24.js.map} +0 -0
  1126. /package/dist/{chunk-36YTBVYF.js.map → chunk-SJM4TCWJ.js.map} +0 -0
  1127. /package/dist/{chunk-UHBIXNRW.js.map → chunk-SQYTYXR4.js.map} +0 -0
  1128. /package/dist/{chunk-BY7AWWDB.js.map → chunk-SRDHDIRQ.js.map} +0 -0
  1129. /package/dist/{chunk-OWXSWGP3.js.map → chunk-SVC674IM.js.map} +0 -0
  1130. /package/dist/{chunk-HUTQJY3F.js.map → chunk-SYYFA7W7.js.map} +0 -0
  1131. /package/dist/{chunk-RAUWORZV.js.map → chunk-T2UUHB7V.js.map} +0 -0
  1132. /package/dist/{chunk-YVODOJZG.js.map → chunk-TBOH54QP.js.map} +0 -0
  1133. /package/dist/{chunk-GFMRMSFN.js.map → chunk-TG2GO424.js.map} +0 -0
  1134. /package/dist/{chunk-ZAGLLXX5.js.map → chunk-TOJNLC42.js.map} +0 -0
  1135. /package/dist/{chunk-OSQ6YGZW.js.map → chunk-TW75KM7T.js.map} +0 -0
  1136. /package/dist/{chunk-7CIMPDGL.js.map → chunk-TWWAPJYE.js.map} +0 -0
  1137. /package/dist/{chunk-STTCF3OR.js.map → chunk-UARZCGWU.js.map} +0 -0
  1138. /package/dist/{chunk-F7NV3EL5.js.map → chunk-UCNTAS2U.js.map} +0 -0
  1139. /package/dist/{chunk-XF55A7CC.js.map → chunk-UD7IARSL.js.map} +0 -0
  1140. /package/dist/{chunk-M3WCB73E.js.map → chunk-UDKZKGUQ.js.map} +0 -0
  1141. /package/dist/{chunk-VMJN6YQL.js.map → chunk-UJRSZ6ZB.js.map} +0 -0
  1142. /package/dist/{chunk-236GMLCR.js.map → chunk-UTM23O3G.js.map} +0 -0
  1143. /package/dist/{chunk-3VSKLEUE.js.map → chunk-UUJSS56V.js.map} +0 -0
  1144. /package/dist/{chunk-T3WYQHAO.js.map → chunk-UWSF733U.js.map} +0 -0
  1145. /package/dist/{chunk-I57PYKVN.js.map → chunk-V4ZYJWU3.js.map} +0 -0
  1146. /package/dist/{chunk-FUJ6DWRZ.js.map → chunk-VEIT2EGK.js.map} +0 -0
  1147. /package/dist/{chunk-LH3SDMDC.js.map → chunk-VGG6DOTN.js.map} +0 -0
  1148. /package/dist/{chunk-RG7PMYWW.js.map → chunk-VGSGAQJX.js.map} +0 -0
  1149. /package/dist/{chunk-YGPMLIFT.js.map → chunk-VHK5CBIG.js.map} +0 -0
  1150. /package/dist/{chunk-QTT5574G.js.map → chunk-VLA2DTYG.js.map} +0 -0
  1151. /package/dist/{chunk-GJFTPSGN.js.map → chunk-VSN6XKZ5.js.map} +0 -0
  1152. /package/dist/{chunk-5CGZOJN7.js.map → chunk-VW6TOTDQ.js.map} +0 -0
  1153. /package/dist/{chunk-6MSTIFAL.js.map → chunk-W3HKBWPM.js.map} +0 -0
  1154. /package/dist/{chunk-LQDSZPB5.js.map → chunk-WDYM5SFM.js.map} +0 -0
  1155. /package/dist/{chunk-DLMMQMKZ.js.map → chunk-WJ4AZ2AR.js.map} +0 -0
  1156. /package/dist/{chunk-Y3TQ2M2O.js.map → chunk-WMQHP4E3.js.map} +0 -0
  1157. /package/dist/{chunk-H6DJIEO6.js.map → chunk-WP5A6F6P.js.map} +0 -0
  1158. /package/dist/{chunk-GQF2HWQE.js.map → chunk-WWQH3L6M.js.map} +0 -0
  1159. /package/dist/{chunk-2FLGURHP.js.map → chunk-X3T6ULUZ.js.map} +0 -0
  1160. /package/dist/{chunk-QHGWFKTK.js.map → chunk-XA32OUL4.js.map} +0 -0
  1161. /package/dist/{chunk-2ZC62PY4.js.map → chunk-XCICIQIE.js.map} +0 -0
  1162. /package/dist/{chunk-ADFUTR45.js.map → chunk-XHRIUCBD.js.map} +0 -0
  1163. /package/dist/{chunk-UTFX46TK.js.map → chunk-XJBWVT5X.js.map} +0 -0
  1164. /package/dist/{chunk-SY6V3Z2U.js.map → chunk-XKQRWJFE.js.map} +0 -0
  1165. /package/dist/{chunk-VWEGG7JQ.js.map → chunk-XN3EVUB5.js.map} +0 -0
  1166. /package/dist/{chunk-DGS62JWP.js.map → chunk-XT6GBN2G.js.map} +0 -0
  1167. /package/dist/{chunk-RWWQLVGV.js.map → chunk-XYVDTM4D.js.map} +0 -0
  1168. /package/dist/{chunk-67JCL67N.js.map → chunk-XZO5X3KH.js.map} +0 -0
  1169. /package/dist/{chunk-DCML4SXQ.js.map → chunk-Y34DIEOG.js.map} +0 -0
  1170. /package/dist/{chunk-UJKVMFFF.js.map → chunk-YAIYUFCX.js.map} +0 -0
  1171. /package/dist/{chunk-24S44WBL.js.map → chunk-YFLRBEDS.js.map} +0 -0
  1172. /package/dist/{chunk-RLS563ST.js.map → chunk-YQX227EF.js.map} +0 -0
  1173. /package/dist/{chunk-YNIDJOGT.js.map → chunk-YVAB57JZ.js.map} +0 -0
  1174. /package/dist/{chunk-YN6UVG4Z.js.map → chunk-YWHSODBB.js.map} +0 -0
  1175. /package/dist/{chunk-3NMKLLEB.js.map → chunk-YWJHCJQW.js.map} +0 -0
  1176. /package/dist/{chunk-4YJGB22T.js.map → chunk-Z37DSW2K.js.map} +0 -0
  1177. /package/dist/{chunk-72PGXQDN.js.map → chunk-ZELN2B72.js.map} +0 -0
  1178. /package/dist/{chunk-4YNWA5YG.js.map → chunk-ZFGGR2JW.js.map} +0 -0
  1179. /package/dist/{chunk-O3C4BASC.js.map → chunk-ZL7SEED7.js.map} +0 -0
  1180. /package/dist/{computer-viewer-ZISZUM4L.js.map → computer-viewer-CNYFTUGF.js.map} +0 -0
  1181. /package/dist/{embedded-new-voice-UWSSA7AB.js.map → embedded-new-voice-A56WDECM.js.map} +0 -0
  1182. /package/dist/{embedded-voice-T34K465A.js.map → embedded-voice-CBTSMIWW.js.map} +0 -0
  1183. /package/dist/{fleet-decision-row-REAWMEHI.js.map → fleet-decision-row-6PQTGI2U.js.map} +0 -0
  1184. /package/dist/{model-policy-picker-menu-2CTRKSDJ.js.map → model-policy-picker-menu-ZU72JATS.js.map} +0 -0
  1185. /package/dist/{platform-activity-row-EZYTZPYR.js.map → platform-activity-row-5IQT6R5Z.js.map} +0 -0
  1186. /package/dist/{recorder-host-6HFQQTNI.js.map → recorder-host-G5M676VM.js.map} +0 -0
  1187. /package/dist/{sandbox-files-6JY7WVMO.js.map → sandbox-files-HCXOP6ZO.js.map} +0 -0
  1188. /package/dist/{session-connect-cards-VTSJODCX.js.map → session-connect-cards-MYJRQWSA.js.map} +0 -0
  1189. /package/dist/{session-realtime-G3ZGG3KR.js.map → session-realtime-YFVGQFJK.js.map} +0 -0
  1190. /package/dist/{timeline-annotation-markers-S6DMHCI6.js.map → timeline-annotation-markers-5ELTFV5B.js.map} +0 -0
  1191. /package/dist/{timeline-annotation-selection-UFZOKL5E.js.map → timeline-annotation-selection-XHUOFRIY.js.map} +0 -0
  1192. /package/dist/{timeline-annotations-dialog-FPJ4MPHD.js.map → timeline-annotations-dialog-X2VNDYZ4.js.map} +0 -0
@@ -0,0 +1,1803 @@
1
+ "use client";
2
+ import {
3
+ ConnectionLogo
4
+ } from "./chunk-UARZCGWU.js";
5
+ import {
6
+ CapabilityCatalogIndicator,
7
+ CapabilityCatalogRow
8
+ } from "./chunk-L7PCZEEG.js";
9
+ import {
10
+ ConnectSetup
11
+ } from "./chunk-F5DEBD4D.js";
12
+ import {
13
+ McpConnectionCard,
14
+ capabilityLogoFallback
15
+ } from "./chunk-ROTEQD2Z.js";
16
+ import {
17
+ adminApprovalLink,
18
+ mcpConnectionDiscoveryState,
19
+ useConnect
20
+ } from "./chunk-EV73XMK3.js";
21
+ import {
22
+ useNobodyToShareWith
23
+ } from "./chunk-RNC6B4BN.js";
24
+ import {
25
+ accountServiceCapability,
26
+ capabilityConnectProviderId,
27
+ connectionServicePresentation,
28
+ connectionServiceWording,
29
+ isServiceConnectProvider
30
+ } from "./chunk-IXEPMZUJ.js";
31
+ import {
32
+ copyTextToClipboard
33
+ } from "./chunk-PEHTX3V7.js";
34
+ import {
35
+ useOpenGeniText
36
+ } from "./chunk-CRHH5C6Z.js";
37
+
38
+ // src/skill-discovery.tsx
39
+ import { useEffect, useState } from "react";
40
+
41
+ // src/discovery-cache.ts
42
+ function createDiscoveryCache(ttlMs = 6e4, capacity = 64) {
43
+ const clients = /* @__PURE__ */ new WeakMap();
44
+ return {
45
+ peek(client, key) {
46
+ const entry = clients.get(client)?.get(key);
47
+ return entry && entry.expires > Date.now() ? entry.value : void 0;
48
+ },
49
+ read(client, key, fetch) {
50
+ let entries = clients.get(client);
51
+ if (!entries) {
52
+ entries = /* @__PURE__ */ new Map();
53
+ clients.set(client, entries);
54
+ }
55
+ const existing = entries.get(key);
56
+ if (existing && existing.expires > Date.now()) return existing.pending;
57
+ entries.delete(key);
58
+ while (entries.size >= capacity) entries.delete(entries.keys().next().value);
59
+ const entry = {
60
+ expires: Date.now() + ttlMs,
61
+ value: void 0,
62
+ pending: Promise.resolve().then(fetch)
63
+ };
64
+ entries.set(key, entry);
65
+ entry.pending = entry.pending.then(
66
+ (value) => {
67
+ entry.value = value;
68
+ entry.expires = Date.now() + ttlMs;
69
+ return value;
70
+ },
71
+ (error) => {
72
+ if (entries.get(key) === entry) entries.delete(key);
73
+ throw error;
74
+ }
75
+ );
76
+ return entry.pending;
77
+ }
78
+ };
79
+ }
80
+
81
+ // src/skill-discovery.tsx
82
+ import { BookOpenIcon } from "lucide-react";
83
+ import { jsx, jsxs } from "react/jsx-runtime";
84
+ var discoveryCache = createDiscoveryCache();
85
+ function SkillDiscovery(props) {
86
+ const t = useOpenGeniText();
87
+ const query = props.query.trim();
88
+ const discoveryQuery = query || "agent";
89
+ return /* @__PURE__ */ jsxs("section", { className: "og-skill-discovery", "aria-label": t("skillDiscovery.discoverSkills"), children: [
90
+ /* @__PURE__ */ jsxs("header", { children: [
91
+ /* @__PURE__ */ jsx("h3", { children: props.resultLimit ? t("skillDiscovery.skills") : query ? t("skillDiscovery.searchSkills") : t("skillDiscovery.browseSkills") }),
92
+ !props.resultLimit ? /* @__PURE__ */ jsx(
93
+ "a",
94
+ {
95
+ href: "https://skills.sh/",
96
+ target: "_blank",
97
+ rel: "noopener noreferrer",
98
+ className: "og-skill-discovery-browse",
99
+ children: t("skillDiscovery.browseSkillsSh")
100
+ }
101
+ ) : null
102
+ ] }),
103
+ !query ? /* @__PURE__ */ jsx("p", { children: t("skillDiscovery.popularOnSkillsSh") }) : query.length < 2 ? /* @__PURE__ */ jsx("p", { children: t("skillDiscovery.enterAtLeastTwoCharacters") }) : null,
104
+ /* @__PURE__ */ jsx(
105
+ DiscoveryResults,
106
+ {
107
+ ...props,
108
+ query: discoveryQuery
109
+ },
110
+ `${props.workspaceId}:${discoveryQuery}`
111
+ )
112
+ ] });
113
+ }
114
+ var keepText = (value) => value;
115
+ var DEFAULT_ICON = /* @__PURE__ */ jsx(BookOpenIcon, { "aria-hidden": "true" });
116
+ var EMPTY_LOCAL_SKILLS = [];
117
+ var EMPTY_INSTALLED_SKILLS = [];
118
+ function DiscoveryResults({
119
+ client,
120
+ workspaceId,
121
+ query,
122
+ canManage,
123
+ onImport,
124
+ resultLimit,
125
+ onShowMore,
126
+ localSkills = EMPTY_LOCAL_SKILLS,
127
+ installedSkills = EMPTY_INSTALLED_SKILLS,
128
+ formatName = keepText,
129
+ formatSource = keepText,
130
+ icon = DEFAULT_ICON
131
+ }) {
132
+ const t = useOpenGeniText();
133
+ const cacheKey = JSON.stringify([workspaceId, query]);
134
+ const cached = discoveryCache.peek(client, cacheKey);
135
+ const [result, setResult] = useState(cached ?? null);
136
+ const [loading, setLoading] = useState(query.length >= 2 && !cached);
137
+ const [error, setError] = useState(false);
138
+ const [retry, setRetry] = useState(0);
139
+ useEffect(() => {
140
+ let active = true;
141
+ setError(false);
142
+ if (query.length < 2) return;
143
+ const existing = discoveryCache.peek(client, cacheKey);
144
+ setLoading(!existing);
145
+ let timer;
146
+ const search = async (attempt) => {
147
+ try {
148
+ const data = await discoveryCache.read(
149
+ client,
150
+ cacheKey,
151
+ () => client.searchPublicSkills(workspaceId, query)
152
+ );
153
+ if (!active) return;
154
+ setResult(data);
155
+ setLoading(false);
156
+ } catch (cause) {
157
+ if (!active) return;
158
+ const status = typeof cause === "object" && cause !== null && "status" in cause ? cause.status : void 0;
159
+ const transient = cause instanceof TypeError || typeof status === "number" && status >= 500 && status <= 599;
160
+ if (attempt === 0 && transient) {
161
+ timer = setTimeout(() => void search(1), 750);
162
+ return;
163
+ }
164
+ setError(true);
165
+ setLoading(false);
166
+ }
167
+ };
168
+ timer = setTimeout(() => void search(0), existing ? 0 : 300);
169
+ return () => {
170
+ active = false;
171
+ clearTimeout(timer);
172
+ };
173
+ }, [client, workspaceId, query, cacheKey, retry]);
174
+ const remoteSkills = result?.items.filter(
175
+ (skill) => !localSkills.some((local) => local.name.toLowerCase() === skill.name.toLowerCase())
176
+ ) ?? [];
177
+ return /* @__PURE__ */ jsxs("div", { "aria-busy": loading, children: [
178
+ /* @__PURE__ */ jsxs("div", { className: "og-skill-discovery-grid", children: [
179
+ localSkills.slice(0, resultLimit).map((skill) => /* @__PURE__ */ jsx(
180
+ CapabilityCatalogRow,
181
+ {
182
+ name: skill.name,
183
+ description: skill.description,
184
+ icon,
185
+ status: skill.status ?? "added",
186
+ statusLabel: skill.statusLabel,
187
+ onOpen: skill.onOpen
188
+ },
189
+ skill.id
190
+ )),
191
+ remoteSkills.slice(
192
+ 0,
193
+ resultLimit === void 0 ? void 0 : Math.max(0, resultLimit - localSkills.length)
194
+ ).map((skill) => {
195
+ const installed = installedSkills.some(
196
+ (entry) => entry.sourceUrl.replace(/\/$/, "").toLowerCase() === skill.url.toLowerCase() || entry.repositoryUrl.replace(/\/$/, "").toLowerCase() === `https://github.com/${skill.source}`.toLowerCase() && entry.name.toLowerCase() === skill.name.toLowerCase()
197
+ );
198
+ return /* @__PURE__ */ jsx(
199
+ CapabilityCatalogRow,
200
+ {
201
+ disabled: !canManage,
202
+ name: formatName(skill.name),
203
+ description: formatSource(skill.source),
204
+ icon,
205
+ status: !canManage ? "unavailable" : installed ? "added" : "available",
206
+ statusLabel: !canManage ? t("skillDiscovery.adminRequired") : installed ? t("skillDiscovery.installed") : t("skillDiscovery.availableToAdd"),
207
+ onOpen: () => onImport(skill.url)
208
+ },
209
+ skill.id
210
+ );
211
+ })
212
+ ] }),
213
+ resultLimit && remoteSkills.length + localSkills.length > resultLimit && !loading ? /* @__PURE__ */ jsx("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("skillDiscovery.viewAllSkills") }) : null,
214
+ loading ? /* @__PURE__ */ jsx("p", { role: "status", children: t("skillDiscovery.loadingSkills") }) : null,
215
+ error ? /* @__PURE__ */ jsxs("div", { role: "alert", className: "og-skill-discovery-error", children: [
216
+ t("skillDiscovery.couldNotLoadSkills"),
217
+ /* @__PURE__ */ jsx("button", { type: "button", onClick: () => setRetry((value) => value + 1), children: t("skillDiscovery.retry") })
218
+ ] }) : null,
219
+ result && !remoteSkills.length && !localSkills.length && !loading && !error ? /* @__PURE__ */ jsx("p", { role: "status", children: t("skillDiscovery.noMatchesForQuery", { query }) }) : null
220
+ ] });
221
+ }
222
+
223
+ // src/connection-catalog.tsx
224
+ import { Fragment, jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
225
+ function connectionOptionNeedsAttention(option) {
226
+ return option.state === "attention";
227
+ }
228
+ function attentionFirst(services) {
229
+ const attention = services.filter(
230
+ (service) => service.options.some(connectionOptionNeedsAttention)
231
+ );
232
+ if (!attention.length) return [...services];
233
+ return [...attention, ...services.filter((service) => !attention.includes(service))];
234
+ }
235
+ function ConnectionOptionRow({ option }) {
236
+ return /* @__PURE__ */ jsxs2("div", { className: "og-connection-catalog-action-row og-connection-option", children: [
237
+ /* @__PURE__ */ jsx2(
238
+ CapabilityCatalogRow,
239
+ {
240
+ name: option.name,
241
+ description: option.description,
242
+ status: option.state ?? (option.connected ? "added" : "available"),
243
+ statusLabel: option.status,
244
+ showStatusLabel: option.state === void 0,
245
+ onOpen: option.onOpen
246
+ }
247
+ ),
248
+ option.action ? /* @__PURE__ */ jsx2("span", { className: "og-connection-option-action", children: option.action }) : null
249
+ ] });
250
+ }
251
+ function ConnectionServiceRow({ service }) {
252
+ const t = useOpenGeniText();
253
+ if (!service.options.length) return null;
254
+ const connected = service.options.filter((option) => option.connected).length;
255
+ const attention = service.options.find(
256
+ (option) => option.state === "attention" || option.state === "unavailable"
257
+ );
258
+ const groupState = attention?.state ?? (service.options.some((option) => option.state === "loading") ? "loading" : connected === service.options.length ? "added" : "available");
259
+ const identity = /* @__PURE__ */ jsxs2(Fragment, { children: [
260
+ /* @__PURE__ */ jsx2("span", { className: "og-capability-catalog-icon", children: service.logo }),
261
+ /* @__PURE__ */ jsxs2("span", { className: "og-capability-catalog-copy", children: [
262
+ /* @__PURE__ */ jsx2("strong", { children: service.name }),
263
+ /* @__PURE__ */ jsx2("span", { children: service.options.length === 1 ? service.options[0]?.description : service.options.map((option) => option.name).join(" \xB7 ") })
264
+ ] }),
265
+ /* @__PURE__ */ jsx2(
266
+ CapabilityCatalogIndicator,
267
+ {
268
+ status: groupState,
269
+ label: attention?.status ?? t("connectionCatalog.connectedOfLengthAdded", {
270
+ connected,
271
+ length: service.options.length
272
+ })
273
+ }
274
+ )
275
+ ] });
276
+ return service.options.length === 1 ? /* @__PURE__ */ jsxs2("div", { className: "og-connection-catalog-action-row", children: [
277
+ /* @__PURE__ */ jsx2(
278
+ CapabilityCatalogRow,
279
+ {
280
+ name: service.name,
281
+ description: service.options[0].description,
282
+ icon: service.logo,
283
+ status: service.options[0].state ?? (connected ? "added" : "available"),
284
+ statusLabel: service.options[0].status,
285
+ showStatusLabel: service.options[0].state === void 0,
286
+ onOpen: service.options[0].onOpen
287
+ }
288
+ ),
289
+ service.options[0]?.action
290
+ ] }) : /* @__PURE__ */ jsxs2("details", { className: "og-connection-catalog-service", children: [
291
+ /* @__PURE__ */ jsxs2("summary", { className: "og-capability-catalog-row", children: [
292
+ identity,
293
+ /* @__PURE__ */ jsx2("span", { "aria-hidden": true, className: "og-connection-group-chevron", children: "\u2304" })
294
+ ] }),
295
+ /* @__PURE__ */ jsx2("div", { className: "og-connection-catalog-options", children: [
296
+ ...service.options.filter(connectionOptionNeedsAttention),
297
+ ...service.options.filter((option) => !connectionOptionNeedsAttention(option))
298
+ ].map((option) => /* @__PURE__ */ jsx2(ConnectionOptionRow, { option }, option.id)) })
299
+ ] });
300
+ }
301
+ function ConnectionCatalog({
302
+ services,
303
+ query = "",
304
+ columns = 1,
305
+ grouped = true,
306
+ resultLimit,
307
+ onShowMore,
308
+ className = "",
309
+ emptyMessage: emptyMessageProp
310
+ }) {
311
+ const t = useOpenGeniText();
312
+ const emptyMessage = emptyMessageProp === void 0 ? t("connectionCatalog.noConnectionsMatchYourSearch") : emptyMessageProp;
313
+ const search = query.trim().toLowerCase();
314
+ const entries = grouped ? services : services.flatMap(
315
+ (service) => service.options.map((option) => ({
316
+ ...service,
317
+ id: `${service.id}/${option.id}`,
318
+ name: service.options.length > 1 && option.name !== service.name ? `${service.name} \xB7 ${option.name}` : service.name,
319
+ options: [option]
320
+ }))
321
+ );
322
+ const visible = attentionFirst(
323
+ entries.filter(
324
+ (service) => [
325
+ service.name,
326
+ ...service.options.flatMap((option) => [option.name, option.description ?? ""])
327
+ ].join(" ").toLowerCase().includes(search)
328
+ )
329
+ );
330
+ return /* @__PURE__ */ jsxs2(Fragment, { children: [
331
+ /* @__PURE__ */ jsx2("div", { className: `og-connection-catalog ${className}`, "data-columns": columns, children: visible.length ? visible.slice(0, resultLimit).map((service) => /* @__PURE__ */ jsx2(ConnectionServiceRow, { service }, service.id)) : /* @__PURE__ */ jsx2("p", { role: "status", children: emptyMessage }) }),
332
+ resultLimit && visible.length > resultLimit ? /* @__PURE__ */ jsx2("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("connectionCatalog.viewAllConnections") }) : null
333
+ ] });
334
+ }
335
+
336
+ // src/connect-chooser.tsx
337
+ import { useEffect as useEffect2, useMemo, useState as useState2 } from "react";
338
+ import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
339
+ function ConnectChooser(props) {
340
+ const [scope, setScope] = useState2(props.controller);
341
+ const [generation, setGeneration] = useState2(0);
342
+ if (scope !== props.controller) {
343
+ setScope(props.controller);
344
+ setGeneration(generation + 1);
345
+ }
346
+ return /* @__PURE__ */ jsx3(ScopedChooser, { ...props }, generation);
347
+ }
348
+ function ScopedChooser({
349
+ controller,
350
+ returnUrl,
351
+ className,
352
+ presentation = "select",
353
+ customOnly = false,
354
+ providerOnly = false,
355
+ compact = false,
356
+ initialProviderId = "",
357
+ personalOnly = false,
358
+ finishInPopup = false
359
+ }) {
360
+ const t = useOpenGeniText();
361
+ const view = useConnect(controller);
362
+ const [loaded, setCatalog] = useState2(null);
363
+ const catalog = useMemo(
364
+ () => loaded?.map((entry) => {
365
+ const name = connectionServiceWording(t, entry.id).name;
366
+ return name ? { ...entry, label: name } : entry;
367
+ }) ?? null,
368
+ [loaded, t]
369
+ );
370
+ const [accounts, setAccounts] = useState2([]);
371
+ const [failed, setFailed] = useState2(false);
372
+ const [load, setLoad] = useState2(0);
373
+ const [query, setQuery] = useState2("");
374
+ const [providerId, setProviderId] = useState2(initialProviderId);
375
+ const [ownership, setOwnership] = useState2("");
376
+ useEffect2(() => {
377
+ const abort = new AbortController();
378
+ setCatalog(null);
379
+ setAccounts([]);
380
+ setFailed(false);
381
+ setProviderId(initialProviderId);
382
+ setOwnership("");
383
+ void Promise.resolve().then(() => {
384
+ abort.signal.throwIfAborted();
385
+ return Promise.all([
386
+ controller.transport.catalog(controller.workspaceId, { signal: abort.signal }),
387
+ presentation === "catalog" ? controller.transport.accounts(controller.workspaceId, { signal: abort.signal }) : Promise.resolve([])
388
+ ]);
389
+ }).then(([providers, inventory]) => {
390
+ if (!abort.signal.aborted) {
391
+ setCatalog(
392
+ structuredClone(
393
+ providers.filter(
394
+ (entry) => entry.readiness === "available" && entry.ownership.length > 0 && (!providerOnly || entry.family !== "mcp" && !entry.setup.some(
395
+ (kind) => ["installation", "openapi", "graphql"].includes(kind)
396
+ )) && (!customOnly || entry.family === "mcp" || entry.setup.some(
397
+ (kind) => ["installation", "openapi", "graphql"].includes(kind)
398
+ ))
399
+ )
400
+ )
401
+ );
402
+ setAccounts(structuredClone(inventory));
403
+ const initial = providers.find((entry) => entry.id === initialProviderId);
404
+ if (initial)
405
+ setOwnership(
406
+ initial.ownership.includes("personal") && ["google", "microsoft"].includes(initial.family) ? "personal" : initial.ownership.includes("workspace") ? "workspace" : initial.ownership[0] ?? ""
407
+ );
408
+ }
409
+ }).catch(() => {
410
+ if (!abort.signal.aborted) setFailed(true);
411
+ });
412
+ return () => abort.abort();
413
+ }, [controller, load, presentation, customOnly, providerOnly, initialProviderId]);
414
+ const provider = catalog?.find((entry) => entry.id === providerId);
415
+ const onlyOwnership = provider ? personalOnly && provider.ownership.includes("personal") ? "personal" : provider.ownership.length === 1 ? provider.ownership[0] : null : null;
416
+ const chosenOwnership = onlyOwnership ?? ownership;
417
+ const canBegin = provider?.readiness === "available" && (chosenOwnership === "personal" || chosenOwnership === "workspace") && provider.ownership.includes(chosenOwnership);
418
+ const submit = (event) => {
419
+ event.preventDefault();
420
+ if (!canBegin || view.busy || chosenOwnership !== "personal" && chosenOwnership !== "workspace")
421
+ return;
422
+ setFailed(false);
423
+ try {
424
+ void controller.begin({
425
+ providerId,
426
+ ownership: chosenOwnership,
427
+ returnUrl,
428
+ ...finishInPopup ? { finishInPopup: true } : {},
429
+ idempotencyKey: crypto.randomUUID()
430
+ }).catch(() => setFailed(true));
431
+ } catch {
432
+ setFailed(true);
433
+ }
434
+ };
435
+ if (compact && (!catalog || catalog.length === 0) && !failed) return null;
436
+ return /* @__PURE__ */ jsxs3(
437
+ "section",
438
+ {
439
+ className,
440
+ "aria-label": t("connectChooser.chooseAConnection"),
441
+ "aria-busy": view.busy || !catalog && !failed,
442
+ children: [
443
+ failed && /* @__PURE__ */ jsx3("p", { role: "alert", children: t("connectChooser.connectionsCouldNotBeLoaded") }),
444
+ !catalog && !failed && /* @__PURE__ */ jsx3("p", { role: "status", children: t("connectChooser.loadingConnections") }),
445
+ catalog?.length === 0 && /* @__PURE__ */ jsx3("p", { role: "status", children: t("connectChooser.noConnectionsAreAvailable") }),
446
+ Boolean(catalog?.length) && /* @__PURE__ */ jsx3("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs3("fieldset", { disabled: view.busy, children: [
447
+ /* @__PURE__ */ jsx3("legend", { hidden: customOnly || compact, children: presentation === "catalog" ? t("connectChooser.addAConnection") : t("connectChooser.providerAndOwnership") }),
448
+ presentation === "catalog" && !provider ? /* @__PURE__ */ jsxs3(Fragment2, { children: [
449
+ /* @__PURE__ */ jsxs3("label", { hidden: customOnly || compact, children: [
450
+ t("connectChooser.searchConnections"),
451
+ /* @__PURE__ */ jsx3(
452
+ "input",
453
+ {
454
+ type: "search",
455
+ placeholder: t("connectChooser.findAService"),
456
+ value: query,
457
+ onChange: (event) => setQuery(event.target.value)
458
+ }
459
+ )
460
+ ] }),
461
+ [
462
+ {
463
+ name: t("connectChooser.services"),
464
+ entries: catalog.filter(
465
+ (entry) => entry.readiness === "available" && entry.family !== "mcp" && !entry.setup.some(
466
+ (kind) => ["installation", "openapi", "graphql"].includes(kind)
467
+ )
468
+ ),
469
+ secondary: false
470
+ },
471
+ {
472
+ name: t("connectChooser.customConnections"),
473
+ entries: catalog.filter(
474
+ (entry) => entry.readiness === "available" && (entry.family === "mcp" || entry.setup.some(
475
+ (kind) => ["installation", "openapi", "graphql"].includes(kind)
476
+ ))
477
+ ),
478
+ secondary: true
479
+ }
480
+ ].map((group) => {
481
+ const entries = group.entries.filter(
482
+ (entry) => entry.label.toLocaleLowerCase().includes(query.toLocaleLowerCase().trim())
483
+ );
484
+ if (!entries.length) return null;
485
+ const rows = /* @__PURE__ */ jsx3(
486
+ ConnectionCatalog,
487
+ {
488
+ services: entries.map((entry) => {
489
+ const connected = accounts.some(
490
+ (account) => account.providerId === entry.id && account.status === "connected"
491
+ );
492
+ return {
493
+ id: entry.id,
494
+ name: entry.label,
495
+ logo: /* @__PURE__ */ jsx3(
496
+ ConnectionLogo,
497
+ {
498
+ src: connectionServicePresentation(entry).logo,
499
+ name: entry.label
500
+ }
501
+ ),
502
+ options: [
503
+ {
504
+ id: entry.id,
505
+ name: entry.label,
506
+ description: connectionServiceWording(t, entry.id).description,
507
+ status: connected ? t("connectChooser.connected") : entry.readiness === "available" ? t("connectChooser.connect") : t("connectChooser.unavailable"),
508
+ state: connected ? "added" : entry.readiness === "available" ? "available" : "unavailable",
509
+ connected,
510
+ onOpen: () => {
511
+ if (!view.busy) {
512
+ setProviderId(entry.id);
513
+ setOwnership(
514
+ entry.ownership.length === 1 ? entry.ownership[0] : ""
515
+ );
516
+ }
517
+ }
518
+ }
519
+ ]
520
+ };
521
+ })
522
+ }
523
+ );
524
+ return group.secondary && !customOnly ? /* @__PURE__ */ jsxs3(
525
+ "details",
526
+ {
527
+ className: "og-connect-secondary",
528
+ open: query.trim() ? true : void 0,
529
+ children: [
530
+ /* @__PURE__ */ jsxs3("summary", { children: [
531
+ group.name,
532
+ /* @__PURE__ */ jsx3("span", { children: entries.length })
533
+ ] }),
534
+ rows
535
+ ]
536
+ },
537
+ group.name
538
+ ) : /* @__PURE__ */ jsx3("div", { children: rows }, group.name);
539
+ }),
540
+ !catalog.some(
541
+ (entry) => entry.label.toLocaleLowerCase().includes(query.toLocaleLowerCase().trim())
542
+ ) && /* @__PURE__ */ jsx3("p", { role: "status", children: t("connectChooser.noServicesMatchYourSearch") })
543
+ ] }) : null,
544
+ presentation === "catalog" && provider && !initialProviderId ? /* @__PURE__ */ jsx3(
545
+ "button",
546
+ {
547
+ type: "button",
548
+ onClick: () => {
549
+ setProviderId("");
550
+ setOwnership("");
551
+ },
552
+ children: t("connectChooser.backToConnections")
553
+ }
554
+ ) : null,
555
+ /* @__PURE__ */ jsxs3("label", { hidden: presentation === "catalog", children: [
556
+ t("connectChooser.provider"),
557
+ /* @__PURE__ */ jsxs3(
558
+ "select",
559
+ {
560
+ required: true,
561
+ value: providerId,
562
+ onChange: (event) => {
563
+ setProviderId(event.target.value);
564
+ setOwnership("");
565
+ },
566
+ children: [
567
+ /* @__PURE__ */ jsx3("option", { value: "", disabled: true, children: t("connectChooser.chooseAProvider") }),
568
+ catalog.map((entry) => /* @__PURE__ */ jsxs3(
569
+ "option",
570
+ {
571
+ value: entry.id,
572
+ disabled: entry.readiness !== "available" || entry.ownership.length === 0,
573
+ children: [
574
+ entry.label,
575
+ " \u2014 ",
576
+ entry.id,
577
+ " (",
578
+ entry.readiness.replaceAll("_", " "),
579
+ ")"
580
+ ]
581
+ },
582
+ entry.id
583
+ ))
584
+ ]
585
+ }
586
+ )
587
+ ] }),
588
+ provider && /* @__PURE__ */ jsxs3(Fragment2, { children: [
589
+ /* @__PURE__ */ jsx3("strong", { children: presentation === "catalog" ? provider.label : null }),
590
+ provider.readiness !== "available" && /* @__PURE__ */ jsx3("p", { role: "status", children: provider.reason ?? t("connectChooser.thisServiceIsNotAvailable") }),
591
+ onlyOwnership ? null : /* @__PURE__ */ jsxs3("label", { children: [
592
+ t("connectChooser.whoCanUseThisConnection"),
593
+ /* @__PURE__ */ jsxs3(
594
+ "select",
595
+ {
596
+ required: true,
597
+ value: ownership,
598
+ onChange: (event) => setOwnership(event.target.value),
599
+ children: [
600
+ /* @__PURE__ */ jsx3("option", { value: "", disabled: true, children: t("connectChooser.chooseOwnership") }),
601
+ provider.ownership.map((choice) => /* @__PURE__ */ jsx3("option", { value: choice, children: choice === "personal" ? t("connectChooser.onlyMe") : t("connectChooser.everyoneInThisWorkspace") }, choice))
602
+ ]
603
+ }
604
+ )
605
+ ] })
606
+ ] }),
607
+ /* @__PURE__ */ jsx3(
608
+ "button",
609
+ {
610
+ hidden: presentation === "catalog" && !provider,
611
+ type: "submit",
612
+ disabled: !canBegin,
613
+ children: t("connectChooser.continue")
614
+ }
615
+ )
616
+ ] }) }),
617
+ /* @__PURE__ */ jsx3("button", { hidden: !failed, type: "button", disabled: view.busy, onClick: () => setLoad(load + 1), children: t("connectChooser.reloadProviders") })
618
+ ]
619
+ }
620
+ );
621
+ }
622
+
623
+ // src/connect-accounts.tsx
624
+ import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
625
+
626
+ // src/connection-service-logo.tsx
627
+ import { useEffect as useEffect3, useState as useState3 } from "react";
628
+ import { jsx as jsx4 } from "react/jsx-runtime";
629
+ function ConnectionServiceLogo({
630
+ client,
631
+ item,
632
+ name,
633
+ fallback = null
634
+ }) {
635
+ const path = item?.logoAssetPath;
636
+ const [image, setImage] = useState3(null);
637
+ useEffect3(() => {
638
+ if (!client || !path?.startsWith("catalog-assets/")) return;
639
+ const abort = new AbortController();
640
+ let url = null;
641
+ void client.downloadCatalogAsset(path, { signal: abort.signal }).then((blob) => {
642
+ if (!abort.signal.aborted && blob.type.startsWith("image/") && blob.size <= 2e6)
643
+ url = URL.createObjectURL(blob);
644
+ }).catch(() => {
645
+ }).finally(() => {
646
+ if (!abort.signal.aborted) setImage({ client, path, url });
647
+ });
648
+ return () => {
649
+ abort.abort();
650
+ if (url) URL.revokeObjectURL(url);
651
+ };
652
+ }, [client, path]);
653
+ const current = image && image.client === client && image.path === path ? image : null;
654
+ const loading = Boolean(client && path?.startsWith("catalog-assets/") && !current);
655
+ return /* @__PURE__ */ jsx4(
656
+ ConnectionLogo,
657
+ {
658
+ name,
659
+ loading,
660
+ src: current?.url ?? (loading ? null : (item ? capabilityLogoFallback(item) : null) ?? fallback)
661
+ }
662
+ );
663
+ }
664
+
665
+ // src/connect-account-identity.tsx
666
+ import { Fragment as Fragment3, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
667
+ function ConnectAccountIdentity({
668
+ account,
669
+ client,
670
+ capabilities
671
+ }) {
672
+ const t = useOpenGeniText();
673
+ const item = accountServiceCapability(account, capabilities);
674
+ const service = connectionServicePresentation({ id: account.providerId, label: account.label });
675
+ const name = connectionServiceWording(t, account.providerId).name ?? item?.name ?? service.name;
676
+ return /* @__PURE__ */ jsxs4(Fragment3, { children: [
677
+ /* @__PURE__ */ jsx5(ConnectionServiceLogo, { client, item, name, fallback: service.logo }),
678
+ /* @__PURE__ */ jsxs4("div", { children: [
679
+ /* @__PURE__ */ jsx5("strong", { children: name }),
680
+ /* @__PURE__ */ jsxs4("small", { children: [
681
+ account.ownership === "personal" ? t("connectAccountIdentity.onlyYou") : t("connectAccountIdentity.workspaceConnection"),
682
+ name !== account.label ? ` \xB7 ${account.label}` : ""
683
+ ] })
684
+ ] })
685
+ ] });
686
+ }
687
+
688
+ // src/connection-skeleton.tsx
689
+ import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
690
+ function ConnectionSkeleton({ rows = 1, label }) {
691
+ return /* @__PURE__ */ jsx6("div", { role: "status", "aria-label": label, className: "og-connection-skeleton", children: Array.from({ length: rows }, (_, index) => /* @__PURE__ */ jsxs5("div", { className: "og-connection-skeleton-row", "aria-hidden": "true", children: [
692
+ /* @__PURE__ */ jsx6("span", { className: "og-connection-skeleton-mark" }),
693
+ /* @__PURE__ */ jsxs5("span", { className: "og-connection-skeleton-copy", children: [
694
+ /* @__PURE__ */ jsx6("span", {}),
695
+ /* @__PURE__ */ jsx6("span", {})
696
+ ] })
697
+ ] }, index)) });
698
+ }
699
+
700
+ // src/connect-accounts.tsx
701
+ import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
702
+ function ConnectAccounts(props) {
703
+ const [scope, setScope] = useState4(props.controller);
704
+ const [generation, setGeneration] = useState4(0);
705
+ if (scope !== props.controller) {
706
+ setScope(props.controller);
707
+ setGeneration(generation + 1);
708
+ }
709
+ return /* @__PURE__ */ jsx7(ScopedAccounts, { ...props }, generation);
710
+ }
711
+ function ScopedAccounts({
712
+ controller,
713
+ className,
714
+ returnUrl,
715
+ finishInPopup = false,
716
+ client,
717
+ onDisconnected,
718
+ onReconnectViaConnector
719
+ }) {
720
+ const t = useOpenGeniText();
721
+ const view = useConnect(controller);
722
+ const [accounts, setAccounts] = useState4(null);
723
+ const [selected, setSelected] = useState4(null);
724
+ const [busy, setBusy] = useState4(false);
725
+ const [error, setError] = useState4(false);
726
+ const [reload, setReload] = useState4(0);
727
+ const [catalog, setCatalog] = useState4(null);
728
+ const mutation = useRef(null);
729
+ useEffect4(() => () => mutation.current?.abort(), []);
730
+ useEffect4(() => {
731
+ const abort = new AbortController();
732
+ setAccounts(null);
733
+ setCatalog(null);
734
+ setSelected(null);
735
+ setError(false);
736
+ void Promise.resolve().then(() => {
737
+ abort.signal.throwIfAborted();
738
+ return Promise.all([
739
+ controller.transport.accounts(controller.workspaceId, { signal: abort.signal }),
740
+ client?.listCapabilities(controller.workspaceId).catch(() => null) ?? null
741
+ ]);
742
+ }).then(([result, metadata]) => {
743
+ if (!abort.signal.aborted) {
744
+ setAccounts(structuredClone(result.filter((account) => account.status !== "disabled")));
745
+ if (client && metadata) setCatalog({ client, items: metadata.items });
746
+ }
747
+ }).catch(() => {
748
+ if (!abort.signal.aborted) setError(true);
749
+ });
750
+ return () => abort.abort();
751
+ }, [client, controller, reload]);
752
+ const disconnect = async (account) => {
753
+ const expectedVersion = account.version;
754
+ if (mutation.current || view.busy || expectedVersion === void 0 || !Number.isSafeInteger(expectedVersion) || expectedVersion < 1)
755
+ return;
756
+ const abort = new AbortController();
757
+ mutation.current = abort;
758
+ setBusy(true);
759
+ setError(false);
760
+ try {
761
+ await controller.transport.disconnect(controller.workspaceId, account.id, {
762
+ expectedVersion,
763
+ signal: abort.signal
764
+ });
765
+ if (!abort.signal.aborted) {
766
+ setReload((value) => value + 1);
767
+ onDisconnected?.();
768
+ }
769
+ } catch {
770
+ if (!abort.signal.aborted) {
771
+ setAccounts(null);
772
+ setError(true);
773
+ }
774
+ } finally {
775
+ if (!abort.signal.aborted) {
776
+ mutation.current = null;
777
+ setBusy(false);
778
+ setSelected(null);
779
+ }
780
+ }
781
+ };
782
+ const reconnect = async (account) => {
783
+ if (account.backend || !returnUrl || mutation.current || view.busy) return;
784
+ setError(false);
785
+ try {
786
+ await controller.begin({
787
+ providerId: account.providerId,
788
+ ownership: account.ownership,
789
+ reconnectAccountId: account.id,
790
+ returnUrl,
791
+ ...finishInPopup ? { finishInPopup: true } : {},
792
+ idempotencyKey: crypto.randomUUID()
793
+ });
794
+ } catch {
795
+ setError(true);
796
+ }
797
+ };
798
+ return /* @__PURE__ */ jsxs6(
799
+ "section",
800
+ {
801
+ className,
802
+ "aria-label": t("connectAccounts.connectedAccounts"),
803
+ "aria-busy": busy || view.busy || !accounts && !error,
804
+ children: [
805
+ /* @__PURE__ */ jsx7("h3", { children: t("connectAccounts.yourConnections") }),
806
+ error && /* @__PURE__ */ jsx7("p", { role: "alert", children: t("connectAccounts.accountStateCouldNotBe") }),
807
+ !accounts && !error && /* @__PURE__ */ jsx7(ConnectionSkeleton, { label: t("connectAccounts.loadingAccounts") }),
808
+ accounts?.length === 0 && /* @__PURE__ */ jsx7("p", { role: "status", children: t("connectAccounts.noConnectedAccounts") }),
809
+ accounts && accounts.length > 0 && /* @__PURE__ */ jsx7("ul", { children: accounts.map((account) => /* @__PURE__ */ jsx7("li", { className: "og-connect-account", children: /* @__PURE__ */ jsxs6("details", { className: "og-connect-account-details", children: [
810
+ /* @__PURE__ */ jsxs6("summary", { className: "og-connect-account-heading", children: [
811
+ /* @__PURE__ */ jsx7(
812
+ ConnectAccountIdentity,
813
+ {
814
+ account,
815
+ client,
816
+ capabilities: catalog?.client === client ? catalog?.items ?? [] : []
817
+ }
818
+ ),
819
+ /* @__PURE__ */ jsx7("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") }),
820
+ /* @__PURE__ */ jsx7(
821
+ "svg",
822
+ {
823
+ className: "og-connect-account-chevron",
824
+ "aria-hidden": "true",
825
+ width: "16",
826
+ height: "16",
827
+ viewBox: "0 0 24 24",
828
+ fill: "none",
829
+ stroke: "currentColor",
830
+ strokeWidth: "1.5",
831
+ children: /* @__PURE__ */ jsx7("path", { d: "m9 6 6 6-6 6" })
832
+ }
833
+ )
834
+ ] }),
835
+ /* @__PURE__ */ jsxs6("div", { className: "og-connect-account-actions", children: [
836
+ account.status === "auth_needed" && (account.backend ? onReconnectViaConnector ? /* @__PURE__ */ jsx7(
837
+ "button",
838
+ {
839
+ type: "button",
840
+ "aria-label": t("connectAccounts.reconnectLabel", { label: account.label }),
841
+ disabled: busy || view.busy,
842
+ onClick: () => onReconnectViaConnector(account),
843
+ children: t("connectAccounts.reconnect")
844
+ }
845
+ ) : /* @__PURE__ */ jsx7("p", { children: t("connectAccounts.signInFromConnector") }) : returnUrl && /* @__PURE__ */ jsx7(
846
+ "button",
847
+ {
848
+ type: "button",
849
+ "aria-label": t("connectAccounts.reconnectLabel", { label: account.label }),
850
+ disabled: busy || view.busy,
851
+ onClick: () => void reconnect(account),
852
+ children: t("connectAccounts.reconnect")
853
+ }
854
+ )),
855
+ selected === `${account.providerId}:${account.id}` ? /* @__PURE__ */ jsxs6(
856
+ "div",
857
+ {
858
+ role: "group",
859
+ "aria-label": t("connectAccounts.disconnectLabel", { label: account.label }),
860
+ children: [
861
+ /* @__PURE__ */ jsx7("p", { children: t("connectAccounts.thisRemovesLocalOpengeniAccess") }),
862
+ /* @__PURE__ */ jsx7(
863
+ "button",
864
+ {
865
+ type: "button",
866
+ disabled: busy || view.busy,
867
+ onClick: () => void disconnect(account),
868
+ children: t("connectAccounts.confirmDisconnect")
869
+ }
870
+ ),
871
+ /* @__PURE__ */ jsx7("button", { type: "button", disabled: busy, onClick: () => setSelected(null), children: t("connectAccounts.keepAccount") })
872
+ ]
873
+ }
874
+ ) : /* @__PURE__ */ jsx7(
875
+ "button",
876
+ {
877
+ type: "button",
878
+ "aria-label": t("connectAccounts.disconnectLabel", { label: account.label }),
879
+ disabled: busy || view.busy || account.status === "disabled" || !Number.isSafeInteger(account.version) || account.version < 1,
880
+ onClick: () => setSelected(`${account.providerId}:${account.id}`),
881
+ children: t("connectAccounts.disconnect")
882
+ }
883
+ )
884
+ ] })
885
+ ] }) }, `${account.providerId}:${account.id}`)) }),
886
+ /* @__PURE__ */ jsx7(
887
+ "button",
888
+ {
889
+ hidden: !error,
890
+ type: "button",
891
+ disabled: busy,
892
+ onClick: () => setReload((value) => value + 1),
893
+ children: t("connectAccounts.reloadAccounts")
894
+ }
895
+ )
896
+ ]
897
+ }
898
+ );
899
+ }
900
+
901
+ // src/connect-panel.tsx
902
+ import { useState as useState6 } from "react";
903
+
904
+ // src/connection-discovery.tsx
905
+ import { deploymentCannotConnect } from "@opengeni/contracts/personal-integration-setup";
906
+ import { useEffect as useEffect5, useMemo as useMemo2, useRef as useRef2, useState as useState5 } from "react";
907
+ import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
908
+ function ConnectionDiscovery(props) {
909
+ const [scope, setScope] = useState5({ client: props.client, controller: props.controller });
910
+ const [generation, setGeneration] = useState5(0);
911
+ if (scope.client !== props.client || scope.controller !== props.controller) {
912
+ setScope({ client: props.client, controller: props.controller });
913
+ setGeneration(generation + 1);
914
+ }
915
+ return /* @__PURE__ */ jsx8(ScopedDiscovery, { ...props }, `${generation}:${props.workspaceId}`);
916
+ }
917
+ function ScopedDiscovery({
918
+ client,
919
+ controller,
920
+ workspaceId,
921
+ returnUrl,
922
+ finishInPopup = false,
923
+ onConfigured
924
+ }) {
925
+ const t = useOpenGeniText();
926
+ const [loadedProviders, setProviders] = useState5(null);
927
+ const providers = useMemo2(
928
+ () => loadedProviders?.map((provider) => {
929
+ const own = connectionServiceWording(t, provider.id);
930
+ return { ...provider, label: own.name ?? provider.label, description: own.description };
931
+ }) ?? null,
932
+ [loadedProviders, t]
933
+ );
934
+ const [accounts, setAccounts] = useState5([]);
935
+ const [selectedProvider, setSelectedProvider] = useState5(null);
936
+ const [providerFailed, setProviderFailed] = useState5(false);
937
+ const [loadedItems, setItems] = useState5(null);
938
+ const items = useMemo2(
939
+ () => loadedItems?.map((item) => {
940
+ const providerId = capabilityConnectProviderId(item);
941
+ if (!providerId) return item;
942
+ const own = connectionServiceWording(t, providerId);
943
+ return {
944
+ ...item,
945
+ name: own.name ?? item.name,
946
+ description: own.description ?? item.description
947
+ };
948
+ }) ?? null,
949
+ [loadedItems, t]
950
+ );
951
+ const [failed, setFailed] = useState5(false);
952
+ const [connections, setConnections] = useState5([]);
953
+ const [reload, setReload] = useState5(0);
954
+ const [query, setQuery] = useState5("");
955
+ const [limit, setLimit] = useState5(12);
956
+ const [selected, setSelected] = useState5(null);
957
+ const opener = useRef2(null);
958
+ const alone = useNobodyToShareWith(client, workspaceId);
959
+ useEffect5(() => {
960
+ const abort = new AbortController();
961
+ const read = async (operation) => {
962
+ abort.signal.throwIfAborted();
963
+ return operation();
964
+ };
965
+ setFailed(false);
966
+ setSelectedProvider(null);
967
+ setProviders(null);
968
+ setItems(null);
969
+ setProviderFailed(false);
970
+ if (controller)
971
+ void Promise.all([
972
+ read(() => controller.transport.catalog(workspaceId, { signal: abort.signal })),
973
+ read(() => controller.transport.accounts(workspaceId, { signal: abort.signal }))
974
+ ]).then(([catalog, inventory]) => {
975
+ if (!abort.signal.aborted) {
976
+ setProviders(catalog.filter(isServiceConnectProvider));
977
+ setAccounts(inventory);
978
+ }
979
+ }).catch(() => {
980
+ if (!abort.signal.aborted) setProviderFailed(true);
981
+ });
982
+ void Promise.all([
983
+ read(() => client.listCapabilities(workspaceId)),
984
+ read(() => client.listConnections(workspaceId))
985
+ ]).then(([catalog, inventory]) => {
986
+ if (!abort.signal.aborted) {
987
+ setConnections(inventory);
988
+ setItems(
989
+ catalog.items.filter(
990
+ (item) => item.kind === "mcp" && item.authKind === "oauth2" && Boolean(item.mcpUrl ?? item.endpointUrl) && // This deployment cannot start the connection (no operator
991
+ // OAuth client, or setup switched off): Connect cannot succeed.
992
+ !deploymentCannotConnect(item)
993
+ )
994
+ );
995
+ }
996
+ }).catch(() => {
997
+ if (!abort.signal.aborted) setFailed(true);
998
+ });
999
+ return () => {
1000
+ abort.abort();
1001
+ };
1002
+ }, [client, controller, workspaceId, reload]);
1003
+ const matches = items?.filter(
1004
+ (item) => `${item.name} ${item.description ?? ""} ${item.providerDomain ?? ""}`.toLocaleLowerCase().includes(query.trim().toLocaleLowerCase())
1005
+ ) ?? [];
1006
+ const providerMatches = (providers ?? []).filter(
1007
+ (provider) => !items?.some((item) => capabilityConnectProviderId(item) === provider.id) && `${provider.label} ${provider.description ?? ""}`.toLocaleLowerCase().includes(query.trim().toLocaleLowerCase())
1008
+ );
1009
+ const loading = !items && !failed || Boolean(controller && !providers && !providerFailed);
1010
+ if (selectedProvider && controller)
1011
+ return /* @__PURE__ */ jsxs7(
1012
+ "section",
1013
+ {
1014
+ "aria-label": t("connectionDiscovery.connectLabel", { label: selectedProvider.label }),
1015
+ children: [
1016
+ /* @__PURE__ */ jsx8("button", { type: "button", onClick: () => setSelectedProvider(null), children: t("connectionDiscovery.backToConnections") }),
1017
+ /* @__PURE__ */ jsx8(
1018
+ ConnectionLogo,
1019
+ {
1020
+ name: selectedProvider.label,
1021
+ src: connectionServicePresentation(selectedProvider).logo
1022
+ }
1023
+ ),
1024
+ /* @__PURE__ */ jsx8(
1025
+ ConnectChooser,
1026
+ {
1027
+ controller,
1028
+ returnUrl,
1029
+ presentation: "catalog",
1030
+ providerOnly: true,
1031
+ initialProviderId: selectedProvider.id,
1032
+ personalOnly: alone,
1033
+ finishInPopup
1034
+ }
1035
+ )
1036
+ ]
1037
+ }
1038
+ );
1039
+ return /* @__PURE__ */ jsxs7(
1040
+ "section",
1041
+ {
1042
+ className: "og-connection-discovery",
1043
+ "aria-label": t("connectionDiscovery.findAConnection"),
1044
+ children: [
1045
+ /* @__PURE__ */ jsx8("h3", { children: t("connectionDiscovery.addAConnection") }),
1046
+ /* @__PURE__ */ jsxs7("label", { children: [
1047
+ /* @__PURE__ */ jsx8("span", { className: "og-capability-catalog-sr-only", children: t("connectionDiscovery.searchServices") }),
1048
+ /* @__PURE__ */ jsx8(
1049
+ "input",
1050
+ {
1051
+ type: "search",
1052
+ placeholder: t("connectionDiscovery.searchServices2"),
1053
+ value: query,
1054
+ onChange: (event) => {
1055
+ setQuery(event.target.value);
1056
+ setLimit(12);
1057
+ }
1058
+ }
1059
+ )
1060
+ ] }),
1061
+ (providerFailed || failed) && /* @__PURE__ */ jsxs7("p", { role: "alert", children: [
1062
+ t("connectionDiscovery.someServicesCouldNotBe"),
1063
+ " ",
1064
+ /* @__PURE__ */ jsx8("button", { type: "button", onClick: () => setReload((value) => value + 1), children: t("connectionDiscovery.retry") })
1065
+ ] }),
1066
+ /* @__PURE__ */ jsxs7("div", { className: "og-connection-discovery-results", children: [
1067
+ providerMatches.map((provider) => {
1068
+ const connected = accounts.some(
1069
+ (account) => account.providerId === provider.id && account.status === "connected"
1070
+ );
1071
+ return /* @__PURE__ */ jsx8(
1072
+ CapabilityCatalogRow,
1073
+ {
1074
+ name: provider.label,
1075
+ description: provider.description,
1076
+ icon: /* @__PURE__ */ jsx8(
1077
+ ConnectionLogo,
1078
+ {
1079
+ name: provider.label,
1080
+ src: connectionServicePresentation(provider).logo
1081
+ }
1082
+ ),
1083
+ status: connected ? "added" : "available",
1084
+ statusLabel: connected ? t("connectionDiscovery.connected") : t("connectionDiscovery.connect"),
1085
+ showStatusLabel: true,
1086
+ onOpen: () => setSelectedProvider(provider)
1087
+ },
1088
+ provider.id
1089
+ );
1090
+ }),
1091
+ matches.slice(0, limit).map((item) => {
1092
+ const state = mcpConnectionDiscoveryState(t, item, connections);
1093
+ return /* @__PURE__ */ jsx8(
1094
+ CapabilityCatalogRow,
1095
+ {
1096
+ name: item.name,
1097
+ description: item.description ?? void 0,
1098
+ icon: /* @__PURE__ */ jsx8(ConnectionServiceLogo, { client, item, name: item.name }),
1099
+ status: state.status,
1100
+ statusLabel: state.label,
1101
+ showStatusLabel: true,
1102
+ onOpen: () => {
1103
+ opener.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
1104
+ setSelected(item);
1105
+ }
1106
+ },
1107
+ item.id
1108
+ );
1109
+ }),
1110
+ loading && /* @__PURE__ */ jsx8(ConnectionSkeleton, { rows: 3, label: t("connectionDiscovery.loadingServices") }),
1111
+ !loading && !failed && !providerFailed && !matches.length && !providerMatches.length && /* @__PURE__ */ jsx8("p", { role: "status", children: t("connectionDiscovery.noServicesMatchYourSearch") }),
1112
+ matches.length > limit && /* @__PURE__ */ jsx8("button", { type: "button", onClick: () => setLimit((value) => value + 12), children: t("connectionDiscovery.showMoreServices") })
1113
+ ] }),
1114
+ selected ? /* @__PURE__ */ jsx8(
1115
+ McpConnectionCard,
1116
+ {
1117
+ client,
1118
+ workspaceId,
1119
+ capabilityId: selected.id,
1120
+ name: selected.name,
1121
+ returnUrl,
1122
+ dialogOnly: true,
1123
+ onClose: () => {
1124
+ setSelected(null);
1125
+ queueMicrotask(() => {
1126
+ if (opener.current?.isConnected) opener.current.focus();
1127
+ });
1128
+ },
1129
+ onConfigured: async () => {
1130
+ setReload((value) => value + 1);
1131
+ await onConfigured?.();
1132
+ }
1133
+ }
1134
+ ) : null
1135
+ ]
1136
+ }
1137
+ );
1138
+ }
1139
+
1140
+ // src/connect-panel.tsx
1141
+ import { Fragment as Fragment4, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1142
+ var SETTLED = ["complete", "cancelled", "expired"];
1143
+ function ConnectPanel({
1144
+ returnUrl,
1145
+ title: titleProp,
1146
+ showAccounts = true,
1147
+ showCustomConnections = true,
1148
+ showProviderConnections = false,
1149
+ presentation = "select",
1150
+ className,
1151
+ client,
1152
+ finishInPopup = false,
1153
+ onReconnectViaConnector,
1154
+ ...setup
1155
+ }) {
1156
+ const t = useOpenGeniText();
1157
+ const title = titleProp === void 0 ? t("connectPanel.connections") : titleProp;
1158
+ const { attempt } = useConnect(setup.controller);
1159
+ const [inventoryRevision, setInventoryRevision] = useState6(0);
1160
+ const [dismissed, setDismissed] = useState6(null);
1161
+ const alone = useNobodyToShareWith(client, setup.controller.workspaceId);
1162
+ const approvalHelp = attempt !== null && adminApprovalLink(attempt) !== null;
1163
+ const activeSetup = attempt !== null && attempt.id !== dismissed && (approvalHelp || !SETTLED.includes(attempt.state));
1164
+ const serviceName = attempt ? connectionServicePresentation({ id: attempt.providerId, label: "" }, t).name : "";
1165
+ const popup = finishInPopup ? { finishInPopup: true } : {};
1166
+ const retry = setup.onRetry ?? (attempt && approvalHelp ? () => setup.controller.begin({
1167
+ providerId: attempt.providerId,
1168
+ ownership: attempt.ownership,
1169
+ returnUrl,
1170
+ ...popup,
1171
+ idempotencyKey: crypto.randomUUID()
1172
+ }) : void 0);
1173
+ return /* @__PURE__ */ jsxs8("div", { className: ["og-connect", className].filter(Boolean).join(" "), children: [
1174
+ title !== null && /* @__PURE__ */ jsx9("h2", { children: title }),
1175
+ showAccounts && !activeSetup && /* @__PURE__ */ jsx9(
1176
+ ConnectAccounts,
1177
+ {
1178
+ controller: setup.controller,
1179
+ returnUrl,
1180
+ finishInPopup,
1181
+ client,
1182
+ onDisconnected: () => setInventoryRevision((value) => value + 1),
1183
+ onReconnectViaConnector
1184
+ },
1185
+ inventoryRevision
1186
+ ),
1187
+ !activeSetup && (client && presentation === "catalog" ? /* @__PURE__ */ jsxs8(Fragment4, { children: [
1188
+ /* @__PURE__ */ jsx9(
1189
+ ConnectionDiscovery,
1190
+ {
1191
+ controller: showProviderConnections ? setup.controller : void 0,
1192
+ client,
1193
+ workspaceId: setup.controller.workspaceId,
1194
+ returnUrl,
1195
+ finishInPopup,
1196
+ onConfigured: () => setInventoryRevision((value) => value + 1)
1197
+ },
1198
+ inventoryRevision
1199
+ ),
1200
+ showCustomConnections && /* @__PURE__ */ jsxs8("details", { className: "og-connect-secondary", children: [
1201
+ /* @__PURE__ */ jsx9("summary", { children: t("connectPanel.customConnection") }),
1202
+ /* @__PURE__ */ jsx9(
1203
+ ConnectChooser,
1204
+ {
1205
+ customOnly: true,
1206
+ presentation,
1207
+ controller: setup.controller,
1208
+ returnUrl,
1209
+ finishInPopup,
1210
+ personalOnly: alone
1211
+ }
1212
+ )
1213
+ ] })
1214
+ ] }) : /* @__PURE__ */ jsx9(
1215
+ ConnectChooser,
1216
+ {
1217
+ presentation,
1218
+ controller: setup.controller,
1219
+ returnUrl,
1220
+ finishInPopup,
1221
+ personalOnly: alone
1222
+ }
1223
+ )),
1224
+ activeSetup && attempt && approvalHelp && /* @__PURE__ */ jsx9("button", { type: "button", onClick: () => setDismissed(attempt.id), children: t("connectPanel.backToConnections") }),
1225
+ activeSetup && /* @__PURE__ */ jsx9(
1226
+ ConnectSetup,
1227
+ {
1228
+ ...setup,
1229
+ onRetry: retry,
1230
+ serviceName: setup.serviceName ?? (serviceName || void 0),
1231
+ authorizeLabel: setup.authorizeLabel ?? (serviceName ? t("connectPanel.continueToServicename", { serviceName }) : t("connectPanel.authorizeConnection"))
1232
+ }
1233
+ )
1234
+ ] });
1235
+ }
1236
+
1237
+ // src/device-authorization.tsx
1238
+ import { useEffect as useEffect6, useRef as useRef3, useState as useState7 } from "react";
1239
+ import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1240
+ function DeviceAuthorization(props) {
1241
+ const t = useOpenGeniText();
1242
+ const [copied, setCopied] = useState7(false);
1243
+ const [copyError, setCopyError] = useState7(false);
1244
+ const generation = useRef3(0);
1245
+ const timer = useRef3(null);
1246
+ useEffect6(() => {
1247
+ generation.current++;
1248
+ setCopied(false);
1249
+ setCopyError(false);
1250
+ return () => {
1251
+ generation.current++;
1252
+ if (timer.current) clearTimeout(timer.current);
1253
+ };
1254
+ }, [props.userCode]);
1255
+ async function copy() {
1256
+ const revision = ++generation.current;
1257
+ if (timer.current) clearTimeout(timer.current);
1258
+ setCopied(false);
1259
+ setCopyError(false);
1260
+ try {
1261
+ const clipboard = props.loadClipboard ? await props.loadClipboard() : { copyTextToClipboard };
1262
+ if (revision !== generation.current) return;
1263
+ const success = await clipboard.copyTextToClipboard(props.userCode);
1264
+ if (revision !== generation.current) return;
1265
+ setCopied(success);
1266
+ setCopyError(!success);
1267
+ props.onCopyResult?.(success);
1268
+ if (success)
1269
+ timer.current = setTimeout(() => {
1270
+ if (revision === generation.current) setCopied(false);
1271
+ }, 1600);
1272
+ } catch {
1273
+ if (revision !== generation.current) return;
1274
+ setCopyError(true);
1275
+ props.onCopyResult?.(false);
1276
+ }
1277
+ }
1278
+ let href;
1279
+ try {
1280
+ const url = new URL(props.verificationUri);
1281
+ if (["https:", "http:"].includes(url.protocol) && !url.username && !url.password)
1282
+ href = props.verificationUri;
1283
+ } catch {
1284
+ }
1285
+ if (props.render) return props.render({ copied, copyError, copy, verificationHref: href });
1286
+ return /* @__PURE__ */ jsxs9(
1287
+ "section",
1288
+ {
1289
+ className: `og-connect ${props.className ?? ""}`,
1290
+ "aria-label": t("deviceAuthorization.deviceAuthorization"),
1291
+ children: [
1292
+ /* @__PURE__ */ jsx10("p", { children: props.description ?? t("deviceAuthorization.enterThisCodeAtProviderlabel", {
1293
+ providerLabel: props.providerLabel ?? t("deviceAuthorization.theProvider")
1294
+ }) }),
1295
+ /* @__PURE__ */ jsxs9("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem", alignItems: "center" }, children: [
1296
+ /* @__PURE__ */ jsx10("code", { ...props.codeAttributes, style: { overflowWrap: "anywhere" }, children: props.userCode }),
1297
+ /* @__PURE__ */ jsx10(
1298
+ "button",
1299
+ {
1300
+ type: "button",
1301
+ "aria-label": copied ? t("deviceAuthorization.codeCopied") : t("deviceAuthorization.copyCode"),
1302
+ onClick: () => void copy(),
1303
+ children: copied ? t("deviceAuthorization.copied") : t("deviceAuthorization.copyCode")
1304
+ }
1305
+ ),
1306
+ href ? /* @__PURE__ */ jsxs9("a", { href, target: "_blank", rel: "noopener noreferrer", children: [
1307
+ t("deviceAuthorization.open"),
1308
+ " ",
1309
+ props.providerLabel ?? t("deviceAuthorization.authPage")
1310
+ ] }) : /* @__PURE__ */ jsx10("span", { role: "alert", children: t("deviceAuthorization.authorizationAddressUnavailable") })
1311
+ ] }),
1312
+ copyError ? /* @__PURE__ */ jsx10("p", { role: "alert", children: t("deviceAuthorization.couldnTCopyTheCode") }) : null,
1313
+ /* @__PURE__ */ jsx10("p", { role: "status", children: t("deviceAuthorization.waitingForAuthorization") })
1314
+ ]
1315
+ }
1316
+ );
1317
+ }
1318
+
1319
+ // src/identity-link-consent.tsx
1320
+ import { useEffect as useEffect7, useRef as useRef4, useState as useState8 } from "react";
1321
+ import { Fragment as Fragment5, jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
1322
+ function IdentityLinkConsent({
1323
+ client,
1324
+ workspaceId,
1325
+ linkId,
1326
+ challenge,
1327
+ className,
1328
+ onComplete
1329
+ }) {
1330
+ const t = useOpenGeniText();
1331
+ const [link, setLink] = useState8(null);
1332
+ const [preview, setPreview] = useState8(null);
1333
+ const [selected, setSelected] = useState8([]);
1334
+ const [busy, setBusy] = useState8(false);
1335
+ const [error, setError] = useState8(false);
1336
+ const [retry, setRetry] = useState8(0);
1337
+ const generation = useRef4(0);
1338
+ useEffect7(() => {
1339
+ const current = ++generation.current;
1340
+ setLink(null);
1341
+ setPreview(null);
1342
+ setSelected([]);
1343
+ setBusy(true);
1344
+ setError(false);
1345
+ void client.previewIdentityLink(workspaceId, linkId, challenge).then(
1346
+ (result) => {
1347
+ if (generation.current !== current) return;
1348
+ setPreview(result);
1349
+ setLink(result.link);
1350
+ setSelected(result.link.permissions);
1351
+ },
1352
+ () => {
1353
+ if (generation.current === current) setError(true);
1354
+ }
1355
+ ).finally(() => {
1356
+ if (generation.current === current) setBusy(false);
1357
+ });
1358
+ return () => {
1359
+ generation.current++;
1360
+ };
1361
+ }, [client, workspaceId, linkId, challenge, retry]);
1362
+ async function mutate(revoke) {
1363
+ if (!link || busy) return;
1364
+ const current = generation.current;
1365
+ setBusy(true);
1366
+ setError(false);
1367
+ try {
1368
+ const result = revoke ? await client.revokeIdentityLink(workspaceId, linkId, link.revision) : await client.confirmIdentityLink(workspaceId, linkId, {
1369
+ challenge,
1370
+ expectedRevision: link.revision,
1371
+ permissions: selected
1372
+ });
1373
+ if (generation.current !== current) return;
1374
+ setLink(result);
1375
+ onComplete?.(result);
1376
+ } catch {
1377
+ if (generation.current === current) setError(true);
1378
+ } finally {
1379
+ if (generation.current === current) setBusy(false);
1380
+ }
1381
+ }
1382
+ return /* @__PURE__ */ jsxs10(
1383
+ "section",
1384
+ {
1385
+ className: ["og-connect og-identity-link", className].filter(Boolean).join(" "),
1386
+ "aria-label": t("identityLinkConsent.linkYourAccount"),
1387
+ "aria-busy": busy,
1388
+ children: [
1389
+ /* @__PURE__ */ jsx11("h2", { children: t("identityLinkConsent.linkYourOpengeniAccount") }),
1390
+ /* @__PURE__ */ jsx11("p", { children: t("identityLinkConsent.onlyContinueIfYouStarted") }),
1391
+ preview && /* @__PURE__ */ jsxs10("dl", { children: [
1392
+ /* @__PURE__ */ jsx11("dt", { children: t("identityLinkConsent.organization") }),
1393
+ /* @__PURE__ */ jsx11("dd", { children: preview.organizationId }),
1394
+ /* @__PURE__ */ jsx11("dt", { children: t("identityLinkConsent.productUser") }),
1395
+ /* @__PURE__ */ jsxs10("dd", { children: [
1396
+ preview.externalIdentity.externalId,
1397
+ " (",
1398
+ preview.externalIdentity.source,
1399
+ ")"
1400
+ ] }),
1401
+ /* @__PURE__ */ jsx11("dt", { children: t("identityLinkConsent.yourOpengeniIdentity") }),
1402
+ /* @__PURE__ */ jsx11("dd", { children: preview.nativeSubjectId })
1403
+ ] }),
1404
+ error && /* @__PURE__ */ jsxs10("div", { role: "alert", children: [
1405
+ t("identityLinkConsent.thisRequestCouldNotBe"),
1406
+ !link && /* @__PURE__ */ jsx11("button", { type: "button", disabled: busy, onClick: () => setRetry((value) => value + 1), children: t("identityLinkConsent.tryAgain") })
1407
+ ] }),
1408
+ !link && busy && /* @__PURE__ */ jsx11("p", { role: "status", children: t("identityLinkConsent.loadingTheAccountLinkRequest") }),
1409
+ link?.status === "pending" && /* @__PURE__ */ jsxs10(Fragment5, { children: [
1410
+ /* @__PURE__ */ jsxs10("p", { children: [
1411
+ link.expiresAt ? t("identityLinkConsent.accessEndsLocalestring", {
1412
+ localeString: new Date(link.expiresAt).toLocaleString(t.locale)
1413
+ }) : t("identityLinkConsent.accessLastsUntilYouOr"),
1414
+ " ",
1415
+ t("identityLinkConsent.yourCurrentPermissionsStillApply")
1416
+ ] }),
1417
+ /* @__PURE__ */ jsxs10("fieldset", { disabled: busy, children: [
1418
+ /* @__PURE__ */ jsx11("legend", { children: t("identityLinkConsent.allowThesePermissions") }),
1419
+ link.permissions.map((permission) => /* @__PURE__ */ jsxs10("label", { children: [
1420
+ /* @__PURE__ */ jsx11(
1421
+ "input",
1422
+ {
1423
+ type: "checkbox",
1424
+ checked: selected.includes(permission),
1425
+ onChange: (event) => setSelected(
1426
+ (values) => event.target.checked ? [...values, permission] : values.filter((value) => value !== permission)
1427
+ )
1428
+ }
1429
+ ),
1430
+ /* @__PURE__ */ jsx11("span", { children: permission.replaceAll(":", " \xB7 ") })
1431
+ ] }, permission))
1432
+ ] }),
1433
+ /* @__PURE__ */ jsx11(
1434
+ "button",
1435
+ {
1436
+ type: "button",
1437
+ disabled: busy || selected.length === 0,
1438
+ onClick: () => void mutate(false),
1439
+ children: busy ? t("identityLinkConsent.saving") : t("identityLinkConsent.allowSelectedAccess")
1440
+ }
1441
+ ),
1442
+ /* @__PURE__ */ jsx11("p", { children: t("identityLinkConsent.youCanCloseThisPage") })
1443
+ ] }),
1444
+ link?.status === "active" && /* @__PURE__ */ jsxs10(Fragment5, { children: [
1445
+ /* @__PURE__ */ jsx11("p", { role: "status", children: t("identityLinkConsent.accountLinkedReturnToYour") }),
1446
+ /* @__PURE__ */ jsx11("button", { type: "button", disabled: busy, onClick: () => void mutate(true), children: t("identityLinkConsent.revokeThisLink") })
1447
+ ] }),
1448
+ link?.status === "revoked" && /* @__PURE__ */ jsx11("p", { role: "status", children: t("identityLinkConsent.linkRevokedYourOpengeniAccount") }),
1449
+ link?.status === "expired" && /* @__PURE__ */ jsx11("p", { role: "status", children: t("identityLinkConsent.thisRequestHasExpiredStart") })
1450
+ ]
1451
+ }
1452
+ );
1453
+ }
1454
+
1455
+ // src/identity-link-accounts.tsx
1456
+ import { useEffect as useEffect8, useRef as useRef5, useState as useState9 } from "react";
1457
+ import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
1458
+ function IdentityLinkAccounts({
1459
+ client,
1460
+ workspaceId
1461
+ }) {
1462
+ const t = useOpenGeniText();
1463
+ const [links, setLinks] = useState9([]);
1464
+ const [cursor, setCursor] = useState9(null);
1465
+ const [busy, setBusy] = useState9(true);
1466
+ const [error, setError] = useState9(false);
1467
+ const [revision, setRevision] = useState9(0);
1468
+ const generation = useRef5(0);
1469
+ const inFlight = useRef5(false);
1470
+ useEffect8(() => {
1471
+ const current = ++generation.current;
1472
+ inFlight.current = true;
1473
+ setLinks([]);
1474
+ setCursor(null);
1475
+ setBusy(true);
1476
+ setError(false);
1477
+ void client.listIdentityLinks(workspaceId).then(
1478
+ (page) => {
1479
+ if (current !== generation.current) return;
1480
+ setLinks(page.links);
1481
+ setCursor(page.nextCursor);
1482
+ },
1483
+ () => {
1484
+ if (current === generation.current) setError(true);
1485
+ }
1486
+ ).finally(() => {
1487
+ if (current === generation.current) {
1488
+ inFlight.current = false;
1489
+ setBusy(false);
1490
+ }
1491
+ });
1492
+ return () => {
1493
+ generation.current++;
1494
+ };
1495
+ }, [client, workspaceId, revision]);
1496
+ async function act(link) {
1497
+ if (inFlight.current || !link && !cursor) return;
1498
+ const current = generation.current;
1499
+ inFlight.current = true;
1500
+ setBusy(true);
1501
+ setError(false);
1502
+ try {
1503
+ if (link) {
1504
+ const updated = await client.revokeIdentityLink(workspaceId, link.id, link.revision);
1505
+ if (current === generation.current)
1506
+ setLinks(
1507
+ (values) => values.map((value) => value.id === updated.id ? { ...value, ...updated } : value)
1508
+ );
1509
+ } else {
1510
+ const page = await client.listIdentityLinks(workspaceId, cursor);
1511
+ if (current === generation.current) {
1512
+ setLinks((values) => [
1513
+ ...new Map([...values, ...page.links].map((value) => [value.id, value])).values()
1514
+ ]);
1515
+ setCursor(page.nextCursor);
1516
+ }
1517
+ }
1518
+ } catch {
1519
+ if (current === generation.current) setError(true);
1520
+ } finally {
1521
+ if (current === generation.current) {
1522
+ inFlight.current = false;
1523
+ setBusy(false);
1524
+ }
1525
+ }
1526
+ }
1527
+ return /* @__PURE__ */ jsxs11(
1528
+ "section",
1529
+ {
1530
+ className: "og-connect og-identity-link",
1531
+ "aria-label": t("identityLinkAccounts.linkedProductAccess"),
1532
+ "aria-busy": busy,
1533
+ children: [
1534
+ /* @__PURE__ */ jsx12("h2", { children: t("identityLinkAccounts.linkedProductAccess") }),
1535
+ /* @__PURE__ */ jsx12("p", { children: t("identityLinkAccounts.manageProductsAllowedToAct") }),
1536
+ /* @__PURE__ */ jsxs11("div", { className: "og-identity-link-card", children: [
1537
+ error && /* @__PURE__ */ jsxs11("div", { role: "alert", children: [
1538
+ t("identityLinkAccounts.couldNotUpdateAccountLinks"),
1539
+ /* @__PURE__ */ jsx12("button", { type: "button", disabled: busy, onClick: () => setRevision((value) => value + 1), children: t("identityLinkAccounts.reloadLinks") })
1540
+ ] }),
1541
+ busy && /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkAccounts.loadingAccountLinks") }),
1542
+ !busy && !error && links.length === 0 && /* @__PURE__ */ jsx12("p", { children: t("identityLinkAccounts.noProductsHaveLinkedAccess") }),
1543
+ /* @__PURE__ */ jsx12("ul", { children: links.map((link) => /* @__PURE__ */ jsxs11("li", { children: [
1544
+ /* @__PURE__ */ jsxs11("p", { children: [
1545
+ link.externalIdentity?.source || t("identityLinkAccounts.productIdentity"),
1546
+ " ",
1547
+ /* @__PURE__ */ jsx12("code", { children: link.externalIdentity?.externalId ?? link.externalIdentityId })
1548
+ ] }),
1549
+ /* @__PURE__ */ jsxs11("p", { children: [
1550
+ t("identityLinkAccounts.statusStatus", { status: link.status }),
1551
+ " ",
1552
+ link.expiresAt ? t("identityLinkAccounts.expiresLocalestring", {
1553
+ localeString: new Date(link.expiresAt).toLocaleString(t.locale)
1554
+ }) : t("identityLinkAccounts.noAutomaticExpiry")
1555
+ ] }),
1556
+ /* @__PURE__ */ jsx12("p", { children: link.permissions.join(", ") }),
1557
+ (link.status === "active" || link.status === "pending") && /* @__PURE__ */ jsx12("button", { type: "button", disabled: busy, onClick: () => void act(link), children: t("identityLinkAccounts.revokeAccess") })
1558
+ ] }, link.id)) }),
1559
+ cursor && /* @__PURE__ */ jsx12("button", { type: "button", disabled: busy, onClick: () => void act(), children: t("identityLinkAccounts.loadMoreLinks") })
1560
+ ] })
1561
+ ]
1562
+ }
1563
+ );
1564
+ }
1565
+
1566
+ // src/connection-installed.tsx
1567
+ import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
1568
+ function ConnectionInstalled({
1569
+ items,
1570
+ title: titleProp,
1571
+ className = ""
1572
+ }) {
1573
+ const t = useOpenGeniText();
1574
+ const title = titleProp === void 0 ? t("connectionInstalled.connected") : titleProp;
1575
+ if (!items.length) return null;
1576
+ return /* @__PURE__ */ jsxs12("section", { "aria-label": title, className: `og-connection-installed ${className}`, children: [
1577
+ /* @__PURE__ */ jsxs12("h2", { children: [
1578
+ title,
1579
+ " ",
1580
+ /* @__PURE__ */ jsx13("span", { children: items.length })
1581
+ ] }),
1582
+ /* @__PURE__ */ jsx13("div", { className: "og-connection-catalog", "data-columns": "2", children: items.map((item) => /* @__PURE__ */ jsx13(
1583
+ CapabilityCatalogRow,
1584
+ {
1585
+ name: item.name,
1586
+ icon: item.icon,
1587
+ status: item.needsAttention ? "attention" : "added",
1588
+ statusLabel: item.needsAttention ? t("connectionInstalled.needsAttention") : void 0,
1589
+ statusLine: item.status,
1590
+ onOpen: item.onOpen,
1591
+ disabled: item.disabled,
1592
+ title: item.status
1593
+ },
1594
+ item.id
1595
+ )) })
1596
+ ] });
1597
+ }
1598
+
1599
+ // src/connection-type-picker.tsx
1600
+ import { useId } from "react";
1601
+ import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
1602
+ function ConnectionTypePicker({
1603
+ value,
1604
+ onChange,
1605
+ disabled = false
1606
+ }) {
1607
+ const t = useOpenGeniText();
1608
+ const name = useId();
1609
+ return /* @__PURE__ */ jsxs13("fieldset", { className: "og-connection-type-picker", disabled, children: [
1610
+ /* @__PURE__ */ jsx14("legend", { children: t("connectionTypePicker.connectionType") }),
1611
+ [
1612
+ ["mcp", t("connectionTypePicker.mcpServer")],
1613
+ ["openapi", "OpenAPI"],
1614
+ ["graphql", "GraphQL"]
1615
+ ].map(([type, label]) => /* @__PURE__ */ jsxs13("label", { "data-selected": value === type, children: [
1616
+ /* @__PURE__ */ jsx14(
1617
+ "input",
1618
+ {
1619
+ type: "radio",
1620
+ name,
1621
+ value: type,
1622
+ checked: value === type,
1623
+ onChange: () => onChange(type)
1624
+ }
1625
+ ),
1626
+ label
1627
+ ] }, type))
1628
+ ] });
1629
+ }
1630
+
1631
+ // src/plugin-discovery.tsx
1632
+ import { useEffect as useEffect9, useRef as useRef6, useState as useState10 } from "react";
1633
+ import { BoxesIcon } from "lucide-react";
1634
+ import { Fragment as Fragment6, jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
1635
+ var discoveryCache2 = createDiscoveryCache();
1636
+ var spacedName = (name) => name.replace(/-/g, " ");
1637
+ var EMPTY_INSTALLED_IDS = /* @__PURE__ */ new Set();
1638
+ function PluginDiscovery(props) {
1639
+ const t = useOpenGeniText();
1640
+ const [provider, setProvider] = useState10(props.defaultProvider ?? "");
1641
+ return /* @__PURE__ */ jsxs14(
1642
+ "section",
1643
+ {
1644
+ className: `og-plugin-discovery ${props.resultLimit ? "og-catalog-overview" : ""}`,
1645
+ "aria-label": t("pluginDiscovery.discoverPlugins"),
1646
+ children: [
1647
+ /* @__PURE__ */ jsxs14("header", { children: [
1648
+ /* @__PURE__ */ jsx15("h3", { children: props.resultLimit ? t("pluginDiscovery.plugins") : t("pluginDiscovery.browsePlugins") }),
1649
+ !props.resultLimit ? /* @__PURE__ */ jsx15(
1650
+ "div",
1651
+ {
1652
+ className: "og-plugin-filters",
1653
+ role: "group",
1654
+ "aria-label": t("pluginDiscovery.pluginRegistry"),
1655
+ children: [
1656
+ { value: "", label: t("pluginDiscovery.all") },
1657
+ { value: "openai", label: t("pluginDiscovery.openaiPluginRegistry") },
1658
+ { value: "anthropic", label: t("pluginDiscovery.anthropicPluginRegistry") }
1659
+ ].map((option) => /* @__PURE__ */ jsx15(
1660
+ "button",
1661
+ {
1662
+ type: "button",
1663
+ "aria-pressed": provider === option.value,
1664
+ onClick: () => setProvider(option.value),
1665
+ children: option.label
1666
+ },
1667
+ option.value
1668
+ ))
1669
+ }
1670
+ ) : null
1671
+ ] }),
1672
+ /* @__PURE__ */ jsx15(
1673
+ Results,
1674
+ {
1675
+ ...props,
1676
+ provider
1677
+ },
1678
+ `${props.workspaceId}:${props.query}:${provider}`
1679
+ )
1680
+ ]
1681
+ }
1682
+ );
1683
+ }
1684
+ function Results({
1685
+ client,
1686
+ workspaceId,
1687
+ query,
1688
+ provider,
1689
+ installedIds = EMPTY_INSTALLED_IDS,
1690
+ onOpen,
1691
+ resultLimit,
1692
+ onShowMore,
1693
+ formatName = spacedName,
1694
+ renderIcon
1695
+ }) {
1696
+ const t = useOpenGeniText();
1697
+ const initial = discoveryCache2.peek(client, JSON.stringify([workspaceId, query, provider, 0]));
1698
+ const [items, setItems] = useState10(initial?.items ?? []);
1699
+ const [offset, setOffset] = useState10(0);
1700
+ const [next, setNext] = useState10(initial?.nextOffset ?? null);
1701
+ const [total, setTotal] = useState10(initial?.total ?? 0);
1702
+ const [loading, setLoading] = useState10(!initial);
1703
+ const [error, setError] = useState10(false);
1704
+ const [retry, setRetry] = useState10(0);
1705
+ const sentinel = useRef6(null);
1706
+ useEffect9(() => {
1707
+ let active = true;
1708
+ const cacheKey = JSON.stringify([workspaceId, query, provider, offset]);
1709
+ const cached = discoveryCache2.peek(client, cacheKey);
1710
+ setLoading(!cached);
1711
+ setError(false);
1712
+ const timer = setTimeout(
1713
+ () => {
1714
+ void discoveryCache2.read(
1715
+ client,
1716
+ cacheKey,
1717
+ () => client.discoverPlugins(workspaceId, { query, provider, offset })
1718
+ ).then(
1719
+ (page) => {
1720
+ if (!active) return;
1721
+ setItems((previous) => offset ? [...previous, ...page.items] : page.items);
1722
+ setTotal(page.total);
1723
+ setNext(page.nextOffset);
1724
+ setLoading(false);
1725
+ },
1726
+ () => {
1727
+ if (active) {
1728
+ setError(true);
1729
+ setLoading(false);
1730
+ }
1731
+ }
1732
+ );
1733
+ },
1734
+ cached || offset ? 0 : 200
1735
+ );
1736
+ return () => {
1737
+ active = false;
1738
+ clearTimeout(timer);
1739
+ };
1740
+ }, [client, workspaceId, query, provider, offset, retry]);
1741
+ useEffect9(() => {
1742
+ if (resultLimit || loading || error || next === null || !sentinel.current) return;
1743
+ const observer = new IntersectionObserver(
1744
+ (entries) => {
1745
+ if (entries.some((entry) => entry.isIntersecting)) setOffset(next);
1746
+ },
1747
+ { rootMargin: "200px" }
1748
+ );
1749
+ observer.observe(sentinel.current);
1750
+ return () => observer.disconnect();
1751
+ }, [loading, error, next, resultLimit]);
1752
+ return /* @__PURE__ */ jsxs14(Fragment6, { children: [
1753
+ !loading && !error ? /* @__PURE__ */ jsx15("p", { role: "status", children: total ? t("pluginDiscovery.bundlesOfSkillsAndConnections") : query.trim() ? t("pluginDiscovery.noMatchesForTrim", { trim: query.trim() }) : t("pluginDiscovery.noPluginsInThisRegistry") }) : null,
1754
+ /* @__PURE__ */ jsx15("div", { className: "og-plugin-discovery-grid", children: items.slice(0, resultLimit).map((item) => /* @__PURE__ */ jsx15(
1755
+ CapabilityCatalogRow,
1756
+ {
1757
+ "data-plugin-id": item.id,
1758
+ name: formatName(item.displayName),
1759
+ description: item.description,
1760
+ status: installedIds.has(item.id) ? "added" : "available",
1761
+ statusLabel: installedIds.has(item.id) ? t("pluginDiscovery.installed") : t("pluginDiscovery.availableToInstall"),
1762
+ onOpen: () => onOpen(item),
1763
+ icon: renderIcon ? renderIcon(item) : /* @__PURE__ */ jsx15(
1764
+ ConnectionLogo,
1765
+ {
1766
+ src: item.logoUrl,
1767
+ name: item.displayName,
1768
+ fallback: /* @__PURE__ */ jsx15(BoxesIcon, { "aria-hidden": "true" })
1769
+ }
1770
+ )
1771
+ },
1772
+ item.id
1773
+ )) }),
1774
+ loading ? /* @__PURE__ */ jsx15("p", { role: "status", children: t("pluginDiscovery.loadingPlugins") }) : null,
1775
+ error ? /* @__PURE__ */ jsxs14("p", { role: "alert", children: [
1776
+ t("pluginDiscovery.couldnTLoadPlugins"),
1777
+ " ",
1778
+ /* @__PURE__ */ jsx15("button", { type: "button", onClick: () => setRetry((value) => value + 1), children: t("pluginDiscovery.retry") })
1779
+ ] }) : null,
1780
+ resultLimit && !loading && !error && total > resultLimit ? /* @__PURE__ */ jsx15("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("pluginDiscovery.viewAllPlugins") }) : null,
1781
+ /* @__PURE__ */ jsx15("div", { ref: sentinel, children: !resultLimit && next !== null && !loading && !error ? /* @__PURE__ */ jsx15("button", { className: "og-plugin-more", type: "button", onClick: () => setOffset(next), children: t("pluginDiscovery.showMorePlugins") }) : null })
1782
+ ] });
1783
+ }
1784
+
1785
+ export {
1786
+ SkillDiscovery,
1787
+ connectionOptionNeedsAttention,
1788
+ attentionFirst,
1789
+ ConnectionOptionRow,
1790
+ ConnectionServiceRow,
1791
+ ConnectionCatalog,
1792
+ ConnectChooser,
1793
+ ConnectAccounts,
1794
+ ConnectionDiscovery,
1795
+ ConnectPanel,
1796
+ DeviceAuthorization,
1797
+ IdentityLinkConsent,
1798
+ IdentityLinkAccounts,
1799
+ ConnectionInstalled,
1800
+ ConnectionTypePicker,
1801
+ PluginDiscovery
1802
+ };
1803
+ //# sourceMappingURL=chunk-SD4A5P24.js.map