decocms 2.367.13 → 2.367.25

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 (225) hide show
  1. package/dist/client/assets/{AlertCircle-BT4KzWnI.js → AlertCircle-B5W8e_5w.js} +1 -1
  2. package/dist/client/assets/{ArrowNarrowLeft-DL6IklHf.js → ArrowNarrowLeft-hiT9EAxM.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-CuD8Ec0Q.js → ArrowUpRight-BngWaIVR.js} +1 -1
  4. package/dist/client/assets/{Check-BwR-n-sF.js → Check-8Z25AyId.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-CeozB0CE.js → CheckCircle-BEasBYv4.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-NgrGgemj.js → ChevronDown-DYIWk9ra.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-DzTdh7eY.js → ChevronRight-C956u55G.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-O1681VYk.js → ChevronUp-CdhHmg9Y.js} +1 -1
  9. package/dist/client/assets/{Container-2b4BXA-n.js → Container-eQJj-j5B.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-DwV108_Y.js → DotsVertical-BY4pEp3W.js} +1 -1
  11. package/dist/client/assets/{FilterLines-DOivCNH_.js → FilterLines-z8ejuVIV.js} +1 -1
  12. package/dist/client/assets/{HardDrive-Cj4eW7va.js → HardDrive-C5cYoT_u.js} +1 -1
  13. package/dist/client/assets/{Key01-BQUJeWtG.js → Key01-D616GLzE.js} +1 -1
  14. package/dist/client/assets/{LayoutLeft-BtnBeX4Q.js → LayoutLeft-_rPJ3Xdj.js} +1 -1
  15. package/dist/client/assets/{LinkExternal01-gSnFHviP.js → LinkExternal01-DxWXfBDh.js} +1 -1
  16. package/dist/client/assets/{Lock01-CLcwdBbZ.js → Lock01-BCib8CWc.js} +1 -1
  17. package/dist/client/assets/{Monitor01-B72KxmOA.js → Monitor01-Bz4VCJsr.js} +1 -1
  18. package/dist/client/assets/{Palette-CDAteqS3.js → Palette-Vm3-5yKD.js} +1 -1
  19. package/dist/client/assets/{Play-3lq0IL_j.js → Play-CKvhUVKq.js} +1 -1
  20. package/dist/client/assets/{Plus-CuU_Vn1V.js → Plus-CpQnzuG3.js} +1 -1
  21. package/dist/client/assets/{RefreshCcw01-DYeBzgxl.js → RefreshCcw01-B7Js0dD2.js} +1 -1
  22. package/dist/client/assets/{SearchMd-YL-AZ1_e.js → SearchMd-D0mvaU5_.js} +1 -1
  23. package/dist/client/assets/{Settings02-CmAK-JQC.js → Settings02-CNt0vvEu.js} +1 -1
  24. package/dist/client/assets/{Shield01-DWmt0CsN.js → Shield01-CZAvPXer.js} +1 -1
  25. package/dist/client/assets/{Star01-B9_yj21o.js → Star01-CEifhmiR.js} +1 -1
  26. package/dist/client/assets/{Stars02-DjyZ6rm8.js → Stars02-M_tqgIvg.js} +1 -1
  27. package/dist/client/assets/{Sun-D3nbZYnT.js → Sun-Ch8hbN6j.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-CoAD8Pso.js → SwitchHorizontal01-CJw113gN.js} +1 -1
  29. package/dist/client/assets/{Tool01-Cr9-Ayar.js → Tool01-CbzoidXH.js} +1 -1
  30. package/dist/client/assets/{Trash01-Bdgng8Ny.js → Trash01-CUZkoYoW.js} +1 -1
  31. package/dist/client/assets/{Upload01-DEH4hqbP.js → Upload01-DaqpbIUH.js} +1 -1
  32. package/dist/client/assets/{User01-DvR2FzxS.js → User01-CtOhLzXW.js} +1 -1
  33. package/dist/client/assets/{Users01-DKVYUvbH.js → Users01-DQVYpyq7.js} +1 -1
  34. package/dist/client/assets/{Users03-BScPbfBT.js → Users03-DGJmr08f.js} +1 -1
  35. package/dist/client/assets/{X-BpMfki2j.js → X-Coa3_vHC.js} +1 -1
  36. package/dist/client/assets/{XCircle-D4gl9x0F.js → XCircle-DvYTE78y.js} +1 -1
  37. package/dist/client/assets/{XClose-8wwGH-xu.js → XClose-wy0ZjI4q.js} +1 -1
  38. package/dist/client/assets/{Zap-DGOMtCmx.js → Zap-B74dlfsg.js} +1 -1
  39. package/dist/client/assets/{ZapSquare-C-QuJXiX.js → ZapSquare-BQ8gms0B.js} +1 -1
  40. package/dist/client/assets/{accordion-D87rF_9b.js → accordion-6vou0XmS.js} +1 -1
  41. package/dist/client/assets/{add-connection-dialog-cS9loTSU.js → add-connection-dialog-DopFZPio.js} +1 -1
  42. package/dist/client/assets/{agent-icon-BbgplFYb.js → agent-icon-CPWEcMkW.js} +1 -1
  43. package/dist/client/assets/{agent-icons-D769sO2y.js → agent-icons-DbyclYUt.js} +1 -1
  44. package/dist/client/assets/{agents-list-BqvI6z2f.js → agents-list-B_iou2CS.js} +1 -1
  45. package/dist/client/assets/{ai-providers-B7Nlf_fJ.js → ai-providers-jnOr5scM.js} +1 -1
  46. package/dist/client/assets/{alert-WZR80uYd.js → alert-DSWorcln.js} +1 -1
  47. package/dist/client/assets/{alert-dialog-CBfLU0-s.js → alert-dialog-jgkN1ow8.js} +1 -1
  48. package/dist/client/assets/{auth-catchall-drkgEnQI.js → auth-catchall-CibJUhS5.js} +1 -1
  49. package/dist/client/assets/{auth-split-layout-D19kU-YG.js → auth-split-layout-B_0OwIje.js} +1 -1
  50. package/dist/client/assets/{automation-list-row-D0ThPhss.js → automation-list-row-CBG4CRxM.js} +1 -1
  51. package/dist/client/assets/{automations-Cat5ivvi.js → automations-CtXXn5AE.js} +1 -1
  52. package/dist/client/assets/{avatar-DeKO2t6e.js → avatar-vA2R8qEK.js} +1 -1
  53. package/dist/client/assets/{badge-DYaA3f0o.js → badge-BFpOlUFq.js} +1 -1
  54. package/dist/client/assets/{brand-context-McBQ2_gj.js → brand-context-DSMoHChs.js} +1 -1
  55. package/dist/client/assets/{card-CzmU6DPx.js → card-Cd_hFdRe.js} +1 -1
  56. package/dist/client/assets/{chat-context-DsnxmnaH.js → chat-context-B5utwD_j.js} +1 -1
  57. package/dist/client/assets/{checkbox-VBT4OFjs.js → checkbox-cX_blfQo.js} +1 -1
  58. package/dist/client/assets/{cli-auth-success-BXNlJk3J.js → cli-auth-success-DRutP4ab.js} +1 -1
  59. package/dist/client/assets/{collection-detail-CNmVClMC.js → collection-detail-BtSEt034.js} +1 -1
  60. package/dist/client/assets/{collection-display-button-DO9Uub4Z.js → collection-display-button-DMY0cf-y.js} +1 -1
  61. package/dist/client/assets/{collection-search-CgHA_hw5.js → collection-search-CLSVS08U.js} +1 -1
  62. package/dist/client/assets/{collection-search-ZgHJOBo2.js → collection-search-XjYetQA3.js} +1 -1
  63. package/dist/client/assets/{collection-table-wrapper-DrLHkx2B.js → collection-table-wrapper-CqVfrSyn.js} +1 -1
  64. package/dist/client/assets/{collection-tabs-DW8sLdGn.js → collection-tabs-Cq1YLx0H.js} +1 -1
  65. package/dist/client/assets/{collections-DVQWcwMA.js → collections-DXz0tqzt.js} +1 -1
  66. package/dist/client/assets/{command-Cdu-1z9q.js → command-C_TH6iOa.js} +1 -1
  67. package/dist/client/assets/{connect-desktop-dialog-CejAAfIG.js → connect-desktop-dialog-CiOZeQs6.js} +1 -1
  68. package/dist/client/assets/{connection-card-kJpbPjBb.js → connection-card-BXYnxALA.js} +1 -1
  69. package/dist/client/assets/{connection-detail-D6x_V51B.js → connection-detail-DV4Eb2Ak.js} +1 -1
  70. package/dist/client/assets/{connection-form-helpers-Dg3964lu.js → connection-form-helpers-DNLR-aHd.js} +1 -1
  71. package/dist/client/assets/{connections-0_RrcJiG.js → connections-JdhjKCmC.js} +1 -1
  72. package/dist/client/assets/{constants-BwYc8BqM.js → constants-oggaZSfP.js} +1 -1
  73. package/dist/client/assets/{decopilot-sse-pool-B9BzYuaT.js → decopilot-sse-pool-atg0HfN2.js} +1 -1
  74. package/dist/client/assets/{dialog-TcaoJB0K.js → dialog-B_fGUV_0.js} +1 -1
  75. package/dist/client/assets/{domain-settings-BnZTuy7Y.js → domain-settings-CAp7ZsSN.js} +1 -1
  76. package/dist/client/assets/{drawer-Db2QUt1V.js → drawer-B6wZPR31.js} +1 -1
  77. package/dist/client/assets/{dropdown-menu-C_xsx5zL.js → dropdown-menu-BUe1eS9C.js} +1 -1
  78. package/dist/client/assets/{dynamic-plugin-layout-B1AK4Qfp.js → dynamic-plugin-layout-5vTDPOk1.js} +1 -1
  79. package/dist/client/assets/{empty-state-DTm9XCIk.js → empty-state-C6lTqnpg.js} +1 -1
  80. package/dist/client/assets/{empty-state-CewyMuo1.js → empty-state-DUBPA5NU.js} +1 -1
  81. package/dist/client/assets/{extract-connection-data-Bh_Tkl8z.js → extract-connection-data-DM9YCvRC.js} +1 -1
  82. package/dist/client/assets/{features-rGWmQRbS.js → features-DeqFL1TF.js} +1 -1
  83. package/dist/client/assets/{file-explorer-BxcoLq7k.js → file-explorer-DGNu1G6y.js} +1 -1
  84. package/dist/client/assets/{files-092UZxGN.js → files-CTFSKbFe.js} +1 -1
  85. package/dist/client/assets/{form-DD66RTDf.js → form-DIJniw7V.js} +1 -1
  86. package/dist/client/assets/{general-DTbdocsc.js → general-C1eIXBGl.js} +1 -1
  87. package/dist/client/assets/{generate-id-DMa8tQ_Y.js → generate-id-CUOrXJD_.js} +1 -1
  88. package/dist/client/assets/{github-repo-picker-BaZinHsd.js → github-repo-picker-CbPGsyKd.js} +1 -1
  89. package/dist/client/assets/{hooks-Bhk1YQ2I.js → hooks-wb_9T_1N.js} +1 -1
  90. package/dist/client/assets/{hover-card-szbVRwlX.js → hover-card-CKXherxT.js} +1 -1
  91. package/dist/client/assets/{index-y9b1xONk.js → index-4hlJQ9pJ.js} +1 -1
  92. package/dist/client/assets/{index-j4kSKfbx.js → index-BcTuPMjJ.js} +1 -1
  93. package/dist/client/assets/{index-BbdQ6KU8.js → index-C4lnfdzw.js} +1 -1
  94. package/dist/client/assets/{index-Dr77wSbz.js → index-C7pSmjIO.js} +1 -1
  95. package/dist/client/assets/{index-Bi14o9BI.js → index-C8daMTSw.js} +1 -1
  96. package/dist/client/assets/{index-DoZOGE8i.js → index-CCOM2TyZ.js} +1 -1
  97. package/dist/client/assets/{index-DbUSKXZz.js → index-CLNFUsz7.js} +1 -1
  98. package/dist/client/assets/{index-cthVMhmX.js → index-CZe7rsCu.js} +1 -1
  99. package/dist/client/assets/{index-CM1D3IOd.js → index-C_etCvW6.js} +2 -2
  100. package/dist/client/assets/{index-C9kZ7-22.js → index-CtrYWx6M.js} +1 -1
  101. package/dist/client/assets/{index-C5X_vClM.js → index-DQI8RGuh.js} +1 -1
  102. package/dist/client/assets/{index-DDxVYHfh.js → index-DTRFlXli.js} +1 -1
  103. package/dist/client/assets/{index-CN3piKjg.js → index-HbdqPSFx.js} +4 -4
  104. package/dist/client/assets/{index-joEaP8qc.js → index-JWYz3SFX.js} +1 -1
  105. package/dist/client/assets/{index-CN1EZuP6.js → index-iXiOYxiI.js} +1 -1
  106. package/dist/client/assets/{index-BNRl1Tot.js → index-oDkRJBov.js} +1 -1
  107. package/dist/client/assets/{infiniteQueryObserver-BThZVpCW.js → infiniteQueryObserver-ClfdJkk7.js} +1 -1
  108. package/dist/client/assets/{input-DrYpnRWV.js → input-CGbgb-E-.js} +1 -1
  109. package/dist/client/assets/{integration-icon-CpEacvrW.js → integration-icon-BruX6m5m.js} +1 -1
  110. package/dist/client/assets/{label-Cm89B89_.js → label-DZerbc9D.js} +1 -1
  111. package/dist/client/assets/{layout-D_sGbaUG.js → layout-BZH9O9Di.js} +1 -1
  112. package/dist/client/assets/{login-B0m7NoXF.js → login-DZffN_aA.js} +1 -1
  113. package/dist/client/assets/{members-TNc3XO9o.js → members-D7h7i7jo.js} +1 -1
  114. package/dist/client/assets/{monaco-editor-DA9r9xlp.js → monaco-editor-5gAmZPD0.js} +1 -1
  115. package/dist/client/assets/{monitoring-stats-row-BAGlU-cw.js → monitoring-stats-row-Bk1ZQbMo.js} +1 -1
  116. package/dist/client/assets/{oauth-callback-Bme8yHJx.js → oauth-callback-BIsI_jqc.js} +1 -1
  117. package/dist/client/assets/{oauth-callback-ai-provider-f1O1WajF.js → oauth-callback-ai-provider-C27n0WFg.js} +1 -1
  118. package/dist/client/assets/{onboarding-CQUJ9k5e.js → onboarding-Ck72MHHt.js} +1 -1
  119. package/dist/client/assets/{org-layout-I5rG58sc.js → org-layout-DKx39VER.js} +1 -1
  120. package/dist/client/assets/{org-plugin-layout-dR6pThVC.js → org-plugin-layout-BaK8uVO_.js} +1 -1
  121. package/dist/client/assets/{pair-DEIG2RgN.js → pair-Cgvtm3hX.js} +1 -1
  122. package/dist/client/assets/{plugin-empty-state-4_sYAII0.js → plugin-empty-state-DDY0jmoN.js} +1 -1
  123. package/dist/client/assets/{plugin-header-BwNgsj_9.js → plugin-header-CtGcek8l.js} +1 -1
  124. package/dist/client/assets/{plugin-layout-7nPkrfcu.js → plugin-layout-oaFFfdTI.js} +1 -1
  125. package/dist/client/assets/{popover-C9ON0IYH.js → popover-xTN6BEZL.js} +1 -1
  126. package/dist/client/assets/{profile-B1MkYulp.js → profile-Bt1eqeyk.js} +1 -1
  127. package/dist/client/assets/{project-app-view-BuPeSGT8.js → project-app-view-C4H7AVbl.js} +1 -1
  128. package/dist/client/assets/registry-BI9574MG.js +2 -0
  129. package/dist/client/assets/{registry-layout-gpmPSOEv.js → registry-layout-COVdyl2V.js} +1 -1
  130. package/dist/client/assets/{required-auth-layout-CUCq1Ujt.js → required-auth-layout-r_pSqbfY.js} +1 -1
  131. package/dist/client/assets/{reset-password-BVGQ_9V7.js → reset-password-C89Bjdhm.js} +1 -1
  132. package/dist/client/assets/{roles-DAPDhbwg.js → roles-Cg2trhAU.js} +1 -1
  133. package/dist/client/assets/{search-input-DKfonUQJ.js → search-input-CjfEjrnk.js} +1 -1
  134. package/dist/client/assets/{secrets-CHWB0VGD.js → secrets-CxfV7l1d.js} +1 -1
  135. package/dist/client/assets/{sections-editor-CeXP_fUW.js → sections-editor-Q3yGyCxb.js} +1 -1
  136. package/dist/client/assets/{select-Bi6n0v1l.js → select-DXIl-nWc.js} +1 -1
  137. package/dist/client/assets/{settings-layout-CCfPNWLq.js → settings-layout-skdEb6EQ.js} +1 -1
  138. package/dist/client/assets/{settings-section-CHdjpjU7.js → settings-section-DRZOyjZN.js} +1 -1
  139. package/dist/client/assets/{shell-controls-EFju5Xuz.js → shell-controls-Bh_0J4mE.js} +1 -1
  140. package/dist/client/assets/{shell-layout-odzNWxkB.js → shell-layout-DX8eVZ8L.js} +1 -1
  141. package/dist/client/assets/{sidebar-DapD5BLH.js → sidebar-BMGvDz3J.js} +1 -1
  142. package/dist/client/assets/{skeleton-BLQ-Z2or.js → skeleton-BNkut-Qo.js} +1 -1
  143. package/dist/client/assets/{sortable.esm-Dvr6sXXz.js → sortable.esm-gCXq3aZO.js} +1 -1
  144. package/dist/client/assets/{spinner-DSdP03Bc.js → spinner-TVmcFRIL.js} +1 -1
  145. package/dist/client/assets/{sso-06euccCF.js → sso-bbmzRIMK.js} +1 -1
  146. package/dist/client/assets/{store-C4RZhwKw.js → store-CioUjuaZ.js} +1 -1
  147. package/dist/client/assets/store-registry-B2Rmo0V0.js +2 -0
  148. package/dist/client/assets/{switch-BOO2ukng.js → switch-khv0BLvL.js} +1 -1
  149. package/dist/client/assets/{table-_uCDG2hl.js → table-C_yNGOnh.js} +1 -1
  150. package/dist/client/assets/{tabs-BQ9tTDv7.js → tabs-DRaRBGe3.js} +1 -1
  151. package/dist/client/assets/{task-status-GEjzAUmm.js → task-status-CkD92yfU.js} +1 -1
  152. package/dist/client/assets/{textarea-DMNeKZeZ.js → textarea-DASnyL4F.js} +1 -1
  153. package/dist/client/assets/{toggle-group-BwRgB5RE.js → toggle-group-DPmEdA-m.js} +1 -1
  154. package/dist/client/assets/{toolbar-ZFFuL6YR.js → toolbar-C9yYx7bm.js} +1 -1
  155. package/dist/client/assets/{tools-list-DXRB9DMK.js → tools-list-psDgt0om.js} +1 -1
  156. package/dist/client/assets/{tooltip-Cc8Oz_Tb.js → tooltip-8OqGw7oG.js} +1 -1
  157. package/dist/client/assets/{types-DETbs5zw.js → types-BmHvFlO1.js} +1 -1
  158. package/dist/client/assets/{use-ai-providers-BFMpjk_o.js → use-ai-providers-CCCd9SIG.js} +1 -1
  159. package/dist/client/assets/{use-collections-CW9RG6h4.js → use-collections-BsrK_euH.js} +1 -1
  160. package/dist/client/assets/{use-connection-BA0O34v3.js → use-connection--tE4CSIP.js} +1 -1
  161. package/dist/client/assets/{use-copy-BI1hoGvu.js → use-copy-CG-PSiHT.js} +1 -1
  162. package/dist/client/assets/{use-create-virtual-mcp-CPLlz8GU.js → use-create-virtual-mcp-DDF2B3SX.js} +1 -1
  163. package/dist/client/assets/{use-debounced-autosave-BwABkJt3.js → use-debounced-autosave-Dj2CoLmA.js} +1 -1
  164. package/dist/client/assets/{use-delete-connection-Dm_6Hsyx.js → use-delete-connection-CDD8AF8I.js} +1 -1
  165. package/dist/client/assets/{use-file-configs-DADtAUxx.js → use-file-configs-B37NAmGU.js} +1 -1
  166. package/dist/client/assets/{use-infinite-scroll-0oj3TOvR.js → use-infinite-scroll-BkFiyWBa.js} +1 -1
  167. package/dist/client/assets/{use-list-state-CCB61-YL.js → use-list-state-BcL02_1r.js} +1 -1
  168. package/dist/client/assets/{use-mcp-prompts-Coi1CKEf.js → use-mcp-prompts-D8zJ1XPI.js} +1 -1
  169. package/dist/client/assets/{use-mcp-tools-DSljy4qc.js → use-mcp-tools-C_ftxwer.js} +1 -1
  170. package/dist/client/assets/{use-members-B1GQuICM.js → use-members-CqC5jIzW.js} +1 -1
  171. package/dist/client/assets/{use-navigate-to-agent-TJFSx1rG.js → use-navigate-to-agent-bdiV5j2z.js} +1 -1
  172. package/dist/client/assets/{use-org-auth-client-CvyxOJ50.js → use-org-auth-client-DtBy8R2R.js} +1 -1
  173. package/dist/client/assets/{use-org-sso-BHhjzT3n.js → use-org-sso-T1wSzyZP.js} +1 -1
  174. package/dist/client/assets/{use-organization-roles-CqvnrNta.js → use-organization-roles-B6nrjgeY.js} +1 -1
  175. package/dist/client/assets/{use-organization-settings-Kf9UVBw8.js → use-organization-settings-CpDAWMUD.js} +1 -1
  176. package/dist/client/assets/{use-registry-connections-CaOaYe6E.js → use-registry-connections-BZm5h5va.js} +1 -1
  177. package/dist/client/assets/{use-secrets-DzvLviXH.js → use-secrets-Bzp6C09M.js} +1 -1
  178. package/dist/client/assets/{use-status-sounds-DAM8WOkV.js → use-status-sounds-BAU2JGUe.js} +1 -1
  179. package/dist/client/assets/{use-view-mode-X_MksRXE.js → use-view-mode-CL1AUq6a.js} +1 -1
  180. package/dist/client/assets/{use-virtual-mcp-2qLUU42J.js → use-virtual-mcp-D92JJRrE.js} +1 -1
  181. package/dist/client/assets/useInfiniteQuery-VRvGrh-Y.js +1 -0
  182. package/dist/client/assets/{useRouterState-D1LxQ93_.js → useRouterState-CFvTFlCq.js} +1 -1
  183. package/dist/client/assets/useSuspenseInfiniteQuery-DWV-fRnj.js +1 -0
  184. package/dist/client/assets/{user-BmoWQK0D.js → user-Cc4_vb_v.js} +1 -1
  185. package/dist/client/assets/{view-mode-toggle-Bt--nFn5.js → view-mode-toggle-B0PLoHTf.js} +1 -1
  186. package/dist/client/assets/workflow-detail-DMN9egvR.js +1 -0
  187. package/dist/client/assets/{workflow-CCgkz7n2.js → workflow-uatlbMiQ.js} +1 -1
  188. package/dist/client/index.html +1 -1
  189. package/dist/server/cli.js +1 -1
  190. package/package.json +1 -1
  191. package/dist/client/assets/registry-BPpui4Vv.js +0 -2
  192. package/dist/client/assets/store-registry-DOjXpenK.js +0 -2
  193. package/dist/client/assets/useInfiniteQuery-6Vl88Gwv.js +0 -1
  194. package/dist/client/assets/useSuspenseInfiniteQuery-Ciek5SC-.js +0 -1
  195. package/dist/client/assets/workflow-detail-C6NUgtqX.js +0 -1
  196. package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
  197. package/dist/server/node_modules/ansi-regex/index.js +0 -14
  198. package/dist/server/node_modules/ansi-regex/license +0 -9
  199. package/dist/server/node_modules/ansi-regex/package.json +0 -61
  200. package/dist/server/node_modules/ansi-regex/readme.md +0 -66
  201. package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
  202. package/dist/server/node_modules/emoji-regex/README.md +0 -107
  203. package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
  204. package/dist/server/node_modules/emoji-regex/index.js +0 -4
  205. package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
  206. package/dist/server/node_modules/emoji-regex/package.json +0 -45
  207. package/dist/server/node_modules/pg-cloudflare/LICENSE +0 -21
  208. package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
  209. package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
  210. package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
  211. package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
  212. package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
  213. package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
  214. package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
  215. package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
  216. package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
  217. package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
  218. package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
  219. package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
  220. package/dist/server/node_modules/pg-connection-string/LICENSE +0 -21
  221. package/dist/server/node_modules/pg-connection-string/README.md +0 -105
  222. package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
  223. package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
  224. package/dist/server/node_modules/pg-connection-string/index.js +0 -231
  225. package/dist/server/node_modules/pg-connection-string/package.json +0 -52
@@ -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-C_etCvW6.js";import{a as f}from"./index-C4lnfdzw.js";import"./index-CCOM2TyZ.js";import"./constants-oggaZSfP.js";import"./collections-DXz0tqzt.js";import"./index-BcTuPMjJ.js";import"./use-virtual-mcp-D92JJRrE.js";import"./use-collections-BsrK_euH.js";import"./monaco-editor-5gAmZPD0.js";import"./select-DXIl-nWc.js";import"./tooltip-8OqGw7oG.js";import"./Check-8Z25AyId.js";import"./ChevronDown-DYIWk9ra.js";import"./ChevronUp-CdhHmg9Y.js";import"./spinner-TVmcFRIL.js";import"./accordion-6vou0XmS.js";import"./agent-icon-CPWEcMkW.js";import"./AlertCircle-B5W8e_5w.js";import"./Tool01-CbzoidXH.js";import"./Stars02-M_tqgIvg.js";import"./SwitchHorizontal01-CJw113gN.js";import"./RefreshCcw01-B7Js0dD2.js";import"./ArrowNarrowLeft-hiT9EAxM.js";import"./XCircle-DvYTE78y.js";import"./ArrowUpRight-BngWaIVR.js";import"./ZapSquare-BQ8gms0B.js";import"./Users03-DGJmr08f.js";import"./CheckCircle-BEasBYv4.js";import"./ChevronRight-C956u55G.js";import"./DotsVertical-BY4pEp3W.js";import"./Container-eQJj-j5B.js";import"./FilterLines-z8ejuVIV.js";import"./Star01-CEifhmiR.js";import"./Palette-Vm3-5yKD.js";import"./HardDrive-C5cYoT_u.js";import"./Key01-D616GLzE.js";import"./LayoutLeft-_rPJ3Xdj.js";import"./LinkExternal01-DxWXfBDh.js";import"./Lock01-BCib8CWc.js";import"./Monitor01-Bz4VCJsr.js";import"./Sun-Ch8hbN6j.js";import"./Play-CKvhUVKq.js";import"./Plus-CpQnzuG3.js";import"./SearchMd-D0mvaU5_.js";import"./Settings02-CNt0vvEu.js";import"./Shield01-CZAvPXer.js";import"./Trash01-CUZkoYoW.js";import"./Upload01-DaqpbIUH.js";import"./User01-CtOhLzXW.js";import"./Users01-DQVYpyq7.js";import"./XClose-wy0ZjI4q.js";import"./X-Coa3_vHC.js";import"./Zap-B74dlfsg.js";import"./index-4hlJQ9pJ.js";import"./badge-BFpOlUFq.js";import"./view-mode-toggle-B0PLoHTf.js";import"./layout-BZH9O9Di.js";import"./index-C7pSmjIO.js";import"./sidebar-BMGvDz3J.js";import"./use-connection--tE4CSIP.js";import"./use-mcp-tools-C_ftxwer.js";import"./dialog-B_fGUV_0.js";import"./index-iXiOYxiI.js";import"./hover-card-CKXherxT.js";import"./dropdown-menu-BUe1eS9C.js";import"./integration-icon-BruX6m5m.js";import"./index-DTRFlXli.js";import"./empty-state-C6lTqnpg.js";import"./create-sse-subscription-CjI9SUTI.js";import"./input-CGbgb-E-.js";function Dt(){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{Dt as default};
@@ -1 +1 @@
1
- import{e as oe,j as t,B as Ce,f as Be,b as ct,q as ze,r as dt,o as Le,D as mt,a as ut,K as Fe,ci as Ke,cj as pt}from"./index-CM1D3IOd.js";import{u as qe,S as Ve}from"./constants-BwYc8BqM.js";import{B as ft,g as Me}from"./generate-id-DMa8tQ_Y.js";import{C as Qe}from"./collection-display-button-DO9Uub4Z.js";import{C as ht}from"./collection-search-CgHA_hw5.js";import{C as gt}from"./card-CzmU6DPx.js";import{I as Ge}from"./integration-icon-CpEacvrW.js";import{D as He,a as Je,b as Ye,c as O}from"./dropdown-menu-C_xsx5zL.js";import{s as Xe,a as Ze}from"./RefreshCcw01-DYeBzgxl.js";import{i as et}from"./DotsVertical-DwV108_Y.js";import{i as tt}from"./Tool01-Cr9-Ayar.js";import{s as st}from"./Trash01-Bdgng8Ny.js";import{C as xt}from"./collection-table-wrapper-DrLHkx2B.js";import{E as Ue}from"./empty-state-DTm9XCIk.js";import{n as We}from"./Stars02-DjyZ6rm8.js";import{U as jt}from"./user-BmoWQK0D.js";import{E as it}from"./empty-state-CewyMuo1.js";import{u as Ct}from"./use-list-state-CCB61-YL.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-CBfLU0-s.js";import{a as It,b as At}from"./use-collections-CW9RG6h4.js";import{a as Tt}from"./use-connection-BA0O34v3.js";import{s as Et}from"./Plus-CuU_Vn1V.js";import{a as Ot}from"./layout-D_sGbaUG.js";import{P as je}from"./index-Dr77wSbz.js";import"./collections-DVQWcwMA.js";import"./SwitchHorizontal01-CoAD8Pso.js";import"./Check-BwR-n-sF.js";import"./tooltip-Cc8Oz_Tb.js";import"./view-mode-toggle-Bt--nFn5.js";import"./badge-DYaA3f0o.js";import"./SearchMd-YL-AZ1_e.js";import"./Container-2b4BXA-n.js";import"./agent-icon-BbgplFYb.js";import"./AlertCircle-BT4KzWnI.js";import"./ArrowNarrowLeft-DL6IklHf.js";import"./XCircle-D4gl9x0F.js";import"./ArrowUpRight-CuD8Ec0Q.js";import"./ZapSquare-C-QuJXiX.js";import"./Users03-BScPbfBT.js";import"./CheckCircle-CeozB0CE.js";import"./ChevronDown-NgrGgemj.js";import"./ChevronRight-DzTdh7eY.js";import"./ChevronUp-O1681VYk.js";import"./FilterLines-DOivCNH_.js";import"./Star01-B9_yj21o.js";import"./Palette-CDAteqS3.js";import"./HardDrive-Cj4eW7va.js";import"./Key01-BQUJeWtG.js";import"./LayoutLeft-BtnBeX4Q.js";import"./LinkExternal01-gSnFHviP.js";import"./Lock01-CLcwdBbZ.js";import"./Monitor01-B72KxmOA.js";import"./Sun-D3nbZYnT.js";import"./Play-3lq0IL_j.js";import"./Settings02-CmAK-JQC.js";import"./Shield01-DWmt0CsN.js";import"./Upload01-DEH4hqbP.js";import"./User01-DvR2FzxS.js";import"./Users01-DKVYUvbH.js";import"./XClose-8wwGH-xu.js";import"./X-BpMfki2j.js";import"./Zap-DGOMtCmx.js";import"./table-_uCDG2hl.js";import"./avatar-DeKO2t6e.js";import"./use-view-mode-X_MksRXE.js";import"./sidebar-DapD5BLH.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 u;e[5]!==r||e[6]!==s.title?(u=t.jsx(Ge,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=u):u=e[7];let m;e[8]!==s.title?(m=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=m):m=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 v;e[12]!==m||e[13]!==a?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[m,a]}),e[12]=m,e[13]=a,e[14]=v):v=e[14];let y;e[15]!==u||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=y):y=e[17];let b;e[18]!==n||e[19]!==o||e[20]!==s?(b=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Ft,children:t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Lt,children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Xe,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(tt,{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]=b):b=e[21];let x;return e[22]!==y||e[23]!==b?(x=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,b]}),e[22]=y,e[23]=b,e[24]=x):x=e[24],x}function 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:u,headerActions:m,emptyState:f,readOnly:a,columns:v,hideToolbar:y,sortableFields:b}=i,x=p===void 0?"asc":p,g=d===void 0?Vt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=u===void 0?qt:u,E=m===void 0?null:m,N=f===void 0?null:f,k=a===void 0?!1:a,j=v===void 0?void 0:v,z=y===void 0?!1:y,P=b===void 0?void 0:b;let D;e[2]!==j||e[3]!==l||e[4]!==P?(D=j?j.filter(Bt).filter(A=>!P||P.includes(A.id)).map(Rt):ot(l,P),e[2]=j,e[3]=l,e[4]=P,e[5]=D):D=e[5];const w=D;let S;e[6]!==E||e[7]!==z||e[8]!==g||e[9]!==x||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Qe,{sortKey:r,sortDirection:x,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=x,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==h||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==c||e[22]!==x||e[23]!==r||e[24]!==P||e[25]!==n?(_=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description: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(j,l,P,h),data:s,sortKey:r,sortDirection:x,onSort:g,onRowClick:T,emptyState:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}),e[13]=h,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=c,e[22]=x,e[23]=r,e[24]=P,e[25]=n,e[26]=_):_=e[26];let I;return e[27]!==S||e[28]!==_?(I=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[S,_]}),e[27]=S,e[28]=_,e[29]=I):I=e[29],I}function Rt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function Bt(i){return i.sortable!==!1}function qt(){}function Vt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Xe,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(tt,{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 u=s[o];return u&&nt(u)}),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,u)=>o.localeCompare(u));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 u=s[o],m=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:m,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:m,cellClassName:"max-w-[250px]"}:u?.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:m,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:m,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 Jt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,p=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,u=n.hasDeleteTool,m=Be(),{data:f}=ct.useSession(),a=f?.user?.id||"unknown",v=Tt(s);let y;e[0]!==v||e[1]!==s?(y=v?bt(v):s,e[0]=v,e[1]=s,e[2]=y):y=e[2];const b=y,{org:x}=ze();let g;e[3]!==s||e[4]!==x.id||e[5]!==x.slug?(g={connectionId:s,orgId:x.id,orgSlug:x.slug},e[3]=s,e[4]=x.id,e[5]=x.slug,e[6]=g):g=e[6];const $=qe(g),h=It(s,r,$),T=`${s}-${r}`;let E;e[7]!==l||e[8]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[7]=l,e[8]=T,e[9]=E):E=e[9];const{search:N,searchTerm:k,setSearch:j,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[10]!==k||e[11]!==w||e[12]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[10]=k,e[11]=w,e[12]=D,e[13]=_):_=e[13];const I=At(s,r,$,_),A=!d&&!o&&!u;let ne;e[14]!==b||e[15]!==r||e[16]!==m||e[17]!==c||e[18]!==l?(ne=C=>{if(c){c(C);return}m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:C.id}})},e[14]=b,e[15]=r,e[16]=m,e[17]=c,e[18]=l,e[19]=ne):ne=e[19];const L=ne;let re;e[20]!==h.create||e[21]!==a?(re=async C=>{const xe=new Date().toISOString();await h.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:a,updated_by:a})},e[20]=h.create,e[21]=a,e[22]=re):re=e[22];const be=re,[F,ve]=dt.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const rt=le;let K;e[24]!==L||e[25]!==o?(K=o&&{edit:L},e[24]=L,e[25]=o,e[26]=K):K=e[26];let M;e[27]!==be||e[28]!==d?(M=d&&{duplicate:be},e[27]=be,e[28]=d,e[29]=M):M=e[29];let U;e[30]!==u?(U=u&&{delete:rt},e[30]=u,e[31]=U):U=e[31];let ae;e[32]!==M||e[33]!==U||e[34]!==K?(ae={...K,...M,...U},e[32]=M,e[33]=U,e[34]=K,e[35]=ae):ae=e[35];const ye=ae;let ce;e[36]!==h.delete||e[37]!==F?(ce=async()=>{F&&(await h.delete.mutateAsync(F.id),ve(null))},e[36]=h.delete,e[37]=F,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==h.create||e[40]!==b||e[41]!==r||e[42]!==d||e[43]!==m||e[44]!==l||e[45]!==a?(de=async()=>{if(!d){Le.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:a,updated_by:a};try{const ke=await h.create.mutateAsync(xe);m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[39]=h.create,e[40]=b,e[41]=r,e[42]=d,e[43]=m,e[44]=l,e[45]=a,e[46]=de):de=e[46];const we=de;let me;e[47]!==p?(me=ot(p),e[47]=p,e[48]=me):me=e[48];const Se=me,lt=(I?.length??0)>0,at=d&&!lt&&!N;let ue;e[49]!==h.create||e[50]!==we||e[51]!==d?(ue=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[49]=h.create,e[50]=we,e[51]=d,e[52]=ue):ue=e[52];const pe=ue,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Qe,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[53]=S,e[54]=w,e[55]=Se,e[56]=Pe,e[57]=W):W=e[57];const _e=`Search ${r}...`;let R;e[58]!==j?(R=C=>{C.key==="Escape"&&(j(""),C.target.blur())},e[58]=j,e[59]=R):R=e[59];let B;e[60]!==N||e[61]!==j||e[62]!==_e||e[63]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:j,placeholder:_e,onKeyDown:R})}),e[60]=N,e[61]=j,e[62]=_e,e[63]=R,e[64]=B):B=e[64];let q;e[65]!==pe||e[66]!==d?(q=d&&t.jsx("div",{className:"pr-3",children:pe}),e[65]=pe,e[66]=d,e[67]=q):q=e[67];let V;e[68]!==B||e[69]!==q?(V=t.jsxs("div",{className:"flex items-center gap-2",children:[B,q]}),e[68]=B,e[69]=q,e[70]=V):V=e[70];let Q;e[71]!==I?(Q=I??[],e[71]=I,e[72]=Q):Q=e[72];const De=D;let G;e[73]!==L?(G=C=>L(C),e[73]=L,e[74]=G):G=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?pe:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=H):H=e[78];let J;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==p||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==Q||e[88]!==De||e[89]!==G||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:Q,schema:p,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:G,readOnly:A,emptyState:H})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=p,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=Q,e[88]=De,e[89]=G,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==V||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,J]}),e[93]=V,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!F;let fe;e[96]===Symbol.for("react.memo_cache_sentinel")?(fe=C=>{C||ve(null)},e[96]=fe):fe=e[96];let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[97]=he):he=e[97];const Oe=F?.title;let X;e[98]!==Oe?(X=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[98]=Oe,e[99]=X):X=e[99];let Z;e[100]!==h.delete.isPending?(Z=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[100]=h.delete.isPending,e[101]=Z):Z=e[101];const $e=h.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==h.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=h.delete.isPending,e[103]=Ne,e[104]=$e,e[105]=ee):ee=e[105];let te;e[106]!==Z||e[107]!==ee?(te=t.jsxs(Pt,{children:[Z,ee]}),e[106]=Z,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==X||e[110]!==te?(se=t.jsxs(_t,{children:[X,te]}),e[109]=X,e[110]=te,e[111]=se):se=e[111];let ie;e[112]!==Ee||e[113]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[112]=Ee,e[113]=se,e[114]=ie):ie=e[114];let ge;return e[115]!==W||e[116]!==Y||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,Y,ie]}),e[115]=W,e[116]=Y,e[117]=ie,e[118]=ge):ge=e[118],ge}function Yt(){const i=oe.c(13),{org:e,project:s}=ze(),l=mt();let n;i[0]!==e.id||i[1]!==e.slug?(n={connectionId:Ve,orgId:e.id,orgSlug:e.slug},i[0]=e.id,i[1]=e.slug,i[2]=n):n=i[2];const c=qe(n);let r;i[3]!==c||i[4]!==s?(r=async u=>{const m=s.enabledPlugins??[];if(m.includes(u))return;const f=[...m,u],a=await c.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s.id,data:{metadata:{enabled_plugins:f}}}});return a.structuredContent??a},i[3]=c,i[4]=s,i[5]=r):r=i[5];let p;i[6]!==e.id||i[7]!==s||i[8]!==l?(p=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[6]=e.id,i[7]=s,i[8]=l,i[9]=p):p=i[9];let d;return i[10]!==r||i[11]!==p?(d={mutationFn:r,onSuccess:p,onError:Xt},i[10]=r,i[11]=p,i[12]=d):d=i[12],ut(d)}function Xt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Zt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Yt();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,u=r.isPending?"Enabling…":"Enable plugin";let m;e[3]!==r.isPending||e[4]!==d||e[5]!==u?(m=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:u}),e[3]=r.isPending,e[4]=d,e[5]=u,e[6]=m):m=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==m||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:m}),e[7]=n,e[8]=o,e[9]=m,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function hi(){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(Zt,{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(Jt,{connectionId:Ve,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{hi as default};
1
+ import{e as oe,j as t,B as Ce,f as Be,b as ct,q as ze,r as dt,o as Le,D as mt,a as ut,K as Fe,ci as Ke,cj as pt}from"./index-C_etCvW6.js";import{u as qe,S as Ve}from"./constants-oggaZSfP.js";import{B as ft,g as Me}from"./generate-id-CUOrXJD_.js";import{C as Qe}from"./collection-display-button-DMY0cf-y.js";import{C as ht}from"./collection-search-XjYetQA3.js";import{C as gt}from"./card-Cd_hFdRe.js";import{I as Ge}from"./integration-icon-BruX6m5m.js";import{D as He,a as Je,b as Ye,c as O}from"./dropdown-menu-BUe1eS9C.js";import{s as Xe,a as Ze}from"./RefreshCcw01-B7Js0dD2.js";import{i as et}from"./DotsVertical-BY4pEp3W.js";import{i as tt}from"./Tool01-CbzoidXH.js";import{s as st}from"./Trash01-CUZkoYoW.js";import{C as xt}from"./collection-table-wrapper-CqVfrSyn.js";import{E as Ue}from"./empty-state-C6lTqnpg.js";import{n as We}from"./Stars02-M_tqgIvg.js";import{U as jt}from"./user-Cc4_vb_v.js";import{E as it}from"./empty-state-DUBPA5NU.js";import{u as Ct}from"./use-list-state-BcL02_1r.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-jgkN1ow8.js";import{a as It,b as At}from"./use-collections-BsrK_euH.js";import{a as Tt}from"./use-connection--tE4CSIP.js";import{s as Et}from"./Plus-CpQnzuG3.js";import{a as Ot}from"./layout-BZH9O9Di.js";import{P as je}from"./index-C7pSmjIO.js";import"./collections-DXz0tqzt.js";import"./SwitchHorizontal01-CJw113gN.js";import"./Check-8Z25AyId.js";import"./tooltip-8OqGw7oG.js";import"./view-mode-toggle-B0PLoHTf.js";import"./badge-BFpOlUFq.js";import"./SearchMd-D0mvaU5_.js";import"./Container-eQJj-j5B.js";import"./agent-icon-CPWEcMkW.js";import"./AlertCircle-B5W8e_5w.js";import"./ArrowNarrowLeft-hiT9EAxM.js";import"./XCircle-DvYTE78y.js";import"./ArrowUpRight-BngWaIVR.js";import"./ZapSquare-BQ8gms0B.js";import"./Users03-DGJmr08f.js";import"./CheckCircle-BEasBYv4.js";import"./ChevronDown-DYIWk9ra.js";import"./ChevronRight-C956u55G.js";import"./ChevronUp-CdhHmg9Y.js";import"./FilterLines-z8ejuVIV.js";import"./Star01-CEifhmiR.js";import"./Palette-Vm3-5yKD.js";import"./HardDrive-C5cYoT_u.js";import"./Key01-D616GLzE.js";import"./LayoutLeft-_rPJ3Xdj.js";import"./LinkExternal01-DxWXfBDh.js";import"./Lock01-BCib8CWc.js";import"./Monitor01-Bz4VCJsr.js";import"./Sun-Ch8hbN6j.js";import"./Play-CKvhUVKq.js";import"./Settings02-CNt0vvEu.js";import"./Shield01-CZAvPXer.js";import"./Upload01-DaqpbIUH.js";import"./User01-CtOhLzXW.js";import"./Users01-DQVYpyq7.js";import"./XClose-wy0ZjI4q.js";import"./X-Coa3_vHC.js";import"./Zap-B74dlfsg.js";import"./table-C_yNGOnh.js";import"./avatar-vA2R8qEK.js";import"./use-view-mode-CL1AUq6a.js";import"./sidebar-BMGvDz3J.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 u;e[5]!==r||e[6]!==s.title?(u=t.jsx(Ge,{icon:r,name:s.title,size:"md",className:"shrink-0 shadow-sm"}),e[5]=r,e[6]=s.title,e[7]=u):u=e[7];let m;e[8]!==s.title?(m=t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:s.title}),e[8]=s.title,e[9]=m):m=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 v;e[12]!==m||e[13]!==a?(v=t.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[m,a]}),e[12]=m,e[13]=a,e[14]=v):v=e[14];let y;e[15]!==u||e[16]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-4 p-6 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=y):y=e[17];let b;e[18]!==n||e[19]!==o||e[20]!==s?(b=o&&t.jsx("div",{className:"absolute top-6 right-6 sm:opacity-0 sm:group-hover:opacity-100 transition-opacity",onClick:Kt,onMouseDown:Ft,children:t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:Lt,children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:zt,children:[n.open&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.open?.(s)},children:[t.jsx(Xe,{size:16}),"Open"]}),n.edit&&t.jsxs(O,{onClick:g=>{g.stopPropagation(),n.edit?.(s)},children:[t.jsx(tt,{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]=b):b=e[21];let x;return e[22]!==y||e[23]!==b?(x=t.jsxs(gt,{className:"cursor-pointer transition-colors hover:bg-accent/50 h-full flex flex-col group relative",children:[y,b]}),e[22]=y,e[23]=b,e[24]=x):x=e[24],x}function 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:u,headerActions:m,emptyState:f,readOnly:a,columns:v,hideToolbar:y,sortableFields:b}=i,x=p===void 0?"asc":p,g=d===void 0?Vt:d;let $;e[0]!==o?($=o===void 0?{}:o,e[0]=o,e[1]=$):$=e[1];const h=$,T=u===void 0?qt:u,E=m===void 0?null:m,N=f===void 0?null:f,k=a===void 0?!1:a,j=v===void 0?void 0:v,z=y===void 0?!1:y,P=b===void 0?void 0:b;let D;e[2]!==j||e[3]!==l||e[4]!==P?(D=j?j.filter(Bt).filter(A=>!P||P.includes(A.id)).map(Rt):ot(l,P),e[2]=j,e[3]=l,e[4]=P,e[5]=D):D=e[5];const w=D;let S;e[6]!==E||e[7]!==z||e[8]!==g||e[9]!==x||e[10]!==r||e[11]!==w?(S=!z&&t.jsx("div",{className:"shrink-0 w-full border-b border-border h-12",children:t.jsxs("div",{className:"flex items-center gap-3 h-12 px-4",children:[t.jsx("div",{className:"flex items-center gap-2 flex-1",children:E}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(Qe,{sortKey:r,sortDirection:x,onSort:g,sortOptions:w})})]})}),e[6]=E,e[7]=z,e[8]=g,e[9]=x,e[10]=r,e[11]=w,e[12]=S):S=e[12];let _;e[13]!==h||e[14]!==j||e[15]!==s||e[16]!==N||e[17]!==T||e[18]!==g||e[19]!==k||e[20]!==l||e[21]!==c||e[22]!==x||e[23]!==r||e[24]!==P||e[25]!==n?(_=n==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:s.length===0?t.jsx("div",{className:"flex items-center justify-center h-full",children:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description: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(j,l,P,h),data:s,sortKey:r,sortDirection:x,onSort:g,onRowClick:T,emptyState:N||t.jsx(Ue,{icon:t.jsx(We,{size:36,className:"text-muted-foreground"}),title:"No items found",description:c?"Try adjusting your search":"No items to display"})}),e[13]=h,e[14]=j,e[15]=s,e[16]=N,e[17]=T,e[18]=g,e[19]=k,e[20]=l,e[21]=c,e[22]=x,e[23]=r,e[24]=P,e[25]=n,e[26]=_):_=e[26];let I;return e[27]!==S||e[28]!==_?(I=t.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[S,_]}),e[27]=S,e[28]=_,e[29]=I):I=e[29],I}function Rt(i){return{id:i.id,label:typeof i.header=="string"?i.header:i.id}}function Bt(i){return i.sortable!==!1}function qt(){}function Vt(){}function Qt(i){return{id:"actions",header:"",render:e=>t.jsxs(He,{children:[t.jsx(Je,{asChild:!0,children:t.jsx(Ce,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:s=>s.stopPropagation(),children:t.jsx(et,{size:20})})}),t.jsxs(Ye,{align:"end",onClick:s=>s.stopPropagation(),children:[i.open&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.open?.(e)},children:[t.jsx(Xe,{size:16}),"Open"]}),i.edit&&t.jsxs(O,{onClick:s=>{s.stopPropagation(),i.edit?.(e)},children:[t.jsx(tt,{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 u=s[o];return u&&nt(u)}),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,u)=>o.localeCompare(u));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 u=s[o],m=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:m,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:m,cellClassName:"max-w-[250px]"}:u?.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:m,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:m,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 Jt(i){const e=oe.c(119),{connectionId:s,org:l,activeCollection:n,onItemClick:c}=i,r=n.name,p=n.schema??ft,d=n.hasCreateTool,o=n.hasUpdateTool,u=n.hasDeleteTool,m=Be(),{data:f}=ct.useSession(),a=f?.user?.id||"unknown",v=Tt(s);let y;e[0]!==v||e[1]!==s?(y=v?bt(v):s,e[0]=v,e[1]=s,e[2]=y):y=e[2];const b=y,{org:x}=ze();let g;e[3]!==s||e[4]!==x.id||e[5]!==x.slug?(g={connectionId:s,orgId:x.id,orgSlug:x.slug},e[3]=s,e[4]=x.id,e[5]=x.slug,e[6]=g):g=e[6];const $=qe(g),h=It(s,r,$),T=`${s}-${r}`;let E;e[7]!==l||e[8]!==T?(E={namespace:l,resource:T,defaultSortKey:"updated_at"},e[7]=l,e[8]=T,e[9]=E):E=e[9];const{search:N,searchTerm:k,setSearch:j,viewMode:z,setViewMode:P,sortKey:D,sortDirection:w,handleSort:S}=Ct(E);let _;e[10]!==k||e[11]!==w||e[12]!==D?(_={searchTerm:k,sortKey:D,sortDirection:w},e[10]=k,e[11]=w,e[12]=D,e[13]=_):_=e[13];const I=At(s,r,$,_),A=!d&&!o&&!u;let ne;e[14]!==b||e[15]!==r||e[16]!==m||e[17]!==c||e[18]!==l?(ne=C=>{if(c){c(C);return}m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:C.id}})},e[14]=b,e[15]=r,e[16]=m,e[17]=c,e[18]=l,e[19]=ne):ne=e[19];const L=ne;let re;e[20]!==h.create||e[21]!==a?(re=async C=>{const xe=new Date().toISOString();await h.create.mutateAsync({...C,id:Me("conn"),title:`${C.title} (Copy)`,created_at:xe,updated_at:xe,created_by:a,updated_by:a})},e[20]=h.create,e[21]=a,e[22]=re):re=e[22];const be=re,[F,ve]=dt.useState(null);let le;e[23]===Symbol.for("react.memo_cache_sentinel")?(le=C=>{ve(C)},e[23]=le):le=e[23];const rt=le;let K;e[24]!==L||e[25]!==o?(K=o&&{edit:L},e[24]=L,e[25]=o,e[26]=K):K=e[26];let M;e[27]!==be||e[28]!==d?(M=d&&{duplicate:be},e[27]=be,e[28]=d,e[29]=M):M=e[29];let U;e[30]!==u?(U=u&&{delete:rt},e[30]=u,e[31]=U):U=e[31];let ae;e[32]!==M||e[33]!==U||e[34]!==K?(ae={...K,...M,...U},e[32]=M,e[33]=U,e[34]=K,e[35]=ae):ae=e[35];const ye=ae;let ce;e[36]!==h.delete||e[37]!==F?(ce=async()=>{F&&(await h.delete.mutateAsync(F.id),ve(null))},e[36]=h.delete,e[37]=F,e[38]=ce):ce=e[38];const Ne=ce;let de;e[39]!==h.create||e[40]!==b||e[41]!==r||e[42]!==d||e[43]!==m||e[44]!==l||e[45]!==a?(de=async()=>{if(!d){Le.error("Create operation is not available for this collection");return}const C=new Date().toISOString(),xe={id:Me("conn"),title:"New Item",description:"A brief description of the item",created_at:C,updated_at:C,created_by:a,updated_by:a};try{const ke=await h.create.mutateAsync(xe);m({to:"/$org/settings/connections/$appSlug/$collectionName/$itemId",params:{org:l,appSlug:b,collectionName:r,itemId:ke.id}})}catch(ke){console.error("Failed to create item:",ke)}},e[39]=h.create,e[40]=b,e[41]=r,e[42]=d,e[43]=m,e[44]=l,e[45]=a,e[46]=de):de=e[46];const we=de;let me;e[47]!==p?(me=ot(p),e[47]=p,e[48]=me):me=e[48];const Se=me,lt=(I?.length??0)>0,at=d&&!lt&&!N;let ue;e[49]!==h.create||e[50]!==we||e[51]!==d?(ue=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[49]=h.create,e[50]=we,e[51]=d,e[52]=ue):ue=e[52];const pe=ue,Pe=D;let W;e[53]!==S||e[54]!==w||e[55]!==Se||e[56]!==Pe?(W=t.jsx(Ot,{children:t.jsx(Qe,{sortKey:Pe,sortDirection:w,onSort:S,sortOptions:Se})}),e[53]=S,e[54]=w,e[55]=Se,e[56]=Pe,e[57]=W):W=e[57];const _e=`Search ${r}...`;let R;e[58]!==j?(R=C=>{C.key==="Escape"&&(j(""),C.target.blur())},e[58]=j,e[59]=R):R=e[59];let B;e[60]!==N||e[61]!==j||e[62]!==_e||e[63]!==R?(B=t.jsx("div",{className:"flex-1",children:t.jsx(ht,{value:N,onChange:j,placeholder:_e,onKeyDown:R})}),e[60]=N,e[61]=j,e[62]=_e,e[63]=R,e[64]=B):B=e[64];let q;e[65]!==pe||e[66]!==d?(q=d&&t.jsx("div",{className:"pr-3",children:pe}),e[65]=pe,e[66]=d,e[67]=q):q=e[67];let V;e[68]!==B||e[69]!==q?(V=t.jsxs("div",{className:"flex items-center gap-2",children:[B,q]}),e[68]=B,e[69]=q,e[70]=V):V=e[70];let Q;e[71]!==I?(Q=I??[],e[71]=I,e[72]=Q):Q=e[72];const De=D;let G;e[73]!==L?(G=C=>L(C),e[73]=L,e[74]=G):G=e[74];const Ie="No items found",Ae=N?"Try adjusting your search terms":"This collection doesn't have any items yet.",Te=at?pe:void 0;let H;e[75]!==Ie||e[76]!==Ae||e[77]!==Te?(H=t.jsx(it,{image:null,title:Ie,description:Ae,actions:Te}),e[75]=Ie,e[76]=Ae,e[77]=Te,e[78]=H):H=e[78];let J;e[79]!==S||e[80]!==A||e[81]!==ye||e[82]!==p||e[83]!==N||e[84]!==j||e[85]!==P||e[86]!==w||e[87]!==Q||e[88]!==De||e[89]!==G||e[90]!==H||e[91]!==z?(J=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(Wt,{hideToolbar:!0,data:Q,schema:p,viewMode:z,onViewModeChange:P,search:N,onSearchChange:j,sortKey:De,sortDirection:w,onSort:S,actions:ye,onItemClick:G,readOnly:A,emptyState:H})}),e[79]=S,e[80]=A,e[81]=ye,e[82]=p,e[83]=N,e[84]=j,e[85]=P,e[86]=w,e[87]=Q,e[88]=De,e[89]=G,e[90]=H,e[91]=z,e[92]=J):J=e[92];let Y;e[93]!==V||e[94]!==J?(Y=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,J]}),e[93]=V,e[94]=J,e[95]=Y):Y=e[95];const Ee=!!F;let fe;e[96]===Symbol.for("react.memo_cache_sentinel")?(fe=C=>{C||ve(null)},e[96]=fe):fe=e[96];let he;e[97]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(Nt,{children:"Delete item?"}),e[97]=he):he=e[97];const Oe=F?.title;let X;e[98]!==Oe?(X=t.jsxs(wt,{children:[he,t.jsxs(St,{children:['Are you sure you want to delete "',Oe,'"? This action cannot be undone.']})]}),e[98]=Oe,e[99]=X):X=e[99];let Z;e[100]!==h.delete.isPending?(Z=t.jsx(vt,{disabled:h.delete.isPending,children:"Cancel"}),e[100]=h.delete.isPending,e[101]=Z):Z=e[101];const $e=h.delete.isPending?"Deleting...":"Delete";let ee;e[102]!==h.delete.isPending||e[103]!==Ne||e[104]!==$e?(ee=t.jsx(yt,{onClick:Ne,disabled:h.delete.isPending,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:$e}),e[102]=h.delete.isPending,e[103]=Ne,e[104]=$e,e[105]=ee):ee=e[105];let te;e[106]!==Z||e[107]!==ee?(te=t.jsxs(Pt,{children:[Z,ee]}),e[106]=Z,e[107]=ee,e[108]=te):te=e[108];let se;e[109]!==X||e[110]!==te?(se=t.jsxs(_t,{children:[X,te]}),e[109]=X,e[110]=te,e[111]=se):se=e[111];let ie;e[112]!==Ee||e[113]!==se?(ie=t.jsx(Dt,{open:Ee,onOpenChange:fe,children:se}),e[112]=Ee,e[113]=se,e[114]=ie):ie=e[114];let ge;return e[115]!==W||e[116]!==Y||e[117]!==ie?(ge=t.jsxs(t.Fragment,{children:[W,Y,ie]}),e[115]=W,e[116]=Y,e[117]=ie,e[118]=ge):ge=e[118],ge}function Yt(){const i=oe.c(13),{org:e,project:s}=ze(),l=mt();let n;i[0]!==e.id||i[1]!==e.slug?(n={connectionId:Ve,orgId:e.id,orgSlug:e.slug},i[0]=e.id,i[1]=e.slug,i[2]=n):n=i[2];const c=qe(n);let r;i[3]!==c||i[4]!==s?(r=async u=>{const m=s.enabledPlugins??[];if(m.includes(u))return;const f=[...m,u],a=await c.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s.id,data:{metadata:{enabled_plugins:f}}}});return a.structuredContent??a},i[3]=c,i[4]=s,i[5]=r):r=i[5];let p;i[6]!==e.id||i[7]!==s||i[8]!==l?(p=()=>{l.invalidateQueries({queryKey:Fe.project(e.id,s.slug)}),l.invalidateQueries({queryKey:Fe.projects(e.id)})},i[6]=e.id,i[7]=s,i[8]=l,i[9]=p):p=i[9];let d;return i[10]!==r||i[11]!==p?(d={mutationFn:r,onSuccess:p,onError:Xt},i[10]=r,i[11]=p,i[12]=d):d=i[12],ut(d)}function Xt(i){Le.error("Failed to enable plugin: "+(i instanceof Error?i.message:"Unknown error"))}function Zt(i){const e=oe.c(12),{pluginId:s,title:l,description:n,icon:c}=i,r=Yt();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,u=r.isPending?"Enabling…":"Enable plugin";let m;e[3]!==r.isPending||e[4]!==d||e[5]!==u?(m=t.jsx(Ce,{onClick:d,disabled:r.isPending,children:u}),e[3]=r.isPending,e[4]=d,e[5]=u,e[6]=m):m=e[6];let f;return e[7]!==n||e[8]!==o||e[9]!==m||e[10]!==l?(f=t.jsx(it,{image:o,title:l,description:n,actions:m}),e[7]=n,e[8]=o,e[9]=m,e[10]=l,e[11]=f):f=e[11],f}const es={name:"WORKFLOW",displayName:"Workflow",hasCreateTool:!0,hasUpdateTool:!0,hasDeleteTool:!0};function hi(){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(Zt,{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(Jt,{connectionId:Ve,org:e.slug,activeCollection:es,onItemClick:c=>n({to:"/$org/settings/workflows/$itemId",params:{org:e.slug,itemId:c.id}})})})})}export{hi as default};
@@ -33,7 +33,7 @@
33
33
  <meta name="twitter:image" content="/og-image.png" />
34
34
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
35
35
  <link rel="manifest" href="/manifest.webmanifest" />
36
- <script type="module" crossorigin src="/assets/index-CM1D3IOd.js"></script>
36
+ <script type="module" crossorigin src="/assets/index-C_etCvW6.js"></script>
37
37
  <link rel="stylesheet" crossorigin href="/assets/index-Di2g24XJ.css">
38
38
  </head>
39
39
  <body>
@@ -76126,7 +76126,7 @@ AS SELECT
76126
76126
  FROM monitoring_metrics
76127
76127
  GROUP BY organization_id, name, bucket, connection_id, tool_name, status
76128
76128
  `}),console.log("[clickhouse-schema] monitoring_metrics_rollup_1m_mv view ready")}finally{await f.close()}}catch(u){console.error("[clickhouse-schema] Failed to create rollup DDL (queries will fall back to raw table):",u)}}async function uz0($){let u={...process.env},f=gD0($,u),X=f.settings.encryptionKey;console.log(`[settings] ENCRYPTION_KEY = ${JSON.stringify(X)} (${X.length} chars)`);let{ensureServices:w}=await Promise.resolve().then(() => (Wl(),Zl)),{outputs:J,services:E}=await w({home:f.settings.dataDir,externalDatabaseUrl:f.externalDatabaseUrl,externalNatsUrl:f.externalNatsUrl});if(!f.skipMigrations){let{migrateBetterAuth:Y}=await Promise.resolve().then(() => (o81(),BD4));await Y(J.databaseUrl);let{createDatabase:Z}=await Promise.resolve().then(() => (kQ(),vD4)),{migrateToLatest:W}=await Promise.resolve().then(() => ($_4(),eH4)),G=Z(J.databaseUrl);await W({keepOpen:!0,database:G,skipBetterAuth:!0})}if(f.settings.clickhouseUrl){let{ensureClickHouseRollup:Y}=await Promise.resolve().then(() => uj4);await Y(f.settings.clickhouseUrl)}let Q={...f.settings,databaseUrl:J.databaseUrl,natsUrls:J.natsUrls};return mx1(Q),{settings:Q,services:E.map((Y)=>({name:Y.name==="PostgreSQL"?"Postgres":Y.name,port:Y.port})),managedServiceNames:E.filter((Y)=>Y.owner==="managed").map((Y)=>Y.name)}}var rY1=U(()=>{Yo0();Kf()});var wz0={};D1(wz0,{updateService:()=>zL,toggleViewMode:()=>pY1,toggleVibeState:()=>sY1,toggleLogFlow:()=>oY1,subscribeCliState:()=>g30,setVibe:()=>Sdu,setTuiConsoleIntercepted:()=>fz0,setServerUrl:()=>b30,setMigrationsDone:()=>V30,setEnv:()=>i30,setDevMode:()=>Adu,setDataDir:()=>Idu,isTuiConsoleIntercepted:()=>Xz0,getCliState:()=>y30,addLogEntry:()=>PB});function QZ(){for(let $ of aY1)$()}function y30(){return Jf}function g30($){return aY1.add($),()=>aY1.delete($)}function zL($){Jf={...Jf,services:Jf.services.map((u)=>u.name===$.name?$:u)},QZ()}function V30(){Jf={...Jf,migrationsStatus:"done"},QZ()}function b30($){Jf={...Jf,serverUrl:$},QZ()}function i30($){Jf={...Jf,env:$},QZ()}function PB($){let u=[...Jf.logs,$];Jf={...Jf,logs:u.length>500?u.slice(-500):u},QZ()}function Adu($={}){Jf={...Jf,services:[...Jf.services,{name:"Vite",status:"pending",port:0},...$.localSandboxProvider?[{name:"Sandbox",status:"pending",port:0}]:[]]},QZ()}function pY1(){Jf={...Jf,viewMode:Jf.viewMode==="requests"?"config":"requests"},QZ()}function oY1(){Jf={...Jf,logFlow:!Jf.logFlow},QZ()}function Idu($){Jf={...Jf,dataDir:$},QZ()}function Sdu($){Jf={...Jf,vibe:$},QZ()}function sY1(){Jf={...Jf,vibe:!Jf.vibe},QZ()}function fz0($){fj4=$}function Xz0(){return fj4}var Jf,aY1,fj4=!1;var AG=U(()=>{Jf={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},aY1=new Set});import{createServer as Xj4}from"net";function kdu($){return new Promise((u)=>{let f=Xj4();f.once("error",()=>u(!1)),f.listen($,"0.0.0.0",()=>{f.close(()=>u(!0))})})}async function Jz0($){if(await kdu($))return $;let u=await new Promise((f,X)=>{let w=Xj4();w.once("error",X),w.listen(0,"0.0.0.0",()=>{let J=w.address(),E=typeof J==="object"&&J?J.port:0;w.close(()=>f(E))})});return console.warn(`Port ${$} is in use, using port ${u} instead.`),u}var eY1=()=>{};import{createServer as Rdu}from"net";async function Mdu($){for(let u of Cdu)if(await qdu(u,$))return u;return null}async function $D1($,{intervalMs:u=1000}={}){for(;;){let f=await Mdu($);if(f)return f;await new Promise((X)=>setTimeout(X,u))}}function qdu($,u){return new Promise((f)=>{let X=Rdu();X.once("error",(w)=>{f(w.code==="EADDRINUSE")}),X.listen(u,$,()=>{X.close(()=>f(!1))})})}var Cdu;var wj4=U(()=>{Cdu=["localhost","127.0.0.1","0.0.0.0"]});var uD1={};D1(uD1,{startDevServer:()=>ydu});import{tmpdir as hdu}from"os";import{join as Ez0}from"path";function Jj4($){return $.replace(/\x1b\[[0-9;]*m/g,"")}function Qz0($){let u=$.getReader(),f=new TextDecoder,X="";function w(){let J=X.split(`
76129
- `);X=J.pop()??"";for(let E of J){let Q=Jj4(E).replace(/^\[\d+\]\s*/,"").trim();if(!Q)continue;PB({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:Q})}}(async()=>{for(;;){let{done:J,value:E}=await u.read();if(J)break;X+=f.decode(E,{stream:!0}),w()}if(X.trim()){let J=Jj4(X).replace(/^\[\d+\]\s*/,"").trim();if(J)PB({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:J})}})()}async function ydu($){let{vitePort:u,baseUrl:f,noTui:X}=$,w=await Jz0(Number($.port)),{settings:J,services:E,managedServiceNames:Q}=await uz0({port:String(w),home:$.home,baseUrl:$.baseUrl,localMode:$.localMode,skipMigrations:$.skipMigrations,noTui:$.noTui,vitePort:$.vitePort});for(let O of E)zL({name:O.name,status:"ready",port:O.port});i30(J),V30();let Y=Ez0(import.meta.dir,"..","..","..","..",".."),Z=process.env.WORKTREE_SLUG??process.env.CONDUCTOR_WORKSPACE_NAME??"default",W=Ez0(hdu(),`decocms-dev-link-${Z}`),G=X===!0,F=Bun.spawn(["bun","run","--cwd=apps/mesh","dev:servers"],{cwd:Y,env:{...process.env,PORT:String(J.port),VITE_PORT:String(u),DATABASE_URL:J.databaseUrl,NATS_URL:J.natsUrls.join(","),NODE_ENV:J.nodeEnv,DECOCMS_LOCAL_MODE:String(J.localMode),DECOCMS_HOME:J.dataDir,DATA_DIR:J.dataDir,DECO_CLI:"1",...$.localSandboxProvider?{DEV_LINK_SESSION_PATH:Ez0(W,"session.json")}:{},...J.baseUrl?{BASE_URL:J.baseUrl}:{}},stdio:["inherit",G?"inherit":"pipe",G?"inherit":"pipe"]});if(!G)Qz0(F.stdout),Qz0(F.stderr);let v=f||`http://localhost:${J.port}`;b30(v),zL({name:"Vite",status:"ready",port:Number(u)});let B=!$.localSandboxProvider?Promise.resolve(null):(async()=>{let{ensureLink:O}=await Promise.resolve().then(() => (Wl(),Zl));try{let{info:z,proc:H}=await O({home:J.dataDir,clusterUrl:v,linkDataDir:W,repoRoot:Y,stdio:["inherit",G?"inherit":"pipe",G?"inherit":"pipe"],onSpawn:(j)=>{if(G)return;Qz0(j.stdout),Qz0(j.stderr)},beforeSpawn:async()=>{await $D1(Number(J.port),{intervalMs:500});let j=Ez0(W,"session.json"),A=Date.now()+30000;while(Date.now()<A){if(await Bun.file(j).exists())return;await new Promise((L)=>setTimeout(L,250))}throw Error(`[dev-link] session.json not minted at ${j} after 30s \u2014 check cluster logs for [dev-link] errors`)}});return $D1(z.port,{intervalMs:500}).then(()=>{zL({name:"Sandbox",status:"ready",port:z.port})}).catch(()=>{}),H}catch(z){return PB({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:`[link] failed to start: ${z instanceof Error?z.message:String(z)}`}),null}})(),N=async(O)=>{if(await B.catch(()=>null),$.localSandboxProvider){let{stopLink:z}=await Promise.resolve().then(() => (Wl(),Zl));try{await z(J.dataDir)}catch{}}if(F.kill(O),await F.exited,Q.length>0){let{stopServices:z}=await Promise.resolve().then(() => (Wl(),Zl));await z(J.dataDir)}};return process.on("SIGINT",()=>N("SIGINT")),process.on("SIGTERM",()=>N("SIGTERM")),{port:Number(J.port),process:F}}var fD1=U(()=>{rY1();AG();eY1();wj4()});import{Box as XD1,Text as wD1}from"ink";import{jsx as Qj4,jsxs as Yz0}from"react/jsx-runtime";function Ej4($){if(!$)return"not set";try{let u=new URL($);if(u.password)u.password="***";if(u.username&&u.username.length>3)u.username=u.username.slice(0,3)+"***";return u.pathname="/",u.search="",u.hash="",u.toString()}catch{if($.length<=10)return $;return $.slice(0,6)+"***"+$.slice(-4)}}function bdu($,u){if(gdu.has($))return u?{text:"\u25CF\u25CF\u25CF\u25CF\u25CF\u25CF",dimColor:!0}:{text:"not set",dimColor:!0};if(Vdu.has($)){if(Array.isArray(u)){if(u.length===0)return{text:"not set",dimColor:!0};return{text:u.map((J)=>Ej4(J)).join(", "),color:"cyan"}}let X=Ej4(u);return X==="not set"?{text:X,dimColor:!0}:{text:X,color:"cyan"}}if(u===void 0||u===null||u==="")return{text:"not set",dimColor:!0};let f=String(u);if(f==="true")return{text:f,color:"green"};if(f==="false")return{text:f,color:"yellow"};try{return new URL(f),{text:f,color:"cyan"}}catch{return{text:f}}}function idu($){return[{title:"Core",entries:[{key:"NODE_ENV",value:$.nodeEnv},{key:"PORT",value:$.port},{key:"BASE_URL",value:$.baseUrl??`http://localhost:${$.port}`},{key:"DATA_DIR",value:$.dataDir}]},{title:"Database",entries:[{key:"DATABASE_URL",value:$.databaseUrl},{key:"DATABASE_PG_SSL",value:$.databasePgSsl}]},{title:"Auth & Secrets",entries:[{key:"BETTER_AUTH_SECRET",value:$.betterAuthSecret},{key:"ENCRYPTION_KEY",value:$.encryptionKey},{key:"MESH_JWT_SECRET",value:$.meshJwtSecret},{key:"STUDIO_PROVISION_SECRET_KEY",value:$.studioProvisionSecretKey},{key:"DISABLE_RATE_LIMIT",value:$.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_SSO_GOOGLE_CLIENT_ID",value:!!process.env.AUTH_SSO_GOOGLE_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:$.clickhouseUrl},{key:"OTEL_SERVICE_NAME",value:$.otelServiceName}]},{title:"Event Bus & Networking",entries:[{key:"NATS_URL",value:$.natsUrls}]},{title:"Config Files",entries:[{key:"CONFIG_PATH",value:$.configPath}]},{title:"AI Gateway",entries:[{key:"DECO_AI_GATEWAY_ENABLED",value:$.aiGatewayEnabled},{key:"DECO_AI_GATEWAY_URL",value:$.aiGatewayUrl}]}]}function Yj4({env:$}){let u=idu($);return Qj4(XD1,{flexDirection:"column",children:u.map((f)=>Yz0(XD1,{flexDirection:"column",marginTop:1,children:[Yz0(wD1,{dimColor:!0,children:[" ","\u2500\u2500 ",f.title," ","\u2500".repeat(Math.max(0,38-f.title.length))]}),f.entries.map(({key:X,value:w})=>{let J=bdu(X,w);return Yz0(XD1,{children:[Yz0(wD1,{dimColor:!0,children:[" ",X.padEnd(36)]}),Qj4(wD1,{color:J.color,dimColor:J.dimColor,children:J.text})]},X)})]},f.title))})}var gdu,Vdu;var Dj4=U(()=>{gdu=new Set(["BETTER_AUTH_SECRET","ENCRYPTION_KEY","MESH_JWT_SECRET","STUDIO_PROVISION_SECRET_KEY"]),Vdu=new Set(["DATABASE_URL","CLICKHOUSE_URL","NATS_URL"])});var JD1;var Zj4=U(()=>{JD1={name:"decocms",version:"2.367.13",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","smoke:link":"bun run scripts/smoke-link.ts",prepublishOnly:"bun run build:client && bun run build:server"},optionalDependencies:{"@anthropic-ai/claude-agent-sdk":"^0.2.141","@duckdb/node-api":"^1.5.0-r.1"},dependencies:{"@ai-sdk/anthropic":"^3.0.80","@ai-sdk/google":"^3.0.80","@ai-sdk/openai":"^3.0.65","@anthropic-ai/sdk":"^0.96.0","@aws-sdk/client-s3":"^3.1013.0","@aws-sdk/lib-storage":"^3.1013.0","@aws-sdk/s3-request-presigner":"^3.1013.0","@clickhouse/client":"^1.8.1","@dbos-inc/dbos-sdk":"^4.17.6","@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.7.1","@openrouter/ai-sdk-provider":"^2.9.0","@opentelemetry/core":"^2.6.0","@tanstack/react-virtual":"3.13.24","@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.6","react-dom":"^19.2.6"},devDependencies:{"@ai-sdk/provider":"^3.0.10","@ai-sdk/react":"^3.0.193","@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:*","@floating-ui/react":"^0.27.16","@happy-dom/global-registrator":"^20.9.0","@hookform/resolvers":"^5.2.2","@jitl/quickjs-wasmfile-release-sync":"0.31.0","@modelcontextprotocol/sdk":"1.29.0","@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.100.10","@tanstack/react-router":"1.169.2","@testing-library/jest-dom":"^6.9.1","@testing-library/react":"^16.3.2","@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.191","babel-plugin-react-compiler":"^1.0.0","better-auth":"1.4.22","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","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 YZ,Text as C5}from"ink";import{Spinner as ldu}from"@inkjs/ui";import{useSyncExternalStore as Wj4}from"react";import{jsx as j8,jsxs as dX}from"react/jsx-runtime";function tdu($,u){if(!$||!ndu.has($))return $;let f=ED1[u]??ED1[ED1.length-1];return $==="#875f00"?f[0]:f[1]}function Gj4({status:$}){if($==="pending")return j8(ldu,{label:""});return j8(C5,{color:"green",children:"\u2713"})}function Fj4({services:$,migrationsStatus:u,home:f,serverUrl:X,vibe:w}){let J=Wj4(Rx1,kx1),E=Wj4(gx1,yx1);return dX(YZ,{flexDirection:"column",paddingBottom:1,children:[w?dX(YZ,{flexDirection:"column",children:[J.map((Q,Y)=>{let Z=E[Y],W=Q.reduce((F,v)=>F+v.text.length,0),G=Math.max(0,mdu-W);return dX(YZ,{flexDirection:"row",children:[Q.map((F,v)=>{let B=tdu(F.color,Y);return B?j8(C5,{color:B,children:F.text},v):j8(C5,{children:F.text},v)}),j8(C5,{children:" ".repeat(G+2)}),Z?.map((F,v)=>F.color?j8(C5,{color:F.color,children:F.char},v):j8(C5,{children:F.char},v))]},Y)}),dX(C5,{dimColor:!0,children:[" v",JD1.version]})]}):dX(YZ,{flexDirection:"column",marginTop:1,children:[cdu.map((Q,Y)=>j8(C5,{color:ddu[Y],children:Q},Y)),dX(C5,{dimColor:!0,children:[" v",JD1.version]})]}),j8(YZ,{marginBottom:1,children:j8(C5,{dimColor:!0,children:"\u2500".repeat(80)})}),j8(YZ,{children:dX(C5,{dimColor:!0,children:["Home: ",f]})}),dX(YZ,{gap:2,children:[$.map((Q)=>dX(YZ,{gap:1,children:[dX(C5,{children:[Q.name," :",Q.port||"...."]}),j8(Gj4,{status:Q.status})]},Q.name)),dX(YZ,{gap:1,children:[j8(C5,{children:"Migrations"}),j8(Gj4,{status:u})]})]}),j8(YZ,{children:X?dX(C5,{children:["Open in browser: ",j8(C5,{color:"cyan",children:X})]}):j8(C5,{dimColor:!0,children:"Starting..."})}),dX(YZ,{gap:2,children:[dX(C5,{dimColor:!0,children:[j8(C5,{bold:!0,dimColor:!0,children:"K"})," ","toggle config"]}),dX(C5,{dimColor:!0,children:[j8(C5,{bold:!0,dimColor:!0,children:"L"})," ","toggle log flow"]}),dX(C5,{dimColor:!0,children:[j8(C5,{bold:!0,dimColor:!0,children:"V"})," ","toggle vibe ",w?"\u266A Nihilore \xB7 CC BY 4.0":""]}),w&&dX(C5,{dimColor:!0,children:[j8(C5,{bold:!0,dimColor:!0,children:"N"})," ","skip song"]})]})]})}var cdu,ddu,ED1,mdu=30,ndu;var vj4=U(()=>{Zj4();op0();Xo0();cdu=[" \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 "],ddu=["#00ff64","#00ee5e","#00dc56","#00c84e","#00b444","#00a03c","#008832","#006e28"],ED1=[["#00ff64","#00cc50"],["#00f060","#00c04c"],["#00e05c","#00b448"],["#00d058","#00a844"],["#00c054","#009c40"],["#00b050","#00903c"],["#00a04c","#008438"],["#009048","#007834"],["#008044","#006c30"],["#007040","#00602c"],["#00603c","#005428"]],ndu=new Set(["#875f00","#5f3800"])});import{useSyncExternalStore as rdu}from"react";function adu(){let $=process.stdout.rows||24,u=process.stdout.columns||80;if($!==Dz0.rows||u!==Dz0.columns)Dz0={rows:$,columns:u};return Dz0}function pdu($){return process.stdout.on("resize",$),()=>{process.stdout.off("resize",$)}}function Bj4(){return rdu(pdu,adu)}var Dz0;var Uj4=U(()=>{Dz0={rows:process.stdout.rows||24,columns:process.stdout.columns||80}});import{Box as odu,Text as x30}from"ink";import{useSyncExternalStore as sdu}from"react";import{jsx as QD1,jsxs as YD1}from"react/jsx-runtime";function edu($){if($>=500)return"red";if($>=400)return"yellow";if($>=300)return"cyan";return"green"}function Nj4({logs:$,headerHeight:u}){let{rows:f}=Bj4(),{logFlow:X}=sdu(g30,y30),w=Math.max(1,f-u-1),J=X?$:$.slice(-w);return QD1(odu,{flexDirection:"column",children:J.map((E,Q)=>{if(E.rawLine)return QD1(x30,{dimColor:!0,children:E.rawLine},Q);let Y=E.duration<1000?`${E.duration}ms`:`${(E.duration/1000).toFixed(1)}s`;return YD1(x30,{children:[YD1(x30,{dimColor:!0,children:[E.method.padEnd(6)," ",E.path.padEnd(30)," "]}),QD1(x30,{color:edu(E.status),children:E.status}),YD1(x30,{dimColor:!0,children:[" ",Y.padStart(8)]})]},Q)})})}var Oj4=U(()=>{AG();Uj4()});var DD1={};D1(DD1,{App:()=>Emu});import{Box as $mu,Text as umu,useInput as fmu}from"ink";import{useSyncExternalStore as Xmu}from"react";import{jsx as Zz0,jsxs as Qmu}from"react/jsx-runtime";function Emu({home:$}){let u=Xmu(g30,y30);return fmu((f)=>{if(f==="k"||f==="K")pY1();if(f==="l"||f==="L")oY1();if((f==="v"||f==="V")&&u.dataDir)Qo0(u.dataDir),sY1();if((f==="n"||f==="N")&&u.vibe)Eo0()}),Qmu($mu,{flexDirection:"column",children:[Zz0(Fj4,{services:u.services,migrationsStatus:u.migrationsStatus,home:$,serverUrl:u.serverUrl,vibe:u.vibe}),u.viewMode==="config"?u.env?Zz0(Yj4,{env:u.env}):Zz0(umu,{dimColor:!0,children:"Loading configuration..."}):Zz0(Nj4,{logs:u.logs,headerHeight:u.vibe?Jmu:wmu})]})}var wmu=15,Jmu=19;var ZD1=U(()=>{Dj4();vj4();Oj4();AG();tl()});var KL=b((Fmu)=>{Fmu.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})(Fmu.HttpAuthLocation||(Fmu.HttpAuthLocation={}));Fmu.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})(Fmu.HttpApiKeyAuthLocation||(Fmu.HttpApiKeyAuthLocation={}));Fmu.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})(Fmu.EndpointURLScheme||(Fmu.EndpointURLScheme={}));Fmu.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})(Fmu.AlgorithmId||(Fmu.AlgorithmId={}));var Ymu=($)=>{let u=[];if($.sha256!==void 0)u.push({algorithmId:()=>Fmu.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)u.push({algorithmId:()=>Fmu.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(f){u.push(f)},checksumAlgorithms(){return u}}},Dmu=($)=>{let u={};return $.checksumAlgorithms().forEach((f)=>{u[f.algorithmId()]=f.checksumConstructor()}),u},Zmu=($)=>{return Ymu($)},Wmu=($)=>{return Dmu($)};Fmu.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})(Fmu.FieldPosition||(Fmu.FieldPosition={}));var Gmu="__smithy_context";Fmu.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})(Fmu.IniSectionType||(Fmu.IniSectionType={}));Fmu.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})(Fmu.RequestHandlerProtocol||(Fmu.RequestHandlerProtocol={}));Fmu.SMITHY_CONTEXT_KEY=Gmu;Fmu.getDefaultClientConfiguration=Zmu;Fmu.resolveDefaultRuntimeConfig=Wmu});var tf=b((_mu)=>{var Nmu=KL(),Omu=($)=>{return{setHttpHandler(u){$.httpHandler=u},httpHandler(){return $.httpHandler},updateHttpClientConfig(u,f){$.httpHandler?.updateHttpClientConfig(u,f)},httpHandlerConfigs(){return $.httpHandler.httpHandlerConfigs()}}},zmu=($)=>{return{httpHandler:$.httpHandler()}};class zj4{name;kind;values;constructor({name:$,kind:u=Nmu.FieldPosition.HEADER,values:f=[]}){this.name=$,this.kind=u,this.values=f}add($){this.values.push($)}set($){this.values=$}remove($){this.values=this.values.filter((u)=>u!==$)}toString(){return this.values.map(($)=>$.includes(",")||$.includes(" ")?`"${$}"`:$).join(", ")}get(){return this.values}}class Kj4{entries={};encoding;constructor({fields:$=[],encoding:u="utf-8"}){$.forEach(this.setField.bind(this)),this.encoding=u}setField($){this.entries[$.name.toLowerCase()]=$}getField($){return this.entries[$.toLowerCase()]}removeField($){delete this.entries[$.toLowerCase()]}getByType($){return Object.values(this.entries).filter((u)=>u.kind===$)}}class Wz0{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let u=new Wz0({...$,headers:{...$.headers}});if(u.query)u.query=Kmu(u.query);return u}static isInstance($){if(!$)return!1;let u=$;return"method"in u&&"protocol"in u&&"hostname"in u&&"path"in u&&typeof u.query==="object"&&typeof u.headers==="object"}clone(){return Wz0.clone(this)}}function Kmu($){return Object.keys($).reduce((u,f)=>{let X=$[f];return{...u,[f]:Array.isArray(X)?[...X]:X}},{})}class Hj4{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let u=$;return typeof u.statusCode==="number"&&typeof u.headers==="object"}}function Hmu($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}_mu.Field=zj4;_mu.Fields=Kj4;_mu.HttpRequest=Wz0;_mu.HttpResponse=Hj4;_mu.getHttpHandlerExtensionConfiguration=Omu;_mu.isValidHostname=Hmu;_mu.resolveHttpHandlerRuntimeConfig=zmu});function kmu($){return(u)=>async(f)=>{let{request:X}=f;if($.expectContinueHeader!==!1&&_j4.HttpRequest.isInstance(X)&&X.body&&$.runtime==="node"&&$.requestHandler?.constructor?.name!=="FetchHttpHandler"){let w=!0;if(typeof $.expectContinueHeader==="number")try{w=(Number(X.headers?.["content-length"])??$.bodyLengthChecker?.(X.body)??1/0)>=$.expectContinueHeader}catch(J){}else w=!!$.expectContinueHeader;if(w)X.headers.Expect="100-continue"}return u({...f,request:X})}}var _j4,Rmu,Pj4=($)=>({applyToStack:(u)=>{u.add(kmu($),Rmu)}});var jj4=U(()=>{_j4=Q0(tf(),1);Rmu={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0}});var YD,Gz0,HL,Fz0,j3,Lj4,c30;var DD=U(()=>{YD={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Gz0=YD.WHEN_SUPPORTED,HL={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Fz0=YD.WHEN_SUPPORTED;(function($){$.MD5="MD5",$.CRC32="CRC32",$.CRC32C="CRC32C",$.CRC64NVME="CRC64NVME",$.SHA1="SHA1",$.SHA256="SHA256"})(j3||(j3={}));(function($){$.HEADER="header",$.TRAILER="trailer"})(Lj4||(Lj4={}));c30=j3.CRC32});var Vz,St=($,u,f,X)=>{if(!(u in $))return;let w=$[u].toUpperCase();if(!Object.values(f).includes(w))throw TypeError(`Cannot load ${X} '${u}'. Expected one of ${Object.values(f)}, got '${$[u]}'.`);return w};var ND1=U(()=>{(function($){$.ENV="env",$.CONFIG="shared config entry"})(Vz||(Vz={}))});var Cmu="AWS_REQUEST_CHECKSUM_CALCULATION",Mmu="request_checksum_calculation",Tj4;var Aj4=U(()=>{DD();ND1();Tj4={environmentVariableSelector:($)=>St($,Cmu,YD,Vz.ENV),configFileSelector:($)=>St($,Mmu,YD,Vz.CONFIG),default:Gz0}});var qmu="AWS_RESPONSE_CHECKSUM_VALIDATION",hmu="response_checksum_validation",Ij4;var Sj4=U(()=>{DD();ND1();Ij4={environmentVariableSelector:($)=>St($,qmu,HL,Vz.ENV),configFileSelector:($)=>St($,hmu,HL,Vz.CONFIG),default:Fz0}});var zD1=b((mmu)=>{var ymu=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],gmu=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Vmu=["TimeoutError","RequestTimeout","RequestTimeoutException"],bmu=[500,502,503,504],imu=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],xmu=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],kj4=($)=>$?.$retryable!==void 0,lmu=($)=>ymu.includes($.name),Rj4=($)=>$.$metadata?.clockSkewCorrected,Cj4=($)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!($&&$ instanceof TypeError))return!1;return u.has($.message)},cmu=($)=>$.$metadata?.httpStatusCode===429||gmu.includes($.name)||$.$retryable?.throttling==!0,OD1=($,u=0)=>kj4($)||Rj4($)||$.name==="InvalidSignatureException"&&$.message?.includes("Signature expired")||Vmu.includes($.name)||imu.includes($?.code||"")||xmu.includes($?.code||"")||bmu.includes($.$metadata?.httpStatusCode||0)||Cj4($)||Mj4($)||$.cause!==void 0&&u<=10&&OD1($.cause,u+1),dmu=($)=>{if($.$metadata?.httpStatusCode!==void 0){let u=$.$metadata.httpStatusCode;if(500<=u&&u<=599&&!OD1($))return!0;return!1}return!1};function Mj4($){return $.code==="ERR_HTTP2_STREAM_ERROR"&&$.message.includes("NGHTTP2_REFUSED_STREAM")}mmu.isBrowserNetworkError=Cj4;mmu.isClockSkewCorrectedError=Rj4;mmu.isClockSkewError=lmu;mmu.isNodeJsHttp2TransientError=Mj4;mmu.isRetryableByTrait=kj4;mmu.isServerError=dmu;mmu.isThrottlingError=cmu;mmu.isTransientError=OD1});var jB=b((Ynu)=>{var $nu=zD1();Ynu.RETRY_MODES=void 0;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(Ynu.RETRY_MODES||(Ynu.RETRY_MODES={}));var Bz0=3,unu=Ynu.RETRY_MODES.STANDARD;class Uz0{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($){this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.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($){let u;this.updateMeasuredRate();let f=$;if(f?.errorType==="THROTTLING"||$nu.isThrottlingError(f?.error??$)){let J=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=J,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(J),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let w=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(w)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.availableTokens){let u=($-this.availableTokens)/this.fillRate*1000;await new Promise((f)=>Uz0.setTimeoutFn(f,u))}this.availableTokens=this.availableTokens-$}refillTokenBucket(){let $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}let u=($-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=$}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let $=this.getCurrentTimeInSeconds(),u=Math.floor($*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let f=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(f*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise($){return parseFloat($.toFixed(8))}}var fnu=100,_D1=20000,Xnu=500,KD1=500,wnu=5,Jnu=10,qj4=1,Enu="amz-sdk-invocation-id",Qnu="amz-sdk-request";class mX{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return mX.v2026?50:100}static throttlingDelay(){return mX.v2026?1000:500}static cost(){return mX.v2026?14:5}static throttlingCost(){return mX.v2026?5:10}static modifiedCostType(){return mX.v2026?"THROTTLING":"TRANSIENT"}}class hj4{x=mX.delay();computeNextBackoffDelay($){let u=Math.random(),f=2,X=u*Math.min(this.x*2**$,_D1);return Math.floor(X)}setDelayBase($){this.x=$}}class HD1{delay;count;cost;longPoll;constructor($,u,f,X){this.delay=$,this.count=u,this.cost=f,this.longPoll=X}getRetryCount(){return this.count}getRetryDelay(){return Math.min(_D1,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var vz0={incompatible:1,attempts:2,capacity:3};class d30{mode=Ynu.RETRY_MODES.STANDARD;capacity=KD1;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor($){if(typeof $==="number")this.maxAttemptsProvider=async()=>$;else if(typeof $==="function")this.maxAttemptsProvider=$;else if($&&typeof $==="object")this.maxAttemptsProvider=async()=>$.maxAttempts,this.baseDelay=$.baseDelay,this.retryBackoffStrategy=$.backoff;this.maxAttemptsProvider??=async()=>Bz0,this.baseDelay??=mX.delay(),this.retryBackoffStrategy??=new hj4}async acquireInitialRetryToken($){return new HD1(mX.delay(),0,void 0,mX.v2026&&$.includes(":longpoll"))}async refreshRetryTokenForRetry($,u){let f=await this.getMaxAttempts(),X=this.retryCode($,u,f),w=X===0,J=$.isLongPoll?.();if(w||J){let E=u.errorType;this.retryBackoffStrategy.setDelayBase(E==="THROTTLING"?mX.throttlingDelay():this.baseDelay);let Q=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),Y=Q;if(u.retryAfterHint instanceof Date)Y=Math.max(Q,Math.min(u.retryAfterHint.getTime()-Date.now(),Q+5000));if(!w)throw Object.assign(Error("No retry token available"),{$backoff:mX.v2026&&X===vz0.capacity&&J?Y:0});else{let Z=this.getCapacityCost(E);return this.capacity-=Z,new HD1(Y,$.getRetryCount()+1,Z,$.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess($){this.capacity=Math.min(KD1,this.capacity+($.getRetryCost()??qj4))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${Bz0}`),Bz0}}retryCode($,u,f){let X=$.getRetryCount()+1,w=this.isRetryableError(u.errorType)?0:vz0.incompatible,J=X<f?0:vz0.attempts,E=this.capacity>=this.getCapacityCost(u.errorType)?0:vz0.capacity;return w||J||E}getCapacityCost($){return $===mX.modifiedCostType()?mX.throttlingCost():mX.cost()}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class yj4{mode=Ynu.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor($,u){let{rateLimiter:f}=u??{};this.rateLimiter=f??new Uz0,this.standardRetryStrategy=u?new d30({maxAttempts:typeof $==="number"?$:3,...u}):new d30($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,u){return this.rateLimiter.updateClientSendingRate(u),this.standardRetryStrategy.refreshRetryTokenForRetry($,u)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}class gj4 extends d30{computeNextBackoffDelay;constructor($,u=mX.delay()){super(typeof $==="function"?$:async()=>$);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry($,u){let f=await super.refreshRetryTokenForRetry($,u);return f.getRetryDelay=()=>this.computeNextBackoffDelay(f.getRetryCount()),f}}Ynu.AdaptiveRetryStrategy=yj4;Ynu.ConfiguredRetryStrategy=gj4;Ynu.DEFAULT_MAX_ATTEMPTS=Bz0;Ynu.DEFAULT_RETRY_DELAY_BASE=fnu;Ynu.DEFAULT_RETRY_MODE=unu;Ynu.DefaultRateLimiter=Uz0;Ynu.INITIAL_RETRY_TOKENS=KD1;Ynu.INVOCATION_ID_HEADER=Enu;Ynu.MAXIMUM_RETRY_DELAY=_D1;Ynu.NO_RETRY_INCREMENT=qj4;Ynu.REQUEST_HEADER=Qnu;Ynu.RETRY_COST=wnu;Ynu.Retry=mX;Ynu.StandardRetryStrategy=d30;Ynu.THROTTLING_RETRY_DELAY_BASE=Xnu;Ynu.TIMEOUT_RETRY_COST=Jnu});var G5=b((Mnu)=>{var Lnu=jB(),PD1={warningEmitted:!1},Tnu=($)=>{if($&&!PD1.warningEmitted&&parseInt($.substring(1,$.indexOf(".")))<20)PD1.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
76129
+ `);X=J.pop()??"";for(let E of J){let Q=Jj4(E).replace(/^\[\d+\]\s*/,"").trim();if(!Q)continue;PB({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:Q})}}(async()=>{for(;;){let{done:J,value:E}=await u.read();if(J)break;X+=f.decode(E,{stream:!0}),w()}if(X.trim()){let J=Jj4(X).replace(/^\[\d+\]\s*/,"").trim();if(J)PB({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:J})}})()}async function ydu($){let{vitePort:u,baseUrl:f,noTui:X}=$,w=await Jz0(Number($.port)),{settings:J,services:E,managedServiceNames:Q}=await uz0({port:String(w),home:$.home,baseUrl:$.baseUrl,localMode:$.localMode,skipMigrations:$.skipMigrations,noTui:$.noTui,vitePort:$.vitePort});for(let O of E)zL({name:O.name,status:"ready",port:O.port});i30(J),V30();let Y=Ez0(import.meta.dir,"..","..","..","..",".."),Z=process.env.WORKTREE_SLUG??process.env.CONDUCTOR_WORKSPACE_NAME??"default",W=Ez0(hdu(),`decocms-dev-link-${Z}`),G=X===!0,F=Bun.spawn(["bun","run","--cwd=apps/mesh","dev:servers"],{cwd:Y,env:{...process.env,PORT:String(J.port),VITE_PORT:String(u),DATABASE_URL:J.databaseUrl,NATS_URL:J.natsUrls.join(","),NODE_ENV:J.nodeEnv,DECOCMS_LOCAL_MODE:String(J.localMode),DECOCMS_HOME:J.dataDir,DATA_DIR:J.dataDir,DECO_CLI:"1",...$.localSandboxProvider?{DEV_LINK_SESSION_PATH:Ez0(W,"session.json")}:{},...J.baseUrl?{BASE_URL:J.baseUrl}:{}},stdio:["inherit",G?"inherit":"pipe",G?"inherit":"pipe"]});if(!G)Qz0(F.stdout),Qz0(F.stderr);let v=f||`http://localhost:${J.port}`;b30(v),zL({name:"Vite",status:"ready",port:Number(u)});let B=!$.localSandboxProvider?Promise.resolve(null):(async()=>{let{ensureLink:O}=await Promise.resolve().then(() => (Wl(),Zl));try{let{info:z,proc:H}=await O({home:J.dataDir,clusterUrl:v,linkDataDir:W,repoRoot:Y,stdio:["inherit",G?"inherit":"pipe",G?"inherit":"pipe"],onSpawn:(j)=>{if(G)return;Qz0(j.stdout),Qz0(j.stderr)},beforeSpawn:async()=>{await $D1(Number(J.port),{intervalMs:500});let j=Ez0(W,"session.json"),A=Date.now()+30000;while(Date.now()<A){if(await Bun.file(j).exists())return;await new Promise((L)=>setTimeout(L,250))}throw Error(`[dev-link] session.json not minted at ${j} after 30s \u2014 check cluster logs for [dev-link] errors`)}});return $D1(z.port,{intervalMs:500}).then(()=>{zL({name:"Sandbox",status:"ready",port:z.port})}).catch(()=>{}),H}catch(z){return PB({method:"",path:"",status:0,duration:0,timestamp:new Date,rawLine:`[link] failed to start: ${z instanceof Error?z.message:String(z)}`}),null}})(),N=async(O)=>{if(await B.catch(()=>null),$.localSandboxProvider){let{stopLink:z}=await Promise.resolve().then(() => (Wl(),Zl));try{await z(J.dataDir)}catch{}}if(F.kill(O),await F.exited,Q.length>0){let{stopServices:z}=await Promise.resolve().then(() => (Wl(),Zl));await z(J.dataDir)}};return process.on("SIGINT",()=>N("SIGINT")),process.on("SIGTERM",()=>N("SIGTERM")),{port:Number(J.port),process:F}}var fD1=U(()=>{rY1();AG();eY1();wj4()});import{Box as XD1,Text as wD1}from"ink";import{jsx as Qj4,jsxs as Yz0}from"react/jsx-runtime";function Ej4($){if(!$)return"not set";try{let u=new URL($);if(u.password)u.password="***";if(u.username&&u.username.length>3)u.username=u.username.slice(0,3)+"***";return u.pathname="/",u.search="",u.hash="",u.toString()}catch{if($.length<=10)return $;return $.slice(0,6)+"***"+$.slice(-4)}}function bdu($,u){if(gdu.has($))return u?{text:"\u25CF\u25CF\u25CF\u25CF\u25CF\u25CF",dimColor:!0}:{text:"not set",dimColor:!0};if(Vdu.has($)){if(Array.isArray(u)){if(u.length===0)return{text:"not set",dimColor:!0};return{text:u.map((J)=>Ej4(J)).join(", "),color:"cyan"}}let X=Ej4(u);return X==="not set"?{text:X,dimColor:!0}:{text:X,color:"cyan"}}if(u===void 0||u===null||u==="")return{text:"not set",dimColor:!0};let f=String(u);if(f==="true")return{text:f,color:"green"};if(f==="false")return{text:f,color:"yellow"};try{return new URL(f),{text:f,color:"cyan"}}catch{return{text:f}}}function idu($){return[{title:"Core",entries:[{key:"NODE_ENV",value:$.nodeEnv},{key:"PORT",value:$.port},{key:"BASE_URL",value:$.baseUrl??`http://localhost:${$.port}`},{key:"DATA_DIR",value:$.dataDir}]},{title:"Database",entries:[{key:"DATABASE_URL",value:$.databaseUrl},{key:"DATABASE_PG_SSL",value:$.databasePgSsl}]},{title:"Auth & Secrets",entries:[{key:"BETTER_AUTH_SECRET",value:$.betterAuthSecret},{key:"ENCRYPTION_KEY",value:$.encryptionKey},{key:"MESH_JWT_SECRET",value:$.meshJwtSecret},{key:"STUDIO_PROVISION_SECRET_KEY",value:$.studioProvisionSecretKey},{key:"DISABLE_RATE_LIMIT",value:$.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_SSO_GOOGLE_CLIENT_ID",value:!!process.env.AUTH_SSO_GOOGLE_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:$.clickhouseUrl},{key:"OTEL_SERVICE_NAME",value:$.otelServiceName}]},{title:"Event Bus & Networking",entries:[{key:"NATS_URL",value:$.natsUrls}]},{title:"Config Files",entries:[{key:"CONFIG_PATH",value:$.configPath}]},{title:"AI Gateway",entries:[{key:"DECO_AI_GATEWAY_ENABLED",value:$.aiGatewayEnabled},{key:"DECO_AI_GATEWAY_URL",value:$.aiGatewayUrl}]}]}function Yj4({env:$}){let u=idu($);return Qj4(XD1,{flexDirection:"column",children:u.map((f)=>Yz0(XD1,{flexDirection:"column",marginTop:1,children:[Yz0(wD1,{dimColor:!0,children:[" ","\u2500\u2500 ",f.title," ","\u2500".repeat(Math.max(0,38-f.title.length))]}),f.entries.map(({key:X,value:w})=>{let J=bdu(X,w);return Yz0(XD1,{children:[Yz0(wD1,{dimColor:!0,children:[" ",X.padEnd(36)]}),Qj4(wD1,{color:J.color,dimColor:J.dimColor,children:J.text})]},X)})]},f.title))})}var gdu,Vdu;var Dj4=U(()=>{gdu=new Set(["BETTER_AUTH_SECRET","ENCRYPTION_KEY","MESH_JWT_SECRET","STUDIO_PROVISION_SECRET_KEY"]),Vdu=new Set(["DATABASE_URL","CLICKHOUSE_URL","NATS_URL"])});var JD1;var Zj4=U(()=>{JD1={name:"decocms",version:"2.367.25",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","smoke:link":"bun run scripts/smoke-link.ts",prepublishOnly:"bun run build:client && bun run build:server"},optionalDependencies:{"@anthropic-ai/claude-agent-sdk":"^0.2.141","@duckdb/node-api":"^1.5.0-r.1"},dependencies:{"@ai-sdk/anthropic":"^3.0.80","@ai-sdk/google":"^3.0.80","@ai-sdk/openai":"^3.0.65","@anthropic-ai/sdk":"^0.96.0","@aws-sdk/client-s3":"^3.1013.0","@aws-sdk/lib-storage":"^3.1013.0","@aws-sdk/s3-request-presigner":"^3.1013.0","@clickhouse/client":"^1.8.1","@dbos-inc/dbos-sdk":"^4.17.6","@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.7.1","@openrouter/ai-sdk-provider":"^2.9.0","@opentelemetry/core":"^2.6.0","@tanstack/react-virtual":"3.13.24","@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.6","react-dom":"^19.2.6"},devDependencies:{"@ai-sdk/provider":"^3.0.10","@ai-sdk/react":"^3.0.193","@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:*","@floating-ui/react":"^0.27.16","@happy-dom/global-registrator":"^20.9.0","@hookform/resolvers":"^5.2.2","@jitl/quickjs-wasmfile-release-sync":"0.31.0","@modelcontextprotocol/sdk":"1.29.0","@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.100.10","@tanstack/react-router":"1.169.2","@testing-library/jest-dom":"^6.9.1","@testing-library/react":"^16.3.2","@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.191","babel-plugin-react-compiler":"^1.0.0","better-auth":"1.4.22","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","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 YZ,Text as C5}from"ink";import{Spinner as ldu}from"@inkjs/ui";import{useSyncExternalStore as Wj4}from"react";import{jsx as j8,jsxs as dX}from"react/jsx-runtime";function tdu($,u){if(!$||!ndu.has($))return $;let f=ED1[u]??ED1[ED1.length-1];return $==="#875f00"?f[0]:f[1]}function Gj4({status:$}){if($==="pending")return j8(ldu,{label:""});return j8(C5,{color:"green",children:"\u2713"})}function Fj4({services:$,migrationsStatus:u,home:f,serverUrl:X,vibe:w}){let J=Wj4(Rx1,kx1),E=Wj4(gx1,yx1);return dX(YZ,{flexDirection:"column",paddingBottom:1,children:[w?dX(YZ,{flexDirection:"column",children:[J.map((Q,Y)=>{let Z=E[Y],W=Q.reduce((F,v)=>F+v.text.length,0),G=Math.max(0,mdu-W);return dX(YZ,{flexDirection:"row",children:[Q.map((F,v)=>{let B=tdu(F.color,Y);return B?j8(C5,{color:B,children:F.text},v):j8(C5,{children:F.text},v)}),j8(C5,{children:" ".repeat(G+2)}),Z?.map((F,v)=>F.color?j8(C5,{color:F.color,children:F.char},v):j8(C5,{children:F.char},v))]},Y)}),dX(C5,{dimColor:!0,children:[" v",JD1.version]})]}):dX(YZ,{flexDirection:"column",marginTop:1,children:[cdu.map((Q,Y)=>j8(C5,{color:ddu[Y],children:Q},Y)),dX(C5,{dimColor:!0,children:[" v",JD1.version]})]}),j8(YZ,{marginBottom:1,children:j8(C5,{dimColor:!0,children:"\u2500".repeat(80)})}),j8(YZ,{children:dX(C5,{dimColor:!0,children:["Home: ",f]})}),dX(YZ,{gap:2,children:[$.map((Q)=>dX(YZ,{gap:1,children:[dX(C5,{children:[Q.name," :",Q.port||"...."]}),j8(Gj4,{status:Q.status})]},Q.name)),dX(YZ,{gap:1,children:[j8(C5,{children:"Migrations"}),j8(Gj4,{status:u})]})]}),j8(YZ,{children:X?dX(C5,{children:["Open in browser: ",j8(C5,{color:"cyan",children:X})]}):j8(C5,{dimColor:!0,children:"Starting..."})}),dX(YZ,{gap:2,children:[dX(C5,{dimColor:!0,children:[j8(C5,{bold:!0,dimColor:!0,children:"K"})," ","toggle config"]}),dX(C5,{dimColor:!0,children:[j8(C5,{bold:!0,dimColor:!0,children:"L"})," ","toggle log flow"]}),dX(C5,{dimColor:!0,children:[j8(C5,{bold:!0,dimColor:!0,children:"V"})," ","toggle vibe ",w?"\u266A Nihilore \xB7 CC BY 4.0":""]}),w&&dX(C5,{dimColor:!0,children:[j8(C5,{bold:!0,dimColor:!0,children:"N"})," ","skip song"]})]})]})}var cdu,ddu,ED1,mdu=30,ndu;var vj4=U(()=>{Zj4();op0();Xo0();cdu=[" \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 "],ddu=["#00ff64","#00ee5e","#00dc56","#00c84e","#00b444","#00a03c","#008832","#006e28"],ED1=[["#00ff64","#00cc50"],["#00f060","#00c04c"],["#00e05c","#00b448"],["#00d058","#00a844"],["#00c054","#009c40"],["#00b050","#00903c"],["#00a04c","#008438"],["#009048","#007834"],["#008044","#006c30"],["#007040","#00602c"],["#00603c","#005428"]],ndu=new Set(["#875f00","#5f3800"])});import{useSyncExternalStore as rdu}from"react";function adu(){let $=process.stdout.rows||24,u=process.stdout.columns||80;if($!==Dz0.rows||u!==Dz0.columns)Dz0={rows:$,columns:u};return Dz0}function pdu($){return process.stdout.on("resize",$),()=>{process.stdout.off("resize",$)}}function Bj4(){return rdu(pdu,adu)}var Dz0;var Uj4=U(()=>{Dz0={rows:process.stdout.rows||24,columns:process.stdout.columns||80}});import{Box as odu,Text as x30}from"ink";import{useSyncExternalStore as sdu}from"react";import{jsx as QD1,jsxs as YD1}from"react/jsx-runtime";function edu($){if($>=500)return"red";if($>=400)return"yellow";if($>=300)return"cyan";return"green"}function Nj4({logs:$,headerHeight:u}){let{rows:f}=Bj4(),{logFlow:X}=sdu(g30,y30),w=Math.max(1,f-u-1),J=X?$:$.slice(-w);return QD1(odu,{flexDirection:"column",children:J.map((E,Q)=>{if(E.rawLine)return QD1(x30,{dimColor:!0,children:E.rawLine},Q);let Y=E.duration<1000?`${E.duration}ms`:`${(E.duration/1000).toFixed(1)}s`;return YD1(x30,{children:[YD1(x30,{dimColor:!0,children:[E.method.padEnd(6)," ",E.path.padEnd(30)," "]}),QD1(x30,{color:edu(E.status),children:E.status}),YD1(x30,{dimColor:!0,children:[" ",Y.padStart(8)]})]},Q)})})}var Oj4=U(()=>{AG();Uj4()});var DD1={};D1(DD1,{App:()=>Emu});import{Box as $mu,Text as umu,useInput as fmu}from"ink";import{useSyncExternalStore as Xmu}from"react";import{jsx as Zz0,jsxs as Qmu}from"react/jsx-runtime";function Emu({home:$}){let u=Xmu(g30,y30);return fmu((f)=>{if(f==="k"||f==="K")pY1();if(f==="l"||f==="L")oY1();if((f==="v"||f==="V")&&u.dataDir)Qo0(u.dataDir),sY1();if((f==="n"||f==="N")&&u.vibe)Eo0()}),Qmu($mu,{flexDirection:"column",children:[Zz0(Fj4,{services:u.services,migrationsStatus:u.migrationsStatus,home:$,serverUrl:u.serverUrl,vibe:u.vibe}),u.viewMode==="config"?u.env?Zz0(Yj4,{env:u.env}):Zz0(umu,{dimColor:!0,children:"Loading configuration..."}):Zz0(Nj4,{logs:u.logs,headerHeight:u.vibe?Jmu:wmu})]})}var wmu=15,Jmu=19;var ZD1=U(()=>{Dj4();vj4();Oj4();AG();tl()});var KL=b((Fmu)=>{Fmu.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})(Fmu.HttpAuthLocation||(Fmu.HttpAuthLocation={}));Fmu.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})(Fmu.HttpApiKeyAuthLocation||(Fmu.HttpApiKeyAuthLocation={}));Fmu.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})(Fmu.EndpointURLScheme||(Fmu.EndpointURLScheme={}));Fmu.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})(Fmu.AlgorithmId||(Fmu.AlgorithmId={}));var Ymu=($)=>{let u=[];if($.sha256!==void 0)u.push({algorithmId:()=>Fmu.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)u.push({algorithmId:()=>Fmu.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(f){u.push(f)},checksumAlgorithms(){return u}}},Dmu=($)=>{let u={};return $.checksumAlgorithms().forEach((f)=>{u[f.algorithmId()]=f.checksumConstructor()}),u},Zmu=($)=>{return Ymu($)},Wmu=($)=>{return Dmu($)};Fmu.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})(Fmu.FieldPosition||(Fmu.FieldPosition={}));var Gmu="__smithy_context";Fmu.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})(Fmu.IniSectionType||(Fmu.IniSectionType={}));Fmu.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})(Fmu.RequestHandlerProtocol||(Fmu.RequestHandlerProtocol={}));Fmu.SMITHY_CONTEXT_KEY=Gmu;Fmu.getDefaultClientConfiguration=Zmu;Fmu.resolveDefaultRuntimeConfig=Wmu});var tf=b((_mu)=>{var Nmu=KL(),Omu=($)=>{return{setHttpHandler(u){$.httpHandler=u},httpHandler(){return $.httpHandler},updateHttpClientConfig(u,f){$.httpHandler?.updateHttpClientConfig(u,f)},httpHandlerConfigs(){return $.httpHandler.httpHandlerConfigs()}}},zmu=($)=>{return{httpHandler:$.httpHandler()}};class zj4{name;kind;values;constructor({name:$,kind:u=Nmu.FieldPosition.HEADER,values:f=[]}){this.name=$,this.kind=u,this.values=f}add($){this.values.push($)}set($){this.values=$}remove($){this.values=this.values.filter((u)=>u!==$)}toString(){return this.values.map(($)=>$.includes(",")||$.includes(" ")?`"${$}"`:$).join(", ")}get(){return this.values}}class Kj4{entries={};encoding;constructor({fields:$=[],encoding:u="utf-8"}){$.forEach(this.setField.bind(this)),this.encoding=u}setField($){this.entries[$.name.toLowerCase()]=$}getField($){return this.entries[$.toLowerCase()]}removeField($){delete this.entries[$.toLowerCase()]}getByType($){return Object.values(this.entries).filter((u)=>u.kind===$)}}class Wz0{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let u=new Wz0({...$,headers:{...$.headers}});if(u.query)u.query=Kmu(u.query);return u}static isInstance($){if(!$)return!1;let u=$;return"method"in u&&"protocol"in u&&"hostname"in u&&"path"in u&&typeof u.query==="object"&&typeof u.headers==="object"}clone(){return Wz0.clone(this)}}function Kmu($){return Object.keys($).reduce((u,f)=>{let X=$[f];return{...u,[f]:Array.isArray(X)?[...X]:X}},{})}class Hj4{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let u=$;return typeof u.statusCode==="number"&&typeof u.headers==="object"}}function Hmu($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}_mu.Field=zj4;_mu.Fields=Kj4;_mu.HttpRequest=Wz0;_mu.HttpResponse=Hj4;_mu.getHttpHandlerExtensionConfiguration=Omu;_mu.isValidHostname=Hmu;_mu.resolveHttpHandlerRuntimeConfig=zmu});function kmu($){return(u)=>async(f)=>{let{request:X}=f;if($.expectContinueHeader!==!1&&_j4.HttpRequest.isInstance(X)&&X.body&&$.runtime==="node"&&$.requestHandler?.constructor?.name!=="FetchHttpHandler"){let w=!0;if(typeof $.expectContinueHeader==="number")try{w=(Number(X.headers?.["content-length"])??$.bodyLengthChecker?.(X.body)??1/0)>=$.expectContinueHeader}catch(J){}else w=!!$.expectContinueHeader;if(w)X.headers.Expect="100-continue"}return u({...f,request:X})}}var _j4,Rmu,Pj4=($)=>({applyToStack:(u)=>{u.add(kmu($),Rmu)}});var jj4=U(()=>{_j4=Q0(tf(),1);Rmu={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0}});var YD,Gz0,HL,Fz0,j3,Lj4,c30;var DD=U(()=>{YD={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Gz0=YD.WHEN_SUPPORTED,HL={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},Fz0=YD.WHEN_SUPPORTED;(function($){$.MD5="MD5",$.CRC32="CRC32",$.CRC32C="CRC32C",$.CRC64NVME="CRC64NVME",$.SHA1="SHA1",$.SHA256="SHA256"})(j3||(j3={}));(function($){$.HEADER="header",$.TRAILER="trailer"})(Lj4||(Lj4={}));c30=j3.CRC32});var Vz,St=($,u,f,X)=>{if(!(u in $))return;let w=$[u].toUpperCase();if(!Object.values(f).includes(w))throw TypeError(`Cannot load ${X} '${u}'. Expected one of ${Object.values(f)}, got '${$[u]}'.`);return w};var ND1=U(()=>{(function($){$.ENV="env",$.CONFIG="shared config entry"})(Vz||(Vz={}))});var Cmu="AWS_REQUEST_CHECKSUM_CALCULATION",Mmu="request_checksum_calculation",Tj4;var Aj4=U(()=>{DD();ND1();Tj4={environmentVariableSelector:($)=>St($,Cmu,YD,Vz.ENV),configFileSelector:($)=>St($,Mmu,YD,Vz.CONFIG),default:Gz0}});var qmu="AWS_RESPONSE_CHECKSUM_VALIDATION",hmu="response_checksum_validation",Ij4;var Sj4=U(()=>{DD();ND1();Ij4={environmentVariableSelector:($)=>St($,qmu,HL,Vz.ENV),configFileSelector:($)=>St($,hmu,HL,Vz.CONFIG),default:Fz0}});var zD1=b((mmu)=>{var ymu=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],gmu=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Vmu=["TimeoutError","RequestTimeout","RequestTimeoutException"],bmu=[500,502,503,504],imu=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],xmu=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],kj4=($)=>$?.$retryable!==void 0,lmu=($)=>ymu.includes($.name),Rj4=($)=>$.$metadata?.clockSkewCorrected,Cj4=($)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!($&&$ instanceof TypeError))return!1;return u.has($.message)},cmu=($)=>$.$metadata?.httpStatusCode===429||gmu.includes($.name)||$.$retryable?.throttling==!0,OD1=($,u=0)=>kj4($)||Rj4($)||$.name==="InvalidSignatureException"&&$.message?.includes("Signature expired")||Vmu.includes($.name)||imu.includes($?.code||"")||xmu.includes($?.code||"")||bmu.includes($.$metadata?.httpStatusCode||0)||Cj4($)||Mj4($)||$.cause!==void 0&&u<=10&&OD1($.cause,u+1),dmu=($)=>{if($.$metadata?.httpStatusCode!==void 0){let u=$.$metadata.httpStatusCode;if(500<=u&&u<=599&&!OD1($))return!0;return!1}return!1};function Mj4($){return $.code==="ERR_HTTP2_STREAM_ERROR"&&$.message.includes("NGHTTP2_REFUSED_STREAM")}mmu.isBrowserNetworkError=Cj4;mmu.isClockSkewCorrectedError=Rj4;mmu.isClockSkewError=lmu;mmu.isNodeJsHttp2TransientError=Mj4;mmu.isRetryableByTrait=kj4;mmu.isServerError=dmu;mmu.isThrottlingError=cmu;mmu.isTransientError=OD1});var jB=b((Ynu)=>{var $nu=zD1();Ynu.RETRY_MODES=void 0;(function($){$.STANDARD="standard",$.ADAPTIVE="adaptive"})(Ynu.RETRY_MODES||(Ynu.RETRY_MODES={}));var Bz0=3,unu=Ynu.RETRY_MODES.STANDARD;class Uz0{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($){this.beta=$?.beta??0.7,this.minCapacity=$?.minCapacity??1,this.minFillRate=$?.minFillRate??0.5,this.scaleConstant=$?.scaleConstant??0.4,this.smooth=$?.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($){let u;this.updateMeasuredRate();let f=$;if(f?.errorType==="THROTTLING"||$nu.isThrottlingError(f?.error??$)){let J=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=J,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(J),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let w=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(w)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket($){if(!this.enabled)return;if(this.refillTokenBucket(),$>this.availableTokens){let u=($-this.availableTokens)/this.fillRate*1000;await new Promise((f)=>Uz0.setTimeoutFn(f,u))}this.availableTokens=this.availableTokens-$}refillTokenBucket(){let $=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=$;return}let u=($-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=$}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle($){return this.getPrecise($*this.beta)}cubicSuccess($){return this.getPrecise(this.scaleConstant*Math.pow($-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate($){this.refillTokenBucket(),this.fillRate=Math.max($,this.minFillRate),this.maxCapacity=Math.max($,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let $=this.getCurrentTimeInSeconds(),u=Math.floor($*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let f=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(f*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise($){return parseFloat($.toFixed(8))}}var fnu=100,_D1=20000,Xnu=500,KD1=500,wnu=5,Jnu=10,qj4=1,Enu="amz-sdk-invocation-id",Qnu="amz-sdk-request";class mX{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return mX.v2026?50:100}static throttlingDelay(){return mX.v2026?1000:500}static cost(){return mX.v2026?14:5}static throttlingCost(){return mX.v2026?5:10}static modifiedCostType(){return mX.v2026?"THROTTLING":"TRANSIENT"}}class hj4{x=mX.delay();computeNextBackoffDelay($){let u=Math.random(),f=2,X=u*Math.min(this.x*2**$,_D1);return Math.floor(X)}setDelayBase($){this.x=$}}class HD1{delay;count;cost;longPoll;constructor($,u,f,X){this.delay=$,this.count=u,this.cost=f,this.longPoll=X}getRetryCount(){return this.count}getRetryDelay(){return Math.min(_D1,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}var vz0={incompatible:1,attempts:2,capacity:3};class d30{mode=Ynu.RETRY_MODES.STANDARD;capacity=KD1;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor($){if(typeof $==="number")this.maxAttemptsProvider=async()=>$;else if(typeof $==="function")this.maxAttemptsProvider=$;else if($&&typeof $==="object")this.maxAttemptsProvider=async()=>$.maxAttempts,this.baseDelay=$.baseDelay,this.retryBackoffStrategy=$.backoff;this.maxAttemptsProvider??=async()=>Bz0,this.baseDelay??=mX.delay(),this.retryBackoffStrategy??=new hj4}async acquireInitialRetryToken($){return new HD1(mX.delay(),0,void 0,mX.v2026&&$.includes(":longpoll"))}async refreshRetryTokenForRetry($,u){let f=await this.getMaxAttempts(),X=this.retryCode($,u,f),w=X===0,J=$.isLongPoll?.();if(w||J){let E=u.errorType;this.retryBackoffStrategy.setDelayBase(E==="THROTTLING"?mX.throttlingDelay():this.baseDelay);let Q=this.retryBackoffStrategy.computeNextBackoffDelay($.getRetryCount()),Y=Q;if(u.retryAfterHint instanceof Date)Y=Math.max(Q,Math.min(u.retryAfterHint.getTime()-Date.now(),Q+5000));if(!w)throw Object.assign(Error("No retry token available"),{$backoff:mX.v2026&&X===vz0.capacity&&J?Y:0});else{let Z=this.getCapacityCost(E);return this.capacity-=Z,new HD1(Y,$.getRetryCount()+1,Z,$.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess($){this.capacity=Math.min(KD1,this.capacity+($.getRetryCost()??qj4))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch($){return console.warn(`Max attempts provider could not resolve. Using default of ${Bz0}`),Bz0}}retryCode($,u,f){let X=$.getRetryCount()+1,w=this.isRetryableError(u.errorType)?0:vz0.incompatible,J=X<f?0:vz0.attempts,E=this.capacity>=this.getCapacityCost(u.errorType)?0:vz0.capacity;return w||J||E}getCapacityCost($){return $===mX.modifiedCostType()?mX.throttlingCost():mX.cost()}isRetryableError($){return $==="THROTTLING"||$==="TRANSIENT"}}class yj4{mode=Ynu.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor($,u){let{rateLimiter:f}=u??{};this.rateLimiter=f??new Uz0,this.standardRetryStrategy=u?new d30({maxAttempts:typeof $==="number"?$:3,...u}):new d30($)}async acquireInitialRetryToken($){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken($)}async refreshRetryTokenForRetry($,u){return this.rateLimiter.updateClientSendingRate(u),this.standardRetryStrategy.refreshRetryTokenForRetry($,u)}recordSuccess($){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess($)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}class gj4 extends d30{computeNextBackoffDelay;constructor($,u=mX.delay()){super(typeof $==="function"?$:async()=>$);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry($,u){let f=await super.refreshRetryTokenForRetry($,u);return f.getRetryDelay=()=>this.computeNextBackoffDelay(f.getRetryCount()),f}}Ynu.AdaptiveRetryStrategy=yj4;Ynu.ConfiguredRetryStrategy=gj4;Ynu.DEFAULT_MAX_ATTEMPTS=Bz0;Ynu.DEFAULT_RETRY_DELAY_BASE=fnu;Ynu.DEFAULT_RETRY_MODE=unu;Ynu.DefaultRateLimiter=Uz0;Ynu.INITIAL_RETRY_TOKENS=KD1;Ynu.INVOCATION_ID_HEADER=Enu;Ynu.MAXIMUM_RETRY_DELAY=_D1;Ynu.NO_RETRY_INCREMENT=qj4;Ynu.REQUEST_HEADER=Qnu;Ynu.RETRY_COST=wnu;Ynu.Retry=mX;Ynu.StandardRetryStrategy=d30;Ynu.THROTTLING_RETRY_DELAY_BASE=Xnu;Ynu.TIMEOUT_RETRY_COST=Jnu});var G5=b((Mnu)=>{var Lnu=jB(),PD1={warningEmitted:!1},Tnu=($)=>{if($&&!PD1.warningEmitted&&parseInt($.substring(1,$.indexOf(".")))<20)PD1.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
76130
76130
  no longer support Node.js ${$} in January 2026.
76131
76131
 
76132
76132
  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.367.13",
3
+ "version": "2.367.25",
4
4
  "description": "Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "repository": {
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-gpmPSOEv.js","assets/index-CM1D3IOd.js","assets/index-Di2g24XJ.css","assets/ArrowNarrowLeft-DL6IklHf.js","assets/CheckCircle-CeozB0CE.js","assets/Container-2b4BXA-n.js","assets/Settings02-CmAK-JQC.js","assets/XCircle-D4gl9x0F.js","assets/constants-BwYc8BqM.js","assets/useInfiniteQuery-6Vl88Gwv.js","assets/infiniteQueryObserver-BThZVpCW.js","assets/badge-DYaA3f0o.js","assets/input-DrYpnRWV.js","assets/dropdown-menu-C_xsx5zL.js","assets/Check-BwR-n-sF.js","assets/ChevronRight-DzTdh7eY.js","assets/DotsVertical-DwV108_Y.js","assets/table-_uCDG2hl.js","assets/toggle-group-BwRgB5RE.js","assets/use-view-mode-X_MksRXE.js","assets/tooltip-Cc8Oz_Tb.js","assets/FilterLines-DOivCNH_.js","assets/SearchMd-YL-AZ1_e.js","assets/dialog-TcaoJB0K.js","assets/X-BpMfki2j.js","assets/AlertCircle-BT4KzWnI.js","assets/Upload01-DEH4hqbP.js","assets/alert-dialog-CBfLU0-s.js","assets/card-CzmU6DPx.js","assets/Trash01-Bdgng8Ny.js","assets/label-Cm89B89_.js","assets/select-Bi6n0v1l.js","assets/ChevronDown-NgrGgemj.js","assets/ChevronUp-O1681VYk.js","assets/switch-BOO2ukng.js","assets/textarea-DMNeKZeZ.js","assets/RefreshCcw01-DYeBzgxl.js","assets/checkbox-VBT4OFjs.js","assets/LinkExternal01-gSnFHviP.js","assets/use-copy-BI1hoGvu.js","assets/Key01-BQUJeWtG.js","assets/Plus-CuU_Vn1V.js","assets/Play-3lq0IL_j.js"])))=>i.map(i=>d[i]);
2
- import{e as a,j as t,r,l as i,_ as o}from"./index-CM1D3IOd.js";const n=r.lazy(()=>o(()=>import("./registry-layout-gpmPSOEv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42])));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-gpmPSOEv.js","assets/index-CM1D3IOd.js","assets/index-Di2g24XJ.css","assets/ArrowNarrowLeft-DL6IklHf.js","assets/CheckCircle-CeozB0CE.js","assets/Container-2b4BXA-n.js","assets/Settings02-CmAK-JQC.js","assets/XCircle-D4gl9x0F.js","assets/constants-BwYc8BqM.js","assets/useInfiniteQuery-6Vl88Gwv.js","assets/infiniteQueryObserver-BThZVpCW.js","assets/badge-DYaA3f0o.js","assets/input-DrYpnRWV.js","assets/dropdown-menu-C_xsx5zL.js","assets/Check-BwR-n-sF.js","assets/ChevronRight-DzTdh7eY.js","assets/DotsVertical-DwV108_Y.js","assets/table-_uCDG2hl.js","assets/toggle-group-BwRgB5RE.js","assets/use-view-mode-X_MksRXE.js","assets/tooltip-Cc8Oz_Tb.js","assets/FilterLines-DOivCNH_.js","assets/SearchMd-YL-AZ1_e.js","assets/dialog-TcaoJB0K.js","assets/X-BpMfki2j.js","assets/AlertCircle-BT4KzWnI.js","assets/Upload01-DEH4hqbP.js","assets/alert-dialog-CBfLU0-s.js","assets/card-CzmU6DPx.js","assets/Trash01-Bdgng8Ny.js","assets/label-Cm89B89_.js","assets/select-Bi6n0v1l.js","assets/ChevronDown-NgrGgemj.js","assets/ChevronUp-O1681VYk.js","assets/switch-BOO2ukng.js","assets/textarea-DMNeKZeZ.js","assets/RefreshCcw01-DYeBzgxl.js","assets/checkbox-VBT4OFjs.js","assets/LinkExternal01-gSnFHviP.js","assets/use-copy-BI1hoGvu.js","assets/Key01-BQUJeWtG.js","assets/Plus-CuU_Vn1V.js","assets/Play-3lq0IL_j.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-CM1D3IOd.js";const _=l.lazy(()=>u(()=>import("./registry-layout-gpmPSOEv.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42])));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-BThZVpCW.js";import{c4 as i}from"./index-CM1D3IOd.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +0,0 @@
1
- import{I as s}from"./infiniteQueryObserver-BThZVpCW.js";import{c4 as u,c5 as n}from"./index-CM1D3IOd.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-CM1D3IOd.js";import{a as f}from"./index-BbdQ6KU8.js";import"./index-DoZOGE8i.js";import"./constants-BwYc8BqM.js";import"./collections-DVQWcwMA.js";import"./index-j4kSKfbx.js";import"./use-virtual-mcp-2qLUU42J.js";import"./use-collections-CW9RG6h4.js";import"./monaco-editor-DA9r9xlp.js";import"./select-Bi6n0v1l.js";import"./tooltip-Cc8Oz_Tb.js";import"./Check-BwR-n-sF.js";import"./ChevronDown-NgrGgemj.js";import"./ChevronUp-O1681VYk.js";import"./spinner-DSdP03Bc.js";import"./accordion-D87rF_9b.js";import"./agent-icon-BbgplFYb.js";import"./AlertCircle-BT4KzWnI.js";import"./Tool01-Cr9-Ayar.js";import"./Stars02-DjyZ6rm8.js";import"./SwitchHorizontal01-CoAD8Pso.js";import"./RefreshCcw01-DYeBzgxl.js";import"./ArrowNarrowLeft-DL6IklHf.js";import"./XCircle-D4gl9x0F.js";import"./ArrowUpRight-CuD8Ec0Q.js";import"./ZapSquare-C-QuJXiX.js";import"./Users03-BScPbfBT.js";import"./CheckCircle-CeozB0CE.js";import"./ChevronRight-DzTdh7eY.js";import"./DotsVertical-DwV108_Y.js";import"./Container-2b4BXA-n.js";import"./FilterLines-DOivCNH_.js";import"./Star01-B9_yj21o.js";import"./Palette-CDAteqS3.js";import"./HardDrive-Cj4eW7va.js";import"./Key01-BQUJeWtG.js";import"./LayoutLeft-BtnBeX4Q.js";import"./LinkExternal01-gSnFHviP.js";import"./Lock01-CLcwdBbZ.js";import"./Monitor01-B72KxmOA.js";import"./Sun-D3nbZYnT.js";import"./Play-3lq0IL_j.js";import"./Plus-CuU_Vn1V.js";import"./SearchMd-YL-AZ1_e.js";import"./Settings02-CmAK-JQC.js";import"./Shield01-DWmt0CsN.js";import"./Trash01-Bdgng8Ny.js";import"./Upload01-DEH4hqbP.js";import"./User01-DvR2FzxS.js";import"./Users01-DKVYUvbH.js";import"./XClose-8wwGH-xu.js";import"./X-BpMfki2j.js";import"./Zap-DGOMtCmx.js";import"./index-y9b1xONk.js";import"./badge-DYaA3f0o.js";import"./view-mode-toggle-Bt--nFn5.js";import"./layout-D_sGbaUG.js";import"./index-Dr77wSbz.js";import"./sidebar-DapD5BLH.js";import"./use-connection-BA0O34v3.js";import"./use-mcp-tools-DSljy4qc.js";import"./dialog-TcaoJB0K.js";import"./index-CN1EZuP6.js";import"./hover-card-szbVRwlX.js";import"./dropdown-menu-C_xsx5zL.js";import"./integration-icon-CpEacvrW.js";import"./index-DDxVYHfh.js";import"./empty-state-DTm9XCIk.js";import"./create-sse-subscription-CjI9SUTI.js";import"./input-DrYpnRWV.js";function Dt(){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{Dt as default};
@@ -1,33 +0,0 @@
1
- export type Options = {
2
- /**
3
- Match only the first ANSI escape.
4
-
5
- @default false
6
- */
7
- readonly onlyFirst: boolean;
8
- };
9
-
10
- /**
11
- Regular expression for matching ANSI escape codes.
12
-
13
- @example
14
- ```
15
- import ansiRegex from 'ansi-regex';
16
-
17
- ansiRegex().test('\u001B[4mcake\u001B[0m');
18
- //=> true
19
-
20
- ansiRegex().test('cake');
21
- //=> false
22
-
23
- '\u001B[4mcake\u001B[0m'.match(ansiRegex());
24
- //=> ['\u001B[4m', '\u001B[0m']
25
-
26
- '\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
27
- //=> ['\u001B[4m']
28
-
29
- '\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
30
- //=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
31
- ```
32
- */
33
- export default function ansiRegex(options?: Options): RegExp;
@@ -1,14 +0,0 @@
1
- export default function ansiRegex({onlyFirst = false} = {}) {
2
- // Valid string terminator sequences are BEL, ESC\, and 0x9c
3
- const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)';
4
-
5
- // OSC sequences only: ESC ] ... ST (non-greedy until the first ST)
6
- const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
7
-
8
- // CSI and related: ESC/C1, optional intermediates, optional params (supports ; and :) then final byte
9
- const csi = '[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]';
10
-
11
- const pattern = `${osc}|${csi}`;
12
-
13
- return new RegExp(pattern, onlyFirst ? undefined : 'g');
14
- }
@@ -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,61 +0,0 @@
1
- {
2
- "name": "ansi-regex",
3
- "version": "6.2.2",
4
- "description": "Regular expression for matching ANSI escape codes",
5
- "license": "MIT",
6
- "repository": "chalk/ansi-regex",
7
- "funding": "https://github.com/chalk/ansi-regex?sponsor=1",
8
- "author": {
9
- "name": "Sindre Sorhus",
10
- "email": "sindresorhus@gmail.com",
11
- "url": "https://sindresorhus.com"
12
- },
13
- "type": "module",
14
- "exports": "./index.js",
15
- "types": "./index.d.ts",
16
- "sideEffects": false,
17
- "engines": {
18
- "node": ">=12"
19
- },
20
- "scripts": {
21
- "test": "xo && ava && tsd",
22
- "view-supported": "node fixtures/view-codes.js"
23
- },
24
- "files": [
25
- "index.js",
26
- "index.d.ts"
27
- ],
28
- "keywords": [
29
- "ansi",
30
- "styles",
31
- "color",
32
- "colour",
33
- "colors",
34
- "terminal",
35
- "console",
36
- "cli",
37
- "string",
38
- "tty",
39
- "escape",
40
- "formatting",
41
- "rgb",
42
- "256",
43
- "shell",
44
- "xterm",
45
- "command-line",
46
- "text",
47
- "regex",
48
- "regexp",
49
- "re",
50
- "match",
51
- "test",
52
- "find",
53
- "pattern"
54
- ],
55
- "devDependencies": {
56
- "ansi-escapes": "^5.0.0",
57
- "ava": "^3.15.0",
58
- "tsd": "^0.21.0",
59
- "xo": "^0.54.2"
60
- }
61
- }
@@ -1,66 +0,0 @@
1
- # ansi-regex
2
-
3
- > Regular expression for matching [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
4
-
5
- ## Install
6
-
7
- ```sh
8
- npm install ansi-regex
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- import ansiRegex from 'ansi-regex';
15
-
16
- ansiRegex().test('\u001B[4mcake\u001B[0m');
17
- //=> true
18
-
19
- ansiRegex().test('cake');
20
- //=> false
21
-
22
- '\u001B[4mcake\u001B[0m'.match(ansiRegex());
23
- //=> ['\u001B[4m', '\u001B[0m']
24
-
25
- '\u001B[4mcake\u001B[0m'.match(ansiRegex({onlyFirst: true}));
26
- //=> ['\u001B[4m']
27
-
28
- '\u001B]8;;https://github.com\u0007click\u001B]8;;\u0007'.match(ansiRegex());
29
- //=> ['\u001B]8;;https://github.com\u0007', '\u001B]8;;\u0007']
30
- ```
31
-
32
- ## API
33
-
34
- ### ansiRegex(options?)
35
-
36
- Returns a regex for matching ANSI escape codes.
37
-
38
- #### options
39
-
40
- Type: `object`
41
-
42
- ##### onlyFirst
43
-
44
- Type: `boolean`\
45
- Default: `false` *(Matches any ANSI escape codes in a string)*
46
-
47
- Match only the first ANSI escape.
48
-
49
- ## Important
50
-
51
- If you run the regex against untrusted user input in a server context, you should [give it a timeout](https://github.com/sindresorhus/super-regex).
52
-
53
- **I do not consider [ReDoS](https://blog.yossarian.net/2022/12/28/ReDoS-vulnerabilities-and-misaligned-incentives) a valid vulnerability for this package.**
54
-
55
- ## FAQ
56
-
57
- ### Why do you test for codes not in the ECMA 48 standard?
58
-
59
- Some of the codes we run as a test are codes that we acquired finding various lists of non-standard or manufacturer specific codes. We test for both standard and non-standard codes, as most of them follow the same or similar format and can be safely matched in strings without the risk of removing actual string content. There are a few non-standard control codes that do not follow the traditional format (i.e. they end in numbers) thus forcing us to exclude them from the test because we cannot reliably match them.
60
-
61
- On the historical side, those ECMA standards were established in the early 90's whereas the VT100, for example, was designed in the mid/late 70's. At that point in time, control codes were still pretty ungoverned and engineers used them for a multitude of things, namely to activate hardware ports that may have been proprietary. Somewhere else you see a similar 'anarchy' of codes is in the x86 architecture for processors; there are a ton of "interrupts" that can mean different things on certain brands of processors, most of which have been phased out.
62
-
63
- ## Maintainers
64
-
65
- - [Sindre Sorhus](https://github.com/sindresorhus)
66
- - [Josh Junon](https://github.com/qix-)
@@ -1,20 +0,0 @@
1
- Copyright Mathias Bynens <https://mathiasbynens.be/>
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.