@farm.js/core 0.1.34 → 0.1.36
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-BVExL8rZ.d.mts +109 -0
- package/dist/agent-mcp-handler-LPJ2CADR.mjs +19 -0
- package/dist/agent-mcp-handler-SJAHFSPI.cjs +19 -0
- package/dist/agent-mcp-luzfXK-P.d.ts +109 -0
- package/dist/agent-runtime.cjs +5 -3
- package/dist/agent-runtime.d.mts +4 -5
- package/dist/agent-runtime.d.ts +4 -5
- package/dist/agent-runtime.mjs +4 -2
- package/dist/api/route-manager.cjs +7 -7
- package/dist/api/route-manager.d.mts +15 -10
- package/dist/api/route-manager.d.ts +15 -10
- package/dist/api/route-manager.mjs +6 -6
- package/dist/api/runtime.cjs +7 -5
- package/dist/api/runtime.d.mts +7 -66
- package/dist/api/runtime.d.ts +7 -66
- package/dist/api/runtime.mjs +7 -5
- package/dist/api.cjs +9 -9
- package/dist/api.d.mts +8 -9
- package/dist/api.d.ts +8 -9
- package/dist/api.mjs +8 -8
- package/dist/{app-q4rmZlXK.d.mts → app-BukwkFIu.d.mts} +52 -12
- package/dist/{app-DgotYGbq.d.ts → app-Yfa2dsFy.d.ts} +52 -12
- package/dist/app-markdown.cjs +6 -6
- package/dist/app-markdown.d.mts +5 -6
- package/dist/app-markdown.d.ts +5 -6
- package/dist/app-markdown.mjs +5 -5
- package/dist/{chunk-XV5DJTBX.mjs → chunk-276VJSM6.mjs} +627 -260
- package/dist/{chunk-36MK5YCW.cjs → chunk-2YTDKNH3.cjs} +547 -240
- package/dist/{chunk-VHANUNEG.mjs → chunk-35GKZR22.mjs} +2 -2
- package/dist/{chunk-LR5QSC2P.mjs → chunk-35WV46VL.mjs} +399 -92
- package/dist/{chunk-UX5S4JEO.cjs → chunk-42NHY7HW.cjs} +57 -7
- package/dist/{chunk-U4PTAHW3.mjs → chunk-4E5AEDKY.mjs} +7 -11
- package/dist/{chunk-NGVORZVZ.mjs → chunk-4E5WBPEG.mjs} +73 -351
- package/dist/{chunk-AQZFOP7S.mjs → chunk-4GLOOWKE.mjs} +5 -5
- package/dist/{chunk-7BT4H4P7.cjs → chunk-4NU4GGTC.cjs} +2 -2
- package/dist/{chunk-AGC75XAE.mjs → chunk-4WCZJQUO.mjs} +55 -5
- package/dist/chunk-4WQ6PGSJ.cjs +367 -0
- package/dist/{chunk-QCFFHV5H.mjs → chunk-4WVJLURN.mjs} +1 -1
- package/dist/chunk-6SJ2KJTA.mjs +314 -0
- package/dist/chunk-75RZHGLS.cjs +135 -0
- package/dist/{chunk-P64MIF5B.cjs → chunk-ADEA7PN3.cjs} +483 -60
- package/dist/{chunk-YQVSHTMR.mjs → chunk-AJQTP4OO.mjs} +1 -1
- package/dist/{chunk-TA5G2HWD.cjs → chunk-AO6RYU5N.cjs} +31 -28
- package/dist/{chunk-MOKLYNHV.cjs → chunk-BO36SELV.cjs} +6 -6
- package/dist/{chunk-7Y6ZNFPX.mjs → chunk-BPOF5U4N.mjs} +17 -7
- package/dist/{chunk-JHWOVJ3M.mjs → chunk-BUGNQIHC.mjs} +5 -0
- package/dist/{chunk-TDFPACVX.cjs → chunk-CBJJH36A.cjs} +50 -25
- package/dist/{chunk-VKNHTSAP.cjs → chunk-CGBDNNSM.cjs} +2 -2
- package/dist/chunk-CI6E3UOH.cjs +314 -0
- package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
- package/dist/{chunk-ATK2R4CH.cjs → chunk-D227TIEN.cjs} +14 -4
- package/dist/{chunk-QGYRXFU2.cjs → chunk-D2BB47NB.cjs} +8 -8
- package/dist/chunk-DTSROJ5J.mjs +367 -0
- package/dist/{chunk-ODBZYBAB.cjs → chunk-DZ5ZVB2K.cjs} +1 -1
- package/dist/{chunk-ROUTX2E5.cjs → chunk-ECKF2BAM.cjs} +18 -5
- package/dist/{chunk-3LUF2PE2.cjs → chunk-EK4QAEFZ.cjs} +67 -5
- package/dist/{chunk-VVBO3QH7.mjs → chunk-ENLZ4R3Y.mjs} +10 -1
- package/dist/{chunk-XXJU7FCC.cjs → chunk-EUV4YR3V.cjs} +2 -2
- package/dist/{chunk-HR5KPHC2.mjs → chunk-EWET4D2Y.mjs} +1 -1
- package/dist/{chunk-PXKIEXZD.mjs → chunk-F5QO4FNE.mjs} +1 -1
- package/dist/{chunk-MIDIZJZC.cjs → chunk-FO427P6I.cjs} +22 -12
- package/dist/{chunk-AWC4VUZL.cjs → chunk-GQ3Z3IZI.cjs} +14 -14
- package/dist/{chunk-JDPAKVS4.mjs → chunk-GQRWBCWK.mjs} +8 -5
- package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
- package/dist/{chunk-WNNYOOIB.mjs → chunk-HOXTWRGB.mjs} +1 -1
- package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
- package/dist/{chunk-QJ3J6MZT.cjs → chunk-JNUWCDTF.cjs} +8 -8
- package/dist/{chunk-BTAG7LI7.cjs → chunk-JZVADIOD.cjs} +2 -2
- package/dist/{chunk-EM6SBQKM.cjs → chunk-KIIMAWOJ.cjs} +37 -2
- package/dist/{chunk-43FMW62B.mjs → chunk-KMTGADN3.mjs} +28 -0
- package/dist/{chunk-GOABMOX3.mjs → chunk-LSZAVSGY.mjs} +468 -45
- package/dist/{chunk-2NQQ5H5G.cjs → chunk-M7MKQXAF.cjs} +2 -1
- package/dist/{chunk-GNSDTTWZ.mjs → chunk-MKYBIIAQ.mjs} +30 -5
- package/dist/{chunk-ZHPHJPQP.cjs → chunk-MRMI32SN.cjs} +88 -366
- package/dist/{chunk-7M52YUMY.cjs → chunk-N2NAS2AM.cjs} +2 -2
- package/dist/{chunk-SJVKK4JE.cjs → chunk-NMHWYWDR.cjs} +1144 -777
- package/dist/chunk-NRDBW4MP.mjs +45 -0
- package/dist/{chunk-657WJNRY.mjs → chunk-O6I6VWKK.mjs} +20 -5
- package/dist/{chunk-O27L4YAA.mjs → chunk-O6WAEAX3.mjs} +2 -2
- package/dist/chunk-OFZUJMCU.mjs +601 -0
- package/dist/{chunk-ZKP7C2B6.mjs → chunk-OHLSEQ57.mjs} +22 -13
- package/dist/{chunk-X242HVD5.mjs → chunk-OO7GXVSR.mjs} +1 -1
- package/dist/chunk-PTZ2TVNE.cjs +178 -0
- package/dist/{chunk-3ATMYLLJ.mjs → chunk-Q2KB32T4.mjs} +1 -1
- package/dist/{chunk-LHODW25H.mjs → chunk-QORUJDIV.mjs} +2 -2
- package/dist/{chunk-UBO4SGH4.mjs → chunk-RHAZ22ZN.mjs} +2 -1
- package/dist/{chunk-G26MUMKL.cjs → chunk-S6VYG6XU.cjs} +23 -8
- package/dist/{chunk-6VVL3MHY.mjs → chunk-SC2WYWPF.mjs} +1 -1
- package/dist/{chunk-MPEYMSCF.cjs → chunk-SDOTRX3V.cjs} +5 -5
- package/dist/{chunk-BMWDEBXO.cjs → chunk-SHLXACIO.cjs} +31 -3
- package/dist/{chunk-LMJ7VRHZ.mjs → chunk-T4OGRVNS.mjs} +13 -3
- package/dist/{chunk-T5CERMEH.cjs → chunk-T5OJPTVN.cjs} +2 -2
- package/dist/{chunk-Z2YLTERK.cjs → chunk-TE2G5ION.cjs} +6 -6
- package/dist/chunk-UH6QN5NL.mjs +178 -0
- package/dist/{chunk-PQDFUSXD.cjs → chunk-UVW64BCB.cjs} +44 -35
- package/dist/{chunk-VCCUOMQN.mjs → chunk-VILIPRS6.mjs} +1 -1
- package/dist/{chunk-A5FGU2WU.cjs → chunk-VQLJWDVW.cjs} +19 -23
- package/dist/{chunk-VPTDD5XF.cjs → chunk-WBKEZXWE.cjs} +5 -0
- package/dist/{chunk-K3F2E6GS.cjs → chunk-WC5UV2HQ.cjs} +2 -2
- package/dist/chunk-WWFTAUFG.cjs +45 -0
- package/dist/{chunk-ZUSJDQ2Q.mjs → chunk-WWIKMBRN.mjs} +1 -1
- package/dist/{chunk-3VSKDFAT.mjs → chunk-WZ77PUAM.mjs} +1 -1
- package/dist/{chunk-CLJYVZAD.mjs → chunk-XCMCS4DA.mjs} +11 -1
- package/dist/{chunk-F6OHXPWR.mjs → chunk-YFILVET3.mjs} +8 -1
- package/dist/{chunk-DZ4DTRJ5.cjs → chunk-YKX5BK66.cjs} +7 -7
- package/dist/chunk-YSLWRWWP.cjs +601 -0
- package/dist/{chunk-LI2LMOLR.mjs → chunk-YWMZUGIS.mjs} +18 -5
- package/dist/chunk-ZLAT2CWY.mjs +135 -0
- package/dist/{chunk-XF7Q24PF.mjs → chunk-ZMMBIVQM.mjs} +35 -0
- package/dist/{chunk-U74I55WB.cjs → chunk-ZWM5KGAA.cjs} +19 -9
- package/dist/{client-plugins-CLObcuCq.d.mts → client-plugins-C3mK9Pol.d.mts} +300 -7
- package/dist/{client-plugins-DZjHC4Mi.d.ts → client-plugins-r1mOtSC1.d.ts} +300 -7
- package/dist/client-plugins.d.mts +4 -5
- package/dist/client-plugins.d.ts +4 -5
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +8 -9
- package/dist/client.d.ts +8 -9
- package/dist/client.mjs +4 -4
- package/dist/config.d.mts +4 -5
- package/dist/config.d.ts +4 -5
- package/dist/{devtools-RNXCTS4R.mjs → devtools-ERIKFEXX.mjs} +11 -10
- package/dist/{devtools-HU6Y2MNV.cjs → devtools-JZJJY5CK.cjs} +12 -11
- package/dist/docs.cjs +15 -14
- package/dist/docs.d.mts +41 -4
- package/dist/docs.d.ts +41 -4
- package/dist/docs.mjs +14 -13
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/{index-a-8Z5kZU.d.mts → index-BJJfLxJo.d.mts} +2 -2
- package/dist/{index-BWVfxIsO.d.ts → index-CwoOP-MW.d.ts} +2 -2
- package/dist/index.cjs +51 -44
- package/dist/index.d.mts +20 -21
- package/dist/index.d.ts +20 -21
- package/dist/index.mjs +50 -43
- package/dist/integrations.cjs +7 -3
- package/dist/integrations.d.mts +4 -5
- package/dist/integrations.d.ts +4 -5
- package/dist/integrations.mjs +6 -2
- package/dist/internal/app-markdown-runtime.cjs +5 -5
- package/dist/internal/app-markdown-runtime.d.mts +5 -6
- package/dist/internal/app-markdown-runtime.d.ts +5 -6
- package/dist/internal/app-markdown-runtime.mjs +4 -4
- package/dist/internal/build-runtime.cjs +32 -30
- package/dist/internal/build-runtime.d.mts +6 -7
- package/dist/internal/build-runtime.d.ts +6 -7
- package/dist/internal/build-runtime.mjs +31 -29
- package/dist/internal/cli-runtime.cjs +17 -16
- package/dist/internal/cli-runtime.mjs +16 -15
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +2 -2
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +4 -5
- package/dist/internal/compression-runtime.d.ts +4 -5
- package/dist/internal/config-runtime.cjs +12 -11
- package/dist/internal/config-runtime.d.mts +5 -6
- package/dist/internal/config-runtime.d.ts +5 -6
- package/dist/internal/config-runtime.mjs +11 -10
- package/dist/internal/isolated-boundary.cjs +3 -2
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -1
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +63 -25
- package/dist/internal/production-runtime.d.mts +117 -37
- package/dist/internal/production-runtime.d.ts +117 -37
- package/dist/internal/production-runtime.mjs +65 -27
- package/dist/internal/server-tree.cjs +12 -0
- package/dist/internal/server-tree.d.mts +27 -0
- package/dist/internal/server-tree.d.ts +27 -0
- package/dist/internal/server-tree.mjs +12 -0
- package/dist/{layers-BRQF5ETU.mjs → layers-UTB43B7A.mjs} +1 -1
- package/dist/layers-VUWIOFEO.cjs +18 -0
- package/dist/markdown.cjs +4 -4
- package/dist/markdown.d.mts +4 -5
- package/dist/markdown.d.ts +4 -5
- package/dist/markdown.mjs +3 -3
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +6 -7
- package/dist/middleware.d.ts +6 -7
- package/dist/middleware.mjs +6 -6
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +7 -8
- package/dist/navigation.d.ts +7 -8
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-HSAQFXSS.cjs → nitro-7F65EZZS.cjs} +3 -3
- package/dist/{nitro-4XGPNIK4.mjs → nitro-MPZJGPXK.mjs} +2 -2
- package/dist/{observability-BupkiN0m.d.mts → observability-CoXunYhS.d.mts} +4 -3
- package/dist/{observability-BupkiN0m.d.ts → observability-CoXunYhS.d.ts} +4 -3
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +28 -26
- package/dist/plugin.d.mts +4 -5
- package/dist/plugin.d.ts +4 -5
- package/dist/plugin.mjs +27 -25
- package/dist/{production-runtime-CysZl3EV.d.mts → production-runtime-CCeVZXst.d.mts} +4 -4
- package/dist/{production-runtime-BU5ETAK9.d.ts → production-runtime-DPnsggY3.d.ts} +4 -4
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-CKr4ltOd.d.mts → render-plan-BuGaPFe6.d.mts} +1 -1
- package/dist/{render-plan-D72O1qm4.d.ts → render-plan-Cw4f5E_R.d.ts} +1 -1
- package/dist/renderer/react/server.cjs +10 -4
- package/dist/renderer/react/server.d.mts +2 -1
- package/dist/renderer/react/server.d.ts +2 -1
- package/dist/renderer/react/server.mjs +7 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +6 -7
- package/dist/renderer-client.d.ts +6 -7
- package/dist/renderer-client.mjs +2 -2
- package/dist/renderer.d.mts +2 -0
- package/dist/renderer.d.ts +2 -0
- package/dist/{request-DbyOYI2j.d.ts → request-Bkg-hERy.d.ts} +1 -1
- package/dist/{request-Be83WafN.d.mts → request-CsGARcAw.d.mts} +1 -1
- package/dist/request.d.mts +5 -6
- package/dist/request.d.ts +5 -6
- package/dist/{resolver-PPEeiJ6M.d.ts → resolver-DadfRL6F.d.ts} +1 -1
- package/dist/{resolver-DhW0CqZN.d.mts → resolver-khasx3fU.d.mts} +1 -1
- package/dist/{route-rendering-CtVMpV-k.d.ts → route-rendering-BUZMH_64.d.ts} +1 -1
- package/dist/{route-rendering-BG56SzvJ.d.mts → route-rendering-f11yh5dp.d.mts} +1 -1
- package/dist/{router-D94-SDlW.d.ts → router-B8CR9GbD.d.ts} +1 -1
- package/dist/{router-ALUvm8gC.d.mts → router-Cp6yRE8A.d.mts} +1 -1
- package/dist/routes.d.mts +4 -5
- package/dist/routes.d.ts +4 -5
- package/dist/{runtime-BirxPwbZ.d.ts → runtime-BgDQzBiu.d.ts} +2 -2
- package/dist/runtime-CAEv36S_.d.mts +69 -0
- package/dist/runtime-CQVsT330.d.ts +69 -0
- package/dist/{runtime-AOJge4vQ.d.mts → runtime-CV2UCV-5.d.mts} +2 -2
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.d.mts +5 -6
- package/dist/server-plugins.d.ts +5 -6
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +47 -45
- package/dist/server.d.mts +13 -14
- package/dist/server.d.ts +13 -14
- package/dist/server.mjs +30 -28
- package/dist/{spa-router-CxK3USIz.d.ts → spa-router-BuciWGCZ.d.ts} +3 -3
- package/dist/{spa-router-DbxNRKOB.d.mts → spa-router-DwbqGkGj.d.mts} +3 -3
- package/dist/testing.cjs +9 -9
- package/dist/testing.d.mts +4 -5
- package/dist/testing.d.ts +4 -5
- package/dist/testing.mjs +7 -7
- package/dist/{types-Z0aotQ8w.d.mts → types-CnH8DOqo.d.mts} +1 -1
- package/dist/{types-Z0aotQ8w.d.ts → types-CnH8DOqo.d.ts} +1 -1
- package/dist/{utils-4wVRcpOw.d.mts → utils-B9V0S_yL.d.mts} +1 -1
- package/dist/{utils-311Y8eoK.d.ts → utils-CaoWKtYM.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +28 -26
- package/dist/vite.d.mts +4 -5
- package/dist/vite.d.ts +4 -5
- package/dist/vite.mjs +27 -25
- package/dist/{workflows-CR9ex-gz.d.ts → workflows-jZ4BcdoZ.d.mts} +1 -1
- package/dist/{workflows-CR9ex-gz.d.mts → workflows-jZ4BcdoZ.d.ts} +1 -1
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +2 -2
- package/package.json +9 -1
- package/dist/chunk-M64YUMA4.cjs +0 -58
- package/dist/chunk-QLQ32WC4.mjs +0 -58
- package/dist/layers-4PNE2HOY.cjs +0 -18
- package/dist/metadata-2HSU2i_w.d.mts +0 -52
- package/dist/metadata-Cjs8JMRM.d.ts +0 -52
- package/dist/types-DFbjpjXX.d.mts +0 -105
- package/dist/types-DFbjpjXX.d.ts +0 -105
- package/dist/{chunk-2F2ER724.cjs → chunk-BPMATOP2.cjs} +2 -2
- package/dist/{chunk-IHNMMXHV.mjs → chunk-OTC5BDGO.mjs} +3 -3
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { F as
|
|
3
|
-
import { F as FarmWorkflowsResolvedConfig } from './workflows-CR9ex-gz.js';
|
|
1
|
+
import { I as FarmConfig, P as ParsedRoute, aK as ResolvedFarmRouteRuntimeConfig, aL as ApplicationMetadataRouteKind, s as RouteModule, ad as LayoutModule, ak as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aM as ResolvedFarmAPIConfig, aN as FarmDocsResolvedConfig, aF as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-r1mOtSC1.js';
|
|
2
|
+
import { F as FarmWorkflowsResolvedConfig } from './workflows-jZ4BcdoZ.js';
|
|
4
3
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
5
4
|
import { R as ResolvedFarmImageConfig } from './image-config-Duob7wER.js';
|
|
6
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
7
6
|
import { ViteDevServer } from 'vite';
|
|
8
7
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
9
|
-
import { M as MetadataImageKind } from './
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-luzfXK-P.js';
|
|
10
9
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.js';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
12
|
-
import { R as ResolvedFarmI18nConfig } from './types-
|
|
13
|
-
import { F as FarmI18nRuntime } from './runtime-
|
|
10
|
+
import { F as FarmRouteRenderPlan } from './render-plan-Cw4f5E_R.js';
|
|
11
|
+
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
12
|
+
import { F as FarmI18nRuntime } from './runtime-BgDQzBiu.js';
|
|
14
13
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.js';
|
|
15
14
|
|
|
16
15
|
interface IsolatedClientBoundaryReference {
|
|
@@ -35,13 +34,25 @@ interface RouteEntry {
|
|
|
35
34
|
route: ParsedRoute;
|
|
36
35
|
modulePath: string;
|
|
37
36
|
markdownSourcePath?: string;
|
|
37
|
+
/**
|
|
38
|
+
* A page's URL pattern. Layouts, loading and error boundaries use their app
|
|
39
|
+
* directory instead, route groups included (`/(auth)`), because a group adds
|
|
40
|
+
* no URL segment and two of them can share one URL.
|
|
41
|
+
*/
|
|
38
42
|
pattern: string;
|
|
43
|
+
/** A page's directory pattern, set only when it differs from `pattern` (route groups). */
|
|
44
|
+
directory?: string;
|
|
39
45
|
source?: "file" | "programmatic";
|
|
40
46
|
sourceRoot: string;
|
|
41
47
|
}
|
|
42
48
|
interface RouteSlotEntry extends RouteEntry {
|
|
43
49
|
name: string;
|
|
44
50
|
ownerPattern: string;
|
|
51
|
+
/**
|
|
52
|
+
* The owning layout's pattern when route groups make it differ from
|
|
53
|
+
* `ownerPattern` (a URL pattern); slots render into the layout with this pattern.
|
|
54
|
+
*/
|
|
55
|
+
ownerDirectory?: string;
|
|
45
56
|
interception: boolean;
|
|
46
57
|
fallback: boolean;
|
|
47
58
|
containerId: string;
|
|
@@ -49,6 +60,8 @@ interface RouteSlotEntry extends RouteEntry {
|
|
|
49
60
|
interface MatchedRouteSlot {
|
|
50
61
|
name: string;
|
|
51
62
|
ownerPattern: string;
|
|
63
|
+
/** See `RouteSlotEntry.ownerDirectory`. */
|
|
64
|
+
ownerDirectory?: string;
|
|
52
65
|
containerId: string;
|
|
53
66
|
interception: boolean;
|
|
54
67
|
fallback: boolean;
|
|
@@ -58,12 +71,16 @@ interface MatchedRouteSlot {
|
|
|
58
71
|
interface FarmClientRouteManifest {
|
|
59
72
|
routes: Array<{
|
|
60
73
|
pattern: string;
|
|
74
|
+
/** The page's directory pattern when route groups make it differ from `pattern`. */
|
|
75
|
+
directory?: string;
|
|
61
76
|
modulePath: string;
|
|
62
77
|
shouldHydrate: boolean;
|
|
63
78
|
isClientComponent: boolean;
|
|
64
79
|
islandStrategy: FarmIslandStrategy | null;
|
|
65
80
|
hasIsolatedClientBoundaries?: true;
|
|
66
81
|
isolatedBoundaries?: IsolatedClientBoundaryReference[];
|
|
82
|
+
/** The async page renders as a server tree inside its hydrating layout's root. */
|
|
83
|
+
serverTree?: true;
|
|
67
84
|
renderPlan: FarmRouteRenderPlan;
|
|
68
85
|
suppressedAsyncHydration?: true;
|
|
69
86
|
/** Why an async page's client components could not become islands. */
|
|
@@ -179,13 +196,16 @@ declare class RouteManager {
|
|
|
179
196
|
params: Record<string, string>;
|
|
180
197
|
} | null;
|
|
181
198
|
/**
|
|
182
|
-
* Return the nearest matching loading boundary for a pathname.
|
|
199
|
+
* Return the nearest matching loading boundary for a pathname. Pass the page
|
|
200
|
+
* `matchRoute` selected when it is known (`null` for none); otherwise the page is
|
|
201
|
+
* matched only if a boundary inside a route group needs it.
|
|
183
202
|
*/
|
|
184
|
-
getMatchingLoading(pathname: string): RouteEntry | null;
|
|
203
|
+
getMatchingLoading(pathname: string, route?: RouteEntry | null): RouteEntry | null;
|
|
185
204
|
/**
|
|
186
|
-
* Return the nearest matching error boundary for a pathname.
|
|
205
|
+
* Return the nearest matching error boundary for a pathname. `route` works as it
|
|
206
|
+
* does for `getMatchingLoading`.
|
|
187
207
|
*/
|
|
188
|
-
getMatchingError(pathname: string): RouteEntry | null;
|
|
208
|
+
getMatchingError(pathname: string, route?: RouteEntry | null): RouteEntry | null;
|
|
189
209
|
matchMetadataImage(pathname: string): {
|
|
190
210
|
image: MetadataImageEntry;
|
|
191
211
|
params: Record<string, string>;
|
|
@@ -244,9 +264,11 @@ declare class RouteManager {
|
|
|
244
264
|
private discoverProgrammaticRoutes;
|
|
245
265
|
private loadProgrammaticRoutesModule;
|
|
246
266
|
/**
|
|
247
|
-
* Find all layouts that should wrap a given path
|
|
267
|
+
* Find all layouts that should wrap a given path. A layout inside a route group
|
|
268
|
+
* wraps only the pages in that group, so it needs the selected page.
|
|
248
269
|
*/
|
|
249
270
|
private findMatchingLayouts;
|
|
271
|
+
private matchPageRoute;
|
|
250
272
|
private findMatchingRouteSlots;
|
|
251
273
|
private matchesRoutePrefix;
|
|
252
274
|
private findNearestBoundary;
|
|
@@ -287,6 +309,8 @@ interface FarmNavigationFragmentLayout {
|
|
|
287
309
|
interface FarmNavigationFragmentSlot {
|
|
288
310
|
name: string;
|
|
289
311
|
ownerPattern: string;
|
|
312
|
+
/** The owning layout's pattern when route groups make it differ from `ownerPattern`. */
|
|
313
|
+
ownerDirectory?: string;
|
|
290
314
|
containerId: string;
|
|
291
315
|
module: {
|
|
292
316
|
default?: any;
|
|
@@ -305,6 +329,8 @@ interface FarmNavigationFragmentInput {
|
|
|
305
329
|
pageShouldHydrate: boolean;
|
|
306
330
|
layoutShouldHydrate: boolean;
|
|
307
331
|
islandStrategy?: FarmIslandStrategy | null;
|
|
332
|
+
/** The page renders as a server tree inside its hydrating layout's root. */
|
|
333
|
+
serverTree?: boolean;
|
|
308
334
|
}
|
|
309
335
|
declare class ServerRenderer {
|
|
310
336
|
private config;
|
|
@@ -316,6 +342,8 @@ declare class ServerRenderer {
|
|
|
316
342
|
private rendererRuntime;
|
|
317
343
|
private appliedAppSetupModule;
|
|
318
344
|
private security;
|
|
345
|
+
private apiRouteExists?;
|
|
346
|
+
private defaultMCPServer?;
|
|
319
347
|
constructor(config: Required<FarmConfig>, routeManager: RouteManager, i18nRuntime?: FarmI18nRuntime, viteServer?: ViteDevServer);
|
|
320
348
|
initialize(): Promise<void>;
|
|
321
349
|
/**
|
|
@@ -389,6 +417,18 @@ declare class ServerRenderer {
|
|
|
389
417
|
private getAgentCrawlers;
|
|
390
418
|
/** `/robots.txt` from `agent.crawlers` when no robots.ts owns it. */
|
|
391
419
|
private renderGeneratedRobotsTxt;
|
|
420
|
+
private getAgentSitemap;
|
|
421
|
+
/** `/sitemap.xml` from `agent.sitemap` when no sitemap.ts owns it. */
|
|
422
|
+
private renderGeneratedSitemap;
|
|
423
|
+
/** Lets the default MCP server see the app's API routes, which the dev server owns. */
|
|
424
|
+
setAPIRouteLookup(exists: (path: string) => boolean): void;
|
|
425
|
+
/**
|
|
426
|
+
* The default read-only MCP server (`agent.mcp`), or undefined when the app has an MCP
|
|
427
|
+
* server of its own: a route that answers /mcp, an API route at /api/mcp, `@farm.js/mcp`,
|
|
428
|
+
* or a registered server such as the docs engine's. Production applies the same rules.
|
|
429
|
+
*/
|
|
430
|
+
getDefaultMCPServer(): ReturnType<typeof createFarmDefaultMCPServer> | undefined;
|
|
431
|
+
private renderDefaultMCP;
|
|
392
432
|
/** Same inputs the production server gives llms.txt: static pages and root metadata. */
|
|
393
433
|
private createLlmsTxtContext;
|
|
394
434
|
/**
|
package/dist/app-markdown.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJZVADIODcjs = require('./chunk-JZVADIOD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@ var _chunkBTAG7LI7cjs = require('./chunk-BTAG7LI7.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk42NHY7HWcjs = require('./chunk-42NHY7HW.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -20,11 +20,11 @@ var _chunkOHY2ZWUGcjs = require('./chunk-OHY2ZWUG.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkEUV4YR3Vcjs = require('./chunk-EUV4YR3V.cjs');
|
|
24
24
|
require('./chunk-J63ZH5OQ.cjs');
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-KNBBQHO2.cjs');
|
|
25
|
+
require('./chunk-75RZHGLS.cjs');
|
|
27
26
|
require('./chunk-E3UK5IIB.cjs');
|
|
27
|
+
require('./chunk-KNBBQHO2.cjs');
|
|
28
28
|
require('./chunk-G7HXGLEC.cjs');
|
|
29
29
|
require('./chunk-S3A45T7F.cjs');
|
|
30
30
|
require('./chunk-FJ3M4CUX.cjs');
|
|
@@ -47,4 +47,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
exports.FARM_MARKDOWN_CONTENT_TYPE =
|
|
50
|
+
exports.FARM_MARKDOWN_CONTENT_TYPE = _chunkEUV4YR3Vcjs.FARM_MARKDOWN_CONTENT_TYPE; exports.createFarmMarkdownErrorBody = _chunkEUV4YR3Vcjs.createFarmMarkdownErrorBody; exports.createFarmMarkdownRouteModule = _chunk42NHY7HWcjs.createFarmMarkdownRouteModule; exports.createFarmMarkdownRouteModuleFromFile = _chunkJZVADIODcjs.createFarmMarkdownRouteModuleFromFile; exports.createFarmMarkdownSourceResponse = _chunk42NHY7HWcjs.createFarmMarkdownSourceResponse; exports.createMarkdownMetadata = _chunk42NHY7HWcjs.createMarkdownMetadata; exports.farmRequestWantsMarkdown = _chunkEUV4YR3Vcjs.farmRequestWantsMarkdown; exports.isFarmMarkdownPageFile = _chunk42NHY7HWcjs.isFarmMarkdownPageFile; exports.isFarmMarkdownPublicSourceResponse = _chunk42NHY7HWcjs.isFarmMarkdownPublicSourceResponse; exports.loadFarmMdxComponents = _chunkJZVADIODcjs.loadFarmMdxComponents; exports.normalizeFarmMarkdownRoutePath = _chunk42NHY7HWcjs.normalizeFarmMarkdownRoutePath; exports.parseMarkdownFrontmatter = _chunk42NHY7HWcjs.parseMarkdownFrontmatter; exports.resolveFarmMdxComponentsModulePath = _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath; exports.resolveMdxConfig = _chunkOHY2ZWUGcjs.resolveMdxConfig; exports.titleFromMarkdown = _chunk42NHY7HWcjs.titleFromMarkdown;
|
package/dist/app-markdown.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-
|
|
2
|
-
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-
|
|
1
|
+
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-C3mK9Pol.mjs';
|
|
2
|
+
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-C3mK9Pol.mjs';
|
|
3
3
|
export { FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
|
|
4
4
|
import './lifecycle-DK06VuKP.mjs';
|
|
5
5
|
import './integration-api-0y4FXJpC.mjs';
|
|
@@ -18,19 +18,18 @@ import 'unstorage';
|
|
|
18
18
|
import './schema.mjs';
|
|
19
19
|
import 'react';
|
|
20
20
|
import '@farming-labs/orm';
|
|
21
|
-
import './types-DFbjpjXX.mjs';
|
|
22
21
|
import '@farming-labs/docs';
|
|
23
|
-
import './observability-
|
|
22
|
+
import './observability-CoXunYhS.mjs';
|
|
24
23
|
import '@opentelemetry/api';
|
|
25
24
|
import 'vite';
|
|
26
|
-
import './workflows-
|
|
25
|
+
import './workflows-jZ4BcdoZ.mjs';
|
|
27
26
|
import './cron.mjs';
|
|
28
27
|
import './env.mjs';
|
|
29
28
|
import './server-action-security.mjs';
|
|
30
29
|
import 'rolldown/utils';
|
|
31
30
|
import 'rolldown';
|
|
32
31
|
import './image-config-Duob7wER.mjs';
|
|
33
|
-
import './types-
|
|
32
|
+
import './types-CnH8DOqo.mjs';
|
|
34
33
|
import './types-DQnyD3VD.mjs';
|
|
35
34
|
import './font.mjs';
|
|
36
35
|
import './after.mjs';
|
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-
|
|
2
|
-
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-
|
|
1
|
+
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-r1mOtSC1.js';
|
|
2
|
+
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-r1mOtSC1.js';
|
|
3
3
|
export { FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
4
4
|
import './lifecycle-DK06VuKP.js';
|
|
5
5
|
import './integration-api-BPJo5oXb.js';
|
|
@@ -18,19 +18,18 @@ import 'unstorage';
|
|
|
18
18
|
import './schema.js';
|
|
19
19
|
import 'react';
|
|
20
20
|
import '@farming-labs/orm';
|
|
21
|
-
import './types-DFbjpjXX.js';
|
|
22
21
|
import '@farming-labs/docs';
|
|
23
|
-
import './observability-
|
|
22
|
+
import './observability-CoXunYhS.js';
|
|
24
23
|
import '@opentelemetry/api';
|
|
25
24
|
import 'vite';
|
|
26
|
-
import './workflows-
|
|
25
|
+
import './workflows-jZ4BcdoZ.js';
|
|
27
26
|
import './cron.js';
|
|
28
27
|
import './env.js';
|
|
29
28
|
import './server-action-security.js';
|
|
30
29
|
import 'rolldown/utils';
|
|
31
30
|
import 'rolldown';
|
|
32
31
|
import './image-config-Duob7wER.js';
|
|
33
|
-
import './types-
|
|
32
|
+
import './types-CnH8DOqo.js';
|
|
34
33
|
import './types-DQnyD3VD.js';
|
|
35
34
|
import './font.js';
|
|
36
35
|
import './after.js';
|
package/dist/app-markdown.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFarmMarkdownRouteModuleFromFile,
|
|
3
3
|
loadFarmMdxComponents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WZ77PUAM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createFarmMarkdownRouteModule,
|
|
7
7
|
createFarmMarkdownSourceResponse,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
normalizeFarmMarkdownRoutePath,
|
|
12
12
|
parseMarkdownFrontmatter,
|
|
13
13
|
titleFromMarkdown
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4WCZJQUO.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveFarmMdxComponentsModulePath,
|
|
17
17
|
resolveMdxConfig
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
FARM_MARKDOWN_CONTENT_TYPE,
|
|
21
21
|
createFarmMarkdownErrorBody,
|
|
22
22
|
farmRequestWantsMarkdown
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WWIKMBRN.mjs";
|
|
24
24
|
import "./chunk-MVL2RAJW.mjs";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-BTHHUD7Q.mjs";
|
|
25
|
+
import "./chunk-ZLAT2CWY.mjs";
|
|
27
26
|
import "./chunk-FUZEBRP3.mjs";
|
|
27
|
+
import "./chunk-BTHHUD7Q.mjs";
|
|
28
28
|
import "./chunk-O7BH5O46.mjs";
|
|
29
29
|
import "./chunk-7LTCDQRS.mjs";
|
|
30
30
|
import "./chunk-Z3HATSKO.mjs";
|