@farm.js/core 0.1.0-beta.21 → 0.1.0-beta.23
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/after.d.mts +25 -0
- package/dist/after.d.ts +25 -0
- package/dist/agent-runtime.d.mts +97 -0
- package/dist/agent-runtime.d.ts +97 -0
- package/dist/api/route-manager.d.mts +68 -0
- package/dist/api/route-manager.d.ts +68 -0
- package/dist/api/runtime.d.mts +3 -0
- package/dist/api/runtime.d.ts +3 -0
- package/dist/api.cjs +22 -19
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.mts +50 -0
- package/dist/api.d.ts +50 -0
- package/dist/api.mjs +2 -1
- package/dist/app-CTFnOJaI.d.ts +308 -0
- package/dist/app-DA6ospIq.d.mts +308 -0
- package/dist/app-markdown.d.mts +25 -0
- package/dist/app-markdown.d.ts +25 -0
- package/dist/cache.d.mts +192 -0
- package/dist/cache.d.ts +192 -0
- package/dist/{chunk-MIUW47JX.mjs → chunk-2PEJGY5V.mjs} +15 -20
- package/dist/chunk-2PEJGY5V.mjs.map +1 -0
- package/dist/{chunk-RIXKJPGI.mjs → chunk-42325TLU.mjs} +2 -2
- package/dist/chunk-4IVNW5QD.mjs +82 -0
- package/dist/chunk-4IVNW5QD.mjs.map +1 -0
- package/dist/{chunk-I3UWA2P2.mjs → chunk-5NOVWCFL.mjs} +2 -2
- package/dist/chunk-5NOVWCFL.mjs.map +1 -0
- package/dist/chunk-D42BNPZH.mjs +79 -0
- package/dist/chunk-D42BNPZH.mjs.map +1 -0
- package/dist/{chunk-LLPN5SEZ.mjs → chunk-DVPRBMU2.mjs} +2 -2
- package/dist/{chunk-VIC7NJ77.mjs → chunk-FJGTYLCO.mjs} +67 -20
- package/dist/chunk-FJGTYLCO.mjs.map +1 -0
- package/dist/chunk-GIELMNBG.mjs +15 -0
- package/dist/chunk-GIELMNBG.mjs.map +1 -0
- package/dist/chunk-GQVQESLY.mjs +25 -0
- package/dist/chunk-GQVQESLY.mjs.map +1 -0
- package/dist/chunk-H53KVQUU.mjs +48 -0
- package/dist/chunk-H53KVQUU.mjs.map +1 -0
- package/dist/chunk-HCGQYYHI.mjs +1 -0
- package/dist/chunk-HCGQYYHI.mjs.map +1 -0
- package/dist/{chunk-4EATUJFO.mjs → chunk-ICTGDDV4.mjs} +20 -22
- package/dist/chunk-ICTGDDV4.mjs.map +1 -0
- package/dist/{chunk-UCYWGN2P.mjs → chunk-OHNSROHS.mjs} +1 -1
- package/dist/{chunk-FRPWCMMG.mjs → chunk-SBWOTAX4.mjs} +63 -2
- package/dist/chunk-SBWOTAX4.mjs.map +1 -0
- package/dist/{chunk-FKKM7HVF.mjs → chunk-TX54PXAJ.mjs} +109 -58
- package/dist/chunk-TX54PXAJ.mjs.map +1 -0
- package/dist/{chunk-CEVMYGDL.mjs → chunk-YD5IRKVS.mjs} +13 -9
- package/dist/chunk-YD5IRKVS.mjs.map +1 -0
- package/dist/chunk-recovery-lnQFzcQP.d.mts +26 -0
- package/dist/chunk-recovery-lnQFzcQP.d.ts +26 -0
- package/dist/client-BT1mFQas.d.mts +447 -0
- package/dist/client-Nn0q4eO4.d.ts +447 -0
- package/dist/client-cache-CIlyBlmx.d.ts +6 -0
- package/dist/client-cache-D-EZ7XVW.d.mts +6 -0
- package/dist/client-plugins-CCilIb_G.d.mts +2092 -0
- package/dist/client-plugins-DuuleQKk.d.ts +2092 -0
- package/dist/client-plugins.d.mts +25 -0
- package/dist/client-plugins.d.ts +25 -0
- package/dist/client.cjs +122 -35
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.mts +454 -0
- package/dist/client.d.ts +454 -0
- package/dist/client.mjs +13 -2
- package/dist/config.d.mts +32 -0
- package/dist/config.d.ts +32 -0
- package/dist/cron.d.mts +78 -0
- package/dist/cron.d.ts +78 -0
- package/dist/deferred.d.mts +42 -0
- package/dist/deferred.d.ts +42 -0
- package/dist/deployment.d.mts +36 -0
- package/dist/deployment.d.ts +36 -0
- package/dist/{devtools-52FYXIEK.mjs → devtools-326RBQCN.mjs} +7 -6
- package/dist/{devtools-52FYXIEK.mjs.map → devtools-326RBQCN.mjs.map} +1 -1
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.d.mts +80 -0
- package/dist/docs.d.ts +80 -0
- package/dist/docs.mjs +6 -5
- package/dist/env-types.d.mts +12 -0
- package/dist/env-types.d.ts +12 -0
- package/dist/env.d.mts +45 -0
- package/dist/env.d.ts +45 -0
- package/dist/environment/vite.d.mts +22 -0
- package/dist/environment/vite.d.ts +22 -0
- package/dist/environment.d.mts +18 -0
- package/dist/environment.d.ts +18 -0
- package/dist/font.d.mts +95 -0
- package/dist/font.d.ts +95 -0
- package/dist/headers.d.mts +22 -0
- package/dist/headers.d.ts +22 -0
- package/dist/i18n/client.d.mts +32 -0
- package/dist/i18n/client.d.ts +32 -0
- package/dist/i18n/index.d.mts +20 -0
- package/dist/i18n/index.d.ts +20 -0
- package/dist/i18n/server.d.mts +30 -0
- package/dist/i18n/server.d.ts +30 -0
- package/dist/image/server.d.mts +37 -0
- package/dist/image/server.d.ts +37 -0
- package/dist/image/sharp.d.mts +7 -0
- package/dist/image/sharp.d.ts +7 -0
- package/dist/image-config-Duob7wER.d.mts +50 -0
- package/dist/image-config-Duob7wER.d.ts +50 -0
- package/dist/image.d.mts +39 -0
- package/dist/image.d.ts +39 -0
- package/dist/index.cjs +496 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +480 -0
- package/dist/index.d.ts +480 -0
- package/dist/index.mjs +70 -52
- package/dist/index.mjs.map +1 -1
- package/dist/integration-api-CHT2OKAf.d.mts +93 -0
- package/dist/integration-api-CHT2OKAf.d.ts +93 -0
- package/dist/integrations.d.mts +25 -0
- package/dist/integrations.d.ts +25 -0
- package/dist/internal/build-runtime.cjs +386 -83
- package/dist/internal/build-runtime.cjs.map +1 -1
- package/dist/internal/build-runtime.d.mts +42 -0
- package/dist/internal/build-runtime.d.ts +42 -0
- package/dist/internal/build-runtime.mjs +17 -13
- package/dist/internal/client-runtime.d.mts +17 -0
- package/dist/internal/client-runtime.d.ts +17 -0
- package/dist/internal/config-runtime.cjs +41 -0
- package/dist/internal/config-runtime.cjs.map +1 -1
- package/dist/internal/config-runtime.d.mts +42 -0
- package/dist/internal/config-runtime.d.ts +42 -0
- package/dist/internal/config-runtime.mjs +5 -4
- package/dist/internal/metadata-image-runtime.d.mts +25 -0
- package/dist/internal/metadata-image-runtime.d.ts +25 -0
- package/dist/internal/production-node-env.d.mts +12 -0
- package/dist/internal/production-node-env.d.ts +12 -0
- package/dist/internal/production-runtime.cjs +178 -0
- package/dist/internal/production-runtime.cjs.map +1 -1
- package/dist/internal/production-runtime.d.mts +80 -0
- package/dist/internal/production-runtime.d.ts +80 -0
- package/dist/internal/production-runtime.mjs +13 -1
- package/dist/internal/production-runtime.mjs.map +1 -1
- package/dist/island-CfGru1MO.d.mts +9 -0
- package/dist/island-CfGru1MO.d.ts +9 -0
- package/dist/markdown.d.mts +60 -0
- package/dist/markdown.d.ts +60 -0
- package/dist/metadata-DyPRG0wX.d.ts +22 -0
- package/dist/metadata-_GHcAySx.d.mts +22 -0
- package/dist/middleware.cjs +17 -17
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.d.mts +172 -0
- package/dist/middleware.d.ts +172 -0
- package/dist/middleware.mjs +3 -2
- package/dist/navigation-errors-Dvwpzaer.d.mts +13 -0
- package/dist/navigation-errors-Dvwpzaer.d.ts +13 -0
- package/dist/navigation.d.mts +14 -0
- package/dist/navigation.d.ts +14 -0
- package/dist/observability.d.mts +335 -0
- package/dist/observability.d.ts +335 -0
- package/dist/params-BALtrRim.d.ts +15 -0
- package/dist/params-ry-lxqmy.d.mts +15 -0
- package/dist/plugin-BJDf43dc.d.mts +165 -0
- package/dist/plugin-BJDf43dc.d.ts +165 -0
- package/dist/plugin.cjs +261 -62
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.mts +25 -0
- package/dist/plugin.d.ts +25 -0
- package/dist/plugin.mjs +13 -9
- package/dist/production-runtime-C4cO3esK.d.mts +81 -0
- package/dist/production-runtime-DrEy8kBO.d.ts +81 -0
- package/dist/query/client.d.mts +61 -0
- package/dist/query/client.d.ts +61 -0
- package/dist/query/index.d.mts +90 -0
- package/dist/query/index.d.ts +90 -0
- package/dist/query/parsers.d.mts +25 -0
- package/dist/query/parsers.d.ts +25 -0
- package/dist/query/server.d.mts +55 -0
- package/dist/query/server.d.ts +55 -0
- package/dist/request-B2PpOxYK.d.mts +6 -0
- package/dist/request-D40lt6aN.d.ts +6 -0
- package/dist/request.d.mts +26 -0
- package/dist/request.d.ts +26 -0
- package/dist/resolver-DJqjLMg_.d.mts +14 -0
- package/dist/resolver-IH4RmPEl.d.ts +14 -0
- package/dist/route-runtime-DoOHzCAD.d.mts +38 -0
- package/dist/route-runtime-DoOHzCAD.d.ts +38 -0
- package/dist/router.d.mts +36 -0
- package/dist/router.d.ts +36 -0
- package/dist/routes.d.mts +227 -0
- package/dist/routes.d.ts +227 -0
- package/dist/runtime-Bpp-c28k.d.ts +231 -0
- package/dist/runtime-Cxpq6xZN.d.mts +27 -0
- package/dist/runtime-Q3u74Nbq.d.mts +231 -0
- package/dist/runtime-bv63eUiO.d.ts +27 -0
- package/dist/server-action-security.d.mts +45 -0
- package/dist/server-action-security.d.ts +45 -0
- package/dist/server-fn-client.d.mts +33 -0
- package/dist/server-fn-client.d.ts +33 -0
- package/dist/server-fn-error-DDh14a0V.d.mts +26 -0
- package/dist/server-fn-error-DDh14a0V.d.ts +26 -0
- package/dist/server-fn.d.mts +121 -0
- package/dist/server-fn.d.ts +121 -0
- package/dist/server-plugins.d.mts +58 -0
- package/dist/server-plugins.d.ts +58 -0
- package/dist/server-query-client.d.mts +51 -0
- package/dist/server-query-client.d.ts +51 -0
- package/dist/server-query.d.mts +37 -0
- package/dist/server-query.d.ts +37 -0
- package/dist/server.cjs +285 -85
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.mts +53 -0
- package/dist/server.d.ts +53 -0
- package/dist/server.mjs +26 -31
- package/dist/server.mjs.map +1 -1
- package/dist/storage.d.mts +52 -0
- package/dist/storage.d.ts +52 -0
- package/dist/testing.d.mts +104 -0
- package/dist/testing.d.ts +104 -0
- package/dist/theme/client.cjs +115 -0
- package/dist/theme/client.cjs.map +1 -0
- package/dist/theme/client.d.mts +17 -0
- package/dist/theme/client.d.ts +17 -0
- package/dist/theme/client.mjs +16 -0
- package/dist/theme/client.mjs.map +1 -0
- package/dist/theme/index.cjs +71 -0
- package/dist/theme/index.cjs.map +1 -0
- package/dist/theme/index.d.mts +6 -0
- package/dist/theme/index.d.ts +6 -0
- package/dist/theme/index.mjs +9 -0
- package/dist/theme/index.mjs.map +1 -0
- package/dist/theme/server.cjs +191 -0
- package/dist/theme/server.cjs.map +1 -0
- package/dist/theme/server.d.mts +8 -0
- package/dist/theme/server.d.ts +8 -0
- package/dist/theme/server.mjs +18 -0
- package/dist/theme/server.mjs.map +1 -0
- package/dist/transport-BmbGTXA5.d.mts +49 -0
- package/dist/transport-BmbGTXA5.d.ts +49 -0
- package/dist/types-BMxWr97v.d.mts +81 -0
- package/dist/types-BMxWr97v.d.ts +81 -0
- package/dist/types-CsR8fpgF.d.mts +30 -0
- package/dist/types-CsR8fpgF.d.ts +30 -0
- package/dist/types-D1A6-XvH.d.mts +73 -0
- package/dist/types-D1A6-XvH.d.ts +73 -0
- package/dist/types-DTzm4TCl.d.mts +78 -0
- package/dist/types-DTzm4TCl.d.ts +78 -0
- package/dist/utils-3sQgfkya.d.ts +23 -0
- package/dist/utils-Bop7bly-.d.mts +23 -0
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.mts +3 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +285 -64
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.mts +25 -0
- package/dist/vite.d.ts +25 -0
- package/dist/vite.mjs +13 -9
- package/dist/workflows-CusFV6mn.d.mts +153 -0
- package/dist/workflows-CusFV6mn.d.ts +153 -0
- package/dist/workflows.d.mts +1 -0
- package/dist/workflows.d.ts +1 -0
- package/package.json +25 -1
- package/dist/chunk-4EATUJFO.mjs.map +0 -1
- package/dist/chunk-CEVMYGDL.mjs.map +0 -1
- package/dist/chunk-FKKM7HVF.mjs.map +0 -1
- package/dist/chunk-FRPWCMMG.mjs.map +0 -1
- package/dist/chunk-I3UWA2P2.mjs.map +0 -1
- package/dist/chunk-MIUW47JX.mjs.map +0 -1
- package/dist/chunk-VIC7NJ77.mjs.map +0 -1
- /package/dist/{chunk-RIXKJPGI.mjs.map → chunk-42325TLU.mjs.map} +0 -0
- /package/dist/{chunk-LLPN5SEZ.mjs.map → chunk-DVPRBMU2.mjs.map} +0 -0
- /package/dist/{chunk-UCYWGN2P.mjs.map → chunk-OHNSROHS.mjs.map} +0 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
import { F as FarmConfig, ad as OpenAPIConfig, K as ResolvedFarmLayer, O as FarmSourceRoot, s as RouteModule, I as SSGCollectionResult, H as SSGPage } from './client-plugins-DuuleQKk.js';
|
|
2
|
+
export { bb as APIHandlerLifecyclePayload, b7 as APIRouteDiscoveredPayload, A as AppRoutePattern, D as BuildOptions, be as BundleLifecyclePayload, _ as BundleResultPayload, cV as CookieJar, cW as CookieOptions, cK as CreateIntegrationOrmOptions, dr as DEFAULT_FARM_DEVTOOLS_SHORTCUT, cq as DefinedIntegration, r as ErrorBoundary, bc as ErrorLifecyclePayload, E as ErrorProps, dt as FARM_DEVTOOLS_LAUNCH_PARAM, ds as FARM_DEVTOOLS_PATH, bG as FARM_INTEGRATION_INTERNAL_DISPATCH_CONTEXT_KEY, h as FarmAppContext, aA as FarmAuthConfig, aB as FarmAuthDatabaseConfig, aC as FarmAuthEmailAndPasswordConfig, aD as FarmAuthSessionConfig, aE as FarmAuthUserConfig, g as FarmContextFactory, e as FarmContextFactoryInput, au as FarmCspConfig, aw as FarmCspDirectiveValue, av as FarmCspDirectives, ax as FarmCspOptions, bo as FarmDeployConfig, bq as FarmDeployTarget, du as FarmDevtoolsConfig, dv as FarmDevtoolsUserConfig, a0 as FarmIntegration, br as FarmIntegrationCategory, bK as FarmIntegrationConfigContext, bL as FarmIntegrationConfigDefinition, bM as FarmIntegrationConfigInput, cd as FarmIntegrationContributedPlugin, bR as FarmIntegrationData, b$ as FarmIntegrationDocumentNavigation, ck as FarmIntegrationEndpointValue, cl as FarmIntegrationEndpoints, cn as FarmIntegrationEndpointsFactory, cm as FarmIntegrationEndpointsFactoryContext, bS as FarmIntegrationHandlerContext, bD as FarmIntegrationInputSchema, bP as FarmIntegrationLifecycleContext, bQ as FarmIntegrationLifecycleHook, bN as FarmIntegrationLifecycleLogLevel, bO as FarmIntegrationLifecycleLogger, ca as FarmIntegrationLogEvent, c9 as FarmIntegrationLogPhase, cb as FarmIntegrationLogger, bY as FarmIntegrationMiddleware, cF as FarmIntegrationOrmClient, cE as FarmIntegrationOrmSchema, cc as FarmIntegrationPluginOwner, b_ as FarmIntegrationProvider, bZ as FarmIntegrationProviderProps, bF as FarmIntegrationRequestContextStore, bV as FarmIntegrationRoute, bJ as FarmIntegrationRouteArgs, bH as FarmIntegrationRouteDb, ch as FarmIntegrationRouteFactory, bU as FarmIntegrationRouteHook, bT as FarmIntegrationRouteHookContext, by as FarmIntegrationRouteInput, bE as FarmIntegrationRouteInputSchemas, bw as FarmIntegrationRouteInputSource, bv as FarmIntegrationRouteMethod, bX as FarmIntegrationRouteMiddleware, bt as FarmIntegrationRouteParamValue, bu as FarmIntegrationRouteParams, bI as FarmIntegrationRouteStorageArgs, cj as FarmIntegrationRoutesFactory, ci as FarmIntegrationRoutesFactoryContext, c7 as FarmIntegrationSchema, c3 as FarmIntegrationSchemaConstraint, c2 as FarmIntegrationSchemaField, c0 as FarmIntegrationSchemaFieldType, c4 as FarmIntegrationSchemaModel, c5 as FarmIntegrationSchemaModelExtension, c6 as FarmIntegrationSchemaModelOverride, c1 as FarmIntegrationSchemaReference, bs as FarmIntegrationSlot, bC as FarmIntegrationStandardValidationResult, bA as FarmIntegrationValidationErrorLike, bz as FarmIntegrationValidationIssue, bx as FarmIntegrationValidationPathSegment, bB as FarmIntegrationValidationResult, ce as FarmIntegrationsUserConfig, ap as FarmLayerConfig, J as FarmLayerEntry, df as FarmMarkdownPageModuleInput, de as FarmMarkdownPageSource, db as FarmMdxComponent, dc as FarmMdxComponents, a4 as FarmMdxResolvedConfig, dd as FarmMdxUserConfig, a2 as FarmMiddlewareConfig, a as FarmMigrationCommand, b as FarmMigrationsConfig, c as FarmMigrationsUserConfig, aq as FarmPerformanceConfig, $ as FarmPlugin, b1 as FarmPluginBuildHooks, b3 as FarmPluginClientConfig, aG as FarmPluginContext, b2 as FarmPluginDevHooks, a_ as FarmPluginDiscoveredRoute, aH as FarmPluginIntegrationContext, aI as FarmPluginLifecycle, b0 as FarmPluginRenderHooks, aM as FarmPluginRouteRuntimePayload, a$ as FarmPluginRouterHooks, aS as FarmPluginRuntimeAfterEvent, aP as FarmPluginRuntimeBaseEvent, aR as FarmPluginRuntimeBeforeEvent, aV as FarmPluginRuntimeCloseEvent, aQ as FarmPluginRuntimeContextEvent, aT as FarmPluginRuntimeErrorEvent, aW as FarmPluginRuntimeHooks, aL as FarmPluginRuntimeKind, aY as FarmPluginRuntimeRequestHandler, aX as FarmPluginRuntimeRequestOptions, aZ as FarmPluginRuntimeSession, aU as FarmPluginRuntimeStartEvent, aN as FarmPluginSetupContext, aO as FarmPluginStateContext, ar as FarmPreloadMode, as as FarmPreloadUserConfig, x as FarmRequest, aJ as FarmRequestPluginContext, aK as FarmRequestStore, y as FarmResponse, d5 as FarmRouteRule, d4 as FarmRouteRuleCors, d3 as FarmRouteRuleRedirect, d2 as FarmRouteRuleRenderMode, d6 as FarmRouteRules, af as FarmRuntimeShutdownError, ay as FarmSecurityConfig, bW as FarmTypedIntegrationRoute, Z as FarmUserConfig, G as GenerateStaticParams, bd as HMRUpdatePayload, bj as HeaderConfig, bm as I18nConfig, bl as ImageConfig, cJ as InferFarmIntegrationOrmClient, cG as InferFarmIntegrationOrmField, cH as InferFarmIntegrationOrmFields, cI as InferFarmIntegrationOrmSchema, cO as IntegrationOrmModelNames, p as Layout, n as LayoutMetadataProps, v as LayoutModule, l as LayoutProps, q as Loading, L as LoadingProps, c$ as MemoryRateLimitStorageOptions, w as Metadata, m as MetadataProps, cU as MiddlewareChain, bn as MiddlewareConfig, cP as MiddlewareContext, b6 as MiddlewareDiscoveredPayload, cQ as MiddlewareFunction, M as MiddlewareProps, d1 as MiddlewareResult, cT as MiddlewareStore, d0 as NextFunction, bf as NitroBuildLifecyclePayload, N as NitroPreset, o as Page, j as PageProps, k as PagePropsWithMiddleware, P as PageRouteParams, C as ParsedRoute, i as PluginContextProps, ag as PluginManager, aF as PluginRequestContext, cX as RateLimitConfig, cY as RateLimitIncrementResult, c_ as RateLimitStatus, cZ as RateLimitStorage, a1 as ReadonlyMiddlewareStore, bi as RedirectConfig, ba as RenderLifecyclePayload, cR as RequestMiddleware, cS as RequestMiddlewareContext, a6 as ResolvedFarmAuthConfig, bh as ResolvedFarmConfig, az as ResolvedFarmCspConfig, bp as ResolvedFarmDeployConfig, a5 as ResolvedFarmDevtoolsConfig, R as ResolvedFarmMigrationsConfig, a7 as ResolvedFarmPerformanceConfig, at as ResolvedFarmPreloadConfig, a8 as ResolvedFarmSecurityConfig, bk as RewriteConfig, b4 as RouteDiscoveredPayload, b8 as RouteMatchPayload, b9 as RouteMatchResultPayload, B as RouteSegment, b5 as RoutesGeneratedPayload, z as ServerAction, bg as ShutdownPayload, t as StaticPathParams, S as StaticPathPrimitive, u as StaticRouteParams, dm as createFarmMarkdownRouteModule, dn as createFarmMarkdownRouteModuleFromFile, dq as createFarmMarkdownSourceResponse, cL as createIntegrationOrm, co as createIntegrationRoute, dl as createMarkdownMetadata, cr as defineIntegration, c8 as defineIntegrationSchema, ae as definePlugin, cD as dispatchIntegrationRequest, cN as farmIntegrationSchemaToOrmSchema, an as getDeployTargetForPreset, W as getFarmAppDirectories, cg as getFarmIntegrationPluginOwner, cf as getFarmIntegrationPluginServerRuntime, X as getFarmLayerAliases, V as getFarmSourceRoots, cv as getIntegrationDocumentNavigationMatchers, cu as getIntegrationProviders, cw as getIntegrationSchemas, ao as getPresetForDeployTarget, cC as getRegisteredIntegrationAPIManifest, cx as getRegisteredIntegrationRuntime, cz as getRegisteredIntegrationSchemas, cy as getRegisteredIntegrations, cp as integrationRoute, cs as isFarmIntegration, dh as isFarmMarkdownPageFile, ai as loadConfig, dp as loadFarmMdxComponents, cA as matchIntegrationRoute, cB as matchRegisteredIntegrationRoute, am as normalizeDeployTarget, di as normalizeFarmMarkdownRoutePath, d7 as normalizeRouteRules, dj as parseMarkdownFrontmatter, ah as resolveConfig, aj as resolveDeployConfig, al as resolveDeployOutputPath, dw as resolveFarmDevtoolsConfig, U as resolveFarmLayers, cM as resolveIntegrationOrmRuntimeClient, ct as resolveIntegrationPlugins, dg as resolveMdxConfig, ak as resolveMigrationsConfig, d9 as routeRulesToHeaders, da as routeRulesToNitroRouteRules, d8 as routeRulesToRedirects, dk as titleFromMarkdown } from './client-plugins-DuuleQKk.js';
|
|
3
|
+
export { f as fileExists, g as globFiles, l as logger, m as matchRoute, p as parseRoutePath, a as parseSearchParams, r as resolveAppPath, s as segmentsToPattern, t as toViteModuleId } from './utils-3sQgfkya.js';
|
|
4
|
+
export { createFarmStorage, createStorageClient, databaseStorage, defineStorageClient, disposeStorage, driverStorage, getStorage, initStorage, libsqlStorage, localStorage, memoryStorage, mongodbStorage, mysql2Storage, mysqlStorage, netlifyBlobsStorage, pgStorage, pgliteStorage, planetscaleStorage, postgresStorage, redisStorage, resolveStorageRuntimeClient, s3Storage, sqliteStorage, upstashStorage, vercelBlobStorage, vercelKVStorage } from './storage.js';
|
|
5
|
+
export { F as FarmIntegrationAPI, e as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIMethod, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, h as FarmIntegrationRouteOperationCarrier, I as InferIntegrationAPIFromRoutes, b as api, d as defineIntegrationAPI, c as defineIntegrationAPIOperation, i as endpoint } from './integration-api-CHT2OKAf.js';
|
|
6
|
+
export { c as createFarmApp } from './app-CTFnOJaI.js';
|
|
7
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
+
import { ReactNode } from 'react';
|
|
9
|
+
export { ComponentType, FC, PropsWithChildren, ReactElement, ReactNode } from 'react';
|
|
10
|
+
export { g as getCurrentRequest } from './request-D40lt6aN.js';
|
|
11
|
+
export { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
12
|
+
import { ViteDevServer } from 'vite';
|
|
13
|
+
export { createCompressionPlugin, createEnvPlugin, createHeadersPlugin, createLoggerPlugin, createRedirectsPlugin, createRewritesPlugin } from './server-plugins.js';
|
|
14
|
+
export { A as APIRouteMatch, c as APIRouteParamValue, b as APIRouteParams, s as AnyEndpointMiddleware, D as DELETE, f as EndpointErrorContracts, d as EndpointErrorDefinition, e as EndpointErrorDefinitions, g as EndpointErrorHandler, E as EndpointErrorSchema, h as EndpointFail, j as EndpointFailure, x as EndpointHandler, u as EndpointInvalidationContext, t as EndpointInvalidationTarget, v as EndpointInvalidations, r as EndpointMiddleware, p as EndpointMiddlewareContext, q as EndpointMiddlewareResult, w as EndpointOptions, l as EndpointParamValue, o as EndpointParams, G as GET, H as HEAD, I as InferEndpointMiddlewareContext, O as OPTIONS, B as PATCH, P as POST, z as PUT, T as TypedEndpoint, y as createEndpoint, i as invokeAPIRouteEndpoint, k as isEndpointFailure, a as isWebResponse, m as matchAPIRoute, n as normalizeRouteResponse } from './runtime-Bpp-c28k.js';
|
|
15
|
+
export { APIRoute, APIRouteManager, APIRouteManagerOptions, API_ROUTE_METHODS } from './api/route-manager.js';
|
|
16
|
+
export { r as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, g as APIResult, A as APIRouteRefMetadata, C as CacheKey, l as CacheOptions, k as CachePolicy, p as ClientOptions, a as FARM_API_ROUTE_META_SYMBOL, F as FARM_API_ROUTE_REF_SYMBOL, X as InferIntegrationOperationBody, Y as InferIntegrationOperationQuery, Z as InferIntegrationOperationResponse, T as IntegrationAPI, L as IntegrationClient, M as IntegrationClientAliases, V as IntegrationClientData, y as IntegrationClientError, P as IntegrationClientOptions, Q as IntegrationClientRequestOptions, N as IntegrationClientRoot, U as IntegrationClients, W as IntegrationOperationResult, _ as IntegrationServerClient, $ as IntegrationServerClientAliases, a0 as IntegrationServerClientOptions, a1 as IntegrationServerClientRequestOptions, a2 as IntegrationServerClientRoot, a3 as IntegrationServerRequestLike, n as InvalidateOptions, I as InvalidateTarget, o as OptimisticOptions, O as OptimisticUpdate, R as RequestEvent, j as ResponseEvent, m as RetryOptions, q as RouteAPIClient, s as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, f as StatusEvent, e as StatusPhase, t as createAPIClient, z as createIntegrationApi, x as createIntegrationClient, B as createIntegrationClients, E as createIntegrationServerClient, D as createIntegrations, w as createServerAPIClient, v as getAPIRouteRefMetadata, G as getIntegrationAPIManifest, H as integrationClients, J as integrationsClient, K as integrationsServer, u as isAPIRouteRef } from './client-Nn0q4eO4.js';
|
|
17
|
+
export { F as FarmAPIStream, c as FarmStreamResponse, a as MultipartField, M as MultipartSchema, b as MultipartValues, T as TypedFormData, e as isFarmAPIStream, d as isJSONStreamResponse, i as isMultipartSchema, j as jsonStream, m as multipart, r as readJSONStream, t as toFormData } from './transport-BmbGTXA5.js';
|
|
18
|
+
export { ApiRoute, FarmApiPluginOptions, farmApiPlugin } from './api.js';
|
|
19
|
+
export { Parser, asArrayOf, asBoolean, asFloat, asInteger, asIsoDate, asIsoDateTime, asJson, asString, createParser, inferParserType } from './query/parsers.js';
|
|
20
|
+
export { R as RouteParamsInput, l as loadRouteParams, p as parseRouteParams } from './params-BALtrRim.js';
|
|
21
|
+
export { FarmQueryStateContext, LayoutPropsSafe, PagePropsSafe, QueryStateConfig, QueryStateProvider } from './query/index.js';
|
|
22
|
+
export { FarmMiddlewarePluginOptions, MiddlewareManager, UnsupportedRateLimitStorageError, createContext, farmMiddlewarePlugin, getFromMiddleware, getRateLimitStatus, hasMiddlewareData, memoryRateLimitStorage, middleware, unwrapMiddleware } from './middleware.js';
|
|
23
|
+
export { _ as _runWithMiddlewareContext, b as _runWithMiddlewareData, a as applyProductionMiddlewareHeaders, c as createProductionMiddlewareRunner, g as getMiddlewareContext, d as getMiddlewareData, e as getMiddlewareValue } from './production-runtime-DrEy8kBO.js';
|
|
24
|
+
export { FarmRouter, FarmRouterActiveOptions, FarmRouterBuildOptions, FarmRouterMatch, FarmRouterParams, FarmRouterPathParam, FarmRouterPathParams, FarmRouterPrimitiveParam, FarmRouterQueryValue, FarmRouterRoute, FarmRouterRouteInput, buildFarmRoutePath, createFarmRouter, isFarmRouteActive, matchFarmRoute } from './router.js';
|
|
25
|
+
export { c as FarmRouteMaxDuration, b as FarmRouteRegions, e as FarmRouteRenderingMode, a as FarmRouteRuntime, F as FarmRouteRuntimeConfig, d as FarmRouteRuntimeEntryKind, g as FarmRouteRuntimeManifest, f as FarmRouteRuntimeManifestEntry, R as ResolvedFarmRouteRuntimeConfig, j as createFarmRouteRuntimeKey, l as farmRouteRuleMatches, i as getFarmRouteRuntimeConfig, h as hasFarmRouteRuntimeControls, m as mergeFarmRouteRuntimeConfigs, n as normalizeFarmRouteRuntimeConfig, k as resolveFarmRouteRuleRuntimeConfig, r as resolveFarmRouteRuntimeConfig } from './route-runtime-DoOHzCAD.js';
|
|
26
|
+
export { CreateRouteOptions, InferProgrammaticRouteData, InferProgrammaticRouteSchema, ProgrammaticApiRoute, ProgrammaticApiRouteOptions, ProgrammaticLayoutRoute, ProgrammaticPageRoute, ProgrammaticRedirectRoute, ProgrammaticRouteBuilder, ProgrammaticRouteComponentProps, ProgrammaticRouteContext, ProgrammaticRouteDataCacheContext, ProgrammaticRouteDataCacheKeys, ProgrammaticRouteDataContext, ProgrammaticRouteDataHooks, ProgrammaticRouteDataStaleTime, ProgrammaticRouteDefinition, ProgrammaticRouteErrorComponentProps, ProgrammaticRouteFactory, ProgrammaticRouteGuard, ProgrammaticRouteGuardContext, ProgrammaticRouteManifest, ProgrammaticRouteMaybePromise, ProgrammaticRouteMethod, ProgrammaticRouteParamsFallback, ProgrammaticRoutePendingComponentProps, ProgrammaticRoutePrimitive, ProgrammaticRouteRenderMode, ProgrammaticRouteSchema, ProgrammaticRouteSearchClientOptions, ProgrammaticRouteSearchConfig, ProgrammaticRouteSearchFallback, ProgrammaticRouteSearchOptions, ProgrammaticStaticPath, ProgrammaticStaticPathParams, ProgrammaticStaticPaths, createLayoutModuleFromProgrammaticLayout, createProgrammaticRouteModuleId, createRoute, createRouteModuleFromProgrammaticPage, defineRoutes, getProgrammaticRouteManifest, isProgrammaticRouteManifest, isProgrammaticRoutesFileName, layout, page, parseProgrammaticRouteModuleId, parseProgrammaticRoutePath, routesBuilder, scanProgrammaticPagePaths } from './routes.js';
|
|
27
|
+
export { FarmDocsAPIHandler, FarmDocsAPIOptions, FarmDocsAPIRouteHandlers, FarmDocsCloudIntegration, FarmDocsCloudRouteOptions, FarmDocsCloudServer, FarmDocsHandlerOptions, FarmDocsPage, LoadedFarmDocsPage, createDocsAPI, createFarmDocsAPIHandler, createFarmDocsHandler, discoverFarmDocsPages, getFarmDocsDocumentNavigationMatchers, getFarmDocsRouteTypeEntries, isFarmDocsAPIRequest, isFarmDocsRequest, loadFarmDocsPage, resolveFarmDocsContentDir } from './docs.js';
|
|
28
|
+
export { b as FarmDocsConfigInput, c as FarmDocsNavigationConfig, F as FarmDocsResolvedConfig, f as FarmDocsSidebarItem, d as FarmDocsSocialImageConfig, e as FarmDocsSocialImageFonts, a as FarmDocsUserConfig } from './types-DTzm4TCl.js';
|
|
29
|
+
export { ApplyMarkdownNegotiationHeadersOptions, CreateMarkdownMirrorResponseOptions, FarmMarkdownMirrorTarget, FarmMarkdownResolvedConfig, FarmMarkdownResolvedRoute, FarmMarkdownRouteInput, FarmMarkdownUserConfig, ResolveMarkdownMirrorTargetOptions, applyMarkdownNegotiationHeaders, createMarkdownMirrorResponse, htmlToMarkdown, requestAcceptsMarkdown, resolveMarkdownConfig, resolveMarkdownMirrorTarget } from './markdown.js';
|
|
30
|
+
export { FarmAPIEvent, FarmBuildEvent, FarmCacheEvent, FarmErrorEvent, FarmEvent, FarmEventBase, FarmEventHandler, FarmEventInput, FarmEventLevel, FarmEventType, FarmIntegrationEvent, FarmMiddlewareEvent, FarmObservabilityUserConfig, FarmPPREvent, FarmPluginEvent, FarmRenderEvent, FarmResolvedObservabilityConfig, FarmRouteEvent, FarmServerEvent, FarmStorageEvent, configureFarmObservability, emitFarmEvent, normalizeFarmObservabilityConfig, onFarmEvent, resetFarmObservability } from './observability.js';
|
|
31
|
+
export { D as DEFAULT_FARM_WORKFLOW_DIRS, o as DEFAULT_FARM_WORKFLOW_ROUTE, p as DEFAULT_FARM_WORKFLOW_SECRET_ENV, l as FarmCronDefinition, m as FarmDiscoveredWorkflow, a as FarmServerConfig, d as FarmServerDuration, e as FarmServerHealthConfig, k as FarmWorkflowDefinition, n as FarmWorkflowHTTPHandlerOptions, i as FarmWorkflowLogger, j as FarmWorkflowRunContext, h as FarmWorkflowSchedule, F as FarmWorkflowsResolvedConfig, g as FarmWorkflowsUserConfig, P as PreparedFarmWorkflows, R as ResolvedFarmServerConfig, f as ResolvedFarmServerHealthConfig, A as applyFarmWorkflowVercelCrons, w as createFarmWorkflowRequestHandler, z as createFarmWorkflowVercelCrons, t as defineCron, s as defineTask, q as defineWorkflow, v as discoverFarmWorkflows, y as prepareFarmWorkflowsForNitro, u as resolveWorkflowsConfig, x as runFarmWorkflowModule } from './workflows-CusFV6mn.js';
|
|
32
|
+
export { DEFAULT_FARM_CRON_SECRET_ENV, FARM_CRON_MANIFEST, FarmCronCloudflareConfig, FarmCronJob, FarmCronJobConfig, FarmCronResolvedConfig, FarmCronRouteOptions, FarmCronSchedule, FarmCronUserConfig, PreparedFarmCron, applyFarmCronVercelCrons, createFarmCronCloudflareConfig, createFarmCronCloudflareTriggers, createFarmCronManifest, createFarmCronVercelCrons, cronRoute, isCronRequestAuthorized, mergeScheduledTasks, prepareFarmCronForNitro, resolveCronConfig } from './cron.js';
|
|
33
|
+
export { EnvParser, EnvSchema, EnvShape, FarmEnvConfig, FarmEnvTypes, FarmPublicEnv, FarmServerEnv, FarmTypedEnv, InferEnv, InferEnvParser, InferEnvShape, ResolvedFarmEnv, env, getEnv, getPublicEnv, getResolvedEnv, publicEnv, resolveEnv, serverEnv, setEnv } from './env.js';
|
|
34
|
+
export { GenerateEnvTypesOptions, createEnvTypeDeclarations, generateEnvTypes } from './env-types.js';
|
|
35
|
+
export { resolveFarmThemeConfig } from './theme/index.js';
|
|
36
|
+
export { c as FarmResolvedTheme, d as FarmThemeConfig, b as FarmThemePreference, a as FarmThemeSnapshot, R as ResolvedFarmThemeConfig } from './types-CsR8fpgF.js';
|
|
37
|
+
export { FarmEnvironment, FarmEnvironmentError, FarmIsomorphicFnOptions, createClientOnlyFn, createIsomorphicFn, createServerOnlyFn } from './environment.js';
|
|
38
|
+
export { FarmFont, FarmFontDisplay, FarmFontOptions, FarmFontSource, FarmLayoutFontModule, FarmLayoutFonts, LocalFontOptions, RemoteFontOptions, RemoteFontSource, defineLayoutFonts, localFont, remoteFont, resolveFarmLayoutFonts } from './font.js';
|
|
39
|
+
import { R as ResolvedFarmI18nConfig } from './types-BMxWr97v.js';
|
|
40
|
+
export { g as FarmI18nCookieConfig, h as FarmI18nDetectionSignal, i as FarmI18nDirection, j as FarmI18nRouting, k as FarmI18nUserConfig } from './types-BMxWr97v.js';
|
|
41
|
+
export { AnyServerFnMiddleware, FARM_SERVER_FN_SYMBOL, InferServerFnError, InferServerFnSchemaInput, InferServerFnSchemaOutput, ServerFn, ServerFnContext, ServerFnDeclaredError, ServerFnError, ServerFnErrorDefinition, ServerFnErrorDefinitions, ServerFnErrorHandler, ServerFnErrorSchema, ServerFnFormInput, ServerFnHandler, ServerFnHandlerContext, ServerFnInvalidationContext, ServerFnInvalidations, ServerFnMiddleware, ServerFnMiddlewareContext, ServerFnMiddlewareContinuation, ServerFnMiddlewareHandler, ServerFnMiddlewareHandlerContext, ServerFnMiddlewareNext, ServerFnMiddlewareOptions, ServerFnOptions, ServerFnOutputOptions, ServerFnSchema, _parseServerFnSchema, createServerFn, createServerMiddleware } from './server-fn.js';
|
|
42
|
+
export { ServerFnActionStatus, ServerFnOptimisticContext, ServerFnSubmit, UseServerFnOptions, UseServerFnReturn, useServerFn } from './server-fn-client.js';
|
|
43
|
+
export { FARM_SERVER_QUERY_SYMBOL, ServerQuery, ServerQueryKey, ServerQueryOptions, ServerQueryOutputOptions, ServerQueryStaleTime, createServerQuery } from './server-query.js';
|
|
44
|
+
export { FarmServerQueryActionInvocation, ServerQueryFetchOptions, UseServerQueryOptions, UseServerQueryResult, beginFarmServerQueryAction, completeFarmServerQueryAction, fetchServerQuery, prefetchServerQuery, useServerQuery } from './server-query-client.js';
|
|
45
|
+
export { DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT, FarmServerActionsConfig, PreparedServerActionRequest, ResolvedFarmServerActionsConfig, SanitizedServerActionError, ServerActionRequestError, ServerActionRequestKind, createServerActionRequestErrorResponse, getServerActionExecutionContext, getServerActionInvalidations, getServerActionSignal, prepareServerActionRequest, resolveServerActionsConfig, runWithServerActionRequest, sanitizeServerActionError, validateServerActionRequest } from './server-action-security.js';
|
|
46
|
+
export { FARM_DEPLOYMENT_COOKIE, FARM_DEPLOYMENT_ID_HEADER, FARM_DEPLOYMENT_MISMATCH_CODE, FARM_DEPLOYMENT_MISMATCH_HEADER, FARM_DEPLOYMENT_MISMATCH_STATUS, FarmDeploymentMismatch, FarmDeploymentMismatchError, FarmDeploymentResponseOptions, FarmPresetRuntime, createFarmDeploymentCookie, createFarmDeploymentMismatchError, createFarmDeploymentMismatchResponse, createFarmDeploymentRequestHeaders, getFarmDeploymentMismatch, getFarmPresetRuntime, getFarmRequestDeploymentId, getFarmResponseDeploymentId, isFarmDeploymentMismatchResponse, normalizeFarmDeploymentId, withFarmDeploymentResponse } from './deployment.js';
|
|
47
|
+
export { F as FarmImageConfig, a as FarmImageFormat, b as FarmImageLocalPattern, c as FarmImageProvider, d as FarmImageRemotePattern, R as ResolvedFarmImageConfig } from './image-config-Duob7wER.js';
|
|
48
|
+
export { build } from './internal/build-runtime.js';
|
|
49
|
+
export { AnyMutationTarget, DefaultRouteHref, DefaultRoutePath, DefaultRoutePattern, ExternalHref, FarmNavigateOptions, FarmNavigationBlocker, FarmNavigationBlockerContext, FarmNavigationListener, FarmNavigationLocation, FarmNavigationState, FarmViewTransitionMode, FetcherFormDataContext, FetcherFormProps, FetcherState, FetcherSubmit, FetcherSubmitAsync, InferMutationData, InferMutationError, InferMutationVariables, Link, LinkDefaultRoute, LinkProps, MutationAsync, MutationOptimisticContext, MutationStatus, MutationTrigger, PrefetchBehavior, RouteHref, RouteOptionalParamValue, RouteParamValue, RouteParams, SPARouter, Store, StoreApi, StoreFields, StoreKeyListener, StoreKeysListener, StoreListener, StorePatch, StoreState, StoreValueUpdater, UseBlockerOptions, UseBlockerReturn, UseFetcherOptions, UseFetcherReturn, UseMutationOptions, UseMutationReturn, UseRouterOptions, createStore, getRouter, navigateTo, prefetch, pushState, readPageState, replaceState, useBlocker, useFetcher, useMutation, useNavigation, usePageState, useRouter, useScrollRestoration } from './client.js';
|
|
50
|
+
export { UseThemeResult, getTheme, setTheme, toggleTheme, useTheme } from './theme/client.js';
|
|
51
|
+
export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './chunk-recovery-lnQFzcQP.js';
|
|
52
|
+
export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, F as FarmClientPluginManager, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './plugin-BJDf43dc.js';
|
|
53
|
+
export { CacheKeyFactory, DefinedCacheKey, FarmCacheAdapter, FarmCacheEntry, FarmCacheInvalidationTarget, FarmCacheOptions, FarmCacheSetOptions, FarmCacheStorage, FarmCacheUserConfig, FarmDataCache, GetFarmCacheEntryOptions, InferCacheKeyData, RevalidateTagProfile, RouteDataCacheKey, StorageFarmCacheAdapterOptions, applyFarmCacheInvalidationTargets, applyFarmCacheInvalidations, configureFarmCache, createFarmCacheKey, createPathCacheTag, createRouteDataCacheKey, createRouteDataCacheTag, defineCacheKey, getFarmDataCache, invalidate, invalidateRouteData, normalizeRevalidatePath, revalidatePath, revalidateTag, storageCacheAdapter, unstable_cache, updateTag } from './cache.js';
|
|
54
|
+
export { Deferred, DeferredDataError, DeferredDataResponseOptions, DeferredRecord, DeferredSettlement, DeferredSettlements, FARM_DEFERRED_BRAND, FARM_DEFERRED_CONTENT_TYPE, FARM_DEFERRED_ERROR_CODE, PreparedDeferredData, createDeferredDataResponse, defer, isDeferred, prepareDeferredData, readDeferredDataResponse, reviveDeferredData, snapshotDeferredData } from './deferred.js';
|
|
55
|
+
export { AfterCallback, FarmAfterPlatformContext, _runWithAfterNodeResponse, _runWithAfterRequest, _withAfterNodeMiddleware, after } from './after.js';
|
|
56
|
+
export { usePathname, useSearchParams } from './navigation.js';
|
|
57
|
+
export { ReadonlyHeaders, ReadonlyRequestCookies, RequestCookie, cookies, headers } from './headers.js';
|
|
58
|
+
export { defineConfig, defineFarmConfig } from './config.js';
|
|
59
|
+
export { F as FarmRedirectSignal, b as FarmRedirectStatus, g as getFarmRedirectError, i as isFarmNotFoundError, a as isFarmRedirectError, n as notFound, p as permanentRedirect, r as redirect } from './navigation-errors-Dvwpzaer.js';
|
|
60
|
+
export { F as FarmStorageBuiltinDriverConfig, a as FarmStorageClient, b as FarmStorageClientConfig, c as FarmStorageConfigObject, d as FarmStorageCustomDriverConfig, e as FarmStorageDatabaseConfig, f as FarmStorageDatabaseDriverName, g as FarmStorageLocalDriverConfig, i as FarmStorageMountConfig, j as FarmStorageMounts, h as FarmStorageRuntimeClient, k as FarmStorageUserConfig } from './types-D1A6-XvH.js';
|
|
61
|
+
export { BuiltinDriverName, BuiltinDriverOptions, Driver, Storage, StorageMeta, StorageValue, TransactionOptions } from 'unstorage';
|
|
62
|
+
export { ConnectorName, ConnectorOptions, Database } from 'db0';
|
|
63
|
+
export { F as FARM_SERVER_FN_FAILURE_SYMBOL, b as SerializedServerFnFailure, a as ServerActionError, S as ServerFnFailure, c as createServerFnTransportError, i as isServerFnFailure } from './server-fn-error-DDh14a0V.js';
|
|
64
|
+
import 'http';
|
|
65
|
+
import '@farming-labs/orm';
|
|
66
|
+
import './metadata-DyPRG0wX.js';
|
|
67
|
+
import './runtime-bv63eUiO.js';
|
|
68
|
+
import './resolver-IH4RmPEl.js';
|
|
69
|
+
import './client-cache-CIlyBlmx.js';
|
|
70
|
+
import '@farming-labs/docs';
|
|
71
|
+
import './internal/config-runtime.js';
|
|
72
|
+
import 'node:http';
|
|
73
|
+
|
|
74
|
+
interface FarmProviderProps {
|
|
75
|
+
children: ReactNode;
|
|
76
|
+
config: FarmConfig;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Farm.js context provider for client-side components
|
|
80
|
+
*/
|
|
81
|
+
declare function FarmProvider({ children, config }: FarmProviderProps): react_jsx_runtime.JSX.Element;
|
|
82
|
+
|
|
83
|
+
declare class HMRManager {
|
|
84
|
+
private server;
|
|
85
|
+
constructor(server: ViteDevServer);
|
|
86
|
+
/**
|
|
87
|
+
* Send HMR update to client
|
|
88
|
+
*/
|
|
89
|
+
send(payload: any): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Trigger full page reload
|
|
92
|
+
*/
|
|
93
|
+
reloadPage(): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Handle file change and trigger HMR
|
|
96
|
+
*/
|
|
97
|
+
handleFileChange(file: string): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Get all affected modules in the dependency graph
|
|
100
|
+
*/
|
|
101
|
+
private getAffectedModules;
|
|
102
|
+
/**
|
|
103
|
+
* Handle custom HMR events from client
|
|
104
|
+
*/
|
|
105
|
+
onClientMessage(event: string, callback: (data: any) => void): void;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
interface APIRouteInfo {
|
|
109
|
+
path: string;
|
|
110
|
+
methods: string[];
|
|
111
|
+
filePath: string;
|
|
112
|
+
relativePath: string;
|
|
113
|
+
}
|
|
114
|
+
declare class APITypeGenerator {
|
|
115
|
+
private appDirs;
|
|
116
|
+
constructor(appDir: string | readonly string[]);
|
|
117
|
+
/**
|
|
118
|
+
* Scan all API route files and extract route information
|
|
119
|
+
*/
|
|
120
|
+
scanAPIRoutes(): APIRouteInfo[];
|
|
121
|
+
private scanDirectory;
|
|
122
|
+
private extractRouteInfo;
|
|
123
|
+
private extractExportedMethods;
|
|
124
|
+
/**
|
|
125
|
+
* Generate TypeScript code for the API router
|
|
126
|
+
*/
|
|
127
|
+
generateAPIRouter(routes: APIRouteInfo[], options?: {
|
|
128
|
+
outFile?: string;
|
|
129
|
+
}): string;
|
|
130
|
+
private getRouteImportPath;
|
|
131
|
+
private pathToRouteName;
|
|
132
|
+
private structureToTypeString;
|
|
133
|
+
private toTypePropertyKey;
|
|
134
|
+
private getBaseExportName;
|
|
135
|
+
private getExportName;
|
|
136
|
+
/**
|
|
137
|
+
* Generate the API index file
|
|
138
|
+
*/
|
|
139
|
+
generateAPIIndex(outputPath: string): void;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface OpenAPISpec {
|
|
143
|
+
openapi: string;
|
|
144
|
+
info: {
|
|
145
|
+
title: string;
|
|
146
|
+
description?: string;
|
|
147
|
+
version: string;
|
|
148
|
+
contact?: {
|
|
149
|
+
name?: string;
|
|
150
|
+
email?: string;
|
|
151
|
+
url?: string;
|
|
152
|
+
};
|
|
153
|
+
license?: {
|
|
154
|
+
name: string;
|
|
155
|
+
url?: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
servers?: Array<{
|
|
159
|
+
url: string;
|
|
160
|
+
description?: string;
|
|
161
|
+
}>;
|
|
162
|
+
paths: Record<string, any>;
|
|
163
|
+
components?: {
|
|
164
|
+
schemas?: Record<string, any>;
|
|
165
|
+
securitySchemes?: Record<string, any>;
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
declare class OpenAPIGenerator {
|
|
169
|
+
private config;
|
|
170
|
+
private appDir;
|
|
171
|
+
constructor(appDir: string, config: OpenAPIConfig);
|
|
172
|
+
/**
|
|
173
|
+
* Get type from Zod type
|
|
174
|
+
*/
|
|
175
|
+
private getTypeFromZodType;
|
|
176
|
+
/**
|
|
177
|
+
* Process Zod type to OpenAPI schema
|
|
178
|
+
*/
|
|
179
|
+
private processZodType;
|
|
180
|
+
/**
|
|
181
|
+
* Generate standard error responses
|
|
182
|
+
*/
|
|
183
|
+
private getStandardResponses;
|
|
184
|
+
/**
|
|
185
|
+
* Generate OpenAPI spec from API routes
|
|
186
|
+
*/
|
|
187
|
+
generateSpec(routes: APIRouteInfo[]): Promise<OpenAPISpec>;
|
|
188
|
+
/**
|
|
189
|
+
* Convert Farm.js API path to OpenAPI path format
|
|
190
|
+
*/
|
|
191
|
+
private convertToOpenAPIPath;
|
|
192
|
+
/**
|
|
193
|
+
* Extract request body schema from endpoint
|
|
194
|
+
*/
|
|
195
|
+
private getRequestBody;
|
|
196
|
+
/**
|
|
197
|
+
* Extract query parameters from endpoint
|
|
198
|
+
*/
|
|
199
|
+
private getParameters;
|
|
200
|
+
/**
|
|
201
|
+
* Generate OpenAPI operation from route info
|
|
202
|
+
*/
|
|
203
|
+
private generateOperation;
|
|
204
|
+
/**
|
|
205
|
+
* Generate operation summary
|
|
206
|
+
*/
|
|
207
|
+
private generateSummary;
|
|
208
|
+
/**
|
|
209
|
+
* Generate operation description
|
|
210
|
+
*/
|
|
211
|
+
private generateDescription;
|
|
212
|
+
/**
|
|
213
|
+
* Generate operation ID
|
|
214
|
+
*/
|
|
215
|
+
private generateOperationId;
|
|
216
|
+
/**
|
|
217
|
+
* Generate tags for grouping operations
|
|
218
|
+
*/
|
|
219
|
+
private generateTags;
|
|
220
|
+
/**
|
|
221
|
+
* Generate OpenAPI spec file
|
|
222
|
+
*/
|
|
223
|
+
generateSpecFile(routes: APIRouteInfo[], outputPath: string): Promise<void>;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare class OpenAPIManager {
|
|
227
|
+
private generator;
|
|
228
|
+
private apiTypeGenerator;
|
|
229
|
+
private config;
|
|
230
|
+
private appDir;
|
|
231
|
+
private specCache;
|
|
232
|
+
constructor(appDir: string | readonly string[], config: OpenAPIConfig);
|
|
233
|
+
/**
|
|
234
|
+
* Generate OpenAPI spec from API routes
|
|
235
|
+
*/
|
|
236
|
+
generateSpec(): Promise<any>;
|
|
237
|
+
/**
|
|
238
|
+
* Get cached spec or generate new one
|
|
239
|
+
*/
|
|
240
|
+
getSpec(): Promise<any>;
|
|
241
|
+
/**
|
|
242
|
+
* Generate and save OpenAPI spec file
|
|
243
|
+
*/
|
|
244
|
+
generateSpecFile(): Promise<void>;
|
|
245
|
+
/**
|
|
246
|
+
* Invalidate cache and regenerate spec
|
|
247
|
+
*/
|
|
248
|
+
invalidateCache(): Promise<void>;
|
|
249
|
+
/**
|
|
250
|
+
* Get the docs route handler
|
|
251
|
+
*/
|
|
252
|
+
getDocsRouteHandler(): (req: any, res: any) => Promise<void>;
|
|
253
|
+
/**
|
|
254
|
+
* Generate HTML for docs route
|
|
255
|
+
*/
|
|
256
|
+
private generateDocsHTML;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
interface ScalarAPIDocumentationProps {
|
|
260
|
+
spec: any;
|
|
261
|
+
config?: {
|
|
262
|
+
theme?: "default" | "purple" | "blue" | "green" | "red" | "yellow";
|
|
263
|
+
layout?: "modern" | "classic";
|
|
264
|
+
showSidebar?: boolean;
|
|
265
|
+
hideDownloadButton?: boolean;
|
|
266
|
+
hideTryItPanel?: boolean;
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
declare function ScalarAPIDocumentation({ spec, config }: ScalarAPIDocumentationProps): react_jsx_runtime.JSX.Element;
|
|
270
|
+
declare global {
|
|
271
|
+
interface Window {
|
|
272
|
+
ScalarApiReference: (config: any) => void;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface DocsRouteProps {
|
|
277
|
+
spec: any;
|
|
278
|
+
config?: any;
|
|
279
|
+
}
|
|
280
|
+
declare function DocsRoute({ spec, config }: DocsRouteProps): react_jsx_runtime.JSX.Element;
|
|
281
|
+
|
|
282
|
+
interface GenerateFarmI18nTypesOptions {
|
|
283
|
+
root: string;
|
|
284
|
+
srcDir?: string;
|
|
285
|
+
config: ResolvedFarmI18nConfig;
|
|
286
|
+
outFile?: string;
|
|
287
|
+
}
|
|
288
|
+
declare function generateFarmI18nTypes(options: GenerateFarmI18nTypesOptions): Promise<string | undefined>;
|
|
289
|
+
|
|
290
|
+
interface GenerateFarmTypeArtifactsOptions {
|
|
291
|
+
root: string;
|
|
292
|
+
srcDir?: string;
|
|
293
|
+
configPath?: string;
|
|
294
|
+
extraRoutes?: string[];
|
|
295
|
+
layers?: readonly ResolvedFarmLayer[];
|
|
296
|
+
suppressLintOnLink?: boolean;
|
|
297
|
+
routeTypesOutFile?: string;
|
|
298
|
+
apiTypesOutFile?: string;
|
|
299
|
+
envTypesOutFile?: string;
|
|
300
|
+
imageTypesOutFile?: string;
|
|
301
|
+
i18nTypesOutFile?: string;
|
|
302
|
+
i18nConfig?: ResolvedFarmI18nConfig;
|
|
303
|
+
routes?: boolean;
|
|
304
|
+
api?: boolean;
|
|
305
|
+
env?: boolean;
|
|
306
|
+
images?: boolean;
|
|
307
|
+
i18n?: boolean;
|
|
308
|
+
/** Compare generated content with disk without writing files. */
|
|
309
|
+
check?: boolean;
|
|
310
|
+
}
|
|
311
|
+
interface GenerateFarmTypeArtifactsResult {
|
|
312
|
+
typesPath?: string;
|
|
313
|
+
routeTypesPath?: string;
|
|
314
|
+
apiTypesPath?: string;
|
|
315
|
+
envTypesPath?: string;
|
|
316
|
+
imageTypesPath?: string;
|
|
317
|
+
i18nTypesPath?: string;
|
|
318
|
+
apiRoutes: APIRouteInfo[];
|
|
319
|
+
/** Generated files whose checked-in content is missing or stale. */
|
|
320
|
+
stalePaths: string[];
|
|
321
|
+
}
|
|
322
|
+
declare function generateFarmTypeArtifacts(options: GenerateFarmTypeArtifactsOptions): Promise<GenerateFarmTypeArtifactsResult>;
|
|
323
|
+
|
|
324
|
+
interface GenerateFarmImageTypesOptions {
|
|
325
|
+
root: string;
|
|
326
|
+
srcDir?: string;
|
|
327
|
+
outFile?: string;
|
|
328
|
+
}
|
|
329
|
+
declare function generateFarmImageTypes(options: GenerateFarmImageTypesOptions): string;
|
|
330
|
+
declare function createFarmImageTypeDeclarations(): string;
|
|
331
|
+
|
|
332
|
+
interface GenerateRouteTypesOptions {
|
|
333
|
+
root: string;
|
|
334
|
+
srcDir?: string;
|
|
335
|
+
outFile?: string;
|
|
336
|
+
extraRoutes?: string[];
|
|
337
|
+
/** Ordered layer roots followed by the project root. */
|
|
338
|
+
sourceRoots?: readonly FarmSourceRoot[];
|
|
339
|
+
/** When true, do not augment LinkDefaultRoute so Link href accepts any string (no route-type errors). */
|
|
340
|
+
suppressLintOnLink?: boolean;
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Scan application route modules, generate page and module route unions,
|
|
344
|
+
* and write a .d.ts file for typed Link hrefs and route component props.
|
|
345
|
+
*/
|
|
346
|
+
declare function generateRouteTypes(options: GenerateRouteTypesOptions): Promise<string>;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Farm.js SSG (Static Site Generation) Module
|
|
350
|
+
*
|
|
351
|
+
* Handles collection and pre-rendering of SSG pages at build time.
|
|
352
|
+
*
|
|
353
|
+
* SSR is the default - pages render on each request
|
|
354
|
+
* SSG is opt-in via `export const ssg = true`, Next-compatible route
|
|
355
|
+
* config exports, or a top-of-file rendering directive.
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* ```tsx
|
|
359
|
+
* // SSG Page
|
|
360
|
+
* export const ssg = true;
|
|
361
|
+
* export default function AboutPage() {
|
|
362
|
+
* return <h1>About</h1>;
|
|
363
|
+
* }
|
|
364
|
+
*
|
|
365
|
+
* // SSG with ISR
|
|
366
|
+
* export const ssg = true;
|
|
367
|
+
* export const revalidate = 60;
|
|
368
|
+
* export default async function ProductsPage() {
|
|
369
|
+
* const products = await fetchProducts();
|
|
370
|
+
* return <ProductList products={products} />;
|
|
371
|
+
* }
|
|
372
|
+
*
|
|
373
|
+
* // Dynamic SSG
|
|
374
|
+
* export const ssg = true;
|
|
375
|
+
* export async function getStaticPaths() {
|
|
376
|
+
* const posts = await fetchPosts();
|
|
377
|
+
* return posts.map(post => ({ slug: post.slug }));
|
|
378
|
+
* }
|
|
379
|
+
* export default async function BlogPost({ params }) {
|
|
380
|
+
* return <article>{params.slug}</article>;
|
|
381
|
+
* }
|
|
382
|
+
*
|
|
383
|
+
* // Next-compatible route config
|
|
384
|
+
* export const dynamic = "force-static";
|
|
385
|
+
* export const revalidate = 60;
|
|
386
|
+
*
|
|
387
|
+
* // PPR/static-shell route
|
|
388
|
+
* export const experimental_ppr = true;
|
|
389
|
+
* export const revalidate = 60;
|
|
390
|
+
*
|
|
391
|
+
* // Directive config
|
|
392
|
+
* "use ssg; 60";
|
|
393
|
+
* export default function DocsPage() {
|
|
394
|
+
* return <h1>Docs</h1>;
|
|
395
|
+
* }
|
|
396
|
+
* ```
|
|
397
|
+
*/
|
|
398
|
+
|
|
399
|
+
interface RouteEntry {
|
|
400
|
+
path: string;
|
|
401
|
+
filePath: string;
|
|
402
|
+
isDynamic: boolean;
|
|
403
|
+
pattern: string;
|
|
404
|
+
}
|
|
405
|
+
type RouteRenderingDynamic = NonNullable<RouteModule["dynamic"]>;
|
|
406
|
+
interface RouteRenderingConfig {
|
|
407
|
+
ssg: boolean;
|
|
408
|
+
ppr: boolean;
|
|
409
|
+
revalidate?: number;
|
|
410
|
+
dynamic?: RouteRenderingDynamic;
|
|
411
|
+
directive?: string;
|
|
412
|
+
}
|
|
413
|
+
interface StaticRouteCandidateAnalysis {
|
|
414
|
+
candidate: boolean;
|
|
415
|
+
blockers: string[];
|
|
416
|
+
}
|
|
417
|
+
interface DirectiveRenderingConfig {
|
|
418
|
+
ssg: boolean;
|
|
419
|
+
ppr: boolean;
|
|
420
|
+
revalidate?: number;
|
|
421
|
+
dynamic?: RouteRenderingDynamic;
|
|
422
|
+
directive: string;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Resolve route rendering from Farm exports, Next-compatible exports, and
|
|
426
|
+
* top-of-file directives such as `"use ssg";` or `"use ssg; 60";`.
|
|
427
|
+
*/
|
|
428
|
+
declare function resolveRouteRenderingConfig(mod: RouteModule | null | undefined, source?: string): RouteRenderingConfig;
|
|
429
|
+
declare function resolveRouteRenderingConfigFromFile(mod: RouteModule | null | undefined, filePath: string): Promise<RouteRenderingConfig>;
|
|
430
|
+
/**
|
|
431
|
+
* Conservatively identify a route that may be safe to pre-render.
|
|
432
|
+
*
|
|
433
|
+
* This intentionally produces a suggestion rather than changing rendering:
|
|
434
|
+
* request-bound work can live in a transitive import, which source inspection
|
|
435
|
+
* of the route module cannot prove safe. Explicit route config always wins.
|
|
436
|
+
*/
|
|
437
|
+
declare function analyzeStaticRouteCandidate(mod: RouteModule | null | undefined, source: string | undefined, options?: {
|
|
438
|
+
isDynamic?: boolean;
|
|
439
|
+
}): StaticRouteCandidateAnalysis;
|
|
440
|
+
declare function parseRouteRenderingDirective(source: string | undefined): DirectiveRenderingConfig | undefined;
|
|
441
|
+
/**
|
|
442
|
+
* Collect SSG pages from route modules
|
|
443
|
+
*
|
|
444
|
+
* Scans all routes and categorizes them into:
|
|
445
|
+
* - SSG pages: Pre-rendered at build time
|
|
446
|
+
* - SSR routes: Rendered on each request
|
|
447
|
+
*
|
|
448
|
+
* @param routes - Array of route entries
|
|
449
|
+
* @param loadModule - Function to load a route module
|
|
450
|
+
* @returns SSG pages and SSR routes
|
|
451
|
+
*/
|
|
452
|
+
declare function collectSSGPages(routes: RouteEntry[], loadModule: (filePath: string) => Promise<RouteModule>, options?: {
|
|
453
|
+
suggestStaticRendering?: boolean;
|
|
454
|
+
}): Promise<SSGCollectionResult>;
|
|
455
|
+
/**
|
|
456
|
+
* Check if a route module is SSG
|
|
457
|
+
*/
|
|
458
|
+
declare function isSSGModule(mod: RouteModule | null | undefined): boolean;
|
|
459
|
+
/**
|
|
460
|
+
* Check if a route module has ISR (Incremental Static Regeneration)
|
|
461
|
+
*/
|
|
462
|
+
declare function hasISR(mod: RouteModule | null | undefined): boolean;
|
|
463
|
+
/**
|
|
464
|
+
* Get revalidation interval for a module
|
|
465
|
+
*/
|
|
466
|
+
declare function getRevalidateInterval(mod: RouteModule | null | undefined): number | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* Check if a route module has PPR/static-shell caching enabled.
|
|
469
|
+
*/
|
|
470
|
+
declare function hasPPR(mod: RouteModule | null | undefined): boolean;
|
|
471
|
+
/**
|
|
472
|
+
* Generate SSG manifest for production builds
|
|
473
|
+
*/
|
|
474
|
+
declare function generateSSGManifest(pages: SSGPage[]): string;
|
|
475
|
+
/**
|
|
476
|
+
* Check if a URL path matches an SSG page
|
|
477
|
+
*/
|
|
478
|
+
declare function matchSSGPage(urlPath: string, ssgPages: SSGPage[]): SSGPage | undefined;
|
|
479
|
+
|
|
480
|
+
export { APITypeGenerator, DocsRoute, FarmConfig, FarmProvider, type GenerateFarmImageTypesOptions, type GenerateFarmTypeArtifactsOptions, type GenerateFarmTypeArtifactsResult, type GenerateRouteTypesOptions, HMRManager, OpenAPIConfig, OpenAPIGenerator, OpenAPIManager, type OpenAPISpec, ResolvedFarmI18nConfig, ResolvedFarmLayer, RouteModule, type RouteRenderingConfig, type RouteRenderingDynamic, SSGCollectionResult, SSGPage, ScalarAPIDocumentation, type StaticRouteCandidateAnalysis, analyzeStaticRouteCandidate, collectSSGPages, createFarmImageTypeDeclarations, generateFarmI18nTypes, generateFarmImageTypes, generateFarmTypeArtifacts, generateRouteTypes, generateSSGManifest, getRevalidateInterval, hasISR, hasPPR, isSSGModule, matchSSGPage, parseRouteRenderingDirective, resolveRouteRenderingConfig, resolveRouteRenderingConfigFromFile };
|