@farm.js/core 0.2.0-beta.4 → 0.2.1
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/README.md +1 -3
- package/dist/{agent-mcp.d-CAwDC9y4.d.ts → agent-mcp.d--uQgDp_Q.d.ts} +1 -1
- package/dist/{agent-mcp.d-BdFnjlAT.d.mts → agent-mcp.d-DpthRhqr.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +4 -4
- package/dist/agent-runtime.d.ts +4 -4
- package/dist/{analyzer-K3S4YRAH.mjs → analyzer-GLFRODYV.mjs} +2 -2
- package/dist/analyzer-KBVOHASA.cjs +17 -0
- package/dist/api/node.d.mts +6 -6
- package/dist/api/node.d.ts +6 -6
- package/dist/api/route-manager.cjs +3 -3
- package/dist/api/route-manager.d.mts +6 -6
- package/dist/api/route-manager.d.ts +6 -6
- package/dist/api/route-manager.mjs +2 -2
- package/dist/api/runtime.d.mts +5 -5
- package/dist/api/runtime.d.ts +5 -5
- package/dist/api.cjs +4 -4
- package/dist/api.d.mts +7 -7
- package/dist/api.d.ts +7 -7
- package/dist/api.mjs +3 -3
- package/dist/{app-manifest.d-Dczk-fwt.d.ts → app-manifest.d-DMgcFuXQ.d.ts} +1 -1
- package/dist/{app-manifest.d-COs1wBGz.d.mts → app-manifest.d-DXAvPjMw.d.mts} +1 -1
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/{app.d-LepnxO-5.d.mts → app.d-DG_-nN5y.d.mts} +4 -4
- package/dist/{app.d-DREl_yXh.d.ts → app.d-htfGqq-d.d.ts} +4 -4
- package/dist/{chunk-X2SMVPLH.mjs → chunk-2FBFJO2Z.mjs} +8 -5
- package/dist/{chunk-Z3RM3VA2.mjs → chunk-5VXVRMXK.mjs} +11 -1
- package/dist/{chunk-LWQ6IESX.mjs → chunk-BOHBFBRA.mjs} +1 -1
- package/dist/{chunk-V5F6HN7E.mjs → chunk-CPL7WIMP.mjs} +1 -1
- package/dist/{chunk-APKULXZV.cjs → chunk-CS6GXE42.cjs} +91 -21
- package/dist/chunk-CYUTK4JP.cjs +52 -0
- package/dist/{chunk-T4NOMZTS.mjs → chunk-CZMMU3FP.mjs} +4 -4
- package/dist/{chunk-PSALMEHJ.cjs → chunk-D2OU4CX2.cjs} +23 -20
- package/dist/{chunk-5BZ7PR3T.cjs → chunk-D2VLHRBN.cjs} +3 -3
- package/dist/{chunk-D5OY5OKA.mjs → chunk-D5GFVHBV.mjs} +23 -17
- package/dist/{chunk-VGX75645.mjs → chunk-E7ISZK3R.mjs} +8 -5
- package/dist/{chunk-F5T55PYX.cjs → chunk-EIAA4W3M.cjs} +26 -21
- package/dist/{chunk-2PSN2PUJ.cjs → chunk-EWPH5IOC.cjs} +19 -16
- package/dist/{chunk-QBCR2EHA.cjs → chunk-GEZ76JXD.cjs} +3 -3
- package/dist/{chunk-KM7ZRKCH.cjs → chunk-GL4SPJTE.cjs} +10 -10
- package/dist/{chunk-IU4YTFFQ.cjs → chunk-GUYGMTWA.cjs} +12 -9
- package/dist/{chunk-MRDI6MTL.mjs → chunk-H6MYRZ2U.mjs} +15 -10
- package/dist/{chunk-P67RLOMO.mjs → chunk-HBZQIRRM.mjs} +1 -1
- package/dist/{chunk-NNHIV3O2.cjs → chunk-HENYWY5J.cjs} +2 -2
- package/dist/{chunk-HV6CYSMF.mjs → chunk-HHZURH4U.mjs} +1 -17
- package/dist/{chunk-E5AC7E25.cjs → chunk-JJ22OI7J.cjs} +2 -2
- package/dist/{chunk-XPVS4HKU.cjs → chunk-JZAGIXMB.cjs} +1 -1
- package/dist/{chunk-TQCDN4DV.mjs → chunk-KQXYBJES.mjs} +14 -11
- package/dist/{chunk-5UMPMVNF.mjs → chunk-L2KGQXFU.mjs} +1 -1
- package/dist/{chunk-HP7QYVST.cjs → chunk-LEZJZX4C.cjs} +1 -18
- package/dist/{chunk-C4DZAEVT.cjs → chunk-MR64FNW6.cjs} +4 -4
- package/dist/{chunk-LOQVWATF.mjs → chunk-MYJPW4XN.mjs} +2 -2
- package/dist/chunk-O77EKGAS.mjs +36 -0
- package/dist/{chunk-VS4ABIJJ.mjs → chunk-OKZHPPBX.mjs} +1 -1
- package/dist/{chunk-WLOIUPV2.mjs → chunk-P2THJDLH.mjs} +37 -26
- package/dist/{chunk-KBURN62Z.cjs → chunk-PFVNPOKN.cjs} +11 -1
- package/dist/{chunk-IASZIYNM.cjs → chunk-PGU4SCIU.cjs} +302 -297
- package/dist/chunk-PTG5BEMG.mjs +47 -0
- package/dist/{chunk-UBH2OARS.cjs → chunk-PVB5UYJT.cjs} +280 -274
- package/dist/{chunk-EBVKVDQA.mjs → chunk-PZ5ZJAAO.mjs} +1 -1
- package/dist/{chunk-FYVSAWJP.cjs → chunk-Q4FHYBFT.cjs} +11 -11
- package/dist/{chunk-AGT633OM.cjs → chunk-QI3UYN3P.cjs} +11 -11
- package/dist/{chunk-HFOME6I2.mjs → chunk-QJKGRUBR.mjs} +5 -5
- package/dist/{chunk-DFLCEMQ3.mjs → chunk-RCJAOQWW.mjs} +1 -1
- package/dist/{chunk-AGEBFYHF.mjs → chunk-SIJ3DREB.mjs} +1 -1
- package/dist/{chunk-II4ENBE4.mjs → chunk-SPVXL37B.mjs} +1 -1
- package/dist/{chunk-VVIO7QGN.mjs → chunk-TI4BJFYX.mjs} +32 -27
- package/dist/{chunk-MBDDLYT5.cjs → chunk-V6ACETKR.cjs} +4 -4
- package/dist/{chunk-VMIR4SUL.cjs → chunk-W34OS5CK.cjs} +383 -372
- package/dist/{chunk-ANKMAGFJ.mjs → chunk-WRT775N6.mjs} +92 -22
- package/dist/{chunk-DVXT7RLV.cjs → chunk-WXPY5FRF.cjs} +6 -6
- package/dist/{chunk-VQYGXWCS.cjs → chunk-XSE4XJKY.cjs} +2 -2
- package/dist/{chunk-2ORWY3SE.mjs → chunk-XYCB3CXM.mjs} +2 -2
- package/dist/{chunk-XJEOHDPN.cjs → chunk-YCGOQKVC.cjs} +21 -2
- package/dist/{chunk-2UV765GT.cjs → chunk-ZQOHL6TX.cjs} +2 -2
- package/dist/{client-component.d-BA6kXI5L.d.mts → client-component.d-D5JVDeQf.d.mts} +1 -1
- package/dist/{client-component.d-LSEmRhuI.d.ts → client-component.d-DDbDw2yP.d.ts} +1 -1
- package/dist/{client-plugins.d-CVUMc2ai.d.mts → client-plugins.d-9jr2yWR3.d.mts} +21 -16
- package/dist/{client-plugins.d-CQ6AGHP0.d.ts → client-plugins.d-BHqfH3DQ.d.ts} +21 -16
- package/dist/client-plugins.d.mts +4 -4
- package/dist/client-plugins.d.ts +4 -4
- package/dist/client.d.mts +10 -10
- package/dist/client.d.ts +10 -10
- package/dist/config.d.mts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/desktop.d.mts +5 -5
- package/dist/desktop.d.ts +5 -5
- package/dist/{devtools-OBQY3XOY.cjs → devtools-F6Z436WU.cjs} +12 -9
- package/dist/{devtools-RYTO2V7G.mjs → devtools-ZDBCJI44.mjs} +8 -5
- package/dist/docs.cjs +7 -6
- package/dist/docs.d.mts +6 -6
- package/dist/docs.d.ts +6 -6
- package/dist/docs.mjs +6 -5
- package/dist/environment/vite.cjs +6 -5
- package/dist/environment/vite.d.mts +2 -1
- package/dist/environment/vite.d.ts +2 -1
- package/dist/environment/vite.mjs +5 -4
- package/dist/{generate-route-types.d-BFOMM8Ef.d.mts → generate-route-types.d-CAiRw4N0.d.mts} +1 -1
- package/dist/{generate-route-types.d-C2m8myHb.d.ts → generate-route-types.d-Dz8MOQ3u.d.ts} +1 -1
- package/dist/{handler.d-nkrNn_0M.d.ts → handler.d-Dq_bSEKC.d.ts} +2 -2
- package/dist/{handler.d-DLKZDAYR.d.mts → handler.d-EtTSPkeO.d.mts} +2 -2
- package/dist/{headers.d-C3k520Fc.d.mts → headers.d-BKwGD_uC.d.mts} +1 -1
- package/dist/{headers.d-DVBrYnqP.d.ts → headers.d-CpIHLCEk.d.ts} +1 -1
- package/dist/index.cjs +28 -27
- package/dist/{index.d-e5WhoB07.d.ts → index.d-CoRZKiHA.d.ts} +1 -1
- package/dist/{index.d-5PDB032w.d.mts → index.d-DXtaU9OU.d.mts} +1 -1
- package/dist/index.d.mts +27 -27
- package/dist/index.d.ts +27 -27
- package/dist/index.mjs +23 -22
- package/dist/integrations/orm.d.mts +4 -4
- package/dist/integrations/orm.d.ts +4 -4
- package/dist/integrations.d.mts +4 -4
- package/dist/integrations.d.ts +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +5 -5
- package/dist/internal/app-markdown-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.cjs +23 -22
- package/dist/internal/build-runtime.d.mts +8 -8
- package/dist/internal/build-runtime.d.ts +8 -8
- package/dist/internal/build-runtime.mjs +22 -21
- package/dist/internal/cli-runtime.cjs +14 -10
- package/dist/internal/cli-runtime.d.mts +20 -12
- package/dist/internal/cli-runtime.d.ts +20 -12
- package/dist/internal/cli-runtime.mjs +13 -9
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +8 -8
- package/dist/internal/client-runtime.d.ts +8 -8
- package/dist/internal/compression-runtime.d.mts +4 -4
- package/dist/internal/compression-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.cjs +7 -6
- package/dist/internal/config-runtime.d.mts +8 -8
- package/dist/internal/config-runtime.d.ts +8 -8
- package/dist/internal/config-runtime.mjs +6 -5
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +4 -4
- package/dist/internal/production-runtime.d.mts +13 -13
- package/dist/internal/production-runtime.d.ts +13 -13
- package/dist/internal/production-runtime.mjs +3 -3
- package/dist/internal/spa-router.d.mts +6 -6
- package/dist/internal/spa-router.d.ts +6 -6
- package/dist/internal/start-manifest.d.mts +4 -4
- package/dist/internal/start-manifest.d.ts +4 -4
- package/dist/layers-6R55QDT5.cjs +26 -0
- package/dist/{layers-IMRXNZRB.mjs → layers-O6GUR6LT.mjs} +6 -1
- package/dist/{layers.d-CH0bC4QL.d.ts → layers.d-dNBkiNE9.d.mts} +1 -1
- package/dist/{layers.d-CH0bC4QL.d.mts → layers.d-dNBkiNE9.d.ts} +1 -1
- package/dist/{manager-3DFQDKJ6.cjs → manager-YRIENS63.cjs} +4 -4
- package/dist/{manager-GZUTAN5Q.mjs → manager-YTJOAHII.mjs} +3 -3
- package/dist/markdown.d.mts +4 -4
- package/dist/markdown.d.ts +4 -4
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/mobile.d.mts +4 -4
- package/dist/mobile.d.ts +4 -4
- package/dist/{mount.d-Cbz8vsSZ.d.ts → mount.d-BzK2Z1pR.d.ts} +1 -1
- package/dist/{mount.d-COIrFH0i.d.mts → mount.d-D-ynBlxU.d.mts} +1 -1
- package/dist/{navigation-delegate.d-dlnYTX-Y.d.ts → navigation-delegate.d-DtsnFnNF.d.ts} +1 -1
- package/dist/{navigation-delegate.d-yulG9Dp5.d.mts → navigation-delegate.d-aJh3ZmTY.d.mts} +1 -1
- package/dist/navigation.d.mts +7 -7
- package/dist/navigation.d.ts +7 -7
- package/dist/plugin.cjs +18 -17
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +17 -16
- package/dist/{render-plan.d-BW56oxMP.d.mts → render-plan.d-C6nUIU2m.d.mts} +1 -1
- package/dist/{render-plan.d-Cz7bQmcf.d.ts → render-plan.d-h8bkOQyh.d.ts} +1 -1
- package/dist/renderer-client.d.mts +8 -8
- package/dist/renderer-client.d.ts +8 -8
- package/dist/renderer.cjs +4 -3
- package/dist/renderer.d.mts +1 -1
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.mjs +3 -2
- package/dist/{request.d-BwgX-7Wi.d.mts → request.d-CBEdJD5R.d.mts} +1 -1
- package/dist/{request.d-BaFROByP.d.ts → request.d-CrriEvxy.d.ts} +1 -1
- package/dist/request.d.mts +5 -5
- package/dist/request.d.ts +5 -5
- package/dist/{route-rendering.d-D4kUuncg.d.ts → route-rendering.d-C-ivf31T.d.ts} +1 -1
- package/dist/{route-rendering.d-BzeFPYGc.d.mts → route-rendering.d-DgXpNk_c.d.mts} +1 -1
- package/dist/{router.d-B9qJdgjt.d.ts → router.d-BRRPd5dE.d.ts} +1 -1
- package/dist/{router.d-D-p8WElf.d.mts → router.d-O5LrW9mZ.d.mts} +1 -1
- package/dist/{routes.d-D7RWvfqL.d.ts → routes.d-CYe98R_8.d.ts} +1 -1
- package/dist/{routes.d-BWvpUoYu.d.mts → routes.d-DBGnKaUQ.d.mts} +1 -1
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/{rsc-pipeline-YHVEHWTU.cjs → rsc-pipeline-2DNM7UDA.cjs} +8 -7
- package/dist/{rsc-pipeline-Y6D6KBES.mjs → rsc-pipeline-HYINQPMW.mjs} +7 -6
- package/dist/{runtime-62ZIEV6U.mjs → runtime-JP7L5KI7.mjs} +11 -8
- package/dist/{runtime-LKEMFXHW.cjs → runtime-M6GLD4CR.cjs} +15 -12
- package/dist/{runtime.d-BUtDIrRJ.d.mts → runtime.d-DP8Sk9PM.d.mts} +1 -1
- package/dist/{runtime.d-Du64AX3R.d.ts → runtime.d-DW_1avVi.d.ts} +1 -1
- package/dist/{cli-runtime.d-Bvfxt4uo.d.ts → schema-dependencies.d-C__RyTvW.d.ts} +21 -13
- package/dist/{cli-runtime.d-BGaFPum1.d.mts → schema-dependencies.d-Cedd7QUf.d.mts} +21 -13
- package/dist/{schema.d-BM-uVGpx.d.mts → schema.d-HlGSe1on.d.mts} +1 -1
- package/dist/{schema.d-BM-uVGpx.d.ts → schema.d-HlGSe1on.d.ts} +1 -1
- package/dist/schema.d.mts +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/{server-components-status.d-CvFhb6-t.d.ts → server-components-status.d-CdsEQbeM.d.ts} +3 -3
- package/dist/{server-components-status.d-B0YP-m9A.d.mts → server-components-status.d-DN98yOT4.d.mts} +3 -3
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server.cjs +56 -53
- package/dist/server.d.mts +15 -15
- package/dist/server.d.ts +15 -15
- package/dist/server.mjs +23 -20
- package/dist/{spa-router.d-D4ye2WFk.d.ts → spa-router.d-BJWZAdrV.d.ts} +2 -2
- package/dist/{spa-router.d-CkR14oGH.d.mts → spa-router.d-FcDbBCrK.d.mts} +2 -2
- package/dist/{ssg.d-DFs97VTY.d.mts → ssg.d--uut8Gya.d.mts} +3 -3
- package/dist/{ssg.d-BCJB_f7B.d.ts → ssg.d-Cf9mC1rZ.d.ts} +3 -3
- package/dist/storage.d.mts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/{store-core.d-Vk5UDKeC.d.mts → store-core.d-DgYlAo-e.d.mts} +2 -2
- package/dist/{store-core.d-0W2YScl8.d.ts → store-core.d-h7o6V2kH.d.ts} +2 -2
- package/dist/testing.cjs +2 -2
- package/dist/testing.d.mts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.mjs +2 -2
- package/dist/{types.d-C5hlNbHa.d.mts → types.d-CRiwa0jj.d.mts} +1 -1
- package/dist/{types.d-C5hlNbHa.d.ts → types.d-CRiwa0jj.d.ts} +1 -1
- package/dist/{utils.d-Ba3N28fk.d.ts → utils.d-2lGEnyBc.d.ts} +1 -1
- package/dist/{utils.d-Cloiko8d.d.mts → utils.d-DjFApBfE.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +18 -17
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +17 -16
- package/package.json +1 -1
- package/dist/analyzer-3AMJK27J.cjs +0 -17
- package/dist/chunk-GTHBWZUK.mjs +0 -17
- package/dist/layers-GP57TBE2.cjs +0 -21
|
@@ -9,14 +9,14 @@ var _chunkIVEV44O2cjs = require('./chunk-IVEV44O2.cjs');
|
|
|
9
9
|
var _chunkKSRWTQ6Jcjs = require('./chunk-KSRWTQ6J.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkD2VLHRBNcjs = require('./chunk-D2VLHRBN.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkPRKFECGTcjs = require('./chunk-PRKFECGT.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkYCGOQKVCcjs = require('./chunk-YCGOQKVC.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
@@ -156,7 +156,7 @@ function farmApiPlugin(options = {}) {
|
|
|
156
156
|
const existing = apiRoutesCache.get(routePath);
|
|
157
157
|
const existingFile = _optionalChain([endpointSources, 'access', _4 => _4.get, 'call', _5 => _5(routePath), 'optionalAccess', _6 => _6.get, 'call', _7 => _7(normalizedMethod)]);
|
|
158
158
|
if (existingFile) {
|
|
159
|
-
throw new (0,
|
|
159
|
+
throw new (0, _chunkD2VLHRBNcjs.APIRouteConflictError)(routePath, normalizedMethod, existingFile, filePath);
|
|
160
160
|
}
|
|
161
161
|
if (existing) {
|
|
162
162
|
if (!existing.methods.includes(normalizedMethod)) {
|
|
@@ -284,7 +284,7 @@ function farmApiPlugin(options = {}) {
|
|
|
284
284
|
name: "@farm.js/core:api",
|
|
285
285
|
enforce: "pre",
|
|
286
286
|
configureServer(server) {
|
|
287
|
-
const polyroute =
|
|
287
|
+
const polyroute = _chunkYCGOQKVCcjs.hasPolyroutePlugin.call(void 0, server.config.plugins);
|
|
288
288
|
projectRoot = server.config.root;
|
|
289
289
|
devServer = server;
|
|
290
290
|
const discoverFileRoutes = async (apiDir) => {
|
|
@@ -302,7 +302,7 @@ function farmApiPlugin(options = {}) {
|
|
|
302
302
|
const fullPath = path.join(dir, entry.name);
|
|
303
303
|
if (entry.isDirectory()) {
|
|
304
304
|
files.push(...findRouteFiles(fullPath));
|
|
305
|
-
} else if (
|
|
305
|
+
} else if (_chunkYCGOQKVCcjs.isFarmAPIRouteFileName.call(void 0, entry.name, polyroute)) {
|
|
306
306
|
files.push(fullPath);
|
|
307
307
|
}
|
|
308
308
|
}
|
|
@@ -332,7 +332,7 @@ function farmApiPlugin(options = {}) {
|
|
|
332
332
|
log(`API route discovered: ${availableMethods.join(", ")} ${routePath}`);
|
|
333
333
|
}
|
|
334
334
|
} catch (e) {
|
|
335
|
-
if (e instanceof
|
|
335
|
+
if (e instanceof _chunkD2VLHRBNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
336
336
|
log(`API route load failed at ${filePath}: ${e.message}`);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
@@ -359,7 +359,7 @@ function farmApiPlugin(options = {}) {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
} catch (e) {
|
|
362
|
-
if (e instanceof
|
|
362
|
+
if (e instanceof _chunkD2VLHRBNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
363
363
|
log(`Root routes.ts load failed: ${e.message}`);
|
|
364
364
|
}
|
|
365
365
|
break;
|
|
@@ -390,7 +390,7 @@ function farmApiPlugin(options = {}) {
|
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
} catch (e) {
|
|
393
|
-
if (e instanceof
|
|
393
|
+
if (e instanceof _chunkD2VLHRBNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
394
394
|
log(`Programmatic routes file load failed at ${routeFile}: ${e.message}`);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
@@ -615,12 +615,12 @@ function farmApiPlugin(options = {}) {
|
|
|
615
615
|
log(`API router recreated`);
|
|
616
616
|
} catch (e) {
|
|
617
617
|
restoreRouteState(previousState);
|
|
618
|
-
if (e instanceof
|
|
618
|
+
if (e instanceof _chunkD2VLHRBNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
619
619
|
log(`Root routes.ts HMR failed: ${e.message}`);
|
|
620
620
|
}
|
|
621
621
|
return [];
|
|
622
622
|
}
|
|
623
|
-
if (normalizedFile.includes("/api/") &&
|
|
623
|
+
if (normalizedFile.includes("/api/") && _chunkYCGOQKVCcjs.isFarmAPIRouteFileName.call(void 0, fileName, _chunkYCGOQKVCcjs.hasPolyroutePlugin.call(void 0, server.config.plugins))) {
|
|
624
624
|
const shortPath = normalizedFile.split("/api/")[1] || normalizedFile;
|
|
625
625
|
log(`API route updated: ${shortPath}`);
|
|
626
626
|
for (const mod of modules) {
|
|
@@ -653,7 +653,7 @@ function farmApiPlugin(options = {}) {
|
|
|
653
653
|
log(`API router recreated`);
|
|
654
654
|
} catch (e) {
|
|
655
655
|
restoreRouteState(previousState);
|
|
656
|
-
if (e instanceof
|
|
656
|
+
if (e instanceof _chunkD2VLHRBNcjs.APIRouteConflictError || e instanceof _chunkT4YCWRCJcjs.AmbiguousRouteError) throw e;
|
|
657
657
|
log(`API route HMR failed: ${e.message}`);
|
|
658
658
|
}
|
|
659
659
|
return [];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkYV47TSSBcjs = require('./chunk-YV47TSSB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEIAA4W3Mcjs = require('./chunk-EIAA4W3M.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ var _chunkYQXLBYY2cjs = require('./chunk-YQXLBYY2.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkEWPH5IOCcjs = require('./chunk-EWPH5IOC.cjs');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunkUGL4BDNBcjs = require('./chunk-UGL4BDNB.cjs');
|
|
@@ -71,7 +71,7 @@ function pickImportTarget(entry) {
|
|
|
71
71
|
return void 0;
|
|
72
72
|
}
|
|
73
73
|
async function importFromApp(root, packageName, subpath = ".") {
|
|
74
|
-
const packageDir =
|
|
74
|
+
const packageDir = _chunkEWPH5IOCcjs.findFarmAppPackageDir.call(void 0, root, packageName);
|
|
75
75
|
if (!packageDir) return void 0;
|
|
76
76
|
const manifest = JSON.parse(_fs.readFileSync.call(void 0, _path2.default.join(packageDir, "package.json"), "utf8"));
|
|
77
77
|
const exportsMap = manifest.exports;
|
|
@@ -90,7 +90,7 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
90
90
|
const renderer = userConfig.renderer;
|
|
91
91
|
if (renderer && typeof renderer === "object" && renderer.name && renderer.name !== "react") {
|
|
92
92
|
throw new Error(
|
|
93
|
-
`[Farm.js]
|
|
93
|
+
`[Farm.js] serverComponents needs the React renderer; this app uses "${renderer.name}".`
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
96
|
const [pluginRsc, viteRsc, viteReact] = await Promise.all([
|
|
@@ -98,12 +98,12 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
98
98
|
importFromApp(root, "@vitejs/plugin-rsc"),
|
|
99
99
|
importFromApp(root, "@vitejs/plugin-react")
|
|
100
100
|
]);
|
|
101
|
-
if (!pluginRsc || !viteRsc || !
|
|
101
|
+
if (!pluginRsc || !viteRsc || !_chunkEWPH5IOCcjs.findFarmAppPackageDir.call(void 0, root, "react-server-dom-webpack")) {
|
|
102
102
|
throw new Error(
|
|
103
|
-
`[Farm.js]
|
|
103
|
+
`[Farm.js] serverComponents runs on @farm.js/plugin and the official @vitejs/plugin-rsc. Install them: ${_chunkEWPH5IOCcjs.FARM_RSC_INSTALL_HINT}`
|
|
104
104
|
);
|
|
105
105
|
}
|
|
106
|
-
const layered = await
|
|
106
|
+
const layered = await _chunkEWPH5IOCcjs.resolveFarmRscCheckConfig.call(void 0,
|
|
107
107
|
userConfig,
|
|
108
108
|
root,
|
|
109
109
|
options.command === "build" ? "production" : "development"
|
|
@@ -117,9 +117,9 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
117
117
|
},
|
|
118
118
|
options.command
|
|
119
119
|
);
|
|
120
|
-
const blockingKeys =
|
|
120
|
+
const blockingKeys = _chunkEWPH5IOCcjs.inspectFarmServerComponents.call(void 0, config, root).blockingKeys;
|
|
121
121
|
if (blockingKeys.length > 0) {
|
|
122
|
-
throw new Error(`[Farm.js] ${
|
|
122
|
+
throw new Error(`[Farm.js] ${_chunkEWPH5IOCcjs.formatFarmRscBlockingMessage.call(void 0, blockingKeys)}`);
|
|
123
123
|
}
|
|
124
124
|
const { plugins: vitePlugins = [], ...viteOptions } = _nullishCoalesce(config.vite, () => ( {}));
|
|
125
125
|
const rscConfig = {};
|
|
@@ -167,7 +167,7 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
167
167
|
server: { environmentName: "rsc" },
|
|
168
168
|
config: {
|
|
169
169
|
preset: options.preset,
|
|
170
|
-
outputDir: options.outputDir &&
|
|
170
|
+
outputDir: options.outputDir && _chunkEIAA4W3Mcjs.resolveDeployOutputPath.call(void 0, root, options.outputDir)
|
|
171
171
|
}
|
|
172
172
|
})
|
|
173
173
|
]
|
|
@@ -194,7 +194,7 @@ async function resolveFarmRscServerPlugins(userConfig, config, root) {
|
|
|
194
194
|
const candidate = plugin;
|
|
195
195
|
return !!candidate && names.has(candidate.name) && _chunkADCVSTFVcjs.hasFarmServerRuntimePlugins.call(void 0, [candidate]);
|
|
196
196
|
};
|
|
197
|
-
const { findFarmConfigFile, loadFarmConfigFile, resolveFarmLayers } = await import("./layers-
|
|
197
|
+
const { findFarmConfigFile, loadFarmConfigFile, resolveFarmLayers } = await import("./layers-6R55QDT5.cjs");
|
|
198
198
|
const files = [];
|
|
199
199
|
if (userConfig.extends) {
|
|
200
200
|
const { layers } = await resolveFarmLayers(userConfig, { root, mode: "production" });
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RLEAVG6G.mjs";
|
|
4
4
|
import {
|
|
5
5
|
resolveDeployOutputPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-H6MYRZ2U.mjs";
|
|
7
7
|
import {
|
|
8
8
|
farmDesktopDevGuardPlugin,
|
|
9
9
|
loadFarmReactPlugin
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
formatFarmRscBlockingMessage,
|
|
23
23
|
inspectFarmServerComponents,
|
|
24
24
|
resolveFarmRscCheckConfig
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-KQXYBJES.mjs";
|
|
26
26
|
|
|
27
27
|
// src/rsc-pipeline.ts
|
|
28
28
|
import { readFileSync } from "fs";
|
|
@@ -86,7 +86,7 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
86
86
|
const renderer = userConfig.renderer;
|
|
87
87
|
if (renderer && typeof renderer === "object" && renderer.name && renderer.name !== "react") {
|
|
88
88
|
throw new Error(
|
|
89
|
-
`[Farm.js]
|
|
89
|
+
`[Farm.js] serverComponents needs the React renderer; this app uses "${renderer.name}".`
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
const [pluginRsc, viteRsc, viteReact] = await Promise.all([
|
|
@@ -96,7 +96,7 @@ async function createFarmRscViteConfig(userConfig, options) {
|
|
|
96
96
|
]);
|
|
97
97
|
if (!pluginRsc || !viteRsc || !findFarmAppPackageDir(root, "react-server-dom-webpack")) {
|
|
98
98
|
throw new Error(
|
|
99
|
-
`[Farm.js]
|
|
99
|
+
`[Farm.js] serverComponents runs on @farm.js/plugin and the official @vitejs/plugin-rsc. Install them: ${FARM_RSC_INSTALL_HINT}`
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
102
|
const layered = await resolveFarmRscCheckConfig(
|
|
@@ -190,7 +190,7 @@ async function resolveFarmRscServerPlugins(userConfig, config, root) {
|
|
|
190
190
|
const candidate = plugin;
|
|
191
191
|
return !!candidate && names.has(candidate.name) && hasFarmServerRuntimePlugins([candidate]);
|
|
192
192
|
};
|
|
193
|
-
const { findFarmConfigFile, loadFarmConfigFile, resolveFarmLayers } = await import("./layers-
|
|
193
|
+
const { findFarmConfigFile, loadFarmConfigFile, resolveFarmLayers } = await import("./layers-O6GUR6LT.mjs");
|
|
194
194
|
const files = [];
|
|
195
195
|
if (userConfig.extends) {
|
|
196
196
|
const { layers } = await resolveFarmLayers(userConfig, { root, mode: "production" });
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
collectFarmNativeServerFns,
|
|
34
34
|
findFarmNativeScreenFiles
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-L2KGQXFU.mjs";
|
|
36
36
|
import {
|
|
37
37
|
assertFarmDocsAdapterServesNoGuardedPages,
|
|
38
38
|
compileFarmDocsAdapterEdgeManifest,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
listFarmDocsAdapterPages,
|
|
42
42
|
listFarmDocsAdapterRoutes,
|
|
43
43
|
listFarmDocsPagePaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-HBZQIRRM.mjs";
|
|
45
45
|
import {
|
|
46
46
|
FARM_DOCS_LAST_MODIFIED_MANIFEST,
|
|
47
47
|
createFarmDocsHandler,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
getDeployTargetForPreset,
|
|
72
72
|
hasCustomFarmRouteContext,
|
|
73
73
|
resolveDeployOutputPath
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-H6MYRZ2U.mjs";
|
|
75
75
|
import {
|
|
76
76
|
resolveFarmInstrumentationFile
|
|
77
77
|
} from "./chunk-QRNYSISP.mjs";
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
resolveFarmNotFoundComponentPath,
|
|
118
118
|
resolveFarmRouteRootStrategy,
|
|
119
119
|
toBakedMarkdownSourcePath
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-D5GFVHBV.mjs";
|
|
121
121
|
import {
|
|
122
122
|
TAILWIND_CSS_BROWSER_TARGET,
|
|
123
123
|
generateFarmClientPluginEntryCode,
|
|
@@ -133,11 +133,11 @@ import {
|
|
|
133
133
|
readRouteRenderingDirectiveFromFile,
|
|
134
134
|
resolveRouteRenderingConfig,
|
|
135
135
|
resolveRouteRenderingConfigFromFile
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-CZMMU3FP.mjs";
|
|
137
137
|
import {
|
|
138
138
|
FARM_PRERENDER_ENV,
|
|
139
139
|
_farmWebMCPReportsEnabled
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-SIJ3DREB.mjs";
|
|
141
141
|
import {
|
|
142
142
|
HOISTED_HEAD_ELEMENT,
|
|
143
143
|
appMiddlewareMayHandlePath,
|
|
@@ -165,7 +165,7 @@ import {
|
|
|
165
165
|
listFarmBuiltInRoutePaths,
|
|
166
166
|
resolveFarmApiCatalogInput,
|
|
167
167
|
resolveFarmAppManifestInput
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-XYCB3CXM.mjs";
|
|
169
169
|
import {
|
|
170
170
|
FARM_DEFAULT_MCP_PATH,
|
|
171
171
|
createFarmDefaultMCPServer,
|
|
@@ -173,7 +173,7 @@ import {
|
|
|
173
173
|
} from "./chunk-WABOJXAA.mjs";
|
|
174
174
|
import {
|
|
175
175
|
isFarmPreviewDeploymentEnvironment
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-RCJAOQWW.mjs";
|
|
177
177
|
import {
|
|
178
178
|
FARM_NATIVE_SERVER_FN_PLUGIN
|
|
179
179
|
} from "./chunk-L4RTTTVE.mjs";
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
withFarmSourceSnapshot,
|
|
195
195
|
withFarmSourceSnapshotOf,
|
|
196
196
|
withPackageClientBoundaryCache
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-E7ISZK3R.mjs";
|
|
198
198
|
import {
|
|
199
199
|
generateFarmDocsAdapterClientRuntime,
|
|
200
200
|
getFarmDocsAdapterConfigModule
|
|
@@ -214,14 +214,14 @@ import {
|
|
|
214
214
|
} from "./chunk-YVVY276M.mjs";
|
|
215
215
|
import {
|
|
216
216
|
usesFarmRendererIslands
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-2FBFJO2Z.mjs";
|
|
218
218
|
import {
|
|
219
219
|
applyFarmCspHashesToHtml,
|
|
220
220
|
createFarmCspNonce
|
|
221
221
|
} from "./chunk-22W4FNTG.mjs";
|
|
222
222
|
import {
|
|
223
223
|
getFarmAppDirectories
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-5VXVRMXK.mjs";
|
|
225
225
|
import {
|
|
226
226
|
REACT_RENDERER,
|
|
227
227
|
getFarmRendererCapabilities,
|
|
@@ -230,9 +230,12 @@ import {
|
|
|
230
230
|
isFarmRendererDisabled,
|
|
231
231
|
isReactRenderer,
|
|
232
232
|
loadFarmRendererVitePlugins,
|
|
233
|
-
resolveFarmRendererAppSetup
|
|
233
|
+
resolveFarmRendererAppSetup
|
|
234
|
+
} from "./chunk-HHZURH4U.mjs";
|
|
235
|
+
import {
|
|
236
|
+
readFarmServerComponentsConfig,
|
|
234
237
|
resolveFarmServerComponentsMode
|
|
235
|
-
} from "./chunk-
|
|
238
|
+
} from "./chunk-PTG5BEMG.mjs";
|
|
236
239
|
import {
|
|
237
240
|
applyFarmCronVercelCrons,
|
|
238
241
|
createFarmCronCloudflareConfig,
|
|
@@ -285,11 +288,11 @@ import {
|
|
|
285
288
|
} from "./chunk-QD34VE4N.mjs";
|
|
286
289
|
import {
|
|
287
290
|
APIRouteManager
|
|
288
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-CPL7WIMP.mjs";
|
|
289
292
|
import {
|
|
290
293
|
hasPolyroutePlugin,
|
|
291
294
|
isPolyrouteRouteFileName
|
|
292
|
-
} from "./chunk-
|
|
295
|
+
} from "./chunk-O77EKGAS.mjs";
|
|
293
296
|
import {
|
|
294
297
|
readFarmI18nCatalogs
|
|
295
298
|
} from "./chunk-VO55MMBX.mjs";
|
|
@@ -317,7 +320,7 @@ import {
|
|
|
317
320
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
318
321
|
import {
|
|
319
322
|
FARM_VERSION
|
|
320
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-BOHBFBRA.mjs";
|
|
321
324
|
import {
|
|
322
325
|
FARM_VIDEO_PLAYER_PATH
|
|
323
326
|
} from "./chunk-23NBOP43.mjs";
|
|
@@ -3439,7 +3442,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3439
3442
|
const unsupportedIntegrationProvider = integrationProviders.find(
|
|
3440
3443
|
(provider) => !providerSupportsIslands(provider)
|
|
3441
3444
|
);
|
|
3442
|
-
if (config.experimental?.isolatedClientHydration === "enabled" && resolveFarmServerComponentsMode(config
|
|
3445
|
+
if (config.experimental?.isolatedClientHydration === "enabled" && resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) !== "rsc" && unsupportedIntegrationProvider) {
|
|
3443
3446
|
logger.warn(
|
|
3444
3447
|
`[Farm.js] Client components hydrate with their route, not as islands, because integration provider "${unsupportedIntegrationProvider.name}" doesn't declare \`islands: true\`.`
|
|
3445
3448
|
);
|
|
@@ -3447,7 +3450,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3447
3450
|
const isolatedMode = resolveFarmIsolatedClientHydrationMode(
|
|
3448
3451
|
config.experimental?.isolatedClientHydration,
|
|
3449
3452
|
{
|
|
3450
|
-
serverComponents: resolveFarmServerComponentsMode(config
|
|
3453
|
+
serverComponents: resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) === "rsc",
|
|
3451
3454
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
3452
3455
|
}
|
|
3453
3456
|
);
|
|
@@ -3457,7 +3460,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3457
3460
|
);
|
|
3458
3461
|
const pagePlanOptions = {
|
|
3459
3462
|
...planOptions,
|
|
3460
|
-
serverOwners: resolveFarmServerComponentsMode(config
|
|
3463
|
+
serverOwners: resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) === "islands"
|
|
3461
3464
|
};
|
|
3462
3465
|
const layoutPlanOptions = {
|
|
3463
3466
|
...planOptions,
|
|
@@ -3465,7 +3468,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3465
3468
|
};
|
|
3466
3469
|
const layoutAppliesToRoute = routeBoundaryCoversDirectory;
|
|
3467
3470
|
const routeDirectory = (route) => route.directory ?? route.pattern;
|
|
3468
|
-
const islandsMode = resolveFarmServerComponentsMode(config
|
|
3471
|
+
const islandsMode = resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) === "islands";
|
|
3469
3472
|
const adapterOwnsDocsRuntime = hasFarmDocsRuntimeAdapter(config.docs);
|
|
3470
3473
|
const docsEntries = config.docs?.enabled ? getFarmDocsRoots(config.docs).map(
|
|
3471
3474
|
(docsRoot) => `/${docsRoot.entry || "docs"}`.replace(/\/+/g, "/").replace(/\/$/, "") || "/"
|
|
@@ -3727,7 +3730,7 @@ async function buildClient(productionVite, config, root, srcDir, outputDir, page
|
|
|
3727
3730
|
config.basePath,
|
|
3728
3731
|
generateClientCachePersistenceCode(resolveFarmClientCacheAdapterEntry(root, config.cache)),
|
|
3729
3732
|
adapterOwnsDocsRuntime ? getFarmDocsAdapterConfigModule(config.docs) : void 0,
|
|
3730
|
-
resolveFarmServerComponentsMode(config
|
|
3733
|
+
resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) === "islands",
|
|
3731
3734
|
platform,
|
|
3732
3735
|
islandsMode ? collectFarmServerStylesheets(
|
|
3733
3736
|
[
|
|
@@ -7649,7 +7652,7 @@ async function buildSSRInMemory(productionVite, config, root, routeManager, apiR
|
|
|
7649
7652
|
const appDirs = getFarmAppDirectories(config);
|
|
7650
7653
|
let openAPIReference = null;
|
|
7651
7654
|
if (config.openapi.enabled && config.openapi.route) {
|
|
7652
|
-
const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-
|
|
7655
|
+
const { OpenAPIManager, renderOpenAPIReferenceHTML } = await import("./manager-YTJOAHII.mjs");
|
|
7653
7656
|
const openAPIManager = new OpenAPIManager(appDirs, config.openapi, {
|
|
7654
7657
|
mode: "production",
|
|
7655
7658
|
apiBaseURL: config.api.baseURL,
|
|
@@ -8446,7 +8449,7 @@ function generateVirtualEntryCode(apiRoutes, pageRoutes, layoutRoutes, routeSlot
|
|
|
8446
8449
|
(route) => route.searchPreserve ? [route.searchPreserve] : []
|
|
8447
8450
|
);
|
|
8448
8451
|
const searchPreserveRoutesSource = searchPreserveRoutes.length > 0 ? JSON.stringify(searchPreserveRoutes) : "";
|
|
8449
|
-
const farmIslandsMode = resolveFarmServerComponentsMode(config
|
|
8452
|
+
const farmIslandsMode = resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) === "islands";
|
|
8450
8453
|
const farmRendererActions = resolveFarmIslxActionsMode(config) === "renderer";
|
|
8451
8454
|
const farmClientBoot = canBootFarmIslandsClient(config);
|
|
8452
8455
|
const farmMobileClient = shouldBuildFarmMobileClient(config);
|
|
@@ -8571,7 +8574,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8571
8574
|
const isolatedHydrationMode = resolveFarmIsolatedClientHydrationMode(
|
|
8572
8575
|
config.experimental?.isolatedClientHydration,
|
|
8573
8576
|
{
|
|
8574
|
-
serverComponents: resolveFarmServerComponentsMode(config
|
|
8577
|
+
serverComponents: resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) === "rsc",
|
|
8575
8578
|
hasUnsupportedIntegrationProvider: Boolean(unsupportedIntegrationProvider)
|
|
8576
8579
|
}
|
|
8577
8580
|
);
|
|
@@ -8581,7 +8584,7 @@ function renderFarmServerTreeLayout(Layout, props, outlets) {
|
|
|
8581
8584
|
);
|
|
8582
8585
|
const pageHydrationPlanOptions = {
|
|
8583
8586
|
...hydrationPlanOptions,
|
|
8584
|
-
serverOwners: resolveFarmServerComponentsMode(config
|
|
8587
|
+
serverOwners: resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) === "islands"
|
|
8585
8588
|
};
|
|
8586
8589
|
const { layoutHydrationPlans, pageHydrationPlans } = withFarmSourceSnapshot(() => {
|
|
8587
8590
|
const layoutHydrationPlans2 = layoutRoutes.map((layout) => ({
|
|
@@ -15102,7 +15105,7 @@ function toFarmNodeResponse(request, response) {
|
|
|
15102
15105
|
varyFarmNitroCacheRules(routeRulesToNitroRouteRules(config.routeRules), [
|
|
15103
15106
|
...config.md.enabled ? ["accept"] : [],
|
|
15104
15107
|
...shouldBuildFarmMobileClient(config) ? ["x-farm-shell"] : [],
|
|
15105
|
-
...resolveFarmServerComponentsMode(config
|
|
15108
|
+
...resolveFarmServerComponentsMode(readFarmServerComponentsConfig(config)) === "islands" ? ["f-layouts"] : []
|
|
15106
15109
|
]),
|
|
15107
15110
|
config.basePath,
|
|
15108
15111
|
resolveFarmAPIServerBasePath(config.api)
|
|
@@ -16240,7 +16243,9 @@ async function buildWithProductionNodeEnv(inputConfig, options) {
|
|
|
16240
16243
|
suppressLintOnLink: config.suppressLintOnLink,
|
|
16241
16244
|
componentExtensions: config.renderer.componentExtensions,
|
|
16242
16245
|
renderer: config.renderer,
|
|
16243
|
-
i18nConfig: config.i18n
|
|
16246
|
+
i18nConfig: config.i18n,
|
|
16247
|
+
// Match the routes the API route manager below discovers through this server.
|
|
16248
|
+
polyroute: hasPolyroutePlugin(projectModuleServer.config.plugins)
|
|
16244
16249
|
}).catch((error) => {
|
|
16245
16250
|
const message = error instanceof Error ? error.message : String(error);
|
|
16246
16251
|
logger.warn(`Route type generation failed (farm.d.ts may be stale): ${message}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkMR64FNW6cjs = require('./chunk-MR64FNW6.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -370,7 +370,7 @@ function requestEvent(metadata, method, status, durationMs) {
|
|
|
370
370
|
id: uuid(),
|
|
371
371
|
requestId: metadata.id,
|
|
372
372
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
373
|
-
route: routeTemplate(
|
|
373
|
+
route: routeTemplate(_chunkMR64FNW6cjs.getFarmRouteLabel.call(void 0, metadata.route)),
|
|
374
374
|
...metadata.path ? { path: metadata.path } : {},
|
|
375
375
|
agent: metadata.agent,
|
|
376
376
|
kind: "request",
|
|
@@ -426,7 +426,7 @@ function toolEvent(metadata, event, payloads) {
|
|
|
426
426
|
id: uuid(),
|
|
427
427
|
requestId: metadata.id,
|
|
428
428
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
429
|
-
route: routeTemplate(
|
|
429
|
+
route: routeTemplate(_chunkMR64FNW6cjs.getFarmRouteLabel.call(void 0, metadata.route)),
|
|
430
430
|
...metadata.path ? { path: metadata.path } : {},
|
|
431
431
|
agent: metadata.agent,
|
|
432
432
|
kind: "mcp.tool",
|
|
@@ -512,7 +512,7 @@ async function receiveWebMCPReport(request, exporter, options, webmcp, waitUntil
|
|
|
512
512
|
exporter.enqueue({
|
|
513
513
|
id: uuid(),
|
|
514
514
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
515
|
-
route: routeTemplate(
|
|
515
|
+
route: routeTemplate(_chunkMR64FNW6cjs.getFarmRouteLabel.call(void 0, route)),
|
|
516
516
|
...path ? { path } : {},
|
|
517
517
|
agent: _chunkU2HFXURZcjs.classifyFarmClient.call(void 0, request),
|
|
518
518
|
kind: "mcp.tool",
|