@farm.js/core 0.1.71 → 0.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp-handler-VIT4GOSR.mjs → agent-mcp-handler-RK7LDYEL.mjs} +5 -5
- package/dist/{agent-mcp-handler-KE4J3W7S.cjs → agent-mcp-handler-VBCA3WZ6.cjs} +6 -6
- package/dist/{agent-mcp.d-BzNw6JI8.d.ts → agent-mcp.d-D_gHjCAE.d.ts} +2 -2
- package/dist/{agent-mcp.d-CgFen3EH.d.mts → agent-mcp.d-PvEf-1mi.d.mts} +2 -2
- package/dist/agent-runtime.d.mts +4 -4
- package/dist/agent-runtime.d.ts +4 -4
- package/dist/{analyzer-VK3BAOFI.mjs → analyzer-MFYCJT75.mjs} +2 -2
- package/dist/analyzer-V5ZMRIIY.cjs +16 -0
- package/dist/api/node.d.mts +6 -6
- package/dist/api/node.d.ts +6 -6
- package/dist/api/route-manager.cjs +7 -6
- package/dist/api/route-manager.d.mts +8 -8
- package/dist/api/route-manager.d.ts +8 -8
- package/dist/api/route-manager.mjs +6 -5
- package/dist/api/runtime.d.mts +5 -5
- package/dist/api/runtime.d.ts +5 -5
- package/dist/api.cjs +8 -7
- package/dist/api.d.mts +9 -9
- package/dist/api.d.ts +9 -9
- package/dist/api.mjs +7 -6
- package/dist/{app-manifest.d-DY4JfJxi.d.ts → app-manifest.d-BpVTg43i.d.ts} +1 -1
- package/dist/{app-manifest.d-DpDK_B1k.d.mts → app-manifest.d-CN7cEWHX.d.mts} +1 -1
- package/dist/app-markdown.cjs +4 -4
- package/dist/app-markdown.d.mts +5 -5
- package/dist/app-markdown.d.ts +5 -5
- package/dist/app-markdown.mjs +3 -3
- package/dist/{app.d-D-5UNrFd.d.mts → app.d-BFWzAdTe.d.mts} +54 -6
- package/dist/{app.d-BeK6bb1c.d.ts → app.d-DO4PTCWm.d.ts} +54 -6
- package/dist/{chunk-7A3URI2F.mjs → chunk-2EVESLP3.mjs} +8 -1
- package/dist/{chunk-IYDJNCR7.mjs → chunk-462MUII7.mjs} +10 -5
- package/dist/{chunk-MWUDEYBI.mjs → chunk-4CTCSKAF.mjs} +1 -1
- package/dist/{chunk-SXMWVP2L.cjs → chunk-4YHGQDTT.cjs} +12 -12
- package/dist/{chunk-YCNHUIPR.cjs → chunk-4Z3YLMSW.cjs} +10 -10
- package/dist/{chunk-K66JILV3.cjs → chunk-5LOARKDP.cjs} +2 -2
- package/dist/{chunk-O32QPFVV.cjs → chunk-5PDMBWAF.cjs} +5 -5
- package/dist/{chunk-IGXS54GC.mjs → chunk-6O6PAZZR.mjs} +1 -1
- package/dist/{chunk-LXEJNWF5.mjs → chunk-73K53YPP.mjs} +2 -2
- package/dist/{chunk-2CQC5CMD.mjs → chunk-7GMBETHM.mjs} +1 -1
- package/dist/{chunk-W2T6NDNP.mjs → chunk-B67CW2LM.mjs} +2 -2
- package/dist/{chunk-CSQPMV3Q.cjs → chunk-CLEWORVY.cjs} +6 -6
- package/dist/{chunk-KPJYBSHL.mjs → chunk-CPMME66W.mjs} +149 -22
- package/dist/{chunk-BBPDJGCU.cjs → chunk-CYOTNHDF.cjs} +2 -2
- package/dist/{chunk-4OD2LXF2.mjs → chunk-CYRIIVD4.mjs} +26 -15
- package/dist/{chunk-DPIGYXSV.mjs → chunk-FRO4BB2T.mjs} +1 -1
- package/dist/{chunk-Y2SZVIVH.cjs → chunk-GPICBTDV.cjs} +8 -1
- package/dist/{chunk-N3XO5AL5.cjs → chunk-GPO3LJDJ.cjs} +2 -2
- package/dist/{chunk-MITIAOUQ.mjs → chunk-GZOKWJIW.mjs} +4 -4
- package/dist/{chunk-NAXKOTPP.cjs → chunk-HFUOLILA.cjs} +21 -21
- package/dist/{chunk-C2JOS77Z.cjs → chunk-HGB4PM2C.cjs} +178 -51
- package/dist/{chunk-2IFT2CSA.cjs → chunk-HTXKSREF.cjs} +515 -151
- package/dist/{chunk-Z3GPAFIA.mjs → chunk-HY6IVQ54.mjs} +1 -1
- package/dist/{chunk-X7LGLF33.mjs → chunk-IBVN7SW5.mjs} +480 -116
- package/dist/{chunk-DPYBVVL3.cjs → chunk-ILQ5DKYF.cjs} +2 -2
- package/dist/{chunk-V25GSH43.mjs → chunk-IXZSBO76.mjs} +1 -1
- package/dist/{chunk-RJUCNO7R.mjs → chunk-JMOCMXTQ.mjs} +1 -1
- package/dist/{chunk-UISZLYKY.cjs → chunk-KDOZORJD.cjs} +52 -41
- package/dist/{chunk-PLXD2MJV.cjs → chunk-KTDG4THT.cjs} +2 -2
- package/dist/{chunk-L6E4SHUB.cjs → chunk-LGR7565L.cjs} +6 -6
- package/dist/chunk-LRPPXKCX.mjs +58 -0
- package/dist/{chunk-GUU3IZSM.mjs → chunk-MJEKMT6B.mjs} +324 -148
- package/dist/chunk-NDOE76QC.cjs +58 -0
- package/dist/{chunk-2AM26UGI.cjs → chunk-NLBK37HI.cjs} +5 -4
- package/dist/{chunk-REP6HWJN.mjs → chunk-OBYM5S5G.mjs} +2 -2
- package/dist/{chunk-ZUVAGMQ5.cjs → chunk-ODBM54RT.cjs} +7 -7
- package/dist/{chunk-J5ASGNKF.mjs → chunk-OIP62QEL.mjs} +1 -1
- package/dist/{chunk-KEB7AGS6.cjs → chunk-OXNZUCHN.cjs} +16 -11
- package/dist/{chunk-2MR4MABG.cjs → chunk-PXAHSCR6.cjs} +58 -8
- package/dist/{chunk-7BUE2GM6.mjs → chunk-QGCSUC5O.mjs} +174 -81
- package/dist/{chunk-VXB5CMNC.cjs → chunk-QKEZLYON.cjs} +2 -2
- package/dist/{chunk-UQUOSNRN.mjs → chunk-REK6HZSU.mjs} +470 -267
- package/dist/{chunk-E77IA5IF.mjs → chunk-RLFGKJQ6.mjs} +1 -1
- package/dist/{chunk-3BQ7QHUH.cjs → chunk-ROCF6UQD.cjs} +17 -8
- package/dist/{chunk-KQAB5LML.mjs → chunk-SUQACHER.mjs} +2 -2
- package/dist/{chunk-NA77GEIU.mjs → chunk-SVQX5HYW.mjs} +53 -3
- package/dist/{chunk-KWST2O22.cjs → chunk-TAU3OF5B.cjs} +611 -435
- package/dist/{chunk-ZPUAOKHV.cjs → chunk-TDCP3Z4T.cjs} +3 -3
- package/dist/{chunk-3AUINHFG.mjs → chunk-TNYC3TYP.mjs} +3 -2
- package/dist/{chunk-TP4RAV7Y.cjs → chunk-TU6VAH4V.cjs} +8 -8
- package/dist/{chunk-MEJCP2LX.cjs → chunk-UVQRMUAR.cjs} +1 -1
- package/dist/{chunk-JMFTKNBA.mjs → chunk-UVZMSRHF.mjs} +2 -2
- package/dist/{chunk-MU5V7XHL.mjs → chunk-VJSXPN3W.mjs} +3 -0
- package/dist/{chunk-DU4VHHPJ.mjs → chunk-VO55MMBX.mjs} +1 -1
- package/dist/{chunk-GF22VGMS.cjs → chunk-VPETSSWN.cjs} +2 -2
- package/dist/{chunk-LDVJIBGN.mjs → chunk-VT25ERQK.mjs} +1 -1
- package/dist/{chunk-AYVGD3PK.mjs → chunk-XI3OXOMK.mjs} +1 -1
- package/dist/{chunk-7OHJWFLB.cjs → chunk-XUSJVHHD.cjs} +466 -373
- package/dist/{chunk-FILXOEWD.cjs → chunk-YXIQYWOK.cjs} +2 -2
- package/dist/{chunk-JVA4PIYN.cjs → chunk-YZK64PZT.cjs} +635 -432
- package/dist/{chunk-THG2TVDH.mjs → chunk-YZLEOMMA.mjs} +3 -3
- package/dist/{chunk-QUFENL7Q.mjs → chunk-Z3IN6GEX.mjs} +16 -7
- package/dist/{chunk-Q5HMVGR5.cjs → chunk-ZFEJ2SF2.cjs} +13 -13
- package/dist/{chunk-LNVGXUL3.cjs → chunk-ZMSVKVI3.cjs} +3 -0
- package/dist/{client-component.d-DwpH251K.d.mts → client-component.d-C71rMuHF.d.mts} +2 -2
- package/dist/{client-component.d-fYupugbZ.d.ts → client-component.d-sF-Znk0j.d.ts} +2 -2
- package/dist/{client-plugins.d-k3bOT5gz.d.mts → client-plugins.d-B-Gd9mWR.d.mts} +5 -4
- package/dist/{client-plugins.d-BxqFfHpM.d.ts → client-plugins.d-MFibjgBg.d.ts} +5 -4
- package/dist/client-plugins.d.mts +4 -4
- package/dist/client-plugins.d.ts +4 -4
- package/dist/client.cjs +1 -1
- package/dist/client.d.mts +9 -9
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +1 -1
- package/dist/config.d.mts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/desktop.d.mts +5 -5
- package/dist/desktop.d.ts +5 -5
- package/dist/{devtools-O5625KCK.cjs → devtools-6K4QXFRL.cjs} +7 -7
- package/dist/{devtools-6MXPFPNJ.mjs → devtools-TDIJ6HVC.mjs} +6 -6
- package/dist/docs.cjs +10 -10
- package/dist/docs.d.mts +5 -5
- package/dist/docs.d.ts +5 -5
- package/dist/docs.mjs +9 -9
- package/dist/environment/vite.cjs +3 -3
- package/dist/environment/vite.mjs +2 -2
- package/dist/{headers.d-sNT7ZQiU.d.mts → headers.d-BUxGJTsj.d.mts} +2 -2
- package/dist/{headers.d-DalIGbVO.d.ts → headers.d-uQ6BR59u.d.ts} +2 -2
- package/dist/i18n/client.cjs +3 -2
- package/dist/i18n/client.d.mts +2 -2
- package/dist/i18n/client.d.ts +2 -2
- package/dist/i18n/client.mjs +2 -1
- package/dist/i18n/index.cjs +3 -2
- package/dist/i18n/index.d.mts +3 -3
- package/dist/i18n/index.d.ts +3 -3
- package/dist/i18n/index.mjs +2 -1
- package/dist/i18n/server.cjs +6 -5
- package/dist/i18n/server.d.mts +5 -5
- package/dist/i18n/server.d.ts +5 -5
- package/dist/i18n/server.mjs +5 -4
- package/dist/index.cjs +32 -30
- package/dist/{index.d-BcA-secm.d.ts → index.d-BCGfxCXY.d.ts} +1 -1
- package/dist/{index.d-DDHHAv7j.d.mts → index.d-CuWOJ-un.d.mts} +1 -1
- package/dist/index.d.mts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.mjs +31 -29
- package/dist/integrations/orm.d.mts +4 -4
- package/dist/integrations/orm.d.ts +4 -4
- package/dist/integrations.d.mts +4 -4
- package/dist/integrations.d.ts +4 -4
- package/dist/internal/app-markdown-runtime.cjs +3 -3
- package/dist/internal/app-markdown-runtime.d.mts +5 -5
- package/dist/internal/app-markdown-runtime.d.ts +5 -5
- package/dist/internal/app-markdown-runtime.mjs +2 -2
- package/dist/internal/build-runtime.cjs +29 -29
- package/dist/internal/build-runtime.d.mts +6 -6
- package/dist/internal/build-runtime.d.ts +6 -6
- package/dist/internal/build-runtime.mjs +28 -28
- package/dist/internal/cli-runtime.cjs +12 -12
- package/dist/internal/cli-runtime.mjs +11 -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 +2 -2
- package/dist/internal/client-runtime.d.mts +7 -7
- package/dist/internal/client-runtime.d.ts +7 -7
- package/dist/internal/client-runtime.mjs +3 -3
- package/dist/internal/compression-runtime.d.mts +4 -4
- package/dist/internal/compression-runtime.d.ts +4 -4
- package/dist/internal/config-runtime.cjs +8 -8
- package/dist/internal/config-runtime.d.mts +7 -7
- package/dist/internal/config-runtime.d.ts +7 -7
- package/dist/internal/config-runtime.mjs +7 -7
- package/dist/internal/infra-analytics-runtime.cjs +10 -10
- package/dist/internal/infra-analytics-runtime.mjs +8 -8
- package/dist/internal/native-server-fns.cjs +4 -4
- package/dist/internal/native-server-fns.mjs +3 -3
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +19 -19
- package/dist/internal/production-runtime.d.mts +37 -25
- package/dist/internal/production-runtime.d.ts +37 -25
- package/dist/internal/production-runtime.mjs +18 -18
- package/dist/internal/vercel-edge-middleware.d.mts +2 -2
- package/dist/internal/vercel-edge-middleware.d.ts +2 -2
- package/dist/markdown.cjs +2 -2
- package/dist/markdown.d.mts +4 -4
- package/dist/markdown.d.ts +4 -4
- package/dist/markdown.mjs +1 -1
- package/dist/middleware.cjs +3 -3
- package/dist/middleware.d.mts +5 -5
- package/dist/middleware.d.ts +5 -5
- package/dist/middleware.mjs +2 -2
- package/dist/mobile.d.mts +3 -3
- package/dist/mobile.d.ts +3 -3
- package/dist/{mount.d-C1PONsEe.d.mts → mount.d-BIYmcGGg.d.mts} +1 -1
- package/dist/{mount.d-D3JOux2V.d.ts → mount.d-q8k0cJV0.d.ts} +1 -1
- package/dist/{native-tree-L2IIEBXH.mjs → native-tree-OYGKP2NZ.mjs} +2 -2
- package/dist/{native-tree-GF4BH33L.cjs → native-tree-R6CQMDTI.cjs} +3 -3
- package/dist/{navigation-delegate.d-CQQPbdkE.d.ts → navigation-delegate.d-Btfs6Uoa.d.ts} +1 -1
- package/dist/{navigation-delegate.d-CJQQHboA.d.mts → navigation-delegate.d-CYBUupsv.d.mts} +1 -1
- package/dist/navigation.d.mts +7 -7
- package/dist/navigation.d.ts +7 -7
- package/dist/{observability.d-B2363jB6.d.mts → observability.d-DdJRiaIX.d.mts} +27 -3
- package/dist/{observability.d-B2363jB6.d.ts → observability.d-DdJRiaIX.d.ts} +27 -3
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +21 -21
- package/dist/plugin.d.mts +7 -7
- package/dist/plugin.d.ts +7 -7
- package/dist/plugin.mjs +20 -20
- package/dist/{production-runtime.d-B0IeWWyO.d.mts → production-runtime.d-Bcu37SCo.d.mts} +1 -1
- package/dist/{production-runtime.d-q3aHIv5Y.d.ts → production-runtime.d-qPj3XRET.d.ts} +1 -1
- package/dist/{render-plan.d-DHuJMJRP.d.ts → render-plan.d-0FHusf1D.d.ts} +1 -1
- package/dist/{render-plan.d-CiUj0rq5.d.mts → render-plan.d-BlyxqKMu.d.mts} +1 -1
- package/dist/renderer-client.cjs +3 -2
- package/dist/renderer-client.d.mts +7 -7
- package/dist/renderer-client.d.ts +7 -7
- package/dist/renderer-client.mjs +2 -1
- package/dist/{request.d-DRUbOmYD.d.ts → request.d-CPdVjssg.d.ts} +1 -1
- package/dist/{request.d-D-F7o7tb.d.mts → request.d-CX-gks1l.d.mts} +1 -1
- package/dist/request.d.mts +5 -5
- package/dist/request.d.ts +5 -5
- package/dist/{resolver.d-9iKC79CU.d.mts → resolver.d-DJgzbdsp.d.mts} +1 -1
- package/dist/{resolver.d-CY6mEa_F.d.ts → resolver.d-yaHcGCCG.d.ts} +1 -1
- package/dist/{route-rendering.d-6smgwT2t.d.mts → route-rendering.d-CcvZ_4N2.d.mts} +1 -1
- package/dist/{route-rendering.d-KwqM_mlK.d.ts → route-rendering.d-DcOoSNoG.d.ts} +1 -1
- package/dist/{router.d-BYmDeDlp.d.mts → router.d-C8RHma4A.d.mts} +1 -1
- package/dist/{router.d-B6sesMRD.d.ts → router.d-D2QnK8cM.d.ts} +1 -1
- package/dist/{routes.d-D3aJw1H5.d.mts → routes.d-CCccJRrp.d.mts} +1 -1
- package/dist/{routes.d-K-Qg79AA.d.ts → routes.d-b7khoRoU.d.ts} +1 -1
- package/dist/routes.d.mts +4 -4
- package/dist/routes.d.ts +4 -4
- package/dist/{routing.d-DwSUVZbF.d.mts → routing.d-BhPgtN_S.d.ts} +2 -1
- package/dist/{routing.d-BxOZ2YWc.d.ts → routing.d-D67HQmnv.d.mts} +2 -1
- package/dist/{rsc-pipeline-R2GOKIMU.mjs → rsc-pipeline-LC2FBZAR.mjs} +7 -7
- package/dist/{rsc-pipeline-P4PCWDO2.cjs → rsc-pipeline-NTAM65NT.cjs} +8 -8
- package/dist/{runtime-DP5DYGW5.mjs → runtime-MWAC7NWR.mjs} +7 -7
- package/dist/{runtime-WA2Q4SLG.cjs → runtime-U4PAMTVH.cjs} +9 -9
- package/dist/{runtime.d-CbdMI0Oy.d.ts → runtime.d-1l_1bLrL.d.ts} +1 -1
- package/dist/{runtime.d-BFSJf-ww.d.mts → runtime.d-BQUHHq8M.d.mts} +1 -1
- package/dist/{runtime.d-nUz0HAL4.d.mts → runtime.d-CTAXWZby.d.mts} +2 -2
- package/dist/{runtime.d-B_uPfMjA.d.ts → runtime.d-PUA5qBnd.d.ts} +2 -2
- package/dist/server-plugins.d.mts +6 -6
- package/dist/server-plugins.d.ts +6 -6
- package/dist/server.cjs +43 -41
- package/dist/server.d.mts +15 -15
- package/dist/server.d.ts +15 -15
- package/dist/server.mjs +26 -24
- package/dist/{spa-router.d-mC1D5cTN.d.ts → spa-router.d-BJtXNeqo.d.ts} +3 -3
- package/dist/{spa-router.d-D4EDwR20.d.mts → spa-router.d-BzPdi48R.d.mts} +3 -3
- package/dist/testing.cjs +6 -5
- package/dist/testing.d.mts +4 -4
- package/dist/testing.d.ts +4 -4
- package/dist/testing.mjs +6 -5
- package/dist/{types.d-wVRlLtBf.d.ts → types.d-euATAbE4.d.mts} +4 -0
- package/dist/{types.d-wVRlLtBf.d.mts → types.d-euATAbE4.d.ts} +4 -0
- package/dist/{utils.d-DxMzteqE.d.mts → utils.d-B4ZW-6z6.d.mts} +1 -1
- package/dist/{utils.d-A2X3a6z_.d.ts → utils.d-DquC6qxy.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +23 -21
- package/dist/vite.d.mts +18 -9
- package/dist/vite.d.ts +18 -9
- package/dist/vite.mjs +22 -20
- package/package.json +1 -1
- package/dist/analyzer-LPIVRSTJ.cjs +0 -16
- package/dist/chunk-V3UOEWCB.cjs +0 -46
- package/dist/chunk-VE3FWJBO.mjs +0 -46
package/dist/api.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
farmApiPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YZLEOMMA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
mountFetchHandler
|
|
6
6
|
} from "./chunk-AZ6IW6SF.mjs";
|
|
@@ -26,11 +26,11 @@ import "./chunk-IYEY3JWJ.mjs";
|
|
|
26
26
|
import {
|
|
27
27
|
APIRouteConflictError,
|
|
28
28
|
APIRouteManager
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-RLFGKJQ6.mjs";
|
|
30
30
|
import "./chunk-TXE4SAMV.mjs";
|
|
31
31
|
import "./chunk-YX6AFPXC.mjs";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-TNYC3TYP.mjs";
|
|
33
|
+
import "./chunk-VO55MMBX.mjs";
|
|
34
34
|
import "./chunk-NR63PD3P.mjs";
|
|
35
35
|
import {
|
|
36
36
|
API_ROUTE_METHODS,
|
|
@@ -67,7 +67,7 @@ import "./chunk-IGL6CO6M.mjs";
|
|
|
67
67
|
import "./chunk-O5QUJEWT.mjs";
|
|
68
68
|
import "./chunk-VHIXGZYH.mjs";
|
|
69
69
|
import "./chunk-TUOO6IK3.mjs";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-VJSXPN3W.mjs";
|
|
71
71
|
import "./chunk-JSDV2NUN.mjs";
|
|
72
72
|
import {
|
|
73
73
|
resolveFarmAPIServerBasePath
|
|
@@ -97,8 +97,9 @@ import {
|
|
|
97
97
|
resolveFarmAPIConfig,
|
|
98
98
|
resolveFarmAPIRequestURL
|
|
99
99
|
} from "./chunk-W6QLRQ3V.mjs";
|
|
100
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-2EVESLP3.mjs";
|
|
101
101
|
import "./chunk-AY2YD5ZX.mjs";
|
|
102
|
+
import "./chunk-4O26BPUY.mjs";
|
|
102
103
|
import "./chunk-M25IONJP.mjs";
|
|
103
104
|
import "./chunk-GLOICKDO.mjs";
|
|
104
105
|
import "./chunk-AZQXXXDX.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aK as FarmMCPCatalogDetails, aL as ResolvedFarmAppManifestConfig } from './client-plugins.d-
|
|
1
|
+
import { aK as FarmMCPCatalogDetails, aL as ResolvedFarmAppManifestConfig } from './client-plugins.d-MFibjgBg.js';
|
|
2
2
|
|
|
3
3
|
interface FarmAppManifestWebMCPTool {
|
|
4
4
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aK as FarmMCPCatalogDetails, aL as ResolvedFarmAppManifestConfig } from './client-plugins.d-
|
|
1
|
+
import { aK as FarmMCPCatalogDetails, aL as ResolvedFarmAppManifestConfig } from './client-plugins.d-B-Gd9mWR.mjs';
|
|
2
2
|
|
|
3
3
|
interface FarmAppManifestWebMCPTool {
|
|
4
4
|
name: string;
|
package/dist/app-markdown.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGPO3LJDJcjs = require('./chunk-GPO3LJDJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -13,7 +13,7 @@ var _chunkN3XO5AL5cjs = require('./chunk-N3XO5AL5.cjs');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkLGR7565Lcjs = require('./chunk-LGR7565L.cjs');
|
|
17
17
|
require('./chunk-UNJZGVPU.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
@@ -23,7 +23,7 @@ var _chunk2HW5LWAHcjs = require('./chunk-2HW5LWAH.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkHGB4PM2Ccjs = require('./chunk-HGB4PM2C.cjs');
|
|
27
27
|
require('./chunk-LRB5OVRT.cjs');
|
|
28
28
|
require('./chunk-2OF5RPVU.cjs');
|
|
29
29
|
require('./chunk-EVIWKPJV.cjs');
|
|
@@ -52,4 +52,4 @@ require('./chunk-BTZ5O6VM.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
exports.FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS =
|
|
55
|
+
exports.FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS = _chunkLGR7565Lcjs.FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS; exports.FARM_MARKDOWN_CONTENT_TYPE = _chunkHGB4PM2Ccjs.FARM_MARKDOWN_CONTENT_TYPE; exports.createFarmMarkdownErrorBody = _chunkHGB4PM2Ccjs.createFarmMarkdownErrorBody; exports.createFarmMarkdownRouteModule = _chunkLGR7565Lcjs.createFarmMarkdownRouteModule; exports.createFarmMarkdownRouteModuleFromFile = _chunkGPO3LJDJcjs.createFarmMarkdownRouteModuleFromFile; exports.createFarmMarkdownSourceResponse = _chunkLGR7565Lcjs.createFarmMarkdownSourceResponse; exports.createMarkdownMetadata = _chunkLGR7565Lcjs.createMarkdownMetadata; exports.farmRequestWantsMarkdown = _chunkHGB4PM2Ccjs.farmRequestWantsMarkdown; exports.isFarmMarkdownPageFile = _chunkLGR7565Lcjs.isFarmMarkdownPageFile; exports.isFarmMarkdownPublicSourceResponse = _chunkLGR7565Lcjs.isFarmMarkdownPublicSourceResponse; exports.loadFarmMdxComponents = _chunkGPO3LJDJcjs.loadFarmMdxComponents; exports.normalizeFarmMarkdownRoutePath = _chunkLGR7565Lcjs.normalizeFarmMarkdownRoutePath; exports.parseMarkdownFrontmatter = _chunkLGR7565Lcjs.parseMarkdownFrontmatter; exports.readFarmMarkdownRouteConfig = _chunkLGR7565Lcjs.readFarmMarkdownRouteConfig; exports.resolveFarmMdxComponentsModulePath = _chunk2HW5LWAHcjs.resolveFarmMdxComponentsModulePath; exports.resolveMdxConfig = _chunk2HW5LWAHcjs.resolveMdxConfig; exports.titleFromMarkdown = _chunkLGR7565Lcjs.titleFromMarkdown;
|
package/dist/app-markdown.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as RouteModule, h as FarmMdxResolvedConfig, g as FarmMdxComponents } from './client-plugins.d-
|
|
2
|
-
export { k as FARM_MARKDOWN_CONTENT_TYPE, n as FarmMdxComponent, o as FarmMdxUserConfig, l as createFarmMarkdownErrorBody, m as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, p as resolveMdxConfig } from './client-plugins.d-
|
|
1
|
+
import { i as RouteModule, h as FarmMdxResolvedConfig, g as FarmMdxComponents } from './client-plugins.d-B-Gd9mWR.mjs';
|
|
2
|
+
export { k as FARM_MARKDOWN_CONTENT_TYPE, n as FarmMdxComponent, o as FarmMdxUserConfig, l as createFarmMarkdownErrorBody, m as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, p as resolveMdxConfig } from './client-plugins.d-B-Gd9mWR.mjs';
|
|
3
3
|
import { FarmMarkdownPageModuleInput } from './internal/app-markdown-runtime.mjs';
|
|
4
4
|
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, readFarmMarkdownRouteConfig, titleFromMarkdown } from './internal/app-markdown-runtime.mjs';
|
|
5
5
|
import './lifecycle.d-keQs5Swc.mjs';
|
|
@@ -9,8 +9,8 @@ import './cache.mjs';
|
|
|
9
9
|
import './renderer.mjs';
|
|
10
10
|
import './deployment.mjs';
|
|
11
11
|
import 'http';
|
|
12
|
-
import './routing.d-
|
|
13
|
-
import './types.d-
|
|
12
|
+
import './routing.d-D67HQmnv.mjs';
|
|
13
|
+
import './types.d-euATAbE4.mjs';
|
|
14
14
|
import './server-fn.mjs';
|
|
15
15
|
import './server-fn-error.d-DrcH9cc1.mjs';
|
|
16
16
|
import './server-query.mjs';
|
|
@@ -21,7 +21,7 @@ import './schema.d-Dny9pnrm.mjs';
|
|
|
21
21
|
import 'react';
|
|
22
22
|
import '@farming-labs/orm';
|
|
23
23
|
import '@farming-labs/docs';
|
|
24
|
-
import './observability.d-
|
|
24
|
+
import './observability.d-DdJRiaIX.mjs';
|
|
25
25
|
import '@opentelemetry/api';
|
|
26
26
|
import './types.d-xCIhyjOq.mjs';
|
|
27
27
|
import 'vite';
|
package/dist/app-markdown.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as RouteModule, h as FarmMdxResolvedConfig, g as FarmMdxComponents } from './client-plugins.d-
|
|
2
|
-
export { k as FARM_MARKDOWN_CONTENT_TYPE, n as FarmMdxComponent, o as FarmMdxUserConfig, l as createFarmMarkdownErrorBody, m as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, p as resolveMdxConfig } from './client-plugins.d-
|
|
1
|
+
import { i as RouteModule, h as FarmMdxResolvedConfig, g as FarmMdxComponents } from './client-plugins.d-MFibjgBg.js';
|
|
2
|
+
export { k as FARM_MARKDOWN_CONTENT_TYPE, n as FarmMdxComponent, o as FarmMdxUserConfig, l as createFarmMarkdownErrorBody, m as farmRequestWantsMarkdown, r as resolveFarmMdxComponentsModulePath, p as resolveMdxConfig } from './client-plugins.d-MFibjgBg.js';
|
|
3
3
|
import { FarmMarkdownPageModuleInput } from './internal/app-markdown-runtime.js';
|
|
4
4
|
export { FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS, FarmMarkdownPageSource, createFarmMarkdownRouteModule, createFarmMarkdownSourceResponse, createMarkdownMetadata, isFarmMarkdownPageFile, isFarmMarkdownPublicSourceResponse, normalizeFarmMarkdownRoutePath, parseMarkdownFrontmatter, readFarmMarkdownRouteConfig, titleFromMarkdown } from './internal/app-markdown-runtime.js';
|
|
5
5
|
import './lifecycle.d-keQs5Swc.js';
|
|
@@ -9,8 +9,8 @@ import './cache.js';
|
|
|
9
9
|
import './renderer.js';
|
|
10
10
|
import './deployment.js';
|
|
11
11
|
import 'http';
|
|
12
|
-
import './routing.d-
|
|
13
|
-
import './types.d-
|
|
12
|
+
import './routing.d-BhPgtN_S.js';
|
|
13
|
+
import './types.d-euATAbE4.js';
|
|
14
14
|
import './server-fn.js';
|
|
15
15
|
import './server-fn-error.d-DrcH9cc1.js';
|
|
16
16
|
import './server-query.js';
|
|
@@ -21,7 +21,7 @@ import './schema.d-Dny9pnrm.js';
|
|
|
21
21
|
import 'react';
|
|
22
22
|
import '@farming-labs/orm';
|
|
23
23
|
import '@farming-labs/docs';
|
|
24
|
-
import './observability.d-
|
|
24
|
+
import './observability.d-DdJRiaIX.js';
|
|
25
25
|
import '@opentelemetry/api';
|
|
26
26
|
import './types.d-xCIhyjOq.js';
|
|
27
27
|
import 'vite';
|
package/dist/app-markdown.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFarmMarkdownRouteModuleFromFile,
|
|
3
3
|
loadFarmMdxComponents
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XI3OXOMK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
FARM_MARKDOWN_ANONYMOUS_CLIENT_ADDRESS,
|
|
7
7
|
createFarmMarkdownRouteModule,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
parseMarkdownFrontmatter,
|
|
14
14
|
readFarmMarkdownRouteConfig,
|
|
15
15
|
titleFromMarkdown
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OIP62QEL.mjs";
|
|
17
17
|
import "./chunk-BRYPZIMB.mjs";
|
|
18
18
|
import {
|
|
19
19
|
resolveFarmMdxComponentsModulePath,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
FARM_MARKDOWN_CONTENT_TYPE,
|
|
24
24
|
createFarmMarkdownErrorBody,
|
|
25
25
|
farmRequestWantsMarkdown
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CPMME66W.mjs";
|
|
27
27
|
import "./chunk-C7GJDVN4.mjs";
|
|
28
28
|
import "./chunk-2I6PUKWJ.mjs";
|
|
29
29
|
import "./chunk-2DA7CLY7.mjs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-
|
|
1
|
+
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-B-Gd9mWR.mjs';
|
|
2
2
|
import { FarmWorkflowsResolvedConfig } from './workflows.mjs';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.mjs';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.mjs';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.mjs';
|
|
6
|
-
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-
|
|
6
|
+
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-C71rMuHF.mjs';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-PvEf-1mi.mjs';
|
|
9
9
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.mjs';
|
|
10
10
|
import { FarmRenderer, FarmServerRendererRuntime } from './renderer.mjs';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
12
|
-
import { R as ResolvedFarmI18nConfig } from './types.d-
|
|
13
|
-
import { F as FarmI18nRuntime } from './runtime.d-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-BlyxqKMu.mjs';
|
|
12
|
+
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.mjs';
|
|
13
|
+
import { F as FarmI18nRuntime } from './runtime.d-CTAXWZby.mjs';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types.d-DQnyD3VD.mjs';
|
|
15
15
|
|
|
16
16
|
declare const STATIC_METADATA_IMAGE_EXTENSIONS: readonly ["png", "jpg", "jpeg", "gif", "webp"];
|
|
@@ -159,6 +159,11 @@ declare class RouteManager {
|
|
|
159
159
|
private packageClientBoundaryCacheFile?;
|
|
160
160
|
private clientManifestCache?;
|
|
161
161
|
private reportedIslandsErrors;
|
|
162
|
+
private ownerPlans;
|
|
163
|
+
private sourceChangeTracking;
|
|
164
|
+
private linkedSources;
|
|
165
|
+
private sourceSnapshot?;
|
|
166
|
+
private editedSources;
|
|
162
167
|
constructor(config: FarmRendererResolvedConfig, viteServer?: ViteDevServer);
|
|
163
168
|
setRendererRuntime(rendererRuntime: FarmServerRendererRuntime): void;
|
|
164
169
|
/**
|
|
@@ -250,11 +255,46 @@ declare class RouteManager {
|
|
|
250
255
|
* Requests still fetch route data, but never inspect component source.
|
|
251
256
|
*/
|
|
252
257
|
generateClientManifest(projectRoot?: string): FarmClientRouteManifest;
|
|
258
|
+
/**
|
|
259
|
+
* @internal The dev server reports every watched change (`noteSourceChange`), so a replan can
|
|
260
|
+
* reuse the plan of each route module that read none of the edited files. Without tracking,
|
|
261
|
+
* every plan recomputes every module.
|
|
262
|
+
*/
|
|
263
|
+
trackSourceChanges(): void;
|
|
264
|
+
/**
|
|
265
|
+
* @internal A watched file changed. An edit to a script narrows the next replan to the route
|
|
266
|
+
* modules that read it; a script added or removed (where an import may now resolve), or a
|
|
267
|
+
* changed JSON file (a package manifest or tsconfig paths), replans everything. Other files
|
|
268
|
+
* (stylesheets, Markdown, assets) are not read by plans.
|
|
269
|
+
*/
|
|
270
|
+
noteSourceChange(file: string, event: "create" | "update" | "delete"): void;
|
|
271
|
+
/**
|
|
272
|
+
* @internal Whether an edit to `file` leaves the current plan as it is: a client module the
|
|
273
|
+
* last plan read whose directive, island and hydrate exports, export shape and imports the edit
|
|
274
|
+
* kept. The next replan reads it again (the watcher reported it).
|
|
275
|
+
*/
|
|
276
|
+
isEditPlanNeutral(file: string): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* A route module's plan: the last one when it read none of `edited`, recomputed otherwise.
|
|
279
|
+
* Callers get a copy, since the route budget rewrites a plan's fields in place.
|
|
280
|
+
*/
|
|
281
|
+
private planRouteModule;
|
|
282
|
+
/**
|
|
283
|
+
* The path the watcher reports for a file a plan read: itself, or the real path of a workspace
|
|
284
|
+
* package's source read through its `node_modules` link. Null for an installed package's file.
|
|
285
|
+
*/
|
|
286
|
+
private planSourcePath;
|
|
253
287
|
/**
|
|
254
288
|
* @internal Keep package client-boundary inspections in `file` between plans, as the dev server
|
|
255
289
|
* does. Without it, each plan outside a production build reads every package's sources again.
|
|
256
290
|
*/
|
|
257
291
|
usePackageClientBoundaryCacheFile(file: string): void;
|
|
292
|
+
/**
|
|
293
|
+
* @internal Run `operation` (synchronous) with the package inspections of the latest plan, as
|
|
294
|
+
* the dev server's transforms and renders inspect the packages a module imports. Without a cache
|
|
295
|
+
* file (outside the dev server), it runs as it is.
|
|
296
|
+
*/
|
|
297
|
+
inspectPackages<T>(operation: () => T): T;
|
|
258
298
|
private computeClientManifest;
|
|
259
299
|
/**
|
|
260
300
|
* Rebuild route metadata transactionally for HMR. If a file is temporarily
|
|
@@ -402,6 +442,12 @@ declare class ServerRenderer {
|
|
|
402
442
|
private devGlobalStylesheetAssets;
|
|
403
443
|
private collectDevStyleHrefs;
|
|
404
444
|
private collectDevStyleLinks;
|
|
445
|
+
/**
|
|
446
|
+
* The client manifest a development document inlines: the entries its page reads before the
|
|
447
|
+
* first navigation. Inlining every route made each document grow with the app (about 650 KB at
|
|
448
|
+
* 1,000 routes); the client imports the whole manifest only when a navigation needs it.
|
|
449
|
+
*/
|
|
450
|
+
private createDevBootClientManifest;
|
|
405
451
|
/**
|
|
406
452
|
* A layout's boundary. Islands mode keys it (the pattern with its params, as the production
|
|
407
453
|
* server does), so a navigation can name the layouts the browser shows; a layout the browser
|
|
@@ -410,6 +456,8 @@ declare class ServerRenderer {
|
|
|
410
456
|
private createLayoutBoundary;
|
|
411
457
|
private wrapClientGraph;
|
|
412
458
|
/** The page a hydrating layout keeps as server HTML: islands again, or a server tree. */
|
|
459
|
+
/** The route root's strategy, inspecting packages with the dev server's latest plan's cache. */
|
|
460
|
+
private resolveRouteRootStrategy;
|
|
413
461
|
private isolateServerPage;
|
|
414
462
|
private renderElementToCompleteHTML;
|
|
415
463
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-
|
|
1
|
+
import { aR as FarmConfig, P as ParsedRoute, bt as ResolvedFarmRouteRuntimeConfig, bu as ApplicationMetadataRouteKind, i as RouteModule, b4 as LayoutModule, bg as SSGCollectionResult, G as FarmRedirectStatus, t as FarmRequest, u as FarmResponse, bv as ResolvedFarmAPIConfig, bw as FarmDocsResolvedConfig, aQ as FarmMarkdownResolvedConfig, h as FarmMdxResolvedConfig, aA as ResolvedFarmDevtoolsConfig, bx as ResolvedFarmDevIndicatorsConfig, by as ResolvedFarmAuthConfig, bz as ResolvedFarmPerformanceConfig, bA as ResolvedFarmSecurityConfig } from './client-plugins.d-MFibjgBg.js';
|
|
2
2
|
import { FarmWorkflowsResolvedConfig } from './workflows.js';
|
|
3
3
|
import { FarmCronResolvedConfig } from './cron.js';
|
|
4
4
|
import { R as ResolvedFarmImageConfig } from './image-config.d-ByhQ0TT7.js';
|
|
5
5
|
import { ProgrammaticRedirectRoute, ProgrammaticRouteSearchClientOptions } from './routes.js';
|
|
6
|
-
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-
|
|
6
|
+
import { I as IsolatedClientBoundaryReference, P as ProgrammaticClientRoutes } from './client-component.d-sF-Znk0j.js';
|
|
7
7
|
import { ViteDevServer } from 'vite';
|
|
8
|
-
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-
|
|
8
|
+
import { M as MetadataImageKind, c as createFarmDefaultMCPServer } from './agent-mcp.d-D_gHjCAE.js';
|
|
9
9
|
import { F as FarmIslandStrategy } from './island.d-CfGru1MO.js';
|
|
10
10
|
import { FarmRenderer, FarmServerRendererRuntime } from './renderer.js';
|
|
11
|
-
import { F as FarmRouteRenderPlan } from './render-plan.d-
|
|
12
|
-
import { R as ResolvedFarmI18nConfig } from './types.d-
|
|
13
|
-
import { F as FarmI18nRuntime } from './runtime.d-
|
|
11
|
+
import { F as FarmRouteRenderPlan } from './render-plan.d-0FHusf1D.js';
|
|
12
|
+
import { R as ResolvedFarmI18nConfig } from './types.d-euATAbE4.js';
|
|
13
|
+
import { F as FarmI18nRuntime } from './runtime.d-PUA5qBnd.js';
|
|
14
14
|
import { R as ResolvedFarmThemeConfig } from './types.d-DQnyD3VD.js';
|
|
15
15
|
|
|
16
16
|
declare const STATIC_METADATA_IMAGE_EXTENSIONS: readonly ["png", "jpg", "jpeg", "gif", "webp"];
|
|
@@ -159,6 +159,11 @@ declare class RouteManager {
|
|
|
159
159
|
private packageClientBoundaryCacheFile?;
|
|
160
160
|
private clientManifestCache?;
|
|
161
161
|
private reportedIslandsErrors;
|
|
162
|
+
private ownerPlans;
|
|
163
|
+
private sourceChangeTracking;
|
|
164
|
+
private linkedSources;
|
|
165
|
+
private sourceSnapshot?;
|
|
166
|
+
private editedSources;
|
|
162
167
|
constructor(config: FarmRendererResolvedConfig, viteServer?: ViteDevServer);
|
|
163
168
|
setRendererRuntime(rendererRuntime: FarmServerRendererRuntime): void;
|
|
164
169
|
/**
|
|
@@ -250,11 +255,46 @@ declare class RouteManager {
|
|
|
250
255
|
* Requests still fetch route data, but never inspect component source.
|
|
251
256
|
*/
|
|
252
257
|
generateClientManifest(projectRoot?: string): FarmClientRouteManifest;
|
|
258
|
+
/**
|
|
259
|
+
* @internal The dev server reports every watched change (`noteSourceChange`), so a replan can
|
|
260
|
+
* reuse the plan of each route module that read none of the edited files. Without tracking,
|
|
261
|
+
* every plan recomputes every module.
|
|
262
|
+
*/
|
|
263
|
+
trackSourceChanges(): void;
|
|
264
|
+
/**
|
|
265
|
+
* @internal A watched file changed. An edit to a script narrows the next replan to the route
|
|
266
|
+
* modules that read it; a script added or removed (where an import may now resolve), or a
|
|
267
|
+
* changed JSON file (a package manifest or tsconfig paths), replans everything. Other files
|
|
268
|
+
* (stylesheets, Markdown, assets) are not read by plans.
|
|
269
|
+
*/
|
|
270
|
+
noteSourceChange(file: string, event: "create" | "update" | "delete"): void;
|
|
271
|
+
/**
|
|
272
|
+
* @internal Whether an edit to `file` leaves the current plan as it is: a client module the
|
|
273
|
+
* last plan read whose directive, island and hydrate exports, export shape and imports the edit
|
|
274
|
+
* kept. The next replan reads it again (the watcher reported it).
|
|
275
|
+
*/
|
|
276
|
+
isEditPlanNeutral(file: string): boolean;
|
|
277
|
+
/**
|
|
278
|
+
* A route module's plan: the last one when it read none of `edited`, recomputed otherwise.
|
|
279
|
+
* Callers get a copy, since the route budget rewrites a plan's fields in place.
|
|
280
|
+
*/
|
|
281
|
+
private planRouteModule;
|
|
282
|
+
/**
|
|
283
|
+
* The path the watcher reports for a file a plan read: itself, or the real path of a workspace
|
|
284
|
+
* package's source read through its `node_modules` link. Null for an installed package's file.
|
|
285
|
+
*/
|
|
286
|
+
private planSourcePath;
|
|
253
287
|
/**
|
|
254
288
|
* @internal Keep package client-boundary inspections in `file` between plans, as the dev server
|
|
255
289
|
* does. Without it, each plan outside a production build reads every package's sources again.
|
|
256
290
|
*/
|
|
257
291
|
usePackageClientBoundaryCacheFile(file: string): void;
|
|
292
|
+
/**
|
|
293
|
+
* @internal Run `operation` (synchronous) with the package inspections of the latest plan, as
|
|
294
|
+
* the dev server's transforms and renders inspect the packages a module imports. Without a cache
|
|
295
|
+
* file (outside the dev server), it runs as it is.
|
|
296
|
+
*/
|
|
297
|
+
inspectPackages<T>(operation: () => T): T;
|
|
258
298
|
private computeClientManifest;
|
|
259
299
|
/**
|
|
260
300
|
* Rebuild route metadata transactionally for HMR. If a file is temporarily
|
|
@@ -402,6 +442,12 @@ declare class ServerRenderer {
|
|
|
402
442
|
private devGlobalStylesheetAssets;
|
|
403
443
|
private collectDevStyleHrefs;
|
|
404
444
|
private collectDevStyleLinks;
|
|
445
|
+
/**
|
|
446
|
+
* The client manifest a development document inlines: the entries its page reads before the
|
|
447
|
+
* first navigation. Inlining every route made each document grow with the app (about 650 KB at
|
|
448
|
+
* 1,000 routes); the client imports the whole manifest only when a navigation needs it.
|
|
449
|
+
*/
|
|
450
|
+
private createDevBootClientManifest;
|
|
405
451
|
/**
|
|
406
452
|
* A layout's boundary. Islands mode keys it (the pattern with its params, as the production
|
|
407
453
|
* server does), so a navigation can name the layouts the browser shows; a layout the browser
|
|
@@ -410,6 +456,8 @@ declare class ServerRenderer {
|
|
|
410
456
|
private createLayoutBoundary;
|
|
411
457
|
private wrapClientGraph;
|
|
412
458
|
/** The page a hydrating layout keeps as server HTML: islands again, or a server tree. */
|
|
459
|
+
/** The route root's strategy, inspecting packages with the dev server's latest plan's cache. */
|
|
460
|
+
private resolveRouteRootStrategy;
|
|
413
461
|
private isolateServerPage;
|
|
414
462
|
private renderElementToCompleteHTML;
|
|
415
463
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decodeCookieName
|
|
3
3
|
} from "./chunk-AY2YD5ZX.mjs";
|
|
4
|
+
import {
|
|
5
|
+
normalizeFarmTrailingSlashPathname
|
|
6
|
+
} from "./chunk-4O26BPUY.mjs";
|
|
4
7
|
import {
|
|
5
8
|
localizeFarmPathname,
|
|
6
9
|
resolveFarmLocalePath
|
|
@@ -57,7 +60,11 @@ function resolveFarmLocaleRequest(request, config, options = {}) {
|
|
|
57
60
|
locale: detected.locale,
|
|
58
61
|
source: detected.source,
|
|
59
62
|
pathname: pathMatch.pathname,
|
|
60
|
-
|
|
63
|
+
// Straight to the locale page's canonical URL, with the app's trailingSlash, not a second hop.
|
|
64
|
+
redirect: shouldRedirect ? `${normalizeFarmTrailingSlashPathname(
|
|
65
|
+
localizeFarmPathname(pathMatch.pathname, detected.locale, config),
|
|
66
|
+
config.trailingSlash === true
|
|
67
|
+
)}${url.search}${url.hash}` : void 0,
|
|
61
68
|
persist: detected.source !== "default"
|
|
62
69
|
};
|
|
63
70
|
}
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
resolveFarmAgentSitemap,
|
|
20
20
|
resolveFarmNoindexPreviews,
|
|
21
21
|
resolveFarmPerformanceConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OBYM5S5G.mjs";
|
|
23
23
|
import {
|
|
24
24
|
resolveFarmAppManifestConfig
|
|
25
25
|
} from "./chunk-SQ5O7I3L.mjs";
|
|
26
26
|
import {
|
|
27
27
|
resolveFarmLlmsTxtConfig
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HY6IVQ54.mjs";
|
|
29
29
|
import {
|
|
30
30
|
farmCspBlocksFrameworkInlineScripts,
|
|
31
31
|
getFarmSecurityHeader,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-UIJOLBUL.mjs";
|
|
65
65
|
import {
|
|
66
66
|
resolveMarkdownConfig
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-CPMME66W.mjs";
|
|
68
68
|
import {
|
|
69
69
|
bundleNodeModule
|
|
70
70
|
} from "./chunk-MGKWYPE3.mjs";
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
} from "./chunk-EDPENAVO.mjs";
|
|
83
83
|
import {
|
|
84
84
|
resolveFarmI18nConfig
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-VJSXPN3W.mjs";
|
|
86
86
|
import {
|
|
87
87
|
logger
|
|
88
88
|
} from "./chunk-JSDV2NUN.mjs";
|
|
@@ -1208,7 +1208,12 @@ async function resolveConfig(userConfig, mode) {
|
|
|
1208
1208
|
performance: resolveFarmPerformanceConfig(userConfig.performance),
|
|
1209
1209
|
theme: resolveFarmThemeConfig(userConfig.theme, basePath),
|
|
1210
1210
|
publicDir: userConfig.publicDir || "public",
|
|
1211
|
-
i18n: resolveFarmI18nConfig(userConfig.i18n, {
|
|
1211
|
+
i18n: resolveFarmI18nConfig(userConfig.i18n, {
|
|
1212
|
+
root,
|
|
1213
|
+
mode,
|
|
1214
|
+
basePath,
|
|
1215
|
+
trailingSlash: userConfig.trailingSlash ?? false
|
|
1216
|
+
}),
|
|
1212
1217
|
openapi,
|
|
1213
1218
|
middleware: validateMiddlewareConfig(userConfig.middleware) || {},
|
|
1214
1219
|
notFound: userConfig.notFound || {},
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkTU6VAH4Vcjs = require('./chunk-TU6VAH4V.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkILQ5DKYFcjs = require('./chunk-ILQ5DKYF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHGB4PM2Ccjs = require('./chunk-HGB4PM2C.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk2KMIJDY6cjs = require('./chunk-2KMIJDY6.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
29
29
|
var _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkUVQRMUARcjs = require('./chunk-UVQRMUAR.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
@@ -165,7 +165,7 @@ function createFarmAiCatalogResponse(request, input = {}, requestUrl) {
|
|
|
165
165
|
if (_chunkCFG4QERRcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
166
166
|
return new Response(null, { status: 304, headers });
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
_chunkHGB4PM2Ccjs.emitFarmAgentRead.call(void 0, request, card ? "mcp-server-card" : "ai-catalog", 200);
|
|
169
169
|
return new Response(method === "HEAD" ? null : body, { status: 200, headers });
|
|
170
170
|
}
|
|
171
171
|
function corsHeaders() {
|
|
@@ -233,7 +233,7 @@ function createFarmApiCatalogResponse(method, input, request) {
|
|
|
233
233
|
headers: { Allow: "GET, HEAD", "Content-Type": "text/plain; charset=utf-8" }
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
if (request)
|
|
236
|
+
if (request) _chunkHGB4PM2Ccjs.emitFarmAgentRead.call(void 0, request, "api-catalog", 200);
|
|
237
237
|
const catalog = createFarmApiCatalog(input);
|
|
238
238
|
return new Response(upperMethod === "HEAD" ? null : JSON.stringify(catalog), {
|
|
239
239
|
status: 200,
|
|
@@ -288,7 +288,7 @@ function createFarmAppManifest(input) {
|
|
|
288
288
|
return {
|
|
289
289
|
schemaVersion: 1,
|
|
290
290
|
app: app ? {
|
|
291
|
-
...app.version ? { farm:
|
|
291
|
+
...app.version ? { farm: _chunkUVQRMUARcjs.FARM_VERSION } : {},
|
|
292
292
|
...app.renderer ? { renderer: input.renderer } : {},
|
|
293
293
|
basePath: input.basePath,
|
|
294
294
|
...app.build ? { build: input.build } : {}
|
|
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
|
|
|
319
319
|
asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
|
|
320
320
|
];
|
|
321
321
|
for (const candidate of candidates) {
|
|
322
|
-
const origin = candidate ?
|
|
322
|
+
const origin = candidate ? _chunkILQ5DKYFcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
|
|
323
323
|
if (origin) return origin;
|
|
324
324
|
}
|
|
325
325
|
return null;
|
|
@@ -374,7 +374,7 @@ function listDefaultServer(input) {
|
|
|
374
374
|
authorization: "none",
|
|
375
375
|
resources: [],
|
|
376
376
|
prompts: [],
|
|
377
|
-
tools:
|
|
377
|
+
tools: _chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_TOOLS.map((tool) => ({
|
|
378
378
|
name: tool.name,
|
|
379
379
|
title: tool.title,
|
|
380
380
|
description: tool.description,
|
|
@@ -434,7 +434,7 @@ function listFarmBuiltInRoutePaths(input) {
|
|
|
434
434
|
...agent.manifest !== false ? [FARM_APP_MANIFEST_PATH, FARM_APP_MANIFEST_LEGACY_PATH] : [],
|
|
435
435
|
...agent.apiCatalog ? [FARM_API_CATALOG_PATH] : [],
|
|
436
436
|
...agent.aiCatalog !== false ? [FARM_AI_CATALOG_PATH, FARM_ARD_PATH] : [],
|
|
437
|
-
...agent.mcp === true ? [
|
|
437
|
+
...agent.mcp === true ? [_chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_PATH, `${_chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_PATH}${FARM_MCP_SERVER_CARD_SUFFIX}`] : [],
|
|
438
438
|
..._optionalChain([agent, 'access', _43 => _43.llmsTxt, 'optionalAccess', _44 => _44.enabled]) ? ["/llms.txt"] : [],
|
|
439
439
|
..._optionalChain([agent, 'access', _45 => _45.llmsTxt, 'optionalAccess', _46 => _46.enabled]) && agent.llmsTxt.full ? ["/llms-full.txt"] : [],
|
|
440
440
|
..._optionalChain([agent, 'access', _47 => _47.sitemap, 'optionalAccess', _48 => _48.enabled]) ? ["/sitemap.xml"] : [],
|
|
@@ -474,7 +474,7 @@ function resolveFarmDocsRouteLabel(routePathname, docs) {
|
|
|
474
474
|
for (const entry of entries) {
|
|
475
475
|
const base = entry === "/" ? "" : entry;
|
|
476
476
|
if (page === entry || entry === "/" && page === "/index") {
|
|
477
|
-
return markdown ?
|
|
477
|
+
return markdown ? _chunkHGB4PM2Ccjs.getFarmMarkdownMirrorPath.call(void 0, entry) : entry;
|
|
478
478
|
}
|
|
479
479
|
if (page.startsWith(`${base}/`)) {
|
|
480
480
|
const label = _optionalChain([docs, 'access', _55 => _55.pages, 'optionalAccess', _56 => _56.has, 'call', _57 => _57(page)]) && PUBLISHED_PAGE_PATH.test(page) ? page : `${base}/[...slug]`;
|
|
@@ -497,7 +497,7 @@ function resolveFarmMarkdownRouteLabel(routePathname, matchPagePattern) {
|
|
|
497
497
|
if (!routePathname.toLowerCase().endsWith(".md")) return null;
|
|
498
498
|
const page = routePathname === "/index.md" ? "/" : routePathname.slice(0, -".md".length) || "/";
|
|
499
499
|
const pattern = matchPagePattern(page);
|
|
500
|
-
return pattern ?
|
|
500
|
+
return pattern ? _chunkHGB4PM2Ccjs.getFarmMarkdownMirrorPath.call(void 0, pattern) : null;
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTU6VAH4Vcjs = require('./chunk-TU6VAH4V.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk5PDMBWAFcjs = require('./chunk-5PDMBWAF.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkOWQV6MLMcjs = require('./chunk-OWQV6MLM.cjs');
|
|
@@ -43,10 +43,10 @@ async function handleFarmDefaultMCPRequest(request, context) {
|
|
|
43
43
|
return transportError(403, "Cross-origin requests are not allowed.");
|
|
44
44
|
}
|
|
45
45
|
const protocolHeader = request.headers.get("mcp-protocol-version");
|
|
46
|
-
if (protocolHeader && !
|
|
46
|
+
if (protocolHeader && !_chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.includes(protocolHeader.trim())) {
|
|
47
47
|
return transportError(
|
|
48
48
|
400,
|
|
49
|
-
`Unsupported MCP-Protocol-Version: ${protocolHeader.slice(0, 32)}. Supported: ${
|
|
49
|
+
`Unsupported MCP-Protocol-Version: ${protocolHeader.slice(0, 32)}. Supported: ${_chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.join(", ")}.`
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
const contentType = _nullishCoalesce(request.headers.get("content-type"), () => ( ""));
|
|
@@ -102,7 +102,7 @@ async function dispatch(method, params, request, context) {
|
|
|
102
102
|
switch (method) {
|
|
103
103
|
case "initialize": {
|
|
104
104
|
const requested = isRecord(params) ? params.protocolVersion : void 0;
|
|
105
|
-
const protocolVersion = typeof requested === "string" &&
|
|
105
|
+
const protocolVersion = typeof requested === "string" && _chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.includes(requested) ? requested : _chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS[0];
|
|
106
106
|
return {
|
|
107
107
|
protocolVersion,
|
|
108
108
|
capabilities: { tools: { listChanged: false } },
|
|
@@ -110,7 +110,7 @@ async function dispatch(method, params, request, context) {
|
|
|
110
110
|
name: context.server.name,
|
|
111
111
|
version: context.server.version,
|
|
112
112
|
...context.server.title ? { title: context.server.title } : {},
|
|
113
|
-
description:
|
|
113
|
+
description: _chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_DESCRIPTION
|
|
114
114
|
},
|
|
115
115
|
instructions: INSTRUCTIONS
|
|
116
116
|
};
|
|
@@ -118,7 +118,7 @@ async function dispatch(method, params, request, context) {
|
|
|
118
118
|
case "ping":
|
|
119
119
|
return {};
|
|
120
120
|
case "tools/list":
|
|
121
|
-
return { tools:
|
|
121
|
+
return { tools: _chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_TOOLS };
|
|
122
122
|
case "tools/call":
|
|
123
123
|
return callTool(params, request, context);
|
|
124
124
|
default:
|
|
@@ -129,7 +129,7 @@ async function callTool(params, request, context) {
|
|
|
129
129
|
if (!isRecord(params) || typeof params.name !== "string") {
|
|
130
130
|
throw new FarmMCPRequestError(INVALID_PARAMS, "tools/call needs a tool name.");
|
|
131
131
|
}
|
|
132
|
-
const tool =
|
|
132
|
+
const tool = _chunkTU6VAH4Vcjs.FARM_DEFAULT_MCP_TOOLS.find(({ name }) => name === params.name);
|
|
133
133
|
if (!tool) {
|
|
134
134
|
throw new FarmMCPRequestError(INVALID_PARAMS, `Unknown tool: ${params.name.slice(0, 64)}`);
|
|
135
135
|
}
|
|
@@ -159,7 +159,7 @@ async function callTool(params, request, context) {
|
|
|
159
159
|
request.url,
|
|
160
160
|
context.metadataBase,
|
|
161
161
|
context.basePath,
|
|
162
|
-
|
|
162
|
+
_chunkTU6VAH4Vcjs.resolveFarmDefaultMCPI18n.call(void 0, context.i18n, context.basePath)
|
|
163
163
|
);
|
|
164
164
|
const pages = await context.listPages();
|
|
165
165
|
const page = pagePath ? pages.find((candidate) => candidate.path === pagePath) : void 0;
|
|
@@ -215,7 +215,7 @@ function toPagePath(input, requestUrl, metadataBase, basePath, i18n) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
const requestOrigin = new URL(requestUrl).origin;
|
|
218
|
-
if (url.origin !== requestOrigin && url.origin !==
|
|
218
|
+
if (url.origin !== requestOrigin && url.origin !== _chunk5PDMBWAFcjs.resolveFarmAgentOrigin.call(void 0, metadataBase, requestOrigin)) {
|
|
219
219
|
return null;
|
|
220
220
|
}
|
|
221
221
|
let path = url.pathname;
|