@farm.js/core 0.1.39 → 0.1.41
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-HcTYQmNX.d.ts → agent-mcp-BOqIxJLI.d.mts} +8 -2
- package/dist/{agent-mcp-BhneNPb4.d.mts → agent-mcp-D0eZKfci.d.ts} +8 -2
- package/dist/{agent-mcp-handler-OLRMZONF.mjs → agent-mcp-handler-HVV5LNXF.mjs} +6 -6
- package/dist/{agent-mcp-handler-MRGP3WJ3.cjs → agent-mcp-handler-YKG7KVCY.cjs} +7 -7
- package/dist/agent-runtime.cjs +10 -6
- package/dist/agent-runtime.d.mts +6 -8
- package/dist/agent-runtime.d.ts +6 -8
- package/dist/agent-runtime.mjs +9 -5
- package/dist/api/client.cjs +3 -3
- package/dist/api/client.d.mts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/client.mjs +2 -2
- package/dist/api/route-manager.cjs +15 -13
- package/dist/api/route-manager.d.mts +8 -10
- package/dist/api/route-manager.d.ts +8 -10
- package/dist/api/route-manager.mjs +14 -12
- package/dist/api/runtime.cjs +12 -10
- package/dist/api/runtime.d.mts +7 -9
- package/dist/api/runtime.d.ts +7 -9
- package/dist/api/runtime.mjs +11 -9
- package/dist/{api-client-CyFtZFJ4.d.ts → api-client-BJv9mTbO.d.ts} +2 -2
- package/dist/{api-client-BjMmY8OD.d.mts → api-client-Dk9QOLwr.d.mts} +2 -2
- package/dist/api.cjs +17 -15
- package/dist/api.d.mts +10 -12
- package/dist/api.d.ts +10 -12
- package/dist/api.mjs +16 -14
- package/dist/{app-DVzmmbNO.d.mts → app-CzTSMJaf.d.mts} +12 -5
- package/dist/{app-CMkoghtp.d.ts → app-DM8e1z3G.d.ts} +12 -5
- package/dist/app-markdown.cjs +7 -6
- package/dist/app-markdown.d.mts +7 -9
- package/dist/app-markdown.d.ts +7 -9
- package/dist/app-markdown.mjs +6 -5
- package/dist/cache.cjs +6 -3
- package/dist/cache.d.mts +23 -2
- package/dist/cache.d.ts +23 -2
- package/dist/cache.mjs +5 -2
- package/dist/{chunk-EGCTIS5F.mjs → chunk-24SP5TGU.mjs} +1 -1
- package/dist/{chunk-2ZYGC6SS.cjs → chunk-25LPIZSX.cjs} +3 -3
- package/dist/{chunk-ARC7I3O2.mjs → chunk-26RUNDIR.mjs} +1 -1
- package/dist/{chunk-472NCAZ7.cjs → chunk-2FUIT2G2.cjs} +3 -3
- package/dist/{chunk-YFYUYWL7.cjs → chunk-32TZ3QTP.cjs} +723 -454
- package/dist/{chunk-CQMVIOYP.mjs → chunk-35WS7P2V.mjs} +29 -131
- package/dist/{chunk-QTXBII4Z.cjs → chunk-3TB5QGUW.cjs} +5 -5
- package/dist/chunk-45QJHGZM.cjs +1063 -0
- package/dist/{chunk-677THUVP.mjs → chunk-4C7KTKX7.mjs} +1 -1
- package/dist/{chunk-FUZEBRP3.mjs → chunk-4GP3XZ4Z.mjs} +5 -3
- package/dist/{chunk-KTSUBU2E.mjs → chunk-4KQDHTWX.mjs} +2 -2
- package/dist/chunk-4TLUFAIP.cjs +92 -0
- package/dist/chunk-4U5XZDLG.cjs +80 -0
- package/dist/{chunk-P664ZVTV.mjs → chunk-4ZZNPK25.mjs} +2 -2
- package/dist/{chunk-KIIMAWOJ.cjs → chunk-5NAVKJCZ.cjs} +35 -105
- package/dist/{chunk-LSKZMJMP.cjs → chunk-64SBBZDU.cjs} +38 -1
- package/dist/chunk-6BWKJ6QS.cjs +43 -0
- package/dist/{chunk-JSROZYYO.cjs → chunk-6D24SDKO.cjs} +1 -20
- package/dist/chunk-6IZWX6ES.cjs +74 -0
- package/dist/{chunk-QRKIMN7T.mjs → chunk-6LVRDOAW.mjs} +32 -6
- package/dist/{chunk-YWN746US.cjs → chunk-6MVFHNYZ.cjs} +85 -54
- package/dist/{chunk-VWBHM3F6.mjs → chunk-6PKXK4TY.mjs} +3 -3
- package/dist/chunk-6QOLZITB.cjs +22 -0
- package/dist/{chunk-OAHTRMIC.mjs → chunk-724JLMS4.mjs} +11 -11
- package/dist/chunk-7GNWGLWB.mjs +14 -0
- package/dist/{chunk-34UCJRQO.cjs → chunk-7RNAKBWF.cjs} +2 -2
- package/dist/{chunk-U6QLDL3G.mjs → chunk-7UEEHAW7.mjs} +1 -1
- package/dist/{chunk-UPJLHLJU.cjs → chunk-ALPWLT27.cjs} +4 -4
- package/dist/{chunk-ATSDUUFK.mjs → chunk-AX7S67YV.mjs} +33 -40
- package/dist/{chunk-MSSFIQGM.mjs → chunk-B2GSRB3P.mjs} +41 -10
- package/dist/chunk-BGGWKZ2V.mjs +6096 -0
- package/dist/{chunk-H5CLOUZS.cjs → chunk-BMOBTMDR.cjs} +5 -5
- package/dist/{chunk-Q2KB32T4.mjs → chunk-BPNRQ5BA.mjs} +6 -6
- package/dist/{chunk-E2ROOWQC.cjs → chunk-BPOTSHDO.cjs} +24 -87
- package/dist/chunk-BRYPZIMB.mjs +6 -0
- package/dist/{chunk-WFRT7JPX.mjs → chunk-BYQVROIP.mjs} +2 -2
- package/dist/{chunk-HALDNTIV.mjs → chunk-BYR3RQPB.mjs} +10 -73
- package/dist/{chunk-5PWXMJOH.cjs → chunk-C5KVWHIH.cjs} +36 -36
- package/dist/chunk-CALY6QG6.mjs +963 -0
- package/dist/{chunk-WC5UV2HQ.cjs → chunk-CBXBGM72.cjs} +2 -2
- package/dist/{chunk-WW46B6HA.cjs → chunk-CGR525MJ.cjs} +84 -45
- package/dist/{chunk-6V4TDWEC.cjs → chunk-CGVPXIRN.cjs} +18 -1
- package/dist/chunk-COABSY3U.mjs +196 -0
- package/dist/chunk-CZS6OACQ.mjs +63 -0
- package/dist/{chunk-SGBJ247Q.cjs → chunk-D4ROBNTK.cjs} +2 -2
- package/dist/{chunk-WEW2JVA4.cjs → chunk-D5IHNDHI.cjs} +6 -6
- package/dist/{chunk-QG775BRV.cjs → chunk-D64OPY6A.cjs} +72 -54
- package/dist/{chunk-QUCXCDE2.cjs → chunk-EH3464KF.cjs} +1 -1
- package/dist/{chunk-75HN5IZ3.mjs → chunk-ENOBPDKZ.mjs} +21 -19
- package/dist/{chunk-HD5CF3OE.mjs → chunk-ETPEZLS3.mjs} +2 -2
- package/dist/{chunk-HRETEZ2Z.cjs → chunk-EX4MKHXN.cjs} +37 -35
- package/dist/{chunk-TO4GJ56K.cjs → chunk-FEYQCYT7.cjs} +58 -18
- package/dist/chunk-FGH3ZXTP.mjs +1063 -0
- package/dist/{chunk-CUM5NYL5.mjs → chunk-FIAPD365.mjs} +1 -1
- package/dist/{chunk-HYTZYOW2.mjs → chunk-FJGIVDA5.mjs} +1197 -7906
- package/dist/chunk-FVPXT2JR.cjs +63 -0
- package/dist/{chunk-MYIZXDZA.mjs → chunk-FWCGUVVL.mjs} +1 -1
- package/dist/{chunk-D2ULAULS.cjs → chunk-FXFKIJDA.cjs} +9 -7
- package/dist/{chunk-RW63BOV7.cjs → chunk-GB7LDGY5.cjs} +2 -2
- package/dist/chunk-GC3EM6H4.mjs +80 -0
- package/dist/{chunk-E3UK5IIB.cjs → chunk-GS3WR5HX.cjs} +5 -3
- package/dist/{chunk-QFW2IH5E.mjs → chunk-GZTUT75U.mjs} +5 -2
- package/dist/chunk-H3EGVQE5.mjs +22 -0
- package/dist/chunk-HANGSYMB.mjs +67 -0
- package/dist/{chunk-RSOJ7DRT.mjs → chunk-HCSVR4YZ.mjs} +1 -58
- package/dist/{chunk-QYMZOOC5.mjs → chunk-HJ64F4GS.mjs} +12 -44
- package/dist/{chunk-P3PLW4FR.mjs → chunk-HKFBMHCD.mjs} +4 -4
- package/dist/{chunk-BXDJXFQG.cjs → chunk-I5MG3TKE.cjs} +4 -4
- package/dist/{chunk-VNGH5MLF.mjs → chunk-I6UVKUYK.mjs} +1 -1
- package/dist/{chunk-EPYU2EBL.mjs → chunk-IF4NU2NG.mjs} +1 -1
- package/dist/{chunk-WXJLNP33.cjs → chunk-IFWSR7YZ.cjs} +9 -7
- package/dist/{chunk-IVLZZZEI.mjs → chunk-IM7DY3ED.mjs} +1 -1
- package/dist/{chunk-W36M2BQ4.mjs → chunk-IN6RCKLL.mjs} +6 -5
- package/dist/{chunk-F5QO4FNE.mjs → chunk-INQ64HTJ.mjs} +43 -11
- package/dist/{chunk-SDOTRX3V.cjs → chunk-JEIG3EWE.cjs} +8 -8
- package/dist/{chunk-UWPLULNK.mjs → chunk-JGHCKIRI.mjs} +84 -24
- package/dist/{chunk-BFJTHYTN.mjs → chunk-JIYYX7WU.mjs} +10 -8
- package/dist/{chunk-CIOT4HGT.cjs → chunk-JOTUZIM4.cjs} +14 -14
- package/dist/{chunk-SKVTP5PR.mjs → chunk-JOW4HDJO.mjs} +1 -62
- package/dist/{chunk-6MVFL3R5.cjs → chunk-JR4QCLJY.cjs} +1 -58
- package/dist/{chunk-CGBDNNSM.cjs → chunk-KEXK442I.cjs} +44 -12
- package/dist/{chunk-FUCSUGDM.cjs → chunk-KF6VDJH7.cjs} +3 -3
- package/dist/{chunk-EA5K5BKU.mjs → chunk-KNHBTJP6.mjs} +18 -1
- package/dist/{chunk-MVL2RAJW.mjs → chunk-KYN5ODF6.mjs} +1 -1
- package/dist/{chunk-LMPAPBUA.cjs → chunk-L6A26QT5.cjs} +36 -68
- package/dist/{chunk-RVXFINNS.cjs → chunk-L6HYACBE.cjs} +31 -31
- package/dist/chunk-LFHCG2DU.mjs +43 -0
- package/dist/{chunk-5OKBARDN.cjs → chunk-LIZTLA5F.cjs} +12 -11
- package/dist/{chunk-HXRYZWTA.mjs → chunk-LLUA2LSC.mjs} +3 -3
- package/dist/{chunk-B5J2YVG7.cjs → chunk-LYIZHJTK.cjs} +2 -2
- package/dist/{chunk-3UEVPCGW.mjs → chunk-MEASUNVY.mjs} +6 -1
- package/dist/{chunk-FZ6YYU2W.mjs → chunk-MGMF4VP7.mjs} +38 -1
- package/dist/{chunk-CNNOLE4O.mjs → chunk-MHHCLYXU.mjs} +1 -1
- package/dist/{chunk-HRSAQ23K.cjs → chunk-MHN4UR5U.cjs} +4 -4
- package/dist/{chunk-3LOLJTFV.cjs → chunk-MN4TQJ3W.cjs} +11 -11
- package/dist/{chunk-PGZDEPTM.cjs → chunk-MY5PZYAD.cjs} +10 -10
- package/dist/{chunk-ZXH4TS3F.cjs → chunk-NBPNUQYO.cjs} +3 -64
- package/dist/{chunk-VXEEATVD.cjs → chunk-NFG4PUPI.cjs} +2 -2
- package/dist/{chunk-INL3THCU.mjs → chunk-O7USYJ4U.mjs} +1 -1
- package/dist/{chunk-4ZFL5GFN.cjs → chunk-OILHPMFX.cjs} +86 -26
- package/dist/{chunk-AJQTP4OO.mjs → chunk-OJ7JP7RJ.mjs} +1 -1
- package/dist/chunk-OQ4YXWH4.cjs +6097 -0
- package/dist/{chunk-DMEPTZTI.mjs → chunk-P2UJF4SS.mjs} +47 -7
- package/dist/{chunk-T5OJPTVN.cjs → chunk-P4TYB4SF.cjs} +2 -2
- package/dist/chunk-P7XDC7UJ.mjs +92 -0
- package/dist/{chunk-SHLXACIO.cjs → chunk-PJ42JESY.cjs} +1 -9
- package/dist/{chunk-5ULKUBIA.cjs → chunk-PN676AZF.cjs} +6 -6
- package/dist/{chunk-YKZRDB5Z.mjs → chunk-PYHPXPSW.mjs} +2 -2
- package/dist/{chunk-KMTGADN3.mjs → chunk-QCVIRVHE.mjs} +1 -9
- package/dist/{chunk-5D2JIPLH.cjs → chunk-QEILRWVV.cjs} +36 -138
- package/dist/{chunk-XKG2BLFN.cjs → chunk-QIBP5EFA.cjs} +18 -35
- package/dist/{chunk-ZUPXLIGB.mjs → chunk-R65GCA6A.mjs} +647 -378
- package/dist/{chunk-BWIQR4DH.cjs → chunk-RHGK2JEN.cjs} +56 -63
- package/dist/{chunk-AS2VPMEE.cjs → chunk-ROQ4C4LJ.cjs} +1465 -8174
- package/dist/{chunk-QV4VE2OW.mjs → chunk-S6ENKNNG.mjs} +5 -3
- package/dist/{chunk-RWFLWR5J.cjs → chunk-S7MTDRYA.cjs} +17 -15
- package/dist/{chunk-PVZE2JGJ.mjs → chunk-SGB4IW7K.mjs} +43 -25
- package/dist/{chunk-GKBWWRBG.mjs → chunk-SVPGWJZF.mjs} +12 -12
- package/dist/{chunk-EKN7NSZO.cjs → chunk-SZLNU3GJ.cjs} +8 -5
- package/dist/chunk-TI7UANHI.cjs +77 -0
- package/dist/{chunk-6BK3K2GB.mjs → chunk-UIDWEU7M.mjs} +83 -44
- package/dist/{chunk-MLY2RP5R.mjs → chunk-ULQOP5UI.mjs} +6 -2
- package/dist/chunk-UNJZGVPU.cjs +6 -0
- package/dist/{chunk-5BWWFHR2.mjs → chunk-UQUEANTY.mjs} +3 -3
- package/dist/chunk-VDRM36QB.cjs +963 -0
- package/dist/chunk-VHRS3MCW.cjs +196 -0
- package/dist/{chunk-SOP2EAA6.mjs → chunk-VLPII2JJ.mjs} +1 -1
- package/dist/{chunk-RG4A6LB2.cjs → chunk-VNPXKF3G.cjs} +7 -7
- package/dist/chunk-VQDBNVOO.cjs +14 -0
- package/dist/chunk-VQGKD7RV.mjs +25 -0
- package/dist/{chunk-6HB6V3R7.mjs → chunk-VTBXE6QG.mjs} +10 -27
- package/dist/{chunk-ZMSZZXOR.mjs → chunk-WDMIW6Q6.mjs} +0 -19
- package/dist/{chunk-NBBEQLOK.cjs → chunk-WLHA5USH.cjs} +9 -9
- package/dist/{chunk-BZHXGVMA.mjs → chunk-WMBRZI5V.mjs} +5 -3
- package/dist/{chunk-4WVJLURN.mjs → chunk-WMHG64DA.mjs} +1 -1
- package/dist/{chunk-JCYYXBAJ.cjs → chunk-WROEFVNO.cjs} +3 -3
- package/dist/{chunk-A657YSP4.cjs → chunk-WSOBCAYO.cjs} +37 -35
- package/dist/{chunk-IWZKTWHZ.cjs → chunk-WU7ZS3EM.cjs} +7 -2
- package/dist/{chunk-J63ZH5OQ.cjs → chunk-X3GMHKO3.cjs} +2 -2
- package/dist/{chunk-POSPE3IO.mjs → chunk-X3NGFVRF.mjs} +61 -21
- package/dist/{chunk-VT4WFRHA.mjs → chunk-XUC6CFLE.mjs} +1 -1
- package/dist/chunk-Y5RG6B7S.mjs +77 -0
- package/dist/{chunk-EIPC3FDA.cjs → chunk-YWCYV7QC.cjs} +9 -5
- package/dist/{chunk-WLL43JMO.mjs → chunk-YYQVGKO5.mjs} +7 -5
- package/dist/chunk-YZAKIXRL.cjs +67 -0
- package/dist/chunk-ZQRCSUSB.cjs +25 -0
- package/dist/{chunk-6XWDE2P2.cjs → chunk-ZTP3BJG6.cjs} +64 -24
- package/dist/{chunk-ZMMBIVQM.mjs → chunk-ZZGQD7A4.mjs} +16 -86
- package/dist/{client-plugins-CsCuCLBz.d.mts → client-plugins-CkYwvDJ0.d.mts} +2545 -2665
- package/dist/{client-plugins-D0ke-Hc8.d.ts → client-plugins-DfeKd0sD.d.ts} +2545 -2665
- package/dist/client-plugins.d.mts +6 -8
- package/dist/client-plugins.d.ts +6 -8
- package/dist/client.cjs +5 -5
- package/dist/client.d.mts +12 -13
- package/dist/client.d.ts +12 -13
- package/dist/client.mjs +4 -4
- package/dist/client.react-server.mjs +2 -0
- package/dist/config.d.mts +6 -8
- package/dist/config.d.ts +6 -8
- package/dist/{devtools-LW4QQ5J3.cjs → devtools-2YHAJYH6.cjs} +21 -18
- package/dist/{devtools-5AFIPVUJ.mjs → devtools-N3QLRIQU.mjs} +20 -17
- package/dist/docs.cjs +23 -20
- package/dist/docs.d.mts +7 -9
- package/dist/docs.d.ts +7 -9
- package/dist/docs.mjs +22 -19
- package/dist/{endpoint-CA-TNX60.d.ts → endpoint-BOE0IAaG.d.ts} +6 -3
- package/dist/{endpoint-CCHFqyTE.d.mts → endpoint-DGZRZHux.d.mts} +6 -3
- package/dist/environment/vite.cjs +6 -2
- package/dist/environment/vite.d.mts +11 -2
- package/dist/environment/vite.d.ts +11 -2
- package/dist/environment/vite.mjs +5 -1
- package/dist/headers.cjs +4 -4
- package/dist/headers.mjs +3 -3
- package/dist/image/server.cjs +7 -3
- package/dist/image/server.d.mts +10 -2
- package/dist/image/server.d.ts +10 -2
- package/dist/image/server.mjs +6 -2
- package/dist/image/sharp.cjs +12 -10
- package/dist/image/sharp.d.mts +1 -1
- package/dist/image/sharp.d.ts +1 -1
- package/dist/image/sharp.mjs +4 -2
- package/dist/{image-config-Duob7wER.d.ts → image-config-BpH1q5R8.d.mts} +4 -1
- package/dist/{image-config-Duob7wER.d.mts → image-config-BpH1q5R8.d.ts} +4 -1
- package/dist/image.d.mts +1 -1
- package/dist/image.d.ts +1 -1
- package/dist/index.cjs +90 -68
- package/dist/index.d.mts +28 -145
- package/dist/index.d.ts +28 -145
- package/dist/index.mjs +103 -81
- package/dist/{integration-api-BPJo5oXb.d.ts → integration-api-BuPHMeKz.d.ts} +2 -2
- package/dist/{integration-api-0y4FXJpC.d.mts → integration-api-DWyMmvrR.d.mts} +2 -2
- package/dist/integration-orm-P2II2EBK.cjs +14 -0
- package/dist/{integration-orm-KV5B3BGZ.mjs → integration-orm-RBKCIQYZ.mjs} +4 -3
- package/dist/integrations.cjs +7 -5
- package/dist/integrations.d.mts +8 -10
- package/dist/integrations.d.ts +8 -10
- package/dist/integrations.mjs +6 -4
- package/dist/internal/app-markdown-runtime.cjs +6 -5
- package/dist/internal/app-markdown-runtime.d.mts +7 -9
- package/dist/internal/app-markdown-runtime.d.ts +7 -9
- package/dist/internal/app-markdown-runtime.mjs +5 -4
- package/dist/internal/build-runtime.cjs +57 -56
- package/dist/internal/build-runtime.d.mts +8 -10
- package/dist/internal/build-runtime.d.ts +8 -10
- package/dist/internal/build-runtime.mjs +56 -55
- package/dist/internal/cli-runtime.cjs +37 -31
- package/dist/internal/cli-runtime.mjs +37 -31
- package/dist/internal/client-error-overlay.cjs +4 -4
- package/dist/internal/client-error-overlay.mjs +1 -1
- package/dist/internal/compression-runtime.d.mts +6 -8
- package/dist/internal/compression-runtime.d.ts +6 -8
- package/dist/internal/config-runtime.cjs +21 -18
- package/dist/internal/config-runtime.d.mts +7 -9
- package/dist/internal/config-runtime.d.ts +7 -9
- package/dist/internal/config-runtime.mjs +20 -17
- package/dist/internal/docs-precompiled-runtime.cjs +3 -3
- package/dist/internal/docs-precompiled-runtime.mjs +2 -2
- package/dist/internal/infra-analytics-runtime.cjs +7 -7
- package/dist/internal/infra-analytics-runtime.mjs +5 -5
- package/dist/internal/metadata-image-runtime.cjs +4 -3
- package/dist/internal/metadata-image-runtime.mjs +3 -2
- package/dist/internal/product-telemetry-runtime.cjs +2 -2
- package/dist/internal/product-telemetry-runtime.mjs +1 -1
- package/dist/internal/production-node-env.cjs +2 -2
- package/dist/internal/production-node-env.mjs +1 -1
- package/dist/internal/production-runtime.cjs +53 -28
- package/dist/internal/production-runtime.d.mts +46 -15
- package/dist/internal/production-runtime.d.ts +46 -15
- package/dist/internal/production-runtime.mjs +57 -32
- package/dist/layers-CM5i6T7z.d.mts +55 -0
- package/dist/layers-CM5i6T7z.d.ts +55 -0
- package/dist/markdown.cjs +4 -4
- package/dist/markdown.d.mts +6 -8
- package/dist/markdown.d.ts +6 -8
- package/dist/markdown.mjs +3 -3
- package/dist/middleware.cjs +16 -10
- package/dist/middleware.d.mts +8 -10
- package/dist/middleware.d.ts +8 -10
- package/dist/middleware.mjs +19 -13
- package/dist/navigation.cjs +4 -4
- package/dist/navigation.d.mts +9 -10
- package/dist/navigation.d.ts +9 -10
- package/dist/navigation.mjs +3 -3
- package/dist/{nitro-MPZJGPXK.mjs → nitro-KDACKNHU.mjs} +3 -2
- package/dist/{nitro-7F65EZZS.cjs → nitro-NPGU6VBT.cjs} +4 -3
- package/dist/observability.cjs +2 -2
- package/dist/observability.mjs +1 -1
- package/dist/plugin-DBBZ4JI2.cjs +32 -0
- package/dist/plugin-SYMK7PQ2.mjs +32 -0
- package/dist/plugin.cjs +56 -43
- package/dist/plugin.d.mts +25 -8
- package/dist/plugin.d.ts +25 -8
- package/dist/plugin.mjs +57 -44
- package/dist/{production-runtime-DfRP0cV0.d.mts → production-runtime-BTkXQdYy.d.mts} +17 -3
- package/dist/{production-runtime-BaI3WHnV.d.ts → production-runtime-DFC7pgbp.d.ts} +17 -3
- package/dist/query/client.cjs +2 -2
- package/dist/query/client.mjs +3 -3
- package/dist/{render-plan-Dg8RBYFa.d.mts → render-plan-5rFeWmk7.d.mts} +1 -1
- package/dist/{render-plan-CfIdJKAf.d.ts → render-plan-BoAK9xFC.d.ts} +1 -1
- package/dist/renderer-client.d.mts +8 -9
- package/dist/renderer-client.d.ts +8 -9
- package/dist/{request-DfE02G_A.d.mts → request-BxBWigtl.d.mts} +1 -1
- package/dist/{request-CEbHIIl4.d.ts → request-fciwmd3n.d.ts} +1 -1
- package/dist/request.cjs +3 -3
- package/dist/request.d.mts +7 -9
- package/dist/request.d.ts +7 -9
- package/dist/request.mjs +2 -2
- package/dist/{route-rendering-C4oHbv6C.d.ts → route-rendering-BCM1QzEf.d.mts} +1 -1
- package/dist/{route-rendering-BHyOfXjD.d.mts → route-rendering-BLZT0IP0.d.ts} +1 -1
- package/dist/{router-uRN_29Em.d.ts → router-CkheNX3-.d.ts} +1 -1
- package/dist/{router-DwhA61SB.d.mts → router-DyZJWc1_.d.mts} +1 -1
- package/dist/routes.cjs +6 -5
- package/dist/routes.d.mts +6 -8
- package/dist/routes.d.ts +6 -8
- package/dist/routes.mjs +5 -4
- package/dist/{runtime-COk03hmx.d.ts → runtime-DfU4sKa5.d.ts} +3 -3
- package/dist/{runtime-BEdHhN4C.d.mts → runtime-wexvUN5J.d.mts} +3 -3
- package/dist/{schema-dev-notice-Y7MQEFGN.cjs → schema-dev-notice-5JPE67AI.cjs} +6 -4
- package/dist/{schema-dev-notice-O67CPXJ6.mjs → schema-dev-notice-WLPZ6WKU.mjs} +4 -2
- package/dist/server-action-security.cjs +4 -3
- package/dist/server-action-security.mjs +3 -2
- package/dist/server-client-bridge-DKWDl5NB.d.mts +7 -0
- package/dist/server-client-bridge-DKWDl5NB.d.ts +7 -0
- package/dist/server-fn-client.d.mts +3 -3
- package/dist/server-fn-client.d.ts +3 -3
- package/dist/server-fn.cjs +8 -7
- package/dist/server-fn.d.mts +1 -1
- package/dist/server-fn.d.ts +1 -1
- package/dist/server-fn.mjs +7 -6
- package/dist/server-plugins.cjs +5 -5
- package/dist/server-plugins.d.mts +7 -9
- package/dist/server-plugins.d.ts +7 -9
- package/dist/server-plugins.mjs +4 -4
- package/dist/server-query-client.d.mts +1 -1
- package/dist/server-query-client.d.ts +1 -1
- package/dist/server-query.cjs +9 -8
- package/dist/server-query.d.mts +1 -1
- package/dist/server-query.d.ts +1 -1
- package/dist/server-query.mjs +8 -7
- package/dist/server.cjs +97 -73
- package/dist/server.d.mts +18 -13
- package/dist/server.d.ts +18 -13
- package/dist/server.mjs +82 -58
- package/dist/{spa-router-DrVOBVGg.d.ts → spa-router-CcejECnG.d.ts} +2 -2
- package/dist/{spa-router-w4aFOuyn.d.mts → spa-router-DgsMXqfX.d.mts} +2 -2
- package/dist/ssg-1FGaFISl.d.ts +184 -0
- package/dist/ssg-Bg4bMMhM.d.mts +184 -0
- package/dist/storage.cjs +6 -2
- package/dist/storage.d.mts +9 -1
- package/dist/storage.d.ts +9 -1
- package/dist/storage.mjs +5 -1
- package/dist/testing.cjs +20 -18
- package/dist/testing.d.mts +7 -9
- package/dist/testing.d.ts +7 -9
- package/dist/testing.mjs +16 -14
- package/dist/theme/server.cjs +4 -4
- package/dist/theme/server.mjs +3 -3
- package/dist/{utils-Dhuqwmd2.d.ts → utils-8wtTYiH4.d.mts} +1 -1
- package/dist/{utils-BtYehqeU.d.mts → utils-Dxbh6Hgj.d.ts} +1 -1
- package/dist/version.cjs +2 -2
- package/dist/version.mjs +1 -1
- package/dist/vite.cjs +75 -46
- package/dist/vite.d.mts +130 -11
- package/dist/vite.d.ts +130 -11
- package/dist/vite.mjs +76 -47
- package/dist/{workflows-jZ4BcdoZ.d.ts → workflows-IWP1ddBm.d.mts} +5 -2
- package/dist/{workflows-jZ4BcdoZ.d.mts → workflows-IWP1ddBm.d.ts} +5 -2
- package/dist/workflows.cjs +4 -3
- package/dist/workflows.d.mts +1 -1
- package/dist/workflows.d.ts +1 -1
- package/dist/workflows.mjs +3 -2
- package/package.json +3 -1
- package/dist/chunk-3SDFA7UF.cjs +0 -701
- package/dist/chunk-DAO7JGTS.mjs +0 -73
- package/dist/chunk-E5GNDG5F.mjs +0 -701
- package/dist/chunk-SYQ3MOWW.cjs +0 -73
- package/dist/chunk-ULASELLA.cjs +0 -48
- package/dist/integration-orm-55F7CII5.cjs +0 -13
|
@@ -0,0 +1,196 @@
|
|
|
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 _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
+
|
|
5
|
+
// src/route-rendering.ts
|
|
6
|
+
function normalizeDynamicMode(value) {
|
|
7
|
+
switch (value) {
|
|
8
|
+
case "auto":
|
|
9
|
+
case "force-static":
|
|
10
|
+
case "force-dynamic":
|
|
11
|
+
case "error":
|
|
12
|
+
return value;
|
|
13
|
+
default:
|
|
14
|
+
return void 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, normalizeDynamicMode, "normalizeDynamicMode");
|
|
18
|
+
function mergeRouteRenderingDirectiveConfig(directiveConfig, mod, options) {
|
|
19
|
+
const pprEnabled = _optionalChain([options, 'optionalAccess', _ => _.experimentalPPR]) === true;
|
|
20
|
+
let ssg = _nullishCoalesce(_optionalChain([directiveConfig, 'optionalAccess', _2 => _2.ssg]), () => ( false));
|
|
21
|
+
let requestedPPR = _nullishCoalesce(_optionalChain([directiveConfig, 'optionalAccess', _3 => _3.ppr]), () => ( false));
|
|
22
|
+
let revalidate = _optionalChain([directiveConfig, 'optionalAccess', _4 => _4.revalidate]);
|
|
23
|
+
const moduleDynamic = normalizeDynamicMode(_optionalChain([mod, 'optionalAccess', _5 => _5.dynamic]));
|
|
24
|
+
const dynamic = _nullishCoalesce(moduleDynamic, () => ( _optionalChain([directiveConfig, 'optionalAccess', _6 => _6.dynamic])));
|
|
25
|
+
const hasExplicitSsg = typeof _optionalChain([mod, 'optionalAccess', _7 => _7.ssg]) === "boolean";
|
|
26
|
+
const hasExplicitPPR = typeof _optionalChain([mod, 'optionalAccess', _8 => _8.ppr]) === "boolean" || typeof _optionalChain([mod, 'optionalAccess', _9 => _9.experimental_ppr]) === "boolean";
|
|
27
|
+
if (hasExplicitSsg) {
|
|
28
|
+
ssg = mod.ssg === true;
|
|
29
|
+
}
|
|
30
|
+
if (hasExplicitPPR) {
|
|
31
|
+
requestedPPR = _optionalChain([mod, 'optionalAccess', _10 => _10.ppr]) === true || _optionalChain([mod, 'optionalAccess', _11 => _11.experimental_ppr]) === true;
|
|
32
|
+
}
|
|
33
|
+
if (typeof _optionalChain([mod, 'optionalAccess', _12 => _12.revalidate]) === "number") {
|
|
34
|
+
if (mod.revalidate > 0) {
|
|
35
|
+
revalidate = mod.revalidate;
|
|
36
|
+
if (!hasExplicitSsg && !requestedPPR) {
|
|
37
|
+
ssg = true;
|
|
38
|
+
}
|
|
39
|
+
} else {
|
|
40
|
+
revalidate = void 0;
|
|
41
|
+
if (!hasExplicitSsg) {
|
|
42
|
+
ssg = false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
} else if (_optionalChain([mod, 'optionalAccess', _13 => _13.revalidate]) === false) {
|
|
46
|
+
revalidate = void 0;
|
|
47
|
+
}
|
|
48
|
+
if (moduleDynamic === "force-static" || moduleDynamic === "error") {
|
|
49
|
+
ssg = true;
|
|
50
|
+
requestedPPR = false;
|
|
51
|
+
} else if (moduleDynamic === "force-dynamic") {
|
|
52
|
+
ssg = false;
|
|
53
|
+
requestedPPR = false;
|
|
54
|
+
revalidate = void 0;
|
|
55
|
+
}
|
|
56
|
+
if (_optionalChain([directiveConfig, 'optionalAccess', _14 => _14.requestBound]) && ssg) {
|
|
57
|
+
ssg = false;
|
|
58
|
+
revalidate = void 0;
|
|
59
|
+
}
|
|
60
|
+
const ppr = pprEnabled && !ssg && requestedPPR;
|
|
61
|
+
return {
|
|
62
|
+
ssg,
|
|
63
|
+
ppr,
|
|
64
|
+
revalidate: ssg || ppr ? revalidate : void 0,
|
|
65
|
+
dynamic,
|
|
66
|
+
directive: _optionalChain([directiveConfig, 'optionalAccess', _15 => _15.directive])
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, mergeRouteRenderingDirectiveConfig, "mergeRouteRenderingDirectiveConfig");
|
|
70
|
+
|
|
71
|
+
// src/ssg-paths.ts
|
|
72
|
+
var OPTIONAL_CATCH_ALL_SEGMENT = /^\[\[\.\.\.([^\]]+)\]\]$/;
|
|
73
|
+
var REQUIRED_CATCH_ALL_SEGMENT = /^\[\.\.\.([^\]]+)\]$/;
|
|
74
|
+
var REQUIRED_DYNAMIC_SEGMENT = /^\[([^\]]+)\]$/;
|
|
75
|
+
function materializeSSGRoutePath(routePattern, params) {
|
|
76
|
+
const outputSegments = [];
|
|
77
|
+
for (const segment of routePattern.split("/")) {
|
|
78
|
+
if (!segment) {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
const optionalCatchAll = segment.match(OPTIONAL_CATCH_ALL_SEGMENT);
|
|
82
|
+
if (optionalCatchAll) {
|
|
83
|
+
const parameterName = optionalCatchAll[1];
|
|
84
|
+
const value = params[parameterName];
|
|
85
|
+
const values = readCatchAllSegments(value, {
|
|
86
|
+
optional: true,
|
|
87
|
+
parameterName,
|
|
88
|
+
routePattern
|
|
89
|
+
});
|
|
90
|
+
outputSegments.push(...values.map(encodePathSegment));
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
const requiredCatchAll = segment.match(REQUIRED_CATCH_ALL_SEGMENT);
|
|
94
|
+
if (requiredCatchAll) {
|
|
95
|
+
const parameterName = requiredCatchAll[1];
|
|
96
|
+
const value = params[parameterName];
|
|
97
|
+
const values = readCatchAllSegments(value, {
|
|
98
|
+
optional: false,
|
|
99
|
+
parameterName,
|
|
100
|
+
routePattern
|
|
101
|
+
});
|
|
102
|
+
outputSegments.push(...values.map(encodePathSegment));
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
const requiredDynamic = segment.match(REQUIRED_DYNAMIC_SEGMENT);
|
|
106
|
+
if (requiredDynamic) {
|
|
107
|
+
const parameterName = requiredDynamic[1];
|
|
108
|
+
const value = params[parameterName];
|
|
109
|
+
if (isStaticPathArray(value)) {
|
|
110
|
+
throw new Error(
|
|
111
|
+
`Cannot materialize SSG route "${routePattern}": parameter "${parameterName}" must be a scalar value; arrays are only supported for catch-all segments.`
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
if (isMissingPathValue(value)) {
|
|
115
|
+
throw missingRequiredParameterError(routePattern, parameterName);
|
|
116
|
+
}
|
|
117
|
+
outputSegments.push(encodePathSegment(value));
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
outputSegments.push(segment);
|
|
121
|
+
}
|
|
122
|
+
return outputSegments.length > 0 ? `/${outputSegments.join("/")}` : "/";
|
|
123
|
+
}
|
|
124
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, materializeSSGRoutePath, "materializeSSGRoutePath");
|
|
125
|
+
function readCatchAllSegments(value, options) {
|
|
126
|
+
if (isMissingPathValue(value) || isStaticPathArray(value) && value.length === 0) {
|
|
127
|
+
if (options.optional) {
|
|
128
|
+
return [];
|
|
129
|
+
}
|
|
130
|
+
throw missingRequiredParameterError(options.routePattern, options.parameterName);
|
|
131
|
+
}
|
|
132
|
+
const segments = isStaticPathArray(value) ? [...value] : [value];
|
|
133
|
+
if (segments.some(isMissingPathValue)) {
|
|
134
|
+
throw new Error(
|
|
135
|
+
`Cannot materialize SSG route "${options.routePattern}": catch-all parameter "${options.parameterName}" contains an empty path segment.`
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
return segments;
|
|
139
|
+
}
|
|
140
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, readCatchAllSegments, "readCatchAllSegments");
|
|
141
|
+
function getOptionalCatchAllParameterNames(routePattern) {
|
|
142
|
+
return new Set(
|
|
143
|
+
routePattern.split("/").map((segment) => _optionalChain([segment, 'access', _16 => _16.match, 'call', _17 => _17(OPTIONAL_CATCH_ALL_SEGMENT), 'optionalAccess', _18 => _18[1]])).filter((name) => Boolean(name))
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, getOptionalCatchAllParameterNames, "getOptionalCatchAllParameterNames");
|
|
147
|
+
function normalizeStaticPathParams(params, optionalCatchAllParams) {
|
|
148
|
+
const entries = Object.entries(params).map(([key, value]) => {
|
|
149
|
+
const emptyOptionalCatchAll = optionalCatchAllParams.has(key) && (isMissingPathValue(value) || isStaticPathArray(value) && value.length === 0);
|
|
150
|
+
return [
|
|
151
|
+
key,
|
|
152
|
+
emptyOptionalCatchAll ? "" : isStaticPathArray(value) ? value.map(String).join("/") : String(value)
|
|
153
|
+
];
|
|
154
|
+
});
|
|
155
|
+
for (const name of optionalCatchAllParams) {
|
|
156
|
+
if (!Object.prototype.hasOwnProperty.call(params, name)) {
|
|
157
|
+
entries.push([name, ""]);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return Object.fromEntries(entries);
|
|
161
|
+
}
|
|
162
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, normalizeStaticPathParams, "normalizeStaticPathParams");
|
|
163
|
+
function isMissingPathValue(value) {
|
|
164
|
+
return value === "" || value === null || typeof value === "undefined";
|
|
165
|
+
}
|
|
166
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, isMissingPathValue, "isMissingPathValue");
|
|
167
|
+
function isStaticPathArray(value) {
|
|
168
|
+
return Array.isArray(value);
|
|
169
|
+
}
|
|
170
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, isStaticPathArray, "isStaticPathArray");
|
|
171
|
+
function missingRequiredParameterError(routePattern, parameterName) {
|
|
172
|
+
return new Error(
|
|
173
|
+
`Cannot materialize SSG route "${routePattern}": required parameter "${parameterName}" is missing or empty.`
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, missingRequiredParameterError, "missingRequiredParameterError");
|
|
177
|
+
function encodePathSegment(value) {
|
|
178
|
+
const encoded = encodeURIComponent(String(value)).replace(
|
|
179
|
+
/[!'()*]/g,
|
|
180
|
+
(character) => `%${character.charCodeAt(0).toString(16).toUpperCase()}`
|
|
181
|
+
);
|
|
182
|
+
if (encoded === "." || encoded === "..") {
|
|
183
|
+
throw new Error(
|
|
184
|
+
`Cannot materialize SSG path segment "${encoded}": dot-only segments are unsafe to prerender.`
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
return encoded;
|
|
188
|
+
}
|
|
189
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, encodePathSegment, "encodePathSegment");
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
exports.mergeRouteRenderingDirectiveConfig = mergeRouteRenderingDirectiveConfig; exports.materializeSSGRoutePath = materializeSSGRoutePath; exports.getOptionalCatchAllParameterNames = getOptionalCatchAllParameterNames; exports.normalizeStaticPathParams = normalizeStaticPathParams;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBMOBTMDRcjs = require('./chunk-BMOBTMDR.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkI57LW5VZcjs = require('./chunk-I57LW5VZ.cjs');
|
|
@@ -41,10 +41,10 @@ async function handleFarmDefaultMCPRequest(request, context) {
|
|
|
41
41
|
return transportError(403, "Cross-origin requests are not allowed.");
|
|
42
42
|
}
|
|
43
43
|
const protocolHeader = request.headers.get("mcp-protocol-version");
|
|
44
|
-
if (protocolHeader && !
|
|
44
|
+
if (protocolHeader && !_chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.includes(protocolHeader.trim())) {
|
|
45
45
|
return transportError(
|
|
46
46
|
400,
|
|
47
|
-
`Unsupported MCP-Protocol-Version: ${protocolHeader.slice(0, 32)}. Supported: ${
|
|
47
|
+
`Unsupported MCP-Protocol-Version: ${protocolHeader.slice(0, 32)}. Supported: ${_chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.join(", ")}.`
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
const contentType = _nullishCoalesce(request.headers.get("content-type"), () => ( ""));
|
|
@@ -102,7 +102,7 @@ async function dispatch(method, params, request, context) {
|
|
|
102
102
|
switch (method) {
|
|
103
103
|
case "initialize": {
|
|
104
104
|
const requested = isRecord(params) ? params.protocolVersion : void 0;
|
|
105
|
-
const protocolVersion = typeof requested === "string" &&
|
|
105
|
+
const protocolVersion = typeof requested === "string" && _chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS.includes(requested) ? requested : _chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_PROTOCOL_VERSIONS[0];
|
|
106
106
|
return {
|
|
107
107
|
protocolVersion,
|
|
108
108
|
capabilities: { tools: { listChanged: false } },
|
|
@@ -110,7 +110,7 @@ async function dispatch(method, params, request, context) {
|
|
|
110
110
|
name: context.server.name,
|
|
111
111
|
version: context.server.version,
|
|
112
112
|
...context.server.title ? { title: context.server.title } : {},
|
|
113
|
-
description:
|
|
113
|
+
description: _chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_DESCRIPTION
|
|
114
114
|
},
|
|
115
115
|
instructions: INSTRUCTIONS
|
|
116
116
|
};
|
|
@@ -118,7 +118,7 @@ async function dispatch(method, params, request, context) {
|
|
|
118
118
|
case "ping":
|
|
119
119
|
return {};
|
|
120
120
|
case "tools/list":
|
|
121
|
-
return { tools:
|
|
121
|
+
return { tools: _chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_TOOLS };
|
|
122
122
|
case "tools/call":
|
|
123
123
|
return callTool(params, request, context);
|
|
124
124
|
default:
|
|
@@ -130,7 +130,7 @@ async function callTool(params, request, context) {
|
|
|
130
130
|
if (!isRecord(params) || typeof params.name !== "string") {
|
|
131
131
|
throw new FarmMCPRequestError(INVALID_PARAMS, "tools/call needs a tool name.");
|
|
132
132
|
}
|
|
133
|
-
const tool =
|
|
133
|
+
const tool = _chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_TOOLS.find(({ name }) => name === params.name);
|
|
134
134
|
if (!tool) {
|
|
135
135
|
throw new FarmMCPRequestError(INVALID_PARAMS, `Unknown tool: ${params.name.slice(0, 64)}`);
|
|
136
136
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
4
|
+
|
|
5
|
+
// src/utils/file-module.ts
|
|
6
|
+
var _url = require('url');
|
|
7
|
+
function toFileModuleUrl(filePath) {
|
|
8
|
+
return _url.pathToFileURL.call(void 0, filePath).href;
|
|
9
|
+
}
|
|
10
|
+
_chunkS3JO3N4Hcjs.__name.call(void 0, toFileModuleUrl, "toFileModuleUrl");
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.toFileModuleUrl = toFileModuleUrl;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-LPEX4YW6.mjs";
|
|
4
|
+
|
|
5
|
+
// src/schema-capabilities.ts
|
|
6
|
+
function assertNoSchemaListField(field, fieldPath, target) {
|
|
7
|
+
if (!field.list) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
throw new Error(
|
|
11
|
+
`Schema field "${fieldPath}" declares list: true, but ${target} does not support list fields. Use type: "json" for an array value or model the values in a related table.`
|
|
12
|
+
);
|
|
13
|
+
}
|
|
14
|
+
__name(assertNoSchemaListField, "assertNoSchemaListField");
|
|
15
|
+
|
|
16
|
+
// src/schema-reference.ts
|
|
17
|
+
function isDatabaseEnforcedReference(reference) {
|
|
18
|
+
return reference.enforced === void 0 || reference.enforced === "db";
|
|
19
|
+
}
|
|
20
|
+
__name(isDatabaseEnforcedReference, "isDatabaseEnforcedReference");
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
assertNoSchemaListField,
|
|
24
|
+
isDatabaseEnforcedReference
|
|
25
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isEndpointFailure,
|
|
3
3
|
resolvePluginRoutes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MEASUNVY.mjs";
|
|
5
5
|
import {
|
|
6
6
|
registerAPIRouteShape
|
|
7
7
|
} from "./chunk-W3B4PKAW.mjs";
|
|
@@ -9,16 +9,18 @@ import {
|
|
|
9
9
|
omitFarmResponseBody
|
|
10
10
|
} from "./chunk-5WI2S4CO.mjs";
|
|
11
11
|
import {
|
|
12
|
+
parseRouteSchema,
|
|
13
|
+
toPublicValidationIssues,
|
|
12
14
|
validateIntegrationRequestOrigin
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MGMF4VP7.mjs";
|
|
16
|
+
import {
|
|
17
|
+
resolveFarmAPICanonicalPathname
|
|
18
|
+
} from "./chunk-BTHHUD7Q.mjs";
|
|
14
19
|
import {
|
|
15
20
|
DEFAULT_FARM_SERVER_BODY_SIZE_LIMIT,
|
|
16
21
|
bufferFarmRequestBody,
|
|
17
22
|
createFarmRequestBodyErrorResponse
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
resolveFarmAPICanonicalPathname
|
|
21
|
-
} from "./chunk-BTHHUD7Q.mjs";
|
|
23
|
+
} from "./chunk-ZZGQD7A4.mjs";
|
|
22
24
|
import {
|
|
23
25
|
createStaticAPIRouteMatcher,
|
|
24
26
|
matchAPIRoute
|
|
@@ -34,25 +36,11 @@ import {
|
|
|
34
36
|
} from "./chunk-4SIYUGRY.mjs";
|
|
35
37
|
import {
|
|
36
38
|
_runWithCurrentRequest
|
|
37
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-X3NGFVRF.mjs";
|
|
38
40
|
import {
|
|
39
41
|
__name
|
|
40
42
|
} from "./chunk-LPEX4YW6.mjs";
|
|
41
43
|
|
|
42
|
-
// src/api/route-schema.ts
|
|
43
|
-
async function parseRouteSchema(schema, value) {
|
|
44
|
-
if (schema.parseAsync) return schema.parseAsync(value);
|
|
45
|
-
if (schema["~standard"]) {
|
|
46
|
-
const result = await schema["~standard"].validate(value);
|
|
47
|
-
if (result.issues)
|
|
48
|
-
throw Object.assign(new Error("Validation failed"), { issues: result.issues });
|
|
49
|
-
return result.value;
|
|
50
|
-
}
|
|
51
|
-
if (schema.parse) return schema.parse(value);
|
|
52
|
-
throw new TypeError("Route validators must implement Standard Schema or parse().");
|
|
53
|
-
}
|
|
54
|
-
__name(parseRouteSchema, "parseRouteSchema");
|
|
55
|
-
|
|
56
44
|
// src/api/plugin-route-runtime.ts
|
|
57
45
|
function mergePluginAPIRoutes(existing, plugins, expected, options = {}) {
|
|
58
46
|
const routes = /* @__PURE__ */ new Map();
|
|
@@ -465,11 +453,7 @@ async function validateInput(schema, value, error) {
|
|
|
465
453
|
return Response.json(
|
|
466
454
|
{
|
|
467
455
|
error,
|
|
468
|
-
details: (validationError
|
|
469
|
-
path: issue.path,
|
|
470
|
-
message: issue.message,
|
|
471
|
-
code: issue.code
|
|
472
|
-
}))
|
|
456
|
+
details: toPublicValidationIssues(validationError)
|
|
473
457
|
},
|
|
474
458
|
{ status: 400 }
|
|
475
459
|
);
|
|
@@ -478,7 +462,6 @@ async function validateInput(schema, value, error) {
|
|
|
478
462
|
__name(validateInput, "validateInput");
|
|
479
463
|
|
|
480
464
|
export {
|
|
481
|
-
parseRouteSchema,
|
|
482
465
|
API_ROUTE_METHODS,
|
|
483
466
|
resolveAPIRouteEndpoint,
|
|
484
467
|
getAllowedAPIRouteMethods,
|
|
@@ -2,23 +2,6 @@ import {
|
|
|
2
2
|
__name
|
|
3
3
|
} from "./chunk-LPEX4YW6.mjs";
|
|
4
4
|
|
|
5
|
-
// src/schema-capabilities.ts
|
|
6
|
-
function assertNoSchemaListField(field, fieldPath, target) {
|
|
7
|
-
if (!field.list) {
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
throw new Error(
|
|
11
|
-
`Schema field "${fieldPath}" declares list: true, but ${target} does not support list fields. Use type: "json" for an array value or model the values in a related table.`
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
__name(assertNoSchemaListField, "assertNoSchemaListField");
|
|
15
|
-
|
|
16
|
-
// src/schema-reference.ts
|
|
17
|
-
function isDatabaseEnforcedReference(reference) {
|
|
18
|
-
return reference.enforced === void 0 || reference.enforced === "db";
|
|
19
|
-
}
|
|
20
|
-
__name(isDatabaseEnforcedReference, "isDatabaseEnforcedReference");
|
|
21
|
-
|
|
22
5
|
// src/schema-primary-key.ts
|
|
23
6
|
var SUPPORTED_PRIMARY_KEY_TYPES = /* @__PURE__ */ new Set(["id", "uuid", "string", "integer"]);
|
|
24
7
|
function assertSupportedPrimaryKeyField(location, field) {
|
|
@@ -157,8 +140,6 @@ function cloneSchemaModel(model) {
|
|
|
157
140
|
__name(cloneSchemaModel, "cloneSchemaModel");
|
|
158
141
|
|
|
159
142
|
export {
|
|
160
|
-
assertNoSchemaListField,
|
|
161
|
-
isDatabaseEnforcedReference,
|
|
162
143
|
assertSupportedPrimaryKeyField,
|
|
163
144
|
resolveSchemaModels
|
|
164
145
|
};
|
|
@@ -7,7 +7,7 @@ var _chunkD7JTOLFKcjs = require('./chunk-D7JTOLFK.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkGB7LDGY5cjs = require('./chunk-GB7LDGY5.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkLTNGXMQ6cjs = require('./chunk-LTNGXMQ6.cjs');
|
|
@@ -149,9 +149,9 @@ function useMutationLifecycle(target, options = {}) {
|
|
|
149
149
|
};
|
|
150
150
|
});
|
|
151
151
|
const mutationTarget = targetRef.current;
|
|
152
|
-
const isAPITarget =
|
|
152
|
+
const isAPITarget = _chunkGB7LDGY5cjs.isAPIRouteRef.call(void 0, mutationTarget);
|
|
153
153
|
const sharedOptimistic = !preparationFailed && !isAPITarget ? _optionalChain([currentOptions, 'access', _3 => _3.request, 'optionalAccess', _4 => _4.optimistic]) : void 0;
|
|
154
|
-
const sharedSnapshots = _optionalChain([sharedOptimistic, 'optionalAccess', _5 => _5.update, 'optionalAccess', _6 => _6.length]) ?
|
|
154
|
+
const sharedSnapshots = _optionalChain([sharedOptimistic, 'optionalAccess', _5 => _5.update, 'optionalAccess', _6 => _6.length]) ? _chunkGB7LDGY5cjs.applyServerFnOptimisticUpdates.call(void 0, sharedOptimistic.update) : [];
|
|
155
155
|
try {
|
|
156
156
|
if (preparationFailed) throw preparationError;
|
|
157
157
|
let data;
|
|
@@ -178,9 +178,9 @@ function useMutationLifecycle(target, options = {}) {
|
|
|
178
178
|
throw cause;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
_chunkGB7LDGY5cjs.settleServerFnOptimisticUpdates.call(void 0, sharedSnapshots, "commit");
|
|
182
182
|
if (!isAPITarget && _optionalChain([currentOptions, 'access', _9 => _9.request, 'optionalAccess', _10 => _10.invalidate])) {
|
|
183
|
-
for (const key of
|
|
183
|
+
for (const key of _chunkGB7LDGY5cjs.resolveServerFnInvalidateTargets.call(void 0, currentOptions.request.invalidate)) {
|
|
184
184
|
_chunkZEG3OPIBcjs.notifyFarmCacheInvalidation.call(void 0, key);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
@@ -215,7 +215,7 @@ function useMutationLifecycle(target, options = {}) {
|
|
|
215
215
|
}
|
|
216
216
|
return data;
|
|
217
217
|
} catch (cause) {
|
|
218
|
-
|
|
218
|
+
_chunkGB7LDGY5cjs.settleServerFnOptimisticUpdates.call(void 0,
|
|
219
219
|
sharedSnapshots,
|
|
220
220
|
_optionalChain([sharedOptimistic, 'optionalAccess', _11 => _11.rollbackOnError]) ? "rollback" : "invalidate"
|
|
221
221
|
);
|
|
@@ -391,7 +391,7 @@ function useFetcher(target, options = {}) {
|
|
|
391
391
|
const Form = _react.useMemo.call(void 0, () => {
|
|
392
392
|
const FetcherForm = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, ({ action, method, encType, onSubmit, ...props }) => {
|
|
393
393
|
const targetValue = targetRef.current;
|
|
394
|
-
const metadata =
|
|
394
|
+
const metadata = _chunkGB7LDGY5cjs.getAPIRouteRefMetadata.call(void 0, targetValue);
|
|
395
395
|
const nativeAction = _nullishCoalesce(action, () => ( resolveFetcherFormAction(targetValue, metadata)));
|
|
396
396
|
const nativeMethod = _nullishCoalesce(method, () => ( (metadata && (metadata.method === "GET" || metadata.method === "POST") ? metadata.method.toLowerCase() : metadata ? "post" : void 0)));
|
|
397
397
|
const functionAction = typeof nativeAction === "function";
|
|
@@ -460,10 +460,10 @@ function mapFetcherFormData(target, formData, options) {
|
|
|
460
460
|
if (options.mapFormData) {
|
|
461
461
|
return options.mapFormData(formData, context);
|
|
462
462
|
}
|
|
463
|
-
if (!
|
|
463
|
+
if (!_chunkGB7LDGY5cjs.isAPIRouteRef.call(void 0, target)) {
|
|
464
464
|
return formData;
|
|
465
465
|
}
|
|
466
|
-
const method = _optionalChain([
|
|
466
|
+
const method = _optionalChain([_chunkGB7LDGY5cjs.getAPIRouteRefMetadata.call(void 0, target), 'optionalAccess', _14 => _14.method]);
|
|
467
467
|
const query = method === "GET" || method === "HEAD";
|
|
468
468
|
const encoding = _nullishCoalesce(_optionalChain([context, 'access', _15 => _15.submitter, 'optionalAccess', _16 => _16.getAttribute, 'call', _17 => _17("formenctype")]), () => ( _optionalChain([context, 'access', _18 => _18.form, 'optionalAccess', _19 => _19.enctype])));
|
|
469
469
|
if (!query && (_optionalChain([encoding, 'optionalAccess', _20 => _20.toLowerCase, 'call', _21 => _21()]) === "multipart/form-data" || Array.from(formData.values()).some((value) => typeof value !== "string"))) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
classifyFarmAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KYN5ODF6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
onFarmEvent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4GP3XZ4Z.mjs";
|
|
7
7
|
import {
|
|
8
8
|
getCurrentRequestOrNull
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X3NGFVRF.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-LPEX4YW6.mjs";
|
|
@@ -294,6 +294,8 @@ function farmInfraAnalyticsPlugin(options, send) {
|
|
|
294
294
|
return state;
|
|
295
295
|
},
|
|
296
296
|
runtime: {
|
|
297
|
+
// Recording a request decides nothing about who may read the response.
|
|
298
|
+
cache: "public",
|
|
297
299
|
start(context) {
|
|
298
300
|
const { exporter } = context.state;
|
|
299
301
|
context.state.unsubscribe = onFarmEvent(
|
|
@@ -12,7 +12,7 @@ var _chunkDVM4FKZLcjs = require('./chunk-DVM4FKZL.cjs');
|
|
|
12
12
|
var _chunkOX6O6WVAcjs = require('./chunk-OX6O6WVA.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkZTP3BJG6cjs = require('./chunk-ZTP3BJG6.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -41,7 +41,7 @@ function createRedirectsPlugin(redirects, {
|
|
|
41
41
|
if (overrideBeforeRequest) {
|
|
42
42
|
await overrideBeforeRequest(req, res, context);
|
|
43
43
|
}
|
|
44
|
-
const url =
|
|
44
|
+
const url = _chunkZTP3BJG6cjs.resolveFarmRequestURL.call(void 0, req);
|
|
45
45
|
const routePath = _chunkDVM4FKZLcjs.resolveConfigRoutePathname.call(void 0, url.pathname, i18n);
|
|
46
46
|
const pathname = routePath.pathname;
|
|
47
47
|
for (const { redirect, pattern } of compiledRedirects) {
|
|
@@ -153,7 +153,7 @@ function createHeadersPlugin(headers, {
|
|
|
153
153
|
if (overrideBeforeRequest) {
|
|
154
154
|
await overrideBeforeRequest(req, res, context);
|
|
155
155
|
}
|
|
156
|
-
const url =
|
|
156
|
+
const url = _chunkZTP3BJG6cjs.resolveFarmRequestURL.call(void 0, req);
|
|
157
157
|
const pathname = _chunkDVM4FKZLcjs.resolveConfigRoutePathname.call(void 0, url.pathname, i18n).pathname;
|
|
158
158
|
const matchedHeaders = compiledHeaders.filter(({ pattern }) => pattern.regex.test(pathname)).map(({ config }) => config.headers);
|
|
159
159
|
applyResponseHeaders(res, matchedHeaders);
|