@farm.js/core 0.1.65 → 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-PE33SK5W.mjs → analyzer-TTIIXXMQ.mjs} +3 -3
- 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-CZF4XIRZ.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-JCEFKP5M.mjs → chunk-423SSBYQ.mjs} +6 -0
- package/dist/{chunk-7QVRWGBL.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-IMK32ERL.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-OSFIUSYK.cjs → chunk-6R53ZWX2.cjs} +7 -7
- package/dist/{chunk-MGKW5XZE.cjs → chunk-6SQZXRJ2.cjs} +7 -7
- package/dist/{chunk-WNXVWXG3.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-V727H3RI.cjs → chunk-CCAUIBIS.cjs} +6 -0
- package/dist/{chunk-YN6BHOYY.cjs → chunk-CL52PD6D.cjs} +10 -3
- package/dist/{chunk-ZX2JHEWW.mjs → chunk-CO3YMZFD.mjs} +20 -9
- 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-32RPJAAS.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-EFZGB7JC.cjs → chunk-E5UN4OWX.cjs} +1 -0
- package/dist/{chunk-HKNYNSOK.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-ZAUOOGER.mjs → chunk-GTV2ABO7.mjs} +218 -37
- package/dist/{chunk-72JSHQQQ.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-A3G5IY2W.cjs → chunk-HM7AGSKU.cjs} +1 -1
- package/dist/{chunk-GL7N5UHF.cjs → chunk-HNVAZGQD.cjs} +20 -9
- package/dist/{chunk-GRBJ7VKH.mjs → chunk-HP2DQGQH.mjs} +1 -1
- package/dist/{chunk-E2TSYUHV.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-YUW7F6SK.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-C7DCMGC4.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-3KJPIO5D.cjs → chunk-N5DQMOAG.cjs} +589 -678
- 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-IP2KHSGF.mjs → chunk-P2NBQ5JI.mjs} +57 -4
- package/dist/{chunk-ZQQK4U66.cjs → chunk-PDFFYZAT.cjs} +72 -19
- package/dist/{chunk-GSVJ3IIF.cjs → chunk-PHCJJJZV.cjs} +2 -2
- package/dist/{chunk-EVMXPJCB.mjs → chunk-PKMUQ7LM.mjs} +2 -1
- package/dist/{chunk-YD4J37RN.cjs → chunk-PL6RTBDE.cjs} +30 -19
- 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-T4M52BA5.cjs → chunk-Q5UX55YA.cjs} +1457 -612
- package/dist/{chunk-53ZCZ46B.cjs → chunk-QGQP6QKO.cjs} +4 -3
- package/dist/{chunk-TZOGZKI7.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-ZNXTU4YH.mjs → chunk-TM2E623I.mjs} +1 -0
- 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-6X5NKNBE.mjs → chunk-UHNSY2PQ.mjs} +1304 -459
- package/dist/{chunk-UJ3R2AH2.cjs → chunk-UPOYKX4S.cjs} +5 -5
- package/dist/{chunk-2DLGV2ZG.mjs → chunk-UTUS6JUH.mjs} +1 -21
- package/dist/{chunk-Q75QPLBA.mjs → chunk-V5MQMQ2P.mjs} +1 -1
- package/dist/{chunk-TRIDJQ6A.cjs → chunk-V5RTHYJB.cjs} +30 -10
- package/dist/{chunk-QHRCR44V.mjs → chunk-VK54PDQ6.mjs} +25 -5
- package/dist/{chunk-LQNW3ABP.cjs → chunk-VX2HZGC7.cjs} +14 -14
- package/dist/{chunk-2L54YV25.mjs → chunk-WDD5CTZW.mjs} +49 -32
- package/dist/{chunk-7GYCZRTH.mjs → chunk-WGHY3OL5.mjs} +355 -444
- 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-VHHLKIDZ.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-UYRI6U3P.mjs → chunk-YQYTQJZN.mjs} +3 -2
- 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-SGYOG36E.cjs → devtools-RZVT4JVN.cjs} +36 -32
- package/dist/{devtools-PUVZB3F2.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 +143 -128
- 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 +214 -199
- 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 +70 -68
- package/dist/internal/build-runtime.d.mts +8 -8
- package/dist/internal/build-runtime.d.ts +8 -8
- package/dist/internal/build-runtime.mjs +69 -67
- 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 +6 -6
- package/dist/internal/native-server-fns.mjs +5 -5
- package/dist/internal/product-telemetry-runtime.cjs +3 -3
- package/dist/internal/product-telemetry-runtime.mjs +2 -2
- package/dist/internal/production-runtime.cjs +54 -40
- package/dist/internal/production-runtime.d.mts +23 -15
- package/dist/internal/production-runtime.d.ts +23 -15
- package/dist/internal/production-runtime.mjs +69 -55
- 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-HE2FLS72.cjs → native-tree-W2SSJB3Y.cjs} +5 -5
- package/dist/{native-tree-YF2DSPKM.mjs → native-tree-Y5YQANW7.mjs} +4 -4
- 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/{port-UFUZL6RI.mjs → port-CLL4BC4O.mjs} +1 -1
- package/dist/{port-VTLHPZOI.cjs → port-HASZTQGY.cjs} +9 -9
- 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-T3PWURLJ.mjs → rsc-pipeline-4OJ5ZQNZ.mjs} +26 -25
- package/dist/{rsc-pipeline-V4ANLRAA.cjs → rsc-pipeline-7K5H2RPH.cjs} +27 -26
- package/dist/{runtime-LRIQ3XH7.mjs → runtime-U7O3HZOZ.mjs} +62 -36
- package/dist/{runtime-5AROV2C3.cjs → runtime-X52Q7JFR.cjs} +72 -46
- 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-GHWK46LX.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
|
@@ -17,19 +17,21 @@ var _chunkBUC3FDYCcjs = require('./chunk-BUC3FDYC.cjs');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkGDM3ZD2Ocjs = require('./chunk-GDM3ZD2O.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
+
var _chunk2LHZD3OPcjs = require('./chunk-2LHZD3OP.cjs');
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
|
|
28
|
+
var _chunkBDYM2TN3cjs = require('./chunk-BDYM2TN3.cjs');
|
|
27
29
|
|
|
28
30
|
|
|
29
31
|
var _chunkGBMWLDCCcjs = require('./chunk-GBMWLDCC.cjs');
|
|
30
32
|
|
|
31
33
|
|
|
32
|
-
var
|
|
34
|
+
var _chunkJ6TZRYCOcjs = require('./chunk-J6TZRYCO.cjs');
|
|
33
35
|
|
|
34
36
|
// src/schema-dependencies.ts
|
|
35
37
|
function collectSchemaDependencies(owners) {
|
|
@@ -40,7 +42,7 @@ function collectSchemaDependencies(owners) {
|
|
|
40
42
|
for (const owner of owners) {
|
|
41
43
|
try {
|
|
42
44
|
known.set(owner.name, _chunkGBMWLDCCcjs.resolveSchemaModels.call(void 0, owner.name, owner.schema));
|
|
43
|
-
for (const model of
|
|
45
|
+
for (const model of _chunkGDM3ZD2Ocjs.collectSchemaModels.call(void 0, [[owner.name, owner.schema, owner.models]])) {
|
|
44
46
|
creators.set(model.modelName.toLowerCase(), owner.name);
|
|
45
47
|
claimedKeys.set(model.modelKey, owner.name);
|
|
46
48
|
}
|
|
@@ -64,12 +66,12 @@ function collectSchemaDependencies(owners) {
|
|
|
64
66
|
if (creator && creator !== owner.name) needs.add(creator);
|
|
65
67
|
};
|
|
66
68
|
try {
|
|
67
|
-
for (const model of
|
|
69
|
+
for (const model of _chunkGDM3ZD2Ocjs.collectSchemaModels.call(void 0, [[owner.name, owner.schema, owner.models]])) {
|
|
68
70
|
for (const field of Object.values(model.model.fields)) {
|
|
69
71
|
if (field.reference) add(referencedTable(owner.name, field.reference.model));
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
|
-
for (const extension of
|
|
74
|
+
for (const extension of _chunk2LHZD3OPcjs.collectSchemaExtensions.call(void 0, owner.name, owner.schema, owner.models)) {
|
|
73
75
|
add(extension.table);
|
|
74
76
|
}
|
|
75
77
|
} catch (e2) {
|
|
@@ -115,7 +117,7 @@ async function withTimeout(work, timeoutMs) {
|
|
|
115
117
|
var formatSeconds = (ms) => ms < 1e3 ? `${ms}ms` : `${Number((ms / 1e3).toFixed(1))}s`;
|
|
116
118
|
function collectSchemaOwners(config) {
|
|
117
119
|
const owners = [];
|
|
118
|
-
const integrationSchemas =
|
|
120
|
+
const integrationSchemas = _chunkBDYM2TN3cjs.getIntegrationSchemas.call(void 0, config.integrations);
|
|
119
121
|
let integrationClient;
|
|
120
122
|
for (const [name, schema] of Object.entries(integrationSchemas)) {
|
|
121
123
|
owners.push({
|
|
@@ -125,7 +127,7 @@ function collectSchemaOwners(config) {
|
|
|
125
127
|
resolveClient: (resolved) => _nullishCoalesce(integrationClient, () => ( (integrationClient = _chunkBUC3FDYCcjs.resolveIntegrationOrmRuntimeClient.call(void 0, { config: resolved }))))
|
|
126
128
|
});
|
|
127
129
|
}
|
|
128
|
-
for (const declaration of
|
|
130
|
+
for (const declaration of _chunkGDM3ZD2Ocjs.findSchemaTableOwners.call(void 0, config)) {
|
|
129
131
|
if (owners.some((owner) => owner.name === declaration.name)) continue;
|
|
130
132
|
owners.push({
|
|
131
133
|
name: declaration.name,
|
|
@@ -153,7 +155,7 @@ function resolveSchemaExecutor(client, owner, timeoutMs) {
|
|
|
153
155
|
if (candidate === void 0 || candidate === null) continue;
|
|
154
156
|
let adapter;
|
|
155
157
|
try {
|
|
156
|
-
adapter =
|
|
158
|
+
adapter = _chunkGDM3ZD2Ocjs.createSchemaExecutor.call(void 0, candidate, owner);
|
|
157
159
|
} catch (e3) {
|
|
158
160
|
continue;
|
|
159
161
|
}
|
|
@@ -172,7 +174,7 @@ function resolveSchemaExecutor(client, owner, timeoutMs) {
|
|
|
172
174
|
}
|
|
173
175
|
return void 0;
|
|
174
176
|
}
|
|
175
|
-
var describeReferencedTable = (database, table) =>
|
|
177
|
+
var describeReferencedTable = (database, table) => _chunkGDM3ZD2Ocjs.describeSchemaTable.call(void 0, database.executor, database.dialect, table);
|
|
176
178
|
async function checkSchema(config, options = {}) {
|
|
177
179
|
const timeoutMs = _nullishCoalesce(options.timeoutMs, () => ( DEFAULT_TIMEOUT_MS));
|
|
178
180
|
if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) {
|
|
@@ -184,7 +186,7 @@ async function checkSchema(config, options = {}) {
|
|
|
184
186
|
const issues = [];
|
|
185
187
|
const declared = /* @__PURE__ */ new Map();
|
|
186
188
|
for (const candidate of _nullishCoalesce(config.plugins, () => ( []))) {
|
|
187
|
-
const declaration =
|
|
189
|
+
const declaration = _chunkJ6TZRYCOcjs.readSchemaTables.call(void 0, candidate);
|
|
188
190
|
if (!declaration) continue;
|
|
189
191
|
const schemas = _nullishCoalesce(declared.get(declaration.name), () => ( []));
|
|
190
192
|
if (!schemas.includes(declaration.schema)) schemas.push(declaration.schema);
|
|
@@ -206,7 +208,7 @@ async function checkSchema(config, options = {}) {
|
|
|
206
208
|
for (const owner of owners) {
|
|
207
209
|
try {
|
|
208
210
|
knownModels.set(owner.name, _chunkGBMWLDCCcjs.resolveSchemaModels.call(void 0, owner.name, owner.schema));
|
|
209
|
-
ownedModels.set(owner.name,
|
|
211
|
+
ownedModels.set(owner.name, _chunkGDM3ZD2Ocjs.collectSchemaModels.call(void 0, [[owner.name, owner.schema, owner.models]]));
|
|
210
212
|
} catch (error) {
|
|
211
213
|
issues.push({
|
|
212
214
|
severity: "error",
|
|
@@ -322,7 +324,7 @@ async function checkSchema(config, options = {}) {
|
|
|
322
324
|
for (const owner of owners) {
|
|
323
325
|
if (!ownedModels.has(owner.name)) continue;
|
|
324
326
|
try {
|
|
325
|
-
const owned =
|
|
327
|
+
const owned = _chunk2LHZD3OPcjs.collectSchemaExtensions.call(void 0, owner.name, owner.schema, owner.models);
|
|
326
328
|
extensions.set(owner.name, owned);
|
|
327
329
|
for (const extension of owned) {
|
|
328
330
|
for (const { field } of extension.fields) {
|
|
@@ -362,9 +364,9 @@ async function checkSchema(config, options = {}) {
|
|
|
362
364
|
const database = databases.get(owner.name);
|
|
363
365
|
if (!models || !database) continue;
|
|
364
366
|
try {
|
|
365
|
-
const crossOwner = await
|
|
367
|
+
const crossOwner = await _chunkGDM3ZD2Ocjs.planCrossOwnerReferences.call(void 0,
|
|
366
368
|
owner,
|
|
367
|
-
|
|
369
|
+
_chunkGDM3ZD2Ocjs.findSchemaTableOwners.call(void 0, config),
|
|
368
370
|
database.dialect,
|
|
369
371
|
database.executor
|
|
370
372
|
);
|
|
@@ -377,7 +379,7 @@ async function checkSchema(config, options = {}) {
|
|
|
377
379
|
onDelete: reference.onDelete
|
|
378
380
|
};
|
|
379
381
|
}
|
|
380
|
-
const stepPlan = _optionalChain([owner, 'access', _30 => _30.migrations, 'optionalAccess', _31 => _31.length]) ? await
|
|
382
|
+
const stepPlan = _optionalChain([owner, 'access', _30 => _30.migrations, 'optionalAccess', _31 => _31.length]) ? await _chunkGDM3ZD2Ocjs.planOwnerSchemaSteps.call(void 0, {
|
|
381
383
|
owner: owner.name,
|
|
382
384
|
schema: owner.schema,
|
|
383
385
|
steps: owner.migrations,
|
|
@@ -392,15 +394,15 @@ async function checkSchema(config, options = {}) {
|
|
|
392
394
|
const plan = await checkOwnerTables(
|
|
393
395
|
owner,
|
|
394
396
|
// What a pending rename will produce is not missing yet.
|
|
395
|
-
|
|
397
|
+
_chunkGDM3ZD2Ocjs.withoutRenameTargets.call(void 0, models, stepPlan),
|
|
396
398
|
database.dialect,
|
|
397
399
|
database.executor,
|
|
398
400
|
issues
|
|
399
401
|
);
|
|
400
402
|
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 &&
|
|
403
|
+
const state = pending > 0 ? await _chunkGDM3ZD2Ocjs.readSchemaState.call(void 0, database.executor, database.dialect, owner.name) : void 0;
|
|
404
|
+
const changes = state ? _chunkGDM3ZD2Ocjs.diffSchemaSnapshots.call(void 0, state.snapshot, _chunkGDM3ZD2Ocjs.createSchemaSnapshot.call(void 0, models)) : void 0;
|
|
405
|
+
if (state && changes && _chunkGDM3ZD2Ocjs.hasSchemaChanges.call(void 0, changes)) {
|
|
404
406
|
const versions = state.version && owner.version && state.version !== owner.version ? `upgraded ${state.version} \u2192 ${owner.version}` : "changed since it was last migrated";
|
|
405
407
|
issues.push({
|
|
406
408
|
severity: "warning",
|
|
@@ -436,7 +438,7 @@ async function checkSchema(config, options = {}) {
|
|
|
436
438
|
};
|
|
437
439
|
}
|
|
438
440
|
async function checkOwnerTables(owner, models, dialect, executor, issues) {
|
|
439
|
-
const plan = await
|
|
441
|
+
const plan = await _chunkGDM3ZD2Ocjs.planSchemaMigration.call(void 0, models, dialect, executor);
|
|
440
442
|
const present = /* @__PURE__ */ new Set([
|
|
441
443
|
...plan.upToDate,
|
|
442
444
|
...plan.drift.map((drift) => drift.table),
|
|
@@ -517,7 +519,7 @@ async function checkOwnerTables(owner, models, dialect, executor, issues) {
|
|
|
517
519
|
table: key.table,
|
|
518
520
|
column: key.column,
|
|
519
521
|
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 \`${
|
|
522
|
+
hint: dialect === "sqlite" ? "SQLite can only add a foreign key when it creates the table." : `Allow it with \`${_chunkGDM3ZD2Ocjs.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
523
|
});
|
|
522
524
|
}
|
|
523
525
|
return plan;
|
|
@@ -599,9 +601,9 @@ async function checkReferences(owner, models, database, databases, resolveTarget
|
|
|
599
601
|
continue;
|
|
600
602
|
}
|
|
601
603
|
if (database.dialect === "sqlite" || dialect === "sqlite") continue;
|
|
602
|
-
const expected =
|
|
603
|
-
const mine =
|
|
604
|
-
const theirs =
|
|
604
|
+
const expected = _chunkGDM3ZD2Ocjs.getSqlColumnType.call(void 0, field, database.dialect);
|
|
605
|
+
const mine = _chunkGDM3ZD2Ocjs.columnTypeFamily.call(void 0, expected);
|
|
606
|
+
const theirs = _chunkGDM3ZD2Ocjs.columnTypeFamily.call(void 0, column.type);
|
|
605
607
|
if (mine && theirs && mine !== theirs) {
|
|
606
608
|
issues.push({
|
|
607
609
|
severity: "warning",
|
|
@@ -619,7 +621,7 @@ async function checkReferences(owner, models, database, databases, resolveTarget
|
|
|
619
621
|
async function checkExtensions(owner, extensions, databaseForTable, ownDatabase, allowExtend, issues) {
|
|
620
622
|
for (const extension of extensions) {
|
|
621
623
|
const database = _nullishCoalesce(databaseForTable(extension.table), () => ( ownDatabase));
|
|
622
|
-
const table = await
|
|
624
|
+
const table = await _chunkGDM3ZD2Ocjs.describeSchemaTable.call(void 0, database.executor, database.dialect, extension.table);
|
|
623
625
|
const columns = extension.fields.map(({ field }) => field.name);
|
|
624
626
|
if (!table) {
|
|
625
627
|
issues.push({
|
|
@@ -632,7 +634,7 @@ async function checkExtensions(owner, extensions, databaseForTable, ownDatabase,
|
|
|
632
634
|
});
|
|
633
635
|
continue;
|
|
634
636
|
}
|
|
635
|
-
const allowed =
|
|
637
|
+
const allowed = _chunk2LHZD3OPcjs.isSchemaExtensionAllowed.call(void 0, allowExtend, extension);
|
|
636
638
|
for (const { field } of extension.fields) {
|
|
637
639
|
const existing = table.columns.find(
|
|
638
640
|
(column) => database.dialect === "postgres" ? column.name === field.name : column.name.toLowerCase() === field.name.toLowerCase()
|
|
@@ -646,14 +648,14 @@ async function checkExtensions(owner, extensions, databaseForTable, ownDatabase,
|
|
|
646
648
|
table: extension.table,
|
|
647
649
|
column: field.name,
|
|
648
650
|
message: `${owner.name} needs "${extension.table}.${field.name}", which does not exist.`,
|
|
649
|
-
hint: allowed ? `Add it with ${command}. If your ORM owns "${extension.table}", add the column to its schema instead.` : `Allow it in farm.config with \`${
|
|
651
|
+
hint: allowed ? `Add it with ${command}. If your ORM owns "${extension.table}", add the column to its schema instead.` : `Allow it in farm.config with \`${_chunk2LHZD3OPcjs.describeSchemaExtensionApproval.call(void 0, extension)}\`, then add it with ${command}. If your ORM owns "${extension.table}", add the column to its schema instead.`
|
|
650
652
|
});
|
|
651
653
|
continue;
|
|
652
654
|
}
|
|
653
655
|
if (database.dialect === "sqlite") continue;
|
|
654
|
-
const expected =
|
|
655
|
-
const mine =
|
|
656
|
-
const theirs =
|
|
656
|
+
const expected = _chunkGDM3ZD2Ocjs.getSqlColumnType.call(void 0, field, database.dialect);
|
|
657
|
+
const mine = _chunkGDM3ZD2Ocjs.columnTypeFamily.call(void 0, expected);
|
|
658
|
+
const theirs = _chunkGDM3ZD2Ocjs.columnTypeFamily.call(void 0, existing.type);
|
|
657
659
|
if (mine && theirs && mine !== theirs) {
|
|
658
660
|
issues.push({
|
|
659
661
|
severity: "warning",
|
|
@@ -10,15 +10,15 @@ var _chunkSHIWRBFIcjs = require('./chunk-SHIWRBFI.cjs');
|
|
|
10
10
|
var _chunkQMNWKQL4cjs = require('./chunk-QMNWKQL4.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
|
|
14
13
|
|
|
15
14
|
|
|
15
|
+
var _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkSUCDVKUBcjs = require('./chunk-SUCDVKUB.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkPWKAX5MScjs = require('./chunk-PWKAX5MS.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunk6CTFVBATcjs = require('./chunk-6CTFVBAT.cjs');
|
|
@@ -282,7 +282,7 @@ function normalizeWorkflowRoute(route) {
|
|
|
282
282
|
const trimmed = route.trim();
|
|
283
283
|
if (!trimmed || trimmed === "/") return DEFAULT_FARM_WORKFLOW_ROUTE;
|
|
284
284
|
const normalized = `/${trimSlashes(trimmed)}`;
|
|
285
|
-
|
|
285
|
+
_chunkPWKAX5MScjs.validateConfigRouteSource.call(void 0, normalized, "workflows.route");
|
|
286
286
|
return normalized;
|
|
287
287
|
}
|
|
288
288
|
function normalizeWorkflowId(id) {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
collectSchemaExtensions
|
|
3
|
-
|
|
4
|
-
readSchemaTables
|
|
5
|
-
} from "./chunk-2DLGV2ZG.mjs";
|
|
6
|
-
import {
|
|
7
|
-
resolveSchemaModels
|
|
8
|
-
} from "./chunk-F3N52U7S.mjs";
|
|
2
|
+
collectSchemaExtensions
|
|
3
|
+
} from "./chunk-UTUS6JUH.mjs";
|
|
9
4
|
import {
|
|
10
5
|
normalizeFarmPluginRuntimeEndpointPath,
|
|
11
6
|
normalizeRuntimeEndpointRequestPath
|
|
@@ -19,6 +14,13 @@ import {
|
|
|
19
14
|
import {
|
|
20
15
|
getFarmPluginIntegrationContext
|
|
21
16
|
} from "./chunk-H4WUWLQR.mjs";
|
|
17
|
+
import {
|
|
18
|
+
resolveSchemaModels
|
|
19
|
+
} from "./chunk-F3N52U7S.mjs";
|
|
20
|
+
import {
|
|
21
|
+
declareSchemaTables,
|
|
22
|
+
readSchemaTables
|
|
23
|
+
} from "./chunk-K63OWRY2.mjs";
|
|
22
24
|
import {
|
|
23
25
|
clearRequestContext,
|
|
24
26
|
copyRequestContext,
|
|
@@ -808,9 +810,27 @@ var PluginManager = class {
|
|
|
808
810
|
);
|
|
809
811
|
}
|
|
810
812
|
async runRuntimeRequest(request, handler, options = {}) {
|
|
811
|
-
|
|
813
|
+
return this.completeRuntimeRequest(await this.beginRuntimeRequest(request, options), handler);
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Finishes a session `beginRuntimeRequest` opened, as `runRuntimeRequest` does: the handler
|
|
817
|
+
* answers unless `before` already did, then `after` runs. A server that has work between
|
|
818
|
+
* `before` and the handler (the dev server runs app middleware there) splits the two.
|
|
819
|
+
*/
|
|
820
|
+
async completeRuntimeRequest(session, handler) {
|
|
812
821
|
try {
|
|
813
|
-
const response = session.response ?? await handler(session.request
|
|
822
|
+
const response = session.response ?? await handler(session.request, {
|
|
823
|
+
// Not a failed session: the handler answers, so `after` runs and a later throw in it
|
|
824
|
+
// is still reported.
|
|
825
|
+
reportError: (error) => this.runRuntimeErrorHooks(
|
|
826
|
+
session.request,
|
|
827
|
+
error,
|
|
828
|
+
session.ctx,
|
|
829
|
+
Date.now() - session.startedAt,
|
|
830
|
+
session.options,
|
|
831
|
+
session.waitUntil
|
|
832
|
+
)
|
|
833
|
+
});
|
|
814
834
|
if (!(response instanceof Response)) {
|
|
815
835
|
throw new TypeError("Farm plugin runtime handlers must return a Response");
|
|
816
836
|
}
|
|
@@ -1015,7 +1035,7 @@ function declarePluginSchema(plugin) {
|
|
|
1015
1035
|
}
|
|
1016
1036
|
return client2;
|
|
1017
1037
|
}
|
|
1018
|
-
const { resolveIntegrationOrmRuntimeClient } = await import("./
|
|
1038
|
+
const { resolveIntegrationOrmRuntimeClient } = await import("./integrations/orm.mjs");
|
|
1019
1039
|
const client = await resolveIntegrationOrmRuntimeClient({ config });
|
|
1020
1040
|
if (client === void 0 || client === null) {
|
|
1021
1041
|
throw new Error(
|
|
@@ -16,7 +16,8 @@ function normalizeFarmTrailingSlashPathname(pathname, enabled) {
|
|
|
16
16
|
}
|
|
17
17
|
function resolveFarmTrailingSlashRedirect(url, enabled) {
|
|
18
18
|
const pathname = normalizeFarmTrailingSlashPathname(url.pathname, enabled);
|
|
19
|
-
|
|
19
|
+
if (pathname === url.pathname) return null;
|
|
20
|
+
return `${pathname.replace(/^[/\\]+/, "/")}${url.search}`;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export {
|
|
@@ -17,19 +17,21 @@ import {
|
|
|
17
17
|
planSchemaMigration,
|
|
18
18
|
readSchemaState,
|
|
19
19
|
withoutRenameTargets
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZJGFAW5U.mjs";
|
|
21
21
|
import {
|
|
22
22
|
collectSchemaExtensions,
|
|
23
23
|
describeSchemaExtensionApproval,
|
|
24
|
-
isSchemaExtensionAllowed
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
isSchemaExtensionAllowed
|
|
25
|
+
} from "./chunk-UTUS6JUH.mjs";
|
|
26
|
+
import {
|
|
27
|
+
getIntegrationSchemas
|
|
28
|
+
} from "./chunk-AJNBTOVQ.mjs";
|
|
27
29
|
import {
|
|
28
30
|
resolveSchemaModels
|
|
29
31
|
} from "./chunk-F3N52U7S.mjs";
|
|
30
32
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
readSchemaTables
|
|
34
|
+
} from "./chunk-K63OWRY2.mjs";
|
|
33
35
|
|
|
34
36
|
// src/schema-dependencies.ts
|
|
35
37
|
function collectSchemaDependencies(owners) {
|
|
@@ -1,17 +1,17 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkX3MHKLCOcjs = require('./chunk-X3MHKLCO.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6V5YWI4Wcjs = require('./chunk-6V5YWI4W.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkBTVDYS4Bcjs = require('./chunk-BTVDYS4B.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkFT6KJHS3cjs = require('./chunk-FT6KJHS3.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunk2KMIJDY6cjs = require('./chunk-2KMIJDY6.cjs');
|
|
@@ -29,7 +29,7 @@ var _chunk2OF5RPVUcjs = require('./chunk-2OF5RPVU.cjs');
|
|
|
29
29
|
var _chunkCFG4QERRcjs = require('./chunk-CFG4QERR.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkHM7AGSKUcjs = require('./chunk-HM7AGSKU.cjs');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkD22BUQKWcjs = require('./chunk-D22BUQKW.cjs');
|
|
@@ -165,7 +165,7 @@ function createFarmAiCatalogResponse(request, input = {}, requestUrl) {
|
|
|
165
165
|
if (_chunkCFG4QERRcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
166
166
|
return new Response(null, { status: 304, headers });
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
_chunkFT6KJHS3cjs.emitFarmAgentRead.call(void 0, request, card ? "mcp-server-card" : "ai-catalog", 200);
|
|
169
169
|
return new Response(method === "HEAD" ? null : body, { status: 200, headers });
|
|
170
170
|
}
|
|
171
171
|
function corsHeaders() {
|
|
@@ -233,7 +233,7 @@ function createFarmApiCatalogResponse(method, input, request) {
|
|
|
233
233
|
headers: { Allow: "GET, HEAD", "Content-Type": "text/plain; charset=utf-8" }
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
if (request)
|
|
236
|
+
if (request) _chunkFT6KJHS3cjs.emitFarmAgentRead.call(void 0, request, "api-catalog", 200);
|
|
237
237
|
const catalog = createFarmApiCatalog(input);
|
|
238
238
|
return new Response(upperMethod === "HEAD" ? null : JSON.stringify(catalog), {
|
|
239
239
|
status: 200,
|
|
@@ -288,7 +288,7 @@ function createFarmAppManifest(input) {
|
|
|
288
288
|
return {
|
|
289
289
|
schemaVersion: 1,
|
|
290
290
|
app: app ? {
|
|
291
|
-
...app.version ? { farm:
|
|
291
|
+
...app.version ? { farm: _chunkHM7AGSKUcjs.FARM_VERSION } : {},
|
|
292
292
|
...app.renderer ? { renderer: input.renderer } : {},
|
|
293
293
|
basePath: input.basePath,
|
|
294
294
|
...app.build ? { build: input.build } : {}
|
|
@@ -319,7 +319,7 @@ function resolveFarmSiteUrl() {
|
|
|
319
319
|
asUrl(read("RAILWAY_PUBLIC_DOMAIN"))
|
|
320
320
|
];
|
|
321
321
|
for (const candidate of candidates) {
|
|
322
|
-
const origin = candidate ?
|
|
322
|
+
const origin = candidate ? _chunk6V5YWI4Wcjs.normalizeFarmProductionSiteOrigin.call(void 0, candidate) : void 0;
|
|
323
323
|
if (origin) return origin;
|
|
324
324
|
}
|
|
325
325
|
return null;
|
|
@@ -374,7 +374,7 @@ function listDefaultServer(input) {
|
|
|
374
374
|
authorization: "none",
|
|
375
375
|
resources: [],
|
|
376
376
|
prompts: [],
|
|
377
|
-
tools:
|
|
377
|
+
tools: _chunkX3MHKLCOcjs.FARM_DEFAULT_MCP_TOOLS.map((tool) => ({
|
|
378
378
|
name: tool.name,
|
|
379
379
|
title: tool.title,
|
|
380
380
|
description: tool.description,
|
|
@@ -434,7 +434,7 @@ function listFarmBuiltInRoutePaths(input) {
|
|
|
434
434
|
...agent.manifest !== false ? [FARM_APP_MANIFEST_PATH, FARM_APP_MANIFEST_LEGACY_PATH] : [],
|
|
435
435
|
...agent.apiCatalog ? [FARM_API_CATALOG_PATH] : [],
|
|
436
436
|
...agent.aiCatalog !== false ? [FARM_AI_CATALOG_PATH, FARM_ARD_PATH] : [],
|
|
437
|
-
...agent.mcp === true ? [
|
|
437
|
+
...agent.mcp === true ? [_chunkX3MHKLCOcjs.FARM_DEFAULT_MCP_PATH, `${_chunkX3MHKLCOcjs.FARM_DEFAULT_MCP_PATH}${FARM_MCP_SERVER_CARD_SUFFIX}`] : [],
|
|
438
438
|
..._optionalChain([agent, 'access', _43 => _43.llmsTxt, 'optionalAccess', _44 => _44.enabled]) ? ["/llms.txt"] : [],
|
|
439
439
|
..._optionalChain([agent, 'access', _45 => _45.llmsTxt, 'optionalAccess', _46 => _46.enabled]) && agent.llmsTxt.full ? ["/llms-full.txt"] : [],
|
|
440
440
|
..._optionalChain([agent, 'access', _47 => _47.sitemap, 'optionalAccess', _48 => _48.enabled]) ? ["/sitemap.xml"] : [],
|
|
@@ -473,7 +473,7 @@ function resolveFarmDocsRouteLabel(routePathname, docs) {
|
|
|
473
473
|
for (const entry of entries) {
|
|
474
474
|
const base = entry === "/" ? "" : entry;
|
|
475
475
|
if (page === entry || entry === "/" && page === "/index") {
|
|
476
|
-
return markdown ?
|
|
476
|
+
return markdown ? _chunkFT6KJHS3cjs.getFarmMarkdownMirrorPath.call(void 0, entry) : entry;
|
|
477
477
|
}
|
|
478
478
|
if (page.startsWith(`${base}/`)) return `${base}/[...slug]${markdown ? ".md" : ""}`;
|
|
479
479
|
}
|
|
@@ -493,7 +493,7 @@ function resolveFarmMarkdownRouteLabel(routePathname, matchPagePattern) {
|
|
|
493
493
|
if (!routePathname.toLowerCase().endsWith(".md")) return null;
|
|
494
494
|
const page = routePathname === "/index.md" ? "/" : routePathname.slice(0, -".md".length) || "/";
|
|
495
495
|
const pattern = matchPagePattern(page);
|
|
496
|
-
return pattern ?
|
|
496
|
+
return pattern ? _chunkFT6KJHS3cjs.getFarmMarkdownMirrorPath.call(void 0, pattern) : null;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
|
|
@@ -22,7 +22,7 @@ var SIZE_UNITS = {
|
|
|
22
22
|
mib: 1048576,
|
|
23
23
|
gib: 1073741824
|
|
24
24
|
};
|
|
25
|
-
function resolveFarmImageConfig(config) {
|
|
25
|
+
function resolveFarmImageConfig(config, defaultProvider = "auto") {
|
|
26
26
|
const path = normalizeImagePath(_nullishCoalesce(_optionalChain([config, 'optionalAccess', _ => _.path]), () => ( DEFAULT_FARM_IMAGE_PATH)));
|
|
27
27
|
const deviceSizes = normalizeIntegerList(
|
|
28
28
|
_nullishCoalesce(_optionalChain([config, 'optionalAccess', _2 => _2.deviceSizes]), () => ( DEFAULT_FARM_IMAGE_DEVICE_SIZES)),
|
|
@@ -50,7 +50,7 @@ function resolveFarmImageConfig(config) {
|
|
|
50
50
|
"images.maximumRedirects"
|
|
51
51
|
);
|
|
52
52
|
return Object.freeze({
|
|
53
|
-
provider: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.provider]), () => (
|
|
53
|
+
provider: _nullishCoalesce(_optionalChain([config, 'optionalAccess', _8 => _8.provider]), () => ( defaultProvider)),
|
|
54
54
|
path,
|
|
55
55
|
domains: Object.freeze([
|
|
56
56
|
...new Set(
|
|
@@ -558,7 +558,7 @@ function getFarmCronTaskName(name) {
|
|
|
558
558
|
}
|
|
559
559
|
function createNitroCronTaskWrapper(job, secretEnv) {
|
|
560
560
|
return `
|
|
561
|
-
import {
|
|
561
|
+
import { serverFetch } from "nitro/app";
|
|
562
562
|
import { defineTask } from "nitro/task";
|
|
563
563
|
|
|
564
564
|
const name = ${JSON.stringify(job.name)};
|
|
@@ -583,7 +583,8 @@ export default defineTask({
|
|
|
583
583
|
const secret = readSecret(event);
|
|
584
584
|
if (secret) headers.set("authorization", "Bearer " + secret);
|
|
585
585
|
|
|
586
|
-
|
|
586
|
+
// \`serverFetch\` takes a path; the app's own \`fetch\` takes only a Request.
|
|
587
|
+
const response = await serverFetch(path, { method: "GET", headers });
|
|
587
588
|
const contentType = response.headers.get("content-type") || "";
|
|
588
589
|
const body = response.status === 204
|
|
589
590
|
? null
|