@farm.js/core 0.1.40 → 0.1.42

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 (238) hide show
  1. package/dist/{agent-mcp-DRlXq3lM.d.ts → agent-mcp-SSD6L3VZ.d.ts} +8 -2
  2. package/dist/{agent-mcp-XNF4JqHw.d.mts → agent-mcp-ssVy_tea.d.mts} +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-1h3lVT4a.d.mts} +5 -5
  20. package/dist/{app-CDJHPqZn.d.ts → app-KjFzdCqy.d.ts} +5 -5
  21. package/dist/app-manifest-D3RkVNuS.d.mts +120 -0
  22. package/dist/app-manifest-DaW8-tvX.d.ts +120 -0
  23. package/dist/app-markdown.d.mts +3 -3
  24. package/dist/app-markdown.d.ts +3 -3
  25. package/dist/cache.cjs +3 -3
  26. package/dist/cache.mjs +2 -2
  27. package/dist/{chunk-UM3ZV5EP.mjs → chunk-24SP5TGU.mjs} +1 -1
  28. package/dist/{chunk-B6IMBBOS.cjs → chunk-25LPIZSX.cjs} +3 -3
  29. package/dist/{chunk-WW374SGU.mjs → chunk-26RUNDIR.mjs} +1 -1
  30. package/dist/{chunk-B77AUCBV.cjs → chunk-2FUIT2G2.cjs} +3 -3
  31. package/dist/{chunk-IMQO6ZUU.mjs → chunk-2JZHQDUY.mjs} +2 -2
  32. package/dist/{chunk-BPGO2IEP.mjs → chunk-35WS7P2V.mjs} +24 -126
  33. package/dist/{chunk-XKIUHXHW.mjs → chunk-375K2ZVU.mjs} +46 -52
  34. package/dist/{chunk-MNUSIXGS.mjs → chunk-4KQDHTWX.mjs} +1 -1
  35. package/dist/{chunk-DATEWH3W.cjs → chunk-6IZWX6ES.cjs} +22 -8
  36. package/dist/{chunk-Y6LRPO2K.mjs → chunk-6LVRDOAW.mjs} +19 -5
  37. package/dist/{chunk-UMQAK3KP.cjs → chunk-6MVFHNYZ.cjs} +2 -2
  38. package/dist/{chunk-OLQ73ZO5.mjs → chunk-6PKXK4TY.mjs} +3 -3
  39. package/dist/{chunk-PYQ3ZG4Z.mjs → chunk-724JLMS4.mjs} +4 -4
  40. package/dist/{chunk-PNCM5MFD.mjs → chunk-7UEEHAW7.mjs} +1 -1
  41. package/dist/{chunk-EW4MEVLE.cjs → chunk-7YHSD3Z6.cjs} +82 -118
  42. package/dist/{chunk-DKU6NXRK.cjs → chunk-AHFRQMRX.cjs} +1 -1
  43. package/dist/{chunk-7VAJSSPG.mjs → chunk-B2GSRB3P.mjs} +1 -1
  44. package/dist/{chunk-JXB6DVCO.mjs → chunk-BPNRQ5BA.mjs} +1 -1
  45. package/dist/{chunk-FLZ4H25A.cjs → chunk-BXJ5HJTJ.cjs} +13 -12
  46. package/dist/{chunk-GNVEJUT5.cjs → chunk-C5KVWHIH.cjs} +21 -21
  47. package/dist/chunk-COABSY3U.mjs +196 -0
  48. package/dist/{chunk-Y2GNNXGV.cjs → chunk-D64OPY6A.cjs} +5 -5
  49. package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
  50. package/dist/{chunk-I64GEPOB.cjs → chunk-FEYQCYT7.cjs} +3 -3
  51. package/dist/{chunk-AXB5P7BK.mjs → chunk-FIAPD365.mjs} +1 -1
  52. package/dist/{chunk-7FHZ3E6D.cjs → chunk-GB7LDGY5.cjs} +2 -2
  53. package/dist/{chunk-45UZKX2J.mjs → chunk-HJ64F4GS.mjs} +2 -2
  54. package/dist/{chunk-IRYK4Z5M.cjs → chunk-I5MG3TKE.cjs} +2 -2
  55. package/dist/{chunk-YR2P74F7.cjs → chunk-IFWSR7YZ.cjs} +2 -2
  56. package/dist/{chunk-5E65AL7P.mjs → chunk-IN6RCKLL.mjs} +5 -4
  57. package/dist/{chunk-CKFK3Z2V.mjs → chunk-IVQY6UTY.mjs} +1 -1
  58. package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
  59. package/dist/{chunk-EORXKFLR.cjs → chunk-JEIG3EWE.cjs} +1 -1
  60. package/dist/{chunk-54QWHSNR.cjs → chunk-JG3MEQUH.cjs} +150 -156
  61. package/dist/{chunk-TFX4RTH2.mjs → chunk-JOW4HDJO.mjs} +1 -1
  62. package/dist/{chunk-H44XGLFU.cjs → chunk-L6A26QT5.cjs} +9 -9
  63. package/dist/{chunk-OZN4XL6L.cjs → chunk-LIZTLA5F.cjs} +7 -6
  64. package/dist/{chunk-62DY5GKS.mjs → chunk-LLUA2LSC.mjs} +2 -2
  65. package/dist/{chunk-LDPKAYVS.cjs → chunk-LYIZHJTK.cjs} +2 -2
  66. package/dist/{chunk-2DMWQWNJ.mjs → chunk-MEASUNVY.mjs} +1 -1
  67. package/dist/{chunk-T4II4MMW.mjs → chunk-MHHCLYXU.mjs} +1 -1
  68. package/dist/{chunk-SHFXCE5A.cjs → chunk-MHN4UR5U.cjs} +4 -4
  69. package/dist/{chunk-5JEC43MQ.cjs → chunk-MN4TQJ3W.cjs} +9 -9
  70. package/dist/{chunk-5XS5NCVM.cjs → chunk-MY5PZYAD.cjs} +4 -4
  71. package/dist/{chunk-2JG2LJDI.cjs → chunk-NBPNUQYO.cjs} +2 -2
  72. package/dist/{chunk-4XO5GSD6.cjs → chunk-NFG4PUPI.cjs} +2 -2
  73. package/dist/{chunk-Y4QVEU67.mjs → chunk-NU25TRIO.mjs} +5 -4
  74. package/dist/{chunk-5LL6TKII.mjs → chunk-O7USYJ4U.mjs} +1 -1
  75. package/dist/{chunk-VBN3UAPQ.mjs → chunk-P2UJF4SS.mjs} +1 -1
  76. package/dist/{chunk-T6DLMX5V.mjs → chunk-PIZXONIS.mjs} +73 -109
  77. package/dist/{chunk-KK22JPQM.cjs → chunk-QEILRWVV.cjs} +30 -132
  78. package/dist/{chunk-UXMIFB44.cjs → chunk-QIBP5EFA.cjs} +5 -5
  79. package/dist/{chunk-TAKG7ZCD.cjs → chunk-QKZMB7LY.cjs} +14 -14
  80. package/dist/{chunk-FCOLU5P6.mjs → chunk-QTEJGB5A.mjs} +39 -16
  81. package/dist/{chunk-QJM7A4CR.cjs → chunk-S7MTDRYA.cjs} +10 -10
  82. package/dist/{chunk-ACLPN56I.mjs → chunk-SGB4IW7K.mjs} +1 -1
  83. package/dist/{chunk-GKQL726H.cjs → chunk-TCJ4A4A2.cjs} +78 -82
  84. package/dist/{chunk-ZKVJYQPO.mjs → chunk-TUL355PH.mjs} +13 -17
  85. package/dist/{chunk-H56MQYEG.mjs → chunk-U2UC7UGP.mjs} +1 -1
  86. package/dist/{chunk-I63UCMXW.mjs → chunk-ULQOP5UI.mjs} +2 -2
  87. package/dist/{chunk-HBEBV7OZ.mjs → chunk-UQUEANTY.mjs} +1 -1
  88. package/dist/chunk-VHRS3MCW.cjs +196 -0
  89. package/dist/{chunk-WCWV25PG.mjs → chunk-VTBXE6QG.mjs} +2 -2
  90. package/dist/{chunk-E55H6UKH.cjs → chunk-WLHA5USH.cjs} +9 -9
  91. package/dist/{chunk-YJBWB6GF.mjs → chunk-WMBRZI5V.mjs} +1 -1
  92. package/dist/{chunk-AGR7F3LA.cjs → chunk-WROEFVNO.cjs} +3 -3
  93. package/dist/{chunk-CA62IQY3.cjs → chunk-WU7ZS3EM.cjs} +2 -2
  94. package/dist/{chunk-ZOABCQGT.mjs → chunk-X3NGFVRF.mjs} +37 -22
  95. package/dist/{chunk-XJAEZCT6.mjs → chunk-XUC6CFLE.mjs} +1 -1
  96. package/dist/{chunk-6ILGLCXF.cjs → chunk-YWCYV7QC.cjs} +8 -8
  97. package/dist/{chunk-T36UJS3X.mjs → chunk-YYQVGKO5.mjs} +2 -2
  98. package/dist/{chunk-EGCT3AHF.cjs → chunk-ZATTDMBW.cjs} +127 -104
  99. package/dist/{chunk-PGW7HZE2.cjs → chunk-ZS6HDNOM.cjs} +6 -6
  100. package/dist/{chunk-XVIEGKTT.cjs → chunk-ZTP3BJG6.cjs} +41 -26
  101. package/dist/{client-plugins-B_5QbNrp.d.mts → client-plugins-C9Py_50W.d.mts} +79 -7
  102. package/dist/{client-plugins-DgSfIWIF.d.ts → client-plugins-DIem0I0W.d.ts} +79 -7
  103. package/dist/client-plugins.d.mts +2 -2
  104. package/dist/client-plugins.d.ts +2 -2
  105. package/dist/client.cjs +5 -5
  106. package/dist/client.d.mts +6 -6
  107. package/dist/client.d.ts +6 -6
  108. package/dist/client.mjs +4 -4
  109. package/dist/client.react-server.mjs +2 -0
  110. package/dist/config.d.mts +2 -2
  111. package/dist/config.d.ts +2 -2
  112. package/dist/{devtools-ANJ7JAPQ.cjs → devtools-2RY3EKHL.cjs} +6 -6
  113. package/dist/{devtools-VEQQDVHE.mjs → devtools-Q3LBNUJ7.mjs} +5 -5
  114. package/dist/docs.cjs +8 -8
  115. package/dist/docs.d.mts +3 -3
  116. package/dist/docs.d.ts +3 -3
  117. package/dist/docs.mjs +7 -7
  118. package/dist/headers.cjs +4 -4
  119. package/dist/headers.mjs +3 -3
  120. package/dist/image/server.d.mts +1 -1
  121. package/dist/image/server.d.ts +1 -1
  122. package/dist/image/sharp.d.mts +1 -1
  123. package/dist/image/sharp.d.ts +1 -1
  124. package/dist/{image-config-Duob7wER.d.ts → image-config-BpH1q5R8.d.mts} +4 -1
  125. package/dist/{image-config-Duob7wER.d.mts → image-config-BpH1q5R8.d.ts} +4 -1
  126. package/dist/image.d.mts +1 -1
  127. package/dist/image.d.ts +1 -1
  128. package/dist/index.cjs +40 -38
  129. package/dist/index.d.mts +16 -135
  130. package/dist/index.d.ts +16 -135
  131. package/dist/index.mjs +39 -37
  132. package/dist/integrations.d.mts +2 -2
  133. package/dist/integrations.d.ts +2 -2
  134. package/dist/internal/app-markdown-runtime.d.mts +3 -3
  135. package/dist/internal/app-markdown-runtime.d.ts +3 -3
  136. package/dist/internal/build-runtime.cjs +23 -23
  137. package/dist/internal/build-runtime.d.mts +4 -4
  138. package/dist/internal/build-runtime.d.ts +4 -4
  139. package/dist/internal/build-runtime.mjs +22 -22
  140. package/dist/internal/cli-runtime.cjs +13 -13
  141. package/dist/internal/cli-runtime.mjs +12 -12
  142. package/dist/internal/client-error-overlay.cjs +4 -4
  143. package/dist/internal/client-error-overlay.mjs +1 -1
  144. package/dist/internal/compression-runtime.d.mts +2 -2
  145. package/dist/internal/compression-runtime.d.ts +2 -2
  146. package/dist/internal/config-runtime.cjs +6 -6
  147. package/dist/internal/config-runtime.d.mts +3 -3
  148. package/dist/internal/config-runtime.d.ts +3 -3
  149. package/dist/internal/config-runtime.mjs +5 -5
  150. package/dist/internal/docs-precompiled-runtime.cjs +3 -3
  151. package/dist/internal/docs-precompiled-runtime.mjs +2 -2
  152. package/dist/internal/infra-analytics-runtime.cjs +5 -5
  153. package/dist/internal/infra-analytics-runtime.mjs +3 -3
  154. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  155. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  156. package/dist/internal/production-runtime.cjs +21 -13
  157. package/dist/internal/production-runtime.d.mts +29 -126
  158. package/dist/internal/production-runtime.d.ts +29 -126
  159. package/dist/internal/production-runtime.mjs +21 -13
  160. package/dist/markdown.d.mts +2 -2
  161. package/dist/markdown.d.ts +2 -2
  162. package/dist/middleware.cjs +7 -7
  163. package/dist/middleware.d.mts +4 -4
  164. package/dist/middleware.d.ts +4 -4
  165. package/dist/middleware.mjs +6 -6
  166. package/dist/navigation.cjs +4 -4
  167. package/dist/navigation.d.mts +5 -5
  168. package/dist/navigation.d.ts +5 -5
  169. package/dist/navigation.mjs +3 -3
  170. package/dist/{nitro-NFG2LBRC.mjs → nitro-KDACKNHU.mjs} +1 -1
  171. package/dist/{nitro-S2QABUFA.cjs → nitro-NPGU6VBT.cjs} +2 -2
  172. package/dist/plugin.cjs +21 -21
  173. package/dist/plugin.d.mts +4 -3
  174. package/dist/plugin.d.ts +4 -3
  175. package/dist/plugin.mjs +20 -20
  176. package/dist/{production-runtime-j_WCfuwB.d.mts → production-runtime-CHFKIgpW.d.mts} +1 -1
  177. package/dist/{production-runtime-DfknD3g_.d.ts → production-runtime-bjjWq-DA.d.ts} +1 -1
  178. package/dist/query/client.cjs +2 -2
  179. package/dist/query/client.mjs +3 -3
  180. package/dist/{render-plan-CFIhcYYS.d.ts → render-plan-B2UndB4x.d.ts} +1 -1
  181. package/dist/{render-plan-ChUtsymc.d.mts → render-plan-DOHg6wdO.d.mts} +1 -1
  182. package/dist/renderer-client.d.mts +4 -4
  183. package/dist/renderer-client.d.ts +4 -4
  184. package/dist/{request-F4HRwzSd.d.mts → request-DQcGfdgQ.d.mts} +1 -1
  185. package/dist/{request-RJvelT8L.d.ts → request-DVNXRQrI.d.ts} +1 -1
  186. package/dist/request.cjs +3 -3
  187. package/dist/request.d.mts +3 -3
  188. package/dist/request.d.ts +3 -3
  189. package/dist/request.mjs +2 -2
  190. package/dist/{route-rendering-D4coJ-kw.d.ts → route-rendering-B_6fj-GG.d.ts} +1 -1
  191. package/dist/{route-rendering-3a4fbNyC.d.mts → route-rendering-CEX4mFn-.d.mts} +1 -1
  192. package/dist/{router-WLEW3Te1.d.ts → router-CHEMHm1P.d.ts} +1 -1
  193. package/dist/{router-DqIssGRO.d.mts → router-CKHPBKXX.d.mts} +1 -1
  194. package/dist/routes.cjs +4 -4
  195. package/dist/routes.d.mts +2 -2
  196. package/dist/routes.d.ts +2 -2
  197. package/dist/routes.mjs +3 -3
  198. package/dist/{runtime-BrNdLOq9.d.ts → runtime-Br2ZDTAv.d.ts} +1 -1
  199. package/dist/{runtime-CmE_j-js.d.mts → runtime-jj8TKNsy.d.mts} +1 -1
  200. package/dist/server-fn.cjs +4 -4
  201. package/dist/server-fn.mjs +3 -3
  202. package/dist/server-plugins.cjs +5 -5
  203. package/dist/server-plugins.d.mts +3 -3
  204. package/dist/server-plugins.d.ts +3 -3
  205. package/dist/server-plugins.mjs +4 -4
  206. package/dist/server-query.cjs +5 -5
  207. package/dist/server-query.mjs +4 -4
  208. package/dist/server.cjs +46 -46
  209. package/dist/server.d.mts +10 -9
  210. package/dist/server.d.ts +10 -9
  211. package/dist/server.mjs +25 -25
  212. package/dist/{spa-router-C41zjnFl.d.mts → spa-router-BEvS9Erj.d.mts} +2 -2
  213. package/dist/{spa-router-D_0VXqPC.d.ts → spa-router-DmCuH5B7.d.ts} +2 -2
  214. package/dist/ssg-57v6cZcW.d.mts +184 -0
  215. package/dist/ssg-gT093ETk.d.ts +184 -0
  216. package/dist/testing.cjs +11 -11
  217. package/dist/testing.d.mts +2 -2
  218. package/dist/testing.d.ts +2 -2
  219. package/dist/testing.mjs +8 -8
  220. package/dist/theme/server.cjs +4 -4
  221. package/dist/theme/server.mjs +3 -3
  222. package/dist/{utils-YYcWsOJp.d.ts → utils-CCTKvR-P.d.ts} +1 -1
  223. package/dist/{utils-BKWSe3S7.d.mts → utils-raHHQVyL.d.mts} +1 -1
  224. package/dist/version.cjs +2 -2
  225. package/dist/version.mjs +1 -1
  226. package/dist/vite.cjs +38 -22
  227. package/dist/vite.d.mts +41 -4
  228. package/dist/vite.d.ts +41 -4
  229. package/dist/vite.mjs +38 -22
  230. package/dist/workflows.cjs +2 -2
  231. package/dist/workflows.mjs +1 -1
  232. package/package.json +2 -1
  233. package/dist/chunk-DAO7JGTS.mjs +0 -73
  234. package/dist/chunk-SYQ3MOWW.cjs +0 -73
  235. package/dist/programmatic-routes-client-DcoxEaLe.d.mts +0 -55
  236. package/dist/programmatic-routes-client-DcoxEaLe.d.ts +0 -55
  237. /package/dist/{chunk-MOSYH4CY.mjs → chunk-FWCGUVVL.mjs} +0 -0
  238. /package/dist/{chunk-4A3YUB4D.cjs → chunk-KF6VDJH7.cjs} +0 -0
@@ -0,0 +1,196 @@
1
+ import {
2
+ __name
3
+ } from "./chunk-LPEX4YW6.mjs";
4
+
5
+ // src/route-rendering.ts
6
+ function normalizeDynamicMode(value) {
7
+ switch (value) {
8
+ case "auto":
9
+ case "force-static":
10
+ case "force-dynamic":
11
+ case "error":
12
+ return value;
13
+ default:
14
+ return void 0;
15
+ }
16
+ }
17
+ __name(normalizeDynamicMode, "normalizeDynamicMode");
18
+ function mergeRouteRenderingDirectiveConfig(directiveConfig, mod, options) {
19
+ const pprEnabled = options?.experimentalPPR === true;
20
+ let ssg = directiveConfig?.ssg ?? false;
21
+ let requestedPPR = directiveConfig?.ppr ?? false;
22
+ let revalidate = directiveConfig?.revalidate;
23
+ const moduleDynamic = normalizeDynamicMode(mod?.dynamic);
24
+ const dynamic = moduleDynamic ?? directiveConfig?.dynamic;
25
+ const hasExplicitSsg = typeof mod?.ssg === "boolean";
26
+ const hasExplicitPPR = typeof mod?.ppr === "boolean" || typeof mod?.experimental_ppr === "boolean";
27
+ if (hasExplicitSsg) {
28
+ ssg = mod.ssg === true;
29
+ }
30
+ if (hasExplicitPPR) {
31
+ requestedPPR = mod?.ppr === true || mod?.experimental_ppr === true;
32
+ }
33
+ if (typeof mod?.revalidate === "number") {
34
+ if (mod.revalidate > 0) {
35
+ revalidate = mod.revalidate;
36
+ if (!hasExplicitSsg && !requestedPPR) {
37
+ ssg = true;
38
+ }
39
+ } else {
40
+ revalidate = void 0;
41
+ if (!hasExplicitSsg) {
42
+ ssg = false;
43
+ }
44
+ }
45
+ } else if (mod?.revalidate === false) {
46
+ revalidate = void 0;
47
+ }
48
+ if (moduleDynamic === "force-static" || moduleDynamic === "error") {
49
+ ssg = true;
50
+ requestedPPR = false;
51
+ } else if (moduleDynamic === "force-dynamic") {
52
+ ssg = false;
53
+ requestedPPR = false;
54
+ revalidate = void 0;
55
+ }
56
+ if (directiveConfig?.requestBound && ssg) {
57
+ ssg = false;
58
+ revalidate = void 0;
59
+ }
60
+ const ppr = pprEnabled && !ssg && requestedPPR;
61
+ return {
62
+ ssg,
63
+ ppr,
64
+ revalidate: ssg || ppr ? revalidate : void 0,
65
+ dynamic,
66
+ directive: directiveConfig?.directive
67
+ };
68
+ }
69
+ __name(mergeRouteRenderingDirectiveConfig, "mergeRouteRenderingDirectiveConfig");
70
+
71
+ // src/ssg-paths.ts
72
+ var OPTIONAL_CATCH_ALL_SEGMENT = /^\[\[\.\.\.([^\]]+)\]\]$/;
73
+ var REQUIRED_CATCH_ALL_SEGMENT = /^\[\.\.\.([^\]]+)\]$/;
74
+ var REQUIRED_DYNAMIC_SEGMENT = /^\[([^\]]+)\]$/;
75
+ function materializeSSGRoutePath(routePattern, params) {
76
+ const outputSegments = [];
77
+ for (const segment of routePattern.split("/")) {
78
+ if (!segment) {
79
+ continue;
80
+ }
81
+ const optionalCatchAll = segment.match(OPTIONAL_CATCH_ALL_SEGMENT);
82
+ if (optionalCatchAll) {
83
+ const parameterName = optionalCatchAll[1];
84
+ const value = params[parameterName];
85
+ const values = readCatchAllSegments(value, {
86
+ optional: true,
87
+ parameterName,
88
+ routePattern
89
+ });
90
+ outputSegments.push(...values.map(encodePathSegment));
91
+ continue;
92
+ }
93
+ const requiredCatchAll = segment.match(REQUIRED_CATCH_ALL_SEGMENT);
94
+ if (requiredCatchAll) {
95
+ const parameterName = requiredCatchAll[1];
96
+ const value = params[parameterName];
97
+ const values = readCatchAllSegments(value, {
98
+ optional: false,
99
+ parameterName,
100
+ routePattern
101
+ });
102
+ outputSegments.push(...values.map(encodePathSegment));
103
+ continue;
104
+ }
105
+ const requiredDynamic = segment.match(REQUIRED_DYNAMIC_SEGMENT);
106
+ if (requiredDynamic) {
107
+ const parameterName = requiredDynamic[1];
108
+ const value = params[parameterName];
109
+ if (isStaticPathArray(value)) {
110
+ throw new Error(
111
+ `Cannot materialize SSG route "${routePattern}": parameter "${parameterName}" must be a scalar value; arrays are only supported for catch-all segments.`
112
+ );
113
+ }
114
+ if (isMissingPathValue(value)) {
115
+ throw missingRequiredParameterError(routePattern, parameterName);
116
+ }
117
+ outputSegments.push(encodePathSegment(value));
118
+ continue;
119
+ }
120
+ outputSegments.push(segment);
121
+ }
122
+ return outputSegments.length > 0 ? `/${outputSegments.join("/")}` : "/";
123
+ }
124
+ __name(materializeSSGRoutePath, "materializeSSGRoutePath");
125
+ function readCatchAllSegments(value, options) {
126
+ if (isMissingPathValue(value) || isStaticPathArray(value) && value.length === 0) {
127
+ if (options.optional) {
128
+ return [];
129
+ }
130
+ throw missingRequiredParameterError(options.routePattern, options.parameterName);
131
+ }
132
+ const segments = isStaticPathArray(value) ? [...value] : [value];
133
+ if (segments.some(isMissingPathValue)) {
134
+ throw new Error(
135
+ `Cannot materialize SSG route "${options.routePattern}": catch-all parameter "${options.parameterName}" contains an empty path segment.`
136
+ );
137
+ }
138
+ return segments;
139
+ }
140
+ __name(readCatchAllSegments, "readCatchAllSegments");
141
+ function getOptionalCatchAllParameterNames(routePattern) {
142
+ return new Set(
143
+ routePattern.split("/").map((segment) => segment.match(OPTIONAL_CATCH_ALL_SEGMENT)?.[1]).filter((name) => Boolean(name))
144
+ );
145
+ }
146
+ __name(getOptionalCatchAllParameterNames, "getOptionalCatchAllParameterNames");
147
+ function normalizeStaticPathParams(params, optionalCatchAllParams) {
148
+ const entries = Object.entries(params).map(([key, value]) => {
149
+ const emptyOptionalCatchAll = optionalCatchAllParams.has(key) && (isMissingPathValue(value) || isStaticPathArray(value) && value.length === 0);
150
+ return [
151
+ key,
152
+ emptyOptionalCatchAll ? "" : isStaticPathArray(value) ? value.map(String).join("/") : String(value)
153
+ ];
154
+ });
155
+ for (const name of optionalCatchAllParams) {
156
+ if (!Object.prototype.hasOwnProperty.call(params, name)) {
157
+ entries.push([name, ""]);
158
+ }
159
+ }
160
+ return Object.fromEntries(entries);
161
+ }
162
+ __name(normalizeStaticPathParams, "normalizeStaticPathParams");
163
+ function isMissingPathValue(value) {
164
+ return value === "" || value === null || typeof value === "undefined";
165
+ }
166
+ __name(isMissingPathValue, "isMissingPathValue");
167
+ function isStaticPathArray(value) {
168
+ return Array.isArray(value);
169
+ }
170
+ __name(isStaticPathArray, "isStaticPathArray");
171
+ function missingRequiredParameterError(routePattern, parameterName) {
172
+ return new Error(
173
+ `Cannot materialize SSG route "${routePattern}": required parameter "${parameterName}" is missing or empty.`
174
+ );
175
+ }
176
+ __name(missingRequiredParameterError, "missingRequiredParameterError");
177
+ function encodePathSegment(value) {
178
+ const encoded = encodeURIComponent(String(value)).replace(
179
+ /[!'()*]/g,
180
+ (character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`
181
+ );
182
+ if (encoded === "." || encoded === "..") {
183
+ throw new Error(
184
+ `Cannot materialize SSG path segment "${encoded}": dot-only segments are unsafe to prerender.`
185
+ );
186
+ }
187
+ return encoded;
188
+ }
189
+ __name(encodePathSegment, "encodePathSegment");
190
+
191
+ export {
192
+ mergeRouteRenderingDirectiveConfig,
193
+ materializeSSGRoutePath,
194
+ getOptionalCatchAllParameterNames,
195
+ normalizeStaticPathParams
196
+ };
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk2JG2LJDIcjs = require('./chunk-2JG2LJDI.cjs');
6
+ var _chunkNBPNUQYOcjs = require('./chunk-NBPNUQYO.cjs');
7
7
 
8
8
 
9
9
 
@@ -86,19 +86,19 @@ var WebResponseHeaderMap = _WebResponseHeaderMap;
86
86
  var _WebCookieJar = class _WebCookieJar {
87
87
  constructor(request, headers) {
88
88
  this.headers = headers;
89
- this.cookies = _chunk2JG2LJDIcjs.parseMiddlewareCookieHeader.call(void 0, request.headers.get("cookie"));
89
+ this.cookies = _chunkNBPNUQYOcjs.parseMiddlewareCookieHeader.call(void 0, request.headers.get("cookie"));
90
90
  }
91
91
  get(name) {
92
92
  return this.cookies[name];
93
93
  }
94
94
  set(name, value, options = {}) {
95
95
  this.cookies[name] = value;
96
- const cookieString = _chunk2JG2LJDIcjs.serializeMiddlewareCookie.call(void 0, name, value, options);
96
+ const cookieString = _chunkNBPNUQYOcjs.serializeMiddlewareCookie.call(void 0, name, value, options);
97
97
  this.headers.appendSetCookie(cookieString);
98
98
  }
99
99
  delete(name, options = {}) {
100
100
  delete this.cookies[name];
101
- this.headers.appendSetCookie(_chunk2JG2LJDIcjs.serializeMiddlewareCookieDeletion.call(void 0, name, options));
101
+ this.headers.appendSetCookie(_chunkNBPNUQYOcjs.serializeMiddlewareCookieDeletion.call(void 0, name, options));
102
102
  }
103
103
  getAll() {
104
104
  return { ...this.cookies };
@@ -417,7 +417,7 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, normalizeConfigMiddleware, "normalizeConfi
417
417
  function normalizeFileMiddleware(modules = []) {
418
418
  const entries = [];
419
419
  for (const moduleEntry of modules) {
420
- const normalized = _chunk2JG2LJDIcjs.normalizeMiddlewareModule.call(void 0, moduleEntry.module, moduleEntry.path);
420
+ const normalized = _chunkNBPNUQYOcjs.normalizeMiddlewareModule.call(void 0, moduleEntry.module, moduleEntry.path);
421
421
  if (!normalized) {
422
422
  continue;
423
423
  }
@@ -616,6 +616,74 @@ function applyFarmPreviewRobotsTag(response) {
616
616
  }
617
617
  __name(applyFarmPreviewRobotsTag, "applyFarmPreviewRobotsTag");
618
618
 
619
+ // src/app-manifest-config.ts
620
+ var NAME = "agent.manifest";
621
+ function isObject(value) {
622
+ return typeof value === "object" && value !== null && !Array.isArray(value);
623
+ }
624
+ __name(isObject, "isObject");
625
+ function checkKeys(value, keys, name) {
626
+ for (const key of Object.keys(value)) {
627
+ if (!keys.includes(key)) {
628
+ throw new TypeError(`${name} has an unknown option "${key}"; expected ${keys.join(", ")}.`);
629
+ }
630
+ }
631
+ }
632
+ __name(checkKeys, "checkKeys");
633
+ function readBoolean(value, name, fallback = true) {
634
+ if (value === void 0) return fallback;
635
+ if (typeof value !== "boolean") throw new TypeError(`${name} must be a boolean.`);
636
+ return value;
637
+ }
638
+ __name(readBoolean, "readBoolean");
639
+ function readHide(value, name) {
640
+ if (value === void 0) return [];
641
+ if (!Array.isArray(value) || value.some((entry) => typeof entry !== "string" || !entry.trim())) {
642
+ throw new TypeError(`${name} must be an array of non-empty strings.`);
643
+ }
644
+ return [...new Set(value.map((entry) => entry.trim()))];
645
+ }
646
+ __name(readHide, "readHide");
647
+ function readSection(value, name, keys, read) {
648
+ if (value === false) return false;
649
+ if (value === void 0 || value === true) return read({});
650
+ if (!isObject(value)) throw new TypeError(`${name} must be true, false, or an options object.`);
651
+ checkKeys(value, keys, name);
652
+ return read(value);
653
+ }
654
+ __name(readSection, "readSection");
655
+ function resolveFarmAppManifestConfig(input) {
656
+ if (input === false) return false;
657
+ if (input !== void 0 && input !== true && !isObject(input)) {
658
+ throw new TypeError(`${NAME} must be true, false, or an options object.`);
659
+ }
660
+ const config = isObject(input) ? input : {};
661
+ checkKeys(config, ["app", "packages", "mcp", "webmcp", "integrations", "agent", "plugins"], NAME);
662
+ const packages = config.packages;
663
+ if (packages !== void 0 && typeof packages !== "boolean" && packages !== "names") {
664
+ throw new TypeError(`${NAME}.packages must be true, false, or "names".`);
665
+ }
666
+ return {
667
+ app: readSection(config.app, `${NAME}.app`, ["version", "renderer", "build"], (app) => ({
668
+ version: readBoolean(app.version, `${NAME}.app.version`),
669
+ renderer: readBoolean(app.renderer, `${NAME}.app.renderer`),
670
+ build: readBoolean(app.build, `${NAME}.app.build`)
671
+ })),
672
+ packages: packages ?? true,
673
+ mcp: readSection(config.mcp, `${NAME}.mcp`, ["schemas", "hide"], (mcp) => ({
674
+ schemas: readBoolean(mcp.schemas, `${NAME}.mcp.schemas`),
675
+ hide: readHide(mcp.hide, `${NAME}.mcp.hide`)
676
+ })),
677
+ webmcp: readSection(config.webmcp, `${NAME}.webmcp`, ["hide"], (webmcp) => ({
678
+ hide: readHide(webmcp.hide, `${NAME}.webmcp.hide`)
679
+ })),
680
+ integrations: readBoolean(config.integrations, `${NAME}.integrations`),
681
+ agent: readBoolean(config.agent, `${NAME}.agent`),
682
+ plugins: readBoolean(config.plugins, `${NAME}.plugins`)
683
+ };
684
+ }
685
+ __name(resolveFarmAppManifestConfig, "resolveFarmAppManifestConfig");
686
+
619
687
  export {
620
688
  resolveFarmAgentCrawlers,
621
689
  createFarmAgentRobots,
@@ -626,6 +694,7 @@ export {
626
694
  manageFarmLinkHeaderPreloads,
627
695
  manageFarmDocumentPreloads,
628
696
  reportFarmPreloadWarnings,
697
+ resolveFarmAppManifestConfig,
629
698
  FARM_PREVIEW_ROBOTS_TAG,
630
699
  resolveFarmNoindexPreviews,
631
700
  applyFarmPreviewRobotsTag
@@ -14,7 +14,7 @@ var _chunkSOR334EBcjs = require('./chunk-SOR334EB.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkUMQAK3KPcjs = require('./chunk-UMQAK3KP.cjs');
17
+ var _chunk6MVFHNYZcjs = require('./chunk-6MVFHNYZ.cjs');
18
18
 
19
19
 
20
20
  var _chunkNYJMY3JAcjs = require('./chunk-NYJMY3JA.cjs');
@@ -616,7 +616,7 @@ async function resolveProgrammaticRouteData(route, dataHooks, context) {
616
616
  const cacheKey = _chunkNYJMY3JAcjs.createFarmCacheKey.call(void 0, ["route-data", routeDataKey]);
617
617
  const cacheOptions = {
618
618
  tags: [
619
- _chunkUMQAK3KPcjs.createRouteDataCacheTag.call(void 0, routeDataKey),
619
+ _chunk6MVFHNYZcjs.createRouteDataCacheTag.call(void 0, routeDataKey),
620
620
  ...await resolveProgrammaticRouteDataKeys(dataHooks.tags, context)
621
621
  ],
622
622
  paths: [
@@ -625,7 +625,7 @@ async function resolveProgrammaticRouteData(route, dataHooks, context) {
625
625
  ],
626
626
  revalidate
627
627
  };
628
- return _chunkUMQAK3KPcjs.getFarmDataCache.call(void 0, ).getOrSet(cacheKey, () => dataHooks.main(context), cacheOptions);
628
+ return _chunk6MVFHNYZcjs.getFarmDataCache.call(void 0, ).getOrSet(cacheKey, () => dataHooks.main(context), cacheOptions);
629
629
  }
630
630
  _chunkS3JO3N4Hcjs.__name.call(void 0, resolveProgrammaticRouteData, "resolveProgrammaticRouteData");
631
631
  async function resolveProgrammaticRouteDataKeys(input, context) {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-JM5XPKWH.mjs";
10
10
  import {
11
11
  getCurrentRequestOrNull
12
- } from "./chunk-ZOABCQGT.mjs";
12
+ } from "./chunk-X3NGFVRF.mjs";
13
13
  import {
14
14
  __name
15
15
  } from "./chunk-LPEX4YW6.mjs";
@@ -34,7 +34,7 @@ var _chunkS3A45T7Fcjs = require('./chunk-S3A45T7F.cjs');
34
34
  var _chunkZEG3OPIBcjs = require('./chunk-ZEG3OPIB.cjs');
35
35
 
36
36
 
37
- var _chunkDATEWH3Wcjs = require('./chunk-DATEWH3W.cjs');
37
+ var _chunk6IZWX6EScjs = require('./chunk-6IZWX6ES.cjs');
38
38
 
39
39
 
40
40
  var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
@@ -1119,7 +1119,7 @@ function createApiClients(options = {}) {
1119
1119
  "api is server-only. Use apiClient from createApiClients() in the browser."
1120
1120
  );
1121
1121
  }
1122
- const currentRequest = _chunkDATEWH3Wcjs._resolveCurrentRequest.call(void 0, );
1122
+ const currentRequest = _chunk6IZWX6EScjs._resolveCurrentRequest.call(void 0, );
1123
1123
  const runtime = _chunk72ADZ6GQcjs.resolveAPIRequestRuntime.call(void 0, );
1124
1124
  if (!currentRequest || !runtime) {
1125
1125
  throw new Error(
@@ -8,7 +8,7 @@ import {
8
8
  parseMiddlewareCookieHeader,
9
9
  serializeMiddlewareCookie,
10
10
  serializeMiddlewareCookieDeletion
11
- } from "./chunk-TFX4RTH2.mjs";
11
+ } from "./chunk-JOW4HDJO.mjs";
12
12
  import {
13
13
  compileMiddlewareConfig,
14
14
  compileMiddlewareRoute,
@@ -44,7 +44,7 @@ import {
44
44
  } from "./chunk-CBBLJMR5.mjs";
45
45
  import {
46
46
  resolveFarmRequestURL
47
- } from "./chunk-ZOABCQGT.mjs";
47
+ } from "./chunk-X3NGFVRF.mjs";
48
48
  import {
49
49
  stripFarmLocaleFromPathname
50
50
  } from "./chunk-L3KT7IXV.mjs";
@@ -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 _chunkH44XGLFUcjs = require('./chunk-H44XGLFU.cjs');
3
+ var _chunkL6A26QT5cjs = require('./chunk-L6A26QT5.cjs');
4
4
 
5
5
 
6
6
  var _chunkALPWLT27cjs = require('./chunk-ALPWLT27.cjs');
@@ -418,7 +418,7 @@ function farmMiddlewarePlugin(options = {}) {
418
418
  mode: server.config.mode === "production" ? "production" : "development",
419
419
  basePath: _nullishCoalesce(options.basePath, () => ( "/"))
420
420
  });
421
- manager = new (0, _chunkH44XGLFUcjs.MiddlewareManager)(
421
+ manager = new (0, _chunkL6A26QT5cjs.MiddlewareManager)(
422
422
  getMiddlewareAppDirectory(server.config.root, srcDir),
423
423
  server,
424
424
  options.middleware,
@@ -6,7 +6,7 @@ var _chunkX3GMHKO3cjs = require('./chunk-X3GMHKO3.cjs');
6
6
  var _chunkGS3WR5HXcjs = require('./chunk-GS3WR5HX.cjs');
7
7
 
8
8
 
9
- var _chunkXVIEGKTTcjs = require('./chunk-XVIEGKTT.cjs');
9
+ var _chunkZTP3BJG6cjs = require('./chunk-ZTP3BJG6.cjs');
10
10
 
11
11
 
12
12
  var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
@@ -301,7 +301,7 @@ function farmInfraAnalyticsPlugin(options, send) {
301
301
  context.state.unsubscribe = _chunkGS3WR5HXcjs.onFarmEvent.call(void 0,
302
302
  (event) => {
303
303
  if (!isToolEvent(event)) return;
304
- const request = _chunkXVIEGKTTcjs.getCurrentRequestOrNull.call(void 0, );
304
+ const request = _chunkZTP3BJG6cjs.getCurrentRequestOrNull.call(void 0, );
305
305
  if (!request) return;
306
306
  const metadata = context.requestContext.get(request, contextKey);
307
307
  if (!metadata) return;
@@ -7,13 +7,14 @@ import {
7
7
  } from "./chunk-WMHG64DA.mjs";
8
8
  import {
9
9
  applyFarmCacheInvalidationTargets
10
- } from "./chunk-7VAJSSPG.mjs";
10
+ } from "./chunk-B2GSRB3P.mjs";
11
11
  import {
12
12
  getFarmRedirectError
13
13
  } from "./chunk-CBBLJMR5.mjs";
14
14
  import {
15
- _resolveCurrentRequestForApp
16
- } from "./chunk-Y6LRPO2K.mjs";
15
+ _resolveCurrentRequestForApp,
16
+ _toAppRequestView
17
+ } from "./chunk-6LVRDOAW.mjs";
17
18
  import {
18
19
  __name
19
20
  } from "./chunk-LPEX4YW6.mjs";
@@ -118,7 +119,7 @@ function createServerFn(options) {
118
119
  throw labelInputErrors && isSchemaValidationFailure(cause) ? new ServerFnInputError(cause) : cause;
119
120
  }
120
121
  const executionContext = getServerActionExecutionContext();
121
- const request = executionContext?.request ?? _resolveCurrentRequestForApp();
122
+ const request = executionContext ? _toAppRequestView(executionContext.request) : _resolveCurrentRequestForApp();
122
123
  const signal = executionContext?.signal ?? request?.signal ?? getServerActionSignal();
123
124
  const handlerContext = {
124
125
  input,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  getRouteGroupScope,
9
9
  isInRouteGroupScope
10
- } from "./chunk-T6DLMX5V.mjs";
10
+ } from "./chunk-PIZXONIS.mjs";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-LPEX4YW6.mjs";
@@ -616,6 +616,75 @@ function applyFarmPreviewRobotsTag(response) {
616
616
  }
617
617
  _chunkS3JO3N4Hcjs.__name.call(void 0, applyFarmPreviewRobotsTag, "applyFarmPreviewRobotsTag");
618
618
 
619
+ // src/app-manifest-config.ts
620
+ var NAME = "agent.manifest";
621
+ function isObject(value) {
622
+ return typeof value === "object" && value !== null && !Array.isArray(value);
623
+ }
624
+ _chunkS3JO3N4Hcjs.__name.call(void 0, isObject, "isObject");
625
+ function checkKeys(value, keys, name) {
626
+ for (const key of Object.keys(value)) {
627
+ if (!keys.includes(key)) {
628
+ throw new TypeError(`${name} has an unknown option "${key}"; expected ${keys.join(", ")}.`);
629
+ }
630
+ }
631
+ }
632
+ _chunkS3JO3N4Hcjs.__name.call(void 0, checkKeys, "checkKeys");
633
+ function readBoolean(value, name, fallback = true) {
634
+ if (value === void 0) return fallback;
635
+ if (typeof value !== "boolean") throw new TypeError(`${name} must be a boolean.`);
636
+ return value;
637
+ }
638
+ _chunkS3JO3N4Hcjs.__name.call(void 0, readBoolean, "readBoolean");
639
+ function readHide(value, name) {
640
+ if (value === void 0) return [];
641
+ if (!Array.isArray(value) || value.some((entry) => typeof entry !== "string" || !entry.trim())) {
642
+ throw new TypeError(`${name} must be an array of non-empty strings.`);
643
+ }
644
+ return [...new Set(value.map((entry) => entry.trim()))];
645
+ }
646
+ _chunkS3JO3N4Hcjs.__name.call(void 0, readHide, "readHide");
647
+ function readSection(value, name, keys, read) {
648
+ if (value === false) return false;
649
+ if (value === void 0 || value === true) return read({});
650
+ if (!isObject(value)) throw new TypeError(`${name} must be true, false, or an options object.`);
651
+ checkKeys(value, keys, name);
652
+ return read(value);
653
+ }
654
+ _chunkS3JO3N4Hcjs.__name.call(void 0, readSection, "readSection");
655
+ function resolveFarmAppManifestConfig(input) {
656
+ if (input === false) return false;
657
+ if (input !== void 0 && input !== true && !isObject(input)) {
658
+ throw new TypeError(`${NAME} must be true, false, or an options object.`);
659
+ }
660
+ const config = isObject(input) ? input : {};
661
+ checkKeys(config, ["app", "packages", "mcp", "webmcp", "integrations", "agent", "plugins"], NAME);
662
+ const packages = config.packages;
663
+ if (packages !== void 0 && typeof packages !== "boolean" && packages !== "names") {
664
+ throw new TypeError(`${NAME}.packages must be true, false, or "names".`);
665
+ }
666
+ return {
667
+ app: readSection(config.app, `${NAME}.app`, ["version", "renderer", "build"], (app) => ({
668
+ version: readBoolean(app.version, `${NAME}.app.version`),
669
+ renderer: readBoolean(app.renderer, `${NAME}.app.renderer`),
670
+ build: readBoolean(app.build, `${NAME}.app.build`)
671
+ })),
672
+ packages: _nullishCoalesce(packages, () => ( true)),
673
+ mcp: readSection(config.mcp, `${NAME}.mcp`, ["schemas", "hide"], (mcp) => ({
674
+ schemas: readBoolean(mcp.schemas, `${NAME}.mcp.schemas`),
675
+ hide: readHide(mcp.hide, `${NAME}.mcp.hide`)
676
+ })),
677
+ webmcp: readSection(config.webmcp, `${NAME}.webmcp`, ["hide"], (webmcp) => ({
678
+ hide: readHide(webmcp.hide, `${NAME}.webmcp.hide`)
679
+ })),
680
+ integrations: readBoolean(config.integrations, `${NAME}.integrations`),
681
+ agent: readBoolean(config.agent, `${NAME}.agent`),
682
+ plugins: readBoolean(config.plugins, `${NAME}.plugins`)
683
+ };
684
+ }
685
+ _chunkS3JO3N4Hcjs.__name.call(void 0, resolveFarmAppManifestConfig, "resolveFarmAppManifestConfig");
686
+
687
+
619
688
 
620
689
 
621
690
 
@@ -629,4 +698,4 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, applyFarmPreviewRobotsTag, "applyFarmPrevi
629
698
 
630
699
 
631
700
 
632
- exports.resolveFarmAgentCrawlers = resolveFarmAgentCrawlers; exports.createFarmAgentRobots = createFarmAgentRobots; exports.resolveFarmAgentSitemap = resolveFarmAgentSitemap; exports.createFarmDefaultSitemap = createFarmDefaultSitemap; exports.resolveFarmPerformanceConfig = resolveFarmPerformanceConfig; exports.manageFarmHtmlPreloads = manageFarmHtmlPreloads; exports.manageFarmLinkHeaderPreloads = manageFarmLinkHeaderPreloads; exports.manageFarmDocumentPreloads = manageFarmDocumentPreloads; exports.reportFarmPreloadWarnings = reportFarmPreloadWarnings; exports.FARM_PREVIEW_ROBOTS_TAG = FARM_PREVIEW_ROBOTS_TAG; exports.resolveFarmNoindexPreviews = resolveFarmNoindexPreviews; exports.applyFarmPreviewRobotsTag = applyFarmPreviewRobotsTag;
701
+ exports.resolveFarmAgentCrawlers = resolveFarmAgentCrawlers; exports.createFarmAgentRobots = createFarmAgentRobots; exports.resolveFarmAgentSitemap = resolveFarmAgentSitemap; exports.createFarmDefaultSitemap = createFarmDefaultSitemap; exports.resolveFarmPerformanceConfig = resolveFarmPerformanceConfig; exports.manageFarmHtmlPreloads = manageFarmHtmlPreloads; exports.manageFarmLinkHeaderPreloads = manageFarmLinkHeaderPreloads; exports.manageFarmDocumentPreloads = manageFarmDocumentPreloads; exports.reportFarmPreloadWarnings = reportFarmPreloadWarnings; exports.resolveFarmAppManifestConfig = resolveFarmAppManifestConfig; exports.FARM_PREVIEW_ROBOTS_TAG = FARM_PREVIEW_ROBOTS_TAG; exports.resolveFarmNoindexPreviews = resolveFarmNoindexPreviews; exports.applyFarmPreviewRobotsTag = applyFarmPreviewRobotsTag;
@@ -446,7 +446,7 @@ export default defineTask({
446
446
  _chunkS3JO3N4Hcjs.__name.call(void 0, 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,