@farm.js/core 0.1.66 → 0.1.67

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 (433) hide show
  1. package/dist/{agent-mcp-handler-QLFDDTYN.mjs → agent-mcp-handler-AZ7QW4UP.mjs} +5 -5
  2. package/dist/{agent-mcp-handler-OXT73ZBY.cjs → agent-mcp-handler-FER4MQDF.cjs} +6 -6
  3. package/dist/{agent-mcp.d-QD2WZ9BS.d.ts → agent-mcp.d-BFu9xHAi.d.ts} +1 -1
  4. package/dist/{agent-mcp.d-CO_ABmNK.d.mts → agent-mcp.d-DWyWkTSy.d.mts} +1 -1
  5. package/dist/agent-runtime.cjs +6 -5
  6. package/dist/agent-runtime.d.mts +6 -6
  7. package/dist/agent-runtime.d.ts +6 -6
  8. package/dist/agent-runtime.mjs +5 -4
  9. package/dist/analyzer-KVZGVY5Q.cjs +16 -0
  10. package/dist/{analyzer-4UFP4HVP.mjs → analyzer-TTIIXXMQ.mjs} +2 -2
  11. package/dist/api/client.cjs +12 -2
  12. package/dist/api/client.d.mts +4 -4
  13. package/dist/api/client.d.ts +4 -4
  14. package/dist/api/client.mjs +12 -2
  15. package/dist/api/client.native.cjs +12 -2
  16. package/dist/api/client.native.d.mts +5 -5
  17. package/dist/api/client.native.d.ts +5 -5
  18. package/dist/api/client.native.mjs +12 -2
  19. package/dist/api/node.cjs +223 -0
  20. package/dist/api/node.d.mts +59 -0
  21. package/dist/api/node.d.ts +59 -0
  22. package/dist/api/node.mjs +223 -0
  23. package/dist/api/route-manager.cjs +11 -11
  24. package/dist/api/route-manager.d.mts +10 -9
  25. package/dist/api/route-manager.d.ts +10 -9
  26. package/dist/api/route-manager.mjs +10 -10
  27. package/dist/api/runtime.cjs +11 -7
  28. package/dist/api/runtime.d.mts +7 -7
  29. package/dist/api/runtime.d.ts +7 -7
  30. package/dist/api/runtime.mjs +10 -6
  31. package/dist/{api-client.d-BNLXNCXJ.d.mts → api-client.d-Bp35zMqR.d.mts} +1 -1
  32. package/dist/{api-client.d-ddQBNGtu.d.ts → api-client.d-CFI_xL0V.d.ts} +1 -1
  33. package/dist/api.cjs +17 -13
  34. package/dist/api.d.mts +11 -10
  35. package/dist/api.d.ts +11 -10
  36. package/dist/api.mjs +16 -12
  37. package/dist/{app-manifest.d-BpKxiU_E.d.mts → app-manifest.d-CRmjN5j9.d.mts} +1 -1
  38. package/dist/{app-manifest.d-DDmNkYQQ.d.ts → app-manifest.d-CwfhGrVR.d.ts} +1 -1
  39. package/dist/app-markdown.cjs +5 -5
  40. package/dist/app-markdown.d.mts +7 -7
  41. package/dist/app-markdown.d.ts +7 -7
  42. package/dist/app-markdown.mjs +4 -4
  43. package/dist/{app.d-x68Cwr0_.d.ts → app.d-BX9LVTiP.d.ts} +50 -9
  44. package/dist/{app.d-kuoVWhWM.d.mts → app.d-uBBUxwyV.d.mts} +50 -9
  45. package/dist/{chunk-V56632LA.cjs → chunk-22IWL4YD.cjs} +19 -5
  46. package/dist/{chunk-RY4ABNPE.cjs → chunk-23PVOIPT.cjs} +3 -3
  47. package/dist/{chunk-5C7XMKQ4.cjs → chunk-2AFW7673.cjs} +6 -1
  48. package/dist/{chunk-SYW346ZN.cjs → chunk-2LHZD3OP.cjs} +1 -21
  49. package/dist/{chunk-ZZI56IUY.mjs → chunk-2ZOYOYEE.mjs} +13 -13
  50. package/dist/{chunk-RVGSVQWT.mjs → chunk-3T5TLFCQ.mjs} +10 -5
  51. package/dist/{chunk-XBSKPLHF.cjs → chunk-3T7ALZJF.cjs} +2 -2
  52. package/dist/{chunk-7ONGIFYX.cjs → chunk-4DRINDGN.cjs} +319 -138
  53. package/dist/{chunk-O6L3YYPM.cjs → chunk-4E57QHPW.cjs} +8 -16
  54. package/dist/{chunk-WKPBIT5Q.cjs → chunk-4HGLJOXZ.cjs} +6 -6
  55. package/dist/{chunk-JGAE5XPL.cjs → chunk-4JX3M4C6.cjs} +2 -1
  56. package/dist/{chunk-CJNAUEVC.mjs → chunk-4QENVMG7.mjs} +1 -1
  57. package/dist/{chunk-CHYTADNK.cjs → chunk-556H7JCE.cjs} +65 -48
  58. package/dist/{chunk-OLIGNTWU.cjs → chunk-5NFQ6AZI.cjs} +7 -7
  59. package/dist/{chunk-6HRAK7I5.mjs → chunk-5OFNUETM.mjs} +8 -2
  60. package/dist/{chunk-TZVUF5JJ.mjs → chunk-5TA63JD3.mjs} +4 -4
  61. package/dist/{chunk-RD623KW4.cjs → chunk-67MZTLTF.cjs} +21 -3
  62. package/dist/chunk-6I4BFRE7.cjs +51 -0
  63. package/dist/{chunk-4TVPYN32.cjs → chunk-6R53ZWX2.cjs} +7 -7
  64. package/dist/{chunk-MGKW5XZE.cjs → chunk-6SQZXRJ2.cjs} +7 -7
  65. package/dist/{chunk-MPJEIHW2.cjs → chunk-6V5YWI4W.cjs} +2 -2
  66. package/dist/{chunk-BM2LH2JM.mjs → chunk-6YBYX4K4.mjs} +13 -12
  67. package/dist/{chunk-X3XUZWRB.mjs → chunk-724MGMIL.mjs} +17 -3
  68. package/dist/{chunk-K5EW7GUU.mjs → chunk-7BIW7VCW.mjs} +13 -5
  69. package/dist/{chunk-HPP2II4Z.mjs → chunk-7PJARAQQ.mjs} +1 -1
  70. package/dist/{chunk-LEJDW34D.cjs → chunk-7PPLTD3P.cjs} +3 -3
  71. package/dist/{chunk-TGULJSHD.mjs → chunk-AJNBTOVQ.mjs} +20 -9
  72. package/dist/{chunk-FBEBSAVI.cjs → chunk-AKIQ54FK.cjs} +82 -63
  73. package/dist/{chunk-2NGZFOKG.mjs → chunk-AOIUYHPH.mjs} +2 -2
  74. package/dist/{chunk-ZEXE4TGY.mjs → chunk-AQDLVHNF.mjs} +230 -110
  75. package/dist/{chunk-NKRZLQUK.mjs → chunk-AQIO3RNL.mjs} +1 -1
  76. package/dist/chunk-AQIRXBBY.cjs +26 -0
  77. package/dist/chunk-AZ6IW6SF.mjs +28 -0
  78. package/dist/{chunk-QMDU6QHN.mjs → chunk-B6RBJJ5G.mjs} +1 -1
  79. package/dist/{chunk-I32V5CZL.cjs → chunk-BDYM2TN3.cjs} +28 -17
  80. package/dist/{chunk-JLDNXURZ.cjs → chunk-BZWTBELF.cjs} +32 -32
  81. package/dist/{chunk-ITV4QQL2.cjs → chunk-C6CUUBY5.cjs} +14 -3
  82. package/dist/{chunk-YN6BHOYY.cjs → chunk-CL52PD6D.cjs} +10 -3
  83. package/dist/{chunk-UBMHQVWN.mjs → chunk-CO3YMZFD.mjs} +1 -1
  84. package/dist/{chunk-XURDCXNH.cjs → chunk-CSLHNBPS.cjs} +6 -6
  85. package/dist/{chunk-CNNBFGL5.cjs → chunk-DB2HSHQA.cjs} +14 -14
  86. package/dist/{chunk-XQSYOVCW.cjs → chunk-DBYNZIIQ.cjs} +13 -5
  87. package/dist/{chunk-DVKH2RVN.cjs → chunk-DCXSIEFE.cjs} +40 -41
  88. package/dist/{chunk-D4MRNBVF.cjs → chunk-DGOFR7D5.cjs} +2 -2
  89. package/dist/{chunk-QTD6EMN2.mjs → chunk-DQ2DI3Y7.mjs} +11 -4
  90. package/dist/chunk-DXZ57EPE.mjs +375 -0
  91. package/dist/{chunk-SA7MLSP4.mjs → chunk-E3HDJCWF.mjs} +3 -3
  92. package/dist/{chunk-BYRZ5VTH.mjs → chunk-E6CD45JK.mjs} +30 -31
  93. package/dist/{chunk-752XUZIM.cjs → chunk-EGIY4A7V.cjs} +6 -6
  94. package/dist/chunk-EIVGPQN5.mjs +51 -0
  95. package/dist/{chunk-KPAJWD3N.mjs → chunk-EYPSKXO4.mjs} +1 -1
  96. package/dist/{chunk-E552H232.cjs → chunk-F43OG25P.cjs} +1 -1
  97. package/dist/{chunk-UAQD67HM.mjs → chunk-F7JKVHU2.mjs} +1 -1
  98. package/dist/{chunk-QISW423S.cjs → chunk-FPBOAG6N.cjs} +2 -2
  99. package/dist/{chunk-2C5L5RPM.cjs → chunk-FT6KJHS3.cjs} +71 -38
  100. package/dist/{chunk-ES2LD2YD.mjs → chunk-GCRT6GJG.mjs} +18 -0
  101. package/dist/{chunk-5OJVKXFV.cjs → chunk-GDM3ZD2O.cjs} +10 -8
  102. package/dist/{chunk-EMDGXYUD.mjs → chunk-GJ7QVFAG.mjs} +16 -7
  103. package/dist/{chunk-TGSEVBPO.mjs → chunk-GJEC5S4V.mjs} +11 -0
  104. package/dist/{chunk-672ISQIG.mjs → chunk-GTV2ABO7.mjs} +218 -37
  105. package/dist/{chunk-MPIGW42F.mjs → chunk-H37MDCPR.mjs} +1 -1
  106. package/dist/{chunk-HNAISJFD.cjs → chunk-HDPT6OYE.cjs} +9 -3
  107. package/dist/{chunk-25T5VXOE.mjs → chunk-HFHJJXSV.mjs} +106 -19
  108. package/dist/{chunk-ZNH6NR3H.cjs → chunk-HJZZSBVK.cjs} +2 -2
  109. package/dist/{chunk-BIF5MLTH.cjs → chunk-HM7AGSKU.cjs} +1 -1
  110. package/dist/{chunk-GL7N5UHF.cjs → chunk-HNVAZGQD.cjs} +20 -9
  111. package/dist/{chunk-SK7QSNWE.mjs → chunk-HP2DQGQH.mjs} +1 -1
  112. package/dist/{chunk-435QJNC2.mjs → chunk-HRPTMX5C.mjs} +4 -4
  113. package/dist/{chunk-K7OZAVOI.mjs → chunk-IFR74W6S.mjs} +46 -13
  114. package/dist/{chunk-5A77OEIG.cjs → chunk-IHTDLCDJ.cjs} +5 -5
  115. package/dist/{chunk-VQJHT2ND.mjs → chunk-IRA2CZAY.mjs} +2 -2
  116. package/dist/{chunk-OYZXVBZP.cjs → chunk-IUKBPBM7.cjs} +2 -1
  117. package/dist/chunk-J6TZRYCO.cjs +22 -0
  118. package/dist/{chunk-WYAXRIYP.cjs → chunk-J7JHVCWA.cjs} +8 -8
  119. package/dist/chunk-JSOCDYER.cjs +375 -0
  120. package/dist/{chunk-TKK5QHKZ.mjs → chunk-JVM3DKZE.mjs} +3 -3
  121. package/dist/{chunk-UPYIFH2H.cjs → chunk-JWLRBDDC.cjs} +2 -2
  122. package/dist/{chunk-BQWBHWEW.mjs → chunk-JWSI5WO4.mjs} +1 -1
  123. package/dist/{chunk-OLGQZRW6.mjs → chunk-JZBU7V4D.mjs} +37 -17
  124. package/dist/{chunk-ONG4RDW3.mjs → chunk-JZGL2PIH.mjs} +13 -3
  125. package/dist/chunk-K63OWRY2.mjs +22 -0
  126. package/dist/{chunk-TUPKMMXT.mjs → chunk-K6HIIWUB.mjs} +1 -1
  127. package/dist/{chunk-MESQF2JC.mjs → chunk-K6SXMVXO.mjs} +2 -2
  128. package/dist/{chunk-L2JG337G.cjs → chunk-K6VFYFOY.cjs} +33 -31
  129. package/dist/{chunk-3CCAICF7.cjs → chunk-KCY52OUQ.cjs} +4 -4
  130. package/dist/{chunk-EZ34EHQP.mjs → chunk-KI3MU7B5.mjs} +1 -1
  131. package/dist/{chunk-GHNW564E.mjs → chunk-KSZK34HU.mjs} +30 -10
  132. package/dist/{chunk-RFKTJTWZ.mjs → chunk-KWFNUODD.mjs} +2 -1
  133. package/dist/{chunk-ECKQFEX2.mjs → chunk-LENKRGBV.mjs} +8 -6
  134. package/dist/{chunk-752IHQTD.cjs → chunk-LPIZMU7D.cjs} +12 -12
  135. package/dist/{chunk-HEPJIKKQ.cjs → chunk-MCSRMEQV.cjs} +2 -2
  136. package/dist/{chunk-DQF3QLOH.mjs → chunk-ME7RVELR.mjs} +3 -2
  137. package/dist/{chunk-E4UDLFWR.cjs → chunk-N5DQMOAG.cjs} +588 -677
  138. package/dist/{chunk-O4F3JUST.mjs → chunk-NDDRTFN4.mjs} +4 -0
  139. package/dist/{chunk-CBOEJ5Z4.cjs → chunk-OB3IFUK6.cjs} +133 -46
  140. package/dist/{chunk-R62SF5R4.mjs → chunk-OB45EAQL.mjs} +6 -1
  141. package/dist/{chunk-SYXPWJ7N.cjs → chunk-OFBLGH6V.cjs} +17 -18
  142. package/dist/{chunk-VQ4NWOWO.mjs → chunk-OGVTUGMU.mjs} +5 -13
  143. package/dist/{chunk-3UZVPO72.mjs → chunk-OIOPQ25L.mjs} +6 -7
  144. package/dist/{chunk-2XGBJSDV.cjs → chunk-OO7DYIJD.cjs} +73 -24
  145. package/dist/{chunk-27FPUFWR.mjs → chunk-P2NBQ5JI.mjs} +1 -1
  146. package/dist/{chunk-HZPKJRYA.cjs → chunk-PDFFYZAT.cjs} +2 -2
  147. package/dist/{chunk-GSVJ3IIF.cjs → chunk-PHCJJJZV.cjs} +2 -2
  148. package/dist/{chunk-EVMXPJCB.mjs → chunk-PKMUQ7LM.mjs} +2 -1
  149. package/dist/{chunk-4OSOLDPL.cjs → chunk-PL6RTBDE.cjs} +2 -2
  150. package/dist/{chunk-OAJOQU5J.mjs → chunk-PLJKJJ2H.mjs} +82 -63
  151. package/dist/{chunk-WMTBBQHY.cjs → chunk-PPX7UOFY.cjs} +271 -151
  152. package/dist/{chunk-6XQSPIN6.cjs → chunk-PWKAX5MS.cjs} +13 -3
  153. package/dist/{chunk-7XGWBPQQ.cjs → chunk-Q37INCXG.cjs} +13 -8
  154. package/dist/{chunk-OP7LHY4Y.cjs → chunk-Q5UX55YA.cjs} +1445 -601
  155. package/dist/{chunk-NHQM2Q4I.cjs → chunk-QGQP6QKO.cjs} +2 -2
  156. package/dist/{chunk-IT6WRNGB.cjs → chunk-QITSS4TD.cjs} +1381 -626
  157. package/dist/{chunk-4ZJ5C7UJ.cjs → chunk-QIXEU2WV.cjs} +19 -10
  158. package/dist/{chunk-HCGWDRZO.mjs → chunk-QJVW76JG.mjs} +17 -6
  159. package/dist/{chunk-FJWN7RV4.cjs → chunk-QO43L7Z4.cjs} +38 -8
  160. package/dist/{chunk-ZIHWAN55.cjs → chunk-RE5E2G5S.cjs} +1 -1
  161. package/dist/chunk-RWR7SMD7.cjs +50 -0
  162. package/dist/{chunk-7PTISZSQ.cjs → chunk-S7MWSFFP.cjs} +4 -0
  163. package/dist/chunk-SD6JGJOM.mjs +50 -0
  164. package/dist/{chunk-7H4SVNC4.cjs → chunk-SPP3EZTJ.cjs} +46 -26
  165. package/dist/{chunk-E4RDMG3K.mjs → chunk-TEG6HJVF.mjs} +4 -4
  166. package/dist/{chunk-WAY6LOQH.mjs → chunk-TEJ67GD2.mjs} +1 -1
  167. package/dist/{chunk-IFTGERT3.mjs → chunk-TTXIITYA.mjs} +49 -0
  168. package/dist/{chunk-ZFWYCVKS.mjs → chunk-TY5KCYDE.mjs} +22 -4
  169. package/dist/{chunk-W2ZXMMHA.mjs → chunk-UHE5JUKB.mjs} +1 -1
  170. package/dist/{chunk-OB7VKCUZ.mjs → chunk-UHNSY2PQ.mjs} +1302 -458
  171. package/dist/{chunk-UJ3R2AH2.cjs → chunk-UPOYKX4S.cjs} +5 -5
  172. package/dist/{chunk-2DLGV2ZG.mjs → chunk-UTUS6JUH.mjs} +1 -21
  173. package/dist/{chunk-WVYRLP5E.mjs → chunk-V5MQMQ2P.mjs} +1 -1
  174. package/dist/{chunk-VBCQ5WOI.cjs → chunk-V5RTHYJB.cjs} +30 -10
  175. package/dist/{chunk-WFWFECDW.mjs → chunk-VK54PDQ6.mjs} +25 -5
  176. package/dist/{chunk-LQNW3ABP.cjs → chunk-VX2HZGC7.cjs} +14 -14
  177. package/dist/{chunk-XBSLKXBL.mjs → chunk-WDD5CTZW.mjs} +49 -32
  178. package/dist/{chunk-EMNKZGF4.mjs → chunk-WGHY3OL5.mjs} +354 -443
  179. package/dist/{chunk-A2MN5PQJ.mjs → chunk-WMLSZAKN.mjs} +9 -9
  180. package/dist/{chunk-3EEET2Q5.cjs → chunk-WUTFJOV7.cjs} +32 -12
  181. package/dist/chunk-WVQNXXNE.cjs +28 -0
  182. package/dist/{chunk-Y5TOT5F6.cjs → chunk-X3MHKLCO.cjs} +5 -5
  183. package/dist/{chunk-Z7P2BTZ3.cjs → chunk-XGTFLG73.cjs} +30 -12
  184. package/dist/{chunk-AZUUKA66.mjs → chunk-XNZWMXCF.mjs} +1090 -335
  185. package/dist/{chunk-FIR62CR3.mjs → chunk-XUES6OET.mjs} +1 -1
  186. package/dist/{chunk-XCXHQBMM.mjs → chunk-Y2LU4LE5.mjs} +1 -1
  187. package/dist/{chunk-5J45H65F.mjs → chunk-Y5LEPEVH.mjs} +1 -1
  188. package/dist/{chunk-BT4SEFLC.cjs → chunk-YAEN3L2F.cjs} +3 -2
  189. package/dist/chunk-YFTGIHNC.mjs +26 -0
  190. package/dist/{chunk-KL7SHLQB.mjs → chunk-YGJ5P3TJ.mjs} +31 -1
  191. package/dist/{chunk-O75GQVUK.mjs → chunk-YQYTQJZN.mjs} +1 -1
  192. package/dist/{chunk-X4K7TYN6.cjs → chunk-YVTS3S3F.cjs} +24 -23
  193. package/dist/{chunk-72KABRWN.mjs → chunk-ZJGFAW5U.mjs} +5 -3
  194. package/dist/{chunk-TNBJ4LZG.mjs → chunk-ZPKJPM7K.mjs} +4 -4
  195. package/dist/client/lifecycle.cjs +2 -2
  196. package/dist/client/lifecycle.d.mts +1 -1
  197. package/dist/client/lifecycle.d.ts +1 -1
  198. package/dist/client/lifecycle.mjs +1 -1
  199. package/dist/{client-component.d-D74pqdea.d.mts → client-component.d-CDRvRmbU.d.mts} +2 -2
  200. package/dist/{client-component.d-D8VcypQA.d.ts → client-component.d-DWRKyAp5.d.ts} +2 -2
  201. package/dist/client-plugins.cjs +2 -2
  202. package/dist/{client-plugins.d-D4-6hNx7.d.mts → client-plugins.d-BNILjfX3.d.mts} +94 -140
  203. package/dist/{client-plugins.d-CXElzotB.d.ts → client-plugins.d-CrKZiNSN.d.ts} +94 -140
  204. package/dist/client-plugins.d.mts +6 -6
  205. package/dist/client-plugins.d.ts +6 -6
  206. package/dist/client-plugins.mjs +1 -1
  207. package/dist/client.cjs +11 -9
  208. package/dist/client.d.mts +13 -13
  209. package/dist/client.d.ts +13 -13
  210. package/dist/client.mjs +10 -8
  211. package/dist/{config.d-qt-mE8O5.d.mts → config.d-BKIhJtmr.d.mts} +7 -2
  212. package/dist/{config.d-qt-mE8O5.d.ts → config.d-BKIhJtmr.d.ts} +7 -2
  213. package/dist/config.d.mts +6 -6
  214. package/dist/config.d.ts +6 -6
  215. package/dist/cron.cjs +2 -2
  216. package/dist/cron.mjs +1 -1
  217. package/dist/deferred.cjs +2 -2
  218. package/dist/deferred.mjs +1 -1
  219. package/dist/deployment.cjs +2 -2
  220. package/dist/deployment.mjs +1 -1
  221. package/dist/desktop.d.mts +7 -7
  222. package/dist/desktop.d.ts +7 -7
  223. package/dist/{devtools-N2JQCMXB.cjs → devtools-RZVT4JVN.cjs} +36 -32
  224. package/dist/{devtools-NZUVNUP3.mjs → devtools-UFQYT3VA.mjs} +31 -27
  225. package/dist/docs.cjs +26 -25
  226. package/dist/docs.d.mts +20 -8
  227. package/dist/docs.d.ts +20 -8
  228. package/dist/docs.mjs +25 -24
  229. package/dist/env-types.cjs +3 -3
  230. package/dist/env-types.mjs +2 -2
  231. package/dist/environment/vite.cjs +5 -5
  232. package/dist/environment/vite.mjs +4 -4
  233. package/dist/headers.cjs +3 -3
  234. package/dist/headers.mjs +2 -2
  235. package/dist/image/server.d.mts +1 -1
  236. package/dist/image/server.d.ts +1 -1
  237. package/dist/image/sharp.d.mts +1 -1
  238. package/dist/image/sharp.d.ts +1 -1
  239. package/dist/{image-config.d-CeDgNyX4.d.mts → image-config.d-ByhQ0TT7.d.mts} +3 -1
  240. package/dist/{image-config.d-CeDgNyX4.d.ts → image-config.d-ByhQ0TT7.d.ts} +3 -1
  241. package/dist/image.cjs +6 -6
  242. package/dist/image.d.mts +1 -1
  243. package/dist/image.d.ts +1 -1
  244. package/dist/image.mjs +1 -1
  245. package/dist/index.cjs +142 -127
  246. package/dist/{index.d-SSgYDv4D.d.mts → index.d-Bdm6866n.d.mts} +1 -1
  247. package/dist/{index.d-A_x10zGS.d.ts → index.d-Dey5T14f.d.ts} +1 -1
  248. package/dist/index.d.mts +31 -82
  249. package/dist/index.d.ts +31 -82
  250. package/dist/index.mjs +213 -198
  251. package/dist/{integration-orm-52GPGTHO.cjs → integrations/orm.cjs} +5 -5
  252. package/dist/integrations/orm.d.mts +33 -0
  253. package/dist/integrations/orm.d.ts +33 -0
  254. package/dist/{integration-orm-CO23MSFE.mjs → integrations/orm.mjs} +5 -5
  255. package/dist/integrations.cjs +6 -5
  256. package/dist/integrations.d.mts +6 -6
  257. package/dist/integrations.d.ts +6 -6
  258. package/dist/integrations.mjs +5 -4
  259. package/dist/internal/app-markdown-runtime.cjs +4 -4
  260. package/dist/internal/app-markdown-runtime.d.mts +17 -8
  261. package/dist/internal/app-markdown-runtime.d.ts +17 -8
  262. package/dist/internal/app-markdown-runtime.mjs +3 -3
  263. package/dist/internal/build-runtime.cjs +68 -66
  264. package/dist/internal/build-runtime.d.mts +8 -8
  265. package/dist/internal/build-runtime.d.ts +8 -8
  266. package/dist/internal/build-runtime.mjs +67 -65
  267. package/dist/internal/cli-runtime.cjs +45 -44
  268. package/dist/internal/cli-runtime.mjs +44 -43
  269. package/dist/internal/client-error-overlay.cjs +6 -6
  270. package/dist/internal/client-error-overlay.mjs +2 -2
  271. package/dist/internal/client-runtime.cjs +60 -6
  272. package/dist/internal/client-runtime.d.mts +40 -11
  273. package/dist/internal/client-runtime.d.ts +40 -11
  274. package/dist/internal/client-runtime.mjs +58 -4
  275. package/dist/internal/compression-runtime.d.mts +6 -6
  276. package/dist/internal/compression-runtime.d.ts +6 -6
  277. package/dist/internal/config-runtime.cjs +25 -24
  278. package/dist/internal/config-runtime.d.mts +9 -9
  279. package/dist/internal/config-runtime.d.ts +9 -9
  280. package/dist/internal/config-runtime.mjs +24 -23
  281. package/dist/internal/docs-precompiled-runtime.cjs +16 -5
  282. package/dist/internal/docs-precompiled-runtime.d.mts +7 -0
  283. package/dist/internal/docs-precompiled-runtime.d.ts +7 -0
  284. package/dist/internal/docs-precompiled-runtime.mjs +15 -4
  285. package/dist/internal/infra-analytics-runtime.cjs +11 -11
  286. package/dist/internal/infra-analytics-runtime.mjs +9 -9
  287. package/dist/internal/islands-runtime.cjs +33 -4
  288. package/dist/internal/islands-runtime.d.mts +1 -1
  289. package/dist/internal/islands-runtime.d.ts +1 -1
  290. package/dist/internal/islands-runtime.mjs +31 -2
  291. package/dist/internal/native-server-fns.cjs +5 -5
  292. package/dist/internal/native-server-fns.mjs +4 -4
  293. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  294. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  295. package/dist/internal/production-runtime.cjs +53 -39
  296. package/dist/internal/production-runtime.d.mts +16 -15
  297. package/dist/internal/production-runtime.d.ts +16 -15
  298. package/dist/internal/production-runtime.mjs +68 -54
  299. package/dist/internal/react-cache.cjs +3 -3
  300. package/dist/internal/react-cache.mjs +1 -1
  301. package/dist/{lifecycle.d-C2aLBOwu.d.ts → lifecycle.d-keQs5Swc.d.mts} +7 -1
  302. package/dist/{lifecycle.d-C2aLBOwu.d.mts → lifecycle.d-keQs5Swc.d.ts} +7 -1
  303. package/dist/{manager-H5ZM3HAM.mjs → manager-JIA66YJ2.mjs} +4 -3
  304. package/dist/manager-JOHU6BQI.cjs +15 -0
  305. package/dist/markdown.cjs +7 -3
  306. package/dist/markdown.d.mts +6 -6
  307. package/dist/markdown.d.ts +6 -6
  308. package/dist/markdown.mjs +6 -2
  309. package/dist/middleware.cjs +10 -10
  310. package/dist/middleware.d.mts +8 -8
  311. package/dist/middleware.d.ts +8 -8
  312. package/dist/middleware.mjs +9 -9
  313. package/dist/mobile.d.mts +4 -4
  314. package/dist/mobile.d.ts +4 -4
  315. package/dist/mount.d-BP0nLYQO.d.mts +38 -0
  316. package/dist/mount.d-CkiPky_F.d.ts +38 -0
  317. package/dist/{native-server-fn-handler-GLRHAYWV.mjs → native-server-fn-handler-EP5AFJYE.mjs} +5 -5
  318. package/dist/{native-server-fn-handler-J5MYRXN6.cjs → native-server-fn-handler-QRTXGZA4.cjs} +6 -6
  319. package/dist/{native-tree-7LPH57Z4.cjs → native-tree-W2SSJB3Y.cjs} +4 -4
  320. package/dist/{native-tree-VV6WN3GX.mjs → native-tree-Y5YQANW7.mjs} +3 -3
  321. package/dist/{navigation-delegate.d-DQVYKoaZ.d.mts → navigation-delegate.d-CdBP-hkZ.d.mts} +1 -1
  322. package/dist/{navigation-delegate.d-GghbHJuK.d.ts → navigation-delegate.d-DchcGzAQ.d.ts} +1 -1
  323. package/dist/navigation.cjs +8 -7
  324. package/dist/navigation.d.mts +9 -9
  325. package/dist/navigation.d.ts +9 -9
  326. package/dist/navigation.mjs +7 -6
  327. package/dist/{nitro-DD4QCA66.mjs → nitro-55YOZWRA.mjs} +11 -11
  328. package/dist/{nitro-VRDX2H4M.cjs → nitro-EEX2J3KB.cjs} +13 -13
  329. package/dist/{plugin-53SY5YBS.mjs → plugin-SAS22JL7.mjs} +4 -3
  330. package/dist/{plugin-HZIBL3DW.cjs → plugin-WIU4GDD4.cjs} +5 -4
  331. package/dist/plugin.cjs +61 -59
  332. package/dist/plugin.d.mts +8 -8
  333. package/dist/plugin.d.ts +8 -8
  334. package/dist/plugin.mjs +60 -58
  335. package/dist/{production-runtime.d-Bzns3NW9.d.ts → production-runtime.d-Dou_Htas.d.ts} +1 -1
  336. package/dist/{production-runtime.d-DiFa5vHW.d.mts → production-runtime.d-VwsBzIee.d.mts} +1 -1
  337. package/dist/query/client.cjs +9 -7
  338. package/dist/query/client.mjs +5 -3
  339. package/dist/{render-plan.d-CL_Ikfg_.d.ts → render-plan.d-D8UakAIk.d.ts} +1 -1
  340. package/dist/{render-plan.d-CcF0MeCf.d.mts → render-plan.d-LKymStDJ.d.mts} +1 -1
  341. package/dist/renderer/none/server.cjs +35 -0
  342. package/dist/renderer/none/server.d.mts +21 -0
  343. package/dist/renderer/none/server.d.ts +21 -0
  344. package/dist/renderer/none/server.mjs +35 -0
  345. package/dist/renderer/react/server.cjs +2 -2
  346. package/dist/renderer/react/server.mjs +3 -3
  347. package/dist/renderer-client.cjs +8 -6
  348. package/dist/renderer-client.d.mts +9 -9
  349. package/dist/renderer-client.d.ts +9 -9
  350. package/dist/renderer-client.mjs +5 -3
  351. package/dist/renderer.cjs +6 -2
  352. package/dist/renderer.d.mts +20 -2
  353. package/dist/renderer.d.ts +20 -2
  354. package/dist/renderer.mjs +5 -1
  355. package/dist/request.cjs +2 -2
  356. package/dist/{request.d-B1RnTLri.d.ts → request.d-B928QjWy.d.ts} +1 -1
  357. package/dist/{request.d-DarDOCk9.d.mts → request.d-KG-4d2eG.d.mts} +1 -1
  358. package/dist/request.d.mts +7 -7
  359. package/dist/request.d.ts +7 -7
  360. package/dist/request.mjs +1 -1
  361. package/dist/{route-rendering.d-BTUYCIj4.d.ts → route-rendering.d-DoEe_w9t.d.ts} +1 -1
  362. package/dist/{route-rendering.d-D_2Ual0-.d.mts → route-rendering.d-NIHQeb4m.d.mts} +1 -1
  363. package/dist/{route.d-BaVH3V0w.d.mts → route.d-DrXkpvcg.d.mts} +1 -1
  364. package/dist/{route.d-DBTEqifW.d.ts → route.d-hs-_cyHn.d.ts} +1 -1
  365. package/dist/{router.d-Cuv1jntg.d.mts → router.d-B8PkJSGp.d.mts} +1 -1
  366. package/dist/{router.d-CMANF6da.d.ts → router.d-DYnRHQwz.d.ts} +1 -1
  367. package/dist/routes.cjs +3 -3
  368. package/dist/{routes.d-c2HKfrfL.d.mts → routes.d-DgZ_jgGG.d.mts} +1 -1
  369. package/dist/{routes.d-B6yFe6jm.d.ts → routes.d-uUBZyWoK.d.ts} +1 -1
  370. package/dist/routes.d.mts +6 -6
  371. package/dist/routes.d.ts +6 -6
  372. package/dist/routes.mjs +2 -2
  373. package/dist/{rsc-pipeline-7PNVJSTR.mjs → rsc-pipeline-4OJ5ZQNZ.mjs} +26 -25
  374. package/dist/{rsc-pipeline-Z7QBZOIJ.cjs → rsc-pipeline-7K5H2RPH.cjs} +27 -26
  375. package/dist/{runtime-QQHX4BP3.mjs → runtime-U7O3HZOZ.mjs} +60 -34
  376. package/dist/{runtime-FKFCUHSK.cjs → runtime-X52Q7JFR.cjs} +70 -44
  377. package/dist/{runtime.d-wvh4ngU0.d.mts → runtime.d-BxQIzwfy.d.mts} +11 -3
  378. package/dist/{runtime.d-C3RQUj6_.d.ts → runtime.d-DP7mEkEF.d.ts} +11 -3
  379. package/dist/{schema-dev-notice-JMXEQWIQ.mjs → schema-dev-notice-C2JINRZI.mjs} +3 -2
  380. package/dist/{schema-dev-notice-PLBFDTOF.cjs → schema-dev-notice-X7GG7QVB.cjs} +5 -4
  381. package/dist/schema.cjs +6 -2
  382. package/dist/schema.d-Dny9pnrm.d.mts +298 -0
  383. package/dist/schema.d-Dny9pnrm.d.ts +298 -0
  384. package/dist/schema.d.mts +1 -115
  385. package/dist/schema.d.ts +1 -115
  386. package/dist/schema.mjs +5 -1
  387. package/dist/server-fn-client.d.mts +2 -2
  388. package/dist/server-fn-client.d.ts +2 -2
  389. package/dist/server-fn.cjs +5 -5
  390. package/dist/server-fn.mjs +4 -4
  391. package/dist/server-plugins.cjs +7 -7
  392. package/dist/server-plugins.d.mts +16 -10
  393. package/dist/server-plugins.d.ts +16 -10
  394. package/dist/server-plugins.mjs +8 -8
  395. package/dist/server-query.cjs +6 -6
  396. package/dist/server-query.mjs +5 -5
  397. package/dist/server.cjs +160 -120
  398. package/dist/server.d.mts +20 -14
  399. package/dist/server.d.ts +20 -14
  400. package/dist/server.mjs +138 -98
  401. package/dist/{spa-router.d-WU_qS5gJ.d.mts → spa-router.d-BgHPVMhz.d.mts} +15 -5
  402. package/dist/{spa-router.d-m8H_Kl_B.d.ts → spa-router.d-DsFDHTsv.d.ts} +15 -5
  403. package/dist/testing.cjs +17 -17
  404. package/dist/testing.d.mts +6 -6
  405. package/dist/testing.d.ts +6 -6
  406. package/dist/testing.mjs +13 -13
  407. package/dist/theme/server.cjs +3 -3
  408. package/dist/theme/server.mjs +2 -2
  409. package/dist/{utils.d-W9IiEqmW.d.mts → utils.d-BKyKDBR1.d.mts} +1 -1
  410. package/dist/{utils.d-C9dQD5Zg.d.ts → utils.d-zxAVcf_V.d.ts} +1 -1
  411. package/dist/version.cjs +2 -2
  412. package/dist/version.mjs +1 -1
  413. package/dist/vite.cjs +63 -61
  414. package/dist/vite.d.mts +32 -12
  415. package/dist/vite.d.ts +32 -12
  416. package/dist/vite.mjs +62 -60
  417. package/dist/workflows.cjs +4 -4
  418. package/dist/workflows.mjs +3 -3
  419. package/package.json +31 -1
  420. package/dist/analyzer-H7SIX6BJ.cjs +0 -16
  421. package/dist/chunk-5YPBFMBN.cjs +0 -19
  422. package/dist/chunk-OM7WILES.mjs +0 -100
  423. package/dist/chunk-Q5B4LNON.mjs +0 -19
  424. package/dist/chunk-QPJ4MZTO.mjs +0 -60
  425. package/dist/chunk-R53QDV6T.cjs +0 -100
  426. package/dist/chunk-UYTAP4FQ.cjs +0 -60
  427. package/dist/manager-2LUKNX2N.cjs +0 -14
  428. /package/dist/{chunk-QGOZLGVP.mjs → chunk-I6FIAWNT.mjs} +0 -0
  429. /package/dist/{chunk-XPIPMWY3.cjs → chunk-K5NI5YQR.cjs} +0 -0
  430. /package/dist/{chunk-NWUHS6GV.cjs → chunk-QEJWNXRI.cjs} +0 -0
  431. /package/dist/{chunk-FSXSQQTV.mjs → chunk-TXE4SAMV.mjs} +0 -0
  432. /package/dist/{chunk-ZXK2EYQW.cjs → chunk-UUQNJDGH.cjs} +0 -0
  433. /package/dist/{chunk-46P5KNTE.mjs → chunk-VZBAW44S.mjs} +0 -0
@@ -0,0 +1,51 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/plugins/env.ts
2
+ function createEnvPlugin(env, {
3
+ beforeRequest: overrideBeforeRequest,
4
+ afterResponse: overrideAfterResponse
5
+ } = {}) {
6
+ return {
7
+ name: "farm:env",
8
+ configResolved(config, context) {
9
+ for (const [key, value] of Object.entries(env)) {
10
+ process.env[key] = value;
11
+ }
12
+ },
13
+ async beforeRequest(req, res, context) {
14
+ if (overrideBeforeRequest) {
15
+ await overrideBeforeRequest(req, res, context);
16
+ }
17
+ },
18
+ async afterResponse(req, res, context) {
19
+ if (overrideAfterResponse) {
20
+ await overrideAfterResponse(req, res, context);
21
+ }
22
+ }
23
+ };
24
+ }
25
+
26
+ // src/plugins/logger.ts
27
+ function createLoggerPlugin({
28
+ beforeRequest,
29
+ afterResponse
30
+ } = {}) {
31
+ const plugin = {
32
+ name: "farm:logger",
33
+ enforce: "post"
34
+ };
35
+ if (beforeRequest) {
36
+ plugin.beforeRequest = async (req, res, context) => {
37
+ await beforeRequest(req, res, context);
38
+ };
39
+ }
40
+ if (afterResponse) {
41
+ plugin.afterResponse = async (req, res, context) => {
42
+ await afterResponse(req, res, context);
43
+ };
44
+ }
45
+ return plugin;
46
+ }
47
+
48
+
49
+
50
+
51
+ exports.createEnvPlugin = createEnvPlugin; exports.createLoggerPlugin = createLoggerPlugin;
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk752IHQTDcjs = require('./chunk-752IHQTD.cjs');
3
+ var _chunkLPIZMU7Dcjs = require('./chunk-LPIZMU7D.cjs');
4
4
 
5
5
 
6
- var _chunk2C5L5RPMcjs = require('./chunk-2C5L5RPM.cjs');
6
+ var _chunkFT6KJHS3cjs = require('./chunk-FT6KJHS3.cjs');
7
7
 
8
8
 
9
9
  var _chunkEVIWKPJVcjs = require('./chunk-EVIWKPJV.cjs');
10
10
 
11
11
 
12
- var _chunkHNAISJFDcjs = require('./chunk-HNAISJFD.cjs');
12
+ var _chunkHDPT6OYEcjs = require('./chunk-HDPT6OYE.cjs');
13
13
 
14
14
  // src/plugins/infra-analytics.ts
15
15
  var _async_hooks = require('async_hooks');
@@ -75,7 +75,7 @@ function resolveFarmInfraAnalytics(env = processEnv()) {
75
75
  };
76
76
  }
77
77
  function classifyFarmInfraAgent(userAgent) {
78
- return _chunk2C5L5RPMcjs.classifyFarmAgent.call(void 0, userAgent);
78
+ return _chunkFT6KJHS3cjs.classifyFarmAgent.call(void 0, userAgent);
79
79
  }
80
80
  function routeTemplate(pattern) {
81
81
  return typeof pattern === "string" && pattern.length <= 256 && /^\/(?!\/)[a-zA-Z0-9_./:[\]()*-]*$/.test(pattern) ? pattern : "/[unmatched]";
@@ -273,7 +273,7 @@ function requestEvent(metadata, method, status, durationMs) {
273
273
  id: uuid(),
274
274
  requestId: metadata.id,
275
275
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
276
- route: routeTemplate(_chunk752IHQTDcjs.getFarmRouteLabel.call(void 0, metadata.route)),
276
+ route: routeTemplate(_chunkLPIZMU7Dcjs.getFarmRouteLabel.call(void 0, metadata.route)),
277
277
  agent: metadata.agent,
278
278
  kind: "request",
279
279
  method,
@@ -286,7 +286,7 @@ function toolEvent(metadata, event) {
286
286
  id: uuid(),
287
287
  requestId: metadata.id,
288
288
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
289
- route: routeTemplate(_chunk752IHQTDcjs.getFarmRouteLabel.call(void 0, metadata.route)),
289
+ route: routeTemplate(_chunkLPIZMU7Dcjs.getFarmRouteLabel.call(void 0, metadata.route)),
290
290
  agent: metadata.agent,
291
291
  kind: "mcp.tool",
292
292
  tool: event.tool,
@@ -315,7 +315,7 @@ function farmInfraAnalyticsPlugin(options, send) {
315
315
  context.state.unsubscribe = _chunkEVIWKPJVcjs.onFarmEvent.call(void 0,
316
316
  (event) => {
317
317
  if (!isToolEvent(event)) return;
318
- const request = _chunkHNAISJFDcjs.getCurrentRequestOrNull.call(void 0, );
318
+ const request = _chunkHDPT6OYEcjs.getCurrentRequestOrNull.call(void 0, );
319
319
  if (!request) return;
320
320
  const metadata = context.requestContext.get(request, contextKey);
321
321
  if (!metadata) return;
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCNNBFGL5cjs = require('./chunk-CNNBFGL5.cjs');
3
+ var _chunkDB2HSHQAcjs = require('./chunk-DB2HSHQA.cjs');
4
4
 
5
5
 
6
- var _chunkCBOEJ5Z4cjs = require('./chunk-CBOEJ5Z4.cjs');
6
+ var _chunkOB3IFUK6cjs = require('./chunk-OB3IFUK6.cjs');
7
7
 
8
8
 
9
9
  var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
10
10
 
11
11
  // src/navigation.ts
12
12
  function useRouter2() {
13
- const router = _chunkCNNBFGL5cjs.useRouter.call(void 0, );
13
+ const router = _chunkDB2HSHQAcjs.useRouter.call(void 0, );
14
14
  return {
15
15
  push: router.push,
16
16
  replace: router.replace,
@@ -18,19 +18,19 @@ function useRouter2() {
18
18
  forward: router.forward,
19
19
  refresh() {
20
20
  if (typeof window === "undefined") return Promise.resolve();
21
- return _chunkCBOEJ5Z4cjs.getRouter.call(void 0, ).refresh();
21
+ return _chunkOB3IFUK6cjs.getRouter.call(void 0, ).refresh();
22
22
  },
23
23
  prefetch(href) {
24
24
  if (typeof window === "undefined") return Promise.resolve();
25
- return _chunkCBOEJ5Z4cjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
25
+ return _chunkOB3IFUK6cjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
26
26
  }
27
27
  };
28
28
  }
29
29
  function usePathname() {
30
- return _chunkCNNBFGL5cjs.useRouter.call(void 0, ).pathname;
30
+ return _chunkDB2HSHQAcjs.useRouter.call(void 0, ).pathname;
31
31
  }
32
32
  function useSearchParams() {
33
- return _chunkCNNBFGL5cjs.useRouter.call(void 0, ).searchParams;
33
+ return _chunkDB2HSHQAcjs.useRouter.call(void 0, ).searchParams;
34
34
  }
35
35
 
36
36
 
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkBIF5MLTHcjs = require('./chunk-BIF5MLTH.cjs');
3
+ var _chunkHM7AGSKUcjs = require('./chunk-HM7AGSKU.cjs');
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -90,7 +90,7 @@ function createFarmProductionSiteReporter(options) {
90
90
  schemaVersion: FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION,
91
91
  eventType: FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE,
92
92
  packageName: FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME,
93
- packageVersion: sanitizeDetail(_chunkBIF5MLTHcjs.FARM_VERSION, "unknown"),
93
+ packageVersion: sanitizeDetail(_chunkHM7AGSKUcjs.FARM_VERSION, "unknown"),
94
94
  renderer: sanitizeDetail(options.renderer, "custom"),
95
95
  deployTarget: sanitizeDetail(options.deployTarget, "custom")
96
96
  };
@@ -1,16 +1,10 @@
1
1
  import {
2
2
  createRouteTypeDeclarations,
3
3
  generateRouteTypes
4
- } from "./chunk-SA7MLSP4.mjs";
5
- import {
6
- readSchemaTables
7
- } from "./chunk-2DLGV2ZG.mjs";
4
+ } from "./chunk-E3HDJCWF.mjs";
8
5
  import {
9
6
  APITypeGenerator
10
- } from "./chunk-HPP2II4Z.mjs";
11
- import {
12
- resolveSchemaModels
13
- } from "./chunk-F3N52U7S.mjs";
7
+ } from "./chunk-7PJARAQQ.mjs";
14
8
  import {
15
9
  getOptionalCatchAllParameterNames,
16
10
  materializeSSGRoutePath,
@@ -23,20 +17,27 @@ import {
23
17
  import {
24
18
  createEnvTypeDeclarations,
25
19
  generateEnvTypes
26
- } from "./chunk-TUPKMMXT.mjs";
20
+ } from "./chunk-K6HIIWUB.mjs";
27
21
  import {
22
+ isGeneratedFileCurrent,
28
23
  writeFileIfChanged
29
- } from "./chunk-Q5B4LNON.mjs";
24
+ } from "./chunk-YFTGIHNC.mjs";
30
25
  import {
31
26
  getFarmAppDirectories,
32
27
  getFarmSourceRoots
33
28
  } from "./chunk-52Y3C3HG.mjs";
29
+ import {
30
+ resolveSchemaModels
31
+ } from "./chunk-F3N52U7S.mjs";
32
+ import {
33
+ readSchemaTables
34
+ } from "./chunk-K63OWRY2.mjs";
34
35
  import {
35
36
  readFarmI18nCatalogs
36
37
  } from "./chunk-DU4VHHPJ.mjs";
37
38
  import {
38
39
  resolvePluginRoutes
39
- } from "./chunk-R62SF5R4.mjs";
40
+ } from "./chunk-OB45EAQL.mjs";
40
41
 
41
42
  // src/ssg.ts
42
43
  import { readFileSync } from "fs";
@@ -991,7 +992,7 @@ function writeOrCheckGeneratedFile(filePath, content, check, stalePaths) {
991
992
  writeFileIfChanged(filePath, content);
992
993
  }
993
994
  function checkGeneratedFile(filePath, content, stalePaths) {
994
- if (!existsSync2(filePath) || readFileSync2(filePath, "utf8") !== content) {
995
+ if (!existsSync2(filePath) || !isGeneratedFileCurrent(readFileSync2(filePath, "utf8"), content)) {
995
996
  stalePaths.push(filePath);
996
997
  }
997
998
  }
@@ -1,9 +1,11 @@
1
1
  import {
2
+ compareFarmRouteRuleSpecificity,
2
3
  normalizeFarmRouteRuntimeConfig
3
- } from "./chunk-EVMXPJCB.mjs";
4
+ } from "./chunk-PKMUQ7LM.mjs";
4
5
  import {
6
+ compileConfigRoutePattern,
5
7
  validateConfigRouteSource
6
- } from "./chunk-ONG4RDW3.mjs";
8
+ } from "./chunk-JZGL2PIH.mjs";
7
9
  import {
8
10
  isFarmRedirectStatus
9
11
  } from "./chunk-JNYFXL7X.mjs";
@@ -100,6 +102,17 @@ function routeRulesToNitroRouteRules(routeRules) {
100
102
  }
101
103
  return nitroRules;
102
104
  }
105
+ function resolveRouteRuleCorsPreflightHeaders(routeRules, pathname) {
106
+ if (!routeRules) return void 0;
107
+ let cors;
108
+ let headers = {};
109
+ const matches = Object.entries(routeRules).filter(([source]) => compileConfigRoutePattern(source).regex.test(pathname)).sort(([left], [right]) => compareFarmRouteRuleSpecificity(left, right));
110
+ for (const [, rule] of matches) {
111
+ if (rule.cors !== void 0) cors = rule.cors;
112
+ headers = { ...headers, ...normalizeCorsHeaders(rule.cors), ...rule.headers };
113
+ }
114
+ return cors ? headers : void 0;
115
+ }
103
116
  function normalizeCorsHeaders(cors) {
104
117
  if (!cors) return {};
105
118
  if (cors === true) {
@@ -137,5 +150,6 @@ export {
137
150
  normalizeRouteRules,
138
151
  routeRulesToRedirects,
139
152
  routeRulesToHeaders,
140
- routeRulesToNitroRouteRules
153
+ routeRulesToNitroRouteRules,
154
+ resolveRouteRuleCorsPreflightHeaders
141
155
  };
@@ -12,7 +12,15 @@ var DeferredDataError = class extends Error {
12
12
  this.code = FARM_DEFERRED_ERROR_CODE;
13
13
  }
14
14
  };
15
- var deferredStates = /* @__PURE__ */ new WeakMap();
15
+ var FARM_DEFERRED_STATE = /* @__PURE__ */ Symbol.for("farm.deferred.state");
16
+ function setDeferredState(promise, state) {
17
+ Reflect.defineProperty(promise, FARM_DEFERRED_STATE, {
18
+ configurable: true,
19
+ enumerable: false,
20
+ value: state,
21
+ writable: true
22
+ });
23
+ }
16
24
  function defer(value) {
17
25
  if (isDeferred(value)) {
18
26
  return value;
@@ -24,10 +32,10 @@ function defer(value) {
24
32
  value: true,
25
33
  writable: false
26
34
  });
27
- deferredStates.set(promise, { status: "pending" });
35
+ setDeferredState(promise, { status: "pending" });
28
36
  promise.then(
29
- (resolved) => deferredStates.set(promise, { status: "fulfilled", value: resolved }),
30
- (reason) => deferredStates.set(promise, { status: "rejected", reason })
37
+ (resolved) => setDeferredState(promise, { status: "fulfilled", value: resolved }),
38
+ (reason) => setDeferredState(promise, { status: "rejected", reason })
31
39
  );
32
40
  return promise;
33
41
  }
@@ -343,7 +351,7 @@ function getControlledDeferred(id, controllers) {
343
351
  return controlled;
344
352
  }
345
353
  function readDeferredState(promise) {
346
- const tracked = deferredStates.get(promise);
354
+ const tracked = promise[FARM_DEFERRED_STATE];
347
355
  if (tracked && tracked.status !== "pending") return tracked;
348
356
  const reactState = promise;
349
357
  if (reactState.status === "fulfilled") {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeFileIfChanged
3
- } from "./chunk-Q5B4LNON.mjs";
3
+ } from "./chunk-YFTGIHNC.mjs";
4
4
  import {
5
5
  isFarmAPIRouteFileName
6
6
  } from "./chunk-YX6AFPXC.mjs";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkYN6BHOYYcjs = require('./chunk-YN6BHOYY.cjs');
4
+ var _chunkCL52PD6Dcjs = require('./chunk-CL52PD6D.cjs');
5
5
 
6
6
 
7
7
 
@@ -64,14 +64,14 @@ async function handleFarmNativeServerFnRequest(request, options, parsed) {
64
64
  return refuse(400, "invalid_body", "The input has a key that is not allowed.");
65
65
  }
66
66
  const fn = await options.resolve(call.id);
67
- if (fn === void 0 || _chunkYN6BHOYYcjs._describeServerFunction.call(void 0, fn) === void 0) {
67
+ if (fn === void 0 || _chunkCL52PD6Dcjs._describeServerFunction.call(void 0, fn) === void 0) {
68
68
  return refuse(
69
69
  404,
70
70
  "unknown_function",
71
71
  "No server function with this id is open to native screens."
72
72
  );
73
73
  }
74
- const outcome = await _chunkYN6BHOYYcjs._invokeServerFunction.call(void 0, fn, call.input, request);
74
+ const outcome = await _chunkCL52PD6Dcjs._invokeServerFunction.call(void 0, fn, call.input, request);
75
75
  if (outcome.ok) {
76
76
  try {
77
77
  return json(200, { data: _nullishCoalesce(outcome.data, () => ( null)) });
@@ -9,13 +9,15 @@ import {
9
9
  } from "./chunk-M53MIIXY.mjs";
10
10
  import {
11
11
  defineSchema
12
- } from "./chunk-46P5KNTE.mjs";
12
+ } from "./chunk-VZBAW44S.mjs";
13
13
  import {
14
14
  assertSupportedMiddlewareMatcher
15
15
  } from "./chunk-EDPENAVO.mjs";
16
16
  import {
17
- toPublicValidationIssues
18
- } from "./chunk-TGSEVBPO.mjs";
17
+ rejectCrossSiteNonJSONBody,
18
+ toPublicValidationIssues,
19
+ validateIntegrationRequestOrigin
20
+ } from "./chunk-GJEC5S4V.mjs";
19
21
  import {
20
22
  applyWebResponseHeaders,
21
23
  sendWebResponse
@@ -42,7 +44,7 @@ import {
42
44
  } from "./chunk-GYMGK467.mjs";
43
45
  import {
44
46
  validateConfigRouteSource
45
- } from "./chunk-ONG4RDW3.mjs";
47
+ } from "./chunk-JZGL2PIH.mjs";
46
48
  import {
47
49
  canonicalizeRequestPathSegments
48
50
  } from "./chunk-OHWM2VI4.mjs";
@@ -1156,6 +1158,7 @@ function normalizeIntegrationRouteInputSchemas(route) {
1156
1158
  }
1157
1159
  return input.body || input.query ? input : void 0;
1158
1160
  }
1161
+ var CROSS_SITE_JSON_ROUTE_BODY_MESSAGE = 'This integration route reads a JSON body, so a request from another origin must send Content-Type: application/json. To accept form posts from other origins, set bodyFormat: "form" on the route.';
1159
1162
  async function validateIntegrationRouteInput(route, request, url) {
1160
1163
  if (request.method.toUpperCase() === "QUERY" && !request.headers.has("content-type")) {
1161
1164
  return {
@@ -1176,6 +1179,11 @@ async function validateIntegrationRouteInput(route, request, url) {
1176
1179
  input: {}
1177
1180
  };
1178
1181
  }
1182
+ const bodyFormat = getIntegrationRouteBodyFormat(route);
1183
+ if (schemas.body && bodyFormat === "json" && request.method !== "GET" && request.method !== "HEAD") {
1184
+ const rejection = rejectCrossSiteNonJSONBody(request, CROSS_SITE_JSON_ROUTE_BODY_MESSAGE);
1185
+ if (rejection) return { success: false, response: rejection };
1186
+ }
1179
1187
  const input = {};
1180
1188
  const issues = [];
1181
1189
  if (schemas.query) {
@@ -1191,10 +1199,7 @@ async function validateIntegrationRouteInput(route, request, url) {
1191
1199
  }
1192
1200
  }
1193
1201
  if (schemas.body) {
1194
- const bodyInput = await readIntegrationValidationBody(
1195
- request,
1196
- getIntegrationRouteBodyFormat(route)
1197
- );
1202
+ const bodyInput = await readIntegrationValidationBody(request, bodyFormat);
1198
1203
  if (bodyInput.success) {
1199
1204
  const bodyResult = await parseIntegrationInputSchema("body", schemas.body, bodyInput.data);
1200
1205
  if (bodyResult.success) {
@@ -1331,6 +1336,12 @@ async function readIntegrationValidationBody(request, format) {
1331
1336
  data: void 0
1332
1337
  };
1333
1338
  }
1339
+ if (!request.headers.get("content-type")?.trim() && !validateIntegrationRequestOrigin(request, { requireOriginMetadata: false }).ok) {
1340
+ return {
1341
+ success: true,
1342
+ data: void 0
1343
+ };
1344
+ }
1334
1345
  return {
1335
1346
  success: true,
1336
1347
  data: JSON.parse(text)
@@ -1364,7 +1375,7 @@ function createIntegrationRouteArgs(input) {
1364
1375
  `Integration "${input.integration.type}" does not define a schema for ctx.args.db.`
1365
1376
  );
1366
1377
  }
1367
- ormPromise ?? (ormPromise = import("./integration-orm-CO23MSFE.mjs").then(
1378
+ ormPromise ?? (ormPromise = import("./integrations/orm.mjs").then(
1368
1379
  ({ createIntegrationOrm }) => createIntegrationOrm({
1369
1380
  schema: input.integration.schema,
1370
1381
  config: input.config
@@ -6,19 +6,23 @@ var _chunkHXNLKCWHcjs = require('./chunk-HXNLKCWH.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunk6XQSPIN6cjs = require('./chunk-6XQSPIN6.cjs');
10
9
 
10
+ var _chunkPWKAX5MScjs = require('./chunk-PWKAX5MS.cjs');
11
11
 
12
- var _chunk7JUIK547cjs = require('./chunk-7JUIK547.cjs');
12
+
13
+ var _chunkHDPT6OYEcjs = require('./chunk-HDPT6OYE.cjs');
13
14
 
14
15
 
15
- var _chunkHNAISJFDcjs = require('./chunk-HNAISJFD.cjs');
16
+ var _chunk7JUIK547cjs = require('./chunk-7JUIK547.cjs');
16
17
 
17
18
  // src/plugins/redirects.ts
19
+ var FARM_CONFIG_REDIRECTS_PLUGIN_NAME = "farm:redirects";
20
+ var configRedirectMatchers = /* @__PURE__ */ new WeakMap();
18
21
  function createRedirectsPlugin(redirects, {
19
22
  beforeRequest: overrideBeforeRequest,
20
23
  afterResponse: overrideAfterResponse,
21
- i18n
24
+ i18n,
25
+ basePath
22
26
  } = {}) {
23
27
  for (const redirect of redirects) {
24
28
  if (redirect.statusCode !== void 0 && !_chunk7JUIK547cjs.isFarmRedirectStatus.call(void 0, redirect.statusCode)) {
@@ -29,35 +33,40 @@ function createRedirectsPlugin(redirects, {
29
33
  }
30
34
  const compiledRedirects = redirects.map((redirect) => ({
31
35
  redirect,
32
- pattern: _chunk6XQSPIN6cjs.compileConfigRoutePattern.call(void 0, redirect.source)
36
+ pattern: _chunkPWKAX5MScjs.compileConfigRoutePattern.call(void 0, redirect.source)
33
37
  }));
34
- return {
35
- name: "farm:redirects",
38
+ const matchRedirect = (url) => {
39
+ const routePath = _chunkPWKAX5MScjs.resolveConfigRoutePathname.call(void 0, url.pathname, i18n, basePath);
40
+ for (const { redirect, pattern } of compiledRedirects) {
41
+ const match = routePath.pathname.match(pattern.regex);
42
+ if (!match) continue;
43
+ const localizedDestination = _chunkPWKAX5MScjs.resolveConfigRedirectDestination.call(void 0,
44
+ _chunkPWKAX5MScjs.interpolateConfigRouteDestination.call(void 0, redirect.destination, match, pattern.tokens),
45
+ routePath.locale,
46
+ i18n,
47
+ basePath
48
+ );
49
+ return {
50
+ destination: _chunkHXNLKCWHcjs.appendFarmRedirectQuery.call(void 0, localizedDestination, url.search),
51
+ statusCode: _nullishCoalesce(redirect.statusCode, () => ( (redirect.permanent ? 308 : 307)))
52
+ };
53
+ }
54
+ return null;
55
+ };
56
+ const plugin = {
57
+ name: FARM_CONFIG_REDIRECTS_PLUGIN_NAME,
36
58
  enforce: "pre",
37
59
  async beforeRequest(req, res, context) {
38
60
  if (overrideBeforeRequest) {
39
61
  await overrideBeforeRequest(req, res, context);
40
62
  }
41
- const url = _chunkHNAISJFDcjs.resolveFarmRequestURL.call(void 0, req);
42
- const routePath = _chunk6XQSPIN6cjs.resolveConfigRoutePathname.call(void 0, url.pathname, i18n);
43
- const pathname = routePath.pathname;
44
- for (const { redirect, pattern } of compiledRedirects) {
45
- const match = pathname.match(pattern.regex);
46
- if (match) {
47
- const localizedDestination = _chunk6XQSPIN6cjs.localizeConfigRouteDestination.call(void 0,
48
- _chunk6XQSPIN6cjs.interpolateConfigRouteDestination.call(void 0, redirect.destination, match, pattern.tokens),
49
- routePath.locale,
50
- i18n
51
- );
52
- const destination = _chunkHXNLKCWHcjs.appendFarmRedirectQuery.call(void 0, localizedDestination, url.search);
53
- const statusCode = _nullishCoalesce(redirect.statusCode, () => ( (redirect.permanent ? 308 : 307)));
54
- res.writeHead(statusCode, {
55
- Location: destination
56
- });
57
- res.end();
58
- return;
59
- }
60
- }
63
+ const redirect = matchRedirect(_chunkHDPT6OYEcjs.resolveFarmRequestURL.call(void 0, req));
64
+ if (!redirect) return;
65
+ res.setHeader("Content-Type", "text/plain;charset=UTF-8");
66
+ res.writeHead(redirect.statusCode, {
67
+ Location: redirect.destination
68
+ });
69
+ res.end(`Redirecting to ${redirect.destination}`);
61
70
  },
62
71
  async afterResponse(req, res, context) {
63
72
  if (overrideAfterResponse) {
@@ -65,9 +74,15 @@ function createRedirectsPlugin(redirects, {
65
74
  }
66
75
  }
67
76
  };
77
+ configRedirectMatchers.set(plugin, matchRedirect);
78
+ return plugin;
79
+ }
80
+ function getConfigRedirectMatcher(plugin) {
81
+ return configRedirectMatchers.get(plugin);
68
82
  }
69
83
 
70
84
  // src/plugins/headers.ts
85
+ var FARM_CONFIG_HEADERS_PLUGIN_NAME = "farm:headers";
71
86
  var FARM_CONFIG_HEADERS_FINALIZER = /* @__PURE__ */ Symbol.for("farm.configHeadersFinalizer");
72
87
  function appendConfiguredLinkHeader(res, value) {
73
88
  const current = res.getHeader("Link");
@@ -132,21 +147,22 @@ function applyWriteHeadHeaders(res, headers) {
132
147
  function createHeadersPlugin(headers, {
133
148
  beforeRequest: overrideBeforeRequest,
134
149
  afterResponse: overrideAfterResponse,
135
- i18n
150
+ i18n,
151
+ basePath
136
152
  } = {}) {
137
153
  const compiledHeaders = headers.map((config) => ({
138
154
  config,
139
- pattern: _chunk6XQSPIN6cjs.compileConfigRoutePattern.call(void 0, config.source)
155
+ pattern: _chunkPWKAX5MScjs.compileConfigRoutePattern.call(void 0, config.source)
140
156
  }));
141
157
  return {
142
- name: "farm:headers",
158
+ name: FARM_CONFIG_HEADERS_PLUGIN_NAME,
143
159
  enforce: "pre",
144
160
  async beforeRequest(req, res, context) {
145
161
  if (overrideBeforeRequest) {
146
162
  await overrideBeforeRequest(req, res, context);
147
163
  }
148
- const url = _chunkHNAISJFDcjs.resolveFarmRequestURL.call(void 0, req);
149
- const pathname = _chunk6XQSPIN6cjs.resolveConfigRoutePathname.call(void 0, url.pathname, i18n).pathname;
164
+ const url = _chunkHDPT6OYEcjs.resolveFarmRequestURL.call(void 0, req);
165
+ const pathname = _chunkPWKAX5MScjs.resolveConfigRoutePathname.call(void 0, url.pathname, i18n, basePath).pathname;
150
166
  const matchedHeaders = compiledHeaders.filter(({ pattern }) => pattern.regex.test(pathname)).map(({ config }) => config.headers);
151
167
  applyResponseHeaders(res, matchedHeaders);
152
168
  const responseWithFinalizer = res;
@@ -170,22 +186,44 @@ function createHeadersPlugin(headers, {
170
186
  };
171
187
  }
172
188
 
173
- // src/plugins/env.ts
174
- function createEnvPlugin(env, {
189
+ // src/plugins/rewrites.ts
190
+ var FARM_CONFIG_REWRITES_PLUGIN_NAME = "farm:rewrites";
191
+ function createRewritesPlugin(rewrites, {
175
192
  beforeRequest: overrideBeforeRequest,
176
- afterResponse: overrideAfterResponse
193
+ afterResponse: overrideAfterResponse,
194
+ i18n,
195
+ basePath
177
196
  } = {}) {
197
+ const compiledRewrites = rewrites.map((rewrite) => ({
198
+ rewrite,
199
+ pattern: _chunkPWKAX5MScjs.compileConfigRoutePattern.call(void 0, rewrite.source)
200
+ }));
178
201
  return {
179
- name: "farm:env",
180
- configResolved(config, context) {
181
- for (const [key, value] of Object.entries(env)) {
182
- process.env[key] = value;
183
- }
184
- },
202
+ name: FARM_CONFIG_REWRITES_PLUGIN_NAME,
203
+ enforce: "pre",
185
204
  async beforeRequest(req, res, context) {
186
205
  if (overrideBeforeRequest) {
187
206
  await overrideBeforeRequest(req, res, context);
188
207
  }
208
+ const url = _chunkHDPT6OYEcjs.resolveFarmRequestURL.call(void 0, req);
209
+ const routePath = _chunkPWKAX5MScjs.resolveConfigRoutePathname.call(void 0, url.pathname, i18n, basePath);
210
+ const pathname = routePath.pathname;
211
+ for (const { rewrite, pattern } of compiledRewrites) {
212
+ const match = pathname.match(pattern.regex);
213
+ if (match) {
214
+ const newPath = _chunkPWKAX5MScjs.localizeConfigRouteDestination.call(void 0,
215
+ _chunkPWKAX5MScjs.interpolateConfigRouteDestination.call(void 0, rewrite.destination, match, pattern.tokens),
216
+ routePath.locale,
217
+ i18n
218
+ );
219
+ const destinationUrl = new URL(newPath, url);
220
+ if (!destinationUrl.search && url.search) {
221
+ destinationUrl.search = url.search;
222
+ }
223
+ req.url = destinationUrl.origin === url.origin ? destinationUrl.pathname + destinationUrl.search : destinationUrl.href;
224
+ break;
225
+ }
226
+ }
189
227
  },
190
228
  async afterResponse(req, res, context) {
191
229
  if (overrideAfterResponse) {
@@ -195,31 +233,12 @@ function createEnvPlugin(env, {
195
233
  };
196
234
  }
197
235
 
198
- // src/plugins/logger.ts
199
- function createLoggerPlugin({
200
- beforeRequest,
201
- afterResponse
202
- } = {}) {
203
- const plugin = {
204
- name: "farm:logger",
205
- enforce: "post"
206
- };
207
- if (beforeRequest) {
208
- plugin.beforeRequest = async (req, res, context) => {
209
- await beforeRequest(req, res, context);
210
- };
211
- }
212
- if (afterResponse) {
213
- plugin.afterResponse = async (req, res, context) => {
214
- await afterResponse(req, res, context);
215
- };
216
- }
217
- return plugin;
218
- }
219
236
 
220
237
 
221
238
 
222
239
 
223
240
 
224
241
 
225
- exports.createRedirectsPlugin = createRedirectsPlugin; exports.createHeadersPlugin = createHeadersPlugin; exports.createEnvPlugin = createEnvPlugin; exports.createLoggerPlugin = createLoggerPlugin;
242
+
243
+
244
+ exports.FARM_CONFIG_REDIRECTS_PLUGIN_NAME = FARM_CONFIG_REDIRECTS_PLUGIN_NAME; exports.createRedirectsPlugin = createRedirectsPlugin; exports.getConfigRedirectMatcher = getConfigRedirectMatcher; exports.FARM_CONFIG_HEADERS_PLUGIN_NAME = FARM_CONFIG_HEADERS_PLUGIN_NAME; exports.createHeadersPlugin = createHeadersPlugin; exports.FARM_CONFIG_REWRITES_PLUGIN_NAME = FARM_CONFIG_REWRITES_PLUGIN_NAME; exports.createRewritesPlugin = createRewritesPlugin;
@@ -22,7 +22,7 @@ var SIZE_UNITS = {
22
22
  mib: 1048576,
23
23
  gib: 1073741824
24
24
  };
25
- function resolveFarmImageConfig(config) {
25
+ function resolveFarmImageConfig(config, defaultProvider = "auto") {
26
26
  const path = normalizeImagePath(config?.path ?? DEFAULT_FARM_IMAGE_PATH);
27
27
  const deviceSizes = normalizeIntegerList(
28
28
  config?.deviceSizes ?? DEFAULT_FARM_IMAGE_DEVICE_SIZES,
@@ -50,7 +50,7 @@ function resolveFarmImageConfig(config) {
50
50
  "images.maximumRedirects"
51
51
  );
52
52
  return Object.freeze({
53
- provider: config?.provider ?? "auto",
53
+ provider: config?.provider ?? defaultProvider,
54
54
  path,
55
55
  domains: Object.freeze([
56
56
  ...new Set(