@farm.js/core 0.1.40 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp-DRlXq3lM.d.ts → agent-mcp-SSD6L3VZ.d.ts} +8 -2
- package/dist/{agent-mcp-XNF4JqHw.d.mts → agent-mcp-ssVy_tea.d.mts} +8 -2
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/api/client.cjs +3 -3
- package/dist/api/client.mjs +2 -2
- package/dist/api/route-manager.cjs +8 -8
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +7 -7
- package/dist/api/runtime.cjs +6 -6
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +5 -5
- package/dist/api.cjs +10 -10
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/api.mjs +9 -9
- package/dist/{app-CWjCklhF.d.mts → app-1h3lVT4a.d.mts} +5 -5
- package/dist/{app-CDJHPqZn.d.ts → app-KjFzdCqy.d.ts} +5 -5
- package/dist/app-manifest-D3RkVNuS.d.mts +120 -0
- package/dist/app-manifest-DaW8-tvX.d.ts +120 -0
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/cache.cjs +3 -3
- package/dist/cache.mjs +2 -2
- package/dist/{chunk-UM3ZV5EP.mjs → chunk-24SP5TGU.mjs} +1 -1
- package/dist/{chunk-B6IMBBOS.cjs → chunk-25LPIZSX.cjs} +3 -3
- package/dist/{chunk-WW374SGU.mjs → chunk-26RUNDIR.mjs} +1 -1
- package/dist/{chunk-B77AUCBV.cjs → chunk-2FUIT2G2.cjs} +3 -3
- package/dist/{chunk-IMQO6ZUU.mjs → chunk-2JZHQDUY.mjs} +2 -2
- package/dist/{chunk-BPGO2IEP.mjs → chunk-35WS7P2V.mjs} +24 -126
- package/dist/{chunk-XKIUHXHW.mjs → chunk-375K2ZVU.mjs} +46 -52
- package/dist/{chunk-MNUSIXGS.mjs → chunk-4KQDHTWX.mjs} +1 -1
- package/dist/{chunk-DATEWH3W.cjs → chunk-6IZWX6ES.cjs} +22 -8
- package/dist/{chunk-Y6LRPO2K.mjs → chunk-6LVRDOAW.mjs} +19 -5
- package/dist/{chunk-UMQAK3KP.cjs → chunk-6MVFHNYZ.cjs} +2 -2
- package/dist/{chunk-OLQ73ZO5.mjs → chunk-6PKXK4TY.mjs} +3 -3
- package/dist/{chunk-PYQ3ZG4Z.mjs → chunk-724JLMS4.mjs} +4 -4
- package/dist/{chunk-PNCM5MFD.mjs → chunk-7UEEHAW7.mjs} +1 -1
- package/dist/{chunk-EW4MEVLE.cjs → chunk-7YHSD3Z6.cjs} +82 -118
- package/dist/{chunk-DKU6NXRK.cjs → chunk-AHFRQMRX.cjs} +1 -1
- package/dist/{chunk-7VAJSSPG.mjs → chunk-B2GSRB3P.mjs} +1 -1
- package/dist/{chunk-JXB6DVCO.mjs → chunk-BPNRQ5BA.mjs} +1 -1
- package/dist/{chunk-FLZ4H25A.cjs → chunk-BXJ5HJTJ.cjs} +13 -12
- package/dist/{chunk-GNVEJUT5.cjs → chunk-C5KVWHIH.cjs} +21 -21
- package/dist/chunk-COABSY3U.mjs +196 -0
- package/dist/{chunk-Y2GNNXGV.cjs → chunk-D64OPY6A.cjs} +5 -5
- package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
- package/dist/{chunk-I64GEPOB.cjs → chunk-FEYQCYT7.cjs} +3 -3
- package/dist/{chunk-AXB5P7BK.mjs → chunk-FIAPD365.mjs} +1 -1
- package/dist/{chunk-7FHZ3E6D.cjs → chunk-GB7LDGY5.cjs} +2 -2
- package/dist/{chunk-45UZKX2J.mjs → chunk-HJ64F4GS.mjs} +2 -2
- package/dist/{chunk-IRYK4Z5M.cjs → chunk-I5MG3TKE.cjs} +2 -2
- package/dist/{chunk-YR2P74F7.cjs → chunk-IFWSR7YZ.cjs} +2 -2
- package/dist/{chunk-5E65AL7P.mjs → chunk-IN6RCKLL.mjs} +5 -4
- package/dist/{chunk-CKFK3Z2V.mjs → chunk-IVQY6UTY.mjs} +1 -1
- package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
- package/dist/{chunk-EORXKFLR.cjs → chunk-JEIG3EWE.cjs} +1 -1
- package/dist/{chunk-54QWHSNR.cjs → chunk-JG3MEQUH.cjs} +150 -156
- package/dist/{chunk-TFX4RTH2.mjs → chunk-JOW4HDJO.mjs} +1 -1
- package/dist/{chunk-H44XGLFU.cjs → chunk-L6A26QT5.cjs} +9 -9
- package/dist/{chunk-OZN4XL6L.cjs → chunk-LIZTLA5F.cjs} +7 -6
- package/dist/{chunk-62DY5GKS.mjs → chunk-LLUA2LSC.mjs} +2 -2
- package/dist/{chunk-LDPKAYVS.cjs → chunk-LYIZHJTK.cjs} +2 -2
- package/dist/{chunk-2DMWQWNJ.mjs → chunk-MEASUNVY.mjs} +1 -1
- package/dist/{chunk-T4II4MMW.mjs → chunk-MHHCLYXU.mjs} +1 -1
- package/dist/{chunk-SHFXCE5A.cjs → chunk-MHN4UR5U.cjs} +4 -4
- package/dist/{chunk-5JEC43MQ.cjs → chunk-MN4TQJ3W.cjs} +9 -9
- package/dist/{chunk-5XS5NCVM.cjs → chunk-MY5PZYAD.cjs} +4 -4
- package/dist/{chunk-2JG2LJDI.cjs → chunk-NBPNUQYO.cjs} +2 -2
- package/dist/{chunk-4XO5GSD6.cjs → chunk-NFG4PUPI.cjs} +2 -2
- package/dist/{chunk-Y4QVEU67.mjs → chunk-NU25TRIO.mjs} +5 -4
- package/dist/{chunk-5LL6TKII.mjs → chunk-O7USYJ4U.mjs} +1 -1
- package/dist/{chunk-VBN3UAPQ.mjs → chunk-P2UJF4SS.mjs} +1 -1
- package/dist/{chunk-T6DLMX5V.mjs → chunk-PIZXONIS.mjs} +73 -109
- package/dist/{chunk-KK22JPQM.cjs → chunk-QEILRWVV.cjs} +30 -132
- package/dist/{chunk-UXMIFB44.cjs → chunk-QIBP5EFA.cjs} +5 -5
- package/dist/{chunk-TAKG7ZCD.cjs → chunk-QKZMB7LY.cjs} +14 -14
- package/dist/{chunk-FCOLU5P6.mjs → chunk-QTEJGB5A.mjs} +39 -16
- package/dist/{chunk-QJM7A4CR.cjs → chunk-S7MTDRYA.cjs} +10 -10
- package/dist/{chunk-ACLPN56I.mjs → chunk-SGB4IW7K.mjs} +1 -1
- package/dist/{chunk-GKQL726H.cjs → chunk-TCJ4A4A2.cjs} +78 -82
- package/dist/{chunk-ZKVJYQPO.mjs → chunk-TUL355PH.mjs} +13 -17
- package/dist/{chunk-H56MQYEG.mjs → chunk-U2UC7UGP.mjs} +1 -1
- package/dist/{chunk-I63UCMXW.mjs → chunk-ULQOP5UI.mjs} +2 -2
- package/dist/{chunk-HBEBV7OZ.mjs → chunk-UQUEANTY.mjs} +1 -1
- package/dist/chunk-VHRS3MCW.cjs +196 -0
- package/dist/{chunk-WCWV25PG.mjs → chunk-VTBXE6QG.mjs} +2 -2
- package/dist/{chunk-E55H6UKH.cjs → chunk-WLHA5USH.cjs} +9 -9
- package/dist/{chunk-YJBWB6GF.mjs → chunk-WMBRZI5V.mjs} +1 -1
- package/dist/{chunk-AGR7F3LA.cjs → chunk-WROEFVNO.cjs} +3 -3
- package/dist/{chunk-CA62IQY3.cjs → chunk-WU7ZS3EM.cjs} +2 -2
- package/dist/{chunk-ZOABCQGT.mjs → chunk-X3NGFVRF.mjs} +37 -22
- package/dist/{chunk-XJAEZCT6.mjs → chunk-XUC6CFLE.mjs} +1 -1
- package/dist/{chunk-6ILGLCXF.cjs → chunk-YWCYV7QC.cjs} +8 -8
- package/dist/{chunk-T36UJS3X.mjs → chunk-YYQVGKO5.mjs} +2 -2
- package/dist/{chunk-EGCT3AHF.cjs → chunk-ZATTDMBW.cjs} +127 -104
- package/dist/{chunk-PGW7HZE2.cjs → chunk-ZS6HDNOM.cjs} +6 -6
- package/dist/{chunk-XVIEGKTT.cjs → chunk-ZTP3BJG6.cjs} +41 -26
- package/dist/{client-plugins-B_5QbNrp.d.mts → client-plugins-C9Py_50W.d.mts} +79 -7
- package/dist/{client-plugins-DgSfIWIF.d.ts → client-plugins-DIem0I0W.d.ts} +79 -7
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +6 -6
- package/dist/client.d.ts +6 -6
- package/dist/client.mjs +4 -4
- package/dist/client.react-server.mjs +2 -0
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/{devtools-ANJ7JAPQ.cjs → devtools-2RY3EKHL.cjs} +6 -6
- package/dist/{devtools-VEQQDVHE.mjs → devtools-Q3LBNUJ7.mjs} +5 -5
- package/dist/docs.cjs +8 -8
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +7 -7
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/image/server.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/{image-config-Duob7wER.d.ts → image-config-BpH1q5R8.d.mts} +4 -1
- package/dist/{image-config-Duob7wER.d.mts → image-config-BpH1q5R8.d.ts} +4 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +40 -38
- package/dist/index.d.mts +16 -135
- package/dist/index.d.ts +16 -135
- package/dist/index.mjs +39 -37
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.cjs +23 -23
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +22 -22
- package/dist/internal/cli-runtime.cjs +13 -13
- package/dist/internal/cli-runtime.mjs +12 -12
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +6 -6
- package/dist/internal/config-runtime.d.mts +3 -3
- package/dist/internal/config-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/docs-precompiled-runtime.cjs +3 -3
- package/dist/internal/docs-precompiled-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +5 -5
- package/dist/internal/infra-analytics-runtime.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +21 -13
- package/dist/internal/production-runtime.d.mts +29 -126
- package/dist/internal/production-runtime.d.ts +29 -126
- package/dist/internal/production-runtime.mjs +21 -13
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +6 -6
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-NFG2LBRC.mjs → nitro-KDACKNHU.mjs} +1 -1
- package/dist/{nitro-S2QABUFA.cjs → nitro-NPGU6VBT.cjs} +2 -2
- package/dist/plugin.cjs +21 -21
- package/dist/plugin.d.mts +4 -3
- package/dist/plugin.d.ts +4 -3
- package/dist/plugin.mjs +20 -20
- package/dist/{production-runtime-j_WCfuwB.d.mts → production-runtime-CHFKIgpW.d.mts} +1 -1
- package/dist/{production-runtime-DfknD3g_.d.ts → production-runtime-bjjWq-DA.d.ts} +1 -1
- package/dist/query/client.cjs +2 -2
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-CFIhcYYS.d.ts → render-plan-B2UndB4x.d.ts} +1 -1
- package/dist/{render-plan-ChUtsymc.d.mts → render-plan-DOHg6wdO.d.mts} +1 -1
- package/dist/renderer-client.d.mts +4 -4
- package/dist/renderer-client.d.ts +4 -4
- package/dist/{request-F4HRwzSd.d.mts → request-DQcGfdgQ.d.mts} +1 -1
- package/dist/{request-RJvelT8L.d.ts → request-DVNXRQrI.d.ts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-D4coJ-kw.d.ts → route-rendering-B_6fj-GG.d.ts} +1 -1
- package/dist/{route-rendering-3a4fbNyC.d.mts → route-rendering-CEX4mFn-.d.mts} +1 -1
- package/dist/{router-WLEW3Te1.d.ts → router-CHEMHm1P.d.ts} +1 -1
- package/dist/{router-DqIssGRO.d.mts → router-CKHPBKXX.d.mts} +1 -1
- package/dist/routes.cjs +4 -4
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/routes.mjs +3 -3
- package/dist/{runtime-BrNdLOq9.d.ts → runtime-Br2ZDTAv.d.ts} +1 -1
- package/dist/{runtime-CmE_j-js.d.mts → runtime-jj8TKNsy.d.mts} +1 -1
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.cjs +5 -5
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +46 -46
- package/dist/server.d.mts +10 -9
- package/dist/server.d.ts +10 -9
- package/dist/server.mjs +25 -25
- package/dist/{spa-router-C41zjnFl.d.mts → spa-router-BEvS9Erj.d.mts} +2 -2
- package/dist/{spa-router-D_0VXqPC.d.ts → spa-router-DmCuH5B7.d.ts} +2 -2
- package/dist/ssg-57v6cZcW.d.mts +184 -0
- package/dist/ssg-gT093ETk.d.ts +184 -0
- package/dist/testing.cjs +11 -11
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +8 -8
- package/dist/theme/server.cjs +4 -4
- package/dist/theme/server.mjs +3 -3
- package/dist/{utils-YYcWsOJp.d.ts → utils-CCTKvR-P.d.ts} +1 -1
- package/dist/{utils-BKWSe3S7.d.mts → utils-raHHQVyL.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +38 -22
- package/dist/vite.d.mts +41 -4
- package/dist/vite.d.ts +41 -4
- package/dist/vite.mjs +38 -22
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-DAO7JGTS.mjs +0 -73
- package/dist/chunk-SYQ3MOWW.cjs +0 -73
- package/dist/programmatic-routes-client-DcoxEaLe.d.mts +0 -55
- package/dist/programmatic-routes-client-DcoxEaLe.d.ts +0 -55
- /package/dist/{chunk-MOSYH4CY.mjs → chunk-FWCGUVVL.mjs} +0 -0
- /package/dist/{chunk-4A3YUB4D.cjs → chunk-KF6VDJH7.cjs} +0 -0
|
@@ -4,12 +4,12 @@ var _chunkVNPXKF3Gcjs = require('../chunk-VNPXKF3G.cjs');
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZS6HDNOMcjs = require('../chunk-ZS6HDNOM.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkD64OPY6Acjs = require('../chunk-D64OPY6A.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -33,7 +33,9 @@ require('../chunk-PCOTGFSM.cjs');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
var _chunk7YHSD3Z6cjs = require('../chunk-7YHSD3Z6.cjs');
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
|
|
@@ -43,7 +45,8 @@ var _chunkBMOBTMDRcjs = require('../chunk-BMOBTMDR.cjs');
|
|
|
43
45
|
var _chunkTI7UANHIcjs = require('../chunk-TI7UANHI.cjs');
|
|
44
46
|
|
|
45
47
|
|
|
46
|
-
|
|
48
|
+
|
|
49
|
+
var _chunkVHRS3MCWcjs = require('../chunk-VHRS3MCW.cjs');
|
|
47
50
|
|
|
48
51
|
|
|
49
52
|
var _chunkCXP5U3RWcjs = require('../chunk-CXP5U3RW.cjs');
|
|
@@ -51,7 +54,7 @@ require('../chunk-OWOUTKIJ.cjs');
|
|
|
51
54
|
|
|
52
55
|
|
|
53
56
|
|
|
54
|
-
var
|
|
57
|
+
var _chunk2FUIT2G2cjs = require('../chunk-2FUIT2G2.cjs');
|
|
55
58
|
|
|
56
59
|
|
|
57
60
|
|
|
@@ -60,7 +63,7 @@ var _chunkB77AUCBVcjs = require('../chunk-B77AUCBV.cjs');
|
|
|
60
63
|
|
|
61
64
|
|
|
62
65
|
|
|
63
|
-
var
|
|
66
|
+
var _chunkJAXDRRRCcjs = require('../chunk-JAXDRRRC.cjs');
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
|
|
@@ -74,7 +77,7 @@ var _chunkD5IHNDHIcjs = require('../chunk-D5IHNDHI.cjs');
|
|
|
74
77
|
|
|
75
78
|
|
|
76
79
|
|
|
77
|
-
var
|
|
80
|
+
var _chunk25LPIZSXcjs = require('../chunk-25LPIZSX.cjs');
|
|
78
81
|
require('../chunk-D4ROBNTK.cjs');
|
|
79
82
|
require('../chunk-X3GMHKO3.cjs');
|
|
80
83
|
|
|
@@ -93,7 +96,7 @@ var _chunk6QQDAAAZcjs = require('../chunk-6QQDAAAZ.cjs');
|
|
|
93
96
|
require('../chunk-RHGK2JEN.cjs');
|
|
94
97
|
require('../chunk-6QOLZITB.cjs');
|
|
95
98
|
require('../chunk-G643DQCH.cjs');
|
|
96
|
-
require('../chunk-
|
|
99
|
+
require('../chunk-NBPNUQYO.cjs');
|
|
97
100
|
|
|
98
101
|
|
|
99
102
|
|
|
@@ -113,7 +116,7 @@ var _chunk75RZHGLScjs = require('../chunk-75RZHGLS.cjs');
|
|
|
113
116
|
|
|
114
117
|
|
|
115
118
|
|
|
116
|
-
var
|
|
119
|
+
var _chunk6MVFHNYZcjs = require('../chunk-6MVFHNYZ.cjs');
|
|
117
120
|
require('../chunk-64SBBZDU.cjs');
|
|
118
121
|
require('../chunk-SVRTJOUF.cjs');
|
|
119
122
|
|
|
@@ -144,7 +147,7 @@ require('../chunk-KNBBQHO2.cjs');
|
|
|
144
147
|
|
|
145
148
|
var _chunk5NAVKJCZcjs = require('../chunk-5NAVKJCZ.cjs');
|
|
146
149
|
require('../chunk-4TLUFAIP.cjs');
|
|
147
|
-
require('../chunk-
|
|
150
|
+
require('../chunk-AHFRQMRX.cjs');
|
|
148
151
|
|
|
149
152
|
|
|
150
153
|
|
|
@@ -167,6 +170,7 @@ require('../chunk-AI7QMY7O.cjs');
|
|
|
167
170
|
|
|
168
171
|
|
|
169
172
|
|
|
173
|
+
|
|
170
174
|
var _chunkLZESP4IRcjs = require('../chunk-LZESP4IR.cjs');
|
|
171
175
|
require('../chunk-R5JIFR6B.cjs');
|
|
172
176
|
require('../chunk-LIUGYUX3.cjs');
|
|
@@ -194,11 +198,11 @@ var _chunkOX6O6WVAcjs = require('../chunk-OX6O6WVA.cjs');
|
|
|
194
198
|
|
|
195
199
|
|
|
196
200
|
|
|
197
|
-
var
|
|
201
|
+
var _chunkZTP3BJG6cjs = require('../chunk-ZTP3BJG6.cjs');
|
|
198
202
|
require('../chunk-US2QVW3E.cjs');
|
|
199
203
|
|
|
200
204
|
|
|
201
|
-
var
|
|
205
|
+
var _chunk6IZWX6EScjs = require('../chunk-6IZWX6ES.cjs');
|
|
202
206
|
|
|
203
207
|
|
|
204
208
|
|
|
@@ -633,4 +637,8 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, appendFarmLinkHeader, "appendFarmLinkHeade
|
|
|
633
637
|
|
|
634
638
|
|
|
635
639
|
|
|
636
|
-
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
exports._farmPluginsKeepResponsesPrivate = _chunkTI7UANHIcjs._farmPluginsKeepResponsesPrivate; exports._getRequestReadCount = _chunkZTP3BJG6cjs._getRequestReadCount; exports._isFarmOwnedResponse = _chunkFJ3M4CUXcjs._isFarmOwnedResponse; exports._markFarmOwnedResponse = _chunkFJ3M4CUXcjs._markFarmOwnedResponse; exports._registerFarmStorageModules = _chunkOILHPMFXcjs._registerFarmStorageModules; exports._resolveCurrentCspNonce = _chunk6IZWX6EScjs._resolveCurrentCspNonce; exports._runWithAPIRequestRuntime = _chunk4PPEPOZZcjs._runWithAPIRequestRuntime; exports._runWithAfterRequest = _chunkMQ3H6LT5cjs._runWithAfterRequest; exports._runWithCurrentRequest = _chunkZTP3BJG6cjs._runWithCurrentRequest; exports._runWithFarmCspNonce = _chunkZTP3BJG6cjs._runWithFarmCspNonce; exports._runWithMiddlewareContext = _chunkYZAKIXRLcjs._runWithMiddlewareContext; exports._runWithMiddlewareData = _chunkYZAKIXRLcjs._runWithMiddlewareData; exports._setDefaultFarmThemeConfig = _chunk2FUIT2G2cjs._setDefaultFarmThemeConfig; exports._withFarmGuardedResponseCache = _chunkD64OPY6Acjs._withFarmGuardedResponseCache; exports._withFarmResponseHeaders = _chunkFJ3M4CUXcjs._withFarmResponseHeaders; exports.addMetadataImageReference = _chunkLZESP4IRcjs.addMetadataImageReference; exports.addMetadataMarkdownAlternate = _chunkLZESP4IRcjs.addMetadataMarkdownAlternate; exports.appMiddlewareMayHandlePath = _chunk7YHSD3Z6cjs.appMiddlewareMayHandlePath; exports.appendFarmLinkHeader = appendFarmLinkHeader; exports.appendFarmRedirectQuery = _chunkYX3DBN4Mcjs.appendFarmRedirectQuery; exports.applyFarmBasePath = _chunkI57LW5VZcjs.applyFarmBasePath; exports.applyFarmCspNonceToResponse = _chunk25LPIZSXcjs.applyFarmCspNonceToResponse; exports.applyFarmPreviewRobotsTag = _chunkJAXDRRRCcjs.applyFarmPreviewRobotsTag; exports.applyFarmThemeDocument = _chunk7YHSD3Z6cjs.applyFarmThemeDocument; exports.applyProductionMiddlewareHeaders = _chunkD64OPY6Acjs.applyProductionMiddlewareHeaders; exports.bufferFarmRequestBody = _chunk5NAVKJCZcjs.bufferFarmRequestBody; exports.cloneFarmRequestWithContext = _chunk5NAVKJCZcjs.cloneFarmRequestWithContext; exports.collectFarmDefaultMCPPages = _chunkBMOBTMDRcjs.collectFarmDefaultMCPPages; exports.collectFarmLlmsTxtPages = _chunkD5IHNDHIcjs.collectFarmLlmsTxtPages; exports.compareRouteSpecificity = _chunkNO3WWW3Ncjs.compareRouteSpecificity; exports.configMiddlewareMayHandlePath = _chunk7YHSD3Z6cjs.configMiddlewareMayHandlePath; exports.configureFarmCache = _chunk6MVFHNYZcjs.configureFarmCache; exports.configureFarmObservability = _chunkGS3WR5HXcjs.configureFarmObservability; exports.createDefaultErrorMarkup = _chunk7YHSD3Z6cjs.createDefaultErrorMarkup; exports.createFarmAgentRobots = _chunkJAXDRRRCcjs.createFarmAgentRobots; exports.createFarmAiCatalogResponse = _chunk7YHSD3Z6cjs.createFarmAiCatalogResponse; exports.createFarmApiCatalogResponse = _chunk7YHSD3Z6cjs.createFarmApiCatalogResponse; exports.createFarmAppManifestResponse = _chunk7YHSD3Z6cjs.createFarmAppManifestResponse; exports.createFarmCacheKey = _chunkNYJMY3JAcjs.createFarmCacheKey; exports.createFarmCspNonce = _chunk25LPIZSXcjs.createFarmCspNonce; exports.createFarmDefaultLlmsTxt = _chunkD5IHNDHIcjs.createFarmDefaultLlmsTxt; exports.createFarmDefaultSitemap = _chunkJAXDRRRCcjs.createFarmDefaultSitemap; exports.createFarmInstrumentationLifecycle = _chunk2SJ4RQ6Pcjs.createFarmInstrumentationLifecycle; exports.createFarmLayoutSelector = _chunkZS6HDNOMcjs.createFarmLayoutSelector; exports.createFarmLegacyRequest = createFarmLegacyRequest; exports.createFarmLlmsFullRenderer = _chunkD5IHNDHIcjs.createFarmLlmsFullRenderer; exports.createFarmLlmsMarkdownReader = _chunkD5IHNDHIcjs.createFarmLlmsMarkdownReader; exports.createFarmLocaleCookie = _chunkQCVE2OCIcjs.createFarmLocaleCookie; exports.createFarmMetadataRouteResponse = _chunk7YHSD3Z6cjs.createFarmMetadataRouteResponse; exports.createFarmNodeRequestAbortSignal = _chunk5NAVKJCZcjs.createFarmNodeRequestAbortSignal; exports.createFarmProductionLifecycle = createFarmProductionLifecycle; exports.createFarmRequestBodyErrorResponse = _chunk5NAVKJCZcjs.createFarmRequestBodyErrorResponse; exports.createFarmThemeDocumentParts = _chunk7YHSD3Z6cjs.createFarmThemeDocumentParts; exports.createLateNotFoundRecovery = _chunk7YHSD3Z6cjs.createLateNotFoundRecovery; exports.createLateRedirectRecovery = _chunk7YHSD3Z6cjs.createLateRedirectRecovery; exports.createProductionMiddlewareRunner = _chunkD64OPY6Acjs.createProductionMiddlewareRunner; exports.disposeFarmStorage = _chunkOILHPMFXcjs.disposeStorage; exports.emitFarmEvent = _chunkGS3WR5HXcjs.emitFarmEvent; exports.ensureFarmDocumentMeta = _chunk7YHSD3Z6cjs.ensureFarmDocumentMeta; exports.farmPathGuardCoversEndpoint = _chunk7YHSD3Z6cjs.farmPathGuardCoversEndpoint; exports.farmPathGuardCoversPage = _chunk7YHSD3Z6cjs.farmPathGuardCoversPage; exports.farmSecretsMatch = _chunkJDNHKPTDcjs.farmSecretsMatch; exports.generateNativeMCPPluginSource = _chunkZS6HDNOMcjs.generateNativeMCPPluginSource; exports.getCurrentRequest = _chunkZTP3BJG6cjs.getCurrentRequest; exports.getDefaultErrorStatusText = _chunk7YHSD3Z6cjs.getDefaultErrorStatusText; exports.getFarmDataCache = _chunk6MVFHNYZcjs.getFarmDataCache; exports.getFarmLocaleVaryHeaders = _chunkQCVE2OCIcjs.getFarmLocaleVaryHeaders; exports.getFarmRedirectError = _chunkOX6O6WVAcjs.getFarmRedirectError; exports.getRoutePatternSpecificity = _chunkNO3WWW3Ncjs.getRoutePatternSpecificity; exports.getTheme = _chunk2FUIT2G2cjs.getTheme; exports.handleFarmDefaultMCPRequest = _chunkVNPXKF3Gcjs.handleFarmDefaultMCPRequest; exports.initFarmStorage = _chunkOILHPMFXcjs.initStorage; exports.isFarmNotFoundError = _chunkOX6O6WVAcjs.isFarmNotFoundError; exports.isFarmRedirectError = _chunkOX6O6WVAcjs.isFarmRedirectError; exports.isInFarmRouteGroupScope = _chunk7YHSD3Z6cjs.isInRouteGroupScope; exports.listFarmMCPLlmsTxtLinks = _chunk7YHSD3Z6cjs.listFarmMCPLlmsTxtLinks; exports.localizeFarmHref = _chunkBIDYX3SLcjs.localizeFarmHref; exports.localizeFarmPathname = _chunkBIDYX3SLcjs.localizeFarmPathname; exports.manageFarmDocumentPreloads = _chunkJAXDRRRCcjs.manageFarmDocumentPreloads; exports.manageFarmHtmlPreloads = _chunkJAXDRRRCcjs.manageFarmHtmlPreloads; exports.manageFarmLinkHeaderPreloads = _chunkJAXDRRRCcjs.manageFarmLinkHeaderPreloads; exports.matchFarmPageRoute = _chunk5QIKR7RRcjs.matchRoute; exports.matchesFarmIfNoneMatch = _chunk5NAVKJCZcjs.matchesFarmIfNoneMatch; exports.materializeSSGRoutePath = _chunkVHRS3MCWcjs.materializeSSGRoutePath; exports.mergeMetadata = _chunkLZESP4IRcjs.mergeMetadata; exports.mergeModuleViewport = _chunkLZESP4IRcjs.mergeModuleViewport; exports.mergeRouteRenderingDirectiveConfig = _chunkVHRS3MCWcjs.mergeRouteRenderingDirectiveConfig; exports.normalizeRevalidatePath = _chunk6MVFHNYZcjs.normalizeRevalidatePath; exports.parseRoutePath = _chunk5QIKR7RRcjs.parseRoutePath; exports.readFarmRequestBody = _chunk5NAVKJCZcjs.readFarmRequestBody; exports.readNodeRequestBody = _chunk5NAVKJCZcjs.readNodeRequestBody; exports.registerFarmMCPServer = _chunk75RZHGLScjs.registerFarmMCPServer; exports.renderFarmLegacyErrorHtml = renderFarmLegacyErrorHtml; exports.renderFarmLegacyHtml = renderFarmLegacyHtml; exports.renderFarmLlmsFullTxt = _chunkD5IHNDHIcjs.renderFarmLlmsFullTxt; exports.renderFarmLocaleAlternateLinks = _chunk7YHSD3Z6cjs.renderFarmLocaleAlternateLinks; exports.renderMetadataHead = _chunkLZESP4IRcjs.renderMetadataHead; exports.renderViewportHead = _chunkLZESP4IRcjs.renderViewportHead; exports.reportFarmPreloadWarnings = _chunkJAXDRRRCcjs.reportFarmPreloadWarnings; exports.resolveDefaultErrorStatus = _chunk7YHSD3Z6cjs.resolveDefaultErrorStatus; exports.resolveFarmDefaultMCPServer = _chunkBMOBTMDRcjs.resolveFarmDefaultMCPServer; exports.resolveFarmI18nConfig = _chunkHLJ6MBUZcjs.resolveFarmI18nConfig; exports.resolveFarmInstrumentationRuntime = _chunk2SJ4RQ6Pcjs.resolveFarmInstrumentationRuntime; exports.resolveFarmLlmsTxtConfig = _chunkD5IHNDHIcjs.resolveFarmLlmsTxtConfig; exports.resolveFarmNotFoundMetadata = _chunkLZESP4IRcjs.resolveFarmNotFoundMetadata; exports.resolveFarmPreviewDeployment = _chunkCXP5U3RWcjs.resolveFarmPreviewDeployment; exports.resolveFarmRouteContext = _chunk6QQDAAAZcjs.resolveFarmRouteContext; exports.resolveFarmSecurityConfig = _chunk25LPIZSXcjs.resolveFarmSecurityConfig; exports.resolveFarmServerConfig = _chunk5NAVKJCZcjs.resolveFarmServerConfig; exports.resolveFarmTrailingSlashRedirect = _chunkOYEUREB6cjs.resolveFarmTrailingSlashRedirect; exports.resolveFarmWebRequestOrigin = _chunkZTP3BJG6cjs.resolveFarmWebRequestOrigin; exports.resolveMetadataTitle = _chunkLZESP4IRcjs.resolveMetadataTitle; exports.runWithFarmRequestSpan = _chunkGS3WR5HXcjs.runWithFarmRequestSpan; exports.searchParamsToObject = _chunkQNPEUFHQcjs.searchParamsToObject; exports.serializeFarmInlineValue = serializeFarmInlineValue; exports.setFarmBasePath = _chunkI57LW5VZcjs.setFarmBasePath; exports.setFarmTrailingSlashPreference = _chunkOYEUREB6cjs.setFarmTrailingSlashPreference; exports.stampFarmCspNonce = _chunk25LPIZSXcjs.stampFarmCspNonce; exports.stripFarmBasePath = _chunkI57LW5VZcjs.stripFarmBasePath; exports.stripFarmLocaleFromPathname = _chunkBIDYX3SLcjs.stripFarmLocaleFromPathname; exports.withFarmRouteContext = _chunk6QQDAAAZcjs.withFarmRouteContext;
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
export { _runWithAfterRequest } from '../after.mjs';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
2
|
+
export { c as createFarmAppManifestResponse } from '../app-manifest-D3RkVNuS.mjs';
|
|
3
|
+
import { cp as ResolvedFarmConfig, dG as FarmIntegrationsUserConfig, aW as StaticPathParams, co as ResolvedFarmMCPConfig, bf as FarmMCPServerRegistration, fH as FarmLlmsTxtLink, a as FarmPlugin, ay as FarmConfig, aK as FarmContextFactoryInput } from '../client-plugins-C9Py_50W.mjs';
|
|
4
|
+
export { fR as FarmLlmsTxtUserConfig, fS as ResolvedFarmLlmsTxtConfig, fX as applyFarmCspNonceToResponse, fL as collectFarmLlmsTxtPages, fJ as createFarmAgentRobots, fY as createFarmCspNonce, fM as createFarmDefaultLlmsTxt, fK as createFarmDefaultSitemap, fP as createFarmLlmsFullRenderer, fN as createFarmLlmsMarkdownReader, fI as createFarmMetadataRouteResponse, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, fT as manageFarmDocumentPreloads, fU as manageFarmHtmlPreloads, fV as manageFarmLinkHeaderPreloads, bj as registerFarmMCPServer, fO as renderFarmLlmsFullTxt, fW as reportFarmPreloadWarnings, fQ as resolveFarmLlmsTxtConfig, fZ as resolveFarmSecurityConfig, f_ as stampFarmCspNonce } from '../client-plugins-C9Py_50W.mjs';
|
|
5
|
+
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering-CEX4mFn-.mjs';
|
|
5
6
|
import { R as ResolvedFarmServerConfig } from '../workflows-IWP1ddBm.mjs';
|
|
6
7
|
export { a as FarmServerConfig, z as bufferFarmRequestBody, A as cloneFarmRequestWithContext, c as createFarmNodeRequestAbortSignal, B as createFarmRequestBodyErrorResponse, C as matchesFarmIfNoneMatch, E as readFarmRequestBody, G as readNodeRequestBody, H as resolveFarmServerConfig } from '../workflows-IWP1ddBm.mjs';
|
|
7
8
|
export { _registerFarmStorageModules, disposeStorage as disposeFarmStorage, initStorage as initFarmStorage } from '../storage.mjs';
|
|
8
|
-
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-
|
|
9
|
+
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-DQcGfdgQ.mjs';
|
|
9
10
|
import { A as APIRequestRuntime } from '../server-client-bridge-DKWDl5NB.mjs';
|
|
10
11
|
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.mjs';
|
|
11
12
|
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from '../types-CnH8DOqo.mjs';
|
|
12
13
|
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-khasx3fU.mjs';
|
|
13
14
|
import { F as FarmLocalePathConfig } from '../index-BJJfLxJo.mjs';
|
|
14
15
|
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index-BJJfLxJo.mjs';
|
|
15
|
-
import { F as FarmDefaultMCPPage } from '../agent-mcp-
|
|
16
|
-
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate,
|
|
17
|
-
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-
|
|
16
|
+
import { F as FarmDefaultMCPPage } from '../agent-mcp-ssVy_tea.mjs';
|
|
17
|
+
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, h as collectFarmDefaultMCPPages, m as mergeMetadata, d as mergeModuleViewport, r as renderMetadataHead, e as renderViewportHead, i as resolveFarmDefaultMCPServer, f as resolveFarmNotFoundMetadata, g as resolveMetadataTitle } from '../agent-mcp-ssVy_tea.mjs';
|
|
18
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-CHFKIgpW.mjs';
|
|
18
19
|
export { L as configureFarmObservability, P as emitFarmEvent, Q as runWithFarmRequestSpan } from '../observability-CoXunYhS.mjs';
|
|
19
20
|
export { f as createFarmInstrumentationLifecycle, r as resolveFarmInstrumentationRuntime } from '../instrumentation-runtime-CE06JLHZ.mjs';
|
|
20
21
|
export { _setDefaultFarmThemeConfig, getTheme } from '../theme/server.mjs';
|
|
21
22
|
import { c as FarmThemeRuntime, d as FarmThemeConfig, R as ResolvedFarmThemeConfig, a as FarmThemePreference } from '../types-DQnyD3VD.mjs';
|
|
22
23
|
export { d as applyFarmBasePath, r as resolveFarmTrailingSlashRedirect, s as searchParamsToObject, b as setFarmBasePath, a as setFarmTrailingSlashPreference, c as stripFarmBasePath } from '../base-path-BU16ETmo.mjs';
|
|
23
|
-
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-
|
|
24
|
+
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-raHHQVyL.mjs';
|
|
24
25
|
import 'node:http';
|
|
25
26
|
import '../lifecycle-DK06VuKP.mjs';
|
|
26
27
|
import '../integration-api-DWyMmvrR.mjs';
|
|
@@ -46,128 +47,23 @@ import '../server-action-security.mjs';
|
|
|
46
47
|
import '../layers-CM5i6T7z.mjs';
|
|
47
48
|
import 'rolldown/utils';
|
|
48
49
|
import 'rolldown';
|
|
49
|
-
import '../image-config-
|
|
50
|
+
import '../image-config-BpH1q5R8.mjs';
|
|
50
51
|
import '../font.mjs';
|
|
51
52
|
import '@opentelemetry/api';
|
|
52
53
|
|
|
53
|
-
interface FarmAppManifestWebMCPTool {
|
|
54
|
-
name: string;
|
|
55
|
-
title?: string;
|
|
56
|
-
description?: string;
|
|
57
|
-
readOnlyHint?: boolean;
|
|
58
|
-
destructiveHint?: boolean;
|
|
59
|
-
idempotentHint?: boolean;
|
|
60
|
-
openWorldHint?: boolean;
|
|
61
|
-
/** The input JSON Schema when the source writes it out; omitted when it's computed. */
|
|
62
|
-
inputSchema?: Record<string, unknown>;
|
|
63
|
-
/** `"computed"` when the schema is built at runtime, so it can't be read from source. */
|
|
64
|
-
inputSchemaSource: "literal" | "computed" | "none";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
type FarmAppManifestToolSource = "endpoint" | "defineTool" | "serverFunction";
|
|
68
|
-
interface FarmAppManifestTool {
|
|
69
|
-
name: string;
|
|
70
|
-
title?: string;
|
|
71
|
-
description?: string;
|
|
72
|
-
/** How the app defined it: an API endpoint, `defineTool`, or a server function. */
|
|
73
|
-
source: FarmAppManifestToolSource;
|
|
74
|
-
/** The endpoint's method and route, for `source: "endpoint"`. Only in Farm Infra's view. */
|
|
75
|
-
method?: string;
|
|
76
|
-
path?: string;
|
|
77
|
-
readOnlyHint?: boolean;
|
|
78
|
-
destructiveHint?: boolean;
|
|
79
|
-
idempotentHint?: boolean;
|
|
80
|
-
openWorldHint?: boolean;
|
|
81
|
-
/** JSON Schemas, when the server published them (`@farm.js/mcp` does). */
|
|
82
|
-
inputSchema?: Readonly<Record<string, unknown>>;
|
|
83
|
-
outputSchema?: Readonly<Record<string, unknown>>;
|
|
84
|
-
}
|
|
85
|
-
type ServerDetails = NonNullable<FarmMCPCatalogDetails>;
|
|
86
|
-
interface FarmAppManifest {
|
|
87
|
-
schemaVersion: 1;
|
|
88
|
-
app: {
|
|
89
|
-
farm: string;
|
|
90
|
-
renderer: string;
|
|
91
|
-
basePath: string;
|
|
92
|
-
build: string;
|
|
93
|
-
};
|
|
94
|
-
/** Installed versions of the app's `@farm.js/*` and `@farming-labs/*` packages. */
|
|
95
|
-
packages: Record<string, string>;
|
|
96
|
-
mcp: {
|
|
97
|
-
servers: {
|
|
98
|
-
name: string;
|
|
99
|
-
version: string;
|
|
100
|
-
path: string;
|
|
101
|
-
/**
|
|
102
|
-
* `"required"` when the server runs `authorize`: an anonymous client lists nothing,
|
|
103
|
-
* so the public view leaves `tools`, `resources` and `prompts` empty.
|
|
104
|
-
*/
|
|
105
|
-
authorization: "none" | "required";
|
|
106
|
-
tools: FarmAppManifestTool[];
|
|
107
|
-
resources: NonNullable<ServerDetails["resources"]>;
|
|
108
|
-
prompts: NonNullable<ServerDetails["prompts"]>;
|
|
109
|
-
}[];
|
|
110
|
-
};
|
|
111
|
-
/** Browser tools from `@farm.js/webmcp`, read from the app's source. */
|
|
112
|
-
webmcp: {
|
|
113
|
-
enabled: boolean;
|
|
114
|
-
tools: FarmAppManifestWebMCPTool[];
|
|
115
|
-
};
|
|
116
|
-
/** The app's integrations: which slot each fills and which provider, never their config. */
|
|
117
|
-
integrations: {
|
|
118
|
-
key: string;
|
|
119
|
-
category: string;
|
|
120
|
-
type: string;
|
|
121
|
-
}[];
|
|
122
|
-
agent: {
|
|
123
|
-
apiCatalog: string | null;
|
|
124
|
-
llmsTxt: boolean;
|
|
125
|
-
openapi: string | null;
|
|
126
|
-
};
|
|
127
|
-
plugins: string[];
|
|
128
|
-
}
|
|
129
|
-
/** What the manifest reads from config; serializable, so a production build embeds it. */
|
|
130
|
-
interface FarmAppManifestInput {
|
|
131
|
-
renderer: string;
|
|
132
|
-
basePath: string;
|
|
133
|
-
/** The build's ID, or "development". */
|
|
134
|
-
build: string;
|
|
135
|
-
packages: Record<string, string>;
|
|
136
|
-
webmcp: FarmAppManifest["webmcp"];
|
|
137
|
-
integrations: FarmAppManifest["integrations"];
|
|
138
|
-
agent: FarmAppManifest["agent"];
|
|
139
|
-
plugins: string[];
|
|
140
|
-
/**
|
|
141
|
-
* `analytics: false` turns off Farm Infra's signed view: the app talks to no Farm Infra.
|
|
142
|
-
* The public manifest is still served; `agent.manifest: false` turns that off.
|
|
143
|
-
*/
|
|
144
|
-
analytics: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* The default read-only MCP server (`agent.mcp`) while the app would serve it. Set by the
|
|
147
|
-
* server at runtime, not serialized: it answers only while no other MCP server is listed.
|
|
148
|
-
*/
|
|
149
|
-
defaultMCP?: () => {
|
|
150
|
-
name: string;
|
|
151
|
-
version: string;
|
|
152
|
-
path: string;
|
|
153
|
-
} | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Whether a guard written for a path (middleware, an integration's `protectedRoutes`)
|
|
156
|
-
* covers an MCP server's endpoint. Set by the server at runtime: such a server is listed
|
|
157
|
-
* as requiring authorization, without its tools, resources or prompts, in the public view.
|
|
158
|
-
*/
|
|
159
|
-
guardCoversPath?: (path: string) => boolean;
|
|
160
|
-
}
|
|
161
|
-
type Env = Record<string, string | undefined>;
|
|
162
54
|
/**
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* public
|
|
55
|
+
* Whether config middleware may run for a path. This reuses the runtime matcher: a
|
|
56
|
+
* separate copy drifted (`/members/(.*)` kept its trailing slash and never met
|
|
57
|
+
* `/members/secret`), and a prerendered page was frozen into a public file that
|
|
58
|
+
* middleware never sees again.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
166
61
|
*/
|
|
167
|
-
declare function
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
62
|
+
declare function configMiddlewareMayHandlePath(config: ResolvedFarmConfig["middleware"], pathname: string): boolean;
|
|
63
|
+
/** @internal File middleware counterpart of `configMiddlewareMayHandlePath`. */
|
|
64
|
+
declare function appMiddlewareMayHandlePath(middlewareRoutes: readonly {
|
|
65
|
+
path: string;
|
|
66
|
+
}[], pathname: string): boolean;
|
|
171
67
|
/**
|
|
172
68
|
* Whether a guard written for this page's path covers it: middleware.ts in the page's
|
|
173
69
|
* folder or a parent below the root, a config middleware matcher, or an integration's
|
|
@@ -232,6 +128,13 @@ declare function createFarmLayoutSelector<T extends {
|
|
|
232
128
|
*/
|
|
233
129
|
declare function isInRouteGroupScope(directory: string | null | undefined, scope: string | null): boolean;
|
|
234
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Static path materialization for SSG routes: `generateStaticParams()` values to URL paths.
|
|
133
|
+
* Free of Node APIs, so production runtimes can import it as well as the build.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
declare function materializeSSGRoutePath(routePattern: string, params: StaticPathParams): string;
|
|
137
|
+
|
|
235
138
|
type FarmProductionLifecycleState = "starting" | "ready" | "draining" | "failed" | "closed";
|
|
236
139
|
interface FarmProductionLifecycleOptions {
|
|
237
140
|
server: ResolvedFarmServerConfig;
|
|
@@ -515,4 +418,4 @@ declare function appendFarmRedirectQuery(destination: string, search: string): s
|
|
|
515
418
|
|
|
516
419
|
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
517
420
|
|
|
518
|
-
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse,
|
|
421
|
+
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmPathGuardCoversEndpoint, farmPathGuardCoversPage, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, handleFarmDefaultMCPRequest, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, materializeSSGRoutePath, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmI18nConfig, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, withFarmRouteContext };
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
export { _runWithAfterRequest } from '../after.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
2
|
+
export { c as createFarmAppManifestResponse } from '../app-manifest-DaW8-tvX.js';
|
|
3
|
+
import { cp as ResolvedFarmConfig, dG as FarmIntegrationsUserConfig, aW as StaticPathParams, co as ResolvedFarmMCPConfig, bf as FarmMCPServerRegistration, fH as FarmLlmsTxtLink, a as FarmPlugin, ay as FarmConfig, aK as FarmContextFactoryInput } from '../client-plugins-DIem0I0W.js';
|
|
4
|
+
export { fR as FarmLlmsTxtUserConfig, fS as ResolvedFarmLlmsTxtConfig, fX as applyFarmCspNonceToResponse, fL as collectFarmLlmsTxtPages, fJ as createFarmAgentRobots, fY as createFarmCspNonce, fM as createFarmDefaultLlmsTxt, fK as createFarmDefaultSitemap, fP as createFarmLlmsFullRenderer, fN as createFarmLlmsMarkdownReader, fI as createFarmMetadataRouteResponse, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, fT as manageFarmDocumentPreloads, fU as manageFarmHtmlPreloads, fV as manageFarmLinkHeaderPreloads, bj as registerFarmMCPServer, fO as renderFarmLlmsFullTxt, fW as reportFarmPreloadWarnings, fQ as resolveFarmLlmsTxtConfig, fZ as resolveFarmSecurityConfig, f_ as stampFarmCspNonce } from '../client-plugins-DIem0I0W.js';
|
|
5
|
+
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering-B_6fj-GG.js';
|
|
5
6
|
import { R as ResolvedFarmServerConfig } from '../workflows-IWP1ddBm.js';
|
|
6
7
|
export { a as FarmServerConfig, z as bufferFarmRequestBody, A as cloneFarmRequestWithContext, c as createFarmNodeRequestAbortSignal, B as createFarmRequestBodyErrorResponse, C as matchesFarmIfNoneMatch, E as readFarmRequestBody, G as readNodeRequestBody, H as resolveFarmServerConfig } from '../workflows-IWP1ddBm.js';
|
|
7
8
|
export { _registerFarmStorageModules, disposeStorage as disposeFarmStorage, initStorage as initFarmStorage } from '../storage.js';
|
|
8
|
-
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-
|
|
9
|
+
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-DVNXRQrI.js';
|
|
9
10
|
import { A as APIRequestRuntime } from '../server-client-bridge-DKWDl5NB.js';
|
|
10
11
|
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.js';
|
|
11
12
|
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from '../types-CnH8DOqo.js';
|
|
12
13
|
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-DadfRL6F.js';
|
|
13
14
|
import { F as FarmLocalePathConfig } from '../index-CwoOP-MW.js';
|
|
14
15
|
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index-CwoOP-MW.js';
|
|
15
|
-
import { F as FarmDefaultMCPPage } from '../agent-mcp-
|
|
16
|
-
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate,
|
|
17
|
-
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-
|
|
16
|
+
import { F as FarmDefaultMCPPage } from '../agent-mcp-SSD6L3VZ.js';
|
|
17
|
+
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, h as collectFarmDefaultMCPPages, m as mergeMetadata, d as mergeModuleViewport, r as renderMetadataHead, e as renderViewportHead, i as resolveFarmDefaultMCPServer, f as resolveFarmNotFoundMetadata, g as resolveMetadataTitle } from '../agent-mcp-SSD6L3VZ.js';
|
|
18
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-bjjWq-DA.js';
|
|
18
19
|
export { L as configureFarmObservability, P as emitFarmEvent, Q as runWithFarmRequestSpan } from '../observability-CoXunYhS.js';
|
|
19
20
|
export { f as createFarmInstrumentationLifecycle, r as resolveFarmInstrumentationRuntime } from '../instrumentation-runtime-CE06JLHZ.js';
|
|
20
21
|
export { _setDefaultFarmThemeConfig, getTheme } from '../theme/server.js';
|
|
21
22
|
import { c as FarmThemeRuntime, d as FarmThemeConfig, R as ResolvedFarmThemeConfig, a as FarmThemePreference } from '../types-DQnyD3VD.js';
|
|
22
23
|
export { d as applyFarmBasePath, r as resolveFarmTrailingSlashRedirect, s as searchParamsToObject, b as setFarmBasePath, a as setFarmTrailingSlashPreference, c as stripFarmBasePath } from '../base-path-BU16ETmo.js';
|
|
23
|
-
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-
|
|
24
|
+
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-CCTKvR-P.js';
|
|
24
25
|
import 'node:http';
|
|
25
26
|
import '../lifecycle-DK06VuKP.js';
|
|
26
27
|
import '../integration-api-BuPHMeKz.js';
|
|
@@ -46,128 +47,23 @@ import '../server-action-security.js';
|
|
|
46
47
|
import '../layers-CM5i6T7z.js';
|
|
47
48
|
import 'rolldown/utils';
|
|
48
49
|
import 'rolldown';
|
|
49
|
-
import '../image-config-
|
|
50
|
+
import '../image-config-BpH1q5R8.js';
|
|
50
51
|
import '../font.js';
|
|
51
52
|
import '@opentelemetry/api';
|
|
52
53
|
|
|
53
|
-
interface FarmAppManifestWebMCPTool {
|
|
54
|
-
name: string;
|
|
55
|
-
title?: string;
|
|
56
|
-
description?: string;
|
|
57
|
-
readOnlyHint?: boolean;
|
|
58
|
-
destructiveHint?: boolean;
|
|
59
|
-
idempotentHint?: boolean;
|
|
60
|
-
openWorldHint?: boolean;
|
|
61
|
-
/** The input JSON Schema when the source writes it out; omitted when it's computed. */
|
|
62
|
-
inputSchema?: Record<string, unknown>;
|
|
63
|
-
/** `"computed"` when the schema is built at runtime, so it can't be read from source. */
|
|
64
|
-
inputSchemaSource: "literal" | "computed" | "none";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
type FarmAppManifestToolSource = "endpoint" | "defineTool" | "serverFunction";
|
|
68
|
-
interface FarmAppManifestTool {
|
|
69
|
-
name: string;
|
|
70
|
-
title?: string;
|
|
71
|
-
description?: string;
|
|
72
|
-
/** How the app defined it: an API endpoint, `defineTool`, or a server function. */
|
|
73
|
-
source: FarmAppManifestToolSource;
|
|
74
|
-
/** The endpoint's method and route, for `source: "endpoint"`. Only in Farm Infra's view. */
|
|
75
|
-
method?: string;
|
|
76
|
-
path?: string;
|
|
77
|
-
readOnlyHint?: boolean;
|
|
78
|
-
destructiveHint?: boolean;
|
|
79
|
-
idempotentHint?: boolean;
|
|
80
|
-
openWorldHint?: boolean;
|
|
81
|
-
/** JSON Schemas, when the server published them (`@farm.js/mcp` does). */
|
|
82
|
-
inputSchema?: Readonly<Record<string, unknown>>;
|
|
83
|
-
outputSchema?: Readonly<Record<string, unknown>>;
|
|
84
|
-
}
|
|
85
|
-
type ServerDetails = NonNullable<FarmMCPCatalogDetails>;
|
|
86
|
-
interface FarmAppManifest {
|
|
87
|
-
schemaVersion: 1;
|
|
88
|
-
app: {
|
|
89
|
-
farm: string;
|
|
90
|
-
renderer: string;
|
|
91
|
-
basePath: string;
|
|
92
|
-
build: string;
|
|
93
|
-
};
|
|
94
|
-
/** Installed versions of the app's `@farm.js/*` and `@farming-labs/*` packages. */
|
|
95
|
-
packages: Record<string, string>;
|
|
96
|
-
mcp: {
|
|
97
|
-
servers: {
|
|
98
|
-
name: string;
|
|
99
|
-
version: string;
|
|
100
|
-
path: string;
|
|
101
|
-
/**
|
|
102
|
-
* `"required"` when the server runs `authorize`: an anonymous client lists nothing,
|
|
103
|
-
* so the public view leaves `tools`, `resources` and `prompts` empty.
|
|
104
|
-
*/
|
|
105
|
-
authorization: "none" | "required";
|
|
106
|
-
tools: FarmAppManifestTool[];
|
|
107
|
-
resources: NonNullable<ServerDetails["resources"]>;
|
|
108
|
-
prompts: NonNullable<ServerDetails["prompts"]>;
|
|
109
|
-
}[];
|
|
110
|
-
};
|
|
111
|
-
/** Browser tools from `@farm.js/webmcp`, read from the app's source. */
|
|
112
|
-
webmcp: {
|
|
113
|
-
enabled: boolean;
|
|
114
|
-
tools: FarmAppManifestWebMCPTool[];
|
|
115
|
-
};
|
|
116
|
-
/** The app's integrations: which slot each fills and which provider, never their config. */
|
|
117
|
-
integrations: {
|
|
118
|
-
key: string;
|
|
119
|
-
category: string;
|
|
120
|
-
type: string;
|
|
121
|
-
}[];
|
|
122
|
-
agent: {
|
|
123
|
-
apiCatalog: string | null;
|
|
124
|
-
llmsTxt: boolean;
|
|
125
|
-
openapi: string | null;
|
|
126
|
-
};
|
|
127
|
-
plugins: string[];
|
|
128
|
-
}
|
|
129
|
-
/** What the manifest reads from config; serializable, so a production build embeds it. */
|
|
130
|
-
interface FarmAppManifestInput {
|
|
131
|
-
renderer: string;
|
|
132
|
-
basePath: string;
|
|
133
|
-
/** The build's ID, or "development". */
|
|
134
|
-
build: string;
|
|
135
|
-
packages: Record<string, string>;
|
|
136
|
-
webmcp: FarmAppManifest["webmcp"];
|
|
137
|
-
integrations: FarmAppManifest["integrations"];
|
|
138
|
-
agent: FarmAppManifest["agent"];
|
|
139
|
-
plugins: string[];
|
|
140
|
-
/**
|
|
141
|
-
* `analytics: false` turns off Farm Infra's signed view: the app talks to no Farm Infra.
|
|
142
|
-
* The public manifest is still served; `agent.manifest: false` turns that off.
|
|
143
|
-
*/
|
|
144
|
-
analytics: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* The default read-only MCP server (`agent.mcp`) while the app would serve it. Set by the
|
|
147
|
-
* server at runtime, not serialized: it answers only while no other MCP server is listed.
|
|
148
|
-
*/
|
|
149
|
-
defaultMCP?: () => {
|
|
150
|
-
name: string;
|
|
151
|
-
version: string;
|
|
152
|
-
path: string;
|
|
153
|
-
} | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Whether a guard written for a path (middleware, an integration's `protectedRoutes`)
|
|
156
|
-
* covers an MCP server's endpoint. Set by the server at runtime: such a server is listed
|
|
157
|
-
* as requiring authorization, without its tools, resources or prompts, in the public view.
|
|
158
|
-
*/
|
|
159
|
-
guardCoversPath?: (path: string) => boolean;
|
|
160
|
-
}
|
|
161
|
-
type Env = Record<string, string | undefined>;
|
|
162
54
|
/**
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* public
|
|
55
|
+
* Whether config middleware may run for a path. This reuses the runtime matcher: a
|
|
56
|
+
* separate copy drifted (`/members/(.*)` kept its trailing slash and never met
|
|
57
|
+
* `/members/secret`), and a prerendered page was frozen into a public file that
|
|
58
|
+
* middleware never sees again.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
166
61
|
*/
|
|
167
|
-
declare function
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
62
|
+
declare function configMiddlewareMayHandlePath(config: ResolvedFarmConfig["middleware"], pathname: string): boolean;
|
|
63
|
+
/** @internal File middleware counterpart of `configMiddlewareMayHandlePath`. */
|
|
64
|
+
declare function appMiddlewareMayHandlePath(middlewareRoutes: readonly {
|
|
65
|
+
path: string;
|
|
66
|
+
}[], pathname: string): boolean;
|
|
171
67
|
/**
|
|
172
68
|
* Whether a guard written for this page's path covers it: middleware.ts in the page's
|
|
173
69
|
* folder or a parent below the root, a config middleware matcher, or an integration's
|
|
@@ -232,6 +128,13 @@ declare function createFarmLayoutSelector<T extends {
|
|
|
232
128
|
*/
|
|
233
129
|
declare function isInRouteGroupScope(directory: string | null | undefined, scope: string | null): boolean;
|
|
234
130
|
|
|
131
|
+
/**
|
|
132
|
+
* Static path materialization for SSG routes: `generateStaticParams()` values to URL paths.
|
|
133
|
+
* Free of Node APIs, so production runtimes can import it as well as the build.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
declare function materializeSSGRoutePath(routePattern: string, params: StaticPathParams): string;
|
|
137
|
+
|
|
235
138
|
type FarmProductionLifecycleState = "starting" | "ready" | "draining" | "failed" | "closed";
|
|
236
139
|
interface FarmProductionLifecycleOptions {
|
|
237
140
|
server: ResolvedFarmServerConfig;
|
|
@@ -515,4 +418,4 @@ declare function appendFarmRedirectQuery(destination: string, search: string): s
|
|
|
515
418
|
|
|
516
419
|
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
517
420
|
|
|
518
|
-
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse,
|
|
421
|
+
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmPathGuardCoversEndpoint, farmPathGuardCoversPage, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, handleFarmDefaultMCPRequest, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, materializeSSGRoutePath, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmI18nConfig, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, withFarmRouteContext };
|