@farm.js/core 0.1.34 → 0.1.35
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-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +4 -5
- package/dist/agent-runtime.d.ts +4 -5
- package/dist/agent-runtime.mjs +2 -2
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +6 -7
- package/dist/api/route-manager.d.ts +6 -7
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +6 -4
- package/dist/api/runtime.d.mts +4 -5
- package/dist/api/runtime.d.ts +4 -5
- package/dist/api/runtime.mjs +6 -4
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +7 -8
- package/dist/api.d.ts +7 -8
- package/dist/api.mjs +5 -5
- package/dist/{app-DgotYGbq.d.ts → app-BXB3JZYc.d.ts} +38 -12
- package/dist/{app-q4rmZlXK.d.mts → app-D_j9AAVL.d.mts} +38 -12
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +5 -6
- package/dist/app-markdown.d.ts +5 -6
- package/dist/app-markdown.mjs +4 -4
- package/dist/{chunk-LMJ7VRHZ.mjs → chunk-22LTEMGQ.mjs} +1 -1
- package/dist/{chunk-AQZFOP7S.mjs → chunk-2G2NNLE2.mjs} +1 -1
- package/dist/{chunk-QJ3J6MZT.cjs → chunk-3BHT4WMP.cjs} +2 -2
- package/dist/{chunk-X242HVD5.mjs → chunk-3PXS2MHU.mjs} +1 -1
- package/dist/{chunk-A5FGU2WU.cjs → chunk-3UH7MRCP.cjs} +19 -23
- package/dist/{chunk-AGC75XAE.mjs → chunk-4JHOT46A.mjs} +1 -1
- package/dist/{chunk-XV5DJTBX.mjs → chunk-4KU5Q7C2.mjs} +424 -230
- package/dist/{chunk-TA5G2HWD.cjs → chunk-4MMGO7YW.cjs} +21 -21
- package/dist/{chunk-7BT4H4P7.cjs → chunk-62XKI4Z3.cjs} +2 -2
- package/dist/{chunk-ZKP7C2B6.mjs → chunk-6DU6UFUE.mjs} +12 -11
- package/dist/{chunk-GOABMOX3.mjs → chunk-6ETPZTJI.mjs} +366 -4
- package/dist/{chunk-7Y6ZNFPX.mjs → chunk-6TJOML4E.mjs} +13 -3
- package/dist/{chunk-3ATMYLLJ.mjs → chunk-6WCPV6G2.mjs} +1 -1
- package/dist/{chunk-BTAG7LI7.cjs → chunk-73MC7ZL6.cjs} +2 -2
- package/dist/chunk-75RZHGLS.cjs +135 -0
- package/dist/{chunk-VKNHTSAP.cjs → chunk-7GLPRTTF.cjs} +2 -2
- package/dist/{chunk-7M52YUMY.cjs → chunk-7L5V3KQO.cjs} +2 -2
- package/dist/{chunk-LI2LMOLR.mjs → chunk-C35ZBVRD.mjs} +12 -3
- package/dist/{chunk-YQVSHTMR.mjs → chunk-CP6X4AEU.mjs} +1 -1
- package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
- package/dist/{chunk-ATK2R4CH.cjs → chunk-D227TIEN.cjs} +14 -4
- package/dist/{chunk-ROUTX2E5.cjs → chunk-DBNKI4NF.cjs} +12 -3
- package/dist/{chunk-UX5S4JEO.cjs → chunk-EFCQPQMG.cjs} +3 -3
- package/dist/{chunk-K3F2E6GS.cjs → chunk-EJQT6KZN.cjs} +2 -2
- 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-WNNYOOIB.mjs → chunk-F6Z3Y5KL.mjs} +1 -1
- package/dist/{chunk-PQDFUSXD.cjs → chunk-F7JZENPF.cjs} +33 -32
- package/dist/{chunk-TDFPACVX.cjs → chunk-FTFYRMQQ.cjs} +18 -18
- package/dist/{chunk-657WJNRY.mjs → chunk-G5RT7EXW.mjs} +1 -1
- package/dist/{chunk-MOKLYNHV.cjs → chunk-GFHLGIYC.cjs} +6 -6
- package/dist/{chunk-AWC4VUZL.cjs → chunk-GQ3Z3IZI.cjs} +14 -14
- package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
- package/dist/{chunk-GNSDTTWZ.mjs → chunk-HMIJDL7S.mjs} +1 -1
- package/dist/{chunk-PXKIEXZD.mjs → chunk-HUMR6LSU.mjs} +1 -1
- package/dist/{chunk-SJVKK4JE.cjs → chunk-ICUQICNC.cjs} +912 -718
- package/dist/{chunk-P64MIF5B.cjs → chunk-IPXLADVO.cjs} +387 -25
- package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
- package/dist/{chunk-2NQQ5H5G.cjs → chunk-M7MKQXAF.cjs} +2 -1
- package/dist/chunk-NRDBW4MP.mjs +45 -0
- package/dist/chunk-OFZUJMCU.mjs +601 -0
- package/dist/{chunk-VCCUOMQN.mjs → chunk-OKZUAXHF.mjs} +1 -1
- package/dist/{chunk-EM6SBQKM.cjs → chunk-OMVAU7NT.cjs} +27 -2
- package/dist/{chunk-O27L4YAA.mjs → chunk-PDOCJ6RY.mjs} +2 -2
- package/dist/{chunk-36MK5YCW.cjs → chunk-PFQKNERH.cjs} +346 -206
- package/dist/{chunk-HR5KPHC2.mjs → chunk-Q3VLETLE.mjs} +1 -1
- package/dist/{chunk-LR5QSC2P.mjs → chunk-QAU5JD57.mjs} +211 -71
- package/dist/{chunk-LHODW25H.mjs → chunk-QORUJDIV.mjs} +2 -2
- package/dist/{chunk-UBO4SGH4.mjs → chunk-RHAZ22ZN.mjs} +2 -1
- package/dist/{chunk-ZHPHJPQP.cjs → chunk-RU3M2FIK.cjs} +18 -14
- package/dist/{chunk-JDPAKVS4.mjs → chunk-SAZVVAJH.mjs} +3 -3
- package/dist/{chunk-6VVL3MHY.mjs → chunk-SC2WYWPF.mjs} +1 -1
- package/dist/{chunk-QCFFHV5H.mjs → chunk-SMHH4VDG.mjs} +1 -1
- package/dist/{chunk-U4PTAHW3.mjs → chunk-SOMHP6GF.mjs} +7 -11
- package/dist/{chunk-VHANUNEG.mjs → chunk-UAORZ7QA.mjs} +2 -2
- package/dist/{chunk-NGVORZVZ.mjs → chunk-UJD4PHYB.mjs} +15 -11
- package/dist/{chunk-U74I55WB.cjs → chunk-ULAWS2PA.cjs} +13 -3
- package/dist/{chunk-MPEYMSCF.cjs → chunk-VFQT3LAO.cjs} +5 -5
- package/dist/{chunk-Z2YLTERK.cjs → chunk-VZJR7UTG.cjs} +6 -6
- package/dist/chunk-WWFTAUFG.cjs +45 -0
- package/dist/{chunk-ZUSJDQ2Q.mjs → chunk-WWIKMBRN.mjs} +1 -1
- package/dist/{chunk-QGYRXFU2.cjs → chunk-X6W5FFH6.cjs} +8 -8
- package/dist/{chunk-MIDIZJZC.cjs → chunk-XBML5KMG.cjs} +8 -8
- package/dist/{chunk-G26MUMKL.cjs → chunk-XCACDAZZ.cjs} +4 -4
- package/dist/{chunk-CLJYVZAD.mjs → chunk-XCMCS4DA.mjs} +11 -1
- package/dist/{chunk-XF7Q24PF.mjs → chunk-Y7RKTKYI.mjs} +25 -0
- package/dist/{chunk-ODBZYBAB.cjs → chunk-YC6V7PWE.cjs} +1 -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-3VSKDFAT.mjs → chunk-YULD7ICZ.mjs} +1 -1
- package/dist/chunk-ZLAT2CWY.mjs +135 -0
- package/dist/{chunk-T5CERMEH.cjs → chunk-ZXGAFZDO.cjs} +2 -2
- package/dist/{client-plugins-CLObcuCq.d.mts → client-plugins-CvIslxWi.d.mts} +207 -7
- package/dist/{client-plugins-DZjHC4Mi.d.ts → client-plugins-HIyulDym.d.ts} +207 -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-HU6Y2MNV.cjs → devtools-EAUY43BS.cjs} +9 -9
- package/dist/{devtools-RNXCTS4R.mjs → devtools-EE5RIBTH.mjs} +8 -8
- package/dist/docs.cjs +12 -12
- package/dist/docs.d.mts +41 -4
- package/dist/docs.d.ts +41 -4
- package/dist/docs.mjs +11 -11
- 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 +38 -35
- package/dist/index.d.mts +19 -20
- package/dist/index.d.ts +19 -20
- package/dist/index.mjs +37 -34
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +4 -5
- package/dist/integrations.d.ts +4 -5
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- 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 +3 -3
- package/dist/internal/build-runtime.cjs +26 -26
- package/dist/internal/build-runtime.d.mts +6 -7
- package/dist/internal/build-runtime.d.ts +6 -7
- package/dist/internal/build-runtime.mjs +25 -25
- package/dist/internal/cli-runtime.cjs +13 -13
- package/dist/internal/cli-runtime.mjs +12 -12
- 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 +9 -9
- package/dist/internal/config-runtime.d.mts +5 -6
- package/dist/internal/config-runtime.d.ts +5 -6
- package/dist/internal/config-runtime.mjs +8 -8
- package/dist/internal/isolated-boundary.cjs +3 -2
- package/dist/internal/isolated-boundary.d.mts +1 -0
- package/dist/internal/isolated-boundary.d.ts +1 -0
- 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 +47 -23
- package/dist/internal/production-runtime.d.mts +58 -18
- package/dist/internal/production-runtime.d.ts +58 -18
- package/dist/internal/production-runtime.mjs +43 -19
- 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/markdown.cjs +3 -3
- package/dist/markdown.d.mts +4 -5
- package/dist/markdown.d.ts +4 -5
- package/dist/markdown.mjs +2 -2
- package/dist/{metadata-Cjs8JMRM.d.ts → metadata-BnLDsUOS.d.ts} +16 -2
- package/dist/{metadata-2HSU2i_w.d.mts → metadata-WGpBYcGn.d.mts} +16 -2
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +6 -7
- package/dist/middleware.d.ts +6 -7
- package/dist/middleware.mjs +3 -3
- 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-4XGPNIK4.mjs → nitro-MXRDCXWZ.mjs} +2 -2
- package/dist/{nitro-HSAQFXSS.cjs → nitro-OVPLKPE2.cjs} +3 -3
- 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 +22 -22
- package/dist/plugin.d.mts +4 -5
- package/dist/plugin.d.ts +4 -5
- package/dist/plugin.mjs +21 -21
- package/dist/{production-runtime-CysZl3EV.d.mts → production-runtime-0sRnuYc-.d.mts} +4 -4
- package/dist/{production-runtime-BU5ETAK9.d.ts → production-runtime-Crq6CJ-2.d.ts} +4 -4
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-D72O1qm4.d.ts → render-plan-8ozZh2Qv.d.ts} +1 -1
- package/dist/{render-plan-CKr4ltOd.d.mts → render-plan-gs9GGPzw.d.mts} +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-B5G8rLBH.d.ts} +1 -1
- package/dist/{request-Be83WafN.d.mts → request-fkhiynXe.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-BG56SzvJ.d.mts → route-rendering-CLnS7AZj.d.mts} +1 -1
- package/dist/{route-rendering-CtVMpV-k.d.ts → route-rendering-lS5nUMua.d.ts} +1 -1
- package/dist/{router-D94-SDlW.d.ts → router-4iuiYnOW.d.ts} +1 -1
- package/dist/{router-ALUvm8gC.d.mts → router-ifU8Dui1.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-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 +41 -41
- package/dist/server.d.mts +13 -14
- package/dist/server.d.ts +13 -14
- package/dist/server.mjs +24 -24
- package/dist/{spa-router-DbxNRKOB.d.mts → spa-router-Bq7VCOwx.d.mts} +3 -3
- package/dist/{spa-router-CxK3USIz.d.ts → spa-router-DaJk5Re4.d.ts} +3 -3
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +4 -5
- package/dist/testing.d.ts +4 -5
- package/dist/testing.mjs +5 -5
- 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-311Y8eoK.d.ts → utils-BXLmFsVR.d.ts} +1 -1
- package/dist/{utils-4wVRcpOw.d.mts → utils-XJn0c9bj.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +22 -22
- package/dist/vite.d.mts +4 -5
- package/dist/vite.d.ts +4 -5
- package/dist/vite.mjs +21 -21
- 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/types-DFbjpjXX.d.mts +0 -105
- package/dist/types-DFbjpjXX.d.ts +0 -105
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { J as FarmConfig, P as ParsedRoute,
|
|
2
|
-
import { F as
|
|
3
|
-
import { F as FarmWorkflowsResolvedConfig } from './workflows-CR9ex-gz.js';
|
|
1
|
+
import { J as FarmConfig, P as ParsedRoute, aJ as ResolvedFarmRouteRuntimeConfig, aK as ApplicationMetadataRouteKind, s as RouteModule, ae as LayoutModule, al as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aL as ResolvedFarmAPIConfig, aM as FarmDocsResolvedConfig, aN as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-HIyulDym.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 './metadata-
|
|
8
|
+
import { M as MetadataImageKind } from './metadata-BnLDsUOS.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-8ozZh2Qv.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;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { J as FarmConfig, P as ParsedRoute,
|
|
2
|
-
import { F as
|
|
3
|
-
import { F as FarmWorkflowsResolvedConfig } from './workflows-CR9ex-gz.mjs';
|
|
1
|
+
import { J as FarmConfig, P as ParsedRoute, aJ as ResolvedFarmRouteRuntimeConfig, aK as ApplicationMetadataRouteKind, s as RouteModule, ae as LayoutModule, al as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aL as ResolvedFarmAPIConfig, aM as FarmDocsResolvedConfig, aN as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-CvIslxWi.mjs';
|
|
2
|
+
import { F as FarmWorkflowsResolvedConfig } from './workflows-jZ4BcdoZ.mjs';
|
|
4
3
|
import { FarmCronResolvedConfig } from './cron.mjs';
|
|
5
4
|
import { R as ResolvedFarmImageConfig } from './image-config-Duob7wER.mjs';
|
|
6
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
|
|
7
6
|
import { ViteDevServer } from 'vite';
|
|
8
7
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
|
|
9
|
-
import { M as MetadataImageKind } from './metadata-
|
|
8
|
+
import { M as MetadataImageKind } from './metadata-WGpBYcGn.mjs';
|
|
10
9
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.mjs';
|
|
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-gs9GGPzw.mjs';
|
|
11
|
+
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
12
|
+
import { F as FarmI18nRuntime } from './runtime-CV2UCV-5.mjs';
|
|
14
13
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.mjs';
|
|
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;
|
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 _chunk73MC7ZL6cjs = require('./chunk-73MC7ZL6.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 _chunkEFCQPQMGcjs = require('./chunk-EFCQPQMG.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -20,9 +20,9 @@ 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-
|
|
25
|
+
require('./chunk-75RZHGLS.cjs');
|
|
26
26
|
require('./chunk-KNBBQHO2.cjs');
|
|
27
27
|
require('./chunk-E3UK5IIB.cjs');
|
|
28
28
|
require('./chunk-G7HXGLEC.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 = _chunkEFCQPQMGcjs.createFarmMarkdownRouteModule; exports.createFarmMarkdownRouteModuleFromFile = _chunk73MC7ZL6cjs.createFarmMarkdownRouteModuleFromFile; exports.createFarmMarkdownSourceResponse = _chunkEFCQPQMGcjs.createFarmMarkdownSourceResponse; exports.createMarkdownMetadata = _chunkEFCQPQMGcjs.createMarkdownMetadata; exports.farmRequestWantsMarkdown = _chunkEUV4YR3Vcjs.farmRequestWantsMarkdown; exports.isFarmMarkdownPageFile = _chunkEFCQPQMGcjs.isFarmMarkdownPageFile; exports.isFarmMarkdownPublicSourceResponse = _chunkEFCQPQMGcjs.isFarmMarkdownPublicSourceResponse; exports.loadFarmMdxComponents = _chunk73MC7ZL6cjs.loadFarmMdxComponents; exports.normalizeFarmMarkdownRoutePath = _chunkEFCQPQMGcjs.normalizeFarmMarkdownRoutePath; exports.parseMarkdownFrontmatter = _chunkEFCQPQMGcjs.parseMarkdownFrontmatter; exports.resolveFarmMdxComponentsModulePath = _chunkOHY2ZWUGcjs.resolveFarmMdxComponentsModulePath; exports.resolveMdxConfig = _chunkOHY2ZWUGcjs.resolveMdxConfig; exports.titleFromMarkdown = _chunkEFCQPQMGcjs.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-CvIslxWi.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-CvIslxWi.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-HIyulDym.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-HIyulDym.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-YULD7ICZ.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-4JHOT46A.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveFarmMdxComponentsModulePath,
|
|
17
17
|
resolveMdxConfig
|
|
@@ -20,9 +20,9 @@ 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-
|
|
25
|
+
import "./chunk-ZLAT2CWY.mjs";
|
|
26
26
|
import "./chunk-BTHHUD7Q.mjs";
|
|
27
27
|
import "./chunk-FUZEBRP3.mjs";
|
|
28
28
|
import "./chunk-O7BH5O46.mjs";
|
|
@@ -26,7 +26,7 @@ var _chunkVPTDD5XFcjs = require('./chunk-VPTDD5XF.cjs');
|
|
|
26
26
|
var _chunkPSV6XKPOcjs = require('./chunk-PSV6XKPO.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkM7MKQXAFcjs = require('./chunk-M7MKQXAF.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
var _chunkSJNMVDDFcjs = require('./chunk-SJNMVDDF.cjs');
|
|
@@ -727,7 +727,7 @@ async function createRouteTypeDeclarations(options, outPath) {
|
|
|
727
727
|
}
|
|
728
728
|
);
|
|
729
729
|
for (const file of routeModuleFiles) {
|
|
730
|
-
if (
|
|
730
|
+
if (_chunkM7MKQXAFcjs.parseRouteSlotFile.call(void 0, file)) continue;
|
|
731
731
|
const route = _chunk5QIKR7RRcjs.parseRoutePath.call(void 0, file);
|
|
732
732
|
const pattern = createRoutePattern(route);
|
|
733
733
|
routeModulePatterns.add(pattern);
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVZJR7UTGcjs = require('./chunk-VZJR7UTG.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkF7JZENPFcjs = require('./chunk-F7JZENPF.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
var _chunkHITLGIAOcjs = require('./chunk-HITLGIAO.cjs');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -27,7 +28,7 @@ function hasFarmDocsRuntimeAdapter(docs) {
|
|
|
27
28
|
}
|
|
28
29
|
_chunkS3JO3N4Hcjs.__name.call(void 0, hasFarmDocsRuntimeAdapter, "hasFarmDocsRuntimeAdapter");
|
|
29
30
|
async function loadFarmDocsConfigModule(docs, loadModule) {
|
|
30
|
-
const configModule =
|
|
31
|
+
const configModule = _chunkHITLGIAOcjs.getFarmDocsAdapterConfigModule.call(void 0, docs);
|
|
31
32
|
if (!configModule) return void 0;
|
|
32
33
|
const loaded = await loadModule(configModule);
|
|
33
34
|
const config = _nullishCoalesce(_optionalChain([loaded, 'optionalAccess', _4 => _4.default]), () => ( loaded));
|
|
@@ -39,7 +40,7 @@ function createFarmDocsAdapterRuntimeConfig(docs, options, moduleConfig) {
|
|
|
39
40
|
...moduleConfig ? { ...moduleConfig, ...docs.configOverrides } : _nullishCoalesce(docs.runtimeConfig, () => ( docs.config)),
|
|
40
41
|
entry: docs.config.entry || docs.entry.replace(/^\/+|\/+$/g, "") || "docs",
|
|
41
42
|
docsPath: docs.entry,
|
|
42
|
-
contentDir:
|
|
43
|
+
contentDir: _chunkVZJR7UTGcjs.resolveFarmDocsContentDir.call(void 0, docs, options)
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmDocsAdapterRuntimeConfig, "createFarmDocsAdapterRuntimeConfig");
|
|
@@ -118,7 +119,8 @@ async function createFarmDocsAdapterHandler(docs, options) {
|
|
|
118
119
|
clientEntry: options.clientEntry,
|
|
119
120
|
stylesheets: getFarmDocsAdapterStylesheets(options),
|
|
120
121
|
resolveLayoutFonts: options.resolveLayoutFonts,
|
|
121
|
-
loadReactModule: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => options.loadModule(docs.adapter.react), "loadReactModule")
|
|
122
|
+
loadReactModule: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, () => options.loadModule(docs.adapter.react), "loadReactModule"),
|
|
123
|
+
...options.registerMCPServer ? { registerMCPServer: options.registerMCPServer } : {}
|
|
122
124
|
});
|
|
123
125
|
}
|
|
124
126
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmDocsAdapterHandler, "createFarmDocsAdapterHandler");
|
|
@@ -275,25 +277,25 @@ function getDocsDescription(docs) {
|
|
|
275
277
|
}
|
|
276
278
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getDocsDescription, "getDocsDescription");
|
|
277
279
|
function getLoadedDocsPages(context) {
|
|
278
|
-
return
|
|
280
|
+
return _chunkVZJR7UTGcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs).map((page) => _chunkVZJR7UTGcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, page.slug)).filter((page) => Boolean(page));
|
|
279
281
|
}
|
|
280
282
|
_chunkS3JO3N4Hcjs.__name.call(void 0, getLoadedDocsPages, "getLoadedDocsPages");
|
|
281
283
|
function toDocsSourcePage(page) {
|
|
282
284
|
return {
|
|
283
|
-
...
|
|
285
|
+
..._chunkVZJR7UTGcjs.toFarmDocsMarkdownPage.call(void 0, page),
|
|
284
286
|
sourcePath: page.sourcePath
|
|
285
287
|
};
|
|
286
288
|
}
|
|
287
289
|
_chunkS3JO3N4Hcjs.__name.call(void 0, toDocsSourcePage, "toDocsSourcePage");
|
|
288
290
|
function toDocsSitemapPage(page) {
|
|
289
291
|
return {
|
|
290
|
-
...
|
|
292
|
+
..._chunkVZJR7UTGcjs.toFarmDocsMarkdownPage.call(void 0, page),
|
|
291
293
|
sourcePath: page.sourcePath
|
|
292
294
|
};
|
|
293
295
|
}
|
|
294
296
|
_chunkS3JO3N4Hcjs.__name.call(void 0, toDocsSitemapPage, "toDocsSitemapPage");
|
|
295
297
|
function toDocsLlmsPage(page) {
|
|
296
|
-
return
|
|
298
|
+
return _chunkVZJR7UTGcjs.toFarmDocsMarkdownPage.call(void 0, page);
|
|
297
299
|
}
|
|
298
300
|
_chunkS3JO3N4Hcjs.__name.call(void 0, toDocsLlmsPage, "toDocsLlmsPage");
|
|
299
301
|
function getDocsLlmsOptions(context, request) {
|
|
@@ -387,7 +389,7 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, renderAgentsDocument, "renderAgentsDocumen
|
|
|
387
389
|
function buildAgentSpec(context, request) {
|
|
388
390
|
const url = new URL(request.url);
|
|
389
391
|
const origin = url.origin;
|
|
390
|
-
const pages =
|
|
392
|
+
const pages = _chunkVZJR7UTGcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs);
|
|
391
393
|
const spec = _chunkIK6LVLKCcjs.docsEngine.call(void 0, ).buildDocsAgentDiscoverySpec(getDocsDiscoveryOptions(context, request));
|
|
392
394
|
const title = getDocsTitle(context.docs);
|
|
393
395
|
return {
|
|
@@ -433,12 +435,6 @@ function buildAgentSpec(context, request) {
|
|
|
433
435
|
}
|
|
434
436
|
_chunkS3JO3N4Hcjs.__name.call(void 0, buildAgentSpec, "buildAgentSpec");
|
|
435
437
|
var REDACTED_DOCS_CONFIG_VALUE = "[redacted]";
|
|
436
|
-
function isSecretDocsConfigKey(key) {
|
|
437
|
-
const normalized = key.replace(/[-_]/g, "").toLowerCase();
|
|
438
|
-
if (!normalized || normalized.endsWith("env")) return false;
|
|
439
|
-
return /apikey|token|secret|password|authorization|credential/.test(normalized);
|
|
440
|
-
}
|
|
441
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, isSecretDocsConfigKey, "isSecretDocsConfigKey");
|
|
442
438
|
function redactDocsConfigValue(value, key, inHeaders) {
|
|
443
439
|
if (Array.isArray(value)) {
|
|
444
440
|
return value.map((entry) => redactDocsConfigValue(entry, key, inHeaders));
|
|
@@ -453,7 +449,7 @@ function redactDocsConfigValue(value, key, inHeaders) {
|
|
|
453
449
|
);
|
|
454
450
|
}
|
|
455
451
|
if (value === null || value === void 0 || typeof value === "function") return value;
|
|
456
|
-
return inHeaders || isSecretDocsConfigKey(key) ? REDACTED_DOCS_CONFIG_VALUE : value;
|
|
452
|
+
return inHeaders || _chunkHITLGIAOcjs.isSecretDocsConfigKey.call(void 0, key) ? REDACTED_DOCS_CONFIG_VALUE : value;
|
|
457
453
|
}
|
|
458
454
|
_chunkS3JO3N4Hcjs.__name.call(void 0, redactDocsConfigValue, "redactDocsConfigValue");
|
|
459
455
|
function toPublicDocsPath(value, root) {
|
|
@@ -483,7 +479,7 @@ function buildPublicConfig(context) {
|
|
|
483
479
|
}
|
|
484
480
|
_chunkS3JO3N4Hcjs.__name.call(void 0, buildPublicConfig, "buildPublicConfig");
|
|
485
481
|
function buildDiagnostics(context) {
|
|
486
|
-
const pages =
|
|
482
|
+
const pages = _chunkVZJR7UTGcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs);
|
|
487
483
|
const diagnostics = _chunkIK6LVLKCcjs.docsEngine.call(void 0, ).buildDocsDiagnostics(context.docs.config, {
|
|
488
484
|
entry: context.docs.entry,
|
|
489
485
|
mcp: {
|
|
@@ -555,12 +551,12 @@ async function resolveAPIContext(options) {
|
|
|
555
551
|
config: options.config,
|
|
556
552
|
configPath: options.configPath
|
|
557
553
|
}));
|
|
558
|
-
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await
|
|
554
|
+
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunkF7JZENPFcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
|
|
559
555
|
return {
|
|
560
556
|
root,
|
|
561
557
|
srcDir,
|
|
562
558
|
docs,
|
|
563
|
-
contentDir:
|
|
559
|
+
contentDir: _chunkVZJR7UTGcjs.resolveFarmDocsContentDir.call(void 0, docs, { root, srcDir }),
|
|
564
560
|
diagnostics: options.diagnostics === true
|
|
565
561
|
};
|
|
566
562
|
}
|
|
@@ -619,10 +615,10 @@ async function handleDocsAPIGet(request, context) {
|
|
|
619
615
|
if (format === "markdown" || url.pathname.endsWith(".md")) {
|
|
620
616
|
const pathParam = url.searchParams.get("path") || url.searchParams.get("slug");
|
|
621
617
|
const slug = normalizeDocsApiSlug(_nullishCoalesce(_nullishCoalesce(pathParam, () => ( pathTarget.slug)), () => ( "")), context.docs);
|
|
622
|
-
const page =
|
|
618
|
+
const page = _chunkVZJR7UTGcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, slug);
|
|
623
619
|
if (!page) return text("Docs page not found\n", "text/plain; charset=utf-8", { status: 404 });
|
|
624
620
|
return text(
|
|
625
|
-
_chunkIK6LVLKCcjs.docsEngine.call(void 0, ).renderDocsMarkdownDocument(
|
|
621
|
+
_chunkIK6LVLKCcjs.docsEngine.call(void 0, ).renderDocsMarkdownDocument(_chunkVZJR7UTGcjs.toFarmDocsMarkdownPage.call(void 0, page), {
|
|
626
622
|
origin: new URL(request.url).origin,
|
|
627
623
|
llms: getDocsLlmsOptions(context, request),
|
|
628
624
|
sitemap: context.docs.config.sitemap
|