decocms 2.390.0 → 2.391.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/dist/client/assets/{AlertCircle-C_7Pr4dy.js → AlertCircle-D833Ltv-.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-Zf8tvfpV.js → ArrowUpRight-CrasW2I3.js} +1 -1
  3. package/dist/client/assets/{Check-Cgs_Ieiz.js → Check-B-Snf346.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-Ws5jIF72.js → CheckCircle-Da1q2cG-.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BEPxXMEW.js → ChevronDown-BvZFsep5.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-B3uEK8Up.js → ChevronRight-CNXVJ2DZ.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-CGb1Z9d-.js → ChevronUp-CLQmelYz.js} +1 -1
  8. package/dist/client/assets/{Container-Ba4KEZmY.js → Container-Cs9tbOj1.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-CnrlerAd.js → DotsVertical-BF7lQrGo.js} +1 -1
  10. package/dist/client/assets/{FilterLines-CiCglWXp.js → FilterLines-DMWymvCD.js} +1 -1
  11. package/dist/client/assets/{HardDrive-BErHWn5D.js → HardDrive-CYl4X54q.js} +1 -1
  12. package/dist/client/assets/{Key01-BhdD2jeG.js → Key01-DrmRQ9bQ.js} +1 -1
  13. package/dist/client/assets/{LinkExternal01-BMPLHN-8.js → LinkExternal01-BwOlCt0z.js} +1 -1
  14. package/dist/client/assets/{Lock01-Bdorlsjo.js → Lock01-FBg4tUR8.js} +1 -1
  15. package/dist/client/assets/{Monitor01-D1gAe0to.js → Monitor01-DpahDMVO.js} +1 -1
  16. package/dist/client/assets/{Palette-c8ZIWUhe.js → Palette-DsjYkIAm.js} +1 -1
  17. package/dist/client/assets/{Play-DDY4sH4l.js → Play-C_TiwHSZ.js} +1 -1
  18. package/dist/client/assets/{Plus-DAjWQbOS.js → Plus-pn49dx0X.js} +1 -1
  19. package/dist/client/assets/{RefreshCcw01-VWfVcJ_k.js → RefreshCcw01-C_M5ucZA.js} +1 -1
  20. package/dist/client/assets/{SearchMd-BBiHSx-2.js → SearchMd-ItgHq67b.js} +1 -1
  21. package/dist/client/assets/{Settings02-uck5BGEM.js → Settings02-BnWl2AAW.js} +1 -1
  22. package/dist/client/assets/{Shield01-CG_dTxg9.js → Shield01-D1FxKad8.js} +1 -1
  23. package/dist/client/assets/{Star01-882PVAAF.js → Star01-B3pqpeOo.js} +1 -1
  24. package/dist/client/assets/{Stars02-DLq0ELXY.js → Stars02-B-2qVnjt.js} +1 -1
  25. package/dist/client/assets/{Sun-DvNoBaRg.js → Sun-DsPGStQy.js} +1 -1
  26. package/dist/client/assets/{SwitchHorizontal01-BmYbPnsz.js → SwitchHorizontal01-Vb6nTk77.js} +1 -1
  27. package/dist/client/assets/{Tool01-CfGF28aS.js → Tool01-Me7z4aVw.js} +1 -1
  28. package/dist/client/assets/{Trash01-D0VodJcn.js → Trash01-9HT5dT2T.js} +1 -1
  29. package/dist/client/assets/{Upload01-CtxMN-V1.js → Upload01-CWsYex6m.js} +1 -1
  30. package/dist/client/assets/{User01-Z8vjMM2Q.js → User01-SXBYgWls.js} +1 -1
  31. package/dist/client/assets/{Users01-DaLasEg_.js → Users01-BprBjMXf.js} +1 -1
  32. package/dist/client/assets/{Users03-CZw3VUm8.js → Users03-Cr2QcycS.js} +1 -1
  33. package/dist/client/assets/{X-C2UB3gqF.js → X-ztVwMZpQ.js} +1 -1
  34. package/dist/client/assets/{XCircle-Dl1nnD8d.js → XCircle-CWhlQPxr.js} +1 -1
  35. package/dist/client/assets/{XClose-CVuJ-jWb.js → XClose-BW7B2d42.js} +1 -1
  36. package/dist/client/assets/{Zap-CNd3spCf.js → Zap-4DwoO8-E.js} +1 -1
  37. package/dist/client/assets/{ZapSquare-kGYRH_Lu.js → ZapSquare-CMBh1a8Y.js} +1 -1
  38. package/dist/client/assets/{access-gate-BUeG_V5u.js → access-gate-DI7D3beo.js} +1 -1
  39. package/dist/client/assets/{accordion-BirllTny.js → accordion-DaGjUiGE.js} +1 -1
  40. package/dist/client/assets/{add-section-modal-D50t-02_.js → add-section-modal-RHCmDLGk.js} +1 -1
  41. package/dist/client/assets/{agent-icon-BdiD0RLx.js → agent-icon-CY89NnPl.js} +1 -1
  42. package/dist/client/assets/{agent-icons-SEcV4C-v.js → agent-icons-D9qcuvjS.js} +1 -1
  43. package/dist/client/assets/{agents-list-BabGOlPG.js → agents-list-DmgZRjSH.js} +1 -1
  44. package/dist/client/assets/{ai-providers-DzfJy5JY.js → ai-providers-DiDaVv0R.js} +1 -1
  45. package/dist/client/assets/{alert-CKpf2djk.js → alert-CsfEK-pW.js} +1 -1
  46. package/dist/client/assets/{alert-dialog-CG4nfj_z.js → alert-dialog-Dv2nOtyH.js} +1 -1
  47. package/dist/client/assets/{auth-catchall-C_rzLmdJ.js → auth-catchall-lmRiIw97.js} +1 -1
  48. package/dist/client/assets/{auth-split-layout-CTUQz9Kl.js → auth-split-layout-C0BuEx0Y.js} +1 -1
  49. package/dist/client/assets/{automation-list-row-BLRlR0X6.js → automation-list-row-B43-OISE.js} +1 -1
  50. package/dist/client/assets/{automations-CLAvlZLj.js → automations-BpGfD0qZ.js} +1 -1
  51. package/dist/client/assets/{avatar-3vqxDD1E.js → avatar-CIl9WOil.js} +1 -1
  52. package/dist/client/assets/{badge-BmO5u7_s.js → badge-BsmgKXBP.js} +1 -1
  53. package/dist/client/assets/{brand-context-DYCf6vlw.js → brand-context-Bg7qOwel.js} +1 -1
  54. package/dist/client/assets/{calendar-DW_r7qvX.js → calendar-sIddgWRt.js} +1 -1
  55. package/dist/client/assets/{capability-load-error-qul8SOEe.js → capability-load-error-DNEUh47e.js} +1 -1
  56. package/dist/client/assets/{card-BWW6R_6X.js → card-BIluY4Aq.js} +1 -1
  57. package/dist/client/assets/{chat-context-DBBmTPXK.js → chat-context-B-JG5oa1.js} +2 -2
  58. package/dist/client/assets/{checkbox-Sb6ecTlU.js → checkbox-BmubIr1M.js} +1 -1
  59. package/dist/client/assets/{cli-auth-success-LXsmSgTF.js → cli-auth-success-MXAXVQ6a.js} +1 -1
  60. package/dist/client/assets/{collection-detail-CER191S5.js → collection-detail-DLgJrnXh.js} +1 -1
  61. package/dist/client/assets/{collection-display-button-DjgujJT7.js → collection-display-button-D0fGYFIL.js} +1 -1
  62. package/dist/client/assets/{collection-search-Cxln4u6P.js → collection-search-BZRhH-iz.js} +1 -1
  63. package/dist/client/assets/{collection-table-wrapper-BdBD2u9X.js → collection-table-wrapper-CGZy2zWc.js} +1 -1
  64. package/dist/client/assets/{collection-tabs-Ci4DFONy.js → collection-tabs-TUq1NkiU.js} +1 -1
  65. package/dist/client/assets/{collections-7iRm9JeX.js → collections-DUaCJTyY.js} +1 -1
  66. package/dist/client/assets/{command-CrRBXwYJ.js → command-C13zK3Ht.js} +1 -1
  67. package/dist/client/assets/{connect-desktop-dialog-NIZOWGHv.js → connect-desktop-dialog-CdVxXsY6.js} +1 -1
  68. package/dist/client/assets/{connection-card-CJWFkQPW.js → connection-card-CLKDaTfE.js} +1 -1
  69. package/dist/client/assets/{connection-detail-BK0ML7rZ.js → connection-detail-cwq9aLQz.js} +1 -1
  70. package/dist/client/assets/{connection-form-helpers-CMqA2R0p.js → connection-form-helpers-D1Vc0bR5.js} +1 -1
  71. package/dist/client/assets/{connections-CeANA-Uy.js → connections-CkT0_UGI.js} +1 -1
  72. package/dist/client/assets/{constants-BWDiAmgI.js → constants-Cs7fB5Fz.js} +1 -1
  73. package/dist/client/assets/{decopilot-sse-pool-DJoZ3XrI.js → decopilot-sse-pool-D4kwiVhA.js} +1 -1
  74. package/dist/client/assets/{dialog-BXAoEbia.js → dialog-0ciXFW-Z.js} +1 -1
  75. package/dist/client/assets/{domain-settings-YJ4ND65O.js → domain-settings-BaYQoreR.js} +1 -1
  76. package/dist/client/assets/{drawer-D__v6aJ0.js → drawer-ByzTvH1N.js} +1 -1
  77. package/dist/client/assets/{dropdown-menu-DQ8l1U7a.js → dropdown-menu-C-OdW-YG.js} +1 -1
  78. package/dist/client/assets/{dynamic-plugin-layout-CLYWK_u2.js → dynamic-plugin-layout-64bDGLQW.js} +1 -1
  79. package/dist/client/assets/{empty-state-Bfkah6CX.js → empty-state-Bu34R0Ge.js} +1 -1
  80. package/dist/client/assets/{empty-state-z_QlyOw8.js → empty-state-DD8Ex2ET.js} +1 -1
  81. package/dist/client/assets/{extract-connection-data-Cu2-kqzT.js → extract-connection-data-BifWZIpC.js} +1 -1
  82. package/dist/client/assets/{features-DQZMf0mT.js → features-BKNvc12e.js} +1 -1
  83. package/dist/client/assets/{file-explorer-CPl8-KK_.js → file-explorer-DuSyaYSO.js} +1 -1
  84. package/dist/client/assets/{files-Bn3HcYnb.js → files-Dic8gSms.js} +1 -1
  85. package/dist/client/assets/{form-T5LuiwS8.js → form-D3vgRHP1.js} +1 -1
  86. package/dist/client/assets/{general-D-2meCyX.js → general-wwPRVFzd.js} +1 -1
  87. package/dist/client/assets/{generate-id-DncrbeM3.js → generate-id-CK8apMBl.js} +1 -1
  88. package/dist/client/assets/{github-repo-picker-BRuA_FEr.js → github-repo-picker-SXWdqHV5.js} +1 -1
  89. package/dist/client/assets/{hover-card-62Nk_Zl7.js → hover-card-qQqTzhfd.js} +1 -1
  90. package/dist/client/assets/index-1U_6QEoR.js +3 -0
  91. package/dist/client/assets/{index-D2hb6HAs.js → index-9XFiI_cQ.js} +1 -1
  92. package/dist/client/assets/{index-GaiIam-g.js → index-BWswuQI7.js} +1 -1
  93. package/dist/client/assets/{index-BfBEiyau.js → index-BXtbhLzx.js} +1 -1
  94. package/dist/client/assets/{index-ByaHk_g4.js → index-BkFXYyEN.js} +1 -1
  95. package/dist/client/assets/{index-BFfMeyqC.js → index-Cf4jx0jn.js} +1 -1
  96. package/dist/client/assets/index-CfaVK5lN.js +1 -0
  97. package/dist/client/assets/{index-BjV8LBDh.js → index-CmhL1r7_.js} +1 -1
  98. package/dist/client/assets/{index-RrZmhiYH.css → index-DscYvBUa.css} +1 -1
  99. package/dist/client/assets/{index-DCp7HEPF.js → index-UC1l_H0T.js} +3 -3
  100. package/dist/client/assets/{index-BGCG9e6B.js → index-Wh01ccFt.js} +1 -1
  101. package/dist/client/assets/{index-DcSwUOCL.js → index-bhqxeP1Q.js} +1 -1
  102. package/dist/client/assets/{index-DZJFEPqr.js → index-hYNfskTj.js} +24 -24
  103. package/dist/client/assets/{index-redirect-Ba_dziKx.js → index-redirect-CABzexD-.js} +1 -1
  104. package/dist/client/assets/{index-Czi70gSy.js → index-rlMTPXaY.js} +1 -1
  105. package/dist/client/assets/{index-DPeeRxPG.js → index-vedw9sXS.js} +1 -1
  106. package/dist/client/assets/{index-D7gjc6EA.js → index-xKyKnuDm.js} +1 -1
  107. package/dist/client/assets/{infiniteQueryObserver-DMW65Y_x.js → infiniteQueryObserver-CCz1lrGk.js} +1 -1
  108. package/dist/client/assets/{input-CoK19GuW.js → input-DsrZ-ooH.js} +1 -1
  109. package/dist/client/assets/{integration-icon-DM6HURzh.js → integration-icon-CFCAsXBi.js} +1 -1
  110. package/dist/client/assets/{label-PYEKUwvw.js → label-C52V0YQz.js} +1 -1
  111. package/dist/client/assets/{layout-bWUYtZto.js → layout-D5T7gOAZ.js} +1 -1
  112. package/dist/client/assets/{login-QRHCuQhL.js → login-CuXJUHKa.js} +1 -1
  113. package/dist/client/assets/{members-hbHFmyBY.js → members-DnAkiDqK.js} +1 -1
  114. package/dist/client/assets/{monaco-editor-cwfoQ5Mr.js → monaco-editor-C5sim7vP.js} +1 -1
  115. package/dist/client/assets/{monitoring-stats-row-DPmHOaiI.js → monitoring-stats-row-5-mLjHDJ.js} +1 -1
  116. package/dist/client/assets/{oauth-callback-Cqik5iuj.js → oauth-callback-CYv5Cw_K.js} +1 -1
  117. package/dist/client/assets/{oauth-callback-ai-provider-Ds7-vlKu.js → oauth-callback-ai-provider-DpW7p84f.js} +1 -1
  118. package/dist/client/assets/{onboarding-BpCZ1-Fk.js → onboarding-CK3bOf2b.js} +1 -1
  119. package/dist/client/assets/{org-layout-BmHKCvHi.js → org-layout-CVkjzoQd.js} +1 -1
  120. package/dist/client/assets/{org-plugin-layout-CsX4wzAA.js → org-plugin-layout-DkOg1NNq.js} +1 -1
  121. package/dist/client/assets/{pair-QI485pVY.js → pair-DuifxCP-.js} +2 -2
  122. package/dist/client/assets/{plugin-empty-state-ClGqQD85.js → plugin-empty-state-CRg-yg2h.js} +1 -1
  123. package/dist/client/assets/{plugin-header-DRFFfCpI.js → plugin-header-C7mIppY_.js} +1 -1
  124. package/dist/client/assets/{plugin-layout-CYGQt3sX.js → plugin-layout-Ce5zELj9.js} +1 -1
  125. package/dist/client/assets/{popover-cIIlkH6K.js → popover-BySx8Yy1.js} +1 -1
  126. package/dist/client/assets/{profile-D6IpMsS8.js → profile-DQS2RnO_.js} +1 -1
  127. package/dist/client/assets/{project-app-view-j_nxOyBm.js → project-app-view-BBNViERL.js} +1 -1
  128. package/dist/client/assets/registry-bTT6sC4k.js +2 -0
  129. package/dist/client/assets/{registry-layout-2FXod7wG.js → registry-layout-BHvN84rj.js} +1 -1
  130. package/dist/client/assets/{require-capability-B4jltmGb.js → require-capability-DXveCq4o.js} +1 -1
  131. package/dist/client/assets/{required-auth-layout-DbThbvdw.js → required-auth-layout-ByChgpTu.js} +1 -1
  132. package/dist/client/assets/{reset-password-6VTk_zJ2.js → reset-password-BGFgEL2-.js} +1 -1
  133. package/dist/client/assets/{roles-FRNhgx23.js → roles-fGPRaevq.js} +1 -1
  134. package/dist/client/assets/{scroll-area-DHFZrobk.js → scroll-area-kdWO_XIf.js} +1 -1
  135. package/dist/client/assets/{search-input-DoLbGa1Y.js → search-input-hCQ4CIxC.js} +1 -1
  136. package/dist/client/assets/{secrets-C_NrnMlt.js → secrets-dd9urQTh.js} +1 -1
  137. package/dist/client/assets/{sections-editor-bJOziJGi.js → sections-editor-CLjRvVZM.js} +1 -1
  138. package/dist/client/assets/{select-DB5O0_48.js → select-C79R2QFd.js} +1 -1
  139. package/dist/client/assets/{settings-layout-BKMAtYNw.js → settings-layout-di44lhti.js} +1 -1
  140. package/dist/client/assets/{settings-section-C8jEfvhM.js → settings-section-CnVikxon.js} +1 -1
  141. package/dist/client/assets/{sheet-BWD0UYNA.js → sheet-hxQW4lrM.js} +1 -1
  142. package/dist/client/assets/{shell-controls-CWvVgXCS.js → shell-controls-B7jgOw1A.js} +1 -1
  143. package/dist/client/assets/{shell-layout-DQhzT6wR.js → shell-layout-cAhx7nwo.js} +1 -1
  144. package/dist/client/assets/{sidebar-D5BcYVrs.js → sidebar-Bf-Wr1hs.js} +1 -1
  145. package/dist/client/assets/{skeleton-CdHs8ihJ.js → skeleton-CeRahJgb.js} +1 -1
  146. package/dist/client/assets/{sortable.esm-B3rsvJD6.js → sortable.esm-DGwNfCNj.js} +1 -1
  147. package/dist/client/assets/{spinner-DvoeSjuB.js → spinner-BwiMhd03.js} +1 -1
  148. package/dist/client/assets/{sso-BHzcYu85.js → sso-A3mgNvab.js} +1 -1
  149. package/dist/client/assets/{store-BJVSFmBB.js → store-B1ZNxr8I.js} +1 -1
  150. package/dist/client/assets/store-registry-CA42oPfz.js +2 -0
  151. package/dist/client/assets/{switch-aCgbPhbN.js → switch-BoSXcbci.js} +1 -1
  152. package/dist/client/assets/{tab-id-DRhzsO2q.js → tab-id-sG-YwvQY.js} +1 -1
  153. package/dist/client/assets/{table-AeAUBYNy.js → table-D5j7pewX.js} +1 -1
  154. package/dist/client/assets/{tabs-A8p2lpkg.js → tabs-K7JDwDCm.js} +1 -1
  155. package/dist/client/assets/{task-status-Cn23kLE-.js → task-status-BbaOoCEJ.js} +1 -1
  156. package/dist/client/assets/{textarea-DyS2wlP2.js → textarea-DHADmpP7.js} +1 -1
  157. package/dist/client/assets/{toggle-group-dzbobbSH.js → toggle-group-DhYShFZn.js} +1 -1
  158. package/dist/client/assets/{toolbar-C7cSDXIs.js → toolbar-B7eXBOSC.js} +1 -1
  159. package/dist/client/assets/{tools-list-DUkZN7Ty.js → tools-list-9DGVlsWM.js} +1 -1
  160. package/dist/client/assets/{tooltip-DbEod1mn.js → tooltip-D99J2opT.js} +1 -1
  161. package/dist/client/assets/{types-DcSrmxgv.js → types-CV-R3YJI.js} +1 -1
  162. package/dist/client/assets/{use-ai-providers-Bt6fBHoi.js → use-ai-providers-YYcsx8QH.js} +1 -1
  163. package/dist/client/assets/{use-capability-DdtlKz_v.js → use-capability-s7F5ltPc.js} +1 -1
  164. package/dist/client/assets/{use-collections-CdbQrbKk.js → use-collections-BTet4gbf.js} +1 -1
  165. package/dist/client/assets/{use-connection-CDL88IlU.js → use-connection-DBaDqCrX.js} +1 -1
  166. package/dist/client/assets/{use-copy-CoQfk21l.js → use-copy-DjD9mpB1.js} +1 -1
  167. package/dist/client/assets/{use-create-virtual-mcp-DuxMg9Qb.js → use-create-virtual-mcp-BfWQXjFB.js} +1 -1
  168. package/dist/client/assets/{use-debounced-autosave-6uXdvcir.js → use-debounced-autosave-DPs4sPcH.js} +1 -1
  169. package/dist/client/assets/{use-delete-connection-B27p116n.js → use-delete-connection-D0A8QTyE.js} +1 -1
  170. package/dist/client/assets/{use-file-configs-Be-kUZjo.js → use-file-configs-DwpwyHz8.js} +1 -1
  171. package/dist/client/assets/{use-infinite-scroll-B7s6hEeR.js → use-infinite-scroll-C8COlVH5.js} +1 -1
  172. package/dist/client/assets/{use-list-state-DBXJ2wmz.js → use-list-state-_quSpESz.js} +1 -1
  173. package/dist/client/assets/{use-mcp-prompts-BFGdNKhE.js → use-mcp-prompts-C30Pwn4d.js} +1 -1
  174. package/dist/client/assets/{use-mcp-tools-C_WdZ5mk.js → use-mcp-tools-DNGR_0Mv.js} +1 -1
  175. package/dist/client/assets/{use-members-BtOmTNIb.js → use-members-CuvbA1Jk.js} +1 -1
  176. package/dist/client/assets/{use-navigate-to-agent-ByC4bR_a.js → use-navigate-to-agent-mMKG1Kz-.js} +1 -1
  177. package/dist/client/assets/{use-org-auth-client-B87BItmA.js → use-org-auth-client-P53inDkn.js} +1 -1
  178. package/dist/client/assets/{use-org-sso-C5LBVu7K.js → use-org-sso-6mIiyURD.js} +1 -1
  179. package/dist/client/assets/{use-organization-roles-CP10Npq7.js → use-organization-roles-BSaTQq5s.js} +1 -1
  180. package/dist/client/assets/{use-organization-settings-BrhMCOo5.js → use-organization-settings-zgxousJq.js} +1 -1
  181. package/dist/client/assets/{use-registry-connections-BD6K2lOq.js → use-registry-connections-XMNP50oa.js} +1 -1
  182. package/dist/client/assets/{use-secrets-xrf2L_e3.js → use-secrets-C48m2leJ.js} +1 -1
  183. package/dist/client/assets/{use-status-sounds-Gyxj8_HU.js → use-status-sounds-COuUXyeW.js} +1 -1
  184. package/dist/client/assets/{use-view-mode-a_9x4z_S.js → use-view-mode-dJJYweFh.js} +1 -1
  185. package/dist/client/assets/{use-virtual-mcp-BQRVNAq-.js → use-virtual-mcp-D0WYBO2Q.js} +1 -1
  186. package/dist/client/assets/useInfiniteQuery-EQnbj896.js +1 -0
  187. package/dist/client/assets/{useRouterState-CAwLzT0Y.js → useRouterState-BW1upcty.js} +1 -1
  188. package/dist/client/assets/useSuspenseInfiniteQuery-Dd6prvrJ.js +1 -0
  189. package/dist/client/assets/{user-Bx8ki2ht.js → user-CqzasT-1.js} +1 -1
  190. package/dist/client/assets/{view-mode-toggle-N3CPWQZE.js → view-mode-toggle-lh_SmTz1.js} +1 -1
  191. package/dist/client/assets/{workflow-DVu60KvV.js → workflow-BeHOQQuz.js} +1 -1
  192. package/dist/client/assets/workflow-detail-IpyJtXyx.js +1 -0
  193. package/dist/client/index.html +2 -2
  194. package/dist/server/cli.js +1 -1
  195. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js +36 -6
  196. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js.map +1 -1
  197. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js +15 -0
  198. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js.map +1 -1
  199. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js +36 -6
  200. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js.map +1 -1
  201. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js +15 -0
  202. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js.map +1 -1
  203. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js +36 -6
  204. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js.map +1 -1
  205. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js +15 -0
  206. package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js.map +1 -1
  207. package/dist/server/node_modules/@opentelemetry/otlp-transformer/package.json +12 -14
  208. package/dist/server/node_modules/ansi-regex/index.d.ts +33 -0
  209. package/dist/server/node_modules/ansi-regex/index.js +14 -0
  210. package/dist/server/node_modules/ansi-regex/package.json +61 -0
  211. package/dist/server/node_modules/ansi-regex/readme.md +66 -0
  212. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
  213. package/dist/server/node_modules/emoji-regex/README.md +107 -0
  214. package/dist/server/node_modules/emoji-regex/index.d.ts +3 -0
  215. package/dist/server/node_modules/emoji-regex/index.js +4 -0
  216. package/dist/server/node_modules/emoji-regex/index.mjs +4 -0
  217. package/dist/server/node_modules/emoji-regex/package.json +45 -0
  218. package/dist/server/node_modules/pg-cloudflare/LICENSE +21 -0
  219. package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
  220. package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
  221. package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
  222. package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
  223. package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
  224. package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
  225. package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
  226. package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
  227. package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
  228. package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
  229. package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
  230. package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
  231. package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
  232. package/dist/server/node_modules/pg-connection-string/README.md +105 -0
  233. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
  234. package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
  235. package/dist/server/node_modules/pg-connection-string/index.js +231 -0
  236. package/dist/server/node_modules/pg-connection-string/package.json +52 -0
  237. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  238. package/dist/server/node_modules/pg-int8/README.md +16 -0
  239. package/dist/server/node_modules/pg-int8/index.js +100 -0
  240. package/dist/server/node_modules/pg-int8/package.json +24 -0
  241. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  242. package/dist/server/node_modules/postgres-array/index.js +97 -0
  243. package/dist/server/node_modules/postgres-array/license +21 -0
  244. package/dist/server/node_modules/postgres-array/package.json +35 -0
  245. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  246. package/dist/server/node_modules/postgres-bytea/index.js +33 -0
  247. package/dist/server/node_modules/postgres-bytea/license +21 -0
  248. package/dist/server/node_modules/postgres-bytea/package.json +34 -0
  249. package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
  250. package/dist/server/node_modules/postgres-date/index.js +116 -0
  251. package/dist/server/node_modules/postgres-date/license +21 -0
  252. package/dist/server/node_modules/postgres-date/package.json +33 -0
  253. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  254. package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
  255. package/dist/server/node_modules/postgres-interval/index.js +125 -0
  256. package/dist/server/node_modules/postgres-interval/license +21 -0
  257. package/dist/server/node_modules/postgres-interval/package.json +36 -0
  258. package/dist/server/node_modules/postgres-interval/readme.md +48 -0
  259. package/dist/server/node_modules/split2/LICENSE +13 -0
  260. package/dist/server/node_modules/split2/README.md +85 -0
  261. package/dist/server/node_modules/split2/bench.js +27 -0
  262. package/dist/server/node_modules/split2/index.js +141 -0
  263. package/dist/server/node_modules/split2/package.json +39 -0
  264. package/dist/server/node_modules/split2/test.js +409 -0
  265. package/package.json +1 -1
  266. package/dist/client/assets/index-Cebt8Vmf.js +0 -1
  267. package/dist/client/assets/index-qicwPvdr.js +0 -3
  268. package/dist/client/assets/registry-CyfY9aU7.js +0 -2
  269. package/dist/client/assets/store-registry-TEKlj2aS.js +0 -2
  270. package/dist/client/assets/useInfiniteQuery-DD7euD4X.js +0 -1
  271. package/dist/client/assets/useSuspenseInfiniteQuery-BqbAqOcb.js +0 -1
  272. package/dist/client/assets/workflow-detail-nRnFPm6I.js +0 -1
  273. package/dist/server/node_modules/get-east-asian-width/index.d.ts +0 -60
  274. package/dist/server/node_modules/get-east-asian-width/index.js +0 -30
  275. package/dist/server/node_modules/get-east-asian-width/license +0 -9
  276. package/dist/server/node_modules/get-east-asian-width/lookup-data.js +0 -18
  277. package/dist/server/node_modules/get-east-asian-width/lookup.js +0 -135
  278. package/dist/server/node_modules/get-east-asian-width/package.json +0 -71
  279. package/dist/server/node_modules/get-east-asian-width/readme.md +0 -65
  280. package/dist/server/node_modules/get-east-asian-width/utilities.js +0 -24
  281. package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
  282. package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
  283. package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
  284. package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
  285. /package/dist/server/node_modules/{is-fullwidth-code-point → ansi-regex}/license +0 -0
@@ -1,4 +1,4 @@
1
- import{e as le,$ as xe,D as Ce,q as Q,K as pe,o as Te,p as ie,L as ce,f as ve,d as Se,g as Pe,r as p,j as ne,t as _e,b as $e,U as De,aL as Oe}from"./index-DCp7HEPF.js";import{n as Ne,A as be,b as Le,o as je,q as Ue,s as Fe,u as qe,w as Ve}from"./tab-id-DRhzsO2q.js";import{g as Ke,u as Ge,S as He}from"./constants-BWDiAmgI.js";import{u as Be}from"./use-virtual-mcp-BQRVNAq-.js";import{u as We,b as re}from"./use-ai-providers-Bt6fBHoi.js";import{e as Qe}from"./use-organization-settings-BrhMCOo5.js";const Xe={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],google:["gemini-2.5-flash","gemini-3-flash"],"claude-code":["claude-code:haiku","claude-code:sonnet"],codex:["codex:gpt-5.4-mini"]},Ye={anthropic:["claude-sonnet-4-6","claude-sonnet"],openrouter:["anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude"],google:["gemini-3-pro","gemini-3-flash"],"claude-code":["claude-code:sonnet"],codex:["codex:gpt-5.4"]},ze={anthropic:["claude-opus-4-8","claude-sonnet-4-6","claude-sonnet"],openrouter:["anthropic/claude-opus-4.8","anthropic/claude-sonnet-4.6:extended","anthropic/claude-sonnet-4.6","google/gemini-3-pro"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet"],google:["gemini-3-pro"],"claude-code":["claude-code:opus","claude-code:sonnet"],codex:["codex:gpt-5.5"]},Ze={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],google:["gemini-2.0-flash-image"]},Je={openrouter:["perplexity/sonar","perplexity/sonar-pro","perplexity/deep-research"],deco:["perplexity/sonar","perplexity/sonar-pro","perplexity/deep-research"]};function J(t,e,s,n){for(const o of s){const a=t.find(r=>r.modelId===o);if(a)return{keyId:e,modelId:a.modelId,title:a.title}}for(const o of s){const a=t.find(r=>r.modelId.includes(o));if(a)return{keyId:e,modelId:a.modelId,title:a.title}}if(n){const o=t.find(n);if(o)return{keyId:e,modelId:o.modelId,title:o.title}}return null}function et(t,e){const s={chat:{fast:null,smart:null,thinking:null},image:null,webResearch:null};for(const n of t){const o=e[n.id]??[],a=n.providerId;s.chat.fast||(s.chat.fast=J(o,n.id,Xe[a]??[])),s.chat.smart||(s.chat.smart=J(o,n.id,Ye[a]??[])),s.chat.thinking||(s.chat.thinking=J(o,n.id,ze[a]??[])),s.image||(s.image=J(o,n.id,Ze[a]??[],r=>r.capabilities?.includes("image")===!0)),s.webResearch||(s.webResearch=J(o,n.id,Je[a]??[],r=>{const c=r.modelId.toLowerCase().replace(/[^a-z0-9]/g,"");return c.includes("sonar")||c.includes("deepresearch")}))}return s}function tt(t){const e=t?.metadata?.githubRepo;return e?e.connectionId?t?.connections?.some(n=>n.connection_id===e.connectionId)?e:null:e:null}const de={decopilot:{harness:"decopilot",sandbox:null},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"}};function nt(t){const e=le.c(10);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=s):s=e[0];const n=xe(s);let o;if(e[1]!==n?.params.appSlug||e[2]!==n?.params.collectionName||e[3]!==n?.params.itemId||e[4]!==t){o=[],t&&o.push(`### Selected Agent
1
+ import{e as le,$ as xe,D as Ce,q as Q,K as pe,o as Te,p as ie,L as ce,f as ve,d as Se,g as Pe,r as p,j as ne,t as _e,b as $e,U as De,aL as Oe}from"./index-UC1l_H0T.js";import{n as Ne,A as be,b as Le,o as je,q as Ue,s as Fe,u as qe,w as Ve}from"./tab-id-sG-YwvQY.js";import{g as Ke,u as Ge,S as He}from"./constants-Cs7fB5Fz.js";import{u as Be}from"./use-virtual-mcp-D0WYBO2Q.js";import{u as We,b as re}from"./use-ai-providers-YYcsx8QH.js";import{e as Qe}from"./use-organization-settings-zgxousJq.js";const Xe={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],google:["gemini-2.5-flash","gemini-3-flash"],"claude-code":["claude-code:haiku","claude-code:sonnet"],codex:["codex:gpt-5.4-mini"]},Ye={anthropic:["claude-sonnet-4-6","claude-sonnet"],openrouter:["anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude"],google:["gemini-3-pro","gemini-3-flash"],"claude-code":["claude-code:sonnet"],codex:["codex:gpt-5.4"]},ze={anthropic:["claude-opus-4-8","claude-sonnet-4-6","claude-sonnet"],openrouter:["anthropic/claude-opus-4.8","anthropic/claude-sonnet-4.6:extended","anthropic/claude-sonnet-4.6","google/gemini-3-pro"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet"],google:["gemini-3-pro"],"claude-code":["claude-code:opus","claude-code:sonnet"],codex:["codex:gpt-5.5"]},Ze={openrouter:["openai/gpt-image-1","google/gemini-2.0-flash-image"],deco:["openai/gpt-image-1","google/gemini-2.0-flash-image"],google:["gemini-2.0-flash-image"]},Je={openrouter:["perplexity/sonar","perplexity/sonar-pro","perplexity/deep-research"],deco:["perplexity/sonar","perplexity/sonar-pro","perplexity/deep-research"]};function J(t,e,s,n){for(const o of s){const a=t.find(r=>r.modelId===o);if(a)return{keyId:e,modelId:a.modelId,title:a.title}}for(const o of s){const a=t.find(r=>r.modelId.includes(o));if(a)return{keyId:e,modelId:a.modelId,title:a.title}}if(n){const o=t.find(n);if(o)return{keyId:e,modelId:o.modelId,title:o.title}}return null}function et(t,e){const s={chat:{fast:null,smart:null,thinking:null},image:null,webResearch:null};for(const n of t){const o=e[n.id]??[],a=n.providerId;s.chat.fast||(s.chat.fast=J(o,n.id,Xe[a]??[])),s.chat.smart||(s.chat.smart=J(o,n.id,Ye[a]??[])),s.chat.thinking||(s.chat.thinking=J(o,n.id,ze[a]??[])),s.image||(s.image=J(o,n.id,Ze[a]??[],r=>r.capabilities?.includes("image")===!0)),s.webResearch||(s.webResearch=J(o,n.id,Je[a]??[],r=>{const c=r.modelId.toLowerCase().replace(/[^a-z0-9]/g,"");return c.includes("sonar")||c.includes("deepresearch")}))}return s}function tt(t){const e=t?.metadata?.githubRepo;return e?e.connectionId?t?.connections?.some(n=>n.connection_id===e.connectionId)?e:null:e:null}const de={decopilot:{harness:"decopilot",sandbox:null},"claude-code-desktop":{harness:"claude-code",sandbox:"user-desktop"},"codex-desktop":{harness:"codex",sandbox:"user-desktop"}};function nt(t){const e=le.c(10);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId",shouldThrow:!1},e[0]=s):s=e[0];const n=xe(s);let o;if(e[1]!==n?.params.appSlug||e[2]!==n?.params.collectionName||e[3]!==n?.params.itemId||e[4]!==t){o=[],t&&o.push(`### Selected Agent
2
2
  - ID: ${t}`);let a;e[6]!==n?.params.appSlug||e[7]!==n?.params.collectionName||e[8]!==n?.params.itemId?(a=[],n?.params.appSlug&&a.push(`- Connection ID: ${n?.params.appSlug}`),n?.params.collectionName&&a.push(`- Collection: ${n?.params.collectionName}`),n?.params.itemId&&a.push(`- Item ID: ${n?.params.itemId}`),e[6]=n?.params.appSlug,e[7]=n?.params.collectionName,e[8]=n?.params.itemId,e[9]=a):a=e[9],a.length>0&&o.push(`### Current Resource
3
3
  The user is viewing the following resource:
4
4
  ${a.join(`
@@ -17,4 +17,4 @@ ${we}`).join(`
17
17
 
18
18
  `):"",N=[w,O].filter(Boolean).join(`
19
19
 
20
- `);let W=c;W==="gen-image"&&!a&&(W="default"),W==="web-search"&&!r&&(W="default"),W==="web-search"&&y("default");const Ae={id:crypto.randomUUID(),role:"user",parts:d,metadata:k};await u.submit({kind:"message",message:Ae},{tier:h,mode:W,toolApprovalLevel:P.toolApprovalLevel??Oe(),system:N||void 0,agent:{id:i},thread_id:C,branch:o,sandboxProviderKind:R||void 0,harnessId:f||void 0})}const z=async()=>{u.stop();try{const l=await fetch(`/api/${b.slug}/decopilot/cancel/${t}`,{method:"POST",credentials:"include"});if(l.status===404)return;if(!l.ok){const d=await l.json().catch(()=>({}));throw new Error(d.message??`Cancel failed: ${l.status}`)}}catch(l){const d=l instanceof Error?l.message:"Failed to cancel";Te.error(d),console.error("[chat] cancelRun",l)}},oe=l=>l&&typeof l=="object"&&"type"in l?B({tiptapDoc:l}):B(l),ae=Se({strict:!1}).autosend===be;p.useEffect(()=>{if(!ae||E.length>0)return;const l=Ue(sessionStorage,v,t);l&&B(l.message).then(()=>{Fe(sessionStorage,v,t)})},[ae,E.length,v,t,B]);const Z={messages:E,status:lt($),sendMessage:oe,stop:()=>{z()},submit:(l,d)=>u.submit(l,d),error:G,clearError:()=>_(null),finishReason:D,clearFinishReason:()=>u.finishReason.set(null),isStreaming:V,isChatEmpty:H,isWaitingForApprovals:Y??!1,isRunInProgress:ue,hasMoreOlder:U,isFetchingOlder:I,fetchOlderMessages:u.fetchOlderMessages.bind(u)};return ne.jsx(he.Provider,{value:Z,children:e})}function At(){const t=p.useContext(he);if(!t)throw new Error("useChatStream must be used within ActiveTaskProvider");return t}function Rt(){return p.useContext(he)}function ft(){const t=p.useContext(me);if(!t)throw new Error("useChatTask must be used within ChatContextProvider");return t}function gt(){const t=p.useContext(fe);if(!t)throw new Error("useChatPrefs must be used within ChatContextProvider");return t}function wt(){return p.useContext(fe)}function Pt(){return p.useContext(me)}export{Et as A,mt as C,ft as a,gt as b,ct as c,bt as d,Me as e,Rt as f,tt as g,kt as h,Pt as i,Mt as j,wt as k,et as p,St as t,At as u};
20
+ `);let W=c;W==="gen-image"&&!a&&(W="default"),W==="web-search"&&!r&&(W="default"),W==="web-search"&&y("default");const Ae={id:crypto.randomUUID(),role:"user",parts:d,metadata:k};await u.submit({kind:"message",message:Ae},{tier:h,mode:W,toolApprovalLevel:P.toolApprovalLevel??Oe(),system:N||void 0,agent:{id:i},thread_id:C,branch:o,sandboxProviderKind:R||void 0,harnessId:f||void 0})}const z=async()=>{u.stop();try{const l=await fetch(`/api/${b.slug}/decopilot/cancel/${t}`,{method:"POST",credentials:"include"});if(l.status===404)return;if(!l.ok){const d=await l.json().catch(()=>({}));throw new Error(d.message??`Cancel failed: ${l.status}`)}}catch(l){const d=l instanceof Error?l.message:"Failed to cancel";Te.error(d),console.error("[chat] cancelRun",l)}},oe=l=>l&&typeof l=="object"&&"type"in l?B({tiptapDoc:l}):B(l),ae=Se({strict:!1}).autosend===be;p.useEffect(()=>{if(!ae||E.length>0)return;const l=Ue(sessionStorage,v,t);l&&B(l.message).then(()=>{Fe(sessionStorage,v,t)})},[ae,E.length,v,t,B]);const Z={messages:E,status:lt($),sendMessage:oe,stop:()=>{z()},submit:(l,d)=>u.submit(l,d),error:G,clearError:()=>_(null),finishReason:D,clearFinishReason:()=>u.finishReason.set(null),isStreaming:V,isChatEmpty:H,isWaitingForApprovals:Y??!1,isRunInProgress:ue,hasMoreOlder:U,isFetchingOlder:I,fetchOlderMessages:u.fetchOlderMessages.bind(u)};return ne.jsx(he.Provider,{value:Z,children:e})}function At(){const t=p.useContext(he);if(!t)throw new Error("useChatStream must be used within ActiveTaskProvider");return t}function Rt(){return p.useContext(he)}function ft(){const t=p.useContext(me);if(!t)throw new Error("useChatTask must be used within ChatContextProvider");return t}function gt(){const t=p.useContext(fe);if(!t)throw new Error("useChatPrefs must be used within ChatContextProvider");return t}function wt(){return p.useContext(fe)}function Pt(){return p.useContext(me)}export{Et as A,mt as C,ft as a,gt as b,Pt as c,ct as d,bt as e,Me as f,tt as g,kt as h,Rt as i,Mt as j,wt as k,et as p,St as t,At as u};
@@ -1 +1 @@
1
- import{e as n,c as d,j as c,bk as l,bl as b}from"./index-DCp7HEPF.js";import{i as m}from"./Check-Cgs_Ieiz.js";function u(o){const e=n.c(9);let r,i;e[0]!==o?({className:r,...i}=o,e[0]=o,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let a;e[3]!==r?(a=d("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[2px] disabled:opacity-50",r),e[3]=r,e[4]=a):a=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(b,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(m,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==i||e[7]!==a?(s=c.jsx(l,{"data-slot":"checkbox",className:a,...i,children:t}),e[6]=i,e[7]=a,e[8]=s):s=e[8],s}export{u as C};
1
+ import{e as n,c as d,j as c,bk as l,bl as b}from"./index-UC1l_H0T.js";import{i as m}from"./Check-B-Snf346.js";function u(o){const e=n.c(9);let r,i;e[0]!==o?({className:r,...i}=o,e[0]=o,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let a;e[3]!==r?(a=d("peer border-foreground dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[2px] disabled:opacity-50",r),e[3]=r,e[4]=a):a=e[4];let t;e[5]===Symbol.for("react.memo_cache_sentinel")?(t=c.jsx(b,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-primary-foreground transition-none",children:c.jsx(m,{className:"size-3.5"})}),e[5]=t):t=e[5];let s;return e[6]!==i||e[7]!==a?(s=c.jsx(l,{"data-slot":"checkbox",className:a,...i,children:t}),e[6]=i,e[7]=a,e[8]=s):s=e[8],s}export{u as C};
@@ -1 +1 @@
1
- import{e as a,b as c,r as m,j as o}from"./index-DCp7HEPF.js";import{A as u}from"./auth-split-layout-CTUQz9Kl.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
1
+ import{e as a,b as c,r as m,j as o}from"./index-UC1l_H0T.js";import{A as u}from"./auth-split-layout-C0BuEx0Y.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
@@ -1 +1 @@
1
- import{M as Ke,Q as te,e as C,j as t,E as Te,r as w,q as le,F as Qe,c as J,bd as Ge,l as ie,d as Ye,J as Q,B as W,o as Xe,g as ae,be as ke}from"./index-DCp7HEPF.js";import{E as Pe}from"./empty-state-Bfkah6CX.js";import{u as Ze,a as Ee}from"./use-collections-CdbQrbKk.js";import{u as ce}from"./constants-BWDiAmgI.js";import{F as se,a as et,b as de,d as me}from"./form-T5LuiwS8.js";import{I as ue}from"./input-CoK19GuW.js";import{T as re}from"./textarea-DyS2wlP2.js";import{a as tt,b as st,V as pe}from"./layout-bWUYtZto.js";import{S as nt,W as ot,a as rt}from"./index-Czi70gSy.js";import{g as lt,M as it,b as je}from"./types-DcSrmxgv.js";import{A as at,a as ct,b as dt}from"./alert-CKpf2djk.js";import{S as be,a as Ne,b as ve,c as Se,d as ne}from"./select-DB5O0_48.js";import{c as mt,b as ye,T as we,a as Ce}from"./tooltip-DbEod1mn.js";import{i as ut}from"./AlertCircle-C_7Pr4dy.js";import{w as pt,E as xt,_ as ft,$ as ht,a0 as gt,a1 as Ie}from"./agent-icon-BdiD0RLx.js";import{a as jt}from"./RefreshCcw01-VWfVcJ_k.js";import{i as bt}from"./Play-DDY4sH4l.js";import{i as Nt}from"./ChevronRight-B3uEK8Up.js";import{O as vt,M as St}from"./index-BfBEiyau.js";import{g as yt}from"./connection-slug-eyAPH6o3.js";import{u as wt,T as Ct}from"./tools-list-DUkZN7Ty.js";import{a as _e,u as Ae}from"./use-connection-CDL88IlU.js";import{b as It}from"./use-mcp-tools-C_WdZ5mk.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as $e}from"./integration-icon-DM6HURzh.js";import{f as Tt,k as kt}from"./chat-context-DBBmTPXK.js";import{u as Pt}from"./shell-layout-DQhzT6wR.js";import{M as Et}from"./monaco-editor-cwfoQ5Mr.js";import{E as _t}from"./empty-state-z_QlyOw8.js";import{n as At}from"./Container-Ba4KEZmY.js";import"./label-PYEKUwvw.js";import"./index-D7gjc6EA.js";import"./sidebar-D5BcYVrs.js";import"./sheet-BWD0UYNA.js";import"./X-C2UB3gqF.js";import"./index-GaiIam-g.js";import"./collections-7iRm9JeX.js";import"./index-BFfMeyqC.js";import"./use-virtual-mcp-BQRVNAq-.js";import"./accordion-BirllTny.js";import"./scroll-area-DHFZrobk.js";import"./badge-BmO5u7_s.js";import"./spinner-DvoeSjuB.js";import"./view-mode-toggle-N3CPWQZE.js";import"./dialog-BXAoEbia.js";import"./index-D2hb6HAs.js";import"./hover-card-62Nk_Zl7.js";import"./dropdown-menu-DQ8l1U7a.js";import"./Check-Cgs_Ieiz.js";import"./DotsVertical-CnrlerAd.js";import"./Plus-DAjWQbOS.js";import"./Tool01-CfGF28aS.js";import"./XClose-CVuJ-jWb.js";import"./index-DcSwUOCL.js";import"./create-sse-subscription--G7iwTWC.js";import"./ChevronDown-BEPxXMEW.js";import"./ChevronUp-CGb1Z9d-.js";import"./SwitchHorizontal01-BmYbPnsz.js";import"./XCircle-Dl1nnD8d.js";import"./ArrowUpRight-Zf8tvfpV.js";import"./ZapSquare-kGYRH_Lu.js";import"./Users03-CZw3VUm8.js";import"./CheckCircle-Ws5jIF72.js";import"./FilterLines-CiCglWXp.js";import"./Star01-882PVAAF.js";import"./Palette-c8ZIWUhe.js";import"./HardDrive-BErHWn5D.js";import"./Stars02-DLq0ELXY.js";import"./Key01-BhdD2jeG.js";import"./LinkExternal01-BMPLHN-8.js";import"./Lock01-Bdorlsjo.js";import"./Monitor01-D1gAe0to.js";import"./Sun-DvNoBaRg.js";import"./SearchMd-BBiHSx-2.js";import"./Settings02-uck5BGEM.js";import"./Shield01-CG_dTxg9.js";import"./Trash01-D0VodJcn.js";import"./Upload01-CtxMN-V1.js";import"./User01-Z8vjMM2Q.js";import"./Users01-DaLasEg_.js";import"./Zap-CNd3spCf.js";import"./extract-connection-data-Cu2-kqzT.js";import"./generate-id-DncrbeM3.js";import"./use-registry-connections-BD6K2lOq.js";import"./use-organization-settings-BrhMCOo5.js";import"./index-ByaHk_g4.js";import"./popover-cIIlkH6K.js";import"./use-create-virtual-mcp-DuxMg9Qb.js";import"./use-navigate-to-agent-ByC4bR_a.js";import"./tab-id-DRhzsO2q.js";import"./decopilot-sse-pool-DJoZ3XrI.js";import"./use-ai-providers-Bt6fBHoi.js";import"./avatar-3vqxDD1E.js";import"./required-auth-layout-DbThbvdw.js";import"./useRouterState-CAwLzT0Y.js";import"./use-org-sso-C5LBVu7K.js";Ke({title:te().min(1),description:te().nullable(),body:te()});function oe(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ot(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),o=e>=0?s[e+1]:void 0;return o?decodeURIComponent(o):void 0}function Rt(s){const e=C.c(13),{form:o}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=n):n=e[0];let r;e[1]!==o.control?(r=t.jsxs("div",{className:"flex flex-col gap-4",children:[n,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:o.control,name:"title",render:Ut}),t.jsx(se,{control:o.control,name:"description",render:Mt})]})]}),e[1]=o.control,e[2]=r):r=e[2];let l,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),a=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=l,e[4]=a):(l=e[3],a=e[4]);let c;e[5]!==o.control?(c=t.jsxs("div",{className:"flex flex-col gap-2",children:[l,a,t.jsx(se,{control:o.control,name:"body",render:Dt})]}),e[5]=o.control,e[6]=c):c=e[6];let i;e[7]!==r||e[8]!==c?(i=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[r,c]}),e[7]=r,e[8]=c,e[9]=i):i=e[9];let p;return e[10]!==o||e[11]!==i?(p=t.jsx(et,{...o,children:i}),e[10]=o,e[11]=i,e[12]=p):p=e[12],p}function Dt(s){const{field:e}=s;return t.jsx(de,{children:t.jsx(me,{children:t.jsx(re,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function Mt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(me,{children:t.jsx(ue,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Ut(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(me,{children:t.jsx(ue,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function zt(s){const e=C.c(36),{providerId:o,promptId:n}=s,{org:r}=le(),l=o||null;let a;e[0]!==r.id||e[1]!==r.slug||e[2]!==l?(a={connectionId:l,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=l,e[3]=a):a=e[3];const c=ce(a),i=Ze(o,"PROMPT",n,c),p=Ee(o,"PROMPT",c),f=p.update.isPending;let u;e[4]!==i?(u=i?{title:i.title,description:i.description??null,body:oe(i)}:void 0,e[4]=i,e[5]=u):u=e[5];let h;e[6]!==u?(h={values:u},e[6]=u,e[7]=h):h=e[7];const N=Qe(h);let T;e[8]!==N||e[9]!==i?(T=()=>{i&&N.reset({title:i.title,description:i.description??null,body:oe(i)})},e[8]=N,e[9]=i,e[10]=T):T=e[10];const _=T;let A;e[11]!==p.update||e[12]!==N||e[13]!==n?(A=N.handleSubmit(async j=>{const P=await p.update.mutateAsync({id:n,data:{title:j.title,description:j.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:j.body}}]}});N.reset({title:P.title,description:P.description??null,body:oe(P)})}),e[11]=p.update,e[12]=N,e[13]=n,e[14]=A):A=e[14];const O=A;if(!i){let j;return e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pe,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=j):j=e[15],j}let y;e[16]!==i.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),e[16]=i.title,e[17]=y):y=e[17];let k;e[18]!==i.description?(k=i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null,e[18]=i.description,e[19]=k):k=e[19];let I;e[20]!==y||e[21]!==k?(I=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,k]})}),e[20]=y,e[21]=k,e[22]=I):I=e[22];let g;e[23]!==O?(g=()=>{O()},e[23]=O,e[24]=g):g=e[24];let v;e[25]!==N.formState.isDirty||e[26]!==f||e[27]!==_||e[28]!==g?(v=t.jsx(tt,{children:t.jsx(nt,{onSave:g,onUndo:_,isDirty:N.formState.isDirty,isSaving:f})}),e[25]=N.formState.isDirty,e[26]=f,e[27]=_,e[28]=g,e[29]=v):v=e[29];let S;e[30]!==N?(S=t.jsx("div",{className:"h-full",children:t.jsx(Rt,{form:N})}),e[30]=N,e[31]=S):S=e[31];let $;return e[32]!==v||e[33]!==S||e[34]!==I?($=t.jsxs(pe,{children:[I,v,S]}),e[32]=v,e[33]=S,e[34]=I,e[35]=$):$=e[35],$}function Bt(s){const e=C.c(4),{itemId:o}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Ot(),e[0]=n):n=e[0];const r=n;if(!r){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pe,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=a):a=e[1],a}let l;return e[2]!==o?(l=t.jsx(Te,{children:t.jsx(w.Suspense,{fallback:null,children:t.jsx(zt,{providerId:r,promptId:o})})}),e[2]=o,e[3]=l):l=e[3],l}function Oe(s){const e=C.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let r;e[3]!==o?(r=J("min-w-0 overflow-hidden",o),e[3]=o,e[4]=r):r=e[4];let l;return e[5]!==n||e[6]!==r?(l=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:r,...n}),e[5]=n,e[6]=r,e[7]=l):l=e[7],l}function Re(s){const e=C.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let r;e[3]!==o?(r=J("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",o),e[3]=o,e[4]=r):r=e[4];let l;return e[5]!==n||e[6]!==r?(l=t.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...n}),e[5]=n,e[6]=r,e[7]=l):l=e[7],l}function V(s){const e=C.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let r;e[3]!==o?(r=J("inline-flex items-center gap-1.5 min-w-0",o),e[3]=o,e[4]=r):r=e[4];let l;return e[5]!==n||e[6]!==r?(l=t.jsx("li",{"data-slot":"breadcrumb-item",className:r,...n}),e[5]=n,e[6]=r,e[7]=l):l=e[7],l}function G(s){const e=C.c(10);let o,n,r;e[0]!==s?({asChild:o,className:n,...r}=s,e[0]=s,e[1]=o,e[2]=n,e[3]=r):(o=e[1],n=e[2],r=e[3]);const l=o?Ge:"a";let a;e[4]!==n?(a=J("hover:text-foreground transition-colors truncate",n),e[4]=n,e[5]=a):a=e[5];let c;return e[6]!==l||e[7]!==r||e[8]!==a?(c=t.jsx(l,{"data-slot":"breadcrumb-link",className:a,...r}),e[6]=l,e[7]=r,e[8]=a,e[9]=c):c=e[9],c}function De(s){const e=C.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let r;e[3]!==o?(r=J("text-foreground font-medium truncate",o),e[3]=o,e[4]=r):r=e[4];let l;return e[5]!==n||e[6]!==r?(l=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...n}),e[5]=n,e[6]=r,e[7]=l):l=e[7],l}function Y(s){const e=C.c(12);let o,n,r;e[0]!==s?({children:o,className:n,...r}=s,e[0]=s,e[1]=o,e[2]=n,e[3]=r):(o=e[1],n=e[2],r=e[3]);let l;e[4]!==n?(l=J("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",n),e[4]=n,e[5]=l):l=e[5];let a;e[6]!==o?(a=o??t.jsx(Nt,{}),e[6]=o,e[7]=a):a=e[7];let c;return e[8]!==r||e[9]!==l||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...r,children:a}),e[8]=r,e[9]=l,e[10]=a,e[11]=c):c=e[11],c}const Ft=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Lt(s){const e=C.c(11),{toolName:o,connectionId:n,siblings:r,onSelectInstance:l,onBack:a}=s;let c;e[0]!==n?(c={connectionId:n},e[0]=n,e[1]=c):c=e[1];const i=wt(c);if(!i.isAuthenticated){let u;return e[2]!==i.supportsOAuth||e[3]!==a?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:i.supportsOAuth?t.jsx(vt,{onAuthenticate:()=>a(),buttonText:"Go back to authenticate"}):t.jsx(St,{hasReadme:!1})}),e[2]=i.supportsOAuth,e[3]=a,e[4]=u):u=e[4],u}const p=`${n}:${o}`;let f;return e[5]!==n||e[6]!==l||e[7]!==r||e[8]!==p||e[9]!==o?(f=t.jsx(Vt,{toolName:o,connectionId:n,siblings:r,onSelectInstance:l},p),e[5]=n,e[6]=l,e[7]=r,e[8]=p,e[9]=o,e[10]=f):f=e[10],f}function Vt({toolName:s,connectionId:e,siblings:o,onSelectInstance:n}){const{replayId:r}=Ye({strict:!1}),l=(()=>{if(!r)return null;const d=`replay-${r}`,m=sessionStorage.getItem(d);if(!m)return null;sessionStorage.removeItem(d);try{return JSON.parse(m)}catch{return null}})(),a=(()=>{if(!l)return null;const d={};for(const[m,b]of Object.entries(l))b!==null&&typeof b=="object"?d[m]=JSON.stringify(b,null,2):d[m]=b;return d})(),[c,i]=w.useState(a??{}),[p,f]=w.useState(l?JSON.stringify(l,null,2):"{}"),[u,h]=w.useState(null),[N,T]=w.useState(null),[_,A]=w.useState(null),[O,y]=w.useState(null),[k,I]=w.useState(!1),[g,v]=w.useState(null),{org:S}=le(),$=_e(e),j=Tt(),P=kt(),{setChatOpen:z}=Pt(),M=`${e}:${s}`,R=ce({connectionId:e,orgId:S.id,orgSlug:S.slug}),U=It({client:R}),x=U.data?.tools?.find(d=>d.name===s),E=lt(x?._meta),B=d=>{if(!j)return;const m=$t(d.content);m.content.length>0&&(z(!0),j.sendMessage({tiptapDoc:m}))},[D,X]=w.useState("json"),[Me,Ue]=w.useState(!1);E&&!Me&&(X("ui"),Ue(!0));const xe=x?.inputSchema?.properties,fe=xe?Object.keys(xe):[],q=fe.length>0,H={};if(q&&x?.inputSchema?.properties)for(const d of fe)H[d]=x.inputSchema.required?.includes(d)?"":void 0;const Z=d=>Object.prototype.hasOwnProperty.call(c,d),ze=async()=>{I(!0),y(null),h(null),T(null),A(null),v(null);const d=performance.now();try{if(!R)throw new Error("MCP client is not available");const m=q?{...H,...c}:(()=>{const F=p.trim();if(!F)return{};const L=JSON.parse(F);if(L&&typeof L=="object")return L;throw new Error("Raw JSON input must be an object.")})();q&&x?.inputSchema?.properties&&Object.entries(x.inputSchema.properties).forEach(([F,L])=>{if((L.type==="object"||L.type==="array")&&typeof m[F]=="string")try{m[F]=JSON.parse(m[F])}catch{}});const b=await R.callTool({name:s,arguments:m}),K=b.structuredContent??b,qe=performance.now(),We=Math.round(qe-d);h(K),T(b),A(m);const He=JSON.stringify(K),ge=new TextEncoder().encode(He).length;v({duration:`${We}ms`,bytes:`${ge} bytes`,tokens:`~${Math.ceil(ge/4)} tokens`,cost:"$0.0000"})}catch(m){const b=m instanceof Error?m.message:String(m);y(b||"Unknown error occurred");const K=performance.now();v({duration:`${Math.round(K-d)}ms`})}finally{I(!1)}},ee=(d,m)=>{i(b=>({...b,[d]:m}))},Be=()=>{h(null),T(null),A(null),y(null),v(null)},Fe=x?.name??Ft(s),Le=t.jsx(Oe,{children:t.jsxs(Re,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(Q,{to:"/$org/settings/connections",params:{org:S.slug},children:"Connections"})})}),t.jsx(Y,{}),$&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(Q,{to:"/$org/settings/connections/$appSlug",params:{org:S.slug,appSlug:yt($)},search:{tab:"tools"},children:$.title})})}),t.jsx(Y,{})]}),t.jsx(V,{children:t.jsx(De,{children:Fe})})]})}),he=o.length>1&&t.jsxs(be,{value:e,onValueChange:n,children:[t.jsx(Ne,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ve,{})}),t.jsx(Se,{children:o.map(d=>t.jsx(ne,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx($e,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),Ve=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),x?.inputSchema?.required&&x.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&x?.inputSchema?.properties?Object.entries(x.inputSchema.properties).map(([d,m])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[d,x.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:m.type})]}),m.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:m.description}),m.type==="object"||m.type==="array"?t.jsx(re,{className:"font-mono text-xs",value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d} as JSON...`,rows:3}):m.type==="boolean"?t.jsxs(be,{value:Z(d)?String(c[d]??""):"",onValueChange:b=>ee(d,b==="true"),children:[t.jsx(Ne,{children:t.jsx(ve,{placeholder:"Select true or false..."})}),t.jsxs(Se,{children:[t.jsx(ne,{value:"true",children:"true"}),t.jsx(ne,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d}...`})]},d)):x?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(re,{className:"font-mono text-xs min-h-[120px]",value:p,onChange:d=>f(d.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(W,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(pt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(W,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:ze,children:[t.jsx(bt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),Je=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[g&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.duration})]}),g.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ft,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.tokens})]}),g.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ht,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.bytes})]}),g.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:g.cost})})]}),E&&t.jsx(mt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(W,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(gt,{size:14})})}),t.jsx(Ce,{children:"Interactive view"})]}),t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(W,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(Ie,{size:14})})}),t.jsx(Ce,{children:"JSON view"})]})]})})]})]}),O&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(at,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(ut,{className:"h-4 w-4"}),t.jsx(ct,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(dt,{className:"text-xs text-destructive",children:O})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&D==="ui"&&R?t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(it,{resourceURI:E,toolInfo:x?{tool:x}:void 0,toolInput:_??void 0,toolResult:N??void 0,displayMode:"fullscreen",minHeight:je.view.minHeight,maxHeight:je.view.maxHeight,client:R,onMessage:B,onUpdateModelContext:d=>P?.setAppContext(M,d),onTeardown:()=>P?.clearAppContext(M),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(Et,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(W,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),Xe.success("Copied to clipboard")},children:t.jsx(jt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(Ie,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(pe,{breadcrumb:Le,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx($e,{icon:$?.icon||null,name:$?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[U.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):U.isLoading?t.jsx(ie,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:U.isSuccess?"ready":U.isLoading?"connecting":"error"})]}),t.jsx(Ct,{annotations:x?.annotations,_meta:x?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:he})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:x?.description||"No description available"})]}),o.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),he]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ve}),Je]})})]})})}function Jt(s){const e=C.c(10),{itemId:o,siblings:n,onBack:r}=s,[l,a]=w.useState(n[0]?.id??"");let c;e[0]!==l||e[1]!==n?(c=n.find(h=>h.id===l)?.id??n[0]?.id??"",e[0]=l,e[1]=n,e[2]=c):c=e[2];const i=c;if(!_e(i||void 0)||!i){let h;return e[3]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=h):h=e[3],h}let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ie,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=f):f=e[4];let u;return e[5]!==i||e[6]!==r||e[7]!==n||e[8]!==o?(u=t.jsx(w.Suspense,{fallback:f,children:t.jsx(Lt,{toolName:o,connectionId:i,siblings:n,onSelectInstance:a,onBack:r})}),e[5]=i,e[6]=r,e[7]=n,e[8]=o,e[9]=u):u=e[9],u}const qt={workflow:rt,workflow_execution:ot,prompt:Bt};function Wt(){const s=C.c(9),e=ke();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=o):o=s[0];const n=ae(o),r=decodeURIComponent(n.itemId);let l;s[1]!==n.appSlug?(l={slug:n.appSlug},s[1]=n.appSlug,s[2]=l):l=s[2];const a=Ae(l);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const i=c,p=Ht;let f;return s[5]!==i||s[6]!==r||s[7]!==a?(f=t.jsx(Jt,{itemId:r,siblings:a,onBack:i,onUpdate:p}),s[5]=i,s[6]=r,s[7]=a,s[8]=f):f=s[8],f}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=C.c(41),e=ke();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=o):o=s[0];const n=ae(o),r=decodeURIComponent(n.collectionName),l=decodeURIComponent(n.itemId);let a;s[1]!==e.history?(a=()=>{e.history.back()},s[1]=e.history,s[2]=a):a=s[2];const c=a,{org:i}=le();let p;s[3]!==n.appSlug?(p={slug:n.appSlug},s[3]=n.appSlug,s[4]=p):p=s[4];const u=Ae(p)[0]??null,h=u?.id??"",N=h||"no-connection",T=h??null;let _;s[5]!==i.id||s[6]!==i.slug||s[7]!==T?(_={connectionId:T,orgId:i.id,orgSlug:i.slug},s[5]=i.id,s[6]=i.slug,s[7]=T,s[8]=_):_=s[8];const A=ce(_),O=Ee(N,r,A);let y;s[9]!==O||s[10]!==l?(y=async D=>{l&&await O.update.mutateAsync({id:l,data:D})},s[9]=O,s[10]=l,s[11]=y):y=s[11];const k=y;let I;s[12]!==r?(I=r?.toLowerCase(),s[12]=r,s[13]=I):I=s[13];const g=I,v=g&&qt[g];let S;s[14]!==r?(S=Kt(r),s[14]=r,s[15]=S):S=s[15];const $=S;let j;s[16]!==i.slug?(j=t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(Q,{to:"/$org/settings/connections",params:{org:i.slug},children:"Connections"})})}),s[16]=i.slug,s[17]=j):j=s[17];let P;s[18]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Y,{}),s[18]=P):P=s[18];let z;s[19]!==r||s[20]!==u||s[21]!==i.slug||s[22]!==n.appSlug?(z=u&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(Q,{to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:n.appSlug},search:{tab:r},children:u.title})})}),t.jsx(Y,{})]}),s[19]=r,s[20]=u,s[21]=i.slug,s[22]=n.appSlug,s[23]=z):z=s[23];let M;s[24]!==$?(M=t.jsx(V,{children:t.jsx(De,{children:$})}),s[24]=$,s[25]=M):M=s[25];let R;s[26]!==z||s[27]!==M||s[28]!==j?(R=t.jsx(Oe,{children:t.jsxs(Re,{children:[j,P,z,M]})}),s[26]=z,s[27]=M,s[28]=j,s[29]=R):R=s[29];const U=R;if(v){let D;return s[30]!==v||s[31]!==c||s[32]!==k||s[33]!==l?(D=t.jsx(v,{itemId:l,onBack:c,onUpdate:k}),s[30]=v,s[31]=c,s[32]=k,s[33]=l,s[34]=D):D=s[34],D}let x;s[35]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(At,{size:36,className:"text-muted-foreground"}),s[35]=x):x=s[35];let E;s[36]!==c?(E=t.jsx(_t,{icon:x,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:c,children:"Go back"}}),s[36]=c,s[37]=E):E=s[37];let B;return s[38]!==U||s[39]!==E?(B=t.jsx(pe,{breadcrumb:U,children:E}),s[38]=U,s[39]=E,s[40]=B):B=s[40],B}function Gt(){const s=C.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const o=ae(e);if(decodeURIComponent(o.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Wt,{}),s[1]=a):a=s[1],a}let l;return s[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Qt,{}),s[2]=l):l=s[2],l}function Bn(){const s=C.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Te,{children:t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ie,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gt,{})})}),s[0]=e):e=s[0],e}export{Bn as default};
1
+ import{M as Ke,Q as te,e as C,j as t,E as Te,r as w,q as le,F as Qe,c as J,bd as Ge,l as ie,d as Ye,J as Q,B as W,o as Xe,g as ae,be as ke}from"./index-UC1l_H0T.js";import{E as Pe}from"./empty-state-Bu34R0Ge.js";import{u as Ze,a as Ee}from"./use-collections-BTet4gbf.js";import{u as ce}from"./constants-Cs7fB5Fz.js";import{F as se,a as et,b as de,d as me}from"./form-D3vgRHP1.js";import{I as ue}from"./input-DsrZ-ooH.js";import{T as re}from"./textarea-DHADmpP7.js";import{a as tt,b as st,V as pe}from"./layout-D5T7gOAZ.js";import{S as nt,W as ot,a as rt}from"./index-rlMTPXaY.js";import{g as lt,M as it,b as je}from"./types-CV-R3YJI.js";import{A as at,a as ct,b as dt}from"./alert-CsfEK-pW.js";import{S as be,a as Ne,b as ve,c as Se,d as ne}from"./select-C79R2QFd.js";import{c as mt,b as ye,T as we,a as Ce}from"./tooltip-D99J2opT.js";import{i as ut}from"./AlertCircle-D833Ltv-.js";import{w as pt,E as xt,_ as ft,$ as ht,a0 as gt,a1 as Ie}from"./agent-icon-CY89NnPl.js";import{a as jt}from"./RefreshCcw01-C_M5ucZA.js";import{i as bt}from"./Play-C_TiwHSZ.js";import{i as Nt}from"./ChevronRight-CNXVJ2DZ.js";import{O as vt,M as St}from"./index-BXtbhLzx.js";import{g as yt}from"./connection-slug-eyAPH6o3.js";import{u as wt,T as Ct}from"./tools-list-9DGVlsWM.js";import{a as _e,u as Ae}from"./use-connection-DBaDqCrX.js";import{b as It}from"./use-mcp-tools-DNGR_0Mv.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as $e}from"./integration-icon-CFCAsXBi.js";import{i as Tt,k as kt}from"./chat-context-B-JG5oa1.js";import{u as Pt}from"./shell-layout-cAhx7nwo.js";import{M as Et}from"./monaco-editor-C5sim7vP.js";import{E as _t}from"./empty-state-DD8Ex2ET.js";import{n as At}from"./Container-Cs9tbOj1.js";import"./label-C52V0YQz.js";import"./index-xKyKnuDm.js";import"./sidebar-Bf-Wr1hs.js";import"./sheet-hxQW4lrM.js";import"./X-ztVwMZpQ.js";import"./index-BWswuQI7.js";import"./collections-DUaCJTyY.js";import"./index-Cf4jx0jn.js";import"./use-virtual-mcp-D0WYBO2Q.js";import"./accordion-DaGjUiGE.js";import"./scroll-area-kdWO_XIf.js";import"./badge-BsmgKXBP.js";import"./spinner-BwiMhd03.js";import"./view-mode-toggle-lh_SmTz1.js";import"./dialog-0ciXFW-Z.js";import"./index-9XFiI_cQ.js";import"./hover-card-qQqTzhfd.js";import"./dropdown-menu-C-OdW-YG.js";import"./Check-B-Snf346.js";import"./DotsVertical-BF7lQrGo.js";import"./Plus-pn49dx0X.js";import"./Tool01-Me7z4aVw.js";import"./XClose-BW7B2d42.js";import"./index-bhqxeP1Q.js";import"./create-sse-subscription--G7iwTWC.js";import"./ChevronDown-BvZFsep5.js";import"./ChevronUp-CLQmelYz.js";import"./SwitchHorizontal01-Vb6nTk77.js";import"./XCircle-CWhlQPxr.js";import"./ArrowUpRight-CrasW2I3.js";import"./ZapSquare-CMBh1a8Y.js";import"./Users03-Cr2QcycS.js";import"./CheckCircle-Da1q2cG-.js";import"./FilterLines-DMWymvCD.js";import"./Star01-B3pqpeOo.js";import"./Palette-DsjYkIAm.js";import"./HardDrive-CYl4X54q.js";import"./Stars02-B-2qVnjt.js";import"./Key01-DrmRQ9bQ.js";import"./LinkExternal01-BwOlCt0z.js";import"./Lock01-FBg4tUR8.js";import"./Monitor01-DpahDMVO.js";import"./Sun-DsPGStQy.js";import"./SearchMd-ItgHq67b.js";import"./Settings02-BnWl2AAW.js";import"./Shield01-D1FxKad8.js";import"./Trash01-9HT5dT2T.js";import"./Upload01-CWsYex6m.js";import"./User01-SXBYgWls.js";import"./Users01-BprBjMXf.js";import"./Zap-4DwoO8-E.js";import"./extract-connection-data-BifWZIpC.js";import"./generate-id-CK8apMBl.js";import"./use-registry-connections-XMNP50oa.js";import"./use-organization-settings-zgxousJq.js";import"./index-BkFXYyEN.js";import"./popover-BySx8Yy1.js";import"./use-create-virtual-mcp-BfWQXjFB.js";import"./use-navigate-to-agent-mMKG1Kz-.js";import"./tab-id-sG-YwvQY.js";import"./decopilot-sse-pool-D4kwiVhA.js";import"./use-ai-providers-YYcsx8QH.js";import"./avatar-CIl9WOil.js";import"./required-auth-layout-ByChgpTu.js";import"./useRouterState-BW1upcty.js";import"./use-org-sso-6mIiyURD.js";Ke({title:te().min(1),description:te().nullable(),body:te()});function oe(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Ot(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(n=>n==="mcps"),o=e>=0?s[e+1]:void 0;return o?decodeURIComponent(o):void 0}function Rt(s){const e=C.c(13),{form:o}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Details"}),e[0]=n):n=e[0];let r;e[1]!==o.control?(r=t.jsxs("div",{className:"flex flex-col gap-4",children:[n,t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[t.jsx(se,{control:o.control,name:"title",render:Ut}),t.jsx(se,{control:o.control,name:"description",render:Mt})]})]}),e[1]=o.control,e[2]=r):r=e[2];let l,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("div",{className:"text-sm font-medium text-foreground",children:"Message"}),a=t.jsx("div",{className:"text-xs text-muted-foreground",children:"This becomes the user message in the prompt."}),e[3]=l,e[4]=a):(l=e[3],a=e[4]);let c;e[5]!==o.control?(c=t.jsxs("div",{className:"flex flex-col gap-2",children:[l,a,t.jsx(se,{control:o.control,name:"body",render:Dt})]}),e[5]=o.control,e[6]=c):c=e[6];let i;e[7]!==r||e[8]!==c?(i=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[r,c]}),e[7]=r,e[8]=c,e[9]=i):i=e[9];let p;return e[10]!==o||e[11]!==i?(p=t.jsx(et,{...o,children:i}),e[10]=o,e[11]=i,e[12]=p):p=e[12],p}function Dt(s){const{field:e}=s;return t.jsx(de,{children:t.jsx(me,{children:t.jsx(re,{...e,value:e.value??"",placeholder:"Write the prompt message…",className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})}function Mt(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Description"}),t.jsx(me,{children:t.jsx(ue,{...e,value:e.value??"",placeholder:"Add a description…",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function Ut(s){const{field:e}=s;return t.jsxs(de,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:"Title"}),t.jsx(me,{children:t.jsx(ue,{...e,placeholder:"Untitled prompt",className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})}function zt(s){const e=C.c(36),{providerId:o,promptId:n}=s,{org:r}=le(),l=o||null;let a;e[0]!==r.id||e[1]!==r.slug||e[2]!==l?(a={connectionId:l,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=l,e[3]=a):a=e[3];const c=ce(a),i=Ze(o,"PROMPT",n,c),p=Ee(o,"PROMPT",c),f=p.update.isPending;let u;e[4]!==i?(u=i?{title:i.title,description:i.description??null,body:oe(i)}:void 0,e[4]=i,e[5]=u):u=e[5];let h;e[6]!==u?(h={values:u},e[6]=u,e[7]=h):h=e[7];const N=Qe(h);let T;e[8]!==N||e[9]!==i?(T=()=>{i&&N.reset({title:i.title,description:i.description??null,body:oe(i)})},e[8]=N,e[9]=i,e[10]=T):T=e[10];const _=T;let A;e[11]!==p.update||e[12]!==N||e[13]!==n?(A=N.handleSubmit(async j=>{const P=await p.update.mutateAsync({id:n,data:{title:j.title,description:j.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:j.body}}]}});N.reset({title:P.title,description:P.description??null,body:oe(P)})}),e[11]=p.update,e[12]=N,e[13]=n,e[14]=A):A=e[14];const O=A;if(!i){let j;return e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pe,{title:"Prompt not found",description:"This prompt may have been deleted or you may not have access to it."})}),e[15]=j):j=e[15],j}let y;e[16]!==i.title?(y=t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:i.title}),e[16]=i.title,e[17]=y):y=e[17];let k;e[18]!==i.description?(k=i.description?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"•"}),t.jsx("span",{className:"text-xs text-muted-foreground font-normal truncate min-w-0 max-w-[20ch]",children:i.description})]}):null,e[18]=i.description,e[19]=k):k=e[19];let I;e[20]!==y||e[21]!==k?(I=t.jsx(st,{children:t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[y,k]})}),e[20]=y,e[21]=k,e[22]=I):I=e[22];let g;e[23]!==O?(g=()=>{O()},e[23]=O,e[24]=g):g=e[24];let v;e[25]!==N.formState.isDirty||e[26]!==f||e[27]!==_||e[28]!==g?(v=t.jsx(tt,{children:t.jsx(nt,{onSave:g,onUndo:_,isDirty:N.formState.isDirty,isSaving:f})}),e[25]=N.formState.isDirty,e[26]=f,e[27]=_,e[28]=g,e[29]=v):v=e[29];let S;e[30]!==N?(S=t.jsx("div",{className:"h-full",children:t.jsx(Rt,{form:N})}),e[30]=N,e[31]=S):S=e[31];let $;return e[32]!==v||e[33]!==S||e[34]!==I?($=t.jsxs(pe,{children:[I,v,S]}),e[32]=v,e[33]=S,e[34]=I,e[35]=$):$=e[35],$}function Bt(s){const e=C.c(4),{itemId:o}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Ot(),e[0]=n):n=e[0];const r=n;if(!r){let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pe,{title:"Prompt not found",description:"Missing connection information in the current route."})}),e[1]=a):a=e[1],a}let l;return e[2]!==o?(l=t.jsx(Te,{children:t.jsx(w.Suspense,{fallback:null,children:t.jsx(zt,{providerId:r,promptId:o})})}),e[2]=o,e[3]=l):l=e[3],l}function Oe(s){const e=C.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let r;e[3]!==o?(r=J("min-w-0 overflow-hidden",o),e[3]=o,e[4]=r):r=e[4];let l;return e[5]!==n||e[6]!==r?(l=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:r,...n}),e[5]=n,e[6]=r,e[7]=l):l=e[7],l}function Re(s){const e=C.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let r;e[3]!==o?(r=J("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",o),e[3]=o,e[4]=r):r=e[4];let l;return e[5]!==n||e[6]!==r?(l=t.jsx("ol",{"data-slot":"breadcrumb-list",className:r,...n}),e[5]=n,e[6]=r,e[7]=l):l=e[7],l}function V(s){const e=C.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let r;e[3]!==o?(r=J("inline-flex items-center gap-1.5 min-w-0",o),e[3]=o,e[4]=r):r=e[4];let l;return e[5]!==n||e[6]!==r?(l=t.jsx("li",{"data-slot":"breadcrumb-item",className:r,...n}),e[5]=n,e[6]=r,e[7]=l):l=e[7],l}function G(s){const e=C.c(10);let o,n,r;e[0]!==s?({asChild:o,className:n,...r}=s,e[0]=s,e[1]=o,e[2]=n,e[3]=r):(o=e[1],n=e[2],r=e[3]);const l=o?Ge:"a";let a;e[4]!==n?(a=J("hover:text-foreground transition-colors truncate",n),e[4]=n,e[5]=a):a=e[5];let c;return e[6]!==l||e[7]!==r||e[8]!==a?(c=t.jsx(l,{"data-slot":"breadcrumb-link",className:a,...r}),e[6]=l,e[7]=r,e[8]=a,e[9]=c):c=e[9],c}function De(s){const e=C.c(8);let o,n;e[0]!==s?({className:o,...n}=s,e[0]=s,e[1]=o,e[2]=n):(o=e[1],n=e[2]);let r;e[3]!==o?(r=J("text-foreground font-medium truncate",o),e[3]=o,e[4]=r):r=e[4];let l;return e[5]!==n||e[6]!==r?(l=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r,...n}),e[5]=n,e[6]=r,e[7]=l):l=e[7],l}function Y(s){const e=C.c(12);let o,n,r;e[0]!==s?({children:o,className:n,...r}=s,e[0]=s,e[1]=o,e[2]=n,e[3]=r):(o=e[1],n=e[2],r=e[3]);let l;e[4]!==n?(l=J("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",n),e[4]=n,e[5]=l):l=e[5];let a;e[6]!==o?(a=o??t.jsx(Nt,{}),e[6]=o,e[7]=a):a=e[7];let c;return e[8]!==r||e[9]!==l||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...r,children:a}),e[8]=r,e[9]=l,e[10]=a,e[11]=c):c=e[11],c}const Ft=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Lt(s){const e=C.c(11),{toolName:o,connectionId:n,siblings:r,onSelectInstance:l,onBack:a}=s;let c;e[0]!==n?(c={connectionId:n},e[0]=n,e[1]=c):c=e[1];const i=wt(c);if(!i.isAuthenticated){let u;return e[2]!==i.supportsOAuth||e[3]!==a?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:i.supportsOAuth?t.jsx(vt,{onAuthenticate:()=>a(),buttonText:"Go back to authenticate"}):t.jsx(St,{hasReadme:!1})}),e[2]=i.supportsOAuth,e[3]=a,e[4]=u):u=e[4],u}const p=`${n}:${o}`;let f;return e[5]!==n||e[6]!==l||e[7]!==r||e[8]!==p||e[9]!==o?(f=t.jsx(Vt,{toolName:o,connectionId:n,siblings:r,onSelectInstance:l},p),e[5]=n,e[6]=l,e[7]=r,e[8]=p,e[9]=o,e[10]=f):f=e[10],f}function Vt({toolName:s,connectionId:e,siblings:o,onSelectInstance:n}){const{replayId:r}=Ye({strict:!1}),l=(()=>{if(!r)return null;const d=`replay-${r}`,m=sessionStorage.getItem(d);if(!m)return null;sessionStorage.removeItem(d);try{return JSON.parse(m)}catch{return null}})(),a=(()=>{if(!l)return null;const d={};for(const[m,b]of Object.entries(l))b!==null&&typeof b=="object"?d[m]=JSON.stringify(b,null,2):d[m]=b;return d})(),[c,i]=w.useState(a??{}),[p,f]=w.useState(l?JSON.stringify(l,null,2):"{}"),[u,h]=w.useState(null),[N,T]=w.useState(null),[_,A]=w.useState(null),[O,y]=w.useState(null),[k,I]=w.useState(!1),[g,v]=w.useState(null),{org:S}=le(),$=_e(e),j=Tt(),P=kt(),{setChatOpen:z}=Pt(),M=`${e}:${s}`,R=ce({connectionId:e,orgId:S.id,orgSlug:S.slug}),U=It({client:R}),x=U.data?.tools?.find(d=>d.name===s),E=lt(x?._meta),B=d=>{if(!j)return;const m=$t(d.content);m.content.length>0&&(z(!0),j.sendMessage({tiptapDoc:m}))},[D,X]=w.useState("json"),[Me,Ue]=w.useState(!1);E&&!Me&&(X("ui"),Ue(!0));const xe=x?.inputSchema?.properties,fe=xe?Object.keys(xe):[],q=fe.length>0,H={};if(q&&x?.inputSchema?.properties)for(const d of fe)H[d]=x.inputSchema.required?.includes(d)?"":void 0;const Z=d=>Object.prototype.hasOwnProperty.call(c,d),ze=async()=>{I(!0),y(null),h(null),T(null),A(null),v(null);const d=performance.now();try{if(!R)throw new Error("MCP client is not available");const m=q?{...H,...c}:(()=>{const F=p.trim();if(!F)return{};const L=JSON.parse(F);if(L&&typeof L=="object")return L;throw new Error("Raw JSON input must be an object.")})();q&&x?.inputSchema?.properties&&Object.entries(x.inputSchema.properties).forEach(([F,L])=>{if((L.type==="object"||L.type==="array")&&typeof m[F]=="string")try{m[F]=JSON.parse(m[F])}catch{}});const b=await R.callTool({name:s,arguments:m}),K=b.structuredContent??b,qe=performance.now(),We=Math.round(qe-d);h(K),T(b),A(m);const He=JSON.stringify(K),ge=new TextEncoder().encode(He).length;v({duration:`${We}ms`,bytes:`${ge} bytes`,tokens:`~${Math.ceil(ge/4)} tokens`,cost:"$0.0000"})}catch(m){const b=m instanceof Error?m.message:String(m);y(b||"Unknown error occurred");const K=performance.now();v({duration:`${Math.round(K-d)}ms`})}finally{I(!1)}},ee=(d,m)=>{i(b=>({...b,[d]:m}))},Be=()=>{h(null),T(null),A(null),y(null),v(null)},Fe=x?.name??Ft(s),Le=t.jsx(Oe,{children:t.jsxs(Re,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(Q,{to:"/$org/settings/connections",params:{org:S.slug},children:"Connections"})})}),t.jsx(Y,{}),$&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(Q,{to:"/$org/settings/connections/$appSlug",params:{org:S.slug,appSlug:yt($)},search:{tab:"tools"},children:$.title})})}),t.jsx(Y,{})]}),t.jsx(V,{children:t.jsx(De,{children:Fe})})]})}),he=o.length>1&&t.jsxs(be,{value:e,onValueChange:n,children:[t.jsx(Ne,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(ve,{})}),t.jsx(Se,{children:o.map(d=>t.jsx(ne,{value:d.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx($e,{icon:d.icon,name:d.title,size:"xs",className:"shrink-0"}),d.title]})},d.id))})]}),Ve=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:"Parameters"}),x?.inputSchema?.required&&x.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-red-500",children:"*"})," Required"]})]}),t.jsx("div",{className:"space-y-4",children:q&&x?.inputSchema?.properties?Object.entries(x.inputSchema.properties).map(([d,m])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[d,x.inputSchema?.required?.includes(d)&&t.jsx("span",{className:"text-red-500 text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:m.type})]}),m.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:m.description}),m.type==="object"||m.type==="array"?t.jsx(re,{className:"font-mono text-xs",value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d} as JSON...`,rows:3}):m.type==="boolean"?t.jsxs(be,{value:Z(d)?String(c[d]??""):"",onValueChange:b=>ee(d,b==="true"),children:[t.jsx(Ne,{children:t.jsx(ve,{placeholder:"Select true or false..."})}),t.jsxs(Se,{children:[t.jsx(ne,{value:"true",children:"true"}),t.jsx(ne,{value:"false",children:"false"})]})]}):t.jsx(ue,{value:Z(d)?c[d]??"":H[d]??"",onChange:b=>ee(d,b.target.value),placeholder:`Enter ${d}...`})]},d)):x?.inputSchema&&!q?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Raw JSON Input"}),t.jsx(re,{className:"font-mono text-xs min-h-[120px]",value:p,onChange:d=>f(d.target.value),placeholder:'e.g. { "foo": "bar" }'})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:"No parameters required"})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:k?t.jsxs(W,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Be,children:[t.jsx(pt,{className:"h-3.5 w-3.5"}),"Cancel"]}):t.jsxs(W,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:ze,children:[t.jsx(bt,{className:"h-3.5 w-3.5 fill-current"}),"Execute Tool"]})})]}),Je=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:"Result"}),t.jsxs("div",{className:"flex items-center gap-3",children:[g&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(xt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.duration})]}),g.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ft,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.tokens})]}),g.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ht,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:g.bytes})]}),g.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:g.cost})})]}),E&&t.jsx(mt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(W,{size:"icon",variant:D==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("ui"),children:t.jsx(gt,{size:14})})}),t.jsx(Ce,{children:"Interactive view"})]}),t.jsxs(ye,{children:[t.jsx(we,{asChild:!0,children:t.jsx(W,{size:"icon",variant:D==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>X("json"),children:t.jsx(Ie,{size:14})})}),t.jsx(Ce,{children:"JSON view"})]})]})})]})]}),O&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(at,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(ut,{className:"h-4 w-4"}),t.jsx(ct,{className:"mb-0",children:"Execution Failed"})]}),t.jsx(dt,{className:"text-xs text-destructive",children:O})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:E&&D==="ui"&&R?t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),children:t.jsx(it,{resourceURI:E,toolInfo:x?{tool:x}:void 0,toolInput:_??void 0,toolResult:N??void 0,displayMode:"fullscreen",minHeight:je.view.minHeight,maxHeight:je.view.maxHeight,client:R,onMessage:B,onUpdateModelContext:d=>P?.setAppContext(M,d),onTeardown:()=>P?.clearAppContext(M),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(Et,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(W,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),Xe.success("Copied to clipboard")},children:t.jsx(jt,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(Ie,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:"Run the tool to see results"})]})})]});return t.jsx(pe,{breadcrumb:Le,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx($e,{icon:$?.icon||null,name:$?.title||s,size:"xl",className:"shrink-0"}),t.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground leading-none truncate",children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[U.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-green-500 animate-pulse shrink-0"}):U.isLoading?t.jsx(ie,{size:10,className:"animate-spin text-yellow-500 shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-red-500 shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:U.isSuccess?"ready":U.isLoading?"connecting":"error"})]}),t.jsx(Ct,{annotations:x?.annotations,_meta:x?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:he})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:x?.description||"No description available"})]}),o.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:"Instance"}),he]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ve}),Je]})})]})})}function Jt(s){const e=C.c(10),{itemId:o,siblings:n,onBack:r}=s,[l,a]=w.useState(n[0]?.id??"");let c;e[0]!==l||e[1]!==n?(c=n.find(h=>h.id===l)?.id??n[0]?.id??"",e[0]=l,e[1]=n,e[2]=c):c=e[2];const i=c;if(!_e(i||void 0)||!i){let h;return e[3]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[t.jsx("h3",{className:"text-lg font-semibold",children:"Connection not found"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"This connection may have been deleted or you may not have access."})]})}),e[3]=h):h=e[3],h}let f;e[4]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ie,{size:32,className:"animate-spin text-muted-foreground"})}),e[4]=f):f=e[4];let u;return e[5]!==i||e[6]!==r||e[7]!==n||e[8]!==o?(u=t.jsx(w.Suspense,{fallback:f,children:t.jsx(Lt,{toolName:o,connectionId:i,siblings:n,onSelectInstance:a,onBack:r})}),e[5]=i,e[6]=r,e[7]=n,e[8]=o,e[9]=u):u=e[9],u}const qt={workflow:rt,workflow_execution:ot,prompt:Bt};function Wt(){const s=C.c(9),e=ke();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=o):o=s[0];const n=ae(o),r=decodeURIComponent(n.itemId);let l;s[1]!==n.appSlug?(l={slug:n.appSlug},s[1]=n.appSlug,s[2]=l):l=s[2];const a=Ae(l);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const i=c,p=Ht;let f;return s[5]!==i||s[6]!==r||s[7]!==a?(f=t.jsx(Jt,{itemId:r,siblings:a,onBack:i,onUpdate:p}),s[5]=i,s[6]=r,s[7]=a,s[8]=f):f=s[8],f}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qt(){const s=C.c(41),e=ke();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=o):o=s[0];const n=ae(o),r=decodeURIComponent(n.collectionName),l=decodeURIComponent(n.itemId);let a;s[1]!==e.history?(a=()=>{e.history.back()},s[1]=e.history,s[2]=a):a=s[2];const c=a,{org:i}=le();let p;s[3]!==n.appSlug?(p={slug:n.appSlug},s[3]=n.appSlug,s[4]=p):p=s[4];const u=Ae(p)[0]??null,h=u?.id??"",N=h||"no-connection",T=h??null;let _;s[5]!==i.id||s[6]!==i.slug||s[7]!==T?(_={connectionId:T,orgId:i.id,orgSlug:i.slug},s[5]=i.id,s[6]=i.slug,s[7]=T,s[8]=_):_=s[8];const A=ce(_),O=Ee(N,r,A);let y;s[9]!==O||s[10]!==l?(y=async D=>{l&&await O.update.mutateAsync({id:l,data:D})},s[9]=O,s[10]=l,s[11]=y):y=s[11];const k=y;let I;s[12]!==r?(I=r?.toLowerCase(),s[12]=r,s[13]=I):I=s[13];const g=I,v=g&&qt[g];let S;s[14]!==r?(S=Kt(r),s[14]=r,s[15]=S):S=s[15];const $=S;let j;s[16]!==i.slug?(j=t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(Q,{to:"/$org/settings/connections",params:{org:i.slug},children:"Connections"})})}),s[16]=i.slug,s[17]=j):j=s[17];let P;s[18]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Y,{}),s[18]=P):P=s[18];let z;s[19]!==r||s[20]!==u||s[21]!==i.slug||s[22]!==n.appSlug?(z=u&&t.jsxs(t.Fragment,{children:[t.jsx(V,{children:t.jsx(G,{asChild:!0,children:t.jsx(Q,{to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:n.appSlug},search:{tab:r},children:u.title})})}),t.jsx(Y,{})]}),s[19]=r,s[20]=u,s[21]=i.slug,s[22]=n.appSlug,s[23]=z):z=s[23];let M;s[24]!==$?(M=t.jsx(V,{children:t.jsx(De,{children:$})}),s[24]=$,s[25]=M):M=s[25];let R;s[26]!==z||s[27]!==M||s[28]!==j?(R=t.jsx(Oe,{children:t.jsxs(Re,{children:[j,P,z,M]})}),s[26]=z,s[27]=M,s[28]=j,s[29]=R):R=s[29];const U=R;if(v){let D;return s[30]!==v||s[31]!==c||s[32]!==k||s[33]!==l?(D=t.jsx(v,{itemId:l,onBack:c,onUpdate:k}),s[30]=v,s[31]=c,s[32]=k,s[33]=l,s[34]=D):D=s[34],D}let x;s[35]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(At,{size:36,className:"text-muted-foreground"}),s[35]=x):x=s[35];let E;s[36]!==c?(E=t.jsx(_t,{icon:x,title:"No component defined",description:"No component for this collection was defined",buttonProps:{onClick:c,children:"Go back"}}),s[36]=c,s[37]=E):E=s[37];let B;return s[38]!==U||s[39]!==E?(B=t.jsx(pe,{breadcrumb:U,children:E}),s[38]=U,s[39]=E,s[40]=B):B=s[40],B}function Gt(){const s=C.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const o=ae(e);if(decodeURIComponent(o.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(Wt,{}),s[1]=a):a=s[1],a}let l;return s[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Qt,{}),s[2]=l):l=s[2],l}function Bn(){const s=C.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Te,{children:t.jsx(w.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ie,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gt,{})})}),s[0]=e):e=s[0],e}export{Bn as default};
@@ -1 +1 @@
1
- import{e as B,j as s,c as M,B as V}from"./index-DCp7HEPF.js";import{c as z,a as _,b as $,D as E}from"./dropdown-menu-DQ8l1U7a.js";import{i as L,n as O,d as R,b as A,c as F}from"./SwitchHorizontal01-BmYbPnsz.js";import{i as S}from"./Check-Cgs_Ieiz.js";import{T as I,a as K,c as P,b as W}from"./tooltip-DbEod1mn.js";import{V as q}from"./view-mode-toggle-N3CPWQZE.js";import{B as G}from"./badge-BmO5u7_s.js";function te(t){const e=B.c(31),{viewMode:r,onViewModeChange:m,sortKey:T,sortDirection:p,onSort:f,sortOptions:u,filters:h}=t;let g;e[0]!==u?(g=u===void 0?[]:u,e[0]=u,e[1]=g):g=e[1];const j=g;let b;e[2]!==h?(b=h===void 0?[]:h,e[2]=h,e[3]=b):b=e[3];const l=b;let v;e[4]!==l?(v=l.filter(J),e[4]=l,e[5]=v):v=e[5];const N=v.length;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(R,{size:16}),e[6]=w):w=e[6];let i;e[7]!==N?(i=N>0&&s.jsx(G,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[7]=N,e[8]=i):i=e[8];let o;e[9]!==i?(o=s.jsx(I,{asChild:!0,children:s.jsx(_,{asChild:!0,children:s.jsxs(V,{variant:"outline",size:"icon",className:"relative",children:[w,i]})})}),e[9]=i,e[10]=o):o=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(K,{children:"Display & filters"}),e[11]=C):C=e[11];let n;e[12]!==o?(n=s.jsx(P,{children:s.jsxs(W,{children:[o,C]})}),e[12]=o,e[13]=n):n=e[13];let a;e[14]!==m||e[15]!==r?(a=m&&r&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:r,onValueChange:m,fullWidth:!0,options:[{value:"table",icon:s.jsx(A,{})},{value:"cards",icon:s.jsx(F,{})}]})}),e[14]=m,e[15]=r,e[16]=a):a=e[16];let c;e[17]!==f||e[18]!==p||e[19]!==T||e[20]!==j?(c=j.length>0&&f&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:"Sort by"}),j.map(y=>{const D=T===y.id;return s.jsx(z,{onClick:()=>f(y.id),className:M("h-8 px-2 py-0 cursor-pointer",D&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[D&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!D&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:y.label}),D&&p&&(p==="asc"?s.jsx(L,{size:16,className:"text-foreground shrink-0"}):s.jsx(O,{size:16,className:"text-foreground shrink-0"}))]})},y.id)})]}),e[17]=f,e[18]=p,e[19]=T,e[20]=j,e[21]=c):c=e[21];let d;e[22]!==l?(d=l.map(H),e[22]=l,e[23]=d):d=e[23];let x;e[24]!==a||e[25]!==c||e[26]!==d?(x=s.jsxs($,{align:"end",className:"w-[200px] p-0 gap-0",children:[a,c,d]}),e[24]=a,e[25]=c,e[26]=d,e[27]=x):x=e[27];let k;return e[28]!==n||e[29]!==x?(k=s.jsxs(E,{children:[n,x]}),e[28]=n,e[29]=x,e[30]=k):k=e[30],k}function H(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const r=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:M("h-8 px-2 py-0 cursor-pointer",r&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!r&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function J(t){return t.value!=="ALL"}export{te as C};
1
+ import{e as B,j as s,c as M,B as V}from"./index-UC1l_H0T.js";import{c as z,a as _,b as $,D as E}from"./dropdown-menu-C-OdW-YG.js";import{i as L,n as O,d as R,b as A,c as F}from"./SwitchHorizontal01-Vb6nTk77.js";import{i as S}from"./Check-B-Snf346.js";import{T as I,a as K,c as P,b as W}from"./tooltip-D99J2opT.js";import{V as q}from"./view-mode-toggle-lh_SmTz1.js";import{B as G}from"./badge-BsmgKXBP.js";function te(t){const e=B.c(31),{viewMode:r,onViewModeChange:m,sortKey:T,sortDirection:p,onSort:f,sortOptions:u,filters:h}=t;let g;e[0]!==u?(g=u===void 0?[]:u,e[0]=u,e[1]=g):g=e[1];const j=g;let b;e[2]!==h?(b=h===void 0?[]:h,e[2]=h,e[3]=b):b=e[3];const l=b;let v;e[4]!==l?(v=l.filter(J),e[4]=l,e[5]=v):v=e[5];const N=v.length;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(R,{size:16}),e[6]=w):w=e[6];let i;e[7]!==N?(i=N>0&&s.jsx(G,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[7]=N,e[8]=i):i=e[8];let o;e[9]!==i?(o=s.jsx(I,{asChild:!0,children:s.jsx(_,{asChild:!0,children:s.jsxs(V,{variant:"outline",size:"icon",className:"relative",children:[w,i]})})}),e[9]=i,e[10]=o):o=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(K,{children:"Display & filters"}),e[11]=C):C=e[11];let n;e[12]!==o?(n=s.jsx(P,{children:s.jsxs(W,{children:[o,C]})}),e[12]=o,e[13]=n):n=e[13];let a;e[14]!==m||e[15]!==r?(a=m&&r&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:r,onValueChange:m,fullWidth:!0,options:[{value:"table",icon:s.jsx(A,{})},{value:"cards",icon:s.jsx(F,{})}]})}),e[14]=m,e[15]=r,e[16]=a):a=e[16];let c;e[17]!==f||e[18]!==p||e[19]!==T||e[20]!==j?(c=j.length>0&&f&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:"Sort by"}),j.map(y=>{const D=T===y.id;return s.jsx(z,{onClick:()=>f(y.id),className:M("h-8 px-2 py-0 cursor-pointer",D&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[D&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!D&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:y.label}),D&&p&&(p==="asc"?s.jsx(L,{size:16,className:"text-foreground shrink-0"}):s.jsx(O,{size:16,className:"text-foreground shrink-0"}))]})},y.id)})]}),e[17]=f,e[18]=p,e[19]=T,e[20]=j,e[21]=c):c=e[21];let d;e[22]!==l?(d=l.map(H),e[22]=l,e[23]=d):d=e[23];let x;e[24]!==a||e[25]!==c||e[26]!==d?(x=s.jsxs($,{align:"end",className:"w-[200px] p-0 gap-0",children:[a,c,d]}),e[24]=a,e[25]=c,e[26]=d,e[27]=x):x=e[27];let k;return e[28]!==n||e[29]!==x?(k=s.jsxs(E,{children:[n,x]}),e[28]=n,e[29]=x,e[30]=k):k=e[30],k}function H(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const r=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:M("h-8 px-2 py-0 cursor-pointer",r&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[r&&s.jsx(S,{size:16,className:"text-foreground shrink-0"}),!r&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function J(t){return t.value!=="ALL"}export{te as C};
@@ -1 +1 @@
1
- import{e as v,c as b,j as n,l as w}from"./index-DCp7HEPF.js";import{i as C}from"./SearchMd-BBiHSx-2.js";function S(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,p=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const h=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?n.jsx(w,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):n.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==p||e[11]!==r||e[12]!==d?(o=n.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:p,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=p,e[11]=r,e[12]=d,e[13]=o):o=e[13];let a;e[14]!==s||e[15]!==l||e[16]!==o?(a=n.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=a):a=e[17];let c;return e[18]!==t||e[19]!==a?(c=n.jsx("div",{className:t,children:a}),e[18]=t,e[19]=a,e[20]=c):c=e[20],c}export{S as C};
1
+ import{e as v,c as b,j as n,l as w}from"./index-UC1l_H0T.js";import{i as C}from"./SearchMd-ItgHq67b.js";function S(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,p=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const h=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==h?(s=b("flex items-center gap-2.5 h-12 px-4",h),e[2]=h,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?n.jsx(w,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):n.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==p||e[11]!==r||e[12]!==d?(o=n.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:p,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=p,e[11]=r,e[12]=d,e[13]=o):o=e[13];let a;e[14]!==s||e[15]!==l||e[16]!==o?(a=n.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=a):a=e[17];let c;return e[18]!==t||e[19]!==a?(c=n.jsx("div",{className:t,children:a}),e[18]=t,e[19]=a,e[20]=c):c=e[20],c}export{S as C};
@@ -1 +1 @@
1
- import{e as k,j as s,c as C}from"./index-DCp7HEPF.js";import{e as S,d as R,a as T,T as H,b as L,c as z}from"./table-AeAUBYNy.js";import{i as D,n as E}from"./SwitchHorizontal01-BmYbPnsz.js";function I(y){const e=k.c(29),{columns:r,data:f,sortKey:x,sortDirection:u,onSort:i,onRowClick:n,rowClassName:c}=y;let p;e[0]!==u?(p=function(t,h){return s.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&u&&(u==="asc"?s.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):s.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=u,e[1]=p):p=e[1];const b=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===h-1&&(N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),N},e[2]=d):d=e[2];const a=d;let l;if(e[3]!==r||e[4]!==i||e[5]!==b||e[6]!==x){let o;e[8]!==r.length||e[9]!==i||e[10]!==b||e[11]!==x?(o=(t,h)=>{const N=x===t.id;return s.jsx(S,{className:C(a(h,r.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),onClick:t.sortable&&i?()=>i(t.id):void 0,children:s.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&b(t.id,N)]})},t.id)},e[8]=r.length,e[9]=i,e[10]=b,e[11]=x,e[12]=o):o=e[12],l=r.map(o),e[3]=r,e[4]=i,e[5]=b,e[6]=x,e[7]=l}else l=e[7];let g;e[13]!==l?(g=s.jsx(R,{className:"border-b-0",children:s.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:l})}),e[13]=l,e[14]=g):g=e[14];let j;if(e[15]!==r||e[16]!==f||e[17]!==n||e[18]!==c){let o;e[20]!==r||e[21]!==n||e[22]!==c?(o=(t,h)=>{const N=c?.(t);return s.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",n?"cursor-pointer":"",N),onClick:n?()=>n(t):void 0,children:r.map(m=>s.jsx(H,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:s.jsx("div",{className:C(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(t):m.accessor?m.accessor(t):null})},m.id))},h)},e[20]=r,e[21]=n,e[22]=c,e[23]=o):o=e[23],j=f.map(o),e[15]=r,e[16]=f,e[17]=n,e[18]=c,e[19]=j}else j=e[19];let w;e[24]!==j?(w=s.jsx(L,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==g||e[27]!==w?(v=s.jsxs(z,{className:"w-full border-collapse",children:[g,w]}),e[26]=g,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(12),{columns:r,data:f,isLoading:x,sortKey:u,sortDirection:i,onSort:n,onRowClick:c,emptyState:p}=y;if(x===void 0?!1:x){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-muted-foreground",children:"Loading..."})}),e[0]=a):a=e[0],a}if(f.length===0){let a;e[1]!==p?(a=p||s.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No items found"}),e[1]=p,e[2]=a):a=e[2];let l;return e[3]!==a?(l=s.jsx("div",{className:"flex items-center justify-center h-full",children:a}),e[3]=a,e[4]=l):l=e[4],l}let d;return e[5]!==r||e[6]!==f||e[7]!==c||e[8]!==n||e[9]!==i||e[10]!==u?(d=s.jsx("div",{className:"flex-1",children:s.jsx(I,{columns:r,data:f,sortKey:u,sortDirection:i,onSort:n,onRowClick:c})}),e[5]=r,e[6]=f,e[7]=c,e[8]=n,e[9]=i,e[10]=u,e[11]=d):d=e[11],d}export{B as C};
1
+ import{e as k,j as s,c as C}from"./index-UC1l_H0T.js";import{e as S,d as R,a as T,T as H,b as L,c as z}from"./table-D5j7pewX.js";import{i as D,n as E}from"./SwitchHorizontal01-Vb6nTk77.js";function I(y){const e=k.c(29),{columns:r,data:f,sortKey:x,sortDirection:u,onSort:i,onRowClick:n,rowClassName:c}=y;let p;e[0]!==u?(p=function(t,h){return s.jsx("div",{className:"w-4 flex items-center justify-center",children:h&&u&&(u==="asc"?s.jsx(D,{size:16,className:"text-muted-foreground transition-colors"}):s.jsx(E,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=u,e[1]=p):p=e[1];const b=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,h){let N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===h-1&&(N="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),N},e[2]=d):d=e[2];const a=d;let l;if(e[3]!==r||e[4]!==i||e[5]!==b||e[6]!==x){let o;e[8]!==r.length||e[9]!==i||e[10]!==b||e[11]!==x?(o=(t,h)=>{const N=x===t.id;return s.jsx(S,{className:C(a(h,r.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),onClick:t.sortable&&i?()=>i(t.id):void 0,children:s.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&b(t.id,N)]})},t.id)},e[8]=r.length,e[9]=i,e[10]=b,e[11]=x,e[12]=o):o=e[12],l=r.map(o),e[3]=r,e[4]=i,e[5]=b,e[6]=x,e[7]=l}else l=e[7];let g;e[13]!==l?(g=s.jsx(R,{className:"border-b-0",children:s.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:l})}),e[13]=l,e[14]=g):g=e[14];let j;if(e[15]!==r||e[16]!==f||e[17]!==n||e[18]!==c){let o;e[20]!==r||e[21]!==n||e[22]!==c?(o=(t,h)=>{const N=c?.(t);return s.jsx(T,{"data-row-index":h,className:C("group/data-row transition-colors border-b-0 hover:bg-accent/50",n?"cursor-pointer":"",N),onClick:n?()=>n(t):void 0,children:r.map(m=>s.jsx(H,{className:C("px-5 py-4 h-16 align-middle text-sm text-foreground",m.cellClassName,m.wrap?"whitespace-normal wrap-break-word":""),children:s.jsx("div",{className:C(m.wrap?"w-full":"min-w-0 w-full",!m.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:m.render?m.render(t):m.accessor?m.accessor(t):null})},m.id))},h)},e[20]=r,e[21]=n,e[22]=c,e[23]=o):o=e[23],j=f.map(o),e[15]=r,e[16]=f,e[17]=n,e[18]=c,e[19]=j}else j=e[19];let w;e[24]!==j?(w=s.jsx(L,{children:j}),e[24]=j,e[25]=w):w=e[25];let v;return e[26]!==g||e[27]!==w?(v=s.jsxs(z,{className:"w-full border-collapse",children:[g,w]}),e[26]=g,e[27]=w,e[28]=v):v=e[28],v}function B(y){const e=k.c(12),{columns:r,data:f,isLoading:x,sortKey:u,sortDirection:i,onSort:n,onRowClick:c,emptyState:p}=y;if(x===void 0?!1:x){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-muted-foreground",children:"Loading..."})}),e[0]=a):a=e[0],a}if(f.length===0){let a;e[1]!==p?(a=p||s.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No items found"}),e[1]=p,e[2]=a):a=e[2];let l;return e[3]!==a?(l=s.jsx("div",{className:"flex items-center justify-center h-full",children:a}),e[3]=a,e[4]=l):l=e[4],l}let d;return e[5]!==r||e[6]!==f||e[7]!==c||e[8]!==n||e[9]!==i||e[10]!==u?(d=s.jsx("div",{className:"flex-1",children:s.jsx(I,{columns:r,data:f,sortKey:u,sortDirection:i,onSort:n,onRowClick:c})}),e[5]=r,e[6]=f,e[7]=c,e[8]=n,e[9]=i,e[10]=u,e[11]=d):d=e[11],d}export{B as C};
@@ -1 +1 @@
1
- import{e as f,c as u,j as m}from"./index-DCp7HEPF.js";import{B as g}from"./badge-BmO5u7_s.js";function h(x){const e=f.c(12),{tabs:l,activeTab:n,onTabChange:s,className:a}=x;let t;e[0]!==a?(t=u("flex items-center gap-2 overflow-x-auto no-scrollbar",a),e[0]=a,e[1]=t):t=e[1];let r;if(e[2]!==n||e[3]!==s||e[4]!==l){let c;e[6]!==n||e[7]!==s?(c=o=>{const d=n===o.id;return m.jsxs("button",{type:"button",onClick:()=>s(o.id),className:u("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",d&&"bg-accent border-border text-foreground",!d&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[o.label,o.count!==void 0&&m.jsx(g,{variant:"secondary",className:u("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",d?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:o.count})]},o.id)},e[6]=n,e[7]=s,e[8]=c):c=e[8],r=l.map(c),e[2]=n,e[3]=s,e[4]=l,e[5]=r}else r=e[5];let i;return e[9]!==t||e[10]!==r?(i=m.jsx("div",{className:t,children:r}),e[9]=t,e[10]=r,e[11]=i):i=e[11],i}export{h as C};
1
+ import{e as f,c as u,j as m}from"./index-UC1l_H0T.js";import{B as g}from"./badge-BsmgKXBP.js";function h(x){const e=f.c(12),{tabs:l,activeTab:n,onTabChange:s,className:a}=x;let t;e[0]!==a?(t=u("flex items-center gap-2 overflow-x-auto no-scrollbar",a),e[0]=a,e[1]=t):t=e[1];let r;if(e[2]!==n||e[3]!==s||e[4]!==l){let c;e[6]!==n||e[7]!==s?(c=o=>{const d=n===o.id;return m.jsxs("button",{type:"button",onClick:()=>s(o.id),className:u("h-7 px-2 text-sm rounded-lg border border-input transition-colors inline-flex gap-1.5 items-center",d&&"bg-accent border-border text-foreground",!d&&"bg-transparent text-muted-foreground hover:border-border hover:bg-accent/50 hover:text-foreground"),children:[o.label,o.count!==void 0&&m.jsx(g,{variant:"secondary",className:u("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",d?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:o.count})]},o.id)},e[6]=n,e[7]=s,e[8]=c):c=e[8],r=l.map(c),e[2]=n,e[3]=s,e[4]=l,e[5]=r}else r=e[5];let i;return e[9]!==t||e[10]!==r?(i=m.jsx("div",{className:t,children:r}),e[9]=t,e[10]=r,e[11]=i):i=e[11],i}export{h as C};
@@ -1 +1 @@
1
- import{M as t,Q as i,b3 as p,aG as r,aF as a,cf as m,bJ as h,P as c,aI as b}from"./index-DCp7HEPF.js";const N=t({id:i().describe("Unique identifier for the entity"),title:i().describe("Human-readable title for the entity"),description:i().nullish().describe("Description of the entity"),created_at:i().datetime(),updated_at:i().datetime(),created_by:i().optional(),updated_by:i().optional()}),f=t({field:a(i()),operator:r(["eq","gt","gte","lt","lte","in","like","contains"]),value:p()}),u=m(()=>h([f,t({operator:r(["and","or","not"]),conditions:a(u)})])),C=t({field:a(i()),direction:r(["asc","desc"]),nulls:r(["first","last"]).optional()}),S=t({where:u.optional().describe("Filter expression"),orderBy:a(C).optional().describe("Sort expressions"),limit:c().int().min(1).max(1e3).optional().describe("Maximum number of items to return"),offset:c().int().min(0).optional().describe("Number of items to skip")});function O(e){return t({items:a(e).describe("Array of collection items"),totalCount:c().int().min(0).optional().describe("Total number of matching items (if available)"),hasMore:b().optional().describe("Whether there are more items available")})}const I=t({id:i().describe("ID of the entity to retrieve")});function y(e){return t({item:e.nullable().describe("The retrieved item, or null if not found")})}function E(e){return t({data:e.partial().describe("Data for the new entity (id may be auto-generated)")})}function T(e){return t({item:e.describe("The created entity with generated id")})}function _(e){return t({id:i().describe("ID of the entity to update"),data:e.partial().describe("Partial entity data to update")})}function L(e){return t({item:e.describe("The updated entity")})}const D=t({id:i().describe("ID of the entity to delete")});function g(e){return t({item:e.describe("The deleted entity")})}function v(e,n,l){const o=e.toUpperCase(),d=l?.readOnly??!1,s=[{name:`COLLECTION_${o}_LIST`,inputSchema:S,outputSchema:O(n)},{name:`COLLECTION_${o}_GET`,inputSchema:I,outputSchema:y(n)}];return d||s.push({name:`COLLECTION_${o}_CREATE`,inputSchema:E(n),outputSchema:T(n),opt:!0},{name:`COLLECTION_${o}_UPDATE`,inputSchema:_(n),outputSchema:L(n),opt:!0},{name:`COLLECTION_${o}_DELETE`,inputSchema:D,outputSchema:g(n),opt:!0}),s}export{N as B,v as c};
1
+ import{M as t,Q as i,b3 as p,aG as r,aF as a,cf as m,bJ as h,P as c,aI as b}from"./index-UC1l_H0T.js";const N=t({id:i().describe("Unique identifier for the entity"),title:i().describe("Human-readable title for the entity"),description:i().nullish().describe("Description of the entity"),created_at:i().datetime(),updated_at:i().datetime(),created_by:i().optional(),updated_by:i().optional()}),f=t({field:a(i()),operator:r(["eq","gt","gte","lt","lte","in","like","contains"]),value:p()}),u=m(()=>h([f,t({operator:r(["and","or","not"]),conditions:a(u)})])),C=t({field:a(i()),direction:r(["asc","desc"]),nulls:r(["first","last"]).optional()}),S=t({where:u.optional().describe("Filter expression"),orderBy:a(C).optional().describe("Sort expressions"),limit:c().int().min(1).max(1e3).optional().describe("Maximum number of items to return"),offset:c().int().min(0).optional().describe("Number of items to skip")});function O(e){return t({items:a(e).describe("Array of collection items"),totalCount:c().int().min(0).optional().describe("Total number of matching items (if available)"),hasMore:b().optional().describe("Whether there are more items available")})}const I=t({id:i().describe("ID of the entity to retrieve")});function y(e){return t({item:e.nullable().describe("The retrieved item, or null if not found")})}function E(e){return t({data:e.partial().describe("Data for the new entity (id may be auto-generated)")})}function T(e){return t({item:e.describe("The created entity with generated id")})}function _(e){return t({id:i().describe("ID of the entity to update"),data:e.partial().describe("Partial entity data to update")})}function L(e){return t({item:e.describe("The updated entity")})}const D=t({id:i().describe("ID of the entity to delete")});function g(e){return t({item:e.describe("The deleted entity")})}function v(e,n,l){const o=e.toUpperCase(),d=l?.readOnly??!1,s=[{name:`COLLECTION_${o}_LIST`,inputSchema:S,outputSchema:O(n)},{name:`COLLECTION_${o}_GET`,inputSchema:I,outputSchema:y(n)}];return d||s.push({name:`COLLECTION_${o}_CREATE`,inputSchema:E(n),outputSchema:T(n),opt:!0},{name:`COLLECTION_${o}_UPDATE`,inputSchema:_(n),outputSchema:L(n),opt:!0},{name:`COLLECTION_${o}_DELETE`,inputSchema:D,outputSchema:g(n),opt:!0}),s}export{N as B,v as c};
@@ -1 +1 @@
1
- import{e as d,c as i,j as n}from"./index-DCp7HEPF.js";import{_ as m}from"./index-ByaHk_g4.js";import{b as k,d as N,e as j,c as b,a as w}from"./dialog-BXAoEbia.js";import{i as y}from"./SearchMd-BBiHSx-2.js";function C(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function S(a){const e=d.c(24);let t,s,o,l,r;e[0]!==a?({title:l,description:r,children:t,className:s,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5]);const _=l===void 0?"Command Palette":l,v=r===void 0?"Search for a command to run...":r;let c;e[6]!==_?(c=n.jsx(N,{children:_}),e[6]=_,e[7]=c):c=e[7];let p;e[8]!==v?(p=n.jsx(j,{children:v}),e[8]=v,e[9]=p):p=e[9];let u;e[10]!==c||e[11]!==p?(u=n.jsxs(b,{className:"sr-only",children:[c,p]}),e[10]=c,e[11]=p,e[12]=u):u=e[12];let f;e[13]!==s?(f=i("overflow-hidden p-0",s),e[13]=s,e[14]=f):f=e[14];let x;e[15]!==t?(x=n.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[15]=t,e[16]=x):x=e[16];let g;e[17]!==f||e[18]!==x?(g=n.jsx(w,{className:f,closeButtonClassName:"hidden",children:x}),e[17]=f,e[18]=x,e[19]=g):g=e[19];let h;return e[20]!==o||e[21]!==u||e[22]!==g?(h=n.jsxs(k,{...o,children:[u,g]}),e[20]=o,e[21]=u,e[22]=g,e[23]=h):h=e[23],h}function z(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(y,{className:"size-5 shrink-0 text-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function G(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{R as C,H as a,B as b,z as c,L as d,G as e,C as f,S as g};
1
+ import{e as d,c as i,j as n}from"./index-UC1l_H0T.js";import{_ as m}from"./index-BkFXYyEN.js";import{b as k,d as N,e as j,c as b,a as w}from"./dialog-0ciXFW-Z.js";import{i as y}from"./SearchMd-ItgHq67b.js";function C(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function S(a){const e=d.c(24);let t,s,o,l,r;e[0]!==a?({title:l,description:r,children:t,className:s,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=r):(t=e[1],s=e[2],o=e[3],l=e[4],r=e[5]);const _=l===void 0?"Command Palette":l,v=r===void 0?"Search for a command to run...":r;let c;e[6]!==_?(c=n.jsx(N,{children:_}),e[6]=_,e[7]=c):c=e[7];let p;e[8]!==v?(p=n.jsx(j,{children:v}),e[8]=v,e[9]=p):p=e[9];let u;e[10]!==c||e[11]!==p?(u=n.jsxs(b,{className:"sr-only",children:[c,p]}),e[10]=c,e[11]=p,e[12]=u):u=e[12];let f;e[13]!==s?(f=i("overflow-hidden p-0",s),e[13]=s,e[14]=f):f=e[14];let x;e[15]!==t?(x=n.jsx(C,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t}),e[15]=t,e[16]=x):x=e[16];let g;e[17]!==f||e[18]!==x?(g=n.jsx(w,{className:f,closeButtonClassName:"hidden",children:x}),e[17]=f,e[18]=x,e[19]=g):g=e[19];let h;return e[20]!==o||e[21]!==u||e[22]!==g?(h=n.jsxs(k,{...o,children:[u,g]}),e[20]=o,e[21]=u,e[22]=g,e[23]=h):h=e[23],h}function z(a){const e=d.c(9);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx(y,{className:"size-5 shrink-0 text-foreground"}),e[3]=o):o=e[3];let l;e[4]!==t?(l=i("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),e[4]=t,e[5]=l):l=e[5];let r;return e[6]!==s||e[7]!==l?(r=n.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-10 items-center gap-2 border-b px-3",children:[o,n.jsx(m.Input,{"data-slot":"command-input",className:l,...s})]}),e[6]=s,e[7]=l,e[8]=r):r=e[8],r}function G(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=d.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=n.jsx(m.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function R(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function B(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function H(a){const e=d.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=i("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=n.jsx(m.Item,{"data-slot":"command-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}export{L as C,H as a,z as b,G as c,C as d,R as e,B as f,S as g};
@@ -1 +1 @@
1
- import{e as k,q as I,K as b,n as N,r as T,j as i,B as L}from"./index-DCp7HEPF.js";import{d as S,e as y,c as D,a as E,b as v}from"./dialog-BXAoEbia.js";import{S as A}from"./spinner-DvoeSjuB.js";import{i as P}from"./Check-Cgs_Ieiz.js";import{a as _}from"./RefreshCcw01-VWfVcJ_k.js";import{S as w,u as R}from"./constants-BWDiAmgI.js";import{u as B}from"./unwrap-tool-result-BYXdCQMg.js";const h={online:!1,capabilities:[]};function F(){const s=k.c(10),{org:e}=I();let o;s[0]!==e.id||s[1]!==e.slug?(o={connectionId:w,orgId:e.id,orgSlug:e.slug},s[0]=e.id,s[1]=e.slug,s[2]=o):o=s[2];const a=R(o);let t;s[3]!==e.id?(t=b.currentLink(e.id),s[3]=e.id,s[4]=t):t=s[4];let n;s[5]!==a?(n=async()=>{const l=await a.callTool({name:"LINK_CURRENT_GET",arguments:{}});return B(l)??h},s[5]=a,s[6]=n):n=s[6];let r;s[7]!==t||s[8]!==n?(r={queryKey:t,queryFn:n,staleTime:1e4,refetchInterval:15e3,refetchOnWindowFocus:!0},s[7]=t,s[8]=n,s[9]=r):r=s[9];const{data:x}=N(r);return x??h}const j="bunx decocms link",z={"claude-code":"Claude Code",codex:"Codex"};function C(s){return s.map(e=>z[e]).filter(e=>!!e)}function G(s){const e=k.c(23),{open:o,onOpenChange:a}=s,t=F(),[n,r]=T.useState(!1),x=t.online?"Desktop connected":"Connect your desktop";let l;e[0]!==x?(l=i.jsx(S,{children:x}),e[0]=x,e[1]=l):l=e[1];const g=t.online?"Your desktop is online. Pick a desktop agent in the chat to use it.":"Run this command in your desktop terminal. The dialog will close once your desktop is online.";let c;e[2]!==g?(c=i.jsx(y,{children:g}),e[2]=g,e[3]=c):c=e[3];let d;e[4]!==l||e[5]!==c?(d=i.jsxs(D,{children:[l,c]}),e[4]=l,e[5]=c,e[6]=d):d=e[6];let m;e[7]!==n||e[8]!==t.online?(m=!t.online&&i.jsxs("div",{className:"flex items-center gap-2 rounded-md bg-muted px-3 py-2 font-mono text-sm",children:[i.jsx("span",{className:"flex-1",children:j}),i.jsx(L,{type:"button",variant:"ghost",size:"icon-sm",onClick:()=>{navigator.clipboard.writeText(j),r(!0),setTimeout(()=>r(!1),1500)},children:n?i.jsx(P,{size:14}):i.jsx(_,{size:14})})]}),e[7]=n,e[8]=t.online,e[9]=m):m=e[9];let u;e[10]!==t.capabilities||e[11]!==t.hostname||e[12]!==t.machineId||e[13]!==t.online?(u=t.online?i.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[i.jsxs("p",{className:"text-foreground",children:[t.hostname??t.machineId??"Your desktop"," is linked."]}),C(t.capabilities).length>0&&i.jsxs("p",{className:"text-muted-foreground",children:["Available: ",C(t.capabilities).join(", ")]})]}):i.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[i.jsx(A,{size:"sm"}),"Waiting for desktop…"]}),e[10]=t.capabilities,e[11]=t.hostname,e[12]=t.machineId,e[13]=t.online,e[14]=u):u=e[14];let p;e[15]!==d||e[16]!==m||e[17]!==u?(p=i.jsxs(E,{className:"sm:max-w-md",children:[d,m,u]}),e[15]=d,e[16]=m,e[17]=u,e[18]=p):p=e[18];let f;return e[19]!==a||e[20]!==o||e[21]!==p?(f=i.jsx(v,{open:o,onOpenChange:a,children:p}),e[19]=a,e[20]=o,e[21]=p,e[22]=f):f=e[22],f}export{G as C,F as u,C as v};
1
+ import{e as k,q as I,K as b,n as N,r as T,j as i,B as L}from"./index-UC1l_H0T.js";import{d as S,e as y,c as D,a as E,b as v}from"./dialog-0ciXFW-Z.js";import{S as A}from"./spinner-BwiMhd03.js";import{i as P}from"./Check-B-Snf346.js";import{a as _}from"./RefreshCcw01-C_M5ucZA.js";import{S as w,u as R}from"./constants-Cs7fB5Fz.js";import{u as B}from"./unwrap-tool-result-BYXdCQMg.js";const h={online:!1,capabilities:[]};function F(){const s=k.c(10),{org:e}=I();let o;s[0]!==e.id||s[1]!==e.slug?(o={connectionId:w,orgId:e.id,orgSlug:e.slug},s[0]=e.id,s[1]=e.slug,s[2]=o):o=s[2];const a=R(o);let t;s[3]!==e.id?(t=b.currentLink(e.id),s[3]=e.id,s[4]=t):t=s[4];let n;s[5]!==a?(n=async()=>{const l=await a.callTool({name:"LINK_CURRENT_GET",arguments:{}});return B(l)??h},s[5]=a,s[6]=n):n=s[6];let r;s[7]!==t||s[8]!==n?(r={queryKey:t,queryFn:n,staleTime:1e4,refetchInterval:15e3,refetchOnWindowFocus:!0},s[7]=t,s[8]=n,s[9]=r):r=s[9];const{data:x}=N(r);return x??h}const j="bunx decocms link",z={"claude-code":"Claude Code",codex:"Codex"};function C(s){return s.map(e=>z[e]).filter(e=>!!e)}function G(s){const e=k.c(23),{open:o,onOpenChange:a}=s,t=F(),[n,r]=T.useState(!1),x=t.online?"Desktop connected":"Connect your desktop";let l;e[0]!==x?(l=i.jsx(S,{children:x}),e[0]=x,e[1]=l):l=e[1];const g=t.online?"Your desktop is online. Pick a desktop agent in the chat to use it.":"Run this command in your desktop terminal. The dialog will close once your desktop is online.";let c;e[2]!==g?(c=i.jsx(y,{children:g}),e[2]=g,e[3]=c):c=e[3];let d;e[4]!==l||e[5]!==c?(d=i.jsxs(D,{children:[l,c]}),e[4]=l,e[5]=c,e[6]=d):d=e[6];let m;e[7]!==n||e[8]!==t.online?(m=!t.online&&i.jsxs("div",{className:"flex items-center gap-2 rounded-md bg-muted px-3 py-2 font-mono text-sm",children:[i.jsx("span",{className:"flex-1",children:j}),i.jsx(L,{type:"button",variant:"ghost",size:"icon-sm",onClick:()=>{navigator.clipboard.writeText(j),r(!0),setTimeout(()=>r(!1),1500)},children:n?i.jsx(P,{size:14}):i.jsx(_,{size:14})})]}),e[7]=n,e[8]=t.online,e[9]=m):m=e[9];let u;e[10]!==t.capabilities||e[11]!==t.hostname||e[12]!==t.machineId||e[13]!==t.online?(u=t.online?i.jsxs("div",{className:"flex flex-col gap-1 text-sm",children:[i.jsxs("p",{className:"text-foreground",children:[t.hostname??t.machineId??"Your desktop"," is linked."]}),C(t.capabilities).length>0&&i.jsxs("p",{className:"text-muted-foreground",children:["Available: ",C(t.capabilities).join(", ")]})]}):i.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[i.jsx(A,{size:"sm"}),"Waiting for desktop…"]}),e[10]=t.capabilities,e[11]=t.hostname,e[12]=t.machineId,e[13]=t.online,e[14]=u):u=e[14];let p;e[15]!==d||e[16]!==m||e[17]!==u?(p=i.jsxs(E,{className:"sm:max-w-md",children:[d,m,u]}),e[15]=d,e[16]=m,e[17]=u,e[18]=p):p=e[18];let f;return e[19]!==a||e[20]!==o||e[21]!==p?(f=i.jsx(v,{open:o,onOpenChange:a,children:p}),e[19]=a,e[20]=o,e[21]=p,e[22]=f):f=e[22],f}export{G as C,F as u,C as v};
@@ -1 +1 @@
1
- import{g as _}from"./connection-slug-eyAPH6o3.js";import{e as R,q as $,b2 as k,K as D,c as E,j as x}from"./index-DCp7HEPF.js";import{u as K}from"./use-registry-connections-BD6K2lOq.js";import{b as Q}from"./use-organization-settings-BrhMCOo5.js";import{S as w,c as q}from"./constants-BWDiAmgI.js";import{u as F}from"./useInfiniteQuery-DD7euD4X.js";import{i as H,f as G}from"./extract-connection-data-Cu2-kqzT.js";import{C as U}from"./card-BWW6R_6X.js";import{I as V}from"./integration-icon-DM6HURzh.js";function ae(s){const e=new Map;for(const o of s){const l=_(o),r=e.get(l);r?r.push(o):e.set(l,[o])}const t=[],u=new Set;for(const o of s){const l=_(o);if(u.has(l))continue;u.add(l);const r=e.get(l),m=r[0];r.length===1?t.push({type:"single",connection:m}):t.push({type:"group",key:l,icon:m.icon,title:m.app_name?m.title.replace(/\s*\(\d+\)\s*$/,""):m.title,connections:r})}return t}function ce(){const s=R.c(6),e=K(),t=Q(),u=$().project.enabledPlugins??[];let o;if(s[0]!==u||s[1]!==t||s[2]!==e){let l;s[4]!==t?(l=r=>t(r.id),s[4]=t,s[5]=l):l=s[5],o=e.filter(l).map(X),u.includes("private-registry")&&t(w)&&o.push({id:w,title:"Private Registry",icon:null}),s[0]=u,s[1]=t,s[2]=e,s[3]=o}else o=s[3];return o}function X(s){return{id:s.id,title:s.title,icon:s.icon}}const Y=24,S=3;function A(s){return s.id.includes("community-registry")}function z(s){const e=s?.trim();if(e)return{operator:"or",conditions:[{field:["title"],operator:"contains",value:e},{field:["description"],operator:"contains",value:e},{field:["name"],operator:"contains",value:e},{field:["server","title"],operator:"contains",value:e}]}}function T(s,e,t,u,o){const l=s.map(c=>c.id).sort().join(","),r=z(o),{data:m,fetchNextPage:d,hasNextPage:f,isFetchingNextPage:p,isLoading:b}=F({queryKey:D.storeDiscovery(e,`${l}:${o??""}`),queryFn:async({pageParam:c})=>{const n=c??{};return await Promise.all(s.map(async i=>{const y=n[i.id];if(y==="EXHAUSTED")return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]};const j=H(i.id,e);let h;for(let v=0;v<S;v++){let C=null;try{C=await q({connectionId:i.id,orgId:e,orgSlug:t});const I={limit:Y};y&&(I.cursor=y),r&&(I.where=r);const P=await C.callTool({name:j,arguments:I}),N=P.structuredContent??P,M=N.nextCursor||N.cursor||void 0,L=G(N?[N]:[]);return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:L,nextCursor:M}}catch(I){h=I}finally{await C?.close().catch(()=>{})}}return console.warn(`[useMergedStoreDiscovery] Registry "${i.title}" (${i.id}) failed after ${S} attempts:`,h),{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]}}))},initialPageParam:{},getNextPageParam:c=>{const n={};let a=!1;for(const i of c)i.registryId&&(i.nextCursor?(n[i.registryId]=i.nextCursor,a=!0):n[i.registryId]="EXHAUSTED");return a?n:void 0},staleTime:3600*1e3,placeholderData:k,retry:!1,enabled:s.length>0}),g=[];if(m?.pages)for(const c of m.pages)for(const n of c)for(const a of n.items)g.push({...a,_sourceName:a._sourceName??n.registryTitle,_sourceIcon:a._sourceIcon??n.registryIcon,_registryId:a._registryId??n.registryId});return{items:g,hasMore:f??!1,isLoadingMore:p,isInitialLoading:b,fetchNextPage:()=>{f&&!p&&d()}}}function ue(s,e){const t=R.c(16),{org:u}=$();let o;t[0]!==s?(o=s.filter(Z),t[0]=s,t[1]=o):o=t[1];const l=o;let r;t[2]!==s?(r=s.filter(W),t[2]=s,t[3]=r):r=t[3];const m=r,d=T(l,u.id,u.slug,!0,e),f=T(m,u.id,u.slug,!0,e);let p;if(t[4]!==f.items||t[5]!==d.items){const y=new Set;p=[];const j=[...d.items,...f.items];for(const h of j){const v=`${h._registryId}:${h.id}`;y.has(v)||(y.add(v),p.push(h))}t[4]=f.items,t[5]=d.items,t[6]=p}else p=t[6];const b=d.isInitialLoading||f.isInitialLoading,g=d.isLoadingMore||f.isLoadingMore,c=d.hasMore||f.hasMore;let n;t[7]!==f||t[8]!==d?(n=()=>{d.hasMore&&d.fetchNextPage(),f.hasMore&&f.fetchNextPage()},t[7]=f,t[8]=d,t[9]=n):n=t[9];const a=n;let i;return t[10]!==c||t[11]!==b||t[12]!==g||t[13]!==p||t[14]!==a?(i={items:p,hasMore:c,isLoadingMore:g,isInitialLoading:b,loadMore:a},t[10]=c,t[11]=b,t[12]=g,t[13]=p,t[14]=a,t[15]=i):i=t[15],i}function W(s){return A(s)}function Z(s){return!A(s)}function fe(s){const e=R.c(37),{connection:t,onClick:u,headerActions:o,headerActionsAlwaysVisible:l,body:r,footer:m,className:d,fallbackIcon:f}=s,p=l===void 0?!1:l,b=u&&"hover:bg-muted/50";let g;e[0]!==d||e[1]!==b?(g=E("cursor-pointer transition-colors group overflow-hidden flex flex-col h-full",b,d),e[0]=d,e[1]=b,e[2]=g):g=e[2];let c;e[3]!==t.icon||e[4]!==t.title||e[5]!==f?(c=x.jsx(V,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[3]=t.icon,e[4]=t.title,e[5]=f,e[6]=c):c=e[6];let n;e[7]!==o||e[8]!==p?(n=o&&x.jsx("div",{className:E("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100"),onClick:J,children:o}),e[7]=o,e[8]=p,e[9]=n):n=e[9];let a;e[10]!==n?(a=x.jsx("div",{className:"relative",children:n}),e[10]=n,e[11]=a):a=e[11];let i;e[12]!==c||e[13]!==a?(i=x.jsxs("div",{className:"flex items-start justify-between",children:[c,a]}),e[12]=c,e[13]=a,e[14]=i):i=e[14];let y;e[15]!==t.title?(y=x.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:t.title}),e[15]=t.title,e[16]=y):y=e[16];const j=t.description||"No description";let h;e[17]!==j?(h=x.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:j}),e[17]=j,e[18]=h):h=e[18];let v;e[19]!==h||e[20]!==y?(v=x.jsxs("div",{className:"flex flex-col gap-1",children:[y,h]}),e[19]=h,e[20]=y,e[21]=v):v=e[21];let C;e[22]!==r?(C=r&&x.jsx("div",{children:r}),e[22]=r,e[23]=C):C=e[23];let I;e[24]!==v||e[25]!==C||e[26]!==i?(I=x.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[i,v,C]}),e[24]=v,e[25]=C,e[26]=i,e[27]=I):I=e[27];let P;e[28]!==m?(P=m&&x.jsx("div",{className:"border-t border-border mt-auto",children:x.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:B,children:m})}),e[28]=m,e[29]=P):P=e[29];let N;e[30]!==I||e[31]!==P?(N=x.jsxs("div",{className:"flex flex-col flex-1",children:[I,P]}),e[30]=I,e[31]=P,e[32]=N):N=e[32];let M;return e[33]!==u||e[34]!==N||e[35]!==g?(M=x.jsx(U,{className:g,onClick:u,children:N}),e[33]=u,e[34]=N,e[35]=g,e[36]=M):M=e[36],M}function B(s){return s.stopPropagation()}function J(s){return s.stopPropagation()}export{fe as C,ue as a,ae as g,ce as u};
1
+ import{g as _}from"./connection-slug-eyAPH6o3.js";import{e as R,q as $,b2 as k,K as D,c as E,j as x}from"./index-UC1l_H0T.js";import{u as K}from"./use-registry-connections-XMNP50oa.js";import{b as Q}from"./use-organization-settings-zgxousJq.js";import{S as w,c as q}from"./constants-Cs7fB5Fz.js";import{u as F}from"./useInfiniteQuery-EQnbj896.js";import{i as H,f as G}from"./extract-connection-data-BifWZIpC.js";import{C as U}from"./card-BIluY4Aq.js";import{I as V}from"./integration-icon-CFCAsXBi.js";function ae(s){const e=new Map;for(const o of s){const l=_(o),r=e.get(l);r?r.push(o):e.set(l,[o])}const t=[],u=new Set;for(const o of s){const l=_(o);if(u.has(l))continue;u.add(l);const r=e.get(l),m=r[0];r.length===1?t.push({type:"single",connection:m}):t.push({type:"group",key:l,icon:m.icon,title:m.app_name?m.title.replace(/\s*\(\d+\)\s*$/,""):m.title,connections:r})}return t}function ce(){const s=R.c(6),e=K(),t=Q(),u=$().project.enabledPlugins??[];let o;if(s[0]!==u||s[1]!==t||s[2]!==e){let l;s[4]!==t?(l=r=>t(r.id),s[4]=t,s[5]=l):l=s[5],o=e.filter(l).map(X),u.includes("private-registry")&&t(w)&&o.push({id:w,title:"Private Registry",icon:null}),s[0]=u,s[1]=t,s[2]=e,s[3]=o}else o=s[3];return o}function X(s){return{id:s.id,title:s.title,icon:s.icon}}const Y=24,S=3;function A(s){return s.id.includes("community-registry")}function z(s){const e=s?.trim();if(e)return{operator:"or",conditions:[{field:["title"],operator:"contains",value:e},{field:["description"],operator:"contains",value:e},{field:["name"],operator:"contains",value:e},{field:["server","title"],operator:"contains",value:e}]}}function T(s,e,t,u,o){const l=s.map(c=>c.id).sort().join(","),r=z(o),{data:m,fetchNextPage:d,hasNextPage:f,isFetchingNextPage:p,isLoading:b}=F({queryKey:D.storeDiscovery(e,`${l}:${o??""}`),queryFn:async({pageParam:c})=>{const n=c??{};return await Promise.all(s.map(async i=>{const y=n[i.id];if(y==="EXHAUSTED")return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]};const j=H(i.id,e);let h;for(let v=0;v<S;v++){let C=null;try{C=await q({connectionId:i.id,orgId:e,orgSlug:t});const I={limit:Y};y&&(I.cursor=y),r&&(I.where=r);const P=await C.callTool({name:j,arguments:I}),N=P.structuredContent??P,M=N.nextCursor||N.cursor||void 0,L=G(N?[N]:[]);return{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:L,nextCursor:M}}catch(I){h=I}finally{await C?.close().catch(()=>{})}}return console.warn(`[useMergedStoreDiscovery] Registry "${i.title}" (${i.id}) failed after ${S} attempts:`,h),{registryId:i.id,registryTitle:i.title,registryIcon:i.icon,items:[]}}))},initialPageParam:{},getNextPageParam:c=>{const n={};let a=!1;for(const i of c)i.registryId&&(i.nextCursor?(n[i.registryId]=i.nextCursor,a=!0):n[i.registryId]="EXHAUSTED");return a?n:void 0},staleTime:3600*1e3,placeholderData:k,retry:!1,enabled:s.length>0}),g=[];if(m?.pages)for(const c of m.pages)for(const n of c)for(const a of n.items)g.push({...a,_sourceName:a._sourceName??n.registryTitle,_sourceIcon:a._sourceIcon??n.registryIcon,_registryId:a._registryId??n.registryId});return{items:g,hasMore:f??!1,isLoadingMore:p,isInitialLoading:b,fetchNextPage:()=>{f&&!p&&d()}}}function ue(s,e){const t=R.c(16),{org:u}=$();let o;t[0]!==s?(o=s.filter(Z),t[0]=s,t[1]=o):o=t[1];const l=o;let r;t[2]!==s?(r=s.filter(W),t[2]=s,t[3]=r):r=t[3];const m=r,d=T(l,u.id,u.slug,!0,e),f=T(m,u.id,u.slug,!0,e);let p;if(t[4]!==f.items||t[5]!==d.items){const y=new Set;p=[];const j=[...d.items,...f.items];for(const h of j){const v=`${h._registryId}:${h.id}`;y.has(v)||(y.add(v),p.push(h))}t[4]=f.items,t[5]=d.items,t[6]=p}else p=t[6];const b=d.isInitialLoading||f.isInitialLoading,g=d.isLoadingMore||f.isLoadingMore,c=d.hasMore||f.hasMore;let n;t[7]!==f||t[8]!==d?(n=()=>{d.hasMore&&d.fetchNextPage(),f.hasMore&&f.fetchNextPage()},t[7]=f,t[8]=d,t[9]=n):n=t[9];const a=n;let i;return t[10]!==c||t[11]!==b||t[12]!==g||t[13]!==p||t[14]!==a?(i={items:p,hasMore:c,isLoadingMore:g,isInitialLoading:b,loadMore:a},t[10]=c,t[11]=b,t[12]=g,t[13]=p,t[14]=a,t[15]=i):i=t[15],i}function W(s){return A(s)}function Z(s){return!A(s)}function fe(s){const e=R.c(37),{connection:t,onClick:u,headerActions:o,headerActionsAlwaysVisible:l,body:r,footer:m,className:d,fallbackIcon:f}=s,p=l===void 0?!1:l,b=u&&"hover:bg-muted/50";let g;e[0]!==d||e[1]!==b?(g=E("cursor-pointer transition-colors group overflow-hidden flex flex-col h-full",b,d),e[0]=d,e[1]=b,e[2]=g):g=e[2];let c;e[3]!==t.icon||e[4]!==t.title||e[5]!==f?(c=x.jsx(V,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:f}),e[3]=t.icon,e[4]=t.title,e[5]=f,e[6]=c):c=e[6];let n;e[7]!==o||e[8]!==p?(n=o&&x.jsx("div",{className:E("transition-opacity",!p&&"sm:opacity-0 sm:group-hover:opacity-100"),onClick:J,children:o}),e[7]=o,e[8]=p,e[9]=n):n=e[9];let a;e[10]!==n?(a=x.jsx("div",{className:"relative",children:n}),e[10]=n,e[11]=a):a=e[11];let i;e[12]!==c||e[13]!==a?(i=x.jsxs("div",{className:"flex items-start justify-between",children:[c,a]}),e[12]=c,e[13]=a,e[14]=i):i=e[14];let y;e[15]!==t.title?(y=x.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:t.title}),e[15]=t.title,e[16]=y):y=e[16];const j=t.description||"No description";let h;e[17]!==j?(h=x.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:j}),e[17]=j,e[18]=h):h=e[18];let v;e[19]!==h||e[20]!==y?(v=x.jsxs("div",{className:"flex flex-col gap-1",children:[y,h]}),e[19]=h,e[20]=y,e[21]=v):v=e[21];let C;e[22]!==r?(C=r&&x.jsx("div",{children:r}),e[22]=r,e[23]=C):C=e[23];let I;e[24]!==v||e[25]!==C||e[26]!==i?(I=x.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[i,v,C]}),e[24]=v,e[25]=C,e[26]=i,e[27]=I):I=e[27];let P;e[28]!==m?(P=m&&x.jsx("div",{className:"border-t border-border mt-auto",children:x.jsx("div",{className:"h-14 flex items-center p-4.5",onClick:B,children:m})}),e[28]=m,e[29]=P):P=e[29];let N;e[30]!==I||e[31]!==P?(N=x.jsxs("div",{className:"flex flex-col flex-1",children:[I,P]}),e[30]=I,e[31]=P,e[32]=N):N=e[32];let M;return e[33]!==u||e[34]!==N||e[35]!==g?(M=x.jsx(U,{className:g,onClick:u,children:N}),e[33]=u,e[34]=N,e[35]=g,e[36]=M):M=e[36],M}function B(s){return s.stopPropagation()}function J(s){return s.stopPropagation()}export{fe as C,ue as a,ae as g,ce as u};