@farm.js/core 0.1.41 → 0.1.43
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-BOqIxJLI.d.mts → agent-mcp-3KDz4hr9.d.mts} +1 -1
- package/dist/{agent-mcp-D0eZKfci.d.ts → agent-mcp-6yRebHk7.d.ts} +1 -1
- package/dist/agent-runtime.d.mts +1 -1
- package/dist/agent-runtime.d.ts +1 -1
- package/dist/api/route-manager.d.mts +3 -3
- package/dist/api/route-manager.d.ts +3 -3
- package/dist/api/runtime.d.mts +2 -2
- package/dist/api/runtime.d.ts +2 -2
- package/dist/api.cjs +2 -2
- package/dist/api.d.mts +8 -3
- package/dist/api.d.ts +8 -3
- package/dist/api.mjs +1 -1
- package/dist/{app-DM8e1z3G.d.ts → app-8Db1zR-2.d.ts} +8 -4
- package/dist/{app-CzTSMJaf.d.mts → app-DlTWv4cn.d.mts} +8 -4
- package/dist/app-manifest-TRzS7ZZ9.d.mts +120 -0
- package/dist/app-manifest-cO2jkG1F.d.ts +120 -0
- package/dist/app-markdown.d.mts +2 -2
- package/dist/app-markdown.d.ts +2 -2
- package/dist/{chunk-ECKF2BAM.cjs → chunk-2GVF3C2F.cjs} +255 -42
- package/dist/chunk-2NXO5SBY.mjs +57 -0
- package/dist/chunk-3BROEWFY.cjs +39 -0
- package/dist/{chunk-ENOBPDKZ.mjs → chunk-4MRQ5OKQ.mjs} +14 -9
- package/dist/{chunk-R65GCA6A.mjs → chunk-4OCEMK72.mjs} +260 -49
- package/dist/{chunk-6PKXK4TY.mjs → chunk-53ZV6K65.mjs} +1 -1
- package/dist/{chunk-LYIZHJTK.cjs → chunk-5LPHJZSI.cjs} +14 -14
- package/dist/chunk-5NIWBWDD.mjs +97 -0
- package/dist/{chunk-NRDBW4MP.mjs → chunk-7IQQIPRZ.mjs} +10 -0
- package/dist/{chunk-FJGIVDA5.mjs → chunk-7SCCY6SI.mjs} +80 -177
- package/dist/chunk-APDGOKKE.cjs +148 -0
- package/dist/chunk-AZBSVLRM.cjs +132 -0
- package/dist/{chunk-PN676AZF.cjs → chunk-BKPXWRTT.cjs} +6 -6
- package/dist/chunk-CEDPEDNW.cjs +98 -0
- package/dist/chunk-D5RFPV2H.mjs +148 -0
- package/dist/{chunk-BYQVROIP.mjs → chunk-DMRPN25V.mjs} +69 -0
- package/dist/{chunk-724JLMS4.mjs → chunk-F646BZ4Y.mjs} +4 -2
- package/dist/{chunk-C5KVWHIH.cjs → chunk-G2Z5DGMS.cjs} +5 -3
- package/dist/{chunk-L6HYACBE.cjs → chunk-GVNCWSQV.cjs} +145 -127
- package/dist/{chunk-24SP5TGU.mjs → chunk-H4LXPWI2.mjs} +2 -2
- package/dist/chunk-H7BLEEAE.cjs +57 -0
- package/dist/{chunk-JOTUZIM4.cjs → chunk-HUMEHX24.cjs} +2 -2
- package/dist/{chunk-BD3D7EZV.cjs → chunk-IXFOBGLQ.cjs} +9 -3
- package/dist/{chunk-3TB5QGUW.cjs → chunk-JAXDRRRC.cjs} +70 -1
- package/dist/{chunk-32TZ3QTP.cjs → chunk-JDJAPCR2.cjs} +421 -210
- package/dist/{chunk-MHN4UR5U.cjs → chunk-KFZZFZ7J.cjs} +7 -7
- package/dist/chunk-LRJRXXQZ.cjs +109 -0
- package/dist/{chunk-EX4MKHXN.cjs → chunk-LVABUXLA.cjs} +22 -17
- package/dist/{chunk-HCSVR4YZ.mjs → chunk-M3BXTWJM.mjs} +18 -0
- package/dist/{chunk-PYHPXPSW.mjs → chunk-NXO75WY4.mjs} +1 -1
- package/dist/{chunk-BGGWKZ2V.mjs → chunk-OYSGGV6O.mjs} +137 -167
- package/dist/{chunk-JR4QCLJY.cjs → chunk-PDU4P2IC.cjs} +19 -1
- package/dist/chunk-PJEHUSHA.mjs +229 -0
- package/dist/chunk-QGH2RQVF.mjs +132 -0
- package/dist/{chunk-YWMZUGIS.mjs → chunk-R3ZFQJEF.mjs} +247 -34
- package/dist/{chunk-ROQ4C4LJ.cjs → chunk-RACQTC7K.cjs} +274 -371
- package/dist/{chunk-WSOBCAYO.cjs → chunk-RQYTOFQM.cjs} +23 -23
- package/dist/chunk-S34OBRMZ.mjs +109 -0
- package/dist/{chunk-TS4JHGUJ.mjs → chunk-S3ZEMCE6.mjs} +9 -3
- package/dist/{chunk-WWFTAUFG.cjs → chunk-SBH2JLLF.cjs} +12 -2
- package/dist/{chunk-YSLWRWWP.cjs → chunk-SKK6UF5P.cjs} +200 -46
- package/dist/chunk-T7J7E63D.cjs +144 -0
- package/dist/{chunk-SVPGWJZF.mjs → chunk-TESO7EFU.mjs} +125 -107
- package/dist/{chunk-OQ4YXWH4.cjs → chunk-VIVQERJ5.cjs} +320 -351
- package/dist/{chunk-JIYYX7WU.mjs → chunk-VLXNGUKO.mjs} +1 -1
- package/dist/{chunk-OFZUJMCU.mjs → chunk-WPJQN64R.mjs} +195 -41
- package/dist/chunk-XARSG2TG.mjs +144 -0
- package/dist/chunk-XUGFRFD2.mjs +39 -0
- package/dist/{chunk-EH3464KF.cjs → chunk-YBDSTNMH.cjs} +1 -1
- package/dist/{chunk-VLPII2JJ.mjs → chunk-YGZH4T2X.mjs} +1 -1
- package/dist/chunk-YKUEJ3MG.cjs +229 -0
- package/dist/{chunk-4C7KTKX7.mjs → chunk-ZYWJIPKQ.mjs} +1 -1
- package/dist/{client-plugins-CkYwvDJ0.d.mts → client-plugins-Cv0OJtnM.d.mts} +98 -7
- package/dist/{client-plugins-DfeKd0sD.d.ts → client-plugins-kwQuZcWq.d.ts} +98 -7
- package/dist/client-plugins.d.mts +1 -1
- package/dist/client-plugins.d.ts +1 -1
- package/dist/client.cjs +4 -3
- package/dist/client.d.mts +5 -5
- package/dist/client.d.ts +5 -5
- package/dist/client.mjs +3 -2
- package/dist/config.d.mts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/{devtools-N3QLRIQU.mjs → devtools-M22FEFPK.mjs} +4 -4
- package/dist/{devtools-2YHAJYH6.cjs → devtools-MLB3JJMC.cjs} +5 -5
- package/dist/docs.cjs +6 -6
- package/dist/docs.d.mts +2 -2
- package/dist/docs.d.ts +2 -2
- package/dist/docs.mjs +5 -5
- package/dist/index-CQOp8EmB.d.mts +48 -0
- package/dist/index-DAl0QTZS.d.ts +48 -0
- package/dist/index.cjs +41 -24
- package/dist/index.d.mts +15 -14
- package/dist/index.d.ts +15 -14
- package/dist/index.mjs +46 -29
- package/dist/integrations.d.mts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/internal/app-markdown-runtime.d.mts +2 -2
- package/dist/internal/app-markdown-runtime.d.ts +2 -2
- package/dist/internal/build-runtime.cjs +29 -15
- package/dist/internal/build-runtime.d.mts +12 -16
- package/dist/internal/build-runtime.d.ts +12 -16
- package/dist/internal/build-runtime.mjs +28 -14
- package/dist/internal/cli-runtime.cjs +23 -11
- package/dist/internal/cli-runtime.mjs +23 -11
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +5 -1
- package/dist/internal/client-runtime.d.mts +1 -0
- package/dist/internal/client-runtime.d.ts +1 -0
- package/dist/internal/client-runtime.mjs +4 -0
- package/dist/internal/compression-runtime.d.mts +1 -1
- package/dist/internal/compression-runtime.d.ts +1 -1
- package/dist/internal/config-runtime.cjs +5 -5
- package/dist/internal/config-runtime.d.mts +2 -2
- package/dist/internal/config-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/form-actions-client.cjs +18 -0
- package/dist/internal/form-actions-client.d.mts +5 -0
- package/dist/internal/form-actions-client.d.ts +5 -0
- package/dist/internal/form-actions-client.mjs +18 -0
- package/dist/internal/form-actions.cjs +18 -0
- package/dist/internal/form-actions.d.mts +14 -0
- package/dist/internal/form-actions.d.ts +14 -0
- package/dist/internal/form-actions.mjs +18 -0
- package/dist/internal/island-codec.cjs +22 -0
- package/dist/internal/island-codec.d.mts +29 -0
- package/dist/internal/island-codec.d.ts +29 -0
- package/dist/internal/island-codec.mjs +22 -0
- package/dist/internal/island-value-store.cjs +13 -0
- package/dist/internal/island-value-store.d.mts +6 -0
- package/dist/internal/island-value-store.d.ts +6 -0
- package/dist/internal/island-value-store.mjs +13 -0
- package/dist/internal/islands-runtime.cjs +77 -0
- package/dist/internal/islands-runtime.d.mts +57 -0
- package/dist/internal/islands-runtime.d.ts +57 -0
- package/dist/internal/islands-runtime.mjs +77 -0
- package/dist/internal/islands-server.cjs +19 -0
- package/dist/internal/islands-server.d.mts +3 -0
- package/dist/internal/islands-server.d.ts +3 -0
- package/dist/internal/islands-server.mjs +19 -0
- package/dist/internal/islx-client.cjs +5 -0
- package/dist/internal/islx-client.d.mts +2 -0
- package/dist/internal/islx-client.d.ts +2 -0
- package/dist/internal/islx-client.mjs +3 -0
- package/dist/internal/islx-react.cjs +4 -0
- package/dist/internal/islx-react.d.mts +1 -0
- package/dist/internal/islx-react.d.ts +1 -0
- package/dist/internal/islx-react.mjs +2 -0
- package/dist/internal/islx-server.cjs +5 -0
- package/dist/internal/islx-server.d.mts +2 -0
- package/dist/internal/islx-server.d.ts +2 -0
- package/dist/internal/islx-server.mjs +3 -0
- package/dist/internal/isolated-boundary.cjs +4 -3
- package/dist/internal/isolated-boundary.d.mts +13 -1
- package/dist/internal/isolated-boundary.d.ts +13 -1
- package/dist/internal/isolated-boundary.mjs +3 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +24 -7
- package/dist/internal/production-runtime.d.mts +20 -127
- package/dist/internal/production-runtime.d.ts +20 -127
- package/dist/internal/production-runtime.mjs +24 -7
- package/dist/internal/server-tree.cjs +6 -3
- package/dist/internal/server-tree.d.mts +25 -2
- package/dist/internal/server-tree.d.ts +25 -2
- package/dist/internal/server-tree.mjs +7 -4
- package/dist/island-value-protocol-BRayRghM.d.mts +12 -0
- package/dist/island-value-protocol-BRayRghM.d.ts +12 -0
- package/dist/markdown.d.mts +1 -1
- package/dist/markdown.d.ts +1 -1
- package/dist/middleware.d.mts +3 -3
- package/dist/middleware.d.ts +3 -3
- package/dist/navigation.cjs +5 -4
- package/dist/navigation.d.mts +4 -4
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +4 -3
- package/dist/og.d.mts +5 -0
- package/dist/og.d.ts +5 -0
- package/dist/plugin.cjs +18 -12
- package/dist/plugin.d.mts +3 -3
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.mjs +17 -11
- package/dist/{production-runtime-DFC7pgbp.d.ts → production-runtime-5nArjFpn.d.ts} +1 -1
- package/dist/{production-runtime-BTkXQdYy.d.mts → production-runtime-BzsF2z5F.d.mts} +1 -1
- package/dist/query/client.cjs +6 -5
- package/dist/query/client.mjs +2 -1
- package/dist/{render-plan-5rFeWmk7.d.mts → render-plan-B9yQorV4.d.mts} +4 -2
- package/dist/{render-plan-BoAK9xFC.d.ts → render-plan-fg6E_HvL.d.ts} +4 -2
- package/dist/renderer/react/server.cjs +7 -6
- package/dist/renderer/react/server.d.mts +3 -1
- package/dist/renderer/react/server.d.ts +3 -1
- package/dist/renderer/react/server.mjs +5 -4
- package/dist/renderer-client.cjs +5 -4
- package/dist/renderer-client.d.mts +3 -3
- package/dist/renderer-client.d.ts +3 -3
- package/dist/renderer-client.mjs +2 -1
- package/dist/renderer.d.mts +3 -1
- package/dist/renderer.d.ts +3 -1
- package/dist/{request-BxBWigtl.d.mts → request-C4j_g-BH.d.mts} +1 -1
- package/dist/{request-fciwmd3n.d.ts → request-gz8vFK0n.d.ts} +1 -1
- package/dist/request.d.mts +2 -2
- package/dist/request.d.ts +2 -2
- package/dist/{route-rendering-BLZT0IP0.d.ts → route-rendering-DamyKVi3.d.ts} +1 -1
- package/dist/{route-rendering-BCM1QzEf.d.mts → route-rendering-iTTOwz1f.d.mts} +1 -1
- package/dist/{router-DyZJWc1_.d.mts → router-EoSzHlos.d.mts} +1 -1
- package/dist/{router-CkheNX3-.d.ts → router-OVjDqVo8.d.ts} +1 -1
- package/dist/routes.d.mts +1 -1
- package/dist/routes.d.ts +1 -1
- package/dist/rsc-pipeline-LK4K5JFK.mjs +77 -0
- package/dist/rsc-pipeline-YCDRJME4.cjs +77 -0
- package/dist/{runtime-DfU4sKa5.d.ts → runtime-CwiuozLd.d.ts} +1 -1
- package/dist/{runtime-wexvUN5J.d.mts → runtime-DDH4tiuF.d.mts} +1 -1
- package/dist/{schema-dev-notice-5JPE67AI.cjs → schema-dev-notice-77ZL23PL.cjs} +4 -4
- package/dist/{schema-dev-notice-WLPZ6WKU.mjs → schema-dev-notice-BLXOS6U2.mjs} +2 -2
- package/dist/server-plugins.d.mts +2 -2
- package/dist/server-plugins.d.ts +2 -2
- package/dist/server.cjs +56 -38
- package/dist/server.d.mts +15 -10
- package/dist/server.d.ts +15 -10
- package/dist/server.mjs +36 -18
- package/dist/{spa-router-DgsMXqfX.d.mts → spa-router-Br4qFCWf.d.mts} +8 -3
- package/dist/{spa-router-CcejECnG.d.ts → spa-router-BsWUKH73.d.ts} +8 -3
- package/dist/{ssg-1FGaFISl.d.ts → ssg-Csy2vwpi.d.ts} +2 -2
- package/dist/{ssg-Bg4bMMhM.d.mts → ssg-Donyfcxy.d.mts} +2 -2
- package/dist/testing.d.mts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{utils-Dxbh6Hgj.d.ts → utils-Luk72LXC.d.ts} +1 -1
- package/dist/{utils-8wtTYiH4.d.mts → utils-d_k1ZZw0.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +18 -12
- package/dist/vite.d.mts +6 -4
- package/dist/vite.d.ts +6 -4
- package/dist/vite.mjs +17 -11
- package/package.json +53 -1
- package/dist/{chunk-35WS7P2V.mjs → chunk-26CXZR6L.mjs} +3 -3
- package/dist/{chunk-QEILRWVV.cjs → chunk-3XEMGDBF.cjs} +2 -2
- package/dist/{chunk-BPOTSHDO.cjs → chunk-IOAUK4OI.cjs} +2 -2
- package/dist/{chunk-BYR3RQPB.mjs → chunk-T76H22WI.mjs} +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as Metadata,
|
|
1
|
+
import { ad as Metadata, bj as FarmAgentJsonLd, bk as FarmMCPServerRegistration, bl as FarmMarkdownResolvedConfig } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
2
|
|
|
3
3
|
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
4
|
interface FarmMetadataImageReference {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as Metadata,
|
|
1
|
+
import { ad as Metadata, bj as FarmAgentJsonLd, bk as FarmMCPServerRegistration, bl as FarmMarkdownResolvedConfig } from './client-plugins-kwQuZcWq.js';
|
|
2
2
|
|
|
3
3
|
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
4
|
interface FarmMetadataImageReference {
|
package/dist/agent-runtime.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import { n as BundleResultPayload, a as FarmPlugin, ax as FarmIntegration } from './client-plugins-
|
|
2
|
+
import { n as BundleResultPayload, a as FarmPlugin, ax as FarmIntegration } from './client-plugins-Cv0OJtnM.mjs';
|
|
3
3
|
import './lifecycle-DK06VuKP.mjs';
|
|
4
4
|
import './integration-api-DWyMmvrR.mjs';
|
|
5
5
|
import './endpoint-DGZRZHux.mjs';
|
package/dist/agent-runtime.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import { n as BundleResultPayload, a as FarmPlugin, ax as FarmIntegration } from './client-plugins-
|
|
2
|
+
import { n as BundleResultPayload, a as FarmPlugin, ax as FarmIntegration } from './client-plugins-kwQuZcWq.js';
|
|
3
3
|
import './lifecycle-DK06VuKP.js';
|
|
4
4
|
import './integration-api-BuPHMeKz.js';
|
|
5
5
|
import './endpoint-BOE0IAaG.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PluginAPIDispatch } from '../runtime-
|
|
2
|
-
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from '../runtime-
|
|
3
|
-
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-
|
|
1
|
+
import { P as PluginAPIDispatch } from '../runtime-DDH4tiuF.mjs';
|
|
2
|
+
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from '../runtime-DDH4tiuF.mjs';
|
|
3
|
+
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-Cv0OJtnM.mjs';
|
|
4
4
|
import { ViteDevServer } from 'vite';
|
|
5
5
|
import '../types-CnH8DOqo.mjs';
|
|
6
6
|
import { F as FarmI18nRuntime } from '../runtime-CV2UCV-5.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as PluginAPIDispatch } from '../runtime-
|
|
2
|
-
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from '../runtime-
|
|
3
|
-
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-
|
|
1
|
+
import { P as PluginAPIDispatch } from '../runtime-CwiuozLd.js';
|
|
2
|
+
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from '../runtime-CwiuozLd.js';
|
|
3
|
+
import { F as FarmRouteRuntimeConfig, a as FarmPlugin } from '../client-plugins-kwQuZcWq.js';
|
|
4
4
|
import { ViteDevServer } from 'vite';
|
|
5
5
|
import '../types-CnH8DOqo.js';
|
|
6
6
|
import { F as FarmI18nRuntime } from '../runtime-BgDQzBiu.js';
|
package/dist/api/runtime.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as isEndpointFailure, p as parseRouteSchema } from '../endpoint-DGZRZHux.mjs';
|
|
2
|
-
export { f as APIRouteShapeSource, A as API_ROUTE_METHODS, d as createEndpointFailureResponse, c as createStaticAPIRouteMatcherAtBasePath, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, b as isFarmAPIPathname, a as isWebResponse, m as matchAPIRouteAtBasePath, h as mergePluginAPIRoutes, n as normalizeRouteResponse, e as registerAPIRouteShape, r as resolveAPIRouteEndpoint } from '../runtime-
|
|
2
|
+
export { f as APIRouteShapeSource, A as API_ROUTE_METHODS, d as createEndpointFailureResponse, c as createStaticAPIRouteMatcherAtBasePath, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, b as isFarmAPIPathname, a as isWebResponse, m as matchAPIRouteAtBasePath, h as mergePluginAPIRoutes, n as normalizeRouteResponse, e as registerAPIRouteShape, r as resolveAPIRouteEndpoint } from '../runtime-DDH4tiuF.mjs';
|
|
3
3
|
export { A as APIRouteMatch, b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.mjs';
|
|
4
|
-
export {
|
|
4
|
+
export { ba as FarmMCPCatalogDetails, bk as FarmMCPServerRegistration, bm as _findFarmMCPEndpointTool, bn as _publishFarmMCPCatalog, bo as registerFarmMCPServer } from '../client-plugins-Cv0OJtnM.mjs';
|
|
5
5
|
import '../cache.mjs';
|
|
6
6
|
import '../cache-invalidation-BD0z_lfu.mjs';
|
|
7
7
|
import '../integration-api-DWyMmvrR.mjs';
|
package/dist/api/runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as isEndpointFailure, p as parseRouteSchema } from '../endpoint-BOE0IAaG.js';
|
|
2
|
-
export { f as APIRouteShapeSource, A as API_ROUTE_METHODS, d as createEndpointFailureResponse, c as createStaticAPIRouteMatcherAtBasePath, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, b as isFarmAPIPathname, a as isWebResponse, m as matchAPIRouteAtBasePath, h as mergePluginAPIRoutes, n as normalizeRouteResponse, e as registerAPIRouteShape, r as resolveAPIRouteEndpoint } from '../runtime-
|
|
2
|
+
export { f as APIRouteShapeSource, A as API_ROUTE_METHODS, d as createEndpointFailureResponse, c as createStaticAPIRouteMatcherAtBasePath, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, b as isFarmAPIPathname, a as isWebResponse, m as matchAPIRouteAtBasePath, h as mergePluginAPIRoutes, n as normalizeRouteResponse, e as registerAPIRouteShape, r as resolveAPIRouteEndpoint } from '../runtime-CwiuozLd.js';
|
|
3
3
|
export { A as APIRouteMatch, b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from '../route-pattern-W-SsJGSp.js';
|
|
4
|
-
export {
|
|
4
|
+
export { ba as FarmMCPCatalogDetails, bk as FarmMCPServerRegistration, bm as _findFarmMCPEndpointTool, bn as _publishFarmMCPCatalog, bo as registerFarmMCPServer } from '../client-plugins-kwQuZcWq.js';
|
|
5
5
|
import '../cache.js';
|
|
6
6
|
import '../cache-invalidation-BD0z_lfu.js';
|
|
7
7
|
import '../integration-api-BuPHMeKz.js';
|
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkG2Z5DGMScjs = require('./chunk-G2Z5DGMS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -155,4 +155,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
exports.APIClientError = _chunkGB7LDGY5cjs.APIClientError; exports.APIRouteConflictError = _chunkS7MTDRYAcjs.APIRouteConflictError; exports.APIRouteManager = _chunkS7MTDRYAcjs.APIRouteManager; exports.API_ROUTE_METHODS = _chunkQIBP5EFAcjs.API_ROUTE_METHODS; exports.DEFAULT_FARM_API_BASE_PATH = _chunkS3A45T7Fcjs.DEFAULT_FARM_API_BASE_PATH; exports.DELETE = _chunkWU7ZS3EMcjs.DELETE; exports.EndpointFailure = _chunkWU7ZS3EMcjs.EndpointFailure; exports.FARM_API_ROUTE_META_SYMBOL = _chunkGB7LDGY5cjs.FARM_API_ROUTE_META_SYMBOL; exports.FARM_API_ROUTE_REF_SYMBOL = _chunkGB7LDGY5cjs.FARM_API_ROUTE_REF_SYMBOL; exports.GET = _chunkWU7ZS3EMcjs.GET; exports.HEAD = _chunkWU7ZS3EMcjs.HEAD; exports.OPTIONS = _chunkWU7ZS3EMcjs.OPTIONS; exports.PATCH = _chunkWU7ZS3EMcjs.PATCH; exports.POST = _chunkWU7ZS3EMcjs.POST; exports.PUT = _chunkWU7ZS3EMcjs.PUT; exports.QUERY = _chunkWU7ZS3EMcjs.QUERY; exports.applyServerFnOptimisticUpdates = _chunkGB7LDGY5cjs.applyServerFnOptimisticUpdates; exports.createAPIClient = _chunkGB7LDGY5cjs.createAPIClient; exports.createApiClients = _chunkGB7LDGY5cjs.createApiClients; exports.createEndpoint = _chunkWU7ZS3EMcjs.createEndpoint; exports.createRouteFactory = _chunkWU7ZS3EMcjs.createRouteFactory; exports.createServerAPIClient = _chunkGB7LDGY5cjs.createServerAPIClient; exports.farmApiPlugin =
|
|
158
|
+
exports.APIClientError = _chunkGB7LDGY5cjs.APIClientError; exports.APIRouteConflictError = _chunkS7MTDRYAcjs.APIRouteConflictError; exports.APIRouteManager = _chunkS7MTDRYAcjs.APIRouteManager; exports.API_ROUTE_METHODS = _chunkQIBP5EFAcjs.API_ROUTE_METHODS; exports.DEFAULT_FARM_API_BASE_PATH = _chunkS3A45T7Fcjs.DEFAULT_FARM_API_BASE_PATH; exports.DELETE = _chunkWU7ZS3EMcjs.DELETE; exports.EndpointFailure = _chunkWU7ZS3EMcjs.EndpointFailure; exports.FARM_API_ROUTE_META_SYMBOL = _chunkGB7LDGY5cjs.FARM_API_ROUTE_META_SYMBOL; exports.FARM_API_ROUTE_REF_SYMBOL = _chunkGB7LDGY5cjs.FARM_API_ROUTE_REF_SYMBOL; exports.GET = _chunkWU7ZS3EMcjs.GET; exports.HEAD = _chunkWU7ZS3EMcjs.HEAD; exports.OPTIONS = _chunkWU7ZS3EMcjs.OPTIONS; exports.PATCH = _chunkWU7ZS3EMcjs.PATCH; exports.POST = _chunkWU7ZS3EMcjs.POST; exports.PUT = _chunkWU7ZS3EMcjs.PUT; exports.QUERY = _chunkWU7ZS3EMcjs.QUERY; exports.applyServerFnOptimisticUpdates = _chunkGB7LDGY5cjs.applyServerFnOptimisticUpdates; exports.createAPIClient = _chunkGB7LDGY5cjs.createAPIClient; exports.createApiClients = _chunkGB7LDGY5cjs.createApiClients; exports.createEndpoint = _chunkWU7ZS3EMcjs.createEndpoint; exports.createRouteFactory = _chunkWU7ZS3EMcjs.createRouteFactory; exports.createServerAPIClient = _chunkGB7LDGY5cjs.createServerAPIClient; exports.farmApiPlugin = _chunkG2Z5DGMScjs.farmApiPlugin; exports.getAPIRouteRefMetadata = _chunkGB7LDGY5cjs.getAPIRouteRefMetadata; exports.getAllowedAPIRouteMethods = _chunkQIBP5EFAcjs.getAllowedAPIRouteMethods; exports.getFarmAPIBaseURL = _chunkS3A45T7Fcjs.getFarmAPIBaseURL; exports.invokeAPIRouteEndpoint = _chunkQIBP5EFAcjs.invokeAPIRouteEndpoint; exports.isAPIRouteRef = _chunkGB7LDGY5cjs.isAPIRouteRef; exports.isEndpointFailure = _chunkWU7ZS3EMcjs.isEndpointFailure; exports.isFarmAPIStream = _chunkARJWXNQLcjs.isFarmAPIStream; exports.isJSONStreamResponse = _chunkARJWXNQLcjs.isJSONStreamResponse; exports.isMultipartSchema = _chunkARJWXNQLcjs.isMultipartSchema; exports.isWebResponse = _chunkQIBP5EFAcjs.isWebResponse; exports.jsonStream = _chunkARJWXNQLcjs.jsonStream; exports.matchAPIRoute = _chunkG7HXGLECcjs.matchAPIRoute; exports.multipart = _chunkARJWXNQLcjs.multipart; exports.normalizeFarmAPIBasePath = _chunkS3A45T7Fcjs.normalizeFarmAPIBasePath; exports.normalizeFarmAPIConfig = _chunkS3A45T7Fcjs.normalizeFarmAPIConfig; exports.normalizeRouteResponse = _chunkQIBP5EFAcjs.normalizeRouteResponse; exports.readJSONStream = _chunkARJWXNQLcjs.readJSONStream; exports.resolveAPIRouteEndpoint = _chunkQIBP5EFAcjs.resolveAPIRouteEndpoint; exports.resolveFarmAPIConfig = _chunkS3A45T7Fcjs.resolveFarmAPIConfig; exports.resolveFarmAPIRequestURL = _chunkS3A45T7Fcjs.resolveFarmAPIRequestURL; exports.resolveFarmAPIServerBasePath = _chunkKNBBQHO2cjs.resolveFarmAPIServerBasePath; exports.resolvePluginRoutes = _chunkWU7ZS3EMcjs.resolvePluginRoutes; exports.resolveServerFnInvalidateTargets = _chunkGB7LDGY5cjs.resolveServerFnInvalidateTargets; exports.settleServerFnOptimisticUpdates = _chunkGB7LDGY5cjs.settleServerFnOptimisticUpdates; exports.toFormData = _chunkARJWXNQLcjs.toFormData;
|
package/dist/api.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { A as AnyEndpointMiddleware, D as DELETE, k as EndpointErrorContracts, h as EndpointErrorDefinition, j as EndpointErrorDefinitions, l as EndpointErrorHandler, g as EndpointErrorSchema, m as EndpointFail, f as EndpointFailure, w as EndpointHandler, t as EndpointInvalidationContext, s as EndpointInvalidationTarget, u as EndpointInvalidations, E as EndpointMCPMetadata, a as EndpointMCPOptions, r as EndpointMiddleware, q as EndpointMiddlewareContext, c as EndpointMiddlewareResult, b as EndpointOpenAPIMetadata, v as EndpointOptions, n as EndpointParamValue, o as EndpointParams, K as FarmAPIStream, J as FarmStreamResponse, G as GET, H as HEAD, I as InferEndpointMiddlewareContext, M as MultipartField, F as MultipartSchema, B as MultipartValues, O as OPTIONS, z as PATCH, P as POST, y as PUT, Q as QUERY, T as TypedEndpoint, C as TypedFormData, x as createEndpoint, i as isEndpointFailure, X as isFarmAPIStream, V as isJSONStreamResponse, N as isMultipartSchema, U as jsonStream, L as multipart, W as readJSONStream, S as toFormData } from './endpoint-DGZRZHux.mjs';
|
|
2
2
|
export { APIRoute, APIRouteConflictError, APIRouteHandlerOptions, APIRouteManager, APIRouteManagerOptions } from './api/route-manager.mjs';
|
|
3
3
|
export { v as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, s as APIQueryPrimitive, t as APIQueryValue, g as APIResult, K as APIRouteManifest, A as APIRouteRefMetadata, x as ApiClients, C as CacheKey, n as CacheOptions, l as CachePolicy, m as CacheScope, r as ClientOptions, a as FARM_API_ROUTE_META_SYMBOL, F as FARM_API_ROUTE_REF_SYMBOL, p as InvalidateOptions, I as InvalidateTarget, q as OptimisticOptions, O as OptimisticUpdate, j as RequestEvent, k as ResponseEvent, o as RetryAttemptContext, R as RetryOptions, u as RouteAPIClient, w as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, f as StatusEvent, e as StatusPhase, G as applyServerFnOptimisticUpdates, z as createAPIClient, y as createApiClients, E as createServerAPIClient, D as getAPIRouteRefMetadata, B as isAPIRouteRef, J as resolveServerFnInvalidateTargets, H as settleServerFnOptimisticUpdates } from './api-client-Dk9QOLwr.mjs';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
4
|
+
import { br as ResolvedFarmAPIConfig } from './client-plugins-Cv0OJtnM.mjs';
|
|
5
|
+
export { es as DEFAULT_FARM_API_BASE_PATH, ev as FarmAPIConfig, et as FarmAPIConfigResolverContext, eu as FarmAPIConfigValue, ez as getFarmAPIBaseURL, ey as normalizeFarmAPIBasePath, ex as normalizeFarmAPIConfig, ew as resolveFarmAPIConfig, eA as resolveFarmAPIRequestURL } from './client-plugins-Cv0OJtnM.mjs';
|
|
6
6
|
import { Plugin } from 'vite';
|
|
7
7
|
import { c as PluginRoutesFactory } from './integration-api-DWyMmvrR.mjs';
|
|
8
8
|
export { t as PluginAPIRouter, P as PluginLocalAPI, a as PluginLocalAPIEndpoint, b as PluginRoutes, R as RouteDefinition, r as RouteFactory, o as RouteInputSchemas, p as RouteJSON, d as RouteMethod, q as RouteOptions, n as RoutePathParams, s as createRouteFactory, u as resolvePluginRoutes } from './integration-api-DWyMmvrR.mjs';
|
|
9
|
-
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from './runtime-
|
|
9
|
+
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from './runtime-DDH4tiuF.mjs';
|
|
10
10
|
export { A as APIRouteMatch, b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from './route-pattern-W-SsJGSp.mjs';
|
|
11
11
|
import './cache.mjs';
|
|
12
12
|
import './cache-invalidation-BD0z_lfu.mjs';
|
|
@@ -64,6 +64,11 @@ declare function resolveFarmAPIServerBasePath(config: ResolvedFarmAPIConfig): st
|
|
|
64
64
|
interface FarmApiPluginOptions {
|
|
65
65
|
/** Source directory containing the api folder (default: 'src') */
|
|
66
66
|
srcDir?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Directory of file API routes, relative to the project root. Defaults to `<srcDir>/api`;
|
|
69
|
+
* the RSC pipeline points it at `<routes dir>/api`, where its production server finds them.
|
|
70
|
+
*/
|
|
71
|
+
apiDir?: string;
|
|
67
72
|
/** Enable debug logging */
|
|
68
73
|
debug?: boolean;
|
|
69
74
|
/** Maximum request body size, for example `"10mb"`. */
|
package/dist/api.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { A as AnyEndpointMiddleware, D as DELETE, k as EndpointErrorContracts, h as EndpointErrorDefinition, j as EndpointErrorDefinitions, l as EndpointErrorHandler, g as EndpointErrorSchema, m as EndpointFail, f as EndpointFailure, w as EndpointHandler, t as EndpointInvalidationContext, s as EndpointInvalidationTarget, u as EndpointInvalidations, E as EndpointMCPMetadata, a as EndpointMCPOptions, r as EndpointMiddleware, q as EndpointMiddlewareContext, c as EndpointMiddlewareResult, b as EndpointOpenAPIMetadata, v as EndpointOptions, n as EndpointParamValue, o as EndpointParams, K as FarmAPIStream, J as FarmStreamResponse, G as GET, H as HEAD, I as InferEndpointMiddlewareContext, M as MultipartField, F as MultipartSchema, B as MultipartValues, O as OPTIONS, z as PATCH, P as POST, y as PUT, Q as QUERY, T as TypedEndpoint, C as TypedFormData, x as createEndpoint, i as isEndpointFailure, X as isFarmAPIStream, V as isJSONStreamResponse, N as isMultipartSchema, U as jsonStream, L as multipart, W as readJSONStream, S as toFormData } from './endpoint-BOE0IAaG.js';
|
|
2
2
|
export { APIRoute, APIRouteConflictError, APIRouteHandlerOptions, APIRouteManager, APIRouteManagerOptions } from './api/route-manager.js';
|
|
3
3
|
export { v as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, s as APIQueryPrimitive, t as APIQueryValue, g as APIResult, K as APIRouteManifest, A as APIRouteRefMetadata, x as ApiClients, C as CacheKey, n as CacheOptions, l as CachePolicy, m as CacheScope, r as ClientOptions, a as FARM_API_ROUTE_META_SYMBOL, F as FARM_API_ROUTE_REF_SYMBOL, p as InvalidateOptions, I as InvalidateTarget, q as OptimisticOptions, O as OptimisticUpdate, j as RequestEvent, k as ResponseEvent, o as RetryAttemptContext, R as RetryOptions, u as RouteAPIClient, w as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, f as StatusEvent, e as StatusPhase, G as applyServerFnOptimisticUpdates, z as createAPIClient, y as createApiClients, E as createServerAPIClient, D as getAPIRouteRefMetadata, B as isAPIRouteRef, J as resolveServerFnInvalidateTargets, H as settleServerFnOptimisticUpdates } from './api-client-BJv9mTbO.js';
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
4
|
+
import { br as ResolvedFarmAPIConfig } from './client-plugins-kwQuZcWq.js';
|
|
5
|
+
export { es as DEFAULT_FARM_API_BASE_PATH, ev as FarmAPIConfig, et as FarmAPIConfigResolverContext, eu as FarmAPIConfigValue, ez as getFarmAPIBaseURL, ey as normalizeFarmAPIBasePath, ex as normalizeFarmAPIConfig, ew as resolveFarmAPIConfig, eA as resolveFarmAPIRequestURL } from './client-plugins-kwQuZcWq.js';
|
|
6
6
|
import { Plugin } from 'vite';
|
|
7
7
|
import { c as PluginRoutesFactory } from './integration-api-BuPHMeKz.js';
|
|
8
8
|
export { t as PluginAPIRouter, P as PluginLocalAPI, a as PluginLocalAPIEndpoint, b as PluginRoutes, R as RouteDefinition, r as RouteFactory, o as RouteInputSchemas, p as RouteJSON, d as RouteMethod, q as RouteOptions, n as RoutePathParams, s as createRouteFactory, u as resolvePluginRoutes } from './integration-api-BuPHMeKz.js';
|
|
9
|
-
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from './runtime-
|
|
9
|
+
export { A as API_ROUTE_METHODS, g as getAllowedAPIRouteMethods, i as invokeAPIRouteEndpoint, a as isWebResponse, n as normalizeRouteResponse, r as resolveAPIRouteEndpoint } from './runtime-CwiuozLd.js';
|
|
10
10
|
export { A as APIRouteMatch, b as APIRouteParamValue, a as APIRouteParams, m as matchAPIRoute } from './route-pattern-W-SsJGSp.js';
|
|
11
11
|
import './cache.js';
|
|
12
12
|
import './cache-invalidation-BD0z_lfu.js';
|
|
@@ -64,6 +64,11 @@ declare function resolveFarmAPIServerBasePath(config: ResolvedFarmAPIConfig): st
|
|
|
64
64
|
interface FarmApiPluginOptions {
|
|
65
65
|
/** Source directory containing the api folder (default: 'src') */
|
|
66
66
|
srcDir?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Directory of file API routes, relative to the project root. Defaults to `<srcDir>/api`;
|
|
69
|
+
* the RSC pipeline points it at `<routes dir>/api`, where its production server finds them.
|
|
70
|
+
*/
|
|
71
|
+
apiDir?: string;
|
|
67
72
|
/** Enable debug logging */
|
|
68
73
|
debug?: boolean;
|
|
69
74
|
/** Maximum request body size, for example `"10mb"`. */
|
package/dist/api.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aB as FarmConfig, a8 as ParsedRoute, bp as ResolvedFarmRouteRuntimeConfig, bq as ApplicationMetadataRouteKind, ak as RouteModule, b0 as LayoutModule, b7 as SSGCollectionResult, aa as FarmRequest, ab as FarmResponse, br as ResolvedFarmAPIConfig, bs as FarmDocsResolvedConfig, bl as FarmMarkdownResolvedConfig, am as FarmMdxResolvedConfig, _ as ResolvedFarmDevtoolsConfig, bt as ResolvedFarmDevIndicatorsConfig, bu as ResolvedFarmAuthConfig, bv as ResolvedFarmPerformanceConfig, bw as ResolvedFarmSecurityConfig } from './client-plugins-kwQuZcWq.js';
|
|
2
2
|
import { F as FarmWorkflowsResolvedConfig } from './workflows-IWP1ddBm.js';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config-BpH1q5R8.js';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
6
|
-
import { P as ProgrammaticClientRoutes } from './ssg-
|
|
6
|
+
import { P as ProgrammaticClientRoutes } from './ssg-Csy2vwpi.js';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
8
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.js';
|
|
9
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-
|
|
9
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-6yRebHk7.js';
|
|
10
10
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.js';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan-fg6E_HvL.js';
|
|
12
12
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.js';
|
|
13
13
|
import { F as FarmI18nRuntime } from './runtime-BgDQzBiu.js';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.js';
|
|
@@ -368,12 +368,16 @@ declare class ServerRenderer {
|
|
|
368
368
|
private collectDevStyleLinks;
|
|
369
369
|
private createLayoutBoundary;
|
|
370
370
|
private wrapClientGraph;
|
|
371
|
+
/** The page a hydrating layout keeps as server HTML: islands again, or a server tree. */
|
|
372
|
+
private isolateServerPage;
|
|
371
373
|
private renderElementToCompleteHTML;
|
|
372
374
|
/**
|
|
373
375
|
* Buffered render carrying document-head markup for renderers that emit it
|
|
374
376
|
* during render (e.g. <svelte:head>). Other renderers return an empty head.
|
|
375
377
|
*/
|
|
376
378
|
private renderElementToDocumentParts;
|
|
379
|
+
/** Islands mode sends large prop values once, keyed by content (RFC 0003). */
|
|
380
|
+
private islandValues;
|
|
377
381
|
/**
|
|
378
382
|
* Render the route tree used by client navigation without producing a second
|
|
379
383
|
* document response. Layout markers let the browser preserve the longest
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aB as FarmConfig, a8 as ParsedRoute, bp as ResolvedFarmRouteRuntimeConfig, bq as ApplicationMetadataRouteKind, ak as RouteModule, b0 as LayoutModule, b7 as SSGCollectionResult, aa as FarmRequest, ab as FarmResponse, br as ResolvedFarmAPIConfig, bs as FarmDocsResolvedConfig, bl as FarmMarkdownResolvedConfig, am as FarmMdxResolvedConfig, _ as ResolvedFarmDevtoolsConfig, bt as ResolvedFarmDevIndicatorsConfig, bu as ResolvedFarmAuthConfig, bv as ResolvedFarmPerformanceConfig, bw as ResolvedFarmSecurityConfig } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
2
|
import { F as FarmWorkflowsResolvedConfig } from './workflows-IWP1ddBm.mjs';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.mjs';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config-BpH1q5R8.mjs';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
|
|
6
|
-
import { P as ProgrammaticClientRoutes } from './ssg-
|
|
6
|
+
import { P as ProgrammaticClientRoutes } from './ssg-Donyfcxy.mjs';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
8
|
import { F as FarmIslandStrategy } from './island-CfGru1MO.mjs';
|
|
9
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-
|
|
9
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp-3KDz4hr9.mjs';
|
|
10
10
|
import { FarmServerRendererRuntime, FarmRenderer } from './renderer.mjs';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan-B9yQorV4.mjs';
|
|
12
12
|
import { R as ResolvedFarmI18nConfig } from './types-CnH8DOqo.mjs';
|
|
13
13
|
import { F as FarmI18nRuntime } from './runtime-CV2UCV-5.mjs';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types-DQnyD3VD.mjs';
|
|
@@ -368,12 +368,16 @@ declare class ServerRenderer {
|
|
|
368
368
|
private collectDevStyleLinks;
|
|
369
369
|
private createLayoutBoundary;
|
|
370
370
|
private wrapClientGraph;
|
|
371
|
+
/** The page a hydrating layout keeps as server HTML: islands again, or a server tree. */
|
|
372
|
+
private isolateServerPage;
|
|
371
373
|
private renderElementToCompleteHTML;
|
|
372
374
|
/**
|
|
373
375
|
* Buffered render carrying document-head markup for renderers that emit it
|
|
374
376
|
* during render (e.g. <svelte:head>). Other renderers return an empty head.
|
|
375
377
|
*/
|
|
376
378
|
private renderElementToDocumentParts;
|
|
379
|
+
/** Islands mode sends large prop values once, keyed by content (RFC 0003). */
|
|
380
|
+
private islandValues;
|
|
377
381
|
/**
|
|
378
382
|
* Render the route tree used by client navigation without producing a second
|
|
379
383
|
* document response. Layout markers let the browser preserve the longest
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ba as FarmMCPCatalogDetails, bb as ResolvedFarmAppManifestConfig } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
|
+
|
|
3
|
+
interface FarmAppManifestWebMCPTool {
|
|
4
|
+
name: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
readOnlyHint?: boolean;
|
|
8
|
+
destructiveHint?: boolean;
|
|
9
|
+
idempotentHint?: boolean;
|
|
10
|
+
openWorldHint?: boolean;
|
|
11
|
+
/** The input JSON Schema when the source writes it out; omitted when it's computed. */
|
|
12
|
+
inputSchema?: Record<string, unknown>;
|
|
13
|
+
/** `"computed"` when the schema is built at runtime, so it can't be read from source. */
|
|
14
|
+
inputSchemaSource: "literal" | "computed" | "none";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type FarmAppManifestToolSource = "endpoint" | "defineTool" | "serverFunction";
|
|
18
|
+
interface FarmAppManifestTool {
|
|
19
|
+
name: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
/** How the app defined it: an API endpoint, `defineTool`, or a server function. */
|
|
23
|
+
source: FarmAppManifestToolSource;
|
|
24
|
+
readOnlyHint?: boolean;
|
|
25
|
+
destructiveHint?: boolean;
|
|
26
|
+
idempotentHint?: boolean;
|
|
27
|
+
openWorldHint?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* JSON Schemas, when the server published them (`@farm.js/mcp` does) and
|
|
30
|
+
* `agent.manifest.mcp.schemas` isn't `false`.
|
|
31
|
+
*/
|
|
32
|
+
inputSchema?: Readonly<Record<string, unknown>>;
|
|
33
|
+
outputSchema?: Readonly<Record<string, unknown>>;
|
|
34
|
+
}
|
|
35
|
+
type ServerDetails = NonNullable<FarmMCPCatalogDetails>;
|
|
36
|
+
interface FarmAppManifestServer {
|
|
37
|
+
name: string;
|
|
38
|
+
version: string;
|
|
39
|
+
path: string;
|
|
40
|
+
/**
|
|
41
|
+
* `"required"` when the server runs `authorize` or a guard covers its path: an anonymous
|
|
42
|
+
* client lists nothing, so `tools`, `resources` and `prompts` are empty.
|
|
43
|
+
*/
|
|
44
|
+
authorization: "none" | "required";
|
|
45
|
+
tools: FarmAppManifestTool[];
|
|
46
|
+
resources: NonNullable<ServerDetails["resources"]>;
|
|
47
|
+
prompts: NonNullable<ServerDetails["prompts"]>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The manifest document. A section the app hid with `agent.manifest` is `null`, unlike an
|
|
51
|
+
* empty list, which means there is nothing to show.
|
|
52
|
+
*/
|
|
53
|
+
interface FarmAppManifest {
|
|
54
|
+
schemaVersion: 1;
|
|
55
|
+
/** `farm`, `renderer` and `build` are left out when `agent.manifest.app` hides them. */
|
|
56
|
+
app: {
|
|
57
|
+
farm?: string;
|
|
58
|
+
renderer?: string;
|
|
59
|
+
basePath: string;
|
|
60
|
+
build?: string;
|
|
61
|
+
} | null;
|
|
62
|
+
/**
|
|
63
|
+
* Installed versions of the app's `@farm.js/*` and `@farming-labs/*` packages; `null`
|
|
64
|
+
* versions with `agent.manifest.packages: "names"`.
|
|
65
|
+
*/
|
|
66
|
+
packages: Record<string, string | null> | null;
|
|
67
|
+
mcp: {
|
|
68
|
+
servers: FarmAppManifestServer[];
|
|
69
|
+
} | null;
|
|
70
|
+
/** Browser tools from `@farm.js/webmcp`, read from the app's source. */
|
|
71
|
+
webmcp: {
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
tools: FarmAppManifestWebMCPTool[];
|
|
74
|
+
} | null;
|
|
75
|
+
/** The app's integrations: which slot each fills and which provider, never their config. */
|
|
76
|
+
integrations: {
|
|
77
|
+
key: string;
|
|
78
|
+
category: string;
|
|
79
|
+
type: string;
|
|
80
|
+
}[] | null;
|
|
81
|
+
agent: {
|
|
82
|
+
apiCatalog: string | null;
|
|
83
|
+
llmsTxt: boolean;
|
|
84
|
+
openapi: string | null;
|
|
85
|
+
} | null;
|
|
86
|
+
plugins: string[] | null;
|
|
87
|
+
}
|
|
88
|
+
/** What the manifest reads from config; serializable, so a production build embeds it. */
|
|
89
|
+
interface FarmAppManifestInput {
|
|
90
|
+
renderer: string;
|
|
91
|
+
basePath: string;
|
|
92
|
+
/** The build's ID, or "development". */
|
|
93
|
+
build: string;
|
|
94
|
+
packages: Record<string, string>;
|
|
95
|
+
webmcp: NonNullable<FarmAppManifest["webmcp"]>;
|
|
96
|
+
integrations: NonNullable<FarmAppManifest["integrations"]>;
|
|
97
|
+
agent: NonNullable<FarmAppManifest["agent"]>;
|
|
98
|
+
plugins: string[];
|
|
99
|
+
/** Resolved `agent.manifest` options; every section is shown without them. */
|
|
100
|
+
sections?: ResolvedFarmAppManifestConfig;
|
|
101
|
+
/**
|
|
102
|
+
* The default read-only MCP server (`agent.mcp`) while the app would serve it. Set by the
|
|
103
|
+
* server at runtime, not serialized: it answers only while no other MCP server is listed.
|
|
104
|
+
*/
|
|
105
|
+
defaultMCP?: () => {
|
|
106
|
+
name: string;
|
|
107
|
+
version: string;
|
|
108
|
+
path: string;
|
|
109
|
+
} | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Whether a guard written for a path (middleware, an integration's `protectedRoutes`)
|
|
112
|
+
* covers an MCP server's endpoint. Set by the server at runtime: such a server is listed
|
|
113
|
+
* as requiring authorization, without its tools, resources or prompts.
|
|
114
|
+
*/
|
|
115
|
+
guardCoversPath?: (path: string) => boolean;
|
|
116
|
+
}
|
|
117
|
+
/** Answers `/.well-known/farmjs.json`: the same public document for every request. */
|
|
118
|
+
declare function createFarmAppManifestResponse(request: Request, input: FarmAppManifestInput): Promise<Response>;
|
|
119
|
+
|
|
120
|
+
export { type FarmAppManifest as F, type FarmAppManifestServer as a, type FarmAppManifestTool as b, createFarmAppManifestResponse as c };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ba as FarmMCPCatalogDetails, bb as ResolvedFarmAppManifestConfig } from './client-plugins-kwQuZcWq.js';
|
|
2
|
+
|
|
3
|
+
interface FarmAppManifestWebMCPTool {
|
|
4
|
+
name: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
readOnlyHint?: boolean;
|
|
8
|
+
destructiveHint?: boolean;
|
|
9
|
+
idempotentHint?: boolean;
|
|
10
|
+
openWorldHint?: boolean;
|
|
11
|
+
/** The input JSON Schema when the source writes it out; omitted when it's computed. */
|
|
12
|
+
inputSchema?: Record<string, unknown>;
|
|
13
|
+
/** `"computed"` when the schema is built at runtime, so it can't be read from source. */
|
|
14
|
+
inputSchemaSource: "literal" | "computed" | "none";
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type FarmAppManifestToolSource = "endpoint" | "defineTool" | "serverFunction";
|
|
18
|
+
interface FarmAppManifestTool {
|
|
19
|
+
name: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
/** How the app defined it: an API endpoint, `defineTool`, or a server function. */
|
|
23
|
+
source: FarmAppManifestToolSource;
|
|
24
|
+
readOnlyHint?: boolean;
|
|
25
|
+
destructiveHint?: boolean;
|
|
26
|
+
idempotentHint?: boolean;
|
|
27
|
+
openWorldHint?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* JSON Schemas, when the server published them (`@farm.js/mcp` does) and
|
|
30
|
+
* `agent.manifest.mcp.schemas` isn't `false`.
|
|
31
|
+
*/
|
|
32
|
+
inputSchema?: Readonly<Record<string, unknown>>;
|
|
33
|
+
outputSchema?: Readonly<Record<string, unknown>>;
|
|
34
|
+
}
|
|
35
|
+
type ServerDetails = NonNullable<FarmMCPCatalogDetails>;
|
|
36
|
+
interface FarmAppManifestServer {
|
|
37
|
+
name: string;
|
|
38
|
+
version: string;
|
|
39
|
+
path: string;
|
|
40
|
+
/**
|
|
41
|
+
* `"required"` when the server runs `authorize` or a guard covers its path: an anonymous
|
|
42
|
+
* client lists nothing, so `tools`, `resources` and `prompts` are empty.
|
|
43
|
+
*/
|
|
44
|
+
authorization: "none" | "required";
|
|
45
|
+
tools: FarmAppManifestTool[];
|
|
46
|
+
resources: NonNullable<ServerDetails["resources"]>;
|
|
47
|
+
prompts: NonNullable<ServerDetails["prompts"]>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The manifest document. A section the app hid with `agent.manifest` is `null`, unlike an
|
|
51
|
+
* empty list, which means there is nothing to show.
|
|
52
|
+
*/
|
|
53
|
+
interface FarmAppManifest {
|
|
54
|
+
schemaVersion: 1;
|
|
55
|
+
/** `farm`, `renderer` and `build` are left out when `agent.manifest.app` hides them. */
|
|
56
|
+
app: {
|
|
57
|
+
farm?: string;
|
|
58
|
+
renderer?: string;
|
|
59
|
+
basePath: string;
|
|
60
|
+
build?: string;
|
|
61
|
+
} | null;
|
|
62
|
+
/**
|
|
63
|
+
* Installed versions of the app's `@farm.js/*` and `@farming-labs/*` packages; `null`
|
|
64
|
+
* versions with `agent.manifest.packages: "names"`.
|
|
65
|
+
*/
|
|
66
|
+
packages: Record<string, string | null> | null;
|
|
67
|
+
mcp: {
|
|
68
|
+
servers: FarmAppManifestServer[];
|
|
69
|
+
} | null;
|
|
70
|
+
/** Browser tools from `@farm.js/webmcp`, read from the app's source. */
|
|
71
|
+
webmcp: {
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
tools: FarmAppManifestWebMCPTool[];
|
|
74
|
+
} | null;
|
|
75
|
+
/** The app's integrations: which slot each fills and which provider, never their config. */
|
|
76
|
+
integrations: {
|
|
77
|
+
key: string;
|
|
78
|
+
category: string;
|
|
79
|
+
type: string;
|
|
80
|
+
}[] | null;
|
|
81
|
+
agent: {
|
|
82
|
+
apiCatalog: string | null;
|
|
83
|
+
llmsTxt: boolean;
|
|
84
|
+
openapi: string | null;
|
|
85
|
+
} | null;
|
|
86
|
+
plugins: string[] | null;
|
|
87
|
+
}
|
|
88
|
+
/** What the manifest reads from config; serializable, so a production build embeds it. */
|
|
89
|
+
interface FarmAppManifestInput {
|
|
90
|
+
renderer: string;
|
|
91
|
+
basePath: string;
|
|
92
|
+
/** The build's ID, or "development". */
|
|
93
|
+
build: string;
|
|
94
|
+
packages: Record<string, string>;
|
|
95
|
+
webmcp: NonNullable<FarmAppManifest["webmcp"]>;
|
|
96
|
+
integrations: NonNullable<FarmAppManifest["integrations"]>;
|
|
97
|
+
agent: NonNullable<FarmAppManifest["agent"]>;
|
|
98
|
+
plugins: string[];
|
|
99
|
+
/** Resolved `agent.manifest` options; every section is shown without them. */
|
|
100
|
+
sections?: ResolvedFarmAppManifestConfig;
|
|
101
|
+
/**
|
|
102
|
+
* The default read-only MCP server (`agent.mcp`) while the app would serve it. Set by the
|
|
103
|
+
* server at runtime, not serialized: it answers only while no other MCP server is listed.
|
|
104
|
+
*/
|
|
105
|
+
defaultMCP?: () => {
|
|
106
|
+
name: string;
|
|
107
|
+
version: string;
|
|
108
|
+
path: string;
|
|
109
|
+
} | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Whether a guard written for a path (middleware, an integration's `protectedRoutes`)
|
|
112
|
+
* covers an MCP server's endpoint. Set by the server at runtime: such a server is listed
|
|
113
|
+
* as requiring authorization, without its tools, resources or prompts.
|
|
114
|
+
*/
|
|
115
|
+
guardCoversPath?: (path: string) => boolean;
|
|
116
|
+
}
|
|
117
|
+
/** Answers `/.well-known/farmjs.json`: the same public document for every request. */
|
|
118
|
+
declare function createFarmAppManifestResponse(request: Request, input: FarmAppManifestInput): Promise<Response>;
|
|
119
|
+
|
|
120
|
+
export { type FarmAppManifest as F, type FarmAppManifestServer as a, type FarmAppManifestTool as b, createFarmAppManifestResponse as c };
|
package/dist/app-markdown.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { al as FarmMdxComponents, am as FarmMdxResolvedConfig, ak as RouteModule } from './client-plugins-
|
|
2
|
-
export { ar as FARM_MARKDOWN_CONTENT_TYPE, ap as FarmMdxComponent, aq as FarmMdxUserConfig, as as createFarmMarkdownErrorBody, at as farmRequestWantsMarkdown, an as resolveFarmMdxComponentsModulePath, ao as resolveMdxConfig } from './client-plugins-
|
|
1
|
+
import { al as FarmMdxComponents, am as FarmMdxResolvedConfig, ak as RouteModule } from './client-plugins-Cv0OJtnM.mjs';
|
|
2
|
+
export { ar as FARM_MARKDOWN_CONTENT_TYPE, ap as FarmMdxComponent, aq as FarmMdxUserConfig, as as createFarmMarkdownErrorBody, at as farmRequestWantsMarkdown, an as resolveFarmMdxComponentsModulePath, ao as resolveMdxConfig } from './client-plugins-Cv0OJtnM.mjs';
|
|
3
3
|
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
|
|
4
4
|
import './lifecycle-DK06VuKP.mjs';
|
|
5
5
|
import './integration-api-DWyMmvrR.mjs';
|
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { al as FarmMdxComponents, am as FarmMdxResolvedConfig, ak as RouteModule } from './client-plugins-
|
|
2
|
-
export { ar as FARM_MARKDOWN_CONTENT_TYPE, ap as FarmMdxComponent, aq as FarmMdxUserConfig, as as createFarmMarkdownErrorBody, at as farmRequestWantsMarkdown, an as resolveFarmMdxComponentsModulePath, ao as resolveMdxConfig } from './client-plugins-
|
|
1
|
+
import { al as FarmMdxComponents, am as FarmMdxResolvedConfig, ak as RouteModule } from './client-plugins-kwQuZcWq.js';
|
|
2
|
+
export { ar as FARM_MARKDOWN_CONTENT_TYPE, ap as FarmMdxComponent, aq as FarmMdxUserConfig, as as createFarmMarkdownErrorBody, at as farmRequestWantsMarkdown, an as resolveFarmMdxComponentsModulePath, ao as resolveMdxConfig } from './client-plugins-kwQuZcWq.js';
|
|
3
3
|
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageModuleInput, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
4
4
|
import './lifecycle-DK06VuKP.js';
|
|
5
5
|
import './integration-api-BuPHMeKz.js';
|