@popcraft/kit 2.1.1 → 2.2.0
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-P7HGVCNW.js +44 -0
- package/dist/chunks/builtin-OP2QEWQT.js +121 -0
- package/dist/chunks/buy-credits-GVYXITE4.js +80 -0
- package/dist/chunks/check-template-H6HUSULC.js +2413 -0
- package/dist/chunks/chunk-232JPN6K.js +30 -0
- package/dist/chunks/chunk-236VRFNF.js +80 -0
- package/dist/chunks/chunk-23WZ2JTZ.js +307 -0
- package/dist/chunks/chunk-24QBLXUT.js +33 -0
- package/dist/chunks/chunk-254PZENJ.js +230 -0
- package/dist/chunks/chunk-25BTP5XI.js +134 -0
- package/dist/chunks/chunk-26F45VJK.js +104 -0
- package/dist/chunks/chunk-27CKXG6V.js +173 -0
- package/dist/chunks/chunk-2AG3G42Y.js +95 -0
- package/dist/chunks/chunk-2AWMOQUQ.js +157 -0
- package/dist/chunks/chunk-2E7QKXJ3.js +165 -0
- package/dist/chunks/chunk-2EXFPK42.js +366 -0
- package/dist/chunks/chunk-2JMQABRK.js +81 -0
- package/dist/chunks/chunk-2JPLPDLG.js +90 -0
- package/dist/chunks/chunk-2KQDZAUO.js +185 -0
- package/dist/chunks/chunk-2LXIPCFK.js +23 -0
- package/dist/chunks/chunk-2M6ITBP6.js +55 -0
- package/dist/chunks/chunk-2MKFRDDJ.js +33 -0
- package/dist/chunks/chunk-2MUUP2H2.js +97 -0
- package/dist/chunks/chunk-2NN2C64Q.js +93 -0
- package/dist/chunks/chunk-2P2P5NBM.js +777 -0
- package/dist/chunks/chunk-2RLLO2WI.js +135 -0
- package/dist/chunks/chunk-2SJELAFX.js +101 -0
- package/dist/chunks/chunk-2UB7ARZR.js +366 -0
- package/dist/chunks/chunk-2W3OUES3.js +104 -0
- package/dist/chunks/chunk-2WODX4XD.js +160 -0
- package/dist/chunks/chunk-2XB6SNOJ.js +59 -0
- package/dist/chunks/chunk-2YLTXTWI.js +23 -0
- package/dist/chunks/chunk-2YQRZ6NY.js +151 -0
- package/dist/chunks/chunk-2Z5TIWKN.js +48 -0
- package/dist/chunks/chunk-2ZN7ARWZ.js +250 -0
- package/dist/chunks/chunk-343E2AXU.js +1845 -0
- package/dist/chunks/chunk-34IK3L2Y.js +151 -0
- package/dist/chunks/chunk-37X3DJV7.js +163 -0
- package/dist/chunks/chunk-3A3BT525.js +287 -0
- package/dist/chunks/chunk-3B65XJA3.js +117 -0
- package/dist/chunks/chunk-3BAD36OY.js +78 -0
- package/dist/chunks/chunk-3CXUVMS4.js +154 -0
- package/dist/chunks/chunk-3EDABVEH.js +160 -0
- package/dist/chunks/chunk-3GZXNZP5.js +161 -0
- package/dist/chunks/chunk-3HUM5A67.js +65 -0
- package/dist/chunks/chunk-3JPB7MEH.js +149 -0
- package/dist/chunks/chunk-3JVXPXA4.js +180 -0
- package/dist/chunks/chunk-3K4RKE3I.js +146 -0
- package/dist/chunks/chunk-3K73U5TN.js +141 -0
- package/dist/chunks/chunk-3L3LYVMP.js +214 -0
- package/dist/chunks/chunk-3LPTEW6W.js +41 -0
- package/dist/chunks/chunk-3M3ZUF4B.js +327 -0
- package/dist/chunks/chunk-3OYOBCGJ.js +50 -0
- package/dist/chunks/chunk-3RWBLQWQ.js +378 -0
- package/dist/chunks/chunk-3RXUEBJI.js +52 -0
- package/dist/chunks/chunk-3T4M4ZJV.js +115 -0
- package/dist/chunks/chunk-3V6HHIRE.js +77 -0
- package/dist/chunks/chunk-3VCQLJAV.js +119 -0
- package/dist/chunks/chunk-3WBZA5H6.js +23 -0
- package/dist/chunks/chunk-3X6JBMNH.js +94 -0
- package/dist/chunks/chunk-3XWR2LME.js +96 -0
- package/dist/chunks/chunk-3XYFHJEQ.js +119 -0
- package/dist/chunks/chunk-3YBH6MTN.js +215 -0
- package/dist/chunks/chunk-3ZSSNZCD.js +177 -0
- package/dist/chunks/chunk-433D2YRC.js +120 -0
- package/dist/chunks/chunk-44EUV6SD.js +45 -0
- package/dist/chunks/chunk-45FM5ERK.js +150 -0
- package/dist/chunks/chunk-45ZUNYKO.js +23 -0
- package/dist/chunks/chunk-47BZUIVR.js +261 -0
- package/dist/chunks/chunk-4DDAOMTB.js +41 -0
- package/dist/chunks/chunk-4DEPBCX6.js +260 -0
- package/dist/chunks/chunk-4ECY4ZZB.js +33 -0
- package/dist/chunks/chunk-4EHXL56W.js +152 -0
- package/dist/chunks/chunk-4F2PRH55.js +78 -0
- package/dist/chunks/chunk-4FGSR3AO.js +84 -0
- package/dist/chunks/chunk-4GBJGZ3K.js +49 -0
- package/dist/chunks/chunk-4HBIGS6D.js +248 -0
- package/dist/chunks/chunk-4IIA7CG7.js +53 -0
- package/dist/chunks/chunk-4INRU2WD.js +45 -0
- package/dist/chunks/chunk-4IY2XN3W.js +65 -0
- package/dist/chunks/chunk-4M4HM4EG.js +108 -0
- package/dist/chunks/chunk-4MXDGF4R.js +969 -0
- package/dist/chunks/chunk-4N3RAKVR.js +181 -0
- package/dist/chunks/chunk-4ODJ6OYO.js +112 -0
- package/dist/chunks/chunk-4PA7JP3A.js +33 -0
- package/dist/chunks/chunk-4Q3AZTH4.js +110 -0
- package/dist/chunks/chunk-4QIPSKGK.js +60 -0
- package/dist/chunks/chunk-4QVPSRVQ.js +95 -0
- package/dist/chunks/chunk-4RIAXUQV.js +312 -0
- package/dist/chunks/chunk-4RPYGPF7.js +78 -0
- package/dist/chunks/chunk-4SOJ2SOD.js +93 -0
- package/dist/chunks/chunk-4T44SXRJ.js +13744 -0
- package/dist/chunks/chunk-4VHZUXZB.js +152 -0
- package/dist/chunks/chunk-4VJTVQZL.js +76 -0
- package/dist/chunks/chunk-553ONKEO.js +129 -0
- package/dist/chunks/chunk-55JQ5CMZ.js +117 -0
- package/dist/chunks/chunk-564CGLTJ.js +149 -0
- package/dist/chunks/chunk-57D55SBH.js +368 -0
- package/dist/chunks/chunk-5FTL3SIP.js +23 -0
- package/dist/chunks/chunk-5GSO32LF.js +112 -0
- package/dist/chunks/chunk-5JPHNO4N.js +375 -0
- package/dist/chunks/chunk-5K6BAG3U.js +84 -0
- package/dist/chunks/chunk-5KR3ZJLV.js +42 -0
- package/dist/chunks/chunk-5LJDGR5Q.js +304 -0
- package/dist/chunks/chunk-5M32EYWF.js +97 -0
- package/dist/chunks/chunk-5NSFMPTP.js +23 -0
- package/dist/chunks/chunk-5OUSH5MJ.js +137 -0
- package/dist/chunks/chunk-5RI2JDDG.js +97 -0
- package/dist/chunks/chunk-5RI6QE43.js +118 -0
- package/dist/chunks/chunk-5SZMSXGL.js +87 -0
- package/dist/chunks/chunk-5UD7AZLZ.js +33 -0
- package/dist/chunks/chunk-5VO7AMIQ.js +298 -0
- package/dist/chunks/chunk-5VPKBYAJ.js +84 -0
- package/dist/chunks/chunk-5WA6K27L.js +23 -0
- package/dist/chunks/chunk-5WZDTHUW.js +358 -0
- package/dist/chunks/chunk-5XGDQXS3.js +106 -0
- package/dist/chunks/chunk-62KQFT4J.js +179 -0
- package/dist/chunks/chunk-62XDLAW3.js +303 -0
- package/dist/chunks/chunk-64SY4VEJ.js +204 -0
- package/dist/chunks/chunk-663DZEKI.js +147 -0
- package/dist/chunks/chunk-66EQVVNR.js +150 -0
- package/dist/chunks/chunk-66U3PKET.js +195 -0
- package/dist/chunks/chunk-6F4Z5SKZ.js +178 -0
- package/dist/chunks/chunk-6GGTRQKZ.js +83 -0
- package/dist/chunks/chunk-6H7YLXOA.js +282 -0
- package/dist/chunks/chunk-6IM5GAHO.js +206 -0
- package/dist/chunks/chunk-6J7ACHJY.js +174 -0
- package/dist/chunks/chunk-6LNA56E2.js +55 -0
- package/dist/chunks/chunk-6MEGFLIJ.js +91 -0
- package/dist/chunks/chunk-6MWHL723.js +101 -0
- package/dist/chunks/chunk-6OIZXOCP.js +33 -0
- package/dist/chunks/chunk-6SSTDRHX.js +272 -0
- package/dist/chunks/chunk-6USWM2QK.js +95 -0
- package/dist/chunks/chunk-6X4L3AUZ.js +33 -0
- package/dist/chunks/chunk-6XQAWMJ6.js +112 -0
- package/dist/chunks/chunk-6YBUKPY4.js +160 -0
- package/dist/chunks/chunk-6YLE4LD5.js +121 -0
- package/dist/chunks/chunk-6YUELUON.js +185 -0
- package/dist/chunks/chunk-73KBL7PU.js +336 -0
- package/dist/chunks/chunk-74SHSQ3G.js +256 -0
- package/dist/chunks/chunk-76HKJ5QS.js +249 -0
- package/dist/chunks/chunk-76ODNIHD.js +80 -0
- package/dist/chunks/chunk-76OJD5AJ.js +131 -0
- package/dist/chunks/chunk-76XTGAVB.js +70 -0
- package/dist/chunks/chunk-7BTAAD7P.js +84 -0
- package/dist/chunks/chunk-7BU7M5KC.js +49 -0
- package/dist/chunks/chunk-7CJCJ7Y6.js +225 -0
- package/dist/chunks/chunk-7D4YCHZW.js +172 -0
- package/dist/chunks/chunk-7DP7RWQP.js +172 -0
- package/dist/chunks/chunk-7EMCIFOY.js +163 -0
- package/dist/chunks/chunk-7EZYNIS6.js +320 -0
- package/dist/chunks/chunk-7HB2QKD4.js +284 -0
- package/dist/chunks/chunk-7HLYL2NY.js +122 -0
- package/dist/chunks/chunk-7IAUWAYR.js +23 -0
- package/dist/chunks/chunk-7J6DX5VO.js +157 -0
- package/dist/chunks/chunk-7KFK67RI.js +166 -0
- package/dist/chunks/chunk-7KXL5VKS.js +168 -0
- package/dist/chunks/chunk-7LOI2O7T.js +92 -0
- package/dist/chunks/chunk-7M6ZZ63G.js +136 -0
- package/dist/chunks/chunk-7ME5JJQZ.js +33 -0
- package/dist/chunks/chunk-7QI4OZKV.js +146 -0
- package/dist/chunks/chunk-7QLRGLDX.js +209 -0
- package/dist/chunks/chunk-7UHFQAR2.js +105 -0
- package/dist/chunks/chunk-7V5JY5YF.js +153 -0
- package/dist/chunks/chunk-7XLJZIIH.js +155 -0
- package/dist/chunks/chunk-7XXFXOJJ.js +93 -0
- package/dist/chunks/chunk-7YJQNULZ.js +422 -0
- package/dist/chunks/chunk-7ZH6F3HL.js +195 -0
- package/dist/chunks/chunk-7ZVMLB2S.js +317 -0
- package/dist/chunks/chunk-A53Z5YQK.js +315 -0
- package/dist/chunks/chunk-ACGT5VLK.js +1136 -0
- package/dist/chunks/chunk-AGHBMVXG.js +146 -0
- package/dist/chunks/chunk-AJNO272E.js +169 -0
- package/dist/chunks/chunk-ALZRIFBR.js +161 -0
- package/dist/chunks/chunk-AMEU66HZ.js +97 -0
- package/dist/chunks/chunk-AMIFNIPG.js +55 -0
- package/dist/chunks/chunk-AND5FL2K.js +171 -0
- package/dist/chunks/chunk-ANDBBN46.js +10754 -0
- package/dist/chunks/chunk-ANXQHGF3.js +47 -0
- package/dist/chunks/chunk-AO2UAQTX.js +159 -0
- package/dist/chunks/chunk-AOXKD5EF.js +202 -0
- package/dist/chunks/chunk-AP336WOR.js +110 -0
- package/dist/chunks/chunk-APVN7BVI.js +147 -0
- package/dist/chunks/chunk-AQPM4BFQ.js +45 -0
- package/dist/chunks/chunk-AUCKAFKE.js +149 -0
- package/dist/chunks/chunk-AVNXH6XE.js +108 -0
- package/dist/chunks/chunk-AVRYOM7T.js +50 -0
- package/dist/chunks/chunk-AWZVQM3X.js +305 -0
- package/dist/chunks/chunk-AXQ4RELD.js +86 -0
- package/dist/chunks/chunk-AZ4HQLN2.js +133 -0
- package/dist/chunks/chunk-AZ7Y2BN2.js +235 -0
- package/dist/chunks/chunk-B4JUX4UQ.js +626 -0
- package/dist/chunks/chunk-B5WBQEXS.js +45 -0
- package/dist/chunks/chunk-B7PBO75X.js +171 -0
- package/dist/chunks/chunk-B7Q2RRLB.js +155 -0
- package/dist/chunks/chunk-BBS3FWVS.js +351 -0
- package/dist/chunks/chunk-BBSXHAB6.js +79 -0
- package/dist/chunks/chunk-BCJODA5P.js +123 -0
- package/dist/chunks/chunk-BEMIKCDS.js +183 -0
- package/dist/chunks/chunk-BFRRASKD.js +73 -0
- package/dist/chunks/chunk-BGBKFAEP.js +258 -0
- package/dist/chunks/chunk-BH2AKXBV.js +45 -0
- package/dist/chunks/chunk-BH4ZUMW3.js +231 -0
- package/dist/chunks/chunk-BIVOC77W.js +191 -0
- package/dist/chunks/chunk-BJPZZCMG.js +23 -0
- package/dist/chunks/chunk-BK3CBOBD.js +685 -0
- package/dist/chunks/chunk-BKCI6WDN.js +118 -0
- package/dist/chunks/chunk-BOHNTUCB.js +305 -0
- package/dist/chunks/chunk-BOS4DZM4.js +167 -0
- package/dist/chunks/chunk-BPTR672Y.js +140 -0
- package/dist/chunks/chunk-BQIEIWAT.js +415 -0
- package/dist/chunks/chunk-BRMNHQ3O.js +30 -0
- package/dist/chunks/chunk-BSUFO4EL.js +23 -0
- package/dist/chunks/chunk-BTNIFCOJ.js +156 -0
- package/dist/chunks/chunk-BVGABALZ.js +23 -0
- package/dist/chunks/chunk-BVXSXZJS.js +121 -0
- package/dist/chunks/chunk-BWFSRYDL.js +66 -0
- package/dist/chunks/chunk-BWVTUSCO.js +164 -0
- package/dist/chunks/chunk-BZNM6LZD.js +147 -0
- package/dist/chunks/chunk-C2V2L5U2.js +134 -0
- package/dist/chunks/chunk-C2WWEWTJ.js +346 -0
- package/dist/chunks/chunk-C4EESUZZ.js +1309 -0
- package/dist/chunks/chunk-C6OKNNN4.js +51 -0
- package/dist/chunks/chunk-C6QQQ6EH.js +155 -0
- package/dist/chunks/chunk-CB2Q7LTE.js +100 -0
- package/dist/chunks/chunk-CCJHXHXE.js +41 -0
- package/dist/chunks/chunk-CCLG57SM.js +99 -0
- package/dist/chunks/chunk-CG43LWCM.js +111 -0
- package/dist/chunks/chunk-CH4IHJLG.js +128 -0
- package/dist/chunks/chunk-CHINI7UI.js +119 -0
- package/dist/chunks/chunk-CHIV625L.js +82 -0
- package/dist/chunks/chunk-CILHGZFQ.js +100 -0
- package/dist/chunks/chunk-CINVJP6W.js +301 -0
- package/dist/chunks/chunk-CLGO6SHN.js +110 -0
- package/dist/chunks/chunk-CMLQWKQZ.js +122 -0
- package/dist/chunks/chunk-CPRDN2OI.js +88 -0
- package/dist/chunks/chunk-CQK7XU6S.js +166 -0
- package/dist/chunks/chunk-CTMD42TV.js +135 -0
- package/dist/chunks/chunk-CVWSUCHL.js +60 -0
- package/dist/chunks/chunk-CWOCHKQW.js +114 -0
- package/dist/chunks/chunk-CZAG3JSE.js +103 -0
- package/dist/chunks/chunk-D3HKYVAU.js +231 -0
- package/dist/chunks/chunk-D3IKQQCF.js +70 -0
- package/dist/chunks/chunk-D3YFOMNZ.js +146 -0
- package/dist/chunks/chunk-D4PJM7B5.js +120 -0
- package/dist/chunks/chunk-D4RFDMYE.js +154 -0
- package/dist/chunks/chunk-D5AUTMUO.js +278 -0
- package/dist/chunks/chunk-D5RMPV2W.js +75 -0
- package/dist/chunks/chunk-D7SIOPXR.js +161 -0
- package/dist/chunks/chunk-D7Z6ZQ6F.js +217 -0
- package/dist/chunks/chunk-DB7CHK3N.js +10311 -0
- package/dist/chunks/chunk-DBCMNUWX.js +33 -0
- package/dist/chunks/chunk-DBEREBBV.js +184 -0
- package/dist/chunks/chunk-DBJIDJUL.js +213 -0
- package/dist/chunks/chunk-DC5OVIWB.js +232 -0
- package/dist/chunks/chunk-DCSC3C22.js +105 -0
- package/dist/chunks/chunk-DDPPF7PJ.js +170 -0
- package/dist/chunks/chunk-DDT72U47.js +191 -0
- package/dist/chunks/chunk-DED4WDP4.js +82 -0
- package/dist/chunks/chunk-DFZDC6A3.js +70 -0
- package/dist/chunks/chunk-DJ3WXFYD.js +92 -0
- package/dist/chunks/chunk-DJBRZ6BY.js +239 -0
- package/dist/chunks/chunk-DJZDI75L.js +131 -0
- package/dist/chunks/chunk-DMKBT4V6.js +497 -0
- package/dist/chunks/chunk-DMLMVAAU.js +94 -0
- package/dist/chunks/chunk-DNMCF2Q6.js +71 -0
- package/dist/chunks/chunk-DO6IOBBC.js +231 -0
- package/dist/chunks/chunk-DOJ4VZL6.js +23 -0
- package/dist/chunks/chunk-DOZTKRCA.js +74 -0
- package/dist/chunks/chunk-DQEUUDJ2.js +77 -0
- package/dist/chunks/chunk-DRUOP6C5.js +106 -0
- package/dist/chunks/chunk-DSOGSLRQ.js +23 -0
- package/dist/chunks/chunk-DSZSDJ4R.js +45 -0
- package/dist/chunks/chunk-DUWCIVBJ.js +53 -0
- package/dist/chunks/chunk-DVPBPDE5.js +23 -0
- package/dist/chunks/chunk-DWN5NE2Y.js +138 -0
- package/dist/chunks/chunk-DX5SGTH4.js +97 -0
- package/dist/chunks/chunk-DY3NSYIE.js +79 -0
- package/dist/chunks/chunk-DZYZWHET.js +111 -0
- package/dist/chunks/chunk-E2O3Z26A.js +135 -0
- package/dist/chunks/chunk-E4DHDZJX.js +147 -0
- package/dist/chunks/chunk-E4NXTX3J.js +358 -0
- package/dist/chunks/chunk-E6DS6ZXV.js +98 -0
- package/dist/chunks/chunk-E7MJ2KJ3.js +103 -0
- package/dist/chunks/chunk-EA65JFUM.js +77 -0
- package/dist/chunks/chunk-EACL2MQ6.js +87 -0
- package/dist/chunks/chunk-EE6A5TVL.js +199 -0
- package/dist/chunks/chunk-EEKY53K5.js +190 -0
- package/dist/chunks/chunk-EGNAFJZD.js +107 -0
- package/dist/chunks/chunk-EIEPNBGE.js +122 -0
- package/dist/chunks/chunk-EJI34M56.js +130 -0
- package/dist/chunks/chunk-EK7LWMGO.js +113 -0
- package/dist/chunks/chunk-ELULTHTA.js +133 -0
- package/dist/chunks/chunk-EM66TMTT.js +125 -0
- package/dist/chunks/chunk-EMT2CW3I.js +120 -0
- package/dist/chunks/chunk-EMVSQ7CI.js +94 -0
- package/dist/chunks/chunk-ENXAN7XE.js +156 -0
- package/dist/chunks/chunk-EP2Y2DQC.js +163 -0
- package/dist/chunks/chunk-ERZEKYYH.js +156 -0
- package/dist/chunks/chunk-ES5U6G4M.js +133 -0
- package/dist/chunks/chunk-ESDUFVIK.js +214 -0
- package/dist/chunks/chunk-ETZZQLKJ.js +173 -0
- package/dist/chunks/chunk-EV5YIF6W.js +100 -0
- package/dist/chunks/chunk-EYADU6RF.js +232 -0
- package/dist/chunks/chunk-EZ6XSCEC.js +255 -0
- package/dist/chunks/chunk-F3JHDAZD.js +74 -0
- package/dist/chunks/chunk-F4EXOPKX.js +53 -0
- package/dist/chunks/chunk-F4JQM2YN.js +180 -0
- package/dist/chunks/chunk-F7X7HLCM.js +128 -0
- package/dist/chunks/chunk-FA55CRIQ.js +71 -0
- package/dist/chunks/chunk-FCQZHDKG.js +1393 -0
- package/dist/chunks/chunk-FCT3BNU2.js +33 -0
- package/dist/chunks/chunk-FDH7SAXS.js +97 -0
- package/dist/chunks/chunk-FDU3OEWK.js +139 -0
- package/dist/chunks/chunk-FEW6TQHR.js +106 -0
- package/dist/chunks/chunk-FGKTSLP6.js +261 -0
- package/dist/chunks/chunk-FIDDNY44.js +142 -0
- package/dist/chunks/chunk-FIGCPMPD.js +279 -0
- package/dist/chunks/chunk-FJS77M7O.js +23 -0
- package/dist/chunks/chunk-FPHA46LG.js +125 -0
- package/dist/chunks/chunk-FQCQJ4X6.js +90 -0
- package/dist/chunks/chunk-FQOSX6M3.js +293 -0
- package/dist/chunks/chunk-FROSRXOO.js +165 -0
- package/dist/chunks/chunk-FWYL3DVO.js +164 -0
- package/dist/chunks/chunk-FWZ2MM4M.js +192 -0
- package/dist/chunks/chunk-FXLJ65BX.js +96 -0
- package/dist/chunks/chunk-FZWV3XLC.js +209 -0
- package/dist/chunks/chunk-G3QHCUHD.js +166 -0
- package/dist/chunks/chunk-G4EW4JEB.js +252 -0
- package/dist/chunks/chunk-GB3CW6KJ.js +94 -0
- package/dist/chunks/chunk-GEFNY23G.js +156 -0
- package/dist/chunks/chunk-GFFM7JNX.js +91 -0
- package/dist/chunks/chunk-GHP4JVKZ.js +81 -0
- package/dist/chunks/chunk-GL2O4CFH.js +161 -0
- package/dist/chunks/chunk-GMOQFOUA.js +362 -0
- package/dist/chunks/chunk-GMP2ADQB.js +247 -0
- package/dist/chunks/chunk-GOMIIZ7X.js +225 -0
- package/dist/chunks/chunk-GOY3UUMQ.js +181 -0
- package/dist/chunks/chunk-GP2KYOTR.js +221 -0
- package/dist/chunks/chunk-GQKHH5WV.js +99 -0
- package/dist/chunks/chunk-GQUOFO76.js +240 -0
- package/dist/chunks/chunk-GR6Z7H2W.js +361 -0
- package/dist/chunks/chunk-GRNKV4NB.js +106 -0
- package/dist/chunks/chunk-GS2BMAIN.js +290 -0
- package/dist/chunks/chunk-GTUYVBHO.js +194 -0
- package/dist/chunks/chunk-GVFGE722.js +139 -0
- package/dist/chunks/chunk-GWWBXGJL.js +77 -0
- package/dist/chunks/chunk-GXR3FNUC.js +261 -0
- package/dist/chunks/chunk-GZVTPHEP.js +33 -0
- package/dist/chunks/chunk-H4E7LE4H.js +36 -0
- package/dist/chunks/chunk-H4PYX3BF.js +150 -0
- package/dist/chunks/chunk-H4TOZ5XA.js +23 -0
- package/dist/chunks/chunk-H4YXVXL5.js +187 -0
- package/dist/chunks/chunk-H6MRXGSE.js +92 -0
- package/dist/chunks/chunk-H6U4FULE.js +111 -0
- package/dist/chunks/chunk-H6WLCH5B.js +23 -0
- package/dist/chunks/chunk-HFOQDU5Q.js +33 -0
- package/dist/chunks/chunk-HHBL4SID.js +152 -0
- package/dist/chunks/chunk-HILGW43I.js +175 -0
- package/dist/chunks/chunk-HINLQ5FN.js +77 -0
- package/dist/chunks/chunk-HIQ5FD7H.js +197 -0
- package/dist/chunks/chunk-HM5HH5TI.js +201 -0
- package/dist/chunks/chunk-HS4TY3IN.js +257 -0
- package/dist/chunks/chunk-HSAZMXS2.js +95 -0
- package/dist/chunks/chunk-HUNNJ6ES.js +61 -0
- package/dist/chunks/chunk-HUVOXNJR.js +41 -0
- package/dist/chunks/chunk-HVLMLDRF.js +145 -0
- package/dist/chunks/chunk-HY6S2AIG.js +112 -0
- package/dist/chunks/chunk-HYAJTIZK.js +33 -0
- package/dist/chunks/chunk-HZ26TER2.js +337 -0
- package/dist/chunks/chunk-HZ4ZINRT.js +130 -0
- package/dist/chunks/chunk-HZQBV3B7.js +165 -0
- package/dist/chunks/chunk-I5DDNMWU.js +106 -0
- package/dist/chunks/chunk-IAXDJGOY.js +55 -0
- package/dist/chunks/chunk-ICLUTKAM.js +1469 -0
- package/dist/chunks/chunk-IEVGG3CN.js +106 -0
- package/dist/chunks/chunk-IEXR4RMV.js +81 -0
- package/dist/chunks/chunk-II25EN7C.js +327 -0
- package/dist/chunks/chunk-IJKHCEDP.js +23 -0
- package/dist/chunks/chunk-IJW6NZ7R.js +84 -0
- package/dist/chunks/chunk-IPZKQHV5.js +192 -0
- package/dist/chunks/chunk-IRC7IGY2.js +78 -0
- package/dist/chunks/chunk-IRTVKCPC.js +33 -0
- package/dist/chunks/chunk-IS4V3CH3.js +100 -0
- package/dist/chunks/chunk-IUTJYV2B.js +80 -0
- package/dist/chunks/chunk-IVHLMGCI.js +153 -0
- package/dist/chunks/chunk-IWYN2VSX.js +157 -0
- package/dist/chunks/chunk-IXICLNCX.js +283 -0
- package/dist/chunks/chunk-IYR3JOTM.js +23 -0
- package/dist/chunks/chunk-IZTX3TRV.js +331 -0
- package/dist/chunks/chunk-J2ISIGMW.js +206 -0
- package/dist/chunks/chunk-J2OYBVX2.js +182 -0
- package/dist/chunks/chunk-J33JUOHJ.js +109 -0
- package/dist/chunks/chunk-J3CH5WEW.js +45 -0
- package/dist/chunks/chunk-J3P4VJU6.js +98 -0
- package/dist/chunks/chunk-J5O27P5U.js +215 -0
- package/dist/chunks/chunk-J7CQPIXR.js +33 -0
- package/dist/chunks/chunk-JAPNXFKI.js +144 -0
- package/dist/chunks/chunk-JBMMFKLN.js +118 -0
- package/dist/chunks/chunk-JCHF4BZI.js +39 -0
- package/dist/chunks/chunk-JCOXZDBL.js +396 -0
- package/dist/chunks/chunk-JE6A5KYI.js +188 -0
- package/dist/chunks/chunk-JF622NIZ.js +33 -0
- package/dist/chunks/chunk-JGUP4Y6M.js +188 -0
- package/dist/chunks/chunk-JIDGAP2O.js +208 -0
- package/dist/chunks/chunk-JIKCTH7S.js +150 -0
- package/dist/chunks/chunk-JJH4XNFL.js +53 -0
- package/dist/chunks/chunk-JJICGVJS.js +282 -0
- package/dist/chunks/chunk-JM35MJS6.js +71 -0
- package/dist/chunks/chunk-JNGSPD6Q.js +283 -0
- package/dist/chunks/chunk-JQRG5YJY.js +90 -0
- package/dist/chunks/chunk-JQWHMCFS.js +177 -0
- package/dist/chunks/chunk-JTQOOGOU.js +90 -0
- package/dist/chunks/chunk-JTTD3JF4.js +224 -0
- package/dist/chunks/chunk-JXFAJCMT.js +94 -0
- package/dist/chunks/chunk-K3QXEBAV.js +200 -0
- package/dist/chunks/chunk-K5RZQMN5.js +103 -0
- package/dist/chunks/chunk-K6RI56DF.js +221 -0
- package/dist/chunks/chunk-K7GYFWU5.js +187 -0
- package/dist/chunks/chunk-K7KZ7JR5.js +196 -0
- package/dist/chunks/chunk-KB7B55QF.js +122 -0
- package/dist/chunks/chunk-KBDAOBBV.js +102 -0
- package/dist/chunks/chunk-KEEH6TVP.js +36 -0
- package/dist/chunks/chunk-KFERD2HE.js +122 -0
- package/dist/chunks/chunk-KK3JGDZY.js +898 -0
- package/dist/chunks/chunk-KKDC2EPV.js +143 -0
- package/dist/chunks/chunk-KLETGLJV.js +212 -0
- package/dist/chunks/chunk-KPGJXUHT.js +126 -0
- package/dist/chunks/chunk-KPNHE4SY.js +207 -0
- package/dist/chunks/chunk-KQ46VGI5.js +92 -0
- package/dist/chunks/chunk-KQJ3Y5UD.js +169 -0
- package/dist/chunks/chunk-KR3FQZ6X.js +97 -0
- package/dist/chunks/chunk-KRWX4P5B.js +102 -0
- package/dist/chunks/chunk-KTNYMUWX.js +130 -0
- package/dist/chunks/chunk-KU25J6OH.js +163 -0
- package/dist/chunks/chunk-KVHASP3S.js +140 -0
- package/dist/chunks/chunk-KVSJ4OH6.js +104 -0
- package/dist/chunks/chunk-KWXSHPCE.js +33 -0
- package/dist/chunks/chunk-KX55ZJSE.js +187 -0
- package/dist/chunks/chunk-KXASSF7P.js +124 -0
- package/dist/chunks/chunk-KZOIGDPE.js +49 -0
- package/dist/chunks/chunk-L7IAIQ7O.js +360 -0
- package/dist/chunks/chunk-L7Q2OMHE.js +162 -0
- package/dist/chunks/chunk-LAICVOYN.js +105 -0
- package/dist/chunks/chunk-LAZVB6CO.js +33 -0
- package/dist/chunks/chunk-LD26OUB7.js +85 -0
- package/dist/chunks/chunk-LFOH2U3T.js +139 -0
- package/dist/chunks/chunk-LGHQAN5T.js +100 -0
- package/dist/chunks/chunk-LHP5DYVJ.js +83 -0
- package/dist/chunks/chunk-LIEJFG4E.js +589 -0
- package/dist/chunks/chunk-LITR3HMT.js +131 -0
- package/dist/chunks/chunk-LIUIZ6NP.js +559 -0
- package/dist/chunks/chunk-LIWQUS22.js +23 -0
- package/dist/chunks/chunk-LJ2VUD7X.js +273 -0
- package/dist/chunks/chunk-LJ753BVJ.js +101 -0
- package/dist/chunks/chunk-LKX4IQVL.js +127 -0
- package/dist/chunks/chunk-LLCTZPMT.js +33 -0
- package/dist/chunks/chunk-LLS72RU3.js +242 -0
- package/dist/chunks/chunk-LMI32EL4.js +652 -0
- package/dist/chunks/chunk-LNCNNU5T.js +123 -0
- package/dist/chunks/chunk-LNX7VARO.js +33 -0
- package/dist/chunks/chunk-LQKGG4AD.js +226 -0
- package/dist/chunks/chunk-LRRPKUC4.js +199 -0
- package/dist/chunks/chunk-LU3FXAWS.js +167 -0
- package/dist/chunks/chunk-LUEICVWA.js +33 -0
- package/dist/chunks/chunk-LUGF4T2J.js +102 -0
- package/dist/chunks/chunk-LWA3WWCP.js +210 -0
- package/dist/chunks/chunk-LY2UFM4A.js +78 -0
- package/dist/chunks/chunk-M45MLETT.js +255 -0
- package/dist/chunks/chunk-M4F3HHVB.js +81 -0
- package/dist/chunks/chunk-M5TJ7DQD.js +198 -0
- package/dist/chunks/chunk-M6U54BJD.js +23 -0
- package/dist/chunks/chunk-MA43GPNE.js +263 -0
- package/dist/chunks/chunk-MBCP6QXI.js +1403 -0
- package/dist/chunks/chunk-MCTK4GI2.js +152 -0
- package/dist/chunks/chunk-MD67HL7L.js +23 -0
- package/dist/chunks/chunk-MF25VPWI.js +172 -0
- package/dist/chunks/chunk-MFBV7GLZ.js +66 -0
- package/dist/chunks/chunk-MILBJUCM.js +206 -0
- package/dist/chunks/chunk-MISY6CSG.js +95 -0
- package/dist/chunks/chunk-MK335LLP.js +250 -0
- package/dist/chunks/chunk-MK6EHYKM.js +277 -0
- package/dist/chunks/chunk-MKHERIRB.js +190 -0
- package/dist/chunks/chunk-MKWGQZUS.js +23 -0
- package/dist/chunks/chunk-MLORFEWQ.js +54 -0
- package/dist/chunks/chunk-MLXBTGYX.js +85 -0
- package/dist/chunks/chunk-MQGIAQDS.js +46 -0
- package/dist/chunks/chunk-MUM4K6QV.js +146 -0
- package/dist/chunks/chunk-MUVM2AYN.js +138 -0
- package/dist/chunks/chunk-MWSZ2GSB.js +237 -0
- package/dist/chunks/chunk-MWXGNXJO.js +104 -0
- package/dist/chunks/chunk-MXWI3AMJ.js +247 -0
- package/dist/chunks/chunk-MZK6PFQ3.js +95 -0
- package/dist/chunks/chunk-MZXRFMRG.js +179 -0
- package/dist/chunks/chunk-N3XYJTUB.js +77 -0
- package/dist/chunks/chunk-N4CO5FZ3.js +228 -0
- package/dist/chunks/chunk-N4VB4ZMB.js +298 -0
- package/dist/chunks/chunk-N5VELXBD.js +163 -0
- package/dist/chunks/chunk-N7LJZGSZ.js +106 -0
- package/dist/chunks/chunk-NAHIVTUT.js +655 -0
- package/dist/chunks/chunk-NCTE7257.js +361 -0
- package/dist/chunks/chunk-ND4VUD5P.js +115 -0
- package/dist/chunks/chunk-NEMWI7N4.js +85 -0
- package/dist/chunks/chunk-NESWJC5O.js +130 -0
- package/dist/chunks/chunk-NFRGPSPW.js +262 -0
- package/dist/chunks/chunk-NFTBNLRV.js +115 -0
- package/dist/chunks/chunk-NGHMYAF4.js +238 -0
- package/dist/chunks/chunk-NGUIU3YY.js +270 -0
- package/dist/chunks/chunk-NH6O2MJ7.js +152 -0
- package/dist/chunks/chunk-NIJM36CN.js +33 -0
- package/dist/chunks/chunk-NIUGDI2G.js +260 -0
- package/dist/chunks/chunk-NIVSES62.js +115 -0
- package/dist/chunks/chunk-NKF4VROX.js +107 -0
- package/dist/chunks/chunk-NKYJVU32.js +89 -0
- package/dist/chunks/chunk-NN53ITDU.js +410 -0
- package/dist/chunks/chunk-NNJIRWES.js +88 -0
- package/dist/chunks/chunk-NONVU4DV.js +267 -0
- package/dist/chunks/chunk-NPCKJH7A.js +89 -0
- package/dist/chunks/chunk-NUHH2ASY.js +94 -0
- package/dist/chunks/chunk-NV2KXYJ6.js +176 -0
- package/dist/chunks/chunk-NYTID2GK.js +163 -0
- package/dist/chunks/chunk-NZWOBFWA.js +176 -0
- package/dist/chunks/chunk-O2G4BJSR.js +36 -0
- package/dist/chunks/chunk-O346NN3I.js +244 -0
- package/dist/chunks/chunk-O3KSJKT7.js +262 -0
- package/dist/chunks/chunk-O456EAOJ.js +222 -0
- package/dist/chunks/chunk-O4OVMVWF.js +303 -0
- package/dist/chunks/chunk-O5C5UQ5N.js +108 -0
- package/dist/chunks/chunk-O6GGXAIH.js +146 -0
- package/dist/chunks/chunk-OB7EBP6P.js +90 -0
- package/dist/chunks/chunk-OHK7MJSZ.js +48 -0
- package/dist/chunks/chunk-OIOYOIVX.js +141 -0
- package/dist/chunks/chunk-OJ2MLEIA.js +292 -0
- package/dist/chunks/chunk-OJ2RCAFX.js +83 -0
- package/dist/chunks/chunk-OJTOU7HQ.js +175 -0
- package/dist/chunks/chunk-OLHSUE4L.js +184 -0
- package/dist/chunks/chunk-OMHE5MKX.js +42 -0
- package/dist/chunks/chunk-OMOIKSUL.js +74 -0
- package/dist/chunks/chunk-ONBG65ZT.js +33 -0
- package/dist/chunks/chunk-OQX5DNMO.js +123 -0
- package/dist/chunks/chunk-OR2A4Y3E.js +33 -0
- package/dist/chunks/chunk-OS5R7D7I.js +69 -0
- package/dist/chunks/chunk-OTZ5MCJV.js +191 -0
- package/dist/chunks/chunk-OUWD2UHC.js +163 -0
- package/dist/chunks/chunk-OV3VJPST.js +83 -0
- package/dist/chunks/chunk-OXFJONTX.js +86 -0
- package/dist/chunks/chunk-OXGFMWHZ.js +462 -0
- package/dist/chunks/chunk-OYB5WMIB.js +115 -0
- package/dist/chunks/chunk-OZIWFXTX.js +178 -0
- package/dist/chunks/chunk-P2KOQFYL.js +45 -0
- package/dist/chunks/chunk-P2O53PB5.js +23 -0
- package/dist/chunks/chunk-P434OFXO.js +218 -0
- package/dist/chunks/chunk-P5CB42NR.js +127 -0
- package/dist/chunks/chunk-P5VQIVEE.js +45 -0
- package/dist/chunks/chunk-P6QPLC7J.js +63 -0
- package/dist/chunks/chunk-P6YUPPZ6.js +200 -0
- package/dist/chunks/chunk-P737E5EZ.js +99 -0
- package/dist/chunks/chunk-P7QYPLI5.js +136 -0
- package/dist/chunks/chunk-PCOKFICX.js +159 -0
- package/dist/chunks/chunk-PDETCOJ2.js +182 -0
- package/dist/chunks/chunk-PDTKFBOS.js +118 -0
- package/dist/chunks/chunk-PGDRUNGD.js +45 -0
- package/dist/chunks/chunk-PIROW62E.js +91 -0
- package/dist/chunks/chunk-PIX7TFED.js +282 -0
- package/dist/chunks/chunk-PKM35VMW.js +125 -0
- package/dist/chunks/chunk-PKSPCQDC.js +47 -0
- package/dist/chunks/chunk-PLKPNZZR.js +153 -0
- package/dist/chunks/chunk-PNKSB57L.js +149 -0
- package/dist/chunks/chunk-PQ5MJB5R.js +198 -0
- package/dist/chunks/chunk-PRKNEM43.js +79 -0
- package/dist/chunks/chunk-PSCI6WC4.js +218 -0
- package/dist/chunks/chunk-PSGBCPQX.js +169 -0
- package/dist/chunks/chunk-PTBFHGGV.js +304 -0
- package/dist/chunks/chunk-PUDMMXT5.js +23 -0
- package/dist/chunks/chunk-PVRUET6K.js +177 -0
- package/dist/chunks/chunk-PYEK2IEG.js +197 -0
- package/dist/chunks/chunk-PYTXSGU2.js +128 -0
- package/dist/chunks/chunk-PZ34IMTO.js +217 -0
- package/dist/chunks/chunk-PZILMUNF.js +45 -0
- package/dist/chunks/chunk-Q23EUNUX.js +129 -0
- package/dist/chunks/chunk-Q3TVIDAE.js +45 -0
- package/dist/chunks/chunk-Q6G26NE6.js +115 -0
- package/dist/chunks/chunk-Q6QQ6UWS.js +33 -0
- package/dist/chunks/chunk-Q7NECXOH.js +47 -0
- package/dist/chunks/chunk-QD4AOF36.js +121 -0
- package/dist/chunks/chunk-QD4LPM5S.js +390 -0
- package/dist/chunks/chunk-QE5ONYHF.js +81 -0
- package/dist/chunks/chunk-QETWMTHI.js +1834 -0
- package/dist/chunks/chunk-QF5FA4SS.js +261 -0
- package/dist/chunks/chunk-QFUXNPWE.js +165 -0
- package/dist/chunks/chunk-QILUML7U.js +45 -0
- package/dist/chunks/chunk-QK2FBDKB.js +151 -0
- package/dist/chunks/chunk-QKCIGYH4.js +120 -0
- package/dist/chunks/chunk-QLRX3OHU.js +89 -0
- package/dist/chunks/chunk-QMTOESK2.js +92 -0
- package/dist/chunks/chunk-QNGEKTRF.js +276 -0
- package/dist/chunks/chunk-QNVOXQGE.js +274 -0
- package/dist/chunks/chunk-QOOYE3UI.js +140 -0
- package/dist/chunks/chunk-QPKK6N3T.js +33 -0
- package/dist/chunks/chunk-QPXUJZ6H.js +28 -0
- package/dist/chunks/chunk-QRRRIYJL.js +342 -0
- package/dist/chunks/chunk-QRTDHMOF.js +91 -0
- package/dist/chunks/chunk-QRYL2X7D.js +152 -0
- package/dist/chunks/chunk-QTMLJSEN.js +45 -0
- package/dist/chunks/chunk-QUJG2IRA.js +266 -0
- package/dist/chunks/chunk-QUN6Q563.js +102 -0
- package/dist/chunks/chunk-QV6NLK7B.js +23 -0
- package/dist/chunks/chunk-QWXWAHAV.js +147 -0
- package/dist/chunks/chunk-R47VLQ2W.js +158 -0
- package/dist/chunks/chunk-R6T2HWLA.js +178 -0
- package/dist/chunks/chunk-R7A55SQV.js +251 -0
- package/dist/chunks/chunk-R7CMKFJ5.js +45 -0
- package/dist/chunks/chunk-RBMFM2NL.js +334 -0
- package/dist/chunks/chunk-REGNTUS7.js +117 -0
- package/dist/chunks/chunk-RHDQEWRS.js +80 -0
- package/dist/chunks/chunk-RIQE3H35.js +307 -0
- package/dist/chunks/chunk-RISTF5XZ.js +44 -0
- package/dist/chunks/chunk-RJYYMQ7B.js +287 -0
- package/dist/chunks/chunk-RSHGVTNM.js +38 -0
- package/dist/chunks/chunk-RTN34ALF.js +158 -0
- package/dist/chunks/chunk-RUJHUWFW.js +100 -0
- package/dist/chunks/chunk-RVPM5U7W.js +93 -0
- package/dist/chunks/chunk-RWV2AUGJ.js +176 -0
- package/dist/chunks/chunk-RXHUGE4Q.js +23 -0
- package/dist/chunks/chunk-RXP5QGRN.js +23 -0
- package/dist/chunks/chunk-RZHD6LSK.js +177 -0
- package/dist/chunks/chunk-RZT3BV2C.js +87 -0
- package/dist/chunks/chunk-S2COOTF7.js +169 -0
- package/dist/chunks/chunk-S2N5G3PG.js +105 -0
- package/dist/chunks/chunk-S2Y6XWMM.js +200 -0
- package/dist/chunks/chunk-S3A7ZJWA.js +80 -0
- package/dist/chunks/chunk-S4T4AFL2.js +270 -0
- package/dist/chunks/chunk-S4V3JKVX.js +174 -0
- package/dist/chunks/chunk-S4WT4733.js +153 -0
- package/dist/chunks/chunk-S5QG6CA6.js +150 -0
- package/dist/chunks/chunk-S65YZTEA.js +194 -0
- package/dist/chunks/chunk-S6HDVUGS.js +166 -0
- package/dist/chunks/chunk-S6RFXZCL.js +33 -0
- package/dist/chunks/chunk-S7KJ4F75.js +135 -0
- package/dist/chunks/chunk-SB2WMWUU.js +2168 -0
- package/dist/chunks/chunk-SBDPOIDA.js +150 -0
- package/dist/chunks/chunk-SCFIVDY6.js +137 -0
- package/dist/chunks/chunk-SDAYLYON.js +68 -0
- package/dist/chunks/chunk-SFOOVYFM.js +54 -0
- package/dist/chunks/chunk-SGAINMPP.js +329 -0
- package/dist/chunks/chunk-SK2N6MPC.js +320 -0
- package/dist/chunks/chunk-SUA2I3OK.js +108 -0
- package/dist/chunks/chunk-SVCTCSWK.js +1419 -0
- package/dist/chunks/chunk-SVI5T722.js +168 -0
- package/dist/chunks/chunk-SWPV2B72.js +646 -0
- package/dist/chunks/chunk-SXBDSYJ5.js +23 -0
- package/dist/chunks/chunk-T2AXZEDB.js +220 -0
- package/dist/chunks/chunk-T2UI5BGK.js +159 -0
- package/dist/chunks/chunk-T3BQ3OPN.js +100 -0
- package/dist/chunks/chunk-T47J7UUI.js +23 -0
- package/dist/chunks/chunk-T4IWHWT3.js +237 -0
- package/dist/chunks/chunk-T57KDVBZ.js +813 -0
- package/dist/chunks/chunk-T5EYOUW5.js +126 -0
- package/dist/chunks/chunk-T6T7BR5H.js +86 -0
- package/dist/chunks/chunk-T7HIEXQU.js +192 -0
- package/dist/chunks/chunk-T7HXNLLO.js +110 -0
- package/dist/chunks/chunk-TDSIJP4X.js +76 -0
- package/dist/chunks/chunk-TEWEZCXP.js +234 -0
- package/dist/chunks/chunk-TFDDYXXR.js +179 -0
- package/dist/chunks/chunk-TFURQOKN.js +36 -0
- package/dist/chunks/chunk-TGCLG522.js +358 -0
- package/dist/chunks/chunk-TGRUAEMN.js +71 -0
- package/dist/chunks/chunk-THMSIPJE.js +100 -0
- package/dist/chunks/chunk-THON6ABE.js +109 -0
- package/dist/chunks/chunk-TJBB2465.js +98 -0
- package/dist/chunks/chunk-TJBUKKAQ.js +198 -0
- package/dist/chunks/chunk-TJIXMSHS.js +344 -0
- package/dist/chunks/chunk-TKDE477C.js +33 -0
- package/dist/chunks/chunk-TPFFY23U.js +226 -0
- package/dist/chunks/chunk-TPOATIHU.js +62 -0
- package/dist/chunks/chunk-TQI3A27Y.js +36 -0
- package/dist/chunks/chunk-TR5F4YFK.js +112 -0
- package/dist/chunks/chunk-TRCXXBYA.js +36 -0
- package/dist/chunks/chunk-TRXBGG2O.js +79 -0
- package/dist/chunks/chunk-TU4FXWYL.js +114 -0
- package/dist/chunks/chunk-TUZCYNI5.js +251 -0
- package/dist/chunks/chunk-U2E5CWVR.js +109 -0
- package/dist/chunks/chunk-U2XHFLH5.js +147 -0
- package/dist/chunks/chunk-U34HW2KC.js +124 -0
- package/dist/chunks/chunk-U5L6VZ4I.js +97 -0
- package/dist/chunks/chunk-UAFB7ECL.js +52 -0
- package/dist/chunks/chunk-UB6FXMUR.js +95 -0
- package/dist/chunks/chunk-UDCXMCH6.js +399 -0
- package/dist/chunks/chunk-UDGYSKPP.js +108 -0
- package/dist/chunks/chunk-UDPFQMCY.js +172 -0
- package/dist/chunks/chunk-UEBIOT56.js +157 -0
- package/dist/chunks/chunk-UEDU652O.js +135 -0
- package/dist/chunks/chunk-UEGZZA5M.js +91 -0
- package/dist/chunks/chunk-UFIAFT4T.js +209 -0
- package/dist/chunks/chunk-UHOF4QSF.js +78 -0
- package/dist/chunks/chunk-UHZKFDEG.js +220 -0
- package/dist/chunks/chunk-UJHNBGIO.js +104 -0
- package/dist/chunks/chunk-UJMGZRP6.js +684 -0
- package/dist/chunks/chunk-UMBZTJ7W.js +260 -0
- package/dist/chunks/chunk-UMFRJT35.js +170 -0
- package/dist/chunks/chunk-UMRGUFSF.js +115 -0
- package/dist/chunks/chunk-UNMYF5W3.js +105 -0
- package/dist/chunks/chunk-URD2KX5V.js +133 -0
- package/dist/chunks/chunk-USJBGXTU.js +164 -0
- package/dist/chunks/chunk-USZ66YQA.js +103 -0
- package/dist/chunks/chunk-UT5JJUVQ.js +194 -0
- package/dist/chunks/chunk-UTHLZDPV.js +36 -0
- package/dist/chunks/chunk-UTSV5SGR.js +145 -0
- package/dist/chunks/chunk-UUHOM7FJ.js +213 -0
- package/dist/chunks/chunk-UVAGXV3O.js +136 -0
- package/dist/chunks/chunk-UWE33IML.js +117 -0
- package/dist/chunks/chunk-V2B2EZAX.js +55 -0
- package/dist/chunks/chunk-V2JBXMTY.js +50 -0
- package/dist/chunks/chunk-V3HREQDD.js +151 -0
- package/dist/chunks/chunk-V4QMEREP.js +324 -0
- package/dist/chunks/chunk-V4R4VLSA.js +104 -0
- package/dist/chunks/chunk-VA3JRTZH.js +145 -0
- package/dist/chunks/chunk-VA4G54QR.js +161 -0
- package/dist/chunks/chunk-VAXEY544.js +196 -0
- package/dist/chunks/chunk-VDB7WBZH.js +57 -0
- package/dist/chunks/chunk-VFZH6OY7.js +224 -0
- package/dist/chunks/chunk-VG2C74EU.js +112 -0
- package/dist/chunks/chunk-VGTBYJOB.js +113 -0
- package/dist/chunks/chunk-VH3WJQ7E.js +311 -0
- package/dist/chunks/chunk-VH7L7QPL.js +23 -0
- package/dist/chunks/chunk-VIOIYGLW.js +77 -0
- package/dist/chunks/chunk-VK7W6S3G.js +197 -0
- package/dist/chunks/chunk-VMW3P7IQ.js +100 -0
- package/dist/chunks/chunk-VNG7PDAU.js +209 -0
- package/dist/chunks/chunk-VNKVB7XC.js +119 -0
- package/dist/chunks/chunk-VPM3Z3F5.js +848 -0
- package/dist/chunks/chunk-VPXBJL5D.js +197 -0
- package/dist/chunks/chunk-VQZUKN5I.js +72 -0
- package/dist/chunks/chunk-VT4G2LR3.js +512 -0
- package/dist/chunks/chunk-VTG5WZTR.js +196 -0
- package/dist/chunks/chunk-VTZWDEYX.js +106 -0
- package/dist/chunks/chunk-VU2FJSY7.js +149 -0
- package/dist/chunks/chunk-VU2Y4FWA.js +63 -0
- package/dist/chunks/chunk-VU6QLVLA.js +1307 -0
- package/dist/chunks/chunk-VUQTM6NQ.js +36 -0
- package/dist/chunks/chunk-VVMFTLLI.js +266 -0
- package/dist/chunks/chunk-VWRUXXLB.js +123 -0
- package/dist/chunks/chunk-VWTIZYAP.js +96 -0
- package/dist/chunks/chunk-W2KFYWZG.js +23 -0
- package/dist/chunks/chunk-W4NNVV5O.js +99 -0
- package/dist/chunks/chunk-W5BXYVS5.js +30 -0
- package/dist/chunks/chunk-W6F3N75S.js +122 -0
- package/dist/chunks/chunk-W6XUUX34.js +174 -0
- package/dist/chunks/chunk-WAX7DR6Z.js +163 -0
- package/dist/chunks/chunk-WB6ELFJF.js +39 -0
- package/dist/chunks/chunk-WBP4GZOC.js +141 -0
- package/dist/chunks/chunk-WBUWSKY5.js +48 -0
- package/dist/chunks/chunk-WCHFSAUJ.js +84 -0
- package/dist/chunks/chunk-WDGYIQMP.js +60 -0
- package/dist/chunks/chunk-WEG6KKNW.js +123 -0
- package/dist/chunks/chunk-WEMU7K3A.js +84 -0
- package/dist/chunks/chunk-WHC6IXSA.js +165 -0
- package/dist/chunks/chunk-WHMLU2GF.js +382 -0
- package/dist/chunks/chunk-WHZPKE5Z.js +77 -0
- package/dist/chunks/chunk-WJTAZDXO.js +23 -0
- package/dist/chunks/chunk-WKGJV6C6.js +23 -0
- package/dist/chunks/chunk-WL5WIHJ5.js +183 -0
- package/dist/chunks/chunk-WLTMSKQ7.js +85 -0
- package/dist/chunks/chunk-WMDFQIDT.js +338 -0
- package/dist/chunks/chunk-WPIUKML2.js +111 -0
- package/dist/chunks/chunk-WQ3CQLHS.js +152 -0
- package/dist/chunks/chunk-WQJDPTO2.js +69 -0
- package/dist/chunks/chunk-WRMY2DBM.js +304 -0
- package/dist/chunks/chunk-WSMRKH2W.js +299 -0
- package/dist/chunks/chunk-WTLULNGI.js +140 -0
- package/dist/chunks/chunk-WWVQZ2AJ.js +1574 -0
- package/dist/chunks/chunk-WXO5IHVY.js +193 -0
- package/dist/chunks/chunk-WYX324N7.js +112 -0
- package/dist/chunks/chunk-WZPTTAWY.js +79 -0
- package/dist/chunks/chunk-WZTZZKEZ.js +149 -0
- package/dist/chunks/chunk-X6YOSBZ5.js +139 -0
- package/dist/chunks/chunk-X7XRHC24.js +23 -0
- package/dist/chunks/chunk-XBU35NXR.js +103 -0
- package/dist/chunks/chunk-XBW63WMN.js +189 -0
- package/dist/chunks/chunk-XCJSNC7Y.js +93 -0
- package/dist/chunks/chunk-XEBTT7C3.js +170 -0
- package/dist/chunks/chunk-XFQ2ROXL.js +83 -0
- package/dist/chunks/chunk-XFZVGVD7.js +86 -0
- package/dist/chunks/chunk-XG4NLNDI.js +78 -0
- package/dist/chunks/chunk-XGDLERD6.js +80 -0
- package/dist/chunks/chunk-XH2LIJHE.js +182 -0
- package/dist/chunks/chunk-XHO7AUTU.js +118 -0
- package/dist/chunks/chunk-XI75ZE63.js +82 -0
- package/dist/chunks/chunk-XJ2ZBDGL.js +102 -0
- package/dist/chunks/chunk-XJ62OCLL.js +88 -0
- package/dist/chunks/chunk-XJC7MBAZ.js +391 -0
- package/dist/chunks/chunk-XKDE7RWF.js +181 -0
- package/dist/chunks/chunk-XKWNWA2X.js +330 -0
- package/dist/chunks/chunk-XLBXUDAX.js +145 -0
- package/dist/chunks/chunk-XMXPUYCT.js +97 -0
- package/dist/chunks/chunk-XNG7RNUS.js +107 -0
- package/dist/chunks/chunk-XOQZRSWZ.js +41 -0
- package/dist/chunks/chunk-XPI7EIXP.js +109 -0
- package/dist/chunks/chunk-XRA4WJPB.js +122 -0
- package/dist/chunks/chunk-XRJZ5N6V.js +73 -0
- package/dist/chunks/chunk-XRMKZ736.js +138 -0
- package/dist/chunks/chunk-XSF3ZCDK.js +198 -0
- package/dist/chunks/chunk-XSJN3Q27.js +242 -0
- package/dist/chunks/chunk-XTU5IYCQ.js +33 -0
- package/dist/chunks/chunk-XWCOQH6C.js +101 -0
- package/dist/chunks/chunk-Y35W43D6.js +33 -0
- package/dist/chunks/chunk-Y6CNJEHQ.js +75 -0
- package/dist/chunks/chunk-Y6JKDUMD.js +23 -0
- package/dist/chunks/chunk-Y6MASFMO.js +106 -0
- package/dist/chunks/chunk-Y7WR6DX6.js +84 -0
- package/dist/chunks/chunk-YAQ5CEGU.js +326 -0
- package/dist/chunks/chunk-YAYLX46E.js +210 -0
- package/dist/chunks/chunk-YEKYDL7I.js +170 -0
- package/dist/chunks/chunk-YF7DEARA.js +265 -0
- package/dist/chunks/chunk-YFRIDDST.js +215 -0
- package/dist/chunks/chunk-YH6WAICE.js +23 -0
- package/dist/chunks/chunk-YIF3XPIY.js +23 -0
- package/dist/chunks/chunk-YJR3OXSM.js +80 -0
- package/dist/chunks/chunk-YJZH6FLI.js +97 -0
- package/dist/chunks/chunk-YKCEJMW7.js +961 -0
- package/dist/chunks/chunk-YLR3P4QG.js +204 -0
- package/dist/chunks/chunk-YO4C4RH6.js +172 -0
- package/dist/chunks/chunk-YO4DREYC.js +23 -0
- package/dist/chunks/chunk-YOEG2FRM.js +122 -0
- package/dist/chunks/chunk-YP7TMAFR.js +141 -0
- package/dist/chunks/chunk-YPEUYSTS.js +166 -0
- package/dist/chunks/chunk-YQ7QCFC7.js +94 -0
- package/dist/chunks/chunk-YQIONW6M.js +23 -0
- package/dist/chunks/chunk-YTGESAHQ.js +108 -0
- package/dist/chunks/chunk-YUFSTD2O.js +209 -0
- package/dist/chunks/chunk-YUOP2C4O.js +98 -0
- package/dist/chunks/chunk-YWNTECRB.js +30 -0
- package/dist/chunks/chunk-YWSZKMG7.js +97 -0
- package/dist/chunks/chunk-YXYCRF6Y.js +180 -0
- package/dist/chunks/chunk-YZUQPY6J.js +95 -0
- package/dist/chunks/chunk-Z3MGB55W.js +87 -0
- package/dist/chunks/chunk-Z3ZGWNDW.js +105 -0
- package/dist/chunks/chunk-Z5RTHTOQ.js +33 -0
- package/dist/chunks/chunk-ZA2PVV5T.js +142 -0
- package/dist/chunks/chunk-ZABKVMQD.js +226 -0
- package/dist/chunks/chunk-ZAQWKZDY.js +95 -0
- package/dist/chunks/chunk-ZBBKMGEX.js +130 -0
- package/dist/chunks/chunk-ZBLNKI3K.js +155 -0
- package/dist/chunks/chunk-ZBPDWI4I.js +23 -0
- package/dist/chunks/chunk-ZC2XZTJE.js +162 -0
- package/dist/chunks/chunk-ZCHSEL4O.js +889 -0
- package/dist/chunks/chunk-ZCKUJDTW.js +172 -0
- package/dist/chunks/chunk-ZGXLFVTE.js +198 -0
- package/dist/chunks/chunk-ZHN5E2CT.js +297 -0
- package/dist/chunks/chunk-ZLMS3353.js +181 -0
- package/dist/chunks/chunk-ZNQ6KXXN.js +44 -0
- package/dist/chunks/chunk-ZO22CMZA.js +70 -0
- package/dist/chunks/chunk-ZPAZHPYR.js +130 -0
- package/dist/chunks/chunk-ZRKB5KS4.js +728 -0
- package/dist/chunks/chunk-ZRWZ3WCB.js +102 -0
- package/dist/chunks/chunk-ZSOZ4CCH.js +277 -0
- package/dist/chunks/chunk-ZT5GYT7R.js +93 -0
- package/dist/chunks/chunk-ZWTFS3UU.js +224 -0
- package/dist/chunks/chunk-ZX5HUXUW.js +274 -0
- package/dist/chunks/chunk-ZYOHYK2O.js +204 -0
- package/dist/chunks/chunk-ZYS3VQNF.js +23 -0
- package/dist/chunks/chunk-ZYXVJLUJ.js +305 -0
- package/dist/chunks/client-5MPHAP7J.js +168 -0
- package/dist/chunks/client-TSA4TGQ5.js +47 -0
- package/dist/chunks/client-WCFTZTY2.js +31 -0
- package/dist/chunks/client-actions-CCKVMLJZ.js +170 -0
- package/dist/chunks/components-5P7CUB67.js +78 -0
- package/dist/chunks/dangerous-U5GLX7R3.js +124 -0
- package/dist/chunks/delete-current-file-JKWGH4IU.js +163 -0
- package/dist/chunks/editor-seams-RDIHV43B.js +183 -0
- package/dist/chunks/editor-store-KWONP5ZB.js +148 -0
- package/dist/chunks/export-CPB3VOWI.js +67 -0
- package/dist/chunks/export-watermark-T6CSJ4DR.js +157 -0
- package/dist/chunks/eyedropper-EO4IV2KR.js +355 -0
- package/dist/chunks/generate-media-T7QM2TDD.js +255 -0
- package/dist/chunks/host-BYFDVBSS.js +184 -0
- package/dist/chunks/host-TW6A434C.js +246 -0
- package/dist/chunks/integrations-7BI2Q4JX.js +125 -0
- package/dist/chunks/libraries-IPT76YJS.js +311 -0
- package/dist/chunks/live-GIVKQPCU.js +322 -0
- package/dist/chunks/lottie-DZ2DAK74.js +91 -0
- package/dist/chunks/media-tool-2XRWNH6L.js +237 -0
- package/dist/chunks/new-file-N2L36DKP.js +140 -0
- package/dist/chunks/next-commerce-RMHADXAE.js +74 -0
- package/dist/chunks/pdf-KRFLICBG.js +1218 -0
- package/dist/chunks/player-check-BZACCNI5.js +119 -0
- package/dist/chunks/plugin-W2SRE3A4.js +131 -0
- package/dist/chunks/plugin-import-BWXNXHYC.js +692 -0
- package/dist/chunks/presence-RSPTSAU6.js +137 -0
- package/dist/chunks/project-524HCDOW.js +1601 -0
- package/dist/chunks/publish-site-PKLAWL25.js +167 -0
- package/dist/chunks/publish-store-YOIXMVO2.js +100 -0
- package/dist/chunks/raster-actions-TQNM7AVM.js +233 -0
- package/dist/chunks/reference-images-LMW5RE5H.js +62 -0
- package/dist/chunks/registry-D4UHV32V.js +49 -0
- package/dist/chunks/resolvers-S2CHKOZA.js +150 -0
- package/dist/chunks/runner-Z7CRYDBM.js +3546 -0
- package/dist/chunks/store-3QXOA3HT.js +235 -0
- package/dist/chunks/storefront-TTANJUZ5.js +336 -0
- package/dist/chunks/storefront-prepare-VE2VOSS4.js +33 -0
- package/dist/chunks/svg-export-GYW5LSD3.js +84 -0
- package/dist/chunks/sync-C6IK4KY6.js +162 -0
- package/dist/chunks/tabs-WEUBSQYH.js +320 -0
- package/dist/chunks/team-6BOZI223.js +47 -0
- package/dist/chunks/team-client-KG5XDJA3.js +158 -0
- package/dist/chunks/tools-TU2H4X22.js +37 -0
- package/dist/chunks/tree-KJ5BCFC3.js +83 -0
- package/dist/chunks/ui-commands-B7VEBEFW.js +191 -0
- package/dist/chunks/versions-2HU2MF3F.js +320 -0
- package/dist/chunks/web-36EK3KIL.js +186 -0
- package/dist/index.js +7 -7
- package/dist/lib/templates/capabilities.js +4 -4
- package/dist/lib/templates/finish.js +5 -5
- package/dist/migrations/index.js +7 -7
- package/dist/migrations/timeline-facets.js +7 -7
- package/dist/templates/anime/character.js +8 -8
- package/dist/templates/anime/duel.js +10 -10
- package/dist/templates/anime/morning.js +10 -10
- package/dist/templates/anime/rain.js +10 -10
- package/dist/templates/anime/shared.js +9 -9
- package/dist/templates/anime/starlight.js +10 -10
- package/dist/templates/anime/titan.js +10 -10
- package/dist/templates/app/festival-presale-electronic-ticket.js +9 -9
- package/dist/templates/app/festival-presale-family-ticket.js +9 -9
- package/dist/templates/app/festival-presale-folk-ticket.js +9 -9
- package/dist/templates/app/festival-presale-food-ticket.js +9 -9
- package/dist/templates/app/festival-presale-jazz-ticket.js +9 -9
- package/dist/templates/app/festival-presale-street-ticket.js +9 -9
- package/dist/templates/app/music-grove.js +7 -7
- package/dist/templates/app/music-nightline.js +7 -7
- package/dist/templates/app/music-orbit.js +7 -7
- package/dist/templates/app/music-undertow.js +7 -7
- package/dist/templates/app/onboarding-carousel.js +7 -7
- package/dist/templates/app/saas-store-paywall.js +7 -7
- package/dist/templates/app/splash.js +7 -7
- package/dist/templates/app/success-confetti.js +7 -7
- package/dist/templates/app/tour-tickets-june-ticket.js +7 -7
- package/dist/templates/app/tour-tickets-tide-ticket.js +7 -7
- package/dist/templates/app/tour-tickets-wreck-ticket.js +7 -7
- package/dist/templates/build.js +6 -6
- package/dist/templates/cards/index.js +9 -9
- package/dist/templates/cards/shared.js +7 -7
- package/dist/templates/cards/themes.js +8 -8
- package/dist/templates/count.js +4 -4
- package/dist/templates/data/bars.js +7 -7
- package/dist/templates/data/countdown-story.js +7 -7
- package/dist/templates/data/counters.js +7 -7
- package/dist/templates/data/donut.js +7 -7
- package/dist/templates/data/line.js +7 -7
- package/dist/templates/data/year-in-review.js +7 -7
- package/dist/templates/effects/glass-intro.js +7 -7
- package/dist/templates/effects/glass-promo.js +7 -7
- package/dist/templates/effects/grain-story.js +7 -7
- package/dist/templates/effects/grid-intro.js +7 -7
- package/dist/templates/effects/halftone-story.js +7 -7
- package/dist/templates/effects/mesh-story.js +7 -7
- package/dist/templates/effects/shader-title.js +7 -7
- package/dist/templates/email/april-fools-header.js +7 -7
- package/dist/templates/email/art-deco-invitation.js +7 -7
- package/dist/templates/email/autumn-harvest-header.js +7 -7
- package/dist/templates/email/back-to-school-header.js +7 -7
- package/dist/templates/email/black-friday-coupons-header.js +7 -7
- package/dist/templates/email/black-friday-header.js +7 -7
- package/dist/templates/email/black-friday-neon-header.js +7 -7
- package/dist/templates/email/black-friday-scratch-header.js +7 -7
- package/dist/templates/email/black-friday-ticker-header.js +7 -7
- package/dist/templates/email/broadsheet-weekly-edition-header.js +7 -7
- package/dist/templates/email/claymation-header.js +7 -7
- package/dist/templates/email/countdown-gif.js +7 -7
- package/dist/templates/email/cyberpunk-header.js +7 -7
- package/dist/templates/email/diwali-header.js +7 -7
- package/dist/templates/email/earth-day-header.js +7 -7
- package/dist/templates/email/festival-presale-electronic-header.js +9 -9
- package/dist/templates/email/festival-presale-family-header.js +9 -9
- package/dist/templates/email/festival-presale-folk-header.js +9 -9
- package/dist/templates/email/festival-presale-food-header.js +9 -9
- package/dist/templates/email/festival-presale-jazz-header.js +9 -9
- package/dist/templates/email/festival-presale-street-header.js +9 -9
- package/dist/templates/email/gothic-header.js +7 -7
- package/dist/templates/email/halloween-header.js +7 -7
- package/dist/templates/email/header-launch.js +7 -7
- package/dist/templates/email/header-newsletter.js +7 -7
- package/dist/templates/email/header-sale.js +7 -7
- package/dist/templates/email/lunar-new-year-header.js +7 -7
- package/dist/templates/email/manuscript-chronicle-header.js +7 -7
- package/dist/templates/email/new-year-header.js +7 -7
- package/dist/templates/email/noir-header.js +7 -7
- package/dist/templates/email/psychedelic-header.js +7 -7
- package/dist/templates/email/riso-zine-changelog-header.js +7 -7
- package/dist/templates/email/saas-mail-changelog.js +9 -9
- package/dist/templates/email/saas-mail-day-one.js +9 -9
- package/dist/templates/email/saas-mail-day-three.js +9 -9
- package/dist/templates/email/saas-mail-launch.js +9 -9
- package/dist/templates/email/saas-mail-payment-failed.js +9 -9
- package/dist/templates/email/saas-mail-sign-in-code.js +9 -9
- package/dist/templates/email/saas-mail-trial-ending.js +9 -9
- package/dist/templates/email/saas-mail-waitlist.js +9 -9
- package/dist/templates/email/singles-day-header.js +7 -7
- package/dist/templates/email/solarpunk-header.js +7 -7
- package/dist/templates/email/space-opera-header.js +7 -7
- package/dist/templates/email/spring-bloom-header.js +7 -7
- package/dist/templates/email/style-bento-header.js +7 -7
- package/dist/templates/email/style-brutalist-header.js +7 -7
- package/dist/templates/email/style-dark-header.js +7 -7
- package/dist/templates/email/style-data-header.js +7 -7
- package/dist/templates/email/style-editorial-header.js +7 -7
- package/dist/templates/email/style-glass-header.js +7 -7
- package/dist/templates/email/style-gradient-header.js +7 -7
- package/dist/templates/email/style-maximal-header.js +7 -7
- package/dist/templates/email/style-pastel-header.js +7 -7
- package/dist/templates/email/style-sketch-header.js +7 -7
- package/dist/templates/email/style-swiss-header.js +7 -7
- package/dist/templates/email/style-terminal-header.js +7 -7
- package/dist/templates/email/summer-heatwave-header.js +7 -7
- package/dist/templates/email/tour-tickets-june-header.js +7 -7
- package/dist/templates/email/tour-tickets-tide-header.js +7 -7
- package/dist/templates/email/tour-tickets-wreck-header.js +7 -7
- package/dist/templates/email/transit-map-service-update.js +7 -7
- package/dist/templates/email/ukiyo-e-greeting-header.js +7 -7
- package/dist/templates/email/valentines-header.js +7 -7
- package/dist/templates/email/winter-cosy-header.js +7 -7
- package/dist/templates/email/winter-holidays-header.js +7 -7
- package/dist/templates/game/blossom-bash-puzzle.js +7 -7
- package/dist/templates/game/deckbound-roguelike.js +7 -7
- package/dist/templates/game/emberfall-rpg.js +7 -7
- package/dist/templates/game/hearthmoor-farm.js +7 -7
- package/dist/templates/game/index.js +20 -20
- package/dist/templates/game/iron-lotus-fighter.js +7 -7
- package/dist/templates/game/ironroot-rts.js +7 -7
- package/dist/templates/game/mossy-hollow-platformer.js +9 -9
- package/dist/templates/game/neon-apex-racing.js +7 -7
- package/dist/templates/game/platformer.js +8 -8
- package/dist/templates/game/pulse-riot-rhythm.js +7 -7
- package/dist/templates/game/sprout-quest-pixel-platformer.js +9 -9
- package/dist/templates/game/vanta-fps.js +7 -7
- package/dist/templates/index.js +825 -825
- package/dist/templates/kinetic/letters.js +7 -7
- package/dist/templates/kinetic/lines.js +7 -7
- package/dist/templates/kinetic/typewriter.js +7 -7
- package/dist/templates/kinetic/word-swap.js +7 -7
- package/dist/templates/kinetic/words.js +7 -7
- package/dist/templates/libraries/audio-reactive.js +7 -7
- package/dist/templates/libraries/loaders.js +7 -7
- package/dist/templates/libraries/micro-interactions.js +7 -7
- package/dist/templates/libraries/motion-essentials.js +7 -7
- package/dist/templates/libraries/toasts.js +7 -7
- package/dist/templates/lottie/ai.js +8 -8
- package/dist/templates/lottie/climate.js +8 -8
- package/dist/templates/lottie/commerce.js +8 -8
- package/dist/templates/lottie/education.js +8 -8
- package/dist/templates/lottie/fintech.js +8 -8
- package/dist/templates/lottie/food.js +8 -8
- package/dist/templates/lottie/health.js +8 -8
- package/dist/templates/lottie/index.js +32 -32
- package/dist/templates/lottie/lottie-kit.js +7 -7
- package/dist/templates/lottie/realestate.js +8 -8
- package/dist/templates/lottie/saas-ui-checklist.js +9 -9
- package/dist/templates/lottie/saas-ui-dashboard-hero.js +9 -9
- package/dist/templates/lottie/saas-ui-empty-data.js +9 -9
- package/dist/templates/lottie/saas-ui-empty-search.js +9 -9
- package/dist/templates/lottie/saas-ui-error-retry.js +9 -9
- package/dist/templates/lottie/saas-ui-file-upload.js +9 -9
- package/dist/templates/lottie/saas-ui-streaming-answer.js +9 -9
- package/dist/templates/lottie/saas-ui-sync-connected.js +9 -9
- package/dist/templates/lottie/saas-ui-trial-timeline.js +9 -9
- package/dist/templates/lottie/saas-ui-upgrade-unlocked.js +9 -9
- package/dist/templates/lottie/saas-ui.js +19 -19
- package/dist/templates/lottie/saas.js +8 -8
- package/dist/templates/lottie/security.js +8 -8
- package/dist/templates/lottie/techniques.js +8 -8
- package/dist/templates/lottie/travel.js +8 -8
- package/dist/templates/motion/ai-trailer/index.js +7 -7
- package/dist/templates/motion/ambient-loop.js +7 -7
- package/dist/templates/motion/app-icon-sting.js +7 -7
- package/dist/templates/motion/april-fools-infomercial-reel.js +7 -7
- package/dist/templates/motion/arcade-high-score.js +7 -7
- package/dist/templates/motion/art-deco-grand-opening.js +7 -7
- package/dist/templates/motion/autumn-harvest-year-reel.js +7 -7
- package/dist/templates/motion/back-to-school-timetable-reel.js +7 -7
- package/dist/templates/motion/bauhaus-launch-reel.js +7 -7
- package/dist/templates/motion/black-friday-coupons-deal-reel.js +7 -7
- package/dist/templates/motion/black-friday-coupons-last-day.js +7 -7
- package/dist/templates/motion/black-friday-deal-drop.js +7 -7
- package/dist/templates/motion/black-friday-neon-deal-reel.js +7 -7
- package/dist/templates/motion/black-friday-neon-last-day.js +7 -7
- package/dist/templates/motion/black-friday-scratch-countdown.js +7 -7
- package/dist/templates/motion/black-friday-scratch-deal-reel.js +7 -7
- package/dist/templates/motion/black-friday-scratch-last-day.js +7 -7
- package/dist/templates/motion/black-friday-ticker-deal-drop.js +7 -7
- package/dist/templates/motion/black-friday-ticker-last-call.js +7 -7
- package/dist/templates/motion/blueprint-rev-b-reel.js +7 -7
- package/dist/templates/motion/broadsheet-launch-reel.js +7 -7
- package/dist/templates/motion/broadsheet-milestone-post.js +7 -7
- package/dist/templates/motion/claymation-launch-reel.js +7 -7
- package/dist/templates/motion/comic-book-issue-reel.js +7 -7
- package/dist/templates/motion/countdown.js +7 -7
- package/dist/templates/motion/cyberpunk-lock-on-reel.js +7 -7
- package/dist/templates/motion/departure-board-reel.js +7 -7
- package/dist/templates/motion/diwali-lamps-reel.js +7 -7
- package/dist/templates/motion/earth-day-footprint-reel.js +7 -7
- package/dist/templates/motion/earth-day-pledge-post.js +7 -7
- package/dist/templates/motion/festival-presale-electronic-countdown.js +9 -9
- package/dist/templates/motion/festival-presale-electronic-lineup.js +9 -9
- package/dist/templates/motion/festival-presale-electronic-reel.js +9 -9
- package/dist/templates/motion/festival-presale-electronic-tier.js +9 -9
- package/dist/templates/motion/festival-presale-family-countdown.js +9 -9
- package/dist/templates/motion/festival-presale-family-lineup.js +9 -9
- package/dist/templates/motion/festival-presale-family-reel.js +9 -9
- package/dist/templates/motion/festival-presale-family-tier.js +9 -9
- package/dist/templates/motion/festival-presale-folk-countdown.js +9 -9
- package/dist/templates/motion/festival-presale-folk-lineup.js +9 -9
- package/dist/templates/motion/festival-presale-folk-reel.js +9 -9
- package/dist/templates/motion/festival-presale-folk-tier.js +9 -9
- package/dist/templates/motion/festival-presale-food-countdown.js +9 -9
- package/dist/templates/motion/festival-presale-food-lineup.js +9 -9
- package/dist/templates/motion/festival-presale-food-reel.js +9 -9
- package/dist/templates/motion/festival-presale-food-tier.js +9 -9
- package/dist/templates/motion/festival-presale-jazz-countdown.js +9 -9
- package/dist/templates/motion/festival-presale-jazz-lineup.js +9 -9
- package/dist/templates/motion/festival-presale-jazz-reel.js +9 -9
- package/dist/templates/motion/festival-presale-jazz-tier.js +9 -9
- package/dist/templates/motion/festival-presale-street-countdown.js +9 -9
- package/dist/templates/motion/festival-presale-street-lineup.js +9 -9
- package/dist/templates/motion/festival-presale-street-reel.js +9 -9
- package/dist/templates/motion/festival-presale-street-tier.js +9 -9
- package/dist/templates/motion/gothic-launch-reel.js +7 -7
- package/dist/templates/motion/halloween-graveyard-reel.js +7 -7
- package/dist/templates/motion/instagram-promo.js +7 -7
- package/dist/templates/motion/kinetic-headline.js +7 -7
- package/dist/templates/motion/landing-hero/index.js +9 -9
- package/dist/templates/motion/launch-trailer/document.js +825 -825
- package/dist/templates/motion/launch-trailer/index.js +9 -9
- package/dist/templates/motion/launch-trailer/scenes.js +8 -8
- package/dist/templates/motion/logo-reveal.js +7 -7
- package/dist/templates/motion/lower-third.js +7 -7
- package/dist/templates/motion/lunar-new-year-envelope-reel.js +7 -7
- package/dist/templates/motion/machined-trailer.js +7 -7
- package/dist/templates/motion/manuscript-launch-reel.js +7 -7
- package/dist/templates/motion/new-year-ball-drop-reel.js +7 -7
- package/dist/templates/motion/noir-case-reel.js +7 -7
- package/dist/templates/motion/pitch-title.js +7 -7
- package/dist/templates/motion/psychedelic-gig-reel.js +7 -7
- package/dist/templates/motion/riso-zine-launch-reel.js +7 -7
- package/dist/templates/motion/saas-ai-prompt.js +7 -7
- package/dist/templates/motion/saas-before-after.js +7 -7
- package/dist/templates/motion/saas-changelog-drop.js +7 -7
- package/dist/templates/motion/saas-film-webinar-opener.js +7 -7
- package/dist/templates/motion/saas-hook-features.js +7 -7
- package/dist/templates/motion/saas-mrr-milestone.js +7 -7
- package/dist/templates/motion/saas-screen-demo.js +7 -7
- package/dist/templates/motion/saas-store-install-ad.js +7 -7
- package/dist/templates/motion/saas-testimonial.js +7 -7
- package/dist/templates/motion/saas-vs-comparison.js +7 -7
- package/dist/templates/motion/singles-day-flash-post.js +7 -7
- package/dist/templates/motion/singles-day-live-reel.js +7 -7
- package/dist/templates/motion/smooth-loop.js +7 -7
- package/dist/templates/motion/solarpunk-rooftop-reel.js +7 -7
- package/dist/templates/motion/space-opera-countdown-reel.js +7 -7
- package/dist/templates/motion/spring-bloom-first-hundred-post.js +7 -7
- package/dist/templates/motion/spring-bloom-first-shoots-reel.js +7 -7
- package/dist/templates/motion/stat-pop.js +7 -7
- package/dist/templates/motion/style-bento-feature-demo.js +7 -7
- package/dist/templates/motion/style-bento-launch-reel.js +7 -7
- package/dist/templates/motion/style-brutalist-feature-demo.js +7 -7
- package/dist/templates/motion/style-brutalist-launch-reel.js +7 -7
- package/dist/templates/motion/style-dark-feature-demo.js +7 -7
- package/dist/templates/motion/style-dark-launch-reel.js +7 -7
- package/dist/templates/motion/style-data-feature-demo.js +7 -7
- package/dist/templates/motion/style-data-launch-reel.js +7 -7
- package/dist/templates/motion/style-editorial-feature-demo.js +7 -7
- package/dist/templates/motion/style-editorial-launch-reel.js +7 -7
- package/dist/templates/motion/style-glass-feature-demo.js +7 -7
- package/dist/templates/motion/style-glass-launch-reel.js +7 -7
- package/dist/templates/motion/style-gradient-feature-demo.js +7 -7
- package/dist/templates/motion/style-gradient-launch-reel.js +7 -7
- package/dist/templates/motion/style-maximal-beat-cut.js +7 -7
- package/dist/templates/motion/style-maximal-feature-demo.js +7 -7
- package/dist/templates/motion/style-maximal-launch-reel.js +7 -7
- package/dist/templates/motion/style-pastel-feature-demo.js +7 -7
- package/dist/templates/motion/style-pastel-launch-reel.js +7 -7
- package/dist/templates/motion/style-sketch-feature-demo.js +7 -7
- package/dist/templates/motion/style-sketch-launch-reel.js +7 -7
- package/dist/templates/motion/style-swiss-feature-demo.js +7 -7
- package/dist/templates/motion/style-swiss-launch-reel.js +7 -7
- package/dist/templates/motion/style-terminal-feature-demo.js +7 -7
- package/dist/templates/motion/style-terminal-launch-reel.js +7 -7
- package/dist/templates/motion/summer-heatwave-lido-reel.js +7 -7
- package/dist/templates/motion/template-wall.js +7 -7
- package/dist/templates/motion/title-card-3d.js +7 -7
- package/dist/templates/motion/tour-tickets-june-city.js +7 -7
- package/dist/templates/motion/tour-tickets-june-dates.js +7 -7
- package/dist/templates/motion/tour-tickets-june-final.js +7 -7
- package/dist/templates/motion/tour-tickets-june-reel.js +7 -7
- package/dist/templates/motion/tour-tickets-tide-city.js +7 -7
- package/dist/templates/motion/tour-tickets-tide-dates.js +7 -7
- package/dist/templates/motion/tour-tickets-tide-final.js +7 -7
- package/dist/templates/motion/tour-tickets-tide-reel.js +7 -7
- package/dist/templates/motion/tour-tickets-wreck-city.js +7 -7
- package/dist/templates/motion/tour-tickets-wreck-dates.js +7 -7
- package/dist/templates/motion/tour-tickets-wreck-final.js +7 -7
- package/dist/templates/motion/tour-tickets-wreck-reel.js +7 -7
- package/dist/templates/motion/transit-map-line-opening.js +7 -7
- package/dist/templates/motion/transit-map-milestone-post.js +7 -7
- package/dist/templates/motion/ukiyo-e-launch-reel.js +7 -7
- package/dist/templates/motion/valentines-breakup-reel.js +7 -7
- package/dist/templates/motion/vaporwave-launch-reel.js +7 -7
- package/dist/templates/motion/winter-cosy-heads-down-post.js +7 -7
- package/dist/templates/motion/winter-cosy-hibernation-reel.js +7 -7
- package/dist/templates/motion/winter-holidays-advent-reel.js +7 -7
- package/dist/templates/motion3d/app-store-preview.js +7 -7
- package/dist/templates/motion3d/before-after-swing.js +7 -7
- package/dist/templates/motion3d/burger-reveal.js +7 -7
- package/dist/templates/motion3d/coverflow.js +7 -7
- package/dist/templates/motion3d/exploded-ui.js +7 -7
- package/dist/templates/motion3d/feature-flip.js +7 -7
- package/dist/templates/motion3d/kinetic-reveal.js +7 -7
- package/dist/templates/motion3d/laptop-reveal.js +7 -7
- package/dist/templates/motion3d/logo-extrude.js +7 -7
- package/dist/templates/motion3d/parallax-cascade.js +7 -7
- package/dist/templates/motion3d/phone-orbit.js +7 -7
- package/dist/templates/motion3d/pricing-fan.js +7 -7
- package/dist/templates/motion3d/product-turntable.js +7 -7
- package/dist/templates/motion3d/saas-film-cinematic-trailer.js +7 -7
- package/dist/templates/motion3d/screen-wall.js +7 -7
- package/dist/templates/motion3d/vertical-promo.js +7 -7
- package/dist/templates/music/edm-drop.js +7 -7
- package/dist/templates/music/festival-lineup.js +7 -7
- package/dist/templates/music/hiphop-lyrics.js +7 -7
- package/dist/templates/music/indie-poster.js +7 -7
- package/dist/templates/music/lofi-loop.js +7 -7
- package/dist/templates/music/podcast-audiogram.js +7 -7
- package/dist/templates/music/synthwave-tunnel.js +7 -7
- package/dist/templates/print/comic-hero-cascade.js +7 -7
- package/dist/templates/print/comic-hero-chase.js +7 -7
- package/dist/templates/print/comic-hero-cover-modern.js +7 -7
- package/dist/templates/print/comic-hero-grid-break.js +7 -7
- package/dist/templates/print/comic-hero-interrogation.js +7 -7
- package/dist/templates/print/comic-hero-issue.js +18 -18
- package/dist/templates/print/comic-hero-manga-action.js +7 -7
- package/dist/templates/print/comic-hero-nested.js +7 -7
- package/dist/templates/print/comic-hero-overlap.js +7 -7
- package/dist/templates/print/comic-hero-parallel.js +7 -7
- package/dist/templates/print/comic-hero-pinup.js +7 -7
- package/dist/templates/print/comic-hero-widescreen.js +7 -7
- package/dist/templates/print/comic-modern-action-slant.js +7 -7
- package/dist/templates/print/comic-modern-cover-pulp.js +7 -7
- package/dist/templates/print/comic-modern-flashback.js +7 -7
- package/dist/templates/print/comic-modern-issue.js +16 -16
- package/dist/templates/print/comic-modern-nine-grid.js +7 -7
- package/dist/templates/print/comic-modern-page-classic.js +7 -7
- package/dist/templates/print/comic-modern-polyptych.js +7 -7
- package/dist/templates/print/comic-modern-radial.js +7 -7
- package/dist/templates/print/comic-modern-splash.js +7 -7
- package/dist/templates/print/comic-modern-spread.js +7 -7
- package/dist/templates/print/everyday-save-the-date.js +7 -7
- package/dist/templates/print/everyday-specials-board.js +7 -7
- package/dist/templates/print/holidays-christmas-church-newsletter.js +7 -7
- package/dist/templates/print/holidays-christmas-eve-invitation.js +7 -7
- package/dist/templates/print/holidays-christmas-gift-tags.js +7 -7
- package/dist/templates/print/holidays-diwali-party-invitation.js +7 -7
- package/dist/templates/print/holidays-easter-activity-sheet.js +7 -7
- package/dist/templates/print/holidays-easter-egg-hunt-flyer.js +7 -7
- package/dist/templates/print/holidays-eid-dinner-invitation.js +7 -7
- package/dist/templates/print/holidays-eid-gift-tags.js +7 -7
- package/dist/templates/print/holidays-halloween-party-invitation.js +7 -7
- package/dist/templates/print/holidays-halloween-treat-labels.js +7 -7
- package/dist/templates/print/holidays-halloween-trunk-or-treat-poster.js +7 -7
- package/dist/templates/print/holidays-hanukkah-activity-sheet.js +7 -7
- package/dist/templates/print/holidays-hanukkah-party-invitation.js +7 -7
- package/dist/templates/print/holidays-lunar-new-year-banquet-menu.js +7 -7
- package/dist/templates/print/holidays-new-years-eve-poster.js +7 -7
- package/dist/templates/print/holidays-thanksgiving-dinner-menu.js +7 -7
- package/dist/templates/print/holidays-thanksgiving-place-cards.js +7 -7
- package/dist/templates/print/holidays-valentines-dinner-menu.js +7 -7
- package/dist/templates/print/knit-christmas-tree-sweater.js +7 -7
- package/dist/templates/print/knit-nordic-snowflake-sweater.js +7 -7
- package/dist/templates/print/knit-snowflake-beanie.js +7 -7
- package/dist/templates/print/printshop-booklet-open-day.js +7 -7
- package/dist/templates/print/printshop-brochure-community.js +7 -7
- package/dist/templates/print/printshop-brochure-dental.js +7 -7
- package/dist/templates/print/printshop-brochure-gym.js +7 -7
- package/dist/templates/print/printshop-brochure-landscaping.js +7 -7
- package/dist/templates/print/printshop-brochure-travel.js +7 -7
- package/dist/templates/print/printshop-card-architect.js +7 -7
- package/dist/templates/print/printshop-card-barber.js +7 -7
- package/dist/templates/print/printshop-card-cafe.js +7 -7
- package/dist/templates/print/printshop-card-developer.js +7 -7
- package/dist/templates/print/printshop-card-florist.js +7 -7
- package/dist/templates/print/printshop-card-lawyer.js +7 -7
- package/dist/templates/print/printshop-card-photographer.js +7 -7
- package/dist/templates/print/printshop-card-plumber.js +7 -7
- package/dist/templates/print/printshop-card-realtor.js +7 -7
- package/dist/templates/print/printshop-card-yoga.js +7 -7
- package/dist/templates/print/printshop-flyer-charity-run.js +7 -7
- package/dist/templates/print/printshop-flyer-farmers-market.js +7 -7
- package/dist/templates/print/printshop-flyer-garage-sale.js +7 -7
- package/dist/templates/print/printshop-flyer-grand-opening.js +7 -7
- package/dist/templates/print/printshop-flyer-lost-pet.js +7 -7
- package/dist/templates/print/printshop-flyer-tutoring.js +7 -7
- package/dist/templates/print/printshop-flyer-yard-work.js +7 -7
- package/dist/templates/print/printshop-poster-live-music.js +7 -7
- package/dist/templates/print/studio-class-timetable-poster.js +7 -7
- package/dist/templates/print/studio-portfolio-booklet.js +7 -7
- package/dist/templates/saas/email-decks-shared.js +8 -8
- package/dist/templates/saas/email-decks.js +19 -19
- package/dist/templates/saas/index.js +190 -190
- package/dist/templates/saas/launch-kit.js +16 -16
- package/dist/templates/saas/launch-video.js +13 -13
- package/dist/templates/saas/lottie-shared.js +8 -8
- package/dist/templates/saas/stores.js +16 -16
- package/dist/templates/saas/style-bento.js +16 -16
- package/dist/templates/saas/style-brutalist.js +16 -16
- package/dist/templates/saas/style-dark.js +16 -16
- package/dist/templates/saas/style-data.js +16 -16
- package/dist/templates/saas/style-editorial.js +16 -16
- package/dist/templates/saas/style-glass.js +16 -16
- package/dist/templates/saas/style-gradient.js +16 -16
- package/dist/templates/saas/style-maximal.js +17 -17
- package/dist/templates/saas/style-pastel.js +16 -16
- package/dist/templates/saas/style-sketch.js +16 -16
- package/dist/templates/saas/style-swiss.js +16 -16
- package/dist/templates/saas/style-terminal.js +16 -16
- package/dist/templates/saas/video.js +15 -15
- package/dist/templates/saas/web.js +19 -19
- package/dist/templates/scenes/before-after.js +7 -7
- package/dist/templates/scenes/carousel-video.js +7 -7
- package/dist/templates/scenes/saas-film-app-preview.js +7 -7
- package/dist/templates/scenes/saas-film-bright-trailer.js +7 -7
- package/dist/templates/scenes/saas-film-product-hunt-launch.js +7 -7
- package/dist/templates/scenes/saas-film-youtube-demo-kit.js +7 -7
- package/dist/templates/scenes/story-ad.js +7 -7
- package/dist/templates/scenes/story-bakery.js +7 -7
- package/dist/templates/scenes/story-fitness.js +7 -7
- package/dist/templates/scenes/story-hotel.js +7 -7
- package/dist/templates/scenes/transitions-pack.js +7 -7
- package/dist/templates/scenes/web-scroll.js +7 -7
- package/dist/templates/slides/agenda.js +8 -8
- package/dist/templates/slides/deck.js +7 -7
- package/dist/templates/slides/education.js +8 -8
- package/dist/templates/slides/launch.js +8 -8
- package/dist/templates/slides/layouts.js +8 -8
- package/dist/templates/slides/pitch.js +8 -8
- package/dist/templates/slides/report.js +8 -8
- package/dist/templates/slides/saas-mail-investor-update.js +9 -9
- package/dist/templates/slides/saas-mail-seed-pitch.js +9 -9
- package/dist/templates/slides/sales.js +8 -8
- package/dist/templates/slides/section-divider.js +8 -8
- package/dist/templates/slides/title-card.js +8 -8
- package/dist/templates/slides/training.js +8 -8
- package/dist/templates/slides/webinar.js +8 -8
- package/dist/templates/slideshow/adoption.js +8 -8
- package/dist/templates/slideshow/baby.js +8 -8
- package/dist/templates/slideshow/birthday.js +8 -8
- package/dist/templates/slideshow/graduation.js +8 -8
- package/dist/templates/slideshow/holiday.js +8 -8
- package/dist/templates/slideshow/home.js +8 -8
- package/dist/templates/slideshow/index.js +15 -15
- package/dist/templates/slideshow/lease.js +8 -8
- package/dist/templates/slideshow/memorial.js +8 -8
- package/dist/templates/slideshow/portfolio.js +8 -8
- package/dist/templates/slideshow/product.js +8 -8
- package/dist/templates/slideshow/recipe.js +8 -8
- package/dist/templates/slideshow/shared.js +7 -7
- package/dist/templates/slideshow/team.js +8 -8
- package/dist/templates/slideshow/travel.js +8 -8
- package/dist/templates/slideshow/wedding.js +8 -8
- package/dist/templates/slideshow/year.js +8 -8
- package/dist/templates/social/april-fools-link-preview.js +7 -7
- package/dist/templates/social/april-fools-price-slash-post.js +7 -7
- package/dist/templates/social/arcade-boss-fight.js +7 -7
- package/dist/templates/social/arcade-level-up.js +7 -7
- package/dist/templates/social/art-deco-link-preview.js +7 -7
- package/dist/templates/social/art-deco-premiere-post.js +7 -7
- package/dist/templates/social/autumn-harvest-link-preview.js +7 -7
- package/dist/templates/social/autumn-harvest-thanks-post.js +7 -7
- package/dist/templates/social/back-to-school-link-preview.js +7 -7
- package/dist/templates/social/back-to-school-report-card-post.js +7 -7
- package/dist/templates/social/bauhaus-drift-post.js +7 -7
- package/dist/templates/social/bauhaus-link-preview.js +7 -7
- package/dist/templates/social/bauhaus-pricing-post.js +7 -7
- package/dist/templates/social/black-friday-ads.js +7 -7
- package/dist/templates/social/black-friday-countdown.js +7 -7
- package/dist/templates/social/black-friday-coupons-ads.js +7 -7
- package/dist/templates/social/black-friday-coupons-countdown.js +7 -7
- package/dist/templates/social/black-friday-neon-ads.js +7 -7
- package/dist/templates/social/black-friday-neon-countdown.js +7 -7
- package/dist/templates/social/black-friday-scratch-ads.js +7 -7
- package/dist/templates/social/black-friday-ticker-ads.js +7 -7
- package/dist/templates/social/black-friday-ticker-countdown.js +7 -7
- package/dist/templates/social/blueprint-dimension-post.js +7 -7
- package/dist/templates/social/blueprint-link-preview.js +7 -7
- package/dist/templates/social/blueprint-parts-list-post.js +7 -7
- package/dist/templates/social/broadsheet-hiring-classifieds.js +7 -7
- package/dist/templates/social/broadsheet-link-preview.js +7 -7
- package/dist/templates/social/claymation-link-preview.js +7 -7
- package/dist/templates/social/claymation-streak-post.js +7 -7
- package/dist/templates/social/comic-book-cover-preview.js +7 -7
- package/dist/templates/social/comic-book-strip-post.js +7 -7
- package/dist/templates/social/cyberpunk-implant-post.js +7 -7
- package/dist/templates/social/cyberpunk-link-preview.js +7 -7
- package/dist/templates/social/departure-board-pass-ad.js +7 -7
- package/dist/templates/social/departure-board-store-set.js +7 -7
- package/dist/templates/social/departure-board-thanks-post.js +7 -7
- package/dist/templates/social/diwali-link-preview.js +7 -7
- package/dist/templates/social/diwali-thanks-post.js +7 -7
- package/dist/templates/social/earth-day-link-preview.js +7 -7
- package/dist/templates/social/everyday-save-the-date-post.js +7 -7
- package/dist/templates/social/festival-presale-electronic-ads.js +9 -9
- package/dist/templates/social/festival-presale-family-ads.js +9 -9
- package/dist/templates/social/festival-presale-folk-ads.js +9 -9
- package/dist/templates/social/festival-presale-food-ads.js +9 -9
- package/dist/templates/social/festival-presale-jazz-ads.js +9 -9
- package/dist/templates/social/festival-presale-street-ads.js +9 -9
- package/dist/templates/social/gothic-feature-post.js +7 -7
- package/dist/templates/social/gothic-link-preview.js +7 -7
- package/dist/templates/social/halloween-link-preview.js +7 -7
- package/dist/templates/social/halloween-offer-post.js +7 -7
- package/dist/templates/social/holidays-diwali-sweet-shop-post.js +7 -7
- package/dist/templates/social/holidays-lunar-new-year-bakery-post.js +7 -7
- package/dist/templates/social/holidays-new-years-eve-shop-hours.js +7 -7
- package/dist/templates/social/holidays-thanksgiving-pie-orders-post.js +7 -7
- package/dist/templates/social/holidays-valentines-florist-post.js +7 -7
- package/dist/templates/social/lunar-new-year-greeting-post.js +7 -7
- package/dist/templates/social/lunar-new-year-link-preview.js +7 -7
- package/dist/templates/social/machined-link-preview.js +7 -7
- package/dist/templates/social/machined-plate-post.js +7 -7
- package/dist/templates/social/manuscript-chapter-post.js +7 -7
- package/dist/templates/social/manuscript-link-preview.js +7 -7
- package/dist/templates/social/new-year-link-preview.js +7 -7
- package/dist/templates/social/new-year-resolutions-post.js +7 -7
- package/dist/templates/social/noir-case-file.js +7 -7
- package/dist/templates/social/noir-feature-post.js +7 -7
- package/dist/templates/social/post-announcement.js +7 -7
- package/dist/templates/social/post-event.js +7 -7
- package/dist/templates/social/post-podcast.js +7 -7
- package/dist/templates/social/post-quote.js +7 -7
- package/dist/templates/social/post-sale.js +7 -7
- package/dist/templates/social/post-stat.js +7 -7
- package/dist/templates/social/post-testimonial.js +7 -7
- package/dist/templates/social/promo-announcement.js +7 -7
- package/dist/templates/social/promo-beat-drop.js +7 -7
- package/dist/templates/social/promo-event.js +7 -7
- package/dist/templates/social/promo-new-product.js +7 -7
- package/dist/templates/social/promo-quote-reveal.js +7 -7
- package/dist/templates/social/promo-sale-drop.js +7 -7
- package/dist/templates/social/promo-tip-list.js +7 -7
- package/dist/templates/social/psychedelic-lineup-post.js +7 -7
- package/dist/templates/social/psychedelic-link-preview.js +7 -7
- package/dist/templates/social/riso-zine-link-preview.js +7 -7
- package/dist/templates/social/riso-zine-mrr-poster.js +7 -7
- package/dist/templates/social/saas-kit-carousel.js +7 -7
- package/dist/templates/social/saas-kit-countdown-post.js +7 -7
- package/dist/templates/social/saas-kit-feature-drop.js +7 -7
- package/dist/templates/social/saas-kit-link-preview.js +7 -7
- package/dist/templates/social/saas-kit-live-post.js +7 -7
- package/dist/templates/social/saas-kit-mrr-card.js +7 -7
- package/dist/templates/social/saas-kit-ph-gallery.js +7 -7
- package/dist/templates/social/saas-kit-ph-thumb.js +7 -7
- package/dist/templates/social/saas-kit-youtube-thumbs.js +7 -7
- package/dist/templates/social/saas-store-b2b-ads.js +7 -7
- package/dist/templates/social/saas-store-caption-set.js +7 -7
- package/dist/templates/social/saas-store-chrome-kit.js +7 -7
- package/dist/templates/social/saas-store-ipad-set.js +7 -7
- package/dist/templates/social/saas-store-panorama.js +7 -7
- package/dist/templates/social/saas-store-play-kit.js +7 -7
- package/dist/templates/social/saas-store-story.js +7 -7
- package/dist/templates/social/singles-day-link-preview.js +7 -7
- package/dist/templates/social/solarpunk-impact-post.js +7 -7
- package/dist/templates/social/solarpunk-link-preview.js +7 -7
- package/dist/templates/social/space-opera-link-preview.js +7 -7
- package/dist/templates/social/space-opera-mission-patch-post.js +7 -7
- package/dist/templates/social/spring-bloom-link-preview.js +7 -7
- package/dist/templates/social/studio-class-timetable.js +7 -7
- package/dist/templates/social/studio-podcast-cover.js +7 -7
- package/dist/templates/social/style-bento-announcement.js +7 -7
- package/dist/templates/social/style-bento-link-preview.js +7 -7
- package/dist/templates/social/style-bento-milestone.js +7 -7
- package/dist/templates/social/style-bento-testimonial.js +7 -7
- package/dist/templates/social/style-brutalist-announcement.js +7 -7
- package/dist/templates/social/style-brutalist-link-preview.js +7 -7
- package/dist/templates/social/style-brutalist-milestone.js +7 -7
- package/dist/templates/social/style-brutalist-testimonial.js +7 -7
- package/dist/templates/social/style-dark-announcement.js +7 -7
- package/dist/templates/social/style-dark-link-preview.js +7 -7
- package/dist/templates/social/style-dark-milestone.js +7 -7
- package/dist/templates/social/style-dark-testimonial.js +7 -7
- package/dist/templates/social/style-data-announcement.js +7 -7
- package/dist/templates/social/style-data-link-preview.js +7 -7
- package/dist/templates/social/style-data-milestone.js +7 -7
- package/dist/templates/social/style-data-testimonial.js +7 -7
- package/dist/templates/social/style-editorial-announcement.js +7 -7
- package/dist/templates/social/style-editorial-link-preview.js +7 -7
- package/dist/templates/social/style-editorial-milestone.js +7 -7
- package/dist/templates/social/style-editorial-testimonial.js +7 -7
- package/dist/templates/social/style-glass-announcement.js +7 -7
- package/dist/templates/social/style-glass-link-preview.js +7 -7
- package/dist/templates/social/style-glass-milestone.js +7 -7
- package/dist/templates/social/style-glass-testimonial.js +7 -7
- package/dist/templates/social/style-gradient-announcement.js +7 -7
- package/dist/templates/social/style-gradient-link-preview.js +7 -7
- package/dist/templates/social/style-gradient-milestone.js +7 -7
- package/dist/templates/social/style-gradient-testimonial.js +7 -7
- package/dist/templates/social/style-maximal-announcement.js +7 -7
- package/dist/templates/social/style-maximal-link-preview.js +7 -7
- package/dist/templates/social/style-maximal-milestone.js +7 -7
- package/dist/templates/social/style-maximal-testimonial.js +7 -7
- package/dist/templates/social/style-pastel-announcement.js +7 -7
- package/dist/templates/social/style-pastel-link-preview.js +7 -7
- package/dist/templates/social/style-pastel-milestone.js +7 -7
- package/dist/templates/social/style-pastel-testimonial.js +7 -7
- package/dist/templates/social/style-sketch-announcement.js +7 -7
- package/dist/templates/social/style-sketch-link-preview.js +7 -7
- package/dist/templates/social/style-sketch-milestone.js +7 -7
- package/dist/templates/social/style-sketch-testimonial.js +7 -7
- package/dist/templates/social/style-swiss-announcement.js +7 -7
- package/dist/templates/social/style-swiss-link-preview.js +7 -7
- package/dist/templates/social/style-swiss-milestone.js +7 -7
- package/dist/templates/social/style-swiss-testimonial.js +7 -7
- package/dist/templates/social/style-terminal-announcement.js +7 -7
- package/dist/templates/social/style-terminal-link-preview.js +7 -7
- package/dist/templates/social/style-terminal-milestone.js +7 -7
- package/dist/templates/social/style-terminal-testimonial.js +7 -7
- package/dist/templates/social/summer-heatwave-link-preview.js +7 -7
- package/dist/templates/social/summer-heatwave-lolly-post.js +7 -7
- package/dist/templates/social/tour-tickets-june-ads.js +7 -7
- package/dist/templates/social/tour-tickets-tide-ads.js +7 -7
- package/dist/templates/social/tour-tickets-wreck-ads.js +7 -7
- package/dist/templates/social/transit-map-link-preview.js +7 -7
- package/dist/templates/social/ukiyo-e-link-preview.js +7 -7
- package/dist/templates/social/ukiyo-e-spike-post.js +7 -7
- package/dist/templates/social/valentines-link-preview.js +7 -7
- package/dist/templates/social/valentines-poem-post.js +7 -7
- package/dist/templates/social/vaporwave-feature-drop.js +7 -7
- package/dist/templates/social/vaporwave-link-preview.js +7 -7
- package/dist/templates/social/winter-cosy-link-preview.js +7 -7
- package/dist/templates/social/winter-holidays-link-preview.js +7 -7
- package/dist/templates/social/winter-holidays-thanks-post.js +7 -7
- package/dist/templates/stings/line-reveal.js +7 -7
- package/dist/templates/stings/sting-blur.js +7 -7
- package/dist/templates/stings/sting-pop.js +7 -7
- package/dist/templates/stings/sting-rise.js +7 -7
- package/dist/templates/stings/sting-shimmer.js +7 -7
- package/dist/templates/stings/word-swap.js +7 -7
- package/dist/templates/text/stat-counter.js +7 -7
- package/dist/templates/text/word-quote.js +7 -7
- package/dist/templates/themes/april-fools.js +12 -12
- package/dist/templates/themes/arcade.js +11 -11
- package/dist/templates/themes/art-deco.js +12 -12
- package/dist/templates/themes/autumn-harvest.js +12 -12
- package/dist/templates/themes/back-to-school.js +12 -12
- package/dist/templates/themes/bauhaus.js +12 -12
- package/dist/templates/themes/black-friday-coupons.js +13 -13
- package/dist/templates/themes/black-friday-neon.js +13 -13
- package/dist/templates/themes/black-friday-scratch.js +13 -13
- package/dist/templates/themes/black-friday-ticker.js +13 -13
- package/dist/templates/themes/black-friday.js +12 -12
- package/dist/templates/themes/blueprint.js +12 -12
- package/dist/templates/themes/broadsheet.js +13 -13
- package/dist/templates/themes/claymation.js +12 -12
- package/dist/templates/themes/comic-book.js +21 -21
- package/dist/templates/themes/comic-hero.js +19 -19
- package/dist/templates/themes/comic-indie.js +7 -7
- package/dist/templates/themes/cyberpunk.js +12 -12
- package/dist/templates/themes/departure-board.js +12 -12
- package/dist/templates/themes/diwali.js +12 -12
- package/dist/templates/themes/earth-day.js +12 -12
- package/dist/templates/themes/everyday.js +13 -13
- package/dist/templates/themes/festival-presale-electronic-kit.js +8 -8
- package/dist/templates/themes/festival-presale-family-a-shared.js +7 -7
- package/dist/templates/themes/festival-presale-family-a.js +32 -32
- package/dist/templates/themes/festival-presale-family-b-shared.js +7 -7
- package/dist/templates/themes/festival-presale-family-b.js +32 -32
- package/dist/templates/themes/festival-presale-family-kit.js +8 -8
- package/dist/templates/themes/festival-presale-folk-kit.js +8 -8
- package/dist/templates/themes/festival-presale-food-kit.js +8 -8
- package/dist/templates/themes/festival-presale-jazz-kit.js +8 -8
- package/dist/templates/themes/festival-presale-street-kit.js +8 -8
- package/dist/templates/themes/festival-presale.js +13 -13
- package/dist/templates/themes/gothic.js +12 -12
- package/dist/templates/themes/halloween.js +12 -12
- package/dist/templates/themes/holidays.js +33 -33
- package/dist/templates/themes/index.js +425 -425
- package/dist/templates/themes/lunar-new-year.js +12 -12
- package/dist/templates/themes/machined.js +11 -11
- package/dist/templates/themes/manuscript.js +12 -12
- package/dist/templates/themes/memories.js +16 -16
- package/dist/templates/themes/new-year.js +12 -12
- package/dist/templates/themes/noir.js +12 -12
- package/dist/templates/themes/printshop.js +31 -31
- package/dist/templates/themes/psychedelic.js +12 -12
- package/dist/templates/themes/riso-zine.js +12 -12
- package/dist/templates/themes/singles-day.js +12 -12
- package/dist/templates/themes/solarpunk.js +12 -12
- package/dist/templates/themes/space-opera.js +12 -12
- package/dist/templates/themes/spring-bloom.js +12 -12
- package/dist/templates/themes/studio.js +12 -12
- package/dist/templates/themes/summer-heatwave.js +12 -12
- package/dist/templates/themes/tour-tickets.js +31 -31
- package/dist/templates/themes/transit-map.js +12 -12
- package/dist/templates/themes/ukiyo-e.js +12 -12
- package/dist/templates/themes/valentines.js +12 -12
- package/dist/templates/themes/vaporwave.js +11 -11
- package/dist/templates/themes/winter-cosy.js +12 -12
- package/dist/templates/themes/winter-holidays.js +12 -12
- package/dist/templates/video/youtube-chapter.js +7 -7
- package/dist/templates/video/youtube-end-screen.js +7 -7
- package/dist/templates/video/youtube-intro.js +7 -7
- package/dist/templates/video/youtube-subscribe.js +7 -7
- package/dist/templates/web/april-fools-landing.js +7 -7
- package/dist/templates/web/arcade-landing.js +7 -7
- package/dist/templates/web/art-deco-landing.js +7 -7
- package/dist/templates/web/autumn-harvest-landing.js +7 -7
- package/dist/templates/web/back-to-school-landing.js +7 -7
- package/dist/templates/web/bauhaus-landing.js +7 -7
- package/dist/templates/web/black-friday-coupons-landing.js +7 -7
- package/dist/templates/web/black-friday-landing.js +7 -7
- package/dist/templates/web/black-friday-neon-landing.js +7 -7
- package/dist/templates/web/black-friday-scratch-landing.js +7 -7
- package/dist/templates/web/black-friday-ticker-landing.js +7 -7
- package/dist/templates/web/blog-post.js +7 -7
- package/dist/templates/web/blueprint-landing.js +7 -7
- package/dist/templates/web/broadsheet-landing.js +7 -7
- package/dist/templates/web/claymation-landing.js +7 -7
- package/dist/templates/web/comic-book-landing.js +7 -7
- package/dist/templates/web/coming-soon-page.js +7 -7
- package/dist/templates/web/coming-soon.js +7 -7
- package/dist/templates/web/contact.js +7 -7
- package/dist/templates/web/cyberpunk-landing.js +7 -7
- package/dist/templates/web/daybreak-app.js +7 -7
- package/dist/templates/web/departure-board-download.js +7 -7
- package/dist/templates/web/diwali-landing.js +7 -7
- package/dist/templates/web/earth-day-landing.js +7 -7
- package/dist/templates/web/everyday-cafe.js +7 -7
- package/dist/templates/web/everyday-hotel.js +7 -7
- package/dist/templates/web/everyday-wedding.js +7 -7
- package/dist/templates/web/festival-presale-electronic.js +7 -7
- package/dist/templates/web/festival-presale-family.js +7 -7
- package/dist/templates/web/festival-presale-folk.js +7 -7
- package/dist/templates/web/festival-presale-food.js +7 -7
- package/dist/templates/web/festival-presale-jazz.js +7 -7
- package/dist/templates/web/festival-presale-street.js +7 -7
- package/dist/templates/web/gothic-landing.js +7 -7
- package/dist/templates/web/halloween-landing.js +7 -7
- package/dist/templates/web/hero-animated.js +7 -7
- package/dist/templates/web/kindling-app.js +7 -7
- package/dist/templates/web/launch-waitlist.js +7 -7
- package/dist/templates/web/lunar-new-year-landing.js +7 -7
- package/dist/templates/web/machined-hero.js +7 -7
- package/dist/templates/web/manuscript-landing.js +7 -7
- package/dist/templates/web/marginalia-app.js +7 -7
- package/dist/templates/web/new-year-landing.js +7 -7
- package/dist/templates/web/noir-landing.js +7 -7
- package/dist/templates/web/page-404.js +7 -7
- package/dist/templates/web/portfolio-architect.js +7 -7
- package/dist/templates/web/portfolio-card-deck.js +7 -7
- package/dist/templates/web/portfolio-case-folio.js +7 -7
- package/dist/templates/web/portfolio-cube-gallery.js +7 -7
- package/dist/templates/web/portfolio-depth-tunnel.js +7 -7
- package/dist/templates/web/portfolio-editorial.js +7 -7
- package/dist/templates/web/portfolio-flip-wall.js +7 -7
- package/dist/templates/web/portfolio-index-list.js +7 -7
- package/dist/templates/web/portfolio-photographer.js +7 -7
- package/dist/templates/web/portfolio-reel-carousel.js +7 -7
- package/dist/templates/web/portfolio-sketchbook.js +7 -7
- package/dist/templates/web/portfolio-studio-grid.js +7 -7
- package/dist/templates/web/portfolio.js +7 -7
- package/dist/templates/web/portfolios.js +19 -19
- package/dist/templates/web/potluck-app.js +7 -7
- package/dist/templates/web/pricing-toggle.js +7 -7
- package/dist/templates/web/product-page.js +7 -7
- package/dist/templates/web/psychedelic-landing.js +7 -7
- package/dist/templates/web/riso-zine-landing.js +7 -7
- package/dist/templates/web/rsvp-invite.js +7 -7
- package/dist/templates/web/saas-ai-landing.js +7 -7
- package/dist/templates/web/saas-app-download.js +7 -7
- package/dist/templates/web/saas-case-study.js +7 -7
- package/dist/templates/web/saas-changelog.js +7 -7
- package/dist/templates/web/saas-comparison.js +7 -7
- package/dist/templates/web/saas-data-landing.js +7 -7
- package/dist/templates/web/saas-dev-landing.js +7 -7
- package/dist/templates/web/saas-indie-landing.js +7 -7
- package/dist/templates/web/saas-integrations.js +7 -7
- package/dist/templates/web/saas-security.js +7 -7
- package/dist/templates/web/saas-signup.js +7 -7
- package/dist/templates/web/saas-waitlist.js +7 -7
- package/dist/templates/web/saffron-app.js +7 -7
- package/dist/templates/web/shop-bloom.js +7 -7
- package/dist/templates/web/shop-circuit.js +7 -7
- package/dist/templates/web/shop-fieldwork.js +7 -7
- package/dist/templates/web/shop-greenhouse.js +7 -7
- package/dist/templates/web/shop-kiln.js +7 -7
- package/dist/templates/web/shop-marginalia.js +7 -7
- package/dist/templates/web/shop-ode.js +7 -7
- package/dist/templates/web/shop-static.js +7 -7
- package/dist/templates/web/shop-summit.js +7 -7
- package/dist/templates/web/shops.js +16 -16
- package/dist/templates/web/singles-day-landing.js +7 -7
- package/dist/templates/web/solarpunk-landing.js +7 -7
- package/dist/templates/web/space-opera-landing.js +7 -7
- package/dist/templates/web/spring-bloom-landing.js +7 -7
- package/dist/templates/web/studio-careers.js +7 -7
- package/dist/templates/web/style-bento-landing.js +7 -7
- package/dist/templates/web/style-bento-pricing.js +7 -7
- package/dist/templates/web/style-brutalist-landing.js +7 -7
- package/dist/templates/web/style-brutalist-pricing.js +7 -7
- package/dist/templates/web/style-dark-landing.js +7 -7
- package/dist/templates/web/style-dark-pricing.js +7 -7
- package/dist/templates/web/style-data-landing.js +7 -7
- package/dist/templates/web/style-data-pricing.js +7 -7
- package/dist/templates/web/style-editorial-landing.js +7 -7
- package/dist/templates/web/style-editorial-pricing.js +7 -7
- package/dist/templates/web/style-glass-landing.js +7 -7
- package/dist/templates/web/style-glass-pricing.js +7 -7
- package/dist/templates/web/style-gradient-landing.js +7 -7
- package/dist/templates/web/style-gradient-pricing.js +7 -7
- package/dist/templates/web/style-maximal-landing.js +7 -7
- package/dist/templates/web/style-maximal-pricing.js +7 -7
- package/dist/templates/web/style-pastel-landing.js +7 -7
- package/dist/templates/web/style-pastel-pricing.js +7 -7
- package/dist/templates/web/style-sketch-landing.js +7 -7
- package/dist/templates/web/style-sketch-pricing.js +7 -7
- package/dist/templates/web/style-swiss-landing.js +7 -7
- package/dist/templates/web/style-swiss-pricing.js +7 -7
- package/dist/templates/web/style-terminal-landing.js +7 -7
- package/dist/templates/web/style-terminal-pricing.js +7 -7
- package/dist/templates/web/summer-heatwave-landing.js +7 -7
- package/dist/templates/web/tempo-app.js +7 -7
- package/dist/templates/web/tour-tickets-june-landing.js +7 -7
- package/dist/templates/web/tour-tickets-tide-landing.js +7 -7
- package/dist/templates/web/tour-tickets-wreck-landing.js +7 -7
- package/dist/templates/web/transit-map-landing.js +7 -7
- package/dist/templates/web/ukiyo-e-landing.js +7 -7
- package/dist/templates/web/valentines-landing.js +7 -7
- package/dist/templates/web/vaporwave-landing.js +7 -7
- package/dist/templates/web/wayfarer-app.js +7 -7
- package/dist/templates/web/winter-cosy-landing.js +7 -7
- package/dist/templates/web/winter-holidays-landing.js +7 -7
- package/package.json +1 -1
- package/dist/chunks/agent-TSLSDIZ7.js +0 -44
- package/dist/chunks/builtin-H6YOIATP.js +0 -121
- package/dist/chunks/buy-credits-JFWH2FVN.js +0 -80
- package/dist/chunks/check-template-VFEXYV4M.js +0 -2413
- package/dist/chunks/chunk-22F7EPVX.js +0 -172
- package/dist/chunks/chunk-22KJ3JZL.js +0 -270
- package/dist/chunks/chunk-235FEKZK.js +0 -135
- package/dist/chunks/chunk-23OUPS7W.js +0 -33
- package/dist/chunks/chunk-25PISO2F.js +0 -23
- package/dist/chunks/chunk-2BKPA6Y4.js +0 -282
- package/dist/chunks/chunk-2FGIORXE.js +0 -210
- package/dist/chunks/chunk-2G7XPWMP.js +0 -239
- package/dist/chunks/chunk-2IX5ZIH6.js +0 -84
- package/dist/chunks/chunk-2LBRUUPE.js +0 -198
- package/dist/chunks/chunk-2LOXSABB.js +0 -89
- package/dist/chunks/chunk-2LQELHXE.js +0 -152
- package/dist/chunks/chunk-2MLPQPYI.js +0 -225
- package/dist/chunks/chunk-2MYE2LS3.js +0 -104
- package/dist/chunks/chunk-2NAHHBYS.js +0 -258
- package/dist/chunks/chunk-2OQZUCPX.js +0 -75
- package/dist/chunks/chunk-2PKIXGRF.js +0 -23
- package/dist/chunks/chunk-2PUOT7D7.js +0 -23
- package/dist/chunks/chunk-2Q2RQ6GW.js +0 -140
- package/dist/chunks/chunk-2QVNKB4B.js +0 -55
- package/dist/chunks/chunk-2RFZTHNF.js +0 -41
- package/dist/chunks/chunk-2RGKPXH2.js +0 -338
- package/dist/chunks/chunk-2W3JZOAF.js +0 -33
- package/dist/chunks/chunk-2YJGU3KV.js +0 -152
- package/dist/chunks/chunk-2YSZ7YDC.js +0 -250
- package/dist/chunks/chunk-2ZPQT6WR.js +0 -131
- package/dist/chunks/chunk-325D2VTB.js +0 -84
- package/dist/chunks/chunk-33LZDK5M.js +0 -115
- package/dist/chunks/chunk-355O4WLG.js +0 -168
- package/dist/chunks/chunk-35BBAOTL.js +0 -165
- package/dist/chunks/chunk-36SCCSEM.js +0 -247
- package/dist/chunks/chunk-3AKH5JDC.js +0 -54
- package/dist/chunks/chunk-3BRSTTBH.js +0 -777
- package/dist/chunks/chunk-3BYZEUZ3.js +0 -23
- package/dist/chunks/chunk-3C3JKOXN.js +0 -153
- package/dist/chunks/chunk-3C623QFF.js +0 -23
- package/dist/chunks/chunk-3IF2EY7N.js +0 -23
- package/dist/chunks/chunk-3INKHOQC.js +0 -146
- package/dist/chunks/chunk-3IVTLWWG.js +0 -218
- package/dist/chunks/chunk-3JOTA7EB.js +0 -1419
- package/dist/chunks/chunk-3NDSXFU2.js +0 -23
- package/dist/chunks/chunk-3NLSCMZW.js +0 -74
- package/dist/chunks/chunk-3NPBD6AS.js +0 -121
- package/dist/chunks/chunk-3NT5PMWJ.js +0 -23
- package/dist/chunks/chunk-3OHYWADH.js +0 -170
- package/dist/chunks/chunk-3QJCMOGK.js +0 -106
- package/dist/chunks/chunk-3RTFJ6PY.js +0 -47
- package/dist/chunks/chunk-3S7LAQFC.js +0 -80
- package/dist/chunks/chunk-3SPKZSYF.js +0 -135
- package/dist/chunks/chunk-3TACXVZV.js +0 -77
- package/dist/chunks/chunk-3TP7DUPG.js +0 -191
- package/dist/chunks/chunk-3VM5BRMC.js +0 -95
- package/dist/chunks/chunk-3YDD45FM.js +0 -90
- package/dist/chunks/chunk-3YICBU43.js +0 -234
- package/dist/chunks/chunk-3YONJZXI.js +0 -121
- package/dist/chunks/chunk-3YSCPNDM.js +0 -215
- package/dist/chunks/chunk-3YXONWIJ.js +0 -91
- package/dist/chunks/chunk-444FZ7QE.js +0 -185
- package/dist/chunks/chunk-45IX6H4R.js +0 -206
- package/dist/chunks/chunk-4ABKTEOV.js +0 -111
- package/dist/chunks/chunk-4BCVARIN.js +0 -82
- package/dist/chunks/chunk-4ID6VIDT.js +0 -174
- package/dist/chunks/chunk-4ISDJG43.js +0 -23
- package/dist/chunks/chunk-4J76WO5T.js +0 -163
- package/dist/chunks/chunk-4JBKMOSA.js +0 -33
- package/dist/chunks/chunk-4KP4OZWA.js +0 -262
- package/dist/chunks/chunk-4LFZGFPQ.js +0 -320
- package/dist/chunks/chunk-4LKYD4XB.js +0 -197
- package/dist/chunks/chunk-4LSVSFRI.js +0 -49
- package/dist/chunks/chunk-4NEKRODJ.js +0 -102
- package/dist/chunks/chunk-4NFBAFW6.js +0 -189
- package/dist/chunks/chunk-4NPNWZMA.js +0 -159
- package/dist/chunks/chunk-4ONQ7YOK.js +0 -123
- package/dist/chunks/chunk-4QAZMJ5Z.js +0 -88
- package/dist/chunks/chunk-4S3KLOPA.js +0 -166
- package/dist/chunks/chunk-4SAGDNBJ.js +0 -106
- package/dist/chunks/chunk-4SLOWKGS.js +0 -94
- package/dist/chunks/chunk-4SX3ZZX7.js +0 -180
- package/dist/chunks/chunk-4TGLGW3X.js +0 -153
- package/dist/chunks/chunk-4TSMYNCF.js +0 -224
- package/dist/chunks/chunk-4TSXXYYE.js +0 -422
- package/dist/chunks/chunk-4V4CIANZ.js +0 -97
- package/dist/chunks/chunk-4WTOALP4.js +0 -101
- package/dist/chunks/chunk-4XBJA2NU.js +0 -36
- package/dist/chunks/chunk-4XL6STAO.js +0 -78
- package/dist/chunks/chunk-4XTFD5BC.js +0 -77
- package/dist/chunks/chunk-4XVR2ZWY.js +0 -33
- package/dist/chunks/chunk-4Y3BWUBH.js +0 -23
- package/dist/chunks/chunk-4Y4GZHUB.js +0 -92
- package/dist/chunks/chunk-4YSL6MDN.js +0 -312
- package/dist/chunks/chunk-4ZMSAPTD.js +0 -122
- package/dist/chunks/chunk-52H7XQSY.js +0 -378
- package/dist/chunks/chunk-52ISSBB2.js +0 -23
- package/dist/chunks/chunk-52NCJHSX.js +0 -36
- package/dist/chunks/chunk-54YT4UBV.js +0 -197
- package/dist/chunks/chunk-56Z5S2H3.js +0 -77
- package/dist/chunks/chunk-57HS45KP.js +0 -214
- package/dist/chunks/chunk-5AABYA2Q.js +0 -81
- package/dist/chunks/chunk-5BSKHZL5.js +0 -290
- package/dist/chunks/chunk-5GIP3ZC5.js +0 -23
- package/dist/chunks/chunk-5HQKCBJY.js +0 -128
- package/dist/chunks/chunk-5I2HWOFO.js +0 -172
- package/dist/chunks/chunk-5IMOKCRL.js +0 -55
- package/dist/chunks/chunk-5JXKH2PJ.js +0 -197
- package/dist/chunks/chunk-5LAGG32N.js +0 -115
- package/dist/chunks/chunk-5MAU4MW2.js +0 -237
- package/dist/chunks/chunk-5NWEWIKW.js +0 -81
- package/dist/chunks/chunk-5QEWPMQN.js +0 -97
- package/dist/chunks/chunk-5QW2KWH5.js +0 -80
- package/dist/chunks/chunk-5RH44KS3.js +0 -206
- package/dist/chunks/chunk-5TGZDBRL.js +0 -55
- package/dist/chunks/chunk-5XHC5QXQ.js +0 -183
- package/dist/chunks/chunk-63AZPKZY.js +0 -113
- package/dist/chunks/chunk-63DMJTBC.js +0 -390
- package/dist/chunks/chunk-66EUO47D.js +0 -274
- package/dist/chunks/chunk-66FTYOPY.js +0 -889
- package/dist/chunks/chunk-67S2TFAZ.js +0 -108
- package/dist/chunks/chunk-6A24MSQG.js +0 -33
- package/dist/chunks/chunk-6AKTTKMG.js +0 -80
- package/dist/chunks/chunk-6BHXTA3Q.js +0 -96
- package/dist/chunks/chunk-6D3OV6IZ.js +0 -69
- package/dist/chunks/chunk-6EG6J2P6.js +0 -94
- package/dist/chunks/chunk-6F467OQG.js +0 -118
- package/dist/chunks/chunk-6FYR3LXN.js +0 -106
- package/dist/chunks/chunk-6GMHMYZ2.js +0 -23
- package/dist/chunks/chunk-6HGWZM2J.js +0 -89
- package/dist/chunks/chunk-6JCHPGNL.js +0 -265
- package/dist/chunks/chunk-6LX4QTGY.js +0 -33
- package/dist/chunks/chunk-6MXPW2VC.js +0 -106
- package/dist/chunks/chunk-6R6AFZWK.js +0 -97
- package/dist/chunks/chunk-6UVXJ7F4.js +0 -30
- package/dist/chunks/chunk-6XT4SR2D.js +0 -155
- package/dist/chunks/chunk-6Z3G6CE4.js +0 -71
- package/dist/chunks/chunk-6Z5AE6UQ.js +0 -231
- package/dist/chunks/chunk-6Z6JN2HB.js +0 -23
- package/dist/chunks/chunk-75QDBS6R.js +0 -149
- package/dist/chunks/chunk-7AEK44HQ.js +0 -41
- package/dist/chunks/chunk-7BNKFBTW.js +0 -161
- package/dist/chunks/chunk-7CYLOIOR.js +0 -120
- package/dist/chunks/chunk-7D2JIX5U.js +0 -101
- package/dist/chunks/chunk-7EJGSZY5.js +0 -462
- package/dist/chunks/chunk-7ILLYRJB.js +0 -99
- package/dist/chunks/chunk-7J6LG54K.js +0 -277
- package/dist/chunks/chunk-7KX55PR3.js +0 -166
- package/dist/chunks/chunk-7MXXUPXE.js +0 -361
- package/dist/chunks/chunk-7N6GIZ2U.js +0 -45
- package/dist/chunks/chunk-7NITLL3X.js +0 -209
- package/dist/chunks/chunk-7NU2LVIW.js +0 -181
- package/dist/chunks/chunk-7NZQ6ZNS.js +0 -130
- package/dist/chunks/chunk-7T5DGKE2.js +0 -23
- package/dist/chunks/chunk-7TA6UP6H.js +0 -97
- package/dist/chunks/chunk-7TXRRPVP.js +0 -114
- package/dist/chunks/chunk-7UR2AVH6.js +0 -231
- package/dist/chunks/chunk-7VZNAJDE.js +0 -127
- package/dist/chunks/chunk-7Y3N4NZJ.js +0 -108
- package/dist/chunks/chunk-A3NYPXQB.js +0 -122
- package/dist/chunks/chunk-A7TBWA7W.js +0 -191
- package/dist/chunks/chunk-ABINQ255.js +0 -187
- package/dist/chunks/chunk-AC6NUJPA.js +0 -87
- package/dist/chunks/chunk-ACXNAMGE.js +0 -217
- package/dist/chunks/chunk-AE7Z2AWZ.js +0 -346
- package/dist/chunks/chunk-AFSFS2OI.js +0 -90
- package/dist/chunks/chunk-AHUA6SPE.js +0 -38
- package/dist/chunks/chunk-AIN4X4H3.js +0 -41
- package/dist/chunks/chunk-AIRXT2AD.js +0 -71
- package/dist/chunks/chunk-AJGGGIWQ.js +0 -52
- package/dist/chunks/chunk-AK7UJ6CK.js +0 -257
- package/dist/chunks/chunk-AKXA2UD3.js +0 -97
- package/dist/chunks/chunk-AL75JJYB.js +0 -77
- package/dist/chunks/chunk-AM4KEFB2.js +0 -133
- package/dist/chunks/chunk-ANC7YPKQ.js +0 -157
- package/dist/chunks/chunk-ANHRRLQ5.js +0 -78
- package/dist/chunks/chunk-AOQSFWM6.js +0 -10311
- package/dist/chunks/chunk-APVMCNFK.js +0 -47
- package/dist/chunks/chunk-AQ36XI6S.js +0 -76
- package/dist/chunks/chunk-ARAK3JWY.js +0 -157
- package/dist/chunks/chunk-ARP35JOS.js +0 -1136
- package/dist/chunks/chunk-ASD2QKKQ.js +0 -45
- package/dist/chunks/chunk-ASEZAAT2.js +0 -217
- package/dist/chunks/chunk-ATNUI5G2.js +0 -342
- package/dist/chunks/chunk-ATYZR3TG.js +0 -626
- package/dist/chunks/chunk-AVR3I67Z.js +0 -33
- package/dist/chunks/chunk-AVYZ66I7.js +0 -303
- package/dist/chunks/chunk-AW3NMN6C.js +0 -410
- package/dist/chunks/chunk-AWSUAGTZ.js +0 -329
- package/dist/chunks/chunk-AX6BRMJK.js +0 -276
- package/dist/chunks/chunk-AYLIUYXK.js +0 -95
- package/dist/chunks/chunk-B3GYGDSG.js +0 -188
- package/dist/chunks/chunk-B3TSSGWD.js +0 -107
- package/dist/chunks/chunk-B5WQ66YF.js +0 -235
- package/dist/chunks/chunk-B6ECJSQO.js +0 -36
- package/dist/chunks/chunk-B6MHGBYB.js +0 -23
- package/dist/chunks/chunk-BAMAOKNK.js +0 -91
- package/dist/chunks/chunk-BBCSYOHW.js +0 -95
- package/dist/chunks/chunk-BBN7V7TM.js +0 -33
- package/dist/chunks/chunk-BCCXENQK.js +0 -94
- package/dist/chunks/chunk-BDBV7IFG.js +0 -194
- package/dist/chunks/chunk-BDGPZDRM.js +0 -140
- package/dist/chunks/chunk-BELNTFRN.js +0 -159
- package/dist/chunks/chunk-BFDN4WOF.js +0 -232
- package/dist/chunks/chunk-BJGEGGQH.js +0 -684
- package/dist/chunks/chunk-BKDJXEUD.js +0 -1845
- package/dist/chunks/chunk-BL3DKSHQ.js +0 -111
- package/dist/chunks/chunk-BMMWBGH6.js +0 -174
- package/dist/chunks/chunk-BPHEJQP7.js +0 -87
- package/dist/chunks/chunk-BQ7ISNFW.js +0 -172
- package/dist/chunks/chunk-BUPCT2ZO.js +0 -244
- package/dist/chunks/chunk-BVVWI2W2.js +0 -152
- package/dist/chunks/chunk-BWM5I6T7.js +0 -146
- package/dist/chunks/chunk-BYEJQ35G.js +0 -163
- package/dist/chunks/chunk-C2DMIEQB.js +0 -100
- package/dist/chunks/chunk-C2Y4FS3O.js +0 -123
- package/dist/chunks/chunk-C4Z6XOH2.js +0 -66
- package/dist/chunks/chunk-C6X2LYLT.js +0 -119
- package/dist/chunks/chunk-C7CKP2D3.js +0 -112
- package/dist/chunks/chunk-C7GBJS24.js +0 -152
- package/dist/chunks/chunk-C7SYL5YW.js +0 -168
- package/dist/chunks/chunk-C7WYBNAG.js +0 -139
- package/dist/chunks/chunk-CBXOZOD6.js +0 -84
- package/dist/chunks/chunk-CCFW3NHS.js +0 -190
- package/dist/chunks/chunk-CEMTTNYZ.js +0 -150
- package/dist/chunks/chunk-CF6WBRWU.js +0 -283
- package/dist/chunks/chunk-CFLETTFC.js +0 -112
- package/dist/chunks/chunk-CGDZZTXM.js +0 -270
- package/dist/chunks/chunk-CLT2CPOR.js +0 -199
- package/dist/chunks/chunk-CN4NSN5T.js +0 -71
- package/dist/chunks/chunk-CP4OXO2E.js +0 -110
- package/dist/chunks/chunk-CP56EIVS.js +0 -23
- package/dist/chunks/chunk-CPQ3QQAM.js +0 -260
- package/dist/chunks/chunk-CTRJP5UA.js +0 -190
- package/dist/chunks/chunk-CV5M7GBY.js +0 -326
- package/dist/chunks/chunk-CVNPMUA3.js +0 -115
- package/dist/chunks/chunk-CWK2C7VF.js +0 -176
- package/dist/chunks/chunk-CXJIKBFI.js +0 -97
- package/dist/chunks/chunk-CYBIAZCA.js +0 -151
- package/dist/chunks/chunk-CYRYQLHD.js +0 -179
- package/dist/chunks/chunk-CZ5UEKR2.js +0 -283
- package/dist/chunks/chunk-CZ6P3YBE.js +0 -133
- package/dist/chunks/chunk-D2EO535O.js +0 -375
- package/dist/chunks/chunk-D4G2FZHO.js +0 -33
- package/dist/chunks/chunk-D4NGIS4E.js +0 -194
- package/dist/chunks/chunk-D4NTA4HK.js +0 -119
- package/dist/chunks/chunk-D6OTVNKE.js +0 -252
- package/dist/chunks/chunk-D7C5KL3Z.js +0 -92
- package/dist/chunks/chunk-D7YTBTI4.js +0 -231
- package/dist/chunks/chunk-DB3G6FPI.js +0 -78
- package/dist/chunks/chunk-DC6DJOTF.js +0 -135
- package/dist/chunks/chunk-DCFH4M6G.js +0 -133
- package/dist/chunks/chunk-DF4YW3RK.js +0 -47
- package/dist/chunks/chunk-DFSIFWIO.js +0 -127
- package/dist/chunks/chunk-DGRCX4VF.js +0 -112
- package/dist/chunks/chunk-DHMAWUZF.js +0 -91
- package/dist/chunks/chunk-DHQGPRGS.js +0 -65
- package/dist/chunks/chunk-DJI3QSA5.js +0 -287
- package/dist/chunks/chunk-DKM5YJWZ.js +0 -251
- package/dist/chunks/chunk-DLZPRTL4.js +0 -214
- package/dist/chunks/chunk-DMC4TTXA.js +0 -125
- package/dist/chunks/chunk-DNMCO7OC.js +0 -154
- package/dist/chunks/chunk-DNSOYQMP.js +0 -125
- package/dist/chunks/chunk-DOB6UHVL.js +0 -136
- package/dist/chunks/chunk-DPGZGAMN.js +0 -277
- package/dist/chunks/chunk-DPXIHO3N.js +0 -101
- package/dist/chunks/chunk-DQ6DCFJW.js +0 -117
- package/dist/chunks/chunk-DQVYRURD.js +0 -172
- package/dist/chunks/chunk-DSM7BTW3.js +0 -898
- package/dist/chunks/chunk-DTDCIHK7.js +0 -274
- package/dist/chunks/chunk-DUQCVGVA.js +0 -98
- package/dist/chunks/chunk-DWSQANEY.js +0 -139
- package/dist/chunks/chunk-DXGCWLV3.js +0 -112
- package/dist/chunks/chunk-DYBXCHQT.js +0 -151
- package/dist/chunks/chunk-DZUWPAR6.js +0 -263
- package/dist/chunks/chunk-E2AHTGDJ.js +0 -169
- package/dist/chunks/chunk-E2CAA2IT.js +0 -170
- package/dist/chunks/chunk-E2KDHY2S.js +0 -105
- package/dist/chunks/chunk-E325RANG.js +0 -80
- package/dist/chunks/chunk-E3FMI2D5.js +0 -358
- package/dist/chunks/chunk-E4HJFILK.js +0 -95
- package/dist/chunks/chunk-E63JU2IC.js +0 -154
- package/dist/chunks/chunk-E6E3D5C6.js +0 -232
- package/dist/chunks/chunk-EF4SGQIV.js +0 -130
- package/dist/chunks/chunk-EFNM5MEU.js +0 -45
- package/dist/chunks/chunk-EFP2BOWS.js +0 -166
- package/dist/chunks/chunk-EJA5WPYZ.js +0 -102
- package/dist/chunks/chunk-EJY6GUJY.js +0 -180
- package/dist/chunks/chunk-EKVZURLF.js +0 -299
- package/dist/chunks/chunk-EMA57G3X.js +0 -57
- package/dist/chunks/chunk-EMMBFSU3.js +0 -142
- package/dist/chunks/chunk-ENCRJFHO.js +0 -70
- package/dist/chunks/chunk-EOFXX6RY.js +0 -209
- package/dist/chunks/chunk-EPQSVBY2.js +0 -93
- package/dist/chunks/chunk-ERMVLMCC.js +0 -305
- package/dist/chunks/chunk-ESUGFKTB.js +0 -337
- package/dist/chunks/chunk-ET4PP27Q.js +0 -88
- package/dist/chunks/chunk-EXGD6GG4.js +0 -110
- package/dist/chunks/chunk-EY3FW2CF.js +0 -336
- package/dist/chunks/chunk-F2ABG4UU.js +0 -279
- package/dist/chunks/chunk-F2EN6I5C.js +0 -100
- package/dist/chunks/chunk-F7NNXWRZ.js +0 -150
- package/dist/chunks/chunk-FBJ6SAWS.js +0 -106
- package/dist/chunks/chunk-FCFAJAYR.js +0 -80
- package/dist/chunks/chunk-FCNIZD4O.js +0 -181
- package/dist/chunks/chunk-FD3XIFXK.js +0 -181
- package/dist/chunks/chunk-FFMINBSO.js +0 -147
- package/dist/chunks/chunk-FGBNS4EK.js +0 -209
- package/dist/chunks/chunk-FGFLFP6C.js +0 -358
- package/dist/chunks/chunk-FHESI2IC.js +0 -28
- package/dist/chunks/chunk-FIDUMHOK.js +0 -73
- package/dist/chunks/chunk-FJP7PR4K.js +0 -1469
- package/dist/chunks/chunk-FKSBCSPM.js +0 -97
- package/dist/chunks/chunk-FLVPDRDN.js +0 -156
- package/dist/chunks/chunk-FMC6L2XE.js +0 -284
- package/dist/chunks/chunk-FMFSNMHK.js +0 -267
- package/dist/chunks/chunk-FN3RSPL5.js +0 -83
- package/dist/chunks/chunk-FNVY7WKW.js +0 -155
- package/dist/chunks/chunk-FO6UJPNG.js +0 -208
- package/dist/chunks/chunk-FQ4CWKWA.js +0 -324
- package/dist/chunks/chunk-FQIU5P7Y.js +0 -106
- package/dist/chunks/chunk-FQVG73TB.js +0 -45
- package/dist/chunks/chunk-FRB4LVDS.js +0 -163
- package/dist/chunks/chunk-FSQI5WFE.js +0 -187
- package/dist/chunks/chunk-FSVUPYFQ.js +0 -33
- package/dist/chunks/chunk-FXJKOSCN.js +0 -59
- package/dist/chunks/chunk-FY7YNCAL.js +0 -85
- package/dist/chunks/chunk-FZDCTQXH.js +0 -84
- package/dist/chunks/chunk-G36AY2BY.js +0 -161
- package/dist/chunks/chunk-G3BNYGFG.js +0 -45
- package/dist/chunks/chunk-G5LEQFTU.js +0 -50
- package/dist/chunks/chunk-G5SMD5ER.js +0 -282
- package/dist/chunks/chunk-G6IMCITC.js +0 -175
- package/dist/chunks/chunk-G7JKZHQ6.js +0 -162
- package/dist/chunks/chunk-GBBLW5YI.js +0 -112
- package/dist/chunks/chunk-GBK7GE2W.js +0 -172
- package/dist/chunks/chunk-GCABWNQZ.js +0 -87
- package/dist/chunks/chunk-GCGKGBN6.js +0 -45
- package/dist/chunks/chunk-GCKWFU4H.js +0 -106
- package/dist/chunks/chunk-GCMMCEL6.js +0 -45
- package/dist/chunks/chunk-GEGKV36L.js +0 -95
- package/dist/chunks/chunk-GFCU5X4N.js +0 -90
- package/dist/chunks/chunk-GIMDWCKQ.js +0 -95
- package/dist/chunks/chunk-GJGG2YY5.js +0 -23
- package/dist/chunks/chunk-GK3TICCH.js +0 -177
- package/dist/chunks/chunk-GKSYZ2IR.js +0 -33
- package/dist/chunks/chunk-GLNPCJQ4.js +0 -91
- package/dist/chunks/chunk-GMY4HEOJ.js +0 -170
- package/dist/chunks/chunk-GPG2LPJS.js +0 -213
- package/dist/chunks/chunk-GQBCOZYP.js +0 -255
- package/dist/chunks/chunk-GQD7GFT4.js +0 -23
- package/dist/chunks/chunk-GULRAEGN.js +0 -115
- package/dist/chunks/chunk-GUV4ZZYS.js +0 -141
- package/dist/chunks/chunk-GVS3QU5W.js +0 -75
- package/dist/chunks/chunk-GWE3FQXV.js +0 -117
- package/dist/chunks/chunk-GWSLCMSD.js +0 -23
- package/dist/chunks/chunk-GX4AASIE.js +0 -63
- package/dist/chunks/chunk-H2CIRYBJ.js +0 -90
- package/dist/chunks/chunk-H2HQGUDG.js +0 -147
- package/dist/chunks/chunk-H5H3ZPRR.js +0 -149
- package/dist/chunks/chunk-H6BZQ6UK.js +0 -134
- package/dist/chunks/chunk-HBELYGHD.js +0 -102
- package/dist/chunks/chunk-HC2IYOD2.js +0 -92
- package/dist/chunks/chunk-HCAORKTJ.js +0 -238
- package/dist/chunks/chunk-HDJFM4P2.js +0 -23
- package/dist/chunks/chunk-HDRN6QDB.js +0 -315
- package/dist/chunks/chunk-HDRZININ.js +0 -149
- package/dist/chunks/chunk-HFGFQFUE.js +0 -83
- package/dist/chunks/chunk-HG2Z32MP.js +0 -162
- package/dist/chunks/chunk-HGP3AZA6.js +0 -85
- package/dist/chunks/chunk-HHO5Y6CL.js +0 -163
- package/dist/chunks/chunk-HHXFTSND.js +0 -330
- package/dist/chunks/chunk-HIW6EAKH.js +0 -99
- package/dist/chunks/chunk-HOZ6BTHX.js +0 -104
- package/dist/chunks/chunk-HP52JYE2.js +0 -33
- package/dist/chunks/chunk-HPHQ4KKN.js +0 -50
- package/dist/chunks/chunk-HRXB4S66.js +0 -102
- package/dist/chunks/chunk-HS2OB37Z.js +0 -13744
- package/dist/chunks/chunk-HS2Z7QL6.js +0 -198
- package/dist/chunks/chunk-HSYBJYFV.js +0 -165
- package/dist/chunks/chunk-HU73CC64.js +0 -106
- package/dist/chunks/chunk-HW35MHMP.js +0 -226
- package/dist/chunks/chunk-HWP4LATJ.js +0 -36
- package/dist/chunks/chunk-HX6H6W5L.js +0 -33
- package/dist/chunks/chunk-HXM37GJZ.js +0 -138
- package/dist/chunks/chunk-HYCADEBD.js +0 -261
- package/dist/chunks/chunk-HZEN6T63.js +0 -145
- package/dist/chunks/chunk-HZVXXISD.js +0 -33
- package/dist/chunks/chunk-I46X2JB4.js +0 -396
- package/dist/chunks/chunk-I4M2MC7H.js +0 -198
- package/dist/chunks/chunk-I5H2XKO4.js +0 -177
- package/dist/chunks/chunk-I72LUTZF.js +0 -297
- package/dist/chunks/chunk-I742QHYK.js +0 -33
- package/dist/chunks/chunk-IB55G6FQ.js +0 -228
- package/dist/chunks/chunk-ICBRHKKT.js +0 -320
- package/dist/chunks/chunk-ICXXKXWI.js +0 -100
- package/dist/chunks/chunk-IEL6NNGC.js +0 -108
- package/dist/chunks/chunk-IHN3Y5LH.js +0 -177
- package/dist/chunks/chunk-IJ6V47OH.js +0 -78
- package/dist/chunks/chunk-IJHSAD5T.js +0 -94
- package/dist/chunks/chunk-IKQVH64B.js +0 -53
- package/dist/chunks/chunk-IMKXXY52.js +0 -200
- package/dist/chunks/chunk-INFXT3Z6.js +0 -10754
- package/dist/chunks/chunk-INHXJSXS.js +0 -108
- package/dist/chunks/chunk-IODAFC6O.js +0 -94
- package/dist/chunks/chunk-IT3RBOMM.js +0 -317
- package/dist/chunks/chunk-ITKIK6CV.js +0 -327
- package/dist/chunks/chunk-IV7V5VXL.js +0 -33
- package/dist/chunks/chunk-IWOVPQ6Y.js +0 -80
- package/dist/chunks/chunk-IWQC7G7G.js +0 -129
- package/dist/chunks/chunk-IWS7DQSK.js +0 -130
- package/dist/chunks/chunk-IZVCXMHQ.js +0 -103
- package/dist/chunks/chunk-J3GF4KOK.js +0 -36
- package/dist/chunks/chunk-J6HP7J5C.js +0 -147
- package/dist/chunks/chunk-JD2DXOW3.js +0 -160
- package/dist/chunks/chunk-JD6IPGZL.js +0 -60
- package/dist/chunks/chunk-JFFJDXHN.js +0 -48
- package/dist/chunks/chunk-JGI2FYR3.js +0 -87
- package/dist/chunks/chunk-JMMO725N.js +0 -137
- package/dist/chunks/chunk-JMVDHXB6.js +0 -100
- package/dist/chunks/chunk-JN2PBVZB.js +0 -54
- package/dist/chunks/chunk-JQLYDLQ3.js +0 -301
- package/dist/chunks/chunk-JRNBMQZG.js +0 -23
- package/dist/chunks/chunk-JSMAHMOV.js +0 -88
- package/dist/chunks/chunk-JTGY44YR.js +0 -97
- package/dist/chunks/chunk-JTXP2MBW.js +0 -39
- package/dist/chunks/chunk-JVCJARRI.js +0 -45
- package/dist/chunks/chunk-JWTKVK2V.js +0 -237
- package/dist/chunks/chunk-JY43CRRJ.js +0 -33
- package/dist/chunks/chunk-JYNTWZXB.js +0 -191
- package/dist/chunks/chunk-JZXATUDC.js +0 -169
- package/dist/chunks/chunk-K2NNE3B4.js +0 -146
- package/dist/chunks/chunk-K2NZOERC.js +0 -84
- package/dist/chunks/chunk-K4E7GE7O.js +0 -159
- package/dist/chunks/chunk-K7PGQIN6.js +0 -141
- package/dist/chunks/chunk-KA2XCC2O.js +0 -107
- package/dist/chunks/chunk-KA3C5TIW.js +0 -1307
- package/dist/chunks/chunk-KBHADD3D.js +0 -100
- package/dist/chunks/chunk-KBLBETHM.js +0 -30
- package/dist/chunks/chunk-KD6GLJR6.js +0 -156
- package/dist/chunks/chunk-KD7ORVMP.js +0 -226
- package/dist/chunks/chunk-KE7N4TN5.js +0 -194
- package/dist/chunks/chunk-KEH2XH7J.js +0 -139
- package/dist/chunks/chunk-KGBWBPDW.js +0 -185
- package/dist/chunks/chunk-KGXZH52R.js +0 -84
- package/dist/chunks/chunk-KJD3NTUE.js +0 -81
- package/dist/chunks/chunk-KJO2KSQW.js +0 -48
- package/dist/chunks/chunk-KLCE4OXR.js +0 -79
- package/dist/chunks/chunk-KMTXOPWI.js +0 -304
- package/dist/chunks/chunk-KNIEAN7D.js +0 -108
- package/dist/chunks/chunk-KOA5PZ6D.js +0 -165
- package/dist/chunks/chunk-KPOW74WO.js +0 -728
- package/dist/chunks/chunk-KPQWP6TZ.js +0 -131
- package/dist/chunks/chunk-KQAZSHOI.js +0 -220
- package/dist/chunks/chunk-KQPUYQY2.js +0 -512
- package/dist/chunks/chunk-KR3VSRCX.js +0 -157
- package/dist/chunks/chunk-KRXQLBLC.js +0 -221
- package/dist/chunks/chunk-KSR3DYDM.js +0 -179
- package/dist/chunks/chunk-KVS6QF5H.js +0 -39
- package/dist/chunks/chunk-KVYLDCSL.js +0 -161
- package/dist/chunks/chunk-KZKWTVDV.js +0 -156
- package/dist/chunks/chunk-KZPB53I4.js +0 -163
- package/dist/chunks/chunk-L2Q676X4.js +0 -240
- package/dist/chunks/chunk-L5W7LITT.js +0 -122
- package/dist/chunks/chunk-LAFKD4T5.js +0 -81
- package/dist/chunks/chunk-LBSPU6F5.js +0 -176
- package/dist/chunks/chunk-LEDOJVRA.js +0 -213
- package/dist/chunks/chunk-LEGYDN46.js +0 -123
- package/dist/chunks/chunk-LELC4V7D.js +0 -81
- package/dist/chunks/chunk-LHDNKVL5.js +0 -86
- package/dist/chunks/chunk-LHZ6CGZN.js +0 -138
- package/dist/chunks/chunk-LIPC3OPX.js +0 -135
- package/dist/chunks/chunk-LJ7U2U37.js +0 -161
- package/dist/chunks/chunk-LJKONMOY.js +0 -209
- package/dist/chunks/chunk-LKBL3QLU.js +0 -230
- package/dist/chunks/chunk-LLOQWBAE.js +0 -45
- package/dist/chunks/chunk-LMPRJDWH.js +0 -261
- package/dist/chunks/chunk-LODA7N22.js +0 -175
- package/dist/chunks/chunk-LOXBH74Y.js +0 -79
- package/dist/chunks/chunk-LPEYYDHA.js +0 -183
- package/dist/chunks/chunk-LQLI3MHM.js +0 -23
- package/dist/chunks/chunk-LU2PAB4U.js +0 -111
- package/dist/chunks/chunk-LUAXVHMG.js +0 -122
- package/dist/chunks/chunk-LURW43PC.js +0 -78
- package/dist/chunks/chunk-LVVJRWEC.js +0 -589
- package/dist/chunks/chunk-LWALQVKN.js +0 -33
- package/dist/chunks/chunk-LYUYF2CZ.js +0 -33
- package/dist/chunks/chunk-LYX2MSCP.js +0 -334
- package/dist/chunks/chunk-LZVUBD6T.js +0 -358
- package/dist/chunks/chunk-M2GXFIDR.js +0 -113
- package/dist/chunks/chunk-M4GKQPAD.js +0 -164
- package/dist/chunks/chunk-M64I5GG5.js +0 -104
- package/dist/chunks/chunk-M6NDVWQF.js +0 -293
- package/dist/chunks/chunk-M73W4ZQL.js +0 -218
- package/dist/chunks/chunk-MAIKVPLD.js +0 -53
- package/dist/chunks/chunk-MAVW7O5D.js +0 -150
- package/dist/chunks/chunk-MBXXM3KV.js +0 -97
- package/dist/chunks/chunk-MCMCCS4W.js +0 -204
- package/dist/chunks/chunk-MCMET72P.js +0 -118
- package/dist/chunks/chunk-MDD4PFHF.js +0 -125
- package/dist/chunks/chunk-MEBBTUXG.js +0 -107
- package/dist/chunks/chunk-MHMNPPPX.js +0 -133
- package/dist/chunks/chunk-MHVAWPLB.js +0 -104
- package/dist/chunks/chunk-MHWSZAJG.js +0 -198
- package/dist/chunks/chunk-MIIRGL4R.js +0 -126
- package/dist/chunks/chunk-MMRT5F3K.js +0 -164
- package/dist/chunks/chunk-MQ6V2UZ3.js +0 -49
- package/dist/chunks/chunk-MS5IBTDF.js +0 -344
- package/dist/chunks/chunk-MXZJVYTC.js +0 -242
- package/dist/chunks/chunk-MZHAVPZB.js +0 -123
- package/dist/chunks/chunk-MZTYDIIR.js +0 -192
- package/dist/chunks/chunk-N3LPIVR6.js +0 -272
- package/dist/chunks/chunk-N5EPZOB5.js +0 -23
- package/dist/chunks/chunk-N6JYJXIC.js +0 -110
- package/dist/chunks/chunk-NAYP5Y2B.js +0 -146
- package/dist/chunks/chunk-NCR2DSAW.js +0 -118
- package/dist/chunks/chunk-NELM4YKZ.js +0 -212
- package/dist/chunks/chunk-NHJQEYVA.js +0 -226
- package/dist/chunks/chunk-NL5GCMG6.js +0 -23
- package/dist/chunks/chunk-NMN4ULNZ.js +0 -251
- package/dist/chunks/chunk-NNGYKDTU.js +0 -84
- package/dist/chunks/chunk-NOYL3SF5.js +0 -44
- package/dist/chunks/chunk-NP4MMXWL.js +0 -53
- package/dist/chunks/chunk-NSHSFX3F.js +0 -298
- package/dist/chunks/chunk-NSRABPT6.js +0 -41
- package/dist/chunks/chunk-NTXT3O4J.js +0 -157
- package/dist/chunks/chunk-NUB5BCTZ.js +0 -184
- package/dist/chunks/chunk-NV4HHIJK.js +0 -80
- package/dist/chunks/chunk-NVKOYOT7.js +0 -77
- package/dist/chunks/chunk-NYKRONTO.js +0 -169
- package/dist/chunks/chunk-O32OFBRQ.js +0 -247
- package/dist/chunks/chunk-O3MOIWLZ.js +0 -109
- package/dist/chunks/chunk-O4JXZSCV.js +0 -109
- package/dist/chunks/chunk-O5S6RCNR.js +0 -147
- package/dist/chunks/chunk-O64QIUGC.js +0 -961
- package/dist/chunks/chunk-O6W5C6XY.js +0 -143
- package/dist/chunks/chunk-O736UVB7.js +0 -103
- package/dist/chunks/chunk-OCTF75G4.js +0 -83
- package/dist/chunks/chunk-OF2LIVZK.js +0 -150
- package/dist/chunks/chunk-OFMZOJP4.js +0 -178
- package/dist/chunks/chunk-OHHZSBBS.js +0 -1574
- package/dist/chunks/chunk-OIHM6WQL.js +0 -497
- package/dist/chunks/chunk-OINDNCAQ.js +0 -122
- package/dist/chunks/chunk-OIXYUUP5.js +0 -969
- package/dist/chunks/chunk-OKTJUKRI.js +0 -155
- package/dist/chunks/chunk-OLDHIFJY.js +0 -368
- package/dist/chunks/chunk-OMBTROFJ.js +0 -100
- package/dist/chunks/chunk-OMXHVOOA.js +0 -103
- package/dist/chunks/chunk-ONPV6QWK.js +0 -33
- package/dist/chunks/chunk-ONXYXSYQ.js +0 -559
- package/dist/chunks/chunk-ORFEGQ2J.js +0 -1834
- package/dist/chunks/chunk-ORU4ZQRY.js +0 -215
- package/dist/chunks/chunk-OTKL67ZX.js +0 -207
- package/dist/chunks/chunk-OVMLERIX.js +0 -118
- package/dist/chunks/chunk-OY5UOH5Z.js +0 -304
- package/dist/chunks/chunk-OYHYTKSI.js +0 -172
- package/dist/chunks/chunk-P2CRN534.js +0 -278
- package/dist/chunks/chunk-P2DJAKEY.js +0 -106
- package/dist/chunks/chunk-P2YZ5T34.js +0 -225
- package/dist/chunks/chunk-P3EA6V2K.js +0 -85
- package/dist/chunks/chunk-P3OGLKVJ.js +0 -33
- package/dist/chunks/chunk-P6B36XB7.js +0 -30
- package/dist/chunks/chunk-P7AD3YMN.js +0 -256
- package/dist/chunks/chunk-PBLBJDKR.js +0 -156
- package/dist/chunks/chunk-PBXLB3PH.js +0 -115
- package/dist/chunks/chunk-PDLD6UJH.js +0 -98
- package/dist/chunks/chunk-PFQNQVIE.js +0 -92
- package/dist/chunks/chunk-PFSRAPDL.js +0 -134
- package/dist/chunks/chunk-PGWIJOUE.js +0 -105
- package/dist/chunks/chunk-PHKZR7RG.js +0 -196
- package/dist/chunks/chunk-PHYCJF33.js +0 -100
- package/dist/chunks/chunk-PKRXZ7DA.js +0 -163
- package/dist/chunks/chunk-PLDTTKWC.js +0 -196
- package/dist/chunks/chunk-PMHWTWRA.js +0 -149
- package/dist/chunks/chunk-PMLVPCF3.js +0 -655
- package/dist/chunks/chunk-PNLRWU6Z.js +0 -42
- package/dist/chunks/chunk-POCNJOJJ.js +0 -169
- package/dist/chunks/chunk-PPWXKBL4.js +0 -204
- package/dist/chunks/chunk-PQXQISBE.js +0 -204
- package/dist/chunks/chunk-PV7452YW.js +0 -99
- package/dist/chunks/chunk-PWVPU5HY.js +0 -303
- package/dist/chunks/chunk-PY6VBRGD.js +0 -120
- package/dist/chunks/chunk-PYMQC264.js +0 -62
- package/dist/chunks/chunk-Q2I35XQ2.js +0 -60
- package/dist/chunks/chunk-Q3DL7R35.js +0 -160
- package/dist/chunks/chunk-Q4YO35AI.js +0 -187
- package/dist/chunks/chunk-Q557FTIH.js +0 -23
- package/dist/chunks/chunk-Q57R5BMX.js +0 -48
- package/dist/chunks/chunk-Q5SVJLKR.js +0 -100
- package/dist/chunks/chunk-Q7QFVO3X.js +0 -36
- package/dist/chunks/chunk-QDRY7WF4.js +0 -200
- package/dist/chunks/chunk-QED52AIX.js +0 -102
- package/dist/chunks/chunk-QF6CALRO.js +0 -382
- package/dist/chunks/chunk-QIS76ZNJ.js +0 -361
- package/dist/chunks/chunk-QLPTEOER.js +0 -105
- package/dist/chunks/chunk-QM4VNS7Y.js +0 -130
- package/dist/chunks/chunk-QMIRCEK7.js +0 -33
- package/dist/chunks/chunk-QNDMWEPA.js +0 -305
- package/dist/chunks/chunk-QP5M5VIG.js +0 -147
- package/dist/chunks/chunk-QQUOKLFU.js +0 -163
- package/dist/chunks/chunk-QRJUGG2U.js +0 -79
- package/dist/chunks/chunk-QU47H2UD.js +0 -68
- package/dist/chunks/chunk-QUDDGWMU.js +0 -282
- package/dist/chunks/chunk-QZENWZT3.js +0 -195
- package/dist/chunks/chunk-R2VZ3DHO.js +0 -170
- package/dist/chunks/chunk-R3BOETXR.js +0 -197
- package/dist/chunks/chunk-R3HLIQCO.js +0 -137
- package/dist/chunks/chunk-R4VFVORH.js +0 -307
- package/dist/chunks/chunk-R6IJD62C.js +0 -122
- package/dist/chunks/chunk-R7IIQNX4.js +0 -1403
- package/dist/chunks/chunk-RA4VYYSU.js +0 -93
- package/dist/chunks/chunk-RA5BS2IW.js +0 -152
- package/dist/chunks/chunk-RAIVDSOS.js +0 -198
- package/dist/chunks/chunk-RAPIX2KF.js +0 -23
- package/dist/chunks/chunk-RARZOUT4.js +0 -99
- package/dist/chunks/chunk-RB36M3HB.js +0 -415
- package/dist/chunks/chunk-RBOCSHB3.js +0 -142
- package/dist/chunks/chunk-RBXB45RB.js +0 -100
- package/dist/chunks/chunk-RCTH22WV.js +0 -23
- package/dist/chunks/chunk-RFWMVJ5B.js +0 -118
- package/dist/chunks/chunk-RH3CBWVE.js +0 -199
- package/dist/chunks/chunk-RHTGAFKD.js +0 -805
- package/dist/chunks/chunk-RIBYGK4Z.js +0 -76
- package/dist/chunks/chunk-RJAIACQZ.js +0 -70
- package/dist/chunks/chunk-RL5CEUPL.js +0 -266
- package/dist/chunks/chunk-RL6JNMJ2.js +0 -149
- package/dist/chunks/chunk-RLIQBPDF.js +0 -23
- package/dist/chunks/chunk-RLKXTA4X.js +0 -83
- package/dist/chunks/chunk-RLRI6WAH.js +0 -84
- package/dist/chunks/chunk-RMUB2YD7.js +0 -77
- package/dist/chunks/chunk-RNAVFS66.js +0 -23
- package/dist/chunks/chunk-RNHXXSPU.js +0 -45
- package/dist/chunks/chunk-RNXRNDND.js +0 -45
- package/dist/chunks/chunk-ROQYAHDT.js +0 -646
- package/dist/chunks/chunk-RU42BEZF.js +0 -119
- package/dist/chunks/chunk-RUBQBHHO.js +0 -72
- package/dist/chunks/chunk-RV7JJ357.js +0 -220
- package/dist/chunks/chunk-RVT2MATB.js +0 -1393
- package/dist/chunks/chunk-RVZQBLHI.js +0 -33
- package/dist/chunks/chunk-RW6W4HYU.js +0 -182
- package/dist/chunks/chunk-RYMBZCTD.js +0 -164
- package/dist/chunks/chunk-RZC4JLQZ.js +0 -124
- package/dist/chunks/chunk-S24TIGBB.js +0 -109
- package/dist/chunks/chunk-S4UWIXN6.js +0 -95
- package/dist/chunks/chunk-S52LY3UR.js +0 -136
- package/dist/chunks/chunk-S5AEYTNP.js +0 -93
- package/dist/chunks/chunk-S5S3N5XN.js +0 -23
- package/dist/chunks/chunk-S6PPXMO6.js +0 -42
- package/dist/chunks/chunk-S73KBRCM.js +0 -184
- package/dist/chunks/chunk-SAAE46DR.js +0 -307
- package/dist/chunks/chunk-SADIHGAO.js +0 -198
- package/dist/chunks/chunk-SB77S2YD.js +0 -182
- package/dist/chunks/chunk-SBZJSPF5.js +0 -77
- package/dist/chunks/chunk-SDNKO4IV.js +0 -144
- package/dist/chunks/chunk-SFEKANHA.js +0 -298
- package/dist/chunks/chunk-SFRNPBO6.js +0 -122
- package/dist/chunks/chunk-SGDHGVXK.js +0 -152
- package/dist/chunks/chunk-SKMB75CJ.js +0 -104
- package/dist/chunks/chunk-SMB4E2GQ.js +0 -261
- package/dist/chunks/chunk-SMO2MUYJ.js +0 -209
- package/dist/chunks/chunk-SPHWPTAV.js +0 -250
- package/dist/chunks/chunk-SQB5O7YE.js +0 -171
- package/dist/chunks/chunk-SQEK3ST7.js +0 -192
- package/dist/chunks/chunk-SR6X6GKD.js +0 -103
- package/dist/chunks/chunk-SS4YLL4I.js +0 -78
- package/dist/chunks/chunk-STUC6FRK.js +0 -224
- package/dist/chunks/chunk-SUVMMN6N.js +0 -86
- package/dist/chunks/chunk-SWIYXVEI.js +0 -79
- package/dist/chunks/chunk-SWPLD6BP.js +0 -173
- package/dist/chunks/chunk-SXR7XU4I.js +0 -96
- package/dist/chunks/chunk-T472GBPT.js +0 -174
- package/dist/chunks/chunk-T5FDQKSP.js +0 -115
- package/dist/chunks/chunk-T7L2KPO4.js +0 -83
- package/dist/chunks/chunk-TA3DWSMR.js +0 -73
- package/dist/chunks/chunk-TAJW3QID.js +0 -262
- package/dist/chunks/chunk-TCPP5RWC.js +0 -161
- package/dist/chunks/chunk-TFJRLYPC.js +0 -153
- package/dist/chunks/chunk-TGDJVJSI.js +0 -52
- package/dist/chunks/chunk-THHWIUUA.js +0 -399
- package/dist/chunks/chunk-TJEB6B5P.js +0 -249
- package/dist/chunks/chunk-TJXACX4L.js +0 -224
- package/dist/chunks/chunk-TMIRLRD5.js +0 -200
- package/dist/chunks/chunk-TMVZESYU.js +0 -111
- package/dist/chunks/chunk-TMZ726BR.js +0 -167
- package/dist/chunks/chunk-TQ7KIYHM.js +0 -149
- package/dist/chunks/chunk-TRRSY6W3.js +0 -145
- package/dist/chunks/chunk-TTNVHG7J.js +0 -151
- package/dist/chunks/chunk-TUBD4ATK.js +0 -86
- package/dist/chunks/chunk-TVO6OQO2.js +0 -242
- package/dist/chunks/chunk-TWAWCRWC.js +0 -139
- package/dist/chunks/chunk-TWXPGGXQ.js +0 -86
- package/dist/chunks/chunk-TYCPYQXK.js +0 -104
- package/dist/chunks/chunk-U2F7JQG7.js +0 -141
- package/dist/chunks/chunk-U33EC5HQ.js +0 -131
- package/dist/chunks/chunk-U3PVDOFC.js +0 -165
- package/dist/chunks/chunk-U4CMDICS.js +0 -150
- package/dist/chunks/chunk-U5YBGRIV.js +0 -74
- package/dist/chunks/chunk-U67MBU5A.js +0 -171
- package/dist/chunks/chunk-U7LC6ZA6.js +0 -103
- package/dist/chunks/chunk-U7VFBOMW.js +0 -188
- package/dist/chunks/chunk-UBXL5GZD.js +0 -192
- package/dist/chunks/chunk-UBZ2ONVZ.js +0 -145
- package/dist/chunks/chunk-UCXTAFZZ.js +0 -123
- package/dist/chunks/chunk-UD5R2EL4.js +0 -273
- package/dist/chunks/chunk-UDLLUAYU.js +0 -112
- package/dist/chunks/chunk-UDODVDRN.js +0 -685
- package/dist/chunks/chunk-UFINQ424.js +0 -23
- package/dist/chunks/chunk-UFX2GXEN.js +0 -91
- package/dist/chunks/chunk-UI5JV3L4.js +0 -70
- package/dist/chunks/chunk-UIQ7OCCB.js +0 -94
- package/dist/chunks/chunk-UPK4JITG.js +0 -60
- package/dist/chunks/chunk-USIUSDOQ.js +0 -141
- package/dist/chunks/chunk-UUIYNBZI.js +0 -292
- package/dist/chunks/chunk-UVUBIGZD.js +0 -93
- package/dist/chunks/chunk-UWHAZ5GX.js +0 -55
- package/dist/chunks/chunk-UWJXVK2J.js +0 -153
- package/dist/chunks/chunk-V2P2TGQT.js +0 -145
- package/dist/chunks/chunk-V2UXRPWO.js +0 -130
- package/dist/chunks/chunk-V4UPAMMQ.js +0 -331
- package/dist/chunks/chunk-V4ZZ7CS5.js +0 -391
- package/dist/chunks/chunk-V6ZVJORK.js +0 -304
- package/dist/chunks/chunk-V7KZI5TG.js +0 -44
- package/dist/chunks/chunk-VAJC5RBD.js +0 -41
- package/dist/chunks/chunk-VAWZT6Y5.js +0 -195
- package/dist/chunks/chunk-VEWXW5HQ.js +0 -848
- package/dist/chunks/chunk-VGJ7EEHV.js +0 -115
- package/dist/chunks/chunk-VI5TZGMO.js +0 -33
- package/dist/chunks/chunk-VILHHVVE.js +0 -128
- package/dist/chunks/chunk-VIXJRH33.js +0 -261
- package/dist/chunks/chunk-VJPXMFBY.js +0 -128
- package/dist/chunks/chunk-VM7VI5VA.js +0 -105
- package/dist/chunks/chunk-VMD5ODI7.js +0 -311
- package/dist/chunks/chunk-VMTJMB5Z.js +0 -97
- package/dist/chunks/chunk-VNYATM7I.js +0 -221
- package/dist/chunks/chunk-VO565ZH2.js +0 -23
- package/dist/chunks/chunk-VOHLU5A7.js +0 -49
- package/dist/chunks/chunk-VP7QPGZP.js +0 -260
- package/dist/chunks/chunk-VQEX5T4I.js +0 -33
- package/dist/chunks/chunk-VQKPFKTW.js +0 -23
- package/dist/chunks/chunk-VRBHPWCQ.js +0 -70
- package/dist/chunks/chunk-VT5CUNX3.js +0 -150
- package/dist/chunks/chunk-VWOTSH7H.js +0 -152
- package/dist/chunks/chunk-VWYW2DTK.js +0 -177
- package/dist/chunks/chunk-VZPXWDMX.js +0 -33
- package/dist/chunks/chunk-W26KGDLO.js +0 -146
- package/dist/chunks/chunk-W2BV5BMO.js +0 -360
- package/dist/chunks/chunk-W6EIDQ7S.js +0 -120
- package/dist/chunks/chunk-W6PNQ4E4.js +0 -45
- package/dist/chunks/chunk-W75QCBCV.js +0 -351
- package/dist/chunks/chunk-W7HWYLOF.js +0 -23
- package/dist/chunks/chunk-W7IAHYST.js +0 -362
- package/dist/chunks/chunk-WA7ZDNWY.js +0 -69
- package/dist/chunks/chunk-WAEU27TH.js +0 -98
- package/dist/chunks/chunk-WAVENQRO.js +0 -23
- package/dist/chunks/chunk-WAYWFXXB.js +0 -179
- package/dist/chunks/chunk-WBYGOPQL.js +0 -82
- package/dist/chunks/chunk-WCF4FV5X.js +0 -146
- package/dist/chunks/chunk-WCQ7LVLM.js +0 -108
- package/dist/chunks/chunk-WDE45UKB.js +0 -95
- package/dist/chunks/chunk-WEKUFG2H.js +0 -23
- package/dist/chunks/chunk-WEKUUO4T.js +0 -33
- package/dist/chunks/chunk-WF2TS6JG.js +0 -126
- package/dist/chunks/chunk-WFIOZCBS.js +0 -167
- package/dist/chunks/chunk-WK4L2YAM.js +0 -90
- package/dist/chunks/chunk-WKE7ZZDF.js +0 -45
- package/dist/chunks/chunk-WLK2ZNFT.js +0 -287
- package/dist/chunks/chunk-WM7DKIXE.js +0 -147
- package/dist/chunks/chunk-WNXEFXPH.js +0 -110
- package/dist/chunks/chunk-WO5PG2HF.js +0 -36
- package/dist/chunks/chunk-WOULEKKE.js +0 -122
- package/dist/chunks/chunk-WP57R54N.js +0 -166
- package/dist/chunks/chunk-WQW4OQ4V.js +0 -93
- package/dist/chunks/chunk-WR5EM3YA.js +0 -30
- package/dist/chunks/chunk-WR6U2V2U.js +0 -178
- package/dist/chunks/chunk-WREOHLQD.js +0 -45
- package/dist/chunks/chunk-WTBI33QZ.js +0 -2168
- package/dist/chunks/chunk-WVAXCXH2.js +0 -366
- package/dist/chunks/chunk-WVH54XSA.js +0 -33
- package/dist/chunks/chunk-WXAXA2U2.js +0 -166
- package/dist/chunks/chunk-WY7VKGAH.js +0 -176
- package/dist/chunks/chunk-WYXAOAKZ.js +0 -95
- package/dist/chunks/chunk-WZVFQAPV.js +0 -33
- package/dist/chunks/chunk-X525UKAJ.js +0 -158
- package/dist/chunks/chunk-X5XQWXW3.js +0 -78
- package/dist/chunks/chunk-X6W3OFT6.js +0 -45
- package/dist/chunks/chunk-X6WC6UB2.js +0 -173
- package/dist/chunks/chunk-X74FX5AY.js +0 -151
- package/dist/chunks/chunk-X77ESFUL.js +0 -77
- package/dist/chunks/chunk-X7HG63Z6.js +0 -136
- package/dist/chunks/chunk-XDBUIXXW.js +0 -36
- package/dist/chunks/chunk-XFRCONOK.js +0 -23
- package/dist/chunks/chunk-XG5TP5ZZ.js +0 -61
- package/dist/chunks/chunk-XL5M4VPW.js +0 -46
- package/dist/chunks/chunk-XNIGJLOQ.js +0 -82
- package/dist/chunks/chunk-XPVRE3M6.js +0 -66
- package/dist/chunks/chunk-XPZZA66T.js +0 -23
- package/dist/chunks/chunk-XQNELUDS.js +0 -33
- package/dist/chunks/chunk-XQQ722CJ.js +0 -63
- package/dist/chunks/chunk-XRHOGZRN.js +0 -120
- package/dist/chunks/chunk-XSKXJX6J.js +0 -135
- package/dist/chunks/chunk-XTPP7SAM.js +0 -23
- package/dist/chunks/chunk-XVMA44YI.js +0 -65
- package/dist/chunks/chunk-Y2E4VI2G.js +0 -89
- package/dist/chunks/chunk-Y2XCDNZE.js +0 -140
- package/dist/chunks/chunk-Y37RQPXI.js +0 -180
- package/dist/chunks/chunk-Y3MHUXVL.js +0 -51
- package/dist/chunks/chunk-Y4BFZLMI.js +0 -248
- package/dist/chunks/chunk-Y4PAQJJB.js +0 -129
- package/dist/chunks/chunk-Y5P752JT.js +0 -117
- package/dist/chunks/chunk-Y6COPGTK.js +0 -1309
- package/dist/chunks/chunk-Y7QLVSSD.js +0 -130
- package/dist/chunks/chunk-YA2ZW7CR.js +0 -117
- package/dist/chunks/chunk-YAAZDJBL.js +0 -163
- package/dist/chunks/chunk-YAGVOQB4.js +0 -50
- package/dist/chunks/chunk-YC5BROLP.js +0 -33
- package/dist/chunks/chunk-YC673WDD.js +0 -85
- package/dist/chunks/chunk-YFLHEBHI.js +0 -181
- package/dist/chunks/chunk-YGDJHREC.js +0 -124
- package/dist/chunks/chunk-YGMBSJT3.js +0 -260
- package/dist/chunks/chunk-YIJVTT6M.js +0 -23
- package/dist/chunks/chunk-YIKINIAU.js +0 -160
- package/dist/chunks/chunk-YIOQBG7Y.js +0 -102
- package/dist/chunks/chunk-YKJ2W33C.js +0 -305
- package/dist/chunks/chunk-YL57SFRK.js +0 -222
- package/dist/chunks/chunk-YOBNMW2P.js +0 -92
- package/dist/chunks/chunk-YPAFREZN.js +0 -366
- package/dist/chunks/chunk-YPVCYDTZ.js +0 -105
- package/dist/chunks/chunk-YQ2QDNDJ.js +0 -96
- package/dist/chunks/chunk-YQV75JLA.js +0 -266
- package/dist/chunks/chunk-YSLZPCOH.js +0 -119
- package/dist/chunks/chunk-YXNGBYXP.js +0 -140
- package/dist/chunks/chunk-YYCD4UKR.js +0 -158
- package/dist/chunks/chunk-YYHIVGOM.js +0 -79
- package/dist/chunks/chunk-YYLL2WD2.js +0 -94
- package/dist/chunks/chunk-YZPEJD6G.js +0 -71
- package/dist/chunks/chunk-Z2QKY7J6.js +0 -210
- package/dist/chunks/chunk-Z3DBBAID.js +0 -182
- package/dist/chunks/chunk-Z4RAW5RQ.js +0 -105
- package/dist/chunks/chunk-Z5FF7IQS.js +0 -215
- package/dist/chunks/chunk-Z5MXYHEB.js +0 -165
- package/dist/chunks/chunk-Z7XHECOH.js +0 -178
- package/dist/chunks/chunk-ZAFQXZAR.js +0 -121
- package/dist/chunks/chunk-ZBASK5BH.js +0 -138
- package/dist/chunks/chunk-ZCDSZPCP.js +0 -155
- package/dist/chunks/chunk-ZGYD6KT5.js +0 -255
- package/dist/chunks/chunk-ZIPCAQIG.js +0 -23
- package/dist/chunks/chunk-ZJ7B7YKU.js +0 -98
- package/dist/chunks/chunk-ZJGYMU6A.js +0 -53
- package/dist/chunks/chunk-ZL7ERYHT.js +0 -101
- package/dist/chunks/chunk-ZLL7FMNB.js +0 -97
- package/dist/chunks/chunk-ZLNJCXUE.js +0 -327
- package/dist/chunks/chunk-ZMMQNZD6.js +0 -55
- package/dist/chunks/chunk-ZOHSJLGA.js +0 -206
- package/dist/chunks/chunk-ZOSNGXVU.js +0 -193
- package/dist/chunks/chunk-ZQOVQIKH.js +0 -652
- package/dist/chunks/chunk-ZT5L3K4V.js +0 -109
- package/dist/chunks/chunk-ZTFG6JL3.js +0 -112
- package/dist/chunks/chunk-ZULIAVTH.js +0 -114
- package/dist/chunks/chunk-ZVBPCTQU.js +0 -202
- package/dist/chunks/chunk-ZXR7CVPG.js +0 -201
- package/dist/chunks/chunk-ZZNPN4FE.js +0 -74
- package/dist/chunks/chunk-ZZWU4UKF.js +0 -93
- package/dist/chunks/client-5JG76IRY.js +0 -31
- package/dist/chunks/client-J2CEFNNJ.js +0 -168
- package/dist/chunks/client-USADLBHL.js +0 -47
- package/dist/chunks/client-actions-BDMDUTKV.js +0 -170
- package/dist/chunks/components-R2D3UTW2.js +0 -78
- package/dist/chunks/dangerous-CSMKGMH5.js +0 -124
- package/dist/chunks/delete-current-file-IPFR4LGR.js +0 -163
- package/dist/chunks/editor-seams-V6QN3NRV.js +0 -183
- package/dist/chunks/editor-store-LFC7Q6FA.js +0 -148
- package/dist/chunks/export-ZWF4Q7SZ.js +0 -67
- package/dist/chunks/export-watermark-4B3VT33V.js +0 -157
- package/dist/chunks/eyedropper-NQV6WLIO.js +0 -355
- package/dist/chunks/generate-media-667HC3DS.js +0 -255
- package/dist/chunks/host-MI5OA5ON.js +0 -184
- package/dist/chunks/host-WFZOO3JZ.js +0 -246
- package/dist/chunks/integrations-TKAQTJ4W.js +0 -125
- package/dist/chunks/libraries-PVZQHBBL.js +0 -311
- package/dist/chunks/live-E3E2EQSX.js +0 -322
- package/dist/chunks/lottie-EFY3WPC6.js +0 -91
- package/dist/chunks/media-tool-X7NIB5IC.js +0 -237
- package/dist/chunks/new-file-MGITD74I.js +0 -140
- package/dist/chunks/next-commerce-IFNKONWU.js +0 -74
- package/dist/chunks/pdf-HAC4JSHV.js +0 -1218
- package/dist/chunks/player-check-H7XGXXWB.js +0 -119
- package/dist/chunks/plugin-3YMDASGH.js +0 -131
- package/dist/chunks/plugin-import-NJ2ZP5RO.js +0 -692
- package/dist/chunks/presence-WTXABWRA.js +0 -137
- package/dist/chunks/project-AMUIERR4.js +0 -1601
- package/dist/chunks/publish-site-QROHMC5W.js +0 -167
- package/dist/chunks/publish-store-XTLNNMHO.js +0 -100
- package/dist/chunks/raster-actions-LFNRYKTH.js +0 -233
- package/dist/chunks/reference-images-DB2IDEWE.js +0 -62
- package/dist/chunks/registry-4M4N3IQT.js +0 -49
- package/dist/chunks/resolvers-RPGPN4SR.js +0 -150
- package/dist/chunks/runner-DEH434GQ.js +0 -3546
- package/dist/chunks/store-VBOC3NDV.js +0 -235
- package/dist/chunks/storefront-ROZDVGKJ.js +0 -336
- package/dist/chunks/storefront-prepare-4GVMVMLY.js +0 -33
- package/dist/chunks/svg-export-CNQLK5RK.js +0 -84
- package/dist/chunks/sync-4O2XASRY.js +0 -162
- package/dist/chunks/tabs-KO6KUDKI.js +0 -320
- package/dist/chunks/team-O2EEUEUW.js +0 -47
- package/dist/chunks/team-client-RTB6EDGA.js +0 -158
- package/dist/chunks/tools-2HIPIKFT.js +0 -37
- package/dist/chunks/tree-Q4SOEAM2.js +0 -83
- package/dist/chunks/ui-commands-L2H7GUOZ.js +0 -191
- package/dist/chunks/versions-A2OXUUBN.js +0 -320
- package/dist/chunks/web-PFNWTIRX.js +0 -186
|
@@ -0,0 +1,3546 @@
|
|
|
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-SB2WMWUU.js";
|
|
29
|
+
import "./chunk-V3I4KSGP.js";
|
|
30
|
+
import {
|
|
31
|
+
registerBuiltinTools
|
|
32
|
+
} from "./chunk-QPXUJZ6H.js";
|
|
33
|
+
import {
|
|
34
|
+
registerDangerousCommands
|
|
35
|
+
} from "./chunk-7YJQNULZ.js";
|
|
36
|
+
import "./chunk-4MXDGF4R.js";
|
|
37
|
+
import {
|
|
38
|
+
editBlockReason,
|
|
39
|
+
editorToolContext
|
|
40
|
+
} from "./chunk-UJMGZRP6.js";
|
|
41
|
+
import "./chunk-VT4G2LR3.js";
|
|
42
|
+
import "./chunk-EFDY2CAU.js";
|
|
43
|
+
import "./chunk-4T44SXRJ.js";
|
|
44
|
+
import "./chunk-UD5NRN4U.js";
|
|
45
|
+
import "./chunk-NFM6Y2II.js";
|
|
46
|
+
import "./chunk-VJWGIX35.js";
|
|
47
|
+
import "./chunk-ZCHSEL4O.js";
|
|
48
|
+
import {
|
|
49
|
+
buildDesignContext,
|
|
50
|
+
joinWithin
|
|
51
|
+
} from "./chunk-SY3YROB5.js";
|
|
52
|
+
import "./chunk-HYBRBOHZ.js";
|
|
53
|
+
import "./chunk-LGVVLVLF.js";
|
|
54
|
+
import "./chunk-WMOX7OES.js";
|
|
55
|
+
import "./chunk-YMZ7ZPBV.js";
|
|
56
|
+
import "./chunk-K7KZ7JR5.js";
|
|
57
|
+
import {
|
|
58
|
+
HYPERY_PAYMENT_SOURCE_HEADER,
|
|
59
|
+
paymentSourceHeaders
|
|
60
|
+
} from "./chunk-AMIFNIPG.js";
|
|
61
|
+
import {
|
|
62
|
+
allTools,
|
|
63
|
+
getTool,
|
|
64
|
+
runTool,
|
|
65
|
+
toolSpecs
|
|
66
|
+
} from "./chunk-NESWJC5O.js";
|
|
67
|
+
import {
|
|
68
|
+
external_exports
|
|
69
|
+
} from "./chunk-Z5OEPBFF.js";
|
|
70
|
+
import {
|
|
71
|
+
provideAgentCapability
|
|
72
|
+
} from "./chunk-EE6A5TVL.js";
|
|
73
|
+
import {
|
|
74
|
+
defineCommand
|
|
75
|
+
} from "./chunk-FLOXTSFB.js";
|
|
76
|
+
import "./chunk-XPTCDD7W.js";
|
|
77
|
+
import "./chunk-QETWMTHI.js";
|
|
78
|
+
import "./chunk-YKCEJMW7.js";
|
|
79
|
+
import "./chunk-EZEIVLC6.js";
|
|
80
|
+
import "./chunk-VRLULK3N.js";
|
|
81
|
+
import "./chunk-BTKMDAAV.js";
|
|
82
|
+
import "./chunk-343E2AXU.js";
|
|
83
|
+
import "./chunk-HBBCFHNF.js";
|
|
84
|
+
import "./chunk-44UEFX4Z.js";
|
|
85
|
+
import "./chunk-UJHNBGIO.js";
|
|
86
|
+
import "./chunk-NV2KXYJ6.js";
|
|
87
|
+
import "./chunk-5IXLJCSO.js";
|
|
88
|
+
import {
|
|
89
|
+
aiAvailability,
|
|
90
|
+
effectiveChatModel,
|
|
91
|
+
useAiStore
|
|
92
|
+
} from "./chunk-I3TLMSA5.js";
|
|
93
|
+
import "./chunk-7AGYCJ67.js";
|
|
94
|
+
import "./chunk-CJKLC6HP.js";
|
|
95
|
+
import "./chunk-OZZ3JLQP.js";
|
|
96
|
+
import "./chunk-ZKSRHKPM.js";
|
|
97
|
+
import "./chunk-A2NMZSLJ.js";
|
|
98
|
+
import "./chunk-DB7CHK3N.js";
|
|
99
|
+
import "./chunk-MQTCBQFK.js";
|
|
100
|
+
import "./chunk-BOHNTUCB.js";
|
|
101
|
+
import "./chunk-HNGLOJHT.js";
|
|
102
|
+
import "./chunk-I4YWQRCU.js";
|
|
103
|
+
import {
|
|
104
|
+
activeHyperyTeamId
|
|
105
|
+
} from "./chunk-YAYLX46E.js";
|
|
106
|
+
import "./chunk-ECQZMDXA.js";
|
|
107
|
+
import "./chunk-HBWDTR2D.js";
|
|
108
|
+
import "./chunk-E2MJREAG.js";
|
|
109
|
+
import "./chunk-4MIBB47F.js";
|
|
110
|
+
import "./chunk-XP7RQ2JB.js";
|
|
111
|
+
import "./chunk-TM4VR73D.js";
|
|
112
|
+
import "./chunk-S2Y6XWMM.js";
|
|
113
|
+
import {
|
|
114
|
+
useEditorStore
|
|
115
|
+
} from "./chunk-ANDBBN46.js";
|
|
116
|
+
import "./chunk-DOUOALWM.js";
|
|
117
|
+
import "./chunk-AWBZ7OAC.js";
|
|
118
|
+
import "./chunk-O44R3J7R.js";
|
|
119
|
+
import "./chunk-AHKEV5K5.js";
|
|
120
|
+
import "./chunk-TCKWHC2T.js";
|
|
121
|
+
import "./chunk-EEHWGME6.js";
|
|
122
|
+
import "./chunk-DJPA67HX.js";
|
|
123
|
+
import "./chunk-TZKMYQIF.js";
|
|
124
|
+
import "./chunk-K7PP5B6S.js";
|
|
125
|
+
import "./chunk-3M62OUTK.js";
|
|
126
|
+
import "./chunk-C5T3O7EZ.js";
|
|
127
|
+
import "./chunk-C7DPHQPS.js";
|
|
128
|
+
import "./chunk-S2DQHYU5.js";
|
|
129
|
+
import "./chunk-MXELDDJ6.js";
|
|
130
|
+
import "./chunk-W2BUFR5A.js";
|
|
131
|
+
import "./chunk-XPPJ32X2.js";
|
|
132
|
+
import "./chunk-ERAYSG3J.js";
|
|
133
|
+
import "./chunk-FWDXVU53.js";
|
|
134
|
+
import "./chunk-O5E55OHY.js";
|
|
135
|
+
import {
|
|
136
|
+
create
|
|
137
|
+
} from "./chunk-TUV2TNCJ.js";
|
|
138
|
+
import "./chunk-ZWTDSAPC.js";
|
|
139
|
+
import "./chunk-FA5ALFMY.js";
|
|
140
|
+
import "./chunk-6IBV7CUB.js";
|
|
141
|
+
import "./chunk-236QPZBZ.js";
|
|
142
|
+
import "./chunk-VLXQMEMB.js";
|
|
143
|
+
import {
|
|
144
|
+
HYPERY_GATEWAY_URL,
|
|
145
|
+
accessToken
|
|
146
|
+
} from "./chunk-ZXMJ5RMP.js";
|
|
147
|
+
import {
|
|
148
|
+
ToolError,
|
|
149
|
+
registerCommand
|
|
150
|
+
} from "./chunk-ZNJPRHVZ.js";
|
|
151
|
+
import "./chunk-PEXL5UTV.js";
|
|
152
|
+
import "./chunk-2R2DQG4N.js";
|
|
153
|
+
import "./chunk-VI7BFNHR.js";
|
|
154
|
+
import "./chunk-7KVJX66N.js";
|
|
155
|
+
import "./chunk-U7V2X5LV.js";
|
|
156
|
+
import "./chunk-32EVMNM5.js";
|
|
157
|
+
import "./chunk-FZYQFW5T.js";
|
|
158
|
+
import "./chunk-CMJYKODG.js";
|
|
159
|
+
import "./chunk-BJEUPCOR.js";
|
|
160
|
+
import "./chunk-HKD5NDRS.js";
|
|
161
|
+
import "./chunk-RKKGBNQO.js";
|
|
162
|
+
import "./chunk-GKCGYCD5.js";
|
|
163
|
+
import "./chunk-37VLXIVF.js";
|
|
164
|
+
import "./chunk-IZEICGWI.js";
|
|
165
|
+
import "./chunk-Y5DRBM5F.js";
|
|
166
|
+
import "./chunk-EOSBX3FZ.js";
|
|
167
|
+
import "./chunk-WYYVX52S.js";
|
|
168
|
+
import "./chunk-VJW672NQ.js";
|
|
169
|
+
import "./chunk-NQY5XZX5.js";
|
|
170
|
+
import "./chunk-ZRLSCCJO.js";
|
|
171
|
+
import "./chunk-MJKZDUX4.js";
|
|
172
|
+
import "./chunk-D3GI6HKP.js";
|
|
173
|
+
import "./chunk-RWHIKQ2L.js";
|
|
174
|
+
import "./chunk-L7WGJ7QG.js";
|
|
175
|
+
import "./chunk-KAZHOJUN.js";
|
|
176
|
+
import "./chunk-OJ2MLEIA.js";
|
|
177
|
+
import "./chunk-5AHFTM4R.js";
|
|
178
|
+
import "./chunk-XGC2MJQ3.js";
|
|
179
|
+
import "./chunk-T57KDVBZ.js";
|
|
180
|
+
import "./chunk-HLPK64GC.js";
|
|
181
|
+
import "./chunk-W4FGFFXJ.js";
|
|
182
|
+
import "./chunk-3FIMYIY3.js";
|
|
183
|
+
import "./chunk-LGNJXK44.js";
|
|
184
|
+
import "./chunk-4MUZ5SYF.js";
|
|
185
|
+
import "./chunk-4MR5JYE7.js";
|
|
186
|
+
import "./chunk-B5UXEWRA.js";
|
|
187
|
+
import "./chunk-URHNWZHU.js";
|
|
188
|
+
import "./chunk-RXMFX47E.js";
|
|
189
|
+
import "./chunk-UNLBBM3F.js";
|
|
190
|
+
import "./chunk-FM6YGPXM.js";
|
|
191
|
+
import "./chunk-T6F7SEJP.js";
|
|
192
|
+
import "./chunk-D3OJDBJY.js";
|
|
193
|
+
import "./chunk-QUOR4SUK.js";
|
|
194
|
+
import "./chunk-ILFAANSR.js";
|
|
195
|
+
import "./chunk-PNWI5K2Y.js";
|
|
196
|
+
import "./chunk-AVWA3JAF.js";
|
|
197
|
+
import "./chunk-IOROC34C.js";
|
|
198
|
+
import "./chunk-EGIAI3WB.js";
|
|
199
|
+
import "./chunk-WBDXYOUD.js";
|
|
200
|
+
import "./chunk-GX75ZDZV.js";
|
|
201
|
+
import "./chunk-MAY74YBA.js";
|
|
202
|
+
import "./chunk-I2HS3G6L.js";
|
|
203
|
+
import "./chunk-LJ7MRJ3J.js";
|
|
204
|
+
import "./chunk-7YE3VGUX.js";
|
|
205
|
+
import "./chunk-2YAPOWSJ.js";
|
|
206
|
+
import "./chunk-ULZ3TRKS.js";
|
|
207
|
+
import "./chunk-SG2HVQFH.js";
|
|
208
|
+
import "./chunk-J65G3EI7.js";
|
|
209
|
+
import "./chunk-CK4GXI74.js";
|
|
210
|
+
import "./chunk-2M67NB55.js";
|
|
211
|
+
import "./chunk-QSMUW5EB.js";
|
|
212
|
+
import "./chunk-TUUV4LPG.js";
|
|
213
|
+
import "./chunk-PYLLKI27.js";
|
|
214
|
+
import "./chunk-RTGD6W7X.js";
|
|
215
|
+
import "./chunk-DJNLUKOU.js";
|
|
216
|
+
import "./chunk-4S6PGBFE.js";
|
|
217
|
+
import "./chunk-XMFUQRVR.js";
|
|
218
|
+
import "./chunk-ZM2DPCNT.js";
|
|
219
|
+
import "./chunk-XLDMTJQY.js";
|
|
220
|
+
import "./chunk-TI7QDIRR.js";
|
|
221
|
+
import "./chunk-W267QXPV.js";
|
|
222
|
+
import "./chunk-RE7SHU2D.js";
|
|
223
|
+
import "./chunk-MPIYDOEF.js";
|
|
224
|
+
import "./chunk-AJCJBDGI.js";
|
|
225
|
+
import "./chunk-ZDL3FDAT.js";
|
|
226
|
+
import "./chunk-X6UBPW5N.js";
|
|
227
|
+
import "./chunk-6KJT76UR.js";
|
|
228
|
+
import {
|
|
229
|
+
AI_LIMITS,
|
|
230
|
+
init_limits,
|
|
231
|
+
str
|
|
232
|
+
} from "./chunk-NZKUQ5FE.js";
|
|
233
|
+
import "./chunk-EZXBEAVI.js";
|
|
234
|
+
import "./chunk-EDXW4XPI.js";
|
|
235
|
+
import "./chunk-2XB63O3T.js";
|
|
236
|
+
import "./chunk-E36SCACU.js";
|
|
237
|
+
import "./chunk-7BWDTEXO.js";
|
|
238
|
+
import "./chunk-VW2FNPYI.js";
|
|
239
|
+
import "./chunk-I62FQ5QU.js";
|
|
240
|
+
import "./chunk-P4XICREO.js";
|
|
241
|
+
import "./chunk-ZPBARJPC.js";
|
|
242
|
+
import "./chunk-PFM3YVVM.js";
|
|
243
|
+
import "./chunk-FEKRQPV3.js";
|
|
244
|
+
import "./chunk-PIQWSU7I.js";
|
|
245
|
+
import "./chunk-LPSIJ2QE.js";
|
|
246
|
+
import {
|
|
247
|
+
init_define_POPCRAFT_COMPONENT_IDS
|
|
248
|
+
} from "./chunk-MFWXJURX.js";
|
|
249
|
+
import "./chunk-LJSVREWM.js";
|
|
250
|
+
|
|
251
|
+
// lib/agent/runner.ts
|
|
252
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
253
|
+
|
|
254
|
+
// lib/agent/gateway.ts
|
|
255
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
256
|
+
|
|
257
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
258
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
259
|
+
|
|
260
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/hypery-model.js
|
|
261
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
262
|
+
var delay = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
|
|
263
|
+
var utf8Complete = ((b) => {
|
|
264
|
+
if (!Array.isArray(b)) return null;
|
|
265
|
+
const n = b.length;
|
|
266
|
+
for (let i = n - 1; i >= Math.max(0, n - 3); i--) {
|
|
267
|
+
const c = b[i];
|
|
268
|
+
if ((c & 192) === 128) continue;
|
|
269
|
+
const len = c <= 127 ? 1 : c >= 194 && c <= 223 ? 2 : c >= 224 && c <= 239 ? 3 : c >= 240 && c <= 244 ? 4 : 1;
|
|
270
|
+
return n - i < len ? i : n;
|
|
271
|
+
}
|
|
272
|
+
return n;
|
|
273
|
+
});
|
|
274
|
+
var utf8Decode = ((b) => typeof b === "string" ? b : Array.isArray(b) ? new TextDecoder().decode(Uint8Array.from(b)) : null);
|
|
275
|
+
var MAX_REQUEST_BYTES = 44e5;
|
|
276
|
+
var DEFAULT_IDLE_TIMEOUT_MS = 18e4;
|
|
277
|
+
var HYPERY_TEAM_HEADER = "x-hypery-active-organization-id";
|
|
278
|
+
var HYPERY_PAYMENT_SOURCE_HEADER2 = "x-hypery-payment-source";
|
|
279
|
+
function agentModelError(message, code, status) {
|
|
280
|
+
{
|
|
281
|
+
return { name: "AgentModelError", message, code: code ?? "ai_upstream", status: ((__v) => __v == null ? "null" : typeof __v)(status) === "number" ? status : 502 };
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
async function resolve(v) {
|
|
285
|
+
{
|
|
286
|
+
if (((__v) => __v == null ? "null" : typeof __v)(v) === "function") {
|
|
287
|
+
return await (v() ?? null);
|
|
288
|
+
}
|
|
289
|
+
return v ?? null;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
function errorCodeFor(status, payload) {
|
|
293
|
+
{
|
|
294
|
+
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") {
|
|
295
|
+
return payload.error.code;
|
|
296
|
+
}
|
|
297
|
+
if (status === 401) {
|
|
298
|
+
return "ai_reauth";
|
|
299
|
+
}
|
|
300
|
+
if (status === 402) {
|
|
301
|
+
return "ai_credits";
|
|
302
|
+
}
|
|
303
|
+
if (status === 403) {
|
|
304
|
+
return "ai_scope";
|
|
305
|
+
}
|
|
306
|
+
if (status === 429) {
|
|
307
|
+
return "ai_rate_limited";
|
|
308
|
+
}
|
|
309
|
+
return "ai_upstream";
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
function streamErrorMessage(payload, fallback) {
|
|
313
|
+
{
|
|
314
|
+
let otherwise = fallback ?? "The AI request failed.";
|
|
315
|
+
if (payload == null || ((__v) => __v == null ? "null" : typeof __v)(payload) !== "object") {
|
|
316
|
+
return otherwise;
|
|
317
|
+
}
|
|
318
|
+
let err = payload.error ?? null;
|
|
319
|
+
if (((__v) => __v == null ? "null" : typeof __v)(err) === "string" && (err.trim() ?? null) !== "") {
|
|
320
|
+
return err;
|
|
321
|
+
}
|
|
322
|
+
let message = err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" ? err.message ?? null : null;
|
|
323
|
+
if (message == null) {
|
|
324
|
+
message = payload.message ?? null;
|
|
325
|
+
}
|
|
326
|
+
return ((__v) => __v == null ? "null" : typeof __v)(message) === "string" && (message.trim() ?? null) !== "" ? message : otherwise;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function createStreamAccumulator() {
|
|
330
|
+
{
|
|
331
|
+
let buffer = "";
|
|
332
|
+
let text = "";
|
|
333
|
+
let reasoning = "";
|
|
334
|
+
let sawDone = false;
|
|
335
|
+
let calls = /* @__PURE__ */ new Map() ?? null;
|
|
336
|
+
let order = [];
|
|
337
|
+
return { push: (part) => {
|
|
338
|
+
{
|
|
339
|
+
buffer = buffer + part;
|
|
340
|
+
let out = [];
|
|
341
|
+
let nl = buffer.indexOf("\n") ?? null;
|
|
342
|
+
while (nl >= 0) {
|
|
343
|
+
let line = (buffer.slice(0, nl) ?? null).trim() ?? null;
|
|
344
|
+
buffer = buffer.slice(nl + 1) ?? null;
|
|
345
|
+
nl = buffer.indexOf("\n") ?? null;
|
|
346
|
+
if (!(line.startsWith("data:") ?? null)) {
|
|
347
|
+
continue;
|
|
348
|
+
}
|
|
349
|
+
let data = (line.slice(5) ?? null).trim() ?? null;
|
|
350
|
+
if (data === "") {
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
if (data === "[DONE]") {
|
|
354
|
+
sawDone = true;
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
let chunk = null;
|
|
358
|
+
try {
|
|
359
|
+
{
|
|
360
|
+
chunk = JSON.parse(data) ?? null;
|
|
361
|
+
}
|
|
362
|
+
} catch (e) {
|
|
363
|
+
{
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
if (chunk == null || ((__v) => __v == null ? "null" : typeof __v)(chunk) !== "object") {
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
if (chunk.error) {
|
|
371
|
+
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";
|
|
372
|
+
throw agentModelError(streamErrorMessage(chunk, null) ?? null, code, 502) ?? null;
|
|
373
|
+
}
|
|
374
|
+
let choice = (Array.isArray(chunk.choices) ?? null) && chunk.choices.length > 0 ? chunk.choices[0] ?? null : null;
|
|
375
|
+
let delta = choice != null ? choice.delta ?? null : null;
|
|
376
|
+
if (delta == null) {
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
if (((__v) => __v == null ? "null" : typeof __v)(delta.content) === "string" && delta.content !== "") {
|
|
380
|
+
text = text + delta.content;
|
|
381
|
+
out.push({ textDelta: delta.content }) ?? null;
|
|
382
|
+
}
|
|
383
|
+
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 : "";
|
|
384
|
+
if (r !== "") {
|
|
385
|
+
reasoning = reasoning + r;
|
|
386
|
+
out.push({ reasoningDelta: r }) ?? null;
|
|
387
|
+
}
|
|
388
|
+
for (const tc of Array.isArray(delta.tool_calls) ?? null ? delta.tool_calls : []) {
|
|
389
|
+
let i = ((__v) => __v == null ? "null" : typeof __v)(tc.index) === "number" ? tc.index : order.length > 0 ? order[order.length - 1] ?? null : 0;
|
|
390
|
+
if (!(calls.has(i) ?? null)) {
|
|
391
|
+
calls.set(i, { id: null, name: "", arguments: "" }) ?? null;
|
|
392
|
+
order.push(i) ?? null;
|
|
393
|
+
}
|
|
394
|
+
let call = calls.get(i) ?? null;
|
|
395
|
+
if (((__v) => __v == null ? "null" : typeof __v)(tc.id) === "string" && tc.id !== "") {
|
|
396
|
+
call.id = tc.id;
|
|
397
|
+
}
|
|
398
|
+
let f = tc["function"] ?? null ?? null;
|
|
399
|
+
if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.name) === "string") {
|
|
400
|
+
call.name = call.name + f.name;
|
|
401
|
+
}
|
|
402
|
+
if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.arguments) === "string" && f.arguments !== "") {
|
|
403
|
+
call.arguments = call.arguments + f.arguments;
|
|
404
|
+
out.push({ toolProgress: { index: i, name: call.name, bytes: call.arguments.length, arguments: call.arguments } }) ?? null;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
return out;
|
|
409
|
+
}
|
|
410
|
+
}, result: () => {
|
|
411
|
+
{
|
|
412
|
+
let toolCalls = [];
|
|
413
|
+
let n = 0;
|
|
414
|
+
for (const i of order) {
|
|
415
|
+
let c = calls.get(i) ?? null;
|
|
416
|
+
if (c.name !== "") {
|
|
417
|
+
toolCalls.push({ id: c.id ?? "call_" + (String(n) ?? null), name: c.name, arguments: c.arguments }) ?? null;
|
|
418
|
+
}
|
|
419
|
+
n = n + 1;
|
|
420
|
+
}
|
|
421
|
+
return { text, reasoning, sawDone, toolCalls };
|
|
422
|
+
}
|
|
423
|
+
} };
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
function appendBytes(pending, chunk) {
|
|
427
|
+
{
|
|
428
|
+
let out = pending.slice() ?? null;
|
|
429
|
+
let i = 0;
|
|
430
|
+
while (i < chunk.length) {
|
|
431
|
+
out.push(chunk[i] ?? null) ?? null;
|
|
432
|
+
i = i + 1;
|
|
433
|
+
}
|
|
434
|
+
return out;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
function callHook(hooks, name, value) {
|
|
438
|
+
{
|
|
439
|
+
if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
let h = hooks[name] ?? null;
|
|
443
|
+
if (((__v) => __v == null ? "null" : typeof __v)(h) === "function") {
|
|
444
|
+
h(value) ?? null;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
function createHyperyModel(opts) {
|
|
449
|
+
{
|
|
450
|
+
let idleMs = ((__v) => __v == null ? "null" : typeof __v)(opts.idleTimeoutMs) === "number" ? opts.idleTimeoutMs : DEFAULT_IDLE_TIMEOUT_MS;
|
|
451
|
+
let limit = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRequestBytes) === "number" ? opts.maxRequestBytes : MAX_REQUEST_BYTES;
|
|
452
|
+
let base = ((__v) => __v == null ? "null" : typeof __v)(opts.gatewayUrl) === "string" && opts.gatewayUrl !== "" ? opts.gatewayUrl : "https://hypery.ai";
|
|
453
|
+
if (base.endsWith("/") ?? null) {
|
|
454
|
+
base = base.slice(0, base.length - 1) ?? null;
|
|
455
|
+
}
|
|
456
|
+
return async (messages, tools, hooks, signal, req = null) => {
|
|
457
|
+
{
|
|
458
|
+
let token = await (resolve(opts.token) ?? null);
|
|
459
|
+
if (((__v) => __v == null ? "null" : typeof __v)(token) !== "string" || token === "") {
|
|
460
|
+
throw agentModelError("Sign in to Hypery to use the agent.", "ai_reauth", 401) ?? null;
|
|
461
|
+
}
|
|
462
|
+
let hasReq = req != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object";
|
|
463
|
+
let model = hasReq && ((__v) => __v == null ? "null" : typeof __v)(req.model) === "string" && req.model !== "" ? req.model : await (resolve(opts.model) ?? null);
|
|
464
|
+
let effort = hasReq && ((__v) => __v == null ? "null" : typeof __v)(req.effort) === "string" ? req.effort : await (resolve(opts.effort) ?? null);
|
|
465
|
+
let team = await (resolve(opts.team) ?? null);
|
|
466
|
+
let paymentSource = await (resolve(opts.paymentSource) ?? null);
|
|
467
|
+
let hasTools = (Array.isArray(tools) ?? null) && tools.length > 0;
|
|
468
|
+
let request = { model, messages, stream: true, max_tokens: ((__v) => __v == null ? "null" : typeof __v)(opts.maxTokens) === "number" ? opts.maxTokens : hasTools ? 16384 : 4096 };
|
|
469
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.temperature) === "number") {
|
|
470
|
+
request.temperature = opts.temperature;
|
|
471
|
+
}
|
|
472
|
+
if (((__v) => __v == null ? "null" : typeof __v)(effort) === "string" && effort !== "") {
|
|
473
|
+
request.reasoning = { effort };
|
|
474
|
+
}
|
|
475
|
+
if (hasTools) {
|
|
476
|
+
request.tools = tools;
|
|
477
|
+
let choice = hasReq ? req.toolChoice ?? null : null;
|
|
478
|
+
request.tool_choice = choice != null ? choice : "auto";
|
|
479
|
+
}
|
|
480
|
+
let body = JSON.stringify(request) ?? null;
|
|
481
|
+
if (body.length > limit) {
|
|
482
|
+
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;
|
|
483
|
+
}
|
|
484
|
+
let headers = { Authorization: "Bearer " + token, "Content-Type": "application/json", Accept: "text/event-stream" };
|
|
485
|
+
if (((__v) => __v == null ? "null" : typeof __v)(team) === "string" && team !== "") {
|
|
486
|
+
headers[HYPERY_TEAM_HEADER] = team;
|
|
487
|
+
}
|
|
488
|
+
if (((__v) => __v == null ? "null" : typeof __v)(paymentSource) === "string" && paymentSource !== "") {
|
|
489
|
+
headers[HYPERY_PAYMENT_SOURCE_HEADER2] = paymentSource;
|
|
490
|
+
}
|
|
491
|
+
let init = { method: "POST", headers, body };
|
|
492
|
+
if (signal != null && ((__v) => __v == null ? "null" : typeof __v)(signal.addEventListener) === "function") {
|
|
493
|
+
init.signal = signal;
|
|
494
|
+
}
|
|
495
|
+
let res = null;
|
|
496
|
+
try {
|
|
497
|
+
{
|
|
498
|
+
res = await (opts.fetch(base + "/api/v1/chat/completions", init) ?? null);
|
|
499
|
+
}
|
|
500
|
+
} catch (err) {
|
|
501
|
+
{
|
|
502
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && err.name === "AbortError") {
|
|
503
|
+
throw err;
|
|
504
|
+
}
|
|
505
|
+
throw agentModelError("Could not reach Hypery. Check your connection.", "network", 0) ?? null;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
if (res.ok !== true || res.body == null) {
|
|
509
|
+
let text = "";
|
|
510
|
+
try {
|
|
511
|
+
{
|
|
512
|
+
text = await (res.text() ?? null);
|
|
513
|
+
}
|
|
514
|
+
} catch (e) {
|
|
515
|
+
{
|
|
516
|
+
text = "";
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
let payload = text;
|
|
520
|
+
try {
|
|
521
|
+
{
|
|
522
|
+
payload = JSON.parse(text) ?? null;
|
|
523
|
+
}
|
|
524
|
+
} catch (e) {
|
|
525
|
+
{
|
|
526
|
+
payload = text;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
throw agentModelError(streamErrorMessage(payload, "The AI request failed (" + (String(res.status) ?? null) + ").") ?? null, errorCodeFor(res.status, payload) ?? null, res.status) ?? null;
|
|
530
|
+
}
|
|
531
|
+
let acc = createStreamAccumulator() ?? null;
|
|
532
|
+
let reader = res.body.getReader() ?? null;
|
|
533
|
+
let pending = [];
|
|
534
|
+
let stopReading = () => {
|
|
535
|
+
{
|
|
536
|
+
if (((__v) => __v == null ? "null" : typeof __v)(reader.cancel) === "function") {
|
|
537
|
+
try {
|
|
538
|
+
{
|
|
539
|
+
reader.cancel() ?? null;
|
|
540
|
+
}
|
|
541
|
+
} catch (e) {
|
|
542
|
+
{
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
};
|
|
548
|
+
while (true) {
|
|
549
|
+
if (signal != null && signal.aborted === true) {
|
|
550
|
+
stopReading() ?? null;
|
|
551
|
+
throw { name: "AbortError", message: "The request was stopped." };
|
|
552
|
+
}
|
|
553
|
+
let next = await (Promise.race([reader.read() ?? null, delay(idleMs) ?? null]) ?? null);
|
|
554
|
+
if (next == null) {
|
|
555
|
+
stopReading() ?? null;
|
|
556
|
+
throw agentModelError("The model stopped responding.", "ai_timeout", 504) ?? null;
|
|
557
|
+
}
|
|
558
|
+
if (next.done === true) {
|
|
559
|
+
break;
|
|
560
|
+
}
|
|
561
|
+
if (next.value == null) {
|
|
562
|
+
continue;
|
|
563
|
+
}
|
|
564
|
+
let bytes = appendBytes(pending, next.value) ?? null;
|
|
565
|
+
let whole = utf8Complete(bytes) ?? null;
|
|
566
|
+
pending = bytes.slice(whole) ?? null;
|
|
567
|
+
let events = [];
|
|
568
|
+
try {
|
|
569
|
+
{
|
|
570
|
+
events = acc.push(utf8Decode(bytes.slice(0, whole) ?? null) ?? null) ?? null;
|
|
571
|
+
}
|
|
572
|
+
} catch (err) {
|
|
573
|
+
{
|
|
574
|
+
stopReading() ?? null;
|
|
575
|
+
throw err;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
for (const e of events) {
|
|
579
|
+
if (((__v) => __v == null ? "null" : typeof __v)(e.textDelta) === "string") {
|
|
580
|
+
callHook(hooks, "onTextDelta", e.textDelta) ?? null;
|
|
581
|
+
}
|
|
582
|
+
if (((__v) => __v == null ? "null" : typeof __v)(e.reasoningDelta) === "string") {
|
|
583
|
+
callHook(hooks, "onReasoningDelta", e.reasoningDelta) ?? null;
|
|
584
|
+
}
|
|
585
|
+
if (e.toolProgress != null) {
|
|
586
|
+
callHook(hooks, "onToolProgress", e.toolProgress) ?? null;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
if (pending.length > 0) {
|
|
591
|
+
acc.push(utf8Decode(pending) ?? null) ?? null;
|
|
592
|
+
}
|
|
593
|
+
acc.push("\n") ?? null;
|
|
594
|
+
let r = acc.result() ?? null;
|
|
595
|
+
if (!r.sawDone && r.text === "" && r.toolCalls.length === 0) {
|
|
596
|
+
throw agentModelError("The response was cut off before it started. Try again.", "ai_upstream", 502) ?? null;
|
|
597
|
+
}
|
|
598
|
+
return { text: r.text, reasoning: r.reasoning, toolCalls: r.toolCalls };
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
605
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
606
|
+
|
|
607
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
608
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
609
|
+
|
|
610
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/advisor.js
|
|
611
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
612
|
+
|
|
613
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/roles.js
|
|
614
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
615
|
+
var MODEL_ROLES = ["lead", "swarm", "advisor", "router"];
|
|
616
|
+
function isModelRole(v) {
|
|
617
|
+
{
|
|
618
|
+
return ((__v) => __v == null ? "null" : typeof __v)(v) === "string" && (MODEL_ROLES.includes(v) ?? null);
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
function roleOfProfileModel(model) {
|
|
622
|
+
{
|
|
623
|
+
if ((model ?? null) == null || model === "" || model === "inherit") {
|
|
624
|
+
return "lead";
|
|
625
|
+
}
|
|
626
|
+
if (model === "fast") {
|
|
627
|
+
return "swarm";
|
|
628
|
+
}
|
|
629
|
+
if (isModelRole(model) ?? null) {
|
|
630
|
+
return model;
|
|
631
|
+
}
|
|
632
|
+
return null;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
function resolveCatalogModel(wanted, fallback, catalog) {
|
|
636
|
+
{
|
|
637
|
+
if (!(Array.isArray(catalog) ?? null) || catalog.length === 0) {
|
|
638
|
+
return wanted;
|
|
639
|
+
}
|
|
640
|
+
let ids = new Set(catalog.map((m) => {
|
|
641
|
+
{
|
|
642
|
+
return ((__v) => __v == null ? "null" : typeof __v)(m) === "string" ? m : m != null && ((__v) => __v == null ? "null" : typeof __v)(m) === "object" ? m.id : "";
|
|
643
|
+
}
|
|
644
|
+
}) ?? null) ?? null;
|
|
645
|
+
if (ids.has(wanted) ?? null) {
|
|
646
|
+
return wanted;
|
|
647
|
+
}
|
|
648
|
+
for (const f of fallback ?? []) {
|
|
649
|
+
if (ids.has(f) ?? null) {
|
|
650
|
+
return f;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return wanted;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
function resolveRole(role, roles, catalog) {
|
|
657
|
+
{
|
|
658
|
+
let spec = roles != null && ((__v) => __v == null ? "null" : typeof __v)(roles) === "object" ? roles[role] ?? null ?? null : null;
|
|
659
|
+
if (spec == null || ((__v) => __v == null ? "null" : typeof __v)(spec.model) !== "string" || spec.model === "") {
|
|
660
|
+
return null;
|
|
661
|
+
}
|
|
662
|
+
return { model: resolveCatalogModel(spec.model, spec.fallback ?? null, catalog) ?? null, effort: spec.effort ?? null, fallback: spec.fallback ?? null };
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
function mergeRoles(roles, overrides) {
|
|
666
|
+
{
|
|
667
|
+
let base = roles != null && ((__v) => __v == null ? "null" : typeof __v)(roles) === "object" ? roles : {};
|
|
668
|
+
if ((overrides ?? null) == null || ((__v) => __v == null ? "null" : typeof __v)(overrides) !== "object") {
|
|
669
|
+
return base;
|
|
670
|
+
}
|
|
671
|
+
let out = { ...base };
|
|
672
|
+
for (const r of MODEL_ROLES) {
|
|
673
|
+
let o = overrides[r] ?? null ?? null;
|
|
674
|
+
if (o == null) {
|
|
675
|
+
continue;
|
|
676
|
+
}
|
|
677
|
+
out[r] = ((__v) => __v == null ? "null" : typeof __v)(o) === "string" ? { ...base[r] ?? null ?? {}, model: o } : { ...base[r] ?? null ?? {}, ...o };
|
|
678
|
+
}
|
|
679
|
+
return out;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
function roleModel(callModel, spec) {
|
|
683
|
+
{
|
|
684
|
+
return async (messages, tools, hooks = null, signal = null, req = null) => {
|
|
685
|
+
{
|
|
686
|
+
let r = (req ?? null) != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object" ? req : {};
|
|
687
|
+
let merged = { ...r, model: r.model ?? spec.model, effort: r.effort ?? spec.effort ?? null };
|
|
688
|
+
return await (callModel(messages, tools, hooks, signal, merged) ?? null);
|
|
689
|
+
}
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/advisor.js
|
|
695
|
+
var REPEATED_ERROR_COUNT = 2;
|
|
696
|
+
var ADVISOR_PROMPT = ["You are the advisor to a coding agent (the lead). You read its whole session and give it short, specific advice. You never write code or call tools yourself.", 'Answer with JSON only: {"verdict": "ok" | "revise", "advice": ["..."]}. At most 4 advice items, each one sentence, concrete (files, commands, the likely cause).', 'Use "ok" with no advice when the lead is on track \u2014 do not add advice for its own sake.'].join("\n") ?? null;
|
|
697
|
+
var TRIGGER_ASK = { plan: "The lead is about to plan. Point out anything it should know before choosing an approach.", done: "The lead is about to say it is done. Check the work against the request: anything missing, wrong or unverified?", error: "The lead hit the same error again. Diagnose the likely cause and the next thing to try.", ask: "The lead asked for your advice." };
|
|
698
|
+
function contentText(c) {
|
|
699
|
+
{
|
|
700
|
+
if (((__v) => __v == null ? "null" : typeof __v)(c) === "string") {
|
|
701
|
+
return c;
|
|
702
|
+
}
|
|
703
|
+
if (Array.isArray(c) ?? null) {
|
|
704
|
+
return (c.map((p) => {
|
|
705
|
+
{
|
|
706
|
+
return ((__v) => __v == null ? "null" : typeof __v)(p.text) === "string" ? p.text : "[image]";
|
|
707
|
+
}
|
|
708
|
+
}) ?? null).join(" ") ?? null;
|
|
709
|
+
}
|
|
710
|
+
return "";
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
function renderTranscript(messages, maxChars) {
|
|
714
|
+
{
|
|
715
|
+
let lines = [];
|
|
716
|
+
for (const m of messages) {
|
|
717
|
+
let text = contentText(m.content) ?? null;
|
|
718
|
+
if (Array.isArray(m.tool_calls) ?? null) {
|
|
719
|
+
for (const c of m.tool_calls) {
|
|
720
|
+
text = text + "\n\u2192 " + (c["function"] ?? null).name + " " + (c["function"] ?? null).arguments;
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
lines.push("[" + m.role + (((__v) => __v == null ? "null" : typeof __v)(m.name) === "string" ? " " + m.name : "") + "] " + text) ?? null;
|
|
724
|
+
}
|
|
725
|
+
let all = lines.join("\n\n") ?? null;
|
|
726
|
+
return all.length > maxChars ? "\u2026" + (all.slice(all.length - maxChars) ?? null) : all;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
function parseAdvice(text) {
|
|
730
|
+
{
|
|
731
|
+
let t = text.trim() ?? null;
|
|
732
|
+
let start = t.indexOf("{") ?? null;
|
|
733
|
+
let end = t.lastIndexOf("}") ?? null;
|
|
734
|
+
if (start >= 0 && end > start) {
|
|
735
|
+
try {
|
|
736
|
+
{
|
|
737
|
+
let j = JSON.parse(t.slice(start, end + 1) ?? null) ?? null;
|
|
738
|
+
let advice = Array.isArray(j.advice) ?? null ? j.advice.filter((a) => {
|
|
739
|
+
{
|
|
740
|
+
return ((__v) => __v == null ? "null" : typeof __v)(a) === "string" && (a.trim() ?? null) !== "";
|
|
741
|
+
}
|
|
742
|
+
}) ?? null : [];
|
|
743
|
+
return { verdict: j.verdict === "ok" ? "ok" : "revise", advice };
|
|
744
|
+
}
|
|
745
|
+
} catch (e) {
|
|
746
|
+
{
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
return { verdict: t === "" ? "ok" : "revise", advice: t === "" ? [] : [t] };
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
function createAdvisor(opts) {
|
|
754
|
+
{
|
|
755
|
+
let call = roleModel(opts.callModel, opts.spec) ?? null;
|
|
756
|
+
let maxCalls = ((__v) => __v == null ? "null" : typeof __v)(opts.maxCalls) === "number" ? opts.maxCalls : 8;
|
|
757
|
+
let maxChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxChars) === "number" ? opts.maxChars : 6e5;
|
|
758
|
+
let triggers = opts.triggers ?? {};
|
|
759
|
+
let calls = 0;
|
|
760
|
+
let tokensRead = 0;
|
|
761
|
+
let emit = (e) => {
|
|
762
|
+
{
|
|
763
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.onEvent) === "function") {
|
|
764
|
+
opts.onEvent(e) ?? null;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
return { stats: () => {
|
|
769
|
+
{
|
|
770
|
+
return { calls, tokensRead };
|
|
771
|
+
}
|
|
772
|
+
}, advise: async (req) => {
|
|
773
|
+
{
|
|
774
|
+
if ((triggers[req.trigger] ?? null) === false || calls >= maxCalls) {
|
|
775
|
+
return null;
|
|
776
|
+
}
|
|
777
|
+
let transcript = renderTranscript(req.messages, maxChars) ?? null;
|
|
778
|
+
calls = calls + 1;
|
|
779
|
+
tokensRead = tokensRead + (Math.ceil(transcript.length / 4) ?? null);
|
|
780
|
+
emit({ type: "advisor:call", trigger: req.trigger, model: opts.spec.model, calls, tokensRead }) ?? null;
|
|
781
|
+
let ask = (TRIGGER_ASK[req.trigger] ?? null) + (((__v) => __v == null ? "null" : typeof __v)(req.detail) === "string" && req.detail !== "" ? "\n\n" + req.detail : "");
|
|
782
|
+
let turn = null;
|
|
783
|
+
try {
|
|
784
|
+
{
|
|
785
|
+
turn = await (call([{ role: "system", content: ((__v) => __v == null ? "null" : typeof __v)(opts.guidance) === "string" && (opts.guidance.trim() ?? null) !== "" ? ADVISOR_PROMPT + "\n\nGuidance for this kind of task:\n" + (opts.guidance.trim() ?? null) : ADVISOR_PROMPT }, { role: "user", content: "The session so far:\n\n" + transcript + "\n\n---\n" + ask }], [], {}, null, null) ?? null);
|
|
786
|
+
}
|
|
787
|
+
} catch (err) {
|
|
788
|
+
{
|
|
789
|
+
return null;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
let parsed = parseAdvice(turn.text ?? "") ?? null;
|
|
793
|
+
emit({ type: "advisor:advice", trigger: req.trigger, model: opts.spec.model, calls, tokensRead, advice: parsed.advice, verdict: parsed.verdict }) ?? null;
|
|
794
|
+
if (parsed.verdict === "ok" || parsed.advice.length === 0) {
|
|
795
|
+
return null;
|
|
796
|
+
}
|
|
797
|
+
return "Advisor (" + req.trigger + "):\n" + ((parsed.advice.map((a) => {
|
|
798
|
+
{
|
|
799
|
+
return "\xBB " + a;
|
|
800
|
+
}
|
|
801
|
+
}) ?? null).join("\n") ?? null);
|
|
802
|
+
}
|
|
803
|
+
} };
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
function errorSignature(run) {
|
|
807
|
+
{
|
|
808
|
+
let s = (run.summary ?? "").toLowerCase() ?? null;
|
|
809
|
+
let out = "";
|
|
810
|
+
for (const ch of s) {
|
|
811
|
+
out = out + (ch >= "0" && ch <= "9" ? "#" : ch);
|
|
812
|
+
}
|
|
813
|
+
return run.name + ":" + (out.slice(0, 200) ?? null);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/context.js
|
|
818
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
819
|
+
var RENDER_TURN_PREFIX = "Result of ";
|
|
820
|
+
var KEEP_IMAGE_TURNS = 2;
|
|
821
|
+
function sizeOf(messages) {
|
|
822
|
+
{
|
|
823
|
+
return (JSON.stringify(messages) ?? null).length;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
function isRenderTurn(m) {
|
|
827
|
+
{
|
|
828
|
+
if (m.role !== "user" || !(Array.isArray(m.content) ?? null) || m.content.length === 0) {
|
|
829
|
+
return false;
|
|
830
|
+
}
|
|
831
|
+
let first = m.content[0] ?? null;
|
|
832
|
+
return first.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(first.text) === "string" && (first.text.startsWith(RENDER_TURN_PREFIX) ?? null);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
function countImages(parts) {
|
|
836
|
+
{
|
|
837
|
+
return (parts.filter((p) => {
|
|
838
|
+
{
|
|
839
|
+
return p.type === "image_url";
|
|
840
|
+
}
|
|
841
|
+
}) ?? null).length;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
function textOf(parts) {
|
|
845
|
+
{
|
|
846
|
+
return ((parts.filter((p) => {
|
|
847
|
+
{
|
|
848
|
+
return p.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(p.text) === "string" && p.text !== "";
|
|
849
|
+
}
|
|
850
|
+
}) ?? null).map((p) => {
|
|
851
|
+
{
|
|
852
|
+
return p.text;
|
|
853
|
+
}
|
|
854
|
+
}) ?? null).join(" ") ?? null;
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
function imagesLabel(n) {
|
|
858
|
+
{
|
|
859
|
+
return n === 1 ? "image" : (String(n) ?? null) + " images";
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
function pruneOldImages(messages, keep) {
|
|
863
|
+
{
|
|
864
|
+
let limit = ((__v) => __v == null ? "null" : typeof __v)(keep) === "number" ? keep : KEEP_IMAGE_TURNS;
|
|
865
|
+
let seen = 0;
|
|
866
|
+
let i = messages.length - 1;
|
|
867
|
+
while (i >= 0) {
|
|
868
|
+
let m = messages[i] ?? null;
|
|
869
|
+
if ((isRenderTurn(m) ?? null) && (countImages(m.content) ?? null) > 0) {
|
|
870
|
+
seen = seen + 1;
|
|
871
|
+
if (seen > limit) {
|
|
872
|
+
let note = (textOf(m.content) ?? null) + " [" + (imagesLabel(countImages(m.content) ?? null) ?? null) + " omitted: superseded by a later view.]";
|
|
873
|
+
messages[i] = { ...m, content: note.trim() ?? null };
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
i = i - 1;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
function fitImagesToBudget(messages, budget) {
|
|
881
|
+
{
|
|
882
|
+
if ((sizeOf(messages) ?? null) <= budget) {
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
let i = 0;
|
|
886
|
+
while (i < messages.length && (sizeOf(messages) ?? null) > budget) {
|
|
887
|
+
let m = messages[i] ?? null;
|
|
888
|
+
if (isRenderTurn(m) ?? null) {
|
|
889
|
+
let parts = m.content.slice() ?? null;
|
|
890
|
+
let dropped = 0;
|
|
891
|
+
let j = parts.length - 1;
|
|
892
|
+
while (j >= 0 && (sizeOf(messages) ?? null) > budget) {
|
|
893
|
+
if ((parts[j] ?? null).type === "image_url") {
|
|
894
|
+
parts.splice(j, 1) ?? null;
|
|
895
|
+
dropped = dropped + 1;
|
|
896
|
+
messages[i] = { ...m, content: parts.slice() ?? null };
|
|
897
|
+
}
|
|
898
|
+
j = j - 1;
|
|
899
|
+
}
|
|
900
|
+
if (dropped > 0) {
|
|
901
|
+
let label = dropped === 1 ? "1 image" : (String(dropped) ?? null) + " images";
|
|
902
|
+
let note = (textOf(parts) ?? null) + " [" + label + " omitted to keep the request under the size limit.]";
|
|
903
|
+
messages[i] = { ...m, content: note.trim() ?? null };
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
i = i + 1;
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
function safeTailStart(messages, want) {
|
|
911
|
+
{
|
|
912
|
+
let i = Math.max(1, messages.length - want) ?? null;
|
|
913
|
+
while (i < messages.length && (messages[i] ?? null).role === "tool") {
|
|
914
|
+
i = i + 1;
|
|
915
|
+
}
|
|
916
|
+
return i;
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
async function compactTranscript(messages, opts) {
|
|
920
|
+
{
|
|
921
|
+
if ((sizeOf(messages) ?? null) <= opts.maxChars) {
|
|
922
|
+
return false;
|
|
923
|
+
}
|
|
924
|
+
let head = messages.length > 0 && (messages[0] ?? null).role === "system" ? 1 : 0;
|
|
925
|
+
let firstUser = -1;
|
|
926
|
+
let k = head;
|
|
927
|
+
while (k < messages.length && firstUser < 0) {
|
|
928
|
+
if ((messages[k] ?? null).role === "user") {
|
|
929
|
+
firstUser = k;
|
|
930
|
+
}
|
|
931
|
+
k = k + 1;
|
|
932
|
+
}
|
|
933
|
+
let keepFrom = firstUser >= 0 ? firstUser + 1 : head;
|
|
934
|
+
let tail = safeTailStart(messages, ((__v) => __v == null ? "null" : typeof __v)(opts.keepRecent) === "number" ? opts.keepRecent : 12) ?? null;
|
|
935
|
+
if (tail <= keepFrom) {
|
|
936
|
+
return false;
|
|
937
|
+
}
|
|
938
|
+
let dropped = messages.slice(keepFrom, tail) ?? null;
|
|
939
|
+
let summary = "";
|
|
940
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.summarize) === "function") {
|
|
941
|
+
try {
|
|
942
|
+
{
|
|
943
|
+
summary = await (opts.summarize(dropped) ?? null);
|
|
944
|
+
}
|
|
945
|
+
} catch (e) {
|
|
946
|
+
{
|
|
947
|
+
summary = "";
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
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.]";
|
|
952
|
+
messages.splice(keepFrom, dropped.length, { role: "user", content }) ?? null;
|
|
953
|
+
return true;
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
958
|
+
var DEFAULT_MAX_ROUNDS = 40;
|
|
959
|
+
var DEFAULT_MAX_PARALLEL = 4;
|
|
960
|
+
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.";
|
|
961
|
+
var RENDER_TURN_PREFIX2 = "Result of ";
|
|
962
|
+
var RECOVERABLE_WORDS = ["timeout", "timed out", "stalled", "network", "fetch failed", "econnreset", "socket", "stream"];
|
|
963
|
+
function batchCalls(calls, isParallel, max) {
|
|
964
|
+
{
|
|
965
|
+
let batches = [];
|
|
966
|
+
for (const call of calls) {
|
|
967
|
+
let last = batches.length > 0 ? batches[batches.length - 1] ?? null : null;
|
|
968
|
+
let parallel = isParallel(call.name) ?? null;
|
|
969
|
+
if (parallel && last != null && last.length < max && (isParallel((last[0] ?? null).name) ?? null)) {
|
|
970
|
+
last.push(call) ?? null;
|
|
971
|
+
} else {
|
|
972
|
+
batches.push([call]) ?? null;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
return batches;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
function truncateResult(text, max) {
|
|
979
|
+
{
|
|
980
|
+
if (text.length <= max) {
|
|
981
|
+
return text;
|
|
982
|
+
}
|
|
983
|
+
return (text.slice(0, max) ?? null) + "\n\u2026[truncated " + (String(text.length - max) ?? null) + " characters]";
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
function defaultIsRecoverable(err) {
|
|
987
|
+
{
|
|
988
|
+
if (err == null || ((__v) => __v == null ? "null" : typeof __v)(err) !== "object") {
|
|
989
|
+
return false;
|
|
990
|
+
}
|
|
991
|
+
if (((__v) => __v == null ? "null" : typeof __v)(err.status) === "number") {
|
|
992
|
+
return err.status >= 500 || err.status === 408 || err.status === 429;
|
|
993
|
+
}
|
|
994
|
+
let text = ((String(err.name ?? "") ?? null) + " " + (String(err.code ?? "") ?? null) + " " + (String(err.message ?? "") ?? null)).toLowerCase() ?? null;
|
|
995
|
+
return RECOVERABLE_WORDS.some((w) => {
|
|
996
|
+
{
|
|
997
|
+
return text.includes(w) ?? null;
|
|
998
|
+
}
|
|
999
|
+
}) ?? null;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
function errorMessage(err) {
|
|
1003
|
+
{
|
|
1004
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1005
|
+
return err.message;
|
|
1006
|
+
}
|
|
1007
|
+
return String(err) ?? null;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
function repairTranscript(messages) {
|
|
1011
|
+
{
|
|
1012
|
+
let i = 0;
|
|
1013
|
+
while (i < messages.length) {
|
|
1014
|
+
let m = messages[i] ?? null;
|
|
1015
|
+
if (m.role === "assistant" && (Array.isArray(m.tool_calls) ?? null) && m.tool_calls.length > 0) {
|
|
1016
|
+
let j = i + 1;
|
|
1017
|
+
let answered = /* @__PURE__ */ new Set() ?? null;
|
|
1018
|
+
while (j < messages.length && (messages[j] ?? null).role === "tool") {
|
|
1019
|
+
answered.add((messages[j] ?? null).tool_call_id ?? "") ?? null;
|
|
1020
|
+
j = j + 1;
|
|
1021
|
+
}
|
|
1022
|
+
let missing = m.tool_calls.filter((c) => {
|
|
1023
|
+
{
|
|
1024
|
+
return !(answered.has(c.id) ?? null);
|
|
1025
|
+
}
|
|
1026
|
+
}) ?? null;
|
|
1027
|
+
if (missing.length > 0) {
|
|
1028
|
+
let fillers = missing.map((c) => {
|
|
1029
|
+
{
|
|
1030
|
+
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 };
|
|
1031
|
+
}
|
|
1032
|
+
}) ?? null;
|
|
1033
|
+
messages.splice(j, 0, ...fillers) ?? null;
|
|
1034
|
+
i = j + missing.length - 1;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
i = i + 1;
|
|
1038
|
+
}
|
|
1039
|
+
return messages;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
function hook(hooks, name) {
|
|
1043
|
+
{
|
|
1044
|
+
if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
|
|
1045
|
+
return null;
|
|
1046
|
+
}
|
|
1047
|
+
let h = hooks[name] ?? null;
|
|
1048
|
+
return ((__v) => __v == null ? "null" : typeof __v)(h) === "function" ? h : null;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
async function runAgentLoop(opts) {
|
|
1052
|
+
{
|
|
1053
|
+
let maxRounds = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRounds) === "number" ? opts.maxRounds : DEFAULT_MAX_ROUNDS;
|
|
1054
|
+
let maxResultChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxResultChars) === "number" ? opts.maxResultChars : 8e3;
|
|
1055
|
+
let maxParallel = ((__v) => __v == null ? "null" : typeof __v)(opts.maxParallel) === "number" ? opts.maxParallel : DEFAULT_MAX_PARALLEL;
|
|
1056
|
+
let hooks = opts.hooks ?? null;
|
|
1057
|
+
let specs = opts.tools.map((t) => {
|
|
1058
|
+
{
|
|
1059
|
+
return t.spec;
|
|
1060
|
+
}
|
|
1061
|
+
}) ?? null;
|
|
1062
|
+
let parallelNames = new Set((opts.tools.filter((t) => {
|
|
1063
|
+
{
|
|
1064
|
+
return t.readOnly === true;
|
|
1065
|
+
}
|
|
1066
|
+
}) ?? null).map((t) => {
|
|
1067
|
+
{
|
|
1068
|
+
return (t.spec["function"] ?? null).name;
|
|
1069
|
+
}
|
|
1070
|
+
}) ?? null) ?? null;
|
|
1071
|
+
let actingNames = new Set((opts.tools.filter((t) => {
|
|
1072
|
+
{
|
|
1073
|
+
return ((__v) => __v == null ? "null" : typeof __v)(t.acts) === "boolean" ? t.acts : t.readOnly !== true;
|
|
1074
|
+
}
|
|
1075
|
+
}) ?? null).map((t) => {
|
|
1076
|
+
{
|
|
1077
|
+
return (t.spec["function"] ?? null).name;
|
|
1078
|
+
}
|
|
1079
|
+
}) ?? null) ?? null;
|
|
1080
|
+
let require2 = null;
|
|
1081
|
+
if (opts.requireAction === true) {
|
|
1082
|
+
require2 = {};
|
|
1083
|
+
}
|
|
1084
|
+
if (opts.requireAction != null && ((__v) => __v == null ? "null" : typeof __v)(opts.requireAction) === "object") {
|
|
1085
|
+
require2 = opts.requireAction;
|
|
1086
|
+
}
|
|
1087
|
+
let resume = opts.resumeState ?? {};
|
|
1088
|
+
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;
|
|
1089
|
+
let signal = opts.signal ?? null;
|
|
1090
|
+
let isStopped = () => {
|
|
1091
|
+
{
|
|
1092
|
+
if (signal != null && signal.aborted === true) {
|
|
1093
|
+
return true;
|
|
1094
|
+
}
|
|
1095
|
+
return ((__v) => __v == null ? "null" : typeof __v)(opts.stopped) === "function" && (opts.stopped() ?? null) === true;
|
|
1096
|
+
}
|
|
1097
|
+
};
|
|
1098
|
+
let messages = repairTranscript(opts.messages.slice() ?? null) ?? null;
|
|
1099
|
+
let text = "";
|
|
1100
|
+
let acted = resume.acted === true;
|
|
1101
|
+
let retries = ((__v) => __v == null ? "null" : typeof __v)(opts.modelRetries) === "number" ? opts.modelRetries : 2;
|
|
1102
|
+
let recoverable = ((__v) => __v == null ? "null" : typeof __v)(opts.isRecoverable) === "function" ? opts.isRecoverable : defaultIsRecoverable;
|
|
1103
|
+
let ctx = opts.context ?? {};
|
|
1104
|
+
let maxRequestChars = ((__v) => __v == null ? "null" : typeof __v)(ctx.maxRequestChars) === "number" ? ctx.maxRequestChars : 43e5;
|
|
1105
|
+
let save = async (round2, done) => {
|
|
1106
|
+
{
|
|
1107
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
|
|
1108
|
+
await (opts.checkpoint({ messages: messages.slice() ?? null, round: round2, acted, nudgesLeft, done }) ?? null);
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
let drain = () => {
|
|
1113
|
+
{
|
|
1114
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.drainNotifications) !== "function") {
|
|
1115
|
+
return [];
|
|
1116
|
+
}
|
|
1117
|
+
let notes = opts.drainNotifications() ?? null;
|
|
1118
|
+
return Array.isArray(notes) ?? null ? notes : [];
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
let modelHooks = { onTextDelta: hook(hooks, "onTextDelta") ?? null, onReasoningDelta: hook(hooks, "onReasoningDelta") ?? null, onToolProgress: hook(hooks, "onToolProgress") ?? null };
|
|
1122
|
+
let choiceFor = (round2) => {
|
|
1123
|
+
{
|
|
1124
|
+
let c = opts.toolChoice ?? null;
|
|
1125
|
+
if (((__v) => __v == null ? "null" : typeof __v)(c) === "function") {
|
|
1126
|
+
c = c(round2) ?? null ?? null;
|
|
1127
|
+
}
|
|
1128
|
+
return c;
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
let call = async (msgs, tools, choice) => {
|
|
1132
|
+
{
|
|
1133
|
+
let attempt = 0;
|
|
1134
|
+
while (true) {
|
|
1135
|
+
try {
|
|
1136
|
+
{
|
|
1137
|
+
if (choice == null || tools.length === 0) {
|
|
1138
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal) ?? null);
|
|
1139
|
+
}
|
|
1140
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal, { toolChoice: choice }) ?? null);
|
|
1141
|
+
}
|
|
1142
|
+
} catch (err) {
|
|
1143
|
+
{
|
|
1144
|
+
if ((isStopped() ?? null) || attempt >= retries || !(recoverable(err) ?? null)) {
|
|
1145
|
+
throw err;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
attempt = attempt + 1;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
};
|
|
1153
|
+
let advise = ((__v) => __v == null ? "null" : typeof __v)(opts.advise) === "function" ? opts.advise : null;
|
|
1154
|
+
let route = ((__v) => __v == null ? "null" : typeof __v)(opts.route) === "function" ? opts.route : null;
|
|
1155
|
+
let errorCounts = /* @__PURE__ */ new Map() ?? null;
|
|
1156
|
+
let doneChecked = false;
|
|
1157
|
+
let consult = async (trigger, detail) => {
|
|
1158
|
+
{
|
|
1159
|
+
if (advise == null) {
|
|
1160
|
+
return false;
|
|
1161
|
+
}
|
|
1162
|
+
let note = null;
|
|
1163
|
+
try {
|
|
1164
|
+
{
|
|
1165
|
+
note = await (advise({ trigger, messages: messages.slice() ?? null, detail }) ?? null);
|
|
1166
|
+
}
|
|
1167
|
+
} catch (e) {
|
|
1168
|
+
{
|
|
1169
|
+
note = null;
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
if (((__v) => __v == null ? "null" : typeof __v)(note) !== "string" || note === "") {
|
|
1173
|
+
return false;
|
|
1174
|
+
}
|
|
1175
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
1176
|
+
return true;
|
|
1177
|
+
}
|
|
1178
|
+
};
|
|
1179
|
+
let round = ((__v) => __v == null ? "null" : typeof __v)(resume.round) === "number" ? resume.round : 0;
|
|
1180
|
+
if (round === 0) {
|
|
1181
|
+
await (consult("plan", null) ?? null);
|
|
1182
|
+
}
|
|
1183
|
+
while (maxRounds === 0 || round < maxRounds) {
|
|
1184
|
+
if (isStopped() ?? null) {
|
|
1185
|
+
await (save(round, true) ?? null);
|
|
1186
|
+
return { messages, text, rounds: round, exhausted: false, stopped: true, acted };
|
|
1187
|
+
}
|
|
1188
|
+
for (const note of drain() ?? null) {
|
|
1189
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
1190
|
+
}
|
|
1191
|
+
pruneOldImages(messages, ctx.keepImageTurns ?? null) ?? null;
|
|
1192
|
+
if (ctx.compact != null && ((__v) => __v == null ? "null" : typeof __v)(ctx.compact) === "object") {
|
|
1193
|
+
await (compactTranscript(messages, ctx.compact) ?? null);
|
|
1194
|
+
}
|
|
1195
|
+
fitImagesToBudget(messages, maxRequestChars - (JSON.stringify(specs) ?? null).length) ?? null;
|
|
1196
|
+
let onStart = hook(hooks, "onAssistantStart") ?? null;
|
|
1197
|
+
if (onStart != null) {
|
|
1198
|
+
onStart(round) ?? null;
|
|
1199
|
+
}
|
|
1200
|
+
let choice = choiceFor(round) ?? null;
|
|
1201
|
+
if (choice == null && route != null && specs.length > 0) {
|
|
1202
|
+
try {
|
|
1203
|
+
{
|
|
1204
|
+
choice = await (route({ round, messages: messages.slice() ?? null, tools: specs }) ?? null);
|
|
1205
|
+
}
|
|
1206
|
+
} catch (e) {
|
|
1207
|
+
{
|
|
1208
|
+
choice = null;
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
let turn = await (call(messages, specs, choice ?? null) ?? null);
|
|
1213
|
+
text = turn.text;
|
|
1214
|
+
let toolCalls = Array.isArray(turn.toolCalls) ?? null ? turn.toolCalls : [];
|
|
1215
|
+
if (toolCalls.length > 0) {
|
|
1216
|
+
messages.push({ role: "assistant", content: turn.text, tool_calls: toolCalls.map((c) => {
|
|
1217
|
+
{
|
|
1218
|
+
return { id: c.id, type: "function", function: { name: c.name, arguments: c.arguments } };
|
|
1219
|
+
}
|
|
1220
|
+
}) ?? null }) ?? null;
|
|
1221
|
+
} else {
|
|
1222
|
+
messages.push({ role: "assistant", content: turn.text }) ?? null;
|
|
1223
|
+
}
|
|
1224
|
+
if (toolCalls.length === 0) {
|
|
1225
|
+
let onEnd = hook(hooks, "onRoundEnd") ?? null;
|
|
1226
|
+
if (onEnd != null) {
|
|
1227
|
+
onEnd(round) ?? null;
|
|
1228
|
+
}
|
|
1229
|
+
let late = drain() ?? null;
|
|
1230
|
+
if (late.length > 0) {
|
|
1231
|
+
for (const note of late) {
|
|
1232
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
1233
|
+
}
|
|
1234
|
+
round = round + 1;
|
|
1235
|
+
continue;
|
|
1236
|
+
}
|
|
1237
|
+
if (!doneChecked) {
|
|
1238
|
+
doneChecked = true;
|
|
1239
|
+
if (await (consult("done", null) ?? null)) {
|
|
1240
|
+
await (save(round + 1, false) ?? null);
|
|
1241
|
+
round = round + 1;
|
|
1242
|
+
continue;
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
if (require2 != null && !acted && nudgesLeft > 0 && actingNames.size > 0) {
|
|
1246
|
+
nudgesLeft = nudgesLeft - 1;
|
|
1247
|
+
let nudge = ((__v) => __v == null ? "null" : typeof __v)(require2.message) === "string" ? require2.message : DEFAULT_ACTION_NUDGE;
|
|
1248
|
+
let onNudge = hook(hooks, "onNudge") ?? null;
|
|
1249
|
+
if (onNudge != null) {
|
|
1250
|
+
onNudge(nudge) ?? null;
|
|
1251
|
+
}
|
|
1252
|
+
messages.push({ role: "user", content: nudge }) ?? null;
|
|
1253
|
+
await (save(round + 1, false) ?? null);
|
|
1254
|
+
round = round + 1;
|
|
1255
|
+
continue;
|
|
1256
|
+
}
|
|
1257
|
+
await (save(round + 1, true) ?? null);
|
|
1258
|
+
return { messages, text, rounds: round + 1, exhausted: false, stopped: false, acted };
|
|
1259
|
+
}
|
|
1260
|
+
let calls = toolCalls.map((c) => {
|
|
1261
|
+
{
|
|
1262
|
+
return { id: c.id, name: c.name, argsText: c.arguments };
|
|
1263
|
+
}
|
|
1264
|
+
}) ?? null;
|
|
1265
|
+
let imageTurns = [];
|
|
1266
|
+
let repeated = [];
|
|
1267
|
+
doneChecked = false;
|
|
1268
|
+
for (const batch of batchCalls(calls, (n) => {
|
|
1269
|
+
{
|
|
1270
|
+
return parallelNames.has(n) ?? null;
|
|
1271
|
+
}
|
|
1272
|
+
}, maxParallel) ?? null) {
|
|
1273
|
+
if (isStopped() ?? null) {
|
|
1274
|
+
for (const c of calls) {
|
|
1275
|
+
let answered = messages.some((m) => {
|
|
1276
|
+
{
|
|
1277
|
+
return m.role === "tool" && m.tool_call_id === c.id;
|
|
1278
|
+
}
|
|
1279
|
+
}) ?? null;
|
|
1280
|
+
if (!answered) {
|
|
1281
|
+
messages.push({ role: "tool", tool_call_id: c.id, name: c.name, content: JSON.stringify({ error: "stopped" }) ?? null }) ?? null;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
await (save(round + 1, true) ?? null);
|
|
1285
|
+
return { messages, text, rounds: round + 1, exhausted: false, stopped: true, acted };
|
|
1286
|
+
}
|
|
1287
|
+
let onToolStart = hook(hooks, "onToolStart") ?? null;
|
|
1288
|
+
if (onToolStart != null) {
|
|
1289
|
+
for (const info of batch) {
|
|
1290
|
+
onToolStart(info) ?? null;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
let runs2 = await (Promise.all(batch.map(async (info) => {
|
|
1294
|
+
{
|
|
1295
|
+
try {
|
|
1296
|
+
{
|
|
1297
|
+
return await (opts.execTool(info) ?? null);
|
|
1298
|
+
}
|
|
1299
|
+
} catch (err) {
|
|
1300
|
+
{
|
|
1301
|
+
let message = errorMessage(err) ?? null;
|
|
1302
|
+
return { id: info.id, name: info.name, argsText: info.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }) ?? null };
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}) ?? null) ?? null);
|
|
1307
|
+
let onToolEnd = hook(hooks, "onToolEnd") ?? null;
|
|
1308
|
+
for (const run of runs2) {
|
|
1309
|
+
let actedHere = ((__v) => __v == null ? "null" : typeof __v)(run.acted) === "boolean" ? run.acted : actingNames.has(run.name) ?? null;
|
|
1310
|
+
if (run.ok === true && actedHere) {
|
|
1311
|
+
acted = true;
|
|
1312
|
+
}
|
|
1313
|
+
if (onToolEnd != null) {
|
|
1314
|
+
onToolEnd(run) ?? null;
|
|
1315
|
+
}
|
|
1316
|
+
if (run.ok !== true && advise != null) {
|
|
1317
|
+
let sig = errorSignature(run) ?? null;
|
|
1318
|
+
let n = (errorCounts.get(sig) ?? null ?? 0) + 1;
|
|
1319
|
+
errorCounts.set(sig, n) ?? null;
|
|
1320
|
+
if (n === REPEATED_ERROR_COUNT) {
|
|
1321
|
+
repeated.push(run.name + ": " + run.summary) ?? null;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
messages.push({ role: "tool", tool_call_id: run.id, name: run.name, content: truncateResult(run.content, maxResultChars) ?? null }) ?? null;
|
|
1325
|
+
if ((Array.isArray(run.images) ?? null) && run.images.length > 0) {
|
|
1326
|
+
let label = run.images.length === 1 ? "the rendered view" : (String(run.images.length) ?? null) + " rendered views";
|
|
1327
|
+
let parts = [{ type: "text", text: RENDER_TURN_PREFIX2 + run.name + ": " + label + "." }];
|
|
1328
|
+
for (const url of run.images) {
|
|
1329
|
+
parts.push({ type: "image_url", image_url: { url } }) ?? null;
|
|
1330
|
+
}
|
|
1331
|
+
imageTurns.push({ role: "user", content: parts }) ?? null;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
for (const m of imageTurns) {
|
|
1336
|
+
messages.push(m) ?? null;
|
|
1337
|
+
}
|
|
1338
|
+
for (const err of repeated) {
|
|
1339
|
+
await (consult("error", "The error, seen " + (String(REPEATED_ERROR_COUNT) ?? null) + " times: " + err) ?? null);
|
|
1340
|
+
}
|
|
1341
|
+
let onRoundEnd = hook(hooks, "onRoundEnd") ?? null;
|
|
1342
|
+
if (onRoundEnd != null) {
|
|
1343
|
+
onRoundEnd(round) ?? null;
|
|
1344
|
+
}
|
|
1345
|
+
await (save(round + 1, false) ?? null);
|
|
1346
|
+
round = round + 1;
|
|
1347
|
+
}
|
|
1348
|
+
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;
|
|
1349
|
+
let final = await (call(messages, [], null) ?? null);
|
|
1350
|
+
messages.push({ role: "assistant", content: final.text }) ?? null;
|
|
1351
|
+
await (save(maxRounds, true) ?? null);
|
|
1352
|
+
return { messages, text: final.text, rounds: maxRounds, exhausted: true, stopped: false, acted };
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
1357
|
+
var delay2 = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
|
|
1358
|
+
var REPORT_TOOL = "report_to_parent";
|
|
1359
|
+
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"] } } } };
|
|
1360
|
+
var WAIT_STEP_MS = 25;
|
|
1361
|
+
function isBusy(s) {
|
|
1362
|
+
{
|
|
1363
|
+
return s != null && (s.status === "running" || s.status === "queued");
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
function plainStopControl() {
|
|
1367
|
+
{
|
|
1368
|
+
let flag = { aborted: false };
|
|
1369
|
+
return { signal: flag, stop: () => {
|
|
1370
|
+
{
|
|
1371
|
+
flag.aborted = true;
|
|
1372
|
+
}
|
|
1373
|
+
} };
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
function allSessions(sessions) {
|
|
1377
|
+
{
|
|
1378
|
+
let out = [];
|
|
1379
|
+
for (const s of sessions.values() ?? null) {
|
|
1380
|
+
out.push(s) ?? null;
|
|
1381
|
+
}
|
|
1382
|
+
return out;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
function errorMessage2(err) {
|
|
1386
|
+
{
|
|
1387
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1388
|
+
return err.message;
|
|
1389
|
+
}
|
|
1390
|
+
return String(err) ?? null;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
function createAgentRuntime(host) {
|
|
1394
|
+
{
|
|
1395
|
+
let sessions = /* @__PURE__ */ new Map() ?? null;
|
|
1396
|
+
let controls = /* @__PURE__ */ new Map() ?? null;
|
|
1397
|
+
let parentQueue = [];
|
|
1398
|
+
let loaded = false;
|
|
1399
|
+
let loading = null;
|
|
1400
|
+
let active = 0;
|
|
1401
|
+
let waiting = [];
|
|
1402
|
+
let listeners = [];
|
|
1403
|
+
let pendingSaves = 0;
|
|
1404
|
+
let orch = host.orchestration ?? null;
|
|
1405
|
+
let maxConcurrent = () => {
|
|
1406
|
+
{
|
|
1407
|
+
let h = ((__v) => __v == null ? "null" : typeof __v)(host.maxConcurrent) === "function" ? host.maxConcurrent() ?? null : host.maxConcurrent;
|
|
1408
|
+
if (((__v) => __v == null ? "null" : typeof __v)(h) === "number" && h > 0) {
|
|
1409
|
+
return h;
|
|
1410
|
+
}
|
|
1411
|
+
let o = orch != null ? orch.maxConcurrent ?? null : null;
|
|
1412
|
+
return ((__v) => __v == null ? "null" : typeof __v)(o) === "number" && o > 0 ? o : 4;
|
|
1413
|
+
}
|
|
1414
|
+
};
|
|
1415
|
+
let now = () => {
|
|
1416
|
+
{
|
|
1417
|
+
return ((__v) => __v == null ? "null" : typeof __v)(host.now) === "function" ? host.now() ?? null : Date.now() ?? null;
|
|
1418
|
+
}
|
|
1419
|
+
};
|
|
1420
|
+
let changed = () => {
|
|
1421
|
+
{
|
|
1422
|
+
if (((__v) => __v == null ? "null" : typeof __v)(host.onChange) === "function") {
|
|
1423
|
+
host.onChange() ?? null;
|
|
1424
|
+
}
|
|
1425
|
+
for (const l of listeners.slice() ?? null) {
|
|
1426
|
+
l() ?? null;
|
|
1427
|
+
}
|
|
1428
|
+
}
|
|
1429
|
+
};
|
|
1430
|
+
let emit = (e) => {
|
|
1431
|
+
{
|
|
1432
|
+
if (((__v) => __v == null ? "null" : typeof __v)(host.onEvent) === "function") {
|
|
1433
|
+
host.onEvent(e) ?? null;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
};
|
|
1437
|
+
let sessionEvent = (s) => {
|
|
1438
|
+
{
|
|
1439
|
+
emit({ type: "session", sessionId: s.id, status: s.status, profile: s.profile, description: s.description }) ?? null;
|
|
1440
|
+
}
|
|
1441
|
+
};
|
|
1442
|
+
let persist = (s) => {
|
|
1443
|
+
{
|
|
1444
|
+
changed() ?? null;
|
|
1445
|
+
if (host.store == null || ((__v) => __v == null ? "null" : typeof __v)(host.store) !== "object") {
|
|
1446
|
+
return;
|
|
1447
|
+
}
|
|
1448
|
+
pendingSaves = pendingSaves + 1;
|
|
1449
|
+
let save = async () => {
|
|
1450
|
+
{
|
|
1451
|
+
try {
|
|
1452
|
+
{
|
|
1453
|
+
await (host.store.save(s) ?? null);
|
|
1454
|
+
}
|
|
1455
|
+
} catch (e) {
|
|
1456
|
+
{
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
pendingSaves = pendingSaves - 1;
|
|
1460
|
+
}
|
|
1461
|
+
};
|
|
1462
|
+
save() ?? null;
|
|
1463
|
+
}
|
|
1464
|
+
};
|
|
1465
|
+
let profileById = (id) => {
|
|
1466
|
+
{
|
|
1467
|
+
let found = (host.profiles() ?? null).filter((p) => {
|
|
1468
|
+
{
|
|
1469
|
+
return p.id === id;
|
|
1470
|
+
}
|
|
1471
|
+
}) ?? null;
|
|
1472
|
+
return found.length > 0 ? found[0] ?? null : null;
|
|
1473
|
+
}
|
|
1474
|
+
};
|
|
1475
|
+
let report = (fromId, text, question) => {
|
|
1476
|
+
{
|
|
1477
|
+
let s = sessions.get(fromId) ?? null ?? null;
|
|
1478
|
+
let who = "agent " + fromId + (s != null ? " (" + s.profile + ")" : "");
|
|
1479
|
+
let asks = question === true;
|
|
1480
|
+
parentQueue.push(asks ? "QUESTION from " + who + " \u2014 it needs your answer (send_message " + fromId + "):\n" + text : "Report from " + who + ":\n" + text) ?? null;
|
|
1481
|
+
emit({ type: "report", sessionId: fromId, message: text, question: asks }) ?? null;
|
|
1482
|
+
changed() ?? null;
|
|
1483
|
+
}
|
|
1484
|
+
};
|
|
1485
|
+
let run = async (session2, profile, prompt, forceReadOnly, parentSignal, fresh) => {
|
|
1486
|
+
{
|
|
1487
|
+
let control = ((__v) => __v == null ? "null" : typeof __v)(host.createSignal) === "function" ? host.createSignal() ?? null : plainStopControl() ?? null;
|
|
1488
|
+
controls.set(session2.id, control) ?? null;
|
|
1489
|
+
if (parentSignal != null) {
|
|
1490
|
+
if (parentSignal.aborted === true) {
|
|
1491
|
+
control.stop() ?? null;
|
|
1492
|
+
} else if (((__v) => __v == null ? "null" : typeof __v)(parentSignal.addEventListener) === "function") {
|
|
1493
|
+
parentSignal.addEventListener("abort", () => {
|
|
1494
|
+
{
|
|
1495
|
+
control.stop() ?? null;
|
|
1496
|
+
}
|
|
1497
|
+
}) ?? null;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
let ctx = { session: session2, profile, readOnly: forceReadOnly || profile.readOnly === true, signal: control.signal };
|
|
1501
|
+
let tools = (host.childTools(ctx) ?? null).concat([REPORT_SPEC]) ?? null;
|
|
1502
|
+
let childModel = ((__v) => __v == null ? "null" : typeof __v)(host.childModel) === "function" ? host.childModel(ctx) ?? null : null;
|
|
1503
|
+
if (((__v) => __v == null ? "null" : typeof __v)(childModel) !== "function" && orch != null) {
|
|
1504
|
+
childModel = orch.childModel(ctx.readOnly && (profile.model ?? null) == null ? "fast" : profile.model ?? null) ?? null;
|
|
1505
|
+
}
|
|
1506
|
+
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;
|
|
1507
|
+
let ok = true;
|
|
1508
|
+
let summary = "";
|
|
1509
|
+
let rounds = 0;
|
|
1510
|
+
let wasStopped = () => {
|
|
1511
|
+
{
|
|
1512
|
+
return control.signal.aborted === true || parentSignal != null && parentSignal.aborted === true;
|
|
1513
|
+
}
|
|
1514
|
+
};
|
|
1515
|
+
try {
|
|
1516
|
+
{
|
|
1517
|
+
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;
|
|
1518
|
+
let outcome = await (runAgentLoop({ messages, tools, callModel: ((__v) => __v == null ? "null" : typeof __v)(childModel) === "function" ? childModel : host.callModel, signal: control.signal, stopped: () => {
|
|
1519
|
+
{
|
|
1520
|
+
return parentSignal != null && parentSignal.aborted === true;
|
|
1521
|
+
}
|
|
1522
|
+
}, maxRounds: budget, drainNotifications: () => {
|
|
1523
|
+
{
|
|
1524
|
+
return (session2.inbox.splice(0, session2.inbox.length) ?? null).map((t) => {
|
|
1525
|
+
{
|
|
1526
|
+
return "Message from the main agent:\n" + t;
|
|
1527
|
+
}
|
|
1528
|
+
}) ?? null;
|
|
1529
|
+
}
|
|
1530
|
+
}, execTool: async (call) => {
|
|
1531
|
+
{
|
|
1532
|
+
if (call.name === REPORT_TOOL) {
|
|
1533
|
+
let args = {};
|
|
1534
|
+
try {
|
|
1535
|
+
{
|
|
1536
|
+
args = JSON.parse(call.argsText === "" ? "{}" : call.argsText) ?? null;
|
|
1537
|
+
}
|
|
1538
|
+
} catch (e) {
|
|
1539
|
+
{
|
|
1540
|
+
args = {};
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
report(session2.id, String(args.message ?? "") ?? null, args.question === true) ?? null;
|
|
1544
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: "reported", content: JSON.stringify({ ok: true }) ?? null };
|
|
1545
|
+
}
|
|
1546
|
+
return await (host.execChildTool(call, ctx) ?? null);
|
|
1547
|
+
}
|
|
1548
|
+
}, requireAction: fresh && !ctx.readOnly, hooks: { onToolStart: (c) => {
|
|
1549
|
+
{
|
|
1550
|
+
emit({ type: "tool-start", sessionId: session2.id, name: c.name }) ?? null;
|
|
1551
|
+
}
|
|
1552
|
+
}, onToolEnd: (r) => {
|
|
1553
|
+
{
|
|
1554
|
+
emit({ type: "tool-end", sessionId: session2.id, name: r.name, ok: r.ok, summary: r.summary }) ?? null;
|
|
1555
|
+
}
|
|
1556
|
+
}, onTextDelta: (d) => {
|
|
1557
|
+
{
|
|
1558
|
+
emit({ type: "text", sessionId: session2.id, delta: d }) ?? null;
|
|
1559
|
+
}
|
|
1560
|
+
}, onNudge: (m) => {
|
|
1561
|
+
{
|
|
1562
|
+
emit({ type: "nudge", sessionId: session2.id, message: m }) ?? null;
|
|
1563
|
+
}
|
|
1564
|
+
} } }) ?? null);
|
|
1565
|
+
session2.transcript = outcome.messages;
|
|
1566
|
+
rounds = outcome.rounds;
|
|
1567
|
+
let said = outcome.text.trim() ?? null;
|
|
1568
|
+
summary = said !== "" ? said : outcome.stopped ? "(stopped)" : "(finished without a summary)";
|
|
1569
|
+
ok = !outcome.stopped;
|
|
1570
|
+
}
|
|
1571
|
+
} catch (err) {
|
|
1572
|
+
{
|
|
1573
|
+
ok = false;
|
|
1574
|
+
summary = wasStopped() ?? null ? "(stopped)" : "(agent error: " + (errorMessage2(err) ?? null) + ")";
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
controls.delete(session2.id) ?? null;
|
|
1578
|
+
session2.rounds = session2.rounds + rounds;
|
|
1579
|
+
if (session2.status === "running") {
|
|
1580
|
+
session2.status = ok ? "done" : wasStopped() ?? null ? "stopped" : "error";
|
|
1581
|
+
session2.summary = summary;
|
|
1582
|
+
session2.endedAt = now() ?? null;
|
|
1583
|
+
} else {
|
|
1584
|
+
session2.summary = summary;
|
|
1585
|
+
}
|
|
1586
|
+
if (session2.background && session2.status !== "stopped") {
|
|
1587
|
+
parentQueue.push("Agent " + session2.id + " (" + session2.profile + ") " + (ok ? "finished" : "failed") + ":\n" + summary) ?? null;
|
|
1588
|
+
}
|
|
1589
|
+
sessionEvent(session2) ?? null;
|
|
1590
|
+
persist(session2) ?? null;
|
|
1591
|
+
return { ok, summary, rounds };
|
|
1592
|
+
}
|
|
1593
|
+
};
|
|
1594
|
+
let takeNext = () => {
|
|
1595
|
+
{
|
|
1596
|
+
while (waiting.length > 0) {
|
|
1597
|
+
let next = waiting.shift() ?? null;
|
|
1598
|
+
if (next.session.status === "queued") {
|
|
1599
|
+
next.session.status = "running";
|
|
1600
|
+
sessionEvent(next.session) ?? null;
|
|
1601
|
+
changed() ?? null;
|
|
1602
|
+
return next;
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
return null;
|
|
1606
|
+
}
|
|
1607
|
+
};
|
|
1608
|
+
let runSlot = (first) => {
|
|
1609
|
+
{
|
|
1610
|
+
((f) => Promise.resolve().then(() => f()))(async () => {
|
|
1611
|
+
{
|
|
1612
|
+
let job = first;
|
|
1613
|
+
while (job != null) {
|
|
1614
|
+
try {
|
|
1615
|
+
{
|
|
1616
|
+
if (job.session.status !== "stopped") {
|
|
1617
|
+
await (job.go() ?? null);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
} catch (e) {
|
|
1621
|
+
{
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
job = active <= (maxConcurrent() ?? null) ? takeNext() ?? null : null;
|
|
1625
|
+
if (job == null) {
|
|
1626
|
+
active = Math.max(0, active - 1) ?? null;
|
|
1627
|
+
if (waiting.length > 0 && active < (maxConcurrent() ?? null)) {
|
|
1628
|
+
active = active + 1;
|
|
1629
|
+
job = takeNext() ?? null;
|
|
1630
|
+
if (job == null) {
|
|
1631
|
+
active = Math.max(0, active - 1) ?? null;
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
}) ?? null;
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
let startBackground = (session2, go) => {
|
|
1641
|
+
{
|
|
1642
|
+
while (waiting.length > 0 && active < (maxConcurrent() ?? null)) {
|
|
1643
|
+
let next = takeNext() ?? null;
|
|
1644
|
+
if (next == null) {
|
|
1645
|
+
break;
|
|
1646
|
+
}
|
|
1647
|
+
active = active + 1;
|
|
1648
|
+
runSlot(next) ?? null;
|
|
1649
|
+
}
|
|
1650
|
+
if (active < (maxConcurrent() ?? null)) {
|
|
1651
|
+
active = active + 1;
|
|
1652
|
+
runSlot({ session: session2, go }) ?? null;
|
|
1653
|
+
return;
|
|
1654
|
+
}
|
|
1655
|
+
session2.status = "queued";
|
|
1656
|
+
sessionEvent(session2) ?? null;
|
|
1657
|
+
changed() ?? null;
|
|
1658
|
+
waiting.push({ session: session2, go }) ?? null;
|
|
1659
|
+
}
|
|
1660
|
+
};
|
|
1661
|
+
let stop = (id) => {
|
|
1662
|
+
{
|
|
1663
|
+
let s = sessions.get(id) ?? null ?? null;
|
|
1664
|
+
if (s == null || s.status !== "running" && s.status !== "queued") {
|
|
1665
|
+
return false;
|
|
1666
|
+
}
|
|
1667
|
+
let control = controls.get(id) ?? null ?? null;
|
|
1668
|
+
if (control != null) {
|
|
1669
|
+
control.stop() ?? null;
|
|
1670
|
+
}
|
|
1671
|
+
s.status = "stopped";
|
|
1672
|
+
s.endedAt = now() ?? null;
|
|
1673
|
+
persist(s) ?? null;
|
|
1674
|
+
return true;
|
|
1675
|
+
}
|
|
1676
|
+
};
|
|
1677
|
+
let load = async () => {
|
|
1678
|
+
{
|
|
1679
|
+
if (loaded) {
|
|
1680
|
+
return;
|
|
1681
|
+
}
|
|
1682
|
+
loaded = true;
|
|
1683
|
+
if (host.store != null && ((__v) => __v == null ? "null" : typeof __v)(host.store) === "object") {
|
|
1684
|
+
let saved = await (host.store.load() ?? null);
|
|
1685
|
+
for (const s of Array.isArray(saved) ?? null ? saved : []) {
|
|
1686
|
+
if (s.status === "running" || s.status === "queued") {
|
|
1687
|
+
s.status = "stopped";
|
|
1688
|
+
if (((__v) => __v == null ? "null" : typeof __v)(s.endedAt) !== "number") {
|
|
1689
|
+
s.endedAt = now() ?? null;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
sessions.set(s.id, s) ?? null;
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
changed() ?? null;
|
|
1696
|
+
}
|
|
1697
|
+
};
|
|
1698
|
+
let get = (id) => {
|
|
1699
|
+
{
|
|
1700
|
+
return sessions.get(id) ?? null ?? null;
|
|
1701
|
+
}
|
|
1702
|
+
};
|
|
1703
|
+
return { load, flush: async () => {
|
|
1704
|
+
{
|
|
1705
|
+
while (pendingSaves > 0) {
|
|
1706
|
+
await (delay2(WAIT_STEP_MS) ?? null);
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
}, subscribe: (l) => {
|
|
1710
|
+
{
|
|
1711
|
+
listeners.push(l) ?? null;
|
|
1712
|
+
return () => {
|
|
1713
|
+
{
|
|
1714
|
+
let i = listeners.indexOf(l) ?? null;
|
|
1715
|
+
if (i >= 0) {
|
|
1716
|
+
listeners.splice(i, 1) ?? null;
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
};
|
|
1720
|
+
}
|
|
1721
|
+
}, list: () => {
|
|
1722
|
+
{
|
|
1723
|
+
return (allSessions(sessions) ?? null).sort((a, b) => {
|
|
1724
|
+
{
|
|
1725
|
+
return a.startedAt - b.startedAt;
|
|
1726
|
+
}
|
|
1727
|
+
}) ?? null;
|
|
1728
|
+
}
|
|
1729
|
+
}, get, wait: async (id, opts) => {
|
|
1730
|
+
{
|
|
1731
|
+
let o = opts ?? {};
|
|
1732
|
+
let deadline = (now() ?? null) + (((__v) => __v == null ? "null" : typeof __v)(o.timeoutMs) === "number" ? o.timeoutMs : 12e4);
|
|
1733
|
+
let signal = o.signal ?? null;
|
|
1734
|
+
while ((isBusy(get(id) ?? null) ?? null) && (now() ?? null) < deadline && !(signal != null && signal.aborted === true)) {
|
|
1735
|
+
await (delay2(Math.min(WAIT_STEP_MS, Math.max(1, deadline - (now() ?? null)) ?? null) ?? null) ?? null);
|
|
1736
|
+
}
|
|
1737
|
+
return get(id) ?? null;
|
|
1738
|
+
}
|
|
1739
|
+
}, dismissFinished: (id) => {
|
|
1740
|
+
{
|
|
1741
|
+
let prefix = "Agent " + id + " (";
|
|
1742
|
+
let i = parentQueue.length - 1;
|
|
1743
|
+
while (i >= 0) {
|
|
1744
|
+
if ((parentQueue[i] ?? null).startsWith(prefix) ?? null) {
|
|
1745
|
+
parentQueue.splice(i, 1) ?? null;
|
|
1746
|
+
}
|
|
1747
|
+
i = i - 1;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}, drainParentNotifications: () => {
|
|
1751
|
+
{
|
|
1752
|
+
return parentQueue.splice(0, parentQueue.length) ?? null;
|
|
1753
|
+
}
|
|
1754
|
+
}, hasPendingNotifications: () => {
|
|
1755
|
+
{
|
|
1756
|
+
return parentQueue.length > 0;
|
|
1757
|
+
}
|
|
1758
|
+
}, spawn: async (req) => {
|
|
1759
|
+
{
|
|
1760
|
+
let profile = profileById(req.profileId) ?? null;
|
|
1761
|
+
if (profile == null) {
|
|
1762
|
+
let ids = ((host.profiles() ?? null).map((p) => {
|
|
1763
|
+
{
|
|
1764
|
+
return p.id;
|
|
1765
|
+
}
|
|
1766
|
+
}) ?? null).join(", ") ?? null;
|
|
1767
|
+
return { kind: "refused", reason: 'No agent type "' + req.profileId + '". Available: ' + ids + "." };
|
|
1768
|
+
}
|
|
1769
|
+
let prompt = ((__v) => __v == null ? "null" : typeof __v)(req.prompt) === "string" ? req.prompt.trim() ?? null : "";
|
|
1770
|
+
if (prompt === "") {
|
|
1771
|
+
return { kind: "refused", reason: "A task needs a self-contained prompt \u2014 the agent cannot see this conversation." };
|
|
1772
|
+
}
|
|
1773
|
+
let background = ((__v) => __v == null ? "null" : typeof __v)(req.background) === "boolean" ? req.background : profile.background === true;
|
|
1774
|
+
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);
|
|
1775
|
+
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 };
|
|
1776
|
+
if (((__v) => __v == null ? "null" : typeof __v)(req.parentCallId) === "string" && req.parentCallId !== "") {
|
|
1777
|
+
session2.parentCallId = req.parentCallId;
|
|
1778
|
+
}
|
|
1779
|
+
sessions.set(session2.id, session2) ?? null;
|
|
1780
|
+
changed() ?? null;
|
|
1781
|
+
sessionEvent(session2) ?? null;
|
|
1782
|
+
let forceReadOnly = req.readOnly === true;
|
|
1783
|
+
let parentSignal = req.signal ?? null;
|
|
1784
|
+
if (background) {
|
|
1785
|
+
startBackground(session2, async () => {
|
|
1786
|
+
{
|
|
1787
|
+
return await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
|
|
1788
|
+
}
|
|
1789
|
+
}) ?? null;
|
|
1790
|
+
return { kind: "started", id: session2.id };
|
|
1791
|
+
}
|
|
1792
|
+
let out = await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
|
|
1793
|
+
return { kind: "done", id: session2.id, ok: out.ok, summary: out.summary, rounds: out.rounds };
|
|
1794
|
+
}
|
|
1795
|
+
}, message: async (id, text, opts) => {
|
|
1796
|
+
{
|
|
1797
|
+
await (load() ?? null);
|
|
1798
|
+
let o = opts ?? {};
|
|
1799
|
+
let session2 = sessions.get(id) ?? null ?? null;
|
|
1800
|
+
if (session2 == null) {
|
|
1801
|
+
return { kind: "unknown", id };
|
|
1802
|
+
}
|
|
1803
|
+
if (session2.status === "running" || session2.status === "queued") {
|
|
1804
|
+
session2.inbox.push(text) ?? null;
|
|
1805
|
+
persist(session2) ?? null;
|
|
1806
|
+
return { kind: "queued", id };
|
|
1807
|
+
}
|
|
1808
|
+
let profile = profileById(session2.profile) ?? null;
|
|
1809
|
+
if (profile == null) {
|
|
1810
|
+
return { kind: "unknown", id };
|
|
1811
|
+
}
|
|
1812
|
+
let wait = o.wait === true;
|
|
1813
|
+
let parentSignal = o.signal ?? null;
|
|
1814
|
+
session2.status = "running";
|
|
1815
|
+
session2.endedAt = null;
|
|
1816
|
+
session2.background = !wait;
|
|
1817
|
+
changed() ?? null;
|
|
1818
|
+
if (!wait) {
|
|
1819
|
+
startBackground(session2, async () => {
|
|
1820
|
+
{
|
|
1821
|
+
return await (run(session2, profile, text, false, parentSignal, false) ?? null);
|
|
1822
|
+
}
|
|
1823
|
+
}) ?? null;
|
|
1824
|
+
return { kind: "resumed", id };
|
|
1825
|
+
}
|
|
1826
|
+
let out = await (run(session2, profile, text, false, parentSignal, false) ?? null);
|
|
1827
|
+
return { kind: "done", id, ok: out.ok, summary: out.summary };
|
|
1828
|
+
}
|
|
1829
|
+
}, stop, stopAll: () => {
|
|
1830
|
+
{
|
|
1831
|
+
for (const s of allSessions(sessions) ?? null) {
|
|
1832
|
+
stop(s.id) ?? null;
|
|
1833
|
+
}
|
|
1834
|
+
parentQueue.splice(0, parentQueue.length) ?? null;
|
|
1835
|
+
}
|
|
1836
|
+
}, report };
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/types.js
|
|
1841
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1842
|
+
function forceTool(name) {
|
|
1843
|
+
{
|
|
1844
|
+
return { type: "function", function: { name } };
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/store.js
|
|
1849
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1850
|
+
async function loadAll(kv, prefix) {
|
|
1851
|
+
{
|
|
1852
|
+
let out = [];
|
|
1853
|
+
for (const k of await (kv.keys(prefix) ?? null)) {
|
|
1854
|
+
let v = await (kv.get(k) ?? null);
|
|
1855
|
+
if (v != null) {
|
|
1856
|
+
out.push(v) ?? null;
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
return out;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
function sessionStore(kv, scope) {
|
|
1863
|
+
{
|
|
1864
|
+
let prefix = (scope ?? "default") + ":session:";
|
|
1865
|
+
return { load: async () => {
|
|
1866
|
+
{
|
|
1867
|
+
return await (loadAll(kv, prefix) ?? null);
|
|
1868
|
+
}
|
|
1869
|
+
}, save: async (s) => {
|
|
1870
|
+
{
|
|
1871
|
+
await (kv.set(prefix + s.id, s) ?? null);
|
|
1872
|
+
}
|
|
1873
|
+
}, remove: async (id) => {
|
|
1874
|
+
{
|
|
1875
|
+
await ((kv["delete"] ?? null)(prefix + id) ?? null);
|
|
1876
|
+
}
|
|
1877
|
+
} };
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
function runStore(kv, scope) {
|
|
1881
|
+
{
|
|
1882
|
+
let prefix = (scope ?? "default") + ":run:";
|
|
1883
|
+
return { get: async (id) => {
|
|
1884
|
+
{
|
|
1885
|
+
return await (kv.get(prefix + id) ?? null);
|
|
1886
|
+
}
|
|
1887
|
+
}, save: async (run) => {
|
|
1888
|
+
{
|
|
1889
|
+
await (kv.set(prefix + run.id, run) ?? null);
|
|
1890
|
+
}
|
|
1891
|
+
}, list: async () => {
|
|
1892
|
+
{
|
|
1893
|
+
return await (loadAll(kv, prefix) ?? null);
|
|
1894
|
+
}
|
|
1895
|
+
}, remove: async (id) => {
|
|
1896
|
+
{
|
|
1897
|
+
await ((kv["delete"] ?? null)(prefix + id) ?? null);
|
|
1898
|
+
}
|
|
1899
|
+
} };
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/run.js
|
|
1904
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1905
|
+
function errorMessage3(err) {
|
|
1906
|
+
{
|
|
1907
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1908
|
+
return err.message;
|
|
1909
|
+
}
|
|
1910
|
+
return String(err) ?? null;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
async function runPersistent(opts) {
|
|
1914
|
+
{
|
|
1915
|
+
let now = ((__v) => __v == null ? "null" : typeof __v)(opts.now) === "function" ? opts.now : () => {
|
|
1916
|
+
{
|
|
1917
|
+
return Date.now() ?? null;
|
|
1918
|
+
}
|
|
1919
|
+
};
|
|
1920
|
+
let existing = await (opts.runs.get(opts.id) ?? null);
|
|
1921
|
+
let createdAt = existing != null ? existing.createdAt : now() ?? null;
|
|
1922
|
+
let record = (status, checkpoint) => {
|
|
1923
|
+
{
|
|
1924
|
+
let todos = opts.todos != null && ((__v) => __v == null ? "null" : typeof __v)(opts.todos) === "object" ? opts.todos.get() ?? null : existing != null ? existing.todos ?? null : null;
|
|
1925
|
+
let meta = opts.meta ?? (existing != null ? existing.meta ?? null : null);
|
|
1926
|
+
return { id: opts.id, createdAt, updatedAt: now() ?? null, meta, todos, status, checkpoint };
|
|
1927
|
+
}
|
|
1928
|
+
};
|
|
1929
|
+
let first = existing != null ? existing.checkpoint : { messages: opts.messages, round: 0, acted: false, nudgesLeft: 0, done: false };
|
|
1930
|
+
await (opts.runs.save(record("running", first) ?? null) ?? null);
|
|
1931
|
+
let mark = async (status, error) => {
|
|
1932
|
+
{
|
|
1933
|
+
let saved = await (opts.runs.get(opts.id) ?? null);
|
|
1934
|
+
if (saved != null) {
|
|
1935
|
+
let next = { ...saved, status, updatedAt: now() ?? null };
|
|
1936
|
+
if (((__v) => __v == null ? "null" : typeof __v)(error) === "string") {
|
|
1937
|
+
next.error = error;
|
|
1938
|
+
}
|
|
1939
|
+
await (opts.runs.save(next) ?? null);
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
};
|
|
1943
|
+
let outcome = null;
|
|
1944
|
+
try {
|
|
1945
|
+
{
|
|
1946
|
+
outcome = await (runAgentLoop({ ...opts, checkpoint: async (state) => {
|
|
1947
|
+
{
|
|
1948
|
+
await (opts.runs.save(record(state.done ? "done" : "running", state) ?? null) ?? null);
|
|
1949
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
|
|
1950
|
+
await (opts.checkpoint(state) ?? null);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
} }) ?? null);
|
|
1954
|
+
}
|
|
1955
|
+
} catch (err) {
|
|
1956
|
+
{
|
|
1957
|
+
await (mark("error", errorMessage3(err) ?? null) ?? null);
|
|
1958
|
+
throw err;
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
if (outcome.stopped) {
|
|
1962
|
+
await (mark("stopped", null) ?? null);
|
|
1963
|
+
}
|
|
1964
|
+
return outcome;
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
async function interruptedRuns(runs2, activeIds) {
|
|
1968
|
+
{
|
|
1969
|
+
let active = new Set(activeIds ?? []) ?? null;
|
|
1970
|
+
return (await (runs2.list() ?? null)).filter((r) => {
|
|
1971
|
+
{
|
|
1972
|
+
return r.status === "running" && !(active.has(r.id) ?? null);
|
|
1973
|
+
}
|
|
1974
|
+
}) ?? null;
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
async function resumeRun(id, runs2, options) {
|
|
1978
|
+
{
|
|
1979
|
+
let saved = await (runs2.get(id) ?? null);
|
|
1980
|
+
if (saved == null) {
|
|
1981
|
+
throw { message: 'No saved run "' + id + '".', code: "not_found" };
|
|
1982
|
+
}
|
|
1983
|
+
let cp = saved.checkpoint;
|
|
1984
|
+
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);
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/router.js
|
|
1989
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1990
|
+
var ROUTER_PROMPT = 'You pick the next tool for a coding agent. Answer with JSON only: {"tool": "<one of the tool names, or none>", "p": <your confidence 0..1>}. Pick "none" when the agent should answer in words or the choice is unclear.';
|
|
1991
|
+
function createRouter(opts) {
|
|
1992
|
+
{
|
|
1993
|
+
let call = roleModel(opts.callModel, opts.spec) ?? null;
|
|
1994
|
+
let threshold = ((__v) => __v == null ? "null" : typeof __v)(opts.threshold) === "number" ? opts.threshold : 0.8;
|
|
1995
|
+
let maxChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxChars) === "number" ? opts.maxChars : 12e3;
|
|
1996
|
+
return async (req) => {
|
|
1997
|
+
{
|
|
1998
|
+
if (!(Array.isArray(req.tools) ?? null) || req.tools.length === 0) {
|
|
1999
|
+
return null;
|
|
2000
|
+
}
|
|
2001
|
+
let names = req.tools.map((t2) => {
|
|
2002
|
+
{
|
|
2003
|
+
return (t2["function"] ?? null).name;
|
|
2004
|
+
}
|
|
2005
|
+
}) ?? null;
|
|
2006
|
+
let turn = null;
|
|
2007
|
+
try {
|
|
2008
|
+
{
|
|
2009
|
+
turn = await (call([{ role: "system", content: ROUTER_PROMPT }, { role: "user", content: "Tools: " + (names.join(", ") ?? null) + "\n\nRecent session:\n" + (renderTranscript(req.messages, maxChars) ?? null) }], [], {}, null, null) ?? null);
|
|
2010
|
+
}
|
|
2011
|
+
} catch (err) {
|
|
2012
|
+
{
|
|
2013
|
+
return null;
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
let tool = null;
|
|
2017
|
+
let p = 0;
|
|
2018
|
+
let t = (turn.text ?? "").trim() ?? null;
|
|
2019
|
+
let start = t.indexOf("{") ?? null;
|
|
2020
|
+
let end = t.lastIndexOf("}") ?? null;
|
|
2021
|
+
if (start >= 0 && end > start) {
|
|
2022
|
+
try {
|
|
2023
|
+
{
|
|
2024
|
+
let j = JSON.parse(t.slice(start, end + 1) ?? null) ?? null;
|
|
2025
|
+
if (((__v) => __v == null ? "null" : typeof __v)(j.tool) === "string" && (names.includes(j.tool) ?? null)) {
|
|
2026
|
+
tool = j.tool;
|
|
2027
|
+
}
|
|
2028
|
+
if (((__v) => __v == null ? "null" : typeof __v)(j.p) === "number") {
|
|
2029
|
+
p = j.p;
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
} catch (e) {
|
|
2033
|
+
{
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
let sharp = tool != null && p >= threshold;
|
|
2038
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.onEvent) === "function") {
|
|
2039
|
+
opts.onEvent({ type: "router:pick", round: req.round, model: opts.spec.model, tool, p, sharp }) ?? null;
|
|
2040
|
+
}
|
|
2041
|
+
return sharp ? forceTool(tool) ?? null : null;
|
|
2042
|
+
}
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/auto.js
|
|
2048
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2049
|
+
function normalizeMode(mode) {
|
|
2050
|
+
{
|
|
2051
|
+
if (mode === "off" || mode === false) {
|
|
2052
|
+
return "off";
|
|
2053
|
+
}
|
|
2054
|
+
if (mode === "ultra") {
|
|
2055
|
+
return "ultra";
|
|
2056
|
+
}
|
|
2057
|
+
return "auto";
|
|
2058
|
+
}
|
|
2059
|
+
}
|
|
2060
|
+
function createOrchestration(callModel, opts) {
|
|
2061
|
+
{
|
|
2062
|
+
let o = opts ?? {};
|
|
2063
|
+
let mode = normalizeMode(o.mode ?? "auto") ?? null;
|
|
2064
|
+
let skill = o.skill != null && ((__v) => __v == null ? "null" : typeof __v)(o.skill) === "object" ? o.skill : null;
|
|
2065
|
+
let catalog = o.catalog ?? null;
|
|
2066
|
+
let emit = (e) => {
|
|
2067
|
+
{
|
|
2068
|
+
if (((__v) => __v == null ? "null" : typeof __v)(o.onEvent) === "function") {
|
|
2069
|
+
o.onEvent(e) ?? null;
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
};
|
|
2073
|
+
let hostLimit = ((__v) => __v == null ? "null" : typeof __v)(o.maxConcurrent) === "number" ? o.maxConcurrent : null;
|
|
2074
|
+
if (mode === "off" || skill == null) {
|
|
2075
|
+
return { mode, skill: null, roles: {}, maxConcurrent: hostLimit, guidance: "", callModel, childModel: (m) => {
|
|
2076
|
+
{
|
|
2077
|
+
return null;
|
|
2078
|
+
}
|
|
2079
|
+
}, advise: null, route: null };
|
|
2080
|
+
}
|
|
2081
|
+
emit({ type: "skill", skill: skill.name }) ?? null;
|
|
2082
|
+
let roles = mergeRoles(skill.roles, o.roles ?? null) ?? null;
|
|
2083
|
+
if (((__v) => __v == null ? "null" : typeof __v)(o.effort) === "string" && (roles.lead ?? null) != null) {
|
|
2084
|
+
roles = mergeRoles(roles, { lead: { effort: o.effort } }) ?? null;
|
|
2085
|
+
}
|
|
2086
|
+
let specs = {};
|
|
2087
|
+
let calls = {};
|
|
2088
|
+
let callFor = (role) => {
|
|
2089
|
+
{
|
|
2090
|
+
if ((calls[role] ?? null ?? null) == null) {
|
|
2091
|
+
let spec = resolveRole(role, roles, catalog) ?? null;
|
|
2092
|
+
if (spec == null) {
|
|
2093
|
+
return null;
|
|
2094
|
+
}
|
|
2095
|
+
specs[role] = spec;
|
|
2096
|
+
calls[role] = roleModel(callModel, spec) ?? null;
|
|
2097
|
+
emit({ type: "role:model", role, model: spec.model }) ?? null;
|
|
2098
|
+
}
|
|
2099
|
+
return calls[role] ?? null;
|
|
2100
|
+
}
|
|
2101
|
+
};
|
|
2102
|
+
let lead = callFor("lead") ?? null ?? callModel;
|
|
2103
|
+
let advise = null;
|
|
2104
|
+
let route = null;
|
|
2105
|
+
if ((callFor("advisor") ?? null) != null) {
|
|
2106
|
+
let triggers = null;
|
|
2107
|
+
if (Array.isArray(skill.advisorTriggers) ?? null) {
|
|
2108
|
+
triggers = { plan: skill.advisorTriggers.includes("plan") ?? null, done: skill.advisorTriggers.includes("done") ?? null, error: skill.advisorTriggers.includes("error") ?? null, ask: skill.advisorTriggers.includes("ask") ?? null };
|
|
2109
|
+
}
|
|
2110
|
+
advise = (createAdvisor({ callModel, spec: specs.advisor, triggers, maxCalls: skill.advisorMaxCalls ?? null, maxChars: null, guidance: skill.guidance, onEvent: (e) => {
|
|
2111
|
+
{
|
|
2112
|
+
emit(e) ?? null;
|
|
2113
|
+
}
|
|
2114
|
+
} }) ?? null).advise;
|
|
2115
|
+
}
|
|
2116
|
+
if (((__v) => __v == null ? "null" : typeof __v)(skill.routerThreshold) === "number" && (callFor("router") ?? null) != null) {
|
|
2117
|
+
route = createRouter({ callModel, spec: specs.router, threshold: skill.routerThreshold, onEvent: (e) => {
|
|
2118
|
+
{
|
|
2119
|
+
emit(e) ?? null;
|
|
2120
|
+
}
|
|
2121
|
+
} }) ?? null;
|
|
2122
|
+
}
|
|
2123
|
+
return { mode, skill, roles, maxConcurrent: hostLimit ?? skill.maxConcurrent ?? null, guidance: skill.guidance, callModel: lead, childModel: (profileModel) => {
|
|
2124
|
+
{
|
|
2125
|
+
let role = roleOfProfileModel(profileModel) ?? null;
|
|
2126
|
+
if (role == null) {
|
|
2127
|
+
return roleModel(callModel, { model: profileModel, effort: (specs.lead ?? {}).effort ?? null, fallback: null }) ?? null;
|
|
2128
|
+
}
|
|
2129
|
+
return callFor(role) ?? null ?? lead;
|
|
2130
|
+
}
|
|
2131
|
+
}, advise, route };
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/core/orchestration-skill.js
|
|
2136
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2137
|
+
function splitList(v) {
|
|
2138
|
+
{
|
|
2139
|
+
if ((v ?? null) == null) {
|
|
2140
|
+
return [];
|
|
2141
|
+
}
|
|
2142
|
+
return ((v.split(",") ?? null).map((s) => {
|
|
2143
|
+
{
|
|
2144
|
+
return s.trim() ?? null;
|
|
2145
|
+
}
|
|
2146
|
+
}) ?? null).filter((s) => {
|
|
2147
|
+
{
|
|
2148
|
+
return s !== "";
|
|
2149
|
+
}
|
|
2150
|
+
}) ?? null;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
function unquote(v) {
|
|
2154
|
+
{
|
|
2155
|
+
let t = v.trim() ?? null;
|
|
2156
|
+
if (t.length >= 2 && ((t.startsWith('"') ?? null) && (t.endsWith('"') ?? null) || (t.startsWith("'") ?? null) && (t.endsWith("'") ?? null))) {
|
|
2157
|
+
return t.slice(1, t.length - 1) ?? null;
|
|
2158
|
+
}
|
|
2159
|
+
return t;
|
|
2160
|
+
}
|
|
2161
|
+
}
|
|
2162
|
+
function num(v) {
|
|
2163
|
+
{
|
|
2164
|
+
if ((v ?? null) == null || v === "") {
|
|
2165
|
+
return null;
|
|
2166
|
+
}
|
|
2167
|
+
let n = Number(v) ?? null;
|
|
2168
|
+
return Number.isFinite(n) ?? null ? n : null;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
function parseOrchestrationSkill(text) {
|
|
2172
|
+
{
|
|
2173
|
+
let src = ((__v) => __v == null ? "null" : typeof __v)(text) === "string" ? (text.split("\r\n") ?? null).join("\n") ?? null : "";
|
|
2174
|
+
if (!(src.startsWith("---\n") ?? null)) {
|
|
2175
|
+
return null;
|
|
2176
|
+
}
|
|
2177
|
+
let end = src.indexOf("\n---", 4) ?? null;
|
|
2178
|
+
if (end < 0) {
|
|
2179
|
+
return null;
|
|
2180
|
+
}
|
|
2181
|
+
let head = src.slice(4, end) ?? null;
|
|
2182
|
+
let body = src.slice(end + 4) ?? null;
|
|
2183
|
+
if (body.startsWith("\n") ?? null) {
|
|
2184
|
+
body = body.slice(1) ?? null;
|
|
2185
|
+
}
|
|
2186
|
+
let f = {};
|
|
2187
|
+
for (const line of head.split("\n") ?? null) {
|
|
2188
|
+
let i = line.indexOf(":") ?? null;
|
|
2189
|
+
if (i <= 0 || ((line.trim() ?? null).startsWith("#") ?? null)) {
|
|
2190
|
+
continue;
|
|
2191
|
+
}
|
|
2192
|
+
f[((line.slice(0, i) ?? null).trim() ?? null).toLowerCase() ?? null] = unquote(line.slice(i + 1) ?? null) ?? null;
|
|
2193
|
+
}
|
|
2194
|
+
if ((f["kind"] ?? null ?? "") !== "orchestration") {
|
|
2195
|
+
return null;
|
|
2196
|
+
}
|
|
2197
|
+
let roles = {};
|
|
2198
|
+
for (const r of MODEL_ROLES) {
|
|
2199
|
+
let model = f[r] ?? null ?? "";
|
|
2200
|
+
if (model === "") {
|
|
2201
|
+
continue;
|
|
2202
|
+
}
|
|
2203
|
+
let spec = { model, effort: (f[r + "_effort"] ?? null ?? "") !== "" ? f[r + "_effort"] ?? null : null, fallback: splitList(f[r + "_fallback"] ?? null ?? null) ?? null };
|
|
2204
|
+
roles[r] = spec;
|
|
2205
|
+
}
|
|
2206
|
+
let triggers = splitList(f["advisor_triggers"] ?? null ?? null) ?? null;
|
|
2207
|
+
return { name: (f["name"] ?? null ?? "") !== "" ? f["name"] ?? null : "orchestration", description: f["description"] ?? null ?? "", modes: (splitList(f["modes"] ?? null ?? null) ?? null).map((m) => {
|
|
2208
|
+
{
|
|
2209
|
+
return m.toLowerCase() ?? null;
|
|
2210
|
+
}
|
|
2211
|
+
}) ?? null, roles, advisorTriggers: triggers.length > 0 ? triggers : null, advisorMaxCalls: num(f["advisor_max_calls"] ?? null ?? null) ?? null, routerThreshold: num(f["router_threshold"] ?? null ?? null) ?? null, maxConcurrent: num(f["max_concurrent"] ?? null ?? null) ?? null, guidance: body.trim() ?? null };
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
function skillsForMode(skills, mode) {
|
|
2215
|
+
{
|
|
2216
|
+
if (mode === "off" || !(Array.isArray(skills) ?? null)) {
|
|
2217
|
+
return [];
|
|
2218
|
+
}
|
|
2219
|
+
return skills.filter((s) => {
|
|
2220
|
+
{
|
|
2221
|
+
return s != null && ((__v) => __v == null ? "null" : typeof __v)(s) === "object" && (s.modes.length === 0 || (s.modes.includes(mode) ?? null));
|
|
2222
|
+
}
|
|
2223
|
+
}) ?? null;
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
async function chooseOrchestrationSkill(callModel, skills, task, mode) {
|
|
2227
|
+
{
|
|
2228
|
+
let candidates = skillsForMode(skills, mode) ?? null;
|
|
2229
|
+
if (candidates.length === 0) {
|
|
2230
|
+
return null;
|
|
2231
|
+
}
|
|
2232
|
+
if (candidates.length === 1) {
|
|
2233
|
+
return candidates[0] ?? null;
|
|
2234
|
+
}
|
|
2235
|
+
let list = (candidates.map((s) => {
|
|
2236
|
+
{
|
|
2237
|
+
return "- " + s.name + ": " + s.description;
|
|
2238
|
+
}
|
|
2239
|
+
}) ?? null).join("\n") ?? null;
|
|
2240
|
+
let messages = [{ role: "system", content: "Pick the orchestration skill that fits the task. Reply with its name only, or `none`." }, { role: "user", content: "Skills:\n" + list + "\n\nTask:\n" + task }];
|
|
2241
|
+
let turn = null;
|
|
2242
|
+
try {
|
|
2243
|
+
{
|
|
2244
|
+
turn = await (callModel(messages, [], {}, null, null) ?? null);
|
|
2245
|
+
}
|
|
2246
|
+
} catch (err) {
|
|
2247
|
+
{
|
|
2248
|
+
return null;
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
let said = ((String(turn.text ?? "") ?? null).trim() ?? null).toLowerCase() ?? null;
|
|
2252
|
+
for (const ch of ["`", "'", '"', "*", "."]) {
|
|
2253
|
+
said = (said.split(ch) ?? null).join("") ?? null;
|
|
2254
|
+
}
|
|
2255
|
+
for (const s of candidates) {
|
|
2256
|
+
if (said === (s.name.toLowerCase() ?? null) || (said.includes(s.name.toLowerCase() ?? null) ?? null)) {
|
|
2257
|
+
return s;
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
return null;
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/indexeddb.js
|
|
2265
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2266
|
+
function indexedDbStore(name = "hypery-agents") {
|
|
2267
|
+
let db = null;
|
|
2268
|
+
const open = () => db ?? (db = new Promise((res, rej) => {
|
|
2269
|
+
const req = indexedDB.open(name, 1);
|
|
2270
|
+
req.onupgradeneeded = () => {
|
|
2271
|
+
req.result.createObjectStore("kv");
|
|
2272
|
+
};
|
|
2273
|
+
req.onsuccess = () => res(req.result);
|
|
2274
|
+
req.onerror = () => rej(req.error);
|
|
2275
|
+
}));
|
|
2276
|
+
const tx = async (mode, fn) => {
|
|
2277
|
+
const store = (await open()).transaction("kv", mode).objectStore("kv");
|
|
2278
|
+
return new Promise((res, rej) => {
|
|
2279
|
+
const r = fn(store);
|
|
2280
|
+
r.onsuccess = () => res(r.result);
|
|
2281
|
+
r.onerror = () => rej(r.error);
|
|
2282
|
+
});
|
|
2283
|
+
};
|
|
2284
|
+
return {
|
|
2285
|
+
// A missing key reads as null, as the core's stores do.
|
|
2286
|
+
get: async (k) => await tx("readonly", (s) => s.get(k)) ?? null,
|
|
2287
|
+
set: async (k, v) => {
|
|
2288
|
+
await tx("readwrite", (s) => s.put(structuredClone(v), k));
|
|
2289
|
+
},
|
|
2290
|
+
delete: async (k) => {
|
|
2291
|
+
await tx("readwrite", (s) => s.delete(k));
|
|
2292
|
+
},
|
|
2293
|
+
keys: async (prefix) => (await tx("readonly", (s) => s.getAllKeys())).map(String).filter((k) => k.startsWith(prefix))
|
|
2294
|
+
};
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.2.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_0fc2620bf214502a0a137dd7e0276f4d/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
2298
|
+
function createHyperyModel2(opts) {
|
|
2299
|
+
return createHyperyModel({ ...opts, fetch: opts.fetch ?? ((url, init) => fetch(url, init)) });
|
|
2300
|
+
}
|
|
2301
|
+
function createAgentRuntime2(host) {
|
|
2302
|
+
return createAgentRuntime({
|
|
2303
|
+
...host,
|
|
2304
|
+
createSignal: host.createSignal ?? (() => {
|
|
2305
|
+
const controller = new AbortController();
|
|
2306
|
+
return { signal: controller.signal, stop: () => controller.abort() };
|
|
2307
|
+
})
|
|
2308
|
+
// The core types a child's signal as anything with `aborted`; here every one comes from `createSignal`, whose
|
|
2309
|
+
// signals are AbortSignals — so the host's callbacks may rely on that.
|
|
2310
|
+
});
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
// lib/agent/stream-parse.ts
|
|
2314
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2315
|
+
|
|
2316
|
+
// lib/agent/gateway.ts
|
|
2317
|
+
var session = {
|
|
2318
|
+
token: () => accessToken(),
|
|
2319
|
+
team: () => activeHyperyTeamId(),
|
|
2320
|
+
paymentSource: async () => (await paymentSourceHeaders())[HYPERY_PAYMENT_SOURCE_HEADER] === "credits" ? "credits" : null,
|
|
2321
|
+
gatewayUrl: HYPERY_GATEWAY_URL
|
|
2322
|
+
};
|
|
2323
|
+
var agentModel2 = (model) => createHyperyModel2({
|
|
2324
|
+
...session,
|
|
2325
|
+
model: () => {
|
|
2326
|
+
const id = model();
|
|
2327
|
+
if (!id) throw agentModelError("Pick a chat model for the agent first.", "no_model", 400);
|
|
2328
|
+
return id;
|
|
2329
|
+
}
|
|
2330
|
+
});
|
|
2331
|
+
|
|
2332
|
+
// lib/agent/turn-recovery.ts
|
|
2333
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2334
|
+
var ACTION_NUDGES = 2;
|
|
2335
|
+
var MAX_READ_ROUNDS = 4;
|
|
2336
|
+
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.";
|
|
2337
|
+
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.";
|
|
2338
|
+
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;
|
|
2339
|
+
function wantsChange(text) {
|
|
2340
|
+
const body = text.trim();
|
|
2341
|
+
if (!body) return false;
|
|
2342
|
+
return !(body.endsWith("?") && QUESTION_START.test(body));
|
|
2343
|
+
}
|
|
2344
|
+
function createActionGuard(opts) {
|
|
2345
|
+
const maxReads = opts.maxReadRounds ?? MAX_READ_ROUNDS;
|
|
2346
|
+
const maxNudges = opts.nudges ?? ACTION_NUDGES;
|
|
2347
|
+
let readRounds = opts.initial?.readRounds ?? 0;
|
|
2348
|
+
let nudges = opts.initial?.nudges ?? 0;
|
|
2349
|
+
let acted = false;
|
|
2350
|
+
let actedThisRound = false;
|
|
2351
|
+
let ranThisRound = false;
|
|
2352
|
+
let notes = [];
|
|
2353
|
+
let choice = null;
|
|
2354
|
+
let budgetSpent = readRounds >= maxReads;
|
|
2355
|
+
return {
|
|
2356
|
+
onRun(run, changed) {
|
|
2357
|
+
ranThisRound = true;
|
|
2358
|
+
if (run.ok && changed) {
|
|
2359
|
+
acted = true;
|
|
2360
|
+
actedThisRound = true;
|
|
2361
|
+
}
|
|
2362
|
+
},
|
|
2363
|
+
onRoundEnd() {
|
|
2364
|
+
if (!opts.enabled || acted || !ranThisRound) {
|
|
2365
|
+
ranThisRound = false;
|
|
2366
|
+
actedThisRound = false;
|
|
2367
|
+
return;
|
|
2368
|
+
}
|
|
2369
|
+
if (!actedThisRound) readRounds++;
|
|
2370
|
+
ranThisRound = false;
|
|
2371
|
+
actedThisRound = false;
|
|
2372
|
+
if (!budgetSpent && readRounds >= maxReads) {
|
|
2373
|
+
budgetSpent = true;
|
|
2374
|
+
notes.push(READ_BUDGET_NOTE);
|
|
2375
|
+
choice = "required";
|
|
2376
|
+
}
|
|
2377
|
+
},
|
|
2378
|
+
onNudge() {
|
|
2379
|
+
nudges++;
|
|
2380
|
+
if (opts.enabled && nudges >= maxNudges && opts.writeTool) choice = forceTool(opts.writeTool);
|
|
2381
|
+
else if (opts.enabled) choice = "required";
|
|
2382
|
+
return nudges;
|
|
2383
|
+
},
|
|
2384
|
+
drain() {
|
|
2385
|
+
const out = notes;
|
|
2386
|
+
notes = [];
|
|
2387
|
+
return out;
|
|
2388
|
+
},
|
|
2389
|
+
toolChoice() {
|
|
2390
|
+
if (acted) return null;
|
|
2391
|
+
const c = choice;
|
|
2392
|
+
choice = null;
|
|
2393
|
+
return c;
|
|
2394
|
+
},
|
|
2395
|
+
get acted() {
|
|
2396
|
+
return acted;
|
|
2397
|
+
},
|
|
2398
|
+
state: () => ({ readRounds, nudges, forced: budgetSpent })
|
|
2399
|
+
};
|
|
2400
|
+
}
|
|
2401
|
+
function createToolLedger(initial = null) {
|
|
2402
|
+
let done = { ...initial ?? {} };
|
|
2403
|
+
return {
|
|
2404
|
+
get: (id) => done[id],
|
|
2405
|
+
record: (run) => {
|
|
2406
|
+
done = { ...done, [run.id]: { id: run.id, name: run.name, argsText: run.argsText, ok: run.ok, summary: run.summary, content: run.content } };
|
|
2407
|
+
},
|
|
2408
|
+
entries: () => done,
|
|
2409
|
+
clear: () => {
|
|
2410
|
+
done = {};
|
|
2411
|
+
}
|
|
2412
|
+
};
|
|
2413
|
+
}
|
|
2414
|
+
async function runOnce(ledger, call, run) {
|
|
2415
|
+
const seen = ledger.get(call.id);
|
|
2416
|
+
if (seen) return { ...seen, acted: false, replayed: true };
|
|
2417
|
+
const result = await run();
|
|
2418
|
+
ledger.record(result);
|
|
2419
|
+
return result;
|
|
2420
|
+
}
|
|
2421
|
+
function resumeTranscript(checkpoint, pending, ledger) {
|
|
2422
|
+
if (!pending?.calls.length) return checkpoint;
|
|
2423
|
+
const answered = new Set(checkpoint.filter((m) => m.role === "tool").map((m) => m.tool_call_id));
|
|
2424
|
+
if (pending.calls.every((c) => answered.has(c.id))) return checkpoint;
|
|
2425
|
+
const assistant = {
|
|
2426
|
+
role: "assistant",
|
|
2427
|
+
content: pending.text,
|
|
2428
|
+
tool_calls: pending.calls.map((c) => ({ id: c.id, type: "function", function: { name: c.name, arguments: c.argsText } }))
|
|
2429
|
+
};
|
|
2430
|
+
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 }));
|
|
2431
|
+
return [...checkpoint, assistant, ...answers];
|
|
2432
|
+
}
|
|
2433
|
+
var browserSignals = () => {
|
|
2434
|
+
if (typeof document === "undefined" || typeof window === "undefined") return null;
|
|
2435
|
+
return {
|
|
2436
|
+
hidden: () => document.visibilityState === "hidden",
|
|
2437
|
+
online: () => typeof navigator === "undefined" || navigator.onLine !== false,
|
|
2438
|
+
subscribe: (fn) => {
|
|
2439
|
+
document.addEventListener("visibilitychange", fn);
|
|
2440
|
+
window.addEventListener("online", fn);
|
|
2441
|
+
window.addEventListener("pageshow", fn);
|
|
2442
|
+
return () => {
|
|
2443
|
+
document.removeEventListener("visibilitychange", fn);
|
|
2444
|
+
window.removeEventListener("online", fn);
|
|
2445
|
+
window.removeEventListener("pageshow", fn);
|
|
2446
|
+
};
|
|
2447
|
+
}
|
|
2448
|
+
};
|
|
2449
|
+
};
|
|
2450
|
+
function whenResumable(signals = browserSignals(), signal, offlineWaitMs = 0) {
|
|
2451
|
+
if (!signals || signal?.aborted) return Promise.resolve();
|
|
2452
|
+
const visible = () => !signals.hidden() ? Promise.resolve() : new Promise((resolve2) => {
|
|
2453
|
+
const done = () => {
|
|
2454
|
+
off();
|
|
2455
|
+
signal?.removeEventListener("abort", done);
|
|
2456
|
+
resolve2();
|
|
2457
|
+
};
|
|
2458
|
+
const off = signals.subscribe(() => {
|
|
2459
|
+
if (!signals.hidden()) done();
|
|
2460
|
+
});
|
|
2461
|
+
signal?.addEventListener("abort", done);
|
|
2462
|
+
});
|
|
2463
|
+
return visible().then(() => {
|
|
2464
|
+
if (!offlineWaitMs || signals.online() || signal?.aborted) return;
|
|
2465
|
+
return new Promise((resolve2) => {
|
|
2466
|
+
const done = () => {
|
|
2467
|
+
clearTimeout(timer);
|
|
2468
|
+
off();
|
|
2469
|
+
signal?.removeEventListener("abort", done);
|
|
2470
|
+
resolve2();
|
|
2471
|
+
};
|
|
2472
|
+
const timer = setTimeout(done, offlineWaitMs);
|
|
2473
|
+
const off = signals.subscribe(() => {
|
|
2474
|
+
if (signals.online()) done();
|
|
2475
|
+
});
|
|
2476
|
+
signal?.addEventListener("abort", done);
|
|
2477
|
+
});
|
|
2478
|
+
});
|
|
2479
|
+
}
|
|
2480
|
+
function isInterruption(err, hidden = false) {
|
|
2481
|
+
if (hidden) return true;
|
|
2482
|
+
const e = err ?? {};
|
|
2483
|
+
if (e.code === "ai_timeout") return true;
|
|
2484
|
+
if (typeof e.status === "number") return e.status >= 500 || e.status === 408;
|
|
2485
|
+
const text = `${String(e.name ?? "")} ${String(e.code ?? "")} ${String(e.message ?? "")}`.toLowerCase();
|
|
2486
|
+
return ["load failed", "failed to fetch", "network", "fetch failed", "econnreset", "socket", "stream", "stalled", "timed out", "timeout"].some((w) => text.includes(w));
|
|
2487
|
+
}
|
|
2488
|
+
function serialRuns(inner) {
|
|
2489
|
+
const latest = /* @__PURE__ */ new Map();
|
|
2490
|
+
let queue = Promise.resolve();
|
|
2491
|
+
return {
|
|
2492
|
+
peek: (id) => latest.get(id),
|
|
2493
|
+
get: async (id) => latest.get(id) ?? inner.get(id),
|
|
2494
|
+
save: (rec) => {
|
|
2495
|
+
latest.set(rec.id, rec);
|
|
2496
|
+
const write = queue.then(() => inner.save(rec));
|
|
2497
|
+
queue = write.catch(() => {
|
|
2498
|
+
});
|
|
2499
|
+
return write;
|
|
2500
|
+
},
|
|
2501
|
+
list: async () => {
|
|
2502
|
+
await queue;
|
|
2503
|
+
return inner.list();
|
|
2504
|
+
},
|
|
2505
|
+
remove: (id) => {
|
|
2506
|
+
latest.delete(id);
|
|
2507
|
+
const write = queue.then(() => inner.remove(id));
|
|
2508
|
+
queue = write.catch(() => {
|
|
2509
|
+
});
|
|
2510
|
+
return write;
|
|
2511
|
+
}
|
|
2512
|
+
};
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
// lib/agent/tools/subagent-tools.ts
|
|
2516
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2517
|
+
|
|
2518
|
+
// lib/agent/subagent.ts
|
|
2519
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2520
|
+
|
|
2521
|
+
// lib/agent/orchestration.ts
|
|
2522
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2523
|
+
var MODE_KEY = "popcraft-agent-orchestration";
|
|
2524
|
+
function loadMode() {
|
|
2525
|
+
try {
|
|
2526
|
+
return normalizeMode(typeof localStorage === "undefined" ? null : localStorage.getItem(MODE_KEY));
|
|
2527
|
+
} catch {
|
|
2528
|
+
return "auto";
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
var useOrchestrationStore = create(() => ({ mode: loadMode() }));
|
|
2532
|
+
var orchestrationMode = () => useOrchestrationStore.getState().mode;
|
|
2533
|
+
var orchestrationSkillOf = (skill) => parseOrchestrationSkill(skill.instructions);
|
|
2534
|
+
var orchestrationSkills = (skills = allSkills()) => skills.map(orchestrationSkillOf).filter((s) => s !== null);
|
|
2535
|
+
var current = null;
|
|
2536
|
+
var currentOrchestration = () => current;
|
|
2537
|
+
async function orchestrateTurn(opts) {
|
|
2538
|
+
const mode = opts.mode ?? orchestrationMode();
|
|
2539
|
+
let skill = null;
|
|
2540
|
+
if (mode !== "off") {
|
|
2541
|
+
skill = await chooseOrchestrationSkill(opts.callModel, opts.skills ?? orchestrationSkills(), opts.task, mode).catch(() => null);
|
|
2542
|
+
}
|
|
2543
|
+
if (skill && opts.explicitModel && skill.roles?.lead) {
|
|
2544
|
+
const { lead: _lead, ...roles } = skill.roles;
|
|
2545
|
+
skill = { ...skill, roles };
|
|
2546
|
+
}
|
|
2547
|
+
current = createOrchestration(opts.callModel, { mode, skill, onEvent: opts.onEvent });
|
|
2548
|
+
return current;
|
|
2549
|
+
}
|
|
2550
|
+
function endOrchestration(orch) {
|
|
2551
|
+
if (current === orch) current = null;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2554
|
+
// lib/agent/prompt.ts
|
|
2555
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2556
|
+
init_limits();
|
|
2557
|
+
var PROMPT_LIMITS = {
|
|
2558
|
+
maxPromptChars: 14400,
|
|
2559
|
+
maxSkillIndexChars: 5800,
|
|
2560
|
+
maxProfileIndexChars: 1600,
|
|
2561
|
+
maxContextChars: AI_LIMITS.maxContextChars,
|
|
2562
|
+
maxSelectionItems: 12
|
|
2563
|
+
};
|
|
2564
|
+
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.`;
|
|
2565
|
+
var HOW_TO_WORK = `How you work:
|
|
2566
|
+
- Inspect before you edit. Read the selection and the layers you are about to change; never guess at node ids, colors or sizes.
|
|
2567
|
+
- 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.
|
|
2568
|
+
- 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.
|
|
2569
|
+
- Stay inside the scope the user pointed at. The selection is the default scope; do not touch the rest of the page unless asked.
|
|
2570
|
+
- Explain briefly. A line or two about what you did and why, with counts rather than lists. No preamble, no restating the request.
|
|
2571
|
+
- 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.
|
|
2572
|
+
- Pixel art (sprites, characters, items, tiles, 8-/16-bit) always goes in Pixel canvases made with k.pixels, never rects or vectors \u2014 even when the file already holds vector sprites. Read the pixel-sprites skill first. When the request does not say whether the sprite is still or animated (or pixel versus vector), ask with ask_user before building: that choice is consequential, so it is an exception to asking rarely.
|
|
2573
|
+
- Plan visibly for anything longer than a couple of steps: manage_todos puts the plan in front of the user and keeps you honest.
|
|
2574
|
+
- 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.
|
|
2575
|
+
- 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.
|
|
2576
|
+
- 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.`;
|
|
2577
|
+
var describeNodes = (doc, ids) => {
|
|
2578
|
+
const shown = ids.slice(0, PROMPT_LIMITS.maxSelectionItems);
|
|
2579
|
+
const parts = shown.map((id) => {
|
|
2580
|
+
const n = doc.nodes[id];
|
|
2581
|
+
return n ? `${id} (${n.type}${n.name ? ` "${str(n.name, 40)}"` : ""})` : `${id} (missing)`;
|
|
2582
|
+
});
|
|
2583
|
+
const rest = ids.length - shown.length;
|
|
2584
|
+
return parts.join(", ") + (rest > 0 ? `, +${rest} more` : "");
|
|
2585
|
+
};
|
|
2586
|
+
function buildContextBlock(ctx, maxChars = PROMPT_LIMITS.maxContextChars) {
|
|
2587
|
+
const { doc, pageId, selection } = ctx;
|
|
2588
|
+
const page = doc.nodes[pageId];
|
|
2589
|
+
const lines = [
|
|
2590
|
+
`Document: "${str(doc.name, AI_LIMITS.maxNameChars)}" (${doc.pages.length} page${doc.pages.length === 1 ? "" : "s"}, ${Object.keys(doc.nodes).length} nodes)`,
|
|
2591
|
+
`Current page: ${page ? `"${str(page.name, AI_LIMITS.maxNameChars)}"` : "unknown"} (id ${pageId}, ${page?.childIds?.length ?? 0} top-level layers)`,
|
|
2592
|
+
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."
|
|
2593
|
+
];
|
|
2594
|
+
const mentions = mentionContext(ctx.mentions, doc);
|
|
2595
|
+
if (mentions) lines.push(mentions);
|
|
2596
|
+
if (ctx.camera) {
|
|
2597
|
+
const z = Math.round(ctx.camera.zoom * 100);
|
|
2598
|
+
const size = ctx.viewport ? `, ${Math.round(ctx.viewport.width / ctx.camera.zoom)}x${Math.round(ctx.viewport.height / ctx.camera.zoom)} canvas units visible` : "";
|
|
2599
|
+
lines.push(`Viewport: ${z}% zoom at (${Math.round(ctx.camera.x)}, ${Math.round(ctx.camera.y)})${size}`);
|
|
2600
|
+
}
|
|
2601
|
+
const design = buildDesignContext(doc, Math.max(200, Math.floor(maxChars / 2)));
|
|
2602
|
+
if (design) lines.push(design);
|
|
2603
|
+
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.");
|
|
2604
|
+
return joinWithin(lines, maxChars);
|
|
2605
|
+
}
|
|
2606
|
+
function buildSkillIndex(skills, maxChars = PROMPT_LIMITS.maxSkillIndexChars) {
|
|
2607
|
+
return joinWithin(skills.filter((s) => parseOrchestrationSkill(s.instructions) === null).map(skillIndexLine), maxChars);
|
|
2608
|
+
}
|
|
2609
|
+
function buildProfileIndex(profiles, maxChars = PROMPT_LIMITS.maxProfileIndexChars) {
|
|
2610
|
+
return joinWithin(profiles.map(profileIndexLine), maxChars);
|
|
2611
|
+
}
|
|
2612
|
+
function buildSubagentPrompt(instructions, ctx) {
|
|
2613
|
+
const prompt = [instructions, SUBAGENT_FRAMING, `Current context:
|
|
2614
|
+
${buildContextBlock(ctx)}`].join("\n\n");
|
|
2615
|
+
return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
|
|
2616
|
+
\u2026`;
|
|
2617
|
+
}
|
|
2618
|
+
function buildSystemPrompt(ctx) {
|
|
2619
|
+
const skills = ctx.skills ?? allSkills();
|
|
2620
|
+
const profiles = ctx.profiles ?? allProfiles();
|
|
2621
|
+
const active = ctx.activeSkillId ? findSkill(ctx.activeSkillId) : void 0;
|
|
2622
|
+
const sections = [
|
|
2623
|
+
IDENTITY,
|
|
2624
|
+
HOW_TO_WORK,
|
|
2625
|
+
`Skills (read the full instructions with read_skill before you follow one \u2014 only the summaries are here):
|
|
2626
|
+
${buildSkillIndex(skills)}`,
|
|
2627
|
+
`Subagent profiles (spawn one with task({ subagent_type, prompt }); it starts fresh, sees this document but not this conversation, and returns only a summary):
|
|
2628
|
+
${buildProfileIndex(profiles)}`,
|
|
2629
|
+
active ? `The user selected the "${active.name}" skill (${active.id}) for this turn. Call read_skill("${active.id}") first and follow it.` : "",
|
|
2630
|
+
// Last on purpose: selection, camera and viewport change every turn, and providers cache prompts by
|
|
2631
|
+
// prefix — everything above is identical from turn to turn, so it stays cacheable.
|
|
2632
|
+
`Current context:
|
|
2633
|
+
${buildContextBlock(ctx)}`
|
|
2634
|
+
].filter(Boolean);
|
|
2635
|
+
const prompt = sections.join("\n\n");
|
|
2636
|
+
return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
|
|
2637
|
+
\u2026`;
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
// lib/agent/subagent.ts
|
|
2641
|
+
var PARENT_ONLY_TOOLS = ["task", "await_job", "send_message", "stop_agent", "list_agents"];
|
|
2642
|
+
var AGENT_SESSIONS_DB = "popcraft-agent-sessions";
|
|
2643
|
+
var FAST_HINTS = ["flash", "mini", "haiku", "lite", "nano", "small"];
|
|
2644
|
+
var isFastModelId = (id) => {
|
|
2645
|
+
const lower = id.toLowerCase();
|
|
2646
|
+
return FAST_HINTS.some((h) => lower.includes(h));
|
|
2647
|
+
};
|
|
2648
|
+
function canRunTools(model) {
|
|
2649
|
+
if (model.capabilities && !model.capabilities.includes("tools")) return false;
|
|
2650
|
+
const modalities = model.outputModalities;
|
|
2651
|
+
if (modalities?.length && !modalities.includes("text")) return false;
|
|
2652
|
+
return !/(^|[-/_])image([-/_]|$)/.test(model.id.toLowerCase());
|
|
2653
|
+
}
|
|
2654
|
+
function pickChildModel(profile, parentModel, catalog) {
|
|
2655
|
+
const explicit = profile.model?.trim();
|
|
2656
|
+
if (explicit && explicit !== "inherit") return explicit;
|
|
2657
|
+
if (!profile.readOnly) return parentModel;
|
|
2658
|
+
const fast = catalog.find((m) => isFastModelId(m.id) && canRunTools(m));
|
|
2659
|
+
return fast?.id ?? parentModel;
|
|
2660
|
+
}
|
|
2661
|
+
function childToolNames(profile, registered, forceReadOnly) {
|
|
2662
|
+
const wanted = profile.tools.includes(ALL_TOOLS) ? null : new Set(profile.tools);
|
|
2663
|
+
const parentOnly = new Set(PARENT_ONLY_TOOLS);
|
|
2664
|
+
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);
|
|
2665
|
+
}
|
|
2666
|
+
function editorPromptContext() {
|
|
2667
|
+
const st = useEditorStore.getState();
|
|
2668
|
+
return {
|
|
2669
|
+
doc: st.document,
|
|
2670
|
+
pageId: st.currentPageId,
|
|
2671
|
+
selection: st.selection,
|
|
2672
|
+
camera: st.camera,
|
|
2673
|
+
viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
|
|
2674
|
+
readOnly: !!editBlockReason()
|
|
2675
|
+
};
|
|
2676
|
+
}
|
|
2677
|
+
var childToolListener = null;
|
|
2678
|
+
function onChildTool(fn) {
|
|
2679
|
+
childToolListener = fn;
|
|
2680
|
+
return () => {
|
|
2681
|
+
if (childToolListener === fn) childToolListener = null;
|
|
2682
|
+
};
|
|
2683
|
+
}
|
|
2684
|
+
function subagentHost(deps = {}) {
|
|
2685
|
+
const profiles = deps.profiles ?? allProfiles;
|
|
2686
|
+
const registered = deps.registeredTools ?? (() => allTools().map((t) => ({ name: t.name, readOnly: t.readOnly, confirm: t.confirm, interactive: t.interactive })));
|
|
2687
|
+
const promptContext = deps.promptContext ?? editorPromptContext;
|
|
2688
|
+
const parentModel = deps.parentModel ?? (() => effectiveChatModel());
|
|
2689
|
+
const catalog = deps.catalog ?? (() => useAiStore.getState().catalog?.chat ?? []);
|
|
2690
|
+
const modelCall = deps.modelCall ?? agentModel2;
|
|
2691
|
+
const toolContext = deps.toolContext ?? editorToolContext;
|
|
2692
|
+
const profileOf = (ctx) => profiles().find((p) => p.id === ctx.profile.id) ?? ctx.profile;
|
|
2693
|
+
const readOnly = (ctx) => ctx.readOnly || promptContext().readOnly === true;
|
|
2694
|
+
return {
|
|
2695
|
+
profiles,
|
|
2696
|
+
callModel: modelCall(parentModel),
|
|
2697
|
+
childModel: (ctx) => {
|
|
2698
|
+
const orch = currentOrchestration();
|
|
2699
|
+
if (orch?.skill) {
|
|
2700
|
+
const call = orch.childModel(readOnly(ctx) ? "swarm" : profileOf(ctx).model ?? null);
|
|
2701
|
+
if (call) return call;
|
|
2702
|
+
}
|
|
2703
|
+
const model = pickChildModel(profileOf(ctx), parentModel(), catalog());
|
|
2704
|
+
return modelCall(() => model);
|
|
2705
|
+
},
|
|
2706
|
+
// The turn's skill sets how many background children run at once (null: the SDK's default).
|
|
2707
|
+
maxConcurrent: () => currentOrchestration()?.maxConcurrent ?? null,
|
|
2708
|
+
childSystemPrompt: (ctx) => buildSubagentPrompt(ctx.profile.instructions, promptContext()),
|
|
2709
|
+
childTools: (ctx) => {
|
|
2710
|
+
const all = registered();
|
|
2711
|
+
const names = childToolNames(profileOf(ctx), all, readOnly(ctx));
|
|
2712
|
+
return (names.length ? toolSpecs(names) : []).map((spec) => ({
|
|
2713
|
+
spec,
|
|
2714
|
+
readOnly: all.find((t) => t.name === spec.function.name)?.readOnly === true
|
|
2715
|
+
}));
|
|
2716
|
+
},
|
|
2717
|
+
execChildTool: async (call, ctx) => {
|
|
2718
|
+
if (!childToolNames(profileOf(ctx), registered(), readOnly(ctx)).includes(call.name)) {
|
|
2719
|
+
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.`;
|
|
2720
|
+
return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
|
|
2721
|
+
}
|
|
2722
|
+
const base = toolContext(ctx.signal);
|
|
2723
|
+
const toolCtx = { ...base, actor: { ...base.actor ?? {}, kind: "agent", nested: true, id: ctx.session.id } };
|
|
2724
|
+
try {
|
|
2725
|
+
const result = await runTool(call.name, call.argsText, toolCtx);
|
|
2726
|
+
return { ...call, ok: true, summary: result.summary, content: JSON.stringify(result.data ?? { ok: true, summary: result.summary }), images: result.images };
|
|
2727
|
+
} catch (err) {
|
|
2728
|
+
const message = err.message ?? String(err);
|
|
2729
|
+
return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
|
|
2730
|
+
}
|
|
2731
|
+
},
|
|
2732
|
+
store: deps.store === null ? void 0 : deps.store ?? (typeof indexedDB === "undefined" ? void 0 : sessionStore(indexedDbStore(AGENT_SESSIONS_DB), "editor")),
|
|
2733
|
+
onEvent: (event) => reportChildTool(runtimeRef, event)
|
|
2734
|
+
};
|
|
2735
|
+
}
|
|
2736
|
+
var runtimeRef = null;
|
|
2737
|
+
var MAX_STEPS = 50;
|
|
2738
|
+
var activity = /* @__PURE__ */ new Map();
|
|
2739
|
+
var activityListeners = /* @__PURE__ */ new Set();
|
|
2740
|
+
function recordStep(event) {
|
|
2741
|
+
if (event.type !== "tool-start" && event.type !== "tool-end") return;
|
|
2742
|
+
const name = event.name ?? "";
|
|
2743
|
+
const steps = [...activity.get(event.sessionId) ?? []];
|
|
2744
|
+
if (event.type === "tool-start") steps.push({ name, status: "running" });
|
|
2745
|
+
else {
|
|
2746
|
+
const i = steps.findLastIndex((s) => s.name === name && s.status === "running");
|
|
2747
|
+
const step = { name, status: event.ok ? "done" : "error", summary: event.summary ?? void 0 };
|
|
2748
|
+
if (i >= 0) steps[i] = step;
|
|
2749
|
+
else steps.push(step);
|
|
2750
|
+
}
|
|
2751
|
+
activity.set(event.sessionId, steps.slice(-MAX_STEPS));
|
|
2752
|
+
for (const l of activityListeners) l();
|
|
2753
|
+
}
|
|
2754
|
+
function reportChildTool(runtime, event) {
|
|
2755
|
+
recordStep(event);
|
|
2756
|
+
if (!childToolListener || event.type !== "tool-start" && event.type !== "tool-end") return;
|
|
2757
|
+
const session2 = runtime?.get(event.sessionId);
|
|
2758
|
+
if (!session2) return;
|
|
2759
|
+
const jobId = session2.background ? session2.id : void 0;
|
|
2760
|
+
childToolListener({
|
|
2761
|
+
profile: session2.profile,
|
|
2762
|
+
toolCallId: session2.parentCallId ?? void 0,
|
|
2763
|
+
jobId,
|
|
2764
|
+
job: jobId,
|
|
2765
|
+
name: event.name ?? "",
|
|
2766
|
+
status: event.type === "tool-start" ? "running" : event.ok ? "done" : "error",
|
|
2767
|
+
summary: event.type === "tool-end" ? event.summary ?? void 0 : void 0
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2770
|
+
function agentRuntime() {
|
|
2771
|
+
if (!runtimeRef) {
|
|
2772
|
+
runtimeRef = createAgentRuntime2(subagentHost());
|
|
2773
|
+
void runtimeRef.load();
|
|
2774
|
+
}
|
|
2775
|
+
return runtimeRef;
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
// lib/agent/tools/subagent-tools.ts
|
|
2779
|
+
var MAX_WAIT_MS = 6e5;
|
|
2780
|
+
var DEFAULT_WAIT_MS = 12e4;
|
|
2781
|
+
function subagentDelegate(deps = {}) {
|
|
2782
|
+
const runtime = deps.runtime ?? agentRuntime;
|
|
2783
|
+
return async (raw) => {
|
|
2784
|
+
const request = raw;
|
|
2785
|
+
const rt = runtime();
|
|
2786
|
+
await rt.load();
|
|
2787
|
+
switch (request.op) {
|
|
2788
|
+
case "spawn": {
|
|
2789
|
+
const r = await rt.spawn({
|
|
2790
|
+
profileId: request.profileId,
|
|
2791
|
+
prompt: request.prompt,
|
|
2792
|
+
description: request.description,
|
|
2793
|
+
readOnly: deps.readOnly === true || request.readOnly === true,
|
|
2794
|
+
background: request.background,
|
|
2795
|
+
signal: deps.signal,
|
|
2796
|
+
parentCallId: request.callId
|
|
2797
|
+
});
|
|
2798
|
+
if (r.kind === "refused") return { kind: "refused", reason: r.reason };
|
|
2799
|
+
if (r.kind === "started") return { kind: "job", jobId: r.id };
|
|
2800
|
+
return { kind: "result", jobId: r.id, ok: r.ok, rounds: r.rounds, summary: r.summary };
|
|
2801
|
+
}
|
|
2802
|
+
case "await": {
|
|
2803
|
+
const ms = Math.min(Math.max(request.timeoutMs ?? DEFAULT_WAIT_MS, 1e3), MAX_WAIT_MS);
|
|
2804
|
+
const s = await rt.wait(request.jobId, { timeoutMs: ms, signal: deps.signal });
|
|
2805
|
+
if (!s) return { kind: "unknown-job", jobId: request.jobId };
|
|
2806
|
+
if (s.status !== "running" && s.status !== "queued") rt.dismissFinished(s.id);
|
|
2807
|
+
return { kind: "status", jobId: s.id, status: s.status, summary: s.summary ?? "" };
|
|
2808
|
+
}
|
|
2809
|
+
case "message": {
|
|
2810
|
+
const r = await rt.message(request.jobId, request.text, { wait: request.wait === true, signal: deps.signal });
|
|
2811
|
+
if (r.kind === "unknown") return { kind: "unknown-job", jobId: request.jobId };
|
|
2812
|
+
if (r.kind === "queued") return { kind: "delivered", jobId: r.id, resumed: false };
|
|
2813
|
+
if (r.kind === "resumed") return { kind: "delivered", jobId: r.id, resumed: true };
|
|
2814
|
+
return { kind: "result", jobId: r.id, ok: r.ok, rounds: 0, summary: r.summary };
|
|
2815
|
+
}
|
|
2816
|
+
case "stop":
|
|
2817
|
+
return { kind: "stopped", jobId: request.jobId, stopped: rt.stop(request.jobId) };
|
|
2818
|
+
case "list":
|
|
2819
|
+
return {
|
|
2820
|
+
kind: "list",
|
|
2821
|
+
agents: rt.list().map((s) => ({ id: s.id, profile: s.profile, description: s.description, status: s.status, summary: s.summary ?? void 0 }))
|
|
2822
|
+
};
|
|
2823
|
+
}
|
|
2824
|
+
};
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
// lib/commands/delegate.ts
|
|
2828
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2829
|
+
var TASK_DESCRIPTION = [
|
|
2830
|
+
"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.",
|
|
2831
|
+
"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.",
|
|
2832
|
+
"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."
|
|
2833
|
+
].join("\n\n");
|
|
2834
|
+
var delegateTask = defineCommand({
|
|
2835
|
+
id: "delegate.task",
|
|
2836
|
+
title: "Delegate to a subagent",
|
|
2837
|
+
domain: "delegate",
|
|
2838
|
+
// NOT harmless: a background task or a full-tool child obviously edits the document. The loop's
|
|
2839
|
+
// `readOnly` flag means "independent of the other calls in this batch", which a subagent spawn is, so
|
|
2840
|
+
// the agent exposure keeps saying true while the honest effect says document.
|
|
2841
|
+
effect: "document",
|
|
2842
|
+
permission: null,
|
|
2843
|
+
needs: ["delegate"],
|
|
2844
|
+
params: external_exports.object({
|
|
2845
|
+
subagent_type: external_exports.string().describe("Profile id \u2014 one of the profiles listed in your system prompt (list_profiles for the full set)."),
|
|
2846
|
+
prompt: external_exports.string().describe("The self-contained task. The child does not see this conversation."),
|
|
2847
|
+
description: external_exports.string().optional().describe('Short label for the panel row, e.g. "Survey the pricing page".'),
|
|
2848
|
+
readonly: external_exports.boolean().optional().describe("Force read-only tools for this child, whatever the profile allows."),
|
|
2849
|
+
run_in_background: external_exports.boolean().optional().describe("Return a job id immediately and notify you when the child finishes.")
|
|
2850
|
+
}),
|
|
2851
|
+
expose: {
|
|
2852
|
+
agent: { name: "task", description: TASK_DESCRIPTION, readOnly: true }
|
|
2853
|
+
},
|
|
2854
|
+
run: async (args, ctx) => {
|
|
2855
|
+
const reply = await ctx.use("delegate")({
|
|
2856
|
+
op: "spawn",
|
|
2857
|
+
profileId: args.subagent_type,
|
|
2858
|
+
prompt: args.prompt,
|
|
2859
|
+
description: args.description,
|
|
2860
|
+
readOnly: args.readonly === true,
|
|
2861
|
+
background: args.run_in_background,
|
|
2862
|
+
// omitted → the profile's `background` default (the SDK applies it)
|
|
2863
|
+
callId: ctx.callId
|
|
2864
|
+
});
|
|
2865
|
+
if (reply.kind === "refused") return { summary: "task refused (nested)", data: { error: reply.reason } };
|
|
2866
|
+
if (reply.kind === "job") {
|
|
2867
|
+
return {
|
|
2868
|
+
summary: `${args.subagent_type} started (${reply.jobId})`,
|
|
2869
|
+
data: {
|
|
2870
|
+
job_id: reply.jobId,
|
|
2871
|
+
status: "running",
|
|
2872
|
+
subagent_type: args.subagent_type,
|
|
2873
|
+
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."
|
|
2874
|
+
}
|
|
2875
|
+
};
|
|
2876
|
+
}
|
|
2877
|
+
const result = reply;
|
|
2878
|
+
return {
|
|
2879
|
+
summary: `${args.subagent_type}: ${result.ok ? "done" : "failed"} in ${result.rounds} round${result.rounds === 1 ? "" : "s"}`,
|
|
2880
|
+
data: { job_id: result.jobId, subagent_type: args.subagent_type, ok: result.ok, rounds: result.rounds, summary: result.summary }
|
|
2881
|
+
};
|
|
2882
|
+
}
|
|
2883
|
+
});
|
|
2884
|
+
var delegateAwait = defineCommand({
|
|
2885
|
+
id: "delegate.await",
|
|
2886
|
+
title: "Wait for a subagent",
|
|
2887
|
+
domain: "delegate",
|
|
2888
|
+
effect: "document",
|
|
2889
|
+
permission: null,
|
|
2890
|
+
needs: ["delegate"],
|
|
2891
|
+
params: external_exports.object({
|
|
2892
|
+
job_id: external_exports.string().describe("The id a task call returned."),
|
|
2893
|
+
timeout_ms: external_exports.number().optional().describe("How long to wait at most, in ms (default 120000, at most 600000).")
|
|
2894
|
+
}),
|
|
2895
|
+
expose: {
|
|
2896
|
+
agent: {
|
|
2897
|
+
name: "await_job",
|
|
2898
|
+
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.",
|
|
2899
|
+
readOnly: true
|
|
2900
|
+
}
|
|
2901
|
+
},
|
|
2902
|
+
run: async (args, ctx) => {
|
|
2903
|
+
const reply = await ctx.use("delegate")({ op: "await", jobId: args.job_id, timeoutMs: args.timeout_ms });
|
|
2904
|
+
if (reply.kind === "unknown-job") {
|
|
2905
|
+
return { summary: `No job ${args.job_id}`, data: { error: `No background task with id "${args.job_id}".` } };
|
|
2906
|
+
}
|
|
2907
|
+
const status = reply;
|
|
2908
|
+
if (status.status === "running" || status.status === "queued") {
|
|
2909
|
+
return {
|
|
2910
|
+
summary: `${args.job_id}: ${status.status}`,
|
|
2911
|
+
data: {
|
|
2912
|
+
job_id: args.job_id,
|
|
2913
|
+
status: status.status,
|
|
2914
|
+
note: "Still going after the wait. Carry on with other work; its summary is delivered to you automatically when it lands."
|
|
2915
|
+
}
|
|
2916
|
+
};
|
|
2917
|
+
}
|
|
2918
|
+
return { summary: `${args.job_id}: ${status.status}`, data: { job_id: args.job_id, status: status.status, summary: status.summary ?? "" } };
|
|
2919
|
+
}
|
|
2920
|
+
});
|
|
2921
|
+
var delegateMessage = defineCommand({
|
|
2922
|
+
id: "delegate.message",
|
|
2923
|
+
title: "Message a subagent",
|
|
2924
|
+
domain: "delegate",
|
|
2925
|
+
// A message can resume a builder, which edits the document.
|
|
2926
|
+
effect: "document",
|
|
2927
|
+
permission: null,
|
|
2928
|
+
needs: ["delegate"],
|
|
2929
|
+
params: external_exports.object({
|
|
2930
|
+
job_id: external_exports.string().describe("The id a task call returned."),
|
|
2931
|
+
message: external_exports.string().describe("What to tell it: a correction, an answer to its question, or the next piece of work."),
|
|
2932
|
+
wait: external_exports.boolean().optional().describe("For a finished subagent: resume it and wait for its answer now.")
|
|
2933
|
+
}),
|
|
2934
|
+
expose: {
|
|
2935
|
+
agent: {
|
|
2936
|
+
name: "send_message",
|
|
2937
|
+
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.",
|
|
2938
|
+
readOnly: true
|
|
2939
|
+
}
|
|
2940
|
+
},
|
|
2941
|
+
run: async (args, ctx) => {
|
|
2942
|
+
const reply = await ctx.use("delegate")({ op: "message", jobId: args.job_id, text: args.message, wait: args.wait === true });
|
|
2943
|
+
if (reply.kind === "unknown-job") return { summary: `No subagent ${args.job_id}`, data: { error: `No subagent with id "${args.job_id}".` } };
|
|
2944
|
+
if (reply.kind === "delivered") {
|
|
2945
|
+
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." } };
|
|
2946
|
+
}
|
|
2947
|
+
const result = reply;
|
|
2948
|
+
return { summary: `${args.job_id}: ${result.ok ? "answered" : "failed"}`, data: { job_id: args.job_id, ok: result.ok, summary: result.summary } };
|
|
2949
|
+
}
|
|
2950
|
+
});
|
|
2951
|
+
var delegateStop = defineCommand({
|
|
2952
|
+
id: "delegate.stop",
|
|
2953
|
+
title: "Stop a subagent",
|
|
2954
|
+
domain: "delegate",
|
|
2955
|
+
effect: "none",
|
|
2956
|
+
permission: null,
|
|
2957
|
+
needs: ["delegate"],
|
|
2958
|
+
params: external_exports.object({ job_id: external_exports.string().describe("The id a task call returned.") }),
|
|
2959
|
+
expose: { agent: { name: "stop_agent", description: "Stop one running subagent by id. Edits it already made stay.", readOnly: true } },
|
|
2960
|
+
run: async (args, ctx) => {
|
|
2961
|
+
const reply = await ctx.use("delegate")({ op: "stop", jobId: args.job_id });
|
|
2962
|
+
const stopped = reply.kind === "stopped" && reply.stopped;
|
|
2963
|
+
return { summary: stopped ? `${args.job_id}: stopped` : `${args.job_id}: not running`, data: { job_id: args.job_id, stopped } };
|
|
2964
|
+
}
|
|
2965
|
+
});
|
|
2966
|
+
var delegateList = defineCommand({
|
|
2967
|
+
id: "delegate.list",
|
|
2968
|
+
title: "List subagents",
|
|
2969
|
+
domain: "delegate",
|
|
2970
|
+
effect: "none",
|
|
2971
|
+
permission: null,
|
|
2972
|
+
needs: ["delegate"],
|
|
2973
|
+
params: external_exports.object({}),
|
|
2974
|
+
expose: { agent: { name: "list_agents", description: "List your subagents: id, profile, what each was asked, its status and its last summary.", readOnly: true } },
|
|
2975
|
+
run: async (_args, ctx) => {
|
|
2976
|
+
const reply = await ctx.use("delegate")({ op: "list" });
|
|
2977
|
+
const agents = reply.kind === "list" ? reply.agents : [];
|
|
2978
|
+
return {
|
|
2979
|
+
summary: `${agents.length} subagent${agents.length === 1 ? "" : "s"}`,
|
|
2980
|
+
data: { agents: agents.map((a) => ({ job_id: a.id, subagent_type: a.profile, description: a.description, status: a.status, summary: a.summary })) }
|
|
2981
|
+
};
|
|
2982
|
+
}
|
|
2983
|
+
});
|
|
2984
|
+
var profileList = defineCommand({
|
|
2985
|
+
id: "delegate.listProfiles",
|
|
2986
|
+
title: "List subagent profiles",
|
|
2987
|
+
domain: "delegate",
|
|
2988
|
+
effect: "none",
|
|
2989
|
+
permission: null,
|
|
2990
|
+
params: external_exports.object({}),
|
|
2991
|
+
expose: {
|
|
2992
|
+
agent: {
|
|
2993
|
+
name: "list_profiles",
|
|
2994
|
+
description: "List the subagent profiles you can delegate to with task (id, what each is for, when to use it)."
|
|
2995
|
+
}
|
|
2996
|
+
},
|
|
2997
|
+
run: () => {
|
|
2998
|
+
const profiles = allProfiles();
|
|
2999
|
+
return {
|
|
3000
|
+
summary: `${profiles.length} profile${profiles.length === 1 ? "" : "s"}`,
|
|
3001
|
+
data: {
|
|
3002
|
+
profiles: profiles.map((p) => ({
|
|
3003
|
+
id: p.id,
|
|
3004
|
+
name: p.name,
|
|
3005
|
+
description: p.description,
|
|
3006
|
+
whenToUse: p.whenToUse,
|
|
3007
|
+
readOnly: p.readOnly,
|
|
3008
|
+
tools: p.tools,
|
|
3009
|
+
maxRounds: p.maxRounds
|
|
3010
|
+
}))
|
|
3011
|
+
}
|
|
3012
|
+
};
|
|
3013
|
+
}
|
|
3014
|
+
});
|
|
3015
|
+
var profileRead = defineCommand({
|
|
3016
|
+
id: "delegate.readProfile",
|
|
3017
|
+
title: "Read a subagent profile",
|
|
3018
|
+
domain: "delegate",
|
|
3019
|
+
effect: "none",
|
|
3020
|
+
permission: null,
|
|
3021
|
+
params: external_exports.object({ id: external_exports.string().describe('The profile id, e.g. "inspector".') }),
|
|
3022
|
+
expose: {
|
|
3023
|
+
agent: {
|
|
3024
|
+
name: "read_profile",
|
|
3025
|
+
description: "Read a subagent profile in full \u2014 its instructions, tool allowlist and round budget \u2014 before you delegate to it."
|
|
3026
|
+
}
|
|
3027
|
+
},
|
|
3028
|
+
run: ({ id }) => {
|
|
3029
|
+
const profile = findProfile(id);
|
|
3030
|
+
if (!profile) {
|
|
3031
|
+
return { summary: `No profile "${id}"`, data: { error: `No subagent profile with id "${id}".`, available: allProfiles().map(profileIndexLine) } };
|
|
3032
|
+
}
|
|
3033
|
+
return {
|
|
3034
|
+
summary: `Read profile: ${profile.name}`,
|
|
3035
|
+
data: { id: profile.id, name: profile.name, readOnly: profile.readOnly, tools: profile.tools, maxRounds: profile.maxRounds, instructions: profile.instructions }
|
|
3036
|
+
};
|
|
3037
|
+
}
|
|
3038
|
+
});
|
|
3039
|
+
var delegateCommands = [delegateTask, delegateAwait, delegateMessage, delegateStop, delegateList, profileList, profileRead];
|
|
3040
|
+
function registerDelegateCommands() {
|
|
3041
|
+
registerCommand(...delegateCommands);
|
|
3042
|
+
}
|
|
3043
|
+
|
|
3044
|
+
// lib/commands/skill.ts
|
|
3045
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
3046
|
+
var skillList = defineCommand({
|
|
3047
|
+
id: "skill.list",
|
|
3048
|
+
title: "List skills",
|
|
3049
|
+
domain: "skill",
|
|
3050
|
+
effect: "none",
|
|
3051
|
+
// The skill sheets are the agent's own instructions, not the user's document.
|
|
3052
|
+
permission: null,
|
|
3053
|
+
params: external_exports.object({}),
|
|
3054
|
+
expose: {
|
|
3055
|
+
agent: {
|
|
3056
|
+
name: "list_skills",
|
|
3057
|
+
description: "List the available skills (name, what they are for, and when to use them). The full instructions come from read_skill."
|
|
3058
|
+
}
|
|
3059
|
+
},
|
|
3060
|
+
run: () => {
|
|
3061
|
+
const skills = allSkills();
|
|
3062
|
+
return {
|
|
3063
|
+
summary: `${skills.length} skill${skills.length === 1 ? "" : "s"}`,
|
|
3064
|
+
data: { skills: skills.map((s) => ({ id: s.id, name: s.name, description: s.description, whenToUse: s.whenToUse, tools: s.tools })) }
|
|
3065
|
+
};
|
|
3066
|
+
}
|
|
3067
|
+
});
|
|
3068
|
+
var skillRead = defineCommand({
|
|
3069
|
+
id: "skill.read",
|
|
3070
|
+
title: "Read a skill",
|
|
3071
|
+
domain: "skill",
|
|
3072
|
+
effect: "none",
|
|
3073
|
+
permission: null,
|
|
3074
|
+
params: external_exports.object({ id: external_exports.string().describe('The skill id, e.g. "fill-content".') }),
|
|
3075
|
+
expose: {
|
|
3076
|
+
agent: {
|
|
3077
|
+
name: "read_skill",
|
|
3078
|
+
description: "Read a skill\u2019s full instructions by id. Do this before following a skill; the system prompt only carries the summaries."
|
|
3079
|
+
}
|
|
3080
|
+
},
|
|
3081
|
+
run: ({ id }) => {
|
|
3082
|
+
const skill = findSkill(id);
|
|
3083
|
+
if (!skill) {
|
|
3084
|
+
return {
|
|
3085
|
+
summary: `No skill "${id}"`,
|
|
3086
|
+
data: { error: `No skill with id "${id}".`, available: allSkills().map(skillIndexLine) }
|
|
3087
|
+
};
|
|
3088
|
+
}
|
|
3089
|
+
return {
|
|
3090
|
+
summary: `Read skill: ${skill.name}`,
|
|
3091
|
+
data: { id: skill.id, name: skill.name, tools: skill.tools, instructions: skill.instructions }
|
|
3092
|
+
};
|
|
3093
|
+
}
|
|
3094
|
+
});
|
|
3095
|
+
var skillCommands = [skillList, skillRead];
|
|
3096
|
+
function registerSkillCommands() {
|
|
3097
|
+
registerCommand(...skillCommands);
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
// lib/agent/parts.ts
|
|
3101
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
3102
|
+
function todoItemsFrom(rows) {
|
|
3103
|
+
if (!Array.isArray(rows)) return null;
|
|
3104
|
+
return rows.map((row) => {
|
|
3105
|
+
const t = row ?? {};
|
|
3106
|
+
return {
|
|
3107
|
+
text: String(t.title ?? t.text ?? ""),
|
|
3108
|
+
done: typeof t.done === "boolean" ? t.done : t.status === "done"
|
|
3109
|
+
};
|
|
3110
|
+
});
|
|
3111
|
+
}
|
|
3112
|
+
var textOf2 = (m) => m.parts.filter((p) => p.type === "text").map((p) => p.text).join("");
|
|
3113
|
+
function pushTextDelta(parts, delta) {
|
|
3114
|
+
const last = parts[parts.length - 1];
|
|
3115
|
+
if (last?.type === "text") {
|
|
3116
|
+
parts[parts.length - 1] = { type: "text", text: last.text + delta };
|
|
3117
|
+
return parts;
|
|
3118
|
+
}
|
|
3119
|
+
return [...parts, { type: "text", text: delta }];
|
|
3120
|
+
}
|
|
3121
|
+
function pushReasoningDelta(parts, delta) {
|
|
3122
|
+
const last = parts[parts.length - 1];
|
|
3123
|
+
if (last?.type === "reasoning") {
|
|
3124
|
+
parts[parts.length - 1] = { type: "reasoning", text: last.text + delta };
|
|
3125
|
+
return parts;
|
|
3126
|
+
}
|
|
3127
|
+
return [...parts, { type: "reasoning", text: delta }];
|
|
3128
|
+
}
|
|
3129
|
+
function upsertToolPart(parts, part) {
|
|
3130
|
+
const i = parts.findIndex((p) => p.type === "tool" && p.id === part.id);
|
|
3131
|
+
if (i < 0) return [...parts, part];
|
|
3132
|
+
const next = [...parts];
|
|
3133
|
+
next[i] = { ...next[i], ...part };
|
|
3134
|
+
return next;
|
|
3135
|
+
}
|
|
3136
|
+
|
|
3137
|
+
// lib/agent/runner.ts
|
|
3138
|
+
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"];
|
|
3139
|
+
var MAX_HISTORY_MESSAGES = 24;
|
|
3140
|
+
var MAX_PARALLEL_TOOLS = 4;
|
|
3141
|
+
var MAX_TOOL_RESULT_CHARS = 48e3;
|
|
3142
|
+
var TURN_MAX_ROUNDS = 500;
|
|
3143
|
+
function needsEditableSession(name) {
|
|
3144
|
+
const tool = getTool(name);
|
|
3145
|
+
if (tool?.readOnly) return false;
|
|
3146
|
+
if (tool?.interactive) return false;
|
|
3147
|
+
return true;
|
|
3148
|
+
}
|
|
3149
|
+
function guardEdit(name) {
|
|
3150
|
+
if (!needsEditableSession(name)) return;
|
|
3151
|
+
const reason = editBlockReason();
|
|
3152
|
+
if (reason) throw new ToolError(`${name} cannot run: ${reason}`);
|
|
3153
|
+
}
|
|
3154
|
+
function historyMessages() {
|
|
3155
|
+
return activeMessages().slice(-MAX_HISTORY_MESSAGES).map((m) => ({ role: m.role, content: textOf2(m).trim() })).filter((m) => !!m.content);
|
|
3156
|
+
}
|
|
3157
|
+
function systemMessage(skillId, mentions = []) {
|
|
3158
|
+
const st = useEditorStore.getState();
|
|
3159
|
+
return {
|
|
3160
|
+
role: "system",
|
|
3161
|
+
content: buildSystemPrompt({
|
|
3162
|
+
doc: st.document,
|
|
3163
|
+
pageId: st.currentPageId,
|
|
3164
|
+
selection: st.selection,
|
|
3165
|
+
camera: st.camera,
|
|
3166
|
+
viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
|
|
3167
|
+
activeSkillId: skillId,
|
|
3168
|
+
readOnly: !!editBlockReason(),
|
|
3169
|
+
mentions
|
|
3170
|
+
})
|
|
3171
|
+
};
|
|
3172
|
+
}
|
|
3173
|
+
var registerTurnTools = (deps) => {
|
|
3174
|
+
registerBuiltinTools();
|
|
3175
|
+
registerSkillCommands();
|
|
3176
|
+
registerDelegateCommands();
|
|
3177
|
+
registerDangerousCommands();
|
|
3178
|
+
provideAgentCapability("delegate", subagentDelegate(deps));
|
|
3179
|
+
};
|
|
3180
|
+
var specsFor = (skillId) => {
|
|
3181
|
+
const skill = skillId ? findSkill(skillId) : void 0;
|
|
3182
|
+
return skill?.tools.length ? toolSpecs([.../* @__PURE__ */ new Set([...skill.tools, ...ALWAYS_ALLOWED])]) : toolSpecs();
|
|
3183
|
+
};
|
|
3184
|
+
var loopTools = (skillId) => specsFor(skillId).map((spec) => ({ spec, readOnly: getTool(spec.function.name)?.readOnly === true }));
|
|
3185
|
+
function syncTodos(run) {
|
|
3186
|
+
if (run.name !== "manage_todos" || !run.ok) return;
|
|
3187
|
+
try {
|
|
3188
|
+
const data = JSON.parse(run.content);
|
|
3189
|
+
const items = todoItemsFrom(data.todos);
|
|
3190
|
+
if (items) setTodos(items);
|
|
3191
|
+
} catch {
|
|
3192
|
+
}
|
|
3193
|
+
}
|
|
3194
|
+
var runs;
|
|
3195
|
+
var agentRuns = () => runs ??= serialRuns(runStore(indexedDbStore(AGENT_SESSIONS_DB), "editor"));
|
|
3196
|
+
var setAgentRuns = (store) => {
|
|
3197
|
+
runs = store && serialRuns(store);
|
|
3198
|
+
};
|
|
3199
|
+
var RESUME_WINDOW_MS = 30 * 6e4;
|
|
3200
|
+
var MAX_INTERRUPTIONS = 6;
|
|
3201
|
+
var SUSPEND_RESTART_MS = 5e3;
|
|
3202
|
+
var STOPPED_MESSAGE = "Stopped. Any edits already applied are still there.";
|
|
3203
|
+
async function runTurn(text, mentions = []) {
|
|
3204
|
+
const availability = aiAvailability();
|
|
3205
|
+
if (!availability.ok) {
|
|
3206
|
+
useAgentStore.setState({ error: { message: availability.message, code: availability.reason } });
|
|
3207
|
+
return;
|
|
3208
|
+
}
|
|
3209
|
+
if (!agentModel()) {
|
|
3210
|
+
useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
|
|
3211
|
+
return;
|
|
3212
|
+
}
|
|
3213
|
+
const skillId = mentions.find((m) => m.kind === "skill")?.id ?? useAgentStore.getState().skillId;
|
|
3214
|
+
const checkpoint = rememberCheckpoint(useEditorStore.getState().document);
|
|
3215
|
+
const user = { id: newId(), role: "user", parts: [{ type: "text", text }], createdAt: Date.now() };
|
|
3216
|
+
appendMessage(user);
|
|
3217
|
+
const assistantId = newId();
|
|
3218
|
+
appendMessage({ id: assistantId, role: "assistant", parts: [], createdAt: Date.now(), checkpoint });
|
|
3219
|
+
const s = useAgentStore.getState();
|
|
3220
|
+
const meta = {
|
|
3221
|
+
documentId: s.documentId ?? useEditorStore.getState().document.id,
|
|
3222
|
+
threadId: s.activeThreadId ?? "",
|
|
3223
|
+
assistantId,
|
|
3224
|
+
skillId,
|
|
3225
|
+
mentions,
|
|
3226
|
+
wantsChange: wantsChange(text)
|
|
3227
|
+
};
|
|
3228
|
+
await drive(meta, { messages: [systemMessage(skillId, mentions), ...historyMessages()], checkpoint });
|
|
3229
|
+
}
|
|
3230
|
+
async function resumeInterrupted(documentId) {
|
|
3231
|
+
if (useAgentStore.getState().running) return false;
|
|
3232
|
+
const store = agentRuns();
|
|
3233
|
+
let list;
|
|
3234
|
+
try {
|
|
3235
|
+
list = await interruptedRuns(store);
|
|
3236
|
+
} catch {
|
|
3237
|
+
return false;
|
|
3238
|
+
}
|
|
3239
|
+
const mine = list.filter((r) => r.meta?.documentId === documentId).sort((a, b) => b.updatedAt - a.updatedAt);
|
|
3240
|
+
const [latest, ...rest] = mine;
|
|
3241
|
+
for (const r of rest) await store.save({ ...r, status: "stopped", updatedAt: Date.now() });
|
|
3242
|
+
if (!latest) return false;
|
|
3243
|
+
if (Date.now() - latest.updatedAt > RESUME_WINDOW_MS || !findMessage(latest.meta)) {
|
|
3244
|
+
await store.save({ ...latest, status: "stopped", updatedAt: Date.now() });
|
|
3245
|
+
return false;
|
|
3246
|
+
}
|
|
3247
|
+
if (useAgentStore.getState().running) return false;
|
|
3248
|
+
await drive(latest.meta, { resume: latest });
|
|
3249
|
+
return true;
|
|
3250
|
+
}
|
|
3251
|
+
async function continueTurn() {
|
|
3252
|
+
const s = useAgentStore.getState();
|
|
3253
|
+
if (s.running) return false;
|
|
3254
|
+
const messages = activeMessages();
|
|
3255
|
+
const last = [...messages].reverse().find((m) => m.role === "assistant");
|
|
3256
|
+
if (!last) return false;
|
|
3257
|
+
const record = await agentRuns().get(last.id).catch(() => null);
|
|
3258
|
+
if (record?.meta && record.meta.threadId === s.activeThreadId) {
|
|
3259
|
+
await drive(record.meta, { resume: { ...record, status: "running" } });
|
|
3260
|
+
return true;
|
|
3261
|
+
}
|
|
3262
|
+
const ask = [...messages].reverse().find((m) => m.role === "user");
|
|
3263
|
+
if (!ask) return false;
|
|
3264
|
+
await runTurn(textOf2(ask));
|
|
3265
|
+
return true;
|
|
3266
|
+
}
|
|
3267
|
+
function findMessage(meta) {
|
|
3268
|
+
if (!meta) return void 0;
|
|
3269
|
+
return useAgentStore.getState().threads.find((t) => t.id === meta.threadId)?.messages.find((m) => m.id === meta.assistantId);
|
|
3270
|
+
}
|
|
3271
|
+
function installPageHandlers() {
|
|
3272
|
+
if (typeof window === "undefined") return () => {
|
|
3273
|
+
};
|
|
3274
|
+
const save = () => persistThreads();
|
|
3275
|
+
const onVisibility = () => {
|
|
3276
|
+
if (document.visibilityState === "hidden") save();
|
|
3277
|
+
};
|
|
3278
|
+
window.addEventListener("pagehide", save);
|
|
3279
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
3280
|
+
return () => {
|
|
3281
|
+
window.removeEventListener("pagehide", save);
|
|
3282
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
3283
|
+
};
|
|
3284
|
+
}
|
|
3285
|
+
function resilientModel(model, turn, parts) {
|
|
3286
|
+
return async (messages, specs, hooks, _signal, request) => {
|
|
3287
|
+
await whenResumable(void 0, turn);
|
|
3288
|
+
const call = new AbortController();
|
|
3289
|
+
const onTurnAbort = () => call.abort();
|
|
3290
|
+
turn.addEventListener("abort", onTurnAbort);
|
|
3291
|
+
let hiddenAt = 0;
|
|
3292
|
+
const onVisibility = () => {
|
|
3293
|
+
if (document.visibilityState === "hidden") hiddenAt = Date.now();
|
|
3294
|
+
else if (hiddenAt && Date.now() - hiddenAt > SUSPEND_RESTART_MS) call.abort();
|
|
3295
|
+
};
|
|
3296
|
+
if (typeof document !== "undefined") document.addEventListener("visibilitychange", onVisibility);
|
|
3297
|
+
const base = parts.get();
|
|
3298
|
+
try {
|
|
3299
|
+
const cut = new Promise((_, reject) => call.signal.addEventListener("abort", () => reject(new Error("aborted")), { once: true }));
|
|
3300
|
+
cut.catch(() => {
|
|
3301
|
+
});
|
|
3302
|
+
return await Promise.race([model(messages, specs, hooks, call.signal, request), cut]);
|
|
3303
|
+
} catch (err) {
|
|
3304
|
+
parts.set(base);
|
|
3305
|
+
if (call.signal.aborted && !turn.aborted) throw { message: "The stream was interrupted.", code: "interrupted" };
|
|
3306
|
+
throw err;
|
|
3307
|
+
} finally {
|
|
3308
|
+
turn.removeEventListener("abort", onTurnAbort);
|
|
3309
|
+
if (typeof document !== "undefined") document.removeEventListener("visibilitychange", onVisibility);
|
|
3310
|
+
}
|
|
3311
|
+
};
|
|
3312
|
+
}
|
|
3313
|
+
function lastUserText(messages) {
|
|
3314
|
+
const m = [...messages].reverse().find((x) => x.role === "user");
|
|
3315
|
+
return typeof m?.content === "string" ? m.content : m ? JSON.stringify(m.content) : "";
|
|
3316
|
+
}
|
|
3317
|
+
function withGuidance(messages, guidance) {
|
|
3318
|
+
const i = messages.findIndex((m) => m.role === "system");
|
|
3319
|
+
if (i < 0) return [{ role: "system", content: guidance }, ...messages];
|
|
3320
|
+
const sys = messages[i];
|
|
3321
|
+
return messages.map((m, j) => j === i ? { ...sys, content: `${typeof sys.content === "string" ? sys.content : ""}
|
|
3322
|
+
|
|
3323
|
+
${guidance}` } : m);
|
|
3324
|
+
}
|
|
3325
|
+
async function drive(meta, initial) {
|
|
3326
|
+
let start = initial;
|
|
3327
|
+
const model = agentModel();
|
|
3328
|
+
if (!model) {
|
|
3329
|
+
useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
|
|
3330
|
+
return;
|
|
3331
|
+
}
|
|
3332
|
+
const store = agentRuns();
|
|
3333
|
+
const id = meta.assistantId;
|
|
3334
|
+
const before = useEditorStore.getState().document;
|
|
3335
|
+
if (useAgentStore.getState().activeThreadId !== meta.threadId) useAgentStore.setState({ activeThreadId: meta.threadId });
|
|
3336
|
+
let checkpoint = "checkpoint" in start ? start.checkpoint : findMessage(meta)?.checkpoint;
|
|
3337
|
+
if (!checkpoint) {
|
|
3338
|
+
checkpoint = rememberCheckpoint(before);
|
|
3339
|
+
updateMessage(id, (m) => ({ ...m, checkpoint }), { save: false });
|
|
3340
|
+
}
|
|
3341
|
+
const ledger = createToolLedger(meta.ledger);
|
|
3342
|
+
let parts = [...findMessage(meta)?.parts ?? []].filter((p) => !(p.type === "error" && p.message === STOPPED_MESSAGE));
|
|
3343
|
+
const flush = (save = false) => setParts(id, parts, { save });
|
|
3344
|
+
if ("resume" in start) {
|
|
3345
|
+
parts = parts.map((p) => {
|
|
3346
|
+
if (p.type !== "tool" || p.status !== "running") return p;
|
|
3347
|
+
const done = ledger.get(p.id);
|
|
3348
|
+
return done ? { ...p, status: done.ok ? "done" : "error", summary: done.summary, result: done.content } : { ...p, status: "error", summary: "interrupted", error: "interrupted" };
|
|
3349
|
+
});
|
|
3350
|
+
parts = [...parts, { type: "notice", kind: "resumed" }];
|
|
3351
|
+
flush(true);
|
|
3352
|
+
}
|
|
3353
|
+
const abort = new AbortController();
|
|
3354
|
+
useAgentStore.setState({ running: true, resuming: false, abort, error: null });
|
|
3355
|
+
const ctx = editorToolContext(abort.signal);
|
|
3356
|
+
const { createDesignPreview, DESIGN_TOOL } = await import("./live-GIVKQPCU.js");
|
|
3357
|
+
const preview = createDesignPreview();
|
|
3358
|
+
const readOnly = !!editBlockReason();
|
|
3359
|
+
registerTurnTools({ readOnly, signal: abort.signal });
|
|
3360
|
+
const runtime = agentRuntime();
|
|
3361
|
+
const fresh = "messages" in start ? start : null;
|
|
3362
|
+
const resumed = !fresh;
|
|
3363
|
+
const pool = orchestrationSkills();
|
|
3364
|
+
const orch = await orchestrateTurn({
|
|
3365
|
+
callModel: agentModel2(() => model),
|
|
3366
|
+
task: fresh ? lastUserText(fresh.messages) : "",
|
|
3367
|
+
mode: resumed && !meta.orchestrationSkill ? "off" : void 0,
|
|
3368
|
+
skills: resumed ? pool.filter((s) => s.name === meta.orchestrationSkill) : pool
|
|
3369
|
+
}).catch(() => null);
|
|
3370
|
+
meta.orchestrationSkill = orch?.skill?.name ?? null;
|
|
3371
|
+
if (fresh && orch?.guidance) start = { ...fresh, messages: withGuidance(fresh.messages, orch.guidance) };
|
|
3372
|
+
const tools = loopTools(meta.skillId);
|
|
3373
|
+
const canWrite = !readOnly && meta.wantsChange;
|
|
3374
|
+
const writeTool = tools.some((t) => t.spec.function.name === DESIGN_TOOL) ? DESIGN_TOOL : null;
|
|
3375
|
+
const guard = createActionGuard({ enabled: canWrite, writeTool, initial: meta.guard });
|
|
3376
|
+
let pending = null;
|
|
3377
|
+
let saving = Promise.resolve();
|
|
3378
|
+
const saveMeta = () => {
|
|
3379
|
+
meta.guard = guard.state();
|
|
3380
|
+
meta.ledger = ledger.entries();
|
|
3381
|
+
meta.pending = pending;
|
|
3382
|
+
const rec = store.peek(id);
|
|
3383
|
+
if (rec) saving = store.save({ ...rec, meta: { ...meta }, updatedAt: Date.now() }).catch(() => {
|
|
3384
|
+
});
|
|
3385
|
+
return saving;
|
|
3386
|
+
};
|
|
3387
|
+
const offPage = installPageHandlers();
|
|
3388
|
+
let interruptions = 0;
|
|
3389
|
+
let resumeFrom = "resume" in start ? start.resume : null;
|
|
3390
|
+
try {
|
|
3391
|
+
while (true) {
|
|
3392
|
+
const options = {
|
|
3393
|
+
tools,
|
|
3394
|
+
meta,
|
|
3395
|
+
stopped: () => abort.signal.aborted,
|
|
3396
|
+
drainNotifications: () => {
|
|
3397
|
+
const notes = guard.drain();
|
|
3398
|
+
if (notes.length) {
|
|
3399
|
+
parts = [...parts, { type: "notice", kind: "read-budget" }];
|
|
3400
|
+
flush();
|
|
3401
|
+
}
|
|
3402
|
+
return [...notes, ...runtime.drainParentNotifications()];
|
|
3403
|
+
},
|
|
3404
|
+
maxParallel: MAX_PARALLEL_TOOLS,
|
|
3405
|
+
// The loop's default cut every result at 8000 characters AFTER the tool had honoured its own limit, so
|
|
3406
|
+
// export_svg with maxChars 40000 still came back without its last paths and the model could not
|
|
3407
|
+
// rebuild the artwork. Tools bound their own output; this is only the backstop.
|
|
3408
|
+
maxResultChars: MAX_TOOL_RESULT_CHARS,
|
|
3409
|
+
maxRounds: TURN_MAX_ROUNDS,
|
|
3410
|
+
modelRetries: 3,
|
|
3411
|
+
isRecoverable: (err) => !abort.signal.aborted && isInterruption(err),
|
|
3412
|
+
requireAction: canWrite ? { nudges: ACTION_NUDGES, message: ACTION_NUDGE } : false,
|
|
3413
|
+
toolChoice: () => guard.toolChoice(),
|
|
3414
|
+
advise: orch?.advise ?? void 0,
|
|
3415
|
+
route: orch?.route ?? void 0,
|
|
3416
|
+
callModel: resilientModel(orch?.skill ? orch.callModel : agentModel2(() => model), abort.signal, { get: () => parts, set: (p) => {
|
|
3417
|
+
parts = p;
|
|
3418
|
+
flush();
|
|
3419
|
+
} }),
|
|
3420
|
+
checkpoint: async () => {
|
|
3421
|
+
pending = null;
|
|
3422
|
+
ledger.clear();
|
|
3423
|
+
await saveMeta();
|
|
3424
|
+
},
|
|
3425
|
+
execTool: (call) => runOnce(ledger, call, async () => {
|
|
3426
|
+
const row = { type: "tool", id: call.id, name: call.name, argsText: call.argsText, status: "running" };
|
|
3427
|
+
parts = upsertToolPart(parts, row);
|
|
3428
|
+
flush();
|
|
3429
|
+
const docBefore = useEditorStore.getState().document;
|
|
3430
|
+
try {
|
|
3431
|
+
if (call.name === DESIGN_TOOL) preview.end();
|
|
3432
|
+
guardEdit(call.name);
|
|
3433
|
+
const result = await runTool(call.name, call.argsText, { ...ctx, toolCallId: call.id });
|
|
3434
|
+
const content = JSON.stringify(result.data ?? { ok: true, summary: result.summary });
|
|
3435
|
+
parts = upsertToolPart(parts, { ...row, status: "done", summary: result.summary, result: content });
|
|
3436
|
+
for (const url of result.images ?? []) parts = [...parts, { type: "image", url, caption: call.name }];
|
|
3437
|
+
const acted = useEditorStore.getState().document !== docBefore;
|
|
3438
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: result.summary, content, images: result.images, acted };
|
|
3439
|
+
} catch (err) {
|
|
3440
|
+
const message = err.message ?? String(err);
|
|
3441
|
+
parts = upsertToolPart(parts, { ...row, status: "error", summary: message, error: message });
|
|
3442
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }), acted: false };
|
|
3443
|
+
} finally {
|
|
3444
|
+
flush(true);
|
|
3445
|
+
}
|
|
3446
|
+
}).then((run) => {
|
|
3447
|
+
void saveMeta();
|
|
3448
|
+
return run;
|
|
3449
|
+
}),
|
|
3450
|
+
hooks: {
|
|
3451
|
+
onAssistantStart: () => {
|
|
3452
|
+
pending = { text: "", calls: [] };
|
|
3453
|
+
},
|
|
3454
|
+
onTextDelta: (d) => {
|
|
3455
|
+
parts = pushTextDelta([...parts], d);
|
|
3456
|
+
if (pending) pending.text += d;
|
|
3457
|
+
flush();
|
|
3458
|
+
},
|
|
3459
|
+
onReasoningDelta: (d) => {
|
|
3460
|
+
parts = pushReasoningDelta([...parts], d);
|
|
3461
|
+
flush();
|
|
3462
|
+
},
|
|
3463
|
+
onToolProgress: (p) => preview.update(p.name, p.arguments),
|
|
3464
|
+
onToolStart: (call) => {
|
|
3465
|
+
pending?.calls.push({ id: call.id, name: call.name, argsText: call.argsText });
|
|
3466
|
+
void saveMeta();
|
|
3467
|
+
},
|
|
3468
|
+
onToolEnd: (run) => {
|
|
3469
|
+
guard.onRun(run, run.acted === true);
|
|
3470
|
+
syncTodos(run);
|
|
3471
|
+
},
|
|
3472
|
+
onRoundEnd: () => guard.onRoundEnd(),
|
|
3473
|
+
onNudge: () => {
|
|
3474
|
+
const count = guard.onNudge();
|
|
3475
|
+
parts = [...parts, { type: "notice", kind: "nudge", count, max: ACTION_NUDGES }];
|
|
3476
|
+
flush(true);
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
};
|
|
3480
|
+
try {
|
|
3481
|
+
let outcome;
|
|
3482
|
+
if (resumeFrom) {
|
|
3483
|
+
const cp = resumeFrom.checkpoint;
|
|
3484
|
+
const nudgesLeft = canWrite ? Math.max(0, ACTION_NUDGES - guard.state().nudges) : 0;
|
|
3485
|
+
const patched = { ...resumeFrom, status: "running", checkpoint: { ...cp, nudgesLeft, messages: resumeTranscript(cp.messages, meta.pending, meta.ledger) } };
|
|
3486
|
+
await store.save(patched);
|
|
3487
|
+
pending = null;
|
|
3488
|
+
outcome = await resumeRun(id, store, options);
|
|
3489
|
+
} else {
|
|
3490
|
+
if (!("messages" in start)) throw new Error("nothing to run");
|
|
3491
|
+
outcome = await runPersistent({ ...options, id, runs: store, messages: start.messages });
|
|
3492
|
+
}
|
|
3493
|
+
if (canWrite && !outcome.stopped && !outcome.acted && !guard.acted) parts = [...parts, { type: "notice", kind: "no-change" }];
|
|
3494
|
+
break;
|
|
3495
|
+
} catch (err) {
|
|
3496
|
+
if (abort.signal.aborted) break;
|
|
3497
|
+
const hidden = typeof document !== "undefined" && document.visibilityState === "hidden";
|
|
3498
|
+
if (isInterruption(err, hidden) && interruptions < MAX_INTERRUPTIONS) {
|
|
3499
|
+
interruptions++;
|
|
3500
|
+
await saving;
|
|
3501
|
+
const rec = await store.get(id);
|
|
3502
|
+
if (!rec) throw err;
|
|
3503
|
+
await store.save({ ...rec, status: "running", error: void 0, updatedAt: Date.now() });
|
|
3504
|
+
useAgentStore.setState({ resuming: true });
|
|
3505
|
+
persistThreads();
|
|
3506
|
+
await whenResumable(void 0, abort.signal, Math.min(3e4, 1e3 * 2 ** interruptions));
|
|
3507
|
+
if (abort.signal.aborted) break;
|
|
3508
|
+
useAgentStore.setState({ resuming: false });
|
|
3509
|
+
resumeFrom = await store.get(id);
|
|
3510
|
+
parts = [...parts, { type: "notice", kind: "resumed" }];
|
|
3511
|
+
flush(true);
|
|
3512
|
+
continue;
|
|
3513
|
+
}
|
|
3514
|
+
throw err;
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
} catch (err) {
|
|
3518
|
+
if (!abort.signal.aborted) {
|
|
3519
|
+
const message = err?.message ?? String(err);
|
|
3520
|
+
const code = err?.code;
|
|
3521
|
+
parts = [...parts, { type: "error", message, code }];
|
|
3522
|
+
}
|
|
3523
|
+
} finally {
|
|
3524
|
+
endOrchestration(orch);
|
|
3525
|
+
offPage();
|
|
3526
|
+
preview.end();
|
|
3527
|
+
if (abort.signal.aborted) {
|
|
3528
|
+
runtime.stopAll();
|
|
3529
|
+
parts = [...parts, { type: "error", message: STOPPED_MESSAGE }];
|
|
3530
|
+
}
|
|
3531
|
+
if (useEditorStore.getState().document === before) updateMessage(id, (m) => ({ ...m, checkpoint: void 0 }), { save: false });
|
|
3532
|
+
flush(true);
|
|
3533
|
+
updateActiveThread((t) => ({ ...t, checkpoint: { id: checkpoint, label: "Undo these changes" } }));
|
|
3534
|
+
useAgentStore.setState({ running: false, resuming: false, abort: null });
|
|
3535
|
+
}
|
|
3536
|
+
}
|
|
3537
|
+
export {
|
|
3538
|
+
agentRuns,
|
|
3539
|
+
continueTurn,
|
|
3540
|
+
editorToolContext,
|
|
3541
|
+
needsEditableSession,
|
|
3542
|
+
onChildTool,
|
|
3543
|
+
resumeInterrupted,
|
|
3544
|
+
runTurn,
|
|
3545
|
+
setAgentRuns
|
|
3546
|
+
};
|