@farm.js/core 0.1.41 → 0.1.42
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-D0eZKfci.d.ts → agent-mcp-SSD6L3VZ.d.ts} +1 -1
- package/dist/{agent-mcp-BOqIxJLI.d.mts → agent-mcp-ssVy_tea.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- 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-CzTSMJaf.d.mts → app-1h3lVT4a.d.mts} +4 -4
- package/dist/{app-DM8e1z3G.d.ts → app-KjFzdCqy.d.ts} +4 -4
- package/dist/app-manifest-D3RkVNuS.d.mts +120 -0
- package/dist/app-manifest-DaW8-tvX.d.ts +120 -0
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{chunk-PYHPXPSW.mjs → chunk-2JZHQDUY.mjs} +1 -1
- package/dist/{chunk-R65GCA6A.mjs → chunk-375K2ZVU.mjs} +7 -7
- package/dist/{chunk-L6HYACBE.cjs → chunk-7YHSD3Z6.cjs} +77 -113
- package/dist/{chunk-EH3464KF.cjs → chunk-AHFRQMRX.cjs} +1 -1
- package/dist/{chunk-EX4MKHXN.cjs → chunk-BXJ5HJTJ.cjs} +7 -6
- package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
- package/dist/{chunk-4C7KTKX7.mjs → chunk-IVQY6UTY.mjs} +1 -1
- package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
- package/dist/{chunk-32TZ3QTP.cjs → chunk-JG3MEQUH.cjs} +85 -85
- package/dist/{chunk-ENOBPDKZ.mjs → chunk-NU25TRIO.mjs} +3 -2
- package/dist/{chunk-SVPGWJZF.mjs → chunk-PIZXONIS.mjs} +71 -107
- package/dist/{chunk-JOTUZIM4.cjs → chunk-QKZMB7LY.cjs} +2 -2
- package/dist/{chunk-FJGIVDA5.mjs → chunk-QTEJGB5A.mjs} +3 -3
- package/dist/{chunk-OQ4YXWH4.cjs → chunk-TCJ4A4A2.cjs} +57 -62
- package/dist/{chunk-BGGWKZ2V.mjs → chunk-TUL355PH.mjs} +6 -11
- package/dist/{chunk-VLPII2JJ.mjs → chunk-U2UC7UGP.mjs} +1 -1
- package/dist/{chunk-ROQ4C4LJ.cjs → chunk-ZATTDMBW.cjs} +48 -48
- package/dist/{chunk-PN676AZF.cjs → chunk-ZS6HDNOM.cjs} +6 -6
- package/dist/{client-plugins-CkYwvDJ0.d.mts → client-plugins-C9Py_50W.d.mts} +78 -6
- package/dist/{client-plugins-DfeKd0sD.d.ts → client-plugins-DIem0I0W.d.ts} +78 -6
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-2YHAJYH6.cjs → devtools-2RY3EKHL.cjs} +3 -3
- package/dist/{devtools-N3QLRIQU.mjs → devtools-Q3LBNUJ7.mjs} +2 -2
- package/dist/docs.cjs +4 -4
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +3 -3
- package/dist/index.cjs +9 -9
- package/dist/index.d.mts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.mjs +8 -8
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- 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 +9 -9
- package/dist/internal/build-runtime.d.mts +3 -3
- package/dist/internal/build-runtime.d.ts +3 -3
- package/dist/internal/build-runtime.mjs +8 -8
- package/dist/internal/cli-runtime.cjs +3 -3
- package/dist/internal/cli-runtime.mjs +2 -2
- 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 +3 -3
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-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 +5 -5
- package/dist/internal/production-runtime.d.mts +10 -127
- package/dist/internal/production-runtime.d.ts +10 -127
- package/dist/internal/production-runtime.mjs +4 -4
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/plugin.cjs +6 -6
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +5 -5
- package/dist/{production-runtime-BTkXQdYy.d.mts → production-runtime-CHFKIgpW.d.mts} +1 -1
- package/dist/{production-runtime-DFC7pgbp.d.ts → production-runtime-bjjWq-DA.d.ts} +1 -1
- package/dist/{render-plan-BoAK9xFC.d.ts → render-plan-B2UndB4x.d.ts} +1 -1
- package/dist/{render-plan-5rFeWmk7.d.mts → render-plan-DOHg6wdO.d.mts} +1 -1
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/{request-BxBWigtl.d.mts → request-DQcGfdgQ.d.mts} +1 -1
- package/dist/{request-fciwmd3n.d.ts → request-DVNXRQrI.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-BLZT0IP0.d.ts → route-rendering-B_6fj-GG.d.ts} +1 -1
- package/dist/{route-rendering-BCM1QzEf.d.mts → route-rendering-CEX4mFn-.d.mts} +1 -1
- package/dist/{router-CkheNX3-.d.ts → router-CHEMHm1P.d.ts} +1 -1
- package/dist/{router-DyZJWc1_.d.mts → router-CKHPBKXX.d.mts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/{runtime-DfU4sKa5.d.ts → runtime-Br2ZDTAv.d.ts} +1 -1
- package/dist/{runtime-wexvUN5J.d.mts → runtime-jj8TKNsy.d.mts} +1 -1
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +22 -22
- package/dist/server.d.mts +9 -9
- package/dist/server.d.ts +9 -9
- package/dist/server.mjs +6 -6
- package/dist/{spa-router-DgsMXqfX.d.mts → spa-router-BEvS9Erj.d.mts} +2 -2
- package/dist/{spa-router-CcejECnG.d.ts → spa-router-DmCuH5B7.d.ts} +2 -2
- package/dist/{ssg-Bg4bMMhM.d.mts → ssg-57v6cZcW.d.mts} +2 -2
- package/dist/{ssg-1FGaFISl.d.ts → ssg-gT093ETk.d.ts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-Dxbh6Hgj.d.ts → utils-CCTKvR-P.d.ts} +1 -1
- package/dist/{utils-8wtTYiH4.d.mts → utils-raHHQVyL.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.mts +4 -4
- package/dist/vite.d.ts +4 -4
- package/dist/vite.mjs +5 -5
- package/package.json +1 -1
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
export { _runWithAfterRequest } from '../after.mjs';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
2
|
+
export { c as createFarmAppManifestResponse } from '../app-manifest-D3RkVNuS.mjs';
|
|
3
|
+
import { cp as ResolvedFarmConfig, dG as FarmIntegrationsUserConfig, aW as StaticPathParams, co as ResolvedFarmMCPConfig, bf as FarmMCPServerRegistration, fH as FarmLlmsTxtLink, a as FarmPlugin, ay as FarmConfig, aK as FarmContextFactoryInput } from '../client-plugins-C9Py_50W.mjs';
|
|
4
|
+
export { fR as FarmLlmsTxtUserConfig, fS as ResolvedFarmLlmsTxtConfig, fX as applyFarmCspNonceToResponse, fL as collectFarmLlmsTxtPages, fJ as createFarmAgentRobots, fY as createFarmCspNonce, fM as createFarmDefaultLlmsTxt, fK as createFarmDefaultSitemap, fP as createFarmLlmsFullRenderer, fN as createFarmLlmsMarkdownReader, fI as createFarmMetadataRouteResponse, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, fT as manageFarmDocumentPreloads, fU as manageFarmHtmlPreloads, fV as manageFarmLinkHeaderPreloads, bj as registerFarmMCPServer, fO as renderFarmLlmsFullTxt, fW as reportFarmPreloadWarnings, fQ as resolveFarmLlmsTxtConfig, fZ as resolveFarmSecurityConfig, f_ as stampFarmCspNonce } from '../client-plugins-C9Py_50W.mjs';
|
|
5
|
+
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering-CEX4mFn-.mjs';
|
|
5
6
|
import { R as ResolvedFarmServerConfig } from '../workflows-IWP1ddBm.mjs';
|
|
6
7
|
export { a as FarmServerConfig, z as bufferFarmRequestBody, A as cloneFarmRequestWithContext, c as createFarmNodeRequestAbortSignal, B as createFarmRequestBodyErrorResponse, C as matchesFarmIfNoneMatch, E as readFarmRequestBody, G as readNodeRequestBody, H as resolveFarmServerConfig } from '../workflows-IWP1ddBm.mjs';
|
|
7
8
|
export { _registerFarmStorageModules, disposeStorage as disposeFarmStorage, initStorage as initFarmStorage } from '../storage.mjs';
|
|
8
|
-
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-
|
|
9
|
+
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-DQcGfdgQ.mjs';
|
|
9
10
|
import { A as APIRequestRuntime } from '../server-client-bridge-DKWDl5NB.mjs';
|
|
10
11
|
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.mjs';
|
|
11
12
|
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from '../types-CnH8DOqo.mjs';
|
|
12
13
|
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-khasx3fU.mjs';
|
|
13
14
|
import { F as FarmLocalePathConfig } from '../index-BJJfLxJo.mjs';
|
|
14
15
|
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index-BJJfLxJo.mjs';
|
|
15
|
-
import { F as FarmDefaultMCPPage } from '../agent-mcp-
|
|
16
|
-
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, h as collectFarmDefaultMCPPages, m as mergeMetadata, d as mergeModuleViewport, r as renderMetadataHead, e as renderViewportHead, i as resolveFarmDefaultMCPServer, f as resolveFarmNotFoundMetadata, g as resolveMetadataTitle } from '../agent-mcp-
|
|
17
|
-
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-
|
|
16
|
+
import { F as FarmDefaultMCPPage } from '../agent-mcp-ssVy_tea.mjs';
|
|
17
|
+
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, h as collectFarmDefaultMCPPages, m as mergeMetadata, d as mergeModuleViewport, r as renderMetadataHead, e as renderViewportHead, i as resolveFarmDefaultMCPServer, f as resolveFarmNotFoundMetadata, g as resolveMetadataTitle } from '../agent-mcp-ssVy_tea.mjs';
|
|
18
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-CHFKIgpW.mjs';
|
|
18
19
|
export { L as configureFarmObservability, P as emitFarmEvent, Q as runWithFarmRequestSpan } from '../observability-CoXunYhS.mjs';
|
|
19
20
|
export { f as createFarmInstrumentationLifecycle, r as resolveFarmInstrumentationRuntime } from '../instrumentation-runtime-CE06JLHZ.mjs';
|
|
20
21
|
export { _setDefaultFarmThemeConfig, getTheme } from '../theme/server.mjs';
|
|
21
22
|
import { c as FarmThemeRuntime, d as FarmThemeConfig, R as ResolvedFarmThemeConfig, a as FarmThemePreference } from '../types-DQnyD3VD.mjs';
|
|
22
23
|
export { d as applyFarmBasePath, r as resolveFarmTrailingSlashRedirect, s as searchParamsToObject, b as setFarmBasePath, a as setFarmTrailingSlashPreference, c as stripFarmBasePath } from '../base-path-BU16ETmo.mjs';
|
|
23
|
-
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-
|
|
24
|
+
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-raHHQVyL.mjs';
|
|
24
25
|
import 'node:http';
|
|
25
26
|
import '../lifecycle-DK06VuKP.mjs';
|
|
26
27
|
import '../integration-api-DWyMmvrR.mjs';
|
|
@@ -50,124 +51,6 @@ import '../image-config-BpH1q5R8.mjs';
|
|
|
50
51
|
import '../font.mjs';
|
|
51
52
|
import '@opentelemetry/api';
|
|
52
53
|
|
|
53
|
-
interface FarmAppManifestWebMCPTool {
|
|
54
|
-
name: string;
|
|
55
|
-
title?: string;
|
|
56
|
-
description?: string;
|
|
57
|
-
readOnlyHint?: boolean;
|
|
58
|
-
destructiveHint?: boolean;
|
|
59
|
-
idempotentHint?: boolean;
|
|
60
|
-
openWorldHint?: boolean;
|
|
61
|
-
/** The input JSON Schema when the source writes it out; omitted when it's computed. */
|
|
62
|
-
inputSchema?: Record<string, unknown>;
|
|
63
|
-
/** `"computed"` when the schema is built at runtime, so it can't be read from source. */
|
|
64
|
-
inputSchemaSource: "literal" | "computed" | "none";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
type FarmAppManifestToolSource = "endpoint" | "defineTool" | "serverFunction";
|
|
68
|
-
interface FarmAppManifestTool {
|
|
69
|
-
name: string;
|
|
70
|
-
title?: string;
|
|
71
|
-
description?: string;
|
|
72
|
-
/** How the app defined it: an API endpoint, `defineTool`, or a server function. */
|
|
73
|
-
source: FarmAppManifestToolSource;
|
|
74
|
-
/** The endpoint's method and route, for `source: "endpoint"`. Only in Farm Infra's view. */
|
|
75
|
-
method?: string;
|
|
76
|
-
path?: string;
|
|
77
|
-
readOnlyHint?: boolean;
|
|
78
|
-
destructiveHint?: boolean;
|
|
79
|
-
idempotentHint?: boolean;
|
|
80
|
-
openWorldHint?: boolean;
|
|
81
|
-
/** JSON Schemas, when the server published them (`@farm.js/mcp` does). */
|
|
82
|
-
inputSchema?: Readonly<Record<string, unknown>>;
|
|
83
|
-
outputSchema?: Readonly<Record<string, unknown>>;
|
|
84
|
-
}
|
|
85
|
-
type ServerDetails = NonNullable<FarmMCPCatalogDetails>;
|
|
86
|
-
interface FarmAppManifest {
|
|
87
|
-
schemaVersion: 1;
|
|
88
|
-
app: {
|
|
89
|
-
farm: string;
|
|
90
|
-
renderer: string;
|
|
91
|
-
basePath: string;
|
|
92
|
-
build: string;
|
|
93
|
-
};
|
|
94
|
-
/** Installed versions of the app's `@farm.js/*` and `@farming-labs/*` packages. */
|
|
95
|
-
packages: Record<string, string>;
|
|
96
|
-
mcp: {
|
|
97
|
-
servers: {
|
|
98
|
-
name: string;
|
|
99
|
-
version: string;
|
|
100
|
-
path: string;
|
|
101
|
-
/**
|
|
102
|
-
* `"required"` when the server runs `authorize`: an anonymous client lists nothing,
|
|
103
|
-
* so the public view leaves `tools`, `resources` and `prompts` empty.
|
|
104
|
-
*/
|
|
105
|
-
authorization: "none" | "required";
|
|
106
|
-
tools: FarmAppManifestTool[];
|
|
107
|
-
resources: NonNullable<ServerDetails["resources"]>;
|
|
108
|
-
prompts: NonNullable<ServerDetails["prompts"]>;
|
|
109
|
-
}[];
|
|
110
|
-
};
|
|
111
|
-
/** Browser tools from `@farm.js/webmcp`, read from the app's source. */
|
|
112
|
-
webmcp: {
|
|
113
|
-
enabled: boolean;
|
|
114
|
-
tools: FarmAppManifestWebMCPTool[];
|
|
115
|
-
};
|
|
116
|
-
/** The app's integrations: which slot each fills and which provider, never their config. */
|
|
117
|
-
integrations: {
|
|
118
|
-
key: string;
|
|
119
|
-
category: string;
|
|
120
|
-
type: string;
|
|
121
|
-
}[];
|
|
122
|
-
agent: {
|
|
123
|
-
apiCatalog: string | null;
|
|
124
|
-
llmsTxt: boolean;
|
|
125
|
-
openapi: string | null;
|
|
126
|
-
};
|
|
127
|
-
plugins: string[];
|
|
128
|
-
}
|
|
129
|
-
/** What the manifest reads from config; serializable, so a production build embeds it. */
|
|
130
|
-
interface FarmAppManifestInput {
|
|
131
|
-
renderer: string;
|
|
132
|
-
basePath: string;
|
|
133
|
-
/** The build's ID, or "development". */
|
|
134
|
-
build: string;
|
|
135
|
-
packages: Record<string, string>;
|
|
136
|
-
webmcp: FarmAppManifest["webmcp"];
|
|
137
|
-
integrations: FarmAppManifest["integrations"];
|
|
138
|
-
agent: FarmAppManifest["agent"];
|
|
139
|
-
plugins: string[];
|
|
140
|
-
/**
|
|
141
|
-
* `analytics: false` turns off Farm Infra's signed view: the app talks to no Farm Infra.
|
|
142
|
-
* The public manifest is still served; `agent.manifest: false` turns that off.
|
|
143
|
-
*/
|
|
144
|
-
analytics: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* The default read-only MCP server (`agent.mcp`) while the app would serve it. Set by the
|
|
147
|
-
* server at runtime, not serialized: it answers only while no other MCP server is listed.
|
|
148
|
-
*/
|
|
149
|
-
defaultMCP?: () => {
|
|
150
|
-
name: string;
|
|
151
|
-
version: string;
|
|
152
|
-
path: string;
|
|
153
|
-
} | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Whether a guard written for a path (middleware, an integration's `protectedRoutes`)
|
|
156
|
-
* covers an MCP server's endpoint. Set by the server at runtime: such a server is listed
|
|
157
|
-
* as requiring authorization, without its tools, resources or prompts, in the public view.
|
|
158
|
-
*/
|
|
159
|
-
guardCoversPath?: (path: string) => boolean;
|
|
160
|
-
}
|
|
161
|
-
type Env = Record<string, string | undefined>;
|
|
162
|
-
/**
|
|
163
|
-
* Answers `/.well-known/farmjs.json` for anyone. A request Farm Infra signed for the app's
|
|
164
|
-
* `FARMJS_API_KEY` gets the full view, unless `analytics` is off; any other read gets the
|
|
165
|
-
* public one.
|
|
166
|
-
*/
|
|
167
|
-
declare function createFarmAppManifestResponse(request: Request, input: FarmAppManifestInput, options?: {
|
|
168
|
-
env?: Env;
|
|
169
|
-
}): Promise<Response>;
|
|
170
|
-
|
|
171
54
|
/**
|
|
172
55
|
* Whether config middleware may run for a path. This reuses the runtime matcher: a
|
|
173
56
|
* separate copy drifted (`/members/(.*)` kept its trailing slash and never met
|
|
@@ -535,4 +418,4 @@ declare function appendFarmRedirectQuery(destination: string, search: string): s
|
|
|
535
418
|
|
|
536
419
|
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
537
420
|
|
|
538
|
-
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse,
|
|
421
|
+
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmPathGuardCoversEndpoint, farmPathGuardCoversPage, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, handleFarmDefaultMCPRequest, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, materializeSSGRoutePath, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmI18nConfig, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, withFarmRouteContext };
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
export { _runWithAfterRequest } from '../after.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
2
|
+
export { c as createFarmAppManifestResponse } from '../app-manifest-DaW8-tvX.js';
|
|
3
|
+
import { cp as ResolvedFarmConfig, dG as FarmIntegrationsUserConfig, aW as StaticPathParams, co as ResolvedFarmMCPConfig, bf as FarmMCPServerRegistration, fH as FarmLlmsTxtLink, a as FarmPlugin, ay as FarmConfig, aK as FarmContextFactoryInput } from '../client-plugins-DIem0I0W.js';
|
|
4
|
+
export { fR as FarmLlmsTxtUserConfig, fS as ResolvedFarmLlmsTxtConfig, fX as applyFarmCspNonceToResponse, fL as collectFarmLlmsTxtPages, fJ as createFarmAgentRobots, fY as createFarmCspNonce, fM as createFarmDefaultLlmsTxt, fK as createFarmDefaultSitemap, fP as createFarmLlmsFullRenderer, fN as createFarmLlmsMarkdownReader, fI as createFarmMetadataRouteResponse, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, fT as manageFarmDocumentPreloads, fU as manageFarmHtmlPreloads, fV as manageFarmLinkHeaderPreloads, bj as registerFarmMCPServer, fO as renderFarmLlmsFullTxt, fW as reportFarmPreloadWarnings, fQ as resolveFarmLlmsTxtConfig, fZ as resolveFarmSecurityConfig, f_ as stampFarmCspNonce } from '../client-plugins-DIem0I0W.js';
|
|
5
|
+
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering-B_6fj-GG.js';
|
|
5
6
|
import { R as ResolvedFarmServerConfig } from '../workflows-IWP1ddBm.js';
|
|
6
7
|
export { a as FarmServerConfig, z as bufferFarmRequestBody, A as cloneFarmRequestWithContext, c as createFarmNodeRequestAbortSignal, B as createFarmRequestBodyErrorResponse, C as matchesFarmIfNoneMatch, E as readFarmRequestBody, G as readNodeRequestBody, H as resolveFarmServerConfig } from '../workflows-IWP1ddBm.js';
|
|
7
8
|
export { _registerFarmStorageModules, disposeStorage as disposeFarmStorage, initStorage as initFarmStorage } from '../storage.js';
|
|
8
|
-
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-
|
|
9
|
+
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request-DVNXRQrI.js';
|
|
9
10
|
import { A as APIRequestRuntime } from '../server-client-bridge-DKWDl5NB.js';
|
|
10
11
|
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.js';
|
|
11
12
|
import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from '../types-CnH8DOqo.js';
|
|
12
13
|
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver-DadfRL6F.js';
|
|
13
14
|
import { F as FarmLocalePathConfig } from '../index-CwoOP-MW.js';
|
|
14
15
|
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index-CwoOP-MW.js';
|
|
15
|
-
import { F as FarmDefaultMCPPage } from '../agent-mcp-
|
|
16
|
-
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, h as collectFarmDefaultMCPPages, m as mergeMetadata, d as mergeModuleViewport, r as renderMetadataHead, e as renderViewportHead, i as resolveFarmDefaultMCPServer, f as resolveFarmNotFoundMetadata, g as resolveMetadataTitle } from '../agent-mcp-
|
|
17
|
-
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-
|
|
16
|
+
import { F as FarmDefaultMCPPage } from '../agent-mcp-SSD6L3VZ.js';
|
|
17
|
+
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, h as collectFarmDefaultMCPPages, m as mergeMetadata, d as mergeModuleViewport, r as renderMetadataHead, e as renderViewportHead, i as resolveFarmDefaultMCPServer, f as resolveFarmNotFoundMetadata, g as resolveMetadataTitle } from '../agent-mcp-SSD6L3VZ.js';
|
|
18
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner } from '../production-runtime-bjjWq-DA.js';
|
|
18
19
|
export { L as configureFarmObservability, P as emitFarmEvent, Q as runWithFarmRequestSpan } from '../observability-CoXunYhS.js';
|
|
19
20
|
export { f as createFarmInstrumentationLifecycle, r as resolveFarmInstrumentationRuntime } from '../instrumentation-runtime-CE06JLHZ.js';
|
|
20
21
|
export { _setDefaultFarmThemeConfig, getTheme } from '../theme/server.js';
|
|
21
22
|
import { c as FarmThemeRuntime, d as FarmThemeConfig, R as ResolvedFarmThemeConfig, a as FarmThemePreference } from '../types-DQnyD3VD.js';
|
|
22
23
|
export { d as applyFarmBasePath, r as resolveFarmTrailingSlashRedirect, s as searchParamsToObject, b as setFarmBasePath, a as setFarmTrailingSlashPreference, c as stripFarmBasePath } from '../base-path-BU16ETmo.js';
|
|
23
|
-
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-
|
|
24
|
+
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils-CCTKvR-P.js';
|
|
24
25
|
import 'node:http';
|
|
25
26
|
import '../lifecycle-DK06VuKP.js';
|
|
26
27
|
import '../integration-api-BuPHMeKz.js';
|
|
@@ -50,124 +51,6 @@ import '../image-config-BpH1q5R8.js';
|
|
|
50
51
|
import '../font.js';
|
|
51
52
|
import '@opentelemetry/api';
|
|
52
53
|
|
|
53
|
-
interface FarmAppManifestWebMCPTool {
|
|
54
|
-
name: string;
|
|
55
|
-
title?: string;
|
|
56
|
-
description?: string;
|
|
57
|
-
readOnlyHint?: boolean;
|
|
58
|
-
destructiveHint?: boolean;
|
|
59
|
-
idempotentHint?: boolean;
|
|
60
|
-
openWorldHint?: boolean;
|
|
61
|
-
/** The input JSON Schema when the source writes it out; omitted when it's computed. */
|
|
62
|
-
inputSchema?: Record<string, unknown>;
|
|
63
|
-
/** `"computed"` when the schema is built at runtime, so it can't be read from source. */
|
|
64
|
-
inputSchemaSource: "literal" | "computed" | "none";
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
type FarmAppManifestToolSource = "endpoint" | "defineTool" | "serverFunction";
|
|
68
|
-
interface FarmAppManifestTool {
|
|
69
|
-
name: string;
|
|
70
|
-
title?: string;
|
|
71
|
-
description?: string;
|
|
72
|
-
/** How the app defined it: an API endpoint, `defineTool`, or a server function. */
|
|
73
|
-
source: FarmAppManifestToolSource;
|
|
74
|
-
/** The endpoint's method and route, for `source: "endpoint"`. Only in Farm Infra's view. */
|
|
75
|
-
method?: string;
|
|
76
|
-
path?: string;
|
|
77
|
-
readOnlyHint?: boolean;
|
|
78
|
-
destructiveHint?: boolean;
|
|
79
|
-
idempotentHint?: boolean;
|
|
80
|
-
openWorldHint?: boolean;
|
|
81
|
-
/** JSON Schemas, when the server published them (`@farm.js/mcp` does). */
|
|
82
|
-
inputSchema?: Readonly<Record<string, unknown>>;
|
|
83
|
-
outputSchema?: Readonly<Record<string, unknown>>;
|
|
84
|
-
}
|
|
85
|
-
type ServerDetails = NonNullable<FarmMCPCatalogDetails>;
|
|
86
|
-
interface FarmAppManifest {
|
|
87
|
-
schemaVersion: 1;
|
|
88
|
-
app: {
|
|
89
|
-
farm: string;
|
|
90
|
-
renderer: string;
|
|
91
|
-
basePath: string;
|
|
92
|
-
build: string;
|
|
93
|
-
};
|
|
94
|
-
/** Installed versions of the app's `@farm.js/*` and `@farming-labs/*` packages. */
|
|
95
|
-
packages: Record<string, string>;
|
|
96
|
-
mcp: {
|
|
97
|
-
servers: {
|
|
98
|
-
name: string;
|
|
99
|
-
version: string;
|
|
100
|
-
path: string;
|
|
101
|
-
/**
|
|
102
|
-
* `"required"` when the server runs `authorize`: an anonymous client lists nothing,
|
|
103
|
-
* so the public view leaves `tools`, `resources` and `prompts` empty.
|
|
104
|
-
*/
|
|
105
|
-
authorization: "none" | "required";
|
|
106
|
-
tools: FarmAppManifestTool[];
|
|
107
|
-
resources: NonNullable<ServerDetails["resources"]>;
|
|
108
|
-
prompts: NonNullable<ServerDetails["prompts"]>;
|
|
109
|
-
}[];
|
|
110
|
-
};
|
|
111
|
-
/** Browser tools from `@farm.js/webmcp`, read from the app's source. */
|
|
112
|
-
webmcp: {
|
|
113
|
-
enabled: boolean;
|
|
114
|
-
tools: FarmAppManifestWebMCPTool[];
|
|
115
|
-
};
|
|
116
|
-
/** The app's integrations: which slot each fills and which provider, never their config. */
|
|
117
|
-
integrations: {
|
|
118
|
-
key: string;
|
|
119
|
-
category: string;
|
|
120
|
-
type: string;
|
|
121
|
-
}[];
|
|
122
|
-
agent: {
|
|
123
|
-
apiCatalog: string | null;
|
|
124
|
-
llmsTxt: boolean;
|
|
125
|
-
openapi: string | null;
|
|
126
|
-
};
|
|
127
|
-
plugins: string[];
|
|
128
|
-
}
|
|
129
|
-
/** What the manifest reads from config; serializable, so a production build embeds it. */
|
|
130
|
-
interface FarmAppManifestInput {
|
|
131
|
-
renderer: string;
|
|
132
|
-
basePath: string;
|
|
133
|
-
/** The build's ID, or "development". */
|
|
134
|
-
build: string;
|
|
135
|
-
packages: Record<string, string>;
|
|
136
|
-
webmcp: FarmAppManifest["webmcp"];
|
|
137
|
-
integrations: FarmAppManifest["integrations"];
|
|
138
|
-
agent: FarmAppManifest["agent"];
|
|
139
|
-
plugins: string[];
|
|
140
|
-
/**
|
|
141
|
-
* `analytics: false` turns off Farm Infra's signed view: the app talks to no Farm Infra.
|
|
142
|
-
* The public manifest is still served; `agent.manifest: false` turns that off.
|
|
143
|
-
*/
|
|
144
|
-
analytics: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* The default read-only MCP server (`agent.mcp`) while the app would serve it. Set by the
|
|
147
|
-
* server at runtime, not serialized: it answers only while no other MCP server is listed.
|
|
148
|
-
*/
|
|
149
|
-
defaultMCP?: () => {
|
|
150
|
-
name: string;
|
|
151
|
-
version: string;
|
|
152
|
-
path: string;
|
|
153
|
-
} | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Whether a guard written for a path (middleware, an integration's `protectedRoutes`)
|
|
156
|
-
* covers an MCP server's endpoint. Set by the server at runtime: such a server is listed
|
|
157
|
-
* as requiring authorization, without its tools, resources or prompts, in the public view.
|
|
158
|
-
*/
|
|
159
|
-
guardCoversPath?: (path: string) => boolean;
|
|
160
|
-
}
|
|
161
|
-
type Env = Record<string, string | undefined>;
|
|
162
|
-
/**
|
|
163
|
-
* Answers `/.well-known/farmjs.json` for anyone. A request Farm Infra signed for the app's
|
|
164
|
-
* `FARMJS_API_KEY` gets the full view, unless `analytics` is off; any other read gets the
|
|
165
|
-
* public one.
|
|
166
|
-
*/
|
|
167
|
-
declare function createFarmAppManifestResponse(request: Request, input: FarmAppManifestInput, options?: {
|
|
168
|
-
env?: Env;
|
|
169
|
-
}): Promise<Response>;
|
|
170
|
-
|
|
171
54
|
/**
|
|
172
55
|
* Whether config middleware may run for a path. This reuses the runtime matcher: a
|
|
173
56
|
* separate copy drifted (`/members/(.*)` kept its trailing slash and never met
|
|
@@ -535,4 +418,4 @@ declare function appendFarmRedirectQuery(destination: string, search: string): s
|
|
|
535
418
|
|
|
536
419
|
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
537
420
|
|
|
538
|
-
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse,
|
|
421
|
+
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmPathGuardCoversEndpoint, farmPathGuardCoversPage, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, handleFarmDefaultMCPRequest, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, materializeSSGRoutePath, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmI18nConfig, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, withFarmRouteContext };
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
createFarmLayoutSelector,
|
|
6
6
|
generateNativeMCPPluginSource
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-IVQY6UTY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
_withFarmGuardedResponseCache,
|
|
10
10
|
applyProductionMiddlewareHeaders,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
listFarmMCPLlmsTxtLinks,
|
|
36
36
|
renderFarmLocaleAlternateLinks,
|
|
37
37
|
resolveDefaultErrorStatus
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-PIZXONIS.mjs";
|
|
39
39
|
import {
|
|
40
40
|
collectFarmDefaultMCPPages,
|
|
41
41
|
resolveFarmDefaultMCPServer
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
manageFarmHtmlPreloads,
|
|
64
64
|
manageFarmLinkHeaderPreloads,
|
|
65
65
|
reportFarmPreloadWarnings
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-DMRPN25V.mjs";
|
|
67
67
|
import {
|
|
68
68
|
collectFarmLlmsTxtPages,
|
|
69
69
|
createFarmDefaultLlmsTxt,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
resolveFarmServerConfig
|
|
148
148
|
} from "../chunk-ZZGQD7A4.mjs";
|
|
149
149
|
import "../chunk-P7XDC7UJ.mjs";
|
|
150
|
-
import "../chunk-
|
|
150
|
+
import "../chunk-U2UC7UGP.mjs";
|
|
151
151
|
import {
|
|
152
152
|
resolveFarmTrailingSlashRedirect,
|
|
153
153
|
setFarmTrailingSlashPreference
|
package/dist/markdown.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { fi as ApplyMarkdownNegotiationHeadersOptions, fh as CreateMarkdownMirrorResponseOptions, ar as FARM_MARKDOWN_CONTENT_TYPE, fa as FARM_MARKDOWN_PAGE_CHECK_HEADER, ff as FarmMarkdownMirrorTarget, bg as FarmMarkdownResolvedConfig, fe as FarmMarkdownResolvedRoute, fd as FarmMarkdownRouteInput, cA as FarmMarkdownUserConfig, fx as FarmPageFormAction, fv as FarmPageFormField, fu as FarmPageFormOption, fw as FarmPageFormSubmit, fg as ResolveMarkdownMirrorTargetOptions, fb as _getFarmMarkdownPageCheckToken, fc as _isFarmMarkdownPageCheck, fm as applyMarkdownNegotiationHeaders, as as createFarmMarkdownErrorBody, fl as createMarkdownMirrorResponse, fy as extractFarmPageActions, fo as farmAcceptQuality, at as farmRequestWantsMarkdown, fr as getFarmMarkdownAlternatePath, fq as getFarmMarkdownMirrorPath, fn as htmlToMarkdown, fs as isFarmMarkdownMirrorExposed, ft as matchesFarmMarkdownRoutePattern, fp as requestAcceptsMarkdown, fj as resolveMarkdownConfig, fk as resolveMarkdownMirrorTarget } from './client-plugins-C9Py_50W.mjs';
|
|
2
2
|
import './lifecycle-DK06VuKP.mjs';
|
|
3
3
|
import './integration-api-DWyMmvrR.mjs';
|
|
4
4
|
import './endpoint-DGZRZHux.mjs';
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { fi as ApplyMarkdownNegotiationHeadersOptions, fh as CreateMarkdownMirrorResponseOptions, ar as FARM_MARKDOWN_CONTENT_TYPE, fa as FARM_MARKDOWN_PAGE_CHECK_HEADER, ff as FarmMarkdownMirrorTarget, bg as FarmMarkdownResolvedConfig, fe as FarmMarkdownResolvedRoute, fd as FarmMarkdownRouteInput, cA as FarmMarkdownUserConfig, fx as FarmPageFormAction, fv as FarmPageFormField, fu as FarmPageFormOption, fw as FarmPageFormSubmit, fg as ResolveMarkdownMirrorTargetOptions, fb as _getFarmMarkdownPageCheckToken, fc as _isFarmMarkdownPageCheck, fm as applyMarkdownNegotiationHeaders, as as createFarmMarkdownErrorBody, fl as createMarkdownMirrorResponse, fy as extractFarmPageActions, fo as farmAcceptQuality, at as farmRequestWantsMarkdown, fr as getFarmMarkdownAlternatePath, fq as getFarmMarkdownMirrorPath, fn as htmlToMarkdown, fs as isFarmMarkdownMirrorExposed, ft as matchesFarmMarkdownRoutePattern, fp as requestAcceptsMarkdown, fj as resolveMarkdownConfig, fk as resolveMarkdownMirrorTarget } from './client-plugins-DIem0I0W.js';
|
|
2
2
|
import './lifecycle-DK06VuKP.js';
|
|
3
3
|
import './integration-api-BuPHMeKz.js';
|
|
4
4
|
import './endpoint-BOE0IAaG.js';
|
package/dist/middleware.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { eC as MiddlewareChain, eH as RateLimitStorage, eI as RateLimitStatus, eJ as MemoryRateLimitStorageOptions, bd as MiddlewareContext, ba as FarmMiddlewareConfig, ey as MiddlewareFunction, bc as MiddlewareConfig, aw as MiddlewareProps, eE as CookieOptions } from './client-plugins-C9Py_50W.mjs';
|
|
2
|
+
export { eD as CookieJar, eL as MiddlewareResult, eB as MiddlewareStore, eK as NextFunction, eF as RateLimitConfig, eG as RateLimitIncrementResult, b9 as ReadonlyMiddlewareStore, ez as RequestMiddleware, eA as RequestMiddlewareContext } from './client-plugins-C9Py_50W.mjs';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { a as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows-IWP1ddBm.mjs';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner, g as getMiddlewareContext, a as getMiddlewareData, b as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner, g as getMiddlewareContext, a as getMiddlewareData, b as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-CHFKIgpW.mjs';
|
|
8
8
|
import './lifecycle-DK06VuKP.mjs';
|
|
9
9
|
import './integration-api-DWyMmvrR.mjs';
|
|
10
10
|
import './endpoint-DGZRZHux.mjs';
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { eC as MiddlewareChain, eH as RateLimitStorage, eI as RateLimitStatus, eJ as MemoryRateLimitStorageOptions, bd as MiddlewareContext, ba as FarmMiddlewareConfig, ey as MiddlewareFunction, bc as MiddlewareConfig, aw as MiddlewareProps, eE as CookieOptions } from './client-plugins-DIem0I0W.js';
|
|
2
|
+
export { eD as CookieJar, eL as MiddlewareResult, eB as MiddlewareStore, eK as NextFunction, eF as RateLimitConfig, eG as RateLimitIncrementResult, b9 as ReadonlyMiddlewareStore, ez as RequestMiddleware, eA as RequestMiddlewareContext } from './client-plugins-DIem0I0W.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { a as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows-IWP1ddBm.js';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner, g as getMiddlewareContext, a as getMiddlewareData, b as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, c as _runWithMiddlewareData, e as applyProductionMiddlewareHeaders, d as createProductionMiddlewareRunner, g as getMiddlewareContext, a as getMiddlewareData, b as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime-bjjWq-DA.js';
|
|
8
8
|
import './lifecycle-DK06VuKP.js';
|
|
9
9
|
import './integration-api-BuPHMeKz.js';
|
|
10
10
|
import './endpoint-BOE0IAaG.js';
|
package/dist/navigation.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as FarmRouterNavigateOptions } from './router-
|
|
2
|
-
export { a6 as FarmRedirectSignal, a7 as FarmRedirectStatus, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, a3 as notFound, a4 as permanentRedirect, a5 as redirect } from './client-plugins-
|
|
1
|
+
import { F as FarmRouterNavigateOptions } from './router-CKHPBKXX.mjs';
|
|
2
|
+
export { a6 as FarmRedirectSignal, a7 as FarmRedirectStatus, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, a3 as notFound, a4 as permanentRedirect, a5 as redirect } from './client-plugins-C9Py_50W.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './router.mjs';
|
|
5
|
-
import './spa-router-
|
|
5
|
+
import './spa-router-BEvS9Erj.mjs';
|
|
6
6
|
import './lifecycle-DK06VuKP.mjs';
|
|
7
7
|
import './types-CnH8DOqo.mjs';
|
|
8
8
|
import './island-CfGru1MO.mjs';
|
|
9
|
-
import './render-plan-
|
|
9
|
+
import './render-plan-DOHg6wdO.mjs';
|
|
10
10
|
import './integration-api-DWyMmvrR.mjs';
|
|
11
11
|
import './endpoint-DGZRZHux.mjs';
|
|
12
12
|
import './cache.mjs';
|
package/dist/navigation.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { F as FarmRouterNavigateOptions } from './router-
|
|
2
|
-
export { a6 as FarmRedirectSignal, a7 as FarmRedirectStatus, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, a3 as notFound, a4 as permanentRedirect, a5 as redirect } from './client-plugins-
|
|
1
|
+
import { F as FarmRouterNavigateOptions } from './router-CHEMHm1P.js';
|
|
2
|
+
export { a6 as FarmRedirectSignal, a7 as FarmRedirectStatus, a0 as getFarmRedirectError, a1 as isFarmNotFoundError, a2 as isFarmRedirectError, a3 as notFound, a4 as permanentRedirect, a5 as redirect } from './client-plugins-DIem0I0W.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './router.js';
|
|
5
|
-
import './spa-router-
|
|
5
|
+
import './spa-router-DmCuH5B7.js';
|
|
6
6
|
import './lifecycle-DK06VuKP.js';
|
|
7
7
|
import './types-CnH8DOqo.js';
|
|
8
8
|
import './island-CfGru1MO.js';
|
|
9
|
-
import './render-plan-
|
|
9
|
+
import './render-plan-B2UndB4x.js';
|
|
10
10
|
import './integration-api-BuPHMeKz.js';
|
|
11
11
|
import './endpoint-BOE0IAaG.js';
|
|
12
12
|
import './cache.js';
|
package/dist/plugin.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTCJ4A4A2cjs = require('./chunk-TCJ4A4A2.cjs');
|
|
4
4
|
require('./chunk-KEXK442I.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-ZATTDMBW.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ require('./chunk-BPOTSHDO.cjs');
|
|
|
15
15
|
require('./chunk-ZQRCSUSB.cjs');
|
|
16
16
|
require('./chunk-4U5XZDLG.cjs');
|
|
17
17
|
require('./chunk-6D24SDKO.cjs');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-7YHSD3Z6.cjs');
|
|
19
19
|
require('./chunk-BMOBTMDR.cjs');
|
|
20
20
|
require('./chunk-TI7UANHI.cjs');
|
|
21
21
|
require('./chunk-VHRS3MCW.cjs');
|
|
@@ -37,7 +37,7 @@ require('./chunk-FVPXT2JR.cjs');
|
|
|
37
37
|
|
|
38
38
|
var _chunkYJRZR7VUcjs = require('./chunk-YJRZR7VU.cjs');
|
|
39
39
|
require('./chunk-PSV6XKPO.cjs');
|
|
40
|
-
require('./chunk-
|
|
40
|
+
require('./chunk-JAXDRRRC.cjs');
|
|
41
41
|
require('./chunk-D5IHNDHI.cjs');
|
|
42
42
|
require('./chunk-25LPIZSX.cjs');
|
|
43
43
|
require('./chunk-WBKEZXWE.cjs');
|
|
@@ -100,7 +100,7 @@ require('./chunk-UQZ4AYTH.cjs');
|
|
|
100
100
|
require('./chunk-KNBBQHO2.cjs');
|
|
101
101
|
require('./chunk-5NAVKJCZ.cjs');
|
|
102
102
|
require('./chunk-4TLUFAIP.cjs');
|
|
103
|
-
require('./chunk-
|
|
103
|
+
require('./chunk-AHFRQMRX.cjs');
|
|
104
104
|
require('./chunk-OYEUREB6.cjs');
|
|
105
105
|
require('./chunk-7W3CPVXS.cjs');
|
|
106
106
|
require('./chunk-NZKJGRB3.cjs');
|
|
@@ -138,4 +138,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
exports.FARM_NODE_RESPONSE_END_PENDING = _chunk45QJHGZMcjs.FARM_NODE_RESPONSE_END_PENDING; exports.FarmDevEnvironmentError = _chunkPJ42JESYcjs.FarmDevEnvironmentError; exports.FarmRuntimeShutdownError = _chunk45QJHGZMcjs.FarmRuntimeShutdownError; exports.PluginManager = _chunk45QJHGZMcjs.PluginManager; exports.definePlugin = _chunk45QJHGZMcjs.definePlugin; exports.farmPlugin =
|
|
141
|
+
exports.FARM_NODE_RESPONSE_END_PENDING = _chunk45QJHGZMcjs.FARM_NODE_RESPONSE_END_PENDING; exports.FarmDevEnvironmentError = _chunkPJ42JESYcjs.FarmDevEnvironmentError; exports.FarmRuntimeShutdownError = _chunk45QJHGZMcjs.FarmRuntimeShutdownError; exports.PluginManager = _chunk45QJHGZMcjs.PluginManager; exports.definePlugin = _chunk45QJHGZMcjs.definePlugin; exports.farmPlugin = _chunkTCJ4A4A2cjs.farmPlugin; exports.loadFarmDevModule = _chunkPJ42JESYcjs.loadFarmDevModule; exports.resolveFarmDevtoolsConfig = _chunkYJRZR7VUcjs.resolveFarmDevtoolsConfig;
|
package/dist/plugin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as APIHandlerLifecyclePayload, A as APIRouteDiscoveredPayload, B as BundleLifecyclePayload, n as BundleResultPayload, E as ErrorLifecyclePayload, b as FARM_NODE_RESPONSE_END_PENDING, $ as FarmDevtoolsUserConfig, a as FarmPlugin, Q as FarmPluginBuildHooks, U as FarmPluginClientConfig, f as FarmPluginContext, Y as FarmPluginDatabase, W as FarmPluginDefinition, T as FarmPluginDevHooks, K as FarmPluginDiscoveredRoute, c as FarmPluginIntegrationContext, g as FarmPluginLifecycle, O as FarmPluginRenderHooks, p as FarmPluginRouteRuntimePayload, L as FarmPluginRouterHooks, x as FarmPluginRuntimeAfterEvent, s as FarmPluginRuntimeBaseEvent, w as FarmPluginRuntimeBeforeEvent, C as FarmPluginRuntimeCloseEvent, t as FarmPluginRuntimeContextEvent, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, y as FarmPluginRuntimeErrorEvent, D as FarmPluginRuntimeHooks, o as FarmPluginRuntimeKind, I as FarmPluginRuntimeRequestHandler, G as FarmPluginRuntimeRequestOptions, J as FarmPluginRuntimeSession, z as FarmPluginRuntimeStartEvent, q as FarmPluginSetupContext, r as FarmPluginStateContext, h as FarmRequestPluginContext, e as FarmRequestStore, d as FarmRuntimeShutdownError, H as HMRUpdatePayload, M as MiddlewareDiscoveredPayload, N as NitroBuildLifecyclePayload, V as PluginManager, P as PluginRequestContext, l as RenderLifecyclePayload, _ as ResolvedFarmDevtoolsConfig, R as RouteDiscoveredPayload, j as RouteMatchPayload, k as RouteMatchResultPayload, i as RoutesGeneratedPayload, S as ShutdownPayload, X as definePlugin, Z as resolveFarmDevtoolsConfig } from './client-plugins-
|
|
1
|
+
export { m as APIHandlerLifecyclePayload, A as APIRouteDiscoveredPayload, B as BundleLifecyclePayload, n as BundleResultPayload, E as ErrorLifecyclePayload, b as FARM_NODE_RESPONSE_END_PENDING, $ as FarmDevtoolsUserConfig, a as FarmPlugin, Q as FarmPluginBuildHooks, U as FarmPluginClientConfig, f as FarmPluginContext, Y as FarmPluginDatabase, W as FarmPluginDefinition, T as FarmPluginDevHooks, K as FarmPluginDiscoveredRoute, c as FarmPluginIntegrationContext, g as FarmPluginLifecycle, O as FarmPluginRenderHooks, p as FarmPluginRouteRuntimePayload, L as FarmPluginRouterHooks, x as FarmPluginRuntimeAfterEvent, s as FarmPluginRuntimeBaseEvent, w as FarmPluginRuntimeBeforeEvent, C as FarmPluginRuntimeCloseEvent, t as FarmPluginRuntimeContextEvent, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, y as FarmPluginRuntimeErrorEvent, D as FarmPluginRuntimeHooks, o as FarmPluginRuntimeKind, I as FarmPluginRuntimeRequestHandler, G as FarmPluginRuntimeRequestOptions, J as FarmPluginRuntimeSession, z as FarmPluginRuntimeStartEvent, q as FarmPluginSetupContext, r as FarmPluginStateContext, h as FarmRequestPluginContext, e as FarmRequestStore, d as FarmRuntimeShutdownError, H as HMRUpdatePayload, M as MiddlewareDiscoveredPayload, N as NitroBuildLifecyclePayload, V as PluginManager, P as PluginRequestContext, l as RenderLifecyclePayload, _ as ResolvedFarmDevtoolsConfig, R as RouteDiscoveredPayload, j as RouteMatchPayload, k as RouteMatchResultPayload, i as RoutesGeneratedPayload, S as ShutdownPayload, X as definePlugin, Z as resolveFarmDevtoolsConfig } from './client-plugins-C9Py_50W.mjs';
|
|
2
2
|
export { farmPlugin } from './vite.mjs';
|
|
3
3
|
export { P as PluginLocalAPI, a as PluginLocalAPIEndpoint, b as PluginRoutes, c as PluginRoutesFactory, R as RouteDefinition, d as RouteMethod } from './integration-api-DWyMmvrR.mjs';
|
|
4
4
|
export { E as EndpointMCPMetadata, a as EndpointMCPOptions, b as EndpointOpenAPIMetadata, R as RouteSchema } from './endpoint-DGZRZHux.mjs';
|
|
@@ -32,8 +32,8 @@ import './image-config-BpH1q5R8.mjs';
|
|
|
32
32
|
import './types-CnH8DOqo.mjs';
|
|
33
33
|
import './types-DQnyD3VD.mjs';
|
|
34
34
|
import './font.mjs';
|
|
35
|
-
import './ssg-
|
|
36
|
-
import './route-rendering-
|
|
35
|
+
import './ssg-57v6cZcW.mjs';
|
|
36
|
+
import './route-rendering-CEX4mFn-.mjs';
|
|
37
37
|
import './after.mjs';
|
|
38
38
|
import 'node:http';
|
|
39
39
|
import './server-client-bridge-DKWDl5NB.mjs';
|
package/dist/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { m as APIHandlerLifecyclePayload, A as APIRouteDiscoveredPayload, B as BundleLifecyclePayload, n as BundleResultPayload, E as ErrorLifecyclePayload, b as FARM_NODE_RESPONSE_END_PENDING, $ as FarmDevtoolsUserConfig, a as FarmPlugin, Q as FarmPluginBuildHooks, U as FarmPluginClientConfig, f as FarmPluginContext, Y as FarmPluginDatabase, W as FarmPluginDefinition, T as FarmPluginDevHooks, K as FarmPluginDiscoveredRoute, c as FarmPluginIntegrationContext, g as FarmPluginLifecycle, O as FarmPluginRenderHooks, p as FarmPluginRouteRuntimePayload, L as FarmPluginRouterHooks, x as FarmPluginRuntimeAfterEvent, s as FarmPluginRuntimeBaseEvent, w as FarmPluginRuntimeBeforeEvent, C as FarmPluginRuntimeCloseEvent, t as FarmPluginRuntimeContextEvent, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, y as FarmPluginRuntimeErrorEvent, D as FarmPluginRuntimeHooks, o as FarmPluginRuntimeKind, I as FarmPluginRuntimeRequestHandler, G as FarmPluginRuntimeRequestOptions, J as FarmPluginRuntimeSession, z as FarmPluginRuntimeStartEvent, q as FarmPluginSetupContext, r as FarmPluginStateContext, h as FarmRequestPluginContext, e as FarmRequestStore, d as FarmRuntimeShutdownError, H as HMRUpdatePayload, M as MiddlewareDiscoveredPayload, N as NitroBuildLifecyclePayload, V as PluginManager, P as PluginRequestContext, l as RenderLifecyclePayload, _ as ResolvedFarmDevtoolsConfig, R as RouteDiscoveredPayload, j as RouteMatchPayload, k as RouteMatchResultPayload, i as RoutesGeneratedPayload, S as ShutdownPayload, X as definePlugin, Z as resolveFarmDevtoolsConfig } from './client-plugins-
|
|
1
|
+
export { m as APIHandlerLifecyclePayload, A as APIRouteDiscoveredPayload, B as BundleLifecyclePayload, n as BundleResultPayload, E as ErrorLifecyclePayload, b as FARM_NODE_RESPONSE_END_PENDING, $ as FarmDevtoolsUserConfig, a as FarmPlugin, Q as FarmPluginBuildHooks, U as FarmPluginClientConfig, f as FarmPluginContext, Y as FarmPluginDatabase, W as FarmPluginDefinition, T as FarmPluginDevHooks, K as FarmPluginDiscoveredRoute, c as FarmPluginIntegrationContext, g as FarmPluginLifecycle, O as FarmPluginRenderHooks, p as FarmPluginRouteRuntimePayload, L as FarmPluginRouterHooks, x as FarmPluginRuntimeAfterEvent, s as FarmPluginRuntimeBaseEvent, w as FarmPluginRuntimeBeforeEvent, C as FarmPluginRuntimeCloseEvent, t as FarmPluginRuntimeContextEvent, v as FarmPluginRuntimeEndpoint, u as FarmPluginRuntimeEndpointEvent, y as FarmPluginRuntimeErrorEvent, D as FarmPluginRuntimeHooks, o as FarmPluginRuntimeKind, I as FarmPluginRuntimeRequestHandler, G as FarmPluginRuntimeRequestOptions, J as FarmPluginRuntimeSession, z as FarmPluginRuntimeStartEvent, q as FarmPluginSetupContext, r as FarmPluginStateContext, h as FarmRequestPluginContext, e as FarmRequestStore, d as FarmRuntimeShutdownError, H as HMRUpdatePayload, M as MiddlewareDiscoveredPayload, N as NitroBuildLifecyclePayload, V as PluginManager, P as PluginRequestContext, l as RenderLifecyclePayload, _ as ResolvedFarmDevtoolsConfig, R as RouteDiscoveredPayload, j as RouteMatchPayload, k as RouteMatchResultPayload, i as RoutesGeneratedPayload, S as ShutdownPayload, X as definePlugin, Z as resolveFarmDevtoolsConfig } from './client-plugins-DIem0I0W.js';
|
|
2
2
|
export { farmPlugin } from './vite.js';
|
|
3
3
|
export { P as PluginLocalAPI, a as PluginLocalAPIEndpoint, b as PluginRoutes, c as PluginRoutesFactory, R as RouteDefinition, d as RouteMethod } from './integration-api-BuPHMeKz.js';
|
|
4
4
|
export { E as EndpointMCPMetadata, a as EndpointMCPOptions, b as EndpointOpenAPIMetadata, R as RouteSchema } from './endpoint-BOE0IAaG.js';
|
|
@@ -32,8 +32,8 @@ import './image-config-BpH1q5R8.js';
|
|
|
32
32
|
import './types-CnH8DOqo.js';
|
|
33
33
|
import './types-DQnyD3VD.js';
|
|
34
34
|
import './font.js';
|
|
35
|
-
import './ssg-
|
|
36
|
-
import './route-rendering-
|
|
35
|
+
import './ssg-gT093ETk.js';
|
|
36
|
+
import './route-rendering-B_6fj-GG.js';
|
|
37
37
|
import './after.js';
|
|
38
38
|
import 'node:http';
|
|
39
39
|
import './server-client-bridge-DKWDl5NB.js';
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TUL355PH.mjs";
|
|
4
4
|
import "./chunk-INQ64HTJ.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-QTEJGB5A.mjs";
|
|
6
6
|
import {
|
|
7
7
|
FARM_NODE_RESPONSE_END_PENDING,
|
|
8
8
|
FarmRuntimeShutdownError,
|
|
@@ -15,7 +15,7 @@ import "./chunk-BYR3RQPB.mjs";
|
|
|
15
15
|
import "./chunk-VQGKD7RV.mjs";
|
|
16
16
|
import "./chunk-GC3EM6H4.mjs";
|
|
17
17
|
import "./chunk-WDMIW6Q6.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-PIZXONIS.mjs";
|
|
19
19
|
import "./chunk-4ZZNPK25.mjs";
|
|
20
20
|
import "./chunk-Y5RG6B7S.mjs";
|
|
21
21
|
import "./chunk-COABSY3U.mjs";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
resolveFarmDevtoolsConfig
|
|
38
38
|
} from "./chunk-JBSVKMC5.mjs";
|
|
39
39
|
import "./chunk-DAATZTKJ.mjs";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-DMRPN25V.mjs";
|
|
41
41
|
import "./chunk-ETPEZLS3.mjs";
|
|
42
42
|
import "./chunk-7UEEHAW7.mjs";
|
|
43
43
|
import "./chunk-BUGNQIHC.mjs";
|
|
@@ -100,7 +100,7 @@ import "./chunk-Z2RZJZIZ.mjs";
|
|
|
100
100
|
import "./chunk-BTHHUD7Q.mjs";
|
|
101
101
|
import "./chunk-ZZGQD7A4.mjs";
|
|
102
102
|
import "./chunk-P7XDC7UJ.mjs";
|
|
103
|
-
import "./chunk-
|
|
103
|
+
import "./chunk-U2UC7UGP.mjs";
|
|
104
104
|
import "./chunk-54UPOYFS.mjs";
|
|
105
105
|
import "./chunk-WNSDDRNU.mjs";
|
|
106
106
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b9 as ReadonlyMiddlewareStore, ba as FarmMiddlewareConfig, bb as MiddlewareModule, bc as MiddlewareConfig, bd as MiddlewareContext } from './client-plugins-C9Py_50W.mjs';
|
|
2
2
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
3
3
|
import { R as ResolvedFarmServerConfig } from './workflows-IWP1ddBm.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b9 as ReadonlyMiddlewareStore, ba as FarmMiddlewareConfig, bb as MiddlewareModule, bc as MiddlewareConfig, bd as MiddlewareContext } from './client-plugins-DIem0I0W.js';
|
|
2
2
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
3
3
|
import { R as ResolvedFarmServerConfig } from './workflows-IWP1ddBm.js';
|
|
4
4
|
|