@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
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveFarmAPICanonicalPathname,
|
|
3
|
+
resolveFarmAPIServerRoutePath
|
|
4
|
+
} from "./chunk-BTHHUD7Q.mjs";
|
|
5
|
+
import {
|
|
6
|
+
matchAPIRoute
|
|
7
|
+
} from "./chunk-O7BH5O46.mjs";
|
|
8
|
+
import {
|
|
9
|
+
__name
|
|
10
|
+
} from "./chunk-LPEX4YW6.mjs";
|
|
11
|
+
|
|
12
|
+
// src/mcp-catalog.ts
|
|
13
|
+
var CATALOGS = /* @__PURE__ */ Symbol.for("farm.mcp.catalogs");
|
|
14
|
+
function catalogs() {
|
|
15
|
+
const state = globalThis;
|
|
16
|
+
return state[CATALOGS] ?? (state[CATALOGS] = /* @__PURE__ */ new Map());
|
|
17
|
+
}
|
|
18
|
+
__name(catalogs, "catalogs");
|
|
19
|
+
function _listFarmMCPCatalogs() {
|
|
20
|
+
return [...catalogs().values()];
|
|
21
|
+
}
|
|
22
|
+
__name(_listFarmMCPCatalogs, "_listFarmMCPCatalogs");
|
|
23
|
+
function _publishFarmMCPCatalog(server, tools, details) {
|
|
24
|
+
const entry = { server, tools, ...details ? { details } : {} };
|
|
25
|
+
catalogs().set(server.path, entry);
|
|
26
|
+
return () => {
|
|
27
|
+
if (catalogs().get(server.path) === entry) catalogs().delete(server.path);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
__name(_publishFarmMCPCatalog, "_publishFarmMCPCatalog");
|
|
31
|
+
var SERVERS = /* @__PURE__ */ Symbol.for("farm.mcp.servers");
|
|
32
|
+
function registeredServers() {
|
|
33
|
+
const state = globalThis;
|
|
34
|
+
return state[SERVERS] ?? (state[SERVERS] = /* @__PURE__ */ new Map());
|
|
35
|
+
}
|
|
36
|
+
__name(registeredServers, "registeredServers");
|
|
37
|
+
function _listFarmRegisteredMCPServers() {
|
|
38
|
+
return [...registeredServers().values()];
|
|
39
|
+
}
|
|
40
|
+
__name(_listFarmRegisteredMCPServers, "_listFarmRegisteredMCPServers");
|
|
41
|
+
function registerFarmMCPServer(server) {
|
|
42
|
+
const entry = validateFarmMCPServerRegistration(server);
|
|
43
|
+
const key = entry.path ?? entry.url;
|
|
44
|
+
registeredServers().set(key, entry);
|
|
45
|
+
return () => {
|
|
46
|
+
if (registeredServers().get(key) === entry) registeredServers().delete(key);
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
__name(registerFarmMCPServer, "registerFarmMCPServer");
|
|
50
|
+
function validateFarmMCPServerRegistration(server) {
|
|
51
|
+
if (!server || typeof server !== "object") {
|
|
52
|
+
throw new TypeError("registerFarmMCPServer expects a server object.");
|
|
53
|
+
}
|
|
54
|
+
const text = /* @__PURE__ */ __name((key, required) => {
|
|
55
|
+
const value = server[key];
|
|
56
|
+
if (value === void 0 && !required) return void 0;
|
|
57
|
+
if (typeof value !== "string" || !value.trim()) {
|
|
58
|
+
throw new TypeError(`registerFarmMCPServer ${key} must be a non-empty string.`);
|
|
59
|
+
}
|
|
60
|
+
return value.trim();
|
|
61
|
+
}, "text");
|
|
62
|
+
const name = text("name", true);
|
|
63
|
+
const version = text("version", true);
|
|
64
|
+
const title = text("title", false);
|
|
65
|
+
const description = text("description", false);
|
|
66
|
+
const { path, url } = server;
|
|
67
|
+
if (path === void 0 === (url === void 0)) {
|
|
68
|
+
throw new TypeError("registerFarmMCPServer takes exactly one of path and url.");
|
|
69
|
+
}
|
|
70
|
+
let endpoint;
|
|
71
|
+
if (path !== void 0) {
|
|
72
|
+
if (typeof path !== "string" || !/^\/(?!\/)[^?#\\\s]*$/.test(path) || path.split("/").some((segment) => segment === "." || segment === "..")) {
|
|
73
|
+
throw new TypeError(
|
|
74
|
+
"registerFarmMCPServer path must be an absolute app path without a query, hash, or dot segments."
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
endpoint = { path: path.length > 1 ? path.replace(/\/+$/, "") : path };
|
|
78
|
+
} else {
|
|
79
|
+
let parsed;
|
|
80
|
+
try {
|
|
81
|
+
parsed = typeof url === "string" ? new URL(url) : void 0;
|
|
82
|
+
} catch {
|
|
83
|
+
parsed = void 0;
|
|
84
|
+
}
|
|
85
|
+
if (!parsed || parsed.protocol !== "https:" && parsed.protocol !== "http:" || parsed.username || parsed.password || parsed.search || parsed.hash) {
|
|
86
|
+
throw new TypeError(
|
|
87
|
+
"registerFarmMCPServer url must be an absolute http(s) URL without credentials, a query, or a hash."
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
endpoint = { url: `${parsed.origin}${parsed.pathname.replace(/\/+$/, "")}` };
|
|
91
|
+
}
|
|
92
|
+
const { protocolVersions } = server;
|
|
93
|
+
if (protocolVersions !== void 0 && (!Array.isArray(protocolVersions) || protocolVersions.some((version2) => typeof version2 !== "string" || !version2.trim()))) {
|
|
94
|
+
throw new TypeError("registerFarmMCPServer protocolVersions must be non-empty strings.");
|
|
95
|
+
}
|
|
96
|
+
return Object.freeze({
|
|
97
|
+
name,
|
|
98
|
+
version,
|
|
99
|
+
...title ? { title } : {},
|
|
100
|
+
...description ? { description } : {},
|
|
101
|
+
...protocolVersions?.length ? { protocolVersions: Object.freeze([...protocolVersions]) } : {},
|
|
102
|
+
...endpoint
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
__name(validateFarmMCPServerRegistration, "validateFarmMCPServerRegistration");
|
|
106
|
+
function _findFarmMCPEndpointTool(method, pathname, serverBasePath) {
|
|
107
|
+
const upperMethod = method.toUpperCase();
|
|
108
|
+
for (const { server, tools } of catalogs().values()) {
|
|
109
|
+
const routes = /* @__PURE__ */ new Map();
|
|
110
|
+
for (const tool of tools) {
|
|
111
|
+
if (tool.kind === "endpoint" && tool.method === upperMethod) {
|
|
112
|
+
routes.set(tool.path, { path: tool.path, name: tool.name });
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (routes.size === 0) continue;
|
|
116
|
+
const canonical = serverBasePath ? resolveFarmAPICanonicalPathname(pathname, serverBasePath) : pathname;
|
|
117
|
+
const match = matchAPIRoute(routes, canonical);
|
|
118
|
+
if (match) {
|
|
119
|
+
return {
|
|
120
|
+
name: match.route.name,
|
|
121
|
+
endpoint: resolveFarmAPIServerRoutePath(server.path, serverBasePath)
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return void 0;
|
|
126
|
+
}
|
|
127
|
+
__name(_findFarmMCPEndpointTool, "_findFarmMCPEndpointTool");
|
|
128
|
+
|
|
129
|
+
export {
|
|
130
|
+
_listFarmMCPCatalogs,
|
|
131
|
+
_publishFarmMCPCatalog,
|
|
132
|
+
_listFarmRegisteredMCPServers,
|
|
133
|
+
registerFarmMCPServer,
|
|
134
|
+
_findFarmMCPEndpointTool
|
|
135
|
+
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
var _chunkSVRTJOUFcjs = require('./chunk-SVRTJOUF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkOMVAU7NTcjs = require('./chunk-OMVAU7NT.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -107,7 +107,7 @@ function resolveServerActionsConfig(config) {
|
|
|
107
107
|
const allowedOrigins = (_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.allowedOrigins]), () => ( []))).map(
|
|
108
108
|
(value) => _chunkSVRTJOUFcjs.normalizeAllowedOriginPattern.call(void 0, value, SERVER_ACTION_ALLOWED_ORIGINS_LABEL)
|
|
109
109
|
);
|
|
110
|
-
const bodySizeLimit =
|
|
110
|
+
const bodySizeLimit = _chunkOMVAU7NTcjs.parseBodySizeLimit.call(void 0,
|
|
111
111
|
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _2 => _2.bodySizeLimit]), () => ( DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT)),
|
|
112
112
|
"serverActions.bodySizeLimit"
|
|
113
113
|
);
|
|
@@ -9,18 +9,18 @@ import { d as FarmStorageUserConfig } from './types-Cc8l9IqS.mjs';
|
|
|
9
9
|
import { FarmSchemaField, FarmSchema, FarmSchemaModel, FarmSchemaReference, FarmSchemaFieldType, FarmSchemaConstraint, FarmSchemaModelExtension, FarmSchemaModelOverride, defineSchema, FarmSchemaConfig } from './schema.mjs';
|
|
10
10
|
import React__default, { ComponentType, ReactNode } from 'react';
|
|
11
11
|
import { OrmClient, SchemaDefinition, ModelDefinition, FieldBuilder, JsonValue, AnyModelDefinition, SchemaModels } from '@farming-labs/orm';
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { DocsConfig } from '@farming-labs/docs';
|
|
13
|
+
import { I as FarmObservabilityUserConfig } from './observability-CoXunYhS.mjs';
|
|
14
14
|
import * as vite from 'vite';
|
|
15
15
|
import { ViteDevServer, UserConfig, Plugin as Plugin$1, Connect } from 'vite';
|
|
16
|
-
import {
|
|
16
|
+
import { e as FarmWorkflowsUserConfig, a as FarmServerConfig, F as FarmWorkflowsResolvedConfig, R as ResolvedFarmServerConfig } from './workflows-jZ4BcdoZ.mjs';
|
|
17
17
|
import { FarmCronUserConfig, FarmCronResolvedConfig } from './cron.mjs';
|
|
18
18
|
import { ResolvedFarmEnv, FarmEnvConfig } from './env.mjs';
|
|
19
19
|
import { FarmServerActionsConfig, ResolvedFarmServerActionsConfig } from './server-action-security.mjs';
|
|
20
20
|
import * as rolldown_utils from 'rolldown/utils';
|
|
21
21
|
import { Plugin } from 'rolldown';
|
|
22
22
|
import { F as FarmImageConfig, R as ResolvedFarmImageConfig } from './image-config-Duob7wER.mjs';
|
|
23
|
-
import {
|
|
23
|
+
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
24
24
|
import { FarmCacheUserConfig } from './cache.mjs';
|
|
25
25
|
import { R as ResolvedFarmThemeConfig, d as FarmThemeConfig } from './types-DQnyD3VD.mjs';
|
|
26
26
|
import { FarmLayoutFonts } from './font.mjs';
|
|
@@ -269,6 +269,108 @@ declare function isFarmRedirectError(error: unknown): boolean;
|
|
|
269
269
|
declare function getFarmRedirectError(error: unknown): FarmRedirectSignal | null;
|
|
270
270
|
declare function isFarmNotFoundError(error: unknown): boolean;
|
|
271
271
|
|
|
272
|
+
interface FarmDocsAdapterDescriptor {
|
|
273
|
+
id: string;
|
|
274
|
+
protocol: number;
|
|
275
|
+
server: string;
|
|
276
|
+
react?: string;
|
|
277
|
+
vite?: string;
|
|
278
|
+
/**
|
|
279
|
+
* Build-time entry that compiles the adapter's docs runtime into Farm's
|
|
280
|
+
* serializable edge manifest. Older Farm releases safely ignore it.
|
|
281
|
+
*/
|
|
282
|
+
edgeCompiler?: string;
|
|
283
|
+
}
|
|
284
|
+
interface FarmDocsSidebarItem {
|
|
285
|
+
label?: string;
|
|
286
|
+
title?: string;
|
|
287
|
+
slug?: string;
|
|
288
|
+
href?: string;
|
|
289
|
+
icon?: string;
|
|
290
|
+
children?: FarmDocsSidebarItem[];
|
|
291
|
+
items?: FarmDocsSidebarItem[];
|
|
292
|
+
}
|
|
293
|
+
interface FarmDocsNavigationConfig {
|
|
294
|
+
sidebar?: FarmDocsSidebarItem[];
|
|
295
|
+
}
|
|
296
|
+
interface FarmDocsSocialImageConfig {
|
|
297
|
+
/** Generate a page-specific 1200×630 social image. Defaults to true. */
|
|
298
|
+
enabled?: boolean;
|
|
299
|
+
/** Absolute public origin used in social metadata, e.g. https://example.com. */
|
|
300
|
+
baseUrl?: string;
|
|
301
|
+
/** Site name shown in Open Graph metadata. Defaults to the docs navigation title. */
|
|
302
|
+
siteName?: string;
|
|
303
|
+
/** Short brand label drawn in the image header. Defaults to siteName. */
|
|
304
|
+
brand?: string;
|
|
305
|
+
/** Optional WOFF2 URLs or data URLs embedded into the generated SVG. */
|
|
306
|
+
fonts?: FarmDocsSocialImageFonts;
|
|
307
|
+
}
|
|
308
|
+
interface FarmDocsSocialImageFonts {
|
|
309
|
+
/** Display face used for page titles. */
|
|
310
|
+
display?: string;
|
|
311
|
+
/** Sans-serif face used for descriptions. */
|
|
312
|
+
sans?: string;
|
|
313
|
+
/** Monospace face used for labels, routes, and diagrams. */
|
|
314
|
+
mono?: string;
|
|
315
|
+
}
|
|
316
|
+
type FarmDocsRuntimeConfig = Partial<DocsConfig> & {
|
|
317
|
+
/**
|
|
318
|
+
* Public favicon URL used by the standalone docs renderer.
|
|
319
|
+
* Set this explicitly when docs should share the host application's icon.
|
|
320
|
+
*/
|
|
321
|
+
favicon?: string;
|
|
322
|
+
/**
|
|
323
|
+
* Optional serializable navigation tree used by Farm's docs runtime.
|
|
324
|
+
* Icon values reference keys from `icons`.
|
|
325
|
+
*/
|
|
326
|
+
navigation?: FarmDocsNavigationConfig;
|
|
327
|
+
/**
|
|
328
|
+
* Automatic page-specific Open Graph and X images for Markdown docs.
|
|
329
|
+
* Enabled by default. Set false to opt out for the complete docs tree.
|
|
330
|
+
*/
|
|
331
|
+
socialImage?: boolean | FarmDocsSocialImageConfig;
|
|
332
|
+
};
|
|
333
|
+
type FarmDocsConfigInput = FarmDocsRuntimeConfig & {
|
|
334
|
+
/**
|
|
335
|
+
* Versioned runtime descriptor supplied by an external docs adapter.
|
|
336
|
+
* Set false to pin the embedded renderer and disable framework
|
|
337
|
+
* auto-detection.
|
|
338
|
+
*/
|
|
339
|
+
adapter?: FarmDocsAdapterDescriptor | false;
|
|
340
|
+
/**
|
|
341
|
+
* Farm public route for docs, e.g. "/docs". When passed through
|
|
342
|
+
* `config`, this is converted to the docs package's folder-style `entry`.
|
|
343
|
+
*/
|
|
344
|
+
entry?: string;
|
|
345
|
+
/** Explicit public route prefix. Defaults to `entry`. */
|
|
346
|
+
docsPath?: string;
|
|
347
|
+
/** Source content directory, relative to the project root. */
|
|
348
|
+
contentDir?: string;
|
|
349
|
+
/** Set to false to opt out even when a docs config file exists. */
|
|
350
|
+
enabled?: boolean;
|
|
351
|
+
/** Inline @farming-labs/docs config object. */
|
|
352
|
+
config?: FarmDocsRuntimeConfig;
|
|
353
|
+
/** Path to docs.config.* or docs.json. */
|
|
354
|
+
configPath?: string;
|
|
355
|
+
};
|
|
356
|
+
type FarmDocsUserConfig = boolean | FarmDocsConfigInput;
|
|
357
|
+
interface FarmDocsResolvedConfig {
|
|
358
|
+
enabled: boolean;
|
|
359
|
+
entry: string;
|
|
360
|
+
adapter?: FarmDocsAdapterDescriptor;
|
|
361
|
+
contentDir?: string;
|
|
362
|
+
configPath?: string;
|
|
363
|
+
config: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
|
|
364
|
+
/**
|
|
365
|
+
* `config` before it was made serializable: icons and other React elements, MDX
|
|
366
|
+
* components, and callbacks intact. Only the in-process adapter runtime reads it;
|
|
367
|
+
* whatever Farm serializes uses `config`.
|
|
368
|
+
*/
|
|
369
|
+
runtimeConfig?: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
|
|
370
|
+
/** The serializable docs settings from `farm.config.ts`, applied over the config file. */
|
|
371
|
+
configOverrides?: Partial<DocsConfig>;
|
|
372
|
+
}
|
|
373
|
+
|
|
272
374
|
/**
|
|
273
375
|
* Integration auth routes accept ordinary form posts, which browsers send
|
|
274
376
|
* cross-site without a CORS preflight. Without an origin check, a third-party
|
|
@@ -2203,6 +2305,8 @@ interface FarmMCPServer {
|
|
|
2203
2305
|
readonly name: string;
|
|
2204
2306
|
readonly version: string;
|
|
2205
2307
|
readonly path: `/api/${string}`;
|
|
2308
|
+
readonly title?: string;
|
|
2309
|
+
readonly description?: string;
|
|
2206
2310
|
}
|
|
2207
2311
|
interface FarmMCPAuthorization extends Record<string, unknown> {
|
|
2208
2312
|
/** Stable application principal identifier. Never written to a response or log by Farm. */
|
|
@@ -2237,6 +2341,13 @@ interface FarmMCPConfig {
|
|
|
2237
2341
|
name?: string;
|
|
2238
2342
|
/** MCP server version. @default "1.0.0" */
|
|
2239
2343
|
version?: string;
|
|
2344
|
+
/** Display name, sent in `serverInfo` and the server card. */
|
|
2345
|
+
title?: string;
|
|
2346
|
+
/**
|
|
2347
|
+
* What the server does, sent in `serverInfo` and the server card that
|
|
2348
|
+
* `/.well-known/ai-catalog.json` lists. The card keeps the first 100 characters.
|
|
2349
|
+
*/
|
|
2350
|
+
description?: string;
|
|
2240
2351
|
/** Explicit endpoint/standalone tool allowlist. Omit to discover route-owned MCP metadata. */
|
|
2241
2352
|
tools?: readonly FarmMCPToolDefinition[];
|
|
2242
2353
|
/** Read-only context for agents, from `defineResource()`. */
|
|
@@ -2275,6 +2386,8 @@ declare function resolveFarmMCPPlugin(config: ResolvedFarmMCPConfig, options: {
|
|
|
2275
2386
|
type JSONSchema = Readonly<Record<string, unknown>>;
|
|
2276
2387
|
/** What a server can say beyond its tool list, for the app manifest. All optional. */
|
|
2277
2388
|
interface FarmMCPCatalogDetails {
|
|
2389
|
+
/** MCP protocol versions the endpoint accepts, for its server card. */
|
|
2390
|
+
protocolVersions?: readonly string[];
|
|
2278
2391
|
/** Each tool's input and output JSON Schemas, by tool name. */
|
|
2279
2392
|
schemas?: Readonly<Record<string, {
|
|
2280
2393
|
input: JSONSchema;
|
|
@@ -2301,6 +2414,52 @@ interface FarmMCPCatalogDetails {
|
|
|
2301
2414
|
* the same endpoint. Returns a function that removes it.
|
|
2302
2415
|
*/
|
|
2303
2416
|
declare function _publishFarmMCPCatalog(server: FarmMCPServer, tools: readonly FarmMCPTool[], details?: FarmMCPCatalogDetails): () => void;
|
|
2417
|
+
interface FarmMCPServerRegistrationBase {
|
|
2418
|
+
/** Server name; a reverse-DNS name (`dev.farmjs/docs`) is kept as the card's name. */
|
|
2419
|
+
name: string;
|
|
2420
|
+
version: string;
|
|
2421
|
+
/** Display name for the card and the catalog entry. */
|
|
2422
|
+
title?: string;
|
|
2423
|
+
/** What the server does. The card keeps the first 100 characters. */
|
|
2424
|
+
description?: string;
|
|
2425
|
+
/** MCP protocol versions the endpoint accepts, for its server card. */
|
|
2426
|
+
protocolVersions?: readonly string[];
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
* An MCP server that Farm lists in `/.well-known/ai-catalog.json`, `/.well-known/ard.json`,
|
|
2430
|
+
* and the generated `/llms.txt`, but does not serve: a docs runtime's endpoint, an agent
|
|
2431
|
+
* runtime, or a server on another host. It is not part of the `/.well-known/farmjs`
|
|
2432
|
+
* manifest, which lists the tools Farm itself serves.
|
|
2433
|
+
*/
|
|
2434
|
+
type FarmMCPServerRegistration = FarmMCPServerRegistrationBase & ({
|
|
2435
|
+
/**
|
|
2436
|
+
* The Streamable HTTP endpoint's path in this app, below the app's `basePath`.
|
|
2437
|
+
* Taken literally: it is not rewritten through `api.basePath`. Farm serves the
|
|
2438
|
+
* server card at `<path>/server-card`.
|
|
2439
|
+
*/
|
|
2440
|
+
path: `/${string}`;
|
|
2441
|
+
url?: never;
|
|
2442
|
+
} | {
|
|
2443
|
+
/**
|
|
2444
|
+
* An absolute `http(s)` URL of an endpoint on another origin, which serves its
|
|
2445
|
+
* own card at `<url>/server-card`.
|
|
2446
|
+
*/
|
|
2447
|
+
url: string;
|
|
2448
|
+
path?: never;
|
|
2449
|
+
});
|
|
2450
|
+
/**
|
|
2451
|
+
* List an MCP server Farm does not serve itself in the app's AI catalog. Registering
|
|
2452
|
+
* the same endpoint again replaces the earlier entry. Returns a function that removes it.
|
|
2453
|
+
*
|
|
2454
|
+
* ```ts
|
|
2455
|
+
* const unregister = registerFarmMCPServer({
|
|
2456
|
+
* name: "dev.farmjs/agent",
|
|
2457
|
+
* version: "1.0.0",
|
|
2458
|
+
* path: "/agent/mcp",
|
|
2459
|
+
* });
|
|
2460
|
+
* ```
|
|
2461
|
+
*/
|
|
2462
|
+
declare function registerFarmMCPServer(server: FarmMCPServerRegistration): () => void;
|
|
2304
2463
|
interface FarmMCPEndpointTool {
|
|
2305
2464
|
/** The MCP tool name. */
|
|
2306
2465
|
name: string;
|
|
@@ -2554,6 +2713,8 @@ declare function createFarmDefaultLlmsTxt(options: {
|
|
|
2554
2713
|
pages: FarmLlmsTxtPage[];
|
|
2555
2714
|
config: ResolvedFarmLlmsTxtConfig;
|
|
2556
2715
|
rootMetadata?: unknown;
|
|
2716
|
+
/** The app's MCP endpoints and AI catalog, listed in an "MCP" section. */
|
|
2717
|
+
mcp?: FarmLlmsTxtLink[];
|
|
2557
2718
|
}): FarmLlmsTxt;
|
|
2558
2719
|
/**
|
|
2559
2720
|
* Reads a page's Markdown the way an agent would: a fresh `.md` request with no
|
|
@@ -2730,8 +2891,9 @@ declare function createFarmAgentRobots(options: FarmAgentRobotsOptions): Metadat
|
|
|
2730
2891
|
/**
|
|
2731
2892
|
* Agent-readiness configuration: primitives that make a Farm site easier for AI agents and
|
|
2732
2893
|
* crawlers to discover, resolve, and use. The ones that only describe the site agents can
|
|
2733
|
-
* already read (JSON-LD, llms.txt
|
|
2734
|
-
* (crawler rules, an API catalog)
|
|
2894
|
+
* already read (JSON-LD, llms.txt, and the AI catalog of MCP servers the app already
|
|
2895
|
+
* serves) are on by default; the ones that expose more (crawler rules, an API catalog)
|
|
2896
|
+
* are opt-in. Each one turns off with `false`.
|
|
2735
2897
|
*/
|
|
2736
2898
|
|
|
2737
2899
|
/** schema.org JSON-LD emitted in the document head to identify the site. */
|
|
@@ -2804,6 +2966,17 @@ interface FarmAgentUserConfig {
|
|
|
2804
2966
|
* @default false
|
|
2805
2967
|
*/
|
|
2806
2968
|
apiCatalog?: boolean;
|
|
2969
|
+
/**
|
|
2970
|
+
* Advertise the app's MCP servers (the top-level `mcp` config, `apiMcp()`, and
|
|
2971
|
+
* endpoints listed with `registerFarmMCPServer`, such as the docs engine's):
|
|
2972
|
+
* `/.well-known/ai-catalog.json` (and `/.well-known/ard.json`) lists a server
|
|
2973
|
+
* card for each, served at `<endpoint>/server-card`, and the generated
|
|
2974
|
+
* `/llms.txt` names each endpoint. Nothing is served when the app has no MCP
|
|
2975
|
+
* server. `false` turns all of it off.
|
|
2976
|
+
*
|
|
2977
|
+
* @default true
|
|
2978
|
+
*/
|
|
2979
|
+
aiCatalog?: boolean;
|
|
2807
2980
|
}
|
|
2808
2981
|
interface ResolvedFarmAgentConfig {
|
|
2809
2982
|
jsonLd: FarmAgentJsonLd | false;
|
|
@@ -2811,6 +2984,7 @@ interface ResolvedFarmAgentConfig {
|
|
|
2811
2984
|
llmsTxt: ResolvedFarmLlmsTxtConfig;
|
|
2812
2985
|
crawlers: ResolvedFarmAgentCrawlers;
|
|
2813
2986
|
apiCatalog: boolean;
|
|
2987
|
+
aiCatalog: boolean;
|
|
2814
2988
|
}
|
|
2815
2989
|
|
|
2816
2990
|
declare global {
|
|
@@ -3245,6 +3419,8 @@ interface RouteModule<TRoute extends FarmRoutePropsTarget = FarmRoutePropsDefaul
|
|
|
3245
3419
|
generateStaticParams?: GenerateStaticParams<TRoute>;
|
|
3246
3420
|
metadata?: Metadata & Record<string, any>;
|
|
3247
3421
|
generateMetadata?: (props: MetadataProps<TRoute>) => Promise<Metadata> | Metadata;
|
|
3422
|
+
viewport?: Viewport;
|
|
3423
|
+
generateViewport?: (props: MetadataProps<TRoute>) => Promise<Viewport> | Viewport;
|
|
3248
3424
|
}
|
|
3249
3425
|
/** A value accepted for one static route parameter. */
|
|
3250
3426
|
type StaticPathPrimitive = string | number | boolean;
|
|
@@ -3275,9 +3451,33 @@ interface LayoutModule<TRoute extends FarmRoutePropsTarget = FarmRoutePropsDefau
|
|
|
3275
3451
|
maxDuration?: FarmRouteMaxDuration;
|
|
3276
3452
|
metadata?: Metadata & Record<string, any>;
|
|
3277
3453
|
generateMetadata?: (props: LayoutMetadataProps<TRoute>) => Promise<Metadata> | Metadata;
|
|
3454
|
+
viewport?: Viewport;
|
|
3455
|
+
generateViewport?: (props: LayoutMetadataProps<TRoute>) => Promise<Viewport> | Viewport;
|
|
3278
3456
|
}
|
|
3279
3457
|
/** A schema.org JSON-LD object, such as `{ "@context": "https://schema.org", "@type": "Article" }`. */
|
|
3280
3458
|
type MetadataJsonLd = object;
|
|
3459
|
+
/** A `theme-color` entry, optionally for one `prefers-color-scheme` media query. */
|
|
3460
|
+
interface ThemeColorDescriptor {
|
|
3461
|
+
color: string;
|
|
3462
|
+
media?: string;
|
|
3463
|
+
}
|
|
3464
|
+
/**
|
|
3465
|
+
* The `viewport` export of a layout or page, and the return value of `generateViewport()`, as in
|
|
3466
|
+
* Next.js. Layouts and the page merge from root to page over the default
|
|
3467
|
+
* `width=device-width, initial-scale=1`.
|
|
3468
|
+
*/
|
|
3469
|
+
interface Viewport {
|
|
3470
|
+
width?: string | number;
|
|
3471
|
+
height?: string | number;
|
|
3472
|
+
initialScale?: number;
|
|
3473
|
+
minimumScale?: number;
|
|
3474
|
+
maximumScale?: number;
|
|
3475
|
+
userScalable?: boolean;
|
|
3476
|
+
viewportFit?: "auto" | "cover" | "contain";
|
|
3477
|
+
interactiveWidget?: "resizes-visual" | "resizes-content" | "overlays-content";
|
|
3478
|
+
themeColor?: string | ThemeColorDescriptor | ThemeColorDescriptor[];
|
|
3479
|
+
colorScheme?: string;
|
|
3480
|
+
}
|
|
3281
3481
|
interface Metadata {
|
|
3282
3482
|
metadataBase?: string | URL;
|
|
3283
3483
|
/** `absolute` names a page exactly, past any parent `template` (as in Next.js). */
|
|
@@ -3468,4 +3668,4 @@ interface MetadataRobots extends MetadataRobotsDirectives {
|
|
|
3468
3668
|
googleBot?: string | MetadataRobotsDirectives;
|
|
3469
3669
|
}
|
|
3470
3670
|
|
|
3471
|
-
export { type FarmContextFactoryInput as $, createFarmMarkdownErrorBody as A, farmRequestWantsMarkdown as B, type FarmUserConfig as C, type FarmAgentJsonLd as D, type FarmContextFactory as E, type FarmRouteRuntimeConfig as F, type MiddlewareProps as G, type BundleResultPayload as H, type FarmIntegration as I, type FarmConfig as J, farmPlugin as K, type LayoutProps as L, type Metadata as M, defineConfig as N, resolveFarmMCPConfig as O, type ParsedRoute as P, resolveFarmMCPPlugin as Q, type RouteSegment as R, type FarmMCPUserConfig as S, type FarmComponentType as T, type AppRoutePattern as U, type PageRouteParams as V, type NitroPreset as W, type FarmMigrationCommand as X, type FarmMigrationsConfig as Y, type FarmMigrationsUserConfig as Z, type ResolvedFarmMigrationsConfig as _, type FarmPlugin as a, manageFarmHtmlPreloads as a$, type FarmIsolatedClientHydrationMode as a0, type LoadingProps as a1, type ErrorProps as a2, type PagePropsWithMiddleware as a3, type MetadataProps as a4, type LayoutMetadataProps as a5, type Page as a6, type Layout as a7, type Loading as a8, type ErrorBoundary as a9, type MiddlewareConfig$1 as aA, type MiddlewareContext as aB, _findFarmMCPEndpointTool as aC, _publishFarmMCPCatalog as aD, type FarmMCPCatalogDetails as aE, type ResolvedFarmRouteRuntimeConfig as aF, type ApplicationMetadataRouteKind as aG, type ResolvedFarmAPIConfig as aH, type FarmMarkdownResolvedConfig as aI, type ResolvedFarmDevtoolsConfig as aJ, type ResolvedFarmDevIndicatorsConfig as aK, type ResolvedFarmAuthConfig as aL, type ResolvedFarmPerformanceConfig as aM, type ResolvedFarmSecurityConfig as aN, type APIRequestRuntime as aO, type ResolvedFarmMCPConfig as aP, createFarmMetadataRouteResponse as aQ, createFarmAgentRobots as aR, collectFarmLlmsTxtPages as aS, createFarmDefaultLlmsTxt as aT, createFarmLlmsMarkdownReader as aU, renderFarmLlmsFullTxt as aV, createFarmLlmsFullRenderer as aW, resolveFarmLlmsTxtConfig as aX, type FarmLlmsTxtUserConfig as aY, type ResolvedFarmLlmsTxtConfig as aZ, manageFarmDocumentPreloads as a_, type StaticPathPrimitive as aa, type StaticPathParams as ab, type StaticRouteParams as ac, type GenerateStaticParams as ad, type LayoutModule as ae, type MetadataJsonLd as af, type ServerAction as ag, type BuildOptions as ah, type SSGPage as ai, type SSGCollectionResult as aj, type MetadataRobotsDirectives as ak, type MetadataRobots as al, type FarmLayerEntry as am, type ResolvedFarmLayer as an, type FarmSourceRoot as ao, type ResolveFarmLayersOptions as ap, type FarmLayerResolution as aq, resolveFarmLayers as ar, getFarmSourceRoots as as, getFarmAppDirectories as at, getFarmLayerAliases as au, createFarmConfigResolutionPlugin as av, loadFarmConfigFile as aw, type ReadonlyMiddlewareStore as ax, type FarmMiddlewareConfig as ay, type MiddlewareModule as az, isFarmRedirectError as b, type FarmMCPPromptMessage as b$, manageFarmLinkHeaderPreloads as b0, reportFarmPreloadWarnings as b1, applyFarmCspNonceToResponse as b2, resolveFarmSecurityConfig as b3, type ResolvedSchemaField as b4, type FarmSqlDialect as b5, type FarmSqlStatement as b6, type CollectedSchemaModel as b7, type FarmSchemaMigrationStep as b8, type OpenAPIConfig as b9, type ResolvedFarmPreloadConfig as bA, type FarmCspConfig as bB, type FarmCspDirectives as bC, type FarmCspDirectiveValue as bD, type FarmCspOptions as bE, type FarmSecurityConfig as bF, type ResolvedFarmCspConfig as bG, MetadataRoute as bH, type MetadataRouteContext as bI, type FarmMCPEndpointTool as bJ, type FarmAuthConfig as bK, type FarmAuthDatabaseConfig as bL, type FarmAuthEmailAndPasswordConfig as bM, type FarmAuthSessionConfig as bN, type FarmAuthUserConfig as bO, type FarmMCPAuthorization as bP, type FarmMCPEndpoint as bQ, type FarmMCPServerFunction as bR, type FarmMCPToolDefinition as bS, type FarmMCPStandaloneTool as bT, type FarmMCPExecuteContext as bU, type FarmMCPTool as bV, type FarmMCPServer as bW, type FarmMCPAuthorizeContext as bX, type FarmMCPConfig as bY, type FarmMCPOAuthConfig as bZ, type FarmMCPPrompt as b_, type FarmAgentUserConfig as ba, type FarmAgentCrawlers as bb, type FarmCrawlerPolicy as bc, definePlugin as bd, FarmRuntimeShutdownError as be, PluginManager as bf, type FarmPluginDatabase as bg, type FarmPluginDefinition as bh, FarmPluginOptionsError as bi, type FarmPluginFactory as bj, type FarmPluginOptionsIssue as bk, type FarmPluginOptionsSchema as bl, type InferPluginOptionsInput as bm, type InferPluginOptionsOutput as bn, resolveConfig as bo, loadConfig as bp, resolveDeployConfig as bq, resolveMigrationsConfig as br, resolveDeployOutputPath as bs, normalizeDeployTarget as bt, getDeployTargetForPreset as bu, getPresetForDeployTarget as bv, type FarmLayerConfig as bw, type FarmPerformanceConfig as bx, type FarmPreloadMode as by, type FarmPreloadUserConfig as bz, type FarmRedirectSignal as c, quoteSqlIdentifier as c$, type FarmMCPResource as c0, type FarmMCPResourceContent as c1, type FarmMCPResourceContext as c2, type FarmMCPResourceListing as c3, type PluginRequestContext as c4, type FarmPluginIntegrationContext as c5, type FarmPluginLifecycle as c6, type FarmRequestPluginContext as c7, type FarmRequestStore as c8, type FarmPluginRuntimeKind as c9, type RouteMatchPayload as cA, type RouteMatchResultPayload as cB, type RenderLifecyclePayload as cC, type APIHandlerLifecyclePayload as cD, type ErrorLifecyclePayload as cE, type HMRUpdatePayload as cF, type BundleLifecyclePayload as cG, type NitroBuildLifecyclePayload as cH, type ShutdownPayload as cI, type ResolvedFarmConfig as cJ, type RedirectConfig as cK, type HeaderConfig as cL, type RewriteConfig as cM, type ImageConfig as cN, type I18nConfig as cO, type MiddlewareConfig as cP, type FarmDeployConfig as cQ, type ResolvedFarmDeployConfig as cR, type FarmDeployTarget as cS, type FarmMarkdownUserConfig as cT, describeSchemaReference as cU, collectSchemaModels as cV, generateSqlStatements as cW, renderSqlSchemaFile as cX, getSqlColumnType as cY, getSqlDefaultExpression as cZ, isNullableField as c_, type FarmPluginRouteRuntimePayload as ca, type FarmPluginSetupContext as cb, type FarmPluginStateContext as cc, type FarmPluginRuntimeBaseEvent as cd, type FarmPluginRuntimeContextEvent as ce, type FarmPluginRuntimeEndpoint as cf, type FarmPluginRuntimeEndpointEvent as cg, type FarmPluginRuntimeBeforeEvent as ch, type FarmPluginRuntimeAfterEvent as ci, type FarmPluginRuntimeErrorEvent as cj, type FarmPluginRuntimeStartEvent as ck, type FarmPluginRuntimeCloseEvent as cl, type FarmPluginRuntimeHooks as cm, type FarmPluginRuntimeRequestOptions as cn, type FarmPluginRuntimeRequestHandler as co, type FarmPluginRuntimeSession as cp, type FarmPluginDiscoveredRoute as cq, type FarmPluginRouterHooks as cr, type FarmPluginRenderHooks as cs, type FarmPluginBuildHooks as ct, type FarmPluginDevHooks as cu, type FarmPluginClientConfig as cv, type RouteDiscoveredPayload as cw, type RoutesGeneratedPayload as cx, type MiddlewareDiscoveredPayload as cy, type APIRouteDiscoveredPayload as cz, type FarmRedirectStatus as d, getFarmIntegrationPluginOwner as d$, toSnakeCase as d0, toPascalCase as d1, toCamelCase as d2, escapeSqlString as d3, resolveSchemaModels as d4, type ResolvedSchemaModel as d5, type FarmIntegrationCategory as d6, type FarmIntegrationSlot as d7, type FarmIntegrationRouteParamValue as d8, type FarmIntegrationRouteParams as d9, type FarmIntegrationHandlerContext as dA, type FarmIntegrationRouteHookContext as dB, type FarmIntegrationRouteHook as dC, type FarmIntegrationRoute as dD, type FarmTypedIntegrationRoute as dE, type FarmIntegrationRouteMiddleware as dF, type FarmIntegrationMiddleware as dG, type FarmIntegrationProviderProps as dH, type FarmIntegrationProviderComponentReference as dI, type FarmIntegrationProvider as dJ, type FarmIntegrationDocumentNavigation as dK, type FarmIntegrationSchemaFieldType as dL, type FarmIntegrationSchemaReference as dM, type FarmIntegrationSchemaField as dN, type FarmIntegrationSchemaConstraint as dO, type FarmIntegrationSchemaModel as dP, type FarmIntegrationSchemaModelExtension as dQ, type FarmIntegrationSchemaModelOverride as dR, type FarmIntegrationSchema as dS, defineIntegrationSchema as dT, type FarmIntegrationLogPhase as dU, type FarmIntegrationLogEvent as dV, type FarmIntegrationLogger as dW, type FarmIntegrationPluginOwner as dX, type FarmIntegrationContributedPlugin as dY, type FarmIntegrationsUserConfig as dZ, getFarmIntegrationPluginServerRuntime as d_, type FarmIntegrationRouteMethod as da, type FarmIntegrationRouteInputSource as db, type FarmIntegrationValidationPathSegment as dc, type FarmIntegrationRouteInput as dd, type FarmIntegrationValidationIssue as de, type FarmIntegrationValidationErrorLike as df, type FarmIntegrationValidationResult as dg, type FarmIntegrationStandardValidationResult as dh, type FarmIntegrationInputSchema as di, type FarmIntegrationRouteInputSchemas as dj, type FarmIntegrationRequestContextStore as dk, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as dl, FARM_INTEGRATION_SET_COOKIES_KEY as dm, forwardIntegrationSetCookies as dn, type FarmIntegrationRouteDb as dp, type FarmIntegrationRouteStorageArgs as dq, type FarmIntegrationRouteArgs as dr, type FarmIntegrationConfigContext as ds, type FarmIntegrationConfigDefinition as dt, type FarmIntegrationConfigInput as du, type FarmIntegrationLifecycleLogLevel as dv, type FarmIntegrationLifecycleLogger as dw, type FarmIntegrationLifecycleContext as dx, type FarmIntegrationLifecycleHook as dy, type FarmIntegrationData as dz, type FarmRequest as e, type NextFunction as e$, type FarmIntegrationRouteFactory as e0, type FarmIntegrationRoutesFactoryContext as e1, type FarmIntegrationRoutesFactory as e2, type FarmIntegrationEndpointValue as e3, type FarmIntegrationEndpoints as e4, type FarmIntegrationEndpointsFactoryContext as e5, type FarmIntegrationEndpointsFactory as e6, createIntegrationRoute as e7, integrationRoute as e8, type DefinedIntegration as e9, type InferFarmIntegrationOrmClient as eA, type CreateIntegrationOrmOptions as eB, createIntegrationOrm as eC, resolveIntegrationOrmRuntimeClient as eD, farmIntegrationSchemaToOrmSchema as eE, type IntegrationOrmModelNames as eF, DEFAULT_FARM_API_BASE_PATH as eG, type FarmAPIConfigResolverContext as eH, type FarmAPIConfigValue as eI, type FarmAPIConfig as eJ, resolveFarmAPIConfig as eK, normalizeFarmAPIConfig as eL, normalizeFarmAPIBasePath as eM, getFarmAPIBaseURL as eN, resolveFarmAPIRequestURL as eO, type MiddlewareFunction as eP, type RequestMiddleware as eQ, type RequestMiddlewareContext as eR, type MiddlewareStore as eS, type MiddlewareChain as eT, type CookieJar as eU, type CookieOptions as eV, type RateLimitConfig as eW, type RateLimitIncrementResult as eX, type RateLimitStorage as eY, type RateLimitStatus as eZ, type MemoryRateLimitStorageOptions as e_, defineIntegration as ea, isFarmIntegration as eb, resolveIntegrationPlugins as ec, getIntegrationProviders as ed, isFarmIntegrationProviderComponentReference as ee, getIntegrationDocumentNavigationMatchers as ef, getIntegrationSchemas as eg, getRegisteredIntegrationRuntime as eh, getRegisteredIntegrations as ei, getRegisteredIntegrationSchemas as ej, matchIntegrationRoute as ek, matchRegisteredIntegrationRoute as el, getRegisteredIntegrationAPIManifest as em, dispatchIntegrationRequest as en, dispatchIntegrationRequests as eo, describeIntegrationOriginRejection as ep, resolveIntegrationAllowedOrigins as eq, validateIntegrationRequestOrigin as er, type IntegrationOriginPolicy as es, type IntegrationOriginRejection as et, type IntegrationOriginResult as eu, type FarmIntegrationOrmSchema as ev, type FarmIntegrationOrmClient as ew, type InferFarmIntegrationOrmField as ex, type InferFarmIntegrationOrmFields as ey, type InferFarmIntegrationOrmSchema as ez, type FarmResponse as f, FARM_NODE_RESPONSE_END_PENDING as f$, type MiddlewareResult as f0, type FarmRouteRuleRenderMode as f1, type FarmRouteRuleRedirect as f2, type FarmRouteRuleCors as f3, type FarmRouteRule as f4, type FarmRouteRules as f5, normalizeRouteRules as f6, routeRulesToRedirects as f7, routeRulesToHeaders as f8, routeRulesToNitroRouteRules as f9, getFarmMarkdownAlternatePath as fA, isFarmMarkdownMirrorExposed as fB, matchesFarmMarkdownRoutePattern as fC, type FarmPageFormOption as fD, type FarmPageFormField as fE, type FarmPageFormSubmit as fF, type FarmPageFormAction as fG, extractFarmPageActions as fH, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fI, FARM_DEVTOOLS_PATH as fJ, FARM_DEVTOOLS_LAUNCH_PARAM as fK, type FarmDevtoolsConfig as fL, type FarmDevtoolsUserConfig as fM, resolveFarmDevtoolsConfig as fN, type FarmBuildActivityPosition as fO, type FarmDevIndicatorsConfig as fP, resolveFarmDevIndicatorsConfig as fQ, generateFarmDevIndicatorsClientRuntime as fR, farmI18nClientBridgePlugin as fS, farmServerOnlyEntriesPlugin as fT, withFarmRequestTracing as fU, rewriteEarlySsrRelativeImports as fV, transformIsolatedClientBoundaryModule as fW, shouldEmitFarmClientRootHmr as fX, generateClientCachePersistenceCode as fY, resolveFarmClientCacheAdapterEntry as fZ, type ClientCachePersistenceEntryCode as f_, type FarmRouteRuntimeEntryKind as fa, type FarmRouteRenderingMode as fb, type FarmRouteRuntimeManifestEntry as fc, type FarmRouteRuntimeManifest as fd, normalizeFarmRouteRuntimeConfig as fe, mergeFarmRouteRuntimeConfigs as ff, resolveFarmRouteRuntimeConfig as fg, hasFarmRouteRuntimeControls as fh, getFarmRouteRuntimeConfig as fi, createFarmRouteRuntimeKey as fj, resolveFarmRouteRuleRuntimeConfig as fk, farmRouteRuleMatches as fl, type FarmMarkdownRouteInput as fm, type FarmMarkdownResolvedRoute as fn, type FarmMarkdownMirrorTarget as fo, type ResolveMarkdownMirrorTargetOptions as fp, type CreateMarkdownMirrorResponseOptions as fq, type ApplyMarkdownNegotiationHeadersOptions as fr, resolveMarkdownConfig as fs, resolveMarkdownMirrorTarget as ft, createMarkdownMirrorResponse as fu, applyMarkdownNegotiationHeaders as fv, htmlToMarkdown as fw, farmAcceptQuality as fx, requestAcceptsMarkdown as fy, getFarmMarkdownMirrorPath as fz, getFarmRedirectError as g, loadFarmDevModule as g0, FarmDevEnvironmentError as g1, type FarmDevModuleServer as g2, type FarmPluginContext as h, isFarmNotFoundError as i, type FarmRouteRuntime as j, type FarmRouteRegions as k, type FarmRouteMaxDuration as l, type FarmAppContext as m, notFound as n, type PageProps as o, permanentRedirect as p, type PluginContextProps as q, redirect as r, type RouteModule as s, type FarmMdxComponents as t, type FarmMdxResolvedConfig as u, resolveFarmMdxComponentsModulePath as v, resolveMdxConfig as w, type FarmMdxComponent as x, type FarmMdxUserConfig as y, FARM_MARKDOWN_CONTENT_TYPE as z };
|
|
3671
|
+
export { type FarmContextFactoryInput as $, createFarmMarkdownErrorBody as A, farmRequestWantsMarkdown as B, type FarmUserConfig as C, type FarmAgentJsonLd as D, type FarmContextFactory as E, type FarmRouteRuntimeConfig as F, type MiddlewareProps as G, type BundleResultPayload as H, type FarmIntegration as I, type FarmConfig as J, farmPlugin as K, type LayoutProps as L, type Metadata as M, defineConfig as N, resolveFarmMCPConfig as O, type ParsedRoute as P, resolveFarmMCPPlugin as Q, type RouteSegment as R, type FarmMCPUserConfig as S, type FarmComponentType as T, type AppRoutePattern as U, type PageRouteParams as V, type NitroPreset as W, type FarmMigrationCommand as X, type FarmMigrationsConfig as Y, type FarmMigrationsUserConfig as Z, type ResolvedFarmMigrationsConfig as _, type FarmPlugin as a, type FarmCrawlerPolicy as a$, type FarmIsolatedClientHydrationMode as a0, type LoadingProps as a1, type ErrorProps as a2, type PagePropsWithMiddleware as a3, type MetadataProps as a4, type LayoutMetadataProps as a5, type Page as a6, type Layout as a7, type Loading as a8, type ErrorBoundary as a9, type FarmMiddlewareConfig as aA, type MiddlewareModule as aB, type MiddlewareConfig$1 as aC, type MiddlewareContext as aD, _findFarmMCPEndpointTool as aE, _publishFarmMCPCatalog as aF, registerFarmMCPServer as aG, type FarmMCPCatalogDetails as aH, type FarmMCPServerRegistration as aI, type ResolvedFarmRouteRuntimeConfig as aJ, type ApplicationMetadataRouteKind as aK, type ResolvedFarmAPIConfig as aL, type FarmDocsResolvedConfig as aM, type FarmMarkdownResolvedConfig as aN, type ResolvedFarmDevtoolsConfig as aO, type ResolvedFarmDevIndicatorsConfig as aP, type ResolvedFarmAuthConfig as aQ, type ResolvedFarmPerformanceConfig as aR, type ResolvedFarmSecurityConfig as aS, type ResolvedSchemaField as aT, type FarmSqlDialect as aU, type FarmSqlStatement as aV, type CollectedSchemaModel as aW, type FarmSchemaMigrationStep as aX, type OpenAPIConfig as aY, type FarmAgentUserConfig as aZ, type FarmAgentCrawlers as a_, type StaticPathPrimitive as aa, type StaticPathParams as ab, type StaticRouteParams as ac, type GenerateStaticParams as ad, type LayoutModule as ae, type MetadataJsonLd as af, type ThemeColorDescriptor as ag, type Viewport as ah, type ServerAction as ai, type BuildOptions as aj, type SSGPage as ak, type SSGCollectionResult as al, type MetadataRobotsDirectives as am, type MetadataRobots as an, type FarmLayerEntry as ao, type ResolvedFarmLayer as ap, type FarmSourceRoot as aq, type ResolveFarmLayersOptions as ar, type FarmLayerResolution as as, resolveFarmLayers as at, getFarmSourceRoots as au, getFarmAppDirectories as av, getFarmLayerAliases as aw, createFarmConfigResolutionPlugin as ax, loadFarmConfigFile as ay, type ReadonlyMiddlewareStore as az, isFarmRedirectError as b, type FarmPluginSetupContext as b$, definePlugin as b0, FarmRuntimeShutdownError as b1, PluginManager as b2, type FarmPluginDatabase as b3, type FarmPluginDefinition as b4, FarmPluginOptionsError as b5, type FarmPluginFactory as b6, type FarmPluginOptionsIssue as b7, type FarmPluginOptionsSchema as b8, type InferPluginOptionsInput as b9, type FarmAuthSessionConfig as bA, type FarmAuthUserConfig as bB, type FarmMCPAuthorization as bC, type FarmMCPEndpoint as bD, type FarmMCPServerFunction as bE, type FarmMCPToolDefinition as bF, type FarmMCPStandaloneTool as bG, type FarmMCPExecuteContext as bH, type FarmMCPTool as bI, type FarmMCPServer as bJ, type FarmMCPAuthorizeContext as bK, type FarmMCPConfig as bL, type FarmMCPOAuthConfig as bM, type FarmMCPPrompt as bN, type FarmMCPPromptMessage as bO, type FarmMCPResource as bP, type FarmMCPResourceContent as bQ, type FarmMCPResourceContext as bR, type FarmMCPResourceListing as bS, type ResolvedFarmMCPConfig as bT, type PluginRequestContext as bU, type FarmPluginIntegrationContext as bV, type FarmPluginLifecycle as bW, type FarmRequestPluginContext as bX, type FarmRequestStore as bY, type FarmPluginRuntimeKind as bZ, type FarmPluginRouteRuntimePayload as b_, type InferPluginOptionsOutput as ba, resolveConfig as bb, loadConfig as bc, resolveDeployConfig as bd, resolveMigrationsConfig as be, resolveDeployOutputPath as bf, normalizeDeployTarget as bg, getDeployTargetForPreset as bh, getPresetForDeployTarget as bi, type FarmLayerConfig as bj, type FarmPerformanceConfig as bk, type FarmPreloadMode as bl, type FarmPreloadUserConfig as bm, type ResolvedFarmPreloadConfig as bn, type FarmCspConfig as bo, type FarmCspDirectives as bp, type FarmCspDirectiveValue as bq, type FarmCspOptions as br, type FarmSecurityConfig as bs, type ResolvedFarmCspConfig as bt, MetadataRoute as bu, type MetadataRouteContext as bv, type FarmMCPEndpointTool as bw, type FarmAuthConfig as bx, type FarmAuthDatabaseConfig as by, type FarmAuthEmailAndPasswordConfig as bz, type FarmRedirectSignal as c, type FarmIntegrationRouteMethod as c$, type FarmPluginStateContext as c0, type FarmPluginRuntimeBaseEvent as c1, type FarmPluginRuntimeContextEvent as c2, type FarmPluginRuntimeEndpoint as c3, type FarmPluginRuntimeEndpointEvent as c4, type FarmPluginRuntimeBeforeEvent as c5, type FarmPluginRuntimeAfterEvent as c6, type FarmPluginRuntimeErrorEvent as c7, type FarmPluginRuntimeStartEvent as c8, type FarmPluginRuntimeCloseEvent as c9, type RewriteConfig as cA, type ImageConfig as cB, type I18nConfig as cC, type MiddlewareConfig as cD, type FarmDeployConfig as cE, type ResolvedFarmDeployConfig as cF, type FarmDeployTarget as cG, type FarmDocsUserConfig as cH, type FarmMarkdownUserConfig as cI, describeSchemaReference as cJ, collectSchemaModels as cK, generateSqlStatements as cL, renderSqlSchemaFile as cM, getSqlColumnType as cN, getSqlDefaultExpression as cO, isNullableField as cP, quoteSqlIdentifier as cQ, toSnakeCase as cR, toPascalCase as cS, toCamelCase as cT, escapeSqlString as cU, resolveSchemaModels as cV, type ResolvedSchemaModel as cW, type FarmIntegrationCategory as cX, type FarmIntegrationSlot as cY, type FarmIntegrationRouteParamValue as cZ, type FarmIntegrationRouteParams as c_, type FarmPluginRuntimeHooks as ca, type FarmPluginRuntimeRequestOptions as cb, type FarmPluginRuntimeRequestHandler as cc, type FarmPluginRuntimeSession as cd, type FarmPluginDiscoveredRoute as ce, type FarmPluginRouterHooks as cf, type FarmPluginRenderHooks as cg, type FarmPluginBuildHooks as ch, type FarmPluginDevHooks as ci, type FarmPluginClientConfig as cj, type RouteDiscoveredPayload as ck, type RoutesGeneratedPayload as cl, type MiddlewareDiscoveredPayload as cm, type APIRouteDiscoveredPayload as cn, type RouteMatchPayload as co, type RouteMatchResultPayload as cp, type RenderLifecyclePayload as cq, type APIHandlerLifecyclePayload as cr, type ErrorLifecyclePayload as cs, type HMRUpdatePayload as ct, type BundleLifecyclePayload as cu, type NitroBuildLifecyclePayload as cv, type ShutdownPayload as cw, type ResolvedFarmConfig as cx, type RedirectConfig as cy, type HeaderConfig as cz, type FarmRedirectStatus as d, defineIntegration as d$, type FarmIntegrationRouteInputSource as d0, type FarmIntegrationValidationPathSegment as d1, type FarmIntegrationRouteInput as d2, type FarmIntegrationValidationIssue as d3, type FarmIntegrationValidationErrorLike as d4, type FarmIntegrationValidationResult as d5, type FarmIntegrationStandardValidationResult as d6, type FarmIntegrationInputSchema as d7, type FarmIntegrationRouteInputSchemas as d8, type FarmIntegrationRequestContextStore as d9, type FarmIntegrationSchemaFieldType as dA, type FarmIntegrationSchemaReference as dB, type FarmIntegrationSchemaField as dC, type FarmIntegrationSchemaConstraint as dD, type FarmIntegrationSchemaModel as dE, type FarmIntegrationSchemaModelExtension as dF, type FarmIntegrationSchemaModelOverride as dG, type FarmIntegrationSchema as dH, defineIntegrationSchema as dI, type FarmIntegrationLogPhase as dJ, type FarmIntegrationLogEvent as dK, type FarmIntegrationLogger as dL, type FarmIntegrationPluginOwner as dM, type FarmIntegrationContributedPlugin as dN, type FarmIntegrationsUserConfig as dO, getFarmIntegrationPluginServerRuntime as dP, getFarmIntegrationPluginOwner as dQ, type FarmIntegrationRouteFactory as dR, type FarmIntegrationRoutesFactoryContext as dS, type FarmIntegrationRoutesFactory as dT, type FarmIntegrationEndpointValue as dU, type FarmIntegrationEndpoints as dV, type FarmIntegrationEndpointsFactoryContext as dW, type FarmIntegrationEndpointsFactory as dX, createIntegrationRoute as dY, integrationRoute as dZ, type DefinedIntegration as d_, FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY as da, FARM_INTEGRATION_SET_COOKIES_KEY as db, forwardIntegrationSetCookies as dc, type FarmIntegrationRouteDb as dd, type FarmIntegrationRouteStorageArgs as de, type FarmIntegrationRouteArgs as df, type FarmIntegrationConfigContext as dg, type FarmIntegrationConfigDefinition as dh, type FarmIntegrationConfigInput as di, type FarmIntegrationLifecycleLogLevel as dj, type FarmIntegrationLifecycleLogger as dk, type FarmIntegrationLifecycleContext as dl, type FarmIntegrationLifecycleHook as dm, type FarmIntegrationData as dn, type FarmIntegrationHandlerContext as dp, type FarmIntegrationRouteHookContext as dq, type FarmIntegrationRouteHook as dr, type FarmIntegrationRoute as ds, type FarmTypedIntegrationRoute as dt, type FarmIntegrationRouteMiddleware as du, type FarmIntegrationMiddleware as dv, type FarmIntegrationProviderProps as dw, type FarmIntegrationProviderComponentReference as dx, type FarmIntegrationProvider as dy, type FarmIntegrationDocumentNavigation as dz, type FarmRequest as e, type FarmRouteRuntimeEntryKind as e$, isFarmIntegration as e0, resolveIntegrationPlugins as e1, getIntegrationProviders as e2, isFarmIntegrationProviderComponentReference as e3, getIntegrationDocumentNavigationMatchers as e4, getIntegrationSchemas as e5, getRegisteredIntegrationRuntime as e6, getRegisteredIntegrations as e7, getRegisteredIntegrationSchemas as e8, matchIntegrationRoute as e9, normalizeFarmAPIConfig as eA, normalizeFarmAPIBasePath as eB, getFarmAPIBaseURL as eC, resolveFarmAPIRequestURL as eD, type MiddlewareFunction as eE, type RequestMiddleware as eF, type RequestMiddlewareContext as eG, type MiddlewareStore as eH, type MiddlewareChain as eI, type CookieJar as eJ, type CookieOptions as eK, type RateLimitConfig as eL, type RateLimitIncrementResult as eM, type RateLimitStorage as eN, type RateLimitStatus as eO, type MemoryRateLimitStorageOptions as eP, type NextFunction as eQ, type MiddlewareResult as eR, type FarmRouteRuleRenderMode as eS, type FarmRouteRuleRedirect as eT, type FarmRouteRuleCors as eU, type FarmRouteRule as eV, type FarmRouteRules as eW, normalizeRouteRules as eX, routeRulesToRedirects as eY, routeRulesToHeaders as eZ, routeRulesToNitroRouteRules as e_, matchRegisteredIntegrationRoute as ea, getRegisteredIntegrationAPIManifest as eb, dispatchIntegrationRequest as ec, dispatchIntegrationRequests as ed, describeIntegrationOriginRejection as ee, resolveIntegrationAllowedOrigins as ef, validateIntegrationRequestOrigin as eg, type IntegrationOriginPolicy as eh, type IntegrationOriginRejection as ei, type IntegrationOriginResult as ej, type FarmIntegrationOrmSchema as ek, type FarmIntegrationOrmClient as el, type InferFarmIntegrationOrmField as em, type InferFarmIntegrationOrmFields as en, type InferFarmIntegrationOrmSchema as eo, type InferFarmIntegrationOrmClient as ep, type CreateIntegrationOrmOptions as eq, createIntegrationOrm as er, resolveIntegrationOrmRuntimeClient as es, farmIntegrationSchemaToOrmSchema as et, type IntegrationOrmModelNames as eu, DEFAULT_FARM_API_BASE_PATH as ev, type FarmAPIConfigResolverContext as ew, type FarmAPIConfigValue as ex, type FarmAPIConfig as ey, resolveFarmAPIConfig as ez, type FarmResponse as f, reportFarmPreloadWarnings as f$, type FarmRouteRenderingMode as f0, type FarmRouteRuntimeManifestEntry as f1, type FarmRouteRuntimeManifest as f2, normalizeFarmRouteRuntimeConfig as f3, mergeFarmRouteRuntimeConfigs as f4, resolveFarmRouteRuntimeConfig as f5, hasFarmRouteRuntimeControls as f6, getFarmRouteRuntimeConfig as f7, createFarmRouteRuntimeKey as f8, resolveFarmRouteRuleRuntimeConfig as f9, type FarmPageFormAction as fA, extractFarmPageActions as fB, DEFAULT_FARM_DEVTOOLS_SHORTCUT as fC, FARM_DEVTOOLS_PATH as fD, FARM_DEVTOOLS_LAUNCH_PARAM as fE, type FarmDevtoolsConfig as fF, type FarmDevtoolsUserConfig as fG, resolveFarmDevtoolsConfig as fH, type FarmBuildActivityPosition as fI, type FarmDevIndicatorsConfig as fJ, resolveFarmDevIndicatorsConfig as fK, generateFarmDevIndicatorsClientRuntime as fL, type APIRequestRuntime as fM, type FarmLlmsTxtLink as fN, createFarmMetadataRouteResponse as fO, createFarmAgentRobots as fP, collectFarmLlmsTxtPages as fQ, createFarmDefaultLlmsTxt as fR, createFarmLlmsMarkdownReader as fS, renderFarmLlmsFullTxt as fT, createFarmLlmsFullRenderer as fU, resolveFarmLlmsTxtConfig as fV, type FarmLlmsTxtUserConfig as fW, type ResolvedFarmLlmsTxtConfig as fX, manageFarmDocumentPreloads as fY, manageFarmHtmlPreloads as fZ, manageFarmLinkHeaderPreloads as f_, farmRouteRuleMatches as fa, type FarmDocsConfigInput as fb, type FarmDocsNavigationConfig as fc, type FarmDocsSocialImageConfig as fd, type FarmDocsSocialImageFonts as fe, type FarmDocsSidebarItem as ff, type FarmMarkdownRouteInput as fg, type FarmMarkdownResolvedRoute as fh, type FarmMarkdownMirrorTarget as fi, type ResolveMarkdownMirrorTargetOptions as fj, type CreateMarkdownMirrorResponseOptions as fk, type ApplyMarkdownNegotiationHeadersOptions as fl, resolveMarkdownConfig as fm, resolveMarkdownMirrorTarget as fn, createMarkdownMirrorResponse as fo, applyMarkdownNegotiationHeaders as fp, htmlToMarkdown as fq, farmAcceptQuality as fr, requestAcceptsMarkdown as fs, getFarmMarkdownMirrorPath as ft, getFarmMarkdownAlternatePath as fu, isFarmMarkdownMirrorExposed as fv, matchesFarmMarkdownRoutePattern as fw, type FarmPageFormOption as fx, type FarmPageFormField as fy, type FarmPageFormSubmit as fz, getFarmRedirectError as g, applyFarmCspNonceToResponse as g0, resolveFarmSecurityConfig as g1, farmI18nClientBridgePlugin as g2, farmServerOnlyEntriesPlugin as g3, withFarmRequestTracing as g4, rewriteEarlySsrRelativeImports as g5, transformIsolatedClientBoundaryModule as g6, shouldEmitFarmClientRootHmr as g7, generateClientCachePersistenceCode as g8, resolveFarmClientCacheAdapterEntry as g9, type ClientCachePersistenceEntryCode as ga, FARM_NODE_RESPONSE_END_PENDING as gb, loadFarmDevModule as gc, FarmDevEnvironmentError as gd, type FarmDevModuleServer as ge, type FarmPluginContext as h, isFarmNotFoundError as i, type FarmRouteRuntime as j, type FarmRouteRegions as k, type FarmRouteMaxDuration as l, type FarmAppContext as m, notFound as n, type PageProps as o, permanentRedirect as p, type PluginContextProps as q, redirect as r, type RouteModule as s, type FarmMdxComponents as t, type FarmMdxResolvedConfig as u, resolveFarmMdxComponentsModulePath as v, resolveMdxConfig as w, type FarmMdxComponent as x, type FarmMdxUserConfig as y, FARM_MARKDOWN_CONTENT_TYPE as z };
|