decocms 3.34.1 → 3.34.2

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 (234) hide show
  1. package/dist/client/assets/{AlertCircle-rpaL6q8T.js → AlertCircle-CQgcG-Ae.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-D7_4FAQ5.js → ArrowUpRight-D0znd3JO.js} +1 -1
  3. package/dist/client/assets/{Check-6LmIKXJj.js → Check-BUKt5vhH.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-D0kUlRsN.js → CheckCircle-x4whH3Qn.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-CaCYdoie.js → ChevronDown-C6ULHnU-.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-BuXkBFIm.js → ChevronLeft-Btt_21CS.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-kLRVkGUs.js → ChevronRight-glzdqN1s.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-DkGtzqyl.js → ChevronUp-C5QGzLz6.js} +1 -1
  9. package/dist/client/assets/{Container-Bl0qWNtu.js → Container-RGkdLpnR.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-CvhOKI-w.js → DotsVertical-BrpflBsP.js} +1 -1
  11. package/dist/client/assets/{Eye-BNS1RmzG.js → Eye-Bk7j3Cz0.js} +1 -1
  12. package/dist/client/assets/{FilterLines-BSmtfAHG.js → FilterLines-xOxNVJBa.js} +1 -1
  13. package/dist/client/assets/{Globe01-DjWlKHom.js → Globe01-C8CeCAhz.js} +1 -1
  14. package/dist/client/assets/{HardDrive-Dx3Blqhn.js → HardDrive-Czbw3MRd.js} +1 -1
  15. package/dist/client/assets/{Key01-D6jyUgYu.js → Key01-ChQ6WmeN.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-C7Cmt2J8.js → LayoutLeft-D3sIkDa-.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-B6flmd1s.js → LinkExternal01-DNf7UuUK.js} +1 -1
  18. package/dist/client/assets/{Monitor01-DBfOkkx9.js → Monitor01-BzTgEIFJ.js} +1 -1
  19. package/dist/client/assets/{Palette-BX6fdd-v.js → Palette-DwfZnoA5.js} +1 -1
  20. package/dist/client/assets/{Play-DApzrsBx.js → Play-BXW8gJMz.js} +1 -1
  21. package/dist/client/assets/{Plus-Do6ZWheh.js → Plus-CugY_4xX.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-CW918RSV.js → RefreshCcw01-DiPX3Tzc.js} +1 -1
  23. package/dist/client/assets/{SearchMd-B4Lavo8e.js → SearchMd-DltTVRsJ.js} +1 -1
  24. package/dist/client/assets/{Settings02-B57k_aEv.js → Settings02-sAiuI7qb.js} +1 -1
  25. package/dist/client/assets/{Shield01-CFDfVqiL.js → Shield01-C-4y3Jk3.js} +1 -1
  26. package/dist/client/assets/{Star01-QoJ-qcfh.js → Star01-D8Xy046a.js} +1 -1
  27. package/dist/client/assets/{Stars01-ANwy09AP.js → Stars01-BPnYJgb7.js} +1 -1
  28. package/dist/client/assets/{Stars02-C17u9BVa.js → Stars02-CP1Go7Ud.js} +1 -1
  29. package/dist/client/assets/{Sun-D4yzlyEv.js → Sun-BsWLyXgw.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-CkwE98n9.js → SwitchHorizontal01-MAz-yRbe.js} +1 -1
  31. package/dist/client/assets/{Tool01-B0zT3ots.js → Tool01-Cjstio7H.js} +1 -1
  32. package/dist/client/assets/{Trash01-Bifm5Wb3.js → Trash01-BJ6_IzkG.js} +1 -1
  33. package/dist/client/assets/{Upload01-mjA8r4Fi.js → Upload01-C2pjhIpk.js} +1 -1
  34. package/dist/client/assets/{User01-BZL6tFVt.js → User01-D2zO49mC.js} +1 -1
  35. package/dist/client/assets/{Users01-CqVfleMx.js → Users01-ubeIr2qn.js} +1 -1
  36. package/dist/client/assets/{Users03-C5i2CKOP.js → Users03-BqYE15gt.js} +1 -1
  37. package/dist/client/assets/{X-BWR0-4rz.js → X-BQX3Zy-X.js} +1 -1
  38. package/dist/client/assets/{XCircle-CiiIVhRh.js → XCircle-D9dvtOsK.js} +1 -1
  39. package/dist/client/assets/{XClose-D0wmxYTF.js → XClose-DaB-YREn.js} +1 -1
  40. package/dist/client/assets/{Zap-BGp3QjmM.js → Zap-j4DAJVgz.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-CxE5iHdd.js → ZapSquare-cM9Cdjuc.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-B1VNHI1K.js → ZoomOut-DVfZ-43U.js} +1 -1
  43. package/dist/client/assets/{access-gate-BELP4oqa.js → access-gate-DZ_2pDdY.js} +1 -1
  44. package/dist/client/assets/{accordion-Dsx4jZXX.js → accordion-BISd33DR.js} +1 -1
  45. package/dist/client/assets/{add-section-modal-BPiyATcO.js → add-section-modal-DIOLC-ZF.js} +1 -1
  46. package/dist/client/assets/{agent-capabilities-CmHO-Kgo.js → agent-capabilities-CVYxQ4uK.js} +1 -1
  47. package/dist/client/assets/{agent-icon-CpBAbwoh.js → agent-icon-BgD5mt7Y.js} +1 -1
  48. package/dist/client/assets/{agent-icons-C_pHQRgk.js → agent-icons-DmQcPkq-.js} +1 -1
  49. package/dist/client/assets/{agents-list-ud8B7XUs.js → agents-list-h30K61d9.js} +1 -1
  50. package/dist/client/assets/{ai-providers-DuT9vieJ.js → ai-providers-CEnY5BL7.js} +1 -1
  51. package/dist/client/assets/{alert-C_aVuLV8.js → alert-C7cWRVuG.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-Dsb6KPFM.js → alert-dialog-qtdXP2aD.js} +1 -1
  53. package/dist/client/assets/app-editor-B4mTx3Hz.js +1 -0
  54. package/dist/client/assets/{auth-catchall-DsJQjIZu.js → auth-catchall-CuT4FTL1.js} +1 -1
  55. package/dist/client/assets/{auth-split-layout-BBz1-8cc.js → auth-split-layout-BDEnOc9x.js} +1 -1
  56. package/dist/client/assets/{automation-list-row-DTcrDIUh.js → automation-list-row-BW5rM44g.js} +1 -1
  57. package/dist/client/assets/{automation-runs-D8yf4pum.js → automation-runs-BUOdfMri.js} +1 -1
  58. package/dist/client/assets/{automations-BqoqwiaS.js → automations-ClItqGDn.js} +1 -1
  59. package/dist/client/assets/{avatar-nCSKoB6F.js → avatar-DYsooxxy.js} +1 -1
  60. package/dist/client/assets/{badge-CY1rqnYU.js → badge-CTK5gX_I.js} +1 -1
  61. package/dist/client/assets/{brand-context-DCIkJfS8.js → brand-context-CtcRGgwt.js} +1 -1
  62. package/dist/client/assets/{buckets-CvxCU-Mg.js → buckets-BPPYI6Ll.js} +1 -1
  63. package/dist/client/assets/{calendar-vde5tCHf.js → calendar-DMziTV2J.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-DYWpzVHl.js → capability-load-error-BTLQ23rW.js} +1 -1
  65. package/dist/client/assets/{card-CYGsSb57.js → card-DGQIgBVW.js} +1 -1
  66. package/dist/client/assets/{chat-context-CDygsN4Q.js → chat-context-BwBc2M6a.js} +1 -1
  67. package/dist/client/assets/{checkbox-vKl7eadT.js → checkbox-B-MHp2m4.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-BgBSOhsv.js → cli-auth-success-CPZJCSmX.js} +1 -1
  69. package/dist/client/assets/{collection-detail-Cl0_mdap.js → collection-detail-AQZQR51q.js} +1 -1
  70. package/dist/client/assets/{collection-display-button-VpCmWGot.js → collection-display-button-Df3MeS7W.js} +1 -1
  71. package/dist/client/assets/{collection-search-CjkYy_AH.js → collection-search-BiQg9L4B.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-CuUrD2rg.js → collection-table-wrapper-DEwd3fgl.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-BGsvaOVA.js → collection-tabs-CcnS0Il2.js} +1 -1
  74. package/dist/client/assets/{collections-NCEoL2EX.js → collections-BnzTAqxJ.js} +1 -1
  75. package/dist/client/assets/{command-KCI9wvsu.js → command-DNZKPE8c.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-CgeQRUKM.js → connect-desktop-dialog-Cu6gQanY.js} +1 -1
  77. package/dist/client/assets/{connection-card-BioQsepZ.js → connection-card-CwL_Gtb4.js} +1 -1
  78. package/dist/client/assets/{connection-detail-szcerrZK.js → connection-detail-DTp8ff1l.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-DC_9yJsF.js → connection-form-helpers-Bm0LSgZq.js} +1 -1
  80. package/dist/client/assets/{connections-ZTcaOmQJ.js → connections-j-HJQpSe.js} +1 -1
  81. package/dist/client/assets/decopilot-sse-pool-COADWaXW.js +1 -0
  82. package/dist/client/assets/{dialog-CxpeEAA2.js → dialog-BVuxcsVk.js} +1 -1
  83. package/dist/client/assets/{domain-settings-FkOLC-vc.js → domain-settings-DKOBo5cc.js} +1 -1
  84. package/dist/client/assets/{drawer-R-Q-vfsa.js → drawer-DXb-AEyv.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-Xj0lVIXK.js → dropdown-menu-B8jiZxwT.js} +1 -1
  86. package/dist/client/assets/{dynamic-plugin-layout-ggJeSS9L.js → dynamic-plugin-layout-DYfQLQqA.js} +1 -1
  87. package/dist/client/assets/{empty-state-BhV-zl-f.js → empty-state-D5f29Xcz.js} +1 -1
  88. package/dist/client/assets/{empty-state-BEE0EBKQ.js → empty-state-DIMjTOGF.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-BJ4lD3eO.js → extract-connection-data-BJtaRoQB.js} +1 -1
  90. package/dist/client/assets/{features-2oa5PE-D.js → features-Baf8n_se.js} +1 -1
  91. package/dist/client/assets/{file-explorer-mkpu5feK.js → file-explorer-BB5qrAiH.js} +1 -1
  92. package/dist/client/assets/{file-type-icon-35VBMVCk.js → file-type-icon-9GbQJJla.js} +1 -1
  93. package/dist/client/assets/{files-C37GYe47.js → files-BDf63K2h.js} +1 -1
  94. package/dist/client/assets/{form-Ci8PGt-R.js → form-D5zHXlMU.js} +1 -1
  95. package/dist/client/assets/{general-NmglolSe.js → general-t5ylGzhM.js} +1 -1
  96. package/dist/client/assets/{generate-id-nWw_PZwJ.js → generate-id-16rt0unc.js} +1 -1
  97. package/dist/client/assets/{github-repo-picker-DY4w_1I0.js → github-repo-picker-D0jgVOhB.js} +1 -1
  98. package/dist/client/assets/{header-tab-button-C7XZ27Uv.js → header-tab-button-B7JCdtgi.js} +1 -1
  99. package/dist/client/assets/{hover-card-DY9PmUZF.js → hover-card-BAzXpmKd.js} +1 -1
  100. package/dist/client/assets/{image-field-DXfNSgLy.js → image-field-Ysc9gjw_.js} +1 -1
  101. package/dist/client/assets/{index-DO3UwA_I.js → index-BFPk_Xc8.js} +1 -1
  102. package/dist/client/assets/{index-BToBsTv0.js → index-BPCEqCH8.js} +1 -1
  103. package/dist/client/assets/{index-D9SSFpE5.js → index-BZGVDk3g.js} +1 -1
  104. package/dist/client/assets/{index-BvKb9qza.js → index-Bb8K2DUU.js} +1 -1
  105. package/dist/client/assets/{index-Czr8nkWj.js → index-C5DGaDTE.js} +1 -1
  106. package/dist/client/assets/{index-BEe1oLVg.js → index-C_RnYmCN.js} +1 -1
  107. package/dist/client/assets/{index-So-S11eP.js → index-CbN9kYHB.js} +1 -1
  108. package/dist/client/assets/{index-rZ1TPVyD.js → index-Cbngzld3.js} +3 -3
  109. package/dist/client/assets/{index-u2XUNnQk.js → index-DES0wLPI.js} +4 -4
  110. package/dist/client/assets/{index-DppjWA7O.js → index-DEkPGwPd.js} +1 -1
  111. package/dist/client/assets/{index-DUiGV32e.js → index-DdEtGRBb.js} +1 -1
  112. package/dist/client/assets/{index-61WbL3ye.js → index-Drq6TCfC.js} +1 -1
  113. package/dist/client/assets/{index-Dczuf3at.js → index-PadxIFkt.js} +1 -1
  114. package/dist/client/assets/{index-czuYZ_ID.js → index-kU5u3aEQ.js} +1 -1
  115. package/dist/client/assets/{index-redirect-Mq-_t69h.js → index-redirect-BVfzEM-2.js} +1 -1
  116. package/dist/client/assets/{index-Rf_PdJ5z.js → index-vM9scTJV.js} +1 -1
  117. package/dist/client/assets/{input-BPXWlz46.js → input-CxWmKS03.js} +1 -1
  118. package/dist/client/assets/{integration-icon-CWT0gSfx.js → integration-icon-C8l8gk56.js} +1 -1
  119. package/dist/client/assets/{label-CzVCjiiL.js → label-BUOqnJ7l.js} +1 -1
  120. package/dist/client/assets/{layout-DRDhyVmm.js → layout-BXEq9Lt0.js} +1 -1
  121. package/dist/client/assets/{login-BDymjDs5.js → login-79jBd8dT.js} +1 -1
  122. package/dist/client/assets/{members-CtJP3l4D.js → members-4ZcflmV4.js} +1 -1
  123. package/dist/client/assets/{monaco-editor-C-H4UmIT.js → monaco-editor-CwH2NVur.js} +1 -1
  124. package/dist/client/assets/{monitoring-stats-row-Bjwv0PCc.js → monitoring-stats-row-_N9Geab-.js} +1 -1
  125. package/dist/client/assets/{oauth-callback-BS0_f_H5.js → oauth-callback-UYq6rKIp.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-ai-provider-Bp-Z15lU.js → oauth-callback-ai-provider-CcTTT6yu.js} +1 -1
  127. package/dist/client/assets/{onboarding-tR6ID9Ba.js → onboarding-DM9L8yF1.js} +1 -1
  128. package/dist/client/assets/{org-install-Dao8BW5b.js → org-install-BKkCtJoj.js} +1 -1
  129. package/dist/client/assets/{org-layout-3WhlK4a0.js → org-layout-CeAaKEeN.js} +1 -1
  130. package/dist/client/assets/{org-plugin-layout-C-NqJRXX.js → org-plugin-layout-B_8XF5xC.js} +1 -1
  131. package/dist/client/assets/{page-seo-form-Dk6e77BM.js → page-seo-form-c-iWMPRU.js} +1 -1
  132. package/dist/client/assets/page-seo-sheet-DEsc0wUy.js +1 -0
  133. package/dist/client/assets/{pair-DYb6YfcG.js → pair-DGfi0DYT.js} +1 -1
  134. package/dist/client/assets/{plugin-empty-state-YbbYO5hU.js → plugin-empty-state-DhzIqwYl.js} +1 -1
  135. package/dist/client/assets/{plugin-header-8P4QiIoH.js → plugin-header-Nu37D2e7.js} +1 -1
  136. package/dist/client/assets/{plugin-layout-CKmZivzq.js → plugin-layout-DS-45rI5.js} +1 -1
  137. package/dist/client/assets/{popover-Bk3EwUPD.js → popover-DIhiGQZO.js} +1 -1
  138. package/dist/client/assets/{post-editor-Bw21I9pc.js → post-editor-BhTIGX9u.js} +1 -1
  139. package/dist/client/assets/{primitives-Dql_hUCU.js → primitives-D3OiaA1o.js} +1 -1
  140. package/dist/client/assets/{profile-DVNKZaX-.js → profile-BOnhq-U1.js} +1 -1
  141. package/dist/client/assets/project-app-view-B6XESkOH.js +1 -0
  142. package/dist/client/assets/record-editor-DDxQqS5k.js +1 -0
  143. package/dist/client/assets/registry-AsFW8yYm.js +2 -0
  144. package/dist/client/assets/{registry-layout-DwX4dFWX.js → registry-layout-CkNttCUh.js} +1 -1
  145. package/dist/client/assets/{require-capability-6kSOKhdT.js → require-capability-Cm5KwYyo.js} +1 -1
  146. package/dist/client/assets/{required-auth-layout-YEZh9H2w.js → required-auth-layout-C2qJiXM7.js} +1 -1
  147. package/dist/client/assets/{reset-password-DaCJM4Eh.js → reset-password-iw6TtkA7.js} +1 -1
  148. package/dist/client/assets/{resizable-23UTrxEL.js → resizable-DOED-lqJ.js} +1 -1
  149. package/dist/client/assets/{roles-xmvI7O0C.js → roles-DpYb1zXX.js} +1 -1
  150. package/dist/client/assets/save-referenced-block-aVkQu985.js +1 -0
  151. package/dist/client/assets/{save-status-BkzFYIeb.js → save-status-NiMLdA_E.js} +1 -1
  152. package/dist/client/assets/{schema-form-DNaVud8y.js → schema-form-BMMNRxMa.js} +1 -1
  153. package/dist/client/assets/{scroll-area-QXSqgT3C.js → scroll-area-BCusTvyt.js} +1 -1
  154. package/dist/client/assets/{search-input-DbmU5zU8.js → search-input-BlmktcqH.js} +1 -1
  155. package/dist/client/assets/{secrets-CrK7EU6I.js → secrets-Kx-u37G9.js} +1 -1
  156. package/dist/client/assets/{sections-editor-DJ6-AL_q.js → sections-editor-Btt2eICm.js} +1 -1
  157. package/dist/client/assets/{select-DRqZIuLQ.js → select-DJ-jQ95-.js} +1 -1
  158. package/dist/client/assets/{select-model-CZe_eVYF.js → select-model-CuVna3TI.js} +1 -1
  159. package/dist/client/assets/{seo-editor-pRBB6PMK.js → seo-editor-CpGzaUnY.js} +1 -1
  160. package/dist/client/assets/{settings-layout-osjNi_Qw.js → settings-layout-CUxOF-JB.js} +1 -1
  161. package/dist/client/assets/{settings-section-5LNAbhU4.js → settings-section-Bs7s9mU1.js} +1 -1
  162. package/dist/client/assets/{sheet-Dsfk9URc.js → sheet-4VDYc-Lf.js} +1 -1
  163. package/dist/client/assets/{shell-controls-BvG0M9XK.js → shell-controls-D0MQ2JKg.js} +1 -1
  164. package/dist/client/assets/{shell-layout-DkW3B_MZ.js → shell-layout-BtNaHUcu.js} +1 -1
  165. package/dist/client/assets/{shell-route-loading-CKElD_Av.js → shell-route-loading-Dy64K_ax.js} +1 -1
  166. package/dist/client/assets/{sidebar-B3SsvTHC.js → sidebar-DeB8mcen.js} +1 -1
  167. package/dist/client/assets/{skeleton-DvVUqja_.js → skeleton-Cuoq2c8E.js} +1 -1
  168. package/dist/client/assets/{sortable.esm-CnPAeADV.js → sortable.esm-4pxxx_ZW.js} +1 -1
  169. package/dist/client/assets/{spinner-DZmgr2qu.js → spinner-Dar3jTAz.js} +1 -1
  170. package/dist/client/assets/{sso-Ce8-uwYP.js → sso-C0PJx8_v.js} +1 -1
  171. package/dist/client/assets/{store-Cy7UQOIx.js → store-XNFzt3Sr.js} +1 -1
  172. package/dist/client/assets/store-registry-D3KY8zoe.js +2 -0
  173. package/dist/client/assets/{studio-tools-jbRVdtpc.js → studio-tools-B99HmIGq.js} +1 -1
  174. package/dist/client/assets/{switch-rL3a0x4B.js → switch-jfclxkGe.js} +1 -1
  175. package/dist/client/assets/{tab-id-hZWLCmfc.js → tab-id-C7uvN0td.js} +1 -1
  176. package/dist/client/assets/{table-cHRXPecF.js → table-DEsh_yYm.js} +1 -1
  177. package/dist/client/assets/{tabs-B68TQ0Dt.js → tabs-tr2cYDEl.js} +1 -1
  178. package/dist/client/assets/{task-status-Cqn0_tco.js → task-status-Ds87FkqY.js} +1 -1
  179. package/dist/client/assets/{textarea-Bymi75yx.js → textarea-uwm8kgXD.js} +1 -1
  180. package/dist/client/assets/{toggle-group-DnRl91Ne.js → toggle-group-BDjNDkJX.js} +1 -1
  181. package/dist/client/assets/{toolbar-Cb06hfKk.js → toolbar-BIItBzPS.js} +1 -1
  182. package/dist/client/assets/{tools-list-D12nTCg-.js → tools-list-BQc1il3V.js} +1 -1
  183. package/dist/client/assets/{tooltip-ua4lJTzI.js → tooltip--aN5hOmO.js} +1 -1
  184. package/dist/client/assets/{types-DJl0mitR.js → types-BqoD-In5.js} +1 -1
  185. package/dist/client/assets/{use-ai-providers-P6PF7YRx.js → use-ai-providers-CdyP1ECQ.js} +1 -1
  186. package/dist/client/assets/{use-automations-DGe3A7k6.js → use-automations-CtzZDGfB.js} +1 -1
  187. package/dist/client/assets/{use-capability-B2IrzHkM.js → use-capability-KB17PgvY.js} +1 -1
  188. package/dist/client/assets/{use-clock-tick-x-ip1-Lp.js → use-clock-tick-CbDuKmI6.js} +1 -1
  189. package/dist/client/assets/{use-collections-Dvp_IbhN.js → use-collections-shQIB33q.js} +1 -1
  190. package/dist/client/assets/{use-connection-CyWLUiRu.js → use-connection-Zog2j0WA.js} +1 -1
  191. package/dist/client/assets/{use-copy-nAd5EMaO.js → use-copy-CZHdrpQ2.js} +1 -1
  192. package/dist/client/assets/{use-create-virtual-mcp-DmdlMapL.js → use-create-virtual-mcp-aKZM7QuJ.js} +1 -1
  193. package/dist/client/assets/{use-debounced-autosave-DSZqKaTf.js → use-debounced-autosave-CLmefNH1.js} +1 -1
  194. package/dist/client/assets/{use-delete-connection-VJfJqSrZ.js → use-delete-connection-DXPW2vzV.js} +1 -1
  195. package/dist/client/assets/{use-file-configs-DXD_Hwrv.js → use-file-configs-vUZ85Q5v.js} +1 -1
  196. package/dist/client/assets/{use-infinite-scroll-B2zyjKex.js → use-infinite-scroll-RcbuivWg.js} +1 -1
  197. package/dist/client/assets/{use-list-state-ByLS4CFA.js → use-list-state-D4jM3-Gj.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-CGBZ7ekq.js → use-mcp-client-BNpG-Sq-.js} +1 -1
  199. package/dist/client/assets/{use-mcp-prompts-BQNNtRte.js → use-mcp-prompts-DXY1goeC.js} +1 -1
  200. package/dist/client/assets/{use-mcp-tools-Dn2JgISP.js → use-mcp-tools-BIWz7WmP.js} +1 -1
  201. package/dist/client/assets/{use-members-BaX0tyb1.js → use-members--qC59KQg.js} +1 -1
  202. package/dist/client/assets/{use-navigate-to-agent-5w6ZqBss.js → use-navigate-to-agent-nRLYSeRD.js} +1 -1
  203. package/dist/client/assets/{use-org-auth-client-CLnnUl3h.js → use-org-auth-client-vlAtiOoY.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-B8CLPiZl.js → use-org-sso-D9s0K3D9.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-UOgWPl1e.js → use-organization-roles-DfHQwz_9.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-D68AqLOQ.js → use-organization-settings-BYRiagaB.js} +1 -1
  207. package/dist/client/assets/{use-registry-connections-CRtbznIm.js → use-registry-connections-2J71KvqA.js} +1 -1
  208. package/dist/client/assets/{use-secrets--KIFsJ5I.js → use-secrets-CqzR66gk.js} +1 -1
  209. package/dist/client/assets/{use-status-sounds-B8VUkU2E.js → use-status-sounds-Ce0VEQki.js} +1 -1
  210. package/dist/client/assets/{use-view-mode-CvlKEBCR.js → use-view-mode-rJzWSnvR.js} +1 -1
  211. package/dist/client/assets/{use-virtual-mcp-mhycHzLS.js → use-virtual-mcp-CfnJ2csQ.js} +1 -1
  212. package/dist/client/assets/useInfiniteQuery-g2cikAaR.js +1 -0
  213. package/dist/client/assets/{useRouterState-qr3F3XJE.js → useRouterState-somQ9b5z.js} +1 -1
  214. package/dist/client/assets/useSuspenseInfiniteQuery-ZAutmGB6.js +1 -0
  215. package/dist/client/assets/{user-D73GXODW.js → user-Bku5ElcW.js} +1 -1
  216. package/dist/client/assets/{view-mode-toggle-3i0Tx7_t.js → view-mode-toggle-DV5nhx4X.js} +1 -1
  217. package/dist/client/assets/{watch-sse-pool-Bo209v56.js → watch-sse-pool-CzyBkAGb.js} +1 -1
  218. package/dist/client/assets/{workflow-DoAXdkx8.js → workflow-BPCoD875.js} +1 -1
  219. package/dist/client/assets/workflow-detail-DWZIWF6w.js +1 -0
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +2 -2
  222. package/dist/server/server.js +1 -1
  223. package/package.json +1 -1
  224. package/dist/client/assets/app-editor-CJE_W_Dn.js +0 -1
  225. package/dist/client/assets/decopilot-sse-pool-C2fCSDxg.js +0 -1
  226. package/dist/client/assets/page-seo-sheet-Ceb0gnAp.js +0 -1
  227. package/dist/client/assets/project-app-view-CMCeiidr.js +0 -1
  228. package/dist/client/assets/record-editor-803FPqaV.js +0 -1
  229. package/dist/client/assets/registry-BZxoTJql.js +0 -2
  230. package/dist/client/assets/save-referenced-block-CMYI5Fv0.js +0 -1
  231. package/dist/client/assets/store-registry-Cn522mzq.js +0 -2
  232. package/dist/client/assets/useInfiniteQuery-k6dph5MZ.js +0 -1
  233. package/dist/client/assets/useSuspenseInfiniteQuery-DGO3SU3a.js +0 -1
  234. package/dist/client/assets/workflow-detail-BVmen01p.js +0 -1
@@ -1 +1 @@
1
- import{K as g,e as c,q as _,n as z,G as C,a as G,r as P}from"./index-rZ1TPVyD.js";import{a as h,u as A,W as R}from"./use-mcp-client-CGBZ7ekq.js";const S={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_research:null}};function O(t,e){return{queryKey:g.organizationSettings(e),queryFn:async()=>{const n=await t.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}});return n?.isError?{...S,organizationId:e}:n.structuredContent??{...S,organizationId:e}},staleTime:6e4}}function E(t){const e=c.c(9),{org:n}=_();let s;e[0]!==n.id||e[1]!==n.slug?(s={connectionId:h,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const r=A(s);let i;e[3]!==r||e[4]!==n.id?(i=O(r,n.id),e[3]=r,e[4]=n.id,e[5]=i):i=e[5];const o=t;let a;return e[6]!==i||e[7]!==o?(a={...i,select:o},e[6]=i,e[7]=o,e[8]=a):a=e[8],z(a)}function Y(t,e){const n=c.c(6);let s;n[0]!==t||n[1]!==e?(s={connectionId:h,orgId:t,orgSlug:e},n[0]=t,n[1]=e,n[2]=s):s=n[2];const r=A(s);let i;n[3]!==r||n[4]!==t?(i=O(r,t),n[3]=r,n[4]=t,n[5]=i):i=n[5];const{data:o}=z(i);return o??null}function T(){const t=c.c(12),{org:e}=_();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:h,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=A(n),r=C();let i;t[3]!==s||t[4]!==e.id?(i=async l=>{const u=await s.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e.id,...l}});if(u?.isError)throw new Error(u.content?.[0]?.text??"Failed to update organization settings");const f=u.structuredContent;if(!f)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return f},t[3]=s,t[4]=e.id,t[5]=i):i=t[5];let o;t[6]!==e.id||t[7]!==r?(o=l=>{r.setQueryData(g.organizationSettings(e.id),u=>({...u??S,...l}))},t[6]=e.id,t[7]=r,t[8]=o):o=t[8];let a;return t[9]!==i||t[10]!==o?(a={mutationFn:i,onSuccess:o},t[9]=i,t[10]=o,t[11]=a):a=t[11],G(a)}function b(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_research:t.tiers.web_research??null}}:N}function H(){const{data:t}=E(Q);return t??N}function Q(t){return b(t.simple_mode)}function L(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({simple_mode:i},o),s=(i,o)=>e.mutateAsync({simple_mode:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function $(){const{data:t}=E(x);return t??null}function x(t){return t.registry_config}function W(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({registry_config:i},o),s=(i,o)=>e.mutateAsync({registry_config:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function Z(){const{data:t}=E(q);return t??null}function q(t){return t.default_home_agents}function U(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({default_home_agents:i},o),s=(i,o)=>e.mutateAsync({default_home_agents:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function j(){const t=c.c(14),{org:e}=_(),n=U(),s=C();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=Promise.resolve(),t[0]=r):r=t[0];const i=P.useRef(r);let o;t[1]!==e.id?(o=g.organizationSettings(e.id),t[1]=e.id,t[2]=o):o=t[2];const a=o;let l;t[3]!==a||t[4]!==s?(l=()=>s.getQueryData(a)?.default_home_agents?.ids??[],t[3]=a,t[4]=s,t[5]=l):l=t[5];const u=l;let f;t[6]!==a||t[7]!==e.slug||t[8]!==s||t[9]!==n?(f=D=>{const I=i.current.then(async()=>{const w=s.getQueryData(a),p=D(w?.default_home_agents?.ids??[]);if(p!==null){s.setQueryData(a,m=>m&&{...m,default_home_agents:{ids:p}});try{await n.mutateAsync({ids:p}),await s.refetchQueries({queryKey:g.homeNextActions(e.slug),type:"active"})}catch(m){const M=m;throw s.setQueryData(a,w),M}}});return i.current=I.catch(k),I},t[6]=a,t[7]=e.slug,t[8]=s,t[9]=n,t[10]=f):f=t[10];const y=f;let d;return t[11]!==y||t[12]!==u?(d={currentIds:u,apply:y},t[11]=y,t[12]=u,t[13]=d):d=t[13],d}function k(){}function B(){const t=c.c(5),{org:e}=_(),n=$();let s;t[0]!==e.id?(s=R.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const r=s;let i;return t[2]!==r||t[3]!==n?(i=o=>{if(!n)return o===r;const a=n.registries[o];return a?a.enabled:o===r},t[2]=r,t[3]=n,t[4]=i):i=t[4],i}export{j as a,B as b,Y as c,T as d,H as e,L as f,$ as g,W as h,O as o,Z as u};
1
+ import{K as g,e as c,q as _,n as z,G as C,a as G,r as P}from"./index-Cbngzld3.js";import{a as h,u as A,W as R}from"./use-mcp-client-BNpG-Sq-.js";const S={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},N={tiers:{fast:null,smart:null,thinking:null,image:null,web_research:null}};function O(t,e){return{queryKey:g.organizationSettings(e),queryFn:async()=>{const n=await t.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}});return n?.isError?{...S,organizationId:e}:n.structuredContent??{...S,organizationId:e}},staleTime:6e4}}function E(t){const e=c.c(9),{org:n}=_();let s;e[0]!==n.id||e[1]!==n.slug?(s={connectionId:h,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const r=A(s);let i;e[3]!==r||e[4]!==n.id?(i=O(r,n.id),e[3]=r,e[4]=n.id,e[5]=i):i=e[5];const o=t;let a;return e[6]!==i||e[7]!==o?(a={...i,select:o},e[6]=i,e[7]=o,e[8]=a):a=e[8],z(a)}function Y(t,e){const n=c.c(6);let s;n[0]!==t||n[1]!==e?(s={connectionId:h,orgId:t,orgSlug:e},n[0]=t,n[1]=e,n[2]=s):s=n[2];const r=A(s);let i;n[3]!==r||n[4]!==t?(i=O(r,t),n[3]=r,n[4]=t,n[5]=i):i=n[5];const{data:o}=z(i);return o??null}function T(){const t=c.c(12),{org:e}=_();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:h,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const s=A(n),r=C();let i;t[3]!==s||t[4]!==e.id?(i=async l=>{const u=await s.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e.id,...l}});if(u?.isError)throw new Error(u.content?.[0]?.text??"Failed to update organization settings");const f=u.structuredContent;if(!f)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return f},t[3]=s,t[4]=e.id,t[5]=i):i=t[5];let o;t[6]!==e.id||t[7]!==r?(o=l=>{r.setQueryData(g.organizationSettings(e.id),u=>({...u??S,...l}))},t[6]=e.id,t[7]=r,t[8]=o):o=t[8];let a;return t[9]!==i||t[10]!==o?(a={mutationFn:i,onSuccess:o},t[9]=i,t[10]=o,t[11]=a):a=t[11],G(a)}function b(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_research:t.tiers.web_research??null}}:N}function H(){const{data:t}=E(Q);return t??N}function Q(t){return b(t.simple_mode)}function L(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({simple_mode:i},o),s=(i,o)=>e.mutateAsync({simple_mode:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function $(){const{data:t}=E(x);return t??null}function x(t){return t.registry_config}function W(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({registry_config:i},o),s=(i,o)=>e.mutateAsync({registry_config:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function Z(){const{data:t}=E(q);return t??null}function q(t){return t.default_home_agents}function U(){const t=c.c(7),e=T();let n,s;t[0]!==e?(n=(i,o)=>e.mutate({default_home_agents:i},o),s=(i,o)=>e.mutateAsync({default_home_agents:i},o),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let r;return t[3]!==e||t[4]!==n||t[5]!==s?(r={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=r):r=t[6],r}function j(){const t=c.c(14),{org:e}=_(),n=U(),s=C();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=Promise.resolve(),t[0]=r):r=t[0];const i=P.useRef(r);let o;t[1]!==e.id?(o=g.organizationSettings(e.id),t[1]=e.id,t[2]=o):o=t[2];const a=o;let l;t[3]!==a||t[4]!==s?(l=()=>s.getQueryData(a)?.default_home_agents?.ids??[],t[3]=a,t[4]=s,t[5]=l):l=t[5];const u=l;let f;t[6]!==a||t[7]!==e.slug||t[8]!==s||t[9]!==n?(f=D=>{const I=i.current.then(async()=>{const w=s.getQueryData(a),p=D(w?.default_home_agents?.ids??[]);if(p!==null){s.setQueryData(a,m=>m&&{...m,default_home_agents:{ids:p}});try{await n.mutateAsync({ids:p}),await s.refetchQueries({queryKey:g.homeNextActions(e.slug),type:"active"})}catch(m){const M=m;throw s.setQueryData(a,w),M}}});return i.current=I.catch(k),I},t[6]=a,t[7]=e.slug,t[8]=s,t[9]=n,t[10]=f):f=t[10];const y=f;let d;return t[11]!==y||t[12]!==u?(d={currentIds:u,apply:y},t[11]=y,t[12]=u,t[13]=d):d=t[13],d}function k(){}function B(){const t=c.c(5),{org:e}=_(),n=$();let s;t[0]!==e.id?(s=R.REGISTRY(e.id),t[0]=e.id,t[1]=s):s=t[1];const r=s;let i;return t[2]!==r||t[3]!==n?(i=o=>{if(!n)return o===r;const a=n.registries[o];return a?a.enabled:o===r},t[2]=r,t[3]=n,t[4]=i):i=t[4],i}export{j as a,B as b,Y as c,T as d,H as e,L as f,$ as g,W as h,O as o,Z as u};
@@ -1 +1 @@
1
- import{e as a,q as C}from"./index-rZ1TPVyD.js";import{u as R}from"./use-connection-CyWLUiRu.js";import{W as u}from"./use-mcp-client-CGBZ7ekq.js";import{g as p}from"./use-organization-settings-D68AqLOQ.js";function E(){const e=a.c(17),{org:i}=C(),o=p();let n;e[0]!==i.id?(n=u.REGISTRY(i.id),e[0]=i.id,e[1]=n):n=e[1];const c=n;let l;e[2]!==i.id?(l=u.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=l):l=e[3];const d=l;let r;e[4]!==d||e[5]!==c?(r=[c,d],e[4]=d,e[5]=c,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const m of s)t.add(m)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const g=R();let f;if(e[12]!==g||e[13]!==t){let s;e[15]!==t?(s=m=>t.has(m.id),e[15]=t,e[16]=s):s=e[16],f=g.filter(s),e[12]=g,e[13]=t,e[14]=f}else f=e[14];return f}export{E as u};
1
+ import{e as a,q as C}from"./index-Cbngzld3.js";import{u as R}from"./use-connection-Zog2j0WA.js";import{W as u}from"./use-mcp-client-BNpG-Sq-.js";import{g as p}from"./use-organization-settings-BYRiagaB.js";function E(){const e=a.c(17),{org:i}=C(),o=p();let n;e[0]!==i.id?(n=u.REGISTRY(i.id),e[0]=i.id,e[1]=n):n=e[1];const c=n;let l;e[2]!==i.id?(l=u.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=l):l=e[3];const d=l;let r;e[4]!==d||e[5]!==c?(r=[c,d],e[4]=d,e[5]=c,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const m of s)t.add(m)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const g=R();let f;if(e[12]!==g||e[13]!==t){let s;e[15]!==t?(s=m=>t.has(m.id),e[15]=t,e[16]=s):s=e[16],f=g.filter(s),e[12]=g,e[13]=t,e[14]=f}else f=e[14];return f}export{E as u};
@@ -1 +1 @@
1
- import{e as n,q as r,K as c,s as y,G as d,a as S}from"./index-rZ1TPVyD.js";import{u as l}from"./studio-tools-jbRVdtpc.js";function C(){const e=n.c(7),{org:o}=r(),u=l();let i;e[0]!==o.id?(i=c.secrets(o.id),e[0]=o.id,e[1]=i):i=e[1];let t;e[2]!==u?(t=async()=>await u.call("SECRET_LIST",{}),e[2]=u,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:a}=y(s);return a.secrets}function p(){const e=n.c(8),{org:o}=r(),u=l(),i=d();let t;e[0]!==u?(t=async f=>await u.call("SECRET_CREATE",{...f}),e[0]=u,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:c.secrets(o.id)})},e[2]=o,e[3]=i,e[4]=s):s=e[4];let a;return e[5]!==t||e[6]!==s?(a={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=a):a=e[7],S(a)}export{p as a,C as u};
1
+ import{e as n,q as r,K as c,s as y,G as d,a as S}from"./index-Cbngzld3.js";import{u as l}from"./studio-tools-B99HmIGq.js";function C(){const e=n.c(7),{org:o}=r(),u=l();let i;e[0]!==o.id?(i=c.secrets(o.id),e[0]=o.id,e[1]=i):i=e[1];let t;e[2]!==u?(t=async()=>await u.call("SECRET_LIST",{}),e[2]=u,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:a}=y(s);return a.secrets}function p(){const e=n.c(8),{org:o}=r(),u=l(),i=d();let t;e[0]!==u?(t=async f=>await u.call("SECRET_CREATE",{...f}),e[0]=u,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:c.secrets(o.id)})},e[2]=o,e[3]=i,e[4]=s):s=e[4];let a;return e[5]!==t||e[6]!==s?(a={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=a):a=e[7],S(a)}export{p as a,C as u};
@@ -1 +1 @@
1
- import{r as o,e as T,a0 as h}from"./index-rZ1TPVyD.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{D as S}from"./watch-sse-pool-Bo209v56.js";import{d as y}from"./decopilot-sse-pool-C2fCSDxg.js";const b=()=>0;function D(s){const{orgSlug:e,taskId:n,enabled:t=!0,onStep:r,onFinish:u,onTaskStatus:f}=s,l=o.useRef({taskId:n,onStep:r,onFinish:u,onTaskStatus:f});l.current={taskId:n,onStep:r,onFinish:u,onTaskStatus:f};const i=o.useRef(null),p=o.useRef(t),d=o.useRef(e);(!i.current||p.current!==t||d.current!==e)&&(p.current=t,d.current=e,i.current=m=>{if(!t||!e)return()=>{};const E=k=>{let a;try{a=JSON.parse(k.data)}catch{return}const c=l.current;if(!(c.taskId&&a.subject!==c.taskId)){switch(a.type){case S.STEP:c.onStep?.(a);break;case S.FINISH:c.onFinish?.(a);break;case S.THREAD_STATUS:c.onTaskStatus?.(a);break}m()}};return y.subscribe(e,E)}),o.useSyncExternalStore(i.current,b,b)}const O=new Set(["completed","failed","requires_action"]);function q(s){const e=T.c(5),[n]=h();let t;e[0]!==n?(t=u=>{n.enableSounds&&O.has(u.data.status)&&R(I.dataUri).catch(_)},e[0]=n,e[1]=t):t=e[1];let r;e[2]!==s||e[3]!==t?(r={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=r):r=e[4],D(r)}function _(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
1
+ import{r as o,e as T,a0 as h}from"./index-Cbngzld3.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{D as S}from"./watch-sse-pool-CzyBkAGb.js";import{d as y}from"./decopilot-sse-pool-COADWaXW.js";const b=()=>0;function D(s){const{orgSlug:e,taskId:n,enabled:t=!0,onStep:r,onFinish:u,onTaskStatus:f}=s,l=o.useRef({taskId:n,onStep:r,onFinish:u,onTaskStatus:f});l.current={taskId:n,onStep:r,onFinish:u,onTaskStatus:f};const i=o.useRef(null),p=o.useRef(t),d=o.useRef(e);(!i.current||p.current!==t||d.current!==e)&&(p.current=t,d.current=e,i.current=m=>{if(!t||!e)return()=>{};const E=k=>{let a;try{a=JSON.parse(k.data)}catch{return}const c=l.current;if(!(c.taskId&&a.subject!==c.taskId)){switch(a.type){case S.STEP:c.onStep?.(a);break;case S.FINISH:c.onFinish?.(a);break;case S.THREAD_STATUS:c.onTaskStatus?.(a);break}m()}};return y.subscribe(e,E)}),o.useSyncExternalStore(i.current,b,b)}const O=new Set(["completed","failed","requires_action"]);function q(s){const e=T.c(5),[n]=h();let t;e[0]!==n?(t=u=>{n.enableSounds&&O.has(u.data.status)&&R(I.dataUri).catch(_)},e[0]=n,e[1]=t):t=e[1];let r;e[2]!==s||e[3]!==t?(r={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=r):r=e[4],D(r)}function _(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
@@ -1 +1 @@
1
- import{e as p,r as f}from"./index-rZ1TPVyD.js";import{u as w}from"./tooltip-ua4lJTzI.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
1
+ import{e as p,r as f}from"./index-Cbngzld3.js";import{u as w}from"./tooltip--aN5hOmO.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
@@ -1 +1 @@
1
- import{e as a,q as d,aO as p,n as P}from"./index-rZ1TPVyD.js";import{b as L,a as V,u as _,c as A}from"./use-collections-Dvp_IbhN.js";import{a as g,u as I}from"./use-mcp-client-CGBZ7ekq.js";function v(s){const t=a.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=d();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=I(o);return L(i.id,"VIRTUAL_MCP",l,n)}function R(s,t,e){return A(s,"VIRTUAL_MCP",t??void 0,e)}function b(s){const t=a.c(3),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);return _(e.id,"VIRTUAL_MCP",s??void 0,i)}function E(s){const t=a.c(15),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=P,l=p.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const C=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},f=new Map;for(const m of M.items)f.set(m.id,m);return f},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==u?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:u},t[11]=l,t[12]=C,t[13]=u,t[14]=r):r=t[14],c(r)}function $(){const s=a.c(3),{org:t}=d();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=I(e);return V(t.id,"VIRTUAL_MCP",n)}export{v as a,$ as b,E as c,b as u,R as v};
1
+ import{e as a,q as d,aO as p,n as P}from"./index-Cbngzld3.js";import{b as L,a as V,u as _,c as A}from"./use-collections-shQIB33q.js";import{a as g,u as I}from"./use-mcp-client-BNpG-Sq-.js";function v(s){const t=a.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=d();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=I(o);return L(i.id,"VIRTUAL_MCP",l,n)}function R(s,t,e){return A(s,"VIRTUAL_MCP",t??void 0,e)}function b(s){const t=a.c(3),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);return _(e.id,"VIRTUAL_MCP",s??void 0,i)}function E(s){const t=a.c(15),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=P,l=p.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const C=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},f=new Map;for(const m of M.items)f.set(m.id,m);return f},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==u?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:u},t[11]=l,t[12]=C,t[13]=u,t[14]=r):r=t[14],c(r)}function $(){const s=a.c(3),{org:t}=d();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=I(e);return V(t.id,"VIRTUAL_MCP",n)}export{v as a,$ as b,E as c,b as u,R as v};
@@ -0,0 +1 @@
1
+ import{I as u}from"./use-infinite-scroll-RcbuivWg.js";import{cG as i}from"./index-Cbngzld3.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{bo as s,r as c,bT as a,bU as i}from"./index-rZ1TPVyD.js";function f(r){const n=s({warn:r?.router===void 0}),t=r?.router||n,u=c.useRef(void 0);return a(t.stores.__store,e=>{if(r?.select){if(r.structuralSharing??t.options.defaultStructuralSharing){const o=i(u.current,r.select(e));return u.current=o,o}return r.select(e)}return e})}export{f as u};
1
+ import{bo as s,r as c,bT as a,bU as i}from"./index-Cbngzld3.js";function f(r){const n=s({warn:r?.router===void 0}),t=r?.router||n,u=c.useRef(void 0);return a(t.stores.__store,e=>{if(r?.select){if(r.structuralSharing??t.options.defaultStructuralSharing){const o=i(u.current,r.select(e));return u.current=o,o}return r.select(e)}return e})}export{f as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./use-infinite-scroll-RcbuivWg.js";import{cG as u,aF as n}from"./index-Cbngzld3.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{e as w,n as k,K as S,c as y,j as t}from"./index-rZ1TPVyD.js";import{A as E}from"./avatar-nCSKoB6F.js";import{u as K}from"./studio-tools-jbRVdtpc.js";function R(r){const e=w.c(9),p=K();let m;e[0]!==r?(m=S.user(r),e[0]=r,e[1]=m):m=e[1];let o;e[2]!==p||e[3]!==r?(o=async()=>{const{user:n}=await p.call("USER_GET",{id:r});return n},e[2]=p,e[3]=r,e[4]=o):o=e[4];const x=!!r;let s;return e[5]!==m||e[6]!==o||e[7]!==x?(s={queryKey:m,queryFn:o,staleTime:3e5,retry:1,enabled:x},e[5]=m,e[6]=o,e[7]=x,e[8]=s):s=e[8],k(s)}function A(r){const e=w.c(36),{id:p,size:m,showEmail:o,avatarOnly:x,className:s}=r,n=m===void 0?"xs":m,u=o===void 0?!1:o,d=x===void 0?!1:x,{data:c,isLoading:U,isError:b}=R(p);if(U){let l;e[0]!==s?(l=y("flex items-center gap-2",s),e[0]=s,e[1]=l):l=e[1];let a;e[2]!==n?(a=t.jsx(E.Skeleton,{shape:"circle",size:n}),e[2]=n,e[3]=a):a=e[3];let i;e[4]!==d||e[5]!==u?(i=!d&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),u&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=u,e[6]=i):i=e[6];let f;return e[7]!==l||e[8]!==a||e[9]!==i?(f=t.jsxs("div",{className:l,children:[a,i]}),e[7]=l,e[8]=a,e[9]=i,e[10]=f):f=e[10],f}if(b||!c){let l;e[11]!==s?(l=y("flex items-center gap-2",s),e[11]=s,e[12]=l):l=e[12];let a;e[13]!==n?(a=t.jsx(E,{shape:"circle",size:n,fallback:"?",muted:!0}),e[13]=n,e[14]=a):a=e[14];let i;e[15]!==d?(i=!d&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=d,e[16]=i):i=e[16];let f;return e[17]!==l||e[18]!==a||e[19]!==i?(f=t.jsxs("div",{className:l,children:[a,i]}),e[17]=l,e[18]=a,e[19]=i,e[20]=f):f=e[20],f}let v;e[21]!==s?(v=y("flex items-center gap-2",s),e[21]=s,e[22]=v):v=e[22];const g=c.image??void 0;let h;e[23]!==n||e[24]!==g||e[25]!==c.name?(h=t.jsx(E,{shape:"circle",size:n,url:g,fallback:c.name}),e[23]=n,e[24]=g,e[25]=c.name,e[26]=h):h=e[26];let j;e[27]!==d||e[28]!==u||e[29]!==c.email||e[30]!==c.name?(j=!d&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),u&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=d,e[28]=u,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let N;return e[32]!==v||e[33]!==h||e[34]!==j?(N=t.jsxs("div",{className:v,children:[h,j]}),e[32]=v,e[33]=h,e[34]=j,e[35]=N):N=e[35],N}export{A as U};
1
+ import{e as w,n as k,K as S,c as y,j as t}from"./index-Cbngzld3.js";import{A as E}from"./avatar-DYsooxxy.js";import{u as K}from"./studio-tools-B99HmIGq.js";function R(r){const e=w.c(9),p=K();let m;e[0]!==r?(m=S.user(r),e[0]=r,e[1]=m):m=e[1];let o;e[2]!==p||e[3]!==r?(o=async()=>{const{user:n}=await p.call("USER_GET",{id:r});return n},e[2]=p,e[3]=r,e[4]=o):o=e[4];const x=!!r;let s;return e[5]!==m||e[6]!==o||e[7]!==x?(s={queryKey:m,queryFn:o,staleTime:3e5,retry:1,enabled:x},e[5]=m,e[6]=o,e[7]=x,e[8]=s):s=e[8],k(s)}function A(r){const e=w.c(36),{id:p,size:m,showEmail:o,avatarOnly:x,className:s}=r,n=m===void 0?"xs":m,u=o===void 0?!1:o,d=x===void 0?!1:x,{data:c,isLoading:U,isError:b}=R(p);if(U){let l;e[0]!==s?(l=y("flex items-center gap-2",s),e[0]=s,e[1]=l):l=e[1];let a;e[2]!==n?(a=t.jsx(E.Skeleton,{shape:"circle",size:n}),e[2]=n,e[3]=a):a=e[3];let i;e[4]!==d||e[5]!==u?(i=!d&&t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),u&&t.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"})]}),e[4]=d,e[5]=u,e[6]=i):i=e[6];let f;return e[7]!==l||e[8]!==a||e[9]!==i?(f=t.jsxs("div",{className:l,children:[a,i]}),e[7]=l,e[8]=a,e[9]=i,e[10]=f):f=e[10],f}if(b||!c){let l;e[11]!==s?(l=y("flex items-center gap-2",s),e[11]=s,e[12]=l):l=e[12];let a;e[13]!==n?(a=t.jsx(E,{shape:"circle",size:n,fallback:"?",muted:!0}),e[13]=n,e[14]=a):a=e[14];let i;e[15]!==d?(i=!d&&t.jsx("div",{className:"flex flex-col",children:t.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[15]=d,e[16]=i):i=e[16];let f;return e[17]!==l||e[18]!==a||e[19]!==i?(f=t.jsxs("div",{className:l,children:[a,i]}),e[17]=l,e[18]=a,e[19]=i,e[20]=f):f=e[20],f}let v;e[21]!==s?(v=y("flex items-center gap-2",s),e[21]=s,e[22]=v):v=e[22];const g=c.image??void 0;let h;e[23]!==n||e[24]!==g||e[25]!==c.name?(h=t.jsx(E,{shape:"circle",size:n,url:g,fallback:c.name}),e[23]=n,e[24]=g,e[25]=c.name,e[26]=h):h=e[26];let j;e[27]!==d||e[28]!==u||e[29]!==c.email||e[30]!==c.name?(j=!d&&t.jsxs("div",{className:"flex flex-col",children:[t.jsx("div",{className:"text-sm font-medium",children:c.name}),u&&t.jsx("div",{className:"text-xs text-muted-foreground",children:c.email})]}),e[27]=d,e[28]=u,e[29]=c.email,e[30]=c.name,e[31]=j):j=e[31];let N;return e[32]!==v||e[33]!==h||e[34]!==j?(N=t.jsxs("div",{className:v,children:[h,j]}),e[32]=v,e[33]=h,e[34]=j,e[35]=N):N=e[35],N}export{A as U};
@@ -1 +1 @@
1
- import{e as k,r as C,c as x,j as i}from"./index-rZ1TPVyD.js";import{b as I,T as P,a as L}from"./tooltip-ua4lJTzI.js";const M={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function B(S){const e=k.c(27),{value:s,onValueChange:y,options:o,size:R,fullWidth:E,className:z}=S,V=R===void 0?"sm":R,u=E===void 0?!1:E;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const _=C.useRef(b);let g;e[1]===Symbol.for("react.memo_cache_sentinel")?(g={left:0,width:0,opacity:0},e[1]=g):g=e[1];const[f,W]=C.useState(g);let h,p;e[2]!==o||e[3]!==s?(h=()=>{const t=o.findIndex(j=>j.value===s),m=_.current[t];m&&W({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],e[2]=o,e[3]=s,e[4]=h,e[5]=p):(h=e[4],p=e[5]),C.useEffect(h,p);const d=M[V];let n;e[6]!==z?(n=x("relative flex gap-0 bg-muted rounded-lg",z),e[6]=z,e[7]=n):n=e[7];let l;e[8]!==d||e[9]!==u||e[10]!==y||e[11]!==o||e[12]!==s?(l=o.map((t,m)=>{const j=i.jsxs("button",{ref:$=>{_.current[m]=$},type:"button",onClick:()=>y(t.value),className:x("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",u?"flex-1 h-12 px-4":d.button,!u&&t.label?"px-3":""),children:[i.jsx("span",{className:x("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",d.icon,s===t.value?"text-foreground":"text-muted-foreground"),children:t.icon}),t.label&&i.jsx("span",{className:x("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===t.value?"text-foreground":"text-muted-foreground"),children:t.label})]},t.value);return t.tooltip?i.jsxs(I,{children:[i.jsx(P,{asChild:!0,children:j}),i.jsx(L,{side:"bottom",children:t.tooltip})]},t.value):j}),e[8]=d,e[9]=u,e[10]=y,e[11]=o,e[12]=s,e[13]=l):l=e[13];const w=u?"h-12":d.button;let a;e[14]!==w?(a=x("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),e[14]=w,e[15]=a):a=e[15];const N=`${f.left}px`,T=`${f.width}px`;let r;e[16]!==f.opacity||e[17]!==N||e[18]!==T?(r={left:N,width:T,opacity:f.opacity},e[16]=f.opacity,e[17]=N,e[18]=T,e[19]=r):r=e[19];let c;e[20]!==a||e[21]!==r?(c=i.jsx("div",{className:a,style:r}),e[20]=a,e[21]=r,e[22]=c):c=e[22];let v;return e[23]!==c||e[24]!==n||e[25]!==l?(v=i.jsxs("div",{className:n,children:[l,c]}),e[23]=c,e[24]=n,e[25]=l,e[26]=v):v=e[26],v}export{B as V};
1
+ import{e as k,r as C,c as x,j as i}from"./index-Cbngzld3.js";import{b as I,T as P,a as L}from"./tooltip--aN5hOmO.js";const M={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function B(S){const e=k.c(27),{value:s,onValueChange:y,options:o,size:R,fullWidth:E,className:z}=S,V=R===void 0?"sm":R,u=E===void 0?!1:E;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=[],e[0]=b):b=e[0];const _=C.useRef(b);let g;e[1]===Symbol.for("react.memo_cache_sentinel")?(g={left:0,width:0,opacity:0},e[1]=g):g=e[1];const[f,W]=C.useState(g);let h,p;e[2]!==o||e[3]!==s?(h=()=>{const t=o.findIndex(j=>j.value===s),m=_.current[t];m&&W({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],e[2]=o,e[3]=s,e[4]=h,e[5]=p):(h=e[4],p=e[5]),C.useEffect(h,p);const d=M[V];let n;e[6]!==z?(n=x("relative flex gap-0 bg-muted rounded-lg",z),e[6]=z,e[7]=n):n=e[7];let l;e[8]!==d||e[9]!==u||e[10]!==y||e[11]!==o||e[12]!==s?(l=o.map((t,m)=>{const j=i.jsxs("button",{ref:$=>{_.current[m]=$},type:"button",onClick:()=>y(t.value),className:x("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",u?"flex-1 h-12 px-4":d.button,!u&&t.label?"px-3":""),children:[i.jsx("span",{className:x("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",d.icon,s===t.value?"text-foreground":"text-muted-foreground"),children:t.icon}),t.label&&i.jsx("span",{className:x("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===t.value?"text-foreground":"text-muted-foreground"),children:t.label})]},t.value);return t.tooltip?i.jsxs(I,{children:[i.jsx(P,{asChild:!0,children:j}),i.jsx(L,{side:"bottom",children:t.tooltip})]},t.value):j}),e[8]=d,e[9]=u,e[10]=y,e[11]=o,e[12]=s,e[13]=l):l=e[13];const w=u?"h-12":d.button;let a;e[14]!==w?(a=x("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),e[14]=w,e[15]=a):a=e[15];const N=`${f.left}px`,T=`${f.width}px`;let r;e[16]!==f.opacity||e[17]!==N||e[18]!==T?(r={left:N,width:T,opacity:f.opacity},e[16]=f.opacity,e[17]=N,e[18]=T,e[19]=r):r=e[19];let c;e[20]!==a||e[21]!==r?(c=i.jsx("div",{className:a,style:r}),e[20]=a,e[21]=r,e[22]=c):c=e[22];let v;return e[23]!==c||e[24]!==n||e[25]!==l?(v=i.jsxs("div",{className:n,children:[l,c]}),e[23]=c,e[24]=n,e[25]=l,e[26]=v):v=e[26],v}export{B as V};
@@ -1 +1 @@
1
- import"./index-rZ1TPVyD.js";const y={STEP:"decopilot.step",FINISH:"decopilot.finish",THREAD_STATUS:"decopilot.thread.status"},p=Object.values(y);function _(n,l,i,o,c){const a=Math.min(n,l*o**i);return(1-c*Math.random())*a}const v=3e4,D=1e3;function O(n){const{buildUrl:l,eventTypes:i,name:o,crossTab:c=!1}=n,a=new Map,u=c&&typeof BroadcastChannel<"u"&&typeof navigator<"u"&&typeof navigator.locks<"u";if(u&&!o)throw new Error("createSSESubscription: `name` is required when crossTab");function d(e,t){e.bootDone=!0;for(const s of e.handlers)try{s(t)}catch{}}function h(e){for(const t of e.reconnectHandlers)try{t()}catch{}}function E(e){const t=new EventSource(l(e.key));e.es=t,t.onopen=()=>{e.reconnectAttempt=0,e.bootDone&&(h(e),e.channel?.postMessage({kind:"reconnect"})),e.bootDone=!0},t.onerror=()=>{e.es===t&&t.readyState===EventSource.CLOSED&&C(e)};const s=r=>{e.channel?.postMessage({kind:"event",type:r.type,data:r.data}),d(e,r)};for(const r of i)t.addEventListener(r,s)}function C(e){if(e.refCount<=0||e.reconnectTimer)return;const t=_(v,D,e.reconnectAttempt,2,0);e.reconnectAttempt++,e.reconnectTimer=setTimeout(()=>{e.reconnectTimer=null,!(e.refCount<=0||!e.isLeader)&&(e.es?.close(),E(e))},t)}function T(e){if(e.refCount<=0){e.releaseLeadership?.(),e.releaseLeadership=null;return}e.isLeader=!0,E(e)}function m(e){if(!u){T(e);return}e.lockAbort=new AbortController,navigator.locks.request(`sse-leader:${o}:${e.key}`,{signal:e.lockAbort.signal},()=>new Promise(t=>{e.releaseLeadership=t,T(e)})).catch(()=>{})}function L(e,t){t.kind==="event"?d(e,new MessageEvent(t.type,{data:t.data})):t.kind==="reconnect"&&h(e)}function A(e){const t=a.get(e);if(t)return t;const s={key:e,refCount:0,handlers:new Set,reconnectHandlers:new Set,bootDone:!1,es:null,isLeader:!1,reconnectAttempt:0,reconnectTimer:null,channel:null,lockAbort:null,releaseLeadership:null};if(a.set(e,s),u){const r=new BroadcastChannel(`sse:${o}:${e}`);r.onmessage=f=>L(s,f.data),s.channel=r}return m(s),s}function k(e){e.reconnectTimer&&(clearTimeout(e.reconnectTimer),e.reconnectTimer=null),e.es?.close(),e.es=null,e.releaseLeadership?.(),e.releaseLeadership=null,e.lockAbort?.abort(),e.lockAbort=null,e.channel?.close(),e.channel=null,a.delete(e.key)}return{subscribe(e,t,s){const r=A(e);r.refCount++,r.handlers.add(t),s&&r.reconnectHandlers.add(s);let f=!1;return()=>{f||(f=!0,r.handlers.delete(t),s&&r.reconnectHandlers.delete(s),r.refCount--,r.refCount<=0&&k(r))}}}}function w(n,l){const i=new Set(l);return{subscribe(o,c,a){const u=d=>{i.has(d.type)&&c(d)};return n.subscribe(o,u,a)}}}const b=["workflow.execution.created","workflow.execution.resumed","workflow.step.execute","workflow.step.completed"],g=[...p,"workflow.*"],M=[...p,...b],S=O({name:"watch",buildUrl:n=>`/api/${encodeURIComponent(n)}/watch?types=${g.join(",")}`,eventTypes:M,crossTab:!0}),H=w(S,[...p]),P=w(S,b);export{y as D,H as d,_ as e,P as w};
1
+ import"./index-Cbngzld3.js";const y={STEP:"decopilot.step",FINISH:"decopilot.finish",THREAD_STATUS:"decopilot.thread.status"},p=Object.values(y);function _(n,l,i,o,c){const a=Math.min(n,l*o**i);return(1-c*Math.random())*a}const v=3e4,D=1e3;function O(n){const{buildUrl:l,eventTypes:i,name:o,crossTab:c=!1}=n,a=new Map,u=c&&typeof BroadcastChannel<"u"&&typeof navigator<"u"&&typeof navigator.locks<"u";if(u&&!o)throw new Error("createSSESubscription: `name` is required when crossTab");function d(e,t){e.bootDone=!0;for(const s of e.handlers)try{s(t)}catch{}}function h(e){for(const t of e.reconnectHandlers)try{t()}catch{}}function E(e){const t=new EventSource(l(e.key));e.es=t,t.onopen=()=>{e.reconnectAttempt=0,e.bootDone&&(h(e),e.channel?.postMessage({kind:"reconnect"})),e.bootDone=!0},t.onerror=()=>{e.es===t&&t.readyState===EventSource.CLOSED&&C(e)};const s=r=>{e.channel?.postMessage({kind:"event",type:r.type,data:r.data}),d(e,r)};for(const r of i)t.addEventListener(r,s)}function C(e){if(e.refCount<=0||e.reconnectTimer)return;const t=_(v,D,e.reconnectAttempt,2,0);e.reconnectAttempt++,e.reconnectTimer=setTimeout(()=>{e.reconnectTimer=null,!(e.refCount<=0||!e.isLeader)&&(e.es?.close(),E(e))},t)}function T(e){if(e.refCount<=0){e.releaseLeadership?.(),e.releaseLeadership=null;return}e.isLeader=!0,E(e)}function m(e){if(!u){T(e);return}e.lockAbort=new AbortController,navigator.locks.request(`sse-leader:${o}:${e.key}`,{signal:e.lockAbort.signal},()=>new Promise(t=>{e.releaseLeadership=t,T(e)})).catch(()=>{})}function L(e,t){t.kind==="event"?d(e,new MessageEvent(t.type,{data:t.data})):t.kind==="reconnect"&&h(e)}function A(e){const t=a.get(e);if(t)return t;const s={key:e,refCount:0,handlers:new Set,reconnectHandlers:new Set,bootDone:!1,es:null,isLeader:!1,reconnectAttempt:0,reconnectTimer:null,channel:null,lockAbort:null,releaseLeadership:null};if(a.set(e,s),u){const r=new BroadcastChannel(`sse:${o}:${e}`);r.onmessage=f=>L(s,f.data),s.channel=r}return m(s),s}function k(e){e.reconnectTimer&&(clearTimeout(e.reconnectTimer),e.reconnectTimer=null),e.es?.close(),e.es=null,e.releaseLeadership?.(),e.releaseLeadership=null,e.lockAbort?.abort(),e.lockAbort=null,e.channel?.close(),e.channel=null,a.delete(e.key)}return{subscribe(e,t,s){const r=A(e);r.refCount++,r.handlers.add(t),s&&r.reconnectHandlers.add(s);let f=!1;return()=>{f||(f=!0,r.handlers.delete(t),s&&r.reconnectHandlers.delete(s),r.refCount--,r.refCount<=0&&k(r))}}}}function w(n,l){const i=new Set(l);return{subscribe(o,c,a){const u=d=>{i.has(d.type)&&c(d)};return n.subscribe(o,u,a)}}}const b=["workflow.execution.created","workflow.execution.resumed","workflow.step.execute","workflow.step.completed"],g=[...p,"workflow.*"],M=[...p,...b],S=O({name:"watch",buildUrl:n=>`/api/${encodeURIComponent(n)}/watch?types=${g.join(",")}`,eventTypes:M,crossTab:!0}),H=w(S,[...p]),P=w(S,b);export{y as D,H as d,_ as e,P as w};
@@ -1 +1 @@
1
- import{e as oe,j as t,B as Ce,f as Be,b as lt,q as ze,r as at,o as Le,G as ct,a as dt,K as Fe,ec as Ke,dz as mt}from"./index-rZ1TPVyD.js";import{u as pt,a as ut}from"./use-mcp-client-CGBZ7ekq.js";import{B as ft,g as Me}from"./generate-id-nWw_PZwJ.js";import{C as qe}from"./collection-display-button-VpCmWGot.js";import{C as ht}from"./collection-search-CjkYy_AH.js";import{C as gt}from"./card-CYGsSb57.js";import{I as Ve}from"./integration-icon-CWT0gSfx.js";import{D as Ge,a as Qe,b as He,c as O}from"./dropdown-menu-Xj0lVIXK.js";import{s as Je,a as Ye}from"./Eye-BNS1RmzG.js";import{i as Xe}from"./DotsVertical-CvhOKI-w.js";import{i as Ze}from"./Tool01-B0zT3ots.js";import{s as et}from"./Trash01-Bifm5Wb3.js";import{C as xt}from"./collection-table-wrapper-CuUrD2rg.js";import{E as Ue}from"./empty-state-BEE0EBKQ.js";import{n as We}from"./Stars02-C17u9BVa.js";import{U as jt}from"./user-D73GXODW.js";import{E as tt}from"./empty-state-BhV-zl-f.js";import{u as Ct}from"./use-list-state-ByLS4CFA.js";import{g as bt}from"./connection-slug-eyAPH6o3.js";import{f as vt,g as yt,c as Nt,b as wt,d as St,e as Pt,a as _t,A as Dt}from"./alert-dialog-Dsb6KPFM.js";import{a as It,b as At}from"./use-collections-Dvp_IbhN.js";import{a as Tt}from"./use-connection-CyWLUiRu.js";import{s as Et}from"./Plus-Do6ZWheh.js";import{a as Ot}from"./layout-DRDhyVmm.js";import{u as $t}from"./studio-tools-jbRVdtpc.js";import{P as je}from"./index-DO3UwA_I.js";import"./collections-NCEoL2EX.js";import"./SwitchHorizontal01-CkwE98n9.js";import"./Check-6LmIKXJj.js";import"./tooltip-ua4lJTzI.js";import"./view-mode-toggle-3i0Tx7_t.js";import"./badge-CY1rqnYU.js";import"./SearchMd-B4Lavo8e.js";import"./Container-Bl0qWNtu.js";import"./agent-icon-CpBAbwoh.js";import"./AlertCircle-rpaL6q8T.js";import"./RefreshCcw01-CW918RSV.js";import"./XCircle-CiiIVhRh.js";import"./ArrowUpRight-D7_4FAQ5.js";import"./ZapSquare-CxE5iHdd.js";import"./Users03-C5i2CKOP.js";import"./CheckCircle-D0kUlRsN.js";import"./ChevronDown-CaCYdoie.js";import"./ChevronLeft-BuXkBFIm.js";import"./ChevronRight-kLRVkGUs.js";import"./ChevronUp-DkGtzqyl.js";import"./ZoomOut-B1VNHI1K.js";import"./Globe01-DjWlKHom.js";import"./FilterLines-BSmtfAHG.js";import"./Star01-QoJ-qcfh.js";import"./Palette-BX6fdd-v.js";import"./HardDrive-Dx3Blqhn.js";import"./Key01-D6jyUgYu.js";import"./LayoutLeft-C7Cmt2J8.js";import"./LinkExternal01-B6flmd1s.js";import"./Monitor01-DBfOkkx9.js";import"./Sun-D4yzlyEv.js";import"./Play-DApzrsBx.js";import"./Settings02-B57k_aEv.js";import"./Shield01-CFDfVqiL.js";import"./Stars01-ANwy09AP.js";import"./Upload01-mjA8r4Fi.js";import"./User01-BZL6tFVt.js";import"./Users01-CqVfleMx.js";import"./XClose-D0wmxYTF.js";import"./X-BWR0-4rz.js";import"./Zap-BGp3QjmM.js";import"./table-cHRXPecF.js";import"./avatar-nCSKoB6F.js";import"./use-view-mode-CvlKEBCR.js";import"./sidebar-B3SsvTHC.js";import"./sheet-Dsfk9URc.js";function kt(i,e){const s=i.properties||{};for(const n in s){const a=s[n];if(a&&a.type==="string"&&(a.format==="url"||a.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const l=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of l)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function zt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let a;e[0]!==s||e[1]!==l?(a=kt(l,s),e[0]=s,e[1]=l,e[2]=a):a=e[2];const r=a,u=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let m;e[3]!==n?(m=n&&Object.keys(n).length>0,e[3]=n,e[4]=m):m=e[4];const o=m;let p;e[5]!==r||e[6]!==s.title?(p=t.jsx(Ve,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=p):p=e[7];let d;e[8]!==s.title?(d=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=d):d=e[9];const h=u||"No description";let c;e[10]!==h?(c=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:h}),e[10]=h,e[11]=c):c=e[11];let v;e[12]!==d||e[13]!==c?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[d,c]}),e[12]=d,e[13]=c,e[14]=v):v=e[14];let y;e[15]!==p||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[p,v]}),e[15]=p,e[16]=v,e[17]=y):y=e[17];let b;e[18]!==n||e[19]!==o||e[20]!==s?(b=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Mt,onMouseDown:Kt,children:t.jsxs(Ge,{children:[t.jsx(Qe,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Ft,children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:Lt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Je,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(Ze,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ye,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(et,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=o,e[20]=s,e[21]=b):b=e[21];let x;return e[22]!==y||e[23]!==b?(x=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,b]}),e[22]=y,e[23]=b,e[24]=x):x=e[24],x}function Lt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}function Mt(i){return i.stopPropagation()}const Ut=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Wt(i){return Object.keys(i).find(e=>Ut.includes(e.toLowerCase()))}function st(i,e){return Object.keys(i.properties||{}).filter(s=>["id","created_at","updated_at","created_by","updated_by"].includes(s)?!1:e?e.includes(s):!0).map(s=>({id:s,label:s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," ")}))}function Rt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:a,sortKey:r,sortDirection:u,onSort:m,actions:o,onItemClick:p,headerActions:d,emptyState:h,readOnly:c,columns:v,hideToolbar:y,sortableFields:b}=i,x=u===void 0?"asc":u,g=m===void 0?Gt:m;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const f=$,T=p===void 0?Vt:p,E=d===void 0?null:d,N=h===void 0?null:h,k=c===void 0?!1:c,j=v===void 0?void 0:v,z=y===void 0?!1:y,P=b===void 0?void 0:b;let D;e[2]!==j||e[3]!==l||e[4]!==P?(D=j?j.filter(qt).filter(A=>!P||P.includes(A.id)).map(Bt):st(l,P),e[2]=j,e[3]=l,e[4]=P,e[5]=D):D=e[5];const w=D;let S;e[6]!==E||e[7]!==z||e[8]!==g||e[9]!==x||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(qe,{sortKey:r,sortDirection:x,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=x,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==f||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==a||e[22]!==x||e[23]!==r||e[24]!==P||e[25]!==n?(_=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:a?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:s.map(A=>t.jsx("div",{onClick:()=>T?.(A),className:"cursor-pointer h-full",children:t.jsx(zt,{item:A,schema:l,readOnly:k,actions:f})},A.id))})}):t.jsx(xt,{columns:Jt(j,l,P,f),data:s,sortKey:r,sortDirection:x,onSort:g,onRowClick:T,emptyState:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:a?"Try adjusting your search":"No items to display"})}),e[13]=f,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=a,e[22]=x,e[23]=r,e[24]=P,e[25]=n,e[26]=_):_=e[26];let I;return e[27]!==S||e[28]!==_?(I=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[S,_]}),e[27]=S,e[28]=_,e[29]=I):I=e[29],I}function Bt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function qt(i){return i.sortable!==!1}function Vt(){}function Gt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(Ge,{children:[t.jsx(Qe,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Je,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(Ze,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ye,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(et,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function it(i){const e=i.type;return Array.isArray(e)?e.every(s=>it({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Ht(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const p=s[o];return p&&it(p)}),n=Wt(s),a=[],r=new Set;n&&l.includes(n)&&(a.push(n),r.add(n));const u=["title","description","updated_at","updated_by"];for(const o of u)l.includes(o)&&!r.has(o)&&(a.push(o),r.add(o));const m=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,p)=>o.localeCompare(p));for(const o of m)a.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(a.push(o),r.add(o));return a.map(o=>{const p=s[o],d=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:h=>{const c=h[o];return t.jsx(Ve,{icon:c,name:h.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:h=>{const c=h[o];return c==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(c)})},sortable:d,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c?t.jsx(jt,{id:String(c),size:"xs"}):"—"},sortable:d,cellClassName:"max-w-[250px]"}:p?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c?t.jsx("span",{className:"block truncate max-w-full",children:new Date(c).toLocaleDateString()}):"—"},sortable:d,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(c)})},sortable:d,cellClassName:"max-w-[200px]"}})}function Jt(i,e,s,l){const n=i||Ht(e,s);return n.some(u=>u.id==="actions")?n:Object.keys(l).length>0?[...n,Qt(l)]:n}function Yt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:a}=i,r=n.name,u=n.schema??ft,m=n.hasCreateTool,o=n.hasUpdateTool,p=n.hasDeleteTool,d=Be(),{data:h}=lt.useSession(),c=h?.user?.id||"unknown",v=Tt(s);let y;e[0]!==v||e[1]!==s?(y=v?bt(v):s,e[0]=v,e[1]=s,e[2]=y):y=e[2];const b=y,{org:x}=ze();let g;e[3]!==s||e[4]!==x.id||e[5]!==x.slug?(g={connectionId:s,orgId:x.id,orgSlug:x.slug},e[3]=s,e[4]=x.id,e[5]=x.slug,e[6]=g):g=e[6];const $=pt(g),f=It(s,r,$),T=`${s}-${r}`;let E;e[7]!==l||e[8]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[7]=l,e[8]=T,e[9]=E):E=e[9];const{search:N,searchTerm:k,setSearch:j,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[10]!==k||e[11]!==w||e[12]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[10]=k,e[11]=w,e[12]=D,e[13]=_):_=e[13];const I=At(s,r,$,_),A=!m&&!o&&!p;let ne;e[14]!==b||e[15]!==r||e[16]!==d||e[17]!==a||e[18]!==l?(ne=C=>{if(a){a(C);return}d({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:C.id}})},e[14]=b,e[15]=r,e[16]=d,e[17]=a,e[18]=l,e[19]=ne):ne=e[19];const L=ne;let re;e[20]!==f.create||e[21]!==c?(re=async C=>{const xe=new Date().toISOString();await f.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:c,updated_by:c})},e[20]=f.create,e[21]=c,e[22]=re):re=e[22];const be=re,[F,ve]=at.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const ot=le;let K;e[24]!==L||e[25]!==o?(K=o&&{edit:L},e[24]=L,e[25]=o,e[26]=K):K=e[26];let M;e[27]!==be||e[28]!==m?(M=m&&{duplicate:be},e[27]=be,e[28]=m,e[29]=M):M=e[29];let U;e[30]!==p?(U=p&&{delete:ot},e[30]=p,e[31]=U):U=e[31];let ae;e[32]!==M||e[33]!==U||e[34]!==K?(ae={...K,...M,...U},e[32]=M,e[33]=U,e[34]=K,e[35]=ae):ae=e[35];const ye=ae;let ce;e[36]!==f.delete||e[37]!==F?(ce=async()=>{F&&(await f.delete.mutateAsync(F.id),ve(null))},e[36]=f.delete,e[37]=F,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==f.create||e[40]!==b||e[41]!==r||e[42]!==m||e[43]!==d||e[44]!==l||e[45]!==c?(de=async()=>{if(!m){Le.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:c,updated_by:c};try{const ke=await f.create.mutateAsync(xe);d({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[39]=f.create,e[40]=b,e[41]=r,e[42]=m,e[43]=d,e[44]=l,e[45]=c,e[46]=de):de=e[46];const we=de;let me;e[47]!==u?(me=st(u),e[47]=u,e[48]=me):me=e[48];const Se=me,nt=(I?.length??0)>0,rt=m&&!nt&&!N;let pe;e[49]!==f.create||e[50]!==we||e[51]!==m?(pe=m?t.jsxs(Ce,{onClick:we,size:"sm",disabled:f.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),f.create.isPending?"Creating...":"Create"]}):null,e[49]=f.create,e[50]=we,e[51]=m,e[52]=pe):pe=e[52];const ue=pe,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(qe,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[53]=S,e[54]=w,e[55]=Se,e[56]=Pe,e[57]=W):W=e[57];const _e=`Search ${r}...`;let R;e[58]!==j?(R=C=>{C.key==="Escape"&&(j(""),C.target.blur())},e[58]=j,e[59]=R):R=e[59];let B;e[60]!==N||e[61]!==j||e[62]!==_e||e[63]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:j,placeholder:_e,onKeyDown:R})}),e[60]=N,e[61]=j,e[62]=_e,e[63]=R,e[64]=B):B=e[64];let q;e[65]!==ue||e[66]!==m?(q=m&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=m,e[67]=q):q=e[67];let V;e[68]!==B||e[69]!==q?(V=t.jsxs("div",{className:"flex items-center gap-2",children:[B,q]}),e[68]=B,e[69]=q,e[70]=V):V=e[70];let G;e[71]!==I?(G=I??[],e[71]=I,e[72]=G):G=e[72];const De=D;let Q;e[73]!==L?(Q=C=>L(C),e[73]=L,e[74]=Q):Q=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=rt?ue:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(tt,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=H):H=e[78];let J;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==u||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==G||e[88]!==De||e[89]!==Q||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Rt,{hideToolbar:!0,data:G,schema:u,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:Q,readOnly:A,emptyState:H})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=u,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=G,e[88]=De,e[89]=Q,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==V||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,J]}),e[93]=V,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!F;let fe;e[96]===Symbol.for("react.memo_cache_sentinel")?(fe=C=>{C||ve(null)},e[96]=fe):fe=e[96];let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[97]=he):he=e[97];const Oe=F?.title;let X;e[98]!==Oe?(X=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[98]=Oe,e[99]=X):X=e[99];let Z;e[100]!==f.delete.isPending?(Z=t.jsx(vt,{disabled:f.delete.isPending,children:"Cancel"}),e[100]=f.delete.isPending,e[101]=Z):Z=e[101];const $e=f.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==f.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:f.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=f.delete.isPending,e[103]=Ne,e[104]=$e,e[105]=ee):ee=e[105];let te;e[106]!==Z||e[107]!==ee?(te=t.jsxs(Pt,{children:[Z,ee]}),e[106]=Z,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==X||e[110]!==te?(se=t.jsxs(_t,{children:[X,te]}),e[109]=X,e[110]=te,e[111]=se):se=e[111];let ie;e[112]!==Ee||e[113]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[112]=Ee,e[113]=se,e[114]=ie):ie=e[114];let ge;return e[115]!==W||e[116]!==Y||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,Y,ie]}),e[115]=W,e[116]=Y,e[117]=ie,e[118]=ge):ge=e[118],ge}function Xt(){const i=oe.c(10),{org:e,project:s}=ze(),l=ct(),n=$t();let a;i[0]!==s||i[1]!==n?(a=async o=>{const p=s.enabledPlugins??[];if(p.includes(o))return;const d=[...p,o];return await n.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:s.id,data:{metadata:{enabled_plugins:d}}})},i[0]=s,i[1]=n,i[2]=a):a=i[2];let r;i[3]!==e||i[4]!==s||i[5]!==l?(r=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[3]=e,i[4]=s,i[5]=l,i[6]=r):r=i[6];let u;return i[7]!==a||i[8]!==r?(u={mutationFn:a,onSuccess:r,onError:Zt},i[7]=a,i[8]=r,i[9]=u):u=i[9],dt(u)}function Zt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function es(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:a}=i,r=Xt();let u;e[0]!==r||e[1]!==s?(u=async()=>{try{await r.mutateAsync(s),Le.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=u):u=e[2];const m=u,o=a??null,p=r.isPending?"Enabling…":"Enable plugin";let d;e[3]!==r.isPending||e[4]!==m||e[5]!==p?(d=t.jsx(Ce,{onClick:m,disabled:r.isPending,children:p}),e[3]=r.isPending,e[4]=m,e[5]=p,e[6]=d):d=e[6];let h;return e[7]!==n||e[8]!==o||e[9]!==d||e[10]!==l?(h=t.jsx(tt,{image:o,title:l,description:n,actions:d}),e[7]=n,e[8]=o,e[9]=d,e[10]=l,e[11]=h):h=e[11],h}const ts={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function vi(){const{project:i,org:e}=ze();if(!(i.enabledPlugins??[]).includes(Ke))return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(es,{pluginId:Ke,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(mt,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Yt,{connectionId:ut,org:e.slug,activeCollection:ts,onItemClick:a=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:a.id}})})})})}export{vi as default};
1
+ import{e as oe,j as t,B as Ce,f as Be,b as lt,q as ze,r as at,o as Le,G as ct,a as dt,K as Fe,ec as Ke,dz as mt}from"./index-Cbngzld3.js";import{u as pt,a as ut}from"./use-mcp-client-BNpG-Sq-.js";import{B as ft,g as Me}from"./generate-id-16rt0unc.js";import{C as qe}from"./collection-display-button-Df3MeS7W.js";import{C as ht}from"./collection-search-BiQg9L4B.js";import{C as gt}from"./card-DGQIgBVW.js";import{I as Ve}from"./integration-icon-C8l8gk56.js";import{D as Ge,a as Qe,b as He,c as O}from"./dropdown-menu-B8jiZxwT.js";import{s as Je,a as Ye}from"./Eye-Bk7j3Cz0.js";import{i as Xe}from"./DotsVertical-BrpflBsP.js";import{i as Ze}from"./Tool01-Cjstio7H.js";import{s as et}from"./Trash01-BJ6_IzkG.js";import{C as xt}from"./collection-table-wrapper-DEwd3fgl.js";import{E as Ue}from"./empty-state-DIMjTOGF.js";import{n as We}from"./Stars02-CP1Go7Ud.js";import{U as jt}from"./user-Bku5ElcW.js";import{E as tt}from"./empty-state-D5f29Xcz.js";import{u as Ct}from"./use-list-state-D4jM3-Gj.js";import{g as bt}from"./connection-slug-eyAPH6o3.js";import{f as vt,g as yt,c as Nt,b as wt,d as St,e as Pt,a as _t,A as Dt}from"./alert-dialog-qtdXP2aD.js";import{a as It,b as At}from"./use-collections-shQIB33q.js";import{a as Tt}from"./use-connection-Zog2j0WA.js";import{s as Et}from"./Plus-CugY_4xX.js";import{a as Ot}from"./layout-BXEq9Lt0.js";import{u as $t}from"./studio-tools-B99HmIGq.js";import{P as je}from"./index-BFPk_Xc8.js";import"./collections-BnzTAqxJ.js";import"./SwitchHorizontal01-MAz-yRbe.js";import"./Check-BUKt5vhH.js";import"./tooltip--aN5hOmO.js";import"./view-mode-toggle-DV5nhx4X.js";import"./badge-CTK5gX_I.js";import"./SearchMd-DltTVRsJ.js";import"./Container-RGkdLpnR.js";import"./agent-icon-BgD5mt7Y.js";import"./AlertCircle-CQgcG-Ae.js";import"./RefreshCcw01-DiPX3Tzc.js";import"./XCircle-D9dvtOsK.js";import"./ArrowUpRight-D0znd3JO.js";import"./ZapSquare-cM9Cdjuc.js";import"./Users03-BqYE15gt.js";import"./CheckCircle-x4whH3Qn.js";import"./ChevronDown-C6ULHnU-.js";import"./ChevronLeft-Btt_21CS.js";import"./ChevronRight-glzdqN1s.js";import"./ChevronUp-C5QGzLz6.js";import"./ZoomOut-DVfZ-43U.js";import"./Globe01-C8CeCAhz.js";import"./FilterLines-xOxNVJBa.js";import"./Star01-D8Xy046a.js";import"./Palette-DwfZnoA5.js";import"./HardDrive-Czbw3MRd.js";import"./Key01-ChQ6WmeN.js";import"./LayoutLeft-D3sIkDa-.js";import"./LinkExternal01-DNf7UuUK.js";import"./Monitor01-BzTgEIFJ.js";import"./Sun-BsWLyXgw.js";import"./Play-BXW8gJMz.js";import"./Settings02-sAiuI7qb.js";import"./Shield01-C-4y3Jk3.js";import"./Stars01-BPnYJgb7.js";import"./Upload01-C2pjhIpk.js";import"./User01-D2zO49mC.js";import"./Users01-ubeIr2qn.js";import"./XClose-DaB-YREn.js";import"./X-BQX3Zy-X.js";import"./Zap-j4DAJVgz.js";import"./table-DEsh_yYm.js";import"./avatar-DYsooxxy.js";import"./use-view-mode-rJzWSnvR.js";import"./sidebar-DeB8mcen.js";import"./sheet-4VDYc-Lf.js";function kt(i,e){const s=i.properties||{};for(const n in s){const a=s[n];if(a&&a.type==="string"&&(a.format==="url"||a.format==="uri")&&e&&typeof e=="object"&&n in e&&e[n])return e[n]}const l=["image","img","avatar","icon","logo","thumbnail","cover"];for(const n of l)if(e&&typeof e=="object"&&n in e&&typeof e[n]=="string")return e[n]}function zt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let a;e[0]!==s||e[1]!==l?(a=kt(l,s),e[0]=s,e[1]=l,e[2]=a):a=e[2];const r=a,u=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let m;e[3]!==n?(m=n&&Object.keys(n).length>0,e[3]=n,e[4]=m):m=e[4];const o=m;let p;e[5]!==r||e[6]!==s.title?(p=t.jsx(Ve,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=p):p=e[7];let d;e[8]!==s.title?(d=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=d):d=e[9];const h=u||"No description";let c;e[10]!==h?(c=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:h}),e[10]=h,e[11]=c):c=e[11];let v;e[12]!==d||e[13]!==c?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[d,c]}),e[12]=d,e[13]=c,e[14]=v):v=e[14];let y;e[15]!==p||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[p,v]}),e[15]=p,e[16]=v,e[17]=y):y=e[17];let b;e[18]!==n||e[19]!==o||e[20]!==s?(b=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Mt,onMouseDown:Kt,children:t.jsxs(Ge,{children:[t.jsx(Qe,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Ft,children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:Lt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Je,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(Ze,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ye,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(et,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=o,e[20]=s,e[21]=b):b=e[21];let x;return e[22]!==y||e[23]!==b?(x=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,b]}),e[22]=y,e[23]=b,e[24]=x):x=e[24],x}function Lt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}function Mt(i){return i.stopPropagation()}const Ut=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Wt(i){return Object.keys(i).find(e=>Ut.includes(e.toLowerCase()))}function st(i,e){return Object.keys(i.properties||{}).filter(s=>["id","created_at","updated_at","created_by","updated_by"].includes(s)?!1:e?e.includes(s):!0).map(s=>({id:s,label:s.charAt(0).toUpperCase()+s.slice(1).replace(/_/g," ")}))}function Rt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:a,sortKey:r,sortDirection:u,onSort:m,actions:o,onItemClick:p,headerActions:d,emptyState:h,readOnly:c,columns:v,hideToolbar:y,sortableFields:b}=i,x=u===void 0?"asc":u,g=m===void 0?Gt:m;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const f=$,T=p===void 0?Vt:p,E=d===void 0?null:d,N=h===void 0?null:h,k=c===void 0?!1:c,j=v===void 0?void 0:v,z=y===void 0?!1:y,P=b===void 0?void 0:b;let D;e[2]!==j||e[3]!==l||e[4]!==P?(D=j?j.filter(qt).filter(A=>!P||P.includes(A.id)).map(Bt):st(l,P),e[2]=j,e[3]=l,e[4]=P,e[5]=D):D=e[5];const w=D;let S;e[6]!==E||e[7]!==z||e[8]!==g||e[9]!==x||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(qe,{sortKey:r,sortDirection:x,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=x,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==f||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==a||e[22]!==x||e[23]!==r||e[24]!==P||e[25]!==n?(_=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:a?"Try adjusting your search":"No items to display"})}):t.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:s.map(A=>t.jsx("div",{onClick:()=>T?.(A),className:"cursor-pointer h-full",children:t.jsx(zt,{item:A,schema:l,readOnly:k,actions:f})},A.id))})}):t.jsx(xt,{columns:Jt(j,l,P,f),data:s,sortKey:r,sortDirection:x,onSort:g,onRowClick:T,emptyState:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:a?"Try adjusting your search":"No items to display"})}),e[13]=f,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=a,e[22]=x,e[23]=r,e[24]=P,e[25]=n,e[26]=_):_=e[26];let I;return e[27]!==S||e[28]!==_?(I=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[S,_]}),e[27]=S,e[28]=_,e[29]=I):I=e[29],I}function Bt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function qt(i){return i.sortable!==!1}function Vt(){}function Gt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(Ge,{children:[t.jsx(Qe,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Je,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(Ze,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ye,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(et,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function it(i){const e=i.type;return Array.isArray(e)?e.every(s=>it({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Ht(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const p=s[o];return p&&it(p)}),n=Wt(s),a=[],r=new Set;n&&l.includes(n)&&(a.push(n),r.add(n));const u=["title","description","updated_at","updated_by"];for(const o of u)l.includes(o)&&!r.has(o)&&(a.push(o),r.add(o));const m=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,p)=>o.localeCompare(p));for(const o of m)a.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(a.push(o),r.add(o));return a.map(o=>{const p=s[o],d=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:h=>{const c=h[o];return t.jsx(Ve,{icon:c,name:h.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:h=>{const c=h[o];return c==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(c)})},sortable:d,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c?t.jsx(jt,{id:String(c),size:"xs"}):"—"},sortable:d,cellClassName:"max-w-[250px]"}:p?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c?t.jsx("span",{className:"block truncate max-w-full",children:new Date(c).toLocaleDateString()}):"—"},sortable:d,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:h=>{const c=h[o];return c==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(c)})},sortable:d,cellClassName:"max-w-[200px]"}})}function Jt(i,e,s,l){const n=i||Ht(e,s);return n.some(u=>u.id==="actions")?n:Object.keys(l).length>0?[...n,Qt(l)]:n}function Yt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:a}=i,r=n.name,u=n.schema??ft,m=n.hasCreateTool,o=n.hasUpdateTool,p=n.hasDeleteTool,d=Be(),{data:h}=lt.useSession(),c=h?.user?.id||"unknown",v=Tt(s);let y;e[0]!==v||e[1]!==s?(y=v?bt(v):s,e[0]=v,e[1]=s,e[2]=y):y=e[2];const b=y,{org:x}=ze();let g;e[3]!==s||e[4]!==x.id||e[5]!==x.slug?(g={connectionId:s,orgId:x.id,orgSlug:x.slug},e[3]=s,e[4]=x.id,e[5]=x.slug,e[6]=g):g=e[6];const $=pt(g),f=It(s,r,$),T=`${s}-${r}`;let E;e[7]!==l||e[8]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[7]=l,e[8]=T,e[9]=E):E=e[9];const{search:N,searchTerm:k,setSearch:j,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[10]!==k||e[11]!==w||e[12]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[10]=k,e[11]=w,e[12]=D,e[13]=_):_=e[13];const I=At(s,r,$,_),A=!m&&!o&&!p;let ne;e[14]!==b||e[15]!==r||e[16]!==d||e[17]!==a||e[18]!==l?(ne=C=>{if(a){a(C);return}d({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:C.id}})},e[14]=b,e[15]=r,e[16]=d,e[17]=a,e[18]=l,e[19]=ne):ne=e[19];const L=ne;let re;e[20]!==f.create||e[21]!==c?(re=async C=>{const xe=new Date().toISOString();await f.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:c,updated_by:c})},e[20]=f.create,e[21]=c,e[22]=re):re=e[22];const be=re,[F,ve]=at.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const ot=le;let K;e[24]!==L||e[25]!==o?(K=o&&{edit:L},e[24]=L,e[25]=o,e[26]=K):K=e[26];let M;e[27]!==be||e[28]!==m?(M=m&&{duplicate:be},e[27]=be,e[28]=m,e[29]=M):M=e[29];let U;e[30]!==p?(U=p&&{delete:ot},e[30]=p,e[31]=U):U=e[31];let ae;e[32]!==M||e[33]!==U||e[34]!==K?(ae={...K,...M,...U},e[32]=M,e[33]=U,e[34]=K,e[35]=ae):ae=e[35];const ye=ae;let ce;e[36]!==f.delete||e[37]!==F?(ce=async()=>{F&&(await f.delete.mutateAsync(F.id),ve(null))},e[36]=f.delete,e[37]=F,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==f.create||e[40]!==b||e[41]!==r||e[42]!==m||e[43]!==d||e[44]!==l||e[45]!==c?(de=async()=>{if(!m){Le.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:c,updated_by:c};try{const ke=await f.create.mutateAsync(xe);d({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[39]=f.create,e[40]=b,e[41]=r,e[42]=m,e[43]=d,e[44]=l,e[45]=c,e[46]=de):de=e[46];const we=de;let me;e[47]!==u?(me=st(u),e[47]=u,e[48]=me):me=e[48];const Se=me,nt=(I?.length??0)>0,rt=m&&!nt&&!N;let pe;e[49]!==f.create||e[50]!==we||e[51]!==m?(pe=m?t.jsxs(Ce,{onClick:we,size:"sm",disabled:f.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),f.create.isPending?"Creating...":"Create"]}):null,e[49]=f.create,e[50]=we,e[51]=m,e[52]=pe):pe=e[52];const ue=pe,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(qe,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[53]=S,e[54]=w,e[55]=Se,e[56]=Pe,e[57]=W):W=e[57];const _e=`Search ${r}...`;let R;e[58]!==j?(R=C=>{C.key==="Escape"&&(j(""),C.target.blur())},e[58]=j,e[59]=R):R=e[59];let B;e[60]!==N||e[61]!==j||e[62]!==_e||e[63]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:j,placeholder:_e,onKeyDown:R})}),e[60]=N,e[61]=j,e[62]=_e,e[63]=R,e[64]=B):B=e[64];let q;e[65]!==ue||e[66]!==m?(q=m&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=m,e[67]=q):q=e[67];let V;e[68]!==B||e[69]!==q?(V=t.jsxs("div",{className:"flex items-center gap-2",children:[B,q]}),e[68]=B,e[69]=q,e[70]=V):V=e[70];let G;e[71]!==I?(G=I??[],e[71]=I,e[72]=G):G=e[72];const De=D;let Q;e[73]!==L?(Q=C=>L(C),e[73]=L,e[74]=Q):Q=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=rt?ue:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(tt,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=H):H=e[78];let J;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==u||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==G||e[88]!==De||e[89]!==Q||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Rt,{hideToolbar:!0,data:G,schema:u,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:Q,readOnly:A,emptyState:H})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=u,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=G,e[88]=De,e[89]=Q,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==V||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,J]}),e[93]=V,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!F;let fe;e[96]===Symbol.for("react.memo_cache_sentinel")?(fe=C=>{C||ve(null)},e[96]=fe):fe=e[96];let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[97]=he):he=e[97];const Oe=F?.title;let X;e[98]!==Oe?(X=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[98]=Oe,e[99]=X):X=e[99];let Z;e[100]!==f.delete.isPending?(Z=t.jsx(vt,{disabled:f.delete.isPending,children:"Cancel"}),e[100]=f.delete.isPending,e[101]=Z):Z=e[101];const $e=f.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==f.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:f.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=f.delete.isPending,e[103]=Ne,e[104]=$e,e[105]=ee):ee=e[105];let te;e[106]!==Z||e[107]!==ee?(te=t.jsxs(Pt,{children:[Z,ee]}),e[106]=Z,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==X||e[110]!==te?(se=t.jsxs(_t,{children:[X,te]}),e[109]=X,e[110]=te,e[111]=se):se=e[111];let ie;e[112]!==Ee||e[113]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[112]=Ee,e[113]=se,e[114]=ie):ie=e[114];let ge;return e[115]!==W||e[116]!==Y||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,Y,ie]}),e[115]=W,e[116]=Y,e[117]=ie,e[118]=ge):ge=e[118],ge}function Xt(){const i=oe.c(10),{org:e,project:s}=ze(),l=ct(),n=$t();let a;i[0]!==s||i[1]!==n?(a=async o=>{const p=s.enabledPlugins??[];if(p.includes(o))return;const d=[...p,o];return await n.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:s.id,data:{metadata:{enabled_plugins:d}}})},i[0]=s,i[1]=n,i[2]=a):a=i[2];let r;i[3]!==e||i[4]!==s||i[5]!==l?(r=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[3]=e,i[4]=s,i[5]=l,i[6]=r):r=i[6];let u;return i[7]!==a||i[8]!==r?(u={mutationFn:a,onSuccess:r,onError:Zt},i[7]=a,i[8]=r,i[9]=u):u=i[9],dt(u)}function Zt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function es(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:a}=i,r=Xt();let u;e[0]!==r||e[1]!==s?(u=async()=>{try{await r.mutateAsync(s),Le.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=u):u=e[2];const m=u,o=a??null,p=r.isPending?"Enabling…":"Enable plugin";let d;e[3]!==r.isPending||e[4]!==m||e[5]!==p?(d=t.jsx(Ce,{onClick:m,disabled:r.isPending,children:p}),e[3]=r.isPending,e[4]=m,e[5]=p,e[6]=d):d=e[6];let h;return e[7]!==n||e[8]!==o||e[9]!==d||e[10]!==l?(h=t.jsx(tt,{image:o,title:l,description:n,actions:d}),e[7]=n,e[8]=o,e[9]=d,e[10]=l,e[11]=h):h=e[11],h}const ts={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function vi(){const{project:i,org:e}=ze();if(!(i.enabledPlugins??[]).includes(Ke))return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(es,{pluginId:Ke,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(mt,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Yt,{connectionId:ut,org:e.slug,activeCollection:ts,onItemClick:a=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:a.id}})})})})}export{vi as default};
@@ -0,0 +1 @@
1
+ import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-Cbngzld3.js";import{a as f}from"./index-Drq6TCfC.js";import"./index-DdEtGRBb.js";import"./use-mcp-client-BNpG-Sq-.js";import"./collections-BnzTAqxJ.js";import"./index-BZGVDk3g.js";import"./use-virtual-mcp-CfnJ2csQ.js";import"./use-collections-shQIB33q.js";import"./monaco-editor-CwH2NVur.js";import"./index-DEkPGwPd.js";import"./spinner-Dar3jTAz.js";import"./resizable-DOED-lqJ.js";import"./ZoomOut-DVfZ-43U.js";import"./badge-CTK5gX_I.js";import"./select-DJ-jQ95-.js";import"./tooltip--aN5hOmO.js";import"./Check-BUKt5vhH.js";import"./ChevronDown-C6ULHnU-.js";import"./ChevronUp-C5QGzLz6.js";import"./view-mode-toggle-DV5nhx4X.js";import"./agent-icon-BgD5mt7Y.js";import"./AlertCircle-CQgcG-Ae.js";import"./Tool01-Cjstio7H.js";import"./SwitchHorizontal01-MAz-yRbe.js";import"./RefreshCcw01-DiPX3Tzc.js";import"./XCircle-D9dvtOsK.js";import"./ArrowUpRight-D0znd3JO.js";import"./ZapSquare-cM9Cdjuc.js";import"./Users03-BqYE15gt.js";import"./CheckCircle-x4whH3Qn.js";import"./ChevronLeft-Btt_21CS.js";import"./ChevronRight-glzdqN1s.js";import"./DotsVertical-BrpflBsP.js";import"./Container-RGkdLpnR.js";import"./Eye-Bk7j3Cz0.js";import"./Globe01-C8CeCAhz.js";import"./FilterLines-xOxNVJBa.js";import"./Star01-D8Xy046a.js";import"./Palette-DwfZnoA5.js";import"./HardDrive-Czbw3MRd.js";import"./Stars02-CP1Go7Ud.js";import"./Key01-ChQ6WmeN.js";import"./LayoutLeft-D3sIkDa-.js";import"./LinkExternal01-DNf7UuUK.js";import"./Monitor01-BzTgEIFJ.js";import"./Sun-BsWLyXgw.js";import"./Play-BXW8gJMz.js";import"./Plus-CugY_4xX.js";import"./SearchMd-DltTVRsJ.js";import"./Settings02-sAiuI7qb.js";import"./Shield01-C-4y3Jk3.js";import"./Stars01-BPnYJgb7.js";import"./Trash01-BJ6_IzkG.js";import"./Upload01-C2pjhIpk.js";import"./User01-D2zO49mC.js";import"./Users01-ubeIr2qn.js";import"./XClose-DaB-YREn.js";import"./X-BQX3Zy-X.js";import"./Zap-j4DAJVgz.js";import"./layout-BXEq9Lt0.js";import"./index-BFPk_Xc8.js";import"./sidebar-DeB8mcen.js";import"./sheet-4VDYc-Lf.js";import"./use-connection-Zog2j0WA.js";import"./use-mcp-tools-BIWz7WmP.js";import"./dialog-BVuxcsVk.js";import"./scroll-area-BCusTvyt.js";import"./index-PadxIFkt.js";import"./hover-card-BAzXpmKd.js";import"./dropdown-menu-B8jiZxwT.js";import"./integration-icon-C8l8gk56.js";import"./accordion-BISd33DR.js";import"./index-kU5u3aEQ.js";import"./empty-state-DIMjTOGF.js";import"./watch-sse-pool-CzyBkAGb.js";import"./input-CxWmKS03.js";function Bt(){const t=s.c(4);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={from:"/shell/$org/settings/workflows/$itemId"},t[0]=r):r=t[0];const{itemId:e}=l(r);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(a,{size:32,className:"animate-spin text-muted-foreground"})}),t[1]=i):i=t[1];const p=decodeURIComponent(e);let m;return t[2]!==p?(m=o.jsx(n,{children:o.jsx(c.Suspense,{fallback:i,children:o.jsx(f,{itemId:p})})}),t[2]=p,t[3]=m):m=t[3],m}export{Bt as default};
@@ -43,7 +43,7 @@
43
43
  <meta name="apple-mobile-web-app-capable" content="yes" />
44
44
  <meta name="apple-mobile-web-app-status-bar-style" content="default" />
45
45
  <meta name="apple-mobile-web-app-title" content="deco Studio" />
46
- <script type="module" crossorigin src="/assets/index-rZ1TPVyD.js"></script>
46
+ <script type="module" crossorigin src="/assets/index-Cbngzld3.js"></script>
47
47
  <link rel="stylesheet" crossorigin href="/assets/index-DfYyH4IW.css">
48
48
  </head>
49
49
  <body>