decocms 3.35.1 → 3.35.3

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 (237) hide show
  1. package/dist/client/assets/{AlertCircle-asB0zjf2.js → AlertCircle-DjOU_aot.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-DRnt_VKh.js → ArrowUpRight-BXJMGk9i.js} +1 -1
  3. package/dist/client/assets/{Check-CNRVH6xs.js → Check-D7HZW6oZ.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-B7v5_MG4.js → CheckCircle-XS4dmEOs.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-BKkz3Gyp.js → ChevronDown-CxTVikeq.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-DkMFugke.js → ChevronLeft-BEmN2X52.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-DixPnH3V.js → ChevronRight-3jD7TdJZ.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-BeDEmrn1.js → ChevronUp-Dbc77Gwp.js} +1 -1
  9. package/dist/client/assets/{Container-C41D-bwR.js → Container-Hfp9SJFa.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-DimB1qZR.js → DotsVertical-Cz5MZln-.js} +1 -1
  11. package/dist/client/assets/{Eye-CFpoJQMe.js → Eye-BIZqMr-y.js} +1 -1
  12. package/dist/client/assets/{FilterLines-htpqKUqo.js → FilterLines-iroXgkwP.js} +1 -1
  13. package/dist/client/assets/{Globe01-CxF-Z8O2.js → Globe01-CiCGKTg3.js} +1 -1
  14. package/dist/client/assets/{HardDrive-TXw7C9gB.js → HardDrive-B26C8dI3.js} +1 -1
  15. package/dist/client/assets/{Key01-CDAkGspz.js → Key01-DZeJDklU.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-BG08KNqc.js → LayoutLeft-CY1OP6dH.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-AylVRyuU.js → LinkExternal01-DwxMIV-o.js} +1 -1
  18. package/dist/client/assets/{Monitor01-gdKmZQTW.js → Monitor01-_FIjo4ge.js} +1 -1
  19. package/dist/client/assets/{Palette-D9_6t0uI.js → Palette-BDd6wxPD.js} +1 -1
  20. package/dist/client/assets/{Play-aa6uUei5.js → Play-C933mY5z.js} +1 -1
  21. package/dist/client/assets/{Plus-DcxLSicT.js → Plus-aXWGGcSy.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-Dd5D2uNm.js → RefreshCcw01-DS1vtLKW.js} +1 -1
  23. package/dist/client/assets/{SearchMd-2GibIebB.js → SearchMd-Cr6CluRw.js} +1 -1
  24. package/dist/client/assets/{Settings02-D0kdZjJD.js → Settings02-DeH66RiM.js} +1 -1
  25. package/dist/client/assets/{Shield01-CpxvRW7h.js → Shield01-0kTDalL_.js} +1 -1
  26. package/dist/client/assets/{Star01-BVQUiqS1.js → Star01-pwvCfpNJ.js} +1 -1
  27. package/dist/client/assets/{Stars01-B2PA7s4d.js → Stars01-Bw7_Rdwp.js} +1 -1
  28. package/dist/client/assets/{Stars02-BFz8RQ16.js → Stars02-vcxNwhIa.js} +1 -1
  29. package/dist/client/assets/{Sun-DMcKqqHE.js → Sun-De2vWRC7.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-qUOmQUUG.js → SwitchHorizontal01-Blia-yUi.js} +1 -1
  31. package/dist/client/assets/{Tool01-DNz0OMpT.js → Tool01-DC4THSlP.js} +1 -1
  32. package/dist/client/assets/{Trash01-rpak8qu1.js → Trash01-DBSukaq0.js} +1 -1
  33. package/dist/client/assets/{Upload01-d_Wyw7QT.js → Upload01-DruP7_KV.js} +1 -1
  34. package/dist/client/assets/{User01-BWllfXHj.js → User01-Bweqikx-.js} +1 -1
  35. package/dist/client/assets/{Users01-DG6YdAo1.js → Users01-N436STOJ.js} +1 -1
  36. package/dist/client/assets/{Users03-B9AqN8LK.js → Users03-DiilXFZ6.js} +1 -1
  37. package/dist/client/assets/{X-DxE022Fo.js → X-B1W1F4mo.js} +1 -1
  38. package/dist/client/assets/{XCircle-B_UH_gQt.js → XCircle-BtUzMyFW.js} +1 -1
  39. package/dist/client/assets/{XClose-DOt_DYPz.js → XClose-r0gXvFlp.js} +1 -1
  40. package/dist/client/assets/{Zap-CyMJw7DY.js → Zap-Dvtyg5Ik.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-Dz4Qok6x.js → ZapSquare-BQX2HOTP.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-BkCtUzuC.js → ZoomOut-DC46Ewts.js} +1 -1
  43. package/dist/client/assets/{access-gate-u6bqRJWi.js → access-gate-CVMVVI4n.js} +1 -1
  44. package/dist/client/assets/{accordion-B7oL0ZOw.js → accordion-DBJsIIHl.js} +1 -1
  45. package/dist/client/assets/{add-section-modal-DI1aX1UO.js → add-section-modal-v1Vhtks6.js} +1 -1
  46. package/dist/client/assets/{agent-capabilities-BxQUOIVO.js → agent-capabilities-n5Q1YbJ5.js} +1 -1
  47. package/dist/client/assets/{agent-icon-BrUPk7cd.js → agent-icon-CCGqC-bl.js} +1 -1
  48. package/dist/client/assets/{agent-icons-oFY-K2bC.js → agent-icons-CDVkEkIq.js} +2 -2
  49. package/dist/client/assets/{agents-list-BOxJitnX.js → agents-list-DDPJUJaX.js} +1 -1
  50. package/dist/client/assets/{ai-providers-DjvmZlJ5.js → ai-providers-48DFDYIz.js} +1 -1
  51. package/dist/client/assets/{alert-8WGQf_5q.js → alert-ZcglsRSH.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-DUUnhBc6.js → alert-dialog-B2k_N3ZX.js} +1 -1
  53. package/dist/client/assets/app-editor-DmCxU5-w.js +1 -0
  54. package/dist/client/assets/{auth-DTxUlSLU.js → auth-ClbRbdVv.js} +1 -1
  55. package/dist/client/assets/{auth-catchall-_asaISim.js → auth-catchall-BQd5LNUx.js} +1 -1
  56. package/dist/client/assets/{auth-split-layout-DU0bpIBM.js → auth-split-layout-jRGUFWwU.js} +1 -1
  57. package/dist/client/assets/{automation-list-row-atv_xAlK.js → automation-list-row-CXD-x28t.js} +1 -1
  58. package/dist/client/assets/{automation-runs-8yvWAbAC.js → automation-runs-BIJek_K_.js} +1 -1
  59. package/dist/client/assets/{automations-B1IxT7Wc.js → automations-D53YpHbQ.js} +1 -1
  60. package/dist/client/assets/{avatar-BqYC23h9.js → avatar-BG2RlqaT.js} +1 -1
  61. package/dist/client/assets/{badge-CGZjMX2o.js → badge-DIN7Nq6a.js} +1 -1
  62. package/dist/client/assets/{brand-context-Dki54pAn.js → brand-context--o_ht-A-.js} +1 -1
  63. package/dist/client/assets/{buckets-BgnqByrS.js → buckets-DD6OfmjS.js} +1 -1
  64. package/dist/client/assets/{calendar-CaIJu6mx.js → calendar-RJSiIOON.js} +1 -1
  65. package/dist/client/assets/{capability-load-error-DWbE5k9a.js → capability-load-error-BfCjxOlU.js} +1 -1
  66. package/dist/client/assets/{card-BlzflWCA.js → card-ykuj7mlf.js} +1 -1
  67. package/dist/client/assets/{chat-context-BUN4BStS.js → chat-context-CEWm5eLB.js} +1 -1
  68. package/dist/client/assets/{checkbox-C1s8UE6Y.js → checkbox-BKpSRHdU.js} +1 -1
  69. package/dist/client/assets/{cli-auth-success-DOMHymP7.js → cli-auth-success-qAM068ao.js} +1 -1
  70. package/dist/client/assets/{collection-detail-Fe7fYzy1.js → collection-detail-BaAVQGsi.js} +1 -1
  71. package/dist/client/assets/{collection-display-button-CTi0VUGU.js → collection-display-button-ve31YRQs.js} +1 -1
  72. package/dist/client/assets/{collection-search-CJ5Ov7mh.js → collection-search-C5MSFdhR.js} +1 -1
  73. package/dist/client/assets/{collection-table-wrapper-BMZaf4HK.js → collection-table-wrapper-Wi0b7UJz.js} +1 -1
  74. package/dist/client/assets/{collection-tabs-zuvlZo6K.js → collection-tabs-CAVXo49Z.js} +1 -1
  75. package/dist/client/assets/{collections-Dg2-DQoz.js → collections-Cs_tB6Xp.js} +1 -1
  76. package/dist/client/assets/{command-ETJRln9I.js → command-ClPkeFT9.js} +1 -1
  77. package/dist/client/assets/connect-desktop-dialog-DrC4f6Q3.js +1 -0
  78. package/dist/client/assets/{connection-card-BryVkZk7.js → connection-card-aeOBPbSz.js} +1 -1
  79. package/dist/client/assets/{connection-detail-KbHJGNLa.js → connection-detail-p5zHxWJQ.js} +1 -1
  80. package/dist/client/assets/{connection-form-helpers-C9SsVHwd.js → connection-form-helpers-C2pw-OdH.js} +1 -1
  81. package/dist/client/assets/{connections-C-B_pHNS.js → connections-DtVPIESl.js} +1 -1
  82. package/dist/client/assets/decopilot-sse-pool-BZ8GwOYU.js +1 -0
  83. package/dist/client/assets/{dialog-dItkri_7.js → dialog-BwBYyWWk.js} +1 -1
  84. package/dist/client/assets/{domain-settings-Cwl6OKHc.js → domain-settings-p2x5w3J1.js} +1 -1
  85. package/dist/client/assets/{drawer-CiKI2xvg.js → drawer-QIeXv6B7.js} +1 -1
  86. package/dist/client/assets/{dropdown-menu-DA6--pO3.js → dropdown-menu-CL4WEQRf.js} +1 -1
  87. package/dist/client/assets/{dynamic-plugin-layout-DvjE2kdj.js → dynamic-plugin-layout-cQR6S4X8.js} +1 -1
  88. package/dist/client/assets/{empty-state-Wjey2haZ.js → empty-state-BKLgisam.js} +1 -1
  89. package/dist/client/assets/{empty-state-ubN3bG68.js → empty-state-C4JeGg4X.js} +1 -1
  90. package/dist/client/assets/{extract-connection-data-BUZFKLkD.js → extract-connection-data-Dz_jOB39.js} +1 -1
  91. package/dist/client/assets/{features-wYfaVlaa.js → features-lNOjZ0fU.js} +1 -1
  92. package/dist/client/assets/{file-explorer-uNvjlPcF.js → file-explorer-MIJepCP_.js} +1 -1
  93. package/dist/client/assets/{file-type-icon-BC52hPZD.js → file-type-icon-B6AnVMPu.js} +1 -1
  94. package/dist/client/assets/{files-DCMyG2Qq.js → files-C6_93qT5.js} +1 -1
  95. package/dist/client/assets/{form-BvrZIBZy.js → form-Z86e6etr.js} +1 -1
  96. package/dist/client/assets/{general-CVh1dm4M.js → general-CBaQO14X.js} +1 -1
  97. package/dist/client/assets/{generate-id-BYzu1jEq.js → generate-id-C7CxZwCs.js} +1 -1
  98. package/dist/client/assets/{github-repo-picker-D-39cmmm.js → github-repo-picker-BlgfXLdP.js} +1 -1
  99. package/dist/client/assets/{header-tab-button-eoCiDxtu.js → header-tab-button-BOZYRinC.js} +1 -1
  100. package/dist/client/assets/{hover-card-DuwXdrhz.js → hover-card-DCrCVVSt.js} +1 -1
  101. package/dist/client/assets/{image-field-BctFTejU.js → image-field-CnaeZ7Cq.js} +1 -1
  102. package/dist/client/assets/{index-7TDtRiUY.js → index--1Ng2vB4.js} +4 -4
  103. package/dist/client/assets/{index-Dilf6iGE.js → index-1vLRIaGM.js} +1 -1
  104. package/dist/client/assets/{index-cSwj9er3.js → index-BdZLvIUs.js} +1 -1
  105. package/dist/client/assets/{index-DFBJ_PWq.js → index-Cf5_qS_K.js} +1 -1
  106. package/dist/client/assets/{index-BMYBcbtc.js → index-CiRwseKn.js} +1 -1
  107. package/dist/client/assets/{index-BOvqwG23.js → index-CmVsJNWn.js} +1 -1
  108. package/dist/client/assets/{index-CYZk0gv3.js → index-D36v7D1U.js} +1 -1
  109. package/dist/client/assets/{index-CQVYoK7e.js → index-DvG0T2G3.js} +1 -1
  110. package/dist/client/assets/{index-CfhwhmtA.js → index-DxJD6aw-.js} +1 -1
  111. package/dist/client/assets/{index-BN_h4BrS.js → index-F-DdQVig.js} +1 -1
  112. package/dist/client/assets/{index-B6rgjRY6.js → index-Jt8pUNdF.js} +1 -1
  113. package/dist/client/assets/{index-DkJOKUiK.js → index-Nc3tqGu_.js} +1 -1
  114. package/dist/client/assets/{index-DkBXivRM.js → index-YE7XuOF9.js} +1 -1
  115. package/dist/client/assets/{index-CyhU99S0.js → index-qk7utkhC.js} +1 -1
  116. package/dist/client/assets/{index-redirect-C0KSMoT0.js → index-redirect-Bga8SUq5.js} +1 -1
  117. package/dist/client/assets/{index-Dv-yFpKM.js → index-uVHAmIsb.js} +3 -3
  118. package/dist/client/assets/{input-B16LqKMQ.js → input-BYcDxHNs.js} +1 -1
  119. package/dist/client/assets/{integration-icon-7cYHs9rV.js → integration-icon-YIddy6rU.js} +1 -1
  120. package/dist/client/assets/{label-DfTmRnMe.js → label-6YORzGJ9.js} +1 -1
  121. package/dist/client/assets/{layout-BCfLVStg.js → layout-BqzITPb8.js} +1 -1
  122. package/dist/client/assets/{login-BQe_0Uvb.js → login-OD0e1zDV.js} +1 -1
  123. package/dist/client/assets/{mcp-oauth-BoL_9gDY.js → mcp-oauth-Bqzn0Dif.js} +1 -1
  124. package/dist/client/assets/{members-DjEZG3vo.js → members-DS-tdh70.js} +1 -1
  125. package/dist/client/assets/{monaco-editor-CEYWUBYY.js → monaco-editor-BUU4dfTp.js} +1 -1
  126. package/dist/client/assets/{monitoring-stats-row-Bn6k8FMZ.js → monitoring-stats-row-W1kG1QMr.js} +1 -1
  127. package/dist/client/assets/{oauth-callback-RkcrzPY9.js → oauth-callback-TPVFfDa1.js} +1 -1
  128. package/dist/client/assets/{oauth-callback-ai-provider-5c5f08wA.js → oauth-callback-ai-provider-BSrRnpyk.js} +1 -1
  129. package/dist/client/assets/{onboarding-DgNS0nCK.js → onboarding-K3muUGna.js} +1 -1
  130. package/dist/client/assets/{org-install-BAqLW3a2.js → org-install-B_NKJRUX.js} +1 -1
  131. package/dist/client/assets/{org-layout--7cqwMMu.js → org-layout-DS11FDyh.js} +1 -1
  132. package/dist/client/assets/{org-plugin-layout-oYg4_27L.js → org-plugin-layout-Ds4SKE20.js} +1 -1
  133. package/dist/client/assets/{page-seo-form-BPPrLLbX.js → page-seo-form-CUXHyT3k.js} +1 -1
  134. package/dist/client/assets/page-seo-sheet-DWN_jrpV.js +1 -0
  135. package/dist/client/assets/{pair-rD44zBRY.js → pair-DguDTLaz.js} +1 -1
  136. package/dist/client/assets/{plugin-empty-state-BrE2fclx.js → plugin-empty-state-BsOWqXT4.js} +1 -1
  137. package/dist/client/assets/{plugin-header-K2albhDB.js → plugin-header-CVnVRSWb.js} +1 -1
  138. package/dist/client/assets/{plugin-layout-QWYZgGti.js → plugin-layout-B-eexJrb.js} +1 -1
  139. package/dist/client/assets/{popover-BneLTlXE.js → popover-OWTo-ttg.js} +1 -1
  140. package/dist/client/assets/{post-editor-DtVXF5Vi.js → post-editor-9P0wvqVY.js} +1 -1
  141. package/dist/client/assets/{primitives-CGyfTuZM.js → primitives-BKz7PoD1.js} +1 -1
  142. package/dist/client/assets/{profile-DyIp4_Sh.js → profile-DKgH58jm.js} +1 -1
  143. package/dist/client/assets/project-app-view-aiPHbBMn.js +1 -0
  144. package/dist/client/assets/record-editor-CEd3Nq-X.js +1 -0
  145. package/dist/client/assets/registry-BJIUp0yq.js +2 -0
  146. package/dist/client/assets/{registry-layout-D_1w2T32.js → registry-layout-BVyz_YyX.js} +1 -1
  147. package/dist/client/assets/{require-capability-BYMVx09Z.js → require-capability-BNXWgOaA.js} +1 -1
  148. package/dist/client/assets/{required-auth-layout-cXbsWfNV.js → required-auth-layout-CgveTWoj.js} +1 -1
  149. package/dist/client/assets/{reset-password-CUBQj13G.js → reset-password-B5XJrRXo.js} +1 -1
  150. package/dist/client/assets/{resizable-DTSOtBpc.js → resizable-ZwB_SgdO.js} +1 -1
  151. package/dist/client/assets/{roles-CNJV2xc7.js → roles-B3qZ9FQm.js} +1 -1
  152. package/dist/client/assets/save-referenced-block-BWbuYBb2.js +1 -0
  153. package/dist/client/assets/{save-status-CFFENSy0.js → save-status-BAgQweyK.js} +1 -1
  154. package/dist/client/assets/{schema-form-EY1QOp8v.js → schema-form-CD60zPdr.js} +1 -1
  155. package/dist/client/assets/{scroll-area-CGmfUT4q.js → scroll-area-CixG0pJh.js} +1 -1
  156. package/dist/client/assets/{search-input-nds5g8eq.js → search-input-BfizHALq.js} +1 -1
  157. package/dist/client/assets/{secrets-D9isT8UG.js → secrets-hkT-vkWO.js} +1 -1
  158. package/dist/client/assets/{sections-editor-Bdjt3M_c.js → sections-editor-C7wGHkLQ.js} +1 -1
  159. package/dist/client/assets/{select-CXfOBpVA.js → select-DpIv2m7o.js} +1 -1
  160. package/dist/client/assets/{select-model-BLS2zNwN.js → select-model-DHqBdvUI.js} +1 -1
  161. package/dist/client/assets/{seo-editor-COMkxwHv.js → seo-editor-X4tutsUS.js} +1 -1
  162. package/dist/client/assets/{settings-layout-B65ypXYb.js → settings-layout-BPos4Lfi.js} +1 -1
  163. package/dist/client/assets/{settings-section-ysm1dXbe.js → settings-section-nvSL8mUn.js} +1 -1
  164. package/dist/client/assets/{sheet-DwJxE17f.js → sheet-J3PJeFDK.js} +1 -1
  165. package/dist/client/assets/{shell-controls-CghaJ_r9.js → shell-controls-CV-_zqGg.js} +1 -1
  166. package/dist/client/assets/{shell-layout-BI3SgcG0.js → shell-layout-tEjGEg5-.js} +1 -1
  167. package/dist/client/assets/{shell-route-loading-BQp4nxMc.js → shell-route-loading-CZqCIakz.js} +1 -1
  168. package/dist/client/assets/{sidebar-nhuTSqFS.js → sidebar-DawbXHdj.js} +1 -1
  169. package/dist/client/assets/{skeleton-DcZkQ-WQ.js → skeleton-BCgq4Xy6.js} +1 -1
  170. package/dist/client/assets/{sortable.esm-BJmSIQN6.js → sortable.esm-DsSid7Zp.js} +1 -1
  171. package/dist/client/assets/{spinner-C76OMH7i.js → spinner-BQT6CDh-.js} +1 -1
  172. package/dist/client/assets/{sso-Biwe8B2Y.js → sso-B1HWtZMn.js} +1 -1
  173. package/dist/client/assets/{store-DPy_WrJu.js → store-BfFFxnM0.js} +1 -1
  174. package/dist/client/assets/store-registry-DspBhmXB.js +2 -0
  175. package/dist/client/assets/{studio-tools-DP4PwlLL.js → studio-tools-Bsqb-6Fx.js} +1 -1
  176. package/dist/client/assets/{switch-Dlc-euH4.js → switch-Cu-9OUl1.js} +1 -1
  177. package/dist/client/assets/{tab-id-DrxIMKZC.js → tab-id-DxwgE0jf.js} +1 -1
  178. package/dist/client/assets/{table-BY5hmAW9.js → table-XS_vYE_1.js} +1 -1
  179. package/dist/client/assets/{tabs-MktB_dq3.js → tabs-B4F5NKqf.js} +1 -1
  180. package/dist/client/assets/{task-status-Bkjp3y0Q.js → task-status-OfocbInI.js} +1 -1
  181. package/dist/client/assets/{textarea-Dc7UpW7V.js → textarea-pwpin7Xo.js} +1 -1
  182. package/dist/client/assets/{toggle-group-PAs-hpFv.js → toggle-group-BTyEkyOV.js} +1 -1
  183. package/dist/client/assets/{toolbar-CCipnjie.js → toolbar-ZyghcYDs.js} +1 -1
  184. package/dist/client/assets/{tools-list-D8vEf5kn.js → tools-list-Dm-oDLPn.js} +1 -1
  185. package/dist/client/assets/{tooltip-DyNW-AXf.js → tooltip-C_pZvUmA.js} +1 -1
  186. package/dist/client/assets/{types-DYMMjWos.js → types-CVQ_neIF.js} +1 -1
  187. package/dist/client/assets/{use-ai-providers-C1UbdVdO.js → use-ai-providers-CGgTldnc.js} +1 -1
  188. package/dist/client/assets/{use-automations-DFVkTFjl.js → use-automations-C3tUJiXy.js} +1 -1
  189. package/dist/client/assets/{use-capability-Bw0k887i.js → use-capability-BcwY0Lf1.js} +1 -1
  190. package/dist/client/assets/{use-clock-tick-DMfzqE_6.js → use-clock-tick-Bsu4JpY1.js} +1 -1
  191. package/dist/client/assets/{use-collections-DGD5HYrs.js → use-collections-CNY4Rigp.js} +1 -1
  192. package/dist/client/assets/{use-connection-XtO-eFJi.js → use-connection-Cd3-MJT5.js} +1 -1
  193. package/dist/client/assets/{use-copy-fHv0q1pV.js → use-copy-C62Opw3r.js} +1 -1
  194. package/dist/client/assets/{use-create-virtual-mcp-DTGwia7F.js → use-create-virtual-mcp-JNvxHXlx.js} +1 -1
  195. package/dist/client/assets/{use-debounced-autosave-nDLl3CCi.js → use-debounced-autosave-CmpKlipe.js} +1 -1
  196. package/dist/client/assets/{use-delete-connection-CWxG7WKN.js → use-delete-connection-DOqJ3DYp.js} +1 -1
  197. package/dist/client/assets/{use-file-configs-DhxZBYOT.js → use-file-configs-OSUx89xj.js} +1 -1
  198. package/dist/client/assets/{use-infinite-scroll-D4S3aGR5.js → use-infinite-scroll-Ce2zTY3i.js} +1 -1
  199. package/dist/client/assets/{use-list-state-Cx82QFu_.js → use-list-state-B6GtGz_i.js} +1 -1
  200. package/dist/client/assets/{use-mcp-client-C8ZwZB20.js → use-mcp-client-Bqv2ciYo.js} +1 -1
  201. package/dist/client/assets/{use-mcp-prompts-D2owAcPE.js → use-mcp-prompts-B2fIh5W5.js} +1 -1
  202. package/dist/client/assets/{use-mcp-tools-BW-64A4f.js → use-mcp-tools-DNa7v9SS.js} +1 -1
  203. package/dist/client/assets/{use-members-DPyxvdDj.js → use-members-BBAnZQ_N.js} +1 -1
  204. package/dist/client/assets/{use-navigate-to-agent-B9d6Q1VR.js → use-navigate-to-agent-CDxi6d1t.js} +1 -1
  205. package/dist/client/assets/{use-org-auth-client-BTTZUjKk.js → use-org-auth-client-BvIrqhMj.js} +1 -1
  206. package/dist/client/assets/{use-org-sso-B1KJDg2R.js → use-org-sso-DvInKERU.js} +1 -1
  207. package/dist/client/assets/{use-organization-roles-zS-vWU34.js → use-organization-roles-CrylSy9-.js} +1 -1
  208. package/dist/client/assets/{use-organization-settings-CCLHoFg6.js → use-organization-settings-CdYVljPu.js} +1 -1
  209. package/dist/client/assets/{use-registry-connections-CAyIHNjF.js → use-registry-connections-Bdnyk0np.js} +1 -1
  210. package/dist/client/assets/{use-secrets-CtwUwXaf.js → use-secrets-5xq_sQR4.js} +1 -1
  211. package/dist/client/assets/{use-status-sounds-B27SY7cH.js → use-status-sounds-CugYppDe.js} +1 -1
  212. package/dist/client/assets/{use-view-mode-BRITAZ4S.js → use-view-mode-BmgcQL7Y.js} +1 -1
  213. package/dist/client/assets/{use-virtual-mcp-DLQJqd7d.js → use-virtual-mcp-Clsr41cX.js} +1 -1
  214. package/dist/client/assets/useInfiniteQuery-CL1ZPxL1.js +1 -0
  215. package/dist/client/assets/{useRouterState-Y1aLUix_.js → useRouterState-BCoEdLHo.js} +1 -1
  216. package/dist/client/assets/useSuspenseInfiniteQuery-B0dXZKGJ.js +1 -0
  217. package/dist/client/assets/{user-CLXOG3Qm.js → user-DNJpS6qb.js} +1 -1
  218. package/dist/client/assets/{view-mode-toggle-D_5X7-ae.js → view-mode-toggle-CnJNM_yP.js} +1 -1
  219. package/dist/client/assets/{watch-sse-pool-rXavNycp.js → watch-sse-pool-DiiHGFSQ.js} +1 -1
  220. package/dist/client/assets/{workflow-Bq61DMkg.js → workflow-DTPliqqz.js} +1 -1
  221. package/dist/client/assets/workflow-detail-DmBVM3K8.js +1 -0
  222. package/dist/client/index.html +1 -1
  223. package/dist/server/cli.js +2 -2
  224. package/dist/server/server.js +1 -1
  225. package/package.json +1 -1
  226. package/dist/client/assets/app-editor-8bhdvSJz.js +0 -1
  227. package/dist/client/assets/connect-desktop-dialog-Ccy-ptqT.js +0 -1
  228. package/dist/client/assets/decopilot-sse-pool-BYcZYovC.js +0 -1
  229. package/dist/client/assets/page-seo-sheet-B3ue-ZRT.js +0 -1
  230. package/dist/client/assets/project-app-view-LYHB1B7I.js +0 -1
  231. package/dist/client/assets/record-editor-CoIz7HmY.js +0 -1
  232. package/dist/client/assets/registry-DusjF1MY.js +0 -2
  233. package/dist/client/assets/save-referenced-block-R6f1-KeE.js +0 -1
  234. package/dist/client/assets/store-registry-D7UNS3l2.js +0 -2
  235. package/dist/client/assets/useInfiniteQuery-G_6i7LOo.js +0 -1
  236. package/dist/client/assets/useSuspenseInfiniteQuery-BhcYyKm_.js +0 -1
  237. package/dist/client/assets/workflow-detail-BJvoV5gO.js +0 -1
@@ -1 +1 @@
1
- import{K as g,e as c,p as _,m as z,F as C,a as P,r as R}from"./index-Dv-yFpKM.js";import{a as h,u as A,W as b}from"./use-mcp-client-C8ZwZB20.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 m=u.structuredContent;if(!m)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return m},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],P(a)}function G(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 G(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(U);return t??null}function U(t){return t.default_home_agents}function k(){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=k(),s=C();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=Promise.resolve(),t[0]=r):r=t[0];const i=R.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 m;t[6]!==a||t[7]!==e.slug||t[8]!==s||t[9]!==n?(m=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,f=>f&&{...f,default_home_agents:{ids:p}});try{await n.mutateAsync({ids:p}),await s.refetchQueries({queryKey:g.homeNextActions(e.slug),type:"active"})}catch(f){const M=f;throw s.setQueryData(a,w),M}}});return i.current=I.catch(q),I},t[6]=a,t[7]=e.slug,t[8]=s,t[9]=n,t[10]=m):m=t[10];const y=m;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 q(){}function B(){const t=c.c(5),{org:e}=_(),n=$();let s;t[0]!==e.id?(s=b.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,p as _,m as z,F as C,a as P,r as R}from"./index-uVHAmIsb.js";import{a as h,u as A,W as b}from"./use-mcp-client-Bqv2ciYo.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 m=u.structuredContent;if(!m)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return m},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],P(a)}function G(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 G(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(U);return t??null}function U(t){return t.default_home_agents}function k(){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=k(),s=C();let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=Promise.resolve(),t[0]=r):r=t[0];const i=R.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 m;t[6]!==a||t[7]!==e.slug||t[8]!==s||t[9]!==n?(m=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,f=>f&&{...f,default_home_agents:{ids:p}});try{await n.mutateAsync({ids:p}),await s.refetchQueries({queryKey:g.homeNextActions(e.slug),type:"active"})}catch(f){const M=f;throw s.setQueryData(a,w),M}}});return i.current=I.catch(q),I},t[6]=a,t[7]=e.slug,t[8]=s,t[9]=n,t[10]=m):m=t[10];const y=m;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 q(){}function B(){const t=c.c(5),{org:e}=_(),n=$();let s;t[0]!==e.id?(s=b.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,p}from"./index-Dv-yFpKM.js";import{u as C}from"./use-connection-XtO-eFJi.js";import{W as u}from"./use-mcp-client-C8ZwZB20.js";import{g as R}from"./use-organization-settings-CCLHoFg6.js";function E(){const e=a.c(17),{org:i}=p(),o=R();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=C();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,p}from"./index-uVHAmIsb.js";import{u as C}from"./use-connection-Cd3-MJT5.js";import{W as u}from"./use-mcp-client-Bqv2ciYo.js";import{g as R}from"./use-organization-settings-CdYVljPu.js";function E(){const e=a.c(17),{org:i}=p(),o=R();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=C();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,p as r,K as c,q as y,F as d,a as S}from"./index-Dv-yFpKM.js";import{u as l}from"./studio-tools-DP4PwlLL.js";function p(){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 C(){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{C as a,p as u};
1
+ import{e as n,p as r,K as c,q as y,F as d,a as S}from"./index-uVHAmIsb.js";import{u as l}from"./studio-tools-Bsqb-6Fx.js";function p(){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 C(){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{C as a,p as u};
@@ -1 +1 @@
1
- import{r as o,e as T,Y as h}from"./index-Dv-yFpKM.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{D as S}from"./watch-sse-pool-rXavNycp.js";import{d as y}from"./decopilot-sse-pool-BYcZYovC.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,Y as h}from"./index-uVHAmIsb.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{D as S}from"./watch-sse-pool-DiiHGFSQ.js";import{d as y}from"./decopilot-sse-pool-BZ8GwOYU.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-Dv-yFpKM.js";import{u as w}from"./tooltip-DyNW-AXf.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-uVHAmIsb.js";import{u as w}from"./tooltip-C_pZvUmA.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,p as d,aL as p,m as P}from"./index-Dv-yFpKM.js";import{b as L,a as V,u as _,c as A}from"./use-collections-DGD5HYrs.js";import{a as g,u as I}from"./use-mcp-client-C8ZwZB20.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 m=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:[]},C=new Map;for(const f of M.items)C.set(f.id,f);return C},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==m||t[13]!==u?(r={queryKey:l,enabled:m,staleTime:3e4,queryFn:u},t[11]=l,t[12]=m,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,p as d,aL as p,m as P}from"./index-uVHAmIsb.js";import{b as L,a as V,u as _,c as A}from"./use-collections-CNY4Rigp.js";import{a as g,u as I}from"./use-mcp-client-Bqv2ciYo.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 m=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:[]},C=new Map;for(const f of M.items)C.set(f.id,f);return C},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==m||t[13]!==u?(r={queryKey:l,enabled:m,staleTime:3e4,queryFn:u},t[11]=l,t[12]=m,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-Ce2zTY3i.js";import{cD as i}from"./index-uVHAmIsb.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{bl as s,r as c,bQ as a,bR as i}from"./index-Dv-yFpKM.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{bl as s,r as c,bQ as a,bR as i}from"./index-uVHAmIsb.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-Ce2zTY3i.js";import{cD as u,aC as n}from"./index-uVHAmIsb.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,m as k,K as S,c as y,j as t}from"./index-Dv-yFpKM.js";import{A as E}from"./avatar-BqYC23h9.js";import{u as K}from"./studio-tools-DP4PwlLL.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,m as k,K as S,c as y,j as t}from"./index-uVHAmIsb.js";import{A as E}from"./avatar-BG2RlqaT.js";import{u as K}from"./studio-tools-Bsqb-6Fx.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-Dv-yFpKM.js";import{b as I,T as P,a as L}from"./tooltip-DyNW-AXf.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-uVHAmIsb.js";import{b as I,T as P,a as L}from"./tooltip-C_pZvUmA.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-Dv-yFpKM.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-uVHAmIsb.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,p as ze,r as at,n as Fe,F as ct,a as dt,K as Le,ek as Ke,dH as mt}from"./index-Dv-yFpKM.js";import{u as pt,a as ut}from"./use-mcp-client-C8ZwZB20.js";import{B as ft,g as Me}from"./generate-id-BYzu1jEq.js";import{C as Ve}from"./collection-display-button-CTi0VUGU.js";import{C as ht}from"./collection-search-CJ5Ov7mh.js";import{C as gt}from"./card-BlzflWCA.js";import{I as qe}from"./integration-icon-7cYHs9rV.js";import{D as Qe,a as Ge,b as He,c as O}from"./dropdown-menu-DA6--pO3.js";import{s as Je,a as Ye}from"./Eye-CFpoJQMe.js";import{i as Xe}from"./DotsVertical-DimB1qZR.js";import{i as Ze}from"./Tool01-DNz0OMpT.js";import{s as et}from"./Trash01-rpak8qu1.js";import{C as xt}from"./collection-table-wrapper-BMZaf4HK.js";import{E as Ue}from"./empty-state-ubN3bG68.js";import{n as We}from"./Stars02-BFz8RQ16.js";import{U as jt}from"./user-CLXOG3Qm.js";import{E as tt}from"./empty-state-Wjey2haZ.js";import{u as Ct}from"./use-list-state-Cx82QFu_.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-DUUnhBc6.js";import{a as It,b as At}from"./use-collections-DGD5HYrs.js";import{a as Tt}from"./use-connection-XtO-eFJi.js";import{s as Et}from"./Plus-DcxLSicT.js";import{a as Ot}from"./layout-BCfLVStg.js";import{u as $t}from"./studio-tools-DP4PwlLL.js";import{P as je}from"./index-CfhwhmtA.js";import"./auth-DTxUlSLU.js";import"./collections-Dg2-DQoz.js";import"./SwitchHorizontal01-qUOmQUUG.js";import"./Check-CNRVH6xs.js";import"./tooltip-DyNW-AXf.js";import"./view-mode-toggle-D_5X7-ae.js";import"./badge-CGZjMX2o.js";import"./SearchMd-2GibIebB.js";import"./Container-C41D-bwR.js";import"./agent-icon-BrUPk7cd.js";import"./AlertCircle-asB0zjf2.js";import"./RefreshCcw01-Dd5D2uNm.js";import"./XCircle-B_UH_gQt.js";import"./ArrowUpRight-DRnt_VKh.js";import"./ZapSquare-Dz4Qok6x.js";import"./Users03-B9AqN8LK.js";import"./CheckCircle-B7v5_MG4.js";import"./ChevronDown-BKkz3Gyp.js";import"./ChevronLeft-DkMFugke.js";import"./ChevronRight-DixPnH3V.js";import"./ChevronUp-BeDEmrn1.js";import"./ZoomOut-BkCtUzuC.js";import"./Globe01-CxF-Z8O2.js";import"./FilterLines-htpqKUqo.js";import"./Star01-BVQUiqS1.js";import"./Palette-D9_6t0uI.js";import"./HardDrive-TXw7C9gB.js";import"./Key01-CDAkGspz.js";import"./LayoutLeft-BG08KNqc.js";import"./LinkExternal01-AylVRyuU.js";import"./Monitor01-gdKmZQTW.js";import"./Sun-DMcKqqHE.js";import"./Play-aa6uUei5.js";import"./Settings02-D0kdZjJD.js";import"./Shield01-CpxvRW7h.js";import"./Stars01-B2PA7s4d.js";import"./Upload01-d_Wyw7QT.js";import"./User01-BWllfXHj.js";import"./Users01-DG6YdAo1.js";import"./XClose-DOt_DYPz.js";import"./X-DxE022Fo.js";import"./Zap-CyMJw7DY.js";import"./table-BY5hmAW9.js";import"./avatar-BqYC23h9.js";import"./use-view-mode-BRITAZ4S.js";import"./sidebar-nhuTSqFS.js";import"./sheet-DwJxE17f.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(qe,{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(Qe,{children:[t.jsx(Ge,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Lt,children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:Ft,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 Ft(i){return i.stopPropagation()}function Lt(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?Qt:m;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const f=$,T=p===void 0?qt: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(Vt).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(Ve,{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 Vt(i){return i.sortable!==!1}function qt(){}function Qt(){}function Gt(i){return{id:"actions",header:"",render:e=>t.jsxs(Qe,{children:[t.jsx(Ge,{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(qe,{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,Gt(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 F=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,[L,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]!==F||e[25]!==o?(K=o&&{edit:F},e[24]=F,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]!==L?(ce=async()=>{L&&(await f.delete.mutateAsync(L.id),ve(null))},e[36]=f.delete,e[37]=L,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){Fe.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(Ve,{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 V;e[65]!==ue||e[66]!==m?(V=m&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=m,e[67]=V):V=e[67];let q;e[68]!==B||e[69]!==V?(q=t.jsxs("div",{className:"flex items-center gap-2",children:[B,V]}),e[68]=B,e[69]=V,e[70]=q):q=e[70];let Q;e[71]!==I?(Q=I??[],e[71]=I,e[72]=Q):Q=e[72];const De=D;let G;e[73]!==F?(G=C=>F(C),e[73]=F,e[74]=G):G=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]!==Q||e[88]!==De||e[89]!==G||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Rt,{hideToolbar:!0,data:Q,schema:u,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:G,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]=Q,e[88]=De,e[89]=G,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==q||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[q,J]}),e[93]=q,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!L;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=L?.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:Le.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Le.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){Fe.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),Fe.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 yi(){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{yi as default};
1
+ import{e as oe,j as t,B as Ce,f as Be,b as lt,p as ze,r as at,n as Fe,F as ct,a as dt,K as Le,ek as Ke,dH as mt}from"./index-uVHAmIsb.js";import{u as pt,a as ut}from"./use-mcp-client-Bqv2ciYo.js";import{B as ft,g as Me}from"./generate-id-C7CxZwCs.js";import{C as Ve}from"./collection-display-button-ve31YRQs.js";import{C as ht}from"./collection-search-C5MSFdhR.js";import{C as gt}from"./card-ykuj7mlf.js";import{I as qe}from"./integration-icon-YIddy6rU.js";import{D as Qe,a as Ge,b as He,c as O}from"./dropdown-menu-CL4WEQRf.js";import{s as Je,a as Ye}from"./Eye-BIZqMr-y.js";import{i as Xe}from"./DotsVertical-Cz5MZln-.js";import{i as Ze}from"./Tool01-DC4THSlP.js";import{s as et}from"./Trash01-DBSukaq0.js";import{C as xt}from"./collection-table-wrapper-Wi0b7UJz.js";import{E as Ue}from"./empty-state-C4JeGg4X.js";import{n as We}from"./Stars02-vcxNwhIa.js";import{U as jt}from"./user-DNJpS6qb.js";import{E as tt}from"./empty-state-BKLgisam.js";import{u as Ct}from"./use-list-state-B6GtGz_i.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-B2k_N3ZX.js";import{a as It,b as At}from"./use-collections-CNY4Rigp.js";import{a as Tt}from"./use-connection-Cd3-MJT5.js";import{s as Et}from"./Plus-aXWGGcSy.js";import{a as Ot}from"./layout-BqzITPb8.js";import{u as $t}from"./studio-tools-Bsqb-6Fx.js";import{P as je}from"./index-DxJD6aw-.js";import"./auth-ClbRbdVv.js";import"./collections-Cs_tB6Xp.js";import"./SwitchHorizontal01-Blia-yUi.js";import"./Check-D7HZW6oZ.js";import"./tooltip-C_pZvUmA.js";import"./view-mode-toggle-CnJNM_yP.js";import"./badge-DIN7Nq6a.js";import"./SearchMd-Cr6CluRw.js";import"./Container-Hfp9SJFa.js";import"./agent-icon-CCGqC-bl.js";import"./AlertCircle-DjOU_aot.js";import"./RefreshCcw01-DS1vtLKW.js";import"./XCircle-BtUzMyFW.js";import"./ArrowUpRight-BXJMGk9i.js";import"./ZapSquare-BQX2HOTP.js";import"./Users03-DiilXFZ6.js";import"./CheckCircle-XS4dmEOs.js";import"./ChevronDown-CxTVikeq.js";import"./ChevronLeft-BEmN2X52.js";import"./ChevronRight-3jD7TdJZ.js";import"./ChevronUp-Dbc77Gwp.js";import"./ZoomOut-DC46Ewts.js";import"./Globe01-CiCGKTg3.js";import"./FilterLines-iroXgkwP.js";import"./Star01-pwvCfpNJ.js";import"./Palette-BDd6wxPD.js";import"./HardDrive-B26C8dI3.js";import"./Key01-DZeJDklU.js";import"./LayoutLeft-CY1OP6dH.js";import"./LinkExternal01-DwxMIV-o.js";import"./Monitor01-_FIjo4ge.js";import"./Sun-De2vWRC7.js";import"./Play-C933mY5z.js";import"./Settings02-DeH66RiM.js";import"./Shield01-0kTDalL_.js";import"./Stars01-Bw7_Rdwp.js";import"./Upload01-DruP7_KV.js";import"./User01-Bweqikx-.js";import"./Users01-N436STOJ.js";import"./XClose-r0gXvFlp.js";import"./X-B1W1F4mo.js";import"./Zap-Dvtyg5Ik.js";import"./table-XS_vYE_1.js";import"./avatar-BG2RlqaT.js";import"./use-view-mode-BmgcQL7Y.js";import"./sidebar-DawbXHdj.js";import"./sheet-J3PJeFDK.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(qe,{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(Qe,{children:[t.jsx(Ge,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Lt,children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:Ft,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 Ft(i){return i.stopPropagation()}function Lt(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?Qt:m;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const f=$,T=p===void 0?qt: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(Vt).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(Ve,{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 Vt(i){return i.sortable!==!1}function qt(){}function Qt(){}function Gt(i){return{id:"actions",header:"",render:e=>t.jsxs(Qe,{children:[t.jsx(Ge,{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(qe,{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,Gt(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 F=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,[L,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]!==F||e[25]!==o?(K=o&&{edit:F},e[24]=F,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]!==L?(ce=async()=>{L&&(await f.delete.mutateAsync(L.id),ve(null))},e[36]=f.delete,e[37]=L,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){Fe.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(Ve,{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 V;e[65]!==ue||e[66]!==m?(V=m&&t.jsx("div",{className:"pr-3",children:ue}),e[65]=ue,e[66]=m,e[67]=V):V=e[67];let q;e[68]!==B||e[69]!==V?(q=t.jsxs("div",{className:"flex items-center gap-2",children:[B,V]}),e[68]=B,e[69]=V,e[70]=q):q=e[70];let Q;e[71]!==I?(Q=I??[],e[71]=I,e[72]=Q):Q=e[72];const De=D;let G;e[73]!==F?(G=C=>F(C),e[73]=F,e[74]=G):G=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]!==Q||e[88]!==De||e[89]!==G||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Rt,{hideToolbar:!0,data:Q,schema:u,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:G,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]=Q,e[88]=De,e[89]=G,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==q||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[q,J]}),e[93]=q,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!L;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=L?.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:Le.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Le.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){Fe.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),Fe.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 yi(){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{yi 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-uVHAmIsb.js";import{a as f}from"./index-BdZLvIUs.js";import"./index-DvG0T2G3.js";import"./use-mcp-client-Bqv2ciYo.js";import"./auth-ClbRbdVv.js";import"./collections-Cs_tB6Xp.js";import"./index-D36v7D1U.js";import"./use-virtual-mcp-Clsr41cX.js";import"./use-collections-CNY4Rigp.js";import"./monaco-editor-BUU4dfTp.js";import"./index-1vLRIaGM.js";import"./spinner-BQT6CDh-.js";import"./resizable-ZwB_SgdO.js";import"./ZoomOut-DC46Ewts.js";import"./badge-DIN7Nq6a.js";import"./select-DpIv2m7o.js";import"./tooltip-C_pZvUmA.js";import"./Check-D7HZW6oZ.js";import"./ChevronDown-CxTVikeq.js";import"./ChevronUp-Dbc77Gwp.js";import"./view-mode-toggle-CnJNM_yP.js";import"./agent-icon-CCGqC-bl.js";import"./AlertCircle-DjOU_aot.js";import"./Tool01-DC4THSlP.js";import"./SwitchHorizontal01-Blia-yUi.js";import"./RefreshCcw01-DS1vtLKW.js";import"./XCircle-BtUzMyFW.js";import"./ArrowUpRight-BXJMGk9i.js";import"./ZapSquare-BQX2HOTP.js";import"./Users03-DiilXFZ6.js";import"./CheckCircle-XS4dmEOs.js";import"./ChevronLeft-BEmN2X52.js";import"./ChevronRight-3jD7TdJZ.js";import"./DotsVertical-Cz5MZln-.js";import"./Container-Hfp9SJFa.js";import"./Eye-BIZqMr-y.js";import"./Globe01-CiCGKTg3.js";import"./FilterLines-iroXgkwP.js";import"./Star01-pwvCfpNJ.js";import"./Palette-BDd6wxPD.js";import"./HardDrive-B26C8dI3.js";import"./Stars02-vcxNwhIa.js";import"./Key01-DZeJDklU.js";import"./LayoutLeft-CY1OP6dH.js";import"./LinkExternal01-DwxMIV-o.js";import"./Monitor01-_FIjo4ge.js";import"./Sun-De2vWRC7.js";import"./Play-C933mY5z.js";import"./Plus-aXWGGcSy.js";import"./SearchMd-Cr6CluRw.js";import"./Settings02-DeH66RiM.js";import"./Shield01-0kTDalL_.js";import"./Stars01-Bw7_Rdwp.js";import"./Trash01-DBSukaq0.js";import"./Upload01-DruP7_KV.js";import"./User01-Bweqikx-.js";import"./Users01-N436STOJ.js";import"./XClose-r0gXvFlp.js";import"./X-B1W1F4mo.js";import"./Zap-Dvtyg5Ik.js";import"./layout-BqzITPb8.js";import"./index-DxJD6aw-.js";import"./sidebar-DawbXHdj.js";import"./sheet-J3PJeFDK.js";import"./use-connection-Cd3-MJT5.js";import"./use-mcp-tools-DNa7v9SS.js";import"./dialog-BwBYyWWk.js";import"./scroll-area-CixG0pJh.js";import"./index-Nc3tqGu_.js";import"./hover-card-DCrCVVSt.js";import"./dropdown-menu-CL4WEQRf.js";import"./integration-icon-YIddy6rU.js";import"./accordion-DBJsIIHl.js";import"./index-CmVsJNWn.js";import"./empty-state-C4JeGg4X.js";import"./watch-sse-pool-DiiHGFSQ.js";import"./input-BYcDxHNs.js";function Ct(){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{Ct 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-Dv-yFpKM.js"></script>
46
+ <script type="module" crossorigin src="/assets/index-uVHAmIsb.js"></script>
47
47
  <link rel="stylesheet" crossorigin href="/assets/index-DfYyH4IW.css">
48
48
  </head>
49
49
  <body>