@farm.js/core 0.1.67 → 0.1.68
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-BFu9xHAi.d.ts → agent-mcp.d-Uh5xr7aX.d.ts} +1 -1
- package/dist/{agent-mcp.d-DWyWkTSy.d.mts → agent-mcp.d-wkVPK1GA.d.mts} +1 -1
- package/dist/agent-runtime.d.mts +5 -3
- package/dist/agent-runtime.d.ts +5 -3
- package/dist/{analyzer-TTIIXXMQ.mjs → analyzer-CQDU7E3Y.mjs} +2 -2
- package/dist/analyzer-PPAHM4AW.cjs +16 -0
- package/dist/api/node.d.mts +7 -5
- package/dist/api/node.d.ts +7 -5
- package/dist/api/route-manager.d.mts +7 -5
- package/dist/api/route-manager.d.ts +7 -5
- package/dist/api/runtime.d.mts +6 -4
- package/dist/api/runtime.d.ts +6 -4
- package/dist/api.d.mts +8 -6
- package/dist/api.d.ts +8 -6
- package/dist/{app-manifest.d-CwfhGrVR.d.ts → app-manifest.d-BT5i2F-o.d.ts} +1 -1
- package/dist/{app-manifest.d-CRmjN5j9.d.mts → app-manifest.d-Dd4q5CFx.d.mts} +1 -1
- package/dist/app-markdown.cjs +3 -3
- package/dist/app-markdown.d.mts +10 -10
- package/dist/app-markdown.d.ts +10 -10
- package/dist/app-markdown.mjs +2 -2
- package/dist/{app.d-BX9LVTiP.d.ts → app.d-BVOpL_f2.d.ts} +6 -6
- package/dist/{app.d-uBBUxwyV.d.mts → app.d-BhiDXex_.d.mts} +6 -6
- package/dist/{chunk-23PVOIPT.cjs → chunk-225APHKC.cjs} +3 -3
- package/dist/{chunk-4JX3M4C6.cjs → chunk-23VJEGKC.cjs} +2 -1
- package/dist/{chunk-Q37INCXG.cjs → chunk-3EEINK7G.cjs} +11 -2
- package/dist/{chunk-BRWIVOV4.cjs → chunk-3GNHJ3RN.cjs} +10 -8
- package/dist/{chunk-QJVW76JG.mjs → chunk-3Y52TWYU.mjs} +2 -2
- package/dist/{chunk-OB3IFUK6.cjs → chunk-437QZIC2.cjs} +4 -4
- package/dist/{chunk-WGHY3OL5.mjs → chunk-4UAQB5LB.mjs} +232 -49
- package/dist/{chunk-JWSI5WO4.mjs → chunk-4ZXKYCYK.mjs} +1 -1
- package/dist/{chunk-N35YPV4N.mjs → chunk-57QAQU4F.mjs} +9 -7
- package/dist/{chunk-AQDLVHNF.mjs → chunk-5FBZJJGA.mjs} +17 -0
- package/dist/{chunk-PL6RTBDE.cjs → chunk-5JKDFRTK.cjs} +2 -2
- package/dist/{chunk-CO3YMZFD.mjs → chunk-6OFOIMNS.mjs} +1 -1
- package/dist/{chunk-556H7JCE.cjs → chunk-7LK5CTUM.cjs} +14 -14
- package/dist/{chunk-E6CD45JK.mjs → chunk-A3T445WK.mjs} +19 -5
- package/dist/{chunk-DQJ2CIH7.cjs → chunk-ASYOWPSR.cjs} +2 -1
- package/dist/{chunk-QGJ4FI2G.mjs → chunk-C6HGUTXB.mjs} +113 -29
- package/dist/{chunk-IRA2CZAY.mjs → chunk-CRVSYDHV.mjs} +2 -2
- package/dist/{chunk-XNZWMXCF.mjs → chunk-DIXFKAPM.mjs} +183 -76
- package/dist/{chunk-QGQP6QKO.cjs → chunk-DWLNLU55.cjs} +2 -2
- package/dist/{chunk-52Y3C3HG.mjs → chunk-E7VF3LQ5.mjs} +3 -2
- package/dist/{chunk-N5DQMOAG.cjs → chunk-F36LS2C7.cjs} +273 -90
- package/dist/{chunk-H37MDCPR.mjs → chunk-F6CMGWAL.mjs} +1 -1
- package/dist/{chunk-HNVAZGQD.cjs → chunk-FJMC24KG.cjs} +2 -2
- package/dist/{chunk-KCY52OUQ.cjs → chunk-FSODPZRT.cjs} +1 -1
- package/dist/{chunk-PPX7UOFY.cjs → chunk-FVYBEMOD.cjs} +55 -38
- package/dist/{chunk-6YBYX4K4.mjs → chunk-G7NBPP7H.mjs} +1 -1
- package/dist/{chunk-HFHJJXSV.mjs → chunk-GFPS7MNE.mjs} +1 -1
- package/dist/{chunk-3T5TLFCQ.mjs → chunk-HEJM46HQ.mjs} +11 -2
- package/dist/chunk-HHLEYA4B.cjs +17 -0
- package/dist/{chunk-F43OG25P.cjs → chunk-I7J5RLGO.cjs} +15 -1
- package/dist/chunk-ICFPTHXM.mjs +97 -0
- package/dist/{chunk-6V5YWI4W.cjs → chunk-IGDYL2IA.cjs} +2 -2
- package/dist/{chunk-TEG6HJVF.mjs → chunk-JL2YW5KX.mjs} +1 -0
- package/dist/{chunk-JVM3DKZE.mjs → chunk-KDO6T6OB.mjs} +1 -1
- package/dist/{chunk-QITSS4TD.cjs → chunk-KWCZKJYU.cjs} +352 -245
- package/dist/{chunk-DCXSIEFE.cjs → chunk-LDEXTX4I.cjs} +51 -37
- package/dist/{chunk-3T7ALZJF.cjs → chunk-LR4KP3I7.cjs} +2 -2
- package/dist/{chunk-VFXE6NWR.mjs → chunk-MGKWYPE3.mjs} +2 -1
- package/dist/{chunk-5TA63JD3.mjs → chunk-MGZVDX4R.mjs} +1 -1
- package/dist/{chunk-6SQZXRJ2.cjs → chunk-MMDKYJ5V.cjs} +7 -7
- package/dist/{chunk-HP2DQGQH.mjs → chunk-MNJDNTGO.mjs} +1 -1
- package/dist/{chunk-5Y2P454O.cjs → chunk-MTBDJ326.cjs} +6 -5
- package/dist/{chunk-XUES6OET.mjs → chunk-MV7NWU23.mjs} +1 -1
- package/dist/{chunk-4DRINDGN.cjs → chunk-MZ4CRSY7.cjs} +254 -125
- package/dist/{chunk-4IHMHFQB.cjs → chunk-NG2EZ6QS.cjs} +28 -1
- package/dist/{chunk-WDD5CTZW.mjs → chunk-NT4W4H52.mjs} +6 -6
- package/dist/{chunk-F7JKVHU2.mjs → chunk-NVOMQLI2.mjs} +15 -1
- package/dist/{chunk-22IWL4YD.cjs → chunk-OCNV4CI2.cjs} +21 -2
- package/dist/{chunk-72KCTHLV.cjs → chunk-PRL7FXG4.cjs} +113 -29
- package/dist/{chunk-YVTS3S3F.cjs → chunk-QOGIZKSO.cjs} +3 -3
- package/dist/{chunk-DB2HSHQA.cjs → chunk-QSUYB3RH.cjs} +14 -14
- package/dist/chunk-QYNZ3CTI.mjs +17 -0
- package/dist/{chunk-724MGMIL.mjs → chunk-R2ZHU37O.mjs} +19 -0
- package/dist/{chunk-YQYTQJZN.mjs → chunk-RLH5AH2M.mjs} +1 -1
- package/dist/{chunk-HM7AGSKU.cjs → chunk-SQ6IWJ3H.cjs} +1 -1
- package/dist/{chunk-V5MQMQ2P.mjs → chunk-T5XFZQCL.mjs} +1 -1
- package/dist/{chunk-Q5UX55YA.cjs → chunk-TNK2TVRS.cjs} +831 -470
- package/dist/{chunk-J7JHVCWA.cjs → chunk-UKZ6AWKZ.cjs} +2 -1
- package/dist/{chunk-V5RTHYJB.cjs → chunk-URN7VFO7.cjs} +91 -22
- package/dist/{chunk-HRPTMX5C.mjs → chunk-VFNAK6A5.mjs} +2 -2
- package/dist/{chunk-VK54PDQ6.mjs → chunk-VRGY3X2I.mjs} +86 -17
- package/dist/chunk-W44X6IC2.cjs +97 -0
- package/dist/{chunk-GTV2ABO7.mjs → chunk-WPB67LE5.mjs} +162 -33
- package/dist/{chunk-UHE5JUKB.mjs → chunk-XCAQTCGK.mjs} +1 -1
- package/dist/{chunk-DGOFR7D5.cjs → chunk-Y6KHPJDB.cjs} +2 -2
- package/dist/{chunk-LPIZMU7D.cjs → chunk-YTNBCXCW.cjs} +4 -4
- package/dist/{chunk-KWFNUODD.mjs → chunk-YVPX5PI5.mjs} +1 -0
- package/dist/{chunk-6R53ZWX2.cjs → chunk-Z3PW3DIR.cjs} +3 -3
- package/dist/{chunk-UHNSY2PQ.mjs → chunk-Z6SOXHAD.mjs} +772 -411
- package/dist/{chunk-5FE5YT2N.mjs → chunk-ZZGQD3LL.mjs} +28 -1
- package/dist/{client-component.d-CDRvRmbU.d.mts → client-component.d-BvQOxSqh.d.mts} +2 -2
- package/dist/{client-component.d-DWRKyAp5.d.ts → client-component.d-DNVSLEPi.d.ts} +2 -2
- package/dist/{client-plugins.d-BNILjfX3.d.mts → client-plugins.d-CE1lVK2R.d.mts} +23 -234
- package/dist/{client-plugins.d-CrKZiNSN.d.ts → client-plugins.d-CNDqcAuf.d.ts} +23 -234
- package/dist/client-plugins.d.mts +5 -3
- package/dist/client-plugins.d.ts +5 -3
- package/dist/client.cjs +6 -6
- package/dist/client.d.mts +10 -8
- package/dist/client.d.ts +10 -8
- package/dist/client.mjs +5 -5
- package/dist/config.d.mts +5 -3
- package/dist/config.d.ts +5 -3
- package/dist/deployment.cjs +4 -2
- package/dist/deployment.d.mts +15 -1
- package/dist/deployment.d.ts +15 -1
- package/dist/deployment.mjs +3 -1
- package/dist/desktop.d.mts +6 -4
- package/dist/desktop.d.ts +6 -4
- package/dist/{devtools-UFQYT3VA.mjs → devtools-2A2GPC7B.mjs} +6 -6
- package/dist/{devtools-RZVT4JVN.cjs → devtools-R27T3BRY.cjs} +7 -7
- package/dist/docs.cjs +9 -9
- package/dist/docs.d.mts +6 -4
- package/dist/docs.d.ts +6 -4
- package/dist/docs.mjs +8 -8
- package/dist/environment/vite.cjs +5 -5
- package/dist/environment/vite.d.mts +1 -1
- package/dist/environment/vite.d.ts +1 -1
- package/dist/environment/vite.mjs +4 -4
- package/dist/{generate-route-types.d-BL2pq6xC.d.ts → generate-route-types.d-B76M5R11.d.ts} +1 -1
- package/dist/{generate-route-types.d-BoVDU8qX.d.mts → generate-route-types.d-CaGMIaNI.d.mts} +1 -1
- package/dist/index.cjs +41 -36
- package/dist/{index.d-Bdm6866n.d.mts → index.d-Bt3kl19W.d.mts} +1 -1
- package/dist/{index.d-Dey5T14f.d.ts → index.d-Cx_-DaKV.d.ts} +1 -1
- package/dist/index.d.mts +25 -22
- package/dist/index.d.ts +25 -22
- package/dist/index.mjs +43 -38
- package/dist/instrumentation.cjs +3 -3
- package/dist/instrumentation.mjs +2 -2
- package/dist/integrations/orm.d.mts +5 -3
- package/dist/integrations/orm.d.ts +5 -3
- package/dist/integrations.d.mts +5 -3
- package/dist/integrations.d.ts +5 -3
- package/dist/internal/app-markdown-runtime.cjs +2 -2
- package/dist/internal/app-markdown-runtime.d.mts +12 -5
- package/dist/internal/app-markdown-runtime.d.ts +12 -5
- package/dist/internal/app-markdown-runtime.mjs +1 -1
- package/dist/internal/build-runtime.cjs +33 -30
- package/dist/internal/build-runtime.d.mts +7 -5
- package/dist/internal/build-runtime.d.ts +7 -5
- package/dist/internal/build-runtime.mjs +32 -29
- package/dist/internal/cli-runtime.cjs +10 -10
- package/dist/internal/cli-runtime.mjs +9 -9
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +31 -36
- package/dist/internal/client-runtime.d.mts +8 -6
- package/dist/internal/client-runtime.d.ts +8 -6
- package/dist/internal/client-runtime.mjs +22 -27
- package/dist/internal/compression-runtime.d.mts +5 -3
- package/dist/internal/compression-runtime.d.ts +5 -3
- package/dist/internal/config-runtime.cjs +8 -8
- package/dist/internal/config-runtime.d.mts +9 -7
- package/dist/internal/config-runtime.d.ts +9 -7
- package/dist/internal/config-runtime.mjs +7 -7
- package/dist/internal/form-actions.cjs +7 -2
- package/dist/internal/form-actions.d.mts +10 -3
- package/dist/internal/form-actions.d.ts +10 -3
- package/dist/internal/form-actions.mjs +8 -3
- package/dist/internal/infra-analytics-runtime.cjs +6 -6
- package/dist/internal/infra-analytics-runtime.mjs +4 -4
- package/dist/internal/islands-boot.cjs +6 -1
- package/dist/internal/islands-boot.mjs +6 -1
- 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-node-env.cjs +4 -2
- package/dist/internal/production-node-env.d.mts +22 -1
- package/dist/internal/production-node-env.d.ts +22 -1
- package/dist/internal/production-node-env.mjs +3 -1
- package/dist/internal/production-runtime.cjs +13 -9
- package/dist/internal/production-runtime.d.mts +21 -16
- package/dist/internal/production-runtime.d.ts +21 -16
- package/dist/internal/production-runtime.mjs +13 -9
- package/dist/internal/server-tree.cjs +2 -2
- package/dist/internal/server-tree.d.mts +0 -5
- package/dist/internal/server-tree.d.ts +0 -5
- package/dist/internal/server-tree.mjs +1 -1
- package/dist/internal/vercel-edge-middleware.cjs +87 -0
- package/dist/internal/vercel-edge-middleware.d.mts +39 -0
- package/dist/internal/vercel-edge-middleware.d.ts +39 -0
- package/dist/internal/vercel-edge-middleware.mjs +87 -0
- package/dist/layers-7P4RLKVX.cjs +20 -0
- package/dist/{layers-T55SA47E.mjs → layers-XQ7VFMWO.mjs} +4 -2
- package/dist/{layers.d-CcS42OGR.d.mts → layers.d-CH0bC4QL.d.mts} +2 -1
- package/dist/{layers.d-CcS42OGR.d.ts → layers.d-CH0bC4QL.d.ts} +2 -1
- package/dist/markdown.d.mts +5 -3
- package/dist/markdown.d.ts +5 -3
- package/dist/middleware.cjs +4 -4
- package/dist/middleware.d.mts +8 -5
- package/dist/middleware.d.ts +8 -5
- package/dist/middleware.mjs +6 -6
- package/dist/mobile.d.mts +4 -4
- package/dist/mobile.d.ts +4 -4
- package/dist/{mount.d-BP0nLYQO.d.mts → mount.d-Bki4pOaJ.d.mts} +1 -1
- package/dist/{mount.d-CkiPky_F.d.ts → mount.d-DjR5aerM.d.ts} +1 -1
- package/dist/{navigation-delegate.d-DchcGzAQ.d.ts → navigation-delegate.d-CtghaSP3.d.ts} +1 -1
- package/dist/{navigation-delegate.d-CdBP-hkZ.d.mts → navigation-delegate.d-VDkziXTK.d.mts} +1 -1
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +8 -6
- package/dist/navigation.d.ts +8 -6
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-55YOZWRA.mjs → nitro-NSTXT7LB.mjs} +2 -2
- package/dist/{nitro-EEX2J3KB.cjs → nitro-Y3LGITW3.cjs} +4 -4
- package/dist/node-module-bundle-LIZ2KMVW.cjs +13 -0
- package/dist/node-module-bundle-VR6NV6AI.mjs +13 -0
- package/dist/plugin.cjs +20 -20
- package/dist/plugin.d.mts +7 -5
- package/dist/plugin.d.ts +7 -5
- package/dist/plugin.mjs +19 -19
- package/dist/{production-runtime.d-Dou_Htas.d.ts → production-runtime.d-BMyyLGBB.d.ts} +3 -57
- package/dist/{production-runtime.d-VwsBzIee.d.mts → production-runtime.d-DMZY3OgV.d.mts} +3 -57
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan.d-LKymStDJ.d.mts → render-plan.d-BSwV8PE4.d.mts} +1 -1
- package/dist/{render-plan.d-D8UakAIk.d.ts → render-plan.d-i9sI4tc9.d.ts} +1 -1
- package/dist/renderer/react/server.cjs +2 -2
- package/dist/renderer/react/server.mjs +1 -1
- package/dist/renderer-client.cjs +5 -5
- package/dist/renderer-client.d.mts +8 -6
- package/dist/renderer-client.d.ts +8 -6
- package/dist/renderer-client.mjs +2 -2
- package/dist/renderer.d.mts +5 -0
- package/dist/renderer.d.ts +5 -0
- package/dist/{request.d-KG-4d2eG.d.mts → request.d-C24FNQ_7.d.mts} +1 -1
- package/dist/{request.d-B928QjWy.d.ts → request.d-Dgln8tuI.d.ts} +1 -1
- package/dist/request.d.mts +6 -4
- package/dist/request.d.ts +6 -4
- package/dist/{route-rendering.d-DoEe_w9t.d.ts → route-rendering.d-CUylZKJA.d.ts} +1 -1
- package/dist/{route-rendering.d-NIHQeb4m.d.mts → route-rendering.d-Ds0BfwQi.d.mts} +1 -1
- package/dist/{router.d-DYnRHQwz.d.ts → router.d-B56rMOFm.d.ts} +1 -1
- package/dist/{router.d-B8PkJSGp.d.mts → router.d-CFPcbqzc.d.mts} +1 -1
- package/dist/{routes.d-uUBZyWoK.d.ts → routes.d-9GFFNioh.d.ts} +1 -1
- package/dist/{routes.d-DgZ_jgGG.d.mts → routes.d-CrEy0lJS.d.mts} +1 -1
- package/dist/routes.d.mts +5 -3
- package/dist/routes.d.ts +5 -3
- package/dist/{rsc-pipeline-7K5H2RPH.cjs → rsc-pipeline-3T7V6OUT.cjs} +10 -9
- package/dist/{rsc-pipeline-4OJ5ZQNZ.mjs → rsc-pipeline-GA4AQWZI.mjs} +9 -8
- package/dist/{runtime-X52Q7JFR.cjs → runtime-REUTNTI5.cjs} +20 -20
- package/dist/{runtime-U7O3HZOZ.mjs → runtime-ZYCKKY7L.mjs} +12 -12
- package/dist/{runtime.d-BxQIzwfy.d.mts → runtime.d-DLRO-ExG.d.mts} +1 -1
- package/dist/{runtime.d-DP7mEkEF.d.ts → runtime.d-H7k9hOQE.d.ts} +1 -1
- package/dist/server-http.d-rAe7lAQc.d.mts +70 -0
- package/dist/server-http.d-rAe7lAQc.d.ts +70 -0
- package/dist/server-plugins.d.mts +6 -4
- package/dist/server-plugins.d.ts +6 -4
- package/dist/server.cjs +46 -44
- package/dist/server.d-C5FFrZAo.d.ts +57 -0
- package/dist/server.d-DgC8xew5.d.mts +57 -0
- package/dist/server.d.mts +13 -11
- package/dist/server.d.ts +13 -11
- package/dist/server.mjs +28 -26
- package/dist/{spa-router.d-DsFDHTsv.d.ts → spa-router.d-Dr7oanhl.d.ts} +2 -2
- package/dist/{spa-router.d-BgHPVMhz.d.mts → spa-router.d-g4CzhEH1.d.mts} +2 -2
- package/dist/testing.d.mts +5 -3
- package/dist/testing.d.ts +5 -3
- package/dist/types.d-xCIhyjOq.d.mts +233 -0
- package/dist/types.d-xCIhyjOq.d.ts +233 -0
- package/dist/{utils.d-zxAVcf_V.d.ts → utils.d-BxxyDEb8.d.ts} +1 -1
- package/dist/{utils.d-BKyKDBR1.d.mts → utils.d-HIla3pD_.d.mts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +20 -20
- package/dist/vite.d.mts +10 -8
- package/dist/vite.d.ts +10 -8
- package/dist/vite.mjs +19 -19
- package/dist/workflows.cjs +2 -2
- package/dist/workflows.d.mts +121 -1
- package/dist/workflows.d.ts +121 -1
- package/dist/workflows.mjs +1 -1
- package/package.json +7 -2
- package/dist/analyzer-KVZGVY5Q.cjs +0 -16
- package/dist/chunk-CLFEQGET.cjs +0 -60
- package/dist/chunk-MK5E44WP.mjs +0 -60
- package/dist/layers-DMRXRL7F.cjs +0 -18
- package/dist/node-module-bundle-7JHPPF6B.mjs +0 -11
- package/dist/node-module-bundle-YJGYBOGK.cjs +0 -11
- package/dist/workflows.d-CRMzQZ3k.d.mts +0 -188
- package/dist/workflows.d-CRMzQZ3k.d.ts +0 -188
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkFVYBEMODcjs = require('./chunk-FVYBEMOD.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkV3UOEWCBcjs = require('./chunk-V3UOEWCB.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk7LK5CTUMcjs = require('./chunk-7LK5CTUM.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -37,19 +37,31 @@ var _url = require('url');
|
|
|
37
37
|
function hasFarmDocsRuntimeAdapter(docs) {
|
|
38
38
|
return Boolean(_optionalChain([docs, 'optionalAccess', _ => _.enabled]) && _optionalChain([docs, 'access', _2 => _2.adapter, 'optionalAccess', _3 => _3.server]) && docs.adapter.react);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function farmDocsAdapterServesGuardedPages(docs) {
|
|
41
|
+
return Boolean(
|
|
42
|
+
hasFarmDocsRuntimeAdapter(docs) && _optionalChain([docs, 'access', _4 => _4.adapter, 'access', _5 => _5.capabilities, 'optionalAccess', _6 => _6.includes, 'call', _7 => _7("guarded-pages")])
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
function assertFarmDocsAdapterServesNoGuardedPages(docs, options, isPathGuarded, runtime = "node") {
|
|
41
46
|
if (!isPathGuarded || !hasFarmDocsRuntimeAdapter(docs)) return;
|
|
42
|
-
const
|
|
47
|
+
const servesGuardedPages = farmDocsAdapterServesGuardedPages(docs);
|
|
48
|
+
if (servesGuardedPages && runtime !== "edge") return;
|
|
49
|
+
const guarded = _chunkFVYBEMODcjs.getFarmDocsRoots.call(void 0, docs).flatMap((root) => _chunkFVYBEMODcjs.discoverFarmDocsPages.call(void 0, _chunkFVYBEMODcjs.resolveFarmDocsContentDir.call(void 0, root, options), root)).filter((page) => isPathGuarded(page.href) || isPathGuarded(_chunkFVYBEMODcjs.getFarmDocsMarkdownPath.call(void 0, page.href))).map((page) => page.href);
|
|
43
50
|
if (guarded.length === 0) return;
|
|
51
|
+
if (servesGuardedPages) {
|
|
52
|
+
throw new Error(
|
|
53
|
+
`Docs pages behind a path guard (${guarded.join(", ")}) would be public on an edge target: the docs adapter ${JSON.stringify(docs.adapter.id)} serves a build-time snapshot of their content in llms-full.txt, search, Markdown, and MCP, where no guard runs. Deploy to a Node or serverless target, or move those pages out of the docs content directory.`
|
|
54
|
+
);
|
|
55
|
+
}
|
|
44
56
|
throw new Error(
|
|
45
|
-
`Docs pages behind a path guard (${guarded.join(", ")}) would be public: the docs adapter ${JSON.stringify(docs.adapter.id)} serves their content in llms-full.txt, search, Markdown, and MCP without running the app's guards.
|
|
57
|
+
`Docs pages behind a path guard (${guarded.join(", ")}) would be public: the docs adapter ${JSON.stringify(docs.adapter.id)} serves their content in llms-full.txt, search, Markdown, and MCP without running the app's guards. Upgrade the adapter to a release that keeps guarded pages off those surfaces (@farming-labs/farmjs declares it as the \`guarded-pages\` capability), move those pages out of the docs content directory, or set docs.adapter = false to use Farm's built-in docs runtime, which keeps guarded pages off anonymous surfaces.`
|
|
46
58
|
);
|
|
47
59
|
}
|
|
48
60
|
async function loadFarmDocsConfigModule(docs, loadModule) {
|
|
49
61
|
const configModule = _chunkSM2SYWARcjs.getFarmDocsAdapterConfigModule.call(void 0, docs);
|
|
50
62
|
if (!configModule) return void 0;
|
|
51
63
|
const loaded = await loadModule(configModule);
|
|
52
|
-
const config = _nullishCoalesce(_optionalChain([loaded, 'optionalAccess',
|
|
64
|
+
const config = _nullishCoalesce(_optionalChain([loaded, 'optionalAccess', _8 => _8.default]), () => ( loaded));
|
|
53
65
|
return config && typeof config === "object" ? config : void 0;
|
|
54
66
|
}
|
|
55
67
|
function getFarmDocsConfigModuleRoot(moduleConfig, entry) {
|
|
@@ -65,7 +77,7 @@ function createFarmDocsAdapterRuntimeConfig(docs, options, moduleConfig) {
|
|
|
65
77
|
...moduleConfig ? { ...getFarmDocsConfigModuleRoot(moduleConfig, docs.entry), ...docs.configOverrides } : _nullishCoalesce(docs.runtimeConfig, () => ( docs.config)),
|
|
66
78
|
entry: docs.config.entry || docs.entry.replace(/^\/+|\/+$/g, "") || "docs",
|
|
67
79
|
docsPath: docs.entry,
|
|
68
|
-
contentDir:
|
|
80
|
+
contentDir: _chunkFVYBEMODcjs.resolveFarmDocsContentDir.call(void 0, docs, options)
|
|
69
81
|
};
|
|
70
82
|
}
|
|
71
83
|
function getFarmDocsAdapterStylesheets(options) {
|
|
@@ -77,7 +89,7 @@ async function compileFarmDocsAdapterEdgeManifest(docs, options) {
|
|
|
77
89
|
if (!hasFarmDocsRuntimeAdapter(docs)) {
|
|
78
90
|
throw new Error("Farm docs adapter requires server and react runtime entrypoints.");
|
|
79
91
|
}
|
|
80
|
-
if (_optionalChain([docs, 'access',
|
|
92
|
+
if (_optionalChain([docs, 'access', _9 => _9.roots, 'optionalAccess', _10 => _10.length])) {
|
|
81
93
|
throw new Error(
|
|
82
94
|
"Several docs roots are not supported on edge deployments yet; they need a Node.js deployment target."
|
|
83
95
|
);
|
|
@@ -132,7 +144,7 @@ async function listFarmDocsAdapterPages(docs, options) {
|
|
|
132
144
|
if (typeof serverModule.listFarmDocsPages !== "function") return null;
|
|
133
145
|
const listPages = serverModule.listFarmDocsPages;
|
|
134
146
|
const pages = (await Promise.all(
|
|
135
|
-
|
|
147
|
+
_chunkFVYBEMODcjs.getFarmDocsRoots.call(void 0, docs).map(
|
|
136
148
|
(root) => listPages(createFarmDocsAdapterRuntimeConfig(root, options), { rootDir: options.root })
|
|
137
149
|
)
|
|
138
150
|
)).flat();
|
|
@@ -151,7 +163,7 @@ async function createFarmDocsAdapterHandler(docs, options) {
|
|
|
151
163
|
const serverModule = await options.loadModule(
|
|
152
164
|
docs.adapter.server
|
|
153
165
|
);
|
|
154
|
-
const multiRoot = Boolean(_optionalChain([docs, 'access',
|
|
166
|
+
const multiRoot = Boolean(_optionalChain([docs, 'access', _11 => _11.roots, 'optionalAccess', _12 => _12.length]));
|
|
155
167
|
const handlerExport = multiRoot ? "createFarmDocsMultiRuntimeHandler" : "createFarmDocsRuntimeHandler";
|
|
156
168
|
if (typeof serverModule[handlerExport] !== "function") {
|
|
157
169
|
const adapterId = JSON.stringify(docs.adapter.id);
|
|
@@ -167,11 +179,12 @@ async function createFarmDocsAdapterHandler(docs, options) {
|
|
|
167
179
|
stylesheets: getFarmDocsAdapterStylesheets(options),
|
|
168
180
|
resolveLayoutFonts: options.resolveLayoutFonts,
|
|
169
181
|
loadReactModule: () => options.loadModule(docs.adapter.react),
|
|
170
|
-
...options.registerMCPServer ? { registerMCPServer: options.registerMCPServer } : {}
|
|
182
|
+
...options.registerMCPServer ? { registerMCPServer: options.registerMCPServer } : {},
|
|
183
|
+
...options.isPathGuarded && farmDocsAdapterServesGuardedPages(docs) ? { isPathGuarded: options.isPathGuarded } : {}
|
|
171
184
|
};
|
|
172
185
|
if (multiRoot) {
|
|
173
186
|
return serverModule.createFarmDocsMultiRuntimeHandler(
|
|
174
|
-
|
|
187
|
+
_chunkFVYBEMODcjs.getFarmDocsRoots.call(void 0, docs).map(
|
|
175
188
|
(root) => createFarmDocsAdapterRuntimeConfig(root, options, moduleConfig)
|
|
176
189
|
),
|
|
177
190
|
handlerOptions
|
|
@@ -215,7 +228,7 @@ function omitHeadBody(response) {
|
|
|
215
228
|
});
|
|
216
229
|
}
|
|
217
230
|
function normalizeAction(value) {
|
|
218
|
-
return _optionalChain([value, 'optionalAccess',
|
|
231
|
+
return _optionalChain([value, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14(), 'access', _15 => _15.toLowerCase, 'call', _16 => _16(), 'access', _17 => _17.replace, 'call', _18 => _18(/_/g, "-")]) || void 0;
|
|
219
232
|
}
|
|
220
233
|
function getDocsTitle(docs) {
|
|
221
234
|
return typeof docs.config.nav === "object" && docs.config.nav && "title" in docs.config.nav ? String(docs.config.nav.title || "Documentation") : "Documentation";
|
|
@@ -314,25 +327,25 @@ function getDocsAPIFormat(request) {
|
|
|
314
327
|
return normalizeAction(url.searchParams.get("format") || url.searchParams.get("type")) || getDocsAPIPathTarget(request).format;
|
|
315
328
|
}
|
|
316
329
|
function getDocsDescription(docs) {
|
|
317
|
-
return _optionalChain([docs, 'access',
|
|
330
|
+
return _optionalChain([docs, 'access', _19 => _19.config, 'access', _20 => _20.metadata, 'optionalAccess', _21 => _21.description]);
|
|
318
331
|
}
|
|
319
332
|
function getLoadedDocsPages(context) {
|
|
320
|
-
return
|
|
333
|
+
return _chunkFVYBEMODcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs).filter((page) => !context.isPathGuarded(page.href)).map((page) => _chunkFVYBEMODcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, page.slug)).filter((page) => Boolean(page));
|
|
321
334
|
}
|
|
322
335
|
function toDocsSourcePage(page, basePath) {
|
|
323
336
|
return {
|
|
324
|
-
...
|
|
337
|
+
..._chunkFVYBEMODcjs.toFarmDocsMarkdownPage.call(void 0, page, basePath),
|
|
325
338
|
sourcePath: page.sourcePath
|
|
326
339
|
};
|
|
327
340
|
}
|
|
328
341
|
function toDocsLlmsPage(page) {
|
|
329
|
-
return
|
|
342
|
+
return _chunkFVYBEMODcjs.toFarmDocsMarkdownPage.call(void 0, page);
|
|
330
343
|
}
|
|
331
344
|
function getDocsLlmsOptions(context, request) {
|
|
332
345
|
const configured = isRecord(context.docs.config.llmsTxt) ? context.docs.config.llmsTxt : {};
|
|
333
346
|
return {
|
|
334
347
|
enabled: true,
|
|
335
|
-
baseUrl:
|
|
348
|
+
baseUrl: _chunkFVYBEMODcjs.getFarmDocsSiteUrl.call(void 0, request, context.basePath),
|
|
336
349
|
siteTitle: getDocsTitle(context.docs),
|
|
337
350
|
siteDescription: getDocsDescription(context.docs),
|
|
338
351
|
...configured
|
|
@@ -373,7 +386,7 @@ function getDocsDiscoveryOptions(context, request) {
|
|
|
373
386
|
};
|
|
374
387
|
}
|
|
375
388
|
function buildSitemapManifest(context, request) {
|
|
376
|
-
return
|
|
389
|
+
return _chunkFVYBEMODcjs.buildFarmDocsSitemapManifest.call(void 0,
|
|
377
390
|
getLoadedDocsPages(context),
|
|
378
391
|
context.docs,
|
|
379
392
|
new URL(request.url).origin,
|
|
@@ -412,7 +425,7 @@ function renderAgentsDocument(context, request) {
|
|
|
412
425
|
function buildAgentSpec(context, request) {
|
|
413
426
|
const url = new URL(request.url);
|
|
414
427
|
const origin = url.origin;
|
|
415
|
-
const pages =
|
|
428
|
+
const pages = _chunkFVYBEMODcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs).filter(
|
|
416
429
|
(page) => !context.isPathGuarded(page.href)
|
|
417
430
|
);
|
|
418
431
|
const spec = _chunkV3UOEWCBcjs.docsEngine.call(void 0, ).buildDocsAgentDiscoverySpec(getDocsDiscoveryOptions(context, request));
|
|
@@ -428,7 +441,7 @@ function buildAgentSpec(context, request) {
|
|
|
428
441
|
},
|
|
429
442
|
entry: context.docs.entry,
|
|
430
443
|
routes: {
|
|
431
|
-
docs: `${origin}${
|
|
444
|
+
docs: `${origin}${_chunkFVYBEMODcjs.getFarmDocsPublicEntry.call(void 0, context.docs, context.basePath)}`,
|
|
432
445
|
config: `${origin}/api/docs?format=config`,
|
|
433
446
|
search: `${origin}/api/docs?query=<term>`,
|
|
434
447
|
markdown: `${origin}/api/docs/<slug>.md`,
|
|
@@ -501,7 +514,7 @@ function buildPublicConfig(context) {
|
|
|
501
514
|
};
|
|
502
515
|
}
|
|
503
516
|
function buildDiagnostics(context) {
|
|
504
|
-
const pages =
|
|
517
|
+
const pages = _chunkFVYBEMODcjs.discoverFarmDocsPages.call(void 0, context.contentDir, context.docs);
|
|
505
518
|
const diagnostics = _chunkV3UOEWCBcjs.docsEngine.call(void 0, ).buildDocsDiagnostics(context.docs.config, {
|
|
506
519
|
entry: context.docs.entry,
|
|
507
520
|
mcp: {
|
|
@@ -551,19 +564,19 @@ async function searchDocs(context, request, query) {
|
|
|
551
564
|
const page = sourcePageByUrl.get(pageUrl);
|
|
552
565
|
return {
|
|
553
566
|
...result,
|
|
554
|
-
title: _optionalChain([page, 'optionalAccess',
|
|
555
|
-
href: _optionalChain([page, 'optionalAccess',
|
|
556
|
-
description: result.description || _optionalChain([page, 'optionalAccess',
|
|
567
|
+
title: _optionalChain([page, 'optionalAccess', _22 => _22.title]) || result.content,
|
|
568
|
+
href: _optionalChain([page, 'optionalAccess', _23 => _23.url]) || pageUrl,
|
|
569
|
+
description: result.description || _optionalChain([page, 'optionalAccess', _24 => _24.description])
|
|
557
570
|
};
|
|
558
571
|
});
|
|
559
572
|
}
|
|
560
573
|
async function resolveAPIContext(options) {
|
|
561
574
|
await _chunkV3UOEWCBcjs.loadFarmDocsEngine.call(void 0, );
|
|
562
575
|
const runtimeConfig = globalThis.__FARM_DOCS_RUNTIME_CONFIG__;
|
|
563
|
-
const root = options.rootDir || options.root || _optionalChain([runtimeConfig, 'optionalAccess',
|
|
564
|
-
const srcDir = options.srcDir || _optionalChain([runtimeConfig, 'optionalAccess',
|
|
576
|
+
const root = options.rootDir || options.root || _optionalChain([runtimeConfig, 'optionalAccess', _25 => _25.root]) || process.cwd();
|
|
577
|
+
const srcDir = options.srcDir || _optionalChain([runtimeConfig, 'optionalAccess', _26 => _26.srcDir]) || "src";
|
|
565
578
|
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;
|
|
566
|
-
const docsInput = _nullishCoalesce(_nullishCoalesce(options.docs, () => ( (canUseRuntimeDocs ? _optionalChain([runtimeConfig, 'optionalAccess',
|
|
579
|
+
const docsInput = _nullishCoalesce(_nullishCoalesce(options.docs, () => ( (canUseRuntimeDocs ? _optionalChain([runtimeConfig, 'optionalAccess', _27 => _27.docs]) : void 0))), () => ( {
|
|
567
580
|
enabled: true,
|
|
568
581
|
entry: options.entry,
|
|
569
582
|
docsPath: options.docsPath,
|
|
@@ -571,16 +584,16 @@ async function resolveAPIContext(options) {
|
|
|
571
584
|
config: options.config,
|
|
572
585
|
configPath: options.configPath
|
|
573
586
|
}));
|
|
574
|
-
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await
|
|
575
|
-
const guardedPaths = new Set(_nullishCoalesce(_optionalChain([runtimeConfig, 'optionalAccess',
|
|
587
|
+
const docs = isResolvedDocsConfig(docsInput) ? docsInput : await _chunk7LK5CTUMcjs.resolveDocsConfig.call(void 0, docsInput, { root, srcDir });
|
|
588
|
+
const guardedPaths = new Set(_nullishCoalesce(_optionalChain([runtimeConfig, 'optionalAccess', _28 => _28.guardedPaths]), () => ( [])));
|
|
576
589
|
return {
|
|
577
590
|
root,
|
|
578
591
|
srcDir,
|
|
579
592
|
docs,
|
|
580
|
-
contentDir:
|
|
593
|
+
contentDir: _chunkFVYBEMODcjs.resolveFarmDocsContentDir.call(void 0, docs, { root, srcDir }),
|
|
581
594
|
diagnostics: options.diagnostics === true,
|
|
582
595
|
isPathGuarded: _nullishCoalesce(options.isPathGuarded, () => ( ((pathname) => guardedPaths.has(pathname)))),
|
|
583
|
-
basePath: _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, _nullishCoalesce(options.basePath, () => ( _optionalChain([runtimeConfig, 'optionalAccess',
|
|
596
|
+
basePath: _chunkD22BUQKWcjs.normalizeFarmBasePath.call(void 0, _nullishCoalesce(options.basePath, () => ( _optionalChain([runtimeConfig, 'optionalAccess', _29 => _29.basePath]))))
|
|
584
597
|
};
|
|
585
598
|
}
|
|
586
599
|
async function handleDocsAPIGet(request, context) {
|
|
@@ -625,22 +638,22 @@ async function handleDocsAPIGet(request, context) {
|
|
|
625
638
|
}
|
|
626
639
|
if (format === "robots") {
|
|
627
640
|
return text(
|
|
628
|
-
|
|
641
|
+
_chunkFVYBEMODcjs.renderFarmDocsRobotsTxt.call(void 0, context.docs, new URL(request.url).origin, context.basePath),
|
|
629
642
|
"text/plain; charset=utf-8"
|
|
630
643
|
);
|
|
631
644
|
}
|
|
632
645
|
if (format === "markdown" || url.pathname.endsWith(".md")) {
|
|
633
646
|
const pathParam = url.searchParams.get("path") || url.searchParams.get("slug");
|
|
634
647
|
const slug = normalizeDocsApiSlug(_nullishCoalesce(_nullishCoalesce(pathParam, () => ( pathTarget.slug)), () => ( "")), context.docs);
|
|
635
|
-
const page =
|
|
648
|
+
const page = _chunkFVYBEMODcjs.loadFarmDocsPage.call(void 0, context.contentDir, context.docs, slug);
|
|
636
649
|
if (!page || context.isPathGuarded(page.href)) {
|
|
637
650
|
return text("Docs page not found\n", "text/plain; charset=utf-8", { status: 404 });
|
|
638
651
|
}
|
|
639
652
|
return text(
|
|
640
|
-
_chunkV3UOEWCBcjs.docsEngine.call(void 0, ).renderDocsMarkdownDocument(
|
|
653
|
+
_chunkV3UOEWCBcjs.docsEngine.call(void 0, ).renderDocsMarkdownDocument(_chunkFVYBEMODcjs.toFarmDocsMarkdownPage.call(void 0, page, context.basePath), {
|
|
641
654
|
origin: new URL(request.url).origin,
|
|
642
655
|
llms: getDocsLlmsOptions(context, request),
|
|
643
|
-
sitemap:
|
|
656
|
+
sitemap: _chunkFVYBEMODcjs.toFarmDocsPublicSitemapConfig.call(void 0, context.docs.config.sitemap, context.basePath)
|
|
644
657
|
}),
|
|
645
658
|
"text/markdown; charset=utf-8"
|
|
646
659
|
);
|
|
@@ -712,4 +725,5 @@ function createFarmDocsAPIHandler(options = {}, cloudIntegration) {
|
|
|
712
725
|
|
|
713
726
|
|
|
714
727
|
|
|
715
|
-
|
|
728
|
+
|
|
729
|
+
exports.hasFarmDocsRuntimeAdapter = hasFarmDocsRuntimeAdapter; exports.farmDocsAdapterServesGuardedPages = farmDocsAdapterServesGuardedPages; exports.assertFarmDocsAdapterServesNoGuardedPages = assertFarmDocsAdapterServesNoGuardedPages; exports.getFarmDocsConfigModuleRoot = getFarmDocsConfigModuleRoot; exports.compileFarmDocsAdapterEdgeManifest = compileFarmDocsAdapterEdgeManifest; exports.listFarmDocsAdapterPages = listFarmDocsAdapterPages; exports.createFarmDocsAdapterHandler = createFarmDocsAdapterHandler; exports.isFarmDocsAPIRequest = isFarmDocsAPIRequest; exports.createDocsAPI = createDocsAPI; exports.createFarmDocsAPIHandler = createFarmDocsAPIHandler;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
|
-
var
|
|
3
|
+
var _chunk3EEINK7Gcjs = require('./chunk-3EEINK7G.cjs');
|
|
4
4
|
|
|
5
5
|
// src/app-markdown.ts
|
|
6
6
|
var _promises = require('fs/promises');
|
|
@@ -8,7 +8,7 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
|
8
8
|
var _url = require('url');
|
|
9
9
|
async function createFarmMarkdownRouteModuleFromFile(filePath, options = {}) {
|
|
10
10
|
const source = await _promises.readFile.call(void 0, filePath, "utf8");
|
|
11
|
-
return
|
|
11
|
+
return _chunk3EEINK7Gcjs.createFarmMarkdownRouteModule.call(void 0, {
|
|
12
12
|
source,
|
|
13
13
|
filePath,
|
|
14
14
|
components: options.components,
|
|
@@ -345,7 +345,7 @@ async function loadWorkflowModule(filePath, root) {
|
|
|
345
345
|
outDir,
|
|
346
346
|
`workflow-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`
|
|
347
347
|
);
|
|
348
|
-
const { bundleNodeModule } = await import("./node-module-bundle-
|
|
348
|
+
const { bundleNodeModule } = await import("./node-module-bundle-VR6NV6AI.mjs");
|
|
349
349
|
await bundleNodeModule({
|
|
350
350
|
root,
|
|
351
351
|
entry: filePath,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQSUYB3RHcjs = require('./chunk-QSUYB3RH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk437QZIC2cjs = require('./chunk-437QZIC2.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
10
10
|
|
|
11
11
|
// src/navigation.ts
|
|
12
12
|
function useRouter2() {
|
|
13
|
-
const router =
|
|
13
|
+
const router = _chunkQSUYB3RHcjs.useRouter.call(void 0, );
|
|
14
14
|
return {
|
|
15
15
|
push: router.push,
|
|
16
16
|
replace: router.replace,
|
|
@@ -18,19 +18,19 @@ function useRouter2() {
|
|
|
18
18
|
forward: router.forward,
|
|
19
19
|
refresh() {
|
|
20
20
|
if (typeof window === "undefined") return Promise.resolve();
|
|
21
|
-
return
|
|
21
|
+
return _chunk437QZIC2cjs.getRouter.call(void 0, ).refresh();
|
|
22
22
|
},
|
|
23
23
|
prefetch(href) {
|
|
24
24
|
if (typeof window === "undefined") return Promise.resolve();
|
|
25
|
-
return
|
|
25
|
+
return _chunk437QZIC2cjs.getRouter.call(void 0, ).prefetch(_chunkD22BUQKWcjs.applyFarmBasePath.call(void 0, href));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
function usePathname() {
|
|
30
|
-
return
|
|
30
|
+
return _chunkQSUYB3RHcjs.useRouter.call(void 0, ).pathname;
|
|
31
31
|
}
|
|
32
32
|
function useSearchParams() {
|
|
33
|
-
return
|
|
33
|
+
return _chunkQSUYB3RHcjs.useRouter.call(void 0, ).searchParams;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkASYOWPSRcjs = require('./chunk-ASYOWPSR.cjs');
|
|
6
6
|
|
|
7
7
|
// src/layers.ts
|
|
8
8
|
var _fs = require('fs');
|
|
@@ -157,8 +157,8 @@ function createFarmConfigResolutionPlugin(options) {
|
|
|
157
157
|
kind: extraOptions.kind,
|
|
158
158
|
skipSelf: true
|
|
159
159
|
});
|
|
160
|
-
if (!_optionalChain([resolved, 'optionalAccess', _ => _.id]) || !
|
|
161
|
-
return await _asyncNullishCoalesce(await
|
|
160
|
+
if (!_optionalChain([resolved, 'optionalAccess', _ => _.id]) || !_chunkASYOWPSRcjs.isDeclarationFile.call(void 0, resolved.id)) return _optionalChain([resolved, 'optionalAccess', _2 => _2.id]);
|
|
161
|
+
return await _asyncNullishCoalesce(await _chunkASYOWPSRcjs.resolvePackageWithoutTsconfig.call(void 0, specifier, importer, extraOptions.kind), async () => ( void 0));
|
|
162
162
|
};
|
|
163
163
|
if (source === FARM_CORE_PACKAGE && extraOptions.kind === "import-statement") {
|
|
164
164
|
let configEntryCheck = configEntryChecks.get(importer);
|
|
@@ -191,7 +191,7 @@ async function loadFarmConfigFile(configPath, options) {
|
|
|
191
191
|
configCacheDir,
|
|
192
192
|
`farm-config-${Date.now()}-${Math.random().toString(36).slice(2)}.mjs`
|
|
193
193
|
);
|
|
194
|
-
await
|
|
194
|
+
await _chunkASYOWPSRcjs.bundleNodeModule.call(void 0, {
|
|
195
195
|
root: _path2.default.resolve(options.root),
|
|
196
196
|
entry: _path2.default.resolve(configPath),
|
|
197
197
|
outfile: modulePath,
|
|
@@ -418,4 +418,5 @@ function normalizeRealPath(value) {
|
|
|
418
418
|
|
|
419
419
|
|
|
420
420
|
|
|
421
|
-
|
|
421
|
+
|
|
422
|
+
exports.resolveFarmLayers = resolveFarmLayers; exports.getFarmSourceRoots = getFarmSourceRoots; exports.getFarmAppDirectories = getFarmAppDirectories; exports.getFarmLayerAliases = getFarmLayerAliases; exports.createFarmConfigResolutionPlugin = createFarmConfigResolutionPlugin; exports.loadFarmConfigFile = loadFarmConfigFile; exports.findFarmConfigFile = findFarmConfigFile;
|