@popcraft/kit 0.53.3 → 0.53.5
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/chunks/agent-BU2V7K5W.js +44 -0
- package/dist/chunks/api-2LUL2ES2.js +29 -0
- package/dist/chunks/build-MKHE7M5P.js +59 -0
- package/dist/chunks/builtin-WRS6ZSPK.js +117 -0
- package/dist/chunks/buy-credits-JBM7ETTL.js +78 -0
- package/dist/chunks/check-template-H2DYU3XJ.js +2429 -0
- package/dist/chunks/chunk-223QZEIB.js +84 -0
- package/dist/chunks/chunk-26ZR64EI.js +168 -0
- package/dist/chunks/chunk-2AFX7OQH.js +88 -0
- package/dist/chunks/chunk-2DFQ5ZIV.js +312 -0
- package/dist/chunks/chunk-2GC6SKU5.js +344 -0
- package/dist/chunks/chunk-2GULWGOJ.js +358 -0
- package/dist/chunks/chunk-2HEWU4ZD.js +45 -0
- package/dist/chunks/chunk-2LXKJUQL.js +86 -0
- package/dist/chunks/chunk-2MJKBOCU.js +198 -0
- package/dist/chunks/chunk-2NPWUYSF.js +23 -0
- package/dist/chunks/chunk-2PYB5P2X.js +415 -0
- package/dist/chunks/chunk-2QHLIR4K.js +23 -0
- package/dist/chunks/chunk-2RP2Q6IO.js +83 -0
- package/dist/chunks/chunk-2TY4VR7W.js +115 -0
- package/dist/chunks/chunk-2VD44M7L.js +23 -0
- package/dist/chunks/chunk-2VPS2VLD.js +257 -0
- package/dist/chunks/chunk-2WY4F347.js +77 -0
- package/dist/chunks/chunk-2XE7UIV2.js +112 -0
- package/dist/chunks/chunk-2XSYSVU2.js +206 -0
- package/dist/chunks/chunk-32Q7DQJY.js +55 -0
- package/dist/chunks/chunk-32SVXZNG.js +206 -0
- package/dist/chunks/chunk-34GCJIW7.js +342 -0
- package/dist/chunks/chunk-35FMT7XN.js +129 -0
- package/dist/chunks/chunk-36MKAIXY.js +23 -0
- package/dist/chunks/chunk-37P7V7RW.js +122 -0
- package/dist/chunks/chunk-37ZTHQNS.js +102 -0
- package/dist/chunks/chunk-3ALUKYXI.js +33 -0
- package/dist/chunks/chunk-3CBX6YUE.js +208 -0
- package/dist/chunks/chunk-3DMYOYNM.js +261 -0
- package/dist/chunks/chunk-3E6A5FWF.js +193 -0
- package/dist/chunks/chunk-3EFH5U36.js +147 -0
- package/dist/chunks/chunk-3FGDZ33Y.js +41 -0
- package/dist/chunks/chunk-3GGPSCZ2.js +278 -0
- package/dist/chunks/chunk-3GZOM2H7.js +93 -0
- package/dist/chunks/chunk-3H2DXJQH.js +119 -0
- package/dist/chunks/chunk-3HSJEPUA.js +80 -0
- package/dist/chunks/chunk-3JOZOZKD.js +191 -0
- package/dist/chunks/chunk-3MVD3KZ3.js +155 -0
- package/dist/chunks/chunk-3OBJ4LYI.js +121 -0
- package/dist/chunks/chunk-3OW73X2B.js +346 -0
- package/dist/chunks/chunk-3PWQH7P2.js +97 -0
- package/dist/chunks/chunk-3QYNWWEM.js +282 -0
- package/dist/chunks/chunk-3R6G4PHX.js +65 -0
- package/dist/chunks/chunk-3RWCWTIU.js +87 -0
- package/dist/chunks/chunk-3STVYZVS.js +77 -0
- package/dist/chunks/chunk-3T7YYKCJ.js +260 -0
- package/dist/chunks/chunk-3TX5C4WP.js +49 -0
- package/dist/chunks/chunk-3UGCAJZH.js +157 -0
- package/dist/chunks/chunk-445A4PL7.js +283 -0
- package/dist/chunks/chunk-46IQ3PA6.js +146 -0
- package/dist/chunks/chunk-46V5SAYA.js +165 -0
- package/dist/chunks/chunk-4BFJ5C4L.js +117 -0
- package/dist/chunks/chunk-4BZV3W4C.js +320 -0
- package/dist/chunks/chunk-4CTT5J4F.js +122 -0
- package/dist/chunks/chunk-4D6LCVCB.js +164 -0
- package/dist/chunks/chunk-4DLUQAQU.js +54 -0
- package/dist/chunks/chunk-4EA7WMPE.js +248 -0
- package/dist/chunks/chunk-4G3PPUNO.js +23 -0
- package/dist/chunks/chunk-4G7VHQUV.js +1314 -0
- package/dist/chunks/chunk-4ICW47JJ.js +126 -0
- package/dist/chunks/chunk-4IR25LCR.js +167 -0
- package/dist/chunks/chunk-4JREDUEX.js +81 -0
- package/dist/chunks/chunk-4JTHODXO.js +10257 -0
- package/dist/chunks/chunk-4K3RKAUU.js +92 -0
- package/dist/chunks/chunk-4L335KW5.js +117 -0
- package/dist/chunks/chunk-4L3OCFRL.js +55 -0
- package/dist/chunks/chunk-4NNBIWUR.js +137 -0
- package/dist/chunks/chunk-4NPFEPZC.js +85 -0
- package/dist/chunks/chunk-4SXFDB43.js +33 -0
- package/dist/chunks/chunk-4VCLQ3Z3.js +70 -0
- package/dist/chunks/chunk-4XUWGKYX.js +173 -0
- package/dist/chunks/chunk-4YU2XN5R.js +93 -0
- package/dist/chunks/chunk-4ZJXERER.js +135 -0
- package/dist/chunks/chunk-524S7NN7.js +307 -0
- package/dist/chunks/chunk-53SHIU4Q.js +215 -0
- package/dist/chunks/chunk-552R23WY.js +23 -0
- package/dist/chunks/chunk-55AORW7B.js +23 -0
- package/dist/chunks/chunk-57ZPSFB4.js +199 -0
- package/dist/chunks/chunk-5AZ263I5.js +198 -0
- package/dist/chunks/chunk-5BCZWZVC.js +185 -0
- package/dist/chunks/chunk-5CG26ML2.js +28 -0
- package/dist/chunks/chunk-5CQ3S7OX.js +96 -0
- package/dist/chunks/chunk-5EIKBTZ3.js +169 -0
- package/dist/chunks/chunk-5F5AEM7E.js +564 -0
- package/dist/chunks/chunk-5F7VIEAZ.js +277 -0
- package/dist/chunks/chunk-5FBLPDJN.js +151 -0
- package/dist/chunks/chunk-5FHY65WU.js +33 -0
- package/dist/chunks/chunk-5G7A25O3.js +127 -0
- package/dist/chunks/chunk-5HPCPA2P.js +147 -0
- package/dist/chunks/chunk-5JJQB6L3.js +46 -0
- package/dist/chunks/chunk-5LHV73DD.js +111 -0
- package/dist/chunks/chunk-5LHVNH63.js +63 -0
- package/dist/chunks/chunk-5ODGJYRE.js +33 -0
- package/dist/chunks/chunk-5P22TRJ4.js +36 -0
- package/dist/chunks/chunk-5Q6EZTW5.js +231 -0
- package/dist/chunks/chunk-5R5RCFPZ.js +97 -0
- package/dist/chunks/chunk-5RHX7374.js +186 -0
- package/dist/chunks/chunk-5RWJR4NJ.js +95 -0
- package/dist/chunks/chunk-5TRJJBJB.js +78 -0
- package/dist/chunks/chunk-5UV72HBR.js +133 -0
- package/dist/chunks/chunk-5VQ4L2PX.js +305 -0
- package/dist/chunks/chunk-5WMAOJPX.js +33 -0
- package/dist/chunks/chunk-5YOSOSTM.js +177 -0
- package/dist/chunks/chunk-5ZTS6EJA.js +68 -0
- package/dist/chunks/chunk-62EGKQUM.js +382 -0
- package/dist/chunks/chunk-62OXX7UC.js +200 -0
- package/dist/chunks/chunk-63CA6JPJ.js +23 -0
- package/dist/chunks/chunk-63LTDTDL.js +240 -0
- package/dist/chunks/chunk-642B26NR.js +238 -0
- package/dist/chunks/chunk-65NK5Z3O.js +57 -0
- package/dist/chunks/chunk-67X3ACXE.js +128 -0
- package/dist/chunks/chunk-6AVXBKXK.js +135 -0
- package/dist/chunks/chunk-6BHEELOQ.js +33 -0
- package/dist/chunks/chunk-6DCJQFYY.js +167 -0
- package/dist/chunks/chunk-6DQCOUTD.js +103 -0
- package/dist/chunks/chunk-6FBYCZXU.js +93 -0
- package/dist/chunks/chunk-6FFG7TGH.js +45 -0
- package/dist/chunks/chunk-6HSYKGSD.js +378 -0
- package/dist/chunks/chunk-6JP3U7UA.js +169 -0
- package/dist/chunks/chunk-6KM47JY7.js +217 -0
- package/dist/chunks/chunk-6KSAWNBE.js +293 -0
- package/dist/chunks/chunk-6N2DM5BF.js +147 -0
- package/dist/chunks/chunk-6OE7NM7H.js +145 -0
- package/dist/chunks/chunk-6Q75HGL6.js +81 -0
- package/dist/chunks/chunk-6RFADYKA.js +166 -0
- package/dist/chunks/chunk-6TG6QAWM.js +299 -0
- package/dist/chunks/chunk-6TND7C5Y.js +110 -0
- package/dist/chunks/chunk-6V536WIL.js +154 -0
- package/dist/chunks/chunk-6VBCBWOP.js +33 -0
- package/dist/chunks/chunk-6VD657WY.js +140 -0
- package/dist/chunks/chunk-6VPHLXC4.js +160 -0
- package/dist/chunks/chunk-6WR45U2X.js +84 -0
- package/dist/chunks/chunk-6YO6MIEQ.js +177 -0
- package/dist/chunks/chunk-6Z5VWYEH.js +53 -0
- package/dist/chunks/chunk-6ZKSH73Z.js +1309 -0
- package/dist/chunks/chunk-6ZYY4ORM.js +71 -0
- package/dist/chunks/chunk-7CCYCQBH.js +66 -0
- package/dist/chunks/chunk-7CSTSDHU.js +11574 -0
- package/dist/chunks/chunk-7D6FRUWO.js +195 -0
- package/dist/chunks/chunk-7FLY3NIO.js +153 -0
- package/dist/chunks/chunk-7HPECKEF.js +79 -0
- package/dist/chunks/chunk-7HPWLQS6.js +182 -0
- package/dist/chunks/chunk-7JURMJIE.js +396 -0
- package/dist/chunks/chunk-7JVMDWBV.js +104 -0
- package/dist/chunks/chunk-7KLOGNPA.js +150 -0
- package/dist/chunks/chunk-7M2CMPUX.js +176 -0
- package/dist/chunks/chunk-7MK4ZDHO.js +192 -0
- package/dist/chunks/chunk-7NJF3TH3.js +70 -0
- package/dist/chunks/chunk-7OENRHYS.js +101 -0
- package/dist/chunks/chunk-7ON22SGH.js +184 -0
- package/dist/chunks/chunk-7QDF2APS.js +112 -0
- package/dist/chunks/chunk-7RIGITT3.js +115 -0
- package/dist/chunks/chunk-7S5CSANP.js +95 -0
- package/dist/chunks/chunk-7TIP72RJ.js +72 -0
- package/dist/chunks/chunk-7VRUTQCW.js +155 -0
- package/dist/chunks/chunk-7WBVULSO.js +170 -0
- package/dist/chunks/chunk-7Y2PALA3.js +123 -0
- package/dist/chunks/chunk-A2RY2CAX.js +160 -0
- package/dist/chunks/chunk-A2SMSORR.js +23 -0
- package/dist/chunks/chunk-A2UJNVRU.js +135 -0
- package/dist/chunks/chunk-A3VEYO5L.js +103 -0
- package/dist/chunks/chunk-A57RYMR4.js +97 -0
- package/dist/chunks/chunk-A5IFHLBZ.js +157 -0
- package/dist/chunks/chunk-A6X2EN4W.js +86 -0
- package/dist/chunks/chunk-A7HOVMZN.js +123 -0
- package/dist/chunks/chunk-ACVVH2E5.js +45 -0
- package/dist/chunks/chunk-AK3ONWAF.js +178 -0
- package/dist/chunks/chunk-ALIBTFWF.js +366 -0
- package/dist/chunks/chunk-AO4OWAMU.js +33 -0
- package/dist/chunks/chunk-AOJAL5GD.js +230 -0
- package/dist/chunks/chunk-AR6NOFFZ.js +250 -0
- package/dist/chunks/chunk-AU3JJTGG.js +23 -0
- package/dist/chunks/chunk-AUWOLKQS.js +77 -0
- package/dist/chunks/chunk-AV2ABC5Q.js +375 -0
- package/dist/chunks/chunk-AW6UPNTX.js +232 -0
- package/dist/chunks/chunk-AYZIDCLC.js +82 -0
- package/dist/chunks/chunk-AZM3IJTO.js +330 -0
- package/dist/chunks/chunk-B2QZ54WH.js +180 -0
- package/dist/chunks/chunk-B3L2QYAM.js +49 -0
- package/dist/chunks/chunk-B4E46DWT.js +71 -0
- package/dist/chunks/chunk-B4IM43BZ.js +91 -0
- package/dist/chunks/chunk-B6R7FV65.js +165 -0
- package/dist/chunks/chunk-B77EILTA.js +220 -0
- package/dist/chunks/chunk-B7HZEBBQ.js +97 -0
- package/dist/chunks/chunk-BBVS6L4D.js +33 -0
- package/dist/chunks/chunk-BCA7FVZ7.js +161 -0
- package/dist/chunks/chunk-BCDKOEII.js +1393 -0
- package/dist/chunks/chunk-BCZ4O4LH.js +298 -0
- package/dist/chunks/chunk-BDN3NNRP.js +92 -0
- package/dist/chunks/chunk-BGSZUBU2.js +192 -0
- package/dist/chunks/chunk-BGX2UF6M.js +351 -0
- package/dist/chunks/chunk-BHBTAY7U.js +95 -0
- package/dist/chunks/chunk-BI7WO47U.js +36 -0
- package/dist/chunks/chunk-BJLV77QF.js +99 -0
- package/dist/chunks/chunk-BLQXUMJR.js +45 -0
- package/dist/chunks/chunk-BREOFOUQ.js +172 -0
- package/dist/chunks/chunk-BRZECO42.js +122 -0
- package/dist/chunks/chunk-BS7BELSS.js +274 -0
- package/dist/chunks/chunk-BTFK6FEQ.js +256 -0
- package/dist/chunks/chunk-BTMEVKMQ.js +33 -0
- package/dist/chunks/chunk-BUWIUPS6.js +130 -0
- package/dist/chunks/chunk-BVUAWNNZ.js +182 -0
- package/dist/chunks/chunk-BVWDOQZU.js +173 -0
- package/dist/chunks/chunk-BWL5Z6WW.js +23 -0
- package/dist/chunks/chunk-BXMOXDAV.js +47 -0
- package/dist/chunks/chunk-BYBWYEIK.js +80 -0
- package/dist/chunks/chunk-BZ52M3IY.js +96 -0
- package/dist/chunks/chunk-BZ6YYRFN.js +192 -0
- package/dist/chunks/chunk-C35OL4EV.js +97 -0
- package/dist/chunks/chunk-C3ACV62E.js +64 -0
- package/dist/chunks/chunk-C3CZ7PYN.js +100 -0
- package/dist/chunks/chunk-C4PEAXER.js +138 -0
- package/dist/chunks/chunk-C4ZYGQYV.js +270 -0
- package/dist/chunks/chunk-C5HQ7W5H.js +80 -0
- package/dist/chunks/chunk-C6ZWXN5D.js +112 -0
- package/dist/chunks/chunk-C743GDSN.js +210 -0
- package/dist/chunks/chunk-C7L2RLFQ.js +161 -0
- package/dist/chunks/chunk-CA4Q36W5.js +1574 -0
- package/dist/chunks/chunk-CABNYHZU.js +106 -0
- package/dist/chunks/chunk-CALFDUWH.js +217 -0
- package/dist/chunks/chunk-CBEW53ZG.js +108 -0
- package/dist/chunks/chunk-CD6MHGZT.js +462 -0
- package/dist/chunks/chunk-CDO3JRU4.js +48 -0
- package/dist/chunks/chunk-CDXBZA5D.js +45 -0
- package/dist/chunks/chunk-CELGJEUJ.js +23 -0
- package/dist/chunks/chunk-CFG5GSFD.js +191 -0
- package/dist/chunks/chunk-CGDF467Q.js +23 -0
- package/dist/chunks/chunk-CGHZG4OU.js +100 -0
- package/dist/chunks/chunk-CGSP6W3M.js +225 -0
- package/dist/chunks/chunk-CHJBZFDR.js +7929 -0
- package/dist/chunks/chunk-CI5NMQRT.js +166 -0
- package/dist/chunks/chunk-CINXFP3B.js +135 -0
- package/dist/chunks/chunk-CIU45FOH.js +158 -0
- package/dist/chunks/chunk-CJFKPWKC.js +209 -0
- package/dist/chunks/chunk-CL45UKU2.js +77 -0
- package/dist/chunks/chunk-CLBYGBDU.js +173 -0
- package/dist/chunks/chunk-CLH7EX2Z.js +93 -0
- package/dist/chunks/chunk-CMKENQIB.js +85 -0
- package/dist/chunks/chunk-CNVA6GTJ.js +104 -0
- package/dist/chunks/chunk-CPKHCQQR.js +115 -0
- package/dist/chunks/chunk-CS7U3OR6.js +305 -0
- package/dist/chunks/chunk-CSAKSOAM.js +100 -0
- package/dist/chunks/chunk-CUKZDP6X.js +777 -0
- package/dist/chunks/chunk-CV3TBL53.js +274 -0
- package/dist/chunks/chunk-CV62YROB.js +165 -0
- package/dist/chunks/chunk-CVBFKGIZ.js +124 -0
- package/dist/chunks/chunk-CVNZ5O4F.js +104 -0
- package/dist/chunks/chunk-CXC2MZKM.js +172 -0
- package/dist/chunks/chunk-D2FMQCOT.js +204 -0
- package/dist/chunks/chunk-D4V3TQJT.js +88 -0
- package/dist/chunks/chunk-D4VSMNGW.js +260 -0
- package/dist/chunks/chunk-D6QSMEUI.js +74 -0
- package/dist/chunks/chunk-D7LV7MNY.js +1136 -0
- package/dist/chunks/chunk-D7YIBOO4.js +159 -0
- package/dist/chunks/chunk-DDJ3BSWY.js +138 -0
- package/dist/chunks/chunk-DE3T5K3R.js +362 -0
- package/dist/chunks/chunk-DFPAZBOX.js +54 -0
- package/dist/chunks/chunk-DHB76WZ6.js +187 -0
- package/dist/chunks/chunk-DHKB3AKB.js +23 -0
- package/dist/chunks/chunk-DMEAB4BP.js +75 -0
- package/dist/chunks/chunk-DMO3BY3X.js +255 -0
- package/dist/chunks/chunk-DO6ZXZYS.js +33 -0
- package/dist/chunks/chunk-DQ7IA4VI.js +156 -0
- package/dist/chunks/chunk-DSPA3S74.js +145 -0
- package/dist/chunks/chunk-DVM64HXW.js +94 -0
- package/dist/chunks/chunk-DVOUGWW7.js +128 -0
- package/dist/chunks/chunk-DVQA5JVV.js +101 -0
- package/dist/chunks/chunk-DWG6FRZV.js +738 -0
- package/dist/chunks/chunk-DY3YFRAX.js +36 -0
- package/dist/chunks/chunk-DZEYU22E.js +136 -0
- package/dist/chunks/chunk-E27P3BRE.js +222 -0
- package/dist/chunks/chunk-E36IO45R.js +124 -0
- package/dist/chunks/chunk-E4JYMJDP.js +244 -0
- package/dist/chunks/chunk-EBGRNYSK.js +218 -0
- package/dist/chunks/chunk-EBN7RIWX.js +214 -0
- package/dist/chunks/chunk-ED7OCLFU.js +45 -0
- package/dist/chunks/chunk-EEUDP7GD.js +80 -0
- package/dist/chunks/chunk-EFBWTRAT.js +111 -0
- package/dist/chunks/chunk-EFDNJ5OE.js +626 -0
- package/dist/chunks/chunk-EGFAPCBJ.js +261 -0
- package/dist/chunks/chunk-EGGGRUSB.js +174 -0
- package/dist/chunks/chunk-EI7XRO7N.js +163 -0
- package/dist/chunks/chunk-EKTQ5FCW.js +154 -0
- package/dist/chunks/chunk-EL5ADY6P.js +23 -0
- package/dist/chunks/chunk-ELLCKR4C.js +23 -0
- package/dist/chunks/chunk-ENHXX3CX.js +130 -0
- package/dist/chunks/chunk-ENO5QFID.js +130 -0
- package/dist/chunks/chunk-EOBGAEYF.js +91 -0
- package/dist/chunks/chunk-EOUPFJCR.js +85 -0
- package/dist/chunks/chunk-ERI55FUX.js +94 -0
- package/dist/chunks/chunk-ESA4AFPU.js +189 -0
- package/dist/chunks/chunk-ESHOO6PC.js +170 -0
- package/dist/chunks/chunk-ESUEH4WJ.js +422 -0
- package/dist/chunks/chunk-EUYQDDZ5.js +49 -0
- package/dist/chunks/chunk-F5D27S35.js +130 -0
- package/dist/chunks/chunk-F7TRDSNK.js +181 -0
- package/dist/chunks/chunk-FAXGLXJU.js +45 -0
- package/dist/chunks/chunk-FCMARVF7.js +39 -0
- package/dist/chunks/chunk-FHNL42RK.js +102 -0
- package/dist/chunks/chunk-FIZ6KVRU.js +95 -0
- package/dist/chunks/chunk-FJRMPZOM.js +272 -0
- package/dist/chunks/chunk-FMIJQINC.js +298 -0
- package/dist/chunks/chunk-FOFVSDQA.js +301 -0
- package/dist/chunks/chunk-FRBRIDLZ.js +110 -0
- package/dist/chunks/chunk-FSUZ2XGH.js +279 -0
- package/dist/chunks/chunk-FSYUTNRN.js +180 -0
- package/dist/chunks/chunk-FVG4CTXH.js +62 -0
- package/dist/chunks/chunk-FVGZSI5Q.js +1403 -0
- package/dist/chunks/chunk-FVT6NHVM.js +79 -0
- package/dist/chunks/chunk-FVZTTSKQ.js +152 -0
- package/dist/chunks/chunk-FXFSFWZJ.js +104 -0
- package/dist/chunks/chunk-FXLNAF2O.js +30 -0
- package/dist/chunks/chunk-FXPA3GQC.js +79 -0
- package/dist/chunks/chunk-FZF7OQHL.js +90 -0
- package/dist/chunks/chunk-FZTXHKQZ.js +107 -0
- package/dist/chunks/chunk-FZVETRE3.js +187 -0
- package/dist/chunks/chunk-G27HUNKQ.js +198 -0
- package/dist/chunks/chunk-G2R7YEPR.js +282 -0
- package/dist/chunks/chunk-G2UEWEN2.js +361 -0
- package/dist/chunks/chunk-G3SUQ3V3.js +43 -0
- package/dist/chunks/chunk-G4DEJFDU.js +51 -0
- package/dist/chunks/chunk-G53FIV7D.js +55 -0
- package/dist/chunks/chunk-G7RI3ATT.js +85 -0
- package/dist/chunks/chunk-GAH5PZR7.js +45 -0
- package/dist/chunks/chunk-GBDVY5BW.js +196 -0
- package/dist/chunks/chunk-GCOX6QEL.js +179 -0
- package/dist/chunks/chunk-GCP5MFLQ.js +110 -0
- package/dist/chunks/chunk-GFS6Q4RO.js +226 -0
- package/dist/chunks/chunk-GGMN3MWT.js +117 -0
- package/dist/chunks/chunk-GMI2HF52.js +129 -0
- package/dist/chunks/chunk-GMI4GEU6.js +23 -0
- package/dist/chunks/chunk-GMVZIXR5.js +284 -0
- package/dist/chunks/chunk-GNRHJYDT.js +92 -0
- package/dist/chunks/chunk-GQL3WJ3S.js +171 -0
- package/dist/chunks/chunk-GQXBYTFD.js +71 -0
- package/dist/chunks/chunk-GSP7V7GB.js +127 -0
- package/dist/chunks/chunk-GU7YU5P4.js +118 -0
- package/dist/chunks/chunk-GUGLMJLH.js +80 -0
- package/dist/chunks/chunk-GVCNGEA6.js +23 -0
- package/dist/chunks/chunk-GWTVSL3N.js +106 -0
- package/dist/chunks/chunk-GXWBEOY2.js +103 -0
- package/dist/chunks/chunk-GYFPCSIH.js +180 -0
- package/dist/chunks/chunk-H4SDO7BT.js +162 -0
- package/dist/chunks/chunk-H4YRARFP.js +224 -0
- package/dist/chunks/chunk-HAMGDDIU.js +261 -0
- package/dist/chunks/chunk-HBHT5CKU.js +215 -0
- package/dist/chunks/chunk-HDYZNS2U.js +184 -0
- package/dist/chunks/chunk-HEG7XNMY.js +84 -0
- package/dist/chunks/chunk-HEN7BMQC.js +99 -0
- package/dist/chunks/chunk-HF3GQO2C.js +70 -0
- package/dist/chunks/chunk-HGONHZ3Q.js +113 -0
- package/dist/chunks/chunk-HHPOL5IR.js +164 -0
- package/dist/chunks/chunk-HI4U7NL3.js +277 -0
- package/dist/chunks/chunk-HKW5QFDH.js +204 -0
- package/dist/chunks/chunk-HL4BM2AW.js +55 -0
- package/dist/chunks/chunk-HM2VG5OO.js +97 -0
- package/dist/chunks/chunk-HO4MGZEX.js +23 -0
- package/dist/chunks/chunk-HP6TQZSZ.js +140 -0
- package/dist/chunks/chunk-HPX6ZG4G.js +197 -0
- package/dist/chunks/chunk-HQHQBZDR.js +146 -0
- package/dist/chunks/chunk-HQIYIZ37.js +225 -0
- package/dist/chunks/chunk-HS4JOMNE.js +23 -0
- package/dist/chunks/chunk-HSPT7NQI.js +163 -0
- package/dist/chunks/chunk-HTAY44UJ.js +125 -0
- package/dist/chunks/chunk-HUPTGVQJ.js +163 -0
- package/dist/chunks/chunk-HWKS7RW2.js +152 -0
- package/dist/chunks/chunk-HX5XUKLP.js +589 -0
- package/dist/chunks/chunk-HZ3C272Q.js +567 -0
- package/dist/chunks/chunk-I2BUIYVD.js +118 -0
- package/dist/chunks/chunk-I3CDG5WH.js +81 -0
- package/dist/chunks/chunk-I6COFDEH.js +282 -0
- package/dist/chunks/chunk-I6CYAYSR.js +108 -0
- package/dist/chunks/chunk-IC3VEUTZ.js +197 -0
- package/dist/chunks/chunk-IDS3CV4V.js +334 -0
- package/dist/chunks/chunk-IDSIBKTL.js +121 -0
- package/dist/chunks/chunk-IDTIMCT5.js +270 -0
- package/dist/chunks/chunk-IDWU62UQ.js +149 -0
- package/dist/chunks/chunk-IE3RSRGB.js +159 -0
- package/dist/chunks/chunk-IEBF37LI.js +287 -0
- package/dist/chunks/chunk-IEH3UJPI.js +224 -0
- package/dist/chunks/chunk-IESOL5FJ.js +152 -0
- package/dist/chunks/chunk-IF3WU5O6.js +47 -0
- package/dist/chunks/chunk-IGDDIDGK.js +33 -0
- package/dist/chunks/chunk-IH2IIANW.js +181 -0
- package/dist/chunks/chunk-IH2L5IJV.js +213 -0
- package/dist/chunks/chunk-IIRQUZWG.js +36 -0
- package/dist/chunks/chunk-ILIQT73O.js +150 -0
- package/dist/chunks/chunk-IM65O52D.js +23 -0
- package/dist/chunks/chunk-IMYIO6IV.js +153 -0
- package/dist/chunks/chunk-IMZQPZ64.js +84 -0
- package/dist/chunks/chunk-INT6WBRI.js +45 -0
- package/dist/chunks/chunk-IO33RNWF.js +79 -0
- package/dist/chunks/chunk-IORY5R5R.js +261 -0
- package/dist/chunks/chunk-IP3WLXLC.js +176 -0
- package/dist/chunks/chunk-IQO332AR.js +209 -0
- package/dist/chunks/chunk-IUSFK5PQ.js +30 -0
- package/dist/chunks/chunk-IW4IU3KA.js +74 -0
- package/dist/chunks/chunk-IXMTB4O4.js +166 -0
- package/dist/chunks/chunk-IXNRZNII.js +70 -0
- package/dist/chunks/chunk-J2CAIU23.js +156 -0
- package/dist/chunks/chunk-J5TIMX4T.js +204 -0
- package/dist/chunks/chunk-J6Z2RBVT.js +33 -0
- package/dist/chunks/chunk-JATD6CVG.js +175 -0
- package/dist/chunks/chunk-JBLUNTQ5.js +304 -0
- package/dist/chunks/chunk-JCGSTIA7.js +151 -0
- package/dist/chunks/chunk-JCTGQT4L.js +358 -0
- package/dist/chunks/chunk-JFXOAA4Z.js +172 -0
- package/dist/chunks/chunk-JHG3V54T.js +251 -0
- package/dist/chunks/chunk-JHH3L6NP.js +360 -0
- package/dist/chunks/chunk-JISID25N.js +497 -0
- package/dist/chunks/chunk-JL63EF5K.js +189 -0
- package/dist/chunks/chunk-JNRLNV3T.js +23 -0
- package/dist/chunks/chunk-JPZNEZ2G.js +106 -0
- package/dist/chunks/chunk-JQ7NWUIJ.js +156 -0
- package/dist/chunks/chunk-JRKHG2OJ.js +48 -0
- package/dist/chunks/chunk-JTMLQA5Z.js +53 -0
- package/dist/chunks/chunk-JU52A3P6.js +255 -0
- package/dist/chunks/chunk-JUG2KEVH.js +249 -0
- package/dist/chunks/chunk-JVA3FMHI.js +100 -0
- package/dist/chunks/chunk-K3FGLDPE.js +239 -0
- package/dist/chunks/chunk-K5PDCAYR.js +60 -0
- package/dist/chunks/chunk-K65QFCH4.js +300 -0
- package/dist/chunks/chunk-K7KP4ZHJ.js +100 -0
- package/dist/chunks/chunk-KB3C37J7.js +195 -0
- package/dist/chunks/chunk-KC7CTHIZ.js +108 -0
- package/dist/chunks/chunk-KCOQJABJ.js +82 -0
- package/dist/chunks/chunk-KESEK3WN.js +45 -0
- package/dist/chunks/chunk-KFWJTI3V.js +361 -0
- package/dist/chunks/chunk-KG3SKMP2.js +276 -0
- package/dist/chunks/chunk-KHYVU4EN.js +149 -0
- package/dist/chunks/chunk-KITTANEK.js +100 -0
- package/dist/chunks/chunk-KKSAY7EB.js +76 -0
- package/dist/chunks/chunk-KKT6D3BZ.js +155 -0
- package/dist/chunks/chunk-KMDQPNBK.js +38 -0
- package/dist/chunks/chunk-KN4C524L.js +898 -0
- package/dist/chunks/chunk-KNFOTI5L.js +198 -0
- package/dist/chunks/chunk-KNJKEYCO.js +100 -0
- package/dist/chunks/chunk-KQHST2CP.js +206 -0
- package/dist/chunks/chunk-KQKWP5IH.js +143 -0
- package/dist/chunks/chunk-KRKIUNKW.js +52 -0
- package/dist/chunks/chunk-KRSZOTQM.js +103 -0
- package/dist/chunks/chunk-KRZEOWRO.js +23 -0
- package/dist/chunks/chunk-KT74PCIN.js +198 -0
- package/dist/chunks/chunk-KTG5TWSK.js +93 -0
- package/dist/chunks/chunk-KTKPPFAZ.js +63 -0
- package/dist/chunks/chunk-KU6DQNNP.js +106 -0
- package/dist/chunks/chunk-KWM67UU5.js +266 -0
- package/dist/chunks/chunk-KXAG5KLT.js +197 -0
- package/dist/chunks/chunk-KXZ2MJLL.js +187 -0
- package/dist/chunks/chunk-L2CJCB3D.js +98 -0
- package/dist/chunks/chunk-L2HNYQK3.js +83 -0
- package/dist/chunks/chunk-L4O3RZLD.js +137 -0
- package/dist/chunks/chunk-L4SXAE47.js +101 -0
- package/dist/chunks/chunk-L5C7CA4N.js +262 -0
- package/dist/chunks/chunk-L6HFT6SI.js +198 -0
- package/dist/chunks/chunk-LA44ZNPJ.js +287 -0
- package/dist/chunks/chunk-LEODQIGC.js +226 -0
- package/dist/chunks/chunk-LFCWZCL4.js +237 -0
- package/dist/chunks/chunk-LGNJ44SO.js +122 -0
- package/dist/chunks/chunk-LGPRILVA.js +200 -0
- package/dist/chunks/chunk-LH4EF7WS.js +177 -0
- package/dist/chunks/chunk-LHZXBPGT.js +69 -0
- package/dist/chunks/chunk-LIQOD3OU.js +290 -0
- package/dist/chunks/chunk-LJ576S2V.js +135 -0
- package/dist/chunks/chunk-LKNIPL2H.js +261 -0
- package/dist/chunks/chunk-LLIWJP5S.js +115 -0
- package/dist/chunks/chunk-LM6B56PY.js +338 -0
- package/dist/chunks/chunk-LNJLKT7A.js +78 -0
- package/dist/chunks/chunk-LNZI24IA.js +178 -0
- package/dist/chunks/chunk-LOQZBYNB.js +805 -0
- package/dist/chunks/chunk-LR5VYYFU.js +49 -0
- package/dist/chunks/chunk-LS646CVT.js +183 -0
- package/dist/chunks/chunk-LTDW3KUU.js +97 -0
- package/dist/chunks/chunk-LVQFK5RJ.js +127 -0
- package/dist/chunks/chunk-LXJQFATF.js +33 -0
- package/dist/chunks/chunk-LY7RXVY3.js +218 -0
- package/dist/chunks/chunk-LYVYGEQQ.js +45 -0
- package/dist/chunks/chunk-M665OREL.js +559 -0
- package/dist/chunks/chunk-M6QMVB75.js +141 -0
- package/dist/chunks/chunk-M6SCBXLP.js +33 -0
- package/dist/chunks/chunk-M6VKCW7E.js +66 -0
- package/dist/chunks/chunk-M7B2D2I7.js +247 -0
- package/dist/chunks/chunk-MALFH4QS.js +178 -0
- package/dist/chunks/chunk-MAQIBVYC.js +138 -0
- package/dist/chunks/chunk-MCZE6PKY.js +109 -0
- package/dist/chunks/chunk-MGEYWWBR.js +91 -0
- package/dist/chunks/chunk-MJI67VHI.js +36 -0
- package/dist/chunks/chunk-MJNO34KG.js +118 -0
- package/dist/chunks/chunk-ML6LA6PU.js +41 -0
- package/dist/chunks/chunk-MMKXVDYY.js +114 -0
- package/dist/chunks/chunk-MMUF7LA3.js +131 -0
- package/dist/chunks/chunk-MMXDFAMM.js +33 -0
- package/dist/chunks/chunk-MNHNA7PV.js +175 -0
- package/dist/chunks/chunk-MPFGNP5M.js +106 -0
- package/dist/chunks/chunk-MPY2EL63.js +142 -0
- package/dist/chunks/chunk-MRP64N63.js +95 -0
- package/dist/chunks/chunk-MUTQIBRF.js +115 -0
- package/dist/chunks/chunk-MUZYQBCR.js +162 -0
- package/dist/chunks/chunk-MVLHTIKA.js +326 -0
- package/dist/chunks/chunk-MVPRP5UI.js +366 -0
- package/dist/chunks/chunk-MWHTKTIT.js +368 -0
- package/dist/chunks/chunk-MWKRLGPZ.js +170 -0
- package/dist/chunks/chunk-MXIJUG2C.js +260 -0
- package/dist/chunks/chunk-MYQVQJUH.js +33 -0
- package/dist/chunks/chunk-N3F5XANE.js +75 -0
- package/dist/chunks/chunk-N55E3GBY.js +252 -0
- package/dist/chunks/chunk-N66KJT2M.js +157 -0
- package/dist/chunks/chunk-N6ROVGBO.js +73 -0
- package/dist/chunks/chunk-N76TBBCV.js +331 -0
- package/dist/chunks/chunk-NA6Y5LCL.js +202 -0
- package/dist/chunks/chunk-NAZCMVPG.js +172 -0
- package/dist/chunks/chunk-NBDNXK7L.js +150 -0
- package/dist/chunks/chunk-NBKVTXXK.js +112 -0
- package/dist/chunks/chunk-NCVQD23A.js +102 -0
- package/dist/chunks/chunk-NEHBWMHD.js +94 -0
- package/dist/chunks/chunk-NEMISXGQ.js +196 -0
- package/dist/chunks/chunk-NESMFHUI.js +97 -0
- package/dist/chunks/chunk-NGKWTRGC.js +89 -0
- package/dist/chunks/chunk-NGYWHBRO.js +10426 -0
- package/dist/chunks/chunk-NJ6DY74T.js +23 -0
- package/dist/chunks/chunk-NJAXL5ZL.js +23 -0
- package/dist/chunks/chunk-NL2C3DKL.js +130 -0
- package/dist/chunks/chunk-NLFJPE25.js +209 -0
- package/dist/chunks/chunk-NLTZB2YB.js +111 -0
- package/dist/chunks/chunk-NM7ITLQ5.js +331 -0
- package/dist/chunks/chunk-NMSNKHJY.js +150 -0
- package/dist/chunks/chunk-NNDR746E.js +23 -0
- package/dist/chunks/chunk-NPZ4O3W5.js +90 -0
- package/dist/chunks/chunk-NQ7MVFWW.js +231 -0
- package/dist/chunks/chunk-NQPFEURS.js +93 -0
- package/dist/chunks/chunk-NRDLMXTL.js +122 -0
- package/dist/chunks/chunk-NRVZ5H3V.js +45 -0
- package/dist/chunks/chunk-NUA5CRZS.js +36 -0
- package/dist/chunks/chunk-NVJCUUIF.js +41 -0
- package/dist/chunks/chunk-NW3QB37S.js +97 -0
- package/dist/chunks/chunk-NY5MGX3O.js +158 -0
- package/dist/chunks/chunk-NY5YEXE3.js +97 -0
- package/dist/chunks/chunk-O3YLBFAE.js +23 -0
- package/dist/chunks/chunk-O4WR2IOH.js +130 -0
- package/dist/chunks/chunk-O746RQDR.js +161 -0
- package/dist/chunks/chunk-OCKLF4F3.js +151 -0
- package/dist/chunks/chunk-OCN4J22F.js +147 -0
- package/dist/chunks/chunk-ODTHQCB2.js +146 -0
- package/dist/chunks/chunk-OFBWTZDZ.js +33 -0
- package/dist/chunks/chunk-OGTAQSV6.js +131 -0
- package/dist/chunks/chunk-OIMOPTYD.js +151 -0
- package/dist/chunks/chunk-OKRQK77T.js +60 -0
- package/dist/chunks/chunk-OMIZ3MNS.js +728 -0
- package/dist/chunks/chunk-OMZAYT2H.js +399 -0
- package/dist/chunks/chunk-OOBRGSTY.js +79 -0
- package/dist/chunks/chunk-OPCBB7Y6.js +160 -0
- package/dist/chunks/chunk-ORZRT64S.js +120 -0
- package/dist/chunks/chunk-OSLABB56.js +228 -0
- package/dist/chunks/chunk-OTRGB547.js +81 -0
- package/dist/chunks/chunk-OUUWVOO7.js +171 -0
- package/dist/chunks/chunk-OV6GUHZC.js +78 -0
- package/dist/chunks/chunk-OWVRXWD6.js +139 -0
- package/dist/chunks/chunk-OYZSGTJT.js +102 -0
- package/dist/chunks/chunk-P2BVGBDS.js +200 -0
- package/dist/chunks/chunk-P2NLH7ZP.js +152 -0
- package/dist/chunks/chunk-P2Q42U7U.js +105 -0
- package/dist/chunks/chunk-P3NZD24X.js +107 -0
- package/dist/chunks/chunk-P5WSC6BZ.js +122 -0
- package/dist/chunks/chunk-P7BQNFB5.js +86 -0
- package/dist/chunks/chunk-PATZRRJZ.js +231 -0
- package/dist/chunks/chunk-PAXX77YR.js +134 -0
- package/dist/chunks/chunk-PD7DWAVL.js +86 -0
- package/dist/chunks/chunk-PE3QMPCK.js +120 -0
- package/dist/chunks/chunk-PEG3XJD4.js +23 -0
- package/dist/chunks/chunk-PFOPR73W.js +133 -0
- package/dist/chunks/chunk-PGI6NGZA.js +115 -0
- package/dist/chunks/chunk-PHVPQS74.js +152 -0
- package/dist/chunks/chunk-PLFS3WTV.js +110 -0
- package/dist/chunks/chunk-PN3BXDPP.js +150 -0
- package/dist/chunks/chunk-POA25KNW.js +23 -0
- package/dist/chunks/chunk-PPFSTAIC.js +66 -0
- package/dist/chunks/chunk-PQXOGTF4.js +128 -0
- package/dist/chunks/chunk-PR5X4OFZ.js +234 -0
- package/dist/chunks/chunk-PSA3VXP3.js +82 -0
- package/dist/chunks/chunk-PTDVOJXR.js +315 -0
- package/dist/chunks/chunk-PTFRJVAP.js +99 -0
- package/dist/chunks/chunk-PTWMYRV4.js +45 -0
- package/dist/chunks/chunk-PULNEOS7.js +149 -0
- package/dist/chunks/chunk-PWQEPAQC.js +209 -0
- package/dist/chunks/chunk-PXEJZKT6.js +106 -0
- package/dist/chunks/chunk-PXN3LBYM.js +39 -0
- package/dist/chunks/chunk-PYSOTUZP.js +30 -0
- package/dist/chunks/chunk-PZQENXFO.js +133 -0
- package/dist/chunks/chunk-Q2JUSVPP.js +100 -0
- package/dist/chunks/chunk-Q7HRZ3ZH.js +131 -0
- package/dist/chunks/chunk-QBDKREEU.js +337 -0
- package/dist/chunks/chunk-QCHBOQ7Y.js +109 -0
- package/dist/chunks/chunk-QESO6BHM.js +33 -0
- package/dist/chunks/chunk-QILMMDTK.js +121 -0
- package/dist/chunks/chunk-QIQIEFUY.js +174 -0
- package/dist/chunks/chunk-QJJTUIPH.js +267 -0
- package/dist/chunks/chunk-QLP4QCMU.js +209 -0
- package/dist/chunks/chunk-QLQMJEEU.js +80 -0
- package/dist/chunks/chunk-QLZEGLQB.js +136 -0
- package/dist/chunks/chunk-QMHR62B6.js +1975 -0
- package/dist/chunks/chunk-QN5VGD7Q.js +297 -0
- package/dist/chunks/chunk-QN7BI3YK.js +98 -0
- package/dist/chunks/chunk-QNBRJ2SY.js +139 -0
- package/dist/chunks/chunk-QO6OES63.js +161 -0
- package/dist/chunks/chunk-QOWJT57N.js +194 -0
- package/dist/chunks/chunk-QQ57HXDW.js +60 -0
- package/dist/chunks/chunk-QQ5VA2B3.js +327 -0
- package/dist/chunks/chunk-QR5V2MKI.js +111 -0
- package/dist/chunks/chunk-QRZLOOUU.js +95 -0
- package/dist/chunks/chunk-QS3N7CSV.js +179 -0
- package/dist/chunks/chunk-QS7RO3LD.js +61 -0
- package/dist/chunks/chunk-QSAQUMRD.js +141 -0
- package/dist/chunks/chunk-QSEIR3MN.js +363 -0
- package/dist/chunks/chunk-QTEQNQ4M.js +305 -0
- package/dist/chunks/chunk-QVLBQHBK.js +214 -0
- package/dist/chunks/chunk-QWEHRZUR.js +133 -0
- package/dist/chunks/chunk-R3DWMKLT.js +94 -0
- package/dist/chunks/chunk-R3L5ZVRD.js +345 -0
- package/dist/chunks/chunk-R3YIEYD4.js +262 -0
- package/dist/chunks/chunk-R7STEOUL.js +42 -0
- package/dist/chunks/chunk-RBDTVHAK.js +145 -0
- package/dist/chunks/chunk-REQOBENI.js +90 -0
- package/dist/chunks/chunk-RFHPKQA6.js +212 -0
- package/dist/chunks/chunk-RGL2EIK4.js +181 -0
- package/dist/chunks/chunk-RHDVCXRG.js +33 -0
- package/dist/chunks/chunk-RJKQVHP3.js +107 -0
- package/dist/chunks/chunk-RJQ4GXRB.js +74 -0
- package/dist/chunks/chunk-RKLUASEF.js +139 -0
- package/dist/chunks/chunk-RM6LNUZJ.js +113 -0
- package/dist/chunks/chunk-RNNGK6VY.js +78 -0
- package/dist/chunks/chunk-ROFWM2VD.js +194 -0
- package/dist/chunks/chunk-RQKSRU2T.js +102 -0
- package/dist/chunks/chunk-RTLXYE42.js +182 -0
- package/dist/chunks/chunk-RTTPFE4U.js +119 -0
- package/dist/chunks/chunk-RU42F4MZ.js +170 -0
- package/dist/chunks/chunk-RU76TVWG.js +169 -0
- package/dist/chunks/chunk-RUV5W4D3.js +166 -0
- package/dist/chunks/chunk-RUYQ57NR.js +190 -0
- package/dist/chunks/chunk-RWGLGWCB.js +197 -0
- package/dist/chunks/chunk-RXZFHIJJ.js +155 -0
- package/dist/chunks/chunk-S3TT6MSF.js +78 -0
- package/dist/chunks/chunk-S5OY4E3N.js +149 -0
- package/dist/chunks/chunk-S6IW3WWA.js +488 -0
- package/dist/chunks/chunk-S7P2L57I.js +23 -0
- package/dist/chunks/chunk-S7PTNEEN.js +141 -0
- package/dist/chunks/chunk-S7Q4QTUN.js +95 -0
- package/dist/chunks/chunk-SBC4UUTW.js +33 -0
- package/dist/chunks/chunk-SBT6MPYX.js +90 -0
- package/dist/chunks/chunk-SCAVDO4J.js +104 -0
- package/dist/chunks/chunk-SEU2WGLC.js +126 -0
- package/dist/chunks/chunk-SG5KJFN4.js +174 -0
- package/dist/chunks/chunk-SGCRC64Y.js +303 -0
- package/dist/chunks/chunk-SGEAYHPD.js +250 -0
- package/dist/chunks/chunk-SGOB2ICO.js +33 -0
- package/dist/chunks/chunk-SHWSH7BQ.js +108 -0
- package/dist/chunks/chunk-SIPOAXT6.js +53 -0
- package/dist/chunks/chunk-SJPP43HT.js +163 -0
- package/dist/chunks/chunk-SMRB42HC.js +44 -0
- package/dist/chunks/chunk-SN5MC7QR.js +44 -0
- package/dist/chunks/chunk-SNUOMWEA.js +119 -0
- package/dist/chunks/chunk-SOHFY2JH.js +156 -0
- package/dist/chunks/chunk-SQGBKH3E.js +146 -0
- package/dist/chunks/chunk-SRBRN3VS.js +78 -0
- package/dist/chunks/chunk-SSIJMUZP.js +73 -0
- package/dist/chunks/chunk-ST2W4RCU.js +221 -0
- package/dist/chunks/chunk-SU7ZEBH3.js +105 -0
- package/dist/chunks/chunk-SUAMGAL2.js +108 -0
- package/dist/chunks/chunk-SUK3AG25.js +115 -0
- package/dist/chunks/chunk-SV2UQJVI.js +106 -0
- package/dist/chunks/chunk-SVUOZLZZ.js +242 -0
- package/dist/chunks/chunk-SY3KZGGN.js +401 -0
- package/dist/chunks/chunk-SYBLNKMV.js +651 -0
- package/dist/chunks/chunk-SYX4LC5D.js +141 -0
- package/dist/chunks/chunk-T2C2LAI5.js +157 -0
- package/dist/chunks/chunk-T2HFGLTJ.js +119 -0
- package/dist/chunks/chunk-T6PGMVGK.js +159 -0
- package/dist/chunks/chunk-TCD7UN3D.js +45 -0
- package/dist/chunks/chunk-TEREU6KB.js +122 -0
- package/dist/chunks/chunk-TEZ3U226.js +320 -0
- package/dist/chunks/chunk-THDSGLGR.js +55 -0
- package/dist/chunks/chunk-TILIYETX.js +23 -0
- package/dist/chunks/chunk-TMBNHPJF.js +36 -0
- package/dist/chunks/chunk-TN2WFJGQ.js +33 -0
- package/dist/chunks/chunk-TNGQKZTQ.js +311 -0
- package/dist/chunks/chunk-TNSIGDVE.js +145 -0
- package/dist/chunks/chunk-TOLP5EU7.js +199 -0
- package/dist/chunks/chunk-TP5EAIAP.js +324 -0
- package/dist/chunks/chunk-TPBIYAOJ.js +213 -0
- package/dist/chunks/chunk-TQATK6U6.js +77 -0
- package/dist/chunks/chunk-TS3FI7DW.js +170 -0
- package/dist/chunks/chunk-TSTOJVHD.js +84 -0
- package/dist/chunks/chunk-TTM6GYXY.js +42 -0
- package/dist/chunks/chunk-TWJYBR52.js +221 -0
- package/dist/chunks/chunk-TWRS3H3S.js +226 -0
- package/dist/chunks/chunk-TXL6Y3HI.js +33 -0
- package/dist/chunks/chunk-TZ4TSWBR.js +71 -0
- package/dist/chunks/chunk-U22E4LML.js +390 -0
- package/dist/chunks/chunk-U2KHV6AI.js +90 -0
- package/dist/chunks/chunk-U3FY2H4E.js +48 -0
- package/dist/chunks/chunk-U5ASMU4W.js +503 -0
- package/dist/chunks/chunk-U5EXHTBB.js +94 -0
- package/dist/chunks/chunk-U5MWFZ5Z.js +114 -0
- package/dist/chunks/chunk-U6DSHD5P.js +224 -0
- package/dist/chunks/chunk-U7VCSJZU.js +123 -0
- package/dist/chunks/chunk-UBDFVFH3.js +77 -0
- package/dist/chunks/chunk-UCAHBPB6.js +172 -0
- package/dist/chunks/chunk-UCGZ6DEK.js +265 -0
- package/dist/chunks/chunk-UCUPGBWW.js +181 -0
- package/dist/chunks/chunk-UD7CCUBZ.js +210 -0
- package/dist/chunks/chunk-UFSZDMBQ.js +33 -0
- package/dist/chunks/chunk-UHAKDRS3.js +142 -0
- package/dist/chunks/chunk-UHCPOIIG.js +36 -0
- package/dist/chunks/chunk-UINZKVRH.js +41 -0
- package/dist/chunks/chunk-UKCR6ADD.js +52 -0
- package/dist/chunks/chunk-UNFPWZPR.js +283 -0
- package/dist/chunks/chunk-UO4QF6MQ.js +30 -0
- package/dist/chunks/chunk-UPBGJYEC.js +166 -0
- package/dist/chunks/chunk-UQISEHMD.js +105 -0
- package/dist/chunks/chunk-URHKBRNZ.js +122 -0
- package/dist/chunks/chunk-US65MSZL.js +102 -0
- package/dist/chunks/chunk-UTDF3XDV.js +938 -0
- package/dist/chunks/chunk-UVMLPGHQ.js +144 -0
- package/dist/chunks/chunk-UVPVVBOS.js +23 -0
- package/dist/chunks/chunk-UVVH4MP4.js +196 -0
- package/dist/chunks/chunk-UWCUV52B.js +48 -0
- package/dist/chunks/chunk-UWTJ2DG2.js +258 -0
- package/dist/chunks/chunk-UX2LZUDE.js +120 -0
- package/dist/chunks/chunk-UYMFNEM6.js +598 -0
- package/dist/chunks/chunk-UYVCLVY6.js +69 -0
- package/dist/chunks/chunk-UZASIDHZ.js +33 -0
- package/dist/chunks/chunk-V26Z36SW.js +94 -0
- package/dist/chunks/chunk-V3JIJITZ.js +105 -0
- package/dist/chunks/chunk-V3MJNQ3C.js +109 -0
- package/dist/chunks/chunk-V3OJCHDU.js +83 -0
- package/dist/chunks/chunk-V3WB26G6.js +146 -0
- package/dist/chunks/chunk-V4ED7DZE.js +120 -0
- package/dist/chunks/chunk-V4KYXJ3V.js +188 -0
- package/dist/chunks/chunk-V5NOJB4C.js +89 -0
- package/dist/chunks/chunk-V6YCPWRR.js +163 -0
- package/dist/chunks/chunk-V6YIHYOF.js +303 -0
- package/dist/chunks/chunk-V7ZVZ7G3.js +55 -0
- package/dist/chunks/chunk-VA6LRSFU.js +23 -0
- package/dist/chunks/chunk-VABARK3C.js +23 -0
- package/dist/chunks/chunk-VALZTUVS.js +163 -0
- package/dist/chunks/chunk-VAOVVDOZ.js +1469 -0
- package/dist/chunks/chunk-VB27PTKG.js +304 -0
- package/dist/chunks/chunk-VDKNQKGO.js +163 -0
- package/dist/chunks/chunk-VHIUOSP4.js +103 -0
- package/dist/chunks/chunk-VIAY5NO4.js +59 -0
- package/dist/chunks/chunk-VIO3XMMA.js +304 -0
- package/dist/chunks/chunk-VJMVIBEZ.js +168 -0
- package/dist/chunks/chunk-VLE6WC7V.js +112 -0
- package/dist/chunks/chunk-VMENZHIQ.js +106 -0
- package/dist/chunks/chunk-VNW32TDP.js +83 -0
- package/dist/chunks/chunk-VOLSARMJ.js +1307 -0
- package/dist/chunks/chunk-VPNKI4NA.js +81 -0
- package/dist/chunks/chunk-VRAOIRP5.js +80 -0
- package/dist/chunks/chunk-VRTWYIFE.js +220 -0
- package/dist/chunks/chunk-VSLWHW6D.js +164 -0
- package/dist/chunks/chunk-VSS763NS.js +78 -0
- package/dist/chunks/chunk-VT5MDHIP.js +93 -0
- package/dist/chunks/chunk-VTUZO6N4.js +147 -0
- package/dist/chunks/chunk-VW63TNRA.js +83 -0
- package/dist/chunks/chunk-VXQ6QTV6.js +23 -0
- package/dist/chunks/chunk-VY3MVLEW.js +73 -0
- package/dist/chunks/chunk-W2UQAUPC.js +45 -0
- package/dist/chunks/chunk-W3WKTO6W.js +152 -0
- package/dist/chunks/chunk-W5EBUQE3.js +23 -0
- package/dist/chunks/chunk-W5M3OHVC.js +97 -0
- package/dist/chunks/chunk-WAWOYGXR.js +89 -0
- package/dist/chunks/chunk-WB7HL6GR.js +84 -0
- package/dist/chunks/chunk-WCTACTRK.js +100 -0
- package/dist/chunks/chunk-WD7HEYCC.js +149 -0
- package/dist/chunks/chunk-WDFFN44U.js +76 -0
- package/dist/chunks/chunk-WDO2EWMD.js +91 -0
- package/dist/chunks/chunk-WFQWFUBJ.js +165 -0
- package/dist/chunks/chunk-WG5KUTTX.js +251 -0
- package/dist/chunks/chunk-WGDLJSN2.js +94 -0
- package/dist/chunks/chunk-WIAMWLOO.js +263 -0
- package/dist/chunks/chunk-WJ75HBU3.js +88 -0
- package/dist/chunks/chunk-WJWUAFKF.js +106 -0
- package/dist/chunks/chunk-WRQRCHJ2.js +23 -0
- package/dist/chunks/chunk-WRWOVQGW.js +290 -0
- package/dist/chunks/chunk-WTDOZYRU.js +33 -0
- package/dist/chunks/chunk-WTPHX6LV.js +109 -0
- package/dist/chunks/chunk-WUBEVACG.js +87 -0
- package/dist/chunks/chunk-WUFD43RH.js +23 -0
- package/dist/chunks/chunk-WWPZKRTJ.js +118 -0
- package/dist/chunks/chunk-WWSVZF3L.js +65 -0
- package/dist/chunks/chunk-WY2EOL4P.js +87 -0
- package/dist/chunks/chunk-WYF2QGSL.js +136 -0
- package/dist/chunks/chunk-WYJKWPAT.js +92 -0
- package/dist/chunks/chunk-X2TC6ROJ.js +108 -0
- package/dist/chunks/chunk-X2TDZ6AE.js +118 -0
- package/dist/chunks/chunk-X3WZNIUY.js +47 -0
- package/dist/chunks/chunk-X5QFOACC.js +23 -0
- package/dist/chunks/chunk-X7WDDRAW.js +50 -0
- package/dist/chunks/chunk-XG3N3MTA.js +77 -0
- package/dist/chunks/chunk-XHFLH65C.js +95 -0
- package/dist/chunks/chunk-XIRWPJCR.js +33 -0
- package/dist/chunks/chunk-XJK6WOZ3.js +150 -0
- package/dist/chunks/chunk-XNK4TFQV.js +84 -0
- package/dist/chunks/chunk-XOL5IGMH.js +237 -0
- package/dist/chunks/chunk-XVA4VZYF.js +161 -0
- package/dist/chunks/chunk-XWMAREQI.js +191 -0
- package/dist/chunks/chunk-Y37IG5LA.js +235 -0
- package/dist/chunks/chunk-Y3BQ7VSS.js +155 -0
- package/dist/chunks/chunk-Y3ENAWZW.js +98 -0
- package/dist/chunks/chunk-Y3SHMIND.js +112 -0
- package/dist/chunks/chunk-Y46APA7K.js +50 -0
- package/dist/chunks/chunk-Y54326DJ.js +201 -0
- package/dist/chunks/chunk-YAIKK5HL.js +23 -0
- package/dist/chunks/chunk-YBW3GP3H.js +232 -0
- package/dist/chunks/chunk-YD3F7CQG.js +122 -0
- package/dist/chunks/chunk-YDW25Z3P.js +185 -0
- package/dist/chunks/chunk-YFQRDLDA.js +140 -0
- package/dist/chunks/chunk-YHKHINJE.js +207 -0
- package/dist/chunks/chunk-YJ3KKIE5.js +329 -0
- package/dist/chunks/chunk-YKNMLZE6.js +33 -0
- package/dist/chunks/chunk-YKPOTEVT.js +123 -0
- package/dist/chunks/chunk-YM6RAWQC.js +183 -0
- package/dist/chunks/chunk-YMGUPGGX.js +889 -0
- package/dist/chunks/chunk-YNP562NA.js +86 -0
- package/dist/chunks/chunk-YNUJ3OW5.js +266 -0
- package/dist/chunks/chunk-YOE3XYGJ.js +685 -0
- package/dist/chunks/chunk-YOIOFF6S.js +134 -0
- package/dist/chunks/chunk-YPNNE4ES.js +50 -0
- package/dist/chunks/chunk-YPW7TPWB.js +153 -0
- package/dist/chunks/chunk-YTKFN7CH.js +92 -0
- package/dist/chunks/chunk-YTXFOJP4.js +101 -0
- package/dist/chunks/chunk-YULGCDXC.js +304 -0
- package/dist/chunks/chunk-YUQS3X7Q.js +87 -0
- package/dist/chunks/chunk-YV72PMGF.js +45 -0
- package/dist/chunks/chunk-YW43ZCJ5.js +23 -0
- package/dist/chunks/chunk-YX4CSWID.js +77 -0
- package/dist/chunks/chunk-YXO6LURB.js +358 -0
- package/dist/chunks/chunk-YY3XOUHC.js +317 -0
- package/dist/chunks/chunk-YYVHD4HQ.js +327 -0
- package/dist/chunks/chunk-YZFGWRYC.js +172 -0
- package/dist/chunks/chunk-Z2SQJVF6.js +242 -0
- package/dist/chunks/chunk-Z3C25IAJ.js +33 -0
- package/dist/chunks/chunk-Z3FNQHHO.js +146 -0
- package/dist/chunks/chunk-Z3SATMFL.js +153 -0
- package/dist/chunks/chunk-Z4MZQMFD.js +336 -0
- package/dist/chunks/chunk-Z4NOCBYS.js +105 -0
- package/dist/chunks/chunk-Z5IXNO7V.js +163 -0
- package/dist/chunks/chunk-Z63GXFYN.js +125 -0
- package/dist/chunks/chunk-Z7CSW2W7.js +117 -0
- package/dist/chunks/chunk-Z7GQXIUE.js +112 -0
- package/dist/chunks/chunk-ZAZQKX3L.js +123 -0
- package/dist/chunks/chunk-ZCT47CDF.js +273 -0
- package/dist/chunks/chunk-ZF6E4FNA.js +87 -0
- package/dist/chunks/chunk-ZFWC56IX.js +87 -0
- package/dist/chunks/chunk-ZHS45A4Z.js +95 -0
- package/dist/chunks/chunk-ZILVVQTA.js +84 -0
- package/dist/chunks/chunk-ZK4ZRJAV.js +179 -0
- package/dist/chunks/chunk-ZKHMZMIT.js +147 -0
- package/dist/chunks/chunk-ZNXCORCH.js +50 -0
- package/dist/chunks/chunk-ZOYR6CS5.js +152 -0
- package/dist/chunks/chunk-ZRGJ7MTR.js +98 -0
- package/dist/chunks/chunk-ZRRUSMJJ.js +23 -0
- package/dist/chunks/chunk-ZSD7S436.js +33 -0
- package/dist/chunks/chunk-ZU4GMCHT.js +140 -0
- package/dist/chunks/chunk-ZUXOIS5C.js +215 -0
- package/dist/chunks/chunk-ZXF4YDOY.js +177 -0
- package/dist/chunks/chunk-ZYQPVK55.js +105 -0
- package/dist/chunks/chunk-ZZ67VUPL.js +169 -0
- package/dist/chunks/chunk-ZZ6AW7VP.js +139 -0
- package/dist/chunks/chunk-ZZTBYECM.js +391 -0
- package/dist/chunks/client-7MO2SGFG.js +46 -0
- package/dist/chunks/client-P3YFS7W7.js +167 -0
- package/dist/chunks/client-TM3O6JDA.js +31 -0
- package/dist/chunks/client-actions-MRVKPWRX.js +166 -0
- package/dist/chunks/dangerous-CIKKSAGL.js +120 -0
- package/dist/chunks/delete-current-file-KHH7YB3K.js +159 -0
- package/dist/chunks/editor-seams-PLS3CZ74.js +166 -0
- package/dist/chunks/editor-store-5WVLZBLO.js +143 -0
- package/dist/chunks/export-watermark-THVSCEIC.js +152 -0
- package/dist/chunks/eyedropper-NM7NT6QT.js +354 -0
- package/dist/chunks/generate-media-KISZDA4U.js +255 -0
- package/dist/chunks/host-KAU6H7H3.js +178 -0
- package/dist/chunks/import-merge-AU6LCYL6.js +39 -0
- package/dist/chunks/integrations-IMLMOW27.js +124 -0
- package/dist/chunks/kit-modules-FSENHSPE.js +18 -0
- package/dist/chunks/libraries-VKNKFX2X.js +307 -0
- package/dist/chunks/live-SJGND5BC.js +317 -0
- package/dist/chunks/media-tool-4VTG3IOX.js +337 -0
- package/dist/chunks/new-file-FJC7XVL2.js +136 -0
- package/dist/chunks/page-thumbnails-SNCUKGXG.js +137 -0
- package/dist/chunks/plugin-YD7BJLEU.js +127 -0
- package/dist/chunks/plugin-import-QT4JGS2G.js +675 -0
- package/dist/chunks/presence-E5RZ754Y.js +132 -0
- package/dist/chunks/preview-media-YRR3SJQT.js +122 -0
- package/dist/chunks/project-C6HMCR35.js +1653 -0
- package/dist/chunks/publish-site-6D56UAKF.js +163 -0
- package/dist/chunks/publish-store-ZIKPVRJM.js +94 -0
- package/dist/chunks/raster-actions-YLYA524F.js +232 -0
- package/dist/chunks/runner-5YTIWTPP.js +2900 -0
- package/dist/chunks/runtime-BTYC4KVF.js +32 -0
- package/dist/chunks/sites-KDF65KKY.js +33 -0
- package/dist/chunks/store-TUT4RJNP.js +231 -0
- package/dist/chunks/sync-KNGK6CKY.js +158 -0
- package/dist/chunks/tabs-CIVUYFNK.js +316 -0
- package/dist/chunks/team-S6MMDNH6.js +46 -0
- package/dist/chunks/team-client-3D3DLCUN.js +157 -0
- package/dist/chunks/templates-53F57T2C.js +182 -0
- package/dist/chunks/tools-QCMLA2KV.js +37 -0
- package/dist/chunks/ui-commands-SORZLF7L.js +274 -0
- package/dist/chunks/use-3DTRBGXZ.js +49 -0
- package/dist/chunks/versions-FU75DQNZ.js +316 -0
- package/dist/index.js +13 -13
- package/dist/lib/document/libraries.js +1 -1
- package/dist/lib/templates/apply.js +2 -2
- package/dist/lib/templates/capabilities.js +2 -2
- package/dist/lib/templates/capture.js +2 -2
- package/dist/lib/templates/finish.js +5 -5
- package/dist/lib/templates/resize.js +2 -2
- package/dist/lib/templates/upload.js +2 -2
- package/dist/lib/templates/vocabulary.js +2 -2
- package/dist/migrations/board-meta.js +3 -3
- package/dist/migrations/brand-media.js +4 -4
- package/dist/migrations/categories.js +2 -2
- package/dist/migrations/index.js +11 -11
- package/dist/migrations/timeline-facets.js +7 -7
- package/dist/templates/anime/character.js +10 -10
- package/dist/templates/anime/duel.js +13 -13
- package/dist/templates/anime/morning.js +13 -13
- package/dist/templates/anime/rain.js +13 -13
- package/dist/templates/anime/shared.js +11 -11
- package/dist/templates/anime/starlight.js +13 -13
- package/dist/templates/anime/titan.js +13 -13
- package/dist/templates/app/festival-presale-electronic-ticket.js +12 -12
- package/dist/templates/app/festival-presale-family-ticket.js +12 -12
- package/dist/templates/app/festival-presale-folk-ticket.js +12 -12
- package/dist/templates/app/festival-presale-food-ticket.js +12 -12
- package/dist/templates/app/festival-presale-jazz-ticket.js +12 -12
- package/dist/templates/app/festival-presale-street-ticket.js +12 -12
- package/dist/templates/app/music/build.js +4 -4
- package/dist/templates/app/music-grove.js +10 -10
- package/dist/templates/app/music-nightline.js +10 -10
- package/dist/templates/app/music-orbit.js +10 -10
- package/dist/templates/app/music-undertow.js +10 -10
- package/dist/templates/app/onboarding-carousel.js +9 -9
- package/dist/templates/app/saas-store-paywall.js +9 -9
- package/dist/templates/app/splash.js +9 -9
- package/dist/templates/app/success-confetti.js +9 -9
- package/dist/templates/app/tour-tickets-june-ticket.js +9 -9
- package/dist/templates/app/tour-tickets-tide-ticket.js +9 -9
- package/dist/templates/app/tour-tickets-wreck-ticket.js +9 -9
- package/dist/templates/build.js +6 -6
- package/dist/templates/cards/index.js +11 -11
- package/dist/templates/cards/shared.js +9 -9
- package/dist/templates/cards/themes.js +10 -10
- package/dist/templates/count.js +4 -4
- package/dist/templates/data/bars.js +9 -9
- package/dist/templates/data/countdown-story.js +9 -9
- package/dist/templates/data/counters.js +9 -9
- package/dist/templates/data/donut.js +9 -9
- package/dist/templates/data/line.js +9 -9
- package/dist/templates/data/year-in-review.js +9 -9
- package/dist/templates/effects/glass-intro.js +9 -9
- package/dist/templates/effects/glass-promo.js +9 -9
- package/dist/templates/effects/grain-story.js +9 -9
- package/dist/templates/effects/grid-intro.js +9 -9
- package/dist/templates/effects/halftone-story.js +9 -9
- package/dist/templates/effects/mesh-story.js +9 -9
- package/dist/templates/effects/shader-title.js +9 -9
- package/dist/templates/email/april-fools-header.js +11 -11
- package/dist/templates/email/art-deco-invitation.js +10 -10
- package/dist/templates/email/autumn-harvest-header.js +10 -10
- package/dist/templates/email/back-to-school-header.js +10 -10
- package/dist/templates/email/black-friday-coupons-header.js +10 -10
- package/dist/templates/email/black-friday-header.js +10 -10
- package/dist/templates/email/black-friday-neon-header.js +10 -10
- package/dist/templates/email/black-friday-scratch-header.js +10 -10
- package/dist/templates/email/black-friday-ticker-header.js +10 -10
- package/dist/templates/email/broadsheet-weekly-edition-header.js +10 -10
- package/dist/templates/email/claymation-header.js +10 -10
- package/dist/templates/email/countdown-gif.js +10 -10
- package/dist/templates/email/cyberpunk-header.js +10 -10
- package/dist/templates/email/diwali-header.js +10 -10
- package/dist/templates/email/earth-day-header.js +10 -10
- package/dist/templates/email/festival-presale-electronic-header.js +12 -12
- package/dist/templates/email/festival-presale-family-header.js +12 -12
- package/dist/templates/email/festival-presale-folk-header.js +12 -12
- package/dist/templates/email/festival-presale-food-header.js +12 -12
- package/dist/templates/email/festival-presale-jazz-header.js +12 -12
- package/dist/templates/email/festival-presale-street-header.js +12 -12
- package/dist/templates/email/gothic-header.js +10 -10
- package/dist/templates/email/halloween-header.js +10 -10
- package/dist/templates/email/header-launch.js +10 -10
- package/dist/templates/email/header-newsletter.js +10 -10
- package/dist/templates/email/header-sale.js +10 -10
- package/dist/templates/email/lunar-new-year-header.js +10 -10
- package/dist/templates/email/manuscript-chronicle-header.js +10 -10
- package/dist/templates/email/new-year-header.js +10 -10
- package/dist/templates/email/noir-header.js +10 -10
- package/dist/templates/email/psychedelic-header.js +10 -10
- package/dist/templates/email/riso-zine-changelog-header.js +10 -10
- package/dist/templates/email/saas-mail-changelog.js +12 -12
- package/dist/templates/email/saas-mail-day-one.js +11 -11
- package/dist/templates/email/saas-mail-day-three.js +11 -11
- package/dist/templates/email/saas-mail-launch.js +11 -11
- package/dist/templates/email/saas-mail-payment-failed.js +11 -11
- package/dist/templates/email/saas-mail-sign-in-code.js +11 -11
- package/dist/templates/email/saas-mail-trial-ending.js +11 -11
- package/dist/templates/email/saas-mail-waitlist.js +11 -11
- package/dist/templates/email/shared.js +4 -4
- package/dist/templates/email/singles-day-header.js +10 -10
- package/dist/templates/email/solarpunk-header.js +10 -10
- package/dist/templates/email/space-opera-header.js +10 -10
- package/dist/templates/email/spring-bloom-header.js +10 -10
- package/dist/templates/email/style-bento-header.js +10 -10
- package/dist/templates/email/style-brutalist-header.js +10 -10
- package/dist/templates/email/style-dark-header.js +10 -10
- package/dist/templates/email/style-data-header.js +10 -10
- package/dist/templates/email/style-editorial-header.js +10 -10
- package/dist/templates/email/style-glass-header.js +10 -10
- package/dist/templates/email/style-gradient-header.js +10 -10
- package/dist/templates/email/style-maximal-header.js +10 -10
- package/dist/templates/email/style-pastel-header.js +10 -10
- package/dist/templates/email/style-sketch-header.js +10 -10
- package/dist/templates/email/style-swiss-header.js +10 -10
- package/dist/templates/email/style-terminal-header.js +10 -10
- package/dist/templates/email/summer-heatwave-header.js +10 -10
- package/dist/templates/email/tour-tickets-june-header.js +10 -10
- package/dist/templates/email/tour-tickets-tide-header.js +10 -10
- package/dist/templates/email/tour-tickets-wreck-header.js +10 -10
- package/dist/templates/email/transit-map-service-update.js +10 -10
- package/dist/templates/email/ukiyo-e-greeting-header.js +10 -10
- package/dist/templates/email/valentines-header.js +10 -10
- package/dist/templates/email/winter-cosy-header.js +10 -10
- package/dist/templates/email/winter-holidays-header.js +10 -10
- package/dist/templates/game/blossom-bash-puzzle.js +10 -10
- package/dist/templates/game/deckbound-roguelike.js +10 -10
- package/dist/templates/game/emberfall-rpg.js +10 -10
- package/dist/templates/game/hearthmoor-farm.js +10 -10
- package/dist/templates/game/index.js +23 -23
- package/dist/templates/game/iron-lotus-fighter.js +10 -10
- package/dist/templates/game/ironroot-rts.js +10 -10
- package/dist/templates/game/mossy-hollow-platformer.js +12 -12
- package/dist/templates/game/neon-apex-racing.js +10 -10
- package/dist/templates/game/platformer.js +11 -11
- package/dist/templates/game/pulse-riot-rhythm.js +10 -10
- package/dist/templates/game/shared.js +4 -4
- package/dist/templates/game/sprout-quest-pixel-platformer.js +12 -12
- package/dist/templates/game/vanta-fps.js +10 -10
- package/dist/templates/index.js +840 -840
- package/dist/templates/kinetic/letters.js +9 -9
- package/dist/templates/kinetic/lines.js +9 -9
- package/dist/templates/kinetic/typewriter.js +9 -9
- package/dist/templates/kinetic/word-swap.js +9 -9
- package/dist/templates/kinetic/words.js +9 -9
- package/dist/templates/kit.js +3 -3
- package/dist/templates/libraries/audio-reactive.js +9 -9
- package/dist/templates/libraries/loaders.js +9 -9
- package/dist/templates/libraries/micro-interactions.js +9 -9
- package/dist/templates/libraries/motion-essentials.js +9 -9
- package/dist/templates/libraries/toasts.js +9 -9
- package/dist/templates/lottie/ai.js +10 -10
- package/dist/templates/lottie/climate.js +10 -10
- package/dist/templates/lottie/commerce.js +10 -10
- package/dist/templates/lottie/education.js +10 -10
- package/dist/templates/lottie/fintech.js +10 -10
- package/dist/templates/lottie/food.js +10 -10
- package/dist/templates/lottie/health.js +10 -10
- package/dist/templates/lottie/index.js +34 -34
- package/dist/templates/lottie/lottie-kit.js +9 -9
- package/dist/templates/lottie/realestate.js +10 -10
- package/dist/templates/lottie/saas-ui-checklist.js +11 -11
- package/dist/templates/lottie/saas-ui-dashboard-hero.js +11 -11
- package/dist/templates/lottie/saas-ui-empty-data.js +11 -11
- package/dist/templates/lottie/saas-ui-empty-search.js +11 -11
- package/dist/templates/lottie/saas-ui-error-retry.js +11 -11
- package/dist/templates/lottie/saas-ui-file-upload.js +11 -11
- package/dist/templates/lottie/saas-ui-streaming-answer.js +11 -11
- package/dist/templates/lottie/saas-ui-sync-connected.js +11 -11
- package/dist/templates/lottie/saas-ui-trial-timeline.js +11 -11
- package/dist/templates/lottie/saas-ui-upgrade-unlocked.js +11 -11
- package/dist/templates/lottie/saas-ui.js +21 -21
- package/dist/templates/lottie/saas.js +10 -10
- package/dist/templates/lottie/security.js +10 -10
- package/dist/templates/lottie/techniques.js +10 -10
- package/dist/templates/lottie/travel.js +10 -10
- package/dist/templates/motion/ambient-loop.js +9 -9
- package/dist/templates/motion/app-icon-sting.js +9 -9
- package/dist/templates/motion/april-fools-infomercial-reel.js +11 -11
- package/dist/templates/motion/arcade-high-score.js +9 -9
- package/dist/templates/motion/art-deco-grand-opening.js +9 -9
- package/dist/templates/motion/autumn-harvest-year-reel.js +9 -9
- package/dist/templates/motion/back-to-school-timetable-reel.js +9 -9
- package/dist/templates/motion/bauhaus-launch-reel.js +9 -9
- package/dist/templates/motion/black-friday-coupons-deal-reel.js +9 -9
- package/dist/templates/motion/black-friday-coupons-last-day.js +9 -9
- package/dist/templates/motion/black-friday-deal-drop.js +9 -9
- package/dist/templates/motion/black-friday-neon-deal-reel.js +9 -9
- package/dist/templates/motion/black-friday-neon-last-day.js +9 -9
- package/dist/templates/motion/black-friday-scratch-countdown.js +9 -9
- package/dist/templates/motion/black-friday-scratch-deal-reel.js +9 -9
- package/dist/templates/motion/black-friday-scratch-last-day.js +9 -9
- package/dist/templates/motion/black-friday-ticker-deal-drop.js +9 -9
- package/dist/templates/motion/black-friday-ticker-last-call.js +9 -9
- package/dist/templates/motion/blueprint-rev-b-reel.js +9 -9
- package/dist/templates/motion/broadsheet-launch-reel.js +9 -9
- package/dist/templates/motion/broadsheet-milestone-post.js +10 -10
- package/dist/templates/motion/claymation-launch-reel.js +9 -9
- package/dist/templates/motion/comic-book-issue-reel.js +9 -9
- package/dist/templates/motion/countdown.js +9 -9
- package/dist/templates/motion/cyberpunk-lock-on-reel.js +9 -9
- package/dist/templates/motion/departure-board-reel.js +9 -9
- package/dist/templates/motion/diwali-lamps-reel.js +9 -9
- package/dist/templates/motion/earth-day-footprint-reel.js +9 -9
- package/dist/templates/motion/earth-day-pledge-post.js +9 -9
- package/dist/templates/motion/festival-presale-electronic-countdown.js +12 -12
- package/dist/templates/motion/festival-presale-electronic-lineup.js +12 -12
- package/dist/templates/motion/festival-presale-electronic-reel.js +12 -12
- package/dist/templates/motion/festival-presale-electronic-tier.js +12 -12
- package/dist/templates/motion/festival-presale-family-countdown.js +12 -12
- package/dist/templates/motion/festival-presale-family-lineup.js +12 -12
- package/dist/templates/motion/festival-presale-family-reel.js +12 -12
- package/dist/templates/motion/festival-presale-family-tier.js +12 -12
- package/dist/templates/motion/festival-presale-folk-countdown.js +12 -12
- package/dist/templates/motion/festival-presale-folk-lineup.js +12 -12
- package/dist/templates/motion/festival-presale-folk-reel.js +12 -12
- package/dist/templates/motion/festival-presale-folk-tier.js +12 -12
- package/dist/templates/motion/festival-presale-food-countdown.js +12 -12
- package/dist/templates/motion/festival-presale-food-lineup.js +12 -12
- package/dist/templates/motion/festival-presale-food-reel.js +12 -12
- package/dist/templates/motion/festival-presale-food-tier.js +12 -12
- package/dist/templates/motion/festival-presale-jazz-countdown.js +12 -12
- package/dist/templates/motion/festival-presale-jazz-lineup.js +12 -12
- package/dist/templates/motion/festival-presale-jazz-reel.js +12 -12
- package/dist/templates/motion/festival-presale-jazz-tier.js +12 -12
- package/dist/templates/motion/festival-presale-street-countdown.js +12 -12
- package/dist/templates/motion/festival-presale-street-lineup.js +12 -12
- package/dist/templates/motion/festival-presale-street-reel.js +12 -12
- package/dist/templates/motion/festival-presale-street-tier.js +12 -12
- package/dist/templates/motion/gothic-launch-reel.js +9 -9
- package/dist/templates/motion/halloween-graveyard-reel.js +9 -9
- package/dist/templates/motion/instagram-promo.js +9 -9
- package/dist/templates/motion/kinetic-headline.js +9 -9
- package/dist/templates/motion/landing-hero/index.js +12 -12
- package/dist/templates/motion/launch-trailer/document.js +840 -840
- package/dist/templates/motion/launch-trailer/index.js +12 -12
- package/dist/templates/motion/launch-trailer/scenes.js +11 -11
- package/dist/templates/motion/logo-reveal.js +9 -9
- package/dist/templates/motion/lower-third.js +9 -9
- package/dist/templates/motion/lunar-new-year-envelope-reel.js +9 -9
- package/dist/templates/motion/machined-trailer.js +11 -11
- package/dist/templates/motion/manuscript-launch-reel.js +9 -9
- package/dist/templates/motion/new-year-ball-drop-reel.js +9 -9
- package/dist/templates/motion/noir-case-reel.js +9 -9
- package/dist/templates/motion/pitch-title.js +9 -9
- package/dist/templates/motion/psychedelic-gig-reel.js +9 -9
- package/dist/templates/motion/riso-zine-launch-reel.js +9 -9
- package/dist/templates/motion/saas-ai-prompt.js +9 -9
- package/dist/templates/motion/saas-before-after.js +9 -9
- package/dist/templates/motion/saas-changelog-drop.js +9 -9
- package/dist/templates/motion/saas-film-webinar-opener.js +9 -9
- package/dist/templates/motion/saas-hook-features.js +9 -9
- package/dist/templates/motion/saas-mrr-milestone.js +9 -9
- package/dist/templates/motion/saas-screen-demo.js +9 -9
- package/dist/templates/motion/saas-store-install-ad.js +10 -10
- package/dist/templates/motion/saas-testimonial.js +9 -9
- package/dist/templates/motion/saas-vs-comparison.js +9 -9
- package/dist/templates/motion/singles-day-flash-post.js +9 -9
- package/dist/templates/motion/singles-day-live-reel.js +9 -9
- package/dist/templates/motion/smooth-loop.js +9 -9
- package/dist/templates/motion/solarpunk-rooftop-reel.js +9 -9
- package/dist/templates/motion/space-opera-countdown-reel.js +9 -9
- package/dist/templates/motion/spring-bloom-first-hundred-post.js +9 -9
- package/dist/templates/motion/spring-bloom-first-shoots-reel.js +9 -9
- package/dist/templates/motion/stat-pop.js +9 -9
- package/dist/templates/motion/style-bento-feature-demo.js +9 -9
- package/dist/templates/motion/style-bento-launch-reel.js +9 -9
- package/dist/templates/motion/style-brutalist-feature-demo.js +9 -9
- package/dist/templates/motion/style-brutalist-launch-reel.js +9 -9
- package/dist/templates/motion/style-dark-feature-demo.js +9 -9
- package/dist/templates/motion/style-dark-launch-reel.js +9 -9
- package/dist/templates/motion/style-data-feature-demo.js +9 -9
- package/dist/templates/motion/style-data-launch-reel.js +9 -9
- package/dist/templates/motion/style-editorial-feature-demo.js +9 -9
- package/dist/templates/motion/style-editorial-launch-reel.js +9 -9
- package/dist/templates/motion/style-glass-feature-demo.js +9 -9
- package/dist/templates/motion/style-glass-launch-reel.js +9 -9
- package/dist/templates/motion/style-gradient-feature-demo.js +9 -9
- package/dist/templates/motion/style-gradient-launch-reel.js +9 -9
- package/dist/templates/motion/style-maximal-beat-cut.js +9 -9
- package/dist/templates/motion/style-maximal-feature-demo.js +9 -9
- package/dist/templates/motion/style-maximal-launch-reel.js +9 -9
- package/dist/templates/motion/style-pastel-feature-demo.js +9 -9
- package/dist/templates/motion/style-pastel-launch-reel.js +9 -9
- package/dist/templates/motion/style-sketch-feature-demo.js +9 -9
- package/dist/templates/motion/style-sketch-launch-reel.js +9 -9
- package/dist/templates/motion/style-swiss-feature-demo.js +9 -9
- package/dist/templates/motion/style-swiss-launch-reel.js +9 -9
- package/dist/templates/motion/style-terminal-feature-demo.js +9 -9
- package/dist/templates/motion/style-terminal-launch-reel.js +9 -9
- package/dist/templates/motion/summer-heatwave-lido-reel.js +9 -9
- package/dist/templates/motion/template-wall.js +10 -10
- package/dist/templates/motion/title-card-3d.js +9 -9
- package/dist/templates/motion/tour-tickets-june-city.js +9 -9
- package/dist/templates/motion/tour-tickets-june-dates.js +9 -9
- package/dist/templates/motion/tour-tickets-june-final.js +9 -9
- package/dist/templates/motion/tour-tickets-june-reel.js +9 -9
- package/dist/templates/motion/tour-tickets-tide-city.js +9 -9
- package/dist/templates/motion/tour-tickets-tide-dates.js +9 -9
- package/dist/templates/motion/tour-tickets-tide-final.js +9 -9
- package/dist/templates/motion/tour-tickets-tide-reel.js +9 -9
- package/dist/templates/motion/tour-tickets-wreck-city.js +9 -9
- package/dist/templates/motion/tour-tickets-wreck-dates.js +9 -9
- package/dist/templates/motion/tour-tickets-wreck-final.js +9 -9
- package/dist/templates/motion/tour-tickets-wreck-reel.js +9 -9
- package/dist/templates/motion/transit-map-line-opening.js +9 -9
- package/dist/templates/motion/transit-map-milestone-post.js +9 -9
- package/dist/templates/motion/ukiyo-e-launch-reel.js +9 -9
- package/dist/templates/motion/valentines-breakup-reel.js +9 -9
- package/dist/templates/motion/vaporwave-launch-reel.js +10 -10
- package/dist/templates/motion/winter-cosy-heads-down-post.js +9 -9
- package/dist/templates/motion/winter-cosy-hibernation-reel.js +9 -9
- package/dist/templates/motion/winter-holidays-advent-reel.js +9 -9
- package/dist/templates/motion-qa.js +5 -5
- package/dist/templates/motion3d/app-store-preview.js +10 -10
- package/dist/templates/motion3d/before-after-swing.js +10 -10
- package/dist/templates/motion3d/burger-reveal.js +10 -10
- package/dist/templates/motion3d/coverflow.js +10 -10
- package/dist/templates/motion3d/exploded-ui.js +10 -10
- package/dist/templates/motion3d/feature-flip.js +10 -10
- package/dist/templates/motion3d/kinetic-reveal.js +10 -10
- package/dist/templates/motion3d/laptop-reveal.js +10 -10
- package/dist/templates/motion3d/logo-extrude.js +10 -10
- package/dist/templates/motion3d/parallax-cascade.js +10 -10
- package/dist/templates/motion3d/phone-orbit.js +10 -10
- package/dist/templates/motion3d/pricing-fan.js +10 -10
- package/dist/templates/motion3d/product-turntable.js +10 -10
- package/dist/templates/motion3d/saas-film-cinematic-trailer.js +11 -11
- package/dist/templates/motion3d/screen-wall.js +10 -10
- package/dist/templates/motion3d/stage.js +4 -4
- package/dist/templates/motion3d/vertical-promo.js +10 -10
- package/dist/templates/music/edm-drop.js +10 -10
- package/dist/templates/music/festival-lineup.js +10 -10
- package/dist/templates/music/hiphop-lyrics.js +10 -10
- package/dist/templates/music/indie-poster.js +10 -10
- package/dist/templates/music/lofi-loop.js +10 -10
- package/dist/templates/music/podcast-audiogram.js +10 -10
- package/dist/templates/music/shared.js +4 -4
- package/dist/templates/music/synthwave-tunnel.js +10 -10
- package/dist/templates/print/comic-hero-cascade.js +9 -9
- package/dist/templates/print/comic-hero-chase.js +9 -9
- package/dist/templates/print/comic-hero-cover-modern.js +9 -9
- package/dist/templates/print/comic-hero-grid-break.js +9 -9
- package/dist/templates/print/comic-hero-interrogation.js +9 -9
- package/dist/templates/print/comic-hero-issue.js +20 -20
- package/dist/templates/print/comic-hero-manga-action.js +9 -9
- package/dist/templates/print/comic-hero-nested.js +9 -9
- package/dist/templates/print/comic-hero-overlap.js +9 -9
- package/dist/templates/print/comic-hero-parallel.js +9 -9
- package/dist/templates/print/comic-hero-pinup.js +9 -9
- package/dist/templates/print/comic-hero-widescreen.js +9 -9
- package/dist/templates/print/comic-modern-action-slant.js +9 -9
- package/dist/templates/print/comic-modern-cover-pulp.js +9 -9
- package/dist/templates/print/comic-modern-flashback.js +9 -9
- package/dist/templates/print/comic-modern-issue.js +18 -18
- package/dist/templates/print/comic-modern-nine-grid.js +9 -9
- package/dist/templates/print/comic-modern-page-classic.js +9 -9
- package/dist/templates/print/comic-modern-polyptych.js +9 -9
- package/dist/templates/print/comic-modern-radial.js +9 -9
- package/dist/templates/print/comic-modern-splash.js +9 -9
- package/dist/templates/print/comic-modern-spread.js +9 -9
- package/dist/templates/print/everyday-save-the-date.js +9 -9
- package/dist/templates/print/everyday-specials-board.js +9 -9
- package/dist/templates/print/holidays-christmas-church-newsletter.js +9 -9
- package/dist/templates/print/holidays-christmas-eve-invitation.js +9 -9
- package/dist/templates/print/holidays-christmas-gift-tags.js +9 -9
- package/dist/templates/print/holidays-diwali-party-invitation.js +9 -9
- package/dist/templates/print/holidays-easter-activity-sheet.js +9 -9
- package/dist/templates/print/holidays-easter-egg-hunt-flyer.js +9 -9
- package/dist/templates/print/holidays-eid-dinner-invitation.js +9 -9
- package/dist/templates/print/holidays-eid-gift-tags.js +9 -9
- package/dist/templates/print/holidays-halloween-party-invitation.js +9 -9
- package/dist/templates/print/holidays-halloween-treat-labels.js +9 -9
- package/dist/templates/print/holidays-halloween-trunk-or-treat-poster.js +9 -9
- package/dist/templates/print/holidays-hanukkah-activity-sheet.js +9 -9
- package/dist/templates/print/holidays-hanukkah-party-invitation.js +9 -9
- package/dist/templates/print/holidays-lunar-new-year-banquet-menu.js +9 -9
- package/dist/templates/print/holidays-new-years-eve-poster.js +9 -9
- package/dist/templates/print/holidays-thanksgiving-dinner-menu.js +9 -9
- package/dist/templates/print/holidays-thanksgiving-place-cards.js +9 -9
- package/dist/templates/print/holidays-valentines-dinner-menu.js +9 -9
- package/dist/templates/print/printshop-booklet-open-day.js +10 -10
- package/dist/templates/print/printshop-brochure-community.js +10 -10
- package/dist/templates/print/printshop-brochure-dental.js +10 -10
- package/dist/templates/print/printshop-brochure-gym.js +10 -10
- package/dist/templates/print/printshop-brochure-landscaping.js +10 -10
- package/dist/templates/print/printshop-brochure-travel.js +11 -11
- package/dist/templates/print/printshop-card-architect.js +10 -10
- package/dist/templates/print/printshop-card-barber.js +10 -10
- package/dist/templates/print/printshop-card-cafe.js +10 -10
- package/dist/templates/print/printshop-card-developer.js +10 -10
- package/dist/templates/print/printshop-card-florist.js +10 -10
- package/dist/templates/print/printshop-card-lawyer.js +10 -10
- package/dist/templates/print/printshop-card-photographer.js +11 -11
- package/dist/templates/print/printshop-card-plumber.js +10 -10
- package/dist/templates/print/printshop-card-realtor.js +10 -10
- package/dist/templates/print/printshop-card-yoga.js +10 -10
- package/dist/templates/print/printshop-flyer-charity-run.js +10 -10
- package/dist/templates/print/printshop-flyer-farmers-market.js +10 -10
- package/dist/templates/print/printshop-flyer-garage-sale.js +10 -10
- package/dist/templates/print/printshop-flyer-grand-opening.js +10 -10
- package/dist/templates/print/printshop-flyer-lost-pet.js +10 -10
- package/dist/templates/print/printshop-flyer-tutoring.js +10 -10
- package/dist/templates/print/printshop-flyer-yard-work.js +10 -10
- package/dist/templates/print/printshop-poster-live-music.js +10 -10
- package/dist/templates/print/studio-class-timetable-poster.js +9 -9
- package/dist/templates/print/studio-portfolio-booklet.js +10 -10
- package/dist/templates/saas/email-decks-shared.js +10 -10
- package/dist/templates/saas/email-decks.js +22 -22
- package/dist/templates/saas/index.js +196 -196
- package/dist/templates/saas/launch-kit.js +18 -18
- package/dist/templates/saas/launch-video.js +17 -17
- package/dist/templates/saas/lottie-shared.js +10 -10
- package/dist/templates/saas/stores-shared.js +4 -4
- package/dist/templates/saas/stores.js +20 -20
- package/dist/templates/saas/style-bento.js +19 -19
- package/dist/templates/saas/style-brutalist.js +19 -19
- package/dist/templates/saas/style-dark.js +19 -19
- package/dist/templates/saas/style-data.js +19 -19
- package/dist/templates/saas/style-editorial.js +19 -19
- package/dist/templates/saas/style-glass.js +19 -19
- package/dist/templates/saas/style-gradient.js +19 -19
- package/dist/templates/saas/style-maximal.js +20 -20
- package/dist/templates/saas/style-pastel.js +19 -19
- package/dist/templates/saas/style-sketch.js +19 -19
- package/dist/templates/saas/style-swiss.js +19 -19
- package/dist/templates/saas/style-terminal.js +19 -19
- package/dist/templates/saas/video.js +17 -17
- package/dist/templates/saas/web.js +21 -21
- package/dist/templates/scenes/before-after.js +9 -9
- package/dist/templates/scenes/carousel-video.js +10 -10
- package/dist/templates/scenes/saas-film-app-preview.js +10 -10
- package/dist/templates/scenes/saas-film-bright-trailer.js +10 -10
- package/dist/templates/scenes/saas-film-product-hunt-launch.js +10 -10
- package/dist/templates/scenes/saas-film-youtube-demo-kit.js +10 -10
- package/dist/templates/scenes/shared.js +4 -4
- package/dist/templates/scenes/story-ad.js +10 -10
- package/dist/templates/scenes/story-bakery.js +10 -10
- package/dist/templates/scenes/story-fitness.js +10 -10
- package/dist/templates/scenes/story-hotel.js +10 -10
- package/dist/templates/scenes/transitions-pack.js +10 -10
- package/dist/templates/scenes/web-scroll.js +10 -10
- package/dist/templates/slides/agenda.js +10 -10
- package/dist/templates/slides/deck.js +9 -9
- package/dist/templates/slides/education.js +10 -10
- package/dist/templates/slides/launch.js +10 -10
- package/dist/templates/slides/layouts.js +10 -10
- package/dist/templates/slides/pitch.js +10 -10
- package/dist/templates/slides/report.js +10 -10
- package/dist/templates/slides/saas-mail-investor-update.js +11 -11
- package/dist/templates/slides/saas-mail-seed-pitch.js +11 -11
- package/dist/templates/slides/sales.js +10 -10
- package/dist/templates/slides/section-divider.js +10 -10
- package/dist/templates/slides/title-card.js +10 -10
- package/dist/templates/slides/training.js +10 -10
- package/dist/templates/slides/webinar.js +10 -10
- package/dist/templates/slideshow/adoption.js +11 -11
- package/dist/templates/slideshow/baby.js +11 -11
- package/dist/templates/slideshow/birthday.js +11 -11
- package/dist/templates/slideshow/graduation.js +11 -11
- package/dist/templates/slideshow/holiday.js +11 -11
- package/dist/templates/slideshow/home.js +11 -11
- package/dist/templates/slideshow/index.js +18 -18
- package/dist/templates/slideshow/lease.js +11 -11
- package/dist/templates/slideshow/memorial.js +11 -11
- package/dist/templates/slideshow/portfolio.js +11 -11
- package/dist/templates/slideshow/product.js +11 -11
- package/dist/templates/slideshow/recipe.js +11 -11
- package/dist/templates/slideshow/shared.js +10 -10
- package/dist/templates/slideshow/team.js +11 -11
- package/dist/templates/slideshow/travel.js +11 -11
- package/dist/templates/slideshow/wedding.js +11 -11
- package/dist/templates/slideshow/year.js +11 -11
- package/dist/templates/social/april-fools-link-preview.js +11 -11
- package/dist/templates/social/april-fools-price-slash-post.js +11 -11
- package/dist/templates/social/arcade-boss-fight.js +9 -9
- package/dist/templates/social/arcade-level-up.js +9 -9
- package/dist/templates/social/art-deco-link-preview.js +9 -9
- package/dist/templates/social/art-deco-premiere-post.js +9 -9
- package/dist/templates/social/autumn-harvest-link-preview.js +9 -9
- package/dist/templates/social/autumn-harvest-thanks-post.js +9 -9
- package/dist/templates/social/back-to-school-link-preview.js +9 -9
- package/dist/templates/social/back-to-school-report-card-post.js +9 -9
- package/dist/templates/social/bauhaus-drift-post.js +9 -9
- package/dist/templates/social/bauhaus-link-preview.js +9 -9
- package/dist/templates/social/bauhaus-pricing-post.js +9 -9
- package/dist/templates/social/black-friday-ads.js +9 -9
- package/dist/templates/social/black-friday-countdown.js +9 -9
- package/dist/templates/social/black-friday-coupons-ads.js +9 -9
- package/dist/templates/social/black-friday-coupons-countdown.js +9 -9
- package/dist/templates/social/black-friday-neon-ads.js +9 -9
- package/dist/templates/social/black-friday-neon-countdown.js +9 -9
- package/dist/templates/social/black-friday-scratch-ads.js +9 -9
- package/dist/templates/social/black-friday-ticker-ads.js +9 -9
- package/dist/templates/social/black-friday-ticker-countdown.js +9 -9
- package/dist/templates/social/blueprint-dimension-post.js +9 -9
- package/dist/templates/social/blueprint-link-preview.js +9 -9
- package/dist/templates/social/blueprint-parts-list-post.js +9 -9
- package/dist/templates/social/broadsheet-hiring-classifieds.js +9 -9
- package/dist/templates/social/broadsheet-link-preview.js +9 -9
- package/dist/templates/social/claymation-link-preview.js +9 -9
- package/dist/templates/social/claymation-streak-post.js +9 -9
- package/dist/templates/social/comic-book-cover-preview.js +9 -9
- package/dist/templates/social/comic-book-strip-post.js +9 -9
- package/dist/templates/social/cyberpunk-implant-post.js +9 -9
- package/dist/templates/social/cyberpunk-link-preview.js +9 -9
- package/dist/templates/social/departure-board-pass-ad.js +9 -9
- package/dist/templates/social/departure-board-store-set.js +9 -9
- package/dist/templates/social/departure-board-thanks-post.js +9 -9
- package/dist/templates/social/diwali-link-preview.js +9 -9
- package/dist/templates/social/diwali-thanks-post.js +9 -9
- package/dist/templates/social/earth-day-link-preview.js +9 -9
- package/dist/templates/social/everyday-save-the-date-post.js +9 -9
- package/dist/templates/social/festival-presale-electronic-ads.js +12 -12
- package/dist/templates/social/festival-presale-family-ads.js +12 -12
- package/dist/templates/social/festival-presale-folk-ads.js +12 -12
- package/dist/templates/social/festival-presale-food-ads.js +12 -12
- package/dist/templates/social/festival-presale-jazz-ads.js +12 -12
- package/dist/templates/social/festival-presale-street-ads.js +12 -12
- package/dist/templates/social/gothic-feature-post.js +9 -9
- package/dist/templates/social/gothic-link-preview.js +9 -9
- package/dist/templates/social/halloween-link-preview.js +9 -9
- package/dist/templates/social/halloween-offer-post.js +9 -9
- package/dist/templates/social/holidays-diwali-sweet-shop-post.js +9 -9
- package/dist/templates/social/holidays-lunar-new-year-bakery-post.js +9 -9
- package/dist/templates/social/holidays-new-years-eve-shop-hours.js +9 -9
- package/dist/templates/social/holidays-thanksgiving-pie-orders-post.js +9 -9
- package/dist/templates/social/holidays-valentines-florist-post.js +9 -9
- package/dist/templates/social/lunar-new-year-greeting-post.js +9 -9
- package/dist/templates/social/lunar-new-year-link-preview.js +9 -9
- package/dist/templates/social/machined-link-preview.js +11 -11
- package/dist/templates/social/machined-plate-post.js +11 -11
- package/dist/templates/social/manuscript-chapter-post.js +9 -9
- package/dist/templates/social/manuscript-link-preview.js +9 -9
- package/dist/templates/social/new-year-link-preview.js +9 -9
- package/dist/templates/social/new-year-resolutions-post.js +9 -9
- package/dist/templates/social/noir-case-file.js +9 -9
- package/dist/templates/social/noir-feature-post.js +9 -9
- package/dist/templates/social/post-announcement.js +9 -9
- package/dist/templates/social/post-event.js +9 -9
- package/dist/templates/social/post-podcast.js +9 -9
- package/dist/templates/social/post-quote.js +9 -9
- package/dist/templates/social/post-sale.js +9 -9
- package/dist/templates/social/post-stat.js +9 -9
- package/dist/templates/social/post-testimonial.js +9 -9
- package/dist/templates/social/promo-announcement.js +9 -9
- package/dist/templates/social/promo-beat-drop.js +9 -9
- package/dist/templates/social/promo-event.js +9 -9
- package/dist/templates/social/promo-new-product.js +9 -9
- package/dist/templates/social/promo-quote-reveal.js +9 -9
- package/dist/templates/social/promo-sale-drop.js +9 -9
- package/dist/templates/social/promo-tip-list.js +9 -9
- package/dist/templates/social/psychedelic-lineup-post.js +9 -9
- package/dist/templates/social/psychedelic-link-preview.js +9 -9
- package/dist/templates/social/riso-zine-link-preview.js +9 -9
- package/dist/templates/social/riso-zine-mrr-poster.js +9 -9
- package/dist/templates/social/saas-kit-carousel.js +9 -9
- package/dist/templates/social/saas-kit-countdown-post.js +9 -9
- package/dist/templates/social/saas-kit-feature-drop.js +9 -9
- package/dist/templates/social/saas-kit-link-preview.js +9 -9
- package/dist/templates/social/saas-kit-live-post.js +9 -9
- package/dist/templates/social/saas-kit-mrr-card.js +9 -9
- package/dist/templates/social/saas-kit-ph-gallery.js +9 -9
- package/dist/templates/social/saas-kit-ph-thumb.js +9 -9
- package/dist/templates/social/saas-kit-youtube-thumbs.js +9 -9
- package/dist/templates/social/saas-store-b2b-ads.js +10 -10
- package/dist/templates/social/saas-store-caption-set.js +10 -10
- package/dist/templates/social/saas-store-chrome-kit.js +10 -10
- package/dist/templates/social/saas-store-ipad-set.js +10 -10
- package/dist/templates/social/saas-store-panorama.js +11 -11
- package/dist/templates/social/saas-store-play-kit.js +9 -9
- package/dist/templates/social/saas-store-story.js +10 -10
- package/dist/templates/social/singles-day-link-preview.js +9 -9
- package/dist/templates/social/solarpunk-impact-post.js +9 -9
- package/dist/templates/social/solarpunk-link-preview.js +9 -9
- package/dist/templates/social/space-opera-link-preview.js +9 -9
- package/dist/templates/social/space-opera-mission-patch-post.js +9 -9
- package/dist/templates/social/spring-bloom-link-preview.js +9 -9
- package/dist/templates/social/studio-class-timetable.js +9 -9
- package/dist/templates/social/studio-podcast-cover.js +9 -9
- package/dist/templates/social/style-bento-announcement.js +9 -9
- package/dist/templates/social/style-bento-link-preview.js +9 -9
- package/dist/templates/social/style-bento-milestone.js +9 -9
- package/dist/templates/social/style-bento-testimonial.js +9 -9
- package/dist/templates/social/style-brutalist-announcement.js +9 -9
- package/dist/templates/social/style-brutalist-link-preview.js +9 -9
- package/dist/templates/social/style-brutalist-milestone.js +9 -9
- package/dist/templates/social/style-brutalist-testimonial.js +9 -9
- package/dist/templates/social/style-dark-announcement.js +9 -9
- package/dist/templates/social/style-dark-link-preview.js +9 -9
- package/dist/templates/social/style-dark-milestone.js +9 -9
- package/dist/templates/social/style-dark-testimonial.js +9 -9
- package/dist/templates/social/style-data-announcement.js +9 -9
- package/dist/templates/social/style-data-link-preview.js +9 -9
- package/dist/templates/social/style-data-milestone.js +9 -9
- package/dist/templates/social/style-data-testimonial.js +9 -9
- package/dist/templates/social/style-editorial-announcement.js +9 -9
- package/dist/templates/social/style-editorial-link-preview.js +9 -9
- package/dist/templates/social/style-editorial-milestone.js +9 -9
- package/dist/templates/social/style-editorial-testimonial.js +9 -9
- package/dist/templates/social/style-glass-announcement.js +9 -9
- package/dist/templates/social/style-glass-link-preview.js +9 -9
- package/dist/templates/social/style-glass-milestone.js +9 -9
- package/dist/templates/social/style-glass-testimonial.js +9 -9
- package/dist/templates/social/style-gradient-announcement.js +9 -9
- package/dist/templates/social/style-gradient-link-preview.js +9 -9
- package/dist/templates/social/style-gradient-milestone.js +9 -9
- package/dist/templates/social/style-gradient-testimonial.js +9 -9
- package/dist/templates/social/style-maximal-announcement.js +9 -9
- package/dist/templates/social/style-maximal-link-preview.js +9 -9
- package/dist/templates/social/style-maximal-milestone.js +9 -9
- package/dist/templates/social/style-maximal-testimonial.js +9 -9
- package/dist/templates/social/style-pastel-announcement.js +9 -9
- package/dist/templates/social/style-pastel-link-preview.js +9 -9
- package/dist/templates/social/style-pastel-milestone.js +9 -9
- package/dist/templates/social/style-pastel-testimonial.js +9 -9
- package/dist/templates/social/style-sketch-announcement.js +9 -9
- package/dist/templates/social/style-sketch-link-preview.js +9 -9
- package/dist/templates/social/style-sketch-milestone.js +9 -9
- package/dist/templates/social/style-sketch-testimonial.js +9 -9
- package/dist/templates/social/style-swiss-announcement.js +9 -9
- package/dist/templates/social/style-swiss-link-preview.js +9 -9
- package/dist/templates/social/style-swiss-milestone.js +9 -9
- package/dist/templates/social/style-swiss-testimonial.js +9 -9
- package/dist/templates/social/style-terminal-announcement.js +9 -9
- package/dist/templates/social/style-terminal-link-preview.js +9 -9
- package/dist/templates/social/style-terminal-milestone.js +9 -9
- package/dist/templates/social/style-terminal-testimonial.js +9 -9
- package/dist/templates/social/summer-heatwave-link-preview.js +9 -9
- package/dist/templates/social/summer-heatwave-lolly-post.js +9 -9
- package/dist/templates/social/tour-tickets-june-ads.js +9 -9
- package/dist/templates/social/tour-tickets-tide-ads.js +9 -9
- package/dist/templates/social/tour-tickets-wreck-ads.js +9 -9
- package/dist/templates/social/transit-map-link-preview.js +9 -9
- package/dist/templates/social/ukiyo-e-link-preview.js +9 -9
- package/dist/templates/social/ukiyo-e-spike-post.js +9 -9
- package/dist/templates/social/valentines-link-preview.js +9 -9
- package/dist/templates/social/valentines-poem-post.js +9 -9
- package/dist/templates/social/vaporwave-feature-drop.js +9 -9
- package/dist/templates/social/vaporwave-link-preview.js +9 -9
- package/dist/templates/social/winter-cosy-link-preview.js +9 -9
- package/dist/templates/social/winter-holidays-link-preview.js +9 -9
- package/dist/templates/social/winter-holidays-thanks-post.js +9 -9
- package/dist/templates/stings/line-reveal.js +9 -9
- package/dist/templates/stings/sting-blur.js +9 -9
- package/dist/templates/stings/sting-pop.js +9 -9
- package/dist/templates/stings/sting-rise.js +9 -9
- package/dist/templates/stings/sting-shimmer.js +9 -9
- package/dist/templates/stings/word-swap.js +9 -9
- package/dist/templates/text/stat-counter.js +9 -9
- package/dist/templates/text/word-quote.js +9 -9
- package/dist/templates/themes/april-fools-shared.js +5 -5
- package/dist/templates/themes/april-fools.js +16 -16
- package/dist/templates/themes/arcade.js +13 -13
- package/dist/templates/themes/art-deco.js +15 -15
- package/dist/templates/themes/autumn-harvest.js +15 -15
- package/dist/templates/themes/back-to-school.js +15 -15
- package/dist/templates/themes/bauhaus.js +14 -14
- package/dist/templates/themes/black-friday-coupons.js +16 -16
- package/dist/templates/themes/black-friday-neon.js +16 -16
- package/dist/templates/themes/black-friday-scratch.js +16 -16
- package/dist/templates/themes/black-friday-ticker.js +16 -16
- package/dist/templates/themes/black-friday.js +15 -15
- package/dist/templates/themes/blueprint.js +14 -14
- package/dist/templates/themes/broadsheet.js +16 -16
- package/dist/templates/themes/claymation.js +15 -15
- package/dist/templates/themes/comic-book.js +23 -23
- package/dist/templates/themes/comic-hero.js +21 -21
- package/dist/templates/themes/comic-indie.js +9 -9
- package/dist/templates/themes/cyberpunk.js +15 -15
- package/dist/templates/themes/departure-board.js +14 -14
- package/dist/templates/themes/diwali.js +15 -15
- package/dist/templates/themes/earth-day.js +15 -15
- package/dist/templates/themes/everyday.js +16 -16
- package/dist/templates/themes/festival-presale-electronic-kit.js +11 -11
- package/dist/templates/themes/festival-presale-family-a-shared.js +10 -10
- package/dist/templates/themes/festival-presale-family-a.js +35 -35
- package/dist/templates/themes/festival-presale-family-b-shared.js +10 -10
- package/dist/templates/themes/festival-presale-family-b.js +35 -35
- package/dist/templates/themes/festival-presale-family-kit.js +11 -11
- package/dist/templates/themes/festival-presale-folk-kit.js +11 -11
- package/dist/templates/themes/festival-presale-food-kit.js +11 -11
- package/dist/templates/themes/festival-presale-jazz-kit.js +11 -11
- package/dist/templates/themes/festival-presale-street-kit.js +11 -11
- package/dist/templates/themes/festival-presale.js +15 -15
- package/dist/templates/themes/gothic.js +15 -15
- package/dist/templates/themes/halloween.js +15 -15
- package/dist/templates/themes/holidays.js +32 -32
- package/dist/templates/themes/index.js +433 -433
- package/dist/templates/themes/lunar-new-year.js +15 -15
- package/dist/templates/themes/machined-shared.js +5 -5
- package/dist/templates/themes/machined.js +15 -15
- package/dist/templates/themes/manuscript.js +15 -15
- package/dist/templates/themes/memories.js +19 -19
- package/dist/templates/themes/new-year.js +15 -15
- package/dist/templates/themes/noir.js +15 -15
- package/dist/templates/themes/printshop-shared.js +4 -4
- package/dist/templates/themes/printshop.js +35 -35
- package/dist/templates/themes/psychedelic.js +15 -15
- package/dist/templates/themes/riso-zine.js +15 -15
- package/dist/templates/themes/singles-day.js +15 -15
- package/dist/templates/themes/solarpunk.js +15 -15
- package/dist/templates/themes/space-opera.js +15 -15
- package/dist/templates/themes/spring-bloom.js +15 -15
- package/dist/templates/themes/studio.js +15 -15
- package/dist/templates/themes/summer-heatwave.js +15 -15
- package/dist/templates/themes/tour-tickets.js +34 -34
- package/dist/templates/themes/transit-map.js +15 -15
- package/dist/templates/themes/ukiyo-e.js +15 -15
- package/dist/templates/themes/valentines.js +15 -15
- package/dist/templates/themes/vaporwave.js +14 -14
- package/dist/templates/themes/winter-cosy.js +15 -15
- package/dist/templates/themes/winter-holidays.js +15 -15
- package/dist/templates/video/youtube-chapter.js +9 -9
- package/dist/templates/video/youtube-end-screen.js +9 -9
- package/dist/templates/video/youtube-intro.js +9 -9
- package/dist/templates/video/youtube-subscribe.js +9 -9
- package/dist/templates/web/app-ui.js +5 -5
- package/dist/templates/web/april-fools-landing.js +11 -11
- package/dist/templates/web/arcade-landing.js +9 -9
- package/dist/templates/web/art-deco-landing.js +9 -9
- package/dist/templates/web/autumn-harvest-landing.js +9 -9
- package/dist/templates/web/back-to-school-landing.js +9 -9
- package/dist/templates/web/bauhaus-landing.js +9 -9
- package/dist/templates/web/black-friday-coupons-landing.js +9 -9
- package/dist/templates/web/black-friday-landing.js +9 -9
- package/dist/templates/web/black-friday-neon-landing.js +9 -9
- package/dist/templates/web/black-friday-scratch-landing.js +9 -9
- package/dist/templates/web/black-friday-ticker-landing.js +9 -9
- package/dist/templates/web/blog-post.js +9 -9
- package/dist/templates/web/blueprint-landing.js +9 -9
- package/dist/templates/web/broadsheet-landing.js +9 -9
- package/dist/templates/web/claymation-landing.js +9 -9
- package/dist/templates/web/comic-book-landing.js +9 -9
- package/dist/templates/web/coming-soon-page.js +10 -10
- package/dist/templates/web/coming-soon.js +9 -9
- package/dist/templates/web/contact.js +10 -10
- package/dist/templates/web/cyberpunk-landing.js +9 -9
- package/dist/templates/web/daybreak-app.js +11 -11
- package/dist/templates/web/departure-board-download.js +9 -9
- package/dist/templates/web/diwali-landing.js +9 -9
- package/dist/templates/web/earth-day-landing.js +9 -9
- package/dist/templates/web/everyday-cafe.js +9 -9
- package/dist/templates/web/everyday-hotel.js +9 -9
- package/dist/templates/web/everyday-wedding.js +10 -10
- package/dist/templates/web/festival-presale-electronic.js +9 -9
- package/dist/templates/web/festival-presale-family.js +9 -9
- package/dist/templates/web/festival-presale-folk.js +9 -9
- package/dist/templates/web/festival-presale-food.js +9 -9
- package/dist/templates/web/festival-presale-jazz.js +9 -9
- package/dist/templates/web/festival-presale-street.js +9 -9
- package/dist/templates/web/forms.js +4 -4
- package/dist/templates/web/gothic-landing.js +9 -9
- package/dist/templates/web/halloween-landing.js +9 -9
- package/dist/templates/web/hero-animated.js +9 -9
- package/dist/templates/web/kindling-app.js +11 -11
- package/dist/templates/web/launch-waitlist.js +10 -10
- package/dist/templates/web/lunar-new-year-landing.js +9 -9
- package/dist/templates/web/machined-hero.js +11 -11
- package/dist/templates/web/manuscript-landing.js +9 -9
- package/dist/templates/web/marginalia-app.js +11 -11
- package/dist/templates/web/new-year-landing.js +9 -9
- package/dist/templates/web/noir-landing.js +9 -9
- package/dist/templates/web/page-404.js +9 -9
- package/dist/templates/web/portfolio-architect.js +11 -11
- package/dist/templates/web/portfolio-art.js +4 -4
- package/dist/templates/web/portfolio-card-deck.js +11 -11
- package/dist/templates/web/portfolio-case-folio.js +11 -11
- package/dist/templates/web/portfolio-cube-gallery.js +11 -11
- package/dist/templates/web/portfolio-depth-tunnel.js +11 -11
- package/dist/templates/web/portfolio-editorial.js +11 -11
- package/dist/templates/web/portfolio-flip-wall.js +11 -11
- package/dist/templates/web/portfolio-index-list.js +11 -11
- package/dist/templates/web/portfolio-photographer.js +11 -11
- package/dist/templates/web/portfolio-reel-carousel.js +11 -11
- package/dist/templates/web/portfolio-shared.js +5 -5
- package/dist/templates/web/portfolio-sketchbook.js +11 -11
- package/dist/templates/web/portfolio-studio-grid.js +11 -11
- package/dist/templates/web/portfolio.js +9 -9
- package/dist/templates/web/portfolios.js +23 -23
- package/dist/templates/web/potluck-app.js +11 -11
- package/dist/templates/web/pricing-toggle.js +9 -9
- package/dist/templates/web/product-page.js +9 -9
- package/dist/templates/web/psychedelic-landing.js +9 -9
- package/dist/templates/web/riso-zine-landing.js +9 -9
- package/dist/templates/web/rsvp-invite.js +10 -10
- package/dist/templates/web/saas-ai-landing.js +9 -9
- package/dist/templates/web/saas-app-download.js +9 -9
- package/dist/templates/web/saas-case-study.js +9 -9
- package/dist/templates/web/saas-changelog.js +9 -9
- package/dist/templates/web/saas-comparison.js +9 -9
- package/dist/templates/web/saas-data-landing.js +9 -9
- package/dist/templates/web/saas-dev-landing.js +9 -9
- package/dist/templates/web/saas-indie-landing.js +9 -9
- package/dist/templates/web/saas-integrations.js +9 -9
- package/dist/templates/web/saas-security.js +9 -9
- package/dist/templates/web/saas-signup.js +9 -9
- package/dist/templates/web/saas-waitlist.js +9 -9
- package/dist/templates/web/saffron-app.js +11 -11
- package/dist/templates/web/shop-art.js +4 -4
- package/dist/templates/web/shop-bloom.js +13 -13
- package/dist/templates/web/shop-circuit.js +13 -13
- package/dist/templates/web/shop-fieldwork.js +13 -13
- package/dist/templates/web/shop-greenhouse.js +13 -13
- package/dist/templates/web/shop-kiln.js +13 -13
- package/dist/templates/web/shop-marginalia.js +13 -13
- package/dist/templates/web/shop-ode.js +13 -13
- package/dist/templates/web/shop-shared.js +7 -7
- package/dist/templates/web/shop-static.js +13 -13
- package/dist/templates/web/shop-summit.js +13 -13
- package/dist/templates/web/shops.js +22 -22
- package/dist/templates/web/singles-day-landing.js +9 -9
- package/dist/templates/web/solarpunk-landing.js +9 -9
- package/dist/templates/web/space-opera-landing.js +9 -9
- package/dist/templates/web/spring-bloom-landing.js +9 -9
- package/dist/templates/web/studio-careers.js +9 -9
- package/dist/templates/web/style-bento-landing.js +9 -9
- package/dist/templates/web/style-bento-pricing.js +9 -9
- package/dist/templates/web/style-brutalist-landing.js +9 -9
- package/dist/templates/web/style-brutalist-pricing.js +9 -9
- package/dist/templates/web/style-dark-landing.js +9 -9
- package/dist/templates/web/style-dark-pricing.js +9 -9
- package/dist/templates/web/style-data-landing.js +9 -9
- package/dist/templates/web/style-data-pricing.js +9 -9
- package/dist/templates/web/style-editorial-landing.js +9 -9
- package/dist/templates/web/style-editorial-pricing.js +9 -9
- package/dist/templates/web/style-glass-landing.js +9 -9
- package/dist/templates/web/style-glass-pricing.js +9 -9
- package/dist/templates/web/style-gradient-landing.js +9 -9
- package/dist/templates/web/style-gradient-pricing.js +9 -9
- package/dist/templates/web/style-maximal-landing.js +9 -9
- package/dist/templates/web/style-maximal-pricing.js +9 -9
- package/dist/templates/web/style-pastel-landing.js +9 -9
- package/dist/templates/web/style-pastel-pricing.js +9 -9
- package/dist/templates/web/style-sketch-landing.js +9 -9
- package/dist/templates/web/style-sketch-pricing.js +9 -9
- package/dist/templates/web/style-swiss-landing.js +9 -9
- package/dist/templates/web/style-swiss-pricing.js +9 -9
- package/dist/templates/web/style-terminal-landing.js +9 -9
- package/dist/templates/web/style-terminal-pricing.js +9 -9
- package/dist/templates/web/summer-heatwave-landing.js +9 -9
- package/dist/templates/web/tempo-app.js +11 -11
- package/dist/templates/web/tour-tickets-june-landing.js +9 -9
- package/dist/templates/web/tour-tickets-tide-landing.js +9 -9
- package/dist/templates/web/tour-tickets-wreck-landing.js +9 -9
- package/dist/templates/web/transit-map-landing.js +9 -9
- package/dist/templates/web/ukiyo-e-landing.js +9 -9
- package/dist/templates/web/valentines-landing.js +9 -9
- package/dist/templates/web/vaporwave-landing.js +9 -9
- package/dist/templates/web/wayfarer-app.js +11 -11
- package/dist/templates/web/winter-cosy-landing.js +9 -9
- package/dist/templates/web/winter-holidays-landing.js +9 -9
- package/package.json +1 -1
- package/dist/chunks/agent-DVKYZ5MR.js +0 -44
- package/dist/chunks/api-7ZHHFXRP.js +0 -29
- package/dist/chunks/build-V7TZZISP.js +0 -59
- package/dist/chunks/builtin-VDSMLZXH.js +0 -117
- package/dist/chunks/buy-credits-424PQFK4.js +0 -78
- package/dist/chunks/check-template-E5WVEJ54.js +0 -2429
- package/dist/chunks/chunk-23ONSBQK.js +0 -94
- package/dist/chunks/chunk-24NAWTFQ.js +0 -122
- package/dist/chunks/chunk-25RJV3AM.js +0 -192
- package/dist/chunks/chunk-26LSQLPP.js +0 -70
- package/dist/chunks/chunk-2A7CSKLR.js +0 -63
- package/dist/chunks/chunk-2AFLJDPS.js +0 -41
- package/dist/chunks/chunk-2EOU2VLT.js +0 -360
- package/dist/chunks/chunk-2GWYRJ4K.js +0 -52
- package/dist/chunks/chunk-2KFBPBMG.js +0 -93
- package/dist/chunks/chunk-2KG5R53C.js +0 -147
- package/dist/chunks/chunk-2KGABKPI.js +0 -120
- package/dist/chunks/chunk-2KGG4UPG.js +0 -261
- package/dist/chunks/chunk-2N52ZJZV.js +0 -190
- package/dist/chunks/chunk-2PU4UGO3.js +0 -358
- package/dist/chunks/chunk-2QRQR55M.js +0 -163
- package/dist/chunks/chunk-2RLMD3TC.js +0 -38
- package/dist/chunks/chunk-2RRO775B.js +0 -137
- package/dist/chunks/chunk-2RZLH466.js +0 -150
- package/dist/chunks/chunk-2SII45GT.js +0 -163
- package/dist/chunks/chunk-2SVH2YCJ.js +0 -157
- package/dist/chunks/chunk-2T7RZCMU.js +0 -267
- package/dist/chunks/chunk-2TPA3MCV.js +0 -327
- package/dist/chunks/chunk-2U4EHRPO.js +0 -199
- package/dist/chunks/chunk-2UHAMOGA.js +0 -337
- package/dist/chunks/chunk-2WI3BGLN.js +0 -103
- package/dist/chunks/chunk-2XBJCSOO.js +0 -257
- package/dist/chunks/chunk-2XY5PCK4.js +0 -65
- package/dist/chunks/chunk-2ZLSHOH3.js +0 -157
- package/dist/chunks/chunk-32BYICSP.js +0 -110
- package/dist/chunks/chunk-347XRJP2.js +0 -143
- package/dist/chunks/chunk-34S2PZSC.js +0 -242
- package/dist/chunks/chunk-34TFBLSU.js +0 -146
- package/dist/chunks/chunk-36Q5NCTF.js +0 -130
- package/dist/chunks/chunk-36UIND4N.js +0 -391
- package/dist/chunks/chunk-3ADQEI7R.js +0 -131
- package/dist/chunks/chunk-3B62W7T7.js +0 -33
- package/dist/chunks/chunk-3B6VNU7U.js +0 -95
- package/dist/chunks/chunk-3EOISKED.js +0 -95
- package/dist/chunks/chunk-3FS3Y2QU.js +0 -222
- package/dist/chunks/chunk-3FXAZAFC.js +0 -86
- package/dist/chunks/chunk-3IOEEXGA.js +0 -102
- package/dist/chunks/chunk-3JTFAFJO.js +0 -187
- package/dist/chunks/chunk-3LXIB4FO.js +0 -102
- package/dist/chunks/chunk-3LYBDPNO.js +0 -191
- package/dist/chunks/chunk-3MGMOKKA.js +0 -145
- package/dist/chunks/chunk-3O377M6N.js +0 -23
- package/dist/chunks/chunk-3PEERL4O.js +0 -135
- package/dist/chunks/chunk-3QZUOPWM.js +0 -170
- package/dist/chunks/chunk-3SZHLUH6.js +0 -152
- package/dist/chunks/chunk-3TJIDN3Z.js +0 -110
- package/dist/chunks/chunk-3Z72XBI4.js +0 -206
- package/dist/chunks/chunk-3ZMEO7QD.js +0 -204
- package/dist/chunks/chunk-43VFO2WG.js +0 -112
- package/dist/chunks/chunk-44EIZO34.js +0 -33
- package/dist/chunks/chunk-467R6DMA.js +0 -80
- package/dist/chunks/chunk-46GPUEX4.js +0 -396
- package/dist/chunks/chunk-4BYUGLLD.js +0 -147
- package/dist/chunks/chunk-4FAMEZZA.js +0 -85
- package/dist/chunks/chunk-4H5AETMO.js +0 -151
- package/dist/chunks/chunk-4HTP57IE.js +0 -133
- package/dist/chunks/chunk-4JBIVIT6.js +0 -685
- package/dist/chunks/chunk-4JKJWQCR.js +0 -234
- package/dist/chunks/chunk-4KJJVCKE.js +0 -188
- package/dist/chunks/chunk-4MBQ55NG.js +0 -94
- package/dist/chunks/chunk-4QD23RJO.js +0 -76
- package/dist/chunks/chunk-4RFKXI2Y.js +0 -162
- package/dist/chunks/chunk-4SD7TX7R.js +0 -422
- package/dist/chunks/chunk-4SPJEVG6.js +0 -1975
- package/dist/chunks/chunk-4UBGLJ4C.js +0 -221
- package/dist/chunks/chunk-4UOS4MBL.js +0 -149
- package/dist/chunks/chunk-4US4UKUJ.js +0 -303
- package/dist/chunks/chunk-4VOGX2KO.js +0 -108
- package/dist/chunks/chunk-4VVDQRDB.js +0 -240
- package/dist/chunks/chunk-4WNIQ37Z.js +0 -80
- package/dist/chunks/chunk-4X6EJSI4.js +0 -23
- package/dist/chunks/chunk-4XOXQFMB.js +0 -118
- package/dist/chunks/chunk-4YCO6BVM.js +0 -95
- package/dist/chunks/chunk-524RSKF3.js +0 -198
- package/dist/chunks/chunk-52M4YNBI.js +0 -329
- package/dist/chunks/chunk-557EBRZ7.js +0 -1393
- package/dist/chunks/chunk-55GF4ENM.js +0 -94
- package/dist/chunks/chunk-55PKBILS.js +0 -79
- package/dist/chunks/chunk-5AZRCYP5.js +0 -181
- package/dist/chunks/chunk-5B7MJCBR.js +0 -33
- package/dist/chunks/chunk-5DJMUILS.js +0 -155
- package/dist/chunks/chunk-5H2SEPN6.js +0 -103
- package/dist/chunks/chunk-5HIBULR6.js +0 -156
- package/dist/chunks/chunk-5HLJ5RDN.js +0 -150
- package/dist/chunks/chunk-5HVOF5QD.js +0 -81
- package/dist/chunks/chunk-5JGZ6QQR.js +0 -73
- package/dist/chunks/chunk-5KNAKBS4.js +0 -115
- package/dist/chunks/chunk-5L5XUQOR.js +0 -559
- package/dist/chunks/chunk-5O7S2BXL.js +0 -161
- package/dist/chunks/chunk-5OMGMI5K.js +0 -78
- package/dist/chunks/chunk-5OUH2ONV.js +0 -261
- package/dist/chunks/chunk-5QDHDFU5.js +0 -60
- package/dist/chunks/chunk-5S2P5UVZ.js +0 -164
- package/dist/chunks/chunk-5SVFCWRP.js +0 -10426
- package/dist/chunks/chunk-5T3BVAWK.js +0 -297
- package/dist/chunks/chunk-5T3QXDGH.js +0 -304
- package/dist/chunks/chunk-5TCMTZ5Q.js +0 -85
- package/dist/chunks/chunk-5UL4QSMQ.js +0 -99
- package/dist/chunks/chunk-5XX2YBP5.js +0 -84
- package/dist/chunks/chunk-5Y4DB5QJ.js +0 -83
- package/dist/chunks/chunk-5ZUEHGGH.js +0 -91
- package/dist/chunks/chunk-634IWDAF.js +0 -78
- package/dist/chunks/chunk-63IYVVVW.js +0 -45
- package/dist/chunks/chunk-644TO36C.js +0 -165
- package/dist/chunks/chunk-65AJ53HK.js +0 -23
- package/dist/chunks/chunk-67SKM6ZG.js +0 -126
- package/dist/chunks/chunk-6ASFQPHD.js +0 -23
- package/dist/chunks/chunk-6B72OPZN.js +0 -326
- package/dist/chunks/chunk-6C4NK5DL.js +0 -23
- package/dist/chunks/chunk-6CDA5QIN.js +0 -45
- package/dist/chunks/chunk-6DSXLIZF.js +0 -33
- package/dist/chunks/chunk-6EZZUEUY.js +0 -45
- package/dist/chunks/chunk-6FP7TU2Q.js +0 -78
- package/dist/chunks/chunk-6G6DHM7L.js +0 -92
- package/dist/chunks/chunk-6HN7A3BP.js +0 -334
- package/dist/chunks/chunk-6HQI4NQA.js +0 -28
- package/dist/chunks/chunk-6JDCOWE5.js +0 -111
- package/dist/chunks/chunk-6JUGZ4PO.js +0 -23
- package/dist/chunks/chunk-6JZYFK5H.js +0 -1403
- package/dist/chunks/chunk-6KLF4Q7V.js +0 -81
- package/dist/chunks/chunk-6KPGKEAF.js +0 -120
- package/dist/chunks/chunk-6LHJH6EB.js +0 -89
- package/dist/chunks/chunk-6PNFGU7K.js +0 -110
- package/dist/chunks/chunk-6R3FGNRO.js +0 -122
- package/dist/chunks/chunk-6T2G6QFQ.js +0 -45
- package/dist/chunks/chunk-6TAEM3M7.js +0 -301
- package/dist/chunks/chunk-6UBW66QC.js +0 -65
- package/dist/chunks/chunk-6USMFQVX.js +0 -107
- package/dist/chunks/chunk-6VNKVPYX.js +0 -33
- package/dist/chunks/chunk-6WDPTQ3B.js +0 -139
- package/dist/chunks/chunk-6WML55KC.js +0 -33
- package/dist/chunks/chunk-6XB7RA3T.js +0 -274
- package/dist/chunks/chunk-6ZNX35XU.js +0 -105
- package/dist/chunks/chunk-76FJWVGD.js +0 -45
- package/dist/chunks/chunk-76LMSTUZ.js +0 -149
- package/dist/chunks/chunk-76UVL5W3.js +0 -135
- package/dist/chunks/chunk-777OZHEF.js +0 -488
- package/dist/chunks/chunk-7A5PWALR.js +0 -198
- package/dist/chunks/chunk-7BCGIVCP.js +0 -80
- package/dist/chunks/chunk-7BXDM2HR.js +0 -63
- package/dist/chunks/chunk-7CI6L3JQ.js +0 -589
- package/dist/chunks/chunk-7CIQTF7J.js +0 -170
- package/dist/chunks/chunk-7COGRJKW.js +0 -55
- package/dist/chunks/chunk-7DPPA6RW.js +0 -149
- package/dist/chunks/chunk-7EZNSXD2.js +0 -72
- package/dist/chunks/chunk-7IH7U6KU.js +0 -10257
- package/dist/chunks/chunk-7JJKFUCB.js +0 -49
- package/dist/chunks/chunk-7K7OTFNK.js +0 -23
- package/dist/chunks/chunk-7NHZQLR6.js +0 -93
- package/dist/chunks/chunk-7OG2FLAR.js +0 -97
- package/dist/chunks/chunk-7P3UJT32.js +0 -97
- package/dist/chunks/chunk-7P5VIPWT.js +0 -47
- package/dist/chunks/chunk-7PFIMSOB.js +0 -46
- package/dist/chunks/chunk-7SMURRFY.js +0 -45
- package/dist/chunks/chunk-7U6NAIO6.js +0 -94
- package/dist/chunks/chunk-7W7ZLTGN.js +0 -92
- package/dist/chunks/chunk-7WYOWXNS.js +0 -23
- package/dist/chunks/chunk-7Y3IKMHP.js +0 -115
- package/dist/chunks/chunk-A2C4AK22.js +0 -74
- package/dist/chunks/chunk-A335UZVR.js +0 -44
- package/dist/chunks/chunk-A3B76TSF.js +0 -87
- package/dist/chunks/chunk-A4DTITBR.js +0 -131
- package/dist/chunks/chunk-A4TQGKBI.js +0 -202
- package/dist/chunks/chunk-A5XHCDUO.js +0 -79
- package/dist/chunks/chunk-A6W7JTGD.js +0 -23
- package/dist/chunks/chunk-AA5YM2FB.js +0 -79
- package/dist/chunks/chunk-ABA3OYOG.js +0 -53
- package/dist/chunks/chunk-ABFIUNUH.js +0 -71
- package/dist/chunks/chunk-ADAMYMMZ.js +0 -90
- package/dist/chunks/chunk-AEEWD2JG.js +0 -50
- package/dist/chunks/chunk-AEYBTYR3.js +0 -33
- package/dist/chunks/chunk-AIKCTDG3.js +0 -197
- package/dist/chunks/chunk-AJETOQCJ.js +0 -163
- package/dist/chunks/chunk-AKPQQY3L.js +0 -76
- package/dist/chunks/chunk-AKWF4XQS.js +0 -210
- package/dist/chunks/chunk-AKXSEZGM.js +0 -70
- package/dist/chunks/chunk-ALKR5MO6.js +0 -163
- package/dist/chunks/chunk-ARIUPUQE.js +0 -165
- package/dist/chunks/chunk-ASQXCWOG.js +0 -189
- package/dist/chunks/chunk-AUWPHJMT.js +0 -108
- package/dist/chunks/chunk-AUXCUJ7M.js +0 -57
- package/dist/chunks/chunk-AVBULXMP.js +0 -33
- package/dist/chunks/chunk-AVFAE6AJ.js +0 -172
- package/dist/chunks/chunk-AZSED7O4.js +0 -84
- package/dist/chunks/chunk-B255NNEM.js +0 -95
- package/dist/chunks/chunk-B3T5F3XJ.js +0 -33
- package/dist/chunks/chunk-B3YW4URQ.js +0 -75
- package/dist/chunks/chunk-B4CS3E2G.js +0 -290
- package/dist/chunks/chunk-B54LJN6V.js +0 -169
- package/dist/chunks/chunk-B5CKTEBU.js +0 -150
- package/dist/chunks/chunk-B5I2QT6C.js +0 -146
- package/dist/chunks/chunk-B5XPLQ7E.js +0 -162
- package/dist/chunks/chunk-B756VFX7.js +0 -86
- package/dist/chunks/chunk-B7SWM3MM.js +0 -261
- package/dist/chunks/chunk-BA4XVIWE.js +0 -112
- package/dist/chunks/chunk-BBN7V4GO.js +0 -86
- package/dist/chunks/chunk-BBVQRUYG.js +0 -151
- package/dist/chunks/chunk-BDHJN46M.js +0 -149
- package/dist/chunks/chunk-BDVSRWUF.js +0 -36
- package/dist/chunks/chunk-BENTHLML.js +0 -23
- package/dist/chunks/chunk-BFFWZYAP.js +0 -100
- package/dist/chunks/chunk-BFHR4B3H.js +0 -53
- package/dist/chunks/chunk-BGWA7UNQ.js +0 -139
- package/dist/chunks/chunk-BHNBZO6Q.js +0 -150
- package/dist/chunks/chunk-BHXAJVKJ.js +0 -209
- package/dist/chunks/chunk-BI67XGQN.js +0 -133
- package/dist/chunks/chunk-BIAD67BC.js +0 -122
- package/dist/chunks/chunk-BKOLU4XB.js +0 -7928
- package/dist/chunks/chunk-BLQTQVPR.js +0 -42
- package/dist/chunks/chunk-BMOCH5WY.js +0 -87
- package/dist/chunks/chunk-BMQGNTF6.js +0 -23
- package/dist/chunks/chunk-BOB2YMZM.js +0 -231
- package/dist/chunks/chunk-BOJ6VBMG.js +0 -345
- package/dist/chunks/chunk-BPFG3XRP.js +0 -274
- package/dist/chunks/chunk-BQPVCGWA.js +0 -33
- package/dist/chunks/chunk-BRLGH2BR.js +0 -251
- package/dist/chunks/chunk-BRQVH3QS.js +0 -153
- package/dist/chunks/chunk-BRQYNY4H.js +0 -320
- package/dist/chunks/chunk-BSP63DQK.js +0 -33
- package/dist/chunks/chunk-BTKGEGZA.js +0 -123
- package/dist/chunks/chunk-BTYVW4F4.js +0 -113
- package/dist/chunks/chunk-BUBULGFL.js +0 -154
- package/dist/chunks/chunk-C24FT77T.js +0 -71
- package/dist/chunks/chunk-C3ANIMIQ.js +0 -225
- package/dist/chunks/chunk-C3VQEWUT.js +0 -139
- package/dist/chunks/chunk-C5UHPSVV.js +0 -103
- package/dist/chunks/chunk-CAXY5E2Y.js +0 -1574
- package/dist/chunks/chunk-CBDM6BXF.js +0 -145
- package/dist/chunks/chunk-CBULGY3J.js +0 -336
- package/dist/chunks/chunk-CCGTXDYB.js +0 -344
- package/dist/chunks/chunk-CDB36YC4.js +0 -278
- package/dist/chunks/chunk-CEBWZCAK.js +0 -185
- package/dist/chunks/chunk-CFXN3Y3T.js +0 -30
- package/dist/chunks/chunk-CG3YIGBC.js +0 -399
- package/dist/chunks/chunk-CGLEDXCZ.js +0 -119
- package/dist/chunks/chunk-CIPTK55J.js +0 -330
- package/dist/chunks/chunk-CS4CIUVU.js +0 -102
- package/dist/chunks/chunk-CT27J6NQ.js +0 -118
- package/dist/chunks/chunk-CVI6TPUL.js +0 -55
- package/dist/chunks/chunk-CVLZ3RIG.js +0 -256
- package/dist/chunks/chunk-CW772K4H.js +0 -123
- package/dist/chunks/chunk-CXUWHB53.js +0 -120
- package/dist/chunks/chunk-CYKVEGCQ.js +0 -43
- package/dist/chunks/chunk-CYXS7XJ6.js +0 -220
- package/dist/chunks/chunk-CZ7D2RLD.js +0 -262
- package/dist/chunks/chunk-D2PIQ6WC.js +0 -194
- package/dist/chunks/chunk-D3T632YD.js +0 -23
- package/dist/chunks/chunk-D4IA4DVE.js +0 -161
- package/dist/chunks/chunk-DCFJIT66.js +0 -100
- package/dist/chunks/chunk-DCOTTTDP.js +0 -287
- package/dist/chunks/chunk-DFO5V7UC.js +0 -192
- package/dist/chunks/chunk-DFTBZAEV.js +0 -105
- package/dist/chunks/chunk-DG4GJ4ID.js +0 -180
- package/dist/chunks/chunk-DHRSSPLC.js +0 -108
- package/dist/chunks/chunk-DINZCSMO.js +0 -64
- package/dist/chunks/chunk-DJ5TVHAZ.js +0 -120
- package/dist/chunks/chunk-DJKBIKRQ.js +0 -97
- package/dist/chunks/chunk-DJR5KELZ.js +0 -122
- package/dist/chunks/chunk-DK7YVPCQ.js +0 -100
- package/dist/chunks/chunk-DKNDMDZY.js +0 -101
- package/dist/chunks/chunk-DNJPZONK.js +0 -1469
- package/dist/chunks/chunk-DPHENFYO.js +0 -198
- package/dist/chunks/chunk-DQFRLBLP.js +0 -49
- package/dist/chunks/chunk-DR72HAL6.js +0 -260
- package/dist/chunks/chunk-DSCXHYJC.js +0 -106
- package/dist/chunks/chunk-DSP5UAF2.js +0 -180
- package/dist/chunks/chunk-DTQAONWB.js +0 -50
- package/dist/chunks/chunk-DUSQALBK.js +0 -100
- package/dist/chunks/chunk-DXRAJ7KL.js +0 -152
- package/dist/chunks/chunk-DXSCJ7IF.js +0 -161
- package/dist/chunks/chunk-DXYRUREP.js +0 -166
- package/dist/chunks/chunk-DZOPRSVL.js +0 -84
- package/dist/chunks/chunk-E2DVLX5X.js +0 -194
- package/dist/chunks/chunk-E3XYLCIO.js +0 -208
- package/dist/chunks/chunk-E5QMN4JN.js +0 -33
- package/dist/chunks/chunk-E6KBQYQH.js +0 -182
- package/dist/chunks/chunk-EGAD65KC.js +0 -136
- package/dist/chunks/chunk-EHAY3DCX.js +0 -23
- package/dist/chunks/chunk-EKD3R3EC.js +0 -262
- package/dist/chunks/chunk-ELPRKB4N.js +0 -331
- package/dist/chunks/chunk-ELQ4F4XX.js +0 -237
- package/dist/chunks/chunk-EM7UGTTN.js +0 -122
- package/dist/chunks/chunk-EO3EJIEL.js +0 -113
- package/dist/chunks/chunk-EPNMCJIJ.js +0 -276
- package/dist/chunks/chunk-ETL2YO7N.js +0 -93
- package/dist/chunks/chunk-EUJNZORD.js +0 -111
- package/dist/chunks/chunk-EUX42XIE.js +0 -33
- package/dist/chunks/chunk-EVHS2HJM.js +0 -33
- package/dist/chunks/chunk-F3Y22GO2.js +0 -155
- package/dist/chunks/chunk-F4OZ33XD.js +0 -71
- package/dist/chunks/chunk-F5DOFUPE.js +0 -283
- package/dist/chunks/chunk-F6VBHYFT.js +0 -201
- package/dist/chunks/chunk-F7IMDEGH.js +0 -66
- package/dist/chunks/chunk-FANPV6ZH.js +0 -140
- package/dist/chunks/chunk-FBRRNKDZ.js +0 -298
- package/dist/chunks/chunk-FC4YO2PA.js +0 -83
- package/dist/chunks/chunk-FGZTACVO.js +0 -51
- package/dist/chunks/chunk-FHFOOUWR.js +0 -159
- package/dist/chunks/chunk-FHVMELHZ.js +0 -255
- package/dist/chunks/chunk-FI2HB6Q6.js +0 -266
- package/dist/chunks/chunk-FINX2SQF.js +0 -87
- package/dist/chunks/chunk-FJSJT5ZM.js +0 -199
- package/dist/chunks/chunk-FKDNRZPL.js +0 -157
- package/dist/chunks/chunk-FLTZ3GCL.js +0 -156
- package/dist/chunks/chunk-FMB4MA2B.js +0 -45
- package/dist/chunks/chunk-FMC3QQWM.js +0 -358
- package/dist/chunks/chunk-FMWUXVVS.js +0 -210
- package/dist/chunks/chunk-FNK25UH2.js +0 -178
- package/dist/chunks/chunk-FQLHVKWY.js +0 -135
- package/dist/chunks/chunk-FR2GTFTD.js +0 -235
- package/dist/chunks/chunk-FRU7TTGC.js +0 -117
- package/dist/chunks/chunk-FSC2CTL7.js +0 -237
- package/dist/chunks/chunk-FSOPB7T4.js +0 -174
- package/dist/chunks/chunk-FUWP3W5O.js +0 -78
- package/dist/chunks/chunk-FV3VU7MX.js +0 -23
- package/dist/chunks/chunk-FVK5VSSQ.js +0 -121
- package/dist/chunks/chunk-FW4HEEHJ.js +0 -224
- package/dist/chunks/chunk-FXZI6ADA.js +0 -103
- package/dist/chunks/chunk-FYZ5P5VY.js +0 -265
- package/dist/chunks/chunk-FZWRGTWY.js +0 -23
- package/dist/chunks/chunk-G36PNNUY.js +0 -273
- package/dist/chunks/chunk-G3MWCNMS.js +0 -146
- package/dist/chunks/chunk-G4RI6NQP.js +0 -115
- package/dist/chunks/chunk-G4TC3CCS.js +0 -23
- package/dist/chunks/chunk-G5DZYR3M.js +0 -503
- package/dist/chunks/chunk-G7HMICPW.js +0 -161
- package/dist/chunks/chunk-G7SDTK2H.js +0 -23
- package/dist/chunks/chunk-G7Y6ZQX3.js +0 -45
- package/dist/chunks/chunk-GAIRO2NJ.js +0 -96
- package/dist/chunks/chunk-GAUTQGM5.js +0 -45
- package/dist/chunks/chunk-GBVTDYAF.js +0 -47
- package/dist/chunks/chunk-GDHNJ4QN.js +0 -106
- package/dist/chunks/chunk-GE2KCETG.js +0 -226
- package/dist/chunks/chunk-GHPOA4U6.js +0 -142
- package/dist/chunks/chunk-GIGVW2MD.js +0 -166
- package/dist/chunks/chunk-GJKRIZX5.js +0 -33
- package/dist/chunks/chunk-GNV3K2JP.js +0 -249
- package/dist/chunks/chunk-GOQ4KMFS.js +0 -207
- package/dist/chunks/chunk-GOQJHCRE.js +0 -173
- package/dist/chunks/chunk-GOSIV7RD.js +0 -129
- package/dist/chunks/chunk-GRGAJ6EH.js +0 -191
- package/dist/chunks/chunk-GSC7YIM2.js +0 -366
- package/dist/chunks/chunk-GTNZHSJF.js +0 -167
- package/dist/chunks/chunk-GVM534Y6.js +0 -170
- package/dist/chunks/chunk-GW7HXWCX.js +0 -293
- package/dist/chunks/chunk-H2TWIYTN.js +0 -121
- package/dist/chunks/chunk-H3IUU76T.js +0 -106
- package/dist/chunks/chunk-H3KQVFYY.js +0 -30
- package/dist/chunks/chunk-H4OSLAKJ.js +0 -90
- package/dist/chunks/chunk-H4R7Q3JX.js +0 -52
- package/dist/chunks/chunk-H7SPP77S.js +0 -197
- package/dist/chunks/chunk-H7YGE3R7.js +0 -263
- package/dist/chunks/chunk-HCCFAONP.js +0 -107
- package/dist/chunks/chunk-HGYALUFC.js +0 -80
- package/dist/chunks/chunk-HHQKTKGE.js +0 -181
- package/dist/chunks/chunk-HITM7INM.js +0 -255
- package/dist/chunks/chunk-HJ3ZDMRJ.js +0 -121
- package/dist/chunks/chunk-HLVE6ZDA.js +0 -196
- package/dist/chunks/chunk-HLVEWSLU.js +0 -74
- package/dist/chunks/chunk-HMD6ECIY.js +0 -42
- package/dist/chunks/chunk-HMEC7MPK.js +0 -312
- package/dist/chunks/chunk-HN336KPK.js +0 -23
- package/dist/chunks/chunk-HP6RNLTV.js +0 -112
- package/dist/chunks/chunk-HPRVVT2H.js +0 -69
- package/dist/chunks/chunk-HREHDGKN.js +0 -260
- package/dist/chunks/chunk-HSMDJL4D.js +0 -153
- package/dist/chunks/chunk-HTBI566G.js +0 -224
- package/dist/chunks/chunk-HURQNWWD.js +0 -33
- package/dist/chunks/chunk-HW3NGQOE.js +0 -111
- package/dist/chunks/chunk-HXYXCYQM.js +0 -198
- package/dist/chunks/chunk-HZ5EH4IJ.js +0 -189
- package/dist/chunks/chunk-HZZDCHNF.js +0 -1136
- package/dist/chunks/chunk-I3MR4VKO.js +0 -36
- package/dist/chunks/chunk-I45KYFQN.js +0 -23
- package/dist/chunks/chunk-I57GDXZX.js +0 -98
- package/dist/chunks/chunk-I5DPZ25R.js +0 -122
- package/dist/chunks/chunk-I6UURRMJ.js +0 -160
- package/dist/chunks/chunk-I7BZF2HS.js +0 -23
- package/dist/chunks/chunk-IAKD6WPI.js +0 -95
- package/dist/chunks/chunk-IBSTGGMO.js +0 -33
- package/dist/chunks/chunk-IEQT5WFB.js +0 -152
- package/dist/chunks/chunk-IFNI5VNR.js +0 -217
- package/dist/chunks/chunk-IGEZPEJ4.js +0 -183
- package/dist/chunks/chunk-IHQLO4WN.js +0 -250
- package/dist/chunks/chunk-IJ3YU4NR.js +0 -23
- package/dist/chunks/chunk-IJ4Q6ZVT.js +0 -105
- package/dist/chunks/chunk-IKWAEBU2.js +0 -242
- package/dist/chunks/chunk-IMCWTIU6.js +0 -77
- package/dist/chunks/chunk-IMI7BOMR.js +0 -183
- package/dist/chunks/chunk-INIEMZBZ.js +0 -224
- package/dist/chunks/chunk-INKJK7SI.js +0 -77
- package/dist/chunks/chunk-INW4AUNL.js +0 -33
- package/dist/chunks/chunk-IPD7GH5U.js +0 -204
- package/dist/chunks/chunk-IPEWB63V.js +0 -152
- package/dist/chunks/chunk-IQEU5I2S.js +0 -86
- package/dist/chunks/chunk-IQMR2KZD.js +0 -23
- package/dist/chunks/chunk-IRIDJCAQ.js +0 -77
- package/dist/chunks/chunk-IRMJHNK2.js +0 -176
- package/dist/chunks/chunk-ISEOM3HP.js +0 -198
- package/dist/chunks/chunk-ISNAXQQ4.js +0 -163
- package/dist/chunks/chunk-ISWTMBZ6.js +0 -171
- package/dist/chunks/chunk-IT6S6BTR.js +0 -462
- package/dist/chunks/chunk-IULG6LZE.js +0 -135
- package/dist/chunks/chunk-IV26QDN3.js +0 -110
- package/dist/chunks/chunk-IVR35OZ7.js +0 -155
- package/dist/chunks/chunk-IWIXE6FA.js +0 -33
- package/dist/chunks/chunk-IX5G7CRV.js +0 -114
- package/dist/chunks/chunk-J27RMNCX.js +0 -23
- package/dist/chunks/chunk-J4ST6WFS.js +0 -109
- package/dist/chunks/chunk-J5FOW6DL.js +0 -95
- package/dist/chunks/chunk-J5YRK7JK.js +0 -127
- package/dist/chunks/chunk-J7GC5ASC.js +0 -104
- package/dist/chunks/chunk-JA4KM5VZ.js +0 -165
- package/dist/chunks/chunk-JBIDHKS4.js +0 -23
- package/dist/chunks/chunk-JBLDKCUA.js +0 -266
- package/dist/chunks/chunk-JFCAYKSE.js +0 -159
- package/dist/chunks/chunk-JFVXV4WH.js +0 -225
- package/dist/chunks/chunk-JG5INSME.js +0 -152
- package/dist/chunks/chunk-JHREHDJ3.js +0 -153
- package/dist/chunks/chunk-JIX5QI7I.js +0 -33
- package/dist/chunks/chunk-JJQDEOJI.js +0 -80
- package/dist/chunks/chunk-JK7WZKG2.js +0 -106
- package/dist/chunks/chunk-JMZ3VLBK.js +0 -175
- package/dist/chunks/chunk-JO4UHFBI.js +0 -209
- package/dist/chunks/chunk-JOUHQ5HK.js +0 -200
- package/dist/chunks/chunk-JQCELRPW.js +0 -140
- package/dist/chunks/chunk-JSZHQ2WS.js +0 -165
- package/dist/chunks/chunk-JUXVB43R.js +0 -898
- package/dist/chunks/chunk-JW3V25LF.js +0 -89
- package/dist/chunks/chunk-K23YIUMN.js +0 -122
- package/dist/chunks/chunk-K3KY5ROZ.js +0 -232
- package/dist/chunks/chunk-K3ZDMJKH.js +0 -95
- package/dist/chunks/chunk-K4R2DBX5.js +0 -115
- package/dist/chunks/chunk-K5NRAGZU.js +0 -80
- package/dist/chunks/chunk-KBCXFWJQ.js +0 -206
- package/dist/chunks/chunk-KBE6O7WG.js +0 -279
- package/dist/chunks/chunk-KBTKWQQA.js +0 -147
- package/dist/chunks/chunk-KDOFXVBW.js +0 -247
- package/dist/chunks/chunk-KEUBR7L6.js +0 -142
- package/dist/chunks/chunk-KFJW5Z33.js +0 -156
- package/dist/chunks/chunk-KGCNKGCQ.js +0 -33
- package/dist/chunks/chunk-KGRCNZNB.js +0 -71
- package/dist/chunks/chunk-KGT34R7C.js +0 -185
- package/dist/chunks/chunk-KGVA7O3Y.js +0 -282
- package/dist/chunks/chunk-KHMVSGY2.js +0 -215
- package/dist/chunks/chunk-KI2P2KLL.js +0 -626
- package/dist/chunks/chunk-KI4L6QQZ.js +0 -36
- package/dist/chunks/chunk-KKWGFVHW.js +0 -146
- package/dist/chunks/chunk-KN46GQ35.js +0 -131
- package/dist/chunks/chunk-KNTQDMAI.js +0 -209
- package/dist/chunks/chunk-KOEJ4KWY.js +0 -39
- package/dist/chunks/chunk-KPSUZWRJ.js +0 -74
- package/dist/chunks/chunk-KREMQG6R.js +0 -81
- package/dist/chunks/chunk-KSIUOHJF.js +0 -277
- package/dist/chunks/chunk-KWUXHRXD.js +0 -401
- package/dist/chunks/chunk-KXAYARPX.js +0 -209
- package/dist/chunks/chunk-KYI2XREF.js +0 -567
- package/dist/chunks/chunk-KYOK6DTH.js +0 -327
- package/dist/chunks/chunk-L45U6H7D.js +0 -175
- package/dist/chunks/chunk-L5AG5NRB.js +0 -244
- package/dist/chunks/chunk-L5CCLHQJ.js +0 -138
- package/dist/chunks/chunk-L5DTT5DC.js +0 -1314
- package/dist/chunks/chunk-L5GRJVFJ.js +0 -738
- package/dist/chunks/chunk-L7WHCTAX.js +0 -197
- package/dist/chunks/chunk-LBSIXPRK.js +0 -161
- package/dist/chunks/chunk-LBUIFKSU.js +0 -117
- package/dist/chunks/chunk-LLDNI4Z2.js +0 -106
- package/dist/chunks/chunk-LM6IVHXJ.js +0 -252
- package/dist/chunks/chunk-LMIBSCFX.js +0 -48
- package/dist/chunks/chunk-LMYV7IR4.js +0 -174
- package/dist/chunks/chunk-LPO5QAGQ.js +0 -102
- package/dist/chunks/chunk-LQ4U2VP3.js +0 -108
- package/dist/chunks/chunk-LQGD7LVP.js +0 -92
- package/dist/chunks/chunk-LXOEG6DU.js +0 -87
- package/dist/chunks/chunk-LZM6P74O.js +0 -23
- package/dist/chunks/chunk-M36FRWT7.js +0 -83
- package/dist/chunks/chunk-M3JQ3L5B.js +0 -169
- package/dist/chunks/chunk-M4TS6IIX.js +0 -282
- package/dist/chunks/chunk-M4YHQ66Z.js +0 -124
- package/dist/chunks/chunk-M5C3HTFN.js +0 -104
- package/dist/chunks/chunk-M6CJEQCL.js +0 -103
- package/dist/chunks/chunk-M6DLAUGL.js +0 -23
- package/dist/chunks/chunk-MBFGAZJI.js +0 -287
- package/dist/chunks/chunk-MFUYUPER.js +0 -96
- package/dist/chunks/chunk-MGAVAMGQ.js +0 -138
- package/dist/chunks/chunk-MGBDSJH3.js +0 -98
- package/dist/chunks/chunk-MGEVDT4Q.js +0 -90
- package/dist/chunks/chunk-MJDMS6HH.js +0 -206
- package/dist/chunks/chunk-MM5JDLOX.js +0 -149
- package/dist/chunks/chunk-MMM32LWN.js +0 -23
- package/dist/chunks/chunk-MOD6AAAC.js +0 -84
- package/dist/chunks/chunk-MOMLOMH2.js +0 -115
- package/dist/chunks/chunk-MPDEDFGO.js +0 -163
- package/dist/chunks/chunk-MPTPQISP.js +0 -109
- package/dist/chunks/chunk-MQ73SYLV.js +0 -938
- package/dist/chunks/chunk-MSCJDY3J.js +0 -33
- package/dist/chunks/chunk-MSMPLXQU.js +0 -128
- package/dist/chunks/chunk-MSOCJXH7.js +0 -80
- package/dist/chunks/chunk-MV5SHQ5S.js +0 -127
- package/dist/chunks/chunk-MYBZXKKP.js +0 -226
- package/dist/chunks/chunk-NB3LFQ5O.js +0 -238
- package/dist/chunks/chunk-NBKNCUIN.js +0 -141
- package/dist/chunks/chunk-NFMTUZC7.js +0 -91
- package/dist/chunks/chunk-NH75YACH.js +0 -351
- package/dist/chunks/chunk-NHELNUSY.js +0 -777
- package/dist/chunks/chunk-NHO3BOCF.js +0 -84
- package/dist/chunks/chunk-NIHVBDAP.js +0 -86
- package/dist/chunks/chunk-NKH34Q2W.js +0 -112
- package/dist/chunks/chunk-NMGZFXPW.js +0 -250
- package/dist/chunks/chunk-NMKRZENT.js +0 -45
- package/dist/chunks/chunk-NP72M5SK.js +0 -179
- package/dist/chunks/chunk-NPREAEII.js +0 -66
- package/dist/chunks/chunk-NQEZKJS2.js +0 -172
- package/dist/chunks/chunk-NQPNGZ3C.js +0 -118
- package/dist/chunks/chunk-NS6WDQ3X.js +0 -160
- package/dist/chunks/chunk-NZDX4PLS.js +0 -102
- package/dist/chunks/chunk-O3E62UHX.js +0 -177
- package/dist/chunks/chunk-O4QB6TQY.js +0 -155
- package/dist/chunks/chunk-O5IZVX4M.js +0 -77
- package/dist/chunks/chunk-O5OVVAEE.js +0 -55
- package/dist/chunks/chunk-O5SES2U2.js +0 -140
- package/dist/chunks/chunk-OAJEZSI6.js +0 -299
- package/dist/chunks/chunk-OBRPX34P.js +0 -125
- package/dist/chunks/chunk-ODBPSYXX.js +0 -62
- package/dist/chunks/chunk-ODM6DFGO.js +0 -564
- package/dist/chunks/chunk-ODWZO53Z.js +0 -204
- package/dist/chunks/chunk-OEGV632I.js +0 -33
- package/dist/chunks/chunk-OFRIJYEZ.js +0 -94
- package/dist/chunks/chunk-OGRQV545.js +0 -147
- package/dist/chunks/chunk-OGVID4DI.js +0 -49
- package/dist/chunks/chunk-OH6OQIZ5.js +0 -97
- package/dist/chunks/chunk-OHIADTFG.js +0 -33
- package/dist/chunks/chunk-OI6C6MG6.js +0 -79
- package/dist/chunks/chunk-OJCX7Y6W.js +0 -81
- package/dist/chunks/chunk-OJJ5EHYB.js +0 -77
- package/dist/chunks/chunk-OKWY2HEU.js +0 -45
- package/dist/chunks/chunk-OMMYVTPZ.js +0 -173
- package/dist/chunks/chunk-OMSLN77P.js +0 -115
- package/dist/chunks/chunk-ON2S3KFA.js +0 -81
- package/dist/chunks/chunk-OR6T33OF.js +0 -23
- package/dist/chunks/chunk-ORMTO6OD.js +0 -84
- package/dist/chunks/chunk-OSXHEGFM.js +0 -124
- package/dist/chunks/chunk-OTDYFFNJ.js +0 -133
- package/dist/chunks/chunk-OTMNGO2R.js +0 -184
- package/dist/chunks/chunk-OTZHVEKK.js +0 -94
- package/dist/chunks/chunk-OV2IQQ62.js +0 -150
- package/dist/chunks/chunk-OVL6BN35.js +0 -82
- package/dist/chunks/chunk-OWRFWTVM.js +0 -115
- package/dist/chunks/chunk-OX3NRN7S.js +0 -119
- package/dist/chunks/chunk-P2F7ZQHT.js +0 -97
- package/dist/chunks/chunk-P2RL56UM.js +0 -172
- package/dist/chunks/chunk-P3LRHPWP.js +0 -178
- package/dist/chunks/chunk-P4FQP2CZ.js +0 -181
- package/dist/chunks/chunk-P57DPX62.js +0 -45
- package/dist/chunks/chunk-P5AGUPPA.js +0 -53
- package/dist/chunks/chunk-P5CEBTXB.js +0 -78
- package/dist/chunks/chunk-P5LSNSN4.js +0 -108
- package/dist/chunks/chunk-P6WFJ5OT.js +0 -23
- package/dist/chunks/chunk-PA6EIFGU.js +0 -317
- package/dist/chunks/chunk-PBFEPFYO.js +0 -105
- package/dist/chunks/chunk-PDOMMB3V.js +0 -155
- package/dist/chunks/chunk-PEJUKHWX.js +0 -147
- package/dist/chunks/chunk-PFPXKMXK.js +0 -213
- package/dist/chunks/chunk-PFY5MXRD.js +0 -61
- package/dist/chunks/chunk-PH7HHORH.js +0 -49
- package/dist/chunks/chunk-PIJ6QNA2.js +0 -179
- package/dist/chunks/chunk-PJHJVTFE.js +0 -55
- package/dist/chunks/chunk-PJPH74HP.js +0 -338
- package/dist/chunks/chunk-PLJJMJ5Q.js +0 -23
- package/dist/chunks/chunk-PMZ3WFOG.js +0 -23
- package/dist/chunks/chunk-PRDMNBMR.js +0 -166
- package/dist/chunks/chunk-PSY4OUZY.js +0 -168
- package/dist/chunks/chunk-PTGDDZ5W.js +0 -105
- package/dist/chunks/chunk-PU3QQIXH.js +0 -154
- package/dist/chunks/chunk-PUSAFO4W.js +0 -100
- package/dist/chunks/chunk-PXNAVIHR.js +0 -23
- package/dist/chunks/chunk-PZKIA2EO.js +0 -378
- package/dist/chunks/chunk-Q23DL77U.js +0 -889
- package/dist/chunks/chunk-Q2ZSVQRI.js +0 -152
- package/dist/chunks/chunk-Q3ZVV7JV.js +0 -100
- package/dist/chunks/chunk-Q53BFDAD.js +0 -198
- package/dist/chunks/chunk-Q65IVRFC.js +0 -200
- package/dist/chunks/chunk-Q6B7B4PU.js +0 -358
- package/dist/chunks/chunk-Q6EZI6SC.js +0 -123
- package/dist/chunks/chunk-Q6MCSEZY.js +0 -158
- package/dist/chunks/chunk-Q6RVVLHQ.js +0 -195
- package/dist/chunks/chunk-Q7TC5YQI.js +0 -172
- package/dist/chunks/chunk-QBTORPFR.js +0 -59
- package/dist/chunks/chunk-QFWUD2DJ.js +0 -220
- package/dist/chunks/chunk-QJXDLYET.js +0 -66
- package/dist/chunks/chunk-QKZMTJEP.js +0 -159
- package/dist/chunks/chunk-QOCMDDJT.js +0 -93
- package/dist/chunks/chunk-QOKIMPGC.js +0 -118
- package/dist/chunks/chunk-QRLIUQE7.js +0 -45
- package/dist/chunks/chunk-QT7W2LEU.js +0 -114
- package/dist/chunks/chunk-QTRREVHW.js +0 -125
- package/dist/chunks/chunk-QTUYKUSQ.js +0 -36
- package/dist/chunks/chunk-QX4DYCCV.js +0 -324
- package/dist/chunks/chunk-QY7XLYRL.js +0 -141
- package/dist/chunks/chunk-QZHVMISD.js +0 -33
- package/dist/chunks/chunk-QZVKI5HG.js +0 -258
- package/dist/chunks/chunk-R5RGK5HI.js +0 -33
- package/dist/chunks/chunk-R6THOPV5.js +0 -84
- package/dist/chunks/chunk-R6TJZUFZ.js +0 -117
- package/dist/chunks/chunk-RA4KCEA5.js +0 -54
- package/dist/chunks/chunk-RFZWDF2V.js +0 -346
- package/dist/chunks/chunk-RGCX6QT4.js +0 -214
- package/dist/chunks/chunk-RI45AQKA.js +0 -90
- package/dist/chunks/chunk-RKKZTIJX.js +0 -304
- package/dist/chunks/chunk-RKPWIJS2.js +0 -45
- package/dist/chunks/chunk-RMB2NXRM.js +0 -196
- package/dist/chunks/chunk-RMFXX2YI.js +0 -123
- package/dist/chunks/chunk-RNCTI3UN.js +0 -95
- package/dist/chunks/chunk-RQEL253I.js +0 -304
- package/dist/chunks/chunk-RSC5WKHG.js +0 -192
- package/dist/chunks/chunk-RSD3TB5Z.js +0 -187
- package/dist/chunks/chunk-RUEQDWJL.js +0 -179
- package/dist/chunks/chunk-RV6NC2L7.js +0 -77
- package/dist/chunks/chunk-RVZFP3XA.js +0 -118
- package/dist/chunks/chunk-RZCGGMDL.js +0 -218
- package/dist/chunks/chunk-S35KBHDL.js +0 -82
- package/dist/chunks/chunk-S5DDRMWL.js +0 -83
- package/dist/chunks/chunk-S6Z5DW2Q.js +0 -209
- package/dist/chunks/chunk-S7HGELNN.js +0 -122
- package/dist/chunks/chunk-SC3CDM5D.js +0 -181
- package/dist/chunks/chunk-SCNO4J6G.js +0 -311
- package/dist/chunks/chunk-SFLML4IY.js +0 -193
- package/dist/chunks/chunk-SFUNLOHZ.js +0 -361
- package/dist/chunks/chunk-SGWSFH7T.js +0 -728
- package/dist/chunks/chunk-SHXLNJDC.js +0 -135
- package/dist/chunks/chunk-SKE2DLX5.js +0 -136
- package/dist/chunks/chunk-SKUSL4WF.js +0 -45
- package/dist/chunks/chunk-SLONMT7S.js +0 -30
- package/dist/chunks/chunk-SLTZSYAS.js +0 -261
- package/dist/chunks/chunk-SLV5SCRD.js +0 -94
- package/dist/chunks/chunk-SMBETIQZ.js +0 -153
- package/dist/chunks/chunk-SO36Y5I3.js +0 -163
- package/dist/chunks/chunk-SOI3RHFN.js +0 -151
- package/dist/chunks/chunk-SPHT2VWI.js +0 -70
- package/dist/chunks/chunk-SQ2V5CAA.js +0 -231
- package/dist/chunks/chunk-SRTCDEVF.js +0 -97
- package/dist/chunks/chunk-SSUTARZT.js +0 -78
- package/dist/chunks/chunk-STAMNXZ5.js +0 -251
- package/dist/chunks/chunk-STBLUWPX.js +0 -182
- package/dist/chunks/chunk-SV2JCNNX.js +0 -415
- package/dist/chunks/chunk-SVSPYPBN.js +0 -23
- package/dist/chunks/chunk-SWFI4JYK.js +0 -106
- package/dist/chunks/chunk-SX6A3JA7.js +0 -151
- package/dist/chunks/chunk-SXCGQR44.js +0 -112
- package/dist/chunks/chunk-SXFJ7RF2.js +0 -105
- package/dist/chunks/chunk-SYLSPFAP.js +0 -85
- package/dist/chunks/chunk-SZGDRRII.js +0 -106
- package/dist/chunks/chunk-T33H2US5.js +0 -106
- package/dist/chunks/chunk-T6FWLPI6.js +0 -77
- package/dist/chunks/chunk-T6N67FYF.js +0 -226
- package/dist/chunks/chunk-T6UBQF46.js +0 -48
- package/dist/chunks/chunk-T7UMOKK2.js +0 -47
- package/dist/chunks/chunk-TAYM4JIZ.js +0 -195
- package/dist/chunks/chunk-TBVKWI5A.js +0 -342
- package/dist/chunks/chunk-TD35VORN.js +0 -83
- package/dist/chunks/chunk-TDEWHUU4.js +0 -164
- package/dist/chunks/chunk-TDL7YX3S.js +0 -290
- package/dist/chunks/chunk-TFQCXGMC.js +0 -196
- package/dist/chunks/chunk-TGGU333X.js +0 -228
- package/dist/chunks/chunk-TGVAUIGC.js +0 -186
- package/dist/chunks/chunk-THG7FU5E.js +0 -97
- package/dist/chunks/chunk-TJ4A63EW.js +0 -104
- package/dist/chunks/chunk-TKCZE7JX.js +0 -331
- package/dist/chunks/chunk-TNACIPOG.js +0 -88
- package/dist/chunks/chunk-TPYJY7BN.js +0 -93
- package/dist/chunks/chunk-TQ7ZFZQW.js +0 -41
- package/dist/chunks/chunk-TTRZT4A7.js +0 -33
- package/dist/chunks/chunk-TTS2GPQZ.js +0 -23
- package/dist/chunks/chunk-TUT7WAQG.js +0 -305
- package/dist/chunks/chunk-TUUS2VLL.js +0 -128
- package/dist/chunks/chunk-TZQJDYMB.js +0 -73
- package/dist/chunks/chunk-U2C6D3UF.js +0 -215
- package/dist/chunks/chunk-U2Z73ZX6.js +0 -104
- package/dist/chunks/chunk-U2ZGRLD4.js +0 -361
- package/dist/chunks/chunk-U42B3MXF.js +0 -177
- package/dist/chunks/chunk-U4BGHB2M.js +0 -138
- package/dist/chunks/chunk-U4UUWUDK.js +0 -218
- package/dist/chunks/chunk-U5EDWWUG.js +0 -362
- package/dist/chunks/chunk-U6QMNQCD.js +0 -133
- package/dist/chunks/chunk-UAUCPHR7.js +0 -598
- package/dist/chunks/chunk-UAX23Y7C.js +0 -104
- package/dist/chunks/chunk-UBAIKIRU.js +0 -106
- package/dist/chunks/chunk-UBBP5UPV.js +0 -90
- package/dist/chunks/chunk-UBSKDQJ2.js +0 -23
- package/dist/chunks/chunk-UBSTTW27.js +0 -127
- package/dist/chunks/chunk-UCLWNC7G.js +0 -87
- package/dist/chunks/chunk-UCYBZZGT.js +0 -134
- package/dist/chunks/chunk-UD6CNBCW.js +0 -108
- package/dist/chunks/chunk-UFNXUMSJ.js +0 -217
- package/dist/chunks/chunk-UFVT526R.js +0 -169
- package/dist/chunks/chunk-UFZVCTZS.js +0 -107
- package/dist/chunks/chunk-UG3NK4NM.js +0 -130
- package/dist/chunks/chunk-UIAYFI4T.js +0 -97
- package/dist/chunks/chunk-UIRUQDQX.js +0 -39
- package/dist/chunks/chunk-UKK2O5ZN.js +0 -130
- package/dist/chunks/chunk-UKT4BWFB.js +0 -33
- package/dist/chunks/chunk-ULNSZVI5.js +0 -283
- package/dist/chunks/chunk-ULURKT3A.js +0 -111
- package/dist/chunks/chunk-UNPCL7HN.js +0 -134
- package/dist/chunks/chunk-UOU4RIYV.js +0 -1309
- package/dist/chunks/chunk-UOVR5MCP.js +0 -178
- package/dist/chunks/chunk-UP7O2TLU.js +0 -30
- package/dist/chunks/chunk-UPLMAXNQ.js +0 -55
- package/dist/chunks/chunk-UPUKZE6P.js +0 -215
- package/dist/chunks/chunk-UQ4R6E4Y.js +0 -75
- package/dist/chunks/chunk-UQXH6FV6.js +0 -145
- package/dist/chunks/chunk-UTCKUB6Q.js +0 -98
- package/dist/chunks/chunk-UUETCZH7.js +0 -305
- package/dist/chunks/chunk-UUPEZWLG.js +0 -651
- package/dist/chunks/chunk-UUYSZ64V.js +0 -33
- package/dist/chunks/chunk-UV3SX27Q.js +0 -200
- package/dist/chunks/chunk-UVH2TCUQ.js +0 -368
- package/dist/chunks/chunk-UVNVO5FA.js +0 -78
- package/dist/chunks/chunk-UWCYOIAK.js +0 -170
- package/dist/chunks/chunk-UWRJZ3OU.js +0 -152
- package/dist/chunks/chunk-UXRJUU4W.js +0 -141
- package/dist/chunks/chunk-UYZ5KG6M.js +0 -158
- package/dist/chunks/chunk-V24SAUJK.js +0 -298
- package/dist/chunks/chunk-V2G4M4BV.js +0 -99
- package/dist/chunks/chunk-V3FKEVGL.js +0 -166
- package/dist/chunks/chunk-V4AUHA6G.js +0 -320
- package/dist/chunks/chunk-V577TD7S.js +0 -176
- package/dist/chunks/chunk-V57FMPNN.js +0 -232
- package/dist/chunks/chunk-V62AS7XT.js +0 -126
- package/dist/chunks/chunk-V7GIL5PE.js +0 -147
- package/dist/chunks/chunk-VAX7VH62.js +0 -88
- package/dist/chunks/chunk-VB2DWLJR.js +0 -231
- package/dist/chunks/chunk-VB3HXA7L.js +0 -303
- package/dist/chunks/chunk-VBSF7V6X.js +0 -167
- package/dist/chunks/chunk-VBX5BEKD.js +0 -137
- package/dist/chunks/chunk-VCGINEPI.js +0 -73
- package/dist/chunks/chunk-VDDOUCYQ.js +0 -145
- package/dist/chunks/chunk-VEBOCOMP.js +0 -109
- package/dist/chunks/chunk-VGMBSUAS.js +0 -160
- package/dist/chunks/chunk-VHI7ILEU.js +0 -41
- package/dist/chunks/chunk-VJJUER2S.js +0 -97
- package/dist/chunks/chunk-VM5K6IWJ.js +0 -68
- package/dist/chunks/chunk-VMAD7LO3.js +0 -248
- package/dist/chunks/chunk-VMDYU4BZ.js +0 -112
- package/dist/chunks/chunk-VTE6S5X6.js +0 -130
- package/dist/chunks/chunk-VTR5CUBJ.js +0 -130
- package/dist/chunks/chunk-VW2OYHOW.js +0 -99
- package/dist/chunks/chunk-VX4JDCYO.js +0 -166
- package/dist/chunks/chunk-VXC7CK2S.js +0 -177
- package/dist/chunks/chunk-VYBZ2TV7.js +0 -174
- package/dist/chunks/chunk-VYWXAGEE.js +0 -805
- package/dist/chunks/chunk-W2CNCZSJ.js +0 -109
- package/dist/chunks/chunk-W3WID5IX.js +0 -36
- package/dist/chunks/chunk-W5KNQERV.js +0 -300
- package/dist/chunks/chunk-W64SCVML.js +0 -101
- package/dist/chunks/chunk-W66UV57J.js +0 -140
- package/dist/chunks/chunk-WA4XVKKS.js +0 -172
- package/dist/chunks/chunk-WBIJ57N7.js +0 -177
- package/dist/chunks/chunk-WDNVSP2R.js +0 -98
- package/dist/chunks/chunk-WHHH7NQI.js +0 -119
- package/dist/chunks/chunk-WHKKLXYT.js +0 -1307
- package/dist/chunks/chunk-WINGRN6G.js +0 -102
- package/dist/chunks/chunk-WJI474UR.js +0 -230
- package/dist/chunks/chunk-WK3AREWN.js +0 -261
- package/dist/chunks/chunk-WPL27RZ2.js +0 -33
- package/dist/chunks/chunk-WPZEMUVS.js +0 -41
- package/dist/chunks/chunk-WQERNW56.js +0 -60
- package/dist/chunks/chunk-WRA2FDZM.js +0 -173
- package/dist/chunks/chunk-WTTNGUWO.js +0 -284
- package/dist/chunks/chunk-WUN6WFPD.js +0 -144
- package/dist/chunks/chunk-WVDQH2T5.js +0 -36
- package/dist/chunks/chunk-WWALPK5K.js +0 -48
- package/dist/chunks/chunk-WXGLVLWD.js +0 -163
- package/dist/chunks/chunk-WYUHT7SH.js +0 -50
- package/dist/chunks/chunk-X47SVSAW.js +0 -270
- package/dist/chunks/chunk-X4FLFJH5.js +0 -382
- package/dist/chunks/chunk-X4IOEQYN.js +0 -23
- package/dist/chunks/chunk-X4N3VOH6.js +0 -182
- package/dist/chunks/chunk-X55FSHLI.js +0 -91
- package/dist/chunks/chunk-X6LOMU52.js +0 -146
- package/dist/chunks/chunk-X7AUTRG5.js +0 -50
- package/dist/chunks/chunk-XAPKLZ6Z.js +0 -172
- package/dist/chunks/chunk-XBWGKTBD.js +0 -97
- package/dist/chunks/chunk-XDAJHAAW.js +0 -214
- package/dist/chunks/chunk-XDKVSERK.js +0 -307
- package/dist/chunks/chunk-XG7LEVRZ.js +0 -55
- package/dist/chunks/chunk-XGL55BJS.js +0 -304
- package/dist/chunks/chunk-XJRKZ4OH.js +0 -23
- package/dist/chunks/chunk-XKS62FUQ.js +0 -213
- package/dist/chunks/chunk-XLHQFU74.js +0 -164
- package/dist/chunks/chunk-XOILD3I2.js +0 -85
- package/dist/chunks/chunk-XOLXOMLE.js +0 -277
- package/dist/chunks/chunk-XOQX7KEV.js +0 -128
- package/dist/chunks/chunk-XQ76L7HJ.js +0 -48
- package/dist/chunks/chunk-XTTSL4OM.js +0 -184
- package/dist/chunks/chunk-XUGYV7QM.js +0 -101
- package/dist/chunks/chunk-XUYTHE2X.js +0 -390
- package/dist/chunks/chunk-XVCXB2XC.js +0 -375
- package/dist/chunks/chunk-XVEOZNQJ.js +0 -169
- package/dist/chunks/chunk-XWRAKKKZ.js +0 -23
- package/dist/chunks/chunk-XWTVHWID.js +0 -92
- package/dist/chunks/chunk-XZ3TFVE3.js +0 -100
- package/dist/chunks/chunk-XZPQ5IEB.js +0 -87
- package/dist/chunks/chunk-Y2XYO6YW.js +0 -212
- package/dist/chunks/chunk-Y3OH3ZTN.js +0 -315
- package/dist/chunks/chunk-Y5TCEAOB.js +0 -146
- package/dist/chunks/chunk-Y6DMTSJF.js +0 -89
- package/dist/chunks/chunk-Y7JUYAYP.js +0 -170
- package/dist/chunks/chunk-Y7SBS5TI.js +0 -70
- package/dist/chunks/chunk-YAZIQGEA.js +0 -239
- package/dist/chunks/chunk-YCBYFDCG.js +0 -84
- package/dist/chunks/chunk-YD2MKC7X.js +0 -180
- package/dist/chunks/chunk-YFGWK35C.js +0 -272
- package/dist/chunks/chunk-YGJURMCD.js +0 -122
- package/dist/chunks/chunk-YGXJHJOR.js +0 -91
- package/dist/chunks/chunk-YH5INYRJ.js +0 -23
- package/dist/chunks/chunk-YIDXFRAO.js +0 -168
- package/dist/chunks/chunk-YJYDDLWP.js +0 -95
- package/dist/chunks/chunk-YKEEZ5QT.js +0 -54
- package/dist/chunks/chunk-YL6DMHSZ.js +0 -33
- package/dist/chunks/chunk-YOLADUXK.js +0 -171
- package/dist/chunks/chunk-YP5XRNFH.js +0 -141
- package/dist/chunks/chunk-YPQZAELQ.js +0 -23
- package/dist/chunks/chunk-YQKPXQBE.js +0 -139
- package/dist/chunks/chunk-YQUHQ2PN.js +0 -44
- package/dist/chunks/chunk-YQZ4EUNC.js +0 -197
- package/dist/chunks/chunk-YRHWNBA4.js +0 -270
- package/dist/chunks/chunk-YRMORSCS.js +0 -156
- package/dist/chunks/chunk-YRZRNQLC.js +0 -366
- package/dist/chunks/chunk-YS57OCJ5.js +0 -92
- package/dist/chunks/chunk-YTAD6NCM.js +0 -69
- package/dist/chunks/chunk-YTF5J5I5.js +0 -123
- package/dist/chunks/chunk-YVALRPO5.js +0 -88
- package/dist/chunks/chunk-YVJBGO56.js +0 -112
- package/dist/chunks/chunk-YX4L7NVA.js +0 -260
- package/dist/chunks/chunk-YY5RRKRN.js +0 -60
- package/dist/chunks/chunk-YYFOGJ7F.js +0 -136
- package/dist/chunks/chunk-Z24Y4HX4.js +0 -77
- package/dist/chunks/chunk-Z35EATYO.js +0 -101
- package/dist/chunks/chunk-Z3WM6GPY.js +0 -282
- package/dist/chunks/chunk-Z4AT2T67.js +0 -191
- package/dist/chunks/chunk-Z5FKLM22.js +0 -497
- package/dist/chunks/chunk-Z6RYBFIR.js +0 -36
- package/dist/chunks/chunk-ZE7Q4FYP.js +0 -23
- package/dist/chunks/chunk-ZELXGU4D.js +0 -119
- package/dist/chunks/chunk-ZETVSSFR.js +0 -157
- package/dist/chunks/chunk-ZFLTHXNC.js +0 -82
- package/dist/chunks/chunk-ZGUJ654L.js +0 -305
- package/dist/chunks/chunk-ZIYL5YZF.js +0 -117
- package/dist/chunks/chunk-ZJNDKAZC.js +0 -45
- package/dist/chunks/chunk-ZLHMVVTT.js +0 -130
- package/dist/chunks/chunk-ZLLI46LF.js +0 -93
- package/dist/chunks/chunk-ZNBZYCIG.js +0 -97
- package/dist/chunks/chunk-ZPETEA54.js +0 -11523
- package/dist/chunks/chunk-ZR6IIXH6.js +0 -79
- package/dist/chunks/chunk-ZSZQEJ76.js +0 -150
- package/dist/chunks/chunk-ZTBW542B.js +0 -187
- package/dist/chunks/chunk-ZUCDYQDM.js +0 -129
- package/dist/chunks/chunk-ZVRH2GMK.js +0 -221
- package/dist/chunks/chunk-ZWOWK2LI.js +0 -93
- package/dist/chunks/chunk-ZYL6JH6G.js +0 -363
- package/dist/chunks/chunk-ZYS5ZKOD.js +0 -100
- package/dist/chunks/chunk-ZYSKQLML.js +0 -23
- package/dist/chunks/chunk-ZZ5ZR2VW.js +0 -100
- package/dist/chunks/chunk-ZZLTFVCU.js +0 -36
- package/dist/chunks/client-2L4XUPQN.js +0 -31
- package/dist/chunks/client-6XOD422W.js +0 -167
- package/dist/chunks/client-NOHRL7S3.js +0 -46
- package/dist/chunks/client-actions-K54NVVVW.js +0 -166
- package/dist/chunks/dangerous-4QU6QUOD.js +0 -120
- package/dist/chunks/delete-current-file-RMINS2BA.js +0 -159
- package/dist/chunks/editor-seams-SW67BCBW.js +0 -166
- package/dist/chunks/editor-store-WPRQJL2A.js +0 -143
- package/dist/chunks/export-watermark-2QVKO7OR.js +0 -152
- package/dist/chunks/eyedropper-WCIR6LL5.js +0 -354
- package/dist/chunks/generate-media-WCNTS5OY.js +0 -255
- package/dist/chunks/host-GLRRFC2S.js +0 -178
- package/dist/chunks/import-merge-73U4J6IN.js +0 -39
- package/dist/chunks/integrations-5I6DGN6S.js +0 -124
- package/dist/chunks/kit-modules-RYFNXEF5.js +0 -18
- package/dist/chunks/libraries-INCBCGOZ.js +0 -307
- package/dist/chunks/live-SGBLJFAC.js +0 -317
- package/dist/chunks/media-tool-KSXO2AAJ.js +0 -337
- package/dist/chunks/new-file-56ACDQ35.js +0 -136
- package/dist/chunks/page-thumbnails-MBHWLMUS.js +0 -137
- package/dist/chunks/plugin-GJXXN4UQ.js +0 -127
- package/dist/chunks/plugin-import-N2J7NVET.js +0 -675
- package/dist/chunks/presence-S6FAMSP4.js +0 -132
- package/dist/chunks/preview-media-CH5HHHRT.js +0 -122
- package/dist/chunks/project-IH23X2UG.js +0 -1653
- package/dist/chunks/publish-site-7YFHE7PV.js +0 -163
- package/dist/chunks/publish-store-I3NKMHZK.js +0 -94
- package/dist/chunks/raster-actions-PRMIAQQ7.js +0 -232
- package/dist/chunks/runner-OVYUXA4W.js +0 -2900
- package/dist/chunks/runtime-5G7ZCZAF.js +0 -32
- package/dist/chunks/sites-L6JYZ4SV.js +0 -33
- package/dist/chunks/store-BYSDY5PO.js +0 -231
- package/dist/chunks/sync-TFB3VWFP.js +0 -158
- package/dist/chunks/tabs-CNE4XGIM.js +0 -316
- package/dist/chunks/team-DFOKEFOE.js +0 -46
- package/dist/chunks/team-client-QHRXYUPI.js +0 -157
- package/dist/chunks/templates-S32W3ZLK.js +0 -182
- package/dist/chunks/tools-YDR7QIHQ.js +0 -37
- package/dist/chunks/ui-commands-HB4FFFXA.js +0 -274
- package/dist/chunks/use-ZGEOR2CQ.js +0 -49
- package/dist/chunks/versions-G4PGAFLF.js +0 -316
- /package/dist/chunks/{chunk-MRDUJC35.js → chunk-WJL6IR77.js} +0 -0
|
@@ -0,0 +1,2900 @@
|
|
|
1
|
+
import { createRequire as __popcraftRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __popcraftPath } from 'node:url';
|
|
3
|
+
import { dirname as __popcraftDirname } from 'node:path';
|
|
4
|
+
const require = __popcraftRequire(import.meta.url);
|
|
5
|
+
const __filename = __popcraftPath(import.meta.url);
|
|
6
|
+
const __dirname = __popcraftDirname(__filename);
|
|
7
|
+
import {
|
|
8
|
+
ALL_TOOLS,
|
|
9
|
+
SUBAGENT_FRAMING,
|
|
10
|
+
activeMessages,
|
|
11
|
+
agentModel,
|
|
12
|
+
allProfiles,
|
|
13
|
+
allSkills,
|
|
14
|
+
appendMessage,
|
|
15
|
+
findProfile,
|
|
16
|
+
findSkill,
|
|
17
|
+
mentionContext,
|
|
18
|
+
newId,
|
|
19
|
+
persistThreads,
|
|
20
|
+
profileIndexLine,
|
|
21
|
+
rememberCheckpoint,
|
|
22
|
+
setParts,
|
|
23
|
+
setTodos,
|
|
24
|
+
skillIndexLine,
|
|
25
|
+
updateActiveThread,
|
|
26
|
+
updateMessage,
|
|
27
|
+
useAgentStore
|
|
28
|
+
} from "./chunk-QMHR62B6.js";
|
|
29
|
+
import "./chunk-LRF3JAZW.js";
|
|
30
|
+
import {
|
|
31
|
+
registerBuiltinTools
|
|
32
|
+
} from "./chunk-5CG26ML2.js";
|
|
33
|
+
import {
|
|
34
|
+
registerDangerousCommands
|
|
35
|
+
} from "./chunk-ESUEH4WJ.js";
|
|
36
|
+
import "./chunk-UTDF3XDV.js";
|
|
37
|
+
import "./chunk-7CSTSDHU.js";
|
|
38
|
+
import "./chunk-ZLWN6LBH.js";
|
|
39
|
+
import "./chunk-Q7EITIAT.js";
|
|
40
|
+
import "./chunk-X36CCQ76.js";
|
|
41
|
+
import {
|
|
42
|
+
editBlockReason,
|
|
43
|
+
editorToolContext
|
|
44
|
+
} from "./chunk-5F5AEM7E.js";
|
|
45
|
+
import "./chunk-KOAEKWIA.js";
|
|
46
|
+
import "./chunk-U7FLEMSS.js";
|
|
47
|
+
import "./chunk-YMGUPGGX.js";
|
|
48
|
+
import {
|
|
49
|
+
buildDesignContext,
|
|
50
|
+
joinWithin
|
|
51
|
+
} from "./chunk-3QD6CCCN.js";
|
|
52
|
+
import "./chunk-FH4HHWJT.js";
|
|
53
|
+
import "./chunk-A6XXXQQO.js";
|
|
54
|
+
import "./chunk-ATSLWELA.js";
|
|
55
|
+
import "./chunk-6B6ULEDJ.js";
|
|
56
|
+
import "./chunk-G27HUNKQ.js";
|
|
57
|
+
import {
|
|
58
|
+
HYPERY_PAYMENT_SOURCE_HEADER,
|
|
59
|
+
paymentSourceHeaders
|
|
60
|
+
} from "./chunk-G53FIV7D.js";
|
|
61
|
+
import {
|
|
62
|
+
aiAvailability,
|
|
63
|
+
effectiveChatModel,
|
|
64
|
+
useAiStore
|
|
65
|
+
} from "./chunk-A4CGHVJP.js";
|
|
66
|
+
import {
|
|
67
|
+
allTools,
|
|
68
|
+
getTool,
|
|
69
|
+
runTool,
|
|
70
|
+
toolSpecs
|
|
71
|
+
} from "./chunk-ENO5QFID.js";
|
|
72
|
+
import {
|
|
73
|
+
external_exports
|
|
74
|
+
} from "./chunk-VOOUF5TT.js";
|
|
75
|
+
import {
|
|
76
|
+
provideAgentCapability
|
|
77
|
+
} from "./chunk-57ZPSFB4.js";
|
|
78
|
+
import {
|
|
79
|
+
defineCommand
|
|
80
|
+
} from "./chunk-ZYK65XJJ.js";
|
|
81
|
+
import "./chunk-HS4CR6HU.js";
|
|
82
|
+
import "./chunk-4LOAHKDJ.js";
|
|
83
|
+
import "./chunk-4JTHODXO.js";
|
|
84
|
+
import "./chunk-DE2GVUWC.js";
|
|
85
|
+
import "./chunk-OWWBFGCR.js";
|
|
86
|
+
import "./chunk-LB26H7IY.js";
|
|
87
|
+
import "./chunk-ZLTGINSH.js";
|
|
88
|
+
import "./chunk-UCNBKWJQ.js";
|
|
89
|
+
import "./chunk-BKRXB4FD.js";
|
|
90
|
+
import "./chunk-33WF4AEY.js";
|
|
91
|
+
import "./chunk-NBFZY6QK.js";
|
|
92
|
+
import "./chunk-YZKSEJHZ.js";
|
|
93
|
+
import "./chunk-3OXHJA4W.js";
|
|
94
|
+
import "./chunk-OE2LGHLL.js";
|
|
95
|
+
import "./chunk-T4R6MNN5.js";
|
|
96
|
+
import "./chunk-IYAH6IB3.js";
|
|
97
|
+
import "./chunk-633NXQV2.js";
|
|
98
|
+
import "./chunk-YD7Z3PGN.js";
|
|
99
|
+
import "./chunk-3DMEPFEZ.js";
|
|
100
|
+
import "./chunk-EYGE2XSW.js";
|
|
101
|
+
import "./chunk-K65QFCH4.js";
|
|
102
|
+
import "./chunk-PTWMYRV4.js";
|
|
103
|
+
import "./chunk-EUF3VFBW.js";
|
|
104
|
+
import {
|
|
105
|
+
activeHyperyTeamId
|
|
106
|
+
} from "./chunk-C743GDSN.js";
|
|
107
|
+
import "./chunk-SY3KZGGN.js";
|
|
108
|
+
import "./chunk-3PRZ5XSZ.js";
|
|
109
|
+
import "./chunk-SSIJMUZP.js";
|
|
110
|
+
import "./chunk-LGPRILVA.js";
|
|
111
|
+
import {
|
|
112
|
+
useEditorStore
|
|
113
|
+
} from "./chunk-NGYWHBRO.js";
|
|
114
|
+
import "./chunk-OZJ7KASI.js";
|
|
115
|
+
import "./chunk-PMLSPVLR.js";
|
|
116
|
+
import "./chunk-76I6DIEM.js";
|
|
117
|
+
import "./chunk-ZWKNYWUL.js";
|
|
118
|
+
import "./chunk-ISEGXWC3.js";
|
|
119
|
+
import "./chunk-VXB34VXD.js";
|
|
120
|
+
import "./chunk-OLQTCVWP.js";
|
|
121
|
+
import "./chunk-EOPTDAPJ.js";
|
|
122
|
+
import "./chunk-UM2WBM37.js";
|
|
123
|
+
import "./chunk-BNQZIEZX.js";
|
|
124
|
+
import "./chunk-GUGOVTVN.js";
|
|
125
|
+
import "./chunk-R5O3E5HI.js";
|
|
126
|
+
import "./chunk-SW4F3FK5.js";
|
|
127
|
+
import "./chunk-CBXDTH5N.js";
|
|
128
|
+
import "./chunk-DV7XWPVL.js";
|
|
129
|
+
import "./chunk-QLJLPV5R.js";
|
|
130
|
+
import "./chunk-LDUTRSTJ.js";
|
|
131
|
+
import "./chunk-7Y45PGYJ.js";
|
|
132
|
+
import "./chunk-NM4EL7ES.js";
|
|
133
|
+
import "./chunk-CEVTHE4E.js";
|
|
134
|
+
import "./chunk-M7WRXM6Y.js";
|
|
135
|
+
import {
|
|
136
|
+
HYPERY_GATEWAY_URL,
|
|
137
|
+
accessToken
|
|
138
|
+
} from "./chunk-L47OWSXA.js";
|
|
139
|
+
import "./chunk-C3PEAMN4.js";
|
|
140
|
+
import "./chunk-7EVFVLIZ.js";
|
|
141
|
+
import "./chunk-OQZFD4BD.js";
|
|
142
|
+
import "./chunk-HUBA4GXU.js";
|
|
143
|
+
import {
|
|
144
|
+
ToolError,
|
|
145
|
+
registerCommand
|
|
146
|
+
} from "./chunk-ZNG4F4F3.js";
|
|
147
|
+
import "./chunk-RSS4ZNKX.js";
|
|
148
|
+
import "./chunk-SBZ7X4XF.js";
|
|
149
|
+
import "./chunk-ZGRH6TWS.js";
|
|
150
|
+
import "./chunk-5NXWMSML.js";
|
|
151
|
+
import "./chunk-M5GKWOJL.js";
|
|
152
|
+
import "./chunk-4DODDLBE.js";
|
|
153
|
+
import "./chunk-ZWGSFZFE.js";
|
|
154
|
+
import "./chunk-PLHJR3CN.js";
|
|
155
|
+
import "./chunk-RK3HJC3E.js";
|
|
156
|
+
import "./chunk-A54HJQ6T.js";
|
|
157
|
+
import "./chunk-7DATU5VX.js";
|
|
158
|
+
import "./chunk-EKHLRZ2V.js";
|
|
159
|
+
import "./chunk-6YZC5UXW.js";
|
|
160
|
+
import "./chunk-WNTU3TLN.js";
|
|
161
|
+
import "./chunk-ANIZ3AGS.js";
|
|
162
|
+
import "./chunk-E66ZNPHF.js";
|
|
163
|
+
import "./chunk-3MVD3KZ3.js";
|
|
164
|
+
import "./chunk-INZZZ5M6.js";
|
|
165
|
+
import "./chunk-ESA4AFPU.js";
|
|
166
|
+
import "./chunk-6R3NJFQL.js";
|
|
167
|
+
import "./chunk-QWXV3M43.js";
|
|
168
|
+
import "./chunk-TFCXBKDU.js";
|
|
169
|
+
import "./chunk-VUGLVNQF.js";
|
|
170
|
+
import "./chunk-KATP7TSA.js";
|
|
171
|
+
import "./chunk-TAWWNEV3.js";
|
|
172
|
+
import "./chunk-PU2DNOWP.js";
|
|
173
|
+
import "./chunk-QNR4D25F.js";
|
|
174
|
+
import "./chunk-HL4BM2AW.js";
|
|
175
|
+
import "./chunk-CHJBZFDR.js";
|
|
176
|
+
import "./chunk-5RHX7374.js";
|
|
177
|
+
import "./chunk-QV42WAC3.js";
|
|
178
|
+
import "./chunk-EMRMDF3C.js";
|
|
179
|
+
import "./chunk-W2MSYW6G.js";
|
|
180
|
+
import "./chunk-YR2RU7SP.js";
|
|
181
|
+
import "./chunk-MN4EEFZJ.js";
|
|
182
|
+
import "./chunk-J7N5AJ7Q.js";
|
|
183
|
+
import "./chunk-BT3Q43SU.js";
|
|
184
|
+
import "./chunk-42I5OWW5.js";
|
|
185
|
+
import "./chunk-L4HYVWDW.js";
|
|
186
|
+
import "./chunk-FR4I6EP4.js";
|
|
187
|
+
import "./chunk-KRGFO6BM.js";
|
|
188
|
+
import "./chunk-AVWA3JAF.js";
|
|
189
|
+
import "./chunk-2SPBA2GP.js";
|
|
190
|
+
import "./chunk-GDOV5QOD.js";
|
|
191
|
+
import "./chunk-V36EJ24Y.js";
|
|
192
|
+
import "./chunk-KBXTF45P.js";
|
|
193
|
+
import "./chunk-KIVW57QH.js";
|
|
194
|
+
import "./chunk-GKKSGKVP.js";
|
|
195
|
+
import "./chunk-SAQ2W6VJ.js";
|
|
196
|
+
import "./chunk-R77FKJO6.js";
|
|
197
|
+
import "./chunk-WG5UENME.js";
|
|
198
|
+
import "./chunk-KASBBLQC.js";
|
|
199
|
+
import "./chunk-MRON56GU.js";
|
|
200
|
+
import "./chunk-HZ3C272Q.js";
|
|
201
|
+
import "./chunk-PLZLKHOI.js";
|
|
202
|
+
import "./chunk-UT3VNYCC.js";
|
|
203
|
+
import "./chunk-OM5VD3WH.js";
|
|
204
|
+
import "./chunk-ACHG2HMK.js";
|
|
205
|
+
import "./chunk-P675L74X.js";
|
|
206
|
+
import "./chunk-HEQLOQAN.js";
|
|
207
|
+
import "./chunk-GFBUI5Q4.js";
|
|
208
|
+
import "./chunk-HUYCKP2F.js";
|
|
209
|
+
import "./chunk-WLPGSUI2.js";
|
|
210
|
+
import "./chunk-637CSND3.js";
|
|
211
|
+
import "./chunk-EGSRWLGD.js";
|
|
212
|
+
import "./chunk-IM6WH7GK.js";
|
|
213
|
+
import "./chunk-3TPXU2PF.js";
|
|
214
|
+
import "./chunk-PQID5H2U.js";
|
|
215
|
+
import "./chunk-UECFXKFB.js";
|
|
216
|
+
import "./chunk-ASE4MVE3.js";
|
|
217
|
+
import "./chunk-2ZG5YVYA.js";
|
|
218
|
+
import "./chunk-E4OKHTNS.js";
|
|
219
|
+
import "./chunk-KQKO2ZZ2.js";
|
|
220
|
+
import "./chunk-CWLO43FG.js";
|
|
221
|
+
import {
|
|
222
|
+
AI_LIMITS,
|
|
223
|
+
init_limits,
|
|
224
|
+
str
|
|
225
|
+
} from "./chunk-NIEUIAKQ.js";
|
|
226
|
+
import "./chunk-XZXB3HB5.js";
|
|
227
|
+
import "./chunk-UGG5XQHU.js";
|
|
228
|
+
import "./chunk-SHK6YV6A.js";
|
|
229
|
+
import "./chunk-M5WJSLHT.js";
|
|
230
|
+
import "./chunk-MVIYMAMH.js";
|
|
231
|
+
import "./chunk-NWNYARD6.js";
|
|
232
|
+
import "./chunk-WBBHPF5E.js";
|
|
233
|
+
import "./chunk-T2SCC6PU.js";
|
|
234
|
+
import "./chunk-25VZ3OBK.js";
|
|
235
|
+
import "./chunk-M2H3GLK2.js";
|
|
236
|
+
import "./chunk-ALV6EOJF.js";
|
|
237
|
+
import "./chunk-Y7TG6HTD.js";
|
|
238
|
+
import "./chunk-SJ63JCL4.js";
|
|
239
|
+
import {
|
|
240
|
+
init_define_POPCRAFT_COMPONENT_IDS
|
|
241
|
+
} from "./chunk-WKDVCZ45.js";
|
|
242
|
+
import "./chunk-LJSVREWM.js";
|
|
243
|
+
|
|
244
|
+
// lib/agent/runner.ts
|
|
245
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
246
|
+
|
|
247
|
+
// lib/agent/gateway.ts
|
|
248
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
249
|
+
|
|
250
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
251
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
252
|
+
|
|
253
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/hypery-model.js
|
|
254
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
255
|
+
var delay = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
|
|
256
|
+
var utf8Complete = ((b) => {
|
|
257
|
+
if (!Array.isArray(b)) return null;
|
|
258
|
+
const n = b.length;
|
|
259
|
+
for (let i = n - 1; i >= Math.max(0, n - 3); i--) {
|
|
260
|
+
const c = b[i];
|
|
261
|
+
if ((c & 192) === 128) continue;
|
|
262
|
+
const len = c <= 127 ? 1 : c >= 194 && c <= 223 ? 2 : c >= 224 && c <= 239 ? 3 : c >= 240 && c <= 244 ? 4 : 1;
|
|
263
|
+
return n - i < len ? i : n;
|
|
264
|
+
}
|
|
265
|
+
return n;
|
|
266
|
+
});
|
|
267
|
+
var utf8Decode = ((b) => typeof b === "string" ? b : Array.isArray(b) ? new TextDecoder().decode(Uint8Array.from(b)) : null);
|
|
268
|
+
var MAX_REQUEST_BYTES = 44e5;
|
|
269
|
+
var DEFAULT_IDLE_TIMEOUT_MS = 18e4;
|
|
270
|
+
var HYPERY_TEAM_HEADER = "x-hypery-active-organization-id";
|
|
271
|
+
var HYPERY_PAYMENT_SOURCE_HEADER2 = "x-hypery-payment-source";
|
|
272
|
+
function agentModelError(message, code, status) {
|
|
273
|
+
{
|
|
274
|
+
return { name: "AgentModelError", message, code: code ?? "ai_upstream", status: ((__v) => __v == null ? "null" : typeof __v)(status) === "number" ? status : 502 };
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
async function resolve(v) {
|
|
278
|
+
{
|
|
279
|
+
if (((__v) => __v == null ? "null" : typeof __v)(v) === "function") {
|
|
280
|
+
return await (v() ?? null);
|
|
281
|
+
}
|
|
282
|
+
return v ?? null;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
function errorCodeFor(status, payload) {
|
|
286
|
+
{
|
|
287
|
+
if (payload != null && ((__v) => __v == null ? "null" : typeof __v)(payload) === "object" && payload.error != null && ((__v) => __v == null ? "null" : typeof __v)(payload.error) === "object" && ((__v) => __v == null ? "null" : typeof __v)(payload.error.code) === "string") {
|
|
288
|
+
return payload.error.code;
|
|
289
|
+
}
|
|
290
|
+
if (status === 401) {
|
|
291
|
+
return "ai_reauth";
|
|
292
|
+
}
|
|
293
|
+
if (status === 402) {
|
|
294
|
+
return "ai_credits";
|
|
295
|
+
}
|
|
296
|
+
if (status === 403) {
|
|
297
|
+
return "ai_scope";
|
|
298
|
+
}
|
|
299
|
+
if (status === 429) {
|
|
300
|
+
return "ai_rate_limited";
|
|
301
|
+
}
|
|
302
|
+
return "ai_upstream";
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function streamErrorMessage(payload, fallback) {
|
|
306
|
+
{
|
|
307
|
+
let otherwise = fallback ?? "The AI request failed.";
|
|
308
|
+
if (payload == null || ((__v) => __v == null ? "null" : typeof __v)(payload) !== "object") {
|
|
309
|
+
return otherwise;
|
|
310
|
+
}
|
|
311
|
+
let err = payload.error ?? null;
|
|
312
|
+
if (((__v) => __v == null ? "null" : typeof __v)(err) === "string" && (err.trim() ?? null) !== "") {
|
|
313
|
+
return err;
|
|
314
|
+
}
|
|
315
|
+
let message = err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" ? err.message ?? null : null;
|
|
316
|
+
if (message == null) {
|
|
317
|
+
message = payload.message ?? null;
|
|
318
|
+
}
|
|
319
|
+
return ((__v) => __v == null ? "null" : typeof __v)(message) === "string" && (message.trim() ?? null) !== "" ? message : otherwise;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function createStreamAccumulator() {
|
|
323
|
+
{
|
|
324
|
+
let buffer = "";
|
|
325
|
+
let text = "";
|
|
326
|
+
let reasoning = "";
|
|
327
|
+
let sawDone = false;
|
|
328
|
+
let calls = /* @__PURE__ */ new Map() ?? null;
|
|
329
|
+
let order = [];
|
|
330
|
+
return { push: (part) => {
|
|
331
|
+
{
|
|
332
|
+
buffer = buffer + part;
|
|
333
|
+
let out = [];
|
|
334
|
+
let nl = buffer.indexOf("\n") ?? null;
|
|
335
|
+
while (nl >= 0) {
|
|
336
|
+
let line = (buffer.slice(0, nl) ?? null).trim() ?? null;
|
|
337
|
+
buffer = buffer.slice(nl + 1) ?? null;
|
|
338
|
+
nl = buffer.indexOf("\n") ?? null;
|
|
339
|
+
if (!(line.startsWith("data:") ?? null)) {
|
|
340
|
+
continue;
|
|
341
|
+
}
|
|
342
|
+
let data = (line.slice(5) ?? null).trim() ?? null;
|
|
343
|
+
if (data === "") {
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
if (data === "[DONE]") {
|
|
347
|
+
sawDone = true;
|
|
348
|
+
continue;
|
|
349
|
+
}
|
|
350
|
+
let chunk = null;
|
|
351
|
+
try {
|
|
352
|
+
{
|
|
353
|
+
chunk = JSON.parse(data) ?? null;
|
|
354
|
+
}
|
|
355
|
+
} catch (e) {
|
|
356
|
+
{
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
if (chunk == null || ((__v) => __v == null ? "null" : typeof __v)(chunk) !== "object") {
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
if (chunk.error) {
|
|
364
|
+
let code = ((__v) => __v == null ? "null" : typeof __v)(chunk.error) === "object" && ((__v) => __v == null ? "null" : typeof __v)(chunk.error.code) === "string" ? chunk.error.code : "ai_upstream";
|
|
365
|
+
throw agentModelError(streamErrorMessage(chunk, null) ?? null, code, 502) ?? null;
|
|
366
|
+
}
|
|
367
|
+
let choice = (Array.isArray(chunk.choices) ?? null) && chunk.choices.length > 0 ? chunk.choices[0] ?? null : null;
|
|
368
|
+
let delta = choice != null ? choice.delta ?? null : null;
|
|
369
|
+
if (delta == null) {
|
|
370
|
+
continue;
|
|
371
|
+
}
|
|
372
|
+
if (((__v) => __v == null ? "null" : typeof __v)(delta.content) === "string" && delta.content !== "") {
|
|
373
|
+
text = text + delta.content;
|
|
374
|
+
out.push({ textDelta: delta.content }) ?? null;
|
|
375
|
+
}
|
|
376
|
+
let r = ((__v) => __v == null ? "null" : typeof __v)(delta.reasoning) === "string" ? delta.reasoning : ((__v) => __v == null ? "null" : typeof __v)(delta.reasoning_content) === "string" ? delta.reasoning_content : "";
|
|
377
|
+
if (r !== "") {
|
|
378
|
+
reasoning = reasoning + r;
|
|
379
|
+
out.push({ reasoningDelta: r }) ?? null;
|
|
380
|
+
}
|
|
381
|
+
for (const tc of Array.isArray(delta.tool_calls) ?? null ? delta.tool_calls : []) {
|
|
382
|
+
let i = ((__v) => __v == null ? "null" : typeof __v)(tc.index) === "number" ? tc.index : order.length > 0 ? order[order.length - 1] ?? null : 0;
|
|
383
|
+
if (!(calls.has(i) ?? null)) {
|
|
384
|
+
calls.set(i, { id: null, name: "", arguments: "" }) ?? null;
|
|
385
|
+
order.push(i) ?? null;
|
|
386
|
+
}
|
|
387
|
+
let call = calls.get(i) ?? null;
|
|
388
|
+
if (((__v) => __v == null ? "null" : typeof __v)(tc.id) === "string" && tc.id !== "") {
|
|
389
|
+
call.id = tc.id;
|
|
390
|
+
}
|
|
391
|
+
let f = tc["function"] ?? null ?? null;
|
|
392
|
+
if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.name) === "string") {
|
|
393
|
+
call.name = call.name + f.name;
|
|
394
|
+
}
|
|
395
|
+
if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.arguments) === "string" && f.arguments !== "") {
|
|
396
|
+
call.arguments = call.arguments + f.arguments;
|
|
397
|
+
out.push({ toolProgress: { index: i, name: call.name, bytes: call.arguments.length, arguments: call.arguments } }) ?? null;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return out;
|
|
402
|
+
}
|
|
403
|
+
}, result: () => {
|
|
404
|
+
{
|
|
405
|
+
let toolCalls = [];
|
|
406
|
+
let n = 0;
|
|
407
|
+
for (const i of order) {
|
|
408
|
+
let c = calls.get(i) ?? null;
|
|
409
|
+
if (c.name !== "") {
|
|
410
|
+
toolCalls.push({ id: c.id ?? "call_" + (String(n) ?? null), name: c.name, arguments: c.arguments }) ?? null;
|
|
411
|
+
}
|
|
412
|
+
n = n + 1;
|
|
413
|
+
}
|
|
414
|
+
return { text, reasoning, sawDone, toolCalls };
|
|
415
|
+
}
|
|
416
|
+
} };
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function appendBytes(pending, chunk) {
|
|
420
|
+
{
|
|
421
|
+
let out = pending.slice() ?? null;
|
|
422
|
+
let i = 0;
|
|
423
|
+
while (i < chunk.length) {
|
|
424
|
+
out.push(chunk[i] ?? null) ?? null;
|
|
425
|
+
i = i + 1;
|
|
426
|
+
}
|
|
427
|
+
return out;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
function callHook(hooks, name, value) {
|
|
431
|
+
{
|
|
432
|
+
if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
let h = hooks[name] ?? null;
|
|
436
|
+
if (((__v) => __v == null ? "null" : typeof __v)(h) === "function") {
|
|
437
|
+
h(value) ?? null;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
function createHyperyModel(opts) {
|
|
442
|
+
{
|
|
443
|
+
let idleMs = ((__v) => __v == null ? "null" : typeof __v)(opts.idleTimeoutMs) === "number" ? opts.idleTimeoutMs : DEFAULT_IDLE_TIMEOUT_MS;
|
|
444
|
+
let limit = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRequestBytes) === "number" ? opts.maxRequestBytes : MAX_REQUEST_BYTES;
|
|
445
|
+
let base = ((__v) => __v == null ? "null" : typeof __v)(opts.gatewayUrl) === "string" && opts.gatewayUrl !== "" ? opts.gatewayUrl : "https://hypery.ai";
|
|
446
|
+
if (base.endsWith("/") ?? null) {
|
|
447
|
+
base = base.slice(0, base.length - 1) ?? null;
|
|
448
|
+
}
|
|
449
|
+
return async (messages, tools, hooks, signal, req) => {
|
|
450
|
+
{
|
|
451
|
+
let token = await (resolve(opts.token) ?? null);
|
|
452
|
+
if (((__v) => __v == null ? "null" : typeof __v)(token) !== "string" || token === "") {
|
|
453
|
+
throw agentModelError("Sign in to Hypery to use the agent.", "ai_reauth", 401) ?? null;
|
|
454
|
+
}
|
|
455
|
+
let model = await (resolve(opts.model) ?? null);
|
|
456
|
+
let team = await (resolve(opts.team) ?? null);
|
|
457
|
+
let paymentSource = await (resolve(opts.paymentSource) ?? null);
|
|
458
|
+
let hasTools = (Array.isArray(tools) ?? null) && tools.length > 0;
|
|
459
|
+
let request = { model, messages, stream: true, max_tokens: ((__v) => __v == null ? "null" : typeof __v)(opts.maxTokens) === "number" ? opts.maxTokens : hasTools ? 16384 : 4096 };
|
|
460
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.temperature) === "number") {
|
|
461
|
+
request.temperature = opts.temperature;
|
|
462
|
+
}
|
|
463
|
+
if (hasTools) {
|
|
464
|
+
request.tools = tools;
|
|
465
|
+
let choice = req != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object" ? req.toolChoice ?? null : null;
|
|
466
|
+
request.tool_choice = choice != null ? choice : "auto";
|
|
467
|
+
}
|
|
468
|
+
let body = JSON.stringify(request) ?? null;
|
|
469
|
+
if (body.length > limit) {
|
|
470
|
+
throw agentModelError("This message is too large to send (" + ((body.length / 1e6).toFixed(1) ?? null) + " MB with its images). Send fewer or smaller images.", "too_large", 413) ?? null;
|
|
471
|
+
}
|
|
472
|
+
let headers = { Authorization: "Bearer " + token, "Content-Type": "application/json", Accept: "text/event-stream" };
|
|
473
|
+
if (((__v) => __v == null ? "null" : typeof __v)(team) === "string" && team !== "") {
|
|
474
|
+
headers[HYPERY_TEAM_HEADER] = team;
|
|
475
|
+
}
|
|
476
|
+
if (((__v) => __v == null ? "null" : typeof __v)(paymentSource) === "string" && paymentSource !== "") {
|
|
477
|
+
headers[HYPERY_PAYMENT_SOURCE_HEADER2] = paymentSource;
|
|
478
|
+
}
|
|
479
|
+
let init = { method: "POST", headers, body };
|
|
480
|
+
if (signal != null && ((__v) => __v == null ? "null" : typeof __v)(signal.addEventListener) === "function") {
|
|
481
|
+
init.signal = signal;
|
|
482
|
+
}
|
|
483
|
+
let res = null;
|
|
484
|
+
try {
|
|
485
|
+
{
|
|
486
|
+
res = await (opts.fetch(base + "/api/v1/chat/completions", init) ?? null);
|
|
487
|
+
}
|
|
488
|
+
} catch (err) {
|
|
489
|
+
{
|
|
490
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && err.name === "AbortError") {
|
|
491
|
+
throw err;
|
|
492
|
+
}
|
|
493
|
+
throw agentModelError("Could not reach Hypery. Check your connection.", "network", 0) ?? null;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
if (res.ok !== true || res.body == null) {
|
|
497
|
+
let text = "";
|
|
498
|
+
try {
|
|
499
|
+
{
|
|
500
|
+
text = await (res.text() ?? null);
|
|
501
|
+
}
|
|
502
|
+
} catch (e) {
|
|
503
|
+
{
|
|
504
|
+
text = "";
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
let payload = text;
|
|
508
|
+
try {
|
|
509
|
+
{
|
|
510
|
+
payload = JSON.parse(text) ?? null;
|
|
511
|
+
}
|
|
512
|
+
} catch (e) {
|
|
513
|
+
{
|
|
514
|
+
payload = text;
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
throw agentModelError(streamErrorMessage(payload, "The AI request failed (" + (String(res.status) ?? null) + ").") ?? null, errorCodeFor(res.status, payload) ?? null, res.status) ?? null;
|
|
518
|
+
}
|
|
519
|
+
let acc = createStreamAccumulator() ?? null;
|
|
520
|
+
let reader = res.body.getReader() ?? null;
|
|
521
|
+
let pending = [];
|
|
522
|
+
let stopReading = () => {
|
|
523
|
+
{
|
|
524
|
+
if (((__v) => __v == null ? "null" : typeof __v)(reader.cancel) === "function") {
|
|
525
|
+
try {
|
|
526
|
+
{
|
|
527
|
+
reader.cancel() ?? null;
|
|
528
|
+
}
|
|
529
|
+
} catch (e) {
|
|
530
|
+
{
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
while (true) {
|
|
537
|
+
if (signal != null && signal.aborted === true) {
|
|
538
|
+
stopReading() ?? null;
|
|
539
|
+
throw { name: "AbortError", message: "The request was stopped." };
|
|
540
|
+
}
|
|
541
|
+
let next = await (Promise.race([reader.read() ?? null, delay(idleMs) ?? null]) ?? null);
|
|
542
|
+
if (next == null) {
|
|
543
|
+
stopReading() ?? null;
|
|
544
|
+
throw agentModelError("The model stopped responding.", "ai_timeout", 504) ?? null;
|
|
545
|
+
}
|
|
546
|
+
if (next.done === true) {
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
549
|
+
if (next.value == null) {
|
|
550
|
+
continue;
|
|
551
|
+
}
|
|
552
|
+
let bytes = appendBytes(pending, next.value) ?? null;
|
|
553
|
+
let whole = utf8Complete(bytes) ?? null;
|
|
554
|
+
pending = bytes.slice(whole) ?? null;
|
|
555
|
+
let events = [];
|
|
556
|
+
try {
|
|
557
|
+
{
|
|
558
|
+
events = acc.push(utf8Decode(bytes.slice(0, whole) ?? null) ?? null) ?? null;
|
|
559
|
+
}
|
|
560
|
+
} catch (err) {
|
|
561
|
+
{
|
|
562
|
+
stopReading() ?? null;
|
|
563
|
+
throw err;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
for (const e of events) {
|
|
567
|
+
if (((__v) => __v == null ? "null" : typeof __v)(e.textDelta) === "string") {
|
|
568
|
+
callHook(hooks, "onTextDelta", e.textDelta) ?? null;
|
|
569
|
+
}
|
|
570
|
+
if (((__v) => __v == null ? "null" : typeof __v)(e.reasoningDelta) === "string") {
|
|
571
|
+
callHook(hooks, "onReasoningDelta", e.reasoningDelta) ?? null;
|
|
572
|
+
}
|
|
573
|
+
if (e.toolProgress != null) {
|
|
574
|
+
callHook(hooks, "onToolProgress", e.toolProgress) ?? null;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
if (pending.length > 0) {
|
|
579
|
+
acc.push(utf8Decode(pending) ?? null) ?? null;
|
|
580
|
+
}
|
|
581
|
+
acc.push("\n") ?? null;
|
|
582
|
+
let r = acc.result() ?? null;
|
|
583
|
+
if (!r.sawDone && r.text === "" && r.toolCalls.length === 0) {
|
|
584
|
+
throw agentModelError("The response was cut off before it started. Try again.", "ai_upstream", 502) ?? null;
|
|
585
|
+
}
|
|
586
|
+
return { text: r.text, reasoning: r.reasoning, toolCalls: r.toolCalls };
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
593
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
594
|
+
|
|
595
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
596
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
597
|
+
|
|
598
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/context.js
|
|
599
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
600
|
+
var RENDER_TURN_PREFIX = "Result of ";
|
|
601
|
+
var KEEP_IMAGE_TURNS = 2;
|
|
602
|
+
function sizeOf(messages) {
|
|
603
|
+
{
|
|
604
|
+
return (JSON.stringify(messages) ?? null).length;
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
function isRenderTurn(m) {
|
|
608
|
+
{
|
|
609
|
+
if (m.role !== "user" || !(Array.isArray(m.content) ?? null) || m.content.length === 0) {
|
|
610
|
+
return false;
|
|
611
|
+
}
|
|
612
|
+
let first = m.content[0] ?? null;
|
|
613
|
+
return first.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(first.text) === "string" && (first.text.startsWith(RENDER_TURN_PREFIX) ?? null);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
function countImages(parts) {
|
|
617
|
+
{
|
|
618
|
+
return (parts.filter((p) => {
|
|
619
|
+
{
|
|
620
|
+
return p.type === "image_url";
|
|
621
|
+
}
|
|
622
|
+
}) ?? null).length;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
function textOf(parts) {
|
|
626
|
+
{
|
|
627
|
+
return ((parts.filter((p) => {
|
|
628
|
+
{
|
|
629
|
+
return p.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(p.text) === "string" && p.text !== "";
|
|
630
|
+
}
|
|
631
|
+
}) ?? null).map((p) => {
|
|
632
|
+
{
|
|
633
|
+
return p.text;
|
|
634
|
+
}
|
|
635
|
+
}) ?? null).join(" ") ?? null;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function imagesLabel(n) {
|
|
639
|
+
{
|
|
640
|
+
return n === 1 ? "image" : (String(n) ?? null) + " images";
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
function pruneOldImages(messages, keep) {
|
|
644
|
+
{
|
|
645
|
+
let limit = ((__v) => __v == null ? "null" : typeof __v)(keep) === "number" ? keep : KEEP_IMAGE_TURNS;
|
|
646
|
+
let seen = 0;
|
|
647
|
+
let i = messages.length - 1;
|
|
648
|
+
while (i >= 0) {
|
|
649
|
+
let m = messages[i] ?? null;
|
|
650
|
+
if ((isRenderTurn(m) ?? null) && (countImages(m.content) ?? null) > 0) {
|
|
651
|
+
seen = seen + 1;
|
|
652
|
+
if (seen > limit) {
|
|
653
|
+
let note = (textOf(m.content) ?? null) + " [" + (imagesLabel(countImages(m.content) ?? null) ?? null) + " omitted: superseded by a later view.]";
|
|
654
|
+
messages[i] = { ...m, content: note.trim() ?? null };
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
i = i - 1;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
function fitImagesToBudget(messages, budget) {
|
|
662
|
+
{
|
|
663
|
+
if ((sizeOf(messages) ?? null) <= budget) {
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
666
|
+
let i = 0;
|
|
667
|
+
while (i < messages.length && (sizeOf(messages) ?? null) > budget) {
|
|
668
|
+
let m = messages[i] ?? null;
|
|
669
|
+
if (isRenderTurn(m) ?? null) {
|
|
670
|
+
let parts = m.content.slice() ?? null;
|
|
671
|
+
let dropped = 0;
|
|
672
|
+
let j = parts.length - 1;
|
|
673
|
+
while (j >= 0 && (sizeOf(messages) ?? null) > budget) {
|
|
674
|
+
if ((parts[j] ?? null).type === "image_url") {
|
|
675
|
+
parts.splice(j, 1) ?? null;
|
|
676
|
+
dropped = dropped + 1;
|
|
677
|
+
messages[i] = { ...m, content: parts.slice() ?? null };
|
|
678
|
+
}
|
|
679
|
+
j = j - 1;
|
|
680
|
+
}
|
|
681
|
+
if (dropped > 0) {
|
|
682
|
+
let label = dropped === 1 ? "1 image" : (String(dropped) ?? null) + " images";
|
|
683
|
+
let note = (textOf(parts) ?? null) + " [" + label + " omitted to keep the request under the size limit.]";
|
|
684
|
+
messages[i] = { ...m, content: note.trim() ?? null };
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
i = i + 1;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
function safeTailStart(messages, want) {
|
|
692
|
+
{
|
|
693
|
+
let i = Math.max(1, messages.length - want) ?? null;
|
|
694
|
+
while (i < messages.length && (messages[i] ?? null).role === "tool") {
|
|
695
|
+
i = i + 1;
|
|
696
|
+
}
|
|
697
|
+
return i;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
async function compactTranscript(messages, opts) {
|
|
701
|
+
{
|
|
702
|
+
if ((sizeOf(messages) ?? null) <= opts.maxChars) {
|
|
703
|
+
return false;
|
|
704
|
+
}
|
|
705
|
+
let head = messages.length > 0 && (messages[0] ?? null).role === "system" ? 1 : 0;
|
|
706
|
+
let firstUser = -1;
|
|
707
|
+
let k = head;
|
|
708
|
+
while (k < messages.length && firstUser < 0) {
|
|
709
|
+
if ((messages[k] ?? null).role === "user") {
|
|
710
|
+
firstUser = k;
|
|
711
|
+
}
|
|
712
|
+
k = k + 1;
|
|
713
|
+
}
|
|
714
|
+
let keepFrom = firstUser >= 0 ? firstUser + 1 : head;
|
|
715
|
+
let tail = safeTailStart(messages, ((__v) => __v == null ? "null" : typeof __v)(opts.keepRecent) === "number" ? opts.keepRecent : 12) ?? null;
|
|
716
|
+
if (tail <= keepFrom) {
|
|
717
|
+
return false;
|
|
718
|
+
}
|
|
719
|
+
let dropped = messages.slice(keepFrom, tail) ?? null;
|
|
720
|
+
let summary = "";
|
|
721
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.summarize) === "function") {
|
|
722
|
+
try {
|
|
723
|
+
{
|
|
724
|
+
summary = await (opts.summarize(dropped) ?? null);
|
|
725
|
+
}
|
|
726
|
+
} catch (e) {
|
|
727
|
+
{
|
|
728
|
+
summary = "";
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
let content = summary !== "" ? "Summary of the earlier work in this session (the details were compacted to save space):\n" + summary : "[" + (String(dropped.length) ?? null) + " earlier messages were compacted to save space. Look again at anything you need from them.]";
|
|
733
|
+
messages.splice(keepFrom, dropped.length, { role: "user", content }) ?? null;
|
|
734
|
+
return true;
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
739
|
+
var DEFAULT_MAX_ROUNDS = 40;
|
|
740
|
+
var DEFAULT_MAX_PARALLEL = 4;
|
|
741
|
+
var DEFAULT_ACTION_NUDGE = "You have not changed anything yet. Stop reading and do what was asked now, with the tools that make changes. If you truly cannot, say exactly what is blocking you.";
|
|
742
|
+
var RENDER_TURN_PREFIX2 = "Result of ";
|
|
743
|
+
var RECOVERABLE_WORDS = ["timeout", "timed out", "stalled", "network", "fetch failed", "econnreset", "socket", "stream"];
|
|
744
|
+
function batchCalls(calls, isParallel, max) {
|
|
745
|
+
{
|
|
746
|
+
let batches = [];
|
|
747
|
+
for (const call of calls) {
|
|
748
|
+
let last = batches.length > 0 ? batches[batches.length - 1] ?? null : null;
|
|
749
|
+
let parallel = isParallel(call.name) ?? null;
|
|
750
|
+
if (parallel && last != null && last.length < max && (isParallel((last[0] ?? null).name) ?? null)) {
|
|
751
|
+
last.push(call) ?? null;
|
|
752
|
+
} else {
|
|
753
|
+
batches.push([call]) ?? null;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
return batches;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
function truncateResult(text, max) {
|
|
760
|
+
{
|
|
761
|
+
if (text.length <= max) {
|
|
762
|
+
return text;
|
|
763
|
+
}
|
|
764
|
+
return (text.slice(0, max) ?? null) + "\n\u2026[truncated " + (String(text.length - max) ?? null) + " characters]";
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
function defaultIsRecoverable(err) {
|
|
768
|
+
{
|
|
769
|
+
if (err == null || ((__v) => __v == null ? "null" : typeof __v)(err) !== "object") {
|
|
770
|
+
return false;
|
|
771
|
+
}
|
|
772
|
+
if (((__v) => __v == null ? "null" : typeof __v)(err.status) === "number") {
|
|
773
|
+
return err.status >= 500 || err.status === 408 || err.status === 429;
|
|
774
|
+
}
|
|
775
|
+
let text = ((String(err.name ?? "") ?? null) + " " + (String(err.code ?? "") ?? null) + " " + (String(err.message ?? "") ?? null)).toLowerCase() ?? null;
|
|
776
|
+
return RECOVERABLE_WORDS.some((w) => {
|
|
777
|
+
{
|
|
778
|
+
return text.includes(w) ?? null;
|
|
779
|
+
}
|
|
780
|
+
}) ?? null;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
function errorMessage(err) {
|
|
784
|
+
{
|
|
785
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
786
|
+
return err.message;
|
|
787
|
+
}
|
|
788
|
+
return String(err) ?? null;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
function repairTranscript(messages) {
|
|
792
|
+
{
|
|
793
|
+
let i = 0;
|
|
794
|
+
while (i < messages.length) {
|
|
795
|
+
let m = messages[i] ?? null;
|
|
796
|
+
if (m.role === "assistant" && (Array.isArray(m.tool_calls) ?? null) && m.tool_calls.length > 0) {
|
|
797
|
+
let j = i + 1;
|
|
798
|
+
let answered = /* @__PURE__ */ new Set() ?? null;
|
|
799
|
+
while (j < messages.length && (messages[j] ?? null).role === "tool") {
|
|
800
|
+
answered.add((messages[j] ?? null).tool_call_id ?? "") ?? null;
|
|
801
|
+
j = j + 1;
|
|
802
|
+
}
|
|
803
|
+
let missing = m.tool_calls.filter((c) => {
|
|
804
|
+
{
|
|
805
|
+
return !(answered.has(c.id) ?? null);
|
|
806
|
+
}
|
|
807
|
+
}) ?? null;
|
|
808
|
+
if (missing.length > 0) {
|
|
809
|
+
let fillers = missing.map((c) => {
|
|
810
|
+
{
|
|
811
|
+
return { role: "tool", tool_call_id: c.id, name: (c["function"] ?? null).name, content: JSON.stringify({ error: "interrupted: this call did not finish (the session was interrupted). Check its effect and run it again if needed." }) ?? null };
|
|
812
|
+
}
|
|
813
|
+
}) ?? null;
|
|
814
|
+
messages.splice(j, 0, ...fillers) ?? null;
|
|
815
|
+
i = j + missing.length - 1;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
i = i + 1;
|
|
819
|
+
}
|
|
820
|
+
return messages;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
function hook(hooks, name) {
|
|
824
|
+
{
|
|
825
|
+
if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
|
|
826
|
+
return null;
|
|
827
|
+
}
|
|
828
|
+
let h = hooks[name] ?? null;
|
|
829
|
+
return ((__v) => __v == null ? "null" : typeof __v)(h) === "function" ? h : null;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
async function runAgentLoop(opts) {
|
|
833
|
+
{
|
|
834
|
+
let maxRounds = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRounds) === "number" ? opts.maxRounds : DEFAULT_MAX_ROUNDS;
|
|
835
|
+
let maxResultChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxResultChars) === "number" ? opts.maxResultChars : 8e3;
|
|
836
|
+
let maxParallel = ((__v) => __v == null ? "null" : typeof __v)(opts.maxParallel) === "number" ? opts.maxParallel : DEFAULT_MAX_PARALLEL;
|
|
837
|
+
let hooks = opts.hooks ?? null;
|
|
838
|
+
let specs = opts.tools.map((t) => {
|
|
839
|
+
{
|
|
840
|
+
return t.spec;
|
|
841
|
+
}
|
|
842
|
+
}) ?? null;
|
|
843
|
+
let parallelNames = new Set((opts.tools.filter((t) => {
|
|
844
|
+
{
|
|
845
|
+
return t.readOnly === true;
|
|
846
|
+
}
|
|
847
|
+
}) ?? null).map((t) => {
|
|
848
|
+
{
|
|
849
|
+
return (t.spec["function"] ?? null).name;
|
|
850
|
+
}
|
|
851
|
+
}) ?? null) ?? null;
|
|
852
|
+
let actingNames = new Set((opts.tools.filter((t) => {
|
|
853
|
+
{
|
|
854
|
+
return ((__v) => __v == null ? "null" : typeof __v)(t.acts) === "boolean" ? t.acts : t.readOnly !== true;
|
|
855
|
+
}
|
|
856
|
+
}) ?? null).map((t) => {
|
|
857
|
+
{
|
|
858
|
+
return (t.spec["function"] ?? null).name;
|
|
859
|
+
}
|
|
860
|
+
}) ?? null) ?? null;
|
|
861
|
+
let require2 = null;
|
|
862
|
+
if (opts.requireAction === true) {
|
|
863
|
+
require2 = {};
|
|
864
|
+
}
|
|
865
|
+
if (opts.requireAction != null && ((__v) => __v == null ? "null" : typeof __v)(opts.requireAction) === "object") {
|
|
866
|
+
require2 = opts.requireAction;
|
|
867
|
+
}
|
|
868
|
+
let resume = opts.resumeState ?? {};
|
|
869
|
+
let nudgesLeft = ((__v) => __v == null ? "null" : typeof __v)(resume.nudgesLeft) === "number" ? resume.nudgesLeft : require2 != null ? ((__v) => __v == null ? "null" : typeof __v)(require2.nudges) === "number" ? require2.nudges : 2 : 0;
|
|
870
|
+
let signal = opts.signal ?? null;
|
|
871
|
+
let isStopped = () => {
|
|
872
|
+
{
|
|
873
|
+
if (signal != null && signal.aborted === true) {
|
|
874
|
+
return true;
|
|
875
|
+
}
|
|
876
|
+
return ((__v) => __v == null ? "null" : typeof __v)(opts.stopped) === "function" && (opts.stopped() ?? null) === true;
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
let messages = repairTranscript(opts.messages.slice() ?? null) ?? null;
|
|
880
|
+
let text = "";
|
|
881
|
+
let acted = resume.acted === true;
|
|
882
|
+
let retries = ((__v) => __v == null ? "null" : typeof __v)(opts.modelRetries) === "number" ? opts.modelRetries : 2;
|
|
883
|
+
let recoverable = ((__v) => __v == null ? "null" : typeof __v)(opts.isRecoverable) === "function" ? opts.isRecoverable : defaultIsRecoverable;
|
|
884
|
+
let ctx = opts.context ?? {};
|
|
885
|
+
let maxRequestChars = ((__v) => __v == null ? "null" : typeof __v)(ctx.maxRequestChars) === "number" ? ctx.maxRequestChars : 43e5;
|
|
886
|
+
let save = async (round2, done) => {
|
|
887
|
+
{
|
|
888
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
|
|
889
|
+
await (opts.checkpoint({ messages: messages.slice() ?? null, round: round2, acted, nudgesLeft, done }) ?? null);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
};
|
|
893
|
+
let drain = () => {
|
|
894
|
+
{
|
|
895
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.drainNotifications) !== "function") {
|
|
896
|
+
return [];
|
|
897
|
+
}
|
|
898
|
+
let notes = opts.drainNotifications() ?? null;
|
|
899
|
+
return Array.isArray(notes) ?? null ? notes : [];
|
|
900
|
+
}
|
|
901
|
+
};
|
|
902
|
+
let modelHooks = { onTextDelta: hook(hooks, "onTextDelta") ?? null, onReasoningDelta: hook(hooks, "onReasoningDelta") ?? null, onToolProgress: hook(hooks, "onToolProgress") ?? null };
|
|
903
|
+
let choiceFor = (round2) => {
|
|
904
|
+
{
|
|
905
|
+
let c = opts.toolChoice ?? null;
|
|
906
|
+
if (((__v) => __v == null ? "null" : typeof __v)(c) === "function") {
|
|
907
|
+
c = c(round2) ?? null ?? null;
|
|
908
|
+
}
|
|
909
|
+
return c;
|
|
910
|
+
}
|
|
911
|
+
};
|
|
912
|
+
let call = async (msgs, tools, choice) => {
|
|
913
|
+
{
|
|
914
|
+
let attempt = 0;
|
|
915
|
+
while (true) {
|
|
916
|
+
try {
|
|
917
|
+
{
|
|
918
|
+
if (choice == null || tools.length === 0) {
|
|
919
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal) ?? null);
|
|
920
|
+
}
|
|
921
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal, { toolChoice: choice }) ?? null);
|
|
922
|
+
}
|
|
923
|
+
} catch (err) {
|
|
924
|
+
{
|
|
925
|
+
if ((isStopped() ?? null) || attempt >= retries || !(recoverable(err) ?? null)) {
|
|
926
|
+
throw err;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
attempt = attempt + 1;
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
};
|
|
934
|
+
let round = ((__v) => __v == null ? "null" : typeof __v)(resume.round) === "number" ? resume.round : 0;
|
|
935
|
+
while (maxRounds === 0 || round < maxRounds) {
|
|
936
|
+
if (isStopped() ?? null) {
|
|
937
|
+
await (save(round, true) ?? null);
|
|
938
|
+
return { messages, text, rounds: round, exhausted: false, stopped: true, acted };
|
|
939
|
+
}
|
|
940
|
+
for (const note of drain() ?? null) {
|
|
941
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
942
|
+
}
|
|
943
|
+
pruneOldImages(messages, ctx.keepImageTurns ?? null) ?? null;
|
|
944
|
+
if (ctx.compact != null && ((__v) => __v == null ? "null" : typeof __v)(ctx.compact) === "object") {
|
|
945
|
+
await (compactTranscript(messages, ctx.compact) ?? null);
|
|
946
|
+
}
|
|
947
|
+
fitImagesToBudget(messages, maxRequestChars - (JSON.stringify(specs) ?? null).length) ?? null;
|
|
948
|
+
let onStart = hook(hooks, "onAssistantStart") ?? null;
|
|
949
|
+
if (onStart != null) {
|
|
950
|
+
onStart(round) ?? null;
|
|
951
|
+
}
|
|
952
|
+
let turn = await (call(messages, specs, choiceFor(round) ?? null) ?? null);
|
|
953
|
+
text = turn.text;
|
|
954
|
+
let toolCalls = Array.isArray(turn.toolCalls) ?? null ? turn.toolCalls : [];
|
|
955
|
+
if (toolCalls.length > 0) {
|
|
956
|
+
messages.push({ role: "assistant", content: turn.text, tool_calls: toolCalls.map((c) => {
|
|
957
|
+
{
|
|
958
|
+
return { id: c.id, type: "function", function: { name: c.name, arguments: c.arguments } };
|
|
959
|
+
}
|
|
960
|
+
}) ?? null }) ?? null;
|
|
961
|
+
} else {
|
|
962
|
+
messages.push({ role: "assistant", content: turn.text }) ?? null;
|
|
963
|
+
}
|
|
964
|
+
if (toolCalls.length === 0) {
|
|
965
|
+
let onEnd = hook(hooks, "onRoundEnd") ?? null;
|
|
966
|
+
if (onEnd != null) {
|
|
967
|
+
onEnd(round) ?? null;
|
|
968
|
+
}
|
|
969
|
+
let late = drain() ?? null;
|
|
970
|
+
if (late.length > 0) {
|
|
971
|
+
for (const note of late) {
|
|
972
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
973
|
+
}
|
|
974
|
+
round = round + 1;
|
|
975
|
+
continue;
|
|
976
|
+
}
|
|
977
|
+
if (require2 != null && !acted && nudgesLeft > 0 && actingNames.size > 0) {
|
|
978
|
+
nudgesLeft = nudgesLeft - 1;
|
|
979
|
+
let nudge = ((__v) => __v == null ? "null" : typeof __v)(require2.message) === "string" ? require2.message : DEFAULT_ACTION_NUDGE;
|
|
980
|
+
let onNudge = hook(hooks, "onNudge") ?? null;
|
|
981
|
+
if (onNudge != null) {
|
|
982
|
+
onNudge(nudge) ?? null;
|
|
983
|
+
}
|
|
984
|
+
messages.push({ role: "user", content: nudge }) ?? null;
|
|
985
|
+
await (save(round + 1, false) ?? null);
|
|
986
|
+
round = round + 1;
|
|
987
|
+
continue;
|
|
988
|
+
}
|
|
989
|
+
await (save(round + 1, true) ?? null);
|
|
990
|
+
return { messages, text, rounds: round + 1, exhausted: false, stopped: false, acted };
|
|
991
|
+
}
|
|
992
|
+
let calls = toolCalls.map((c) => {
|
|
993
|
+
{
|
|
994
|
+
return { id: c.id, name: c.name, argsText: c.arguments };
|
|
995
|
+
}
|
|
996
|
+
}) ?? null;
|
|
997
|
+
let imageTurns = [];
|
|
998
|
+
for (const batch of batchCalls(calls, (n) => {
|
|
999
|
+
{
|
|
1000
|
+
return parallelNames.has(n) ?? null;
|
|
1001
|
+
}
|
|
1002
|
+
}, maxParallel) ?? null) {
|
|
1003
|
+
if (isStopped() ?? null) {
|
|
1004
|
+
for (const c of calls) {
|
|
1005
|
+
let answered = messages.some((m) => {
|
|
1006
|
+
{
|
|
1007
|
+
return m.role === "tool" && m.tool_call_id === c.id;
|
|
1008
|
+
}
|
|
1009
|
+
}) ?? null;
|
|
1010
|
+
if (!answered) {
|
|
1011
|
+
messages.push({ role: "tool", tool_call_id: c.id, name: c.name, content: JSON.stringify({ error: "stopped" }) ?? null }) ?? null;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
await (save(round + 1, true) ?? null);
|
|
1015
|
+
return { messages, text, rounds: round + 1, exhausted: false, stopped: true, acted };
|
|
1016
|
+
}
|
|
1017
|
+
let onToolStart = hook(hooks, "onToolStart") ?? null;
|
|
1018
|
+
if (onToolStart != null) {
|
|
1019
|
+
for (const info of batch) {
|
|
1020
|
+
onToolStart(info) ?? null;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
let runs2 = await (Promise.all(batch.map(async (info) => {
|
|
1024
|
+
{
|
|
1025
|
+
try {
|
|
1026
|
+
{
|
|
1027
|
+
return await (opts.execTool(info) ?? null);
|
|
1028
|
+
}
|
|
1029
|
+
} catch (err) {
|
|
1030
|
+
{
|
|
1031
|
+
let message = errorMessage(err) ?? null;
|
|
1032
|
+
return { id: info.id, name: info.name, argsText: info.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }) ?? null };
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
}) ?? null) ?? null);
|
|
1037
|
+
let onToolEnd = hook(hooks, "onToolEnd") ?? null;
|
|
1038
|
+
for (const run of runs2) {
|
|
1039
|
+
let actedHere = ((__v) => __v == null ? "null" : typeof __v)(run.acted) === "boolean" ? run.acted : actingNames.has(run.name) ?? null;
|
|
1040
|
+
if (run.ok === true && actedHere) {
|
|
1041
|
+
acted = true;
|
|
1042
|
+
}
|
|
1043
|
+
if (onToolEnd != null) {
|
|
1044
|
+
onToolEnd(run) ?? null;
|
|
1045
|
+
}
|
|
1046
|
+
messages.push({ role: "tool", tool_call_id: run.id, name: run.name, content: truncateResult(run.content, maxResultChars) ?? null }) ?? null;
|
|
1047
|
+
if ((Array.isArray(run.images) ?? null) && run.images.length > 0) {
|
|
1048
|
+
let label = run.images.length === 1 ? "the rendered view" : (String(run.images.length) ?? null) + " rendered views";
|
|
1049
|
+
let parts = [{ type: "text", text: RENDER_TURN_PREFIX2 + run.name + ": " + label + "." }];
|
|
1050
|
+
for (const url of run.images) {
|
|
1051
|
+
parts.push({ type: "image_url", image_url: { url } }) ?? null;
|
|
1052
|
+
}
|
|
1053
|
+
imageTurns.push({ role: "user", content: parts }) ?? null;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
for (const m of imageTurns) {
|
|
1058
|
+
messages.push(m) ?? null;
|
|
1059
|
+
}
|
|
1060
|
+
let onRoundEnd = hook(hooks, "onRoundEnd") ?? null;
|
|
1061
|
+
if (onRoundEnd != null) {
|
|
1062
|
+
onRoundEnd(round) ?? null;
|
|
1063
|
+
}
|
|
1064
|
+
await (save(round + 1, false) ?? null);
|
|
1065
|
+
round = round + 1;
|
|
1066
|
+
}
|
|
1067
|
+
messages.push({ role: "user", content: "You have reached the tool limit for this turn. Summarise what you changed and what is left, without calling more tools." }) ?? null;
|
|
1068
|
+
let final = await (call(messages, [], null) ?? null);
|
|
1069
|
+
messages.push({ role: "assistant", content: final.text }) ?? null;
|
|
1070
|
+
await (save(maxRounds, true) ?? null);
|
|
1071
|
+
return { messages, text: final.text, rounds: maxRounds, exhausted: true, stopped: false, acted };
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
1076
|
+
var delay2 = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
|
|
1077
|
+
var REPORT_TOOL = "report_to_parent";
|
|
1078
|
+
var REPORT_SPEC = { readOnly: true, acts: false, spec: { type: "function", function: { name: REPORT_TOOL, description: "Send the main agent a progress update, or a question (set question) when you need a decision you cannot make yourself. It arrives between its steps and it answers with a message you read at your next step \u2014 keep working on what you can meanwhile. Your final answer still goes back by itself when you finish.", parameters: { type: "object", properties: { message: { type: "string", description: "What to tell the main agent." }, question: { type: "boolean", description: "This needs an answer." } }, required: ["message"] } } } };
|
|
1079
|
+
var WAIT_STEP_MS = 25;
|
|
1080
|
+
function isBusy(s) {
|
|
1081
|
+
{
|
|
1082
|
+
return s != null && (s.status === "running" || s.status === "queued");
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
function plainStopControl() {
|
|
1086
|
+
{
|
|
1087
|
+
let flag = { aborted: false };
|
|
1088
|
+
return { signal: flag, stop: () => {
|
|
1089
|
+
{
|
|
1090
|
+
flag.aborted = true;
|
|
1091
|
+
}
|
|
1092
|
+
} };
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
function allSessions(sessions) {
|
|
1096
|
+
{
|
|
1097
|
+
let out = [];
|
|
1098
|
+
for (const s of sessions.values() ?? null) {
|
|
1099
|
+
out.push(s) ?? null;
|
|
1100
|
+
}
|
|
1101
|
+
return out;
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
function errorMessage2(err) {
|
|
1105
|
+
{
|
|
1106
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1107
|
+
return err.message;
|
|
1108
|
+
}
|
|
1109
|
+
return String(err) ?? null;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
function createAgentRuntime(host) {
|
|
1113
|
+
{
|
|
1114
|
+
let sessions = /* @__PURE__ */ new Map() ?? null;
|
|
1115
|
+
let controls = /* @__PURE__ */ new Map() ?? null;
|
|
1116
|
+
let parentQueue = [];
|
|
1117
|
+
let loaded = false;
|
|
1118
|
+
let loading = null;
|
|
1119
|
+
let active = 0;
|
|
1120
|
+
let waiting = [];
|
|
1121
|
+
let listeners = [];
|
|
1122
|
+
let pendingSaves = 0;
|
|
1123
|
+
let maxConcurrent = ((__v) => __v == null ? "null" : typeof __v)(host.maxConcurrent) === "number" ? host.maxConcurrent : 4;
|
|
1124
|
+
let now = () => {
|
|
1125
|
+
{
|
|
1126
|
+
return ((__v) => __v == null ? "null" : typeof __v)(host.now) === "function" ? host.now() ?? null : Date.now() ?? null;
|
|
1127
|
+
}
|
|
1128
|
+
};
|
|
1129
|
+
let changed = () => {
|
|
1130
|
+
{
|
|
1131
|
+
if (((__v) => __v == null ? "null" : typeof __v)(host.onChange) === "function") {
|
|
1132
|
+
host.onChange() ?? null;
|
|
1133
|
+
}
|
|
1134
|
+
for (const l of listeners.slice() ?? null) {
|
|
1135
|
+
l() ?? null;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
let emit = (e) => {
|
|
1140
|
+
{
|
|
1141
|
+
if (((__v) => __v == null ? "null" : typeof __v)(host.onEvent) === "function") {
|
|
1142
|
+
host.onEvent(e) ?? null;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
let sessionEvent = (s) => {
|
|
1147
|
+
{
|
|
1148
|
+
emit({ type: "session", sessionId: s.id, status: s.status, profile: s.profile, description: s.description }) ?? null;
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
let persist = (s) => {
|
|
1152
|
+
{
|
|
1153
|
+
changed() ?? null;
|
|
1154
|
+
if (host.store == null || ((__v) => __v == null ? "null" : typeof __v)(host.store) !== "object") {
|
|
1155
|
+
return;
|
|
1156
|
+
}
|
|
1157
|
+
pendingSaves = pendingSaves + 1;
|
|
1158
|
+
let save = async () => {
|
|
1159
|
+
{
|
|
1160
|
+
try {
|
|
1161
|
+
{
|
|
1162
|
+
await (host.store.save(s) ?? null);
|
|
1163
|
+
}
|
|
1164
|
+
} catch (e) {
|
|
1165
|
+
{
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
pendingSaves = pendingSaves - 1;
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
save() ?? null;
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
let profileById = (id) => {
|
|
1175
|
+
{
|
|
1176
|
+
let found = (host.profiles() ?? null).filter((p) => {
|
|
1177
|
+
{
|
|
1178
|
+
return p.id === id;
|
|
1179
|
+
}
|
|
1180
|
+
}) ?? null;
|
|
1181
|
+
return found.length > 0 ? found[0] ?? null : null;
|
|
1182
|
+
}
|
|
1183
|
+
};
|
|
1184
|
+
let report = (fromId, text, question) => {
|
|
1185
|
+
{
|
|
1186
|
+
let s = sessions.get(fromId) ?? null ?? null;
|
|
1187
|
+
let who = "agent " + fromId + (s != null ? " (" + s.profile + ")" : "");
|
|
1188
|
+
let asks = question === true;
|
|
1189
|
+
parentQueue.push(asks ? "QUESTION from " + who + " \u2014 it needs your answer (send_message " + fromId + "):\n" + text : "Report from " + who + ":\n" + text) ?? null;
|
|
1190
|
+
emit({ type: "report", sessionId: fromId, message: text, question: asks }) ?? null;
|
|
1191
|
+
changed() ?? null;
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
let run = async (session2, profile, prompt, forceReadOnly, parentSignal, fresh) => {
|
|
1195
|
+
{
|
|
1196
|
+
let control = ((__v) => __v == null ? "null" : typeof __v)(host.createSignal) === "function" ? host.createSignal() ?? null : plainStopControl() ?? null;
|
|
1197
|
+
controls.set(session2.id, control) ?? null;
|
|
1198
|
+
if (parentSignal != null) {
|
|
1199
|
+
if (parentSignal.aborted === true) {
|
|
1200
|
+
control.stop() ?? null;
|
|
1201
|
+
} else if (((__v) => __v == null ? "null" : typeof __v)(parentSignal.addEventListener) === "function") {
|
|
1202
|
+
parentSignal.addEventListener("abort", () => {
|
|
1203
|
+
{
|
|
1204
|
+
control.stop() ?? null;
|
|
1205
|
+
}
|
|
1206
|
+
}) ?? null;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
let ctx = { session: session2, profile, readOnly: forceReadOnly || profile.readOnly === true, signal: control.signal };
|
|
1210
|
+
let tools = (host.childTools(ctx) ?? null).concat([REPORT_SPEC]) ?? null;
|
|
1211
|
+
let childModel = ((__v) => __v == null ? "null" : typeof __v)(host.childModel) === "function" ? host.childModel(ctx) ?? null : null;
|
|
1212
|
+
let budget = ((__v) => __v == null ? "null" : typeof __v)(profile.maxRounds) === "number" && profile.maxRounds > 0 ? profile.maxRounds : ((__v) => __v == null ? "null" : typeof __v)(host.maxRounds) === "number" && host.maxRounds > 0 ? host.maxRounds : 30;
|
|
1213
|
+
let ok = true;
|
|
1214
|
+
let summary = "";
|
|
1215
|
+
let rounds = 0;
|
|
1216
|
+
let wasStopped = () => {
|
|
1217
|
+
{
|
|
1218
|
+
return control.signal.aborted === true || parentSignal != null && parentSignal.aborted === true;
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
try {
|
|
1222
|
+
{
|
|
1223
|
+
let messages = fresh ? [{ role: "system", content: await (host.childSystemPrompt(ctx) ?? null) }, { role: "user", content: prompt }] : session2.transcript.concat([{ role: "user", content: "Message from the main agent:\n" + prompt }]) ?? null;
|
|
1224
|
+
let outcome = await (runAgentLoop({ messages, tools, callModel: ((__v) => __v == null ? "null" : typeof __v)(childModel) === "function" ? childModel : host.callModel, signal: control.signal, stopped: () => {
|
|
1225
|
+
{
|
|
1226
|
+
return parentSignal != null && parentSignal.aborted === true;
|
|
1227
|
+
}
|
|
1228
|
+
}, maxRounds: budget, drainNotifications: () => {
|
|
1229
|
+
{
|
|
1230
|
+
return (session2.inbox.splice(0, session2.inbox.length) ?? null).map((t) => {
|
|
1231
|
+
{
|
|
1232
|
+
return "Message from the main agent:\n" + t;
|
|
1233
|
+
}
|
|
1234
|
+
}) ?? null;
|
|
1235
|
+
}
|
|
1236
|
+
}, execTool: async (call) => {
|
|
1237
|
+
{
|
|
1238
|
+
if (call.name === REPORT_TOOL) {
|
|
1239
|
+
let args = {};
|
|
1240
|
+
try {
|
|
1241
|
+
{
|
|
1242
|
+
args = JSON.parse(call.argsText === "" ? "{}" : call.argsText) ?? null;
|
|
1243
|
+
}
|
|
1244
|
+
} catch (e) {
|
|
1245
|
+
{
|
|
1246
|
+
args = {};
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
report(session2.id, String(args.message ?? "") ?? null, args.question === true) ?? null;
|
|
1250
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: "reported", content: JSON.stringify({ ok: true }) ?? null };
|
|
1251
|
+
}
|
|
1252
|
+
return await (host.execChildTool(call, ctx) ?? null);
|
|
1253
|
+
}
|
|
1254
|
+
}, requireAction: fresh && !ctx.readOnly, hooks: { onToolStart: (c) => {
|
|
1255
|
+
{
|
|
1256
|
+
emit({ type: "tool-start", sessionId: session2.id, name: c.name }) ?? null;
|
|
1257
|
+
}
|
|
1258
|
+
}, onToolEnd: (r) => {
|
|
1259
|
+
{
|
|
1260
|
+
emit({ type: "tool-end", sessionId: session2.id, name: r.name, ok: r.ok, summary: r.summary }) ?? null;
|
|
1261
|
+
}
|
|
1262
|
+
}, onTextDelta: (d) => {
|
|
1263
|
+
{
|
|
1264
|
+
emit({ type: "text", sessionId: session2.id, delta: d }) ?? null;
|
|
1265
|
+
}
|
|
1266
|
+
}, onNudge: (m) => {
|
|
1267
|
+
{
|
|
1268
|
+
emit({ type: "nudge", sessionId: session2.id, message: m }) ?? null;
|
|
1269
|
+
}
|
|
1270
|
+
} } }) ?? null);
|
|
1271
|
+
session2.transcript = outcome.messages;
|
|
1272
|
+
rounds = outcome.rounds;
|
|
1273
|
+
let said = outcome.text.trim() ?? null;
|
|
1274
|
+
summary = said !== "" ? said : outcome.stopped ? "(stopped)" : "(finished without a summary)";
|
|
1275
|
+
ok = !outcome.stopped;
|
|
1276
|
+
}
|
|
1277
|
+
} catch (err) {
|
|
1278
|
+
{
|
|
1279
|
+
ok = false;
|
|
1280
|
+
summary = wasStopped() ?? null ? "(stopped)" : "(agent error: " + (errorMessage2(err) ?? null) + ")";
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
controls.delete(session2.id) ?? null;
|
|
1284
|
+
session2.rounds = session2.rounds + rounds;
|
|
1285
|
+
if (session2.status === "running") {
|
|
1286
|
+
session2.status = ok ? "done" : wasStopped() ?? null ? "stopped" : "error";
|
|
1287
|
+
session2.summary = summary;
|
|
1288
|
+
session2.endedAt = now() ?? null;
|
|
1289
|
+
} else {
|
|
1290
|
+
session2.summary = summary;
|
|
1291
|
+
}
|
|
1292
|
+
if (session2.background && session2.status !== "stopped") {
|
|
1293
|
+
parentQueue.push("Agent " + session2.id + " (" + session2.profile + ") " + (ok ? "finished" : "failed") + ":\n" + summary) ?? null;
|
|
1294
|
+
}
|
|
1295
|
+
sessionEvent(session2) ?? null;
|
|
1296
|
+
persist(session2) ?? null;
|
|
1297
|
+
return { ok, summary, rounds };
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
let takeNext = () => {
|
|
1301
|
+
{
|
|
1302
|
+
while (waiting.length > 0) {
|
|
1303
|
+
let next = waiting.shift() ?? null;
|
|
1304
|
+
if (next.session.status === "queued") {
|
|
1305
|
+
next.session.status = "running";
|
|
1306
|
+
sessionEvent(next.session) ?? null;
|
|
1307
|
+
changed() ?? null;
|
|
1308
|
+
return next;
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
return null;
|
|
1312
|
+
}
|
|
1313
|
+
};
|
|
1314
|
+
let runSlot = (first) => {
|
|
1315
|
+
{
|
|
1316
|
+
((f) => Promise.resolve().then(() => f()))(async () => {
|
|
1317
|
+
{
|
|
1318
|
+
let job = first;
|
|
1319
|
+
while (job != null) {
|
|
1320
|
+
try {
|
|
1321
|
+
{
|
|
1322
|
+
if (job.session.status !== "stopped") {
|
|
1323
|
+
await (job.go() ?? null);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
} catch (e) {
|
|
1327
|
+
{
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
job = takeNext() ?? null;
|
|
1331
|
+
if (job == null) {
|
|
1332
|
+
active = Math.max(0, active - 1) ?? null;
|
|
1333
|
+
if (waiting.length > 0 && active < maxConcurrent) {
|
|
1334
|
+
active = active + 1;
|
|
1335
|
+
job = takeNext() ?? null;
|
|
1336
|
+
if (job == null) {
|
|
1337
|
+
active = Math.max(0, active - 1) ?? null;
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
}) ?? null;
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1346
|
+
let startBackground = (session2, go) => {
|
|
1347
|
+
{
|
|
1348
|
+
if (active < maxConcurrent) {
|
|
1349
|
+
active = active + 1;
|
|
1350
|
+
runSlot({ session: session2, go }) ?? null;
|
|
1351
|
+
return;
|
|
1352
|
+
}
|
|
1353
|
+
session2.status = "queued";
|
|
1354
|
+
sessionEvent(session2) ?? null;
|
|
1355
|
+
changed() ?? null;
|
|
1356
|
+
waiting.push({ session: session2, go }) ?? null;
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1359
|
+
let stop = (id) => {
|
|
1360
|
+
{
|
|
1361
|
+
let s = sessions.get(id) ?? null ?? null;
|
|
1362
|
+
if (s == null || s.status !== "running" && s.status !== "queued") {
|
|
1363
|
+
return false;
|
|
1364
|
+
}
|
|
1365
|
+
let control = controls.get(id) ?? null ?? null;
|
|
1366
|
+
if (control != null) {
|
|
1367
|
+
control.stop() ?? null;
|
|
1368
|
+
}
|
|
1369
|
+
s.status = "stopped";
|
|
1370
|
+
s.endedAt = now() ?? null;
|
|
1371
|
+
persist(s) ?? null;
|
|
1372
|
+
return true;
|
|
1373
|
+
}
|
|
1374
|
+
};
|
|
1375
|
+
let load = async () => {
|
|
1376
|
+
{
|
|
1377
|
+
if (loaded) {
|
|
1378
|
+
return;
|
|
1379
|
+
}
|
|
1380
|
+
loaded = true;
|
|
1381
|
+
if (host.store != null && ((__v) => __v == null ? "null" : typeof __v)(host.store) === "object") {
|
|
1382
|
+
let saved = await (host.store.load() ?? null);
|
|
1383
|
+
for (const s of Array.isArray(saved) ?? null ? saved : []) {
|
|
1384
|
+
if (s.status === "running" || s.status === "queued") {
|
|
1385
|
+
s.status = "stopped";
|
|
1386
|
+
if (((__v) => __v == null ? "null" : typeof __v)(s.endedAt) !== "number") {
|
|
1387
|
+
s.endedAt = now() ?? null;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
sessions.set(s.id, s) ?? null;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
changed() ?? null;
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
let get = (id) => {
|
|
1397
|
+
{
|
|
1398
|
+
return sessions.get(id) ?? null ?? null;
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
return { load, flush: async () => {
|
|
1402
|
+
{
|
|
1403
|
+
while (pendingSaves > 0) {
|
|
1404
|
+
await (delay2(WAIT_STEP_MS) ?? null);
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
}, subscribe: (l) => {
|
|
1408
|
+
{
|
|
1409
|
+
listeners.push(l) ?? null;
|
|
1410
|
+
return () => {
|
|
1411
|
+
{
|
|
1412
|
+
let i = listeners.indexOf(l) ?? null;
|
|
1413
|
+
if (i >= 0) {
|
|
1414
|
+
listeners.splice(i, 1) ?? null;
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
}, list: () => {
|
|
1420
|
+
{
|
|
1421
|
+
return (allSessions(sessions) ?? null).sort((a, b) => {
|
|
1422
|
+
{
|
|
1423
|
+
return a.startedAt - b.startedAt;
|
|
1424
|
+
}
|
|
1425
|
+
}) ?? null;
|
|
1426
|
+
}
|
|
1427
|
+
}, get, wait: async (id, opts) => {
|
|
1428
|
+
{
|
|
1429
|
+
let o = opts ?? {};
|
|
1430
|
+
let deadline = (now() ?? null) + (((__v) => __v == null ? "null" : typeof __v)(o.timeoutMs) === "number" ? o.timeoutMs : 12e4);
|
|
1431
|
+
let signal = o.signal ?? null;
|
|
1432
|
+
while ((isBusy(get(id) ?? null) ?? null) && (now() ?? null) < deadline && !(signal != null && signal.aborted === true)) {
|
|
1433
|
+
await (delay2(Math.min(WAIT_STEP_MS, Math.max(1, deadline - (now() ?? null)) ?? null) ?? null) ?? null);
|
|
1434
|
+
}
|
|
1435
|
+
return get(id) ?? null;
|
|
1436
|
+
}
|
|
1437
|
+
}, dismissFinished: (id) => {
|
|
1438
|
+
{
|
|
1439
|
+
let prefix = "Agent " + id + " (";
|
|
1440
|
+
let i = parentQueue.length - 1;
|
|
1441
|
+
while (i >= 0) {
|
|
1442
|
+
if ((parentQueue[i] ?? null).startsWith(prefix) ?? null) {
|
|
1443
|
+
parentQueue.splice(i, 1) ?? null;
|
|
1444
|
+
}
|
|
1445
|
+
i = i - 1;
|
|
1446
|
+
}
|
|
1447
|
+
}
|
|
1448
|
+
}, drainParentNotifications: () => {
|
|
1449
|
+
{
|
|
1450
|
+
return parentQueue.splice(0, parentQueue.length) ?? null;
|
|
1451
|
+
}
|
|
1452
|
+
}, hasPendingNotifications: () => {
|
|
1453
|
+
{
|
|
1454
|
+
return parentQueue.length > 0;
|
|
1455
|
+
}
|
|
1456
|
+
}, spawn: async (req) => {
|
|
1457
|
+
{
|
|
1458
|
+
let profile = profileById(req.profileId) ?? null;
|
|
1459
|
+
if (profile == null) {
|
|
1460
|
+
let ids = ((host.profiles() ?? null).map((p) => {
|
|
1461
|
+
{
|
|
1462
|
+
return p.id;
|
|
1463
|
+
}
|
|
1464
|
+
}) ?? null).join(", ") ?? null;
|
|
1465
|
+
return { kind: "refused", reason: 'No agent type "' + req.profileId + '". Available: ' + ids + "." };
|
|
1466
|
+
}
|
|
1467
|
+
let prompt = ((__v) => __v == null ? "null" : typeof __v)(req.prompt) === "string" ? req.prompt.trim() ?? null : "";
|
|
1468
|
+
if (prompt === "") {
|
|
1469
|
+
return { kind: "refused", reason: "A task needs a self-contained prompt \u2014 the agent cannot see this conversation." };
|
|
1470
|
+
}
|
|
1471
|
+
let background = ((__v) => __v == null ? "null" : typeof __v)(req.background) === "boolean" ? req.background : profile.background === true;
|
|
1472
|
+
let id = ((__v) => __v == null ? "null" : typeof __v)(host.newId) === "function" ? host.newId() ?? null : "agent-" + ((now() ?? null).toString(36) ?? null) + "-" + (((Math.random() ?? null).toString(36) ?? null).slice(2, 7) ?? null);
|
|
1473
|
+
let session2 = { id, profile: profile.id, description: ((__v) => __v == null ? "null" : typeof __v)(req.description) === "string" && req.description !== "" ? req.description : prompt.slice(0, 80) ?? null, status: "running", background, transcript: [], inbox: [], startedAt: now() ?? null, rounds: 0, readOnly: req.readOnly === true || profile.readOnly === true };
|
|
1474
|
+
if (((__v) => __v == null ? "null" : typeof __v)(req.parentCallId) === "string" && req.parentCallId !== "") {
|
|
1475
|
+
session2.parentCallId = req.parentCallId;
|
|
1476
|
+
}
|
|
1477
|
+
sessions.set(session2.id, session2) ?? null;
|
|
1478
|
+
changed() ?? null;
|
|
1479
|
+
sessionEvent(session2) ?? null;
|
|
1480
|
+
let forceReadOnly = req.readOnly === true;
|
|
1481
|
+
let parentSignal = req.signal ?? null;
|
|
1482
|
+
if (background) {
|
|
1483
|
+
startBackground(session2, async () => {
|
|
1484
|
+
{
|
|
1485
|
+
return await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
|
|
1486
|
+
}
|
|
1487
|
+
}) ?? null;
|
|
1488
|
+
return { kind: "started", id: session2.id };
|
|
1489
|
+
}
|
|
1490
|
+
let out = await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
|
|
1491
|
+
return { kind: "done", id: session2.id, ok: out.ok, summary: out.summary, rounds: out.rounds };
|
|
1492
|
+
}
|
|
1493
|
+
}, message: async (id, text, opts) => {
|
|
1494
|
+
{
|
|
1495
|
+
await (load() ?? null);
|
|
1496
|
+
let o = opts ?? {};
|
|
1497
|
+
let session2 = sessions.get(id) ?? null ?? null;
|
|
1498
|
+
if (session2 == null) {
|
|
1499
|
+
return { kind: "unknown", id };
|
|
1500
|
+
}
|
|
1501
|
+
if (session2.status === "running" || session2.status === "queued") {
|
|
1502
|
+
session2.inbox.push(text) ?? null;
|
|
1503
|
+
persist(session2) ?? null;
|
|
1504
|
+
return { kind: "queued", id };
|
|
1505
|
+
}
|
|
1506
|
+
let profile = profileById(session2.profile) ?? null;
|
|
1507
|
+
if (profile == null) {
|
|
1508
|
+
return { kind: "unknown", id };
|
|
1509
|
+
}
|
|
1510
|
+
let wait = o.wait === true;
|
|
1511
|
+
let parentSignal = o.signal ?? null;
|
|
1512
|
+
session2.status = "running";
|
|
1513
|
+
session2.endedAt = null;
|
|
1514
|
+
session2.background = !wait;
|
|
1515
|
+
changed() ?? null;
|
|
1516
|
+
if (!wait) {
|
|
1517
|
+
startBackground(session2, async () => {
|
|
1518
|
+
{
|
|
1519
|
+
return await (run(session2, profile, text, false, parentSignal, false) ?? null);
|
|
1520
|
+
}
|
|
1521
|
+
}) ?? null;
|
|
1522
|
+
return { kind: "resumed", id };
|
|
1523
|
+
}
|
|
1524
|
+
let out = await (run(session2, profile, text, false, parentSignal, false) ?? null);
|
|
1525
|
+
return { kind: "done", id, ok: out.ok, summary: out.summary };
|
|
1526
|
+
}
|
|
1527
|
+
}, stop, stopAll: () => {
|
|
1528
|
+
{
|
|
1529
|
+
for (const s of allSessions(sessions) ?? null) {
|
|
1530
|
+
stop(s.id) ?? null;
|
|
1531
|
+
}
|
|
1532
|
+
parentQueue.splice(0, parentQueue.length) ?? null;
|
|
1533
|
+
}
|
|
1534
|
+
}, report };
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/types.js
|
|
1539
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1540
|
+
function forceTool(name) {
|
|
1541
|
+
{
|
|
1542
|
+
return { type: "function", function: { name } };
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/store.js
|
|
1547
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1548
|
+
async function loadAll(kv, prefix) {
|
|
1549
|
+
{
|
|
1550
|
+
let out = [];
|
|
1551
|
+
for (const k of await (kv.keys(prefix) ?? null)) {
|
|
1552
|
+
let v = await (kv.get(k) ?? null);
|
|
1553
|
+
if (v != null) {
|
|
1554
|
+
out.push(v) ?? null;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
return out;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
function sessionStore(kv, scope) {
|
|
1561
|
+
{
|
|
1562
|
+
let prefix = (scope ?? "default") + ":session:";
|
|
1563
|
+
return { load: async () => {
|
|
1564
|
+
{
|
|
1565
|
+
return await (loadAll(kv, prefix) ?? null);
|
|
1566
|
+
}
|
|
1567
|
+
}, save: async (s) => {
|
|
1568
|
+
{
|
|
1569
|
+
await (kv.set(prefix + s.id, s) ?? null);
|
|
1570
|
+
}
|
|
1571
|
+
}, remove: async (id) => {
|
|
1572
|
+
{
|
|
1573
|
+
await ((kv["delete"] ?? null)(prefix + id) ?? null);
|
|
1574
|
+
}
|
|
1575
|
+
} };
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
function runStore(kv, scope) {
|
|
1579
|
+
{
|
|
1580
|
+
let prefix = (scope ?? "default") + ":run:";
|
|
1581
|
+
return { get: async (id) => {
|
|
1582
|
+
{
|
|
1583
|
+
return await (kv.get(prefix + id) ?? null);
|
|
1584
|
+
}
|
|
1585
|
+
}, save: async (run) => {
|
|
1586
|
+
{
|
|
1587
|
+
await (kv.set(prefix + run.id, run) ?? null);
|
|
1588
|
+
}
|
|
1589
|
+
}, list: async () => {
|
|
1590
|
+
{
|
|
1591
|
+
return await (loadAll(kv, prefix) ?? null);
|
|
1592
|
+
}
|
|
1593
|
+
}, remove: async (id) => {
|
|
1594
|
+
{
|
|
1595
|
+
await ((kv["delete"] ?? null)(prefix + id) ?? null);
|
|
1596
|
+
}
|
|
1597
|
+
} };
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/run.js
|
|
1602
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1603
|
+
function errorMessage3(err) {
|
|
1604
|
+
{
|
|
1605
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1606
|
+
return err.message;
|
|
1607
|
+
}
|
|
1608
|
+
return String(err) ?? null;
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
async function runPersistent(opts) {
|
|
1612
|
+
{
|
|
1613
|
+
let now = ((__v) => __v == null ? "null" : typeof __v)(opts.now) === "function" ? opts.now : () => {
|
|
1614
|
+
{
|
|
1615
|
+
return Date.now() ?? null;
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1618
|
+
let existing = await (opts.runs.get(opts.id) ?? null);
|
|
1619
|
+
let createdAt = existing != null ? existing.createdAt : now() ?? null;
|
|
1620
|
+
let record = (status, checkpoint) => {
|
|
1621
|
+
{
|
|
1622
|
+
let todos = opts.todos != null && ((__v) => __v == null ? "null" : typeof __v)(opts.todos) === "object" ? opts.todos.get() ?? null : existing != null ? existing.todos ?? null : null;
|
|
1623
|
+
let meta = opts.meta ?? (existing != null ? existing.meta ?? null : null);
|
|
1624
|
+
return { id: opts.id, createdAt, updatedAt: now() ?? null, meta, todos, status, checkpoint };
|
|
1625
|
+
}
|
|
1626
|
+
};
|
|
1627
|
+
let first = existing != null ? existing.checkpoint : { messages: opts.messages, round: 0, acted: false, nudgesLeft: 0, done: false };
|
|
1628
|
+
await (opts.runs.save(record("running", first) ?? null) ?? null);
|
|
1629
|
+
let mark = async (status, error) => {
|
|
1630
|
+
{
|
|
1631
|
+
let saved = await (opts.runs.get(opts.id) ?? null);
|
|
1632
|
+
if (saved != null) {
|
|
1633
|
+
let next = { ...saved, status, updatedAt: now() ?? null };
|
|
1634
|
+
if (((__v) => __v == null ? "null" : typeof __v)(error) === "string") {
|
|
1635
|
+
next.error = error;
|
|
1636
|
+
}
|
|
1637
|
+
await (opts.runs.save(next) ?? null);
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1641
|
+
let outcome = null;
|
|
1642
|
+
try {
|
|
1643
|
+
{
|
|
1644
|
+
outcome = await (runAgentLoop({ ...opts, checkpoint: async (state) => {
|
|
1645
|
+
{
|
|
1646
|
+
await (opts.runs.save(record(state.done ? "done" : "running", state) ?? null) ?? null);
|
|
1647
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
|
|
1648
|
+
await (opts.checkpoint(state) ?? null);
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
} }) ?? null);
|
|
1652
|
+
}
|
|
1653
|
+
} catch (err) {
|
|
1654
|
+
{
|
|
1655
|
+
await (mark("error", errorMessage3(err) ?? null) ?? null);
|
|
1656
|
+
throw err;
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
if (outcome.stopped) {
|
|
1660
|
+
await (mark("stopped", null) ?? null);
|
|
1661
|
+
}
|
|
1662
|
+
return outcome;
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
async function interruptedRuns(runs2, activeIds) {
|
|
1666
|
+
{
|
|
1667
|
+
let active = new Set(activeIds ?? []) ?? null;
|
|
1668
|
+
return (await (runs2.list() ?? null)).filter((r) => {
|
|
1669
|
+
{
|
|
1670
|
+
return r.status === "running" && !(active.has(r.id) ?? null);
|
|
1671
|
+
}
|
|
1672
|
+
}) ?? null;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
async function resumeRun(id, runs2, options) {
|
|
1676
|
+
{
|
|
1677
|
+
let saved = await (runs2.get(id) ?? null);
|
|
1678
|
+
if (saved == null) {
|
|
1679
|
+
throw { message: 'No saved run "' + id + '".', code: "not_found" };
|
|
1680
|
+
}
|
|
1681
|
+
let cp = saved.checkpoint;
|
|
1682
|
+
return await (runPersistent({ ...options, id, runs: runs2, messages: cp.messages.concat([{ role: "user", content: "The session was interrupted and has resumed. Check the state of your work, then carry on where you left off." }]) ?? null, resumeState: { round: cp.round, acted: cp.acted, nudgesLeft: cp.nudgesLeft }, meta: options.meta ?? saved.meta ?? null }) ?? null);
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/indexeddb.js
|
|
1687
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1688
|
+
function indexedDbStore(name = "hypery-agents") {
|
|
1689
|
+
let db = null;
|
|
1690
|
+
const open = () => db ?? (db = new Promise((res, rej) => {
|
|
1691
|
+
const req = indexedDB.open(name, 1);
|
|
1692
|
+
req.onupgradeneeded = () => {
|
|
1693
|
+
req.result.createObjectStore("kv");
|
|
1694
|
+
};
|
|
1695
|
+
req.onsuccess = () => res(req.result);
|
|
1696
|
+
req.onerror = () => rej(req.error);
|
|
1697
|
+
}));
|
|
1698
|
+
const tx = async (mode, fn) => {
|
|
1699
|
+
const store = (await open()).transaction("kv", mode).objectStore("kv");
|
|
1700
|
+
return new Promise((res, rej) => {
|
|
1701
|
+
const r = fn(store);
|
|
1702
|
+
r.onsuccess = () => res(r.result);
|
|
1703
|
+
r.onerror = () => rej(r.error);
|
|
1704
|
+
});
|
|
1705
|
+
};
|
|
1706
|
+
return {
|
|
1707
|
+
// A missing key reads as null, as the core's stores do.
|
|
1708
|
+
get: async (k) => await tx("readonly", (s) => s.get(k)) ?? null,
|
|
1709
|
+
set: async (k, v) => {
|
|
1710
|
+
await tx("readwrite", (s) => s.put(structuredClone(v), k));
|
|
1711
|
+
},
|
|
1712
|
+
delete: async (k) => {
|
|
1713
|
+
await tx("readwrite", (s) => s.delete(k));
|
|
1714
|
+
},
|
|
1715
|
+
keys: async (prefix) => (await tx("readonly", (s) => s.getAllKeys())).map(String).filter((k) => k.startsWith(prefix))
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
1720
|
+
function createHyperyModel2(opts) {
|
|
1721
|
+
return createHyperyModel({ ...opts, fetch: opts.fetch ?? ((url, init) => fetch(url, init)) });
|
|
1722
|
+
}
|
|
1723
|
+
function createAgentRuntime2(host) {
|
|
1724
|
+
return createAgentRuntime({
|
|
1725
|
+
...host,
|
|
1726
|
+
createSignal: host.createSignal ?? (() => {
|
|
1727
|
+
const controller = new AbortController();
|
|
1728
|
+
return { signal: controller.signal, stop: () => controller.abort() };
|
|
1729
|
+
})
|
|
1730
|
+
// The core types a child's signal as anything with `aborted`; here every one comes from `createSignal`, whose
|
|
1731
|
+
// signals are AbortSignals — so the host's callbacks may rely on that.
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
// lib/agent/stream-parse.ts
|
|
1736
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1737
|
+
|
|
1738
|
+
// lib/agent/gateway.ts
|
|
1739
|
+
var session = {
|
|
1740
|
+
token: () => accessToken(),
|
|
1741
|
+
team: () => activeHyperyTeamId(),
|
|
1742
|
+
paymentSource: async () => (await paymentSourceHeaders())[HYPERY_PAYMENT_SOURCE_HEADER] === "credits" ? "credits" : null,
|
|
1743
|
+
gatewayUrl: HYPERY_GATEWAY_URL
|
|
1744
|
+
};
|
|
1745
|
+
var agentModel2 = (model) => createHyperyModel2({
|
|
1746
|
+
...session,
|
|
1747
|
+
model: () => {
|
|
1748
|
+
const id = model();
|
|
1749
|
+
if (!id) throw agentModelError("Pick a chat model for the agent first.", "no_model", 400);
|
|
1750
|
+
return id;
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
|
|
1754
|
+
// lib/agent/turn-recovery.ts
|
|
1755
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1756
|
+
var ACTION_NUDGES = 2;
|
|
1757
|
+
var MAX_READ_ROUNDS = 4;
|
|
1758
|
+
var READ_BUDGET_NOTE = "You have read enough to start. Make the change now with a tool that edits the document; read more only if a write fails.";
|
|
1759
|
+
var ACTION_NUDGE = "Nothing has changed in the document yet. Make the change that was asked for now, with a tool that edits the document. If you truly cannot, say exactly what is blocking you.";
|
|
1760
|
+
var QUESTION_START = /^(what|why|how|which|who|where|when|is|are|does|do|did|can you (explain|tell)|could you (explain|tell)|explain|describe|tell me|list|show me what)\b/i;
|
|
1761
|
+
function wantsChange(text) {
|
|
1762
|
+
const body = text.trim();
|
|
1763
|
+
if (!body) return false;
|
|
1764
|
+
return !(body.endsWith("?") && QUESTION_START.test(body));
|
|
1765
|
+
}
|
|
1766
|
+
function createActionGuard(opts) {
|
|
1767
|
+
const maxReads = opts.maxReadRounds ?? MAX_READ_ROUNDS;
|
|
1768
|
+
const maxNudges = opts.nudges ?? ACTION_NUDGES;
|
|
1769
|
+
let readRounds = opts.initial?.readRounds ?? 0;
|
|
1770
|
+
let nudges = opts.initial?.nudges ?? 0;
|
|
1771
|
+
let acted = false;
|
|
1772
|
+
let actedThisRound = false;
|
|
1773
|
+
let ranThisRound = false;
|
|
1774
|
+
let notes = [];
|
|
1775
|
+
let choice = null;
|
|
1776
|
+
let budgetSpent = readRounds >= maxReads;
|
|
1777
|
+
return {
|
|
1778
|
+
onRun(run, changed) {
|
|
1779
|
+
ranThisRound = true;
|
|
1780
|
+
if (run.ok && changed) {
|
|
1781
|
+
acted = true;
|
|
1782
|
+
actedThisRound = true;
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
onRoundEnd() {
|
|
1786
|
+
if (!opts.enabled || acted || !ranThisRound) {
|
|
1787
|
+
ranThisRound = false;
|
|
1788
|
+
actedThisRound = false;
|
|
1789
|
+
return;
|
|
1790
|
+
}
|
|
1791
|
+
if (!actedThisRound) readRounds++;
|
|
1792
|
+
ranThisRound = false;
|
|
1793
|
+
actedThisRound = false;
|
|
1794
|
+
if (!budgetSpent && readRounds >= maxReads) {
|
|
1795
|
+
budgetSpent = true;
|
|
1796
|
+
notes.push(READ_BUDGET_NOTE);
|
|
1797
|
+
choice = "required";
|
|
1798
|
+
}
|
|
1799
|
+
},
|
|
1800
|
+
onNudge() {
|
|
1801
|
+
nudges++;
|
|
1802
|
+
if (opts.enabled && nudges >= maxNudges && opts.writeTool) choice = forceTool(opts.writeTool);
|
|
1803
|
+
else if (opts.enabled) choice = "required";
|
|
1804
|
+
return nudges;
|
|
1805
|
+
},
|
|
1806
|
+
drain() {
|
|
1807
|
+
const out = notes;
|
|
1808
|
+
notes = [];
|
|
1809
|
+
return out;
|
|
1810
|
+
},
|
|
1811
|
+
toolChoice() {
|
|
1812
|
+
if (acted) return null;
|
|
1813
|
+
const c = choice;
|
|
1814
|
+
choice = null;
|
|
1815
|
+
return c;
|
|
1816
|
+
},
|
|
1817
|
+
get acted() {
|
|
1818
|
+
return acted;
|
|
1819
|
+
},
|
|
1820
|
+
state: () => ({ readRounds, nudges, forced: budgetSpent })
|
|
1821
|
+
};
|
|
1822
|
+
}
|
|
1823
|
+
function createToolLedger(initial = null) {
|
|
1824
|
+
let done = { ...initial ?? {} };
|
|
1825
|
+
return {
|
|
1826
|
+
get: (id) => done[id],
|
|
1827
|
+
record: (run) => {
|
|
1828
|
+
done = { ...done, [run.id]: { id: run.id, name: run.name, argsText: run.argsText, ok: run.ok, summary: run.summary, content: run.content } };
|
|
1829
|
+
},
|
|
1830
|
+
entries: () => done,
|
|
1831
|
+
clear: () => {
|
|
1832
|
+
done = {};
|
|
1833
|
+
}
|
|
1834
|
+
};
|
|
1835
|
+
}
|
|
1836
|
+
async function runOnce(ledger, call, run) {
|
|
1837
|
+
const seen = ledger.get(call.id);
|
|
1838
|
+
if (seen) return { ...seen, acted: false, replayed: true };
|
|
1839
|
+
const result = await run();
|
|
1840
|
+
ledger.record(result);
|
|
1841
|
+
return result;
|
|
1842
|
+
}
|
|
1843
|
+
function resumeTranscript(checkpoint, pending, ledger) {
|
|
1844
|
+
if (!pending?.calls.length) return checkpoint;
|
|
1845
|
+
const answered = new Set(checkpoint.filter((m) => m.role === "tool").map((m) => m.tool_call_id));
|
|
1846
|
+
if (pending.calls.every((c) => answered.has(c.id))) return checkpoint;
|
|
1847
|
+
const assistant = {
|
|
1848
|
+
role: "assistant",
|
|
1849
|
+
content: pending.text,
|
|
1850
|
+
tool_calls: pending.calls.map((c) => ({ id: c.id, type: "function", function: { name: c.name, arguments: c.argsText } }))
|
|
1851
|
+
};
|
|
1852
|
+
const answers = pending.calls.map((c) => ledger?.[c.id]).filter((e) => !!e).map((e) => ({ role: "tool", tool_call_id: e.id, name: e.name, content: e.content }));
|
|
1853
|
+
return [...checkpoint, assistant, ...answers];
|
|
1854
|
+
}
|
|
1855
|
+
var browserSignals = () => {
|
|
1856
|
+
if (typeof document === "undefined" || typeof window === "undefined") return null;
|
|
1857
|
+
return {
|
|
1858
|
+
hidden: () => document.visibilityState === "hidden",
|
|
1859
|
+
online: () => typeof navigator === "undefined" || navigator.onLine !== false,
|
|
1860
|
+
subscribe: (fn) => {
|
|
1861
|
+
document.addEventListener("visibilitychange", fn);
|
|
1862
|
+
window.addEventListener("online", fn);
|
|
1863
|
+
window.addEventListener("pageshow", fn);
|
|
1864
|
+
return () => {
|
|
1865
|
+
document.removeEventListener("visibilitychange", fn);
|
|
1866
|
+
window.removeEventListener("online", fn);
|
|
1867
|
+
window.removeEventListener("pageshow", fn);
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
};
|
|
1871
|
+
};
|
|
1872
|
+
function whenResumable(signals = browserSignals(), signal, offlineWaitMs = 0) {
|
|
1873
|
+
if (!signals || signal?.aborted) return Promise.resolve();
|
|
1874
|
+
const visible = () => !signals.hidden() ? Promise.resolve() : new Promise((resolve2) => {
|
|
1875
|
+
const done = () => {
|
|
1876
|
+
off();
|
|
1877
|
+
signal?.removeEventListener("abort", done);
|
|
1878
|
+
resolve2();
|
|
1879
|
+
};
|
|
1880
|
+
const off = signals.subscribe(() => {
|
|
1881
|
+
if (!signals.hidden()) done();
|
|
1882
|
+
});
|
|
1883
|
+
signal?.addEventListener("abort", done);
|
|
1884
|
+
});
|
|
1885
|
+
return visible().then(() => {
|
|
1886
|
+
if (!offlineWaitMs || signals.online() || signal?.aborted) return;
|
|
1887
|
+
return new Promise((resolve2) => {
|
|
1888
|
+
const done = () => {
|
|
1889
|
+
clearTimeout(timer);
|
|
1890
|
+
off();
|
|
1891
|
+
signal?.removeEventListener("abort", done);
|
|
1892
|
+
resolve2();
|
|
1893
|
+
};
|
|
1894
|
+
const timer = setTimeout(done, offlineWaitMs);
|
|
1895
|
+
const off = signals.subscribe(() => {
|
|
1896
|
+
if (signals.online()) done();
|
|
1897
|
+
});
|
|
1898
|
+
signal?.addEventListener("abort", done);
|
|
1899
|
+
});
|
|
1900
|
+
});
|
|
1901
|
+
}
|
|
1902
|
+
function isInterruption(err, hidden = false) {
|
|
1903
|
+
if (hidden) return true;
|
|
1904
|
+
const e = err ?? {};
|
|
1905
|
+
if (e.code === "ai_timeout") return true;
|
|
1906
|
+
if (typeof e.status === "number") return e.status >= 500 || e.status === 408;
|
|
1907
|
+
const text = `${String(e.name ?? "")} ${String(e.code ?? "")} ${String(e.message ?? "")}`.toLowerCase();
|
|
1908
|
+
return ["load failed", "failed to fetch", "network", "fetch failed", "econnreset", "socket", "stream", "stalled", "timed out", "timeout"].some((w) => text.includes(w));
|
|
1909
|
+
}
|
|
1910
|
+
function serialRuns(inner) {
|
|
1911
|
+
const latest = /* @__PURE__ */ new Map();
|
|
1912
|
+
let queue = Promise.resolve();
|
|
1913
|
+
return {
|
|
1914
|
+
peek: (id) => latest.get(id),
|
|
1915
|
+
get: async (id) => latest.get(id) ?? inner.get(id),
|
|
1916
|
+
save: (rec) => {
|
|
1917
|
+
latest.set(rec.id, rec);
|
|
1918
|
+
const write = queue.then(() => inner.save(rec));
|
|
1919
|
+
queue = write.catch(() => {
|
|
1920
|
+
});
|
|
1921
|
+
return write;
|
|
1922
|
+
},
|
|
1923
|
+
list: async () => {
|
|
1924
|
+
await queue;
|
|
1925
|
+
return inner.list();
|
|
1926
|
+
},
|
|
1927
|
+
remove: (id) => {
|
|
1928
|
+
latest.delete(id);
|
|
1929
|
+
const write = queue.then(() => inner.remove(id));
|
|
1930
|
+
queue = write.catch(() => {
|
|
1931
|
+
});
|
|
1932
|
+
return write;
|
|
1933
|
+
}
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
// lib/agent/tools/subagent-tools.ts
|
|
1938
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1939
|
+
|
|
1940
|
+
// lib/agent/subagent.ts
|
|
1941
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1942
|
+
|
|
1943
|
+
// lib/agent/prompt.ts
|
|
1944
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1945
|
+
init_limits();
|
|
1946
|
+
var PROMPT_LIMITS = {
|
|
1947
|
+
maxPromptChars: 14e3,
|
|
1948
|
+
maxSkillIndexChars: 4800,
|
|
1949
|
+
maxProfileIndexChars: 1600,
|
|
1950
|
+
maxContextChars: AI_LIMITS.maxContextChars,
|
|
1951
|
+
maxSelectionItems: 12
|
|
1952
|
+
};
|
|
1953
|
+
var IDENTITY = `You are the PopCraft design agent. PopCraft is a browser design tool (frames, vectors, text, components, styles, variables, auto layout), and you work inside the user's open document through tools that edit it live.`;
|
|
1954
|
+
var HOW_TO_WORK = `How you work:
|
|
1955
|
+
- Inspect before you edit. Read the selection and the layers you are about to change; never guess at node ids, colors or sizes.
|
|
1956
|
+
- Make designs as code. Anything bigger than a small tweak \u2014 a poster, a post, a reel, a page, an ad set \u2014 is ONE script built with write_design (read the design-code skill and read_design_reference first), not dozens of create_node and update_nodes calls: it builds in one step, shows on the canvas as you write it, returns a render to look at, and is changed by editing the script and building again. Before calling a design done, review it with the design-review skill: every size, moments in time, a light and a dark brand kit.
|
|
1957
|
+
- Prefer batched tools. One call that renames thirty layers or sets ten strings beats thirty calls: every write is one undo step for the user, and a wall of undo steps is a bad edit.
|
|
1958
|
+
- Stay inside the scope the user pointed at. The selection is the default scope; do not touch the rest of the page unless asked.
|
|
1959
|
+
- Explain briefly. A line or two about what you did and why, with counts rather than lists. No preamble, no restating the request.
|
|
1960
|
+
- Use skills. Before a multi-step job, read the matching skill with read_skill and follow it; skills carry the rules that make the result look designed rather than generated.
|
|
1961
|
+
- Plan visibly for anything longer than a couple of steps: manage_todos puts the plan in front of the user and keeps you honest.
|
|
1962
|
+
- When a tool fails, read the error and fix the call \u2014 do not retry the same arguments, and do not pretend a failed edit happened.
|
|
1963
|
+
- Ask only when you genuinely cannot proceed (a structural ambiguity), and ask once. ask_user puts the question in front of them with options to click \u2014 use it when a choice is both ambiguous AND consequential, and never when you can reasonably infer the answer from the document or the request, or when you could just try it and let them undo. If they skip the question, pick sensibly and say which way you went.
|
|
1964
|
+
- Delegate the heavy parts. Surveying a big page, writing all the copy, restyling dozens of layers \u2014 hand those to a subagent with task(); it burns its own context and hands you back a short summary, which is what keeps you able to finish the turn. Several task() calls in one message run at the same time.`;
|
|
1965
|
+
var describeNodes = (doc, ids) => {
|
|
1966
|
+
const shown = ids.slice(0, PROMPT_LIMITS.maxSelectionItems);
|
|
1967
|
+
const parts = shown.map((id) => {
|
|
1968
|
+
const n = doc.nodes[id];
|
|
1969
|
+
return n ? `${id} (${n.type}${n.name ? ` "${str(n.name, 40)}"` : ""})` : `${id} (missing)`;
|
|
1970
|
+
});
|
|
1971
|
+
const rest = ids.length - shown.length;
|
|
1972
|
+
return parts.join(", ") + (rest > 0 ? `, +${rest} more` : "");
|
|
1973
|
+
};
|
|
1974
|
+
function buildContextBlock(ctx, maxChars = PROMPT_LIMITS.maxContextChars) {
|
|
1975
|
+
const { doc, pageId, selection } = ctx;
|
|
1976
|
+
const page = doc.nodes[pageId];
|
|
1977
|
+
const lines = [
|
|
1978
|
+
`Document: "${str(doc.name, AI_LIMITS.maxNameChars)}" (${doc.pages.length} page${doc.pages.length === 1 ? "" : "s"}, ${Object.keys(doc.nodes).length} nodes)`,
|
|
1979
|
+
`Current page: ${page ? `"${str(page.name, AI_LIMITS.maxNameChars)}"` : "unknown"} (id ${pageId}, ${page?.childIds?.length ?? 0} top-level layers)`,
|
|
1980
|
+
selection.length ? `Selection (${selection.length}): ${describeNodes(doc, selection)}` : "Selection: nothing selected \u2014 ask what to work on, or use find_nodes / get_document_outline to locate it."
|
|
1981
|
+
];
|
|
1982
|
+
const mentions = mentionContext(ctx.mentions, doc);
|
|
1983
|
+
if (mentions) lines.push(mentions);
|
|
1984
|
+
if (ctx.camera) {
|
|
1985
|
+
const z = Math.round(ctx.camera.zoom * 100);
|
|
1986
|
+
const size = ctx.viewport ? `, ${Math.round(ctx.viewport.width / ctx.camera.zoom)}x${Math.round(ctx.viewport.height / ctx.camera.zoom)} canvas units visible` : "";
|
|
1987
|
+
lines.push(`Viewport: ${z}% zoom at (${Math.round(ctx.camera.x)}, ${Math.round(ctx.camera.y)})${size}`);
|
|
1988
|
+
}
|
|
1989
|
+
const design = buildDesignContext(doc, Math.max(200, Math.floor(maxChars / 2)));
|
|
1990
|
+
if (design) lines.push(design);
|
|
1991
|
+
if (ctx.readOnly) lines.push("This document is currently read-only (a version-history preview, or you are in this file as a viewer or commenter) \u2014 editing tools will refuse; explain that instead of retrying.");
|
|
1992
|
+
return joinWithin(lines, maxChars);
|
|
1993
|
+
}
|
|
1994
|
+
function buildSkillIndex(skills, maxChars = PROMPT_LIMITS.maxSkillIndexChars) {
|
|
1995
|
+
return joinWithin(skills.map(skillIndexLine), maxChars);
|
|
1996
|
+
}
|
|
1997
|
+
function buildProfileIndex(profiles, maxChars = PROMPT_LIMITS.maxProfileIndexChars) {
|
|
1998
|
+
return joinWithin(profiles.map(profileIndexLine), maxChars);
|
|
1999
|
+
}
|
|
2000
|
+
function buildSubagentPrompt(instructions, ctx) {
|
|
2001
|
+
const prompt = [instructions, SUBAGENT_FRAMING, `Current context:
|
|
2002
|
+
${buildContextBlock(ctx)}`].join("\n\n");
|
|
2003
|
+
return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
|
|
2004
|
+
\u2026`;
|
|
2005
|
+
}
|
|
2006
|
+
function buildSystemPrompt(ctx) {
|
|
2007
|
+
const skills = ctx.skills ?? allSkills();
|
|
2008
|
+
const profiles = ctx.profiles ?? allProfiles();
|
|
2009
|
+
const active = ctx.activeSkillId ? findSkill(ctx.activeSkillId) : void 0;
|
|
2010
|
+
const sections = [
|
|
2011
|
+
IDENTITY,
|
|
2012
|
+
HOW_TO_WORK,
|
|
2013
|
+
`Skills (read the full instructions with read_skill before you follow one \u2014 only the summaries are here):
|
|
2014
|
+
${buildSkillIndex(skills)}`,
|
|
2015
|
+
`Subagent profiles (spawn one with task({ subagent_type, prompt }); it starts fresh, sees this document but not this conversation, and returns only a summary):
|
|
2016
|
+
${buildProfileIndex(profiles)}`,
|
|
2017
|
+
active ? `The user selected the "${active.name}" skill (${active.id}) for this turn. Call read_skill("${active.id}") first and follow it.` : "",
|
|
2018
|
+
// Last on purpose: selection, camera and viewport change every turn, and providers cache prompts by
|
|
2019
|
+
// prefix — everything above is identical from turn to turn, so it stays cacheable.
|
|
2020
|
+
`Current context:
|
|
2021
|
+
${buildContextBlock(ctx)}`
|
|
2022
|
+
].filter(Boolean);
|
|
2023
|
+
const prompt = sections.join("\n\n");
|
|
2024
|
+
return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
|
|
2025
|
+
\u2026`;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
// lib/agent/subagent.ts
|
|
2029
|
+
var PARENT_ONLY_TOOLS = ["task", "await_job", "send_message", "stop_agent", "list_agents"];
|
|
2030
|
+
var AGENT_SESSIONS_DB = "popcraft-agent-sessions";
|
|
2031
|
+
var FAST_HINTS = ["flash", "mini", "haiku", "lite", "nano", "small"];
|
|
2032
|
+
var isFastModelId = (id) => {
|
|
2033
|
+
const lower = id.toLowerCase();
|
|
2034
|
+
return FAST_HINTS.some((h) => lower.includes(h));
|
|
2035
|
+
};
|
|
2036
|
+
function canRunTools(model) {
|
|
2037
|
+
if (model.capabilities && !model.capabilities.includes("tools")) return false;
|
|
2038
|
+
const modalities = model.outputModalities;
|
|
2039
|
+
if (modalities?.length && !modalities.includes("text")) return false;
|
|
2040
|
+
return !/(^|[-/_])image([-/_]|$)/.test(model.id.toLowerCase());
|
|
2041
|
+
}
|
|
2042
|
+
function pickChildModel(profile, parentModel, catalog) {
|
|
2043
|
+
const explicit = profile.model?.trim();
|
|
2044
|
+
if (explicit && explicit !== "inherit") return explicit;
|
|
2045
|
+
if (!profile.readOnly) return parentModel;
|
|
2046
|
+
const fast = catalog.find((m) => isFastModelId(m.id) && canRunTools(m));
|
|
2047
|
+
return fast?.id ?? parentModel;
|
|
2048
|
+
}
|
|
2049
|
+
function childToolNames(profile, registered, forceReadOnly) {
|
|
2050
|
+
const wanted = profile.tools.includes(ALL_TOOLS) ? null : new Set(profile.tools);
|
|
2051
|
+
const parentOnly = new Set(PARENT_ONLY_TOOLS);
|
|
2052
|
+
return registered.filter((t) => !parentOnly.has(t.name)).filter((t) => t.confirm === void 0).filter((t) => t.interactive !== true).filter((t) => !wanted || wanted.has(t.name)).filter((t) => !forceReadOnly || t.readOnly === true).map((t) => t.name);
|
|
2053
|
+
}
|
|
2054
|
+
function editorPromptContext() {
|
|
2055
|
+
const st = useEditorStore.getState();
|
|
2056
|
+
return {
|
|
2057
|
+
doc: st.document,
|
|
2058
|
+
pageId: st.currentPageId,
|
|
2059
|
+
selection: st.selection,
|
|
2060
|
+
camera: st.camera,
|
|
2061
|
+
viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
|
|
2062
|
+
readOnly: !!editBlockReason()
|
|
2063
|
+
};
|
|
2064
|
+
}
|
|
2065
|
+
var childToolListener = null;
|
|
2066
|
+
function onChildTool(fn) {
|
|
2067
|
+
childToolListener = fn;
|
|
2068
|
+
return () => {
|
|
2069
|
+
if (childToolListener === fn) childToolListener = null;
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2072
|
+
function subagentHost(deps = {}) {
|
|
2073
|
+
const profiles = deps.profiles ?? allProfiles;
|
|
2074
|
+
const registered = deps.registeredTools ?? (() => allTools().map((t) => ({ name: t.name, readOnly: t.readOnly, confirm: t.confirm, interactive: t.interactive })));
|
|
2075
|
+
const promptContext = deps.promptContext ?? editorPromptContext;
|
|
2076
|
+
const parentModel = deps.parentModel ?? (() => effectiveChatModel());
|
|
2077
|
+
const catalog = deps.catalog ?? (() => useAiStore.getState().catalog?.chat ?? []);
|
|
2078
|
+
const modelCall = deps.modelCall ?? agentModel2;
|
|
2079
|
+
const toolContext = deps.toolContext ?? editorToolContext;
|
|
2080
|
+
const profileOf = (ctx) => profiles().find((p) => p.id === ctx.profile.id) ?? ctx.profile;
|
|
2081
|
+
const readOnly = (ctx) => ctx.readOnly || promptContext().readOnly === true;
|
|
2082
|
+
return {
|
|
2083
|
+
profiles,
|
|
2084
|
+
callModel: modelCall(parentModel),
|
|
2085
|
+
childModel: (ctx) => {
|
|
2086
|
+
const model = pickChildModel(profileOf(ctx), parentModel(), catalog());
|
|
2087
|
+
return modelCall(() => model);
|
|
2088
|
+
},
|
|
2089
|
+
childSystemPrompt: (ctx) => buildSubagentPrompt(ctx.profile.instructions, promptContext()),
|
|
2090
|
+
childTools: (ctx) => {
|
|
2091
|
+
const all = registered();
|
|
2092
|
+
const names = childToolNames(profileOf(ctx), all, readOnly(ctx));
|
|
2093
|
+
return (names.length ? toolSpecs(names) : []).map((spec) => ({
|
|
2094
|
+
spec,
|
|
2095
|
+
readOnly: all.find((t) => t.name === spec.function.name)?.readOnly === true
|
|
2096
|
+
}));
|
|
2097
|
+
},
|
|
2098
|
+
execChildTool: async (call, ctx) => {
|
|
2099
|
+
if (!childToolNames(profileOf(ctx), registered(), readOnly(ctx)).includes(call.name)) {
|
|
2100
|
+
const message = `${call.name} is not one of your tools. Do this work with the tools you have, or say in your summary what is missing.`;
|
|
2101
|
+
return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
|
|
2102
|
+
}
|
|
2103
|
+
const base = toolContext(ctx.signal);
|
|
2104
|
+
const toolCtx = { ...base, actor: { ...base.actor ?? {}, kind: "agent", nested: true, id: ctx.session.id } };
|
|
2105
|
+
try {
|
|
2106
|
+
const result = await runTool(call.name, call.argsText, toolCtx);
|
|
2107
|
+
return { ...call, ok: true, summary: result.summary, content: JSON.stringify(result.data ?? { ok: true, summary: result.summary }), images: result.images };
|
|
2108
|
+
} catch (err) {
|
|
2109
|
+
const message = err.message ?? String(err);
|
|
2110
|
+
return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
store: deps.store === null ? void 0 : deps.store ?? (typeof indexedDB === "undefined" ? void 0 : sessionStore(indexedDbStore(AGENT_SESSIONS_DB), "editor")),
|
|
2114
|
+
onEvent: (event) => reportChildTool(runtimeRef, event)
|
|
2115
|
+
};
|
|
2116
|
+
}
|
|
2117
|
+
var runtimeRef = null;
|
|
2118
|
+
var MAX_STEPS = 50;
|
|
2119
|
+
var activity = /* @__PURE__ */ new Map();
|
|
2120
|
+
var activityListeners = /* @__PURE__ */ new Set();
|
|
2121
|
+
function recordStep(event) {
|
|
2122
|
+
if (event.type !== "tool-start" && event.type !== "tool-end") return;
|
|
2123
|
+
const name = event.name ?? "";
|
|
2124
|
+
const steps = [...activity.get(event.sessionId) ?? []];
|
|
2125
|
+
if (event.type === "tool-start") steps.push({ name, status: "running" });
|
|
2126
|
+
else {
|
|
2127
|
+
const i = steps.findLastIndex((s) => s.name === name && s.status === "running");
|
|
2128
|
+
const step = { name, status: event.ok ? "done" : "error", summary: event.summary ?? void 0 };
|
|
2129
|
+
if (i >= 0) steps[i] = step;
|
|
2130
|
+
else steps.push(step);
|
|
2131
|
+
}
|
|
2132
|
+
activity.set(event.sessionId, steps.slice(-MAX_STEPS));
|
|
2133
|
+
for (const l of activityListeners) l();
|
|
2134
|
+
}
|
|
2135
|
+
function reportChildTool(runtime, event) {
|
|
2136
|
+
recordStep(event);
|
|
2137
|
+
if (!childToolListener || event.type !== "tool-start" && event.type !== "tool-end") return;
|
|
2138
|
+
const session2 = runtime?.get(event.sessionId);
|
|
2139
|
+
if (!session2) return;
|
|
2140
|
+
const jobId = session2.background ? session2.id : void 0;
|
|
2141
|
+
childToolListener({
|
|
2142
|
+
profile: session2.profile,
|
|
2143
|
+
toolCallId: session2.parentCallId ?? void 0,
|
|
2144
|
+
jobId,
|
|
2145
|
+
job: jobId,
|
|
2146
|
+
name: event.name ?? "",
|
|
2147
|
+
status: event.type === "tool-start" ? "running" : event.ok ? "done" : "error",
|
|
2148
|
+
summary: event.type === "tool-end" ? event.summary ?? void 0 : void 0
|
|
2149
|
+
});
|
|
2150
|
+
}
|
|
2151
|
+
function agentRuntime() {
|
|
2152
|
+
if (!runtimeRef) {
|
|
2153
|
+
runtimeRef = createAgentRuntime2(subagentHost());
|
|
2154
|
+
void runtimeRef.load();
|
|
2155
|
+
}
|
|
2156
|
+
return runtimeRef;
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
// lib/agent/tools/subagent-tools.ts
|
|
2160
|
+
var MAX_WAIT_MS = 6e5;
|
|
2161
|
+
var DEFAULT_WAIT_MS = 12e4;
|
|
2162
|
+
function subagentDelegate(deps = {}) {
|
|
2163
|
+
const runtime = deps.runtime ?? agentRuntime;
|
|
2164
|
+
return async (raw) => {
|
|
2165
|
+
const request = raw;
|
|
2166
|
+
const rt = runtime();
|
|
2167
|
+
await rt.load();
|
|
2168
|
+
switch (request.op) {
|
|
2169
|
+
case "spawn": {
|
|
2170
|
+
const r = await rt.spawn({
|
|
2171
|
+
profileId: request.profileId,
|
|
2172
|
+
prompt: request.prompt,
|
|
2173
|
+
description: request.description,
|
|
2174
|
+
readOnly: deps.readOnly === true || request.readOnly === true,
|
|
2175
|
+
background: request.background,
|
|
2176
|
+
signal: deps.signal,
|
|
2177
|
+
parentCallId: request.callId
|
|
2178
|
+
});
|
|
2179
|
+
if (r.kind === "refused") return { kind: "refused", reason: r.reason };
|
|
2180
|
+
if (r.kind === "started") return { kind: "job", jobId: r.id };
|
|
2181
|
+
return { kind: "result", jobId: r.id, ok: r.ok, rounds: r.rounds, summary: r.summary };
|
|
2182
|
+
}
|
|
2183
|
+
case "await": {
|
|
2184
|
+
const ms = Math.min(Math.max(request.timeoutMs ?? DEFAULT_WAIT_MS, 1e3), MAX_WAIT_MS);
|
|
2185
|
+
const s = await rt.wait(request.jobId, { timeoutMs: ms, signal: deps.signal });
|
|
2186
|
+
if (!s) return { kind: "unknown-job", jobId: request.jobId };
|
|
2187
|
+
if (s.status !== "running" && s.status !== "queued") rt.dismissFinished(s.id);
|
|
2188
|
+
return { kind: "status", jobId: s.id, status: s.status, summary: s.summary ?? "" };
|
|
2189
|
+
}
|
|
2190
|
+
case "message": {
|
|
2191
|
+
const r = await rt.message(request.jobId, request.text, { wait: request.wait === true, signal: deps.signal });
|
|
2192
|
+
if (r.kind === "unknown") return { kind: "unknown-job", jobId: request.jobId };
|
|
2193
|
+
if (r.kind === "queued") return { kind: "delivered", jobId: r.id, resumed: false };
|
|
2194
|
+
if (r.kind === "resumed") return { kind: "delivered", jobId: r.id, resumed: true };
|
|
2195
|
+
return { kind: "result", jobId: r.id, ok: r.ok, rounds: 0, summary: r.summary };
|
|
2196
|
+
}
|
|
2197
|
+
case "stop":
|
|
2198
|
+
return { kind: "stopped", jobId: request.jobId, stopped: rt.stop(request.jobId) };
|
|
2199
|
+
case "list":
|
|
2200
|
+
return {
|
|
2201
|
+
kind: "list",
|
|
2202
|
+
agents: rt.list().map((s) => ({ id: s.id, profile: s.profile, description: s.description, status: s.status, summary: s.summary ?? void 0 }))
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
// lib/commands/delegate.ts
|
|
2209
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2210
|
+
var TASK_DESCRIPTION = [
|
|
2211
|
+
"Delegate a self-contained piece of work to a subagent, which runs with its own fresh context and hands back only a summary. Use it to keep your own context small: surveys of large pages, writing all the copy, restyling dozens of layers.",
|
|
2212
|
+
"The child CANNOT see this conversation \u2014 put everything it needs in the prompt: the scope (node ids), the goal, the constraints, and what you want back. It cannot spawn subagents of its own; it may send you a progress report or a question while it works, which you answer with send_message.",
|
|
2213
|
+
"Several task calls in one message run at the same time. Set run_in_background when you want to carry on working while it runs: you get its id immediately and its summary arrives as a notification. Every child has an id: send_message steers a running one or continues a finished one with its whole context, await_job waits for one, stop_agent stops one, list_agents lists them."
|
|
2214
|
+
].join("\n\n");
|
|
2215
|
+
var delegateTask = defineCommand({
|
|
2216
|
+
id: "delegate.task",
|
|
2217
|
+
title: "Delegate to a subagent",
|
|
2218
|
+
domain: "delegate",
|
|
2219
|
+
// NOT harmless: a background task or a full-tool child obviously edits the document. The loop's
|
|
2220
|
+
// `readOnly` flag means "independent of the other calls in this batch", which a subagent spawn is, so
|
|
2221
|
+
// the agent exposure keeps saying true while the honest effect says document.
|
|
2222
|
+
effect: "document",
|
|
2223
|
+
permission: null,
|
|
2224
|
+
needs: ["delegate"],
|
|
2225
|
+
params: external_exports.object({
|
|
2226
|
+
subagent_type: external_exports.string().describe("Profile id \u2014 one of the profiles listed in your system prompt (list_profiles for the full set)."),
|
|
2227
|
+
prompt: external_exports.string().describe("The self-contained task. The child does not see this conversation."),
|
|
2228
|
+
description: external_exports.string().optional().describe('Short label for the panel row, e.g. "Survey the pricing page".'),
|
|
2229
|
+
readonly: external_exports.boolean().optional().describe("Force read-only tools for this child, whatever the profile allows."),
|
|
2230
|
+
run_in_background: external_exports.boolean().optional().describe("Return a job id immediately and notify you when the child finishes.")
|
|
2231
|
+
}),
|
|
2232
|
+
expose: {
|
|
2233
|
+
agent: { name: "task", description: TASK_DESCRIPTION, readOnly: true }
|
|
2234
|
+
},
|
|
2235
|
+
run: async (args, ctx) => {
|
|
2236
|
+
const reply = await ctx.use("delegate")({
|
|
2237
|
+
op: "spawn",
|
|
2238
|
+
profileId: args.subagent_type,
|
|
2239
|
+
prompt: args.prompt,
|
|
2240
|
+
description: args.description,
|
|
2241
|
+
readOnly: args.readonly === true,
|
|
2242
|
+
background: args.run_in_background,
|
|
2243
|
+
// omitted → the profile's `background` default (the SDK applies it)
|
|
2244
|
+
callId: ctx.callId
|
|
2245
|
+
});
|
|
2246
|
+
if (reply.kind === "refused") return { summary: "task refused (nested)", data: { error: reply.reason } };
|
|
2247
|
+
if (reply.kind === "job") {
|
|
2248
|
+
return {
|
|
2249
|
+
summary: `${args.subagent_type} started (${reply.jobId})`,
|
|
2250
|
+
data: {
|
|
2251
|
+
job_id: reply.jobId,
|
|
2252
|
+
status: "running",
|
|
2253
|
+
subagent_type: args.subagent_type,
|
|
2254
|
+
note: "Keep working. Its summary arrives as a notification when it finishes; await_job waits for it if you need it before you can go on."
|
|
2255
|
+
}
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2258
|
+
const result = reply;
|
|
2259
|
+
return {
|
|
2260
|
+
summary: `${args.subagent_type}: ${result.ok ? "done" : "failed"} in ${result.rounds} round${result.rounds === 1 ? "" : "s"}`,
|
|
2261
|
+
data: { job_id: result.jobId, subagent_type: args.subagent_type, ok: result.ok, rounds: result.rounds, summary: result.summary }
|
|
2262
|
+
};
|
|
2263
|
+
}
|
|
2264
|
+
});
|
|
2265
|
+
var delegateAwait = defineCommand({
|
|
2266
|
+
id: "delegate.await",
|
|
2267
|
+
title: "Wait for a subagent",
|
|
2268
|
+
domain: "delegate",
|
|
2269
|
+
effect: "document",
|
|
2270
|
+
permission: null,
|
|
2271
|
+
needs: ["delegate"],
|
|
2272
|
+
params: external_exports.object({
|
|
2273
|
+
job_id: external_exports.string().describe("The id a task call returned."),
|
|
2274
|
+
timeout_ms: external_exports.number().optional().describe("How long to wait at most, in ms (default 120000, at most 600000).")
|
|
2275
|
+
}),
|
|
2276
|
+
expose: {
|
|
2277
|
+
agent: {
|
|
2278
|
+
name: "await_job",
|
|
2279
|
+
description: "Wait for a subagent by id to finish and get its summary (or its status when the wait times out). Use it when you need the answer before you can go on; otherwise keep working and let it notify you.",
|
|
2280
|
+
readOnly: true
|
|
2281
|
+
}
|
|
2282
|
+
},
|
|
2283
|
+
run: async (args, ctx) => {
|
|
2284
|
+
const reply = await ctx.use("delegate")({ op: "await", jobId: args.job_id, timeoutMs: args.timeout_ms });
|
|
2285
|
+
if (reply.kind === "unknown-job") {
|
|
2286
|
+
return { summary: `No job ${args.job_id}`, data: { error: `No background task with id "${args.job_id}".` } };
|
|
2287
|
+
}
|
|
2288
|
+
const status = reply;
|
|
2289
|
+
if (status.status === "running" || status.status === "queued") {
|
|
2290
|
+
return {
|
|
2291
|
+
summary: `${args.job_id}: ${status.status}`,
|
|
2292
|
+
data: {
|
|
2293
|
+
job_id: args.job_id,
|
|
2294
|
+
status: status.status,
|
|
2295
|
+
note: "Still going after the wait. Carry on with other work; its summary is delivered to you automatically when it lands."
|
|
2296
|
+
}
|
|
2297
|
+
};
|
|
2298
|
+
}
|
|
2299
|
+
return { summary: `${args.job_id}: ${status.status}`, data: { job_id: args.job_id, status: status.status, summary: status.summary ?? "" } };
|
|
2300
|
+
}
|
|
2301
|
+
});
|
|
2302
|
+
var delegateMessage = defineCommand({
|
|
2303
|
+
id: "delegate.message",
|
|
2304
|
+
title: "Message a subagent",
|
|
2305
|
+
domain: "delegate",
|
|
2306
|
+
// A message can resume a builder, which edits the document.
|
|
2307
|
+
effect: "document",
|
|
2308
|
+
permission: null,
|
|
2309
|
+
needs: ["delegate"],
|
|
2310
|
+
params: external_exports.object({
|
|
2311
|
+
job_id: external_exports.string().describe("The id a task call returned."),
|
|
2312
|
+
message: external_exports.string().describe("What to tell it: a correction, an answer to its question, or the next piece of work."),
|
|
2313
|
+
wait: external_exports.boolean().optional().describe("For a finished subagent: resume it and wait for its answer now.")
|
|
2314
|
+
}),
|
|
2315
|
+
expose: {
|
|
2316
|
+
agent: {
|
|
2317
|
+
name: "send_message",
|
|
2318
|
+
description: "Message a subagent by id. A running one reads it at its next step (steer it, answer its question). A finished one is resumed with its whole context and this message; set wait to get its answer now, otherwise it arrives as a notification.",
|
|
2319
|
+
readOnly: true
|
|
2320
|
+
}
|
|
2321
|
+
},
|
|
2322
|
+
run: async (args, ctx) => {
|
|
2323
|
+
const reply = await ctx.use("delegate")({ op: "message", jobId: args.job_id, text: args.message, wait: args.wait === true });
|
|
2324
|
+
if (reply.kind === "unknown-job") return { summary: `No subagent ${args.job_id}`, data: { error: `No subagent with id "${args.job_id}".` } };
|
|
2325
|
+
if (reply.kind === "delivered") {
|
|
2326
|
+
return reply.resumed ? { summary: `${args.job_id}: resumed`, data: { job_id: args.job_id, status: "running", note: "Resumed with your message. Its answer arrives as a notification." } } : { summary: `${args.job_id}: message delivered`, data: { job_id: args.job_id, status: "running", note: "It reads this at its next step." } };
|
|
2327
|
+
}
|
|
2328
|
+
const result = reply;
|
|
2329
|
+
return { summary: `${args.job_id}: ${result.ok ? "answered" : "failed"}`, data: { job_id: args.job_id, ok: result.ok, summary: result.summary } };
|
|
2330
|
+
}
|
|
2331
|
+
});
|
|
2332
|
+
var delegateStop = defineCommand({
|
|
2333
|
+
id: "delegate.stop",
|
|
2334
|
+
title: "Stop a subagent",
|
|
2335
|
+
domain: "delegate",
|
|
2336
|
+
effect: "none",
|
|
2337
|
+
permission: null,
|
|
2338
|
+
needs: ["delegate"],
|
|
2339
|
+
params: external_exports.object({ job_id: external_exports.string().describe("The id a task call returned.") }),
|
|
2340
|
+
expose: { agent: { name: "stop_agent", description: "Stop one running subagent by id. Edits it already made stay.", readOnly: true } },
|
|
2341
|
+
run: async (args, ctx) => {
|
|
2342
|
+
const reply = await ctx.use("delegate")({ op: "stop", jobId: args.job_id });
|
|
2343
|
+
const stopped = reply.kind === "stopped" && reply.stopped;
|
|
2344
|
+
return { summary: stopped ? `${args.job_id}: stopped` : `${args.job_id}: not running`, data: { job_id: args.job_id, stopped } };
|
|
2345
|
+
}
|
|
2346
|
+
});
|
|
2347
|
+
var delegateList = defineCommand({
|
|
2348
|
+
id: "delegate.list",
|
|
2349
|
+
title: "List subagents",
|
|
2350
|
+
domain: "delegate",
|
|
2351
|
+
effect: "none",
|
|
2352
|
+
permission: null,
|
|
2353
|
+
needs: ["delegate"],
|
|
2354
|
+
params: external_exports.object({}),
|
|
2355
|
+
expose: { agent: { name: "list_agents", description: "List your subagents: id, profile, what each was asked, its status and its last summary.", readOnly: true } },
|
|
2356
|
+
run: async (_args, ctx) => {
|
|
2357
|
+
const reply = await ctx.use("delegate")({ op: "list" });
|
|
2358
|
+
const agents = reply.kind === "list" ? reply.agents : [];
|
|
2359
|
+
return {
|
|
2360
|
+
summary: `${agents.length} subagent${agents.length === 1 ? "" : "s"}`,
|
|
2361
|
+
data: { agents: agents.map((a) => ({ job_id: a.id, subagent_type: a.profile, description: a.description, status: a.status, summary: a.summary })) }
|
|
2362
|
+
};
|
|
2363
|
+
}
|
|
2364
|
+
});
|
|
2365
|
+
var profileList = defineCommand({
|
|
2366
|
+
id: "delegate.listProfiles",
|
|
2367
|
+
title: "List subagent profiles",
|
|
2368
|
+
domain: "delegate",
|
|
2369
|
+
effect: "none",
|
|
2370
|
+
permission: null,
|
|
2371
|
+
params: external_exports.object({}),
|
|
2372
|
+
expose: {
|
|
2373
|
+
agent: {
|
|
2374
|
+
name: "list_profiles",
|
|
2375
|
+
description: "List the subagent profiles you can delegate to with task (id, what each is for, when to use it)."
|
|
2376
|
+
}
|
|
2377
|
+
},
|
|
2378
|
+
run: () => {
|
|
2379
|
+
const profiles = allProfiles();
|
|
2380
|
+
return {
|
|
2381
|
+
summary: `${profiles.length} profile${profiles.length === 1 ? "" : "s"}`,
|
|
2382
|
+
data: {
|
|
2383
|
+
profiles: profiles.map((p) => ({
|
|
2384
|
+
id: p.id,
|
|
2385
|
+
name: p.name,
|
|
2386
|
+
description: p.description,
|
|
2387
|
+
whenToUse: p.whenToUse,
|
|
2388
|
+
readOnly: p.readOnly,
|
|
2389
|
+
tools: p.tools,
|
|
2390
|
+
maxRounds: p.maxRounds
|
|
2391
|
+
}))
|
|
2392
|
+
}
|
|
2393
|
+
};
|
|
2394
|
+
}
|
|
2395
|
+
});
|
|
2396
|
+
var profileRead = defineCommand({
|
|
2397
|
+
id: "delegate.readProfile",
|
|
2398
|
+
title: "Read a subagent profile",
|
|
2399
|
+
domain: "delegate",
|
|
2400
|
+
effect: "none",
|
|
2401
|
+
permission: null,
|
|
2402
|
+
params: external_exports.object({ id: external_exports.string().describe('The profile id, e.g. "inspector".') }),
|
|
2403
|
+
expose: {
|
|
2404
|
+
agent: {
|
|
2405
|
+
name: "read_profile",
|
|
2406
|
+
description: "Read a subagent profile in full \u2014 its instructions, tool allowlist and round budget \u2014 before you delegate to it."
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
run: ({ id }) => {
|
|
2410
|
+
const profile = findProfile(id);
|
|
2411
|
+
if (!profile) {
|
|
2412
|
+
return { summary: `No profile "${id}"`, data: { error: `No subagent profile with id "${id}".`, available: allProfiles().map(profileIndexLine) } };
|
|
2413
|
+
}
|
|
2414
|
+
return {
|
|
2415
|
+
summary: `Read profile: ${profile.name}`,
|
|
2416
|
+
data: { id: profile.id, name: profile.name, readOnly: profile.readOnly, tools: profile.tools, maxRounds: profile.maxRounds, instructions: profile.instructions }
|
|
2417
|
+
};
|
|
2418
|
+
}
|
|
2419
|
+
});
|
|
2420
|
+
var delegateCommands = [delegateTask, delegateAwait, delegateMessage, delegateStop, delegateList, profileList, profileRead];
|
|
2421
|
+
function registerDelegateCommands() {
|
|
2422
|
+
registerCommand(...delegateCommands);
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
// lib/commands/skill.ts
|
|
2426
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2427
|
+
var skillList = defineCommand({
|
|
2428
|
+
id: "skill.list",
|
|
2429
|
+
title: "List skills",
|
|
2430
|
+
domain: "skill",
|
|
2431
|
+
effect: "none",
|
|
2432
|
+
// The skill sheets are the agent's own instructions, not the user's document.
|
|
2433
|
+
permission: null,
|
|
2434
|
+
params: external_exports.object({}),
|
|
2435
|
+
expose: {
|
|
2436
|
+
agent: {
|
|
2437
|
+
name: "list_skills",
|
|
2438
|
+
description: "List the available skills (name, what they are for, and when to use them). The full instructions come from read_skill."
|
|
2439
|
+
}
|
|
2440
|
+
},
|
|
2441
|
+
run: () => {
|
|
2442
|
+
const skills = allSkills();
|
|
2443
|
+
return {
|
|
2444
|
+
summary: `${skills.length} skill${skills.length === 1 ? "" : "s"}`,
|
|
2445
|
+
data: { skills: skills.map((s) => ({ id: s.id, name: s.name, description: s.description, whenToUse: s.whenToUse, tools: s.tools })) }
|
|
2446
|
+
};
|
|
2447
|
+
}
|
|
2448
|
+
});
|
|
2449
|
+
var skillRead = defineCommand({
|
|
2450
|
+
id: "skill.read",
|
|
2451
|
+
title: "Read a skill",
|
|
2452
|
+
domain: "skill",
|
|
2453
|
+
effect: "none",
|
|
2454
|
+
permission: null,
|
|
2455
|
+
params: external_exports.object({ id: external_exports.string().describe('The skill id, e.g. "fill-content".') }),
|
|
2456
|
+
expose: {
|
|
2457
|
+
agent: {
|
|
2458
|
+
name: "read_skill",
|
|
2459
|
+
description: "Read a skill\u2019s full instructions by id. Do this before following a skill; the system prompt only carries the summaries."
|
|
2460
|
+
}
|
|
2461
|
+
},
|
|
2462
|
+
run: ({ id }) => {
|
|
2463
|
+
const skill = findSkill(id);
|
|
2464
|
+
if (!skill) {
|
|
2465
|
+
return {
|
|
2466
|
+
summary: `No skill "${id}"`,
|
|
2467
|
+
data: { error: `No skill with id "${id}".`, available: allSkills().map(skillIndexLine) }
|
|
2468
|
+
};
|
|
2469
|
+
}
|
|
2470
|
+
return {
|
|
2471
|
+
summary: `Read skill: ${skill.name}`,
|
|
2472
|
+
data: { id: skill.id, name: skill.name, tools: skill.tools, instructions: skill.instructions }
|
|
2473
|
+
};
|
|
2474
|
+
}
|
|
2475
|
+
});
|
|
2476
|
+
var skillCommands = [skillList, skillRead];
|
|
2477
|
+
function registerSkillCommands() {
|
|
2478
|
+
registerCommand(...skillCommands);
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
// lib/agent/parts.ts
|
|
2482
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2483
|
+
function todoItemsFrom(rows) {
|
|
2484
|
+
if (!Array.isArray(rows)) return null;
|
|
2485
|
+
return rows.map((row) => {
|
|
2486
|
+
const t = row ?? {};
|
|
2487
|
+
return {
|
|
2488
|
+
text: String(t.title ?? t.text ?? ""),
|
|
2489
|
+
done: typeof t.done === "boolean" ? t.done : t.status === "done"
|
|
2490
|
+
};
|
|
2491
|
+
});
|
|
2492
|
+
}
|
|
2493
|
+
var textOf2 = (m) => m.parts.filter((p) => p.type === "text").map((p) => p.text).join("");
|
|
2494
|
+
function pushTextDelta(parts, delta) {
|
|
2495
|
+
const last = parts[parts.length - 1];
|
|
2496
|
+
if (last?.type === "text") {
|
|
2497
|
+
parts[parts.length - 1] = { type: "text", text: last.text + delta };
|
|
2498
|
+
return parts;
|
|
2499
|
+
}
|
|
2500
|
+
return [...parts, { type: "text", text: delta }];
|
|
2501
|
+
}
|
|
2502
|
+
function pushReasoningDelta(parts, delta) {
|
|
2503
|
+
const last = parts[parts.length - 1];
|
|
2504
|
+
if (last?.type === "reasoning") {
|
|
2505
|
+
parts[parts.length - 1] = { type: "reasoning", text: last.text + delta };
|
|
2506
|
+
return parts;
|
|
2507
|
+
}
|
|
2508
|
+
return [...parts, { type: "reasoning", text: delta }];
|
|
2509
|
+
}
|
|
2510
|
+
function upsertToolPart(parts, part) {
|
|
2511
|
+
const i = parts.findIndex((p) => p.type === "tool" && p.id === part.id);
|
|
2512
|
+
if (i < 0) return [...parts, part];
|
|
2513
|
+
const next = [...parts];
|
|
2514
|
+
next[i] = { ...next[i], ...part };
|
|
2515
|
+
return next;
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
// lib/agent/runner.ts
|
|
2519
|
+
var ALWAYS_ALLOWED = ["list_skills", "read_skill", "manage_todos", "notify", "get_selection", "task", "await_job", "send_message", "stop_agent", "list_agents", "list_profiles", "read_profile", "ask_user"];
|
|
2520
|
+
var MAX_HISTORY_MESSAGES = 24;
|
|
2521
|
+
var MAX_PARALLEL_TOOLS = 4;
|
|
2522
|
+
var MAX_TOOL_RESULT_CHARS = 48e3;
|
|
2523
|
+
var TURN_MAX_ROUNDS = 500;
|
|
2524
|
+
function needsEditableSession(name) {
|
|
2525
|
+
const tool = getTool(name);
|
|
2526
|
+
if (tool?.readOnly) return false;
|
|
2527
|
+
if (tool?.interactive) return false;
|
|
2528
|
+
return true;
|
|
2529
|
+
}
|
|
2530
|
+
function guardEdit(name) {
|
|
2531
|
+
if (!needsEditableSession(name)) return;
|
|
2532
|
+
const reason = editBlockReason();
|
|
2533
|
+
if (reason) throw new ToolError(`${name} cannot run: ${reason}`);
|
|
2534
|
+
}
|
|
2535
|
+
function historyMessages() {
|
|
2536
|
+
return activeMessages().slice(-MAX_HISTORY_MESSAGES).map((m) => ({ role: m.role, content: textOf2(m).trim() })).filter((m) => !!m.content);
|
|
2537
|
+
}
|
|
2538
|
+
function systemMessage(skillId, mentions = []) {
|
|
2539
|
+
const st = useEditorStore.getState();
|
|
2540
|
+
return {
|
|
2541
|
+
role: "system",
|
|
2542
|
+
content: buildSystemPrompt({
|
|
2543
|
+
doc: st.document,
|
|
2544
|
+
pageId: st.currentPageId,
|
|
2545
|
+
selection: st.selection,
|
|
2546
|
+
camera: st.camera,
|
|
2547
|
+
viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
|
|
2548
|
+
activeSkillId: skillId,
|
|
2549
|
+
readOnly: !!editBlockReason(),
|
|
2550
|
+
mentions
|
|
2551
|
+
})
|
|
2552
|
+
};
|
|
2553
|
+
}
|
|
2554
|
+
var registerTurnTools = (deps) => {
|
|
2555
|
+
registerBuiltinTools();
|
|
2556
|
+
registerSkillCommands();
|
|
2557
|
+
registerDelegateCommands();
|
|
2558
|
+
registerDangerousCommands();
|
|
2559
|
+
provideAgentCapability("delegate", subagentDelegate(deps));
|
|
2560
|
+
};
|
|
2561
|
+
var specsFor = (skillId) => {
|
|
2562
|
+
const skill = skillId ? findSkill(skillId) : void 0;
|
|
2563
|
+
return skill?.tools.length ? toolSpecs([.../* @__PURE__ */ new Set([...skill.tools, ...ALWAYS_ALLOWED])]) : toolSpecs();
|
|
2564
|
+
};
|
|
2565
|
+
var loopTools = (skillId) => specsFor(skillId).map((spec) => ({ spec, readOnly: getTool(spec.function.name)?.readOnly === true }));
|
|
2566
|
+
function syncTodos(run) {
|
|
2567
|
+
if (run.name !== "manage_todos" || !run.ok) return;
|
|
2568
|
+
try {
|
|
2569
|
+
const data = JSON.parse(run.content);
|
|
2570
|
+
const items = todoItemsFrom(data.todos);
|
|
2571
|
+
if (items) setTodos(items);
|
|
2572
|
+
} catch {
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
var runs;
|
|
2576
|
+
var agentRuns = () => runs ??= serialRuns(runStore(indexedDbStore(AGENT_SESSIONS_DB), "editor"));
|
|
2577
|
+
var setAgentRuns = (store) => {
|
|
2578
|
+
runs = store && serialRuns(store);
|
|
2579
|
+
};
|
|
2580
|
+
var RESUME_WINDOW_MS = 30 * 6e4;
|
|
2581
|
+
var MAX_INTERRUPTIONS = 6;
|
|
2582
|
+
var SUSPEND_RESTART_MS = 5e3;
|
|
2583
|
+
var STOPPED_MESSAGE = "Stopped. Any edits already applied are still there.";
|
|
2584
|
+
async function runTurn(text, mentions = []) {
|
|
2585
|
+
const availability = aiAvailability();
|
|
2586
|
+
if (!availability.ok) {
|
|
2587
|
+
useAgentStore.setState({ error: { message: availability.message, code: availability.reason } });
|
|
2588
|
+
return;
|
|
2589
|
+
}
|
|
2590
|
+
if (!agentModel()) {
|
|
2591
|
+
useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
|
|
2592
|
+
return;
|
|
2593
|
+
}
|
|
2594
|
+
const skillId = mentions.find((m) => m.kind === "skill")?.id ?? useAgentStore.getState().skillId;
|
|
2595
|
+
const checkpoint = rememberCheckpoint(useEditorStore.getState().document);
|
|
2596
|
+
const user = { id: newId(), role: "user", parts: [{ type: "text", text }], createdAt: Date.now() };
|
|
2597
|
+
appendMessage(user);
|
|
2598
|
+
const assistantId = newId();
|
|
2599
|
+
appendMessage({ id: assistantId, role: "assistant", parts: [], createdAt: Date.now(), checkpoint });
|
|
2600
|
+
const s = useAgentStore.getState();
|
|
2601
|
+
const meta = {
|
|
2602
|
+
documentId: s.documentId ?? useEditorStore.getState().document.id,
|
|
2603
|
+
threadId: s.activeThreadId ?? "",
|
|
2604
|
+
assistantId,
|
|
2605
|
+
skillId,
|
|
2606
|
+
mentions,
|
|
2607
|
+
wantsChange: wantsChange(text)
|
|
2608
|
+
};
|
|
2609
|
+
await drive(meta, { messages: [systemMessage(skillId, mentions), ...historyMessages()], checkpoint });
|
|
2610
|
+
}
|
|
2611
|
+
async function resumeInterrupted(documentId) {
|
|
2612
|
+
if (useAgentStore.getState().running) return false;
|
|
2613
|
+
const store = agentRuns();
|
|
2614
|
+
let list;
|
|
2615
|
+
try {
|
|
2616
|
+
list = await interruptedRuns(store);
|
|
2617
|
+
} catch {
|
|
2618
|
+
return false;
|
|
2619
|
+
}
|
|
2620
|
+
const mine = list.filter((r) => r.meta?.documentId === documentId).sort((a, b) => b.updatedAt - a.updatedAt);
|
|
2621
|
+
const [latest, ...rest] = mine;
|
|
2622
|
+
for (const r of rest) await store.save({ ...r, status: "stopped", updatedAt: Date.now() });
|
|
2623
|
+
if (!latest) return false;
|
|
2624
|
+
if (Date.now() - latest.updatedAt > RESUME_WINDOW_MS || !findMessage(latest.meta)) {
|
|
2625
|
+
await store.save({ ...latest, status: "stopped", updatedAt: Date.now() });
|
|
2626
|
+
return false;
|
|
2627
|
+
}
|
|
2628
|
+
if (useAgentStore.getState().running) return false;
|
|
2629
|
+
await drive(latest.meta, { resume: latest });
|
|
2630
|
+
return true;
|
|
2631
|
+
}
|
|
2632
|
+
async function continueTurn() {
|
|
2633
|
+
const s = useAgentStore.getState();
|
|
2634
|
+
if (s.running) return false;
|
|
2635
|
+
const messages = activeMessages();
|
|
2636
|
+
const last = [...messages].reverse().find((m) => m.role === "assistant");
|
|
2637
|
+
if (!last) return false;
|
|
2638
|
+
const record = await agentRuns().get(last.id).catch(() => null);
|
|
2639
|
+
if (record?.meta && record.meta.threadId === s.activeThreadId) {
|
|
2640
|
+
await drive(record.meta, { resume: { ...record, status: "running" } });
|
|
2641
|
+
return true;
|
|
2642
|
+
}
|
|
2643
|
+
const ask = [...messages].reverse().find((m) => m.role === "user");
|
|
2644
|
+
if (!ask) return false;
|
|
2645
|
+
await runTurn(textOf2(ask));
|
|
2646
|
+
return true;
|
|
2647
|
+
}
|
|
2648
|
+
function findMessage(meta) {
|
|
2649
|
+
if (!meta) return void 0;
|
|
2650
|
+
return useAgentStore.getState().threads.find((t) => t.id === meta.threadId)?.messages.find((m) => m.id === meta.assistantId);
|
|
2651
|
+
}
|
|
2652
|
+
function installPageHandlers() {
|
|
2653
|
+
if (typeof window === "undefined") return () => {
|
|
2654
|
+
};
|
|
2655
|
+
const save = () => persistThreads();
|
|
2656
|
+
const onVisibility = () => {
|
|
2657
|
+
if (document.visibilityState === "hidden") save();
|
|
2658
|
+
};
|
|
2659
|
+
window.addEventListener("pagehide", save);
|
|
2660
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
2661
|
+
return () => {
|
|
2662
|
+
window.removeEventListener("pagehide", save);
|
|
2663
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
2664
|
+
};
|
|
2665
|
+
}
|
|
2666
|
+
function resilientModel(model, turn, parts) {
|
|
2667
|
+
return async (messages, specs, hooks, _signal, request) => {
|
|
2668
|
+
await whenResumable(void 0, turn);
|
|
2669
|
+
const call = new AbortController();
|
|
2670
|
+
const onTurnAbort = () => call.abort();
|
|
2671
|
+
turn.addEventListener("abort", onTurnAbort);
|
|
2672
|
+
let hiddenAt = 0;
|
|
2673
|
+
const onVisibility = () => {
|
|
2674
|
+
if (document.visibilityState === "hidden") hiddenAt = Date.now();
|
|
2675
|
+
else if (hiddenAt && Date.now() - hiddenAt > SUSPEND_RESTART_MS) call.abort();
|
|
2676
|
+
};
|
|
2677
|
+
if (typeof document !== "undefined") document.addEventListener("visibilitychange", onVisibility);
|
|
2678
|
+
const base = parts.get();
|
|
2679
|
+
try {
|
|
2680
|
+
const cut = new Promise((_, reject) => call.signal.addEventListener("abort", () => reject(new Error("aborted")), { once: true }));
|
|
2681
|
+
cut.catch(() => {
|
|
2682
|
+
});
|
|
2683
|
+
return await Promise.race([model(messages, specs, hooks, call.signal, request), cut]);
|
|
2684
|
+
} catch (err) {
|
|
2685
|
+
parts.set(base);
|
|
2686
|
+
if (call.signal.aborted && !turn.aborted) throw { message: "The stream was interrupted.", code: "interrupted" };
|
|
2687
|
+
throw err;
|
|
2688
|
+
} finally {
|
|
2689
|
+
turn.removeEventListener("abort", onTurnAbort);
|
|
2690
|
+
if (typeof document !== "undefined") document.removeEventListener("visibilitychange", onVisibility);
|
|
2691
|
+
}
|
|
2692
|
+
};
|
|
2693
|
+
}
|
|
2694
|
+
async function drive(meta, start) {
|
|
2695
|
+
const model = agentModel();
|
|
2696
|
+
if (!model) {
|
|
2697
|
+
useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
|
|
2698
|
+
return;
|
|
2699
|
+
}
|
|
2700
|
+
const store = agentRuns();
|
|
2701
|
+
const id = meta.assistantId;
|
|
2702
|
+
const before = useEditorStore.getState().document;
|
|
2703
|
+
if (useAgentStore.getState().activeThreadId !== meta.threadId) useAgentStore.setState({ activeThreadId: meta.threadId });
|
|
2704
|
+
let checkpoint = "checkpoint" in start ? start.checkpoint : findMessage(meta)?.checkpoint;
|
|
2705
|
+
if (!checkpoint) {
|
|
2706
|
+
checkpoint = rememberCheckpoint(before);
|
|
2707
|
+
updateMessage(id, (m) => ({ ...m, checkpoint }), { save: false });
|
|
2708
|
+
}
|
|
2709
|
+
const ledger = createToolLedger(meta.ledger);
|
|
2710
|
+
let parts = [...findMessage(meta)?.parts ?? []].filter((p) => !(p.type === "error" && p.message === STOPPED_MESSAGE));
|
|
2711
|
+
const flush = (save = false) => setParts(id, parts, { save });
|
|
2712
|
+
if ("resume" in start) {
|
|
2713
|
+
parts = parts.map((p) => {
|
|
2714
|
+
if (p.type !== "tool" || p.status !== "running") return p;
|
|
2715
|
+
const done = ledger.get(p.id);
|
|
2716
|
+
return done ? { ...p, status: done.ok ? "done" : "error", summary: done.summary, result: done.content } : { ...p, status: "error", summary: "interrupted", error: "interrupted" };
|
|
2717
|
+
});
|
|
2718
|
+
parts = [...parts, { type: "notice", kind: "resumed" }];
|
|
2719
|
+
flush(true);
|
|
2720
|
+
}
|
|
2721
|
+
const abort = new AbortController();
|
|
2722
|
+
useAgentStore.setState({ running: true, resuming: false, abort, error: null });
|
|
2723
|
+
const ctx = editorToolContext(abort.signal);
|
|
2724
|
+
const { createDesignPreview, DESIGN_TOOL } = await import("./live-SJGND5BC.js");
|
|
2725
|
+
const preview = createDesignPreview();
|
|
2726
|
+
const readOnly = !!editBlockReason();
|
|
2727
|
+
registerTurnTools({ readOnly, signal: abort.signal });
|
|
2728
|
+
const runtime = agentRuntime();
|
|
2729
|
+
const tools = loopTools(meta.skillId);
|
|
2730
|
+
const canWrite = !readOnly && meta.wantsChange;
|
|
2731
|
+
const writeTool = tools.some((t) => t.spec.function.name === DESIGN_TOOL) ? DESIGN_TOOL : null;
|
|
2732
|
+
const guard = createActionGuard({ enabled: canWrite, writeTool, initial: meta.guard });
|
|
2733
|
+
let pending = null;
|
|
2734
|
+
let saving = Promise.resolve();
|
|
2735
|
+
const saveMeta = () => {
|
|
2736
|
+
meta.guard = guard.state();
|
|
2737
|
+
meta.ledger = ledger.entries();
|
|
2738
|
+
meta.pending = pending;
|
|
2739
|
+
const rec = store.peek(id);
|
|
2740
|
+
if (rec) saving = store.save({ ...rec, meta: { ...meta }, updatedAt: Date.now() }).catch(() => {
|
|
2741
|
+
});
|
|
2742
|
+
return saving;
|
|
2743
|
+
};
|
|
2744
|
+
const offPage = installPageHandlers();
|
|
2745
|
+
let interruptions = 0;
|
|
2746
|
+
let resumeFrom = "resume" in start ? start.resume : null;
|
|
2747
|
+
try {
|
|
2748
|
+
while (true) {
|
|
2749
|
+
const options = {
|
|
2750
|
+
tools,
|
|
2751
|
+
meta,
|
|
2752
|
+
stopped: () => abort.signal.aborted,
|
|
2753
|
+
drainNotifications: () => {
|
|
2754
|
+
const notes = guard.drain();
|
|
2755
|
+
if (notes.length) {
|
|
2756
|
+
parts = [...parts, { type: "notice", kind: "read-budget" }];
|
|
2757
|
+
flush();
|
|
2758
|
+
}
|
|
2759
|
+
return [...notes, ...runtime.drainParentNotifications()];
|
|
2760
|
+
},
|
|
2761
|
+
maxParallel: MAX_PARALLEL_TOOLS,
|
|
2762
|
+
// The loop's default cut every result at 8000 characters AFTER the tool had honoured its own limit, so
|
|
2763
|
+
// export_svg with maxChars 40000 still came back without its last paths and the model could not
|
|
2764
|
+
// rebuild the artwork. Tools bound their own output; this is only the backstop.
|
|
2765
|
+
maxResultChars: MAX_TOOL_RESULT_CHARS,
|
|
2766
|
+
maxRounds: TURN_MAX_ROUNDS,
|
|
2767
|
+
modelRetries: 3,
|
|
2768
|
+
isRecoverable: (err) => !abort.signal.aborted && isInterruption(err),
|
|
2769
|
+
requireAction: canWrite ? { nudges: ACTION_NUDGES, message: ACTION_NUDGE } : false,
|
|
2770
|
+
toolChoice: () => guard.toolChoice(),
|
|
2771
|
+
callModel: resilientModel(agentModel2(() => model), abort.signal, { get: () => parts, set: (p) => {
|
|
2772
|
+
parts = p;
|
|
2773
|
+
flush();
|
|
2774
|
+
} }),
|
|
2775
|
+
checkpoint: async () => {
|
|
2776
|
+
pending = null;
|
|
2777
|
+
ledger.clear();
|
|
2778
|
+
await saveMeta();
|
|
2779
|
+
},
|
|
2780
|
+
execTool: (call) => runOnce(ledger, call, async () => {
|
|
2781
|
+
const row = { type: "tool", id: call.id, name: call.name, argsText: call.argsText, status: "running" };
|
|
2782
|
+
parts = upsertToolPart(parts, row);
|
|
2783
|
+
flush();
|
|
2784
|
+
const docBefore = useEditorStore.getState().document;
|
|
2785
|
+
try {
|
|
2786
|
+
if (call.name === DESIGN_TOOL) preview.end();
|
|
2787
|
+
guardEdit(call.name);
|
|
2788
|
+
const result = await runTool(call.name, call.argsText, { ...ctx, toolCallId: call.id });
|
|
2789
|
+
const content = JSON.stringify(result.data ?? { ok: true, summary: result.summary });
|
|
2790
|
+
parts = upsertToolPart(parts, { ...row, status: "done", summary: result.summary, result: content });
|
|
2791
|
+
for (const url of result.images ?? []) parts = [...parts, { type: "image", url, caption: call.name }];
|
|
2792
|
+
const acted = useEditorStore.getState().document !== docBefore;
|
|
2793
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: result.summary, content, images: result.images, acted };
|
|
2794
|
+
} catch (err) {
|
|
2795
|
+
const message = err.message ?? String(err);
|
|
2796
|
+
parts = upsertToolPart(parts, { ...row, status: "error", summary: message, error: message });
|
|
2797
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }), acted: false };
|
|
2798
|
+
} finally {
|
|
2799
|
+
flush(true);
|
|
2800
|
+
}
|
|
2801
|
+
}).then((run) => {
|
|
2802
|
+
void saveMeta();
|
|
2803
|
+
return run;
|
|
2804
|
+
}),
|
|
2805
|
+
hooks: {
|
|
2806
|
+
onAssistantStart: () => {
|
|
2807
|
+
pending = { text: "", calls: [] };
|
|
2808
|
+
},
|
|
2809
|
+
onTextDelta: (d) => {
|
|
2810
|
+
parts = pushTextDelta([...parts], d);
|
|
2811
|
+
if (pending) pending.text += d;
|
|
2812
|
+
flush();
|
|
2813
|
+
},
|
|
2814
|
+
onReasoningDelta: (d) => {
|
|
2815
|
+
parts = pushReasoningDelta([...parts], d);
|
|
2816
|
+
flush();
|
|
2817
|
+
},
|
|
2818
|
+
onToolProgress: (p) => preview.update(p.name, p.arguments),
|
|
2819
|
+
onToolStart: (call) => {
|
|
2820
|
+
pending?.calls.push({ id: call.id, name: call.name, argsText: call.argsText });
|
|
2821
|
+
void saveMeta();
|
|
2822
|
+
},
|
|
2823
|
+
onToolEnd: (run) => {
|
|
2824
|
+
guard.onRun(run, run.acted === true);
|
|
2825
|
+
syncTodos(run);
|
|
2826
|
+
},
|
|
2827
|
+
onRoundEnd: () => guard.onRoundEnd(),
|
|
2828
|
+
onNudge: () => {
|
|
2829
|
+
const count = guard.onNudge();
|
|
2830
|
+
parts = [...parts, { type: "notice", kind: "nudge", count, max: ACTION_NUDGES }];
|
|
2831
|
+
flush(true);
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
};
|
|
2835
|
+
try {
|
|
2836
|
+
let outcome;
|
|
2837
|
+
if (resumeFrom) {
|
|
2838
|
+
const cp = resumeFrom.checkpoint;
|
|
2839
|
+
const nudgesLeft = canWrite ? Math.max(0, ACTION_NUDGES - guard.state().nudges) : 0;
|
|
2840
|
+
const patched = { ...resumeFrom, status: "running", checkpoint: { ...cp, nudgesLeft, messages: resumeTranscript(cp.messages, meta.pending, meta.ledger) } };
|
|
2841
|
+
await store.save(patched);
|
|
2842
|
+
pending = null;
|
|
2843
|
+
outcome = await resumeRun(id, store, options);
|
|
2844
|
+
} else {
|
|
2845
|
+
if (!("messages" in start)) throw new Error("nothing to run");
|
|
2846
|
+
outcome = await runPersistent({ ...options, id, runs: store, messages: start.messages });
|
|
2847
|
+
}
|
|
2848
|
+
if (canWrite && !outcome.stopped && !outcome.acted && !guard.acted) parts = [...parts, { type: "notice", kind: "no-change" }];
|
|
2849
|
+
break;
|
|
2850
|
+
} catch (err) {
|
|
2851
|
+
if (abort.signal.aborted) break;
|
|
2852
|
+
const hidden = typeof document !== "undefined" && document.visibilityState === "hidden";
|
|
2853
|
+
if (isInterruption(err, hidden) && interruptions < MAX_INTERRUPTIONS) {
|
|
2854
|
+
interruptions++;
|
|
2855
|
+
await saving;
|
|
2856
|
+
const rec = await store.get(id);
|
|
2857
|
+
if (!rec) throw err;
|
|
2858
|
+
await store.save({ ...rec, status: "running", error: void 0, updatedAt: Date.now() });
|
|
2859
|
+
useAgentStore.setState({ resuming: true });
|
|
2860
|
+
persistThreads();
|
|
2861
|
+
await whenResumable(void 0, abort.signal, Math.min(3e4, 1e3 * 2 ** interruptions));
|
|
2862
|
+
if (abort.signal.aborted) break;
|
|
2863
|
+
useAgentStore.setState({ resuming: false });
|
|
2864
|
+
resumeFrom = await store.get(id);
|
|
2865
|
+
parts = [...parts, { type: "notice", kind: "resumed" }];
|
|
2866
|
+
flush(true);
|
|
2867
|
+
continue;
|
|
2868
|
+
}
|
|
2869
|
+
throw err;
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
} catch (err) {
|
|
2873
|
+
if (!abort.signal.aborted) {
|
|
2874
|
+
const message = err?.message ?? String(err);
|
|
2875
|
+
const code = err?.code;
|
|
2876
|
+
parts = [...parts, { type: "error", message, code }];
|
|
2877
|
+
}
|
|
2878
|
+
} finally {
|
|
2879
|
+
offPage();
|
|
2880
|
+
preview.end();
|
|
2881
|
+
if (abort.signal.aborted) {
|
|
2882
|
+
runtime.stopAll();
|
|
2883
|
+
parts = [...parts, { type: "error", message: STOPPED_MESSAGE }];
|
|
2884
|
+
}
|
|
2885
|
+
if (useEditorStore.getState().document === before) updateMessage(id, (m) => ({ ...m, checkpoint: void 0 }), { save: false });
|
|
2886
|
+
flush(true);
|
|
2887
|
+
updateActiveThread((t) => ({ ...t, checkpoint: { id: checkpoint, label: "Undo these changes" } }));
|
|
2888
|
+
useAgentStore.setState({ running: false, resuming: false, abort: null });
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
export {
|
|
2892
|
+
agentRuns,
|
|
2893
|
+
continueTurn,
|
|
2894
|
+
editorToolContext,
|
|
2895
|
+
needsEditableSession,
|
|
2896
|
+
onChildTool,
|
|
2897
|
+
resumeInterrupted,
|
|
2898
|
+
runTurn,
|
|
2899
|
+
setAgentRuns
|
|
2900
|
+
};
|