@farm.js/core 0.1.66 → 0.1.67
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-QLFDDTYN.mjs → agent-mcp-handler-AZ7QW4UP.mjs} +5 -5
- package/dist/{agent-mcp-handler-OXT73ZBY.cjs → agent-mcp-handler-FER4MQDF.cjs} +6 -6
- package/dist/{agent-mcp.d-QD2WZ9BS.d.ts → agent-mcp.d-BFu9xHAi.d.ts} +1 -1
- package/dist/{agent-mcp.d-CO_ABmNK.d.mts → agent-mcp.d-DWyWkTSy.d.mts} +1 -1
- package/dist/agent-runtime.cjs +6 -5
- package/dist/agent-runtime.d.mts +6 -6
- package/dist/agent-runtime.d.ts +6 -6
- package/dist/agent-runtime.mjs +5 -4
- package/dist/analyzer-KVZGVY5Q.cjs +16 -0
- package/dist/{analyzer-4UFP4HVP.mjs → analyzer-TTIIXXMQ.mjs} +2 -2
- package/dist/api/client.cjs +12 -2
- package/dist/api/client.d.mts +4 -4
- package/dist/api/client.d.ts +4 -4
- package/dist/api/client.mjs +12 -2
- package/dist/api/client.native.cjs +12 -2
- package/dist/api/client.native.d.mts +5 -5
- package/dist/api/client.native.d.ts +5 -5
- package/dist/api/client.native.mjs +12 -2
- package/dist/api/node.cjs +223 -0
- package/dist/api/node.d.mts +59 -0
- package/dist/api/node.d.ts +59 -0
- package/dist/api/node.mjs +223 -0
- package/dist/api/route-manager.cjs +11 -11
- package/dist/api/route-manager.d.mts +10 -9
- package/dist/api/route-manager.d.ts +10 -9
- package/dist/api/route-manager.mjs +10 -10
- package/dist/api/runtime.cjs +11 -7
- package/dist/api/runtime.d.mts +7 -7
- package/dist/api/runtime.d.ts +7 -7
- package/dist/api/runtime.mjs +10 -6
- package/dist/{api-client.d-BNLXNCXJ.d.mts → api-client.d-Bp35zMqR.d.mts} +1 -1
- package/dist/{api-client.d-ddQBNGtu.d.ts → api-client.d-CFI_xL0V.d.ts} +1 -1
- package/dist/api.cjs +17 -13
- package/dist/api.d.mts +11 -10
- package/dist/api.d.ts +11 -10
- package/dist/api.mjs +16 -12
- package/dist/{app-manifest.d-BpKxiU_E.d.mts → app-manifest.d-CRmjN5j9.d.mts} +1 -1
- package/dist/{app-manifest.d-DDmNkYQQ.d.ts → app-manifest.d-CwfhGrVR.d.ts} +1 -1
- package/dist/app-markdown.cjs +5 -5
- package/dist/app-markdown.d.mts +7 -7
- package/dist/app-markdown.d.ts +7 -7
- package/dist/app-markdown.mjs +4 -4
- package/dist/{app.d-x68Cwr0_.d.ts → app.d-BX9LVTiP.d.ts} +50 -9
- package/dist/{app.d-kuoVWhWM.d.mts → app.d-uBBUxwyV.d.mts} +50 -9
- package/dist/{chunk-V56632LA.cjs → chunk-22IWL4YD.cjs} +19 -5
- package/dist/{chunk-RY4ABNPE.cjs → chunk-23PVOIPT.cjs} +3 -3
- package/dist/{chunk-5C7XMKQ4.cjs → chunk-2AFW7673.cjs} +6 -1
- package/dist/{chunk-SYW346ZN.cjs → chunk-2LHZD3OP.cjs} +1 -21
- package/dist/{chunk-ZZI56IUY.mjs → chunk-2ZOYOYEE.mjs} +13 -13
- package/dist/{chunk-RVGSVQWT.mjs → chunk-3T5TLFCQ.mjs} +10 -5
- package/dist/{chunk-XBSKPLHF.cjs → chunk-3T7ALZJF.cjs} +2 -2
- package/dist/{chunk-7ONGIFYX.cjs → chunk-4DRINDGN.cjs} +319 -138
- package/dist/{chunk-O6L3YYPM.cjs → chunk-4E57QHPW.cjs} +8 -16
- package/dist/{chunk-WKPBIT5Q.cjs → chunk-4HGLJOXZ.cjs} +6 -6
- package/dist/{chunk-JGAE5XPL.cjs → chunk-4JX3M4C6.cjs} +2 -1
- package/dist/{chunk-CJNAUEVC.mjs → chunk-4QENVMG7.mjs} +1 -1
- package/dist/{chunk-CHYTADNK.cjs → chunk-556H7JCE.cjs} +65 -48
- package/dist/{chunk-OLIGNTWU.cjs → chunk-5NFQ6AZI.cjs} +7 -7
- package/dist/{chunk-6HRAK7I5.mjs → chunk-5OFNUETM.mjs} +8 -2
- package/dist/{chunk-TZVUF5JJ.mjs → chunk-5TA63JD3.mjs} +4 -4
- package/dist/{chunk-RD623KW4.cjs → chunk-67MZTLTF.cjs} +21 -3
- package/dist/chunk-6I4BFRE7.cjs +51 -0
- package/dist/{chunk-4TVPYN32.cjs → chunk-6R53ZWX2.cjs} +7 -7
- package/dist/{chunk-MGKW5XZE.cjs → chunk-6SQZXRJ2.cjs} +7 -7
- package/dist/{chunk-MPJEIHW2.cjs → chunk-6V5YWI4W.cjs} +2 -2
- package/dist/{chunk-BM2LH2JM.mjs → chunk-6YBYX4K4.mjs} +13 -12
- package/dist/{chunk-X3XUZWRB.mjs → chunk-724MGMIL.mjs} +17 -3
- package/dist/{chunk-K5EW7GUU.mjs → chunk-7BIW7VCW.mjs} +13 -5
- package/dist/{chunk-HPP2II4Z.mjs → chunk-7PJARAQQ.mjs} +1 -1
- package/dist/{chunk-LEJDW34D.cjs → chunk-7PPLTD3P.cjs} +3 -3
- package/dist/{chunk-TGULJSHD.mjs → chunk-AJNBTOVQ.mjs} +20 -9
- package/dist/{chunk-FBEBSAVI.cjs → chunk-AKIQ54FK.cjs} +82 -63
- package/dist/{chunk-2NGZFOKG.mjs → chunk-AOIUYHPH.mjs} +2 -2
- package/dist/{chunk-ZEXE4TGY.mjs → chunk-AQDLVHNF.mjs} +230 -110
- package/dist/{chunk-NKRZLQUK.mjs → chunk-AQIO3RNL.mjs} +1 -1
- package/dist/chunk-AQIRXBBY.cjs +26 -0
- package/dist/chunk-AZ6IW6SF.mjs +28 -0
- package/dist/{chunk-QMDU6QHN.mjs → chunk-B6RBJJ5G.mjs} +1 -1
- package/dist/{chunk-I32V5CZL.cjs → chunk-BDYM2TN3.cjs} +28 -17
- package/dist/{chunk-JLDNXURZ.cjs → chunk-BZWTBELF.cjs} +32 -32
- package/dist/{chunk-ITV4QQL2.cjs → chunk-C6CUUBY5.cjs} +14 -3
- package/dist/{chunk-YN6BHOYY.cjs → chunk-CL52PD6D.cjs} +10 -3
- package/dist/{chunk-UBMHQVWN.mjs → chunk-CO3YMZFD.mjs} +1 -1
- package/dist/{chunk-XURDCXNH.cjs → chunk-CSLHNBPS.cjs} +6 -6
- package/dist/{chunk-CNNBFGL5.cjs → chunk-DB2HSHQA.cjs} +14 -14
- package/dist/{chunk-XQSYOVCW.cjs → chunk-DBYNZIIQ.cjs} +13 -5
- package/dist/{chunk-DVKH2RVN.cjs → chunk-DCXSIEFE.cjs} +40 -41
- package/dist/{chunk-D4MRNBVF.cjs → chunk-DGOFR7D5.cjs} +2 -2
- package/dist/{chunk-QTD6EMN2.mjs → chunk-DQ2DI3Y7.mjs} +11 -4
- package/dist/chunk-DXZ57EPE.mjs +375 -0
- package/dist/{chunk-SA7MLSP4.mjs → chunk-E3HDJCWF.mjs} +3 -3
- package/dist/{chunk-BYRZ5VTH.mjs → chunk-E6CD45JK.mjs} +30 -31
- package/dist/{chunk-752XUZIM.cjs → chunk-EGIY4A7V.cjs} +6 -6
- package/dist/chunk-EIVGPQN5.mjs +51 -0
- package/dist/{chunk-KPAJWD3N.mjs → chunk-EYPSKXO4.mjs} +1 -1
- package/dist/{chunk-E552H232.cjs → chunk-F43OG25P.cjs} +1 -1
- package/dist/{chunk-UAQD67HM.mjs → chunk-F7JKVHU2.mjs} +1 -1
- package/dist/{chunk-QISW423S.cjs → chunk-FPBOAG6N.cjs} +2 -2
- package/dist/{chunk-2C5L5RPM.cjs → chunk-FT6KJHS3.cjs} +71 -38
- package/dist/{chunk-ES2LD2YD.mjs → chunk-GCRT6GJG.mjs} +18 -0
- package/dist/{chunk-5OJVKXFV.cjs → chunk-GDM3ZD2O.cjs} +10 -8
- package/dist/{chunk-EMDGXYUD.mjs → chunk-GJ7QVFAG.mjs} +16 -7
- package/dist/{chunk-TGSEVBPO.mjs → chunk-GJEC5S4V.mjs} +11 -0
- package/dist/{chunk-672ISQIG.mjs → chunk-GTV2ABO7.mjs} +218 -37
- package/dist/{chunk-MPIGW42F.mjs → chunk-H37MDCPR.mjs} +1 -1
- package/dist/{chunk-HNAISJFD.cjs → chunk-HDPT6OYE.cjs} +9 -3
- package/dist/{chunk-25T5VXOE.mjs → chunk-HFHJJXSV.mjs} +106 -19
- package/dist/{chunk-ZNH6NR3H.cjs → chunk-HJZZSBVK.cjs} +2 -2
- package/dist/{chunk-BIF5MLTH.cjs → chunk-HM7AGSKU.cjs} +1 -1
- package/dist/{chunk-GL7N5UHF.cjs → chunk-HNVAZGQD.cjs} +20 -9
- package/dist/{chunk-SK7QSNWE.mjs → chunk-HP2DQGQH.mjs} +1 -1
- package/dist/{chunk-435QJNC2.mjs → chunk-HRPTMX5C.mjs} +4 -4
- package/dist/{chunk-K7OZAVOI.mjs → chunk-IFR74W6S.mjs} +46 -13
- package/dist/{chunk-5A77OEIG.cjs → chunk-IHTDLCDJ.cjs} +5 -5
- package/dist/{chunk-VQJHT2ND.mjs → chunk-IRA2CZAY.mjs} +2 -2
- package/dist/{chunk-OYZXVBZP.cjs → chunk-IUKBPBM7.cjs} +2 -1
- package/dist/chunk-J6TZRYCO.cjs +22 -0
- package/dist/{chunk-WYAXRIYP.cjs → chunk-J7JHVCWA.cjs} +8 -8
- package/dist/chunk-JSOCDYER.cjs +375 -0
- package/dist/{chunk-TKK5QHKZ.mjs → chunk-JVM3DKZE.mjs} +3 -3
- package/dist/{chunk-UPYIFH2H.cjs → chunk-JWLRBDDC.cjs} +2 -2
- package/dist/{chunk-BQWBHWEW.mjs → chunk-JWSI5WO4.mjs} +1 -1
- package/dist/{chunk-OLGQZRW6.mjs → chunk-JZBU7V4D.mjs} +37 -17
- package/dist/{chunk-ONG4RDW3.mjs → chunk-JZGL2PIH.mjs} +13 -3
- package/dist/chunk-K63OWRY2.mjs +22 -0
- package/dist/{chunk-TUPKMMXT.mjs → chunk-K6HIIWUB.mjs} +1 -1
- package/dist/{chunk-MESQF2JC.mjs → chunk-K6SXMVXO.mjs} +2 -2
- package/dist/{chunk-L2JG337G.cjs → chunk-K6VFYFOY.cjs} +33 -31
- package/dist/{chunk-3CCAICF7.cjs → chunk-KCY52OUQ.cjs} +4 -4
- package/dist/{chunk-EZ34EHQP.mjs → chunk-KI3MU7B5.mjs} +1 -1
- package/dist/{chunk-GHNW564E.mjs → chunk-KSZK34HU.mjs} +30 -10
- package/dist/{chunk-RFKTJTWZ.mjs → chunk-KWFNUODD.mjs} +2 -1
- package/dist/{chunk-ECKQFEX2.mjs → chunk-LENKRGBV.mjs} +8 -6
- package/dist/{chunk-752IHQTD.cjs → chunk-LPIZMU7D.cjs} +12 -12
- package/dist/{chunk-HEPJIKKQ.cjs → chunk-MCSRMEQV.cjs} +2 -2
- package/dist/{chunk-DQF3QLOH.mjs → chunk-ME7RVELR.mjs} +3 -2
- package/dist/{chunk-E4UDLFWR.cjs → chunk-N5DQMOAG.cjs} +588 -677
- package/dist/{chunk-O4F3JUST.mjs → chunk-NDDRTFN4.mjs} +4 -0
- package/dist/{chunk-CBOEJ5Z4.cjs → chunk-OB3IFUK6.cjs} +133 -46
- package/dist/{chunk-R62SF5R4.mjs → chunk-OB45EAQL.mjs} +6 -1
- package/dist/{chunk-SYXPWJ7N.cjs → chunk-OFBLGH6V.cjs} +17 -18
- package/dist/{chunk-VQ4NWOWO.mjs → chunk-OGVTUGMU.mjs} +5 -13
- package/dist/{chunk-3UZVPO72.mjs → chunk-OIOPQ25L.mjs} +6 -7
- package/dist/{chunk-2XGBJSDV.cjs → chunk-OO7DYIJD.cjs} +73 -24
- package/dist/{chunk-27FPUFWR.mjs → chunk-P2NBQ5JI.mjs} +1 -1
- package/dist/{chunk-HZPKJRYA.cjs → chunk-PDFFYZAT.cjs} +2 -2
- package/dist/{chunk-GSVJ3IIF.cjs → chunk-PHCJJJZV.cjs} +2 -2
- package/dist/{chunk-EVMXPJCB.mjs → chunk-PKMUQ7LM.mjs} +2 -1
- package/dist/{chunk-4OSOLDPL.cjs → chunk-PL6RTBDE.cjs} +2 -2
- package/dist/{chunk-OAJOQU5J.mjs → chunk-PLJKJJ2H.mjs} +82 -63
- package/dist/{chunk-WMTBBQHY.cjs → chunk-PPX7UOFY.cjs} +271 -151
- package/dist/{chunk-6XQSPIN6.cjs → chunk-PWKAX5MS.cjs} +13 -3
- package/dist/{chunk-7XGWBPQQ.cjs → chunk-Q37INCXG.cjs} +13 -8
- package/dist/{chunk-OP7LHY4Y.cjs → chunk-Q5UX55YA.cjs} +1445 -601
- package/dist/{chunk-NHQM2Q4I.cjs → chunk-QGQP6QKO.cjs} +2 -2
- package/dist/{chunk-IT6WRNGB.cjs → chunk-QITSS4TD.cjs} +1381 -626
- package/dist/{chunk-4ZJ5C7UJ.cjs → chunk-QIXEU2WV.cjs} +19 -10
- package/dist/{chunk-HCGWDRZO.mjs → chunk-QJVW76JG.mjs} +17 -6
- package/dist/{chunk-FJWN7RV4.cjs → chunk-QO43L7Z4.cjs} +38 -8
- package/dist/{chunk-ZIHWAN55.cjs → chunk-RE5E2G5S.cjs} +1 -1
- package/dist/chunk-RWR7SMD7.cjs +50 -0
- package/dist/{chunk-7PTISZSQ.cjs → chunk-S7MWSFFP.cjs} +4 -0
- package/dist/chunk-SD6JGJOM.mjs +50 -0
- package/dist/{chunk-7H4SVNC4.cjs → chunk-SPP3EZTJ.cjs} +46 -26
- package/dist/{chunk-E4RDMG3K.mjs → chunk-TEG6HJVF.mjs} +4 -4
- package/dist/{chunk-WAY6LOQH.mjs → chunk-TEJ67GD2.mjs} +1 -1
- package/dist/{chunk-IFTGERT3.mjs → chunk-TTXIITYA.mjs} +49 -0
- package/dist/{chunk-ZFWYCVKS.mjs → chunk-TY5KCYDE.mjs} +22 -4
- package/dist/{chunk-W2ZXMMHA.mjs → chunk-UHE5JUKB.mjs} +1 -1
- package/dist/{chunk-OB7VKCUZ.mjs → chunk-UHNSY2PQ.mjs} +1302 -458
- package/dist/{chunk-UJ3R2AH2.cjs → chunk-UPOYKX4S.cjs} +5 -5
- package/dist/{chunk-2DLGV2ZG.mjs → chunk-UTUS6JUH.mjs} +1 -21
- package/dist/{chunk-WVYRLP5E.mjs → chunk-V5MQMQ2P.mjs} +1 -1
- package/dist/{chunk-VBCQ5WOI.cjs → chunk-V5RTHYJB.cjs} +30 -10
- package/dist/{chunk-WFWFECDW.mjs → chunk-VK54PDQ6.mjs} +25 -5
- package/dist/{chunk-LQNW3ABP.cjs → chunk-VX2HZGC7.cjs} +14 -14
- package/dist/{chunk-XBSLKXBL.mjs → chunk-WDD5CTZW.mjs} +49 -32
- package/dist/{chunk-EMNKZGF4.mjs → chunk-WGHY3OL5.mjs} +354 -443
- package/dist/{chunk-A2MN5PQJ.mjs → chunk-WMLSZAKN.mjs} +9 -9
- package/dist/{chunk-3EEET2Q5.cjs → chunk-WUTFJOV7.cjs} +32 -12
- package/dist/chunk-WVQNXXNE.cjs +28 -0
- package/dist/{chunk-Y5TOT5F6.cjs → chunk-X3MHKLCO.cjs} +5 -5
- package/dist/{chunk-Z7P2BTZ3.cjs → chunk-XGTFLG73.cjs} +30 -12
- package/dist/{chunk-AZUUKA66.mjs → chunk-XNZWMXCF.mjs} +1090 -335
- package/dist/{chunk-FIR62CR3.mjs → chunk-XUES6OET.mjs} +1 -1
- package/dist/{chunk-XCXHQBMM.mjs → chunk-Y2LU4LE5.mjs} +1 -1
- package/dist/{chunk-5J45H65F.mjs → chunk-Y5LEPEVH.mjs} +1 -1
- package/dist/{chunk-BT4SEFLC.cjs → chunk-YAEN3L2F.cjs} +3 -2
- package/dist/chunk-YFTGIHNC.mjs +26 -0
- package/dist/{chunk-KL7SHLQB.mjs → chunk-YGJ5P3TJ.mjs} +31 -1
- package/dist/{chunk-O75GQVUK.mjs → chunk-YQYTQJZN.mjs} +1 -1
- package/dist/{chunk-X4K7TYN6.cjs → chunk-YVTS3S3F.cjs} +24 -23
- package/dist/{chunk-72KABRWN.mjs → chunk-ZJGFAW5U.mjs} +5 -3
- package/dist/{chunk-TNBJ4LZG.mjs → chunk-ZPKJPM7K.mjs} +4 -4
- package/dist/client/lifecycle.cjs +2 -2
- package/dist/client/lifecycle.d.mts +1 -1
- package/dist/client/lifecycle.d.ts +1 -1
- package/dist/client/lifecycle.mjs +1 -1
- package/dist/{client-component.d-D74pqdea.d.mts → client-component.d-CDRvRmbU.d.mts} +2 -2
- package/dist/{client-component.d-D8VcypQA.d.ts → client-component.d-DWRKyAp5.d.ts} +2 -2
- package/dist/client-plugins.cjs +2 -2
- package/dist/{client-plugins.d-D4-6hNx7.d.mts → client-plugins.d-BNILjfX3.d.mts} +94 -140
- package/dist/{client-plugins.d-CXElzotB.d.ts → client-plugins.d-CrKZiNSN.d.ts} +94 -140
- package/dist/client-plugins.d.mts +6 -6
- package/dist/client-plugins.d.ts +6 -6
- package/dist/client-plugins.mjs +1 -1
- package/dist/client.cjs +11 -9
- package/dist/client.d.mts +13 -13
- package/dist/client.d.ts +13 -13
- package/dist/client.mjs +10 -8
- package/dist/{config.d-qt-mE8O5.d.mts → config.d-BKIhJtmr.d.mts} +7 -2
- package/dist/{config.d-qt-mE8O5.d.ts → config.d-BKIhJtmr.d.ts} +7 -2
- package/dist/config.d.mts +6 -6
- package/dist/config.d.ts +6 -6
- package/dist/cron.cjs +2 -2
- package/dist/cron.mjs +1 -1
- package/dist/deferred.cjs +2 -2
- package/dist/deferred.mjs +1 -1
- package/dist/deployment.cjs +2 -2
- package/dist/deployment.mjs +1 -1
- package/dist/desktop.d.mts +7 -7
- package/dist/desktop.d.ts +7 -7
- package/dist/{devtools-N2JQCMXB.cjs → devtools-RZVT4JVN.cjs} +36 -32
- package/dist/{devtools-NZUVNUP3.mjs → devtools-UFQYT3VA.mjs} +31 -27
- package/dist/docs.cjs +26 -25
- package/dist/docs.d.mts +20 -8
- package/dist/docs.d.ts +20 -8
- package/dist/docs.mjs +25 -24
- package/dist/env-types.cjs +3 -3
- package/dist/env-types.mjs +2 -2
- package/dist/environment/vite.cjs +5 -5
- package/dist/environment/vite.mjs +4 -4
- package/dist/headers.cjs +3 -3
- package/dist/headers.mjs +2 -2
- 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-config.d-CeDgNyX4.d.mts → image-config.d-ByhQ0TT7.d.mts} +3 -1
- package/dist/{image-config.d-CeDgNyX4.d.ts → image-config.d-ByhQ0TT7.d.ts} +3 -1
- package/dist/image.cjs +6 -6
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/image.mjs +1 -1
- package/dist/index.cjs +142 -127
- package/dist/{index.d-SSgYDv4D.d.mts → index.d-Bdm6866n.d.mts} +1 -1
- package/dist/{index.d-A_x10zGS.d.ts → index.d-Dey5T14f.d.ts} +1 -1
- package/dist/index.d.mts +31 -82
- package/dist/index.d.ts +31 -82
- package/dist/index.mjs +213 -198
- package/dist/{integration-orm-52GPGTHO.cjs → integrations/orm.cjs} +5 -5
- package/dist/integrations/orm.d.mts +33 -0
- package/dist/integrations/orm.d.ts +33 -0
- package/dist/{integration-orm-CO23MSFE.mjs → integrations/orm.mjs} +5 -5
- package/dist/integrations.cjs +6 -5
- package/dist/integrations.d.mts +6 -6
- package/dist/integrations.d.ts +6 -6
- package/dist/integrations.mjs +5 -4
- package/dist/internal/app-markdown-runtime.cjs +4 -4
- package/dist/internal/app-markdown-runtime.d.mts +17 -8
- package/dist/internal/app-markdown-runtime.d.ts +17 -8
- package/dist/internal/app-markdown-runtime.mjs +3 -3
- package/dist/internal/build-runtime.cjs +68 -66
- package/dist/internal/build-runtime.d.mts +8 -8
- package/dist/internal/build-runtime.d.ts +8 -8
- package/dist/internal/build-runtime.mjs +67 -65
- package/dist/internal/cli-runtime.cjs +45 -44
- package/dist/internal/cli-runtime.mjs +44 -43
- package/dist/internal/client-error-overlay.cjs +6 -6
- package/dist/internal/client-error-overlay.mjs +2 -2
- package/dist/internal/client-runtime.cjs +60 -6
- package/dist/internal/client-runtime.d.mts +40 -11
- package/dist/internal/client-runtime.d.ts +40 -11
- package/dist/internal/client-runtime.mjs +58 -4
- package/dist/internal/compression-runtime.d.mts +6 -6
- package/dist/internal/compression-runtime.d.ts +6 -6
- package/dist/internal/config-runtime.cjs +25 -24
- package/dist/internal/config-runtime.d.mts +9 -9
- package/dist/internal/config-runtime.d.ts +9 -9
- package/dist/internal/config-runtime.mjs +24 -23
- package/dist/internal/docs-precompiled-runtime.cjs +16 -5
- package/dist/internal/docs-precompiled-runtime.d.mts +7 -0
- package/dist/internal/docs-precompiled-runtime.d.ts +7 -0
- package/dist/internal/docs-precompiled-runtime.mjs +15 -4
- package/dist/internal/infra-analytics-runtime.cjs +11 -11
- package/dist/internal/infra-analytics-runtime.mjs +9 -9
- package/dist/internal/islands-runtime.cjs +33 -4
- package/dist/internal/islands-runtime.d.mts +1 -1
- package/dist/internal/islands-runtime.d.ts +1 -1
- package/dist/internal/islands-runtime.mjs +31 -2
- package/dist/internal/native-server-fns.cjs +5 -5
- package/dist/internal/native-server-fns.mjs +4 -4
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +53 -39
- package/dist/internal/production-runtime.d.mts +16 -15
- package/dist/internal/production-runtime.d.ts +16 -15
- package/dist/internal/production-runtime.mjs +68 -54
- package/dist/internal/react-cache.cjs +3 -3
- package/dist/internal/react-cache.mjs +1 -1
- package/dist/{lifecycle.d-C2aLBOwu.d.ts → lifecycle.d-keQs5Swc.d.mts} +7 -1
- package/dist/{lifecycle.d-C2aLBOwu.d.mts → lifecycle.d-keQs5Swc.d.ts} +7 -1
- package/dist/{manager-H5ZM3HAM.mjs → manager-JIA66YJ2.mjs} +4 -3
- package/dist/manager-JOHU6BQI.cjs +15 -0
- package/dist/markdown.cjs +7 -3
- package/dist/markdown.d.mts +6 -6
- package/dist/markdown.d.ts +6 -6
- package/dist/markdown.mjs +6 -2
- package/dist/middleware.cjs +10 -10
- package/dist/middleware.d.mts +8 -8
- package/dist/middleware.d.ts +8 -8
- package/dist/middleware.mjs +9 -9
- package/dist/mobile.d.mts +4 -4
- package/dist/mobile.d.ts +4 -4
- package/dist/mount.d-BP0nLYQO.d.mts +38 -0
- package/dist/mount.d-CkiPky_F.d.ts +38 -0
- package/dist/{native-server-fn-handler-GLRHAYWV.mjs → native-server-fn-handler-EP5AFJYE.mjs} +5 -5
- package/dist/{native-server-fn-handler-J5MYRXN6.cjs → native-server-fn-handler-QRTXGZA4.cjs} +6 -6
- package/dist/{native-tree-7LPH57Z4.cjs → native-tree-W2SSJB3Y.cjs} +4 -4
- package/dist/{native-tree-VV6WN3GX.mjs → native-tree-Y5YQANW7.mjs} +3 -3
- package/dist/{navigation-delegate.d-DQVYKoaZ.d.mts → navigation-delegate.d-CdBP-hkZ.d.mts} +1 -1
- package/dist/{navigation-delegate.d-GghbHJuK.d.ts → navigation-delegate.d-DchcGzAQ.d.ts} +1 -1
- package/dist/navigation.cjs +8 -7
- package/dist/navigation.d.mts +9 -9
- package/dist/navigation.d.ts +9 -9
- package/dist/navigation.mjs +7 -6
- package/dist/{nitro-DD4QCA66.mjs → nitro-55YOZWRA.mjs} +11 -11
- package/dist/{nitro-VRDX2H4M.cjs → nitro-EEX2J3KB.cjs} +13 -13
- package/dist/{plugin-53SY5YBS.mjs → plugin-SAS22JL7.mjs} +4 -3
- package/dist/{plugin-HZIBL3DW.cjs → plugin-WIU4GDD4.cjs} +5 -4
- package/dist/plugin.cjs +61 -59
- package/dist/plugin.d.mts +8 -8
- package/dist/plugin.d.ts +8 -8
- package/dist/plugin.mjs +60 -58
- package/dist/{production-runtime.d-Bzns3NW9.d.ts → production-runtime.d-Dou_Htas.d.ts} +1 -1
- package/dist/{production-runtime.d-DiFa5vHW.d.mts → production-runtime.d-VwsBzIee.d.mts} +1 -1
- package/dist/query/client.cjs +9 -7
- package/dist/query/client.mjs +5 -3
- package/dist/{render-plan.d-CL_Ikfg_.d.ts → render-plan.d-D8UakAIk.d.ts} +1 -1
- package/dist/{render-plan.d-CcF0MeCf.d.mts → render-plan.d-LKymStDJ.d.mts} +1 -1
- package/dist/renderer/none/server.cjs +35 -0
- package/dist/renderer/none/server.d.mts +21 -0
- package/dist/renderer/none/server.d.ts +21 -0
- package/dist/renderer/none/server.mjs +35 -0
- package/dist/renderer/react/server.cjs +2 -2
- package/dist/renderer/react/server.mjs +3 -3
- package/dist/renderer-client.cjs +8 -6
- package/dist/renderer-client.d.mts +9 -9
- package/dist/renderer-client.d.ts +9 -9
- package/dist/renderer-client.mjs +5 -3
- package/dist/renderer.cjs +6 -2
- package/dist/renderer.d.mts +20 -2
- package/dist/renderer.d.ts +20 -2
- package/dist/renderer.mjs +5 -1
- package/dist/request.cjs +2 -2
- package/dist/{request.d-B1RnTLri.d.ts → request.d-B928QjWy.d.ts} +1 -1
- package/dist/{request.d-DarDOCk9.d.mts → request.d-KG-4d2eG.d.mts} +1 -1
- package/dist/request.d.mts +7 -7
- package/dist/request.d.ts +7 -7
- package/dist/request.mjs +1 -1
- package/dist/{route-rendering.d-BTUYCIj4.d.ts → route-rendering.d-DoEe_w9t.d.ts} +1 -1
- package/dist/{route-rendering.d-D_2Ual0-.d.mts → route-rendering.d-NIHQeb4m.d.mts} +1 -1
- package/dist/{route.d-BaVH3V0w.d.mts → route.d-DrXkpvcg.d.mts} +1 -1
- package/dist/{route.d-DBTEqifW.d.ts → route.d-hs-_cyHn.d.ts} +1 -1
- package/dist/{router.d-Cuv1jntg.d.mts → router.d-B8PkJSGp.d.mts} +1 -1
- package/dist/{router.d-CMANF6da.d.ts → router.d-DYnRHQwz.d.ts} +1 -1
- package/dist/routes.cjs +3 -3
- package/dist/{routes.d-c2HKfrfL.d.mts → routes.d-DgZ_jgGG.d.mts} +1 -1
- package/dist/{routes.d-B6yFe6jm.d.ts → routes.d-uUBZyWoK.d.ts} +1 -1
- package/dist/routes.d.mts +6 -6
- package/dist/routes.d.ts +6 -6
- package/dist/routes.mjs +2 -2
- package/dist/{rsc-pipeline-7PNVJSTR.mjs → rsc-pipeline-4OJ5ZQNZ.mjs} +26 -25
- package/dist/{rsc-pipeline-Z7QBZOIJ.cjs → rsc-pipeline-7K5H2RPH.cjs} +27 -26
- package/dist/{runtime-QQHX4BP3.mjs → runtime-U7O3HZOZ.mjs} +60 -34
- package/dist/{runtime-FKFCUHSK.cjs → runtime-X52Q7JFR.cjs} +70 -44
- package/dist/{runtime.d-wvh4ngU0.d.mts → runtime.d-BxQIzwfy.d.mts} +11 -3
- package/dist/{runtime.d-C3RQUj6_.d.ts → runtime.d-DP7mEkEF.d.ts} +11 -3
- package/dist/{schema-dev-notice-JMXEQWIQ.mjs → schema-dev-notice-C2JINRZI.mjs} +3 -2
- package/dist/{schema-dev-notice-PLBFDTOF.cjs → schema-dev-notice-X7GG7QVB.cjs} +5 -4
- package/dist/schema.cjs +6 -2
- package/dist/schema.d-Dny9pnrm.d.mts +298 -0
- package/dist/schema.d-Dny9pnrm.d.ts +298 -0
- package/dist/schema.d.mts +1 -115
- package/dist/schema.d.ts +1 -115
- package/dist/schema.mjs +5 -1
- package/dist/server-fn-client.d.mts +2 -2
- package/dist/server-fn-client.d.ts +2 -2
- package/dist/server-fn.cjs +5 -5
- package/dist/server-fn.mjs +4 -4
- package/dist/server-plugins.cjs +7 -7
- package/dist/server-plugins.d.mts +16 -10
- package/dist/server-plugins.d.ts +16 -10
- package/dist/server-plugins.mjs +8 -8
- package/dist/server-query.cjs +6 -6
- package/dist/server-query.mjs +5 -5
- package/dist/server.cjs +160 -120
- package/dist/server.d.mts +20 -14
- package/dist/server.d.ts +20 -14
- package/dist/server.mjs +138 -98
- package/dist/{spa-router.d-WU_qS5gJ.d.mts → spa-router.d-BgHPVMhz.d.mts} +15 -5
- package/dist/{spa-router.d-m8H_Kl_B.d.ts → spa-router.d-DsFDHTsv.d.ts} +15 -5
- package/dist/testing.cjs +17 -17
- package/dist/testing.d.mts +6 -6
- package/dist/testing.d.ts +6 -6
- package/dist/testing.mjs +13 -13
- package/dist/theme/server.cjs +3 -3
- package/dist/theme/server.mjs +2 -2
- package/dist/{utils.d-W9IiEqmW.d.mts → utils.d-BKyKDBR1.d.mts} +1 -1
- package/dist/{utils.d-C9dQD5Zg.d.ts → utils.d-zxAVcf_V.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +63 -61
- package/dist/vite.d.mts +32 -12
- package/dist/vite.d.ts +32 -12
- package/dist/vite.mjs +62 -60
- package/dist/workflows.cjs +4 -4
- package/dist/workflows.mjs +3 -3
- package/package.json +31 -1
- package/dist/analyzer-H7SIX6BJ.cjs +0 -16
- package/dist/chunk-5YPBFMBN.cjs +0 -19
- package/dist/chunk-OM7WILES.mjs +0 -100
- package/dist/chunk-Q5B4LNON.mjs +0 -19
- package/dist/chunk-QPJ4MZTO.mjs +0 -60
- package/dist/chunk-R53QDV6T.cjs +0 -100
- package/dist/chunk-UYTAP4FQ.cjs +0 -60
- package/dist/manager-2LUKNX2N.cjs +0 -14
- /package/dist/{chunk-QGOZLGVP.mjs → chunk-I6FIAWNT.mjs} +0 -0
- /package/dist/{chunk-XPIPMWY3.cjs → chunk-K5NI5YQR.cjs} +0 -0
- /package/dist/{chunk-NWUHS6GV.cjs → chunk-QEJWNXRI.cjs} +0 -0
- /package/dist/{chunk-FSXSQQTV.mjs → chunk-TXE4SAMV.mjs} +0 -0
- /package/dist/{chunk-ZXK2EYQW.cjs → chunk-UUQNJDGH.cjs} +0 -0
- /package/dist/{chunk-46P5KNTE.mjs → chunk-VZBAW44S.mjs} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleFarmDefaultMCPRequest
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TEJ67GD2.mjs";
|
|
4
|
+
import "./chunk-K6SXMVXO.mjs";
|
|
5
|
+
import "./chunk-YGJ5P3TJ.mjs";
|
|
6
|
+
import "./chunk-IFR74W6S.mjs";
|
|
7
7
|
import "./chunk-C7GJDVN4.mjs";
|
|
8
|
-
import "./chunk-2DA7CLY7.mjs";
|
|
9
8
|
import "./chunk-2I6PUKWJ.mjs";
|
|
9
|
+
import "./chunk-2DA7CLY7.mjs";
|
|
10
10
|
import "./chunk-GUZC226X.mjs";
|
|
11
11
|
import "./chunk-W6QLRQ3V.mjs";
|
|
12
12
|
import "./chunk-LM55GS4R.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
3
|
+
var _chunk5NFQ6AZIcjs = require('./chunk-5NFQ6AZI.cjs');
|
|
4
|
+
require('./chunk-X3MHKLCO.cjs');
|
|
5
|
+
require('./chunk-QO43L7Z4.cjs');
|
|
6
|
+
require('./chunk-FT6KJHS3.cjs');
|
|
7
7
|
require('./chunk-LRB5OVRT.cjs');
|
|
8
|
-
require('./chunk-EVIWKPJV.cjs');
|
|
9
8
|
require('./chunk-2OF5RPVU.cjs');
|
|
9
|
+
require('./chunk-EVIWKPJV.cjs');
|
|
10
10
|
require('./chunk-CA7DNRHO.cjs');
|
|
11
11
|
require('./chunk-PMJSG4JS.cjs');
|
|
12
12
|
require('./chunk-A25FXJ7D.cjs');
|
|
@@ -15,4 +15,4 @@ require('./chunk-YTVSWXEZ.cjs');
|
|
|
15
15
|
require('./chunk-BTZ5O6VM.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.handleFarmDefaultMCPRequest =
|
|
18
|
+
exports.handleFarmDefaultMCPRequest = _chunk5NFQ6AZIcjs.handleFarmDefaultMCPRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Metadata,
|
|
1
|
+
import { M as Metadata, br as FarmAgentJsonLd, bs as FarmMCPServerRegistration, bt as FarmMarkdownResolvedConfig } from './client-plugins.d-CrKZiNSN.js';
|
|
2
2
|
|
|
3
3
|
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
4
|
interface FarmMetadataImageReference {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Metadata,
|
|
1
|
+
import { M as Metadata, br as FarmAgentJsonLd, bs as FarmMCPServerRegistration, bt as FarmMarkdownResolvedConfig } from './client-plugins.d-BNILjfX3.mjs';
|
|
2
2
|
|
|
3
3
|
type MetadataImageKind = "opengraph" | "twitter";
|
|
4
4
|
interface FarmMetadataImageReference {
|
package/dist/agent-runtime.cjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
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 _chunkBDYM2TN3cjs = require('./chunk-BDYM2TN3.cjs');
|
|
4
4
|
require('./chunk-DUIP64BF.cjs');
|
|
5
5
|
require('./chunk-ZOYKJBP5.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-UUQNJDGH.cjs');
|
|
7
|
+
require('./chunk-J6TZRYCO.cjs');
|
|
7
8
|
require('./chunk-5DX3O6TT.cjs');
|
|
8
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-C6CUUBY5.cjs');
|
|
9
10
|
require('./chunk-FEFCISOX.cjs');
|
|
10
11
|
require('./chunk-YIHRZBD7.cjs');
|
|
11
12
|
require('./chunk-2OF5RPVU.cjs');
|
|
@@ -13,7 +14,7 @@ require('./chunk-CFG4QERR.cjs');
|
|
|
13
14
|
require('./chunk-JYT7AN37.cjs');
|
|
14
15
|
require('./chunk-HA7YRO53.cjs');
|
|
15
16
|
require('./chunk-PMJSG4JS.cjs');
|
|
16
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-PWKAX5MS.cjs');
|
|
17
18
|
require('./chunk-6CTFVBAT.cjs');
|
|
18
19
|
require('./chunk-OWQV6MLM.cjs');
|
|
19
20
|
require('./chunk-D22BUQKW.cjs');
|
|
@@ -97,7 +98,7 @@ function createAgentRuntimeIntegration(options) {
|
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
100
|
};
|
|
100
|
-
return
|
|
101
|
+
return _chunkBDYM2TN3cjs.defineIntegration.call(void 0, {
|
|
101
102
|
category: "agent",
|
|
102
103
|
type: provider,
|
|
103
104
|
serverRuntime: options.serverRuntime,
|
package/dist/agent-runtime.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import { B as BundleResultPayload, F as FarmPlugin, a as FarmIntegration } from './client-plugins.d-
|
|
3
|
-
import './lifecycle.d-
|
|
4
|
-
import './route.d-
|
|
2
|
+
import { B as BundleResultPayload, F as FarmPlugin, a as FarmIntegration } from './client-plugins.d-BNILjfX3.mjs';
|
|
3
|
+
import './lifecycle.d-keQs5Swc.mjs';
|
|
4
|
+
import './route.d-DrXkpvcg.mjs';
|
|
5
5
|
import './endpoint.d-BkMSCRf6.mjs';
|
|
6
6
|
import './cache.mjs';
|
|
7
7
|
import './renderer.mjs';
|
|
@@ -13,7 +13,7 @@ import './server-query.mjs';
|
|
|
13
13
|
import './types.d-BnIqOn9w.mjs';
|
|
14
14
|
import 'db0';
|
|
15
15
|
import 'unstorage';
|
|
16
|
-
import './schema.mjs';
|
|
16
|
+
import './schema.d-Dny9pnrm.mjs';
|
|
17
17
|
import 'react';
|
|
18
18
|
import '@farming-labs/orm';
|
|
19
19
|
import '@farming-labs/docs';
|
|
@@ -27,9 +27,9 @@ import './server-action-security.mjs';
|
|
|
27
27
|
import './layers.d-CcS42OGR.mjs';
|
|
28
28
|
import 'rolldown/utils';
|
|
29
29
|
import 'rolldown';
|
|
30
|
-
import './image-config.d-
|
|
30
|
+
import './image-config.d-ByhQ0TT7.mjs';
|
|
31
31
|
import './types.d-C41ePjvP.mjs';
|
|
32
|
-
import './config.d-
|
|
32
|
+
import './config.d-BKIhJtmr.mjs';
|
|
33
33
|
import './types.d-DQnyD3VD.mjs';
|
|
34
34
|
import './font.mjs';
|
|
35
35
|
|
package/dist/agent-runtime.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChildProcess } from 'node:child_process';
|
|
2
|
-
import { B as BundleResultPayload, F as FarmPlugin, a as FarmIntegration } from './client-plugins.d-
|
|
3
|
-
import './lifecycle.d-
|
|
4
|
-
import './route.d-
|
|
2
|
+
import { B as BundleResultPayload, F as FarmPlugin, a as FarmIntegration } from './client-plugins.d-CrKZiNSN.js';
|
|
3
|
+
import './lifecycle.d-keQs5Swc.js';
|
|
4
|
+
import './route.d-hs-_cyHn.js';
|
|
5
5
|
import './endpoint.d-BgHn0lhl.js';
|
|
6
6
|
import './cache.js';
|
|
7
7
|
import './renderer.js';
|
|
@@ -13,7 +13,7 @@ import './server-query.js';
|
|
|
13
13
|
import './types.d-BnIqOn9w.js';
|
|
14
14
|
import 'db0';
|
|
15
15
|
import 'unstorage';
|
|
16
|
-
import './schema.js';
|
|
16
|
+
import './schema.d-Dny9pnrm.js';
|
|
17
17
|
import 'react';
|
|
18
18
|
import '@farming-labs/orm';
|
|
19
19
|
import '@farming-labs/docs';
|
|
@@ -27,9 +27,9 @@ import './server-action-security.js';
|
|
|
27
27
|
import './layers.d-CcS42OGR.js';
|
|
28
28
|
import 'rolldown/utils';
|
|
29
29
|
import 'rolldown';
|
|
30
|
-
import './image-config.d-
|
|
30
|
+
import './image-config.d-ByhQ0TT7.js';
|
|
31
31
|
import './types.d-C41ePjvP.js';
|
|
32
|
-
import './config.d-
|
|
32
|
+
import './config.d-BKIhJtmr.js';
|
|
33
33
|
import './types.d-DQnyD3VD.js';
|
|
34
34
|
import './font.js';
|
|
35
35
|
|
package/dist/agent-runtime.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineIntegration
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AJNBTOVQ.mjs";
|
|
4
4
|
import "./chunk-H4WUWLQR.mjs";
|
|
5
5
|
import "./chunk-M53MIIXY.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-VZBAW44S.mjs";
|
|
7
|
+
import "./chunk-K63OWRY2.mjs";
|
|
7
8
|
import "./chunk-EDPENAVO.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-GJEC5S4V.mjs";
|
|
9
10
|
import "./chunk-QSTRBKHZ.mjs";
|
|
10
11
|
import "./chunk-CO6UYM2D.mjs";
|
|
11
12
|
import "./chunk-2I6PUKWJ.mjs";
|
|
@@ -13,7 +14,7 @@ import "./chunk-QDWMCFTH.mjs";
|
|
|
13
14
|
import "./chunk-D2LCAV6L.mjs";
|
|
14
15
|
import "./chunk-GYMGK467.mjs";
|
|
15
16
|
import "./chunk-W6QLRQ3V.mjs";
|
|
16
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-JZGL2PIH.mjs";
|
|
17
18
|
import "./chunk-OHWM2VI4.mjs";
|
|
18
19
|
import "./chunk-7S7AAK2D.mjs";
|
|
19
20
|
import "./chunk-SF3JB56B.mjs";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkPL6RTBDEcjs = require('./chunk-PL6RTBDE.cjs');
|
|
7
|
+
require('./chunk-WBTHHTBO.cjs');
|
|
8
|
+
require('./chunk-CCAUIBIS.cjs');
|
|
9
|
+
require('./chunk-HM7AGSKU.cjs');
|
|
10
|
+
require('./chunk-BTZ5O6VM.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.CORE_PORTABLE = _chunkPL6RTBDEcjs.CORE_PORTABLE; exports.analyzeFarmMobileRoutes = _chunkPL6RTBDEcjs.analyzeFarmMobileRoutes; exports.readAliases = _chunkPL6RTBDEcjs.readAliases; exports.resolveFile = _chunkPL6RTBDEcjs.resolveFile;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
analyzeFarmMobileRoutes,
|
|
4
4
|
readAliases,
|
|
5
5
|
resolveFile
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CO3YMZFD.mjs";
|
|
7
7
|
import "./chunk-IOEXXZK3.mjs";
|
|
8
8
|
import "./chunk-423SSBYQ.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-H37MDCPR.mjs";
|
|
10
10
|
import "./chunk-Y6FXYEAI.mjs";
|
|
11
11
|
export {
|
|
12
12
|
CORE_PORTABLE,
|
package/dist/api/client.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-K5NI5YQR.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -8,6 +8,12 @@ var _chunk3OJNNCDLcjs = require('../chunk-3OJNNCDL.cjs');
|
|
|
8
8
|
require('../chunk-EOXPRC2C.cjs');
|
|
9
9
|
require('../chunk-I2BYNELA.cjs');
|
|
10
10
|
require('../chunk-PENBZAHJ.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _chunkHA7YRO53cjs = require('../chunk-HA7YRO53.cjs');
|
|
11
17
|
require('../chunk-PO5MXV5X.cjs');
|
|
12
18
|
require('../chunk-HLYRXN2I.cjs');
|
|
13
19
|
require('../chunk-CA7DNRHO.cjs');
|
|
@@ -22,4 +28,8 @@ require('../chunk-BTZ5O6VM.cjs');
|
|
|
22
28
|
|
|
23
29
|
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
exports.APIClientError = _chunk3OJNNCDLcjs.APIClientError; exports.api = _chunkHA7YRO53cjs.api; exports.createAPIClient = _chunk3OJNNCDLcjs.createAPIClient; exports.createApiClients = _chunk3OJNNCDLcjs.createApiClients; exports.createServerAPIClient = _chunk3OJNNCDLcjs.createServerAPIClient; exports.defineIntegrationAPI = _chunkHA7YRO53cjs.defineIntegrationAPI; exports.defineIntegrationAPIOperation = _chunkHA7YRO53cjs.defineIntegrationAPIOperation; exports.endpoint = _chunkHA7YRO53cjs.endpoint;
|
package/dist/api/client.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as APIClient, b as APIClientError, d as APIClientOptions, e as APIClientSystemError, f as APIClientWithoutIntegrationsOptions, g as ApiClients, R as RouteAPIClient, S as ServerAPIClient, h as ServerAPIClientOptions, i as ServerAPIClientWithoutIntegrationsOptions, c as createAPIClient, a as createApiClients, j as createServerAPIClient } from '../api-client.d-
|
|
2
|
-
|
|
3
|
-
import '../endpoint.d-BkMSCRf6.mjs';
|
|
4
|
-
import '../cache.mjs';
|
|
1
|
+
export { A as APIClient, b as APIClientError, d as APIClientOptions, e as APIClientSystemError, f as APIClientWithoutIntegrationsOptions, g as ApiClients, R as RouteAPIClient, S as ServerAPIClient, h as ServerAPIClientOptions, i as ServerAPIClientWithoutIntegrationsOptions, c as createAPIClient, a as createApiClients, j as createServerAPIClient } from '../api-client.d-Bp35zMqR.mjs';
|
|
2
|
+
export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from '../route.d-DrXkpvcg.mjs';
|
|
5
3
|
import '../client-cache.d-di_Nasxa.mjs';
|
|
4
|
+
import '../cache.mjs';
|
|
5
|
+
import '../endpoint.d-BkMSCRf6.mjs';
|
package/dist/api/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as APIClient, b as APIClientError, d as APIClientOptions, e as APIClientSystemError, f as APIClientWithoutIntegrationsOptions, g as ApiClients, R as RouteAPIClient, S as ServerAPIClient, h as ServerAPIClientOptions, i as ServerAPIClientWithoutIntegrationsOptions, c as createAPIClient, a as createApiClients, j as createServerAPIClient } from '../api-client.d-
|
|
2
|
-
|
|
3
|
-
import '../endpoint.d-BgHn0lhl.js';
|
|
4
|
-
import '../cache.js';
|
|
1
|
+
export { A as APIClient, b as APIClientError, d as APIClientOptions, e as APIClientSystemError, f as APIClientWithoutIntegrationsOptions, g as ApiClients, R as RouteAPIClient, S as ServerAPIClient, h as ServerAPIClientOptions, i as ServerAPIClientWithoutIntegrationsOptions, c as createAPIClient, a as createApiClients, j as createServerAPIClient } from '../api-client.d-CFI_xL0V.js';
|
|
2
|
+
export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from '../route.d-hs-_cyHn.js';
|
|
5
3
|
import '../client-cache.d-Deoqq-nM.js';
|
|
4
|
+
import '../cache.js';
|
|
5
|
+
import '../endpoint.d-BgHn0lhl.js';
|
package/dist/api/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-I6FIAWNT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
APIClientError,
|
|
4
4
|
createAPIClient,
|
|
@@ -8,6 +8,12 @@ import {
|
|
|
8
8
|
import "../chunk-IAPTECEB.mjs";
|
|
9
9
|
import "../chunk-C64XOPBZ.mjs";
|
|
10
10
|
import "../chunk-H227LYHT.mjs";
|
|
11
|
+
import {
|
|
12
|
+
api,
|
|
13
|
+
defineIntegrationAPI,
|
|
14
|
+
defineIntegrationAPIOperation,
|
|
15
|
+
endpoint
|
|
16
|
+
} from "../chunk-GYMGK467.mjs";
|
|
11
17
|
import "../chunk-5Y4GYKKH.mjs";
|
|
12
18
|
import "../chunk-YT3SLLZK.mjs";
|
|
13
19
|
import "../chunk-GUZC226X.mjs";
|
|
@@ -19,7 +25,11 @@ import "../chunk-AYP2YFVN.mjs";
|
|
|
19
25
|
import "../chunk-Y6FXYEAI.mjs";
|
|
20
26
|
export {
|
|
21
27
|
APIClientError,
|
|
28
|
+
api,
|
|
22
29
|
createAPIClient,
|
|
23
30
|
createApiClients,
|
|
24
|
-
createServerAPIClient
|
|
31
|
+
createServerAPIClient,
|
|
32
|
+
defineIntegrationAPI,
|
|
33
|
+
defineIntegrationAPIOperation,
|
|
34
|
+
endpoint
|
|
25
35
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-K5NI5YQR.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -8,6 +8,12 @@ var _chunk3OJNNCDLcjs = require('../chunk-3OJNNCDL.cjs');
|
|
|
8
8
|
require('../chunk-EOXPRC2C.cjs');
|
|
9
9
|
require('../chunk-I2BYNELA.cjs');
|
|
10
10
|
require('../chunk-PENBZAHJ.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _chunkHA7YRO53cjs = require('../chunk-HA7YRO53.cjs');
|
|
11
17
|
require('../chunk-PO5MXV5X.cjs');
|
|
12
18
|
require('../chunk-HLYRXN2I.cjs');
|
|
13
19
|
require('../chunk-CA7DNRHO.cjs');
|
|
@@ -42,4 +48,8 @@ var createAPIClient2 = ((options = {}) => _chunk3OJNNCDLcjs.createAPIClient.call
|
|
|
42
48
|
|
|
43
49
|
|
|
44
50
|
|
|
45
|
-
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
exports.APIClientError = _chunk3OJNNCDLcjs.APIClientError; exports.api = _chunkHA7YRO53cjs.api; exports.createAPIClient = createAPIClient2; exports.createApiClients = createApiClients2; exports.createServerAPIClient = _chunk3OJNNCDLcjs.createServerAPIClient; exports.defineIntegrationAPI = _chunkHA7YRO53cjs.defineIntegrationAPI; exports.defineIntegrationAPIOperation = _chunkHA7YRO53cjs.defineIntegrationAPIOperation; exports.endpoint = _chunkHA7YRO53cjs.endpoint;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as createAPIClient$1, a as createApiClients$1 } from '../api-client.d-
|
|
2
|
-
export { A as APIClient, b as APIClientError, d as APIClientOptions, e as APIClientSystemError, f as APIClientWithoutIntegrationsOptions, g as ApiClients, R as RouteAPIClient, S as ServerAPIClient, h as ServerAPIClientOptions, i as ServerAPIClientWithoutIntegrationsOptions, j as createServerAPIClient } from '../api-client.d-
|
|
3
|
-
|
|
4
|
-
import '../endpoint.d-BkMSCRf6.mjs';
|
|
5
|
-
import '../cache.mjs';
|
|
1
|
+
import { c as createAPIClient$1, a as createApiClients$1 } from '../api-client.d-Bp35zMqR.mjs';
|
|
2
|
+
export { A as APIClient, b as APIClientError, d as APIClientOptions, e as APIClientSystemError, f as APIClientWithoutIntegrationsOptions, g as ApiClients, R as RouteAPIClient, S as ServerAPIClient, h as ServerAPIClientOptions, i as ServerAPIClientWithoutIntegrationsOptions, j as createServerAPIClient } from '../api-client.d-Bp35zMqR.mjs';
|
|
3
|
+
export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from '../route.d-DrXkpvcg.mjs';
|
|
6
4
|
import '../client-cache.d-di_Nasxa.mjs';
|
|
5
|
+
import '../cache.mjs';
|
|
6
|
+
import '../endpoint.d-BkMSCRf6.mjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `@farm.js/core/api/client` for React Native screens (`page.native.tsx`). Metro resolves this
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as createAPIClient$1, a as createApiClients$1 } from '../api-client.d-
|
|
2
|
-
export { A as APIClient, b as APIClientError, d as APIClientOptions, e as APIClientSystemError, f as APIClientWithoutIntegrationsOptions, g as ApiClients, R as RouteAPIClient, S as ServerAPIClient, h as ServerAPIClientOptions, i as ServerAPIClientWithoutIntegrationsOptions, j as createServerAPIClient } from '../api-client.d-
|
|
3
|
-
|
|
4
|
-
import '../endpoint.d-BgHn0lhl.js';
|
|
5
|
-
import '../cache.js';
|
|
1
|
+
import { c as createAPIClient$1, a as createApiClients$1 } from '../api-client.d-CFI_xL0V.js';
|
|
2
|
+
export { A as APIClient, b as APIClientError, d as APIClientOptions, e as APIClientSystemError, f as APIClientWithoutIntegrationsOptions, g as ApiClients, R as RouteAPIClient, S as ServerAPIClient, h as ServerAPIClientOptions, i as ServerAPIClientWithoutIntegrationsOptions, j as createServerAPIClient } from '../api-client.d-CFI_xL0V.js';
|
|
3
|
+
export { F as FarmIntegrationAPI, a as FarmIntegrationAPIBodyFormat, b as FarmIntegrationAPIMethod, c as FarmIntegrationAPIOperation, d as FarmIntegrationAPIResponseFormat, e as api, f as defineIntegrationAPI, g as defineIntegrationAPIOperation, h as endpoint } from '../route.d-hs-_cyHn.js';
|
|
6
4
|
import '../client-cache.d-Deoqq-nM.js';
|
|
5
|
+
import '../cache.js';
|
|
6
|
+
import '../endpoint.d-BgHn0lhl.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* `@farm.js/core/api/client` for React Native screens (`page.native.tsx`). Metro resolves this
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-I6FIAWNT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
APIClientError,
|
|
4
4
|
createAPIClient,
|
|
@@ -8,6 +8,12 @@ import {
|
|
|
8
8
|
import "../chunk-IAPTECEB.mjs";
|
|
9
9
|
import "../chunk-C64XOPBZ.mjs";
|
|
10
10
|
import "../chunk-H227LYHT.mjs";
|
|
11
|
+
import {
|
|
12
|
+
api,
|
|
13
|
+
defineIntegrationAPI,
|
|
14
|
+
defineIntegrationAPIOperation,
|
|
15
|
+
endpoint
|
|
16
|
+
} from "../chunk-GYMGK467.mjs";
|
|
11
17
|
import "../chunk-5Y4GYKKH.mjs";
|
|
12
18
|
import "../chunk-YT3SLLZK.mjs";
|
|
13
19
|
import "../chunk-GUZC226X.mjs";
|
|
@@ -39,7 +45,11 @@ var createApiClients2 = ((options = {}) => createApiClients(nativeOptions(option
|
|
|
39
45
|
var createAPIClient2 = ((options = {}) => createAPIClient(nativeOptions(options)));
|
|
40
46
|
export {
|
|
41
47
|
APIClientError,
|
|
48
|
+
api,
|
|
42
49
|
createAPIClient2 as createAPIClient,
|
|
43
50
|
createApiClients2 as createApiClients,
|
|
44
|
-
createServerAPIClient
|
|
51
|
+
createServerAPIClient,
|
|
52
|
+
defineIntegrationAPI,
|
|
53
|
+
defineIntegrationAPIOperation,
|
|
54
|
+
endpoint
|
|
45
55
|
};
|
|
@@ -0,0 +1,223 @@
|
|
|
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
|
+
|
|
3
|
+
var _chunkWVQNXXNEcjs = require('../chunk-WVQNXXNE.cjs');
|
|
4
|
+
require('../chunk-XGTFLG73.cjs');
|
|
5
|
+
require('../chunk-2AFW7673.cjs');
|
|
6
|
+
require('../chunk-JXIYH2NO.cjs');
|
|
7
|
+
require('../chunk-4DCWVSL2.cjs');
|
|
8
|
+
require('../chunk-LRB5OVRT.cjs');
|
|
9
|
+
require('../chunk-C6CUUBY5.cjs');
|
|
10
|
+
require('../chunk-FEFCISOX.cjs');
|
|
11
|
+
require('../chunk-DMAP4RND.cjs');
|
|
12
|
+
require('../chunk-2OF5RPVU.cjs');
|
|
13
|
+
require('../chunk-CFG4QERR.cjs');
|
|
14
|
+
require('../chunk-JYT7AN37.cjs');
|
|
15
|
+
require('../chunk-EVIWKPJV.cjs');
|
|
16
|
+
require('../chunk-HLYRXN2I.cjs');
|
|
17
|
+
require('../chunk-CA7DNRHO.cjs');
|
|
18
|
+
require('../chunk-PMJSG4JS.cjs');
|
|
19
|
+
require('../chunk-AOKXITZ6.cjs');
|
|
20
|
+
require('../chunk-DXUXQP2T.cjs');
|
|
21
|
+
require('../chunk-UZCMMJJT.cjs');
|
|
22
|
+
require('../chunk-HDPT6OYE.cjs');
|
|
23
|
+
require('../chunk-3BIASUGR.cjs');
|
|
24
|
+
require('../chunk-YTVSWXEZ.cjs');
|
|
25
|
+
require('../chunk-BTZ5O6VM.cjs');
|
|
26
|
+
|
|
27
|
+
// src/api/node.ts
|
|
28
|
+
var _http = require('http');
|
|
29
|
+
var _stream = require('stream');
|
|
30
|
+
function mountNodeHandler(handler, options = {}) {
|
|
31
|
+
if (typeof _optionalChain([handler, 'optionalAccess', _ => _.then]) !== "function") assertNodeRequestHandler(handler);
|
|
32
|
+
const ready = Promise.resolve(handler).then(assertNodeRequestHandler);
|
|
33
|
+
ready.catch(() => {
|
|
34
|
+
});
|
|
35
|
+
return _chunkWVQNXXNEcjs.mountFetchHandler.call(void 0, async (request) => callNodeHandler(await ready, request), options);
|
|
36
|
+
}
|
|
37
|
+
function assertNodeRequestHandler(handler) {
|
|
38
|
+
if (typeof handler === "function") return handler;
|
|
39
|
+
throw new TypeError(
|
|
40
|
+
'mountNodeHandler expects a Node.js (req, res) listener. Pass koa.callback() for Koa, and (req, res) => fastify.server.emit("request", req, res) after fastify.ready() for Fastify.'
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
var CONNECTION_HEADERS = /* @__PURE__ */ new Set(["connection", "keep-alive", "transfer-encoding"]);
|
|
44
|
+
var NULL_BODY_STATUSES = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
45
|
+
function callNodeHandler(handler, request) {
|
|
46
|
+
return new Promise((resolve, reject) => {
|
|
47
|
+
const url = new URL(request.url);
|
|
48
|
+
const socket = createSocket(url);
|
|
49
|
+
const req = createIncomingMessage(socket, request, url);
|
|
50
|
+
const res = new (0, _http.ServerResponse)(req);
|
|
51
|
+
res.sendDate = false;
|
|
52
|
+
res.assignSocket(socket);
|
|
53
|
+
let controller;
|
|
54
|
+
let settled = false;
|
|
55
|
+
let ended = false;
|
|
56
|
+
const fail = (error) => {
|
|
57
|
+
if (!settled) {
|
|
58
|
+
settled = true;
|
|
59
|
+
reject(error);
|
|
60
|
+
} else if (!ended) {
|
|
61
|
+
ended = true;
|
|
62
|
+
_optionalChain([controller, 'optionalAccess', _2 => _2.error, 'call', _3 => _3(error)]);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
const respond = () => {
|
|
66
|
+
if (settled) return;
|
|
67
|
+
settled = true;
|
|
68
|
+
const headers = parseHeaderBlock(_nullishCoalesce(res._header, () => ( "")));
|
|
69
|
+
const body = NULL_BODY_STATUSES.has(res.statusCode) ? null : new ReadableStream({
|
|
70
|
+
start(streamController) {
|
|
71
|
+
controller = streamController;
|
|
72
|
+
if (ended) streamController.close();
|
|
73
|
+
},
|
|
74
|
+
cancel() {
|
|
75
|
+
res.destroy();
|
|
76
|
+
req.destroy();
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
resolve(
|
|
80
|
+
new Response(body, {
|
|
81
|
+
status: res.statusCode,
|
|
82
|
+
statusText: res.statusMessage,
|
|
83
|
+
headers
|
|
84
|
+
})
|
|
85
|
+
);
|
|
86
|
+
};
|
|
87
|
+
const capture = (chunk, encoding) => {
|
|
88
|
+
if (chunk == null || typeof chunk === "function") return;
|
|
89
|
+
const bytes = typeof chunk === "string" ? Buffer.from(chunk, typeof encoding === "string" ? encoding : "utf8") : chunk instanceof Uint8Array ? chunk : Buffer.from(String(chunk));
|
|
90
|
+
if (bytes.byteLength > 0) _optionalChain([controller, 'optionalAccess', _4 => _4.enqueue, 'call', _5 => _5(new Uint8Array(bytes))]);
|
|
91
|
+
};
|
|
92
|
+
const write = _http.ServerResponse.prototype.write;
|
|
93
|
+
const end = _http.ServerResponse.prototype.end;
|
|
94
|
+
const flushHeaders = _http.ServerResponse.prototype.flushHeaders;
|
|
95
|
+
res.write = function(chunk, ...rest) {
|
|
96
|
+
const result = write.call(this, chunk, ...rest);
|
|
97
|
+
respond();
|
|
98
|
+
capture(chunk, rest[0]);
|
|
99
|
+
return result;
|
|
100
|
+
};
|
|
101
|
+
res.end = function(chunk, ...rest) {
|
|
102
|
+
if (ended) return this;
|
|
103
|
+
end.call(this, chunk, ...rest);
|
|
104
|
+
respond();
|
|
105
|
+
capture(chunk, rest[0]);
|
|
106
|
+
ended = true;
|
|
107
|
+
_optionalChain([controller, 'optionalAccess', _6 => _6.close, 'call', _7 => _7()]);
|
|
108
|
+
return this;
|
|
109
|
+
};
|
|
110
|
+
res.flushHeaders = function() {
|
|
111
|
+
flushHeaders.call(this);
|
|
112
|
+
respond();
|
|
113
|
+
};
|
|
114
|
+
res.once("close", () => {
|
|
115
|
+
if (!ended) fail(new Error("The response closed before it ended."));
|
|
116
|
+
});
|
|
117
|
+
req.once("error", fail);
|
|
118
|
+
_optionalChain([request, 'access', _8 => _8.signal, 'optionalAccess', _9 => _9.addEventListener, 'call', _10 => _10(
|
|
119
|
+
"abort",
|
|
120
|
+
() => {
|
|
121
|
+
req.destroy();
|
|
122
|
+
res.destroy();
|
|
123
|
+
},
|
|
124
|
+
{ once: true }
|
|
125
|
+
)]);
|
|
126
|
+
const next = (error) => {
|
|
127
|
+
if (error) fail(error);
|
|
128
|
+
else if (!settled) {
|
|
129
|
+
res.statusCode = 404;
|
|
130
|
+
res.end();
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
try {
|
|
134
|
+
const result = handler(req, res, next);
|
|
135
|
+
if (result && typeof result.then === "function") {
|
|
136
|
+
result.then(void 0, fail);
|
|
137
|
+
}
|
|
138
|
+
} catch (error) {
|
|
139
|
+
fail(error);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function createSocket(url) {
|
|
144
|
+
const socket = new (0, _stream.Duplex)({
|
|
145
|
+
read() {
|
|
146
|
+
},
|
|
147
|
+
write(_chunk, _encoding, callback) {
|
|
148
|
+
callback();
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
return Object.assign(socket, {
|
|
152
|
+
encrypted: url.protocol === "https:",
|
|
153
|
+
remoteAddress: void 0,
|
|
154
|
+
setTimeout: () => socket,
|
|
155
|
+
setNoDelay: () => socket,
|
|
156
|
+
setKeepAlive: () => socket
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function createIncomingMessage(socket, request, url) {
|
|
160
|
+
const req = new (0, _http.IncomingMessage)(socket);
|
|
161
|
+
req.method = request.method;
|
|
162
|
+
req.url = `${url.pathname}${url.search}`;
|
|
163
|
+
req.httpVersion = "1.1";
|
|
164
|
+
req.httpVersionMajor = 1;
|
|
165
|
+
req.httpVersionMinor = 1;
|
|
166
|
+
const headers = {};
|
|
167
|
+
const rawHeaders = [];
|
|
168
|
+
request.headers.forEach((value, name) => {
|
|
169
|
+
if (name === "set-cookie") return;
|
|
170
|
+
headers[name] = value;
|
|
171
|
+
rawHeaders.push(name, value);
|
|
172
|
+
});
|
|
173
|
+
if (!headers.host) {
|
|
174
|
+
headers.host = url.host;
|
|
175
|
+
rawHeaders.push("host", url.host);
|
|
176
|
+
}
|
|
177
|
+
if (request.body && !headers["content-length"] && !headers["transfer-encoding"]) {
|
|
178
|
+
headers["transfer-encoding"] = "chunked";
|
|
179
|
+
rawHeaders.push("transfer-encoding", "chunked");
|
|
180
|
+
}
|
|
181
|
+
req.headers = headers;
|
|
182
|
+
req.rawHeaders = rawHeaders;
|
|
183
|
+
const reader = _optionalChain([request, 'access', _11 => _11.body, 'optionalAccess', _12 => _12.getReader, 'call', _13 => _13()]);
|
|
184
|
+
const nodeRead = _http.IncomingMessage.prototype._read;
|
|
185
|
+
let pulling = false;
|
|
186
|
+
req._read = (size) => {
|
|
187
|
+
nodeRead.call(req, size);
|
|
188
|
+
if (!reader) {
|
|
189
|
+
req.complete = true;
|
|
190
|
+
req.push(null);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
if (pulling) return;
|
|
194
|
+
pulling = true;
|
|
195
|
+
reader.read().then(
|
|
196
|
+
({ done, value }) => {
|
|
197
|
+
pulling = false;
|
|
198
|
+
if (done) {
|
|
199
|
+
req.complete = true;
|
|
200
|
+
req.push(null);
|
|
201
|
+
} else {
|
|
202
|
+
req.push(Buffer.from(value));
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
(error) => req.destroy(error)
|
|
206
|
+
);
|
|
207
|
+
};
|
|
208
|
+
return req;
|
|
209
|
+
}
|
|
210
|
+
function parseHeaderBlock(block) {
|
|
211
|
+
const headers = new Headers();
|
|
212
|
+
for (const line of block.split("\r\n").slice(1)) {
|
|
213
|
+
const separator = line.indexOf(":");
|
|
214
|
+
if (separator <= 0) continue;
|
|
215
|
+
const name = line.slice(0, separator).trim();
|
|
216
|
+
if (CONNECTION_HEADERS.has(name.toLowerCase())) continue;
|
|
217
|
+
headers.append(name, line.slice(separator + 1).trim());
|
|
218
|
+
}
|
|
219
|
+
return headers;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
exports.mountNodeHandler = mountNodeHandler;
|