@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
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBMOBTMDRcjs = require('./chunk-BMOBTMDR.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkOWOUTKIJcjs = require('./chunk-OWOUTKIJ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkD5IHNDHIcjs = require('./chunk-D5IHNDHI.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk25LPIZSXcjs = require('./chunk-25LPIZSX.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkX3GMHKO3cjs = require('./chunk-X3GMHKO3.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkOI6CMLWXcjs = require('./chunk-OI6CMLWX.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkRHGK2JENcjs = require('./chunk-RHGK2JEN.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkALPWLT27cjs = require('./chunk-ALPWLT27.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkTKJZFIMLcjs = require('./chunk-TKJZFIML.cjs');
|
|
@@ -34,15 +34,15 @@ var _chunk75RZHGLScjs = require('./chunk-75RZHGLS.cjs');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var _chunkKIIMAWOJcjs = require('./chunk-KIIMAWOJ.cjs');
|
|
38
37
|
|
|
38
|
+
var _chunkKNBBQHO2cjs = require('./chunk-KNBBQHO2.cjs');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkEH3464KFcjs = require('./chunk-EH3464KF.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var _chunkBIDYX3SLcjs = require('./chunk-BIDYX3SL.cjs');
|
|
@@ -112,7 +112,7 @@ function routeBoundaryCoversDirectory(boundaryPattern, directory) {
|
|
|
112
112
|
_chunkS3JO3N4Hcjs.__name.call(void 0, routeBoundaryCoversDirectory, "routeBoundaryCoversDirectory");
|
|
113
113
|
|
|
114
114
|
// src/server/full-document.ts
|
|
115
|
-
var CONTENTS_WRAPPER = /^<div\b[^>]*style="display\s*:\s*contents"[^>]*>/i;
|
|
115
|
+
var CONTENTS_WRAPPER = /^<div\b[^>]*style="display\s*:\s*contents;?\s*"[^>]*>/i;
|
|
116
116
|
var HOISTED_HEAD_ELEMENT = /^(?:<(?:meta|link|base)\b[^>]*>|<title\b[^>]*>[\s\S]*?<\/title>|<script\b[^>]*\basync\b[^>]*><\/script>|<style\b[^>]*\bdata-precedence\b[^>]*>[\s\S]*?<\/style>)/i;
|
|
117
117
|
function peelDocumentPrefix(markup) {
|
|
118
118
|
let inner = markup.replace(/^\s+/, "");
|
|
@@ -252,20 +252,20 @@ function configMiddlewareMayHandlePath(config, pathname) {
|
|
|
252
252
|
typeof matcher === "function" ? () => true : matcher
|
|
253
253
|
)
|
|
254
254
|
) : void 0;
|
|
255
|
-
const compiled =
|
|
256
|
-
return
|
|
255
|
+
const compiled = _chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, { matcher: matchers, exclude: entry.exclude });
|
|
256
|
+
return _chunkALPWLT27cjs.matchesCompiledMiddlewareConfig.call(void 0, pathname, compiled, {}).matched;
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
_chunkS3JO3N4Hcjs.__name.call(void 0, configMiddlewareMayHandlePath, "configMiddlewareMayHandlePath");
|
|
260
260
|
function appMiddlewareMayHandlePath(middlewareRoutes, pathname) {
|
|
261
|
-
return middlewareRoutes.some((route) =>
|
|
261
|
+
return middlewareRoutes.some((route) => _chunkALPWLT27cjs.matchesMiddlewareRoute.call(void 0, pathname, route).matched);
|
|
262
262
|
}
|
|
263
263
|
_chunkS3JO3N4Hcjs.__name.call(void 0, appMiddlewareMayHandlePath, "appMiddlewareMayHandlePath");
|
|
264
264
|
var CATCH_ALL_PROBE = "/__farm-listing-probe__/0";
|
|
265
265
|
function isPathSpecificMatcher(matcher) {
|
|
266
266
|
if (typeof matcher === "function") return false;
|
|
267
|
-
const compiled =
|
|
268
|
-
return !
|
|
267
|
+
const compiled = _chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, { matcher });
|
|
268
|
+
return !_chunkALPWLT27cjs.matchesCompiledMiddlewareConfig.call(void 0, CATCH_ALL_PROBE, compiled, {}).matched;
|
|
269
269
|
}
|
|
270
270
|
_chunkS3JO3N4Hcjs.__name.call(void 0, isPathSpecificMatcher, "isPathSpecificMatcher");
|
|
271
271
|
function pathSpecificConfigMiddlewareCovers(config, pathname) {
|
|
@@ -277,8 +277,8 @@ function pathSpecificConfigMiddlewareCovers(config, pathname) {
|
|
|
277
277
|
isPathSpecificMatcher
|
|
278
278
|
);
|
|
279
279
|
if (matchers.length === 0) return false;
|
|
280
|
-
const compiled =
|
|
281
|
-
return
|
|
280
|
+
const compiled = _chunkALPWLT27cjs.compileMiddlewareConfig.call(void 0, { matcher: matchers, exclude: entry.exclude });
|
|
281
|
+
return _chunkALPWLT27cjs.matchesCompiledMiddlewareConfig.call(void 0, pathname, compiled, {}).matched;
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
_chunkS3JO3N4Hcjs.__name.call(void 0, pathSpecificConfigMiddlewareCovers, "pathSpecificConfigMiddlewareCovers");
|
|
@@ -286,7 +286,7 @@ function farmPathGuardCoversPage(options, pathname) {
|
|
|
286
286
|
return appMiddlewareMayHandlePath(
|
|
287
287
|
options.middlewareRoutes.filter((route) => route.path !== "/"),
|
|
288
288
|
pathname
|
|
289
|
-
) || pathSpecificConfigMiddlewareCovers(options.config.middleware, pathname) ||
|
|
289
|
+
) || pathSpecificConfigMiddlewareCovers(options.config.middleware, pathname) || _chunkRHGK2JENcjs.integrationMiddlewareMayHandlePath.call(void 0, options.config.integrations, pathname, CATCH_ALL_PROBE);
|
|
290
290
|
}
|
|
291
291
|
_chunkS3JO3N4Hcjs.__name.call(void 0, farmPathGuardCoversPage, "farmPathGuardCoversPage");
|
|
292
292
|
function farmPathGuardCoversEndpoint(options, path, apiServerBasePath) {
|
|
@@ -348,14 +348,14 @@ function isLateRedirectTarget(url) {
|
|
|
348
348
|
_chunkS3JO3N4Hcjs.__name.call(void 0, isLateRedirectTarget, "isLateRedirectTarget");
|
|
349
349
|
function createLateRedirectRecovery(url, nonce) {
|
|
350
350
|
if (!isLateRedirectTarget(url)) return "";
|
|
351
|
-
return
|
|
351
|
+
return _chunk25LPIZSXcjs.stampFarmCspNonce.call(void 0,
|
|
352
352
|
`<script>window.location.replace(${serializeForInlineScript(url)})</script>`,
|
|
353
353
|
nonce
|
|
354
354
|
);
|
|
355
355
|
}
|
|
356
356
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createLateRedirectRecovery, "createLateRedirectRecovery");
|
|
357
357
|
function createLateNotFoundRecovery(content, nonce) {
|
|
358
|
-
return `<template id="${TEMPLATE_ID}">${content}</template>` +
|
|
358
|
+
return `<template id="${TEMPLATE_ID}">${content}</template>` + _chunk25LPIZSXcjs.stampFarmCspNonce.call(void 0,
|
|
359
359
|
`<script>(function(){var t=document.getElementById("${TEMPLATE_ID}");var p=document.getElementById("${PAGE_CONTAINER_ID}");if(t&&p){p.replaceChildren(t.content.cloneNode(true));}if(t)t.remove();document.documentElement.dataset.farmLateNotFound="true";var m=document.createElement("meta");m.name="robots";m.content="noindex";document.head.appendChild(m);})();</script>`,
|
|
360
360
|
nonce
|
|
361
361
|
);
|
|
@@ -480,12 +480,12 @@ function createFarmMetadataRouteResponse(kind, value, routeModule = {}, options
|
|
|
480
480
|
return new Response(null, { status: 405, headers: { Allow: "GET, HEAD" } });
|
|
481
481
|
}
|
|
482
482
|
if ((kind === "llms" || kind === "llms-full") && options.request) {
|
|
483
|
-
|
|
483
|
+
_chunkX3GMHKO3cjs.emitFarmAgentRead.call(void 0, options.request, kind, isResponse(value) ? value.status : 200);
|
|
484
484
|
}
|
|
485
485
|
if (isResponse(value)) {
|
|
486
486
|
return method === "HEAD" ? _chunkTKJZFIMLcjs.omitFarmResponseBody.call(void 0, value) : value;
|
|
487
487
|
}
|
|
488
|
-
const body = kind === "sitemap" ? serializeSitemap(value) : kind === "robots" ? serializeRobots(value) : kind === "llms" || kind === "llms-full" ?
|
|
488
|
+
const body = kind === "sitemap" ? serializeSitemap(value) : kind === "robots" ? serializeRobots(value) : kind === "llms" || kind === "llms-full" ? _chunkD5IHNDHIcjs.serializeFarmLlmsTxt.call(void 0, value) : serializeManifest(value);
|
|
489
489
|
const contentType = kind === "sitemap" ? "application/xml; charset=utf-8" : kind === "robots" || kind === "llms" || kind === "llms-full" ? "text/plain; charset=utf-8" : "application/manifest+json; charset=utf-8";
|
|
490
490
|
return new Response(method === "HEAD" ? null : body, {
|
|
491
491
|
headers: {
|
|
@@ -620,7 +620,7 @@ function createFarmAiCatalogResponse(request, input = {}, requestUrl) {
|
|
|
620
620
|
const body = JSON.stringify(
|
|
621
621
|
card ? card.card : { specVersion: "1.0", entries: servers.map(({ entry }) => entry) }
|
|
622
622
|
);
|
|
623
|
-
const etag =
|
|
623
|
+
const etag = _chunk5NAVKJCZcjs.createFarmWeakETag.call(void 0, body);
|
|
624
624
|
const headers = {
|
|
625
625
|
...corsHeaders(),
|
|
626
626
|
"Content-Type": card ? `${SERVER_CARD_TYPE}; charset=utf-8` : ard ? "application/json; charset=utf-8" : `${AI_CATALOG_TYPE}; charset=utf-8`,
|
|
@@ -629,10 +629,10 @@ function createFarmAiCatalogResponse(request, input = {}, requestUrl) {
|
|
|
629
629
|
ETag: etag,
|
|
630
630
|
"X-Content-Type-Options": "nosniff"
|
|
631
631
|
};
|
|
632
|
-
if (
|
|
632
|
+
if (_chunk5NAVKJCZcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
633
633
|
return new Response(null, { status: 304, headers });
|
|
634
634
|
}
|
|
635
|
-
|
|
635
|
+
_chunkX3GMHKO3cjs.emitFarmAgentRead.call(void 0, request, card ? "mcp-server-card" : "ai-catalog", 200);
|
|
636
636
|
return new Response(method === "HEAD" ? null : body, { status: 200, headers });
|
|
637
637
|
}
|
|
638
638
|
_chunkS3JO3N4Hcjs.__name.call(void 0, createFarmAiCatalogResponse, "createFarmAiCatalogResponse");
|
|
@@ -846,7 +846,7 @@ function createFarmThemeDocumentParts(input, basePath = "/", serverTheme) {
|
|
|
846
846
|
const script = createFarmThemeBootstrapScript(config, hydrationTheme);
|
|
847
847
|
return {
|
|
848
848
|
attributes: ` data-theme="${initialTheme}"`,
|
|
849
|
-
head:
|
|
849
|
+
head: _chunk25LPIZSXcjs.stampFarmCspNonce.call(void 0,
|
|
850
850
|
`<style id="${THEME_STYLE_ID}">:root[data-theme="light"]{color-scheme:light}:root[data-theme="dark"]{color-scheme:dark}</style><script id="${THEME_SCRIPT_ID}">${script}</script>`
|
|
851
851
|
)
|
|
852
852
|
};
|
|
@@ -940,7 +940,7 @@ function createFarmApiCatalogResponse(method, input, request) {
|
|
|
940
940
|
headers: { Allow: "GET, HEAD", "Content-Type": "text/plain; charset=utf-8" }
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
|
-
if (request)
|
|
943
|
+
if (request) _chunkX3GMHKO3cjs.emitFarmAgentRead.call(void 0, request, "api-catalog", 200);
|
|
944
944
|
const catalog = createFarmApiCatalog(input);
|
|
945
945
|
return new Response(upperMethod === "HEAD" ? null : JSON.stringify(catalog), {
|
|
946
946
|
status: 200,
|
|
@@ -997,7 +997,7 @@ function createFarmAppManifest(input, { full = false } = {}) {
|
|
|
997
997
|
const manifest = {
|
|
998
998
|
schemaVersion: 1,
|
|
999
999
|
app: {
|
|
1000
|
-
farm:
|
|
1000
|
+
farm: _chunkEH3464KFcjs.FARM_VERSION,
|
|
1001
1001
|
renderer: input.renderer,
|
|
1002
1002
|
basePath: input.basePath,
|
|
1003
1003
|
build: input.build
|
|
@@ -1054,7 +1054,7 @@ function listDefaultServer(input) {
|
|
|
1054
1054
|
authorization: "none",
|
|
1055
1055
|
resources: [],
|
|
1056
1056
|
prompts: [],
|
|
1057
|
-
tools:
|
|
1057
|
+
tools: _chunkBMOBTMDRcjs.FARM_DEFAULT_MCP_TOOLS.map((tool) => ({
|
|
1058
1058
|
name: tool.name,
|
|
1059
1059
|
title: tool.title,
|
|
1060
1060
|
description: tool.description,
|
|
@@ -1133,7 +1133,7 @@ async function createFarmAppManifestResponse(request, input, options = {}) {
|
|
|
1133
1133
|
signature && key && await verifyFarmInfraManifestSignature(signature, key)
|
|
1134
1134
|
);
|
|
1135
1135
|
const body = JSON.stringify(createFarmAppManifest(input, { full }));
|
|
1136
|
-
const etag =
|
|
1136
|
+
const etag = _chunk5NAVKJCZcjs.createFarmWeakETag.call(void 0, body);
|
|
1137
1137
|
const headers = {
|
|
1138
1138
|
...CORS_HEADERS,
|
|
1139
1139
|
"content-type": "application/json; charset=utf-8",
|
|
@@ -1143,7 +1143,7 @@ async function createFarmAppManifestResponse(request, input, options = {}) {
|
|
|
1143
1143
|
etag,
|
|
1144
1144
|
"x-content-type-options": "nosniff"
|
|
1145
1145
|
};
|
|
1146
|
-
if (!full &&
|
|
1146
|
+
if (!full && _chunk5NAVKJCZcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
1147
1147
|
return new Response(null, { status: 304, headers });
|
|
1148
1148
|
}
|
|
1149
1149
|
return new Response(method === "HEAD" ? null : body, { status: 200, headers });
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isRouteSlotSegment,
|
|
3
|
+
parseInterceptionMarker
|
|
4
|
+
} from "./chunk-RHAZ22ZN.mjs";
|
|
5
|
+
import {
|
|
6
|
+
__name
|
|
7
|
+
} from "./chunk-LPEX4YW6.mjs";
|
|
8
|
+
|
|
9
|
+
// src/middleware/path.ts
|
|
10
|
+
function appendMiddlewareRoutePath(routePath, directoryName) {
|
|
11
|
+
const marker = parseInterceptionMarker(directoryName);
|
|
12
|
+
if (marker) {
|
|
13
|
+
const owner = routePath.split("/").filter(Boolean);
|
|
14
|
+
const parts = [
|
|
15
|
+
...marker.root ? [] : owner.slice(0, Math.max(0, owner.length - marker.up)),
|
|
16
|
+
...marker.remainder ? [marker.remainder] : []
|
|
17
|
+
];
|
|
18
|
+
return `/${parts.join("/")}`;
|
|
19
|
+
}
|
|
20
|
+
if (directoryName.startsWith("(") && directoryName.endsWith(")") || isRouteSlotSegment(directoryName)) {
|
|
21
|
+
return routePath;
|
|
22
|
+
}
|
|
23
|
+
return routePath === "/" ? `/${directoryName}` : `${routePath}/${directoryName}`;
|
|
24
|
+
}
|
|
25
|
+
__name(appendMiddlewareRoutePath, "appendMiddlewareRoutePath");
|
|
26
|
+
function appendMiddlewareDirectory(directory, directoryName) {
|
|
27
|
+
return directory === "" ? directoryName : `${directory}/${directoryName}`;
|
|
28
|
+
}
|
|
29
|
+
__name(appendMiddlewareDirectory, "appendMiddlewareDirectory");
|
|
30
|
+
function countSegments(value) {
|
|
31
|
+
return value.split("/").filter(Boolean).length;
|
|
32
|
+
}
|
|
33
|
+
__name(countSegments, "countSegments");
|
|
34
|
+
function compareMiddlewareRouteLocations(left, right) {
|
|
35
|
+
return countSegments(left.path) - countSegments(right.path) || left.path.localeCompare(right.path) || countSegments(left.directory) - countSegments(right.directory) || left.directory.localeCompare(right.directory);
|
|
36
|
+
}
|
|
37
|
+
__name(compareMiddlewareRouteLocations, "compareMiddlewareRouteLocations");
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
appendMiddlewareRoutePath,
|
|
41
|
+
appendMiddlewareDirectory,
|
|
42
|
+
compareMiddlewareRouteLocations
|
|
43
|
+
};
|
|
@@ -4,16 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkP4TYB4SFcjs = require('./chunk-P4TYB4SF.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk6MVFHNYZcjs = require('./chunk-6MVFHNYZ.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkOX6O6WVAcjs = require('./chunk-OX6O6WVA.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
var _chunk6IZWX6EScjs = require('./chunk-6IZWX6ES.cjs');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -70,13 +71,13 @@ async function _invokeServerFunction(value, input, request) {
|
|
|
70
71
|
throw new TypeError("Expected a function created with createServerFn or createServerQuery");
|
|
71
72
|
}
|
|
72
73
|
try {
|
|
73
|
-
const data = await
|
|
74
|
+
const data = await _chunkP4TYB4SFcjs.runWithServerActionRequest.call(void 0, request, () => runner.run(input));
|
|
74
75
|
return { ok: true, data };
|
|
75
76
|
} catch (error) {
|
|
76
77
|
if (error instanceof ServerFnInputError) {
|
|
77
78
|
return { ok: false, reason: "input", error: error.cause };
|
|
78
79
|
}
|
|
79
|
-
if (
|
|
80
|
+
if (_chunkP4TYB4SFcjs.isServerFnFailure.call(void 0, error)) return { ok: false, reason: "failure", failure: error };
|
|
80
81
|
const redirect = _chunkOX6O6WVAcjs.getFarmRedirectError.call(void 0, error);
|
|
81
82
|
if (redirect) {
|
|
82
83
|
return { ok: false, reason: "redirect", url: redirect.url, status: redirect.status };
|
|
@@ -117,9 +118,9 @@ function createServerFn(options) {
|
|
|
117
118
|
} catch (cause) {
|
|
118
119
|
throw labelInputErrors && isSchemaValidationFailure(cause) ? new ServerFnInputError(cause) : cause;
|
|
119
120
|
}
|
|
120
|
-
const executionContext =
|
|
121
|
-
const request =
|
|
122
|
-
const signal = _nullishCoalesce(_nullishCoalesce(_optionalChain([executionContext, 'optionalAccess',
|
|
121
|
+
const executionContext = _chunkP4TYB4SFcjs.getServerActionExecutionContext.call(void 0, );
|
|
122
|
+
const request = executionContext ? _chunk6IZWX6EScjs._toAppRequestView.call(void 0, executionContext.request) : _chunk6IZWX6EScjs._resolveCurrentRequestForApp.call(void 0, );
|
|
123
|
+
const signal = _nullishCoalesce(_nullishCoalesce(_optionalChain([executionContext, 'optionalAccess', _ => _.signal]), () => ( _optionalChain([request, 'optionalAccess', _2 => _2.signal]))), () => ( _chunkP4TYB4SFcjs.getServerActionSignal.call(void 0, )));
|
|
123
124
|
const handlerContext = {
|
|
124
125
|
input,
|
|
125
126
|
rawInput,
|
|
@@ -139,7 +140,7 @@ function createServerFn(options) {
|
|
|
139
140
|
context: resolvedContext,
|
|
140
141
|
result: parsedResult
|
|
141
142
|
}) : options.invalidates;
|
|
142
|
-
await
|
|
143
|
+
await _chunk6MVFHNYZcjs.applyFarmCacheInvalidationTargets.call(void 0, declaration);
|
|
143
144
|
}
|
|
144
145
|
return parsedResult;
|
|
145
146
|
}, "run");
|
|
@@ -196,7 +197,7 @@ async function runServerFnMiddleware(middleware, handlerContext, handler) {
|
|
|
196
197
|
throw new Error("Server function middleware next() can only be called once");
|
|
197
198
|
}
|
|
198
199
|
nextCalled = true;
|
|
199
|
-
return dispatch(index + 1, mergeServerFnContext(context, _optionalChain([nextOptions, 'optionalAccess',
|
|
200
|
+
return dispatch(index + 1, mergeServerFnContext(context, _optionalChain([nextOptions, 'optionalAccess', _3 => _3.context])));
|
|
200
201
|
}, "next")
|
|
201
202
|
});
|
|
202
203
|
if (!nextCalled) {
|
|
@@ -245,7 +246,7 @@ function createServerFnErrorHandler(definitions) {
|
|
|
245
246
|
throw new TypeError(`Server function error "${code}" is not declared`);
|
|
246
247
|
}
|
|
247
248
|
const parsed = parseServerFnFailureData(code, definition.data, data);
|
|
248
|
-
throw new (0,
|
|
249
|
+
throw new (0, _chunkP4TYB4SFcjs.ServerFnFailure)(code, parsed, {
|
|
249
250
|
status: definition.status,
|
|
250
251
|
message: _nullishCoalesce(definition.message, () => ( "Server function failed"))
|
|
251
252
|
});
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
_runServerFunctionForCaller,
|
|
5
5
|
createServerFn,
|
|
6
6
|
createServerFunctionDescriptor
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IN6RCKLL.mjs";
|
|
8
8
|
import {
|
|
9
9
|
createFarmServerQueryResult
|
|
10
10
|
} from "./chunk-KGB5UXJJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getServerActionExecutionContext
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WMHG64DA.mjs";
|
|
14
14
|
import {
|
|
15
15
|
createRouteDataCacheTag,
|
|
16
16
|
getFarmDataCache
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-B2GSRB3P.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createFarmCacheKey,
|
|
20
20
|
createRouteDataCacheKey
|
|
@@ -13,7 +13,7 @@ var _chunkBD3D7EZVcjs = require('./chunk-BD3D7EZV.cjs');
|
|
|
13
13
|
var _chunkS6FJO323cjs = require('./chunk-S6FJO323.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk6IZWX6EScjs = require('./chunk-6IZWX6ES.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkBIDYX3SLcjs = require('./chunk-BIDYX3SL.cjs');
|
|
@@ -213,7 +213,7 @@ function readCurrentUrl() {
|
|
|
213
213
|
return void 0;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
const request =
|
|
216
|
+
const request = _chunk6IZWX6EScjs._peekCurrentRequest.call(void 0, );
|
|
217
217
|
if (!request) return void 0;
|
|
218
218
|
try {
|
|
219
219
|
return new URL(request.url);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyFarmCacheInvalidationTargets
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B2GSRB3P.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isMultipartSchema
|
|
6
6
|
} from "./chunk-EMLAPBEM.mjs";
|
|
@@ -50,6 +50,11 @@ function createEndpoint(pathOrOptions, optionsOrHandler, maybeHandler) {
|
|
|
50
50
|
if (typeof handler !== "function") {
|
|
51
51
|
throw new TypeError("createEndpoint requires a handler function");
|
|
52
52
|
}
|
|
53
|
+
if (options.use !== void 0) {
|
|
54
|
+
throw new TypeError(
|
|
55
|
+
"createEndpoint does not support the `use` option. Move these functions to `middleware`: each receives the endpoint context and returns an object, true, false, or a Response."
|
|
56
|
+
);
|
|
57
|
+
}
|
|
53
58
|
const middleware = normalizeEndpointMiddleware(options.middleware);
|
|
54
59
|
const errors = normalizeEndpointErrors(options.errors);
|
|
55
60
|
const error = createEndpointErrorHandler(errors);
|
|
@@ -58,8 +58,45 @@ function describeIntegrationOriginRejection(reason) {
|
|
|
58
58
|
}
|
|
59
59
|
__name(describeIntegrationOriginRejection, "describeIntegrationOriginRejection");
|
|
60
60
|
|
|
61
|
+
// src/api/route-schema.ts
|
|
62
|
+
async function parseRouteSchema(schema, value) {
|
|
63
|
+
if (schema.parseAsync) return schema.parseAsync(value);
|
|
64
|
+
if (schema["~standard"]) {
|
|
65
|
+
const result = await schema["~standard"].validate(value);
|
|
66
|
+
if (result.issues)
|
|
67
|
+
throw Object.assign(new Error("Validation failed"), { issues: result.issues });
|
|
68
|
+
return result.value;
|
|
69
|
+
}
|
|
70
|
+
if (schema.parse) return schema.parse(value);
|
|
71
|
+
throw new TypeError("Route validators must implement Standard Schema or parse().");
|
|
72
|
+
}
|
|
73
|
+
__name(parseRouteSchema, "parseRouteSchema");
|
|
74
|
+
var PUBLIC_MESSAGE_CODES = /* @__PURE__ */ new Set(["custom", "invalid_type"]);
|
|
75
|
+
function toPublicValidationIssues(error) {
|
|
76
|
+
const issues = error?.issues;
|
|
77
|
+
const list = Array.isArray(issues) ? issues : Array.isArray(error?.errors) ? error.errors : [];
|
|
78
|
+
return list.map((issue) => {
|
|
79
|
+
const { path, code, message } = issue ?? {};
|
|
80
|
+
return {
|
|
81
|
+
path: Array.isArray(path) ? path.map(toPublicPathSegment) : [],
|
|
82
|
+
...typeof code === "string" ? { code } : {},
|
|
83
|
+
message: PUBLIC_MESSAGE_CODES.has(code) && typeof message === "string" && message ? message : "Invalid value"
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
__name(toPublicValidationIssues, "toPublicValidationIssues");
|
|
88
|
+
function toPublicPathSegment(segment) {
|
|
89
|
+
const key = segment && typeof segment === "object" && "key" in segment ? segment.key : segment;
|
|
90
|
+
if (typeof key === "number") return key;
|
|
91
|
+
if (typeof key === "symbol") return key.description || key.toString();
|
|
92
|
+
return String(key);
|
|
93
|
+
}
|
|
94
|
+
__name(toPublicPathSegment, "toPublicPathSegment");
|
|
95
|
+
|
|
61
96
|
export {
|
|
62
97
|
resolveIntegrationAllowedOrigins,
|
|
63
98
|
validateIntegrationRequestOrigin,
|
|
64
|
-
describeIntegrationOriginRejection
|
|
99
|
+
describeIntegrationOriginRejection,
|
|
100
|
+
parseRouteSchema,
|
|
101
|
+
toPublicValidationIssues
|
|
65
102
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLYIZHJTKcjs = require('./chunk-LYIZHJTK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkBD3D7EZVcjs = require('./chunk-BD3D7EZV.cjs');
|
|
@@ -13,7 +13,7 @@ var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
|
13
13
|
|
|
14
14
|
// src/navigation.ts
|
|
15
15
|
function useRouter2() {
|
|
16
|
-
const router =
|
|
16
|
+
const router = _chunkLYIZHJTKcjs.useRouter.call(void 0, );
|
|
17
17
|
return {
|
|
18
18
|
push: router.push,
|
|
19
19
|
replace: router.replace,
|
|
@@ -31,11 +31,11 @@ function useRouter2() {
|
|
|
31
31
|
}
|
|
32
32
|
_chunkS3JO3N4Hcjs.__name.call(void 0, useRouter2, "useRouter");
|
|
33
33
|
function usePathname() {
|
|
34
|
-
return
|
|
34
|
+
return _chunkLYIZHJTKcjs.useRouter.call(void 0, ).pathname;
|
|
35
35
|
}
|
|
36
36
|
_chunkS3JO3N4Hcjs.__name.call(void 0, usePathname, "usePathname");
|
|
37
37
|
function useSearchParams() {
|
|
38
|
-
return
|
|
38
|
+
return _chunkLYIZHJTKcjs.useRouter.call(void 0, ).searchParams;
|
|
39
39
|
}
|
|
40
40
|
_chunkS3JO3N4Hcjs.__name.call(void 0, useSearchParams, "useSearchParams");
|
|
41
41
|
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLIZTLA5Fcjs = require('./chunk-LIZTLA5F.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkSK35NQKKcjs = require('./chunk-SK35NQKK.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkP4TYB4SFcjs = require('./chunk-P4TYB4SF.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk6MVFHNYZcjs = require('./chunk-6MVFHNYZ.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -35,7 +35,7 @@ function createServerQuery(options) {
|
|
|
35
35
|
throw new TypeError("createServerQuery requires a key function");
|
|
36
36
|
}
|
|
37
37
|
const staleTime = normalizeServerQueryStaleTime(options.staleTime);
|
|
38
|
-
const execute =
|
|
38
|
+
const execute = _chunkLIZTLA5Fcjs.createServerFn.call(void 0, {
|
|
39
39
|
input: options.input,
|
|
40
40
|
middleware: options.middleware,
|
|
41
41
|
handler: /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (context) => {
|
|
@@ -45,7 +45,7 @@ function createServerQuery(options) {
|
|
|
45
45
|
const cacheKey = _chunkNYJMY3JAcjs.createFarmCacheKey.call(void 0, ["route-data", routeKey]);
|
|
46
46
|
const producer = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async () => {
|
|
47
47
|
const value = await options.handler(context);
|
|
48
|
-
return
|
|
48
|
+
return _chunkLIZTLA5Fcjs._parseServerFnSchema.call(void 0, options.output, value, "output", "createServerQuery");
|
|
49
49
|
}, "producer");
|
|
50
50
|
let data;
|
|
51
51
|
let updatedAt;
|
|
@@ -53,9 +53,9 @@ function createServerQuery(options) {
|
|
|
53
53
|
data = await dedupeServerQueryRequest(cacheKey, context.request, producer);
|
|
54
54
|
updatedAt = Date.now();
|
|
55
55
|
} else {
|
|
56
|
-
const cache =
|
|
56
|
+
const cache = _chunk6MVFHNYZcjs.getFarmDataCache.call(void 0, );
|
|
57
57
|
data = await cache.getOrSet(cacheKey, producer, {
|
|
58
|
-
tags: [
|
|
58
|
+
tags: [_chunk6MVFHNYZcjs.createRouteDataCacheTag.call(void 0, routeKey)],
|
|
59
59
|
revalidate: staleTime === false ? false : staleTime / 1e3
|
|
60
60
|
});
|
|
61
61
|
updatedAt = await _asyncNullishCoalesce(await _asyncOptionalChain([(await cache.getEntryAsync(cacheKey, { allowStale: true })), 'optionalAccess', async _ => _.createdAt]), async () => ( Date.now()));
|
|
@@ -70,7 +70,7 @@ function createServerQuery(options) {
|
|
|
70
70
|
});
|
|
71
71
|
const query = /* @__PURE__ */ _chunkS3JO3N4Hcjs.__name.call(void 0, async (input) => {
|
|
72
72
|
const result = await execute(input);
|
|
73
|
-
return
|
|
73
|
+
return _chunkP4TYB4SFcjs.getServerActionExecutionContext.call(void 0, ) ? result : result.data;
|
|
74
74
|
}, "query");
|
|
75
75
|
Object.defineProperties(query, {
|
|
76
76
|
[FARM_SERVER_QUERY_SYMBOL]: {
|
|
@@ -90,10 +90,10 @@ function createServerQuery(options) {
|
|
|
90
90
|
enumerable: false
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
|
|
93
|
+
_chunkLIZTLA5Fcjs._attachServerFunctionDescriptor.call(void 0,
|
|
94
94
|
query,
|
|
95
|
-
|
|
96
|
-
const result = await
|
|
95
|
+
_chunkLIZTLA5Fcjs.createServerFunctionDescriptor.call(void 0, "query", options, async (value) => {
|
|
96
|
+
const result = await _chunkLIZTLA5Fcjs._runServerFunctionForCaller.call(void 0,
|
|
97
97
|
execute,
|
|
98
98
|
value
|
|
99
99
|
);
|
|
@@ -15,13 +15,13 @@ var _chunkIK6LVLKCcjs = require('./chunk-IK6LVLKC.cjs');
|
|
|
15
15
|
var _chunkHREOKQWTcjs = require('./chunk-HREOKQWT.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk25LPIZSXcjs = require('./chunk-25LPIZSX.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkD4ROBNTKcjs = require('./chunk-D4ROBNTK.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk5NAVKJCZcjs = require('./chunk-5NAVKJCZ.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
var _chunkS3JO3N4Hcjs = require('./chunk-S3JO3N4H.cjs');
|
|
@@ -1225,11 +1225,11 @@ function shouldReturnMarkdown(request) {
|
|
|
1225
1225
|
if (url.pathname.endsWith(".md")) return true;
|
|
1226
1226
|
const accept = request.headers.get("accept");
|
|
1227
1227
|
const markdown = Math.max(
|
|
1228
|
-
|
|
1229
|
-
|
|
1228
|
+
_chunkD4ROBNTKcjs.farmAcceptQuality.call(void 0, accept, "text/markdown"),
|
|
1229
|
+
_chunkD4ROBNTKcjs.farmAcceptQuality.call(void 0, accept, "text/plain")
|
|
1230
1230
|
);
|
|
1231
1231
|
if (markdown <= 0) return false;
|
|
1232
|
-
return markdown >=
|
|
1232
|
+
return markdown >= _chunkD4ROBNTKcjs.farmAcceptQuality.call(void 0, accept, "text/html", { wildcards: true });
|
|
1233
1233
|
}
|
|
1234
1234
|
_chunkS3JO3N4Hcjs.__name.call(void 0, shouldReturnMarkdown, "shouldReturnMarkdown");
|
|
1235
1235
|
function escapeAttribute(value) {
|
|
@@ -1830,11 +1830,11 @@ function renderDocsSearchTrigger(showIcon = true, className = "") {
|
|
|
1830
1830
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderDocsSearchTrigger, "renderDocsSearchTrigger");
|
|
1831
1831
|
function renderDocsSearchMount(clientEntry) {
|
|
1832
1832
|
return `<div id="farm-docs-search-root" data-farm-docs-search-root data-api="/api/docs"></div>
|
|
1833
|
-
${
|
|
1833
|
+
${_chunk25LPIZSXcjs.stampFarmCspNonce.call(void 0, `<script type="module" src="${escapeAttribute(clientEntry)}"></script>`)}`;
|
|
1834
1834
|
}
|
|
1835
1835
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderDocsSearchMount, "renderDocsSearchMount");
|
|
1836
1836
|
function renderDocsSearchBootstrapScript() {
|
|
1837
|
-
return
|
|
1837
|
+
return _chunk25LPIZSXcjs.stampFarmCspNonce.call(void 0, `<script>${_chunkMWWVKDW3cjs.generateFarmDocsSearchBootstrapRuntime.call(void 0, )}</script>`);
|
|
1838
1838
|
}
|
|
1839
1839
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderDocsSearchBootstrapScript, "renderDocsSearchBootstrapScript");
|
|
1840
1840
|
function renderPixelToc(items) {
|
|
@@ -1864,7 +1864,7 @@ function renderDocsHashRuntimeScript() {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
_chunkS3JO3N4Hcjs.__name.call(void 0, renderDocsHashRuntimeScript, "renderDocsHashRuntimeScript");
|
|
1866
1866
|
function renderDocsRuntimeScripts(docs) {
|
|
1867
|
-
return
|
|
1867
|
+
return _chunk25LPIZSXcjs.stampFarmCspNonce.call(void 0, `${renderDocsRuntimeScript(docs)}
|
|
1868
1868
|
${renderDocsHashRuntimeScript()}
|
|
1869
1869
|
${renderDocsPageActionsRuntimeScript()}`);
|
|
1870
1870
|
}
|
|
@@ -1993,7 +1993,7 @@ function createFarmDocsHandler(docs, options) {
|
|
|
1993
1993
|
ETag: etag,
|
|
1994
1994
|
"X-Content-Type-Options": "nosniff"
|
|
1995
1995
|
});
|
|
1996
|
-
if (
|
|
1996
|
+
if (_chunk5NAVKJCZcjs.matchesFarmIfNoneMatch.call(void 0, request.headers.get("if-none-match"), etag)) {
|
|
1997
1997
|
return new Response(null, { status: 304, headers });
|
|
1998
1998
|
}
|
|
1999
1999
|
if (request.method === "HEAD") return new Response(null, { status: 200, headers });
|