@farm.js/core 0.1.38 → 0.1.39
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-BwKlpnc7.d.mts → agent-mcp-BhneNPb4.d.mts} +1 -1
- package/dist/{agent-mcp-De1imoMS.d.ts → agent-mcp-HcTYQmNX.d.ts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/agent-runtime.mjs +2 -2
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.d.mts +3 -3
- package/dist/api.d.ts +3 -3
- package/dist/{app-kT_QXTdx.d.ts → app-CMkoghtp.d.ts} +3 -3
- package/dist/{app-CFZt-srr.d.mts → app-DVzmmbNO.d.mts} +3 -3
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{chunk-4E5QXOCL.cjs → chunk-5ULKUBIA.cjs} +6 -6
- package/dist/{chunk-TYMMBFN2.mjs → chunk-677THUVP.mjs} +1 -1
- package/dist/{chunk-CXEN47J3.mjs → chunk-73WX6PRY.mjs} +25 -0
- package/dist/{chunk-ZJD2PN6Z.mjs → chunk-75HN5IZ3.mjs} +12 -2
- package/dist/{chunk-L4DD7ODZ.cjs → chunk-A657YSP4.cjs} +2 -2
- package/dist/{chunk-YR2VBEMO.cjs → chunk-AS2VPMEE.cjs} +96 -96
- package/dist/{chunk-IBUQWVYA.mjs → chunk-ATSDUUFK.mjs} +11 -1
- package/dist/{chunk-TYJALEHQ.cjs → chunk-B5J2YVG7.cjs} +14 -14
- package/dist/{chunk-FWE7LEQC.cjs → chunk-BD3D7EZV.cjs} +4 -4
- package/dist/{chunk-7FPTZLKH.mjs → chunk-BFJTHYTN.mjs} +1 -1
- package/dist/{chunk-VU6AAZVY.cjs → chunk-BWIQR4DH.cjs} +13 -3
- package/dist/{chunk-XKVVMZP5.cjs → chunk-BXDJXFQG.cjs} +4 -4
- package/dist/{chunk-4IE345DM.cjs → chunk-CIOT4HGT.cjs} +2 -2
- package/dist/{chunk-DRLKAXDM.mjs → chunk-EGCTIS5F.mjs} +2 -2
- package/dist/{chunk-B6G5CKMC.mjs → chunk-GKBWWRBG.mjs} +3 -3
- package/dist/{chunk-Q3NXS4MU.cjs → chunk-HRETEZ2Z.cjs} +13 -3
- package/dist/{chunk-EMO6K4YY.cjs → chunk-HRSAQ23K.cjs} +7 -7
- package/dist/{chunk-TUBTR2OP.mjs → chunk-HYTZYOW2.mjs} +6 -6
- package/dist/{chunk-EKF7KDFD.mjs → chunk-KTSUBU2E.mjs} +2 -2
- package/dist/{chunk-KCQBAKIY.cjs → chunk-LMPAPBUA.cjs} +10 -10
- package/dist/{chunk-EK4QAEFZ.cjs → chunk-LZESP4IR.cjs} +25 -0
- package/dist/{chunk-HZFM2LWQ.mjs → chunk-P3PLW4FR.mjs} +34 -2
- package/dist/{chunk-KHKLMNI5.mjs → chunk-PVZE2JGJ.mjs} +1 -1
- package/dist/{chunk-N32CC42M.cjs → chunk-QG775BRV.cjs} +12 -12
- package/dist/{chunk-KKSTAEMY.cjs → chunk-QUCXCDE2.cjs} +1 -1
- package/dist/{chunk-JCKYH4LG.mjs → chunk-QYMZOOC5.mjs} +1 -1
- package/dist/{chunk-2DD4JMQC.cjs → chunk-RVXFINNS.cjs} +12 -12
- package/dist/{chunk-LI2F57NI.mjs → chunk-SOP2EAA6.mjs} +1 -1
- package/dist/{chunk-ND2CWPOD.mjs → chunk-TS4JHGUJ.mjs} +1 -1
- package/dist/{chunk-4GWRFP22.cjs → chunk-UPJLHLJU.cjs} +35 -3
- package/dist/{chunk-7PEP3BUT.mjs → chunk-VWBHM3F6.mjs} +1 -1
- package/dist/{chunk-TGFQVLLF.cjs → chunk-YFYUYWL7.cjs} +95 -95
- package/dist/{chunk-A3EAIURZ.mjs → chunk-YKZRDB5Z.mjs} +1 -1
- package/dist/{chunk-OCIEZME4.mjs → chunk-ZUPXLIGB.mjs} +8 -8
- package/dist/{client-plugins-DUrIYX9B.d.mts → client-plugins-CsCuCLBz.d.mts} +18 -0
- package/dist/{client-plugins-BvlNhGEB.d.ts → client-plugins-D0ke-Hc8.d.ts} +18 -0
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +4 -4
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +3 -3
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-JYJNOLPQ.mjs → devtools-5AFIPVUJ.mjs} +3 -3
- package/dist/{devtools-VQWJANJV.cjs → devtools-LW4QQ5J3.cjs} +4 -4
- package/dist/docs.cjs +5 -5
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +4 -4
- package/dist/index.cjs +18 -18
- package/dist/index.d.mts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.mjs +17 -17
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +12 -12
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +11 -11
- package/dist/internal/cli-runtime.cjs +5 -5
- package/dist/internal/cli-runtime.mjs +4 -4
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +4 -4
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +10 -8
- package/dist/internal/production-runtime.d.mts +9 -9
- package/dist/internal/production-runtime.d.ts +9 -9
- package/dist/internal/production-runtime.mjs +9 -7
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.cjs +5 -5
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/middleware.mjs +4 -4
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +4 -4
- package/dist/plugin.cjs +8 -8
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.mjs +7 -7
- package/dist/{production-runtime-D2aMyzjr.d.ts → production-runtime-BaI3WHnV.d.ts} +1 -1
- package/dist/{production-runtime-BQ4_WLwQ.d.mts → production-runtime-DfRP0cV0.d.mts} +1 -1
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-25p4hrj4.d.ts → render-plan-CfIdJKAf.d.ts} +1 -1
- package/dist/{render-plan-DtkXMN8D.d.mts → render-plan-Dg8RBYFa.d.mts} +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +2 -2
- package/dist/{request-jF4jwx8f.d.ts → request-CEbHIIl4.d.ts} +1 -1
- package/dist/{request-DgCkIdcn.d.mts → request-DfE02G_A.d.mts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-CSBF78Ya.d.mts → route-rendering-BHyOfXjD.d.mts} +1 -1
- package/dist/{route-rendering-Bji6S6a_.d.ts → route-rendering-C4oHbv6C.d.ts} +1 -1
- package/dist/{router-B09Ui3Qm.d.mts → router-DwhA61SB.d.mts} +1 -1
- package/dist/{router-CPB9cXtG.d.ts → router-uRN_29Em.d.ts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{runtime-CM6E6yuI.d.mts → runtime-BEdHhN4C.d.mts} +1 -1
- package/dist/{runtime-EDMwLdjv.d.ts → runtime-COk03hmx.d.ts} +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +25 -25
- package/dist/server.d.mts +7 -7
- package/dist/server.d.ts +7 -7
- package/dist/server.mjs +8 -8
- package/dist/{spa-router-B_N8XgVu.d.ts → spa-router-DrVOBVGg.d.ts} +2 -2
- package/dist/{spa-router-Cgimzfbi.d.mts → spa-router-w4aFOuyn.d.mts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-DZciYXYl.d.mts → utils-BtYehqeU.d.mts} +1 -1
- package/dist/{utils-BNxAKAuT.d.ts → utils-Dhuqwmd2.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +8 -8
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.mjs +7 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Metadata, aD as FarmAgentJsonLd, aE as FarmMCPServerRegistration, aF as FarmMarkdownResolvedConfig } from './client-plugins-
|
|
1
|
+
import { M as Metadata, aD as FarmAgentJsonLd, aE as FarmMCPServerRegistration, aF as FarmMarkdownResolvedConfig } from './client-plugins-CsCuCLBz.mjs';
|
|
2
2
|
|
|
3
3
|
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
4
|
interface FarmMetadataImageReference {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Metadata, aD as FarmAgentJsonLd, aE as FarmMCPServerRegistration, aF as FarmMarkdownResolvedConfig } from './client-plugins-
|
|
1
|
+
import { M as Metadata, aD as FarmAgentJsonLd, aE as FarmMCPServerRegistration, aF as FarmMarkdownResolvedConfig } from './client-plugins-D0ke-Hc8.js';
|
|
2
2
|
|
|
3
3
|
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
4
|
interface FarmMetadataImageReference {
|
package/dist/agent-runtime.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 _chunkBWIQR4DHcjs = require('./chunk-BWIQR4DH.cjs');
|
|
4
4
|
require('./chunk-G643DQCH.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-UPJLHLJU.cjs');
|
|
6
6
|
require('./chunk-LSKZMJMP.cjs');
|
|
7
7
|
require('./chunk-SVRTJOUF.cjs');
|
|
8
8
|
require('./chunk-KIIMAWOJ.cjs');
|
|
@@ -96,7 +96,7 @@ function createAgentRuntimeIntegration(options) {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
-
return
|
|
99
|
+
return _chunkBWIQR4DHcjs.defineIntegration.call(void 0, {
|
|
100
100
|
category: "agent",
|
|
101
101
|
type: provider,
|
|
102
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 { G as BundleResultPayload, a as FarmPlugin, H as FarmIntegration } from './client-plugins-
|
|
2
|
+
import { G as BundleResultPayload, a as FarmPlugin, H as FarmIntegration } from './client-plugins-CsCuCLBz.mjs';
|
|
3
3
|
import './lifecycle-DK06VuKP.mjs';
|
|
4
4
|
import './integration-api-0y4FXJpC.mjs';
|
|
5
5
|
import './endpoint-CCHFqyTE.mjs';
|
package/dist/agent-runtime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import { G as BundleResultPayload, a as FarmPlugin, H as FarmIntegration } from './client-plugins-
|
|
2
|
+
import { G as BundleResultPayload, a as FarmPlugin, H as FarmIntegration } from './client-plugins-D0ke-Hc8.js';
|
|
3
3
|
import './lifecycle-DK06VuKP.js';
|
|
4
4
|
import './integration-api-BPJo5oXb.js';
|
|
5
5
|
import './endpoint-CA-TNX60.js';
|
package/dist/agent-runtime.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineIntegration
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ATSDUUFK.mjs";
|
|
4
4
|
import "./chunk-44SYJEG3.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-P3PLW4FR.mjs";
|
|
6
6
|
import "./chunk-FZ6YYU2W.mjs";
|
|
7
7
|
import "./chunk-FP2INE7H.mjs";
|
|
8
8
|
import "./chunk-ZMMBIVQM.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PluginAPIDispatch } from '../runtime-
|
|
2
|
-
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from '../runtime-
|
|
3
|
-
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-
|
|
1
|
+
import { P as PluginAPIDispatch } from '../runtime-BEdHhN4C.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-BEdHhN4C.mjs';
|
|
3
|
+
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-CsCuCLBz.mjs';
|
|
4
4
|
import { ViteDevServer } from 'vite';
|
|
5
5
|
import '../types-CnH8DOqo.mjs';
|
|
6
6
|
import { F as FarmI18nRuntime } from '../runtime-CV2UCV-5.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PluginAPIDispatch } from '../runtime-
|
|
2
|
-
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from '../runtime-
|
|
3
|
-
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-
|
|
1
|
+
import { P as PluginAPIDispatch } from '../runtime-COk03hmx.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-COk03hmx.js';
|
|
3
|
+
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-D0ke-Hc8.js';
|
|
4
4
|
import { ViteDevServer } from 'vite';
|
|
5
5
|
import '../types-CnH8DOqo.js';
|
|
6
6
|
import { F as FarmI18nRuntime } from '../runtime-BgDQzBiu.js';
|
package/dist/api/runtime.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as isEndpointFailure, p as parseRouteSchema } from '../endpoint-CCHFqyTE.mjs';
|
|
2
|
-
export { f as APIRouteShapeSource, A as API_ROUTE_METHODS, d as createEndpointFailureResponse, c as createStaticAPIRouteMatcherAtBasePath, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, b as isFarmAPIPathname, a as isWebResponse, m as matchAPIRouteAtBasePath, h as mergePluginAPIRoutes, n as normalizeRouteResponse, e as registerAPIRouteShape, r as resolveAPIRouteEndpoint } from '../runtime-
|
|
2
|
+
export { f as APIRouteShapeSource, A as API_ROUTE_METHODS, d as createEndpointFailureResponse, c as createStaticAPIRouteMatcherAtBasePath, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, b as isFarmAPIPathname, a as isWebResponse, m as matchAPIRouteAtBasePath, h as mergePluginAPIRoutes, n as normalizeRouteResponse, e as registerAPIRouteShape, r as resolveAPIRouteEndpoint } from '../runtime-BEdHhN4C.mjs';
|
|
3
3
|
export { A as APIRouteMatch, b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.mjs';
|
|
4
|
-
export { aJ as FarmMCPCatalogDetails, aE as FarmMCPServerRegistration, aG as _findFarmMCPEndpointTool, aH as _publishFarmMCPCatalog, aI as registerFarmMCPServer } from '../client-plugins-
|
|
4
|
+
export { aJ as FarmMCPCatalogDetails, aE as FarmMCPServerRegistration, aG as _findFarmMCPEndpointTool, aH as _publishFarmMCPCatalog, aI as registerFarmMCPServer } from '../client-plugins-CsCuCLBz.mjs';
|
|
5
5
|
import '../cache.mjs';
|
|
6
6
|
import '../cache-invalidation-BD0z_lfu.mjs';
|
|
7
7
|
import '../integration-api-0y4FXJpC.mjs';
|
package/dist/api/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as isEndpointFailure, p as parseRouteSchema } from '../endpoint-CA-TNX60.js';
|
|
2
|
-
export { f as APIRouteShapeSource, A as API_ROUTE_METHODS, d as createEndpointFailureResponse, c as createStaticAPIRouteMatcherAtBasePath, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, b as isFarmAPIPathname, a as isWebResponse, m as matchAPIRouteAtBasePath, h as mergePluginAPIRoutes, n as normalizeRouteResponse, e as registerAPIRouteShape, r as resolveAPIRouteEndpoint } from '../runtime-
|
|
2
|
+
export { f as APIRouteShapeSource, A as API_ROUTE_METHODS, d as createEndpointFailureResponse, c as createStaticAPIRouteMatcherAtBasePath, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, b as isFarmAPIPathname, a as isWebResponse, m as matchAPIRouteAtBasePath, h as mergePluginAPIRoutes, n as normalizeRouteResponse, e as registerAPIRouteShape, r as resolveAPIRouteEndpoint } from '../runtime-COk03hmx.js';
|
|
3
3
|
export { A as APIRouteMatch, b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.js';
|
|
4
|
-
export { aJ as FarmMCPCatalogDetails, aE as FarmMCPServerRegistration, aG as _findFarmMCPEndpointTool, aH as _publishFarmMCPCatalog, aI as registerFarmMCPServer } from '../client-plugins-
|
|
4
|
+
export { aJ as FarmMCPCatalogDetails, aE as FarmMCPServerRegistration, aG as _findFarmMCPEndpointTool, aH as _publishFarmMCPCatalog, aI as registerFarmMCPServer } from '../client-plugins-D0ke-Hc8.js';
|
|
5
5
|
import '../cache.js';
|
|
6
6
|
import '../cache-invalidation-BD0z_lfu.js';
|
|
7
7
|
import '../integration-api-BPJo5oXb.js';
|
package/dist/api.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { A as AnyEndpointMiddleware, D as DELETE, k as EndpointErrorContracts, h as EndpointErrorDefinition, j as EndpointErrorDefinitions, l as EndpointErrorHandler, g as EndpointErrorSchema, m as EndpointFail, e as EndpointFailure, w as EndpointHandler, t as EndpointInvalidationContext, s as EndpointInvalidationTarget, u as EndpointInvalidations, E as EndpointMCPMetadata, c as EndpointMCPOptions, r as EndpointMiddleware, q as EndpointMiddlewareContext, a as EndpointMiddlewareResult, f as EndpointOpenAPIMetadata, v as EndpointOptions, n as EndpointParamValue, o as EndpointParams, K as FarmAPIStream, J as FarmStreamResponse, G as GET, H as HEAD, I as InferEndpointMiddlewareContext, M as MultipartField, F as MultipartSchema, B as MultipartValues, O as OPTIONS, z as PATCH, P as POST, y as PUT, Q as QUERY, T as TypedEndpoint, C as TypedFormData, x as createEndpoint, i as isEndpointFailure, X as isFarmAPIStream, V as isJSONStreamResponse, N as isMultipartSchema, U as jsonStream, L as multipart, W as readJSONStream, S as toFormData } from './endpoint-CCHFqyTE.mjs';
|
|
2
2
|
export { APIRoute, APIRouteConflictError, APIRouteHandlerOptions, APIRouteManager, APIRouteManagerOptions } from './api/route-manager.mjs';
|
|
3
3
|
export { v as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, s as APIQueryPrimitive, t as APIQueryValue, g as APIResult, K as APIRouteManifest, A as APIRouteRefMetadata, x as ApiClients, C as CacheKey, n as CacheOptions, l as CachePolicy, m as CacheScope, r as ClientOptions, a as FARM_API_ROUTE_META_SYMBOL, F as FARM_API_ROUTE_REF_SYMBOL, p as InvalidateOptions, I as InvalidateTarget, q as OptimisticOptions, O as OptimisticUpdate, j as RequestEvent, k as ResponseEvent, o as RetryAttemptContext, R as RetryOptions, u as RouteAPIClient, w as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, f as StatusEvent, e as StatusPhase, G as applyServerFnOptimisticUpdates, z as createAPIClient, y as createApiClients, E as createServerAPIClient, D as getAPIRouteRefMetadata, B as isAPIRouteRef, J as resolveServerFnInvalidateTargets, H as settleServerFnOptimisticUpdates } from './api-client-BjMmY8OD.mjs';
|
|
4
|
-
import { aM as ResolvedFarmAPIConfig } from './client-plugins-
|
|
5
|
-
export { ex as DEFAULT_FARM_API_BASE_PATH, eA as FarmAPIConfig, ey as FarmAPIConfigResolverContext, ez as FarmAPIConfigValue, eE as getFarmAPIBaseURL, eD as normalizeFarmAPIBasePath, eC as normalizeFarmAPIConfig, eB as resolveFarmAPIConfig, eF as resolveFarmAPIRequestURL } from './client-plugins-
|
|
4
|
+
import { aM as ResolvedFarmAPIConfig } from './client-plugins-CsCuCLBz.mjs';
|
|
5
|
+
export { ex as DEFAULT_FARM_API_BASE_PATH, eA as FarmAPIConfig, ey as FarmAPIConfigResolverContext, ez as FarmAPIConfigValue, eE as getFarmAPIBaseURL, eD as normalizeFarmAPIBasePath, eC as normalizeFarmAPIConfig, eB as resolveFarmAPIConfig, eF as resolveFarmAPIRequestURL } from './client-plugins-CsCuCLBz.mjs';
|
|
6
6
|
import { Plugin } from 'vite';
|
|
7
7
|
import { P as PluginRoutesFactory } from './integration-api-0y4FXJpC.mjs';
|
|
8
8
|
export { t as PluginAPIRouter, r as PluginLocalAPI, q as PluginLocalAPIEndpoint, p as PluginRoutes, m as RouteDefinition, o as RouteFactory, k as RouteInputSchemas, l as RouteJSON, R as RouteMethod, n as RouteOptions, j as RoutePathParams, s as createRouteFactory, u as resolvePluginRoutes } from './integration-api-0y4FXJpC.mjs';
|
|
9
|
-
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from './runtime-
|
|
9
|
+
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from './runtime-BEdHhN4C.mjs';
|
|
10
10
|
export { A as APIRouteMatch, b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from './route-pattern-W-SsJGSp.mjs';
|
|
11
11
|
import './cache.mjs';
|
|
12
12
|
import './cache-invalidation-BD0z_lfu.mjs';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { A as AnyEndpointMiddleware, D as DELETE, k as EndpointErrorContracts, h as EndpointErrorDefinition, j as EndpointErrorDefinitions, l as EndpointErrorHandler, g as EndpointErrorSchema, m as EndpointFail, e as EndpointFailure, w as EndpointHandler, t as EndpointInvalidationContext, s as EndpointInvalidationTarget, u as EndpointInvalidations, E as EndpointMCPMetadata, c as EndpointMCPOptions, r as EndpointMiddleware, q as EndpointMiddlewareContext, a as EndpointMiddlewareResult, f as EndpointOpenAPIMetadata, v as EndpointOptions, n as EndpointParamValue, o as EndpointParams, K as FarmAPIStream, J as FarmStreamResponse, G as GET, H as HEAD, I as InferEndpointMiddlewareContext, M as MultipartField, F as MultipartSchema, B as MultipartValues, O as OPTIONS, z as PATCH, P as POST, y as PUT, Q as QUERY, T as TypedEndpoint, C as TypedFormData, x as createEndpoint, i as isEndpointFailure, X as isFarmAPIStream, V as isJSONStreamResponse, N as isMultipartSchema, U as jsonStream, L as multipart, W as readJSONStream, S as toFormData } from './endpoint-CA-TNX60.js';
|
|
2
2
|
export { APIRoute, APIRouteConflictError, APIRouteHandlerOptions, APIRouteManager, APIRouteManagerOptions } from './api/route-manager.js';
|
|
3
3
|
export { v as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, s as APIQueryPrimitive, t as APIQueryValue, g as APIResult, K as APIRouteManifest, A as APIRouteRefMetadata, x as ApiClients, C as CacheKey, n as CacheOptions, l as CachePolicy, m as CacheScope, r as ClientOptions, a as FARM_API_ROUTE_META_SYMBOL, F as FARM_API_ROUTE_REF_SYMBOL, p as InvalidateOptions, I as InvalidateTarget, q as OptimisticOptions, O as OptimisticUpdate, j as RequestEvent, k as ResponseEvent, o as RetryAttemptContext, R as RetryOptions, u as RouteAPIClient, w as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, f as StatusEvent, e as StatusPhase, G as applyServerFnOptimisticUpdates, z as createAPIClient, y as createApiClients, E as createServerAPIClient, D as getAPIRouteRefMetadata, B as isAPIRouteRef, J as resolveServerFnInvalidateTargets, H as settleServerFnOptimisticUpdates } from './api-client-CyFtZFJ4.js';
|
|
4
|
-
import { aM as ResolvedFarmAPIConfig } from './client-plugins-
|
|
5
|
-
export { ex as DEFAULT_FARM_API_BASE_PATH, eA as FarmAPIConfig, ey as FarmAPIConfigResolverContext, ez as FarmAPIConfigValue, eE as getFarmAPIBaseURL, eD as normalizeFarmAPIBasePath, eC as normalizeFarmAPIConfig, eB as resolveFarmAPIConfig, eF as resolveFarmAPIRequestURL } from './client-plugins-
|
|
4
|
+
import { aM as ResolvedFarmAPIConfig } from './client-plugins-D0ke-Hc8.js';
|
|
5
|
+
export { ex as DEFAULT_FARM_API_BASE_PATH, eA as FarmAPIConfig, ey as FarmAPIConfigResolverContext, ez as FarmAPIConfigValue, eE as getFarmAPIBaseURL, eD as normalizeFarmAPIBasePath, eC as normalizeFarmAPIConfig, eB as resolveFarmAPIConfig, eF as resolveFarmAPIRequestURL } from './client-plugins-D0ke-Hc8.js';
|
|
6
6
|
import { Plugin } from 'vite';
|
|
7
7
|
import { P as PluginRoutesFactory } from './integration-api-BPJo5oXb.js';
|
|
8
8
|
export { t as PluginAPIRouter, r as PluginLocalAPI, q as PluginLocalAPIEndpoint, p as PluginRoutes, m as RouteDefinition, o as RouteFactory, k as RouteInputSchemas, l as RouteJSON, R as RouteMethod, n as RouteOptions, j as RoutePathParams, s as createRouteFactory, u as resolvePluginRoutes } from './integration-api-BPJo5oXb.js';
|
|
9
|
-
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from './runtime-
|
|
9
|
+
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from './runtime-COk03hmx.js';
|
|
10
10
|
export { A as APIRouteMatch, b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from './route-pattern-W-SsJGSp.js';
|
|
11
11
|
import './cache.js';
|
|
12
12
|
import './cache-invalidation-BD0z_lfu.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { I as FarmConfig, P as ParsedRoute, aK as ResolvedFarmRouteRuntimeConfig, aL as ApplicationMetadataRouteKind, s as RouteModule, ad as LayoutModule, ak as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aM as ResolvedFarmAPIConfig, aN as FarmDocsResolvedConfig, aF as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-
|
|
1
|
+
import { I as FarmConfig, P as ParsedRoute, aK as ResolvedFarmRouteRuntimeConfig, aL as ApplicationMetadataRouteKind, s as RouteModule, ad as LayoutModule, ak as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aM as ResolvedFarmAPIConfig, aN as FarmDocsResolvedConfig, aF as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-D0ke-Hc8.js';
|
|
2
2
|
import { F as FarmWorkflowsResolvedConfig } from './workflows-jZ4BcdoZ.js';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config-Duob7wER.js';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
6
6
|
import { ViteDevServer } from 'vite';
|
|
7
7
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
8
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-HcTYQmNX.js';
|
|
9
9
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.js';
|
|
10
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
10
|
+
import { F as FarmRouteRenderPlan } from './render-plan-CfIdJKAf.js';
|
|
11
11
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
12
12
|
import { F as FarmI18nRuntime } from './runtime-BgDQzBiu.js';
|
|
13
13
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { I as FarmConfig, P as ParsedRoute, aK as ResolvedFarmRouteRuntimeConfig, aL as ApplicationMetadataRouteKind, s as RouteModule, ad as LayoutModule, ak as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aM as ResolvedFarmAPIConfig, aN as FarmDocsResolvedConfig, aF as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-
|
|
1
|
+
import { I as FarmConfig, P as ParsedRoute, aK as ResolvedFarmRouteRuntimeConfig, aL as ApplicationMetadataRouteKind, s as RouteModule, ad as LayoutModule, ak as SSGCollectionResult, e as FarmRequest, f as FarmResponse, aM as ResolvedFarmAPIConfig, aN as FarmDocsResolvedConfig, aF as FarmMarkdownResolvedConfig, u as FarmMdxResolvedConfig, aO as ResolvedFarmDevtoolsConfig, aP as ResolvedFarmDevIndicatorsConfig, aQ as ResolvedFarmAuthConfig, aR as ResolvedFarmPerformanceConfig, aS as ResolvedFarmSecurityConfig } from './client-plugins-CsCuCLBz.mjs';
|
|
2
2
|
import { F as FarmWorkflowsResolvedConfig } from './workflows-jZ4BcdoZ.mjs';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.mjs';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config-Duob7wER.mjs';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
|
|
6
6
|
import { ViteDevServer } from 'vite';
|
|
7
7
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
|
|
8
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-BhneNPb4.mjs';
|
|
9
9
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.mjs';
|
|
10
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
10
|
+
import { F as FarmRouteRenderPlan } from './render-plan-Dg8RBYFa.mjs';
|
|
11
11
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
12
12
|
import { F as FarmI18nRuntime } from './runtime-CV2UCV-5.mjs';
|
|
13
13
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.mjs';
|
package/dist/app-markdown.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-
|
|
2
|
-
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-
|
|
1
|
+
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-CsCuCLBz.mjs';
|
|
2
|
+
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-CsCuCLBz.mjs';
|
|
3
3
|
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
|
|
4
4
|
import './lifecycle-DK06VuKP.mjs';
|
|
5
5
|
import './integration-api-0y4FXJpC.mjs';
|
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-
|
|
2
|
-
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-
|
|
1
|
+
import { t as FarmMdxComponents, u as FarmMdxResolvedConfig, s as RouteModule } from './client-plugins-D0ke-Hc8.js';
|
|
2
|
+
export { z as FARM_MARKDOWN_CONTENT_TYPE, x as FarmMdxComponent, y as FarmMdxUserConfig, A as createFarmMarkdownErrorBody, B as farmRequestWantsMarkdown, v as resolveFarmMdxComponentsModulePath, w as resolveMdxConfig } from './client-plugins-D0ke-Hc8.js';
|
|
3
3
|
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
4
4
|
import './lifecycle-DK06VuKP.js';
|
|
5
5
|
import './integration-api-BPJo5oXb.js';
|
|
@@ -7,7 +7,7 @@ var _chunkPCOTGFSMcjs = require('./chunk-PCOTGFSM.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkRVXFINNScjs = require('./chunk-RVXFINNS.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -59,7 +59,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
59
59
|
return {
|
|
60
60
|
layout,
|
|
61
61
|
segments: segments.length === 0 ? null : segments,
|
|
62
|
-
groupScope:
|
|
62
|
+
groupScope: _chunkRVXFINNScjs.getRouteGroupScope.call(void 0, layout.pattern)
|
|
63
63
|
};
|
|
64
64
|
});
|
|
65
65
|
return (pathname, routeDirectory) => {
|
|
@@ -73,7 +73,7 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
73
73
|
}
|
|
74
74
|
if (groupScope !== null) {
|
|
75
75
|
if (directory === void 0) directory = _nullishCoalesce(_optionalChain([resolveRouteDirectory, 'optionalCall', _2 => _2(pathname)]), () => ( null));
|
|
76
|
-
if (!
|
|
76
|
+
if (!_chunkRVXFINNScjs.isInRouteGroupScope.call(void 0, directory, groupScope)) continue;
|
|
77
77
|
}
|
|
78
78
|
applicable.push(layout);
|
|
79
79
|
}
|
|
@@ -82,9 +82,9 @@ function createFarmLayoutSelector(layouts, resolveRouteDirectory) {
|
|
|
82
82
|
}
|
|
83
83
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmLayoutSelector, "createFarmLayoutSelector");
|
|
84
84
|
function layoutsCanCoverSamePage(a, b) {
|
|
85
|
-
const scopeA =
|
|
86
|
-
const scopeB =
|
|
87
|
-
if (scopeA !== null && scopeB !== null && !
|
|
85
|
+
const scopeA = _chunkRVXFINNScjs.getRouteGroupScope.call(void 0, a);
|
|
86
|
+
const scopeB = _chunkRVXFINNScjs.getRouteGroupScope.call(void 0, b);
|
|
87
|
+
if (scopeA !== null && scopeB !== null && !_chunkRVXFINNScjs.isInRouteGroupScope.call(void 0, scopeA, scopeB) && !_chunkRVXFINNScjs.isInRouteGroupScope.call(void 0, scopeB, scopeA)) {
|
|
88
88
|
return false;
|
|
89
89
|
}
|
|
90
90
|
const segmentsA = a === "/" ? [] : _chunkPCOTGFSMcjs.parseRoutePattern.call(void 0, a);
|
|
@@ -304,6 +304,13 @@ function appendOpenGraph(tags, input, metadataBase, page) {
|
|
|
304
304
|
appendMetaProperty(tags, "og:image:alt", image.alt);
|
|
305
305
|
appendMetaProperty(tags, "og:image:type", image.type);
|
|
306
306
|
}
|
|
307
|
+
for (const video of normalizeMetadataVideos(openGraph.videos, metadataBase)) {
|
|
308
|
+
appendMetaProperty(tags, "og:video", video.url);
|
|
309
|
+
appendMetaProperty(tags, "og:video:secure_url", video.secureUrl);
|
|
310
|
+
appendMetaProperty(tags, "og:video:type", video.type);
|
|
311
|
+
appendMetaProperty(tags, "og:video:width", video.width);
|
|
312
|
+
appendMetaProperty(tags, "og:video:height", video.height);
|
|
313
|
+
}
|
|
307
314
|
if (openGraph.type === "article") {
|
|
308
315
|
appendMetaProperty(tags, "article:published_time", normalizeDate(openGraph.publishedTime));
|
|
309
316
|
appendMetaProperty(tags, "article:modified_time", normalizeDate(openGraph.modifiedTime));
|
|
@@ -432,6 +439,24 @@ function normalizeMetadataImages(value, metadataBase) {
|
|
|
432
439
|
}).filter((item) => item !== null);
|
|
433
440
|
}
|
|
434
441
|
__name(normalizeMetadataImages, "normalizeMetadataImages");
|
|
442
|
+
function normalizeMetadataVideos(value, metadataBase) {
|
|
443
|
+
return normalizeArray(value).map((item) => {
|
|
444
|
+
if (typeof item === "string") {
|
|
445
|
+
return { url: resolveMetadataUrl(item, metadataBase) || item };
|
|
446
|
+
}
|
|
447
|
+
if (!isRecord(item)) return null;
|
|
448
|
+
const url = resolveMetadataUrl(item.url, metadataBase);
|
|
449
|
+
if (!url) return null;
|
|
450
|
+
return {
|
|
451
|
+
url,
|
|
452
|
+
secureUrl: resolveMetadataUrl(item.secureUrl, metadataBase) || void 0,
|
|
453
|
+
width: normalizeNumber(item.width),
|
|
454
|
+
height: normalizeNumber(item.height),
|
|
455
|
+
type: typeof item.type === "string" ? item.type : void 0
|
|
456
|
+
};
|
|
457
|
+
}).filter((item) => item !== null);
|
|
458
|
+
}
|
|
459
|
+
__name(normalizeMetadataVideos, "normalizeMetadataVideos");
|
|
435
460
|
function normalizeArray(value) {
|
|
436
461
|
if (value == null) return [];
|
|
437
462
|
return Array.isArray(value) ? value : [value];
|
|
@@ -65,7 +65,10 @@ import {
|
|
|
65
65
|
} from "./chunk-AELACLOB.mjs";
|
|
66
66
|
import {
|
|
67
67
|
resolveIntegrationPlugins
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ATSDUUFK.mjs";
|
|
69
|
+
import {
|
|
70
|
+
compileMiddlewareConfig
|
|
71
|
+
} from "./chunk-P3PLW4FR.mjs";
|
|
69
72
|
import {
|
|
70
73
|
resolveFarmServerConfig
|
|
71
74
|
} from "./chunk-ZMMBIVQM.mjs";
|
|
@@ -659,6 +662,13 @@ function validateRedirectConfigs(redirects, field) {
|
|
|
659
662
|
return redirects;
|
|
660
663
|
}
|
|
661
664
|
__name(validateRedirectConfigs, "validateRedirectConfigs");
|
|
665
|
+
function validateMiddlewareConfig(middleware) {
|
|
666
|
+
for (const entry of Array.isArray(middleware) ? middleware : middleware ? [middleware] : []) {
|
|
667
|
+
compileMiddlewareConfig({ matcher: entry.matcher, exclude: entry.exclude });
|
|
668
|
+
}
|
|
669
|
+
return middleware;
|
|
670
|
+
}
|
|
671
|
+
__name(validateMiddlewareConfig, "validateMiddlewareConfig");
|
|
662
672
|
function validateConfigRouteSources(routes, field) {
|
|
663
673
|
for (const [index, route] of routes.entries()) {
|
|
664
674
|
validateConfigRouteSource(route.source, `${field}[${index}].source`);
|
|
@@ -807,7 +817,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
807
817
|
publicDir: userConfig.publicDir || "public",
|
|
808
818
|
i18n: resolveFarmI18nConfig(userConfig.i18n, { root, mode, basePath }),
|
|
809
819
|
openapi,
|
|
810
|
-
middleware: userConfig.middleware || {},
|
|
820
|
+
middleware: validateMiddlewareConfig(userConfig.middleware) || {},
|
|
811
821
|
notFound: userConfig.notFound || {},
|
|
812
822
|
context: userConfig.context || (() => void 0),
|
|
813
823
|
server: resolveFarmServerConfig(userConfig.server),
|
|
@@ -27,7 +27,7 @@ var _chunkE2ROOWQCcjs = require('./chunk-E2ROOWQC.cjs');
|
|
|
27
27
|
var _chunkJSROZYYOcjs = require('./chunk-JSROZYYO.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkBWIQR4DHcjs = require('./chunk-BWIQR4DH.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -119,7 +119,7 @@ _chunkS3JO3N4Hcjs.__name.call(void 0, withTimeout, "withTimeout");
|
|
|
119
119
|
var formatSeconds = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, (ms) => ms < 1e3 ? `${ms}ms` : `${Number((ms / 1e3).toFixed(1))}s`, "formatSeconds");
|
|
120
120
|
function collectSchemaOwners(config) {
|
|
121
121
|
const owners = [];
|
|
122
|
-
const integrationSchemas =
|
|
122
|
+
const integrationSchemas = _chunkBWIQR4DHcjs.getIntegrationSchemas.call(void 0, config.integrations);
|
|
123
123
|
let integrationClient;
|
|
124
124
|
for (const [name, schema] of Object.entries(integrationSchemas)) {
|
|
125
125
|
owners.push({
|