@farm.js/core 0.1.65 → 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 (439) 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-PE33SK5W.mjs → analyzer-TTIIXXMQ.mjs} +3 -3
  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-CZF4XIRZ.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-JCEFKP5M.mjs → chunk-423SSBYQ.mjs} +6 -0
  53. package/dist/{chunk-7QVRWGBL.cjs → chunk-4DRINDGN.cjs} +319 -138
  54. package/dist/{chunk-O6L3YYPM.cjs → chunk-4E57QHPW.cjs} +8 -16
  55. package/dist/{chunk-WKPBIT5Q.cjs → chunk-4HGLJOXZ.cjs} +6 -6
  56. package/dist/{chunk-JGAE5XPL.cjs → chunk-4JX3M4C6.cjs} +2 -1
  57. package/dist/{chunk-CJNAUEVC.mjs → chunk-4QENVMG7.mjs} +1 -1
  58. package/dist/{chunk-IMK32ERL.cjs → chunk-556H7JCE.cjs} +65 -48
  59. package/dist/{chunk-OLIGNTWU.cjs → chunk-5NFQ6AZI.cjs} +7 -7
  60. package/dist/{chunk-6HRAK7I5.mjs → chunk-5OFNUETM.mjs} +8 -2
  61. package/dist/{chunk-TZVUF5JJ.mjs → chunk-5TA63JD3.mjs} +4 -4
  62. package/dist/{chunk-RD623KW4.cjs → chunk-67MZTLTF.cjs} +21 -3
  63. package/dist/chunk-6I4BFRE7.cjs +51 -0
  64. package/dist/{chunk-OSFIUSYK.cjs → chunk-6R53ZWX2.cjs} +7 -7
  65. package/dist/{chunk-MGKW5XZE.cjs → chunk-6SQZXRJ2.cjs} +7 -7
  66. package/dist/{chunk-WNXVWXG3.cjs → chunk-6V5YWI4W.cjs} +2 -2
  67. package/dist/{chunk-BM2LH2JM.mjs → chunk-6YBYX4K4.mjs} +13 -12
  68. package/dist/{chunk-X3XUZWRB.mjs → chunk-724MGMIL.mjs} +17 -3
  69. package/dist/{chunk-K5EW7GUU.mjs → chunk-7BIW7VCW.mjs} +13 -5
  70. package/dist/{chunk-HPP2II4Z.mjs → chunk-7PJARAQQ.mjs} +1 -1
  71. package/dist/{chunk-LEJDW34D.cjs → chunk-7PPLTD3P.cjs} +3 -3
  72. package/dist/{chunk-TGULJSHD.mjs → chunk-AJNBTOVQ.mjs} +20 -9
  73. package/dist/{chunk-FBEBSAVI.cjs → chunk-AKIQ54FK.cjs} +82 -63
  74. package/dist/{chunk-2NGZFOKG.mjs → chunk-AOIUYHPH.mjs} +2 -2
  75. package/dist/{chunk-ZEXE4TGY.mjs → chunk-AQDLVHNF.mjs} +230 -110
  76. package/dist/{chunk-NKRZLQUK.mjs → chunk-AQIO3RNL.mjs} +1 -1
  77. package/dist/chunk-AQIRXBBY.cjs +26 -0
  78. package/dist/chunk-AZ6IW6SF.mjs +28 -0
  79. package/dist/{chunk-QMDU6QHN.mjs → chunk-B6RBJJ5G.mjs} +1 -1
  80. package/dist/{chunk-I32V5CZL.cjs → chunk-BDYM2TN3.cjs} +28 -17
  81. package/dist/{chunk-JLDNXURZ.cjs → chunk-BZWTBELF.cjs} +32 -32
  82. package/dist/{chunk-ITV4QQL2.cjs → chunk-C6CUUBY5.cjs} +14 -3
  83. package/dist/{chunk-V727H3RI.cjs → chunk-CCAUIBIS.cjs} +6 -0
  84. package/dist/{chunk-YN6BHOYY.cjs → chunk-CL52PD6D.cjs} +10 -3
  85. package/dist/{chunk-ZX2JHEWW.mjs → chunk-CO3YMZFD.mjs} +20 -9
  86. package/dist/{chunk-XURDCXNH.cjs → chunk-CSLHNBPS.cjs} +6 -6
  87. package/dist/{chunk-CNNBFGL5.cjs → chunk-DB2HSHQA.cjs} +14 -14
  88. package/dist/{chunk-XQSYOVCW.cjs → chunk-DBYNZIIQ.cjs} +13 -5
  89. package/dist/{chunk-32RPJAAS.cjs → chunk-DCXSIEFE.cjs} +40 -41
  90. package/dist/{chunk-D4MRNBVF.cjs → chunk-DGOFR7D5.cjs} +2 -2
  91. package/dist/{chunk-QTD6EMN2.mjs → chunk-DQ2DI3Y7.mjs} +11 -4
  92. package/dist/chunk-DXZ57EPE.mjs +375 -0
  93. package/dist/{chunk-SA7MLSP4.mjs → chunk-E3HDJCWF.mjs} +3 -3
  94. package/dist/{chunk-EFZGB7JC.cjs → chunk-E5UN4OWX.cjs} +1 -0
  95. package/dist/{chunk-HKNYNSOK.mjs → chunk-E6CD45JK.mjs} +30 -31
  96. package/dist/{chunk-752XUZIM.cjs → chunk-EGIY4A7V.cjs} +6 -6
  97. package/dist/chunk-EIVGPQN5.mjs +51 -0
  98. package/dist/{chunk-KPAJWD3N.mjs → chunk-EYPSKXO4.mjs} +1 -1
  99. package/dist/{chunk-E552H232.cjs → chunk-F43OG25P.cjs} +1 -1
  100. package/dist/{chunk-UAQD67HM.mjs → chunk-F7JKVHU2.mjs} +1 -1
  101. package/dist/{chunk-QISW423S.cjs → chunk-FPBOAG6N.cjs} +2 -2
  102. package/dist/{chunk-2C5L5RPM.cjs → chunk-FT6KJHS3.cjs} +71 -38
  103. package/dist/{chunk-ES2LD2YD.mjs → chunk-GCRT6GJG.mjs} +18 -0
  104. package/dist/{chunk-5OJVKXFV.cjs → chunk-GDM3ZD2O.cjs} +10 -8
  105. package/dist/{chunk-EMDGXYUD.mjs → chunk-GJ7QVFAG.mjs} +16 -7
  106. package/dist/{chunk-TGSEVBPO.mjs → chunk-GJEC5S4V.mjs} +11 -0
  107. package/dist/{chunk-ZAUOOGER.mjs → chunk-GTV2ABO7.mjs} +218 -37
  108. package/dist/{chunk-72JSHQQQ.mjs → chunk-H37MDCPR.mjs} +1 -1
  109. package/dist/{chunk-HNAISJFD.cjs → chunk-HDPT6OYE.cjs} +9 -3
  110. package/dist/{chunk-25T5VXOE.mjs → chunk-HFHJJXSV.mjs} +106 -19
  111. package/dist/{chunk-ZNH6NR3H.cjs → chunk-HJZZSBVK.cjs} +2 -2
  112. package/dist/{chunk-A3G5IY2W.cjs → chunk-HM7AGSKU.cjs} +1 -1
  113. package/dist/{chunk-GL7N5UHF.cjs → chunk-HNVAZGQD.cjs} +20 -9
  114. package/dist/{chunk-GRBJ7VKH.mjs → chunk-HP2DQGQH.mjs} +1 -1
  115. package/dist/{chunk-E2TSYUHV.mjs → chunk-HRPTMX5C.mjs} +4 -4
  116. package/dist/{chunk-K7OZAVOI.mjs → chunk-IFR74W6S.mjs} +46 -13
  117. package/dist/{chunk-5A77OEIG.cjs → chunk-IHTDLCDJ.cjs} +5 -5
  118. package/dist/{chunk-VQJHT2ND.mjs → chunk-IRA2CZAY.mjs} +2 -2
  119. package/dist/{chunk-OYZXVBZP.cjs → chunk-IUKBPBM7.cjs} +2 -1
  120. package/dist/chunk-J6TZRYCO.cjs +22 -0
  121. package/dist/{chunk-WYAXRIYP.cjs → chunk-J7JHVCWA.cjs} +8 -8
  122. package/dist/chunk-JSOCDYER.cjs +375 -0
  123. package/dist/{chunk-YUW7F6SK.mjs → chunk-JVM3DKZE.mjs} +3 -3
  124. package/dist/{chunk-UPYIFH2H.cjs → chunk-JWLRBDDC.cjs} +2 -2
  125. package/dist/{chunk-BQWBHWEW.mjs → chunk-JWSI5WO4.mjs} +1 -1
  126. package/dist/{chunk-OLGQZRW6.mjs → chunk-JZBU7V4D.mjs} +37 -17
  127. package/dist/{chunk-ONG4RDW3.mjs → chunk-JZGL2PIH.mjs} +13 -3
  128. package/dist/chunk-K63OWRY2.mjs +22 -0
  129. package/dist/{chunk-TUPKMMXT.mjs → chunk-K6HIIWUB.mjs} +1 -1
  130. package/dist/{chunk-MESQF2JC.mjs → chunk-K6SXMVXO.mjs} +2 -2
  131. package/dist/{chunk-L2JG337G.cjs → chunk-K6VFYFOY.cjs} +33 -31
  132. package/dist/{chunk-3CCAICF7.cjs → chunk-KCY52OUQ.cjs} +4 -4
  133. package/dist/{chunk-EZ34EHQP.mjs → chunk-KI3MU7B5.mjs} +1 -1
  134. package/dist/{chunk-GHNW564E.mjs → chunk-KSZK34HU.mjs} +30 -10
  135. package/dist/{chunk-RFKTJTWZ.mjs → chunk-KWFNUODD.mjs} +2 -1
  136. package/dist/{chunk-ECKQFEX2.mjs → chunk-LENKRGBV.mjs} +8 -6
  137. package/dist/{chunk-C7DCMGC4.cjs → chunk-LPIZMU7D.cjs} +12 -12
  138. package/dist/{chunk-HEPJIKKQ.cjs → chunk-MCSRMEQV.cjs} +2 -2
  139. package/dist/{chunk-DQF3QLOH.mjs → chunk-ME7RVELR.mjs} +3 -2
  140. package/dist/{chunk-3KJPIO5D.cjs → chunk-N5DQMOAG.cjs} +589 -678
  141. package/dist/{chunk-O4F3JUST.mjs → chunk-NDDRTFN4.mjs} +4 -0
  142. package/dist/{chunk-CBOEJ5Z4.cjs → chunk-OB3IFUK6.cjs} +133 -46
  143. package/dist/{chunk-R62SF5R4.mjs → chunk-OB45EAQL.mjs} +6 -1
  144. package/dist/{chunk-SYXPWJ7N.cjs → chunk-OFBLGH6V.cjs} +17 -18
  145. package/dist/{chunk-VQ4NWOWO.mjs → chunk-OGVTUGMU.mjs} +5 -13
  146. package/dist/{chunk-3UZVPO72.mjs → chunk-OIOPQ25L.mjs} +6 -7
  147. package/dist/{chunk-2XGBJSDV.cjs → chunk-OO7DYIJD.cjs} +73 -24
  148. package/dist/{chunk-IP2KHSGF.mjs → chunk-P2NBQ5JI.mjs} +57 -4
  149. package/dist/{chunk-ZQQK4U66.cjs → chunk-PDFFYZAT.cjs} +72 -19
  150. package/dist/{chunk-GSVJ3IIF.cjs → chunk-PHCJJJZV.cjs} +2 -2
  151. package/dist/{chunk-EVMXPJCB.mjs → chunk-PKMUQ7LM.mjs} +2 -1
  152. package/dist/{chunk-YD4J37RN.cjs → chunk-PL6RTBDE.cjs} +30 -19
  153. package/dist/{chunk-OAJOQU5J.mjs → chunk-PLJKJJ2H.mjs} +82 -63
  154. package/dist/{chunk-WMTBBQHY.cjs → chunk-PPX7UOFY.cjs} +271 -151
  155. package/dist/{chunk-6XQSPIN6.cjs → chunk-PWKAX5MS.cjs} +13 -3
  156. package/dist/{chunk-7XGWBPQQ.cjs → chunk-Q37INCXG.cjs} +13 -8
  157. package/dist/{chunk-T4M52BA5.cjs → chunk-Q5UX55YA.cjs} +1457 -612
  158. package/dist/{chunk-53ZCZ46B.cjs → chunk-QGQP6QKO.cjs} +4 -3
  159. package/dist/{chunk-TZOGZKI7.cjs → chunk-QITSS4TD.cjs} +1381 -626
  160. package/dist/{chunk-4ZJ5C7UJ.cjs → chunk-QIXEU2WV.cjs} +19 -10
  161. package/dist/{chunk-HCGWDRZO.mjs → chunk-QJVW76JG.mjs} +17 -6
  162. package/dist/{chunk-FJWN7RV4.cjs → chunk-QO43L7Z4.cjs} +38 -8
  163. package/dist/{chunk-ZIHWAN55.cjs → chunk-RE5E2G5S.cjs} +1 -1
  164. package/dist/chunk-RWR7SMD7.cjs +50 -0
  165. package/dist/{chunk-7PTISZSQ.cjs → chunk-S7MWSFFP.cjs} +4 -0
  166. package/dist/chunk-SD6JGJOM.mjs +50 -0
  167. package/dist/{chunk-7H4SVNC4.cjs → chunk-SPP3EZTJ.cjs} +46 -26
  168. package/dist/{chunk-E4RDMG3K.mjs → chunk-TEG6HJVF.mjs} +4 -4
  169. package/dist/{chunk-WAY6LOQH.mjs → chunk-TEJ67GD2.mjs} +1 -1
  170. package/dist/{chunk-ZNXTU4YH.mjs → chunk-TM2E623I.mjs} +1 -0
  171. package/dist/{chunk-IFTGERT3.mjs → chunk-TTXIITYA.mjs} +49 -0
  172. package/dist/{chunk-ZFWYCVKS.mjs → chunk-TY5KCYDE.mjs} +22 -4
  173. package/dist/{chunk-W2ZXMMHA.mjs → chunk-UHE5JUKB.mjs} +1 -1
  174. package/dist/{chunk-6X5NKNBE.mjs → chunk-UHNSY2PQ.mjs} +1304 -459
  175. package/dist/{chunk-UJ3R2AH2.cjs → chunk-UPOYKX4S.cjs} +5 -5
  176. package/dist/{chunk-2DLGV2ZG.mjs → chunk-UTUS6JUH.mjs} +1 -21
  177. package/dist/{chunk-Q75QPLBA.mjs → chunk-V5MQMQ2P.mjs} +1 -1
  178. package/dist/{chunk-TRIDJQ6A.cjs → chunk-V5RTHYJB.cjs} +30 -10
  179. package/dist/{chunk-QHRCR44V.mjs → chunk-VK54PDQ6.mjs} +25 -5
  180. package/dist/{chunk-LQNW3ABP.cjs → chunk-VX2HZGC7.cjs} +14 -14
  181. package/dist/{chunk-2L54YV25.mjs → chunk-WDD5CTZW.mjs} +49 -32
  182. package/dist/{chunk-7GYCZRTH.mjs → chunk-WGHY3OL5.mjs} +355 -444
  183. package/dist/{chunk-A2MN5PQJ.mjs → chunk-WMLSZAKN.mjs} +9 -9
  184. package/dist/{chunk-3EEET2Q5.cjs → chunk-WUTFJOV7.cjs} +32 -12
  185. package/dist/chunk-WVQNXXNE.cjs +28 -0
  186. package/dist/{chunk-Y5TOT5F6.cjs → chunk-X3MHKLCO.cjs} +5 -5
  187. package/dist/{chunk-Z7P2BTZ3.cjs → chunk-XGTFLG73.cjs} +30 -12
  188. package/dist/{chunk-VHHLKIDZ.mjs → chunk-XNZWMXCF.mjs} +1090 -335
  189. package/dist/{chunk-FIR62CR3.mjs → chunk-XUES6OET.mjs} +1 -1
  190. package/dist/{chunk-XCXHQBMM.mjs → chunk-Y2LU4LE5.mjs} +1 -1
  191. package/dist/{chunk-5J45H65F.mjs → chunk-Y5LEPEVH.mjs} +1 -1
  192. package/dist/{chunk-BT4SEFLC.cjs → chunk-YAEN3L2F.cjs} +3 -2
  193. package/dist/chunk-YFTGIHNC.mjs +26 -0
  194. package/dist/{chunk-KL7SHLQB.mjs → chunk-YGJ5P3TJ.mjs} +31 -1
  195. package/dist/{chunk-UYRI6U3P.mjs → chunk-YQYTQJZN.mjs} +3 -2
  196. package/dist/{chunk-X4K7TYN6.cjs → chunk-YVTS3S3F.cjs} +24 -23
  197. package/dist/{chunk-72KABRWN.mjs → chunk-ZJGFAW5U.mjs} +5 -3
  198. package/dist/{chunk-TNBJ4LZG.mjs → chunk-ZPKJPM7K.mjs} +4 -4
  199. package/dist/client/lifecycle.cjs +2 -2
  200. package/dist/client/lifecycle.d.mts +1 -1
  201. package/dist/client/lifecycle.d.ts +1 -1
  202. package/dist/client/lifecycle.mjs +1 -1
  203. package/dist/{client-component.d-D74pqdea.d.mts → client-component.d-CDRvRmbU.d.mts} +2 -2
  204. package/dist/{client-component.d-D8VcypQA.d.ts → client-component.d-DWRKyAp5.d.ts} +2 -2
  205. package/dist/client-plugins.cjs +2 -2
  206. package/dist/{client-plugins.d-D4-6hNx7.d.mts → client-plugins.d-BNILjfX3.d.mts} +94 -140
  207. package/dist/{client-plugins.d-CXElzotB.d.ts → client-plugins.d-CrKZiNSN.d.ts} +94 -140
  208. package/dist/client-plugins.d.mts +6 -6
  209. package/dist/client-plugins.d.ts +6 -6
  210. package/dist/client-plugins.mjs +1 -1
  211. package/dist/client.cjs +11 -9
  212. package/dist/client.d.mts +13 -13
  213. package/dist/client.d.ts +13 -13
  214. package/dist/client.mjs +10 -8
  215. package/dist/{config.d-qt-mE8O5.d.mts → config.d-BKIhJtmr.d.mts} +7 -2
  216. package/dist/{config.d-qt-mE8O5.d.ts → config.d-BKIhJtmr.d.ts} +7 -2
  217. package/dist/config.d.mts +6 -6
  218. package/dist/config.d.ts +6 -6
  219. package/dist/cron.cjs +2 -2
  220. package/dist/cron.mjs +1 -1
  221. package/dist/deferred.cjs +2 -2
  222. package/dist/deferred.mjs +1 -1
  223. package/dist/deployment.cjs +2 -2
  224. package/dist/deployment.mjs +1 -1
  225. package/dist/desktop.d.mts +7 -7
  226. package/dist/desktop.d.ts +7 -7
  227. package/dist/{devtools-SGYOG36E.cjs → devtools-RZVT4JVN.cjs} +36 -32
  228. package/dist/{devtools-PUVZB3F2.mjs → devtools-UFQYT3VA.mjs} +31 -27
  229. package/dist/docs.cjs +26 -25
  230. package/dist/docs.d.mts +20 -8
  231. package/dist/docs.d.ts +20 -8
  232. package/dist/docs.mjs +25 -24
  233. package/dist/env-types.cjs +3 -3
  234. package/dist/env-types.mjs +2 -2
  235. package/dist/environment/vite.cjs +5 -5
  236. package/dist/environment/vite.mjs +4 -4
  237. package/dist/headers.cjs +3 -3
  238. package/dist/headers.mjs +2 -2
  239. package/dist/image/server.d.mts +1 -1
  240. package/dist/image/server.d.ts +1 -1
  241. package/dist/image/sharp.d.mts +1 -1
  242. package/dist/image/sharp.d.ts +1 -1
  243. package/dist/{image-config.d-CeDgNyX4.d.mts → image-config.d-ByhQ0TT7.d.mts} +3 -1
  244. package/dist/{image-config.d-CeDgNyX4.d.ts → image-config.d-ByhQ0TT7.d.ts} +3 -1
  245. package/dist/image.cjs +6 -6
  246. package/dist/image.d.mts +1 -1
  247. package/dist/image.d.ts +1 -1
  248. package/dist/image.mjs +1 -1
  249. package/dist/index.cjs +143 -128
  250. package/dist/{index.d-SSgYDv4D.d.mts → index.d-Bdm6866n.d.mts} +1 -1
  251. package/dist/{index.d-A_x10zGS.d.ts → index.d-Dey5T14f.d.ts} +1 -1
  252. package/dist/index.d.mts +31 -82
  253. package/dist/index.d.ts +31 -82
  254. package/dist/index.mjs +214 -199
  255. package/dist/{integration-orm-52GPGTHO.cjs → integrations/orm.cjs} +5 -5
  256. package/dist/integrations/orm.d.mts +33 -0
  257. package/dist/integrations/orm.d.ts +33 -0
  258. package/dist/{integration-orm-CO23MSFE.mjs → integrations/orm.mjs} +5 -5
  259. package/dist/integrations.cjs +6 -5
  260. package/dist/integrations.d.mts +6 -6
  261. package/dist/integrations.d.ts +6 -6
  262. package/dist/integrations.mjs +5 -4
  263. package/dist/internal/app-markdown-runtime.cjs +4 -4
  264. package/dist/internal/app-markdown-runtime.d.mts +17 -8
  265. package/dist/internal/app-markdown-runtime.d.ts +17 -8
  266. package/dist/internal/app-markdown-runtime.mjs +3 -3
  267. package/dist/internal/build-runtime.cjs +70 -68
  268. package/dist/internal/build-runtime.d.mts +8 -8
  269. package/dist/internal/build-runtime.d.ts +8 -8
  270. package/dist/internal/build-runtime.mjs +69 -67
  271. package/dist/internal/cli-runtime.cjs +45 -44
  272. package/dist/internal/cli-runtime.mjs +44 -43
  273. package/dist/internal/client-error-overlay.cjs +6 -6
  274. package/dist/internal/client-error-overlay.mjs +2 -2
  275. package/dist/internal/client-runtime.cjs +60 -6
  276. package/dist/internal/client-runtime.d.mts +40 -11
  277. package/dist/internal/client-runtime.d.ts +40 -11
  278. package/dist/internal/client-runtime.mjs +58 -4
  279. package/dist/internal/compression-runtime.d.mts +6 -6
  280. package/dist/internal/compression-runtime.d.ts +6 -6
  281. package/dist/internal/config-runtime.cjs +25 -24
  282. package/dist/internal/config-runtime.d.mts +9 -9
  283. package/dist/internal/config-runtime.d.ts +9 -9
  284. package/dist/internal/config-runtime.mjs +24 -23
  285. package/dist/internal/docs-precompiled-runtime.cjs +16 -5
  286. package/dist/internal/docs-precompiled-runtime.d.mts +7 -0
  287. package/dist/internal/docs-precompiled-runtime.d.ts +7 -0
  288. package/dist/internal/docs-precompiled-runtime.mjs +15 -4
  289. package/dist/internal/infra-analytics-runtime.cjs +11 -11
  290. package/dist/internal/infra-analytics-runtime.mjs +9 -9
  291. package/dist/internal/islands-runtime.cjs +33 -4
  292. package/dist/internal/islands-runtime.d.mts +1 -1
  293. package/dist/internal/islands-runtime.d.ts +1 -1
  294. package/dist/internal/islands-runtime.mjs +31 -2
  295. package/dist/internal/native-server-fns.cjs +6 -6
  296. package/dist/internal/native-server-fns.mjs +5 -5
  297. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  298. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  299. package/dist/internal/production-runtime.cjs +54 -40
  300. package/dist/internal/production-runtime.d.mts +23 -15
  301. package/dist/internal/production-runtime.d.ts +23 -15
  302. package/dist/internal/production-runtime.mjs +69 -55
  303. package/dist/internal/react-cache.cjs +3 -3
  304. package/dist/internal/react-cache.mjs +1 -1
  305. package/dist/{lifecycle.d-C2aLBOwu.d.ts → lifecycle.d-keQs5Swc.d.mts} +7 -1
  306. package/dist/{lifecycle.d-C2aLBOwu.d.mts → lifecycle.d-keQs5Swc.d.ts} +7 -1
  307. package/dist/{manager-H5ZM3HAM.mjs → manager-JIA66YJ2.mjs} +4 -3
  308. package/dist/manager-JOHU6BQI.cjs +15 -0
  309. package/dist/markdown.cjs +7 -3
  310. package/dist/markdown.d.mts +6 -6
  311. package/dist/markdown.d.ts +6 -6
  312. package/dist/markdown.mjs +6 -2
  313. package/dist/middleware.cjs +10 -10
  314. package/dist/middleware.d.mts +8 -8
  315. package/dist/middleware.d.ts +8 -8
  316. package/dist/middleware.mjs +9 -9
  317. package/dist/mobile.d.mts +4 -4
  318. package/dist/mobile.d.ts +4 -4
  319. package/dist/mount.d-BP0nLYQO.d.mts +38 -0
  320. package/dist/mount.d-CkiPky_F.d.ts +38 -0
  321. package/dist/{native-server-fn-handler-GLRHAYWV.mjs → native-server-fn-handler-EP5AFJYE.mjs} +5 -5
  322. package/dist/{native-server-fn-handler-J5MYRXN6.cjs → native-server-fn-handler-QRTXGZA4.cjs} +6 -6
  323. package/dist/{native-tree-HE2FLS72.cjs → native-tree-W2SSJB3Y.cjs} +5 -5
  324. package/dist/{native-tree-YF2DSPKM.mjs → native-tree-Y5YQANW7.mjs} +4 -4
  325. package/dist/{navigation-delegate.d-DQVYKoaZ.d.mts → navigation-delegate.d-CdBP-hkZ.d.mts} +1 -1
  326. package/dist/{navigation-delegate.d-GghbHJuK.d.ts → navigation-delegate.d-DchcGzAQ.d.ts} +1 -1
  327. package/dist/navigation.cjs +8 -7
  328. package/dist/navigation.d.mts +9 -9
  329. package/dist/navigation.d.ts +9 -9
  330. package/dist/navigation.mjs +7 -6
  331. package/dist/{nitro-DD4QCA66.mjs → nitro-55YOZWRA.mjs} +11 -11
  332. package/dist/{nitro-VRDX2H4M.cjs → nitro-EEX2J3KB.cjs} +13 -13
  333. package/dist/{plugin-53SY5YBS.mjs → plugin-SAS22JL7.mjs} +4 -3
  334. package/dist/{plugin-HZIBL3DW.cjs → plugin-WIU4GDD4.cjs} +5 -4
  335. package/dist/plugin.cjs +61 -59
  336. package/dist/plugin.d.mts +8 -8
  337. package/dist/plugin.d.ts +8 -8
  338. package/dist/plugin.mjs +60 -58
  339. package/dist/{port-UFUZL6RI.mjs → port-CLL4BC4O.mjs} +1 -1
  340. package/dist/{port-VTLHPZOI.cjs → port-HASZTQGY.cjs} +9 -9
  341. package/dist/{production-runtime.d-Bzns3NW9.d.ts → production-runtime.d-Dou_Htas.d.ts} +1 -1
  342. package/dist/{production-runtime.d-DiFa5vHW.d.mts → production-runtime.d-VwsBzIee.d.mts} +1 -1
  343. package/dist/query/client.cjs +9 -7
  344. package/dist/query/client.mjs +5 -3
  345. package/dist/{render-plan.d-CL_Ikfg_.d.ts → render-plan.d-D8UakAIk.d.ts} +1 -1
  346. package/dist/{render-plan.d-CcF0MeCf.d.mts → render-plan.d-LKymStDJ.d.mts} +1 -1
  347. package/dist/renderer/none/server.cjs +35 -0
  348. package/dist/renderer/none/server.d.mts +21 -0
  349. package/dist/renderer/none/server.d.ts +21 -0
  350. package/dist/renderer/none/server.mjs +35 -0
  351. package/dist/renderer/react/server.cjs +2 -2
  352. package/dist/renderer/react/server.mjs +3 -3
  353. package/dist/renderer-client.cjs +8 -6
  354. package/dist/renderer-client.d.mts +9 -9
  355. package/dist/renderer-client.d.ts +9 -9
  356. package/dist/renderer-client.mjs +5 -3
  357. package/dist/renderer.cjs +6 -2
  358. package/dist/renderer.d.mts +20 -2
  359. package/dist/renderer.d.ts +20 -2
  360. package/dist/renderer.mjs +5 -1
  361. package/dist/request.cjs +2 -2
  362. package/dist/{request.d-B1RnTLri.d.ts → request.d-B928QjWy.d.ts} +1 -1
  363. package/dist/{request.d-DarDOCk9.d.mts → request.d-KG-4d2eG.d.mts} +1 -1
  364. package/dist/request.d.mts +7 -7
  365. package/dist/request.d.ts +7 -7
  366. package/dist/request.mjs +1 -1
  367. package/dist/{route-rendering.d-BTUYCIj4.d.ts → route-rendering.d-DoEe_w9t.d.ts} +1 -1
  368. package/dist/{route-rendering.d-D_2Ual0-.d.mts → route-rendering.d-NIHQeb4m.d.mts} +1 -1
  369. package/dist/{route.d-BaVH3V0w.d.mts → route.d-DrXkpvcg.d.mts} +1 -1
  370. package/dist/{route.d-DBTEqifW.d.ts → route.d-hs-_cyHn.d.ts} +1 -1
  371. package/dist/{router.d-Cuv1jntg.d.mts → router.d-B8PkJSGp.d.mts} +1 -1
  372. package/dist/{router.d-CMANF6da.d.ts → router.d-DYnRHQwz.d.ts} +1 -1
  373. package/dist/routes.cjs +3 -3
  374. package/dist/{routes.d-c2HKfrfL.d.mts → routes.d-DgZ_jgGG.d.mts} +1 -1
  375. package/dist/{routes.d-B6yFe6jm.d.ts → routes.d-uUBZyWoK.d.ts} +1 -1
  376. package/dist/routes.d.mts +6 -6
  377. package/dist/routes.d.ts +6 -6
  378. package/dist/routes.mjs +2 -2
  379. package/dist/{rsc-pipeline-T3PWURLJ.mjs → rsc-pipeline-4OJ5ZQNZ.mjs} +26 -25
  380. package/dist/{rsc-pipeline-V4ANLRAA.cjs → rsc-pipeline-7K5H2RPH.cjs} +27 -26
  381. package/dist/{runtime-LRIQ3XH7.mjs → runtime-U7O3HZOZ.mjs} +62 -36
  382. package/dist/{runtime-5AROV2C3.cjs → runtime-X52Q7JFR.cjs} +72 -46
  383. package/dist/{runtime.d-wvh4ngU0.d.mts → runtime.d-BxQIzwfy.d.mts} +11 -3
  384. package/dist/{runtime.d-C3RQUj6_.d.ts → runtime.d-DP7mEkEF.d.ts} +11 -3
  385. package/dist/{schema-dev-notice-JMXEQWIQ.mjs → schema-dev-notice-C2JINRZI.mjs} +3 -2
  386. package/dist/{schema-dev-notice-PLBFDTOF.cjs → schema-dev-notice-X7GG7QVB.cjs} +5 -4
  387. package/dist/schema.cjs +6 -2
  388. package/dist/schema.d-Dny9pnrm.d.mts +298 -0
  389. package/dist/schema.d-Dny9pnrm.d.ts +298 -0
  390. package/dist/schema.d.mts +1 -115
  391. package/dist/schema.d.ts +1 -115
  392. package/dist/schema.mjs +5 -1
  393. package/dist/server-fn-client.d.mts +2 -2
  394. package/dist/server-fn-client.d.ts +2 -2
  395. package/dist/server-fn.cjs +5 -5
  396. package/dist/server-fn.mjs +4 -4
  397. package/dist/server-plugins.cjs +7 -7
  398. package/dist/server-plugins.d.mts +16 -10
  399. package/dist/server-plugins.d.ts +16 -10
  400. package/dist/server-plugins.mjs +8 -8
  401. package/dist/server-query.cjs +6 -6
  402. package/dist/server-query.mjs +5 -5
  403. package/dist/server.cjs +160 -120
  404. package/dist/server.d.mts +20 -14
  405. package/dist/server.d.ts +20 -14
  406. package/dist/server.mjs +138 -98
  407. package/dist/{spa-router.d-WU_qS5gJ.d.mts → spa-router.d-BgHPVMhz.d.mts} +15 -5
  408. package/dist/{spa-router.d-m8H_Kl_B.d.ts → spa-router.d-DsFDHTsv.d.ts} +15 -5
  409. package/dist/testing.cjs +17 -17
  410. package/dist/testing.d.mts +6 -6
  411. package/dist/testing.d.ts +6 -6
  412. package/dist/testing.mjs +13 -13
  413. package/dist/theme/server.cjs +3 -3
  414. package/dist/theme/server.mjs +2 -2
  415. package/dist/{utils.d-W9IiEqmW.d.mts → utils.d-BKyKDBR1.d.mts} +1 -1
  416. package/dist/{utils.d-C9dQD5Zg.d.ts → utils.d-zxAVcf_V.d.ts} +1 -1
  417. package/dist/version.cjs +2 -2
  418. package/dist/version.mjs +1 -1
  419. package/dist/vite.cjs +63 -61
  420. package/dist/vite.d.mts +32 -12
  421. package/dist/vite.d.ts +32 -12
  422. package/dist/vite.mjs +62 -60
  423. package/dist/workflows.cjs +4 -4
  424. package/dist/workflows.mjs +3 -3
  425. package/package.json +31 -1
  426. package/dist/analyzer-GHWK46LX.cjs +0 -16
  427. package/dist/chunk-5YPBFMBN.cjs +0 -19
  428. package/dist/chunk-OM7WILES.mjs +0 -100
  429. package/dist/chunk-Q5B4LNON.mjs +0 -19
  430. package/dist/chunk-QPJ4MZTO.mjs +0 -60
  431. package/dist/chunk-R53QDV6T.cjs +0 -100
  432. package/dist/chunk-UYTAP4FQ.cjs +0 -60
  433. package/dist/manager-2LUKNX2N.cjs +0 -14
  434. /package/dist/{chunk-QGOZLGVP.mjs → chunk-I6FIAWNT.mjs} +0 -0
  435. /package/dist/{chunk-XPIPMWY3.cjs → chunk-K5NI5YQR.cjs} +0 -0
  436. /package/dist/{chunk-NWUHS6GV.cjs → chunk-QEJWNXRI.cjs} +0 -0
  437. /package/dist/{chunk-FSXSQQTV.mjs → chunk-TXE4SAMV.mjs} +0 -0
  438. /package/dist/{chunk-ZXK2EYQW.cjs → chunk-UUQNJDGH.cjs} +0 -0
  439. /package/dist/{chunk-46P5KNTE.mjs → chunk-VZBAW44S.mjs} +0 -0
@@ -14,6 +14,9 @@ import {
14
14
  import {
15
15
  createClientCancellation
16
16
  } from "./chunk-H227LYHT.mjs";
17
+ import {
18
+ readFarmPageDataRedirect
19
+ } from "./chunk-SD6JGJOM.mjs";
17
20
  import {
18
21
  FARM_METADATA_ATTRIBUTE,
19
22
  renderMetadataHead,
@@ -26,10 +29,10 @@ import {
26
29
  createFarmDeploymentMismatchError,
27
30
  createFarmDeploymentRequestHeaders,
28
31
  isFarmDeploymentMismatchResponse
29
- } from "./chunk-UAQD67HM.mjs";
32
+ } from "./chunk-F7JKVHU2.mjs";
30
33
  import {
31
34
  readDeferredDataResponse
32
- } from "./chunk-K5EW7GUU.mjs";
35
+ } from "./chunk-7BIW7VCW.mjs";
33
36
 
34
37
  // src/client/metadata-reconciler.ts
35
38
  var MANAGED_ATTRIBUTE = FARM_METADATA_ATTRIBUTE;
@@ -92,6 +95,14 @@ function applyFarmMetadataToDocument(metadata, pathname) {
92
95
 
93
96
  // src/client/spa-router.ts
94
97
  var MAX_CONCURRENT_VIEWPORT_PREFETCHES = 4;
98
+ var MAX_PAGE_DATA_REDIRECTS = 20;
99
+ var FarmPageDataRedirectSignal = class extends Error {
100
+ constructor(redirect) {
101
+ super(`Page data redirected to ${redirect.location}`);
102
+ this.redirect = redirect;
103
+ this.name = "FarmPageDataRedirect";
104
+ }
105
+ };
95
106
  var FARM_PAGE_STATE_KEY = "__farmPageState";
96
107
  var FARM_INTERCEPT_FROM_KEY = "__farmInterceptFrom";
97
108
  var FARM_HISTORY_INDEX_KEY = "__farmHistoryIndex";
@@ -217,7 +228,10 @@ var SPARouter = class {
217
228
  /**
218
229
  * Navigate to a new URL
219
230
  */
220
- async navigate(href, options = {}) {
231
+ navigate(href, options = {}) {
232
+ return this.runNavigation(href, options, 0);
233
+ }
234
+ async runNavigation(href, options, redirectCount) {
221
235
  const {
222
236
  replace = false,
223
237
  scroll = true,
@@ -255,15 +269,17 @@ var SPARouter = class {
255
269
  }
256
270
  const from = window.location.pathname + window.location.search;
257
271
  const action = replace ? "replace" : "push";
258
- if (await this.shouldBlockNavigation({ from, to: fullPath, action })) {
259
- return;
260
- }
261
- if (!(refresh && fullPath === from) && await runFarmNavigationDelegates({ url: url.href, from, to: fullPath, action })) {
262
- this.cancelActiveNavigation();
263
- return;
264
- }
265
- if (this.options.scrollRestoration) {
266
- this.saveScrollPosition(window.location.pathname + window.location.search);
272
+ if (redirectCount === 0) {
273
+ if (await this.shouldBlockNavigation({ from, to: fullPath, action })) {
274
+ return;
275
+ }
276
+ if (!(refresh && fullPath === from) && await runFarmNavigationDelegates({ url: url.href, from, to: fullPath, action })) {
277
+ this.cancelActiveNavigation();
278
+ return;
279
+ }
280
+ if (this.options.scrollRestoration) {
281
+ this.saveScrollPosition(window.location.pathname + window.location.search);
282
+ }
267
283
  }
268
284
  const navigation = this.startNavigation({
269
285
  from,
@@ -278,10 +294,14 @@ var SPARouter = class {
278
294
  action: replace ? "replace" : "push"
279
295
  });
280
296
  if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
281
- const pageData = await this.options.fetchNavigationDocument?.(fullPath, {
282
- signal: navigation.controller.signal,
283
- refresh
284
- }) ?? await this.fetchPageData(fullPath, true, from, refresh, navigation.controller.signal);
297
+ const pageData = await this.fetchPageData(
298
+ fullPath,
299
+ true,
300
+ from,
301
+ refresh,
302
+ navigation.controller.signal,
303
+ true
304
+ );
285
305
  if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
286
306
  if (clientNavigation) {
287
307
  await this.clientPlugins?.markNavigationLoaded(clientNavigation, pageData);
@@ -308,6 +328,16 @@ var SPARouter = class {
308
328
  this.finishNavigation(navigation);
309
329
  } catch (error) {
310
330
  if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
331
+ if (error instanceof FarmPageDataRedirectSignal) {
332
+ await this.followPageDataRedirect(
333
+ error.redirect,
334
+ url,
335
+ options,
336
+ redirectCount,
337
+ clientNavigation
338
+ );
339
+ return;
340
+ }
311
341
  if (clientNavigation) {
312
342
  await this.clientPlugins?.failNavigation(clientNavigation, error);
313
343
  }
@@ -316,6 +346,29 @@ var SPARouter = class {
316
346
  window.location.href = href;
317
347
  }
318
348
  }
349
+ /**
350
+ * Continue a navigation whose page data redirected, as a document load
351
+ * follows a server redirect: the target takes the history entry the
352
+ * redirecting URL would have had, inherits its fragment when the target has
353
+ * none, and leaves the app when it is cross-origin.
354
+ */
355
+ followPageDataRedirect(redirect, from, options, redirectCount, clientNavigation) {
356
+ if (clientNavigation) this.clientPlugins?.cancelNavigation?.(clientNavigation, "superseded");
357
+ const target = resolvePageDataRedirectTarget(redirect.location, from);
358
+ const replace = options.replace === true || target !== null && target.pathname + target.search === window.location.pathname + window.location.search;
359
+ if (!target || redirectCount >= MAX_PAGE_DATA_REDIRECTS) {
360
+ this.cancelActiveNavigation();
361
+ const documentURL = (target ?? from).href;
362
+ if (replace) window.location.replace(documentURL);
363
+ else window.location.assign(documentURL);
364
+ return Promise.resolve();
365
+ }
366
+ return this.runNavigation(
367
+ target.href,
368
+ { ...options, replace, refresh: true },
369
+ redirectCount + 1
370
+ );
371
+ }
319
372
  /**
320
373
  * Re-render the active route from the server while preserving the document,
321
374
  * shared layouts, client runtime, and browser history entry.
@@ -343,9 +396,11 @@ var SPARouter = class {
343
396
  if (this.isCached(fullPath, interceptFrom)) return;
344
397
  this.prefetchingUrls.add(fullPath);
345
398
  try {
346
- await this.fetchPageData(fullPath, false, interceptFrom);
399
+ await this.fetchPageData(fullPath, false, interceptFrom, false, void 0, true);
347
400
  } catch (error) {
348
- console.warn("[Farm.js] Prefetch failed:", href, error);
401
+ if (!(error instanceof FarmPageDataRedirectSignal)) {
402
+ console.warn("[Farm.js] Prefetch failed:", href, error);
403
+ }
349
404
  } finally {
350
405
  this.prefetchingUrls.delete(fullPath);
351
406
  }
@@ -561,7 +616,7 @@ var SPARouter = class {
561
616
  /**
562
617
  * Fetch page data from cache or server
563
618
  */
564
- async fetchPageData(path, recover = true, interceptFrom, fresh = false, signal) {
619
+ async fetchPageData(path, recover = true, interceptFrom, fresh = false, signal, readDocument = false) {
565
620
  const cacheKey = getPageDataCacheKey(path, interceptFrom);
566
621
  const cached = fresh ? void 0 : this.cache.get(cacheKey);
567
622
  if (cached && Date.now() - cached.timestamp < this.options.cacheMaxAge) {
@@ -603,6 +658,16 @@ var SPARouter = class {
603
658
  }
604
659
  };
605
660
  try {
661
+ const documentData = readDocument && this.options.fetchNavigationDocument ? await this.options.fetchNavigationDocument(path, {
662
+ signal,
663
+ refresh: fresh,
664
+ prefetch: !recover
665
+ }) : null;
666
+ if (documentData) {
667
+ if (!recover) cacheData(documentData);
668
+ prefetch2?.resolve(documentData);
669
+ return documentData;
670
+ }
606
671
  return await this.requestPageData(
607
672
  path,
608
673
  recover,
@@ -642,6 +707,8 @@ var SPARouter = class {
642
707
  }
643
708
  throw error;
644
709
  }
710
+ const redirect = await readFarmPageDataRedirect(response);
711
+ if (redirect) throw new FarmPageDataRedirectSignal(redirect);
645
712
  if (!response.ok) {
646
713
  throw new Error(`Failed to fetch page data: ${response.status}`);
647
714
  }
@@ -781,6 +848,16 @@ var SPARouter = class {
781
848
  this.finishNavigation(navigation);
782
849
  } catch (error) {
783
850
  if (!this.isCurrentNavigation(navigation, clientNavigation)) return;
851
+ if (error instanceof FarmPageDataRedirectSignal) {
852
+ await this.followPageDataRedirect(
853
+ error.redirect,
854
+ new URL(window.location.href),
855
+ { replace: true },
856
+ 0,
857
+ clientNavigation
858
+ );
859
+ return;
860
+ }
784
861
  if (clientNavigation) {
785
862
  await this.clientPlugins?.failNavigation(clientNavigation, error);
786
863
  }
@@ -1019,6 +1096,16 @@ function createHistoryState(path, pageState, currentState, interceptFrom) {
1019
1096
  }
1020
1097
  return nextState;
1021
1098
  }
1099
+ function resolvePageDataRedirectTarget(location, from) {
1100
+ let target;
1101
+ try {
1102
+ target = new URL(location, from);
1103
+ } catch {
1104
+ return null;
1105
+ }
1106
+ if (!target.hash && from.hash) target.hash = from.hash;
1107
+ return target;
1108
+ }
1022
1109
  function getPageDataCacheKey(path, interceptFrom) {
1023
1110
  return interceptFrom ? `${path}
1024
1111
  intercept:${interceptFrom}` : path;
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkLQNW3ABPcjs = require('./chunk-LQNW3ABP.cjs');
3
+ var _chunkVX2HZGC7cjs = require('./chunk-VX2HZGC7.cjs');
4
4
 
5
5
 
6
6
  var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
@@ -394,7 +394,7 @@ function farmMiddlewarePlugin(options = {}) {
394
394
  mode: server.config.mode === "production" ? "production" : "development",
395
395
  basePath: _nullishCoalesce(options.basePath, () => ( "/"))
396
396
  });
397
- manager = new (0, _chunkLQNW3ABPcjs.MiddlewareManager)(
397
+ manager = new (0, _chunkVX2HZGC7cjs.MiddlewareManager)(
398
398
  getMiddlewareAppDirectory(server.config.root, srcDir),
399
399
  server,
400
400
  options.middleware,
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// package.json
2
- var version = "0.1.65";
2
+ var version = "0.1.67";
3
3
 
4
4
  // src/version.ts
5
5
  var FARM_VERSION = version;
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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 _chunkZIHWAN55cjs = require('./chunk-ZIHWAN55.cjs');
4
+ var _chunkRE5E2G5Scjs = require('./chunk-RE5E2G5S.cjs');
5
5
 
6
6
 
7
7
  var _chunkQMNWKQL4cjs = require('./chunk-QMNWKQL4.cjs');
@@ -37,7 +37,7 @@ var FARM_RSC_IGNORED_KEYS = [
37
37
  "observability"
38
38
  ];
39
39
  function farmConfigUsesServerComponents(config) {
40
- return _chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'optionalAccess', _ => _.experimental, 'optionalAccess', _2 => _2.serverComponents])) === "rsc";
40
+ return _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, _optionalChain([config, 'optionalAccess', _ => _.experimental, 'optionalAccess', _2 => _2.serverComponents])) === "rsc";
41
41
  }
42
42
  function findFarmAppPackageDir(root, packageName) {
43
43
  for (let dir = _path2.default.resolve(root); ; dir = _path2.default.dirname(dir)) {
@@ -57,9 +57,9 @@ function isSet(value, key) {
57
57
  }
58
58
  function inspectFarmServerComponents(config, root) {
59
59
  const value = _optionalChain([config, 'optionalAccess', _4 => _4.experimental, 'optionalAccess', _5 => _5.serverComponents]);
60
- const mode = _chunkZIHWAN55cjs.resolveFarmServerComponentsMode.call(void 0, value);
60
+ const mode = _chunkRE5E2G5Scjs.resolveFarmServerComponentsMode.call(void 0, value);
61
61
  const enabled = mode === "rsc";
62
- const explicit = enabled && _chunkZIHWAN55cjs.isExplicitFarmServerComponentsMode.call(void 0, value);
62
+ const explicit = enabled && _chunkRE5E2G5Scjs.isExplicitFarmServerComponentsMode.call(void 0, value);
63
63
  const missingPackages = enabled ? FARM_RSC_PACKAGES.filter((name) => !findFarmAppPackageDir(root, name)) : [];
64
64
  return {
65
65
  mode,
@@ -113,14 +113,25 @@ function farmAppUsesRscPipeline(config, root) {
113
113
  throw new Error(`[Farm.js] ${formatFarmRscBlockingMessage(status.blockingKeys)}`);
114
114
  }
115
115
  if (status.ignoredKeys.length > 0) {
116
- _chunkQMNWKQL4cjs.logger.warn(
117
- `[Farm.js] experimental.serverComponents runs on the RSC pipeline, which does not run ${formatKeys(
118
- status.ignoredKeys
119
- )} yet. ${status.ignoredKeys.length === 1 ? "It is" : "They are"} ignored.`
120
- );
116
+ _chunkQMNWKQL4cjs.logger.warn(`[Farm.js] ${formatFarmRscIgnoredMessage(status.ignoredKeys)}`);
121
117
  }
122
118
  return true;
123
119
  }
120
+ function formatFarmRscIgnoredMessage(ignoredKeys) {
121
+ const others = ignoredKeys.filter((key) => key !== "plugins");
122
+ const clauses = [];
123
+ if (others.length > 0) {
124
+ clauses.push(
125
+ `does not run ${formatKeys(others)} yet. ${others.length === 1 ? "It is" : "They are"} ignored.`
126
+ );
127
+ }
128
+ if (others.length < ignoredKeys.length) {
129
+ clauses.push(
130
+ "runs only the browser `client` hooks of `plugins` and ignores their other hooks."
131
+ );
132
+ }
133
+ return `experimental.serverComponents runs on the RSC pipeline, which ${clauses.join(" It also ")}`;
134
+ }
124
135
 
125
136
 
126
137
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readAliases,
3
3
  resolveFile
4
- } from "./chunk-ZX2JHEWW.mjs";
4
+ } from "./chunk-CO3YMZFD.mjs";
5
5
  import {
6
6
  transformFarmServerFns
7
7
  } from "./chunk-GNZIAJGB.mjs";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  FARM_DEFAULT_MCP_PATH,
3
3
  FARM_DEFAULT_MCP_TOOLS
4
- } from "./chunk-MESQF2JC.mjs";
4
+ } from "./chunk-K6SXMVXO.mjs";
5
5
  import {
6
6
  normalizeFarmProductionSiteOrigin
7
- } from "./chunk-Q75QPLBA.mjs";
7
+ } from "./chunk-V5MQMQ2P.mjs";
8
8
  import {
9
9
  resolveFarmAppManifestConfig
10
10
  } from "./chunk-SQ5O7I3L.mjs";
11
11
  import {
12
12
  emitFarmAgentRead,
13
13
  getFarmMarkdownMirrorPath
14
- } from "./chunk-K7OZAVOI.mjs";
14
+ } from "./chunk-IFR74W6S.mjs";
15
15
  import {
16
16
  readFarmEnvironmentValue
17
17
  } from "./chunk-WXFY5JIY.mjs";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-QDWMCFTH.mjs";
30
30
  import {
31
31
  FARM_VERSION
32
- } from "./chunk-72JSHQQQ.mjs";
32
+ } from "./chunk-H37MDCPR.mjs";
33
33
  import {
34
34
  applyFarmBasePath
35
35
  } from "./chunk-SF3JB56B.mjs";
@@ -62,6 +62,9 @@ function emitFarmAgentRead(request, surface, status, view) {
62
62
  // src/markdown-view.ts
63
63
  var FENCE = /^\s{0,3}(`{3,}|~{3,})/;
64
64
  var ATX_HEADING = /^\s{0,3}(#{1,6})[ \t]+(.+?)[ \t]*#*[ \t]*$/;
65
+ function normalizeMarkdownLineEndings(markdown) {
66
+ return markdown.includes("\r") ? markdown.replace(/\r\n?/g, "\n") : markdown;
67
+ }
65
68
  function parseMarkdownHeadingsFromLines(lines) {
66
69
  const headings = [];
67
70
  const used = /* @__PURE__ */ new Map();
@@ -124,6 +127,7 @@ function selectFarmMarkdownView(markdown, searchParams, markdownPath) {
124
127
  const budget = searchParams.get("max_tokens");
125
128
  if (!wantsOutline && sectionId === null && budget === null)
126
129
  return { status: 200, body: markdown };
130
+ markdown = normalizeMarkdownLineEndings(markdown);
127
131
  const viewUrl = (view) => {
128
132
  const query = new URLSearchParams(searchParams);
129
133
  for (const name of FARM_MARKDOWN_VIEW_PARAMS) query.delete(name);
@@ -193,9 +197,9 @@ function markdownCodeSpan(value) {
193
197
  const pad = text.startsWith("`") || text.endsWith("`") ? " " : "";
194
198
  return `${fence}${pad}${text}${pad}${fence}`;
195
199
  }
196
- function selectFarmPageActionsView(markdownPath, actions, headers) {
200
+ function selectFarmPageActionsView(markdownPath, pagePath, actions, headers) {
197
201
  headers.set("Content-Type", "application/json; charset=utf-8");
198
- const page = markdownPath === "/index.md" ? "/" : markdownPath.replace(/\.md$/, "");
202
+ const page = pagePath ?? (markdownPath === "/index.md" ? "/" : markdownPath.replace(/\.md$/, ""));
199
203
  return {
200
204
  status: 200,
201
205
  body: `${JSON.stringify({ page, markdown: markdownPath, actions }, null, 2)}
@@ -328,7 +332,12 @@ function ifNoneMatchIncludes(header, etag) {
328
332
  }
329
333
  function createFarmMarkdownViewResponse(options) {
330
334
  const url = options.requestUrl ?? new URL(options.request.url);
331
- const view = options.status >= 400 ? { status: options.status, body: options.markdown } : url.searchParams.has("actions") ? selectFarmPageActionsView(options.markdownPath, options.actions ?? [], options.headers) : selectFarmMarkdownView(options.markdown, url.searchParams, options.markdownPath);
335
+ const view = options.status >= 400 ? { status: options.status, body: options.markdown } : url.searchParams.has("actions") ? selectFarmPageActionsView(
336
+ options.markdownPath,
337
+ options.pagePath,
338
+ options.actions ?? [],
339
+ options.headers
340
+ ) : selectFarmMarkdownView(options.markdown, url.searchParams, options.markdownPath);
332
341
  let status = view.status === 200 ? options.status : view.status;
333
342
  const ifMatch = options.request.headers.get("if-match");
334
343
  const preconditionFailed = status >= 200 && status < 300 && ifMatch !== null && ifMatch.trim() !== "*";
@@ -406,16 +415,21 @@ function resolveMarkdownMirrorTarget(config, pathname, options = {}) {
406
415
  if (!config?.enabled || !hasMarkdownExtension && !requestAcceptsMarkdown(options.accept)) {
407
416
  return null;
408
417
  }
409
- const targetPathname = normalizeMarkdownRoute(
410
- hasMarkdownExtension ? pathname.slice(0, -".md".length) || "/" : pathname
418
+ const targetPathname = _resolveFarmMarkdownIndexAlias(
419
+ normalizeMarkdownRoute(
420
+ hasMarkdownExtension ? pathname.slice(0, -".md".length) || "/" : pathname
421
+ ),
422
+ options.routePathname
411
423
  );
412
- const route = findExposedMarkdownRoute(config, targetPathname);
424
+ const routePathname = options.routePathname?.(targetPathname) ?? targetPathname;
425
+ const route = findExposedMarkdownRoute(config, routePathname);
413
426
  if (!route && config.expose !== true) {
414
427
  return null;
415
428
  }
416
429
  return {
417
430
  pathname: targetPathname,
418
- route
431
+ route,
432
+ markdownPath: _getFarmMarkdownPath(targetPathname, routePathname)
419
433
  };
420
434
  }
421
435
  async function createMarkdownMirrorResponse(options) {
@@ -425,7 +439,8 @@ async function createMarkdownMirrorResponse(options) {
425
439
  const requestUrl = options.requestUrl?.href === options.request.url ? options.requestUrl : new URL(options.request.url);
426
440
  const hasMarkdownExtension = requestUrl.pathname.toLowerCase().endsWith(".md");
427
441
  const target = resolveMarkdownMirrorTarget(options.config, requestUrl.pathname, {
428
- accept: options.request.headers.get("accept")
442
+ accept: options.request.headers.get("accept"),
443
+ routePathname: options.routePathname
429
444
  });
430
445
  if (!target) {
431
446
  return null;
@@ -474,7 +489,7 @@ async function createMarkdownMirrorResponse(options) {
474
489
  return pageResponse;
475
490
  }
476
491
  const html = await pageResponse.text();
477
- const markdownPath = target.pathname === "/" ? "/index.md" : `${target.pathname}.md`;
492
+ const markdownPath = target.markdownPath;
478
493
  const region = pageResponse.status < 400 && /<form\b/i.test(html) ? readHtmlContentRegion(html) : void 0;
479
494
  const actions = region === void 0 ? [] : extractPageActionsFromRegion(region, pageUrl);
480
495
  for (const form of actions) {
@@ -531,6 +546,7 @@ async function createMarkdownMirrorResponse(options) {
531
546
  status: pageResponse.status,
532
547
  headers: headersOut,
533
548
  markdownPath,
549
+ pagePath: target.pathname,
534
550
  actions
535
551
  });
536
552
  }
@@ -586,7 +602,9 @@ function applyMarkdownNegotiationHeaders(response, options) {
586
602
  if (!isHtmlResponse(response)) {
587
603
  return response;
588
604
  }
589
- const alternatePath = getFarmMarkdownAlternatePath(options.config, options.pathname);
605
+ const alternatePath = getFarmMarkdownAlternatePath(options.config, options.pathname, {
606
+ routePathname: options.routePathname
607
+ });
590
608
  if (!alternatePath) {
591
609
  return response;
592
610
  }
@@ -777,6 +795,16 @@ function normalizeMarkdownRouteInput(input) {
777
795
  route: normalizeMarkdownRoute(input.route)
778
796
  };
779
797
  }
798
+ function _resolveFarmMarkdownIndexAlias(pathname, routePathname) {
799
+ if (pathname === "/index") return "/";
800
+ if (!routePathname || !pathname.endsWith("/index")) return pathname;
801
+ const prefix = pathname.slice(0, -"/index".length);
802
+ return routePathname(prefix) === "/" ? prefix : pathname;
803
+ }
804
+ function _getFarmMarkdownPath(pathname, routePathname = pathname) {
805
+ if (routePathname !== "/") return `${pathname}.md`;
806
+ return pathname === "/" ? "/index.md" : `${pathname.replace(/\/+$/, "")}/index.md`;
807
+ }
780
808
  function normalizeMarkdownRoute(route) {
781
809
  const withoutMarkdownExtension = route.toLowerCase().endsWith(".md") ? route.slice(0, -3) : route;
782
810
  const withSlash = withoutMarkdownExtension.startsWith("/") ? withoutMarkdownExtension : `/${withoutMarkdownExtension}`;
@@ -819,9 +847,12 @@ function getMarkdownAlternatePath(pathname) {
819
847
  function getFarmMarkdownMirrorPath(pathname) {
820
848
  return getMarkdownAlternatePath(pathname);
821
849
  }
822
- function getFarmMarkdownAlternatePath(config, pathname) {
823
- const target = resolveMarkdownMirrorTarget(config, pathname, { accept: "text/markdown" });
824
- return target ? getMarkdownAlternatePath(target.pathname) : null;
850
+ function getFarmMarkdownAlternatePath(config, pathname, options = {}) {
851
+ const target = resolveMarkdownMirrorTarget(config, pathname, {
852
+ accept: "text/markdown",
853
+ routePathname: options.routePathname
854
+ });
855
+ return target ? target.markdownPath : null;
825
856
  }
826
857
  function isFarmMarkdownMirrorExposed(config, pathname) {
827
858
  if (!config?.enabled) return false;
@@ -1349,6 +1380,8 @@ export {
1349
1380
  createMarkdownMirrorResponse,
1350
1381
  applyMarkdownNegotiationHeaders,
1351
1382
  htmlToMarkdown,
1383
+ _resolveFarmMarkdownIndexAlias,
1384
+ _getFarmMarkdownPath,
1352
1385
  farmAcceptQuality,
1353
1386
  requestAcceptsMarkdown,
1354
1387
  getFarmMarkdownMirrorPath,
@@ -10,7 +10,7 @@ var _chunkX333W5KVcjs = require('./chunk-X333W5KV.cjs');
10
10
  var _chunkE7QOEV5Zcjs = require('./chunk-E7QOEV5Z.cjs');
11
11
 
12
12
 
13
- var _chunkOYZXVBZPcjs = require('./chunk-OYZXVBZP.cjs');
13
+ var _chunkIUKBPBM7cjs = require('./chunk-IUKBPBM7.cjs');
14
14
 
15
15
 
16
16
 
@@ -297,7 +297,7 @@ function parseProgrammaticRoutePath2(routePath, type = "page") {
297
297
  function createRouteModuleFromProgrammaticPage(route, rendererRuntime) {
298
298
  const mod = {
299
299
  default: createProgrammaticPageComponent(route, rendererRuntime),
300
- ..._chunkOYZXVBZPcjs.normalizeFarmRouteRuntimeConfig.call(void 0, route, `Route "${route.path}"`)
300
+ ..._chunkIUKBPBM7cjs.normalizeFarmRouteRuntimeConfig.call(void 0, route, `Route "${route.path}"`)
301
301
  };
302
302
  if (route.params || route.search || hasProgrammaticServerProps(route)) {
303
303
  mod.__farmRouteSchemas = {
@@ -345,7 +345,7 @@ function createRouteModuleFromProgrammaticPage(route, rendererRuntime) {
345
345
  function createLayoutModuleFromProgrammaticLayout(route) {
346
346
  return {
347
347
  default: route.component,
348
- ..._chunkOYZXVBZPcjs.normalizeFarmRouteRuntimeConfig.call(void 0, route, `Layout "${route.path}"`),
348
+ ..._chunkIUKBPBM7cjs.normalizeFarmRouteRuntimeConfig.call(void 0, route, `Layout "${route.path}"`),
349
349
  metadata: route.metadata,
350
350
  generateMetadata: route.generateMetadata
351
351
  };
@@ -667,7 +667,7 @@ function normalizeProgrammaticRoute(route) {
667
667
  if (route.kind === "api") {
668
668
  return {
669
669
  ...route,
670
- ..._chunkOYZXVBZPcjs.normalizeFarmRouteRuntimeConfig.call(void 0, route, `API route "${route.path}"`),
670
+ ..._chunkIUKBPBM7cjs.normalizeFarmRouteRuntimeConfig.call(void 0, route, `API route "${route.path}"`),
671
671
  path: normalizeRoutePath(route.path),
672
672
  methods: normalizeApiMethods(route.methods)
673
673
  };
@@ -677,7 +677,7 @@ function normalizeProgrammaticRoute(route) {
677
677
  return {
678
678
  ...route,
679
679
  ...routeActions,
680
- ..._chunkOYZXVBZPcjs.normalizeFarmRouteRuntimeConfig.call(void 0,
680
+ ..._chunkIUKBPBM7cjs.normalizeFarmRouteRuntimeConfig.call(void 0,
681
681
  route,
682
682
  `${route.kind === "layout" ? "Layout" : "Route"} "${route.path}"`
683
683
  ),
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useRouter
3
- } from "./chunk-BQWBHWEW.mjs";
3
+ } from "./chunk-JWSI5WO4.mjs";
4
4
  import {
5
5
  getRouter
6
- } from "./chunk-25T5VXOE.mjs";
6
+ } from "./chunk-HFHJJXSV.mjs";
7
7
  import {
8
8
  applyFarmBasePath
9
9
  } from "./chunk-SF3JB56B.mjs";
@@ -130,4 +130,5 @@ function escapeRegExp(value) {
130
130
 
131
131
 
132
132
 
133
- exports.normalizeFarmRouteRuntimeConfig = normalizeFarmRouteRuntimeConfig; exports.mergeFarmRouteRuntimeConfigs = mergeFarmRouteRuntimeConfigs; exports.resolveFarmRouteRuntimeConfig = resolveFarmRouteRuntimeConfig; exports.hasFarmRouteRuntimeControls = hasFarmRouteRuntimeControls; exports.getFarmRouteRuntimeConfig = getFarmRouteRuntimeConfig; exports.createFarmRouteRuntimeKey = createFarmRouteRuntimeKey; exports.resolveFarmRouteRuleRuntimeConfig = resolveFarmRouteRuleRuntimeConfig; exports.farmRouteRuleMatches = farmRouteRuleMatches;
133
+
134
+ exports.normalizeFarmRouteRuntimeConfig = normalizeFarmRouteRuntimeConfig; exports.mergeFarmRouteRuntimeConfigs = mergeFarmRouteRuntimeConfigs; exports.resolveFarmRouteRuntimeConfig = resolveFarmRouteRuntimeConfig; exports.hasFarmRouteRuntimeControls = hasFarmRouteRuntimeControls; exports.getFarmRouteRuntimeConfig = getFarmRouteRuntimeConfig; exports.createFarmRouteRuntimeKey = createFarmRouteRuntimeKey; exports.resolveFarmRouteRuleRuntimeConfig = resolveFarmRouteRuleRuntimeConfig; exports.farmRouteRuleMatches = farmRouteRuleMatches; exports.compareFarmRouteRuleSpecificity = compareFarmRouteRuleSpecificity;
@@ -0,0 +1,22 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/schema-owner.ts
2
+ var FARM_SCHEMA_TABLES = /* @__PURE__ */ Symbol.for("farm.schema-tables");
3
+ function declareSchemaTables(target, declaration) {
4
+ Object.defineProperty(target, FARM_SCHEMA_TABLES, {
5
+ value: declaration,
6
+ enumerable: false,
7
+ configurable: true
8
+ });
9
+ return target;
10
+ }
11
+ function readSchemaTables(candidate) {
12
+ if (!candidate || typeof candidate !== "object" && typeof candidate !== "function") {
13
+ return void 0;
14
+ }
15
+ return candidate[FARM_SCHEMA_TABLES];
16
+ }
17
+
18
+
19
+
20
+
21
+
22
+ exports.FARM_SCHEMA_TABLES = FARM_SCHEMA_TABLES; exports.declareSchemaTables = declareSchemaTables; exports.readSchemaTables = readSchemaTables;
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkUPYIFH2Hcjs = require('./chunk-UPYIFH2H.cjs');
6
+ var _chunkJWLRBDDCcjs = require('./chunk-JWLRBDDC.cjs');
7
7
 
8
8
 
9
9
 
@@ -14,15 +14,15 @@ var _chunkUPYIFH2Hcjs = require('./chunk-UPYIFH2H.cjs');
14
14
  var _chunk5DX3O6TTcjs = require('./chunk-5DX3O6TT.cjs');
15
15
 
16
16
 
17
- var _chunkEVIWKPJVcjs = require('./chunk-EVIWKPJV.cjs');
18
-
19
-
20
17
  var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
21
18
 
22
19
 
23
20
  var _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
24
21
 
25
22
 
23
+ var _chunkEVIWKPJVcjs = require('./chunk-EVIWKPJV.cjs');
24
+
25
+
26
26
  var _chunkA25FXJ7Dcjs = require('./chunk-A25FXJ7D.cjs');
27
27
 
28
28
 
@@ -81,19 +81,19 @@ var WebResponseHeaderMap = class extends Map {
81
81
  var WebCookieJar = class {
82
82
  constructor(request, headers) {
83
83
  this.headers = headers;
84
- this.cookies = _chunkUPYIFH2Hcjs.parseMiddlewareCookieHeader.call(void 0, request.headers.get("cookie"));
84
+ this.cookies = _chunkJWLRBDDCcjs.parseMiddlewareCookieHeader.call(void 0, request.headers.get("cookie"));
85
85
  }
86
86
  get(name) {
87
87
  return this.cookies[name];
88
88
  }
89
89
  set(name, value, options = {}) {
90
90
  this.cookies[name] = value;
91
- const cookieString = _chunkUPYIFH2Hcjs.serializeMiddlewareCookie.call(void 0, name, value, options);
91
+ const cookieString = _chunkJWLRBDDCcjs.serializeMiddlewareCookie.call(void 0, name, value, options);
92
92
  this.headers.appendSetCookie(cookieString);
93
93
  }
94
94
  delete(name, options = {}) {
95
95
  delete this.cookies[name];
96
- this.headers.appendSetCookie(_chunkUPYIFH2Hcjs.serializeMiddlewareCookieDeletion.call(void 0, name, options));
96
+ this.headers.appendSetCookie(_chunkJWLRBDDCcjs.serializeMiddlewareCookieDeletion.call(void 0, name, options));
97
97
  }
98
98
  getAll() {
99
99
  return { ...this.cookies };
@@ -399,7 +399,7 @@ function normalizeConfigMiddleware(config) {
399
399
  function normalizeFileMiddleware(modules = []) {
400
400
  const entries = [];
401
401
  for (const moduleEntry of modules) {
402
- const normalized = _chunkUPYIFH2Hcjs.normalizeMiddlewareModule.call(void 0, moduleEntry.module, moduleEntry.path);
402
+ const normalized = _chunkJWLRBDDCcjs.normalizeMiddlewareModule.call(void 0, moduleEntry.module, moduleEntry.path);
403
403
  if (!normalized) {
404
404
  continue;
405
405
  }