decocms 3.30.1 → 3.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/dist/client/assets/{AlertCircle-BQLR7I4E.js → AlertCircle-CNjNg2wb.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-DSaWSvAP.js → ArrowUpRight-7-SM74wR.js} +1 -1
  3. package/dist/client/assets/{Check-DCDpfG7m.js → Check-CkY-NLLZ.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-BBK-3Pzt.js → CheckCircle-DYKqL__C.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BD0G-h2k.js → ChevronDown-B8XrNXeE.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-DtP_Ayjz.js → ChevronLeft-B6gErU0k.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-DUzhuedZ.js → ChevronRight-BJRYs8bt.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-D5M0geM5.js → ChevronUp-CgxnjYlU.js} +1 -1
  9. package/dist/client/assets/{Container-Catp9d2q.js → Container-Dt-ev6Gi.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-Dok1GVxI.js → DotsVertical-BwZzHCbU.js} +1 -1
  11. package/dist/client/assets/{Eye-Dmik5hYP.js → Eye-Co-ItdFE.js} +1 -1
  12. package/dist/client/assets/{FilterLines-C37LaXJ1.js → FilterLines-DwPmuK2v.js} +1 -1
  13. package/dist/client/assets/{Globe01-D1c-3J9t.js → Globe01-BnLBFtky.js} +1 -1
  14. package/dist/client/assets/{HardDrive-C1vRZoAn.js → HardDrive-DmPQQU2w.js} +1 -1
  15. package/dist/client/assets/{Key01-CdveS1HN.js → Key01-BuFH2ztD.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-Bfxz6P9F.js → LayoutLeft-DOdRMzln.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-CxEkPs1F.js → LinkExternal01-ZepkFy5p.js} +1 -1
  18. package/dist/client/assets/{Monitor01-Bkoa3Nbe.js → Monitor01-5IIvvy6H.js} +1 -1
  19. package/dist/client/assets/{Palette-C74Da44y.js → Palette-Cu3PTFf5.js} +1 -1
  20. package/dist/client/assets/{Play-BERjgeke.js → Play-4vubxqND.js} +1 -1
  21. package/dist/client/assets/{Plus-CdvauR8B.js → Plus-DrYyBDmj.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-4ELQWtuB.js → RefreshCcw01-eSV0Gr10.js} +1 -1
  23. package/dist/client/assets/{SearchMd-DvX2rzEB.js → SearchMd-Dq0euRWv.js} +1 -1
  24. package/dist/client/assets/{Settings02-Cqwfv4FN.js → Settings02-B_z2JeIq.js} +1 -1
  25. package/dist/client/assets/{Shield01-6id4oLiZ.js → Shield01-Dmf7TklI.js} +1 -1
  26. package/dist/client/assets/{Star01--MeVNqbA.js → Star01-ChWAyIjY.js} +1 -1
  27. package/dist/client/assets/{Stars01-C2BTpZeS.js → Stars01-DbI-YGmK.js} +1 -1
  28. package/dist/client/assets/{Stars02-D6zEAnUT.js → Stars02-WR3K9Daq.js} +1 -1
  29. package/dist/client/assets/{Sun-BGVsB7Cm.js → Sun-BIJajZBA.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-DC97OO23.js → SwitchHorizontal01-BjyN-RbX.js} +1 -1
  31. package/dist/client/assets/{Tool01-DQ4cTbeu.js → Tool01-Nn7pl58k.js} +1 -1
  32. package/dist/client/assets/{Trash01-Biurgfq6.js → Trash01-BW2v6vxa.js} +1 -1
  33. package/dist/client/assets/{Upload01-B-0o1yeU.js → Upload01-CyW8Wv9e.js} +1 -1
  34. package/dist/client/assets/{User01-CZ5ejYDg.js → User01-BBVMvdD1.js} +1 -1
  35. package/dist/client/assets/{Users01-CKNLJr4G.js → Users01-3QXDJ7kM.js} +1 -1
  36. package/dist/client/assets/{Users03-CA9cu5qb.js → Users03-Dc2Q2YCx.js} +1 -1
  37. package/dist/client/assets/{X-DlMQL-XM.js → X-BUrHvnq3.js} +1 -1
  38. package/dist/client/assets/{XCircle-G0WrPq0g.js → XCircle-Bz32In76.js} +1 -1
  39. package/dist/client/assets/{XClose-LNW85JIs.js → XClose-D4SdKRIc.js} +1 -1
  40. package/dist/client/assets/{Zap-CbtV6Vvm.js → Zap-DAhQN3Qe.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-C9LhFrIW.js → ZapSquare-DdYqdyu4.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-CImzlj9g.js → ZoomOut-BP5vTMyD.js} +1 -1
  43. package/dist/client/assets/{access-gate-DR0BZ9Yv.js → access-gate-CGZv0aLQ.js} +1 -1
  44. package/dist/client/assets/{accordion-CiWkTYYE.js → accordion-CGxHoi6P.js} +1 -1
  45. package/dist/client/assets/add-section-modal-DLCZWYmt.js +1 -0
  46. package/dist/client/assets/agent-capabilities-BOt7wU7l.js +3 -0
  47. package/dist/client/assets/{agent-icon-CjlB-XbA.js → agent-icon-DbC1U9Lv.js} +1 -1
  48. package/dist/client/assets/{agent-icons-COjGtXRX.js → agent-icons-B273VQSG.js} +2 -2
  49. package/dist/client/assets/{agents-list-BbpQy40q.js → agents-list-Dpi-AAFb.js} +1 -1
  50. package/dist/client/assets/{ai-providers-YKtufrsd.js → ai-providers-DGbRuhig.js} +1 -1
  51. package/dist/client/assets/{alert-DUOzDLz2.js → alert-dB15ZxT2.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-ZB1-0uWA.js → alert-dialog-CstddcEP.js} +2 -2
  53. package/dist/client/assets/app-editor-Cq82w23j.js +1 -0
  54. package/dist/client/assets/{auth-catchall-p-9cQrp4.js → auth-catchall-2_Uziri1.js} +1 -1
  55. package/dist/client/assets/{auth-split-layout-DCQZj1x8.js → auth-split-layout-BBSUM3P9.js} +1 -1
  56. package/dist/client/assets/{automation-list-row-1QBzAyda.js → automation-list-row-DeSlvYhB.js} +1 -1
  57. package/dist/client/assets/{automation-runs-CbXniThO.js → automation-runs-D6XH4v3a.js} +1 -1
  58. package/dist/client/assets/{automations-DXbm14M-.js → automations-DouKICLt.js} +1 -1
  59. package/dist/client/assets/{avatar-DdrKHW7Q.js → avatar-Glcqg-C7.js} +1 -1
  60. package/dist/client/assets/{badge-GxV01_sa.js → badge-CjjK5Sr7.js} +1 -1
  61. package/dist/client/assets/{brand-context-CckU9jvo.js → brand-context-DdQVWL7M.js} +1 -1
  62. package/dist/client/assets/{buckets-BXxpFWbP.js → buckets-DVxXOURG.js} +1 -1
  63. package/dist/client/assets/{calendar-ndWEDvWe.js → calendar-D0KKVHnd.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-C1lcmzPk.js → capability-load-error-B_GRCsfG.js} +1 -1
  65. package/dist/client/assets/{card-B7vNztnP.js → card-DeDg0Mpx.js} +1 -1
  66. package/dist/client/assets/{chat-context-Dr8mURNn.js → chat-context-Dd9y-6Y-.js} +1 -1
  67. package/dist/client/assets/{checkbox-CvlqSsv8.js → checkbox-D292XxeM.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-DbBnzJkW.js → cli-auth-success-DF9o-evj.js} +1 -1
  69. package/dist/client/assets/{collection-detail-dh1JPTkf.js → collection-detail-ZNirTQKs.js} +1 -1
  70. package/dist/client/assets/{collection-display-button-ByiFEfVE.js → collection-display-button-BHNg4RzF.js} +1 -1
  71. package/dist/client/assets/{collection-search-B62hBYcH.js → collection-search-CFFTRK3x.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-p305Tve_.js → collection-table-wrapper-CJC6Vyfs.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-BoWbncvo.js → collection-tabs-Da8fu2pB.js} +1 -1
  74. package/dist/client/assets/{collections-BU-b7Qnp.js → collections-CWnO7g9J.js} +1 -1
  75. package/dist/client/assets/{command-DeymMKPH.js → command-Dm1ALJPS.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-B6fCPmnk.js → connect-desktop-dialog-CNaHa2Dn.js} +1 -1
  77. package/dist/client/assets/{connection-card-BdHs3sI8.js → connection-card-J_g5yRQM.js} +1 -1
  78. package/dist/client/assets/{connection-detail-1bfT9skO.js → connection-detail-CtdPxsW2.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-Cl8WE-Wv.js → connection-form-helpers-0bmqzhLl.js} +1 -1
  80. package/dist/client/assets/connections-P_p0V_Q0.js +1 -0
  81. package/dist/client/assets/decopilot-sse-pool-BemyIcDl.js +1 -0
  82. package/dist/client/assets/{dialog-Bug5LYvY.js → dialog-B4Gk40Ec.js} +1 -1
  83. package/dist/client/assets/{domain-settings-CiVW_jUc.js → domain-settings-BDb8F-pn.js} +1 -1
  84. package/dist/client/assets/{drawer-Ckfnpw8I.js → drawer-C8AwBmXm.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-CggnBdjt.js → dropdown-menu-D2S2HMhI.js} +1 -1
  86. package/dist/client/assets/{dynamic-plugin-layout-yS0CT9hK.js → dynamic-plugin-layout-Dg3kd-lT.js} +1 -1
  87. package/dist/client/assets/{empty-state-C6yeON6c.js → empty-state-BEPxxZyq.js} +1 -1
  88. package/dist/client/assets/{empty-state-DtTBbW_W.js → empty-state-ZcLmoTrQ.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-BR7VTC2M.js → extract-connection-data-Cdme2PYD.js} +1 -1
  90. package/dist/client/assets/{features-fQ1ChqbW.js → features-Dg5ySgax.js} +1 -1
  91. package/dist/client/assets/file-explorer-NmtOY4n0.js +2 -0
  92. package/dist/client/assets/{file-type-icon-Dg4vNCbL.js → file-type-icon-ByhQy2rW.js} +1 -1
  93. package/dist/client/assets/{files-C7GL35WM.js → files-CGUJegiW.js} +1 -1
  94. package/dist/client/assets/{form-Bkkvnz-_.js → form-DzqpARCW.js} +1 -1
  95. package/dist/client/assets/{general-T2AFh9Ye.js → general-BaZ3r2GW.js} +1 -1
  96. package/dist/client/assets/{generate-id-DfnWKozM.js → generate-id-DCN1LrlB.js} +1 -1
  97. package/dist/client/assets/{github-repo-picker-BKJVsWG6.js → github-repo-picker-DifHpnDV.js} +1 -1
  98. package/dist/client/assets/{header-tab-button-CfuW1KOG.js → header-tab-button-CyQ_CUpS.js} +1 -1
  99. package/dist/client/assets/{hover-card-7wnR4X6J.js → hover-card-fQ5zGcbl.js} +1 -1
  100. package/dist/client/assets/{image-field-DsnvgvCV.js → image-field-_Av_lLAg.js} +1 -1
  101. package/dist/client/assets/{index-uM9cBeAz.js → index--VFF-Fa0.js} +1 -1
  102. package/dist/client/assets/{index-BL9vKovB.js → index-0pKQiQw5.js} +4 -4
  103. package/dist/client/assets/{index-CCldjkHi.js → index-Bkgvp8b5.js} +1 -1
  104. package/dist/client/assets/{index-CV7TX6uY.js → index-BlbwvYId.js} +1 -1
  105. package/dist/client/assets/{index-CvubZqsl.js → index-Brb5zXrs.js} +1 -1
  106. package/dist/client/assets/{index-BDwe75Ed.js → index-CDPDznJw.js} +1 -1
  107. package/dist/client/assets/{index-C_NDVGp1.js → index-CDa8r-Ay.js} +1 -1
  108. package/dist/client/assets/index-CXYYh-WP.js +1 -0
  109. package/dist/client/assets/{index-K-cFrJme.js → index-D3IoOs9k.js} +1 -1
  110. package/dist/client/assets/{index-M8U0QO9V.js → index-D7vPwljU.js} +1 -1
  111. package/dist/client/assets/index-D_v0xAjK.js +8 -0
  112. package/dist/client/assets/{index-BjoOIgbb.js → index-DjCrtoJM.js} +3 -3
  113. package/dist/client/assets/{index-C6AFi5aI.js → index-H-an7LFa.js} +1 -1
  114. package/dist/client/assets/{index-BD68Poau.js → index-grq1eXi6.js} +1 -1
  115. package/dist/client/assets/{index-redirect-CDKs11B5.js → index-redirect-DtYqdHDy.js} +1 -1
  116. package/dist/client/assets/index-snZrdd2U.js +1 -0
  117. package/dist/client/assets/{input-CAytkUdm.js → input-odGTsdHi.js} +1 -1
  118. package/dist/client/assets/{integration-icon-BxZqCPgY.js → integration-icon-CYVpZTf5.js} +1 -1
  119. package/dist/client/assets/{label-_bcDhrPn.js → label-CO8q2BMX.js} +1 -1
  120. package/dist/client/assets/{layout-D6JyUu-W.js → layout-mA5Rj_u2.js} +1 -1
  121. package/dist/client/assets/{login-D_Y894-5.js → login-BdTiL4Ph.js} +1 -1
  122. package/dist/client/assets/{members-BiZDHDwm.js → members-K2LSrSOy.js} +1 -1
  123. package/dist/client/assets/monaco-editor-DKpM33ac.js +9 -0
  124. package/dist/client/assets/{monitoring-stats-row-BH1n8Qao.js → monitoring-stats-row-C1HQhYEp.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-Bwrh5dBF.js → oauth-callback-RCth5FgJ.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-ai-provider-DnFWhV-5.js → oauth-callback-ai-provider-Bx_f4SNv.js} +1 -1
  127. package/dist/client/assets/{onboarding-0pY55b33.js → onboarding-Cw0yv-ax.js} +1 -1
  128. package/dist/client/assets/{org-install-CfS-9owX.js → org-install-C5oIAlaU.js} +1 -1
  129. package/dist/client/assets/{org-layout-WjhxFhVG.js → org-layout-AJN3IVEY.js} +1 -1
  130. package/dist/client/assets/{org-plugin-layout-CBd88Pps.js → org-plugin-layout-DeLJrvoA.js} +1 -1
  131. package/dist/client/assets/{page-seo-form-DA-M0CRU.js → page-seo-form-2v7yqwmW.js} +1 -1
  132. package/dist/client/assets/page-seo-sheet-DEYwDlV3.js +1 -0
  133. package/dist/client/assets/{pair-rWOsLIRO.js → pair-C9I7jtDw.js} +6 -6
  134. package/dist/client/assets/{plugin-empty-state-BC-cPjsG.js → plugin-empty-state-BllJH9a8.js} +1 -1
  135. package/dist/client/assets/{plugin-header-CZ1sX2n9.js → plugin-header-pbmKrc1L.js} +1 -1
  136. package/dist/client/assets/{plugin-layout-egGFGy3C.js → plugin-layout-DRXLQokx.js} +1 -1
  137. package/dist/client/assets/{popover-H1IIsqsO.js → popover-ChUM3TFy.js} +1 -1
  138. package/dist/client/assets/{post-editor-D8Amc377.js → post-editor-DBJSrVd6.js} +2 -2
  139. package/dist/client/assets/{primitives-DXNs_riQ.js → primitives-CDySgipF.js} +1 -1
  140. package/dist/client/assets/{profile-jQNt2qst.js → profile-C7vJk0Kt.js} +1 -1
  141. package/dist/client/assets/project-app-view-iV-1n2vK.js +1 -0
  142. package/dist/client/assets/record-editor-bmEKAE4B.js +1 -0
  143. package/dist/client/assets/registry-CT2kzs1z.js +2 -0
  144. package/dist/client/assets/registry-layout-CBGi99kW.js +27 -0
  145. package/dist/client/assets/{require-capability-g-UPmpGK.js → require-capability-XeIce_Pd.js} +1 -1
  146. package/dist/client/assets/{required-auth-layout-B5sViZsY.js → required-auth-layout-BBVKG7Ms.js} +1 -1
  147. package/dist/client/assets/{reset-password-BC3ZM7w0.js → reset-password-CZ2_k_ln.js} +1 -1
  148. package/dist/client/assets/{resizable-DaIe2JEk.js → resizable-DYZX4GYZ.js} +1 -1
  149. package/dist/client/assets/roles-eO3gNPsn.js +1 -0
  150. package/dist/client/assets/save-referenced-block-erNAPeZK.js +1 -0
  151. package/dist/client/assets/{save-status-DaG-SHKI.js → save-status-DGCu0Kou.js} +1 -1
  152. package/dist/client/assets/{schema-form-BBSGBJV6.js → schema-form-CnMZQoIC.js} +1 -1
  153. package/dist/client/assets/{scroll-area-7dB1B4gR.js → scroll-area-D-xuBg8S.js} +1 -1
  154. package/dist/client/assets/{search-input-DwwxFJsd.js → search-input-BOFnCDgB.js} +1 -1
  155. package/dist/client/assets/{secrets-BVqejBQE.js → secrets-BLYQN7Zp.js} +1 -1
  156. package/dist/client/assets/{sections-editor-B1P_XWwE.js → sections-editor-BFS_rZo4.js} +2 -2
  157. package/dist/client/assets/{select-Dn6Da_1F.js → select-B1gidrpT.js} +1 -1
  158. package/dist/client/assets/{select-model-W59Bilmt.js → select-model-CCz1D052.js} +1 -1
  159. package/dist/client/assets/seo-editor-ClvdYMyV.js +1 -0
  160. package/dist/client/assets/{settings-layout-DypT7z1u.js → settings-layout-ParxM_Ja.js} +1 -1
  161. package/dist/client/assets/{settings-section-BkgYqxH8.js → settings-section-DDBr5t6q.js} +1 -1
  162. package/dist/client/assets/{sheet-CxiAY8T5.js → sheet-BwcUAu7J.js} +1 -1
  163. package/dist/client/assets/{shell-controls-rZ6L5v7J.js → shell-controls-a5C7q3sv.js} +1 -1
  164. package/dist/client/assets/{shell-layout-B5B3hmRp.js → shell-layout-jPbG1TxD.js} +1 -1
  165. package/dist/client/assets/shell-route-loading-CrwP7Moq.js +1 -0
  166. package/dist/client/assets/{sidebar-CIJpOENy.js → sidebar-D0YkKw2Q.js} +1 -1
  167. package/dist/client/assets/{skeleton-B0e2OkSv.js → skeleton-BnLuwQl0.js} +1 -1
  168. package/dist/client/assets/{sortable.esm-B6-kJBUo.js → sortable.esm-DHNuKLSF.js} +1 -1
  169. package/dist/client/assets/{spinner-C2ljLkNd.js → spinner-C_dp5faG.js} +1 -1
  170. package/dist/client/assets/{sso-DutRn6kP.js → sso-Dv0vfQwF.js} +1 -1
  171. package/dist/client/assets/{store-CuKFTdG_.js → store-CzOlrmK7.js} +1 -1
  172. package/dist/client/assets/store-registry-BBiSNL3g.js +2 -0
  173. package/dist/client/assets/{studio-tools-DfxdEEgB.js → studio-tools-C1zamUp1.js} +1 -1
  174. package/dist/client/assets/{switch-DDGBJlE2.js → switch-Co2WNb8L.js} +1 -1
  175. package/dist/client/assets/{tab-id-TBSp1YxU.js → tab-id-Br9ttHTZ.js} +1 -1
  176. package/dist/client/assets/{table-GnXYzms9.js → table-DXm5sFe0.js} +1 -1
  177. package/dist/client/assets/{tabs-BajnAGhM.js → tabs-Bhgl3qMn.js} +1 -1
  178. package/dist/client/assets/{task-status-fWcsMePP.js → task-status-BYl9XRWC.js} +1 -1
  179. package/dist/client/assets/{textarea-JAS7Y9kw.js → textarea-DkHK4zFC.js} +1 -1
  180. package/dist/client/assets/{toggle-group-Bv21I6Mc.js → toggle-group-i9f6SFf7.js} +1 -1
  181. package/dist/client/assets/{toolbar-CkGflKXn.js → toolbar-CJqhxN0I.js} +1 -1
  182. package/dist/client/assets/{tools-list-DKrbt2O-.js → tools-list-C1LX0lcn.js} +1 -1
  183. package/dist/client/assets/{tooltip-CKtclZb-.js → tooltip-MvXJgTec.js} +1 -1
  184. package/dist/client/assets/{types-2N8PTdbg.js → types-B5hLLDbz.js} +1 -1
  185. package/dist/client/assets/{use-ai-providers-CGLipwx3.js → use-ai-providers-BsaGHbRZ.js} +1 -1
  186. package/dist/client/assets/{use-automations-BChOAOA6.js → use-automations-CsEWrXaA.js} +1 -1
  187. package/dist/client/assets/{use-capability-czp9i90U.js → use-capability-COL6vTbP.js} +1 -1
  188. package/dist/client/assets/{use-clock-tick-_Fh5zTFQ.js → use-clock-tick-DOOx6g7A.js} +1 -1
  189. package/dist/client/assets/{use-collections-CrAY0KoX.js → use-collections-BTo2RzuF.js} +1 -1
  190. package/dist/client/assets/{use-connection-NiFefepq.js → use-connection-C7K5Qf-S.js} +1 -1
  191. package/dist/client/assets/{use-copy-CQfxrmWX.js → use-copy-CGrsfbTf.js} +1 -1
  192. package/dist/client/assets/{use-create-virtual-mcp-DwKQGNi1.js → use-create-virtual-mcp-D9KVCrT1.js} +1 -1
  193. package/dist/client/assets/{use-debounced-autosave-DCM6oAgZ.js → use-debounced-autosave-6YBhwe_F.js} +1 -1
  194. package/dist/client/assets/{use-delete-connection-bIYVec_d.js → use-delete-connection-BfZlr78w.js} +1 -1
  195. package/dist/client/assets/{use-file-configs-CqXWCLQv.js → use-file-configs-2cFOqoXA.js} +1 -1
  196. package/dist/client/assets/use-infinite-scroll-CHxQ8pHV.js +1 -0
  197. package/dist/client/assets/{use-list-state-DRxXstLB.js → use-list-state-ohTb0Oa4.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-B46VYAN_.js → use-mcp-client-Wf5qUXFF.js} +1 -1
  199. package/dist/client/assets/{use-mcp-prompts-BfYOND3X.js → use-mcp-prompts-C3LVS9Ph.js} +1 -1
  200. package/dist/client/assets/{use-mcp-tools-wPegb5Xs.js → use-mcp-tools-CHOFkJhf.js} +1 -1
  201. package/dist/client/assets/{use-members-DTpTFucv.js → use-members-DPGvEZAM.js} +1 -1
  202. package/dist/client/assets/{use-navigate-to-agent-DL0_jMva.js → use-navigate-to-agent-Cyv38GW6.js} +1 -1
  203. package/dist/client/assets/{use-org-auth-client-DFhI1mXp.js → use-org-auth-client-DEFpPA_h.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-B2JHlDcL.js → use-org-sso-DXk1g-4_.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-Do917bwO.js → use-organization-roles-CgzLzx7m.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-CGdaVuD7.js → use-organization-settings-DYscqYOA.js} +1 -1
  207. package/dist/client/assets/{use-registry-connections-B7_YY-15.js → use-registry-connections-BWH6CWaF.js} +1 -1
  208. package/dist/client/assets/{use-secrets-qOLSEePj.js → use-secrets-C2K4Jrkd.js} +1 -1
  209. package/dist/client/assets/{use-status-sounds-EA9ENH60.js → use-status-sounds-CFQ4LNhs.js} +1 -1
  210. package/dist/client/assets/{use-view-mode-C2K6zcu8.js → use-view-mode-Dg3ZmYU0.js} +1 -1
  211. package/dist/client/assets/{use-virtual-mcp-DHileccV.js → use-virtual-mcp-3Wk6GVmY.js} +1 -1
  212. package/dist/client/assets/useInfiniteQuery-DiweShIv.js +1 -0
  213. package/dist/client/assets/{useRouterState-93R-QVdz.js → useRouterState-DyL85Esh.js} +1 -1
  214. package/dist/client/assets/useSuspenseInfiniteQuery-BHYoMCUL.js +1 -0
  215. package/dist/client/assets/{user-T0gsPnBH.js → user-CNkzK1zV.js} +1 -1
  216. package/dist/client/assets/{view-mode-toggle-BvPi1TV1.js → view-mode-toggle-Do2GCdol.js} +1 -1
  217. package/dist/client/assets/{watch-sse-pool-BSePGeIN.js → watch-sse-pool-WsArg2kN.js} +1 -1
  218. package/dist/client/assets/{workflow-aar8VltW.js → workflow-C2UTibro.js} +1 -1
  219. package/dist/client/assets/workflow-detail-B3lltIYe.js +1 -0
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +418 -418
  222. package/dist/server/migrate.js +52 -52
  223. package/dist/server/server.js +292 -292
  224. package/package.json +1 -1
  225. package/dist/client/assets/add-section-modal-Dv2cxIh1.js +0 -1
  226. package/dist/client/assets/agent-capabilities-l_XcUqX-.js +0 -3
  227. package/dist/client/assets/app-editor-CFm4rW9v.js +0 -1
  228. package/dist/client/assets/connections-CQfywKkf.js +0 -1
  229. package/dist/client/assets/decopilot-sse-pool-TF6jERkV.js +0 -1
  230. package/dist/client/assets/file-explorer-Bpe6MxXV.js +0 -2
  231. package/dist/client/assets/index-CoS-DNLH.js +0 -1
  232. package/dist/client/assets/index-DHXKcvHJ.js +0 -1
  233. package/dist/client/assets/index-Dow8MSuu.js +0 -8
  234. package/dist/client/assets/infiniteQueryObserver-DjRZQa58.js +0 -1
  235. package/dist/client/assets/monaco-editor-DR1buwuA.js +0 -9
  236. package/dist/client/assets/page-seo-sheet-BGJM5zp7.js +0 -1
  237. package/dist/client/assets/project-app-view-CByPW7cJ.js +0 -1
  238. package/dist/client/assets/record-editor-BoDJjFQA.js +0 -1
  239. package/dist/client/assets/registry-aermVrqm.js +0 -2
  240. package/dist/client/assets/registry-layout-CC29q8fz.js +0 -27
  241. package/dist/client/assets/roles-C5M6mJ4v.js +0 -1
  242. package/dist/client/assets/save-referenced-block-BLu5E_fA.js +0 -1
  243. package/dist/client/assets/seo-editor-CBSOqlcM.js +0 -1
  244. package/dist/client/assets/shell-route-loading-BURh1jIH.js +0 -1
  245. package/dist/client/assets/store-registry-CRmNQ4V9.js +0 -2
  246. package/dist/client/assets/use-infinite-scroll-CNFLUrB_.js +0 -1
  247. package/dist/client/assets/useInfiniteQuery-vMxng0_U.js +0 -1
  248. package/dist/client/assets/useSuspenseInfiniteQuery-_hGeqDYv.js +0 -1
  249. package/dist/client/assets/workflow-detail-Cyps73VW.js +0 -1
@@ -1 +1 @@
1
- import{e as D,j as s,E as le,r as K,q as ae,G as ce,f as de,g as me,B as Y,t as te,K as fe,a as ge,o as ie}from"./index-BjoOIgbb.js";import{i as ue}from"./AlertCircle-BQLR7I4E.js";import{i as pe}from"./ChevronRight-DUzhuedZ.js";import{s as xe}from"./Plus-CdvauR8B.js";import{s as he}from"./Trash01-Biurgfq6.js";import{I as X}from"./input-CAytkUdm.js";import{S as oe}from"./switch-DDGBJlE2.js";import{S as ye}from"./skeleton-B0e2OkSv.js";import{A as ne}from"./avatar-DdrKHW7Q.js";import{P as je,a as Ce,b as Se}from"./popover-H1IIsqsO.js";import{b as re}from"./use-connection-NiFefepq.js";import{W as Z}from"./use-mcp-client-B46VYAN_.js";import{P as G}from"./index-M8U0QO9V.js";import{u as ve}from"./use-registry-connections-B7_YY-15.js";import{g as _e,h as be}from"./use-organization-settings-CGdaVuD7.js";import{c as Pe,b as I,S as ee,a as Q}from"./settings-section-BkgYqxH8.js";import{R as Re}from"./require-capability-g-UPmpGK.js";import"./User01-CZ5ejYDg.js";import"./use-collections-CrAY0KoX.js";import"./sidebar-CIJpOENy.js";import"./LayoutLeft-Bfxz6P9F.js";import"./tooltip-CKtclZb-.js";import"./sheet-CxiAY8T5.js";import"./X-DlMQL-XM.js";import"./card-B7vNztnP.js";import"./ArrowUpRight-DSaWSvAP.js";import"./use-capability-czp9i90U.js";import"./access-gate-DR0BZ9Yv.js";import"./capability-load-error-C1lcmzPk.js";function ke(t){const e=D.c(3),{error:o}=t;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ue,{size:16}),e[0]=m):m=e[0];let n;return e[1]!==o.message?(n=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[m,s.jsxs("span",{className:"text-sm font-medium",children:["Failed to load store settings: ",o.message]})]}),e[1]=o.message,e[2]=n):n=e[2],n}function we(t){const e=D.c(36),{onCancel:o,onSuccess:m}=t,n=re(),[r,j]=K.useState(""),[a,S]=K.useState(""),[x,v]=K.useState("");let h;e[0]!==n||e[1]!==r||e[2]!==x||e[3]!==a?(h=async()=>(await n.create.mutateAsync({title:r||"Private Registry",description:"Private MCP registry",connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=n,e[1]=r,e[2]=x,e[3]=a,e[4]=h):h=e[4];let f;e[5]!==m?(f=C=>{te("store_private_registry_added",{connection_id:C}),ie.success("Private registry added"),m(C)},e[5]=m,e[6]=f):f=e[6];let y;e[7]!==h||e[8]!==f?(y={mutationFn:h,onSuccess:f,onError:Ne},e[7]=h,e[8]=f,e[9]=y):y=e[9];const{mutate:c,isPending:d}=ge(y);let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=C=>j(C.target.value),e[10]=g):g=e[10];let u;e[11]!==r?(u=s.jsx(I,{title:"Name",action:s.jsx(X,{placeholder:"e.g. Acme Corp Registry",value:r,onChange:g,className:"w-[280px]"})}),e[11]=r,e[12]=u):u=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=C=>S(C.target.value),e[13]=p):p=e[13];let l;e[14]!==a?(l=s.jsx(I,{title:"Registry URL",action:s.jsx(X,{placeholder:"https://registry.example.com/mcp",value:a,onChange:p,className:"w-[280px]"})}),e[14]=a,e[15]=l):l=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=C=>v(C.target.value),e[16]=_):_=e[16];let b;e[17]!==x?(b=s.jsx(I,{title:"Auth Token",description:"Optional",action:s.jsx(X,{type:"password",placeholder:"Bearer token...",value:x,onChange:_,className:"w-[280px]"})}),e[17]=x,e[18]=b):b=e[18];let k;e[19]!==d||e[20]!==o?(k=s.jsx(Y,{variant:"ghost",size:"sm",onClick:o,disabled:d,children:"Cancel"}),e[19]=d,e[20]=o,e[21]=k):k=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];const O=!a||d,B=d?"Adding...":"Add Registry";let A;e[24]!==N||e[25]!==O||e[26]!==B?(A=s.jsx(Y,{size:"sm",onClick:N,disabled:O,children:B}),e[24]=N,e[25]=O,e[26]=B,e[27]=A):A=e[27];let R;e[28]!==k||e[29]!==A?(R=s.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[k,A]}),e[28]=k,e[29]=A,e[30]=R):R=e[30];let P;return e[31]!==R||e[32]!==u||e[33]!==l||e[34]!==b?(P=s.jsxs(Q,{children:[u,l,b,R]}),e[31]=R,e[32]=u,e[33]=l,e[34]=b,e[35]=P):P=e[35],P}function Ne(t){ie.error(`Failed to add registry: ${t.message}`)}function L(t){const e=D.c(29),{name:o,description:m,icon:n,enabled:r,onToggle:j,onDelete:a,href:S}=t,x=de();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={from:"/shell/$org"},e[0]=v):v=e[0];const{org:h}=me(v);let f;e[1]!==r||e[2]!==S||e[3]!==x||e[4]!==j||e[5]!==h?(f=()=>{S?x({to:S,params:{org:h}}):j(!r)},e[1]=r,e[2]=S,e[3]=x,e[4]=j,e[5]=h,e[6]=f):f=e[6];const y=f;let c;e[7]!==n||e[8]!==o?(c=n?s.jsx("img",{src:n,alt:o,className:"size-8 rounded-md object-contain"}):s.jsx(ne,{fallback:o.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=n,e[8]=o,e[9]=c):c=e[9];let d;e[10]!==a?(d=a&&s.jsxs(je,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Me,children:s.jsx(he,{size:14})})}),s.jsx(Se,{className:"w-auto p-2",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-medium",children:"Remove this registry?"}),s.jsx(Y,{variant:"destructive",size:"xs",onClick:b=>{b.stopPropagation(),a()},children:"Remove"})]})})]}),e[10]=a,e[11]=d):d=e[11];let g;e[12]!==j?(g=b=>j(b),e[12]=j,e[13]=g):g=e[13];let u;e[14]!==r||e[15]!==g?(u=s.jsx(oe,{checked:r,onClick:Ae,onCheckedChange:g}),e[14]=r,e[15]=g,e[16]=u):u=e[16];let p;e[17]!==S?(p=S&&s.jsx(pe,{size:14,className:"text-muted-foreground"}),e[17]=S,e[18]=p):p=e[18];let l;e[19]!==d||e[20]!==u||e[21]!==p?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[d,u,p]}),e[19]=d,e[20]=u,e[21]=p,e[22]=l):l=e[22];let _;return e[23]!==m||e[24]!==y||e[25]!==o||e[26]!==c||e[27]!==l?(_=s.jsx(I,{title:o,description:m,onClick:y,icon:c,action:l}),e[23]=m,e[24]=y,e[25]=o,e[26]=c,e[27]=l,e[28]=_):_=e[28],_}function Ae(t){return t.stopPropagation()}function Me(t){return t.stopPropagation()}function Te(){const t=D.c(59),{org:e}=ae(),o=ve(),m=re(),n=_e(),{mutateAsync:r}=be(),j=ce(),[a,S]=K.useState(!1);let x,v,h,f,y,c;if(t[0]!==m||t[1]!==e.id||t[2]!==j||t[3]!==n||t[4]!==o||t[5]!==a||t[6]!==r){const p=Z.REGISTRY(e.id),l=i=>{if(!n)return i===p;const w=n.registries[i];return w?w.enabled:i===p},_=Z.COMMUNITY_REGISTRY(e.id),b=o.find(i=>i.id===p),k=o.find(i=>i.id===_||i.id==="community-registry"),N=k?.id??_,O=Z.SELF(e.id),B=new Set([p,_,"community-registry",O]),A=o.filter(i=>!B.has(i.id));let R;t[13]!==n||t[14]!==r?(R=async(i,w)=>{te("store_registry_toggled",{connection_id:i,enabled:w});const se=n??{registries:{},blockedMcps:[]};await r({...se,registries:{...se.registries,[i]:{enabled:w}}})},t[13]=n,t[14]=r,t[15]=R):R=t[15];const P=R;let C;t[16]!==m||t[17]!==e.id||t[18]!==j?(C=async i=>{te("store_private_registry_removed",{connection_id:i}),await m.delete.mutateAsync(i),j.invalidateQueries({queryKey:fe.organizationSettings(e.id)})},t[16]=m,t[17]=e.id,t[18]=j,t[19]=C):C=t[19];const W=C;let q;t[20]!==n||t[21]!==r?(q=async i=>{S(!1);const w=n??{registries:{},blockedMcps:[]};await r({...w,registries:{...w.registries,[i]:{enabled:!0}}})},t[20]=n,t[21]=r,t[22]=q):q=t[22];const H=q,J=b?s.jsx(L,{name:"Deco Store",description:"Official deco MCP registry with curated integrations",icon:b.icon,enabled:l(p),onToggle:i=>P(p,i)}):s.jsx(I,{title:"Deco Store",description:"Connection not found — will be created automatically."});t[23]!==J?(y=s.jsx(ee,{title:"Deco Store",children:s.jsx(Q,{children:J})}),t[23]=J,t[24]=y):y=t[24];let M;t[25]!==a?(M=a?void 0:s.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>S(!0),children:[s.jsx(xe,{size:14}),"Add registry"]}),t[25]=a,t[26]=M):M=t[26];let T;t[27]!==H||t[28]!==a?(T=a&&s.jsx(we,{onCancel:()=>S(!1),onSuccess:H}),t[27]=H,t[28]=a,t[29]=T):T=t[29];let z;t[30]!==l?(z=l("self"),t[30]=l,t[31]=z):z=t[31];let E;t[32]!==P?(E=i=>P("self",i),t[32]=P,t[33]=E):E=t[33];let $;t[34]!==z||t[35]!==E?($=s.jsx(L,{name:"Private Registry",description:"Your organization's private MCP registry",enabled:z,onToggle:E,href:"/$org/settings/store/registry"}),t[34]=z,t[35]=E,t[36]=$):$=t[36];let U;t[37]!==W||t[38]!==P||t[39]!==l?(U=i=>s.jsx(L,{name:i.title,description:i.description??"Private MCP registry",icon:i.icon,enabled:l(i.id),onToggle:w=>P(i.id,w),onDelete:()=>W(i.id)},i.id),t[37]=W,t[38]=P,t[39]=l,t[40]=U):U=t[40];const V=A.map(U);let F;t[41]!==$||t[42]!==V?(F=s.jsxs(Q,{children:[$,V]}),t[41]=$,t[42]=V,t[43]=F):F=t[43],t[44]!==F||t[45]!==M||t[46]!==T?(c=s.jsxs(ee,{title:"Private Registries",actions:M,children:[T,F]}),t[44]=F,t[45]=M,t[46]=T,t[47]=c):c=t[47],v=ee,f="Community",x=Q,h=k?s.jsx(L,{name:"MCP Registry",description:"Community MCP registry with thousands of handy MCPs",icon:k.icon,enabled:l(N),onToggle:i=>P(N,i)}):s.jsx(I,{title:"MCP Registry",description:"Community MCP registry — not yet added",icon:s.jsx(ne,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:s.jsx(oe,{checked:!1,disabled:!0,onCheckedChange:ze})}),t[0]=m,t[1]=e.id,t[2]=j,t[3]=n,t[4]=o,t[5]=a,t[6]=r,t[7]=x,t[8]=v,t[9]=h,t[10]=f,t[11]=y,t[12]=c}else x=t[7],v=t[8],h=t[9],f=t[10],y=t[11],c=t[12];let d;t[48]!==x||t[49]!==h?(d=s.jsx(x,{children:h}),t[48]=x,t[49]=h,t[50]=d):d=t[50];let g;t[51]!==v||t[52]!==f||t[53]!==d?(g=s.jsx(v,{title:f,children:d}),t[51]=v,t[52]=f,t[53]=d,t[54]=g):g=t[54];let u;return t[55]!==y||t[56]!==c||t[57]!==g?(u=s.jsxs(s.Fragment,{children:[y,c,g]}),t[55]=y,t[56]=c,t[57]=g,t[58]=u):u=t[58],u}function ze(){}function Ee(){const t=D.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ye,{className:"h-64 w-full"}),t[0]=e):e=t[0];let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(le,{fallback:$e,children:s.jsx(K.Suspense,{fallback:e,children:s.jsx(G,{children:s.jsx(G.Content,{children:s.jsx(G.Body,{children:s.jsxs(Pe,{children:[s.jsx(G.Title,{children:"Store"}),s.jsx(Te,{})]})})})})})}),t[1]=o):o=t[1],o}function $e(t){const{error:e}=t;return s.jsx(ke,{error:e??new Error("Failed to load store settings")})}function mt(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Re,{capability:"registry:manage",area:"the store",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}export{mt as default};
1
+ import{e as D,j as s,E as le,r as K,q as ae,G as ce,f as de,g as me,B as Y,t as te,K as fe,a as ge,o as ie}from"./index-DjCrtoJM.js";import{i as ue}from"./AlertCircle-CNjNg2wb.js";import{i as pe}from"./ChevronRight-BJRYs8bt.js";import{s as xe}from"./Plus-DrYyBDmj.js";import{s as he}from"./Trash01-BW2v6vxa.js";import{I as X}from"./input-odGTsdHi.js";import{S as oe}from"./switch-Co2WNb8L.js";import{S as ye}from"./skeleton-BnLuwQl0.js";import{A as ne}from"./avatar-Glcqg-C7.js";import{P as je,a as Ce,b as Se}from"./popover-ChUM3TFy.js";import{b as re}from"./use-connection-C7K5Qf-S.js";import{W as Z}from"./use-mcp-client-Wf5qUXFF.js";import{P as G}from"./index-D7vPwljU.js";import{u as ve}from"./use-registry-connections-BWH6CWaF.js";import{g as _e,h as be}from"./use-organization-settings-DYscqYOA.js";import{c as Pe,b as I,S as ee,a as Q}from"./settings-section-DDBr5t6q.js";import{R as Re}from"./require-capability-XeIce_Pd.js";import"./User01-BBVMvdD1.js";import"./use-collections-BTo2RzuF.js";import"./sidebar-D0YkKw2Q.js";import"./LayoutLeft-DOdRMzln.js";import"./tooltip-MvXJgTec.js";import"./sheet-BwcUAu7J.js";import"./X-BUrHvnq3.js";import"./card-DeDg0Mpx.js";import"./ArrowUpRight-7-SM74wR.js";import"./use-capability-COL6vTbP.js";import"./access-gate-CGZv0aLQ.js";import"./capability-load-error-B_GRCsfG.js";function ke(t){const e=D.c(3),{error:o}=t;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(ue,{size:16}),e[0]=m):m=e[0];let n;return e[1]!==o.message?(n=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[m,s.jsxs("span",{className:"text-sm font-medium",children:["Failed to load store settings: ",o.message]})]}),e[1]=o.message,e[2]=n):n=e[2],n}function we(t){const e=D.c(36),{onCancel:o,onSuccess:m}=t,n=re(),[r,j]=K.useState(""),[a,S]=K.useState(""),[x,v]=K.useState("");let h;e[0]!==n||e[1]!==r||e[2]!==x||e[3]!==a?(h=async()=>(await n.create.mutateAsync({title:r||"Private Registry",description:"Private MCP registry",connection_type:"HTTP",connection_url:a,connection_token:x||null,connection_headers:null,oauth_config:null,configuration_state:null,configuration_scopes:null,metadata:{type:"registry"},app_name:null,app_id:null,icon:null})).id,e[0]=n,e[1]=r,e[2]=x,e[3]=a,e[4]=h):h=e[4];let f;e[5]!==m?(f=C=>{te("store_private_registry_added",{connection_id:C}),ie.success("Private registry added"),m(C)},e[5]=m,e[6]=f):f=e[6];let y;e[7]!==h||e[8]!==f?(y={mutationFn:h,onSuccess:f,onError:Ne},e[7]=h,e[8]=f,e[9]=y):y=e[9];const{mutate:c,isPending:d}=ge(y);let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=C=>j(C.target.value),e[10]=g):g=e[10];let u;e[11]!==r?(u=s.jsx(I,{title:"Name",action:s.jsx(X,{placeholder:"e.g. Acme Corp Registry",value:r,onChange:g,className:"w-[280px]"})}),e[11]=r,e[12]=u):u=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=C=>S(C.target.value),e[13]=p):p=e[13];let l;e[14]!==a?(l=s.jsx(I,{title:"Registry URL",action:s.jsx(X,{placeholder:"https://registry.example.com/mcp",value:a,onChange:p,className:"w-[280px]"})}),e[14]=a,e[15]=l):l=e[15];let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_=C=>v(C.target.value),e[16]=_):_=e[16];let b;e[17]!==x?(b=s.jsx(I,{title:"Auth Token",description:"Optional",action:s.jsx(X,{type:"password",placeholder:"Bearer token...",value:x,onChange:_,className:"w-[280px]"})}),e[17]=x,e[18]=b):b=e[18];let k;e[19]!==d||e[20]!==o?(k=s.jsx(Y,{variant:"ghost",size:"sm",onClick:o,disabled:d,children:"Cancel"}),e[19]=d,e[20]=o,e[21]=k):k=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];const O=!a||d,B=d?"Adding...":"Add Registry";let A;e[24]!==N||e[25]!==O||e[26]!==B?(A=s.jsx(Y,{size:"sm",onClick:N,disabled:O,children:B}),e[24]=N,e[25]=O,e[26]=B,e[27]=A):A=e[27];let R;e[28]!==k||e[29]!==A?(R=s.jsxs("div",{className:"px-5 py-4 flex justify-end gap-2",children:[k,A]}),e[28]=k,e[29]=A,e[30]=R):R=e[30];let P;return e[31]!==R||e[32]!==u||e[33]!==l||e[34]!==b?(P=s.jsxs(Q,{children:[u,l,b,R]}),e[31]=R,e[32]=u,e[33]=l,e[34]=b,e[35]=P):P=e[35],P}function Ne(t){ie.error(`Failed to add registry: ${t.message}`)}function L(t){const e=D.c(29),{name:o,description:m,icon:n,enabled:r,onToggle:j,onDelete:a,href:S}=t,x=de();let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={from:"/shell/$org"},e[0]=v):v=e[0];const{org:h}=me(v);let f;e[1]!==r||e[2]!==S||e[3]!==x||e[4]!==j||e[5]!==h?(f=()=>{S?x({to:S,params:{org:h}}):j(!r)},e[1]=r,e[2]=S,e[3]=x,e[4]=j,e[5]=h,e[6]=f):f=e[6];const y=f;let c;e[7]!==n||e[8]!==o?(c=n?s.jsx("img",{src:n,alt:o,className:"size-8 rounded-md object-contain"}):s.jsx(ne,{fallback:o.charAt(0),className:"size-8 bg-primary/10 text-primary"}),e[7]=n,e[8]=o,e[9]=c):c=e[9];let d;e[10]!==a?(d=a&&s.jsxs(je,{children:[s.jsx(Ce,{asChild:!0,children:s.jsx(Y,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:Me,children:s.jsx(he,{size:14})})}),s.jsx(Se,{className:"w-auto p-2",align:"end",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{className:"text-xs font-medium",children:"Remove this registry?"}),s.jsx(Y,{variant:"destructive",size:"xs",onClick:b=>{b.stopPropagation(),a()},children:"Remove"})]})})]}),e[10]=a,e[11]=d):d=e[11];let g;e[12]!==j?(g=b=>j(b),e[12]=j,e[13]=g):g=e[13];let u;e[14]!==r||e[15]!==g?(u=s.jsx(oe,{checked:r,onClick:Ae,onCheckedChange:g}),e[14]=r,e[15]=g,e[16]=u):u=e[16];let p;e[17]!==S?(p=S&&s.jsx(pe,{size:14,className:"text-muted-foreground"}),e[17]=S,e[18]=p):p=e[18];let l;e[19]!==d||e[20]!==u||e[21]!==p?(l=s.jsxs("div",{className:"flex items-center gap-2",children:[d,u,p]}),e[19]=d,e[20]=u,e[21]=p,e[22]=l):l=e[22];let _;return e[23]!==m||e[24]!==y||e[25]!==o||e[26]!==c||e[27]!==l?(_=s.jsx(I,{title:o,description:m,onClick:y,icon:c,action:l}),e[23]=m,e[24]=y,e[25]=o,e[26]=c,e[27]=l,e[28]=_):_=e[28],_}function Ae(t){return t.stopPropagation()}function Me(t){return t.stopPropagation()}function Te(){const t=D.c(59),{org:e}=ae(),o=ve(),m=re(),n=_e(),{mutateAsync:r}=be(),j=ce(),[a,S]=K.useState(!1);let x,v,h,f,y,c;if(t[0]!==m||t[1]!==e.id||t[2]!==j||t[3]!==n||t[4]!==o||t[5]!==a||t[6]!==r){const p=Z.REGISTRY(e.id),l=i=>{if(!n)return i===p;const w=n.registries[i];return w?w.enabled:i===p},_=Z.COMMUNITY_REGISTRY(e.id),b=o.find(i=>i.id===p),k=o.find(i=>i.id===_||i.id==="community-registry"),N=k?.id??_,O=Z.SELF(e.id),B=new Set([p,_,"community-registry",O]),A=o.filter(i=>!B.has(i.id));let R;t[13]!==n||t[14]!==r?(R=async(i,w)=>{te("store_registry_toggled",{connection_id:i,enabled:w});const se=n??{registries:{},blockedMcps:[]};await r({...se,registries:{...se.registries,[i]:{enabled:w}}})},t[13]=n,t[14]=r,t[15]=R):R=t[15];const P=R;let C;t[16]!==m||t[17]!==e.id||t[18]!==j?(C=async i=>{te("store_private_registry_removed",{connection_id:i}),await m.delete.mutateAsync(i),j.invalidateQueries({queryKey:fe.organizationSettings(e.id)})},t[16]=m,t[17]=e.id,t[18]=j,t[19]=C):C=t[19];const W=C;let q;t[20]!==n||t[21]!==r?(q=async i=>{S(!1);const w=n??{registries:{},blockedMcps:[]};await r({...w,registries:{...w.registries,[i]:{enabled:!0}}})},t[20]=n,t[21]=r,t[22]=q):q=t[22];const H=q,J=b?s.jsx(L,{name:"Deco Store",description:"Official deco MCP registry with curated integrations",icon:b.icon,enabled:l(p),onToggle:i=>P(p,i)}):s.jsx(I,{title:"Deco Store",description:"Connection not found — will be created automatically."});t[23]!==J?(y=s.jsx(ee,{title:"Deco Store",children:s.jsx(Q,{children:J})}),t[23]=J,t[24]=y):y=t[24];let M;t[25]!==a?(M=a?void 0:s.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>S(!0),children:[s.jsx(xe,{size:14}),"Add registry"]}),t[25]=a,t[26]=M):M=t[26];let T;t[27]!==H||t[28]!==a?(T=a&&s.jsx(we,{onCancel:()=>S(!1),onSuccess:H}),t[27]=H,t[28]=a,t[29]=T):T=t[29];let z;t[30]!==l?(z=l("self"),t[30]=l,t[31]=z):z=t[31];let E;t[32]!==P?(E=i=>P("self",i),t[32]=P,t[33]=E):E=t[33];let $;t[34]!==z||t[35]!==E?($=s.jsx(L,{name:"Private Registry",description:"Your organization's private MCP registry",enabled:z,onToggle:E,href:"/$org/settings/store/registry"}),t[34]=z,t[35]=E,t[36]=$):$=t[36];let U;t[37]!==W||t[38]!==P||t[39]!==l?(U=i=>s.jsx(L,{name:i.title,description:i.description??"Private MCP registry",icon:i.icon,enabled:l(i.id),onToggle:w=>P(i.id,w),onDelete:()=>W(i.id)},i.id),t[37]=W,t[38]=P,t[39]=l,t[40]=U):U=t[40];const V=A.map(U);let F;t[41]!==$||t[42]!==V?(F=s.jsxs(Q,{children:[$,V]}),t[41]=$,t[42]=V,t[43]=F):F=t[43],t[44]!==F||t[45]!==M||t[46]!==T?(c=s.jsxs(ee,{title:"Private Registries",actions:M,children:[T,F]}),t[44]=F,t[45]=M,t[46]=T,t[47]=c):c=t[47],v=ee,f="Community",x=Q,h=k?s.jsx(L,{name:"MCP Registry",description:"Community MCP registry with thousands of handy MCPs",icon:k.icon,enabled:l(N),onToggle:i=>P(N,i)}):s.jsx(I,{title:"MCP Registry",description:"Community MCP registry — not yet added",icon:s.jsx(ne,{fallback:"M",className:"size-8 bg-primary/10 text-primary"}),action:s.jsx(oe,{checked:!1,disabled:!0,onCheckedChange:ze})}),t[0]=m,t[1]=e.id,t[2]=j,t[3]=n,t[4]=o,t[5]=a,t[6]=r,t[7]=x,t[8]=v,t[9]=h,t[10]=f,t[11]=y,t[12]=c}else x=t[7],v=t[8],h=t[9],f=t[10],y=t[11],c=t[12];let d;t[48]!==x||t[49]!==h?(d=s.jsx(x,{children:h}),t[48]=x,t[49]=h,t[50]=d):d=t[50];let g;t[51]!==v||t[52]!==f||t[53]!==d?(g=s.jsx(v,{title:f,children:d}),t[51]=v,t[52]=f,t[53]=d,t[54]=g):g=t[54];let u;return t[55]!==y||t[56]!==c||t[57]!==g?(u=s.jsxs(s.Fragment,{children:[y,c,g]}),t[55]=y,t[56]=c,t[57]=g,t[58]=u):u=t[58],u}function ze(){}function Ee(){const t=D.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(ye,{className:"h-64 w-full"}),t[0]=e):e=t[0];let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(le,{fallback:$e,children:s.jsx(K.Suspense,{fallback:e,children:s.jsx(G,{children:s.jsx(G.Content,{children:s.jsx(G.Body,{children:s.jsxs(Pe,{children:[s.jsx(G.Title,{children:"Store"}),s.jsx(Te,{})]})})})})})}),t[1]=o):o=t[1],o}function $e(t){const{error:e}=t;return s.jsx(ke,{error:e??new Error("Failed to load store settings")})}function mt(){const t=D.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Re,{capability:"registry:manage",area:"the store",children:s.jsx(Ee,{})}),t[0]=e):e=t[0],e}export{mt as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CBGi99kW.js","assets/index-DjCrtoJM.js","assets/index-DfYyH4IW.css","assets/XCircle-Bz32In76.js","assets/CheckCircle-DYKqL__C.js","assets/Container-Dt-ev6Gi.js","assets/Settings02-B_z2JeIq.js","assets/use-mcp-client-Wf5qUXFF.js","assets/useInfiniteQuery-DiweShIv.js","assets/use-infinite-scroll-CHxQ8pHV.js","assets/studio-tools-C1zamUp1.js","assets/badge-CjjK5Sr7.js","assets/input-odGTsdHi.js","assets/dropdown-menu-D2S2HMhI.js","assets/Check-CkY-NLLZ.js","assets/ChevronRight-BJRYs8bt.js","assets/DotsVertical-BwZzHCbU.js","assets/table-DXm5sFe0.js","assets/toggle-group-i9f6SFf7.js","assets/use-view-mode-Dg3ZmYU0.js","assets/tooltip-MvXJgTec.js","assets/FilterLines-DwPmuK2v.js","assets/Globe01-BnLBFtky.js","assets/SearchMd-Dq0euRWv.js","assets/dialog-B4Gk40Ec.js","assets/X-BUrHvnq3.js","assets/AlertCircle-CNjNg2wb.js","assets/Upload01-CyW8Wv9e.js","assets/alert-dialog-CstddcEP.js","assets/card-DeDg0Mpx.js","assets/Trash01-BW2v6vxa.js","assets/label-CO8q2BMX.js","assets/select-B1gidrpT.js","assets/ChevronDown-B8XrNXeE.js","assets/ChevronUp-CgxnjYlU.js","assets/switch-Co2WNb8L.js","assets/textarea-DkHK4zFC.js","assets/RefreshCcw01-eSV0Gr10.js","assets/checkbox-D292XxeM.js","assets/Eye-Co-ItdFE.js","assets/LinkExternal01-ZepkFy5p.js","assets/use-copy-CGrsfbTf.js","assets/Key01-BuFH2ztD.js","assets/Plus-DrYyBDmj.js","assets/Play-4vubxqND.js"])))=>i.map(i=>d[i]);
2
+ import{e as m,f as n,g as c,j as t,l as f,r as l,_ as p}from"./index-DjCrtoJM.js";import{R as u}from"./require-capability-XeIce_Pd.js";import"./use-capability-COL6vTbP.js";import"./access-gate-CGZv0aLQ.js";import"./capability-load-error-B_GRCsfG.js";const g=l.lazy(()=>p(()=>import("./registry-layout-CBGi99kW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
@@ -1 +1 @@
1
- import{e as i,q as c}from"./index-BjoOIgbb.js";class l extends Error{constructor(r,s){super(r),this.status=s,this.name="StudioToolError"}status}async function u(o,r,s){const t=await fetch(`/api/${encodeURIComponent(o)}/tools/${encodeURIComponent(r)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s??{})});if(!t.ok){let e=`${r} failed (${t.status})`;try{const n=await t.json();n?.error&&(e=n.error)}catch{}throw new l(e,t.status)}return await t.json()}function p(){const o=i.c(5),{org:r}=c(),s=r.slug;let t;o[0]!==s?(t=(n,a)=>u(s,n,a),o[0]=s,o[1]=t):t=o[1];let e;return o[2]!==s||o[3]!==t?(e={orgSlug:s,call:t},o[2]=s,o[3]=t,o[4]=e):e=o[4],e}export{p as u};
1
+ import{e as i,q as c}from"./index-DjCrtoJM.js";class l extends Error{constructor(r,s){super(r),this.status=s,this.name="StudioToolError"}status}async function u(o,r,s){const t=await fetch(`/api/${encodeURIComponent(o)}/tools/${encodeURIComponent(r)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s??{})});if(!t.ok){let e=`${r} failed (${t.status})`;try{const n=await t.json();n?.error&&(e=n.error)}catch{}throw new l(e,t.status)}return await t.json()}function p(){const o=i.c(5),{org:r}=c(),s=r.slug;let t;o[0]!==s?(t=(n,a)=>u(s,n,a),o[0]=s,o[1]=t):t=o[1];let e;return o[2]!==s||o[3]!==t?(e={orgSlug:s,call:t},o[2]=s,o[3]=t,o[4]=e):e=o[4],e}export{p as u};
@@ -1 +1 @@
1
- import{r as c,j as i,a7 as C,bx as y,bh as T,a8 as I,by as M,bz as z,ag as H,e as A,c as g}from"./index-BjoOIgbb.js";var m="Switch",[U]=H(m),[q,L]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:a,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:a,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...a}=r,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:a=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:a});h.call(l,t),l.dispatchEvent(v)}},[u,t,a]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=A.c(9);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==a||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...a,children:n}),e[6]=a,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
1
+ import{r as c,j as i,a7 as C,bx as y,bh as T,a8 as I,by as M,bz as z,ag as H,e as A,c as g}from"./index-DjCrtoJM.js";var m="Switch",[U]=H(m),[q,L]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:a,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:a,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...a}=r,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:a=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:a});h.call(l,t),l.dispatchEvent(v)}},[u,t,a]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=A.c(9);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==a||e[7]!==s?(o=i.jsx($,{"data-slot":"switch",className:s,...a,children:n}),e[6]=a,e[7]=s,e[8]=o):o=e[8],o}export{W as S};
@@ -1,4 +1,4 @@
1
- import{L as Et,cq as _t,cr as It,bV as O,W as c,cs as oe,ct as Ve,cu as St,cv as Tt,U as wt,aK as A,aJ as U,aH as te,T as b,bp as f,ba as L,cw as At,cx as E,aI as Mt,o as he,r as $,e as Ee,q as Ot,j as Ct}from"./index-BjoOIgbb.js";import{a as Nt,u as Rt}from"./use-mcp-client-B46VYAN_.js";import{e as Pt,D as xt}from"./watch-sse-pool-BSePGeIN.js";import{d as Dt}from"./decopilot-sse-pool-TF6jERkV.js";var K;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function a(s){throw new Error}t.assertNever=a,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(n=>typeof s[s[n]]!="number"),i={};for(const n of o)i[n]=s[n];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(K||(K={}));var Ae;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(Ae||(Ae={}));K.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);K.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ie extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(a(i));else{let n=r,d=0;for(;d<i.path.length;){const l=i.path[d];d===i.path.length-1?(n[l]=n[l]||{_errors:[]},n[l]._errors.push(a(i))):n[l]=n[l]||{_errors:[]},n=n[l],d++}}};return s(this),r}static assert(e){if(!(e instanceof ie))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,K.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=a=>a.message){const a=Object.create(null),r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];a[o]=a[o]||[],a[o].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}ie.create=t=>new ie(t);var Me;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Me||(Me={}));var m;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(m||(m={}));const kt=1e4,Jr="true";function ue(t,e){return Et.chatAutosend(t,e)}function Lt(t){return t==="pending"||t==="sending"}function jt(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}return!e||typeof e!="object"||typeof e.createdAt!="number"||typeof e.message!="object"||!Lt(e.status)?null:e}function Wr(t,e,a,r,s=Date.now()){const o={message:r,createdAt:s,status:"pending"};return t.setItem(ue(e,a),JSON.stringify(o)),o}function Zt(t,e,a){const r=ue(e,a),s=jt(t.getItem(r));return s||(t.removeItem(r),null)}function Yr(t,e,a,r=Date.now()){const s=ue(e,a),o=Zt(t,e,a);return!o||o.status!=="pending"?null:r-o.createdAt>=kt?(t.removeItem(s),null):(t.setItem(s,JSON.stringify({...o,status:"sending"})),{message:o.message,createdAt:o.createdAt})}function Hr(t,e,a){t.removeItem(ue(e,a))}var ze="vercel.ai.error",$t=Symbol.for(ze),Oe,Ce,x=class Je extends(Ce=Error,Oe=$t,Ce){constructor({name:e,message:a,cause:r}){super(a),this[Oe]=!0,this.name=e,this.cause=r}static isInstance(e){return Je.hasMarker(e,ze)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function We(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var Ye="AI_InvalidArgumentError",He=`vercel.ai.error.${Ye}`,Ut=Symbol.for(He),Ne,Re,Bt=class extends(Re=x,Ne=Ut,Re){constructor({message:t,cause:e,argument:a}){super({name:Ye,message:t,cause:e}),this[Ne]=!0,this.argument=a}static isInstance(t){return x.hasMarker(t,He)}},qe="AI_JSONParseError",Ge=`vercel.ai.error.${qe}`,Ft=Symbol.for(Ge),Pe,xe,De=class extends(xe=x,Pe=Ft,xe){constructor({text:t,cause:e}){super({name:qe,message:`JSON parsing failed: Text: ${t}.
1
+ import{L as Et,cq as _t,cr as It,bV as O,W as c,cs as oe,ct as Ve,cu as St,cv as Tt,U as wt,aK as A,aJ as U,aH as te,T as b,bp as f,ba as L,cw as At,cx as E,aI as Mt,o as he,r as $,e as Ee,q as Ot,j as Ct}from"./index-DjCrtoJM.js";import{a as Nt,u as Rt}from"./use-mcp-client-Wf5qUXFF.js";import{e as Pt,D as xt}from"./watch-sse-pool-WsArg2kN.js";import{d as Dt}from"./decopilot-sse-pool-BemyIcDl.js";var K;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function a(s){throw new Error}t.assertNever=a,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(n=>typeof s[s[n]]!="number"),i={};for(const n of o)i[n]=s[n];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(K||(K={}));var Ae;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(Ae||(Ae={}));K.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);K.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ie extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(a(i));else{let n=r,d=0;for(;d<i.path.length;){const l=i.path[d];d===i.path.length-1?(n[l]=n[l]||{_errors:[]},n[l]._errors.push(a(i))):n[l]=n[l]||{_errors:[]},n=n[l],d++}}};return s(this),r}static assert(e){if(!(e instanceof ie))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,K.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=a=>a.message){const a=Object.create(null),r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];a[o]=a[o]||[],a[o].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}ie.create=t=>new ie(t);var Me;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Me||(Me={}));var m;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(m||(m={}));const kt=1e4,Jr="true";function ue(t,e){return Et.chatAutosend(t,e)}function Lt(t){return t==="pending"||t==="sending"}function jt(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}return!e||typeof e!="object"||typeof e.createdAt!="number"||typeof e.message!="object"||!Lt(e.status)?null:e}function Wr(t,e,a,r,s=Date.now()){const o={message:r,createdAt:s,status:"pending"};return t.setItem(ue(e,a),JSON.stringify(o)),o}function Zt(t,e,a){const r=ue(e,a),s=jt(t.getItem(r));return s||(t.removeItem(r),null)}function Yr(t,e,a,r=Date.now()){const s=ue(e,a),o=Zt(t,e,a);return!o||o.status!=="pending"?null:r-o.createdAt>=kt?(t.removeItem(s),null):(t.setItem(s,JSON.stringify({...o,status:"sending"})),{message:o.message,createdAt:o.createdAt})}function Hr(t,e,a){t.removeItem(ue(e,a))}var ze="vercel.ai.error",$t=Symbol.for(ze),Oe,Ce,x=class Je extends(Ce=Error,Oe=$t,Ce){constructor({name:e,message:a,cause:r}){super(a),this[Oe]=!0,this.name=e,this.cause=r}static isInstance(e){return Je.hasMarker(e,ze)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function We(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var Ye="AI_InvalidArgumentError",He=`vercel.ai.error.${Ye}`,Ut=Symbol.for(He),Ne,Re,Bt=class extends(Re=x,Ne=Ut,Re){constructor({message:t,cause:e,argument:a}){super({name:Ye,message:t,cause:e}),this[Ne]=!0,this.argument=a}static isInstance(t){return x.hasMarker(t,He)}},qe="AI_JSONParseError",Ge=`vercel.ai.error.${qe}`,Ft=Symbol.for(Ge),Pe,xe,De=class extends(xe=x,Pe=Ft,xe){constructor({text:t,cause:e}){super({name:qe,message:`JSON parsing failed: Text: ${t}.
2
2
  Error message: ${We(e)}`,cause:e}),this[Pe]=!0,this.text=t}static isInstance(t){return x.hasMarker(t,Ge)}},Xe="AI_TypeValidationError",Qe=`vercel.ai.error.${Xe}`,Vt=Symbol.for(Qe),ke,Le,Y=class ve extends(Le=x,ke=Vt,Le){constructor({value:e,cause:a,context:r}){let s="Type validation failed";if(r?.field&&(s+=` for ${r.field}`),r?.entityName||r?.entityId){s+=" (";const o=[];r.entityName&&o.push(r.entityName),r.entityId&&o.push(`id: "${r.entityId}"`),s+=o.join(", "),s+=")"}super({name:Xe,message:`${s}: Value: ${JSON.stringify(e)}.
3
3
  Error message: ${We(a)}`,cause:a}),this[ke]=!0,this.value=e,this.context=r}static isInstance(e){return x.hasMarker(e,Qe)}static wrap({value:e,cause:a,context:r}){var s,o,i;return ve.isInstance(a)&&a.value===e&&((s=a.context)==null?void 0:s.field)===r?.field&&((o=a.context)==null?void 0:o.entityName)===r?.entityName&&((i=a.context)==null?void 0:i.entityId)===r?.entityId?a:new ve({value:e,cause:a,context:r})}},ae=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const s=()=>{const o=a.length,i=new Array(e);for(let n=0;n<e;n++)i[n]=a[Math.random()*o|0];return i.join("")};if(t==null)return s;if(a.includes(r))throw new Bt({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${a}".`});return()=>`${t}${r}${s()}`};ae();var zt=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Jt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function je(t){const e=JSON.parse(t);return e===null||typeof e!="object"||zt.test(t)===!1&&Jt.test(t)===!1?e:Wt(e)}function Wt(t){let e=[t];for(;e.length;){const a=e;e=[];for(const r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const s in r){const o=r[s];o&&typeof o=="object"&&e.push(o)}}}return t}function Yt(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return je(t)}try{return je(t)}finally{Error.stackTraceLimit=e}}function _e(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){t.additionalProperties=!1;const{properties:a}=t;if(a!=null)for(const r of Object.keys(a))a[r]=Z(a[r])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(Z):Z(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(Z)),t.allOf!=null&&(t.allOf=t.allOf.map(Z)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(Z));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=Z(e[a]);return t}function Z(t){return typeof t=="boolean"?t:_e(t)}var Ht=Symbol("Let zodToJsonSchema decide on which parser to use"),Ze={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},qt=t=>typeof t=="string"?{...Ze,name:t}:{...Ze,...t};function C(){return{}}function Gt(t,e){var a,r,s;const o={type:"array"};return(a=t.type)!=null&&a._def&&((s=(r=t.type)==null?void 0:r._def)==null?void 0:s.typeName)!==m.ZodAny&&(o.items=g(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(o.minItems=t.minLength.value),t.maxLength&&(o.maxItems=t.maxLength.value),t.exactLength&&(o.minItems=t.exactLength.value,o.maxItems=t.exactLength.value),o}function Xt(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function Qt(){return{type:"boolean"}}function Ke(t,e){return g(t.type._def,e)}var Kt=(t,e)=>g(t.innerType._def,e);function et(t,e,a){const r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((s,o)=>et(t,e,s))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return ea(t)}}var ea=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function ta(t,e){return{...g(t.innerType._def,e),default:t.defaultValue()}}function aa(t,e){return e.effectStrategy==="input"?g(t.schema._def,e):C()}function ra(t){return{type:"string",enum:Array.from(t.values)}}var sa=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function na(t,e){const a=[g(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),g(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(s=>!!s),r=[];return a.forEach(s=>{if(sa(s))r.push(...s.allOf);else{let o=s;if("additionalProperties"in s&&s.additionalProperties===!1){const{additionalProperties:i,...n}=s;o=n}r.push(o)}}),r.length?{allOf:r}:void 0}function oa(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var pe=void 0,N={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(pe===void 0&&(pe=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),pe),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function tt(t,e){const a={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":R(a,"email",r.message,e);break;case"format:idn-email":R(a,"idn-email",r.message,e);break;case"pattern:zod":w(a,N.email,r.message,e);break}break;case"url":R(a,"uri",r.message,e);break;case"uuid":R(a,"uuid",r.message,e);break;case"regex":w(a,r.regex,r.message,e);break;case"cuid":w(a,N.cuid,r.message,e);break;case"cuid2":w(a,N.cuid2,r.message,e);break;case"startsWith":w(a,RegExp(`^${fe(r.value,e)}`),r.message,e);break;case"endsWith":w(a,RegExp(`${fe(r.value,e)}$`),r.message,e);break;case"datetime":R(a,"date-time",r.message,e);break;case"date":R(a,"date",r.message,e);break;case"time":R(a,"time",r.message,e);break;case"duration":R(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":{w(a,RegExp(fe(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&R(a,"ipv4",r.message,e),r.version!=="v4"&&R(a,"ipv6",r.message,e);break}case"base64url":w(a,N.base64url,r.message,e);break;case"jwt":w(a,N.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&w(a,N.ipv4Cidr,r.message,e),r.version!=="v4"&&w(a,N.ipv6Cidr,r.message,e);break}case"emoji":w(a,N.emoji(),r.message,e);break;case"ulid":{w(a,N.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{R(a,"binary",r.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{w(a,N.base64,r.message,e);break}}break}case"nanoid":w(a,N.nanoid,r.message,e)}return a}function fe(t,e){return e.patternStrategy==="escape"?la(t):t}var ia=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function la(t){let e="";for(let a=0;a<t.length;a++)ia.has(t[a])||(e+="\\"),e+=t[a];return e}function R(t,e,a,r){var s;t.format||(s=t.anyOf)!=null&&s.some(o=>o.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function w(t,e,a,r){var s;t.pattern||(s=t.allOf)!=null&&s.some(o=>o.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:$e(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=$e(e,r)}function $e(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},s=r.i?t.source.toLowerCase():t.source;let o="",i=!1,n=!1,d=!1;for(let l=0;l<s.length;l++){if(i){o+=s[l],i=!1;continue}if(r.i){if(n){if(s[l].match(/[a-z]/)){d?(o+=s[l],o+=`${s[l-2]}-${s[l]}`.toUpperCase(),d=!1):s[l+1]==="-"&&((a=s[l+2])!=null&&a.match(/[a-z]/))?(o+=s[l],d=!0):o+=`${s[l]}${s[l].toUpperCase()}`;continue}}else if(s[l].match(/[a-z]/)){o+=`[${s[l]}${s[l].toUpperCase()}]`;continue}}if(r.m){if(s[l]==="^"){o+=`(^|(?<=[\r
4
4
  ]))`;continue}else if(s[l]==="$"){o+=`($|(?=[\r
@@ -1 +1 @@
1
- import{e as c,c as i,j as r}from"./index-BjoOIgbb.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,f as d,m as e};
1
+ import{e as c,c as i,j as r}from"./index-DjCrtoJM.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{x as T,p as a,b,d as c,f as d,m as e};
@@ -1 +1 @@
1
- import{r as f,j as d,be as k,a7 as p,a8 as h,bf as y,ag as M,bg as P,bh as S,bi as F,bj as V,bk as D,e as g,c as x}from"./index-BjoOIgbb.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,T]=G(m),C=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",j=f.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=T(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=T(I,a),i=w(a),l=E(o.baseId,t),v=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:h(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:h(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:h(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=T(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=f.useRef(u);return f.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=g.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=x("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=g.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=x(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=g.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=x(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=g.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=x("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,U as b,O as c};
1
+ import{r as f,j as d,be as k,a7 as p,a8 as h,bf as y,ag as M,bg as P,bh as S,bi as F,bj as V,bk as D,e as g,c as x}from"./index-DjCrtoJM.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,T]=G(m),C=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",j=f.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=T(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=T(I,a),i=w(a),l=E(o.baseId,t),v=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:h(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:h(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:h(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=f.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=T(R,a),l=E(i.baseId,t),v=$(i.baseId,t),u=t===i.value,c=f.useRef(u);return f.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=g.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=x("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=g.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=x(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=g.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=x(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=g.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=x("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,U as b,O as c};
@@ -1 +1 @@
1
- import{i as o}from"./AlertCircle-BQLR7I4E.js";import{i as t}from"./CheckCircle-BBK-3Pzt.js";import{a as r}from"./DotsVertical-Dok1GVxI.js";import{ab as a}from"./agent-icon-CjlB-XbA.js";import{l}from"./index-BjoOIgbb.js";import{i as n}from"./XCircle-G0WrPq0g.js";const i={requires_action:{label:"Needs review",verb:"Waiting for your review",icon:o,iconClassName:"text-orange-500",labelColor:"text-orange-600 dark:text-orange-400"},failed:{label:"Failed",verb:"Something went wrong",icon:n,iconClassName:"text-red-500",labelColor:"text-red-600 dark:text-red-400"},expired:{label:"Timed out",verb:"Stopped responding",icon:a,iconClassName:"text-amber-500",labelColor:"text-amber-600 dark:text-amber-400"},in_progress:{label:"Running",verb:"Agent is working",icon:l,iconClassName:"text-blue-500",labelColor:"text-blue-600 dark:text-blue-400"},completed:{label:"Done",verb:"Completed",icon:t,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},m={label:"Unknown",verb:"Unknown status",icon:r,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function x(e){return i[e??"completed"]??m}export{i as S,x as g};
1
+ import{i as o}from"./AlertCircle-CNjNg2wb.js";import{i as t}from"./CheckCircle-DYKqL__C.js";import{a as r}from"./DotsVertical-BwZzHCbU.js";import{ab as a}from"./agent-icon-DbC1U9Lv.js";import{l}from"./index-DjCrtoJM.js";import{i as n}from"./XCircle-Bz32In76.js";const i={requires_action:{label:"Needs review",verb:"Waiting for your review",icon:o,iconClassName:"text-orange-500",labelColor:"text-orange-600 dark:text-orange-400"},failed:{label:"Failed",verb:"Something went wrong",icon:n,iconClassName:"text-red-500",labelColor:"text-red-600 dark:text-red-400"},expired:{label:"Timed out",verb:"Stopped responding",icon:a,iconClassName:"text-amber-500",labelColor:"text-amber-600 dark:text-amber-400"},in_progress:{label:"Running",verb:"Agent is working",icon:l,iconClassName:"text-blue-500",labelColor:"text-blue-600 dark:text-blue-400"},completed:{label:"Done",verb:"Completed",icon:t,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},m={label:"Unknown",verb:"Unknown status",icon:r,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function x(e){return i[e??"completed"]??m}export{i as S,x as g};
@@ -1 +1 @@
1
- import{e as o,c as l,j as n}from"./index-BjoOIgbb.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
1
+ import{e as o,c as l,j as n}from"./index-DjCrtoJM.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-xl bg-background dark:bg-input/30 px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
@@ -1 +1 @@
1
- import{r as x,bh as b,j as c,a7 as m,a8 as k,b5 as p,be as M,bf as T,bg as S,bj as A,ag as F,bt as $,e as P,c as C}from"./index-BjoOIgbb.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});h.displayName=v;var[O,H]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=h,U=N;const q=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(q({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(U,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
1
+ import{r as x,bh as b,j as c,a7 as m,a8 as k,b5 as p,be as M,bf as T,bg as S,bj as A,ag as F,bt as $,e as P,c as C}from"./index-DjCrtoJM.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=F(v,[T]),I=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});h.displayName=v;var[O,H]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=S(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(A,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=H(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),L=h,U=N;const q=$("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(L,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(q({variant:o.variant||t,size:o.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=r,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(U,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{K as T,Q as a};
@@ -1 +1 @@
1
- import{e as c,c as E,j as l,r as d,g as S,aU as T,P as $,X as y,Z as N}from"./index-BjoOIgbb.js";import{n as w}from"./ChevronLeft-DtP_Ayjz.js";import{i as C}from"./ChevronRight-DUzhuedZ.js";function j(t){const e=c.c(14);let o,s,n,r,a;e[0]!==t?({active:o,className:s,ref:r,type:a,...n}=t,e[0]=t,e[1]=o,e[2]=s,e[3]=n,e[4]=r,e[5]=a):(o=e[1],s=e[2],n=e[3],r=e[4],a=e[5]);const f=a===void 0?"button":a,h=o?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let u;e[6]!==s||e[7]!==h?(u=E("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",h,s),e[6]=s,e[7]=h,e[8]=u):u=e[8];let g;return e[9]!==n||e[10]!==r||e[11]!==u||e[12]!==f?(g=l.jsx("button",{ref:r,type:f,className:u,...n}),e[9]=n,e[10]=r,e[11]=u,e[12]=f,e[13]=g):g=e[13],g}const p=d.createContext(null);function m(){const t=d.use(p);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function k(t){const e=c.c(8),{children:o}=t,[s,n]=d.useState(null),[r,a]=d.useState(null),[f,h]=d.useState(null),[u,g]=d.useState(null);let b;e[0]!==f||e[1]!==u||e[2]!==r||e[3]!==s?(b={togglesEl:s,setTogglesEl:n,tabsEl:r,setTabsEl:a,centerEl:f,setCenterEl:h,rightEl:u,setRightEl:g},e[0]=f,e[1]=u,e[2]=r,e[3]=s,e[4]=b):b=e[4];let x;return e[5]!==o||e[6]!==b?(x=l.jsx(p,{value:b,children:o}),e[5]=o,e[6]=b,e[7]=x):x=e[7],x}function i(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx(k,{children:l.jsx("div",{className:"flex flex-col h-full min-h-0",children:o})}),e[0]=o,e[1]=s):s=e[1],s}function L(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"app-titlebar wco-drag shrink-0 grid grid-cols-3 items-center pl-1 pr-2 pt-0.25 h-12 bg-sidebar",children:o}),e[0]=o,e[1]=s):s=e[1],s}function _(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:o}),e[0]=o,e[1]=s):s=e[1],s}function R(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:o}),e[0]=o,e[1]=s):s=e[1],s}function P(){const t=c.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(j,{onClick:G,"aria-label":"Go back",title:"Go back",children:l.jsx(w,{size:16})}),t[0]=e):e=t[0];let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsxs(l.Fragment,{children:[e,l.jsx(j,{onClick:z,"aria-label":"Go forward",title:"Go forward",children:l.jsx(C,{size:16})})]}),t[1]=o):o=t[1],o}function z(){return window.history.forward()}function G(){return window.history.back()}function B(){const t=c.c(7),o=y().logo??N,s=typeof o=="string"?o:o.light,n=typeof o=="string"?o:o.dark;let r;t[0]!==s?(r=l.jsx("img",{src:s,alt:"Logo",className:"size-6 object-contain dark:hidden"}),t[0]=s,t[1]=r):r=t[1];let a;t[2]!==n?(a=l.jsx("img",{src:n,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),t[2]=n,t[3]=a):a=t[3];let f;return t[4]!==r||t[5]!==a?(f=l.jsxs("span",{className:"wco-hide flex items-center shrink-0 px-2",children:[r,a]}),t[4]=r,t[5]=a,t[6]=f):f=t[6],f}function v(){const t=c.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(d.Suspense,{fallback:l.jsx("span",{className:"wco-hide shrink-0 size-6 mx-2"}),children:l.jsx(B,{})}),t[0]=e):e=t[0],e}function I(){const t=c.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=S(e);let s;t[1]!==o?(s={org:o},t[1]=o,t[2]=s):s=t[2];let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(v,{}),t[3]=n):n=t[3];let r;return t[4]!==s?(r=l.jsx($,{to:"/$org",params:s,"aria-label":"Back to home",title:"Back to home",className:"wco-no-drag flex items-center shrink-0 cursor-pointer pl-1",children:n}),t[4]=s,t[5]=r):r=t[5],r}function D(){const t=c.c(2),{setCenterEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=o):o=t[1],o}function F(t){const e=c.c(3),{children:o}=t,{centerEl:s}=m();if(!s)return null;let n;return e[0]!==s||e[1]!==o?(n=T.createPortal(o,s),e[0]=s,e[1]=o,e[2]=n):n=e[2],n}function H(){const t=c.c(2),{setTabsEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"shrink-0 flex items-center"}),t[0]=e,t[1]=o):o=t[1],o}function O(t){const e=c.c(3),{children:o}=t,{tabsEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}function U(){const t=c.c(2),{setTogglesEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"contents"}),t[0]=e,t[1]=o):o=t[1],o}function A(t){const e=c.c(3),{children:o}=t,{togglesEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}function X(){const t=c.c(2),{setRightEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=o):o=t[1],o}function Z(t){const e=c.c(3),{children:o}=t,{rightEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}i.Provider=k;i.Header=L;i.LeftColumn=_;i.RightColumn=R;i.Nav=P;i.Logo=v;i.LogoLink=I;i.CenterSlot=D;i.Center=F;i.TabsSlot=H;i.Tabs=O;i.TogglesSlot=U;i.Toggles=A;i.RightSlot=X;i.Right=Z;export{j as T,i as a};
1
+ import{e as c,c as E,j as l,r as d,g as S,aU as T,P as $,X as y,Z as N}from"./index-DjCrtoJM.js";import{n as w}from"./ChevronLeft-B6gErU0k.js";import{i as C}from"./ChevronRight-BJRYs8bt.js";function j(t){const e=c.c(14);let o,s,n,r,a;e[0]!==t?({active:o,className:s,ref:r,type:a,...n}=t,e[0]=t,e[1]=o,e[2]=s,e[3]=n,e[4]=r,e[5]=a):(o=e[1],s=e[2],n=e[3],r=e[4],a=e[5]);const f=a===void 0?"button":a,h=o?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground";let u;e[6]!==s||e[7]!==h?(u=E("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md transition-colors","max-md:[&_svg]:size-5","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",h,s),e[6]=s,e[7]=h,e[8]=u):u=e[8];let g;return e[9]!==n||e[10]!==r||e[11]!==u||e[12]!==f?(g=l.jsx("button",{ref:r,type:f,className:u,...n}),e[9]=n,e[10]=r,e[11]=u,e[12]=f,e[13]=g):g=e[13],g}const p=d.createContext(null);function m(){const t=d.use(p);if(!t)throw new Error("Toolbar.* must be used inside <Toolbar>");return t}function k(t){const e=c.c(8),{children:o}=t,[s,n]=d.useState(null),[r,a]=d.useState(null),[f,h]=d.useState(null),[u,g]=d.useState(null);let b;e[0]!==f||e[1]!==u||e[2]!==r||e[3]!==s?(b={togglesEl:s,setTogglesEl:n,tabsEl:r,setTabsEl:a,centerEl:f,setCenterEl:h,rightEl:u,setRightEl:g},e[0]=f,e[1]=u,e[2]=r,e[3]=s,e[4]=b):b=e[4];let x;return e[5]!==o||e[6]!==b?(x=l.jsx(p,{value:b,children:o}),e[5]=o,e[6]=b,e[7]=x):x=e[7],x}function i(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx(k,{children:l.jsx("div",{className:"flex flex-col h-full min-h-0",children:o})}),e[0]=o,e[1]=s):s=e[1],s}function L(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"app-titlebar wco-drag shrink-0 grid grid-cols-3 items-center pl-1 pr-2 pt-0.25 h-12 bg-sidebar",children:o}),e[0]=o,e[1]=s):s=e[1],s}function _(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"flex items-center gap-0.5 min-w-0 justify-self-start",children:o}),e[0]=o,e[1]=s):s=e[1],s}function R(t){const e=c.c(2),{children:o}=t;let s;return e[0]!==o?(s=l.jsx("div",{className:"flex items-center justify-end gap-0.5 min-w-0 justify-self-end",children:o}),e[0]=o,e[1]=s):s=e[1],s}function P(){const t=c.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(j,{onClick:G,"aria-label":"Go back",title:"Go back",children:l.jsx(w,{size:16})}),t[0]=e):e=t[0];let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=l.jsxs(l.Fragment,{children:[e,l.jsx(j,{onClick:z,"aria-label":"Go forward",title:"Go forward",children:l.jsx(C,{size:16})})]}),t[1]=o):o=t[1],o}function z(){return window.history.forward()}function G(){return window.history.back()}function B(){const t=c.c(7),o=y().logo??N,s=typeof o=="string"?o:o.light,n=typeof o=="string"?o:o.dark;let r;t[0]!==s?(r=l.jsx("img",{src:s,alt:"Logo",className:"size-6 object-contain dark:hidden"}),t[0]=s,t[1]=r):r=t[1];let a;t[2]!==n?(a=l.jsx("img",{src:n,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),t[2]=n,t[3]=a):a=t[3];let f;return t[4]!==r||t[5]!==a?(f=l.jsxs("span",{className:"wco-hide flex items-center shrink-0 px-2",children:[r,a]}),t[4]=r,t[5]=a,t[6]=f):f=t[6],f}function v(){const t=c.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=l.jsx(d.Suspense,{fallback:l.jsx("span",{className:"wco-hide shrink-0 size-6 mx-2"}),children:l.jsx(B,{})}),t[0]=e):e=t[0],e}function I(){const t=c.c(6);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:o}=S(e);let s;t[1]!==o?(s={org:o},t[1]=o,t[2]=s):s=t[2];let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=l.jsx(v,{}),t[3]=n):n=t[3];let r;return t[4]!==s?(r=l.jsx($,{to:"/$org",params:s,"aria-label":"Back to home",title:"Back to home",className:"wco-no-drag flex items-center shrink-0 cursor-pointer pl-1",children:n}),t[4]=s,t[5]=r):r=t[5],r}function D(){const t=c.c(2),{setCenterEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"min-w-0 flex items-center justify-center gap-2"}),t[0]=e,t[1]=o):o=t[1],o}function F(t){const e=c.c(3),{children:o}=t,{centerEl:s}=m();if(!s)return null;let n;return e[0]!==s||e[1]!==o?(n=T.createPortal(o,s),e[0]=s,e[1]=o,e[2]=n):n=e[2],n}function H(){const t=c.c(2),{setTabsEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"shrink-0 flex items-center"}),t[0]=e,t[1]=o):o=t[1],o}function O(t){const e=c.c(3),{children:o}=t,{tabsEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}function U(){const t=c.c(2),{setTogglesEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"contents"}),t[0]=e,t[1]=o):o=t[1],o}function A(t){const e=c.c(3),{children:o}=t,{togglesEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}function X(){const t=c.c(2),{setRightEl:e}=m();let o;return t[0]!==e?(o=l.jsx("div",{ref:e,className:"flex items-center justify-end gap-0.5 shrink-0"}),t[0]=e,t[1]=o):o=t[1],o}function Z(t){const e=c.c(3),{children:o}=t,{rightEl:s}=m();if(!s)return null;let n;return e[0]!==o||e[1]!==s?(n=T.createPortal(o,s),e[0]=o,e[1]=s,e[2]=n):n=e[2],n}i.Provider=k;i.Header=L;i.LeftColumn=_;i.RightColumn=R;i.Nav=P;i.Logo=v;i.LogoLink=I;i.CenterSlot=D;i.Center=F;i.TabsSlot=H;i.Tabs=O;i.TogglesSlot=U;i.Toggles=A;i.RightSlot=X;i.Right=Z;export{j as T,i as a};
@@ -1 +1 @@
1
- import{e as h,q as I,K as T,s as C,M as b,v as k,C as N,j as o}from"./index-BjoOIgbb.js";import{B as x}from"./badge-GxV01_sa.js";import{b as y,T as j,a as g,c as S}from"./tooltip-CKtclZb-.js";import{g as _}from"./types-2N8PTdbg.js";import{s as $}from"./Eye-Dmik5hYP.js";import{s as A}from"./Star01--MeVNqbA.js";import{a8 as w}from"./agent-icon-CjlB-XbA.js";function M(m){const e=h.c(11),{connectionId:a}=m,{org:r}=I();let i,t,l;e[0]!==a||e[1]!==r.slug?(i=new URL(`/api/${r.slug}/mcp/${a}`,window.location.origin),l=C,t=T.isMCPAuthenticated(i.href,null),e[0]=a,e[1]=r.slug,e[2]=i,e[3]=t,e[4]=l):(i=e[2],t=e[3],l=e[4]);let s;e[5]!==i||e[6]!==r.id?(s=()=>b({url:i.href,token:null,orgId:r.id}),e[5]=i,e[6]=r.id,e[7]=s):s=e[7];let n;e[8]!==t||e[9]!==s?(n={queryKey:t,queryFn:s},e[8]=t,e[9]=s,e[10]=n):n=e[10];const{data:c}=l(n);return c}const H=[{key:"readOnlyHint",label:"Read-only",Icon:$,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:k,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:N,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:A,variant:"outline"}];function z(m){const e=h.c(18),{annotations:a,_meta:r}=m;let i;e[0]!==r?(i=_(r),e[0]=r,e[1]=i):i=e[1];const t=!!i;let l,s,n,c,u;if(e[2]!==a||e[3]!==t){u=Symbol.for("react.early_return_sentinel");e:{const f=a?H.filter(v=>a[v.key]===!0):[];if(f.length===0&&!t){u=null;break e}l=S,s="flex gap-1 flex-nowrap",e[9]!==t?(n=t&&o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(w,{})})}),o.jsx(g,{children:"Interactive"})]}),e[9]=t,e[10]=n):n=e[10],c=f.map(P)}e[2]=a,e[3]=t,e[4]=l,e[5]=s,e[6]=n,e[7]=c,e[8]=u}else l=e[4],s=e[5],n=e[6],c=e[7],u=e[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let d;e[11]!==s||e[12]!==n||e[13]!==c?(d=o.jsxs("div",{className:s,children:[n,c]}),e[11]=s,e[12]=n,e[13]=c,e[14]=d):d=e[14];let p;return e[15]!==l||e[16]!==d?(p=o.jsx(l,{children:d}),e[15]=l,e[16]=d,e[17]=p):p=e[17],p}function P(m){const{label:e,Icon:a,variant:r}=m;return o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:r,className:"size-6 p-1",children:o.jsx(a,{})})}),o.jsx(g,{children:e})]},e)}export{z as T,M as u};
1
+ import{e as h,q as I,K as T,s as C,M as b,v as k,C as N,j as o}from"./index-DjCrtoJM.js";import{B as x}from"./badge-CjjK5Sr7.js";import{b as y,T as j,a as g,c as S}from"./tooltip-MvXJgTec.js";import{g as _}from"./types-B5hLLDbz.js";import{s as $}from"./Eye-Co-ItdFE.js";import{s as A}from"./Star01-ChWAyIjY.js";import{a8 as w}from"./agent-icon-DbC1U9Lv.js";function M(m){const e=h.c(11),{connectionId:a}=m,{org:r}=I();let i,t,l;e[0]!==a||e[1]!==r.slug?(i=new URL(`/api/${r.slug}/mcp/${a}`,window.location.origin),l=C,t=T.isMCPAuthenticated(i.href,null),e[0]=a,e[1]=r.slug,e[2]=i,e[3]=t,e[4]=l):(i=e[2],t=e[3],l=e[4]);let s;e[5]!==i||e[6]!==r.id?(s=()=>b({url:i.href,token:null,orgId:r.id}),e[5]=i,e[6]=r.id,e[7]=s):s=e[7];let n;e[8]!==t||e[9]!==s?(n={queryKey:t,queryFn:s},e[8]=t,e[9]=s,e[10]=n):n=e[10];const{data:c}=l(n);return c}const H=[{key:"readOnlyHint",label:"Read-only",Icon:$,variant:"secondary"},{key:"destructiveHint",label:"Destructive",Icon:k,variant:"destructive"},{key:"idempotentHint",label:"Idempotent",Icon:N,variant:"secondary"},{key:"openWorldHint",label:"Open-world",Icon:A,variant:"outline"}];function z(m){const e=h.c(18),{annotations:a,_meta:r}=m;let i;e[0]!==r?(i=_(r),e[0]=r,e[1]=i):i=e[1];const t=!!i;let l,s,n,c,u;if(e[2]!==a||e[3]!==t){u=Symbol.for("react.early_return_sentinel");e:{const f=a?H.filter(v=>a[v.key]===!0):[];if(f.length===0&&!t){u=null;break e}l=S,s="flex gap-1 flex-nowrap",e[9]!==t?(n=t&&o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:"secondary",className:"size-6 p-1",children:o.jsx(w,{})})}),o.jsx(g,{children:"Interactive"})]}),e[9]=t,e[10]=n):n=e[10],c=f.map(P)}e[2]=a,e[3]=t,e[4]=l,e[5]=s,e[6]=n,e[7]=c,e[8]=u}else l=e[4],s=e[5],n=e[6],c=e[7],u=e[8];if(u!==Symbol.for("react.early_return_sentinel"))return u;let d;e[11]!==s||e[12]!==n||e[13]!==c?(d=o.jsxs("div",{className:s,children:[n,c]}),e[11]=s,e[12]=n,e[13]=c,e[14]=d):d=e[14];let p;return e[15]!==l||e[16]!==d?(p=o.jsx(l,{children:d}),e[15]=l,e[16]=d,e[17]=p):p=e[17],p}function P(m){const{label:e,Icon:a,variant:r}=m;return o.jsxs(y,{children:[o.jsx(j,{asChild:!0,children:o.jsx(x,{asChild:!0,variant:r,className:"size-6 p-1",children:o.jsx(a,{})})}),o.jsx(g,{children:e})]},e)}export{z as T,M as u};
@@ -1 +1 @@
1
- import{r as a,j as c,a7 as H,bi as Z,bh as ee,dl as te,bx as $,dm as oe,a8 as b,bk as G,dn as re,dp as V,dq as ne,dr as se,ag as ae,ds as ie,dt as le,e as _,c as ce}from"./index-BjoOIgbb.js";var ue=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),de="VisuallyHidden",z=a.forwardRef((o,e)=>c.jsx(H.span,{...o,ref:e,style:{...ue,...o.style}}));z.displayName=de;var pe=z,[O]=ae("Tooltip",[V]),D=V(),B="TooltipProvider",fe=700,A="tooltip.open",[ve,k]=O(B),F=o=>{const{__scopeTooltip:e,delayDuration:t=fe,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,i=a.useRef(!0),d=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(ve,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=B;var R="Tooltip",[he,j]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:d}=o,l=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),h=Z(),f=a.useRef(0),x=i??l.disableHoverableContent,m=d??l.delayDuration,g=a.useRef(!1),[y,T]=ee({prop:r,defaultProp:n??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),s?.(S)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(te,{...p,children:c.jsx(he,{scope:e,contentId:h,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:a.useCallback(()=>{x?P():(window.clearTimeout(f.current),f.current=0)},[P,x]),onOpen:E,onClose:P,disableHoverableContent:x,children:t})})};Y.displayName=R;var M="TooltipTrigger",q=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=j(M,t),s=k(M,t),i=D(t),d=a.useRef(null),l=$(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(oe,{asChild:!0,...i,children:c.jsx(H.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:l,onPointerMove:b(o.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});q.displayName=M;var I="TooltipPortal",[xe,ge]=O(I,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=j(I,e);return c.jsx(xe,{scope:e,forceMount:t,children:c.jsx(G,{present:t||s.open,children:c.jsx(re,{asChild:!0,container:n,children:r})})})};U.displayName=I;var C="TooltipContent",W=a.forwardRef((o,e)=>{const t=ge(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,i=j(C,o.__scopeTooltip);return c.jsx(G,{present:r||i.open,children:i.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(me,{side:n,...s,ref:e})})}),me=a.forwardRef((o,e)=>{const t=j(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=a.useRef(null),s=$(e,n),[i,d]=a.useState(null),{trigger:l,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,h=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((x,m)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},T=Ce(y,g.getBoundingClientRect()),w=we(y,T),E=Ee(m.getBoundingClientRect()),P=Re([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(l&&u){const x=g=>f(g,u),m=g=>f(g,l);return l.addEventListener("pointerleave",x),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",m)}}},[l,u,f,h]),a.useEffect(()=>{if(i){const x=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=l?.contains(g)||u?.contains(g),w=!Pe(y,i);T?h():w&&(h(),p())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,u,i,p,h]),c.jsx(K,{...o,ref:s})}),[Te,ye]=O(R,{isInside:!1}),be=ie("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...d}=o,l=j(C,t),p=D(t),{onClose:u}=l;return a.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),a.useEffect(()=>{if(l.trigger){const v=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[l.trigger,u]),c.jsx(ne,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(se,{"data-state":l.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(be,{children:r}),c.jsx(Te,{scope:t,isInside:!0,children:c.jsx(pe,{id:l.contentId,role:"tooltip",children:n||r})})]})})});W.displayName=C;var X="TooltipArrow",J=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return ye(X,t).isInside?null:c.jsx(le,{...n,...r,ref:e})});J.displayName=X;function Ce(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function we(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Ee(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function Pe(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const d=e[s],l=e[i],p=d.x,u=d.y,v=l.x,h=l.y;u>r!=h>r&&t<(v-p)*(r-u)/(h-u)+p&&(n=!n)}return n}function Re(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),_e(e)}function _e(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var je=F,Oe=Y,De=q,Le=U,Ae=W,Me=J;const Q=768,L=()=>globalThis.innerWidth<Q;function Ne(){const o=_.c(2),[e,t]=a.useState(L);let r,n;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const s=()=>t(L),i=globalThis.matchMedia(`(max-width: ${Q-1}px)`);return i.addEventListener("change",s),t(L),()=>i.removeEventListener("change",s)},n=[],o[0]=r,o[1]=n):(r=o[0],n=o[1]),a.useEffect(r,n),e}function ke(o){const e=_.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(je,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Se(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(ke,{children:c.jsx(Oe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function He(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(De,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function $e(o){const e=_.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const i=s===void 0?0:s;let d;e[5]!==r?(d=ce("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(Me,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=l):l=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==i||e[11]!==d?(p=c.jsx(Le,{children:c.jsxs(Ae,{"data-slot":"tooltip-content",sideOffset:i,className:d,...n,children:[t,l]})}),e[8]=t,e[9]=n,e[10]=i,e[11]=d,e[12]=p):p=e[12],p}export{He as T,ue as V,$e as a,Se as b,ke as c,Ne as u};
1
+ import{r as a,j as c,a7 as H,bi as Z,bh as ee,dl as te,bx as $,dm as oe,a8 as b,bk as G,dn as re,dp as V,dq as ne,dr as se,ag as ae,ds as ie,dt as le,e as _,c as ce}from"./index-DjCrtoJM.js";var ue=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),de="VisuallyHidden",z=a.forwardRef((o,e)=>c.jsx(H.span,{...o,ref:e,style:{...ue,...o.style}}));z.displayName=de;var pe=z,[O]=ae("Tooltip",[V]),D=V(),B="TooltipProvider",fe=700,A="tooltip.open",[ve,k]=O(B),F=o=>{const{__scopeTooltip:e,delayDuration:t=fe,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,i=a.useRef(!0),d=a.useRef(!1),l=a.useRef(0);return a.useEffect(()=>{const p=l.current;return()=>window.clearTimeout(p)},[]),c.jsx(ve,{scope:e,isOpenDelayedRef:i,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=B;var R="Tooltip",[he,j]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:i,delayDuration:d}=o,l=k(R,o.__scopeTooltip),p=D(e),[u,v]=a.useState(null),h=Z(),f=a.useRef(0),x=i??l.disableHoverableContent,m=d??l.delayDuration,g=a.useRef(!1),[y,T]=ee({prop:r,defaultProp:n??!1,onChange:S=>{S?(l.onOpen(),document.dispatchEvent(new CustomEvent(A))):l.onClose(),s?.(S)},caller:R}),w=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),N=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(te,{...p,children:c.jsx(he,{scope:e,contentId:h,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{l.isOpenDelayedRef.current?N():E()},[l.isOpenDelayedRef,N,E]),onTriggerLeave:a.useCallback(()=>{x?P():(window.clearTimeout(f.current),f.current=0)},[P,x]),onOpen:E,onClose:P,disableHoverableContent:x,children:t})})};Y.displayName=R;var M="TooltipTrigger",q=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=j(M,t),s=k(M,t),i=D(t),d=a.useRef(null),l=$(e,d,n.onTriggerChange),p=a.useRef(!1),u=a.useRef(!1),v=a.useCallback(()=>p.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(oe,{asChild:!0,...i,children:c.jsx(H.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:l,onPointerMove:b(o.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});q.displayName=M;var I="TooltipPortal",[xe,ge]=O(I,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=j(I,e);return c.jsx(xe,{scope:e,forceMount:t,children:c.jsx(G,{present:t||s.open,children:c.jsx(re,{asChild:!0,container:n,children:r})})})};U.displayName=I;var C="TooltipContent",W=a.forwardRef((o,e)=>{const t=ge(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,i=j(C,o.__scopeTooltip);return c.jsx(G,{present:r||i.open,children:i.disableHoverableContent?c.jsx(K,{side:n,...s,ref:e}):c.jsx(me,{side:n,...s,ref:e})})}),me=a.forwardRef((o,e)=>{const t=j(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=a.useRef(null),s=$(e,n),[i,d]=a.useState(null),{trigger:l,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,h=a.useCallback(()=>{d(null),v(!1)},[v]),f=a.useCallback((x,m)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},T=Ce(y,g.getBoundingClientRect()),w=we(y,T),E=Ee(m.getBoundingClientRect()),P=Re([...w,...E]);d(P),v(!0)},[v]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(l&&u){const x=g=>f(g,u),m=g=>f(g,l);return l.addEventListener("pointerleave",x),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",m)}}},[l,u,f,h]),a.useEffect(()=>{if(i){const x=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=l?.contains(g)||u?.contains(g),w=!Pe(y,i);T?h():w&&(h(),p())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,u,i,p,h]),c.jsx(K,{...o,ref:s})}),[Te,ye]=O(R,{isInside:!1}),be=ie("TooltipContent"),K=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:i,...d}=o,l=j(C,t),p=D(t),{onClose:u}=l;return a.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),a.useEffect(()=>{if(l.trigger){const v=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[l.trigger,u]),c.jsx(ne,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(se,{"data-state":l.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(be,{children:r}),c.jsx(Te,{scope:t,isInside:!0,children:c.jsx(pe,{id:l.contentId,role:"tooltip",children:n||r})})]})})});W.displayName=C;var X="TooltipArrow",J=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return ye(X,t).isInside?null:c.jsx(le,{...n,...r,ref:e})});J.displayName=X;function Ce(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function we(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Ee(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function Pe(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,i=e.length-1;s<e.length;i=s++){const d=e[s],l=e[i],p=d.x,u=d.y,v=l.x,h=l.y;u>r!=h>r&&t<(v-p)*(r-u)/(h-u)+p&&(n=!n)}return n}function Re(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),_e(e)}function _e(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],i=e[e.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(n.y-i.y)>=(s.y-i.y)*(n.x-i.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var je=F,Oe=Y,De=q,Le=U,Ae=W,Me=J;const Q=768,L=()=>globalThis.innerWidth<Q;function Ne(){const o=_.c(2),[e,t]=a.useState(L);let r,n;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{const s=()=>t(L),i=globalThis.matchMedia(`(max-width: ${Q-1}px)`);return i.addEventListener("change",s),t(L),()=>i.removeEventListener("change",s)},n=[],o[0]=r,o[1]=n):(r=o[0],n=o[1]),a.useEffect(r,n),e}function ke(o){const e=_.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(je,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Se(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(ke,{children:c.jsx(Oe,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function He(o){const e=_.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(De,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function $e(o){const e=_.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const i=s===void 0?0:s;let d;e[5]!==r?(d=ce("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(Me,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=l):l=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==i||e[11]!==d?(p=c.jsx(Le,{children:c.jsxs(Ae,{"data-slot":"tooltip-content",sideOffset:i,className:d,...n,children:[t,l]})}),e[8]=t,e[9]=n,e[10]=i,e[11]=d,e[12]=p):p=e[12],p}export{He as T,ue as V,$e as a,Se as b,ke as c,Ne as u};
@@ -1,4 +1,4 @@
1
- import{bV as p,bp as t,aJ as y,W as a,bW as q,T as s,aK as f,aH as u,U as m,ba as x,bX as O,bY as fe,bZ as ge,b_ as $,b$ as j,c0 as be,c1 as ye,c2 as B,c3 as Se,c4 as _e,c5 as He,c6 as Me,c7 as ke,c8 as Pe,c9 as qe,ca as Te,cb as Ie,cc as Ee,cd as Le,ce as ze,cf as Ue,cg as Ae,ch as De,ci as Ne,cj as Oe,r as te,e as V,j as b,ck as je,cl as $e,t as Be,c as oe}from"./index-BjoOIgbb.js";import{P as Ve}from"./use-mcp-client-B46VYAN_.js";const le=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function We(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Ke(e)}">`,n=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,l=r.match(n);if(l){const g=(l.index??0)+l[0].length;return r.slice(0,g)+`
1
+ import{bV as p,bp as t,aJ as y,W as a,bW as q,T as s,aK as f,aH as u,U as m,ba as x,bX as O,bY as fe,bZ as ge,b_ as $,b$ as j,c0 as be,c1 as ye,c2 as B,c3 as Se,c4 as _e,c5 as He,c6 as Me,c7 as ke,c8 as Pe,c9 as qe,ca as Te,cb as Ie,cc as Ee,cd as Le,ce as ze,cf as Ue,cg as Ae,ch as De,ci as Ne,cj as Oe,r as te,e as V,j as b,ck as je,cl as $e,t as Be,c as oe}from"./index-DjCrtoJM.js";import{P as Ve}from"./use-mcp-client-Wf5qUXFF.js";const le=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","media-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function We(r,e={}){const i=`<meta http-equiv="Content-Security-Policy" content="${Ke(e)}">`,n=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,l=r.match(n);if(l){const g=(l.index??0)+l[0].length;return r.slice(0,g)+`
2
2
  `+i+r.slice(g)}const c=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,d=r.match(c);if(d){const g=(d.index??0)+d[0].length;return r.slice(0,g)+`
3
3
  <head>
4
4
  `+i+`
@@ -1 +1 @@
1
- import{e as g,q as f,s as _,K as m,n as I}from"./index-BjoOIgbb.js";import{a as S,u as P}from"./use-mcp-client-B46VYAN_.js";function A(t,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>(await t.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null}}function q(){const t=g.c(10),{org:e}=f();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:S,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=P(s);let i;t[3]!==e.id?(i=m.aiProviders(e.id),t[3]=e.id,t[4]=i):i=t[4];let l;t[5]!==o?(l=async()=>(await o.callTool({name:"AI_PROVIDERS_LIST",arguments:{}})).structuredContent,t[5]=o,t[6]=l):l=t[6];let n;t[7]!==i||t[8]!==l?(n={queryKey:i,staleTime:1/0,queryFn:l},t[7]=i,t[8]=l,t[9]=n):n=t[9];const{data:r}=_(n);return r}function v(){const t=g.c(8),{org:e}=f();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:S,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=P(s);let i;t[3]!==o||t[4]!==e.id?(i=A(o,e.id),t[3]=o,t[4]=e.id,t[5]=i):i=t[5];const{data:l}=_(i);let n;return t[6]!==l?.keys?(n=l?.keys??[],t[6]=l?.keys,t[7]=n):n=t[7],n}function R(t){const e=g.c(18),{org:s}=f();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:S,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const i=P(o);let l;e[3]!==t||e[4]!==s.id?(l=m.aiProviderModels(s.id,t??""),e[3]=t,e[4]=s.id,e[5]=l):l=e[5];const n=!!t;let r;e[6]!==i||e[7]!==t?(r=async()=>(await i.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=i,e[7]=t,e[8]=r):r=e[8];let u;e[9]!==l||e[10]!==n||e[11]!==r?(u={queryKey:l,enabled:n,staleTime:6e4,queryFn:r},e[9]=l,e[10]=n,e[11]=r,e[12]=u):u=e[12];const{data:a,isLoading:T}=I(u);let c;e[13]!==a?.models?(c=a?.models??[],e[13]=a?.models,e[14]=c):c=e[14];const y=!!t&&T;let d;return e[15]!==c||e[16]!==y?(d={models:c,isLoading:y},e[15]=c,e[16]=y,e[17]=d):d=e[17],d}function p(t){const e=g.c(14),{org:s}=f();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:S,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const i=P(o);let l;e[3]!==t||e[4]!==s.id?(l=m.aiProviderModels(s.id,t),e[3]=t,e[4]=s.id,e[5]=l):l=e[5];let n;e[6]!==i||e[7]!==t?(n=async()=>(await i.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=i,e[7]=t,e[8]=n):n=e[8];let r;e[9]!==l||e[10]!==n?(r={queryKey:l,staleTime:6e4,queryFn:n},e[9]=l,e[10]=n,e[11]=r):r=e[11];const{data:u}=_(r);let a;return e[12]!==u?.models?(a=u?.models??[],e[12]=u?.models,e[13]=a):a=e[13],a}export{A as a,R as b,q as c,p as d,v as u};
1
+ import{e as g,q as f,s as _,K as m,n as I}from"./index-DjCrtoJM.js";import{a as S,u as P}from"./use-mcp-client-Wf5qUXFF.js";function A(t,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>(await t.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null}}function q(){const t=g.c(10),{org:e}=f();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:S,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=P(s);let i;t[3]!==e.id?(i=m.aiProviders(e.id),t[3]=e.id,t[4]=i):i=t[4];let l;t[5]!==o?(l=async()=>(await o.callTool({name:"AI_PROVIDERS_LIST",arguments:{}})).structuredContent,t[5]=o,t[6]=l):l=t[6];let n;t[7]!==i||t[8]!==l?(n={queryKey:i,staleTime:1/0,queryFn:l},t[7]=i,t[8]=l,t[9]=n):n=t[9];const{data:r}=_(n);return r}function v(){const t=g.c(8),{org:e}=f();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:S,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=P(s);let i;t[3]!==o||t[4]!==e.id?(i=A(o,e.id),t[3]=o,t[4]=e.id,t[5]=i):i=t[5];const{data:l}=_(i);let n;return t[6]!==l?.keys?(n=l?.keys??[],t[6]=l?.keys,t[7]=n):n=t[7],n}function R(t){const e=g.c(18),{org:s}=f();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:S,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const i=P(o);let l;e[3]!==t||e[4]!==s.id?(l=m.aiProviderModels(s.id,t??""),e[3]=t,e[4]=s.id,e[5]=l):l=e[5];const n=!!t;let r;e[6]!==i||e[7]!==t?(r=async()=>(await i.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=i,e[7]=t,e[8]=r):r=e[8];let u;e[9]!==l||e[10]!==n||e[11]!==r?(u={queryKey:l,enabled:n,staleTime:6e4,queryFn:r},e[9]=l,e[10]=n,e[11]=r,e[12]=u):u=e[12];const{data:a,isLoading:T}=I(u);let c;e[13]!==a?.models?(c=a?.models??[],e[13]=a?.models,e[14]=c):c=e[14];const y=!!t&&T;let d;return e[15]!==c||e[16]!==y?(d={models:c,isLoading:y},e[15]=c,e[16]=y,e[17]=d):d=e[17],d}function p(t){const e=g.c(14),{org:s}=f();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:S,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const i=P(o);let l;e[3]!==t||e[4]!==s.id?(l=m.aiProviderModels(s.id,t),e[3]=t,e[4]=s.id,e[5]=l):l=e[5];let n;e[6]!==i||e[7]!==t?(n=async()=>(await i.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:t}})).structuredContent??null,e[6]=i,e[7]=t,e[8]=n):n=e[8];let r;e[9]!==l||e[10]!==n?(r={queryKey:l,staleTime:6e4,queryFn:n},e[9]=l,e[10]=n,e[11]=r):r=e[11];const{data:u}=_(r);let a;return e[12]!==u?.models?(a=u?.models??[],e[12]=u?.models,e[13]=a):a=e[13],a}export{A as a,R as b,q as c,p as d,v as u};
@@ -1 +1 @@
1
- import{e as q,q as U,K as T,n as x,G as V,a as f,o as g}from"./index-BjoOIgbb.js";import{a as D,u as G}from"./use-mcp-client-B46VYAN_.js";function Y(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=q.c(12),{org:s}=U(),o=t??D;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==o?(a={connectionId:o,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o,e[3]=a):a=e[3];const u=G(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let r;e[6]!==u?(r=async()=>{const d=await u.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(Y)},e[6]=u,e[7]=r):r=e[7];const l=!!t;let c;return e[8]!==n||e[9]!==r||e[10]!==l?(c={queryKey:n,queryFn:r,enabled:l,staleTime:3e4},e[8]=n,e[9]=r,e[10]=l,e[11]=c):c=e[11],x(c)}function nt(t){const e=q.c(12),{org:s}=U();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:D,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const a=G(o);let u;e[3]!==s.id||e[4]!==t?(u=T.automations(s.id,t),e[3]=s.id,e[4]=t,e[5]=u):u=e[5];let n;e[6]!==a||e[7]!==t?(n=async()=>{const l=t!=null?{virtual_mcp_id:t}:{},c=await a.callTool({name:"AUTOMATION_LIST",arguments:l});return(c.structuredContent??c).automations},e[6]=a,e[7]=t,e[8]=n):n=e[8];let r;return e[9]!==u||e[10]!==n?(r={queryKey:u,queryFn:n,staleTime:1e4},e[9]=u,e[10]=n,e[11]=r):r=e[11],x(r)}function ot(t){const e=q.c(13),{org:s}=U();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:D,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const a=G(o);let u;e[3]!==t||e[4]!==s.id?(u=T.automation(s.id,t),e[3]=t,e[4]=s.id,e[5]=u):u=e[5];let n;e[6]!==a||e[7]!==t?(n=async()=>{const c=await a.callTool({name:"AUTOMATION_GET",arguments:{id:t}});return(c.structuredContent??c).automation},e[6]=a,e[7]=t,e[8]=n):n=e[8];const r=!!t;let l;return e[9]!==u||e[10]!==n||e[11]!==r?(l={queryKey:u,queryFn:n,enabled:r,staleTime:1e4},e[9]=u,e[10]=n,e[11]=r,e[12]=l):l=e[12],x(l)}function it(t,e){const s=q.c(15),{org:o}=U();let a;s[0]!==o.id||s[1]!==o.slug?(a={connectionId:D,orgId:o.id,orgSlug:o.slug},s[0]=o.id,s[1]=o.slug,s[2]=a):a=s[2];const u=G(a);let n;s[3]!==t||s[4]!==o.id||s[5]!==e?(n=T.automationRunStats(o.id,t,JSON.stringify(e??{})),s[3]=t,s[4]=o.id,s[5]=e,s[6]=n):n=s[6];let r;s[7]!==t||s[8]!==u||s[9]!==e?(r=async()=>{const d=await u.callTool({name:"AUTOMATION_RUN_STATS",arguments:{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}});return d.structuredContent??d},s[7]=t,s[8]=u,s[9]=e,s[10]=r):r=s[10];const l=!!t;let c;return s[11]!==n||s[12]!==r||s[13]!==l?(c={queryKey:n,queryFn:r,enabled:l,staleTime:3e4},s[11]=n,s[12]=r,s[13]=l,s[14]=c):c=s[14],x(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function rt(){const t=q.c(67),{org:e}=U();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:D,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=G(s),a=V();let u;t[3]!==e.id||t[4]!==a?(u=()=>a.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[3]=e.id,t[4]=a,t[5]=u):u=t[5];const n=u;let r;t[6]!==e.id||t[7]!==a?(r=m=>a.invalidateQueries({queryKey:T.automation(e.id,m)}),t[6]=e.id,t[7]=a,t[8]=r):r=t[8];const l=r;let c;t[9]!==o?(c=async m=>{const i=await o.callTool({name:"AUTOMATION_CREATE",arguments:m});return i.structuredContent??i},t[9]=o,t[10]=c):c=t[10];let d;t[11]!==n?(d=()=>{n(),g.success("Automation created successfully")},t[11]=n,t[12]=d):d=t[12];let N;t[13]!==c||t[14]!==d?(N={mutationFn:c,onSuccess:d,onError:Z},t[13]=c,t[14]=d,t[15]=N):N=t[15];const k=f(N);let y;t[16]!==o?(y=async m=>{const i=await o.callTool({name:"AUTOMATION_UPDATE",arguments:m});return i.structuredContent??i},t[16]=o,t[17]=y):y=t[17];let _;t[18]!==n||t[19]!==l?(_=(m,i)=>{n(),typeof i.id=="string"&&l(i.id),g.success("Automation updated successfully")},t[18]=n,t[19]=l,t[20]=_):_=t[20];let $;t[21]!==y||t[22]!==_?($={mutationFn:y,onSuccess:_,onError:X},t[21]=y,t[22]=_,t[23]=$):$=t[23];const Q=f($);let A;t[24]!==o?(A=async m=>{const i=await o.callTool({name:"AUTOMATION_DELETE",arguments:{id:m}});return i.structuredContent??i},t[24]=o,t[25]=A):A=t[25];let p;t[26]!==n||t[27]!==e.id||t[28]!==a?(p=(m,i)=>{a.removeQueries({queryKey:T.automation(e.id,i)}),n(),g.success("Automation deleted successfully")},t[26]=n,t[27]=e.id,t[28]=a,t[29]=p):p=t[29];let K;t[30]!==p||t[31]!==A?(K={mutationFn:A,onSuccess:p,onError:W},t[30]=p,t[31]=A,t[32]=K):K=t[32];const j=f(K);let E;t[33]!==o?(E=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:m});if(i.isError){const I=i.content?.[0]?.text??"Failed to add trigger";throw new Error(I)}return i.structuredContent??i},t[33]=o,t[34]=E):E=t[34];let S;t[35]!==n||t[36]!==l?(S=m=>{n(),l(m.automation_id)},t[35]=n,t[36]=l,t[37]=S):S=t[37];let w;t[38]!==E||t[39]!==S?(w={mutationFn:E,onSuccess:S},t[38]=E,t[39]=S,t[40]=w):w=t[40];const P=f(w);let O;t[41]!==o?(O=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_ROTATE_TOKEN",arguments:{trigger_id:m.trigger_id}});if(i.isError){const I=i.content?.[0]?.text??"Failed to rotate token";throw new Error(I)}return i.structuredContent??i},t[41]=o,t[42]=O):O=t[42];let R;t[43]!==n||t[44]!==l?(R=(m,i)=>{n(),l(i.automation_id)},t[43]=n,t[44]=l,t[45]=R):R=t[45];let b;t[46]!==O||t[47]!==R?(b={mutationFn:O,onSuccess:R},t[46]=O,t[47]=R,t[48]=b):b=t[48];const v=f(b);let C;t[49]!==o?(C=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_REMOVE",arguments:{trigger_id:m.trigger_id}});return i.structuredContent??i},t[49]=o,t[50]=C):C=t[50];let F;t[51]!==n||t[52]!==l?(F=(m,i)=>{n(),l(i.automation_id)},t[51]=n,t[52]=l,t[53]=F):F=t[53];let L;t[54]!==C||t[55]!==F?(L={mutationFn:C,onSuccess:F},t[54]=C,t[55]=F,t[56]=L):L=t[56];const z=f(L);let M;t[57]!==o?(M={mutationFn:async m=>{const i=await o.callTool({name:"AUTOMATION_RUN",arguments:{id:m}});if(i.isError){const I=i.content?.[0]?.text??"Failed to run automation";throw new Error(I)}return i.structuredContent??i},onSuccess:H,onError:B},t[57]=o,t[58]=M):M=t[58];const J=f(M);let h;return t[59]!==k||t[60]!==j||t[61]!==J||t[62]!==P||t[63]!==z||t[64]!==v||t[65]!==Q?(h={create:k,update:Q,remove:j,triggerAdd:P,triggerRemove:z,triggerRotateToken:v,run:J},t[59]=k,t[60]=j,t[61]=J,t[62]=P,t[63]=z,t[64]=v,t[65]=Q,t[66]=h):h=t[66],h}function B(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to run automation: ${e}`)}function H(t){t.skipped?g.info(`Automation skipped: ${t.skipped}`):t.error?g.error(`Automation failed: ${t.error}`):g.success("Automation triggered")}function W(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to delete automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to update automation: ${e}`)}function Z(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to create automation: ${e}`)}export{st as a,ot as b,nt as c,at as d,it as e,rt as u};
1
+ import{e as q,q as U,K as T,n as x,G as V,a as f,o as g}from"./index-DjCrtoJM.js";import{a as D,u as G}from"./use-mcp-client-Wf5qUXFF.js";function Y(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function st(t){const e=q.c(12),{org:s}=U(),o=t??D;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==o?(a={connectionId:o,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o,e[3]=a):a=e[3];const u=G(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let r;e[6]!==u?(r=async()=>{const d=await u.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(Y)},e[6]=u,e[7]=r):r=e[7];const l=!!t;let c;return e[8]!==n||e[9]!==r||e[10]!==l?(c={queryKey:n,queryFn:r,enabled:l,staleTime:3e4},e[8]=n,e[9]=r,e[10]=l,e[11]=c):c=e[11],x(c)}function nt(t){const e=q.c(12),{org:s}=U();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:D,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const a=G(o);let u;e[3]!==s.id||e[4]!==t?(u=T.automations(s.id,t),e[3]=s.id,e[4]=t,e[5]=u):u=e[5];let n;e[6]!==a||e[7]!==t?(n=async()=>{const l=t!=null?{virtual_mcp_id:t}:{},c=await a.callTool({name:"AUTOMATION_LIST",arguments:l});return(c.structuredContent??c).automations},e[6]=a,e[7]=t,e[8]=n):n=e[8];let r;return e[9]!==u||e[10]!==n?(r={queryKey:u,queryFn:n,staleTime:1e4},e[9]=u,e[10]=n,e[11]=r):r=e[11],x(r)}function ot(t){const e=q.c(13),{org:s}=U();let o;e[0]!==s.id||e[1]!==s.slug?(o={connectionId:D,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=o):o=e[2];const a=G(o);let u;e[3]!==t||e[4]!==s.id?(u=T.automation(s.id,t),e[3]=t,e[4]=s.id,e[5]=u):u=e[5];let n;e[6]!==a||e[7]!==t?(n=async()=>{const c=await a.callTool({name:"AUTOMATION_GET",arguments:{id:t}});return(c.structuredContent??c).automation},e[6]=a,e[7]=t,e[8]=n):n=e[8];const r=!!t;let l;return e[9]!==u||e[10]!==n||e[11]!==r?(l={queryKey:u,queryFn:n,enabled:r,staleTime:1e4},e[9]=u,e[10]=n,e[11]=r,e[12]=l):l=e[12],x(l)}function it(t,e){const s=q.c(15),{org:o}=U();let a;s[0]!==o.id||s[1]!==o.slug?(a={connectionId:D,orgId:o.id,orgSlug:o.slug},s[0]=o.id,s[1]=o.slug,s[2]=a):a=s[2];const u=G(a);let n;s[3]!==t||s[4]!==o.id||s[5]!==e?(n=T.automationRunStats(o.id,t,JSON.stringify(e??{})),s[3]=t,s[4]=o.id,s[5]=e,s[6]=n):n=s[6];let r;s[7]!==t||s[8]!==u||s[9]!==e?(r=async()=>{const d=await u.callTool({name:"AUTOMATION_RUN_STATS",arguments:{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}});return d.structuredContent??d},s[7]=t,s[8]=u,s[9]=e,s[10]=r):r=s[10];const l=!!t;let c;return s[11]!==n||s[12]!==r||s[13]!==l?(c={queryKey:n,queryFn:r,enabled:l,staleTime:3e4},s[11]=n,s[12]=r,s[13]=l,s[14]=c):c=s[14],x(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function rt(){const t=q.c(67),{org:e}=U();let s;t[0]!==e.id||t[1]!==e.slug?(s={connectionId:D,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=s):s=t[2];const o=G(s),a=V();let u;t[3]!==e.id||t[4]!==a?(u=()=>a.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[3]=e.id,t[4]=a,t[5]=u):u=t[5];const n=u;let r;t[6]!==e.id||t[7]!==a?(r=m=>a.invalidateQueries({queryKey:T.automation(e.id,m)}),t[6]=e.id,t[7]=a,t[8]=r):r=t[8];const l=r;let c;t[9]!==o?(c=async m=>{const i=await o.callTool({name:"AUTOMATION_CREATE",arguments:m});return i.structuredContent??i},t[9]=o,t[10]=c):c=t[10];let d;t[11]!==n?(d=()=>{n(),g.success("Automation created successfully")},t[11]=n,t[12]=d):d=t[12];let N;t[13]!==c||t[14]!==d?(N={mutationFn:c,onSuccess:d,onError:Z},t[13]=c,t[14]=d,t[15]=N):N=t[15];const k=f(N);let y;t[16]!==o?(y=async m=>{const i=await o.callTool({name:"AUTOMATION_UPDATE",arguments:m});return i.structuredContent??i},t[16]=o,t[17]=y):y=t[17];let _;t[18]!==n||t[19]!==l?(_=(m,i)=>{n(),typeof i.id=="string"&&l(i.id),g.success("Automation updated successfully")},t[18]=n,t[19]=l,t[20]=_):_=t[20];let $;t[21]!==y||t[22]!==_?($={mutationFn:y,onSuccess:_,onError:X},t[21]=y,t[22]=_,t[23]=$):$=t[23];const Q=f($);let A;t[24]!==o?(A=async m=>{const i=await o.callTool({name:"AUTOMATION_DELETE",arguments:{id:m}});return i.structuredContent??i},t[24]=o,t[25]=A):A=t[25];let p;t[26]!==n||t[27]!==e.id||t[28]!==a?(p=(m,i)=>{a.removeQueries({queryKey:T.automation(e.id,i)}),n(),g.success("Automation deleted successfully")},t[26]=n,t[27]=e.id,t[28]=a,t[29]=p):p=t[29];let K;t[30]!==p||t[31]!==A?(K={mutationFn:A,onSuccess:p,onError:W},t[30]=p,t[31]=A,t[32]=K):K=t[32];const j=f(K);let E;t[33]!==o?(E=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_ADD",arguments:m});if(i.isError){const I=i.content?.[0]?.text??"Failed to add trigger";throw new Error(I)}return i.structuredContent??i},t[33]=o,t[34]=E):E=t[34];let S;t[35]!==n||t[36]!==l?(S=m=>{n(),l(m.automation_id)},t[35]=n,t[36]=l,t[37]=S):S=t[37];let w;t[38]!==E||t[39]!==S?(w={mutationFn:E,onSuccess:S},t[38]=E,t[39]=S,t[40]=w):w=t[40];const P=f(w);let O;t[41]!==o?(O=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_ROTATE_TOKEN",arguments:{trigger_id:m.trigger_id}});if(i.isError){const I=i.content?.[0]?.text??"Failed to rotate token";throw new Error(I)}return i.structuredContent??i},t[41]=o,t[42]=O):O=t[42];let R;t[43]!==n||t[44]!==l?(R=(m,i)=>{n(),l(i.automation_id)},t[43]=n,t[44]=l,t[45]=R):R=t[45];let b;t[46]!==O||t[47]!==R?(b={mutationFn:O,onSuccess:R},t[46]=O,t[47]=R,t[48]=b):b=t[48];const v=f(b);let C;t[49]!==o?(C=async m=>{const i=await o.callTool({name:"AUTOMATION_TRIGGER_REMOVE",arguments:{trigger_id:m.trigger_id}});return i.structuredContent??i},t[49]=o,t[50]=C):C=t[50];let F;t[51]!==n||t[52]!==l?(F=(m,i)=>{n(),l(i.automation_id)},t[51]=n,t[52]=l,t[53]=F):F=t[53];let L;t[54]!==C||t[55]!==F?(L={mutationFn:C,onSuccess:F},t[54]=C,t[55]=F,t[56]=L):L=t[56];const z=f(L);let M;t[57]!==o?(M={mutationFn:async m=>{const i=await o.callTool({name:"AUTOMATION_RUN",arguments:{id:m}});if(i.isError){const I=i.content?.[0]?.text??"Failed to run automation";throw new Error(I)}return i.structuredContent??i},onSuccess:H,onError:B},t[57]=o,t[58]=M):M=t[58];const J=f(M);let h;return t[59]!==k||t[60]!==j||t[61]!==J||t[62]!==P||t[63]!==z||t[64]!==v||t[65]!==Q?(h={create:k,update:Q,remove:j,triggerAdd:P,triggerRemove:z,triggerRotateToken:v,run:J},t[59]=k,t[60]=j,t[61]=J,t[62]=P,t[63]=z,t[64]=v,t[65]=Q,t[66]=h):h=t[66],h}function B(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to run automation: ${e}`)}function H(t){t.skipped?g.info(`Automation skipped: ${t.skipped}`):t.error?g.error(`Automation failed: ${t.error}`):g.success("Automation triggered")}function W(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to delete automation: ${e}`)}function X(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to update automation: ${e}`)}function Z(t){const e=t instanceof Error?t.message:String(t);g.error(`Failed to create automation: ${e}`)}export{st as a,ot as b,nt as c,at as d,it as e,rt as u};
@@ -1 +1 @@
1
- import{e as u,q as m,n as g,K as p}from"./index-BjoOIgbb.js";const b=new Set(["owner","admin"]);function d(){const e=u.c(11),{org:r,locator:c}=m();let o;e[0]!==c?(o=p.myCapabilities(c),e[0]=c,e[1]=o):o=e[1];let a;e[2]!==r?(a=async()=>{const f=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(r.slug)}`,{credentials:"include"});if(!f.ok)throw new Error(`my-capabilities request failed: ${f.status}`);return await f.json()},e[2]=r,e[3]=a):a=e[3];let i;e[4]!==o||e[5]!==a?(i={queryKey:o,queryFn:a,staleTime:3e4,retry:2},e[4]=o,e[5]=a,e[6]=i):i=e[6];const{data:s,isLoading:l,isError:n}=g(i);let t;return e[7]!==s||e[8]!==n||e[9]!==l?(t={data:s,loading:l,error:n},e[7]=s,e[8]=n,e[9]=l,e[10]=t):t=e[10],t}function _(e){const r=u.c(8),{data:c,loading:o,error:a}=d();if(o){let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!0,error:!1,reason:"loading"},r[0]=t):t=r[0],t}if(a){let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!0,reason:"error"},r[1]=t):t=r[1],t}const i=c?.role??null;if(!i){let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!1,reason:"denied"},r[2]=t):t=r[2],t}if(i==="owner"){let t;return r[3]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"owner"},r[3]=t):t=r[3],t}if(i==="admin"){let t;return r[4]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"admin"},r[4]=t):t=r[4],t}const s=c?.capabilities?.[e]===!0,l=s?"role":"denied";let n;return r[5]!==s||r[6]!==l?(n={granted:s,loading:!1,error:!1,reason:l},r[5]=s,r[6]=l,r[7]=n):n=r[7],n}function S(){const e=u.c(10),{data:r,loading:c,error:o}=d(),a=r?.role??void 0;let i;e[0]!==a?(i=a?b.has(a):!1,e[0]=a,e[1]=i):i=e[1];const s=i;let l;e[2]!==r?.capabilities?(l=r?.capabilities??{},e[2]=r?.capabilities,e[3]=l):l=e[3];const n=l;let t;return e[4]!==o||e[5]!==s||e[6]!==c||e[7]!==a||e[8]!==n?(t={capabilities:n,loading:c,error:o,isPrivileged:s,roleSlug:a},e[4]=o,e[5]=s,e[6]=c,e[7]=a,e[8]=n,e[9]=t):t=e[9],t}export{S as a,_ as u};
1
+ import{e as u,q as m,n as g,K as p}from"./index-DjCrtoJM.js";const b=new Set(["owner","admin"]);function d(){const e=u.c(11),{org:r,locator:c}=m();let o;e[0]!==c?(o=p.myCapabilities(c),e[0]=c,e[1]=o):o=e[1];let a;e[2]!==r?(a=async()=>{const f=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(r.slug)}`,{credentials:"include"});if(!f.ok)throw new Error(`my-capabilities request failed: ${f.status}`);return await f.json()},e[2]=r,e[3]=a):a=e[3];let i;e[4]!==o||e[5]!==a?(i={queryKey:o,queryFn:a,staleTime:3e4,retry:2},e[4]=o,e[5]=a,e[6]=i):i=e[6];const{data:s,isLoading:l,isError:n}=g(i);let t;return e[7]!==s||e[8]!==n||e[9]!==l?(t={data:s,loading:l,error:n},e[7]=s,e[8]=n,e[9]=l,e[10]=t):t=e[10],t}function _(e){const r=u.c(8),{data:c,loading:o,error:a}=d();if(o){let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!0,error:!1,reason:"loading"},r[0]=t):t=r[0],t}if(a){let t;return r[1]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!0,reason:"error"},r[1]=t):t=r[1],t}const i=c?.role??null;if(!i){let t;return r[2]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!1,loading:!1,error:!1,reason:"denied"},r[2]=t):t=r[2],t}if(i==="owner"){let t;return r[3]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"owner"},r[3]=t):t=r[3],t}if(i==="admin"){let t;return r[4]===Symbol.for("react.memo_cache_sentinel")?(t={granted:!0,loading:!1,error:!1,reason:"admin"},r[4]=t):t=r[4],t}const s=c?.capabilities?.[e]===!0,l=s?"role":"denied";let n;return r[5]!==s||r[6]!==l?(n={granted:s,loading:!1,error:!1,reason:l},r[5]=s,r[6]=l,r[7]=n):n=r[7],n}function S(){const e=u.c(10),{data:r,loading:c,error:o}=d(),a=r?.role??void 0;let i;e[0]!==a?(i=a?b.has(a):!1,e[0]=a,e[1]=i):i=e[1];const s=i;let l;e[2]!==r?.capabilities?(l=r?.capabilities??{},e[2]=r?.capabilities,e[3]=l):l=e[3];const n=l;let t;return e[4]!==o||e[5]!==s||e[6]!==c||e[7]!==a||e[8]!==n?(t={capabilities:n,loading:c,error:o,isPrivileged:s,roleSlug:a},e[4]=o,e[5]=s,e[6]=c,e[7]=a,e[8]=n,e[9]=t):t=e[9],t}export{S as a,_ as u};
@@ -1 +1 @@
1
- import{d as a}from"./differenceInSeconds-NQ4PDo0z.js";import{e as u,r as f}from"./index-BjoOIgbb.js";function p(r){const t=a(new Date,r);return t<60?"<1m":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:t<31536e3?`${Math.floor(t/2592e3)}mo ago`:`${Math.floor(t/31536e3)}y ago`}function g(r){if(r==null||r==="")return null;const t=r instanceof Date?r.getTime():Date.parse(r);return Number.isFinite(t)?t:null}function h(r,t){const e=t-r;return e>0?e:0}function M(r){if(r<60)return`${r.toFixed(1)}s`;const t=Math.round(r%60*10)/10,e=t>=60?1:0;return`${Math.floor(r/60)+e}m ${(e?0:t).toFixed(1)}s`}const s=new Map;function i(r){let t=s.get(r);return t||(t={tick:0,subscribers:new Set,intervalId:null},s.set(r,t)),t}function l(r,t){const e=i(r);return e.subscribers.add(t),e.intervalId===null&&(e.intervalId=setInterval(()=>{e.tick+=1;for(const n of e.subscribers)n()},r)),()=>{e.subscribers.delete(t),e.subscribers.size===0&&e.intervalId!==null&&(clearInterval(e.intervalId),e.intervalId=null)}}function $(r){const t=u.c(3),e=r===void 0?6e4:r;let n,o;return t[0]!==e?(n=c=>l(e,c),o=()=>i(e).tick,t[0]=e,t[1]=n,t[2]=o):(n=t[1],o=t[2]),f.useSyncExternalStore(n,o,m)}function m(){return 0}export{M as a,h as c,p as f,g as t,$ as u};
1
+ import{d as a}from"./differenceInSeconds-NQ4PDo0z.js";import{e as u,r as f}from"./index-DjCrtoJM.js";function p(r){const t=a(new Date,r);return t<60?"<1m":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:t<31536e3?`${Math.floor(t/2592e3)}mo ago`:`${Math.floor(t/31536e3)}y ago`}function g(r){if(r==null||r==="")return null;const t=r instanceof Date?r.getTime():Date.parse(r);return Number.isFinite(t)?t:null}function h(r,t){const e=t-r;return e>0?e:0}function M(r){if(r<60)return`${r.toFixed(1)}s`;const t=Math.round(r%60*10)/10,e=t>=60?1:0;return`${Math.floor(r/60)+e}m ${(e?0:t).toFixed(1)}s`}const s=new Map;function i(r){let t=s.get(r);return t||(t={tick:0,subscribers:new Set,intervalId:null},s.set(r,t)),t}function l(r,t){const e=i(r);return e.subscribers.add(t),e.intervalId===null&&(e.intervalId=setInterval(()=>{e.tick+=1;for(const n of e.subscribers)n()},r)),()=>{e.subscribers.delete(t),e.subscribers.size===0&&e.intervalId!==null&&(clearInterval(e.intervalId),e.intervalId=null)}}function $(r){const t=u.c(3),e=r===void 0?6e4:r;let n,o;return t[0]!==e?(n=c=>l(e,c),o=()=>i(e).tick,t[0]=e,t[1]=n,t[2]=o):(n=t[1],o=t[2]),f.useSyncExternalStore(n,o,m)}function m(){return 0}export{M as a,h as c,p as f,g as t,$ as u};
@@ -1 +1 @@
1
- import{e as v,G as b,a as F,s as x,aO as q,o as _}from"./index-BjoOIgbb.js";function Q(e,s,n){const t=[];if(e?.trim()){const o=e.trim(),r=n.map(a=>({field:[String(a)],operator:"contains",value:o}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(s&&s.length>0)for(const o of s)t.push({field:[o.column],operator:"eq",value:o.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function k(e,s,n){const t=e??n,o=s??"desc";return[{field:[String(t)],direction:o}]}function w(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function D(e,s,n,t){const o=s.toUpperCase(),r=`COLLECTION_${o}_GET`;return{queryKey:q.collectionItem(t,e,"",o,n??""),queryFn:async()=>{if(!n)return{item:null};const a=await t.callTool({name:r,arguments:{id:n}});return w(a)},staleTime:6e4}}function Y(e,s,n,t){const o=v.c(5);let r;o[0]!==t||o[1]!==s||o[2]!==n||o[3]!==e?(r=D(e,s,n,t),o[0]=t,o[1]=s,o[2]=n,o[3]=e,o[4]=r):r=o[4];const{data:a}=x(r);return a?.item??null}const K={structuredContent:{items:[]},isError:!1};function j(e,s,n,t={}){const{searchTerm:o,filters:r,sortKey:a,sortDirection:L,searchFields:S=["title","description"],defaultSortKey:h="updated_at",pageSize:g=100,additionalToolArgs:c}=t,l=s.toUpperCase(),f=`COLLECTION_${l}_LIST`,p=Q(o,r,S),T=k(a,L,h),u={...p&&{where:p},...T&&{orderBy:T},limit:g,offset:0,...c},m=JSON.stringify(u),C=q.collectionList(n,e,"",l,m),{data:O}=x({queryKey:C,queryFn:async()=>n?await n.callTool({name:f,arguments:u}):K,staleTime:3e4,retry:!1,select:d=>w(d??{})?.items??[]});return O}function z(e,s,n){const t=v.c(34),o=b();let r;t[0]!==s?(r=s.toUpperCase(),t[0]=s,t[1]=r):r=t[1];const a=r,L=`COLLECTION_${a}_CREATE`,S=`COLLECTION_${a}_UPDATE`,h=`COLLECTION_${a}_DELETE`;let g;t[2]!==o||t[3]!==e||t[4]!==a?(g=()=>{o.invalidateQueries({predicate:E=>{const i=E.queryKey;return i[1]===e&&i[3]==="collection"&&i[4]===a}})},t[2]=o,t[3]=e,t[4]=a,t[5]=g):g=t[5];const c=g;let l;t[6]!==n||t[7]!==L?(l=async E=>{const i=await n.callTool({name:L,arguments:{data:E}});if(i.isError)throw new Error(Array.isArray(i.content)?i.content[0]?.text:String(i.content));return w(i).item},t[6]=n,t[7]=L,t[8]=l):l=t[8];let f;t[9]!==c?(f=()=>{c(),_.success("Item created successfully")},t[9]=c,t[10]=f):f=t[10];let p;t[11]!==l||t[12]!==f?(p={mutationFn:l,onSuccess:f,onError:B},t[11]=l,t[12]=f,t[13]=p):p=t[13];const T=F(p);let u;t[14]!==n||t[15]!==S?(u=async E=>{const{id:i,data:A}=E,U=await n.callTool({name:S,arguments:{id:i,data:A}});return w(U).item},t[14]=n,t[15]=S,t[16]=u):u=t[16];let m;t[17]!==c?(m=()=>{c(),_.success("Item updated successfully")},t[17]=c,t[18]=m):m=t[18];let C;t[19]!==u||t[20]!==m?(C={mutationFn:u,onSuccess:m,onError:R},t[19]=u,t[20]=m,t[21]=C):C=t[21];const O=F(C);let d;t[22]!==n||t[23]!==h?(d=async E=>{const i=await n.callTool({name:h,arguments:{id:E}});return w(i).item.id},t[22]=n,t[23]=h,t[24]=d):d=t[24];let y;t[25]!==c?(y=()=>{c(),_.success("Item deleted successfully")},t[25]=c,t[26]=y):y=t[26];let N;t[27]!==d||t[28]!==y?(N={mutationFn:d,onSuccess:y,onError:P},t[27]=d,t[28]=y,t[29]=N):N=t[29];const $=F(N);let I;return t[30]!==T||t[31]!==$||t[32]!==O?(I={create:T,update:O,delete:$},t[30]=T,t[31]=$,t[32]=O,t[33]=I):I=t[33],I}function P(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to delete item: ${s}`)}function R(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to update item: ${s}`)}function B(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to create item: ${s}`)}export{z as a,j as b,D as c,Y as u};
1
+ import{e as v,G as b,a as F,s as x,aO as q,o as _}from"./index-DjCrtoJM.js";function Q(e,s,n){const t=[];if(e?.trim()){const o=e.trim(),r=n.map(a=>({field:[String(a)],operator:"contains",value:o}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(s&&s.length>0)for(const o of s)t.push({field:[o.column],operator:"eq",value:o.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function k(e,s,n){const t=e??n,o=s??"desc";return[{field:[String(t)],direction:o}]}function w(e){if(!e||typeof e!="object")throw new Error("Invalid result");if("isError"in e&&e.isError)throw new Error("content"in e&&Array.isArray(e.content)&&e.content[0]?.type==="text"?e.content[0].text:"Unknown error");if("structuredContent"in e)return e.structuredContent;throw new Error("No structured content found")}function D(e,s,n,t){const o=s.toUpperCase(),r=`COLLECTION_${o}_GET`;return{queryKey:q.collectionItem(t,e,"",o,n??""),queryFn:async()=>{if(!n)return{item:null};const a=await t.callTool({name:r,arguments:{id:n}});return w(a)},staleTime:6e4}}function Y(e,s,n,t){const o=v.c(5);let r;o[0]!==t||o[1]!==s||o[2]!==n||o[3]!==e?(r=D(e,s,n,t),o[0]=t,o[1]=s,o[2]=n,o[3]=e,o[4]=r):r=o[4];const{data:a}=x(r);return a?.item??null}const K={structuredContent:{items:[]},isError:!1};function j(e,s,n,t={}){const{searchTerm:o,filters:r,sortKey:a,sortDirection:L,searchFields:S=["title","description"],defaultSortKey:h="updated_at",pageSize:g=100,additionalToolArgs:c}=t,l=s.toUpperCase(),f=`COLLECTION_${l}_LIST`,p=Q(o,r,S),T=k(a,L,h),u={...p&&{where:p},...T&&{orderBy:T},limit:g,offset:0,...c},m=JSON.stringify(u),C=q.collectionList(n,e,"",l,m),{data:O}=x({queryKey:C,queryFn:async()=>n?await n.callTool({name:f,arguments:u}):K,staleTime:3e4,retry:!1,select:d=>w(d??{})?.items??[]});return O}function z(e,s,n){const t=v.c(34),o=b();let r;t[0]!==s?(r=s.toUpperCase(),t[0]=s,t[1]=r):r=t[1];const a=r,L=`COLLECTION_${a}_CREATE`,S=`COLLECTION_${a}_UPDATE`,h=`COLLECTION_${a}_DELETE`;let g;t[2]!==o||t[3]!==e||t[4]!==a?(g=()=>{o.invalidateQueries({predicate:E=>{const i=E.queryKey;return i[1]===e&&i[3]==="collection"&&i[4]===a}})},t[2]=o,t[3]=e,t[4]=a,t[5]=g):g=t[5];const c=g;let l;t[6]!==n||t[7]!==L?(l=async E=>{const i=await n.callTool({name:L,arguments:{data:E}});if(i.isError)throw new Error(Array.isArray(i.content)?i.content[0]?.text:String(i.content));return w(i).item},t[6]=n,t[7]=L,t[8]=l):l=t[8];let f;t[9]!==c?(f=()=>{c(),_.success("Item created successfully")},t[9]=c,t[10]=f):f=t[10];let p;t[11]!==l||t[12]!==f?(p={mutationFn:l,onSuccess:f,onError:B},t[11]=l,t[12]=f,t[13]=p):p=t[13];const T=F(p);let u;t[14]!==n||t[15]!==S?(u=async E=>{const{id:i,data:A}=E,U=await n.callTool({name:S,arguments:{id:i,data:A}});return w(U).item},t[14]=n,t[15]=S,t[16]=u):u=t[16];let m;t[17]!==c?(m=()=>{c(),_.success("Item updated successfully")},t[17]=c,t[18]=m):m=t[18];let C;t[19]!==u||t[20]!==m?(C={mutationFn:u,onSuccess:m,onError:R},t[19]=u,t[20]=m,t[21]=C):C=t[21];const O=F(C);let d;t[22]!==n||t[23]!==h?(d=async E=>{const i=await n.callTool({name:h,arguments:{id:E}});return w(i).item.id},t[22]=n,t[23]=h,t[24]=d):d=t[24];let y;t[25]!==c?(y=()=>{c(),_.success("Item deleted successfully")},t[25]=c,t[26]=y):y=t[26];let N;t[27]!==d||t[28]!==y?(N={mutationFn:d,onSuccess:y,onError:P},t[27]=d,t[28]=y,t[29]=N):N=t[29];const $=F(N);let I;return t[30]!==T||t[31]!==$||t[32]!==O?(I={create:T,update:O,delete:$},t[30]=T,t[31]=$,t[32]=O,t[33]=I):I=t[33],I}function P(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to delete item: ${s}`)}function R(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to update item: ${s}`)}function B(e){const s=e instanceof Error?e.message:String(e);_.error(`Failed to create item: ${s}`)}export{z as a,j as b,D as c,Y as u};
@@ -1 +1 @@
1
- import{e as f,q as C}from"./index-BjoOIgbb.js";import{u as N,b as O,a as S}from"./use-collections-CrAY0KoX.js";import{a as I,u as m}from"./use-mcp-client-B46VYAN_.js";function E(t){const o=f.c(20);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i;let l,s,c,d;o[2]!==n?({binding:l,includeVirtual:c,slug:d,...s}=n,o[2]=n,o[3]=l,o[4]=s,o[5]=c,o[6]=d):(l=o[3],s=o[4],c=o[5],d=o[6]);let e;o[7]!==l||o[8]!==s.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...s.additionalToolArgs},l!==void 0&&(e.binding=l),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=l,o[8]=s.additionalToolArgs,o[9]=c,o[10]=d,o[11]=e):e=o[11];let r;o[12]!==e?(r=Object.keys(e).length>0?e:void 0,o[12]=e,o[13]=r):r=o[13];let g;o[14]!==s||o[15]!==r?(g={...s,additionalToolArgs:r},o[14]=s,o[15]=r,o[16]=g):g=o[16];const p=g,{org:u}=C();let a;o[17]!==u.id||o[18]!==u.slug?(a={connectionId:I,orgId:u.id,orgSlug:u.slug},o[17]=u.id,o[18]=u.slug,o[19]=a):a=o[19];const A=m(a);return O(u.id,"CONNECTIONS",A,p)}function _(t){const o=f.c(3),{org:i}=C();let n;o[0]!==i.id||o[1]!==i.slug?(n={connectionId:I,orgId:i.id,orgSlug:i.slug},o[0]=i.id,o[1]=i.slug,o[2]=n):n=o[2];const l=m(n);return N(i.id,"CONNECTIONS",t,l)}function x(){const t=f.c(3),{org:o}=C();let i;t[0]!==o.id||t[1]!==o.slug?(i={connectionId:I,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=i):i=t[2];const n=m(i);return S(o.id,"CONNECTIONS",n)}export{_ as a,x as b,E as u};
1
+ import{e as f,q as C}from"./index-DjCrtoJM.js";import{u as N,b as O,a as S}from"./use-collections-BTo2RzuF.js";import{a as I,u as m}from"./use-mcp-client-Wf5qUXFF.js";function E(t){const o=f.c(20);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i;let l,s,c,d;o[2]!==n?({binding:l,includeVirtual:c,slug:d,...s}=n,o[2]=n,o[3]=l,o[4]=s,o[5]=c,o[6]=d):(l=o[3],s=o[4],c=o[5],d=o[6]);let e;o[7]!==l||o[8]!==s.additionalToolArgs||o[9]!==c||o[10]!==d?(e={...s.additionalToolArgs},l!==void 0&&(e.binding=l),c!==void 0&&(e.include_virtual=c),d!==void 0&&(e.slug=d),o[7]=l,o[8]=s.additionalToolArgs,o[9]=c,o[10]=d,o[11]=e):e=o[11];let r;o[12]!==e?(r=Object.keys(e).length>0?e:void 0,o[12]=e,o[13]=r):r=o[13];let g;o[14]!==s||o[15]!==r?(g={...s,additionalToolArgs:r},o[14]=s,o[15]=r,o[16]=g):g=o[16];const p=g,{org:u}=C();let a;o[17]!==u.id||o[18]!==u.slug?(a={connectionId:I,orgId:u.id,orgSlug:u.slug},o[17]=u.id,o[18]=u.slug,o[19]=a):a=o[19];const A=m(a);return O(u.id,"CONNECTIONS",A,p)}function _(t){const o=f.c(3),{org:i}=C();let n;o[0]!==i.id||o[1]!==i.slug?(n={connectionId:I,orgId:i.id,orgSlug:i.slug},o[0]=i.id,o[1]=i.slug,o[2]=n):n=o[2];const l=m(n);return N(i.id,"CONNECTIONS",t,l)}function x(){const t=f.c(3),{org:o}=C();let i;t[0]!==o.id||t[1]!==o.slug?(i={connectionId:I,orgId:o.id,orgSlug:o.slug},t[0]=o.id,t[1]=o.slug,t[2]=i):i=t[2];const n=m(i);return S(o.id,"CONNECTIONS",n)}export{_ as a,x as b,E as u};
@@ -1 +1 @@
1
- import{e as c,r as n}from"./index-BjoOIgbb.js";function p(){const e=c.c(3),[s,a]=n.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=async i=>{await navigator.clipboard.writeText(i),a(!0),setTimeout(()=>a(!1),2e3)},e[0]=t):t=e[0];const r=t;let o;return e[1]!==s?(o={handleCopy:r,copied:s},e[1]=s,e[2]=o):o=e[2],o}export{p as u};
1
+ import{e as c,r as n}from"./index-DjCrtoJM.js";function p(){const e=c.c(3),[s,a]=n.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=async i=>{await navigator.clipboard.writeText(i),a(!0),setTimeout(()=>a(!1),2e3)},e[0]=t):t=e[0];const r=t;let o;return e[1]!==s?(o={handleCopy:r,copied:s},e[1]=s,e[2]=o):o=e[2],o}export{p as u};
@@ -1 +1 @@
1
- import{e as g}from"./index-BjoOIgbb.js";import{b as f}from"./use-virtual-mcp-DHileccV.js";import{k as p}from"./use-navigate-to-agent-DL0_jMva.js";function A(i){const e=g.c(9);let n;e[0]!==i?(n=i===void 0?{}:i,e[0]=i,e[1]=n):n=e[1];const d=n,{navigateOnCreate:u}=d,r=u===void 0?!1:u,t=f(),c=p();let s;e[2]!==t.create||e[3]!==r||e[4]!==c?(s=async()=>{const l=await t.create.mutateAsync({title:"New Agent",description:"AI-driven assistant designed to handle specific tasks",status:"active",connections:[],pinned:!1});return r&&c(l.id,{search:{main:"instructions"}}),{id:l.id,virtualMcp:l}},e[2]=t.create,e[3]=r,e[4]=c,e[5]=s):s=e[5];const o=s;let a;return e[6]!==t.create.isPending||e[7]!==o?(a={createVirtualMCP:o,isCreating:t.create.isPending},e[6]=t.create.isPending,e[7]=o,e[8]=a):a=e[8],a}export{A as u};
1
+ import{e as g}from"./index-DjCrtoJM.js";import{b as f}from"./use-virtual-mcp-3Wk6GVmY.js";import{k as p}from"./use-navigate-to-agent-Cyv38GW6.js";function A(i){const e=g.c(9);let n;e[0]!==i?(n=i===void 0?{}:i,e[0]=i,e[1]=n):n=e[1];const d=n,{navigateOnCreate:u}=d,r=u===void 0?!1:u,t=f(),c=p();let s;e[2]!==t.create||e[3]!==r||e[4]!==c?(s=async()=>{const l=await t.create.mutateAsync({title:"New Agent",description:"AI-driven assistant designed to handle specific tasks",status:"active",connections:[],pinned:!1});return r&&c(l.id,{search:{main:"instructions"}}),{id:l.id,virtualMcp:l}},e[2]=t.create,e[3]=r,e[4]=c,e[5]=s):s=e[5];const o=s;let a;return e[6]!==t.create.isPending||e[7]!==o?(a={createVirtualMCP:o,isCreating:t.create.isPending},e[6]=t.create.isPending,e[7]=o,e[8]=a):a=e[8],a}export{A as u};
@@ -1 +1 @@
1
- import{r as u}from"./index-BjoOIgbb.js";function l({save:t,delayMs:n=1e3}){const e=u.useRef(t);e.current=t;const r=u.useRef(null),c=()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,e.current()},n)},o=()=>(r.current&&(clearTimeout(r.current),r.current=null),e.current());return u.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null,e.current())},[]),{schedule:c,flush:o}}export{l as u};
1
+ import{r as u}from"./index-DjCrtoJM.js";function l({save:t,delayMs:n=1e3}){const e=u.useRef(t);e.current=t;const r=u.useRef(null),c=()=>{r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,e.current()},n)},o=()=>(r.current&&(clearTimeout(r.current),r.current=null),e.current());return u.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null,e.current())},[]),{schedule:c,flush:o}}export{l as u};
@@ -1 +1 @@
1
- import{e as H,j as t,q as Q,G,r as J,o as F,bl as M,bm as P}from"./index-BjoOIgbb.js";import{c as I,b as L,d as q,f as R,e as U,g as k,a as K,A as $}from"./alert-dialog-ZB1-0uWA.js";import{u as Y}from"./studio-tools-DfxdEEgB.js";function W(T){const e=H.c(41),{deleteState:s,cancelDelete:i,confirmDelete:c,confirmForceDelete:l}=T,N=s.mode==="deleting";let r;e[0]!==i?(r=w=>{w||i()},e[0]=i,e[1]=r):r=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(I,{children:"Delete Connection?"}),e[2]=f):f=e[2];const S=s.mode==="deleting"&&s.connection.title;let u;e[3]!==S?(u=t.jsxs(L,{children:[f,t.jsxs(q,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:S}),"."]})]}),e[3]=S,e[4]=u):u=e[4];let E;e[5]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(R,{children:"Cancel"}),e[5]=E):E=e[5];let h;e[6]!==c?(h=t.jsxs(U,{children:[E,t.jsx(k,{onClick:c,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[6]=c,e[7]=h):h=e[7];let n;e[8]!==u||e[9]!==h?(n=t.jsxs(K,{children:[u,h]}),e[8]=u,e[9]=h,e[10]=n):n=e[10];let o;e[11]!==N||e[12]!==r||e[13]!==n?(o=t.jsx($,{open:N,onOpenChange:r,children:n}),e[11]=N,e[12]=r,e[13]=n,e[14]=o):o=e[14];const a=s.mode==="force-deleting";let d;e[15]!==i?(d=w=>{w||i()},e[15]=i,e[16]=d):d=e[16];let m;e[17]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(I,{children:"Connection Used by Agents"}),e[17]=m):m=e[17];const _=s.mode==="force-deleting"&&s.connection.title;let g;e[18]!==_?(g=t.jsx("span",{className:"font-medium text-foreground",children:_}),e[18]=_,e[19]=g):g=e[19];const A=s.mode==="force-deleting"&&s.agentNames;let x;e[20]!==A?(x=t.jsx("span",{className:"font-medium text-foreground",children:A}),e[20]=A,e[21]=x):x=e[21];let C;e[22]!==g||e[23]!==x?(C=t.jsxs("p",{children:["The connection"," ",g," ","is currently used by the following agent(s):"," ",x,"."]}),e[22]=g,e[23]=x,e[24]=C):C=e[24];let O;e[25]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("p",{className:"mt-2",children:"Deleting this connection will remove it from those agents, which may impact existing workflows that depend on them."}),e[25]=O):O=e[25];let D;e[26]!==C?(D=t.jsxs(L,{children:[m,t.jsx(q,{asChild:!0,children:t.jsxs("div",{children:[C,O]})})]}),e[26]=C,e[27]=D):D=e[27];let b;e[28]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(R,{children:"Cancel"}),e[28]=b):b=e[28];let j;e[29]!==l?(j=t.jsxs(U,{children:[b,t.jsx(k,{onClick:l,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete Anyway"})]}),e[29]=l,e[30]=j):j=e[30];let p;e[31]!==D||e[32]!==j?(p=t.jsxs(K,{children:[D,j]}),e[31]=D,e[32]=j,e[33]=p):p=e[33];let y;e[34]!==a||e[35]!==d||e[36]!==p?(y=t.jsx($,{open:a,onOpenChange:d,children:p}),e[34]=a,e[35]=d,e[36]=p,e[37]=y):y=e[37];let v;return e[38]!==y||e[39]!==o?(v=t.jsxs(t.Fragment,{children:[o,y]}),e[38]=y,e[39]=o,e[40]=v):v=e[40],v}function X({onSuccess:T}={}){const{org:e}=Q(),s=G(),i=Y(),[c,l]=J.useState({mode:"idle"}),N=()=>{s.invalidateQueries({predicate:n=>{const o=n.queryKey;return o[1]===e.id&&o[3]==="collection"&&o[4]==="CONNECTIONS"}})},r=n=>{M(n),s.invalidateQueries({predicate:o=>o.queryKey[1]===P&&o.queryKey[3]===n})},f=n=>{N(),r(n),F.success("Connection deleted successfully"),l({mode:"idle"}),T?.()};return{deleteState:c,requestDelete:n=>{l({mode:"deleting",connection:n})},cancelDelete:()=>{l({mode:"idle"})},confirmDelete:async()=>{if(c.mode!=="deleting")return;const n=c.connection;l({mode:"idle"});try{await i.call("COLLECTION_CONNECTIONS_DELETE",{id:n.id}),f(n.id)}catch(o){const a=o instanceof Error?o.message:String(o),d=a.replace(/^Error:\s*/,"");try{const m=JSON.parse(d);if(m.code==="CONNECTION_IN_USE"&&m.agentNames){l({mode:"force-deleting",connection:n,agentNames:m.agentNames.map(_=>`"${_}"`).join(", ")});return}}catch{}F.error(`Failed to delete connection: ${a}`)}},confirmForceDelete:async()=>{if(c.mode!=="force-deleting")return;const n=c.connection.id;l({mode:"idle"});try{await i.call("COLLECTION_CONNECTIONS_DELETE",{id:n,force:!0}),f(n)}catch(o){const a=o instanceof Error?o.message:String(o);F.error(`Failed to delete connection: ${a}`)}}}}export{W as D,X as u};
1
+ import{e as H,j as t,q as Q,G,r as J,o as F,bl as M,bm as P}from"./index-DjCrtoJM.js";import{c as I,b as L,d as q,f as R,e as U,g as k,a as K,A as $}from"./alert-dialog-CstddcEP.js";import{u as Y}from"./studio-tools-C1zamUp1.js";function W(T){const e=H.c(41),{deleteState:s,cancelDelete:i,confirmDelete:c,confirmForceDelete:l}=T,N=s.mode==="deleting";let r;e[0]!==i?(r=w=>{w||i()},e[0]=i,e[1]=r):r=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(I,{children:"Delete Connection?"}),e[2]=f):f=e[2];const S=s.mode==="deleting"&&s.connection.title;let u;e[3]!==S?(u=t.jsxs(L,{children:[f,t.jsxs(q,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:S}),"."]})]}),e[3]=S,e[4]=u):u=e[4];let E;e[5]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(R,{children:"Cancel"}),e[5]=E):E=e[5];let h;e[6]!==c?(h=t.jsxs(U,{children:[E,t.jsx(k,{onClick:c,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[6]=c,e[7]=h):h=e[7];let n;e[8]!==u||e[9]!==h?(n=t.jsxs(K,{children:[u,h]}),e[8]=u,e[9]=h,e[10]=n):n=e[10];let o;e[11]!==N||e[12]!==r||e[13]!==n?(o=t.jsx($,{open:N,onOpenChange:r,children:n}),e[11]=N,e[12]=r,e[13]=n,e[14]=o):o=e[14];const a=s.mode==="force-deleting";let d;e[15]!==i?(d=w=>{w||i()},e[15]=i,e[16]=d):d=e[16];let m;e[17]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(I,{children:"Connection Used by Agents"}),e[17]=m):m=e[17];const _=s.mode==="force-deleting"&&s.connection.title;let g;e[18]!==_?(g=t.jsx("span",{className:"font-medium text-foreground",children:_}),e[18]=_,e[19]=g):g=e[19];const A=s.mode==="force-deleting"&&s.agentNames;let x;e[20]!==A?(x=t.jsx("span",{className:"font-medium text-foreground",children:A}),e[20]=A,e[21]=x):x=e[21];let C;e[22]!==g||e[23]!==x?(C=t.jsxs("p",{children:["The connection"," ",g," ","is currently used by the following agent(s):"," ",x,"."]}),e[22]=g,e[23]=x,e[24]=C):C=e[24];let O;e[25]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("p",{className:"mt-2",children:"Deleting this connection will remove it from those agents, which may impact existing workflows that depend on them."}),e[25]=O):O=e[25];let D;e[26]!==C?(D=t.jsxs(L,{children:[m,t.jsx(q,{asChild:!0,children:t.jsxs("div",{children:[C,O]})})]}),e[26]=C,e[27]=D):D=e[27];let b;e[28]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(R,{children:"Cancel"}),e[28]=b):b=e[28];let j;e[29]!==l?(j=t.jsxs(U,{children:[b,t.jsx(k,{onClick:l,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete Anyway"})]}),e[29]=l,e[30]=j):j=e[30];let p;e[31]!==D||e[32]!==j?(p=t.jsxs(K,{children:[D,j]}),e[31]=D,e[32]=j,e[33]=p):p=e[33];let y;e[34]!==a||e[35]!==d||e[36]!==p?(y=t.jsx($,{open:a,onOpenChange:d,children:p}),e[34]=a,e[35]=d,e[36]=p,e[37]=y):y=e[37];let v;return e[38]!==y||e[39]!==o?(v=t.jsxs(t.Fragment,{children:[o,y]}),e[38]=y,e[39]=o,e[40]=v):v=e[40],v}function X({onSuccess:T}={}){const{org:e}=Q(),s=G(),i=Y(),[c,l]=J.useState({mode:"idle"}),N=()=>{s.invalidateQueries({predicate:n=>{const o=n.queryKey;return o[1]===e.id&&o[3]==="collection"&&o[4]==="CONNECTIONS"}})},r=n=>{M(n),s.invalidateQueries({predicate:o=>o.queryKey[1]===P&&o.queryKey[3]===n})},f=n=>{N(),r(n),F.success("Connection deleted successfully"),l({mode:"idle"}),T?.()};return{deleteState:c,requestDelete:n=>{l({mode:"deleting",connection:n})},cancelDelete:()=>{l({mode:"idle"})},confirmDelete:async()=>{if(c.mode!=="deleting")return;const n=c.connection;l({mode:"idle"});try{await i.call("COLLECTION_CONNECTIONS_DELETE",{id:n.id}),f(n.id)}catch(o){const a=o instanceof Error?o.message:String(o),d=a.replace(/^Error:\s*/,"");try{const m=JSON.parse(d);if(m.code==="CONNECTION_IN_USE"&&m.agentNames){l({mode:"force-deleting",connection:n,agentNames:m.agentNames.map(_=>`"${_}"`).join(", ")});return}}catch{}F.error(`Failed to delete connection: ${a}`)}},confirmForceDelete:async()=>{if(c.mode!=="force-deleting")return;const n=c.connection.id;l({mode:"idle"});try{await i.call("COLLECTION_CONNECTIONS_DELETE",{id:n,force:!0}),f(n)}catch(o){const a=o instanceof Error?o.message:String(o);F.error(`Failed to delete connection: ${a}`)}}}}export{W as D,X as u};
@@ -1 +1 @@
1
- import{e as u,q as c,K as r,s as y,n as F,G as C,a as d}from"./index-BjoOIgbb.js";import{u as f}from"./studio-tools-DfxdEEgB.js";function m(){const e=u.c(7),{org:n}=c(),o=f();let i;e[0]!==n.id?(i=r.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:l}=y(s);return l.configs}function I(){const e=u.c(7),{org:n}=c(),o=f();let i;e[0]!==n.id?(i=r.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;return e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6],F(s)}function q(){const e=u.c(8),{org:n}=c(),o=f(),i=C();let t;e[0]!==o?(t=a=>o.call("FILE_CONFIG_CREATE",{...a}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:r.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}function _(){const e=u.c(8),{org:n}=c(),o=f(),i=C();let t;e[0]!==o?(t=a=>o.call("FILE_CONFIG_DELETE",{id:a}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:r.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}export{q as a,_ as b,I as c,m as u};
1
+ import{e as u,q as c,K as r,s as y,n as F,G as C,a as d}from"./index-DjCrtoJM.js";import{u as f}from"./studio-tools-C1zamUp1.js";function m(){const e=u.c(7),{org:n}=c(),o=f();let i;e[0]!==n.id?(i=r.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:l}=y(s);return l.configs}function I(){const e=u.c(7),{org:n}=c(),o=f();let i;e[0]!==n.id?(i=r.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;return e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6],F(s)}function q(){const e=u.c(8),{org:n}=c(),o=f(),i=C();let t;e[0]!==o?(t=a=>o.call("FILE_CONFIG_CREATE",{...a}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:r.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}function _(){const e=u.c(8),{org:n}=c(),o=f(),i=C();let t;e[0]!==o?(t=a=>o.call("FILE_CONFIG_DELETE",{id:a}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:r.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}export{q as a,_ as b,I as c,m as u};
@@ -0,0 +1 @@
1
+ import{av as d,dB as l,dC as v,r as i}from"./index-DjCrtoJM.js";var p=class extends d{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,u=super.createResult(e,t),{isFetching:r,isRefetching:h,isError:a,isRefetchError:g}=u,s=n.fetchMeta?.fetchMore?.direction,o=a&&s==="forward",P=r&&s==="forward",c=a&&s==="backward",f=r&&s==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:v(t,n.data),hasPreviousPage:l(t,n.data),isFetchNextPageError:o,isFetchingNextPage:P,isFetchPreviousPageError:c,isFetchingPreviousPage:f,isRefetchError:g&&!o&&!c,isRefetching:h&&!P&&!f}}};function b(e,t,n=!1,u){const r=i.useRef(null),h=i.useRef(null),a=i.useRef(e),g=i.useRef(t),s=i.useRef(n),o=i.useRef(u);a.current=e,g.current=t,s.current=n,o.current=u;const[P]=i.useState(()=>c=>{h.current=c,r.current&&(r.current.disconnect(),r.current=null),c&&queueMicrotask(()=>{if(h.current!==c)return;const f=new IntersectionObserver(R=>{R[0]?.isIntersecting&&g.current&&!s.current&&a.current()},{root:o.current?.current??null,rootMargin:"0px 0px 200px 0px"});f.observe(c),r.current=f})});return P}export{p as I,b as u};
@@ -1 +1 @@
1
- import{r as u,e as w}from"./index-BjoOIgbb.js";import{u as E}from"./use-view-mode-C2K6zcu8.js";function J(a){const e=`deco-filters-${a}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(a){const e=w.c(7),[s,i]=u.useState(a),[r,t]=u.useState(a?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(a){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=a,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),c=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==c?(g=()=>globalThis.localStorage?.getItem(c)==="true",e[0]=c,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==c?(h=T=>{x(T),globalThis.localStorage?.setItem(c,String(T))},e[2]=c,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};
1
+ import{r as u,e as w}from"./index-DjCrtoJM.js";import{u as E}from"./use-view-mode-Dg3ZmYU0.js";function J(a){const e=`deco-filters-${a}`,[s,i]=u.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[s,t=>{i(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function N(a){const e=w.c(7),[s,i]=u.useState(a),[r,t]=u.useState(a?"desc":null);let l;e[0]!==r||e[1]!==s?(l=S=>{s!==S?(i(S),t("asc")):r==="asc"?t("desc"):r==="desc"&&(i(void 0),t(null))},e[0]=r,e[1]=s,e[2]=l):l=e[2];const d=l;let o;return e[3]!==d||e[4]!==r||e[5]!==s?(o={sortKey:s,sortDirection:r,handleSort:d},e[3]=d,e[4]=r,e[5]=s,e[6]=o):o=e[6],o}function W(a){const e=w.c(20),{namespace:s,resource:i,defaultSortKey:r,defaultViewMode:t}=a,l=r===void 0?"title":r,d=t===void 0?"table":t,[o,S]=u.useState(""),b=u.useDeferredValue(o),D=`${s}-${i}`,[p,F]=J(D),c=`mesh-${i}-filter-visible-${s}`;let g;e[0]!==c?(g=()=>globalThis.localStorage?.getItem(c)==="true",e[0]=c,e[1]=g):g=e[1];const[n,x]=u.useState(g);let h;e[2]!==c?(h=T=>{x(T),globalThis.localStorage?.setItem(c,String(T))},e[2]=c,e[3]=h):h=e[3];const f=h;let m;e[4]!==n||e[5]!==f?(m=()=>{f(!n)},e[4]=n,e[5]=f,e[6]=m):m=e[6];const V=m,[$,K]=E(`mesh-${i}-${s}`,d),{sortKey:I,sortDirection:v,handleSort:B}=N(l),M=I;let y;return e[7]!==n||e[8]!==p||e[9]!==B||e[10]!==o||e[11]!==b||e[12]!==f||e[13]!==F||e[14]!==K||e[15]!==v||e[16]!==M||e[17]!==V||e[18]!==$?(y={search:o,searchTerm:b,setSearch:S,filters:p,setFilters:F,filterBarVisible:n,setFilterBarVisible:f,toggleFilterBar:V,viewMode:$,setViewMode:K,sortKey:M,sortDirection:v,handleSort:B},e[7]=n,e[8]=p,e[9]=B,e[10]=o,e[11]=b,e[12]=f,e[13]=F,e[14]=K,e[15]=v,e[16]=M,e[17]=V,e[18]=$,e[19]=y):y=e[19],y}export{W as u};