@farm.js/core 0.1.51-beta.3 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agent-mcp-handler-7JSKGSOW.mjs → agent-mcp-handler-7QMX2LUY.mjs} +7 -7
- package/dist/agent-mcp-handler-OV4WRFBL.cjs +18 -0
- package/dist/{agent-mcp.d-BJKChOrO.d.mts → agent-mcp.d-C-2S9bnP.d.mts} +1 -1
- package/dist/{agent-mcp.d-BAR9njbJ.d.ts → agent-mcp.d-SIoCUP1I.d.ts} +1 -1
- package/dist/agent-runtime.cjs +5 -5
- package/dist/agent-runtime.d.mts +2 -2
- package/dist/agent-runtime.d.ts +2 -2
- package/dist/agent-runtime.mjs +4 -4
- package/dist/{analyzer-OTPEWH5W.mjs → analyzer-22BEYV7S.mjs} +116 -13
- package/dist/{analyzer-TSQXZCZN.cjs → analyzer-LCSI3NSH.cjs} +123 -20
- package/dist/api/client.cjs +5 -4
- package/dist/api/client.d.mts +1 -1
- package/dist/api/client.d.ts +1 -1
- package/dist/api/client.mjs +3 -2
- package/dist/api/client.native.cjs +45 -0
- package/dist/api/client.native.d.mts +23 -0
- package/dist/api/client.native.d.ts +23 -0
- package/dist/api/client.native.mjs +45 -0
- package/dist/api/route-manager.cjs +7 -7
- package/dist/api/route-manager.d.mts +4 -4
- package/dist/api/route-manager.d.ts +4 -4
- package/dist/api/route-manager.mjs +6 -6
- package/dist/api/runtime.cjs +5 -5
- package/dist/api/runtime.d.mts +3 -3
- package/dist/api/runtime.d.ts +3 -3
- package/dist/api/runtime.mjs +4 -4
- package/dist/{api-client.d-CeA6tNA6.d.mts → api-client.d-BNLXNCXJ.d.mts} +1 -1
- package/dist/{api-client.d-BWcqZciH.d.ts → api-client.d-ddQBNGtu.d.ts} +1 -1
- package/dist/api.cjs +11 -11
- package/dist/api.d.mts +5 -5
- package/dist/api.d.ts +5 -5
- package/dist/api.mjs +10 -10
- package/dist/{app-manifest.d-DEQNnNhV.d.mts → app-manifest.d-DrSAHskY.d.mts} +1 -1
- package/dist/{app-manifest.d-BLFbaqx8.d.ts → app-manifest.d-Tb3CJpL4.d.ts} +1 -1
- package/dist/app-markdown.cjs +7 -7
- package/dist/app-markdown.d.mts +3 -3
- package/dist/app-markdown.d.ts +3 -3
- package/dist/app-markdown.mjs +6 -6
- package/dist/{app.d-CNPaUYaa.d.ts → app.d-CmWlYpZJ.d.ts} +9 -4
- package/dist/{app.d-CT7xDkj2.d.mts → app.d-D6QQM_kk.d.mts} +9 -4
- package/dist/{chunk-SN5VSO3Q.mjs → chunk-25T5VXOE.mjs} +7 -9
- package/dist/{chunk-OAMUSC7H.cjs → chunk-2FRLSDBT.cjs} +1 -1
- package/dist/{chunk-LM2YOGDK.mjs → chunk-2I6PUKWJ.mjs} +1 -1
- package/dist/{chunk-ZD2VKAUI.mjs → chunk-2KTYMMWT.mjs} +1 -1
- package/dist/{chunk-B5BBTPJQ.cjs → chunk-2OF5RPVU.cjs} +14 -14
- package/dist/{chunk-UQF3OJVE.mjs → chunk-37PYUEK5.mjs} +173 -29
- package/dist/{chunk-VSLM6BHX.cjs → chunk-3OJNNCDL.cjs} +9 -9
- package/dist/{chunk-X3JNB2TB.mjs → chunk-3PX4AIXO.mjs} +36 -5
- package/dist/{chunk-UQHIWZZ6.cjs → chunk-3TL3AH25.cjs} +12 -6
- package/dist/chunk-3YMLUNL2.cjs +251 -0
- package/dist/chunk-4JTQPOKO.cjs +137 -0
- package/dist/{chunk-7MD37P5V.cjs → chunk-4P23B7DU.cjs} +5 -5
- package/dist/{chunk-3BLEXUGE.mjs → chunk-55U5QIXQ.mjs} +1 -1
- package/dist/{chunk-TWHXBMLJ.cjs → chunk-5JNUYGNF.cjs} +4 -4
- package/dist/{chunk-53SACYBY.cjs → chunk-6BJJYOFL.cjs} +7 -7
- package/dist/chunk-6UUH4N4J.mjs +251 -0
- package/dist/{chunk-2NHOYYUT.mjs → chunk-7H45IJWO.mjs} +2 -2
- package/dist/{chunk-NN3MOPSI.mjs → chunk-A2MN5PQJ.mjs} +7 -7
- package/dist/{chunk-KY32FWK7.mjs → chunk-BHJAYPYU.mjs} +2 -2
- package/dist/{chunk-VAHBCI6X.mjs → chunk-BQWBHWEW.mjs} +26 -1
- package/dist/{chunk-KJMWAUKE.mjs → chunk-C7GJDVN4.mjs} +1 -1
- package/dist/{chunk-OYNNA4DD.cjs → chunk-CBKRS3M4.cjs} +9 -9
- package/dist/{chunk-I2DQGS56.cjs → chunk-CBOEJ5Z4.cjs} +39 -41
- package/dist/{chunk-UJL4JOXV.cjs → chunk-CI4UNQHO.cjs} +2 -2
- package/dist/{chunk-S5AQ7CAC.cjs → chunk-CNNBFGL5.cjs} +39 -14
- package/dist/chunk-D2X5MUF5.cjs +1457 -0
- package/dist/{chunk-LEIXUFJN.cjs → chunk-D4MRNBVF.cjs} +10 -9
- package/dist/{chunk-2KVDHNQS.mjs → chunk-D7LTCK3U.mjs} +2 -2
- package/dist/{chunk-4SEHMBL4.cjs → chunk-DPJ66FSI.cjs} +22 -22
- package/dist/{chunk-FFE2EMF7.cjs → chunk-DZPR2W6U.cjs} +5 -5
- package/dist/{chunk-3Z63X45F.mjs → chunk-E72UD6ME.mjs} +1 -1
- package/dist/{chunk-XXXRRVY6.mjs → chunk-EGVC4LIG.mjs} +5 -5
- package/dist/{chunk-72NBDVWQ.mjs → chunk-EXUONJYV.mjs} +3 -3
- package/dist/{chunk-VS7EHLLW.mjs → chunk-EZ34EHQP.mjs} +1 -1
- package/dist/{chunk-5FXPJIOT.mjs → chunk-F6Y7ZAPQ.mjs} +2 -2
- package/dist/{chunk-LMFJCXDD.mjs → chunk-FN5UEC7I.mjs} +1 -1
- package/dist/{chunk-3SMXQNFD.mjs → chunk-FORSVMEJ.mjs} +2 -2
- package/dist/{chunk-R4PHCZ3G.mjs → chunk-HPWB57PZ.mjs} +1 -1
- package/dist/{chunk-Y2G5SJFB.mjs → chunk-IFHPDLIS.mjs} +1 -1
- package/dist/{chunk-3XQ57EFI.cjs → chunk-IFXSBJPN.cjs} +16 -16
- package/dist/{chunk-3WSIYBMG.mjs → chunk-ILMTRGBG.mjs} +279 -48
- package/dist/{chunk-HLWOWZFX.cjs → chunk-JBK7UJOI.cjs} +14 -11
- package/dist/chunk-JI5D7MXY.mjs +137 -0
- package/dist/{chunk-QXJADAQB.cjs → chunk-JIBEFLQ7.cjs} +6 -2
- package/dist/{chunk-LZ4SB57H.mjs → chunk-JPIUGDK4.mjs} +1 -1
- package/dist/{chunk-Y3N5BFRJ.mjs → chunk-JSDV2NUN.mjs} +1 -1
- package/dist/{chunk-IRSS4HS4.mjs → chunk-K3RU5MOR.mjs} +1 -1
- package/dist/chunk-KPOMS5RO.cjs +237 -0
- package/dist/{chunk-YAJTD3ZG.mjs → chunk-KVW2M6PI.mjs} +1 -1
- package/dist/{chunk-5IONBVJY.cjs → chunk-LB3DPQP6.cjs} +22 -22
- package/dist/{chunk-CZ35L6PL.mjs → chunk-LJVNMGE3.mjs} +10 -4
- package/dist/{chunk-X2AMN2WV.cjs → chunk-LQNW3ABP.cjs} +10 -10
- package/dist/{chunk-6ONBZGVH.cjs → chunk-LRB5OVRT.cjs} +3 -3
- package/dist/{chunk-D7UQC4O6.cjs → chunk-LT4VAF5Z.cjs} +2 -2
- package/dist/{chunk-F6TLUMH7.mjs → chunk-M53MIIXY.mjs} +1 -1
- package/dist/{chunk-H33PJEXN.cjs → chunk-MEQN6DDA.cjs} +5 -5
- package/dist/{chunk-XLRLSTJ6.cjs → chunk-MGKW5XZE.cjs} +7 -7
- package/dist/{chunk-B3GZAQSC.cjs → chunk-MHLNWRCJ.cjs} +3 -3
- package/dist/{chunk-5ENW27SL.mjs → chunk-MMK4MZUN.mjs} +1 -1
- package/dist/{chunk-WGUHDWT5.cjs → chunk-MTWXOEI4.cjs} +527 -366
- package/dist/chunk-NHD7BAKD.mjs +1457 -0
- package/dist/{chunk-KLNFJDFM.cjs → chunk-NQJDO7K7.cjs} +31 -31
- package/dist/{chunk-TSFMFPRU.cjs → chunk-O27PLNQZ.cjs} +10 -10
- package/dist/{chunk-PIHKO25G.mjs → chunk-OM7WILES.mjs} +1 -1
- package/dist/{chunk-YUEYBL35.mjs → chunk-PCXIJKPM.mjs} +8 -8
- package/dist/{chunk-IWFV5ZED.cjs → chunk-PMJSG4JS.cjs} +1 -1
- package/dist/{chunk-B3GM5I6N.cjs → chunk-PRFNLQSP.cjs} +4 -4
- package/dist/{chunk-46KXZBOG.cjs → chunk-QAS7KE7J.cjs} +7 -7
- package/dist/chunk-QGOZLGVP.mjs +0 -0
- package/dist/{chunk-VQJYGZNX.cjs → chunk-QMNWKQL4.cjs} +1 -1
- package/dist/{chunk-XB24LZWI.cjs → chunk-QRX4JRBO.cjs} +3 -3
- package/dist/{chunk-LNM57D3H.cjs → chunk-R53QDV6T.cjs} +4 -4
- package/dist/{chunk-SUV6YO4Q.cjs → chunk-RAWWCDCT.cjs} +5 -5
- package/dist/{chunk-LJDIFIJ2.mjs → chunk-RPUJHJHE.mjs} +4 -4
- package/dist/{chunk-G2KTRMWA.mjs → chunk-RSEAX5MW.mjs} +4 -0
- package/dist/chunk-SJRCWF4Z.mjs +237 -0
- package/dist/{chunk-4353ZRE5.mjs → chunk-SX7EECTS.mjs} +8 -5
- package/dist/{chunk-LDNSSHEG.mjs → chunk-T4TBK5NY.mjs} +2 -2
- package/dist/{chunk-NOTSHVRN.mjs → chunk-T7I62A4C.mjs} +293 -132
- package/dist/{chunk-E36C43IX.cjs → chunk-U4BJKNIR.cjs} +6 -6
- package/dist/{chunk-4CGOMZP3.cjs → chunk-UDJY2ZGY.cjs} +487 -256
- package/dist/{chunk-SHS6KXOZ.mjs → chunk-UR25Z5Z6.mjs} +1 -1
- package/dist/{chunk-TQMI6BYO.cjs → chunk-UYSTTPYJ.cjs} +1262 -936
- package/dist/{chunk-E5DXF5GE.mjs → chunk-UZZ6IEQP.mjs} +3 -3
- package/dist/{chunk-EKJYE4Y7.cjs → chunk-VGG74PSU.cjs} +25 -25
- package/dist/{chunk-GAO7MS5O.mjs → chunk-VPTWKOCY.mjs} +19 -19
- package/dist/{chunk-UN6N623E.mjs → chunk-VQJHT2ND.mjs} +2 -2
- package/dist/{chunk-SJ23LJ3N.cjs → chunk-VVTJTMGQ.cjs} +3 -3
- package/dist/{chunk-KHXAJ2KA.cjs → chunk-W2RZ73IU.cjs} +12 -12
- package/dist/{chunk-JWI5PUO2.mjs → chunk-W2ZXMMHA.mjs} +2 -1
- package/dist/{chunk-BLD5GVCG.mjs → chunk-W6QLRQ3V.mjs} +1 -1
- package/dist/{chunk-AV26KHTG.mjs → chunk-X2CZTWQA.mjs} +2 -2
- package/dist/chunk-XPIPMWY3.cjs +1 -0
- package/dist/{chunk-JXEPLIXD.cjs → chunk-XTG73QZA.cjs} +183 -39
- package/dist/{chunk-XPMC4E2G.cjs → chunk-XVSBALOY.cjs} +3 -3
- package/dist/{chunk-XYL4HSVC.cjs → chunk-YI6FKTTN.cjs} +38 -7
- package/dist/{chunk-LPDKG6RA.mjs → chunk-YSXTNSXS.mjs} +1 -1
- package/dist/{chunk-EHB77D5U.cjs → chunk-ZDAEHG2O.cjs} +3 -3
- package/dist/{chunk-3TLKUBXG.mjs → chunk-ZFUKPWFC.mjs} +912 -586
- package/dist/{chunk-4TKAIO2F.mjs → chunk-ZMHAFH4R.mjs} +8 -8
- package/dist/{chunk-ZOWNWHK6.cjs → chunk-ZNH6NR3H.cjs} +2 -2
- package/dist/{chunk-PFV2KPDZ.cjs → chunk-ZOYKJBP5.cjs} +3 -3
- package/dist/{chunk-CECUDGXQ.cjs → chunk-ZP32GNJQ.cjs} +13 -13
- package/dist/{chunk-MRNDAJEV.mjs → chunk-ZZ2QKCKW.mjs} +1 -1
- package/dist/{client-plugins.d-DllmH8eM.d.mts → client-plugins.d-CgQQ-EAv.d.mts} +10 -2
- package/dist/{client-plugins.d-n3iWY1EJ.d.ts → client-plugins.d-vXrbcfJ1.d.ts} +10 -2
- package/dist/client-plugins.d.mts +2 -2
- package/dist/client-plugins.d.ts +2 -2
- package/dist/client.cjs +9 -9
- package/dist/client.d.mts +9 -9
- package/dist/client.d.ts +9 -9
- package/dist/client.mjs +9 -9
- package/dist/{config.d-DqKaCr1r.d.ts → config.d-DqZkLwef.d.mts} +139 -1
- package/dist/{config.d-DqKaCr1r.d.mts → config.d-DqZkLwef.d.ts} +139 -1
- package/dist/config.d.mts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/cron.cjs +3 -3
- package/dist/cron.d.mts +10 -0
- package/dist/cron.d.ts +10 -0
- package/dist/cron.mjs +2 -2
- package/dist/desktop.d.mts +3 -3
- package/dist/desktop.d.ts +3 -3
- package/dist/{devtools-UESYARTF.mjs → devtools-KQZ6SRCJ.mjs} +16 -16
- package/dist/{devtools-TO6TAO32.cjs → devtools-UF6JYHUN.cjs} +18 -18
- package/dist/docs.cjs +19 -19
- package/dist/docs.d.mts +3 -3
- package/dist/docs.d.ts +3 -3
- package/dist/docs.mjs +18 -18
- package/dist/index.cjs +96 -96
- package/dist/{index.d-BXsAXm1U.d.ts → index.d-DlCELfhf.d.ts} +1 -1
- package/dist/{index.d-BL7KKiwa.d.mts → index.d-Dmfb7Kb_.d.mts} +1 -1
- package/dist/index.d.mts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.mjs +139 -139
- package/dist/integrations.cjs +5 -5
- package/dist/integrations.d.mts +2 -2
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.mjs +4 -4
- package/dist/internal/app-markdown-runtime.cjs +6 -6
- package/dist/internal/app-markdown-runtime.d.mts +3 -3
- package/dist/internal/app-markdown-runtime.d.ts +3 -3
- package/dist/internal/app-markdown-runtime.mjs +5 -5
- package/dist/internal/build-runtime.cjs +50 -50
- package/dist/internal/build-runtime.d.mts +4 -4
- package/dist/internal/build-runtime.d.ts +4 -4
- package/dist/internal/build-runtime.mjs +49 -49
- package/dist/internal/cli-runtime.cjs +28 -28
- package/dist/internal/cli-runtime.mjs +28 -28
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/client-runtime.cjs +20 -15
- package/dist/internal/client-runtime.d.mts +5 -5
- package/dist/internal/client-runtime.d.ts +5 -5
- package/dist/internal/client-runtime.mjs +8 -3
- package/dist/internal/compression-runtime.d.mts +2 -2
- package/dist/internal/compression-runtime.d.ts +2 -2
- package/dist/internal/config-runtime.cjs +18 -18
- package/dist/internal/config-runtime.d.mts +94 -6
- package/dist/internal/config-runtime.d.ts +94 -6
- package/dist/internal/config-runtime.mjs +17 -17
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/islands-boot.cjs +211 -0
- package/dist/internal/islands-boot.d.mts +8 -0
- package/dist/internal/islands-boot.d.ts +8 -0
- package/dist/internal/islands-boot.mjs +211 -0
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-runtime.cjs +37 -101
- package/dist/internal/production-runtime.d.mts +17 -11
- package/dist/internal/production-runtime.d.ts +17 -11
- package/dist/internal/production-runtime.mjs +47 -111
- package/dist/markdown.cjs +5 -5
- package/dist/markdown.d.mts +2 -2
- package/dist/markdown.d.ts +2 -2
- package/dist/markdown.mjs +4 -4
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +4 -4
- package/dist/middleware.d.ts +4 -4
- package/dist/middleware.mjs +9 -9
- package/dist/mobile.d.mts +27 -5
- package/dist/mobile.d.ts +27 -5
- package/dist/modules-VHD7BELU.mjs +13 -0
- package/dist/modules-WT5D3AWY.cjs +13 -0
- package/dist/native-specs-BD7HOTMJ.mjs +15 -0
- package/dist/native-specs-IQQRJOOW.cjs +15 -0
- package/dist/native-tree-6G5O53O3.cjs +27 -0
- package/dist/{native-tree-EBPDFTRW.mjs → native-tree-VWNW2MQ2.mjs} +10 -8
- package/dist/native.cjs +87 -0
- package/dist/native.d.mts +72 -0
- package/dist/native.d.ts +72 -0
- package/dist/native.mjs +87 -0
- package/dist/{navigation-delegate.d-C76gXTmO.d.mts → navigation-delegate.d-CnOTWOyi.d.mts} +1 -1
- package/dist/{navigation-delegate.d-DIyDslxt.d.ts → navigation-delegate.d-JXx40JzR.d.ts} +1 -1
- package/dist/navigation.cjs +5 -5
- package/dist/navigation.d.mts +5 -5
- package/dist/navigation.d.ts +5 -5
- package/dist/navigation.mjs +4 -4
- package/dist/{nitro-R444AF3O.mjs → nitro-FLN6DRGJ.mjs} +7 -7
- package/dist/{nitro-CK7M4RMY.cjs → nitro-HXAZZQKY.cjs} +12 -12
- package/dist/plugin.cjs +42 -42
- package/dist/plugin.d.mts +4 -4
- package/dist/plugin.d.ts +4 -4
- package/dist/plugin.mjs +41 -41
- package/dist/port-C6GBH4C6.cjs +419 -0
- package/dist/port-WOOQ3V56.mjs +419 -0
- package/dist/{production-runtime.d-CDHztggO.d.mts → production-runtime.d-CP5s6RuY.d.mts} +1 -1
- package/dist/{production-runtime.d-tyaGdbk6.d.ts → production-runtime.d-N-cE3pmy.d.ts} +1 -1
- package/dist/{programmatic-routes-client.d-XfmIrCK1.d.ts → programmatic-routes-client.d-CLG2N1yH.d.ts} +2 -2
- package/dist/{programmatic-routes-client.d-aAWiDd64.d.mts → programmatic-routes-client.d-CPbNqtIi.d.mts} +2 -2
- package/dist/query/client.cjs +6 -6
- package/dist/query/client.mjs +2 -2
- package/dist/{render-plan.d-Dr5WRjoV.d.ts → render-plan.d-B9lAP3uX.d.ts} +1 -1
- package/dist/{render-plan.d-Diwybxo8.d.mts → render-plan.d-DZ-qjjdG.d.mts} +1 -1
- package/dist/renderer/react/server.cjs +2 -2
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +6 -6
- package/dist/renderer-client.d.mts +5 -5
- package/dist/renderer-client.d.ts +5 -5
- package/dist/renderer-client.mjs +2 -2
- package/dist/{request.d-D01fRn--.d.ts → request.d-BiicaNxb.d.ts} +1 -1
- package/dist/{request.d-Dd3AFR79.d.mts → request.d-DV0oeUit.d.mts} +1 -1
- package/dist/request.d.mts +3 -3
- package/dist/request.d.ts +3 -3
- package/dist/{route-rendering.d-BQ53lJ_D.d.mts → route-rendering.d-BrIKA51A.d.mts} +1 -1
- package/dist/{route-rendering.d-Bhx4QoJt.d.ts → route-rendering.d-Iss0C7GR.d.ts} +1 -1
- package/dist/{router.d-DQ3k7EYn.d.ts → router.d-DjGn_al7.d.ts} +1 -1
- package/dist/{router.d-Bi23a6Xc.d.mts → router.d-mNTbOGV_.d.mts} +1 -1
- package/dist/{routes.d-C7jMJFvP.d.ts → routes.d-BKSjHuH9.d.ts} +25 -2
- package/dist/{routes.d-BgTd7vI4.d.mts → routes.d-qd8Qf4LG.d.mts} +25 -2
- package/dist/routes.d.mts +2 -2
- package/dist/routes.d.ts +2 -2
- package/dist/{rsc-pipeline-OCZIT5OF.cjs → rsc-pipeline-SVLBTY7H.cjs} +21 -21
- package/dist/{rsc-pipeline-K3ER3Q4N.mjs → rsc-pipeline-WBLBDQXA.mjs} +20 -20
- package/dist/{runtime-DKNSIH7V.cjs → runtime-DGUOWSMF.cjs} +293 -41
- package/dist/{runtime-MKYDEUZT.mjs → runtime-HFZTVNFF.mjs} +283 -31
- package/dist/{runtime.d-B2Js6qZ2.d.mts → runtime.d-BNVbojF1.d.mts} +1 -1
- package/dist/{runtime.d-BL-CGwoi.d.ts → runtime.d-Bm_4hP5T.d.ts} +1 -1
- package/dist/{schema-dev-notice-F6QYSOAI.mjs → schema-dev-notice-JMXEQWIQ.mjs} +3 -3
- package/dist/{schema-dev-notice-UU7DMZEU.cjs → schema-dev-notice-PLBFDTOF.cjs} +6 -6
- package/dist/server-fn-client.d.mts +1 -1
- package/dist/server-fn-client.d.ts +1 -1
- package/dist/server-plugins.cjs +1 -1
- package/dist/server-plugins.d.mts +3 -3
- package/dist/server-plugins.d.ts +3 -3
- package/dist/server-plugins.mjs +1 -1
- package/dist/server.cjs +81 -81
- package/dist/server.d.mts +11 -11
- package/dist/server.d.ts +11 -11
- package/dist/server.mjs +64 -64
- package/dist/session-2Q72D4QV.cjs +23 -0
- package/dist/{session-IGEDQ5PY.mjs → session-QZXZOPR2.mjs} +2 -2
- package/dist/shell-render.d-CG6bPiiA.d.mts +41 -0
- package/dist/shell-render.d-CG6bPiiA.d.ts +41 -0
- package/dist/{spa-router.d-DqZ6Lfs0.d.ts → spa-router.d-DAtnNoBe.d.ts} +11 -2
- package/dist/{spa-router.d-B2rIFGs0.d.mts → spa-router.d-DHDoXxDE.d.mts} +11 -2
- package/dist/testing.cjs +7 -7
- package/dist/testing.d.mts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.mjs +6 -6
- package/dist/{utils.d-Bv2MPeLR.d.ts → utils.d-DwZ-KLSB.d.ts} +7 -1
- package/dist/{utils.d-fqXe8lNc.d.mts → utils.d-uKZcKJk4.d.mts} +7 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +42 -42
- package/dist/vite.d.mts +10 -5
- package/dist/vite.d.ts +10 -5
- package/dist/vite.mjs +41 -41
- package/dist/workflows.cjs +3 -3
- package/dist/workflows.mjs +2 -2
- package/package.json +17 -3
- package/dist/agent-mcp-handler-YE4AGWHN.cjs +0 -18
- package/dist/chunk-MIGFX2FN.mjs +0 -758
- package/dist/chunk-P6MHI5O2.cjs +0 -758
- package/dist/native-tree-MMZS7S6W.cjs +0 -25
- package/dist/session-AAU7RNRO.cjs +0 -23
- package/dist/{chunk-7FVVQEVL.cjs → chunk-4BS3HSY7.cjs} +2 -2
- package/dist/{chunk-N7JQXQAV.cjs → chunk-5OJVKXFV.cjs} +2 -2
- package/dist/{chunk-WSDKXV4E.mjs → chunk-72KABRWN.mjs} +4 -4
- package/dist/{chunk-C3BOESDW.mjs → chunk-B4CWYGCG.mjs} +3 -3
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectFarmLlmsTxtPages
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KVW2M6PI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getFarmMarkdownMirrorPath,
|
|
6
6
|
isFarmMarkdownMirrorExposed
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YSXTNSXS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
_listFarmMCPCatalogs,
|
|
10
10
|
_listFarmRegisteredMCPServers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-C7GJDVN4.mjs";
|
|
12
12
|
import {
|
|
13
13
|
applyFarmBasePath,
|
|
14
14
|
stripFarmBasePath
|
|
@@ -17,7 +17,7 @@ var _chunkBUC3FDYCcjs = require('./chunk-BUC3FDYC.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk5OJVKXFVcjs = require('./chunk-5OJVKXFV.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
@@ -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 _chunkZP32GNJQcjs = require('./chunk-ZP32GNJQ.cjs');
|
|
33
33
|
|
|
34
34
|
// src/schema-dependencies.ts
|
|
35
35
|
function collectSchemaDependencies(owners) {
|
|
@@ -40,7 +40,7 @@ function collectSchemaDependencies(owners) {
|
|
|
40
40
|
for (const owner of owners) {
|
|
41
41
|
try {
|
|
42
42
|
known.set(owner.name, _chunkGBMWLDCCcjs.resolveSchemaModels.call(void 0, owner.name, owner.schema));
|
|
43
|
-
for (const model of
|
|
43
|
+
for (const model of _chunk5OJVKXFVcjs.collectSchemaModels.call(void 0, [[owner.name, owner.schema, owner.models]])) {
|
|
44
44
|
creators.set(model.modelName.toLowerCase(), owner.name);
|
|
45
45
|
claimedKeys.set(model.modelKey, owner.name);
|
|
46
46
|
}
|
|
@@ -64,7 +64,7 @@ function collectSchemaDependencies(owners) {
|
|
|
64
64
|
if (creator && creator !== owner.name) needs.add(creator);
|
|
65
65
|
};
|
|
66
66
|
try {
|
|
67
|
-
for (const model of
|
|
67
|
+
for (const model of _chunk5OJVKXFVcjs.collectSchemaModels.call(void 0, [[owner.name, owner.schema, owner.models]])) {
|
|
68
68
|
for (const field of Object.values(model.model.fields)) {
|
|
69
69
|
if (field.reference) add(referencedTable(owner.name, field.reference.model));
|
|
70
70
|
}
|
|
@@ -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 = _chunkZP32GNJQcjs.getIntegrationSchemas.call(void 0, config.integrations);
|
|
119
119
|
let integrationClient;
|
|
120
120
|
for (const [name, schema] of Object.entries(integrationSchemas)) {
|
|
121
121
|
owners.push({
|
|
@@ -125,7 +125,7 @@ function collectSchemaOwners(config) {
|
|
|
125
125
|
resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient = _chunkBUC3FDYCcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
for (const declaration of
|
|
128
|
+
for (const declaration of _chunk5OJVKXFVcjs.findSchemaTableOwners.call(void 0, config)) {
|
|
129
129
|
if (owners.some((owner) => owner.name === declaration.name)) continue;
|
|
130
130
|
owners.push({
|
|
131
131
|
name: declaration.name,
|
|
@@ -153,7 +153,7 @@ function resolveSchemaExecutor(client, owner, timeoutMs) {
|
|
|
153
153
|
if (candidate === void 0 || candidate === null) continue;
|
|
154
154
|
let adapter;
|
|
155
155
|
try {
|
|
156
|
-
adapter =
|
|
156
|
+
adapter = _chunk5OJVKXFVcjs.createSchemaExecutor.call(void 0, candidate, owner);
|
|
157
157
|
} catch (e3) {
|
|
158
158
|
continue;
|
|
159
159
|
}
|
|
@@ -172,7 +172,7 @@ function resolveSchemaExecutor(client, owner, timeoutMs) {
|
|
|
172
172
|
}
|
|
173
173
|
return void 0;
|
|
174
174
|
}
|
|
175
|
-
var describeReferencedTable = (database, table) =>
|
|
175
|
+
var describeReferencedTable = (database, table) => _chunk5OJVKXFVcjs.describeSchemaTable.call(void 0, database.executor, database.dialect, table);
|
|
176
176
|
async function checkSchema(config, options = {}) {
|
|
177
177
|
const timeoutMs = _nullishCoalesce(options.timeoutMs, () => ( DEFAULT_TIMEOUT_MS));
|
|
178
178
|
if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) {
|
|
@@ -206,7 +206,7 @@ async function checkSchema(config, options = {}) {
|
|
|
206
206
|
for (const owner of owners) {
|
|
207
207
|
try {
|
|
208
208
|
knownModels.set(owner.name, _chunkGBMWLDCCcjs.resolveSchemaModels.call(void 0, owner.name, owner.schema));
|
|
209
|
-
ownedModels.set(owner.name,
|
|
209
|
+
ownedModels.set(owner.name, _chunk5OJVKXFVcjs.collectSchemaModels.call(void 0, [[owner.name, owner.schema, owner.models]]));
|
|
210
210
|
} catch (error) {
|
|
211
211
|
issues.push({
|
|
212
212
|
severity: "error",
|
|
@@ -362,9 +362,9 @@ async function checkSchema(config, options = {}) {
|
|
|
362
362
|
const database = databases.get(owner.name);
|
|
363
363
|
if (!models || !database) continue;
|
|
364
364
|
try {
|
|
365
|
-
const crossOwner = await
|
|
365
|
+
const crossOwner = await _chunk5OJVKXFVcjs.planCrossOwnerReferences.call(void 0,
|
|
366
366
|
owner,
|
|
367
|
-
|
|
367
|
+
_chunk5OJVKXFVcjs.findSchemaTableOwners.call(void 0, config),
|
|
368
368
|
database.dialect,
|
|
369
369
|
database.executor
|
|
370
370
|
);
|
|
@@ -377,7 +377,7 @@ async function checkSchema(config, options = {}) {
|
|
|
377
377
|
onDelete: reference.onDelete
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
const stepPlan = _optionalChain([owner, 'access', _30 => _30.migrations, 'optionalAccess', _31 => _31.length]) ? await
|
|
380
|
+
const stepPlan = _optionalChain([owner, 'access', _30 => _30.migrations, 'optionalAccess', _31 => _31.length]) ? await _chunk5OJVKXFVcjs.planOwnerSchemaSteps.call(void 0, {
|
|
381
381
|
owner: owner.name,
|
|
382
382
|
schema: owner.schema,
|
|
383
383
|
steps: owner.migrations,
|
|
@@ -392,15 +392,15 @@ async function checkSchema(config, options = {}) {
|
|
|
392
392
|
const plan = await checkOwnerTables(
|
|
393
393
|
owner,
|
|
394
394
|
// What a pending rename will produce is not missing yet.
|
|
395
|
-
|
|
395
|
+
_chunk5OJVKXFVcjs.withoutRenameTargets.call(void 0, models, stepPlan),
|
|
396
396
|
database.dialect,
|
|
397
397
|
database.executor,
|
|
398
398
|
issues
|
|
399
399
|
);
|
|
400
400
|
const pending = plan.statements.length + (_nullishCoalesce(_optionalChain([plan, 'access', _32 => _32.upgrades, 'optionalAccess', _33 => _33.length]), () => ( 0)));
|
|
401
|
-
const state = pending > 0 ? await
|
|
402
|
-
const changes = state ?
|
|
403
|
-
if (state && changes &&
|
|
401
|
+
const state = pending > 0 ? await _chunk5OJVKXFVcjs.readSchemaState.call(void 0, database.executor, database.dialect, owner.name) : void 0;
|
|
402
|
+
const changes = state ? _chunk5OJVKXFVcjs.diffSchemaSnapshots.call(void 0, state.snapshot, _chunk5OJVKXFVcjs.createSchemaSnapshot.call(void 0, models)) : void 0;
|
|
403
|
+
if (state && changes && _chunk5OJVKXFVcjs.hasSchemaChanges.call(void 0, changes)) {
|
|
404
404
|
const versions = state.version && owner.version && state.version !== owner.version ? `upgraded ${state.version} \u2192 ${owner.version}` : "changed since it was last migrated";
|
|
405
405
|
issues.push({
|
|
406
406
|
severity: "warning",
|
|
@@ -436,7 +436,7 @@ async function checkSchema(config, options = {}) {
|
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
async function checkOwnerTables(owner, models, dialect, executor, issues) {
|
|
439
|
-
const plan = await
|
|
439
|
+
const plan = await _chunk5OJVKXFVcjs.planSchemaMigration.call(void 0, models, dialect, executor);
|
|
440
440
|
const present = /* @__PURE__ */ new Set([
|
|
441
441
|
...plan.upToDate,
|
|
442
442
|
...plan.drift.map((drift) => drift.table),
|
|
@@ -517,7 +517,7 @@ async function checkOwnerTables(owner, models, dialect, executor, issues) {
|
|
|
517
517
|
table: key.table,
|
|
518
518
|
column: key.column,
|
|
519
519
|
message: `"${key.table}.${key.column}" has no foreign key to "${key.referencedTable}.${key.referencedColumn}", which ${owner.name} could have.`,
|
|
520
|
-
hint: dialect === "sqlite" ? "SQLite can only add a foreign key when it creates the table." : `Allow it with \`${
|
|
520
|
+
hint: dialect === "sqlite" ? "SQLite can only add a foreign key when it creates the table." : `Allow it with \`${_chunk5OJVKXFVcjs.describeForeignKeyApproval.call(void 0, { owner: owner.name, modelKey: key.modelKey })}\` in farm.config, then run \`farm ${owner.name} migrate --apply\`. Rows that point at nothing are checked first.`
|
|
521
521
|
});
|
|
522
522
|
}
|
|
523
523
|
return plan;
|
|
@@ -599,9 +599,9 @@ async function checkReferences(owner, models, database, databases, resolveTarget
|
|
|
599
599
|
continue;
|
|
600
600
|
}
|
|
601
601
|
if (database.dialect === "sqlite" || dialect === "sqlite") continue;
|
|
602
|
-
const expected =
|
|
603
|
-
const mine =
|
|
604
|
-
const theirs =
|
|
602
|
+
const expected = _chunk5OJVKXFVcjs.getSqlColumnType.call(void 0, field, database.dialect);
|
|
603
|
+
const mine = _chunk5OJVKXFVcjs.columnTypeFamily.call(void 0, expected);
|
|
604
|
+
const theirs = _chunk5OJVKXFVcjs.columnTypeFamily.call(void 0, column.type);
|
|
605
605
|
if (mine && theirs && mine !== theirs) {
|
|
606
606
|
issues.push({
|
|
607
607
|
severity: "warning",
|
|
@@ -619,7 +619,7 @@ async function checkReferences(owner, models, database, databases, resolveTarget
|
|
|
619
619
|
async function checkExtensions(owner, extensions, databaseForTable, ownDatabase, allowExtend, issues) {
|
|
620
620
|
for (const extension of extensions) {
|
|
621
621
|
const database = _nullishCoalesce(databaseForTable(extension.table), () => ( ownDatabase));
|
|
622
|
-
const table = await
|
|
622
|
+
const table = await _chunk5OJVKXFVcjs.describeSchemaTable.call(void 0, database.executor, database.dialect, extension.table);
|
|
623
623
|
const columns = extension.fields.map(({ field }) => field.name);
|
|
624
624
|
if (!table) {
|
|
625
625
|
issues.push({
|
|
@@ -651,9 +651,9 @@ async function checkExtensions(owner, extensions, databaseForTable, ownDatabase,
|
|
|
651
651
|
continue;
|
|
652
652
|
}
|
|
653
653
|
if (database.dialect === "sqlite") continue;
|
|
654
|
-
const expected =
|
|
655
|
-
const mine =
|
|
656
|
-
const theirs =
|
|
654
|
+
const expected = _chunk5OJVKXFVcjs.getSqlColumnType.call(void 0, field, database.dialect);
|
|
655
|
+
const mine = _chunk5OJVKXFVcjs.columnTypeFamily.call(void 0, expected);
|
|
656
|
+
const theirs = _chunk5OJVKXFVcjs.columnTypeFamily.call(void 0, existing.type);
|
|
657
657
|
if (mine && theirs && mine !== theirs) {
|
|
658
658
|
issues.push({
|
|
659
659
|
severity: "warning",
|
|
@@ -25,18 +25,22 @@ import {
|
|
|
25
25
|
resolveFarmAgentSitemap,
|
|
26
26
|
resolveFarmNoindexPreviews,
|
|
27
27
|
resolveFarmPerformanceConfig
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-T4TBK5NY.mjs";
|
|
29
|
+
import {
|
|
30
|
+
farmCspBlocksFrameworkInlineScripts,
|
|
31
|
+
getFarmSecurityHeader,
|
|
32
|
+
resolveFarmSecurityConfig
|
|
33
|
+
} from "./chunk-22W4FNTG.mjs";
|
|
29
34
|
import {
|
|
30
35
|
resolveFarmAppManifestConfig
|
|
31
36
|
} from "./chunk-2WZTGPK6.mjs";
|
|
32
37
|
import {
|
|
33
38
|
resolveFarmLlmsTxtConfig
|
|
34
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KVW2M6PI.mjs";
|
|
35
40
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./chunk-22W4FNTG.mjs";
|
|
41
|
+
loadFarmConfigFile,
|
|
42
|
+
resolveFarmLayers
|
|
43
|
+
} from "./chunk-52Y3C3HG.mjs";
|
|
40
44
|
import {
|
|
41
45
|
resolveFarmImageConfig
|
|
42
46
|
} from "./chunk-2NGZFOKG.mjs";
|
|
@@ -44,34 +48,30 @@ import {
|
|
|
44
48
|
resolveEnv,
|
|
45
49
|
setEnv
|
|
46
50
|
} from "./chunk-N33DLJBC.mjs";
|
|
47
|
-
import {
|
|
48
|
-
loadFarmConfigFile,
|
|
49
|
-
resolveFarmLayers
|
|
50
|
-
} from "./chunk-52Y3C3HG.mjs";
|
|
51
51
|
import {
|
|
52
52
|
resolveMdxConfig
|
|
53
53
|
} from "./chunk-UIJOLBUL.mjs";
|
|
54
|
+
import {
|
|
55
|
+
resolveMarkdownConfig
|
|
56
|
+
} from "./chunk-YSXTNSXS.mjs";
|
|
54
57
|
import {
|
|
55
58
|
bundleNodeModule
|
|
56
59
|
} from "./chunk-VFXE6NWR.mjs";
|
|
57
60
|
import {
|
|
58
61
|
resolveWorkflowsConfig
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-JPIUGDK4.mjs";
|
|
60
63
|
import {
|
|
61
64
|
resolveCronConfig
|
|
62
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-3PX4AIXO.mjs";
|
|
63
66
|
import {
|
|
64
67
|
resolveServerActionsConfig
|
|
65
68
|
} from "./chunk-FSQMN2MQ.mjs";
|
|
66
69
|
import {
|
|
67
70
|
resolveFarmThemeConfig
|
|
68
71
|
} from "./chunk-YWPNIYUP.mjs";
|
|
69
|
-
import {
|
|
70
|
-
resolveMarkdownConfig
|
|
71
|
-
} from "./chunk-LPDKG6RA.mjs";
|
|
72
72
|
import {
|
|
73
73
|
resolveIntegrationPlugins
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-IFHPDLIS.mjs";
|
|
75
75
|
import {
|
|
76
76
|
compileMiddlewareConfig
|
|
77
77
|
} from "./chunk-EDPENAVO.mjs";
|
|
@@ -80,13 +80,13 @@ import {
|
|
|
80
80
|
} from "./chunk-MU5V7XHL.mjs";
|
|
81
81
|
import {
|
|
82
82
|
logger
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-JSDV2NUN.mjs";
|
|
84
84
|
import {
|
|
85
85
|
resolveFarmServerConfig
|
|
86
86
|
} from "./chunk-GFT5AHAT.mjs";
|
|
87
87
|
import {
|
|
88
88
|
resolveFarmAPIConfig
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-W6QLRQ3V.mjs";
|
|
90
90
|
import {
|
|
91
91
|
normalizeFarmDeploymentId
|
|
92
92
|
} from "./chunk-UAQD67HM.mjs";
|
|
@@ -831,7 +831,7 @@ async function resolveConfig(userConfig, mode) {
|
|
|
831
831
|
userConfig.deploymentId || process.env.FARM_DEPLOYMENT_ID || process.env.VERCEL_GIT_COMMIT_SHA || process.env.CF_PAGES_COMMIT_SHA || (mode === "production" ? await generateBuildId() : "development")
|
|
832
832
|
);
|
|
833
833
|
const basePath = normalizeFarmConfigBasePath(userConfig.basePath);
|
|
834
|
-
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-
|
|
834
|
+
const mobileSessionPlugin = userConfig.mobile !== void 0 && userConfig.mobile !== null ? (await import("./session-QZXZOPR2.mjs")).createFarmMobileSessionPlugin({
|
|
835
835
|
basePath,
|
|
836
836
|
integrations: () => integrations
|
|
837
837
|
}) : null;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkBPNOYILCcjs = require('./chunk-BPNOYILC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQMNWKQL4cjs = require('./chunk-QMNWKQL4.cjs');
|
|
8
8
|
|
|
9
9
|
// src/server-components-status.ts
|
|
10
10
|
var _fs = require('fs');
|
|
@@ -103,7 +103,7 @@ function farmAppUsesRscPipeline(config, root) {
|
|
|
103
103
|
if (status.fallback) {
|
|
104
104
|
if (!warnedFallback) {
|
|
105
105
|
warnedFallback = true;
|
|
106
|
-
|
|
106
|
+
_chunkQMNWKQL4cjs.logger.warn(
|
|
107
107
|
`[Farm.js] ${formatFarmRscFallbackMessage(status.missingPackages, status.blockingKeys)}`
|
|
108
108
|
);
|
|
109
109
|
}
|
|
@@ -113,7 +113,7 @@ function farmAppUsesRscPipeline(config, root) {
|
|
|
113
113
|
throw new Error(`[Farm.js] ${formatFarmRscBlockingMessage(status.blockingKeys)}`);
|
|
114
114
|
}
|
|
115
115
|
if (status.ignoredKeys.length > 0) {
|
|
116
|
-
|
|
116
|
+
_chunkQMNWKQL4cjs.logger.warn(
|
|
117
117
|
`[Farm.js] experimental.serverComponents runs on the RSC pipeline, which does not run ${formatKeys(
|
|
118
118
|
status.ignoredKeys
|
|
119
119
|
)} yet. ${status.ignoredKeys.length === 1 ? "It is" : "They are"} ignored.`
|
|
@@ -17,7 +17,7 @@ var _chunkKORZ6PREcjs = require('./chunk-KORZ6PRE.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkCBKRS3M4cjs = require('./chunk-CBKRS3M4.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkJXIYH2NOcjs = require('./chunk-JXIYH2NO.cjs');
|
|
@@ -36,7 +36,7 @@ var _chunkSNP33A33cjs = require('./chunk-SNP33A33.cjs');
|
|
|
36
36
|
var _chunkJYNNIGQOcjs = require('./chunk-JYNNIGQO.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkQMNWKQL4cjs = require('./chunk-QMNWKQL4.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
@@ -99,7 +99,7 @@ var APIRouteManager = class {
|
|
|
99
99
|
await this.loadProgrammaticApiRoutes(appDir);
|
|
100
100
|
}
|
|
101
101
|
this.routes = new Map(
|
|
102
|
-
|
|
102
|
+
_chunkCBKRS3M4cjs.mergePluginAPIRoutes.call(void 0, [...this.routes.values()], this.plugins, void 0, {
|
|
103
103
|
bodySizeLimit: this.bodySizeLimit,
|
|
104
104
|
dispatch: this.dispatch
|
|
105
105
|
}).map((route) => [route.path, route])
|
|
@@ -111,9 +111,9 @@ var APIRouteManager = class {
|
|
|
111
111
|
throw error;
|
|
112
112
|
}
|
|
113
113
|
if (process.env.FARM_VERBOSE) {
|
|
114
|
-
|
|
114
|
+
_chunkQMNWKQL4cjs.logger.success(`Discovered ${this.routes.size} API routes`);
|
|
115
115
|
for (const [routePath, route] of this.routes) {
|
|
116
|
-
|
|
116
|
+
_chunkQMNWKQL4cjs.logger.info(` ${route.methods.join(", ")} ${routePath}`);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -147,7 +147,7 @@ var APIRouteManager = class {
|
|
|
147
147
|
const routeModule = await this.loadModule(filePath);
|
|
148
148
|
const endpoints = {};
|
|
149
149
|
const availableMethods = [];
|
|
150
|
-
for (const method of
|
|
150
|
+
for (const method of _chunkCBKRS3M4cjs.API_ROUTE_METHODS) {
|
|
151
151
|
if (routeModule[method]) {
|
|
152
152
|
endpoints[method] = routeModule[method];
|
|
153
153
|
availableMethods.push(method);
|
|
@@ -238,7 +238,7 @@ var APIRouteManager = class {
|
|
|
238
238
|
}
|
|
239
239
|
handleLoadError(message, loadError) {
|
|
240
240
|
const error = _chunkKORZ6PREcjs.explainMissingOptionalPeer.call(void 0, loadError, message.replace(/^Error loading /, ""));
|
|
241
|
-
|
|
241
|
+
_chunkQMNWKQL4cjs.logger.error(`${message}: ${error}`);
|
|
242
242
|
if (this.throwOnLoadError || error instanceof APIRouteConflictError || error instanceof _chunkYTVSWXEZcjs.AmbiguousRouteError || error instanceof _chunkYTVSWXEZcjs.NonTerminalCatchAllRouteError) {
|
|
243
243
|
throw error;
|
|
244
244
|
}
|
|
@@ -329,7 +329,7 @@ var APIRouteManager = class {
|
|
|
329
329
|
const url = new URL(request.url);
|
|
330
330
|
const pathname = url.pathname;
|
|
331
331
|
const method = request.method.toUpperCase();
|
|
332
|
-
const match =
|
|
332
|
+
const match = _chunkCBKRS3M4cjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
|
|
333
333
|
if (!match) {
|
|
334
334
|
return new Response(JSON.stringify({ error: "Not Found" }), {
|
|
335
335
|
status: 404,
|
|
@@ -337,19 +337,19 @@ var APIRouteManager = class {
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
const { route, params } = match;
|
|
340
|
-
const endpoint =
|
|
340
|
+
const endpoint = _chunkCBKRS3M4cjs.resolveAPIRouteEndpoint.call(void 0, route, method);
|
|
341
341
|
if (!endpoint) {
|
|
342
342
|
return new Response(JSON.stringify({ error: "Method Not Allowed" }), {
|
|
343
343
|
status: 405,
|
|
344
344
|
headers: {
|
|
345
|
-
Allow:
|
|
345
|
+
Allow: _chunkCBKRS3M4cjs.getAllowedAPIRouteMethods.call(void 0, route).join(", "),
|
|
346
346
|
"Content-Type": "application/json"
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
const invoke = async () => {
|
|
351
351
|
try {
|
|
352
|
-
return await
|
|
352
|
+
return await _chunkCBKRS3M4cjs.invokeAPIRouteEndpoint.call(void 0, endpoint, request, params, this.bodySizeLimit);
|
|
353
353
|
} catch (error) {
|
|
354
354
|
if (options.throwOnError) throw error;
|
|
355
355
|
console.error(`[API Error] ${pathname}:`, error);
|
|
@@ -371,7 +371,7 @@ var APIRouteManager = class {
|
|
|
371
371
|
return Boolean(this.matchRoute(pathname));
|
|
372
372
|
}
|
|
373
373
|
matchRoute(pathname) {
|
|
374
|
-
return
|
|
374
|
+
return _chunkCBKRS3M4cjs.matchAPIRouteAtBasePath.call(void 0, this.routes, pathname, this.basePath);
|
|
375
375
|
}
|
|
376
376
|
/**
|
|
377
377
|
* Get all routes for client type generation
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isAPIRouteRef,
|
|
8
8
|
resolveServerFnInvalidateTargets,
|
|
9
9
|
settleServerFnOptimisticUpdates
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7H45IJWO.mjs";
|
|
11
11
|
import {
|
|
12
12
|
notifyClientObserver
|
|
13
13
|
} from "./chunk-IAPTECEB.mjs";
|
|
@@ -1352,6 +1352,7 @@ LinkWithRef.displayName = "Link";
|
|
|
1352
1352
|
var Link = LinkWithRef;
|
|
1353
1353
|
function resolveLinkHref(href, params, options) {
|
|
1354
1354
|
if (isExternalUrl(href)) return href;
|
|
1355
|
+
if (href.startsWith("#") && !params && !options.query && options.hash === void 0) return href;
|
|
1355
1356
|
const { pathname, query, hash } = splitInternalHref(href);
|
|
1356
1357
|
const resolvedHref = buildFarmRoutePath(pathname, params, {
|
|
1357
1358
|
query: mergeQueryParams(query, options.query),
|
|
@@ -139,7 +139,7 @@ function joinURLPath(basePath, suffix) {
|
|
|
139
139
|
return `${normalizedBase}/${normalizedSuffix}`;
|
|
140
140
|
}
|
|
141
141
|
function getDefaultOrigin() {
|
|
142
|
-
return typeof window !== "undefined" ? window.location.origin : "http://localhost:3000";
|
|
142
|
+
return typeof window !== "undefined" && window.location ? window.location.origin : "http://localhost:3000";
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
export {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
planSchemaMigration,
|
|
18
18
|
readSchemaState,
|
|
19
19
|
withoutRenameTargets
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-72KABRWN.mjs";
|
|
21
21
|
import {
|
|
22
22
|
collectSchemaExtensions,
|
|
23
23
|
describeSchemaExtensionApproval,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-F3N52U7S.mjs";
|
|
30
30
|
import {
|
|
31
31
|
getIntegrationSchemas
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IFHPDLIS.mjs";
|
|
33
33
|
|
|
34
34
|
// src/schema-dependencies.ts
|
|
35
35
|
function collectSchemaDependencies(owners) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|