@farm.js/core 0.1.51-beta.2 → 0.1.51-beta.3
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-handler-WWCC4GLG.mjs → agent-mcp-handler-7JSKGSOW.mjs} +4 -4
- package/dist/{agent-mcp-handler-RT3COCEL.cjs → agent-mcp-handler-YE4AGWHN.cjs} +5 -5
- package/dist/{agent-mcp.d-CR5Ov83o.d.ts → agent-mcp.d-BAR9njbJ.d.ts} +1 -1
- package/dist/{agent-mcp.d-Z5DuwrqW.d.mts → agent-mcp.d-BJKChOrO.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/{analyzer-Z6TNEAET.mjs → analyzer-OTPEWH5W.mjs} +14 -3
- package/dist/{analyzer-T76CN3S7.cjs → analyzer-TSQXZCZN.cjs} +14 -3
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api.d.mts +4 -4
- package/dist/api.d.ts +4 -4
- package/dist/{app-manifest.d-DiWr_Jfx.d.ts → app-manifest.d-BLFbaqx8.d.ts} +1 -1
- package/dist/{app-manifest.d-CAHkOBFa.d.mts → app-manifest.d-DEQNnNhV.d.mts} +1 -1
- package/dist/app-markdown.cjs +4 -4
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +3 -3
- package/dist/{app.d-DmapqkbV.d.ts → app.d-CNPaUYaa.d.ts} +4 -4
- package/dist/{app.d-BfgJCsTQ.d.mts → app.d-CT7xDkj2.d.mts} +4 -4
- package/dist/{chunk-YVJV7Q2X.mjs → chunk-3BLEXUGE.mjs} +1 -1
- package/dist/chunk-3HLQTOVU.cjs +6 -0
- package/dist/{chunk-E6LTONL4.mjs → chunk-3SMXQNFD.mjs} +2 -2
- package/dist/{chunk-PMKUU273.mjs → chunk-3TLKUBXG.mjs} +411 -166
- package/dist/{chunk-74Z5KX4A.mjs → chunk-3WSIYBMG.mjs} +41 -19
- package/dist/{chunk-GNJIYJMS.cjs → chunk-3XQ57EFI.cjs} +16 -16
- package/dist/{chunk-GW4YUIHW.mjs → chunk-3Z63X45F.mjs} +1 -1
- package/dist/{chunk-IBSAYAWB.mjs → chunk-4353ZRE5.mjs} +1 -1
- package/dist/{chunk-SBABQKPT.cjs → chunk-46KXZBOG.cjs} +5 -5
- package/dist/{chunk-YU42A5MA.cjs → chunk-4CGOMZP3.cjs} +221 -199
- package/dist/{chunk-J3LBO2O4.cjs → chunk-4SEHMBL4.cjs} +10 -10
- package/dist/{chunk-E73PGHSR.mjs → chunk-4TKAIO2F.mjs} +3 -3
- package/dist/{chunk-NJLTQR5P.cjs → chunk-53SACYBY.cjs} +7 -7
- package/dist/{chunk-FM2UEKS2.mjs → chunk-5FXPJIOT.mjs} +2 -2
- package/dist/{chunk-QXPSWMUD.cjs → chunk-7MD37P5V.cjs} +5 -5
- package/dist/{chunk-JATTVAHA.cjs → chunk-B3GM5I6N.cjs} +4 -4
- package/dist/{chunk-WJFFPXCV.cjs → chunk-D7UQC4O6.cjs} +10 -8
- package/dist/{chunk-KRRZJ77U.mjs → chunk-E5DXF5GE.mjs} +2 -2
- package/dist/chunk-EFZGB7JC.cjs +114 -0
- package/dist/{chunk-NYQSC4DX.cjs → chunk-FFE2EMF7.cjs} +5 -5
- package/dist/{chunk-CTM4SPB3.mjs → chunk-GAO7MS5O.mjs} +4 -3
- package/dist/{chunk-HIFIG6HL.cjs → chunk-H33PJEXN.cjs} +5 -5
- package/dist/{chunk-NXBHYO7S.cjs → chunk-HLWOWZFX.cjs} +2 -2
- package/dist/chunk-JXEPLIXD.cjs +389 -0
- package/dist/{chunk-NPQLMP7M.cjs → chunk-KLNFJDFM.cjs} +10 -9
- package/dist/{chunk-KBRZAYI7.mjs → chunk-LDNSSHEG.mjs} +2 -2
- package/dist/chunk-LLZSYFOM.mjs +6 -0
- package/dist/{chunk-N77JBPLC.mjs → chunk-LPDKG6RA.mjs} +9 -7
- package/dist/chunk-MIGFX2FN.mjs +758 -0
- package/dist/{chunk-72D2NX77.mjs → chunk-MRNDAJEV.mjs} +1 -1
- package/dist/{chunk-4SSRBCBR.mjs → chunk-NOTSHVRN.mjs} +355 -218
- package/dist/{chunk-GUJTVM36.cjs → chunk-OAMUSC7H.cjs} +1 -1
- package/dist/chunk-P6MHI5O2.cjs +758 -0
- package/dist/{chunk-6CYQQQGR.mjs → chunk-R4PHCZ3G.mjs} +1 -1
- package/dist/{chunk-WZW6LEHM.cjs → chunk-TQMI6BYO.cjs} +675 -430
- package/dist/{chunk-76GHW3WI.cjs → chunk-TSFMFPRU.cjs} +4 -4
- package/dist/{chunk-5N7QAGEA.cjs → chunk-TWHXBMLJ.cjs} +37 -7
- package/dist/{chunk-BOVGCUDZ.cjs → chunk-UJL4JOXV.cjs} +2 -2
- package/dist/chunk-UQF3OJVE.mjs +389 -0
- package/dist/{chunk-DTU4PX7V.cjs → chunk-WGUHDWT5.cjs} +557 -420
- package/dist/{chunk-LAZK6UV7.mjs → chunk-YAJTD3ZG.mjs} +1 -1
- package/dist/{chunk-7UPCJDB5.mjs → chunk-YUEYBL35.mjs} +2 -2
- package/dist/{chunk-EIMK7D2D.mjs → chunk-ZD2VKAUI.mjs} +34 -4
- package/dist/chunk-ZNXTU4YH.mjs +114 -0
- package/dist/{client-plugins.d-Bx3FXpqm.d.mts → client-plugins.d-DllmH8eM.d.mts} +17 -4
- package/dist/{client-plugins.d-TiLbS5j4.d.ts → client-plugins.d-n3iWY1EJ.d.ts} +17 -4
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.d.mts +7 -7
- package/dist/client.d.ts +7 -7
- package/dist/{config.d-iRPI16ku.d.ts → config.d-DqKaCr1r.d.mts} +8 -1
- package/dist/{config.d-iRPI16ku.d.mts → config.d-DqKaCr1r.d.ts} +8 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/{devtools-6XWCZIGO.cjs → devtools-TO6TAO32.cjs} +5 -5
- package/dist/{devtools-UQLDAOEI.mjs → devtools-UESYARTF.mjs} +4 -4
- package/dist/docs.cjs +7 -7
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +6 -6
- package/dist/index.cjs +22 -18
- package/dist/{index.d-YxJ2AiDF.d.mts → index.d-BL7KKiwa.d.mts} +1 -1
- package/dist/{index.d-yueUNipJ.d.ts → index.d-BXsAXm1U.d.ts} +1 -1
- package/dist/index.d.mts +17 -17
- package/dist/index.d.ts +17 -17
- package/dist/index.mjs +22 -18
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/internal/app-markdown-runtime.cjs +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +20 -18
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +19 -17
- package/dist/internal/cli-runtime.cjs +7 -7
- package/dist/internal/cli-runtime.mjs +6 -6
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +6 -6
- package/dist/internal/config-runtime.d.mts +31 -7
- package/dist/internal/config-runtime.d.ts +31 -7
- package/dist/internal/config-runtime.mjs +5 -5
- package/dist/internal/infra-analytics-runtime.cjs +8 -8
- package/dist/internal/infra-analytics-runtime.mjs +6 -6
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +87 -9
- package/dist/internal/production-runtime.d.mts +44 -12
- package/dist/internal/production-runtime.d.ts +44 -12
- package/dist/internal/production-runtime.mjs +86 -8
- package/dist/markdown.cjs +4 -2
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.mjs +3 -1
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/mobile.d.mts +21 -5
- package/dist/mobile.d.ts +21 -5
- package/dist/native-tree-EBPDFTRW.mjs +25 -0
- package/dist/native-tree-MMZS7S6W.cjs +25 -0
- package/dist/{navigation-delegate.d-HnDXhlyP.d.mts → navigation-delegate.d-C76gXTmO.d.mts} +1 -1
- package/dist/{navigation-delegate.d-BY1e_Xrh.d.ts → navigation-delegate.d-DIyDslxt.d.ts} +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/plugin.cjs +14 -13
- package/dist/plugin.d.mts +5 -4
- package/dist/plugin.d.ts +5 -4
- package/dist/plugin.mjs +13 -12
- package/dist/{production-runtime.d-BpJUDzP8.d.mts → production-runtime.d-CDHztggO.d.mts} +1 -1
- package/dist/{production-runtime.d-lMjvE9cf.d.ts → production-runtime.d-tyaGdbk6.d.ts} +1 -1
- package/dist/{programmatic-routes-client.d-BlFp5hv4.d.ts → programmatic-routes-client.d-XfmIrCK1.d.ts} +2 -2
- package/dist/{programmatic-routes-client.d-6CGQ3TCk.d.mts → programmatic-routes-client.d-aAWiDd64.d.mts} +2 -2
- package/dist/{render-plan.d-BH9edqKs.d.mts → render-plan.d-Diwybxo8.d.mts} +1 -1
- package/dist/{render-plan.d-DhP0mTHF.d.ts → render-plan.d-Dr5WRjoV.d.ts} +1 -1
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/{request.d-BVZrsR1v.d.ts → request.d-D01fRn--.d.ts} +1 -1
- package/dist/{request.d-DJFRdKi8.d.mts → request.d-Dd3AFR79.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/{route-rendering.d-Bpmw7PED.d.mts → route-rendering.d-BQ53lJ_D.d.mts} +1 -1
- package/dist/{route-rendering.d-B00JtK_-.d.ts → route-rendering.d-Bhx4QoJt.d.ts} +1 -1
- package/dist/{router.d-e0jQ3jQ-.d.mts → router.d-Bi23a6Xc.d.mts} +1 -1
- package/dist/{router.d-Bd1x9XxQ.d.ts → router.d-DQ3k7EYn.d.ts} +1 -1
- package/dist/{routes.d-Cmv8TgVq.d.mts → routes.d-BgTd7vI4.d.mts} +3 -3
- package/dist/{routes.d-D96Dq9lz.d.ts → routes.d-C7jMJFvP.d.ts} +3 -3
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/{rsc-pipeline-ZQ4CTVEG.mjs → rsc-pipeline-K3ER3Q4N.mjs} +5 -5
- package/dist/{rsc-pipeline-DX4OC5FN.cjs → rsc-pipeline-OCZIT5OF.cjs} +6 -6
- package/dist/{runtime-NQ3EDSA7.cjs → runtime-DKNSIH7V.cjs} +30 -23
- package/dist/{runtime-NPDRDV6R.mjs → runtime-MKYDEUZT.mjs} +20 -13
- package/dist/{runtime.d-CgB3IJDq.d.mts → runtime.d-B2Js6qZ2.d.mts} +1 -1
- package/dist/{runtime.d-D-td-RR3.d.ts → runtime.d-BL-CGwoi.d.ts} +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server.cjs +31 -30
- package/dist/server.d.mts +11 -10
- package/dist/server.d.ts +11 -10
- package/dist/server.mjs +16 -15
- package/dist/{spa-router.d-BWDhS0FK.d.mts → spa-router.d-B2rIFGs0.d.mts} +2 -2
- package/dist/{spa-router.d-CO01mVOM.d.ts → spa-router.d-DqZ6Lfs0.d.ts} +2 -2
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/{utils.d-B77__yh8.d.ts → utils.d-Bv2MPeLR.d.ts} +1 -1
- package/dist/{utils.d-DRDazhCA.d.mts → utils.d-fqXe8lNc.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +14 -13
- package/dist/vite.d.mts +12 -6
- package/dist/vite.d.ts +12 -6
- package/dist/vite.mjs +13 -12
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { _runWithAfterRequest } from '../after.mjs';
|
|
2
|
-
export { c as createFarmAppManifestResponse } from '../app-manifest.d-
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering.d-
|
|
2
|
+
export { c as createFarmAppManifestResponse } from '../app-manifest.d-DEQNnNhV.mjs';
|
|
3
|
+
import { g3 as MiddlewareMatcher, bo as ResolvedFarmConfig, dv as FarmIntegrationsUserConfig, b9 as StaticPathParams, eL as ResolvedFarmMCPConfig, bq as FarmMCPServerRegistration, g4 as FarmLlmsTxtLink, F as FarmPlugin, aF as FarmConfig, aM as FarmContextFactoryInput } from '../client-plugins.d-DllmH8eM.mjs';
|
|
4
|
+
export { g5 as FarmLlmsTxtUserConfig, g6 as ResolvedFarmLlmsTxtConfig, g7 as applyFarmCspNonceToResponse, g8 as collectFarmLlmsTxtPages, g9 as createFarmAgentRobots, ga as createFarmCspNonce, gb as createFarmDefaultLlmsTxt, gc as createFarmDefaultSitemap, gd as createFarmLlmsFullRenderer, ge as createFarmLlmsMarkdownReader, gf as createFarmMetadataRouteResponse, bM as createFarmSearchParams, G as getFarmRedirectError, H as isFarmNotFoundError, I as isFarmRedirectError, gg as manageFarmDocumentPreloads, gh as manageFarmHtmlPreloads, gi as manageFarmLinkHeaderPreloads, bu as registerFarmMCPServer, gj as renderFarmLlmsFullTxt, gk as reportFarmPreloadWarnings, gl as resolveFarmLlmsTxtConfig, gm as resolveFarmSecurityConfig, bN as searchParamsToObject, gn as stampFarmCspNonce } from '../client-plugins.d-DllmH8eM.mjs';
|
|
5
|
+
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering.d-BQ53lJ_D.mjs';
|
|
6
6
|
import { R as ResolvedFarmServerConfig } from '../workflows.d-CRMzQZ3k.mjs';
|
|
7
7
|
export { f 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.d-CRMzQZ3k.mjs';
|
|
8
8
|
export { _registerFarmStorageModules, disposeStorage as disposeFarmStorage, initStorage as initFarmStorage } from '../storage.mjs';
|
|
9
|
-
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request.d-
|
|
9
|
+
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request.d-Dd3AFR79.mjs';
|
|
10
10
|
export { f as fetchFarmExternalRewrite } from '../response.d-BolW0Vx_.mjs';
|
|
11
11
|
import { A as APIRequestRuntime } from '../server-client-bridge.d-DKWDl5NB.mjs';
|
|
12
12
|
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.mjs';
|
|
@@ -14,17 +14,17 @@ import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from '../types.d
|
|
|
14
14
|
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver.d-JnZKKsc5.mjs';
|
|
15
15
|
import { F as FarmLocalePathConfig } from '../index.d-BqcfqJvt.mjs';
|
|
16
16
|
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index.d-BqcfqJvt.mjs';
|
|
17
|
-
import { F as FarmDefaultMCPPage } from '../agent-mcp.d-
|
|
18
|
-
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, d as collectFarmDefaultMCPPages, m as mergeMetadata, e as mergeModuleViewport, r as renderMetadataHead, f as renderViewportHead, g as resolveFarmDefaultMCPServer, h as resolveFarmNotFoundMetadata, i as resolveMetadataTitle } from '../agent-mcp.d-
|
|
19
|
-
export { _ as _runWithMiddlewareContext, a as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, b as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner } from '../production-runtime.d-
|
|
17
|
+
import { F as FarmDefaultMCPPage } from '../agent-mcp.d-BJKChOrO.mjs';
|
|
18
|
+
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, d as collectFarmDefaultMCPPages, m as mergeMetadata, e as mergeModuleViewport, r as renderMetadataHead, f as renderViewportHead, g as resolveFarmDefaultMCPServer, h as resolveFarmNotFoundMetadata, i as resolveMetadataTitle } from '../agent-mcp.d-BJKChOrO.mjs';
|
|
19
|
+
export { _ as _runWithMiddlewareContext, a as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, b as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner } from '../production-runtime.d-CDHztggO.mjs';
|
|
20
20
|
export { H as configureFarmObservability, J as emitFarmEvent, P as runWithFarmRequestSpan } from '../observability.d-B2363jB6.mjs';
|
|
21
21
|
export { f as createFarmInstrumentationLifecycle, r as resolveFarmInstrumentationRuntime } from '../instrumentation-runtime.d-CX9Zh-16.mjs';
|
|
22
22
|
export { _setDefaultFarmThemeConfig, getTheme } from '../theme/server.mjs';
|
|
23
23
|
import { c as FarmThemeRuntime, d as FarmThemeConfig, R as ResolvedFarmThemeConfig, a as FarmThemePreference } from '../types.d-DQnyD3VD.mjs';
|
|
24
|
-
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils.d-
|
|
24
|
+
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils.d-fqXe8lNc.mjs';
|
|
25
25
|
export { c as applyFarmBasePath, r as resolveFarmTrailingSlashRedirect, s as setFarmBasePath, a as setFarmTrailingSlashPreference, b as stripFarmBasePath } from '../base-path.d-BOUV5ozD.mjs';
|
|
26
26
|
export { handleFarmFormActionRequest } from './form-actions.mjs';
|
|
27
|
-
export { g as getSharedLayoutPrefixLength, p as parseFarmLayoutChainHeader } from '../render-plan.d-
|
|
27
|
+
export { g as getSharedLayoutPrefixLength, p as parseFarmLayoutChainHeader } from '../render-plan.d-Diwybxo8.mjs';
|
|
28
28
|
import 'node:http';
|
|
29
29
|
import '../lifecycle.d-C2aLBOwu.mjs';
|
|
30
30
|
import '../route.d-BaVH3V0w.mjs';
|
|
@@ -50,11 +50,33 @@ import '../layers.d-CcS42OGR.mjs';
|
|
|
50
50
|
import 'rolldown/utils';
|
|
51
51
|
import 'rolldown';
|
|
52
52
|
import '../image-config.d-CeDgNyX4.mjs';
|
|
53
|
-
import '../config.d-
|
|
53
|
+
import '../config.d-DqKaCr1r.mjs';
|
|
54
54
|
import '../font.mjs';
|
|
55
55
|
import '@opentelemetry/api';
|
|
56
56
|
import '../island.d-CfGru1MO.mjs';
|
|
57
57
|
|
|
58
|
+
/** What the server needs to point a document at the mobile client, from `mobile-client.json`. */
|
|
59
|
+
interface FarmMobileShellClient {
|
|
60
|
+
/** The web client entry as documents reference it, such as `/farm-client-h1a2b3c4d.js`. */
|
|
61
|
+
webEntry: string;
|
|
62
|
+
/** The mobile client entry that replaces it, such as `/farm-mobile-client-h5e6f7a8b.js`. */
|
|
63
|
+
entry: string;
|
|
64
|
+
/**
|
|
65
|
+
* Web client files, without the leading slash, that the mobile client does not load. Their
|
|
66
|
+
* modulepreload links are dropped from a shell's document; shared chunks keep theirs.
|
|
67
|
+
*/
|
|
68
|
+
webOnly: string[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Point a document at the mobile client when a mobile shell asked for it.
|
|
72
|
+
*
|
|
73
|
+
* HTML responses of an app with a mobile client always carry `Vary: X-Farm-Shell`, so a cache that
|
|
74
|
+
* honors it never hands one variant to the other. A shell's document is also `private, no-store`
|
|
75
|
+
* (as a guarded response is), so no shared cache stores it at all; `onPrivate` tells the adapter,
|
|
76
|
+
* which keeps that policy under cache route rules. Anything other than HTML passes through.
|
|
77
|
+
*/
|
|
78
|
+
declare function _applyFarmMobileShellClient(request: Request, response: Response, client: FarmMobileShellClient | null, onPrivate?: () => void): Response;
|
|
79
|
+
|
|
58
80
|
/**
|
|
59
81
|
* The `config` a middleware file exports, read from its source at build time so prerendering
|
|
60
82
|
* knows which paths the file's own `matcher` leaves alone. Only literal matchers count (strings,
|
|
@@ -243,6 +265,16 @@ declare function resolveFarmMarkdownRouteLabel(routePathname: string, matchPageP
|
|
|
243
265
|
/** The CSP nonce of the response being rendered, when `security.csp.nonce` is on. */
|
|
244
266
|
declare function _resolveCurrentCspNonce(): string | undefined;
|
|
245
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Answer the shell's request for a page's tree. `renderPage` renders the page for a browser.
|
|
270
|
+
* Responses that are not an HTML page (a redirect, a sign-in gate, an error) go back as they are,
|
|
271
|
+
* so the shell can follow or show them as it would for the web screen.
|
|
272
|
+
*/
|
|
273
|
+
declare function createFarmNativeTreeResponse(options: {
|
|
274
|
+
request: Request;
|
|
275
|
+
renderPage: (request: Request) => Response | Promise<Response>;
|
|
276
|
+
}): Promise<Response>;
|
|
277
|
+
|
|
246
278
|
/** Bind the owning app's live route dispatcher, never a process-wide route table. */
|
|
247
279
|
declare function _runWithAPIRequestRuntime<T>(runtime: APIRequestRuntime, run: () => T): T;
|
|
248
280
|
|
|
@@ -498,4 +530,4 @@ declare function createFarmMobileSessionPlugin(options: FarmMobileSessionOptions
|
|
|
498
530
|
|
|
499
531
|
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
500
532
|
|
|
501
|
-
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmMobileSessionPlugin, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmPathGuardCoversEndpoint, farmPathGuardCoversPage, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, handleFarmDefaultMCPRequest, ignoreFarmHeldValues, installFarmIslandValues, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, materializeSSGRoutePath, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmDocsEngineRouteLabel, resolveFarmDocsRouteLabel, resolveFarmI18nConfig, resolveFarmMCPRouteLabel, resolveFarmMarkdownRouteLabel, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, setFarmRouteLabel, withFarmRouteContext };
|
|
533
|
+
export { _applyFarmMobileShellClient, _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmMobileSessionPlugin, createFarmNativeTreeResponse, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmPathGuardCoversEndpoint, farmPathGuardCoversPage, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, handleFarmDefaultMCPRequest, ignoreFarmHeldValues, installFarmIslandValues, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, materializeSSGRoutePath, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmDocsEngineRouteLabel, resolveFarmDocsRouteLabel, resolveFarmI18nConfig, resolveFarmMCPRouteLabel, resolveFarmMarkdownRouteLabel, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, setFarmRouteLabel, withFarmRouteContext };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { _runWithAfterRequest } from '../after.js';
|
|
2
|
-
export { c as createFarmAppManifestResponse } from '../app-manifest.d-
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering.d-
|
|
2
|
+
export { c as createFarmAppManifestResponse } from '../app-manifest.d-BLFbaqx8.js';
|
|
3
|
+
import { g3 as MiddlewareMatcher, bo as ResolvedFarmConfig, dv as FarmIntegrationsUserConfig, b9 as StaticPathParams, eL as ResolvedFarmMCPConfig, bq as FarmMCPServerRegistration, g4 as FarmLlmsTxtLink, F as FarmPlugin, aF as FarmConfig, aM as FarmContextFactoryInput } from '../client-plugins.d-n3iWY1EJ.js';
|
|
4
|
+
export { g5 as FarmLlmsTxtUserConfig, g6 as ResolvedFarmLlmsTxtConfig, g7 as applyFarmCspNonceToResponse, g8 as collectFarmLlmsTxtPages, g9 as createFarmAgentRobots, ga as createFarmCspNonce, gb as createFarmDefaultLlmsTxt, gc as createFarmDefaultSitemap, gd as createFarmLlmsFullRenderer, ge as createFarmLlmsMarkdownReader, gf as createFarmMetadataRouteResponse, bM as createFarmSearchParams, G as getFarmRedirectError, H as isFarmNotFoundError, I as isFarmRedirectError, gg as manageFarmDocumentPreloads, gh as manageFarmHtmlPreloads, gi as manageFarmLinkHeaderPreloads, bu as registerFarmMCPServer, gj as renderFarmLlmsFullTxt, gk as reportFarmPreloadWarnings, gl as resolveFarmLlmsTxtConfig, gm as resolveFarmSecurityConfig, bN as searchParamsToObject, gn as stampFarmCspNonce } from '../client-plugins.d-n3iWY1EJ.js';
|
|
5
|
+
export { m as mergeRouteRenderingDirectiveConfig } from '../route-rendering.d-Bhx4QoJt.js';
|
|
6
6
|
import { R as ResolvedFarmServerConfig } from '../workflows.d-CRMzQZ3k.js';
|
|
7
7
|
export { f 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.d-CRMzQZ3k.js';
|
|
8
8
|
export { _registerFarmStorageModules, disposeStorage as disposeFarmStorage, initStorage as initFarmStorage } from '../storage.js';
|
|
9
|
-
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request.d-
|
|
9
|
+
export { _ as _getRequestReadCount, a as _runWithCurrentRequest, b as _runWithFarmCspNonce, g as getCurrentRequest, r as resolveFarmWebRequestOrigin } from '../request.d-D01fRn--.js';
|
|
10
10
|
export { f as fetchFarmExternalRewrite } from '../response.d-BolW0Vx_.js';
|
|
11
11
|
import { A as APIRequestRuntime } from '../server-client-bridge.d-DKWDl5NB.js';
|
|
12
12
|
export { configureFarmCache, createFarmCacheKey, getFarmDataCache, normalizeRevalidatePath } from '../cache.js';
|
|
@@ -14,17 +14,17 @@ import { k as FarmI18nUserConfig, R as ResolvedFarmI18nConfig } from '../types.d
|
|
|
14
14
|
export { c as createFarmLocaleCookie, g as getFarmLocaleVaryHeaders } from '../resolver.d-BHyZgpa7.js';
|
|
15
15
|
import { F as FarmLocalePathConfig } from '../index.d-BNNDpql4.js';
|
|
16
16
|
export { l as localizeFarmHref, a as localizeFarmPathname, s as stripFarmLocaleFromPathname } from '../index.d-BNNDpql4.js';
|
|
17
|
-
import { F as FarmDefaultMCPPage } from '../agent-mcp.d-
|
|
18
|
-
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, d as collectFarmDefaultMCPPages, m as mergeMetadata, e as mergeModuleViewport, r as renderMetadataHead, f as renderViewportHead, g as resolveFarmDefaultMCPServer, h as resolveFarmNotFoundMetadata, i as resolveMetadataTitle } from '../agent-mcp.d-
|
|
19
|
-
export { _ as _runWithMiddlewareContext, a as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, b as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner } from '../production-runtime.d-
|
|
17
|
+
import { F as FarmDefaultMCPPage } from '../agent-mcp.d-BAR9njbJ.js';
|
|
18
|
+
export { a as addMetadataImageReference, b as addMetadataMarkdownAlternate, d as collectFarmDefaultMCPPages, m as mergeMetadata, e as mergeModuleViewport, r as renderMetadataHead, f as renderViewportHead, g as resolveFarmDefaultMCPServer, h as resolveFarmNotFoundMetadata, i as resolveMetadataTitle } from '../agent-mcp.d-BAR9njbJ.js';
|
|
19
|
+
export { _ as _runWithMiddlewareContext, a as _runWithMiddlewareData, f as _withFarmGuardedResponseCache, b as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner } from '../production-runtime.d-tyaGdbk6.js';
|
|
20
20
|
export { H as configureFarmObservability, J as emitFarmEvent, P as runWithFarmRequestSpan } from '../observability.d-B2363jB6.js';
|
|
21
21
|
export { f as createFarmInstrumentationLifecycle, r as resolveFarmInstrumentationRuntime } from '../instrumentation-runtime.d-CX9Zh-16.js';
|
|
22
22
|
export { _setDefaultFarmThemeConfig, getTheme } from '../theme/server.js';
|
|
23
23
|
import { c as FarmThemeRuntime, d as FarmThemeConfig, R as ResolvedFarmThemeConfig, a as FarmThemePreference } from '../types.d-DQnyD3VD.js';
|
|
24
|
-
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils.d-
|
|
24
|
+
export { m as matchFarmPageRoute, p as parseRoutePath } from '../utils.d-Bv2MPeLR.js';
|
|
25
25
|
export { c as applyFarmBasePath, r as resolveFarmTrailingSlashRedirect, s as setFarmBasePath, a as setFarmTrailingSlashPreference, b as stripFarmBasePath } from '../base-path.d-BOUV5ozD.js';
|
|
26
26
|
export { handleFarmFormActionRequest } from './form-actions.js';
|
|
27
|
-
export { g as getSharedLayoutPrefixLength, p as parseFarmLayoutChainHeader } from '../render-plan.d-
|
|
27
|
+
export { g as getSharedLayoutPrefixLength, p as parseFarmLayoutChainHeader } from '../render-plan.d-Dr5WRjoV.js';
|
|
28
28
|
import 'node:http';
|
|
29
29
|
import '../lifecycle.d-C2aLBOwu.js';
|
|
30
30
|
import '../route.d-DBTEqifW.js';
|
|
@@ -50,11 +50,33 @@ import '../layers.d-CcS42OGR.js';
|
|
|
50
50
|
import 'rolldown/utils';
|
|
51
51
|
import 'rolldown';
|
|
52
52
|
import '../image-config.d-CeDgNyX4.js';
|
|
53
|
-
import '../config.d-
|
|
53
|
+
import '../config.d-DqKaCr1r.js';
|
|
54
54
|
import '../font.js';
|
|
55
55
|
import '@opentelemetry/api';
|
|
56
56
|
import '../island.d-CfGru1MO.js';
|
|
57
57
|
|
|
58
|
+
/** What the server needs to point a document at the mobile client, from `mobile-client.json`. */
|
|
59
|
+
interface FarmMobileShellClient {
|
|
60
|
+
/** The web client entry as documents reference it, such as `/farm-client-h1a2b3c4d.js`. */
|
|
61
|
+
webEntry: string;
|
|
62
|
+
/** The mobile client entry that replaces it, such as `/farm-mobile-client-h5e6f7a8b.js`. */
|
|
63
|
+
entry: string;
|
|
64
|
+
/**
|
|
65
|
+
* Web client files, without the leading slash, that the mobile client does not load. Their
|
|
66
|
+
* modulepreload links are dropped from a shell's document; shared chunks keep theirs.
|
|
67
|
+
*/
|
|
68
|
+
webOnly: string[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Point a document at the mobile client when a mobile shell asked for it.
|
|
72
|
+
*
|
|
73
|
+
* HTML responses of an app with a mobile client always carry `Vary: X-Farm-Shell`, so a cache that
|
|
74
|
+
* honors it never hands one variant to the other. A shell's document is also `private, no-store`
|
|
75
|
+
* (as a guarded response is), so no shared cache stores it at all; `onPrivate` tells the adapter,
|
|
76
|
+
* which keeps that policy under cache route rules. Anything other than HTML passes through.
|
|
77
|
+
*/
|
|
78
|
+
declare function _applyFarmMobileShellClient(request: Request, response: Response, client: FarmMobileShellClient | null, onPrivate?: () => void): Response;
|
|
79
|
+
|
|
58
80
|
/**
|
|
59
81
|
* The `config` a middleware file exports, read from its source at build time so prerendering
|
|
60
82
|
* knows which paths the file's own `matcher` leaves alone. Only literal matchers count (strings,
|
|
@@ -243,6 +265,16 @@ declare function resolveFarmMarkdownRouteLabel(routePathname: string, matchPageP
|
|
|
243
265
|
/** The CSP nonce of the response being rendered, when `security.csp.nonce` is on. */
|
|
244
266
|
declare function _resolveCurrentCspNonce(): string | undefined;
|
|
245
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Answer the shell's request for a page's tree. `renderPage` renders the page for a browser.
|
|
270
|
+
* Responses that are not an HTML page (a redirect, a sign-in gate, an error) go back as they are,
|
|
271
|
+
* so the shell can follow or show them as it would for the web screen.
|
|
272
|
+
*/
|
|
273
|
+
declare function createFarmNativeTreeResponse(options: {
|
|
274
|
+
request: Request;
|
|
275
|
+
renderPage: (request: Request) => Response | Promise<Response>;
|
|
276
|
+
}): Promise<Response>;
|
|
277
|
+
|
|
246
278
|
/** Bind the owning app's live route dispatcher, never a process-wide route table. */
|
|
247
279
|
declare function _runWithAPIRequestRuntime<T>(runtime: APIRequestRuntime, run: () => T): T;
|
|
248
280
|
|
|
@@ -498,4 +530,4 @@ declare function createFarmMobileSessionPlugin(options: FarmMobileSessionOptions
|
|
|
498
530
|
|
|
499
531
|
declare function appendFarmLinkHeader(headers: Headers, value: string): void;
|
|
500
532
|
|
|
501
|
-
export { _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmMobileSessionPlugin, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmPathGuardCoversEndpoint, farmPathGuardCoversPage, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, handleFarmDefaultMCPRequest, ignoreFarmHeldValues, installFarmIslandValues, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, materializeSSGRoutePath, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmDocsEngineRouteLabel, resolveFarmDocsRouteLabel, resolveFarmI18nConfig, resolveFarmMCPRouteLabel, resolveFarmMarkdownRouteLabel, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, setFarmRouteLabel, withFarmRouteContext };
|
|
533
|
+
export { _applyFarmMobileShellClient, _farmPluginsKeepResponsesPrivate, _isFarmOwnedResponse, _markFarmOwnedResponse, _resolveCurrentCspNonce, _runWithAPIRequestRuntime, _withFarmResponseHeaders, appMiddlewareMayHandlePath, appendFarmLinkHeader, appendFarmRedirectQuery, applyFarmPreviewRobotsTag, applyFarmThemeDocument, compareRouteSpecificity, configMiddlewareMayHandlePath, createDefaultErrorMarkup, createFarmAiCatalogResponse, createFarmApiCatalogResponse, createFarmLayoutSelector, createFarmLegacyRequest, createFarmMobileSessionPlugin, createFarmNativeTreeResponse, createFarmProductionLifecycle, createFarmThemeDocumentParts, createLateNotFoundRecovery, createLateRedirectRecovery, ensureFarmDocumentMeta, farmPathGuardCoversEndpoint, farmPathGuardCoversPage, farmSecretsMatch, generateNativeMCPPluginSource, getDefaultErrorStatusText, getRoutePatternSpecificity, handleFarmDefaultMCPRequest, ignoreFarmHeldValues, installFarmIslandValues, isInRouteGroupScope as isInFarmRouteGroupScope, listFarmMCPLlmsTxtLinks, materializeSSGRoutePath, renderFarmLegacyErrorHtml, renderFarmLegacyHtml, renderFarmLocaleAlternateLinks, resolveDefaultErrorStatus, resolveFarmDocsEngineRouteLabel, resolveFarmDocsRouteLabel, resolveFarmI18nConfig, resolveFarmMCPRouteLabel, resolveFarmMarkdownRouteLabel, resolveFarmPreviewDeployment, resolveFarmRouteContext, serializeFarmInlineValue, setFarmRouteLabel, withFarmRouteContext };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createFarmNativeTreeResponse
|
|
3
|
+
} from "../chunk-UQF3OJVE.mjs";
|
|
4
|
+
import "../chunk-MIGFX2FN.mjs";
|
|
1
5
|
import {
|
|
2
6
|
handleFarmDefaultMCPRequest
|
|
3
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-MRNDAJEV.mjs";
|
|
4
8
|
import {
|
|
5
9
|
generateNativeMCPPluginSource
|
|
6
10
|
} from "../chunk-KQH2COEJ.mjs";
|
|
@@ -35,7 +39,8 @@ import {
|
|
|
35
39
|
parseFarmLayoutChainHeader,
|
|
36
40
|
renderFarmLocaleAlternateLinks,
|
|
37
41
|
resolveDefaultErrorStatus
|
|
38
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-YUEYBL35.mjs";
|
|
43
|
+
import "../chunk-LLZSYFOM.mjs";
|
|
39
44
|
import {
|
|
40
45
|
_farmPluginsKeepResponsesPrivate
|
|
41
46
|
} from "../chunk-UUMKLGUU.mjs";
|
|
@@ -56,11 +61,11 @@ import {
|
|
|
56
61
|
resolveFarmMCPRouteLabel,
|
|
57
62
|
resolveFarmMarkdownRouteLabel,
|
|
58
63
|
setFarmRouteLabel
|
|
59
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-4TKAIO2F.mjs";
|
|
60
65
|
import {
|
|
61
66
|
collectFarmDefaultMCPPages,
|
|
62
67
|
resolveFarmDefaultMCPServer
|
|
63
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-E5DXF5GE.mjs";
|
|
64
69
|
import {
|
|
65
70
|
ignoreFarmHeldValues,
|
|
66
71
|
installFarmIslandValues
|
|
@@ -83,7 +88,7 @@ import {
|
|
|
83
88
|
manageFarmHtmlPreloads,
|
|
84
89
|
manageFarmLinkHeaderPreloads,
|
|
85
90
|
reportFarmPreloadWarnings
|
|
86
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-LDNSSHEG.mjs";
|
|
87
92
|
import "../chunk-2WZTGPK6.mjs";
|
|
88
93
|
import {
|
|
89
94
|
collectFarmLlmsTxtPages,
|
|
@@ -92,7 +97,7 @@ import {
|
|
|
92
97
|
createFarmLlmsMarkdownReader,
|
|
93
98
|
renderFarmLlmsFullTxt,
|
|
94
99
|
resolveFarmLlmsTxtConfig
|
|
95
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-YAJTD3ZG.mjs";
|
|
96
101
|
import {
|
|
97
102
|
applyFarmCspNonceToResponse,
|
|
98
103
|
createFarmCspNonce,
|
|
@@ -101,7 +106,7 @@ import {
|
|
|
101
106
|
} from "../chunk-22W4FNTG.mjs";
|
|
102
107
|
import "../chunk-FSQMN2MQ.mjs";
|
|
103
108
|
import "../chunk-YWPNIYUP.mjs";
|
|
104
|
-
import "../chunk-
|
|
109
|
+
import "../chunk-LPDKG6RA.mjs";
|
|
105
110
|
import {
|
|
106
111
|
_registerFarmStorageModules,
|
|
107
112
|
disposeStorage,
|
|
@@ -168,7 +173,7 @@ import {
|
|
|
168
173
|
} from "../chunk-GFT5AHAT.mjs";
|
|
169
174
|
import "../chunk-D2LCAV6L.mjs";
|
|
170
175
|
import "../chunk-LM2YOGDK.mjs";
|
|
171
|
-
import "../chunk-
|
|
176
|
+
import "../chunk-R4PHCZ3G.mjs";
|
|
172
177
|
import {
|
|
173
178
|
resolveFarmTrailingSlashRedirect,
|
|
174
179
|
setFarmTrailingSlashPreference
|
|
@@ -516,6 +521,77 @@ function renderFarmLegacyErrorHtml() {
|
|
|
516
521
|
return FARM_LEGACY_ERROR_HTML;
|
|
517
522
|
}
|
|
518
523
|
|
|
524
|
+
// src/mobile/shell-response.ts
|
|
525
|
+
var FARM_SHELL_HEADER = "X-Farm-Shell";
|
|
526
|
+
function isFarmMobileShellRequest(request) {
|
|
527
|
+
const value = request.headers.get(FARM_SHELL_HEADER);
|
|
528
|
+
return value !== null && /^[a-z][a-z0-9-]{0,31}$/.test(value);
|
|
529
|
+
}
|
|
530
|
+
function isHtml(response) {
|
|
531
|
+
return response.headers.get("content-type")?.toLowerCase().includes("text/html") === true;
|
|
532
|
+
}
|
|
533
|
+
function appendVary(headers, name) {
|
|
534
|
+
const current = headers.get("Vary");
|
|
535
|
+
if (!current) {
|
|
536
|
+
headers.set("Vary", name);
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
const names = current.split(",").map((value) => value.trim().toLowerCase());
|
|
540
|
+
if (names.includes("*") || names.includes(name.toLowerCase())) return;
|
|
541
|
+
headers.set("Vary", `${current}, ${name}`);
|
|
542
|
+
}
|
|
543
|
+
function escapeRegExp(value) {
|
|
544
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
545
|
+
}
|
|
546
|
+
var MAX_HELD_TAG = 4096;
|
|
547
|
+
function createFarmMobileShellRewriter(client) {
|
|
548
|
+
const entry = new RegExp(`(["'])${escapeRegExp(client.webEntry)}\\1`, "g");
|
|
549
|
+
const webOnly = new Set(client.webOnly);
|
|
550
|
+
const preload = /<link rel="modulepreload" href="\/([^"]+)"[^>]*>/g;
|
|
551
|
+
let held = "";
|
|
552
|
+
return (text, final = false) => {
|
|
553
|
+
let input = held + text;
|
|
554
|
+
held = "";
|
|
555
|
+
if (!final) {
|
|
556
|
+
const open = input.lastIndexOf("<");
|
|
557
|
+
if (open !== -1 && input.indexOf(">", open) === -1 && input.length - open <= MAX_HELD_TAG) {
|
|
558
|
+
held = input.slice(open);
|
|
559
|
+
input = input.slice(0, open);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return input.replace(entry, (_match, quote) => `${quote}${client.entry}${quote}`).replace(preload, (tag, file) => webOnly.has(file) ? "" : tag);
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
function _applyFarmMobileShellClient(request, response, client, onPrivate) {
|
|
566
|
+
if (!client || !isHtml(response)) return response;
|
|
567
|
+
if (!isFarmMobileShellRequest(request) || !response.body) {
|
|
568
|
+
return _withFarmResponseHeaders(response, (headers2) => appendVary(headers2, FARM_SHELL_HEADER));
|
|
569
|
+
}
|
|
570
|
+
onPrivate?.();
|
|
571
|
+
const headers = new Headers(_withFarmGuardedResponseCache(response).headers);
|
|
572
|
+
appendVary(headers, FARM_SHELL_HEADER);
|
|
573
|
+
headers.delete("content-length");
|
|
574
|
+
headers.delete("etag");
|
|
575
|
+
const rewrite = createFarmMobileShellRewriter(client);
|
|
576
|
+
const decoder = new TextDecoder();
|
|
577
|
+
const encoder = new TextEncoder();
|
|
578
|
+
const body = response.body.pipeThrough(
|
|
579
|
+
new TransformStream({
|
|
580
|
+
transform(chunk, controller) {
|
|
581
|
+
const output = rewrite(decoder.decode(chunk, { stream: true }));
|
|
582
|
+
if (output) controller.enqueue(encoder.encode(output));
|
|
583
|
+
},
|
|
584
|
+
flush(controller) {
|
|
585
|
+
const output = rewrite(decoder.decode(), true);
|
|
586
|
+
if (output) controller.enqueue(encoder.encode(output));
|
|
587
|
+
}
|
|
588
|
+
})
|
|
589
|
+
);
|
|
590
|
+
return _markFarmOwnedResponse(
|
|
591
|
+
new Response(body, { status: response.status, statusText: response.statusText, headers })
|
|
592
|
+
);
|
|
593
|
+
}
|
|
594
|
+
|
|
519
595
|
// src/nitro/production-runtime.ts
|
|
520
596
|
function appendFarmLinkHeader(headers, value) {
|
|
521
597
|
const current = headers.get("Link");
|
|
@@ -528,6 +604,7 @@ function appendFarmLinkHeader(headers, value) {
|
|
|
528
604
|
}
|
|
529
605
|
}
|
|
530
606
|
export {
|
|
607
|
+
_applyFarmMobileShellClient,
|
|
531
608
|
_farmPluginsKeepResponsesPrivate,
|
|
532
609
|
_getRequestReadCount,
|
|
533
610
|
_isFarmOwnedResponse,
|
|
@@ -578,6 +655,7 @@ export {
|
|
|
578
655
|
createFarmLocaleCookie,
|
|
579
656
|
createFarmMetadataRouteResponse,
|
|
580
657
|
createFarmMobileSessionPlugin,
|
|
658
|
+
createFarmNativeTreeResponse,
|
|
581
659
|
createFarmNodeRequestAbortSignal,
|
|
582
660
|
createFarmProductionLifecycle,
|
|
583
661
|
createFarmRequestBodyErrorResponse,
|
package/dist/markdown.cjs
CHANGED
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
var _chunkD7UQC4O6cjs = require('./chunk-D7UQC4O6.cjs');
|
|
21
22
|
require('./chunk-6ONBZGVH.cjs');
|
|
22
23
|
require('./chunk-EVIWKPJV.cjs');
|
|
23
24
|
require('./chunk-B5BBTPJQ.cjs');
|
|
@@ -46,4 +47,5 @@ require('./chunk-BTZ5O6VM.cjs');
|
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
|
|
51
|
+
exports.FARM_MARKDOWN_CONTENT_TYPE = _chunkD7UQC4O6cjs.FARM_MARKDOWN_CONTENT_TYPE; exports.FARM_MARKDOWN_PAGE_CHECK_HEADER = _chunkD7UQC4O6cjs.FARM_MARKDOWN_PAGE_CHECK_HEADER; exports._getFarmMarkdownPageCheckToken = _chunkD7UQC4O6cjs._getFarmMarkdownPageCheckToken; exports._isFarmMarkdownPageCheck = _chunkD7UQC4O6cjs._isFarmMarkdownPageCheck; exports._readFarmRenderedHtml = _chunkD7UQC4O6cjs._readFarmRenderedHtml; exports.applyMarkdownNegotiationHeaders = _chunkD7UQC4O6cjs.applyMarkdownNegotiationHeaders; exports.createFarmMarkdownErrorBody = _chunkD7UQC4O6cjs.createFarmMarkdownErrorBody; exports.createMarkdownMirrorResponse = _chunkD7UQC4O6cjs.createMarkdownMirrorResponse; exports.extractFarmPageActions = _chunkD7UQC4O6cjs.extractFarmPageActions; exports.farmAcceptQuality = _chunkD7UQC4O6cjs.farmAcceptQuality; exports.farmRequestWantsMarkdown = _chunkD7UQC4O6cjs.farmRequestWantsMarkdown; exports.getFarmMarkdownAlternatePath = _chunkD7UQC4O6cjs.getFarmMarkdownAlternatePath; exports.getFarmMarkdownMirrorPath = _chunkD7UQC4O6cjs.getFarmMarkdownMirrorPath; exports.htmlToMarkdown = _chunkD7UQC4O6cjs.htmlToMarkdown; exports.isFarmMarkdownMirrorExposed = _chunkD7UQC4O6cjs.isFarmMarkdownMirrorExposed; exports.matchesFarmMarkdownRoutePattern = _chunkD7UQC4O6cjs.matchesFarmMarkdownRoutePattern; exports.requestAcceptsMarkdown = _chunkD7UQC4O6cjs.requestAcceptsMarkdown; exports.resolveMarkdownConfig = _chunkD7UQC4O6cjs.resolveMarkdownConfig; exports.resolveMarkdownMirrorTarget = _chunkD7UQC4O6cjs.resolveMarkdownMirrorTarget;
|
package/dist/markdown.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bU as ApplyMarkdownNegotiationHeadersOptions, bY as CreateMarkdownMirrorResponseOptions, j as FARM_MARKDOWN_CONTENT_TYPE, c5 as FARM_MARKDOWN_PAGE_CHECK_HEADER, dP as FarmMarkdownMirrorTarget, br as FarmMarkdownResolvedConfig, dQ as FarmMarkdownResolvedRoute, dR as FarmMarkdownRouteInput, dS as FarmMarkdownUserConfig, dT as FarmPageFormAction, dU as FarmPageFormField, dV as FarmPageFormOption, dW as FarmPageFormSubmit, eI as ResolveMarkdownMirrorTargetOptions, eP as _getFarmMarkdownPageCheckToken, eQ as _isFarmMarkdownPageCheck, eR as applyMarkdownNegotiationHeaders, k as createFarmMarkdownErrorBody,
|
|
1
|
+
export { bU as ApplyMarkdownNegotiationHeadersOptions, bY as CreateMarkdownMirrorResponseOptions, j as FARM_MARKDOWN_CONTENT_TYPE, c5 as FARM_MARKDOWN_PAGE_CHECK_HEADER, dP as FarmMarkdownMirrorTarget, br as FarmMarkdownResolvedConfig, dQ as FarmMarkdownResolvedRoute, dR as FarmMarkdownRouteInput, dS as FarmMarkdownUserConfig, dT as FarmPageFormAction, dU as FarmPageFormField, dV as FarmPageFormOption, dW as FarmPageFormSubmit, eI as ResolveMarkdownMirrorTargetOptions, eP as _getFarmMarkdownPageCheckToken, eQ as _isFarmMarkdownPageCheck, eR as _readFarmRenderedHtml, eS as applyMarkdownNegotiationHeaders, k as createFarmMarkdownErrorBody, eX as createMarkdownMirrorResponse, f3 as extractFarmPageActions, f4 as farmAcceptQuality, l as farmRequestWantsMarkdown, fe as getFarmMarkdownAlternatePath, ff as getFarmMarkdownMirrorPath, fs as htmlToMarkdown, fx as isFarmMarkdownMirrorExposed, fB as matchesFarmMarkdownRoutePattern, fK as requestAcceptsMarkdown, fU as resolveMarkdownConfig, fV as resolveMarkdownMirrorTarget } from './client-plugins.d-DllmH8eM.mjs';
|
|
2
2
|
import './lifecycle.d-C2aLBOwu.mjs';
|
|
3
3
|
import './route.d-BaVH3V0w.mjs';
|
|
4
4
|
import './endpoint.d-BkMSCRf6.mjs';
|
|
@@ -28,6 +28,6 @@ import 'rolldown/utils';
|
|
|
28
28
|
import 'rolldown';
|
|
29
29
|
import './image-config.d-CeDgNyX4.mjs';
|
|
30
30
|
import './types.d-C41ePjvP.mjs';
|
|
31
|
-
import './config.d-
|
|
31
|
+
import './config.d-DqKaCr1r.mjs';
|
|
32
32
|
import './types.d-DQnyD3VD.mjs';
|
|
33
33
|
import './font.mjs';
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bU as ApplyMarkdownNegotiationHeadersOptions, bY as CreateMarkdownMirrorResponseOptions, j as FARM_MARKDOWN_CONTENT_TYPE, c5 as FARM_MARKDOWN_PAGE_CHECK_HEADER, dP as FarmMarkdownMirrorTarget, br as FarmMarkdownResolvedConfig, dQ as FarmMarkdownResolvedRoute, dR as FarmMarkdownRouteInput, dS as FarmMarkdownUserConfig, dT as FarmPageFormAction, dU as FarmPageFormField, dV as FarmPageFormOption, dW as FarmPageFormSubmit, eI as ResolveMarkdownMirrorTargetOptions, eP as _getFarmMarkdownPageCheckToken, eQ as _isFarmMarkdownPageCheck, eR as applyMarkdownNegotiationHeaders, k as createFarmMarkdownErrorBody,
|
|
1
|
+
export { bU as ApplyMarkdownNegotiationHeadersOptions, bY as CreateMarkdownMirrorResponseOptions, j as FARM_MARKDOWN_CONTENT_TYPE, c5 as FARM_MARKDOWN_PAGE_CHECK_HEADER, dP as FarmMarkdownMirrorTarget, br as FarmMarkdownResolvedConfig, dQ as FarmMarkdownResolvedRoute, dR as FarmMarkdownRouteInput, dS as FarmMarkdownUserConfig, dT as FarmPageFormAction, dU as FarmPageFormField, dV as FarmPageFormOption, dW as FarmPageFormSubmit, eI as ResolveMarkdownMirrorTargetOptions, eP as _getFarmMarkdownPageCheckToken, eQ as _isFarmMarkdownPageCheck, eR as _readFarmRenderedHtml, eS as applyMarkdownNegotiationHeaders, k as createFarmMarkdownErrorBody, eX as createMarkdownMirrorResponse, f3 as extractFarmPageActions, f4 as farmAcceptQuality, l as farmRequestWantsMarkdown, fe as getFarmMarkdownAlternatePath, ff as getFarmMarkdownMirrorPath, fs as htmlToMarkdown, fx as isFarmMarkdownMirrorExposed, fB as matchesFarmMarkdownRoutePattern, fK as requestAcceptsMarkdown, fU as resolveMarkdownConfig, fV as resolveMarkdownMirrorTarget } from './client-plugins.d-n3iWY1EJ.js';
|
|
2
2
|
import './lifecycle.d-C2aLBOwu.js';
|
|
3
3
|
import './route.d-DBTEqifW.js';
|
|
4
4
|
import './endpoint.d-BgHn0lhl.js';
|
|
@@ -28,6 +28,6 @@ import 'rolldown/utils';
|
|
|
28
28
|
import 'rolldown';
|
|
29
29
|
import './image-config.d-CeDgNyX4.js';
|
|
30
30
|
import './types.d-C41ePjvP.js';
|
|
31
|
-
import './config.d-
|
|
31
|
+
import './config.d-DqKaCr1r.js';
|
|
32
32
|
import './types.d-DQnyD3VD.js';
|
|
33
33
|
import './font.js';
|
package/dist/markdown.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
FARM_MARKDOWN_PAGE_CHECK_HEADER,
|
|
4
4
|
_getFarmMarkdownPageCheckToken,
|
|
5
5
|
_isFarmMarkdownPageCheck,
|
|
6
|
+
_readFarmRenderedHtml,
|
|
6
7
|
applyMarkdownNegotiationHeaders,
|
|
7
8
|
createFarmMarkdownErrorBody,
|
|
8
9
|
createMarkdownMirrorResponse,
|
|
@@ -17,7 +18,7 @@ import {
|
|
|
17
18
|
requestAcceptsMarkdown,
|
|
18
19
|
resolveMarkdownConfig,
|
|
19
20
|
resolveMarkdownMirrorTarget
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LPDKG6RA.mjs";
|
|
21
22
|
import "./chunk-KJMWAUKE.mjs";
|
|
22
23
|
import "./chunk-2DA7CLY7.mjs";
|
|
23
24
|
import "./chunk-LM2YOGDK.mjs";
|
|
@@ -32,6 +33,7 @@ export {
|
|
|
32
33
|
FARM_MARKDOWN_PAGE_CHECK_HEADER,
|
|
33
34
|
_getFarmMarkdownPageCheckToken,
|
|
34
35
|
_isFarmMarkdownPageCheck,
|
|
36
|
+
_readFarmRenderedHtml,
|
|
35
37
|
applyMarkdownNegotiationHeaders,
|
|
36
38
|
createFarmMarkdownErrorBody,
|
|
37
39
|
createMarkdownMirrorResponse,
|
package/dist/middleware.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { eE as RateLimitStorage, eD as RateLimitStatus, es as MemoryRateLimitStorageOptions, ev as MiddlewareChain, bm as MiddlewareContext, bj as FarmMiddlewareConfig, ex as MiddlewareFunction, bl as MiddlewareConfig, b0 as MiddlewareProps, bW as CookieOptions } from './client-plugins.d-
|
|
2
|
-
export { bV as CookieJar, ey as MiddlewareResult, ez as MiddlewareStore, eA as NextFunction, eB as RateLimitConfig, eC as RateLimitIncrementResult, bi as ReadonlyMiddlewareStore, eG as RequestMiddleware, eH as RequestMiddlewareContext } from './client-plugins.d-
|
|
1
|
+
import { eE as RateLimitStorage, eD as RateLimitStatus, es as MemoryRateLimitStorageOptions, ev as MiddlewareChain, bm as MiddlewareContext, bj as FarmMiddlewareConfig, ex as MiddlewareFunction, bl as MiddlewareConfig, b0 as MiddlewareProps, bW as CookieOptions } from './client-plugins.d-DllmH8eM.mjs';
|
|
2
|
+
export { bV as CookieJar, ey as MiddlewareResult, ez as MiddlewareStore, eA as NextFunction, eB as RateLimitConfig, eC as RateLimitIncrementResult, bi as ReadonlyMiddlewareStore, eG as RequestMiddleware, eH as RequestMiddlewareContext } from './client-plugins.d-DllmH8eM.mjs';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { f as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows.d-CRMzQZ3k.mjs';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types.d-C41ePjvP.mjs';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, a as _runWithMiddlewareData, b as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime.d-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, a as _runWithMiddlewareData, b as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime.d-CDHztggO.mjs';
|
|
8
8
|
import './lifecycle.d-C2aLBOwu.mjs';
|
|
9
9
|
import './route.d-BaVH3V0w.mjs';
|
|
10
10
|
import './endpoint.d-BkMSCRf6.mjs';
|
|
@@ -30,7 +30,7 @@ import './layers.d-CcS42OGR.mjs';
|
|
|
30
30
|
import 'rolldown/utils';
|
|
31
31
|
import 'rolldown';
|
|
32
32
|
import './image-config.d-CeDgNyX4.mjs';
|
|
33
|
-
import './config.d-
|
|
33
|
+
import './config.d-DqKaCr1r.mjs';
|
|
34
34
|
import './types.d-DQnyD3VD.mjs';
|
|
35
35
|
import './font.mjs';
|
|
36
36
|
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { eE as RateLimitStorage, eD as RateLimitStatus, es as MemoryRateLimitStorageOptions, ev as MiddlewareChain, bm as MiddlewareContext, bj as FarmMiddlewareConfig, ex as MiddlewareFunction, bl as MiddlewareConfig, b0 as MiddlewareProps, bW as CookieOptions } from './client-plugins.d-
|
|
2
|
-
export { bV as CookieJar, ey as MiddlewareResult, ez as MiddlewareStore, eA as NextFunction, eB as RateLimitConfig, eC as RateLimitIncrementResult, bi as ReadonlyMiddlewareStore, eG as RequestMiddleware, eH as RequestMiddlewareContext } from './client-plugins.d-
|
|
1
|
+
import { eE as RateLimitStorage, eD as RateLimitStatus, es as MemoryRateLimitStorageOptions, ev as MiddlewareChain, bm as MiddlewareContext, bj as FarmMiddlewareConfig, ex as MiddlewareFunction, bl as MiddlewareConfig, b0 as MiddlewareProps, bW as CookieOptions } from './client-plugins.d-n3iWY1EJ.js';
|
|
2
|
+
export { bV as CookieJar, ey as MiddlewareResult, ez as MiddlewareStore, eA as NextFunction, eB as RateLimitConfig, eC as RateLimitIncrementResult, bi as ReadonlyMiddlewareStore, eG as RequestMiddleware, eH as RequestMiddlewareContext } from './client-plugins.d-n3iWY1EJ.js';
|
|
3
3
|
import { IncomingMessage, ServerResponse } from 'http';
|
|
4
4
|
import { ViteDevServer, Plugin } from 'vite';
|
|
5
5
|
import { f as FarmServerConfig, R as ResolvedFarmServerConfig } from './workflows.d-CRMzQZ3k.js';
|
|
6
6
|
import { R as ResolvedFarmI18nConfig } from './types.d-C41ePjvP.js';
|
|
7
|
-
export { _ as _runWithMiddlewareContext, a as _runWithMiddlewareData, b as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime.d-
|
|
7
|
+
export { _ as _runWithMiddlewareContext, a as _runWithMiddlewareData, b as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue, m as matchesMiddlewareConfig } from './production-runtime.d-tyaGdbk6.js';
|
|
8
8
|
import './lifecycle.d-C2aLBOwu.js';
|
|
9
9
|
import './route.d-DBTEqifW.js';
|
|
10
10
|
import './endpoint.d-BgHn0lhl.js';
|
|
@@ -30,7 +30,7 @@ import './layers.d-CcS42OGR.js';
|
|
|
30
30
|
import 'rolldown/utils';
|
|
31
31
|
import 'rolldown';
|
|
32
32
|
import './image-config.d-CeDgNyX4.js';
|
|
33
|
-
import './config.d-
|
|
33
|
+
import './config.d-DqKaCr1r.js';
|
|
34
34
|
import './types.d-DQnyD3VD.js';
|
|
35
35
|
import './font.js';
|
|
36
36
|
|
package/dist/mobile.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FarmMobileOS, R as ResolvedFarmMobileConfig } from './config.d-
|
|
2
|
-
export { a as FarmMobileBudgets, b as FarmMobileConfigInput, c as FarmMobileContext, d as FarmMobileNativeAuto, e as FarmMobileNativeConfig, f as FarmMobileNativeEngine, g as FarmMobileNativeRouteConfig, h as FarmMobilePageConfig, i as FarmMobilePrefetch, j as FarmMobilePresentation, k as FarmMobileRouteConfig, l as
|
|
3
|
-
import { F as FarmMobileRouteManifest } from './routes.d-
|
|
4
|
-
export { a as FarmMobileRouteRule } from './routes.d-
|
|
1
|
+
import { F as FarmMobileOS, R as ResolvedFarmMobileConfig } from './config.d-DqKaCr1r.mjs';
|
|
2
|
+
export { a as FarmMobileBudgets, b as FarmMobileConfigInput, c as FarmMobileContext, d as FarmMobileNativeAuto, e as FarmMobileNativeConfig, f as FarmMobileNativeEngine, g as FarmMobileNativeRouteConfig, h as FarmMobilePageConfig, i as FarmMobilePrefetch, j as FarmMobilePresentation, k as FarmMobileRouteConfig, l as FarmMobileRouteScreen, m as FarmMobileScreen, n as FarmMobileTab, o as FarmMobileUserConfig } from './config.d-DqKaCr1r.mjs';
|
|
3
|
+
import { F as FarmMobileRouteManifest } from './routes.d-BgTd7vI4.mjs';
|
|
4
|
+
export { a as FarmMobileRouteRule } from './routes.d-BgTd7vI4.mjs';
|
|
5
5
|
import './types.d-C41ePjvP.mjs';
|
|
6
6
|
import './generate-route-types.d-BoVDU8qX.mjs';
|
|
7
7
|
import './layers.d-CcS42OGR.mjs';
|
|
@@ -43,6 +43,20 @@ interface MobileNativeScreens {
|
|
|
43
43
|
mainModule: string;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* The mobile client's content-hashed files, which a shell answers from the app instead of the
|
|
48
|
+
* network (RFC 0004, 7.2). Documents still come from `mobile.server`, which decides which client
|
|
49
|
+
* they load; a newer deployment references names the app does not have, and those load from
|
|
50
|
+
* the network.
|
|
51
|
+
*/
|
|
52
|
+
interface MobileBundledAssets {
|
|
53
|
+
/** The build's client output; each file is read from here. */
|
|
54
|
+
dir: string;
|
|
55
|
+
/** URL paths at the server origin, such as `/farm-mobile-client-h1a2b3c4d.js`, sorted. */
|
|
56
|
+
files: string[];
|
|
57
|
+
/** The mobile client entry among them. */
|
|
58
|
+
entry: string;
|
|
59
|
+
}
|
|
46
60
|
interface MobileShellContext {
|
|
47
61
|
/** App root. */
|
|
48
62
|
root: string;
|
|
@@ -58,6 +72,8 @@ interface MobileShellContext {
|
|
|
58
72
|
projectDir: string;
|
|
59
73
|
/** React Native screens, when at least one route resolves to one on this OS. */
|
|
60
74
|
native?: MobileNativeScreens;
|
|
75
|
+
/** `farm build --mobile`: the mobile client's files to bundle. Absent in dev. */
|
|
76
|
+
assets?: MobileBundledAssets;
|
|
61
77
|
}
|
|
62
78
|
interface MobilePackageContext extends MobileShellContext {
|
|
63
79
|
/** Directory for built apps (`.farm/output/mobile/dist`). */
|
|
@@ -91,4 +107,4 @@ interface MobileShell {
|
|
|
91
107
|
/** Typed helper for mobile shell packages. */
|
|
92
108
|
declare function defineMobileShell(shell: MobileShell): MobileShell;
|
|
93
109
|
|
|
94
|
-
export { FarmMobileOS, FarmMobileRouteManifest, type MobileGeneratedFile, type MobileNativeScreens, type MobilePackageContext, type MobileRunResult, type MobileShell, type MobileShellContext, ResolvedFarmMobileConfig, defineMobileShell };
|
|
110
|
+
export { FarmMobileOS, FarmMobileRouteManifest, type MobileBundledAssets, type MobileGeneratedFile, type MobileNativeScreens, type MobilePackageContext, type MobileRunResult, type MobileShell, type MobileShellContext, ResolvedFarmMobileConfig, defineMobileShell };
|
package/dist/mobile.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FarmMobileOS, R as ResolvedFarmMobileConfig } from './config.d-
|
|
2
|
-
export { a as FarmMobileBudgets, b as FarmMobileConfigInput, c as FarmMobileContext, d as FarmMobileNativeAuto, e as FarmMobileNativeConfig, f as FarmMobileNativeEngine, g as FarmMobileNativeRouteConfig, h as FarmMobilePageConfig, i as FarmMobilePrefetch, j as FarmMobilePresentation, k as FarmMobileRouteConfig, l as
|
|
3
|
-
import { F as FarmMobileRouteManifest } from './routes.d-
|
|
4
|
-
export { a as FarmMobileRouteRule } from './routes.d-
|
|
1
|
+
import { F as FarmMobileOS, R as ResolvedFarmMobileConfig } from './config.d-DqKaCr1r.js';
|
|
2
|
+
export { a as FarmMobileBudgets, b as FarmMobileConfigInput, c as FarmMobileContext, d as FarmMobileNativeAuto, e as FarmMobileNativeConfig, f as FarmMobileNativeEngine, g as FarmMobileNativeRouteConfig, h as FarmMobilePageConfig, i as FarmMobilePrefetch, j as FarmMobilePresentation, k as FarmMobileRouteConfig, l as FarmMobileRouteScreen, m as FarmMobileScreen, n as FarmMobileTab, o as FarmMobileUserConfig } from './config.d-DqKaCr1r.js';
|
|
3
|
+
import { F as FarmMobileRouteManifest } from './routes.d-C7jMJFvP.js';
|
|
4
|
+
export { a as FarmMobileRouteRule } from './routes.d-C7jMJFvP.js';
|
|
5
5
|
import './types.d-C41ePjvP.js';
|
|
6
6
|
import './generate-route-types.d-BL2pq6xC.js';
|
|
7
7
|
import './layers.d-CcS42OGR.js';
|
|
@@ -43,6 +43,20 @@ interface MobileNativeScreens {
|
|
|
43
43
|
mainModule: string;
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* The mobile client's content-hashed files, which a shell answers from the app instead of the
|
|
48
|
+
* network (RFC 0004, 7.2). Documents still come from `mobile.server`, which decides which client
|
|
49
|
+
* they load; a newer deployment references names the app does not have, and those load from
|
|
50
|
+
* the network.
|
|
51
|
+
*/
|
|
52
|
+
interface MobileBundledAssets {
|
|
53
|
+
/** The build's client output; each file is read from here. */
|
|
54
|
+
dir: string;
|
|
55
|
+
/** URL paths at the server origin, such as `/farm-mobile-client-h1a2b3c4d.js`, sorted. */
|
|
56
|
+
files: string[];
|
|
57
|
+
/** The mobile client entry among them. */
|
|
58
|
+
entry: string;
|
|
59
|
+
}
|
|
46
60
|
interface MobileShellContext {
|
|
47
61
|
/** App root. */
|
|
48
62
|
root: string;
|
|
@@ -58,6 +72,8 @@ interface MobileShellContext {
|
|
|
58
72
|
projectDir: string;
|
|
59
73
|
/** React Native screens, when at least one route resolves to one on this OS. */
|
|
60
74
|
native?: MobileNativeScreens;
|
|
75
|
+
/** `farm build --mobile`: the mobile client's files to bundle. Absent in dev. */
|
|
76
|
+
assets?: MobileBundledAssets;
|
|
61
77
|
}
|
|
62
78
|
interface MobilePackageContext extends MobileShellContext {
|
|
63
79
|
/** Directory for built apps (`.farm/output/mobile/dist`). */
|
|
@@ -91,4 +107,4 @@ interface MobileShell {
|
|
|
91
107
|
/** Typed helper for mobile shell packages. */
|
|
92
108
|
declare function defineMobileShell(shell: MobileShell): MobileShell;
|
|
93
109
|
|
|
94
|
-
export { FarmMobileOS, FarmMobileRouteManifest, type MobileGeneratedFile, type MobileNativeScreens, type MobilePackageContext, type MobileRunResult, type MobileShell, type MobileShellContext, ResolvedFarmMobileConfig, defineMobileShell };
|
|
110
|
+
export { FarmMobileOS, FarmMobileRouteManifest, type MobileBundledAssets, type MobileGeneratedFile, type MobileNativeScreens, type MobilePackageContext, type MobileRunResult, type MobileShell, type MobileShellContext, ResolvedFarmMobileConfig, defineMobileShell };
|