@farm.js/core 0.1.50 → 0.1.51-beta.1
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/README.md +163 -3
- package/dist/{agent-mcp-CIMH324y.d.mts → agent-mcp.d-BPzpKBHQ.d.mts} +1 -1
- package/dist/{agent-mcp-9BMbRgg_.d.ts → agent-mcp.d-ZuuNgrkQ.d.ts} +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-CN7C74WX.cjs → analyzer-AZULAOPL.cjs} +2 -2
- package/dist/{analyzer-DDW34OMC.mjs → analyzer-V74FTD2F.mjs} +1 -1
- package/dist/api/client.d.mts +4 -4
- package/dist/api/client.d.ts +4 -4
- package/dist/api/route-manager.cjs +5 -5
- package/dist/api/route-manager.d.mts +19 -19
- package/dist/api/route-manager.d.ts +19 -19
- package/dist/api/route-manager.mjs +4 -4
- 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 +7 -7
- package/dist/api.d.mts +21 -21
- package/dist/api.d.ts +21 -21
- package/dist/api.mjs +6 -6
- package/dist/{app-manifest-D0kaXdwu.d.ts → app-manifest.d-BJDcZn3W.d.mts} +1 -1
- package/dist/{app-manifest-CQDJOKL2.d.mts → app-manifest.d-HWhqbP2X.d.ts} +1 -1
- package/dist/app-markdown.d.mts +14 -14
- package/dist/app-markdown.d.ts +14 -14
- package/dist/{app-BWibTHVT.d.ts → app.d-B5EWdob-.d.ts} +12 -10
- package/dist/{app-DVJ13FPA.d.mts → app.d-DOGW1KI8.d.mts} +12 -10
- package/dist/base-path.d-BOUV5ozD.d.mts +10 -0
- package/dist/base-path.d-BOUV5ozD.d.ts +10 -0
- package/dist/{chunk-B5S2JS6M.cjs → chunk-2756SHCI.cjs} +372 -305
- package/dist/{chunk-RWT2BTJT.cjs → chunk-2IAPKPEB.cjs} +6 -6
- package/dist/{chunk-2G63BIRL.mjs → chunk-2KVDHNQS.mjs} +8 -11
- package/dist/{chunk-NJVFPJ2Y.cjs → chunk-3OWVWZ6R.cjs} +28 -2
- package/dist/{chunk-WVBUXNBX.mjs → chunk-5A5GAZ75.mjs} +296 -106
- package/dist/{chunk-GERUXONA.cjs → chunk-5A77OEIG.cjs} +4 -1
- package/dist/{chunk-4HBKBHVP.mjs → chunk-5ENW27SL.mjs} +1 -1
- package/dist/{chunk-FACTMUPI.cjs → chunk-5IONBVJY.cjs} +33 -22
- package/dist/{chunk-X2EL3BLH.cjs → chunk-5N7QAGEA.cjs} +36 -9
- package/dist/{chunk-DGOLAZLV.cjs → chunk-65Y5SIBH.cjs} +1 -1
- package/dist/{chunk-MTB57GOK.mjs → chunk-724WT3NI.mjs} +4 -2
- package/dist/{chunk-C73RIAEF.mjs → chunk-72NBDVWQ.mjs} +18 -7
- package/dist/{chunk-VCKGOXFI.cjs → chunk-76GHW3WI.cjs} +7 -1
- package/dist/{chunk-ZIBIE7AH.mjs → chunk-7UPCJDB5.mjs} +7 -1
- package/dist/{chunk-CPXDDWGL.mjs → chunk-AER5I65K.mjs} +1 -1
- package/dist/{chunk-RHOR2J6V.cjs → chunk-AGR7VJH2.cjs} +1 -1
- package/dist/{chunk-WB6XES4V.mjs → chunk-ALEUMLJN.mjs} +34 -5
- package/dist/{chunk-OD6WM3I7.mjs → chunk-AV26KHTG.mjs} +1 -1
- package/dist/{chunk-L6QDME5Z.cjs → chunk-B3GZAQSC.cjs} +3 -3
- package/dist/{chunk-ZLOQQ2UF.mjs → chunk-BSEKNTMS.mjs} +107 -40
- package/dist/{chunk-WAPQWAE6.cjs → chunk-CECUDGXQ.cjs} +9 -8
- package/dist/chunk-CKPTIEDX.cjs +12 -0
- package/dist/{chunk-IUQLRTTO.mjs → chunk-CO6UYM2D.mjs} +14 -1
- package/dist/{chunk-SHJJM6OG.mjs → chunk-CZ35L6PL.mjs} +9 -2
- package/dist/{chunk-EQMTJBB7.cjs → chunk-DZZHTMWM.cjs} +35 -6
- package/dist/{chunk-3ATXWZPH.cjs → chunk-E36C43IX.cjs} +13 -16
- package/dist/{chunk-J2ZEVDEK.cjs → chunk-EHB77D5U.cjs} +3 -3
- package/dist/{chunk-KO2NWUKN.mjs → chunk-EIMK7D2D.mjs} +33 -6
- package/dist/{chunk-CY7H5KS4.cjs → chunk-EKJYE4Y7.cjs} +2 -2
- package/dist/{chunk-2VCC3GVC.mjs → chunk-EOSFVNXZ.mjs} +1 -1
- package/dist/{chunk-IWJKJDNW.mjs → chunk-EWC76P5D.mjs} +53 -32
- package/dist/{chunk-WQGRD5BJ.cjs → chunk-EX6ZSN5P.cjs} +1 -16
- package/dist/{chunk-6QA2SXVH.cjs → chunk-FK25QSVC.cjs} +2 -1
- package/dist/{chunk-BW6SCVYX.mjs → chunk-FSQMN2MQ.mjs} +1 -0
- package/dist/{chunk-2H3FJYY6.mjs → chunk-FSXSQQTV.mjs} +3 -2
- package/dist/chunk-GNZIAJGB.mjs +358 -0
- package/dist/{chunk-TXK4D46O.mjs → chunk-H3ASZDT7.mjs} +21 -1
- package/dist/{chunk-B6PREBN6.cjs → chunk-HASX6DC7.cjs} +8 -8
- package/dist/{chunk-76R5GJER.mjs → chunk-I3EFXUAR.mjs} +60 -13
- package/dist/{chunk-HYN3LLG7.cjs → chunk-IFBINMI4.cjs} +3 -3
- package/dist/{chunk-CBJKDB6F.mjs → chunk-IRSS4HS4.mjs} +1 -1
- package/dist/{chunk-4T25YCZ5.cjs → chunk-JVBNKWLV.cjs} +81 -34
- package/dist/{chunk-VOZ5DI7D.mjs → chunk-JWI5PUO2.mjs} +6 -2
- package/dist/{chunk-YAXOEAND.cjs → chunk-KHXAJ2KA.cjs} +6 -6
- package/dist/{chunk-2DEPNLXK.mjs → chunk-KMB5BMFX.mjs} +122 -12
- package/dist/{chunk-M7LKA632.mjs → chunk-KU7MBLDZ.mjs} +1 -1
- package/dist/{chunk-WXHDVXJE.mjs → chunk-KY32FWK7.mjs} +2 -2
- package/dist/{chunk-EQWWOQTK.cjs → chunk-LEIXUFJN.cjs} +6 -2
- package/dist/{chunk-2GLQSIZD.mjs → chunk-LMFJCXDD.mjs} +1 -1
- package/dist/{chunk-IXSMFKZ2.cjs → chunk-LNM57D3H.cjs} +4 -4
- package/dist/{chunk-5V4KZOZO.mjs → chunk-LZ4SB57H.mjs} +2 -2
- package/dist/chunk-N4AQNEXR.cjs +17 -0
- package/dist/{chunk-J37KTQIA.cjs → chunk-NK2VWS7P.cjs} +52 -3
- package/dist/{chunk-X3HOVNHI.mjs → chunk-NN3MOPSI.mjs} +7 -7
- package/dist/{chunk-JZMZKABS.cjs → chunk-NWUHS6GV.cjs} +3 -2
- package/dist/{chunk-XLLVWLWO.mjs → chunk-PIHKO25G.mjs} +1 -1
- package/dist/chunk-PIUTGRDI.cjs +358 -0
- package/dist/{chunk-JJOWY3XD.mjs → chunk-QAIAFCRZ.mjs} +8 -6
- package/dist/{chunk-Q3UU2KXC.mjs → chunk-QMDU6QHN.mjs} +4 -1
- package/dist/{chunk-75WWOZ5C.mjs → chunk-QOSDWGKT.mjs} +1 -1
- package/dist/{chunk-GOOK2J2W.cjs → chunk-RMPNYUGT.cjs} +9 -7
- package/dist/{chunk-HWCHIBJZ.mjs → chunk-SCRC5AMM.mjs} +5 -5
- package/dist/{chunk-PXEXOQ5R.mjs → chunk-SHS6KXOZ.mjs} +1 -1
- package/dist/{chunk-ETF5C6HR.cjs → chunk-SJ23LJ3N.cjs} +3 -3
- package/dist/{chunk-JHXJBNLY.cjs → chunk-SUCDVKUB.cjs} +21 -1
- package/dist/{chunk-7ONZDKVY.mjs → chunk-T4EW7AAD.mjs} +2 -2
- package/dist/{chunk-F5LERVY3.cjs → chunk-TT66CP3P.cjs} +13 -13
- package/dist/{chunk-IUBDMDZZ.cjs → chunk-UQHIWZZ6.cjs} +15 -8
- package/dist/{chunk-LYWAGXXW.cjs → chunk-VITZRYW3.cjs} +131 -21
- package/dist/{chunk-XN2MB4QZ.cjs → chunk-VQJYGZNX.cjs} +4 -4
- package/dist/{chunk-KGP76FSV.mjs → chunk-VS7EHLLW.mjs} +1 -1
- package/dist/{chunk-5PKDHKQP.cjs → chunk-WFVSAT7Y.cjs} +6 -4
- package/dist/{chunk-UY6HS5PF.cjs → chunk-X2AMN2WV.cjs} +10 -10
- package/dist/{chunk-474FO3UE.cjs → chunk-X2M4XN4V.cjs} +213 -192
- package/dist/chunk-X3EFRVXY.mjs +12 -0
- package/dist/{chunk-UCQ52TJY.mjs → chunk-X3JNB2TB.mjs} +1 -1
- package/dist/{chunk-IQXGHGZF.cjs → chunk-XB24LZWI.cjs} +5 -5
- package/dist/{chunk-BNMHXVLL.mjs → chunk-XMHERKSE.mjs} +0 -15
- package/dist/{chunk-CGCJ2TJU.cjs → chunk-XPMC4E2G.cjs} +3 -3
- package/dist/{chunk-KZH6YLND.cjs → chunk-XY4DYGSU.cjs} +603 -413
- package/dist/{chunk-C7425KDG.cjs → chunk-XYL4HSVC.cjs} +2 -2
- package/dist/{chunk-HHFMECFO.mjs → chunk-Y2G5SJFB.mjs} +2 -1
- package/dist/{chunk-2SVJGOAX.mjs → chunk-Y3N5BFRJ.mjs} +3 -3
- package/dist/{chunk-Z5MZDFX4.cjs → chunk-YIHRZBD7.cjs} +14 -1
- package/dist/chunk-Z5A6CNV2.mjs +60 -0
- package/dist/chunk-Z64V4WZI.mjs +17 -0
- package/dist/{chunk-E2BMCNMJ.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-BPfltM5m.d.ts → client-plugins.d-C0n8Yhh-.d.ts} +60 -14
- package/dist/{client-plugins-D4RO59f0.d.mts → client-plugins.d-C_3CdALC.d.mts} +60 -14
- package/dist/client-plugins.d.mts +13 -13
- package/dist/client-plugins.d.ts +13 -13
- package/dist/client.cjs +5 -4
- package/dist/client.d.mts +24 -24
- package/dist/client.d.ts +24 -24
- package/dist/client.mjs +4 -3
- package/dist/config.d.mts +13 -13
- package/dist/config.d.ts +13 -13
- package/dist/cron.cjs +4 -4
- package/dist/cron.mjs +3 -3
- 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-STG7HPRV.mjs → devtools-BU5IT2PD.mjs} +8 -8
- package/dist/{devtools-N5XTOECL.cjs → devtools-KJFUE5FO.cjs} +10 -10
- package/dist/docs.cjs +14 -12
- package/dist/docs.d.mts +23 -15
- package/dist/docs.d.ts +23 -15
- package/dist/docs.mjs +13 -11
- 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 +48 -44
- package/dist/{index-C-N3Pwg-.d.ts → index.d-B6M_8kmo.d.ts} +2 -2
- 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-k8o8eUOd.d.mts → index.d-CsGxS-hZ.d.mts} +2 -2
- package/dist/index.d.mts +42 -42
- package/dist/index.d.ts +42 -42
- package/dist/index.mjs +47 -43
- 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 +36 -35
- package/dist/internal/build-runtime.d.mts +16 -16
- package/dist/internal/build-runtime.d.ts +16 -16
- package/dist/internal/build-runtime.mjs +35 -34
- package/dist/internal/cli-runtime.cjs +18 -18
- package/dist/internal/cli-runtime.mjs +17 -17
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +4 -2
- package/dist/internal/client-runtime.d.mts +21 -21
- package/dist/internal/client-runtime.d.ts +21 -21
- package/dist/internal/client-runtime.mjs +3 -1
- package/dist/internal/compression-runtime.d.mts +13 -13
- package/dist/internal/compression-runtime.d.ts +13 -13
- package/dist/internal/config-runtime.cjs +10 -10
- package/dist/internal/config-runtime.d.mts +18 -18
- package/dist/internal/config-runtime.d.ts +18 -18
- package/dist/internal/config-runtime.mjs +9 -9
- package/dist/internal/form-actions.cjs +4 -3
- package/dist/internal/form-actions.d.mts +1 -1
- package/dist/internal/form-actions.d.ts +1 -1
- package/dist/internal/form-actions.mjs +3 -2
- 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.cjs +56 -0
- package/dist/internal/islands-runtime.d.mts +1 -1
- package/dist/internal/islands-runtime.d.ts +1 -1
- package/dist/internal/islands-runtime.mjs +57 -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 +15 -8
- package/dist/internal/production-runtime.d.mts +46 -30
- package/dist/internal/production-runtime.d.ts +46 -30
- package/dist/internal/production-runtime.mjs +14 -7
- package/dist/internal/server-fn-transform.cjs +13 -0
- package/dist/internal/server-fn-transform.d.mts +24 -0
- package/dist/internal/server-fn-transform.d.ts +24 -0
- package/dist/internal/server-fn-transform.mjs +13 -0
- 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 +8 -8
- package/dist/middleware.d.mts +15 -15
- package/dist/middleware.d.ts +15 -15
- package/dist/middleware.mjs +7 -7
- package/dist/mobile.d.mts +37 -10
- package/dist/mobile.d.ts +37 -10
- package/dist/{navigation-delegate-8xg3Zvp4.d.ts → navigation-delegate.d-C0BbdUgN.d.mts} +1 -1
- package/dist/{navigation-delegate-ji6elCKy.d.mts → navigation-delegate.d-jArRF0ZP.d.ts} +1 -1
- package/dist/navigation.d.mts +17 -17
- package/dist/navigation.d.ts +17 -17
- package/dist/{nitro-YPSZBYDK.cjs → nitro-CK7M4RMY.cjs} +11 -11
- package/dist/{nitro-2Q5NVY7L.mjs → nitro-R444AF3O.mjs} +7 -7
- package/dist/observability.d.mts +1 -1
- package/dist/observability.d.ts +1 -1
- package/dist/plugin.cjs +29 -27
- package/dist/plugin.d.mts +17 -17
- package/dist/plugin.d.ts +17 -17
- package/dist/plugin.mjs +28 -26
- package/dist/{production-runtime-TdKaYRj0.d.ts → production-runtime.d-DFaQ1qaV.d.mts} +3 -3
- package/dist/{production-runtime-DXnQQkQf.d.mts → production-runtime.d-UnXmSS_S.d.ts} +3 -3
- package/dist/{programmatic-routes-client-Dh1SDLSM.d.mts → programmatic-routes-client.d-BIowUXQC.d.mts} +10 -2
- package/dist/{programmatic-routes-client-BwiTndEC.d.ts → programmatic-routes-client.d-VZ0qcbH4.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-BPbwRbuN.d.ts → render-plan.d-BB6KrYjP.d.ts} +2 -2
- package/dist/{render-plan-BvCGXF6K.d.mts → render-plan.d-BNeqyPyJ.d.mts} +2 -2
- package/dist/renderer-client.cjs +8 -6
- package/dist/renderer-client.d.mts +19 -19
- package/dist/renderer-client.d.ts +19 -19
- package/dist/renderer-client.mjs +4 -2
- package/dist/{request-C_xTkJib.d.mts → request.d-BV1munmx.d.mts} +1 -1
- package/dist/{request-B8PGTZNR.d.ts → request.d-Bxhghm76.d.ts} +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-DlddURL1.d.mts → route-rendering.d-BIf7zE9d.d.ts} +1 -1
- package/dist/{route-rendering-RNtcj607.d.ts → route-rendering.d-DShqKlgK.d.mts} +1 -1
- package/dist/{route-DFhZj6jN.d.ts → route.d-BaVH3V0w.d.mts} +1 -1
- package/dist/{route-2_yXC6gv.d.mts → route.d-DBTEqifW.d.ts} +1 -1
- package/dist/{router-B97eB0Mq.d.mts → router.d-BE7i84fb.d.mts} +1 -1
- package/dist/{router-qUVaoEN8.d.ts → router.d-Bw3K3b0a.d.ts} +1 -1
- package/dist/routes.cjs +3 -2
- package/dist/{routes-8PT9cl60.d.ts → routes.d-DVZQL0-H.d.ts} +3 -3
- package/dist/{routes-kEUsXHx3.d.mts → routes.d-_5tBQexL.d.mts} +3 -3
- package/dist/routes.d.mts +14 -14
- package/dist/routes.d.ts +14 -14
- package/dist/routes.mjs +2 -1
- package/dist/{rsc-pipeline-T3775JUA.mjs → rsc-pipeline-FBM6NFYY.mjs} +13 -13
- package/dist/{rsc-pipeline-L4XOZ2TE.cjs → rsc-pipeline-IQI5XQLS.cjs} +14 -14
- package/dist/{runtime-HRSFC4ZC.mjs → runtime-2JYIDUON.mjs} +14 -14
- package/dist/{runtime-BIBGJO7V.cjs → runtime-DXEVFYLE.cjs} +16 -16
- 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-C8GUnNeP.d.ts → runtime.d-CQgoYR0Q.d.mts} +4 -4
- package/dist/{runtime-CaDswfWi.d.mts → runtime.d-CfhaLPl-.d.ts} +4 -4
- package/dist/{schema-dev-notice-LZ5NXGLN.mjs → schema-dev-notice-F6QYSOAI.mjs} +2 -2
- package/dist/{schema-dev-notice-XV7GZ3QJ.cjs → schema-dev-notice-UU7DMZEU.cjs} +3 -3
- package/dist/{search-client-BTXL5XWD.mjs → search-client-OXH6GBNO.mjs} +5 -3
- package/dist/search-client-ZZLKVO5R.cjs +15 -0
- package/dist/server-action-security.cjs +2 -2
- package/dist/server-action-security.d.mts +1 -1
- package/dist/server-action-security.d.ts +1 -1
- package/dist/server-action-security.mjs +1 -1
- package/dist/server-fn-client.d.mts +5 -5
- package/dist/server-fn-client.d.ts +5 -5
- package/dist/server-fn.cjs +3 -3
- package/dist/server-fn.d.mts +3 -3
- package/dist/server-fn.d.ts +3 -3
- package/dist/server-fn.mjs +2 -2
- package/dist/server-plugins.d.mts +14 -14
- package/dist/server-plugins.d.ts +14 -14
- package/dist/server-query-client.cjs +4 -3
- package/dist/server-query-client.d.mts +5 -5
- package/dist/server-query-client.d.ts +5 -5
- package/dist/server-query-client.mjs +3 -2
- package/dist/server-query.cjs +4 -4
- package/dist/server-query.d.mts +2 -2
- package/dist/server-query.d.ts +2 -2
- package/dist/server-query.mjs +3 -3
- package/dist/server.cjs +64 -62
- package/dist/server.d.mts +28 -29
- package/dist/server.d.ts +28 -29
- package/dist/server.mjs +38 -36
- package/dist/{spa-router-Dlv5ofg0.d.mts → spa-router.d-C5opIgXg.d.ts} +5 -5
- package/dist/{spa-router-qapSboKz.d.ts → spa-router.d-D63jb6nX.d.mts} +5 -5
- package/dist/storage.d.mts +2 -2
- package/dist/storage.d.ts +2 -2
- package/dist/testing.cjs +12 -11
- package/dist/testing.d.mts +14 -14
- package/dist/testing.d.ts +14 -14
- package/dist/testing.mjs +9 -8
- 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-DyvlSxFk.d.mts → utils.d-CO-U4OVZ.d.mts} +1 -1
- package/dist/{utils-A-cYF81u.d.ts → utils.d-CkpTqTsC.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +29 -27
- package/dist/vite.d.mts +20 -19
- package/dist/vite.d.ts +20 -19
- package/dist/vite.mjs +28 -26
- package/dist/workflows.cjs +4 -4
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +3 -3
- package/package.json +10 -5
- package/dist/base-path-leyrqXbX.d.mts +0 -19
- package/dist/base-path-leyrqXbX.d.ts +0 -19
- package/dist/chunk-OTOOJIUB.mjs +0 -34
- package/dist/search-client-QCYAL6AY.cjs +0 -13
- /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/{config-CnhyvvmT.d.mts → config.d-CnhyvvmT.d.mts} +0 -0
- /package/dist/{config-CnhyvvmT.d.ts → config.d-CnhyvvmT.d.ts} +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
|
@@ -6,13 +6,13 @@ var _chunk5YPBFMBNcjs = require('./chunk-5YPBFMBN.cjs');
|
|
|
6
6
|
var _chunkRD623KW4cjs = require('./chunk-RD623KW4.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkEHB77D5Ucjs = require('./chunk-EHB77D5U.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkNWUHS6GVcjs = require('./chunk-NWUHS6GV.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkVQJYGZNXcjs = require('./chunk-VQJYGZNX.cjs');
|
|
16
16
|
|
|
17
17
|
// src/routing/generate-route-types.ts
|
|
18
18
|
var _path = require('path'); var path = _interopRequireWildcard(_path);
|
|
@@ -144,20 +144,17 @@ async function scanRoutePatterns(options) {
|
|
|
144
144
|
const pageFiles = /* @__PURE__ */ new Map();
|
|
145
145
|
const nativePages = /* @__PURE__ */ new Map();
|
|
146
146
|
const nativeLayouts = /* @__PURE__ */ new Map();
|
|
147
|
-
const glob = await import("
|
|
147
|
+
const { glob } = await import("tinyglobby");
|
|
148
148
|
for (const source of sourceRoots) {
|
|
149
149
|
const appDir = path.join(source.root, source.srcDir, "app");
|
|
150
150
|
if (fs.existsSync(appDir)) {
|
|
151
|
-
const routeModuleFiles = await glob
|
|
151
|
+
const routeModuleFiles = await glob(
|
|
152
152
|
`**/{page,layout,loading,error}.{${componentExtensions.join(",")},md,mdx}`,
|
|
153
|
-
{
|
|
154
|
-
cwd: appDir,
|
|
155
|
-
absolute: false
|
|
156
|
-
}
|
|
153
|
+
{ cwd: appDir, expandDirectories: false }
|
|
157
154
|
);
|
|
158
155
|
for (const file of routeModuleFiles) {
|
|
159
|
-
if (
|
|
160
|
-
const route =
|
|
156
|
+
if (_chunkEHB77D5Ucjs.parseRouteSlotFile.call(void 0, file)) continue;
|
|
157
|
+
const route = _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, file);
|
|
161
158
|
const pattern = createRoutePattern(route);
|
|
162
159
|
modules.add(pattern);
|
|
163
160
|
if (route.type === "page") {
|
|
@@ -168,16 +165,16 @@ async function scanRoutePatterns(options) {
|
|
|
168
165
|
if (options.platformFiles) {
|
|
169
166
|
scanPlatformRouteFiles(
|
|
170
167
|
appDir,
|
|
171
|
-
await glob
|
|
168
|
+
await glob(
|
|
172
169
|
["**/{page,layout}.{native,ios,android}.{tsx,ts,jsx,js}", "**/page.{kt,swift}"],
|
|
173
|
-
{ cwd: appDir,
|
|
170
|
+
{ cwd: appDir, expandDirectories: false }
|
|
174
171
|
),
|
|
175
172
|
nativePages,
|
|
176
173
|
nativeLayouts
|
|
177
174
|
);
|
|
178
175
|
}
|
|
179
176
|
}
|
|
180
|
-
for (const route of await
|
|
177
|
+
for (const route of await _chunkNWUHS6GVcjs.discoverProgrammaticRoutePaths.call(void 0, source.root, source.srcDir)) {
|
|
181
178
|
pages.add(route);
|
|
182
179
|
modules.add(route);
|
|
183
180
|
}
|
|
@@ -202,9 +199,9 @@ function scanPlatformRouteFiles(appDir, files, nativePages, nativeLayouts) {
|
|
|
202
199
|
const kind = _nullishCoalesce(match[1], () => ( "page"));
|
|
203
200
|
const platform = _nullishCoalesce(match[2], () => ( match[3]));
|
|
204
201
|
const twin = path.posix.join(path.posix.dirname(normalized), `${kind}.tsx`);
|
|
205
|
-
if (kind === "page" &&
|
|
202
|
+
if (kind === "page" && _chunkEHB77D5Ucjs.parseRouteSlotFile.call(void 0, twin)) continue;
|
|
206
203
|
const dir = path.posix.dirname(normalized);
|
|
207
|
-
const pattern = kind === "page" ? createRoutePattern(
|
|
204
|
+
const pattern = kind === "page" ? createRoutePattern(_chunkVQJYGZNXcjs.parseRoutePath.call(void 0, twin)) : dir === "." ? "/" : `/${dir}`;
|
|
208
205
|
const key = `${kind}\0${pattern}\0${platform}`;
|
|
209
206
|
const previous = seen.get(key);
|
|
210
207
|
if (previous) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVQJYGZNXcjs = require('./chunk-VQJYGZNX.cjs');
|
|
4
4
|
|
|
5
5
|
// src/routing/route-slots.ts
|
|
6
6
|
var SLOT_SEGMENT = /^@([A-Za-z][A-Za-z0-9_-]*)$/;
|
|
@@ -38,8 +38,8 @@ function parseRouteSlotFile(filePath) {
|
|
|
38
38
|
].join("/");
|
|
39
39
|
return {
|
|
40
40
|
name,
|
|
41
|
-
ownerRoute:
|
|
42
|
-
route:
|
|
41
|
+
ownerRoute: _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, ownerFile || "layout.tsx"),
|
|
42
|
+
route: _chunkVQJYGZNXcjs.parseRoutePath.call(void 0, routeFile || "page.tsx"),
|
|
43
43
|
interception: marker !== null,
|
|
44
44
|
fallback: baseName === "default"
|
|
45
45
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateFarmDocsSearchBootstrapRuntime,
|
|
3
3
|
isFarmDocsSearchEnabled
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ALEUMLJN.mjs";
|
|
5
5
|
import {
|
|
6
6
|
FARM_NAVIGATION_HEAD_SELECTOR
|
|
7
7
|
} from "./chunk-WYL4ODZ4.mjs";
|
|
@@ -651,16 +651,34 @@ function resolveFarmDocsContentDir(docs, options) {
|
|
|
651
651
|
if (existsSync2(appDocsDir)) return appDocsDir;
|
|
652
652
|
return path2.join(root, entryDir);
|
|
653
653
|
}
|
|
654
|
+
function getFarmDocsRoots(docs) {
|
|
655
|
+
return [
|
|
656
|
+
docs,
|
|
657
|
+
...(docs.roots ?? []).map((root) => ({
|
|
658
|
+
...docs,
|
|
659
|
+
entry: root.entry,
|
|
660
|
+
contentDir: root.contentDir,
|
|
661
|
+
config: root.config,
|
|
662
|
+
runtimeConfig: root.runtimeConfig,
|
|
663
|
+
configOverrides: root.configOverrides,
|
|
664
|
+
roots: void 0
|
|
665
|
+
}))
|
|
666
|
+
];
|
|
667
|
+
}
|
|
654
668
|
function getFarmDocsRouteTypeEntries(docs) {
|
|
655
669
|
if (!docs?.enabled) return [];
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
670
|
+
return getFarmDocsRoots(docs).flatMap((root) => {
|
|
671
|
+
const entry = normalizeEntry2(root.entry);
|
|
672
|
+
if (entry === "/") return ["/", "/[...docs]"];
|
|
673
|
+
return [entry, `${entry}/[...docs]`];
|
|
674
|
+
});
|
|
659
675
|
}
|
|
660
676
|
function getFarmDocsDocumentNavigationMatchers(docs) {
|
|
661
677
|
if (!docs?.enabled) return [];
|
|
662
|
-
|
|
663
|
-
|
|
678
|
+
return getFarmDocsRoots(docs).map((root) => {
|
|
679
|
+
const entry = normalizeEntry2(root.entry);
|
|
680
|
+
return entry === "/" ? "/(.*)" : `${entry}(.*)`;
|
|
681
|
+
});
|
|
664
682
|
}
|
|
665
683
|
function getRequestSlug(docs, request) {
|
|
666
684
|
const pathname = new URL(request.url).pathname;
|
|
@@ -1307,6 +1325,13 @@ function highlightCodeBlock(code) {
|
|
|
1307
1325
|
function renderCodeCopyButton(className = "code-copy") {
|
|
1308
1326
|
return `<button class="${className}" type="button" data-code-copy data-copied="false" aria-label="Copy code" title="Copy code"><svg class="code-copy-icon" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg><svg class="code-copy-check" viewBox="0 0 24 24" aria-hidden="true" focusable="false"><path d="M20 6 9 17l-5-5"></path></svg></button>`;
|
|
1309
1327
|
}
|
|
1328
|
+
var SCRIPT_URL_SCHEME = /^(?:javascript|vbscript|data):/i;
|
|
1329
|
+
function isScriptUrl(href) {
|
|
1330
|
+
const url = href.replace(/[\t\n\r]/g, "");
|
|
1331
|
+
let start = 0;
|
|
1332
|
+
while (start < url.length && url.charCodeAt(start) <= 32) start++;
|
|
1333
|
+
return SCRIPT_URL_SCHEME.test(url.slice(start));
|
|
1334
|
+
}
|
|
1310
1335
|
function renderMarkdownDocument(body, depth) {
|
|
1311
1336
|
const slug = createSlugger();
|
|
1312
1337
|
const renderer = new Renderer();
|
|
@@ -1342,6 +1367,7 @@ function renderMarkdownDocument(body, depth) {
|
|
|
1342
1367
|
`;
|
|
1343
1368
|
renderer.codespan = (code) => `<code>${escapeHtml(code)}</code>`;
|
|
1344
1369
|
renderer.link = (href, title, text) => {
|
|
1370
|
+
if (href && isScriptUrl(href)) return text;
|
|
1345
1371
|
const safeHref = href || "";
|
|
1346
1372
|
const titleAttribute = title ? ` title="${escapeAttribute(title)}"` : "";
|
|
1347
1373
|
return `<a href="${escapeAttribute(safeHref)}"${titleAttribute}>${text}</a>`;
|
|
@@ -1913,6 +1939,7 @@ export {
|
|
|
1913
1939
|
createFarmDocsLastModifiedManifest,
|
|
1914
1940
|
isFarmDocsRequest,
|
|
1915
1941
|
resolveFarmDocsContentDir,
|
|
1942
|
+
getFarmDocsRoots,
|
|
1916
1943
|
getFarmDocsRouteTypeEntries,
|
|
1917
1944
|
getFarmDocsDocumentNavigationMatchers,
|
|
1918
1945
|
loadFarmDocsPage,
|
|
@@ -29,7 +29,7 @@ var _chunkSYW346ZNcjs = require('./chunk-SYW346ZN.cjs');
|
|
|
29
29
|
var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkCECUDGXQcjs = require('./chunk-CECUDGXQ.cjs');
|
|
33
33
|
|
|
34
34
|
// src/schema-dependencies.ts
|
|
35
35
|
function collectSchemaDependencies(owners) {
|
|
@@ -115,7 +115,7 @@ async function withTimeout(work, timeoutMs) {
|
|
|
115
115
|
var formatSeconds = (ms) => ms < 1e3 ? `${ms}ms` : `${Number((ms / 1e3).toFixed(1))}s`;
|
|
116
116
|
function collectSchemaOwners(config) {
|
|
117
117
|
const owners = [];
|
|
118
|
-
const integrationSchemas =
|
|
118
|
+
const integrationSchemas = _chunkCECUDGXQcjs.getIntegrationSchemas.call(void 0, config.integrations);
|
|
119
119
|
let integrationClient;
|
|
120
120
|
for (const [name, schema] of Object.entries(integrationSchemas)) {
|
|
121
121
|
owners.push({
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveFarmPlatform
|
|
3
|
+
} from "./chunk-SMUW7UST.mjs";
|
|
1
4
|
import {
|
|
2
5
|
collectSSGPages,
|
|
3
6
|
matchSSGPage,
|
|
4
7
|
resolveRouteRenderingConfigFromFile
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import {
|
|
7
|
-
createFarmMetadataImageResponse
|
|
8
|
-
} from "./chunk-OZK2DS44.mjs";
|
|
9
|
-
import {
|
|
10
|
-
resolveFarmPlatform
|
|
11
|
-
} from "./chunk-SMUW7UST.mjs";
|
|
8
|
+
} from "./chunk-CZ35L6PL.mjs";
|
|
12
9
|
import {
|
|
13
10
|
classifyFarmDocumentPrefix,
|
|
14
11
|
composeFarmFullDocument,
|
|
@@ -33,10 +30,10 @@ import {
|
|
|
33
30
|
renderFarmLocaleAlternateLinks,
|
|
34
31
|
resolveDefaultErrorStatus,
|
|
35
32
|
routeBoundaryCoversDirectory
|
|
36
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7UPCJDB5.mjs";
|
|
37
34
|
import {
|
|
38
35
|
listFarmMCPLlmsTxtLinks
|
|
39
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-QAIAFCRZ.mjs";
|
|
40
37
|
import {
|
|
41
38
|
FARM_DEFAULT_MCP_PATH,
|
|
42
39
|
collectFarmDefaultMCPPages,
|
|
@@ -45,13 +42,16 @@ import {
|
|
|
45
42
|
isFarmDefaultMCPPathname,
|
|
46
43
|
resolveFarmDefaultMCPServer
|
|
47
44
|
} from "./chunk-KRRZJ77U.mjs";
|
|
45
|
+
import {
|
|
46
|
+
createFarmMetadataImageResponse
|
|
47
|
+
} from "./chunk-OZK2DS44.mjs";
|
|
48
48
|
import {
|
|
49
49
|
installFarmIslandValues,
|
|
50
50
|
uninstallFarmIslandValues
|
|
51
51
|
} from "./chunk-A4PWGL46.mjs";
|
|
52
52
|
import {
|
|
53
53
|
handleFarmFormActionRequest
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-Z5A6CNV2.mjs";
|
|
55
55
|
import {
|
|
56
56
|
FARM_ISLAND_REPLAYABLE_SELECTOR,
|
|
57
57
|
isFarmIslandStrategy
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
createEvaluatedRouteGraph,
|
|
61
61
|
mergeProgrammaticClientRoutes,
|
|
62
62
|
resolveProgrammaticClientRoutes
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-ZQ5BDNKW.mjs";
|
|
64
64
|
import {
|
|
65
65
|
createFarmMarkdownRouteModuleFromFile,
|
|
66
66
|
loadFarmMdxComponents
|
|
@@ -134,13 +134,13 @@ import {
|
|
|
134
134
|
} from "./chunk-UIJOLBUL.mjs";
|
|
135
135
|
import {
|
|
136
136
|
resolveWorkflowsConfig
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-LZ4SB57H.mjs";
|
|
138
138
|
import {
|
|
139
139
|
resolveCronConfig
|
|
140
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-X3JNB2TB.mjs";
|
|
141
141
|
import {
|
|
142
142
|
resolveServerActionsConfig
|
|
143
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-FSQMN2MQ.mjs";
|
|
144
144
|
import {
|
|
145
145
|
resolveFarmThemeConfig
|
|
146
146
|
} from "./chunk-YWPNIYUP.mjs";
|
|
@@ -164,11 +164,11 @@ import {
|
|
|
164
164
|
getIntegrationProviders,
|
|
165
165
|
getRegisteredIntegrationAPIManifest,
|
|
166
166
|
isFarmIntegrationProviderComponentReference
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-Y2G5SJFB.mjs";
|
|
168
168
|
import {
|
|
169
169
|
createRouteSlotContainerId,
|
|
170
170
|
parseRouteSlotFile
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-IRSS4HS4.mjs";
|
|
172
172
|
import {
|
|
173
173
|
_clearCurrentMiddlewareContext,
|
|
174
174
|
_clearCurrentMiddlewareData,
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
import {
|
|
179
179
|
findProgrammaticRouteFiles,
|
|
180
180
|
loadProgrammaticRouteManifests
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-FSXSQQTV.mjs";
|
|
182
182
|
import {
|
|
183
183
|
_runWithFarmI18nRequest,
|
|
184
184
|
_setDefaultFarmI18nRuntime,
|
|
@@ -230,17 +230,18 @@ import {
|
|
|
230
230
|
splitRoutePath,
|
|
231
231
|
toRootRelativeUrlPath,
|
|
232
232
|
toViteModuleId
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-Y3N5BFRJ.mjs";
|
|
234
234
|
import {
|
|
235
|
+
createFarmSearchParams,
|
|
235
236
|
searchParamsToObject
|
|
236
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-H3ASZDT7.mjs";
|
|
237
238
|
import {
|
|
238
239
|
configureFarmObservability,
|
|
239
240
|
emitFarmEvent
|
|
240
241
|
} from "./chunk-2DA7CLY7.mjs";
|
|
241
242
|
import {
|
|
242
243
|
sendWebResponse
|
|
243
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-CO6UYM2D.mjs";
|
|
244
245
|
import {
|
|
245
246
|
matchesFarmIfNoneMatch,
|
|
246
247
|
resolveFarmServerConfig
|
|
@@ -253,7 +254,7 @@ import {
|
|
|
253
254
|
} from "./chunk-LM2YOGDK.mjs";
|
|
254
255
|
import {
|
|
255
256
|
FARM_VERSION
|
|
256
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-EOSFVNXZ.mjs";
|
|
257
258
|
import {
|
|
258
259
|
resolveFarmTrailingSlashRedirect,
|
|
259
260
|
setFarmTrailingSlashPreference
|
|
@@ -2864,6 +2865,18 @@ var RouteManager = class {
|
|
|
2864
2865
|
}
|
|
2865
2866
|
}
|
|
2866
2867
|
}
|
|
2868
|
+
/** The page routes a docs adapter answers before Farm's own page rendering. */
|
|
2869
|
+
getDocsAdapterRoutes() {
|
|
2870
|
+
const docs = this.config.docs;
|
|
2871
|
+
if (!docs || typeof docs !== "object" || !docs.enabled || !docs.adapter || !docs.adapter.server || !docs.adapter.react || !isReactRenderer(this.config.renderer)) {
|
|
2872
|
+
return void 0;
|
|
2873
|
+
}
|
|
2874
|
+
const entry = `/${String(docs.entry || "docs").replace(/^\/+|\/+$/g, "")}`;
|
|
2875
|
+
return {
|
|
2876
|
+
owns: (routePath) => entry === "/" || routePath === entry || routePath.startsWith(`${entry}/`),
|
|
2877
|
+
prerender: docs.prerender === true
|
|
2878
|
+
};
|
|
2879
|
+
}
|
|
2867
2880
|
/**
|
|
2868
2881
|
* Collect SSG pages for static generation
|
|
2869
2882
|
*
|
|
@@ -2878,8 +2891,10 @@ var RouteManager = class {
|
|
|
2878
2891
|
pattern: entry.pattern
|
|
2879
2892
|
}));
|
|
2880
2893
|
const i18n = this.getI18nConfig();
|
|
2894
|
+
const docsAdapterRoutes = this.getDocsAdapterRoutes();
|
|
2881
2895
|
const result = await collectSSGPages(routes, (filePath) => this.loadRouteModule(filePath), {
|
|
2882
|
-
suggestStaticRendering: shouldSuggestStaticRenderingForI18n(i18n)
|
|
2896
|
+
suggestStaticRendering: shouldSuggestStaticRenderingForI18n(i18n),
|
|
2897
|
+
...docsAdapterRoutes ? { docsAdapterRoutes } : {}
|
|
2883
2898
|
});
|
|
2884
2899
|
if (!i18n) {
|
|
2885
2900
|
return result;
|
|
@@ -4465,7 +4480,12 @@ function withFarmIslandsRenders(runtime, islandsRuntime) {
|
|
|
4465
4480
|
return wrapped;
|
|
4466
4481
|
}
|
|
4467
4482
|
var cachedClerkProvider = null;
|
|
4468
|
-
|
|
4483
|
+
function importRuntimeModule(specifier) {
|
|
4484
|
+
return import(
|
|
4485
|
+
/* @vite-ignore */
|
|
4486
|
+
specifier
|
|
4487
|
+
);
|
|
4488
|
+
}
|
|
4469
4489
|
function shouldServePrerenderedPage(nodeEnv, method) {
|
|
4470
4490
|
if (nodeEnv !== "production") return false;
|
|
4471
4491
|
const normalizedMethod = (method || "GET").toUpperCase();
|
|
@@ -4655,7 +4675,7 @@ async function parseRouteModuleProps(routeModule, input) {
|
|
|
4655
4675
|
...input.props,
|
|
4656
4676
|
params,
|
|
4657
4677
|
search,
|
|
4658
|
-
searchParams:
|
|
4678
|
+
searchParams: createFarmSearchParams(search)
|
|
4659
4679
|
};
|
|
4660
4680
|
}
|
|
4661
4681
|
function parseRouteModuleSchema(schema, value, label, routePath) {
|
|
@@ -4673,7 +4693,7 @@ function createRouteStateProps(input) {
|
|
|
4673
4693
|
return {
|
|
4674
4694
|
params: input.params,
|
|
4675
4695
|
search: input.searchParamsObject,
|
|
4676
|
-
searchParams:
|
|
4696
|
+
searchParams: createFarmSearchParams(input.searchParamsObject),
|
|
4677
4697
|
path: input.path,
|
|
4678
4698
|
middleware: input.middlewareMap.size > 0 ? { data: input.middlewareMap } : void 0,
|
|
4679
4699
|
context: input.pluginExposedContext.size > 0 ? { data: input.pluginExposedContext } : void 0
|
|
@@ -5126,7 +5146,7 @@ var ServerRenderer = class {
|
|
|
5126
5146
|
const PageComponent = mod.default;
|
|
5127
5147
|
const pageProps = {
|
|
5128
5148
|
params: page.params,
|
|
5129
|
-
searchParams:
|
|
5149
|
+
searchParams: createFarmSearchParams({}),
|
|
5130
5150
|
path: page.urlPath
|
|
5131
5151
|
};
|
|
5132
5152
|
let pageElement = this.rendererRuntime.createElement(PageComponent, pageProps);
|
|
@@ -5412,7 +5432,7 @@ var ServerRenderer = class {
|
|
|
5412
5432
|
const rawPageProps = withFarmRouteContext(
|
|
5413
5433
|
{
|
|
5414
5434
|
params,
|
|
5415
|
-
searchParams:
|
|
5435
|
+
searchParams: createFarmSearchParams(searchParamsObject),
|
|
5416
5436
|
path: pathname,
|
|
5417
5437
|
middleware: middlewareMap.size > 0 ? { data: middlewareMap } : void 0,
|
|
5418
5438
|
context: pluginExposedContext.size > 0 ? { data: pluginExposedContext } : void 0
|
|
@@ -5435,7 +5455,7 @@ var ServerRenderer = class {
|
|
|
5435
5455
|
const routeStateProps = {
|
|
5436
5456
|
...rawPageProps,
|
|
5437
5457
|
search: searchParamsObject,
|
|
5438
|
-
searchParams:
|
|
5458
|
+
searchParams: createFarmSearchParams(searchParamsObject),
|
|
5439
5459
|
error
|
|
5440
5460
|
};
|
|
5441
5461
|
if (isFarmNotFoundError(error) && programmaticRouteComponents?.notFound) {
|
|
@@ -5553,7 +5573,7 @@ var ServerRenderer = class {
|
|
|
5553
5573
|
const rawSlotProps = withFarmRouteContext(
|
|
5554
5574
|
{
|
|
5555
5575
|
params: slot.params,
|
|
5556
|
-
searchParams:
|
|
5576
|
+
searchParams: createFarmSearchParams(searchParamsObject),
|
|
5557
5577
|
path: pathname,
|
|
5558
5578
|
middleware: middlewareMap.size > 0 ? { data: middlewareMap } : void 0,
|
|
5559
5579
|
context: pluginExposedContext.size > 0 ? { data: pluginExposedContext } : void 0
|
|
@@ -6417,7 +6437,7 @@ var ServerRenderer = class {
|
|
|
6417
6437
|
}
|
|
6418
6438
|
const imageProps = {
|
|
6419
6439
|
params: options.params,
|
|
6420
|
-
searchParams:
|
|
6440
|
+
searchParams: createFarmSearchParams(options.searchParamsObject),
|
|
6421
6441
|
path: options.pagePath
|
|
6422
6442
|
};
|
|
6423
6443
|
const handlerResult = typeof imageModule.default === "function" ? await imageModule.default(imageProps) : imageModule.default;
|
|
@@ -7721,7 +7741,7 @@ function resolveFarmAppPackages(root) {
|
|
|
7721
7741
|
import fs7 from "fs";
|
|
7722
7742
|
import { createRequire as createRequire2 } from "module";
|
|
7723
7743
|
import path12 from "path";
|
|
7724
|
-
import
|
|
7744
|
+
import { globSync } from "tinyglobby";
|
|
7725
7745
|
var WEBMCP_CLIENT = "@farm.js/webmcp/client";
|
|
7726
7746
|
var DEFINERS = /* @__PURE__ */ new Set(["defineWebMCPTool", "registerWebMCPTool", "registerWebMCPTools"]);
|
|
7727
7747
|
var HINTS = ["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"];
|
|
@@ -7865,9 +7885,10 @@ function collectFarmWebMCPTools(root, srcDir = "src") {
|
|
|
7865
7885
|
const base = path12.resolve(root, srcDir);
|
|
7866
7886
|
let files;
|
|
7867
7887
|
try {
|
|
7868
|
-
files =
|
|
7888
|
+
files = globSync("**/*.{ts,tsx,js,jsx,mts,mjs,cts,cjs}", {
|
|
7869
7889
|
cwd: base,
|
|
7870
7890
|
absolute: true,
|
|
7891
|
+
expandDirectories: false,
|
|
7871
7892
|
ignore: ["**/node_modules/**", "**/*.d.ts", "**/*.{test,spec}.*", "**/__tests__/**"]
|
|
7872
7893
|
});
|
|
7873
7894
|
} catch {
|
|
@@ -9,20 +9,6 @@ var _chunkMPU5DOXXcjs = require('./chunk-MPU5DOXX.cjs');
|
|
|
9
9
|
|
|
10
10
|
var _chunkDXUXQP2Tcjs = require('./chunk-DXUXQP2T.cjs');
|
|
11
11
|
|
|
12
|
-
// src/client-revalidation.ts
|
|
13
|
-
function attachRevalidationListeners(refresh, options = {}) {
|
|
14
|
-
if (typeof window === "undefined") return () => {
|
|
15
|
-
};
|
|
16
|
-
const onFocus = options.refetchOnWindowFocus === false ? void 0 : refresh;
|
|
17
|
-
const onOnline = options.refetchOnReconnect === false ? void 0 : refresh;
|
|
18
|
-
if (onFocus) window.addEventListener("focus", onFocus);
|
|
19
|
-
if (onOnline) window.addEventListener("online", onOnline);
|
|
20
|
-
return () => {
|
|
21
|
-
if (onFocus) window.removeEventListener("focus", onFocus);
|
|
22
|
-
if (onOnline) window.removeEventListener("online", onOnline);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
12
|
// src/server-query-runtime.ts
|
|
27
13
|
var FARM_SERVER_QUERY_CLIENT_STATE = /* @__PURE__ */ Symbol.for("farm.serverQueryClientState");
|
|
28
14
|
var serverQueryClientGlobal = globalThis;
|
|
@@ -235,5 +221,4 @@ function normalizeServerQueryError(cause) {
|
|
|
235
221
|
|
|
236
222
|
|
|
237
223
|
|
|
238
|
-
|
|
239
|
-
exports.attachRevalidationListeners = attachRevalidationListeners; exports.isFarmServerQueryBrowserRuntime = isFarmServerQueryBrowserRuntime; exports.beginFarmServerQueryAction = beginFarmServerQueryAction; exports.completeFarmServerQueryAction = completeFarmServerQueryAction; exports.shouldApplyFarmServerQueryActionResult = shouldApplyFarmServerQueryActionResult; exports.createServerQueryCallKey = createServerQueryCallKey; exports.fetchServerQuery = fetchServerQuery; exports.prefetchServerQuery = prefetchServerQuery;
|
|
224
|
+
exports.isFarmServerQueryBrowserRuntime = isFarmServerQueryBrowserRuntime; exports.beginFarmServerQueryAction = beginFarmServerQueryAction; exports.completeFarmServerQueryAction = completeFarmServerQueryAction; exports.shouldApplyFarmServerQueryActionResult = shouldApplyFarmServerQueryActionResult; exports.createServerQueryCallKey = createServerQueryCallKey; exports.fetchServerQuery = fetchServerQuery; exports.prefetchServerQuery = prefetchServerQuery;
|
|
@@ -382,4 +382,5 @@ function throwIfAborted(signal) {
|
|
|
382
382
|
|
|
383
383
|
|
|
384
384
|
|
|
385
|
-
|
|
385
|
+
|
|
386
|
+
exports.FARM_SERVER_FN_FAILURE_SYMBOL = FARM_SERVER_FN_FAILURE_SYMBOL; exports.ServerFnFailure = ServerFnFailure; exports.ServerActionError = ServerActionError; exports.isServerFnFailure = isServerFnFailure; exports.serializeServerFnFailure = serializeServerFnFailure; exports.createServerFnTransportError = createServerFnTransportError; exports.DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT = DEFAULT_SERVER_ACTION_BODY_SIZE_LIMIT; exports.ServerActionRequestError = ServerActionRequestError; exports.resolveServerActionsConfig = resolveServerActionsConfig; exports.validateServerActionRequest = validateServerActionRequest; exports.prepareServerActionRequest = prepareServerActionRequest; exports.createServerActionRequestErrorResponse = createServerActionRequestErrorResponse; exports.sanitizeServerActionError = sanitizeServerActionError; exports.runWithServerActionRequest = runWithServerActionRequest; exports.getServerActionExecutionContext = getServerActionExecutionContext; exports.getServerActionSignal = getServerActionSignal; exports.getServerActionInvalidations = getServerActionInvalidations;
|
|
@@ -52,10 +52,11 @@ async function findProgrammaticRouteSourceFiles(srcRoot) {
|
|
|
52
52
|
return [];
|
|
53
53
|
}
|
|
54
54
|
try {
|
|
55
|
-
const glob = await import("
|
|
56
|
-
return await glob
|
|
55
|
+
const { glob } = await import("tinyglobby");
|
|
56
|
+
return await glob("**/*.{ts,tsx,js,jsx}", {
|
|
57
57
|
cwd: srcRoot,
|
|
58
58
|
absolute: true,
|
|
59
|
+
expandDirectories: false,
|
|
59
60
|
ignore: [
|
|
60
61
|
"**/*.d.ts",
|
|
61
62
|
"**/node_modules/**",
|