@farm.js/core 0.1.70 → 0.1.72
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-handler-6T2Z7TB6.cjs → agent-mcp-handler-KE4J3W7S.cjs} +4 -4
- package/dist/{agent-mcp-handler-CPU354QQ.mjs → agent-mcp-handler-VIT4GOSR.mjs} +3 -3
- package/dist/{agent-mcp.d-DulgFLBt.d.ts → agent-mcp.d-BO3rZXEM.d.ts} +15 -5
- package/dist/{agent-mcp.d-TAs1ES2F.d.mts → agent-mcp.d-Cwff7lcA.d.mts} +15 -5
- package/dist/agent-runtime.d.mts +3 -3
- package/dist/agent-runtime.d.ts +3 -3
- package/dist/{analyzer-QGRBLETM.mjs → analyzer-5Q75LTIL.mjs} +2 -2
- package/dist/analyzer-UJG4MIZW.cjs +16 -0
- package/dist/api/node.d.mts +5 -5
- package/dist/api/node.d.ts +5 -5
- package/dist/api/route-manager.cjs +7 -6
- package/dist/api/route-manager.d.mts +7 -7
- package/dist/api/route-manager.d.ts +7 -7
- package/dist/api/route-manager.mjs +6 -5
- package/dist/api/runtime.d.mts +4 -4
- package/dist/api/runtime.d.ts +4 -4
- package/dist/api.cjs +8 -7
- package/dist/api.d.mts +8 -8
- package/dist/api.d.ts +8 -8
- package/dist/api.mjs +7 -6
- package/dist/{app-manifest.d-C-nf3Vmm.d.ts → app-manifest.d-DwjGkYlP.d.ts} +1 -1
- package/dist/{app-manifest.d-6zXb90o6.d.mts → app-manifest.d-USD_IbFd.d.mts} +1 -1
- package/dist/app-markdown.cjs +5 -3
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/app-markdown.mjs +4 -2
- package/dist/{app.d-C2xeMIYT.d.ts → app.d-DAmF2MAk.d.ts} +52 -8
- package/dist/{app.d-DF0aundc.d.mts → app.d-fW06_h8h.d.mts} +52 -8
- package/dist/{chunk-7A3URI2F.mjs → chunk-2EVESLP3.mjs} +8 -1
- package/dist/{chunk-JRF2SKCD.mjs → chunk-3JN5M3T5.mjs} +259 -61
- package/dist/{chunk-XYVPTTUT.cjs → chunk-3WG7GJQL.cjs} +11 -6
- package/dist/{chunk-K66JILV3.cjs → chunk-5LOARKDP.cjs} +2 -2
- package/dist/{chunk-I7NUT24Z.cjs → chunk-5R4Q5FN7.cjs} +2 -2
- package/dist/{chunk-BPUVDCGG.cjs → chunk-5X6OHJEE.cjs} +15 -3
- package/dist/{chunk-RMOU3PR4.mjs → chunk-5XFKWHZD.mjs} +293 -66
- package/dist/{chunk-A2TH5MKE.mjs → chunk-645ENY7W.mjs} +3 -3
- package/dist/{chunk-NYF7A4UW.mjs → chunk-77VNYVVX.mjs} +1 -1
- package/dist/{chunk-32SYRIQ7.cjs → chunk-7QCJDYZQ.cjs} +3 -3
- package/dist/{chunk-QZHTDVH4.mjs → chunk-AUAMXI6N.mjs} +1 -1
- package/dist/{chunk-5R3JQPWD.mjs → chunk-AYVGD3PK.mjs} +1 -1
- package/dist/{chunk-IEN2EFE5.cjs → chunk-BE7AQXJB.cjs} +346 -148
- package/dist/{chunk-CCHJWJGP.mjs → chunk-BSXKZPFE.mjs} +204 -98
- package/dist/{chunk-2MR4MABG.cjs → chunk-C5AM2XDN.cjs} +54 -4
- package/dist/{chunk-M6U6E4F7.cjs → chunk-CBLRSZQL.cjs} +557 -330
- package/dist/{chunk-BBPDJGCU.cjs → chunk-CYOTNHDF.cjs} +2 -2
- package/dist/{chunk-5IJRJWJS.mjs → chunk-DGNMXL2O.mjs} +11 -1
- package/dist/{chunk-3EXCZJEN.mjs → chunk-DS7JGFW5.mjs} +13 -1
- package/dist/{chunk-EDZU7YRK.mjs → chunk-E2V7RRFL.mjs} +2 -2
- package/dist/{chunk-K7JMTAFH.cjs → chunk-E3LE6EZH.cjs} +20 -10
- package/dist/{chunk-DIHBWZDZ.cjs → chunk-ET6WW3FY.cjs} +636 -355
- package/dist/{chunk-65FPDDT4.cjs → chunk-EXN4DTVF.cjs} +2 -2
- package/dist/{chunk-K4UGCUXX.cjs → chunk-FSSONJRV.cjs} +7 -7
- package/dist/{chunk-Y2SZVIVH.cjs → chunk-GPICBTDV.cjs} +8 -1
- package/dist/{chunk-FJ5YCERM.cjs → chunk-HLMUWKAP.cjs} +466 -359
- package/dist/{chunk-A7HCBHMC.cjs → chunk-IWCYRDRQ.cjs} +3 -3
- package/dist/{chunk-R7254L3R.mjs → chunk-J5ASGNKF.mjs} +23 -0
- package/dist/{chunk-75E5FDX2.mjs → chunk-JMFTKNBA.mjs} +10 -10
- package/dist/{chunk-TLSSIYAL.mjs → chunk-KQAB5LML.mjs} +10 -3
- package/dist/{chunk-NSZY3EWG.cjs → chunk-L6E4SHUB.cjs} +31 -8
- package/dist/{chunk-OCNV4CI2.cjs → chunk-MQ4DYVFS.cjs} +26 -0
- package/dist/{chunk-4AC4PXZO.cjs → chunk-N3XO5AL5.cjs} +2 -2
- package/dist/{chunk-2AM26UGI.cjs → chunk-NLBK37HI.cjs} +5 -4
- package/dist/{chunk-R2ZHU37O.mjs → chunk-NLRAQXAA.mjs} +26 -0
- package/dist/{chunk-NA77GEIU.mjs → chunk-NV26EGMC.mjs} +51 -1
- package/dist/{chunk-LECZ5DPZ.cjs → chunk-OSEQL34Q.cjs} +2 -2
- package/dist/{chunk-3WS5AZ3R.mjs → chunk-OSMUE5ST.mjs} +8 -3
- package/dist/{chunk-JFPKARWM.cjs → chunk-PMU4U2W2.cjs} +1 -0
- package/dist/{chunk-KPMLDT3B.mjs → chunk-QUYAGU65.mjs} +581 -300
- package/dist/{chunk-N62IYXYD.mjs → chunk-RFWWXEIF.mjs} +1 -1
- package/dist/{chunk-E77IA5IF.mjs → chunk-RLFGKJQ6.mjs} +1 -1
- package/dist/{chunk-3AUINHFG.mjs → chunk-TNYC3TYP.mjs} +3 -2
- package/dist/{chunk-VG6HYT5K.cjs → chunk-TP4RAV7Y.cjs} +9 -9
- package/dist/{chunk-JFVT5ZZV.mjs → chunk-VAWDGGW3.mjs} +1 -1
- package/dist/{chunk-MU5V7XHL.mjs → chunk-VJSXPN3W.mjs} +3 -0
- package/dist/{chunk-DU4VHHPJ.mjs → chunk-VO55MMBX.mjs} +1 -1
- package/dist/{chunk-LDVJIBGN.mjs → chunk-VT25ERQK.mjs} +1 -1
- package/dist/{chunk-HAXFV2CD.mjs → chunk-WIJF3PBM.mjs} +1 -1
- package/dist/{chunk-QEWWKYDL.cjs → chunk-YCNHUIPR.cjs} +17 -10
- package/dist/{chunk-FILXOEWD.cjs → chunk-YXIQYWOK.cjs} +2 -2
- package/dist/{chunk-THG2TVDH.mjs → chunk-YZLEOMMA.mjs} +3 -3
- package/dist/{chunk-PJQ5W356.mjs → chunk-Z5ZZAGIH.mjs} +1 -0
- package/dist/{chunk-MZLJFNMH.cjs → chunk-ZDZUFD67.cjs} +1 -1
- package/dist/{chunk-Q5HMVGR5.cjs → chunk-ZFEJ2SF2.cjs} +13 -13
- package/dist/{chunk-LNVGXUL3.cjs → chunk-ZMSVKVI3.cjs} +3 -0
- package/dist/{client-component.d-DNbC4oWI.d.ts → client-component.d-9J7CkTWW.d.ts} +2 -2
- package/dist/{client-component.d-Bk5qKJM-.d.mts → client-component.d-ciHeCxr-.d.mts} +2 -2
- package/dist/{client-plugins.d-DwUqh4gp.d.ts → client-plugins.d-CUOhfapO.d.ts} +12 -8
- package/dist/{client-plugins.d-Pi9nG0W0.d.mts → client-plugins.d-JnRz5a1o.d.mts} +12 -8
- package/dist/client-plugins.d.mts +3 -3
- package/dist/client-plugins.d.ts +3 -3
- package/dist/client.cjs +1 -1
- package/dist/client.d.mts +8 -8
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +1 -1
- package/dist/config.d.mts +3 -3
- package/dist/config.d.ts +3 -3
- package/dist/desktop.d.mts +4 -4
- package/dist/desktop.d.ts +4 -4
- package/dist/{devtools-CB43AHEP.mjs → devtools-7JPQMSTQ.mjs} +4 -4
- package/dist/{devtools-L5DUNDF3.cjs → devtools-IZFUYWPG.cjs} +5 -5
- package/dist/docs.cjs +6 -6
- package/dist/docs.d.mts +4 -4
- package/dist/docs.d.ts +4 -4
- package/dist/docs.mjs +5 -5
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/{headers.d-CE6OWB-n.d.ts → headers.d-CqpTL_fZ.d.ts} +2 -2
- package/dist/{headers.d-DED1hHh4.d.mts → headers.d-rbbTKGaN.d.mts} +2 -2
- package/dist/i18n/client.cjs +3 -2
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/client.mjs +2 -1
- package/dist/i18n/index.cjs +3 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.mjs +2 -1
- package/dist/i18n/server.cjs +6 -5
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/i18n/server.mjs +5 -4
- package/dist/index.cjs +29 -27
- package/dist/{index.d-c9UwIqDy.d.ts → index.d-CMKvzHLW.d.ts} +1 -1
- package/dist/{index.d-CbvOjJcp.d.mts → index.d-D_B2D9Il.d.mts} +1 -1
- package/dist/index.d.mts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.mjs +28 -26
- package/dist/integrations/orm.d.mts +3 -3
- package/dist/integrations/orm.d.ts +3 -3
- package/dist/integrations.d.mts +3 -3
- package/dist/integrations.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.cjs +4 -2
- package/dist/internal/app-markdown-runtime.d.mts +13 -5
- package/dist/internal/app-markdown-runtime.d.ts +13 -5
- package/dist/internal/app-markdown-runtime.mjs +3 -1
- package/dist/internal/build-runtime.cjs +26 -26
- package/dist/internal/build-runtime.d.mts +5 -5
- package/dist/internal/build-runtime.d.ts +5 -5
- package/dist/internal/build-runtime.mjs +25 -25
- package/dist/internal/cli-runtime.cjs +9 -7
- package/dist/internal/cli-runtime.mjs +8 -6
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +2 -2
- package/dist/internal/client-runtime.d.mts +6 -6
- package/dist/internal/client-runtime.d.ts +6 -6
- package/dist/internal/client-runtime.mjs +3 -3
- package/dist/internal/compression-runtime.d.mts +3 -3
- package/dist/internal/compression-runtime.d.ts +3 -3
- package/dist/internal/config-runtime.cjs +6 -6
- package/dist/internal/config-runtime.d.mts +6 -6
- package/dist/internal/config-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/infra-analytics-runtime.cjs +8 -8
- package/dist/internal/infra-analytics-runtime.mjs +6 -6
- 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 +15 -15
- package/dist/internal/production-runtime.d.mts +41 -24
- package/dist/internal/production-runtime.d.ts +41 -24
- package/dist/internal/production-runtime.mjs +14 -14
- package/dist/internal/vercel-edge-middleware.d.mts +2 -2
- package/dist/internal/vercel-edge-middleware.d.ts +2 -2
- package/dist/markdown.d.mts +3 -3
- package/dist/markdown.d.ts +3 -3
- package/dist/middleware.cjs +3 -3
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +2 -2
- package/dist/mobile.d.mts +3 -3
- package/dist/mobile.d.ts +3 -3
- package/dist/{mount.d-DngLY7NL.d.ts → mount.d-B0XMxDRh.d.ts} +1 -1
- package/dist/{mount.d-BvWxf8ZE.d.mts → mount.d-ImEO7q8a.d.mts} +1 -1
- package/dist/{navigation-delegate.d-CMyl1h2l.d.mts → navigation-delegate.d-83Q7ksf7.d.mts} +1 -1
- package/dist/{navigation-delegate.d-zZogiDfa.d.ts → navigation-delegate.d-RRx1CSlb.d.ts} +1 -1
- package/dist/navigation.d.mts +6 -6
- package/dist/navigation.d.ts +6 -6
- package/dist/{nitro-Y3LGITW3.cjs → nitro-2LMOMIST.cjs} +2 -2
- package/dist/{nitro-NSTXT7LB.mjs → nitro-72TFIGGO.mjs} +1 -1
- package/dist/{plugin-F2O4BFTK.cjs → plugin-5PIQQVRP.cjs} +2 -2
- package/dist/{plugin-VEBRN7A3.mjs → plugin-QZT747YW.mjs} +1 -1
- package/dist/plugin.cjs +20 -20
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +19 -19
- package/dist/{production-runtime.d-B0IeWWyO.d.mts → production-runtime.d-Bcu37SCo.d.mts} +1 -1
- package/dist/{production-runtime.d-q3aHIv5Y.d.ts → production-runtime.d-qPj3XRET.d.ts} +1 -1
- package/dist/{render-plan.d-DQj2bzd2.d.ts → render-plan.d-Ds2sXJ5m.d.ts} +1 -1
- package/dist/{render-plan.d-Di1znBDW.d.mts → render-plan.d-wP8nTeRV.d.mts} +1 -1
- package/dist/renderer-client.cjs +3 -2
- package/dist/renderer-client.d.mts +6 -6
- package/dist/renderer-client.d.ts +6 -6
- package/dist/renderer-client.mjs +2 -1
- package/dist/{request.d-CJWzfDYJ.d.mts → request.d-F3h7K37m.d.mts} +1 -1
- package/dist/{request.d-C5vyoYeL.d.ts → request.d-zpSn6pu_.d.ts} +1 -1
- package/dist/request.d.mts +4 -4
- package/dist/request.d.ts +4 -4
- package/dist/{resolver.d-9iKC79CU.d.mts → resolver.d-DJgzbdsp.d.mts} +1 -1
- package/dist/{resolver.d-CY6mEa_F.d.ts → resolver.d-yaHcGCCG.d.ts} +1 -1
- package/dist/{route-rendering.d-DhsY5M2I.d.ts → route-rendering.d-BL0_AdKj.d.ts} +1 -1
- package/dist/{route-rendering.d-C-et2TZ1.d.mts → route-rendering.d-Mw0ZKG2e.d.mts} +1 -1
- package/dist/{router.d-CJB-Ntni.d.ts → router.d-BwXigemZ.d.ts} +1 -1
- package/dist/{router.d-BMDS5s5X.d.mts → router.d-NGVsU11T.d.mts} +1 -1
- package/dist/{routes.d-D3aJw1H5.d.mts → routes.d-CCccJRrp.d.mts} +1 -1
- package/dist/{routes.d-K-Qg79AA.d.ts → routes.d-b7khoRoU.d.ts} +1 -1
- package/dist/routes.d.mts +3 -3
- package/dist/routes.d.ts +3 -3
- package/dist/{routing.d-BxOZ2YWc.d.ts → routing.d-BhPgtN_S.d.ts} +2 -1
- package/dist/{routing.d-DwSUVZbF.d.mts → routing.d-D67HQmnv.d.mts} +2 -1
- package/dist/{rsc-pipeline-NJKLZ3YE.cjs → rsc-pipeline-BNXYMG4G.cjs} +6 -6
- package/dist/{rsc-pipeline-AXQJCCHI.mjs → rsc-pipeline-DHYZLWSF.mjs} +5 -5
- package/dist/{runtime-DMW6DDOI.cjs → runtime-IWOT6ZVC.cjs} +7 -7
- package/dist/{runtime-JXNEKOSE.mjs → runtime-XPYKUNL3.mjs} +5 -5
- package/dist/{runtime.d-BonodRI9.d.mts → runtime.d-BA3MzhXz.d.mts} +1 -1
- package/dist/{runtime.d-nUz0HAL4.d.mts → runtime.d-CTAXWZby.d.mts} +2 -2
- package/dist/{runtime.d-uw4123iI.d.ts → runtime.d-OBIZWpx1.d.ts} +1 -1
- package/dist/{runtime.d-B_uPfMjA.d.ts → runtime.d-PUA5qBnd.d.ts} +2 -2
- package/dist/server-plugins.d.mts +5 -5
- package/dist/server-plugins.d.ts +5 -5
- package/dist/server.cjs +40 -40
- package/dist/server.d.mts +14 -14
- package/dist/server.d.ts +14 -14
- package/dist/server.mjs +22 -22
- package/dist/{spa-router.d-rha3M95y.d.mts → spa-router.d-BG2XzE5p.d.mts} +3 -3
- package/dist/{spa-router.d-l0d9pPZj.d.ts → spa-router.d-DrYT944-.d.ts} +3 -3
- package/dist/testing.cjs +6 -5
- package/dist/testing.d.mts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.mjs +6 -5
- package/dist/{types.d-wVRlLtBf.d.mts → types.d-euATAbE4.d.mts} +4 -0
- package/dist/{types.d-wVRlLtBf.d.ts → types.d-euATAbE4.d.ts} +4 -0
- package/dist/{utils.d-BzuTobEc.d.mts → utils.d-C1k9BJeD.d.mts} +1 -1
- package/dist/{utils.d-BK-PTOF8.d.ts → utils.d-DcF4wxey.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +20 -20
- package/dist/vite.d.mts +9 -7
- package/dist/vite.d.ts +9 -7
- package/dist/vite.mjs +19 -19
- package/package.json +2 -2
- package/dist/analyzer-GUIRJWZH.cjs +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aK as FarmMCPCatalogDetails, aL as ResolvedFarmAppManifestConfig } from './client-plugins.d-
|
|
1
|
+
import { aK as FarmMCPCatalogDetails, aL as ResolvedFarmAppManifestConfig } from './client-plugins.d-JnRz5a1o.mjs';
|
|
2
2
|
|
|
3
3
|
interface FarmAppManifestWebMCPTool {
|
|
4
4
|
name: string;
|
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 _chunkN3XO5AL5cjs = require('./chunk-N3XO5AL5.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -12,7 +12,8 @@ var _chunk4AC4PXZOcjs = require('./chunk-4AC4PXZO.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
var _chunkL6E4SHUBcjs = require('./chunk-L6E4SHUB.cjs');
|
|
16
17
|
require('./chunk-UNJZGVPU.cjs');
|
|
17
18
|
|
|
18
19
|
|
|
@@ -50,4 +51,5 @@ require('./chunk-BTZ5O6VM.cjs');
|
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
|
|
55
|
+
exports.FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS = _chunkL6E4SHUBcjs.FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS; exports.FARM_MARKDOWN_CONTENT_TYPE = _chunkC2JOS77Zcjs.FARM_MARKDOWN_CONTENT_TYPE; exports.createFarmMarkdownErrorBody = _chunkC2JOS77Zcjs.createFarmMarkdownErrorBody; exports.createFarmMarkdownRouteModule = _chunkL6E4SHUBcjs.createFarmMarkdownRouteModule; exports.createFarmMarkdownRouteModuleFromFile = _chunkN3XO5AL5cjs.createFarmMarkdownRouteModuleFromFile; exports.createFarmMarkdownSourceResponse = _chunkL6E4SHUBcjs.createFarmMarkdownSourceResponse; exports.createMarkdownMetadata = _chunkL6E4SHUBcjs.createMarkdownMetadata; exports.farmRequestWantsMarkdown = _chunkC2JOS77Zcjs.farmRequestWantsMarkdown; exports.isFarmMarkdownPageFile = _chunkL6E4SHUBcjs.isFarmMarkdownPageFile; exports.isFarmMarkdownPublicSourceResponse = _chunkL6E4SHUBcjs.isFarmMarkdownPublicSourceResponse; exports.loadFarmMdxComponents = _chunkN3XO5AL5cjs.loadFarmMdxComponents; exports.normalizeFarmMarkdownRoutePath = _chunkL6E4SHUBcjs.normalizeFarmMarkdownRoutePath; exports.parseMarkdownFrontmatter = _chunkL6E4SHUBcjs.parseMarkdownFrontmatter; exports.readFarmMarkdownRouteConfig = _chunkL6E4SHUBcjs.readFarmMarkdownRouteConfig; exports.resolveFarmMdxComponentsModulePath = _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath; exports.resolveMdxConfig = _chunk2HW5LWAHcjs.resolveMdxConfig; exports.titleFromMarkdown = _chunkL6E4SHUBcjs.titleFromMarkdown;
|
package/dist/app-markdown.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as RouteModule, h as FarmMdxResolvedConfig, g as FarmMdxComponents } from './client-plugins.d-
|
|
2
|
-
export { k as FARM_MARKDOWN_CONTENT_TYPE, n as FarmMdxComponent, o as FarmMdxUserConfig, l as createFarmMarkdownErrorBody, m as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, p as resolveMdxConfig } from './client-plugins.d-
|
|
1
|
+
import { i as RouteModule, h as FarmMdxResolvedConfig, g as FarmMdxComponents } from './client-plugins.d-JnRz5a1o.mjs';
|
|
2
|
+
export { k as FARM_MARKDOWN_CONTENT_TYPE, n as FarmMdxComponent, o as FarmMdxUserConfig, l as createFarmMarkdownErrorBody, m as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, p as resolveMdxConfig } from './client-plugins.d-JnRz5a1o.mjs';
|
|
3
3
|
import { FarmMarkdownPageModuleInput } from './internal/app-markdown-runtime.mjs';
|
|
4
|
-
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
|
|
4
|
+
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, readFarmMarkdownRouteConfig, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
|
|
5
5
|
import './lifecycle.d-keQs5Swc.mjs';
|
|
6
6
|
import './route.d-DrXkpvcg.mjs';
|
|
7
7
|
import './endpoint.d-BkMSCRf6.mjs';
|
|
@@ -9,8 +9,8 @@ import './cache.mjs';
|
|
|
9
9
|
import './renderer.mjs';
|
|
10
10
|
import './deployment.mjs';
|
|
11
11
|
import 'http';
|
|
12
|
-
import './routing.d-
|
|
13
|
-
import './types.d-
|
|
12
|
+
import './routing.d-D67HQmnv.mjs';
|
|
13
|
+
import './types.d-euATAbE4.mjs';
|
|
14
14
|
import './server-fn.mjs';
|
|
15
15
|
import './server-fn-error.d-DrcH9cc1.mjs';
|
|
16
16
|
import './server-query.mjs';
|
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as RouteModule, h as FarmMdxResolvedConfig, g as FarmMdxComponents } from './client-plugins.d-
|
|
2
|
-
export { k as FARM_MARKDOWN_CONTENT_TYPE, n as FarmMdxComponent, o as FarmMdxUserConfig, l as createFarmMarkdownErrorBody, m as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, p as resolveMdxConfig } from './client-plugins.d-
|
|
1
|
+
import { i as RouteModule, h as FarmMdxResolvedConfig, g as FarmMdxComponents } from './client-plugins.d-CUOhfapO.js';
|
|
2
|
+
export { k as FARM_MARKDOWN_CONTENT_TYPE, n as FarmMdxComponent, o as FarmMdxUserConfig, l as createFarmMarkdownErrorBody, m as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, p as resolveMdxConfig } from './client-plugins.d-CUOhfapO.js';
|
|
3
3
|
import { FarmMarkdownPageModuleInput } from './internal/app-markdown-runtime.js';
|
|
4
|
-
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
4
|
+
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, readFarmMarkdownRouteConfig, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
5
5
|
import './lifecycle.d-keQs5Swc.js';
|
|
6
6
|
import './route.d-hs-_cyHn.js';
|
|
7
7
|
import './endpoint.d-BgHn0lhl.js';
|
|
@@ -9,8 +9,8 @@ import './cache.js';
|
|
|
9
9
|
import './renderer.js';
|
|
10
10
|
import './deployment.js';
|
|
11
11
|
import 'http';
|
|
12
|
-
import './routing.d-
|
|
13
|
-
import './types.d-
|
|
12
|
+
import './routing.d-BhPgtN_S.js';
|
|
13
|
+
import './types.d-euATAbE4.js';
|
|
14
14
|
import './server-fn.js';
|
|
15
15
|
import './server-fn-error.d-DrcH9cc1.js';
|
|
16
16
|
import './server-query.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-AYVGD3PK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS,
|
|
7
7
|
createFarmMarkdownRouteModule,
|
|
@@ -11,8 +11,9 @@ import {
|
|
|
11
11
|
isFarmMarkdownPublicSourceResponse,
|
|
12
12
|
normalizeFarmMarkdownRoutePath,
|
|
13
13
|
parseMarkdownFrontmatter,
|
|
14
|
+
readFarmMarkdownRouteConfig,
|
|
14
15
|
titleFromMarkdown
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-J5ASGNKF.mjs";
|
|
16
17
|
import "./chunk-BRYPZIMB.mjs";
|
|
17
18
|
import {
|
|
18
19
|
resolveFarmMdxComponentsModulePath,
|
|
@@ -47,6 +48,7 @@ export {
|
|
|
47
48
|
loadFarmMdxComponents,
|
|
48
49
|
normalizeFarmMarkdownRoutePath,
|
|
49
50
|
parseMarkdownFrontmatter,
|
|
51
|
+
readFarmMarkdownRouteConfig,
|
|
50
52
|
resolveFarmMdxComponentsModulePath,
|
|
51
53
|
resolveMdxConfig,
|
|
52
54
|
titleFromMarkdown
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-
|
|
1
|
+
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-CUOhfapO.js';
|
|
2
2
|
import { FarmWorkflowsResolvedConfig } from './workflows.js';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.js';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
6
|
-
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-
|
|
6
|
+
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-9J7CkTWW.js';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-BO3rZXEM.js';
|
|
9
9
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
10
10
|
import { FarmRenderer, FarmServerRendererRuntime } from './renderer.js';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
12
|
-
import { R as ResolvedFarmI18nConfig } from './types.d-
|
|
13
|
-
import { F as FarmI18nRuntime } from './runtime.d-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-Ds2sXJ5m.js';
|
|
12
|
+
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.js';
|
|
13
|
+
import { F as FarmI18nRuntime } from './runtime.d-PUA5qBnd.js';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types.d-DQnyD3VD.js';
|
|
15
15
|
|
|
16
16
|
declare const STATIC_METADATA_IMAGE_EXTENSIONS: readonly ["png", "jpg", "jpeg", "gif", "webp"];
|
|
@@ -159,6 +159,11 @@ declare class RouteManager {
|
|
|
159
159
|
private packageClientBoundaryCacheFile?;
|
|
160
160
|
private clientManifestCache?;
|
|
161
161
|
private reportedIslandsErrors;
|
|
162
|
+
private ownerPlans;
|
|
163
|
+
private sourceChangeTracking;
|
|
164
|
+
private linkedSources;
|
|
165
|
+
private sourceSnapshot?;
|
|
166
|
+
private editedSources;
|
|
162
167
|
constructor(config: FarmRendererResolvedConfig, viteServer?: ViteDevServer);
|
|
163
168
|
setRendererRuntime(rendererRuntime: FarmServerRendererRuntime): void;
|
|
164
169
|
/**
|
|
@@ -250,11 +255,46 @@ declare class RouteManager {
|
|
|
250
255
|
* Requests still fetch route data, but never inspect component source.
|
|
251
256
|
*/
|
|
252
257
|
generateClientManifest(projectRoot?: string): FarmClientRouteManifest;
|
|
258
|
+
/**
|
|
259
|
+
* @internal The dev server reports every watched change (`noteSourceChange`), so a replan can
|
|
260
|
+
* reuse the plan of each route module that read none of the edited files. Without tracking,
|
|
261
|
+
* every plan recomputes every module.
|
|
262
|
+
*/
|
|
263
|
+
trackSourceChanges(): void;
|
|
264
|
+
/**
|
|
265
|
+
* @internal A watched file changed. An edit to a script narrows the next replan to the route
|
|
266
|
+
* modules that read it; a script added or removed (where an import may now resolve), or a
|
|
267
|
+
* changed JSON file (a package manifest or tsconfig paths), replans everything. Other files
|
|
268
|
+
* (stylesheets, Markdown, assets) are not read by plans.
|
|
269
|
+
*/
|
|
270
|
+
noteSourceChange(file: string, event: "create" | "update" | "delete"): void;
|
|
271
|
+
/**
|
|
272
|
+
* @internal Whether an edit to `file` leaves the current plan as it is: a client module the
|
|
273
|
+
* last plan read whose directive, island and hydrate exports, export shape and imports the edit
|
|
274
|
+
* kept. The next replan reads it again (the watcher reported it).
|
|
275
|
+
*/
|
|
276
|
+
isEditPlanNeutral(file: string): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* A route module's plan: the last one when it read none of `edited`, recomputed otherwise.
|
|
279
|
+
* Callers get a copy, since the route budget rewrites a plan's fields in place.
|
|
280
|
+
*/
|
|
281
|
+
private planRouteModule;
|
|
282
|
+
/**
|
|
283
|
+
* The path the watcher reports for a file a plan read: itself, or the real path of a workspace
|
|
284
|
+
* package's source read through its `node_modules` link. Null for an installed package's file.
|
|
285
|
+
*/
|
|
286
|
+
private planSourcePath;
|
|
253
287
|
/**
|
|
254
288
|
* @internal Keep package client-boundary inspections in `file` between plans, as the dev server
|
|
255
289
|
* does. Without it, each plan outside a production build reads every package's sources again.
|
|
256
290
|
*/
|
|
257
291
|
usePackageClientBoundaryCacheFile(file: string): void;
|
|
292
|
+
/**
|
|
293
|
+
* @internal Run `operation` (synchronous) with the package inspections of the latest plan, as
|
|
294
|
+
* the dev server's transforms and renders inspect the packages a module imports. Without a cache
|
|
295
|
+
* file (outside the dev server), it runs as it is.
|
|
296
|
+
*/
|
|
297
|
+
inspectPackages<T>(operation: () => T): T;
|
|
258
298
|
private computeClientManifest;
|
|
259
299
|
/**
|
|
260
300
|
* Rebuild route metadata transactionally for HMR. If a file is temporarily
|
|
@@ -410,6 +450,8 @@ declare class ServerRenderer {
|
|
|
410
450
|
private createLayoutBoundary;
|
|
411
451
|
private wrapClientGraph;
|
|
412
452
|
/** The page a hydrating layout keeps as server HTML: islands again, or a server tree. */
|
|
453
|
+
/** The route root's strategy, inspecting packages with the dev server's latest plan's cache. */
|
|
454
|
+
private resolveRouteRootStrategy;
|
|
413
455
|
private isolateServerPage;
|
|
414
456
|
private renderElementToCompleteHTML;
|
|
415
457
|
/**
|
|
@@ -500,10 +542,12 @@ declare class ServerRenderer {
|
|
|
500
542
|
/** Same inputs the production server gives llms.txt: static pages and root metadata. */
|
|
501
543
|
private createLlmsTxtContext;
|
|
502
544
|
/**
|
|
503
|
-
* The origin llms.txt
|
|
504
|
-
* request's origin, as for the sitemap and the production server.
|
|
545
|
+
* The origin llms.txt, llms-full.txt and list_pages link to: the root layout's
|
|
546
|
+
* `metadataBase`, else the request's origin, as for the sitemap and the production server.
|
|
505
547
|
*/
|
|
506
548
|
private getAgentOrigin;
|
|
549
|
+
/** The root layout's `metadataBase`, which generated agent files and list_pages link to. */
|
|
550
|
+
private getRootMetadataBase;
|
|
507
551
|
/**
|
|
508
552
|
* Reads page mirrors back through this dev server, the way its .md handler
|
|
509
553
|
* renders pages, so Markdown sources and agent overrides are included. Requests
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-
|
|
1
|
+
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-JnRz5a1o.mjs';
|
|
2
2
|
import { FarmWorkflowsResolvedConfig } from './workflows.mjs';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.mjs';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.mjs';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
|
|
6
|
-
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-
|
|
6
|
+
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-ciHeCxr-.mjs';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-Cwff7lcA.mjs';
|
|
9
9
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
10
10
|
import { FarmRenderer, FarmServerRendererRuntime } from './renderer.mjs';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
12
|
-
import { R as ResolvedFarmI18nConfig } from './types.d-
|
|
13
|
-
import { F as FarmI18nRuntime } from './runtime.d-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-wP8nTeRV.mjs';
|
|
12
|
+
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
|
|
13
|
+
import { F as FarmI18nRuntime } from './runtime.d-CTAXWZby.mjs';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types.d-DQnyD3VD.mjs';
|
|
15
15
|
|
|
16
16
|
declare const STATIC_METADATA_IMAGE_EXTENSIONS: readonly ["png", "jpg", "jpeg", "gif", "webp"];
|
|
@@ -159,6 +159,11 @@ declare class RouteManager {
|
|
|
159
159
|
private packageClientBoundaryCacheFile?;
|
|
160
160
|
private clientManifestCache?;
|
|
161
161
|
private reportedIslandsErrors;
|
|
162
|
+
private ownerPlans;
|
|
163
|
+
private sourceChangeTracking;
|
|
164
|
+
private linkedSources;
|
|
165
|
+
private sourceSnapshot?;
|
|
166
|
+
private editedSources;
|
|
162
167
|
constructor(config: FarmRendererResolvedConfig, viteServer?: ViteDevServer);
|
|
163
168
|
setRendererRuntime(rendererRuntime: FarmServerRendererRuntime): void;
|
|
164
169
|
/**
|
|
@@ -250,11 +255,46 @@ declare class RouteManager {
|
|
|
250
255
|
* Requests still fetch route data, but never inspect component source.
|
|
251
256
|
*/
|
|
252
257
|
generateClientManifest(projectRoot?: string): FarmClientRouteManifest;
|
|
258
|
+
/**
|
|
259
|
+
* @internal The dev server reports every watched change (`noteSourceChange`), so a replan can
|
|
260
|
+
* reuse the plan of each route module that read none of the edited files. Without tracking,
|
|
261
|
+
* every plan recomputes every module.
|
|
262
|
+
*/
|
|
263
|
+
trackSourceChanges(): void;
|
|
264
|
+
/**
|
|
265
|
+
* @internal A watched file changed. An edit to a script narrows the next replan to the route
|
|
266
|
+
* modules that read it; a script added or removed (where an import may now resolve), or a
|
|
267
|
+
* changed JSON file (a package manifest or tsconfig paths), replans everything. Other files
|
|
268
|
+
* (stylesheets, Markdown, assets) are not read by plans.
|
|
269
|
+
*/
|
|
270
|
+
noteSourceChange(file: string, event: "create" | "update" | "delete"): void;
|
|
271
|
+
/**
|
|
272
|
+
* @internal Whether an edit to `file` leaves the current plan as it is: a client module the
|
|
273
|
+
* last plan read whose directive, island and hydrate exports, export shape and imports the edit
|
|
274
|
+
* kept. The next replan reads it again (the watcher reported it).
|
|
275
|
+
*/
|
|
276
|
+
isEditPlanNeutral(file: string): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* A route module's plan: the last one when it read none of `edited`, recomputed otherwise.
|
|
279
|
+
* Callers get a copy, since the route budget rewrites a plan's fields in place.
|
|
280
|
+
*/
|
|
281
|
+
private planRouteModule;
|
|
282
|
+
/**
|
|
283
|
+
* The path the watcher reports for a file a plan read: itself, or the real path of a workspace
|
|
284
|
+
* package's source read through its `node_modules` link. Null for an installed package's file.
|
|
285
|
+
*/
|
|
286
|
+
private planSourcePath;
|
|
253
287
|
/**
|
|
254
288
|
* @internal Keep package client-boundary inspections in `file` between plans, as the dev server
|
|
255
289
|
* does. Without it, each plan outside a production build reads every package's sources again.
|
|
256
290
|
*/
|
|
257
291
|
usePackageClientBoundaryCacheFile(file: string): void;
|
|
292
|
+
/**
|
|
293
|
+
* @internal Run `operation` (synchronous) with the package inspections of the latest plan, as
|
|
294
|
+
* the dev server's transforms and renders inspect the packages a module imports. Without a cache
|
|
295
|
+
* file (outside the dev server), it runs as it is.
|
|
296
|
+
*/
|
|
297
|
+
inspectPackages<T>(operation: () => T): T;
|
|
258
298
|
private computeClientManifest;
|
|
259
299
|
/**
|
|
260
300
|
* Rebuild route metadata transactionally for HMR. If a file is temporarily
|
|
@@ -410,6 +450,8 @@ declare class ServerRenderer {
|
|
|
410
450
|
private createLayoutBoundary;
|
|
411
451
|
private wrapClientGraph;
|
|
412
452
|
/** The page a hydrating layout keeps as server HTML: islands again, or a server tree. */
|
|
453
|
+
/** The route root's strategy, inspecting packages with the dev server's latest plan's cache. */
|
|
454
|
+
private resolveRouteRootStrategy;
|
|
413
455
|
private isolateServerPage;
|
|
414
456
|
private renderElementToCompleteHTML;
|
|
415
457
|
/**
|
|
@@ -500,10 +542,12 @@ declare class ServerRenderer {
|
|
|
500
542
|
/** Same inputs the production server gives llms.txt: static pages and root metadata. */
|
|
501
543
|
private createLlmsTxtContext;
|
|
502
544
|
/**
|
|
503
|
-
* The origin llms.txt
|
|
504
|
-
* request's origin, as for the sitemap and the production server.
|
|
545
|
+
* The origin llms.txt, llms-full.txt and list_pages link to: the root layout's
|
|
546
|
+
* `metadataBase`, else the request's origin, as for the sitemap and the production server.
|
|
505
547
|
*/
|
|
506
548
|
private getAgentOrigin;
|
|
549
|
+
/** The root layout's `metadataBase`, which generated agent files and list_pages link to. */
|
|
550
|
+
private getRootMetadataBase;
|
|
507
551
|
/**
|
|
508
552
|
* Reads page mirrors back through this dev server, the way its .md handler
|
|
509
553
|
* renders pages, so Markdown sources and agent overrides are included. Requests
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeCookieName
|
|
3
3
|
} from "./chunk-AY2YD5ZX.mjs";
|
|
4
|
+
import {
|
|
5
|
+
normalizeFarmTrailingSlashPathname
|
|
6
|
+
} from "./chunk-4O26BPUY.mjs";
|
|
4
7
|
import {
|
|
5
8
|
localizeFarmPathname,
|
|
6
9
|
resolveFarmLocalePath
|
|
@@ -57,7 +60,11 @@ function resolveFarmLocaleRequest(request, config, options = {}) {
|
|
|
57
60
|
locale: detected.locale,
|
|
58
61
|
source: detected.source,
|
|
59
62
|
pathname: pathMatch.pathname,
|
|
60
|
-
|
|
63
|
+
// Straight to the locale page's canonical URL, with the app's trailingSlash, not a second hop.
|
|
64
|
+
redirect: shouldRedirect ? `${normalizeFarmTrailingSlashPathname(
|
|
65
|
+
localizeFarmPathname(pathMatch.pathname, detected.locale, config),
|
|
66
|
+
config.trailingSlash === true
|
|
67
|
+
)}${url.search}${url.hash}` : void 0,
|
|
61
68
|
persist: detected.source !== "default"
|
|
62
69
|
};
|
|
63
70
|
}
|