@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
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { M as Metadata, aD as FarmAgentJsonLd, aE as FarmMCPServerRegistration, aF as FarmMarkdownResolvedConfig } from './client-plugins-C3mK9Pol.mjs';
|
|
2
|
+
|
|
3
|
+
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
|
+
interface FarmMetadataImageReference {
|
|
5
|
+
kind: MetadataImageKind;
|
|
6
|
+
href: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
contentType?: string;
|
|
11
|
+
}
|
|
12
|
+
interface RenderedMetadataHead {
|
|
13
|
+
title: string;
|
|
14
|
+
tags: string;
|
|
15
|
+
hasFavicon: boolean;
|
|
16
|
+
/** False when the title is the framework fallback rather than configured. */
|
|
17
|
+
hasExplicitTitle: boolean;
|
|
18
|
+
/** The viewport tag, then any theme-color and color-scheme tags. */
|
|
19
|
+
viewport: string;
|
|
20
|
+
}
|
|
21
|
+
type MetadataRecord = Metadata & Record<string, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Metadata for the not-found page, shared by the development renderer and the production
|
|
24
|
+
* server: the layouts' metadata (so a title template, description or icons carry over),
|
|
25
|
+
* then the not-found module's own `metadata` and `generateMetadata()`, titled
|
|
26
|
+
* FARM_NOT_FOUND_TITLE when the module doesn't name itself.
|
|
27
|
+
*/
|
|
28
|
+
declare function resolveFarmNotFoundMetadata(layoutModules: ReadonlyArray<Record<string, any> | null | undefined>, notFoundModule: Record<string, any> | null | undefined): Promise<MetadataRecord>;
|
|
29
|
+
declare function mergeMetadata(base: MetadataRecord | undefined, next: MetadataRecord | undefined): MetadataRecord;
|
|
30
|
+
/**
|
|
31
|
+
* Merge a layout's or page's `viewport` export and `generateViewport()` result onto the metadata
|
|
32
|
+
* collected so far, as Next.js does: each module overrides the keys it sets.
|
|
33
|
+
*/
|
|
34
|
+
declare function mergeModuleViewport(metadata: MetadataRecord, module: Record<string, any> | null | undefined, props: unknown): Promise<MetadataRecord>;
|
|
35
|
+
/**
|
|
36
|
+
* The viewport tag Next.js renders: the default `width=device-width, initial-scale=1` with the
|
|
37
|
+
* merged `viewport` exports over it, plus `theme-color` and `color-scheme` tags when set. The tags
|
|
38
|
+
* carry FARM_METADATA_ATTRIBUTE, so client navigation replaces them but never a viewport tag the
|
|
39
|
+
* app wrote into its own document.
|
|
40
|
+
*/
|
|
41
|
+
declare function renderViewportHead(viewport: unknown): string;
|
|
42
|
+
declare function addMetadataImageReference(metadata: MetadataRecord, reference: FarmMetadataImageReference): MetadataRecord;
|
|
43
|
+
/**
|
|
44
|
+
* Advertise a page's Markdown mirror as `alternates.types["text/markdown"]`
|
|
45
|
+
* unless the page already declares one. `href` comes from the request path, so
|
|
46
|
+
* it is kept same-origin the same way the default canonical is.
|
|
47
|
+
*/
|
|
48
|
+
declare function addMetadataMarkdownAlternate(metadata: MetadataRecord, href: string | null | undefined): MetadataRecord;
|
|
49
|
+
interface RenderMetadataHeadOptions {
|
|
50
|
+
/**
|
|
51
|
+
* Current request pathname. Used to emit a default `<link rel="canonical">`
|
|
52
|
+
* when the route does not set one, so agents and crawlers can resolve the
|
|
53
|
+
* page's identity. Combined with `metadataBase` into an absolute URL when a
|
|
54
|
+
* base is configured; otherwise emitted as a self-referential path.
|
|
55
|
+
*/
|
|
56
|
+
pathname?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Agent JSON-LD config. When truthy, a schema.org JSON-LD script is emitted in
|
|
59
|
+
* the head, built from this config and the page/site metadata. `true` uses the
|
|
60
|
+
* defaults; `false`/omitted (the default) emits nothing.
|
|
61
|
+
*/
|
|
62
|
+
jsonLd?: FarmAgentJsonLd | boolean;
|
|
63
|
+
}
|
|
64
|
+
declare function renderMetadataHead(metadata: MetadataRecord | undefined, options?: RenderMetadataHeadOptions): RenderedMetadataHead;
|
|
65
|
+
|
|
66
|
+
interface FarmDefaultMCPPage {
|
|
67
|
+
/** The page's route path, such as `/about`. */
|
|
68
|
+
path: string;
|
|
69
|
+
title: string;
|
|
70
|
+
/** The page's absolute URL. */
|
|
71
|
+
url: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
/** The absolute URL of the page's Markdown mirror, which `read_page` reads. */
|
|
74
|
+
markdownUrl: string;
|
|
75
|
+
}
|
|
76
|
+
interface FarmDefaultMCPPageSource {
|
|
77
|
+
pattern: string;
|
|
78
|
+
/** The page module, for its `metadata` and whether a route `guard` gates it. */
|
|
79
|
+
module?: unknown;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The pages the default server lists and reads: static pages with a Markdown mirror,
|
|
83
|
+
* leaving out pages whose metadata says noindex and pages behind a route `guard`, as the
|
|
84
|
+
* generated sitemap does.
|
|
85
|
+
*/
|
|
86
|
+
declare function collectFarmDefaultMCPPages(sources: Iterable<FarmDefaultMCPPageSource>, options: {
|
|
87
|
+
origin: string;
|
|
88
|
+
basePath?: string;
|
|
89
|
+
markdown?: FarmMarkdownResolvedConfig;
|
|
90
|
+
}): FarmDefaultMCPPage[];
|
|
91
|
+
/**
|
|
92
|
+
* The default server's identity, from the app's package.json when it has one. The AI
|
|
93
|
+
* catalog namespaces a plain name by the request's host, as it does for every server.
|
|
94
|
+
*/
|
|
95
|
+
declare function createFarmDefaultMCPServer(app: {
|
|
96
|
+
name?: unknown;
|
|
97
|
+
version?: unknown;
|
|
98
|
+
} | undefined, farmVersion: string): FarmMCPServerRegistration & {
|
|
99
|
+
path: `/${string}`;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* The default server, or undefined once any other MCP server is published or registered:
|
|
103
|
+
* `@farm.js/mcp` publishes its catalog and the docs engine registers its endpoint when the
|
|
104
|
+
* server starts. Serving and listing both ask here, so the AI catalog never names a server
|
|
105
|
+
* that does not answer.
|
|
106
|
+
*/
|
|
107
|
+
declare function resolveFarmDefaultMCPServer<T>(server: T | undefined | null): T | undefined;
|
|
108
|
+
|
|
109
|
+
export { type FarmDefaultMCPPage as F, type MetadataImageKind as M, addMetadataImageReference as a, addMetadataMarkdownAlternate as b, createFarmDefaultMCPServer as c, mergeModuleViewport as d, renderViewportHead as e, resolveFarmNotFoundMetadata as f, collectFarmDefaultMCPPages as g, resolveFarmDefaultMCPServer as h, mergeMetadata as m, renderMetadataHead as r };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
handleFarmDefaultMCPRequest
|
|
3
|
+
} from "./chunk-6SJ2KJTA.mjs";
|
|
4
|
+
import "./chunk-UH6QN5NL.mjs";
|
|
5
|
+
import "./chunk-DTSROJ5J.mjs";
|
|
6
|
+
import "./chunk-WWIKMBRN.mjs";
|
|
7
|
+
import "./chunk-MVL2RAJW.mjs";
|
|
8
|
+
import "./chunk-ZLAT2CWY.mjs";
|
|
9
|
+
import "./chunk-FUZEBRP3.mjs";
|
|
10
|
+
import "./chunk-BTHHUD7Q.mjs";
|
|
11
|
+
import "./chunk-O7BH5O46.mjs";
|
|
12
|
+
import "./chunk-7LTCDQRS.mjs";
|
|
13
|
+
import "./chunk-Z3HATSKO.mjs";
|
|
14
|
+
import "./chunk-4RB44K6Z.mjs";
|
|
15
|
+
import "./chunk-55YI3RRB.mjs";
|
|
16
|
+
import "./chunk-LPEX4YW6.mjs";
|
|
17
|
+
export {
|
|
18
|
+
handleFarmDefaultMCPRequest
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkCI6E3UOHcjs = require('./chunk-CI6E3UOH.cjs');
|
|
4
|
+
require('./chunk-PTZ2TVNE.cjs');
|
|
5
|
+
require('./chunk-4WQ6PGSJ.cjs');
|
|
6
|
+
require('./chunk-EUV4YR3V.cjs');
|
|
7
|
+
require('./chunk-J63ZH5OQ.cjs');
|
|
8
|
+
require('./chunk-75RZHGLS.cjs');
|
|
9
|
+
require('./chunk-E3UK5IIB.cjs');
|
|
10
|
+
require('./chunk-KNBBQHO2.cjs');
|
|
11
|
+
require('./chunk-G7HXGLEC.cjs');
|
|
12
|
+
require('./chunk-S3A45T7F.cjs');
|
|
13
|
+
require('./chunk-FJ3M4CUX.cjs');
|
|
14
|
+
require('./chunk-I57LW5VZ.cjs');
|
|
15
|
+
require('./chunk-NO3WWW3N.cjs');
|
|
16
|
+
require('./chunk-S3JO3N4H.cjs');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.handleFarmDefaultMCPRequest = _chunkCI6E3UOHcjs.handleFarmDefaultMCPRequest;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { M as Metadata, aD as FarmAgentJsonLd, aE as FarmMCPServerRegistration, aF as FarmMarkdownResolvedConfig } from './client-plugins-r1mOtSC1.js';
|
|
2
|
+
|
|
3
|
+
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
|
+
interface FarmMetadataImageReference {
|
|
5
|
+
kind: MetadataImageKind;
|
|
6
|
+
href: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
contentType?: string;
|
|
11
|
+
}
|
|
12
|
+
interface RenderedMetadataHead {
|
|
13
|
+
title: string;
|
|
14
|
+
tags: string;
|
|
15
|
+
hasFavicon: boolean;
|
|
16
|
+
/** False when the title is the framework fallback rather than configured. */
|
|
17
|
+
hasExplicitTitle: boolean;
|
|
18
|
+
/** The viewport tag, then any theme-color and color-scheme tags. */
|
|
19
|
+
viewport: string;
|
|
20
|
+
}
|
|
21
|
+
type MetadataRecord = Metadata & Record<string, any>;
|
|
22
|
+
/**
|
|
23
|
+
* Metadata for the not-found page, shared by the development renderer and the production
|
|
24
|
+
* server: the layouts' metadata (so a title template, description or icons carry over),
|
|
25
|
+
* then the not-found module's own `metadata` and `generateMetadata()`, titled
|
|
26
|
+
* FARM_NOT_FOUND_TITLE when the module doesn't name itself.
|
|
27
|
+
*/
|
|
28
|
+
declare function resolveFarmNotFoundMetadata(layoutModules: ReadonlyArray<Record<string, any> | null | undefined>, notFoundModule: Record<string, any> | null | undefined): Promise<MetadataRecord>;
|
|
29
|
+
declare function mergeMetadata(base: MetadataRecord | undefined, next: MetadataRecord | undefined): MetadataRecord;
|
|
30
|
+
/**
|
|
31
|
+
* Merge a layout's or page's `viewport` export and `generateViewport()` result onto the metadata
|
|
32
|
+
* collected so far, as Next.js does: each module overrides the keys it sets.
|
|
33
|
+
*/
|
|
34
|
+
declare function mergeModuleViewport(metadata: MetadataRecord, module: Record<string, any> | null | undefined, props: unknown): Promise<MetadataRecord>;
|
|
35
|
+
/**
|
|
36
|
+
* The viewport tag Next.js renders: the default `width=device-width, initial-scale=1` with the
|
|
37
|
+
* merged `viewport` exports over it, plus `theme-color` and `color-scheme` tags when set. The tags
|
|
38
|
+
* carry FARM_METADATA_ATTRIBUTE, so client navigation replaces them but never a viewport tag the
|
|
39
|
+
* app wrote into its own document.
|
|
40
|
+
*/
|
|
41
|
+
declare function renderViewportHead(viewport: unknown): string;
|
|
42
|
+
declare function addMetadataImageReference(metadata: MetadataRecord, reference: FarmMetadataImageReference): MetadataRecord;
|
|
43
|
+
/**
|
|
44
|
+
* Advertise a page's Markdown mirror as `alternates.types["text/markdown"]`
|
|
45
|
+
* unless the page already declares one. `href` comes from the request path, so
|
|
46
|
+
* it is kept same-origin the same way the default canonical is.
|
|
47
|
+
*/
|
|
48
|
+
declare function addMetadataMarkdownAlternate(metadata: MetadataRecord, href: string | null | undefined): MetadataRecord;
|
|
49
|
+
interface RenderMetadataHeadOptions {
|
|
50
|
+
/**
|
|
51
|
+
* Current request pathname. Used to emit a default `<link rel="canonical">`
|
|
52
|
+
* when the route does not set one, so agents and crawlers can resolve the
|
|
53
|
+
* page's identity. Combined with `metadataBase` into an absolute URL when a
|
|
54
|
+
* base is configured; otherwise emitted as a self-referential path.
|
|
55
|
+
*/
|
|
56
|
+
pathname?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Agent JSON-LD config. When truthy, a schema.org JSON-LD script is emitted in
|
|
59
|
+
* the head, built from this config and the page/site metadata. `true` uses the
|
|
60
|
+
* defaults; `false`/omitted (the default) emits nothing.
|
|
61
|
+
*/
|
|
62
|
+
jsonLd?: FarmAgentJsonLd | boolean;
|
|
63
|
+
}
|
|
64
|
+
declare function renderMetadataHead(metadata: MetadataRecord | undefined, options?: RenderMetadataHeadOptions): RenderedMetadataHead;
|
|
65
|
+
|
|
66
|
+
interface FarmDefaultMCPPage {
|
|
67
|
+
/** The page's route path, such as `/about`. */
|
|
68
|
+
path: string;
|
|
69
|
+
title: string;
|
|
70
|
+
/** The page's absolute URL. */
|
|
71
|
+
url: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
/** The absolute URL of the page's Markdown mirror, which `read_page` reads. */
|
|
74
|
+
markdownUrl: string;
|
|
75
|
+
}
|
|
76
|
+
interface FarmDefaultMCPPageSource {
|
|
77
|
+
pattern: string;
|
|
78
|
+
/** The page module, for its `metadata` and whether a route `guard` gates it. */
|
|
79
|
+
module?: unknown;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The pages the default server lists and reads: static pages with a Markdown mirror,
|
|
83
|
+
* leaving out pages whose metadata says noindex and pages behind a route `guard`, as the
|
|
84
|
+
* generated sitemap does.
|
|
85
|
+
*/
|
|
86
|
+
declare function collectFarmDefaultMCPPages(sources: Iterable<FarmDefaultMCPPageSource>, options: {
|
|
87
|
+
origin: string;
|
|
88
|
+
basePath?: string;
|
|
89
|
+
markdown?: FarmMarkdownResolvedConfig;
|
|
90
|
+
}): FarmDefaultMCPPage[];
|
|
91
|
+
/**
|
|
92
|
+
* The default server's identity, from the app's package.json when it has one. The AI
|
|
93
|
+
* catalog namespaces a plain name by the request's host, as it does for every server.
|
|
94
|
+
*/
|
|
95
|
+
declare function createFarmDefaultMCPServer(app: {
|
|
96
|
+
name?: unknown;
|
|
97
|
+
version?: unknown;
|
|
98
|
+
} | undefined, farmVersion: string): FarmMCPServerRegistration & {
|
|
99
|
+
path: `/${string}`;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* The default server, or undefined once any other MCP server is published or registered:
|
|
103
|
+
* `@farm.js/mcp` publishes its catalog and the docs engine registers its endpoint when the
|
|
104
|
+
* server starts. Serving and listing both ask here, so the AI catalog never names a server
|
|
105
|
+
* that does not answer.
|
|
106
|
+
*/
|
|
107
|
+
declare function resolveFarmDefaultMCPServer<T>(server: T | undefined | null): T | undefined;
|
|
108
|
+
|
|
109
|
+
export { type FarmDefaultMCPPage as F, type MetadataImageKind as M, addMetadataImageReference as a, addMetadataMarkdownAlternate as b, createFarmDefaultMCPServer as c, mergeModuleViewport as d, renderViewportHead as e, resolveFarmNotFoundMetadata as f, collectFarmDefaultMCPPages as g, resolveFarmDefaultMCPServer as h, mergeMetadata as m, renderMetadataHead as r };
|
package/dist/agent-runtime.cjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCBJJH36Acjs = require('./chunk-CBJJH36A.cjs');
|
|
4
4
|
require('./chunk-G643DQCH.cjs');
|
|
5
5
|
require('./chunk-Z2HLU4IX.cjs');
|
|
6
6
|
require('./chunk-LSKZMJMP.cjs');
|
|
7
7
|
require('./chunk-SVRTJOUF.cjs');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-KIIMAWOJ.cjs');
|
|
9
9
|
require('./chunk-UQZ4AYTH.cjs');
|
|
10
|
+
require('./chunk-KNBBQHO2.cjs');
|
|
10
11
|
require('./chunk-NZKJGRB3.cjs');
|
|
12
|
+
require('./chunk-S3A45T7F.cjs');
|
|
11
13
|
require('./chunk-DVM4FKZL.cjs');
|
|
12
14
|
require('./chunk-US2QVW3E.cjs');
|
|
13
15
|
require('./chunk-BIDYX3SL.cjs');
|
|
@@ -94,7 +96,7 @@ function createAgentRuntimeIntegration(options) {
|
|
|
94
96
|
});
|
|
95
97
|
}
|
|
96
98
|
};
|
|
97
|
-
return
|
|
99
|
+
return _chunkCBJJH36Acjs.defineIntegration.call(void 0, {
|
|
98
100
|
category: "agent",
|
|
99
101
|
type: provider,
|
|
100
102
|
serverRuntime: options.serverRuntime,
|
package/dist/agent-runtime.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import {
|
|
2
|
+
import { G as BundleResultPayload, a as FarmPlugin, H as FarmIntegration } from './client-plugins-C3mK9Pol.mjs';
|
|
3
3
|
import './lifecycle-DK06VuKP.mjs';
|
|
4
4
|
import './integration-api-0y4FXJpC.mjs';
|
|
5
5
|
import './endpoint-CCHFqyTE.mjs';
|
|
@@ -17,19 +17,18 @@ import 'unstorage';
|
|
|
17
17
|
import './schema.mjs';
|
|
18
18
|
import 'react';
|
|
19
19
|
import '@farming-labs/orm';
|
|
20
|
-
import './types-DFbjpjXX.mjs';
|
|
21
20
|
import '@farming-labs/docs';
|
|
22
|
-
import './observability-
|
|
21
|
+
import './observability-CoXunYhS.mjs';
|
|
23
22
|
import '@opentelemetry/api';
|
|
24
23
|
import 'vite';
|
|
25
|
-
import './workflows-
|
|
24
|
+
import './workflows-jZ4BcdoZ.mjs';
|
|
26
25
|
import './cron.mjs';
|
|
27
26
|
import './env.mjs';
|
|
28
27
|
import './server-action-security.mjs';
|
|
29
28
|
import 'rolldown/utils';
|
|
30
29
|
import 'rolldown';
|
|
31
30
|
import './image-config-Duob7wER.mjs';
|
|
32
|
-
import './types-
|
|
31
|
+
import './types-CnH8DOqo.mjs';
|
|
33
32
|
import './types-DQnyD3VD.mjs';
|
|
34
33
|
import './font.mjs';
|
|
35
34
|
import './after.mjs';
|
package/dist/agent-runtime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import {
|
|
2
|
+
import { G as BundleResultPayload, a as FarmPlugin, H as FarmIntegration } from './client-plugins-r1mOtSC1.js';
|
|
3
3
|
import './lifecycle-DK06VuKP.js';
|
|
4
4
|
import './integration-api-BPJo5oXb.js';
|
|
5
5
|
import './endpoint-CA-TNX60.js';
|
|
@@ -17,19 +17,18 @@ import 'unstorage';
|
|
|
17
17
|
import './schema.js';
|
|
18
18
|
import 'react';
|
|
19
19
|
import '@farming-labs/orm';
|
|
20
|
-
import './types-DFbjpjXX.js';
|
|
21
20
|
import '@farming-labs/docs';
|
|
22
|
-
import './observability-
|
|
21
|
+
import './observability-CoXunYhS.js';
|
|
23
22
|
import '@opentelemetry/api';
|
|
24
23
|
import 'vite';
|
|
25
|
-
import './workflows-
|
|
24
|
+
import './workflows-jZ4BcdoZ.js';
|
|
26
25
|
import './cron.js';
|
|
27
26
|
import './env.js';
|
|
28
27
|
import './server-action-security.js';
|
|
29
28
|
import 'rolldown/utils';
|
|
30
29
|
import 'rolldown';
|
|
31
30
|
import './image-config-Duob7wER.js';
|
|
32
|
-
import './types-
|
|
31
|
+
import './types-CnH8DOqo.js';
|
|
33
32
|
import './types-DQnyD3VD.js';
|
|
34
33
|
import './font.js';
|
|
35
34
|
import './after.js';
|
package/dist/agent-runtime.mjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineIntegration
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MKYBIIAQ.mjs";
|
|
4
4
|
import "./chunk-44SYJEG3.mjs";
|
|
5
5
|
import "./chunk-JG6DJF5A.mjs";
|
|
6
6
|
import "./chunk-FZ6YYU2W.mjs";
|
|
7
7
|
import "./chunk-FP2INE7H.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-ZMMBIVQM.mjs";
|
|
9
9
|
import "./chunk-Z2RZJZIZ.mjs";
|
|
10
|
+
import "./chunk-BTHHUD7Q.mjs";
|
|
10
11
|
import "./chunk-JPLUGGRV.mjs";
|
|
12
|
+
import "./chunk-7LTCDQRS.mjs";
|
|
11
13
|
import "./chunk-SAXPH6G5.mjs";
|
|
12
14
|
import "./chunk-CQ6OSQ3K.mjs";
|
|
13
15
|
import "./chunk-L3KT7IXV.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkFO427P6Icjs = require('../chunk-FO427P6I.cjs');
|
|
5
5
|
require('../chunk-SJNMVDDF.cjs');
|
|
6
6
|
require('../chunk-2CQ74SP6.cjs');
|
|
7
7
|
require('../chunk-XJXBIP67.cjs');
|
|
@@ -14,23 +14,23 @@ require('../chunk-LYLEZIG3.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkS6VYG6XUcjs = require('../chunk-S6VYG6XU.cjs');
|
|
18
18
|
require('../chunk-IWZKTWHZ.cjs');
|
|
19
19
|
require('../chunk-WMAPPDMM.cjs');
|
|
20
20
|
require('../chunk-TKJZFIML.cjs');
|
|
21
|
-
require('../chunk-
|
|
21
|
+
require('../chunk-75RZHGLS.cjs');
|
|
22
22
|
require('../chunk-6V4TDWEC.cjs');
|
|
23
23
|
require('../chunk-SOR334EB.cjs');
|
|
24
24
|
require('../chunk-YWN746US.cjs');
|
|
25
25
|
require('../chunk-LSKZMJMP.cjs');
|
|
26
26
|
require('../chunk-SVRTJOUF.cjs');
|
|
27
|
-
require('../chunk-
|
|
28
|
-
require('../chunk-
|
|
27
|
+
require('../chunk-KIIMAWOJ.cjs');
|
|
28
|
+
require('../chunk-SHLXACIO.cjs');
|
|
29
29
|
require('../chunk-HLJ6MBUZ.cjs');
|
|
30
30
|
require('../chunk-5QIKR7RR.cjs');
|
|
31
31
|
require('../chunk-QNPEUFHQ.cjs');
|
|
32
|
-
require('../chunk-KNBBQHO2.cjs');
|
|
33
32
|
require('../chunk-E3UK5IIB.cjs');
|
|
33
|
+
require('../chunk-KNBBQHO2.cjs');
|
|
34
34
|
require('../chunk-ARJWXNQL.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
@@ -58,4 +58,4 @@ require('../chunk-S3JO3N4H.cjs');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.APIRouteConflictError =
|
|
61
|
+
exports.APIRouteConflictError = _chunkFO427P6Icjs.APIRouteConflictError; exports.APIRouteManager = _chunkFO427P6Icjs.APIRouteManager; exports.API_ROUTE_METHODS = _chunkS6VYG6XUcjs.API_ROUTE_METHODS; exports.getAllowedAPIRouteMethods = _chunkS6VYG6XUcjs.getAllowedAPIRouteMethods; exports.invokeAPIRouteEndpoint = _chunkS6VYG6XUcjs.invokeAPIRouteEndpoint; exports.isWebResponse = _chunkS6VYG6XUcjs.isWebResponse; exports.matchAPIRoute = _chunkG7HXGLECcjs.matchAPIRoute; exports.normalizeRouteResponse = _chunkS6VYG6XUcjs.normalizeRouteResponse; exports.resolveAPIRouteEndpoint = _chunkS6VYG6XUcjs.resolveAPIRouteEndpoint;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as PluginAPIDispatch } from '../runtime-CAEv36S_.mjs';
|
|
2
|
+
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from '../runtime-CAEv36S_.mjs';
|
|
3
|
+
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-C3mK9Pol.mjs';
|
|
2
4
|
import { ViteDevServer } from 'vite';
|
|
3
|
-
import '../types-
|
|
4
|
-
import { F as FarmI18nRuntime } from '../runtime-
|
|
5
|
-
export { API_ROUTE_METHODS, getAllowedAPIRouteMethods, invokeAPIRouteEndpoint, isWebResponse, normalizeRouteResponse, resolveAPIRouteEndpoint } from './runtime.mjs';
|
|
5
|
+
import '../types-CnH8DOqo.mjs';
|
|
6
|
+
import { F as FarmI18nRuntime } from '../runtime-CV2UCV-5.mjs';
|
|
6
7
|
import { A as APIRouteMatch } from '../route-pattern-W-SsJGSp.mjs';
|
|
7
8
|
export { b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.mjs';
|
|
8
|
-
import '../lifecycle-DK06VuKP.mjs';
|
|
9
|
-
import '../integration-api-0y4FXJpC.mjs';
|
|
10
9
|
import '../endpoint-CCHFqyTE.mjs';
|
|
11
10
|
import '../cache.mjs';
|
|
12
11
|
import '../cache-invalidation-BD0z_lfu.mjs';
|
|
12
|
+
import '../integration-api-0y4FXJpC.mjs';
|
|
13
|
+
import '../lifecycle-DK06VuKP.mjs';
|
|
13
14
|
import '../renderer.mjs';
|
|
14
15
|
import '../deployment.mjs';
|
|
15
16
|
import 'http';
|
|
@@ -22,11 +23,10 @@ import 'unstorage';
|
|
|
22
23
|
import '../schema.mjs';
|
|
23
24
|
import 'react';
|
|
24
25
|
import '@farming-labs/orm';
|
|
25
|
-
import '../types-DFbjpjXX.mjs';
|
|
26
26
|
import '@farming-labs/docs';
|
|
27
|
-
import '../observability-
|
|
27
|
+
import '../observability-CoXunYhS.mjs';
|
|
28
28
|
import '@opentelemetry/api';
|
|
29
|
-
import '../workflows-
|
|
29
|
+
import '../workflows-jZ4BcdoZ.mjs';
|
|
30
30
|
import '../cron.mjs';
|
|
31
31
|
import '../env.mjs';
|
|
32
32
|
import '../server-action-security.mjs';
|
|
@@ -38,7 +38,7 @@ import '../font.mjs';
|
|
|
38
38
|
import '../after.mjs';
|
|
39
39
|
import 'node:http';
|
|
40
40
|
import '../island-CfGru1MO.mjs';
|
|
41
|
-
import '../resolver-
|
|
41
|
+
import '../resolver-khasx3fU.mjs';
|
|
42
42
|
|
|
43
43
|
interface APIRoute extends FarmRouteRuntimeConfig {
|
|
44
44
|
pluginMethods?: string[];
|
|
@@ -54,6 +54,8 @@ interface APIRouteManagerOptions {
|
|
|
54
54
|
bodySizeLimit?: number;
|
|
55
55
|
/** Same-origin path where canonical `/api` routes are served. */
|
|
56
56
|
basePath?: string;
|
|
57
|
+
/** Runs a plugin's call to an app endpoint through the app's request pipeline. */
|
|
58
|
+
dispatch?: PluginAPIDispatch;
|
|
57
59
|
}
|
|
58
60
|
interface APIRouteHandlerOptions {
|
|
59
61
|
/** Let a framework request boundary report the original endpoint error. */
|
|
@@ -74,7 +76,10 @@ declare class APIRouteManager {
|
|
|
74
76
|
private i18n?;
|
|
75
77
|
private bodySizeLimit?;
|
|
76
78
|
private basePath?;
|
|
79
|
+
private dispatch?;
|
|
77
80
|
constructor(appDir: string | readonly string[], viteServer?: ViteDevServer, options?: APIRouteManagerOptions);
|
|
81
|
+
/** Every file the current handlers were loaded from: route files and root routes files. */
|
|
82
|
+
getSourceFiles(): Set<string>;
|
|
78
83
|
/**
|
|
79
84
|
* Discover route.ts files in /app/api and explicit endpoints in root routes.ts
|
|
80
85
|
*/
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { P as PluginAPIDispatch } from '../runtime-CQVsT330.js';
|
|
2
|
+
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from '../runtime-CQVsT330.js';
|
|
3
|
+
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-r1mOtSC1.js';
|
|
2
4
|
import { ViteDevServer } from 'vite';
|
|
3
|
-
import '../types-
|
|
4
|
-
import { F as FarmI18nRuntime } from '../runtime-
|
|
5
|
-
export { API_ROUTE_METHODS, getAllowedAPIRouteMethods, invokeAPIRouteEndpoint, isWebResponse, normalizeRouteResponse, resolveAPIRouteEndpoint } from './runtime.js';
|
|
5
|
+
import '../types-CnH8DOqo.js';
|
|
6
|
+
import { F as FarmI18nRuntime } from '../runtime-BgDQzBiu.js';
|
|
6
7
|
import { A as APIRouteMatch } from '../route-pattern-W-SsJGSp.js';
|
|
7
8
|
export { b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.js';
|
|
8
|
-
import '../lifecycle-DK06VuKP.js';
|
|
9
|
-
import '../integration-api-BPJo5oXb.js';
|
|
10
9
|
import '../endpoint-CA-TNX60.js';
|
|
11
10
|
import '../cache.js';
|
|
12
11
|
import '../cache-invalidation-BD0z_lfu.js';
|
|
12
|
+
import '../integration-api-BPJo5oXb.js';
|
|
13
|
+
import '../lifecycle-DK06VuKP.js';
|
|
13
14
|
import '../renderer.js';
|
|
14
15
|
import '../deployment.js';
|
|
15
16
|
import 'http';
|
|
@@ -22,11 +23,10 @@ import 'unstorage';
|
|
|
22
23
|
import '../schema.js';
|
|
23
24
|
import 'react';
|
|
24
25
|
import '@farming-labs/orm';
|
|
25
|
-
import '../types-DFbjpjXX.js';
|
|
26
26
|
import '@farming-labs/docs';
|
|
27
|
-
import '../observability-
|
|
27
|
+
import '../observability-CoXunYhS.js';
|
|
28
28
|
import '@opentelemetry/api';
|
|
29
|
-
import '../workflows-
|
|
29
|
+
import '../workflows-jZ4BcdoZ.js';
|
|
30
30
|
import '../cron.js';
|
|
31
31
|
import '../env.js';
|
|
32
32
|
import '../server-action-security.js';
|
|
@@ -38,7 +38,7 @@ import '../font.js';
|
|
|
38
38
|
import '../after.js';
|
|
39
39
|
import 'node:http';
|
|
40
40
|
import '../island-CfGru1MO.js';
|
|
41
|
-
import '../resolver-
|
|
41
|
+
import '../resolver-DadfRL6F.js';
|
|
42
42
|
|
|
43
43
|
interface APIRoute extends FarmRouteRuntimeConfig {
|
|
44
44
|
pluginMethods?: string[];
|
|
@@ -54,6 +54,8 @@ interface APIRouteManagerOptions {
|
|
|
54
54
|
bodySizeLimit?: number;
|
|
55
55
|
/** Same-origin path where canonical `/api` routes are served. */
|
|
56
56
|
basePath?: string;
|
|
57
|
+
/** Runs a plugin's call to an app endpoint through the app's request pipeline. */
|
|
58
|
+
dispatch?: PluginAPIDispatch;
|
|
57
59
|
}
|
|
58
60
|
interface APIRouteHandlerOptions {
|
|
59
61
|
/** Let a framework request boundary report the original endpoint error. */
|
|
@@ -74,7 +76,10 @@ declare class APIRouteManager {
|
|
|
74
76
|
private i18n?;
|
|
75
77
|
private bodySizeLimit?;
|
|
76
78
|
private basePath?;
|
|
79
|
+
private dispatch?;
|
|
77
80
|
constructor(appDir: string | readonly string[], viteServer?: ViteDevServer, options?: APIRouteManagerOptions);
|
|
81
|
+
/** Every file the current handlers were loaded from: route files and root routes files. */
|
|
82
|
+
getSourceFiles(): Set<string>;
|
|
78
83
|
/**
|
|
79
84
|
* Discover route.ts files in /app/api and explicit endpoints in root routes.ts
|
|
80
85
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APIRouteConflictError,
|
|
3
3
|
APIRouteManager
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-T4OGRVNS.mjs";
|
|
5
5
|
import "../chunk-UDNPLXW7.mjs";
|
|
6
6
|
import "../chunk-CU625VAY.mjs";
|
|
7
7
|
import "../chunk-NPC7VWJE.mjs";
|
|
@@ -14,23 +14,23 @@ import {
|
|
|
14
14
|
isWebResponse,
|
|
15
15
|
normalizeRouteResponse,
|
|
16
16
|
resolveAPIRouteEndpoint
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-O6I6VWKK.mjs";
|
|
18
18
|
import "../chunk-3UEVPCGW.mjs";
|
|
19
19
|
import "../chunk-W3B4PKAW.mjs";
|
|
20
20
|
import "../chunk-5WI2S4CO.mjs";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-ZLAT2CWY.mjs";
|
|
22
22
|
import "../chunk-EA5K5BKU.mjs";
|
|
23
23
|
import "../chunk-2J7W2WND.mjs";
|
|
24
24
|
import "../chunk-MSSFIQGM.mjs";
|
|
25
25
|
import "../chunk-FZ6YYU2W.mjs";
|
|
26
26
|
import "../chunk-FP2INE7H.mjs";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-ZMMBIVQM.mjs";
|
|
28
|
+
import "../chunk-KMTGADN3.mjs";
|
|
29
29
|
import "../chunk-BCMSYSN2.mjs";
|
|
30
30
|
import "../chunk-KI3MESHB.mjs";
|
|
31
31
|
import "../chunk-QVKYGNVM.mjs";
|
|
32
|
-
import "../chunk-BTHHUD7Q.mjs";
|
|
33
32
|
import "../chunk-FUZEBRP3.mjs";
|
|
33
|
+
import "../chunk-BTHHUD7Q.mjs";
|
|
34
34
|
import "../chunk-EMLAPBEM.mjs";
|
|
35
35
|
import {
|
|
36
36
|
matchAPIRoute
|
package/dist/api/runtime.cjs
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkS6VYG6XUcjs = require('../chunk-S6VYG6XU.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkIWZKTWHZcjs = require('../chunk-IWZKTWHZ.cjs');
|
|
@@ -22,13 +22,14 @@ require('../chunk-TKJZFIML.cjs');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
var _chunk75RZHGLScjs = require('../chunk-75RZHGLS.cjs');
|
|
26
27
|
require('../chunk-YWN746US.cjs');
|
|
27
28
|
require('../chunk-LSKZMJMP.cjs');
|
|
28
29
|
require('../chunk-SVRTJOUF.cjs');
|
|
29
|
-
require('../chunk-
|
|
30
|
-
require('../chunk-KNBBQHO2.cjs');
|
|
30
|
+
require('../chunk-KIIMAWOJ.cjs');
|
|
31
31
|
require('../chunk-E3UK5IIB.cjs');
|
|
32
|
+
require('../chunk-KNBBQHO2.cjs');
|
|
32
33
|
require('../chunk-ARJWXNQL.cjs');
|
|
33
34
|
|
|
34
35
|
|
|
@@ -59,4 +60,5 @@ require('../chunk-S3JO3N4H.cjs');
|
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
|
|
64
|
+
exports.API_ROUTE_METHODS = _chunkS6VYG6XUcjs.API_ROUTE_METHODS; exports._findFarmMCPEndpointTool = _chunk75RZHGLScjs._findFarmMCPEndpointTool; exports._publishFarmMCPCatalog = _chunk75RZHGLScjs._publishFarmMCPCatalog; exports.createEndpointFailureResponse = _chunkS6VYG6XUcjs.createEndpointFailureResponse; exports.createStaticAPIRouteMatcherAtBasePath = _chunkS6VYG6XUcjs.createStaticAPIRouteMatcherAtBasePath; exports.getAllowedAPIRouteMethods = _chunkS6VYG6XUcjs.getAllowedAPIRouteMethods; exports.invokeAPIRouteEndpoint = _chunkS6VYG6XUcjs.invokeAPIRouteEndpoint; exports.isEndpointFailure = _chunkIWZKTWHZcjs.isEndpointFailure; exports.isFarmAPIPathname = _chunkS6VYG6XUcjs.isFarmAPIPathname; exports.isWebResponse = _chunkS6VYG6XUcjs.isWebResponse; exports.matchAPIRoute = _chunkG7HXGLECcjs.matchAPIRoute; exports.matchAPIRouteAtBasePath = _chunkS6VYG6XUcjs.matchAPIRouteAtBasePath; exports.mergePluginAPIRoutes = _chunkS6VYG6XUcjs.mergePluginAPIRoutes; exports.normalizeRouteResponse = _chunkS6VYG6XUcjs.normalizeRouteResponse; exports.parseRouteSchema = _chunkS6VYG6XUcjs.parseRouteSchema; exports.registerAPIRouteShape = _chunkWMAPPDMMcjs.registerAPIRouteShape; exports.registerFarmMCPServer = _chunk75RZHGLScjs.registerFarmMCPServer; exports.resolveAPIRouteEndpoint = _chunkS6VYG6XUcjs.resolveAPIRouteEndpoint;
|