decocms 2.297.5 → 2.298.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/dist/client/assets/{AlertCircle-CdsafmOE.js → AlertCircle-1FKO-iwn.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-Z3bol_QU.js → ArrowNarrowLeft-CKZqPsRI.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-DlOBonM-.js → ArrowUpRight-7lMYxGWa.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-rCOulsHV.js → CheckCircle-Dk81QM9U.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-DpY6Flf1.js → ChevronDown-CHOTJx8l.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-BTHSc5W9.js → ChevronRight-Dk8qeq6P.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-3rRJzUBA.js → ChevronUp-CTvlJvJZ.js} +1 -1
  8. package/dist/client/assets/{Container-D_0hJyWg.js → Container-C3IYo0L9.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-C14a4Ecy.js → DotsVertical-D4yfeGnN.js} +1 -1
  10. package/dist/client/assets/{LinkExternal01-CXFf8E57.js → LinkExternal01-x1hnv38P.js} +1 -1
  11. package/dist/client/assets/{Lock01-jCC5NElm.js → Lock01-lZHBNo2C.js} +1 -1
  12. package/dist/client/assets/{Palette-CC5sNEUI.js → Palette-C9akcBSz.js} +1 -1
  13. package/dist/client/assets/{Play-BCtgtTv0.js → Play-CdX48V1T.js} +1 -1
  14. package/dist/client/assets/{Plus-BU5qE_0Z.js → Plus-DYdqKX5R.js} +1 -1
  15. package/dist/client/assets/{RefreshCcw01-DkGR6dYl.js → RefreshCcw01-HnODDFoT.js} +1 -1
  16. package/dist/client/assets/{SearchMd-Bun6GRRS.js → SearchMd-GZRswmV_.js} +1 -1
  17. package/dist/client/assets/{Settings02-BW8HHhci.js → Settings02-Dzch4bsp.js} +1 -1
  18. package/dist/client/assets/{Shield01-DsYD83TQ.js → Shield01-bIZj53hE.js} +1 -1
  19. package/dist/client/assets/{Star01-C2q-Rz0j.js → Star01-DUqgRTj4.js} +1 -1
  20. package/dist/client/assets/{Sun-BXkdevd2.js → Sun-g7onD0QQ.js} +1 -1
  21. package/dist/client/assets/{Tool01-BpwK-6V9.js → Tool01-Bbs6ipxi.js} +1 -1
  22. package/dist/client/assets/{Trash01-FiQdOhqi.js → Trash01-D1T4c6gl.js} +1 -1
  23. package/dist/client/assets/{User01-C_ak6Kxk.js → User01-Fk9cKl4i.js} +1 -1
  24. package/dist/client/assets/{Users03-DaFOfASx.js → Users03-CVNVU6ve.js} +1 -1
  25. package/dist/client/assets/{X-BCwgneQR.js → X-BwEMSUjV.js} +1 -1
  26. package/dist/client/assets/{XCircle-BSiQp6n3.js → XCircle-C0fkjQDC.js} +1 -1
  27. package/dist/client/assets/{XClose-BUwTYWum.js → XClose-DxHt9zuu.js} +1 -1
  28. package/dist/client/assets/{Zap-JVLBlI8s.js → Zap-BPFq3hVj.js} +1 -1
  29. package/dist/client/assets/{ZapSquare-De19_vak.js → ZapSquare-DGM2fPse.js} +1 -1
  30. package/dist/client/assets/{accordion-lz0Xmj6X.js → accordion-Bdek-M8z.js} +1 -1
  31. package/dist/client/assets/{agent-icon-B3jGc1Ev.js → agent-icon-DmsooVXW.js} +1 -1
  32. package/dist/client/assets/{agents-list-DzYkZPlQ.js → agents-list-Dj4emYPF.js} +1 -1
  33. package/dist/client/assets/ai-providers-CYFZTFTL.js +1 -0
  34. package/dist/client/assets/{alert-dialog-COV2HFzJ.js → alert-dialog-CWQoS6wX.js} +1 -1
  35. package/dist/client/assets/{auth-catchall-DF_drpYc.js → auth-catchall-CD4rfnTW.js} +1 -1
  36. package/dist/client/assets/{automation-list-row-DWmoUp-H.js → automation-list-row-CLJ3ftyb.js} +1 -1
  37. package/dist/client/assets/{automations-Wt8vaxkn.js → automations-DcwcFfNp.js} +1 -1
  38. package/dist/client/assets/{avatar-CTOwJvGM.js → avatar-Bu1NzTYg.js} +1 -1
  39. package/dist/client/assets/{badge--qrdwFcB.js → badge-Ch9BdqT9.js} +1 -1
  40. package/dist/client/assets/{brand-context-B6htH03E.js → brand-context-Cdhkr07K.js} +1 -1
  41. package/dist/client/assets/{card-BbLPQxf_.js → card-RSPkY0To.js} +1 -1
  42. package/dist/client/assets/{chat-context-DmT_0uIT.js → chat-context-DF9UFjVM.js} +1 -1
  43. package/dist/client/assets/{checkbox-oN14OK1i.js → checkbox-B1Ttfs-h.js} +1 -1
  44. package/dist/client/assets/{collection-detail-BK5rbIjY.js → collection-detail-D-3DNG_M.js} +1 -1
  45. package/dist/client/assets/{collection-display-button-FwqJW3Qj.js → collection-display-button-D0RK6oeA.js} +1 -1
  46. package/dist/client/assets/{collection-search-BsmMEHVf.js → collection-search-BkYFe6i5.js} +1 -1
  47. package/dist/client/assets/{collection-search-CnJO24A_.js → collection-search-gyDd3-OR.js} +1 -1
  48. package/dist/client/assets/{collection-table-wrapper-Bf7AfER2.js → collection-table-wrapper-BCfFkyA6.js} +1 -1
  49. package/dist/client/assets/{collection-tabs-DuWPOEDQ.js → collection-tabs-BywVHkM5.js} +1 -1
  50. package/dist/client/assets/{collections-B_BLEc5A.js → collections-B1Vl-dRY.js} +1 -1
  51. package/dist/client/assets/{command-B3wV0NGR.js → command-CVf7W7do.js} +1 -1
  52. package/dist/client/assets/{connection-card-oAGfqetU.js → connection-card-B_uXifPW.js} +1 -1
  53. package/dist/client/assets/{connection-detail-eVihEjIw.js → connection-detail-Cmgz9yRr.js} +1 -1
  54. package/dist/client/assets/{connection-form-helpers-Dk1Bh70V.js → connection-form-helpers-DELjRDJg.js} +1 -1
  55. package/dist/client/assets/{connections-6RNsPV6d.js → connections-ncYXmxGJ.js} +1 -1
  56. package/dist/client/assets/{constants-DfvWBMZm.js → constants-D7xAST0Q.js} +1 -1
  57. package/dist/client/assets/{constants-3jD3x8Uj.js → constants-DivL5teI.js} +1 -1
  58. package/dist/client/assets/{dialog-B19PbpYJ.js → dialog-C_vmNTRu.js} +1 -1
  59. package/dist/client/assets/{domain-settings-CTQRWCj5.js → domain-settings-DXgm_woB.js} +1 -1
  60. package/dist/client/assets/{drawer-DUQTbVde.js → drawer-C4a3mc5d.js} +1 -1
  61. package/dist/client/assets/{dropdown-menu-CoYd9oG5.js → dropdown-menu-B8_YZGoo.js} +1 -1
  62. package/dist/client/assets/{dynamic-plugin-layout-BjtkKd8R.js → dynamic-plugin-layout-Dlh_QnjI.js} +1 -1
  63. package/dist/client/assets/{empty-state-CEaufWig.js → empty-state-DJGg06AT.js} +1 -1
  64. package/dist/client/assets/{empty-state-oEpGmt_E.js → empty-state-DOC09WYz.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-B3ZynL1x.js → extract-connection-data-OOISwrlz.js} +1 -1
  66. package/dist/client/assets/{features-DCuTYINJ.js → features-DTyLbScZ.js} +1 -1
  67. package/dist/client/assets/{form-PX5XfY1h.js → form-DsyDTBzC.js} +1 -1
  68. package/dist/client/assets/{general-BwtE4iqn.js → general-7ljwSAxI.js} +1 -1
  69. package/dist/client/assets/{index-Bgik2M7B.js → index-70mmoBkB.js} +1 -1
  70. package/dist/client/assets/index-8xDSjspo.js +1 -0
  71. package/dist/client/assets/{index-D7sE-LIc.js → index-B01cqxRa.js} +1 -1
  72. package/dist/client/assets/{index-BSQKB2C4.js → index-BEZPSJ65.js} +1 -1
  73. package/dist/client/assets/{index-B1aMIC_I.js → index-BHV6aSRG.js} +1 -1
  74. package/dist/client/assets/{index-2PSEn8xL.js → index-BirIwGZm.js} +1 -1
  75. package/dist/client/assets/{index-BO_ipX-D.js → index-Cfe1XtAV.js} +1 -1
  76. package/dist/client/assets/{index-KRYpI-wr.js → index-D1OGx8P1.js} +2 -2
  77. package/dist/client/assets/{index-DZ9E6iAg.js → index-DBkKSx96.js} +1 -1
  78. package/dist/client/assets/{index-BzZtc59N.js → index-DHuevMFp.js} +1 -1
  79. package/dist/client/assets/{index-CXl9ZR5d.js → index-DSAQMn6i.js} +1 -1
  80. package/dist/client/assets/{index-VbxM3RAZ.js → index-Di0Mb6sO.js} +1 -1
  81. package/dist/client/assets/{index-BGF4-5Ra.js → index-HZ0ltqWr.js} +1 -1
  82. package/dist/client/assets/{index-9SYaIcg7.js → index-LWzmvmvR.js} +1 -1
  83. package/dist/client/assets/{index-DZV5ko8H.js → index-m0seQOic.js} +3 -3
  84. package/dist/client/assets/{index-BJu9jFry.js → index-oPPnPtai.js} +1 -1
  85. package/dist/client/assets/{infiniteQueryObserver-Ngno0wQt.js → infiniteQueryObserver-Bl2c59an.js} +1 -1
  86. package/dist/client/assets/{input-CMerivrT.js → input-BzH1Fp78.js} +1 -1
  87. package/dist/client/assets/{integration-icon-gFG8GE83.js → integration-icon-D_AOqXFj.js} +1 -1
  88. package/dist/client/assets/{label-DQXeJGYk.js → label-CB_XE-e4.js} +1 -1
  89. package/dist/client/assets/{layout-Bu4l4YYc.js → layout-CY21UTYW.js} +1 -1
  90. package/dist/client/assets/{lean-canvas-recruit-modal-CdR8OGue.js → lean-canvas-recruit-modal-BPVxQzta.js} +1 -1
  91. package/dist/client/assets/{login-CXq67fYw.js → login-Bxl4_mYU.js} +1 -1
  92. package/dist/client/assets/{members-D7UWERrU.js → members-zvpqbNiS.js} +1 -1
  93. package/dist/client/assets/{monaco-editor-wlxwD-sq.js → monaco-editor-DuX4NcOq.js} +1 -1
  94. package/dist/client/assets/{monitoring-stats-row-DWh0NXPE.js → monitoring-stats-row-D51EcZe3.js} +1 -1
  95. package/dist/client/assets/{oauth-callback-ai-provider-BBLCXQVh.js → oauth-callback-ai-provider-DfBUG-m3.js} +1 -1
  96. package/dist/client/assets/{oauth-callback-D0RtIKIz.js → oauth-callback-mZUzyh0o.js} +1 -1
  97. package/dist/client/assets/{onboarding-D8u4OWJP.js → onboarding-C5IoSpHh.js} +1 -1
  98. package/dist/client/assets/{org-layout-C_djtIDd.js → org-layout-CyD6hmWc.js} +1 -1
  99. package/dist/client/assets/{org-plugin-layout-Dv1dO72E.js → org-plugin-layout-BUW4YpUf.js} +1 -1
  100. package/dist/client/assets/{pair-KR7I3a65.js → pair-BhjBynHM.js} +1 -1
  101. package/dist/client/assets/{plugin-empty-state-DlX42kZ3.js → plugin-empty-state-dVIN074A.js} +1 -1
  102. package/dist/client/assets/{plugin-header-BUllzb83.js → plugin-header-DbdW6vY7.js} +1 -1
  103. package/dist/client/assets/{plugin-layout-DbAaYRC9.js → plugin-layout-c0ZCIK90.js} +1 -1
  104. package/dist/client/assets/{popover-Ege2icQN.js → popover-Ci7fqppX.js} +1 -1
  105. package/dist/client/assets/{profile-D2bYkoz8.js → profile-BVqUNHDU.js} +1 -1
  106. package/dist/client/assets/{project-app-view-u5Qe7FSE.js → project-app-view-vtZ-_doc.js} +1 -1
  107. package/dist/client/assets/registry-Dgo0smSq.js +2 -0
  108. package/dist/client/assets/{registry-layout-SK_qasoh.js → registry-layout-CnlyFMkq.js} +1 -1
  109. package/dist/client/assets/{required-auth-layout-qy-kggYU.js → required-auth-layout-D9iH4JWn.js} +1 -1
  110. package/dist/client/assets/{reset-password-DnrxS6WW.js → reset-password-C7rUh7yQ.js} +1 -1
  111. package/dist/client/assets/{roles-CpSLMdQg.js → roles-C_9lgwGC.js} +1 -1
  112. package/dist/client/assets/{scroll-area-C9GXQyc7.js → scroll-area-DeGma9h8.js} +1 -1
  113. package/dist/client/assets/{search-input-BfSpM4Yi.js → search-input-JxYHORMS.js} +1 -1
  114. package/dist/client/assets/{select-CmYNF4eL.js → select-D5OmQB7Q.js} +1 -1
  115. package/dist/client/assets/{select-model-C1-GuVkw.js → select-model-BsjLnWhc.js} +1 -1
  116. package/dist/client/assets/{settings-layout-DY3eT5Vf.js → settings-layout-CBdTbv9p.js} +1 -1
  117. package/dist/client/assets/{settings-section-BYYhk7zc.js → settings-section-PoWhTqpS.js} +1 -1
  118. package/dist/client/assets/{shell-layout-BNhEwDHh.js → shell-layout-yjk12_bc.js} +1 -1
  119. package/dist/client/assets/{skeleton-DNNOALQU.js → skeleton-C-dyN9od.js} +1 -1
  120. package/dist/client/assets/{sso-mmxk9dgo.js → sso-CO-nJSkq.js} +1 -1
  121. package/dist/client/assets/{store-Bf-ghV0D.js → store-DO05KZgT.js} +1 -1
  122. package/dist/client/assets/store-registry-DjJ5a3G8.js +2 -0
  123. package/dist/client/assets/{switch-cbP1whPb.js → switch-CXZ-w0Bq.js} +1 -1
  124. package/dist/client/assets/{table-DHlZtgXE.js → table-BpO63Yb0.js} +1 -1
  125. package/dist/client/assets/{tabs-DLlV1AhK.js → tabs-C_g7sXFQ.js} +1 -1
  126. package/dist/client/assets/{task-status-HVnvsZin.js → task-status-CBFNkFN1.js} +1 -1
  127. package/dist/client/assets/{textarea-CI6A-6K6.js → textarea-BskaK79L.js} +1 -1
  128. package/dist/client/assets/{toggle-group-BR7MR0J_.js → toggle-group-XXqkCq4k.js} +1 -1
  129. package/dist/client/assets/{tools-list-Bfz0O6NR.js → tools-list-DMMBZSNS.js} +1 -1
  130. package/dist/client/assets/{tooltip-GP5hVzoi.js → tooltip-CPtrqiVf.js} +1 -1
  131. package/dist/client/assets/{types-GCOMWUpw.js → types-CZ7C6HNp.js} +1 -1
  132. package/dist/client/assets/{use-ai-providers-BhDBkojL.js → use-ai-providers-DdI6-E22.js} +1 -1
  133. package/dist/client/assets/{use-collections-CLAb2ITC.js → use-collections-DA0dA7NJ.js} +1 -1
  134. package/dist/client/assets/{use-connection-vMA7gFAk.js → use-connection-B6UydpoO.js} +1 -1
  135. package/dist/client/assets/{use-copy-B36UJTzB.js → use-copy-DXME69Wt.js} +1 -1
  136. package/dist/client/assets/{use-create-virtual-mcp-DK73LDl0.js → use-create-virtual-mcp-o_6Zui3e.js} +1 -1
  137. package/dist/client/assets/{use-decopilot-events-lrQB_XVb.js → use-decopilot-events-dH2aVuqh.js} +1 -1
  138. package/dist/client/assets/{use-delete-connection-CpsiJpeH.js → use-delete-connection-CT0R2aH7.js} +1 -1
  139. package/dist/client/assets/{use-infinite-scroll-Be3EKoyX.js → use-infinite-scroll-BJEaveTj.js} +1 -1
  140. package/dist/client/assets/{use-list-state-CKz5CR8i.js → use-list-state-17IGcEJ3.js} +1 -1
  141. package/dist/client/assets/{use-mcp-tools-0-7svmM1.js → use-mcp-tools-CyJvV1rx.js} +1 -1
  142. package/dist/client/assets/{use-members-Dg_Gm9g_.js → use-members-DaW4TIzB.js} +1 -1
  143. package/dist/client/assets/{use-navigate-to-agent-C6liI7bE.js → use-navigate-to-agent-CWbTU3Jx.js} +1 -1
  144. package/dist/client/assets/{use-org-auth-client-DAxzLcIp.js → use-org-auth-client-DUadgGT5.js} +1 -1
  145. package/dist/client/assets/{use-org-sso-DA4hesiY.js → use-org-sso-Drd5l9cJ.js} +1 -1
  146. package/dist/client/assets/{use-organization-roles-CD8-mXf_.js → use-organization-roles-BrKoYq-E.js} +1 -1
  147. package/dist/client/assets/{use-organization-settings-yCi8C30J.js → use-organization-settings-CLV_ZfNb.js} +1 -1
  148. package/dist/client/assets/{use-registry-connections-BrX-TSfc.js → use-registry-connections-DdiWQ4aw.js} +1 -1
  149. package/dist/client/assets/{use-status-sounds-Dr6miNhi.js → use-status-sounds-C-uFPSCX.js} +1 -1
  150. package/dist/client/assets/{use-tasks-BWXzGaFZ.js → use-tasks-CRniTSla.js} +1 -1
  151. package/dist/client/assets/{use-view-mode-B4L3BxLu.js → use-view-mode-C-htIWSb.js} +1 -1
  152. package/dist/client/assets/{use-virtual-mcp-BuljipQB.js → use-virtual-mcp-Ck38sBYu.js} +1 -1
  153. package/dist/client/assets/useInfiniteQuery-DSaXyBNr.js +1 -0
  154. package/dist/client/assets/useSuspenseInfiniteQuery-BidabhCU.js +1 -0
  155. package/dist/client/assets/{user-PR58nvg_.js → user-0W2qHPIr.js} +1 -1
  156. package/dist/client/assets/{view-mode-toggle-C_22FOAw.js → view-mode-toggle-CsVOHOCK.js} +1 -1
  157. package/dist/client/assets/{workflow-Cg5LerQm.js → workflow-ICx7IBZn.js} +1 -1
  158. package/dist/client/assets/workflow-detail-CtIO-XFb.js +1 -0
  159. package/dist/client/index.html +7 -5
  160. package/dist/client/manifest.webmanifest +18 -0
  161. package/dist/server/cli.js +1 -1
  162. package/package.json +1 -1
  163. package/dist/client/assets/ai-providers-CXuXw96K.js +0 -1
  164. package/dist/client/assets/index-CXtVsmlG.js +0 -1
  165. package/dist/client/assets/registry-BgKA56o_.js +0 -2
  166. package/dist/client/assets/store-registry-DPE7ghFj.js +0 -2
  167. package/dist/client/assets/useInfiniteQuery-BymwlV57.js +0 -1
  168. package/dist/client/assets/useSuspenseInfiniteQuery-CZUx6ZHM.js +0 -1
  169. package/dist/client/assets/workflow-detail-CPL49r_K.js +0 -1
  170. package/dist/server/node_modules/auto-bind/index.d.ts +0 -50
  171. package/dist/server/node_modules/auto-bind/index.js +0 -41
  172. package/dist/server/node_modules/auto-bind/license +0 -9
  173. package/dist/server/node_modules/auto-bind/package.json +0 -51
  174. package/dist/server/node_modules/auto-bind/react.d.ts +0 -26
  175. package/dist/server/node_modules/auto-bind/react.js +0 -28
  176. package/dist/server/node_modules/auto-bind/readme.md +0 -92
  177. package/dist/server/node_modules/is-in-ci/cli.js +0 -5
  178. package/dist/server/node_modules/is-in-ci/index.d.ts +0 -15
  179. package/dist/server/node_modules/is-in-ci/index.js +0 -7
  180. package/dist/server/node_modules/is-in-ci/license +0 -9
  181. package/dist/server/node_modules/is-in-ci/package.json +0 -49
  182. package/dist/server/node_modules/is-in-ci/readme.md +0 -44
  183. package/dist/server/node_modules/onetime/index.d.ts +0 -64
  184. package/dist/server/node_modules/onetime/index.js +0 -44
  185. package/dist/server/node_modules/onetime/license +0 -9
  186. package/dist/server/node_modules/onetime/package.json +0 -43
  187. package/dist/server/node_modules/onetime/readme.md +0 -94
  188. package/dist/server/node_modules/postgres-bytea/index.js +0 -33
  189. package/dist/server/node_modules/postgres-bytea/license +0 -21
  190. package/dist/server/node_modules/postgres-bytea/package.json +0 -34
  191. package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
  192. package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
  193. package/dist/server/node_modules/postgres-interval/index.js +0 -125
  194. package/dist/server/node_modules/postgres-interval/license +0 -21
  195. package/dist/server/node_modules/postgres-interval/package.json +0 -36
  196. package/dist/server/node_modules/postgres-interval/readme.md +0 -48
  197. package/dist/server/node_modules/split2/LICENSE +0 -13
  198. package/dist/server/node_modules/split2/README.md +0 -85
  199. package/dist/server/node_modules/split2/bench.js +0 -27
  200. package/dist/server/node_modules/split2/index.js +0 -141
  201. package/dist/server/node_modules/split2/package.json +0 -39
  202. package/dist/server/node_modules/split2/test.js +0 -409
  203. package/dist/server/node_modules/terminal-size/index.d.ts +0 -17
  204. package/dist/server/node_modules/terminal-size/index.js +0 -139
  205. package/dist/server/node_modules/terminal-size/license +0 -9
  206. package/dist/server/node_modules/terminal-size/package.json +0 -49
  207. package/dist/server/node_modules/terminal-size/readme.md +0 -32
@@ -1 +1 @@
1
- import{e as oe,j as t,B as Ce,f as Be,b as ct,s as ze,r as dt,x as Le,o as ut,a as mt,K as Fe,Y as Ke,Z as pt}from"./index-KRYpI-wr.js";import{u as Ve,S as qe}from"./constants-DfvWBMZm.js";import{B as ft,g as Me}from"./constants-3jD3x8Uj.js";import{C as Qe}from"./collection-display-button-FwqJW3Qj.js";import{C as ht}from"./collection-search-BsmMEHVf.js";import{C as gt}from"./card-BbLPQxf_.js";import{I as Ge}from"./integration-icon-gFG8GE83.js";import{D as He,a as Ye,b as Je,c as O}from"./dropdown-menu-CoYd9oG5.js";import{c as Ze}from"./XCircle-BSiQp6n3.js";import{i as Xe}from"./DotsVertical-C14a4Ecy.js";import{y as et,H as Ue}from"./agent-icon-B3jGc1Ev.js";import{s as tt}from"./RefreshCcw01-DkGR6dYl.js";import{s as st}from"./Trash01-FiQdOhqi.js";import{C as xt}from"./collection-table-wrapper-Bf7AfER2.js";import{E as We}from"./empty-state-CEaufWig.js";import{U as jt}from"./user-PR58nvg_.js";import{E as it}from"./empty-state-oEpGmt_E.js";import{u as Ct}from"./use-list-state-CKz5CR8i.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-COV2HFzJ.js";import{a as It,c as At}from"./use-collections-CLAb2ITC.js";import{a as Tt}from"./use-connection-vMA7gFAk.js";import{s as Et}from"./Plus-BU5qE_0Z.js";import{a as Ot}from"./layout-Bu4l4YYc.js";import{P as je}from"./index-BGF4-5Ra.js";import"./collections-B_BLEc5A.js";import"./XClose-BUwTYWum.js";import"./ChevronDown-DpY6Flf1.js";import"./tooltip-GP5hVzoi.js";import"./view-mode-toggle-C_22FOAw.js";import"./badge--qrdwFcB.js";import"./SearchMd-Bun6GRRS.js";import"./Container-D_0hJyWg.js";import"./ChevronRight-BTHSc5W9.js";import"./AlertCircle-CdsafmOE.js";import"./Tool01-BpwK-6V9.js";import"./ArrowNarrowLeft-Z3bol_QU.js";import"./ArrowUpRight-DlOBonM-.js";import"./ZapSquare-De19_vak.js";import"./Users03-DaFOfASx.js";import"./CheckCircle-rCOulsHV.js";import"./ChevronUp-3rRJzUBA.js";import"./Star01-C2q-Rz0j.js";import"./Palette-CC5sNEUI.js";import"./LinkExternal01-CXFf8E57.js";import"./Lock01-jCC5NElm.js";import"./Sun-BXkdevd2.js";import"./Play-BCtgtTv0.js";import"./Settings02-BW8HHhci.js";import"./Shield01-DsYD83TQ.js";import"./User01-C_ak6Kxk.js";import"./X-BCwgneQR.js";import"./Zap-JVLBlI8s.js";import"./table-DHlZtgXE.js";import"./avatar-CTOwJvGM.js";import"./use-view-mode-B4L3BxLu.js";function $t(i,e){const s=i.properties||{};for(const n in s){const c=s[n];if(c&&c.type==="string"&&(c.format==="url"||c.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 kt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let c;e[0]!==s||e[1]!==l?(c=$t(l,s),e[0]=s,e[1]=l,e[2]=c):c=e[2];const r=c,p=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let d;e[3]!==n?(d=n&&Object.keys(n).length>0,e[3]=n,e[4]=d):d=e[4];const o=d;let m;e[5]!==r||e[6]!==s.title?(m=t.jsx(Ge,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=m):m=e[7];let u;e[8]!==s.title?(u=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=u):u=e[9];const f=p||"No description";let a;e[10]!==f?(a=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:f}),e[10]=f,e[11]=a):a=e[11];let b;e[12]!==u||e[13]!==a?(b=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[u,a]}),e[12]=u,e[13]=a,e[14]=b):b=e[14];let y;e[15]!==m||e[16]!==b?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[m,b]}),e[15]=m,e[16]=b,e[17]=y):y=e[17];let C;e[18]!==n||e[19]!==o||e[20]!==s?(C=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Ft,children:t.jsxs(He,{children:[t.jsx(Ye,{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(Je,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(tt,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(et,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(st,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=o,e[20]=s,e[21]=C):C=e[21];let v;return e[22]!==y||e[23]!==C?(v=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,C]}),e[22]=y,e[23]=C,e[24]=v):v=e[24],v}function zt(i){return i.stopPropagation()}function Lt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}const Mt=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Ut(i){return Object.keys(i).find(e=>Mt.includes(e.toLowerCase()))}function ot(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 Wt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:c,sortKey:r,sortDirection:p,onSort:d,actions:o,onItemClick:m,headerActions:u,emptyState:f,readOnly:a,columns:b,hideToolbar:y,sortableFields:C}=i,v=p===void 0?"asc":p,g=d===void 0?qt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=m===void 0?Vt:m,E=u===void 0?null:u,N=f===void 0?null:f,k=a===void 0?!1:a,x=b===void 0?void 0:b,z=y===void 0?!1:y,P=C===void 0?void 0:C;let D;e[2]!==x||e[3]!==l||e[4]!==P?(D=x?x.filter(Bt).filter(A=>!P||P.includes(A.id)).map(Rt):ot(l,P),e[2]=x,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]!==v||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Qe,{sortKey:r,sortDirection:v,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=v,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==h||e[14]!==x||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==c||e[22]!==v||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(We,{icon:t.jsx(Ue,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"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(kt,{item:A,schema:l,readOnly:k,actions:h})},A.id))})}):t.jsx(xt,{columns:Ht(x,l,P,h),data:s,sortKey:r,sortDirection:v,onSort:g,onRowClick:T,emptyState:N||t.jsx(We,{icon:t.jsx(Ue,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}),e[13]=h,e[14]=x,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=c,e[22]=v,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 Rt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function Bt(i){return i.sortable!==!1}function Vt(){}function qt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(He,{children:[t.jsx(Ye,{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(Je,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(tt,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(et,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(st,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function nt(i){const e=i.type;return Array.isArray(e)?e.every(s=>nt({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Gt(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const m=s[o];return m&&nt(m)}),n=Ut(s),c=[],r=new Set;n&&l.includes(n)&&(c.push(n),r.add(n));const p=["title","description","updated_at","updated_by"];for(const o of p)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));const d=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,m)=>o.localeCompare(m));for(const o of d)c.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));return c.map(o=>{const m=s[o],u=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:f=>{const a=f[o];return t.jsx(Ge,{icon:a,name:f.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(a)})},sortable:u,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx(jt,{id:String(a),size:"xs"}):"—"},sortable:u,cellClassName:"max-w-[250px]"}:m?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx("span",{className:"block truncate max-w-full",children:new Date(a).toLocaleDateString()}):"—"},sortable:u,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(a)})},sortable:u,cellClassName:"max-w-[200px]"}})}function Ht(i,e,s,l){const n=i||Gt(e,s);return n.some(p=>p.id==="actions")?n:Object.keys(l).length>0?[...n,Qt(l)]:n}function Yt(i){const e=oe.c(118),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,p=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,m=n.hasDeleteTool,u=Be(),{data:f}=ct.useSession(),a=f?.user?.id||"unknown",b=Tt(s);let y;e[0]!==b||e[1]!==s?(y=b?bt(b):s,e[0]=b,e[1]=s,e[2]=y):y=e[2];const C=y,{org:v}=ze();let g;e[3]!==s||e[4]!==v.id?(g={connectionId:s,orgId:v.id},e[3]=s,e[4]=v.id,e[5]=g):g=e[5];const $=Ve(g),h=It(s,r,$),T=`${s}-${r}`;let E;e[6]!==l||e[7]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[6]=l,e[7]=T,e[8]=E):E=e[8];const{search:N,searchTerm:k,setSearch:x,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[9]!==k||e[10]!==w||e[11]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[9]=k,e[10]=w,e[11]=D,e[12]=_):_=e[12];const I=At(s,r,$,_),A=!d&&!o&&!m;let ne;e[13]!==C||e[14]!==r||e[15]!==u||e[16]!==c||e[17]!==l?(ne=j=>{if(c){c(j);return}u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:C,collectionName:r,itemId:j.id}})},e[13]=C,e[14]=r,e[15]=u,e[16]=c,e[17]=l,e[18]=ne):ne=e[18];const L=ne;let re;e[19]!==h.create||e[20]!==a?(re=async j=>{const xe=new Date().toISOString();await h.create.mutateAsync({...j,id:Me("conn"),title:`${j.title} (Copy)`,created_at:xe,updated_at:xe,created_by:a,updated_by:a})},e[19]=h.create,e[20]=a,e[21]=re):re=e[21];const be=re,[F,ve]=dt.useState(null);let le;e[22]===Symbol.for("react.memo_cache_sentinel")?(le=j=>{ve(j)},e[22]=le):le=e[22];const rt=le;let K;e[23]!==L||e[24]!==o?(K=o&&{edit:L},e[23]=L,e[24]=o,e[25]=K):K=e[25];let M;e[26]!==be||e[27]!==d?(M=d&&{duplicate:be},e[26]=be,e[27]=d,e[28]=M):M=e[28];let U;e[29]!==m?(U=m&&{delete:rt},e[29]=m,e[30]=U):U=e[30];let ae;e[31]!==M||e[32]!==U||e[33]!==K?(ae={...K,...M,...U},e[31]=M,e[32]=U,e[33]=K,e[34]=ae):ae=e[34];const ye=ae;let ce;e[35]!==h.delete||e[36]!==F?(ce=async()=>{F&&(await h.delete.mutateAsync(F.id),ve(null))},e[35]=h.delete,e[36]=F,e[37]=ce):ce=e[37];const Ne=ce;let de;e[38]!==h.create||e[39]!==C||e[40]!==r||e[41]!==d||e[42]!==u||e[43]!==l||e[44]!==a?(de=async()=>{if(!d){Le.error("Create operation is not available for this collection");return}const j=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:j,updated_at:j,created_by:a,updated_by:a};try{const ke=await h.create.mutateAsync(xe);u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:C,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[38]=h.create,e[39]=C,e[40]=r,e[41]=d,e[42]=u,e[43]=l,e[44]=a,e[45]=de):de=e[45];const we=de;let ue;e[46]!==p?(ue=ot(p),e[46]=p,e[47]=ue):ue=e[47];const Se=ue,lt=(I?.length??0)>0,at=d&&!lt&&!N;let me;e[48]!==h.create||e[49]!==we||e[50]!==d?(me=d?t.jsxs(Ce,{onClick:we,size:"sm",disabled:h.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),h.create.isPending?"Creating...":"Create"]}):null,e[48]=h.create,e[49]=we,e[50]=d,e[51]=me):me=e[51];const pe=me,Pe=D;let W;e[52]!==S||e[53]!==w||e[54]!==Se||e[55]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Qe,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[52]=S,e[53]=w,e[54]=Se,e[55]=Pe,e[56]=W):W=e[56];const _e=`Search ${r}...`;let R;e[57]!==x?(R=j=>{j.key==="Escape"&&(x(""),j.target.blur())},e[57]=x,e[58]=R):R=e[58];let B;e[59]!==N||e[60]!==x||e[61]!==_e||e[62]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:x,placeholder:_e,onKeyDown:R})}),e[59]=N,e[60]=x,e[61]=_e,e[62]=R,e[63]=B):B=e[63];let V;e[64]!==pe||e[65]!==d?(V=d&&t.jsx("div",{className:"pr-3",children:pe}),e[64]=pe,e[65]=d,e[66]=V):V=e[66];let q;e[67]!==B||e[68]!==V?(q=t.jsxs("div",{className:"flex items-center gap-2",children:[B,V]}),e[67]=B,e[68]=V,e[69]=q):q=e[69];let Q;e[70]!==I?(Q=I??[],e[70]=I,e[71]=Q):Q=e[71];const De=D;let G;e[72]!==L?(G=j=>L(j),e[72]=L,e[73]=G):G=e[73];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?pe:void 0;let H;e[74]!==Ie||e[75]!==Ae||e[76]!==Te?(H=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[74]=Ie,e[75]=Ae,e[76]=Te,e[77]=H):H=e[77];let Y;e[78]!==S||e[79]!==A||e[80]!==ye||e[81]!==p||e[82]!==N||e[83]!==x||e[84]!==P||e[85]!==w||e[86]!==Q||e[87]!==De||e[88]!==G||e[89]!==H||e[90]!==z?(Y=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:Q,schema:p,viewMode:z,onViewModeChange:P,search:N,onSearchChange:x,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:G,readOnly:A,emptyState:H})}),e[78]=S,e[79]=A,e[80]=ye,e[81]=p,e[82]=N,e[83]=x,e[84]=P,e[85]=w,e[86]=Q,e[87]=De,e[88]=G,e[89]=H,e[90]=z,e[91]=Y):Y=e[91];let J;e[92]!==q||e[93]!==Y?(J=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[q,Y]}),e[92]=q,e[93]=Y,e[94]=J):J=e[94];const Ee=!!F;let fe;e[95]===Symbol.for("react.memo_cache_sentinel")?(fe=j=>{j||ve(null)},e[95]=fe):fe=e[95];let he;e[96]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[96]=he):he=e[96];const Oe=F?.title;let Z;e[97]!==Oe?(Z=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[97]=Oe,e[98]=Z):Z=e[98];let X;e[99]!==h.delete.isPending?(X=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[99]=h.delete.isPending,e[100]=X):X=e[100];const $e=h.delete.isPending?"Deleting...":"Delete";let ee;e[101]!==h.delete.isPending||e[102]!==Ne||e[103]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[101]=h.delete.isPending,e[102]=Ne,e[103]=$e,e[104]=ee):ee=e[104];let te;e[105]!==X||e[106]!==ee?(te=t.jsxs(Pt,{children:[X,ee]}),e[105]=X,e[106]=ee,e[107]=te):te=e[107];let se;e[108]!==Z||e[109]!==te?(se=t.jsxs(_t,{children:[Z,te]}),e[108]=Z,e[109]=te,e[110]=se):se=e[110];let ie;e[111]!==Ee||e[112]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[111]=Ee,e[112]=se,e[113]=ie):ie=e[113];let ge;return e[114]!==W||e[115]!==J||e[116]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,J,ie]}),e[114]=W,e[115]=J,e[116]=ie,e[117]=ge):ge=e[117],ge}function Jt(){const i=oe.c(12),{org:e,project:s}=ze(),l=ut();let n;i[0]!==e.id?(n={connectionId:qe,orgId:e.id},i[0]=e.id,i[1]=n):n=i[1];const c=Ve(n);let r;i[2]!==c||i[3]!==s?(r=async m=>{const u=s.enabledPlugins??[];if(u.includes(m))return;const f=[...u,m],a=await c.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s.id,data:{metadata:{enabled_plugins:f}}}});return a.structuredContent??a},i[2]=c,i[3]=s,i[4]=r):r=i[4];let p;i[5]!==e.id||i[6]!==s||i[7]!==l?(p=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[5]=e.id,i[6]=s,i[7]=l,i[8]=p):p=i[8];let d;return i[9]!==r||i[10]!==p?(d={mutationFn:r,onSuccess:p,onError:Zt},i[9]=r,i[10]=p,i[11]=d):d=i[11],mt(d)}function Zt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Xt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Jt();let p;e[0]!==r||e[1]!==s?(p=async()=>{try{await r.mutateAsync(s),Le.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=p):p=e[2];const d=p,o=c??null,m=r.isPending?"Enabling…":"Enable plugin";let u;e[3]!==r.isPending||e[4]!==d||e[5]!==m?(u=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:m}),e[3]=r.isPending,e[4]=d,e[5]=m,e[6]=u):u=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==u||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:u}),e[7]=n,e[8]=o,e[9]=u,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function oi(){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(Xt,{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(pt,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Yt,{connectionId:qe,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{oi as default};
1
+ import{e as oe,j as t,B as Ce,f as Be,b as ct,s as ze,r as dt,x as Le,o as ut,a as mt,K as Fe,Y as Ke,Z as pt}from"./index-D1OGx8P1.js";import{u as Ve,S as qe}from"./constants-D7xAST0Q.js";import{B as ft,g as Me}from"./constants-DivL5teI.js";import{C as Qe}from"./collection-display-button-D0RK6oeA.js";import{C as ht}from"./collection-search-BkYFe6i5.js";import{C as gt}from"./card-RSPkY0To.js";import{I as Ge}from"./integration-icon-D_AOqXFj.js";import{D as He,a as Ye,b as Je,c as O}from"./dropdown-menu-B8_YZGoo.js";import{c as Ze}from"./XCircle-C0fkjQDC.js";import{i as Xe}from"./DotsVertical-D4yfeGnN.js";import{y as et,H as Ue}from"./agent-icon-DmsooVXW.js";import{s as tt}from"./RefreshCcw01-HnODDFoT.js";import{s as st}from"./Trash01-D1T4c6gl.js";import{C as xt}from"./collection-table-wrapper-BCfFkyA6.js";import{E as We}from"./empty-state-DJGg06AT.js";import{U as jt}from"./user-0W2qHPIr.js";import{E as it}from"./empty-state-DOC09WYz.js";import{u as Ct}from"./use-list-state-17IGcEJ3.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-CWQoS6wX.js";import{a as It,c as At}from"./use-collections-DA0dA7NJ.js";import{a as Tt}from"./use-connection-B6UydpoO.js";import{s as Et}from"./Plus-DYdqKX5R.js";import{a as Ot}from"./layout-CY21UTYW.js";import{P as je}from"./index-HZ0ltqWr.js";import"./collections-B1Vl-dRY.js";import"./XClose-DxHt9zuu.js";import"./ChevronDown-CHOTJx8l.js";import"./tooltip-CPtrqiVf.js";import"./view-mode-toggle-CsVOHOCK.js";import"./badge-Ch9BdqT9.js";import"./SearchMd-GZRswmV_.js";import"./Container-C3IYo0L9.js";import"./ChevronRight-Dk8qeq6P.js";import"./AlertCircle-1FKO-iwn.js";import"./Tool01-Bbs6ipxi.js";import"./ArrowNarrowLeft-CKZqPsRI.js";import"./ArrowUpRight-7lMYxGWa.js";import"./ZapSquare-DGM2fPse.js";import"./Users03-CVNVU6ve.js";import"./CheckCircle-Dk81QM9U.js";import"./ChevronUp-CTvlJvJZ.js";import"./Star01-DUqgRTj4.js";import"./Palette-C9akcBSz.js";import"./LinkExternal01-x1hnv38P.js";import"./Lock01-lZHBNo2C.js";import"./Sun-g7onD0QQ.js";import"./Play-CdX48V1T.js";import"./Settings02-Dzch4bsp.js";import"./Shield01-bIZj53hE.js";import"./User01-Fk9cKl4i.js";import"./X-BwEMSUjV.js";import"./Zap-BPFq3hVj.js";import"./table-BpO63Yb0.js";import"./avatar-Bu1NzTYg.js";import"./use-view-mode-C-htIWSb.js";function $t(i,e){const s=i.properties||{};for(const n in s){const c=s[n];if(c&&c.type==="string"&&(c.format==="url"||c.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 kt(i){const e=oe.c(25),{item:s,schema:l,actions:n}=i;let c;e[0]!==s||e[1]!==l?(c=$t(l,s),e[0]=s,e[1]=l,e[2]=c):c=e[2];const r=c,p=s&&typeof s=="object"&&"description"in s&&typeof s.description=="string"?s.description:void 0;let d;e[3]!==n?(d=n&&Object.keys(n).length>0,e[3]=n,e[4]=d):d=e[4];const o=d;let m;e[5]!==r||e[6]!==s.title?(m=t.jsx(Ge,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=m):m=e[7];let u;e[8]!==s.title?(u=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=u):u=e[9];const f=p||"No description";let a;e[10]!==f?(a=t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:f}),e[10]=f,e[11]=a):a=e[11];let b;e[12]!==u||e[13]!==a?(b=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[u,a]}),e[12]=u,e[13]=a,e[14]=b):b=e[14];let y;e[15]!==m||e[16]!==b?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[m,b]}),e[15]=m,e[16]=b,e[17]=y):y=e[17];let C;e[18]!==n||e[19]!==o||e[20]!==s?(C=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Ft,children:t.jsxs(He,{children:[t.jsx(Ye,{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(Je,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(tt,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(et,{size:16}),"Edit"]}),n.duplicate&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.duplicate?.(s)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),n.delete&&t.jsxs(O,{variant:"destructive",onClick:g=>{g.stopPropagation(),n.delete?.(s)},children:[t.jsx(st,{size:16}),"Delete"]})]})]})}),e[18]=n,e[19]=o,e[20]=s,e[21]=C):C=e[21];let v;return e[22]!==y||e[23]!==C?(v=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,C]}),e[22]=y,e[23]=C,e[24]=v):v=e[24],v}function zt(i){return i.stopPropagation()}function Lt(i){return i.stopPropagation()}function Ft(i){return i.stopPropagation()}function Kt(i){return i.stopPropagation()}const Mt=["icon","avatar","logo"],Re=["created_at","created_by","id"];function Ut(i){return Object.keys(i).find(e=>Mt.includes(e.toLowerCase()))}function ot(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 Wt(i){const e=oe.c(30),{data:s,schema:l,viewMode:n,search:c,sortKey:r,sortDirection:p,onSort:d,actions:o,onItemClick:m,headerActions:u,emptyState:f,readOnly:a,columns:b,hideToolbar:y,sortableFields:C}=i,v=p===void 0?"asc":p,g=d===void 0?qt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=m===void 0?Vt:m,E=u===void 0?null:u,N=f===void 0?null:f,k=a===void 0?!1:a,x=b===void 0?void 0:b,z=y===void 0?!1:y,P=C===void 0?void 0:C;let D;e[2]!==x||e[3]!==l||e[4]!==P?(D=x?x.filter(Bt).filter(A=>!P||P.includes(A.id)).map(Rt):ot(l,P),e[2]=x,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]!==v||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Qe,{sortKey:r,sortDirection:v,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=v,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==h||e[14]!==x||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==c||e[22]!==v||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(We,{icon:t.jsx(Ue,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"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(kt,{item:A,schema:l,readOnly:k,actions:h})},A.id))})}):t.jsx(xt,{columns:Ht(x,l,P,h),data:s,sortKey:r,sortDirection:v,onSort:g,onRowClick:T,emptyState:N||t.jsx(We,{icon:t.jsx(Ue,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}),e[13]=h,e[14]=x,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=c,e[22]=v,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 Rt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function Bt(i){return i.sortable!==!1}function Vt(){}function qt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(He,{children:[t.jsx(Ye,{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(Je,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(tt,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(et,{size:16}),"Edit"]}),i.duplicate&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.duplicate?.(e)},children:[t.jsx(Ze,{size:16}),"Duplicate"]}),i.delete&&t.jsxs(O,{variant:"destructive",onClick:s=>{s.stopPropagation(),i.delete?.(e)},children:[t.jsx(st,{size:16}),"Delete"]})]})]}),cellClassName:"w-[60px]",sortable:!1}}function nt(i){const e=i.type;return Array.isArray(e)?e.every(s=>nt({type:s})):e==="string"||e==="number"||e==="integer"||e==="boolean"||e==="null"}function Gt(i,e){const s=i.properties||{},l=Object.keys(s).filter(o=>{const m=s[o];return m&&nt(m)}),n=Ut(s),c=[],r=new Set;n&&l.includes(n)&&(c.push(n),r.add(n));const p=["title","description","updated_at","updated_by"];for(const o of p)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));const d=l.filter(o=>!r.has(o)&&!Re.includes(o)).sort((o,m)=>o.localeCompare(m));for(const o of d)c.push(o),r.add(o);for(const o of Re)l.includes(o)&&!r.has(o)&&(c.push(o),r.add(o));return c.map(o=>{const m=s[o],u=e?e.includes(o):!["id"].includes(o);return o===n?{id:o,header:"",render:f=>{const a=f[o];return t.jsx(Ge,{icon:a,name:f.title,size:"sm",className:"shrink-0 shadow-sm"})},sortable:!1,cellClassName:"w-16 shrink-0",wrap:!0}:o==="description"?{id:o,header:"Description",render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-[50ch]",children:String(a)})},sortable:u,cellClassName:"max-w-[50ch]"}:o==="created_by"||o==="updated_by"?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx(jt,{id:String(a),size:"xs"}):"—"},sortable:u,cellClassName:"max-w-[250px]"}:m?.format==="date-time"||o.endsWith("_at")?{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a?t.jsx("span",{className:"block truncate max-w-full",children:new Date(a).toLocaleDateString()}):"—"},sortable:u,cellClassName:"max-w-[200px]"}:{id:o,header:o.charAt(0).toUpperCase()+o.slice(1).replace(/_/g," "),render:f=>{const a=f[o];return a==null?"—":t.jsx("span",{className:"block truncate max-w-full",children:String(a)})},sortable:u,cellClassName:"max-w-[200px]"}})}function Ht(i,e,s,l){const n=i||Gt(e,s);return n.some(p=>p.id==="actions")?n:Object.keys(l).length>0?[...n,Qt(l)]:n}function Yt(i){const e=oe.c(118),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,p=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,m=n.hasDeleteTool,u=Be(),{data:f}=ct.useSession(),a=f?.user?.id||"unknown",b=Tt(s);let y;e[0]!==b||e[1]!==s?(y=b?bt(b):s,e[0]=b,e[1]=s,e[2]=y):y=e[2];const C=y,{org:v}=ze();let g;e[3]!==s||e[4]!==v.id?(g={connectionId:s,orgId:v.id},e[3]=s,e[4]=v.id,e[5]=g):g=e[5];const $=Ve(g),h=It(s,r,$),T=`${s}-${r}`;let E;e[6]!==l||e[7]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[6]=l,e[7]=T,e[8]=E):E=e[8];const{search:N,searchTerm:k,setSearch:x,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[9]!==k||e[10]!==w||e[11]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[9]=k,e[10]=w,e[11]=D,e[12]=_):_=e[12];const I=At(s,r,$,_),A=!d&&!o&&!m;let ne;e[13]!==C||e[14]!==r||e[15]!==u||e[16]!==c||e[17]!==l?(ne=j=>{if(c){c(j);return}u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:C,collectionName:r,itemId:j.id}})},e[13]=C,e[14]=r,e[15]=u,e[16]=c,e[17]=l,e[18]=ne):ne=e[18];const L=ne;let re;e[19]!==h.create||e[20]!==a?(re=async j=>{const xe=new Date().toISOString();await h.create.mutateAsync({...j,id:Me("conn"),title:`${j.title} (Copy)`,created_at:xe,updated_at:xe,created_by:a,updated_by:a})},e[19]=h.create,e[20]=a,e[21]=re):re=e[21];const be=re,[F,ve]=dt.useState(null);let le;e[22]===Symbol.for("react.memo_cache_sentinel")?(le=j=>{ve(j)},e[22]=le):le=e[22];const rt=le;let K;e[23]!==L||e[24]!==o?(K=o&&{edit:L},e[23]=L,e[24]=o,e[25]=K):K=e[25];let M;e[26]!==be||e[27]!==d?(M=d&&{duplicate:be},e[26]=be,e[27]=d,e[28]=M):M=e[28];let U;e[29]!==m?(U=m&&{delete:rt},e[29]=m,e[30]=U):U=e[30];let ae;e[31]!==M||e[32]!==U||e[33]!==K?(ae={...K,...M,...U},e[31]=M,e[32]=U,e[33]=K,e[34]=ae):ae=e[34];const ye=ae;let ce;e[35]!==h.delete||e[36]!==F?(ce=async()=>{F&&(await h.delete.mutateAsync(F.id),ve(null))},e[35]=h.delete,e[36]=F,e[37]=ce):ce=e[37];const Ne=ce;let de;e[38]!==h.create||e[39]!==C||e[40]!==r||e[41]!==d||e[42]!==u||e[43]!==l||e[44]!==a?(de=async()=>{if(!d){Le.error("Create operation is not available for this collection");return}const j=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:j,updated_at:j,created_by:a,updated_by:a};try{const ke=await h.create.mutateAsync(xe);u({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:C,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[38]=h.create,e[39]=C,e[40]=r,e[41]=d,e[42]=u,e[43]=l,e[44]=a,e[45]=de):de=e[45];const we=de;let ue;e[46]!==p?(ue=ot(p),e[46]=p,e[47]=ue):ue=e[47];const Se=ue,lt=(I?.length??0)>0,at=d&&!lt&&!N;let me;e[48]!==h.create||e[49]!==we||e[50]!==d?(me=d?t.jsxs(Ce,{onClick:we,size:"sm",disabled:h.create.isPending,className:"h-7",children:[t.jsx(Et,{className:"mr-2 h-4 w-4"}),h.create.isPending?"Creating...":"Create"]}):null,e[48]=h.create,e[49]=we,e[50]=d,e[51]=me):me=e[51];const pe=me,Pe=D;let W;e[52]!==S||e[53]!==w||e[54]!==Se||e[55]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Qe,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[52]=S,e[53]=w,e[54]=Se,e[55]=Pe,e[56]=W):W=e[56];const _e=`Search ${r}...`;let R;e[57]!==x?(R=j=>{j.key==="Escape"&&(x(""),j.target.blur())},e[57]=x,e[58]=R):R=e[58];let B;e[59]!==N||e[60]!==x||e[61]!==_e||e[62]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:x,placeholder:_e,onKeyDown:R})}),e[59]=N,e[60]=x,e[61]=_e,e[62]=R,e[63]=B):B=e[63];let V;e[64]!==pe||e[65]!==d?(V=d&&t.jsx("div",{className:"pr-3",children:pe}),e[64]=pe,e[65]=d,e[66]=V):V=e[66];let q;e[67]!==B||e[68]!==V?(q=t.jsxs("div",{className:"flex items-center gap-2",children:[B,V]}),e[67]=B,e[68]=V,e[69]=q):q=e[69];let Q;e[70]!==I?(Q=I??[],e[70]=I,e[71]=Q):Q=e[71];const De=D;let G;e[72]!==L?(G=j=>L(j),e[72]=L,e[73]=G):G=e[73];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?pe:void 0;let H;e[74]!==Ie||e[75]!==Ae||e[76]!==Te?(H=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[74]=Ie,e[75]=Ae,e[76]=Te,e[77]=H):H=e[77];let Y;e[78]!==S||e[79]!==A||e[80]!==ye||e[81]!==p||e[82]!==N||e[83]!==x||e[84]!==P||e[85]!==w||e[86]!==Q||e[87]!==De||e[88]!==G||e[89]!==H||e[90]!==z?(Y=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:Q,schema:p,viewMode:z,onViewModeChange:P,search:N,onSearchChange:x,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:G,readOnly:A,emptyState:H})}),e[78]=S,e[79]=A,e[80]=ye,e[81]=p,e[82]=N,e[83]=x,e[84]=P,e[85]=w,e[86]=Q,e[87]=De,e[88]=G,e[89]=H,e[90]=z,e[91]=Y):Y=e[91];let J;e[92]!==q||e[93]!==Y?(J=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[q,Y]}),e[92]=q,e[93]=Y,e[94]=J):J=e[94];const Ee=!!F;let fe;e[95]===Symbol.for("react.memo_cache_sentinel")?(fe=j=>{j||ve(null)},e[95]=fe):fe=e[95];let he;e[96]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[96]=he):he=e[96];const Oe=F?.title;let Z;e[97]!==Oe?(Z=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[97]=Oe,e[98]=Z):Z=e[98];let X;e[99]!==h.delete.isPending?(X=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[99]=h.delete.isPending,e[100]=X):X=e[100];const $e=h.delete.isPending?"Deleting...":"Delete";let ee;e[101]!==h.delete.isPending||e[102]!==Ne||e[103]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[101]=h.delete.isPending,e[102]=Ne,e[103]=$e,e[104]=ee):ee=e[104];let te;e[105]!==X||e[106]!==ee?(te=t.jsxs(Pt,{children:[X,ee]}),e[105]=X,e[106]=ee,e[107]=te):te=e[107];let se;e[108]!==Z||e[109]!==te?(se=t.jsxs(_t,{children:[Z,te]}),e[108]=Z,e[109]=te,e[110]=se):se=e[110];let ie;e[111]!==Ee||e[112]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[111]=Ee,e[112]=se,e[113]=ie):ie=e[113];let ge;return e[114]!==W||e[115]!==J||e[116]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,J,ie]}),e[114]=W,e[115]=J,e[116]=ie,e[117]=ge):ge=e[117],ge}function Jt(){const i=oe.c(12),{org:e,project:s}=ze(),l=ut();let n;i[0]!==e.id?(n={connectionId:qe,orgId:e.id},i[0]=e.id,i[1]=n):n=i[1];const c=Ve(n);let r;i[2]!==c||i[3]!==s?(r=async m=>{const u=s.enabledPlugins??[];if(u.includes(m))return;const f=[...u,m],a=await c.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s.id,data:{metadata:{enabled_plugins:f}}}});return a.structuredContent??a},i[2]=c,i[3]=s,i[4]=r):r=i[4];let p;i[5]!==e.id||i[6]!==s||i[7]!==l?(p=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[5]=e.id,i[6]=s,i[7]=l,i[8]=p):p=i[8];let d;return i[9]!==r||i[10]!==p?(d={mutationFn:r,onSuccess:p,onError:Zt},i[9]=r,i[10]=p,i[11]=d):d=i[11],mt(d)}function Zt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Xt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Jt();let p;e[0]!==r||e[1]!==s?(p=async()=>{try{await r.mutateAsync(s),Le.success("Plugin enabled!")}catch{}},e[0]=r,e[1]=s,e[2]=p):p=e[2];const d=p,o=c??null,m=r.isPending?"Enabling…":"Enable plugin";let u;e[3]!==r.isPending||e[4]!==d||e[5]!==m?(u=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:m}),e[3]=r.isPending,e[4]=d,e[5]=m,e[6]=u):u=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==u||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:u}),e[7]=n,e[8]=o,e[9]=u,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function oi(){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(Xt,{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(pt,{className:"size-8 text-muted-foreground"})})})})})});const n=Be();return t.jsx(je,{children:t.jsx(je.Content,{children:t.jsx(Yt,{connectionId:qe,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{oi 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-D1OGx8P1.js";import{a as f}from"./index-BEZPSJ65.js";import"./index-DBkKSx96.js";import"./constants-D7xAST0Q.js";import"./collections-B1Vl-dRY.js";import"./index-BirIwGZm.js";import"./use-virtual-mcp-Ck38sBYu.js";import"./use-collections-DA0dA7NJ.js";import"./monaco-editor-DuX4NcOq.js";import"./index-70mmoBkB.js";import"./accordion-Bdek-M8z.js";import"./agent-icon-DmsooVXW.js";import"./AlertCircle-1FKO-iwn.js";import"./Tool01-Bbs6ipxi.js";import"./XClose-DxHt9zuu.js";import"./RefreshCcw01-HnODDFoT.js";import"./ArrowNarrowLeft-CKZqPsRI.js";import"./XCircle-C0fkjQDC.js";import"./ArrowUpRight-7lMYxGWa.js";import"./ZapSquare-DGM2fPse.js";import"./Users03-CVNVU6ve.js";import"./CheckCircle-Dk81QM9U.js";import"./ChevronDown-CHOTJx8l.js";import"./ChevronRight-Dk8qeq6P.js";import"./ChevronUp-CTvlJvJZ.js";import"./DotsVertical-D4yfeGnN.js";import"./Container-C3IYo0L9.js";import"./Star01-DUqgRTj4.js";import"./Palette-C9akcBSz.js";import"./SearchMd-GZRswmV_.js";import"./index-HZ0ltqWr.js";import"./tooltip-CPtrqiVf.js";import"./X-BwEMSUjV.js";import"./LinkExternal01-x1hnv38P.js";import"./Lock01-lZHBNo2C.js";import"./Sun-g7onD0QQ.js";import"./Play-CdX48V1T.js";import"./Plus-DYdqKX5R.js";import"./Settings02-Dzch4bsp.js";import"./Shield01-bIZj53hE.js";import"./Trash01-D1T4c6gl.js";import"./User01-Fk9cKl4i.js";import"./Zap-BPFq3hVj.js";import"./badge-Ch9BdqT9.js";import"./select-D5OmQB7Q.js";import"./view-mode-toggle-CsVOHOCK.js";import"./layout-CY21UTYW.js";import"./use-connection-B6UydpoO.js";import"./use-mcp-tools-CyJvV1rx.js";import"./dialog-C_vmNTRu.js";import"./index-Cfe1XtAV.js";import"./dropdown-menu-B8_YZGoo.js";import"./integration-icon-D_AOqXFj.js";import"./scroll-area-DeGma9h8.js";import"./index-DHuevMFp.js";import"./empty-state-DJGg06AT.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-BzH1Fp78.js";function ht(){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{ht as default};
@@ -14,18 +14,20 @@
14
14
  })();
15
15
  </script>
16
16
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
17
- <title>deco Studio</title>
17
+ <title>deco CMS</title>
18
18
  <meta name="description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
19
- <meta property="og:title" content="deco Studio" />
19
+ <meta property="og:title" content="deco CMS" />
20
20
  <meta property="og:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
21
21
  <meta property="og:image" content="/og-image.png" />
22
- <meta property="og:site_name" content="deco Studio" />
22
+ <meta property="og:site_name" content="deco CMS" />
23
23
  <meta name="twitter:card" content="summary_large_image" />
24
- <meta name="twitter:title" content="deco Studio" />
24
+ <meta name="twitter:title" content="deco CMS" />
25
25
  <meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
26
26
  <meta name="twitter:image" content="/og-image.png" />
27
27
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
28
- <script type="module" crossorigin src="/assets/index-KRYpI-wr.js"></script>
28
+ <link rel="manifest" href="/manifest.webmanifest" />
29
+ <meta name="theme-color" content="#D0EC1A" />
30
+ <script type="module" crossorigin src="/assets/index-D1OGx8P1.js"></script>
29
31
  <link rel="stylesheet" crossorigin href="/assets/index-DT63_YMm.css">
30
32
  </head>
31
33
  <body>
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "deco CMS",
3
+ "short_name": "deco CMS",
4
+ "description": "Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in.",
5
+ "start_url": "/",
6
+ "scope": "/",
7
+ "display": "standalone",
8
+ "background_color": "#ffffff",
9
+ "theme_color": "#D0EC1A",
10
+ "icons": [
11
+ {
12
+ "src": "/favicon.svg",
13
+ "sizes": "any",
14
+ "type": "image/svg+xml",
15
+ "purpose": "any"
16
+ }
17
+ ]
18
+ }
@@ -1623,7 +1623,7 @@ AS SELECT
1623
1623
  FROM monitoring_metrics
1624
1624
  GROUP BY organization_id, name, bucket, connection_id, tool_name, status
1625
1625
  `}),console.log("[clickhouse-schema] monitoring_metrics_rollup_1m_mv view ready")}finally{await G.close()}}catch(Y){console.error("[clickhouse-schema] Failed to create rollup DDL (queries will fall back to raw table):",Y)}}async function NA1(X){let Y={...process.env},G=q$1(X,Y),Q=G.settings.encryptionKey;console.log(`[settings] ENCRYPTION_KEY = ${JSON.stringify(Q)} (${Q.length} chars)`);let{ensureServices:J}=await Promise.resolve().then(() => (O$1(),z$1)),{outputs:W,services:Z}=await J({home:G.settings.dataDir,externalDatabaseUrl:G.externalDatabaseUrl,externalNatsUrl:G.externalNatsUrl});if(!G.skipMigrations){let{migrateBetterAuth:K}=await Promise.resolve().then(() => (oZ0(),Zx6));await K(W.databaseUrl);let{createDatabase:H}=await Promise.resolve().then(() => (YU(),Jx6)),{migrateToLatest:U}=await Promise.resolve().then(() => (Ur6(),Fr6)),B=H(W.databaseUrl);await U({keepOpen:!0,database:B,skipBetterAuth:!0})}if(G.settings.clickhouseUrl){let{ensureClickHouseRollup:K}=await Promise.resolve().then(() => Bs6);await K(G.settings.clickhouseUrl)}let $={...G.settings,databaseUrl:W.databaseUrl,natsUrls:W.natsUrls};return fn1($),{settings:$,services:Z.map((K)=>({name:K.name==="PostgreSQL"?"Postgres":K.name,port:K.port})),managedServiceNames:Z.filter((K)=>K.owner==="managed").map((K)=>K.name)}}var TB0=D(()=>{_n1();l9()});var DA1={};j0(DA1,{updateService:()=>pa,toggleViewMode:()=>VB0,toggleVibeState:()=>MB0,toggleLogFlow:()=>jB0,subscribeCliState:()=>DX1,setVibe:()=>bi5,setTuiConsoleIntercepted:()=>zA1,setServerUrl:()=>LX1,setMigrationsDone:()=>wX1,setEnv:()=>EX1,setDevMode:()=>_i5,setDataDir:()=>fi5,isTuiConsoleIntercepted:()=>OA1,getCliState:()=>OX1,addLogEntry:()=>Gz});function EU(){for(let X of IB0)X()}function OX1(){return X7}function DX1(X){return IB0.add(X),()=>IB0.delete(X)}function pa(X){X7={...X7,services:X7.services.map((Y)=>Y.name===X.name?X:Y)},EU()}function wX1(){X7={...X7,migrationsStatus:"done"},EU()}function LX1(X){X7={...X7,serverUrl:X},EU()}function EX1(X){X7={...X7,env:X},EU()}function Gz(X){let Y=[...X7.logs,X];X7={...X7,logs:Y.length>500?Y.slice(-500):Y},EU()}function _i5(){X7={...X7,services:[...X7.services,{name:"Vite",status:"pending",port:0}]},EU()}function VB0(){X7={...X7,viewMode:X7.viewMode==="requests"?"config":"requests"},EU()}function jB0(){X7={...X7,logFlow:!X7.logFlow},EU()}function fi5(X){X7={...X7,dataDir:X},EU()}function bi5(X){X7={...X7,vibe:X},EU()}function MB0(){X7={...X7,vibe:!X7.vibe},EU()}function zA1(X){Ns6=X}function OA1(){return Ns6}var X7,IB0,Ns6=!1;var Qz=D(()=>{X7={services:[{name:"Postgres",status:"pending",port:0},{name:"NATS",status:"pending",port:0}],migrationsStatus:"pending",serverUrl:null,env:null,logs:[],viewMode:"requests",logFlow:!1,vibe:!1,dataDir:null},IB0=new Set});import{createServer as zs6}from"net";function yi5(X){return new Promise((Y)=>{let G=zs6();G.once("error",()=>Y(!1)),G.listen(X,"0.0.0.0",()=>{G.close(()=>Y(!0))})})}async function wA1(X){if(await yi5(X))return X;let Y=await new Promise((G,Q)=>{let J=zs6();J.once("error",Q),J.listen(0,"0.0.0.0",()=>{let W=J.address(),Z=typeof W==="object"&&W?W.port:0;J.close(()=>G(Z))})});return console.warn(`Port ${X} is in use, using port ${Y} instead.`),Y}var RB0=()=>{};var SB0={};j0(SB0,{startDevServer:()=>hi5});import{join as xi5}from"path";function Os6(X){return X.replace(/\x1b\[[0-9;]*m/g,"")}function Ds6(X){let Y=X.getReader(),G=new TextDecoder,Q="";function J(){let W=Q.split(`
1626
- `);Q=W.pop()??"";for(let Z of W){let $=Os6(Z).replace(/^\[\d+\]\s*/,"").trim();if(!$)continue;Gz({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:$})}}(async()=>{for(;;){let{done:W,value:Z}=await Y.read();if(W)break;Q+=G.decode(Z,{stream:!0}),J()}if(Q.trim()){let W=Os6(Q).replace(/^\[\d+\]\s*/,"").trim();if(W)Gz({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:W})}})()}async function hi5(X){let{vitePort:Y,baseUrl:G,noTui:Q}=X,J=await wA1(Number(X.port)),{settings:W,services:Z,managedServiceNames:$}=await NA1({port:String(J),home:X.home,baseUrl:X.baseUrl,localMode:X.localMode,skipMigrations:X.skipMigrations,noTui:X.noTui,vitePort:X.vitePort});for(let z of Z)pa({name:z.name,status:"ready",port:z.port});EX1(W),wX1();let K=xi5(import.meta.dir,"..","..","..","..",".."),H=Q===!0,U=Bun.spawn(["bun","run","--cwd=apps/mesh","dev:servers"],{cwd:K,env:{...process.env,PORT:String(W.port),VITE_PORT:String(Y),DATABASE_URL:W.databaseUrl,NATS_URL:W.natsUrls.join(","),NODE_ENV:W.nodeEnv,DECOCMS_LOCAL_MODE:String(W.localMode),DECOCMS_HOME:W.dataDir,DATA_DIR:W.dataDir,DECO_CLI:"1",...W.baseUrl?{BASE_URL:W.baseUrl}:{}},stdio:["inherit",H?"inherit":"pipe",H?"inherit":"pipe"]});if(!H)Ds6(U.stdout),Ds6(U.stderr);let B=G||`http://localhost:${W.port}`;LX1(B),pa({name:"Vite",status:"ready",port:Number(Y)});let N=async(z)=>{if(U.kill(z),$.length>0){let{stopServices:O}=await Promise.resolve().then(() => (O$1(),z$1));await O(W.dataDir)}};return process.on("SIGINT",()=>N("SIGINT")),process.on("SIGTERM",()=>N("SIGTERM")),{port:Number(W.port),process:U}}var kB0=D(()=>{TB0();Qz();RB0()});import{Box as CB0,Text as vB0}from"ink";import{jsx as Ls6,jsxs as LA1}from"react/jsx-runtime";function ws6(X){if(!X)return"not set";try{let Y=new URL(X);if(Y.password)Y.password="***";if(Y.username&&Y.username.length>3)Y.username=Y.username.slice(0,3)+"***";return Y.pathname="/",Y.search="",Y.hash="",Y.toString()}catch{if(X.length<=10)return X;return X.slice(0,6)+"***"+X.slice(-4)}}function li5(X,Y){if(gi5.has(X))return Y?{text:"\u25CF\u25CF\u25CF\u25CF\u25CF\u25CF",dimColor:!0}:{text:"not set",dimColor:!0};if(ui5.has(X)){if(Array.isArray(Y)){if(Y.length===0)return{text:"not set",dimColor:!0};return{text:Y.map((W)=>ws6(W)).join(", "),color:"cyan"}}let Q=ws6(Y);return Q==="not set"?{text:Q,dimColor:!0}:{text:Q,color:"cyan"}}if(Y===void 0||Y===null||Y==="")return{text:"not set",dimColor:!0};let G=String(Y);if(G==="true")return{text:G,color:"green"};if(G==="false")return{text:G,color:"yellow"};try{return new URL(G),{text:G,color:"cyan"}}catch{return{text:G}}}function mi5(X){return[{title:"Core",entries:[{key:"NODE_ENV",value:X.nodeEnv},{key:"PORT",value:X.port},{key:"BASE_URL",value:X.baseUrl??`http://localhost:${X.port}`},{key:"DATA_DIR",value:X.dataDir}]},{title:"Database",entries:[{key:"DATABASE_URL",value:X.databaseUrl},{key:"DATABASE_PG_SSL",value:X.databasePgSsl}]},{title:"Auth & Secrets",entries:[{key:"BETTER_AUTH_SECRET",value:X.betterAuthSecret},{key:"ENCRYPTION_KEY",value:X.encryptionKey},{key:"MESH_JWT_SECRET",value:X.meshJwtSecret},{key:"STUDIO_PROVISION_SECRET_KEY",value:X.studioProvisionSecretKey},{key:"DISABLE_RATE_LIMIT",value:X.disableRateLimit}]},{title:"Auth Providers",entries:[{key:"AUTH_EMAIL_PASSWORD_ENABLED",value:process.env.AUTH_EMAIL_PASSWORD_ENABLED??"true"},{key:"AUTH_GOOGLE_CLIENT_ID",value:!!process.env.AUTH_GOOGLE_CLIENT_ID},{key:"AUTH_GITHUB_CLIENT_ID",value:!!process.env.AUTH_GITHUB_CLIENT_ID},{key:"AUTH_RESEND_API_KEY",value:!!process.env.AUTH_RESEND_API_KEY},{key:"AUTH_SENDGRID_API_KEY",value:!!process.env.AUTH_SENDGRID_API_KEY},{key:"AUTH_SSO_MS_CLIENT_ID",value:!!process.env.AUTH_SSO_MS_CLIENT_ID},{key:"AUTH_MAGIC_LINK_ENABLED",value:process.env.AUTH_MAGIC_LINK_ENABLED==="true"},{key:"AUTH_EMAIL_OTP_ENABLED",value:process.env.AUTH_EMAIL_OTP_ENABLED==="true"}]},{title:"Observability",entries:[{key:"CLICKHOUSE_URL",value:X.clickhouseUrl},{key:"OTEL_SERVICE_NAME",value:X.otelServiceName}]},{title:"Event Bus & Networking",entries:[{key:"NATS_URL",value:X.natsUrls}]},{title:"Config Files",entries:[{key:"CONFIG_PATH",value:X.configPath}]},{title:"AI Gateway",entries:[{key:"DECO_AI_GATEWAY_ENABLED",value:X.aiGatewayEnabled},{key:"DECO_AI_GATEWAY_URL",value:X.aiGatewayUrl}]}]}function Es6({env:X}){let Y=mi5(X);return Ls6(CB0,{flexDirection:"column",children:Y.map((G)=>LA1(CB0,{flexDirection:"column",marginTop:1,children:[LA1(vB0,{dimColor:!0,children:[" ","\u2500\u2500 ",G.title," ","\u2500".repeat(Math.max(0,38-G.title.length))]}),G.entries.map(({key:Q,value:J})=>{let W=li5(Q,J);return LA1(CB0,{children:[LA1(vB0,{dimColor:!0,children:[" ",Q.padEnd(36)]}),Ls6(vB0,{color:W.color,dimColor:W.dimColor,children:W.text})]},Q)})]},G.title))})}var gi5,ui5;var Ps6=D(()=>{gi5=new Set(["BETTER_AUTH_SECRET","ENCRYPTION_KEY","MESH_JWT_SECRET","STUDIO_PROVISION_SECRET_KEY"]),ui5=new Set(["DATABASE_URL","CLICKHOUSE_URL","NATS_URL"])});var _B0;var qs6=D(()=>{_B0={name:"decocms",version:"2.297.5",description:"Deco CMS \u2014 Self-hostable MCP Gateway for managing AI connections and tools",author:"Deco team",repository:{type:"git",url:"git+https://github.com/decocms/studio.git",directory:"apps/mesh"},bugs:{url:"https://github.com/decocms/studio/issues"},type:"module",bin:{deco:"./dist/server/cli.js"},files:["dist/**/*"],scripts:{dev:'bun run migrate && concurrently "bun run dev:client" "bun run dev:server"',"dev:servers":'concurrently "bun run dev:client" "bun run dev:server"',"dev:client":"bun --bun vite dev","dev:server":"bun run --cwd=../../packages/sandbox build && NODE_ENV=development bun --env-file=.env --hot run src/index.ts","build:client":"bun --bun vite build","build:server":"bun run scripts/bundle-server-script.ts --dist ./dist/server","db:migrate":"bun run ./dist/server/migrate.js",check:"tsc --noEmit",start:"bun run ./dist/server/server.js",migrate:"bun run src/database/migrate.ts",test:"bun test","test:e2e":"playwright test","test:e2e:ui":"playwright test --ui","better-auth:migrate":"bunx --bun @better-auth/cli migrate -y --config src/auth/index.ts",prepublishOnly:"bun run build:client && bun run build:server"},optionalDependencies:{"@duckdb/node-api":"^1.5.0-r.1","@freestyle-sh/with-bun":"^0.2.12","@freestyle-sh/with-deno":"^0.0.4","@freestyle-sh/with-nodejs":"^0.2.9","freestyle-sandboxes":"^0.1.46"},dependencies:{"@ai-sdk/anthropic":"^3.0.58","@ai-sdk/google":"^3.0.60","@ai-sdk/openai":"^3.0.50","@anthropic-ai/sdk":"^0.79.0","@aws-sdk/client-s3":"^3.1013.0","@aws-sdk/s3-request-presigner":"^3.1013.0","@clickhouse/client":"^1.8.1","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@inkjs/ui":"^2.0.0","@modelcontextprotocol/ext-apps":"^1.2.2","@openrouter/ai-sdk-provider":"^2.2.5","@opentelemetry/core":"^2.6.0","@tanstack/react-virtual":"^3.13.21","@xterm/addon-fit":"^0.11.0","@xterm/xterm":"^6.0.0","ai-sdk-provider-claude-code":"^3.4.4","ai-sdk-provider-codex-cli":"^1.1.0","embedded-postgres":"^18.3.0-beta.16",ink:"^6.8.0",kysely:"^0.28.12",nats:"^2.29.3","node-pty":"^1.0.0","posthog-js":"^1.371.1","posthog-node":"^5.0.0",react:"^19.2.0","react-dom":"^19.2.0"},devDependencies:{"@ai-sdk/provider":"^3.0.8","@ai-sdk/react":"^3.0.118","@anthropic-ai/claude-agent-sdk":"^0.2.80","@better-auth/sso":"1.4.1","@daveyplate/better-auth-ui":"^3.2.7","@deco/ui":"workspace:*","@decocms/better-auth":"1.5.17","@decocms/bindings":"workspace:*","@decocms/mcp-utils":"workspace:*","@decocms/mesh-sdk":"workspace:*","@decocms/runtime":"workspace:*","@decocms/vite-plugin":"workspace:*","@electric-sql/pglite":"^0.3.15","@floating-ui/react":"^0.27.16","@hookform/resolvers":"^5.2.2","@jitl/quickjs-wasmfile-release-sync":"0.31.0","@modelcontextprotocol/sdk":"1.27.1","@monaco-editor/react":"^4.7.0","@opentelemetry/api":"^1.9.0","@opentelemetry/api-logs":"^0.211.0","@opentelemetry/exporter-logs-otlp-proto":"^0.211.0","@opentelemetry/exporter-prometheus":"^0.208.0","@opentelemetry/exporter-trace-otlp-proto":"^0.207.0","@opentelemetry/instrumentation-runtime-node":"^0.24.0","@opentelemetry/sdk-logs":"^0.211.0","@opentelemetry/sdk-metrics":"^2.2.0","@opentelemetry/sdk-node":"^0.207.0","@opentelemetry/sdk-trace-base":"^2.5.0","@playwright/test":"^1.58.2","@radix-ui/react-avatar":"^1.1.10","@radix-ui/react-checkbox":"^1.3.3","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-dropdown-menu":"^2.1.16","@radix-ui/react-label":"^2.1.7","@radix-ui/react-select":"^2.2.6","@radix-ui/react-separator":"^1.1.7","@radix-ui/react-slot":"^1.2.3","@radix-ui/react-tabs":"^1.1.13","@rjsf/core":"^6.1.2","@rjsf/shadcn":"^6.1.2","@rjsf/utils":"^6.1.2","@rjsf/validator-ajv8":"^6.1.2","@tailwindcss/vite":"^4.1.17","@tanstack/react-query":"5.90.11","@tanstack/react-router":"^1.139.7","@tiptap/core":"3.20.2","@tiptap/extension-mention":"3.20.2","@tiptap/extension-placeholder":"3.20.2","@tiptap/pm":"3.20.2","@tiptap/react":"3.20.2","@tiptap/starter-kit":"3.20.2","@tiptap/suggestion":"3.20.2","@types/bun":"^1.3.1","@types/pg":"^8.15.6","@types/react-syntax-highlighter":"^15.5.13","@untitledui/icons":"^0.0.19","@vercel/nft":"^1.1.1","@vitejs/plugin-react":"^5.1.0",ai:"^6.0.116","babel-plugin-react-compiler":"^1.0.0","better-auth":"1.4.5","class-variance-authority":"^0.7.1",clsx:"^2.1.1",concurrently:"^9.2.1",croner:"^9.1.0","date-fns":"^4.1.0",degit:"^2.8.4",hono:"^4.10.7","input-otp":"^1.4.2",jose:"^6.0.11","kysely-pglite":"^0.6.1","lucide-react":"^0.468.0",marked:"^15.0.6","@decocms/sandbox":"workspace:*","mesh-plugin-workflows":"workspace:*",nanoid:"^5.1.6",pg:"^8.16.3",prettier:"^3.4.2","react-hook-form":"^7.66.0","react-markdown":"^10.1.0","react-resizable-panels":"^2.1.7","react-syntax-highlighter":"^15.6.1",recharts:"^3.6.0","rehype-raw":"^7.0.0","remark-gfm":"^4.0.0","sass-embedded":"^1.97.2",sonner:"^2.0.7","tailwind-merge":"^3.3.1",tailwindcss:"^4.1.17",typescript:"^5.9.3",vite:"^7.2.1","vite-tsconfig-paths":"^5.1.4",zod:"^4.0.0",zustand:"^5.0.9"},homepage:"https://github.com/decocms/studio",keywords:["mcp","model-context-protocol","ai","gateway","self-hosted","mesh","tools"],license:"MIT",publishConfig:{access:"public"}}});import{Box as PU,Text as MX}from"ink";import{Spinner as ci5}from"@inkjs/ui";import{useSyncExternalStore as As6}from"react";import{jsx as qY,jsxs as oQ}from"react/jsx-runtime";function ti5(X,Y){if(!X||!ai5.has(X))return X;let G=fB0[Y]??fB0[fB0.length-1];return X==="#875f00"?G[0]:G[1]}function Ts6({status:X}){if(X==="pending")return qY(ci5,{label:""});return qY(MX,{color:"green",children:"\u2713"})}function Is6({services:X,migrationsStatus:Y,home:G,serverUrl:Q,vibe:J}){let W=As6(iu0,cu0),Z=As6(ou0,ru0);return oQ(PU,{flexDirection:"column",paddingBottom:1,children:[J?oQ(PU,{flexDirection:"column",children:[W.map(($,K)=>{let H=Z[K],U=$.reduce((N,z)=>N+z.text.length,0),B=Math.max(0,ni5-U);return oQ(PU,{flexDirection:"row",children:[$.map((N,z)=>{let O=ti5(N.color,K);return O?qY(MX,{color:O,children:N.text},z):qY(MX,{children:N.text},z)}),qY(MX,{children:" ".repeat(B+2)}),H?.map((N,z)=>N.color?qY(MX,{color:N.color,children:N.char},z):qY(MX,{children:N.char},z))]},K)}),oQ(MX,{dimColor:!0,children:[" v",_B0.version]})]}):oQ(PU,{flexDirection:"column",marginTop:1,children:[ii5.map(($,K)=>qY(MX,{color:pi5[K],children:$},K)),oQ(MX,{dimColor:!0,children:[" v",_B0.version]})]}),qY(PU,{marginBottom:1,children:qY(MX,{dimColor:!0,children:"\u2500".repeat(80)})}),qY(PU,{children:oQ(MX,{dimColor:!0,children:["Home: ",G]})}),oQ(PU,{gap:2,children:[X.map(($)=>oQ(PU,{gap:1,children:[oQ(MX,{children:[$.name," :",$.port||"...."]}),qY(Ts6,{status:$.status})]},$.name)),oQ(PU,{gap:1,children:[qY(MX,{children:"Migrations"}),qY(Ts6,{status:Y})]})]}),qY(PU,{children:Q?oQ(MX,{children:["Open in browser: ",qY(MX,{color:"cyan",children:Q})]}):qY(MX,{dimColor:!0,children:"Starting..."})}),oQ(PU,{gap:2,children:[oQ(MX,{dimColor:!0,children:[qY(MX,{bold:!0,dimColor:!0,children:"K"})," ","toggle config"]}),oQ(MX,{dimColor:!0,children:[qY(MX,{bold:!0,dimColor:!0,children:"L"})," ","toggle log flow"]}),oQ(MX,{dimColor:!0,children:[qY(MX,{bold:!0,dimColor:!0,children:"V"})," ","toggle vibe ",J?"\u266A Nihilore \xB7 CC BY 4.0":""]}),J&&oQ(MX,{dimColor:!0,children:[qY(MX,{bold:!0,dimColor:!0,children:"N"})," ","skip song"]})]})]})}var ii5,pi5,fB0,ni5=30,ai5;var Vs6=D(()=>{qs6();An1();Rn1();ii5=[" \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 ","\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588 \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 "," \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588 \u2591 \u2588\u2588\u2588 \u2591\u2591\u2591 \u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588"," \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588"," \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588"," \u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591 \u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588 "," \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591 ","\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591 "],pi5=["#00ff64","#00ee5e","#00dc56","#00c84e","#00b444","#00a03c","#008832","#006e28"],fB0=[["#00ff64","#00cc50"],["#00f060","#00c04c"],["#00e05c","#00b448"],["#00d058","#00a844"],["#00c054","#009c40"],["#00b050","#00903c"],["#00a04c","#008438"],["#009048","#007834"],["#008044","#006c30"],["#007040","#00602c"],["#00603c","#005428"]],ai5=new Set(["#875f00","#5f3800"])});import{useSyncExternalStore as ri5}from"react";function oi5(){let X=process.stdout.rows||24,Y=process.stdout.columns||80;if(X!==EA1.rows||Y!==EA1.columns)EA1={rows:X,columns:Y};return EA1}function si5(X){return process.stdout.on("resize",X),()=>{process.stdout.off("resize",X)}}function js6(){return ri5(si5,oi5)}var EA1;var Ms6=D(()=>{EA1={rows:process.stdout.rows||24,columns:process.stdout.columns||80}});import{Box as ei5,Text as PX1}from"ink";import{useSyncExternalStore as Xp5}from"react";import{jsx as bB0,jsxs as yB0}from"react/jsx-runtime";function Yp5(X){if(X>=500)return"red";if(X>=400)return"yellow";if(X>=300)return"cyan";return"green"}function Rs6({logs:X,headerHeight:Y}){let{rows:G}=js6(),{logFlow:Q}=Xp5(DX1,OX1),J=Math.max(1,G-Y-1),W=Q?X:X.slice(-J);return bB0(ei5,{flexDirection:"column",children:W.map((Z,$)=>{if(Z.rawLine)return bB0(PX1,{dimColor:!0,children:Z.rawLine},$);let K=Z.duration<1000?`${Z.duration}ms`:`${(Z.duration/1000).toFixed(1)}s`;return yB0(PX1,{children:[yB0(PX1,{dimColor:!0,children:[Z.method.padEnd(6)," ",Z.path.padEnd(30)," "]}),bB0(PX1,{color:Yp5(Z.status),children:Z.status}),yB0(PX1,{dimColor:!0,children:[" ",K.padStart(8)]})]},$)})})}var Ss6=D(()=>{Qz();Ms6()});var xB0={};j0(xB0,{App:()=>Kp5});import{Box as Gp5,Text as Qp5,useInput as Jp5}from"ink";import{useSyncExternalStore as Zp5}from"react";import{jsx as PA1,jsxs as Hp5}from"react/jsx-runtime";function Kp5({home:X}){let Y=Zp5(DX1,OX1);return Jp5((G)=>{if(G==="k"||G==="K")VB0();if(G==="l"||G==="L")jB0();if((G==="v"||G==="V")&&Y.dataDir)vn1(Y.dataDir),MB0();if((G==="n"||G==="N")&&Y.vibe)Cn1()}),Hp5(Gp5,{flexDirection:"column",children:[PA1(Is6,{services:Y.services,migrationsStatus:Y.migrationsStatus,home:X,serverUrl:Y.serverUrl,vibe:Y.vibe}),Y.viewMode==="config"?Y.env?PA1(Es6,{env:Y.env}):PA1(Qp5,{dimColor:!0,children:"Loading configuration..."}):PA1(Rs6,{logs:Y.logs,headerHeight:Y.vibe?$p5:Wp5})]})}var Wp5=15,$p5=19;var hB0=D(()=>{Ps6();Vs6();Ss6();Qz();Vd()});function ks6(X,Y={}){return{PORT:String(X.port),NODE_ENV:X.nodeEnv,BASE_URL:X.baseUrl,DATA_DIR:X.dataDir,DECOCMS_HOME:X.dataDir,DATABASE_URL:X.databaseUrl,DATABASE_PG_SSL:String(X.databasePgSsl),DATABASE_POOL_MAX:String(X.databasePoolMax),NATS_URL:X.natsUrls.join(","),BETTER_AUTH_SECRET:X.betterAuthSecret,ENCRYPTION_KEY:X.encryptionKey,MESH_JWT_SECRET:X.meshJwtSecret,DECOCMS_LOCAL_MODE:String(X.localMode),DISABLE_RATE_LIMIT:String(X.disableRateLimit),STUDIO_PROVISION_SECRET_KEY:X.studioProvisionSecretKey,CONFIG_PATH:X.configPath,...Object.fromEntries(Object.entries(process.env).filter(([G])=>G.startsWith("AUTH_"))),DECO_AI_GATEWAY_ENABLED:String(X.aiGatewayEnabled),DECO_AI_GATEWAY_URL:X.aiGatewayUrl,ENABLE_DECO_IMPORT:String(X.enableDecoImport),S3_ENDPOINT:X.s3Endpoint,S3_BUCKET:X.s3Bucket,S3_REGION:X.s3Region,S3_ACCESS_KEY_ID:X.s3AccessKeyId,S3_SECRET_ACCESS_KEY:X.s3SecretAccessKey,S3_FORCE_PATH_STYLE:String(X.s3ForcePathStyle),OTEL_SERVICE_NAME:X.otelServiceName,CLICKHOUSE_URL:X.clickhouseUrl,DECO_SUPABASE_URL:X.decoSupabaseUrl,DECO_SUPABASE_SERVICE_KEY:X.decoSupabaseServiceKey,FIRECRAWL_API_KEY:X.firecrawlApiKey,STUDIO_SANDBOX_RUNNER:process.env.STUDIO_SANDBOX_RUNNER,STUDIO_SANDBOX_TEMPLATE_NAME:process.env.STUDIO_SANDBOX_TEMPLATE_NAME,STUDIO_ENV:process.env.STUDIO_ENV,STUDIO_SANDBOX_PREVIEW_URL_PATTERN:process.env.STUDIO_SANDBOX_PREVIEW_URL_PATTERN,STUDIO_SANDBOX_PREVIEW_GATEWAY_NAME:process.env.STUDIO_SANDBOX_PREVIEW_GATEWAY_NAME,STUDIO_SANDBOX_PREVIEW_GATEWAY_NAMESPACE:process.env.STUDIO_SANDBOX_PREVIEW_GATEWAY_NAMESPACE,KUBERNETES_SERVICE_HOST:process.env.KUBERNETES_SERVICE_HOST,KUBERNETES_SERVICE_PORT:process.env.KUBERNETES_SERVICE_PORT,FREESTYLE_API_KEY:process.env.FREESTYLE_API_KEY,BROWSERLESS_TOKEN:process.env.BROWSERLESS_TOKEN,NODE_EXTRA_CA_CERTS:process.env.NODE_EXTRA_CA_CERTS,DECO_CLI:"1",DECO_NO_TUI:"true",...Y}}var Rj=k((Op5)=>{Op5.HttpAuthLocation=void 0;(function(X){X.HEADER="header",X.QUERY="query"})(Op5.HttpAuthLocation||(Op5.HttpAuthLocation={}));Op5.HttpApiKeyAuthLocation=void 0;(function(X){X.HEADER="header",X.QUERY="query"})(Op5.HttpApiKeyAuthLocation||(Op5.HttpApiKeyAuthLocation={}));Op5.EndpointURLScheme=void 0;(function(X){X.HTTP="http",X.HTTPS="https"})(Op5.EndpointURLScheme||(Op5.EndpointURLScheme={}));Op5.AlgorithmId=void 0;(function(X){X.MD5="md5",X.CRC32="crc32",X.CRC32C="crc32c",X.SHA1="sha1",X.SHA256="sha256"})(Op5.AlgorithmId||(Op5.AlgorithmId={}));var Fp5=(X)=>{let Y=[];if(X.sha256!==void 0)Y.push({algorithmId:()=>Op5.AlgorithmId.SHA256,checksumConstructor:()=>X.sha256});if(X.md5!=null)Y.push({algorithmId:()=>Op5.AlgorithmId.MD5,checksumConstructor:()=>X.md5});return{addChecksumAlgorithm(G){Y.push(G)},checksumAlgorithms(){return Y}}},Up5=(X)=>{let Y={};return X.checksumAlgorithms().forEach((G)=>{Y[G.algorithmId()]=G.checksumConstructor()}),Y},Bp5=(X)=>{return Fp5(X)},Np5=(X)=>{return Up5(X)};Op5.FieldPosition=void 0;(function(X){X[X.HEADER=0]="HEADER",X[X.TRAILER=1]="TRAILER"})(Op5.FieldPosition||(Op5.FieldPosition={}));var zp5="__smithy_context";Op5.IniSectionType=void 0;(function(X){X.PROFILE="profile",X.SSO_SESSION="sso-session",X.SERVICES="services"})(Op5.IniSectionType||(Op5.IniSectionType={}));Op5.RequestHandlerProtocol=void 0;(function(X){X.HTTP_0_9="http/0.9",X.HTTP_1_0="http/1.0",X.TDS_8_0="tds/8.0"})(Op5.RequestHandlerProtocol||(Op5.RequestHandlerProtocol={}));Op5.SMITHY_CONTEXT_KEY=zp5;Op5.getDefaultClientConfiguration=Bp5;Op5.resolveDefaultRuntimeConfig=Np5});var u7=k((Ip5)=>{var Ep5=Rj(),Pp5=(X)=>{return{setHttpHandler(Y){X.httpHandler=Y},httpHandler(){return X.httpHandler},updateHttpClientConfig(Y,G){X.httpHandler?.updateHttpClientConfig(Y,G)},httpHandlerConfigs(){return X.httpHandler.httpHandlerConfigs()}}},qp5=(X)=>{return{httpHandler:X.httpHandler()}};class Cs6{name;kind;values;constructor({name:X,kind:Y=Ep5.FieldPosition.HEADER,values:G=[]}){this.name=X,this.kind=Y,this.values=G}add(X){this.values.push(X)}set(X){this.values=X}remove(X){this.values=this.values.filter((Y)=>Y!==X)}toString(){return this.values.map((X)=>X.includes(",")||X.includes(" ")?`"${X}"`:X).join(", ")}get(){return this.values}}class vs6{entries={};encoding;constructor({fields:X=[],encoding:Y="utf-8"}){X.forEach(this.setField.bind(this)),this.encoding=Y}setField(X){this.entries[X.name.toLowerCase()]=X}getField(X){return this.entries[X.toLowerCase()]}removeField(X){delete this.entries[X.toLowerCase()]}getByType(X){return Object.values(this.entries).filter((Y)=>Y.kind===X)}}class qA1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(X){this.method=X.method||"GET",this.hostname=X.hostname||"localhost",this.port=X.port,this.query=X.query||{},this.headers=X.headers||{},this.body=X.body,this.protocol=X.protocol?X.protocol.slice(-1)!==":"?`${X.protocol}:`:X.protocol:"https:",this.path=X.path?X.path.charAt(0)!=="/"?`/${X.path}`:X.path:"/",this.username=X.username,this.password=X.password,this.fragment=X.fragment}static clone(X){let Y=new qA1({...X,headers:{...X.headers}});if(Y.query)Y.query=Ap5(Y.query);return Y}static isInstance(X){if(!X)return!1;let Y=X;return"method"in Y&&"protocol"in Y&&"hostname"in Y&&"path"in Y&&typeof Y.query==="object"&&typeof Y.headers==="object"}clone(){return qA1.clone(this)}}function Ap5(X){return Object.keys(X).reduce((Y,G)=>{let Q=X[G];return{...Y,[G]:Array.isArray(Q)?[...Q]:Q}},{})}class _s6{statusCode;reason;headers;body;constructor(X){this.statusCode=X.statusCode,this.reason=X.reason,this.headers=X.headers||{},this.body=X.body}static isInstance(X){if(!X)return!1;let Y=X;return typeof Y.statusCode==="number"&&typeof Y.headers==="object"}}function Tp5(X){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(X)}Ip5.Field=Cs6;Ip5.Fields=vs6;Ip5.HttpRequest=qA1;Ip5.HttpResponse=_s6;Ip5.getHttpHandlerExtensionConfiguration=Pp5;Ip5.isValidHostname=Tp5;Ip5.resolveHttpHandlerRuntimeConfig=qp5});function vp5(X){return(Y)=>async(G)=>{let{request:Q}=G;if(X.expectContinueHeader!==!1&&fs6.HttpRequest.isInstance(Q)&&Q.body&&X.runtime==="node"&&X.requestHandler?.constructor?.name!=="FetchHttpHandler"){let J=!0;if(typeof X.expectContinueHeader==="number")try{J=(Number(Q.headers?.["content-length"])??X.bodyLengthChecker?.(Q.body)??1/0)>=X.expectContinueHeader}catch(W){}else J=!!X.expectContinueHeader;if(J)Q.headers.Expect="100-continue"}return Y({...G,request:Q})}}var fs6,_p5,bs6=(X)=>({applyToStack:(Y)=>{Y.add(vp5(X),_p5)}});var ys6=D(()=>{fs6=Y1(u7(),1);_p5={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0}});var OH,AA1,Sj,TA1,E9,xs6,AX1;var DH=D(()=>{OH={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},AA1=OH.WHEN_SUPPORTED,Sj={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},TA1=OH.WHEN_SUPPORTED;(function(X){X.MD5="MD5",X.CRC32="CRC32",X.CRC32C="CRC32C",X.CRC64NVME="CRC64NVME",X.SHA1="SHA1",X.SHA256="SHA256"})(E9||(E9={}));(function(X){X.HEADER="header",X.TRAILER="trailer"})(xs6||(xs6={}));AX1=E9.CRC32});var Vq,na=(X,Y,G,Q)=>{if(!(Y in X))return;let J=X[Y].toUpperCase();if(!Object.values(G).includes(J))throw TypeError(`Cannot load ${Q} '${Y}'. Expected one of ${Object.values(G)}, got '${X[Y]}'.`);return J};var iB0=D(()=>{(function(X){X.ENV="env",X.CONFIG="shared config entry"})(Vq||(Vq={}))});var fp5="AWS_REQUEST_CHECKSUM_CALCULATION",bp5="request_checksum_calculation",hs6;var gs6=D(()=>{DH();iB0();hs6={environmentVariableSelector:(X)=>na(X,fp5,OH,Vq.ENV),configFileSelector:(X)=>na(X,bp5,OH,Vq.CONFIG),default:AA1}});var yp5="AWS_RESPONSE_CHECKSUM_VALIDATION",xp5="response_checksum_validation",us6;var ls6=D(()=>{DH();iB0();us6={environmentVariableSelector:(X)=>na(X,yp5,Sj,Vq.ENV),configFileSelector:(X)=>na(X,xp5,Sj,Vq.CONFIG),default:TA1}});var nB0=k((np5)=>{var hp5=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],gp5=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],up5=["TimeoutError","RequestTimeout","RequestTimeoutException"],lp5=[500,502,503,504],mp5=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],dp5=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],ms6=(X)=>X?.$retryable!==void 0,cp5=(X)=>hp5.includes(X.name),ds6=(X)=>X.$metadata?.clockSkewCorrected,cs6=(X)=>{let Y=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(X&&X instanceof TypeError))return!1;return Y.has(X.message)},ip5=(X)=>X.$metadata?.httpStatusCode===429||gp5.includes(X.name)||X.$retryable?.throttling==!0,pB0=(X,Y=0)=>ms6(X)||ds6(X)||X.name==="InvalidSignatureException"&&X.message?.includes("Signature expired")||up5.includes(X.name)||mp5.includes(X?.code||"")||dp5.includes(X?.code||"")||lp5.includes(X.$metadata?.httpStatusCode||0)||cs6(X)||is6(X)||X.cause!==void 0&&Y<=10&&pB0(X.cause,Y+1),pp5=(X)=>{if(X.$metadata?.httpStatusCode!==void 0){let Y=X.$metadata.httpStatusCode;if(500<=Y&&Y<=599&&!pB0(X))return!0;return!1}return!1};function is6(X){return X.code==="ERR_HTTP2_STREAM_ERROR"&&X.message.includes("NGHTTP2_REFUSED_STREAM")}np5.isBrowserNetworkError=cs6;np5.isClockSkewCorrectedError=ds6;np5.isClockSkewError=cp5;np5.isNodeJsHttp2TransientError=is6;np5.isRetryableByTrait=ms6;np5.isServerError=pp5;np5.isThrottlingError=ip5;np5.isTransientError=pB0});var Nw=k((Fn5)=>{var Gn5=nB0();Fn5.RETRY_MODES=void 0;(function(X){X.STANDARD="standard",X.ADAPTIVE="adaptive"})(Fn5.RETRY_MODES||(Fn5.RETRY_MODES={}));var VA1=3,Qn5=Fn5.RETRY_MODES.STANDARD;class jA1{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(X){this.beta=X?.beta??0.7,this.minCapacity=X?.minCapacity??1,this.minFillRate=X?.minFillRate??0.5,this.scaleConstant=X?.scaleConstant??0.4,this.smooth=X?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(X){let Y;this.updateMeasuredRate();let G=X;if(G?.errorType==="THROTTLING"||Gn5.isThrottlingError(G?.error??X)){let W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),Y=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),Y=this.cubicSuccess(this.getCurrentTimeInSeconds());let J=Math.min(Y,2*this.measuredTxRate);this.updateTokenBucketRate(J)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(X){if(!this.enabled)return;if(this.refillTokenBucket(),X>this.availableTokens){let Y=(X-this.availableTokens)/this.fillRate*1000;await new Promise((G)=>jA1.setTimeoutFn(G,Y))}this.availableTokens=this.availableTokens-X}refillTokenBucket(){let X=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=X;return}let Y=(X-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+Y),this.lastTimestamp=X}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(X){return this.getPrecise(X*this.beta)}cubicSuccess(X){return this.getPrecise(this.scaleConstant*Math.pow(X-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(X){this.refillTokenBucket(),this.fillRate=Math.max(X,this.minFillRate),this.maxCapacity=Math.max(X,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let X=this.getCurrentTimeInSeconds(),Y=Math.floor(X*2)/2;if(this.requestCount++,Y>this.lastTxRateBucket){let G=this.requestCount/(Y-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=Y}}getPrecise(X){return parseFloat(X.toFixed(8))}}var Jn5=100,rB0=20000,Zn5=500,aB0=500,Wn5=5,$n5=10,ps6=1,Kn5="amz-sdk-invocation-id",Hn5="amz-sdk-request";class sQ{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return sQ.v2026?50:100}static throttlingDelay(){return sQ.v2026?1000:500}static cost(){return sQ.v2026?14:5}static throttlingCost(){return sQ.v2026?5:10}static modifiedCostType(){return sQ.v2026?"THROTTLING":"TRANSIENT"}}class ns6{x=sQ.delay();computeNextBackoffDelay(X){let Y=Math.random(),G=2,Q=Y*Math.min(this.x*2**X,rB0);return Math.floor(Q)}setDelayBase(X){this.x=X}}class tB0{delay;count;cost;longPoll;constructor(X,Y,G,Q){this.delay=X,this.count=Y,this.cost=G,this.longPoll=Q}getRetryCount(){return this.count}getRetryDelay(){return Math.min(rB0,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var IA1={incompatible:1,attempts:2,capacity:3};class TX1{mode=Fn5.RETRY_MODES.STANDARD;capacity=aB0;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(X){if(typeof X==="number")this.maxAttemptsProvider=async()=>X;else if(typeof X==="function")this.maxAttemptsProvider=X;else if(X&&typeof X==="object")this.maxAttemptsProvider=async()=>X.maxAttempts,this.baseDelay=X.baseDelay,this.retryBackoffStrategy=X.backoff;this.maxAttemptsProvider??=async()=>VA1,this.baseDelay??=sQ.delay(),this.retryBackoffStrategy??=new ns6}async acquireInitialRetryToken(X){return new tB0(sQ.delay(),0,void 0,sQ.v2026&&X.includes(":longpoll"))}async refreshRetryTokenForRetry(X,Y){let G=await this.getMaxAttempts(),Q=this.retryCode(X,Y,G),J=Q===0,W=X.isLongPoll?.();if(J||W){let Z=Y.errorType;this.retryBackoffStrategy.setDelayBase(Z==="THROTTLING"?sQ.throttlingDelay():this.baseDelay);let $=this.retryBackoffStrategy.computeNextBackoffDelay(X.getRetryCount()),K=$;if(Y.retryAfterHint instanceof Date)K=Math.max($,Math.min(Y.retryAfterHint.getTime()-Date.now(),$+5000));if(!J)throw Object.assign(Error("No retry token available"),{$backoff:sQ.v2026&&Q===IA1.capacity&&W?K:0});else{let H=this.getCapacityCost(Z);return this.capacity-=H,new tB0(K,X.getRetryCount()+1,H,X.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(X){this.capacity=Math.min(aB0,this.capacity+(X.getRetryCost()??ps6))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(X){return console.warn(`Max attempts provider could not resolve. Using default of ${VA1}`),VA1}}retryCode(X,Y,G){let Q=X.getRetryCount()+1,J=this.isRetryableError(Y.errorType)?0:IA1.incompatible,W=Q<G?0:IA1.attempts,Z=this.capacity>=this.getCapacityCost(Y.errorType)?0:IA1.capacity;return J||W||Z}getCapacityCost(X){return X===sQ.modifiedCostType()?sQ.throttlingCost():sQ.cost()}isRetryableError(X){return X==="THROTTLING"||X==="TRANSIENT"}}class as6{mode=Fn5.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(X,Y){let{rateLimiter:G}=Y??{};this.rateLimiter=G??new jA1,this.standardRetryStrategy=Y?new TX1({maxAttempts:typeof X==="number"?X:3,...Y}):new TX1(X)}async acquireInitialRetryToken(X){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(X)}async refreshRetryTokenForRetry(X,Y){return this.rateLimiter.updateClientSendingRate(Y),this.standardRetryStrategy.refreshRetryTokenForRetry(X,Y)}recordSuccess(X){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(X)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}class ts6 extends TX1{computeNextBackoffDelay;constructor(X,Y=sQ.delay()){super(typeof X==="function"?X:async()=>X);if(typeof Y==="number")this.computeNextBackoffDelay=()=>Y;else this.computeNextBackoffDelay=Y}async refreshRetryTokenForRetry(X,Y){let G=await super.refreshRetryTokenForRetry(X,Y);return G.getRetryDelay=()=>this.computeNextBackoffDelay(G.getRetryCount()),G}}Fn5.AdaptiveRetryStrategy=as6;Fn5.ConfiguredRetryStrategy=ts6;Fn5.DEFAULT_MAX_ATTEMPTS=VA1;Fn5.DEFAULT_RETRY_DELAY_BASE=Jn5;Fn5.DEFAULT_RETRY_MODE=Qn5;Fn5.DefaultRateLimiter=jA1;Fn5.INITIAL_RETRY_TOKENS=aB0;Fn5.INVOCATION_ID_HEADER=Kn5;Fn5.MAXIMUM_RETRY_DELAY=rB0;Fn5.NO_RETRY_INCREMENT=ps6;Fn5.REQUEST_HEADER=Hn5;Fn5.RETRY_COST=Wn5;Fn5.Retry=sQ;Fn5.StandardRetryStrategy=TX1;Fn5.THROTTLING_RETRY_DELAY_BASE=Zn5;Fn5.TIMEOUT_RETRY_COST=$n5});var WX=k((bn5)=>{var Mn5=Nw(),oB0={warningEmitted:!1},Rn5=(X)=>{if(X&&!oB0.warningEmitted&&parseInt(X.substring(1,X.indexOf(".")))<20)oB0.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
1626
+ `);Q=W.pop()??"";for(let Z of W){let $=Os6(Z).replace(/^\[\d+\]\s*/,"").trim();if(!$)continue;Gz({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:$})}}(async()=>{for(;;){let{done:W,value:Z}=await Y.read();if(W)break;Q+=G.decode(Z,{stream:!0}),J()}if(Q.trim()){let W=Os6(Q).replace(/^\[\d+\]\s*/,"").trim();if(W)Gz({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:W})}})()}async function hi5(X){let{vitePort:Y,baseUrl:G,noTui:Q}=X,J=await wA1(Number(X.port)),{settings:W,services:Z,managedServiceNames:$}=await NA1({port:String(J),home:X.home,baseUrl:X.baseUrl,localMode:X.localMode,skipMigrations:X.skipMigrations,noTui:X.noTui,vitePort:X.vitePort});for(let z of Z)pa({name:z.name,status:"ready",port:z.port});EX1(W),wX1();let K=xi5(import.meta.dir,"..","..","..","..",".."),H=Q===!0,U=Bun.spawn(["bun","run","--cwd=apps/mesh","dev:servers"],{cwd:K,env:{...process.env,PORT:String(W.port),VITE_PORT:String(Y),DATABASE_URL:W.databaseUrl,NATS_URL:W.natsUrls.join(","),NODE_ENV:W.nodeEnv,DECOCMS_LOCAL_MODE:String(W.localMode),DECOCMS_HOME:W.dataDir,DATA_DIR:W.dataDir,DECO_CLI:"1",...W.baseUrl?{BASE_URL:W.baseUrl}:{}},stdio:["inherit",H?"inherit":"pipe",H?"inherit":"pipe"]});if(!H)Ds6(U.stdout),Ds6(U.stderr);let B=G||`http://localhost:${W.port}`;LX1(B),pa({name:"Vite",status:"ready",port:Number(Y)});let N=async(z)=>{if(U.kill(z),$.length>0){let{stopServices:O}=await Promise.resolve().then(() => (O$1(),z$1));await O(W.dataDir)}};return process.on("SIGINT",()=>N("SIGINT")),process.on("SIGTERM",()=>N("SIGTERM")),{port:Number(W.port),process:U}}var kB0=D(()=>{TB0();Qz();RB0()});import{Box as CB0,Text as vB0}from"ink";import{jsx as Ls6,jsxs as LA1}from"react/jsx-runtime";function ws6(X){if(!X)return"not set";try{let Y=new URL(X);if(Y.password)Y.password="***";if(Y.username&&Y.username.length>3)Y.username=Y.username.slice(0,3)+"***";return Y.pathname="/",Y.search="",Y.hash="",Y.toString()}catch{if(X.length<=10)return X;return X.slice(0,6)+"***"+X.slice(-4)}}function li5(X,Y){if(gi5.has(X))return Y?{text:"\u25CF\u25CF\u25CF\u25CF\u25CF\u25CF",dimColor:!0}:{text:"not set",dimColor:!0};if(ui5.has(X)){if(Array.isArray(Y)){if(Y.length===0)return{text:"not set",dimColor:!0};return{text:Y.map((W)=>ws6(W)).join(", "),color:"cyan"}}let Q=ws6(Y);return Q==="not set"?{text:Q,dimColor:!0}:{text:Q,color:"cyan"}}if(Y===void 0||Y===null||Y==="")return{text:"not set",dimColor:!0};let G=String(Y);if(G==="true")return{text:G,color:"green"};if(G==="false")return{text:G,color:"yellow"};try{return new URL(G),{text:G,color:"cyan"}}catch{return{text:G}}}function mi5(X){return[{title:"Core",entries:[{key:"NODE_ENV",value:X.nodeEnv},{key:"PORT",value:X.port},{key:"BASE_URL",value:X.baseUrl??`http://localhost:${X.port}`},{key:"DATA_DIR",value:X.dataDir}]},{title:"Database",entries:[{key:"DATABASE_URL",value:X.databaseUrl},{key:"DATABASE_PG_SSL",value:X.databasePgSsl}]},{title:"Auth & Secrets",entries:[{key:"BETTER_AUTH_SECRET",value:X.betterAuthSecret},{key:"ENCRYPTION_KEY",value:X.encryptionKey},{key:"MESH_JWT_SECRET",value:X.meshJwtSecret},{key:"STUDIO_PROVISION_SECRET_KEY",value:X.studioProvisionSecretKey},{key:"DISABLE_RATE_LIMIT",value:X.disableRateLimit}]},{title:"Auth Providers",entries:[{key:"AUTH_EMAIL_PASSWORD_ENABLED",value:process.env.AUTH_EMAIL_PASSWORD_ENABLED??"true"},{key:"AUTH_GOOGLE_CLIENT_ID",value:!!process.env.AUTH_GOOGLE_CLIENT_ID},{key:"AUTH_GITHUB_CLIENT_ID",value:!!process.env.AUTH_GITHUB_CLIENT_ID},{key:"AUTH_RESEND_API_KEY",value:!!process.env.AUTH_RESEND_API_KEY},{key:"AUTH_SENDGRID_API_KEY",value:!!process.env.AUTH_SENDGRID_API_KEY},{key:"AUTH_SSO_MS_CLIENT_ID",value:!!process.env.AUTH_SSO_MS_CLIENT_ID},{key:"AUTH_MAGIC_LINK_ENABLED",value:process.env.AUTH_MAGIC_LINK_ENABLED==="true"},{key:"AUTH_EMAIL_OTP_ENABLED",value:process.env.AUTH_EMAIL_OTP_ENABLED==="true"}]},{title:"Observability",entries:[{key:"CLICKHOUSE_URL",value:X.clickhouseUrl},{key:"OTEL_SERVICE_NAME",value:X.otelServiceName}]},{title:"Event Bus & Networking",entries:[{key:"NATS_URL",value:X.natsUrls}]},{title:"Config Files",entries:[{key:"CONFIG_PATH",value:X.configPath}]},{title:"AI Gateway",entries:[{key:"DECO_AI_GATEWAY_ENABLED",value:X.aiGatewayEnabled},{key:"DECO_AI_GATEWAY_URL",value:X.aiGatewayUrl}]}]}function Es6({env:X}){let Y=mi5(X);return Ls6(CB0,{flexDirection:"column",children:Y.map((G)=>LA1(CB0,{flexDirection:"column",marginTop:1,children:[LA1(vB0,{dimColor:!0,children:[" ","\u2500\u2500 ",G.title," ","\u2500".repeat(Math.max(0,38-G.title.length))]}),G.entries.map(({key:Q,value:J})=>{let W=li5(Q,J);return LA1(CB0,{children:[LA1(vB0,{dimColor:!0,children:[" ",Q.padEnd(36)]}),Ls6(vB0,{color:W.color,dimColor:W.dimColor,children:W.text})]},Q)})]},G.title))})}var gi5,ui5;var Ps6=D(()=>{gi5=new Set(["BETTER_AUTH_SECRET","ENCRYPTION_KEY","MESH_JWT_SECRET","STUDIO_PROVISION_SECRET_KEY"]),ui5=new Set(["DATABASE_URL","CLICKHOUSE_URL","NATS_URL"])});var _B0;var qs6=D(()=>{_B0={name:"decocms",version:"2.298.0",description:"Deco CMS \u2014 Self-hostable MCP Gateway for managing AI connections and tools",author:"Deco team",repository:{type:"git",url:"git+https://github.com/decocms/studio.git",directory:"apps/mesh"},bugs:{url:"https://github.com/decocms/studio/issues"},type:"module",bin:{deco:"./dist/server/cli.js"},files:["dist/**/*"],scripts:{dev:'bun run migrate && concurrently "bun run dev:client" "bun run dev:server"',"dev:servers":'concurrently "bun run dev:client" "bun run dev:server"',"dev:client":"bun --bun vite dev","dev:server":"bun run --cwd=../../packages/sandbox build && NODE_ENV=development bun --env-file=.env --hot run src/index.ts","build:client":"bun --bun vite build","build:server":"bun run scripts/bundle-server-script.ts --dist ./dist/server","db:migrate":"bun run ./dist/server/migrate.js",check:"tsc --noEmit",start:"bun run ./dist/server/server.js",migrate:"bun run src/database/migrate.ts",test:"bun test","test:e2e":"playwright test","test:e2e:ui":"playwright test --ui","better-auth:migrate":"bunx --bun @better-auth/cli migrate -y --config src/auth/index.ts",prepublishOnly:"bun run build:client && bun run build:server"},optionalDependencies:{"@duckdb/node-api":"^1.5.0-r.1","@freestyle-sh/with-bun":"^0.2.12","@freestyle-sh/with-deno":"^0.0.4","@freestyle-sh/with-nodejs":"^0.2.9","freestyle-sandboxes":"^0.1.46"},dependencies:{"@ai-sdk/anthropic":"^3.0.58","@ai-sdk/google":"^3.0.60","@ai-sdk/openai":"^3.0.50","@anthropic-ai/sdk":"^0.79.0","@aws-sdk/client-s3":"^3.1013.0","@aws-sdk/s3-request-presigner":"^3.1013.0","@clickhouse/client":"^1.8.1","@dnd-kit/core":"^6.3.1","@dnd-kit/sortable":"^10.0.0","@dnd-kit/utilities":"^3.2.2","@inkjs/ui":"^2.0.0","@modelcontextprotocol/ext-apps":"^1.2.2","@openrouter/ai-sdk-provider":"^2.2.5","@opentelemetry/core":"^2.6.0","@tanstack/react-virtual":"^3.13.21","@xterm/addon-fit":"^0.11.0","@xterm/xterm":"^6.0.0","ai-sdk-provider-claude-code":"^3.4.4","ai-sdk-provider-codex-cli":"^1.1.0","embedded-postgres":"^18.3.0-beta.16",ink:"^6.8.0",kysely:"^0.28.12",nats:"^2.29.3","node-pty":"^1.0.0","posthog-js":"^1.371.1","posthog-node":"^5.0.0",react:"^19.2.0","react-dom":"^19.2.0"},devDependencies:{"@ai-sdk/provider":"^3.0.8","@ai-sdk/react":"^3.0.118","@anthropic-ai/claude-agent-sdk":"^0.2.80","@better-auth/sso":"1.4.1","@daveyplate/better-auth-ui":"^3.2.7","@deco/ui":"workspace:*","@decocms/better-auth":"1.5.17","@decocms/bindings":"workspace:*","@decocms/mcp-utils":"workspace:*","@decocms/mesh-sdk":"workspace:*","@decocms/runtime":"workspace:*","@decocms/vite-plugin":"workspace:*","@electric-sql/pglite":"^0.3.15","@floating-ui/react":"^0.27.16","@hookform/resolvers":"^5.2.2","@jitl/quickjs-wasmfile-release-sync":"0.31.0","@modelcontextprotocol/sdk":"1.27.1","@monaco-editor/react":"^4.7.0","@opentelemetry/api":"^1.9.0","@opentelemetry/api-logs":"^0.211.0","@opentelemetry/exporter-logs-otlp-proto":"^0.211.0","@opentelemetry/exporter-prometheus":"^0.208.0","@opentelemetry/exporter-trace-otlp-proto":"^0.207.0","@opentelemetry/instrumentation-runtime-node":"^0.24.0","@opentelemetry/sdk-logs":"^0.211.0","@opentelemetry/sdk-metrics":"^2.2.0","@opentelemetry/sdk-node":"^0.207.0","@opentelemetry/sdk-trace-base":"^2.5.0","@playwright/test":"^1.58.2","@radix-ui/react-avatar":"^1.1.10","@radix-ui/react-checkbox":"^1.3.3","@radix-ui/react-dialog":"^1.1.15","@radix-ui/react-dropdown-menu":"^2.1.16","@radix-ui/react-label":"^2.1.7","@radix-ui/react-select":"^2.2.6","@radix-ui/react-separator":"^1.1.7","@radix-ui/react-slot":"^1.2.3","@radix-ui/react-tabs":"^1.1.13","@rjsf/core":"^6.1.2","@rjsf/shadcn":"^6.1.2","@rjsf/utils":"^6.1.2","@rjsf/validator-ajv8":"^6.1.2","@tailwindcss/vite":"^4.1.17","@tanstack/react-query":"5.90.11","@tanstack/react-router":"^1.139.7","@tiptap/core":"3.20.2","@tiptap/extension-mention":"3.20.2","@tiptap/extension-placeholder":"3.20.2","@tiptap/pm":"3.20.2","@tiptap/react":"3.20.2","@tiptap/starter-kit":"3.20.2","@tiptap/suggestion":"3.20.2","@types/bun":"^1.3.1","@types/pg":"^8.15.6","@types/react-syntax-highlighter":"^15.5.13","@untitledui/icons":"^0.0.19","@vercel/nft":"^1.1.1","@vitejs/plugin-react":"^5.1.0",ai:"^6.0.116","babel-plugin-react-compiler":"^1.0.0","better-auth":"1.4.5","class-variance-authority":"^0.7.1",clsx:"^2.1.1",concurrently:"^9.2.1",croner:"^9.1.0","date-fns":"^4.1.0",degit:"^2.8.4",hono:"^4.10.7","input-otp":"^1.4.2",jose:"^6.0.11","kysely-pglite":"^0.6.1","lucide-react":"^0.468.0",marked:"^15.0.6","@decocms/sandbox":"workspace:*","mesh-plugin-workflows":"workspace:*",nanoid:"^5.1.6",pg:"^8.16.3",prettier:"^3.4.2","react-hook-form":"^7.66.0","react-markdown":"^10.1.0","react-resizable-panels":"^2.1.7","react-syntax-highlighter":"^15.6.1",recharts:"^3.6.0","rehype-raw":"^7.0.0","remark-gfm":"^4.0.0","sass-embedded":"^1.97.2",sonner:"^2.0.7","tailwind-merge":"^3.3.1",tailwindcss:"^4.1.17",typescript:"^5.9.3",vite:"^7.2.1","vite-tsconfig-paths":"^5.1.4",zod:"^4.0.0",zustand:"^5.0.9"},homepage:"https://github.com/decocms/studio",keywords:["mcp","model-context-protocol","ai","gateway","self-hosted","mesh","tools"],license:"MIT",publishConfig:{access:"public"}}});import{Box as PU,Text as MX}from"ink";import{Spinner as ci5}from"@inkjs/ui";import{useSyncExternalStore as As6}from"react";import{jsx as qY,jsxs as oQ}from"react/jsx-runtime";function ti5(X,Y){if(!X||!ai5.has(X))return X;let G=fB0[Y]??fB0[fB0.length-1];return X==="#875f00"?G[0]:G[1]}function Ts6({status:X}){if(X==="pending")return qY(ci5,{label:""});return qY(MX,{color:"green",children:"\u2713"})}function Is6({services:X,migrationsStatus:Y,home:G,serverUrl:Q,vibe:J}){let W=As6(iu0,cu0),Z=As6(ou0,ru0);return oQ(PU,{flexDirection:"column",paddingBottom:1,children:[J?oQ(PU,{flexDirection:"column",children:[W.map(($,K)=>{let H=Z[K],U=$.reduce((N,z)=>N+z.text.length,0),B=Math.max(0,ni5-U);return oQ(PU,{flexDirection:"row",children:[$.map((N,z)=>{let O=ti5(N.color,K);return O?qY(MX,{color:O,children:N.text},z):qY(MX,{children:N.text},z)}),qY(MX,{children:" ".repeat(B+2)}),H?.map((N,z)=>N.color?qY(MX,{color:N.color,children:N.char},z):qY(MX,{children:N.char},z))]},K)}),oQ(MX,{dimColor:!0,children:[" v",_B0.version]})]}):oQ(PU,{flexDirection:"column",marginTop:1,children:[ii5.map(($,K)=>qY(MX,{color:pi5[K],children:$},K)),oQ(MX,{dimColor:!0,children:[" v",_B0.version]})]}),qY(PU,{marginBottom:1,children:qY(MX,{dimColor:!0,children:"\u2500".repeat(80)})}),qY(PU,{children:oQ(MX,{dimColor:!0,children:["Home: ",G]})}),oQ(PU,{gap:2,children:[X.map(($)=>oQ(PU,{gap:1,children:[oQ(MX,{children:[$.name," :",$.port||"...."]}),qY(Ts6,{status:$.status})]},$.name)),oQ(PU,{gap:1,children:[qY(MX,{children:"Migrations"}),qY(Ts6,{status:Y})]})]}),qY(PU,{children:Q?oQ(MX,{children:["Open in browser: ",qY(MX,{color:"cyan",children:Q})]}):qY(MX,{dimColor:!0,children:"Starting..."})}),oQ(PU,{gap:2,children:[oQ(MX,{dimColor:!0,children:[qY(MX,{bold:!0,dimColor:!0,children:"K"})," ","toggle config"]}),oQ(MX,{dimColor:!0,children:[qY(MX,{bold:!0,dimColor:!0,children:"L"})," ","toggle log flow"]}),oQ(MX,{dimColor:!0,children:[qY(MX,{bold:!0,dimColor:!0,children:"V"})," ","toggle vibe ",J?"\u266A Nihilore \xB7 CC BY 4.0":""]}),J&&oQ(MX,{dimColor:!0,children:[qY(MX,{bold:!0,dimColor:!0,children:"N"})," ","skip song"]})]})]})}var ii5,pi5,fB0,ni5=30,ai5;var Vs6=D(()=>{qs6();An1();Rn1();ii5=[" \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588 ","\u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588 \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2588\u2588 "," \u2591\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2588 \u2591 \u2588\u2588\u2588 \u2591\u2591\u2591 \u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588"," \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588"," \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2591\u2591\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591\u2588\u2588\u2588"," \u2591\u2588\u2588\u2588 \u2588\u2588\u2588 \u2591\u2588\u2588\u2588 \u2591 \u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588 \u2588\u2588\u2588 "," \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 \u2591\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2591 ","\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591\u2591 "],pi5=["#00ff64","#00ee5e","#00dc56","#00c84e","#00b444","#00a03c","#008832","#006e28"],fB0=[["#00ff64","#00cc50"],["#00f060","#00c04c"],["#00e05c","#00b448"],["#00d058","#00a844"],["#00c054","#009c40"],["#00b050","#00903c"],["#00a04c","#008438"],["#009048","#007834"],["#008044","#006c30"],["#007040","#00602c"],["#00603c","#005428"]],ai5=new Set(["#875f00","#5f3800"])});import{useSyncExternalStore as ri5}from"react";function oi5(){let X=process.stdout.rows||24,Y=process.stdout.columns||80;if(X!==EA1.rows||Y!==EA1.columns)EA1={rows:X,columns:Y};return EA1}function si5(X){return process.stdout.on("resize",X),()=>{process.stdout.off("resize",X)}}function js6(){return ri5(si5,oi5)}var EA1;var Ms6=D(()=>{EA1={rows:process.stdout.rows||24,columns:process.stdout.columns||80}});import{Box as ei5,Text as PX1}from"ink";import{useSyncExternalStore as Xp5}from"react";import{jsx as bB0,jsxs as yB0}from"react/jsx-runtime";function Yp5(X){if(X>=500)return"red";if(X>=400)return"yellow";if(X>=300)return"cyan";return"green"}function Rs6({logs:X,headerHeight:Y}){let{rows:G}=js6(),{logFlow:Q}=Xp5(DX1,OX1),J=Math.max(1,G-Y-1),W=Q?X:X.slice(-J);return bB0(ei5,{flexDirection:"column",children:W.map((Z,$)=>{if(Z.rawLine)return bB0(PX1,{dimColor:!0,children:Z.rawLine},$);let K=Z.duration<1000?`${Z.duration}ms`:`${(Z.duration/1000).toFixed(1)}s`;return yB0(PX1,{children:[yB0(PX1,{dimColor:!0,children:[Z.method.padEnd(6)," ",Z.path.padEnd(30)," "]}),bB0(PX1,{color:Yp5(Z.status),children:Z.status}),yB0(PX1,{dimColor:!0,children:[" ",K.padStart(8)]})]},$)})})}var Ss6=D(()=>{Qz();Ms6()});var xB0={};j0(xB0,{App:()=>Kp5});import{Box as Gp5,Text as Qp5,useInput as Jp5}from"ink";import{useSyncExternalStore as Zp5}from"react";import{jsx as PA1,jsxs as Hp5}from"react/jsx-runtime";function Kp5({home:X}){let Y=Zp5(DX1,OX1);return Jp5((G)=>{if(G==="k"||G==="K")VB0();if(G==="l"||G==="L")jB0();if((G==="v"||G==="V")&&Y.dataDir)vn1(Y.dataDir),MB0();if((G==="n"||G==="N")&&Y.vibe)Cn1()}),Hp5(Gp5,{flexDirection:"column",children:[PA1(Is6,{services:Y.services,migrationsStatus:Y.migrationsStatus,home:X,serverUrl:Y.serverUrl,vibe:Y.vibe}),Y.viewMode==="config"?Y.env?PA1(Es6,{env:Y.env}):PA1(Qp5,{dimColor:!0,children:"Loading configuration..."}):PA1(Rs6,{logs:Y.logs,headerHeight:Y.vibe?$p5:Wp5})]})}var Wp5=15,$p5=19;var hB0=D(()=>{Ps6();Vs6();Ss6();Qz();Vd()});function ks6(X,Y={}){return{PORT:String(X.port),NODE_ENV:X.nodeEnv,BASE_URL:X.baseUrl,DATA_DIR:X.dataDir,DECOCMS_HOME:X.dataDir,DATABASE_URL:X.databaseUrl,DATABASE_PG_SSL:String(X.databasePgSsl),DATABASE_POOL_MAX:String(X.databasePoolMax),NATS_URL:X.natsUrls.join(","),BETTER_AUTH_SECRET:X.betterAuthSecret,ENCRYPTION_KEY:X.encryptionKey,MESH_JWT_SECRET:X.meshJwtSecret,DECOCMS_LOCAL_MODE:String(X.localMode),DISABLE_RATE_LIMIT:String(X.disableRateLimit),STUDIO_PROVISION_SECRET_KEY:X.studioProvisionSecretKey,CONFIG_PATH:X.configPath,...Object.fromEntries(Object.entries(process.env).filter(([G])=>G.startsWith("AUTH_"))),DECO_AI_GATEWAY_ENABLED:String(X.aiGatewayEnabled),DECO_AI_GATEWAY_URL:X.aiGatewayUrl,ENABLE_DECO_IMPORT:String(X.enableDecoImport),S3_ENDPOINT:X.s3Endpoint,S3_BUCKET:X.s3Bucket,S3_REGION:X.s3Region,S3_ACCESS_KEY_ID:X.s3AccessKeyId,S3_SECRET_ACCESS_KEY:X.s3SecretAccessKey,S3_FORCE_PATH_STYLE:String(X.s3ForcePathStyle),OTEL_SERVICE_NAME:X.otelServiceName,CLICKHOUSE_URL:X.clickhouseUrl,DECO_SUPABASE_URL:X.decoSupabaseUrl,DECO_SUPABASE_SERVICE_KEY:X.decoSupabaseServiceKey,FIRECRAWL_API_KEY:X.firecrawlApiKey,STUDIO_SANDBOX_RUNNER:process.env.STUDIO_SANDBOX_RUNNER,STUDIO_SANDBOX_TEMPLATE_NAME:process.env.STUDIO_SANDBOX_TEMPLATE_NAME,STUDIO_ENV:process.env.STUDIO_ENV,STUDIO_SANDBOX_PREVIEW_URL_PATTERN:process.env.STUDIO_SANDBOX_PREVIEW_URL_PATTERN,STUDIO_SANDBOX_PREVIEW_GATEWAY_NAME:process.env.STUDIO_SANDBOX_PREVIEW_GATEWAY_NAME,STUDIO_SANDBOX_PREVIEW_GATEWAY_NAMESPACE:process.env.STUDIO_SANDBOX_PREVIEW_GATEWAY_NAMESPACE,KUBERNETES_SERVICE_HOST:process.env.KUBERNETES_SERVICE_HOST,KUBERNETES_SERVICE_PORT:process.env.KUBERNETES_SERVICE_PORT,FREESTYLE_API_KEY:process.env.FREESTYLE_API_KEY,BROWSERLESS_TOKEN:process.env.BROWSERLESS_TOKEN,NODE_EXTRA_CA_CERTS:process.env.NODE_EXTRA_CA_CERTS,DECO_CLI:"1",DECO_NO_TUI:"true",...Y}}var Rj=k((Op5)=>{Op5.HttpAuthLocation=void 0;(function(X){X.HEADER="header",X.QUERY="query"})(Op5.HttpAuthLocation||(Op5.HttpAuthLocation={}));Op5.HttpApiKeyAuthLocation=void 0;(function(X){X.HEADER="header",X.QUERY="query"})(Op5.HttpApiKeyAuthLocation||(Op5.HttpApiKeyAuthLocation={}));Op5.EndpointURLScheme=void 0;(function(X){X.HTTP="http",X.HTTPS="https"})(Op5.EndpointURLScheme||(Op5.EndpointURLScheme={}));Op5.AlgorithmId=void 0;(function(X){X.MD5="md5",X.CRC32="crc32",X.CRC32C="crc32c",X.SHA1="sha1",X.SHA256="sha256"})(Op5.AlgorithmId||(Op5.AlgorithmId={}));var Fp5=(X)=>{let Y=[];if(X.sha256!==void 0)Y.push({algorithmId:()=>Op5.AlgorithmId.SHA256,checksumConstructor:()=>X.sha256});if(X.md5!=null)Y.push({algorithmId:()=>Op5.AlgorithmId.MD5,checksumConstructor:()=>X.md5});return{addChecksumAlgorithm(G){Y.push(G)},checksumAlgorithms(){return Y}}},Up5=(X)=>{let Y={};return X.checksumAlgorithms().forEach((G)=>{Y[G.algorithmId()]=G.checksumConstructor()}),Y},Bp5=(X)=>{return Fp5(X)},Np5=(X)=>{return Up5(X)};Op5.FieldPosition=void 0;(function(X){X[X.HEADER=0]="HEADER",X[X.TRAILER=1]="TRAILER"})(Op5.FieldPosition||(Op5.FieldPosition={}));var zp5="__smithy_context";Op5.IniSectionType=void 0;(function(X){X.PROFILE="profile",X.SSO_SESSION="sso-session",X.SERVICES="services"})(Op5.IniSectionType||(Op5.IniSectionType={}));Op5.RequestHandlerProtocol=void 0;(function(X){X.HTTP_0_9="http/0.9",X.HTTP_1_0="http/1.0",X.TDS_8_0="tds/8.0"})(Op5.RequestHandlerProtocol||(Op5.RequestHandlerProtocol={}));Op5.SMITHY_CONTEXT_KEY=zp5;Op5.getDefaultClientConfiguration=Bp5;Op5.resolveDefaultRuntimeConfig=Np5});var u7=k((Ip5)=>{var Ep5=Rj(),Pp5=(X)=>{return{setHttpHandler(Y){X.httpHandler=Y},httpHandler(){return X.httpHandler},updateHttpClientConfig(Y,G){X.httpHandler?.updateHttpClientConfig(Y,G)},httpHandlerConfigs(){return X.httpHandler.httpHandlerConfigs()}}},qp5=(X)=>{return{httpHandler:X.httpHandler()}};class Cs6{name;kind;values;constructor({name:X,kind:Y=Ep5.FieldPosition.HEADER,values:G=[]}){this.name=X,this.kind=Y,this.values=G}add(X){this.values.push(X)}set(X){this.values=X}remove(X){this.values=this.values.filter((Y)=>Y!==X)}toString(){return this.values.map((X)=>X.includes(",")||X.includes(" ")?`"${X}"`:X).join(", ")}get(){return this.values}}class vs6{entries={};encoding;constructor({fields:X=[],encoding:Y="utf-8"}){X.forEach(this.setField.bind(this)),this.encoding=Y}setField(X){this.entries[X.name.toLowerCase()]=X}getField(X){return this.entries[X.toLowerCase()]}removeField(X){delete this.entries[X.toLowerCase()]}getByType(X){return Object.values(this.entries).filter((Y)=>Y.kind===X)}}class qA1{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(X){this.method=X.method||"GET",this.hostname=X.hostname||"localhost",this.port=X.port,this.query=X.query||{},this.headers=X.headers||{},this.body=X.body,this.protocol=X.protocol?X.protocol.slice(-1)!==":"?`${X.protocol}:`:X.protocol:"https:",this.path=X.path?X.path.charAt(0)!=="/"?`/${X.path}`:X.path:"/",this.username=X.username,this.password=X.password,this.fragment=X.fragment}static clone(X){let Y=new qA1({...X,headers:{...X.headers}});if(Y.query)Y.query=Ap5(Y.query);return Y}static isInstance(X){if(!X)return!1;let Y=X;return"method"in Y&&"protocol"in Y&&"hostname"in Y&&"path"in Y&&typeof Y.query==="object"&&typeof Y.headers==="object"}clone(){return qA1.clone(this)}}function Ap5(X){return Object.keys(X).reduce((Y,G)=>{let Q=X[G];return{...Y,[G]:Array.isArray(Q)?[...Q]:Q}},{})}class _s6{statusCode;reason;headers;body;constructor(X){this.statusCode=X.statusCode,this.reason=X.reason,this.headers=X.headers||{},this.body=X.body}static isInstance(X){if(!X)return!1;let Y=X;return typeof Y.statusCode==="number"&&typeof Y.headers==="object"}}function Tp5(X){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(X)}Ip5.Field=Cs6;Ip5.Fields=vs6;Ip5.HttpRequest=qA1;Ip5.HttpResponse=_s6;Ip5.getHttpHandlerExtensionConfiguration=Pp5;Ip5.isValidHostname=Tp5;Ip5.resolveHttpHandlerRuntimeConfig=qp5});function vp5(X){return(Y)=>async(G)=>{let{request:Q}=G;if(X.expectContinueHeader!==!1&&fs6.HttpRequest.isInstance(Q)&&Q.body&&X.runtime==="node"&&X.requestHandler?.constructor?.name!=="FetchHttpHandler"){let J=!0;if(typeof X.expectContinueHeader==="number")try{J=(Number(Q.headers?.["content-length"])??X.bodyLengthChecker?.(Q.body)??1/0)>=X.expectContinueHeader}catch(W){}else J=!!X.expectContinueHeader;if(J)Q.headers.Expect="100-continue"}return Y({...G,request:Q})}}var fs6,_p5,bs6=(X)=>({applyToStack:(Y)=>{Y.add(vp5(X),_p5)}});var ys6=D(()=>{fs6=Y1(u7(),1);_p5={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0}});var OH,AA1,Sj,TA1,E9,xs6,AX1;var DH=D(()=>{OH={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},AA1=OH.WHEN_SUPPORTED,Sj={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},TA1=OH.WHEN_SUPPORTED;(function(X){X.MD5="MD5",X.CRC32="CRC32",X.CRC32C="CRC32C",X.CRC64NVME="CRC64NVME",X.SHA1="SHA1",X.SHA256="SHA256"})(E9||(E9={}));(function(X){X.HEADER="header",X.TRAILER="trailer"})(xs6||(xs6={}));AX1=E9.CRC32});var Vq,na=(X,Y,G,Q)=>{if(!(Y in X))return;let J=X[Y].toUpperCase();if(!Object.values(G).includes(J))throw TypeError(`Cannot load ${Q} '${Y}'. Expected one of ${Object.values(G)}, got '${X[Y]}'.`);return J};var iB0=D(()=>{(function(X){X.ENV="env",X.CONFIG="shared config entry"})(Vq||(Vq={}))});var fp5="AWS_REQUEST_CHECKSUM_CALCULATION",bp5="request_checksum_calculation",hs6;var gs6=D(()=>{DH();iB0();hs6={environmentVariableSelector:(X)=>na(X,fp5,OH,Vq.ENV),configFileSelector:(X)=>na(X,bp5,OH,Vq.CONFIG),default:AA1}});var yp5="AWS_RESPONSE_CHECKSUM_VALIDATION",xp5="response_checksum_validation",us6;var ls6=D(()=>{DH();iB0();us6={environmentVariableSelector:(X)=>na(X,yp5,Sj,Vq.ENV),configFileSelector:(X)=>na(X,xp5,Sj,Vq.CONFIG),default:TA1}});var nB0=k((np5)=>{var hp5=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],gp5=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],up5=["TimeoutError","RequestTimeout","RequestTimeoutException"],lp5=[500,502,503,504],mp5=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],dp5=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],ms6=(X)=>X?.$retryable!==void 0,cp5=(X)=>hp5.includes(X.name),ds6=(X)=>X.$metadata?.clockSkewCorrected,cs6=(X)=>{let Y=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(X&&X instanceof TypeError))return!1;return Y.has(X.message)},ip5=(X)=>X.$metadata?.httpStatusCode===429||gp5.includes(X.name)||X.$retryable?.throttling==!0,pB0=(X,Y=0)=>ms6(X)||ds6(X)||X.name==="InvalidSignatureException"&&X.message?.includes("Signature expired")||up5.includes(X.name)||mp5.includes(X?.code||"")||dp5.includes(X?.code||"")||lp5.includes(X.$metadata?.httpStatusCode||0)||cs6(X)||is6(X)||X.cause!==void 0&&Y<=10&&pB0(X.cause,Y+1),pp5=(X)=>{if(X.$metadata?.httpStatusCode!==void 0){let Y=X.$metadata.httpStatusCode;if(500<=Y&&Y<=599&&!pB0(X))return!0;return!1}return!1};function is6(X){return X.code==="ERR_HTTP2_STREAM_ERROR"&&X.message.includes("NGHTTP2_REFUSED_STREAM")}np5.isBrowserNetworkError=cs6;np5.isClockSkewCorrectedError=ds6;np5.isClockSkewError=cp5;np5.isNodeJsHttp2TransientError=is6;np5.isRetryableByTrait=ms6;np5.isServerError=pp5;np5.isThrottlingError=ip5;np5.isTransientError=pB0});var Nw=k((Fn5)=>{var Gn5=nB0();Fn5.RETRY_MODES=void 0;(function(X){X.STANDARD="standard",X.ADAPTIVE="adaptive"})(Fn5.RETRY_MODES||(Fn5.RETRY_MODES={}));var VA1=3,Qn5=Fn5.RETRY_MODES.STANDARD;class jA1{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(X){this.beta=X?.beta??0.7,this.minCapacity=X?.minCapacity??1,this.minFillRate=X?.minFillRate??0.5,this.scaleConstant=X?.scaleConstant??0.4,this.smooth=X?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(X){let Y;this.updateMeasuredRate();let G=X;if(G?.errorType==="THROTTLING"||Gn5.isThrottlingError(G?.error??X)){let W=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=W,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),Y=this.cubicThrottle(W),this.enableTokenBucket()}else this.calculateTimeWindow(),Y=this.cubicSuccess(this.getCurrentTimeInSeconds());let J=Math.min(Y,2*this.measuredTxRate);this.updateTokenBucketRate(J)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(X){if(!this.enabled)return;if(this.refillTokenBucket(),X>this.availableTokens){let Y=(X-this.availableTokens)/this.fillRate*1000;await new Promise((G)=>jA1.setTimeoutFn(G,Y))}this.availableTokens=this.availableTokens-X}refillTokenBucket(){let X=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=X;return}let Y=(X-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+Y),this.lastTimestamp=X}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(X){return this.getPrecise(X*this.beta)}cubicSuccess(X){return this.getPrecise(this.scaleConstant*Math.pow(X-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(X){this.refillTokenBucket(),this.fillRate=Math.max(X,this.minFillRate),this.maxCapacity=Math.max(X,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let X=this.getCurrentTimeInSeconds(),Y=Math.floor(X*2)/2;if(this.requestCount++,Y>this.lastTxRateBucket){let G=this.requestCount/(Y-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(G*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=Y}}getPrecise(X){return parseFloat(X.toFixed(8))}}var Jn5=100,rB0=20000,Zn5=500,aB0=500,Wn5=5,$n5=10,ps6=1,Kn5="amz-sdk-invocation-id",Hn5="amz-sdk-request";class sQ{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return sQ.v2026?50:100}static throttlingDelay(){return sQ.v2026?1000:500}static cost(){return sQ.v2026?14:5}static throttlingCost(){return sQ.v2026?5:10}static modifiedCostType(){return sQ.v2026?"THROTTLING":"TRANSIENT"}}class ns6{x=sQ.delay();computeNextBackoffDelay(X){let Y=Math.random(),G=2,Q=Y*Math.min(this.x*2**X,rB0);return Math.floor(Q)}setDelayBase(X){this.x=X}}class tB0{delay;count;cost;longPoll;constructor(X,Y,G,Q){this.delay=X,this.count=Y,this.cost=G,this.longPoll=Q}getRetryCount(){return this.count}getRetryDelay(){return Math.min(rB0,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var IA1={incompatible:1,attempts:2,capacity:3};class TX1{mode=Fn5.RETRY_MODES.STANDARD;capacity=aB0;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(X){if(typeof X==="number")this.maxAttemptsProvider=async()=>X;else if(typeof X==="function")this.maxAttemptsProvider=X;else if(X&&typeof X==="object")this.maxAttemptsProvider=async()=>X.maxAttempts,this.baseDelay=X.baseDelay,this.retryBackoffStrategy=X.backoff;this.maxAttemptsProvider??=async()=>VA1,this.baseDelay??=sQ.delay(),this.retryBackoffStrategy??=new ns6}async acquireInitialRetryToken(X){return new tB0(sQ.delay(),0,void 0,sQ.v2026&&X.includes(":longpoll"))}async refreshRetryTokenForRetry(X,Y){let G=await this.getMaxAttempts(),Q=this.retryCode(X,Y,G),J=Q===0,W=X.isLongPoll?.();if(J||W){let Z=Y.errorType;this.retryBackoffStrategy.setDelayBase(Z==="THROTTLING"?sQ.throttlingDelay():this.baseDelay);let $=this.retryBackoffStrategy.computeNextBackoffDelay(X.getRetryCount()),K=$;if(Y.retryAfterHint instanceof Date)K=Math.max($,Math.min(Y.retryAfterHint.getTime()-Date.now(),$+5000));if(!J)throw Object.assign(Error("No retry token available"),{$backoff:sQ.v2026&&Q===IA1.capacity&&W?K:0});else{let H=this.getCapacityCost(Z);return this.capacity-=H,new tB0(K,X.getRetryCount()+1,H,X.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(X){this.capacity=Math.min(aB0,this.capacity+(X.getRetryCost()??ps6))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(X){return console.warn(`Max attempts provider could not resolve. Using default of ${VA1}`),VA1}}retryCode(X,Y,G){let Q=X.getRetryCount()+1,J=this.isRetryableError(Y.errorType)?0:IA1.incompatible,W=Q<G?0:IA1.attempts,Z=this.capacity>=this.getCapacityCost(Y.errorType)?0:IA1.capacity;return J||W||Z}getCapacityCost(X){return X===sQ.modifiedCostType()?sQ.throttlingCost():sQ.cost()}isRetryableError(X){return X==="THROTTLING"||X==="TRANSIENT"}}class as6{mode=Fn5.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(X,Y){let{rateLimiter:G}=Y??{};this.rateLimiter=G??new jA1,this.standardRetryStrategy=Y?new TX1({maxAttempts:typeof X==="number"?X:3,...Y}):new TX1(X)}async acquireInitialRetryToken(X){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(X)}async refreshRetryTokenForRetry(X,Y){return this.rateLimiter.updateClientSendingRate(Y),this.standardRetryStrategy.refreshRetryTokenForRetry(X,Y)}recordSuccess(X){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(X)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}class ts6 extends TX1{computeNextBackoffDelay;constructor(X,Y=sQ.delay()){super(typeof X==="function"?X:async()=>X);if(typeof Y==="number")this.computeNextBackoffDelay=()=>Y;else this.computeNextBackoffDelay=Y}async refreshRetryTokenForRetry(X,Y){let G=await super.refreshRetryTokenForRetry(X,Y);return G.getRetryDelay=()=>this.computeNextBackoffDelay(G.getRetryCount()),G}}Fn5.AdaptiveRetryStrategy=as6;Fn5.ConfiguredRetryStrategy=ts6;Fn5.DEFAULT_MAX_ATTEMPTS=VA1;Fn5.DEFAULT_RETRY_DELAY_BASE=Jn5;Fn5.DEFAULT_RETRY_MODE=Qn5;Fn5.DefaultRateLimiter=jA1;Fn5.INITIAL_RETRY_TOKENS=aB0;Fn5.INVOCATION_ID_HEADER=Kn5;Fn5.MAXIMUM_RETRY_DELAY=rB0;Fn5.NO_RETRY_INCREMENT=ps6;Fn5.REQUEST_HEADER=Hn5;Fn5.RETRY_COST=Wn5;Fn5.Retry=sQ;Fn5.StandardRetryStrategy=TX1;Fn5.THROTTLING_RETRY_DELAY_BASE=Zn5;Fn5.TIMEOUT_RETRY_COST=$n5});var WX=k((bn5)=>{var Mn5=Nw(),oB0={warningEmitted:!1},Rn5=(X)=>{if(X&&!oB0.warningEmitted&&parseInt(X.substring(1,X.indexOf(".")))<20)oB0.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
1627
1627
  no longer support Node.js ${X} in January 2026.
1628
1628
 
1629
1629
  To continue receiving updates to AWS services, bug fixes, and security
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decocms",
3
- "version": "2.297.5",
3
+ "version": "2.298.0",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- import{e as t,j as i}from"./index-KRYpI-wr.js";import{O as m}from"./select-model-C1-GuVkw.js";import"./checkbox-oN14OK1i.js";import"./ChevronDown-DpY6Flf1.js";import"./input-CMerivrT.js";import"./dialog-B19PbpYJ.js";import"./X-BCwgneQR.js";import"./drawer-DUQTbVde.js";import"./tooltip-GP5hVzoi.js";import"./select-CmYNF4eL.js";import"./ChevronUp-3rRJzUBA.js";import"./skeleton-DNNOALQU.js";import"./Tool01-BpwK-6V9.js";import"./RefreshCcw01-DkGR6dYl.js";import"./SearchMd-Bun6GRRS.js";import"./Settings02-BW8HHhci.js";import"./use-ai-providers-BhDBkojL.js";import"./constants-DfvWBMZm.js";import"./chat-context-DmT_0uIT.js";import"./use-virtual-mcp-BuljipQB.js";import"./use-collections-CLAb2ITC.js";import"./use-decopilot-events-lrQB_XVb.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-BWXzGaFZ.js";import"./use-organization-settings-yCi8C30J.js";import"./ai-providers-logos-D6a8kmGH.js";import"./Zap-JVLBlI8s.js";import"./AlertCircle-CdsafmOE.js";import"./CheckCircle-rCOulsHV.js";import"./Trash01-FiQdOhqi.js";import"./index-BGF4-5Ra.js";import"./settings-section-BYYhk7zc.js";import"./card-BbLPQxf_.js";import"./ArrowUpRight-DlOBonM-.js";import"./switch-cbP1whPb.js";import"./toggle-group-BR7MR0J_.js";import"./avatar-CTOwJvGM.js";import"./User01-C_ak6Kxk.js";import"./alert-dialog-COV2HFzJ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./unwrap-tool-result-BYXdCQMg.js";function T(){const o=t.c(1);let r;return o[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx(m,{}),o[0]=r):r=o[0],r}export{T as default};
@@ -1 +0,0 @@
1
- import{e as n,j as r,r as d,g as h,O as f,l as u}from"./index-KRYpI-wr.js";import{S as j,a as b,b as S}from"./index-BGF4-5Ra.js";import{u as _}from"./tooltip-GP5hVzoi.js";import{u as k,T as y,a as T,b as i,S as g}from"./index-CXl9ZR5d.js";import{C as v}from"./chat-context-DmT_0uIT.js";import"./X-BCwgneQR.js";import"./agent-icon-B3jGc1Ev.js";import"./AlertCircle-CdsafmOE.js";import"./Tool01-BpwK-6V9.js";import"./XClose-BUwTYWum.js";import"./RefreshCcw01-DkGR6dYl.js";import"./ArrowNarrowLeft-Z3bol_QU.js";import"./XCircle-BSiQp6n3.js";import"./ArrowUpRight-DlOBonM-.js";import"./ZapSquare-De19_vak.js";import"./Users03-DaFOfASx.js";import"./CheckCircle-rCOulsHV.js";import"./ChevronDown-DpY6Flf1.js";import"./ChevronRight-BTHSc5W9.js";import"./ChevronUp-3rRJzUBA.js";import"./DotsVertical-C14a4Ecy.js";import"./Container-D_0hJyWg.js";import"./Star01-C2q-Rz0j.js";import"./Palette-CC5sNEUI.js";import"./SearchMd-Bun6GRRS.js";import"./LinkExternal01-CXFf8E57.js";import"./Lock01-jCC5NElm.js";import"./Sun-BXkdevd2.js";import"./Play-BCtgtTv0.js";import"./Plus-BU5qE_0Z.js";import"./Settings02-BW8HHhci.js";import"./Shield01-DsYD83TQ.js";import"./Trash01-FiQdOhqi.js";import"./User01-C_ak6Kxk.js";import"./Zap-JVLBlI8s.js";import"./shell-layout-BNhEwDHh.js";import"./dialog-B19PbpYJ.js";import"./required-auth-layout-qy-kggYU.js";import"./use-tasks-BWXzGaFZ.js";import"./use-collections-CLAb2ITC.js";import"./constants-DfvWBMZm.js";import"./use-organization-settings-yCi8C30J.js";import"./use-org-sso-DA4hesiY.js";import"./pair-KR7I3a65.js";import"./index-Bgik2M7B.js";import"./use-copy-B36UJTzB.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-GCOMWUpw.js";import"./integration-icon-gFG8GE83.js";import"./use-virtual-mcp-BuljipQB.js";import"./skeleton-DNNOALQU.js";import"./popover-Ege2icQN.js";import"./drawer-DUQTbVde.js";import"./avatar-CTOwJvGM.js";import"./alert-dialog-COV2HFzJ.js";import"./form-PX5XfY1h.js";import"./label-DQXeJGYk.js";import"./input-CMerivrT.js";import"./index-BzZtc59N.js";import"./use-mcp-tools-0-7svmM1.js";import"./use-ai-providers-BhDBkojL.js";import"./index-D7sE-LIc.js";import"./switch-cbP1whPb.js";import"./use-connection-vMA7gFAk.js";import"./lean-canvas-recruit-modal-CdR8OGue.js";import"./use-navigate-to-agent-C6liI7bE.js";import"./collection-search-BsmMEHVf.js";import"./checkbox-oN14OK1i.js";import"./extract-connection-data-B3ZynL1x.js";import"./constants-3jD3x8Uj.js";import"./collections-B_BLEc5A.js";import"./tabs-DLlV1AhK.js";import"./dropdown-menu-CoYd9oG5.js";import"./select-CmYNF4eL.js";import"./toggle-group-BR7MR0J_.js";import"./select-model-C1-GuVkw.js";import"./ai-providers-logos-D6a8kmGH.js";import"./settings-section-BYYhk7zc.js";import"./card-BbLPQxf_.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./index-BO_ipX-D.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-oAGfqetU.js";import"./use-registry-connections-BrX-TSfc.js";import"./useInfiniteQuery-BymwlV57.js";import"./infiniteQueryObserver-Ngno0wQt.js";import"./collection-tabs-DuWPOEDQ.js";import"./badge--qrdwFcB.js";import"./textarea-CI6A-6K6.js";import"./connection-form-helpers-Dk1Bh70V.js";import"./use-infinite-scroll-Be3EKoyX.js";import"./useSuspenseInfiniteQuery-CZUx6ZHM.js";import"./collection-search-CnJO24A_.js";import"./use-create-virtual-mcp-DK73LDl0.js";import"./empty-state-oEpGmt_E.js";import"./use-decopilot-events-lrQB_XVb.js";import"./create-sse-subscription-CxkOgzKf.js";import"./task-status-HVnvsZin.js";const N=280;function P(){const t=n.c(2),{tasksOpen:e}=k();if(!e)return null;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={width:`${N}px`},t[0]=o):o=t[0];let m;return t[1]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("aside",{className:"shrink-0 h-full bg-sidebar pb-1",style:o,children:r.jsx("div",{className:"h-full p-0.5 pt-0.25",children:r.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden card-shadow",children:r.jsx(y,{})})})}),t[1]=m):m=t[1],m}function C(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(d.Suspense,{fallback:null,children:r.jsx(P,{})}),t[0]=e):e=t[0],e}function x(){const t=n.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx("div",{className:"flex-1 flex items-center justify-center",children:r.jsx(u,{size:20,className:"animate-spin text-muted-foreground"})}),t[0]=e):e=t[0],e}function yr(){const t=n.c(7),e=_();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},t[0]=o):o=t[0];const c=!!h(o).taskId;let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s={"--sidebar-width-icon":"3.5rem"},t[1]=s):s=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx(g,{}),t[2]=l):l=t[2];let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p={background:"transparent",containerType:"inline-size"},t[3]=p):p=t[3];let a;return t[4]!==c||t[5]!==e?(a=r.jsx(j,{defaultOpen:!1,children:r.jsx("div",{className:"flex flex-col h-dvh overflow-hidden",children:r.jsxs(b,{className:"flex-1 bg-sidebar",style:s,children:[l,r.jsx(S,{className:"flex flex-col",style:p,children:r.jsx(v,{children:r.jsx(T,{children:e?r.jsx(d.Suspense,{fallback:r.jsx(x,{}),children:r.jsx(f,{})}):r.jsxs(i,{children:[r.jsxs(i.Header,{children:[r.jsxs(i.LeftColumn,{children:[r.jsx(i.Nav,{}),r.jsx(i.TogglesSlot,{})]}),r.jsx(i.CenterSlot,{}),r.jsxs(i.RightColumn,{children:[r.jsx(i.TabsSlot,{}),r.jsx(i.RightSlot,{})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex flex-row",children:[c&&r.jsx(C,{}),r.jsx(d.Suspense,{fallback:r.jsx(x,{}),children:r.jsx(f,{})})]})]})})})})]})})}),t[4]=c,t[5]=e,t[6]=a):a=t[6],a}export{yr as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-SK_qasoh.js","assets/index-KRYpI-wr.js","assets/index-DT63_YMm.css","assets/ArrowNarrowLeft-Z3bol_QU.js","assets/CheckCircle-rCOulsHV.js","assets/Container-D_0hJyWg.js","assets/Settings02-BW8HHhci.js","assets/XCircle-BSiQp6n3.js","assets/constants-DfvWBMZm.js","assets/useInfiniteQuery-BymwlV57.js","assets/infiniteQueryObserver-Ngno0wQt.js","assets/badge--qrdwFcB.js","assets/input-CMerivrT.js","assets/dropdown-menu-CoYd9oG5.js","assets/ChevronDown-DpY6Flf1.js","assets/ChevronRight-BTHSc5W9.js","assets/DotsVertical-C14a4Ecy.js","assets/table-DHlZtgXE.js","assets/toggle-group-BR7MR0J_.js","assets/use-view-mode-B4L3BxLu.js","assets/tooltip-GP5hVzoi.js","assets/SearchMd-Bun6GRRS.js","assets/dialog-B19PbpYJ.js","assets/X-BCwgneQR.js","assets/AlertCircle-CdsafmOE.js","assets/alert-dialog-COV2HFzJ.js","assets/card-BbLPQxf_.js","assets/Trash01-FiQdOhqi.js","assets/label-DQXeJGYk.js","assets/select-CmYNF4eL.js","assets/ChevronUp-3rRJzUBA.js","assets/switch-cbP1whPb.js","assets/textarea-CI6A-6K6.js","assets/RefreshCcw01-DkGR6dYl.js","assets/checkbox-oN14OK1i.js","assets/LinkExternal01-CXFf8E57.js","assets/use-copy-B36UJTzB.js","assets/Plus-BU5qE_0Z.js","assets/Play-BCtgtTv0.js"])))=>i.map(i=>d[i]);
2
- import{e as a,j as t,r,l as i,_ as o}from"./index-KRYpI-wr.js";const n=r.lazy(()=>o(()=>import("./registry-layout-SK_qasoh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38])));function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(r.Suspense,{fallback:t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(i,{size:20,className:"animate-spin text-muted-foreground"})}),children:t.jsx(n,{})}),s[0]=e):e=s[0],e}export{c as default};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-SK_qasoh.js","assets/index-KRYpI-wr.js","assets/index-DT63_YMm.css","assets/ArrowNarrowLeft-Z3bol_QU.js","assets/CheckCircle-rCOulsHV.js","assets/Container-D_0hJyWg.js","assets/Settings02-BW8HHhci.js","assets/XCircle-BSiQp6n3.js","assets/constants-DfvWBMZm.js","assets/useInfiniteQuery-BymwlV57.js","assets/infiniteQueryObserver-Ngno0wQt.js","assets/badge--qrdwFcB.js","assets/input-CMerivrT.js","assets/dropdown-menu-CoYd9oG5.js","assets/ChevronDown-DpY6Flf1.js","assets/ChevronRight-BTHSc5W9.js","assets/DotsVertical-C14a4Ecy.js","assets/table-DHlZtgXE.js","assets/toggle-group-BR7MR0J_.js","assets/use-view-mode-B4L3BxLu.js","assets/tooltip-GP5hVzoi.js","assets/SearchMd-Bun6GRRS.js","assets/dialog-B19PbpYJ.js","assets/X-BCwgneQR.js","assets/AlertCircle-CdsafmOE.js","assets/alert-dialog-COV2HFzJ.js","assets/card-BbLPQxf_.js","assets/Trash01-FiQdOhqi.js","assets/label-DQXeJGYk.js","assets/select-CmYNF4eL.js","assets/ChevronUp-3rRJzUBA.js","assets/switch-cbP1whPb.js","assets/textarea-CI6A-6K6.js","assets/RefreshCcw01-DkGR6dYl.js","assets/checkbox-oN14OK1i.js","assets/LinkExternal01-CXFf8E57.js","assets/use-copy-B36UJTzB.js","assets/Plus-BU5qE_0Z.js","assets/Play-BCtgtTv0.js"])))=>i.map(i=>d[i]);
2
- import{e as n,f as c,g as m,j as r,l as f,r as l,_ as u}from"./index-KRYpI-wr.js";const _=l.lazy(()=>u(()=>import("./registry-layout-SK_qasoh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38])));function x(){const e=n.c(5),o=c();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:i}=m(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("div",{className:"h-full flex items-center justify-center",children:r.jsx(f,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==i?(a=r.jsx(l.Suspense,{fallback:s,children:r.jsx(_,{onBack:()=>o({to:"/$org/settings/store",params:{org:i}})})}),e[2]=o,e[3]=i,e[4]=a):a=e[4],a}export{x as default};
@@ -1 +0,0 @@
1
- import{I as u}from"./infiniteQueryObserver-Ngno0wQt.js";import{c2 as i}from"./index-KRYpI-wr.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-Ngno0wQt.js";import{c2 as u,c3 as n}from"./index-KRYpI-wr.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +0,0 @@
1
- import{e as s,g as l,j as o,l as a,E as n,r as c}from"./index-KRYpI-wr.js";import{a as f}from"./index-BSQKB2C4.js";import"./index-DZ9E6iAg.js";import"./constants-DfvWBMZm.js";import"./collections-B_BLEc5A.js";import"./index-2PSEn8xL.js";import"./use-virtual-mcp-BuljipQB.js";import"./use-collections-CLAb2ITC.js";import"./monaco-editor-wlxwD-sq.js";import"./index-Bgik2M7B.js";import"./accordion-lz0Xmj6X.js";import"./agent-icon-B3jGc1Ev.js";import"./AlertCircle-CdsafmOE.js";import"./Tool01-BpwK-6V9.js";import"./XClose-BUwTYWum.js";import"./RefreshCcw01-DkGR6dYl.js";import"./ArrowNarrowLeft-Z3bol_QU.js";import"./XCircle-BSiQp6n3.js";import"./ArrowUpRight-DlOBonM-.js";import"./ZapSquare-De19_vak.js";import"./Users03-DaFOfASx.js";import"./CheckCircle-rCOulsHV.js";import"./ChevronDown-DpY6Flf1.js";import"./ChevronRight-BTHSc5W9.js";import"./ChevronUp-3rRJzUBA.js";import"./DotsVertical-C14a4Ecy.js";import"./Container-D_0hJyWg.js";import"./Star01-C2q-Rz0j.js";import"./Palette-CC5sNEUI.js";import"./SearchMd-Bun6GRRS.js";import"./index-BGF4-5Ra.js";import"./tooltip-GP5hVzoi.js";import"./X-BCwgneQR.js";import"./LinkExternal01-CXFf8E57.js";import"./Lock01-jCC5NElm.js";import"./Sun-BXkdevd2.js";import"./Play-BCtgtTv0.js";import"./Plus-BU5qE_0Z.js";import"./Settings02-BW8HHhci.js";import"./Shield01-DsYD83TQ.js";import"./Trash01-FiQdOhqi.js";import"./User01-C_ak6Kxk.js";import"./Zap-JVLBlI8s.js";import"./badge--qrdwFcB.js";import"./select-CmYNF4eL.js";import"./view-mode-toggle-C_22FOAw.js";import"./layout-Bu4l4YYc.js";import"./use-connection-vMA7gFAk.js";import"./use-mcp-tools-0-7svmM1.js";import"./dialog-B19PbpYJ.js";import"./index-BO_ipX-D.js";import"./dropdown-menu-CoYd9oG5.js";import"./integration-icon-gFG8GE83.js";import"./scroll-area-C9GXQyc7.js";import"./index-BzZtc59N.js";import"./empty-state-CEaufWig.js";import"./create-sse-subscription-CxkOgzKf.js";import"./input-CMerivrT.js";function ht(){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{ht as default};
@@ -1,50 +0,0 @@
1
- export interface Options {
2
- /**
3
- Bind only the given methods.
4
- */
5
- readonly include?: ReadonlyArray<string | RegExp>;
6
-
7
- /**
8
- Bind methods except for the given methods.
9
- */
10
- readonly exclude?: ReadonlyArray<string | RegExp>;
11
- }
12
-
13
- /**
14
- Automatically bind methods to their class instance.
15
-
16
- @param self - An object with methods to bind.
17
-
18
- @example
19
- ```
20
- import autoBind from 'auto-bind';
21
-
22
- class Unicorn {
23
- constructor(name) {
24
- this.name = name;
25
- autoBind(this);
26
- }
27
-
28
- message() {
29
- return `${this.name} is awesome!`;
30
- }
31
- }
32
-
33
- const unicorn = new Unicorn('Rainbow');
34
-
35
- // Grab the method off the class instance
36
- const message = unicorn.message;
37
-
38
- // Still bound to the class instance
39
- message();
40
- //=> 'Rainbow is awesome!'
41
-
42
- // Without `autoBind(this)`, the above would have resulted in
43
- message();
44
- //=> Error: Cannot read property 'name' of undefined
45
- ```
46
- */
47
- export default function autoBind<SelfType extends Record<string, any>>( // This has to use `any` to be compatible with classes.
48
- self: SelfType,
49
- options?: Options
50
- ): SelfType;
@@ -1,41 +0,0 @@
1
- // Gets all non-builtin properties up the prototype chain.
2
- const getAllProperties = object => {
3
- const properties = new Set();
4
-
5
- do {
6
- for (const key of Reflect.ownKeys(object)) {
7
- properties.add([object, key]);
8
- }
9
- } while ((object = Reflect.getPrototypeOf(object)) && object !== Object.prototype);
10
-
11
- return properties;
12
- };
13
-
14
- export default function autoBind(self, {include, exclude} = {}) {
15
- const filter = key => {
16
- const match = pattern => typeof pattern === 'string' ? key === pattern : pattern.test(key);
17
-
18
- if (include) {
19
- return include.some(match); // eslint-disable-line unicorn/no-array-callback-reference
20
- }
21
-
22
- if (exclude) {
23
- return !exclude.some(match); // eslint-disable-line unicorn/no-array-callback-reference
24
- }
25
-
26
- return true;
27
- };
28
-
29
- for (const [object, key] of getAllProperties(self.constructor.prototype)) {
30
- if (key === 'constructor' || !filter(key)) {
31
- continue;
32
- }
33
-
34
- const descriptor = Reflect.getOwnPropertyDescriptor(object, key);
35
- if (descriptor && typeof descriptor.value === 'function') {
36
- self[key] = self[key].bind(self);
37
- }
38
- }
39
-
40
- return self;
41
- }
@@ -1,9 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
-
7
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,51 +0,0 @@
1
- {
2
- "name": "auto-bind",
3
- "version": "5.0.1",
4
- "description": "Automatically bind methods to their class instance",
5
- "license": "MIT",
6
- "repository": "sindresorhus/auto-bind",
7
- "funding": "https://github.com/sponsors/sindresorhus",
8
- "author": {
9
- "name": "Sindre Sorhus",
10
- "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
12
- },
13
- "type": "module",
14
- "exports": {
15
- ".": "./index.js",
16
- "./react": "./react.js"
17
- },
18
- "engines": {
19
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
20
- },
21
- "scripts": {
22
- "test": "xo && ava && tsd"
23
- },
24
- "files": [
25
- "index.js",
26
- "index.d.ts",
27
- "react.js",
28
- "react.d.ts"
29
- ],
30
- "keywords": [
31
- "auto",
32
- "bind",
33
- "class",
34
- "methods",
35
- "method",
36
- "automatically",
37
- "prototype",
38
- "instance",
39
- "function",
40
- "this",
41
- "self",
42
- "react",
43
- "component"
44
- ],
45
- "devDependencies": {
46
- "@types/react": "^17.0.29",
47
- "ava": "^3.15.0",
48
- "tsd": "^0.18.0",
49
- "xo": "^0.45.0"
50
- }
51
- }