decocms 4.113.3 → 4.114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/dist/client/assets/{AlertCircle-C3yBEe62.js → AlertCircle-u3-jN7cm.js} +1 -1
  2. package/dist/client/assets/{AreaChart-infhzD-o.js → AreaChart-BW8WzRm-.js} +1 -1
  3. package/dist/client/assets/{ArrowRight-csX1J00v.js → ArrowRight-mNj20Zjh.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-BMUqiZDH.js → ArrowUp-L9cgM-6a.js} +1 -1
  5. package/dist/client/assets/{ArrowUpRight-B0lTHBei.js → ArrowUpRight-H1UBXt5Z.js} +1 -1
  6. package/dist/client/assets/{Check-BOCHVTek.js → Check-CaYU5aLO.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-C06fMtNJ.js → CheckCircle-CMKcMKAK.js} +1 -1
  8. package/dist/client/assets/{ChevronDown-yHcuw3Yi.js → ChevronDown-CX9YkMBs.js} +1 -1
  9. package/dist/client/assets/{ChevronRight-BvtCGcbv.js → ChevronRight-DbHUX8I-.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-ClBbaiAV.js → ChevronUp-DIB-4lf0.js} +1 -1
  11. package/dist/client/assets/{Copy01-DjMityLv.js → Copy01-CjNrDuBL.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-C4ZbABhl.js → DotsVertical-Bp1NHhTP.js} +1 -1
  13. package/dist/client/assets/{Eye-Drm0H5R_.js → Eye-FOTe0Dsm.js} +1 -1
  14. package/dist/client/assets/{FilterLines-DqKeoryA.js → FilterLines-BZTwbbeF.js} +1 -1
  15. package/dist/client/assets/{Globe01-BQOw_Ub7.js → Globe01-DOxk62wN.js} +1 -1
  16. package/dist/client/assets/{Globe04-CGcQW0g-.js → Globe04-9hsl-3e6.js} +1 -1
  17. package/dist/client/assets/{HardDrive-CWWkxzA_.js → HardDrive-ynMUj-ia.js} +1 -1
  18. package/dist/client/assets/{Image01-DlFSq1lp.js → Image01-av9S7TeF.js} +1 -1
  19. package/dist/client/assets/{Key01-DrW6AdUh.js → Key01-CwuF_1BL.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-DcUppE8c.js → LayoutLeft-D_cBv5Sy.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-BboRX9pE.js → LinkExternal01-B1nrIFqo.js} +1 -1
  22. package/dist/client/assets/{LogOut01-BB-7O4XA.js → LogOut01-BZi_DqYW.js} +1 -1
  23. package/dist/client/assets/{Monitor01-CcN96Otm.js → Monitor01-ymd1mMPU.js} +1 -1
  24. package/dist/client/assets/{Package-BzQD_Ty_.js → Package-CM9ahKwn.js} +1 -1
  25. package/dist/client/assets/{Palette-Blkp2e-R.js → Palette-Ct1p9svP.js} +1 -1
  26. package/dist/client/assets/{Play-D8x6tbEi.js → Play-DVEIH1ry.js} +1 -1
  27. package/dist/client/assets/{Plus-CzNYCMBF.js → Plus-B2hbLmYg.js} +1 -1
  28. package/dist/client/assets/{SearchLg-ChhVm0Qf.js → SearchLg-CtS3seao.js} +1 -1
  29. package/dist/client/assets/{SearchMd-CTSIioHN.js → SearchMd-D3MjkhDD.js} +1 -1
  30. package/dist/client/assets/{Settings02-Cw_4rjJK.js → Settings02-BetwzLEO.js} +1 -1
  31. package/dist/client/assets/{Shield01-DSa5H3Oo.js → Shield01-BAlJAwp4.js} +1 -1
  32. package/dist/client/assets/{Star01-D85zX6Wg.js → Star01-Cp-5Xhim.js} +1 -1
  33. package/dist/client/assets/{Stars01-DTnCAiJN.js → Stars01-CvaXntTQ.js} +1 -1
  34. package/dist/client/assets/{Stars02-BOwVjfZL.js → Stars02-DyviDCrE.js} +1 -1
  35. package/dist/client/assets/{Sun-BgpgdJOh.js → Sun-Y3l5BCJc.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-DdzfKexZ.js → SwitchHorizontal01-q1XlSXKm.js} +1 -1
  37. package/dist/client/assets/{Tool01-BHPElJg3.js → Tool01-DiRWeEXb.js} +1 -1
  38. package/dist/client/assets/{Tool02-B1WxUTRS.js → Tool02-aqrHyC0g.js} +1 -1
  39. package/dist/client/assets/{Trash01-CQs4hG5x.js → Trash01-COnrCNth.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-Cjtdx_Mr.js → TrendUp01-Bn-PWo-g.js} +1 -1
  41. package/dist/client/assets/{Upload01-2aufxkFJ.js → Upload01-DGTw7Jar.js} +1 -1
  42. package/dist/client/assets/{User01-qg2q5EXG.js → User01-BIMIGJ25.js} +1 -1
  43. package/dist/client/assets/{Users01-DecEGc0z.js → Users01-CZUvnM1S.js} +1 -1
  44. package/dist/client/assets/{Users03-DvyrEhaR.js → Users03-CVsX8nJx.js} +1 -1
  45. package/dist/client/assets/{X-ByT759cs.js → X-DNu2-GhF.js} +1 -1
  46. package/dist/client/assets/{XCircle-bCCgCduZ.js → XCircle-C_rSb0eR.js} +1 -1
  47. package/dist/client/assets/{XClose-CZnGWolh.js → XClose-DW-dDUEB.js} +1 -1
  48. package/dist/client/assets/{Zap-CqiaHzzF.js → Zap-De1_wbpV.js} +1 -1
  49. package/dist/client/assets/{ZapSquare-c0rQSrXf.js → ZapSquare-Bp4aYGIH.js} +1 -1
  50. package/dist/client/assets/{ZoomOut-CrXsudJp.js → ZoomOut-BgItYrX3.js} +1 -1
  51. package/dist/client/assets/{access-gate-v1EkWw_v.js → access-gate-CvPG2rlY.js} +1 -1
  52. package/dist/client/assets/{add-section-modal-CCmZDfGj.js → add-section-modal-BA2tqrcH.js} +1 -1
  53. package/dist/client/assets/{agent-icon-BOnTghRl.js → agent-icon-CtZCFShI.js} +1 -1
  54. package/dist/client/assets/{agents-list-Bh9Nz4Fw.js → agents-list-j6YU2i_U.js} +1 -1
  55. package/dist/client/assets/{ai-providers-B78j6u61.js → ai-providers-DLZzYNyZ.js} +1 -1
  56. package/dist/client/assets/{alert-D-rAiL9n.js → alert-EAq1jY4N.js} +1 -1
  57. package/dist/client/assets/{alert-dialog-BV1C1gcm.js → alert-dialog-aAfJenSo.js} +1 -1
  58. package/dist/client/assets/{app-editor-0kysJGlw.js → app-editor-az0PkUZQ.js} +1 -1
  59. package/dist/client/assets/{auth-catchall-OgqNGUQu.js → auth-catchall-DBwvY4WS.js} +1 -1
  60. package/dist/client/assets/{auth-entry-Bu-wAE4C.js → auth-entry-BPBAWmPC.js} +1 -1
  61. package/dist/client/assets/{auth-split-layout-BPjEQYcT.js → auth-split-layout-DDWwxUG2.js} +1 -1
  62. package/dist/client/assets/{auth-DrixEdZV.js → auth-uUmd_yUz.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-trH0piDT.js → authenticate-and-persist-oauth-nQ-5iboz.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-Hhbhn6Ve.js → automation-list-row-DLSYuPO0.js} +1 -1
  65. package/dist/client/assets/{automation-runs-Cl8NKzOf.js → automation-runs-BvVxkEL_.js} +1 -1
  66. package/dist/client/assets/{automations-C0XROIdQ.js → automations-Dg5iM9D-.js} +1 -1
  67. package/dist/client/assets/{autosend-bk9SGLB7.js → autosend-DNGUJUeU.js} +1 -1
  68. package/dist/client/assets/{avatar-TfVrzXcD.js → avatar-yTPDq5I2.js} +1 -1
  69. package/dist/client/assets/{badge-Dq8tKfND.js → badge-BYYz59-0.js} +1 -1
  70. package/dist/client/assets/{block-document-CSSMbpaN.js → block-document-D_2P8u2S.js} +1 -1
  71. package/dist/client/assets/{brand-context-BpSXT9j1.js → brand-context-BdmZewbA.js} +1 -1
  72. package/dist/client/assets/{buckets-CSQzXH56.js → buckets-BalCtIX4.js} +1 -1
  73. package/dist/client/assets/{bulk-category-panel-BnemcYrz.js → bulk-category-panel-CziXKZ4f.js} +1 -1
  74. package/dist/client/assets/{calendar-C4A-LflQ.js → calendar-DWFDhFNo.js} +1 -1
  75. package/dist/client/assets/{capability-load-error-BVansliv.js → capability-load-error-BVSx_lmj.js} +1 -1
  76. package/dist/client/assets/{card-CYIXg6Tz.js → card-C3QUqs2n.js} +1 -1
  77. package/dist/client/assets/{category-editor-CQlm8YTD.js → category-editor-yjOQrzEJ.js} +1 -1
  78. package/dist/client/assets/{chat-context-C0qm1cNd.js → chat-context-DZnGXN4a.js} +1 -1
  79. package/dist/client/assets/{checkbox-CJlLtjz4.js → checkbox-CBFK8MAq.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-xyy-6T0v.js → cli-auth-success-2A3RVtIL.js} +1 -1
  81. package/dist/client/assets/{collection-detail-Ber5gOC6.js → collection-detail-Fw_SCIDN.js} +1 -1
  82. package/dist/client/assets/{collection-display-button-_9VLEjYD.js → collection-display-button-CMt3Z67p.js} +1 -1
  83. package/dist/client/assets/{collection-search-DMVP7tq9.js → collection-search-B9mHZ3UO.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-CfaNknkJ.js → collection-table-wrapper-C2UsHzHD.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-BYtcgqcY.js → collection-tabs-BDkyuUR4.js} +1 -1
  86. package/dist/client/assets/{command-55Q776qF.js → command-BPpRMP2H.js} +1 -1
  87. package/dist/client/assets/{commerce-onboarding-CwQohRCA.js → commerce-onboarding-C0k3wy77.js} +1 -1
  88. package/dist/client/assets/{companions-core-BsogTMm0.js → companions-core-DiyBwoGG.js} +1 -1
  89. package/dist/client/assets/{connect-Dzubmbm6.js → connect-D2oqeqWc.js} +1 -1
  90. package/dist/client/assets/{connect-desktop-dialog-BRyqkebt.js → connect-desktop-dialog-DNUW6BIf.js} +1 -1
  91. package/dist/client/assets/{connection-card-CnHj36QW.js → connection-card-QCEeFg-E.js} +1 -1
  92. package/dist/client/assets/{connection-detail-DioIwvgq.js → connection-detail-BuvcWRak.js} +1 -1
  93. package/dist/client/assets/{connection-form-helpers-C36oVpDa.js → connection-form-helpers--HrBI-cC.js} +1 -1
  94. package/dist/client/assets/{connections-CMhMeidX.js → connections-CWtydlE_.js} +1 -1
  95. package/dist/client/assets/{decopilot-sse-pool-DbXyz4b2.js → decopilot-sse-pool-D68vKjC2.js} +1 -1
  96. package/dist/client/assets/{dialog-Mssh4wvU.js → dialog-CrWMCat9.js} +1 -1
  97. package/dist/client/assets/{domain-settings-D5jbLq0-.js → domain-settings-qXQKOoeU.js} +1 -1
  98. package/dist/client/assets/{drawer-Df2dZjAh.js → drawer-DVTkiBrG.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-BOgizJmB.js → dropdown-menu-CWVq2kdv.js} +1 -1
  100. package/dist/client/assets/{empty-state-CajaBMj9.js → empty-state-BtX-gDuD.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-Bd7ZbKmz.js → extract-connection-data-DfO_43Ui.js} +1 -1
  102. package/dist/client/assets/{file-explorer-C0-F0HB8.js → file-explorer-nlzTvV0U.js} +1 -1
  103. package/dist/client/assets/{file-type-icon-DeZBzLiN.js → file-type-icon-Blhm8rpp.js} +1 -1
  104. package/dist/client/assets/{files-DMRbcRYD.js → files-CB-VCQ9J.js} +1 -1
  105. package/dist/client/assets/{form-a5EhWS__.js → form-JvR3caoV.js} +1 -1
  106. package/dist/client/assets/{general-BXzwd9kr.js → general-ofhGwPwk.js} +1 -1
  107. package/dist/client/assets/{github-repo-picker-BF2G7ylb.js → github-repo-picker-BzqT9Pn1.js} +1 -1
  108. package/dist/client/assets/{hooks-BYKqudQZ.js → hooks-CX-tJdCi.js} +1 -1
  109. package/dist/client/assets/{index-DKYptawH.js → index-BF9MIXYh.js} +1 -1
  110. package/dist/client/assets/{index-i4iJK1qu.js → index-BQKAFkvb.js} +3 -3
  111. package/dist/client/assets/{index-wa1mGSJt.js → index-Bl8jlw7D.js} +5 -5
  112. package/dist/client/assets/{index-D3QnFu3t.js → index-Bm91_nbV.js} +3 -3
  113. package/dist/client/assets/{index-D6Qe38nY.js → index-BuHs6OTD.js} +1 -1
  114. package/dist/client/assets/{index-D0XkAkng.js → index-CZGf-QlT.js} +1 -1
  115. package/dist/client/assets/{index-D8_uS6ju.js → index-CdqOC8p4.js} +1 -1
  116. package/dist/client/assets/{index-ChR3SC6w.js → index-D8itVaOh.js} +1 -1
  117. package/dist/client/assets/{index-Dd318vVc.js → index-DeAa7cPD.js} +1 -1
  118. package/dist/client/assets/{index-CDAhksmq.js → index-TgTbYxQM.js} +1 -1
  119. package/dist/client/assets/{index-BjFrw_Cz.js → index-cM-0JEJy.js} +1 -1
  120. package/dist/client/assets/{index-BvXIjHT6.js → index-jrZjRdSI.js} +1 -1
  121. package/dist/client/assets/{index-BzKhWus-.js → index-k2B6oHDy.js} +1 -1
  122. package/dist/client/assets/{index-redirect-DAwJl3u9.js → index-redirect-pd-pFoY5.js} +1 -1
  123. package/dist/client/assets/{input-DBTIXVeB.js → input-CfDoPzy7.js} +1 -1
  124. package/dist/client/assets/{integration-icon-Cws5p9F1.js → integration-icon-ChBrp2uX.js} +1 -1
  125. package/dist/client/assets/{invite-member-dialog-U14K8dLP.js → invite-member-dialog-7T9uI3o5.js} +1 -1
  126. package/dist/client/assets/{label-hZbHKQe4.js → label-Br-zNLTG.js} +1 -1
  127. package/dist/client/assets/{layout-BbmfwSeT.js → layout-DMOlkuOh.js} +1 -1
  128. package/dist/client/assets/{login-CYk7QqzO.js → login-CWIddfiC.js} +1 -1
  129. package/dist/client/assets/{mcp-oauth-BBJ-dCGK.js → mcp-oauth-DhzxU0XK.js} +1 -1
  130. package/dist/client/assets/{members-Br5ZzfAU.js → members-CGKVy4T3.js} +1 -1
  131. package/dist/client/assets/{monaco-editor-B7XD9jse.js → monaco-editor-BcwFx31f.js} +1 -1
  132. package/dist/client/assets/{monitoring-stats-row-CiB1VTGS.js → monitoring-stats-row-DKIXNyFS.js} +1 -1
  133. package/dist/client/assets/{multi-select-DtCSfvTi.js → multi-select-DwEYUWQk.js} +1 -1
  134. package/dist/client/assets/{oauth-callback-CuoSY6yW.js → oauth-callback-CRC-TNHK.js} +1 -1
  135. package/dist/client/assets/{oauth-callback-ai-provider-DTd9RCl8.js → oauth-callback-ai-provider-Bn5ecNQ9.js} +1 -1
  136. package/dist/client/assets/{onboarding-VI53SQy5.js → onboarding-ChQBM6P7.js} +1 -1
  137. package/dist/client/assets/{org-install-BpRHfBoz.js → org-install-B2VYuIrV.js} +1 -1
  138. package/dist/client/assets/{org-layout-Ip0hYM6i.js → org-layout-CXw1-r8T.js} +1 -1
  139. package/dist/client/assets/{organization-choice-Ccir5zvX.js → organization-choice-thMPBy_H.js} +1 -1
  140. package/dist/client/assets/{orgs-BK0nOPLw.js → orgs-DpewEJO4.js} +1 -1
  141. package/dist/client/assets/{page-seo-form-CBAWdwBB.js → page-seo-form-Bj8agFDN.js} +1 -1
  142. package/dist/client/assets/page-seo-sheet-xYyduq_3.js +1 -0
  143. package/dist/client/assets/{popover-WvXSsr2A.js → popover-PFUSi04J.js} +1 -1
  144. package/dist/client/assets/{post-editor-GEIG3Qbs.js → post-editor-fudBfEMW.js} +1 -1
  145. package/dist/client/assets/{primitives-B4b9OMlU.js → primitives-CRg4BEbe.js} +1 -1
  146. package/dist/client/assets/{profile-BJOXihUj.js → profile-krVPqEis.js} +1 -1
  147. package/dist/client/assets/project-app-view-F_105CvS.js +1 -0
  148. package/dist/client/assets/record-editor-B9z6hPr0.js +1 -0
  149. package/dist/client/assets/redirect-editor-pmxNft8I.js +1 -0
  150. package/dist/client/assets/registry-BBaBGga3.js +2 -0
  151. package/dist/client/assets/{registry-layout-CUSBCALf.js → registry-layout-D0if0uky.js} +2 -2
  152. package/dist/client/assets/{reports-CJYmnCRR.js → reports-DQRCq5Dl.js} +2 -2
  153. package/dist/client/assets/{require-capability-BOqOfzCO.js → require-capability-lUm3WxQW.js} +1 -1
  154. package/dist/client/assets/{required-auth-layout-C1iQaX9e.js → required-auth-layout-zgA3qXU6.js} +1 -1
  155. package/dist/client/assets/{reset-password-ChmXlYVK.js → reset-password-d6_AkYAQ.js} +1 -1
  156. package/dist/client/assets/{roles-CuzTIzcA.js → roles-B_zG47r7.js} +1 -1
  157. package/dist/client/assets/{search-input-Di_KVfz5.js → search-input-Im3obJ_5.js} +1 -1
  158. package/dist/client/assets/{secrets-Cwnb5SFR.js → secrets-DZpWBr7n.js} +1 -1
  159. package/dist/client/assets/{sections-editor-BnUP7eos.js → sections-editor-D7TakwFG.js} +1 -1
  160. package/dist/client/assets/{select-CS3vGjLf.js → select-BDOR27tE.js} +1 -1
  161. package/dist/client/assets/{select-model-CBkA3Qex.js → select-model-BRQ-V94m.js} +1 -1
  162. package/dist/client/assets/{self-tool-result-olaCzjy8.js → self-tool-result-VStIScqg.js} +1 -1
  163. package/dist/client/assets/{seo-editor-BS3PrYY5.js → seo-editor-DgKKLq5W.js} +1 -1
  164. package/dist/client/assets/{settings-layout-BWiwB1ve.js → settings-layout-CxNvsg8J.js} +1 -1
  165. package/dist/client/assets/{settings-section-B42r-p4q.js → settings-section-BWS26hMF.js} +1 -1
  166. package/dist/client/assets/{shell-controls-CG47bgem.js → shell-controls-HSPoO0mS.js} +1 -1
  167. package/dist/client/assets/{shell-layout-C2jFubEc.js → shell-layout-D_sblBCw.js} +1 -1
  168. package/dist/client/assets/{sidebar-DhNO0hbl.js → sidebar-BvGzib5A.js} +1 -1
  169. package/dist/client/assets/{skeleton-CkFFLL1Z.js → skeleton-BUe_WzkR.js} +1 -1
  170. package/dist/client/assets/{sso-DvIYBwsX.js → sso-dMXAkSfn.js} +1 -1
  171. package/dist/client/assets/{store-D2kZokQ2.js → store-qzvEGiXH.js} +1 -1
  172. package/dist/client/assets/store-registry-C0M7zBzp.js +2 -0
  173. package/dist/client/assets/{studio-tools-Dj_suUV-.js → studio-tools-CvoMFYCt.js} +1 -1
  174. package/dist/client/assets/{switch-CWGgmiWZ.js → switch-muGjhkBJ.js} +1 -1
  175. package/dist/client/assets/{table-B7Z84RDB.js → table-BUQ1sil8.js} +1 -1
  176. package/dist/client/assets/{tabs-CSjEyx_g.js → tabs-DHpcGpHH.js} +1 -1
  177. package/dist/client/assets/{textarea-DNrJISFS.js → textarea-Bt_QtOk0.js} +1 -1
  178. package/dist/client/assets/{toggle-group-DngQXFC1.js → toggle-group-CQKX4oUd.js} +1 -1
  179. package/dist/client/assets/{toolbar-BJAhXpws.js → toolbar-0DwtxERz.js} +1 -1
  180. package/dist/client/assets/{toolbar-icon-button-BPZ8JgHL.js → toolbar-icon-button-DZhVI9-2.js} +1 -1
  181. package/dist/client/assets/{tooltip-BoYfeb4r.js → tooltip-BigwhDSP.js} +1 -1
  182. package/dist/client/assets/{use-ai-providers-B0uEL6GU.js → use-ai-providers-WKbvbsVL.js} +1 -1
  183. package/dist/client/assets/{use-api-keys-BUXdsmWE.js → use-api-keys-Te5PgtxD.js} +1 -1
  184. package/dist/client/assets/{use-automations-BX-f2xPQ.js → use-automations--GMik9NX.js} +1 -1
  185. package/dist/client/assets/{use-autosave-D2xExJSi.js → use-autosave-M2ceoril.js} +1 -1
  186. package/dist/client/assets/{use-capability-zn_dFQCr.js → use-capability-Bh8YlueK.js} +1 -1
  187. package/dist/client/assets/{use-clock-tick-Daz3W4ZL.js → use-clock-tick-IRvpmO0_.js} +1 -1
  188. package/dist/client/assets/{use-connection-CI4KVjBL.js → use-connection-COZgUeU0.js} +1 -1
  189. package/dist/client/assets/{use-copy-BFe-yhR7.js → use-copy-CFyLSHsK.js} +1 -1
  190. package/dist/client/assets/{use-create-virtual-mcp-BruuOj8R.js → use-create-virtual-mcp-VVjBeALb.js} +1 -1
  191. package/dist/client/assets/{use-debounced-autosave-C18-WjK7.js → use-debounced-autosave-BxkO-_ca.js} +1 -1
  192. package/dist/client/assets/{use-debounced-value-CgLjUKeF.js → use-debounced-value-DmIl8W6n.js} +1 -1
  193. package/dist/client/assets/{use-deco-credits-Cl6XjjTb.js → use-deco-credits-CmiQbTPM.js} +1 -1
  194. package/dist/client/assets/{use-decopilot-events-Opg95yOG.js → use-decopilot-events-O1Gk-ETR.js} +1 -1
  195. package/dist/client/assets/{use-delete-connection-CkYrHV-n.js → use-delete-connection-B5quwMM9.js} +1 -1
  196. package/dist/client/assets/{use-deployment-admin-CWMJlws-.js → use-deployment-admin-BElTs8M7.js} +1 -1
  197. package/dist/client/assets/{use-file-configs-CU2Y0Emb.js → use-file-configs-B0d07k9Y.js} +1 -1
  198. package/dist/client/assets/{use-infinite-scroll-mXDq9sbk.js → use-infinite-scroll-BZlKDm5N.js} +1 -1
  199. package/dist/client/assets/{use-join-requests-zFCwv89L.js → use-join-requests-CZ3onEZJ.js} +1 -1
  200. package/dist/client/assets/{use-mcp-auth-status-BoHM8OB0.js → use-mcp-auth-status-BeMiAxE7.js} +1 -1
  201. package/dist/client/assets/{use-mcp-client-DL89siIV.js → use-mcp-client-CZsvR6c7.js} +1 -1
  202. package/dist/client/assets/{use-mcp-tools-C4CClJFZ.js → use-mcp-tools-C86d_75c.js} +1 -1
  203. package/dist/client/assets/{use-members-A3agoGMA.js → use-members-DmoF-3Ie.js} +1 -1
  204. package/dist/client/assets/{use-mobile-BwfgD4pT.js → use-mobile-BVFGUH1V.js} +1 -1
  205. package/dist/client/assets/{use-navigate-to-agent-Bc0CpSD2.js → use-navigate-to-agent-CID4qRVq.js} +1 -1
  206. package/dist/client/assets/{use-org-auth-client-BTfVRkCO.js → use-org-auth-client-CcOUerBq.js} +1 -1
  207. package/dist/client/assets/{use-org-sso-DYo24v3_.js → use-org-sso-DK1YMh-o.js} +1 -1
  208. package/dist/client/assets/{use-organization-roles-DYKLAq-n.js → use-organization-roles-DGfdPMyJ.js} +1 -1
  209. package/dist/client/assets/{use-organization-settings-DoCpZun-.js → use-organization-settings-C8zNTcuC.js} +1 -1
  210. package/dist/client/assets/{use-registry-app-nEihaLca.js → use-registry-app-DOaPd1Kq.js} +1 -1
  211. package/dist/client/assets/{use-registry-connections-DuneVuyO.js → use-registry-connections-BLLrfs0c.js} +1 -1
  212. package/dist/client/assets/{use-secrets-CG9MzH4M.js → use-secrets-CmLaq4UW.js} +1 -1
  213. package/dist/client/assets/{use-status-sounds-C-LWwT7t.js → use-status-sounds-C_iNgi5N.js} +1 -1
  214. package/dist/client/assets/{use-view-mode--BSnFAw6.js → use-view-mode-Be73RvXD.js} +1 -1
  215. package/dist/client/assets/{use-virtual-mcp-C6uu6xME.js → use-virtual-mcp-BGZZhgI8.js} +1 -1
  216. package/dist/client/assets/useInfiniteQuery-Cdk9mXL-.js +1 -0
  217. package/dist/client/assets/{useQueries-BT8q2MfJ.js → useQueries-C11UDtFe.js} +1 -1
  218. package/dist/client/assets/{useRouterState-BMgTcVFU.js → useRouterState-B8sLgF57.js} +1 -1
  219. package/dist/client/assets/useSuspenseInfiniteQuery-LZ9xlW1Z.js +1 -0
  220. package/dist/client/assets/{users-BXaOYgw2.js → users-B_lOVuoe.js} +1 -1
  221. package/dist/client/assets/{variant-calendar-C61DYxyp.js → variant-calendar-3-o3D_Rr.js} +1 -1
  222. package/dist/client/assets/{view-mode-toggle-C8Ikqgl7.js → view-mode-toggle-DnN-vUal.js} +1 -1
  223. package/dist/client/index.html +1 -1
  224. package/dist/client/report-og-fallback.png +0 -0
  225. package/dist/server/cli.js +680 -686
  226. package/dist/server/migrate.js +5 -5
  227. package/dist/server/node_modules/@resvg/resvg-js/LICENSE +373 -0
  228. package/dist/server/node_modules/@resvg/resvg-js/README.md +314 -0
  229. package/dist/server/node_modules/@resvg/resvg-js/index.js +23 -0
  230. package/dist/server/node_modules/@resvg/resvg-js/js-binding.js +1 -0
  231. package/dist/server/node_modules/@resvg/resvg-js/package.json +152 -0
  232. package/dist/server/node_modules/@shuding/opentype.js/LICENSE +20 -0
  233. package/dist/server/node_modules/@shuding/opentype.js/README.md +9 -0
  234. package/dist/server/node_modules/@shuding/opentype.js/RELEASES.md +272 -0
  235. package/dist/server/node_modules/@shuding/opentype.js/bin/ot +84 -0
  236. package/dist/server/node_modules/@shuding/opentype.js/bin/server.js +64 -0
  237. package/dist/server/node_modules/@shuding/opentype.js/bin/test-render +96 -0
  238. package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.js +11655 -0
  239. package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.min.js +2 -0
  240. package/dist/server/node_modules/@shuding/opentype.js/dist/opentype.module.js +11639 -0
  241. package/dist/server/node_modules/@shuding/opentype.js/package.json +73 -0
  242. package/dist/server/node_modules/@shuding/opentype.js/src/bbox.js +158 -0
  243. package/dist/server/node_modules/@shuding/opentype.js/src/bidi.js +243 -0
  244. package/dist/server/node_modules/@shuding/opentype.js/src/char.js +43 -0
  245. package/dist/server/node_modules/@shuding/opentype.js/src/check.js +16 -0
  246. package/dist/server/node_modules/@shuding/opentype.js/src/encoding.js +1032 -0
  247. package/dist/server/node_modules/@shuding/opentype.js/src/features/applySubstitution.js +74 -0
  248. package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicPresentationForms.js +83 -0
  249. package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/arabicRequiredLigatures.js +41 -0
  250. package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicSentence.js +43 -0
  251. package/dist/server/node_modules/@shuding/opentype.js/src/features/arab/contextCheck/arabicWord.js +31 -0
  252. package/dist/server/node_modules/@shuding/opentype.js/src/features/featureQuery.js +483 -0
  253. package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/contextCheck/latinWord.js +31 -0
  254. package/dist/server/node_modules/@shuding/opentype.js/src/features/latn/latinLigatures.js +40 -0
  255. package/dist/server/node_modules/@shuding/opentype.js/src/font.js +433 -0
  256. package/dist/server/node_modules/@shuding/opentype.js/src/glyph.js +274 -0
  257. package/dist/server/node_modules/@shuding/opentype.js/src/glyphset.js +150 -0
  258. package/dist/server/node_modules/@shuding/opentype.js/src/hintingtt.js +3062 -0
  259. package/dist/server/node_modules/@shuding/opentype.js/src/index.js +5 -0
  260. package/dist/server/node_modules/@shuding/opentype.js/src/layout.js +357 -0
  261. package/dist/server/node_modules/@shuding/opentype.js/src/opentype.js +375 -0
  262. package/dist/server/node_modules/@shuding/opentype.js/src/parse.js +628 -0
  263. package/dist/server/node_modules/@shuding/opentype.js/src/path.js +212 -0
  264. package/dist/server/node_modules/@shuding/opentype.js/src/position.js +77 -0
  265. package/dist/server/node_modules/@shuding/opentype.js/src/substitution.js +447 -0
  266. package/dist/server/node_modules/@shuding/opentype.js/src/table.js +215 -0
  267. package/dist/server/node_modules/@shuding/opentype.js/src/tables/cff.js +1156 -0
  268. package/dist/server/node_modules/@shuding/opentype.js/src/tables/cmap.js +145 -0
  269. package/dist/server/node_modules/@shuding/opentype.js/src/tables/fvar.js +71 -0
  270. package/dist/server/node_modules/@shuding/opentype.js/src/tables/gdef.js +62 -0
  271. package/dist/server/node_modules/@shuding/opentype.js/src/tables/glyf.js +349 -0
  272. package/dist/server/node_modules/@shuding/opentype.js/src/tables/gpos.js +146 -0
  273. package/dist/server/node_modules/@shuding/opentype.js/src/tables/gsub.js +251 -0
  274. package/dist/server/node_modules/@shuding/opentype.js/src/tables/head.js +35 -0
  275. package/dist/server/node_modules/@shuding/opentype.js/src/tables/hhea.js +27 -0
  276. package/dist/server/node_modules/@shuding/opentype.js/src/tables/hmtx.js +51 -0
  277. package/dist/server/node_modules/@shuding/opentype.js/src/tables/kern.js +69 -0
  278. package/dist/server/node_modules/@shuding/opentype.js/src/tables/loca.js +31 -0
  279. package/dist/server/node_modules/@shuding/opentype.js/src/tables/ltag.js +33 -0
  280. package/dist/server/node_modules/@shuding/opentype.js/src/tables/maxp.js +32 -0
  281. package/dist/server/node_modules/@shuding/opentype.js/src/tables/meta.js +30 -0
  282. package/dist/server/node_modules/@shuding/opentype.js/src/tables/name.js +680 -0
  283. package/dist/server/node_modules/@shuding/opentype.js/src/tables/os2.js +65 -0
  284. package/dist/server/node_modules/@shuding/opentype.js/src/tables/post.js +41 -0
  285. package/dist/server/node_modules/@shuding/opentype.js/src/tokenizer.js +522 -0
  286. package/dist/server/node_modules/@shuding/opentype.js/src/types.js +976 -0
  287. package/dist/server/node_modules/@shuding/opentype.js/src/util.js +17 -0
  288. package/dist/server/node_modules/base64-js/.travis.yml +5 -0
  289. package/dist/server/node_modules/base64-js/LICENSE.MIT +21 -0
  290. package/dist/server/node_modules/base64-js/README.md +31 -0
  291. package/dist/server/node_modules/base64-js/bench/bench.js +19 -0
  292. package/dist/server/node_modules/base64-js/lib/b64.js +124 -0
  293. package/dist/server/node_modules/base64-js/package.json +34 -0
  294. package/dist/server/node_modules/base64-js/test/convert.js +51 -0
  295. package/dist/server/node_modules/base64-js/test/url-safe.js +18 -0
  296. package/dist/server/node_modules/camelize/.eslintrc +24 -0
  297. package/dist/server/node_modules/camelize/.github/FUNDING.yml +12 -0
  298. package/dist/server/node_modules/camelize/CHANGELOG.md +64 -0
  299. package/dist/server/node_modules/camelize/LICENSE +18 -0
  300. package/dist/server/node_modules/camelize/README.md +81 -0
  301. package/dist/server/node_modules/camelize/example/camel.js +12 -0
  302. package/dist/server/node_modules/camelize/index.js +61 -0
  303. package/dist/server/node_modules/camelize/package.json +84 -0
  304. package/dist/server/node_modules/camelize/test/camel.js +48 -0
  305. package/dist/server/node_modules/color-name/LICENSE +8 -0
  306. package/dist/server/node_modules/color-name/README.md +11 -0
  307. package/dist/server/node_modules/color-name/index.js +152 -0
  308. package/dist/server/node_modules/color-name/package.json +28 -0
  309. package/dist/server/node_modules/css-background-parser/LICENSE +22 -0
  310. package/dist/server/node_modules/css-background-parser/README.md +149 -0
  311. package/dist/server/node_modules/css-background-parser/index.js +162 -0
  312. package/dist/server/node_modules/css-background-parser/package.json +19 -0
  313. package/dist/server/node_modules/css-box-shadow/README.md +27 -0
  314. package/dist/server/node_modules/css-box-shadow/index.js +64 -0
  315. package/dist/server/node_modules/css-box-shadow/package.json +14 -0
  316. package/dist/server/node_modules/css-box-shadow/test.js +204 -0
  317. package/dist/server/node_modules/css-color-keywords/LICENSE +15 -0
  318. package/dist/server/node_modules/css-color-keywords/README.md +47 -0
  319. package/dist/server/node_modules/css-color-keywords/colors.json +148 -0
  320. package/dist/server/node_modules/css-color-keywords/index.js +3 -0
  321. package/dist/server/node_modules/css-color-keywords/package.json +27 -0
  322. package/dist/server/node_modules/css-gradient-parser/LICENSE +21 -0
  323. package/dist/server/node_modules/css-gradient-parser/README.md +75 -0
  324. package/dist/server/node_modules/css-gradient-parser/dist/index.cjs +2 -0
  325. package/dist/server/node_modules/css-gradient-parser/dist/index.js +2 -0
  326. package/dist/server/node_modules/css-gradient-parser/package.json +54 -0
  327. package/dist/server/node_modules/css-to-react-native/LICENSE.md +21 -0
  328. package/dist/server/node_modules/css-to-react-native/README.md +115 -0
  329. package/dist/server/node_modules/css-to-react-native/index.js +886 -0
  330. package/dist/server/node_modules/css-to-react-native/package.json +65 -0
  331. package/dist/server/node_modules/css-to-react-native/src/TokenStream.js +74 -0
  332. package/dist/server/node_modules/css-to-react-native/src/__tests__/aspectRatio.js +23 -0
  333. package/dist/server/node_modules/css-to-react-native/src/__tests__/border.js +85 -0
  334. package/dist/server/node_modules/css-to-react-native/src/__tests__/borderColor.js +37 -0
  335. package/dist/server/node_modules/css-to-react-native/src/__tests__/boxModel.js +136 -0
  336. package/dist/server/node_modules/css-to-react-native/src/__tests__/boxShadow.js +83 -0
  337. package/dist/server/node_modules/css-to-react-native/src/__tests__/colors.js +31 -0
  338. package/dist/server/node_modules/css-to-react-native/src/__tests__/flex.js +122 -0
  339. package/dist/server/node_modules/css-to-react-native/src/__tests__/flexFlow.js +22 -0
  340. package/dist/server/node_modules/css-to-react-native/src/__tests__/font.js +117 -0
  341. package/dist/server/node_modules/css-to-react-native/src/__tests__/fontFamily.js +43 -0
  342. package/dist/server/node_modules/css-to-react-native/src/__tests__/fontVariant.js +15 -0
  343. package/dist/server/node_modules/css-to-react-native/src/__tests__/fontWeight.js +8 -0
  344. package/dist/server/node_modules/css-to-react-native/src/__tests__/index.js +204 -0
  345. package/dist/server/node_modules/css-to-react-native/src/__tests__/placeContent.js +19 -0
  346. package/dist/server/node_modules/css-to-react-native/src/__tests__/shadowOffsets.js +13 -0
  347. package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecoration.js +103 -0
  348. package/dist/server/node_modules/css-to-react-native/src/__tests__/textDecorationLine.js +23 -0
  349. package/dist/server/node_modules/css-to-react-native/src/__tests__/textShadow.js +30 -0
  350. package/dist/server/node_modules/css-to-react-native/src/__tests__/transform.js +55 -0
  351. package/dist/server/node_modules/css-to-react-native/src/__tests__/units.js +132 -0
  352. package/dist/server/node_modules/css-to-react-native/src/devPropertiesWithoutUnitsRegExp.js +19 -0
  353. package/dist/server/node_modules/css-to-react-native/src/index.js +90 -0
  354. package/dist/server/node_modules/css-to-react-native/src/tokenTypes.js +75 -0
  355. package/dist/server/node_modules/css-to-react-native/src/transforms/aspectRatio.js +12 -0
  356. package/dist/server/node_modules/css-to-react-native/src/transforms/border.js +53 -0
  357. package/dist/server/node_modules/css-to-react-native/src/transforms/boxShadow.js +11 -0
  358. package/dist/server/node_modules/css-to-react-native/src/transforms/flex.js +65 -0
  359. package/dist/server/node_modules/css-to-react-native/src/transforms/flexFlow.js +37 -0
  360. package/dist/server/node_modules/css-to-react-native/src/transforms/font.js +63 -0
  361. package/dist/server/node_modules/css-to-react-native/src/transforms/fontFamily.js +20 -0
  362. package/dist/server/node_modules/css-to-react-native/src/transforms/fontVariant.js +14 -0
  363. package/dist/server/node_modules/css-to-react-native/src/transforms/index.js +77 -0
  364. package/dist/server/node_modules/css-to-react-native/src/transforms/placeContent.js +24 -0
  365. package/dist/server/node_modules/css-to-react-native/src/transforms/textDecoration.js +53 -0
  366. package/dist/server/node_modules/css-to-react-native/src/transforms/textDecorationLine.js +18 -0
  367. package/dist/server/node_modules/css-to-react-native/src/transforms/textShadow.js +10 -0
  368. package/dist/server/node_modules/css-to-react-native/src/transforms/transform.js +74 -0
  369. package/dist/server/node_modules/css-to-react-native/src/transforms/util.js +99 -0
  370. package/dist/server/node_modules/hex-rgb/index.js +47 -0
  371. package/dist/server/node_modules/hex-rgb/license +9 -0
  372. package/dist/server/node_modules/hex-rgb/package.json +39 -0
  373. package/dist/server/node_modules/hex-rgb/readme.md +86 -0
  374. package/dist/server/node_modules/linebreak/LICENSE +21 -0
  375. package/dist/server/node_modules/linebreak/dist/main.cjs +1369 -0
  376. package/dist/server/node_modules/linebreak/dist/module.mjs +1368 -0
  377. package/dist/server/node_modules/linebreak/package.json +57 -0
  378. package/dist/server/node_modules/linebreak/readme.md +62 -0
  379. package/dist/server/node_modules/parse-css-color/CHANGELOG.md +54 -0
  380. package/dist/server/node_modules/parse-css-color/LICENSE +21 -0
  381. package/dist/server/node_modules/parse-css-color/README.md +110 -0
  382. package/dist/server/node_modules/parse-css-color/dist/index.cjs.js +171 -0
  383. package/dist/server/node_modules/parse-css-color/dist/index.esm.js +167 -0
  384. package/dist/server/node_modules/parse-css-color/dist/index.umd.js +7 -0
  385. package/dist/server/node_modules/parse-css-color/package.json +55 -0
  386. package/dist/server/node_modules/postcss-value-parser/LICENSE +22 -0
  387. package/dist/server/node_modules/postcss-value-parser/README.md +263 -0
  388. package/dist/server/node_modules/postcss-value-parser/lib/index.js +28 -0
  389. package/dist/server/node_modules/postcss-value-parser/lib/parse.js +321 -0
  390. package/dist/server/node_modules/postcss-value-parser/lib/stringify.js +48 -0
  391. package/dist/server/node_modules/postcss-value-parser/lib/unit.js +120 -0
  392. package/dist/server/node_modules/postcss-value-parser/lib/walk.js +22 -0
  393. package/dist/server/node_modules/postcss-value-parser/package.json +58 -0
  394. package/dist/server/node_modules/satori/LICENSE +373 -0
  395. package/dist/server/node_modules/satori/README.md +516 -0
  396. package/dist/server/node_modules/satori/dist/index.cjs +8 -0
  397. package/dist/server/node_modules/satori/dist/index.cjs.LEGAL.txt +4 -0
  398. package/dist/server/node_modules/satori/dist/index.js +8 -0
  399. package/dist/server/node_modules/satori/dist/index.js.LEGAL.txt +4 -0
  400. package/dist/server/node_modules/satori/dist/jsx/index.cjs +2 -0
  401. package/dist/server/node_modules/satori/dist/jsx/index.cjs.LEGAL.txt +0 -0
  402. package/dist/server/node_modules/satori/dist/jsx/index.js +2 -0
  403. package/dist/server/node_modules/satori/dist/jsx/index.js.LEGAL.txt +0 -0
  404. package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs +2 -0
  405. package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.cjs.LEGAL.txt +0 -0
  406. package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js +2 -0
  407. package/dist/server/node_modules/satori/dist/jsx/jsx-runtime.js.LEGAL.txt +0 -0
  408. package/dist/server/node_modules/satori/dist/standalone.cjs +8 -0
  409. package/dist/server/node_modules/satori/dist/standalone.cjs.LEGAL.txt +4 -0
  410. package/dist/server/node_modules/satori/dist/standalone.js +8 -0
  411. package/dist/server/node_modules/satori/dist/standalone.js.LEGAL.txt +4 -0
  412. package/dist/server/node_modules/satori/package.json +149 -0
  413. package/dist/server/node_modules/satori/yoga.wasm +0 -0
  414. package/dist/server/node_modules/tiny-inflate/LICENSE +21 -0
  415. package/dist/server/node_modules/tiny-inflate/index.js +375 -0
  416. package/dist/server/node_modules/tiny-inflate/package.json +28 -0
  417. package/dist/server/node_modules/tiny-inflate/readme.md +31 -0
  418. package/dist/server/node_modules/tiny-inflate/test/index.js +75 -0
  419. package/dist/server/node_modules/tiny-inflate/test/lorem.txt +199 -0
  420. package/dist/server/node_modules/unicode-trie/LICENSE +8 -0
  421. package/dist/server/node_modules/unicode-trie/README.md +77 -0
  422. package/dist/server/node_modules/unicode-trie/builder.js +966 -0
  423. package/dist/server/node_modules/unicode-trie/index.js +136 -0
  424. package/dist/server/node_modules/unicode-trie/package.json +27 -0
  425. package/dist/server/node_modules/unicode-trie/swap.js +25 -0
  426. package/dist/server/node_modules/unicode-trie/test/mocha.opts +1 -0
  427. package/dist/server/node_modules/unicode-trie/test/test.js +243 -0
  428. package/dist/server/server.js +664 -670
  429. package/package.json +3 -1
  430. package/dist/client/assets/page-seo-sheet-BVOTKmAi.js +0 -1
  431. package/dist/client/assets/project-app-view-BJPw6BEN.js +0 -1
  432. package/dist/client/assets/record-editor-DGNLZeof.js +0 -1
  433. package/dist/client/assets/redirect-editor-rNADegcF.js +0 -1
  434. package/dist/client/assets/registry-DSHcnwR4.js +0 -2
  435. package/dist/client/assets/store-registry-q7deglpz.js +0 -2
  436. package/dist/client/assets/useInfiniteQuery-DVl8ILZo.js +0 -1
  437. package/dist/client/assets/useSuspenseInfiniteQuery-ClimnWE2.js +0 -1
@@ -1030,19 +1030,19 @@ var ia=Object.defineProperty;var aa=(t)=>t;function ua(t,n){this[t]=aa.bind(null
1030
1030
  insert into organization_billing (organization_id, legacy)
1031
1031
  select id, true from organization
1032
1032
  on conflict (organization_id) do nothing
1033
- `.execute(t)}async function Gx(t){await t.schema.dropTable("organization_paid_seat").execute(),await t.schema.dropTable("organization_billing").execute()}var vx={"001-initial-schema":Tt,"002-organization-settings":Ct,"003-connection-schema-align":pt,"004-remove-models-binding":wt,"005-connection-configuration":ft,"006-add-views-to-settings":Nt,"007-monitoring-logs":st,"008-event-bus":Et,"009-drop-audit-logs":Kt,"010-gateways":ht,"011-gateway-icon":Pt,"012-gateway-tool-selection-mode":zt,"013-monitoring-user-agent-gateway":kt,"014-gateway-resources-prompts":Ut,"015-monitoring-properties":Dt,"016-downstream-token-client-info":jt,"017-downstream-token-remove-userid":Lt,"018-drop-gateway-tool-selection-strategy":Jt,"019-remove-gateway-is-default":Rt,"020-enabled-plugins":Wt,"021-threads":$t,"022-rename-gateway-to-virtual-mcp":At,"023-optimize-thread-indexes":Xt,"024-consolidate-virtual-mcp":Qt,"025-add-monitoring-virtual-mcp-id":Zt,"026-restrict-child-connection-delete":Ft,"027-update-management-mcp-url":Ht,"028-update-management-mcp-to-self":Yt,"029-add-updated-by-to-connections":gt,"030-member-tags":Ot,"031-add-dependency-mode":Bt,"032-projects":It,"033-thread-status":Gt,"034-monitoring-dashboards":vt,"035-project-connections":Vt,"036-update-registry-url":qt,"037-ai-provider-keys":lt,"038-oauth-pkce-states":dt,"039-automations":bt,"040-replace-next-run-at-with-last-run-at":tn,"041-ai-provider-keys-unique-constraint":nn,"042-rename-mesh-mcp-to-cms-mcp":en,"043-rename-cms-mcp-to-deco-cms":an,"044-drop-connections-tools-column":un,"045-thread-context-start-message":_n,"046-remove-object-storage-plugin":mn,"047-add-next-run-at":xn,"048-merge-projects-agents":yn,"049-remove-org-admin-projects":cn,"050-durable-agent-runs":Tn,"051-org-sso":pn,"052-thread-agent-ids":wn,"053-registry-config":fn,"054-connection-slug":sn,"055-spaces":En,"056-automation-project-scope":Kn,"057-thread-virtual-mcp-id":hn,"058-trigger-callback-tokens":Pn,"059-kv":zn,"060-member-index":kn,"061-downstream-token-connection-index":Un,"062-private-registry":Dn,"063-event-subscriptions-enabled-boolean":jn,"064-brand-context":Ln,"065-organization-domains":Jn,"066-brand-context-structured":Rn,"067-threads-metadata":Wn,"068-threads-branch":$n,"069-sandbox-runner-state":An,"070-model-categories":Xn,"071-default-home-agents":Qn,"072-ai-provider-key-preset-id":Zn,"073-backfill-basic-usage-roles":Fn,"074-sandbox-runner-state-handle-nonunique":Mn,"075-thread-inflight-async-jobs":Hn,"076-automations-drop-agent-json":Sn,"077-tier-only-model-selection":gn,"078-automation-tool-call-kind":On,"079-strip-legacy-freestyle-vm-map-entries":Bn,"080-async-research-jobs":In,"081-async-research-jobs-result-content":Gn,"082-secrets":vn,"083-thread-run-locally":Vn,"084-drop-host-sandbox-rows":qn,"085-rename-runner-kind":ln,"086-thread-pins-and-vm-map-rekey":dn,"087-fix-vm-map-rekey":bn,"088-purge-cli-activate-keys":te,"089-rename-remote-user-to-desktop":ne,"090-automation-webhook-triggers":ee,"091-organization-domains-allow-multi":ie,"092-sandbox-naming-uniformization":ae,"093-backfill-global-search-basic-usage":ue,"094-org-file-configs":oe,"095-remove-automation-tool-call-kind":me,"096-org-file-configs-public-url-base":xe,"097-drop-local-docker-sandbox-state":ye,"098-thread-message-parts":ce,"099-run-fence":Te,"100-link-transport":Ce,"101-cancel-requested-at":pe,"102-observational-agent":we,"103-revert-observational-agent":fe,"104-agent-sandbox-provider-kind":se,"105-org-fs":Ee,"106-automation-tools":Ke,"107-org-fs-public-org":he,"108-automation-max-agent-steps":Pe,"109-thread-message-parts-per-message-seq":ze,"110-backfill-ghs-token-expiry":ke,"111-org-fs-thread-id":Ue,"112-org-file-configs-credential-type":De,"113-thread-failure-reason":je,"114-run-acked-seq":Le,"115-thread-projected-seq":Je,"116-org-sites":Re,"117-org-file-configs-site-slug":We,"118-organization-domains-multi-verify":$e,"119-organization-join-requests":Ae,"120-org-fs-read-public":Xe,"121-org-fs-share-password":Qe,"122-split-web-research-tier":Me,"123-connection-credential-vault":He,"124-drop-thread-projected-seq":Se,"125-github-child-single-parent":Ye,"126-task-board":Oe,"127-task-board-due-date":Be,"128-reports-only":Ie,"129-task-board-assigned-by":Ge,"130-task-board-thread-id":ve,"131-task-board-thread-link-cascade":Ve,"132-task-board-item-prs":qe,"133-dedupe-duplicate-members":le,"134-drop-task-board-enabled":de,"135-task-board-item-fk-cascade":be,"136-task-board-import-idempotency":ti,"137-agent-sandbox-runner-state":ni,"138-agent-sandbox-sessions":ei,"139-organization-billing":ii},ai=vx;import{getMigrations as kr}from"better-auth/db";import{sso as Ur}from"@better-auth/sso";import{organization as Dr}from"@decocms/better-auth/plugins";import{admin as jr,apiKey as Lr,jwt as Jr,magicLink as Rr,mcp as Wr,openAPI as $r}from"better-auth/plugins";import{emailOTP as Ar}from"better-auth/plugins/email-otp";import{Kysely as Nr,PostgresDialect as vi}from"kysely";import{Pool as Vi}from"pg";import{homedir as Vx}from"os";var qx=new Set(["all","worker","api"]);function lx(t){let n=(t??"").trim();return qx.has(n)?n:"all"}function L(t){return t==="true"||t==="1"}function dx(t){if(t===void 0||t==="")return;return L(t)}function ui(t,n,e){if(n===void 0||n==="")return e;let u=Number(n);if(!Number.isSafeInteger(u)||u<=0)throw Error(`${t} must be a positive integer`);return u}function bx(t,n){if(t===void 0||t==="")return n;return t==="true"||t==="1"}function Fi(t){if(!t)return null;try{let e=new URL(t).hostname;if(e==="localhost"||e==="127.0.0.1"||e==="::1")return null;return t}catch{return null}}var tr=new Set(["agent-sandbox","user-desktop"]);function nr(t){let n=t&&t.length>0?t:"user-desktop";if(n==="cluster")return"agent-sandbox";if(!tr.has(n))throw Error(`Unknown STUDIO_SANDBOX_PROVIDER="${t}" \u2014 expected "agent-sandbox", legacy "cluster", or "user-desktop".`);return n}function Mi(t,n){let e=t.home||n.DATA_DIR||n.DECOCMS_HOME||`${Vx()}/deco`,u=t.localMode,a=t.nodeEnv||n.NODE_ENV||"development",_=n.NATS_URL||"nats://localhost:4222",m=dx(n.NATS_TUNNEL_PUBLIC_ENABLED)??!!n.NATS_PUBLIC_URL;return{settings:{nodeEnv:a,port:ui("PORT",t.port||n.PORT,3000),baseUrl:t.baseUrl||n.BASE_URL,dataDir:e,databasePgSsl:L(n.DATABASE_PG_SSL),databasePoolMax:ui("DATABASE_POOL_MAX",n.DATABASE_POOL_MAX,5),betterAuthSecret:n.BETTER_AUTH_SECRET||"",encryptionKey:n.ENCRYPTION_KEY||"",meshJwtSecret:n.MESH_JWT_SECRET,localMode:u,disableRateLimit:L(n.DISABLE_RATE_LIMIT),studioProvisionSecretKey:n.STUDIO_PROVISION_SECRET_KEY,deploymentAdminEmails:(n.DEPLOYMENT_ADMIN_EMAILS??"").split(",").map((x)=>x.trim().toLowerCase()).filter(Boolean),clickhouseUrl:n.CLICKHOUSE_URL,clickhouseMaxMemoryUsage:Number(n.CLICKHOUSE_MAX_MEMORY_USAGE)||void 0,monitoringOtlpEndpoint:n.MONITORING_OTLP_ENDPOINT,otelServiceName:n.OTEL_SERVICE_NAME||"studio",natsPublicUrl:n.NATS_PUBLIC_URL,natsTunnelPublicEnabled:m,natsTunnelSessionTtlSeconds:ui("NATS_TUNNEL_SESSION_TTL_SECONDS",n.NATS_TUNNEL_SESSION_TTL_SECONDS,900),natsOperatorJwt:n.NATS_OPERATOR_JWT,natsAccountJwt:n.NATS_ACCOUNT_JWT,natsAccountSigningKey:n.NATS_ACCOUNT_SIGNING_KEY,natsCredsPath:n.NATS_CREDS,configPath:n.CONFIG_PATH||"./config.json",aiGatewayEnabled:L(n.DECO_AI_GATEWAY_ENABLED),aiGatewayUrl:n.DECO_AI_GATEWAY_URL||"https://ai-site.deco.site",enableDecoImport:L(n.ENABLE_DECO_IMPORT),billingEnforced:L(n.STUDIO_BILLING_ENFORCED),mcpCacheEnabled:bx(n.MCP_CACHE_ENABLED,a!=="development"),orgFsPublicSetsJson:n.ORGFS_PUBLIC_SETS,orgFsMountsDisabled:L(n.DISABLE_ORGFS_MOUNTS),s3Endpoint:n.S3_ENDPOINT,s3Bucket:n.S3_BUCKET,s3Region:n.S3_REGION||"auto",s3AccessKeyId:n.S3_ACCESS_KEY_ID,s3SecretAccessKey:n.S3_SECRET_ACCESS_KEY,s3ForcePathStyle:n.S3_FORCE_PATH_STYLE===void 0||n.S3_FORCE_PATH_STYLE===""||n.S3_FORCE_PATH_STYLE==="true"||n.S3_FORCE_PATH_STYLE==="1",monitoringS3Bucket:n.MONITORING_S3_BUCKET,monitoringS3Endpoint:n.MONITORING_S3_ENDPOINT,monitoringS3Region:n.MONITORING_S3_REGION,monitoringS3AccessKeyId:n.MONITORING_S3_ACCESS_KEY_ID,monitoringS3SecretAccessKey:n.MONITORING_S3_SECRET_ACCESS_KEY,monitoringS3Prefix:n.MONITORING_S3_PREFIX,duckdbExtensionDirectory:n.DUCKDB_EXTENSION_DIRECTORY||"/opt/duckdb/extensions",duckdbMemoryLimit:n.DUCKDB_MEMORY_LIMIT||void 0,duckdbThreads:n.DUCKDB_THREADS?Number(n.DUCKDB_THREADS):void 0,isCli:!0,noTui:t.noTui===!0,podName:n.POD_NAME??crypto.randomUUID(),dispatchRole:lx(n.MESH_DISPATCH_ROLE),sandboxProviderKind:nr(n.STUDIO_SANDBOX_PROVIDER),decoSupabaseUrl:n.DECO_SUPABASE_URL,decoSupabaseServiceKey:n.DECO_SUPABASE_SERVICE_KEY,firecrawlApiKey:n.FIRECRAWL_API_KEY,commerceDiscoveryInternalApiUrl:n.COMMERCE_DISCOVERY_INTERNAL_API_URL,commerceDiscoveryInternalApiKey:n.COMMERCE_DISCOVERY_INTERNAL_API_KEY,s3TenantBucket:n.S3_TENANT_BUCKET||"new-deco-sites-assets",s3TenantRegion:n.S3_TENANT_REGION||"us-west-2",s3TenantEndpoint:n.S3_TENANT_ENDPOINT,s3TenantPublicUrlBase:n.S3_TENANT_PUBLIC_URL_BASE||"https://decoims.com",awsS3TenantRoleArn:n.AWS_S3_TENANT_ROLE_ARN,awsS3TenantProvisionerAccessKeyId:n.AWS_S3_TENANT_PROVISIONER_ACCESS_KEY_ID,awsS3TenantProvisionerSecretAccessKey:n.AWS_S3_TENANT_PROVISIONER_SECRET_ACCESS_KEY},externalDatabaseUrl:Fi(n.DATABASE_URL),externalNatsUrl:Fi(_),skipMigrations:t.skipMigrations}}var mt=null;function X(){if(!mt)er();return mt}function er(){if(mt)return;let t={...process.env},n=Mi({port:t.PORT||"3000",home:t.DATA_DIR||t.DECOCMS_HOME||"",localMode:t.DECOCMS_LOCAL_MODE==="true",skipMigrations:!0,noTui:t.DECO_NO_TUI==="true",vitePort:t.VITE_PORT,baseUrl:t.BASE_URL},t);mt=Object.freeze({...n.settings,databaseUrl:t.DATABASE_URL??"postgresql://postgres:postgres@localhost:5432/postgres",natsUrls:(t.NATS_URL||"nats://localhost:4222").split(",").map((e)=>e.trim()).filter(Boolean)})}import{createContextKey as mr,metrics as xr,propagation as HT,ROOT_CONTEXT as ST,SpanStatusCode as YT,trace as rr}from"@opentelemetry/api";import{logs as yr,SeverityNumber as _i}from"@opentelemetry/api-logs";import{OTLPLogExporter as BT}from"@opentelemetry/exporter-logs-otlp-proto";import{PrometheusExporter as cr}from"@opentelemetry/exporter-prometheus";import{OTLPTraceExporter as vT}from"@opentelemetry/exporter-trace-otlp-proto";import{RuntimeNodeInstrumentation as qT}from"@opentelemetry/instrumentation-runtime-node";import{context as Ac,propagation as Xc,SpanKind as Qc,SpanStatusCode as Zc}from"@opentelemetry/api";var Mc=globalThis.fetch;import{ExportResultCode as lc}from"@opentelemetry/core";import{ExportResultCode as xt}from"@opentelemetry/core";import{mkdir as ir,rename as ar,writeFile as ur}from"fs/promises";import{join as rt}from"path";class yt{bufferItems=[];bufferBytes=0;flushTimer=null;flushQueue=Promise.resolve();basePath;flushThreshold;maxBufferBytes;isShutdown=!1;knownDirs=new Set;partitionKey;constructor(t){this.basePath=t.basePath,this.flushThreshold=t.flushThreshold??1000,this.maxBufferBytes=t.maxBufferBytes??10485760,this.partitionKey=t.partitionKey;let n=t.flushIntervalMs??60000;if(n>0&&n<3600000){if(this.flushTimer=setInterval(()=>{this.flush().catch((e)=>{console.error("[NDJSONExporter] Timer flush failed:",e)})},n),this.flushTimer&&typeof this.flushTimer==="object"&&"unref"in this.flushTimer)this.flushTimer.unref()}}exportRows(t){if(this.isShutdown)return Promise.resolve({code:xt.FAILED});for(let n of t){let e=JSON.stringify(n),u=this.partitionKey?this.partitionKey(n):"";this.bufferItems.push({partition:u,json:e}),this.bufferBytes+=Buffer.byteLength(e,"utf8")+1}if(this.bufferItems.length>=this.flushThreshold||this.bufferBytes>=this.maxBufferBytes)return this.flush().then(()=>({code:xt.SUCCESS})).catch((n)=>{return console.error("[NDJSONExporter] Flush failed:",n),{code:xt.FAILED}});return Promise.resolve({code:xt.SUCCESS})}async shutdown(){if(this.isShutdown=!0,this.flushTimer)clearInterval(this.flushTimer),this.flushTimer=null;try{await this.flushQueue}catch{}if(this.bufferItems.length>0)await this.flush()}async forceFlush(){try{await this.flushQueue}catch{}if(this.bufferItems.length>0)await this.flush()}flush(){let n=this.flushQueue.catch(()=>{}).then(()=>this.doFlush());return this.flushQueue=n,n}async doFlush(){if(this.bufferItems.length===0)return;let t=this.bufferItems;this.bufferItems=[],this.bufferBytes=0;let n=new Map;for(let a of t){let _=n.get(a.partition);if(!_)_=[],n.set(a.partition,_);_.push(a.json)}let e=await Promise.allSettled(Array.from(n.entries()).map(([a,_])=>this.writeNDJSON(_,a).then(()=>a))),u=e.find((a)=>a.status==="rejected");if(u){let a=new Set;for(let m of e)if(m.status==="fulfilled")a.add(m.value);let _=t.filter((m)=>!a.has(m.partition));this.bufferItems=_.concat(this.bufferItems),this.bufferBytes=0;for(let m of this.bufferItems)this.bufferBytes+=Buffer.byteLength(m.json,"utf8")+1;throw u.reason}}async writeNDJSON(t,n){let e=new Date,u=[String(e.getUTCFullYear()),String(e.getUTCMonth()+1).padStart(2,"0"),String(e.getUTCDate()).padStart(2,"0"),String(e.getUTCHours()).padStart(2,"0")],a=n?rt(this.basePath,n,...u):rt(this.basePath,...u);if(!this.knownDirs.has(a))await ir(a,{recursive:!0,mode:448}),this.knownDirs.add(a);let _=`${crypto.randomUUID()}.ndjson`,m=rt(a,`.${_}.tmp`),o=rt(a,_),x=t.join(`
1033
+ `.execute(t)}async function Gx(t){await t.schema.dropTable("organization_paid_seat").execute(),await t.schema.dropTable("organization_billing").execute()}var vx={"001-initial-schema":Tt,"002-organization-settings":Ct,"003-connection-schema-align":pt,"004-remove-models-binding":wt,"005-connection-configuration":ft,"006-add-views-to-settings":Nt,"007-monitoring-logs":st,"008-event-bus":Et,"009-drop-audit-logs":Kt,"010-gateways":ht,"011-gateway-icon":Pt,"012-gateway-tool-selection-mode":zt,"013-monitoring-user-agent-gateway":kt,"014-gateway-resources-prompts":Ut,"015-monitoring-properties":Dt,"016-downstream-token-client-info":jt,"017-downstream-token-remove-userid":Lt,"018-drop-gateway-tool-selection-strategy":Jt,"019-remove-gateway-is-default":Rt,"020-enabled-plugins":Wt,"021-threads":$t,"022-rename-gateway-to-virtual-mcp":At,"023-optimize-thread-indexes":Xt,"024-consolidate-virtual-mcp":Qt,"025-add-monitoring-virtual-mcp-id":Zt,"026-restrict-child-connection-delete":Ft,"027-update-management-mcp-url":Ht,"028-update-management-mcp-to-self":Yt,"029-add-updated-by-to-connections":gt,"030-member-tags":Ot,"031-add-dependency-mode":Bt,"032-projects":It,"033-thread-status":Gt,"034-monitoring-dashboards":vt,"035-project-connections":Vt,"036-update-registry-url":qt,"037-ai-provider-keys":lt,"038-oauth-pkce-states":dt,"039-automations":bt,"040-replace-next-run-at-with-last-run-at":tn,"041-ai-provider-keys-unique-constraint":nn,"042-rename-mesh-mcp-to-cms-mcp":en,"043-rename-cms-mcp-to-deco-cms":an,"044-drop-connections-tools-column":un,"045-thread-context-start-message":_n,"046-remove-object-storage-plugin":mn,"047-add-next-run-at":xn,"048-merge-projects-agents":yn,"049-remove-org-admin-projects":cn,"050-durable-agent-runs":Tn,"051-org-sso":pn,"052-thread-agent-ids":wn,"053-registry-config":fn,"054-connection-slug":sn,"055-spaces":En,"056-automation-project-scope":Kn,"057-thread-virtual-mcp-id":hn,"058-trigger-callback-tokens":Pn,"059-kv":zn,"060-member-index":kn,"061-downstream-token-connection-index":Un,"062-private-registry":Dn,"063-event-subscriptions-enabled-boolean":jn,"064-brand-context":Ln,"065-organization-domains":Jn,"066-brand-context-structured":Rn,"067-threads-metadata":Wn,"068-threads-branch":$n,"069-sandbox-runner-state":An,"070-model-categories":Xn,"071-default-home-agents":Qn,"072-ai-provider-key-preset-id":Zn,"073-backfill-basic-usage-roles":Fn,"074-sandbox-runner-state-handle-nonunique":Mn,"075-thread-inflight-async-jobs":Hn,"076-automations-drop-agent-json":Sn,"077-tier-only-model-selection":gn,"078-automation-tool-call-kind":On,"079-strip-legacy-freestyle-vm-map-entries":Bn,"080-async-research-jobs":In,"081-async-research-jobs-result-content":Gn,"082-secrets":vn,"083-thread-run-locally":Vn,"084-drop-host-sandbox-rows":qn,"085-rename-runner-kind":ln,"086-thread-pins-and-vm-map-rekey":dn,"087-fix-vm-map-rekey":bn,"088-purge-cli-activate-keys":te,"089-rename-remote-user-to-desktop":ne,"090-automation-webhook-triggers":ee,"091-organization-domains-allow-multi":ie,"092-sandbox-naming-uniformization":ae,"093-backfill-global-search-basic-usage":ue,"094-org-file-configs":oe,"095-remove-automation-tool-call-kind":me,"096-org-file-configs-public-url-base":xe,"097-drop-local-docker-sandbox-state":ye,"098-thread-message-parts":ce,"099-run-fence":Te,"100-link-transport":Ce,"101-cancel-requested-at":pe,"102-observational-agent":we,"103-revert-observational-agent":fe,"104-agent-sandbox-provider-kind":se,"105-org-fs":Ee,"106-automation-tools":Ke,"107-org-fs-public-org":he,"108-automation-max-agent-steps":Pe,"109-thread-message-parts-per-message-seq":ze,"110-backfill-ghs-token-expiry":ke,"111-org-fs-thread-id":Ue,"112-org-file-configs-credential-type":De,"113-thread-failure-reason":je,"114-run-acked-seq":Le,"115-thread-projected-seq":Je,"116-org-sites":Re,"117-org-file-configs-site-slug":We,"118-organization-domains-multi-verify":$e,"119-organization-join-requests":Ae,"120-org-fs-read-public":Xe,"121-org-fs-share-password":Qe,"122-split-web-research-tier":Me,"123-connection-credential-vault":He,"124-drop-thread-projected-seq":Se,"125-github-child-single-parent":Ye,"126-task-board":Oe,"127-task-board-due-date":Be,"128-reports-only":Ie,"129-task-board-assigned-by":Ge,"130-task-board-thread-id":ve,"131-task-board-thread-link-cascade":Ve,"132-task-board-item-prs":qe,"133-dedupe-duplicate-members":le,"134-drop-task-board-enabled":de,"135-task-board-item-fk-cascade":be,"136-task-board-import-idempotency":ti,"137-agent-sandbox-runner-state":ni,"138-agent-sandbox-sessions":ei,"139-organization-billing":ii},ai=vx;import{getMigrations as Ur}from"better-auth/db";import{sso as Dr}from"@better-auth/sso";import{organization as jr}from"@decocms/better-auth/plugins";import{admin as Lr,apiKey as Jr,jwt as Rr,magicLink as Wr,mcp as $r,openAPI as Ar}from"better-auth/plugins";import{emailOTP as Xr}from"better-auth/plugins/email-otp";import{Kysely as sr,PostgresDialect as vi}from"kysely";import{Pool as Vi}from"pg";import{homedir as Vx}from"os";var qx=new Set(["all","worker","api"]);function lx(t){let n=(t??"").trim();return qx.has(n)?n:"all"}function L(t){return t==="true"||t==="1"}function dx(t){if(t===void 0||t==="")return;return L(t)}function ui(t,n,e){if(n===void 0||n==="")return e;let u=Number(n);if(!Number.isSafeInteger(u)||u<=0)throw Error(`${t} must be a positive integer`);return u}function bx(t,n){if(n===void 0||n==="")return;let e=Number(n);if(!Number.isSafeInteger(e)||e<=0)throw Error(`${t} must be a positive integer`);return e}function tr(t,n){if(t===void 0||t==="")return n;return t==="true"||t==="1"}function Fi(t){if(!t)return null;try{let e=new URL(t).hostname;if(e==="localhost"||e==="127.0.0.1"||e==="::1")return null;return t}catch{return null}}var nr=new Set(["agent-sandbox","user-desktop"]);function er(t){let n=t&&t.length>0?t:"user-desktop";if(n==="cluster")return"agent-sandbox";if(!nr.has(n))throw Error(`Unknown STUDIO_SANDBOX_PROVIDER="${t}" \u2014 expected "agent-sandbox", legacy "cluster", or "user-desktop".`);return n}function Mi(t,n){let e=t.home||n.DATA_DIR||n.DECOCMS_HOME||`${Vx()}/deco`,u=t.localMode,a=t.nodeEnv||n.NODE_ENV||"development",_=n.NATS_URL||"nats://localhost:4222",m=dx(n.NATS_TUNNEL_PUBLIC_ENABLED)??!!n.NATS_PUBLIC_URL;return{settings:{nodeEnv:a,port:ui("PORT",t.port||n.PORT,3000),baseUrl:t.baseUrl||n.BASE_URL,dataDir:e,databasePgSsl:L(n.DATABASE_PG_SSL),databasePoolMax:ui("DATABASE_POOL_MAX",n.DATABASE_POOL_MAX,5),betterAuthSecret:n.BETTER_AUTH_SECRET||"",encryptionKey:n.ENCRYPTION_KEY||"",meshJwtSecret:n.MESH_JWT_SECRET,localMode:u,disableRateLimit:L(n.DISABLE_RATE_LIMIT),studioProvisionSecretKey:n.STUDIO_PROVISION_SECRET_KEY,deploymentAdminEmails:(n.DEPLOYMENT_ADMIN_EMAILS??"").split(",").map((x)=>x.trim().toLowerCase()).filter(Boolean),clickhouseUrl:n.CLICKHOUSE_URL,clickhouseMaxMemoryUsage:bx("CLICKHOUSE_MAX_MEMORY_USAGE",n.CLICKHOUSE_MAX_MEMORY_USAGE),monitoringOtlpEndpoint:n.MONITORING_OTLP_ENDPOINT,otelServiceName:n.OTEL_SERVICE_NAME||"studio",natsPublicUrl:n.NATS_PUBLIC_URL,natsTunnelPublicEnabled:m,natsTunnelSessionTtlSeconds:ui("NATS_TUNNEL_SESSION_TTL_SECONDS",n.NATS_TUNNEL_SESSION_TTL_SECONDS,900),natsOperatorJwt:n.NATS_OPERATOR_JWT,natsAccountJwt:n.NATS_ACCOUNT_JWT,natsAccountSigningKey:n.NATS_ACCOUNT_SIGNING_KEY,natsCredsPath:n.NATS_CREDS,configPath:n.CONFIG_PATH||"./config.json",aiGatewayEnabled:L(n.DECO_AI_GATEWAY_ENABLED),aiGatewayUrl:n.DECO_AI_GATEWAY_URL||"https://ai-site.deco.site",enableDecoImport:L(n.ENABLE_DECO_IMPORT),billingEnforced:L(n.STUDIO_BILLING_ENFORCED),mcpCacheEnabled:tr(n.MCP_CACHE_ENABLED,a!=="development"),orgFsPublicSetsJson:n.ORGFS_PUBLIC_SETS,orgFsMountsDisabled:L(n.DISABLE_ORGFS_MOUNTS),s3Endpoint:n.S3_ENDPOINT,s3Bucket:n.S3_BUCKET,s3Region:n.S3_REGION||"auto",s3AccessKeyId:n.S3_ACCESS_KEY_ID,s3SecretAccessKey:n.S3_SECRET_ACCESS_KEY,s3ForcePathStyle:n.S3_FORCE_PATH_STYLE===void 0||n.S3_FORCE_PATH_STYLE===""||n.S3_FORCE_PATH_STYLE==="true"||n.S3_FORCE_PATH_STYLE==="1",monitoringS3Bucket:n.MONITORING_S3_BUCKET,monitoringS3Endpoint:n.MONITORING_S3_ENDPOINT,monitoringS3Region:n.MONITORING_S3_REGION,monitoringS3AccessKeyId:n.MONITORING_S3_ACCESS_KEY_ID,monitoringS3SecretAccessKey:n.MONITORING_S3_SECRET_ACCESS_KEY,monitoringS3Prefix:n.MONITORING_S3_PREFIX,duckdbExtensionDirectory:n.DUCKDB_EXTENSION_DIRECTORY||"/opt/duckdb/extensions",duckdbMemoryLimit:n.DUCKDB_MEMORY_LIMIT||void 0,duckdbThreads:n.DUCKDB_THREADS?Number(n.DUCKDB_THREADS):void 0,isCli:!0,noTui:t.noTui===!0,podName:n.POD_NAME??crypto.randomUUID(),dispatchRole:lx(n.MESH_DISPATCH_ROLE),sandboxProviderKind:er(n.STUDIO_SANDBOX_PROVIDER),decoSupabaseUrl:n.DECO_SUPABASE_URL,decoSupabaseServiceKey:n.DECO_SUPABASE_SERVICE_KEY,firecrawlApiKey:n.FIRECRAWL_API_KEY,commerceDiscoveryInternalApiUrl:n.COMMERCE_DISCOVERY_INTERNAL_API_URL,commerceDiscoveryInternalApiKey:n.COMMERCE_DISCOVERY_INTERNAL_API_KEY,s3TenantBucket:n.S3_TENANT_BUCKET||"new-deco-sites-assets",s3TenantRegion:n.S3_TENANT_REGION||"us-west-2",s3TenantEndpoint:n.S3_TENANT_ENDPOINT,s3TenantPublicUrlBase:n.S3_TENANT_PUBLIC_URL_BASE||"https://decoims.com",awsS3TenantRoleArn:n.AWS_S3_TENANT_ROLE_ARN,awsS3TenantProvisionerAccessKeyId:n.AWS_S3_TENANT_PROVISIONER_ACCESS_KEY_ID,awsS3TenantProvisionerSecretAccessKey:n.AWS_S3_TENANT_PROVISIONER_SECRET_ACCESS_KEY},externalDatabaseUrl:Fi(n.DATABASE_URL),externalNatsUrl:Fi(_),skipMigrations:t.skipMigrations}}var mt=null;function X(){if(!mt)ir();return mt}function ir(){if(mt)return;let t={...process.env},n=Mi({port:t.PORT||"3000",home:t.DATA_DIR||t.DECOCMS_HOME||"",localMode:t.DECOCMS_LOCAL_MODE==="true",skipMigrations:!0,noTui:t.DECO_NO_TUI==="true",vitePort:t.VITE_PORT,baseUrl:t.BASE_URL},t);mt=Object.freeze({...n.settings,databaseUrl:t.DATABASE_URL??"postgresql://postgres:postgres@localhost:5432/postgres",natsUrls:(t.NATS_URL||"nats://localhost:4222").split(",").map((e)=>e.trim()).filter(Boolean)})}import{createContextKey as xr,metrics as rr,propagation as ST,ROOT_CONTEXT as YT,SpanStatusCode as gT,trace as yr}from"@opentelemetry/api";import{logs as cr,SeverityNumber as _i}from"@opentelemetry/api-logs";import{OTLPLogExporter as IT}from"@opentelemetry/exporter-logs-otlp-proto";import{PrometheusExporter as Tr}from"@opentelemetry/exporter-prometheus";import{OTLPTraceExporter as VT}from"@opentelemetry/exporter-trace-otlp-proto";import{RuntimeNodeInstrumentation as lT}from"@opentelemetry/instrumentation-runtime-node";import{context as Xc,propagation as Qc,SpanKind as Zc,SpanStatusCode as Fc}from"@opentelemetry/api";var Hc=globalThis.fetch;import{ExportResultCode as dc}from"@opentelemetry/core";import{ExportResultCode as xt}from"@opentelemetry/core";import{mkdir as ar,rename as ur,writeFile as _r}from"fs/promises";import{join as rt}from"path";class yt{bufferItems=[];bufferBytes=0;flushTimer=null;flushQueue=Promise.resolve();basePath;flushThreshold;maxBufferBytes;isShutdown=!1;knownDirs=new Set;partitionKey;constructor(t){this.basePath=t.basePath,this.flushThreshold=t.flushThreshold??1000,this.maxBufferBytes=t.maxBufferBytes??10485760,this.partitionKey=t.partitionKey;let n=t.flushIntervalMs??60000;if(n>0&&n<3600000){if(this.flushTimer=setInterval(()=>{this.flush().catch((e)=>{console.error("[NDJSONExporter] Timer flush failed:",e)})},n),this.flushTimer&&typeof this.flushTimer==="object"&&"unref"in this.flushTimer)this.flushTimer.unref()}}exportRows(t){if(this.isShutdown)return Promise.resolve({code:xt.FAILED});for(let n of t){let e=JSON.stringify(n),u=this.partitionKey?this.partitionKey(n):"";this.bufferItems.push({partition:u,json:e}),this.bufferBytes+=Buffer.byteLength(e,"utf8")+1}if(this.bufferItems.length>=this.flushThreshold||this.bufferBytes>=this.maxBufferBytes)return this.flush().then(()=>({code:xt.SUCCESS})).catch((n)=>{return console.error("[NDJSONExporter] Flush failed:",n),{code:xt.FAILED}});return Promise.resolve({code:xt.SUCCESS})}async shutdown(){if(this.isShutdown=!0,this.flushTimer)clearInterval(this.flushTimer),this.flushTimer=null;try{await this.flushQueue}catch{}if(this.bufferItems.length>0)await this.flush()}async forceFlush(){try{await this.flushQueue}catch{}if(this.bufferItems.length>0)await this.flush()}flush(){let n=this.flushQueue.catch(()=>{}).then(()=>this.doFlush());return this.flushQueue=n,n}async doFlush(){if(this.bufferItems.length===0)return;let t=this.bufferItems;this.bufferItems=[],this.bufferBytes=0;let n=new Map;for(let a of t){let _=n.get(a.partition);if(!_)_=[],n.set(a.partition,_);_.push(a.json)}let e=await Promise.allSettled(Array.from(n.entries()).map(([a,_])=>this.writeNDJSON(_,a).then(()=>a))),u=e.find((a)=>a.status==="rejected");if(u){let a=new Set;for(let m of e)if(m.status==="fulfilled")a.add(m.value);let _=t.filter((m)=>!a.has(m.partition));this.bufferItems=_.concat(this.bufferItems),this.bufferBytes=0;for(let m of this.bufferItems)this.bufferBytes+=Buffer.byteLength(m.json,"utf8")+1;throw u.reason}}async writeNDJSON(t,n){let e=new Date,u=[String(e.getUTCFullYear()),String(e.getUTCMonth()+1).padStart(2,"0"),String(e.getUTCDate()).padStart(2,"0"),String(e.getUTCHours()).padStart(2,"0")],a=n?rt(this.basePath,n,...u):rt(this.basePath,...u);if(!this.knownDirs.has(a))await ar(a,{recursive:!0,mode:448}),this.knownDirs.add(a);let _=`${crypto.randomUUID()}.ndjson`,m=rt(a,`.${_}.tmp`),o=rt(a,_),x=t.join(`
1034
1034
  `)+`
1035
- `;await ur(m,x,{mode:384}),await ar(m,o)}}import{ExportResultCode as eT}from"@opentelemetry/core";import{AggregationTemporality as aT,DataPointType as uT}from"@opentelemetry/sdk-metrics";import{ExportResultCode as yT}from"@opentelemetry/core";var pT=Buffer.byteLength("... [TRUNCATED]","utf8");import{BatchLogRecordProcessor as uC,LoggerProvider as _C}from"@opentelemetry/sdk-logs";import{detectResources as mC,envDetector as xC,hostDetector as rC,osDetector as yC,processDetector as cC,resourceFromAttributes as TC}from"@opentelemetry/resources";import{PeriodicExportingMetricReader as pC}from"@opentelemetry/sdk-metrics";import{NOOP_LOGGER as NT}from"@opentelemetry/api-logs";import{NodeSDK as NC}from"@opentelemetry/sdk-node";import{BatchSpanProcessor as EC,SamplingDecision as Q}from"@opentelemetry/sdk-trace-base";import{SpanStatusCode as PT}from"@opentelemetry/api";var Tr="__d",Cr=mr("Current request"),pr=1;var Si=(t)=>{let e=new URL(t.url).searchParams.get(Tr);if(e==="")return crypto.randomUUID();if(!e)e=t.headers.get("x-trace-debug-id");return e};class Yi{inner;constructor(t){this.inner=t}shouldSample(t,n,e,u,a,_){let m=t.getValue(Cr);if(!m){if(this.inner)return this.inner.shouldSample(t,n,e,u,a,_);return{decision:Q.RECORD_AND_SAMPLED}}let o=Si(m);if(o)return{decision:Q.RECORD_AND_SAMPLED,attributes:{"trace.debug.id":o}};if(this.inner){let x=this.inner.shouldSample(t,n,e,u,a,_);if(x.decision===Q.RECORD_AND_SAMPLED){let r=crypto.randomUUID();x.attributes={...x.attributes??{},"trace.debug.id":r}}return x}return{decision:Q.NOT_RECORD}}toString(){return"DebugSampler"}}class gi{ratio;constructor(t){this.ratio=t}shouldSample(){if(Math.random()<this.ratio)return{decision:Q.RECORD_AND_SAMPLED};return{decision:Q.NOT_RECORD}}toString(){return`RatioSampler(${this.ratio})`}}var hC=new cr({preventServerStart:!0}),PC=new Yi(new gi(pr));var Hi=rr.getTracer("studio","1.0.0"),B=xr.getMeter("studio","1.0.0"),wr=yr.getLogger("studio","1.0.0"),oi=(t,n,e)=>{let u={},a=e,_=e[e.length-1];if(_!==null&&typeof _==="object"&&!Array.isArray(_)&&!(_ instanceof Error)&&Object.getPrototypeOf(_)===Object.prototype)u=_,a=e.slice(0,-1);let m=a.map((o)=>{if(o instanceof Error)return`${o.name}: ${o.message}`;if(typeof o==="object")try{return JSON.stringify(o)}catch{return"[Object]"}return String(o)}).join(" ");wr.emit({severityNumber:t,severityText:n,body:m,attributes:{"log.source":"console",...u}})},mi={error:console.error.bind(console),warn:console.warn.bind(console),debug:console.debug.bind(console)};console.error=(...t)=>{oi(_i.ERROR,"ERROR",t),mi.error(...t)};console.warn=(...t)=>{oi(_i.WARN,"WARN",t),mi.warn(...t)};console.debug=(...t)=>{oi(_i.DEBUG,"DEBUG",t),mi.debug(...t)};var xi,Oi=0,ri=500;function fr(){if(xi)return;let t=performance.now()+ri;xi=setInterval(()=>{let n=performance.now();Oi=Math.max(0,n-t),t=n+ri},ri),xi.unref?.()}function Bi(){return fr(),Oi}var sr=()=>B.createHistogram("db.query.duration",{description:"Database query execution duration in milliseconds",unit:"ms"}),Ii=()=>B.createHistogram("db.pool.acquire.duration",{description:"Time spent waiting to acquire a connection from the pool",unit:"ms"}),Gi=400,Er=100,Kr=(t)=>(n)=>{let e={"db.statement":n.query.sql,"db.status":n.level==="error"?"error":"success"};if(n.queryDurationMillis>Gi){let u=Bi(),a=u>Gi/2;console.error(a?"Slow query measurement \u2014 likely event-loop lag, not slow SQL:":"Slow query detected:",{durationMs:n.queryDurationMillis,eventLoopLagMs:Math.round(u),sql:n.query.sql,pool:{total:t.totalCount,idle:t.idleCount,waiting:t.waitingCount,max:ct()}})}if(sr().record(n.queryDurationMillis,e),n.level==="error")console.error("Query failed:",{durationMs:n.queryDurationMillis,error:n.error,sql:n.query.sql})};function hr(t){let n=t.connect.bind(t);return t.connect=(e)=>{if(typeof e==="function")return n(e);let u=performance.now(),a=ct(),_=t.idleCount===0&&t.totalCount>=a,m=t.idleCount;return n().then((o)=>{let x=performance.now()-u;if(Ii().record(x,{"db.pool.outcome":_?"contended":"available"}),x>Er)if(_)console.error("Slow db pool acquire \u2014 pool saturated:",{waitMs:x,total:t.totalCount,idle:t.idleCount,waiting:t.waitingCount,max:a});else console.warn("Slow db pool acquire \u2014 event-loop lag (not pool):",{waitMs:x,idleAtStart:m,total:t.totalCount,max:a});return o},(o)=>{throw Ii().record(performance.now()-u,{"db.pool.outcome":"error"}),o})},t}var qi={keepAlive:!0,keepAliveInitialDelayMillis:1e4,idleTimeoutMillis:300000,connectionTimeoutMillis:30000,allowExitOnIdle:!0};function li(){try{return X().databasePgSsl}catch{return!1}}function ct(){try{return X().databasePoolMax}catch{return 10}}function Pr(t){let n=hr(new Vi({connectionString:t,max:ct(),ssl:li(),...qi})),e=new vi({pool:n});return{type:"postgres",db:new Nr({dialect:e,log:Kr(n)}),pool:n}}function G(){return X().databaseUrl}function di(t){let n=t||G();return new vi({pool:new Vi({connectionString:n,max:ct(),ssl:li(),...qi})})}function zr(t){let n=t||G();return Pr(n)}async function bi(t){if(await t.db.destroy(),!t.pool.ended)await t.pool.end();if(t===I)I=null}var I=null;function yi(){if(!I)I=zr(G());return I}async function ta(t){let e={database:di(t||G()),plugins:[Dr({dynamicAccessControl:{enabled:!0,enableCustomResources:!0}}),jr(),Lr(),Jr(),$r(),Wr({loginPage:"/login"}),Ur(),Rr({sendMagicLink:async()=>{}}),Ar({sendVerificationOTP:async()=>{}})]},{toBeAdded:u,toBeCreated:a,runMigrations:_}=await kr(e);if(!u.length&&!a.length)return"up to date";return await _(),`${a.length+u.length} table(s) migrated`}async function ea(t,n){return(await Z`
1035
+ `;await _r(m,x,{mode:384}),await ur(m,o)}}import{ExportResultCode as iT}from"@opentelemetry/core";import{AggregationTemporality as uT,DataPointType as _T}from"@opentelemetry/sdk-metrics";import{ExportResultCode as cT}from"@opentelemetry/core";var wT=Buffer.byteLength("... [TRUNCATED]","utf8");import{BatchLogRecordProcessor as _C,LoggerProvider as oC}from"@opentelemetry/sdk-logs";import{detectResources as xC,envDetector as rC,hostDetector as yC,osDetector as cC,processDetector as TC,resourceFromAttributes as CC}from"@opentelemetry/resources";import{PeriodicExportingMetricReader as wC}from"@opentelemetry/sdk-metrics";import{NOOP_LOGGER as sT}from"@opentelemetry/api-logs";import{NodeSDK as sC}from"@opentelemetry/sdk-node";import{BatchSpanProcessor as KC,SamplingDecision as Q}from"@opentelemetry/sdk-trace-base";import{SpanStatusCode as zT}from"@opentelemetry/api";var Cr="__d",pr=xr("Current request"),wr=1;var Si=(t)=>{let e=new URL(t.url).searchParams.get(Cr);if(e==="")return crypto.randomUUID();if(!e)e=t.headers.get("x-trace-debug-id");return e};class Yi{inner;constructor(t){this.inner=t}shouldSample(t,n,e,u,a,_){let m=t.getValue(pr);if(!m){if(this.inner)return this.inner.shouldSample(t,n,e,u,a,_);return{decision:Q.RECORD_AND_SAMPLED}}let o=Si(m);if(o)return{decision:Q.RECORD_AND_SAMPLED,attributes:{"trace.debug.id":o}};if(this.inner){let x=this.inner.shouldSample(t,n,e,u,a,_);if(x.decision===Q.RECORD_AND_SAMPLED){let r=crypto.randomUUID();x.attributes={...x.attributes??{},"trace.debug.id":r}}return x}return{decision:Q.NOT_RECORD}}toString(){return"DebugSampler"}}class gi{ratio;constructor(t){this.ratio=t}shouldSample(){if(Math.random()<this.ratio)return{decision:Q.RECORD_AND_SAMPLED};return{decision:Q.NOT_RECORD}}toString(){return`RatioSampler(${this.ratio})`}}var PC=new Tr({preventServerStart:!0}),zC=new Yi(new gi(wr));var Hi=yr.getTracer("studio","1.0.0"),B=rr.getMeter("studio","1.0.0"),fr=cr.getLogger("studio","1.0.0"),oi=(t,n,e)=>{let u={},a=e,_=e[e.length-1];if(_!==null&&typeof _==="object"&&!Array.isArray(_)&&!(_ instanceof Error)&&Object.getPrototypeOf(_)===Object.prototype)u=_,a=e.slice(0,-1);let m=a.map((o)=>{if(o instanceof Error)return`${o.name}: ${o.message}`;if(typeof o==="object")try{return JSON.stringify(o)}catch{return"[Object]"}return String(o)}).join(" ");fr.emit({severityNumber:t,severityText:n,body:m,attributes:{"log.source":"console",...u}})},mi={error:console.error.bind(console),warn:console.warn.bind(console),debug:console.debug.bind(console)};console.error=(...t)=>{oi(_i.ERROR,"ERROR",t),mi.error(...t)};console.warn=(...t)=>{oi(_i.WARN,"WARN",t),mi.warn(...t)};console.debug=(...t)=>{oi(_i.DEBUG,"DEBUG",t),mi.debug(...t)};var xi,Oi=0,ri=500;function Nr(){if(xi)return;let t=performance.now()+ri;xi=setInterval(()=>{let n=performance.now();Oi=Math.max(0,n-t),t=n+ri},ri),xi.unref?.()}function Bi(){return Nr(),Oi}var Er=()=>B.createHistogram("db.query.duration",{description:"Database query execution duration in milliseconds",unit:"ms"}),Ii=()=>B.createHistogram("db.pool.acquire.duration",{description:"Time spent waiting to acquire a connection from the pool",unit:"ms"}),Gi=400,Kr=100,hr=(t)=>(n)=>{let e={"db.statement":n.query.sql,"db.status":n.level==="error"?"error":"success"};if(n.queryDurationMillis>Gi){let u=Bi(),a=u>Gi/2;console.error(a?"Slow query measurement \u2014 likely event-loop lag, not slow SQL:":"Slow query detected:",{durationMs:n.queryDurationMillis,eventLoopLagMs:Math.round(u),sql:n.query.sql,pool:{total:t.totalCount,idle:t.idleCount,waiting:t.waitingCount,max:ct()}})}if(Er().record(n.queryDurationMillis,e),n.level==="error")console.error("Query failed:",{durationMs:n.queryDurationMillis,error:n.error,sql:n.query.sql})};function Pr(t){let n=t.connect.bind(t);return t.connect=(e)=>{if(typeof e==="function")return n(e);let u=performance.now(),a=ct(),_=t.idleCount===0&&t.totalCount>=a,m=t.idleCount;return n().then((o)=>{let x=performance.now()-u;if(Ii().record(x,{"db.pool.outcome":_?"contended":"available"}),x>Kr)if(_)console.error("Slow db pool acquire \u2014 pool saturated:",{waitMs:x,total:t.totalCount,idle:t.idleCount,waiting:t.waitingCount,max:a});else console.warn("Slow db pool acquire \u2014 event-loop lag (not pool):",{waitMs:x,idleAtStart:m,total:t.totalCount,max:a});return o},(o)=>{throw Ii().record(performance.now()-u,{"db.pool.outcome":"error"}),o})},t}var qi={keepAlive:!0,keepAliveInitialDelayMillis:1e4,idleTimeoutMillis:300000,connectionTimeoutMillis:30000,allowExitOnIdle:!0};function li(){try{return X().databasePgSsl}catch{return!1}}function ct(){try{return X().databasePoolMax}catch{return 10}}function zr(t){let n=Pr(new Vi({connectionString:t,max:ct(),ssl:li(),...qi})),e=new vi({pool:n});return{type:"postgres",db:new sr({dialect:e,log:hr(n)}),pool:n}}function G(){return X().databaseUrl}function di(t){let n=t||G();return new vi({pool:new Vi({connectionString:n,max:ct(),ssl:li(),...qi})})}function kr(t){let n=t||G();return zr(n)}async function bi(t){if(await t.db.destroy(),!t.pool.ended)await t.pool.end();if(t===I)I=null}var I=null;function yi(){if(!I)I=kr(G());return I}async function ta(t){let e={database:di(t||G()),plugins:[jr({dynamicAccessControl:{enabled:!0,enableCustomResources:!0}}),Lr(),Jr(),Rr(),Ar(),$r({loginPage:"/login"}),Dr(),Wr({sendMagicLink:async()=>{}}),Xr({sendVerificationOTP:async()=>{}})]},{toBeAdded:u,toBeCreated:a,runMigrations:_}=await Ur(e);if(!u.length&&!a.length)return"up to date";return await _(),`${a.length+u.length} table(s) migrated`}async function ea(t,n){return(await Z`
1036
1036
  SELECT table_name FROM information_schema.tables
1037
1037
  WHERE table_schema='public' AND table_name=${n}
1038
- `.execute(t)).rows.length>0}async function Xr(t){if(await ea(t,"plugin_migrations"))return;await Z`
1038
+ `.execute(t)).rows.length>0}async function Qr(t){if(await ea(t,"plugin_migrations"))return;await Z`
1039
1039
  CREATE TABLE plugin_migrations (
1040
1040
  plugin_id TEXT NOT NULL,
1041
1041
  name TEXT NOT NULL,
1042
1042
  timestamp TEXT NOT NULL,
1043
1043
  PRIMARY KEY (plugin_id, name)
1044
1044
  )
1045
- `.execute(t)}async function Qr(t){if(!await ea(t,"kysely_migration"))return;let n=await Z`
1045
+ `.execute(t)}async function Zr(t){if(!await ea(t,"kysely_migration"))return;let n=await Z`
1046
1046
  SELECT name, timestamp FROM kysely_migration
1047
1047
  WHERE name LIKE '%/%'
1048
1048
  `.execute(t);if(n.rows.length===0)return;for(let{name:e,timestamp:u}of n.rows){let a=e;if(e.includes("~plugins/"))a=e.substring(e.indexOf("~plugins/")+9);let _=a.indexOf("/");if(_===-1){console.warn(`Skipping malformed plugin migration: ${e}`);continue}let m=a.substring(0,_),o=a.substring(_+1);try{await Z`
@@ -1053,4 +1053,4 @@ var ia=Object.defineProperty;var aa=(t)=>t;function ua(t,n){this[t]=aa.bind(null
1053
1053
  WHERE plugin_id = ${m} AND name = ${o}
1054
1054
  `.execute(t);if(Number(x.rows[0]?.cnt)===0){console.warn(`Failed to migrate ${m}/${o}, keeping in old table`);continue}}await Z`
1055
1055
  DELETE FROM kysely_migration WHERE name = ${e}
1056
- `.execute(t)}}async function Zr(t){await Xr(t),await Qr(t);let n=new na({db:t,provider:{getMigrations:()=>Promise.resolve(ai)}}),{error:e,results:u}=await n.migrateToLatest(),a=0;if(u?.forEach((_)=>{if(_.status==="Success")a++;else if(_.status==="Error")console.error(`Failed to execute migration "${_.migrationName}"`)}),e)throw console.error("Failed to migrate"),console.error(e),e;return a}async function Fr(t){let{keepOpen:n=!1,database:e,skipBetterAuth:u=!1}=t??{},a="skipped";if(!u&&!e)a=await ta();let _=e??yi(),m=async()=>{if(!n&&!e)await bi(_).catch((o)=>{console.warn("Warning: Error closing database:",o)})};try{let o=await Zr(_.db);return await m(),{betterAuth:a,kysely:o}}catch(o){throw await m(),o}}async function bC(){let t=yi(),n=new na({db:t.db,provider:{getMigrations:()=>Promise.resolve(ai)}}),{error:e,results:u}=await n.migrateDown();if(u?.forEach((a)=>{if(a.status==="Success")console.log(`\u2705 Migration "${a.migrationName}" rolled back successfully`);else if(a.status==="Error")console.error(`\u274C Failed to rollback migration "${a.migrationName}"`)}),e)throw console.error("Failed to rollback migration"),console.error(e),e}if(import.meta.main)(async()=>{try{await Fr(),console.log("Migrations completed."),process.exit(0)}catch(t){console.error("Migration failed:",t),process.exit(1)}})();export{Zr as runKyselyMigrations,Fr as migrateToLatest,bC as migrateDown};
1056
+ `.execute(t)}}async function Fr(t){await Qr(t),await Zr(t);let n=new na({db:t,provider:{getMigrations:()=>Promise.resolve(ai)}}),{error:e,results:u}=await n.migrateToLatest(),a=0;if(u?.forEach((_)=>{if(_.status==="Success")a++;else if(_.status==="Error")console.error(`Failed to execute migration "${_.migrationName}"`)}),e)throw console.error("Failed to migrate"),console.error(e),e;return a}async function Mr(t){let{keepOpen:n=!1,database:e,skipBetterAuth:u=!1}=t??{},a="skipped";if(!u&&!e)a=await ta();let _=e??yi(),m=async()=>{if(!n&&!e)await bi(_).catch((o)=>{console.warn("Warning: Error closing database:",o)})};try{let o=await Fr(_.db);return await m(),{betterAuth:a,kysely:o}}catch(o){throw await m(),o}}async function tp(){let t=yi(),n=new na({db:t.db,provider:{getMigrations:()=>Promise.resolve(ai)}}),{error:e,results:u}=await n.migrateDown();if(u?.forEach((a)=>{if(a.status==="Success")console.log(`\u2705 Migration "${a.migrationName}" rolled back successfully`);else if(a.status==="Error")console.error(`\u274C Failed to rollback migration "${a.migrationName}"`)}),e)throw console.error("Failed to rollback migration"),console.error(e),e}if(import.meta.main)(async()=>{try{await Mr(),console.log("Migrations completed."),process.exit(0)}catch(t){console.error("Migration failed:",t),process.exit(1)}})();export{Fr as runKyselyMigrations,Mr as migrateToLatest,tp as migrateDown};
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, import, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or beneficial
84
+ ownership of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ --------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ modify, display, perform, distribute, and otherwise exploit its
97
+ Contributions, either on an unmodified basis, with Modifications, or
98
+ as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted under
113
+ this License. No additional rights or licenses will be implied from the
114
+ distribution or licensing of Covered Software under this License.
115
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
116
+ Contributor:
117
+
118
+ (a) for any code that a Contributor has removed from Covered Software;
119
+ or
120
+
121
+ (b) for infringements caused by: (i) Your and any other third party's
122
+ modifications of Covered Software, or (ii) the combination of its
123
+ Contributions with other software (except as part of its Contributor
124
+ Version); or
125
+
126
+ (c) under Patent Claims infringed by Covered Software in the absence of
127
+ its Contributions.
128
+
129
+ This License does not grant any rights in the trademarks, service marks,
130
+ or logos of any Contributor (except as may be necessary to comply with
131
+ the notice requirements in Section 3.4).
132
+
133
+ 2.4. Subsequent Licenses
134
+
135
+ No Contributor makes additional grants as a result of Your choice to
136
+ distribute the Covered Software under a subsequent version of this
137
+ License (see Section 10.2) or under the terms of a Secondary License (if
138
+ permitted under the terms of Section 3.3).
139
+
140
+ 2.5. Representation
141
+
142
+ Each Contributor represents that the Contributor believes its
143
+ Contributions are its original creation(s) or it has sufficient rights
144
+ to grant the rights to its Contributions conveyed by this License.
145
+
146
+ 2.6. Fair Use
147
+
148
+ This License is not intended to limit any rights You have under
149
+ applicable copyright doctrines of fair use, fair dealing, or other
150
+ equivalents.
151
+
152
+ 2.7. Conditions
153
+
154
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
155
+ in Section 2.1.
156
+
157
+ 3. Responsibilities
158
+ -------------------
159
+
160
+ 3.1. Distribution of Source Form
161
+
162
+ All distribution of Covered Software in Source Code Form, including any
163
+ Modifications that You create or to which You contribute, must be under
164
+ the terms of this License. You must inform recipients that the Source
165
+ Code Form of the Covered Software is governed by the terms of this
166
+ License, and how they can obtain a copy of this License. You may not
167
+ attempt to alter or restrict the recipients' rights in the Source Code
168
+ Form.
169
+
170
+ 3.2. Distribution of Executable Form
171
+
172
+ If You distribute Covered Software in Executable Form then:
173
+
174
+ (a) such Covered Software must also be made available in Source Code
175
+ Form, as described in Section 3.1, and You must inform recipients of
176
+ the Executable Form how they can obtain a copy of such Source Code
177
+ Form by reasonable means in a timely manner, at a charge no more
178
+ than the cost of distribution to the recipient; and
179
+
180
+ (b) You may distribute such Executable Form under the terms of this
181
+ License, or sublicense it under different terms, provided that the
182
+ license for the Executable Form does not attempt to limit or alter
183
+ the recipients' rights in the Source Code Form under this License.
184
+
185
+ 3.3. Distribution of a Larger Work
186
+
187
+ You may create and distribute a Larger Work under terms of Your choice,
188
+ provided that You also comply with the requirements of this License for
189
+ the Covered Software. If the Larger Work is a combination of Covered
190
+ Software with a work governed by one or more Secondary Licenses, and the
191
+ Covered Software is not Incompatible With Secondary Licenses, this
192
+ License permits You to additionally distribute such Covered Software
193
+ under the terms of such Secondary License(s), so that the recipient of
194
+ the Larger Work may, at their option, further distribute the Covered
195
+ Software under the terms of either this License or such Secondary
196
+ License(s).
197
+
198
+ 3.4. Notices
199
+
200
+ You may not remove or alter the substance of any license notices
201
+ (including copyright notices, patent notices, disclaimers of warranty,
202
+ or limitations of liability) contained within the Source Code Form of
203
+ the Covered Software, except that You may alter any license notices to
204
+ the extent required to remedy known factual inaccuracies.
205
+
206
+ 3.5. Application of Additional Terms
207
+
208
+ You may choose to offer, and to charge a fee for, warranty, support,
209
+ indemnity or liability obligations to one or more recipients of Covered
210
+ Software. However, You may do so only on Your own behalf, and not on
211
+ behalf of any Contributor. You must make it absolutely clear that any
212
+ such warranty, support, indemnity, or liability obligation is offered by
213
+ You alone, and You hereby agree to indemnify every Contributor for any
214
+ liability incurred by such Contributor as a result of warranty, support,
215
+ indemnity or liability terms You offer. You may include additional
216
+ disclaimers of warranty and limitations of liability specific to any
217
+ jurisdiction.
218
+
219
+ 4. Inability to Comply Due to Statute or Regulation
220
+ ---------------------------------------------------
221
+
222
+ If it is impossible for You to comply with any of the terms of this
223
+ License with respect to some or all of the Covered Software due to
224
+ statute, judicial order, or regulation then You must: (a) comply with
225
+ the terms of this License to the maximum extent possible; and (b)
226
+ describe the limitations and the code they affect. Such description must
227
+ be placed in a text file included with all distributions of the Covered
228
+ Software under this License. Except to the extent prohibited by statute
229
+ or regulation, such description must be sufficiently detailed for a
230
+ recipient of ordinary skill to be able to understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been informed of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the defendant maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and use a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.