@farm.js/core 0.1.80 → 0.1.82

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 (390) hide show
  1. package/dist/{agent-mcp.d-BPa5n0ld.d.ts → agent-mcp.d-C2Su3x4D.d.ts} +1 -1
  2. package/dist/{agent-mcp.d-DOP95Jxm.d.mts → agent-mcp.d-Yak-LqRd.d.mts} +1 -1
  3. package/dist/agent-runtime.cjs +4 -3
  4. package/dist/agent-runtime.d.mts +2 -1
  5. package/dist/agent-runtime.d.ts +2 -1
  6. package/dist/agent-runtime.mjs +3 -2
  7. package/dist/analyzer-LV23T6QN.cjs +17 -0
  8. package/dist/{analyzer-F7CWE5VA.mjs → analyzer-RPU2KG4J.mjs} +3 -2
  9. package/dist/api/client.cjs +1 -1
  10. package/dist/api/client.mjs +1 -1
  11. package/dist/api/client.native.cjs +1 -1
  12. package/dist/api/client.native.mjs +1 -1
  13. package/dist/api/node.cjs +6 -5
  14. package/dist/api/node.d.mts +4 -3
  15. package/dist/api/node.d.ts +4 -3
  16. package/dist/api/node.mjs +5 -4
  17. package/dist/api/route-manager.cjs +7 -6
  18. package/dist/api/route-manager.d.mts +4 -3
  19. package/dist/api/route-manager.d.ts +4 -3
  20. package/dist/api/route-manager.mjs +6 -5
  21. package/dist/api/runtime.cjs +5 -4
  22. package/dist/api/runtime.d.mts +3 -2
  23. package/dist/api/runtime.d.ts +3 -2
  24. package/dist/api/runtime.mjs +4 -3
  25. package/dist/api.cjs +9 -8
  26. package/dist/api.d.mts +5 -4
  27. package/dist/api.d.ts +5 -4
  28. package/dist/api.mjs +8 -7
  29. package/dist/{app-manifest.d-9UD6BznX.d.mts → app-manifest.d-BcyOFMrg.d.mts} +1 -1
  30. package/dist/{app-manifest.d-CO6Iu0Hx.d.ts → app-manifest.d-DZyXaICz.d.ts} +1 -1
  31. package/dist/app-markdown.cjs +3 -3
  32. package/dist/app-markdown.d.mts +5 -4
  33. package/dist/app-markdown.d.ts +5 -4
  34. package/dist/app-markdown.mjs +2 -2
  35. package/dist/{app.d-DXeRWZK7.d.mts → app.d-C0ePpuaG.d.mts} +30 -4
  36. package/dist/{app.d-DwX1ePhs.d.ts → app.d-CIoXsAbN.d.ts} +30 -4
  37. package/dist/{chunk-Q4TRGTO7.cjs → chunk-26WP75W5.cjs} +32 -16
  38. package/dist/{chunk-7KDCVSTR.mjs → chunk-2PFGA6PB.mjs} +2 -2
  39. package/dist/chunk-2UYYXSUS.mjs +401 -0
  40. package/dist/{chunk-PL7MCYYD.mjs → chunk-3AV4DCXY.mjs} +58 -358
  41. package/dist/{chunk-3GNHJ3RN.cjs → chunk-3BTN3NP7.cjs} +2 -2
  42. package/dist/chunk-3DE6RK7K.cjs +36 -0
  43. package/dist/{chunk-GBW5DU7V.mjs → chunk-47I2MYIR.mjs} +487 -304
  44. package/dist/{chunk-RQBGHHOQ.mjs → chunk-4X7LSGM6.mjs} +1 -1
  45. package/dist/{chunk-QMR2TUVZ.cjs → chunk-52Q4OB4A.cjs} +4 -4
  46. package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
  47. package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
  48. package/dist/chunk-5MMKNW7Q.cjs +54 -0
  49. package/dist/{chunk-AXA2BSX3.cjs → chunk-5MUFW5UU.cjs} +22 -21
  50. package/dist/{chunk-MQOHYV6L.cjs → chunk-5P65LXGU.cjs} +11 -11
  51. package/dist/{chunk-KEU55O2D.mjs → chunk-63ZE6B6M.mjs} +7 -6
  52. package/dist/{chunk-TS3ZHJN5.cjs → chunk-6BPFIYGY.cjs} +3 -3
  53. package/dist/{chunk-NJ4OASLP.mjs → chunk-6QYPP5KC.mjs} +2 -2
  54. package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
  55. package/dist/{chunk-G4SZC2WH.cjs → chunk-AIPZDBP6.cjs} +557 -374
  56. package/dist/{chunk-X4TSMQWF.cjs → chunk-ARORZ3MH.cjs} +548 -397
  57. package/dist/{chunk-K3XKEZR6.mjs → chunk-AUFEM3FB.mjs} +1 -1
  58. package/dist/{chunk-MGKWYPE3.mjs → chunk-AYDVUCXD.mjs} +1 -0
  59. package/dist/{chunk-5OAN7BG5.cjs → chunk-B2PGVHBG.cjs} +4 -4
  60. package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
  61. package/dist/chunk-B7L24VPX.cjs +401 -0
  62. package/dist/{chunk-5VDJEKGK.cjs → chunk-BBVLOEND.cjs} +1 -1
  63. package/dist/{chunk-XF7MJSUS.mjs → chunk-BCQIXH7L.mjs} +1 -1
  64. package/dist/{chunk-67MZTLTF.cjs → chunk-BCTHOQPP.cjs} +37 -9
  65. package/dist/{chunk-GBESKA76.cjs → chunk-BSX5OGSD.cjs} +1 -1
  66. package/dist/{chunk-CNDBLUKI.mjs → chunk-BVJUFVCU.mjs} +1 -1
  67. package/dist/{chunk-QHAISITM.mjs → chunk-C3VCYOU4.mjs} +1 -1
  68. package/dist/chunk-C5QHZ626.cjs +85 -0
  69. package/dist/{chunk-3K2E55BJ.mjs → chunk-CA2HBLXP.mjs} +13 -3
  70. package/dist/{chunk-ANZLZNNX.cjs → chunk-CD5Z7RR5.cjs} +155 -20
  71. package/dist/{chunk-4MIDUSIX.mjs → chunk-CJDBTTLB.mjs} +17 -17
  72. package/dist/{chunk-RLCOWWE5.cjs → chunk-CN2JOTRO.cjs} +7 -7
  73. package/dist/chunk-D2VAANBS.mjs +48 -0
  74. package/dist/{chunk-XZBBKZGW.mjs → chunk-DAXU2NBE.mjs} +128 -41
  75. package/dist/{chunk-4H4ZXUNB.cjs → chunk-DJ3PVHTW.cjs} +3 -3
  76. package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
  77. package/dist/{chunk-ZVSQN7NC.cjs → chunk-DRO3NXA3.cjs} +40 -43
  78. package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
  79. package/dist/{chunk-Q4YEAWUK.mjs → chunk-ECVSRE4Y.mjs} +3 -2
  80. package/dist/{chunk-MDEFTF63.mjs → chunk-EL2Z6YFZ.mjs} +25 -28
  81. package/dist/chunk-EZYKV24V.mjs +385 -0
  82. package/dist/{chunk-TVCFY3KK.cjs → chunk-FB4CWSC2.cjs} +12 -12
  83. package/dist/{chunk-IYFBLWXU.cjs → chunk-FULX5RYX.cjs} +61 -361
  84. package/dist/{chunk-V73Y4UBL.mjs → chunk-GXLNARPO.mjs} +151 -16
  85. package/dist/{chunk-ZPEZXQTM.cjs → chunk-HHQEKLZL.cjs} +2 -2
  86. package/dist/{chunk-HNUBRUFQ.cjs → chunk-HQEYZSF3.cjs} +4 -3
  87. package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
  88. package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
  89. package/dist/{chunk-44G4XHEL.mjs → chunk-I4DR3HCH.mjs} +11 -11
  90. package/dist/chunk-I4WZRG73.mjs +54 -0
  91. package/dist/{chunk-MUZHULW2.mjs → chunk-ICOJ2BC6.mjs} +23 -7
  92. package/dist/{chunk-MNIR7I7B.mjs → chunk-INKVDO42.mjs} +1 -1
  93. package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
  94. package/dist/{chunk-HEDGTXXB.cjs → chunk-JB4BHRFK.cjs} +17 -17
  95. package/dist/{chunk-XKUKWMGX.cjs → chunk-JCYDWJVO.cjs} +3 -3
  96. package/dist/{chunk-CCMP4JD2.cjs → chunk-JK26IMT7.cjs} +1 -1
  97. package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
  98. package/dist/{chunk-SVCUSOEF.mjs → chunk-KR5DF7WK.mjs} +1 -1
  99. package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
  100. package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
  101. package/dist/{chunk-LVGB5PYK.cjs → chunk-LM2ZDNDD.cjs} +28 -28
  102. package/dist/{chunk-COTFX4GT.mjs → chunk-LTOT5KVJ.mjs} +1 -1
  103. package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
  104. package/dist/{chunk-DVHFIETW.cjs → chunk-N2EFMN2K.cjs} +18 -18
  105. package/dist/{chunk-MZ5QGWRW.mjs → chunk-N3VMHPIY.mjs} +2 -2
  106. package/dist/{chunk-KKVRWNDH.mjs → chunk-NAHDG6UX.mjs} +4 -4
  107. package/dist/{chunk-UWOCYINY.cjs → chunk-NEKO3HM2.cjs} +12 -2
  108. package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
  109. package/dist/{chunk-ZDYYZX73.mjs → chunk-NRCKBDYP.mjs} +266 -115
  110. package/dist/{chunk-EG5YBYHO.mjs → chunk-OMB7UGVW.mjs} +1 -1
  111. package/dist/{chunk-JGEN2FIT.mjs → chunk-OP5VI4TP.mjs} +1 -1
  112. package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
  113. package/dist/{chunk-3XTRT3MB.mjs → chunk-PO5MZIWK.mjs} +1 -1
  114. package/dist/{chunk-ASYOWPSR.cjs → chunk-PWDBWXQI.cjs} +2 -1
  115. package/dist/{chunk-WJ2O2MPP.cjs → chunk-Q2VOT3K2.cjs} +494 -407
  116. package/dist/{chunk-7YLDUB4R.cjs → chunk-QCKSYYXK.cjs} +7 -7
  117. package/dist/{chunk-57QAQU4F.mjs → chunk-QRNYSISP.mjs} +1 -1
  118. package/dist/{chunk-3JQBQG7K.mjs → chunk-QSMUMK7Y.mjs} +2 -2
  119. package/dist/{chunk-PRL7FXG4.cjs → chunk-RDNKQ5MK.cjs} +12 -13
  120. package/dist/{chunk-GCRT6GJG.mjs → chunk-RMLR5RMH.mjs} +30 -2
  121. package/dist/{chunk-XY5OZQF6.cjs → chunk-RMPUEH5T.cjs} +2 -2
  122. package/dist/{chunk-7DD5TNPS.cjs → chunk-S7WZUK3B.cjs} +2 -2
  123. package/dist/{chunk-EGHPFXPZ.cjs → chunk-SAPG45RA.cjs} +23 -23
  124. package/dist/{chunk-Z4SMFUZ7.cjs → chunk-U54REWMJ.cjs} +23 -23
  125. package/dist/chunk-U6XYBTUT.mjs +36 -0
  126. package/dist/chunk-UDMBUTJD.mjs +85 -0
  127. package/dist/{chunk-WHEQJN4G.cjs → chunk-UGD53SNO.cjs} +2 -2
  128. package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
  129. package/dist/{chunk-SDICLSQU.cjs → chunk-VMBIKDKW.cjs} +10 -10
  130. package/dist/{chunk-WBPVLCNE.mjs → chunk-VPGEYX5Y.mjs} +4 -4
  131. package/dist/chunk-VS7HLH4S.cjs +385 -0
  132. package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
  133. package/dist/chunk-WMRGIQTA.cjs +48 -0
  134. package/dist/{chunk-52LTENRE.cjs → chunk-WOAXQ5MZ.cjs} +9 -9
  135. package/dist/{chunk-C6HGUTXB.mjs → chunk-XBSIGZ4J.mjs} +2 -3
  136. package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
  137. package/dist/{chunk-2RRTOKRZ.mjs → chunk-YHM4PXJY.mjs} +1 -1
  138. package/dist/{chunk-A5D3UMLJ.mjs → chunk-YSU3WCW6.mjs} +1 -1
  139. package/dist/{chunk-4STJ6LGR.mjs → chunk-Z3RM3VA2.mjs} +1 -1
  140. package/dist/{chunk-YN3YMSKD.mjs → chunk-ZIZRIZLP.mjs} +3 -3
  141. package/dist/{cli-runtime.d-DPNTN-JV.d.mts → cli-runtime.d-Hnvvadz7.d.mts} +5 -5
  142. package/dist/{cli-runtime.d-8BhZy_wr.d.ts → cli-runtime.d-I0MphTbc.d.ts} +5 -5
  143. package/dist/{client-component.d-CkDcob6D.d.ts → client-component.d-5QEvtJsg.d.ts} +1 -1
  144. package/dist/{client-component.d-CMCdyAr8.d.mts → client-component.d-DapRqtSC.d.mts} +1 -1
  145. package/dist/{client-plugins.d-WcMwOZGZ.d.mts → client-plugins.d-C1WM3ieD.d.mts} +7 -13
  146. package/dist/{client-plugins.d-BYIovYqX.d.ts → client-plugins.d-DcmDzcSC.d.ts} +7 -13
  147. package/dist/client-plugins.d.mts +2 -1
  148. package/dist/client-plugins.d.ts +2 -1
  149. package/dist/client.cjs +9 -8
  150. package/dist/client.d.mts +20 -151
  151. package/dist/client.d.ts +20 -151
  152. package/dist/client.mjs +8 -7
  153. package/dist/config.d.mts +2 -1
  154. package/dist/config.d.ts +2 -1
  155. package/dist/cron.cjs +2 -2
  156. package/dist/cron.mjs +1 -1
  157. package/dist/desktop.d.mts +3 -2
  158. package/dist/desktop.d.ts +3 -2
  159. package/dist/{devtools-JJOYTIMS.cjs → devtools-5B7NZE6F.cjs} +15 -14
  160. package/dist/{devtools-F3FDFV26.mjs → devtools-C5GXZZ7E.mjs} +12 -11
  161. package/dist/docs.cjs +14 -13
  162. package/dist/docs.d.mts +4 -3
  163. package/dist/docs.d.ts +4 -3
  164. package/dist/docs.mjs +13 -12
  165. package/dist/environment/vite.cjs +7 -6
  166. package/dist/environment/vite.mjs +6 -5
  167. package/dist/{handler.d-s3IM6pbJ.d.mts → handler.d-B8bPCBzl.d.mts} +1 -1
  168. package/dist/{handler.d-BwdOyc9x.d.ts → handler.d-Cliwo6Nu.d.ts} +1 -1
  169. package/dist/{headers.d-BR-OXrqQ.d.mts → headers.d-CVwSpSGX.d.mts} +1 -1
  170. package/dist/{headers.d-CAW4wPey.d.ts → headers.d-C_btqjV6.d.ts} +1 -1
  171. package/dist/index.cjs +68 -65
  172. package/dist/{index.d-BEVK61zS.d.mts → index.d-DFuMZk9-.d.mts} +1 -1
  173. package/dist/{index.d-ah2c89Wu.d.ts → index.d-hOEbMcLk.d.ts} +1 -1
  174. package/dist/index.d.mts +25 -23
  175. package/dist/index.d.ts +25 -23
  176. package/dist/index.mjs +72 -69
  177. package/dist/instrumentation.cjs +3 -3
  178. package/dist/instrumentation.mjs +2 -2
  179. package/dist/integrations/orm.d.mts +2 -1
  180. package/dist/integrations/orm.d.ts +2 -1
  181. package/dist/integrations.cjs +4 -3
  182. package/dist/integrations.d.mts +2 -1
  183. package/dist/integrations.d.ts +2 -1
  184. package/dist/integrations.mjs +3 -2
  185. package/dist/internal/app-markdown-runtime.cjs +2 -2
  186. package/dist/internal/app-markdown-runtime.d.mts +12 -5
  187. package/dist/internal/app-markdown-runtime.d.ts +12 -5
  188. package/dist/internal/app-markdown-runtime.mjs +1 -1
  189. package/dist/internal/build-runtime.cjs +49 -47
  190. package/dist/internal/build-runtime.d.mts +5 -4
  191. package/dist/internal/build-runtime.d.ts +5 -4
  192. package/dist/internal/build-runtime.mjs +48 -46
  193. package/dist/internal/cli-runtime.cjs +25 -24
  194. package/dist/internal/cli-runtime.d.mts +8 -7
  195. package/dist/internal/cli-runtime.d.ts +8 -7
  196. package/dist/internal/cli-runtime.mjs +26 -25
  197. package/dist/internal/client-error-overlay.cjs +4 -4
  198. package/dist/internal/client-error-overlay.mjs +1 -1
  199. package/dist/internal/client-runtime.cjs +76 -15
  200. package/dist/internal/client-runtime.d.mts +18 -7
  201. package/dist/internal/client-runtime.d.ts +18 -7
  202. package/dist/internal/client-runtime.mjs +67 -6
  203. package/dist/internal/compression-runtime.d.mts +2 -1
  204. package/dist/internal/compression-runtime.d.ts +2 -1
  205. package/dist/internal/config-runtime.cjs +14 -13
  206. package/dist/internal/config-runtime.d.mts +4 -3
  207. package/dist/internal/config-runtime.d.ts +4 -3
  208. package/dist/internal/config-runtime.mjs +13 -12
  209. package/dist/internal/docs-precompiled-runtime.cjs +1 -1
  210. package/dist/internal/docs-precompiled-runtime.mjs +1 -1
  211. package/dist/internal/form-actions.cjs +3 -3
  212. package/dist/internal/form-actions.mjs +2 -2
  213. package/dist/internal/infra-analytics-runtime.cjs +9 -7
  214. package/dist/internal/infra-analytics-runtime.d.mts +8 -2
  215. package/dist/internal/infra-analytics-runtime.d.ts +8 -2
  216. package/dist/internal/infra-analytics-runtime.mjs +9 -7
  217. package/dist/internal/island-codec.cjs +3 -3
  218. package/dist/internal/island-codec.mjs +2 -2
  219. package/dist/internal/island-value-store.d.mts +1 -1
  220. package/dist/internal/island-value-store.d.ts +1 -1
  221. package/dist/internal/islands-boot.cjs +63 -23
  222. package/dist/internal/islands-boot.d.mts +5 -3
  223. package/dist/internal/islands-boot.d.ts +5 -3
  224. package/dist/internal/islands-boot.mjs +58 -18
  225. package/dist/internal/islands-runtime.cjs +10 -56
  226. package/dist/internal/islands-runtime.mjs +6 -52
  227. package/dist/internal/islands-server.cjs +4 -4
  228. package/dist/internal/islands-server.mjs +3 -3
  229. package/dist/internal/islx-actions-client.cjs +36 -0
  230. package/dist/internal/islx-actions-client.d.mts +13 -0
  231. package/dist/internal/islx-actions-client.d.ts +13 -0
  232. package/dist/internal/islx-actions-client.mjs +36 -0
  233. package/dist/internal/islx-actions-server.cjs +8 -0
  234. package/dist/internal/islx-actions-server.d.mts +6 -0
  235. package/dist/internal/islx-actions-server.d.ts +6 -0
  236. package/dist/internal/islx-actions-server.mjs +8 -0
  237. package/dist/internal/islx-client.d.mts +0 -4
  238. package/dist/internal/islx-client.d.ts +0 -4
  239. package/dist/internal/isolated-boundary.cjs +3 -3
  240. package/dist/internal/isolated-boundary.d.mts +1 -1
  241. package/dist/internal/isolated-boundary.d.ts +1 -1
  242. package/dist/internal/isolated-boundary.mjs +2 -2
  243. package/dist/internal/metadata-image-runtime.cjs +4 -2
  244. package/dist/internal/metadata-image-runtime.d.mts +18 -2
  245. package/dist/internal/metadata-image-runtime.d.ts +18 -2
  246. package/dist/internal/metadata-image-runtime.mjs +5 -3
  247. package/dist/internal/native-server-fns.cjs +5 -4
  248. package/dist/internal/native-server-fns.mjs +4 -3
  249. package/dist/internal/navigation-neutral.cjs +36 -0
  250. package/dist/internal/navigation-neutral.d.mts +14 -0
  251. package/dist/internal/navigation-neutral.d.ts +14 -0
  252. package/dist/internal/navigation-neutral.mjs +36 -0
  253. package/dist/internal/product-telemetry-runtime.cjs +3 -3
  254. package/dist/internal/product-telemetry-runtime.mjs +2 -2
  255. package/dist/internal/production-runtime.cjs +30 -25
  256. package/dist/internal/production-runtime.d.mts +14 -11
  257. package/dist/internal/production-runtime.d.ts +14 -11
  258. package/dist/internal/production-runtime.mjs +35 -30
  259. package/dist/internal/server-tree.cjs +5 -4
  260. package/dist/internal/server-tree.d.mts +3 -4
  261. package/dist/internal/server-tree.d.ts +3 -4
  262. package/dist/internal/server-tree.mjs +4 -3
  263. package/dist/internal/spa-router.cjs +3 -3
  264. package/dist/internal/spa-router.d.mts +4 -3
  265. package/dist/internal/spa-router.d.ts +4 -3
  266. package/dist/internal/spa-router.mjs +2 -2
  267. package/dist/internal/start-manifest.d.mts +2 -1
  268. package/dist/internal/start-manifest.d.ts +2 -1
  269. package/dist/internal/vercel-edge-middleware.cjs +1 -1
  270. package/dist/internal/vercel-edge-middleware.mjs +1 -1
  271. package/dist/island-value-protocol.d-fEoc1m8e.d.mts +27 -0
  272. package/dist/island-value-protocol.d-fEoc1m8e.d.ts +27 -0
  273. package/dist/{layers-5ZD4764G.mjs → layers-744BBUY5.mjs} +2 -2
  274. package/dist/layers-XLOMMQP7.cjs +21 -0
  275. package/dist/markdown.d.mts +2 -1
  276. package/dist/markdown.d.ts +2 -1
  277. package/dist/middleware.cjs +5 -5
  278. package/dist/middleware.d.mts +2 -1
  279. package/dist/middleware.d.ts +2 -1
  280. package/dist/middleware.mjs +4 -4
  281. package/dist/{mount.d-DcoPFqv5.d.ts → mount.d-CAovYKfs.d.ts} +1 -1
  282. package/dist/{mount.d-Ylo-CmzK.d.mts → mount.d-DLeYxeRR.d.mts} +1 -1
  283. package/dist/{native-server-fn-handler-TNVFEQW3.cjs → native-server-fn-handler-57TCQPSM.cjs} +4 -4
  284. package/dist/{native-server-fn-handler-OXFTI6V5.mjs → native-server-fn-handler-PYK65A46.mjs} +3 -3
  285. package/dist/{navigation-delegate.d-2MK4YSlL.d.ts → navigation-delegate.d-BLM-8Q3Z.d.ts} +1 -1
  286. package/dist/{navigation-delegate.d-BA5h0fbE.d.mts → navigation-delegate.d-Chv93QS6.d.mts} +1 -1
  287. package/dist/navigation-errors.d-DwHtoMyR.d.mts +13 -0
  288. package/dist/navigation-errors.d-DwHtoMyR.d.ts +13 -0
  289. package/dist/navigation.cjs +6 -6
  290. package/dist/navigation.d.mts +7 -6
  291. package/dist/navigation.d.ts +7 -6
  292. package/dist/navigation.mjs +5 -5
  293. package/dist/{nitro-C3MYDX7V.mjs → nitro-FK3SZM4H.mjs} +2 -2
  294. package/dist/{nitro-6UOJXJZ6.cjs → nitro-YDFMH5PY.cjs} +6 -6
  295. package/dist/node-module-bundle-TNSY5PAC.cjs +15 -0
  296. package/dist/{node-module-bundle-XPLBMXRD.mjs → node-module-bundle-ZWCQJCKA.mjs} +3 -1
  297. package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
  298. package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
  299. package/dist/plugin.cjs +41 -37
  300. package/dist/plugin.d.mts +6 -5
  301. package/dist/plugin.d.ts +6 -5
  302. package/dist/plugin.mjs +40 -36
  303. package/dist/query/client.cjs +10 -10
  304. package/dist/query/client.mjs +5 -5
  305. package/dist/{render-plan.d-2o-AG-ot.d.ts → render-plan.d-BSTjTH8h.d.ts} +1 -1
  306. package/dist/{render-plan.d-ChYBMhLu.d.mts → render-plan.d-CK5Lggyb.d.mts} +1 -1
  307. package/dist/renderer/none/server.cjs +5 -1
  308. package/dist/renderer/none/server.d.mts +3 -1
  309. package/dist/renderer/none/server.d.ts +3 -1
  310. package/dist/renderer/none/server.mjs +4 -0
  311. package/dist/renderer/react/server.cjs +6 -6
  312. package/dist/renderer/react/server.mjs +3 -3
  313. package/dist/renderer-client.cjs +79 -17
  314. package/dist/renderer-client.d.mts +13 -97
  315. package/dist/renderer-client.d.ts +13 -97
  316. package/dist/renderer-client.mjs +69 -7
  317. package/dist/renderer.cjs +4 -2
  318. package/dist/renderer.d.mts +43 -5
  319. package/dist/renderer.d.ts +43 -5
  320. package/dist/renderer.mjs +3 -1
  321. package/dist/{request.d-RCnCBuWq.d.mts → request.d-BhggxQf3.d.mts} +1 -1
  322. package/dist/{request.d-CE0FIkiM.d.ts → request.d-CyJS9bjm.d.ts} +1 -1
  323. package/dist/request.d.mts +3 -2
  324. package/dist/request.d.ts +3 -2
  325. package/dist/{route-rendering.d-BTPOM2nU.d.ts → route-rendering.d-BLPPmI5I.d.ts} +1 -1
  326. package/dist/{route-rendering.d-BZJnfKsp.d.mts → route-rendering.d-CUpG2mZJ.d.mts} +1 -1
  327. package/dist/{router.d-BU_WE6Ol.d.ts → router.d-0X2Ki6rf.d.ts} +1 -1
  328. package/dist/{router.d-D8Vvwl4i.d.mts → router.d-2NQM1Kgw.d.mts} +1 -1
  329. package/dist/routes.cjs +1 -1
  330. package/dist/routes.d.mts +2 -1
  331. package/dist/routes.d.ts +2 -1
  332. package/dist/routes.mjs +1 -1
  333. package/dist/{rsc-pipeline-A3R4U26C.cjs → rsc-pipeline-5AOF64FL.cjs} +19 -18
  334. package/dist/{rsc-pipeline-JZWVSHOR.mjs → rsc-pipeline-DNRLYOJ7.mjs} +18 -17
  335. package/dist/{runtime-SQFRHRGJ.mjs → runtime-EHG2FRXZ.mjs} +18 -17
  336. package/dist/{runtime-WZ3CHHGJ.cjs → runtime-ZVHG5SRB.cjs} +20 -19
  337. package/dist/{runtime.d-DJ6IIKcF.d.ts → runtime.d-CXuwkUgr.d.ts} +1 -1
  338. package/dist/{runtime.d-BnmuOXVD.d.mts → runtime.d-CaFXcu_Q.d.mts} +1 -1
  339. package/dist/server-action-security.cjs +1 -1
  340. package/dist/server-action-security.mjs +1 -1
  341. package/dist/{server-components-status.d-BeqSXcjM.d.ts → server-components-status.d-BdeFD8ZH.d.ts} +1 -1
  342. package/dist/{server-components-status.d-BzOg9M8g.d.mts → server-components-status.d-Cp7zvBm5.d.mts} +1 -1
  343. package/dist/server-fn.cjs +3 -3
  344. package/dist/server-fn.mjs +2 -2
  345. package/dist/server-plugins.cjs +1 -1
  346. package/dist/server-plugins.d.mts +4 -3
  347. package/dist/server-plugins.d.ts +4 -3
  348. package/dist/server-plugins.mjs +1 -1
  349. package/dist/server-query.cjs +4 -4
  350. package/dist/server-query.mjs +3 -3
  351. package/dist/server.cjs +82 -71
  352. package/dist/server.d.mts +12 -11
  353. package/dist/server.d.ts +12 -11
  354. package/dist/server.mjs +61 -50
  355. package/dist/{spa-router.d-BOwuVkMl.d.ts → spa-router.d-Bjgl-Osi.d.ts} +3 -3
  356. package/dist/{spa-router.d-CDpftSsk.d.mts → spa-router.d-l3G38xHa.d.mts} +3 -3
  357. package/dist/{ssg.d-BTVqyq8T.d.ts → ssg.d-DDca17Lc.d.ts} +2 -2
  358. package/dist/{ssg.d-Bx_WFuwg.d.mts → ssg.d-RnlHOqUL.d.mts} +2 -2
  359. package/dist/store-core.d-BZjuC6Zc.d.mts +309 -0
  360. package/dist/store-core.d-BaOUOPf7.d.ts +309 -0
  361. package/dist/testing.cjs +7 -6
  362. package/dist/testing.d.mts +2 -1
  363. package/dist/testing.d.ts +2 -1
  364. package/dist/testing.mjs +6 -5
  365. package/dist/{utils.d-_dvevm5s.d.ts → utils.d-D8TWmpWo.d.ts} +1 -1
  366. package/dist/{utils.d-JkrpS-NJ.d.mts → utils.d-tdzw0_zQ.d.mts} +1 -1
  367. package/dist/version.cjs +2 -2
  368. package/dist/version.mjs +1 -1
  369. package/dist/vite.cjs +43 -37
  370. package/dist/vite.d.mts +18 -7
  371. package/dist/vite.d.ts +18 -7
  372. package/dist/vite.mjs +42 -36
  373. package/dist/workflows.cjs +2 -2
  374. package/dist/workflows.mjs +1 -1
  375. package/package.json +17 -2
  376. package/dist/analyzer-I7RBBQ65.cjs +0 -16
  377. package/dist/chunk-CQL5ZGFU.cjs +0 -50
  378. package/dist/chunk-HONTCUK6.mjs +0 -203
  379. package/dist/chunk-K6PGK7DC.cjs +0 -203
  380. package/dist/chunk-NBIVGHAT.mjs +0 -50
  381. package/dist/island-value-protocol.d-BRayRghM.d.mts +0 -12
  382. package/dist/island-value-protocol.d-BRayRghM.d.ts +0 -12
  383. package/dist/layers-HMEGUEXM.cjs +0 -21
  384. package/dist/node-module-bundle-M6BISE2P.cjs +0 -13
  385. package/dist/{chunk-EY7ED5UW.mjs → chunk-3RVLJTFZ.mjs} +3 -3
  386. package/dist/{chunk-UJPE75GF.mjs → chunk-J2VUPCCR.mjs} +3 -3
  387. package/dist/{chunk-PBJ7MEOV.cjs → chunk-OZUINP2P.cjs} +2 -2
  388. package/dist/{chunk-7FQFK3OA.mjs → chunk-V7HNYR76.mjs} +3 -3
  389. package/dist/{chunk-2FK47RRZ.cjs → chunk-VGHDPEPQ.cjs} +2 -2
  390. package/dist/{chunk-CGIVCGH5.cjs → chunk-XOFJUSWC.cjs} +2 -2
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FARM_VERSION
3
- } from "./chunk-JGEN2FIT.mjs";
3
+ } from "./chunk-OP5VI4TP.mjs";
4
4
 
5
5
  // src/deployment-environment.ts
6
6
  function isFarmProductionDeploymentEnvironment(env = process.env) {
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkASYOWPSRcjs = require('./chunk-ASYOWPSR.cjs');
5
+ var _chunkPWDBWXQIcjs = require('./chunk-PWDBWXQI.cjs');
6
6
 
7
7
 
8
8
  var _chunkXRRHPBG2cjs = require('./chunk-XRRHPBG2.cjs');
@@ -160,8 +160,8 @@ function createFarmConfigResolutionPlugin(options) {
160
160
  kind: extraOptions.kind,
161
161
  skipSelf: true
162
162
  });
163
- if (!_optionalChain([resolved, 'optionalAccess', _ => _.id]) || !_chunkASYOWPSRcjs.isDeclarationFile.call(void 0, resolved.id)) return _optionalChain([resolved, 'optionalAccess', _2 => _2.id]);
164
- return await _asyncNullishCoalesce(await _chunkASYOWPSRcjs.resolvePackageWithoutTsconfig.call(void 0, specifier, importer, extraOptions.kind), async () => ( void 0));
163
+ if (!_optionalChain([resolved, 'optionalAccess', _ => _.id]) || !_chunkPWDBWXQIcjs.isDeclarationFile.call(void 0, resolved.id)) return _optionalChain([resolved, 'optionalAccess', _2 => _2.id]);
164
+ return await _asyncNullishCoalesce(await _chunkPWDBWXQIcjs.resolvePackageWithoutTsconfig.call(void 0, specifier, importer, extraOptions.kind), async () => ( void 0));
165
165
  };
166
166
  if (source === FARM_CORE_PACKAGE && extraOptions.kind === "import-statement") {
167
167
  let configEntryCheck = configEntryChecks.get(importer);
@@ -194,7 +194,7 @@ async function loadFarmConfigFile(configPath, options) {
194
194
  configCacheDir,
195
195
  `farm-config-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`
196
196
  );
197
- await _chunkASYOWPSRcjs.bundleNodeModule.call(void 0, {
197
+ await _chunkPWDBWXQIcjs.bundleNodeModule.call(void 0, {
198
198
  root: _path2.default.resolve(options.root),
199
199
  entry: _path2.default.resolve(configPath),
200
200
  outfile: modulePath,
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-UTUS6JUH.mjs";
26
26
  import {
27
27
  getIntegrationSchemas
28
- } from "./chunk-6JWXHPVR.mjs";
28
+ } from "./chunk-XRSNW4IU.mjs";
29
29
  import {
30
30
  resolveSchemaModels
31
31
  } from "./chunk-F3N52U7S.mjs";
@@ -25,7 +25,7 @@ var _chunk2OFP3IVAcjs = require('./chunk-2OFP3IVA.cjs');
25
25
  var _chunk2LHZD3OPcjs = require('./chunk-2LHZD3OP.cjs');
26
26
 
27
27
 
28
- var _chunkWGWWRV2Mcjs = require('./chunk-WGWWRV2M.cjs');
28
+ var _chunkB3HQTGXScjs = require('./chunk-B3HQTGXS.cjs');
29
29
 
30
30
 
31
31
  var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
@@ -117,7 +117,7 @@ async function withTimeout(work, timeoutMs) {
117
117
  var formatSeconds = (ms) => ms < 1e3 ? `${ms}ms` : `${Number((ms / 1e3).toFixed(1))}s`;
118
118
  function collectSchemaOwners(config) {
119
119
  const owners = [];
120
- const integrationSchemas = _chunkWGWWRV2Mcjs.getIntegrationSchemas.call(void 0, config.integrations);
120
+ const integrationSchemas = _chunkB3HQTGXScjs.getIntegrationSchemas.call(void 0, config.integrations);
121
121
  let integrationClient;
122
122
  for (const [name, schema] of Object.entries(integrationSchemas)) {
123
123
  owners.push({
@@ -0,0 +1,54 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+ var _chunkEX6ZSN5Pcjs = require('./chunk-EX6ZSN5P.cjs');
6
+
7
+
8
+ var _chunkCKPTIEDXcjs = require('./chunk-CKPTIEDX.cjs');
9
+
10
+
11
+ var _chunkUZCMMJJTcjs = require('./chunk-UZCMMJJT.cjs');
12
+
13
+ // src/islands-action-client.ts
14
+ function createFarmServerFnTransportError(value) {
15
+ const failure = value;
16
+ const error = new Error(
17
+ failure && typeof failure.message === "string" ? failure.message : "Server function failed"
18
+ );
19
+ if (failure && failure.name === "ServerFnFailure" && typeof failure.code === "string" && Number.isInteger(failure.status) && failure.status >= 400 && failure.status <= 599 && Object.prototype.hasOwnProperty.call(failure, "data")) {
20
+ error.name = "ServerFnFailure";
21
+ error.code = failure.code;
22
+ error.status = failure.status;
23
+ error.data = failure.data;
24
+ Object.defineProperty(error, /* @__PURE__ */ Symbol.for("farm.server-fn.failure"), {
25
+ value: true,
26
+ enumerable: false
27
+ });
28
+ return error;
29
+ }
30
+ error.name = "ServerActionError";
31
+ return error;
32
+ }
33
+ var farmIslandsActionInterceptor = async (call, next) => {
34
+ const invocation = _chunkEX6ZSN5Pcjs.beginFarmServerQueryAction.call(void 0, call.id, call.args);
35
+ let result;
36
+ try {
37
+ result = await next();
38
+ } catch (error2) {
39
+ if (error2 instanceof Error && error2.message.startsWith("Server action failed")) {
40
+ throw createFarmServerFnTransportError(void 0);
41
+ }
42
+ throw error2;
43
+ }
44
+ if (!_chunkCKPTIEDXcjs.isFarmIslandsActionResult.call(void 0, result)) return result;
45
+ const { invalidations, error } = result.__farmAction;
46
+ if (_chunkEX6ZSN5Pcjs.shouldApplyFarmServerQueryActionResult.call(void 0, invocation))
47
+ _chunkUZCMMJJTcjs.applyFarmCacheInvalidations.call(void 0, invalidations);
48
+ if (error) throw createFarmServerFnTransportError(error);
49
+ return _chunkEX6ZSN5Pcjs.completeFarmServerQueryAction.call(void 0, invocation, result.value);
50
+ };
51
+
52
+
53
+
54
+ exports.farmIslandsActionInterceptor = farmIslandsActionInterceptor;
@@ -15,14 +15,17 @@ var _chunkWBTHHTBOcjs = require('./chunk-WBTHHTBO.cjs');
15
15
  var _chunkCCAUIBIScjs = require('./chunk-CCAUIBIS.cjs');
16
16
 
17
17
 
18
- var _chunkCCMP4JD2cjs = require('./chunk-CCMP4JD2.cjs');
18
+ var _chunkWMRGIQTAcjs = require('./chunk-WMRGIQTA.cjs');
19
+
20
+
21
+ var _chunkJK26IMT7cjs = require('./chunk-JK26IMT7.cjs');
19
22
 
20
23
  // src/mobile/analyzer.ts
21
24
  var _crypto = require('crypto');
22
25
  var _fs = require('fs');
23
26
  var _promises = require('fs/promises');
24
27
  var _path = require('path'); var path = _interopRequireWildcard(_path);
25
- var ANALYZER_VERSION = `7:${_chunkCCMP4JD2cjs.FARM_VERSION}`;
28
+ var ANALYZER_VERSION = `8:${_chunkJK26IMT7cjs.FARM_VERSION}`;
26
29
  var INTRINSIC_KINDS = {};
27
30
  for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
28
31
  INTRINSIC_KINDS[tag] = "View";
@@ -904,10 +907,8 @@ function analyzeComponentSource(file, source, parseSync) {
904
907
  only: "react-native"
905
908
  });
906
909
  for (const script of _chunkWBTHHTBOcjs.farmComponentModuleScripts.call(void 0, blocks)) {
907
- const hydrate = /\bexport\s+const\s+hydrate\s*=\s*true\b/.exec(
908
- source.slice(script.start, script.end)
909
- );
910
- if (hydrate) {
910
+ const hydrate = _chunkWMRGIQTAcjs.readFarmHydrateExport.call(void 0, source.slice(script.start, script.end));
911
+ if (_optionalChain([hydrate, 'optionalAccess', _44 => _44.value]) === true) {
911
912
  block(
912
913
  script.start + hydrate.index,
913
914
  "client-logic",
@@ -935,7 +936,7 @@ function analyzeComponentSource(file, source, parseSync) {
935
936
  }
936
937
  for (const match of text.matchAll(/\bimport\s+(?:[\w$]+\s*,\s*)?\{([^}]*)\}/g)) {
937
938
  for (const part of match[1].split(",")) {
938
- const local = _optionalChain([part, 'access', _44 => _44.trim, 'call', _45 => _45(), 'access', _46 => _46.split, 'call', _47 => _47(/\s+as\s+/), 'access', _48 => _48.pop, 'call', _49 => _49(), 'optionalAccess', _50 => _50.trim, 'call', _51 => _51()]);
939
+ const local = _optionalChain([part, 'access', _45 => _45.trim, 'call', _46 => _46(), 'access', _47 => _47.split, 'call', _48 => _48(/\s+as\s+/), 'access', _49 => _49.pop, 'call', _50 => _50(), 'optionalAccess', _51 => _51.trim, 'call', _52 => _52()]);
939
940
  if (local) imported.add(local);
940
941
  }
941
942
  }
@@ -991,7 +992,7 @@ function analyzeComponentSource(file, source, parseSync) {
991
992
  cursor = closeBrace(markup, cursor);
992
993
  continue;
993
994
  }
994
- const attrName = _nullishCoalesce(_optionalChain([/^[^\s=/>]+/, 'access', _52 => _52.exec, 'call', _53 => _53(markup.slice(cursor)), 'optionalAccess', _54 => _54[0]]), () => ( char));
995
+ const attrName = _nullishCoalesce(_optionalChain([/^[^\s=/>]+/, 'access', _53 => _53.exec, 'call', _54 => _54(markup.slice(cursor)), 'optionalAccess', _55 => _55[0]]), () => ( char));
995
996
  const attrOffset = range.start + cursor;
996
997
  cursor += attrName.length;
997
998
  while (/\s/.test(_nullishCoalesce(markup[cursor], () => ( "")))) cursor += 1;
@@ -1011,7 +1012,7 @@ function analyzeComponentSource(file, source, parseSync) {
1011
1012
  braced = true;
1012
1013
  cursor = end;
1013
1014
  } else {
1014
- value2 = _nullishCoalesce(_optionalChain([/^[^\s>]+/, 'access', _55 => _55.exec, 'call', _56 => _56(markup.slice(cursor)), 'optionalAccess', _57 => _57[0]]), () => ( ""));
1015
+ value2 = _nullishCoalesce(_optionalChain([/^[^\s>]+/, 'access', _56 => _56.exec, 'call', _57 => _57(markup.slice(cursor)), 'optionalAccess', _58 => _58[0]]), () => ( ""));
1015
1016
  cursor += value2.length;
1016
1017
  }
1017
1018
  }
@@ -1068,7 +1069,7 @@ function analyzeComponentSource(file, source, parseSync) {
1068
1069
  const classes = value("class");
1069
1070
  if (boundAttribute("class")) {
1070
1071
  block(at, "runtime-class-name", `<${tag}> builds its class names at runtime`);
1071
- } else if (_optionalChain([classes, 'optionalAccess', _58 => _58.value])) {
1072
+ } else if (_optionalChain([classes, 'optionalAccess', _59 => _59.value])) {
1072
1073
  for (const token of classes.value.split(/\s+/).filter(Boolean)) {
1073
1074
  const problem = classifyClass(token);
1074
1075
  if (problem && /^class ".*" is not in the native Tailwind subset$/.test(problem)) {
@@ -1083,7 +1084,7 @@ function analyzeComponentSource(file, source, parseSync) {
1083
1084
  const style = value("style");
1084
1085
  if (boundAttribute("style")) {
1085
1086
  block(at, "runtime-style", `<${tag}> style is computed at runtime`);
1086
- } else if (_optionalChain([style, 'optionalAccess', _59 => _59.value])) {
1087
+ } else if (_optionalChain([style, 'optionalAccess', _60 => _60.value])) {
1087
1088
  for (const declaration of _chunkCCAUIBIScjs.resolveFarmNativeInlineStyle.call(void 0, style.value).unsupported) {
1088
1089
  block(
1089
1090
  style.offset,
@@ -1095,7 +1096,7 @@ function analyzeComponentSource(file, source, parseSync) {
1095
1096
  }
1096
1097
  const type = value("type");
1097
1098
  if (tag === "input") {
1098
- const inputType = _optionalChain([type, 'optionalAccess', _60 => _60.dynamic]) ? void 0 : (_nullishCoalesce(_optionalChain([type, 'optionalAccess', _61 => _61.value]), () => ( "text"))).toLowerCase();
1099
+ const inputType = _optionalChain([type, 'optionalAccess', _61 => _61.dynamic]) ? void 0 : (_nullishCoalesce(_optionalChain([type, 'optionalAccess', _62 => _62.value]), () => ( "text"))).toLowerCase();
1099
1100
  const formType = formDepth > 0 && (inputType === "hidden" || inputType === "submit");
1100
1101
  if (!formType && (inputType === void 0 || !INPUT_TYPES.has(inputType))) {
1101
1102
  block(
@@ -1107,7 +1108,7 @@ function analyzeComponentSource(file, source, parseSync) {
1107
1108
  }
1108
1109
  if (inputType === "hidden") continue;
1109
1110
  }
1110
- const buttonType = tag === "button" ? (_nullishCoalesce(_optionalChain([type, 'optionalAccess', _62 => _62.value]), () => ( "submit"))).toLowerCase() : void 0;
1111
+ const buttonType = tag === "button" ? (_nullishCoalesce(_optionalChain([type, 'optionalAccess', _63 => _63.value]), () => ( "submit"))).toLowerCase() : void 0;
1111
1112
  if ((tag === "button" || kind === "TextInput") && !value("action") && !value("formaction") && (formDepth === 0 || buttonType !== void 0 && buttonType !== "submit")) {
1112
1113
  block(
1113
1114
  at,
@@ -1118,9 +1119,9 @@ function analyzeComponentSource(file, source, parseSync) {
1118
1119
  }
1119
1120
  if (tag === "form") {
1120
1121
  const method = value("method");
1121
- const methodValue = (_nullishCoalesce(_optionalChain([method, 'optionalAccess', _63 => _63.value]), () => ( "get"))).toLowerCase();
1122
- if (_optionalChain([method, 'optionalAccess', _64 => _64.dynamic]) || methodValue !== "get" && methodValue !== "post") {
1123
- block(at, "form-action", `<form method="${_nullishCoalesce(_optionalChain([method, 'optionalAccess', _65 => _65.value]), () => ( "{expr}"))}">`, "native");
1122
+ const methodValue = (_nullishCoalesce(_optionalChain([method, 'optionalAccess', _64 => _64.value]), () => ( "get"))).toLowerCase();
1123
+ if (_optionalChain([method, 'optionalAccess', _65 => _65.dynamic]) || methodValue !== "get" && methodValue !== "post") {
1124
+ block(at, "form-action", `<form method="${_nullishCoalesce(_optionalChain([method, 'optionalAccess', _66 => _66.value]), () => ( "{expr}"))}">`, "native");
1124
1125
  }
1125
1126
  }
1126
1127
  }
@@ -1199,7 +1200,7 @@ function classifyPackage(fact, serverBoundary) {
1199
1200
  }
1200
1201
  if (specifier.startsWith("@farm.js/core")) {
1201
1202
  const portable = CORE_PORTABLE[specifier];
1202
- const unmapped = fact.names.filter((name2) => !_optionalChain([portable, 'optionalAccess', _66 => _66.has, 'call', _67 => _67(name2)]));
1203
+ const unmapped = fact.names.filter((name2) => !_optionalChain([portable, 'optionalAccess', _67 => _67.has, 'call', _68 => _68(name2)]));
1203
1204
  if (unmapped.length > 0 || !portable) {
1204
1205
  return {
1205
1206
  ...at,
@@ -1413,7 +1414,7 @@ async function analyzeFarmMobileRoutes(options) {
1413
1414
  const allStylesheets = /* @__PURE__ */ new Set();
1414
1415
  const unreadStylesheets = /* @__PURE__ */ new Set();
1415
1416
  for (const [route, { page, layouts }] of entries) {
1416
- if (!page && _optionalChain([options, 'access', _68 => _68.nativeOnlyRoutes, 'optionalAccess', _69 => _69.has, 'call', _70 => _70(route)])) continue;
1417
+ if (!page && _optionalChain([options, 'access', _69 => _69.nativeOnlyRoutes, 'optionalAccess', _70 => _70.has, 'call', _71 => _71(route)])) continue;
1417
1418
  const blockers = [];
1418
1419
  const wins = /* @__PURE__ */ new Set();
1419
1420
  const elements = { total: 0, mapped: 0, byKind: {} };
@@ -1476,8 +1477,8 @@ async function analyzeFarmMobileRoutes(options) {
1476
1477
  if (moduleFacts.serverBoundary && !entry) return;
1477
1478
  for (const blocker of moduleFacts.blockers) add({ file: label, ...blocker });
1478
1479
  for (const action of _nullishCoalesce(moduleFacts.formActions, () => ( []))) {
1479
- const target = action.source === void 0 ? void 0 : _optionalChain([(_nullishCoalesce(resolved.get(file), () => ( []))), 'access', _71 => _71.find, 'call', _72 => _72((entry2) => entry2.fact.source === action.source), 'optionalAccess', _73 => _73.file]);
1480
- const server = options.serverComponents === true && (action.source === void 0 || target !== void 0 && _optionalChain([settled, 'access', _74 => _74.get, 'call', _75 => _75(target), 'optionalAccess', _76 => _76.serverBoundary]) === true);
1480
+ const target = action.source === void 0 ? void 0 : _optionalChain([(_nullishCoalesce(resolved.get(file), () => ( []))), 'access', _72 => _72.find, 'call', _73 => _73((entry2) => entry2.fact.source === action.source), 'optionalAccess', _74 => _74.file]);
1481
+ const server = options.serverComponents === true && (action.source === void 0 || target !== void 0 && _optionalChain([settled, 'access', _75 => _75.get, 'call', _76 => _76(target), 'optionalAccess', _77 => _77.serverBoundary]) === true);
1481
1482
  if (!server) {
1482
1483
  add({
1483
1484
  file: label,
@@ -1509,7 +1510,7 @@ async function analyzeFarmMobileRoutes(options) {
1509
1510
  if (entryImport.stylesheet) {
1510
1511
  stylesheets.add(entryImport.stylesheet);
1511
1512
  allStylesheets.add(entryImport.stylesheet);
1512
- } else if (_optionalChain([entryImport, 'access', _77 => _77.blocker, 'optionalAccess', _78 => _78.rule]) === "css-import") {
1513
+ } else if (_optionalChain([entryImport, 'access', _78 => _78.blocker, 'optionalAccess', _79 => _79.rule]) === "css-import") {
1513
1514
  unreadStylesheets.add(entryImport.fact.source);
1514
1515
  }
1515
1516
  if (entryImport.blocker) add({ file: label, ...entryImport.blocker });
@@ -21,7 +21,7 @@ var _chunkKORZ6PREcjs = require('./chunk-KORZ6PRE.cjs');
21
21
 
22
22
 
23
23
 
24
- var _chunkWIZRYFB2cjs = require('./chunk-WIZRYFB2.cjs');
24
+ var _chunkJYQ6DGPWcjs = require('./chunk-JYQ6DGPW.cjs');
25
25
 
26
26
 
27
27
  var _chunkGCJ4GNMCcjs = require('./chunk-GCJ4GNMC.cjs');
@@ -34,10 +34,10 @@ var _chunkYUCU6XB4cjs = require('./chunk-YUCU6XB4.cjs');
34
34
  var _chunkIUKBPBM7cjs = require('./chunk-IUKBPBM7.cjs');
35
35
 
36
36
 
37
- var _chunk25JGHAGHcjs = require('./chunk-25JGHAGH.cjs');
37
+ var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
38
38
 
39
39
 
40
- var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
40
+ var _chunk25JGHAGHcjs = require('./chunk-25JGHAGH.cjs');
41
41
 
42
42
 
43
43
  var _chunk7U4XF76Rcjs = require('./chunk-7U4XF76R.cjs');
@@ -122,7 +122,7 @@ var APIRouteManager = class _APIRouteManager {
122
122
  await this.loadProgrammaticApiRoutes(appDir);
123
123
  }
124
124
  this.routes = new Map(
125
- _chunkWIZRYFB2cjs.mergePluginAPIRoutes.call(void 0, [...this.routes.values()], this.plugins, void 0, {
125
+ _chunkJYQ6DGPWcjs.mergePluginAPIRoutes.call(void 0, [...this.routes.values()], this.plugins, void 0, {
126
126
  bodySizeLimit: this.bodySizeLimit,
127
127
  dispatch: this.dispatch
128
128
  }).map((route) => [route.path, route])
@@ -164,7 +164,7 @@ var APIRouteManager = class _APIRouteManager {
164
164
  const routeModule = await this.loadModule(filePath);
165
165
  const endpoints = {};
166
166
  const availableMethods = [];
167
- for (const method of _chunkWIZRYFB2cjs.API_ROUTE_METHODS) {
167
+ for (const method of _chunkJYQ6DGPWcjs.API_ROUTE_METHODS) {
168
168
  if (routeModule[method]) {
169
169
  endpoints[method] = routeModule[method];
170
170
  availableMethods.push(method);
@@ -356,7 +356,7 @@ var APIRouteManager = class _APIRouteManager {
356
356
  const url = new URL(request.url);
357
357
  const pathname = url.pathname;
358
358
  const method = request.method.toUpperCase();
359
- const match = _chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
359
+ const match = _chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
360
360
  if (!match) {
361
361
  return new Response(JSON.stringify({ error: "Not Found" }), {
362
362
  status: 404,
@@ -364,23 +364,23 @@ var APIRouteManager = class _APIRouteManager {
364
364
  });
365
365
  }
366
366
  const { route, params } = match;
367
- const endpoint = _chunkWIZRYFB2cjs.resolveAPIRouteEndpoint.call(void 0, route, method);
367
+ const endpoint = _chunkJYQ6DGPWcjs.resolveAPIRouteEndpoint.call(void 0, route, method);
368
368
  if (!endpoint) {
369
369
  return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
370
370
  status: 405,
371
371
  headers: {
372
- Allow: _chunkWIZRYFB2cjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
372
+ Allow: _chunkJYQ6DGPWcjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
373
373
  "Content-Type": "application/json"
374
374
  }
375
375
  });
376
376
  }
377
377
  const invoke = async () => {
378
378
  try {
379
- return await _chunkWIZRYFB2cjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, this.bodySizeLimit);
379
+ return await _chunkJYQ6DGPWcjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, this.bodySizeLimit);
380
380
  } catch (error) {
381
381
  if (options.throwOnError) throw error;
382
382
  console.error(`[API Error] ${pathname}:`, error);
383
- return _chunkWIZRYFB2cjs.createFarmInternalServerErrorResponse.call(void 0, );
383
+ return _chunkJYQ6DGPWcjs.createFarmInternalServerErrorResponse.call(void 0, );
384
384
  }
385
385
  };
386
386
  return _optionalChain([this, 'access', _13 => _13.i18n, 'optionalAccess', _14 => _14.config, 'access', _15 => _15.enabled]) ? _chunkSXXSQVKKcjs._runWithFarmI18nRequest.call(void 0, this.i18n, request, invoke, {
@@ -395,7 +395,7 @@ var APIRouteManager = class _APIRouteManager {
395
395
  return Boolean(this.matchRoute(pathname));
396
396
  }
397
397
  matchRoute(pathname) {
398
- return _chunkWIZRYFB2cjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
398
+ return _chunkJYQ6DGPWcjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
399
399
  }
400
400
  /**
401
401
  * Get all routes for client type generation
@@ -13,16 +13,19 @@ import {
13
13
  resolveFarmNativeClasses,
14
14
  resolveFarmNativeInlineStyle
15
15
  } from "./chunk-423SSBYQ.mjs";
16
+ import {
17
+ readFarmHydrateExport
18
+ } from "./chunk-D2VAANBS.mjs";
16
19
  import {
17
20
  FARM_VERSION
18
- } from "./chunk-JGEN2FIT.mjs";
21
+ } from "./chunk-OP5VI4TP.mjs";
19
22
 
20
23
  // src/mobile/analyzer.ts
21
24
  import { createHash } from "crypto";
22
25
  import { existsSync, readFileSync, statSync } from "fs";
23
26
  import { mkdir, readFile, writeFile } from "fs/promises";
24
27
  import * as path from "path";
25
- var ANALYZER_VERSION = `7:${FARM_VERSION}`;
28
+ var ANALYZER_VERSION = `8:${FARM_VERSION}`;
26
29
  var INTRINSIC_KINDS = {};
27
30
  for (const tag of "div section main article header footer nav aside figure hr li".split(" ")) {
28
31
  INTRINSIC_KINDS[tag] = "View";
@@ -904,10 +907,8 @@ function analyzeComponentSource(file, source, parseSync) {
904
907
  only: "react-native"
905
908
  });
906
909
  for (const script of farmComponentModuleScripts(blocks)) {
907
- const hydrate = /\bexport\s+const\s+hydrate\s*=\s*true\b/.exec(
908
- source.slice(script.start, script.end)
909
- );
910
- if (hydrate) {
910
+ const hydrate = readFarmHydrateExport(source.slice(script.start, script.end));
911
+ if (hydrate?.value === true) {
911
912
  block(
912
913
  script.start + hydrate.index,
913
914
  "client-logic",
@@ -1,7 +1,7 @@
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(); } }
2
2
 
3
3
 
4
- var _chunkAXA2BSX3cjs = require('./chunk-AXA2BSX3.cjs');
4
+ var _chunk5MUFW5UUcjs = require('./chunk-5MUFW5UU.cjs');
5
5
 
6
6
 
7
7
  var _chunkPIUTGRDIcjs = require('./chunk-PIUTGRDI.cjs');
@@ -64,7 +64,7 @@ function findFarmNativeScreenFiles(appDirs) {
64
64
  }
65
65
  function collectFarmNativeServerFns(options) {
66
66
  const { root, srcDir } = options;
67
- const aliases = _chunkAXA2BSX3cjs.readAliases.call(void 0, root, srcDir);
67
+ const aliases = _chunk5MUFW5UUcjs.readAliases.call(void 0, root, srcDir);
68
68
  const seen = /* @__PURE__ */ new Set();
69
69
  const found = /* @__PURE__ */ new Map();
70
70
  const queue = [...options.entries];
@@ -98,7 +98,7 @@ function collectFarmNativeServerFns(options) {
98
98
  }
99
99
  }
100
100
  for (const candidate of _nullishCoalesce(candidates, () => ( []))) {
101
- const resolved = _chunkAXA2BSX3cjs.resolveFile.call(void 0, candidate);
101
+ const resolved = _chunk5MUFW5UUcjs.resolveFile.call(void 0, candidate);
102
102
  if (resolved && SCRIPT.test(resolved) && !resolved.includes(`${_path2.default.sep}node_modules${_path2.default.sep}`)) {
103
103
  queue.push(resolved);
104
104
  break;
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-IYEY3JWJ.mjs";
10
10
  import {
11
11
  APIRouteConflictError
12
- } from "./chunk-KKVRWNDH.mjs";
12
+ } from "./chunk-NAHDG6UX.mjs";
13
13
  import {
14
14
  findProgrammaticRouteFilesInDir
15
15
  } from "./chunk-URBP6DLH.mjs";
@@ -26,7 +26,7 @@ import {
26
26
  matchAPIRouteAtBasePath,
27
27
  mergePluginAPIRoutes,
28
28
  resolveAPIRouteEndpoint
29
- } from "./chunk-TYHWZOA2.mjs";
29
+ } from "./chunk-KWI3SQFX.mjs";
30
30
  import {
31
31
  isProgrammaticRoutesFileName
32
32
  } from "./chunk-DZXD6CYJ.mjs";
@@ -9,6 +9,9 @@ import {
9
9
  toPosixPath
10
10
  } from "./chunk-U6GMCDRS.mjs";
11
11
 
12
+ // src/preview-request.ts
13
+ var FARM_PREVIEW_REQUEST_HEADER = "x-farm-preview";
14
+
12
15
  // src/cron.ts
13
16
  var DEFAULT_FARM_CRON_SECRET_ENV = "CRON_SECRET";
14
17
  var FARM_CRON_MANIFEST = "cron-manifest.json";
@@ -200,7 +203,9 @@ function isCronRequestAuthorized(request, options = {}) {
200
203
  const secretEnv = options.secretEnv || DEFAULT_FARM_CRON_SECRET_ENV;
201
204
  const secret = options.secret || readFarmEnvironmentValue(secretEnv);
202
205
  if (!secret) {
203
- return options.allowUnsecured === true || !getFarmRuntimeBindings() && isExplicitDevelopmentEnv();
206
+ return options.allowUnsecured === true || !getFarmRuntimeBindings() && isExplicitDevelopmentEnv() && // Development stays open for the developer's own machine, not for visitors to a
207
+ // `farm preview` URL. The preview marks every request it tunnels in.
208
+ !request.headers.get(FARM_PREVIEW_REQUEST_HEADER);
204
209
  }
205
210
  const authorization = request.headers.get("authorization") || "";
206
211
  const bearer = /^Bearer (.*)$/i.exec(authorization)?.[1] || "";
@@ -658,6 +663,7 @@ function safeFileName(value) {
658
663
  }
659
664
 
660
665
  export {
666
+ FARM_PREVIEW_REQUEST_HEADER,
661
667
  DEFAULT_FARM_CRON_SECRET_ENV,
662
668
  FARM_CRON_MANIFEST,
663
669
  resolveCronConfig,