@farm.js/core 0.2.0 → 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/dist/{agent-mcp.d-xPua9Zdz.d.ts → agent-mcp.d--uQgDp_Q.d.ts} +1 -1
- package/dist/{agent-mcp.d-DhZf5-v0.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-LQ4LVDCW.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-D6l1Wkn6.d.ts → app-manifest.d-DMgcFuXQ.d.ts} +1 -1
- package/dist/{app-manifest.d-Bq9VWtpk.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-Bn1bqBkf.d.mts → app.d-DG_-nN5y.d.mts} +4 -4
- package/dist/{app.d-gnTrW72o.d.ts → app.d-htfGqq-d.d.ts} +4 -4
- package/dist/{chunk-MEIZIRMK.mjs → chunk-BOHBFBRA.mjs} +1 -1
- package/dist/{chunk-WOPQQCP3.mjs → chunk-CPL7WIMP.mjs} +1 -1
- package/dist/{chunk-RMLXUVR5.cjs → chunk-CS6GXE42.cjs} +91 -21
- package/dist/{chunk-MLMDOIBY.mjs → chunk-CZMMU3FP.mjs} +2 -2
- package/dist/{chunk-ZCT6B5PQ.cjs → chunk-D2OU4CX2.cjs} +6 -6
- package/dist/{chunk-ZTNU4XCC.cjs → chunk-D2VLHRBN.cjs} +3 -3
- package/dist/{chunk-RDT2LJES.mjs → chunk-D5GFVHBV.mjs} +4 -4
- package/dist/{chunk-RP55BUJM.mjs → chunk-E7ISZK3R.mjs} +1 -1
- package/dist/{chunk-4ER5KYSC.cjs → chunk-GEZ76JXD.cjs} +3 -3
- package/dist/{chunk-T4VF6BYV.cjs → chunk-GL4SPJTE.cjs} +2 -2
- package/dist/{chunk-SIHHYNX4.mjs → chunk-HBZQIRRM.mjs} +1 -1
- package/dist/{chunk-MUQP2APN.cjs → chunk-HENYWY5J.cjs} +2 -2
- package/dist/{chunk-LGL5QKUJ.cjs → chunk-JJ22OI7J.cjs} +2 -2
- package/dist/{chunk-Z7YIQ7AJ.cjs → chunk-JZAGIXMB.cjs} +1 -1
- package/dist/{chunk-FFROR7QD.mjs → chunk-L2KGQXFU.mjs} +1 -1
- package/dist/{chunk-MZG5M4JS.cjs → chunk-MR64FNW6.cjs} +4 -4
- package/dist/{chunk-KKXGBQ2K.mjs → chunk-MYJPW4XN.mjs} +2 -2
- package/dist/chunk-O77EKGAS.mjs +36 -0
- package/dist/{chunk-ZVEKOMZS.mjs → chunk-OKZHPPBX.mjs} +1 -1
- package/dist/{chunk-54INSSWI.mjs → chunk-P2THJDLH.mjs} +23 -15
- package/dist/{chunk-VFZQXADS.cjs → chunk-PGU4SCIU.cjs} +133 -131
- package/dist/{chunk-VWPGK6UV.cjs → chunk-PVB5UYJT.cjs} +54 -54
- package/dist/{chunk-DNERKYN4.cjs → chunk-Q4FHYBFT.cjs} +11 -11
- package/dist/{chunk-JKNQMGZE.cjs → chunk-QI3UYN3P.cjs} +2 -2
- package/dist/{chunk-GAD63TH7.mjs → chunk-QJKGRUBR.mjs} +1 -1
- package/dist/{chunk-GK2RCRT2.mjs → chunk-RCJAOQWW.mjs} +1 -1
- package/dist/{chunk-D7KBMJ7L.mjs → chunk-SIJ3DREB.mjs} +1 -1
- package/dist/{chunk-HYYOVRED.mjs → chunk-SPVXL37B.mjs} +1 -1
- package/dist/{chunk-MX4G24YS.mjs → chunk-TI4BJFYX.mjs} +16 -14
- package/dist/{chunk-O47IT4CS.cjs → chunk-V6ACETKR.cjs} +4 -4
- package/dist/{chunk-J6JAUJPC.cjs → chunk-W34OS5CK.cjs} +148 -140
- package/dist/{chunk-KJW6KEOZ.mjs → chunk-WRT775N6.mjs} +92 -22
- package/dist/{chunk-2LHO4HTP.cjs → chunk-XSE4XJKY.cjs} +2 -2
- package/dist/{chunk-ZF7N222A.mjs → chunk-XYCB3CXM.mjs} +2 -2
- package/dist/{chunk-MNBFSAWF.cjs → chunk-YCGOQKVC.cjs} +20 -1
- package/dist/{chunk-PATIHHC7.cjs → chunk-ZQOHL6TX.cjs} +2 -2
- package/dist/{client-component.d-34DDMZcl.d.mts → client-component.d-D5JVDeQf.d.mts} +1 -1
- package/dist/{client-component.d-DT5OKBZu.d.ts → client-component.d-DDbDw2yP.d.ts} +1 -1
- package/dist/{client-plugins.d-D7k9t9Ge.d.mts → client-plugins.d-9jr2yWR3.d.mts} +4 -4
- package/dist/{client-plugins.d-D9CnUvZ5.d.ts → client-plugins.d-BHqfH3DQ.d.ts} +4 -4
- 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-IUU4SWQL.cjs → devtools-F6Z436WU.cjs} +2 -2
- package/dist/{devtools-R77KAJA4.mjs → devtools-ZDBCJI44.mjs} +1 -1
- package/dist/docs.cjs +3 -3
- package/dist/docs.d.mts +6 -6
- package/dist/docs.d.ts +6 -6
- package/dist/docs.mjs +2 -2
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/environment/vite.mjs +2 -2
- 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-DbZvbwNi.d.ts → handler.d-Dq_bSEKC.d.ts} +2 -2
- package/dist/{handler.d-fxTjv3Nn.d.mts → handler.d-EtTSPkeO.d.mts} +2 -2
- package/dist/{headers.d-OBHpGTF_.d.mts → headers.d-BKwGD_uC.d.mts} +1 -1
- package/dist/{headers.d-oeWybIk8.d.ts → headers.d-CpIHLCEk.d.ts} +1 -1
- package/dist/index.cjs +22 -22
- package/dist/{index.d-BM-dKdzH.d.ts → index.d-CoRZKiHA.d.ts} +1 -1
- package/dist/{index.d-CRrPQwlO.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 +17 -17
- 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 +17 -17
- package/dist/internal/build-runtime.d.mts +7 -7
- package/dist/internal/build-runtime.d.ts +7 -7
- package/dist/internal/build-runtime.mjs +16 -16
- package/dist/internal/cli-runtime.cjs +8 -5
- package/dist/internal/cli-runtime.d.mts +20 -12
- package/dist/internal/cli-runtime.d.ts +20 -12
- package/dist/internal/cli-runtime.mjs +7 -4
- 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 +3 -3
- package/dist/internal/config-runtime.d.mts +8 -8
- package/dist/internal/config-runtime.d.ts +8 -8
- package/dist/internal/config-runtime.mjs +2 -2
- 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.d-CH0bC4QL.d.mts → layers.d-dNBkiNE9.d.mts} +1 -1
- package/dist/{layers.d-CH0bC4QL.d.ts → layers.d-dNBkiNE9.d.ts} +1 -1
- package/dist/{manager-STAB5TVZ.cjs → manager-YRIENS63.cjs} +4 -4
- package/dist/{manager-EFPBRS3U.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-TnD-Mebk.d.ts → mount.d-BzK2Z1pR.d.ts} +1 -1
- package/dist/{mount.d-B7RiwjiO.d.mts → mount.d-D-ynBlxU.d.mts} +1 -1
- package/dist/{navigation-delegate.d-VBCF0EeN.d.ts → navigation-delegate.d-DtsnFnNF.d.ts} +1 -1
- package/dist/{navigation-delegate.d-Boz2511c.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 +12 -12
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +11 -11
- package/dist/{render-plan.d-BwnmyfNk.d.mts → render-plan.d-C6nUIU2m.d.mts} +1 -1
- package/dist/{render-plan.d-BrumV_ZE.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/{request.d-Dd5nRTO5.d.mts → request.d-CBEdJD5R.d.mts} +1 -1
- package/dist/{request.d-NUi01-5e.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-CJR5BPXV.d.ts → route-rendering.d-C-ivf31T.d.ts} +1 -1
- package/dist/{route-rendering.d-BK0Pf7_k.d.mts → route-rendering.d-DgXpNk_c.d.mts} +1 -1
- package/dist/{router.d-C-JSFCPU.d.ts → router.d-BRRPd5dE.d.ts} +1 -1
- package/dist/{router.d-CNUS3x1j.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-UBWVU3NF.cjs → rsc-pipeline-2DNM7UDA.cjs} +3 -3
- package/dist/{rsc-pipeline-DHISDFT7.mjs → rsc-pipeline-HYINQPMW.mjs} +2 -2
- package/dist/{runtime-VUKMY44G.mjs → runtime-JP7L5KI7.mjs} +2 -2
- package/dist/{runtime-XKRQW3YT.cjs → runtime-M6GLD4CR.cjs} +4 -4
- package/dist/{runtime.d-CsOpO6yQ.d.mts → runtime.d-DP8Sk9PM.d.mts} +1 -1
- package/dist/{runtime.d-B2T4bM5_.d.ts → runtime.d-DW_1avVi.d.ts} +1 -1
- package/dist/{cli-runtime.d-Vvxf-Z8a.d.ts → schema-dependencies.d-C__RyTvW.d.ts} +21 -13
- package/dist/{cli-runtime.d-LwIb0swO.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-DOYt4E_Q.d.ts → server-components-status.d-CdsEQbeM.d.ts} +2 -2
- package/dist/{server-components-status.d-Cc5rir0l.d.mts → server-components-status.d-DN98yOT4.d.mts} +2 -2
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server.cjs +35 -35
- package/dist/server.d.mts +14 -14
- package/dist/server.d.ts +14 -14
- package/dist/server.mjs +13 -13
- package/dist/{spa-router.d-C7FcpLxU.d.ts → spa-router.d-BJWZAdrV.d.ts} +2 -2
- package/dist/{spa-router.d-Cq5UFJvq.d.mts → spa-router.d-FcDbBCrK.d.mts} +2 -2
- package/dist/{ssg.d-BzNZemk7.d.mts → ssg.d--uut8Gya.d.mts} +3 -3
- package/dist/{ssg.d-DUhacIxj.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-DbUAtSBK.d.mts → store-core.d-DgYlAo-e.d.mts} +2 -2
- package/dist/{store-core.d-BX3yXrxA.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-BhJJEXzo.d.ts → utils.d-2lGEnyBc.d.ts} +1 -1
- package/dist/{utils.d-NOMkLFpC.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 +12 -12
- package/dist/vite.d.mts +9 -9
- package/dist/vite.d.ts +9 -9
- package/dist/vite.mjs +11 -11
- package/package.json +1 -1
- package/dist/analyzer-ZFC2L6NZ.cjs +0 -17
- package/dist/chunk-OZAVCLXY.mjs +0 -17
- /package/dist/{chunk-OAAVIFOJ.cjs → chunk-EIAA4W3M.cjs} +0 -0
- /package/dist/{chunk-ZRTBDHO2.mjs → chunk-H6MYRZ2U.mjs} +0 -0
|
@@ -44,7 +44,7 @@ var _chunk6QWCFVGLcjs = require('./chunk-6QWCFVGL.cjs');
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkPVB5UYJTcjs = require('./chunk-PVB5UYJT.cjs');
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
@@ -59,10 +59,10 @@ var _chunkYQXLBYY2cjs = require('./chunk-YQXLBYY2.cjs');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkGL4SPJTEcjs = require('./chunk-GL4SPJTE.cjs');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkV6ACETKRcjs = require('./chunk-V6ACETKR.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -89,13 +89,13 @@ var _chunkXVD5Y6S4cjs = require('./chunk-XVD5Y6S4.cjs');
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunkMR64FNW6cjs = require('./chunk-MR64FNW6.cjs');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
var _chunkR6GOH5CHcjs = require('./chunk-R6GOH5CH.cjs');
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunkHENYWY5Jcjs = require('./chunk-HENYWY5J.cjs');
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
@@ -148,7 +148,7 @@ var _chunkSIQPXYBBcjs = require('./chunk-SIQPXYBB.cjs');
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
|
-
var
|
|
151
|
+
var _chunkD2OU4CX2cjs = require('./chunk-D2OU4CX2.cjs');
|
|
152
152
|
|
|
153
153
|
|
|
154
154
|
|
|
@@ -253,11 +253,12 @@ var _chunkIVEV44O2cjs = require('./chunk-IVEV44O2.cjs');
|
|
|
253
253
|
var _chunkKSRWTQ6Jcjs = require('./chunk-KSRWTQ6J.cjs');
|
|
254
254
|
|
|
255
255
|
|
|
256
|
-
var
|
|
256
|
+
var _chunkD2VLHRBNcjs = require('./chunk-D2VLHRBN.cjs');
|
|
257
257
|
|
|
258
258
|
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
|
|
261
|
+
var _chunkYCGOQKVCcjs = require('./chunk-YCGOQKVC.cjs');
|
|
261
262
|
|
|
262
263
|
|
|
263
264
|
var _chunkYCIFGYBYcjs = require('./chunk-YCIFGYBY.cjs');
|
|
@@ -320,7 +321,7 @@ var _chunkK6LZMZNBcjs = require('./chunk-K6LZMZNB.cjs');
|
|
|
320
321
|
var _chunkRFKPIAOFcjs = require('./chunk-RFKPIAOF.cjs');
|
|
321
322
|
|
|
322
323
|
|
|
323
|
-
var
|
|
324
|
+
var _chunkJZAGIXMBcjs = require('./chunk-JZAGIXMB.cjs');
|
|
324
325
|
|
|
325
326
|
|
|
326
327
|
var _chunkG5KGLMPNcjs = require('./chunk-G5KGLMPN.cjs');
|
|
@@ -737,7 +738,7 @@ function findClientServerFnViolation(code, id) {
|
|
|
737
738
|
return null;
|
|
738
739
|
}
|
|
739
740
|
function createServerFnBoundaryDiagnostic(violation, id, location) {
|
|
740
|
-
return
|
|
741
|
+
return _chunkD2OU4CX2cjs.createFarmDiagnostic.call(void 0,
|
|
741
742
|
"CLIENT_SERVER_FUNCTION",
|
|
742
743
|
id,
|
|
743
744
|
`${violation.factory} handlers run only on the server, but this module is bundled into the client, so the handler and its Node-only imports would run in the browser.`,
|
|
@@ -997,21 +998,21 @@ function readPropertyKey(property) {
|
|
|
997
998
|
function createClientBoundaryDiagnostic(file, finding, location) {
|
|
998
999
|
switch (finding.kind) {
|
|
999
1000
|
case "server-env":
|
|
1000
|
-
return
|
|
1001
|
+
return _chunkD2OU4CX2cjs.createFarmDiagnostic.call(void 0,
|
|
1001
1002
|
"CLIENT_SERVER_ENV",
|
|
1002
1003
|
file,
|
|
1003
1004
|
`process.env.${finding.name} is read at module scope in a module compiled for the browser, where it is undefined.`,
|
|
1004
1005
|
location
|
|
1005
1006
|
);
|
|
1006
1007
|
case "public-env":
|
|
1007
|
-
return
|
|
1008
|
+
return _chunkD2OU4CX2cjs.createFarmDiagnostic.call(void 0,
|
|
1008
1009
|
"CLIENT_PROCESS_ENV_PUBLIC",
|
|
1009
1010
|
file,
|
|
1010
1011
|
`process.env.${finding.name} is declared public, but process.env is not populated in the browser, so this module-scope read is undefined there.`,
|
|
1011
1012
|
location
|
|
1012
1013
|
);
|
|
1013
1014
|
case "builtin":
|
|
1014
|
-
return
|
|
1015
|
+
return _chunkD2OU4CX2cjs.createFarmDiagnostic.call(void 0,
|
|
1015
1016
|
"CLIENT_NODE_BUILTIN",
|
|
1016
1017
|
file,
|
|
1017
1018
|
`"${finding.name}" is imported into a module compiled for the browser, which gets a stub whose exports without a Web API equivalent are undefined.`,
|
|
@@ -1312,13 +1313,13 @@ function loadFarmDocsSearchDevRuntime() {
|
|
|
1312
1313
|
return import("./search-client-Z7KDVD4C.cjs");
|
|
1313
1314
|
}
|
|
1314
1315
|
function loadFarmOpenAPIDevRuntime() {
|
|
1315
|
-
return import("./manager-
|
|
1316
|
+
return import("./manager-YRIENS63.cjs");
|
|
1316
1317
|
}
|
|
1317
1318
|
function loadFarmWorkflowsDevRuntime() {
|
|
1318
1319
|
return import("./workflows.cjs");
|
|
1319
1320
|
}
|
|
1320
1321
|
function loadFarmDevtoolsSnapshotRuntime() {
|
|
1321
|
-
return import("./devtools-
|
|
1322
|
+
return import("./devtools-F6Z436WU.cjs");
|
|
1322
1323
|
}
|
|
1323
1324
|
function loadFarmDevtoolsUIRuntime() {
|
|
1324
1325
|
return import("./devtools-ui-TPBPQEEB.cjs");
|
|
@@ -1368,16 +1369,16 @@ var FARM_SERVER_ONLY_PACKAGE_ID = "\0farm:server-only";
|
|
|
1368
1369
|
var FARM_PLATFORM_ENTRY = "@farm.js/core/platform";
|
|
1369
1370
|
var FARM_PLATFORM_CLIENT_ID = "\0farm:platform-client";
|
|
1370
1371
|
var FARM_SERVER_ONLY_ENTRIES_RESOLVE_FILTER = [
|
|
1371
|
-
|
|
1372
|
-
new RegExp(`^${
|
|
1372
|
+
_chunkPVB5UYJTcjs.exactIdPattern.call(void 0, [FARM_PLATFORM_ENTRY, SERVER_ONLY_PACKAGE, ...FARM_SERVER_ONLY_ENTRIES]),
|
|
1373
|
+
new RegExp(`^${_chunkD2OU4CX2cjs.FARM_RESOLVE_FROM_PREFIX}`),
|
|
1373
1374
|
// What isBuiltin() accepts: `node:` ids and the builtin names, subpaths such as fs/promises
|
|
1374
1375
|
// included.
|
|
1375
1376
|
/^node:/,
|
|
1376
|
-
|
|
1377
|
+
_chunkPVB5UYJTcjs.exactIdPattern.call(void 0, _module.builtinModules)
|
|
1377
1378
|
];
|
|
1378
1379
|
var FARM_SERVER_ONLY_ENTRIES_LOAD_FILTER = [
|
|
1379
|
-
|
|
1380
|
-
new RegExp(`^${
|
|
1380
|
+
_chunkPVB5UYJTcjs.exactIdPattern.call(void 0, [FARM_SERVER_ONLY_PACKAGE_ID, FARM_PLATFORM_CLIENT_ID]),
|
|
1381
|
+
new RegExp(`^${_chunkD2OU4CX2cjs.FARM_BROWSER_BUILTIN_PREFIX}`)
|
|
1381
1382
|
];
|
|
1382
1383
|
function createFarmPlatformClientModule(platform) {
|
|
1383
1384
|
return `export function platform() { return ${JSON.stringify(platform)}; }
|
|
@@ -1413,7 +1414,7 @@ function farmIslandContainersPlugin(config) {
|
|
|
1413
1414
|
// without calling into JavaScript.
|
|
1414
1415
|
filter: {
|
|
1415
1416
|
id: { include: /\.[jt]sx(?:$|\?)/, exclude: /\/node_modules\// },
|
|
1416
|
-
code:
|
|
1417
|
+
code: _chunkD2OU4CX2cjs.FARM_ISLAND_CONTAINER_TAG
|
|
1417
1418
|
},
|
|
1418
1419
|
handler(code, id) {
|
|
1419
1420
|
if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, config)) !== "islands") {
|
|
@@ -1422,20 +1423,20 @@ function farmIslandContainersPlugin(config) {
|
|
|
1422
1423
|
if (id.startsWith("\0") || id.includes("/node_modules/") || !/\.[jt]sx(?:$|\?)/.test(id)) {
|
|
1423
1424
|
return null;
|
|
1424
1425
|
}
|
|
1425
|
-
if (
|
|
1426
|
-
if (!
|
|
1426
|
+
if (_chunkD2OU4CX2cjs.hasUseClientDirective.call(void 0, code)) return null;
|
|
1427
|
+
if (!_chunkD2OU4CX2cjs.FARM_ISLAND_CONTAINER_TAG.test(code)) return null;
|
|
1427
1428
|
const file = id.split("?", 1)[0];
|
|
1428
|
-
const inspect = () =>
|
|
1429
|
+
const inspect = () => _chunkD2OU4CX2cjs.getFarmClientRenderingBindings.call(void 0, code, file, root);
|
|
1429
1430
|
const bindings = farmApi ? farmApi.inspectPackages(inspect) : inspect();
|
|
1430
1431
|
if (bindings.length === 0) return null;
|
|
1431
|
-
const grown =
|
|
1432
|
+
const grown = _chunkD2OU4CX2cjs.wrapFarmIslandContainers.call(void 0, {
|
|
1432
1433
|
code,
|
|
1433
1434
|
file,
|
|
1434
1435
|
bindings,
|
|
1435
|
-
reference:
|
|
1436
|
+
reference: _chunkD2OU4CX2cjs.farmIslandContainerReferencePath.call(void 0, root)
|
|
1436
1437
|
});
|
|
1437
1438
|
if (grown === null) return null;
|
|
1438
|
-
|
|
1439
|
+
_chunkD2OU4CX2cjs.ensureFarmIslandContainerReference.call(void 0, root);
|
|
1439
1440
|
return { code: grown, map: null };
|
|
1440
1441
|
}
|
|
1441
1442
|
}
|
|
@@ -1450,18 +1451,18 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1450
1451
|
config(config) {
|
|
1451
1452
|
const appRoot = path6.resolve(_nullishCoalesce(config.root, () => ( process.cwd())));
|
|
1452
1453
|
if (options.distDir) {
|
|
1453
|
-
|
|
1454
|
+
_chunkD2OU4CX2cjs.usePackageScanCacheFile.call(void 0,
|
|
1454
1455
|
path6.resolve(appRoot, options.distDir, "cache", "package-scans.json")
|
|
1455
1456
|
);
|
|
1456
1457
|
}
|
|
1457
|
-
const bundledPackages =
|
|
1458
|
+
const bundledPackages = _chunkD2OU4CX2cjs.collectFarmServerBundledPackageInfo.call(void 0, appRoot);
|
|
1458
1459
|
const prebundle = options.prebundleServerPackages ? createFarmServerPrebundleConfig(bundledPackages) : {};
|
|
1459
|
-
|
|
1460
|
+
_chunkD2OU4CX2cjs.persistPackageScanCache.call(void 0, );
|
|
1460
1461
|
return {
|
|
1461
1462
|
optimizeDeps: {
|
|
1462
1463
|
// A package that defines fonts is served unbundled, so Farm's font compiler sees it.
|
|
1463
1464
|
exclude: bundledPackages.filter(({ fonts }) => fonts).map(({ name }) => name),
|
|
1464
|
-
rolldownOptions: { plugins: [
|
|
1465
|
+
rolldownOptions: { plugins: [_chunkD2OU4CX2cjs.farmBrowserBuiltinsOptimizerPlugin.call(void 0, )] }
|
|
1465
1466
|
},
|
|
1466
1467
|
ssr: {
|
|
1467
1468
|
noExternal: [
|
|
@@ -1487,8 +1488,8 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1487
1488
|
return FARM_SERVER_ONLY_PACKAGE_ID;
|
|
1488
1489
|
}
|
|
1489
1490
|
this.error(
|
|
1490
|
-
|
|
1491
|
-
|
|
1491
|
+
_chunkD2OU4CX2cjs.formatFarmDiagnostic.call(void 0,
|
|
1492
|
+
_chunkD2OU4CX2cjs.createFarmDiagnostic.call(void 0,
|
|
1492
1493
|
"CLIENT_SERVER_ONLY_IMPORT",
|
|
1493
1494
|
_nullishCoalesce(importer, () => ( "<unknown module>")),
|
|
1494
1495
|
`${importer ? "This module" : "A module"} imports "server-only", so it must not reach the browser, but client code imports it.`
|
|
@@ -1498,9 +1499,9 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1498
1499
|
);
|
|
1499
1500
|
}
|
|
1500
1501
|
if (!_optionalChain([options2, 'optionalAccess', _77 => _77.ssr]) && _module.isBuiltin.call(void 0, id)) {
|
|
1501
|
-
return
|
|
1502
|
+
return _chunkD2OU4CX2cjs.resolveFarmBrowserBuiltin.call(void 0, this, id, importer, options2);
|
|
1502
1503
|
}
|
|
1503
|
-
const resolveFrom = importer ?
|
|
1504
|
+
const resolveFrom = importer ? _chunkD2OU4CX2cjs.parseFarmResolveFrom.call(void 0, id, importer.split("?", 1)[0]) : null;
|
|
1504
1505
|
if (resolveFrom) {
|
|
1505
1506
|
const directory = path6.dirname(resolveFrom.importer);
|
|
1506
1507
|
return this.resolve(resolveFrom.specifier, resolveFrom.importer, {
|
|
@@ -1517,8 +1518,8 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1517
1518
|
const importedBy = importer ? ` (imported by ${importer})` : "";
|
|
1518
1519
|
if (!_optionalChain([options2, 'optionalAccess', _78 => _78.ssr])) {
|
|
1519
1520
|
this.error(
|
|
1520
|
-
|
|
1521
|
-
|
|
1521
|
+
_chunkD2OU4CX2cjs.formatFarmDiagnostic.call(void 0,
|
|
1522
|
+
_chunkD2OU4CX2cjs.createFarmDiagnostic.call(void 0,
|
|
1522
1523
|
"CLIENT_SERVER_ONLY_ENTRY",
|
|
1523
1524
|
_nullishCoalesce(importer, () => ( id)),
|
|
1524
1525
|
`${id} is server-only and cannot be imported into client code.`
|
|
@@ -1543,7 +1544,7 @@ function farmServerOnlyEntriesPlugin(options = {}) {
|
|
|
1543
1544
|
if (id === FARM_PLATFORM_CLIENT_ID) {
|
|
1544
1545
|
return createFarmPlatformClientModule(_nullishCoalesce(options.platform, () => ( _chunkYQXLBYY2cjs.resolveFarmPlatform.call(void 0, ))));
|
|
1545
1546
|
}
|
|
1546
|
-
return _nullishCoalesce(
|
|
1547
|
+
return _nullishCoalesce(_chunkD2OU4CX2cjs.loadFarmBrowserBuiltin.call(void 0, id), () => ( null));
|
|
1547
1548
|
}
|
|
1548
1549
|
}
|
|
1549
1550
|
};
|
|
@@ -2047,7 +2048,9 @@ function isResolvedEnvScope(value) {
|
|
|
2047
2048
|
);
|
|
2048
2049
|
}
|
|
2049
2050
|
function isPotentialProgrammaticRouteSourceFile(normalizedFile, srcDirSlug) {
|
|
2050
|
-
return normalizedFile.startsWith(`${srcDirSlug}/`) && /\.(ts|tsx|js|jsx)$/.test(normalizedFile) &&
|
|
2051
|
+
return normalizedFile.startsWith(`${srcDirSlug}/`) && /\.(ts|tsx|js|jsx)$/.test(normalizedFile) && // A declaration file, including TypeScript's `.d.<ext>.ts` form such as a
|
|
2052
|
+
// Polyroute `route.d.rs.ts`, has no runtime code to register a route.
|
|
2053
|
+
!/\.d(\.[^./]+)?\.ts$/.test(normalizedFile) && !normalizedFile.endsWith("/farm-routes.d.ts") && !normalizedFile.endsWith("/farm-env.d.ts") && !normalizedFile.endsWith("/lib/api.generated.ts");
|
|
2051
2054
|
}
|
|
2052
2055
|
function fileContainsProgrammaticPageRoute(file) {
|
|
2053
2056
|
if (!fs2.existsSync(file)) {
|
|
@@ -2157,7 +2160,7 @@ function transformIsolatedClientBoundaryModule(options) {
|
|
|
2157
2160
|
return null;
|
|
2158
2161
|
}
|
|
2159
2162
|
const body = Array.isArray(ast.body) ? ast.body : [];
|
|
2160
|
-
const everyExportIsComponent = options.code.includes(
|
|
2163
|
+
const everyExportIsComponent = options.code.includes(_chunkD2OU4CX2cjs.FARM_CLIENT_REFERENCE_PRAGMA) || options.moduleReference.includes(_chunkD2OU4CX2cjs.FARM_CLIENT_REFERENCE_DIRECTORY);
|
|
2161
2164
|
const replacements = [];
|
|
2162
2165
|
const wrapperStatements = [];
|
|
2163
2166
|
const originalEntries = [];
|
|
@@ -2312,16 +2315,16 @@ async function warnClientBoundaryOnce(context, id, code, config) {
|
|
|
2312
2315
|
for (const finding of analyzeClientBoundary(program, publicKeys)) {
|
|
2313
2316
|
if (finding.kind === "builtin" && !finding.name.startsWith("node:")) {
|
|
2314
2317
|
const resolved = await context.resolve(finding.name, id).catch(() => null);
|
|
2315
|
-
if (!_optionalChain([resolved, 'optionalAccess', _105 => _105.id, 'access', _106 => _106.startsWith, 'call', _107 => _107(
|
|
2318
|
+
if (!_optionalChain([resolved, 'optionalAccess', _105 => _105.id, 'access', _106 => _106.startsWith, 'call', _107 => _107(_chunkD2OU4CX2cjs.FARM_BROWSER_BUILTIN_PREFIX)])) continue;
|
|
2316
2319
|
}
|
|
2317
2320
|
findings.push(finding);
|
|
2318
2321
|
}
|
|
2319
2322
|
if (findings.length === 0) return;
|
|
2320
2323
|
warnedClientBoundaryIds.add(id);
|
|
2321
|
-
const locate =
|
|
2324
|
+
const locate = _chunkD2OU4CX2cjs.createFarmSourceLocator.call(void 0, code, () => context.getCombinedSourcemap());
|
|
2322
2325
|
_chunk7ZDLE77Pcjs.logger.warn(
|
|
2323
2326
|
findings.map(
|
|
2324
|
-
(finding) =>
|
|
2327
|
+
(finding) => _chunkD2OU4CX2cjs.formatFarmDiagnostic.call(void 0,
|
|
2325
2328
|
createClientBoundaryDiagnostic(id, finding, locate(finding.start)),
|
|
2326
2329
|
config.root
|
|
2327
2330
|
)
|
|
@@ -2387,12 +2390,12 @@ function hasFarmSourceAliasOverride(alias) {
|
|
|
2387
2390
|
function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
2388
2391
|
const rendererDisabled = _chunkLEZJZX4Ccjs.isFarmRendererDisabled.call(void 0, options.renderer);
|
|
2389
2392
|
const imageImports = farmImageImportsPlugin();
|
|
2390
|
-
const fontImports =
|
|
2393
|
+
const fontImports = _chunkPVB5UYJTcjs.farmFontImportsPlugin.call(void 0, {
|
|
2391
2394
|
root: options.root,
|
|
2392
2395
|
basePath: options.basePath,
|
|
2393
2396
|
publicDir: options.publicDir,
|
|
2394
2397
|
// A production build never starts the app, so it reads the directories from these options.
|
|
2395
|
-
isLayoutModule: (id) =>
|
|
2398
|
+
isLayoutModule: (id) => _chunkPVB5UYJTcjs.isFarmLayoutModule.call(void 0, id, _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _110 => _110.getConfig, 'call', _111 => _111()]), () => ( options))))
|
|
2396
2399
|
});
|
|
2397
2400
|
let farmApp;
|
|
2398
2401
|
const isFarmGeneratedOutput = (file) => {
|
|
@@ -2423,8 +2426,8 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2423
2426
|
if (mdxComponents) files.add(mdxComponents);
|
|
2424
2427
|
return files;
|
|
2425
2428
|
};
|
|
2426
|
-
const islxActionsMode = () =>
|
|
2427
|
-
const islandsServerFns = () =>
|
|
2429
|
+
const islxActionsMode = () => _chunkPVB5UYJTcjs.resolveFarmIslxActionsMode.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _117 => _117.getConfig, 'call', _118 => _118()]), () => ( options)));
|
|
2430
|
+
const islandsServerFns = () => _chunkPVB5UYJTcjs.farmBrowserServerFnsEnabled.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _119 => _119.getConfig, 'call', _120 => _120()]), () => ( options)));
|
|
2428
2431
|
let reactRefreshActive = false;
|
|
2429
2432
|
let server;
|
|
2430
2433
|
let deferredGates;
|
|
@@ -2454,7 +2457,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2454
2457
|
console.log(log);
|
|
2455
2458
|
};
|
|
2456
2459
|
const getProgrammaticClientRoutes = () => _nullishCoalesce(options.programmaticClientRoutes, () => ( _optionalChain([farmApp, 'optionalAccess', _121 => _121.getRouteManager, 'call', _122 => _122(), 'access', _123 => _123.getProgrammaticClientRoutes, 'call', _124 => _124()])));
|
|
2457
|
-
const inBuildPackageCache =
|
|
2460
|
+
const inBuildPackageCache = _chunkD2OU4CX2cjs.bindPackageClientBoundaryCache.call(void 0, );
|
|
2458
2461
|
const inspectPackages = (operation) => {
|
|
2459
2462
|
const routeManager = _optionalChain([farmApp, 'optionalAccess', _125 => _125.getRouteManager, 'call', _126 => _126()]);
|
|
2460
2463
|
return inBuildPackageCache(
|
|
@@ -2477,11 +2480,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2477
2480
|
isBuild = configEnv.command === "build";
|
|
2478
2481
|
const farmAliases = {
|
|
2479
2482
|
..._chunkPFVNPOKNcjs.getFarmLayerAliases.call(void 0, options.layers),
|
|
2480
|
-
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _132 => _132.resolve, 'optionalAccess', _133 => _133.alias])) ? {} :
|
|
2483
|
+
...hasFarmSourceAliasOverride(_optionalChain([userConfig, 'access', _132 => _132.resolve, 'optionalAccess', _133 => _133.alias])) ? {} : _chunkPVB5UYJTcjs.createFarmSourceAlias.call(void 0, options.root || process.cwd(), options.srcDir)
|
|
2481
2484
|
};
|
|
2482
2485
|
if (Object.keys(farmAliases).length > 0) {
|
|
2483
2486
|
_nullishCoalesce(userConfig.resolve, () => ( (userConfig.resolve = {})));
|
|
2484
|
-
userConfig.resolve.alias =
|
|
2487
|
+
userConfig.resolve.alias = _chunkPVB5UYJTcjs.mergeFarmViteAlias.call(void 0, farmAliases, userConfig.resolve.alias);
|
|
2485
2488
|
}
|
|
2486
2489
|
const layerRoots = (_nullishCoalesce(options.layers, () => ( []))).map((layer) => layer.root);
|
|
2487
2490
|
farmOwnsDevCors = !isBuild && _optionalChain([userConfig, 'access', _134 => _134.server, 'optionalAccess', _135 => _135.cors]) === void 0;
|
|
@@ -2555,7 +2558,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2555
2558
|
} catch (e21) {
|
|
2556
2559
|
}
|
|
2557
2560
|
};
|
|
2558
|
-
farmApp = new (0,
|
|
2561
|
+
farmApp = new (0, _chunkPVB5UYJTcjs.FarmApp)(
|
|
2559
2562
|
{
|
|
2560
2563
|
...options,
|
|
2561
2564
|
root: resolveDevelopmentRoot(options.root, server.config.root)
|
|
@@ -2563,7 +2566,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2563
2566
|
server
|
|
2564
2567
|
);
|
|
2565
2568
|
farmApp.getRouteManager().usePackageClientBoundaryCacheFile(
|
|
2566
|
-
|
|
2569
|
+
_chunkD2OU4CX2cjs.resolvePackageClientBoundaryCacheFile.call(void 0,
|
|
2567
2570
|
farmApp.getConfig().root,
|
|
2568
2571
|
options.distDir || ".farm"
|
|
2569
2572
|
)
|
|
@@ -2574,7 +2577,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2574
2577
|
let farmAppPackages;
|
|
2575
2578
|
if (_optionalChain([farmConfig, 'access', _157 => _157.agent, 'optionalAccess', _158 => _158.noindexPreviews])) {
|
|
2576
2579
|
farmMiddlewares.use((_req, res, next) => {
|
|
2577
|
-
if (
|
|
2580
|
+
if (_chunkHENYWY5Jcjs.isFarmPreviewDeploymentEnvironment.call(void 0, process.env)) {
|
|
2578
2581
|
res.setHeader("X-Robots-Tag", _chunkERSLQ4C7cjs.FARM_PREVIEW_ROBOTS_TAG);
|
|
2579
2582
|
}
|
|
2580
2583
|
next();
|
|
@@ -2582,7 +2585,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2582
2585
|
}
|
|
2583
2586
|
const apiServerBasePath = _chunkH5AC3XSEcjs.resolveFarmAPIServerBasePath.call(void 0, farmConfig.api);
|
|
2584
2587
|
const devBuiltInRoutePaths = new Set(
|
|
2585
|
-
|
|
2588
|
+
_chunkMR64FNW6cjs.listFarmBuiltInRoutePaths.call(void 0, {
|
|
2586
2589
|
agent: {
|
|
2587
2590
|
apiCatalog: true,
|
|
2588
2591
|
mcp: true,
|
|
@@ -2630,9 +2633,10 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2630
2633
|
const appDirSlugs = sourceRoots.map(
|
|
2631
2634
|
(source) => path6.join(source.root, source.srcDir, "app").replace(/\\/g, "/")
|
|
2632
2635
|
);
|
|
2636
|
+
const polyroute = _chunkYCGOQKVCcjs.hasPolyroutePlugin.call(void 0, server.config.plugins);
|
|
2633
2637
|
const generateTypeArtifacts = async (reason, selection = ALL_TYPE_ARTIFACTS, log = false) => {
|
|
2634
2638
|
try {
|
|
2635
|
-
const result = await
|
|
2639
|
+
const result = await _chunkGL4SPJTEcjs.generateFarmTypeArtifacts.call(void 0, {
|
|
2636
2640
|
root: farmConfig.root,
|
|
2637
2641
|
srcDir: farmConfig.srcDir,
|
|
2638
2642
|
layers: farmConfig.layers,
|
|
@@ -2643,6 +2647,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2643
2647
|
componentExtensions: farmConfig.renderer.componentExtensions,
|
|
2644
2648
|
renderer: farmConfig.renderer,
|
|
2645
2649
|
i18nConfig: farmConfig.i18n,
|
|
2650
|
+
polyroute,
|
|
2646
2651
|
...selection
|
|
2647
2652
|
});
|
|
2648
2653
|
if (log) {
|
|
@@ -2686,10 +2691,13 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2686
2691
|
const match = /\/(?:page|layout|loading|error)(\.[^./]+)$/.exec(normalized);
|
|
2687
2692
|
return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/`)) && !!match && routeModuleExtensions.has(match[1].toLowerCase());
|
|
2688
2693
|
};
|
|
2689
|
-
const polyroute = _chunkMNBFSAWFcjs.hasPolyroutePlugin.call(void 0, server.config.plugins);
|
|
2690
2694
|
const isApiRouteFile = (file) => {
|
|
2691
2695
|
const normalized = file.replace(/\\/g, "/");
|
|
2692
|
-
return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/api/`)) &&
|
|
2696
|
+
return appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/api/`)) && _chunkYCGOQKVCcjs.isFarmAPIRouteFileName.call(void 0, path6.posix.basename(normalized), polyroute);
|
|
2697
|
+
};
|
|
2698
|
+
const isApiRouteDeclarationFile = (file) => {
|
|
2699
|
+
const normalized = file.replace(/\\/g, "/");
|
|
2700
|
+
return polyroute && appDirSlugs.some((appDir) => normalized.startsWith(`${appDir}/api/`)) && _chunkYCGOQKVCcjs.isPolyrouteRouteDeclarationFileName.call(void 0, path6.posix.basename(normalized));
|
|
2693
2701
|
};
|
|
2694
2702
|
const isProgrammaticRouteFile = (file) => {
|
|
2695
2703
|
const normalized = file.replace(/\\/g, "/");
|
|
@@ -2740,7 +2748,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2740
2748
|
const programmaticRouteChanged = isProgrammaticRouteFile(file) || isProgrammaticRouteSourceFile(file) && (ev === "unlink" || fileContainsProgrammaticPageRoute(file));
|
|
2741
2749
|
const typeArtifacts = configChanged ? ALL_TYPE_ARTIFACTS : {
|
|
2742
2750
|
routes: ev !== "change" && (isRouteModuleFile(file) || isRendererRouteFile(file)) || programmaticRouteChanged,
|
|
2743
|
-
api: isApiRouteFile(file) || programmaticRouteChanged,
|
|
2751
|
+
api: isApiRouteFile(file) || isApiRouteDeclarationFile(file) || programmaticRouteChanged,
|
|
2744
2752
|
env: false,
|
|
2745
2753
|
images: false,
|
|
2746
2754
|
i18n: isI18nCatalogFile(file)
|
|
@@ -2818,7 +2826,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2818
2826
|
}
|
|
2819
2827
|
})]);
|
|
2820
2828
|
}
|
|
2821
|
-
apiRouteManager = new (0,
|
|
2829
|
+
apiRouteManager = new (0, _chunkD2VLHRBNcjs.APIRouteManager)(appDirs, server, {
|
|
2822
2830
|
plugins: farmConfig.plugins,
|
|
2823
2831
|
i18n: farmApp.getI18nRuntime(),
|
|
2824
2832
|
bodySizeLimit: serverConfig.bodySizeLimit,
|
|
@@ -2934,7 +2942,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2934
2942
|
rendererServer: farmConfig.renderer.server,
|
|
2935
2943
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2936
2944
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2937
|
-
globalStylesheetHref:
|
|
2945
|
+
globalStylesheetHref: _chunkPVB5UYJTcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2938
2946
|
farmConfig.root,
|
|
2939
2947
|
farmConfig.srcDir
|
|
2940
2948
|
),
|
|
@@ -2965,7 +2973,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
2965
2973
|
fontAssets: _chunkQTGYT2DFcjs.toFarmDocsPublicFontAssets.call(void 0, farmDocsFontAssetList),
|
|
2966
2974
|
resolveLayoutFonts: resolveDocsLayoutFonts,
|
|
2967
2975
|
fontStylesheetHref: "/@farm/fonts.css",
|
|
2968
|
-
globalStylesheetHref:
|
|
2976
|
+
globalStylesheetHref: _chunkPVB5UYJTcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
2969
2977
|
farmConfig.root,
|
|
2970
2978
|
farmConfig.srcDir
|
|
2971
2979
|
),
|
|
@@ -3002,9 +3010,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3002
3010
|
}
|
|
3003
3011
|
const farmInfraAnalyticsPlugin = _optionalChain([pm, 'optionalAccess', _200 => _200.getPlugins, 'call', _201 => _201(), 'access', _202 => _202.find, 'call', _203 => _203((plugin2) => plugin2.name === "farm:infra-analytics")]);
|
|
3004
3012
|
if (farmInfraAnalyticsPlugin) {
|
|
3005
|
-
|
|
3013
|
+
_chunkV6ACETKRcjs._setFarmInfraAnalyticsWebMCPRoute.call(void 0, farmInfraAnalyticsPlugin, async (pathname) => {
|
|
3006
3014
|
if (farmDocsDevRuntime) {
|
|
3007
|
-
const label =
|
|
3015
|
+
const label = _chunkMR64FNW6cjs.resolveFarmDocsRouteLabel.call(void 0,
|
|
3008
3016
|
_chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, pathname, farmConfig.basePath),
|
|
3009
3017
|
{
|
|
3010
3018
|
path: _optionalChain([farmConfig, 'access', _204 => _204.docs, 'optionalAccess', _205 => _205.entry]) || "/docs",
|
|
@@ -3012,7 +3020,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3012
3020
|
pages: await getFarmDocsPagePaths()
|
|
3013
3021
|
}
|
|
3014
3022
|
);
|
|
3015
|
-
if (label) return
|
|
3023
|
+
if (label) return _chunkMR64FNW6cjs.setFarmRouteLabel.call(void 0, { pathname }, label);
|
|
3016
3024
|
}
|
|
3017
3025
|
const match = farmApp.getRouteManager().matchRoute(pathname);
|
|
3018
3026
|
return { pathname, pattern: _optionalChain([match, 'access', _210 => _210.route, 'optionalAccess', _211 => _211.pattern]) || null };
|
|
@@ -3176,7 +3184,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3176
3184
|
if (!rendererDisabled && (requestMethod === "GET" || requestMethod === "HEAD") && requestPathname === _chunkO7B6LJWEcjs.FARM_VIDEO_PLAYER_PATH) {
|
|
3177
3185
|
res.statusCode = 200;
|
|
3178
3186
|
res.setHeader("Content-Type", "text/html; charset=utf-8");
|
|
3179
|
-
res.end(requestMethod === "HEAD" ? void 0 :
|
|
3187
|
+
res.end(requestMethod === "HEAD" ? void 0 : _chunkPVB5UYJTcjs.FARM_VIDEO_PLAYER_HTML);
|
|
3180
3188
|
return;
|
|
3181
3189
|
}
|
|
3182
3190
|
const farmDocsFontPath = farmDocsFontAssets.get(requestPathname);
|
|
@@ -3456,9 +3464,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3456
3464
|
if (pm && opensFarmDevRuntimeSession(pm)) {
|
|
3457
3465
|
try {
|
|
3458
3466
|
const routePathname = _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath);
|
|
3459
|
-
const route =
|
|
3467
|
+
const route = _chunkMR64FNW6cjs.setFarmRouteLabel.call(void 0,
|
|
3460
3468
|
{ pathname: requestPathname },
|
|
3461
|
-
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname :
|
|
3469
|
+
label !== void 0 ? label : devBuiltInRoutePaths.has(routePathname) ? routePathname : _chunkMR64FNW6cjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath)
|
|
3462
3470
|
);
|
|
3463
3471
|
runtimeSession2 = await pm.beginRuntimeRequest(
|
|
3464
3472
|
createRequestFromNodeRequest(req, new URL(fullUrl)),
|
|
@@ -3547,7 +3555,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3547
3555
|
);
|
|
3548
3556
|
return;
|
|
3549
3557
|
}
|
|
3550
|
-
if (_optionalChain([options, 'access', _246 => _246.agent, 'optionalAccess', _247 => _247.manifest]) !== false &&
|
|
3558
|
+
if (_optionalChain([options, 'access', _246 => _246.agent, 'optionalAccess', _247 => _247.manifest]) !== false && _chunkMR64FNW6cjs.isFarmAppManifestPath.call(void 0, _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath))) {
|
|
3551
3559
|
const manifestGuardCoversPath = (path7) => _chunkIGBQSUT5cjs.farmPathGuardCoversEndpoint.call(void 0,
|
|
3552
3560
|
{
|
|
3553
3561
|
config: farmConfig,
|
|
@@ -3557,18 +3565,18 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3557
3565
|
apiServerBasePath
|
|
3558
3566
|
);
|
|
3559
3567
|
await serveBuiltInRoute(async () => {
|
|
3560
|
-
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages =
|
|
3561
|
-
const manifest = await
|
|
3568
|
+
_nullishCoalesce(farmAppPackages, () => ( (farmAppPackages = _chunkPVB5UYJTcjs.resolveFarmAppPackages.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd()))))));
|
|
3569
|
+
const manifest = await _chunkMR64FNW6cjs.createFarmAppManifestResponse.call(void 0,
|
|
3562
3570
|
new Request(parsedRequestUrl, {
|
|
3563
3571
|
method: requestMethod,
|
|
3564
3572
|
headers: { "if-none-match": String(_nullishCoalesce(req.headers["if-none-match"], () => ( ""))) }
|
|
3565
3573
|
}),
|
|
3566
3574
|
{
|
|
3567
|
-
...
|
|
3575
|
+
..._chunkMR64FNW6cjs.resolveFarmAppManifestInput.call(void 0, farmConfig, {
|
|
3568
3576
|
build: "development",
|
|
3569
3577
|
packages: farmAppPackages,
|
|
3570
3578
|
// Read again on each request; unchanged files come from a cache.
|
|
3571
|
-
webmcpTools: _optionalChain([farmConfig, 'access', _248 => _248.plugins, 'optionalAccess', _249 => _249.some, 'call', _250 => _250(({ name }) => name === "farm:webmcp")]) ?
|
|
3579
|
+
webmcpTools: _optionalChain([farmConfig, 'access', _248 => _248.plugins, 'optionalAccess', _249 => _249.some, 'call', _250 => _250(({ name }) => name === "farm:webmcp")]) ? _chunkPVB5UYJTcjs.collectFarmWebMCPTools.call(void 0, _nullishCoalesce(farmConfig.root, () => ( process.cwd())), farmConfig.srcDir) : []
|
|
3572
3580
|
}),
|
|
3573
3581
|
defaultMCP: () => farmApp.getServerRenderer().getDefaultMCPServer(),
|
|
3574
3582
|
// A guard written for an MCP server's path keeps its tools out of the public view.
|
|
@@ -3586,11 +3594,11 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3586
3594
|
});
|
|
3587
3595
|
return;
|
|
3588
3596
|
}
|
|
3589
|
-
if (_optionalChain([options, 'access', _251 => _251.agent, 'optionalAccess', _252 => _252.apiCatalog]) && _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) ===
|
|
3597
|
+
if (_optionalChain([options, 'access', _251 => _251.agent, 'optionalAccess', _252 => _252.apiCatalog]) && _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath) === _chunkMR64FNW6cjs.FARM_API_CATALOG_PATH) {
|
|
3590
3598
|
await serveBuiltInRoute(
|
|
3591
|
-
() =>
|
|
3599
|
+
() => _chunkMR64FNW6cjs.createFarmApiCatalogResponse.call(void 0,
|
|
3592
3600
|
requestMethod,
|
|
3593
|
-
|
|
3601
|
+
_chunkMR64FNW6cjs.resolveFarmApiCatalogInput.call(void 0, { ...options, api: farmConfig.api }),
|
|
3594
3602
|
new Request(parsedRequestUrl, {
|
|
3595
3603
|
headers: { "user-agent": String(_nullishCoalesce(req.headers["user-agent"], () => ( ""))) }
|
|
3596
3604
|
})
|
|
@@ -3599,7 +3607,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3599
3607
|
return;
|
|
3600
3608
|
}
|
|
3601
3609
|
if (_optionalChain([options, 'access', _253 => _253.agent, 'optionalAccess', _254 => _254.aiCatalog]) !== false) {
|
|
3602
|
-
const aiCatalog =
|
|
3610
|
+
const aiCatalog = _chunkMR64FNW6cjs.createFarmAiCatalogResponse.call(void 0,
|
|
3603
3611
|
new Request(parsedRequestUrl, {
|
|
3604
3612
|
method: requestMethod,
|
|
3605
3613
|
headers: {
|
|
@@ -3686,7 +3694,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3686
3694
|
{
|
|
3687
3695
|
kind: "docs",
|
|
3688
3696
|
computed: docsResponse,
|
|
3689
|
-
label:
|
|
3697
|
+
label: _chunkMR64FNW6cjs.resolveFarmDocsEngineRouteLabel.call(void 0,
|
|
3690
3698
|
_chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, requestPathname, farmConfig.basePath),
|
|
3691
3699
|
{
|
|
3692
3700
|
path: _optionalChain([farmConfig, 'access', _265 => _265.docs, 'optionalAccess', _266 => _266.entry]) || "/docs",
|
|
@@ -3723,7 +3731,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3723
3731
|
}
|
|
3724
3732
|
const markdownRouteLabel = () => (
|
|
3725
3733
|
// On the route path, as production labels it: /fr/index.md is /index.md.
|
|
3726
|
-
|
|
3734
|
+
_chunkMR64FNW6cjs.resolveFarmMarkdownRouteLabel.call(void 0,
|
|
3727
3735
|
toRoutePathname(requestPathname),
|
|
3728
3736
|
(page) => _optionalChain([farmApp, 'access', _281 => _281.getRouteManager, 'call', _282 => _282(), 'access', _283 => _283.matchRoute, 'call', _284 => _284(page), 'access', _285 => _285.route, 'optionalAccess', _286 => _286.pattern])
|
|
3729
3737
|
)
|
|
@@ -3744,7 +3752,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
3744
3752
|
return {
|
|
3745
3753
|
source: await fs2.promises.readFile(sourcePath, "utf8"),
|
|
3746
3754
|
// Project-relative, as production sends it: never the machine's path.
|
|
3747
|
-
filePath:
|
|
3755
|
+
filePath: _chunkPVB5UYJTcjs.toBakedMarkdownSourcePath.call(void 0, farmApp.getConfig().root, sourcePath)
|
|
3748
3756
|
};
|
|
3749
3757
|
},
|
|
3750
3758
|
// The anonymous check goes through this server, so its guards and
|
|
@@ -4087,9 +4095,9 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4087
4095
|
);
|
|
4088
4096
|
const docsRuntimeOptions = () => ({
|
|
4089
4097
|
kind: "docs",
|
|
4090
|
-
route:
|
|
4098
|
+
route: _chunkMR64FNW6cjs.setFarmRouteLabel.call(void 0,
|
|
4091
4099
|
{ pathname: pathname2, pattern: urlPath2 },
|
|
4092
|
-
|
|
4100
|
+
_chunkMR64FNW6cjs.resolveFarmDocsRouteLabel.call(void 0, pathname2, {
|
|
4093
4101
|
path: _optionalChain([farmConfig, 'access', _298 => _298.docs, 'optionalAccess', _299 => _299.entry]) || "/docs",
|
|
4094
4102
|
roots: _optionalChain([farmConfig, 'access', _300 => _300.docs, 'optionalAccess', _301 => _301.roots, 'optionalAccess', _302 => _302.map, 'call', _303 => _303((root) => root.entry)])
|
|
4095
4103
|
})
|
|
@@ -4443,7 +4451,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4443
4451
|
);
|
|
4444
4452
|
const loadingModule = loadingBoundary ? await routeManager3.loadRouteModule(loadingBoundary.modulePath) : null;
|
|
4445
4453
|
const navigationManifest = routeManager3.generateClientManifest(server.config.root);
|
|
4446
|
-
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => (
|
|
4454
|
+
const moduleMetadata = _nullishCoalesce(navigationManifest.routes.find((entry) => entry.pattern === route.pattern), () => ( _chunkD2OU4CX2cjs.getClientModuleMetadata.call(void 0, route.modulePath, server.config.root)));
|
|
4447
4455
|
const isClientComponent = moduleMetadata.isClientComponent;
|
|
4448
4456
|
const shouldHydrate = moduleMetadata.shouldHydrate;
|
|
4449
4457
|
let mergedMetadata = {};
|
|
@@ -4454,7 +4462,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4454
4462
|
(layout) => _nullishCoalesce(navigationManifest.layouts.find(
|
|
4455
4463
|
(entry) => entry.pattern === layout.pattern
|
|
4456
4464
|
), () => ( {
|
|
4457
|
-
...
|
|
4465
|
+
..._chunkD2OU4CX2cjs.getClientModuleMetadata.call(void 0, layout.modulePath, server.config.root),
|
|
4458
4466
|
serverTree: false
|
|
4459
4467
|
}))
|
|
4460
4468
|
);
|
|
@@ -4469,7 +4477,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4469
4477
|
];
|
|
4470
4478
|
const hydrationIslandStrategy = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0,
|
|
4471
4479
|
_chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _326 => _326.getConfig, 'call', _327 => _327()]), () => ( options)))
|
|
4472
|
-
) === "islands" ?
|
|
4480
|
+
) === "islands" ? _chunkPVB5UYJTcjs.resolveFarmRouteRootStrategy.call(void 0,
|
|
4473
4481
|
route,
|
|
4474
4482
|
{ shouldHydrate, islandStrategy: _nullishCoalesce(moduleMetadata.islandStrategy, () => ( null)) },
|
|
4475
4483
|
layouts.map((layout, index) => ({
|
|
@@ -4535,7 +4543,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4535
4543
|
const slotModule = await routeManager3.loadRouteModule(slot.route.modulePath);
|
|
4536
4544
|
const slotMetadata = _nullishCoalesce(navigationManifest.slots.find(
|
|
4537
4545
|
(entry) => entry.name === slot.name && entry.ownerPattern === slot.ownerPattern && entry.pattern === slot.route.pattern
|
|
4538
|
-
), () => (
|
|
4546
|
+
), () => ( _chunkD2OU4CX2cjs.getClientModuleMetadata.call(void 0, slot.route.modulePath, server.config.root)));
|
|
4539
4547
|
const slotContext = await _chunkYZMSJRM5cjs.resolveFarmRouteContext.call(void 0, farmApp.getConfig(), {
|
|
4540
4548
|
request: targetRequest,
|
|
4541
4549
|
params: slot.params,
|
|
@@ -4585,7 +4593,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4585
4593
|
pageShouldHydrate: shouldHydrate,
|
|
4586
4594
|
layoutShouldHydrate: shouldHydrateLayout,
|
|
4587
4595
|
islandStrategy: hydrationIslandStrategy,
|
|
4588
|
-
rendering:
|
|
4596
|
+
rendering: _chunkGL4SPJTEcjs.resolveRouteRenderingConfig.call(void 0, routeModule)
|
|
4589
4597
|
});
|
|
4590
4598
|
const destinationLayoutPatterns = layouts.map((layout) => layout.pattern);
|
|
4591
4599
|
const layoutStartIndex = _chunkIGBQSUT5cjs.getSharedLayoutPrefixLength.call(void 0,
|
|
@@ -4720,7 +4728,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4720
4728
|
const hasRuntimeAfterHook = _nullishCoalesce(_optionalChain([pm, 'optionalAccess', _345 => _345.hasRuntimeHook, 'call', _346 => _346("after")]), () => ( false));
|
|
4721
4729
|
const pageBuiltInRouteLabel = (pathname2) => {
|
|
4722
4730
|
const routePathname = _chunkTFCBJFP7cjs.stripFarmBasePath.call(void 0, pathname2, farmConfig.basePath);
|
|
4723
|
-
const mcpLabel =
|
|
4731
|
+
const mcpLabel = _chunkMR64FNW6cjs.resolveFarmMCPRouteLabel.call(void 0, routePathname, apiServerBasePath);
|
|
4724
4732
|
if (mcpLabel) return mcpLabel;
|
|
4725
4733
|
if (farmAgentGeneratedPaths(farmConfig).includes(routePathname)) return routePathname;
|
|
4726
4734
|
return routePathname === _chunkR6GOH5CHcjs.FARM_DEFAULT_MCP_PATH && farmApp.getServerRenderer().getDefaultMCPServer() ? _chunkR6GOH5CHcjs.FARM_DEFAULT_MCP_PATH : null;
|
|
@@ -4729,7 +4737,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4729
4737
|
const match = routeManager2.matchRoute(pathname2);
|
|
4730
4738
|
return {
|
|
4731
4739
|
kind: "page",
|
|
4732
|
-
route:
|
|
4740
|
+
route: _chunkMR64FNW6cjs.setFarmRouteLabel.call(void 0,
|
|
4733
4741
|
{
|
|
4734
4742
|
pathname: pathname2,
|
|
4735
4743
|
pattern: _optionalChain([match, 'optionalAccess', _347 => _347.route, 'optionalAccess', _348 => _348.pattern]) || null,
|
|
@@ -4993,7 +5001,7 @@ function farmPlugin(options = {}, initialPluginManager, deferredSetup) {
|
|
|
4993
5001
|
const generatedDevtoolsClientRuntime = devtoolsClientRuntime ? devtoolsClientRuntime.generateFarmDevtoolsClientRuntime(devtools) : "";
|
|
4994
5002
|
const generatedDevIndicatorsClientRuntime = farmApp ? _chunkVZ2P6GRCcjs.generateFarmDevIndicatorsClientRuntime.call(void 0, farmApp.getConfig().devIndicators) : "";
|
|
4995
5003
|
const integrationProviders = _chunkN4AM7Q34cjs.getIntegrationProviders.call(void 0, integrations);
|
|
4996
|
-
const isolatedHydrationMode =
|
|
5004
|
+
const isolatedHydrationMode = _chunkD2OU4CX2cjs.resolveFarmIsolatedClientHydrationMode.call(void 0,
|
|
4997
5005
|
_optionalChain([resolvedConfig, 'optionalAccess', _391 => _391.experimental, 'optionalAccess', _392 => _392.isolatedClientHydration]),
|
|
4998
5006
|
{
|
|
4999
5007
|
serverComponents: _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, resolvedConfig)) === "rsc",
|
|
@@ -5018,8 +5026,8 @@ ${generatedDevIndicatorsClientRuntime}`,
|
|
|
5018
5026
|
isolatedHydrationMode === "enabled" || _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) && _optionalChain([(_nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _399 => _399.getRouteManager, 'call', _400 => _400(), 'access', _401 => _401.getIsolatedClientBoundaryModules, 'call', _402 => _402(root)])))), 'optionalAccess', _403 => _403.size]) > 0,
|
|
5019
5027
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _404 => _404.trailingSlash]), () => ( false)),
|
|
5020
5028
|
_nullishCoalesce(_optionalChain([resolvedConfig, 'optionalAccess', _405 => _405.basePath]), () => ( "/")),
|
|
5021
|
-
|
|
5022
|
-
|
|
5029
|
+
_chunkPVB5UYJTcjs.generateClientCachePersistenceCode.call(void 0,
|
|
5030
|
+
_chunkPVB5UYJTcjs.resolveFarmClientCacheAdapterEntry.call(void 0, root, _optionalChain([resolvedConfig, 'optionalAccess', _406 => _406.cache]))
|
|
5023
5031
|
),
|
|
5024
5032
|
adapterOwnsDocsRuntime ? _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, docs) : void 0,
|
|
5025
5033
|
_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, resolvedConfig)) === "islands"
|
|
@@ -5041,11 +5049,11 @@ export const getManifest = () => ({
|
|
|
5041
5049
|
});
|
|
5042
5050
|
`;
|
|
5043
5051
|
}
|
|
5044
|
-
const globalStylesheetHref =
|
|
5052
|
+
const globalStylesheetHref = _chunkPVB5UYJTcjs.resolveDevGlobalStylesheetHref.call(void 0,
|
|
5045
5053
|
server.config.root,
|
|
5046
5054
|
_optionalChain([farmApp, 'optionalAccess', _409 => _409.getConfig, 'call', _410 => _410(), 'access', _411 => _411.srcDir])
|
|
5047
5055
|
);
|
|
5048
|
-
const fullManifest =
|
|
5056
|
+
const fullManifest = _chunkPVB5UYJTcjs.createFarmDevClientManifest.call(void 0,
|
|
5049
5057
|
routeManager.generateClientManifest(server.config.root),
|
|
5050
5058
|
{
|
|
5051
5059
|
sharedAssets: globalStylesheetHref ? [{ tag: "link", attrs: { rel: "stylesheet", href: globalStylesheetHref } }] : []
|
|
@@ -5067,45 +5075,45 @@ export { manifest };
|
|
|
5067
5075
|
const runtimeModule = !isBuild && _optionalChain([transformOptions, 'optionalAccess', _413 => _413.ssr]) === true && isOutsideAppRoot(id) ? toFarmRuntimeModuleId : void 0;
|
|
5068
5076
|
const actionConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _414 => _414.getConfig, 'call', _415 => _415()]), () => ( options));
|
|
5069
5077
|
let rewrotePackageImports = false;
|
|
5070
|
-
if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, actionConfig)) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _416 => _416.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !
|
|
5078
|
+
if (_chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, actionConfig)) === "islands" && (!id.includes("/node_modules/") || _optionalChain([transformOptions, 'optionalAccess', _416 => _416.ssr]) === true && farmReactServerFiles.has(id.split("?", 1)[0])) && !id.startsWith("\0") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id) && !_chunkD2OU4CX2cjs.hasUseClientDirective.call(void 0, code)) {
|
|
5071
5079
|
const file = id.split("?", 1)[0];
|
|
5072
5080
|
const projectRoot = actionConfig.root || _optionalChain([server, 'optionalAccess', _417 => _417.config, 'access', _418 => _418.root]) || process.cwd();
|
|
5073
5081
|
const buildSnapshot = isBuild ? options.sourceSnapshot : void 0;
|
|
5074
5082
|
const rewrite = () => {
|
|
5075
5083
|
if (_optionalChain([transformOptions, 'optionalAccess', _419 => _419.ssr]) === true) {
|
|
5076
5084
|
if (farmReactServerFiles.has(file)) {
|
|
5077
|
-
for (const child of
|
|
5085
|
+
for (const child of _chunkD2OU4CX2cjs.farmRelativeImportFiles.call(void 0, code, file))
|
|
5078
5086
|
farmReactServerFiles.add(child);
|
|
5079
5087
|
}
|
|
5080
|
-
const serverModule = farmReactServerFiles.has(file) || !
|
|
5088
|
+
const serverModule = farmReactServerFiles.has(file) || !_chunkD2OU4CX2cjs.getFarmClientReachableModules.call(void 0,
|
|
5081
5089
|
path6.resolve(projectRoot, actionConfig.srcDir || "src"),
|
|
5082
5090
|
projectRoot
|
|
5083
5091
|
).has(path6.resolve(file));
|
|
5084
|
-
const reactServer = !serverModule ? null :
|
|
5092
|
+
const reactServer = !serverModule ? null : _chunkD2OU4CX2cjs.rewriteFarmReactServerImports.call(void 0, {
|
|
5085
5093
|
code,
|
|
5086
5094
|
file,
|
|
5087
|
-
reference: (specifier, exportName) =>
|
|
5095
|
+
reference: (specifier, exportName) => _chunkD2OU4CX2cjs.ensureFarmPackageClientReference.call(void 0, projectRoot, specifier, exportName, file),
|
|
5088
5096
|
onServerFile: (serverFile) => farmReactServerFiles.add(serverFile)
|
|
5089
5097
|
});
|
|
5090
5098
|
if (reactServer !== null) {
|
|
5091
5099
|
code = reactServer;
|
|
5092
5100
|
rewrotePackageImports = true;
|
|
5093
5101
|
}
|
|
5094
|
-
const internal = farmReactServerFiles.has(file) ?
|
|
5102
|
+
const internal = farmReactServerFiles.has(file) ? _chunkD2OU4CX2cjs.rewriteFarmReactServerClientModuleImports.call(void 0, {
|
|
5095
5103
|
code,
|
|
5096
5104
|
file,
|
|
5097
|
-
reference: (clientFile) =>
|
|
5105
|
+
reference: (clientFile) => _chunkD2OU4CX2cjs.ensureFarmInternalClientReference.call(void 0, projectRoot, clientFile)
|
|
5098
5106
|
}) : null;
|
|
5099
5107
|
if (internal !== null) {
|
|
5100
5108
|
code = internal;
|
|
5101
5109
|
rewrotePackageImports = true;
|
|
5102
5110
|
}
|
|
5103
5111
|
}
|
|
5104
|
-
const rewritePackageImports = (source2) =>
|
|
5112
|
+
const rewritePackageImports = (source2) => _chunkD2OU4CX2cjs.rewriteFarmPackageClientImports.call(void 0, {
|
|
5105
5113
|
code: source2,
|
|
5106
5114
|
file,
|
|
5107
5115
|
root: projectRoot,
|
|
5108
|
-
isClientPackage: (specifier) =>
|
|
5116
|
+
isClientPackage: (specifier) => _chunkD2OU4CX2cjs.isFarmPackageClientBoundary.call(void 0, file, specifier, projectRoot)
|
|
5109
5117
|
});
|
|
5110
5118
|
const source = code;
|
|
5111
5119
|
const referenced = inspectPackages(() => rewritePackageImports(source));
|
|
@@ -5125,7 +5133,7 @@ export { manifest };
|
|
|
5125
5133
|
}
|
|
5126
5134
|
}
|
|
5127
5135
|
};
|
|
5128
|
-
if (buildSnapshot)
|
|
5136
|
+
if (buildSnapshot) _chunkD2OU4CX2cjs.withFarmSourceSnapshotOf.call(void 0, buildSnapshot, rewrite);
|
|
5129
5137
|
else rewrite();
|
|
5130
5138
|
}
|
|
5131
5139
|
if (islandsServerFns() && !_chunk7O3YJ6NPcjs.isFarmServerFnBoundaryId.call(void 0, id) && !id.includes("/node_modules/") && /\.[cm]?[jt]sx?(?:$|\?)/.test(id)) {
|
|
@@ -5154,8 +5162,8 @@ export { manifest };
|
|
|
5154
5162
|
}
|
|
5155
5163
|
if (!_optionalChain([transformOptions, 'optionalAccess', _426 => _426.ssr])) {
|
|
5156
5164
|
const docsConfigModule = _chunkP4ZLFUNBcjs.getFarmDocsAdapterConfigModule.call(void 0, _optionalChain([farmApp, 'optionalAccess', _427 => _427.getConfig, 'call', _428 => _428(), 'optionalAccess', _429 => _429.docs]));
|
|
5157
|
-
if (
|
|
5158
|
-
const redacted =
|
|
5165
|
+
if (_chunkPVB5UYJTcjs.isFarmDocsClientConfigModule.call(void 0, id, docsConfigModule)) {
|
|
5166
|
+
const redacted = _chunkPVB5UYJTcjs.redactFarmDocsClientConfig.call(void 0, code, id.split("?")[0]);
|
|
5159
5167
|
if (redacted !== null) return { code: redacted, map: null };
|
|
5160
5168
|
}
|
|
5161
5169
|
}
|
|
@@ -5164,9 +5172,9 @@ export { manifest };
|
|
|
5164
5172
|
if ((_optionalChain([currentConfig, 'access', _433 => _433.experimental, 'optionalAccess', _434 => _434.serverActions]) !== true || !serverFnTransformActive) && !islandsServerFns()) {
|
|
5165
5173
|
const violation = findClientServerFnViolation(code, id);
|
|
5166
5174
|
if (violation) {
|
|
5167
|
-
const locate =
|
|
5175
|
+
const locate = _chunkD2OU4CX2cjs.createFarmSourceLocator.call(void 0, code, () => this.getCombinedSourcemap());
|
|
5168
5176
|
this.error(
|
|
5169
|
-
|
|
5177
|
+
_chunkD2OU4CX2cjs.formatFarmDiagnostic.call(void 0,
|
|
5170
5178
|
createServerFnBoundaryDiagnostic(violation, id, locate(violation.start)),
|
|
5171
5179
|
currentConfig.root
|
|
5172
5180
|
)
|
|
@@ -5208,13 +5216,13 @@ export { manifest };
|
|
|
5208
5216
|
transformed = true;
|
|
5209
5217
|
}
|
|
5210
5218
|
}
|
|
5211
|
-
if (
|
|
5219
|
+
if (_chunkD2OU4CX2cjs.hasUseClientDirective.call(void 0, transformedCode)) {
|
|
5212
5220
|
const clientBoundarySource = transformedCode;
|
|
5213
5221
|
const moduleInfo = this.getModuleInfo(id);
|
|
5214
5222
|
if (moduleInfo) {
|
|
5215
5223
|
moduleInfo.isClientComponent = true;
|
|
5216
5224
|
}
|
|
5217
|
-
transformedCode =
|
|
5225
|
+
transformedCode = _chunkD2OU4CX2cjs.stripUseClientDirective.call(void 0, transformedCode);
|
|
5218
5226
|
transformed = true;
|
|
5219
5227
|
const currentConfig = _nullishCoalesce(_optionalChain([farmApp, 'optionalAccess', _442 => _442.getConfig, 'call', _443 => _443()]), () => ( options));
|
|
5220
5228
|
let isolatedModuleReference = null;
|
|
@@ -5223,12 +5231,12 @@ export { manifest };
|
|
|
5223
5231
|
const cleanId = id.split("?", 1)[0];
|
|
5224
5232
|
const selectedIsolatedModules = _nullishCoalesce(options.isolatedClientBoundaryModules, () => ( _optionalChain([farmApp, 'optionalAccess', _446 => _446.getRouteManager, 'call', _447 => _447(), 'access', _448 => _448.getIsolatedClientBoundaryModules, 'call', _449 => _449(root)])));
|
|
5225
5233
|
const selectedForIsolatedHydration = _optionalChain([selectedIsolatedModules, 'optionalAccess', _450 => _450.has, 'call', _451 => _451(path6.resolve(cleanId))]) === true;
|
|
5226
|
-
if (_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (
|
|
5227
|
-
cleanId.replace(/\\/g, "/").includes(
|
|
5234
|
+
if (_chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, currentConfig.renderer)) && selectedForIsolatedHydration && (_chunkD2OU4CX2cjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || // A generated client reference, whose marker comment compiled TSX no longer has.
|
|
5235
|
+
cleanId.replace(/\\/g, "/").includes(_chunkD2OU4CX2cjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
5228
5236
|
isolatedModuleReference = _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, cleanId, root);
|
|
5229
5237
|
const islandsMode = _chunkCYUTK4JPcjs.resolveFarmServerComponentsMode.call(void 0, _chunkCYUTK4JPcjs.readFarmServerComponentsConfig.call(void 0, currentConfig)) === "islands";
|
|
5230
|
-
const explicitStrategy =
|
|
5231
|
-
const inference = islandsMode && explicitStrategy === null ?
|
|
5238
|
+
const explicitStrategy = _chunkD2OU4CX2cjs.getIslandStrategyExport.call(void 0, clientBoundarySource);
|
|
5239
|
+
const inference = islandsMode && explicitStrategy === null ? _chunkPVB5UYJTcjs.inferFarmIslandStrategy.call(void 0, cleanId, root) : null;
|
|
5232
5240
|
if (inference) {
|
|
5233
5241
|
for (const file of inference.files) {
|
|
5234
5242
|
if (file !== path6.resolve(cleanId)) this.addWatchFile(file);
|
|
@@ -5251,14 +5259,14 @@ export { manifest };
|
|
|
5251
5259
|
);
|
|
5252
5260
|
}
|
|
5253
5261
|
transformedCode = transformedBoundary;
|
|
5254
|
-
} else if (selectedForIsolatedHydration && _chunkGUYGMTWAcjs.usesFarmRendererIslands.call(void 0, currentConfig) && (
|
|
5262
|
+
} else if (selectedForIsolatedHydration && _chunkGUYGMTWAcjs.usesFarmRendererIslands.call(void 0, currentConfig) && (_chunkD2OU4CX2cjs.isIsolatableClientBoundarySource.call(void 0, clientBoundarySource) || cleanId.replace(/\\/g, "/").includes(_chunkD2OU4CX2cjs.FARM_CLIENT_REFERENCE_DIRECTORY))) {
|
|
5255
5263
|
rendererIslandModule = true;
|
|
5256
5264
|
if (_optionalChain([transformOptions, 'optionalAccess', _454 => _454.ssr]) === true) {
|
|
5257
5265
|
const renderer = _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, currentConfig.renderer);
|
|
5258
5266
|
const transformedBoundary = transformIsolatedClientBoundaryModule({
|
|
5259
5267
|
code: transformedCode,
|
|
5260
5268
|
moduleReference: _chunk7ZDLE77Pcjs.toViteModuleId.call(void 0, cleanId, root),
|
|
5261
|
-
islandStrategy: _nullishCoalesce(
|
|
5269
|
+
islandStrategy: _nullishCoalesce(_chunkD2OU4CX2cjs.getIslandStrategyExport.call(void 0, clientBoundarySource), () => ( "load")),
|
|
5262
5270
|
parse: (source) => this.parse(source),
|
|
5263
5271
|
withIsland: renderer.server
|
|
5264
5272
|
});
|
|
@@ -5442,10 +5450,10 @@ if (import.meta.hot) {
|
|
|
5442
5450
|
const watched = _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, id);
|
|
5443
5451
|
const appSource = !watched.includes("/node_modules/") && !isFarmGeneratedOutput(watched);
|
|
5444
5452
|
if (appSource) _optionalChain([farmApp, 'optionalAccess', _461 => _461.getRouteManager, 'call', _462 => _462(), 'access', _463 => _463.noteSourceChange, 'call', _464 => _464(id, change.event)]);
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5453
|
+
_chunkD2OU4CX2cjs.noteFarmClientReachableModuleChange.call(void 0, id, change.event, { appSource });
|
|
5454
|
+
_chunkD2OU4CX2cjs.invalidateFarmClientOnlyScan.call(void 0, id, change.event);
|
|
5455
|
+
_chunkPVB5UYJTcjs.invalidateFarmRouteRootInferences.call(void 0, id, change.event);
|
|
5456
|
+
_chunkD2OU4CX2cjs.dropLatestPackageClientBoundaryCache.call(void 0, );
|
|
5449
5457
|
},
|
|
5450
5458
|
async handleHotUpdate(ctx) {
|
|
5451
5459
|
if (pendingClientSetup && !farmSetupContext.getStore()) await pendingClientSetup;
|
|
@@ -5478,16 +5486,16 @@ if (import.meta.hot) {
|
|
|
5478
5486
|
}
|
|
5479
5487
|
server2.ws.send({ type: "full-reload", path: "*" });
|
|
5480
5488
|
};
|
|
5481
|
-
if (normalizedFile.includes(
|
|
5489
|
+
if (normalizedFile.includes(_chunkD2OU4CX2cjs.FARM_CLIENT_REFERENCE_DIRECTORY) && normalizedFile.startsWith(
|
|
5482
5490
|
path6.posix.join(
|
|
5483
5491
|
_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, _optionalChain([currentFarmConfig, 'optionalAccess', _467 => _467.root]) || options.root || server2.config.root),
|
|
5484
|
-
|
|
5492
|
+
_chunkD2OU4CX2cjs.FARM_CLIENT_REFERENCE_DIRECTORY
|
|
5485
5493
|
)
|
|
5486
5494
|
))
|
|
5487
5495
|
return modules;
|
|
5488
|
-
if (currentFarmConfig &&
|
|
5496
|
+
if (currentFarmConfig && _chunkYCGOQKVCcjs.isFarmAPIRouteFileName.call(void 0,
|
|
5489
5497
|
path6.posix.basename(normalizedFile),
|
|
5490
|
-
|
|
5498
|
+
_chunkYCGOQKVCcjs.hasPolyroutePlugin.call(void 0, server2.config.plugins)
|
|
5491
5499
|
) && _chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, currentFarmConfig).some(
|
|
5492
5500
|
(appDir) => normalizedFile.startsWith(`${_chunk7ZDLE77Pcjs.toPosixPath.call(void 0, appDir)}/api/`)
|
|
5493
5501
|
)) {
|
|
@@ -5789,12 +5797,12 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5789
5797
|
const parsed = _chunkPYPHM7AScjs.parseProgrammaticRouteModuleId.call(void 0, moduleId);
|
|
5790
5798
|
const routesFile = resolveRealModuleFile(parsed.filePath, root);
|
|
5791
5799
|
watchFile(routesFile);
|
|
5792
|
-
return
|
|
5800
|
+
return _chunkD2OU4CX2cjs.generateProgrammaticClientRouteModule.call(void 0, {
|
|
5793
5801
|
kind: parsed.kind,
|
|
5794
5802
|
routePath: parsed.routePath,
|
|
5795
5803
|
routesFile,
|
|
5796
5804
|
route: parsed.kind === "api" ? void 0 : _optionalChain([clientRoutes, 'optionalAccess', _506 => _506.routes, 'access', _507 => _507.get, 'call', _508 => _508(
|
|
5797
|
-
|
|
5805
|
+
_chunkD2OU4CX2cjs.programmaticClientRouteKey.call(void 0, routesFile, parsed.kind, parsed.routePath)
|
|
5798
5806
|
)]),
|
|
5799
5807
|
// React's client module exports no createElement; the main client entry imports React too.
|
|
5800
5808
|
rendererClient: _chunkLEZJZX4Ccjs.isReactRenderer.call(void 0, renderer) ? "react" : renderer.client,
|
|
@@ -5802,7 +5810,7 @@ function generateProgrammaticClientRouteModuleForId(moduleId, root, renderer, cl
|
|
|
5802
5810
|
});
|
|
5803
5811
|
}
|
|
5804
5812
|
function resolveRealModuleFile(filePath, root) {
|
|
5805
|
-
const resolved = _nullishCoalesce(
|
|
5813
|
+
const resolved = _nullishCoalesce(_chunkD2OU4CX2cjs.resolveModuleSourcePath.call(void 0, filePath, root), () => ( filePath));
|
|
5806
5814
|
try {
|
|
5807
5815
|
return _chunk7ZDLE77Pcjs.toPosixPath.call(void 0, fs2.realpathSync(resolved));
|
|
5808
5816
|
} catch (e29) {
|
|
@@ -6141,7 +6149,7 @@ function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
|
6141
6149
|
}
|
|
6142
6150
|
}
|
|
6143
6151
|
function generateClientCode(integrationProviders = [], documentNavigationMatchers = [], docsSearchClientRuntime = EMPTY_FARM_DOCS_SEARCH_CLIENT_RUNTIME, devtoolsClientRuntime = "", plugins = [], root = process.cwd(), srcDir = "src", publicRuntimeConfig = void 0, docsAdapterUI, renderer = _chunkLEZJZX4Ccjs.REACT_RENDERER, isolatedHydrationEnabled = false, trailingSlash = false, basePath = "/", clientCachePersistence = { imports: "", init: "" }, docsConfigModule, islandValues = false) {
|
|
6144
|
-
const providerClientCode =
|
|
6152
|
+
const providerClientCode = _chunkPVB5UYJTcjs.generateFarmIntegrationProviderClientCode.call(void 0,
|
|
6145
6153
|
integrationProviders,
|
|
6146
6154
|
root,
|
|
6147
6155
|
_nullishCoalesce(renderer.componentExtensions, () => ( []))
|
|
@@ -6239,7 +6247,7 @@ async function createFarmServerTreePageElement(source, pathname) {
|
|
|
6239
6247
|
return null;
|
|
6240
6248
|
}
|
|
6241
6249
|
}
|
|
6242
|
-
${islandValues ? `${
|
|
6250
|
+
${islandValues ? `${_chunkPVB5UYJTcjs.FARM_SERVER_TREE_LAYOUT_CLIENT_SOURCE}
|
|
6243
6251
|
let farmLastRouteState = null;
|
|
6244
6252
|
|
|
6245
6253
|
// A hot update to a layout tree's client module renders the route again.
|
|
@@ -7080,7 +7088,7 @@ async function loadLayoutComponents(layouts = [], params = {}, source) {
|
|
|
7080
7088
|
return loadedLayouts;
|
|
7081
7089
|
}
|
|
7082
7090
|
|
|
7083
|
-
${
|
|
7091
|
+
${_chunkPVB5UYJTcjs.FARM_LAYOUT_ELEMENT_CLIENT_SOURCE}
|
|
7084
7092
|
function wrapWithLoadedLayouts(element, loadedLayouts, params) {
|
|
7085
7093
|
let wrapped = element;
|
|
7086
7094
|
for (let index = loadedLayouts.length - 1; index >= 0; index--) {
|
|
@@ -7380,7 +7388,7 @@ function readActiveLayoutPatterns() {
|
|
|
7380
7388
|
);
|
|
7381
7389
|
}
|
|
7382
7390
|
|
|
7383
|
-
${
|
|
7391
|
+
${_chunkPVB5UYJTcjs.FARM_NAVIGATION_SCRIPT_SOURCE}
|
|
7384
7392
|
|
|
7385
7393
|
function activateFragmentScripts(root) {
|
|
7386
7394
|
for (const script of Array.from(root.querySelectorAll?.('script') || [])) {
|
|
@@ -7439,7 +7447,7 @@ function getLayoutShell(root, patterns, index, find) {
|
|
|
7439
7447
|
return shell.innerHTML;
|
|
7440
7448
|
}
|
|
7441
7449
|
|
|
7442
|
-
${islandValues ?
|
|
7450
|
+
${islandValues ? _chunkPVB5UYJTcjs.FARM_REFRESH_FIELDS_SOURCE : ""}function replaceNavigationBoundary(
|
|
7443
7451
|
container,
|
|
7444
7452
|
fragment,
|
|
7445
7453
|
currentPatterns,
|
|
@@ -7514,9 +7522,9 @@ ${islandValues ? `
|
|
|
7514
7522
|
return nextTarget;
|
|
7515
7523
|
}
|
|
7516
7524
|
|
|
7517
|
-
${islandValues ? `${
|
|
7525
|
+
${islandValues ? `${_chunkPVB5UYJTcjs.FARM_NAVIGATION_STREAM_READER_SOURCE}
|
|
7518
7526
|
|
|
7519
|
-
${
|
|
7527
|
+
${_chunkPVB5UYJTcjs.FARM_EARLY_NAVIGATION_SOURCE}
|
|
7520
7528
|
|
|
7521
7529
|
// Islands mode navigates as the production client does: it fetches the page itself, names the
|
|
7522
7530
|
// layouts it shows by key (F-Layouts), and asks for flush markers (F-Stream), so the shell arrives
|
|
@@ -8232,7 +8240,7 @@ async function defineConfig(config = {}) {
|
|
|
8232
8240
|
config = layeredConfig;
|
|
8233
8241
|
}
|
|
8234
8242
|
config.renderer = _chunkLEZJZX4Ccjs.resolveFarmRenderer.call(void 0, config.renderer);
|
|
8235
|
-
config.images =
|
|
8243
|
+
config.images = _chunkPVB5UYJTcjs.resolveFarmImageProviderForRuntime.call(void 0, config.images, { root: appRoot, dev: true });
|
|
8236
8244
|
const rendererVitePlugins = await _chunkLEZJZX4Ccjs.loadFarmRendererVitePlugins.call(void 0, config.renderer, appRoot, {
|
|
8237
8245
|
ssr: true
|
|
8238
8246
|
});
|
|
@@ -8330,7 +8338,7 @@ async function defineConfig(config = {}) {
|
|
|
8330
8338
|
const isExposed = hostConfig === true || hostConfig === "0.0.0.0";
|
|
8331
8339
|
console.log("");
|
|
8332
8340
|
console.log(
|
|
8333
|
-
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${
|
|
8341
|
+
` ${pc.bold(pc.green("Farm.js"))} ${pc.dim(`v${_chunkJZAGIXMBcjs.FARM_VERSION}`)} ${pc.dim(`ready in ${elapsed}ms`)}`
|
|
8334
8342
|
);
|
|
8335
8343
|
console.log("");
|
|
8336
8344
|
console.log(
|
|
@@ -8364,7 +8372,7 @@ async function defineConfig(config = {}) {
|
|
|
8364
8372
|
plugins: [
|
|
8365
8373
|
// `farm dev --desktop`: only the desktop window gets an answer, as in the packaged app.
|
|
8366
8374
|
_chunkQCVP22KWcjs.farmDesktopDevGuardPlugin.call(void 0, config.basePath),
|
|
8367
|
-
|
|
8375
|
+
_chunkPVB5UYJTcjs.createFarmThemeCssPlugin.call(void 0, config.theme, config.basePath),
|
|
8368
8376
|
tailwindVitePlugin,
|
|
8369
8377
|
...rendererVitePlugins,
|
|
8370
8378
|
...reactRefreshPlugins,
|
|
@@ -8374,14 +8382,14 @@ async function defineConfig(config = {}) {
|
|
|
8374
8382
|
farmNavigationPlugin(config.renderer),
|
|
8375
8383
|
farmIslandContainersPlugin(config),
|
|
8376
8384
|
farmPlugin(config),
|
|
8377
|
-
|
|
8385
|
+
_chunkD2OU4CX2cjs.farmEnvironmentFunctionsPlugin.call(void 0, config),
|
|
8378
8386
|
farmBrandingPlugin
|
|
8379
8387
|
],
|
|
8380
8388
|
customLogger: farmLogger,
|
|
8381
8389
|
clearScreen: false,
|
|
8382
8390
|
optimizeDeps: {
|
|
8383
|
-
...
|
|
8384
|
-
|
|
8391
|
+
..._chunkPVB5UYJTcjs.createFarmClientOptimizeDepsConfig.call(void 0,
|
|
8392
|
+
_chunkPVB5UYJTcjs.createFarmClientOptimizeDepsEntries.call(void 0,
|
|
8385
8393
|
appRoot,
|
|
8386
8394
|
_chunkPFVNPOKNcjs.getFarmAppDirectories.call(void 0, { ...config, root: appRoot })
|
|
8387
8395
|
),
|
|
@@ -8425,7 +8433,7 @@ async function defineConfig(config = {}) {
|
|
|
8425
8433
|
// Stub out problematic server-only modules during dev mode
|
|
8426
8434
|
alias: {
|
|
8427
8435
|
..._chunkPFVNPOKNcjs.getFarmLayerAliases.call(void 0, config.layers),
|
|
8428
|
-
...
|
|
8436
|
+
..._chunkPVB5UYJTcjs.createFarmSourceAlias.call(void 0, appRoot, config.srcDir),
|
|
8429
8437
|
// Nitro internals that should not be resolved in browser
|
|
8430
8438
|
"supports-color": "data:text/javascript,export default false; export const supportsColor = false; export const stdout = false; export const stderr = false;",
|
|
8431
8439
|
"@poppinss/dumper": "data:text/javascript,export default {};",
|