@farm.js/core 0.1.34 → 0.1.35
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-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +4 -5
- package/dist/agent-runtime.d.ts +4 -5
- package/dist/agent-runtime.mjs +2 -2
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +6 -7
- package/dist/api/route-manager.d.ts +6 -7
- package/dist/api/route-manager.mjs +4 -4
- package/dist/api/runtime.cjs +6 -4
- package/dist/api/runtime.d.mts +4 -5
- package/dist/api/runtime.d.ts +4 -5
- package/dist/api/runtime.mjs +6 -4
- package/dist/api.cjs +6 -6
- package/dist/api.d.mts +7 -8
- package/dist/api.d.ts +7 -8
- package/dist/api.mjs +5 -5
- package/dist/{app-DgotYGbq.d.ts → app-BXB3JZYc.d.ts} +38 -12
- package/dist/{app-q4rmZlXK.d.mts → app-D_j9AAVL.d.mts} +38 -12
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +5 -6
- package/dist/app-markdown.d.ts +5 -6
- package/dist/app-markdown.mjs +4 -4
- package/dist/{chunk-LMJ7VRHZ.mjs → chunk-22LTEMGQ.mjs} +1 -1
- package/dist/{chunk-AQZFOP7S.mjs → chunk-2G2NNLE2.mjs} +1 -1
- package/dist/{chunk-QJ3J6MZT.cjs → chunk-3BHT4WMP.cjs} +2 -2
- package/dist/{chunk-X242HVD5.mjs → chunk-3PXS2MHU.mjs} +1 -1
- package/dist/{chunk-A5FGU2WU.cjs → chunk-3UH7MRCP.cjs} +19 -23
- package/dist/{chunk-AGC75XAE.mjs → chunk-4JHOT46A.mjs} +1 -1
- package/dist/{chunk-XV5DJTBX.mjs → chunk-4KU5Q7C2.mjs} +424 -230
- package/dist/{chunk-TA5G2HWD.cjs → chunk-4MMGO7YW.cjs} +21 -21
- package/dist/{chunk-7BT4H4P7.cjs → chunk-62XKI4Z3.cjs} +2 -2
- package/dist/{chunk-ZKP7C2B6.mjs → chunk-6DU6UFUE.mjs} +12 -11
- package/dist/{chunk-GOABMOX3.mjs → chunk-6ETPZTJI.mjs} +366 -4
- package/dist/{chunk-7Y6ZNFPX.mjs → chunk-6TJOML4E.mjs} +13 -3
- package/dist/{chunk-3ATMYLLJ.mjs → chunk-6WCPV6G2.mjs} +1 -1
- package/dist/{chunk-BTAG7LI7.cjs → chunk-73MC7ZL6.cjs} +2 -2
- package/dist/chunk-75RZHGLS.cjs +135 -0
- package/dist/{chunk-VKNHTSAP.cjs → chunk-7GLPRTTF.cjs} +2 -2
- package/dist/{chunk-7M52YUMY.cjs → chunk-7L5V3KQO.cjs} +2 -2
- package/dist/{chunk-LI2LMOLR.mjs → chunk-C35ZBVRD.mjs} +12 -3
- package/dist/{chunk-YQVSHTMR.mjs → chunk-CP6X4AEU.mjs} +1 -1
- package/dist/{chunk-QZCT2CQ4.mjs → chunk-CXEN47J3.mjs} +64 -2
- package/dist/{chunk-ATK2R4CH.cjs → chunk-D227TIEN.cjs} +14 -4
- package/dist/{chunk-ROUTX2E5.cjs → chunk-DBNKI4NF.cjs} +12 -3
- package/dist/{chunk-UX5S4JEO.cjs → chunk-EFCQPQMG.cjs} +3 -3
- package/dist/{chunk-K3F2E6GS.cjs → chunk-EJQT6KZN.cjs} +2 -2
- 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-WNNYOOIB.mjs → chunk-F6Z3Y5KL.mjs} +1 -1
- package/dist/{chunk-PQDFUSXD.cjs → chunk-F7JZENPF.cjs} +33 -32
- package/dist/{chunk-TDFPACVX.cjs → chunk-FTFYRMQQ.cjs} +18 -18
- package/dist/{chunk-657WJNRY.mjs → chunk-G5RT7EXW.mjs} +1 -1
- package/dist/{chunk-MOKLYNHV.cjs → chunk-GFHLGIYC.cjs} +6 -6
- package/dist/{chunk-AWC4VUZL.cjs → chunk-GQ3Z3IZI.cjs} +14 -14
- package/dist/{chunk-75WGQVQA.cjs → chunk-HITLGIAO.cjs} +10 -1
- package/dist/{chunk-GNSDTTWZ.mjs → chunk-HMIJDL7S.mjs} +1 -1
- package/dist/{chunk-PXKIEXZD.mjs → chunk-HUMR6LSU.mjs} +1 -1
- package/dist/{chunk-SJVKK4JE.cjs → chunk-ICUQICNC.cjs} +912 -718
- package/dist/{chunk-P64MIF5B.cjs → chunk-IPXLADVO.cjs} +387 -25
- package/dist/{chunk-KROWKCUH.cjs → chunk-JGLC4TO3.cjs} +8 -1
- package/dist/{chunk-2NQQ5H5G.cjs → chunk-M7MKQXAF.cjs} +2 -1
- package/dist/chunk-NRDBW4MP.mjs +45 -0
- package/dist/chunk-OFZUJMCU.mjs +601 -0
- package/dist/{chunk-VCCUOMQN.mjs → chunk-OKZUAXHF.mjs} +1 -1
- package/dist/{chunk-EM6SBQKM.cjs → chunk-OMVAU7NT.cjs} +27 -2
- package/dist/{chunk-O27L4YAA.mjs → chunk-PDOCJ6RY.mjs} +2 -2
- package/dist/{chunk-36MK5YCW.cjs → chunk-PFQKNERH.cjs} +346 -206
- package/dist/{chunk-HR5KPHC2.mjs → chunk-Q3VLETLE.mjs} +1 -1
- package/dist/{chunk-LR5QSC2P.mjs → chunk-QAU5JD57.mjs} +211 -71
- package/dist/{chunk-LHODW25H.mjs → chunk-QORUJDIV.mjs} +2 -2
- package/dist/{chunk-UBO4SGH4.mjs → chunk-RHAZ22ZN.mjs} +2 -1
- package/dist/{chunk-ZHPHJPQP.cjs → chunk-RU3M2FIK.cjs} +18 -14
- package/dist/{chunk-JDPAKVS4.mjs → chunk-SAZVVAJH.mjs} +3 -3
- package/dist/{chunk-6VVL3MHY.mjs → chunk-SC2WYWPF.mjs} +1 -1
- package/dist/{chunk-QCFFHV5H.mjs → chunk-SMHH4VDG.mjs} +1 -1
- package/dist/{chunk-U4PTAHW3.mjs → chunk-SOMHP6GF.mjs} +7 -11
- package/dist/{chunk-VHANUNEG.mjs → chunk-UAORZ7QA.mjs} +2 -2
- package/dist/{chunk-NGVORZVZ.mjs → chunk-UJD4PHYB.mjs} +15 -11
- package/dist/{chunk-U74I55WB.cjs → chunk-ULAWS2PA.cjs} +13 -3
- package/dist/{chunk-MPEYMSCF.cjs → chunk-VFQT3LAO.cjs} +5 -5
- package/dist/{chunk-Z2YLTERK.cjs → chunk-VZJR7UTG.cjs} +6 -6
- package/dist/chunk-WWFTAUFG.cjs +45 -0
- package/dist/{chunk-ZUSJDQ2Q.mjs → chunk-WWIKMBRN.mjs} +1 -1
- package/dist/{chunk-QGYRXFU2.cjs → chunk-X6W5FFH6.cjs} +8 -8
- package/dist/{chunk-MIDIZJZC.cjs → chunk-XBML5KMG.cjs} +8 -8
- package/dist/{chunk-G26MUMKL.cjs → chunk-XCACDAZZ.cjs} +4 -4
- package/dist/{chunk-CLJYVZAD.mjs → chunk-XCMCS4DA.mjs} +11 -1
- package/dist/{chunk-XF7Q24PF.mjs → chunk-Y7RKTKYI.mjs} +25 -0
- package/dist/{chunk-ODBZYBAB.cjs → chunk-YC6V7PWE.cjs} +1 -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-3VSKDFAT.mjs → chunk-YULD7ICZ.mjs} +1 -1
- package/dist/chunk-ZLAT2CWY.mjs +135 -0
- package/dist/{chunk-T5CERMEH.cjs → chunk-ZXGAFZDO.cjs} +2 -2
- package/dist/{client-plugins-CLObcuCq.d.mts → client-plugins-CvIslxWi.d.mts} +207 -7
- package/dist/{client-plugins-DZjHC4Mi.d.ts → client-plugins-HIyulDym.d.ts} +207 -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-HU6Y2MNV.cjs → devtools-EAUY43BS.cjs} +9 -9
- package/dist/{devtools-RNXCTS4R.mjs → devtools-EE5RIBTH.mjs} +8 -8
- package/dist/docs.cjs +12 -12
- package/dist/docs.d.mts +41 -4
- package/dist/docs.d.ts +41 -4
- package/dist/docs.mjs +11 -11
- 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 +38 -35
- package/dist/index.d.mts +19 -20
- package/dist/index.d.ts +19 -20
- package/dist/index.mjs +37 -34
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +4 -5
- package/dist/integrations.d.ts +4 -5
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- 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 +3 -3
- package/dist/internal/build-runtime.cjs +26 -26
- package/dist/internal/build-runtime.d.mts +6 -7
- package/dist/internal/build-runtime.d.ts +6 -7
- package/dist/internal/build-runtime.mjs +25 -25
- package/dist/internal/cli-runtime.cjs +13 -13
- package/dist/internal/cli-runtime.mjs +12 -12
- 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 +9 -9
- package/dist/internal/config-runtime.d.mts +5 -6
- package/dist/internal/config-runtime.d.ts +5 -6
- package/dist/internal/config-runtime.mjs +8 -8
- package/dist/internal/isolated-boundary.cjs +3 -2
- package/dist/internal/isolated-boundary.d.mts +1 -0
- package/dist/internal/isolated-boundary.d.ts +1 -0
- 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 +47 -23
- package/dist/internal/production-runtime.d.mts +58 -18
- package/dist/internal/production-runtime.d.ts +58 -18
- package/dist/internal/production-runtime.mjs +43 -19
- 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/markdown.cjs +3 -3
- package/dist/markdown.d.mts +4 -5
- package/dist/markdown.d.ts +4 -5
- package/dist/markdown.mjs +2 -2
- package/dist/{metadata-Cjs8JMRM.d.ts → metadata-BnLDsUOS.d.ts} +16 -2
- package/dist/{metadata-2HSU2i_w.d.mts → metadata-WGpBYcGn.d.mts} +16 -2
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +6 -7
- package/dist/middleware.d.ts +6 -7
- package/dist/middleware.mjs +3 -3
- 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-4XGPNIK4.mjs → nitro-MXRDCXWZ.mjs} +2 -2
- package/dist/{nitro-HSAQFXSS.cjs → nitro-OVPLKPE2.cjs} +3 -3
- 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 +22 -22
- package/dist/plugin.d.mts +4 -5
- package/dist/plugin.d.ts +4 -5
- package/dist/plugin.mjs +21 -21
- package/dist/{production-runtime-CysZl3EV.d.mts → production-runtime-0sRnuYc-.d.mts} +4 -4
- package/dist/{production-runtime-BU5ETAK9.d.ts → production-runtime-Crq6CJ-2.d.ts} +4 -4
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan-D72O1qm4.d.ts → render-plan-8ozZh2Qv.d.ts} +1 -1
- package/dist/{render-plan-CKr4ltOd.d.mts → render-plan-gs9GGPzw.d.mts} +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-B5G8rLBH.d.ts} +1 -1
- package/dist/{request-Be83WafN.d.mts → request-fkhiynXe.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-BG56SzvJ.d.mts → route-rendering-CLnS7AZj.d.mts} +1 -1
- package/dist/{route-rendering-CtVMpV-k.d.ts → route-rendering-lS5nUMua.d.ts} +1 -1
- package/dist/{router-D94-SDlW.d.ts → router-4iuiYnOW.d.ts} +1 -1
- package/dist/{router-ALUvm8gC.d.mts → router-ifU8Dui1.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-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 +41 -41
- package/dist/server.d.mts +13 -14
- package/dist/server.d.ts +13 -14
- package/dist/server.mjs +24 -24
- package/dist/{spa-router-DbxNRKOB.d.mts → spa-router-Bq7VCOwx.d.mts} +3 -3
- package/dist/{spa-router-CxK3USIz.d.ts → spa-router-DaJk5Re4.d.ts} +3 -3
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +4 -5
- package/dist/testing.d.ts +4 -5
- package/dist/testing.mjs +5 -5
- 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-311Y8eoK.d.ts → utils-BXLmFsVR.d.ts} +1 -1
- package/dist/{utils-4wVRcpOw.d.mts → utils-XJn0c9bj.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +22 -22
- package/dist/vite.d.mts +4 -5
- package/dist/vite.d.ts +4 -5
- package/dist/vite.mjs +21 -21
- 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/types-DFbjpjXX.d.mts +0 -105
- package/dist/types-DFbjpjXX.d.ts +0 -105
package/dist/vite.mjs
CHANGED
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
shouldEmitFarmClientRootHmr,
|
|
10
10
|
transformIsolatedClientBoundaryModule,
|
|
11
11
|
withFarmRequestTracing
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-4KU5Q7C2.mjs";
|
|
13
|
+
import "./chunk-2G2NNLE2.mjs";
|
|
14
14
|
import "./chunk-HALDNTIV.mjs";
|
|
15
15
|
import "./chunk-ZMSZZXOR.mjs";
|
|
16
16
|
import "./chunk-F3VB7ONA.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6ETPZTJI.mjs";
|
|
18
18
|
import "./chunk-DAO7JGTS.mjs";
|
|
19
19
|
import "./chunk-BOYNDCZL.mjs";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-CP6X4AEU.mjs";
|
|
21
|
+
import "./chunk-HUMR6LSU.mjs";
|
|
22
22
|
import "./chunk-SLQCDJSO.mjs";
|
|
23
23
|
import "./chunk-XAXTTBUT.mjs";
|
|
24
24
|
import "./chunk-45ZSJLDT.mjs";
|
|
@@ -26,49 +26,49 @@ import "./chunk-4JCQDWPX.mjs";
|
|
|
26
26
|
import "./chunk-PNGWZFUQ.mjs";
|
|
27
27
|
import "./chunk-E5GNDG5F.mjs";
|
|
28
28
|
import "./chunk-2ELDTQRN.mjs";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-ENLZ4R3Y.mjs";
|
|
30
30
|
import "./chunk-TVGP4BBZ.mjs";
|
|
31
31
|
import "./chunk-RSOJ7DRT.mjs";
|
|
32
32
|
import "./chunk-JBSVKMC5.mjs";
|
|
33
33
|
import "./chunk-GHFS7RUB.mjs";
|
|
34
34
|
import "./chunk-JHWOVJ3M.mjs";
|
|
35
35
|
import "./chunk-DAATZTKJ.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-UJD4PHYB.mjs";
|
|
37
37
|
import "./chunk-G2KY33I6.mjs";
|
|
38
38
|
import "./chunk-YHOCRI4H.mjs";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-SMHH4VDG.mjs";
|
|
40
40
|
import "./chunk-4OOBRCJX.mjs";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-YULD7ICZ.mjs";
|
|
42
|
+
import "./chunk-4JHOT46A.mjs";
|
|
43
43
|
import "./chunk-FA2W42OV.mjs";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-WWIKMBRN.mjs";
|
|
45
45
|
import "./chunk-MVL2RAJW.mjs";
|
|
46
46
|
import "./chunk-SFGWNC43.mjs";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-6WCPV6G2.mjs";
|
|
48
48
|
import "./chunk-2UC36WAC.mjs";
|
|
49
49
|
import "./chunk-ONUEYC6N.mjs";
|
|
50
50
|
import "./chunk-UWPLULNK.mjs";
|
|
51
51
|
import "./chunk-AELACLOB.mjs";
|
|
52
52
|
import "./chunk-SEJ5N6SL.mjs";
|
|
53
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-HMIJDL7S.mjs";
|
|
54
54
|
import "./chunk-44SYJEG3.mjs";
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-6TJOML4E.mjs";
|
|
56
|
+
import "./chunk-RHAZ22ZN.mjs";
|
|
57
57
|
import "./chunk-2NNMOPDN.mjs";
|
|
58
58
|
import "./chunk-JG6DJF5A.mjs";
|
|
59
59
|
import "./chunk-R3DS7A2T.mjs";
|
|
60
60
|
import "./chunk-IOEH4VWN.mjs";
|
|
61
|
-
import "./chunk-
|
|
61
|
+
import "./chunk-22LTEMGQ.mjs";
|
|
62
62
|
import "./chunk-UDNPLXW7.mjs";
|
|
63
63
|
import "./chunk-CU625VAY.mjs";
|
|
64
64
|
import "./chunk-NPC7VWJE.mjs";
|
|
65
65
|
import "./chunk-QCFBDFRS.mjs";
|
|
66
66
|
import "./chunk-YOZYCI6Z.mjs";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-G5RT7EXW.mjs";
|
|
68
68
|
import "./chunk-3UEVPCGW.mjs";
|
|
69
69
|
import "./chunk-W3B4PKAW.mjs";
|
|
70
70
|
import "./chunk-5WI2S4CO.mjs";
|
|
71
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-ZLAT2CWY.mjs";
|
|
72
72
|
import "./chunk-EA5K5BKU.mjs";
|
|
73
73
|
import "./chunk-2J7W2WND.mjs";
|
|
74
74
|
import "./chunk-MSSFIQGM.mjs";
|
|
@@ -76,7 +76,7 @@ import "./chunk-FZ6YYU2W.mjs";
|
|
|
76
76
|
import "./chunk-FP2INE7H.mjs";
|
|
77
77
|
import {
|
|
78
78
|
createFarmNodeRequestAbortSignal
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-Y7RKTKYI.mjs";
|
|
80
80
|
import "./chunk-I2BHUNBU.mjs";
|
|
81
81
|
import "./chunk-43FMW62B.mjs";
|
|
82
82
|
import "./chunk-BCMSYSN2.mjs";
|
|
@@ -85,7 +85,7 @@ import "./chunk-QVKYGNVM.mjs";
|
|
|
85
85
|
import "./chunk-BTHHUD7Q.mjs";
|
|
86
86
|
import "./chunk-FUZEBRP3.mjs";
|
|
87
87
|
import "./chunk-Z2RZJZIZ.mjs";
|
|
88
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-3PXS2MHU.mjs";
|
|
89
89
|
import "./chunk-54UPOYFS.mjs";
|
|
90
90
|
import "./chunk-WNSDDRNU.mjs";
|
|
91
91
|
import "./chunk-JPLUGGRV.mjs";
|
|
@@ -95,7 +95,7 @@ import "./chunk-O7BH5O46.mjs";
|
|
|
95
95
|
import "./chunk-7LTCDQRS.mjs";
|
|
96
96
|
import "./chunk-GCXWJJKH.mjs";
|
|
97
97
|
import "./chunk-JM5XPKWH.mjs";
|
|
98
|
-
import "./chunk-
|
|
98
|
+
import "./chunk-CXEN47J3.mjs";
|
|
99
99
|
import "./chunk-SKNL7VA2.mjs";
|
|
100
100
|
import "./chunk-2A3EQHXX.mjs";
|
|
101
101
|
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 _chunkVFQT3LAOcjs = require('./chunk-VFQT3LAO.cjs');
|
|
16
16
|
require('./chunk-JDNHKPTD.cjs');
|
|
17
17
|
require('./chunk-CMGMGHUZ.cjs');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-OMVAU7NT.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 = _chunkVFQT3LAOcjs.DEFAULT_FARM_WORKFLOW_DIRS; exports.DEFAULT_FARM_WORKFLOW_ROUTE = _chunkVFQT3LAOcjs.DEFAULT_FARM_WORKFLOW_ROUTE; exports.DEFAULT_FARM_WORKFLOW_SECRET_ENV = _chunkVFQT3LAOcjs.DEFAULT_FARM_WORKFLOW_SECRET_ENV; exports.applyFarmWorkflowVercelCrons = _chunkVFQT3LAOcjs.applyFarmWorkflowVercelCrons; exports.createFarmWorkflowRequestHandler = _chunkVFQT3LAOcjs.createFarmWorkflowRequestHandler; exports.createFarmWorkflowVercelCrons = _chunkVFQT3LAOcjs.createFarmWorkflowVercelCrons; exports.defineCron = _chunkVFQT3LAOcjs.defineCron; exports.defineTask = _chunkVFQT3LAOcjs.defineTask; exports.defineWorkflow = _chunkVFQT3LAOcjs.defineWorkflow; exports.discoverFarmWorkflows = _chunkVFQT3LAOcjs.discoverFarmWorkflows; exports.prepareFarmWorkflowsForNitro = _chunkVFQT3LAOcjs.prepareFarmWorkflowsForNitro; exports.resolveWorkflowsConfig = _chunkVFQT3LAOcjs.resolveWorkflowsConfig; exports.runFarmWorkflowModule = _chunkVFQT3LAOcjs.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-6WCPV6G2.mjs";
|
|
16
16
|
import "./chunk-2UC36WAC.mjs";
|
|
17
17
|
import "./chunk-ONUEYC6N.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-Y7RKTKYI.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.35",
|
|
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
|
-
};
|
|
@@ -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 };
|
package/dist/types-DFbjpjXX.d.ts
DELETED
|
@@ -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 };
|