decocms 4.576.5 → 4.577.1

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 (503) hide show
  1. package/dist/client/assets/{AlertCircle-C4gtVV8B.js → AlertCircle-Bj2NuHQY.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DoDuLI5t.js → AreaChart-wF798x8i.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-DpMV6ZsI.js → ArrowLeft-DCMq103h.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BZtzDI6h.js → ArrowUp-AwRcCsuH.js} +1 -1
  5. package/dist/client/assets/BookOpen01-D2g_6Ti1.js +1 -0
  6. package/dist/client/assets/{CartesianChart-T_ULwjNy.js → CartesianChart-B6p3i5Ce.js} +1 -1
  7. package/dist/client/assets/{CategoricalChart-ysoAqy8Y.js → CategoricalChart-Bjq2Qe33.js} +1 -1
  8. package/dist/client/assets/{CheckCircle-DSJM5Ipe.js → CheckCircle-BfCYdSA_.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-Y1qRZSrs.js → ChevronSelectorVertical-Bwduw2Hp.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DlMNWluH.js → ChevronUp-JSFuaLqF.js} +1 -1
  11. package/dist/client/assets/{CreditCard01-DDsAjKey.js → CreditCard01-DsaJOWgX.js} +1 -1
  12. package/dist/client/assets/{Globe04-xh_ZOoQS.js → Globe04-BBKBtEaK.js} +1 -1
  13. package/dist/client/assets/{Key01-BnxP0_QL.js → Key01-BTIXWKkS.js} +1 -1
  14. package/dist/client/assets/{LinkBroken01-4XuFjBFS.js → LinkBroken01-DjOOxf0e.js} +1 -1
  15. package/dist/client/assets/{Minus-D8UqNYy4.js → Minus-BAq-AD33.js} +1 -1
  16. package/dist/client/assets/{Monitor01-CVDkBVET.js → Monitor01-CqtNhdJN.js} +1 -1
  17. package/dist/client/assets/{Play--aCtxlXx.js → Play-kmXfE4Am.js} +1 -1
  18. package/dist/client/assets/{Plus-DXpzgENj.js → Plus-Bq5KiXqn.js} +1 -1
  19. package/dist/client/assets/ReferenceLine-CcfMMo9r.js +1 -0
  20. package/dist/client/assets/{SearchMd-CWmEKOOP.js → SearchMd-D1P7yVqT.js} +1 -1
  21. package/dist/client/assets/ShoppingBag01-CAQ4NRTU.js +1 -0
  22. package/dist/client/assets/{Sun-wXzOhHYv.js → Sun-C5iV1Zpq.js} +1 -1
  23. package/dist/client/assets/{SwitchHorizontal01-C42vJfgE.js → SwitchHorizontal01-CP6L8rlm.js} +1 -1
  24. package/dist/client/assets/{Tool01-DB3xqZeL.js → Tool01-DAYJL0v-.js} +1 -1
  25. package/dist/client/assets/{Tooltip-Dz7b9lTi.js → Tooltip-DiDmzDgy.js} +1 -1
  26. package/dist/client/assets/{Trash01-BAWUFhrC.js → Trash01-Dt7pyOwE.js} +1 -1
  27. package/dist/client/assets/{Upload01-CMkGIZuR.js → Upload01-CZ2h76oj.js} +1 -1
  28. package/dist/client/assets/{UserSquare-NNxs0RWc.js → UserSquare-CBWDFbi3.js} +1 -1
  29. package/dist/client/assets/{Users01-DIshv_Ib.js → Users01-BZzvQda-.js} +1 -1
  30. package/dist/client/assets/{XClose-E_Sbr7JC.js → XClose-D2u966Hj.js} +1 -1
  31. package/dist/client/assets/{Zap-BFWL2aD-.js → Zap-CDj8jJFt.js} +1 -1
  32. package/dist/client/assets/{access-gate-H6si3iA0.js → access-gate-DL6Fx00C.js} +1 -1
  33. package/dist/client/assets/{add-connection-dialog-BCsDq0oB.js → add-connection-dialog-DXVmpebU.js} +1 -1
  34. package/dist/client/assets/agent-app-DClrb2ok.js +1 -0
  35. package/dist/client/assets/agent-assets-C4JxM7ek.js +1 -0
  36. package/dist/client/assets/agent-automation-BRLWOY9Z.js +20 -0
  37. package/dist/client/assets/agent-automations-Bi4PZQpt.js +1 -0
  38. package/dist/client/assets/agent-blog-CZFhSkNf.js +2 -0
  39. package/dist/client/assets/agent-blog-post-DWjaJsuP.js +2 -0
  40. package/dist/client/assets/agent-calendar-DVRrZoQI.js +1 -0
  41. package/dist/client/assets/{agent-capabilities-C7nwtlfn.js → agent-capabilities-DHVCvnvi.js} +1 -1
  42. package/dist/client/assets/agent-connect-sources-zocgSqV4.js +1 -0
  43. package/dist/client/assets/agent-deck-BQ_G3Xvk.js +1 -0
  44. package/dist/client/assets/agent-e2e-C7P50BKx.js +1 -0
  45. package/dist/client/assets/agent-experiments-B7tgn9fP.js +1 -0
  46. package/dist/client/assets/agent-file-CVIHN4Pv.js +1 -0
  47. package/dist/client/assets/agent-hosting-DmUbTOe2.js +1 -0
  48. package/dist/client/assets/agent-icon-BwEytdmh.js +1 -0
  49. package/dist/client/assets/agent-library-BhTWSN-a.js +1 -0
  50. package/dist/client/assets/agent-library-file-C9nXPWjk.js +1 -0
  51. package/dist/client/assets/agent-overview-gQqe-_Zq.js +1 -0
  52. package/dist/client/assets/agent-releases-Bxmxt--5.js +2 -0
  53. package/dist/client/assets/agent-settings-BZlQcdRN.js +1 -0
  54. package/dist/client/assets/{agent-site-editor-D7f7n9V8.js → agent-site-editor-Bxgpwy-D.js} +9 -9
  55. package/dist/client/assets/agent-site-editor-code-D3XwSBBo.js +2 -0
  56. package/dist/client/assets/agent-site-editor-content-5EK8c-yC.js +1 -0
  57. package/dist/client/assets/agent-site-editor-preview-DtbJe_5m.js +1 -0
  58. package/dist/client/assets/agent-view-DJh235b7.js +1 -0
  59. package/dist/client/assets/agent-view-guard-B4P_nOY3.js +1 -0
  60. package/dist/client/assets/ai-providers-CvpoHUFb.js +1 -0
  61. package/dist/client/assets/{alert-gT8z0xwu.js → alert-0-4Lk02S.js} +1 -1
  62. package/dist/client/assets/{analytics-sections-eEEKYoEI.js → analytics-sections-DEuK9yNO.js} +1 -1
  63. package/dist/client/assets/{api-keys-DQU6MrN9.js → api-keys-BWb-_Fqf.js} +1 -1
  64. package/dist/client/assets/api-keys-PaXWWj2O.js +1 -0
  65. package/dist/client/assets/app-editor-DVjFa_ip.js +1 -0
  66. package/dist/client/assets/{asset-utils-ClCcVH6C.js → asset-utils-DSh1-4fR.js} +1 -1
  67. package/dist/client/assets/{auth-DzshLgt0.js → auth-DFCgioOs.js} +1 -1
  68. package/dist/client/assets/{auth-catchall-knKXQdld.js → auth-catchall-_w9pWMK8.js} +1 -1
  69. package/dist/client/assets/{auth-entry-CjhDapLF.js → auth-entry-HAlWF4UX.js} +1 -1
  70. package/dist/client/assets/{auth-split-layout-Cs3K7qF9.js → auth-split-layout-BSaVPfK6.js} +1 -1
  71. package/dist/client/assets/{authenticate-and-persist-oauth-DyNu9KE-.js → authenticate-and-persist-oauth-BGX0Y23v.js} +1 -1
  72. package/dist/client/assets/{automation-list-row-BIIymyig.js → automation-list-row-Xayp8iFs.js} +1 -1
  73. package/dist/client/assets/{automation-runs-BJn2B7cC.js → automation-runs-CUwzltO7.js} +1 -1
  74. package/dist/client/assets/automations-C0bs2qin.js +1 -0
  75. package/dist/client/assets/{badge-FhnYiqmQ.js → badge-DbKUf3vA.js} +1 -1
  76. package/dist/client/assets/block-document-zkAHP8m2.js +3 -0
  77. package/dist/client/assets/{blocks-preview-workspace-context-DPP_AgWW.js → blocks-preview-workspace-context-DQL_zlqC.js} +1 -1
  78. package/dist/client/assets/{blocks-tab-states-DS5PjKyJ.js → blocks-tab-states-BUfMyINR.js} +1 -1
  79. package/dist/client/assets/blog-preview-url-CT-VZElJ.js +1 -0
  80. package/dist/client/assets/blog-schema-Dys-tzF0.js +1 -0
  81. package/dist/client/assets/blog-source-gate-CYaEgV9t.js +1 -0
  82. package/dist/client/assets/blog-view-gate-zXMdlu7Q.js +1 -0
  83. package/dist/client/assets/{buckets-Cm1lK-tx.js → buckets-DOgpbimo.js} +1 -1
  84. package/dist/client/assets/{build-improve-prompt-doc-CKmcH9eT.js → build-improve-prompt-doc-BMf33123.js} +1 -1
  85. package/dist/client/assets/{calendar-Dj2F2D9c.js → calendar-5Nt9EKO9.js} +1 -1
  86. package/dist/client/assets/{capability-load-error-YlZMyLIu.js → capability-load-error-BSxnBi9L.js} +1 -1
  87. package/dist/client/assets/category-editor-DziWemO6.js +1 -0
  88. package/dist/client/assets/category-tree-Cm0a3nBT.js +4 -0
  89. package/dist/client/assets/{chart-4euqV-4L.js → chart-DPgJVmAl.js} +1 -1
  90. package/dist/client/assets/chat-context-D8Eje7xK.js +39 -0
  91. package/dist/client/assets/{chat-draft-B1Q_ptQ-.js → chat-draft-ArmxHiV6.js} +1 -1
  92. package/dist/client/assets/{checkbox-Bq5cgSkE.js → checkbox-CCw3an34.js} +1 -1
  93. package/dist/client/assets/choose-editor-CXiL24Bl.js +1 -0
  94. package/dist/client/assets/{cli-auth-success-C9VZDuEf.js → cli-auth-success-c7wBWUO5.js} +1 -1
  95. package/dist/client/assets/{client-icons-x0Kj4XXu.js → client-icons-CuJeSv2A.js} +1 -1
  96. package/dist/client/assets/cms-settings-editor-gxtK9SOp.js +1 -0
  97. package/dist/client/assets/cms-store-drafts-chLFxeWf.js +1 -0
  98. package/dist/client/assets/collapsible-CVtLl5wO.js +1 -0
  99. package/dist/client/assets/collection-detail-D_Bcp_j6.js +1 -0
  100. package/dist/client/assets/{collection-display-button-B9tDNz3Q.js → collection-display-button-CnhRvkGN.js} +1 -1
  101. package/dist/client/assets/{collection-search-o_TUN55Q.js → collection-search-CC2QUXh2.js} +1 -1
  102. package/dist/client/assets/{collection-table-wrapper-CovrSOmj.js → collection-table-wrapper-DSy_nx4_.js} +1 -1
  103. package/dist/client/assets/{collection-tabs-C-HhSJ3V.js → collection-tabs-DHZJ_O9U.js} +1 -1
  104. package/dist/client/assets/{combobox-N56ErTGA.js → combobox-CB15NqGc.js} +1 -1
  105. package/dist/client/assets/{command-C4A_k1m6.js → command-BOSLOC8n.js} +1 -1
  106. package/dist/client/assets/{companion-mcps-section-BIgg4-5f.js → companion-mcps-section-CeNpBYo7.js} +1 -1
  107. package/dist/client/assets/config-DqdBgCnO.js +1 -0
  108. package/dist/client/assets/{connect-CAWALh6X.js → connect-WyHpmSHS.js} +3 -3
  109. package/dist/client/assets/{connect-layout-BGSvt_fK.js → connect-layout-D_zQARSX.js} +1 -1
  110. package/dist/client/assets/{connect-source-dialog-zXoRskIf.js → connect-source-dialog-DHtZw9ff.js} +1 -1
  111. package/dist/client/assets/{connection-DWztoPJi.js → connection-D0YCkaZO.js} +1 -1
  112. package/dist/client/assets/{connection-card-CWeiT8GU.js → connection-card-B1Rl2nXN.js} +1 -1
  113. package/dist/client/assets/connection-detail-LxUhih2_.js +1 -0
  114. package/dist/client/assets/{connection-form-helpers-DvFcvjHg.js → connection-form-helpers-CAOx4zgX.js} +1 -1
  115. package/dist/client/assets/{connection-slug-7qrL1eY0.js → connection-slug-BH_NX0Ks.js} +1 -1
  116. package/dist/client/assets/connections-BhxOwljy.js +1 -0
  117. package/dist/client/assets/content-tab-BdaE3oCc.js +19 -0
  118. package/dist/client/assets/context-BmOpD-Hr.js +1 -0
  119. package/dist/client/assets/{context-menu-CzVow7cK.js → context-menu-Df7WW_d5.js} +1 -1
  120. package/dist/client/assets/{context-shell-A1z9qMT_.js → context-shell-cJbikpSJ.js} +3 -3
  121. package/dist/client/assets/{core.esm-DbuDfvWF.js → core.esm-CAA73EV4.js} +2 -2
  122. package/dist/client/assets/{create-organization-dialog-D6MpLXO5.js → create-organization-dialog-BLvG9G-Z.js} +1 -1
  123. package/dist/client/assets/delete-copy-CAFEtw8Z.js +4 -0
  124. package/dist/client/assets/{device-hint-DKfCoj9a.js → device-hint-DgkMhcRQ.js} +1 -1
  125. package/dist/client/assets/discover-Cceep_sX.js +1 -0
  126. package/dist/client/assets/{domain-settings-EcbckpYF.js → domain-settings-52h_8fKM.js} +1 -1
  127. package/dist/client/assets/{drawer-DO5xJQb9.js → drawer-B9PFQFcy.js} +1 -1
  128. package/dist/client/assets/{editor-T1DFIh20.js → editor-DZ4pzlHx.js} +2 -2
  129. package/dist/client/assets/{editor-classes-XhTpecj4.js → editor-classes-Cb5f4sl2.js} +1 -1
  130. package/dist/client/assets/empty-message-CXYzekmD.js +15 -0
  131. package/dist/client/assets/{empty-state-DPWCLNrd.js → empty-state-BkAAjXrp.js} +1 -1
  132. package/dist/client/assets/{empty-state-DtO_Mv2g.js → empty-state-DMtSEEQ1.js} +1 -1
  133. package/dist/client/assets/experiments-tab-choice-CDm4A9Wq.js +1 -0
  134. package/dist/client/assets/{extract-connection-data-DBROTNmw.js → extract-connection-data-u6K4j2aJ.js} +1 -1
  135. package/dist/client/assets/feature-gate-DFWAlRCv.js +1 -0
  136. package/dist/client/assets/{feature-paywall-jPIGYZOc.js → feature-paywall-BiIzjBeB.js} +1 -1
  137. package/dist/client/assets/file-explorer-M__gA7Xu.js +2 -0
  138. package/dist/client/assets/{file-preview-D0iM2K-b.js → file-preview-D7WeSAA4.js} +1 -1
  139. package/dist/client/assets/{file-share-button-BsYWO9Hm.js → file-share-button-BtW_yxzc.js} +1 -1
  140. package/dist/client/assets/{file-type-icon-HeI2BZTs.js → file-type-icon-mKSSLPP8.js} +1 -1
  141. package/dist/client/assets/{folder-icon-DTWsvVbL.js → folder-icon-DCyvwLH6.js} +1 -1
  142. package/dist/client/assets/{form-BTSAyeiz.js → form-8HJUl2GV.js} +1 -1
  143. package/dist/client/assets/frame-navigation-Bp6fuuV5.js +1 -0
  144. package/dist/client/assets/general-C9cj7tJH.js +1 -0
  145. package/dist/client/assets/{github-icon-B_en9n_0.js → github-icon-DEvD-SlA.js} +1 -1
  146. package/dist/client/assets/held-block-view-DRxUlNuB.js +3 -0
  147. package/dist/client/assets/home-DR1hV3al.js +1 -0
  148. package/dist/client/assets/{home-overview-BRS8Q3rl.js → home-overview-CgBJdfHr.js} +1 -1
  149. package/dist/client/assets/hosted-reconcile-DH_YtUfF.js +1 -0
  150. package/dist/client/assets/{icon-button-BMTp1-QM.js → icon-button-CadQrI05.js} +1 -1
  151. package/dist/client/assets/{index-DwNl1Km0.js → index-8kUWDN7v.js} +1 -1
  152. package/dist/client/assets/index-BLdRRqFU.js +1 -0
  153. package/dist/client/assets/index-Bkf6As2Q.js +1 -0
  154. package/dist/client/assets/index-ButqNodW.js +4 -0
  155. package/dist/client/assets/{index-dCHDMdOx.js → index-BvGbwvSS.js} +1 -1
  156. package/dist/client/assets/{index-qsOMiawp.js → index-C1fc6W9Q.js} +1 -1
  157. package/dist/client/assets/{index-DGy42Noz.js → index-C5aoCNXr.js} +1 -1
  158. package/dist/client/assets/{index-DFaIOW9N.js → index-C9E0iqgh.js} +2 -2
  159. package/dist/client/assets/{index-DVvmeJMJ.js → index-CWKxkTwy.js} +47 -47
  160. package/dist/client/assets/{index-CWuPd_va.js → index-CcTmEE1N.js} +6 -6
  161. package/dist/client/assets/index-CzrYE4jE.js +1 -0
  162. package/dist/client/assets/{index-DlkOiyYS.js → index-DVdV24aR.js} +2 -2
  163. package/dist/client/assets/index-DYPWHH-M.css +1 -0
  164. package/dist/client/assets/{index-DlxA0Tmo.js → index-Tvs593C1.js} +1 -1
  165. package/dist/client/assets/{index-D1ksSwz3.js → index-_sPF1edR.js} +1 -1
  166. package/dist/client/assets/{index-DTVEZmhV.js → index-gX7QfQio.js} +1 -1
  167. package/dist/client/assets/{index-redirect-BEZcO3ft.js → index-redirect-DOlNtcAX.js} +1 -1
  168. package/dist/client/assets/{index-laonBzOU.js → index-t9nYrZiR.js} +1 -1
  169. package/dist/client/assets/{index-DyEEK3cc.js → index-yzkfeOP2.js} +1 -1
  170. package/dist/client/assets/{infiniteQueryObserver-Depn9DGH.js → infiniteQueryObserver-DCK-YXw1.js} +1 -1
  171. package/dist/client/assets/{infra-billing-BGMskgUq.js → infra-billing-B-pN25L9.js} +1 -1
  172. package/dist/client/assets/{input-aWrDx9Iy.js → input-1NX4JUHA.js} +3 -3
  173. package/dist/client/assets/{input-D4HN-yNN.js → input-DA-TtdGL.js} +1 -1
  174. package/dist/client/assets/{integration-icon-C9OIwyFH.js → integration-icon-C1bpkd7s.js} +1 -1
  175. package/dist/client/assets/item-actions-kNG-BlG3.js +1 -0
  176. package/dist/client/assets/{jira-icon-CnIpLe3l.js → jira-icon-CnBOGlR6.js} +1 -1
  177. package/dist/client/assets/{label-DxsI69Ti.js → label-BXSXPHWU.js} +1 -1
  178. package/dist/client/assets/{layout-m_pr21sI.js → layout-C0J9eFzL.js} +1 -1
  179. package/dist/client/assets/{legacy-admin-welcome-dialog-DIDvLt4b.js → legacy-admin-welcome-dialog-DbVWjlJ6.js} +1 -1
  180. package/dist/client/assets/{legacy-agents-deep-CK9Gbzky.js → legacy-agents-deep-DVKmxbFS.js} +1 -1
  181. package/dist/client/assets/{legacy-main-redirect-Cep_68fb.js → legacy-main-redirect-D0wT4Yry.js} +1 -1
  182. package/dist/client/assets/library-sYbbN7ux.js +1 -0
  183. package/dist/client/assets/{library-tab-Dy0wbynU.js → library-tab-gK_7g-te.js} +4 -4
  184. package/dist/client/assets/{login-FVvIKUmZ.js → login-DnxvVl1t.js} +1 -1
  185. package/dist/client/assets/{markdown-DY1gkJzE.js → markdown-DiEygcQw.js} +1 -1
  186. package/dist/client/assets/{mcp-app-renderer-CbbHrG36.js → mcp-app-renderer-BbTTGmQC.js} +1 -1
  187. package/dist/client/assets/{mcp-oauth-B4bma3Oc.js → mcp-oauth-CQGGouuy.js} +1 -1
  188. package/dist/client/assets/{mcp-oauth-Dz6mx5UF.js → mcp-oauth-TUUsAJpA.js} +1 -1
  189. package/dist/client/assets/{members-CoNUsoOs.js → members-nUmVbnC9.js} +1 -1
  190. package/dist/client/assets/{memory-CJmsq8GA.js → memory-Blrtbn8a.js} +2 -2
  191. package/dist/client/assets/{mock-board-C-Bptu2a.js → mock-board-CC-isAOX.js} +3 -3
  192. package/dist/client/assets/{monaco-editor-ChRuLOCA.js → monaco-editor-C9ZwdTpU.js} +1 -1
  193. package/dist/client/assets/{monitoring-DOIwwqmT.js → monitoring-B36SUiOP.js} +2 -2
  194. package/dist/client/assets/{monitoring-stats-row-MlJzIKBz.js → monitoring-stats-row-H3pnSbDz.js} +1 -1
  195. package/dist/client/assets/{multi-select-HzpZ3y0m.js → multi-select-obeT7dRo.js} +1 -1
  196. package/dist/client/assets/mustache-gM754ehf.js +4 -0
  197. package/dist/client/assets/named-rule-step-W9P9uG-f.js +1 -0
  198. package/dist/client/assets/named-rule-view-BJLbVNsp.js +1 -0
  199. package/dist/client/assets/{new-project-dialog-DNs6nXJU.js → new-project-dialog-Cfdy4DZo.js} +1 -1
  200. package/dist/client/assets/{oauth-callback-DJ1LZft0.js → oauth-callback-Cxz67hG6.js} +1 -1
  201. package/dist/client/assets/{oauth-callback-ai-provider-DdjujeOM.js → oauth-callback-ai-provider-Diui0sS6.js} +1 -1
  202. package/dist/client/assets/{oauth-consent-C7arrnjn.js → oauth-consent-BWS32jU1.js} +1 -1
  203. package/dist/client/assets/{onboarding-DCEuM15Q.js → onboarding-Cg2Txb26.js} +1 -1
  204. package/dist/client/assets/openai-conversation-CGGu6BWJ.js +3 -0
  205. package/dist/client/assets/{optimistic-project-sidebar-views-Bxu9JyYq.js → optimistic-project-sidebar-views-cd4O2LnM.js} +1 -1
  206. package/dist/client/assets/{order-monitor-day-BHRAsIfi.js → order-monitor-day-DrziIuIu.js} +1 -1
  207. package/dist/client/assets/{organization-choice-BLi_jfq-.js → organization-choice-CPef1x_g.js} +1 -1
  208. package/dist/client/assets/{orgs-B0FFSMlY.js → orgs--h6JaB89.js} +1 -1
  209. package/dist/client/assets/{own-accounts-section-BPiQsCnH.js → own-accounts-section-D0sCVz2F.js} +1 -1
  210. package/dist/client/assets/{pair-BefVcuJk.js → pair-DbwVEDlq.js} +7 -7
  211. package/dist/client/assets/parse-sections-CMxFIp3d.js +4 -0
  212. package/dist/client/assets/plan-1pM1JHac.js +1 -0
  213. package/dist/client/assets/{plan-ladder-BIrfRC9w.js → plan-ladder-XiZUV3-n.js} +1 -1
  214. package/dist/client/assets/{plan-usage-card-9-4sECew.js → plan-usage-card-BsCyr1kn.js} +2 -2
  215. package/dist/client/assets/{popover-DVbSl4_S.js → popover-CTEYICXO.js} +1 -1
  216. package/dist/client/assets/post-calendar-DbsJgYWp.js +1 -0
  217. package/dist/client/assets/post-editor-GP7cTHEm.js +2 -0
  218. package/dist/client/assets/{preview-content-4sXQQAYj.js → preview-content-BYvAegAr.js} +1 -1
  219. package/dist/client/assets/{preview-dialog-DdT5D37e.js → preview-dialog-tONoLcHy.js} +1 -1
  220. package/dist/client/assets/{preview-panel-08gBYjqh.js → preview-panel-CxdwWGtV.js} +1 -1
  221. package/dist/client/assets/preview-tab-BJQS3_gN.js +551 -0
  222. package/dist/client/assets/{product-picker-dialog-CK0DishF.js → product-picker-dialog-DVmdugXw.js} +1 -1
  223. package/dist/client/assets/{profile-D-F6LVIp.js → profile-CFEIL030.js} +1 -1
  224. package/dist/client/assets/project-app-view-DpcLMitT.js +1 -0
  225. package/dist/client/assets/project-apps-T4OBSnxG.js +1 -0
  226. package/dist/client/assets/{project-icon-BfdBakvS.js → project-icon-CsM5Xu_3.js} +1 -1
  227. package/dist/client/assets/{project-index-CIwgcHHa.js → project-index-CnwYmkRd.js} +1 -1
  228. package/dist/client/assets/project-reports-Bsj_xvMI.js +1 -0
  229. package/dist/client/assets/project-tasks-BGrqP4mL.js +1 -0
  230. package/dist/client/assets/projects-D9OLRq0V.js +1 -0
  231. package/dist/client/assets/{projects-empty-state-CNEfVw65.js → projects-empty-state-DAdhJyFi.js} +1 -1
  232. package/dist/client/assets/{prompts-xdLcYGyB.js → prompts-hNC_o6uG.js} +1 -1
  233. package/dist/client/assets/record-editor-BUh6IBbj.js +1 -0
  234. package/dist/client/assets/redirect-editor-CRbYvUNE.js +1 -0
  235. package/dist/client/assets/{reports-BoYTb5US.js → reports-CoqdbgJH.js} +1 -1
  236. package/dist/client/assets/reports-D5qXQXTJ.js +1 -0
  237. package/dist/client/assets/reports-onboarding-B8pLePIS.js +1 -0
  238. package/dist/client/assets/reports-tab-BTcGlLJG.js +2 -0
  239. package/dist/client/assets/repositories-Cb1lXF50.js +1 -0
  240. package/dist/client/assets/repositories-cxta7jGt.js +1 -0
  241. package/dist/client/assets/{repository-binding-DJpVzzIq.js → repository-binding-DScgU6HN.js} +1 -1
  242. package/dist/client/assets/repository-picker-BUWqEoln.js +1 -0
  243. package/dist/client/assets/{require-capability-BpMqCrIS.js → require-capability-Cqs162cO.js} +1 -1
  244. package/dist/client/assets/{required-auth-layout-BIQCwVTO.js → required-auth-layout-BiIyXd3D.js} +1 -1
  245. package/dist/client/assets/{reset-password-BKzfgMBU.js → reset-password-da4PvhID.js} +1 -1
  246. package/dist/client/assets/{resizable-C9_scy3R.js → resizable-Bf-xwR0k.js} +1 -1
  247. package/dist/client/assets/resolve-tab-icon-CGJDnTEl.js +1 -0
  248. package/dist/client/assets/review-settings-Ulx4CyPZ.js +1 -0
  249. package/dist/client/assets/role-color-C7dBdDUi.js +1 -0
  250. package/dist/client/assets/roles-z96sRIvs.js +1 -0
  251. package/dist/client/assets/route-CNldsqd_.js +1 -0
  252. package/dist/client/assets/route-D7eWiLEQ.js +1 -0
  253. package/dist/client/assets/route-UFlyMaLZ.js +1 -0
  254. package/dist/client/assets/{sandbox-lifecycle-context-_uINbsP3.js → sandbox-lifecycle-context-DY2xu0Uo.js} +1 -1
  255. package/dist/client/assets/save-status-DshwUBI8.js +1 -0
  256. package/dist/client/assets/{schema-ChSE97DN.js → schema-DUByfd2Y.js} +1 -1
  257. package/dist/client/assets/{schema-CzuWRpLl.js → schema-DWYnTC39.js} +1 -1
  258. package/dist/client/assets/{scroll-area-D1j-ZNOk.js → scroll-area-EO9hsjie.js} +1 -1
  259. package/dist/client/assets/search-input-Dc1w2xyv.js +1 -0
  260. package/dist/client/assets/{search-toggle-BSwOQVMD.js → search-toggle-BZIowSkC.js} +1 -1
  261. package/dist/client/assets/{secret-picker-zgl1t1WE.js → secret-picker-t9uXEG8-.js} +1 -1
  262. package/dist/client/assets/{secrets-Dvs-hzm1.js → secrets-CPHCsh_T.js} +1 -1
  263. package/dist/client/assets/section-array-field-BFg67nYp.js +1 -0
  264. package/dist/client/assets/{sections-COYsDPZ3.js → sections-CrmI_GQr.js} +1 -1
  265. package/dist/client/assets/sections-editor-CrXI2Bvd.js +1 -0
  266. package/dist/client/assets/{select-CBAbBtbp.js → select-CWL8C0Pw.js} +1 -1
  267. package/dist/client/assets/{select-model-CScqhZ6D.js → select-model-_wNlq-Z9.js} +1 -1
  268. package/dist/client/assets/seo-editor-B3mQn1CH.js +1 -0
  269. package/dist/client/assets/{separator-B-2WnIuS.js → separator-Cyq4ZO_K.js} +1 -1
  270. package/dist/client/assets/settings-tab-CDHhpvzE.js +1 -0
  271. package/dist/client/assets/{sheet-BSTYuLMa.js → sheet-Bqz29cSo.js} +1 -1
  272. package/dist/client/assets/shell-layout-DVIwCYxA.js +1 -0
  273. package/dist/client/assets/site-draft-actions-DQ2Ndjsf.js +3 -0
  274. package/dist/client/assets/site-draft-view-CIEvFlZ7.js +1 -0
  275. package/dist/client/assets/site-editor-C927WhHx.js +1 -0
  276. package/dist/client/assets/{site-editor-toast-Bz5hIXUq.js → site-editor-toast-BLqoqKy_.js} +1 -1
  277. package/dist/client/assets/skills-0h7pumIQ.js +1 -0
  278. package/dist/client/assets/{slider-B-4p3Nob.js → slider-GCMZAdst.js} +1 -1
  279. package/dist/client/assets/{sortable.esm-BMq0DSBR.js → sortable.esm-CYzspn3s.js} +1 -1
  280. package/dist/client/assets/{sso-D7rzaxll.js → sso-Ca2H_kJv.js} +1 -1
  281. package/dist/client/assets/suggestion-CppSMZxc.js +2 -0
  282. package/dist/client/assets/{super-agent-icon-CSXn8PV0.js → super-agent-icon-Dq0ZAaMf.js} +1 -1
  283. package/dist/client/assets/{switch-BoeP0_DT.js → switch-DBO_GrNe.js} +1 -1
  284. package/dist/client/assets/synced-repos-BTn3MABM.js +1 -0
  285. package/dist/client/assets/{tab-icon-glyph-DWwnpbAG.js → tab-icon-glyph-BaeBTavE.js} +1 -1
  286. package/dist/client/assets/{table-XIxdhyNo.js → table-xCmpwB0s.js} +1 -1
  287. package/dist/client/assets/{tabs-B314G2il.js → tabs-rkhPwLiJ.js} +1 -1
  288. package/dist/client/assets/{task-board-D-pfBnAn.js → task-board-D7RCmGkN.js} +1 -1
  289. package/dist/client/assets/{task-route-DrEh97G3.js → task-route-BJeZEOaQ.js} +1 -1
  290. package/dist/client/assets/{task-status-B5Pet88z.js → task-status-ISwbNtXh.js} +1 -1
  291. package/dist/client/assets/taskboard-analytics-B3vmd83_.js +1 -0
  292. package/dist/client/assets/{tasks-D1UDrE84.js → tasks-BLz1W4rF.js} +3 -3
  293. package/dist/client/assets/tasks-hZ3cVL1W.js +1 -0
  294. package/dist/client/assets/{textarea-yEyl1P1k.js → textarea-CvY2QE-l.js} +1 -1
  295. package/dist/client/assets/thread-analytics-DmP3G179.js +1 -0
  296. package/dist/client/assets/{thread-intent-BNVTtSHt.js → thread-intent-0TjSPqLd.js} +6 -6
  297. package/dist/client/assets/thread-route-4ZjlovaL.js +1 -0
  298. package/dist/client/assets/{thread-route-C8VqFbkH.js → thread-route-BbSych2c.js} +1 -1
  299. package/dist/client/assets/{thread-sheet-body-BPfgeSL4.js → thread-sheet-body-JQX8n1oy.js} +1 -1
  300. package/dist/client/assets/{time-range-picker-BvmuiVyh.js → time-range-picker-Bcp8sqUk.js} +1 -1
  301. package/dist/client/assets/{toggle-group-pyWm-TzL.js → toggle-group-BPubP3Pi.js} +1 -1
  302. package/dist/client/assets/{tool-namespace-CtWbol20.js → tool-namespace-c-MaHIy3.js} +1 -1
  303. package/dist/client/assets/{tool-set-selector-o7QGolVt.js → tool-set-selector-qnchAzSg.js} +1 -1
  304. package/dist/client/assets/{toolbar-icon-button-DJE3OEfz.js → toolbar-icon-button-DqW_CkJO.js} +1 -1
  305. package/dist/client/assets/{tooltip-BVrosRIK.js → tooltip-mM1fQXaq.js} +1 -1
  306. package/dist/client/assets/{tooltipContext-qYwD6VMh.js → tooltipContext-B2y0_sWP.js} +1 -1
  307. package/dist/client/assets/{track-CeXWn-zt.js → track-XkKLQQJT.js} +1 -1
  308. package/dist/client/assets/{types-DDm1cJJv.js → types-E9_eqrxO.js} +3 -3
  309. package/dist/client/assets/{url-slug-W6aFEmJF.js → url-slug-BVpN8K6B.js} +1 -1
  310. package/dist/client/assets/{usage-stats-Dhf-DrML.js → usage-stats-DT9jvl-J.js} +2 -2
  311. package/dist/client/assets/{use-ai-providers-Cq3xA9Zt.js → use-ai-providers-Bku85sJ3.js} +1 -1
  312. package/dist/client/assets/use-apply-named-rule-Bwm7LB-d.js +1 -0
  313. package/dist/client/assets/use-ask-in-chat-C5w0G3Ru.js +1 -0
  314. package/dist/client/assets/{use-automations-BVThKMGQ.js → use-automations-D9iFnWhp.js} +1 -1
  315. package/dist/client/assets/use-autosave-CLbBIg-P.js +1 -0
  316. package/dist/client/assets/use-blocks-v8-project-BTQz7erp.js +1 -0
  317. package/dist/client/assets/use-chat-layout-state-Cbkyo6cP.js +1 -0
  318. package/dist/client/assets/{use-cms-publish-actions-C7zW1hZf.js → use-cms-publish-actions-XYKTfqt2.js} +5 -5
  319. package/dist/client/assets/{use-connect-companion-B9VAml3x.js → use-connect-companion-DCIdJC0W.js} +1 -1
  320. package/dist/client/assets/use-connection-CLoaxXGr.js +1 -0
  321. package/dist/client/assets/use-content-sync-14ry1gRC.js +1 -0
  322. package/dist/client/assets/{use-copy-DT5ZzrsX.js → use-copy-D3ELC0tX.js} +1 -1
  323. package/dist/client/assets/{use-date-fns-locale-Co74b8Ww.js → use-date-fns-locale-DU1bARSL.js} +1 -1
  324. package/dist/client/assets/{use-debounced-autosave-4hpLvgm-.js → use-debounced-autosave-Dxp05968.js} +1 -1
  325. package/dist/client/assets/{use-debounced-value-jJnqowMI.js → use-debounced-value-CgYJanEq.js} +1 -1
  326. package/dist/client/assets/{use-deco-credits-BQqUH0BV.js → use-deco-credits-DlgC2mIc.js} +1 -1
  327. package/dist/client/assets/use-decopilot-events-DhxeqkWl.js +1 -0
  328. package/dist/client/assets/use-delete-block-BJD7162e.js +1 -0
  329. package/dist/client/assets/use-delete-connection-DtzGQTsr.js +1 -0
  330. package/dist/client/assets/{use-deployment-admin-CDyLX01_.js → use-deployment-admin-8guQU4GC.js} +1 -1
  331. package/dist/client/assets/{use-entitlements-u-J4FrTi.js → use-entitlements-J4XPZF2l.js} +1 -1
  332. package/dist/client/assets/use-fast-preview-draft-url-BX0PGrG_.js +1 -0
  333. package/dist/client/assets/{use-file-configs-BbIIeRpu.js → use-file-configs-DngvlIXa.js} +1 -1
  334. package/dist/client/assets/{use-id-selection-CUD8oDcN.js → use-id-selection-Dkbf-QZH.js} +1 -1
  335. package/dist/client/assets/{use-inbox-feed-CcPQJJTK.js → use-inbox-feed-b7aNeh2-.js} +1 -1
  336. package/dist/client/assets/{use-infinite-scroll-CfhQVaOS.js → use-infinite-scroll-BWIp-OKY.js} +1 -1
  337. package/dist/client/assets/{use-join-requests-CkLvGQO2.js → use-join-requests-CdvnKUpu.js} +1 -1
  338. package/dist/client/assets/use-main-panel-tabs-i0OC0oRI.js +1 -0
  339. package/dist/client/assets/{use-mcp-auth-status-KGdhyspi.js → use-mcp-auth-status-CxxAbIdU.js} +1 -1
  340. package/dist/client/assets/{use-mcp-client-Bh7kEUBS.js → use-mcp-client-CmWEhN6T.js} +10 -10
  341. package/dist/client/assets/{use-mcp-prompts-BvdRcLVu.js → use-mcp-prompts-RB8yW0_L.js} +1 -1
  342. package/dist/client/assets/{use-mcp-tools-BXarw5nj.js → use-mcp-tools-Bfew76Ae.js} +1 -1
  343. package/dist/client/assets/{use-mobile-Dc6kWu8K.js → use-mobile-BZ5I1Gts.js} +1 -1
  344. package/dist/client/assets/use-move-blocks-a-Gpcz1Q.js +1 -0
  345. package/dist/client/assets/use-navigate-to-agent-CMbT8SLE.js +1 -0
  346. package/dist/client/assets/use-never-published-Cq663vOp.js +1 -0
  347. package/dist/client/assets/{use-org-fs-DrGQDt6z.js → use-org-fs-D8fqy59B.js} +1 -1
  348. package/dist/client/assets/{use-org-repo-syncs-CJN2n862.js → use-org-repo-syncs-D0tdQJ2P.js} +1 -1
  349. package/dist/client/assets/{use-org-sso-3rJKFGHZ.js → use-org-sso-D-kGbeq_.js} +1 -1
  350. package/dist/client/assets/{use-organization-settings-Dw2wmQuO.js → use-organization-settings-BZz5ibUN.js} +1 -1
  351. package/dist/client/assets/use-project-native-view-presence-BbI14MhH.js +1 -0
  352. package/dist/client/assets/use-project-scope-3ijTexFj.js +1 -0
  353. package/dist/client/assets/use-recent-apps-CWPH7SDm.js +1 -0
  354. package/dist/client/assets/{use-reports-diagnostic-CnV_YMfp.js → use-reports-diagnostic-V-qftvBJ.js} +1 -1
  355. package/dist/client/assets/use-sandbox-events-CBP-Uwww.js +2 -0
  356. package/dist/client/assets/{use-secrets-CYyoVB7k.js → use-secrets-CfMZEME2.js} +1 -1
  357. package/dist/client/assets/use-section-preview-base-DxIpbqPr.js +1 -0
  358. package/dist/client/assets/{use-sidebar-collapsed-CGsrtxLO.js → use-sidebar-collapsed-Cbxz0vjB.js} +1 -1
  359. package/dist/client/assets/{use-tags-D570CleN.js → use-tags-DTSxZWpz.js} +1 -1
  360. package/dist/client/assets/{use-task-board-analytics-DCDiNKaK.js → use-task-board-analytics-BKNhIlpV.js} +1 -1
  361. package/dist/client/assets/{use-task-board-events-DUIQmo3-.js → use-task-board-events-MfMFlaj-.js} +1 -1
  362. package/dist/client/assets/{use-task-board-item-prs-CG0dFrGw.js → use-task-board-item-prs-i0iDRtks.js} +1 -1
  363. package/dist/client/assets/{use-task-board-items-BB9JhdmM.js → use-task-board-items-6-h_Haer.js} +1 -1
  364. package/dist/client/assets/{use-task-board-prompts-DTmkMV_c.js → use-task-board-prompts-BzepMvGT.js} +1 -1
  365. package/dist/client/assets/{use-task-metadata-qW9LtgU4.js → use-task-metadata-CkJg1Id-.js} +1 -1
  366. package/dist/client/assets/{use-thread-outputs-CtFiUcL7.js → use-thread-outputs-DegzudvH.js} +1 -1
  367. package/dist/client/assets/use-view-draft-kind-BQ4N5uEB.js +1 -0
  368. package/dist/client/assets/{use-voice-input-DyZTYy5g.js → use-voice-input-vD0BpiqU.js} +1 -1
  369. package/dist/client/assets/useInfiniteQuery-njPYFTao.js +1 -0
  370. package/dist/client/assets/{useQueries-1XxIGeEN.js → useQueries-D6BmTkII.js} +1 -1
  371. package/dist/client/assets/useSuspenseInfiniteQuery-CSPS7F0z.js +1 -0
  372. package/dist/client/assets/{users-I0fvIaz3.js → users-RduqDlHV.js} +1 -1
  373. package/dist/client/assets/{utils-Pt7-9-Ev.js → utils-CkU_P8Ie.js} +2 -2
  374. package/dist/client/assets/variant-calendar-1rTVvyAx.js +1 -0
  375. package/dist/client/assets/{variant-matcher-override-BZrGhjnT.js → variant-matcher-override-B3zGkPXZ.js} +1 -1
  376. package/dist/client/assets/{view-header-D7Xjp31c.js → view-header-B-Vek7fH.js} +1 -1
  377. package/dist/client/assets/virtual-mcp-DPJ0M-HO.js +1 -0
  378. package/dist/client/assets/{watch-sse-pool-B9yUO9oy.js → watch-sse-pool-DqTWfbxM.js} +1 -1
  379. package/dist/client/index.html +2 -2
  380. package/dist/server/server.js +584 -584
  381. package/package.json +1 -1
  382. package/dist/client/assets/ReferenceLine-CyROiAPM.js +0 -1
  383. package/dist/client/assets/ShoppingBag01-ClDrdJV2.js +0 -1
  384. package/dist/client/assets/agent-app-Bl_mPh_t.js +0 -1
  385. package/dist/client/assets/agent-assets-B5UWuXnl.js +0 -1
  386. package/dist/client/assets/agent-automation-C9PBjiVk.js +0 -20
  387. package/dist/client/assets/agent-automations-CMf5dE3K.js +0 -1
  388. package/dist/client/assets/agent-calendar-DfZ4ErN1.js +0 -1
  389. package/dist/client/assets/agent-connect-sources-DwgsD8vQ.js +0 -1
  390. package/dist/client/assets/agent-deck-DjXPR_Nl.js +0 -1
  391. package/dist/client/assets/agent-e2e-BRjoGfW2.js +0 -1
  392. package/dist/client/assets/agent-experiments-CA2mbR8k.js +0 -1
  393. package/dist/client/assets/agent-file-BQdiAqSO.js +0 -1
  394. package/dist/client/assets/agent-hosting-D5KChDQU.js +0 -1
  395. package/dist/client/assets/agent-icon-uDqFfzhf.js +0 -1
  396. package/dist/client/assets/agent-library-2kWug_zO.js +0 -1
  397. package/dist/client/assets/agent-library-file-DtPgl6Sc.js +0 -1
  398. package/dist/client/assets/agent-overview-CXQy1R3G.js +0 -1
  399. package/dist/client/assets/agent-releases-CaysxAFQ.js +0 -2
  400. package/dist/client/assets/agent-settings-Bt8gf0xs.js +0 -1
  401. package/dist/client/assets/agent-site-editor-code-DfcTCTxX.js +0 -2
  402. package/dist/client/assets/agent-site-editor-content-B47YLbhf.js +0 -1
  403. package/dist/client/assets/agent-site-editor-preview-Ci1e5zpi.js +0 -1
  404. package/dist/client/assets/agent-view-FTi4q4vz.js +0 -1
  405. package/dist/client/assets/agent-view-guard-BP5FCFpQ.js +0 -1
  406. package/dist/client/assets/ai-providers-CQ29Z6f1.js +0 -1
  407. package/dist/client/assets/api-keys-h9YcYrMI.js +0 -1
  408. package/dist/client/assets/app-editor-BSqFGCuO.js +0 -1
  409. package/dist/client/assets/automations-Xmpwvi6F.js +0 -1
  410. package/dist/client/assets/autosend-D-UTWUhf.js +0 -1
  411. package/dist/client/assets/block-document-0w5M-3LO.js +0 -3
  412. package/dist/client/assets/blog-schema-CYWT4exY.js +0 -1
  413. package/dist/client/assets/category-editor-BRFXJMj8.js +0 -1
  414. package/dist/client/assets/chat-context-bTdV0PQS.js +0 -39
  415. package/dist/client/assets/choose-editor-CKJ9YUAD.js +0 -1
  416. package/dist/client/assets/cms-settings-editor-Bl0s5YWk.js +0 -1
  417. package/dist/client/assets/cms-store-drafts-B8sdeq2z.js +0 -1
  418. package/dist/client/assets/collapsible-B2pXVUPn.js +0 -1
  419. package/dist/client/assets/collection-detail-D-ELQuvL.js +0 -1
  420. package/dist/client/assets/config-CaohtXWJ.js +0 -1
  421. package/dist/client/assets/connection-detail-CyQt5Knq.js +0 -1
  422. package/dist/client/assets/connections-Dfx8FH4D.js +0 -1
  423. package/dist/client/assets/content-tab-Bd4lKzez.js +0 -25
  424. package/dist/client/assets/context-DkOsTTFI.js +0 -1
  425. package/dist/client/assets/discover-Blhzpr1h.js +0 -1
  426. package/dist/client/assets/experiments-tab-choice-BKIwz3b9.js +0 -1
  427. package/dist/client/assets/feature-gate-B_FyKX76.js +0 -1
  428. package/dist/client/assets/file-explorer-mKoJ95H9.js +0 -2
  429. package/dist/client/assets/general-DQnQVbWU.js +0 -1
  430. package/dist/client/assets/home-CLDIpUPQ.js +0 -1
  431. package/dist/client/assets/hosted-reconcile-C7zHteUc.js +0 -1
  432. package/dist/client/assets/index-CnFz3TOs.js +0 -4
  433. package/dist/client/assets/index-DO-A5xCQ.css +0 -1
  434. package/dist/client/assets/index-DPvgRnv7.js +0 -1
  435. package/dist/client/assets/index-DisDzI9Z.js +0 -1
  436. package/dist/client/assets/index-MBimNXd5.js +0 -1
  437. package/dist/client/assets/library-CYKhZ1Xb.js +0 -1
  438. package/dist/client/assets/mustache-CtUZw69D.js +0 -4
  439. package/dist/client/assets/named-rule-view-CkgbSbSg.js +0 -1
  440. package/dist/client/assets/openai-conversation-D4xjY3_1.js +0 -3
  441. package/dist/client/assets/parse-sections-D2w3wSuP.js +0 -20
  442. package/dist/client/assets/plan-Da6szJuR.js +0 -1
  443. package/dist/client/assets/post-calendar-DEqb8d3G.js +0 -1
  444. package/dist/client/assets/post-editor-B-zzeLVe.js +0 -2
  445. package/dist/client/assets/preview-tab-DBOLhpj4.js +0 -551
  446. package/dist/client/assets/project-app-view-etnu6fhD.js +0 -1
  447. package/dist/client/assets/project-apps-D4MFXbKC.js +0 -1
  448. package/dist/client/assets/project-reports-B9YT4T_3.js +0 -1
  449. package/dist/client/assets/project-tasks-DhwbKHKQ.js +0 -1
  450. package/dist/client/assets/projects-DN5f4v6V.js +0 -1
  451. package/dist/client/assets/record-editor-DtXYbHpV.js +0 -1
  452. package/dist/client/assets/redirect-editor-BGoLXzQs.js +0 -1
  453. package/dist/client/assets/reports-BVe3MPdv.js +0 -1
  454. package/dist/client/assets/reports-onboarding-hafGLqtC.js +0 -1
  455. package/dist/client/assets/reports-tab-BGeZEsTL.js +0 -2
  456. package/dist/client/assets/repositories-B9hLcljS.js +0 -1
  457. package/dist/client/assets/repositories-DMPvx5Vv.js +0 -1
  458. package/dist/client/assets/repository-picker-8FkfYDdf.js +0 -1
  459. package/dist/client/assets/resolve-tab-icon-DO940wY_.js +0 -1
  460. package/dist/client/assets/review-settings-Bj89Yxea.js +0 -1
  461. package/dist/client/assets/role-color-Dy-P6oaY.js +0 -1
  462. package/dist/client/assets/roles-CvbfU6et.js +0 -1
  463. package/dist/client/assets/route-93-1A9vt.js +0 -1
  464. package/dist/client/assets/route-BdH_uLpp.js +0 -1
  465. package/dist/client/assets/route-y8ZhYa0n.js +0 -1
  466. package/dist/client/assets/search-input-Cvdta6ZJ.js +0 -1
  467. package/dist/client/assets/section-array-field-AXi3Vg_u.js +0 -1
  468. package/dist/client/assets/sections-editor-CyIATot1.js +0 -1
  469. package/dist/client/assets/seo-editor-C0rSQsv3.js +0 -1
  470. package/dist/client/assets/settings-tab-DFF8W9c5.js +0 -1
  471. package/dist/client/assets/shell-layout-CU0v0Q3J.js +0 -1
  472. package/dist/client/assets/site-draft-actions-D4mgl3Il.js +0 -3
  473. package/dist/client/assets/site-draft-view-BlOBzJMo.js +0 -1
  474. package/dist/client/assets/site-editor-BoWcMF8-.js +0 -1
  475. package/dist/client/assets/skills-CPsP4uSN.js +0 -1
  476. package/dist/client/assets/suggestion-UmoyYDA6.js +0 -2
  477. package/dist/client/assets/synced-repos-MPQrTxDL.js +0 -1
  478. package/dist/client/assets/taskboard-analytics-BCgYqiKL.js +0 -1
  479. package/dist/client/assets/tasks-D2QsX8U7.js +0 -1
  480. package/dist/client/assets/thread-analytics-DEw5nqD5.js +0 -1
  481. package/dist/client/assets/thread-route-0xQXgTvr.js +0 -1
  482. package/dist/client/assets/use-apply-named-rule-V-RgXu1D.js +0 -1
  483. package/dist/client/assets/use-ask-in-chat-CIVcbye6.js +0 -1
  484. package/dist/client/assets/use-autosave-CCiDACSS.js +0 -1
  485. package/dist/client/assets/use-blocks-v8-project-Cbqo1QTy.js +0 -1
  486. package/dist/client/assets/use-chat-layout-state-CGYfM8sf.js +0 -1
  487. package/dist/client/assets/use-connection-DnLlCwu6.js +0 -1
  488. package/dist/client/assets/use-content-sync-D9eluVVW.js +0 -1
  489. package/dist/client/assets/use-decopilot-events-B2tjImS_.js +0 -1
  490. package/dist/client/assets/use-delete-connection-DpEMQiOo.js +0 -1
  491. package/dist/client/assets/use-fast-preview-draft-url-BxKgK3r2.js +0 -1
  492. package/dist/client/assets/use-main-panel-tabs-DyYS88nS.js +0 -1
  493. package/dist/client/assets/use-move-blocks-D35xWi_f.js +0 -1
  494. package/dist/client/assets/use-navigate-to-agent-BNznjjAZ.js +0 -1
  495. package/dist/client/assets/use-project-native-view-presence-BNwJJKFa.js +0 -1
  496. package/dist/client/assets/use-project-scope-BbUTPXSS.js +0 -1
  497. package/dist/client/assets/use-recent-apps-BkGr3MbC.js +0 -1
  498. package/dist/client/assets/use-sandbox-events-C8uDi6Yt.js +0 -2
  499. package/dist/client/assets/use-section-preview-base-DqcwcHAy.js +0 -1
  500. package/dist/client/assets/useInfiniteQuery-BuWYzJlw.js +0 -1
  501. package/dist/client/assets/useSuspenseInfiniteQuery-BofrdpH6.js +0 -1
  502. package/dist/client/assets/variant-calendar-WNfoLO6H.js +0 -1
  503. package/dist/client/assets/virtual-mcp-CSkG36xb.js +0 -1
@@ -1 +0,0 @@
1
- import{p as x,m as k}from"./core.esm-DbuDfvWF.js";import{i as _}from"./AlertCircle-C4gtVV8B.js";import{t as v,b2 as K,b3 as B,aV as w,a6 as A,b4 as S,l as I,b5 as L,b6 as T,b7 as O,b8 as m,b9 as D}from"./agent-icon-uDqFfzhf.js";import{bl as E,aT as R,ei as y,a8 as P}from"./index-DVvmeJMJ.js";import{i as M}from"./CheckCircle-DSJM5Ipe.js";import{s as $}from"./Tool01-DB3xqZeL.js";import{D as F,C as f}from"./task-board-D-pfBnAn.js";const U=E("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),j=["ended_after_delivery","superseded"];function H(e){return!!e&&j.includes(e)}function se(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function oe(e){return e.failureKind!=="superseded"}function p(e){return e.threads.some(t=>t.status==="requires_action")}function ie(e){return e.status==="in_review"&&!e.assigneeId}function ce(e){return p(e)}function d(e){return e.status==="done"||e.status==="archived"?!1:e.priority==="urgent"||e.type==="security"||p(e)||V(e)==="failed"}const C="critical:";function W(e){return e!=="done"&&e!=="archived"}function le({overId:e,itemOf:t,fromStatus:n,toStatus:a,dragged:s=[]}){if(e===void 0||!W(a))return null;const r=String(e);if(r.startsWith(C))return"critical";if(s.includes(r)){const i=t(s[0]);return i&&d(i)?"critical":n===a?"improvements":null}if(n!==a)return null;if(r.startsWith(b))return"improvements";const o=t(r);return o?d(o)?"critical":"improvements":null}function ue(e,t){const n=d(e);return t==="critical"?n?null:"urgent":n?d({...e,priority:"high"})?null:"high":null}function de(e){return e.status==="in_progress"&&p(e)?"text-warning animate-pulse":N(e.status).iconClassName}function V(e){return e.threads.some(n=>n.status==="in_progress")?"running":e.threads.some(n=>n.status==="failed"&&!H(n.failureKind))?"failed":null}function fe(e,t,n){const a=e.findIndex(c=>c.id===n),s=t===n?e[a+1]?.id??null:t,r=e.filter(c=>c.id!==n),o=s?r.findIndex(c=>c.id===s):-1,i=o===-1?r.length:o,l=r[i-1],u=r[i];return l&&u?(l.sortOrder+u.sortOrder)/2:l?l.sortOrder+1:u?u.sortOrder-1:0}function pe(e,t){return Array.from({length:t},(n,a)=>e-(t-1-a)*1e-4)}const q=["archived"],h={triage:{labelKey:"taskBoard.config.statusBacklog",icon:_,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:y,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:A,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:$,iconClassName:"text-warning"},qa:{labelKey:"taskBoard.config.statusQa",icon:w,iconClassName:"text-warning"},customer_approval:{labelKey:"taskBoard.config.statusCustomerApproval",icon:B,iconClassName:"text-warning"},ready_for_deployment:{labelKey:"taskBoard.config.statusReadyForDeployment",icon:K,iconClassName:"text-success"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:v,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:M,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:R,iconClassName:"text-muted-foreground"}},G={icon:y,iconClassName:"text-muted-foreground"},Y=h;function N(e){return Y[e]??G}function me(e,t){const n=h[e];return{label:n?t(n.labelKey):e,visual:N(e)}}const ge=["bug","feature","chore","spike","security"],ye={bug:{labelKey:"taskBoard.config.typeBug",icon:U,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:L,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:I,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:S,iconClassName:"text-brand-yellow"},security:{labelKey:"taskBoard.config.typeSecurity",icon:P,iconClassName:"text-project-purple"}};function g(e,t){return t[e]??!q.includes(e)}function Ce(e){return{lanes:f.filter(t=>g(t,e)),hidden:f.filter(t=>!g(t,e))}}const z=44;function he({lanes:e,collapsed:t,hasHiddenTail:n}){const a=e.map(s=>t.includes(s)?`${z}px`:"minmax(280px, 1fr)");return n&&a.push("280px"),a.join(" ")}const b="lane:",Ne=e=>{const t=x(e);if(t.length>0)return t;const n=e.pointerCoordinates,a=n?e.droppableContainers.filter(s=>{const r=e.droppableRects.get(s.id);return r!==void 0&&n.x>=r.left&&n.x<=r.right}):[];return k(a.length>0?{...e,droppableContainers:a}:e)};function X(e){return f.includes(e)}function be({overId:e,statusOf:t}){if(e===void 0)return null;const n=String(e),a=[b,C].find(r=>n.startsWith(r)),s=a?n.slice(a.length):t(n);return s!==void 0&&X(s)?s:null}function xe(e,t){return Math.max(0,Math.floor((t-Date.parse(e))/864e5))}const ke=["none","low","medium","high","urgent"],_e={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:m,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:D,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-project-blue",dotClassName:"bg-project-blue",icon:m,iconClassName:"text-project-blue"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:O,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:T,iconClassName:"text-destructive"}};function ve(e,t=Date.now()){const n=new Date(e).getTime();return Number.isNaN(n)?null:n<t?"overdue":n-t<=Q*864e5?"soon":null}const Q=3;function Ke(e){return`color-mix(in oklab, ${e??F} var(--user-color-strength), transparent)`}export{C,q as H,b as L,_e as P,h as S,ye as T,V as a,ie as b,d as c,N as d,oe as e,ge as f,ke as g,se as h,p as i,H as j,g as k,me as l,Ce as m,he as n,Ne as o,ce as p,ue as q,pe as r,de as s,Ke as t,fe as u,W as v,be as w,le as x,ve as y,xe as z};
@@ -1 +0,0 @@
1
- import{aE as Ne,e8 as Me,e6 as ze,aF as de,ba as Ee,c as U,b as V,j as t,h as Se,B,r as Q,m as ye,a4 as te,aj as Re,V as me,K as ee,d as se,C as _e,ar as Ce,gv as Ue,bC as Fe,n as Ve,hq as ue,a3 as Le,I as J,_ as Be,X as qe,Z as Ge,Y as xe,R as He,f as Ke,hI as Xe,q as Qe,h5 as We,aD as Ye,aC as Je,o as Ze,t as Y}from"./index-DVvmeJMJ.js";import{g as et}from"./extract-connection-data-DBROTNmw.js";import{E as we}from"./empty-state-DPWCLNrd.js";import{E as tt,r as st,b as nt,c as it}from"./connection-form-helpers-DvFcvjHg.js";import{c as ot,S as at,D as lt}from"./index-dCHDMdOx.js";import{u as Ie,T as ct}from"./use-mcp-auth-status-KGdhyspi.js";import{a as rt}from"./mcp-oauth-Dz6mx5UF.js";import{I as ae}from"./integration-icon-C9OIwyFH.js";import{s as dt}from"./Plus-DXpzgENj.js";import{bv as mt,aC as ut,aw as xt,aD as ne}from"./agent-icon-uDqFfzhf.js";import{a as ke,e as pt,g as ft}from"./Tool01-DB3xqZeL.js";import{s as ce}from"./Trash01-BAWUFhrC.js";import{b as ht,a as gt,c as jt,S as vt,d as bt}from"./sheet-BSTYuLMa.js";import{F as G,b as H,c as K,d as L,f as X,e as pe,a as Nt}from"./form-BTSAyeiz.js";import{a as Te,b as Ae,u as St}from"./use-connection-DnLlCwu6.js";import{u as Pe}from"./use-mcp-client-Bh7kEUBS.js";import{u as yt}from"./use-mcp-tools-BXarw5nj.js";import{a as _t}from"./use-mcp-prompts-BvdRcLVu.js";import{i as Ct}from"./mcp-oauth-B4bma3Oc.js";import{u as wt,D as It}from"./use-delete-connection-DpEMQiOo.js";import{c as kt}from"./monitoring-stats-row-MlJzIKBz.js";import{c as Tt,b as At,C as Pt,a as Dt,B as $t}from"./chart-4euqV-4L.js";import{C as Ot}from"./tooltipContext-qYwD6VMh.js";import{a as Mt}from"./repository-binding-DJpVzzIq.js";import{T as ie,a as zt,b as oe,c as Et}from"./tabs-B314G2il.js";import{g as De}from"./connection-slug-7qrL1eY0.js";import{n as Rt}from"./ShoppingBag01-ClDrdJV2.js";import{g as re}from"./types-DDm1cJJv.js";import{M as Ut}from"./mcp-app-renderer-CbbHrG36.js";import{C as Ft}from"./collection-search-o_TUN55Q.js";import{B as Vt}from"./badge-FhnYiqmQ.js";import{S as fe,b as he,a as ge,d as je,c as q}from"./select-CBAbBtbp.js";import{i as Lt}from"./CheckCircle-DSJM5Ipe.js";import{t as Bt}from"./ChevronUp-DlMNWluH.js";import{n as qt}from"./LinkBroken01-4XuFjBFS.js";import{c as Gt}from"./UserSquare-NNxs0RWc.js";import{s as Ht}from"./XClose-E_Sbr7JC.js";import{p as Kt,i as Xt}from"./connection-DWztoPJi.js";import{c as Qt}from"./schema-ChSE97DN.js";import"./metadata-D72DunRR.js";import"./Key01-BnxP0_QL.js";import"./auth-DzshLgt0.js";import"./index-D1ksSwz3.js";import"./index-DisDzI9Z.js";import"./index-DTVEZmhV.js";import"./index-BdQq_4o_.js";import"./index-DyEEK3cc.js";import"./popover-DVbSl4_S.js";import"./tooltip-BVrosRIK.js";import"./index-DwNl1Km0.js";import"./SearchMd-CWmEKOOP.js";import"./use-mobile-Dc6kWu8K.js";import"./use-navigate-to-agent-BNznjjAZ.js";import"./thread-intent-BNVTtSHt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-B9yUO9oy.js";import"./task-board-D-pfBnAn.js";import"./schema-CzuWRpLl.js";import"./AlertCircle-C4gtVV8B.js";import"./ArrowUp-BZtzDI6h.js";import"./ArrowLeft-DpMV6ZsI.js";import"./Globe04-xh_ZOoQS.js";import"./ChevronSelectorVertical-Y1qRZSrs.js";import"./CreditCard01-DDsAjKey.js";import"./SwitchHorizontal01-C42vJfgE.js";import"./Minus-D8UqNYy4.js";import"./Monitor01-CVDkBVET.js";import"./Sun-wXzOhHYv.js";import"./Play--aCtxlXx.js";import"./Upload01-CMkGIZuR.js";import"./Users01-DIshv_Ib.js";import"./Zap-BFWL2aD-.js";import"./label-DxsI69Ti.js";import"./CartesianChart-T_ULwjNy.js";import"./CategoricalChart-ysoAqy8Y.js";import"./AreaChart-DoDuLI5t.js";import"./active-indicator-CCMhAsc_.js";import"./url-slug-W6aFEmJF.js";const Wt=Ne({scopes:Ee(de()).describe("List of scopes available"),stateSchema:Me(de(),ze()).describe("JSON Schema (draft-07) defining the state structure")}),Yt=[{name:"MCP_CONFIGURATION",inputSchema:Ne({}),outputSchema:Wt}];function Jt(s){const e=U.c(61),{instance:n,onConfigure:r,onAuthenticate:o,onDelete:i,onToggleStatus:l}=s,a=V();let c;e[0]!==n.id?(c={connectionId:n.id},e[0]=n.id,e[1]=c):c=e[1];const d=Ie(c),x=!(n.connection_type==="VIRTUAL")&&d.supportsOAuth&&!d.isAuthenticated,f=n.status!=="active",m=x||f?"border-destructive/50 bg-destructive/5":"border-transparent";let h;e[2]!==m?(h=ye("flex items-center gap-3 rounded-lg border px-4 py-2.5 transition-colors",m),e[2]=m,e[3]=h):h=e[3];let g;e[4]!==n.icon||e[5]!==n.title?(g=t.jsx(ae,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[4]=n.icon,e[5]=n.title,e[6]=g):g=e[6];let j;e[7]!==n.title?(j=t.jsx("p",{className:"text-sm font-medium truncate",children:n.title}),e[7]=n.title,e[8]=j):j=e[8];let N;e[9]!==n.status||e[10]!==f||e[11]!==x||e[12]!==a?(N=x?t.jsx("span",{className:"text-xs text-destructive font-medium",children:a("details.connectionInstancesPanel.needsAuthorization")}):f?t.jsx("span",{className:"text-xs text-destructive font-medium",children:n.status==="error"?a("details.connectionInstancesPanel.disabledError"):a("details.connectionInstancesPanel.disabled")}):null,e[9]=n.status,e[10]=f,e[11]=x,e[12]=a,e[13]=N):N=e[13];let _;e[14]!==j||e[15]!==N?(_=t.jsxs("div",{className:"flex-1 min-w-0",children:[j,N]}),e[14]=j,e[15]=N,e[16]=_):_=e[16];let y;e[17]!==n||e[18]!==x||e[19]!==o||e[20]!==a?(y=x&&t.jsx(B,{variant:"outline",size:"sm",onClick:()=>o(n),children:a("details.connectionInstancesPanel.authorize")}),e[17]=n,e[18]=x,e[19]=o,e[20]=a,e[21]=y):y=e[21];let C;e[22]!==n||e[23]!==f||e[24]!==l||e[25]!==a?(C=f?t.jsxs(B,{variant:"outline",size:"sm",className:"gap-1.5",onClick:()=>l(n,"active"),children:[t.jsx(mt,{size:13}),a("details.connectionInstancesPanel.enable")]}):t.jsx(B,{variant:"ghost",size:"icon-sm",className:"text-muted-foreground",onClick:()=>l(n,"inactive"),title:a("details.connectionInstancesPanel.disable"),"aria-label":a("details.connectionInstancesPanel.disable"),children:t.jsx(ut,{size:13})}),e[22]=n,e[23]=f,e[24]=l,e[25]=a,e[26]=C):C=e[26];let D;e[27]!==n||e[28]!==r?(D=()=>r(n),e[27]=n,e[28]=r,e[29]=D):D=e[29];let w;e[30]!==a?(w=a("details.connectionInstancesPanel.configure"),e[30]=a,e[31]=w):w=e[31];let $;e[32]!==a?($=a("details.connectionInstancesPanel.configure"),e[32]=a,e[33]=$):$=e[33];let O;e[34]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(ke,{size:13}),e[34]=O):O=e[34];let P;e[35]!==D||e[36]!==w||e[37]!==$?(P=t.jsx(B,{variant:"ghost",size:"icon-sm",onClick:D,title:w,"aria-label":$,children:O}),e[35]=D,e[36]=w,e[37]=$,e[38]=P):P=e[38];let T;e[39]!==n||e[40]!==i?(T=()=>i(n),e[39]=n,e[40]=i,e[41]=T):T=e[41];let S;e[42]!==a?(S=a("details.connectionInstancesPanel.delete"),e[42]=a,e[43]=S):S=e[43];let v;e[44]!==a?(v=a("details.connectionInstancesPanel.delete"),e[44]=a,e[45]=v):v=e[45];let z;e[46]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(ce,{size:13}),e[46]=z):z=e[46];let E;e[47]!==T||e[48]!==S||e[49]!==v?(E=t.jsx(B,{variant:"ghost-destructive",size:"icon-sm",onClick:T,title:S,"aria-label":v,children:z}),e[47]=T,e[48]=S,e[49]=v,e[50]=E):E=e[50];let M;e[51]!==P||e[52]!==E||e[53]!==y||e[54]!==C?(M=t.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[y,C,P,E]}),e[51]=P,e[52]=E,e[53]=y,e[54]=C,e[55]=M):M=e[55];let A;return e[56]!==M||e[57]!==h||e[58]!==g||e[59]!==_?(A=t.jsxs("div",{className:h,children:[g,_,M]}),e[56]=M,e[57]=h,e[58]=g,e[59]=_,e[60]=A):A=e[60],A}function Zt(s){const e=U.c(21),{instance:n,onConfigure:r}=s,o=V();let i;e[0]!==n.icon||e[1]!==n.title?(i=t.jsx(ae,{icon:n.icon,name:n.title,size:"xs",className:"shrink-0"}),e[0]=n.icon,e[1]=n.title,e[2]=i):i=e[2];let l;e[3]!==n.title?(l=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium truncate",children:n.title})}),e[3]=n.title,e[4]=l):l=e[4];let a;e[5]!==n||e[6]!==r?(a=()=>r(n),e[5]=n,e[6]=r,e[7]=a):a=e[7];let c;e[8]!==o?(c=o("details.connectionInstancesPanel.configure"),e[8]=o,e[9]=c):c=e[9];let d;e[10]!==o?(d=o("details.connectionInstancesPanel.configure"),e[10]=o,e[11]=d):d=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(ke,{size:13}),e[12]=u):u=e[12];let x;e[13]!==a||e[14]!==c||e[15]!==d?(x=t.jsx("div",{className:"flex items-center gap-1 shrink-0",children:t.jsx(B,{variant:"ghost",size:"icon-sm",onClick:a,title:c,"aria-label":d,children:u})}),e[13]=a,e[14]=c,e[15]=d,e[16]=x):x=e[16];let f;return e[17]!==i||e[18]!==l||e[19]!==x?(f=t.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-transparent px-4 py-2.5 transition-colors",children:[i,l,x]}),e[17]=i,e[18]=l,e[19]=x,e[20]=f):f=e[20],f}function es(s){const e=U.c(33),{instances:n,onConfigure:r,onAuthenticate:o,onDelete:i,onToggleStatus:l,onAdd:a,isAdding:c}=s,d=V();if(n.length===0)return null;let u;e[0]!==n.length||e[1]!==d?(u=n.length===1?d("details.connectionInstancesPanel.instance"):d("details.connectionInstancesPanel.instances"),e[0]=n.length,e[1]=d,e[2]=u):u=e[2];let x;e[3]!==u?(x=t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:u}),e[3]=u,e[4]=x):x=e[4];let f;e[5]!==c?(f=c?t.jsx(Se,{className:"size-[13px]"}):t.jsx(dt,{size:13}),e[5]=c,e[6]=f):f=e[6];let m;e[7]!==d?(m=d("details.connectionInstancesPanel.addInstance"),e[7]=d,e[8]=m):m=e[8];let h;e[9]!==c||e[10]!==a||e[11]!==f||e[12]!==m?(h=t.jsxs(B,{variant:"default",size:"sm",className:"gap-1.5",onClick:a,disabled:c,children:[f,m]}),e[9]=c,e[10]=a,e[11]=f,e[12]=m,e[13]=h):h=e[13];let g;e[14]!==x||e[15]!==h?(g=t.jsxs("div",{className:"px-5 py-4 border-b border-border flex items-center justify-between",children:[x,h]}),e[14]=x,e[15]=h,e[16]=g):g=e[16];let j;if(e[17]!==n||e[18]!==o||e[19]!==r||e[20]!==i||e[21]!==l){let y;e[23]!==o||e[24]!==r||e[25]!==i||e[26]!==l?(y=C=>t.jsx(Q.Suspense,{fallback:t.jsx(Zt,{instance:C,onConfigure:r}),children:t.jsx(Jt,{instance:C,onConfigure:r,onAuthenticate:o,onDelete:i,onToggleStatus:l})},C.id),e[23]=o,e[24]=r,e[25]=i,e[26]=l,e[27]=y):y=e[27],j=n.map(y),e[17]=n,e[18]=o,e[19]=r,e[20]=i,e[21]=l,e[22]=j}else j=e[22];let N;e[28]!==j?(N=t.jsx("div",{className:"p-2 flex flex-col gap-1",children:j}),e[28]=j,e[29]=N):N=e[29];let _;return e[30]!==g||e[31]!==N?(_=t.jsxs("div",{className:"surface overflow-hidden",children:[g,N]}),e[30]=g,e[31]=N,e[32]=_):_=e[32],_}function ts(s,e=3){const n=new Map;for(const r of s){if(!r.isError)continue;const o=(r.errorMessage??"").trim()||"Unknown error";n.set(o,(n.get(o)??0)+1)}return[...n.entries()].map(([r,o])=>({message:r,count:o})).sort((r,o)=>o.count-r.count).slice(0,e)}const ss=[{value:"7d",label:"7d"},{value:"14d",label:"14d"},{value:"30d",label:"30d"}];function ns(s){const e=new Date,n=new Date(e);return s==="7d"?n.setDate(n.getDate()-7):s==="14d"?n.setDate(n.getDate()-14):n.setDate(n.getDate()-30),{startDate:n,endDate:e}}const is={calls:{label:"Tool calls"},errors:{label:"Errors"}};function os(s){const e=U.c(4),{connectionId:n,orgId:r,timeframe:o}=s,i=V(),l=Re(),a=ns(o),{data:c}=me({queryKey:ee.connectionActivity(n,o,r),queryFn:async()=>await l.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,limit:2e3,offset:0}),staleTime:3e5}),{data:d}=me({queryKey:ee.connectionActivityErrors(n,o,r),queryFn:async()=>await l.call("MONITORING_LOGS_LIST",{startDate:a.startDate.toISOString(),endDate:a.endDate.toISOString(),connectionId:n,isError:!0,limit:1,offset:0}),staleTime:3e5}),u=kt(c?.logs??[],a,void 0,c?.total,d?.total),x=u.data,f=u.totalCalls>0,m=ts(c?.logs??[]),h=u.totalCalls>0?Math.round(u.totalErrors/u.totalCalls*100):0;let g;e[0]!==i?(g=i("details.connectionActivity.toolCalls"),e[0]=i,e[1]=g):g=e[1];let j;return e[2]!==g?(j=t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:g}),e[2]=g,e[3]=j):j=e[3],t.jsxs("div",{children:[t.jsxs("div",{className:"flex gap-6 px-5 pb-4",children:[t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-semibold text-foreground tabular-nums",children:u.totalCalls.toLocaleString()}),j]}),u.totalErrors>0&&t.jsxs("div",{children:[t.jsx("p",{className:"text-2xl font-semibold text-destructive tabular-nums",children:u.totalErrors.toLocaleString()}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("details.connectionActivity.errors")})]}),u.avgDurationMs>0&&t.jsxs("div",{children:[t.jsxs("p",{className:"text-2xl font-semibold text-foreground tabular-nums",children:[Math.round(u.avgDurationMs),"ms"]}),t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:i("details.connectionActivity.avgLatency")})]})]}),f?t.jsxs("div",{children:[t.jsx(Tt,{config:is,className:"h-16 w-full",children:t.jsxs(At,{data:x,barCategoryGap:"4%",children:[t.jsx(Pt,{content:t.jsx(Dt,{labelFormatter:cs}),cursor:{fill:"var(--muted)"}}),t.jsx($t,{dataKey:"calls",radius:[2,2,0,0],minPointSize:1,children:x.map(ls)})]})}),t.jsxs("div",{className:"flex justify-between px-3 mt-1 pb-3",children:[t.jsx("span",{className:"text-2xs text-muted-foreground",children:x[0]?.label}),t.jsx("span",{className:"text-2xs text-muted-foreground",children:x[x.length-1]?.label})]})]}):t.jsx("div",{className:"h-20 flex items-center justify-center",children:t.jsx("p",{className:"text-sm text-muted-foreground/60",children:i("details.connectionActivity.noActivityInThisPeriod")})}),m.length>0&&t.jsxs("div",{className:"px-5 py-4 border-t border-border",children:[t.jsxs("p",{className:"text-xs font-medium text-muted-foreground mb-2",children:[i("details.connectionActivity.topErrors"),h>0?` · ${i("details.connectionActivity.errorRatePercentage",{errorRate:h.toString()})}`:""]}),t.jsx("ul",{className:"space-y-1.5",children:m.map(as)})]})]})}function as(s){return t.jsxs("li",{className:"flex items-start gap-2 text-xs",children:[t.jsxs("span",{className:"tabular-nums text-destructive font-medium shrink-0",children:[s.count.toLocaleString(),"×"]}),t.jsx("span",{className:"text-muted-foreground truncate",title:s.message,children:s.message})]},s.message)}function ls(s,e){return t.jsx(Ot,{fill:s.errorRate>50?"var(--destructive)":"var(--chart-1)",fillOpacity:s.calls===0?.2:s.errorRate>50?.7:.85},`cell-${e}`)}function cs(s,e){const n=Array.isArray(e)?e[0]:void 0;return n&&typeof n=="object"&&"payload"in n?n.payload?.label??"":""}function rs(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{children:[t.jsx("div",{className:"flex gap-6 px-5 pb-4",children:t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("div",{className:"h-7 w-16 rounded-md bg-muted animate-pulse"}),t.jsx("div",{className:"h-3 w-14 rounded bg-muted animate-pulse"})]})}),t.jsx("div",{className:"h-20 w-full rounded-md bg-muted animate-pulse"})]}),s[0]=e):e=s[0],e}function ds(s){const e=U.c(22),{connectionId:n}=s,r=V(),[o,i]=Q.useState("14d"),{org:l}=te();let a;e[0]!==r?(a=r("details.connectionActivity.activity"),e[0]=r,e[1]=a):a=e[1];let c;e[2]!==a?(c=t.jsx("div",{children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:a})}),e[2]=a,e[3]=c):c=e[3];let d;e[4]!==r?(d=r("details.connectionActivity.timeframe"),e[4]=r,e[5]=d):d=e[5];let u;e[6]!==o?(u=ss.map(j=>t.jsx("button",{type:"button","aria-pressed":o===j.value,onClick:()=>i(j.value),className:ye("px-2.5 py-1 text-xs font-medium rounded-lg transition-colors",o===j.value?"bg-card text-foreground shadow-edge":"text-muted-foreground hover:text-foreground"),children:j.label},j.value)),e[6]=o,e[7]=u):u=e[7];let x;e[8]!==d||e[9]!==u?(x=t.jsx("div",{role:"group","aria-label":d,className:"flex items-center gap-0.5 bg-muted rounded-lg p-0.5",children:u}),e[8]=d,e[9]=u,e[10]=x):x=e[10];let f;e[11]!==c||e[12]!==x?(f=t.jsxs("div",{className:"px-5 py-4 flex items-center justify-between",children:[c,x]}),e[11]=c,e[12]=x,e[13]=f):f=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(rs,{}),e[14]=m):m=e[14];let h;e[15]!==n||e[16]!==l.id||e[17]!==o?(h=t.jsx(Q.Suspense,{fallback:m,children:t.jsx(os,{connectionId:n,orgId:l.id,timeframe:o})}),e[15]=n,e[16]=l.id,e[17]=o,e[18]=h):h=e[18];let g;return e[19]!==f||e[20]!==h?(g=t.jsxs("div",{className:"surface overflow-hidden",children:[f,h]}),e[19]=f,e[20]=h,e[21]=g):g=e[21],g}function ms(s){const e=U.c(15),{virtualMcp:n,org:r}=s,o=se();let i;e[0]!==o||e[1]!==r||e[2]!==n.id?(i=()=>{const x=crypto.randomUUID();o({to:"/$org/projects/$agentId",params:{org:r,agentId:n.id},search:{thread:x}})},e[0]=o,e[1]=r,e[2]=n.id,e[3]=i):i=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(_e,{size:16}),e[4]=l):l=e[4];let a;e[5]!==n.icon||e[6]!==n.title?(a=t.jsx(ae,{icon:n.icon,name:n.title,size:"xs",fallbackIcon:l}),e[5]=n.icon,e[6]=n.title,e[7]=a):a=e[7];let c;e[8]!==n.title?(c=t.jsx("span",{className:"flex-1 text-sm font-medium text-foreground truncate",children:n.title}),e[8]=n.title,e[9]=c):c=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(Ce,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors shrink-0"}),e[10]=d):d=e[10];let u;return e[11]!==i||e[12]!==a||e[13]!==c?(u=t.jsxs("button",{type:"button",onClick:i,className:"flex items-center gap-3 rounded-lg hover:bg-accent transition-colors group text-left w-full",children:[a,c,d]}),e[11]=i,e[12]=a,e[13]=c,e[14]=u):u=e[14],u}function us(s){const e=U.c(7),{virtualMcps:n,org:r}=s;let o;if(e[0]!==r||e[1]!==n){let l;e[3]!==r?(l=a=>t.jsx(ms,{virtualMcp:a,org:r},a.id),e[3]=r,e[4]=l):l=e[4],o=n.map(l),e[0]=r,e[1]=n,e[2]=o}else o=e[2];let i;return e[5]!==o?(i=t.jsx("div",{className:"flex flex-col gap-3",children:t.jsx("div",{className:"flex flex-col gap-2",children:o})}),e[5]=o,e[6]=i):i=e[6],i}function xs(s){const e=U.c(13),{connection:n}=s,r=V(),{org:o}=te();let i;e[0]!==n.id?(i={filters:[{column:"connection_id",value:n.id}]},e[0]=n.id,e[1]=i):i=e[1];const l=Mt(i);if(!(l.length>0)){let f;return e[2]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(t.Fragment,{}),e[2]=f):f=e[2],f}let c;e[3]!==r?(c=r("details.connectionAgentsPanel.usedByAgents"),e[3]=r,e[4]=c):c=e[4];let d;e[5]!==c?(d=t.jsx("div",{className:"px-5 py-4 border-b border-border",children:t.jsx("h3",{className:"text-sm font-semibold text-foreground",children:c})}),e[5]=c,e[6]=d):d=e[6];let u;e[7]!==o.slug||e[8]!==l?(u=t.jsx("div",{className:"px-5 py-4",children:t.jsx(us,{virtualMcps:l,org:o.slug})}),e[7]=o.slug,e[8]=l,e[9]=u):u=e[9];let x;return e[10]!==d||e[11]!==u?(x=t.jsxs("div",{className:"surface overflow-hidden",children:[d,u]}),e[10]=d,e[11]=u,e[12]=x):x=e[12],x}function ps(s){const e=U.c(35),{tools:n,connectionId:r,org:o}=s,i=V(),l=se(),{org:a}=te();let c;e[0]!==r||e[1]!==a.id||e[2]!==a.slug?(c={connectionId:r,orgId:a.id,orgSlug:a.slug},e[0]=r,e[1]=a.id,e[2]=a.slug,e[3]=c):c=e[3];const d=Pe(c),u=Te(r);let x;e[4]!==u||e[5]!==r?(x=u?De(u):r,e[4]=u,e[5]=r,e[6]=x):x=e[6];const f=x,[m,h]=Q.useState("");let g,j,N,_;if(e[7]!==f||e[8]!==d||e[9]!==l||e[10]!==o||e[11]!==m||e[12]!==i||e[13]!==n){const D=(n??[]).filter(fs),w=m.toLowerCase().trim(),$=w?D.filter(v=>v.name.toLowerCase().includes(w)||v.description&&v.description.toLowerCase().includes(w)):D;let O;e[18]!==f||e[19]!==l||e[20]!==o?(O=v=>{l({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:o,appSlug:f,collectionName:"tools",itemId:encodeURIComponent(v.name)}})},e[18]=f,e[19]=l,e[20]=o,e[21]=O):O=e[21];const P=O;N="flex flex-col h-full overflow-hidden";let T;e[22]!==i?(T=i("details.connectionUiTab.searchAppsPlaceholder"),e[22]=i,e[23]=T):T=e[23];let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=v=>{v.key==="Escape"&&(h(""),v.target.blur())},e[24]=S):S=e[24],e[25]!==m||e[26]!==T?(_=t.jsx(Ft,{value:m,onChange:h,placeholder:T,onKeyDown:S}),e[25]=m,e[26]=T,e[27]=_):_=e[27],g="flex-1 overflow-auto p-5",j=$.length===0?t.jsx(we,{image:null,title:i(m?"details.connectionUiTab.noAppsFound":"details.connectionUiTab.noAppsAvailable"),description:i(m?"details.connectionUiTab.adjustSearchTerms":"details.connectionUiTab.noInteractiveUis")}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(320px,1fr))] gap-4",children:$.map(v=>{const z=re(v._meta);return t.jsxs(Ue,{size:"flush",className:"cursor-pointer transition-colors overflow-hidden gap-0",onClick:()=>P(v),children:[t.jsx("div",{className:"h-[200px] overflow-hidden border-b border-border",children:t.jsx(Q.Suspense,{fallback:t.jsx(Fe,{className:"h-full w-full"}),children:t.jsx(Ut,{resourceURI:z,toolInfo:{tool:v},displayMode:"inline",minHeight:200,maxHeight:200,client:d})})}),t.jsxs("div",{className:"flex flex-col gap-2 p-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:v.annotations?.title??v.name}),t.jsx(ct,{annotations:v.annotations,_meta:v._meta})]}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:v.description})]})]},v.name)})}),e[7]=f,e[8]=d,e[9]=l,e[10]=o,e[11]=m,e[12]=i,e[13]=n,e[14]=g,e[15]=j,e[16]=N,e[17]=_}else g=e[14],j=e[15],N=e[16],_=e[17];let y;e[28]!==g||e[29]!==j?(y=t.jsx("div",{className:g,children:j}),e[28]=g,e[29]=j,e[30]=y):y=e[30];let C;return e[31]!==N||e[32]!==_||e[33]!==y?(C=t.jsxs("div",{className:N,children:[_,y]}),e[31]=N,e[32]=_,e[33]=y,e[34]=C):C=e[34],C}function fs(s){return!!re(s._meta)}const ve=[];function $e(s){const e=s.replace(/[._]/g," ").trim().split(/\s+/),n=l=>l.charAt(0).toUpperCase()+l.slice(1),r=new Set(["list","create","get","update","delete","fetch","search","run","trigger","review","send","check"]),o=e.map(n),i=e[e.length-1];return o.length>=2&&i&&r.has(i)?[o.pop(),...o].join(" "):o.join(" ")}function le(s){const e=U.c(5),{label:n}=s,r=V();let o;e[0]!==n||e[1]!==r?(o=r("details.connectionCapabilities.noItemsAvailable",{item:n}),e[0]=n,e[1]=r,e[2]=o):o=e[2];let i;return e[3]!==o?(i=t.jsx("div",{className:"px-5 py-8 text-center",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:o})}),e[3]=o,e[4]=i):i=e[4],i}function hs(s){const e=U.c(68),{tools:n,prompts:r,resources:o,connectionId:i,org:l}=s,a=r===void 0?ve:r,c=o===void 0?ve:o,d=V(),u=se(),x=Te(i??"");let f;e[0]!==x||e[1]!==i?(f=x?De(x):i,e[0]=x,e[1]=i,e[2]=f):f=e[2];const m=f;let h;e[3]!==m||e[4]!==i||e[5]!==u||e[6]!==l?(h=function(I){!i||!l||u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:m,collectionName:"tools",itemId:encodeURIComponent(I)}})},e[3]=m,e[4]=i,e[5]=u,e[6]=l,e[7]=h):h=e[7];const g=h;let j;e[8]!==i||e[9]!==l||e[10]!==n?(j=i&&l&&n.some(vs),e[8]=i,e[9]=l,e[10]=n,e[11]=j):j=e[11];const N=j;if(n.length+a.length+c.length===0){let b;e[12]!==d?(b=d("details.connectionCapabilities.capabilities"),e[12]=d,e[13]=b):b=e[13];let I;e[14]!==b?(I=t.jsx("h3",{className:"text-sm font-semibold text-foreground mb-1",children:b}),e[14]=b,e[15]=I):I=e[15];let k;e[16]!==d?(k=d("details.connectionCapabilities.noCapabilitiesDiscovered"),e[16]=d,e[17]=k):k=e[17];let F;e[18]!==k?(F=t.jsx("p",{className:"text-sm text-muted-foreground",children:k}),e[18]=k,e[19]=F):F=e[19];let W;return e[20]!==I||e[21]!==F?(W=t.jsxs("div",{className:"surface p-5",children:[I,F]}),e[20]=I,e[21]=F,e[22]=W):W=e[22],W}let y;e[23]!==d||e[24]!==n.length?(y=d("details.connectionCapabilities.toolsTab",{count:n.length}),e[23]=d,e[24]=n.length,e[25]=y):y=e[25];let C;e[26]!==y?(C=t.jsx(ie,{value:"tools",variant:"underline",children:y}),e[26]=y,e[27]=C):C=e[27];let D;e[28]!==N||e[29]!==d?(D=N&&t.jsx(ie,{value:"apps",variant:"underline",children:d("details.connectionCapabilities.uiTab")}),e[28]=N,e[29]=d,e[30]=D):D=e[30];let w;e[31]!==d?(w=d("details.connectionCapabilities.promptsTab"),e[31]=d,e[32]=w):w=e[32];let $;e[33]!==w?($=t.jsx(ie,{value:"prompts",variant:"underline",children:w}),e[33]=w,e[34]=$):$=e[34];let O;e[35]!==d?(O=d("details.connectionCapabilities.resourcesTab"),e[35]=d,e[36]=O):O=e[36];let P;e[37]!==O?(P=t.jsx(ie,{value:"resources",variant:"underline",children:O}),e[37]=O,e[38]=P):P=e[38];let T;e[39]!==$||e[40]!==P||e[41]!==C||e[42]!==D?(T=t.jsx("div",{className:"px-5 flex items-center justify-between border-b border-border",children:t.jsxs(zt,{variant:"underline",className:"gap-1",children:[C,D,$,P]})}),e[39]=$,e[40]=P,e[41]=C,e[42]=D,e[43]=T):T=e[43];let S;e[44]!==g||e[45]!==n?(S=n.length>0?n.map(b=>t.jsxs("button",{type:"button",className:"w-full flex items-start gap-3 px-5 py-3 text-left hover:bg-accent transition-colors cursor-pointer",onClick:()=>g(b.name),children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(pt,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:$e(b.name)}),b.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:b.description})]}),t.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0 mt-0.5"})]},b.name)):t.jsx(le,{label:"tools"}),e[44]=g,e[45]=n,e[46]=S):S=e[46];let v;e[47]!==S?(v=t.jsx(oe,{value:"tools",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:S})}),e[47]=S,e[48]=v):v=e[48];let z;e[49]!==i||e[50]!==N||e[51]!==l||e[52]!==n?(z=N&&t.jsx(oe,{value:"apps",className:"h-auto min-h-[200px]",children:t.jsx(ps,{tools:n,connectionId:i,org:l})}),e[49]=i,e[50]=N,e[51]=l,e[52]=n,e[53]=z):z=e[53];let E;e[54]!==a?(E=a.length>0?a.map(js):t.jsx(le,{label:"prompts"}),e[54]=a,e[55]=E):E=e[55];let M;e[56]!==E?(M=t.jsx(oe,{value:"prompts",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:E})}),e[56]=E,e[57]=M):M=e[57];let A;e[58]!==c?(A=c.length>0?c.map(gs):t.jsx(le,{label:"resources"}),e[58]=c,e[59]=A):A=e[59];let R;e[60]!==A?(R=t.jsx(oe,{value:"resources",className:"h-auto",children:t.jsx("div",{className:"divide-y divide-border",children:A})}),e[60]=A,e[61]=R):R=e[61];let p;return e[62]!==T||e[63]!==v||e[64]!==z||e[65]!==M||e[66]!==R?(p=t.jsx("div",{className:"surface overflow-hidden",children:t.jsxs(Et,{defaultValue:"tools",variant:"underline",children:[T,v,z,M,R]})}),e[62]=T,e[63]=v,e[64]=z,e[65]=M,e[66]=R,e[67]=p):p=e[67],p}function gs(s){return t.jsxs("div",{className:"flex items-start gap-3 px-5 py-3",children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(xt,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:s.name}),s.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:s.description}),s.uri&&t.jsx("div",{className:"text-xs text-muted-foreground/60 font-mono mt-0.5 truncate",children:s.uri})]})]},s.uri??s.name)}function js(s){return t.jsxs("div",{className:"flex items-start gap-3 px-5 py-3",children:[t.jsx("div",{className:"mt-0.5 shrink-0 size-7 rounded-md bg-muted flex items-center justify-center",children:t.jsx(Rt,{size:13,className:"text-muted-foreground"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground",children:$e(s.name)}),s.description&&t.jsx("div",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed line-clamp-2",children:s.description})]})]},s.name)}function vs(s){return re(s._meta)}function bs(s){const e=U.c(13),{connection:n,displayTitle:r}=s,o=r??n.title;let i;e[0]!==n.icon||e[1]!==o?(i=t.jsx(ae,{icon:n.icon,name:o,size:"md",className:"shrink-0"}),e[0]=n.icon,e[1]=o,e[2]=i):i=e[2];let l;e[3]!==o?(l=t.jsx(Ve.Title,{children:o}),e[3]=o,e[4]=l):l=e[4];let a;e[5]!==n.description?(a=n.description&&t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed line-clamp-2",children:n.description}),e[5]=n.description,e[6]=a):a=e[6];let c;e[7]!==l||e[8]!==a?(c=t.jsxs("div",{className:"flex-1 min-w-0",children:[l,a]}),e[7]=l,e[8]=a,e[9]=c):c=e[9];let d;return e[10]!==i||e[11]!==c?(d=t.jsxs("div",{className:"flex items-center px-4 md:px-8 bg-background border-b border-border shrink-0 gap-3 py-4",children:[i,c]}),e[10]=i,e[11]=c,e[12]=d):d=e[12],d}function Ns({form:s,connection:e,hasOAuthToken:n,onReauthenticate:r,onRemoveOAuth:o}){const i=V(),l=ue({control:s.control,name:"ui_type"}),a=ue({control:s.control,name:"connection_url"}),{stdioEnabled:c}=Le(),d=(()=>{if(typeof a!="string"||!a)return!1;try{const m=new URL(a);return m.hostname==="api.githubcopilot.com"&&m.pathname.replace(/\/+$/,"")==="/mcp"}catch{return!1}})(),u=c||e.connection_type==="STDIO",x=e.connection_type==="VIRTUAL",f=x?Kt(e.connection_url):null;return x?t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.type")}),t.jsxs("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:[t.jsx(_e,{className:"w-4 h-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:i("details.connectionSidebar.virtualMcp")})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.virtualMcpDescription")})]}),f&&t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.virtualMcpId")}),t.jsx("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:t.jsx("code",{className:"text-sm text-muted-foreground",children:f})})]})]}):t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsx(G,{control:s.control,name:"ui_type",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.connection")}),l!=="NPX"&&l!=="STDIO"?t.jsxs("div",{className:"flex items-stretch rounded-lg border border-border overflow-hidden",children:[t.jsxs(fe,{value:m.value,onValueChange:m.onChange,children:[t.jsx(L,{children:t.jsxs(he,{className:"h-full! w-auto min-w-[90px] border-0 rounded-none bg-muted/50 focus:ring-0 focus:ring-offset-0",children:[t.jsx(ne,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t.jsx(ge,{})]})}),t.jsxs(je,{children:[t.jsx(q,{value:"HTTP",children:i("details.connectionSidebar.http")}),t.jsx(q,{value:"SSE",children:i("details.connectionSidebar.sse")}),t.jsx(q,{value:"Websocket",children:i("details.connectionSidebar.websocket")}),u&&t.jsxs(t.Fragment,{children:[t.jsx(q,{value:"NPX",children:i("details.connectionSidebar.npxPackage")}),t.jsx(q,{value:"STDIO",children:i("details.connectionSidebar.customCommand")})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(G,{control:s.control,name:"connection_url",render:({field:h})=>t.jsx(H,{className:"flex-1 min-w-0",children:t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.urlPlaceholder"),...h,value:h.value??"",className:"h-10 border-0 rounded-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent"})})})})]}):t.jsxs(fe,{value:m.value,onValueChange:m.onChange,children:[t.jsx(L,{children:t.jsx(he,{className:"h-10",children:t.jsx(ge,{})})}),t.jsxs(je,{children:[t.jsx(q,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.http")]})}),t.jsx(q,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.sse")]})}),t.jsx(q,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ne,{className:"w-4 h-4"}),i("details.connectionSidebar.websocket")]})}),u&&t.jsxs(t.Fragment,{children:[t.jsx(q,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(qt,{className:"w-4 h-4"}),i("details.connectionSidebar.npxPackage")]})}),t.jsx(q,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Gt,{className:"w-4 h-4"}),i("details.connectionSidebar.customCommand")]})})]})]})]}),t.jsx(X,{})]})}),l==="NPX"&&t.jsx(G,{control:s.control,name:"npx_package",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.npmPackage")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.npmPackagePlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})}),l==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(G,{control:s.control,name:"stdio_command",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.command")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.commandPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})}),t.jsx(G,{control:s.control,name:"stdio_args",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.arguments")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.argumentsPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:i("details.connectionSidebar.spaceSeparatedArguments")}),t.jsx(X,{})]})})]}),t.jsx(G,{control:s.control,name:"stdio_cwd",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.workingDirectory")}),t.jsx(L,{children:t.jsx(J,{placeholder:i("details.connectionSidebar.workingDirectoryPlaceholder"),...m,value:m.value||"",className:"h-10"})}),t.jsx(X,{})]})})]}),(l==="NPX"||l==="STDIO")&&t.jsx(G,{control:s.control,name:"env_vars",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i("details.connectionSidebar.environmentVariables")}),t.jsx(L,{children:t.jsx(tt,{value:m.value??[],onChange:m.onChange})}),t.jsx(X,{})]})}),l!=="NPX"&&l!=="STDIO"&&t.jsx(G,{control:s.control,name:"connection_token",render:({field:m})=>t.jsxs(H,{className:"flex flex-col gap-3",children:[t.jsx(K,{className:"text-xs text-muted-foreground font-medium",children:i(d?"details.connectionSidebar.githubPersonalAccessToken":"details.connectionSidebar.token")}),n?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(Be,{children:[t.jsx(qe,{asChild:!0,children:t.jsx("button",{type:"button",className:"inline-flex items-center gap-1.5 cursor-pointer",children:t.jsxs(Vt,{variant:"success",className:"gap-1.5",children:[t.jsx(Lt,{size:12}),i("details.connectionSidebar.authenticatedViaOAuth"),t.jsx(Bt,{size:12})]})})}),t.jsxs(Ge,{align:"start",children:[t.jsxs(xe,{onClick:r,children:[t.jsx(ft,{size:16}),i("details.connectionSidebar.reauthenticate")]}),t.jsxs(xe,{variant:"destructive",onClick:o,children:[t.jsx(ce,{size:16}),i("details.connectionSidebar.removeOAuth")]})]})]})}):e.has_connection_token&&m.value===null?t.jsxs("div",{className:"relative group",children:[t.jsx("div",{className:"h-10 px-3 flex items-center rounded-lg border border-border bg-muted/50 text-muted-foreground font-mono text-sm",children:"••••••••••••••••"}),t.jsx("button",{type:"button",onClick:()=>m.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-accent opacity-0 group-hover:opacity-100 transition-opacity rounded-lg",title:i("details.connectionSidebar.clearAndReplaceToken"),"aria-label":i("details.connectionSidebar.clearAndReplaceToken"),children:t.jsx(Ht,{size:14,className:"text-muted-foreground"})})]}):t.jsxs(t.Fragment,{children:[t.jsx(L,{children:t.jsx(J,{type:"password",placeholder:i(d?"details.connectionSidebar.pasteYourGitHubPat":"details.connectionSidebar.enterAccessToken"),...m,value:m.value||"",className:"h-10"})}),d?t.jsxs(pe,{children:[i("details.connectionSidebar.createAPatAt")," ",t.jsx("a",{href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"github.com/settings/personal-access-tokens"})]}):t.jsx(pe,{children:i("details.connectionSidebar.tokenSchemeHint")})]}),t.jsx(X,{})]})})]})}function Ss(s){return s.command==="npx"}function ys(s){return s.args?.find(e=>!e.startsWith("-"))??""}function _s(s){return{command:s.command,args:s.args?.join(" ")??"",cwd:s.cwd??""}}function be(s,e){const n={title:s.title,description:s.description??"",icon:s.icon??null,configuration_state:s.configuration_state??{},configuration_scopes:s.configuration_scopes||[]};if(s.connection_type==="STDIO"&&Xt(s.connection_headers)){const r=s.connection_headers,o=st(r.envVars);if(Ss(r)){const l=ys(r);return{...n,ui_type:"NPX",connection_url:"",connection_token:null,npx_package:l,stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:o}}const i=_s(r);return{...n,ui_type:"STDIO",connection_url:"",connection_token:null,npx_package:"",stdio_command:i.command,stdio_args:i.args,stdio_cwd:i.cwd,env_vars:o}}return{...n,ui_type:s.connection_type,connection_url:s.connection_url??"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}function Cs(s){let e,n=null,r=!1,o=null,i=null;return s.ui_type==="NPX"?(e="STDIO",n="",i=nt(s.npx_package||"",s.env_vars||[])):s.ui_type==="STDIO"?(e="STDIO",n="",i=it(s.stdio_command||"",s.stdio_args||"",s.stdio_cwd,s.env_vars||[])):(e=s.ui_type,n=s.connection_url||"",r=s.connection_token!==null&&s.connection_token!==void 0,o=s.connection_token||null),{title:s.title,description:s.description||null,icon:s.icon??null,connection_type:e,connection_url:n,...r&&{connection_token:o},...i&&{connection_headers:i},configuration_state:s.configuration_state??null,configuration_scopes:s.configuration_scopes??null}}function ws({connection:s,connectionId:e,org:n,isUpdating:r,tools:o,prompts:i,resources:l,siblings:a}){const c=V(),d=se({from:"/$org/settings/connections/$appSlug"}),u=Qe(),x=Ae(),{org:f}=te(),m=wt({onSuccess:()=>{a.length<=1&&d({to:"/$org/settings/connections",params:{org:n}})}}),[h,g]=Q.useState(null),[j,N]=Q.useState(!1),_=Ie({connectionId:e}),{data:y}=We(),C=y?.data?.members??[],D=h??s,w=C.find(p=>p.userId===D.created_by),O=s?.connection_type==="VIRTUAL"||_.isAuthenticated,P={...s,tools:o},T=ot(P,Yt),S=Ye({resolver:Je(Qt),values:be(h??s)}),v=S.formState.isDirty,z=async()=>{if(!await S.trigger())return;const b=S.getValues(),I=Cs(b),k=h?.id??e;await x.update.mutateAsync({id:k,data:I}),S.reset(b)},E=()=>{S.reset(be(h??s))},M=async p=>{const b=s.configuration_scopes?.length?s.configuration_scopes.join(" "):void 0,{token:I,tokenInfo:k,error:F}=await rt({connectionId:p,orgSlug:f.slug,...b?{scope:b}:{}});if(F||!I){Y.error(c("details.connection.authFailed",{error:F??""}));return}if(k)try{const Z=await fetch(`/api/${f.slug}/connections/${p}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:k.accessToken,refreshToken:k.refreshToken,expiresIn:k.expiresIn,scope:k.scope,clientId:k.clientId,clientSecret:k.clientSecret,tokenEndpoint:k.tokenEndpoint})});if(!Z.ok)console.error("Failed to save OAuth token:",await Z.text()),await x.update.mutateAsync({id:p,data:{connection_token:I}});else try{await x.update.mutateAsync({id:p,data:{}})}catch(Oe){console.warn("Failed to refresh connection tools after OAuth:",Oe)}}catch(Z){console.error("Error saving OAuth token:",Z),await x.update.mutateAsync({id:p,data:{connection_token:I}})}else await x.update.mutateAsync({id:p,data:{connection_token:I}});const W=new URL(`/api/${f.slug}/mcp/${p}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(W.href,null)}),await u.invalidateQueries({queryKey:ee.mcpClientPrefix()}),Y.success(c("details.connection.authSuccess"))},A=()=>M(s.id),R=async()=>{try{const p=await fetch(`/api/${f.slug}/connections/${s.id}/oauth-token`,{method:"DELETE",credentials:"include"});if(!p.ok){const I=await p.text();Y.error(c("details.connection.failedRemoveOAuth",{error:I}));return}const b=new URL(`/api/${f.slug}/mcp/${s.id}`,window.location.origin);await u.invalidateQueries({queryKey:ee.isMCPAuthenticated(b.href,null)}),Y.success(c("details.connection.oauthRemoved"))}catch(p){console.error("Error removing OAuth token:",p),Y.error(c("details.connection.failedRemoveOAuthError"))}};return t.jsxs(t.Fragment,{children:[t.jsx(It,{...m}),t.jsx(ht,{open:h!==null,onOpenChange:p=>{p||g(null)},children:t.jsxs(gt,{side:"right",className:"sm:max-w-[520px] p-0 flex flex-col gap-0 overflow-hidden",children:[t.jsxs(jt,{className:"px-4 py-3 md:px-6 md:py-4 border-b border-border shrink-0",children:[t.jsx(vt,{className:"text-base",children:h?.title??s.title}),t.jsx(bt,{className:"text-xs",children:c("details.connection.settingsDescription")}),w&&t.jsxs("div",{className:"flex items-center gap-1.5 pt-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground",children:c("details.connection.connectedBy")}),t.jsx(Ze,{url:w.user?.image??void 0,fallback:w.user?.name??w.user?.email??"?",size:"3xs",shape:"circle"}),t.jsx("span",{className:"text-xs font-medium text-foreground",children:w.user?.name||w.user?.email})]})]}),t.jsxs(Nt,{...S,children:[t.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-3 md:px-6 md:py-5 flex flex-col gap-4 md:gap-6",children:[t.jsxs("div",{className:"flex flex-col gap-3 md:gap-4",children:[t.jsx(G,{control:S.control,name:"title",render:({field:p})=>t.jsxs(H,{children:[t.jsx(K,{children:c("details.connection.nameLabel")}),t.jsx(L,{children:t.jsx(J,{...p})}),t.jsx(X,{})]})}),t.jsx(G,{control:S.control,name:"description",render:({field:p})=>t.jsxs(H,{children:[t.jsx(K,{children:c("details.connection.descriptionLabel")}),t.jsx(L,{children:t.jsx(J,{...p,value:p.value||""})}),t.jsx(X,{})]})})]}),t.jsx(Ns,{form:S,connection:h??s,hasOAuthToken:_.hasOAuthToken,onReauthenticate:A,onRemoveOAuth:R}),t.jsx(at,{connection:h??s,form:S,hasMcpBinding:T,isMCPAuthenticated:O,supportsOAuth:_.supportsOAuth,isServerError:_.isServerError,onAuthenticate:A,onViewReadme:void 0})]}),t.jsxs("div",{className:"px-6 py-4 border-t border-border flex gap-2 shrink-0",children:[t.jsx(B,{onClick:z,disabled:!v||r,className:"flex-1",children:c(r?"details.connection.savingButton":"details.connection.saveButton")}),v&&t.jsx(B,{variant:"outline",onClick:E,children:c("details.connection.undoButton")}),t.jsxs(B,{variant:"outline",className:"gap-2 text-muted-foreground hover:text-destructive",onClick:()=>{const p=h??s;g(null),m.requestDelete(p)},children:[t.jsx(ce,{size:15}),c("details.connection.deleteButton")]})]})]},h?.id??s.id)]})}),t.jsx(lt,{children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[t.jsx(bs,{connection:s,displayTitle:(()=>{const p=a[0]??s;return p.app_name?p.title.replace(/\s*\(\d+\)\s*$/,""):p.title})()}),t.jsx("div",{className:"flex-1 overflow-auto @container",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-2 gap-5 p-6",children:[t.jsx(ds,{connectionId:e}),t.jsxs("div",{className:"flex flex-col gap-5",children:[t.jsx(es,{instances:a,onConfigure:p=>g(p),onAuthenticate:p=>M(p.id),onDelete:p=>m.requestDelete(p),onToggleStatus:async(p,b)=>{try{await x.update.mutateAsync({id:p.id,data:{status:b}}),Y.success(c(b==="active"?"details.connection.connectionEnabled":"details.connection.connectionDisabled"))}catch{Y.error(c("details.connection.failedUpdateConnection"))}},isAdding:j,onAdd:async()=>{N(!0);try{const p=a[0]??s,b=p.title.replace(/\s*\(\d+\)\s*$/,""),I=a.length+1,k=`${b} (${I})`,F=et("conn");await x.create.mutateAsync({id:F,title:k,description:p.description??null,connection_type:p.connection_type,connection_url:p.connection_url??null,connection_token:null,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:p.created_by,organization_id:p.organization_id,icon:p.icon??null,app_name:p.app_name??null,app_id:p.app_id??null,connection_headers:p.connection_headers??null,oauth_config:null,configuration_state:p.configuration_state??null,metadata:null,tools:null,bindings:null});const W=new URL(`/api/${f.slug}/mcp/${F}`,window.location.origin),Z=await Ct({url:W.href,token:null,orgId:f.id});Z.supportsOAuth&&!Z.isAuthenticated&&await M(F)}catch(p){console.error("Failed to add connection instance:",p),Y.error(c("details.connection.failedAddInstance"))}finally{N(!1)}}}),t.jsx(xs,{connection:s})]}),t.jsx("div",{className:"@3xl:col-span-2",children:t.jsx(hs,{tools:o,prompts:i,resources:l,connectionId:e,org:n})})]})})]})})]})}function Is(){const s=U.c(43),e=V();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/$org/settings/connections/$appSlug"},s[0]=n):n=s[0];const r=se(n);let o;s[1]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug"},s[1]=o):o=s[1];const{appSlug:i,org:l}=Ke(o),{org:a}=te(),c=Ae();let d;s[2]!==i?(d={slug:i},s[2]=i,s[3]=d):d=s[3];const u=St(d),[x,f]=Q.useState(null),m=u.find(A=>A.id===x)??u[0]??null;m&&m.id!==x&&f(m.id);const h=m?.id??"",g=Pe({connectionId:h||null,orgId:a.id,orgSlug:a.slug});let j;s[4]!==g?(j={client:g},s[4]=g,s[5]=j):j=s[5];const{data:N}=yt(j),_=N?N.tools.map($s):(m?.tools??[]).map(Ds);let y;e:{if(u.length<=1){y=_;break e}const A=new Set,R=[],p=As;for(const b of u){const I=b.id===h?_:p(b.tools);for(const k of I)A.has(k.name)||(A.add(k.name),R.push(k))}y=R.length>0?R:_}const C=y;let D;s[6]!==g?(D={client:g},s[6]=g,s[7]=D):D=s[7];const{data:w}=_t(D);let $;s[8]!==g?($={client:g},s[8]=g,s[9]=$):$=s[9];const{data:O}=Xe($);let P;s[10]!==w?.prompts?(P=w?.prompts??[],s[10]=w?.prompts,s[11]=P):P=s[11];let T;s[12]!==P?(T=P.map(Ts),s[12]=P,s[13]=T):T=s[13];const S=T;let v;s[14]!==O?.resources?(v=O?.resources??[],s[14]=O?.resources,s[15]=v):v=s[15];let z;s[16]!==v?(z=v.map(ks),s[16]=v,s[17]=z):z=s[17];const E=z;if(!m){let A;s[18]!==e?(A=e("details.connection.notFoundTitle"),s[18]=e,s[19]=A):A=s[19];let R;s[20]!==e?(R=e("details.connection.notFoundDescription"),s[20]=e,s[21]=R):R=s[21];let p;s[22]!==r||s[23]!==l?(p=()=>r({to:"/$org/settings/connections",params:{org:l}}),s[22]=r,s[23]=l,s[24]=p):p=s[24];let b;s[25]!==e?(b=e("details.connection.backButton"),s[25]=e,s[26]=b):b=s[26];let I;s[27]!==p||s[28]!==b?(I=t.jsx(B,{variant:"outline",onClick:p,children:b}),s[27]=p,s[28]=b,s[29]=I):I=s[29];let k;return s[30]!==A||s[31]!==R||s[32]!==I?(k=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(we,{title:A,description:R,actions:I})}),s[30]=A,s[31]=R,s[32]=I,s[33]=k):k=s[33],k}let M;return s[34]!==c.update.isPending||s[35]!==C||s[36]!==m||s[37]!==h||s[38]!==l||s[39]!==S||s[40]!==E||s[41]!==u?(M=t.jsx(ws,{org:l,connection:m,connectionId:h,isUpdating:c.update.isPending,tools:C,prompts:S,resources:E,siblings:u}),s[34]=c.update.isPending,s[35]=C,s[36]=m,s[37]=h,s[38]=l,s[39]=S,s[40]=E,s[41]=u,s[42]=M):M=s[42],M}function ks(s){return{name:s.name,description:s.description,uri:s.uri}}function Ts(s){return{name:s.name,description:s.description}}function As(s){return(s??[]).map(Ps)}function Ps(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema??{},outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function Ds(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema,outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function $s(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema,outputSchema:s.outputSchema,annotations:s.annotations,_meta:s._meta}}function Os(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(He,{children:t.jsx(Q.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Se,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Is,{})})}),s[0]=e):e=s[0],e}function li(){const s=U.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Os,{}),s[0]=e):e=s[0],e}export{li as default};
@@ -1 +0,0 @@
1
- import{r as z,c as W,b as ne,j as t,aG as We,aH as Xe,aI as Ge,aJ as qe,bj as Qe,aK as Je,aL as Ye,aM as Ze,B as L,h as de,m as he,Y as ie,x as Ne,aS as Te,w as Ae,y as we,v as Ie,D as Pe,X as et,_ as tt,Z as nt,R as st,a4 as Me,d as $e,u as ot,a as Oe,a3 as it,ap as ye,aq as ct,as as lt,aD as rt,aC as at,n as pe,I as se,E as te,q as dt,aj as ut,t as R,df as gt,K as mt,gd as pt}from"./index-DVvmeJMJ.js";import{a as Fe,g as ft,e as ht}from"./extract-connection-data-DBROTNmw.js";import{C as xt}from"./collection-display-button-B9tDNz3Q.js";import{S as jt}from"./search-toggle-BSwOQVMD.js";import{C as St}from"./collection-tabs-C-HhSJ3V.js";import{C as Ce,u as Ue,g as yt}from"./connection-card-CWeiT8GU.js";import{E as Ct}from"./empty-state-DPWCLNrd.js";import{u as vt,D as bt}from"./use-delete-connection-DpEMQiOo.js";import{u as _t}from"./use-infinite-scroll-CfhQVaOS.js";import{u as Ve}from"./use-mobile-Dc6kWu8K.js";import{g as ae}from"./connection-slug-7qrL1eY0.js";import{n as xe}from"./LinkBroken01-4XuFjBFS.js";import{g as Dt,a as kt}from"./metadata-D72DunRR.js";import{D as Nt,a as Tt,e as At,b as wt,c as It,f as Pt,g as Mt}from"./drawer-DO5xJQb9.js";import{F as q,b as Q,c as J,d as Y,f as Z,a as De}from"./form-BTSAyeiz.js";import{S as $t,b as Ot,a as Ft,d as Ut,c as re}from"./select-CBAbBtbp.js";import{T as Vt}from"./textarea-yEyl1P1k.js";import{b as ze,u as zt}from"./use-connection-DnLlCwu6.js";import{m as Lt}from"./use-mcp-client-Bh7kEUBS.js";import{a as Et}from"./repository-binding-DJpVzzIq.js";import{g as Bt}from"./types-DDm1cJJv.js";import{A as Kt,c1 as Ht,aC as Rt,bv as Wt,aD as Se}from"./agent-icon-uDqFfzhf.js";import{s as Le}from"./Plus-DXpzgENj.js";import{c as Xt}from"./UserSquare-NNxs0RWc.js";import{s as Ee}from"./XClose-E_Sbr7JC.js";import{s as Gt}from"./use-project-scope-BbUTPXSS.js";import{c as qt}from"./schema-ChSE97DN.js";import{i as fe,a as ke,E as Qt,p as Jt,b as Yt,c as Zt}from"./connection-form-helpers-DvFcvjHg.js";import{a as en}from"./authenticate-and-persist-oauth-DyNu9KE-.js";import{I as tn}from"./integration-icon-C9OIwyFH.js";import{C as Be}from"./checkbox-Bq5cgSkE.js";import{a as nn}from"./SwitchHorizontal01-C42vJfgE.js";import{s as Ke}from"./Tool01-DB3xqZeL.js";import{s as He}from"./Trash01-BAWUFhrC.js";import"./connection-DWztoPJi.js";import"./url-slug-W6aFEmJF.js";import"./ArrowUp-BZtzDI6h.js";import"./tooltip-BVrosRIK.js";import"./index-DwNl1Km0.js";import"./toggle-group-pyWm-TzL.js";import"./active-indicator-CCMhAsc_.js";import"./badge-FhnYiqmQ.js";import"./SearchMd-CWmEKOOP.js";import"./icon-button-BMTp1-QM.js";import"./useInfiniteQuery-BuWYzJlw.js";import"./infiniteQueryObserver-Depn9DGH.js";import"./thread-intent-BNVTtSHt.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-B9yUO9oy.js";import"./task-board-D-pfBnAn.js";import"./schema-CzuWRpLl.js";import"./label-DxsI69Ti.js";import"./index-BdQq_4o_.js";import"./ChevronUp-DlMNWluH.js";import"./auth-DzshLgt0.js";import"./AlertCircle-C4gtVV8B.js";import"./ArrowLeft-DpMV6ZsI.js";import"./ShoppingBag01-ClDrdJV2.js";import"./Globe04-xh_ZOoQS.js";import"./CheckCircle-DSJM5Ipe.js";import"./ChevronSelectorVertical-Y1qRZSrs.js";import"./CreditCard01-DDsAjKey.js";import"./Key01-BnxP0_QL.js";import"./Minus-D8UqNYy4.js";import"./Monitor01-CVDkBVET.js";import"./Sun-wXzOhHYv.js";import"./Play--aCtxlXx.js";import"./Upload01-CMkGIZuR.js";import"./Users01-DIshv_Ib.js";import"./Zap-BFWL2aD-.js";import"./mcp-oauth-Dz6mx5UF.js";import"./mcp-oauth-B4bma3Oc.js";function sn(s){const e=`deco-filters-${s}`,[n,g]=z.useState(()=>{try{const i=globalThis.localStorage?.getItem(e);if(i)return JSON.parse(i)}catch(i){console.error("Failed to parse stored filters:",i)}return[]});return[n,i=>{g(i);try{globalThis.localStorage?.setItem(e,JSON.stringify(i))}catch(l){console.error("Failed to save filters:",l)}}]}function on(s){const e=W.c(7),[n,g]=z.useState(s),[o,i]=z.useState(s?"desc":null);let l;e[0]!==o||e[1]!==n?(l=p=>{n!==p?(g(p),i("asc")):o==="asc"?i("desc"):o==="desc"&&(g(void 0),i(null))},e[0]=o,e[1]=n,e[2]=l):l=e[2];const r=l;let d;return e[3]!==r||e[4]!==o||e[5]!==n?(d={sortKey:n,sortDirection:o,handleSort:r},e[3]=r,e[4]=o,e[5]=n,e[6]=d):d=e[6],d}function cn(s,e){const n=W.c(12),g=e===void 0?"cards":e,o=Ve(),i=z.useRef(o),l=s?`deco-view-mode-${s}`:"deco-view-mode";let r;n[0]!==g||n[1]!==l?(r=()=>{const S=globalThis.localStorage?.getItem(l);return S==="cards"||S==="table"?S:g},n[0]=g,n[1]=l,n[2]=r):r=n[2];const[d,p]=z.useState(r);let m;n[3]!==l?(m=S=>{p(S),globalThis.localStorage?.setItem(l,S)},n[3]=l,n[4]=m):m=n[4];const u=m;let a,j;n[5]!==o||n[6]!==d?(a=()=>{!i.current&&o&&d==="table"&&p("cards"),i.current=o},j=[o,d],n[5]=o,n[6]=d,n[7]=a,n[8]=j):(a=n[7],j=n[8]),z.useEffect(a,j);let f;return n[9]!==u||n[10]!==d?(f=[d,u],n[9]=u,n[10]=d,n[11]=f):f=n[11],f}function ln(s){const e=W.c(20),{namespace:n,resource:g,defaultSortKey:o,defaultViewMode:i}=s,l=o===void 0?"title":o,r=i===void 0?"table":i,[d,p]=z.useState(""),m=z.useDeferredValue(d),u=`${n}-${g}`,[a,j]=sn(u),f=`studio-${g}-filter-visible-${n}`;let S;e[0]!==f?(S=()=>globalThis.localStorage?.getItem(f)==="true",e[0]=f,e[1]=S):S=e[1];const[y,v]=z.useState(S);let C;e[2]!==f?(C=$=>{v($),globalThis.localStorage?.setItem(f,String($))},e[2]=f,e[3]=C):C=e[3];const c=C;let h;e[4]!==y||e[5]!==c?(h=()=>{c(!y)},e[4]=y,e[5]=c,e[6]=h):h=e[6];const w=h,[N,T]=cn(`studio-${g}-${n}`,r),{sortKey:M,sortDirection:I,handleSort:O}=on(l),P=M;let k;return e[7]!==y||e[8]!==a||e[9]!==O||e[10]!==d||e[11]!==m||e[12]!==c||e[13]!==j||e[14]!==T||e[15]!==I||e[16]!==P||e[17]!==w||e[18]!==N?(k={search:d,searchTerm:m,setSearch:p,filters:a,setFilters:j,filterBarVisible:y,setFilterBarVisible:c,toggleFilterBar:w,viewMode:N,setViewMode:T,sortKey:P,sortDirection:I,handleSort:O},e[7]=y,e[8]=a,e[9]=O,e[10]=d,e[11]=m,e[12]=c,e[13]=j,e[14]=T,e[15]=I,e[16]=P,e[17]=w,e[18]=N,e[19]=k):k=e[19],k}function rn(s){const e=W.c(35),{open:n,onOpenChange:g,count:o,onConfirm:i}=s,l=ne(),r=o===1?"orgs.bulkDeleteDialog.deleteTitleSingular":"orgs.bulkDeleteDialog.deleteTitlePlural";let d;e[0]!==o||e[1]!==l||e[2]!==r?(d=l(r,{count:o}),e[0]=o,e[1]=l,e[2]=r,e[3]=d):d=e[3];let p;e[4]!==d?(p=t.jsx(We,{children:d}),e[4]=d,e[5]=p):p=e[5];const m=o===1?"orgs.bulkDeleteDialog.deleteDescriptionSingular":"orgs.bulkDeleteDialog.deleteDescriptionPlural";let u;e[6]!==l||e[7]!==m?(u=l(m),e[6]=l,e[7]=m,e[8]=u):u=e[8];let a;e[9]!==u?(a=t.jsx(Xe,{children:u}),e[9]=u,e[10]=a):a=e[10];let j;e[11]!==p||e[12]!==a?(j=t.jsxs(Ge,{children:[p,a]}),e[11]=p,e[12]=a,e[13]=j):j=e[13];let f;e[14]!==l?(f=l("orgs.bulkDeleteDialog.cancelButton"),e[14]=l,e[15]=f):f=e[15];let S;e[16]!==f?(S=t.jsx(qe,{children:f}),e[16]=f,e[17]=S):S=e[17];const y=o===1?"orgs.bulkDeleteDialog.deleteButtonSingular":"orgs.bulkDeleteDialog.deleteButtonPlural";let v;e[18]!==o||e[19]!==l||e[20]!==y?(v=l(y,{count:o}),e[18]=o,e[19]=l,e[20]=y,e[21]=v):v=e[21];let C;e[22]!==i||e[23]!==v?(C=t.jsx(Qe,{onClick:i,variant:"destructive",children:v}),e[22]=i,e[23]=v,e[24]=C):C=e[24];let c;e[25]!==C||e[26]!==S?(c=t.jsxs(Je,{children:[S,C]}),e[25]=C,e[26]=S,e[27]=c):c=e[27];let h;e[28]!==c||e[29]!==j?(h=t.jsxs(Ye,{children:[j,c]}),e[28]=c,e[29]=j,e[30]=h):h=e[30];let w;return e[31]!==g||e[32]!==n||e[33]!==h?(w=t.jsx(Ze,{open:n,onOpenChange:g,children:h}),e[31]=g,e[32]=n,e[33]=h,e[34]=w):w=e[34],w}function an(s){const e=W.c(39),{item:n,canManage:g,allConnections:o,connectedAppNames:i,connectingItemId:l,onNavigateConnected:r,onConnect:d}=s,p=ne();let m,u;e[0]!==i||e[1]!==n?(m=Fe(n)??"",u=i.has(m),e[0]=i,e[1]=n,e[2]=m,e[3]=u):(m=e[2],u=e[3]);const a=u;let j;e[4]!==n._meta?(j=Dt(n._meta),e[4]=n._meta,e[5]=j):j=e[5];const f=j,S=f?.friendlyName||f?.friendly_name||n.server?.title||n.title||n.server?.name||n.name||n.id||"",y=n.server?.description||n.description||null;let v;e[6]!==n.server?.icons?.[0]?.src||e[7]!==n.server?.repository?(v=n.server?.icons?.[0]?.src||kt(n.server?.repository)||null,e[6]=n.server?.icons?.[0]?.src,e[7]=n.server?.repository,e[8]=v):v=e[8];const C=v;let c;if(e[9]!==o||e[10]!==m){let U;e[12]!==m?(U=X=>X.connection_type!=="VIRTUAL"&&X.app_name===m,e[12]=m,e[13]=U):U=e[13],c=o.filter(U),e[9]=o,e[10]=m,e[11]=c}else c=e[11];const h=c,w=a||g;let N,T;e[14]!==h||e[15]!==a||e[16]!==n||e[17]!==d||e[18]!==r?(N=()=>{if(a){const U=h[0];U&&r(U);return}T()},T=()=>d(n),e[14]=h,e[15]=a,e[16]=n,e[17]=d,e[18]=r,e[19]=N,e[20]=T):(N=e[19],T=e[20]);let M;e[21]!==y||e[22]!==C||e[23]!==S?(M={title:S,description:y,icon:C},e[21]=y,e[22]=C,e[23]=S,e[24]=M):M=e[24];let I;e[25]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(xe,{}),e[25]=I):I=e[25];const O=w?N:void 0;let P;e[26]!==g||e[27]!==l||e[28]!==T||e[29]!==a||e[30]!==n.id||e[31]!==p?(P=a?t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:p("orgs.catalogItemCard.connected")}):g&&t.jsx(L,{variant:"outline",size:"sm",disabled:l!==null,onClick:U=>{U.stopPropagation(),T()},children:l===n.id?t.jsx(de,{className:"size-3.5"}):p("orgs.catalogItemCard.connect")}),e[26]=g,e[27]=l,e[28]=T,e[29]=a,e[30]=n.id,e[31]=p,e[32]=P):P=e[32];let k;e[33]!==P?(k=t.jsx("div",{className:"flex items-center gap-2",children:P}),e[33]=P,e[34]=k):k=e[34];let $;return e[35]!==M||e[36]!==O||e[37]!==k?($=t.jsx(Ce,{connection:M,fallbackIcon:I,onClick:O,headerActionsAlwaysVisible:!0,headerActions:k}),e[35]=M,e[36]=O,e[37]=k,e[38]=$):$=e[38],$}function dn(s){return s?.length?{appToolName:s.find(n=>!!Bt(n._meta))?.name??null}:null}const un=3;function gn(s){const e=new Map;for(const n of s)for(const g of n.connections??[]){const o=e.get(g.connection_id)??[];o.push(n),e.set(g.connection_id,o)}return e}function mn(s){const e=W.c(21),{projects:n}=s,g=ne();if(n.length===0){let u;e[0]!==g?(u=g("projects.connections.orgWide"),e[0]=g,e[1]=u):u=e[1];let a;return e[2]!==u?(a=t.jsx("span",{className:"text-xs text-muted-foreground",children:u}),e[2]=u,e[3]=a):a=e[3],a}let o,i,l;if(e[4]!==n){const u=n.slice(0,un);l="flex min-w-0 items-center gap-2",o="flex shrink-0 -space-x-1.5",i=u.map(pn),e[4]=n,e[5]=o,e[6]=i,e[7]=l}else o=e[5],i=e[6],l=e[7];let r;e[8]!==o||e[9]!==i?(r=t.jsx("div",{className:o,children:i}),e[8]=o,e[9]=i,e[10]=r):r=e[10];let d;e[11]!==n[0]?.title||e[12]!==n.length||e[13]!==g?(d=n.length===1?n[0]?.title:g("projects.connections.usedBy",{count:n.length}),e[11]=n[0]?.title,e[12]=n.length,e[13]=g,e[14]=d):d=e[14];let p;e[15]!==d?(p=t.jsx("span",{className:"truncate text-xs text-muted-foreground",children:d}),e[15]=d,e[16]=p):p=e[16];let m;return e[17]!==l||e[18]!==r||e[19]!==p?(m=t.jsxs("div",{className:l,children:[r,p]}),e[17]=l,e[18]=r,e[19]=p,e[20]=m):m=e[20],m}function pn(s){return t.jsx("span",{className:"rounded-md ring-2 ring-card",title:s.title,children:t.jsx(Kt,{icon:s.icon,name:s.title,size:"xs"})},s.id)}function Re(s){const e=W.c(8),{selectionMode:n,children:g}=s,o=n?"w-8 opacity-100":"w-0 opacity-0 group-hover:w-8 group-hover:opacity-100";let i;e[0]!==o?(i=he("overflow-hidden transition-all duration-150 ease-out",o),e[0]=o,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(et,{asChild:!0,children:t.jsx(L,{variant:"ghost",size:"icon",onClick:hn,children:t.jsx(nn,{size:20})})}),e[2]=l):l=e[2];let r;e[3]!==g?(r=t.jsxs(tt,{children:[l,t.jsx(nt,{align:"end",onClick:fn,children:g})]}),e[3]=g,e[4]=r):r=e[4];let d;return e[5]!==i||e[6]!==r?(d=t.jsx("div",{className:i,children:r}),e[5]=i,e[6]=r,e[7]=d):d=e[7],d}function fn(s){return s.stopPropagation()}function hn(s){return s.stopPropagation()}function xn(s){const e=W.c(57),{group:n,onOpen:g,selectionMode:o,selectedIds:i,onToggleSelect:l}=s,r=ne();let d;if(e[0]!==n.connections||e[1]!==i){let x;e[3]!==i?(x=A=>i.has(A.id),e[3]=i,e[4]=x):x=e[4],d=n.connections.every(x),e[0]=n.connections,e[1]=i,e[2]=d}else d=e[2];const p=d;let m;if(e[5]!==n.connections||e[6]!==i){let x;e[8]!==i?(x=A=>i.has(A.id),e[8]=i,e[9]=x):x=e[9],m=n.connections.some(x),e[5]=n.connections,e[6]=i,e[7]=m}else m=e[7];const u=m;let a;e[10]!==p||e[11]!==n.connections||e[12]!==l||e[13]!==i?(a=()=>{for(const x of n.connections)p?i.has(x.id)&&l(x.id):i.has(x.id)||l(x.id)},e[10]=p,e[11]=n.connections,e[12]=l,e[13]=i,e[14]=a):a=e[14];const j=a,f=n.title,S=n.icon;let y;e[15]!==n.connections.length||e[16]!==r?(y=r("orgs.connectionSelectionUi.instancesCount",{count:n.connections.length}),e[15]=n.connections.length,e[16]=r,e[17]=y):y=e[17];let v;e[18]!==n.icon||e[19]!==n.title||e[20]!==y?(v={title:f,icon:S,description:y},e[18]=n.icon,e[19]=n.title,e[20]=y,e[21]=v):v=e[21];let C;e[22]!==g||e[23]!==o||e[24]!==j?(C=()=>o?j():g(),e[22]=g,e[23]=o,e[24]=j,e[25]=C):C=e[25];const c=o&&p&&"ring-2 ring-primary",h=o&&u&&!p&&"ring-1 ring-primary/50";let w;e[26]!==h||e[27]!==c?(w=he(c,h),e[26]=h,e[27]=c,e[28]=w):w=e[28];const N=o?p?!0:u&&"mixed":void 0;let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(xe,{}),e[29]=T):T=e[29];let M;e[30]!==p||e[31]!==n.connections.length||e[32]!==o||e[33]!==u||e[34]!==r||e[35]!==j?(M=o?t.jsx(Be,{checked:p?!0:u?"indeterminate":!1,onCheckedChange:j}):t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:r("orgs.connectionSelectionUi.connected")}),t.jsxs("span",{className:"text-xs text-muted-foreground font-normal tabular-nums",children:["x",n.connections.length]})]}),e[30]=p,e[31]=n.connections.length,e[32]=o,e[33]=u,e[34]=r,e[35]=j,e[36]=M):M=e[36];let I;e[37]!==g?(I=x=>{x.stopPropagation(),g()},e[37]=g,e[38]=I):I=e[38];let O;e[39]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(Ke,{size:16}),e[39]=O):O=e[39];let P;e[40]!==r?(P=r("orgs.connectionSelectionUi.open"),e[40]=r,e[41]=P):P=e[41];let k;e[42]!==I||e[43]!==P?(k=t.jsxs(ie,{onClick:I,children:[O,P]}),e[42]=I,e[43]=P,e[44]=k):k=e[44];let $;e[45]!==o||e[46]!==k?($=t.jsx(Re,{selectionMode:o,children:k}),e[45]=o,e[46]=k,e[47]=$):$=e[47];let U;e[48]!==M||e[49]!==$?(U=t.jsxs("div",{className:"flex items-center gap-1",children:[M,$]}),e[48]=M,e[49]=$,e[50]=U):U=e[50];let X;return e[51]!==w||e[52]!==N||e[53]!==U||e[54]!==v||e[55]!==C?(X=t.jsx(t.Fragment,{children:t.jsx(Ce,{connection:v,onClick:C,className:w,selected:N,fallbackIcon:T,headerActionsAlwaysVisible:!0,headerActions:U})}),e[51]=w,e[52]=N,e[53]=U,e[54]=v,e[55]=C,e[56]=X):X=e[56],X}function jn(s){const e=W.c(36),{connection:n,isSelected:g,selectionMode:o,canManage:i,canManageAgents:l,onToggleSelect:r,onOpen:d,onToggleStatus:p,onDelete:m}=s,u=ne();let a;e[0]!==g||e[1]!==r||e[2]!==o||e[3]!==u?(a=o?t.jsx(Be,{checked:g,onCheckedChange:r,onClick:Sn}):t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:u("orgs.connectionSelectionUi.connected")}),e[0]=g,e[1]=r,e[2]=o,e[3]=u,e[4]=a):a=e[4];let j;e[5]!==d?(j=N=>{N.stopPropagation(),d()},e[5]=d,e[6]=j):j=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Ke,{size:16}),e[7]=f):f=e[7];let S;e[8]!==u?(S=u("orgs.connectionSelectionUi.open"),e[8]=u,e[9]=S):S=e[9];let y;e[10]!==j||e[11]!==S?(y=t.jsxs(ie,{onClick:j,children:[f,S]}),e[10]=j,e[11]=S,e[12]=y):y=e[12];let v;e[13]!==i||e[14]!==l||e[15]!==r||e[16]!==u?(v=(i||l)&&t.jsxs(ie,{onClick:N=>{N.stopPropagation(),r()},children:[t.jsx(Ht,{size:16}),u("orgs.connectionSelectionUi.select")]}),e[13]=i,e[14]=l,e[15]=r,e[16]=u,e[17]=v):v=e[17];let C;e[18]!==i||e[19]!==n||e[20]!==p||e[21]!==u?(C=i&&(n.status==="active"?t.jsxs(ie,{onClick:N=>{N.stopPropagation(),p("inactive")},children:[t.jsx(Rt,{size:16}),u("orgs.connectionSelectionUi.disable")]}):t.jsxs(ie,{onClick:N=>{N.stopPropagation(),p("active")},children:[t.jsx(Wt,{size:16}),u("orgs.connectionSelectionUi.enable")]})),e[18]=i,e[19]=n,e[20]=p,e[21]=u,e[22]=C):C=e[22];let c;e[23]!==i||e[24]!==m||e[25]!==u?(c=i&&t.jsxs(ie,{variant:"destructive",onClick:N=>{N.stopPropagation(),m()},children:[t.jsx(He,{size:16}),u("orgs.connectionSelectionUi.delete")]}),e[23]=i,e[24]=m,e[25]=u,e[26]=c):c=e[26];let h;e[27]!==o||e[28]!==y||e[29]!==v||e[30]!==C||e[31]!==c?(h=t.jsxs(Re,{selectionMode:o,children:[y,v,C,c]}),e[27]=o,e[28]=y,e[29]=v,e[30]=C,e[31]=c,e[32]=h):h=e[32];let w;return e[33]!==a||e[34]!==h?(w=t.jsxs("div",{className:"flex items-center gap-1",children:[a,h]}),e[33]=a,e[34]=h,e[35]=w):w=e[35],w}function Sn(s){return s.stopPropagation()}function yn(s){const e=W.c(29),{count:n,total:g,canManage:o,canManageAgents:i,onSelectAll:l,onDeselectAll:r,onDelete:d,onAddToAgent:p,onToggleStatus:m,onCancel:u}=s,a=ne();if(n===0)return null;let j;e[0]!==n||e[1]!==a?(j=a("orgs.connectionSelectionUi.selectedCount",{count:n}),e[0]=n,e[1]=a,e[2]=j):j=e[2];let f;e[3]!==j?(f=t.jsx("div",{className:"text-xs text-muted-foreground pr-1 tabular-nums",children:j}),e[3]=j,e[4]=f):f=e[4];let S;e[5]!==n||e[6]!==r||e[7]!==l||e[8]!==a||e[9]!==g?(S=n<g?t.jsx(L,{variant:"outline",size:"sm",onClick:l,children:a("orgs.connectionSelectionUi.selectAll",{total:g})}):t.jsx(L,{variant:"outline",size:"sm",onClick:r,children:a("orgs.connectionSelectionUi.clearSelection")}),e[5]=n,e[6]=r,e[7]=l,e[8]=a,e[9]=g,e[10]=S):S=e[10];let y;e[11]!==i||e[12]!==p||e[13]!==a?(y=i&&t.jsxs(L,{variant:"outline",size:"sm",onClick:p,children:[t.jsx(Le,{size:13}),a("orgs.connectionSelectionUi.addToAgent")]}),e[11]=i,e[12]=p,e[13]=a,e[14]=y):y=e[14];let v;e[15]!==o||e[16]!==d||e[17]!==m||e[18]!==a?(v=o&&t.jsxs(t.Fragment,{children:[t.jsx(L,{variant:"outline",size:"sm",onClick:()=>m("active"),children:a("orgs.connectionSelectionUi.enable")}),t.jsx(L,{variant:"outline",size:"sm",onClick:()=>m("inactive"),children:a("orgs.connectionSelectionUi.disable")}),t.jsxs(L,{variant:"destructive",size:"sm",onClick:d,children:[t.jsx(He,{size:13}),a("orgs.connectionSelectionUi.delete")]})]}),e[15]=o,e[16]=d,e[17]=m,e[18]=a,e[19]=v):v=e[19];let C;e[20]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(Ee,{size:13}),e[20]=C):C=e[20];let c;e[21]!==u?(c=t.jsx(L,{variant:"ghost",size:"sm",onClick:u,children:C}),e[21]=u,e[22]=c):c=e[22];let h;return e[23]!==f||e[24]!==S||e[25]!==y||e[26]!==v||e[27]!==c?(h=t.jsx("div",{className:"fixed bottom-4 left-1/2 z-50 -translate-x-1/2",children:t.jsxs("div",{className:"rounded-xl glass px-3 py-2 flex items-center gap-2",children:[f,S,y,v,c]})}),e[23]=f,e[24]=S,e[25]=y,e[26]=v,e[27]=c,e[28]=h):h=e[28],h}function Cn(s){const e=W.c(47),{open:n,onOpenChange:g,agents:o,onConfirm:i}=s,l=ne(),[r,d]=z.useState(null);let p;e[0]!==g?(p=k=>{k||d(null),g(k)},e[0]=g,e[1]=p):p=e[1];const m=p;let u;e[2]!==l?(u=l("orgs.connectionSelectionUi.addToAgentTitle"),e[2]=l,e[3]=u):u=e[3];let a;e[4]!==u?(a=t.jsx(Ne,{children:u}),e[4]=u,e[5]=a):a=e[5];let j;e[6]!==l?(j=l("orgs.connectionSelectionUi.addToAgentDescription"),e[6]=l,e[7]=j):j=e[7];let f;e[8]!==j?(f=t.jsx(Te,{children:j}),e[8]=j,e[9]=f):f=e[9];let S;e[10]!==a||e[11]!==f?(S=t.jsxs(Ae,{children:[a,f]}),e[10]=a,e[11]=f,e[12]=S):S=e[12];let y;e[13]!==o||e[14]!==r||e[15]!==l?(y=o.length===0?t.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:l("orgs.connectionSelectionUi.noAgentsFound")}):o.map(k=>t.jsxs("button",{type:"button",onClick:()=>d(k.id),className:he("flex items-center gap-3 w-full rounded-lg px-3 py-2 text-left transition-colors",r===k.id?"bg-primary/10 ring-1 ring-primary":"hover:bg-accent"),children:[t.jsx(tn,{icon:k.icon,name:k.title,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:k.title}),k.description&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:k.description})]})]},k.id)),e[13]=o,e[14]=r,e[15]=l,e[16]=y):y=e[16];let v;e[17]!==y?(v=t.jsx("div",{className:"max-h-60 overflow-auto py-2 space-y-1",children:y}),e[17]=y,e[18]=v):v=e[18];let C;e[19]!==m?(C=()=>m(!1),e[19]=m,e[20]=C):C=e[20];let c;e[21]!==l?(c=l("orgs.connectionSelectionUi.cancel"),e[21]=l,e[22]=c):c=e[22];let h;e[23]!==c||e[24]!==C?(h=t.jsx(L,{variant:"outline",onClick:C,children:c}),e[23]=c,e[24]=C,e[25]=h):h=e[25];const w=!r;let N;e[26]!==m||e[27]!==i||e[28]!==r?(N=()=>{r&&(i(r),m(!1))},e[26]=m,e[27]=i,e[28]=r,e[29]=N):N=e[29];let T;e[30]!==l?(T=l("orgs.connectionSelectionUi.add"),e[30]=l,e[31]=T):T=e[31];let M;e[32]!==w||e[33]!==N||e[34]!==T?(M=t.jsx(L,{disabled:w,onClick:N,children:T}),e[32]=w,e[33]=N,e[34]=T,e[35]=M):M=e[35];let I;e[36]!==h||e[37]!==M?(I=t.jsxs(we,{children:[h,M]}),e[36]=h,e[37]=M,e[38]=I):I=e[38];let O;e[39]!==I||e[40]!==S||e[41]!==v?(O=t.jsxs(Ie,{className:"sm:max-w-[400px]",children:[S,v,I]}),e[39]=I,e[40]=S,e[41]=v,e[42]=O):O=e[42];let P;return e[43]!==m||e[44]!==n||e[45]!==O?(P=t.jsx(Pe,{open:n,onOpenChange:m,children:O}),e[43]=m,e[44]=n,e[45]=O,e[46]=P):P=e[46],P}function vn({listState:s,activeTab:e,typeFilter:n,statusFilter:g}){const o=ne(),{org:i}=Me(),l=dt(),r=$e(),{data:d}=Oe.useSession(),p=ze(),m=zt(s),u=vt(),{granted:a}=ye("connections:manage"),{granted:j}=ye("agents:manage"),[f,S]=z.useState(new Set),y=f.size>0,[v,C]=z.useState(!1),[c,h]=z.useState(!1),[w,N]=z.useState(null),T=Et(),M=gn(Gt(T)),I=m.filter(b=>!(n!=="ALL"&&b.connection_type!==n||g!=="ALL"&&b.status!==g)),O=yt(I),P=b=>{S(_=>{const E=new Set(_);return E.has(b)?E.delete(b):E.add(b),E})},k=()=>{S(new Set)},$=Ue(s.searchTerm),U=$.items,X=_t($.loadMore,$.hasMore,$.isLoadingMore),x=new Set(m.filter(b=>b.app_name).map(b=>b.app_name)),A=s.search.length>0,B=e==="all"||A?U.filter(b=>{if(A){const _=Fe(b);if(_&&x.has(_))return!1}return!0}):[],ee=e==="connected"||A?O:[],G=async b=>{if(!(!i||!d?.user?.id)){te("connection_add_clicked",{action:"connect_new",registry_item_id:b.id,source:"connections_page"}),N(b.id);try{const _=ht(b,i.id,d.user.id,{remoteIndex:0}),E=_.connection_type==="STDIO",K=!!_.connection_url,H=E&&_.connection_headers&&typeof _.connection_headers=="object"&&"command"in _.connection_headers;if(!K&&!H){R.error(o("orgs.connections.cannotConnectNoMethod")),N(null);return}const ve=await p.create.mutateAsync(_),{id:oe}=ve,ce=await en({connectionId:oe,orgId:i.id,orgSlug:i.slug,persistFallback:le=>p.update.mutateAsync({id:oe,data:{connection_token:le}}).then(()=>{})});if(ce.ran&&!ce.ok){te("connection_oauth_failed",{connection_id:oe,flow:"connections_page_connect",error:ce.error??"no_token"}),R.error(o("orgs.connections.authenticationFailed",{error:ce.error??"no token received"}));return}if(ce.ran){te("connection_oauth_succeeded",{connection_id:oe,flow:"connections_page_connect"});const le=new URL(`/api/${i.slug}/mcp/${oe}`,window.location.origin);await l.invalidateQueries({queryKey:mt.isMCPAuthenticated(le.href,null)}),V(),R.success(o("orgs.connections.authenticationSuccessful"))}let me=null;try{const le=await l.fetchQuery(Lt({connectionId:oe,orgId:i.id,orgSlug:i.slug}));me=dn((await le.listTools()).tools)}catch{}const be=ae(ve),_e=me?me.appToolName?{to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:i.slug,appSlug:be,collectionName:"tools",itemId:encodeURIComponent(me.appToolName)}}:{to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:be}}:null;R.success(o("orgs.connections.connectedSuccessfully"),_e?{action:{label:o("orgs.connections.openConnection"),onClick:()=>r(_e)}}:void 0)}catch(_){R.error(o("orgs.connections.failedToConnect",{error:_ instanceof Error?_.message:String(_)}))}finally{N(null)}}},D=ut(),V=()=>{pt(l,i.id)},F=async()=>{C(!1);const b=[...f];te("connections_bulk_delete",{count:b.length});const E=(await Promise.allSettled(b.map(K=>D.call("COLLECTION_CONNECTIONS_DELETE",{id:K,force:!0})))).filter(K=>K.status==="fulfilled").length;V(),R.success(o("orgs.connections.deletedConnections",{count:E})),k()},ue=async(b,_)=>{try{await p.update.mutateAsync({id:b,data:{status:_}}),V(),R.success(o(_==="active"?"orgs.connections.connectionEnabled":"orgs.connections.connectionDisabled"))}catch{R.error(o("orgs.connections.failedToUpdateConnection"))}},je=async b=>{const _=[...f];te("connections_bulk_status_toggled",{count:_.length,to_status:b});const K=(await Promise.allSettled(_.map(H=>p.update.mutateAsync({id:H,data:{status:b}})))).filter(H=>H.status==="fulfilled").length;V(),R.success(b==="active"?o("orgs.connections.enabledConnections",{count:K}):o("orgs.connections.disabledConnections",{count:K})),k()},ge=async b=>{const _=T.find(H=>H.id===b);if(!_)return;te("connections_bulk_add_to_agent",{agent_id:b,count:f.size});const E=new Set(_.connections.map(H=>H.connection_id)),K=[...f].filter(H=>!E.has(H)).map(H=>({connection_id:H,selected_tools:null,selected_resources:null,selected_prompts:null}));if(K.length===0){R.info(o("orgs.connections.allConnectionsAlreadyInAgent"));return}try{await D.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:b,data:{connections:[..._.connections,...K]}}),gt(l,i.id),R.success(o("orgs.connections.addedConnectionsToAgent",{count:K.length,agentTitle:_.title})),k()}catch{R.error(o("orgs.connections.failedToAddConnectionsToAgent"))}};return t.jsxs(t.Fragment,{children:[t.jsx(bt,{...u}),t.jsx(rn,{open:v,onOpenChange:C,count:f.size,onConfirm:F}),t.jsx(Cn,{open:c,onOpenChange:h,agents:T,onConfirm:ge}),$.isInitialLoading&&e==="all"?t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(de,{className:"size-8 text-muted-foreground"})}):t.jsx("div",{children:(A?B.length===0&&I.length===0:e==="all"?B.length===0:I.length===0)?t.jsx(Ct,{image:t.jsx("img",{src:"/emptystate-mcp.svg",alt:"",width:336,height:320,"aria-hidden":"true"}),title:o("orgs.connections.noConnectionsFound"),description:s.search?o("orgs.connections.noConnectionsMatchSearch",{search:s.search}):o(a?"orgs.connections.createConnectionToGetStarted":"orgs.connections.askAdminToAddConnection")}):t.jsxs("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:[ee.map(b=>{if(b.type==="group")return t.jsx(xn,{group:b,onOpen:()=>{r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:b.key}})},selectionMode:y,selectedIds:f,onToggleSelect:P},b.key);const _=b.connection,E=f.has(_.id);return t.jsx(Ce,{connection:_,fallbackIcon:t.jsx(xe,{}),onClick:()=>y?P(_.id):r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:ae(_)}}),className:he(E&&"ring-2 ring-primary bg-primary/5"),selected:y?E:void 0,footer:t.jsx(mn,{projects:M.get(_.id)??[]}),headerActionsAlwaysVisible:!0,headerActions:t.jsx(jn,{connection:_,isSelected:E,selectionMode:y,canManage:a,canManageAgents:j,onToggleSelect:()=>P(_.id),onOpen:()=>r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:ae(_)}}),onToggleStatus:K=>ue(_.id,K),onDelete:()=>u.requestDelete(_)})},_.id)}),B.map(b=>t.jsx(an,{item:b,canManage:a,allConnections:m,connectedAppNames:x,connectingItemId:w,onNavigateConnected:_=>r({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:ae(_)}}),onConnect:G},b.id)),(e==="all"||A)&&t.jsx("div",{ref:X,className:"col-span-full h-4"}),(e==="all"||A)&&$.isLoadingMore&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(de,{className:"size-6 text-muted-foreground"})})]})}),y&&t.jsx(yn,{count:f.size,total:I.length,canManage:a,canManageAgents:j,onSelectAll:()=>{S(new Set(I.map(b=>b.id)))},onDeselectAll:()=>S(new Set),onDelete:()=>C(!0),onAddToAgent:()=>h(!0),onToggleStatus:je,onCancel:k})]})}function bn(){const s=ne(),{org:e}=Me(),n=$e(),g=ot({strict:!1}),{data:o}=Oe.useSession(),{stdioEnabled:i}=it(),l=Ve(),{granted:r}=ye("connections:manage"),d=ln({namespace:e.slug,resource:"connections"}),p=ze(),[m,u]=ct(lt.connectionsTab(e.slug),x=>g.tab==="all"||g.tab==="connected"?g.tab:x??"all"),[a,j]=z.useState("ALL"),[f,S]=z.useState("ALL"),v=Ue(d.searchTerm).items,C=d.search!==d.searchTerm,c=rt({resolver:at(qt),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),h=c.watch("ui_type"),w=c.watch("connection_url"),N=c.watch("npx_package"),T=fe({uiType:h,connectionUrl:w??"",npxPackage:N??""})??ke({uiType:h,connectionUrl:w??"",registryItems:v}),M=r&&g.action==="create",I=()=>{te("connections_custom_dialog_opened",{source:"connections_page"}),n({to:".",search:x=>({...x,action:"create"})})},O=()=>{n({to:".",search:x=>({...x,action:void 0})})},P=async x=>{let A,B=null,ee=null,G=null;x.ui_type==="NPX"?(A="STDIO",B="",G=Yt(x.npx_package||"",x.env_vars||[])):x.ui_type==="STDIO"?(A="STDIO",B="",G=Zt(x.stdio_command||"",x.stdio_args||"",x.stdio_cwd,x.env_vars||[])):(A=x.ui_type,B=x.connection_url||"",ee=x.connection_token||null);const D=ft("conn");te("connection_custom_created",{connection_type:A,ui_type:x.ui_type}),await p.create.mutateAsync({id:D,title:x.title,description:x.description||null,connection_type:A,connection_url:B,connection_token:ee,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:o?.user?.id||"system",organization_id:e.id,icon:x.icon??null,app_name:null,app_id:null,connection_headers:G,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null}),O(),c.reset(),n({to:"/$org/settings/connections/$appSlug",params:{org:e.slug,appSlug:ae({app_name:null,connection_url:B,title:x.title,id:D})}})},k=x=>{x||(M&&O(),c.reset())},$=x=>{const A=x.trim();if(!A)return;const B=!!c.formState.dirtyFields.title,ee=!!c.formState.dirtyFields.description,G=!!c.formState.dirtyFields.env_vars,D=F=>{if(F&&(!B&&!c.getValues("title").trim()&&F.title&&c.setValue("title",F.title,{shouldDirty:!1}),!ee&&!(c.getValues("description")??"").trim()&&F.description&&c.setValue("description",F.description,{shouldDirty:!1}),!G&&F.envVarKeys?.length)){const ue=c.getValues("env_vars")??[],je=new Set(ue.map(b=>b.key)),ge=F.envVarKeys.filter(b=>!je.has(b));ge.length>0&&c.setValue("env_vars",[...ue,...ge.map(b=>({key:b,value:""}))],{shouldDirty:!0})}},V=Jt(A);if(V&&i){c.setValue("ui_type","NPX",{shouldDirty:!0}),c.setValue("npx_package",V.packageName,{shouldDirty:!0}),c.setValue("connection_url","",{shouldDirty:!0}),c.setValue("connection_token",null,{shouldDirty:!0}),D(fe({uiType:"NPX",npxPackage:V.packageName}));return}if(A.startsWith("http://")||A.startsWith("https://")){const F=h==="HTTP"||h==="SSE"||h==="Websocket"?h:"HTTP";c.setValue("ui_type",F,{shouldDirty:!0}),c.setValue("connection_url",A,{shouldDirty:!0}),D(fe({uiType:F,connectionUrl:A})??ke({uiType:F,connectionUrl:A,registryItems:v}));return}h==="NPX"&&D(fe({uiType:"NPX",npxPackage:A}))},U=r?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(L,{size:"sm",variant:"default",onClick:I,children:[t.jsx(Le,{size:14,className:"sm:hidden"}),t.jsx("span",{className:"hidden sm:inline",children:s("orgs.connections.customConnection")})]})}):null,X=t.jsx(xt,{sortKey:d.sortKey,sortDirection:d.sortDirection,onSort:d.handleSort,sortOptions:[{id:"title",label:s("orgs.connections.sortName")},{id:"description",label:s("orgs.connections.sortDescription")},{id:"connection_type",label:s("orgs.connections.sortType")},{id:"updated_by",label:s("orgs.connections.sortUpdatedBy")},{id:"updated_at",label:s("orgs.connections.sortUpdated")}],filters:[{label:s("orgs.connections.filterType"),value:a,onChange:x=>j(x||"ALL"),options:[{id:"ALL",label:s("orgs.connections.filterAll")},{id:"HTTP",label:"HTTP"},{id:"SSE",label:"SSE"},{id:"Websocket",label:"WebSocket"},{id:"STDIO",label:"STDIO"}]},{label:s("orgs.connections.filterStatus"),value:f,onChange:x=>S(x||"ALL"),options:[{id:"ALL",label:s("orgs.connections.filterAll")},{id:"active",label:s("orgs.connections.filterActive")},{id:"inactive",label:s("orgs.connections.filterInactive")},{id:"error",label:s("orgs.connections.filterError")}]}]});return t.jsx(t.Fragment,{children:t.jsxs(pe,{children:[(()=>{const x=s("orgs.connections.createConnection"),A=s("orgs.connections.createConnectionDescription"),B=c.formState.isSubmitting?s("orgs.connections.saving"):s("orgs.connections.createConnection"),ee=t.jsxs("div",{className:"grid gap-4",children:[t.jsx(q,{control:c.control,name:"ui_type",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.type")}),t.jsxs($t,{value:D.value,onValueChange:D.onChange,children:[t.jsx(Y,{children:t.jsx(Ot,{children:t.jsx(Ft,{})})}),t.jsxs(Ut,{children:[t.jsx(re,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Se,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(re,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Se,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(re,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Se,{className:"w-4 h-4"}),"Websocket"]})}),i&&t.jsxs(t.Fragment,{children:[t.jsx(re,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(xe,{className:"w-4 h-4"}),s("orgs.connections.npxPackage")]})}),t.jsx(re,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Xt,{className:"w-4 h-4"}),s("orgs.connections.customCommand")]})})]})]})]}),t.jsx(Z,{})]})}),h==="NPX"&&t.jsx(q,{control:c.control,name:"npx_package",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.npmPackage")}),t.jsx(Y,{children:t.jsx(se,{placeholder:s("orgs.connections.npmPackagePlaceholder"),...D,value:D.value??"",onPaste:V=>{const F=V.clipboardData.getData("text");F&&(V.preventDefault(),c.setValue("npx_package",F.trim(),{shouldDirty:!0}),$(F))},onBlur:V=>{$(V.target.value),D.onBlur()}})}),t.jsx(Z,{})]})}),h==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[t.jsx(q,{control:c.control,name:"stdio_command",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.command")}),t.jsx(Y,{children:t.jsx(se,{placeholder:s("orgs.connections.commandPlaceholder"),...D,value:D.value??""})}),t.jsx(Z,{})]})}),t.jsx(q,{control:c.control,name:"stdio_args",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.arguments")}),t.jsx(Y,{children:t.jsx(se,{placeholder:s("orgs.connections.argumentsPlaceholder"),...D,value:D.value??""})}),t.jsx(Z,{})]})})]}),t.jsx(q,{control:c.control,name:"stdio_cwd",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.workingDirectory")}),t.jsx(Y,{children:t.jsx(se,{placeholder:s("orgs.connections.workingDirectoryPlaceholder"),...D,value:D.value??""})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:s("orgs.connections.directoryExecutionNote")}),t.jsx(Z,{})]})})]}),(h==="NPX"||h==="STDIO")&&t.jsx(q,{control:c.control,name:"env_vars",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.environmentVariables")}),t.jsx(Y,{children:t.jsx(Qt,{value:D.value??[],onChange:D.onChange})}),t.jsx(Z,{})]})}),h!=="NPX"&&h!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(q,{control:c.control,name:"connection_url",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.url")}),t.jsx(Y,{children:t.jsx(se,{placeholder:s("orgs.connections.urlPlaceholder"),...D,value:D.value??"",onPaste:V=>{const F=V.clipboardData.getData("text");F&&(V.preventDefault(),c.setValue("connection_url",F.trim(),{shouldDirty:!0}),$(F))},onBlur:V=>{$(V.target.value),D.onBlur()}})}),t.jsx(Z,{})]})}),t.jsx(q,{control:c.control,name:"connection_token",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:T?.token?.label??s("orgs.connections.tokenOptional")}),t.jsx(Y,{children:t.jsx(se,{type:"password",placeholder:T?.token?.placeholder??s("orgs.connections.tokenPlaceholder"),...D,value:D.value??""})}),T?.token?.helperText&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[T.token.helperText,T.id==="github"&&t.jsxs(t.Fragment,{children:[" ","·"," ",t.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:s("orgs.connections.openGitHubPatSettings")})]})]}),t.jsx(Z,{})]})})]}),t.jsx(q,{control:c.control,name:"title",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.name")}),t.jsx(Y,{children:t.jsx(se,{placeholder:s("orgs.connections.namePlaceholder"),...D})}),t.jsx(Z,{})]})}),t.jsx(q,{control:c.control,name:"description",render:({field:D})=>t.jsxs(Q,{children:[t.jsx(J,{children:s("orgs.connections.description")}),t.jsx(Y,{children:t.jsx(Vt,{placeholder:s("orgs.connections.descriptionPlaceholder"),rows:3,...D,value:D.value??""})}),t.jsx(Z,{})]})})]}),G=M;return l?t.jsx(Nt,{open:G,onOpenChange:k,children:t.jsxs(Tt,{className:"max-h-[90vh]",children:[t.jsx(At,{className:"pb-2",children:t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex-1 text-left",children:[t.jsx(wt,{children:x}),t.jsx(It,{className:"mt-1",children:A})]}),t.jsx(Pt,{asChild:!0,children:t.jsx(L,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1","aria-label":s("orgs.connections.close"),children:t.jsx(Ee,{size:16})})})]})}),t.jsx(De,{...c,children:t.jsxs("form",{onSubmit:c.handleSubmit(P),children:[t.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:ee}),t.jsx(Mt,{children:t.jsx(L,{type:"submit",disabled:c.formState.isSubmitting,className:"w-full",children:B})})]})})]})}):t.jsx(Pe,{open:G,onOpenChange:k,children:t.jsxs(Ie,{className:"sm:max-w-[525px]",children:[t.jsxs(Ae,{children:[t.jsx(Ne,{children:x}),t.jsx(Te,{children:A})]}),t.jsx(De,{...c,children:t.jsxs("form",{onSubmit:c.handleSubmit(P),children:[t.jsx("div",{className:"py-4",children:ee}),t.jsxs(we,{children:[t.jsx(L,{type:"button",variant:"outline",onClick:()=>k(!1),children:s("orgs.connections.cancel")}),t.jsx(L,{type:"submit",disabled:c.formState.isSubmitting,className:"min-w-40",children:B})]})]})})]})})})(),t.jsx(pe.Content,{children:t.jsx(pe.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(pe.Actions,{secondary:t.jsxs(t.Fragment,{children:[t.jsx(jt,{value:d.search,onChange:d.setSearch,label:s("library.context.search"),placeholder:s("orgs.connections.searchPlaceholder"),clearLabel:s("library.library.clearSearch")}),X]}),children:U}),t.jsx(St,{placement:"page",tabs:[{id:"all",label:s("orgs.connections.tabAll")},{id:"connected",label:s("orgs.connections.tabConnected")}],activeTab:m,onTabChange:x=>{const A=x;A!==m&&te("connections_page_tab_changed",{to_tab:A}),u(A)}}),t.jsx(z.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(de,{className:"size-8 text-muted-foreground"})}),children:t.jsx("div",{style:{opacity:C?.5:1,transition:C?"opacity 0.2s 0.2s linear":"opacity 0s 0s linear",pointerEvents:C?"none":"auto"},children:t.jsx(vn,{listState:d,activeTab:m,typeFilter:a,statusFilter:f})})})]})})})]})})}function Ks(){const s=W.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(st,{children:t.jsx(z.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(de,{className:"size-8 text-muted-foreground"})}),children:t.jsx(bn,{})})}),s[0]=e):e=s[0],e}export{Ks as default};