@farm.js/core 0.1.51-beta.0 → 0.1.51-beta.2
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-BBMfNpsC.d.ts → agent-mcp.d-CR5Ov83o.d.ts} +1 -1
- package/dist/{agent-mcp-D44ip11f.d.mts → agent-mcp.d-Z5DuwrqW.d.mts} +1 -1
- package/dist/agent-runtime.cjs +3 -3
- package/dist/agent-runtime.d.mts +13 -13
- package/dist/agent-runtime.d.ts +13 -13
- package/dist/agent-runtime.mjs +2 -2
- package/dist/{analyzer-VKUDHNDF.cjs → analyzer-T76CN3S7.cjs} +70 -21
- package/dist/{analyzer-HOUCQR3K.mjs → analyzer-Z6TNEAET.mjs} +70 -21
- package/dist/api/client.d.mts +4 -4
- package/dist/api/client.d.ts +4 -4
- package/dist/api/route-manager.d.mts +19 -19
- package/dist/api/route-manager.d.ts +19 -19
- package/dist/api/runtime.d.mts +15 -15
- package/dist/api/runtime.d.ts +15 -15
- package/dist/{api-client-CvI5oOBE.d.ts → api-client.d-BWcqZciH.d.ts} +3 -3
- package/dist/{api-client-CFdv-Xgh.d.mts → api-client.d-CeA6tNA6.d.mts} +3 -3
- package/dist/api.cjs +3 -3
- package/dist/api.d.mts +21 -21
- package/dist/api.d.ts +21 -21
- package/dist/api.mjs +2 -2
- package/dist/{app-manifest-LzjoNPeq.d.ts → app-manifest.d-CAHkOBFa.d.mts} +1 -1
- package/dist/{app-manifest-BC6mFn5A.d.mts → app-manifest.d-DiWr_Jfx.d.ts} +1 -1
- package/dist/app-markdown.d.mts +14 -14
- package/dist/app-markdown.d.ts +14 -14
- package/dist/{app-aeD4s_mg.d.mts → app.d-BfgJCsTQ.d.mts} +12 -10
- package/dist/{app-CourU3rQ.d.ts → app.d-DmapqkbV.d.ts} +12 -10
- package/dist/{chunk-AMRK3P6W.mjs → chunk-4SSRBCBR.mjs} +233 -84
- package/dist/{chunk-PDJSL7PL.cjs → chunk-5IONBVJY.cjs} +3 -3
- package/dist/{chunk-IOUOGRDX.cjs → chunk-5N7QAGEA.cjs} +25 -6
- package/dist/{chunk-DGOLAZLV.cjs → chunk-65Y5SIBH.cjs} +1 -1
- package/dist/{chunk-ZF3GX4O7.mjs → chunk-6CYQQQGR.mjs} +1 -1
- package/dist/{chunk-QI5AQMEE.mjs → chunk-72NBDVWQ.mjs} +1 -1
- package/dist/{chunk-I2ZA5SXS.mjs → chunk-74Z5KX4A.mjs} +53 -19
- package/dist/chunk-7FVVQEVL.cjs +541 -0
- package/dist/{chunk-OD6WM3I7.mjs → chunk-AV26KHTG.mjs} +1 -1
- package/dist/chunk-C3BOESDW.mjs +541 -0
- package/dist/{chunk-WAPQWAE6.cjs → chunk-CECUDGXQ.cjs} +9 -8
- package/dist/{chunk-IUQLRTTO.mjs → chunk-CO6UYM2D.mjs} +14 -1
- package/dist/{chunk-JF5CNHHF.mjs → chunk-CTM4SPB3.mjs} +123 -8
- package/dist/{chunk-WVX3BUNJ.mjs → chunk-CZ35L6PL.mjs} +8 -1
- package/dist/{chunk-SO3T6T4I.cjs → chunk-DTU4PX7V.cjs} +408 -259
- package/dist/{chunk-YLNBWUVS.mjs → chunk-E6LTONL4.mjs} +1 -1
- package/dist/{chunk-R5P4KFPM.mjs → chunk-E73PGHSR.mjs} +8 -6
- package/dist/{chunk-4GJJ65RB.mjs → chunk-EIMK7D2D.mjs} +24 -5
- package/dist/{chunk-CY7H5KS4.cjs → chunk-EKJYE4Y7.cjs} +2 -2
- package/dist/{chunk-3HA7PP72.mjs → chunk-FM2UEKS2.mjs} +60 -13
- package/dist/{chunk-VIFPE5RG.cjs → chunk-GNJIYJMS.cjs} +81 -34
- package/dist/{chunk-X5BCMLGP.cjs → chunk-GUJTVM36.cjs} +1 -1
- package/dist/{chunk-XWC5NAHV.mjs → chunk-IBSAYAWB.mjs} +2 -2
- package/dist/{chunk-J22JD5YJ.cjs → chunk-J3LBO2O4.cjs} +9 -7
- package/dist/{chunk-J37KTQIA.cjs → chunk-NK2VWS7P.cjs} +52 -3
- package/dist/{chunk-WSY2JD7O.mjs → chunk-NN3MOPSI.mjs} +1 -1
- package/dist/{chunk-O3MMJPC2.cjs → chunk-NPQLMP7M.cjs} +124 -9
- package/dist/{chunk-QK3HBOTG.cjs → chunk-NXBHYO7S.cjs} +5 -5
- package/dist/{chunk-S5ZA2T2W.mjs → chunk-PMKUU273.mjs} +21 -7
- package/dist/{chunk-75WWOZ5C.mjs → chunk-QOSDWGKT.mjs} +1 -1
- package/dist/{chunk-VO6NLTV4.cjs → chunk-QXPSWMUD.cjs} +3 -3
- package/dist/{chunk-Y7TLL65B.cjs → chunk-UQHIWZZ6.cjs} +11 -4
- package/dist/{chunk-PPDHCRTC.mjs → chunk-VS7EHLLW.mjs} +1 -1
- package/dist/{chunk-F42U3R4F.cjs → chunk-WZW6LEHM.cjs} +55 -41
- package/dist/{chunk-USL2ANCB.cjs → chunk-X2AMN2WV.cjs} +2 -2
- package/dist/{chunk-HHFMECFO.mjs → chunk-Y2G5SJFB.mjs} +2 -1
- package/dist/{chunk-Z5MZDFX4.cjs → chunk-YIHRZBD7.cjs} +14 -1
- package/dist/{chunk-DWW3AMJX.cjs → chunk-YU42A5MA.cjs} +282 -248
- package/dist/{chunk-MMEEXMUQ.cjs → chunk-ZOWNWHK6.cjs} +2 -2
- package/dist/{chunk-C5JXCUKR.mjs → chunk-ZQ5BDNKW.mjs} +51 -2
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/{client-plugins-cqy_dQd0.d.mts → client-plugins.d-Bx3FXpqm.d.mts} +57 -15
- package/dist/{client-plugins-CFBEfVPO.d.ts → client-plugins.d-TiLbS5j4.d.ts} +57 -15
- package/dist/client-plugins.d.mts +13 -13
- package/dist/client-plugins.d.ts +13 -13
- package/dist/client.d.mts +24 -24
- package/dist/client.d.ts +24 -24
- package/dist/{config-CnhyvvmT.d.mts → config.d-iRPI16ku.d.mts} +6 -2
- package/dist/{config-CnhyvvmT.d.ts → config.d-iRPI16ku.d.ts} +6 -2
- package/dist/config.d.mts +13 -13
- package/dist/config.d.ts +13 -13
- package/dist/desktop.d.mts +14 -14
- package/dist/desktop.d.ts +14 -14
- package/dist/{dev-guard-YLO5DE3H.cjs → dev-guard-2UW2KERP.cjs} +2 -2
- package/dist/{dev-guard-4PFQNXQX.mjs → dev-guard-ONNMVQUN.mjs} +1 -1
- package/dist/{devtools-4ZLMD454.cjs → devtools-6XWCZIGO.cjs} +4 -4
- package/dist/{devtools-4MLL3RAL.mjs → devtools-UQLDAOEI.mjs} +3 -3
- package/dist/docs.cjs +8 -6
- package/dist/docs.d.mts +23 -15
- package/dist/docs.d.ts +23 -15
- package/dist/docs.mjs +7 -5
- package/dist/environment/vite.cjs +2 -2
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/environment/vite.mjs +1 -1
- package/dist/{generate-route-types-TF5Wwtvz.d.mts → generate-route-types.d-BL2pq6xC.d.ts} +1 -1
- package/dist/{generate-route-types-DQP0cUzk.d.ts → generate-route-types.d-BoVDU8qX.d.mts} +1 -1
- 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.d.mts +1 -1
- package/dist/image/server.d.ts +1 -1
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +20 -17
- package/dist/{index-D3l4tREW.d.ts → index.d-BNNDpql4.d.ts} +2 -2
- package/dist/{index-DPUAPho_.d.mts → index.d-BqcfqJvt.d.mts} +2 -2
- package/dist/{index-BxjN_UDZ.d.ts → index.d-YxJ2AiDF.d.mts} +2 -2
- package/dist/{index-BYkNbeQV.d.mts → index.d-yueUNipJ.d.ts} +2 -2
- package/dist/index.d.mts +42 -42
- package/dist/index.d.ts +42 -42
- package/dist/index.mjs +19 -16
- package/dist/instrumentation.d.mts +2 -2
- package/dist/instrumentation.d.ts +2 -2
- package/dist/integrations.cjs +3 -3
- package/dist/integrations.d.mts +13 -13
- package/dist/integrations.d.ts +13 -13
- package/dist/integrations.mjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +14 -14
- package/dist/internal/app-markdown-runtime.d.ts +14 -14
- package/dist/internal/build-runtime.cjs +16 -15
- package/dist/internal/build-runtime.d.mts +16 -16
- package/dist/internal/build-runtime.d.ts +16 -16
- package/dist/internal/build-runtime.mjs +15 -14
- package/dist/internal/cli-runtime.cjs +7 -7
- package/dist/internal/cli-runtime.mjs +6 -6
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.d.mts +21 -21
- package/dist/internal/client-runtime.d.ts +21 -21
- package/dist/internal/compression-runtime.d.mts +13 -13
- package/dist/internal/compression-runtime.d.ts +13 -13
- package/dist/internal/config-runtime.cjs +5 -5
- package/dist/internal/config-runtime.d.mts +29 -92
- package/dist/internal/config-runtime.d.ts +29 -92
- package/dist/internal/config-runtime.mjs +4 -4
- package/dist/internal/form-actions.d.mts +1 -1
- package/dist/internal/form-actions.d.ts +1 -1
- package/dist/internal/infra-analytics-runtime.cjs +5 -5
- package/dist/internal/infra-analytics-runtime.mjs +3 -3
- package/dist/internal/island-value-store.d.mts +1 -1
- package/dist/internal/island-value-store.d.ts +1 -1
- package/dist/internal/islands-runtime.d.mts +1 -1
- package/dist/internal/islands-runtime.d.ts +1 -1
- package/dist/internal/isolated-boundary.d.mts +2 -2
- package/dist/internal/isolated-boundary.d.ts +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 +11 -3
- package/dist/internal/production-runtime.d.mts +57 -31
- package/dist/internal/production-runtime.d.ts +57 -31
- package/dist/internal/production-runtime.mjs +10 -2
- package/dist/internal/server-tree.d.mts +1 -1
- package/dist/internal/server-tree.d.ts +1 -1
- package/dist/markdown.d.mts +13 -13
- package/dist/markdown.d.ts +13 -13
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +15 -15
- package/dist/middleware.d.ts +15 -15
- package/dist/middleware.mjs +3 -3
- package/dist/mobile.d.mts +7 -7
- package/dist/mobile.d.ts +7 -7
- package/dist/{navigation-delegate-BU4xqdnw.d.ts → navigation-delegate.d-BY1e_Xrh.d.ts} +1 -1
- package/dist/{navigation-delegate-DLhbfEN4.d.mts → navigation-delegate.d-HnDXhlyP.d.mts} +1 -1
- package/dist/navigation.d.mts +17 -17
- package/dist/navigation.d.ts +17 -17
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +11 -11
- package/dist/plugin.d.mts +17 -17
- package/dist/plugin.d.ts +17 -17
- package/dist/plugin.mjs +10 -10
- package/dist/{production-runtime-DLA4J5WG.d.mts → production-runtime.d-BpJUDzP8.d.mts} +3 -3
- package/dist/{production-runtime-C78A8YgK.d.ts → production-runtime.d-lMjvE9cf.d.ts} +3 -3
- package/dist/{programmatic-routes-client-NpqGBn-i.d.mts → programmatic-routes-client.d-6CGQ3TCk.d.mts} +10 -2
- package/dist/{programmatic-routes-client-CBqkNhBy.d.ts → programmatic-routes-client.d-BlFp5hv4.d.ts} +10 -2
- package/dist/query/client.d.mts +1 -1
- package/dist/query/client.d.ts +1 -1
- package/dist/query/index.d.mts +1 -1
- package/dist/query/index.d.ts +1 -1
- package/dist/query/server.d.mts +1 -1
- package/dist/query/server.d.ts +1 -1
- package/dist/{render-plan-CrqcBbnV.d.ts → render-plan.d-BH9edqKs.d.mts} +2 -2
- package/dist/{render-plan-C9sWvDTv.d.mts → render-plan.d-DhP0mTHF.d.ts} +2 -2
- package/dist/renderer-client.d.mts +19 -19
- package/dist/renderer-client.d.ts +19 -19
- package/dist/{request-BizeuqD7.d.ts → request.d-BVZrsR1v.d.ts} +1 -1
- package/dist/{request-WwB1-Uim.d.mts → request.d-DJFRdKi8.d.mts} +1 -1
- package/dist/request.d.mts +14 -14
- package/dist/request.d.ts +14 -14
- package/dist/{resolver-CJ-D9nP-.d.ts → resolver.d-BHyZgpa7.d.ts} +1 -1
- package/dist/{resolver-TDyZKgKI.d.mts → resolver.d-JnZKKsc5.d.mts} +1 -1
- package/dist/response.d-BolW0Vx_.d.mts +10 -0
- package/dist/response.d-BolW0Vx_.d.ts +10 -0
- package/dist/{route-rendering-BGhJN64l.d.ts → route-rendering.d-B00JtK_-.d.ts} +1 -1
- package/dist/{route-rendering-S6NFjnx4.d.mts → route-rendering.d-Bpmw7PED.d.mts} +1 -1
- package/dist/{route-2_yXC6gv.d.mts → route.d-BaVH3V0w.d.mts} +1 -1
- package/dist/{route-DFhZj6jN.d.ts → route.d-DBTEqifW.d.ts} +1 -1
- package/dist/{router-BUD_j2EL.d.ts → router.d-Bd1x9XxQ.d.ts} +1 -1
- package/dist/{router-BIheIy9G.d.mts → router.d-e0jQ3jQ-.d.mts} +1 -1
- package/dist/{routes-kEUsXHx3.d.mts → routes.d-Cmv8TgVq.d.mts} +91 -4
- package/dist/{routes-8PT9cl60.d.ts → routes.d-D96Dq9lz.d.ts} +91 -4
- package/dist/routes.d.mts +13 -13
- package/dist/routes.d.ts +13 -13
- package/dist/{rsc-pipeline-JRGUZBYM.cjs → rsc-pipeline-DX4OC5FN.cjs} +6 -6
- package/dist/{rsc-pipeline-OLAVIKI3.mjs → rsc-pipeline-ZQ4CTVEG.mjs} +5 -5
- package/dist/{runtime-OGCHDACZ.mjs → runtime-NPDRDV6R.mjs} +66 -17
- package/dist/{runtime-G23RSLEK.cjs → runtime-NQ3EDSA7.cjs} +75 -26
- package/dist/{runtime-CihDZ2Rn.d.mts → runtime.d-3iJAKptR.d.mts} +2 -2
- package/dist/{runtime-C4CmlOOh.d.ts → runtime.d-BtL3PCL3.d.ts} +2 -2
- package/dist/{runtime-CWP-21hP.d.ts → runtime.d-CgB3IJDq.d.mts} +4 -4
- package/dist/{runtime-CgJwe6H_.d.mts → runtime.d-D-td-RR3.d.ts} +4 -4
- package/dist/server-action-security.d.mts +1 -1
- package/dist/server-action-security.d.ts +1 -1
- package/dist/server-fn-client.d.mts +5 -5
- package/dist/server-fn-client.d.ts +5 -5
- package/dist/server-fn.d.mts +3 -3
- package/dist/server-fn.d.ts +3 -3
- package/dist/server-plugins.d.mts +14 -14
- package/dist/server-plugins.d.ts +14 -14
- package/dist/server-query-client.d.mts +5 -5
- package/dist/server-query-client.d.ts +5 -5
- package/dist/server-query.d.mts +2 -2
- package/dist/server-query.d.ts +2 -2
- package/dist/server.cjs +31 -31
- package/dist/server.d.mts +28 -29
- package/dist/server.d.ts +28 -29
- package/dist/server.mjs +13 -13
- package/dist/session-AAU7RNRO.cjs +23 -0
- package/dist/session-IGEDQ5PY.mjs +23 -0
- package/dist/{spa-router-Kytv4jSB.d.ts → spa-router.d-BWDhS0FK.d.mts} +5 -5
- package/dist/{spa-router-CVOL0Vrq.d.mts → spa-router.d-CO01mVOM.d.ts} +5 -5
- package/dist/storage.d.mts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/testing.d.mts +14 -14
- package/dist/testing.d.ts +14 -14
- package/dist/theme/client.d.mts +1 -1
- package/dist/theme/client.d.ts +1 -1
- package/dist/theme/index.d.mts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/runtime.d.mts +1 -1
- package/dist/theme/runtime.d.ts +1 -1
- package/dist/theme/server.d.mts +1 -1
- package/dist/theme/server.d.ts +1 -1
- package/dist/{utils-DbyXlzaj.d.ts → utils.d-B77__yh8.d.ts} +1 -1
- package/dist/{utils-Dsa1HZ7X.d.mts → utils.d-DRDazhCA.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +11 -11
- package/dist/vite.d.mts +20 -19
- package/dist/vite.d.ts +20 -19
- package/dist/vite.mjs +10 -10
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/package.json +5 -5
- /package/dist/{base-path-BOUV5ozD.d.mts → base-path.d-BOUV5ozD.d.mts} +0 -0
- /package/dist/{base-path-BOUV5ozD.d.ts → base-path.d-BOUV5ozD.d.ts} +0 -0
- /package/dist/{chunk-recovery-lnQFzcQP.d.mts → chunk-recovery.d-lnQFzcQP.d.mts} +0 -0
- /package/dist/{chunk-recovery-lnQFzcQP.d.ts → chunk-recovery.d-lnQFzcQP.d.ts} +0 -0
- /package/dist/{client-cache-Deoqq-nM.d.ts → client-cache.d-Deoqq-nM.d.ts} +0 -0
- /package/dist/{client-cache-di_Nasxa.d.mts → client-cache.d-di_Nasxa.d.mts} +0 -0
- /package/dist/{endpoint-BgHn0lhl.d.ts → endpoint.d-BgHn0lhl.d.ts} +0 -0
- /package/dist/{endpoint-BkMSCRf6.d.mts → endpoint.d-BkMSCRf6.d.mts} +0 -0
- /package/dist/{image-config-CeDgNyX4.d.mts → image-config.d-CeDgNyX4.d.mts} +0 -0
- /package/dist/{image-config-CeDgNyX4.d.ts → image-config.d-CeDgNyX4.d.ts} +0 -0
- /package/dist/{instrumentation-runtime-CX9Zh-16.d.mts → instrumentation-runtime.d-CX9Zh-16.d.mts} +0 -0
- /package/dist/{instrumentation-runtime-CX9Zh-16.d.ts → instrumentation-runtime.d-CX9Zh-16.d.ts} +0 -0
- /package/dist/{island-value-protocol-BRayRghM.d.mts → island-value-protocol.d-BRayRghM.d.mts} +0 -0
- /package/dist/{island-value-protocol-BRayRghM.d.ts → island-value-protocol.d-BRayRghM.d.ts} +0 -0
- /package/dist/{island-CfGru1MO.d.mts → island.d-CfGru1MO.d.mts} +0 -0
- /package/dist/{island-CfGru1MO.d.ts → island.d-CfGru1MO.d.ts} +0 -0
- /package/dist/{layers-CcS42OGR.d.mts → layers.d-CcS42OGR.d.mts} +0 -0
- /package/dist/{layers-CcS42OGR.d.ts → layers.d-CcS42OGR.d.ts} +0 -0
- /package/dist/{lifecycle-C2aLBOwu.d.mts → lifecycle.d-C2aLBOwu.d.mts} +0 -0
- /package/dist/{lifecycle-C2aLBOwu.d.ts → lifecycle.d-C2aLBOwu.d.ts} +0 -0
- /package/dist/{observability-B2363jB6.d.mts → observability.d-B2363jB6.d.mts} +0 -0
- /package/dist/{observability-B2363jB6.d.ts → observability.d-B2363jB6.d.ts} +0 -0
- /package/dist/{params-BALtrRim.d.ts → params.d-BALtrRim.d.ts} +0 -0
- /package/dist/{params-ry-lxqmy.d.mts → params.d-ry-lxqmy.d.mts} +0 -0
- /package/dist/{production-vite-BQFAlG7n.d.mts → production-vite.d-BQFAlG7n.d.mts} +0 -0
- /package/dist/{production-vite-BQFAlG7n.d.ts → production-vite.d-BQFAlG7n.d.ts} +0 -0
- /package/dist/{route-pattern-CVsVbq5n.d.mts → route-pattern.d-CVsVbq5n.d.mts} +0 -0
- /package/dist/{route-pattern-CVsVbq5n.d.ts → route-pattern.d-CVsVbq5n.d.ts} +0 -0
- /package/dist/{server-client-bridge-DKWDl5NB.d.mts → server-client-bridge.d-DKWDl5NB.d.mts} +0 -0
- /package/dist/{server-client-bridge-DKWDl5NB.d.ts → server-client-bridge.d-DKWDl5NB.d.ts} +0 -0
- /package/dist/{server-fn-error-DrcH9cc1.d.mts → server-fn-error.d-DrcH9cc1.d.mts} +0 -0
- /package/dist/{server-fn-error-DrcH9cc1.d.ts → server-fn-error.d-DrcH9cc1.d.ts} +0 -0
- /package/dist/{server-query-runtime-DXRNhX_3.d.ts → server-query-runtime.d-DXRNhX_3.d.ts} +0 -0
- /package/dist/{server-query-runtime-aP52iuL5.d.mts → server-query-runtime.d-aP52iuL5.d.mts} +0 -0
- /package/dist/{types-BnIqOn9w.d.mts → types.d-BnIqOn9w.d.mts} +0 -0
- /package/dist/{types-BnIqOn9w.d.ts → types.d-BnIqOn9w.d.ts} +0 -0
- /package/dist/{types-C41ePjvP.d.mts → types.d-C41ePjvP.d.mts} +0 -0
- /package/dist/{types-C41ePjvP.d.ts → types.d-C41ePjvP.d.ts} +0 -0
- /package/dist/{types-DQnyD3VD.d.mts → types.d-DQnyD3VD.d.mts} +0 -0
- /package/dist/{types-DQnyD3VD.d.ts → types.d-DQnyD3VD.d.ts} +0 -0
- /package/dist/{workflows-CRMzQZ3k.d.mts → workflows.d-CRMzQZ3k.d.mts} +0 -0
- /package/dist/{workflows-CRMzQZ3k.d.ts → workflows.d-CRMzQZ3k.d.ts} +0 -0
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
} from "./chunk-N77JBPLC.mjs";
|
|
72
72
|
import {
|
|
73
73
|
resolveIntegrationPlugins
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-Y2G5SJFB.mjs";
|
|
75
75
|
import {
|
|
76
76
|
compileMiddlewareConfig
|
|
77
77
|
} from "./chunk-EDPENAVO.mjs";
|
|
@@ -565,29 +565,35 @@ async function resolveDocsConfig(userDocs, options = {}) {
|
|
|
565
565
|
config: { entry: "docs", docsPath: "/docs" }
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
const
|
|
568
|
+
const fileDocsConfig = omitDocsRoots(loadedConfig?.config);
|
|
569
|
+
const inlineRawDocsConfig = omitDocsRoots(docsOptions.config);
|
|
570
|
+
const inlineDocsConfig = sanitizeDocsConfig(inlineRawDocsConfig);
|
|
569
571
|
const directDocsConfig = sanitizeDocsConfig({
|
|
570
572
|
...docsOptions,
|
|
571
573
|
adapter: void 0,
|
|
572
574
|
enabled: void 0,
|
|
575
|
+
prerender: void 0,
|
|
573
576
|
config: void 0,
|
|
574
|
-
configPath: void 0
|
|
577
|
+
configPath: void 0,
|
|
578
|
+
roots: void 0
|
|
575
579
|
});
|
|
576
|
-
const loadedDocsConfig = sanitizeDocsConfig(
|
|
580
|
+
const loadedDocsConfig = sanitizeDocsConfig(fileDocsConfig);
|
|
577
581
|
const mergedDocsConfig = {
|
|
578
582
|
...loadedDocsConfig,
|
|
579
583
|
...inlineDocsConfig,
|
|
580
584
|
...directDocsConfig
|
|
581
585
|
};
|
|
582
586
|
const runtimeDocsConfig = {
|
|
583
|
-
...
|
|
584
|
-
...
|
|
587
|
+
...fileDocsConfig,
|
|
588
|
+
...inlineRawDocsConfig,
|
|
585
589
|
...omitUndefined({
|
|
586
590
|
...docsOptions,
|
|
587
591
|
adapter: void 0,
|
|
588
592
|
enabled: void 0,
|
|
593
|
+
prerender: void 0,
|
|
589
594
|
config: void 0,
|
|
590
|
-
configPath: void 0
|
|
595
|
+
configPath: void 0,
|
|
596
|
+
roots: void 0
|
|
591
597
|
})
|
|
592
598
|
};
|
|
593
599
|
const explicitRoute = typeof docsOptions.entry === "string" ? docsOptions.entry : void 0;
|
|
@@ -601,10 +607,33 @@ async function resolveDocsConfig(userDocs, options = {}) {
|
|
|
601
607
|
docsOptions.contentDir || mergedDocsConfig.contentDir
|
|
602
608
|
);
|
|
603
609
|
const contentDir = configuredContentDir || await inferDocsContentDir(root, options.srcDir || "src", docsEntry);
|
|
610
|
+
const configOverrides = { ...inlineDocsConfig, ...directDocsConfig };
|
|
611
|
+
const configFileName = loadedConfig ? path3.relative(root, loadedConfig.configPath) || loadedConfig.configPath : "the docs config";
|
|
612
|
+
const roots = await resolveDocsRoots(
|
|
613
|
+
[
|
|
614
|
+
{ field: `roots in ${configFileName}`, roots: docsRootsOf(loadedConfig?.config), file: true },
|
|
615
|
+
{ field: "docs.config.roots", roots: docsRootsOf(docsOptions.config) },
|
|
616
|
+
{ field: "docs.roots", roots: docsOptions.roots }
|
|
617
|
+
],
|
|
618
|
+
{
|
|
619
|
+
root,
|
|
620
|
+
srcDir: options.srcDir || "src",
|
|
621
|
+
mainEntry: entryRoute,
|
|
622
|
+
mergedDocsConfig,
|
|
623
|
+
runtimeDocsConfig,
|
|
624
|
+
configOverrides
|
|
625
|
+
}
|
|
626
|
+
);
|
|
627
|
+
if (roots.length > 0 && !(docsOptions.adapter && docsOptions.adapter.server && docsOptions.adapter.react)) {
|
|
628
|
+
throw new Error(
|
|
629
|
+
`Docs roots require a docs adapter such as @farming-labs/farmjs; Farm's built-in docs renderer serves a single docs root. Install the adapter, or remove the roots from ${configFileName} and docs.roots.`
|
|
630
|
+
);
|
|
631
|
+
}
|
|
604
632
|
return {
|
|
605
633
|
enabled: true,
|
|
606
634
|
entry: entryRoute,
|
|
607
635
|
...docsOptions.adapter ? { adapter: docsOptions.adapter } : {},
|
|
636
|
+
...docsOptions.prerender === true ? { prerender: true } : {},
|
|
608
637
|
contentDir,
|
|
609
638
|
configPath: loadedConfig?.configPath,
|
|
610
639
|
config: {
|
|
@@ -619,9 +648,90 @@ async function resolveDocsConfig(userDocs, options = {}) {
|
|
|
619
648
|
docsPath: entryRoute,
|
|
620
649
|
...contentDir ? { contentDir } : {}
|
|
621
650
|
},
|
|
622
|
-
configOverrides
|
|
651
|
+
configOverrides,
|
|
652
|
+
...roots.length > 0 ? { roots } : {}
|
|
623
653
|
};
|
|
624
654
|
}
|
|
655
|
+
function docsRootsOf(config) {
|
|
656
|
+
return isRecord(config) ? config.roots : void 0;
|
|
657
|
+
}
|
|
658
|
+
function omitDocsRoots(config) {
|
|
659
|
+
if (!isRecord(config)) return {};
|
|
660
|
+
const { roots: _roots, ...rest } = config;
|
|
661
|
+
return rest;
|
|
662
|
+
}
|
|
663
|
+
function omitKeys(value, keys) {
|
|
664
|
+
const output = { ...value };
|
|
665
|
+
for (const key of keys) delete output[key];
|
|
666
|
+
return output;
|
|
667
|
+
}
|
|
668
|
+
async function resolveDocsRoots(sources, options) {
|
|
669
|
+
const declared = /* @__PURE__ */ new Map();
|
|
670
|
+
for (const source of sources) {
|
|
671
|
+
if (source.roots === void 0) continue;
|
|
672
|
+
if (!Array.isArray(source.roots)) throw new Error(`${source.field} must be an array.`);
|
|
673
|
+
const seen = /* @__PURE__ */ new Set();
|
|
674
|
+
for (const [index, rootInput] of source.roots.entries()) {
|
|
675
|
+
const field = `${source.field}[${index}].entry`;
|
|
676
|
+
if (!isRecord(rootInput) || typeof rootInput.entry !== "string" || !rootInput.entry.trim()) {
|
|
677
|
+
throw new Error(`${field} must be a route such as "/guides/docs".`);
|
|
678
|
+
}
|
|
679
|
+
const entryRoute = normalizeDocsRoute(rootInput.entry);
|
|
680
|
+
if (entryRoute === "/") {
|
|
681
|
+
throw new Error(
|
|
682
|
+
`${field} cannot be "/"; a docs root at "/" leaves no route for the others.`
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
if (entryRoute === options.mainEntry || seen.has(entryRoute)) {
|
|
686
|
+
throw new Error(
|
|
687
|
+
`${field} ${JSON.stringify(entryRoute)} is already served by another docs root.`
|
|
688
|
+
);
|
|
689
|
+
}
|
|
690
|
+
seen.add(entryRoute);
|
|
691
|
+
const { entry: _entry, ...fields } = rootInput;
|
|
692
|
+
const layers = declared.get(entryRoute) ?? { file: {}, overrides: {} };
|
|
693
|
+
if (source.file) layers.file = fields;
|
|
694
|
+
else layers.overrides = { ...layers.overrides, ...fields };
|
|
695
|
+
declared.set(entryRoute, layers);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
const roots = [];
|
|
699
|
+
for (const [entryRoute, { file, overrides }] of declared) {
|
|
700
|
+
const docsEntry = docsRouteToEntry(entryRoute);
|
|
701
|
+
const contentDir = normalizeDocsContentDir(
|
|
702
|
+
typeof overrides.contentDir === "string" && overrides.contentDir || typeof file.contentDir === "string" && file.contentDir || void 0
|
|
703
|
+
) || await inferDocsContentDir(options.root, options.srcDir, docsEntry);
|
|
704
|
+
const routeConfig = {
|
|
705
|
+
entry: docsEntry,
|
|
706
|
+
docsPath: entryRoute,
|
|
707
|
+
contentDir
|
|
708
|
+
};
|
|
709
|
+
const rootOverrides = sanitizeDocsConfig(overrides);
|
|
710
|
+
roots.push({
|
|
711
|
+
entry: entryRoute,
|
|
712
|
+
contentDir,
|
|
713
|
+
config: omitUndefined({
|
|
714
|
+
...options.mergedDocsConfig,
|
|
715
|
+
...sanitizeDocsConfig(file),
|
|
716
|
+
...rootOverrides,
|
|
717
|
+
...routeConfig
|
|
718
|
+
}),
|
|
719
|
+
runtimeConfig: omitUndefined({
|
|
720
|
+
...options.runtimeDocsConfig,
|
|
721
|
+
...file,
|
|
722
|
+
...overrides,
|
|
723
|
+
...routeConfig
|
|
724
|
+
}),
|
|
725
|
+
// The adapter reads the config file's own root from the config module, so the main
|
|
726
|
+
// root's overrides leave out whatever that root sets itself.
|
|
727
|
+
configOverrides: {
|
|
728
|
+
...omitKeys(options.configOverrides, Object.keys(file)),
|
|
729
|
+
...rootOverrides
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
return roots;
|
|
734
|
+
}
|
|
625
735
|
function validateRedirectConfigs(redirects, field) {
|
|
626
736
|
for (const [index, redirect] of redirects.entries()) {
|
|
627
737
|
validateConfigRouteSource(redirect.source, `${field}[${index}].source`);
|
|
@@ -721,6 +831,10 @@ async function resolveConfig(userConfig, mode) {
|
|
|
721
831
|
userConfig.deploymentId || process.env.FARM_DEPLOYMENT_ID || process.env.VERCEL_GIT_COMMIT_SHA || process.env.CF_PAGES_COMMIT_SHA || (mode === "production" ? await generateBuildId() : "development")
|
|
722
832
|
);
|
|
723
833
|
const basePath = normalizeFarmConfigBasePath(userConfig.basePath);
|
|
834
|
+
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-IGEDQ5PY.mjs")).createFarmMobileSessionPlugin({
|
|
835
|
+
basePath,
|
|
836
|
+
integrations: () => integrations
|
|
837
|
+
}) : null;
|
|
724
838
|
const openapi = {
|
|
725
839
|
enabled: false,
|
|
726
840
|
route: "/docs/reference",
|
|
@@ -772,6 +886,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
772
886
|
agent: resolveFarmAgentConfig(userConfig.agent, { docs: docs.enabled }),
|
|
773
887
|
desktop: desktopSetup?.desktop ?? null,
|
|
774
888
|
plugins: [
|
|
889
|
+
...mobileSessionPlugin ? [mobileSessionPlugin] : [],
|
|
775
890
|
...resolveIntegrationPlugins(integrations),
|
|
776
891
|
...nativeMCPPlugin ? [nativeMCPPlugin] : [],
|
|
777
892
|
...userConfig.plugins || []
|
|
@@ -407,6 +407,7 @@ async function collectSSGPages(routes, loadModule, options = {}) {
|
|
|
407
407
|
const ssgPages = [];
|
|
408
408
|
const ssrRoutes = [];
|
|
409
409
|
const staticCandidateRoutes = [];
|
|
410
|
+
let staticCandidateDocsPages = 0;
|
|
410
411
|
for (const route of routes) {
|
|
411
412
|
try {
|
|
412
413
|
const mod = await loadModule(route.filePath);
|
|
@@ -453,7 +454,8 @@ async function collectSSGPages(routes, loadModule, options = {}) {
|
|
|
453
454
|
} else {
|
|
454
455
|
ssrRoutes.push(route.path);
|
|
455
456
|
if (options.suggestStaticRendering !== false && analyzeStaticRouteCandidate(mod, source, { isDynamic: route.isDynamic }).candidate) {
|
|
456
|
-
|
|
457
|
+
if (options.docsAdapterRoutes?.owns(route.path)) staticCandidateDocsPages += 1;
|
|
458
|
+
else staticCandidateRoutes.push(route.path);
|
|
457
459
|
}
|
|
458
460
|
}
|
|
459
461
|
} catch (error) {
|
|
@@ -472,6 +474,11 @@ async function collectSSGPages(routes, loadModule, options = {}) {
|
|
|
472
474
|
Add \`export const dynamic = "force-static";\` after verifying that imported code does not read cookies, headers, authentication, or other request data.`
|
|
473
475
|
);
|
|
474
476
|
}
|
|
477
|
+
if (staticCandidateDocsPages > 0 && !options.docsAdapterRoutes?.prerender) {
|
|
478
|
+
console.warn(
|
|
479
|
+
`[Farm.js] ${staticCandidateDocsPages} docs page${staticCandidateDocsPages === 1 ? " renders" : "s render"} on each request. Set \`docs.prerender: true\` in farm.config.ts to prerender docs pages on Node and serverless targets.`
|
|
480
|
+
);
|
|
481
|
+
}
|
|
475
482
|
return { ssg: ssgPages, ssr: ssrRoutes };
|
|
476
483
|
}
|
|
477
484
|
function isSSGModule(mod) {
|