@farm.js/core 0.1.41 → 0.1.43

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 (237) hide show
  1. package/dist/{agent-mcp-BOqIxJLI.d.mts → agent-mcp-3KDz4hr9.d.mts} +1 -1
  2. package/dist/{agent-mcp-D0eZKfci.d.ts → agent-mcp-6yRebHk7.d.ts} +1 -1
  3. package/dist/agent-runtime.d.mts +1 -1
  4. package/dist/agent-runtime.d.ts +1 -1
  5. package/dist/api/route-manager.d.mts +3 -3
  6. package/dist/api/route-manager.d.ts +3 -3
  7. package/dist/api/runtime.d.mts +2 -2
  8. package/dist/api/runtime.d.ts +2 -2
  9. package/dist/api.cjs +2 -2
  10. package/dist/api.d.mts +8 -3
  11. package/dist/api.d.ts +8 -3
  12. package/dist/api.mjs +1 -1
  13. package/dist/{app-DM8e1z3G.d.ts → app-8Db1zR-2.d.ts} +8 -4
  14. package/dist/{app-CzTSMJaf.d.mts → app-DlTWv4cn.d.mts} +8 -4
  15. package/dist/app-manifest-TRzS7ZZ9.d.mts +120 -0
  16. package/dist/app-manifest-cO2jkG1F.d.ts +120 -0
  17. package/dist/app-markdown.d.mts +2 -2
  18. package/dist/app-markdown.d.ts +2 -2
  19. package/dist/{chunk-ECKF2BAM.cjs → chunk-2GVF3C2F.cjs} +255 -42
  20. package/dist/chunk-2NXO5SBY.mjs +57 -0
  21. package/dist/chunk-3BROEWFY.cjs +39 -0
  22. package/dist/{chunk-ENOBPDKZ.mjs → chunk-4MRQ5OKQ.mjs} +14 -9
  23. package/dist/{chunk-R65GCA6A.mjs → chunk-4OCEMK72.mjs} +260 -49
  24. package/dist/{chunk-6PKXK4TY.mjs → chunk-53ZV6K65.mjs} +1 -1
  25. package/dist/{chunk-LYIZHJTK.cjs → chunk-5LPHJZSI.cjs} +14 -14
  26. package/dist/chunk-5NIWBWDD.mjs +97 -0
  27. package/dist/{chunk-NRDBW4MP.mjs → chunk-7IQQIPRZ.mjs} +10 -0
  28. package/dist/{chunk-FJGIVDA5.mjs → chunk-7SCCY6SI.mjs} +80 -177
  29. package/dist/chunk-APDGOKKE.cjs +148 -0
  30. package/dist/chunk-AZBSVLRM.cjs +132 -0
  31. package/dist/{chunk-PN676AZF.cjs → chunk-BKPXWRTT.cjs} +6 -6
  32. package/dist/chunk-CEDPEDNW.cjs +98 -0
  33. package/dist/chunk-D5RFPV2H.mjs +148 -0
  34. package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
  35. package/dist/{chunk-724JLMS4.mjs → chunk-F646BZ4Y.mjs} +4 -2
  36. package/dist/{chunk-C5KVWHIH.cjs → chunk-G2Z5DGMS.cjs} +5 -3
  37. package/dist/{chunk-L6HYACBE.cjs → chunk-GVNCWSQV.cjs} +145 -127
  38. package/dist/{chunk-24SP5TGU.mjs → chunk-H4LXPWI2.mjs} +2 -2
  39. package/dist/chunk-H7BLEEAE.cjs +57 -0
  40. package/dist/{chunk-JOTUZIM4.cjs → chunk-HUMEHX24.cjs} +2 -2
  41. package/dist/{chunk-BD3D7EZV.cjs → chunk-IXFOBGLQ.cjs} +9 -3
  42. package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
  43. package/dist/{chunk-32TZ3QTP.cjs → chunk-JDJAPCR2.cjs} +421 -210
  44. package/dist/{chunk-MHN4UR5U.cjs → chunk-KFZZFZ7J.cjs} +7 -7
  45. package/dist/chunk-LRJRXXQZ.cjs +109 -0
  46. package/dist/{chunk-EX4MKHXN.cjs → chunk-LVABUXLA.cjs} +22 -17
  47. package/dist/{chunk-HCSVR4YZ.mjs → chunk-M3BXTWJM.mjs} +18 -0
  48. package/dist/{chunk-PYHPXPSW.mjs → chunk-NXO75WY4.mjs} +1 -1
  49. package/dist/{chunk-BGGWKZ2V.mjs → chunk-OYSGGV6O.mjs} +137 -167
  50. package/dist/{chunk-JR4QCLJY.cjs → chunk-PDU4P2IC.cjs} +19 -1
  51. package/dist/chunk-PJEHUSHA.mjs +229 -0
  52. package/dist/chunk-QGH2RQVF.mjs +132 -0
  53. package/dist/{chunk-YWMZUGIS.mjs → chunk-R3ZFQJEF.mjs} +247 -34
  54. package/dist/{chunk-ROQ4C4LJ.cjs → chunk-RACQTC7K.cjs} +274 -371
  55. package/dist/{chunk-WSOBCAYO.cjs → chunk-RQYTOFQM.cjs} +23 -23
  56. package/dist/chunk-S34OBRMZ.mjs +109 -0
  57. package/dist/{chunk-TS4JHGUJ.mjs → chunk-S3ZEMCE6.mjs} +9 -3
  58. package/dist/{chunk-WWFTAUFG.cjs → chunk-SBH2JLLF.cjs} +12 -2
  59. package/dist/{chunk-YSLWRWWP.cjs → chunk-SKK6UF5P.cjs} +200 -46
  60. package/dist/chunk-T7J7E63D.cjs +144 -0
  61. package/dist/{chunk-SVPGWJZF.mjs → chunk-TESO7EFU.mjs} +125 -107
  62. package/dist/{chunk-OQ4YXWH4.cjs → chunk-VIVQERJ5.cjs} +320 -351
  63. package/dist/{chunk-JIYYX7WU.mjs → chunk-VLXNGUKO.mjs} +1 -1
  64. package/dist/{chunk-OFZUJMCU.mjs → chunk-WPJQN64R.mjs} +195 -41
  65. package/dist/chunk-XARSG2TG.mjs +144 -0
  66. package/dist/chunk-XUGFRFD2.mjs +39 -0
  67. package/dist/{chunk-EH3464KF.cjs → chunk-YBDSTNMH.cjs} +1 -1
  68. package/dist/{chunk-VLPII2JJ.mjs → chunk-YGZH4T2X.mjs} +1 -1
  69. package/dist/chunk-YKUEJ3MG.cjs +229 -0
  70. package/dist/{chunk-4C7KTKX7.mjs → chunk-ZYWJIPKQ.mjs} +1 -1
  71. package/dist/{client-plugins-CkYwvDJ0.d.mts → client-plugins-Cv0OJtnM.d.mts} +98 -7
  72. package/dist/{client-plugins-DfeKd0sD.d.ts → client-plugins-kwQuZcWq.d.ts} +98 -7
  73. package/dist/client-plugins.d.mts +1 -1
  74. package/dist/client-plugins.d.ts +1 -1
  75. package/dist/client.cjs +4 -3
  76. package/dist/client.d.mts +5 -5
  77. package/dist/client.d.ts +5 -5
  78. package/dist/client.mjs +3 -2
  79. package/dist/config.d.mts +1 -1
  80. package/dist/config.d.ts +1 -1
  81. package/dist/{devtools-N3QLRIQU.mjs → devtools-M22FEFPK.mjs} +4 -4
  82. package/dist/{devtools-2YHAJYH6.cjs → devtools-MLB3JJMC.cjs} +5 -5
  83. package/dist/docs.cjs +6 -6
  84. package/dist/docs.d.mts +2 -2
  85. package/dist/docs.d.ts +2 -2
  86. package/dist/docs.mjs +5 -5
  87. package/dist/index-CQOp8EmB.d.mts +48 -0
  88. package/dist/index-DAl0QTZS.d.ts +48 -0
  89. package/dist/index.cjs +41 -24
  90. package/dist/index.d.mts +15 -14
  91. package/dist/index.d.ts +15 -14
  92. package/dist/index.mjs +46 -29
  93. package/dist/integrations.d.mts +1 -1
  94. package/dist/integrations.d.ts +1 -1
  95. package/dist/internal/app-markdown-runtime.d.mts +2 -2
  96. package/dist/internal/app-markdown-runtime.d.ts +2 -2
  97. package/dist/internal/build-runtime.cjs +29 -15
  98. package/dist/internal/build-runtime.d.mts +12 -16
  99. package/dist/internal/build-runtime.d.ts +12 -16
  100. package/dist/internal/build-runtime.mjs +28 -14
  101. package/dist/internal/cli-runtime.cjs +23 -11
  102. package/dist/internal/cli-runtime.mjs +23 -11
  103. package/dist/internal/client-error-overlay.cjs +4 -4
  104. package/dist/internal/client-error-overlay.mjs +1 -1
  105. package/dist/internal/client-runtime.cjs +5 -1
  106. package/dist/internal/client-runtime.d.mts +1 -0
  107. package/dist/internal/client-runtime.d.ts +1 -0
  108. package/dist/internal/client-runtime.mjs +4 -0
  109. package/dist/internal/compression-runtime.d.mts +1 -1
  110. package/dist/internal/compression-runtime.d.ts +1 -1
  111. package/dist/internal/config-runtime.cjs +5 -5
  112. package/dist/internal/config-runtime.d.mts +2 -2
  113. package/dist/internal/config-runtime.d.ts +2 -2
  114. package/dist/internal/config-runtime.mjs +4 -4
  115. package/dist/internal/form-actions-client.cjs +18 -0
  116. package/dist/internal/form-actions-client.d.mts +5 -0
  117. package/dist/internal/form-actions-client.d.ts +5 -0
  118. package/dist/internal/form-actions-client.mjs +18 -0
  119. package/dist/internal/form-actions.cjs +18 -0
  120. package/dist/internal/form-actions.d.mts +14 -0
  121. package/dist/internal/form-actions.d.ts +14 -0
  122. package/dist/internal/form-actions.mjs +18 -0
  123. package/dist/internal/island-codec.cjs +22 -0
  124. package/dist/internal/island-codec.d.mts +29 -0
  125. package/dist/internal/island-codec.d.ts +29 -0
  126. package/dist/internal/island-codec.mjs +22 -0
  127. package/dist/internal/island-value-store.cjs +13 -0
  128. package/dist/internal/island-value-store.d.mts +6 -0
  129. package/dist/internal/island-value-store.d.ts +6 -0
  130. package/dist/internal/island-value-store.mjs +13 -0
  131. package/dist/internal/islands-runtime.cjs +77 -0
  132. package/dist/internal/islands-runtime.d.mts +57 -0
  133. package/dist/internal/islands-runtime.d.ts +57 -0
  134. package/dist/internal/islands-runtime.mjs +77 -0
  135. package/dist/internal/islands-server.cjs +19 -0
  136. package/dist/internal/islands-server.d.mts +3 -0
  137. package/dist/internal/islands-server.d.ts +3 -0
  138. package/dist/internal/islands-server.mjs +19 -0
  139. package/dist/internal/islx-client.cjs +5 -0
  140. package/dist/internal/islx-client.d.mts +2 -0
  141. package/dist/internal/islx-client.d.ts +2 -0
  142. package/dist/internal/islx-client.mjs +3 -0
  143. package/dist/internal/islx-react.cjs +4 -0
  144. package/dist/internal/islx-react.d.mts +1 -0
  145. package/dist/internal/islx-react.d.ts +1 -0
  146. package/dist/internal/islx-react.mjs +2 -0
  147. package/dist/internal/islx-server.cjs +5 -0
  148. package/dist/internal/islx-server.d.mts +2 -0
  149. package/dist/internal/islx-server.d.ts +2 -0
  150. package/dist/internal/islx-server.mjs +3 -0
  151. package/dist/internal/isolated-boundary.cjs +4 -3
  152. package/dist/internal/isolated-boundary.d.mts +13 -1
  153. package/dist/internal/isolated-boundary.d.ts +13 -1
  154. package/dist/internal/isolated-boundary.mjs +3 -2
  155. package/dist/internal/product-telemetry-runtime.cjs +2 -2
  156. package/dist/internal/product-telemetry-runtime.mjs +1 -1
  157. package/dist/internal/production-runtime.cjs +24 -7
  158. package/dist/internal/production-runtime.d.mts +20 -127
  159. package/dist/internal/production-runtime.d.ts +20 -127
  160. package/dist/internal/production-runtime.mjs +24 -7
  161. package/dist/internal/server-tree.cjs +6 -3
  162. package/dist/internal/server-tree.d.mts +25 -2
  163. package/dist/internal/server-tree.d.ts +25 -2
  164. package/dist/internal/server-tree.mjs +7 -4
  165. package/dist/island-value-protocol-BRayRghM.d.mts +12 -0
  166. package/dist/island-value-protocol-BRayRghM.d.ts +12 -0
  167. package/dist/markdown.d.mts +1 -1
  168. package/dist/markdown.d.ts +1 -1
  169. package/dist/middleware.d.mts +3 -3
  170. package/dist/middleware.d.ts +3 -3
  171. package/dist/navigation.cjs +5 -4
  172. package/dist/navigation.d.mts +4 -4
  173. package/dist/navigation.d.ts +4 -4
  174. package/dist/navigation.mjs +4 -3
  175. package/dist/og.d.mts +5 -0
  176. package/dist/og.d.ts +5 -0
  177. package/dist/plugin.cjs +18 -12
  178. package/dist/plugin.d.mts +3 -3
  179. package/dist/plugin.d.ts +3 -3
  180. package/dist/plugin.mjs +17 -11
  181. package/dist/{production-runtime-DFC7pgbp.d.ts → production-runtime-5nArjFpn.d.ts} +1 -1
  182. package/dist/{production-runtime-BTkXQdYy.d.mts → production-runtime-BzsF2z5F.d.mts} +1 -1
  183. package/dist/query/client.cjs +6 -5
  184. package/dist/query/client.mjs +2 -1
  185. package/dist/{render-plan-5rFeWmk7.d.mts → render-plan-B9yQorV4.d.mts} +4 -2
  186. package/dist/{render-plan-BoAK9xFC.d.ts → render-plan-fg6E_HvL.d.ts} +4 -2
  187. package/dist/renderer/react/server.cjs +7 -6
  188. package/dist/renderer/react/server.d.mts +3 -1
  189. package/dist/renderer/react/server.d.ts +3 -1
  190. package/dist/renderer/react/server.mjs +5 -4
  191. package/dist/renderer-client.cjs +5 -4
  192. package/dist/renderer-client.d.mts +3 -3
  193. package/dist/renderer-client.d.ts +3 -3
  194. package/dist/renderer-client.mjs +2 -1
  195. package/dist/renderer.d.mts +3 -1
  196. package/dist/renderer.d.ts +3 -1
  197. package/dist/{request-BxBWigtl.d.mts → request-C4j_g-BH.d.mts} +1 -1
  198. package/dist/{request-fciwmd3n.d.ts → request-gz8vFK0n.d.ts} +1 -1
  199. package/dist/request.d.mts +2 -2
  200. package/dist/request.d.ts +2 -2
  201. package/dist/{route-rendering-BLZT0IP0.d.ts → route-rendering-DamyKVi3.d.ts} +1 -1
  202. package/dist/{route-rendering-BCM1QzEf.d.mts → route-rendering-iTTOwz1f.d.mts} +1 -1
  203. package/dist/{router-DyZJWc1_.d.mts → router-EoSzHlos.d.mts} +1 -1
  204. package/dist/{router-CkheNX3-.d.ts → router-OVjDqVo8.d.ts} +1 -1
  205. package/dist/routes.d.mts +1 -1
  206. package/dist/routes.d.ts +1 -1
  207. package/dist/rsc-pipeline-LK4K5JFK.mjs +77 -0
  208. package/dist/rsc-pipeline-YCDRJME4.cjs +77 -0
  209. package/dist/{runtime-DfU4sKa5.d.ts → runtime-CwiuozLd.d.ts} +1 -1
  210. package/dist/{runtime-wexvUN5J.d.mts → runtime-DDH4tiuF.d.mts} +1 -1
  211. package/dist/{schema-dev-notice-5JPE67AI.cjs → schema-dev-notice-77ZL23PL.cjs} +4 -4
  212. package/dist/{schema-dev-notice-WLPZ6WKU.mjs → schema-dev-notice-BLXOS6U2.mjs} +2 -2
  213. package/dist/server-plugins.d.mts +2 -2
  214. package/dist/server-plugins.d.ts +2 -2
  215. package/dist/server.cjs +56 -38
  216. package/dist/server.d.mts +15 -10
  217. package/dist/server.d.ts +15 -10
  218. package/dist/server.mjs +36 -18
  219. package/dist/{spa-router-DgsMXqfX.d.mts → spa-router-Br4qFCWf.d.mts} +8 -3
  220. package/dist/{spa-router-CcejECnG.d.ts → spa-router-BsWUKH73.d.ts} +8 -3
  221. package/dist/{ssg-1FGaFISl.d.ts → ssg-Csy2vwpi.d.ts} +2 -2
  222. package/dist/{ssg-Bg4bMMhM.d.mts → ssg-Donyfcxy.d.mts} +2 -2
  223. package/dist/testing.d.mts +1 -1
  224. package/dist/testing.d.ts +1 -1
  225. package/dist/{utils-Dxbh6Hgj.d.ts → utils-Luk72LXC.d.ts} +1 -1
  226. package/dist/{utils-8wtTYiH4.d.mts → utils-d_k1ZZw0.d.mts} +1 -1
  227. package/dist/version.cjs +2 -2
  228. package/dist/version.mjs +1 -1
  229. package/dist/vite.cjs +18 -12
  230. package/dist/vite.d.mts +6 -4
  231. package/dist/vite.d.ts +6 -4
  232. package/dist/vite.mjs +17 -11
  233. package/package.json +53 -1
  234. package/dist/{chunk-35WS7P2V.mjs → chunk-26CXZR6L.mjs} +3 -3
  235. package/dist/{chunk-QEILRWVV.cjs → chunk-3XEMGDBF.cjs} +2 -2
  236. package/dist/{chunk-BPOTSHDO.cjs → chunk-IOAUK4OI.cjs} +2 -2
  237. package/dist/{chunk-BYR3RQPB.mjs → chunk-T76H22WI.mjs} +4 -4
@@ -0,0 +1,229 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkH7BLEEAEcjs = require('./chunk-H7BLEEAE.cjs');
10
+
11
+
12
+ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
13
+
14
+ // src/client/island-codec.ts
15
+ var TYPED_ARRAYS = {
16
+ Int8Array,
17
+ Uint8Array,
18
+ Uint8ClampedArray,
19
+ Int16Array,
20
+ Uint16Array,
21
+ Int32Array,
22
+ Uint32Array,
23
+ Float32Array,
24
+ Float64Array,
25
+ BigInt64Array,
26
+ BigUint64Array
27
+ };
28
+ function toBase64(bytes) {
29
+ let binary = "";
30
+ for (let index = 0; index < bytes.length; index += 32768) {
31
+ binary += String.fromCharCode(...bytes.subarray(index, index + 32768));
32
+ }
33
+ return btoa(binary);
34
+ }
35
+ _chunkS3JO3N4Hcjs.__name.call(void 0, toBase64, "toBase64");
36
+ function fromBase64(base64) {
37
+ const binary = atob(base64);
38
+ const bytes = new Uint8Array(binary.length);
39
+ for (let index = 0; index < binary.length; index++) bytes[index] = binary.charCodeAt(index);
40
+ return bytes;
41
+ }
42
+ _chunkS3JO3N4Hcjs.__name.call(void 0, fromBase64, "fromBase64");
43
+ function farmTagged(tag, value) {
44
+ return value === void 0 ? { [_chunkH7BLEEAEcjs.FARM_TAG]: tag } : { [_chunkH7BLEEAEcjs.FARM_TAG]: tag, [_chunkH7BLEEAEcjs.FARM_TAG_VALUE]: value };
45
+ }
46
+ _chunkS3JO3N4Hcjs.__name.call(void 0, farmTagged, "farmTagged");
47
+ function needsFarmObjectTag(object) {
48
+ return Object.prototype.hasOwnProperty.call(object, _chunkH7BLEEAEcjs.FARM_TAG);
49
+ }
50
+ _chunkS3JO3N4Hcjs.__name.call(void 0, needsFarmObjectTag, "needsFarmObjectTag");
51
+ function encodeFarmLeaf(value) {
52
+ switch (typeof value) {
53
+ case "undefined":
54
+ return farmTagged("u");
55
+ case "bigint":
56
+ return farmTagged("B", value.toString());
57
+ case "number":
58
+ if (Number.isNaN(value)) return farmTagged("n", "NaN");
59
+ if (value === Infinity) return farmTagged("n", "Infinity");
60
+ if (value === -Infinity) return farmTagged("n", "-Infinity");
61
+ if (Object.is(value, -0)) return farmTagged("n", "-0");
62
+ return void 0;
63
+ case "object":
64
+ break;
65
+ default:
66
+ return void 0;
67
+ }
68
+ if (value === null) return void 0;
69
+ if (value instanceof Date) {
70
+ return farmTagged("D", Number.isNaN(value.getTime()) ? null : value.toISOString());
71
+ }
72
+ if (typeof URL === "function" && value instanceof URL) return farmTagged("U", value.href);
73
+ if (value instanceof RegExp) return farmTagged("R", [value.source, value.flags]);
74
+ if (value instanceof ArrayBuffer) {
75
+ return farmTagged("Y", ["ArrayBuffer", toBase64(new Uint8Array(value))]);
76
+ }
77
+ if (ArrayBuffer.isView(value)) {
78
+ const name = value instanceof DataView ? "DataView" : value.constructor.name;
79
+ if (name !== "DataView" && !(name in TYPED_ARRAYS)) return void 0;
80
+ const bytes = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
81
+ return farmTagged("Y", [name, toBase64(bytes)]);
82
+ }
83
+ return void 0;
84
+ }
85
+ _chunkS3JO3N4Hcjs.__name.call(void 0, encodeFarmLeaf, "encodeFarmLeaf");
86
+ var NOT_A_FARM_MARKER = /* @__PURE__ */ Symbol.for("farm.codec.not-a-marker");
87
+ function farmPlainObject(entries) {
88
+ const object = {};
89
+ for (const [key, value] of entries) {
90
+ Object.defineProperty(object, key, {
91
+ value,
92
+ enumerable: true,
93
+ writable: true,
94
+ configurable: true
95
+ });
96
+ }
97
+ return object;
98
+ }
99
+ _chunkS3JO3N4Hcjs.__name.call(void 0, farmPlainObject, "farmPlainObject");
100
+ function decodeFarmTagged(object, decodeChild) {
101
+ const tag = object[_chunkH7BLEEAEcjs.FARM_TAG];
102
+ const data = object[_chunkH7BLEEAEcjs.FARM_TAG_VALUE];
103
+ switch (tag) {
104
+ case _chunkH7BLEEAEcjs.FARM_REFERENCE_TAG:
105
+ case _chunkH7BLEEAEcjs.FARM_SLOT_TAG:
106
+ case _chunkH7BLEEAEcjs.FARM_ACTION_TAG:
107
+ return NOT_A_FARM_MARKER;
108
+ case _chunkH7BLEEAEcjs.FARM_OBJECT_TAG:
109
+ if (data && typeof data === "object" && !Array.isArray(data)) {
110
+ return farmPlainObject(
111
+ Object.entries(data).map(([key, value]) => [key, decodeChild(value)])
112
+ );
113
+ }
114
+ break;
115
+ case "u":
116
+ return void 0;
117
+ case "n":
118
+ if (data === "NaN") return Number.NaN;
119
+ if (data === "Infinity") return Infinity;
120
+ if (data === "-Infinity") return -Infinity;
121
+ if (data === "-0") return -0;
122
+ break;
123
+ case "B":
124
+ if (typeof data === "string" && /^-?\d+$/.test(data)) return BigInt(data);
125
+ break;
126
+ case "D":
127
+ if (data === null) return new Date(Number.NaN);
128
+ if (typeof data === "string") return new Date(data);
129
+ break;
130
+ case "U":
131
+ if (typeof data === "string") return new URL(data);
132
+ break;
133
+ case "R":
134
+ if (Array.isArray(data) && typeof data[0] === "string" && typeof data[1] === "string") {
135
+ return new RegExp(data[0], data[1]);
136
+ }
137
+ break;
138
+ case "Y": {
139
+ if (!Array.isArray(data) || typeof data[0] !== "string" || typeof data[1] !== "string") break;
140
+ const bytes = fromBase64(data[1]);
141
+ if (data[0] === "ArrayBuffer") return bytes.buffer;
142
+ if (data[0] === "DataView") return new DataView(bytes.buffer);
143
+ const TypedArray = Object.prototype.hasOwnProperty.call(TYPED_ARRAYS, data[0]) ? TYPED_ARRAYS[data[0]] : void 0;
144
+ if (!TypedArray || bytes.byteLength % TypedArray.BYTES_PER_ELEMENT !== 0) break;
145
+ return new TypedArray(
146
+ bytes.buffer,
147
+ 0,
148
+ bytes.byteLength / TypedArray.BYTES_PER_ELEMENT
149
+ );
150
+ }
151
+ case "M":
152
+ if (Array.isArray(data) && data.every((entry) => Array.isArray(entry) && entry.length === 2)) {
153
+ return new Map(data.map(([key, value]) => [decodeChild(key), decodeChild(value)]));
154
+ }
155
+ break;
156
+ case "S":
157
+ if (Array.isArray(data)) return new Set(data.map(decodeChild));
158
+ break;
159
+ default:
160
+ throw new TypeError(`unknown ${JSON.stringify(tag)} tag`);
161
+ }
162
+ throw new TypeError(`malformed ${JSON.stringify(tag)} tag`);
163
+ }
164
+ _chunkS3JO3N4Hcjs.__name.call(void 0, decodeFarmTagged, "decodeFarmTagged");
165
+ function encodeFarmJson(value, seen = /* @__PURE__ */ new Set()) {
166
+ const leaf = encodeFarmLeaf(value);
167
+ if (leaf) return leaf;
168
+ if (value === null || typeof value === "string" || typeof value === "boolean") return value;
169
+ if (typeof value === "number") return value;
170
+ if (typeof value !== "object") throw new TypeError(`${typeof value} values are not serializable`);
171
+ if (seen.has(value)) throw new TypeError("circular values are not serializable");
172
+ seen.add(value);
173
+ try {
174
+ if (Array.isArray(value)) return value.map((entry) => encodeFarmJson(entry, seen));
175
+ if (value instanceof Map) {
176
+ return farmTagged(
177
+ "M",
178
+ Array.from(value, ([key, entry]) => [
179
+ encodeFarmJson(key, seen),
180
+ encodeFarmJson(entry, seen)
181
+ ])
182
+ );
183
+ }
184
+ if (value instanceof Set) {
185
+ return farmTagged(
186
+ "S",
187
+ Array.from(value, (entry) => encodeFarmJson(entry, seen))
188
+ );
189
+ }
190
+ const prototype = Object.getPrototypeOf(value);
191
+ if (prototype !== Object.prototype && prototype !== null) {
192
+ throw new TypeError("class instances are not serializable");
193
+ }
194
+ const encoded = Object.fromEntries(
195
+ Object.entries(value).map(([key, entry]) => [key, encodeFarmJson(entry, seen)])
196
+ );
197
+ return needsFarmObjectTag(value) ? farmTagged(_chunkH7BLEEAEcjs.FARM_OBJECT_TAG, encoded) : encoded;
198
+ } finally {
199
+ seen.delete(value);
200
+ }
201
+ }
202
+ _chunkS3JO3N4Hcjs.__name.call(void 0, encodeFarmJson, "encodeFarmJson");
203
+ function decodeFarmJson(value) {
204
+ if (Array.isArray(value)) return value.map(decodeFarmJson);
205
+ if (!value || typeof value !== "object") return value;
206
+ if (_chunkH7BLEEAEcjs.getFarmTag.call(void 0, value) !== void 0) {
207
+ const decoded = decodeFarmTagged(value, decodeFarmJson);
208
+ if (decoded === NOT_A_FARM_MARKER) {
209
+ throw new TypeError(
210
+ `a ${JSON.stringify(value[_chunkH7BLEEAEcjs.FARM_TAG])} reference is not allowed here`
211
+ );
212
+ }
213
+ return decoded;
214
+ }
215
+ if (needsFarmObjectTag(value)) throw new TypeError('malformed "$" tag');
216
+ return farmPlainObject(Object.entries(value).map(([key, entry]) => [key, decodeFarmJson(entry)]));
217
+ }
218
+ _chunkS3JO3N4Hcjs.__name.call(void 0, decodeFarmJson, "decodeFarmJson");
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+ exports.farmTagged = farmTagged; exports.needsFarmObjectTag = needsFarmObjectTag; exports.encodeFarmLeaf = encodeFarmLeaf; exports.NOT_A_FARM_MARKER = NOT_A_FARM_MARKER; exports.farmPlainObject = farmPlainObject; exports.decodeFarmTagged = decodeFarmTagged; exports.encodeFarmJson = encodeFarmJson; exports.decodeFarmJson = decodeFarmJson;
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  getRouteGroupScope,
9
9
  isInRouteGroupScope
10
- } from "./chunk-SVPGWJZF.mjs";
10
+ } from "./chunk-TESO7EFU.mjs";
11
11
  import {
12
12
  __name
13
13
  } from "./chunk-LPEX4YW6.mjs";
@@ -24,6 +24,90 @@ import { FarmCacheUserConfig } from './cache.mjs';
24
24
  import { R as ResolvedFarmThemeConfig, d as FarmThemeConfig } from './types-DQnyD3VD.mjs';
25
25
  import { FarmLayoutFonts } from './font.mjs';
26
26
 
27
+ /**
28
+ * `experimental.serverComponents`: which engine renders server components.
29
+ *
30
+ * - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
31
+ * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental.
32
+ *
33
+ * `true` means `{ mode: "rsc" }`. Both modes share one authoring contract.
34
+ */
35
+ type FarmServerComponentsMode = "rsc" | "islands";
36
+ interface FarmServerComponentsOptions {
37
+ mode: FarmServerComponentsMode;
38
+ }
39
+ type FarmServerComponentsConfig = boolean | FarmServerComponentsOptions;
40
+
41
+ /**
42
+ * `agent.manifest`: which sections `/.well-known/farmjs.json` shows. Every section is shown by
43
+ * default; a section set to `false` is served as `null` (hidden by the app), unlike an empty
44
+ * list, which means there is nothing to show.
45
+ */
46
+ /** Per-section options for `/.well-known/farmjs.json`. Every section is shown by default. */
47
+ interface FarmAppManifestConfig {
48
+ /**
49
+ * The `app` section. `false` serves `app: null`; an object leaves out the Farm version
50
+ * (`version`), the `renderer` or the `build` ID. `basePath` is always kept.
51
+ *
52
+ * @default true
53
+ */
54
+ app?: boolean | {
55
+ version?: boolean;
56
+ renderer?: boolean;
57
+ build?: boolean;
58
+ };
59
+ /**
60
+ * Installed `@farm.js/*` and `@farming-labs/*` packages. `"names"` lists them with `null`
61
+ * versions; `false` serves `packages: null`.
62
+ *
63
+ * @default true
64
+ */
65
+ packages?: boolean | "names";
66
+ /**
67
+ * MCP servers and their tools. `schemas: false` drops tools' `inputSchema` and
68
+ * `outputSchema`; `hide` leaves out a server (`"store"`) or one of its tools
69
+ * (`"store/list_orders"`). `false` serves `mcp: null`.
70
+ *
71
+ * @default true
72
+ */
73
+ mcp?: boolean | {
74
+ schemas?: boolean;
75
+ hide?: string[];
76
+ };
77
+ /**
78
+ * WebMCP browser tools. `hide` leaves out tools by name; `false` serves `webmcp: null`.
79
+ *
80
+ * @default true
81
+ */
82
+ webmcp?: boolean | {
83
+ hide?: string[];
84
+ };
85
+ /** Integration keys, categories and providers. `false` serves `integrations: null`. */
86
+ integrations?: boolean;
87
+ /** The app's agent surfaces (API catalog, llms.txt, OpenAPI). `false` serves `agent: null`. */
88
+ agent?: boolean;
89
+ /** Plugin names. `false` serves `plugins: null`. */
90
+ plugins?: boolean;
91
+ }
92
+ interface ResolvedFarmAppManifestConfig {
93
+ app: false | {
94
+ version: boolean;
95
+ renderer: boolean;
96
+ build: boolean;
97
+ };
98
+ packages: boolean | "names";
99
+ mcp: false | {
100
+ schemas: boolean;
101
+ hide: string[];
102
+ };
103
+ webmcp: false | {
104
+ hide: string[];
105
+ };
106
+ integrations: boolean;
107
+ agent: boolean;
108
+ plugins: boolean;
109
+ }
110
+
27
111
  declare const DEFAULT_FARM_DEVTOOLS_SHORTCUT = "mod+shift+.";
28
112
  declare const FARM_DEVTOOLS_PATH = "/__farm/devtools";
29
113
  declare const FARM_DEVTOOLS_LAUNCH_PARAM = "__farm_devtools";
@@ -1546,13 +1630,15 @@ interface FarmAgentUserConfig {
1546
1630
  aiCatalog?: boolean;
1547
1631
  /**
1548
1632
  * Serve `/.well-known/farmjs.json`: Farm's version and packages, the app's MCP tools and
1549
- * their schemas, WebMCP browser tools, integration providers and plugin names, to any
1550
- * client. An MCP server that requires `authorize` is listed without its tools. `false`
1551
- * turns it off; Farm Infra then can't discover the app's tools either.
1633
+ * their schemas, WebMCP browser tools, integration providers and plugin names. Everyone,
1634
+ * Farm Infra included, gets the same public document; an MCP server that requires
1635
+ * `authorize` or sits behind a guard is listed by identity only. An object hides sections
1636
+ * (served as `null`), package versions, schemas or single servers and tools. `false` turns
1637
+ * it off; Farm Infra then can't discover the app's tools either.
1552
1638
  *
1553
1639
  * @default true
1554
1640
  */
1555
- manifest?: boolean;
1641
+ manifest?: boolean | FarmAppManifestConfig;
1556
1642
  /**
1557
1643
  * Serve a read-only MCP server (Streamable HTTP) at `/mcp` with tools that list,
1558
1644
  * search, and read the app's public pages as Markdown: the static pages llms.txt and
@@ -1575,7 +1661,7 @@ interface ResolvedFarmAgentConfig {
1575
1661
  crawlers: ResolvedFarmAgentCrawlers;
1576
1662
  apiCatalog: boolean;
1577
1663
  aiCatalog: boolean;
1578
- manifest: boolean;
1664
+ manifest: false | ResolvedFarmAppManifestConfig;
1579
1665
  mcp: boolean;
1580
1666
  }
1581
1667
 
@@ -3176,7 +3262,12 @@ interface FarmConfig {
3176
3262
  */
3177
3263
  suppressLintOnLink?: boolean;
3178
3264
  experimental?: {
3179
- serverComponents?: boolean;
3265
+ /**
3266
+ * React Server Components. `true` is `{ mode: "rsc" }`: `farm dev` and `farm build` run
3267
+ * React's Flight pipeline from `@farm.js/plugin/rsc`. `{ mode: "islands" }` is reserved for
3268
+ * Farm's own engine (RFC 0003). Pages and layouts are server components either way.
3269
+ */
3270
+ serverComponents?: FarmServerComponentsConfig;
3180
3271
  serverActions?: boolean;
3181
3272
  /**
3182
3273
  * Enables Partial Prerendering (static-shell caching). Routes still opt in
@@ -3706,4 +3797,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
3706
3797
  googleBot?: string | MetadataRobotsDirectives;
3707
3798
  }
3708
3799
 
3709
- export { type FarmDevtoolsUserConfig as $, type APIRouteDiscoveredPayload as A, type BundleLifecyclePayload as B, type FarmPluginRuntimeCloseEvent as C, type FarmPluginRuntimeHooks as D, type ErrorLifecyclePayload as E, type FarmRouteRuntimeConfig as F, type FarmPluginRuntimeRequestOptions as G, type HMRUpdatePayload as H, type FarmPluginRuntimeRequestHandler as I, type FarmPluginRuntimeSession as J, type FarmPluginDiscoveredRoute as K, type FarmPluginRouterHooks as L, type MiddlewareDiscoveredPayload as M, type NitroBuildLifecyclePayload as N, type FarmPluginRenderHooks as O, type PluginRequestContext as P, type FarmPluginBuildHooks as Q, type RouteDiscoveredPayload as R, type ShutdownPayload as S, type FarmPluginDevHooks as T, type FarmPluginClientConfig as U, PluginManager as V, type FarmPluginDefinition as W, definePlugin as X, type FarmPluginDatabase as Y, resolveFarmDevtoolsConfig as Z, type ResolvedFarmDevtoolsConfig as _, type FarmPlugin as a, type ThemeColorDescriptor as a$, getFarmRedirectError as a0, isFarmNotFoundError as a1, isFarmRedirectError as a2, notFound as a3, permanentRedirect as a4, redirect as a5, type FarmRedirectSignal as a6, type FarmRedirectStatus as a7, type ParsedRoute as a8, type RouteSegment as a9, resolveFarmMCPPlugin as aA, type FarmMCPUserConfig as aB, type FarmComponentType as aC, type AppRoutePattern as aD, type PageRouteParams as aE, type NitroPreset as aF, type FarmMigrationCommand as aG, type FarmMigrationsConfig as aH, type FarmMigrationsUserConfig as aI, type ResolvedFarmMigrationsConfig as aJ, type FarmContextFactoryInput as aK, type FarmIsolatedClientHydrationMode as aL, type LoadingProps as aM, type ErrorProps as aN, type PagePropsWithMiddleware as aO, type MetadataProps as aP, type LayoutMetadataProps as aQ, type Page as aR, type Layout as aS, type Loading as aT, type ErrorBoundary as aU, type StaticPathPrimitive as aV, type StaticPathParams as aW, type StaticRouteParams as aX, type GenerateStaticParams as aY, type LayoutModule as aZ, type MetadataJsonLd as a_, type FarmRequest as aa, type FarmResponse as ab, type LayoutProps as ac, type Metadata as ad, type FarmRouteRuntime as ae, type FarmRouteRegions as af, type FarmRouteMaxDuration as ag, type FarmAppContext as ah, type PageProps as ai, type PluginContextProps as aj, type RouteModule as ak, type FarmMdxComponents as al, type FarmMdxResolvedConfig as am, resolveFarmMdxComponentsModulePath as an, resolveMdxConfig as ao, type FarmMdxComponent as ap, type FarmMdxUserConfig as aq, FARM_MARKDOWN_CONTENT_TYPE as ar, createFarmMarkdownErrorBody as as, farmRequestWantsMarkdown as at, type FarmUserConfig as au, type FarmContextFactory as av, type MiddlewareProps as aw, type FarmIntegration as ax, type FarmConfig as ay, resolveFarmMCPConfig as az, FARM_NODE_RESPONSE_END_PENDING as b, type FarmMCPEndpointTool as b$, type Viewport as b0, type ServerAction as b1, type BuildOptions as b2, type SSGPage as b3, type SSGCollectionResult as b4, type MetadataRobotsDirectives as b5, type MetadataRobots as b6, type ReadonlyMiddlewareStore as b7, type FarmMiddlewareConfig as b8, type MiddlewareModule as b9, FarmPluginOptionsError as bA, type FarmPluginFactory as bB, type FarmPluginOptionsIssue as bC, type FarmPluginOptionsSchema as bD, type InferPluginOptionsInput as bE, type InferPluginOptionsOutput as bF, resolveConfig as bG, loadConfig as bH, resolveDeployConfig as bI, resolveMigrationsConfig as bJ, resolveDeployOutputPath as bK, normalizeDeployTarget as bL, getDeployTargetForPreset as bM, getPresetForDeployTarget as bN, type FarmLayerConfig as bO, type FarmPerformanceConfig as bP, type FarmPreloadMode as bQ, type FarmPreloadUserConfig as bR, type ResolvedFarmPreloadConfig as bS, type FarmCspConfig as bT, type FarmCspDirectives as bU, type FarmCspDirectiveValue as bV, type FarmCspOptions as bW, type FarmSecurityConfig as bX, type ResolvedFarmCspConfig as bY, MetadataRoute as bZ, type MetadataRouteContext as b_, type MiddlewareConfig$1 as ba, type MiddlewareContext as bb, type FarmAgentJsonLd as bc, type FarmMCPServerRegistration as bd, type FarmMarkdownResolvedConfig as be, _findFarmMCPEndpointTool as bf, _publishFarmMCPCatalog as bg, registerFarmMCPServer as bh, type FarmMCPCatalogDetails as bi, type ResolvedFarmRouteRuntimeConfig as bj, type ApplicationMetadataRouteKind as bk, type ResolvedFarmAPIConfig as bl, type FarmDocsResolvedConfig as bm, type ResolvedFarmDevIndicatorsConfig as bn, type ResolvedFarmAuthConfig as bo, type ResolvedFarmPerformanceConfig as bp, type ResolvedFarmSecurityConfig as bq, type ResolvedSchemaField as br, type FarmSqlDialect as bs, type FarmSqlStatement as bt, type CollectedSchemaModel as bu, type FarmSchemaMigrationStep as bv, type OpenAPIConfig as bw, type FarmAgentUserConfig as bx, type FarmAgentCrawlers as by, type FarmCrawlerPolicy as bz, type FarmPluginIntegrationContext as c, type FarmIntegrationRequestContextStore as c$, type FarmAuthConfig as c0, type FarmAuthDatabaseConfig as c1, type FarmAuthEmailAndPasswordConfig as c2, type FarmAuthSessionConfig as c3, type FarmAuthUserConfig as c4, type FarmMCPAuthorization as c5, type FarmMCPEndpoint as c6, type FarmMCPServerFunction as c7, type FarmMCPToolDefinition as c8, type FarmMCPStandaloneTool as c9, collectSchemaModels as cA, generateSqlStatements as cB, renderSqlSchemaFile as cC, getSqlColumnType as cD, getSqlDefaultExpression as cE, isNullableField as cF, quoteSqlIdentifier as cG, toSnakeCase as cH, toPascalCase as cI, toCamelCase as cJ, escapeSqlString as cK, resolveSchemaModels as cL, type ResolvedSchemaModel as cM, type FarmIntegrationCategory as cN, type FarmIntegrationSlot as cO, type FarmIntegrationRouteParamValue as cP, type FarmIntegrationRouteParams as cQ, type FarmIntegrationRouteMethod as cR, type FarmIntegrationRouteInputSource as cS, type FarmIntegrationValidationPathSegment as cT, type FarmIntegrationRouteInput as cU, type FarmIntegrationValidationIssue as cV, type FarmIntegrationValidationErrorLike as cW, type FarmIntegrationValidationResult as cX, type FarmIntegrationStandardValidationResult as cY, type FarmIntegrationInputSchema as cZ, type FarmIntegrationRouteInputSchemas as c_, type FarmMCPExecuteContext as ca, type FarmMCPTool as cb, type FarmMCPServer as cc, type FarmMCPAuthorizeContext as cd, type FarmMCPConfig as ce, type FarmMCPOAuthConfig as cf, type FarmMCPPrompt as cg, type FarmMCPPromptMessage as ch, type FarmMCPResource as ci, type FarmMCPResourceContent as cj, type FarmMCPResourceContext as ck, type FarmMCPResourceListing as cl, type ResolvedFarmMCPConfig as cm, type ResolvedFarmConfig as cn, type RedirectConfig as co, type HeaderConfig as cp, type RewriteConfig as cq, type ImageConfig as cr, type I18nConfig as cs, type MiddlewareConfig as ct, type FarmDeployConfig as cu, type ResolvedFarmDeployConfig as cv, type FarmDeployTarget as cw, type FarmDocsUserConfig as cx, type FarmMarkdownUserConfig as cy, describeSchemaReference as cz, FarmRuntimeShutdownError as d, matchIntegrationRoute as d$, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d0, FARM_INTEGRATION_SET_COOKIES_KEY as d1, forwardIntegrationSetCookies as d2, type FarmIntegrationRouteDb as d3, type FarmIntegrationRouteStorageArgs as d4, type FarmIntegrationRouteArgs as d5, type FarmIntegrationConfigContext as d6, type FarmIntegrationConfigDefinition as d7, type FarmIntegrationConfigInput as d8, type FarmIntegrationLifecycleLogLevel as d9, type FarmIntegrationLogEvent as dA, type FarmIntegrationLogger as dB, type FarmIntegrationPluginOwner as dC, type FarmIntegrationContributedPlugin as dD, type FarmIntegrationsUserConfig as dE, getFarmIntegrationPluginServerRuntime as dF, getFarmIntegrationPluginOwner as dG, type FarmIntegrationRouteFactory as dH, type FarmIntegrationRoutesFactoryContext as dI, type FarmIntegrationRoutesFactory as dJ, type FarmIntegrationEndpointValue as dK, type FarmIntegrationEndpoints as dL, type FarmIntegrationEndpointsFactoryContext as dM, type FarmIntegrationEndpointsFactory as dN, createIntegrationRoute as dO, integrationRoute as dP, type DefinedIntegration as dQ, defineIntegration as dR, isFarmIntegration as dS, resolveIntegrationPlugins as dT, getIntegrationProviders as dU, isFarmIntegrationProviderComponentReference as dV, getIntegrationDocumentNavigationMatchers as dW, getIntegrationSchemas as dX, getRegisteredIntegrationRuntime as dY, getRegisteredIntegrations as dZ, getRegisteredIntegrationSchemas as d_, type FarmIntegrationLifecycleLogger as da, type FarmIntegrationLifecycleContext as db, type FarmIntegrationLifecycleHook as dc, type FarmIntegrationData as dd, type FarmIntegrationHandlerContext as de, type FarmIntegrationRouteHookContext as df, type FarmIntegrationRouteHook as dg, type FarmIntegrationRoute as dh, type FarmTypedIntegrationRoute as di, type FarmIntegrationRouteMiddleware as dj, type FarmIntegrationMiddleware as dk, type FarmIntegrationProviderProps as dl, type FarmIntegrationProviderComponentReference as dm, type FarmIntegrationProvider as dn, type FarmIntegrationDocumentNavigation as dp, type FarmIntegrationSchemaFieldType as dq, type FarmIntegrationSchemaReference as dr, type FarmIntegrationSchemaField as ds, type FarmIntegrationSchemaConstraint as dt, type FarmIntegrationSchemaModel as du, type FarmIntegrationSchemaModelExtension as dv, type FarmIntegrationSchemaModelOverride as dw, type FarmIntegrationSchema as dx, defineIntegrationSchema as dy, type FarmIntegrationLogPhase as dz, type FarmRequestStore as e, getFarmRouteRuntimeConfig as e$, matchRegisteredIntegrationRoute as e0, getRegisteredIntegrationAPIManifest as e1, dispatchIntegrationRequest as e2, dispatchIntegrationRequests as e3, integrationMiddlewareMayHandlePath as e4, FARM_INTEGRATION_API_BASE_PATH_KEY as e5, describeIntegrationOriginRejection as e6, resolveIntegrationAllowedOrigins as e7, validateIntegrationRequestOrigin as e8, type IntegrationOriginPolicy as e9, type MiddlewareChain as eA, type CookieJar as eB, type CookieOptions as eC, type RateLimitConfig as eD, type RateLimitIncrementResult as eE, type RateLimitStorage as eF, type RateLimitStatus as eG, type MemoryRateLimitStorageOptions as eH, type NextFunction as eI, type MiddlewareResult as eJ, type FarmRouteRuleRenderMode as eK, type FarmRouteRuleRedirect as eL, type FarmRouteRuleCors as eM, type FarmRouteRule as eN, type FarmRouteRules as eO, normalizeRouteRules as eP, routeRulesToRedirects as eQ, routeRulesToHeaders as eR, routeRulesToNitroRouteRules as eS, type FarmRouteRuntimeEntryKind as eT, type FarmRouteRenderingMode as eU, type FarmRouteRuntimeManifestEntry as eV, type FarmRouteRuntimeManifest as eW, normalizeFarmRouteRuntimeConfig as eX, mergeFarmRouteRuntimeConfigs as eY, resolveFarmRouteRuntimeConfig as eZ, hasFarmRouteRuntimeControls as e_, type IntegrationOriginRejection as ea, type IntegrationOriginResult as eb, type FarmIntegrationOrmSchema as ec, type FarmIntegrationOrmClient as ed, type InferFarmIntegrationOrmField as ee, type InferFarmIntegrationOrmFields as ef, type InferFarmIntegrationOrmSchema as eg, type InferFarmIntegrationOrmClient as eh, type CreateIntegrationOrmOptions as ei, createIntegrationOrm as ej, resolveIntegrationOrmRuntimeClient as ek, farmIntegrationSchemaToOrmSchema as el, type IntegrationOrmModelNames as em, DEFAULT_FARM_API_BASE_PATH as en, type FarmAPIConfigResolverContext as eo, type FarmAPIConfigValue as ep, type FarmAPIConfig as eq, resolveFarmAPIConfig as er, normalizeFarmAPIConfig as es, normalizeFarmAPIBasePath as et, getFarmAPIBaseURL as eu, resolveFarmAPIRequestURL as ev, type MiddlewareFunction as ew, type RequestMiddleware as ex, type RequestMiddlewareContext as ey, type MiddlewareStore as ez, type FarmPluginContext as f, createFarmRouteRuntimeKey as f0, resolveFarmRouteRuleRuntimeConfig as f1, farmRouteRuleMatches as f2, type FarmDocsConfigInput as f3, type FarmDocsNavigationConfig as f4, type FarmDocsSocialImageConfig as f5, type FarmDocsSocialImageFonts as f6, type FarmDocsSidebarItem as f7, FARM_MARKDOWN_PAGE_CHECK_HEADER as f8, _getFarmMarkdownPageCheckToken as f9, type FarmDevtoolsConfig as fA, type FarmBuildActivityPosition as fB, type FarmDevIndicatorsConfig as fC, resolveFarmDevIndicatorsConfig as fD, generateFarmDevIndicatorsClientRuntime as fE, type FarmLlmsTxtLink as fF, createFarmMetadataRouteResponse as fG, createFarmAgentRobots as fH, createFarmDefaultSitemap as fI, collectFarmLlmsTxtPages as fJ, createFarmDefaultLlmsTxt as fK, createFarmLlmsMarkdownReader as fL, renderFarmLlmsFullTxt as fM, createFarmLlmsFullRenderer as fN, resolveFarmLlmsTxtConfig as fO, type FarmLlmsTxtUserConfig as fP, type ResolvedFarmLlmsTxtConfig as fQ, manageFarmDocumentPreloads as fR, manageFarmHtmlPreloads as fS, manageFarmLinkHeaderPreloads as fT, reportFarmPreloadWarnings as fU, applyFarmCspNonceToResponse as fV, createFarmCspNonce as fW, resolveFarmSecurityConfig as fX, stampFarmCspNonce as fY, _isFarmMarkdownPageCheck as fa, type FarmMarkdownRouteInput as fb, type FarmMarkdownResolvedRoute as fc, type FarmMarkdownMirrorTarget as fd, type ResolveMarkdownMirrorTargetOptions as fe, type CreateMarkdownMirrorResponseOptions as ff, type ApplyMarkdownNegotiationHeadersOptions as fg, resolveMarkdownConfig as fh, resolveMarkdownMirrorTarget as fi, createMarkdownMirrorResponse as fj, applyMarkdownNegotiationHeaders as fk, htmlToMarkdown as fl, farmAcceptQuality as fm, requestAcceptsMarkdown as fn, getFarmMarkdownMirrorPath as fo, getFarmMarkdownAlternatePath as fp, isFarmMarkdownMirrorExposed as fq, matchesFarmMarkdownRoutePattern as fr, type FarmPageFormOption as fs, type FarmPageFormField as ft, type FarmPageFormSubmit as fu, type FarmPageFormAction as fv, extractFarmPageActions as fw, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fx, FARM_DEVTOOLS_PATH as fy, FARM_DEVTOOLS_LAUNCH_PARAM as fz, type FarmPluginLifecycle as g, type FarmRequestPluginContext as h, type RoutesGeneratedPayload as i, type RouteMatchPayload as j, type RouteMatchResultPayload as k, type RenderLifecyclePayload as l, type APIHandlerLifecyclePayload as m, type BundleResultPayload as n, type FarmPluginRuntimeKind as o, type FarmPluginRouteRuntimePayload as p, type FarmPluginSetupContext as q, type FarmPluginStateContext as r, type FarmPluginRuntimeBaseEvent as s, type FarmPluginRuntimeContextEvent as t, type FarmPluginRuntimeEndpointEvent as u, type FarmPluginRuntimeEndpoint as v, type FarmPluginRuntimeBeforeEvent as w, type FarmPluginRuntimeAfterEvent as x, type FarmPluginRuntimeErrorEvent as y, type FarmPluginRuntimeStartEvent as z };
3800
+ export { type FarmDevtoolsUserConfig as $, type APIRouteDiscoveredPayload as A, type BundleLifecyclePayload as B, type FarmPluginRuntimeCloseEvent as C, type FarmPluginRuntimeHooks as D, type ErrorLifecyclePayload as E, type FarmRouteRuntimeConfig as F, type FarmPluginRuntimeRequestOptions as G, type HMRUpdatePayload as H, type FarmPluginRuntimeRequestHandler as I, type FarmPluginRuntimeSession as J, type FarmPluginDiscoveredRoute as K, type FarmPluginRouterHooks as L, type MiddlewareDiscoveredPayload as M, type NitroBuildLifecyclePayload as N, type FarmPluginRenderHooks as O, type PluginRequestContext as P, type FarmPluginBuildHooks as Q, type RouteDiscoveredPayload as R, type ShutdownPayload as S, type FarmPluginDevHooks as T, type FarmPluginClientConfig as U, PluginManager as V, type FarmPluginDefinition as W, definePlugin as X, type FarmPluginDatabase as Y, resolveFarmDevtoolsConfig as Z, type ResolvedFarmDevtoolsConfig as _, type FarmPlugin as a, type GenerateStaticParams as a$, getFarmRedirectError as a0, isFarmNotFoundError as a1, isFarmRedirectError as a2, notFound as a3, permanentRedirect as a4, redirect as a5, type FarmRedirectSignal as a6, type FarmRedirectStatus as a7, type ParsedRoute as a8, type RouteSegment as a9, resolveDeployConfig as aA, type FarmConfig as aB, resolveFarmMCPConfig as aC, resolveFarmMCPPlugin as aD, type FarmMCPUserConfig as aE, type FarmComponentType as aF, type AppRoutePattern as aG, type PageRouteParams as aH, type NitroPreset as aI, type FarmMigrationCommand as aJ, type FarmMigrationsConfig as aK, type FarmMigrationsUserConfig as aL, type ResolvedFarmMigrationsConfig as aM, type FarmContextFactoryInput as aN, type FarmIsolatedClientHydrationMode as aO, type LoadingProps as aP, type ErrorProps as aQ, type PagePropsWithMiddleware as aR, type MetadataProps as aS, type LayoutMetadataProps as aT, type Page as aU, type Layout as aV, type Loading as aW, type ErrorBoundary as aX, type StaticPathPrimitive as aY, type StaticPathParams as aZ, type StaticRouteParams as a_, type FarmRequest as aa, type FarmResponse as ab, type LayoutProps as ac, type Metadata as ad, type FarmRouteRuntime as ae, type FarmRouteRegions as af, type FarmRouteMaxDuration as ag, type FarmAppContext as ah, type PageProps as ai, type PluginContextProps as aj, type RouteModule as ak, type FarmMdxComponents as al, type FarmMdxResolvedConfig as am, resolveFarmMdxComponentsModulePath as an, resolveMdxConfig as ao, type FarmMdxComponent as ap, type FarmMdxUserConfig as aq, FARM_MARKDOWN_CONTENT_TYPE as ar, createFarmMarkdownErrorBody as as, farmRequestWantsMarkdown as at, type FarmUserConfig as au, type FarmContextFactory as av, type MiddlewareProps as aw, type FarmIntegration as ax, loadConfig as ay, resolveConfig as az, FARM_NODE_RESPONSE_END_PENDING as b, type FarmSecurityConfig as b$, type LayoutModule as b0, type MetadataJsonLd as b1, type ThemeColorDescriptor as b2, type Viewport as b3, type ServerAction as b4, type BuildOptions as b5, type SSGPage as b6, type SSGCollectionResult as b7, type MetadataRobotsDirectives as b8, type MetadataRobots as b9, type CollectedSchemaModel as bA, type FarmSchemaMigrationStep as bB, type OpenAPIConfig as bC, type FarmAgentUserConfig as bD, type FarmAgentCrawlers as bE, type FarmCrawlerPolicy as bF, type FarmAppManifestConfig as bG, FarmPluginOptionsError as bH, type FarmPluginFactory as bI, type FarmPluginOptionsIssue as bJ, type FarmPluginOptionsSchema as bK, type InferPluginOptionsInput as bL, type InferPluginOptionsOutput as bM, resolveMigrationsConfig as bN, resolveDeployOutputPath as bO, normalizeDeployTarget as bP, getDeployTargetForPreset as bQ, getPresetForDeployTarget as bR, type FarmLayerConfig as bS, type FarmPerformanceConfig as bT, type FarmPreloadMode as bU, type FarmPreloadUserConfig as bV, type ResolvedFarmPreloadConfig as bW, type FarmCspConfig as bX, type FarmCspDirectives as bY, type FarmCspDirectiveValue as bZ, type FarmCspOptions as b_, type FarmMCPCatalogDetails as ba, type ResolvedFarmAppManifestConfig as bb, type ReadonlyMiddlewareStore as bc, type FarmMiddlewareConfig as bd, type MiddlewareModule as be, type MiddlewareConfig$1 as bf, type MiddlewareContext as bg, type FarmServerComponentsMode as bh, type ResolvedFarmConfig as bi, type FarmAgentJsonLd as bj, type FarmMCPServerRegistration as bk, type FarmMarkdownResolvedConfig as bl, _findFarmMCPEndpointTool as bm, _publishFarmMCPCatalog as bn, registerFarmMCPServer as bo, type ResolvedFarmRouteRuntimeConfig as bp, type ApplicationMetadataRouteKind as bq, type ResolvedFarmAPIConfig as br, type FarmDocsResolvedConfig as bs, type ResolvedFarmDevIndicatorsConfig as bt, type ResolvedFarmAuthConfig as bu, type ResolvedFarmPerformanceConfig as bv, type ResolvedFarmSecurityConfig as bw, type ResolvedSchemaField as bx, type FarmSqlDialect as by, type FarmSqlStatement as bz, type FarmPluginIntegrationContext as c, type FarmIntegrationValidationErrorLike as c$, type ResolvedFarmCspConfig as c0, MetadataRoute as c1, type MetadataRouteContext as c2, type FarmMCPEndpointTool as c3, type FarmServerComponentsConfig as c4, type FarmServerComponentsOptions as c5, type FarmAuthConfig as c6, type FarmAuthDatabaseConfig as c7, type FarmAuthEmailAndPasswordConfig as c8, type FarmAuthSessionConfig as c9, type ResolvedFarmDeployConfig as cA, type FarmDeployTarget as cB, type FarmDocsUserConfig as cC, type FarmMarkdownUserConfig as cD, describeSchemaReference as cE, collectSchemaModels as cF, generateSqlStatements as cG, renderSqlSchemaFile as cH, getSqlColumnType as cI, getSqlDefaultExpression as cJ, isNullableField as cK, quoteSqlIdentifier as cL, toSnakeCase as cM, toPascalCase as cN, toCamelCase as cO, escapeSqlString as cP, resolveSchemaModels as cQ, type ResolvedSchemaModel as cR, type FarmIntegrationCategory as cS, type FarmIntegrationSlot as cT, type FarmIntegrationRouteParamValue as cU, type FarmIntegrationRouteParams as cV, type FarmIntegrationRouteMethod as cW, type FarmIntegrationRouteInputSource as cX, type FarmIntegrationValidationPathSegment as cY, type FarmIntegrationRouteInput as cZ, type FarmIntegrationValidationIssue as c_, type FarmAuthUserConfig as ca, type FarmMCPAuthorization as cb, type FarmMCPEndpoint as cc, type FarmMCPServerFunction as cd, type FarmMCPToolDefinition as ce, type FarmMCPStandaloneTool as cf, type FarmMCPExecuteContext as cg, type FarmMCPTool as ch, type FarmMCPServer as ci, type FarmMCPAuthorizeContext as cj, type FarmMCPConfig as ck, type FarmMCPOAuthConfig as cl, type FarmMCPPrompt as cm, type FarmMCPPromptMessage as cn, type FarmMCPResource as co, type FarmMCPResourceContent as cp, type FarmMCPResourceContext as cq, type FarmMCPResourceListing as cr, type ResolvedFarmMCPConfig as cs, type RedirectConfig as ct, type HeaderConfig as cu, type RewriteConfig as cv, type ImageConfig as cw, type I18nConfig as cx, type MiddlewareConfig as cy, type FarmDeployConfig as cz, FarmRuntimeShutdownError as d, getIntegrationDocumentNavigationMatchers as d$, type FarmIntegrationValidationResult as d0, type FarmIntegrationStandardValidationResult as d1, type FarmIntegrationInputSchema as d2, type FarmIntegrationRouteInputSchemas as d3, type FarmIntegrationRequestContextStore as d4, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d5, FARM_INTEGRATION_SET_COOKIES_KEY as d6, forwardIntegrationSetCookies as d7, type FarmIntegrationRouteDb as d8, type FarmIntegrationRouteStorageArgs as d9, type FarmIntegrationSchemaModelExtension as dA, type FarmIntegrationSchemaModelOverride as dB, type FarmIntegrationSchema as dC, defineIntegrationSchema as dD, type FarmIntegrationLogPhase as dE, type FarmIntegrationLogEvent as dF, type FarmIntegrationLogger as dG, type FarmIntegrationPluginOwner as dH, type FarmIntegrationContributedPlugin as dI, type FarmIntegrationsUserConfig as dJ, getFarmIntegrationPluginServerRuntime as dK, getFarmIntegrationPluginOwner as dL, type FarmIntegrationRouteFactory as dM, type FarmIntegrationRoutesFactoryContext as dN, type FarmIntegrationRoutesFactory as dO, type FarmIntegrationEndpointValue as dP, type FarmIntegrationEndpoints as dQ, type FarmIntegrationEndpointsFactoryContext as dR, type FarmIntegrationEndpointsFactory as dS, createIntegrationRoute as dT, integrationRoute as dU, type DefinedIntegration as dV, defineIntegration as dW, isFarmIntegration as dX, resolveIntegrationPlugins as dY, getIntegrationProviders as dZ, isFarmIntegrationProviderComponentReference as d_, type FarmIntegrationRouteArgs as da, type FarmIntegrationConfigContext as db, type FarmIntegrationConfigDefinition as dc, type FarmIntegrationConfigInput as dd, type FarmIntegrationLifecycleLogLevel as de, type FarmIntegrationLifecycleLogger as df, type FarmIntegrationLifecycleContext as dg, type FarmIntegrationLifecycleHook as dh, type FarmIntegrationData as di, type FarmIntegrationHandlerContext as dj, type FarmIntegrationRouteHookContext as dk, type FarmIntegrationRouteHook as dl, type FarmIntegrationRoute as dm, type FarmTypedIntegrationRoute as dn, type FarmIntegrationRouteMiddleware as dp, type FarmIntegrationMiddleware as dq, type FarmIntegrationProviderProps as dr, type FarmIntegrationProviderComponentReference as ds, type FarmIntegrationProvider as dt, type FarmIntegrationDocumentNavigation as du, type FarmIntegrationSchemaFieldType as dv, type FarmIntegrationSchemaReference as dw, type FarmIntegrationSchemaField as dx, type FarmIntegrationSchemaConstraint as dy, type FarmIntegrationSchemaModel as dz, type FarmRequestStore as e, type FarmRouteRuntimeManifest as e$, getIntegrationSchemas as e0, getRegisteredIntegrationRuntime as e1, getRegisteredIntegrations as e2, getRegisteredIntegrationSchemas as e3, matchIntegrationRoute as e4, matchRegisteredIntegrationRoute as e5, getRegisteredIntegrationAPIManifest as e6, dispatchIntegrationRequest as e7, dispatchIntegrationRequests as e8, integrationMiddlewareMayHandlePath as e9, resolveFarmAPIRequestURL as eA, type MiddlewareFunction as eB, type RequestMiddleware as eC, type RequestMiddlewareContext as eD, type MiddlewareStore as eE, type MiddlewareChain as eF, type CookieJar as eG, type CookieOptions as eH, type RateLimitConfig as eI, type RateLimitIncrementResult as eJ, type RateLimitStorage as eK, type RateLimitStatus as eL, type MemoryRateLimitStorageOptions as eM, type NextFunction as eN, type MiddlewareResult as eO, type FarmRouteRuleRenderMode as eP, type FarmRouteRuleRedirect as eQ, type FarmRouteRuleCors as eR, type FarmRouteRule as eS, type FarmRouteRules as eT, normalizeRouteRules as eU, routeRulesToRedirects as eV, routeRulesToHeaders as eW, routeRulesToNitroRouteRules as eX, type FarmRouteRuntimeEntryKind as eY, type FarmRouteRenderingMode as eZ, type FarmRouteRuntimeManifestEntry as e_, FARM_INTEGRATION_API_BASE_PATH_KEY as ea, describeIntegrationOriginRejection as eb, resolveIntegrationAllowedOrigins as ec, validateIntegrationRequestOrigin as ed, type IntegrationOriginPolicy as ee, type IntegrationOriginRejection as ef, type IntegrationOriginResult as eg, type FarmIntegrationOrmSchema as eh, type FarmIntegrationOrmClient as ei, type InferFarmIntegrationOrmField as ej, type InferFarmIntegrationOrmFields as ek, type InferFarmIntegrationOrmSchema as el, type InferFarmIntegrationOrmClient as em, type CreateIntegrationOrmOptions as en, createIntegrationOrm as eo, resolveIntegrationOrmRuntimeClient as ep, farmIntegrationSchemaToOrmSchema as eq, type IntegrationOrmModelNames as er, DEFAULT_FARM_API_BASE_PATH as es, type FarmAPIConfigResolverContext as et, type FarmAPIConfigValue as eu, type FarmAPIConfig as ev, resolveFarmAPIConfig as ew, normalizeFarmAPIConfig as ex, normalizeFarmAPIBasePath as ey, getFarmAPIBaseURL as ez, type FarmPluginContext as f, createFarmCspNonce as f$, normalizeFarmRouteRuntimeConfig as f0, mergeFarmRouteRuntimeConfigs as f1, resolveFarmRouteRuntimeConfig as f2, hasFarmRouteRuntimeControls as f3, getFarmRouteRuntimeConfig as f4, createFarmRouteRuntimeKey as f5, resolveFarmRouteRuleRuntimeConfig as f6, farmRouteRuleMatches as f7, type FarmDocsConfigInput as f8, type FarmDocsNavigationConfig as f9, type FarmPageFormAction as fA, extractFarmPageActions as fB, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fC, FARM_DEVTOOLS_PATH as fD, FARM_DEVTOOLS_LAUNCH_PARAM as fE, type FarmDevtoolsConfig as fF, type FarmBuildActivityPosition as fG, type FarmDevIndicatorsConfig as fH, resolveFarmDevIndicatorsConfig as fI, generateFarmDevIndicatorsClientRuntime as fJ, type FarmLlmsTxtLink as fK, createFarmMetadataRouteResponse as fL, createFarmAgentRobots as fM, createFarmDefaultSitemap as fN, collectFarmLlmsTxtPages as fO, createFarmDefaultLlmsTxt as fP, createFarmLlmsMarkdownReader as fQ, renderFarmLlmsFullTxt as fR, createFarmLlmsFullRenderer as fS, resolveFarmLlmsTxtConfig as fT, type FarmLlmsTxtUserConfig as fU, type ResolvedFarmLlmsTxtConfig as fV, manageFarmDocumentPreloads as fW, manageFarmHtmlPreloads as fX, manageFarmLinkHeaderPreloads as fY, reportFarmPreloadWarnings as fZ, applyFarmCspNonceToResponse as f_, type FarmDocsSocialImageConfig as fa, type FarmDocsSocialImageFonts as fb, type FarmDocsSidebarItem as fc, FARM_MARKDOWN_PAGE_CHECK_HEADER as fd, _getFarmMarkdownPageCheckToken as fe, _isFarmMarkdownPageCheck as ff, type FarmMarkdownRouteInput as fg, type FarmMarkdownResolvedRoute as fh, type FarmMarkdownMirrorTarget as fi, type ResolveMarkdownMirrorTargetOptions as fj, type CreateMarkdownMirrorResponseOptions as fk, type ApplyMarkdownNegotiationHeadersOptions as fl, resolveMarkdownConfig as fm, resolveMarkdownMirrorTarget as fn, createMarkdownMirrorResponse as fo, applyMarkdownNegotiationHeaders as fp, htmlToMarkdown as fq, farmAcceptQuality as fr, requestAcceptsMarkdown as fs, getFarmMarkdownMirrorPath as ft, getFarmMarkdownAlternatePath as fu, isFarmMarkdownMirrorExposed as fv, matchesFarmMarkdownRoutePattern as fw, type FarmPageFormOption as fx, type FarmPageFormField as fy, type FarmPageFormSubmit as fz, type FarmPluginLifecycle as g, resolveFarmSecurityConfig as g0, stampFarmCspNonce as g1, type FarmRequestPluginContext as h, type RoutesGeneratedPayload as i, type RouteMatchPayload as j, type RouteMatchResultPayload as k, type RenderLifecyclePayload as l, type APIHandlerLifecyclePayload as m, type BundleResultPayload as n, type FarmPluginRuntimeKind as o, type FarmPluginRouteRuntimePayload as p, type FarmPluginSetupContext as q, type FarmPluginStateContext as r, type FarmPluginRuntimeBaseEvent as s, type FarmPluginRuntimeContextEvent as t, type FarmPluginRuntimeEndpointEvent as u, type FarmPluginRuntimeEndpoint as v, type FarmPluginRuntimeBeforeEvent as w, type FarmPluginRuntimeAfterEvent as x, type FarmPluginRuntimeErrorEvent as y, type FarmPluginRuntimeStartEvent as z };
@@ -24,6 +24,90 @@ import { FarmCacheUserConfig } from './cache.js';
24
24
  import { R as ResolvedFarmThemeConfig, d as FarmThemeConfig } from './types-DQnyD3VD.js';
25
25
  import { FarmLayoutFonts } from './font.js';
26
26
 
27
+ /**
28
+ * `experimental.serverComponents`: which engine renders server components.
29
+ *
30
+ * - `"rsc"`: React's Flight pipeline (`@farm.js/plugin/rsc` on `@vitejs/plugin-rsc`).
31
+ * - `"islands"`: Farm's own engine (RFC 0003), on Farm's pipeline. Experimental.
32
+ *
33
+ * `true` means `{ mode: "rsc" }`. Both modes share one authoring contract.
34
+ */
35
+ type FarmServerComponentsMode = "rsc" | "islands";
36
+ interface FarmServerComponentsOptions {
37
+ mode: FarmServerComponentsMode;
38
+ }
39
+ type FarmServerComponentsConfig = boolean | FarmServerComponentsOptions;
40
+
41
+ /**
42
+ * `agent.manifest`: which sections `/.well-known/farmjs.json` shows. Every section is shown by
43
+ * default; a section set to `false` is served as `null` (hidden by the app), unlike an empty
44
+ * list, which means there is nothing to show.
45
+ */
46
+ /** Per-section options for `/.well-known/farmjs.json`. Every section is shown by default. */
47
+ interface FarmAppManifestConfig {
48
+ /**
49
+ * The `app` section. `false` serves `app: null`; an object leaves out the Farm version
50
+ * (`version`), the `renderer` or the `build` ID. `basePath` is always kept.
51
+ *
52
+ * @default true
53
+ */
54
+ app?: boolean | {
55
+ version?: boolean;
56
+ renderer?: boolean;
57
+ build?: boolean;
58
+ };
59
+ /**
60
+ * Installed `@farm.js/*` and `@farming-labs/*` packages. `"names"` lists them with `null`
61
+ * versions; `false` serves `packages: null`.
62
+ *
63
+ * @default true
64
+ */
65
+ packages?: boolean | "names";
66
+ /**
67
+ * MCP servers and their tools. `schemas: false` drops tools' `inputSchema` and
68
+ * `outputSchema`; `hide` leaves out a server (`"store"`) or one of its tools
69
+ * (`"store/list_orders"`). `false` serves `mcp: null`.
70
+ *
71
+ * @default true
72
+ */
73
+ mcp?: boolean | {
74
+ schemas?: boolean;
75
+ hide?: string[];
76
+ };
77
+ /**
78
+ * WebMCP browser tools. `hide` leaves out tools by name; `false` serves `webmcp: null`.
79
+ *
80
+ * @default true
81
+ */
82
+ webmcp?: boolean | {
83
+ hide?: string[];
84
+ };
85
+ /** Integration keys, categories and providers. `false` serves `integrations: null`. */
86
+ integrations?: boolean;
87
+ /** The app's agent surfaces (API catalog, llms.txt, OpenAPI). `false` serves `agent: null`. */
88
+ agent?: boolean;
89
+ /** Plugin names. `false` serves `plugins: null`. */
90
+ plugins?: boolean;
91
+ }
92
+ interface ResolvedFarmAppManifestConfig {
93
+ app: false | {
94
+ version: boolean;
95
+ renderer: boolean;
96
+ build: boolean;
97
+ };
98
+ packages: boolean | "names";
99
+ mcp: false | {
100
+ schemas: boolean;
101
+ hide: string[];
102
+ };
103
+ webmcp: false | {
104
+ hide: string[];
105
+ };
106
+ integrations: boolean;
107
+ agent: boolean;
108
+ plugins: boolean;
109
+ }
110
+
27
111
  declare const DEFAULT_FARM_DEVTOOLS_SHORTCUT = "mod+shift+.";
28
112
  declare const FARM_DEVTOOLS_PATH = "/__farm/devtools";
29
113
  declare const FARM_DEVTOOLS_LAUNCH_PARAM = "__farm_devtools";
@@ -1546,13 +1630,15 @@ interface FarmAgentUserConfig {
1546
1630
  aiCatalog?: boolean;
1547
1631
  /**
1548
1632
  * Serve `/.well-known/farmjs.json`: Farm's version and packages, the app's MCP tools and
1549
- * their schemas, WebMCP browser tools, integration providers and plugin names, to any
1550
- * client. An MCP server that requires `authorize` is listed without its tools. `false`
1551
- * turns it off; Farm Infra then can't discover the app's tools either.
1633
+ * their schemas, WebMCP browser tools, integration providers and plugin names. Everyone,
1634
+ * Farm Infra included, gets the same public document; an MCP server that requires
1635
+ * `authorize` or sits behind a guard is listed by identity only. An object hides sections
1636
+ * (served as `null`), package versions, schemas or single servers and tools. `false` turns
1637
+ * it off; Farm Infra then can't discover the app's tools either.
1552
1638
  *
1553
1639
  * @default true
1554
1640
  */
1555
- manifest?: boolean;
1641
+ manifest?: boolean | FarmAppManifestConfig;
1556
1642
  /**
1557
1643
  * Serve a read-only MCP server (Streamable HTTP) at `/mcp` with tools that list,
1558
1644
  * search, and read the app's public pages as Markdown: the static pages llms.txt and
@@ -1575,7 +1661,7 @@ interface ResolvedFarmAgentConfig {
1575
1661
  crawlers: ResolvedFarmAgentCrawlers;
1576
1662
  apiCatalog: boolean;
1577
1663
  aiCatalog: boolean;
1578
- manifest: boolean;
1664
+ manifest: false | ResolvedFarmAppManifestConfig;
1579
1665
  mcp: boolean;
1580
1666
  }
1581
1667
 
@@ -3176,7 +3262,12 @@ interface FarmConfig {
3176
3262
  */
3177
3263
  suppressLintOnLink?: boolean;
3178
3264
  experimental?: {
3179
- serverComponents?: boolean;
3265
+ /**
3266
+ * React Server Components. `true` is `{ mode: "rsc" }`: `farm dev` and `farm build` run
3267
+ * React's Flight pipeline from `@farm.js/plugin/rsc`. `{ mode: "islands" }` is reserved for
3268
+ * Farm's own engine (RFC 0003). Pages and layouts are server components either way.
3269
+ */
3270
+ serverComponents?: FarmServerComponentsConfig;
3180
3271
  serverActions?: boolean;
3181
3272
  /**
3182
3273
  * Enables Partial Prerendering (static-shell caching). Routes still opt in
@@ -3706,4 +3797,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
3706
3797
  googleBot?: string | MetadataRobotsDirectives;
3707
3798
  }
3708
3799
 
3709
- export { type FarmDevtoolsUserConfig as $, type APIRouteDiscoveredPayload as A, type BundleLifecyclePayload as B, type FarmPluginRuntimeCloseEvent as C, type FarmPluginRuntimeHooks as D, type ErrorLifecyclePayload as E, type FarmRouteRuntimeConfig as F, type FarmPluginRuntimeRequestOptions as G, type HMRUpdatePayload as H, type FarmPluginRuntimeRequestHandler as I, type FarmPluginRuntimeSession as J, type FarmPluginDiscoveredRoute as K, type FarmPluginRouterHooks as L, type MiddlewareDiscoveredPayload as M, type NitroBuildLifecyclePayload as N, type FarmPluginRenderHooks as O, type PluginRequestContext as P, type FarmPluginBuildHooks as Q, type RouteDiscoveredPayload as R, type ShutdownPayload as S, type FarmPluginDevHooks as T, type FarmPluginClientConfig as U, PluginManager as V, type FarmPluginDefinition as W, definePlugin as X, type FarmPluginDatabase as Y, resolveFarmDevtoolsConfig as Z, type ResolvedFarmDevtoolsConfig as _, type FarmPlugin as a, type ThemeColorDescriptor as a$, getFarmRedirectError as a0, isFarmNotFoundError as a1, isFarmRedirectError as a2, notFound as a3, permanentRedirect as a4, redirect as a5, type FarmRedirectSignal as a6, type FarmRedirectStatus as a7, type ParsedRoute as a8, type RouteSegment as a9, resolveFarmMCPPlugin as aA, type FarmMCPUserConfig as aB, type FarmComponentType as aC, type AppRoutePattern as aD, type PageRouteParams as aE, type NitroPreset as aF, type FarmMigrationCommand as aG, type FarmMigrationsConfig as aH, type FarmMigrationsUserConfig as aI, type ResolvedFarmMigrationsConfig as aJ, type FarmContextFactoryInput as aK, type FarmIsolatedClientHydrationMode as aL, type LoadingProps as aM, type ErrorProps as aN, type PagePropsWithMiddleware as aO, type MetadataProps as aP, type LayoutMetadataProps as aQ, type Page as aR, type Layout as aS, type Loading as aT, type ErrorBoundary as aU, type StaticPathPrimitive as aV, type StaticPathParams as aW, type StaticRouteParams as aX, type GenerateStaticParams as aY, type LayoutModule as aZ, type MetadataJsonLd as a_, type FarmRequest as aa, type FarmResponse as ab, type LayoutProps as ac, type Metadata as ad, type FarmRouteRuntime as ae, type FarmRouteRegions as af, type FarmRouteMaxDuration as ag, type FarmAppContext as ah, type PageProps as ai, type PluginContextProps as aj, type RouteModule as ak, type FarmMdxComponents as al, type FarmMdxResolvedConfig as am, resolveFarmMdxComponentsModulePath as an, resolveMdxConfig as ao, type FarmMdxComponent as ap, type FarmMdxUserConfig as aq, FARM_MARKDOWN_CONTENT_TYPE as ar, createFarmMarkdownErrorBody as as, farmRequestWantsMarkdown as at, type FarmUserConfig as au, type FarmContextFactory as av, type MiddlewareProps as aw, type FarmIntegration as ax, type FarmConfig as ay, resolveFarmMCPConfig as az, FARM_NODE_RESPONSE_END_PENDING as b, type FarmMCPEndpointTool as b$, type Viewport as b0, type ServerAction as b1, type BuildOptions as b2, type SSGPage as b3, type SSGCollectionResult as b4, type MetadataRobotsDirectives as b5, type MetadataRobots as b6, type ReadonlyMiddlewareStore as b7, type FarmMiddlewareConfig as b8, type MiddlewareModule as b9, FarmPluginOptionsError as bA, type FarmPluginFactory as bB, type FarmPluginOptionsIssue as bC, type FarmPluginOptionsSchema as bD, type InferPluginOptionsInput as bE, type InferPluginOptionsOutput as bF, resolveConfig as bG, loadConfig as bH, resolveDeployConfig as bI, resolveMigrationsConfig as bJ, resolveDeployOutputPath as bK, normalizeDeployTarget as bL, getDeployTargetForPreset as bM, getPresetForDeployTarget as bN, type FarmLayerConfig as bO, type FarmPerformanceConfig as bP, type FarmPreloadMode as bQ, type FarmPreloadUserConfig as bR, type ResolvedFarmPreloadConfig as bS, type FarmCspConfig as bT, type FarmCspDirectives as bU, type FarmCspDirectiveValue as bV, type FarmCspOptions as bW, type FarmSecurityConfig as bX, type ResolvedFarmCspConfig as bY, MetadataRoute as bZ, type MetadataRouteContext as b_, type MiddlewareConfig$1 as ba, type MiddlewareContext as bb, type FarmAgentJsonLd as bc, type FarmMCPServerRegistration as bd, type FarmMarkdownResolvedConfig as be, _findFarmMCPEndpointTool as bf, _publishFarmMCPCatalog as bg, registerFarmMCPServer as bh, type FarmMCPCatalogDetails as bi, type ResolvedFarmRouteRuntimeConfig as bj, type ApplicationMetadataRouteKind as bk, type ResolvedFarmAPIConfig as bl, type FarmDocsResolvedConfig as bm, type ResolvedFarmDevIndicatorsConfig as bn, type ResolvedFarmAuthConfig as bo, type ResolvedFarmPerformanceConfig as bp, type ResolvedFarmSecurityConfig as bq, type ResolvedSchemaField as br, type FarmSqlDialect as bs, type FarmSqlStatement as bt, type CollectedSchemaModel as bu, type FarmSchemaMigrationStep as bv, type OpenAPIConfig as bw, type FarmAgentUserConfig as bx, type FarmAgentCrawlers as by, type FarmCrawlerPolicy as bz, type FarmPluginIntegrationContext as c, type FarmIntegrationRequestContextStore as c$, type FarmAuthConfig as c0, type FarmAuthDatabaseConfig as c1, type FarmAuthEmailAndPasswordConfig as c2, type FarmAuthSessionConfig as c3, type FarmAuthUserConfig as c4, type FarmMCPAuthorization as c5, type FarmMCPEndpoint as c6, type FarmMCPServerFunction as c7, type FarmMCPToolDefinition as c8, type FarmMCPStandaloneTool as c9, collectSchemaModels as cA, generateSqlStatements as cB, renderSqlSchemaFile as cC, getSqlColumnType as cD, getSqlDefaultExpression as cE, isNullableField as cF, quoteSqlIdentifier as cG, toSnakeCase as cH, toPascalCase as cI, toCamelCase as cJ, escapeSqlString as cK, resolveSchemaModels as cL, type ResolvedSchemaModel as cM, type FarmIntegrationCategory as cN, type FarmIntegrationSlot as cO, type FarmIntegrationRouteParamValue as cP, type FarmIntegrationRouteParams as cQ, type FarmIntegrationRouteMethod as cR, type FarmIntegrationRouteInputSource as cS, type FarmIntegrationValidationPathSegment as cT, type FarmIntegrationRouteInput as cU, type FarmIntegrationValidationIssue as cV, type FarmIntegrationValidationErrorLike as cW, type FarmIntegrationValidationResult as cX, type FarmIntegrationStandardValidationResult as cY, type FarmIntegrationInputSchema as cZ, type FarmIntegrationRouteInputSchemas as c_, type FarmMCPExecuteContext as ca, type FarmMCPTool as cb, type FarmMCPServer as cc, type FarmMCPAuthorizeContext as cd, type FarmMCPConfig as ce, type FarmMCPOAuthConfig as cf, type FarmMCPPrompt as cg, type FarmMCPPromptMessage as ch, type FarmMCPResource as ci, type FarmMCPResourceContent as cj, type FarmMCPResourceContext as ck, type FarmMCPResourceListing as cl, type ResolvedFarmMCPConfig as cm, type ResolvedFarmConfig as cn, type RedirectConfig as co, type HeaderConfig as cp, type RewriteConfig as cq, type ImageConfig as cr, type I18nConfig as cs, type MiddlewareConfig as ct, type FarmDeployConfig as cu, type ResolvedFarmDeployConfig as cv, type FarmDeployTarget as cw, type FarmDocsUserConfig as cx, type FarmMarkdownUserConfig as cy, describeSchemaReference as cz, FarmRuntimeShutdownError as d, matchIntegrationRoute as d$, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d0, FARM_INTEGRATION_SET_COOKIES_KEY as d1, forwardIntegrationSetCookies as d2, type FarmIntegrationRouteDb as d3, type FarmIntegrationRouteStorageArgs as d4, type FarmIntegrationRouteArgs as d5, type FarmIntegrationConfigContext as d6, type FarmIntegrationConfigDefinition as d7, type FarmIntegrationConfigInput as d8, type FarmIntegrationLifecycleLogLevel as d9, type FarmIntegrationLogEvent as dA, type FarmIntegrationLogger as dB, type FarmIntegrationPluginOwner as dC, type FarmIntegrationContributedPlugin as dD, type FarmIntegrationsUserConfig as dE, getFarmIntegrationPluginServerRuntime as dF, getFarmIntegrationPluginOwner as dG, type FarmIntegrationRouteFactory as dH, type FarmIntegrationRoutesFactoryContext as dI, type FarmIntegrationRoutesFactory as dJ, type FarmIntegrationEndpointValue as dK, type FarmIntegrationEndpoints as dL, type FarmIntegrationEndpointsFactoryContext as dM, type FarmIntegrationEndpointsFactory as dN, createIntegrationRoute as dO, integrationRoute as dP, type DefinedIntegration as dQ, defineIntegration as dR, isFarmIntegration as dS, resolveIntegrationPlugins as dT, getIntegrationProviders as dU, isFarmIntegrationProviderComponentReference as dV, getIntegrationDocumentNavigationMatchers as dW, getIntegrationSchemas as dX, getRegisteredIntegrationRuntime as dY, getRegisteredIntegrations as dZ, getRegisteredIntegrationSchemas as d_, type FarmIntegrationLifecycleLogger as da, type FarmIntegrationLifecycleContext as db, type FarmIntegrationLifecycleHook as dc, type FarmIntegrationData as dd, type FarmIntegrationHandlerContext as de, type FarmIntegrationRouteHookContext as df, type FarmIntegrationRouteHook as dg, type FarmIntegrationRoute as dh, type FarmTypedIntegrationRoute as di, type FarmIntegrationRouteMiddleware as dj, type FarmIntegrationMiddleware as dk, type FarmIntegrationProviderProps as dl, type FarmIntegrationProviderComponentReference as dm, type FarmIntegrationProvider as dn, type FarmIntegrationDocumentNavigation as dp, type FarmIntegrationSchemaFieldType as dq, type FarmIntegrationSchemaReference as dr, type FarmIntegrationSchemaField as ds, type FarmIntegrationSchemaConstraint as dt, type FarmIntegrationSchemaModel as du, type FarmIntegrationSchemaModelExtension as dv, type FarmIntegrationSchemaModelOverride as dw, type FarmIntegrationSchema as dx, defineIntegrationSchema as dy, type FarmIntegrationLogPhase as dz, type FarmRequestStore as e, getFarmRouteRuntimeConfig as e$, matchRegisteredIntegrationRoute as e0, getRegisteredIntegrationAPIManifest as e1, dispatchIntegrationRequest as e2, dispatchIntegrationRequests as e3, integrationMiddlewareMayHandlePath as e4, FARM_INTEGRATION_API_BASE_PATH_KEY as e5, describeIntegrationOriginRejection as e6, resolveIntegrationAllowedOrigins as e7, validateIntegrationRequestOrigin as e8, type IntegrationOriginPolicy as e9, type MiddlewareChain as eA, type CookieJar as eB, type CookieOptions as eC, type RateLimitConfig as eD, type RateLimitIncrementResult as eE, type RateLimitStorage as eF, type RateLimitStatus as eG, type MemoryRateLimitStorageOptions as eH, type NextFunction as eI, type MiddlewareResult as eJ, type FarmRouteRuleRenderMode as eK, type FarmRouteRuleRedirect as eL, type FarmRouteRuleCors as eM, type FarmRouteRule as eN, type FarmRouteRules as eO, normalizeRouteRules as eP, routeRulesToRedirects as eQ, routeRulesToHeaders as eR, routeRulesToNitroRouteRules as eS, type FarmRouteRuntimeEntryKind as eT, type FarmRouteRenderingMode as eU, type FarmRouteRuntimeManifestEntry as eV, type FarmRouteRuntimeManifest as eW, normalizeFarmRouteRuntimeConfig as eX, mergeFarmRouteRuntimeConfigs as eY, resolveFarmRouteRuntimeConfig as eZ, hasFarmRouteRuntimeControls as e_, type IntegrationOriginRejection as ea, type IntegrationOriginResult as eb, type FarmIntegrationOrmSchema as ec, type FarmIntegrationOrmClient as ed, type InferFarmIntegrationOrmField as ee, type InferFarmIntegrationOrmFields as ef, type InferFarmIntegrationOrmSchema as eg, type InferFarmIntegrationOrmClient as eh, type CreateIntegrationOrmOptions as ei, createIntegrationOrm as ej, resolveIntegrationOrmRuntimeClient as ek, farmIntegrationSchemaToOrmSchema as el, type IntegrationOrmModelNames as em, DEFAULT_FARM_API_BASE_PATH as en, type FarmAPIConfigResolverContext as eo, type FarmAPIConfigValue as ep, type FarmAPIConfig as eq, resolveFarmAPIConfig as er, normalizeFarmAPIConfig as es, normalizeFarmAPIBasePath as et, getFarmAPIBaseURL as eu, resolveFarmAPIRequestURL as ev, type MiddlewareFunction as ew, type RequestMiddleware as ex, type RequestMiddlewareContext as ey, type MiddlewareStore as ez, type FarmPluginContext as f, createFarmRouteRuntimeKey as f0, resolveFarmRouteRuleRuntimeConfig as f1, farmRouteRuleMatches as f2, type FarmDocsConfigInput as f3, type FarmDocsNavigationConfig as f4, type FarmDocsSocialImageConfig as f5, type FarmDocsSocialImageFonts as f6, type FarmDocsSidebarItem as f7, FARM_MARKDOWN_PAGE_CHECK_HEADER as f8, _getFarmMarkdownPageCheckToken as f9, type FarmDevtoolsConfig as fA, type FarmBuildActivityPosition as fB, type FarmDevIndicatorsConfig as fC, resolveFarmDevIndicatorsConfig as fD, generateFarmDevIndicatorsClientRuntime as fE, type FarmLlmsTxtLink as fF, createFarmMetadataRouteResponse as fG, createFarmAgentRobots as fH, createFarmDefaultSitemap as fI, collectFarmLlmsTxtPages as fJ, createFarmDefaultLlmsTxt as fK, createFarmLlmsMarkdownReader as fL, renderFarmLlmsFullTxt as fM, createFarmLlmsFullRenderer as fN, resolveFarmLlmsTxtConfig as fO, type FarmLlmsTxtUserConfig as fP, type ResolvedFarmLlmsTxtConfig as fQ, manageFarmDocumentPreloads as fR, manageFarmHtmlPreloads as fS, manageFarmLinkHeaderPreloads as fT, reportFarmPreloadWarnings as fU, applyFarmCspNonceToResponse as fV, createFarmCspNonce as fW, resolveFarmSecurityConfig as fX, stampFarmCspNonce as fY, _isFarmMarkdownPageCheck as fa, type FarmMarkdownRouteInput as fb, type FarmMarkdownResolvedRoute as fc, type FarmMarkdownMirrorTarget as fd, type ResolveMarkdownMirrorTargetOptions as fe, type CreateMarkdownMirrorResponseOptions as ff, type ApplyMarkdownNegotiationHeadersOptions as fg, resolveMarkdownConfig as fh, resolveMarkdownMirrorTarget as fi, createMarkdownMirrorResponse as fj, applyMarkdownNegotiationHeaders as fk, htmlToMarkdown as fl, farmAcceptQuality as fm, requestAcceptsMarkdown as fn, getFarmMarkdownMirrorPath as fo, getFarmMarkdownAlternatePath as fp, isFarmMarkdownMirrorExposed as fq, matchesFarmMarkdownRoutePattern as fr, type FarmPageFormOption as fs, type FarmPageFormField as ft, type FarmPageFormSubmit as fu, type FarmPageFormAction as fv, extractFarmPageActions as fw, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fx, FARM_DEVTOOLS_PATH as fy, FARM_DEVTOOLS_LAUNCH_PARAM as fz, type FarmPluginLifecycle as g, type FarmRequestPluginContext as h, type RoutesGeneratedPayload as i, type RouteMatchPayload as j, type RouteMatchResultPayload as k, type RenderLifecyclePayload as l, type APIHandlerLifecyclePayload as m, type BundleResultPayload as n, type FarmPluginRuntimeKind as o, type FarmPluginRouteRuntimePayload as p, type FarmPluginSetupContext as q, type FarmPluginStateContext as r, type FarmPluginRuntimeBaseEvent as s, type FarmPluginRuntimeContextEvent as t, type FarmPluginRuntimeEndpointEvent as u, type FarmPluginRuntimeEndpoint as v, type FarmPluginRuntimeBeforeEvent as w, type FarmPluginRuntimeAfterEvent as x, type FarmPluginRuntimeErrorEvent as y, type FarmPluginRuntimeStartEvent as z };
3800
+ export { type FarmDevtoolsUserConfig as $, type APIRouteDiscoveredPayload as A, type BundleLifecyclePayload as B, type FarmPluginRuntimeCloseEvent as C, type FarmPluginRuntimeHooks as D, type ErrorLifecyclePayload as E, type FarmRouteRuntimeConfig as F, type FarmPluginRuntimeRequestOptions as G, type HMRUpdatePayload as H, type FarmPluginRuntimeRequestHandler as I, type FarmPluginRuntimeSession as J, type FarmPluginDiscoveredRoute as K, type FarmPluginRouterHooks as L, type MiddlewareDiscoveredPayload as M, type NitroBuildLifecyclePayload as N, type FarmPluginRenderHooks as O, type PluginRequestContext as P, type FarmPluginBuildHooks as Q, type RouteDiscoveredPayload as R, type ShutdownPayload as S, type FarmPluginDevHooks as T, type FarmPluginClientConfig as U, PluginManager as V, type FarmPluginDefinition as W, definePlugin as X, type FarmPluginDatabase as Y, resolveFarmDevtoolsConfig as Z, type ResolvedFarmDevtoolsConfig as _, type FarmPlugin as a, type GenerateStaticParams as a$, getFarmRedirectError as a0, isFarmNotFoundError as a1, isFarmRedirectError as a2, notFound as a3, permanentRedirect as a4, redirect as a5, type FarmRedirectSignal as a6, type FarmRedirectStatus as a7, type ParsedRoute as a8, type RouteSegment as a9, resolveDeployConfig as aA, type FarmConfig as aB, resolveFarmMCPConfig as aC, resolveFarmMCPPlugin as aD, type FarmMCPUserConfig as aE, type FarmComponentType as aF, type AppRoutePattern as aG, type PageRouteParams as aH, type NitroPreset as aI, type FarmMigrationCommand as aJ, type FarmMigrationsConfig as aK, type FarmMigrationsUserConfig as aL, type ResolvedFarmMigrationsConfig as aM, type FarmContextFactoryInput as aN, type FarmIsolatedClientHydrationMode as aO, type LoadingProps as aP, type ErrorProps as aQ, type PagePropsWithMiddleware as aR, type MetadataProps as aS, type LayoutMetadataProps as aT, type Page as aU, type Layout as aV, type Loading as aW, type ErrorBoundary as aX, type StaticPathPrimitive as aY, type StaticPathParams as aZ, type StaticRouteParams as a_, type FarmRequest as aa, type FarmResponse as ab, type LayoutProps as ac, type Metadata as ad, type FarmRouteRuntime as ae, type FarmRouteRegions as af, type FarmRouteMaxDuration as ag, type FarmAppContext as ah, type PageProps as ai, type PluginContextProps as aj, type RouteModule as ak, type FarmMdxComponents as al, type FarmMdxResolvedConfig as am, resolveFarmMdxComponentsModulePath as an, resolveMdxConfig as ao, type FarmMdxComponent as ap, type FarmMdxUserConfig as aq, FARM_MARKDOWN_CONTENT_TYPE as ar, createFarmMarkdownErrorBody as as, farmRequestWantsMarkdown as at, type FarmUserConfig as au, type FarmContextFactory as av, type MiddlewareProps as aw, type FarmIntegration as ax, loadConfig as ay, resolveConfig as az, FARM_NODE_RESPONSE_END_PENDING as b, type FarmSecurityConfig as b$, type LayoutModule as b0, type MetadataJsonLd as b1, type ThemeColorDescriptor as b2, type Viewport as b3, type ServerAction as b4, type BuildOptions as b5, type SSGPage as b6, type SSGCollectionResult as b7, type MetadataRobotsDirectives as b8, type MetadataRobots as b9, type CollectedSchemaModel as bA, type FarmSchemaMigrationStep as bB, type OpenAPIConfig as bC, type FarmAgentUserConfig as bD, type FarmAgentCrawlers as bE, type FarmCrawlerPolicy as bF, type FarmAppManifestConfig as bG, FarmPluginOptionsError as bH, type FarmPluginFactory as bI, type FarmPluginOptionsIssue as bJ, type FarmPluginOptionsSchema as bK, type InferPluginOptionsInput as bL, type InferPluginOptionsOutput as bM, resolveMigrationsConfig as bN, resolveDeployOutputPath as bO, normalizeDeployTarget as bP, getDeployTargetForPreset as bQ, getPresetForDeployTarget as bR, type FarmLayerConfig as bS, type FarmPerformanceConfig as bT, type FarmPreloadMode as bU, type FarmPreloadUserConfig as bV, type ResolvedFarmPreloadConfig as bW, type FarmCspConfig as bX, type FarmCspDirectives as bY, type FarmCspDirectiveValue as bZ, type FarmCspOptions as b_, type FarmMCPCatalogDetails as ba, type ResolvedFarmAppManifestConfig as bb, type ReadonlyMiddlewareStore as bc, type FarmMiddlewareConfig as bd, type MiddlewareModule as be, type MiddlewareConfig$1 as bf, type MiddlewareContext as bg, type FarmServerComponentsMode as bh, type ResolvedFarmConfig as bi, type FarmAgentJsonLd as bj, type FarmMCPServerRegistration as bk, type FarmMarkdownResolvedConfig as bl, _findFarmMCPEndpointTool as bm, _publishFarmMCPCatalog as bn, registerFarmMCPServer as bo, type ResolvedFarmRouteRuntimeConfig as bp, type ApplicationMetadataRouteKind as bq, type ResolvedFarmAPIConfig as br, type FarmDocsResolvedConfig as bs, type ResolvedFarmDevIndicatorsConfig as bt, type ResolvedFarmAuthConfig as bu, type ResolvedFarmPerformanceConfig as bv, type ResolvedFarmSecurityConfig as bw, type ResolvedSchemaField as bx, type FarmSqlDialect as by, type FarmSqlStatement as bz, type FarmPluginIntegrationContext as c, type FarmIntegrationValidationErrorLike as c$, type ResolvedFarmCspConfig as c0, MetadataRoute as c1, type MetadataRouteContext as c2, type FarmMCPEndpointTool as c3, type FarmServerComponentsConfig as c4, type FarmServerComponentsOptions as c5, type FarmAuthConfig as c6, type FarmAuthDatabaseConfig as c7, type FarmAuthEmailAndPasswordConfig as c8, type FarmAuthSessionConfig as c9, type ResolvedFarmDeployConfig as cA, type FarmDeployTarget as cB, type FarmDocsUserConfig as cC, type FarmMarkdownUserConfig as cD, describeSchemaReference as cE, collectSchemaModels as cF, generateSqlStatements as cG, renderSqlSchemaFile as cH, getSqlColumnType as cI, getSqlDefaultExpression as cJ, isNullableField as cK, quoteSqlIdentifier as cL, toSnakeCase as cM, toPascalCase as cN, toCamelCase as cO, escapeSqlString as cP, resolveSchemaModels as cQ, type ResolvedSchemaModel as cR, type FarmIntegrationCategory as cS, type FarmIntegrationSlot as cT, type FarmIntegrationRouteParamValue as cU, type FarmIntegrationRouteParams as cV, type FarmIntegrationRouteMethod as cW, type FarmIntegrationRouteInputSource as cX, type FarmIntegrationValidationPathSegment as cY, type FarmIntegrationRouteInput as cZ, type FarmIntegrationValidationIssue as c_, type FarmAuthUserConfig as ca, type FarmMCPAuthorization as cb, type FarmMCPEndpoint as cc, type FarmMCPServerFunction as cd, type FarmMCPToolDefinition as ce, type FarmMCPStandaloneTool as cf, type FarmMCPExecuteContext as cg, type FarmMCPTool as ch, type FarmMCPServer as ci, type FarmMCPAuthorizeContext as cj, type FarmMCPConfig as ck, type FarmMCPOAuthConfig as cl, type FarmMCPPrompt as cm, type FarmMCPPromptMessage as cn, type FarmMCPResource as co, type FarmMCPResourceContent as cp, type FarmMCPResourceContext as cq, type FarmMCPResourceListing as cr, type ResolvedFarmMCPConfig as cs, type RedirectConfig as ct, type HeaderConfig as cu, type RewriteConfig as cv, type ImageConfig as cw, type I18nConfig as cx, type MiddlewareConfig as cy, type FarmDeployConfig as cz, FarmRuntimeShutdownError as d, getIntegrationDocumentNavigationMatchers as d$, type FarmIntegrationValidationResult as d0, type FarmIntegrationStandardValidationResult as d1, type FarmIntegrationInputSchema as d2, type FarmIntegrationRouteInputSchemas as d3, type FarmIntegrationRequestContextStore as d4, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as d5, FARM_INTEGRATION_SET_COOKIES_KEY as d6, forwardIntegrationSetCookies as d7, type FarmIntegrationRouteDb as d8, type FarmIntegrationRouteStorageArgs as d9, type FarmIntegrationSchemaModelExtension as dA, type FarmIntegrationSchemaModelOverride as dB, type FarmIntegrationSchema as dC, defineIntegrationSchema as dD, type FarmIntegrationLogPhase as dE, type FarmIntegrationLogEvent as dF, type FarmIntegrationLogger as dG, type FarmIntegrationPluginOwner as dH, type FarmIntegrationContributedPlugin as dI, type FarmIntegrationsUserConfig as dJ, getFarmIntegrationPluginServerRuntime as dK, getFarmIntegrationPluginOwner as dL, type FarmIntegrationRouteFactory as dM, type FarmIntegrationRoutesFactoryContext as dN, type FarmIntegrationRoutesFactory as dO, type FarmIntegrationEndpointValue as dP, type FarmIntegrationEndpoints as dQ, type FarmIntegrationEndpointsFactoryContext as dR, type FarmIntegrationEndpointsFactory as dS, createIntegrationRoute as dT, integrationRoute as dU, type DefinedIntegration as dV, defineIntegration as dW, isFarmIntegration as dX, resolveIntegrationPlugins as dY, getIntegrationProviders as dZ, isFarmIntegrationProviderComponentReference as d_, type FarmIntegrationRouteArgs as da, type FarmIntegrationConfigContext as db, type FarmIntegrationConfigDefinition as dc, type FarmIntegrationConfigInput as dd, type FarmIntegrationLifecycleLogLevel as de, type FarmIntegrationLifecycleLogger as df, type FarmIntegrationLifecycleContext as dg, type FarmIntegrationLifecycleHook as dh, type FarmIntegrationData as di, type FarmIntegrationHandlerContext as dj, type FarmIntegrationRouteHookContext as dk, type FarmIntegrationRouteHook as dl, type FarmIntegrationRoute as dm, type FarmTypedIntegrationRoute as dn, type FarmIntegrationRouteMiddleware as dp, type FarmIntegrationMiddleware as dq, type FarmIntegrationProviderProps as dr, type FarmIntegrationProviderComponentReference as ds, type FarmIntegrationProvider as dt, type FarmIntegrationDocumentNavigation as du, type FarmIntegrationSchemaFieldType as dv, type FarmIntegrationSchemaReference as dw, type FarmIntegrationSchemaField as dx, type FarmIntegrationSchemaConstraint as dy, type FarmIntegrationSchemaModel as dz, type FarmRequestStore as e, type FarmRouteRuntimeManifest as e$, getIntegrationSchemas as e0, getRegisteredIntegrationRuntime as e1, getRegisteredIntegrations as e2, getRegisteredIntegrationSchemas as e3, matchIntegrationRoute as e4, matchRegisteredIntegrationRoute as e5, getRegisteredIntegrationAPIManifest as e6, dispatchIntegrationRequest as e7, dispatchIntegrationRequests as e8, integrationMiddlewareMayHandlePath as e9, resolveFarmAPIRequestURL as eA, type MiddlewareFunction as eB, type RequestMiddleware as eC, type RequestMiddlewareContext as eD, type MiddlewareStore as eE, type MiddlewareChain as eF, type CookieJar as eG, type CookieOptions as eH, type RateLimitConfig as eI, type RateLimitIncrementResult as eJ, type RateLimitStorage as eK, type RateLimitStatus as eL, type MemoryRateLimitStorageOptions as eM, type NextFunction as eN, type MiddlewareResult as eO, type FarmRouteRuleRenderMode as eP, type FarmRouteRuleRedirect as eQ, type FarmRouteRuleCors as eR, type FarmRouteRule as eS, type FarmRouteRules as eT, normalizeRouteRules as eU, routeRulesToRedirects as eV, routeRulesToHeaders as eW, routeRulesToNitroRouteRules as eX, type FarmRouteRuntimeEntryKind as eY, type FarmRouteRenderingMode as eZ, type FarmRouteRuntimeManifestEntry as e_, FARM_INTEGRATION_API_BASE_PATH_KEY as ea, describeIntegrationOriginRejection as eb, resolveIntegrationAllowedOrigins as ec, validateIntegrationRequestOrigin as ed, type IntegrationOriginPolicy as ee, type IntegrationOriginRejection as ef, type IntegrationOriginResult as eg, type FarmIntegrationOrmSchema as eh, type FarmIntegrationOrmClient as ei, type InferFarmIntegrationOrmField as ej, type InferFarmIntegrationOrmFields as ek, type InferFarmIntegrationOrmSchema as el, type InferFarmIntegrationOrmClient as em, type CreateIntegrationOrmOptions as en, createIntegrationOrm as eo, resolveIntegrationOrmRuntimeClient as ep, farmIntegrationSchemaToOrmSchema as eq, type IntegrationOrmModelNames as er, DEFAULT_FARM_API_BASE_PATH as es, type FarmAPIConfigResolverContext as et, type FarmAPIConfigValue as eu, type FarmAPIConfig as ev, resolveFarmAPIConfig as ew, normalizeFarmAPIConfig as ex, normalizeFarmAPIBasePath as ey, getFarmAPIBaseURL as ez, type FarmPluginContext as f, createFarmCspNonce as f$, normalizeFarmRouteRuntimeConfig as f0, mergeFarmRouteRuntimeConfigs as f1, resolveFarmRouteRuntimeConfig as f2, hasFarmRouteRuntimeControls as f3, getFarmRouteRuntimeConfig as f4, createFarmRouteRuntimeKey as f5, resolveFarmRouteRuleRuntimeConfig as f6, farmRouteRuleMatches as f7, type FarmDocsConfigInput as f8, type FarmDocsNavigationConfig as f9, type FarmPageFormAction as fA, extractFarmPageActions as fB, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fC, FARM_DEVTOOLS_PATH as fD, FARM_DEVTOOLS_LAUNCH_PARAM as fE, type FarmDevtoolsConfig as fF, type FarmBuildActivityPosition as fG, type FarmDevIndicatorsConfig as fH, resolveFarmDevIndicatorsConfig as fI, generateFarmDevIndicatorsClientRuntime as fJ, type FarmLlmsTxtLink as fK, createFarmMetadataRouteResponse as fL, createFarmAgentRobots as fM, createFarmDefaultSitemap as fN, collectFarmLlmsTxtPages as fO, createFarmDefaultLlmsTxt as fP, createFarmLlmsMarkdownReader as fQ, renderFarmLlmsFullTxt as fR, createFarmLlmsFullRenderer as fS, resolveFarmLlmsTxtConfig as fT, type FarmLlmsTxtUserConfig as fU, type ResolvedFarmLlmsTxtConfig as fV, manageFarmDocumentPreloads as fW, manageFarmHtmlPreloads as fX, manageFarmLinkHeaderPreloads as fY, reportFarmPreloadWarnings as fZ, applyFarmCspNonceToResponse as f_, type FarmDocsSocialImageConfig as fa, type FarmDocsSocialImageFonts as fb, type FarmDocsSidebarItem as fc, FARM_MARKDOWN_PAGE_CHECK_HEADER as fd, _getFarmMarkdownPageCheckToken as fe, _isFarmMarkdownPageCheck as ff, type FarmMarkdownRouteInput as fg, type FarmMarkdownResolvedRoute as fh, type FarmMarkdownMirrorTarget as fi, type ResolveMarkdownMirrorTargetOptions as fj, type CreateMarkdownMirrorResponseOptions as fk, type ApplyMarkdownNegotiationHeadersOptions as fl, resolveMarkdownConfig as fm, resolveMarkdownMirrorTarget as fn, createMarkdownMirrorResponse as fo, applyMarkdownNegotiationHeaders as fp, htmlToMarkdown as fq, farmAcceptQuality as fr, requestAcceptsMarkdown as fs, getFarmMarkdownMirrorPath as ft, getFarmMarkdownAlternatePath as fu, isFarmMarkdownMirrorExposed as fv, matchesFarmMarkdownRoutePattern as fw, type FarmPageFormOption as fx, type FarmPageFormField as fy, type FarmPageFormSubmit as fz, type FarmPluginLifecycle as g, resolveFarmSecurityConfig as g0, stampFarmCspNonce as g1, type FarmRequestPluginContext as h, type RoutesGeneratedPayload as i, type RouteMatchPayload as j, type RouteMatchResultPayload as k, type RenderLifecyclePayload as l, type APIHandlerLifecyclePayload as m, type BundleResultPayload as n, type FarmPluginRuntimeKind as o, type FarmPluginRouteRuntimePayload as p, type FarmPluginSetupContext as q, type FarmPluginStateContext as r, type FarmPluginRuntimeBaseEvent as s, type FarmPluginRuntimeContextEvent as t, type FarmPluginRuntimeEndpointEvent as u, type FarmPluginRuntimeEndpoint as v, type FarmPluginRuntimeBeforeEvent as w, type FarmPluginRuntimeAfterEvent as x, type FarmPluginRuntimeErrorEvent as y, type FarmPluginRuntimeStartEvent as z };
@@ -1,5 +1,5 @@
1
1
  export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './lifecycle-DK06VuKP.mjs';
2
- export { a as FarmPlugin, f as FarmPluginContext, h as FarmRequestPluginContext, e as FarmRequestStore } from './client-plugins-CkYwvDJ0.mjs';
2
+ export { a as FarmPlugin, f as FarmPluginContext, h as FarmRequestPluginContext, e as FarmRequestStore } from './client-plugins-Cv0OJtnM.mjs';
3
3
  import './integration-api-DWyMmvrR.mjs';
4
4
  import './endpoint-DGZRZHux.mjs';
5
5
  import './cache.mjs';