@opengeni/react 6.36.1-canary.45090389523001 → 6.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1144) hide show
  1. package/dist/app/app-state.js +31 -31
  2. package/dist/app/components/Composer.js +44 -44
  3. package/dist/app/components/add-card-dialog.js +1 -1
  4. package/dist/app/components/add-card.js +2 -2
  5. package/dist/app/components/agent/agent-capability-picker.js +9 -9
  6. package/dist/app/components/agents/agent-can-use.js +47 -46
  7. package/dist/app/components/agents/agent-form-page.js +143 -139
  8. package/dist/app/components/agents/agent-form-page.js.map +1 -1
  9. package/dist/app/components/agents/agent-page.js +125 -121
  10. package/dist/app/components/agents/agent-setup-sections.js +77 -73
  11. package/dist/app/components/agents/agent-skills.js +13 -13
  12. package/dist/app/components/agents/agent-trigger-chat-field.js +6 -6
  13. package/dist/app/components/agents/agent-trigger-dialog.js +34 -31
  14. package/dist/app/components/agents/agent-trigger-model.d.ts +14 -0
  15. package/dist/app/components/agents/agent-trigger-picker.js +9 -8
  16. package/dist/app/components/agents/agent-trigger-repositories.d.ts +9 -0
  17. package/dist/app/components/agents/agent-trigger-repositories.js +31 -0
  18. package/dist/app/components/agents/agents-page.css +1905 -0
  19. package/dist/app/components/agents/agents-page.css.map +1 -0
  20. package/dist/app/components/agents/agents-page.js +160 -115
  21. package/dist/app/components/agents/agents-page.js.map +1 -1
  22. package/dist/app/components/agents/composer-agent-chip.js +60 -60
  23. package/dist/app/components/agents/session-agent-chip.js +55 -55
  24. package/dist/app/components/artifacts/app-package.js +11 -11
  25. package/dist/app/components/artifacts/artifact-browse-controls.js +3 -3
  26. package/dist/app/components/artifacts/artifact-library.css +1905 -0
  27. package/dist/app/components/artifacts/artifact-library.css.map +1 -0
  28. package/dist/app/components/artifacts/artifact-library.js +28 -28
  29. package/dist/app/components/artifacts/artifact-page-chrome.js +1 -1
  30. package/dist/app/components/artifacts/artifact-viewer.css +1905 -0
  31. package/dist/app/components/artifacts/artifact-viewer.css.map +1 -0
  32. package/dist/app/components/artifacts/artifact-viewer.js +65 -65
  33. package/dist/app/components/artifacts/chat-interactive-block.js +27 -27
  34. package/dist/app/components/artifacts/copy-artifact-link.js +1 -1
  35. package/dist/app/components/artifacts/file-reach-dialog.js +12 -12
  36. package/dist/app/components/artifacts/inline-chat-image.js +52 -52
  37. package/dist/app/components/artifacts/ready-made-apps.css +1905 -0
  38. package/dist/app/components/artifacts/ready-made-apps.css.map +1 -0
  39. package/dist/app/components/artifacts/ready-made-apps.d.ts +3 -0
  40. package/dist/app/components/artifacts/ready-made-apps.js +40 -0
  41. package/dist/app/components/artifacts/retained-file-preview.js +58 -58
  42. package/dist/app/components/artifacts/retained-text-preview.js +8 -8
  43. package/dist/app/components/artifacts/site-actions.js +12 -12
  44. package/dist/app/components/artifacts/site-audience.js +7 -7
  45. package/dist/app/components/artifacts/site-conversations.js +34 -34
  46. package/dist/app/components/artifacts/site-data.js +26 -26
  47. package/dist/app/components/artifacts/site-public-link.js +3 -3
  48. package/dist/app/components/artifacts/site-publishing-page.js +69 -69
  49. package/dist/app/components/artifacts/site-publishing.js +54 -54
  50. package/dist/app/components/artifacts/site-settings.js +68 -68
  51. package/dist/app/components/artifacts/site-version-menu.js +9 -9
  52. package/dist/app/components/billing-class-mark.js +7 -7
  53. package/dist/app/components/capabilities/capability-detail-sheet.js +17 -17
  54. package/dist/app/components/capabilities/capability-logo-source.js +29 -28
  55. package/dist/app/components/capabilities/capability-logo.js +1 -1
  56. package/dist/app/components/capabilities/connection-account-picker.js +2 -2
  57. package/dist/app/components/capabilities/connector-tool-permissions.js +8 -8
  58. package/dist/app/components/capabilities/native-connect-setup.js +32 -31
  59. package/dist/app/components/capabilities/own-logins-shared-heads-up.js +6 -6
  60. package/dist/app/components/capabilities/perform-capability-action.js +4 -4
  61. package/dist/app/components/capabilities/prepared-mcp-setup-card.js +32 -31
  62. package/dist/app/components/capabilities/session-capability-card.js +141 -140
  63. package/dist/app/components/capabilities/session-capability-card.js.map +1 -1
  64. package/dist/app/components/capabilities/session-chrome-card.js +48 -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 +44 -43
  68. package/dist/app/components/capabilities/session-machine-card.js +49 -49
  69. package/dist/app/components/capabilities/session-personal-github-card.js +33 -32
  70. package/dist/app/components/capabilities/session-plugin-card.js +21 -21
  71. package/dist/app/components/capabilities/use-capabilities-catalog.js +1 -1
  72. package/dist/app/components/capabilities/use-connection-accounts.js +3 -3
  73. package/dist/app/components/chat-payment-pages.js +2 -2
  74. package/dist/app/components/command-menu/chat-status.js +26 -26
  75. package/dist/app/components/command-menu/chat-switcher.js +86 -86
  76. package/dist/app/components/command-menu/command-menu.js +110 -110
  77. package/dist/app/components/command-menu/shortcut-sheet.js +24 -24
  78. package/dist/app/components/composer-capabilities-menu-body.js +7 -7
  79. package/dist/app/components/composer-mobile-plus-panel.js +29 -29
  80. package/dist/app/components/composer-mobile-plus.js +3 -3
  81. package/dist/app/components/credit-required-gate.js +6 -6
  82. package/dist/app/components/credit-required-prompt.js +20 -20
  83. package/dist/app/components/credits/checkout-credits-celebration.js +1 -1
  84. package/dist/app/components/credits/checkout-return.js +1 -1
  85. package/dist/app/components/credits/coupon-redeem.js +1 -1
  86. package/dist/app/components/credits/credit-refusal-notice.js +8 -8
  87. package/dist/app/components/credits/own-subscription-plan-notice.js +3 -3
  88. package/dist/app/components/desktop/app-shots.js +9 -9
  89. package/dist/app/components/desktop/app-update.js +3 -3
  90. package/dist/app/components/desktop/computer-use.js +3 -3
  91. package/dist/app/components/desktop/this-computer.js +6 -6
  92. package/dist/app/components/feedback.js +10 -10
  93. package/dist/app/components/follow-up-repository-menu-body.js +14 -14
  94. package/dist/app/components/follow-up-repository-picker.js +1 -1
  95. package/dist/app/components/github-app-connect-launcher.js +2 -2
  96. package/dist/app/components/in-app-help-link.js +3 -3
  97. package/dist/app/components/knowledge/agent-learning-settings.js +3 -3
  98. package/dist/app/components/machines/connect-machine-dialog.js +24 -24
  99. package/dist/app/components/manual-repository-editor.js +3 -3
  100. package/dist/app/components/markdown.js +16 -16
  101. package/dist/app/components/model-identity.js +3 -3
  102. package/dist/app/components/models/models-ui.js +17 -17
  103. package/dist/app/components/models/provider-mark.js +3 -3
  104. package/dist/app/components/models/subscription-usage.js +5 -5
  105. package/dist/app/components/my-things.js +15 -15
  106. package/dist/app/components/own-where-it-works.js +10 -10
  107. package/dist/app/components/personal-resource-attachment-surface.js +4 -4
  108. package/dist/app/components/pickers.js +12 -12
  109. package/dist/app/components/rail/channel-create-dialog.js +6 -6
  110. package/dist/app/components/rail/project-glyph.js +53 -53
  111. package/dist/app/components/rail/project-profile.js +74 -74
  112. package/dist/app/components/rail/rail-context.js +2 -2
  113. package/dist/app/components/rail/rail-sections.js +157 -157
  114. package/dist/app/components/rail/session-header.js +124 -124
  115. package/dist/app/components/rail/session-list.js +156 -156
  116. package/dist/app/components/rail/session-row-content.js +6 -6
  117. package/dist/app/components/rail/session-row-hover-details.js +37 -37
  118. package/dist/app/components/rail/session-shell.js +194 -194
  119. package/dist/app/components/rail/site-session-group-heading.js +36 -36
  120. package/dist/app/components/repository-picker.js +14 -14
  121. package/dist/app/components/secrets/session-secrets-panel.js +4 -4
  122. package/dist/app/components/session/agent-configuration-panel.js +48 -48
  123. package/dist/app/components/session/artifact-session-page.js +7 -7
  124. package/dist/app/components/session/banners.js +20 -20
  125. package/dist/app/components/session/chat-avatar.js +53 -53
  126. package/dist/app/components/session/console-new-conversation.js +111 -111
  127. package/dist/app/components/session/descendant-requests.js +109 -109
  128. package/dist/app/components/session/editable-artifacts-workspace.css +1905 -0
  129. package/dist/app/components/session/editable-artifacts-workspace.css.map +1 -0
  130. package/dist/app/components/session/editable-artifacts-workspace.js +59 -59
  131. package/dist/app/components/session/failed-session-banner.js +27 -27
  132. package/dist/app/components/session/failure-recovery-boundary.js +3 -3
  133. package/dist/app/components/session/human-input-delegation-record.js +3 -3
  134. package/dist/app/components/session/human-input.js +88 -88
  135. package/dist/app/components/session/inspector.js +146 -146
  136. package/dist/app/components/session/linked-panel.js +3 -3
  137. package/dist/app/components/session/message-actions.js +10 -10
  138. package/dist/app/components/session/model-recovery-notice.js +4 -4
  139. package/dist/app/components/session/new-session-settings-menu.js +29 -29
  140. package/dist/app/components/session/new-session-setup-strip.js +56 -56
  141. package/dist/app/components/session/pull-request-panel.js +25 -25
  142. package/dist/app/components/session/sandbox-recovery-actions.js +3 -3
  143. package/dist/app/components/session/sandbox-switcher.js +22 -22
  144. package/dist/app/components/session/sandbox-workspace.js +119 -119
  145. package/dist/app/components/session/search-markdown-highlight.js +17 -17
  146. package/dist/app/components/session/search-results-view.js +18 -18
  147. package/dist/app/components/session/session-admin-access.js +13 -13
  148. package/dist/app/components/session/session-admission-notice.js +11 -11
  149. package/dist/app/components/session/session-avatar-picker.js +60 -60
  150. package/dist/app/components/session/session-avatar.js +55 -55
  151. package/dist/app/components/session/session-machine-access-notice.js +11 -11
  152. package/dist/app/components/session/session-profile-dialog.js +71 -71
  153. package/dist/app/components/session/session-profile-editor.js +72 -72
  154. package/dist/app/components/session/session-retention.js +6 -6
  155. package/dist/app/components/session/session-search-dialog.js +20 -20
  156. package/dist/app/components/session/session-skill-reviews.js +5 -5
  157. package/dist/app/components/session/session-tenancy-control.js +26 -26
  158. package/dist/app/components/session/session-unattended-setting.js +1 -1
  159. package/dist/app/components/session/session-usage-limit-section.js +11 -11
  160. package/dist/app/components/session/share-chat-dialog.js +10 -10
  161. package/dist/app/components/session/subagents.js +23 -23
  162. package/dist/app/components/session/subscription-account-indicator.js +25 -25
  163. package/dist/app/components/session/subscription-account-menu.js +7 -7
  164. package/dist/app/components/session-connectors-menu-body.js +10 -10
  165. package/dist/app/components/settings/row-select.js +6 -6
  166. package/dist/app/components/toaster.js +2 -2
  167. package/dist/app/components/transcription-settings.js +10 -10
  168. package/dist/app/components/ui/destructive-confirm.js +10 -10
  169. package/dist/app/components/usage/usage-entry.js +8 -8
  170. package/dist/app/components/window-bar.js +25 -25
  171. package/dist/app/components/workspace-composer-plus.js +43 -42
  172. package/dist/app/components/workspace-reach.js +6 -6
  173. package/dist/app/embed/session-app.js +398 -397
  174. package/dist/app/lib/actions/actions-provider.js +18 -18
  175. package/dist/app/lib/agent-capabilities.js +4 -4
  176. package/dist/app/lib/app-connect-card.js +14 -14
  177. package/dist/app/lib/app-shared-key-dialog.js +8 -8
  178. package/dist/app/lib/app-surfaces.js +1 -1
  179. package/dist/app/lib/app-sync-opt-in.js +4 -4
  180. package/dist/app/lib/codex-usage-query.js +3 -3
  181. package/dist/app/lib/composer-agent.js +2 -2
  182. package/dist/app/lib/composer-connectors.js +33 -32
  183. package/dist/app/lib/composer-send-blocking.js +2 -2
  184. package/dist/app/lib/console-site.js +6 -6
  185. package/dist/app/lib/console-text.js +2 -2
  186. package/dist/app/lib/events.js +30 -30
  187. package/dist/app/lib/failed-session-copy.js +5 -5
  188. package/dist/app/lib/feedback-capture.js +2 -2
  189. package/dist/app/lib/model-access-onboarding.js +4 -4
  190. package/dist/app/lib/move-chat-to-machine.js +5 -5
  191. package/dist/app/lib/personal-resource-attachments.js +1 -1
  192. package/dist/app/lib/ready-made-apps.d.ts +14 -0
  193. package/dist/app/lib/ready-made-apps.js +8 -0
  194. package/dist/app/lib/session-branch-cache.js +19 -19
  195. package/dist/app/lib/session-create.js +5 -5
  196. package/dist/app/lib/session-group-pagination.js +19 -19
  197. package/dist/app/lib/session-hover-facts.js +26 -26
  198. package/dist/app/lib/session-list-dirty-scopes.js +20 -20
  199. package/dist/app/lib/session-model.js +2 -2
  200. package/dist/app/lib/session-rail.js +16 -16
  201. package/dist/app/lib/session-rename.js +3 -3
  202. package/dist/app/lib/sessions-group.js +23 -23
  203. package/dist/app/lib/site-tool-consent-dialog.js +23 -23
  204. package/dist/app/lib/site-tool-consent.js +1 -1
  205. package/dist/app/lib/turn-failure-analytics.js +7 -7
  206. package/dist/app/lib/use-artifact-catalog.js +2 -2
  207. package/dist/app/lib/use-duplicate-site.js +4 -4
  208. package/dist/app/lib/use-follow-up-repositories.js +5 -5
  209. package/dist/app/lib/use-personal-resource-attachment.js +2 -2
  210. package/dist/app/lib/use-workspace-machines.js +9 -9
  211. package/dist/app/lib/use-workspace-model-catalog.js +6 -6
  212. package/dist/app/lib/use-workspace-rigs.js +6 -6
  213. package/dist/app/lib/workspace-navigation-preference.js +5 -5
  214. package/dist/app/lib/workspace-scope-context.js +4 -4
  215. package/dist/app/routes/app-page-view.js +17 -17
  216. package/dist/app/routes/app-page.js +2 -2
  217. package/dist/app/routes/artifacts.css +1905 -0
  218. package/dist/app/routes/artifacts.css.map +1 -0
  219. package/dist/app/routes/artifacts.js +188 -177
  220. package/dist/app/routes/artifacts.js.map +1 -1
  221. package/dist/app/routes/retained-artifact.js +109 -109
  222. package/dist/app/routes/session-unavailable.js +5 -5
  223. package/dist/app/routes/session.js +250 -249
  224. package/dist/app/routes/sessions-index-hydration.js +6 -6
  225. package/dist/app/routes/sessions-index.js +208 -207
  226. package/dist/app/routes/site-view.js +197 -197
  227. package/dist/artifacts-document.js +4 -4
  228. package/dist/artifacts-presentation.js +7 -7
  229. package/dist/artifacts-spreadsheet.js +4 -4
  230. package/dist/artifacts.js +50 -50
  231. package/dist/automation-model.js +6 -6
  232. package/dist/automations.d.ts +1 -0
  233. package/dist/automations.js +81 -74
  234. package/dist/automations.js.map +1 -1
  235. package/dist/browser-viewer-5JGSKIXX.js +23 -0
  236. package/dist/chat-interactive-block-NEDFTOGE.js +22 -0
  237. package/dist/chunk-22SXRKET.js +72 -0
  238. package/dist/chunk-2JR7LEST.js +357 -0
  239. package/dist/chunk-2L6B6766.js +5915 -0
  240. package/dist/chunk-2L6B6766.js.map +1 -0
  241. package/dist/chunk-2LBYEHBH.js +570 -0
  242. package/dist/chunk-2MHIIF4N.js +141 -0
  243. package/dist/chunk-2NABGWXC.js +391 -0
  244. package/dist/chunk-2PTBF6GM.js +92 -0
  245. package/dist/chunk-2PTBF6GM.js.map +1 -0
  246. package/dist/chunk-2VX42S4W.js +773 -0
  247. package/dist/chunk-2X7I6LXY.js +111 -0
  248. package/dist/chunk-34LWIEIZ.js +399 -0
  249. package/dist/chunk-3F45ELUO.js +1187 -0
  250. package/dist/chunk-3J6ENWZF.js +93 -0
  251. package/dist/chunk-3PTEMOSW.js +129 -0
  252. package/dist/chunk-3UA2SOK2.js +83 -0
  253. package/dist/chunk-3YKED2ZV.js +307 -0
  254. package/dist/chunk-44MYJQ72.js +129 -0
  255. package/dist/chunk-46UZ5ZYU.js +532 -0
  256. package/dist/chunk-4NXQWXQY.js +230 -0
  257. package/dist/chunk-4OGDD2EM.js +2434 -0
  258. package/dist/chunk-4PSB2CK7.js +412 -0
  259. package/dist/chunk-4R74CAIF.js +283 -0
  260. package/dist/chunk-4RGFBD4M.js +4565 -0
  261. package/dist/chunk-4SNYMZBC.js +389 -0
  262. package/dist/chunk-4ST37B5I.js +4957 -0
  263. package/dist/chunk-4ST37B5I.js.map +1 -0
  264. package/dist/chunk-4UAHTM3Q.js +107 -0
  265. package/dist/chunk-4YWHOAB4.js +201 -0
  266. package/dist/chunk-5AHIKB3O.js +449 -0
  267. package/dist/chunk-5AXIZJX4.js +84 -0
  268. package/dist/chunk-5CEQ356Z.js +353 -0
  269. package/dist/chunk-5ERDSF2C.js +79 -0
  270. package/dist/chunk-5G6UHUJZ.js +43 -0
  271. package/dist/chunk-5H3SJHDT.js +137 -0
  272. package/dist/chunk-5ZTVBNMS.js +162 -0
  273. package/dist/chunk-5ZUARMG2.js +211 -0
  274. package/dist/chunk-6AGNZI2W.js +437 -0
  275. package/dist/chunk-6F34IWSA.js +47 -0
  276. package/dist/chunk-6F34IWSA.js.map +1 -0
  277. package/dist/chunk-6IIJ4H4O.js +407 -0
  278. package/dist/chunk-6YCYPXDA.js +114 -0
  279. package/dist/chunk-6YTNMDFP.js +318 -0
  280. package/dist/chunk-6ZJU2B3Z.js +50 -0
  281. package/dist/chunk-73O7NO3F.js +50 -0
  282. package/dist/chunk-7456QZAA.js +340 -0
  283. package/dist/chunk-754NH7T2.js +383 -0
  284. package/dist/chunk-7GS2MGFU.js +27 -0
  285. package/dist/chunk-7IR7EOTR.js +3070 -0
  286. package/dist/chunk-7MH4TTVE.js +132 -0
  287. package/dist/chunk-7N35XBSC.js +386 -0
  288. package/dist/chunk-7ND2VMKV.js +270 -0
  289. package/dist/chunk-7RVJLO3N.js +154 -0
  290. package/dist/chunk-7X443ZTQ.js +246 -0
  291. package/dist/chunk-7XZO4W76.js +1152 -0
  292. package/dist/chunk-ABGHRGID.js +376 -0
  293. package/dist/chunk-ABGHRGID.js.map +1 -0
  294. package/dist/chunk-AEH34OOU.js +298 -0
  295. package/dist/chunk-AML5X74C.js +538 -0
  296. package/dist/chunk-AVIOWKKJ.js +246 -0
  297. package/dist/chunk-AY4XH73V.js +1333 -0
  298. package/dist/chunk-BGT43KDL.js +42 -0
  299. package/dist/chunk-BHS4KW4W.js +3851 -0
  300. package/dist/chunk-BKJXUACP.js +366 -0
  301. package/dist/chunk-BNWO72C2.js +851 -0
  302. package/dist/chunk-BT5EOSQF.js +65 -0
  303. package/dist/chunk-BVFOLLMQ.js +229 -0
  304. package/dist/chunk-CC2IVNVR.js +572 -0
  305. package/dist/chunk-CGVMECYX.js +131 -0
  306. package/dist/chunk-CLERWAEA.js +2317 -0
  307. package/dist/chunk-COCLT77F.js +818 -0
  308. package/dist/chunk-COIXX62I.js +723 -0
  309. package/dist/chunk-D32VVOBJ.js +738 -0
  310. package/dist/chunk-D32VVOBJ.js.map +1 -0
  311. package/dist/chunk-DHVA3T3K.js +271 -0
  312. package/dist/chunk-DKM3JBGJ.js +335 -0
  313. package/dist/chunk-DNRVXHUW.js +187 -0
  314. package/dist/chunk-DP4MGOBG.js +158 -0
  315. package/dist/chunk-DRVT6TRP.js +270 -0
  316. package/dist/chunk-DV3OECO6.js +333 -0
  317. package/dist/chunk-DYQRNIID.js +73 -0
  318. package/dist/chunk-DZZSFPMW.js +66 -0
  319. package/dist/chunk-DZZSFPMW.js.map +1 -0
  320. package/dist/chunk-E45JRR3J.js +138 -0
  321. package/dist/chunk-E5EICKKB.js +469 -0
  322. package/dist/chunk-E7FNLQXM.js +400 -0
  323. package/dist/chunk-EFBPHDPP.js +170 -0
  324. package/dist/chunk-EJ6IIEZX.js +554 -0
  325. package/dist/chunk-ENYULVQW.js +114 -0
  326. package/dist/chunk-EXBIL5BF.js +247 -0
  327. package/dist/chunk-F23TR625.js +283 -0
  328. package/dist/chunk-F45CPW3Y.js +3321 -0
  329. package/dist/chunk-F5C5T2PF.js +401 -0
  330. package/dist/chunk-F5C7DTVR.js +103 -0
  331. package/dist/chunk-F5RP42TL.js +598 -0
  332. package/dist/chunk-F5RP42TL.js.map +1 -0
  333. package/dist/chunk-F6D6X5ZU.js +378 -0
  334. package/dist/chunk-F6LVPEBK.js +188 -0
  335. package/dist/chunk-FARCOS2S.js +274 -0
  336. package/dist/chunk-FEQVCQMK.js +138 -0
  337. package/dist/chunk-FGHWU4LX.js +113 -0
  338. package/dist/chunk-FHNBUDXL.js +351 -0
  339. package/dist/chunk-FLDF2Z44.js +396 -0
  340. package/dist/chunk-FT3AUAXE.js +1309 -0
  341. package/dist/chunk-FWIV2FTX.js +26 -0
  342. package/dist/chunk-GGIPEZLL.js +849 -0
  343. package/dist/chunk-GGPZPBHS.js +215 -0
  344. package/dist/chunk-GHXIVKQH.js +67 -0
  345. package/dist/chunk-GIEGIEMT.js +311 -0
  346. package/dist/chunk-GLBILBET.js +166 -0
  347. package/dist/chunk-GMMB4NCN.js +250 -0
  348. package/dist/chunk-GP7MYBSX.js +56 -0
  349. package/dist/chunk-GYHL6IRO.js +404 -0
  350. package/dist/chunk-HGS5JWZR.js +126 -0
  351. package/dist/chunk-HRFAQYOA.js +124 -0
  352. package/dist/chunk-HUKGLWAY.js +174 -0
  353. package/dist/chunk-HUTQJY3F.js +23 -0
  354. package/dist/chunk-HWOYJOKK.js +266 -0
  355. package/dist/chunk-HYFNKXHR.js +251 -0
  356. package/dist/chunk-HYNTTDG6.js +1019 -0
  357. package/dist/chunk-HZ5DTSAG.js +57 -0
  358. package/dist/chunk-I2WTJMQF.js +3110 -0
  359. package/dist/chunk-I7HYF6MQ.js +1803 -0
  360. package/dist/chunk-I7HYF6MQ.js.map +1 -0
  361. package/dist/chunk-IBHUF5BN.js +278 -0
  362. package/dist/chunk-IH3J7VWW.js +85 -0
  363. package/dist/chunk-IHX5BADQ.js +200 -0
  364. package/dist/chunk-IL5ME4MQ.js +380 -0
  365. package/dist/chunk-IL5ME4MQ.js.map +1 -0
  366. package/dist/chunk-IL6PCX7K.js +91 -0
  367. package/dist/chunk-IOMZDY5D.js +199 -0
  368. package/dist/chunk-IPFSFSIK.js +428 -0
  369. package/dist/chunk-ISR6KXWT.js +898 -0
  370. package/dist/chunk-IYUZPNMU.js +79 -0
  371. package/dist/chunk-IYUZPNMU.js.map +1 -0
  372. package/dist/chunk-J2GIGAVJ.js +107 -0
  373. package/dist/chunk-J4OOKDRV.js +40 -0
  374. package/dist/chunk-J5D5OCQF.js +371 -0
  375. package/dist/chunk-JTSLGUVP.js +196 -0
  376. package/dist/chunk-JXIBVYRA.js +276 -0
  377. package/dist/chunk-JY2UEPJP.js +33 -0
  378. package/dist/chunk-KI2TGJVH.js +41 -0
  379. package/dist/chunk-KPTKQULD.js +287 -0
  380. package/dist/chunk-KYDLVMKA.js +99 -0
  381. package/dist/chunk-KZQDP2JM.js +155 -0
  382. package/dist/chunk-L2Q4HMVJ.js +202 -0
  383. package/dist/chunk-LCRYAD3X.js +259 -0
  384. package/dist/chunk-LFQI2C46.js +175 -0
  385. package/dist/chunk-M4ZYHLFU.js +292 -0
  386. package/dist/chunk-M5FX5KH5.js +629 -0
  387. package/dist/chunk-MAR5UYX4.js +191 -0
  388. package/dist/chunk-MATYGLUT.js +121 -0
  389. package/dist/chunk-MCXTYDFG.js +449 -0
  390. package/dist/chunk-MDI6SH7B.js +27 -0
  391. package/dist/chunk-MIMSPOV4.js +1356 -0
  392. package/dist/chunk-MM4NP5QA.js +98 -0
  393. package/dist/chunk-MQTYIBY6.js +263 -0
  394. package/dist/chunk-MSHWYGCH.js +175 -0
  395. package/dist/chunk-MSIQ42IY.js +794 -0
  396. package/dist/chunk-MXRCKJOQ.js +2553 -0
  397. package/dist/chunk-MXSZQ6DP.js +296 -0
  398. package/dist/chunk-N37BLJOI.js +2412 -0
  399. package/dist/chunk-N556VQMT.js +406 -0
  400. package/dist/chunk-NL7VJGFZ.js +1021 -0
  401. package/dist/chunk-NLJEDAKV.js +2984 -0
  402. package/dist/chunk-NUZNJSL5.js +285 -0
  403. package/dist/chunk-O3LOQDTI.js +176 -0
  404. package/dist/chunk-O4ZXJ52Z.js +772 -0
  405. package/dist/chunk-O5PZRVQR.js +214 -0
  406. package/dist/chunk-OEOLXODE.js +373 -0
  407. package/dist/chunk-OZGECHF5.js +52 -0
  408. package/dist/chunk-P4N7ZS6W.js +56 -0
  409. package/dist/chunk-P6LSLNSL.js +209 -0
  410. package/dist/chunk-PC2JAIAH.js +117 -0
  411. package/dist/chunk-PCSRHFRF.js +75 -0
  412. package/dist/chunk-PEAJRZU3.js +134 -0
  413. package/dist/chunk-PGMXITPB.js +85 -0
  414. package/dist/chunk-PJ42LTJE.js +249 -0
  415. package/dist/chunk-PJ66EIWE.js +82 -0
  416. package/dist/chunk-PKH6MYAK.js +311 -0
  417. package/dist/chunk-PMBZMVKE.js +33 -0
  418. package/dist/chunk-PTSRBKQC.js +118 -0
  419. package/dist/chunk-QD4J7AHU.js +1024 -0
  420. package/dist/chunk-QD6A4G7Y.js +158 -0
  421. package/dist/chunk-QEXHABRN.js +265 -0
  422. package/dist/chunk-QHYLEJP7.js +505 -0
  423. package/dist/chunk-QL4Q332Z.js +12 -0
  424. package/dist/chunk-QL5227KT.js +1184 -0
  425. package/dist/chunk-QMRHY45R.js +107 -0
  426. package/dist/chunk-QPA7ATJH.js +103 -0
  427. package/dist/chunk-QREYGVWO.js +297 -0
  428. package/dist/chunk-QREYGVWO.js.map +1 -0
  429. package/dist/chunk-QXPKUKOV.js +227 -0
  430. package/dist/chunk-R2T4IUNB.js +29 -0
  431. package/dist/chunk-R6CFPY3F.js +278 -0
  432. package/dist/chunk-R6OBJ7LF.js +131 -0
  433. package/dist/chunk-R6WQLIFX.js +73 -0
  434. package/dist/chunk-RA3NTKSW.js +1236 -0
  435. package/dist/chunk-RJWTAS4V.js +523 -0
  436. package/dist/chunk-RJZALNT5.js +391 -0
  437. package/dist/chunk-RMDLTRLI.js +372 -0
  438. package/dist/chunk-RVPH6BB7.js +218 -0
  439. package/dist/chunk-RVXLSVJH.js +931 -0
  440. package/dist/chunk-RWHDMGFG.js +214 -0
  441. package/dist/chunk-RYB3WBMZ.js +113 -0
  442. package/dist/chunk-S2525GSA.js +403 -0
  443. package/dist/chunk-S3BLYPOG.js +175 -0
  444. package/dist/chunk-S7J4HBPP.js +584 -0
  445. package/dist/chunk-SA3XI7FB.js +108 -0
  446. package/dist/chunk-SN2QZSJU.js +168 -0
  447. package/dist/chunk-SNACGK3Z.js +177 -0
  448. package/dist/chunk-SUXGKBCW.js +3690 -0
  449. package/dist/chunk-SWTPVMR4.js +251 -0
  450. package/dist/chunk-SXXWPTL7.js +269 -0
  451. package/dist/chunk-T2IFOASN.js +4480 -0
  452. package/dist/chunk-T2IFOASN.js.map +1 -0
  453. package/dist/chunk-T2N6JC5H.js +37 -0
  454. package/dist/chunk-TBUOHK6R.js +608 -0
  455. package/dist/chunk-TCUAGCAX.js +1628 -0
  456. package/dist/chunk-TGAKM3WX.js +187 -0
  457. package/dist/chunk-TGG3ODCS.js +99 -0
  458. package/dist/chunk-THWN4STY.js +850 -0
  459. package/dist/chunk-THWN4STY.js.map +1 -0
  460. package/dist/chunk-TMZ6RP3K.js +234 -0
  461. package/dist/chunk-TNE7ZYGN.js +2551 -0
  462. package/dist/chunk-TWSO5S3E.js +234 -0
  463. package/dist/chunk-U2TOOZIY.js +46 -0
  464. package/dist/chunk-UBM3IM6K.js +48 -0
  465. package/dist/chunk-UBR3CGJC.js +5089 -0
  466. package/dist/chunk-UFRXYZCJ.js +125 -0
  467. package/dist/chunk-UJNDUO7D.js +379 -0
  468. package/dist/chunk-UPRN4FBY.js +38 -0
  469. package/dist/chunk-UXGTI4HR.js +184 -0
  470. package/dist/chunk-UZKAHEQO.js +172 -0
  471. package/dist/chunk-V6ZJKHVS.js +1095 -0
  472. package/dist/chunk-VHYDZMGS.js +3176 -0
  473. package/dist/chunk-VIKXHP44.js +2580 -0
  474. package/dist/chunk-VJJKN675.js +10044 -0
  475. package/dist/chunk-VJJKN675.js.map +1 -0
  476. package/dist/chunk-VLDKWGHD.js +61 -0
  477. package/dist/chunk-VRS6VNHP.js +441 -0
  478. package/dist/chunk-VT5XHR5J.js +256 -0
  479. package/dist/chunk-VVLUVHF5.js +1177 -0
  480. package/dist/chunk-VVLUVHF5.js.map +1 -0
  481. package/dist/chunk-VVW2CBWK.js +21 -0
  482. package/dist/chunk-VVW2CBWK.js.map +1 -0
  483. package/dist/chunk-W7RKXZDV.js +112 -0
  484. package/dist/chunk-WBNSC6RJ.js +114 -0
  485. package/dist/chunk-WEPL76AR.js +110 -0
  486. package/dist/chunk-WJ2STMQD.js +236 -0
  487. package/dist/chunk-WSQ3TCOX.js +1263 -0
  488. package/dist/chunk-WT37FEG3.js +144 -0
  489. package/dist/chunk-WUKLEDKK.js +639 -0
  490. package/dist/chunk-X3T3N6W5.js +1022 -0
  491. package/dist/chunk-X7YUQ4WO.js +3996 -0
  492. package/dist/chunk-X7YUQ4WO.js.map +1 -0
  493. package/dist/chunk-XCEHQ3SO.js +316 -0
  494. package/dist/chunk-XCEHQ3SO.js.map +1 -0
  495. package/dist/chunk-XKJCFK2G.js +162 -0
  496. package/dist/chunk-XKLXYIIT.js +1185 -0
  497. package/dist/chunk-XMTBNLD2.js +650 -0
  498. package/dist/chunk-XZLNVFB4.js +515 -0
  499. package/dist/chunk-XZRMTHHW.js +15 -0
  500. package/dist/chunk-Y3ME7IF6.js +406 -0
  501. package/dist/chunk-Y6CNWBV3.js +264 -0
  502. package/dist/chunk-YJYKB6ZT.js +192 -0
  503. package/dist/chunk-YL2NFFXW.js +197 -0
  504. package/dist/chunk-YL2NFFXW.js.map +1 -0
  505. package/dist/chunk-YP4SNX4P.js +220 -0
  506. package/dist/chunk-YR7U2KDA.js +828 -0
  507. package/dist/chunk-YS6BQNHF.js +231 -0
  508. package/dist/chunk-Z7UBLC6V.js +133 -0
  509. package/dist/chunk-ZD67RM6G.js +60 -0
  510. package/dist/chunk-ZGBMDDFR.js +207 -0
  511. package/dist/chunk-ZGR7LNXC.js +432 -0
  512. package/dist/chunk-ZJICGGPI.js +48 -0
  513. package/dist/chunk-ZLKHNJCQ.js +178 -0
  514. package/dist/chunk-ZNA65Q6Y.js +20 -0
  515. package/dist/components/automations/pasted-webhook-steps.d.ts +29 -0
  516. package/dist/components/browser-viewer.d.ts +4 -1
  517. package/dist/components/human-input-form.d.ts +3 -4
  518. package/dist/components/use-fit-browser-viewport.d.ts +10 -0
  519. package/dist/composer.js +36 -36
  520. package/dist/computer-viewer-FHCBTSZH.js +21 -0
  521. package/dist/connect.js +33 -31
  522. package/dist/connection-step-up-JLORUM6D.js +146 -0
  523. package/dist/connection-step-up-JLORUM6D.js.map +1 -0
  524. package/dist/desktop-dictation.js +24 -24
  525. package/dist/desktop.js +2 -2
  526. package/dist/editor.js +2 -2
  527. package/dist/embedded-new-voice-BFTQZPJK.js +25 -0
  528. package/dist/embedded-voice-CQE2GO6Y.js +25 -0
  529. package/dist/fleet-decision-row-FJPAWNOQ.js +361 -0
  530. package/dist/in-chat-connect-model.js +5 -5
  531. package/dist/index.js +292 -292
  532. package/dist/interaction.js +9 -9
  533. package/dist/latest-question-F3VPDR7U.js +1 -1
  534. package/dist/machine-request-model.js +1 -1
  535. package/dist/machines.js +8 -8
  536. package/dist/meetings-recorder.js +1 -1
  537. package/dist/meetings.js +116 -116
  538. package/dist/messages/en.d.ts +1 -1
  539. package/dist/messages.js +1 -1
  540. package/dist/model-policy-picker-menu-PVBT2OZO.js +23 -0
  541. package/dist/payment-page-card-YPCRVFHE.js +226 -0
  542. package/dist/platform-activity-row-ZWACJPNQ.js +156 -0
  543. package/dist/queue-surface-implementation-C7ESPZW7.js +932 -0
  544. package/dist/realtime.js +17 -17
  545. package/dist/recorder-host-YPWPLMS6.js +80 -0
  546. package/dist/recordings.js +3 -3
  547. package/dist/sandbox-files-6L2GRNOG.js +28 -0
  548. package/dist/sandbox-files-6L2GRNOG.js.map +1 -0
  549. package/dist/session-app.js +398 -397
  550. package/dist/session-connect-cards-2TRJ5IWB.js +27 -0
  551. package/dist/session-connect-cards-2TRJ5IWB.js.map +1 -0
  552. package/dist/session-list-model.js +2 -2
  553. package/dist/session-realtime-AKDUKFY4.js +30 -0
  554. package/dist/session-realtime-AKDUKFY4.js.map +1 -0
  555. package/dist/session-realtime.js +2 -2
  556. package/dist/session-ui.js +95 -95
  557. package/dist/session.js +42 -42
  558. package/dist/sites.js +3 -3
  559. package/dist/terminal.js +2 -2
  560. package/dist/this-computer.js +3 -3
  561. package/dist/timeline-annotation-markers-7QSYK22C.js +157 -0
  562. package/dist/timeline-annotation-selection-XYNMESWL.js +208 -0
  563. package/dist/timeline-annotations-dialog-WSI6L2CP.js +283 -0
  564. package/dist/timeline-model.js +58 -58
  565. package/dist/ui/access-list.js +23 -23
  566. package/dist/ui/cadence-picker.js +7 -7
  567. package/dist/ui/choice-cards.js +3 -3
  568. package/dist/ui/confirm-dialog.js +2 -2
  569. package/dist/ui/copy-field.js +3 -3
  570. package/dist/ui/detail-page.js +5 -5
  571. package/dist/ui/detail-sheet.js +5 -5
  572. package/dist/ui/diff-view.js +3 -3
  573. package/dist/ui/disclosure.js +6 -6
  574. package/dist/ui/email-chips-input.js +3 -3
  575. package/dist/ui/field.js +2 -2
  576. package/dist/ui/flush-form-page.js +7 -7
  577. package/dist/ui/form-dialog.js +6 -6
  578. package/dist/ui/list-row.js +6 -6
  579. package/dist/ui/load-failure.js +3 -3
  580. package/dist/ui/relative-time.js +3 -3
  581. package/dist/ui/revision-history.js +13 -13
  582. package/dist/ui/role-select.js +11 -11
  583. package/dist/ui/select-menu.js +5 -5
  584. package/dist/ui/settings-nav.js +6 -6
  585. package/dist/ui/sheet.js +2 -2
  586. package/dist/ui/usage-meter.js +4 -4
  587. package/dist/usage.js +3 -3
  588. package/dist/workbench.js +11 -11
  589. package/package.json +5 -6
  590. package/src/app/components/agents/agent-skills.tsx +21 -18
  591. package/src/app/components/agents/agent-trigger-dialog.tsx +80 -119
  592. package/src/app/components/agents/agent-trigger-model.ts +47 -0
  593. package/src/app/components/agents/agent-trigger-repositories.tsx +88 -0
  594. package/src/app/components/agents/agents-page.tsx +118 -38
  595. package/src/app/components/artifacts/ready-made-apps.tsx +84 -0
  596. package/src/app/lib/ready-made-apps.tsx +42 -0
  597. package/src/app/routes/artifacts.tsx +11 -0
  598. package/src/automations.ts +8 -2
  599. package/src/components/automations/pasted-webhook-steps.tsx +89 -0
  600. package/src/components/browser-viewer.tsx +49 -7
  601. package/src/components/human-input-form.tsx +16 -5
  602. package/src/components/secret-question-field.tsx +42 -32
  603. package/src/components/use-fit-browser-viewport.ts +84 -0
  604. package/src/messages/en.ts +1 -1
  605. package/dist/browser-viewer-EIEMRVFF.js +0 -23
  606. package/dist/chat-interactive-block-FV37LWYZ.js +0 -22
  607. package/dist/chunk-2COBAJC7.js +0 -818
  608. package/dist/chunk-2HS3IUXE.js +0 -170
  609. package/dist/chunk-2IPAGZEO.js +0 -124
  610. package/dist/chunk-2JRHAEIT.js +0 -1095
  611. package/dist/chunk-2XGRHMRI.js +0 -250
  612. package/dist/chunk-34MODHMH.js +0 -56
  613. package/dist/chunk-34UXLCRX.js +0 -340
  614. package/dist/chunk-3HAEQMR4.js +0 -772
  615. package/dist/chunk-3SBKYPNM.js +0 -270
  616. package/dist/chunk-3Z7VA6ET.js +0 -114
  617. package/dist/chunk-46LZO4ZO.js +0 -188
  618. package/dist/chunk-46ZC5VNC.js +0 -38
  619. package/dist/chunk-4AH4EEHE.js +0 -298
  620. package/dist/chunk-4CJD7TMQ.js +0 -48
  621. package/dist/chunk-4D3YJNVN.js +0 -270
  622. package/dist/chunk-4EGWXBBZ.js +0 -403
  623. package/dist/chunk-4KASGJTF.js +0 -287
  624. package/dist/chunk-4MF2HU3S.js +0 -723
  625. package/dist/chunk-4QM2NMEB.js +0 -10036
  626. package/dist/chunk-4QM2NMEB.js.map +0 -1
  627. package/dist/chunk-4RUKLIOF.js +0 -1263
  628. package/dist/chunk-4RZBVDL5.js +0 -3996
  629. package/dist/chunk-4RZBVDL5.js.map +0 -1
  630. package/dist/chunk-54ZV4SUS.js +0 -134
  631. package/dist/chunk-5EJBPQI2.js +0 -41
  632. package/dist/chunk-5FZBRRFV.js +0 -335
  633. package/dist/chunk-5G4IGG7F.js +0 -209
  634. package/dist/chunk-5HV53SMN.js +0 -3070
  635. package/dist/chunk-5L66ERTV.js +0 -57
  636. package/dist/chunk-5OVRMKP5.js +0 -42
  637. package/dist/chunk-5QXEEW4T.js +0 -538
  638. package/dist/chunk-5SGTRULO.js +0 -1184
  639. package/dist/chunk-5SOL4INY.js +0 -572
  640. package/dist/chunk-5Y34P32B.js +0 -27
  641. package/dist/chunk-62HIKJ5F.js +0 -72
  642. package/dist/chunk-62T2ZPD5.js +0 -266
  643. package/dist/chunk-63VNZRLY.js +0 -386
  644. package/dist/chunk-67LBFBI3.js +0 -639
  645. package/dist/chunk-6CDBX3XG.js +0 -33
  646. package/dist/chunk-6D3D2JWY.js +0 -278
  647. package/dist/chunk-6DOIINY4.js +0 -201
  648. package/dist/chunk-6DQBUKGJ.js +0 -112
  649. package/dist/chunk-6SETNFNH.js +0 -1399
  650. package/dist/chunk-6SETNFNH.js.map +0 -1
  651. package/dist/chunk-6XYFMHNT.js +0 -56
  652. package/dist/chunk-6YPTBBVB.js +0 -129
  653. package/dist/chunk-6YU3WV2P.js +0 -33
  654. package/dist/chunk-72EOXOR7.js +0 -1185
  655. package/dist/chunk-72ND4ALI.js +0 -532
  656. package/dist/chunk-7AAUHFMA.js +0 -351
  657. package/dist/chunk-7E6P6MF4.js +0 -129
  658. package/dist/chunk-7G627O3U.js +0 -2553
  659. package/dist/chunk-7HHC5AAI.js +0 -110
  660. package/dist/chunk-7KP434J7.js +0 -137
  661. package/dist/chunk-7S2S4MXR.js +0 -138
  662. package/dist/chunk-7SYCHMXS.js +0 -200
  663. package/dist/chunk-7UDLRDHK.js +0 -214
  664. package/dist/chunk-7WJZWMZ4.js +0 -236
  665. package/dist/chunk-7YLQCMZP.js +0 -357
  666. package/dist/chunk-A5GX3CAE.js +0 -849
  667. package/dist/chunk-A67EXXQG.js +0 -192
  668. package/dist/chunk-A7EBV2EB.js +0 -318
  669. package/dist/chunk-AB5SPXUR.js +0 -114
  670. package/dist/chunk-AM7IK7DJ.js +0 -850
  671. package/dist/chunk-AM7IK7DJ.js.map +0 -1
  672. package/dist/chunk-AW5ZO2TH.js +0 -2412
  673. package/dist/chunk-AWK23Q32.js +0 -107
  674. package/dist/chunk-AYVWA6KD.js +0 -432
  675. package/dist/chunk-AYVWA6KD.js.map +0 -1
  676. package/dist/chunk-B45TB4HY.js +0 -931
  677. package/dist/chunk-B6AH43UQ.js +0 -2434
  678. package/dist/chunk-BA4WZGDW.js +0 -48
  679. package/dist/chunk-BIUJHNVR.js +0 -46
  680. package/dist/chunk-BJUOKUE5.js +0 -234
  681. package/dist/chunk-BNKEFQ4P.js +0 -4480
  682. package/dist/chunk-BNKEFQ4P.js.map +0 -1
  683. package/dist/chunk-BSHNNTJO.js +0 -114
  684. package/dist/chunk-BX7D2K7A.js +0 -1870
  685. package/dist/chunk-BX7D2K7A.js.map +0 -1
  686. package/dist/chunk-C6OM2SRG.js +0 -117
  687. package/dist/chunk-C7TVMFHV.js +0 -276
  688. package/dist/chunk-CBYDQWJ3.js +0 -246
  689. package/dist/chunk-CHSBOFAS.js +0 -131
  690. package/dist/chunk-CIRCUDKF.js +0 -1309
  691. package/dist/chunk-CPX6BHER.js +0 -554
  692. package/dist/chunk-CVC4RO7D.js +0 -155
  693. package/dist/chunk-D3YJAQGK.js +0 -103
  694. package/dist/chunk-DJWJMAUW.js +0 -383
  695. package/dist/chunk-DNAXAS5R.js +0 -406
  696. package/dist/chunk-DONBARLL.js +0 -154
  697. package/dist/chunk-DTLXQ3ZU.js +0 -373
  698. package/dist/chunk-DWBSK6LI.js +0 -505
  699. package/dist/chunk-E26LQV6X.js +0 -103
  700. package/dist/chunk-E7RH5F6S.js +0 -650
  701. package/dist/chunk-EDPH7AJH.js +0 -412
  702. package/dist/chunk-EILSPMVD.js +0 -133
  703. package/dist/chunk-EMWT6GOK.js +0 -437
  704. package/dist/chunk-EO22NST7.js +0 -259
  705. package/dist/chunk-ER5MYLIE.js +0 -256
  706. package/dist/chunk-ES5HKVQF.js +0 -234
  707. package/dist/chunk-F3LIUDXN.js +0 -738
  708. package/dist/chunk-F3LIUDXN.js.map +0 -1
  709. package/dist/chunk-F6QP4GSK.js +0 -515
  710. package/dist/chunk-F7JU2TYH.js +0 -1356
  711. package/dist/chunk-F7QEO7M2.js +0 -851
  712. package/dist/chunk-FJFGDLXB.js +0 -12
  713. package/dist/chunk-FKM2FLIG.js +0 -1024
  714. package/dist/chunk-FLLJ2WXW.js +0 -113
  715. package/dist/chunk-FPN4I4CG.js +0 -3690
  716. package/dist/chunk-FTZDP3CA.js +0 -1019
  717. package/dist/chunk-FU56FCAW.js +0 -789
  718. package/dist/chunk-FU56FCAW.js.map +0 -1
  719. package/dist/chunk-FXFOKD7A.js +0 -449
  720. package/dist/chunk-GBGCMHBB.js +0 -608
  721. package/dist/chunk-GIHE7U3Y.js +0 -174
  722. package/dist/chunk-GJ4GTYOD.js +0 -372
  723. package/dist/chunk-GLSDWNFV.js +0 -432
  724. package/dist/chunk-GM4UHGW6.js +0 -26
  725. package/dist/chunk-GMGAW3T6.js +0 -278
  726. package/dist/chunk-GNGI6XFN.js +0 -43
  727. package/dist/chunk-GO5VIAA7.js +0 -264
  728. package/dist/chunk-GP7BMUWR.js +0 -82
  729. package/dist/chunk-GSW4YHZE.js +0 -229
  730. package/dist/chunk-GUC6IWEY.js +0 -407
  731. package/dist/chunk-GWAY3SO5.js +0 -15
  732. package/dist/chunk-GXI3OMSR.js +0 -4565
  733. package/dist/chunk-GZZCVF76.js +0 -3851
  734. package/dist/chunk-H4VMHFOX.js +0 -214
  735. package/dist/chunk-HFROJDFQ.js +0 -118
  736. package/dist/chunk-HHFFPE67.js +0 -220
  737. package/dist/chunk-HKNMNL7B.js +0 -2984
  738. package/dist/chunk-I5FSUZVW.js +0 -584
  739. package/dist/chunk-IE6SSKKF.js +0 -2551
  740. package/dist/chunk-IGJR65GN.js +0 -1152
  741. package/dist/chunk-IGVQ2AI4.js +0 -307
  742. package/dist/chunk-IIXNEOK4.js +0 -1022
  743. package/dist/chunk-IM3WA5AL.js +0 -311
  744. package/dist/chunk-IX4P4OGR.js +0 -399
  745. package/dist/chunk-IXGZLCUP.js +0 -168
  746. package/dist/chunk-JB3TSUZO.js +0 -263
  747. package/dist/chunk-JCYP225Y.js +0 -111
  748. package/dist/chunk-JHSZSLVU.js +0 -67
  749. package/dist/chunk-JIC6RLUB.js +0 -27
  750. package/dist/chunk-JNJIZCTN.js +0 -172
  751. package/dist/chunk-JNV5ZPUV.js +0 -828
  752. package/dist/chunk-JPQFVR24.js +0 -50
  753. package/dist/chunk-JPZVMXDP.js +0 -1333
  754. package/dist/chunk-JVPF34MX.js +0 -215
  755. package/dist/chunk-K4JPMGB4.js +0 -166
  756. package/dist/chunk-K7IWU2T2.js +0 -202
  757. package/dist/chunk-KDO6ZW4U.js +0 -132
  758. package/dist/chunk-KED67KAF.js +0 -85
  759. package/dist/chunk-KJ72GMZ2.js +0 -378
  760. package/dist/chunk-KLUUDFTY.js +0 -158
  761. package/dist/chunk-KTGKGHEA.js +0 -75
  762. package/dist/chunk-KU77XHWB.js +0 -285
  763. package/dist/chunk-KVPQUADA.js +0 -5915
  764. package/dist/chunk-KVPQUADA.js.map +0 -1
  765. package/dist/chunk-KWGRRIUE.js +0 -371
  766. package/dist/chunk-KXBLLFOO.js +0 -249
  767. package/dist/chunk-L6WVCO6D.js +0 -61
  768. package/dist/chunk-LCSVFHIN.js +0 -230
  769. package/dist/chunk-LIOZ2MXJ.js +0 -380
  770. package/dist/chunk-LIOZ2MXJ.js.map +0 -1
  771. package/dist/chunk-LPEFULJY.js +0 -73
  772. package/dist/chunk-LR3LJ35V.js +0 -52
  773. package/dist/chunk-LRMGPO7E.js +0 -98
  774. package/dist/chunk-LVKTKORH.js +0 -121
  775. package/dist/chunk-M3DOLBNU.js +0 -283
  776. package/dist/chunk-MCPKUVMQ.js +0 -99
  777. package/dist/chunk-MFLU3466.js +0 -99
  778. package/dist/chunk-MHFCYU4K.js +0 -292
  779. package/dist/chunk-MIUJ3EH5.js +0 -60
  780. package/dist/chunk-MIUMNTIJ.js +0 -175
  781. package/dist/chunk-MO3XJQN2.js +0 -629
  782. package/dist/chunk-MQRHTOQ2.js +0 -218
  783. package/dist/chunk-MVYQDBE6.js +0 -79
  784. package/dist/chunk-NBUAHLMO.js +0 -1236
  785. package/dist/chunk-NEIBSGZP.js +0 -379
  786. package/dist/chunk-NFLBLJUA.js +0 -162
  787. package/dist/chunk-NUEFORM6.js +0 -2317
  788. package/dist/chunk-NZOFNQNC.js +0 -176
  789. package/dist/chunk-O664PL2U.js +0 -47
  790. package/dist/chunk-O664PL2U.js.map +0 -1
  791. package/dist/chunk-OKD2LBMK.js +0 -333
  792. package/dist/chunk-OMKCSTF6.js +0 -269
  793. package/dist/chunk-OXYAKUFU.js +0 -401
  794. package/dist/chunk-OYMSMU5O.js +0 -396
  795. package/dist/chunk-OZXEVHCS.js +0 -113
  796. package/dist/chunk-PCC3QUM6.js +0 -50
  797. package/dist/chunk-PGRKTQIW.js +0 -523
  798. package/dist/chunk-PJLHXFDD.js +0 -162
  799. package/dist/chunk-PPQJIVGM.js +0 -175
  800. package/dist/chunk-PYMQM65Y.js +0 -125
  801. package/dist/chunk-Q2QDZBNN.js +0 -175
  802. package/dist/chunk-QA5UNVHD.js +0 -85
  803. package/dist/chunk-QJMX27TG.js +0 -400
  804. package/dist/chunk-QMQF5U2D.js +0 -20
  805. package/dist/chunk-QNOWKKZ4.js +0 -40
  806. package/dist/chunk-QVOTPOXK.js +0 -29
  807. package/dist/chunk-QYZ5RVGM.js +0 -184
  808. package/dist/chunk-R7CVDKRN.js +0 -2580
  809. package/dist/chunk-R7CXWJAV.js +0 -107
  810. package/dist/chunk-RDZQFZOQ.js +0 -187
  811. package/dist/chunk-RIHKEGWS.js +0 -194
  812. package/dist/chunk-RIHKEGWS.js.map +0 -1
  813. package/dist/chunk-RPHXJHNX.js +0 -271
  814. package/dist/chunk-RVC3M66H.js +0 -191
  815. package/dist/chunk-RWCEUUEL.js +0 -187
  816. package/dist/chunk-S3OTJAAC.js +0 -283
  817. package/dist/chunk-S44LU4CK.js +0 -428
  818. package/dist/chunk-SERECSAR.js +0 -138
  819. package/dist/chunk-SRDHDIRQ.js +0 -177
  820. package/dist/chunk-SYA3WYG4.js +0 -1187
  821. package/dist/chunk-SYYFA7W7.js +0 -23
  822. package/dist/chunk-T4MHBXAU.js +0 -274
  823. package/dist/chunk-TFSCGFYV.js +0 -251
  824. package/dist/chunk-TGCKZOSX.js +0 -246
  825. package/dist/chunk-TMDL3CUH.js +0 -178
  826. package/dist/chunk-TSW2LQY3.js +0 -65
  827. package/dist/chunk-TSY6YZL2.js +0 -366
  828. package/dist/chunk-TW2RHTLH.js +0 -3321
  829. package/dist/chunk-TWA5G277.js +0 -141
  830. package/dist/chunk-TZZ2S4XI.js +0 -247
  831. package/dist/chunk-UFJDETKG.js +0 -108
  832. package/dist/chunk-UHCFYX4I.js +0 -570
  833. package/dist/chunk-UHTURYJO.js +0 -898
  834. package/dist/chunk-UPCZ7XB4.js +0 -441
  835. package/dist/chunk-UUE3OGXI.js +0 -84
  836. package/dist/chunk-UUNJ2E57.js +0 -391
  837. package/dist/chunk-UYQVWRAH.js +0 -199
  838. package/dist/chunk-UYWWUEL4.js +0 -126
  839. package/dist/chunk-V5HTJJVS.js +0 -93
  840. package/dist/chunk-V5Y74WII.js +0 -91
  841. package/dist/chunk-VAIOMRCN.js +0 -144
  842. package/dist/chunk-VB7YKA6B.js +0 -37
  843. package/dist/chunk-VGX636MB.js +0 -311
  844. package/dist/chunk-VGZLFQO2.js +0 -773
  845. package/dist/chunk-VM7XF2FB.js +0 -389
  846. package/dist/chunk-VPWKTIU5.js +0 -227
  847. package/dist/chunk-VXOLG6YB.js +0 -469
  848. package/dist/chunk-W2NAU5VB.js +0 -1628
  849. package/dist/chunk-W43S5UJT.js +0 -211
  850. package/dist/chunk-W5OHFSQJ.js +0 -5089
  851. package/dist/chunk-WGORKMR3.js +0 -353
  852. package/dist/chunk-WMIDELSJ.js +0 -391
  853. package/dist/chunk-WS5Y4FIR.js +0 -158
  854. package/dist/chunk-WZ74QHLE.js +0 -4863
  855. package/dist/chunk-WZ74QHLE.js.map +0 -1
  856. package/dist/chunk-XBE4YIIE.js +0 -296
  857. package/dist/chunk-XE4PHI74.js +0 -231
  858. package/dist/chunk-XHF2XNU5.js +0 -73
  859. package/dist/chunk-XHVWVXGQ.js +0 -207
  860. package/dist/chunk-XODQ2GPF.js +0 -3110
  861. package/dist/chunk-XQ5HTKX5.js +0 -1021
  862. package/dist/chunk-YAVW5OJ5.js +0 -131
  863. package/dist/chunk-YDQHFJM2.js +0 -83
  864. package/dist/chunk-YF2Y3AZ3.js +0 -196
  865. package/dist/chunk-YIDROGHS.js +0 -251
  866. package/dist/chunk-YIKPC2QP.js +0 -794
  867. package/dist/chunk-YQEOMDWF.js +0 -107
  868. package/dist/chunk-Z3VSTDON.js +0 -3176
  869. package/dist/chunk-ZB5YWWVH.js +0 -404
  870. package/dist/chunk-ZEQYHEWP.js +0 -406
  871. package/dist/chunk-ZRVUCTSI.js +0 -265
  872. package/dist/chunk-ZSI3ITRK.js +0 -449
  873. package/dist/computer-viewer-ZBY3BPYW.js +0 -21
  874. package/dist/connection-step-up-O7MGVS32.js +0 -145
  875. package/dist/connection-step-up-O7MGVS32.js.map +0 -1
  876. package/dist/embedded-new-voice-ZB5XLKLU.js +0 -25
  877. package/dist/embedded-voice-MZJISDCS.js +0 -25
  878. package/dist/fleet-decision-row-LG3SYVR3.js +0 -361
  879. package/dist/model-policy-picker-menu-5Y72PLNF.js +0 -23
  880. package/dist/payment-page-card-YPSXRHBA.js +0 -226
  881. package/dist/platform-activity-row-ZU4MEBNK.js +0 -156
  882. package/dist/queue-surface-implementation-6Q25RPH6.js +0 -932
  883. package/dist/recorder-host-JD4GWJ2Z.js +0 -80
  884. package/dist/sandbox-files-IJCQJFLH.js +0 -28
  885. package/dist/session-connect-cards-PQMGHXLJ.js +0 -27
  886. package/dist/session-realtime-IZOTTRH6.js +0 -30
  887. package/dist/timeline-annotation-markers-WWXNJOXI.js +0 -157
  888. package/dist/timeline-annotation-selection-ZKRIQFIQ.js +0 -208
  889. package/dist/timeline-annotations-dialog-4IMKTOXJ.js +0 -283
  890. /package/dist/{browser-viewer-EIEMRVFF.js.map → app/components/agents/agent-trigger-repositories.js.map} +0 -0
  891. /package/dist/{chat-interactive-block-FV37LWYZ.js.map → app/components/artifacts/ready-made-apps.js.map} +0 -0
  892. /package/dist/{computer-viewer-ZBY3BPYW.js.map → app/lib/ready-made-apps.js.map} +0 -0
  893. /package/dist/{embedded-new-voice-ZB5XLKLU.js.map → browser-viewer-5JGSKIXX.js.map} +0 -0
  894. /package/dist/{embedded-voice-MZJISDCS.js.map → chat-interactive-block-NEDFTOGE.js.map} +0 -0
  895. /package/dist/{chunk-62HIKJ5F.js.map → chunk-22SXRKET.js.map} +0 -0
  896. /package/dist/{chunk-7YLQCMZP.js.map → chunk-2JR7LEST.js.map} +0 -0
  897. /package/dist/{chunk-UHCFYX4I.js.map → chunk-2LBYEHBH.js.map} +0 -0
  898. /package/dist/{chunk-TWA5G277.js.map → chunk-2MHIIF4N.js.map} +0 -0
  899. /package/dist/{chunk-WMIDELSJ.js.map → chunk-2NABGWXC.js.map} +0 -0
  900. /package/dist/{chunk-VGZLFQO2.js.map → chunk-2VX42S4W.js.map} +0 -0
  901. /package/dist/{chunk-JCYP225Y.js.map → chunk-2X7I6LXY.js.map} +0 -0
  902. /package/dist/{chunk-IX4P4OGR.js.map → chunk-34LWIEIZ.js.map} +0 -0
  903. /package/dist/{chunk-SYA3WYG4.js.map → chunk-3F45ELUO.js.map} +0 -0
  904. /package/dist/{chunk-V5HTJJVS.js.map → chunk-3J6ENWZF.js.map} +0 -0
  905. /package/dist/{chunk-6YPTBBVB.js.map → chunk-3PTEMOSW.js.map} +0 -0
  906. /package/dist/{chunk-YDQHFJM2.js.map → chunk-3UA2SOK2.js.map} +0 -0
  907. /package/dist/{chunk-IGVQ2AI4.js.map → chunk-3YKED2ZV.js.map} +0 -0
  908. /package/dist/{chunk-7E6P6MF4.js.map → chunk-44MYJQ72.js.map} +0 -0
  909. /package/dist/{chunk-72ND4ALI.js.map → chunk-46UZ5ZYU.js.map} +0 -0
  910. /package/dist/{chunk-LCSVFHIN.js.map → chunk-4NXQWXQY.js.map} +0 -0
  911. /package/dist/{chunk-B6AH43UQ.js.map → chunk-4OGDD2EM.js.map} +0 -0
  912. /package/dist/{chunk-EDPH7AJH.js.map → chunk-4PSB2CK7.js.map} +0 -0
  913. /package/dist/{chunk-M3DOLBNU.js.map → chunk-4R74CAIF.js.map} +0 -0
  914. /package/dist/{chunk-GXI3OMSR.js.map → chunk-4RGFBD4M.js.map} +0 -0
  915. /package/dist/{chunk-VM7XF2FB.js.map → chunk-4SNYMZBC.js.map} +0 -0
  916. /package/dist/{chunk-YQEOMDWF.js.map → chunk-4UAHTM3Q.js.map} +0 -0
  917. /package/dist/{chunk-6DOIINY4.js.map → chunk-4YWHOAB4.js.map} +0 -0
  918. /package/dist/{chunk-FXFOKD7A.js.map → chunk-5AHIKB3O.js.map} +0 -0
  919. /package/dist/{chunk-UUE3OGXI.js.map → chunk-5AXIZJX4.js.map} +0 -0
  920. /package/dist/{chunk-WGORKMR3.js.map → chunk-5CEQ356Z.js.map} +0 -0
  921. /package/dist/{chunk-MVYQDBE6.js.map → chunk-5ERDSF2C.js.map} +0 -0
  922. /package/dist/{chunk-GNGI6XFN.js.map → chunk-5G6UHUJZ.js.map} +0 -0
  923. /package/dist/{chunk-7KP434J7.js.map → chunk-5H3SJHDT.js.map} +0 -0
  924. /package/dist/{chunk-NFLBLJUA.js.map → chunk-5ZTVBNMS.js.map} +0 -0
  925. /package/dist/{chunk-W43S5UJT.js.map → chunk-5ZUARMG2.js.map} +0 -0
  926. /package/dist/{chunk-EMWT6GOK.js.map → chunk-6AGNZI2W.js.map} +0 -0
  927. /package/dist/{chunk-GUC6IWEY.js.map → chunk-6IIJ4H4O.js.map} +0 -0
  928. /package/dist/{chunk-AB5SPXUR.js.map → chunk-6YCYPXDA.js.map} +0 -0
  929. /package/dist/{chunk-A7EBV2EB.js.map → chunk-6YTNMDFP.js.map} +0 -0
  930. /package/dist/{chunk-PCC3QUM6.js.map → chunk-6ZJU2B3Z.js.map} +0 -0
  931. /package/dist/{chunk-JPQFVR24.js.map → chunk-73O7NO3F.js.map} +0 -0
  932. /package/dist/{chunk-34UXLCRX.js.map → chunk-7456QZAA.js.map} +0 -0
  933. /package/dist/{chunk-DJWJMAUW.js.map → chunk-754NH7T2.js.map} +0 -0
  934. /package/dist/{chunk-JIC6RLUB.js.map → chunk-7GS2MGFU.js.map} +0 -0
  935. /package/dist/{chunk-5HV53SMN.js.map → chunk-7IR7EOTR.js.map} +0 -0
  936. /package/dist/{chunk-KDO6ZW4U.js.map → chunk-7MH4TTVE.js.map} +0 -0
  937. /package/dist/{chunk-63VNZRLY.js.map → chunk-7N35XBSC.js.map} +0 -0
  938. /package/dist/{chunk-3SBKYPNM.js.map → chunk-7ND2VMKV.js.map} +0 -0
  939. /package/dist/{chunk-DONBARLL.js.map → chunk-7RVJLO3N.js.map} +0 -0
  940. /package/dist/{chunk-CBYDQWJ3.js.map → chunk-7X443ZTQ.js.map} +0 -0
  941. /package/dist/{chunk-IGJR65GN.js.map → chunk-7XZO4W76.js.map} +0 -0
  942. /package/dist/{chunk-4AH4EEHE.js.map → chunk-AEH34OOU.js.map} +0 -0
  943. /package/dist/{chunk-5QXEEW4T.js.map → chunk-AML5X74C.js.map} +0 -0
  944. /package/dist/{chunk-TGCKZOSX.js.map → chunk-AVIOWKKJ.js.map} +0 -0
  945. /package/dist/{chunk-JPZVMXDP.js.map → chunk-AY4XH73V.js.map} +0 -0
  946. /package/dist/{chunk-5OVRMKP5.js.map → chunk-BGT43KDL.js.map} +0 -0
  947. /package/dist/{chunk-GZZCVF76.js.map → chunk-BHS4KW4W.js.map} +0 -0
  948. /package/dist/{chunk-TSY6YZL2.js.map → chunk-BKJXUACP.js.map} +0 -0
  949. /package/dist/{chunk-F7QEO7M2.js.map → chunk-BNWO72C2.js.map} +0 -0
  950. /package/dist/{chunk-TSW2LQY3.js.map → chunk-BT5EOSQF.js.map} +0 -0
  951. /package/dist/{chunk-GSW4YHZE.js.map → chunk-BVFOLLMQ.js.map} +0 -0
  952. /package/dist/{chunk-5SOL4INY.js.map → chunk-CC2IVNVR.js.map} +0 -0
  953. /package/dist/{chunk-CHSBOFAS.js.map → chunk-CGVMECYX.js.map} +0 -0
  954. /package/dist/{chunk-NUEFORM6.js.map → chunk-CLERWAEA.js.map} +0 -0
  955. /package/dist/{chunk-2COBAJC7.js.map → chunk-COCLT77F.js.map} +0 -0
  956. /package/dist/{chunk-4MF2HU3S.js.map → chunk-COIXX62I.js.map} +0 -0
  957. /package/dist/{chunk-RPHXJHNX.js.map → chunk-DHVA3T3K.js.map} +0 -0
  958. /package/dist/{chunk-5FZBRRFV.js.map → chunk-DKM3JBGJ.js.map} +0 -0
  959. /package/dist/{chunk-RDZQFZOQ.js.map → chunk-DNRVXHUW.js.map} +0 -0
  960. /package/dist/{chunk-WS5Y4FIR.js.map → chunk-DP4MGOBG.js.map} +0 -0
  961. /package/dist/{chunk-4D3YJNVN.js.map → chunk-DRVT6TRP.js.map} +0 -0
  962. /package/dist/{chunk-OKD2LBMK.js.map → chunk-DV3OECO6.js.map} +0 -0
  963. /package/dist/{chunk-LPEFULJY.js.map → chunk-DYQRNIID.js.map} +0 -0
  964. /package/dist/{chunk-SERECSAR.js.map → chunk-E45JRR3J.js.map} +0 -0
  965. /package/dist/{chunk-VXOLG6YB.js.map → chunk-E5EICKKB.js.map} +0 -0
  966. /package/dist/{chunk-QJMX27TG.js.map → chunk-E7FNLQXM.js.map} +0 -0
  967. /package/dist/{chunk-2HS3IUXE.js.map → chunk-EFBPHDPP.js.map} +0 -0
  968. /package/dist/{chunk-CPX6BHER.js.map → chunk-EJ6IIEZX.js.map} +0 -0
  969. /package/dist/{chunk-BSHNNTJO.js.map → chunk-ENYULVQW.js.map} +0 -0
  970. /package/dist/{chunk-TZZ2S4XI.js.map → chunk-EXBIL5BF.js.map} +0 -0
  971. /package/dist/{chunk-S3OTJAAC.js.map → chunk-F23TR625.js.map} +0 -0
  972. /package/dist/{chunk-TW2RHTLH.js.map → chunk-F45CPW3Y.js.map} +0 -0
  973. /package/dist/{chunk-OXYAKUFU.js.map → chunk-F5C5T2PF.js.map} +0 -0
  974. /package/dist/{chunk-D3YJAQGK.js.map → chunk-F5C7DTVR.js.map} +0 -0
  975. /package/dist/{chunk-KJ72GMZ2.js.map → chunk-F6D6X5ZU.js.map} +0 -0
  976. /package/dist/{chunk-46LZO4ZO.js.map → chunk-F6LVPEBK.js.map} +0 -0
  977. /package/dist/{chunk-T4MHBXAU.js.map → chunk-FARCOS2S.js.map} +0 -0
  978. /package/dist/{chunk-7S2S4MXR.js.map → chunk-FEQVCQMK.js.map} +0 -0
  979. /package/dist/{chunk-OZXEVHCS.js.map → chunk-FGHWU4LX.js.map} +0 -0
  980. /package/dist/{chunk-7AAUHFMA.js.map → chunk-FHNBUDXL.js.map} +0 -0
  981. /package/dist/{chunk-OYMSMU5O.js.map → chunk-FLDF2Z44.js.map} +0 -0
  982. /package/dist/{chunk-CIRCUDKF.js.map → chunk-FT3AUAXE.js.map} +0 -0
  983. /package/dist/{chunk-GM4UHGW6.js.map → chunk-FWIV2FTX.js.map} +0 -0
  984. /package/dist/{chunk-A5GX3CAE.js.map → chunk-GGIPEZLL.js.map} +0 -0
  985. /package/dist/{chunk-JVPF34MX.js.map → chunk-GGPZPBHS.js.map} +0 -0
  986. /package/dist/{chunk-JHSZSLVU.js.map → chunk-GHXIVKQH.js.map} +0 -0
  987. /package/dist/{chunk-IM3WA5AL.js.map → chunk-GIEGIEMT.js.map} +0 -0
  988. /package/dist/{chunk-K4JPMGB4.js.map → chunk-GLBILBET.js.map} +0 -0
  989. /package/dist/{chunk-2XGRHMRI.js.map → chunk-GMMB4NCN.js.map} +0 -0
  990. /package/dist/{chunk-34MODHMH.js.map → chunk-GP7MYBSX.js.map} +0 -0
  991. /package/dist/{chunk-ZB5YWWVH.js.map → chunk-GYHL6IRO.js.map} +0 -0
  992. /package/dist/{chunk-UYWWUEL4.js.map → chunk-HGS5JWZR.js.map} +0 -0
  993. /package/dist/{chunk-2IPAGZEO.js.map → chunk-HRFAQYOA.js.map} +0 -0
  994. /package/dist/{chunk-GIHE7U3Y.js.map → chunk-HUKGLWAY.js.map} +0 -0
  995. /package/dist/{chunk-SYYFA7W7.js.map → chunk-HUTQJY3F.js.map} +0 -0
  996. /package/dist/{chunk-62T2ZPD5.js.map → chunk-HWOYJOKK.js.map} +0 -0
  997. /package/dist/{chunk-YIDROGHS.js.map → chunk-HYFNKXHR.js.map} +0 -0
  998. /package/dist/{chunk-FTZDP3CA.js.map → chunk-HYNTTDG6.js.map} +0 -0
  999. /package/dist/{chunk-5L66ERTV.js.map → chunk-HZ5DTSAG.js.map} +0 -0
  1000. /package/dist/{chunk-XODQ2GPF.js.map → chunk-I2WTJMQF.js.map} +0 -0
  1001. /package/dist/{chunk-GMGAW3T6.js.map → chunk-IBHUF5BN.js.map} +0 -0
  1002. /package/dist/{chunk-KED67KAF.js.map → chunk-IH3J7VWW.js.map} +0 -0
  1003. /package/dist/{chunk-7SYCHMXS.js.map → chunk-IHX5BADQ.js.map} +0 -0
  1004. /package/dist/{chunk-V5Y74WII.js.map → chunk-IL6PCX7K.js.map} +0 -0
  1005. /package/dist/{chunk-UYQVWRAH.js.map → chunk-IOMZDY5D.js.map} +0 -0
  1006. /package/dist/{chunk-S44LU4CK.js.map → chunk-IPFSFSIK.js.map} +0 -0
  1007. /package/dist/{chunk-UHTURYJO.js.map → chunk-ISR6KXWT.js.map} +0 -0
  1008. /package/dist/{chunk-AWK23Q32.js.map → chunk-J2GIGAVJ.js.map} +0 -0
  1009. /package/dist/{chunk-QNOWKKZ4.js.map → chunk-J4OOKDRV.js.map} +0 -0
  1010. /package/dist/{chunk-KWGRRIUE.js.map → chunk-J5D5OCQF.js.map} +0 -0
  1011. /package/dist/{chunk-YF2Y3AZ3.js.map → chunk-JTSLGUVP.js.map} +0 -0
  1012. /package/dist/{chunk-C7TVMFHV.js.map → chunk-JXIBVYRA.js.map} +0 -0
  1013. /package/dist/{chunk-6YU3WV2P.js.map → chunk-JY2UEPJP.js.map} +0 -0
  1014. /package/dist/{chunk-5EJBPQI2.js.map → chunk-KI2TGJVH.js.map} +0 -0
  1015. /package/dist/{chunk-4KASGJTF.js.map → chunk-KPTKQULD.js.map} +0 -0
  1016. /package/dist/{chunk-MFLU3466.js.map → chunk-KYDLVMKA.js.map} +0 -0
  1017. /package/dist/{chunk-CVC4RO7D.js.map → chunk-KZQDP2JM.js.map} +0 -0
  1018. /package/dist/{chunk-K7IWU2T2.js.map → chunk-L2Q4HMVJ.js.map} +0 -0
  1019. /package/dist/{chunk-EO22NST7.js.map → chunk-LCRYAD3X.js.map} +0 -0
  1020. /package/dist/{chunk-PPQJIVGM.js.map → chunk-LFQI2C46.js.map} +0 -0
  1021. /package/dist/{chunk-MHFCYU4K.js.map → chunk-M4ZYHLFU.js.map} +0 -0
  1022. /package/dist/{chunk-MO3XJQN2.js.map → chunk-M5FX5KH5.js.map} +0 -0
  1023. /package/dist/{chunk-RVC3M66H.js.map → chunk-MAR5UYX4.js.map} +0 -0
  1024. /package/dist/{chunk-LVKTKORH.js.map → chunk-MATYGLUT.js.map} +0 -0
  1025. /package/dist/{chunk-ZSI3ITRK.js.map → chunk-MCXTYDFG.js.map} +0 -0
  1026. /package/dist/{chunk-5Y34P32B.js.map → chunk-MDI6SH7B.js.map} +0 -0
  1027. /package/dist/{chunk-F7JU2TYH.js.map → chunk-MIMSPOV4.js.map} +0 -0
  1028. /package/dist/{chunk-LRMGPO7E.js.map → chunk-MM4NP5QA.js.map} +0 -0
  1029. /package/dist/{chunk-JB3TSUZO.js.map → chunk-MQTYIBY6.js.map} +0 -0
  1030. /package/dist/{chunk-MIUMNTIJ.js.map → chunk-MSHWYGCH.js.map} +0 -0
  1031. /package/dist/{chunk-YIKPC2QP.js.map → chunk-MSIQ42IY.js.map} +0 -0
  1032. /package/dist/{chunk-7G627O3U.js.map → chunk-MXRCKJOQ.js.map} +0 -0
  1033. /package/dist/{chunk-XBE4YIIE.js.map → chunk-MXSZQ6DP.js.map} +0 -0
  1034. /package/dist/{chunk-AW5ZO2TH.js.map → chunk-N37BLJOI.js.map} +0 -0
  1035. /package/dist/{chunk-ZEQYHEWP.js.map → chunk-N556VQMT.js.map} +0 -0
  1036. /package/dist/{chunk-XQ5HTKX5.js.map → chunk-NL7VJGFZ.js.map} +0 -0
  1037. /package/dist/{chunk-HKNMNL7B.js.map → chunk-NLJEDAKV.js.map} +0 -0
  1038. /package/dist/{chunk-KU77XHWB.js.map → chunk-NUZNJSL5.js.map} +0 -0
  1039. /package/dist/{chunk-NZOFNQNC.js.map → chunk-O3LOQDTI.js.map} +0 -0
  1040. /package/dist/{chunk-3HAEQMR4.js.map → chunk-O4ZXJ52Z.js.map} +0 -0
  1041. /package/dist/{chunk-H4VMHFOX.js.map → chunk-O5PZRVQR.js.map} +0 -0
  1042. /package/dist/{chunk-DTLXQ3ZU.js.map → chunk-OEOLXODE.js.map} +0 -0
  1043. /package/dist/{chunk-LR3LJ35V.js.map → chunk-OZGECHF5.js.map} +0 -0
  1044. /package/dist/{chunk-6XYFMHNT.js.map → chunk-P4N7ZS6W.js.map} +0 -0
  1045. /package/dist/{chunk-5G4IGG7F.js.map → chunk-P6LSLNSL.js.map} +0 -0
  1046. /package/dist/{chunk-C6OM2SRG.js.map → chunk-PC2JAIAH.js.map} +0 -0
  1047. /package/dist/{chunk-KTGKGHEA.js.map → chunk-PCSRHFRF.js.map} +0 -0
  1048. /package/dist/{chunk-54ZV4SUS.js.map → chunk-PEAJRZU3.js.map} +0 -0
  1049. /package/dist/{chunk-QA5UNVHD.js.map → chunk-PGMXITPB.js.map} +0 -0
  1050. /package/dist/{chunk-KXBLLFOO.js.map → chunk-PJ42LTJE.js.map} +0 -0
  1051. /package/dist/{chunk-GP7BMUWR.js.map → chunk-PJ66EIWE.js.map} +0 -0
  1052. /package/dist/{chunk-VGX636MB.js.map → chunk-PKH6MYAK.js.map} +0 -0
  1053. /package/dist/{chunk-6CDBX3XG.js.map → chunk-PMBZMVKE.js.map} +0 -0
  1054. /package/dist/{chunk-HFROJDFQ.js.map → chunk-PTSRBKQC.js.map} +0 -0
  1055. /package/dist/{chunk-FKM2FLIG.js.map → chunk-QD4J7AHU.js.map} +0 -0
  1056. /package/dist/{chunk-KLUUDFTY.js.map → chunk-QD6A4G7Y.js.map} +0 -0
  1057. /package/dist/{chunk-ZRVUCTSI.js.map → chunk-QEXHABRN.js.map} +0 -0
  1058. /package/dist/{chunk-DWBSK6LI.js.map → chunk-QHYLEJP7.js.map} +0 -0
  1059. /package/dist/{chunk-FJFGDLXB.js.map → chunk-QL4Q332Z.js.map} +0 -0
  1060. /package/dist/{chunk-5SGTRULO.js.map → chunk-QL5227KT.js.map} +0 -0
  1061. /package/dist/{chunk-R7CXWJAV.js.map → chunk-QMRHY45R.js.map} +0 -0
  1062. /package/dist/{chunk-E26LQV6X.js.map → chunk-QPA7ATJH.js.map} +0 -0
  1063. /package/dist/{chunk-VPWKTIU5.js.map → chunk-QXPKUKOV.js.map} +0 -0
  1064. /package/dist/{chunk-QVOTPOXK.js.map → chunk-R2T4IUNB.js.map} +0 -0
  1065. /package/dist/{chunk-6D3D2JWY.js.map → chunk-R6CFPY3F.js.map} +0 -0
  1066. /package/dist/{chunk-YAVW5OJ5.js.map → chunk-R6OBJ7LF.js.map} +0 -0
  1067. /package/dist/{chunk-XHF2XNU5.js.map → chunk-R6WQLIFX.js.map} +0 -0
  1068. /package/dist/{chunk-NBUAHLMO.js.map → chunk-RA3NTKSW.js.map} +0 -0
  1069. /package/dist/{chunk-PGRKTQIW.js.map → chunk-RJWTAS4V.js.map} +0 -0
  1070. /package/dist/{chunk-UUNJ2E57.js.map → chunk-RJZALNT5.js.map} +0 -0
  1071. /package/dist/{chunk-GJ4GTYOD.js.map → chunk-RMDLTRLI.js.map} +0 -0
  1072. /package/dist/{chunk-MQRHTOQ2.js.map → chunk-RVPH6BB7.js.map} +0 -0
  1073. /package/dist/{chunk-B45TB4HY.js.map → chunk-RVXLSVJH.js.map} +0 -0
  1074. /package/dist/{chunk-7UDLRDHK.js.map → chunk-RWHDMGFG.js.map} +0 -0
  1075. /package/dist/{chunk-FLLJ2WXW.js.map → chunk-RYB3WBMZ.js.map} +0 -0
  1076. /package/dist/{chunk-4EGWXBBZ.js.map → chunk-S2525GSA.js.map} +0 -0
  1077. /package/dist/{chunk-Q2QDZBNN.js.map → chunk-S3BLYPOG.js.map} +0 -0
  1078. /package/dist/{chunk-I5FSUZVW.js.map → chunk-S7J4HBPP.js.map} +0 -0
  1079. /package/dist/{chunk-UFJDETKG.js.map → chunk-SA3XI7FB.js.map} +0 -0
  1080. /package/dist/{chunk-IXGZLCUP.js.map → chunk-SN2QZSJU.js.map} +0 -0
  1081. /package/dist/{chunk-SRDHDIRQ.js.map → chunk-SNACGK3Z.js.map} +0 -0
  1082. /package/dist/{chunk-FPN4I4CG.js.map → chunk-SUXGKBCW.js.map} +0 -0
  1083. /package/dist/{chunk-TFSCGFYV.js.map → chunk-SWTPVMR4.js.map} +0 -0
  1084. /package/dist/{chunk-OMKCSTF6.js.map → chunk-SXXWPTL7.js.map} +0 -0
  1085. /package/dist/{chunk-VB7YKA6B.js.map → chunk-T2N6JC5H.js.map} +0 -0
  1086. /package/dist/{chunk-GBGCMHBB.js.map → chunk-TBUOHK6R.js.map} +0 -0
  1087. /package/dist/{chunk-W2NAU5VB.js.map → chunk-TCUAGCAX.js.map} +0 -0
  1088. /package/dist/{chunk-RWCEUUEL.js.map → chunk-TGAKM3WX.js.map} +0 -0
  1089. /package/dist/{chunk-MCPKUVMQ.js.map → chunk-TGG3ODCS.js.map} +0 -0
  1090. /package/dist/{chunk-BJUOKUE5.js.map → chunk-TMZ6RP3K.js.map} +0 -0
  1091. /package/dist/{chunk-IE6SSKKF.js.map → chunk-TNE7ZYGN.js.map} +0 -0
  1092. /package/dist/{chunk-ES5HKVQF.js.map → chunk-TWSO5S3E.js.map} +0 -0
  1093. /package/dist/{chunk-BIUJHNVR.js.map → chunk-U2TOOZIY.js.map} +0 -0
  1094. /package/dist/{chunk-4CJD7TMQ.js.map → chunk-UBM3IM6K.js.map} +0 -0
  1095. /package/dist/{chunk-W5OHFSQJ.js.map → chunk-UBR3CGJC.js.map} +0 -0
  1096. /package/dist/{chunk-PYMQM65Y.js.map → chunk-UFRXYZCJ.js.map} +0 -0
  1097. /package/dist/{chunk-NEIBSGZP.js.map → chunk-UJNDUO7D.js.map} +0 -0
  1098. /package/dist/{chunk-46ZC5VNC.js.map → chunk-UPRN4FBY.js.map} +0 -0
  1099. /package/dist/{chunk-QYZ5RVGM.js.map → chunk-UXGTI4HR.js.map} +0 -0
  1100. /package/dist/{chunk-JNJIZCTN.js.map → chunk-UZKAHEQO.js.map} +0 -0
  1101. /package/dist/{chunk-2JRHAEIT.js.map → chunk-V6ZJKHVS.js.map} +0 -0
  1102. /package/dist/{chunk-Z3VSTDON.js.map → chunk-VHYDZMGS.js.map} +0 -0
  1103. /package/dist/{chunk-R7CVDKRN.js.map → chunk-VIKXHP44.js.map} +0 -0
  1104. /package/dist/{chunk-L6WVCO6D.js.map → chunk-VLDKWGHD.js.map} +0 -0
  1105. /package/dist/{chunk-UPCZ7XB4.js.map → chunk-VRS6VNHP.js.map} +0 -0
  1106. /package/dist/{chunk-ER5MYLIE.js.map → chunk-VT5XHR5J.js.map} +0 -0
  1107. /package/dist/{chunk-6DQBUKGJ.js.map → chunk-W7RKXZDV.js.map} +0 -0
  1108. /package/dist/{chunk-3Z7VA6ET.js.map → chunk-WBNSC6RJ.js.map} +0 -0
  1109. /package/dist/{chunk-7HHC5AAI.js.map → chunk-WEPL76AR.js.map} +0 -0
  1110. /package/dist/{chunk-7WJZWMZ4.js.map → chunk-WJ2STMQD.js.map} +0 -0
  1111. /package/dist/{chunk-4RUKLIOF.js.map → chunk-WSQ3TCOX.js.map} +0 -0
  1112. /package/dist/{chunk-VAIOMRCN.js.map → chunk-WT37FEG3.js.map} +0 -0
  1113. /package/dist/{chunk-67LBFBI3.js.map → chunk-WUKLEDKK.js.map} +0 -0
  1114. /package/dist/{chunk-IIXNEOK4.js.map → chunk-X3T3N6W5.js.map} +0 -0
  1115. /package/dist/{chunk-PJLHXFDD.js.map → chunk-XKJCFK2G.js.map} +0 -0
  1116. /package/dist/{chunk-72EOXOR7.js.map → chunk-XKLXYIIT.js.map} +0 -0
  1117. /package/dist/{chunk-E7RH5F6S.js.map → chunk-XMTBNLD2.js.map} +0 -0
  1118. /package/dist/{chunk-F6QP4GSK.js.map → chunk-XZLNVFB4.js.map} +0 -0
  1119. /package/dist/{chunk-GWAY3SO5.js.map → chunk-XZRMTHHW.js.map} +0 -0
  1120. /package/dist/{chunk-DNAXAS5R.js.map → chunk-Y3ME7IF6.js.map} +0 -0
  1121. /package/dist/{chunk-GO5VIAA7.js.map → chunk-Y6CNWBV3.js.map} +0 -0
  1122. /package/dist/{chunk-A67EXXQG.js.map → chunk-YJYKB6ZT.js.map} +0 -0
  1123. /package/dist/{chunk-HHFFPE67.js.map → chunk-YP4SNX4P.js.map} +0 -0
  1124. /package/dist/{chunk-JNV5ZPUV.js.map → chunk-YR7U2KDA.js.map} +0 -0
  1125. /package/dist/{chunk-XE4PHI74.js.map → chunk-YS6BQNHF.js.map} +0 -0
  1126. /package/dist/{chunk-EILSPMVD.js.map → chunk-Z7UBLC6V.js.map} +0 -0
  1127. /package/dist/{chunk-MIUJ3EH5.js.map → chunk-ZD67RM6G.js.map} +0 -0
  1128. /package/dist/{chunk-XHVWVXGQ.js.map → chunk-ZGBMDDFR.js.map} +0 -0
  1129. /package/dist/{chunk-GLSDWNFV.js.map → chunk-ZGR7LNXC.js.map} +0 -0
  1130. /package/dist/{chunk-BA4WZGDW.js.map → chunk-ZJICGGPI.js.map} +0 -0
  1131. /package/dist/{chunk-TMDL3CUH.js.map → chunk-ZLKHNJCQ.js.map} +0 -0
  1132. /package/dist/{chunk-QMQF5U2D.js.map → chunk-ZNA65Q6Y.js.map} +0 -0
  1133. /package/dist/{model-policy-picker-menu-5Y72PLNF.js.map → computer-viewer-FHCBTSZH.js.map} +0 -0
  1134. /package/dist/{sandbox-files-IJCQJFLH.js.map → embedded-new-voice-BFTQZPJK.js.map} +0 -0
  1135. /package/dist/{session-connect-cards-PQMGHXLJ.js.map → embedded-voice-CQE2GO6Y.js.map} +0 -0
  1136. /package/dist/{fleet-decision-row-LG3SYVR3.js.map → fleet-decision-row-FJPAWNOQ.js.map} +0 -0
  1137. /package/dist/{session-realtime-IZOTTRH6.js.map → model-policy-picker-menu-PVBT2OZO.js.map} +0 -0
  1138. /package/dist/{payment-page-card-YPSXRHBA.js.map → payment-page-card-YPCRVFHE.js.map} +0 -0
  1139. /package/dist/{platform-activity-row-ZU4MEBNK.js.map → platform-activity-row-ZWACJPNQ.js.map} +0 -0
  1140. /package/dist/{queue-surface-implementation-6Q25RPH6.js.map → queue-surface-implementation-C7ESPZW7.js.map} +0 -0
  1141. /package/dist/{recorder-host-JD4GWJ2Z.js.map → recorder-host-YPWPLMS6.js.map} +0 -0
  1142. /package/dist/{timeline-annotation-markers-WWXNJOXI.js.map → timeline-annotation-markers-7QSYK22C.js.map} +0 -0
  1143. /package/dist/{timeline-annotation-selection-ZKRIQFIQ.js.map → timeline-annotation-selection-XYNMESWL.js.map} +0 -0
  1144. /package/dist/{timeline-annotations-dialog-4IMKTOXJ.js.map → timeline-annotations-dialog-WSI6L2CP.js.map} +0 -0
@@ -1,1870 +0,0 @@
1
- "use client";
2
- import {
3
- ConnectionLogo
4
- } from "./chunk-K7IWU2T2.js";
5
- import {
6
- ConnectSetup
7
- } from "./chunk-LCSVFHIN.js";
8
- import {
9
- McpConnectionCard,
10
- capabilityLogoFallback
11
- } from "./chunk-UPCZ7XB4.js";
12
- import {
13
- adminApprovalLink,
14
- mcpConnectionDiscoveryState,
15
- useConnect
16
- } from "./chunk-IGJR65GN.js";
17
- import {
18
- useNobodyToShareWith
19
- } from "./chunk-RNC6B4BN.js";
20
- import {
21
- accountServiceCapability,
22
- capabilityConnectProviderId,
23
- connectionServicePresentation,
24
- connectionServiceWording,
25
- isServiceConnectProvider
26
- } from "./chunk-IXEPMZUJ.js";
27
- import {
28
- copyTextToClipboard
29
- } from "./chunk-PEHTX3V7.js";
30
- import {
31
- useOpenGeniText
32
- } from "./chunk-KVPQUADA.js";
33
-
34
- // src/capability-catalog-row.tsx
35
- import { AlertTriangleIcon, CheckIcon, Loader2Icon, PlusIcon } from "lucide-react";
36
- import { jsx, jsxs } from "react/jsx-runtime";
37
- var labels = (t) => ({
38
- available: t("capabilityCatalogRow.availableToAdd"),
39
- added: t("capabilityCatalogRow.added"),
40
- attention: t("capabilityCatalogRow.needsAttention"),
41
- unavailable: t("capabilityCatalogRow.unavailable"),
42
- loading: t("capabilityCatalogRow.working")
43
- });
44
- function CapabilityCatalogIndicator({
45
- status = "available",
46
- label,
47
- showLabel = false
48
- }) {
49
- const t = useOpenGeniText();
50
- const Icon = status === "added" ? CheckIcon : status === "attention" || status === "unavailable" ? AlertTriangleIcon : status === "loading" ? Loader2Icon : PlusIcon;
51
- return /* @__PURE__ */ jsxs("span", { className: "og-capability-catalog-indicator", "data-status": status, children: [
52
- /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" }),
53
- /* @__PURE__ */ jsx(
54
- "span",
55
- {
56
- className: showLabel || status === "attention" || status === "unavailable" ? "og-capability-catalog-notice" : "og-capability-catalog-sr-only",
57
- children: label ?? labels(t)[status]
58
- }
59
- )
60
- ] });
61
- }
62
- function CapabilityCatalogRow({
63
- name,
64
- description,
65
- icon,
66
- status = "available",
67
- statusLabel,
68
- showStatusLabel = false,
69
- statusLine,
70
- onOpen,
71
- className = "",
72
- ...props
73
- }) {
74
- const quiet = statusLine !== void 0 && (status === "added" || status === "available");
75
- return /* @__PURE__ */ jsxs(
76
- "button",
77
- {
78
- ...props,
79
- type: "button",
80
- className: `og-capability-catalog-row ${className}`,
81
- "data-row-status": status,
82
- ...quiet ? { "data-status": status } : {},
83
- onClick: onOpen,
84
- children: [
85
- icon ? /* @__PURE__ */ jsx("span", { className: "og-capability-catalog-icon", children: icon }) : null,
86
- /* @__PURE__ */ jsxs("span", { className: "og-capability-catalog-copy", children: [
87
- /* @__PURE__ */ jsx("strong", { children: name }),
88
- statusLine !== void 0 ? /* @__PURE__ */ jsx("span", { className: "og-capability-catalog-status-line", children: statusLine }) : description ? /* @__PURE__ */ jsx("span", { children: description }) : null
89
- ] }),
90
- quiet ? null : /* @__PURE__ */ jsx(
91
- CapabilityCatalogIndicator,
92
- {
93
- status,
94
- label: statusLabel,
95
- showLabel: showStatusLabel && statusLine === void 0
96
- }
97
- )
98
- ]
99
- }
100
- );
101
- }
102
-
103
- // src/skill-discovery.tsx
104
- import { useEffect, useState } from "react";
105
-
106
- // src/discovery-cache.ts
107
- function createDiscoveryCache(ttlMs = 6e4, capacity = 64) {
108
- const clients = /* @__PURE__ */ new WeakMap();
109
- return {
110
- peek(client, key) {
111
- const entry = clients.get(client)?.get(key);
112
- return entry && entry.expires > Date.now() ? entry.value : void 0;
113
- },
114
- read(client, key, fetch) {
115
- let entries = clients.get(client);
116
- if (!entries) {
117
- entries = /* @__PURE__ */ new Map();
118
- clients.set(client, entries);
119
- }
120
- const existing = entries.get(key);
121
- if (existing && existing.expires > Date.now()) return existing.pending;
122
- entries.delete(key);
123
- while (entries.size >= capacity) entries.delete(entries.keys().next().value);
124
- const entry = {
125
- expires: Date.now() + ttlMs,
126
- value: void 0,
127
- pending: Promise.resolve().then(fetch)
128
- };
129
- entries.set(key, entry);
130
- entry.pending = entry.pending.then(
131
- (value) => {
132
- entry.value = value;
133
- entry.expires = Date.now() + ttlMs;
134
- return value;
135
- },
136
- (error) => {
137
- if (entries.get(key) === entry) entries.delete(key);
138
- throw error;
139
- }
140
- );
141
- return entry.pending;
142
- }
143
- };
144
- }
145
-
146
- // src/skill-discovery.tsx
147
- import { BookOpenIcon } from "lucide-react";
148
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
149
- var discoveryCache = createDiscoveryCache();
150
- function SkillDiscovery(props) {
151
- const t = useOpenGeniText();
152
- const query = props.query.trim();
153
- const discoveryQuery = query || "agent";
154
- return /* @__PURE__ */ jsxs2("section", { className: "og-skill-discovery", "aria-label": t("skillDiscovery.discoverSkills"), children: [
155
- /* @__PURE__ */ jsxs2("header", { children: [
156
- /* @__PURE__ */ jsx2("h3", { children: props.resultLimit ? t("skillDiscovery.skills") : query ? t("skillDiscovery.searchSkills") : t("skillDiscovery.browseSkills") }),
157
- !props.resultLimit ? /* @__PURE__ */ jsx2(
158
- "a",
159
- {
160
- href: "https://skills.sh/",
161
- target: "_blank",
162
- rel: "noopener noreferrer",
163
- className: "og-skill-discovery-browse",
164
- children: t("skillDiscovery.browseSkillsSh")
165
- }
166
- ) : null
167
- ] }),
168
- !query ? /* @__PURE__ */ jsx2("p", { children: t("skillDiscovery.popularOnSkillsSh") }) : query.length < 2 ? /* @__PURE__ */ jsx2("p", { children: t("skillDiscovery.enterAtLeastTwoCharacters") }) : null,
169
- /* @__PURE__ */ jsx2(
170
- DiscoveryResults,
171
- {
172
- ...props,
173
- query: discoveryQuery
174
- },
175
- `${props.workspaceId}:${discoveryQuery}`
176
- )
177
- ] });
178
- }
179
- var keepText = (value) => value;
180
- var DEFAULT_ICON = /* @__PURE__ */ jsx2(BookOpenIcon, { "aria-hidden": "true" });
181
- var EMPTY_LOCAL_SKILLS = [];
182
- var EMPTY_INSTALLED_SKILLS = [];
183
- function DiscoveryResults({
184
- client,
185
- workspaceId,
186
- query,
187
- canManage,
188
- onImport,
189
- resultLimit,
190
- onShowMore,
191
- localSkills = EMPTY_LOCAL_SKILLS,
192
- installedSkills = EMPTY_INSTALLED_SKILLS,
193
- formatName = keepText,
194
- formatSource = keepText,
195
- icon = DEFAULT_ICON
196
- }) {
197
- const t = useOpenGeniText();
198
- const cacheKey = JSON.stringify([workspaceId, query]);
199
- const cached = discoveryCache.peek(client, cacheKey);
200
- const [result, setResult] = useState(cached ?? null);
201
- const [loading, setLoading] = useState(query.length >= 2 && !cached);
202
- const [error, setError] = useState(false);
203
- const [retry, setRetry] = useState(0);
204
- useEffect(() => {
205
- let active = true;
206
- setError(false);
207
- if (query.length < 2) return;
208
- const existing = discoveryCache.peek(client, cacheKey);
209
- setLoading(!existing);
210
- let timer;
211
- const search = async (attempt) => {
212
- try {
213
- const data = await discoveryCache.read(
214
- client,
215
- cacheKey,
216
- () => client.searchPublicSkills(workspaceId, query)
217
- );
218
- if (!active) return;
219
- setResult(data);
220
- setLoading(false);
221
- } catch (cause) {
222
- if (!active) return;
223
- const status = typeof cause === "object" && cause !== null && "status" in cause ? cause.status : void 0;
224
- const transient = cause instanceof TypeError || typeof status === "number" && status >= 500 && status <= 599;
225
- if (attempt === 0 && transient) {
226
- timer = setTimeout(() => void search(1), 750);
227
- return;
228
- }
229
- setError(true);
230
- setLoading(false);
231
- }
232
- };
233
- timer = setTimeout(() => void search(0), existing ? 0 : 300);
234
- return () => {
235
- active = false;
236
- clearTimeout(timer);
237
- };
238
- }, [client, workspaceId, query, cacheKey, retry]);
239
- const remoteSkills = result?.items.filter(
240
- (skill) => !localSkills.some((local) => local.name.toLowerCase() === skill.name.toLowerCase())
241
- ) ?? [];
242
- return /* @__PURE__ */ jsxs2("div", { "aria-busy": loading, children: [
243
- /* @__PURE__ */ jsxs2("div", { className: "og-skill-discovery-grid", children: [
244
- localSkills.slice(0, resultLimit).map((skill) => /* @__PURE__ */ jsx2(
245
- CapabilityCatalogRow,
246
- {
247
- name: skill.name,
248
- description: skill.description,
249
- icon,
250
- status: skill.status ?? "added",
251
- statusLabel: skill.statusLabel,
252
- onOpen: skill.onOpen
253
- },
254
- skill.id
255
- )),
256
- remoteSkills.slice(
257
- 0,
258
- resultLimit === void 0 ? void 0 : Math.max(0, resultLimit - localSkills.length)
259
- ).map((skill) => {
260
- const installed = installedSkills.some(
261
- (entry) => entry.sourceUrl.replace(/\/$/, "").toLowerCase() === skill.url.toLowerCase() || entry.repositoryUrl.replace(/\/$/, "").toLowerCase() === `https://github.com/${skill.source}`.toLowerCase() && entry.name.toLowerCase() === skill.name.toLowerCase()
262
- );
263
- return /* @__PURE__ */ jsx2(
264
- CapabilityCatalogRow,
265
- {
266
- disabled: !canManage,
267
- name: formatName(skill.name),
268
- description: formatSource(skill.source),
269
- icon,
270
- status: !canManage ? "unavailable" : installed ? "added" : "available",
271
- statusLabel: !canManage ? t("skillDiscovery.adminRequired") : installed ? t("skillDiscovery.installed") : t("skillDiscovery.availableToAdd"),
272
- onOpen: () => onImport(skill.url)
273
- },
274
- skill.id
275
- );
276
- })
277
- ] }),
278
- resultLimit && remoteSkills.length + localSkills.length > resultLimit && !loading ? /* @__PURE__ */ jsx2("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("skillDiscovery.viewAllSkills") }) : null,
279
- loading ? /* @__PURE__ */ jsx2("p", { role: "status", children: t("skillDiscovery.loadingSkills") }) : null,
280
- error ? /* @__PURE__ */ jsxs2("div", { role: "alert", className: "og-skill-discovery-error", children: [
281
- t("skillDiscovery.couldNotLoadSkills"),
282
- /* @__PURE__ */ jsx2("button", { type: "button", onClick: () => setRetry((value) => value + 1), children: t("skillDiscovery.retry") })
283
- ] }) : null,
284
- result && !remoteSkills.length && !localSkills.length && !loading && !error ? /* @__PURE__ */ jsx2("p", { role: "status", children: t("skillDiscovery.noMatchesForQuery", { query }) }) : null
285
- ] });
286
- }
287
-
288
- // src/connection-catalog.tsx
289
- import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
290
- function connectionOptionNeedsAttention(option) {
291
- return option.state === "attention";
292
- }
293
- function attentionFirst(services) {
294
- const attention = services.filter(
295
- (service) => service.options.some(connectionOptionNeedsAttention)
296
- );
297
- if (!attention.length) return [...services];
298
- return [...attention, ...services.filter((service) => !attention.includes(service))];
299
- }
300
- function ConnectionOptionRow({ option }) {
301
- return /* @__PURE__ */ jsxs3("div", { className: "og-connection-catalog-action-row og-connection-option", children: [
302
- /* @__PURE__ */ jsx3(
303
- CapabilityCatalogRow,
304
- {
305
- name: option.name,
306
- description: option.description,
307
- status: option.state ?? (option.connected ? "added" : "available"),
308
- statusLabel: option.status,
309
- showStatusLabel: option.state === void 0,
310
- onOpen: option.onOpen
311
- }
312
- ),
313
- option.action ? /* @__PURE__ */ jsx3("span", { className: "og-connection-option-action", children: option.action }) : null
314
- ] });
315
- }
316
- function ConnectionServiceRow({ service }) {
317
- const t = useOpenGeniText();
318
- if (!service.options.length) return null;
319
- const connected = service.options.filter((option) => option.connected).length;
320
- const attention = service.options.find(
321
- (option) => option.state === "attention" || option.state === "unavailable"
322
- );
323
- const groupState = attention?.state ?? (service.options.some((option) => option.state === "loading") ? "loading" : connected === service.options.length ? "added" : "available");
324
- const identity = /* @__PURE__ */ jsxs3(Fragment, { children: [
325
- /* @__PURE__ */ jsx3("span", { className: "og-capability-catalog-icon", children: service.logo }),
326
- /* @__PURE__ */ jsxs3("span", { className: "og-capability-catalog-copy", children: [
327
- /* @__PURE__ */ jsx3("strong", { children: service.name }),
328
- /* @__PURE__ */ jsx3("span", { children: service.options.length === 1 ? service.options[0]?.description : service.options.map((option) => option.name).join(" \xB7 ") })
329
- ] }),
330
- /* @__PURE__ */ jsx3(
331
- CapabilityCatalogIndicator,
332
- {
333
- status: groupState,
334
- label: attention?.status ?? t("connectionCatalog.connectedOfLengthAdded", {
335
- connected,
336
- length: service.options.length
337
- })
338
- }
339
- )
340
- ] });
341
- return service.options.length === 1 ? /* @__PURE__ */ jsxs3("div", { className: "og-connection-catalog-action-row", children: [
342
- /* @__PURE__ */ jsx3(
343
- CapabilityCatalogRow,
344
- {
345
- name: service.name,
346
- description: service.options[0].description,
347
- icon: service.logo,
348
- status: service.options[0].state ?? (connected ? "added" : "available"),
349
- statusLabel: service.options[0].status,
350
- showStatusLabel: service.options[0].state === void 0,
351
- onOpen: service.options[0].onOpen
352
- }
353
- ),
354
- service.options[0]?.action
355
- ] }) : /* @__PURE__ */ jsxs3("details", { className: "og-connection-catalog-service", children: [
356
- /* @__PURE__ */ jsxs3("summary", { className: "og-capability-catalog-row", children: [
357
- identity,
358
- /* @__PURE__ */ jsx3("span", { "aria-hidden": true, className: "og-connection-group-chevron", children: "\u2304" })
359
- ] }),
360
- /* @__PURE__ */ jsx3("div", { className: "og-connection-catalog-options", children: [
361
- ...service.options.filter(connectionOptionNeedsAttention),
362
- ...service.options.filter((option) => !connectionOptionNeedsAttention(option))
363
- ].map((option) => /* @__PURE__ */ jsx3(ConnectionOptionRow, { option }, option.id)) })
364
- ] });
365
- }
366
- function ConnectionCatalog({
367
- services,
368
- query = "",
369
- columns = 1,
370
- grouped = true,
371
- resultLimit,
372
- onShowMore,
373
- className = "",
374
- emptyMessage: emptyMessageProp
375
- }) {
376
- const t = useOpenGeniText();
377
- const emptyMessage = emptyMessageProp === void 0 ? t("connectionCatalog.noConnectionsMatchYourSearch") : emptyMessageProp;
378
- const search = query.trim().toLowerCase();
379
- const entries = grouped ? services : services.flatMap(
380
- (service) => service.options.map((option) => ({
381
- ...service,
382
- id: `${service.id}/${option.id}`,
383
- name: service.options.length > 1 && option.name !== service.name ? `${service.name} \xB7 ${option.name}` : service.name,
384
- options: [option]
385
- }))
386
- );
387
- const visible = attentionFirst(
388
- entries.filter(
389
- (service) => [
390
- service.name,
391
- ...service.options.flatMap((option) => [option.name, option.description ?? ""])
392
- ].join(" ").toLowerCase().includes(search)
393
- )
394
- );
395
- return /* @__PURE__ */ jsxs3(Fragment, { children: [
396
- /* @__PURE__ */ jsx3("div", { className: `og-connection-catalog ${className}`, "data-columns": columns, children: visible.length ? visible.slice(0, resultLimit).map((service) => /* @__PURE__ */ jsx3(ConnectionServiceRow, { service }, service.id)) : /* @__PURE__ */ jsx3("p", { role: "status", children: emptyMessage }) }),
397
- resultLimit && visible.length > resultLimit ? /* @__PURE__ */ jsx3("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("connectionCatalog.viewAllConnections") }) : null
398
- ] });
399
- }
400
-
401
- // src/connect-chooser.tsx
402
- import { useEffect as useEffect2, useMemo, useState as useState2 } from "react";
403
- import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
404
- function ConnectChooser(props) {
405
- const [scope, setScope] = useState2(props.controller);
406
- const [generation, setGeneration] = useState2(0);
407
- if (scope !== props.controller) {
408
- setScope(props.controller);
409
- setGeneration(generation + 1);
410
- }
411
- return /* @__PURE__ */ jsx4(ScopedChooser, { ...props }, generation);
412
- }
413
- function ScopedChooser({
414
- controller,
415
- returnUrl,
416
- className,
417
- presentation = "select",
418
- customOnly = false,
419
- providerOnly = false,
420
- compact = false,
421
- initialProviderId = "",
422
- personalOnly = false,
423
- finishInPopup = false
424
- }) {
425
- const t = useOpenGeniText();
426
- const view = useConnect(controller);
427
- const [loaded, setCatalog] = useState2(null);
428
- const catalog = useMemo(
429
- () => loaded?.map((entry) => {
430
- const name = connectionServiceWording(t, entry.id).name;
431
- return name ? { ...entry, label: name } : entry;
432
- }) ?? null,
433
- [loaded, t]
434
- );
435
- const [accounts, setAccounts] = useState2([]);
436
- const [failed, setFailed] = useState2(false);
437
- const [load, setLoad] = useState2(0);
438
- const [query, setQuery] = useState2("");
439
- const [providerId, setProviderId] = useState2(initialProviderId);
440
- const [ownership, setOwnership] = useState2("");
441
- useEffect2(() => {
442
- const abort = new AbortController();
443
- setCatalog(null);
444
- setAccounts([]);
445
- setFailed(false);
446
- setProviderId(initialProviderId);
447
- setOwnership("");
448
- void Promise.resolve().then(() => {
449
- abort.signal.throwIfAborted();
450
- return Promise.all([
451
- controller.transport.catalog(controller.workspaceId, { signal: abort.signal }),
452
- presentation === "catalog" ? controller.transport.accounts(controller.workspaceId, { signal: abort.signal }) : Promise.resolve([])
453
- ]);
454
- }).then(([providers, inventory]) => {
455
- if (!abort.signal.aborted) {
456
- setCatalog(
457
- structuredClone(
458
- providers.filter(
459
- (entry) => entry.readiness === "available" && entry.ownership.length > 0 && (!providerOnly || entry.family !== "mcp" && !entry.setup.some(
460
- (kind) => ["installation", "openapi", "graphql"].includes(kind)
461
- )) && (!customOnly || entry.family === "mcp" || entry.setup.some(
462
- (kind) => ["installation", "openapi", "graphql"].includes(kind)
463
- ))
464
- )
465
- )
466
- );
467
- setAccounts(structuredClone(inventory));
468
- const initial = providers.find((entry) => entry.id === initialProviderId);
469
- if (initial)
470
- setOwnership(
471
- initial.ownership.includes("personal") && ["google", "microsoft"].includes(initial.family) ? "personal" : initial.ownership.includes("workspace") ? "workspace" : initial.ownership[0] ?? ""
472
- );
473
- }
474
- }).catch(() => {
475
- if (!abort.signal.aborted) setFailed(true);
476
- });
477
- return () => abort.abort();
478
- }, [controller, load, presentation, customOnly, providerOnly, initialProviderId]);
479
- const provider = catalog?.find((entry) => entry.id === providerId);
480
- const onlyOwnership = provider ? personalOnly && provider.ownership.includes("personal") ? "personal" : provider.ownership.length === 1 ? provider.ownership[0] : null : null;
481
- const chosenOwnership = onlyOwnership ?? ownership;
482
- const canBegin = provider?.readiness === "available" && (chosenOwnership === "personal" || chosenOwnership === "workspace") && provider.ownership.includes(chosenOwnership);
483
- const submit = (event) => {
484
- event.preventDefault();
485
- if (!canBegin || view.busy || chosenOwnership !== "personal" && chosenOwnership !== "workspace")
486
- return;
487
- setFailed(false);
488
- try {
489
- void controller.begin({
490
- providerId,
491
- ownership: chosenOwnership,
492
- returnUrl,
493
- ...finishInPopup ? { finishInPopup: true } : {},
494
- idempotencyKey: crypto.randomUUID()
495
- }).catch(() => setFailed(true));
496
- } catch {
497
- setFailed(true);
498
- }
499
- };
500
- if (compact && (!catalog || catalog.length === 0) && !failed) return null;
501
- return /* @__PURE__ */ jsxs4(
502
- "section",
503
- {
504
- className,
505
- "aria-label": t("connectChooser.chooseAConnection"),
506
- "aria-busy": view.busy || !catalog && !failed,
507
- children: [
508
- failed && /* @__PURE__ */ jsx4("p", { role: "alert", children: t("connectChooser.connectionsCouldNotBeLoaded") }),
509
- !catalog && !failed && /* @__PURE__ */ jsx4("p", { role: "status", children: t("connectChooser.loadingConnections") }),
510
- catalog?.length === 0 && /* @__PURE__ */ jsx4("p", { role: "status", children: t("connectChooser.noConnectionsAreAvailable") }),
511
- Boolean(catalog?.length) && /* @__PURE__ */ jsx4("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs4("fieldset", { disabled: view.busy, children: [
512
- /* @__PURE__ */ jsx4("legend", { hidden: customOnly || compact, children: presentation === "catalog" ? t("connectChooser.addAConnection") : t("connectChooser.providerAndOwnership") }),
513
- presentation === "catalog" && !provider ? /* @__PURE__ */ jsxs4(Fragment2, { children: [
514
- /* @__PURE__ */ jsxs4("label", { hidden: customOnly || compact, children: [
515
- t("connectChooser.searchConnections"),
516
- /* @__PURE__ */ jsx4(
517
- "input",
518
- {
519
- type: "search",
520
- placeholder: t("connectChooser.findAService"),
521
- value: query,
522
- onChange: (event) => setQuery(event.target.value)
523
- }
524
- )
525
- ] }),
526
- [
527
- {
528
- name: t("connectChooser.services"),
529
- entries: catalog.filter(
530
- (entry) => entry.readiness === "available" && entry.family !== "mcp" && !entry.setup.some(
531
- (kind) => ["installation", "openapi", "graphql"].includes(kind)
532
- )
533
- ),
534
- secondary: false
535
- },
536
- {
537
- name: t("connectChooser.customConnections"),
538
- entries: catalog.filter(
539
- (entry) => entry.readiness === "available" && (entry.family === "mcp" || entry.setup.some(
540
- (kind) => ["installation", "openapi", "graphql"].includes(kind)
541
- ))
542
- ),
543
- secondary: true
544
- }
545
- ].map((group) => {
546
- const entries = group.entries.filter(
547
- (entry) => entry.label.toLocaleLowerCase().includes(query.toLocaleLowerCase().trim())
548
- );
549
- if (!entries.length) return null;
550
- const rows = /* @__PURE__ */ jsx4(
551
- ConnectionCatalog,
552
- {
553
- services: entries.map((entry) => {
554
- const connected = accounts.some(
555
- (account) => account.providerId === entry.id && account.status === "connected"
556
- );
557
- return {
558
- id: entry.id,
559
- name: entry.label,
560
- logo: /* @__PURE__ */ jsx4(
561
- ConnectionLogo,
562
- {
563
- src: connectionServicePresentation(entry).logo,
564
- name: entry.label
565
- }
566
- ),
567
- options: [
568
- {
569
- id: entry.id,
570
- name: entry.label,
571
- description: connectionServiceWording(t, entry.id).description,
572
- status: connected ? t("connectChooser.connected") : entry.readiness === "available" ? t("connectChooser.connect") : t("connectChooser.unavailable"),
573
- state: connected ? "added" : entry.readiness === "available" ? "available" : "unavailable",
574
- connected,
575
- onOpen: () => {
576
- if (!view.busy) {
577
- setProviderId(entry.id);
578
- setOwnership(
579
- entry.ownership.length === 1 ? entry.ownership[0] : ""
580
- );
581
- }
582
- }
583
- }
584
- ]
585
- };
586
- })
587
- }
588
- );
589
- return group.secondary && !customOnly ? /* @__PURE__ */ jsxs4(
590
- "details",
591
- {
592
- className: "og-connect-secondary",
593
- open: query.trim() ? true : void 0,
594
- children: [
595
- /* @__PURE__ */ jsxs4("summary", { children: [
596
- group.name,
597
- /* @__PURE__ */ jsx4("span", { children: entries.length })
598
- ] }),
599
- rows
600
- ]
601
- },
602
- group.name
603
- ) : /* @__PURE__ */ jsx4("div", { children: rows }, group.name);
604
- }),
605
- !catalog.some(
606
- (entry) => entry.label.toLocaleLowerCase().includes(query.toLocaleLowerCase().trim())
607
- ) && /* @__PURE__ */ jsx4("p", { role: "status", children: t("connectChooser.noServicesMatchYourSearch") })
608
- ] }) : null,
609
- presentation === "catalog" && provider && !initialProviderId ? /* @__PURE__ */ jsx4(
610
- "button",
611
- {
612
- type: "button",
613
- onClick: () => {
614
- setProviderId("");
615
- setOwnership("");
616
- },
617
- children: t("connectChooser.backToConnections")
618
- }
619
- ) : null,
620
- /* @__PURE__ */ jsxs4("label", { hidden: presentation === "catalog", children: [
621
- t("connectChooser.provider"),
622
- /* @__PURE__ */ jsxs4(
623
- "select",
624
- {
625
- required: true,
626
- value: providerId,
627
- onChange: (event) => {
628
- setProviderId(event.target.value);
629
- setOwnership("");
630
- },
631
- children: [
632
- /* @__PURE__ */ jsx4("option", { value: "", disabled: true, children: t("connectChooser.chooseAProvider") }),
633
- catalog.map((entry) => /* @__PURE__ */ jsxs4(
634
- "option",
635
- {
636
- value: entry.id,
637
- disabled: entry.readiness !== "available" || entry.ownership.length === 0,
638
- children: [
639
- entry.label,
640
- " \u2014 ",
641
- entry.id,
642
- " (",
643
- entry.readiness.replaceAll("_", " "),
644
- ")"
645
- ]
646
- },
647
- entry.id
648
- ))
649
- ]
650
- }
651
- )
652
- ] }),
653
- provider && /* @__PURE__ */ jsxs4(Fragment2, { children: [
654
- /* @__PURE__ */ jsx4("strong", { children: presentation === "catalog" ? provider.label : null }),
655
- provider.readiness !== "available" && /* @__PURE__ */ jsx4("p", { role: "status", children: provider.reason ?? t("connectChooser.thisServiceIsNotAvailable") }),
656
- onlyOwnership ? null : /* @__PURE__ */ jsxs4("label", { children: [
657
- t("connectChooser.whoCanUseThisConnection"),
658
- /* @__PURE__ */ jsxs4(
659
- "select",
660
- {
661
- required: true,
662
- value: ownership,
663
- onChange: (event) => setOwnership(event.target.value),
664
- children: [
665
- /* @__PURE__ */ jsx4("option", { value: "", disabled: true, children: t("connectChooser.chooseOwnership") }),
666
- provider.ownership.map((choice) => /* @__PURE__ */ jsx4("option", { value: choice, children: choice === "personal" ? t("connectChooser.onlyMe") : t("connectChooser.everyoneInThisWorkspace") }, choice))
667
- ]
668
- }
669
- )
670
- ] })
671
- ] }),
672
- /* @__PURE__ */ jsx4(
673
- "button",
674
- {
675
- hidden: presentation === "catalog" && !provider,
676
- type: "submit",
677
- disabled: !canBegin,
678
- children: t("connectChooser.continue")
679
- }
680
- )
681
- ] }) }),
682
- /* @__PURE__ */ jsx4("button", { hidden: !failed, type: "button", disabled: view.busy, onClick: () => setLoad(load + 1), children: t("connectChooser.reloadProviders") })
683
- ]
684
- }
685
- );
686
- }
687
-
688
- // src/connect-accounts.tsx
689
- import { useEffect as useEffect4, useRef, useState as useState4 } from "react";
690
-
691
- // src/connection-service-logo.tsx
692
- import { useEffect as useEffect3, useState as useState3 } from "react";
693
- import { jsx as jsx5 } from "react/jsx-runtime";
694
- function ConnectionServiceLogo({
695
- client,
696
- item,
697
- name,
698
- fallback = null
699
- }) {
700
- const path = item?.logoAssetPath;
701
- const [image, setImage] = useState3(null);
702
- useEffect3(() => {
703
- if (!client || !path?.startsWith("catalog-assets/")) return;
704
- const abort = new AbortController();
705
- let url = null;
706
- void client.downloadCatalogAsset(path, { signal: abort.signal }).then((blob) => {
707
- if (!abort.signal.aborted && blob.type.startsWith("image/") && blob.size <= 2e6)
708
- url = URL.createObjectURL(blob);
709
- }).catch(() => {
710
- }).finally(() => {
711
- if (!abort.signal.aborted) setImage({ client, path, url });
712
- });
713
- return () => {
714
- abort.abort();
715
- if (url) URL.revokeObjectURL(url);
716
- };
717
- }, [client, path]);
718
- const current = image && image.client === client && image.path === path ? image : null;
719
- const loading = Boolean(client && path?.startsWith("catalog-assets/") && !current);
720
- return /* @__PURE__ */ jsx5(
721
- ConnectionLogo,
722
- {
723
- name,
724
- loading,
725
- src: current?.url ?? (loading ? null : (item ? capabilityLogoFallback(item) : null) ?? fallback)
726
- }
727
- );
728
- }
729
-
730
- // src/connect-account-identity.tsx
731
- import { Fragment as Fragment3, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
732
- function ConnectAccountIdentity({
733
- account,
734
- client,
735
- capabilities
736
- }) {
737
- const t = useOpenGeniText();
738
- const item = accountServiceCapability(account, capabilities);
739
- const service = connectionServicePresentation({ id: account.providerId, label: account.label });
740
- const name = connectionServiceWording(t, account.providerId).name ?? item?.name ?? service.name;
741
- return /* @__PURE__ */ jsxs5(Fragment3, { children: [
742
- /* @__PURE__ */ jsx6(ConnectionServiceLogo, { client, item, name, fallback: service.logo }),
743
- /* @__PURE__ */ jsxs5("div", { children: [
744
- /* @__PURE__ */ jsx6("strong", { children: name }),
745
- /* @__PURE__ */ jsxs5("small", { children: [
746
- account.ownership === "personal" ? t("connectAccountIdentity.onlyYou") : t("connectAccountIdentity.workspaceConnection"),
747
- name !== account.label ? ` \xB7 ${account.label}` : ""
748
- ] })
749
- ] })
750
- ] });
751
- }
752
-
753
- // src/connection-skeleton.tsx
754
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
755
- function ConnectionSkeleton({ rows = 1, label }) {
756
- return /* @__PURE__ */ jsx7("div", { role: "status", "aria-label": label, className: "og-connection-skeleton", children: Array.from({ length: rows }, (_, index) => /* @__PURE__ */ jsxs6("div", { className: "og-connection-skeleton-row", "aria-hidden": "true", children: [
757
- /* @__PURE__ */ jsx7("span", { className: "og-connection-skeleton-mark" }),
758
- /* @__PURE__ */ jsxs6("span", { className: "og-connection-skeleton-copy", children: [
759
- /* @__PURE__ */ jsx7("span", {}),
760
- /* @__PURE__ */ jsx7("span", {})
761
- ] })
762
- ] }, index)) });
763
- }
764
-
765
- // src/connect-accounts.tsx
766
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
767
- function ConnectAccounts(props) {
768
- const [scope, setScope] = useState4(props.controller);
769
- const [generation, setGeneration] = useState4(0);
770
- if (scope !== props.controller) {
771
- setScope(props.controller);
772
- setGeneration(generation + 1);
773
- }
774
- return /* @__PURE__ */ jsx8(ScopedAccounts, { ...props }, generation);
775
- }
776
- function ScopedAccounts({
777
- controller,
778
- className,
779
- returnUrl,
780
- finishInPopup = false,
781
- client,
782
- onDisconnected,
783
- onReconnectViaConnector
784
- }) {
785
- const t = useOpenGeniText();
786
- const view = useConnect(controller);
787
- const [accounts, setAccounts] = useState4(null);
788
- const [selected, setSelected] = useState4(null);
789
- const [busy, setBusy] = useState4(false);
790
- const [error, setError] = useState4(false);
791
- const [reload, setReload] = useState4(0);
792
- const [catalog, setCatalog] = useState4(null);
793
- const mutation = useRef(null);
794
- useEffect4(() => () => mutation.current?.abort(), []);
795
- useEffect4(() => {
796
- const abort = new AbortController();
797
- setAccounts(null);
798
- setCatalog(null);
799
- setSelected(null);
800
- setError(false);
801
- void Promise.resolve().then(() => {
802
- abort.signal.throwIfAborted();
803
- return Promise.all([
804
- controller.transport.accounts(controller.workspaceId, { signal: abort.signal }),
805
- client?.listCapabilities(controller.workspaceId).catch(() => null) ?? null
806
- ]);
807
- }).then(([result, metadata]) => {
808
- if (!abort.signal.aborted) {
809
- setAccounts(structuredClone(result.filter((account) => account.status !== "disabled")));
810
- if (client && metadata) setCatalog({ client, items: metadata.items });
811
- }
812
- }).catch(() => {
813
- if (!abort.signal.aborted) setError(true);
814
- });
815
- return () => abort.abort();
816
- }, [client, controller, reload]);
817
- const disconnect = async (account) => {
818
- const expectedVersion = account.version;
819
- if (mutation.current || view.busy || expectedVersion === void 0 || !Number.isSafeInteger(expectedVersion) || expectedVersion < 1)
820
- return;
821
- const abort = new AbortController();
822
- mutation.current = abort;
823
- setBusy(true);
824
- setError(false);
825
- try {
826
- await controller.transport.disconnect(controller.workspaceId, account.id, {
827
- expectedVersion,
828
- signal: abort.signal
829
- });
830
- if (!abort.signal.aborted) {
831
- setReload((value) => value + 1);
832
- onDisconnected?.();
833
- }
834
- } catch {
835
- if (!abort.signal.aborted) {
836
- setAccounts(null);
837
- setError(true);
838
- }
839
- } finally {
840
- if (!abort.signal.aborted) {
841
- mutation.current = null;
842
- setBusy(false);
843
- setSelected(null);
844
- }
845
- }
846
- };
847
- const reconnect = async (account) => {
848
- if (account.backend || !returnUrl || mutation.current || view.busy) return;
849
- setError(false);
850
- try {
851
- await controller.begin({
852
- providerId: account.providerId,
853
- ownership: account.ownership,
854
- reconnectAccountId: account.id,
855
- returnUrl,
856
- ...finishInPopup ? { finishInPopup: true } : {},
857
- idempotencyKey: crypto.randomUUID()
858
- });
859
- } catch {
860
- setError(true);
861
- }
862
- };
863
- return /* @__PURE__ */ jsxs7(
864
- "section",
865
- {
866
- className,
867
- "aria-label": t("connectAccounts.connectedAccounts"),
868
- "aria-busy": busy || view.busy || !accounts && !error,
869
- children: [
870
- /* @__PURE__ */ jsx8("h3", { children: t("connectAccounts.yourConnections") }),
871
- error && /* @__PURE__ */ jsx8("p", { role: "alert", children: t("connectAccounts.accountStateCouldNotBe") }),
872
- !accounts && !error && /* @__PURE__ */ jsx8(ConnectionSkeleton, { label: t("connectAccounts.loadingAccounts") }),
873
- accounts?.length === 0 && /* @__PURE__ */ jsx8("p", { role: "status", children: t("connectAccounts.noConnectedAccounts") }),
874
- accounts && accounts.length > 0 && /* @__PURE__ */ jsx8("ul", { children: accounts.map((account) => /* @__PURE__ */ jsx8("li", { className: "og-connect-account", children: /* @__PURE__ */ jsxs7("details", { className: "og-connect-account-details", children: [
875
- /* @__PURE__ */ jsxs7("summary", { className: "og-connect-account-heading", children: [
876
- /* @__PURE__ */ jsx8(
877
- ConnectAccountIdentity,
878
- {
879
- account,
880
- client,
881
- capabilities: catalog?.client === client ? catalog?.items ?? [] : []
882
- }
883
- ),
884
- /* @__PURE__ */ jsx8("span", { className: "og-connect-account-status", "data-status": account.status, children: account.status === "connected" ? t("connectAccounts.connected") : account.status === "auth_needed" ? t("connectAccounts.reconnectNeeded") : t("connectAccounts.disconnected") }),
885
- /* @__PURE__ */ jsx8(
886
- "svg",
887
- {
888
- className: "og-connect-account-chevron",
889
- "aria-hidden": "true",
890
- width: "16",
891
- height: "16",
892
- viewBox: "0 0 24 24",
893
- fill: "none",
894
- stroke: "currentColor",
895
- strokeWidth: "1.5",
896
- children: /* @__PURE__ */ jsx8("path", { d: "m9 6 6 6-6 6" })
897
- }
898
- )
899
- ] }),
900
- /* @__PURE__ */ jsxs7("div", { className: "og-connect-account-actions", children: [
901
- account.status === "auth_needed" && (account.backend ? onReconnectViaConnector ? /* @__PURE__ */ jsx8(
902
- "button",
903
- {
904
- type: "button",
905
- "aria-label": t("connectAccounts.reconnectLabel", { label: account.label }),
906
- disabled: busy || view.busy,
907
- onClick: () => onReconnectViaConnector(account),
908
- children: t("connectAccounts.reconnect")
909
- }
910
- ) : /* @__PURE__ */ jsx8("p", { children: t("connectAccounts.signInFromConnector") }) : returnUrl && /* @__PURE__ */ jsx8(
911
- "button",
912
- {
913
- type: "button",
914
- "aria-label": t("connectAccounts.reconnectLabel", { label: account.label }),
915
- disabled: busy || view.busy,
916
- onClick: () => void reconnect(account),
917
- children: t("connectAccounts.reconnect")
918
- }
919
- )),
920
- selected === `${account.providerId}:${account.id}` ? /* @__PURE__ */ jsxs7(
921
- "div",
922
- {
923
- role: "group",
924
- "aria-label": t("connectAccounts.disconnectLabel", { label: account.label }),
925
- children: [
926
- /* @__PURE__ */ jsx8("p", { children: t("connectAccounts.thisRemovesLocalOpengeniAccess") }),
927
- /* @__PURE__ */ jsx8(
928
- "button",
929
- {
930
- type: "button",
931
- disabled: busy || view.busy,
932
- onClick: () => void disconnect(account),
933
- children: t("connectAccounts.confirmDisconnect")
934
- }
935
- ),
936
- /* @__PURE__ */ jsx8("button", { type: "button", disabled: busy, onClick: () => setSelected(null), children: t("connectAccounts.keepAccount") })
937
- ]
938
- }
939
- ) : /* @__PURE__ */ jsx8(
940
- "button",
941
- {
942
- type: "button",
943
- "aria-label": t("connectAccounts.disconnectLabel", { label: account.label }),
944
- disabled: busy || view.busy || account.status === "disabled" || !Number.isSafeInteger(account.version) || account.version < 1,
945
- onClick: () => setSelected(`${account.providerId}:${account.id}`),
946
- children: t("connectAccounts.disconnect")
947
- }
948
- )
949
- ] })
950
- ] }) }, `${account.providerId}:${account.id}`)) }),
951
- /* @__PURE__ */ jsx8(
952
- "button",
953
- {
954
- hidden: !error,
955
- type: "button",
956
- disabled: busy,
957
- onClick: () => setReload((value) => value + 1),
958
- children: t("connectAccounts.reloadAccounts")
959
- }
960
- )
961
- ]
962
- }
963
- );
964
- }
965
-
966
- // src/connect-panel.tsx
967
- import { useState as useState6 } from "react";
968
-
969
- // src/connection-discovery.tsx
970
- import { deploymentCannotConnect } from "@opengeni/contracts/personal-integration-setup";
971
- import { useEffect as useEffect5, useMemo as useMemo2, useRef as useRef2, useState as useState5 } from "react";
972
- import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
973
- function ConnectionDiscovery(props) {
974
- const [scope, setScope] = useState5({ client: props.client, controller: props.controller });
975
- const [generation, setGeneration] = useState5(0);
976
- if (scope.client !== props.client || scope.controller !== props.controller) {
977
- setScope({ client: props.client, controller: props.controller });
978
- setGeneration(generation + 1);
979
- }
980
- return /* @__PURE__ */ jsx9(ScopedDiscovery, { ...props }, `${generation}:${props.workspaceId}`);
981
- }
982
- function ScopedDiscovery({
983
- client,
984
- controller,
985
- workspaceId,
986
- returnUrl,
987
- finishInPopup = false,
988
- onConfigured
989
- }) {
990
- const t = useOpenGeniText();
991
- const [loadedProviders, setProviders] = useState5(null);
992
- const providers = useMemo2(
993
- () => loadedProviders?.map((provider) => {
994
- const own = connectionServiceWording(t, provider.id);
995
- return { ...provider, label: own.name ?? provider.label, description: own.description };
996
- }) ?? null,
997
- [loadedProviders, t]
998
- );
999
- const [accounts, setAccounts] = useState5([]);
1000
- const [selectedProvider, setSelectedProvider] = useState5(null);
1001
- const [providerFailed, setProviderFailed] = useState5(false);
1002
- const [loadedItems, setItems] = useState5(null);
1003
- const items = useMemo2(
1004
- () => loadedItems?.map((item) => {
1005
- const providerId = capabilityConnectProviderId(item);
1006
- if (!providerId) return item;
1007
- const own = connectionServiceWording(t, providerId);
1008
- return {
1009
- ...item,
1010
- name: own.name ?? item.name,
1011
- description: own.description ?? item.description
1012
- };
1013
- }) ?? null,
1014
- [loadedItems, t]
1015
- );
1016
- const [failed, setFailed] = useState5(false);
1017
- const [connections, setConnections] = useState5([]);
1018
- const [reload, setReload] = useState5(0);
1019
- const [query, setQuery] = useState5("");
1020
- const [limit, setLimit] = useState5(12);
1021
- const [selected, setSelected] = useState5(null);
1022
- const opener = useRef2(null);
1023
- const alone = useNobodyToShareWith(client, workspaceId);
1024
- useEffect5(() => {
1025
- const abort = new AbortController();
1026
- const read = async (operation) => {
1027
- abort.signal.throwIfAborted();
1028
- return operation();
1029
- };
1030
- setFailed(false);
1031
- setSelectedProvider(null);
1032
- setProviders(null);
1033
- setItems(null);
1034
- setProviderFailed(false);
1035
- if (controller)
1036
- void Promise.all([
1037
- read(() => controller.transport.catalog(workspaceId, { signal: abort.signal })),
1038
- read(() => controller.transport.accounts(workspaceId, { signal: abort.signal }))
1039
- ]).then(([catalog, inventory]) => {
1040
- if (!abort.signal.aborted) {
1041
- setProviders(catalog.filter(isServiceConnectProvider));
1042
- setAccounts(inventory);
1043
- }
1044
- }).catch(() => {
1045
- if (!abort.signal.aborted) setProviderFailed(true);
1046
- });
1047
- void Promise.all([
1048
- read(() => client.listCapabilities(workspaceId)),
1049
- read(() => client.listConnections(workspaceId))
1050
- ]).then(([catalog, inventory]) => {
1051
- if (!abort.signal.aborted) {
1052
- setConnections(inventory);
1053
- setItems(
1054
- catalog.items.filter(
1055
- (item) => item.kind === "mcp" && item.authKind === "oauth2" && Boolean(item.mcpUrl ?? item.endpointUrl) && // This deployment cannot start the connection (no operator
1056
- // OAuth client, or setup switched off): Connect cannot succeed.
1057
- !deploymentCannotConnect(item)
1058
- )
1059
- );
1060
- }
1061
- }).catch(() => {
1062
- if (!abort.signal.aborted) setFailed(true);
1063
- });
1064
- return () => {
1065
- abort.abort();
1066
- };
1067
- }, [client, controller, workspaceId, reload]);
1068
- const matches = items?.filter(
1069
- (item) => `${item.name} ${item.description ?? ""} ${item.providerDomain ?? ""}`.toLocaleLowerCase().includes(query.trim().toLocaleLowerCase())
1070
- ) ?? [];
1071
- const providerMatches = (providers ?? []).filter(
1072
- (provider) => !items?.some((item) => capabilityConnectProviderId(item) === provider.id) && `${provider.label} ${provider.description ?? ""}`.toLocaleLowerCase().includes(query.trim().toLocaleLowerCase())
1073
- );
1074
- const loading = !items && !failed || Boolean(controller && !providers && !providerFailed);
1075
- if (selectedProvider && controller)
1076
- return /* @__PURE__ */ jsxs8(
1077
- "section",
1078
- {
1079
- "aria-label": t("connectionDiscovery.connectLabel", { label: selectedProvider.label }),
1080
- children: [
1081
- /* @__PURE__ */ jsx9("button", { type: "button", onClick: () => setSelectedProvider(null), children: t("connectionDiscovery.backToConnections") }),
1082
- /* @__PURE__ */ jsx9(
1083
- ConnectionLogo,
1084
- {
1085
- name: selectedProvider.label,
1086
- src: connectionServicePresentation(selectedProvider).logo
1087
- }
1088
- ),
1089
- /* @__PURE__ */ jsx9(
1090
- ConnectChooser,
1091
- {
1092
- controller,
1093
- returnUrl,
1094
- presentation: "catalog",
1095
- providerOnly: true,
1096
- initialProviderId: selectedProvider.id,
1097
- personalOnly: alone,
1098
- finishInPopup
1099
- }
1100
- )
1101
- ]
1102
- }
1103
- );
1104
- return /* @__PURE__ */ jsxs8(
1105
- "section",
1106
- {
1107
- className: "og-connection-discovery",
1108
- "aria-label": t("connectionDiscovery.findAConnection"),
1109
- children: [
1110
- /* @__PURE__ */ jsx9("h3", { children: t("connectionDiscovery.addAConnection") }),
1111
- /* @__PURE__ */ jsxs8("label", { children: [
1112
- /* @__PURE__ */ jsx9("span", { className: "og-capability-catalog-sr-only", children: t("connectionDiscovery.searchServices") }),
1113
- /* @__PURE__ */ jsx9(
1114
- "input",
1115
- {
1116
- type: "search",
1117
- placeholder: t("connectionDiscovery.searchServices2"),
1118
- value: query,
1119
- onChange: (event) => {
1120
- setQuery(event.target.value);
1121
- setLimit(12);
1122
- }
1123
- }
1124
- )
1125
- ] }),
1126
- (providerFailed || failed) && /* @__PURE__ */ jsxs8("p", { role: "alert", children: [
1127
- t("connectionDiscovery.someServicesCouldNotBe"),
1128
- " ",
1129
- /* @__PURE__ */ jsx9("button", { type: "button", onClick: () => setReload((value) => value + 1), children: t("connectionDiscovery.retry") })
1130
- ] }),
1131
- /* @__PURE__ */ jsxs8("div", { className: "og-connection-discovery-results", children: [
1132
- providerMatches.map((provider) => {
1133
- const connected = accounts.some(
1134
- (account) => account.providerId === provider.id && account.status === "connected"
1135
- );
1136
- return /* @__PURE__ */ jsx9(
1137
- CapabilityCatalogRow,
1138
- {
1139
- name: provider.label,
1140
- description: provider.description,
1141
- icon: /* @__PURE__ */ jsx9(
1142
- ConnectionLogo,
1143
- {
1144
- name: provider.label,
1145
- src: connectionServicePresentation(provider).logo
1146
- }
1147
- ),
1148
- status: connected ? "added" : "available",
1149
- statusLabel: connected ? t("connectionDiscovery.connected") : t("connectionDiscovery.connect"),
1150
- showStatusLabel: true,
1151
- onOpen: () => setSelectedProvider(provider)
1152
- },
1153
- provider.id
1154
- );
1155
- }),
1156
- matches.slice(0, limit).map((item) => {
1157
- const state = mcpConnectionDiscoveryState(t, item, connections);
1158
- return /* @__PURE__ */ jsx9(
1159
- CapabilityCatalogRow,
1160
- {
1161
- name: item.name,
1162
- description: item.description ?? void 0,
1163
- icon: /* @__PURE__ */ jsx9(ConnectionServiceLogo, { client, item, name: item.name }),
1164
- status: state.status,
1165
- statusLabel: state.label,
1166
- showStatusLabel: true,
1167
- onOpen: () => {
1168
- opener.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
1169
- setSelected(item);
1170
- }
1171
- },
1172
- item.id
1173
- );
1174
- }),
1175
- loading && /* @__PURE__ */ jsx9(ConnectionSkeleton, { rows: 3, label: t("connectionDiscovery.loadingServices") }),
1176
- !loading && !failed && !providerFailed && !matches.length && !providerMatches.length && /* @__PURE__ */ jsx9("p", { role: "status", children: t("connectionDiscovery.noServicesMatchYourSearch") }),
1177
- matches.length > limit && /* @__PURE__ */ jsx9("button", { type: "button", onClick: () => setLimit((value) => value + 12), children: t("connectionDiscovery.showMoreServices") })
1178
- ] }),
1179
- selected ? /* @__PURE__ */ jsx9(
1180
- McpConnectionCard,
1181
- {
1182
- client,
1183
- workspaceId,
1184
- capabilityId: selected.id,
1185
- name: selected.name,
1186
- returnUrl,
1187
- dialogOnly: true,
1188
- onClose: () => {
1189
- setSelected(null);
1190
- queueMicrotask(() => {
1191
- if (opener.current?.isConnected) opener.current.focus();
1192
- });
1193
- },
1194
- onConfigured: async () => {
1195
- setReload((value) => value + 1);
1196
- await onConfigured?.();
1197
- }
1198
- }
1199
- ) : null
1200
- ]
1201
- }
1202
- );
1203
- }
1204
-
1205
- // src/connect-panel.tsx
1206
- import { Fragment as Fragment4, jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1207
- var SETTLED = ["complete", "cancelled", "expired"];
1208
- function ConnectPanel({
1209
- returnUrl,
1210
- title: titleProp,
1211
- showAccounts = true,
1212
- showCustomConnections = true,
1213
- showProviderConnections = false,
1214
- presentation = "select",
1215
- className,
1216
- client,
1217
- finishInPopup = false,
1218
- onReconnectViaConnector,
1219
- ...setup
1220
- }) {
1221
- const t = useOpenGeniText();
1222
- const title = titleProp === void 0 ? t("connectPanel.connections") : titleProp;
1223
- const { attempt } = useConnect(setup.controller);
1224
- const [inventoryRevision, setInventoryRevision] = useState6(0);
1225
- const [dismissed, setDismissed] = useState6(null);
1226
- const alone = useNobodyToShareWith(client, setup.controller.workspaceId);
1227
- const approvalHelp = attempt !== null && adminApprovalLink(attempt) !== null;
1228
- const activeSetup = attempt !== null && attempt.id !== dismissed && (approvalHelp || !SETTLED.includes(attempt.state));
1229
- const serviceName = attempt ? connectionServicePresentation({ id: attempt.providerId, label: "" }, t).name : "";
1230
- const popup = finishInPopup ? { finishInPopup: true } : {};
1231
- const retry = setup.onRetry ?? (attempt && approvalHelp ? () => setup.controller.begin({
1232
- providerId: attempt.providerId,
1233
- ownership: attempt.ownership,
1234
- returnUrl,
1235
- ...popup,
1236
- idempotencyKey: crypto.randomUUID()
1237
- }) : void 0);
1238
- return /* @__PURE__ */ jsxs9("div", { className: ["og-connect", className].filter(Boolean).join(" "), children: [
1239
- title !== null && /* @__PURE__ */ jsx10("h2", { children: title }),
1240
- showAccounts && !activeSetup && /* @__PURE__ */ jsx10(
1241
- ConnectAccounts,
1242
- {
1243
- controller: setup.controller,
1244
- returnUrl,
1245
- finishInPopup,
1246
- client,
1247
- onDisconnected: () => setInventoryRevision((value) => value + 1),
1248
- onReconnectViaConnector
1249
- },
1250
- inventoryRevision
1251
- ),
1252
- !activeSetup && (client && presentation === "catalog" ? /* @__PURE__ */ jsxs9(Fragment4, { children: [
1253
- /* @__PURE__ */ jsx10(
1254
- ConnectionDiscovery,
1255
- {
1256
- controller: showProviderConnections ? setup.controller : void 0,
1257
- client,
1258
- workspaceId: setup.controller.workspaceId,
1259
- returnUrl,
1260
- finishInPopup,
1261
- onConfigured: () => setInventoryRevision((value) => value + 1)
1262
- },
1263
- inventoryRevision
1264
- ),
1265
- showCustomConnections && /* @__PURE__ */ jsxs9("details", { className: "og-connect-secondary", children: [
1266
- /* @__PURE__ */ jsx10("summary", { children: t("connectPanel.customConnection") }),
1267
- /* @__PURE__ */ jsx10(
1268
- ConnectChooser,
1269
- {
1270
- customOnly: true,
1271
- presentation,
1272
- controller: setup.controller,
1273
- returnUrl,
1274
- finishInPopup,
1275
- personalOnly: alone
1276
- }
1277
- )
1278
- ] })
1279
- ] }) : /* @__PURE__ */ jsx10(
1280
- ConnectChooser,
1281
- {
1282
- presentation,
1283
- controller: setup.controller,
1284
- returnUrl,
1285
- finishInPopup,
1286
- personalOnly: alone
1287
- }
1288
- )),
1289
- activeSetup && attempt && approvalHelp && /* @__PURE__ */ jsx10("button", { type: "button", onClick: () => setDismissed(attempt.id), children: t("connectPanel.backToConnections") }),
1290
- activeSetup && /* @__PURE__ */ jsx10(
1291
- ConnectSetup,
1292
- {
1293
- ...setup,
1294
- onRetry: retry,
1295
- serviceName: setup.serviceName ?? (serviceName || void 0),
1296
- authorizeLabel: setup.authorizeLabel ?? (serviceName ? t("connectPanel.continueToServicename", { serviceName }) : t("connectPanel.authorizeConnection"))
1297
- }
1298
- )
1299
- ] });
1300
- }
1301
-
1302
- // src/device-authorization.tsx
1303
- import { useEffect as useEffect6, useRef as useRef3, useState as useState7 } from "react";
1304
- import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
1305
- function DeviceAuthorization(props) {
1306
- const t = useOpenGeniText();
1307
- const [copied, setCopied] = useState7(false);
1308
- const [copyError, setCopyError] = useState7(false);
1309
- const generation = useRef3(0);
1310
- const timer = useRef3(null);
1311
- useEffect6(() => {
1312
- generation.current++;
1313
- setCopied(false);
1314
- setCopyError(false);
1315
- return () => {
1316
- generation.current++;
1317
- if (timer.current) clearTimeout(timer.current);
1318
- };
1319
- }, [props.userCode]);
1320
- async function copy() {
1321
- const revision = ++generation.current;
1322
- if (timer.current) clearTimeout(timer.current);
1323
- setCopied(false);
1324
- setCopyError(false);
1325
- try {
1326
- const clipboard = props.loadClipboard ? await props.loadClipboard() : { copyTextToClipboard };
1327
- if (revision !== generation.current) return;
1328
- const success = await clipboard.copyTextToClipboard(props.userCode);
1329
- if (revision !== generation.current) return;
1330
- setCopied(success);
1331
- setCopyError(!success);
1332
- props.onCopyResult?.(success);
1333
- if (success)
1334
- timer.current = setTimeout(() => {
1335
- if (revision === generation.current) setCopied(false);
1336
- }, 1600);
1337
- } catch {
1338
- if (revision !== generation.current) return;
1339
- setCopyError(true);
1340
- props.onCopyResult?.(false);
1341
- }
1342
- }
1343
- let href;
1344
- try {
1345
- const url = new URL(props.verificationUri);
1346
- if (["https:", "http:"].includes(url.protocol) && !url.username && !url.password)
1347
- href = props.verificationUri;
1348
- } catch {
1349
- }
1350
- if (props.render) return props.render({ copied, copyError, copy, verificationHref: href });
1351
- return /* @__PURE__ */ jsxs10(
1352
- "section",
1353
- {
1354
- className: `og-connect ${props.className ?? ""}`,
1355
- "aria-label": t("deviceAuthorization.deviceAuthorization"),
1356
- children: [
1357
- /* @__PURE__ */ jsx11("p", { children: props.description ?? t("deviceAuthorization.enterThisCodeAtProviderlabel", {
1358
- providerLabel: props.providerLabel ?? t("deviceAuthorization.theProvider")
1359
- }) }),
1360
- /* @__PURE__ */ jsxs10("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem", alignItems: "center" }, children: [
1361
- /* @__PURE__ */ jsx11("code", { ...props.codeAttributes, style: { overflowWrap: "anywhere" }, children: props.userCode }),
1362
- /* @__PURE__ */ jsx11(
1363
- "button",
1364
- {
1365
- type: "button",
1366
- "aria-label": copied ? t("deviceAuthorization.codeCopied") : t("deviceAuthorization.copyCode"),
1367
- onClick: () => void copy(),
1368
- children: copied ? t("deviceAuthorization.copied") : t("deviceAuthorization.copyCode")
1369
- }
1370
- ),
1371
- href ? /* @__PURE__ */ jsxs10("a", { href, target: "_blank", rel: "noopener noreferrer", children: [
1372
- t("deviceAuthorization.open"),
1373
- " ",
1374
- props.providerLabel ?? t("deviceAuthorization.authPage")
1375
- ] }) : /* @__PURE__ */ jsx11("span", { role: "alert", children: t("deviceAuthorization.authorizationAddressUnavailable") })
1376
- ] }),
1377
- copyError ? /* @__PURE__ */ jsx11("p", { role: "alert", children: t("deviceAuthorization.couldnTCopyTheCode") }) : null,
1378
- /* @__PURE__ */ jsx11("p", { role: "status", children: t("deviceAuthorization.waitingForAuthorization") })
1379
- ]
1380
- }
1381
- );
1382
- }
1383
-
1384
- // src/identity-link-consent.tsx
1385
- import { useEffect as useEffect7, useRef as useRef4, useState as useState8 } from "react";
1386
- import { Fragment as Fragment5, jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
1387
- function IdentityLinkConsent({
1388
- client,
1389
- workspaceId,
1390
- linkId,
1391
- challenge,
1392
- className,
1393
- onComplete
1394
- }) {
1395
- const t = useOpenGeniText();
1396
- const [link, setLink] = useState8(null);
1397
- const [preview, setPreview] = useState8(null);
1398
- const [selected, setSelected] = useState8([]);
1399
- const [busy, setBusy] = useState8(false);
1400
- const [error, setError] = useState8(false);
1401
- const [retry, setRetry] = useState8(0);
1402
- const generation = useRef4(0);
1403
- useEffect7(() => {
1404
- const current = ++generation.current;
1405
- setLink(null);
1406
- setPreview(null);
1407
- setSelected([]);
1408
- setBusy(true);
1409
- setError(false);
1410
- void client.previewIdentityLink(workspaceId, linkId, challenge).then(
1411
- (result) => {
1412
- if (generation.current !== current) return;
1413
- setPreview(result);
1414
- setLink(result.link);
1415
- setSelected(result.link.permissions);
1416
- },
1417
- () => {
1418
- if (generation.current === current) setError(true);
1419
- }
1420
- ).finally(() => {
1421
- if (generation.current === current) setBusy(false);
1422
- });
1423
- return () => {
1424
- generation.current++;
1425
- };
1426
- }, [client, workspaceId, linkId, challenge, retry]);
1427
- async function mutate(revoke) {
1428
- if (!link || busy) return;
1429
- const current = generation.current;
1430
- setBusy(true);
1431
- setError(false);
1432
- try {
1433
- const result = revoke ? await client.revokeIdentityLink(workspaceId, linkId, link.revision) : await client.confirmIdentityLink(workspaceId, linkId, {
1434
- challenge,
1435
- expectedRevision: link.revision,
1436
- permissions: selected
1437
- });
1438
- if (generation.current !== current) return;
1439
- setLink(result);
1440
- onComplete?.(result);
1441
- } catch {
1442
- if (generation.current === current) setError(true);
1443
- } finally {
1444
- if (generation.current === current) setBusy(false);
1445
- }
1446
- }
1447
- return /* @__PURE__ */ jsxs11(
1448
- "section",
1449
- {
1450
- className: ["og-connect og-identity-link", className].filter(Boolean).join(" "),
1451
- "aria-label": t("identityLinkConsent.linkYourAccount"),
1452
- "aria-busy": busy,
1453
- children: [
1454
- /* @__PURE__ */ jsx12("h2", { children: t("identityLinkConsent.linkYourOpengeniAccount") }),
1455
- /* @__PURE__ */ jsx12("p", { children: t("identityLinkConsent.onlyContinueIfYouStarted") }),
1456
- preview && /* @__PURE__ */ jsxs11("dl", { children: [
1457
- /* @__PURE__ */ jsx12("dt", { children: t("identityLinkConsent.organization") }),
1458
- /* @__PURE__ */ jsx12("dd", { children: preview.organizationId }),
1459
- /* @__PURE__ */ jsx12("dt", { children: t("identityLinkConsent.productUser") }),
1460
- /* @__PURE__ */ jsxs11("dd", { children: [
1461
- preview.externalIdentity.externalId,
1462
- " (",
1463
- preview.externalIdentity.source,
1464
- ")"
1465
- ] }),
1466
- /* @__PURE__ */ jsx12("dt", { children: t("identityLinkConsent.yourOpengeniIdentity") }),
1467
- /* @__PURE__ */ jsx12("dd", { children: preview.nativeSubjectId })
1468
- ] }),
1469
- error && /* @__PURE__ */ jsxs11("div", { role: "alert", children: [
1470
- t("identityLinkConsent.thisRequestCouldNotBe"),
1471
- !link && /* @__PURE__ */ jsx12("button", { type: "button", disabled: busy, onClick: () => setRetry((value) => value + 1), children: t("identityLinkConsent.tryAgain") })
1472
- ] }),
1473
- !link && busy && /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkConsent.loadingTheAccountLinkRequest") }),
1474
- link?.status === "pending" && /* @__PURE__ */ jsxs11(Fragment5, { children: [
1475
- /* @__PURE__ */ jsxs11("p", { children: [
1476
- link.expiresAt ? t("identityLinkConsent.accessEndsLocalestring", {
1477
- localeString: new Date(link.expiresAt).toLocaleString(t.locale)
1478
- }) : t("identityLinkConsent.accessLastsUntilYouOr"),
1479
- " ",
1480
- t("identityLinkConsent.yourCurrentPermissionsStillApply")
1481
- ] }),
1482
- /* @__PURE__ */ jsxs11("fieldset", { disabled: busy, children: [
1483
- /* @__PURE__ */ jsx12("legend", { children: t("identityLinkConsent.allowThesePermissions") }),
1484
- link.permissions.map((permission) => /* @__PURE__ */ jsxs11("label", { children: [
1485
- /* @__PURE__ */ jsx12(
1486
- "input",
1487
- {
1488
- type: "checkbox",
1489
- checked: selected.includes(permission),
1490
- onChange: (event) => setSelected(
1491
- (values) => event.target.checked ? [...values, permission] : values.filter((value) => value !== permission)
1492
- )
1493
- }
1494
- ),
1495
- /* @__PURE__ */ jsx12("span", { children: permission.replaceAll(":", " \xB7 ") })
1496
- ] }, permission))
1497
- ] }),
1498
- /* @__PURE__ */ jsx12(
1499
- "button",
1500
- {
1501
- type: "button",
1502
- disabled: busy || selected.length === 0,
1503
- onClick: () => void mutate(false),
1504
- children: busy ? t("identityLinkConsent.saving") : t("identityLinkConsent.allowSelectedAccess")
1505
- }
1506
- ),
1507
- /* @__PURE__ */ jsx12("p", { children: t("identityLinkConsent.youCanCloseThisPage") })
1508
- ] }),
1509
- link?.status === "active" && /* @__PURE__ */ jsxs11(Fragment5, { children: [
1510
- /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkConsent.accountLinkedReturnToYour") }),
1511
- /* @__PURE__ */ jsx12("button", { type: "button", disabled: busy, onClick: () => void mutate(true), children: t("identityLinkConsent.revokeThisLink") })
1512
- ] }),
1513
- link?.status === "revoked" && /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkConsent.linkRevokedYourOpengeniAccount") }),
1514
- link?.status === "expired" && /* @__PURE__ */ jsx12("p", { role: "status", children: t("identityLinkConsent.thisRequestHasExpiredStart") })
1515
- ]
1516
- }
1517
- );
1518
- }
1519
-
1520
- // src/identity-link-accounts.tsx
1521
- import { useEffect as useEffect8, useRef as useRef5, useState as useState9 } from "react";
1522
- import { jsx as jsx13, jsxs as jsxs12 } from "react/jsx-runtime";
1523
- function IdentityLinkAccounts({
1524
- client,
1525
- workspaceId
1526
- }) {
1527
- const t = useOpenGeniText();
1528
- const [links, setLinks] = useState9([]);
1529
- const [cursor, setCursor] = useState9(null);
1530
- const [busy, setBusy] = useState9(true);
1531
- const [error, setError] = useState9(false);
1532
- const [revision, setRevision] = useState9(0);
1533
- const generation = useRef5(0);
1534
- const inFlight = useRef5(false);
1535
- useEffect8(() => {
1536
- const current = ++generation.current;
1537
- inFlight.current = true;
1538
- setLinks([]);
1539
- setCursor(null);
1540
- setBusy(true);
1541
- setError(false);
1542
- void client.listIdentityLinks(workspaceId).then(
1543
- (page) => {
1544
- if (current !== generation.current) return;
1545
- setLinks(page.links);
1546
- setCursor(page.nextCursor);
1547
- },
1548
- () => {
1549
- if (current === generation.current) setError(true);
1550
- }
1551
- ).finally(() => {
1552
- if (current === generation.current) {
1553
- inFlight.current = false;
1554
- setBusy(false);
1555
- }
1556
- });
1557
- return () => {
1558
- generation.current++;
1559
- };
1560
- }, [client, workspaceId, revision]);
1561
- async function act(link) {
1562
- if (inFlight.current || !link && !cursor) return;
1563
- const current = generation.current;
1564
- inFlight.current = true;
1565
- setBusy(true);
1566
- setError(false);
1567
- try {
1568
- if (link) {
1569
- const updated = await client.revokeIdentityLink(workspaceId, link.id, link.revision);
1570
- if (current === generation.current)
1571
- setLinks(
1572
- (values) => values.map((value) => value.id === updated.id ? { ...value, ...updated } : value)
1573
- );
1574
- } else {
1575
- const page = await client.listIdentityLinks(workspaceId, cursor);
1576
- if (current === generation.current) {
1577
- setLinks((values) => [
1578
- ...new Map([...values, ...page.links].map((value) => [value.id, value])).values()
1579
- ]);
1580
- setCursor(page.nextCursor);
1581
- }
1582
- }
1583
- } catch {
1584
- if (current === generation.current) setError(true);
1585
- } finally {
1586
- if (current === generation.current) {
1587
- inFlight.current = false;
1588
- setBusy(false);
1589
- }
1590
- }
1591
- }
1592
- return /* @__PURE__ */ jsxs12(
1593
- "section",
1594
- {
1595
- className: "og-connect og-identity-link",
1596
- "aria-label": t("identityLinkAccounts.linkedProductAccess"),
1597
- "aria-busy": busy,
1598
- children: [
1599
- /* @__PURE__ */ jsx13("h2", { children: t("identityLinkAccounts.linkedProductAccess") }),
1600
- /* @__PURE__ */ jsx13("p", { children: t("identityLinkAccounts.manageProductsAllowedToAct") }),
1601
- /* @__PURE__ */ jsxs12("div", { className: "og-identity-link-card", children: [
1602
- error && /* @__PURE__ */ jsxs12("div", { role: "alert", children: [
1603
- t("identityLinkAccounts.couldNotUpdateAccountLinks"),
1604
- /* @__PURE__ */ jsx13("button", { type: "button", disabled: busy, onClick: () => setRevision((value) => value + 1), children: t("identityLinkAccounts.reloadLinks") })
1605
- ] }),
1606
- busy && /* @__PURE__ */ jsx13("p", { role: "status", children: t("identityLinkAccounts.loadingAccountLinks") }),
1607
- !busy && !error && links.length === 0 && /* @__PURE__ */ jsx13("p", { children: t("identityLinkAccounts.noProductsHaveLinkedAccess") }),
1608
- /* @__PURE__ */ jsx13("ul", { children: links.map((link) => /* @__PURE__ */ jsxs12("li", { children: [
1609
- /* @__PURE__ */ jsxs12("p", { children: [
1610
- link.externalIdentity?.source || t("identityLinkAccounts.productIdentity"),
1611
- " ",
1612
- /* @__PURE__ */ jsx13("code", { children: link.externalIdentity?.externalId ?? link.externalIdentityId })
1613
- ] }),
1614
- /* @__PURE__ */ jsxs12("p", { children: [
1615
- t("identityLinkAccounts.statusStatus", { status: link.status }),
1616
- " ",
1617
- link.expiresAt ? t("identityLinkAccounts.expiresLocalestring", {
1618
- localeString: new Date(link.expiresAt).toLocaleString(t.locale)
1619
- }) : t("identityLinkAccounts.noAutomaticExpiry")
1620
- ] }),
1621
- /* @__PURE__ */ jsx13("p", { children: link.permissions.join(", ") }),
1622
- (link.status === "active" || link.status === "pending") && /* @__PURE__ */ jsx13("button", { type: "button", disabled: busy, onClick: () => void act(link), children: t("identityLinkAccounts.revokeAccess") })
1623
- ] }, link.id)) }),
1624
- cursor && /* @__PURE__ */ jsx13("button", { type: "button", disabled: busy, onClick: () => void act(), children: t("identityLinkAccounts.loadMoreLinks") })
1625
- ] })
1626
- ]
1627
- }
1628
- );
1629
- }
1630
-
1631
- // src/connection-installed.tsx
1632
- import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
1633
- function ConnectionInstalled({
1634
- items,
1635
- title: titleProp,
1636
- className = ""
1637
- }) {
1638
- const t = useOpenGeniText();
1639
- const title = titleProp === void 0 ? t("connectionInstalled.connected") : titleProp;
1640
- if (!items.length) return null;
1641
- return /* @__PURE__ */ jsxs13("section", { "aria-label": title, className: `og-connection-installed ${className}`, children: [
1642
- /* @__PURE__ */ jsxs13("h2", { children: [
1643
- title,
1644
- " ",
1645
- /* @__PURE__ */ jsx14("span", { children: items.length })
1646
- ] }),
1647
- /* @__PURE__ */ jsx14("div", { className: "og-connection-catalog", "data-columns": "2", children: items.map((item) => /* @__PURE__ */ jsx14(
1648
- CapabilityCatalogRow,
1649
- {
1650
- name: item.name,
1651
- icon: item.icon,
1652
- status: item.needsAttention ? "attention" : "added",
1653
- statusLabel: item.needsAttention ? t("connectionInstalled.needsAttention") : void 0,
1654
- statusLine: item.status,
1655
- onOpen: item.onOpen,
1656
- disabled: item.disabled,
1657
- title: item.status
1658
- },
1659
- item.id
1660
- )) })
1661
- ] });
1662
- }
1663
-
1664
- // src/connection-type-picker.tsx
1665
- import { useId } from "react";
1666
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
1667
- function ConnectionTypePicker({
1668
- value,
1669
- onChange,
1670
- disabled = false
1671
- }) {
1672
- const t = useOpenGeniText();
1673
- const name = useId();
1674
- return /* @__PURE__ */ jsxs14("fieldset", { className: "og-connection-type-picker", disabled, children: [
1675
- /* @__PURE__ */ jsx15("legend", { children: t("connectionTypePicker.connectionType") }),
1676
- [
1677
- ["mcp", t("connectionTypePicker.mcpServer")],
1678
- ["openapi", "OpenAPI"],
1679
- ["graphql", "GraphQL"]
1680
- ].map(([type, label]) => /* @__PURE__ */ jsxs14("label", { "data-selected": value === type, children: [
1681
- /* @__PURE__ */ jsx15(
1682
- "input",
1683
- {
1684
- type: "radio",
1685
- name,
1686
- value: type,
1687
- checked: value === type,
1688
- onChange: () => onChange(type)
1689
- }
1690
- ),
1691
- label
1692
- ] }, type))
1693
- ] });
1694
- }
1695
-
1696
- // src/plugin-discovery.tsx
1697
- import { useEffect as useEffect9, useRef as useRef6, useState as useState10 } from "react";
1698
- import { BoxesIcon } from "lucide-react";
1699
- import { Fragment as Fragment6, jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
1700
- var discoveryCache2 = createDiscoveryCache();
1701
- var spacedName = (name) => name.replace(/-/g, " ");
1702
- var EMPTY_INSTALLED_IDS = /* @__PURE__ */ new Set();
1703
- function PluginDiscovery(props) {
1704
- const t = useOpenGeniText();
1705
- const [provider, setProvider] = useState10(props.defaultProvider ?? "");
1706
- return /* @__PURE__ */ jsxs15(
1707
- "section",
1708
- {
1709
- className: `og-plugin-discovery ${props.resultLimit ? "og-catalog-overview" : ""}`,
1710
- "aria-label": t("pluginDiscovery.discoverPlugins"),
1711
- children: [
1712
- /* @__PURE__ */ jsxs15("header", { children: [
1713
- /* @__PURE__ */ jsx16("h3", { children: props.resultLimit ? t("pluginDiscovery.plugins") : t("pluginDiscovery.browsePlugins") }),
1714
- !props.resultLimit ? /* @__PURE__ */ jsx16(
1715
- "div",
1716
- {
1717
- className: "og-plugin-filters",
1718
- role: "group",
1719
- "aria-label": t("pluginDiscovery.pluginRegistry"),
1720
- children: [
1721
- { value: "", label: t("pluginDiscovery.all") },
1722
- { value: "openai", label: t("pluginDiscovery.openaiPluginRegistry") },
1723
- { value: "anthropic", label: t("pluginDiscovery.anthropicPluginRegistry") }
1724
- ].map((option) => /* @__PURE__ */ jsx16(
1725
- "button",
1726
- {
1727
- type: "button",
1728
- "aria-pressed": provider === option.value,
1729
- onClick: () => setProvider(option.value),
1730
- children: option.label
1731
- },
1732
- option.value
1733
- ))
1734
- }
1735
- ) : null
1736
- ] }),
1737
- /* @__PURE__ */ jsx16(
1738
- Results,
1739
- {
1740
- ...props,
1741
- provider
1742
- },
1743
- `${props.workspaceId}:${props.query}:${provider}`
1744
- )
1745
- ]
1746
- }
1747
- );
1748
- }
1749
- function Results({
1750
- client,
1751
- workspaceId,
1752
- query,
1753
- provider,
1754
- installedIds = EMPTY_INSTALLED_IDS,
1755
- onOpen,
1756
- resultLimit,
1757
- onShowMore,
1758
- formatName = spacedName,
1759
- renderIcon
1760
- }) {
1761
- const t = useOpenGeniText();
1762
- const initial = discoveryCache2.peek(client, JSON.stringify([workspaceId, query, provider, 0]));
1763
- const [items, setItems] = useState10(initial?.items ?? []);
1764
- const [offset, setOffset] = useState10(0);
1765
- const [next, setNext] = useState10(initial?.nextOffset ?? null);
1766
- const [total, setTotal] = useState10(initial?.total ?? 0);
1767
- const [loading, setLoading] = useState10(!initial);
1768
- const [error, setError] = useState10(false);
1769
- const [retry, setRetry] = useState10(0);
1770
- const sentinel = useRef6(null);
1771
- useEffect9(() => {
1772
- let active = true;
1773
- const cacheKey = JSON.stringify([workspaceId, query, provider, offset]);
1774
- const cached = discoveryCache2.peek(client, cacheKey);
1775
- setLoading(!cached);
1776
- setError(false);
1777
- const timer = setTimeout(
1778
- () => {
1779
- void discoveryCache2.read(
1780
- client,
1781
- cacheKey,
1782
- () => client.discoverPlugins(workspaceId, { query, provider, offset })
1783
- ).then(
1784
- (page) => {
1785
- if (!active) return;
1786
- setItems((previous) => offset ? [...previous, ...page.items] : page.items);
1787
- setTotal(page.total);
1788
- setNext(page.nextOffset);
1789
- setLoading(false);
1790
- },
1791
- () => {
1792
- if (active) {
1793
- setError(true);
1794
- setLoading(false);
1795
- }
1796
- }
1797
- );
1798
- },
1799
- cached || offset ? 0 : 200
1800
- );
1801
- return () => {
1802
- active = false;
1803
- clearTimeout(timer);
1804
- };
1805
- }, [client, workspaceId, query, provider, offset, retry]);
1806
- useEffect9(() => {
1807
- if (resultLimit || loading || error || next === null || !sentinel.current) return;
1808
- const observer = new IntersectionObserver(
1809
- (entries) => {
1810
- if (entries.some((entry) => entry.isIntersecting)) setOffset(next);
1811
- },
1812
- { rootMargin: "200px" }
1813
- );
1814
- observer.observe(sentinel.current);
1815
- return () => observer.disconnect();
1816
- }, [loading, error, next, resultLimit]);
1817
- return /* @__PURE__ */ jsxs15(Fragment6, { children: [
1818
- !loading && !error ? /* @__PURE__ */ jsx16("p", { role: "status", children: total ? t("pluginDiscovery.bundlesOfSkillsAndConnections") : query.trim() ? t("pluginDiscovery.noMatchesForTrim", { trim: query.trim() }) : t("pluginDiscovery.noPluginsInThisRegistry") }) : null,
1819
- /* @__PURE__ */ jsx16("div", { className: "og-plugin-discovery-grid", children: items.slice(0, resultLimit).map((item) => /* @__PURE__ */ jsx16(
1820
- CapabilityCatalogRow,
1821
- {
1822
- "data-plugin-id": item.id,
1823
- name: formatName(item.displayName),
1824
- description: item.description,
1825
- status: installedIds.has(item.id) ? "added" : "available",
1826
- statusLabel: installedIds.has(item.id) ? t("pluginDiscovery.installed") : t("pluginDiscovery.availableToInstall"),
1827
- onOpen: () => onOpen(item),
1828
- icon: renderIcon ? renderIcon(item) : /* @__PURE__ */ jsx16(
1829
- ConnectionLogo,
1830
- {
1831
- src: item.logoUrl,
1832
- name: item.displayName,
1833
- fallback: /* @__PURE__ */ jsx16(BoxesIcon, { "aria-hidden": "true" })
1834
- }
1835
- )
1836
- },
1837
- item.id
1838
- )) }),
1839
- loading ? /* @__PURE__ */ jsx16("p", { role: "status", children: t("pluginDiscovery.loadingPlugins") }) : null,
1840
- error ? /* @__PURE__ */ jsxs15("p", { role: "alert", children: [
1841
- t("pluginDiscovery.couldnTLoadPlugins"),
1842
- " ",
1843
- /* @__PURE__ */ jsx16("button", { type: "button", onClick: () => setRetry((value) => value + 1), children: t("pluginDiscovery.retry") })
1844
- ] }) : null,
1845
- resultLimit && !loading && !error && total > resultLimit ? /* @__PURE__ */ jsx16("button", { className: "og-catalog-more", type: "button", onClick: onShowMore, children: t("pluginDiscovery.viewAllPlugins") }) : null,
1846
- /* @__PURE__ */ jsx16("div", { ref: sentinel, children: !resultLimit && next !== null && !loading && !error ? /* @__PURE__ */ jsx16("button", { className: "og-plugin-more", type: "button", onClick: () => setOffset(next), children: t("pluginDiscovery.showMorePlugins") }) : null })
1847
- ] });
1848
- }
1849
-
1850
- export {
1851
- CapabilityCatalogIndicator,
1852
- CapabilityCatalogRow,
1853
- SkillDiscovery,
1854
- connectionOptionNeedsAttention,
1855
- attentionFirst,
1856
- ConnectionOptionRow,
1857
- ConnectionServiceRow,
1858
- ConnectionCatalog,
1859
- ConnectChooser,
1860
- ConnectAccounts,
1861
- ConnectionDiscovery,
1862
- ConnectPanel,
1863
- DeviceAuthorization,
1864
- IdentityLinkConsent,
1865
- IdentityLinkAccounts,
1866
- ConnectionInstalled,
1867
- ConnectionTypePicker,
1868
- PluginDiscovery
1869
- };
1870
- //# sourceMappingURL=chunk-BX7D2K7A.js.map