@farm.js/core 0.1.81 → 0.1.83
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.d-Cxi3214_.d.ts → agent-mcp.d-7uKdOttc.d.ts} +1 -1
- package/dist/{agent-mcp.d-DMqOqnOA.d.mts → agent-mcp.d-LChlR2au.d.mts} +1 -1
- package/dist/agent-runtime.cjs +4 -3
- package/dist/agent-runtime.d.mts +2 -1
- package/dist/agent-runtime.d.ts +2 -1
- package/dist/agent-runtime.mjs +3 -2
- package/dist/analyzer-WGH6J2HN.cjs +17 -0
- package/dist/{analyzer-IC66UJCU.mjs → analyzer-Y6IY26HI.mjs} +2 -2
- package/dist/api/node.cjs +5 -4
- package/dist/api/node.d.mts +4 -3
- package/dist/api/node.d.ts +4 -3
- package/dist/api/node.mjs +4 -3
- package/dist/api/route-manager.cjs +5 -4
- package/dist/api/route-manager.d.mts +4 -3
- package/dist/api/route-manager.d.ts +4 -3
- package/dist/api/route-manager.mjs +4 -3
- package/dist/api/runtime.cjs +4 -3
- package/dist/api/runtime.d.mts +3 -2
- package/dist/api/runtime.d.ts +3 -2
- package/dist/api/runtime.mjs +3 -2
- package/dist/api.cjs +7 -6
- package/dist/api.d.mts +5 -4
- package/dist/api.d.ts +5 -4
- package/dist/api.mjs +6 -5
- package/dist/{app-manifest.d-C8Cswd31.d.ts → app-manifest.d-CRp21oAz.d.ts} +1 -1
- package/dist/{app-manifest.d-Bbxp5kes.d.mts → app-manifest.d-QMdmqqCr.d.mts} +1 -1
- package/dist/app-markdown.d.mts +3 -2
- package/dist/app-markdown.d.ts +3 -2
- package/dist/{app.d-DGIoFt5D.d.ts → app.d-CVPu_hoD.d.ts} +51 -4
- package/dist/{app.d-BJuSurgy.d.mts → app.d-eSm7jgoc.d.mts} +51 -4
- package/dist/{chunk-NSLRK5DK.cjs → chunk-3CZ4MJHW.cjs} +1 -1
- package/dist/{chunk-CPZZBCPO.cjs → chunk-3DAJXBSL.cjs} +2 -2
- package/dist/chunk-3DE6RK7K.cjs +36 -0
- package/dist/{chunk-XMHERKSE.mjs → chunk-42IBGQTN.mjs} +5 -12
- package/dist/{chunk-GY63XD6K.mjs → chunk-43N3X6OO.mjs} +1 -1
- package/dist/{chunk-MOGRRZMW.cjs → chunk-55UJGUBP.cjs} +35 -30
- package/dist/{chunk-BPWTSPK6.mjs → chunk-5AL2GXAU.mjs} +1 -1
- package/dist/{chunk-GAWSWJJ2.cjs → chunk-5GFTMTX3.cjs} +2 -2
- package/dist/{chunk-LKIG5SM6.cjs → chunk-5P65LXGU.cjs} +9 -9
- package/dist/{chunk-TPA2PV5J.mjs → chunk-5V6HSJFG.mjs} +24 -1
- package/dist/chunk-5X5GJU5A.cjs +426 -0
- package/dist/{chunk-UF4BNKKJ.mjs → chunk-6QYPP5KC.mjs} +2 -2
- package/dist/{chunk-ATISIC6G.mjs → chunk-7VJXYB6S.mjs} +7 -1
- package/dist/{chunk-OIWDEDUO.cjs → chunk-7X2CYE66.cjs} +419 -357
- package/dist/{chunk-XOGCNKB7.cjs → chunk-A5BHJHDF.cjs} +3 -3
- package/dist/{chunk-WGWWRV2M.cjs → chunk-B3HQTGXS.cjs} +6 -4
- package/dist/{chunk-HTNJ7A4D.mjs → chunk-B5SJYXJK.mjs} +177 -67
- package/dist/chunk-BUQR7KKO.mjs +17 -0
- package/dist/{chunk-OO4GVGM3.mjs → chunk-CA2HBLXP.mjs} +11 -1
- package/dist/{chunk-724WT3NI.mjs → chunk-CRE642TW.mjs} +1 -1
- package/dist/{chunk-Z5BANEQD.cjs → chunk-DMSXZNQR.cjs} +2 -2
- package/dist/{chunk-IPG6B25T.mjs → chunk-DPUZVGXH.mjs} +203 -54
- package/dist/{chunk-ZIYJWJV2.cjs → chunk-DZTWUEBB.cjs} +8 -8
- package/dist/{chunk-4OFWG4IK.cjs → chunk-EACD6ND7.cjs} +8 -2
- package/dist/{chunk-46UV2E7I.cjs → chunk-EFI6QWBQ.cjs} +200 -90
- package/dist/chunk-ELNRKD4V.mjs +426 -0
- package/dist/{chunk-XOXCQGAF.mjs → chunk-FFWSER54.mjs} +1 -1
- package/dist/chunk-FZ7OUN5M.cjs +30 -0
- package/dist/{chunk-5MMKNW7Q.cjs → chunk-H7REG7OX.cjs} +15 -8
- package/dist/{chunk-5ZHC6QGD.cjs → chunk-HQKCSJEH.cjs} +8 -2
- package/dist/{chunk-OUDNUFVR.cjs → chunk-HRH7OKBQ.cjs} +6 -4
- package/dist/{chunk-RHI67C2V.cjs → chunk-HUGPJFOC.cjs} +1 -35
- package/dist/{chunk-ADQ2LATR.cjs → chunk-IABI62FH.cjs} +2 -2
- package/dist/{chunk-TLSGRK7E.mjs → chunk-IAIRQAHA.mjs} +3 -1
- package/dist/{chunk-C2OLXVUC.mjs → chunk-IVP5Q4BX.mjs} +10 -3
- package/dist/{chunk-EX6ZSN5P.cjs → chunk-IZYFP7IN.cjs} +17 -24
- package/dist/chunk-J6RFB324.cjs +17 -0
- package/dist/{chunk-CL7BUGVB.cjs → chunk-JHRJ5V2F.cjs} +509 -360
- package/dist/{chunk-WIZRYFB2.cjs → chunk-JYQ6DGPW.cjs} +8 -6
- package/dist/{chunk-POL5RCVU.mjs → chunk-K3GHY7GY.mjs} +14 -9
- package/dist/{chunk-TYHWZOA2.mjs → chunk-KWI3SQFX.mjs} +4 -2
- package/dist/{chunk-UVV3I5QA.cjs → chunk-L2GUEYHR.cjs} +29 -6
- package/dist/{chunk-POVHO46S.mjs → chunk-L3RDECA5.mjs} +1 -1
- package/dist/{chunk-E3HBD2K3.cjs → chunk-LN6FAYNB.cjs} +36 -31
- package/dist/chunk-M6AJZ4XR.mjs +30 -0
- package/dist/{chunk-RPA45OQS.mjs → chunk-MO4UTDQ6.mjs} +1 -1
- package/dist/{chunk-6WVRVGKC.mjs → chunk-NAHDG6UX.mjs} +1 -1
- package/dist/{chunk-NOYKBGUK.mjs → chunk-NDWI6FDH.mjs} +558 -212
- package/dist/{chunk-OFVCWV2D.cjs → chunk-NEKO3HM2.cjs} +11 -1
- package/dist/{chunk-M6DAIE4T.cjs → chunk-NGTZHWBG.cjs} +78 -9
- package/dist/{chunk-D77OGI6X.mjs → chunk-NKVBWPXR.mjs} +1 -1
- package/dist/{chunk-SLEHAGGV.mjs → chunk-NQ3Y6E2T.mjs} +7 -1
- package/dist/{chunk-W6C3LEXX.cjs → chunk-OM6JIIJU.cjs} +155 -20
- package/dist/{chunk-S3IWDDQ3.mjs → chunk-ORBBAA7B.mjs} +1 -1
- package/dist/{chunk-7VCLTNED.mjs → chunk-PNMAD3OS.mjs} +1 -35
- package/dist/{chunk-BJWJP5A4.mjs → chunk-R3VLM2MW.mjs} +3 -3
- package/dist/{chunk-I4WZRG73.mjs → chunk-RB5IGN3N.mjs} +13 -6
- package/dist/{chunk-2HMSSPCZ.mjs → chunk-RGTZAM6Y.mjs} +71 -2
- package/dist/{chunk-IM3UINTZ.mjs → chunk-RNJX3MD6.mjs} +151 -16
- package/dist/{chunk-EJCVG25Z.mjs → chunk-S3R4JDRO.mjs} +17 -9
- package/dist/{chunk-2Y2HRZQY.cjs → chunk-SLIXHUMS.cjs} +931 -585
- package/dist/{chunk-WFVSAT7Y.cjs → chunk-T7HGXF7D.cjs} +3 -3
- package/dist/{chunk-ZKNXCRUQ.cjs → chunk-U54REWMJ.cjs} +23 -23
- package/dist/{chunk-YH7ENV3K.mjs → chunk-U56Z3755.mjs} +13 -8
- package/dist/chunk-U6XYBTUT.mjs +36 -0
- package/dist/{chunk-TCMRLW3K.cjs → chunk-VACYUMXW.cjs} +10 -3
- package/dist/{chunk-RZ6XUEQS.mjs → chunk-VQ6IXALL.mjs} +2 -2
- package/dist/{chunk-UGLTOLTJ.cjs → chunk-W76C7TCW.cjs} +2 -2
- package/dist/{chunk-FYZD7DUS.cjs → chunk-WCSBYQOT.cjs} +4 -4
- package/dist/{chunk-5N526T7Q.mjs → chunk-WZV2G2A6.mjs} +95 -33
- package/dist/{chunk-SM2SYWAR.cjs → chunk-XJDB564A.cjs} +18 -10
- package/dist/{chunk-6JWXHPVR.mjs → chunk-XRSNW4IU.mjs} +4 -2
- package/dist/{cli-runtime.d-D8O1v2_X.d.mts → cli-runtime.d-C7aMfoTq.d.mts} +8 -6
- package/dist/{cli-runtime.d-hf4L1MNP.d.ts → cli-runtime.d-DaElKjaL.d.ts} +8 -6
- package/dist/{client-component.d-DFwUHlOz.d.mts → client-component.d-DLMCzmUx.d.mts} +1 -1
- package/dist/{client-component.d-CX8UCQh-.d.ts → client-component.d-DLknFP8l.d.ts} +1 -1
- package/dist/{client-plugins.d-qWp8hNwd.d.ts → client-plugins.d-BVXjyIkY.d.ts} +20 -1
- package/dist/{client-plugins.d-BflSNO-b.d.mts → client-plugins.d-BwKwuO_0.d.mts} +20 -1
- package/dist/client-plugins.d.mts +2 -1
- package/dist/client-plugins.d.ts +2 -1
- package/dist/client.cjs +4 -3
- package/dist/client.d.mts +10 -9
- package/dist/client.d.ts +10 -9
- package/dist/client.mjs +3 -2
- package/dist/config.d.mts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/desktop.d.mts +3 -2
- package/dist/desktop.d.ts +3 -2
- package/dist/{devtools-XJHODO5H.mjs → devtools-OI52TCSD.mjs} +8 -7
- package/dist/{devtools-EI5N366Z.cjs → devtools-ZM2AR36W.cjs} +11 -10
- package/dist/docs.cjs +13 -11
- package/dist/docs.d.mts +15 -6
- package/dist/docs.d.ts +15 -6
- package/dist/docs.mjs +12 -10
- package/dist/environment/vite.cjs +4 -4
- package/dist/environment/vite.d.mts +1 -0
- package/dist/environment/vite.d.ts +1 -0
- package/dist/environment/vite.mjs +3 -3
- package/dist/{generate-route-types.d-CaGMIaNI.d.mts → generate-route-types.d-BFOMM8Ef.d.mts} +3 -0
- package/dist/{generate-route-types.d-B76M5R11.d.ts → generate-route-types.d-C2m8myHb.d.ts} +3 -0
- package/dist/{handler.d-DoH5Krkq.d.mts → handler.d-BKTWzzNA.d.mts} +1 -1
- package/dist/{handler.d-C2oRihfa.d.ts → handler.d-Dzpyg3-N.d.ts} +1 -1
- package/dist/{headers.d-BrX53wFQ.d.mts → headers.d-5opjyhXw.d.mts} +1 -1
- package/dist/{headers.d-Dj0mfYpb.d.ts → headers.d-PZyXcDAH.d.ts} +1 -1
- package/dist/index.cjs +38 -35
- package/dist/{index.d-DzDHOttz.d.mts → index.d-C0Mie66f.d.mts} +1 -1
- package/dist/{index.d-Dhc2scRl.d.ts → index.d-DV2q-0mE.d.ts} +1 -1
- package/dist/index.d.mts +26 -25
- package/dist/index.d.ts +26 -25
- package/dist/index.mjs +38 -35
- package/dist/integrations/orm.d.mts +2 -1
- package/dist/integrations/orm.d.ts +2 -1
- package/dist/integrations.cjs +4 -3
- package/dist/integrations.d.mts +2 -1
- package/dist/integrations.d.ts +2 -1
- package/dist/integrations.mjs +3 -2
- package/dist/internal/app-markdown-runtime.d.mts +3 -2
- package/dist/internal/app-markdown-runtime.d.ts +3 -2
- package/dist/internal/build-runtime.cjs +31 -30
- package/dist/internal/build-runtime.d.mts +5 -4
- package/dist/internal/build-runtime.d.ts +5 -4
- package/dist/internal/build-runtime.mjs +30 -29
- package/dist/internal/cli-runtime.cjs +12 -11
- package/dist/internal/cli-runtime.d.mts +8 -7
- package/dist/internal/cli-runtime.d.ts +8 -7
- package/dist/internal/cli-runtime.mjs +11 -10
- 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 +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/compression-runtime.d.mts +2 -1
- package/dist/internal/compression-runtime.d.ts +2 -1
- package/dist/internal/config-runtime.cjs +10 -9
- package/dist/internal/config-runtime.d.mts +6 -5
- package/dist/internal/config-runtime.d.ts +6 -5
- package/dist/internal/config-runtime.mjs +9 -8
- package/dist/internal/infra-analytics-runtime.cjs +8 -6
- package/dist/internal/infra-analytics-runtime.d.mts +8 -2
- package/dist/internal/infra-analytics-runtime.d.ts +8 -2
- package/dist/internal/infra-analytics-runtime.mjs +8 -6
- package/dist/internal/islands-action-client.cjs +18 -0
- package/dist/internal/islands-action-client.d.mts +18 -0
- package/dist/internal/islands-action-client.d.ts +18 -0
- package/dist/internal/islands-action-client.mjs +18 -0
- package/dist/internal/islands-boot.cjs +54 -20
- package/dist/internal/islands-boot.d.mts +5 -3
- package/dist/internal/islands-boot.d.ts +5 -3
- package/dist/internal/islands-boot.mjs +49 -15
- package/dist/internal/islands-runtime.cjs +3 -8
- package/dist/internal/islands-runtime.mjs +4 -9
- package/dist/internal/islx-actions-client.cjs +4 -3
- package/dist/internal/islx-actions-client.mjs +3 -2
- package/dist/internal/islx-actions-server.d.mts +0 -2
- package/dist/internal/islx-actions-server.d.ts +0 -2
- package/dist/internal/islx-client.cjs +13 -1
- package/dist/internal/islx-client.d.mts +11 -0
- package/dist/internal/islx-client.d.ts +11 -0
- package/dist/internal/islx-client.mjs +14 -0
- package/dist/internal/metadata-image-runtime.d.mts +1 -0
- package/dist/internal/metadata-image-runtime.d.ts +1 -0
- 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 +12 -7
- package/dist/internal/production-runtime.d.mts +14 -12
- package/dist/internal/production-runtime.d.ts +14 -12
- package/dist/internal/production-runtime.mjs +11 -6
- package/dist/internal/spa-router.d.mts +3 -3
- package/dist/internal/spa-router.d.ts +3 -3
- package/dist/internal/start-manifest.d.mts +2 -1
- package/dist/internal/start-manifest.d.ts +2 -1
- package/dist/markdown.d.mts +2 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/middleware.d.mts +2 -1
- package/dist/middleware.d.ts +2 -1
- package/dist/mobile.d.mts +6 -3
- package/dist/mobile.d.ts +6 -3
- package/dist/{mount.d-DOaeUoWq.d.mts → mount.d-CZ_qL1iS.d.mts} +1 -1
- package/dist/{mount.d-DwXjaOHY.d.ts → mount.d-gWul1GA1.d.ts} +1 -1
- package/dist/{navigation-delegate.d-BElGUMgt.d.mts → navigation-delegate.d-BBTzhJLj.d.mts} +1 -1
- package/dist/{navigation-delegate.d-o3pPd9VI.d.ts → navigation-delegate.d-BZsYEAet.d.ts} +1 -1
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/{nitro-YLTGVGK4.mjs → nitro-FK3SZM4H.mjs} +1 -1
- package/dist/{nitro-XGIO6EQN.cjs → nitro-YDFMH5PY.cjs} +4 -4
- package/dist/{plugin-LN3JBZRR.cjs → plugin-3PT7I26P.cjs} +2 -2
- package/dist/{plugin-33I3V42N.mjs → plugin-QOTAPTVV.mjs} +1 -1
- package/dist/plugin.cjs +25 -23
- package/dist/plugin.d.mts +6 -6
- package/dist/plugin.d.ts +6 -6
- package/dist/plugin.mjs +24 -22
- package/dist/{render-plan.d-BD06tqFA.d.ts → render-plan.d-AaJsYPX-.d.ts} +1 -1
- package/dist/{render-plan.d-xWCRAJeR.d.mts → render-plan.d-bnWxS12w.d.mts} +1 -1
- package/dist/renderer-client.cjs +54 -10
- package/dist/renderer-client.d.mts +8 -7
- package/dist/renderer-client.d.ts +8 -7
- package/dist/renderer-client.mjs +50 -6
- package/dist/renderer.cjs +6 -2
- package/dist/renderer.d.mts +97 -4
- package/dist/renderer.d.ts +97 -4
- package/dist/renderer.mjs +5 -1
- package/dist/{request.d-Dx82V8bz.d.mts → request.d-C2HOn3Hi.d.mts} +1 -1
- package/dist/{request.d-DUMuWxSN.d.ts → request.d-CAeitOG1.d.ts} +1 -1
- package/dist/request.d.mts +3 -2
- package/dist/request.d.ts +3 -2
- package/dist/{route-rendering.d-BwBVpLtD.d.ts → route-rendering.d-A1dIkUK5.d.ts} +1 -1
- package/dist/{route-rendering.d-DJh6GauM.d.mts → route-rendering.d-CYA-ulnX.d.mts} +1 -1
- package/dist/{router.d-BtkKDxUB.d.mts → router.d-8lxnzlkr.d.mts} +1 -1
- package/dist/{router.d-CJBSG5jr.d.ts → router.d-A_Yt6jYz.d.ts} +1 -1
- package/dist/{routes.d-CCccJRrp.d.mts → routes.d-BWvpUoYu.d.mts} +1 -1
- package/dist/{routes.d-b7khoRoU.d.ts → routes.d-D7RWvfqL.d.ts} +1 -1
- package/dist/routes.d.mts +2 -1
- package/dist/routes.d.ts +2 -1
- package/dist/{rsc-pipeline-H5AXQA7A.cjs → rsc-pipeline-MFJZGDPE.cjs} +11 -10
- package/dist/{rsc-pipeline-GD6KLOIG.mjs → rsc-pipeline-TRZVFCBX.mjs} +10 -9
- package/dist/{runtime-YWQVBC3V.cjs → runtime-MJUG2HGR.cjs} +15 -13
- package/dist/{runtime-OJ7FXFUI.mjs → runtime-O4Y3Z6V3.mjs} +11 -9
- package/dist/{runtime.d-BQnD0cfC.d.ts → runtime.d-BPyvWrgQ.d.ts} +1 -1
- package/dist/{runtime.d-C4SuZXf6.d.mts → runtime.d-C_rZ9_DD.d.mts} +1 -1
- package/dist/{server-components-status.d-9rH7ZoEq.d.mts → server-components-status.d-BpxiEMQE.d.mts} +1 -1
- package/dist/{server-components-status.d-rfKOcE0N.d.ts → server-components-status.d-C2UEKJn7.d.ts} +1 -1
- package/dist/server-plugins.d.mts +4 -3
- package/dist/server-plugins.d.ts +4 -3
- package/dist/server-query-call.d-rVM_lsYk.d.mts +15 -0
- package/dist/server-query-call.d-rVM_lsYk.d.ts +15 -0
- package/dist/server-query-client.cjs +5 -3
- package/dist/server-query-client.d.mts +3 -2
- package/dist/server-query-client.d.ts +3 -2
- package/dist/server-query-client.mjs +5 -3
- package/dist/{server-query-runtime.d-DXRNhX_3.d.ts → server-query-runtime.d-BlHd90D0.d.ts} +2 -8
- package/dist/{server-query-runtime.d-aP52iuL5.d.mts → server-query-runtime.d-CCLGkQtE.d.mts} +2 -8
- package/dist/server.cjs +58 -52
- package/dist/server.d.mts +12 -12
- package/dist/server.d.ts +12 -12
- package/dist/server.mjs +34 -28
- package/dist/{spa-router.d-V6XLSTCy.d.mts → spa-router.d-BD-6WX1R.d.mts} +2 -2
- package/dist/{spa-router.d-DMKiBsHH.d.ts → spa-router.d-Cw5i_15e.d.ts} +2 -2
- package/dist/{ssg.d-MNedvvMB.d.ts → ssg.d-Bifiq0EL.d.ts} +2 -2
- package/dist/{ssg.d-BnCKPQL0.d.mts → ssg.d-CCE9aob5.d.mts} +2 -2
- package/dist/{store-core.d-Ad5biajo.d.ts → store-core.d-5tVn5vi1.d.ts} +12 -4
- package/dist/{store-core.d-BqJI1-ix.d.mts → store-core.d-BN2MxSG9.d.mts} +12 -4
- package/dist/testing.cjs +5 -4
- package/dist/testing.d.mts +2 -1
- package/dist/testing.d.ts +2 -1
- package/dist/testing.mjs +4 -3
- package/dist/{utils.d-BdjHKDuT.d.ts → utils.d-BUjpSNIO.d.ts} +1 -1
- package/dist/{utils.d-BEKLWa0Z.d.mts → utils.d-wGPLeVbq.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +25 -23
- package/dist/vite.d.mts +6 -6
- package/dist/vite.d.ts +6 -6
- package/dist/vite.mjs +24 -22
- package/package.json +7 -2
- package/dist/analyzer-435DCIQ6.cjs +0 -17
- package/dist/chunk-AHVF5GI2.cjs +0 -229
- package/dist/chunk-ONSZP5JK.mjs +0 -229
|
@@ -15,9 +15,11 @@ var _chunkLQWIIBI2cjs = require('./chunk-LQWIIBI2.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
var _chunk3DE6RK7Kcjs = require('./chunk-3DE6RK7K.cjs');
|
|
18
19
|
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
var _chunkHUGPJFOCcjs = require('./chunk-HUGPJFOC.cjs');
|
|
21
23
|
|
|
22
24
|
|
|
23
25
|
var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
@@ -230,7 +232,7 @@ async function invokeAPIRouteEndpointInContext(endpoint, request, params) {
|
|
|
230
232
|
let body = void 0;
|
|
231
233
|
if (request.method.toUpperCase() !== "GET" && request.method.toUpperCase() !== "HEAD") {
|
|
232
234
|
if (types.body && !_chunkHLYRXN2Icjs.isMultipartSchema.call(void 0, types.body)) {
|
|
233
|
-
const rejection =
|
|
235
|
+
const rejection = _chunkHUGPJFOCcjs.rejectCrossSiteNonJSONBody.call(void 0, request, CROSS_SITE_JSON_BODY_MESSAGE);
|
|
234
236
|
if (rejection) return rejection;
|
|
235
237
|
}
|
|
236
238
|
const parsedBody = await readRequestBody(request);
|
|
@@ -277,7 +279,7 @@ async function invokeAPIRouteEndpointInContext(endpoint, request, params) {
|
|
|
277
279
|
}
|
|
278
280
|
if (execution.handlerExecuted && endpoint.__output && !isWebResponse(execution.result)) {
|
|
279
281
|
try {
|
|
280
|
-
execution.result = await
|
|
282
|
+
execution.result = await _chunk3DE6RK7Kcjs.parseRouteSchema.call(void 0, endpoint.__output, execution.result);
|
|
281
283
|
} catch (e) {
|
|
282
284
|
throw new Error("API route returned a value that does not match its output schema.");
|
|
283
285
|
}
|
|
@@ -406,7 +408,7 @@ async function readRequestBody(request) {
|
|
|
406
408
|
}
|
|
407
409
|
if (!text) return { body: void 0 };
|
|
408
410
|
if (contentType === void 0) {
|
|
409
|
-
if (!
|
|
411
|
+
if (!_chunkHUGPJFOCcjs.validateIntegrationRequestOrigin.call(void 0, request, { requireOriginMetadata: false }).ok) {
|
|
410
412
|
return { body: void 0 };
|
|
411
413
|
}
|
|
412
414
|
try {
|
|
@@ -455,12 +457,12 @@ function entriesToObject(entries) {
|
|
|
455
457
|
async function validateInput(schema, value, error) {
|
|
456
458
|
if (!schema) return value;
|
|
457
459
|
try {
|
|
458
|
-
return await
|
|
460
|
+
return await _chunk3DE6RK7Kcjs.parseRouteSchema.call(void 0, schema, value);
|
|
459
461
|
} catch (validationError) {
|
|
460
462
|
return Response.json(
|
|
461
463
|
{
|
|
462
464
|
error,
|
|
463
|
-
details:
|
|
465
|
+
details: _chunk3DE6RK7Kcjs.toPublicValidationIssues.call(void 0, validationError)
|
|
464
466
|
},
|
|
465
467
|
{ status: 400 }
|
|
466
468
|
);
|
|
@@ -18,11 +18,16 @@ import {
|
|
|
18
18
|
} from "./chunk-LRPPXKCX.mjs";
|
|
19
19
|
import {
|
|
20
20
|
resolveDocsConfig
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-U56Z3755.mjs";
|
|
22
22
|
import {
|
|
23
23
|
getFarmDocsAdapterConfigModule,
|
|
24
24
|
isSecretDocsConfigKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S3R4JDRO.mjs";
|
|
26
|
+
import {
|
|
27
|
+
getFarmDocsAdapterRenderer,
|
|
28
|
+
getFarmDocsAdapterUIModule,
|
|
29
|
+
hasFarmDocsRuntimeAdapter
|
|
30
|
+
} from "./chunk-5V6HSJFG.mjs";
|
|
26
31
|
import {
|
|
27
32
|
cloneFarmRequest
|
|
28
33
|
} from "./chunk-YT2ZMLXK.mjs";
|
|
@@ -35,9 +40,6 @@ import {
|
|
|
35
40
|
import { createRequire } from "module";
|
|
36
41
|
import path from "path";
|
|
37
42
|
import { pathToFileURL } from "url";
|
|
38
|
-
function hasFarmDocsRuntimeAdapter(docs) {
|
|
39
|
-
return Boolean(docs?.enabled && docs.adapter?.server && docs.adapter.react);
|
|
40
|
-
}
|
|
41
43
|
function farmDocsAdapterServesGuardedPages(docs) {
|
|
42
44
|
return Boolean(
|
|
43
45
|
hasFarmDocsRuntimeAdapter(docs) && docs.adapter.capabilities?.includes("guarded-pages")
|
|
@@ -88,7 +90,7 @@ function getFarmDocsAdapterStylesheets(options) {
|
|
|
88
90
|
}
|
|
89
91
|
async function compileFarmDocsAdapterEdgeManifest(docs, options) {
|
|
90
92
|
if (!hasFarmDocsRuntimeAdapter(docs)) {
|
|
91
|
-
throw new Error("Farm docs adapter requires server and
|
|
93
|
+
throw new Error("Farm docs adapter requires `server` and `ui` entries.");
|
|
92
94
|
}
|
|
93
95
|
if (docs.roots?.length) {
|
|
94
96
|
throw new Error(
|
|
@@ -164,7 +166,7 @@ async function listFarmDocsPagePaths(docs, options) {
|
|
|
164
166
|
}
|
|
165
167
|
async function createFarmDocsAdapterHandler(docs, options) {
|
|
166
168
|
if (!hasFarmDocsRuntimeAdapter(docs)) {
|
|
167
|
-
throw new Error("Farm docs adapter requires server and
|
|
169
|
+
throw new Error("Farm docs adapter requires `server` and `ui` entries.");
|
|
168
170
|
}
|
|
169
171
|
assertFarmDocsAdapterServesNoGuardedPages(docs, options, options.isPathGuarded);
|
|
170
172
|
const serverModule = await options.loadModule(
|
|
@@ -180,12 +182,16 @@ async function createFarmDocsAdapterHandler(docs, options) {
|
|
|
180
182
|
);
|
|
181
183
|
}
|
|
182
184
|
const moduleConfig = await loadFarmDocsConfigModule(docs, options.loadModule);
|
|
185
|
+
const uiModule = getFarmDocsAdapterUIModule(docs.adapter);
|
|
186
|
+
const loadUIModule = () => options.loadModule(uiModule);
|
|
183
187
|
const handlerOptions = {
|
|
184
188
|
rootDir: options.root,
|
|
185
189
|
clientEntry: options.clientEntry,
|
|
186
190
|
stylesheets: getFarmDocsAdapterStylesheets(options),
|
|
187
191
|
resolveLayoutFonts: options.resolveLayoutFonts,
|
|
188
|
-
|
|
192
|
+
loadUIModule,
|
|
193
|
+
...getFarmDocsAdapterRenderer(docs.adapter) === "react" ? { loadReactModule: loadUIModule } : {},
|
|
194
|
+
...options.rendererServer ? { loadRenderer: () => options.loadModule(options.rendererServer) } : {},
|
|
189
195
|
...options.registerMCPServer ? { registerMCPServer: options.registerMCPServer } : {},
|
|
190
196
|
...options.isPathGuarded && farmDocsAdapterServesGuardedPages(docs) ? { isPathGuarded: options.isPathGuarded } : {}
|
|
191
197
|
};
|
|
@@ -733,7 +739,6 @@ function createFarmDocsAPIHandler(options = {}, cloudIntegration) {
|
|
|
733
739
|
}
|
|
734
740
|
|
|
735
741
|
export {
|
|
736
|
-
hasFarmDocsRuntimeAdapter,
|
|
737
742
|
farmDocsAdapterServesGuardedPages,
|
|
738
743
|
assertFarmDocsAdapterServesNoGuardedPages,
|
|
739
744
|
getFarmDocsConfigModuleRoot,
|
|
@@ -14,10 +14,12 @@ import {
|
|
|
14
14
|
} from "./chunk-ZIAWO6BC.mjs";
|
|
15
15
|
import {
|
|
16
16
|
parseRouteSchema,
|
|
17
|
+
toPublicValidationIssues
|
|
18
|
+
} from "./chunk-U6XYBTUT.mjs";
|
|
19
|
+
import {
|
|
17
20
|
rejectCrossSiteNonJSONBody,
|
|
18
|
-
toPublicValidationIssues,
|
|
19
21
|
validateIntegrationRequestOrigin
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PNMAD3OS.mjs";
|
|
21
23
|
import {
|
|
22
24
|
resolveFarmAPICanonicalPathname
|
|
23
25
|
} from "./chunk-2I6PUKWJ.mjs";
|
|
@@ -298,6 +298,25 @@ if (import.meta.hot) {
|
|
|
298
298
|
`;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
+
// src/docs/adapter-descriptor.ts
|
|
302
|
+
function getFarmDocsAdapterUIModule(adapter) {
|
|
303
|
+
return _optionalChain([adapter, 'optionalAccess', _3 => _3.ui]) || _optionalChain([adapter, 'optionalAccess', _4 => _4.react]) || void 0;
|
|
304
|
+
}
|
|
305
|
+
function getFarmDocsAdapterRenderer(adapter) {
|
|
306
|
+
return adapter.renderer || "react";
|
|
307
|
+
}
|
|
308
|
+
function hasFarmDocsRuntimeAdapter(docs) {
|
|
309
|
+
return Boolean(_optionalChain([docs, 'optionalAccess', _5 => _5.enabled]) && _optionalChain([docs, 'access', _6 => _6.adapter, 'optionalAccess', _7 => _7.server]) && getFarmDocsAdapterUIModule(docs.adapter));
|
|
310
|
+
}
|
|
311
|
+
function assertFarmDocsAdapterRenderer(docs, renderer) {
|
|
312
|
+
if (!hasFarmDocsRuntimeAdapter(docs)) return;
|
|
313
|
+
const adapterRenderer = getFarmDocsAdapterRenderer(docs.adapter);
|
|
314
|
+
if (adapterRenderer === renderer) return;
|
|
315
|
+
throw new Error(
|
|
316
|
+
`The docs adapter ${JSON.stringify(docs.adapter.id)} has a ${JSON.stringify(adapterRenderer)} UI, and this app's renderer is ${JSON.stringify(renderer)}. An adapter runs only under the renderer its UI is written for: use an adapter release with a ${JSON.stringify(renderer)} UI, or remove the adapter (for @farming-labs/farmjs, the withDocs() wrapper) to serve docs with Farm's built-in renderer.`
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
|
|
301
320
|
// src/auth-config.ts
|
|
302
321
|
var _module = require('module');
|
|
303
322
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
@@ -316,13 +335,13 @@ function resolveFarmAuthConfig(input) {
|
|
|
316
335
|
maxPasswordLength: _nullishCoalesce(passwordConfig.maxPasswordLength, () => ( 128))
|
|
317
336
|
},
|
|
318
337
|
session: {
|
|
319
|
-
expiresIn: _nullishCoalesce(_optionalChain([config, 'access',
|
|
320
|
-
updateAge: _nullishCoalesce(_optionalChain([config, 'access',
|
|
338
|
+
expiresIn: _nullishCoalesce(_optionalChain([config, 'access', _8 => _8.session, 'optionalAccess', _9 => _9.expiresIn]), () => ( 60 * 60 * 24 * 7)),
|
|
339
|
+
updateAge: _nullishCoalesce(_optionalChain([config, 'access', _10 => _10.session, 'optionalAccess', _11 => _11.updateAge]), () => ( 60 * 60 * 24))
|
|
321
340
|
},
|
|
322
341
|
database: {
|
|
323
|
-
url: _optionalChain([config, 'access',
|
|
324
|
-
path: _optionalChain([config, 'access',
|
|
325
|
-
migrateInDevelopment: _nullishCoalesce(_optionalChain([config, 'access',
|
|
342
|
+
url: _optionalChain([config, 'access', _12 => _12.database, 'optionalAccess', _13 => _13.url]),
|
|
343
|
+
path: _optionalChain([config, 'access', _14 => _14.database, 'optionalAccess', _15 => _15.path]) || ".farm/auth.sqlite",
|
|
344
|
+
migrateInDevelopment: _nullishCoalesce(_optionalChain([config, 'access', _16 => _16.database, 'optionalAccess', _17 => _17.migrateInDevelopment]), () => ( true))
|
|
326
345
|
}
|
|
327
346
|
};
|
|
328
347
|
validateFarmAuthConfig(resolved);
|
|
@@ -415,4 +434,8 @@ function validateFarmAuthConfig(config) {
|
|
|
415
434
|
|
|
416
435
|
|
|
417
436
|
|
|
418
|
-
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
exports.resolveFarmDevIndicatorsConfig = resolveFarmDevIndicatorsConfig; exports.generateFarmDevIndicatorsClientRuntime = generateFarmDevIndicatorsClientRuntime; exports.resolveFarmAuthConfig = resolveFarmAuthConfig; exports.resolveFarmAuthIntegration = resolveFarmAuthIntegration; exports.getFarmDocsAdapterUIModule = getFarmDocsAdapterUIModule; exports.getFarmDocsAdapterRenderer = getFarmDocsAdapterRenderer; exports.hasFarmDocsRuntimeAdapter = hasFarmDocsRuntimeAdapter; exports.assertFarmDocsAdapterRenderer = assertFarmDocsAdapterRenderer;
|
|
@@ -18,11 +18,16 @@ var _chunkHR5GU4UUcjs = require('./chunk-HR5GU4UU.cjs');
|
|
|
18
18
|
var _chunkNDOE76QCcjs = require('./chunk-NDOE76QC.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk55UJGUBPcjs = require('./chunk-55UJGUBP.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkXJDB564Acjs = require('./chunk-XJDB564A.cjs');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
var _chunkL2GUEYHRcjs = require('./chunk-L2GUEYHR.cjs');
|
|
26
31
|
|
|
27
32
|
|
|
28
33
|
var _chunk7Q7UB4TLcjs = require('./chunk-7Q7UB4TL.cjs');
|
|
@@ -35,16 +40,13 @@ var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
|
35
40
|
var _module = require('module');
|
|
36
41
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
37
42
|
var _url = require('url');
|
|
38
|
-
function hasFarmDocsRuntimeAdapter(docs) {
|
|
39
|
-
return Boolean(_optionalChain([docs, 'optionalAccess', _ => _.enabled]) && _optionalChain([docs, 'access', _2 => _2.adapter, 'optionalAccess', _3 => _3.server]) && docs.adapter.react);
|
|
40
|
-
}
|
|
41
43
|
function farmDocsAdapterServesGuardedPages(docs) {
|
|
42
44
|
return Boolean(
|
|
43
|
-
hasFarmDocsRuntimeAdapter(docs) && _optionalChain([docs, 'access',
|
|
45
|
+
_chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, docs) && _optionalChain([docs, 'access', _ => _.adapter, 'access', _2 => _2.capabilities, 'optionalAccess', _3 => _3.includes, 'call', _4 => _4("guarded-pages")])
|
|
44
46
|
);
|
|
45
47
|
}
|
|
46
48
|
function assertFarmDocsAdapterServesNoGuardedPages(docs, options, isPathGuarded, runtime = "node") {
|
|
47
|
-
if (!isPathGuarded || !hasFarmDocsRuntimeAdapter(docs)) return;
|
|
49
|
+
if (!isPathGuarded || !_chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, docs)) return;
|
|
48
50
|
const servesGuardedPages = farmDocsAdapterServesGuardedPages(docs);
|
|
49
51
|
if (servesGuardedPages && runtime !== "edge") return;
|
|
50
52
|
const guarded = _chunkHR5GU4UUcjs.getFarmDocsRoots.call(void 0, docs).flatMap((root) => _chunkHR5GU4UUcjs.discoverFarmDocsPages.call(void 0, _chunkHR5GU4UUcjs.resolveFarmDocsContentDir.call(void 0, root, options), root)).filter((page) => isPathGuarded(page.href) || isPathGuarded(_chunkHR5GU4UUcjs.getFarmDocsMarkdownPath.call(void 0, page.href))).map((page) => page.href);
|
|
@@ -59,10 +61,10 @@ function assertFarmDocsAdapterServesNoGuardedPages(docs, options, isPathGuarded,
|
|
|
59
61
|
);
|
|
60
62
|
}
|
|
61
63
|
async function loadFarmDocsConfigModule(docs, loadModule) {
|
|
62
|
-
const configModule =
|
|
64
|
+
const configModule = _chunkXJDB564Acjs.getFarmDocsAdapterConfigModule.call(void 0, docs);
|
|
63
65
|
if (!configModule) return void 0;
|
|
64
66
|
const loaded = await loadModule(configModule);
|
|
65
|
-
const config = _nullishCoalesce(_optionalChain([loaded, 'optionalAccess',
|
|
67
|
+
const config = _nullishCoalesce(_optionalChain([loaded, 'optionalAccess', _5 => _5.default]), () => ( loaded));
|
|
66
68
|
return config && typeof config === "object" ? config : void 0;
|
|
67
69
|
}
|
|
68
70
|
function getFarmDocsConfigModuleRoot(moduleConfig, entry) {
|
|
@@ -87,10 +89,10 @@ function getFarmDocsAdapterStylesheets(options) {
|
|
|
87
89
|
);
|
|
88
90
|
}
|
|
89
91
|
async function compileFarmDocsAdapterEdgeManifest(docs, options) {
|
|
90
|
-
if (!hasFarmDocsRuntimeAdapter(docs)) {
|
|
91
|
-
throw new Error("Farm docs adapter requires server and
|
|
92
|
+
if (!_chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, docs)) {
|
|
93
|
+
throw new Error("Farm docs adapter requires `server` and `ui` entries.");
|
|
92
94
|
}
|
|
93
|
-
if (_optionalChain([docs, 'access',
|
|
95
|
+
if (_optionalChain([docs, 'access', _6 => _6.roots, 'optionalAccess', _7 => _7.length])) {
|
|
94
96
|
throw new Error(
|
|
95
97
|
"Several docs roots are not supported on edge deployments yet; they need a Node.js deployment target."
|
|
96
98
|
);
|
|
@@ -136,7 +138,7 @@ async function compileFarmDocsAdapterEdgeManifest(docs, options) {
|
|
|
136
138
|
return manifest;
|
|
137
139
|
}
|
|
138
140
|
async function listFarmDocsAdapterPages(docs, options) {
|
|
139
|
-
if (!hasFarmDocsRuntimeAdapter(docs)) return null;
|
|
141
|
+
if (!_chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, docs)) return null;
|
|
140
142
|
const requireFromApp = _module.createRequire.call(void 0, _path2.default.join(options.root, "package.json"));
|
|
141
143
|
const serverModule = await import(
|
|
142
144
|
/* @vite-ignore */
|
|
@@ -163,14 +165,14 @@ async function listFarmDocsPagePaths(docs, options) {
|
|
|
163
165
|
);
|
|
164
166
|
}
|
|
165
167
|
async function createFarmDocsAdapterHandler(docs, options) {
|
|
166
|
-
if (!hasFarmDocsRuntimeAdapter(docs)) {
|
|
167
|
-
throw new Error("Farm docs adapter requires server and
|
|
168
|
+
if (!_chunkL2GUEYHRcjs.hasFarmDocsRuntimeAdapter.call(void 0, docs)) {
|
|
169
|
+
throw new Error("Farm docs adapter requires `server` and `ui` entries.");
|
|
168
170
|
}
|
|
169
171
|
assertFarmDocsAdapterServesNoGuardedPages(docs, options, options.isPathGuarded);
|
|
170
172
|
const serverModule = await options.loadModule(
|
|
171
173
|
docs.adapter.server
|
|
172
174
|
);
|
|
173
|
-
const multiRoot = Boolean(_optionalChain([docs, 'access',
|
|
175
|
+
const multiRoot = Boolean(_optionalChain([docs, 'access', _8 => _8.roots, 'optionalAccess', _9 => _9.length]));
|
|
174
176
|
const handlerExport = multiRoot ? "createFarmDocsMultiRuntimeHandler" : "createFarmDocsRuntimeHandler";
|
|
175
177
|
if (typeof serverModule[handlerExport] !== "function") {
|
|
176
178
|
const adapterId = JSON.stringify(docs.adapter.id);
|
|
@@ -180,12 +182,16 @@ async function createFarmDocsAdapterHandler(docs, options) {
|
|
|
180
182
|
);
|
|
181
183
|
}
|
|
182
184
|
const moduleConfig = await loadFarmDocsConfigModule(docs, options.loadModule);
|
|
185
|
+
const uiModule = _chunkL2GUEYHRcjs.getFarmDocsAdapterUIModule.call(void 0, docs.adapter);
|
|
186
|
+
const loadUIModule = () => options.loadModule(uiModule);
|
|
183
187
|
const handlerOptions = {
|
|
184
188
|
rootDir: options.root,
|
|
185
189
|
clientEntry: options.clientEntry,
|
|
186
190
|
stylesheets: getFarmDocsAdapterStylesheets(options),
|
|
187
191
|
resolveLayoutFonts: options.resolveLayoutFonts,
|
|
188
|
-
|
|
192
|
+
loadUIModule,
|
|
193
|
+
..._chunkL2GUEYHRcjs.getFarmDocsAdapterRenderer.call(void 0, docs.adapter) === "react" ? { loadReactModule: loadUIModule } : {},
|
|
194
|
+
...options.rendererServer ? { loadRenderer: () => options.loadModule(options.rendererServer) } : {},
|
|
189
195
|
...options.registerMCPServer ? { registerMCPServer: options.registerMCPServer } : {},
|
|
190
196
|
...options.isPathGuarded && farmDocsAdapterServesGuardedPages(docs) ? { isPathGuarded: options.isPathGuarded } : {}
|
|
191
197
|
};
|
|
@@ -235,7 +241,7 @@ function omitHeadBody(response) {
|
|
|
235
241
|
});
|
|
236
242
|
}
|
|
237
243
|
function normalizeAction(value) {
|
|
238
|
-
return _optionalChain([value, 'optionalAccess',
|
|
244
|
+
return _optionalChain([value, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11(), 'access', _12 => _12.toLowerCase, 'call', _13 => _13(), 'access', _14 => _14.replace, 'call', _15 => _15(/_/g, "-")]) || void 0;
|
|
239
245
|
}
|
|
240
246
|
function getDocsTitle(docs) {
|
|
241
247
|
return typeof docs.config.nav === "object" && docs.config.nav && "title" in docs.config.nav ? String(docs.config.nav.title || "Documentation") : "Documentation";
|
|
@@ -334,7 +340,7 @@ function getDocsAPIFormat(request) {
|
|
|
334
340
|
return normalizeAction(url.searchParams.get("format") || url.searchParams.get("type")) || getDocsAPIPathTarget(request).format;
|
|
335
341
|
}
|
|
336
342
|
function getDocsDescription(docs) {
|
|
337
|
-
return _optionalChain([docs, 'access',
|
|
343
|
+
return _optionalChain([docs, 'access', _16 => _16.config, 'access', _17 => _17.metadata, 'optionalAccess', _18 => _18.description]);
|
|
338
344
|
}
|
|
339
345
|
function getLoadedDocsPages(context) {
|
|
340
346
|
return _chunkHR5GU4UUcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs).filter((page) => !context.isPathGuarded(page.href)).map((page) => _chunkHR5GU4UUcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, page.slug)).filter((page) => Boolean(page));
|
|
@@ -496,7 +502,7 @@ function redactDocsConfigValue(value, key, inHeaders) {
|
|
|
496
502
|
);
|
|
497
503
|
}
|
|
498
504
|
if (value === null || value === void 0 || typeof value === "function") return value;
|
|
499
|
-
return inHeaders ||
|
|
505
|
+
return inHeaders || _chunkXJDB564Acjs.isSecretDocsConfigKey.call(void 0, key) ? REDACTED_DOCS_CONFIG_VALUE : value;
|
|
500
506
|
}
|
|
501
507
|
function toPublicDocsPath(value, root) {
|
|
502
508
|
if (typeof value !== "string" || !value) return void 0;
|
|
@@ -573,19 +579,19 @@ async function searchDocs(context, request, query) {
|
|
|
573
579
|
const page = sourcePageByUrl.get(pageUrl);
|
|
574
580
|
return {
|
|
575
581
|
...result,
|
|
576
|
-
title: _optionalChain([page, 'optionalAccess',
|
|
577
|
-
href: _optionalChain([page, 'optionalAccess',
|
|
578
|
-
description: result.description || _optionalChain([page, 'optionalAccess',
|
|
582
|
+
title: _optionalChain([page, 'optionalAccess', _19 => _19.title]) || result.content,
|
|
583
|
+
href: _optionalChain([page, 'optionalAccess', _20 => _20.url]) || pageUrl,
|
|
584
|
+
description: result.description || _optionalChain([page, 'optionalAccess', _21 => _21.description])
|
|
579
585
|
};
|
|
580
586
|
});
|
|
581
587
|
}
|
|
582
588
|
async function resolveAPIContext(options) {
|
|
583
589
|
await _chunkNDOE76QCcjs.loadFarmDocsEngine.call(void 0, );
|
|
584
590
|
const runtimeConfig = globalThis.__FARM_DOCS_RUNTIME_CONFIG__;
|
|
585
|
-
const root = options.rootDir || options.root || _optionalChain([runtimeConfig, 'optionalAccess',
|
|
586
|
-
const srcDir = options.srcDir || _optionalChain([runtimeConfig, 'optionalAccess',
|
|
591
|
+
const root = options.rootDir || options.root || _optionalChain([runtimeConfig, 'optionalAccess', _22 => _22.root]) || process.cwd();
|
|
592
|
+
const srcDir = options.srcDir || _optionalChain([runtimeConfig, 'optionalAccess', _23 => _23.srcDir]) || "src";
|
|
587
593
|
const canUseRuntimeDocs = options.docs === void 0 && options.config === void 0 && options.configPath === void 0 && options.entry === void 0 && options.docsPath === void 0 && options.contentDir === void 0 && options.root === void 0 && options.rootDir === void 0 && options.srcDir === void 0;
|
|
588
|
-
const docsInput = _nullishCoalesce(_nullishCoalesce(options.docs, () => ( (canUseRuntimeDocs ? _optionalChain([runtimeConfig, 'optionalAccess',
|
|
594
|
+
const docsInput = _nullishCoalesce(_nullishCoalesce(options.docs, () => ( (canUseRuntimeDocs ? _optionalChain([runtimeConfig, 'optionalAccess', _24 => _24.docs]) : void 0))), () => ( {
|
|
589
595
|
enabled: true,
|
|
590
596
|
entry: options.entry,
|
|
591
597
|
docsPath: options.docsPath,
|
|
@@ -593,8 +599,8 @@ async function resolveAPIContext(options) {
|
|
|
593
599
|
config: options.config,
|
|
594
600
|
configPath: options.configPath
|
|
595
601
|
}));
|
|
596
|
-
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await
|
|
597
|
-
const guardedPaths = new Set(_nullishCoalesce(_optionalChain([runtimeConfig, 'optionalAccess',
|
|
602
|
+
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunk55UJGUBPcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
|
|
603
|
+
const guardedPaths = new Set(_nullishCoalesce(_optionalChain([runtimeConfig, 'optionalAccess', _25 => _25.guardedPaths]), () => ( [])));
|
|
598
604
|
return {
|
|
599
605
|
root,
|
|
600
606
|
srcDir,
|
|
@@ -602,7 +608,7 @@ async function resolveAPIContext(options) {
|
|
|
602
608
|
contentDir: _chunkHR5GU4UUcjs.resolveFarmDocsContentDir.call(void 0, docs, { root, srcDir }),
|
|
603
609
|
diagnostics: options.diagnostics === true,
|
|
604
610
|
isPathGuarded: _nullishCoalesce(options.isPathGuarded, () => ( ((pathname) => guardedPaths.has(pathname)))),
|
|
605
|
-
basePath: _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, _nullishCoalesce(options.basePath, () => ( _optionalChain([runtimeConfig, 'optionalAccess',
|
|
611
|
+
basePath: _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, _nullishCoalesce(options.basePath, () => ( _optionalChain([runtimeConfig, 'optionalAccess', _26 => _26.basePath]))))
|
|
606
612
|
};
|
|
607
613
|
}
|
|
608
614
|
async function handleDocsAPIGet(request, context) {
|
|
@@ -743,5 +749,4 @@ function createFarmDocsAPIHandler(options = {}, cloudIntegration) {
|
|
|
743
749
|
|
|
744
750
|
|
|
745
751
|
|
|
746
|
-
|
|
747
|
-
exports.hasFarmDocsRuntimeAdapter = hasFarmDocsRuntimeAdapter; exports.farmDocsAdapterServesGuardedPages = farmDocsAdapterServesGuardedPages; exports.assertFarmDocsAdapterServesNoGuardedPages = assertFarmDocsAdapterServesNoGuardedPages; exports.getFarmDocsConfigModuleRoot = getFarmDocsConfigModuleRoot; exports.compileFarmDocsAdapterEdgeManifest = compileFarmDocsAdapterEdgeManifest; exports.listFarmDocsAdapterPages = listFarmDocsAdapterPages; exports.listFarmDocsPagePaths = listFarmDocsPagePaths; exports.createFarmDocsAdapterHandler = createFarmDocsAdapterHandler; exports.isFarmDocsAPIRequest = isFarmDocsAPIRequest; exports.createDocsAPI = createDocsAPI; exports.createFarmDocsAPIHandler = createFarmDocsAPIHandler;
|
|
752
|
+
exports.farmDocsAdapterServesGuardedPages = farmDocsAdapterServesGuardedPages; exports.assertFarmDocsAdapterServesNoGuardedPages = assertFarmDocsAdapterServesNoGuardedPages; exports.getFarmDocsConfigModuleRoot = getFarmDocsConfigModuleRoot; exports.compileFarmDocsAdapterEdgeManifest = compileFarmDocsAdapterEdgeManifest; exports.listFarmDocsAdapterPages = listFarmDocsAdapterPages; exports.listFarmDocsPagePaths = listFarmDocsPagePaths; exports.createFarmDocsAdapterHandler = createFarmDocsAdapterHandler; exports.isFarmDocsAPIRequest = isFarmDocsAPIRequest; exports.createDocsAPI = createDocsAPI; exports.createFarmDocsAPIHandler = createFarmDocsAPIHandler;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
beginFarmServerQueryAction
|
|
3
|
+
} from "./chunk-BUQR7KKO.mjs";
|
|
4
|
+
|
|
5
|
+
// src/islands-action-call.ts
|
|
6
|
+
var actionClient;
|
|
7
|
+
function loadFarmIslandsActionClient() {
|
|
8
|
+
return actionClient ?? (actionClient = import("./internal/islands-action-client.mjs").catch((error) => {
|
|
9
|
+
actionClient = void 0;
|
|
10
|
+
throw error;
|
|
11
|
+
}));
|
|
12
|
+
}
|
|
13
|
+
function preloadFarmIslandsActionClient() {
|
|
14
|
+
loadFarmIslandsActionClient().catch(() => {
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
var farmIslandsLazyActionInterceptor = (call, next) => {
|
|
18
|
+
const invocation = beginFarmServerQueryAction(call.id, call.args);
|
|
19
|
+
const response = next();
|
|
20
|
+
response.catch(() => {
|
|
21
|
+
});
|
|
22
|
+
return loadFarmIslandsActionClient().then(
|
|
23
|
+
(client) => client.completeFarmIslandsAction(invocation, response)
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
preloadFarmIslandsActionClient,
|
|
29
|
+
farmIslandsLazyActionInterceptor
|
|
30
|
+
};
|