@farm.js/core 0.1.34 → 0.1.36
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-BVExL8rZ.d.mts +109 -0
- package/dist/agent-mcp-handler-LPJ2CADR.mjs +19 -0
- package/dist/agent-mcp-handler-SJAHFSPI.cjs +19 -0
- package/dist/agent-mcp-luzfXK-P.d.ts +109 -0
- package/dist/agent-runtime.cjs +5 -3
- package/dist/agent-runtime.d.mts +4 -5
- package/dist/agent-runtime.d.ts +4 -5
- package/dist/agent-runtime.mjs +4 -2
- package/dist/api/route-manager.cjs +7 -7
- package/dist/api/route-manager.d.mts +15 -10
- package/dist/api/route-manager.d.ts +15 -10
- package/dist/api/route-manager.mjs +6 -6
- package/dist/api/runtime.cjs +7 -5
- package/dist/api/runtime.d.mts +7 -66
- package/dist/api/runtime.d.ts +7 -66
- package/dist/api/runtime.mjs +7 -5
- package/dist/api.cjs +9 -9
- package/dist/api.d.mts +8 -9
- package/dist/api.d.ts +8 -9
- package/dist/api.mjs +8 -8
- package/dist/{app-q4rmZlXK.d.mts → app-BukwkFIu.d.mts} +52 -12
- package/dist/{app-DgotYGbq.d.ts → app-Yfa2dsFy.d.ts} +52 -12
- package/dist/app-markdown.cjs +6 -6
- package/dist/app-markdown.d.mts +5 -6
- package/dist/app-markdown.d.ts +5 -6
- package/dist/app-markdown.mjs +5 -5
- package/dist/{chunk-XV5DJTBX.mjs → chunk-276VJSM6.mjs} +627 -260
- package/dist/{chunk-36MK5YCW.cjs → chunk-2YTDKNH3.cjs} +547 -240
- package/dist/{chunk-VHANUNEG.mjs → chunk-35GKZR22.mjs} +2 -2
- package/dist/{chunk-LR5QSC2P.mjs → chunk-35WV46VL.mjs} +399 -92
- package/dist/{chunk-UX5S4JEO.cjs → chunk-42NHY7HW.cjs} +57 -7
- package/dist/{chunk-U4PTAHW3.mjs → chunk-4E5AEDKY.mjs} +7 -11
- package/dist/{chunk-NGVORZVZ.mjs → chunk-4E5WBPEG.mjs} +73 -351
- package/dist/{chunk-AQZFOP7S.mjs → chunk-4GLOOWKE.mjs} +5 -5
- package/dist/{chunk-7BT4H4P7.cjs → chunk-4NU4GGTC.cjs} +2 -2
- package/dist/{chunk-AGC75XAE.mjs → chunk-4WCZJQUO.mjs} +55 -5
- package/dist/chunk-4WQ6PGSJ.cjs +367 -0
- package/dist/{chunk-QCFFHV5H.mjs → chunk-4WVJLURN.mjs} +1 -1
- package/dist/chunk-6SJ2KJTA.mjs +314 -0
- package/dist/chunk-75RZHGLS.cjs +135 -0
- package/dist/{chunk-P64MIF5B.cjs → chunk-ADEA7PN3.cjs} +483 -60
- package/dist/{chunk-YQVSHTMR.mjs → chunk-AJQTP4OO.mjs} +1 -1
- package/dist/{chunk-TA5G2HWD.cjs → chunk-AO6RYU5N.cjs} +31 -28
- package/dist/{chunk-MOKLYNHV.cjs → chunk-BO36SELV.cjs} +6 -6
- package/dist/{chunk-7Y6ZNFPX.mjs → chunk-BPOF5U4N.mjs} +17 -7
- package/dist/{chunk-JHWOVJ3M.mjs → chunk-BUGNQIHC.mjs} +5 -0
- package/dist/{chunk-TDFPACVX.cjs → chunk-CBJJH36A.cjs} +50 -25
- package/dist/{chunk-VKNHTSAP.cjs → chunk-CGBDNNSM.cjs} +2 -2
- package/dist/chunk-CI6E3UOH.cjs +314 -0
- package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
- package/dist/{chunk-ATK2R4CH.cjs → chunk-D227TIEN.cjs} +14 -4
- package/dist/{chunk-QGYRXFU2.cjs → chunk-D2BB47NB.cjs} +8 -8
- package/dist/chunk-DTSROJ5J.mjs +367 -0
- package/dist/{chunk-ODBZYBAB.cjs → chunk-DZ5ZVB2K.cjs} +1 -1
- package/dist/{chunk-ROUTX2E5.cjs → chunk-ECKF2BAM.cjs} +18 -5
- package/dist/{chunk-3LUF2PE2.cjs → chunk-EK4QAEFZ.cjs} +67 -5
- package/dist/{chunk-VVBO3QH7.mjs → chunk-ENLZ4R3Y.mjs} +10 -1
- package/dist/{chunk-XXJU7FCC.cjs → chunk-EUV4YR3V.cjs} +2 -2
- package/dist/{chunk-HR5KPHC2.mjs → chunk-EWET4D2Y.mjs} +1 -1
- package/dist/{chunk-PXKIEXZD.mjs → chunk-F5QO4FNE.mjs} +1 -1
- package/dist/{chunk-MIDIZJZC.cjs → chunk-FO427P6I.cjs} +22 -12
- package/dist/{chunk-AWC4VUZL.cjs → chunk-GQ3Z3IZI.cjs} +14 -14
- package/dist/{chunk-JDPAKVS4.mjs → chunk-GQRWBCWK.mjs} +8 -5
- package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
- package/dist/{chunk-WNNYOOIB.mjs → chunk-HOXTWRGB.mjs} +1 -1
- package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
- package/dist/{chunk-QJ3J6MZT.cjs → chunk-JNUWCDTF.cjs} +8 -8
- package/dist/{chunk-BTAG7LI7.cjs → chunk-JZVADIOD.cjs} +2 -2
- package/dist/{chunk-EM6SBQKM.cjs → chunk-KIIMAWOJ.cjs} +37 -2
- package/dist/{chunk-43FMW62B.mjs → chunk-KMTGADN3.mjs} +28 -0
- package/dist/{chunk-GOABMOX3.mjs → chunk-LSZAVSGY.mjs} +468 -45
- package/dist/{chunk-2NQQ5H5G.cjs → chunk-M7MKQXAF.cjs} +2 -1
- package/dist/{chunk-GNSDTTWZ.mjs → chunk-MKYBIIAQ.mjs} +30 -5
- package/dist/{chunk-ZHPHJPQP.cjs → chunk-MRMI32SN.cjs} +88 -366
- package/dist/{chunk-7M52YUMY.cjs → chunk-N2NAS2AM.cjs} +2 -2
- package/dist/{chunk-SJVKK4JE.cjs → chunk-NMHWYWDR.cjs} +1144 -777
- package/dist/chunk-NRDBW4MP.mjs +45 -0
- package/dist/{chunk-657WJNRY.mjs → chunk-O6I6VWKK.mjs} +20 -5
- package/dist/{chunk-O27L4YAA.mjs → chunk-O6WAEAX3.mjs} +2 -2
- package/dist/chunk-OFZUJMCU.mjs +601 -0
- package/dist/{chunk-ZKP7C2B6.mjs → chunk-OHLSEQ57.mjs} +22 -13
- package/dist/{chunk-X242HVD5.mjs → chunk-OO7GXVSR.mjs} +1 -1
- package/dist/chunk-PTZ2TVNE.cjs +178 -0
- package/dist/{chunk-3ATMYLLJ.mjs → chunk-Q2KB32T4.mjs} +1 -1
- package/dist/{chunk-LHODW25H.mjs → chunk-QORUJDIV.mjs} +2 -2
- package/dist/{chunk-UBO4SGH4.mjs → chunk-RHAZ22ZN.mjs} +2 -1
- package/dist/{chunk-G26MUMKL.cjs → chunk-S6VYG6XU.cjs} +23 -8
- package/dist/{chunk-6VVL3MHY.mjs → chunk-SC2WYWPF.mjs} +1 -1
- package/dist/{chunk-MPEYMSCF.cjs → chunk-SDOTRX3V.cjs} +5 -5
- package/dist/{chunk-BMWDEBXO.cjs → chunk-SHLXACIO.cjs} +31 -3
- package/dist/{chunk-LMJ7VRHZ.mjs → chunk-T4OGRVNS.mjs} +13 -3
- package/dist/{chunk-T5CERMEH.cjs → chunk-T5OJPTVN.cjs} +2 -2
- package/dist/{chunk-Z2YLTERK.cjs → chunk-TE2G5ION.cjs} +6 -6
- package/dist/chunk-UH6QN5NL.mjs +178 -0
- package/dist/{chunk-PQDFUSXD.cjs → chunk-UVW64BCB.cjs} +44 -35
- package/dist/{chunk-VCCUOMQN.mjs → chunk-VILIPRS6.mjs} +1 -1
- package/dist/{chunk-A5FGU2WU.cjs → chunk-VQLJWDVW.cjs} +19 -23
- package/dist/{chunk-VPTDD5XF.cjs → chunk-WBKEZXWE.cjs} +5 -0
- package/dist/{chunk-K3F2E6GS.cjs → chunk-WC5UV2HQ.cjs} +2 -2
- package/dist/chunk-WWFTAUFG.cjs +45 -0
- package/dist/{chunk-ZUSJDQ2Q.mjs → chunk-WWIKMBRN.mjs} +1 -1
- package/dist/{chunk-3VSKDFAT.mjs → chunk-WZ77PUAM.mjs} +1 -1
- package/dist/{chunk-CLJYVZAD.mjs → chunk-XCMCS4DA.mjs} +11 -1
- package/dist/{chunk-F6OHXPWR.mjs → chunk-YFILVET3.mjs} +8 -1
- package/dist/{chunk-DZ4DTRJ5.cjs → chunk-YKX5BK66.cjs} +7 -7
- package/dist/chunk-YSLWRWWP.cjs +601 -0
- package/dist/{chunk-LI2LMOLR.mjs → chunk-YWMZUGIS.mjs} +18 -5
- package/dist/chunk-ZLAT2CWY.mjs +135 -0
- package/dist/{chunk-XF7Q24PF.mjs → chunk-ZMMBIVQM.mjs} +35 -0
- package/dist/{chunk-U74I55WB.cjs → chunk-ZWM5KGAA.cjs} +19 -9
- package/dist/{client-plugins-CLObcuCq.d.mts → client-plugins-C3mK9Pol.d.mts} +300 -7
- package/dist/{client-plugins-DZjHC4Mi.d.ts → client-plugins-r1mOtSC1.d.ts} +300 -7
- package/dist/client-plugins.d.mts +4 -5
- package/dist/client-plugins.d.ts +4 -5
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +8 -9
- package/dist/client.d.ts +8 -9
- package/dist/client.mjs +4 -4
- package/dist/config.d.mts +4 -5
- package/dist/config.d.ts +4 -5
- package/dist/{devtools-RNXCTS4R.mjs → devtools-ERIKFEXX.mjs} +11 -10
- package/dist/{devtools-HU6Y2MNV.cjs → devtools-JZJJY5CK.cjs} +12 -11
- package/dist/docs.cjs +15 -14
- package/dist/docs.d.mts +41 -4
- package/dist/docs.d.ts +41 -4
- package/dist/docs.mjs +14 -13
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/image/server.cjs +3 -3
- package/dist/image/server.mjs +2 -2
- package/dist/image/sharp.cjs +10 -10
- package/dist/image/sharp.mjs +2 -2
- package/dist/{index-a-8Z5kZU.d.mts → index-BJJfLxJo.d.mts} +2 -2
- package/dist/{index-BWVfxIsO.d.ts → index-CwoOP-MW.d.ts} +2 -2
- package/dist/index.cjs +51 -44
- package/dist/index.d.mts +20 -21
- package/dist/index.d.ts +20 -21
- package/dist/index.mjs +50 -43
- package/dist/integrations.cjs +7 -3
- package/dist/integrations.d.mts +4 -5
- package/dist/integrations.d.ts +4 -5
- package/dist/integrations.mjs +6 -2
- package/dist/internal/app-markdown-runtime.cjs +5 -5
- package/dist/internal/app-markdown-runtime.d.mts +5 -6
- package/dist/internal/app-markdown-runtime.d.ts +5 -6
- package/dist/internal/app-markdown-runtime.mjs +4 -4
- package/dist/internal/build-runtime.cjs +32 -30
- package/dist/internal/build-runtime.d.mts +6 -7
- package/dist/internal/build-runtime.d.ts +6 -7
- package/dist/internal/build-runtime.mjs +31 -29
- package/dist/internal/cli-runtime.cjs +17 -16
- package/dist/internal/cli-runtime.mjs +16 -15
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +2 -2
- package/dist/internal/client-runtime.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +4 -5
- package/dist/internal/compression-runtime.d.ts +4 -5
- package/dist/internal/config-runtime.cjs +12 -11
- package/dist/internal/config-runtime.d.mts +5 -6
- package/dist/internal/config-runtime.d.ts +5 -6
- package/dist/internal/config-runtime.mjs +11 -10
- package/dist/internal/isolated-boundary.cjs +3 -2
- package/dist/internal/isolated-boundary.d.mts +1 -1
- package/dist/internal/isolated-boundary.d.ts +1 -1
- package/dist/internal/isolated-boundary.mjs +2 -1
- package/dist/internal/metadata-image-runtime.cjs +3 -3
- package/dist/internal/metadata-image-runtime.mjs +2 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +63 -25
- package/dist/internal/production-runtime.d.mts +117 -37
- package/dist/internal/production-runtime.d.ts +117 -37
- package/dist/internal/production-runtime.mjs +65 -27
- package/dist/internal/server-tree.cjs +12 -0
- package/dist/internal/server-tree.d.mts +27 -0
- package/dist/internal/server-tree.d.ts +27 -0
- package/dist/internal/server-tree.mjs +12 -0
- package/dist/{layers-BRQF5ETU.mjs → layers-UTB43B7A.mjs} +1 -1
- package/dist/layers-VUWIOFEO.cjs +18 -0
- package/dist/markdown.cjs +4 -4
- package/dist/markdown.d.mts +4 -5
- package/dist/markdown.d.ts +4 -5
- package/dist/markdown.mjs +3 -3
- package/dist/middleware.cjs +7 -7
- package/dist/middleware.d.mts +6 -7
- package/dist/middleware.d.ts +6 -7
- package/dist/middleware.mjs +6 -6
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +7 -8
- package/dist/navigation.d.ts +7 -8
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-HSAQFXSS.cjs → nitro-7F65EZZS.cjs} +3 -3
- package/dist/{nitro-4XGPNIK4.mjs → nitro-MPZJGPXK.mjs} +2 -2
- package/dist/{observability-BupkiN0m.d.mts → observability-CoXunYhS.d.mts} +4 -3
- package/dist/{observability-BupkiN0m.d.ts → observability-CoXunYhS.d.ts} +4 -3
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +28 -26
- package/dist/plugin.d.mts +4 -5
- package/dist/plugin.d.ts +4 -5
- package/dist/plugin.mjs +27 -25
- package/dist/{production-runtime-CysZl3EV.d.mts → production-runtime-CCeVZXst.d.mts} +4 -4
- package/dist/{production-runtime-BU5ETAK9.d.ts → production-runtime-DPnsggY3.d.ts} +4 -4
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-CKr4ltOd.d.mts → render-plan-BuGaPFe6.d.mts} +1 -1
- package/dist/{render-plan-D72O1qm4.d.ts → render-plan-Cw4f5E_R.d.ts} +1 -1
- package/dist/renderer/react/server.cjs +10 -4
- package/dist/renderer/react/server.d.mts +2 -1
- package/dist/renderer/react/server.d.ts +2 -1
- package/dist/renderer/react/server.mjs +7 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +6 -7
- package/dist/renderer-client.d.ts +6 -7
- package/dist/renderer-client.mjs +2 -2
- package/dist/renderer.d.mts +2 -0
- package/dist/renderer.d.ts +2 -0
- package/dist/{request-DbyOYI2j.d.ts → request-Bkg-hERy.d.ts} +1 -1
- package/dist/{request-Be83WafN.d.mts → request-CsGARcAw.d.mts} +1 -1
- package/dist/request.d.mts +5 -6
- package/dist/request.d.ts +5 -6
- package/dist/{resolver-PPEeiJ6M.d.ts → resolver-DadfRL6F.d.ts} +1 -1
- package/dist/{resolver-DhW0CqZN.d.mts → resolver-khasx3fU.d.mts} +1 -1
- package/dist/{route-rendering-CtVMpV-k.d.ts → route-rendering-BUZMH_64.d.ts} +1 -1
- package/dist/{route-rendering-BG56SzvJ.d.mts → route-rendering-f11yh5dp.d.mts} +1 -1
- package/dist/{router-D94-SDlW.d.ts → router-B8CR9GbD.d.ts} +1 -1
- package/dist/{router-ALUvm8gC.d.mts → router-Cp6yRE8A.d.mts} +1 -1
- package/dist/routes.d.mts +4 -5
- package/dist/routes.d.ts +4 -5
- package/dist/{runtime-BirxPwbZ.d.ts → runtime-BgDQzBiu.d.ts} +2 -2
- package/dist/runtime-CAEv36S_.d.mts +69 -0
- package/dist/runtime-CQVsT330.d.ts +69 -0
- package/dist/{runtime-AOJge4vQ.d.mts → runtime-CV2UCV-5.d.mts} +2 -2
- package/dist/server-action-security.cjs +3 -3
- package/dist/server-action-security.mjs +2 -2
- package/dist/server-fn.cjs +4 -4
- package/dist/server-fn.mjs +3 -3
- package/dist/server-plugins.d.mts +5 -6
- package/dist/server-plugins.d.ts +5 -6
- package/dist/server-query.cjs +5 -5
- package/dist/server-query.mjs +4 -4
- package/dist/server.cjs +47 -45
- package/dist/server.d.mts +13 -14
- package/dist/server.d.ts +13 -14
- package/dist/server.mjs +30 -28
- package/dist/{spa-router-CxK3USIz.d.ts → spa-router-BuciWGCZ.d.ts} +3 -3
- package/dist/{spa-router-DbxNRKOB.d.mts → spa-router-DwbqGkGj.d.mts} +3 -3
- package/dist/testing.cjs +9 -9
- package/dist/testing.d.mts +4 -5
- package/dist/testing.d.ts +4 -5
- package/dist/testing.mjs +7 -7
- package/dist/{types-Z0aotQ8w.d.mts → types-CnH8DOqo.d.mts} +1 -1
- package/dist/{types-Z0aotQ8w.d.ts → types-CnH8DOqo.d.ts} +1 -1
- package/dist/{utils-4wVRcpOw.d.mts → utils-B9V0S_yL.d.mts} +1 -1
- package/dist/{utils-311Y8eoK.d.ts → utils-CaoWKtYM.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +28 -26
- package/dist/vite.d.mts +4 -5
- package/dist/vite.d.ts +4 -5
- package/dist/vite.mjs +27 -25
- package/dist/{workflows-CR9ex-gz.d.ts → workflows-jZ4BcdoZ.d.mts} +1 -1
- package/dist/{workflows-CR9ex-gz.d.mts → workflows-jZ4BcdoZ.d.ts} +1 -1
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +2 -2
- package/package.json +9 -1
- package/dist/chunk-M64YUMA4.cjs +0 -58
- package/dist/chunk-QLQ32WC4.mjs +0 -58
- package/dist/layers-4PNE2HOY.cjs +0 -18
- package/dist/metadata-2HSU2i_w.d.mts +0 -52
- package/dist/metadata-Cjs8JMRM.d.ts +0 -52
- package/dist/types-DFbjpjXX.d.mts +0 -105
- package/dist/types-DFbjpjXX.d.ts +0 -105
- package/dist/{chunk-2F2ER724.cjs → chunk-BPMATOP2.cjs} +2 -2
- package/dist/{chunk-IHNMMXHV.mjs → chunk-OTC5BDGO.mjs} +3 -3
package/dist/vite.mjs
CHANGED
|
@@ -9,16 +9,17 @@ import {
|
|
|
9
9
|
shouldEmitFarmClientRootHmr,
|
|
10
10
|
transformIsolatedClientBoundaryModule,
|
|
11
11
|
withFarmRequestTracing
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-276VJSM6.mjs";
|
|
13
|
+
import "./chunk-4GLOOWKE.mjs";
|
|
14
|
+
import "./chunk-F3VB7ONA.mjs";
|
|
14
15
|
import "./chunk-HALDNTIV.mjs";
|
|
15
16
|
import "./chunk-ZMSZZXOR.mjs";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-LSZAVSGY.mjs";
|
|
18
|
+
import "./chunk-UH6QN5NL.mjs";
|
|
18
19
|
import "./chunk-DAO7JGTS.mjs";
|
|
19
20
|
import "./chunk-BOYNDCZL.mjs";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-AJQTP4OO.mjs";
|
|
22
|
+
import "./chunk-F5QO4FNE.mjs";
|
|
22
23
|
import "./chunk-SLQCDJSO.mjs";
|
|
23
24
|
import "./chunk-XAXTTBUT.mjs";
|
|
24
25
|
import "./chunk-45ZSJLDT.mjs";
|
|
@@ -26,49 +27,50 @@ import "./chunk-4JCQDWPX.mjs";
|
|
|
26
27
|
import "./chunk-PNGWZFUQ.mjs";
|
|
27
28
|
import "./chunk-E5GNDG5F.mjs";
|
|
28
29
|
import "./chunk-2ELDTQRN.mjs";
|
|
29
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-ENLZ4R3Y.mjs";
|
|
30
31
|
import "./chunk-TVGP4BBZ.mjs";
|
|
31
32
|
import "./chunk-RSOJ7DRT.mjs";
|
|
32
33
|
import "./chunk-JBSVKMC5.mjs";
|
|
33
34
|
import "./chunk-GHFS7RUB.mjs";
|
|
34
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-BUGNQIHC.mjs";
|
|
35
36
|
import "./chunk-DAATZTKJ.mjs";
|
|
36
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-4E5WBPEG.mjs";
|
|
38
|
+
import "./chunk-DTSROJ5J.mjs";
|
|
37
39
|
import "./chunk-G2KY33I6.mjs";
|
|
38
40
|
import "./chunk-YHOCRI4H.mjs";
|
|
39
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-4WVJLURN.mjs";
|
|
40
42
|
import "./chunk-4OOBRCJX.mjs";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-WZ77PUAM.mjs";
|
|
44
|
+
import "./chunk-4WCZJQUO.mjs";
|
|
43
45
|
import "./chunk-FA2W42OV.mjs";
|
|
44
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-WWIKMBRN.mjs";
|
|
45
47
|
import "./chunk-MVL2RAJW.mjs";
|
|
46
48
|
import "./chunk-SFGWNC43.mjs";
|
|
47
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-Q2KB32T4.mjs";
|
|
48
50
|
import "./chunk-2UC36WAC.mjs";
|
|
49
51
|
import "./chunk-ONUEYC6N.mjs";
|
|
50
52
|
import "./chunk-UWPLULNK.mjs";
|
|
51
53
|
import "./chunk-AELACLOB.mjs";
|
|
52
54
|
import "./chunk-SEJ5N6SL.mjs";
|
|
53
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-MKYBIIAQ.mjs";
|
|
54
56
|
import "./chunk-44SYJEG3.mjs";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-BPOF5U4N.mjs";
|
|
58
|
+
import "./chunk-RHAZ22ZN.mjs";
|
|
57
59
|
import "./chunk-2NNMOPDN.mjs";
|
|
58
60
|
import "./chunk-JG6DJF5A.mjs";
|
|
59
61
|
import "./chunk-R3DS7A2T.mjs";
|
|
60
62
|
import "./chunk-IOEH4VWN.mjs";
|
|
61
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-T4OGRVNS.mjs";
|
|
62
64
|
import "./chunk-UDNPLXW7.mjs";
|
|
63
65
|
import "./chunk-CU625VAY.mjs";
|
|
64
66
|
import "./chunk-NPC7VWJE.mjs";
|
|
65
67
|
import "./chunk-QCFBDFRS.mjs";
|
|
66
68
|
import "./chunk-YOZYCI6Z.mjs";
|
|
67
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-O6I6VWKK.mjs";
|
|
68
70
|
import "./chunk-3UEVPCGW.mjs";
|
|
69
71
|
import "./chunk-W3B4PKAW.mjs";
|
|
70
72
|
import "./chunk-5WI2S4CO.mjs";
|
|
71
|
-
import "./chunk-
|
|
73
|
+
import "./chunk-ZLAT2CWY.mjs";
|
|
72
74
|
import "./chunk-EA5K5BKU.mjs";
|
|
73
75
|
import "./chunk-2J7W2WND.mjs";
|
|
74
76
|
import "./chunk-MSSFIQGM.mjs";
|
|
@@ -76,16 +78,16 @@ import "./chunk-FZ6YYU2W.mjs";
|
|
|
76
78
|
import "./chunk-FP2INE7H.mjs";
|
|
77
79
|
import {
|
|
78
80
|
createFarmNodeRequestAbortSignal
|
|
79
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-ZMMBIVQM.mjs";
|
|
80
82
|
import "./chunk-I2BHUNBU.mjs";
|
|
81
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-KMTGADN3.mjs";
|
|
82
84
|
import "./chunk-BCMSYSN2.mjs";
|
|
83
85
|
import "./chunk-KI3MESHB.mjs";
|
|
84
86
|
import "./chunk-QVKYGNVM.mjs";
|
|
85
|
-
import "./chunk-BTHHUD7Q.mjs";
|
|
86
87
|
import "./chunk-FUZEBRP3.mjs";
|
|
87
88
|
import "./chunk-Z2RZJZIZ.mjs";
|
|
88
|
-
import "./chunk-
|
|
89
|
+
import "./chunk-BTHHUD7Q.mjs";
|
|
90
|
+
import "./chunk-OO7GXVSR.mjs";
|
|
89
91
|
import "./chunk-54UPOYFS.mjs";
|
|
90
92
|
import "./chunk-WNSDDRNU.mjs";
|
|
91
93
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -95,7 +97,7 @@ import "./chunk-O7BH5O46.mjs";
|
|
|
95
97
|
import "./chunk-7LTCDQRS.mjs";
|
|
96
98
|
import "./chunk-GCXWJJKH.mjs";
|
|
97
99
|
import "./chunk-JM5XPKWH.mjs";
|
|
98
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-CXEN47J3.mjs";
|
|
99
101
|
import "./chunk-SKNL7VA2.mjs";
|
|
100
102
|
import "./chunk-2A3EQHXX.mjs";
|
|
101
103
|
import "./chunk-JNZ4TDWM.mjs";
|
|
@@ -181,4 +181,4 @@ declare function createFarmWorkflowVercelCrons(workflows: FarmDiscoveredWorkflow
|
|
|
181
181
|
}>;
|
|
182
182
|
declare function applyFarmWorkflowVercelCrons(vercelConfig: Record<string, any>, workflows: FarmDiscoveredWorkflow[]): Record<string, any>;
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { createFarmNodeRequestAbortSignal as A, createFarmRequestBodyErrorResponse as B, matchesFarmIfNoneMatch as C, DEFAULT_FARM_WORKFLOW_DIRS as D, readFarmRequestBody as E, type FarmWorkflowsResolvedConfig as F, readNodeRequestBody as G, resolveFarmServerConfig as H, type PreparedFarmWorkflows as P, type ResolvedFarmServerConfig as R, type FarmServerConfig as a, type FarmServerDuration as b, type FarmServerHealthConfig as c, type ResolvedFarmServerHealthConfig as d, type FarmWorkflowsUserConfig as e, type FarmWorkflowSchedule as f, type FarmWorkflowLogger as g, type FarmWorkflowRunContext as h, type FarmWorkflowDefinition as i, type FarmCronDefinition as j, type FarmDiscoveredWorkflow as k, type FarmWorkflowHTTPHandlerOptions as l, DEFAULT_FARM_WORKFLOW_ROUTE as m, DEFAULT_FARM_WORKFLOW_SECRET_ENV as n, defineWorkflow as o, defineTask as p, defineCron as q, resolveWorkflowsConfig as r, discoverFarmWorkflows as s, createFarmWorkflowRequestHandler as t, runFarmWorkflowModule as u, prepareFarmWorkflowsForNitro as v, createFarmWorkflowVercelCrons as w, applyFarmWorkflowVercelCrons as x, bufferFarmRequestBody as y, cloneFarmRequestWithContext as z };
|
|
@@ -181,4 +181,4 @@ declare function createFarmWorkflowVercelCrons(workflows: FarmDiscoveredWorkflow
|
|
|
181
181
|
}>;
|
|
182
182
|
declare function applyFarmWorkflowVercelCrons(vercelConfig: Record<string, any>, workflows: FarmDiscoveredWorkflow[]): Record<string, any>;
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { createFarmNodeRequestAbortSignal as A, createFarmRequestBodyErrorResponse as B, matchesFarmIfNoneMatch as C, DEFAULT_FARM_WORKFLOW_DIRS as D, readFarmRequestBody as E, type FarmWorkflowsResolvedConfig as F, readNodeRequestBody as G, resolveFarmServerConfig as H, type PreparedFarmWorkflows as P, type ResolvedFarmServerConfig as R, type FarmServerConfig as a, type FarmServerDuration as b, type FarmServerHealthConfig as c, type ResolvedFarmServerHealthConfig as d, type FarmWorkflowsUserConfig as e, type FarmWorkflowSchedule as f, type FarmWorkflowLogger as g, type FarmWorkflowRunContext as h, type FarmWorkflowDefinition as i, type FarmCronDefinition as j, type FarmDiscoveredWorkflow as k, type FarmWorkflowHTTPHandlerOptions as l, DEFAULT_FARM_WORKFLOW_ROUTE as m, DEFAULT_FARM_WORKFLOW_SECRET_ENV as n, defineWorkflow as o, defineTask as p, defineCron as q, resolveWorkflowsConfig as r, discoverFarmWorkflows as s, createFarmWorkflowRequestHandler as t, runFarmWorkflowModule as u, prepareFarmWorkflowsForNitro as v, createFarmWorkflowVercelCrons as w, applyFarmWorkflowVercelCrons as x, bufferFarmRequestBody as y, cloneFarmRequestWithContext as z };
|
package/dist/workflows.cjs
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkSDOTRX3Vcjs = require('./chunk-SDOTRX3V.cjs');
|
|
16
16
|
require('./chunk-JDNHKPTD.cjs');
|
|
17
17
|
require('./chunk-CMGMGHUZ.cjs');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-KIIMAWOJ.cjs');
|
|
19
19
|
require('./chunk-5QIKR7RR.cjs');
|
|
20
20
|
require('./chunk-QNPEUFHQ.cjs');
|
|
21
21
|
require('./chunk-DVM4FKZL.cjs');
|
|
@@ -38,4 +38,4 @@ require('./chunk-S3JO3N4H.cjs');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
exports.DEFAULT_FARM_WORKFLOW_DIRS =
|
|
41
|
+
exports.DEFAULT_FARM_WORKFLOW_DIRS = _chunkSDOTRX3Vcjs.DEFAULT_FARM_WORKFLOW_DIRS; exports.DEFAULT_FARM_WORKFLOW_ROUTE = _chunkSDOTRX3Vcjs.DEFAULT_FARM_WORKFLOW_ROUTE; exports.DEFAULT_FARM_WORKFLOW_SECRET_ENV = _chunkSDOTRX3Vcjs.DEFAULT_FARM_WORKFLOW_SECRET_ENV; exports.applyFarmWorkflowVercelCrons = _chunkSDOTRX3Vcjs.applyFarmWorkflowVercelCrons; exports.createFarmWorkflowRequestHandler = _chunkSDOTRX3Vcjs.createFarmWorkflowRequestHandler; exports.createFarmWorkflowVercelCrons = _chunkSDOTRX3Vcjs.createFarmWorkflowVercelCrons; exports.defineCron = _chunkSDOTRX3Vcjs.defineCron; exports.defineTask = _chunkSDOTRX3Vcjs.defineTask; exports.defineWorkflow = _chunkSDOTRX3Vcjs.defineWorkflow; exports.discoverFarmWorkflows = _chunkSDOTRX3Vcjs.discoverFarmWorkflows; exports.prepareFarmWorkflowsForNitro = _chunkSDOTRX3Vcjs.prepareFarmWorkflowsForNitro; exports.resolveWorkflowsConfig = _chunkSDOTRX3Vcjs.resolveWorkflowsConfig; exports.runFarmWorkflowModule = _chunkSDOTRX3Vcjs.runFarmWorkflowModule;
|
package/dist/workflows.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DEFAULT_FARM_WORKFLOW_DIRS,
|
|
1
|
+
export { D as DEFAULT_FARM_WORKFLOW_DIRS, m as DEFAULT_FARM_WORKFLOW_ROUTE, n as DEFAULT_FARM_WORKFLOW_SECRET_ENV, j as FarmCronDefinition, k as FarmDiscoveredWorkflow, i as FarmWorkflowDefinition, l as FarmWorkflowHTTPHandlerOptions, g as FarmWorkflowLogger, h as FarmWorkflowRunContext, f as FarmWorkflowSchedule, F as FarmWorkflowsResolvedConfig, e as FarmWorkflowsUserConfig, P as PreparedFarmWorkflows, x as applyFarmWorkflowVercelCrons, t as createFarmWorkflowRequestHandler, w as createFarmWorkflowVercelCrons, q as defineCron, p as defineTask, o as defineWorkflow, s as discoverFarmWorkflows, v as prepareFarmWorkflowsForNitro, r as resolveWorkflowsConfig, u as runFarmWorkflowModule } from './workflows-jZ4BcdoZ.mjs';
|
package/dist/workflows.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { D as DEFAULT_FARM_WORKFLOW_DIRS,
|
|
1
|
+
export { D as DEFAULT_FARM_WORKFLOW_DIRS, m as DEFAULT_FARM_WORKFLOW_ROUTE, n as DEFAULT_FARM_WORKFLOW_SECRET_ENV, j as FarmCronDefinition, k as FarmDiscoveredWorkflow, i as FarmWorkflowDefinition, l as FarmWorkflowHTTPHandlerOptions, g as FarmWorkflowLogger, h as FarmWorkflowRunContext, f as FarmWorkflowSchedule, F as FarmWorkflowsResolvedConfig, e as FarmWorkflowsUserConfig, P as PreparedFarmWorkflows, x as applyFarmWorkflowVercelCrons, t as createFarmWorkflowRequestHandler, w as createFarmWorkflowVercelCrons, q as defineCron, p as defineTask, o as defineWorkflow, s as discoverFarmWorkflows, v as prepareFarmWorkflowsForNitro, r as resolveWorkflowsConfig, u as runFarmWorkflowModule } from './workflows-jZ4BcdoZ.js';
|
package/dist/workflows.mjs
CHANGED
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
prepareFarmWorkflowsForNitro,
|
|
13
13
|
resolveWorkflowsConfig,
|
|
14
14
|
runFarmWorkflowModule
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Q2KB32T4.mjs";
|
|
16
16
|
import "./chunk-2UC36WAC.mjs";
|
|
17
17
|
import "./chunk-ONUEYC6N.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ZMMBIVQM.mjs";
|
|
19
19
|
import "./chunk-KI3MESHB.mjs";
|
|
20
20
|
import "./chunk-QVKYGNVM.mjs";
|
|
21
21
|
import "./chunk-SAXPH6G5.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farm.js/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"description": "The core of Farm.js, the framework for the web and agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"@farm.js/core",
|
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
"internal/isolated-boundary": [
|
|
191
191
|
"./dist/internal/isolated-boundary.d.ts"
|
|
192
192
|
],
|
|
193
|
+
"internal/server-tree": [
|
|
194
|
+
"./dist/internal/server-tree.d.ts"
|
|
195
|
+
],
|
|
193
196
|
"internal/build-runtime": [
|
|
194
197
|
"./dist/internal/build-runtime.d.ts"
|
|
195
198
|
],
|
|
@@ -644,6 +647,11 @@
|
|
|
644
647
|
"import": "./dist/internal/isolated-boundary.mjs",
|
|
645
648
|
"require": "./dist/internal/isolated-boundary.cjs"
|
|
646
649
|
},
|
|
650
|
+
"./internal/server-tree": {
|
|
651
|
+
"types": "./dist/internal/server-tree.d.ts",
|
|
652
|
+
"import": "./dist/internal/server-tree.mjs",
|
|
653
|
+
"require": "./dist/internal/server-tree.cjs"
|
|
654
|
+
},
|
|
647
655
|
"./internal/build-runtime": {
|
|
648
656
|
"types": "./dist/internal/build-runtime.d.ts",
|
|
649
657
|
"import": "./dist/internal/build-runtime.mjs",
|
package/dist/chunk-M64YUMA4.cjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _chunkG7HXGLECcjs = require('./chunk-G7HXGLEC.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
11
|
-
|
|
12
|
-
// src/mcp-catalog.ts
|
|
13
|
-
var CATALOGS = /* @__PURE__ */ Symbol.for("farm.mcp.catalogs");
|
|
14
|
-
function catalogs() {
|
|
15
|
-
const state = globalThis;
|
|
16
|
-
return _nullishCoalesce(state[CATALOGS], () => ( (state[CATALOGS] = /* @__PURE__ */ new Map())));
|
|
17
|
-
}
|
|
18
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, catalogs, "catalogs");
|
|
19
|
-
function _listFarmMCPCatalogs() {
|
|
20
|
-
return [...catalogs().values()];
|
|
21
|
-
}
|
|
22
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, _listFarmMCPCatalogs, "_listFarmMCPCatalogs");
|
|
23
|
-
function _publishFarmMCPCatalog(server, tools, details) {
|
|
24
|
-
const entry = { server, tools, ...details ? { details } : {} };
|
|
25
|
-
catalogs().set(server.path, entry);
|
|
26
|
-
return () => {
|
|
27
|
-
if (catalogs().get(server.path) === entry) catalogs().delete(server.path);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, _publishFarmMCPCatalog, "_publishFarmMCPCatalog");
|
|
31
|
-
function _findFarmMCPEndpointTool(method, pathname, serverBasePath) {
|
|
32
|
-
const upperMethod = method.toUpperCase();
|
|
33
|
-
for (const { server, tools } of catalogs().values()) {
|
|
34
|
-
const routes = /* @__PURE__ */ new Map();
|
|
35
|
-
for (const tool of tools) {
|
|
36
|
-
if (tool.kind === "endpoint" && tool.method === upperMethod) {
|
|
37
|
-
routes.set(tool.path, { path: tool.path, name: tool.name });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (routes.size === 0) continue;
|
|
41
|
-
const canonical = serverBasePath ? _chunkKNBBQHO2cjs.resolveFarmAPICanonicalPathname.call(void 0, pathname, serverBasePath) : pathname;
|
|
42
|
-
const match = _chunkG7HXGLECcjs.matchAPIRoute.call(void 0, routes, canonical);
|
|
43
|
-
if (match) {
|
|
44
|
-
return {
|
|
45
|
-
name: match.route.name,
|
|
46
|
-
endpoint: _chunkKNBBQHO2cjs.resolveFarmAPIServerRoutePath.call(void 0, server.path, serverBasePath)
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return void 0;
|
|
51
|
-
}
|
|
52
|
-
_chunkS3JO3N4Hcjs.__name.call(void 0, _findFarmMCPEndpointTool, "_findFarmMCPEndpointTool");
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
exports._listFarmMCPCatalogs = _listFarmMCPCatalogs; exports._publishFarmMCPCatalog = _publishFarmMCPCatalog; exports._findFarmMCPEndpointTool = _findFarmMCPEndpointTool;
|
package/dist/chunk-QLQ32WC4.mjs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveFarmAPICanonicalPathname,
|
|
3
|
-
resolveFarmAPIServerRoutePath
|
|
4
|
-
} from "./chunk-BTHHUD7Q.mjs";
|
|
5
|
-
import {
|
|
6
|
-
matchAPIRoute
|
|
7
|
-
} from "./chunk-O7BH5O46.mjs";
|
|
8
|
-
import {
|
|
9
|
-
__name
|
|
10
|
-
} from "./chunk-LPEX4YW6.mjs";
|
|
11
|
-
|
|
12
|
-
// src/mcp-catalog.ts
|
|
13
|
-
var CATALOGS = /* @__PURE__ */ Symbol.for("farm.mcp.catalogs");
|
|
14
|
-
function catalogs() {
|
|
15
|
-
const state = globalThis;
|
|
16
|
-
return state[CATALOGS] ?? (state[CATALOGS] = /* @__PURE__ */ new Map());
|
|
17
|
-
}
|
|
18
|
-
__name(catalogs, "catalogs");
|
|
19
|
-
function _listFarmMCPCatalogs() {
|
|
20
|
-
return [...catalogs().values()];
|
|
21
|
-
}
|
|
22
|
-
__name(_listFarmMCPCatalogs, "_listFarmMCPCatalogs");
|
|
23
|
-
function _publishFarmMCPCatalog(server, tools, details) {
|
|
24
|
-
const entry = { server, tools, ...details ? { details } : {} };
|
|
25
|
-
catalogs().set(server.path, entry);
|
|
26
|
-
return () => {
|
|
27
|
-
if (catalogs().get(server.path) === entry) catalogs().delete(server.path);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
__name(_publishFarmMCPCatalog, "_publishFarmMCPCatalog");
|
|
31
|
-
function _findFarmMCPEndpointTool(method, pathname, serverBasePath) {
|
|
32
|
-
const upperMethod = method.toUpperCase();
|
|
33
|
-
for (const { server, tools } of catalogs().values()) {
|
|
34
|
-
const routes = /* @__PURE__ */ new Map();
|
|
35
|
-
for (const tool of tools) {
|
|
36
|
-
if (tool.kind === "endpoint" && tool.method === upperMethod) {
|
|
37
|
-
routes.set(tool.path, { path: tool.path, name: tool.name });
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (routes.size === 0) continue;
|
|
41
|
-
const canonical = serverBasePath ? resolveFarmAPICanonicalPathname(pathname, serverBasePath) : pathname;
|
|
42
|
-
const match = matchAPIRoute(routes, canonical);
|
|
43
|
-
if (match) {
|
|
44
|
-
return {
|
|
45
|
-
name: match.route.name,
|
|
46
|
-
endpoint: resolveFarmAPIServerRoutePath(server.path, serverBasePath)
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return void 0;
|
|
51
|
-
}
|
|
52
|
-
__name(_findFarmMCPEndpointTool, "_findFarmMCPEndpointTool");
|
|
53
|
-
|
|
54
|
-
export {
|
|
55
|
-
_listFarmMCPCatalogs,
|
|
56
|
-
_publishFarmMCPCatalog,
|
|
57
|
-
_findFarmMCPEndpointTool
|
|
58
|
-
};
|
package/dist/layers-4PNE2HOY.cjs
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _chunkVPTDD5XFcjs = require('./chunk-VPTDD5XF.cjs');
|
|
9
|
-
require('./chunk-UYIHRDE4.cjs');
|
|
10
|
-
require('./chunk-S3JO3N4H.cjs');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports.createFarmConfigResolutionPlugin = _chunkVPTDD5XFcjs.createFarmConfigResolutionPlugin; exports.getFarmAppDirectories = _chunkVPTDD5XFcjs.getFarmAppDirectories; exports.getFarmLayerAliases = _chunkVPTDD5XFcjs.getFarmLayerAliases; exports.getFarmSourceRoots = _chunkVPTDD5XFcjs.getFarmSourceRoots; exports.loadFarmConfigFile = _chunkVPTDD5XFcjs.loadFarmConfigFile; exports.resolveFarmLayers = _chunkVPTDD5XFcjs.resolveFarmLayers;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { M as Metadata, D as FarmAgentJsonLd } from './client-plugins-CLObcuCq.mjs';
|
|
2
|
-
|
|
3
|
-
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
|
-
interface FarmMetadataImageReference {
|
|
5
|
-
kind: MetadataImageKind;
|
|
6
|
-
href: string;
|
|
7
|
-
alt?: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
contentType?: string;
|
|
11
|
-
}
|
|
12
|
-
interface RenderedMetadataHead {
|
|
13
|
-
title: string;
|
|
14
|
-
tags: string;
|
|
15
|
-
hasFavicon: boolean;
|
|
16
|
-
/** False when the title is the framework fallback rather than configured. */
|
|
17
|
-
hasExplicitTitle: boolean;
|
|
18
|
-
}
|
|
19
|
-
type MetadataRecord = Metadata & Record<string, any>;
|
|
20
|
-
/**
|
|
21
|
-
* Metadata for the not-found page, shared by the development renderer and the production
|
|
22
|
-
* server: the layouts' metadata (so a title template, description or icons carry over),
|
|
23
|
-
* then the not-found module's own `metadata` and `generateMetadata()`, titled
|
|
24
|
-
* FARM_NOT_FOUND_TITLE when the module doesn't name itself.
|
|
25
|
-
*/
|
|
26
|
-
declare function resolveFarmNotFoundMetadata(layoutModules: ReadonlyArray<Record<string, any> | null | undefined>, notFoundModule: Record<string, any> | null | undefined): Promise<MetadataRecord>;
|
|
27
|
-
declare function mergeMetadata(base: MetadataRecord | undefined, next: MetadataRecord | undefined): MetadataRecord;
|
|
28
|
-
declare function addMetadataImageReference(metadata: MetadataRecord, reference: FarmMetadataImageReference): MetadataRecord;
|
|
29
|
-
/**
|
|
30
|
-
* Advertise a page's Markdown mirror as `alternates.types["text/markdown"]`
|
|
31
|
-
* unless the page already declares one. `href` comes from the request path, so
|
|
32
|
-
* it is kept same-origin the same way the default canonical is.
|
|
33
|
-
*/
|
|
34
|
-
declare function addMetadataMarkdownAlternate(metadata: MetadataRecord, href: string | null | undefined): MetadataRecord;
|
|
35
|
-
interface RenderMetadataHeadOptions {
|
|
36
|
-
/**
|
|
37
|
-
* Current request pathname. Used to emit a default `<link rel="canonical">`
|
|
38
|
-
* when the route does not set one, so agents and crawlers can resolve the
|
|
39
|
-
* page's identity. Combined with `metadataBase` into an absolute URL when a
|
|
40
|
-
* base is configured; otherwise emitted as a self-referential path.
|
|
41
|
-
*/
|
|
42
|
-
pathname?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Agent JSON-LD config. When truthy, a schema.org JSON-LD script is emitted in
|
|
45
|
-
* the head, built from this config and the page/site metadata. `true` uses the
|
|
46
|
-
* defaults; `false`/omitted (the default) emits nothing.
|
|
47
|
-
*/
|
|
48
|
-
jsonLd?: FarmAgentJsonLd | boolean;
|
|
49
|
-
}
|
|
50
|
-
declare function renderMetadataHead(metadata: MetadataRecord | undefined, options?: RenderMetadataHeadOptions): RenderedMetadataHead;
|
|
51
|
-
|
|
52
|
-
export { type MetadataImageKind as M, addMetadataImageReference as a, addMetadataMarkdownAlternate as b, resolveFarmNotFoundMetadata as c, mergeMetadata as m, renderMetadataHead as r };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { M as Metadata, D as FarmAgentJsonLd } from './client-plugins-DZjHC4Mi.js';
|
|
2
|
-
|
|
3
|
-
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
|
-
interface FarmMetadataImageReference {
|
|
5
|
-
kind: MetadataImageKind;
|
|
6
|
-
href: string;
|
|
7
|
-
alt?: string;
|
|
8
|
-
width?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
contentType?: string;
|
|
11
|
-
}
|
|
12
|
-
interface RenderedMetadataHead {
|
|
13
|
-
title: string;
|
|
14
|
-
tags: string;
|
|
15
|
-
hasFavicon: boolean;
|
|
16
|
-
/** False when the title is the framework fallback rather than configured. */
|
|
17
|
-
hasExplicitTitle: boolean;
|
|
18
|
-
}
|
|
19
|
-
type MetadataRecord = Metadata & Record<string, any>;
|
|
20
|
-
/**
|
|
21
|
-
* Metadata for the not-found page, shared by the development renderer and the production
|
|
22
|
-
* server: the layouts' metadata (so a title template, description or icons carry over),
|
|
23
|
-
* then the not-found module's own `metadata` and `generateMetadata()`, titled
|
|
24
|
-
* FARM_NOT_FOUND_TITLE when the module doesn't name itself.
|
|
25
|
-
*/
|
|
26
|
-
declare function resolveFarmNotFoundMetadata(layoutModules: ReadonlyArray<Record<string, any> | null | undefined>, notFoundModule: Record<string, any> | null | undefined): Promise<MetadataRecord>;
|
|
27
|
-
declare function mergeMetadata(base: MetadataRecord | undefined, next: MetadataRecord | undefined): MetadataRecord;
|
|
28
|
-
declare function addMetadataImageReference(metadata: MetadataRecord, reference: FarmMetadataImageReference): MetadataRecord;
|
|
29
|
-
/**
|
|
30
|
-
* Advertise a page's Markdown mirror as `alternates.types["text/markdown"]`
|
|
31
|
-
* unless the page already declares one. `href` comes from the request path, so
|
|
32
|
-
* it is kept same-origin the same way the default canonical is.
|
|
33
|
-
*/
|
|
34
|
-
declare function addMetadataMarkdownAlternate(metadata: MetadataRecord, href: string | null | undefined): MetadataRecord;
|
|
35
|
-
interface RenderMetadataHeadOptions {
|
|
36
|
-
/**
|
|
37
|
-
* Current request pathname. Used to emit a default `<link rel="canonical">`
|
|
38
|
-
* when the route does not set one, so agents and crawlers can resolve the
|
|
39
|
-
* page's identity. Combined with `metadataBase` into an absolute URL when a
|
|
40
|
-
* base is configured; otherwise emitted as a self-referential path.
|
|
41
|
-
*/
|
|
42
|
-
pathname?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Agent JSON-LD config. When truthy, a schema.org JSON-LD script is emitted in
|
|
45
|
-
* the head, built from this config and the page/site metadata. `true` uses the
|
|
46
|
-
* defaults; `false`/omitted (the default) emits nothing.
|
|
47
|
-
*/
|
|
48
|
-
jsonLd?: FarmAgentJsonLd | boolean;
|
|
49
|
-
}
|
|
50
|
-
declare function renderMetadataHead(metadata: MetadataRecord | undefined, options?: RenderMetadataHeadOptions): RenderedMetadataHead;
|
|
51
|
-
|
|
52
|
-
export { type MetadataImageKind as M, addMetadataImageReference as a, addMetadataMarkdownAlternate as b, resolveFarmNotFoundMetadata as c, mergeMetadata as m, renderMetadataHead as r };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { DocsConfig } from '@farming-labs/docs';
|
|
2
|
-
|
|
3
|
-
interface FarmDocsAdapterDescriptor {
|
|
4
|
-
id: string;
|
|
5
|
-
protocol: number;
|
|
6
|
-
server: string;
|
|
7
|
-
react?: string;
|
|
8
|
-
vite?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Build-time entry that compiles the adapter's docs runtime into Farm's
|
|
11
|
-
* serializable edge manifest. Older Farm releases safely ignore it.
|
|
12
|
-
*/
|
|
13
|
-
edgeCompiler?: string;
|
|
14
|
-
}
|
|
15
|
-
interface FarmDocsSidebarItem {
|
|
16
|
-
label?: string;
|
|
17
|
-
title?: string;
|
|
18
|
-
slug?: string;
|
|
19
|
-
href?: string;
|
|
20
|
-
icon?: string;
|
|
21
|
-
children?: FarmDocsSidebarItem[];
|
|
22
|
-
items?: FarmDocsSidebarItem[];
|
|
23
|
-
}
|
|
24
|
-
interface FarmDocsNavigationConfig {
|
|
25
|
-
sidebar?: FarmDocsSidebarItem[];
|
|
26
|
-
}
|
|
27
|
-
interface FarmDocsSocialImageConfig {
|
|
28
|
-
/** Generate a page-specific 1200×630 social image. Defaults to true. */
|
|
29
|
-
enabled?: boolean;
|
|
30
|
-
/** Absolute public origin used in social metadata, e.g. https://example.com. */
|
|
31
|
-
baseUrl?: string;
|
|
32
|
-
/** Site name shown in Open Graph metadata. Defaults to the docs navigation title. */
|
|
33
|
-
siteName?: string;
|
|
34
|
-
/** Short brand label drawn in the image header. Defaults to siteName. */
|
|
35
|
-
brand?: string;
|
|
36
|
-
/** Optional WOFF2 URLs or data URLs embedded into the generated SVG. */
|
|
37
|
-
fonts?: FarmDocsSocialImageFonts;
|
|
38
|
-
}
|
|
39
|
-
interface FarmDocsSocialImageFonts {
|
|
40
|
-
/** Display face used for page titles. */
|
|
41
|
-
display?: string;
|
|
42
|
-
/** Sans-serif face used for descriptions. */
|
|
43
|
-
sans?: string;
|
|
44
|
-
/** Monospace face used for labels, routes, and diagrams. */
|
|
45
|
-
mono?: string;
|
|
46
|
-
}
|
|
47
|
-
type FarmDocsRuntimeConfig = Partial<DocsConfig> & {
|
|
48
|
-
/**
|
|
49
|
-
* Public favicon URL used by the standalone docs renderer.
|
|
50
|
-
* Set this explicitly when docs should share the host application's icon.
|
|
51
|
-
*/
|
|
52
|
-
favicon?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Optional serializable navigation tree used by Farm's docs runtime.
|
|
55
|
-
* Icon values reference keys from `icons`.
|
|
56
|
-
*/
|
|
57
|
-
navigation?: FarmDocsNavigationConfig;
|
|
58
|
-
/**
|
|
59
|
-
* Automatic page-specific Open Graph and X images for Markdown docs.
|
|
60
|
-
* Enabled by default. Set false to opt out for the complete docs tree.
|
|
61
|
-
*/
|
|
62
|
-
socialImage?: boolean | FarmDocsSocialImageConfig;
|
|
63
|
-
};
|
|
64
|
-
type FarmDocsConfigInput = FarmDocsRuntimeConfig & {
|
|
65
|
-
/**
|
|
66
|
-
* Versioned runtime descriptor supplied by an external docs adapter.
|
|
67
|
-
* Set false to pin the embedded renderer and disable framework
|
|
68
|
-
* auto-detection.
|
|
69
|
-
*/
|
|
70
|
-
adapter?: FarmDocsAdapterDescriptor | false;
|
|
71
|
-
/**
|
|
72
|
-
* Farm public route for docs, e.g. "/docs". When passed through
|
|
73
|
-
* `config`, this is converted to the docs package's folder-style `entry`.
|
|
74
|
-
*/
|
|
75
|
-
entry?: string;
|
|
76
|
-
/** Explicit public route prefix. Defaults to `entry`. */
|
|
77
|
-
docsPath?: string;
|
|
78
|
-
/** Source content directory, relative to the project root. */
|
|
79
|
-
contentDir?: string;
|
|
80
|
-
/** Set to false to opt out even when a docs config file exists. */
|
|
81
|
-
enabled?: boolean;
|
|
82
|
-
/** Inline @farming-labs/docs config object. */
|
|
83
|
-
config?: FarmDocsRuntimeConfig;
|
|
84
|
-
/** Path to docs.config.* or docs.json. */
|
|
85
|
-
configPath?: string;
|
|
86
|
-
};
|
|
87
|
-
type FarmDocsUserConfig = boolean | FarmDocsConfigInput;
|
|
88
|
-
interface FarmDocsResolvedConfig {
|
|
89
|
-
enabled: boolean;
|
|
90
|
-
entry: string;
|
|
91
|
-
adapter?: FarmDocsAdapterDescriptor;
|
|
92
|
-
contentDir?: string;
|
|
93
|
-
configPath?: string;
|
|
94
|
-
config: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
|
|
95
|
-
/**
|
|
96
|
-
* `config` before it was made serializable: icons and other React elements, MDX
|
|
97
|
-
* components, and callbacks intact. Only the in-process adapter runtime reads it;
|
|
98
|
-
* whatever Farm serializes uses `config`.
|
|
99
|
-
*/
|
|
100
|
-
runtimeConfig?: FarmDocsRuntimeConfig & Pick<DocsConfig, "entry">;
|
|
101
|
-
/** The serializable docs settings from `farm.config.ts`, applied over the config file. */
|
|
102
|
-
configOverrides?: Partial<DocsConfig>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export type { FarmDocsResolvedConfig as F, FarmDocsUserConfig as a, FarmDocsConfigInput as b, FarmDocsNavigationConfig as c, FarmDocsSocialImageConfig as d, FarmDocsSocialImageFonts as e, FarmDocsSidebarItem as f };
|