@farm.js/core 0.1.40 → 0.1.41

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 (234) hide show
  1. package/dist/{agent-mcp-XNF4JqHw.d.mts → agent-mcp-BOqIxJLI.d.mts} +8 -2
  2. package/dist/{agent-mcp-DRlXq3lM.d.ts → agent-mcp-D0eZKfci.d.ts} +8 -2
  3. package/dist/agent-runtime.d.mts +2 -2
  4. package/dist/agent-runtime.d.ts +2 -2
  5. package/dist/api/client.cjs +3 -3
  6. package/dist/api/client.mjs +2 -2
  7. package/dist/api/route-manager.cjs +8 -8
  8. package/dist/api/route-manager.d.mts +4 -4
  9. package/dist/api/route-manager.d.ts +4 -4
  10. package/dist/api/route-manager.mjs +7 -7
  11. package/dist/api/runtime.cjs +6 -6
  12. package/dist/api/runtime.d.mts +3 -3
  13. package/dist/api/runtime.d.ts +3 -3
  14. package/dist/api/runtime.mjs +5 -5
  15. package/dist/api.cjs +10 -10
  16. package/dist/api.d.mts +4 -4
  17. package/dist/api.d.ts +4 -4
  18. package/dist/api.mjs +9 -9
  19. package/dist/{app-CWjCklhF.d.mts → app-CzTSMJaf.d.mts} +5 -5
  20. package/dist/{app-CDJHPqZn.d.ts → app-DM8e1z3G.d.ts} +5 -5
  21. package/dist/app-markdown.d.mts +3 -3
  22. package/dist/app-markdown.d.ts +3 -3
  23. package/dist/cache.cjs +3 -3
  24. package/dist/cache.mjs +2 -2
  25. package/dist/{chunk-UM3ZV5EP.mjs → chunk-24SP5TGU.mjs} +1 -1
  26. package/dist/{chunk-B6IMBBOS.cjs → chunk-25LPIZSX.cjs} +3 -3
  27. package/dist/{chunk-WW374SGU.mjs → chunk-26RUNDIR.mjs} +1 -1
  28. package/dist/{chunk-B77AUCBV.cjs → chunk-2FUIT2G2.cjs} +3 -3
  29. package/dist/{chunk-54QWHSNR.cjs → chunk-32TZ3QTP.cjs} +149 -155
  30. package/dist/{chunk-BPGO2IEP.mjs → chunk-35WS7P2V.mjs} +24 -126
  31. package/dist/{chunk-CKFK3Z2V.mjs → chunk-4C7KTKX7.mjs} +1 -1
  32. package/dist/{chunk-MNUSIXGS.mjs → chunk-4KQDHTWX.mjs} +1 -1
  33. package/dist/{chunk-DATEWH3W.cjs → chunk-6IZWX6ES.cjs} +22 -8
  34. package/dist/{chunk-Y6LRPO2K.mjs → chunk-6LVRDOAW.mjs} +19 -5
  35. package/dist/{chunk-UMQAK3KP.cjs → chunk-6MVFHNYZ.cjs} +2 -2
  36. package/dist/{chunk-OLQ73ZO5.mjs → chunk-6PKXK4TY.mjs} +3 -3
  37. package/dist/{chunk-PYQ3ZG4Z.mjs → chunk-724JLMS4.mjs} +4 -4
  38. package/dist/{chunk-PNCM5MFD.mjs → chunk-7UEEHAW7.mjs} +1 -1
  39. package/dist/{chunk-7VAJSSPG.mjs → chunk-B2GSRB3P.mjs} +1 -1
  40. package/dist/{chunk-ZKVJYQPO.mjs → chunk-BGGWKZ2V.mjs} +11 -10
  41. package/dist/{chunk-JXB6DVCO.mjs → chunk-BPNRQ5BA.mjs} +1 -1
  42. package/dist/{chunk-GNVEJUT5.cjs → chunk-C5KVWHIH.cjs} +21 -21
  43. package/dist/chunk-COABSY3U.mjs +196 -0
  44. package/dist/{chunk-Y2GNNXGV.cjs → chunk-D64OPY6A.cjs} +5 -5
  45. package/dist/{chunk-DKU6NXRK.cjs → chunk-EH3464KF.cjs} +1 -1
  46. package/dist/{chunk-Y4QVEU67.mjs → chunk-ENOBPDKZ.mjs} +2 -2
  47. package/dist/{chunk-FLZ4H25A.cjs → chunk-EX4MKHXN.cjs} +6 -6
  48. package/dist/{chunk-I64GEPOB.cjs → chunk-FEYQCYT7.cjs} +3 -3
  49. package/dist/{chunk-AXB5P7BK.mjs → chunk-FIAPD365.mjs} +1 -1
  50. package/dist/{chunk-FCOLU5P6.mjs → chunk-FJGIVDA5.mjs} +38 -15
  51. package/dist/{chunk-7FHZ3E6D.cjs → chunk-GB7LDGY5.cjs} +2 -2
  52. package/dist/{chunk-45UZKX2J.mjs → chunk-HJ64F4GS.mjs} +2 -2
  53. package/dist/{chunk-IRYK4Z5M.cjs → chunk-I5MG3TKE.cjs} +2 -2
  54. package/dist/{chunk-YR2P74F7.cjs → chunk-IFWSR7YZ.cjs} +2 -2
  55. package/dist/{chunk-5E65AL7P.mjs → chunk-IN6RCKLL.mjs} +5 -4
  56. package/dist/{chunk-EORXKFLR.cjs → chunk-JEIG3EWE.cjs} +1 -1
  57. package/dist/{chunk-TAKG7ZCD.cjs → chunk-JOTUZIM4.cjs} +14 -14
  58. package/dist/{chunk-TFX4RTH2.mjs → chunk-JOW4HDJO.mjs} +1 -1
  59. package/dist/{chunk-H44XGLFU.cjs → chunk-L6A26QT5.cjs} +9 -9
  60. package/dist/{chunk-EW4MEVLE.cjs → chunk-L6HYACBE.cjs} +7 -7
  61. package/dist/{chunk-OZN4XL6L.cjs → chunk-LIZTLA5F.cjs} +7 -6
  62. package/dist/{chunk-62DY5GKS.mjs → chunk-LLUA2LSC.mjs} +2 -2
  63. package/dist/{chunk-LDPKAYVS.cjs → chunk-LYIZHJTK.cjs} +2 -2
  64. package/dist/{chunk-2DMWQWNJ.mjs → chunk-MEASUNVY.mjs} +1 -1
  65. package/dist/{chunk-T4II4MMW.mjs → chunk-MHHCLYXU.mjs} +1 -1
  66. package/dist/{chunk-SHFXCE5A.cjs → chunk-MHN4UR5U.cjs} +4 -4
  67. package/dist/{chunk-5JEC43MQ.cjs → chunk-MN4TQJ3W.cjs} +9 -9
  68. package/dist/{chunk-5XS5NCVM.cjs → chunk-MY5PZYAD.cjs} +4 -4
  69. package/dist/{chunk-2JG2LJDI.cjs → chunk-NBPNUQYO.cjs} +2 -2
  70. package/dist/{chunk-4XO5GSD6.cjs → chunk-NFG4PUPI.cjs} +2 -2
  71. package/dist/{chunk-5LL6TKII.mjs → chunk-O7USYJ4U.mjs} +1 -1
  72. package/dist/{chunk-GKQL726H.cjs → chunk-OQ4YXWH4.cjs} +74 -73
  73. package/dist/{chunk-VBN3UAPQ.mjs → chunk-P2UJF4SS.mjs} +1 -1
  74. package/dist/{chunk-PGW7HZE2.cjs → chunk-PN676AZF.cjs} +6 -6
  75. package/dist/{chunk-IMQO6ZUU.mjs → chunk-PYHPXPSW.mjs} +2 -2
  76. package/dist/{chunk-KK22JPQM.cjs → chunk-QEILRWVV.cjs} +30 -132
  77. package/dist/{chunk-UXMIFB44.cjs → chunk-QIBP5EFA.cjs} +5 -5
  78. package/dist/{chunk-XKIUHXHW.mjs → chunk-R65GCA6A.mjs} +45 -51
  79. package/dist/{chunk-EGCT3AHF.cjs → chunk-ROQ4C4LJ.cjs} +121 -98
  80. package/dist/{chunk-QJM7A4CR.cjs → chunk-S7MTDRYA.cjs} +10 -10
  81. package/dist/{chunk-ACLPN56I.mjs → chunk-SGB4IW7K.mjs} +1 -1
  82. package/dist/{chunk-T6DLMX5V.mjs → chunk-SVPGWJZF.mjs} +3 -3
  83. package/dist/{chunk-I63UCMXW.mjs → chunk-ULQOP5UI.mjs} +2 -2
  84. package/dist/{chunk-HBEBV7OZ.mjs → chunk-UQUEANTY.mjs} +1 -1
  85. package/dist/chunk-VHRS3MCW.cjs +196 -0
  86. package/dist/{chunk-H56MQYEG.mjs → chunk-VLPII2JJ.mjs} +1 -1
  87. package/dist/{chunk-WCWV25PG.mjs → chunk-VTBXE6QG.mjs} +2 -2
  88. package/dist/{chunk-E55H6UKH.cjs → chunk-WLHA5USH.cjs} +9 -9
  89. package/dist/{chunk-YJBWB6GF.mjs → chunk-WMBRZI5V.mjs} +1 -1
  90. package/dist/{chunk-AGR7F3LA.cjs → chunk-WROEFVNO.cjs} +3 -3
  91. package/dist/{chunk-CA62IQY3.cjs → chunk-WU7ZS3EM.cjs} +2 -2
  92. package/dist/{chunk-ZOABCQGT.mjs → chunk-X3NGFVRF.mjs} +37 -22
  93. package/dist/{chunk-XJAEZCT6.mjs → chunk-XUC6CFLE.mjs} +1 -1
  94. package/dist/{chunk-6ILGLCXF.cjs → chunk-YWCYV7QC.cjs} +8 -8
  95. package/dist/{chunk-T36UJS3X.mjs → chunk-YYQVGKO5.mjs} +2 -2
  96. package/dist/{chunk-XVIEGKTT.cjs → chunk-ZTP3BJG6.cjs} +41 -26
  97. package/dist/{client-plugins-B_5QbNrp.d.mts → client-plugins-CkYwvDJ0.d.mts} +1 -1
  98. package/dist/{client-plugins-DgSfIWIF.d.ts → client-plugins-DfeKd0sD.d.ts} +1 -1
  99. package/dist/client-plugins.d.mts +2 -2
  100. package/dist/client-plugins.d.ts +2 -2
  101. package/dist/client.cjs +5 -5
  102. package/dist/client.d.mts +6 -6
  103. package/dist/client.d.ts +6 -6
  104. package/dist/client.mjs +4 -4
  105. package/dist/client.react-server.mjs +2 -0
  106. package/dist/config.d.mts +2 -2
  107. package/dist/config.d.ts +2 -2
  108. package/dist/{devtools-ANJ7JAPQ.cjs → devtools-2YHAJYH6.cjs} +5 -5
  109. package/dist/{devtools-VEQQDVHE.mjs → devtools-N3QLRIQU.mjs} +4 -4
  110. package/dist/docs.cjs +7 -7
  111. package/dist/docs.d.mts +3 -3
  112. package/dist/docs.d.ts +3 -3
  113. package/dist/docs.mjs +6 -6
  114. package/dist/headers.cjs +4 -4
  115. package/dist/headers.mjs +3 -3
  116. package/dist/image/server.d.mts +1 -1
  117. package/dist/image/server.d.ts +1 -1
  118. package/dist/image/sharp.d.mts +1 -1
  119. package/dist/image/sharp.d.ts +1 -1
  120. package/dist/{image-config-Duob7wER.d.ts → image-config-BpH1q5R8.d.mts} +4 -1
  121. package/dist/{image-config-Duob7wER.d.mts → image-config-BpH1q5R8.d.ts} +4 -1
  122. package/dist/image.d.mts +1 -1
  123. package/dist/image.d.ts +1 -1
  124. package/dist/index.cjs +39 -37
  125. package/dist/index.d.mts +15 -135
  126. package/dist/index.d.ts +15 -135
  127. package/dist/index.mjs +38 -36
  128. package/dist/integrations.d.mts +2 -2
  129. package/dist/integrations.d.ts +2 -2
  130. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  131. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  132. package/dist/internal/build-runtime.cjs +22 -22
  133. package/dist/internal/build-runtime.d.mts +4 -4
  134. package/dist/internal/build-runtime.d.ts +4 -4
  135. package/dist/internal/build-runtime.mjs +21 -21
  136. package/dist/internal/cli-runtime.cjs +12 -12
  137. package/dist/internal/cli-runtime.mjs +11 -11
  138. package/dist/internal/client-error-overlay.cjs +4 -4
  139. package/dist/internal/client-error-overlay.mjs +1 -1
  140. package/dist/internal/compression-runtime.d.mts +2 -2
  141. package/dist/internal/compression-runtime.d.ts +2 -2
  142. package/dist/internal/config-runtime.cjs +5 -5
  143. package/dist/internal/config-runtime.d.mts +3 -3
  144. package/dist/internal/config-runtime.d.ts +3 -3
  145. package/dist/internal/config-runtime.mjs +4 -4
  146. package/dist/internal/docs-precompiled-runtime.cjs +3 -3
  147. package/dist/internal/docs-precompiled-runtime.mjs +2 -2
  148. package/dist/internal/infra-analytics-runtime.cjs +5 -5
  149. package/dist/internal/infra-analytics-runtime.mjs +3 -3
  150. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  151. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  152. package/dist/internal/production-runtime.cjs +20 -12
  153. package/dist/internal/production-runtime.d.mts +30 -10
  154. package/dist/internal/production-runtime.d.ts +30 -10
  155. package/dist/internal/production-runtime.mjs +20 -12
  156. package/dist/markdown.d.mts +2 -2
  157. package/dist/markdown.d.ts +2 -2
  158. package/dist/middleware.cjs +7 -7
  159. package/dist/middleware.d.mts +4 -4
  160. package/dist/middleware.d.ts +4 -4
  161. package/dist/middleware.mjs +6 -6
  162. package/dist/navigation.cjs +4 -4
  163. package/dist/navigation.d.mts +5 -5
  164. package/dist/navigation.d.ts +5 -5
  165. package/dist/navigation.mjs +3 -3
  166. package/dist/{nitro-NFG2LBRC.mjs → nitro-KDACKNHU.mjs} +1 -1
  167. package/dist/{nitro-S2QABUFA.cjs → nitro-NPGU6VBT.cjs} +2 -2
  168. package/dist/plugin.cjs +20 -20
  169. package/dist/plugin.d.mts +4 -3
  170. package/dist/plugin.d.ts +4 -3
  171. package/dist/plugin.mjs +19 -19
  172. package/dist/{production-runtime-j_WCfuwB.d.mts → production-runtime-BTkXQdYy.d.mts} +1 -1
  173. package/dist/{production-runtime-DfknD3g_.d.ts → production-runtime-DFC7pgbp.d.ts} +1 -1
  174. package/dist/query/client.cjs +2 -2
  175. package/dist/query/client.mjs +3 -3
  176. package/dist/{render-plan-ChUtsymc.d.mts → render-plan-5rFeWmk7.d.mts} +1 -1
  177. package/dist/{render-plan-CFIhcYYS.d.ts → render-plan-BoAK9xFC.d.ts} +1 -1
  178. package/dist/renderer-client.d.mts +4 -4
  179. package/dist/renderer-client.d.ts +4 -4
  180. package/dist/{request-F4HRwzSd.d.mts → request-BxBWigtl.d.mts} +1 -1
  181. package/dist/{request-RJvelT8L.d.ts → request-fciwmd3n.d.ts} +1 -1
  182. package/dist/request.cjs +3 -3
  183. package/dist/request.d.mts +3 -3
  184. package/dist/request.d.ts +3 -3
  185. package/dist/request.mjs +2 -2
  186. package/dist/{route-rendering-3a4fbNyC.d.mts → route-rendering-BCM1QzEf.d.mts} +1 -1
  187. package/dist/{route-rendering-D4coJ-kw.d.ts → route-rendering-BLZT0IP0.d.ts} +1 -1
  188. package/dist/{router-WLEW3Te1.d.ts → router-CkheNX3-.d.ts} +1 -1
  189. package/dist/{router-DqIssGRO.d.mts → router-DyZJWc1_.d.mts} +1 -1
  190. package/dist/routes.cjs +4 -4
  191. package/dist/routes.d.mts +2 -2
  192. package/dist/routes.d.ts +2 -2
  193. package/dist/routes.mjs +3 -3
  194. package/dist/{runtime-BrNdLOq9.d.ts → runtime-DfU4sKa5.d.ts} +1 -1
  195. package/dist/{runtime-CmE_j-js.d.mts → runtime-wexvUN5J.d.mts} +1 -1
  196. package/dist/server-fn.cjs +4 -4
  197. package/dist/server-fn.mjs +3 -3
  198. package/dist/server-plugins.cjs +5 -5
  199. package/dist/server-plugins.d.mts +3 -3
  200. package/dist/server-plugins.d.ts +3 -3
  201. package/dist/server-plugins.mjs +4 -4
  202. package/dist/server-query.cjs +5 -5
  203. package/dist/server-query.mjs +4 -4
  204. package/dist/server.cjs +45 -45
  205. package/dist/server.d.mts +10 -9
  206. package/dist/server.d.ts +10 -9
  207. package/dist/server.mjs +24 -24
  208. package/dist/{spa-router-D_0VXqPC.d.ts → spa-router-CcejECnG.d.ts} +2 -2
  209. package/dist/{spa-router-C41zjnFl.d.mts → spa-router-DgsMXqfX.d.mts} +2 -2
  210. package/dist/ssg-1FGaFISl.d.ts +184 -0
  211. package/dist/ssg-Bg4bMMhM.d.mts +184 -0
  212. package/dist/testing.cjs +11 -11
  213. package/dist/testing.d.mts +2 -2
  214. package/dist/testing.d.ts +2 -2
  215. package/dist/testing.mjs +8 -8
  216. package/dist/theme/server.cjs +4 -4
  217. package/dist/theme/server.mjs +3 -3
  218. package/dist/{utils-BKWSe3S7.d.mts → utils-8wtTYiH4.d.mts} +1 -1
  219. package/dist/{utils-YYcWsOJp.d.ts → utils-Dxbh6Hgj.d.ts} +1 -1
  220. package/dist/version.cjs +2 -2
  221. package/dist/version.mjs +1 -1
  222. package/dist/vite.cjs +37 -21
  223. package/dist/vite.d.mts +41 -4
  224. package/dist/vite.d.ts +41 -4
  225. package/dist/vite.mjs +37 -21
  226. package/dist/workflows.cjs +2 -2
  227. package/dist/workflows.mjs +1 -1
  228. package/package.json +2 -1
  229. package/dist/chunk-DAO7JGTS.mjs +0 -73
  230. package/dist/chunk-SYQ3MOWW.cjs +0 -73
  231. package/dist/programmatic-routes-client-DcoxEaLe.d.mts +0 -55
  232. package/dist/programmatic-routes-client-DcoxEaLe.d.ts +0 -55
  233. /package/dist/{chunk-MOSYH4CY.mjs → chunk-FWCGUVVL.mjs} +0 -0
  234. /package/dist/{chunk-4A3YUB4D.cjs → chunk-KF6VDJH7.cjs} +0 -0
@@ -8,8 +8,11 @@ import {
8
8
  resolveSchemaModels
9
9
  } from "./chunk-WDMIW6Q6.mjs";
10
10
  import {
11
- mergeRouteRenderingDirectiveConfig
12
- } from "./chunk-DAO7JGTS.mjs";
11
+ getOptionalCatchAllParameterNames,
12
+ materializeSSGRoutePath,
13
+ mergeRouteRenderingDirectiveConfig,
14
+ normalizeStaticPathParams
15
+ } from "./chunk-COABSY3U.mjs";
13
16
  import {
14
17
  createEnvTypeDeclarations,
15
18
  generateEnvTypes
@@ -29,13 +32,13 @@ import {
29
32
  } from "./chunk-RHAZ22ZN.mjs";
30
33
  import {
31
34
  discoverProgrammaticRoutePaths
32
- } from "./chunk-MOSYH4CY.mjs";
35
+ } from "./chunk-FWCGUVVL.mjs";
33
36
  import {
34
37
  readFarmI18nCatalogs
35
38
  } from "./chunk-QCFBDFRS.mjs";
36
39
  import {
37
40
  resolvePluginRoutes
38
- } from "./chunk-2DMWQWNJ.mjs";
41
+ } from "./chunk-MEASUNVY.mjs";
39
42
  import {
40
43
  parseRoutePath
41
44
  } from "./chunk-KI3MESHB.mjs";
@@ -44,10 +47,8 @@ import {
44
47
  } from "./chunk-LPEX4YW6.mjs";
45
48
 
46
49
  // src/ssg.ts
50
+ import { readFileSync } from "fs";
47
51
  import { readFile } from "fs/promises";
48
- var OPTIONAL_CATCH_ALL_SEGMENT = /^\[\[\.\.\.([^\]]+)\]\]$/;
49
- var REQUIRED_CATCH_ALL_SEGMENT = /^\[\.\.\.([^\]]+)\]$/;
50
- var REQUIRED_DYNAMIC_SEGMENT = /^\[([^\]]+)\]$/;
51
52
  var REQUEST_API_LABELS = /* @__PURE__ */ new Map([
52
53
  ["cookies", "request cookies"],
53
54
  ["headers", "request headers"],
@@ -317,6 +318,17 @@ function parseRouteRenderingDirective(source) {
317
318
  return void 0;
318
319
  }
319
320
  __name(parseRouteRenderingDirective, "parseRouteRenderingDirective");
321
+ function readRouteRenderingDirectiveFromFile(modulePath) {
322
+ try {
323
+ const source = readFileSync(modulePath, "utf8");
324
+ const directive = parseRouteRenderingDirective(source);
325
+ if (findRequestBoundSourceBlockers(source).length === 0) return directive;
326
+ return { ...directive ?? { ssg: false, ppr: false, directive: "" }, requestBound: true };
327
+ } catch {
328
+ return void 0;
329
+ }
330
+ }
331
+ __name(readRouteRenderingDirectiveFromFile, "readRouteRenderingDirectiveFromFile");
320
332
  function parseKnownRenderingDirective(directive) {
321
333
  const normalized = directive.trim().toLowerCase();
322
334
  const match = normalized.match(
@@ -495,121 +507,6 @@ Add \`export const dynamic = "force-static";\` after verifying that imported cod
495
507
  return { ssg: ssgPages, ssr: ssrRoutes };
496
508
  }
497
509
  __name(collectSSGPages, "collectSSGPages");
498
- function materializeSSGRoutePath(routePattern, params) {
499
- const outputSegments = [];
500
- for (const segment of routePattern.split("/")) {
501
- if (!segment) {
502
- continue;
503
- }
504
- const optionalCatchAll = segment.match(OPTIONAL_CATCH_ALL_SEGMENT);
505
- if (optionalCatchAll) {
506
- const parameterName = optionalCatchAll[1];
507
- const value = params[parameterName];
508
- const values = readCatchAllSegments(value, {
509
- optional: true,
510
- parameterName,
511
- routePattern
512
- });
513
- outputSegments.push(...values.map(encodePathSegment));
514
- continue;
515
- }
516
- const requiredCatchAll = segment.match(REQUIRED_CATCH_ALL_SEGMENT);
517
- if (requiredCatchAll) {
518
- const parameterName = requiredCatchAll[1];
519
- const value = params[parameterName];
520
- const values = readCatchAllSegments(value, {
521
- optional: false,
522
- parameterName,
523
- routePattern
524
- });
525
- outputSegments.push(...values.map(encodePathSegment));
526
- continue;
527
- }
528
- const requiredDynamic = segment.match(REQUIRED_DYNAMIC_SEGMENT);
529
- if (requiredDynamic) {
530
- const parameterName = requiredDynamic[1];
531
- const value = params[parameterName];
532
- if (isStaticPathArray(value)) {
533
- throw new Error(
534
- `Cannot materialize SSG route "${routePattern}": parameter "${parameterName}" must be a scalar value; arrays are only supported for catch-all segments.`
535
- );
536
- }
537
- if (isMissingPathValue(value)) {
538
- throw missingRequiredParameterError(routePattern, parameterName);
539
- }
540
- outputSegments.push(encodePathSegment(value));
541
- continue;
542
- }
543
- outputSegments.push(segment);
544
- }
545
- return outputSegments.length > 0 ? `/${outputSegments.join("/")}` : "/";
546
- }
547
- __name(materializeSSGRoutePath, "materializeSSGRoutePath");
548
- function readCatchAllSegments(value, options) {
549
- if (isMissingPathValue(value) || isStaticPathArray(value) && value.length === 0) {
550
- if (options.optional) {
551
- return [];
552
- }
553
- throw missingRequiredParameterError(options.routePattern, options.parameterName);
554
- }
555
- const segments = isStaticPathArray(value) ? [...value] : [value];
556
- if (segments.some(isMissingPathValue)) {
557
- throw new Error(
558
- `Cannot materialize SSG route "${options.routePattern}": catch-all parameter "${options.parameterName}" contains an empty path segment.`
559
- );
560
- }
561
- return segments;
562
- }
563
- __name(readCatchAllSegments, "readCatchAllSegments");
564
- function getOptionalCatchAllParameterNames(routePattern) {
565
- return new Set(
566
- routePattern.split("/").map((segment) => segment.match(OPTIONAL_CATCH_ALL_SEGMENT)?.[1]).filter((name) => Boolean(name))
567
- );
568
- }
569
- __name(getOptionalCatchAllParameterNames, "getOptionalCatchAllParameterNames");
570
- function normalizeStaticPathParams(params, optionalCatchAllParams) {
571
- const entries = Object.entries(params).map(([key, value]) => {
572
- const emptyOptionalCatchAll = optionalCatchAllParams.has(key) && (isMissingPathValue(value) || isStaticPathArray(value) && value.length === 0);
573
- return [
574
- key,
575
- emptyOptionalCatchAll ? "" : isStaticPathArray(value) ? value.map(String).join("/") : String(value)
576
- ];
577
- });
578
- for (const name of optionalCatchAllParams) {
579
- if (!Object.prototype.hasOwnProperty.call(params, name)) {
580
- entries.push([name, ""]);
581
- }
582
- }
583
- return Object.fromEntries(entries);
584
- }
585
- __name(normalizeStaticPathParams, "normalizeStaticPathParams");
586
- function isMissingPathValue(value) {
587
- return value === "" || value === null || typeof value === "undefined";
588
- }
589
- __name(isMissingPathValue, "isMissingPathValue");
590
- function isStaticPathArray(value) {
591
- return Array.isArray(value);
592
- }
593
- __name(isStaticPathArray, "isStaticPathArray");
594
- function missingRequiredParameterError(routePattern, parameterName) {
595
- return new Error(
596
- `Cannot materialize SSG route "${routePattern}": required parameter "${parameterName}" is missing or empty.`
597
- );
598
- }
599
- __name(missingRequiredParameterError, "missingRequiredParameterError");
600
- function encodePathSegment(value) {
601
- const encoded = encodeURIComponent(String(value)).replace(
602
- /[!'()*]/g,
603
- (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`
604
- );
605
- if (encoded === "." || encoded === "..") {
606
- throw new Error(
607
- `Cannot materialize SSG path segment "${encoded}": dot-only segments are unsafe to prerender.`
608
- );
609
- }
610
- return encoded;
611
- }
612
- __name(encodePathSegment, "encodePathSegment");
613
510
  function isSSGModule(mod) {
614
511
  return resolveRouteRenderingConfig(mod).ssg;
615
512
  }
@@ -891,7 +788,7 @@ function argumentType(kind) {
891
788
  __name(argumentType, "argumentType");
892
789
 
893
790
  // src/type-artifacts.ts
894
- import { existsSync as existsSync3, mkdirSync as mkdirSync4, readFileSync, unlinkSync } from "fs";
791
+ import { existsSync as existsSync3, mkdirSync as mkdirSync4, readFileSync as readFileSync2, unlinkSync } from "fs";
895
792
  import { dirname as dirname4, isAbsolute as isAbsolute3, join as join4, resolve as resolve4 } from "path";
896
793
 
897
794
  // src/content-types.ts
@@ -1292,7 +1189,7 @@ function writeOrCheckGeneratedFile(filePath, content, check, stalePaths) {
1292
1189
  }
1293
1190
  __name(writeOrCheckGeneratedFile, "writeOrCheckGeneratedFile");
1294
1191
  function checkGeneratedFile(filePath, content, stalePaths) {
1295
- if (!existsSync3(filePath) || readFileSync(filePath, "utf8") !== content) {
1192
+ if (!existsSync3(filePath) || readFileSync2(filePath, "utf8") !== content) {
1296
1193
  stalePaths.push(filePath);
1297
1194
  }
1298
1195
  }
@@ -1307,7 +1204,7 @@ function removeLegacyTypeArtifacts(root, srcDir) {
1307
1204
  for (const [fileName, marker] of LEGACY_TYPE_ARTIFACTS) {
1308
1205
  const filePath = join4(root, srcDir, fileName);
1309
1206
  if (!existsSync3(filePath)) continue;
1310
- const source = readFileSync(filePath, "utf8");
1207
+ const source = readFileSync2(filePath, "utf8");
1311
1208
  if (source.includes(marker)) {
1312
1209
  unlinkSync(filePath);
1313
1210
  }
@@ -1318,7 +1215,7 @@ function collectLegacyTypeArtifacts(root, srcDir, stalePaths) {
1318
1215
  for (const [fileName, marker] of LEGACY_TYPE_ARTIFACTS) {
1319
1216
  const filePath = join4(root, srcDir, fileName);
1320
1217
  if (!existsSync3(filePath)) continue;
1321
- if (readFileSync(filePath, "utf8").includes(marker)) stalePaths.push(filePath);
1218
+ if (readFileSync2(filePath, "utf8").includes(marker)) stalePaths.push(filePath);
1322
1219
  }
1323
1220
  }
1324
1221
  __name(collectLegacyTypeArtifacts, "collectLegacyTypeArtifacts");
@@ -1329,6 +1226,7 @@ export {
1329
1226
  analyzeStaticRouteCandidate,
1330
1227
  findRequestBoundSourceBlockers,
1331
1228
  parseRouteRenderingDirective,
1229
+ readRouteRenderingDirectiveFromFile,
1332
1230
  collectSSGPages,
1333
1231
  isSSGModule,
1334
1232
  hasISR,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  getRouteGroupScope,
9
9
  isInRouteGroupScope
10
- } from "./chunk-T6DLMX5V.mjs";
10
+ } from "./chunk-SVPGWJZF.mjs";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-LPEX4YW6.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MiddlewareManager
3
- } from "./chunk-45UZKX2J.mjs";
3
+ } from "./chunk-HJ64F4GS.mjs";
4
4
  import {
5
5
  matchesMiddlewarePredicate
6
6
  } from "./chunk-HKFBMHCD.mjs";
@@ -1,32 +1,44 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
  var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
4
4
 
5
5
  // src/server/request-bridge.ts
6
6
  var CURRENT_REQUEST_RESOLVER_KEY = /* @__PURE__ */ Symbol.for("farm.currentRequestResolver");
7
+ var CURRENT_REQUEST_PEEK_KEY = /* @__PURE__ */ Symbol.for("farm.currentRequestPeek");
7
8
  var APP_REQUEST_VIEW_KEY = /* @__PURE__ */ Symbol.for("farm.appRequestView");
8
9
  function getGlobalState() {
9
10
  return globalThis;
10
11
  }
11
12
  _chunkS3JO3N4Hcjs.__name.call(void 0, getGlobalState, "getGlobalState");
12
- function _setCurrentRequestResolver(resolver) {
13
- getGlobalState()[CURRENT_REQUEST_RESOLVER_KEY] = resolver;
13
+ function _setCurrentRequestResolver(resolver, peek = resolver) {
14
+ const state = getGlobalState();
15
+ state[CURRENT_REQUEST_RESOLVER_KEY] = resolver;
16
+ state[CURRENT_REQUEST_PEEK_KEY] = peek;
14
17
  }
15
18
  _chunkS3JO3N4Hcjs.__name.call(void 0, _setCurrentRequestResolver, "_setCurrentRequestResolver");
16
19
  function _resolveCurrentRequest() {
17
20
  return _optionalChain([getGlobalState, 'call', _ => _(), 'access', _2 => _2[CURRENT_REQUEST_RESOLVER_KEY], 'optionalCall', _3 => _3()]);
18
21
  }
19
22
  _chunkS3JO3N4Hcjs.__name.call(void 0, _resolveCurrentRequest, "_resolveCurrentRequest");
23
+ function _peekCurrentRequest() {
24
+ const state = getGlobalState();
25
+ return _optionalChain([(_nullishCoalesce(state[CURRENT_REQUEST_PEEK_KEY], () => ( state[CURRENT_REQUEST_RESOLVER_KEY]))), 'optionalCall', _4 => _4()]);
26
+ }
27
+ _chunkS3JO3N4Hcjs.__name.call(void 0, _peekCurrentRequest, "_peekCurrentRequest");
20
28
  function _setAppRequestView(view) {
21
29
  getGlobalState()[APP_REQUEST_VIEW_KEY] = view;
22
30
  }
23
31
  _chunkS3JO3N4Hcjs.__name.call(void 0, _setAppRequestView, "_setAppRequestView");
24
32
  function _resolveCurrentRequestForApp() {
25
- const request = _resolveCurrentRequest();
26
- const view = getGlobalState()[APP_REQUEST_VIEW_KEY];
27
- return request && view ? view(request) : request;
33
+ const request = _peekCurrentRequest();
34
+ return request && _toAppRequestView(request);
28
35
  }
29
36
  _chunkS3JO3N4Hcjs.__name.call(void 0, _resolveCurrentRequestForApp, "_resolveCurrentRequestForApp");
37
+ function _toAppRequestView(request) {
38
+ const view = getGlobalState()[APP_REQUEST_VIEW_KEY];
39
+ return view ? view(request) : request;
40
+ }
41
+ _chunkS3JO3N4Hcjs.__name.call(void 0, _toAppRequestView, "_toAppRequestView");
30
42
  var CSP_NONCE_RESOLVER_KEY = /* @__PURE__ */ Symbol.for("farm.cspNonceResolver");
31
43
  function _setCspNonceResolver(resolver) {
32
44
  globalThis[CSP_NONCE_RESOLVER_KEY] = resolver;
@@ -34,7 +46,7 @@ function _setCspNonceResolver(resolver) {
34
46
  _chunkS3JO3N4Hcjs.__name.call(void 0, _setCspNonceResolver, "_setCspNonceResolver");
35
47
  function _resolveCurrentCspNonce() {
36
48
  const resolver = globalThis[CSP_NONCE_RESOLVER_KEY];
37
- return _optionalChain([resolver, 'optionalCall', _4 => _4()]);
49
+ return _optionalChain([resolver, 'optionalCall', _5 => _5()]);
38
50
  }
39
51
  _chunkS3JO3N4Hcjs.__name.call(void 0, _resolveCurrentCspNonce, "_resolveCurrentCspNonce");
40
52
  var SHARED_CACHE_SCOPE_RUNNER_KEY = /* @__PURE__ */ Symbol.for("farm.sharedCacheScopeRunner");
@@ -57,4 +69,6 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, _runInSharedCacheScope, "_runInSharedCache
57
69
 
58
70
 
59
71
 
60
- exports._setCurrentRequestResolver = _setCurrentRequestResolver; exports._resolveCurrentRequest = _resolveCurrentRequest; exports._setAppRequestView = _setAppRequestView; exports._resolveCurrentRequestForApp = _resolveCurrentRequestForApp; exports._setCspNonceResolver = _setCspNonceResolver; exports._resolveCurrentCspNonce = _resolveCurrentCspNonce; exports._setSharedCacheScopeRunner = _setSharedCacheScopeRunner; exports._runInSharedCacheScope = _runInSharedCacheScope;
72
+
73
+
74
+ exports._setCurrentRequestResolver = _setCurrentRequestResolver; exports._resolveCurrentRequest = _resolveCurrentRequest; exports._peekCurrentRequest = _peekCurrentRequest; exports._setAppRequestView = _setAppRequestView; exports._resolveCurrentRequestForApp = _resolveCurrentRequestForApp; exports._toAppRequestView = _toAppRequestView; exports._setCspNonceResolver = _setCspNonceResolver; exports._resolveCurrentCspNonce = _resolveCurrentCspNonce; exports._setSharedCacheScopeRunner = _setSharedCacheScopeRunner; exports._runInSharedCacheScope = _runInSharedCacheScope;
@@ -4,29 +4,41 @@ import {
4
4
 
5
5
  // src/server/request-bridge.ts
6
6
  var CURRENT_REQUEST_RESOLVER_KEY = /* @__PURE__ */ Symbol.for("farm.currentRequestResolver");
7
+ var CURRENT_REQUEST_PEEK_KEY = /* @__PURE__ */ Symbol.for("farm.currentRequestPeek");
7
8
  var APP_REQUEST_VIEW_KEY = /* @__PURE__ */ Symbol.for("farm.appRequestView");
8
9
  function getGlobalState() {
9
10
  return globalThis;
10
11
  }
11
12
  __name(getGlobalState, "getGlobalState");
12
- function _setCurrentRequestResolver(resolver) {
13
- getGlobalState()[CURRENT_REQUEST_RESOLVER_KEY] = resolver;
13
+ function _setCurrentRequestResolver(resolver, peek = resolver) {
14
+ const state = getGlobalState();
15
+ state[CURRENT_REQUEST_RESOLVER_KEY] = resolver;
16
+ state[CURRENT_REQUEST_PEEK_KEY] = peek;
14
17
  }
15
18
  __name(_setCurrentRequestResolver, "_setCurrentRequestResolver");
16
19
  function _resolveCurrentRequest() {
17
20
  return getGlobalState()[CURRENT_REQUEST_RESOLVER_KEY]?.();
18
21
  }
19
22
  __name(_resolveCurrentRequest, "_resolveCurrentRequest");
23
+ function _peekCurrentRequest() {
24
+ const state = getGlobalState();
25
+ return (state[CURRENT_REQUEST_PEEK_KEY] ?? state[CURRENT_REQUEST_RESOLVER_KEY])?.();
26
+ }
27
+ __name(_peekCurrentRequest, "_peekCurrentRequest");
20
28
  function _setAppRequestView(view) {
21
29
  getGlobalState()[APP_REQUEST_VIEW_KEY] = view;
22
30
  }
23
31
  __name(_setAppRequestView, "_setAppRequestView");
24
32
  function _resolveCurrentRequestForApp() {
25
- const request = _resolveCurrentRequest();
26
- const view = getGlobalState()[APP_REQUEST_VIEW_KEY];
27
- return request && view ? view(request) : request;
33
+ const request = _peekCurrentRequest();
34
+ return request && _toAppRequestView(request);
28
35
  }
29
36
  __name(_resolveCurrentRequestForApp, "_resolveCurrentRequestForApp");
37
+ function _toAppRequestView(request) {
38
+ const view = getGlobalState()[APP_REQUEST_VIEW_KEY];
39
+ return view ? view(request) : request;
40
+ }
41
+ __name(_toAppRequestView, "_toAppRequestView");
30
42
  var CSP_NONCE_RESOLVER_KEY = /* @__PURE__ */ Symbol.for("farm.cspNonceResolver");
31
43
  function _setCspNonceResolver(resolver) {
32
44
  globalThis[CSP_NONCE_RESOLVER_KEY] = resolver;
@@ -51,8 +63,10 @@ __name(_runInSharedCacheScope, "_runInSharedCacheScope");
51
63
  export {
52
64
  _setCurrentRequestResolver,
53
65
  _resolveCurrentRequest,
66
+ _peekCurrentRequest,
54
67
  _setAppRequestView,
55
68
  _resolveCurrentRequestForApp,
69
+ _toAppRequestView,
56
70
  _setCspNonceResolver,
57
71
  _resolveCurrentCspNonce,
58
72
  _setSharedCacheScopeRunner,
@@ -17,7 +17,7 @@ var _chunkNYJMY3JAcjs = require('./chunk-NYJMY3JA.cjs');
17
17
  var _chunkZEG3OPIBcjs = require('./chunk-ZEG3OPIB.cjs');
18
18
 
19
19
 
20
- var _chunkDATEWH3Wcjs = require('./chunk-DATEWH3W.cjs');
20
+ var _chunk6IZWX6EScjs = require('./chunk-6IZWX6ES.cjs');
21
21
 
22
22
 
23
23
  var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
@@ -813,7 +813,7 @@ function unstable_cache(fn, keyParts = [], options = {}) {
813
813
  ]);
814
814
  return getFarmDataCache().getOrSet(
815
815
  key,
816
- () => _chunkDATEWH3Wcjs._runInSharedCacheScope.call(void 0, "unstable_cache()", () => fn(...args)),
816
+ () => _chunk6IZWX6EScjs._runInSharedCacheScope.call(void 0, "unstable_cache()", () => fn(...args)),
817
817
  options
818
818
  );
819
819
  };
@@ -12,8 +12,8 @@ import {
12
12
  getFarmI18nClientState
13
13
  } from "./chunk-IHQIOZLC.mjs";
14
14
  import {
15
- _resolveCurrentRequest
16
- } from "./chunk-Y6LRPO2K.mjs";
15
+ _peekCurrentRequest
16
+ } from "./chunk-6LVRDOAW.mjs";
17
17
  import {
18
18
  stripFarmLocaleFromPathname
19
19
  } from "./chunk-L3KT7IXV.mjs";
@@ -213,7 +213,7 @@ function readCurrentUrl() {
213
213
  return void 0;
214
214
  }
215
215
  }
216
- const request = _resolveCurrentRequest();
216
+ const request = _peekCurrentRequest();
217
217
  if (!request) return void 0;
218
218
  try {
219
219
  return new URL(request.url);
@@ -9,10 +9,10 @@ import {
9
9
  } from "./chunk-IOEH4VWN.mjs";
10
10
  import {
11
11
  APIRouteConflictError
12
- } from "./chunk-T36UJS3X.mjs";
12
+ } from "./chunk-YYQVGKO5.mjs";
13
13
  import {
14
14
  findProgrammaticRouteFilesInDir
15
- } from "./chunk-MOSYH4CY.mjs";
15
+ } from "./chunk-FWCGUVVL.mjs";
16
16
  import {
17
17
  isFarmAPIRouteFileName
18
18
  } from "./chunk-CU625VAY.mjs";
@@ -23,7 +23,7 @@ import {
23
23
  matchAPIRouteAtBasePath,
24
24
  mergePluginAPIRoutes,
25
25
  resolveAPIRouteEndpoint
26
- } from "./chunk-WCWV25PG.mjs";
26
+ } from "./chunk-VTBXE6QG.mjs";
27
27
  import {
28
28
  isProgrammaticRoutesFileName
29
29
  } from "./chunk-KNHBTJP6.mjs";
@@ -47,7 +47,7 @@ import {
47
47
  } from "./chunk-ZZGQD7A4.mjs";
48
48
  import {
49
49
  resolveFarmRequestURL
50
- } from "./chunk-ZOABCQGT.mjs";
50
+ } from "./chunk-X3NGFVRF.mjs";
51
51
  import {
52
52
  AmbiguousRouteError,
53
53
  assertUniqueRouteParameters,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-Z3HATSKO.mjs";
5
5
  import {
6
6
  _resolveCurrentCspNonce
7
- } from "./chunk-Y6LRPO2K.mjs";
7
+ } from "./chunk-6LVRDOAW.mjs";
8
8
  import {
9
9
  __name
10
10
  } from "./chunk-LPEX4YW6.mjs";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-4SIYUGRY.mjs";
18
18
  import {
19
19
  _runInSharedCacheScope
20
- } from "./chunk-Y6LRPO2K.mjs";
20
+ } from "./chunk-6LVRDOAW.mjs";
21
21
  import {
22
22
  __name
23
23
  } from "./chunk-LPEX4YW6.mjs";
@@ -31,14 +31,14 @@ import {
31
31
  resolveFarmIsolatedClientHydrationMode,
32
32
  resolveModuleSourcePath,
33
33
  stripUseClientDirective
34
- } from "./chunk-FCOLU5P6.mjs";
34
+ } from "./chunk-FJGIVDA5.mjs";
35
35
  import {
36
36
  FARM_NODE_RESPONSE_END_PENDING
37
37
  } from "./chunk-FGH3ZXTP.mjs";
38
38
  import {
39
39
  generateFarmTypeArtifacts,
40
40
  resolveRouteRenderingConfig
41
- } from "./chunk-BPGO2IEP.mjs";
41
+ } from "./chunk-35WS7P2V.mjs";
42
42
  import {
43
43
  FARM_API_CATALOG_PATH,
44
44
  FARM_INFRA_SIGNATURE_HEADER,
@@ -53,7 +53,7 @@ import {
53
53
  resolveFarmApiCatalogInput,
54
54
  resolveFarmAppManifestInput,
55
55
  stripRouteGroups
56
- } from "./chunk-T6DLMX5V.mjs";
56
+ } from "./chunk-SVPGWJZF.mjs";
57
57
  import {
58
58
  isFarmPreviewDeploymentEnvironment
59
59
  } from "./chunk-BOYNDCZL.mjs";
@@ -137,7 +137,7 @@ import {
137
137
  } from "./chunk-AX7S67YV.mjs";
138
138
  import {
139
139
  MiddlewareManager
140
- } from "./chunk-45UZKX2J.mjs";
140
+ } from "./chunk-HJ64F4GS.mjs";
141
141
  import {
142
142
  _runWithMiddlewareContext,
143
143
  _runWithMiddlewareData
@@ -153,7 +153,7 @@ import {
153
153
  } from "./chunk-IOEH4VWN.mjs";
154
154
  import {
155
155
  APIRouteManager
156
- } from "./chunk-T36UJS3X.mjs";
156
+ } from "./chunk-YYQVGKO5.mjs";
157
157
  import {
158
158
  getFarmI18nClientSnapshot
159
159
  } from "./chunk-NPC7VWJE.mjs";
@@ -163,7 +163,7 @@ import {
163
163
  } from "./chunk-YOZYCI6Z.mjs";
164
164
  import {
165
165
  isFarmAPIPathname
166
- } from "./chunk-WCWV25PG.mjs";
166
+ } from "./chunk-VTBXE6QG.mjs";
167
167
  import {
168
168
  registerFarmMCPServer
169
169
  } from "./chunk-ZLAT2CWY.mjs";
@@ -212,7 +212,7 @@ import {
212
212
  } from "./chunk-ZZGQD7A4.mjs";
213
213
  import {
214
214
  FARM_VERSION
215
- } from "./chunk-H56MQYEG.mjs";
215
+ } from "./chunk-VLPII2JJ.mjs";
216
216
  import {
217
217
  DEFAULT_FARM_API_BASE_PATH
218
218
  } from "./chunk-7LTCDQRS.mjs";
@@ -231,13 +231,13 @@ import {
231
231
  } from "./chunk-JNZ4TDWM.mjs";
232
232
  import {
233
233
  FARM_CONFIG_REWRITES_PLUGIN_NAME
234
- } from "./chunk-5LL6TKII.mjs";
234
+ } from "./chunk-O7USYJ4U.mjs";
235
235
  import {
236
236
  isFarmNotFoundError
237
237
  } from "./chunk-CBBLJMR5.mjs";
238
238
  import {
239
239
  resolveFarmRequestURL
240
- } from "./chunk-ZOABCQGT.mjs";
240
+ } from "./chunk-X3NGFVRF.mjs";
241
241
  import {
242
242
  applyFarmBasePath,
243
243
  stripFarmBasePath
@@ -824,7 +824,7 @@ function loadFarmWorkflowsDevRuntime() {
824
824
  }
825
825
  __name(loadFarmWorkflowsDevRuntime, "loadFarmWorkflowsDevRuntime");
826
826
  function loadFarmDevtoolsSnapshotRuntime() {
827
- return import("./devtools-VEQQDVHE.mjs");
827
+ return import("./devtools-N3QLRIQU.mjs");
828
828
  }
829
829
  __name(loadFarmDevtoolsSnapshotRuntime, "loadFarmDevtoolsSnapshotRuntime");
830
830
  function loadFarmDevtoolsUIRuntime() {
@@ -6083,6 +6083,7 @@ async function defineConfig(config = {}) {
6083
6083
  __name(defineConfig, "defineConfig");
6084
6084
 
6085
6085
  export {
6086
+ farmImageImportsPlugin,
6086
6087
  createFarmReactRefreshPlugins,
6087
6088
  farmI18nClientBridgePlugin,
6088
6089
  farmServerOnlyEntriesPlugin,
@@ -446,7 +446,7 @@ export default defineTask({
446
446
  __name(createNitroTaskWrapper, "createNitroTaskWrapper");
447
447
  function createNitroWorkflowHTTPHandler(config, workflows, server) {
448
448
  return `
449
- import { H3 } from "h3";
449
+ import { H3 } from "nitro/h3";
450
450
  import { runTask } from "nitro/task";
451
451
  import {
452
452
  createFarmRequestBodyErrorResponse,