@popcraft/kit 0.44.0 → 0.45.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-F3HAPL6L.js +43 -0
- package/dist/chunks/api-GIJYPH6Q.js +29 -0
- package/dist/chunks/build-MOPL632I.js +59 -0
- package/dist/chunks/builtin-63JKRLTO.js +114 -0
- package/dist/chunks/buy-credits-25KJIGCH.js +78 -0
- package/dist/chunks/check-template-CK5PHLIU.js +2277 -0
- package/dist/chunks/chunk-22T527UW.js +252 -0
- package/dist/chunks/chunk-25C2PHXK.js +36 -0
- package/dist/chunks/chunk-25CVQSX4.js +93 -0
- package/dist/chunks/chunk-25ES5T6R.js +183 -0
- package/dist/chunks/chunk-27AZAHMO.js +329 -0
- package/dist/chunks/chunk-27XFDJ74.js +152 -0
- package/dist/chunks/chunk-2B7XRKTH.js +122 -0
- package/dist/chunks/chunk-2BMXQHNO.js +70 -0
- package/dist/chunks/chunk-2BWDHCM6.js +61 -0
- package/dist/chunks/chunk-2CRGLTTP.js +71 -0
- package/dist/chunks/chunk-2D6HVYMY.js +33 -0
- package/dist/chunks/chunk-2DJPEVRE.js +177 -0
- package/dist/chunks/chunk-2HEZ5SYY.js +152 -0
- package/dist/chunks/chunk-2I7DUNIH.js +151 -0
- package/dist/chunks/chunk-2MWSV7WC.js +107 -0
- package/dist/chunks/chunk-2N6BTXZ3.js +73 -0
- package/dist/chunks/chunk-2REMQNAQ.js +199 -0
- package/dist/chunks/chunk-2RUWQWUW.js +120 -0
- package/dist/chunks/chunk-2U24KSAH.js +103 -0
- package/dist/chunks/chunk-2VVTGESH.js +94 -0
- package/dist/chunks/chunk-2WD2SFF2.js +105 -0
- package/dist/chunks/chunk-2WMMG2PP.js +146 -0
- package/dist/chunks/chunk-33J35WEN.js +106 -0
- package/dist/chunks/chunk-34SF6BYY.js +382 -0
- package/dist/chunks/chunk-34YZ3EU5.js +100 -0
- package/dist/chunks/chunk-35X3ZRJP.js +327 -0
- package/dist/chunks/chunk-36KONB6O.js +123 -0
- package/dist/chunks/chunk-37PVN26T.js +91 -0
- package/dist/chunks/chunk-37XJSEWW.js +118 -0
- package/dist/chunks/chunk-3ARXSJZJ.js +128 -0
- package/dist/chunks/chunk-3CFFK42L.js +75 -0
- package/dist/chunks/chunk-3CL77C5O.js +33 -0
- package/dist/chunks/chunk-3DUQKQTS.js +84 -0
- package/dist/chunks/chunk-3FX6PN3Y.js +33 -0
- package/dist/chunks/chunk-3IGUQ5MH.js +100 -0
- package/dist/chunks/chunk-3IHIO3U4.js +153 -0
- package/dist/chunks/chunk-3INPV55Q.js +180 -0
- package/dist/chunks/chunk-3LDD7PFG.js +242 -0
- package/dist/chunks/chunk-3NBNLTXQ.js +320 -0
- package/dist/chunks/chunk-3NRR2TOB.js +86 -0
- package/dist/chunks/chunk-3RJEJ6N5.js +108 -0
- package/dist/chunks/chunk-3SUJCWZP.js +169 -0
- package/dist/chunks/chunk-3UG4W3KN.js +76 -0
- package/dist/chunks/chunk-3VHRV6N7.js +135 -0
- package/dist/chunks/chunk-3XP7K42R.js +133 -0
- package/dist/chunks/chunk-42SWN434.js +898 -0
- package/dist/chunks/chunk-42XDRLJH.js +89 -0
- package/dist/chunks/chunk-43XEWVWQ.js +266 -0
- package/dist/chunks/chunk-45GIKFFI.js +94 -0
- package/dist/chunks/chunk-46PZ2TN6.js +109 -0
- package/dist/chunks/chunk-472HVEQ3.js +290 -0
- package/dist/chunks/chunk-47SA4YXG.js +45 -0
- package/dist/chunks/chunk-47TBJOXD.js +182 -0
- package/dist/chunks/chunk-47XQFUHS.js +89 -0
- package/dist/chunks/chunk-4BI5NUDY.js +46 -0
- package/dist/chunks/chunk-4CUTPACR.js +147 -0
- package/dist/chunks/chunk-4EL3JITB.js +90 -0
- package/dist/chunks/chunk-4EP7ZDDL.js +45 -0
- package/dist/chunks/chunk-4FDQ5357.js +99 -0
- package/dist/chunks/chunk-4FSCCBGY.js +1845 -0
- package/dist/chunks/chunk-4H2Y4TSD.js +157 -0
- package/dist/chunks/chunk-4H7Q42U6.js +220 -0
- package/dist/chunks/chunk-4HBU6TFK.js +317 -0
- package/dist/chunks/chunk-4IHYMYF4.js +163 -0
- package/dist/chunks/chunk-4IK5X6QI.js +104 -0
- package/dist/chunks/chunk-4IX76COZ.js +48 -0
- package/dist/chunks/chunk-4KZ4VNJP.js +130 -0
- package/dist/chunks/chunk-4MAM56RH.js +147 -0
- package/dist/chunks/chunk-4MCSPITU.js +206 -0
- package/dist/chunks/chunk-4PCHVR36.js +119 -0
- package/dist/chunks/chunk-4R6BIVFP.js +97 -0
- package/dist/chunks/chunk-4SZEUE7W.js +257 -0
- package/dist/chunks/chunk-4T5PGCRB.js +171 -0
- package/dist/chunks/chunk-4TCVEGIL.js +146 -0
- package/dist/chunks/chunk-4VQLSIIJ.js +256 -0
- package/dist/chunks/chunk-4W4PD7GI.js +115 -0
- package/dist/chunks/chunk-4X7GPSUL.js +108 -0
- package/dist/chunks/chunk-55E7WKF6.js +607 -0
- package/dist/chunks/chunk-55H5VYSF.js +89 -0
- package/dist/chunks/chunk-567KKBVE.js +39 -0
- package/dist/chunks/chunk-56PJXJ7Q.js +110 -0
- package/dist/chunks/chunk-56Q3V5E3.js +11359 -0
- package/dist/chunks/chunk-57Q4DDX4.js +42 -0
- package/dist/chunks/chunk-5AL2OA5N.js +300 -0
- package/dist/chunks/chunk-5AMU423D.js +777 -0
- package/dist/chunks/chunk-5AYP6A4O.js +146 -0
- package/dist/chunks/chunk-5C2GWMLJ.js +368 -0
- package/dist/chunks/chunk-5DA4X2EW.js +399 -0
- package/dist/chunks/chunk-5DCMIF4Z.js +156 -0
- package/dist/chunks/chunk-5DE7NPKW.js +1266 -0
- package/dist/chunks/chunk-5DRT3C7F.js +59 -0
- package/dist/chunks/chunk-5EZABUBI.js +172 -0
- package/dist/chunks/chunk-5GKMKMPZ.js +112 -0
- package/dist/chunks/chunk-5I2R2UJ5.js +33 -0
- package/dist/chunks/chunk-5I5IQCT3.js +77 -0
- package/dist/chunks/chunk-5J6OH4FK.js +66 -0
- package/dist/chunks/chunk-5KHSMUR5.js +115 -0
- package/dist/chunks/chunk-5KZJ6VAD.js +45 -0
- package/dist/chunks/chunk-5LZSOM26.js +167 -0
- package/dist/chunks/chunk-5NU2MWLT.js +346 -0
- package/dist/chunks/chunk-5PCF26HW.js +45 -0
- package/dist/chunks/chunk-5PPZSKNV.js +301 -0
- package/dist/chunks/chunk-5SCMVTFZ.js +161 -0
- package/dist/chunks/chunk-5SH5MPWZ.js +152 -0
- package/dist/chunks/chunk-5SHX6DFE.js +43 -0
- package/dist/chunks/chunk-5UOWDOQE.js +165 -0
- package/dist/chunks/chunk-5V6ZZGQN.js +93 -0
- package/dist/chunks/chunk-5WEX74NX.js +66 -0
- package/dist/chunks/chunk-5WJEA3HE.js +250 -0
- package/dist/chunks/chunk-5XD4ZGFC.js +251 -0
- package/dist/chunks/chunk-5Y3SBLXK.js +224 -0
- package/dist/chunks/chunk-62DUHEEP.js +70 -0
- package/dist/chunks/chunk-62ULWAPR.js +287 -0
- package/dist/chunks/chunk-62ZOF3WO.js +100 -0
- package/dist/chunks/chunk-655X3PU3.js +87 -0
- package/dist/chunks/chunk-66ORTQSM.js +193 -0
- package/dist/chunks/chunk-67XAFT7S.js +84 -0
- package/dist/chunks/chunk-6ACUMVD7.js +23 -0
- package/dist/chunks/chunk-6AIIO7GG.js +80 -0
- package/dist/chunks/chunk-6AL5VJGW.js +41 -0
- package/dist/chunks/chunk-6CRV7VUT.js +108 -0
- package/dist/chunks/chunk-6DAFIKK2.js +80 -0
- package/dist/chunks/chunk-6DPMSLHQ.js +33 -0
- package/dist/chunks/chunk-6DUAD7ID.js +104 -0
- package/dist/chunks/chunk-6E4UAWFN.js +78 -0
- package/dist/chunks/chunk-6EVDNWCP.js +36 -0
- package/dist/chunks/chunk-6FJP3WNM.js +488 -0
- package/dist/chunks/chunk-6G3BKTRV.js +97 -0
- package/dist/chunks/chunk-6HU7TQ6C.js +122 -0
- package/dist/chunks/chunk-6HXXOVM3.js +162 -0
- package/dist/chunks/chunk-6ILM2PZ3.js +33 -0
- package/dist/chunks/chunk-6LEKN2MT.js +183 -0
- package/dist/chunks/chunk-6MPKDTTT.js +84 -0
- package/dist/chunks/chunk-6OFQ6K64.js +336 -0
- package/dist/chunks/chunk-6R2V3NQ7.js +50 -0
- package/dist/chunks/chunk-6RSFTJ2F.js +155 -0
- package/dist/chunks/chunk-6RTRFU4X.js +90 -0
- package/dist/chunks/chunk-6SRIFODL.js +135 -0
- package/dist/chunks/chunk-6T2BBUAK.js +119 -0
- package/dist/chunks/chunk-6VUGIOJE.js +163 -0
- package/dist/chunks/chunk-6WM3ZB6B.js +152 -0
- package/dist/chunks/chunk-6XM63VUB.js +77 -0
- package/dist/chunks/chunk-6XN5B5E7.js +33 -0
- package/dist/chunks/chunk-6YM4APRA.js +239 -0
- package/dist/chunks/chunk-6ZRFSCBN.js +145 -0
- package/dist/chunks/chunk-6ZSXSQIG.js +139 -0
- package/dist/chunks/chunk-72EHDY6B.js +138 -0
- package/dist/chunks/chunk-72LY6AGG.js +152 -0
- package/dist/chunks/chunk-73NPW34G.js +173 -0
- package/dist/chunks/chunk-73OGEEXM.js +177 -0
- package/dist/chunks/chunk-74VQBV2D.js +23 -0
- package/dist/chunks/chunk-75NWSU4P.js +23 -0
- package/dist/chunks/chunk-76KXYGZD.js +124 -0
- package/dist/chunks/chunk-76MGZJRS.js +196 -0
- package/dist/chunks/chunk-7BDOGR4G.js +97 -0
- package/dist/chunks/chunk-7BZSDMQJ.js +255 -0
- package/dist/chunks/chunk-7F6IDQWN.js +33 -0
- package/dist/chunks/chunk-7FLM3U46.js +55 -0
- package/dist/chunks/chunk-7J35XV24.js +130 -0
- package/dist/chunks/chunk-7JOYDKBB.js +33 -0
- package/dist/chunks/chunk-7KC47Q7B.js +55 -0
- package/dist/chunks/chunk-7KJNJJ6W.js +358 -0
- package/dist/chunks/chunk-7LA6HL7R.js +88 -0
- package/dist/chunks/chunk-7M7LIK3T.js +23 -0
- package/dist/chunks/chunk-7MDW5DL5.js +366 -0
- package/dist/chunks/chunk-7ML5USJI.js +229 -0
- package/dist/chunks/chunk-7O4YCJNG.js +45 -0
- package/dist/chunks/chunk-7O5XZPDH.js +166 -0
- package/dist/chunks/chunk-7PWW4G6K.js +84 -0
- package/dist/chunks/chunk-7QEI6QGD.js +55 -0
- package/dist/chunks/chunk-7QRWKD2N.js +10257 -0
- package/dist/chunks/chunk-7RGT7N2E.js +146 -0
- package/dist/chunks/chunk-7TQVIH3F.js +220 -0
- package/dist/chunks/chunk-7VYXL4YH.js +260 -0
- package/dist/chunks/chunk-7VZEOLDZ.js +113 -0
- package/dist/chunks/chunk-7X2CT53M.js +192 -0
- package/dist/chunks/chunk-7YRL27BA.js +131 -0
- package/dist/chunks/chunk-7ZHQKZYY.js +805 -0
- package/dist/chunks/chunk-A2UZ4QJU.js +33 -0
- package/dist/chunks/chunk-A4CR6JBX.js +112 -0
- package/dist/chunks/chunk-A6ONQIKI.js +303 -0
- package/dist/chunks/chunk-AA6J3E5F.js +1307 -0
- package/dist/chunks/chunk-ACTBHDLX.js +298 -0
- package/dist/chunks/chunk-AF7NTECM.js +738 -0
- package/dist/chunks/chunk-AFXPDG3N.js +145 -0
- package/dist/chunks/chunk-AGHBAKG6.js +368 -0
- package/dist/chunks/chunk-AIGB7ETR.js +23 -0
- package/dist/chunks/chunk-AK7QH6YW.js +145 -0
- package/dist/chunks/chunk-AM5PZSZT.js +52 -0
- package/dist/chunks/chunk-AM72T76F.js +564 -0
- package/dist/chunks/chunk-AQ6HUVFU.js +206 -0
- package/dist/chunks/chunk-AQNFX2QZ.js +266 -0
- package/dist/chunks/chunk-AQUULHNF.js +209 -0
- package/dist/chunks/chunk-AR3PWX54.js +178 -0
- package/dist/chunks/chunk-ARWRLQGE.js +96 -0
- package/dist/chunks/chunk-ATXKB7QT.js +139 -0
- package/dist/chunks/chunk-AUX5CB7O.js +147 -0
- package/dist/chunks/chunk-AV4RC3HT.js +85 -0
- package/dist/chunks/chunk-AWFYNHZP.js +265 -0
- package/dist/chunks/chunk-AWRR7UM2.js +196 -0
- package/dist/chunks/chunk-AX7QCFV5.js +182 -0
- package/dist/chunks/chunk-AXLEK3XT.js +95 -0
- package/dist/chunks/chunk-AY6BGI3B.js +331 -0
- package/dist/chunks/chunk-AZLG756X.js +49 -0
- package/dist/chunks/chunk-B7BVMWDK.js +93 -0
- package/dist/chunks/chunk-B7US6ZNR.js +181 -0
- package/dist/chunks/chunk-BBEHR5F6.js +105 -0
- package/dist/chunks/chunk-BCLTP3Y7.js +129 -0
- package/dist/chunks/chunk-BDLV3F2O.js +415 -0
- package/dist/chunks/chunk-BGW67IZV.js +304 -0
- package/dist/chunks/chunk-BHPZQEN2.js +104 -0
- package/dist/chunks/chunk-BKU7EX6E.js +95 -0
- package/dist/chunks/chunk-BLCGTAFD.js +362 -0
- package/dist/chunks/chunk-BLCHYJ3F.js +98 -0
- package/dist/chunks/chunk-BLKAZZ4B.js +172 -0
- package/dist/chunks/chunk-BLNKMDEV.js +70 -0
- package/dist/chunks/chunk-BNW5PGJO.js +77 -0
- package/dist/chunks/chunk-BO3WCX73.js +164 -0
- package/dist/chunks/chunk-BPFLQUOJ.js +92 -0
- package/dist/chunks/chunk-BQBJ6T4F.js +108 -0
- package/dist/chunks/chunk-BQFYBJ6C.js +115 -0
- package/dist/chunks/chunk-BQIQPKZA.js +146 -0
- package/dist/chunks/chunk-BQLUWUTJ.js +362 -0
- package/dist/chunks/chunk-BRN2WZNH.js +55 -0
- package/dist/chunks/chunk-BUW2ZK36.js +23 -0
- package/dist/chunks/chunk-BZGJOUGN.js +232 -0
- package/dist/chunks/chunk-C2BPEZJY.js +114 -0
- package/dist/chunks/chunk-C3PBKBTO.js +120 -0
- package/dist/chunks/chunk-C45OVKWP.js +215 -0
- package/dist/chunks/chunk-C4ZAHT4Q.js +133 -0
- package/dist/chunks/chunk-C6DKZKOT.js +106 -0
- package/dist/chunks/chunk-CB52HKRS.js +685 -0
- package/dist/chunks/chunk-CCQXTRRK.js +163 -0
- package/dist/chunks/chunk-CEJ2VKYH.js +102 -0
- package/dist/chunks/chunk-CFOXIZWV.js +589 -0
- package/dist/chunks/chunk-CGZFTWUI.js +97 -0
- package/dist/chunks/chunk-CITQEMQC.js +81 -0
- package/dist/chunks/chunk-CM562AXF.js +184 -0
- package/dist/chunks/chunk-CNSJUSW5.js +33 -0
- package/dist/chunks/chunk-COPVPIHZ.js +68 -0
- package/dist/chunks/chunk-CPV7SZVU.js +1309 -0
- package/dist/chunks/chunk-CRHY36VW.js +118 -0
- package/dist/chunks/chunk-CSFM6PEN.js +161 -0
- package/dist/chunks/chunk-CTUFVIEW.js +23 -0
- package/dist/chunks/chunk-CUJ3TWAV.js +71 -0
- package/dist/chunks/chunk-CUSS7J7A.js +94 -0
- package/dist/chunks/chunk-CWVVQMMZ.js +119 -0
- package/dist/chunks/chunk-CXJPYSZQ.js +77 -0
- package/dist/chunks/chunk-CYGPTUGX.js +101 -0
- package/dist/chunks/chunk-D3MKD6A5.js +172 -0
- package/dist/chunks/chunk-D5EUM6HX.js +462 -0
- package/dist/chunks/chunk-D5VV5EW5.js +122 -0
- package/dist/chunks/chunk-D6ZF5WVJ.js +224 -0
- package/dist/chunks/chunk-D6ZGUOQJ.js +159 -0
- package/dist/chunks/chunk-DA73FDIW.js +127 -0
- package/dist/chunks/chunk-DA7ZH3N3.js +77 -0
- package/dist/chunks/chunk-DATXCRFU.js +104 -0
- package/dist/chunks/chunk-DDKWH7GK.js +153 -0
- package/dist/chunks/chunk-DE5B6CYF.js +237 -0
- package/dist/chunks/chunk-DEZO6SSS.js +53 -0
- package/dist/chunks/chunk-DFO272OS.js +312 -0
- package/dist/chunks/chunk-DFQJZZOA.js +23 -0
- package/dist/chunks/chunk-DGV26XCM.js +140 -0
- package/dist/chunks/chunk-DHHBGUHF.js +63 -0
- package/dist/chunks/chunk-DIRC62ZM.js +76 -0
- package/dist/chunks/chunk-DK2WC7RJ.js +131 -0
- package/dist/chunks/chunk-DLVDDRMU.js +23 -0
- package/dist/chunks/chunk-DMF4HZIL.js +150 -0
- package/dist/chunks/chunk-DMMPLZDB.js +47 -0
- package/dist/chunks/chunk-DN64LZVK.js +961 -0
- package/dist/chunks/chunk-DOH7HC3S.js +97 -0
- package/dist/chunks/chunk-DOMBEDFF.js +122 -0
- package/dist/chunks/chunk-DOSRCCCM.js +153 -0
- package/dist/chunks/chunk-DPON6ODE.js +122 -0
- package/dist/chunks/chunk-DQZOGL7Q.js +78 -0
- package/dist/chunks/chunk-DS2BAJDP.js +207 -0
- package/dist/chunks/chunk-DSMTVULH.js +23 -0
- package/dist/chunks/chunk-DYWVH5CH.js +320 -0
- package/dist/chunks/chunk-DZHHQSP2.js +94 -0
- package/dist/chunks/chunk-DZJWTEWW.js +115 -0
- package/dist/chunks/chunk-DZRCHA22.js +221 -0
- package/dist/chunks/chunk-E33NSXSY.js +168 -0
- package/dist/chunks/chunk-E4D2CXRN.js +118 -0
- package/dist/chunks/chunk-E5CDGIBM.js +91 -0
- package/dist/chunks/chunk-E6BB6L3A.js +134 -0
- package/dist/chunks/chunk-E7YGDTE6.js +188 -0
- package/dist/chunks/chunk-EAXAJA3C.js +363 -0
- package/dist/chunks/chunk-EECAIM7G.js +179 -0
- package/dist/chunks/chunk-EFE3UKEM.js +497 -0
- package/dist/chunks/chunk-EGGIWKGF.js +36 -0
- package/dist/chunks/chunk-EGYCQRPP.js +192 -0
- package/dist/chunks/chunk-EI3CBVFA.js +117 -0
- package/dist/chunks/chunk-EKOHH4AN.js +299 -0
- package/dist/chunks/chunk-ELL5FXRL.js +79 -0
- package/dist/chunks/chunk-ENJGG5VE.js +120 -0
- package/dist/chunks/chunk-ENLGVOP6.js +90 -0
- package/dist/chunks/chunk-EQ6HRILG.js +261 -0
- package/dist/chunks/chunk-ERMRU3CK.js +45 -0
- package/dist/chunks/chunk-ERTYF5DF.js +103 -0
- package/dist/chunks/chunk-ES6TGORI.js +279 -0
- package/dist/chunks/chunk-ETBXG3JS.js +161 -0
- package/dist/chunks/chunk-F23ZAV4J.js +157 -0
- package/dist/chunks/chunk-F27555H7.js +122 -0
- package/dist/chunks/chunk-F2MBAPTZ.js +81 -0
- package/dist/chunks/chunk-F2NNGXCP.js +152 -0
- package/dist/chunks/chunk-F2TOU6AV.js +11828 -0
- package/dist/chunks/chunk-F3B6HIOA.js +307 -0
- package/dist/chunks/chunk-F45ZMHEL.js +153 -0
- package/dist/chunks/chunk-F4PIAZWT.js +50 -0
- package/dist/chunks/chunk-F65L7EYI.js +147 -0
- package/dist/chunks/chunk-F6W7FPCM.js +170 -0
- package/dist/chunks/chunk-FAYGESTY.js +45 -0
- package/dist/chunks/chunk-FB2FIB7C.js +38 -0
- package/dist/chunks/chunk-FBVEI3D7.js +126 -0
- package/dist/chunks/chunk-FC3NISSV.js +97 -0
- package/dist/chunks/chunk-FCE4UZGO.js +23 -0
- package/dist/chunks/chunk-FCU664SL.js +141 -0
- package/dist/chunks/chunk-FDK7B7YT.js +147 -0
- package/dist/chunks/chunk-FFOHSDTL.js +52 -0
- package/dist/chunks/chunk-FFX57Z4F.js +60 -0
- package/dist/chunks/chunk-FGMWMARI.js +234 -0
- package/dist/chunks/chunk-FHRT3DL5.js +150 -0
- package/dist/chunks/chunk-FIAGWH46.js +197 -0
- package/dist/chunks/chunk-FIR2MTY5.js +123 -0
- package/dist/chunks/chunk-FJNEQJJQ.js +62 -0
- package/dist/chunks/chunk-FK55WBKG.js +250 -0
- package/dist/chunks/chunk-FLM4NKHO.js +287 -0
- package/dist/chunks/chunk-FMS6QRAA.js +290 -0
- package/dist/chunks/chunk-FN5ZLBQA.js +196 -0
- package/dist/chunks/chunk-FQ2G2PO4.js +333 -0
- package/dist/chunks/chunk-FQQUEBLB.js +23 -0
- package/dist/chunks/chunk-FUYXLZMJ.js +213 -0
- package/dist/chunks/chunk-FVIRA4AV.js +106 -0
- package/dist/chunks/chunk-FX7QQ3QW.js +65 -0
- package/dist/chunks/chunk-FYSBVP3H.js +305 -0
- package/dist/chunks/chunk-FZRUNDTW.js +214 -0
- package/dist/chunks/chunk-G4WXHRGQ.js +263 -0
- package/dist/chunks/chunk-G5BIBOER.js +149 -0
- package/dist/chunks/chunk-G5XJDRAY.js +160 -0
- package/dist/chunks/chunk-G6ORCHXY.js +60 -0
- package/dist/chunks/chunk-G6V4AB6Y.js +33 -0
- package/dist/chunks/chunk-GBTBRGBQ.js +47 -0
- package/dist/chunks/chunk-GCQHN2PF.js +75 -0
- package/dist/chunks/chunk-GF5WW7V4.js +139 -0
- package/dist/chunks/chunk-GHQKE6QW.js +270 -0
- package/dist/chunks/chunk-GJHYTWSE.js +170 -0
- package/dist/chunks/chunk-GKYG3QGY.js +87 -0
- package/dist/chunks/chunk-GMO2X3UI.js +298 -0
- package/dist/chunks/chunk-GNSDS34W.js +42 -0
- package/dist/chunks/chunk-GRBQ7MGX.js +71 -0
- package/dist/chunks/chunk-GSFNFTEK.js +23 -0
- package/dist/chunks/chunk-GTBAB3JB.js +181 -0
- package/dist/chunks/chunk-GTBO24N2.js +87 -0
- package/dist/chunks/chunk-GUS4NHCF.js +178 -0
- package/dist/chunks/chunk-GWHDCBEX.js +94 -0
- package/dist/chunks/chunk-GWYVB577.js +78 -0
- package/dist/chunks/chunk-GXG57G77.js +124 -0
- package/dist/chunks/chunk-GXI533CM.js +149 -0
- package/dist/chunks/chunk-GZOHP3G6.js +45 -0
- package/dist/chunks/chunk-GZW6BVCB.js +33 -0
- package/dist/chunks/chunk-H5PG4ZCU.js +144 -0
- package/dist/chunks/chunk-H5TOSE3O.js +85 -0
- package/dist/chunks/chunk-H6E2IHAR.js +213 -0
- package/dist/chunks/chunk-H7DU2VXG.js +98 -0
- package/dist/chunks/chunk-HBW4Y7B7.js +344 -0
- package/dist/chunks/chunk-HCSTJGEN.js +150 -0
- package/dist/chunks/chunk-HDTZHYFT.js +86 -0
- package/dist/chunks/chunk-HEZ4TAQU.js +136 -0
- package/dist/chunks/chunk-HF2PM6UH.js +84 -0
- package/dist/chunks/chunk-HGQYNJOZ.js +33 -0
- package/dist/chunks/chunk-HHKDEOUL.js +260 -0
- package/dist/chunks/chunk-HM2EZH57.js +102 -0
- package/dist/chunks/chunk-HOCXXSOF.js +161 -0
- package/dist/chunks/chunk-HOOSV2JI.js +91 -0
- package/dist/chunks/chunk-HORDRCZ2.js +358 -0
- package/dist/chunks/chunk-HQSXKAKB.js +200 -0
- package/dist/chunks/chunk-HRR6BCKC.js +192 -0
- package/dist/chunks/chunk-HRZ7DL4V.js +23 -0
- package/dist/chunks/chunk-HTCGGHLD.js +23 -0
- package/dist/chunks/chunk-HV6IYE5P.js +240 -0
- package/dist/chunks/chunk-HVDCY5YO.js +103 -0
- package/dist/chunks/chunk-HVJUI5OP.js +41 -0
- package/dist/chunks/chunk-HVZZVSWD.js +130 -0
- package/dist/chunks/chunk-HWJGLH5B.js +23 -0
- package/dist/chunks/chunk-HX2GSR4H.js +111 -0
- package/dist/chunks/chunk-HZCKTGNH.js +277 -0
- package/dist/chunks/chunk-HZGQ2IOF.js +187 -0
- package/dist/chunks/chunk-HZJCWEJV.js +105 -0
- package/dist/chunks/chunk-I2OJO6GW.js +79 -0
- package/dist/chunks/chunk-I2STY46C.js +197 -0
- package/dist/chunks/chunk-I4QX2IEP.js +92 -0
- package/dist/chunks/chunk-I6BERD2A.js +103 -0
- package/dist/chunks/chunk-I73UPSEE.js +118 -0
- package/dist/chunks/chunk-I7C6B3MC.js +375 -0
- package/dist/chunks/chunk-IARHETHO.js +117 -0
- package/dist/chunks/chunk-IAZGT3EK.js +110 -0
- package/dist/chunks/chunk-IC7RUATF.js +179 -0
- package/dist/chunks/chunk-ICH4CMWO.js +261 -0
- package/dist/chunks/chunk-IE6SBEJN.js +23 -0
- package/dist/chunks/chunk-IGHXZ37B.js +165 -0
- package/dist/chunks/chunk-IHTXJM5F.js +23 -0
- package/dist/chunks/chunk-IKQA5V2I.js +149 -0
- package/dist/chunks/chunk-IL2S66DR.js +337 -0
- package/dist/chunks/chunk-IMMBEA5H.js +69 -0
- package/dist/chunks/chunk-IMQLAPMA.js +230 -0
- package/dist/chunks/chunk-IO2M63FE.js +127 -0
- package/dist/chunks/chunk-IPILCFJG.js +135 -0
- package/dist/chunks/chunk-ISQNK6AY.js +111 -0
- package/dist/chunks/chunk-IXA4WBHJ.js +78 -0
- package/dist/chunks/chunk-IXKLABFU.js +1574 -0
- package/dist/chunks/chunk-IXOKSMCI.js +36 -0
- package/dist/chunks/chunk-IXS26LU7.js +1136 -0
- package/dist/chunks/chunk-IXZBMXDG.js +226 -0
- package/dist/chunks/chunk-J2GOPURY.js +225 -0
- package/dist/chunks/chunk-J4FGYL6E.js +215 -0
- package/dist/chunks/chunk-J5E6EIHJ.js +169 -0
- package/dist/chunks/chunk-JCSOKWIH.js +33 -0
- package/dist/chunks/chunk-JFPGPJNP.js +33 -0
- package/dist/chunks/chunk-JGG5N2DR.js +127 -0
- package/dist/chunks/chunk-JKGBBTTV.js +97 -0
- package/dist/chunks/chunk-JLUQLPQD.js +305 -0
- package/dist/chunks/chunk-JMJKJYX2.js +282 -0
- package/dist/chunks/chunk-JNFT24T6.js +10448 -0
- package/dist/chunks/chunk-JPEGZ5UA.js +315 -0
- package/dist/chunks/chunk-JPSR3YH5.js +214 -0
- package/dist/chunks/chunk-JQKKCD2P.js +154 -0
- package/dist/chunks/chunk-JQPAH63C.js +96 -0
- package/dist/chunks/chunk-JQYMLYMI.js +204 -0
- package/dist/chunks/chunk-JRQ5WM5R.js +181 -0
- package/dist/chunks/chunk-JSDB65AQ.js +115 -0
- package/dist/chunks/chunk-JSGOCAXV.js +23 -0
- package/dist/chunks/chunk-JSHEGIYS.js +105 -0
- package/dist/chunks/chunk-JWIFCXLF.js +284 -0
- package/dist/chunks/chunk-JYUWJXAQ.js +202 -0
- package/dist/chunks/chunk-K2HZU2LP.js +391 -0
- package/dist/chunks/chunk-K56W5J3X.js +30 -0
- package/dist/chunks/chunk-K5DIKM4Q.js +74 -0
- package/dist/chunks/chunk-K62DOGKA.js +224 -0
- package/dist/chunks/chunk-K6GQICCG.js +218 -0
- package/dist/chunks/chunk-KCGKHN7L.js +278 -0
- package/dist/chunks/chunk-KCGV7POB.js +135 -0
- package/dist/chunks/chunk-KCZRDWMR.js +70 -0
- package/dist/chunks/chunk-KD3GCIXC.js +23 -0
- package/dist/chunks/chunk-KDGWENUK.js +198 -0
- package/dist/chunks/chunk-KDQHEQQD.js +262 -0
- package/dist/chunks/chunk-KE3X2NWV.js +305 -0
- package/dist/chunks/chunk-KHJEU2DP.js +140 -0
- package/dist/chunks/chunk-KJUHSPO6.js +226 -0
- package/dist/chunks/chunk-KKWRVIX6.js +80 -0
- package/dist/chunks/chunk-KL3FTH2H.js +184 -0
- package/dist/chunks/chunk-KONVX2AY.js +102 -0
- package/dist/chunks/chunk-KOOW4M36.js +164 -0
- package/dist/chunks/chunk-KQJDTX5N.js +103 -0
- package/dist/chunks/chunk-KQOOXKQD.js +728 -0
- package/dist/chunks/chunk-KS4I66L3.js +204 -0
- package/dist/chunks/chunk-KSAA4B4U.js +23 -0
- package/dist/chunks/chunk-KTC5275A.js +251 -0
- package/dist/chunks/chunk-KTOFKUDR.js +169 -0
- package/dist/chunks/chunk-KU4K3J32.js +137 -0
- package/dist/chunks/chunk-KUHMWMDQ.js +100 -0
- package/dist/chunks/chunk-KX5GWN3F.js +23 -0
- package/dist/chunks/chunk-KZIG77K2.js +187 -0
- package/dist/chunks/chunk-L25BXONI.js +209 -0
- package/dist/chunks/chunk-L3426BTB.js +342 -0
- package/dist/chunks/chunk-L4NTWGTC.js +107 -0
- package/dist/chunks/chunk-L7QQ6GBC.js +136 -0
- package/dist/chunks/chunk-LAQWYCX2.js +170 -0
- package/dist/chunks/chunk-LBRPZ6RC.js +106 -0
- package/dist/chunks/chunk-LFP6ULDF.js +33 -0
- package/dist/chunks/chunk-LGHAWFUZ.js +87 -0
- package/dist/chunks/chunk-LI6LWJH5.js +98 -0
- package/dist/chunks/chunk-LII3MOOY.js +81 -0
- package/dist/chunks/chunk-LLDFCHBW.js +283 -0
- package/dist/chunks/chunk-LLWIFVJT.js +101 -0
- package/dist/chunks/chunk-LLX5YWST.js +104 -0
- package/dist/chunks/chunk-LNE4PXQ6.js +93 -0
- package/dist/chunks/chunk-LOAPUC7E.js +231 -0
- package/dist/chunks/chunk-LPBWCWJE.js +190 -0
- package/dist/chunks/chunk-LQ3GXP4Z.js +86 -0
- package/dist/chunks/chunk-LQ5SUNXN.js +23 -0
- package/dist/chunks/chunk-LQ5ZHLB2.js +53 -0
- package/dist/chunks/chunk-LRIMHZXA.js +126 -0
- package/dist/chunks/chunk-LTOHAFJX.js +163 -0
- package/dist/chunks/chunk-LUWDB3LR.js +163 -0
- package/dist/chunks/chunk-LUXXCXBP.js +276 -0
- package/dist/chunks/chunk-LYJ3RWHI.js +283 -0
- package/dist/chunks/chunk-M3PYIJLM.js +140 -0
- package/dist/chunks/chunk-M4RLKKZ6.js +303 -0
- package/dist/chunks/chunk-M7G5B4AZ.js +209 -0
- package/dist/chunks/chunk-M7LZD5FM.js +112 -0
- package/dist/chunks/chunk-M7XTCPD3.js +83 -0
- package/dist/chunks/chunk-MAMWVZUQ.js +45 -0
- package/dist/chunks/chunk-MCHD7UOT.js +143 -0
- package/dist/chunks/chunk-MENO6HGK.js +141 -0
- package/dist/chunks/chunk-MI4BWXCK.js +191 -0
- package/dist/chunks/chunk-MIEGYZHT.js +23 -0
- package/dist/chunks/chunk-MIG7I7IK.js +171 -0
- package/dist/chunks/chunk-MIJXB57R.js +422 -0
- package/dist/chunks/chunk-MIZZVUMY.js +180 -0
- package/dist/chunks/chunk-MKYYBGME.js +77 -0
- package/dist/chunks/chunk-MLIAKJUA.js +49 -0
- package/dist/chunks/chunk-MMOSHQV3.js +105 -0
- package/dist/chunks/chunk-MP5XPDR3.js +112 -0
- package/dist/chunks/chunk-MPLRB7KJ.js +100 -0
- package/dist/chunks/chunk-MS32ICS5.js +73 -0
- package/dist/chunks/chunk-MUHSCXF6.js +109 -0
- package/dist/chunks/chunk-MXYTAWK3.js +82 -0
- package/dist/chunks/chunk-MZDQNBZB.js +195 -0
- package/dist/chunks/chunk-MZE37R4V.js +235 -0
- package/dist/chunks/chunk-MZPD6NZI.js +106 -0
- package/dist/chunks/chunk-N4RAN2BQ.js +121 -0
- package/dist/chunks/chunk-N5YWYVX2.js +374 -0
- package/dist/chunks/chunk-N6FNNB4V.js +114 -0
- package/dist/chunks/chunk-N6HSAPQJ.js +65 -0
- package/dist/chunks/chunk-N6N3GAGV.js +142 -0
- package/dist/chunks/chunk-N7DT4UV6.js +156 -0
- package/dist/chunks/chunk-NADFKWP5.js +80 -0
- package/dist/chunks/chunk-NBBEB4QG.js +78 -0
- package/dist/chunks/chunk-NBKHRO6K.js +104 -0
- package/dist/chunks/chunk-NDAISHSK.js +98 -0
- package/dist/chunks/chunk-NDVMGULT.js +94 -0
- package/dist/chunks/chunk-NE2SZOHN.js +238 -0
- package/dist/chunks/chunk-NE2UP64D.js +378 -0
- package/dist/chunks/chunk-NFCF32S5.js +23 -0
- package/dist/chunks/chunk-NFFBT5EF.js +327 -0
- package/dist/chunks/chunk-NGRMOGM5.js +151 -0
- package/dist/chunks/chunk-NHXP3NEV.js +53 -0
- package/dist/chunks/chunk-NI737AFJ.js +39 -0
- package/dist/chunks/chunk-NJCNTIR3.js +118 -0
- package/dist/chunks/chunk-NJNQXBAX.js +105 -0
- package/dist/chunks/chunk-NKVEHB6Z.js +170 -0
- package/dist/chunks/chunk-NLR5INMS.js +304 -0
- package/dist/chunks/chunk-NM5JOV2V.js +30 -0
- package/dist/chunks/chunk-NNYFJZS7.js +93 -0
- package/dist/chunks/chunk-NP63BM3A.js +83 -0
- package/dist/chunks/chunk-NPTRNE7J.js +23 -0
- package/dist/chunks/chunk-NPUW65J3.js +125 -0
- package/dist/chunks/chunk-NPZGLXIJ.js +225 -0
- package/dist/chunks/chunk-NRWKXGTP.js +109 -0
- package/dist/chunks/chunk-NRYTF5SE.js +651 -0
- package/dist/chunks/chunk-NTGS7HTI.js +242 -0
- package/dist/chunks/chunk-NVPPCPYU.js +204 -0
- package/dist/chunks/chunk-NVUBYA47.js +121 -0
- package/dist/chunks/chunk-NWCRNNU3.js +74 -0
- package/dist/chunks/chunk-NX2LUD4K.js +209 -0
- package/dist/chunks/chunk-NX7TWZ7Z.js +45 -0
- package/dist/chunks/chunk-NZZH7UZX.js +896 -0
- package/dist/chunks/chunk-O2GURFQN.js +273 -0
- package/dist/chunks/chunk-O3Z4YEN7.js +149 -0
- package/dist/chunks/chunk-O42ODJTE.js +85 -0
- package/dist/chunks/chunk-O5LTHKKL.js +174 -0
- package/dist/chunks/chunk-O5W3RGOW.js +324 -0
- package/dist/chunks/chunk-O6FMAEBU.js +161 -0
- package/dist/chunks/chunk-O7G6X6CL.js +244 -0
- package/dist/chunks/chunk-O7M7ZYQR.js +23 -0
- package/dist/chunks/chunk-OA63NYAF.js +255 -0
- package/dist/chunks/chunk-OC5ZNKRL.js +626 -0
- package/dist/chunks/chunk-OCIIS2NJ.js +141 -0
- package/dist/chunks/chunk-OCOOL6P6.js +33 -0
- package/dist/chunks/chunk-ODLCDCUF.js +261 -0
- package/dist/chunks/chunk-OE6YKEJD.js +215 -0
- package/dist/chunks/chunk-OGUFBZCB.js +179 -0
- package/dist/chunks/chunk-OHHYW7EE.js +155 -0
- package/dist/chunks/chunk-OJLBTRTA.js +130 -0
- package/dist/chunks/chunk-OKEUC3YG.js +200 -0
- package/dist/chunks/chunk-OO7Q6PYK.js +45 -0
- package/dist/chunks/chunk-OPDJBJ6F.js +33 -0
- package/dist/chunks/chunk-OT6EVDZQ.js +330 -0
- package/dist/chunks/chunk-OUVWUZ25.js +50 -0
- package/dist/chunks/chunk-OWCODWOO.js +30 -0
- package/dist/chunks/chunk-OXPC2ALO.js +196 -0
- package/dist/chunks/chunk-P3D3RJCP.js +112 -0
- package/dist/chunks/chunk-P3STSCJR.js +208 -0
- package/dist/chunks/chunk-P4HXIMXL.js +158 -0
- package/dist/chunks/chunk-P5AWCUCD.js +1393 -0
- package/dist/chunks/chunk-P6J4RPZD.js +23 -0
- package/dist/chunks/chunk-PB2ADYWJ.js +131 -0
- package/dist/chunks/chunk-PBF7VSYA.js +99 -0
- package/dist/chunks/chunk-PD3FR4DN.js +293 -0
- package/dist/chunks/chunk-PFATKPWM.js +174 -0
- package/dist/chunks/chunk-PG4RVSEG.js +197 -0
- package/dist/chunks/chunk-PGHVH45S.js +123 -0
- package/dist/chunks/chunk-PHVR2YL7.js +231 -0
- package/dist/chunks/chunk-PILXKLOP.js +23 -0
- package/dist/chunks/chunk-PKBWAPIJ.js +102 -0
- package/dist/chunks/chunk-PLLHADUP.js +1403 -0
- package/dist/chunks/chunk-PQZOR7SV.js +390 -0
- package/dist/chunks/chunk-PSFE7TLM.js +210 -0
- package/dist/chunks/chunk-PSUNHGMY.js +249 -0
- package/dist/chunks/chunk-PTYIJ3EC.js +182 -0
- package/dist/chunks/chunk-PU37DX65.js +106 -0
- package/dist/chunks/chunk-PUZ7J3UP.js +141 -0
- package/dist/chunks/chunk-PV4AAB7W.js +84 -0
- package/dist/chunks/chunk-PWRXIRI6.js +228 -0
- package/dist/chunks/chunk-PX35A67B.js +107 -0
- package/dist/chunks/chunk-PXZHDC4Z.js +81 -0
- package/dist/chunks/chunk-PZR5OJBX.js +156 -0
- package/dist/chunks/chunk-Q2BJ5TEJ.js +221 -0
- package/dist/chunks/chunk-Q2HBFBH6.js +165 -0
- package/dist/chunks/chunk-Q52XIXDR.js +90 -0
- package/dist/chunks/chunk-Q5ZUSIDW.js +198 -0
- package/dist/chunks/chunk-Q6Y5R5JG.js +217 -0
- package/dist/chunks/chunk-Q75M5EIG.js +274 -0
- package/dist/chunks/chunk-Q77T3TBM.js +159 -0
- package/dist/chunks/chunk-QGDIM6DY.js +101 -0
- package/dist/chunks/chunk-QGHERN6U.js +33 -0
- package/dist/chunks/chunk-QHGKN2K5.js +206 -0
- package/dist/chunks/chunk-QJLJTBW4.js +304 -0
- package/dist/chunks/chunk-QLIIKBUI.js +45 -0
- package/dist/chunks/chunk-QNRYX7YF.js +168 -0
- package/dist/chunks/chunk-QOFK5FKS.js +150 -0
- package/dist/chunks/chunk-QPA257YO.js +151 -0
- package/dist/chunks/chunk-QQFDBR7E.js +23 -0
- package/dist/chunks/chunk-QS2PETFZ.js +23 -0
- package/dist/chunks/chunk-QSSIT2QO.js +125 -0
- package/dist/chunks/chunk-QTOGES2D.js +173 -0
- package/dist/chunks/chunk-QU3DVEOQ.js +106 -0
- package/dist/chunks/chunk-QUGTM5RD.js +503 -0
- package/dist/chunks/chunk-QUZTHQF6.js +33 -0
- package/dist/chunks/chunk-QV74355A.js +103 -0
- package/dist/chunks/chunk-QX6OIZBT.js +88 -0
- package/dist/chunks/chunk-QXUELKQN.js +99 -0
- package/dist/chunks/chunk-R553UZBZ.js +194 -0
- package/dist/chunks/chunk-R5ESLH5D.js +93 -0
- package/dist/chunks/chunk-R5U664OE.js +36 -0
- package/dist/chunks/chunk-R6WWZVBF.js +160 -0
- package/dist/chunks/chunk-R72MYWU4.js +166 -0
- package/dist/chunks/chunk-RB4XKE35.js +366 -0
- package/dist/chunks/chunk-RBU6BELN.js +156 -0
- package/dist/chunks/chunk-RCESFBG6.js +163 -0
- package/dist/chunks/chunk-RCMDNUYI.js +97 -0
- package/dist/chunks/chunk-RDE4PYRH.js +209 -0
- package/dist/chunks/chunk-RDQFW3VK.js +102 -0
- package/dist/chunks/chunk-RE6JUXPY.js +110 -0
- package/dist/chunks/chunk-RFADCU5P.js +92 -0
- package/dist/chunks/chunk-RFKSRJ54.js +82 -0
- package/dist/chunks/chunk-RH23C76L.js +260 -0
- package/dist/chunks/chunk-RHV2HQOW.js +94 -0
- package/dist/chunks/chunk-RJJY6V6T.js +106 -0
- package/dist/chunks/chunk-RLEY6SKG.js +248 -0
- package/dist/chunks/chunk-RNBDFIA5.js +97 -0
- package/dist/chunks/chunk-RQHALPPM.js +142 -0
- package/dist/chunks/chunk-RVXISYMK.js +108 -0
- package/dist/chunks/chunk-S2GHNNQI.js +176 -0
- package/dist/chunks/chunk-S2GZTTD7.js +79 -0
- package/dist/chunks/chunk-S4YOEWSK.js +100 -0
- package/dist/chunks/chunk-S5KG6VZC.js +109 -0
- package/dist/chunks/chunk-S5ND56MJ.js +44 -0
- package/dist/chunks/chunk-S5XZAZA6.js +28 -0
- package/dist/chunks/chunk-S72AF5GA.js +115 -0
- package/dist/chunks/chunk-SAAT2LKB.js +889 -0
- package/dist/chunks/chunk-SAXQWIVH.js +199 -0
- package/dist/chunks/chunk-SBYCZFEV.js +197 -0
- package/dist/chunks/chunk-SDGUT7YA.js +122 -0
- package/dist/chunks/chunk-SE6JOBVO.js +33 -0
- package/dist/chunks/chunk-SEMCD2WB.js +210 -0
- package/dist/chunks/chunk-SFFRQZ5K.js +185 -0
- package/dist/chunks/chunk-SFTQWA3E.js +123 -0
- package/dist/chunks/chunk-SGEYNA3G.js +283 -0
- package/dist/chunks/chunk-SJUWPKLN.js +48 -0
- package/dist/chunks/chunk-SLCHXBBZ.js +138 -0
- package/dist/chunks/chunk-SMPQEGVF.js +270 -0
- package/dist/chunks/chunk-SNLAX3A3.js +154 -0
- package/dist/chunks/chunk-SQ3KK3SM.js +92 -0
- package/dist/chunks/chunk-SQNNABA3.js +36 -0
- package/dist/chunks/chunk-SR3CBIBE.js +54 -0
- package/dist/chunks/chunk-SRBYY2EF.js +151 -0
- package/dist/chunks/chunk-SRDP6KTM.js +128 -0
- package/dist/chunks/chunk-SRXZLIOB.js +191 -0
- package/dist/chunks/chunk-STJX2IC6.js +166 -0
- package/dist/chunks/chunk-SUL63ZGP.js +170 -0
- package/dist/chunks/chunk-SURETLYX.js +146 -0
- package/dist/chunks/chunk-SWJGZK5M.js +111 -0
- package/dist/chunks/chunk-SWTH7KCR.js +117 -0
- package/dist/chunks/chunk-SXN57VML.js +45 -0
- package/dist/chunks/chunk-SXV7KIN2.js +44 -0
- package/dist/chunks/chunk-SXVJIDTV.js +79 -0
- package/dist/chunks/chunk-T2U3UMC7.js +113 -0
- package/dist/chunks/chunk-T2Y7JGSQ.js +78 -0
- package/dist/chunks/chunk-T3LSW2EZ.js +63 -0
- package/dist/chunks/chunk-T3SELJMR.js +128 -0
- package/dist/chunks/chunk-T42KEQCL.js +41 -0
- package/dist/chunks/chunk-T4PDPSIA.js +74 -0
- package/dist/chunks/chunk-T5DAYYVM.js +1975 -0
- package/dist/chunks/chunk-T7XASUFF.js +45 -0
- package/dist/chunks/chunk-TA54L6LN.js +261 -0
- package/dist/chunks/chunk-TAMONRE5.js +23 -0
- package/dist/chunks/chunk-TAOPSL26.js +95 -0
- package/dist/chunks/chunk-TB6LPT5E.js +33 -0
- package/dist/chunks/chunk-TBKMCPU6.js +23 -0
- package/dist/chunks/chunk-TCGRVB4T.js +100 -0
- package/dist/chunks/chunk-TD3DKRJS.js +47 -0
- package/dist/chunks/chunk-TFHK3YT6.js +147 -0
- package/dist/chunks/chunk-TH4R2WLP.js +77 -0
- package/dist/chunks/chunk-TIMN2DBU.js +200 -0
- package/dist/chunks/chunk-TL5FIPHA.js +33 -0
- package/dist/chunks/chunk-TMAGW6PC.js +178 -0
- package/dist/chunks/chunk-TMHOYKEO.js +84 -0
- package/dist/chunks/chunk-TMNZTAMZ.js +102 -0
- package/dist/chunks/chunk-TODND75V.js +282 -0
- package/dist/chunks/chunk-TP2XBQKK.js +177 -0
- package/dist/chunks/chunk-TPTDGREG.js +97 -0
- package/dist/chunks/chunk-TRJ4NNGN.js +149 -0
- package/dist/chunks/chunk-TVZFCIFK.js +162 -0
- package/dist/chunks/chunk-TXEIREPQ.js +160 -0
- package/dist/chunks/chunk-TYBNHHBD.js +258 -0
- package/dist/chunks/chunk-TYUQNUH2.js +33 -0
- package/dist/chunks/chunk-TYZDELAA.js +304 -0
- package/dist/chunks/chunk-TZNP52XP.js +122 -0
- package/dist/chunks/chunk-TZYP6QX4.js +78 -0
- package/dist/chunks/chunk-U2DPZYNW.js +226 -0
- package/dist/chunks/chunk-U3MPS6WT.js +187 -0
- package/dist/chunks/chunk-U4ZVEZMN.js +133 -0
- package/dist/chunks/chunk-U5EFYCJT.js +33 -0
- package/dist/chunks/chunk-U5RJ3QJA.js +137 -0
- package/dist/chunks/chunk-U66VVSJZ.js +198 -0
- package/dist/chunks/chunk-U6LOAEVH.js +69 -0
- package/dist/chunks/chunk-U7K7Q2TV.js +351 -0
- package/dist/chunks/chunk-U7PB3GEI.js +169 -0
- package/dist/chunks/chunk-UC2E6DDO.js +361 -0
- package/dist/chunks/chunk-UDW3CEPZ.js +396 -0
- package/dist/chunks/chunk-UFESCVG4.js +23 -0
- package/dist/chunks/chunk-UFQ64U2Y.js +277 -0
- package/dist/chunks/chunk-UGIOOOIA.js +36 -0
- package/dist/chunks/chunk-UJ75LZSD.js +123 -0
- package/dist/chunks/chunk-UKCN2GJD.js +72 -0
- package/dist/chunks/chunk-UKVSOJWJ.js +272 -0
- package/dist/chunks/chunk-UN2SK5YA.js +195 -0
- package/dist/chunks/chunk-UNQSG323.js +345 -0
- package/dist/chunks/chunk-UOCU7J3J.js +33 -0
- package/dist/chunks/chunk-UOTPCH5U.js +135 -0
- package/dist/chunks/chunk-UOUBARPU.js +23 -0
- package/dist/chunks/chunk-URN7VNPR.js +95 -0
- package/dist/chunks/chunk-URUN5XLS.js +95 -0
- package/dist/chunks/chunk-UU6P4VNG.js +55 -0
- package/dist/chunks/chunk-UUL5IHNB.js +48 -0
- package/dist/chunks/chunk-UWAQ4UJS.js +222 -0
- package/dist/chunks/chunk-V25HTOBY.js +297 -0
- package/dist/chunks/chunk-V2VOOG2Q.js +50 -0
- package/dist/chunks/chunk-V3SZ6Y24.js +23 -0
- package/dist/chunks/chunk-V45YVVOQ.js +315 -0
- package/dist/chunks/chunk-V4FVR544.js +95 -0
- package/dist/chunks/chunk-V4WTF3WB.js +33 -0
- package/dist/chunks/chunk-V5SPSLAC.js +85 -0
- package/dist/chunks/chunk-V6TLGWAV.js +172 -0
- package/dist/chunks/chunk-V776XRA5.js +150 -0
- package/dist/chunks/chunk-V7FLLGH3.js +117 -0
- package/dist/chunks/chunk-VAZAKIPK.js +81 -0
- package/dist/chunks/chunk-VE32WYSU.js +159 -0
- package/dist/chunks/chunk-VFYTDX76.js +45 -0
- package/dist/chunks/chunk-VGD3RVAM.js +262 -0
- package/dist/chunks/chunk-VMHA5HQT.js +189 -0
- package/dist/chunks/chunk-VNL6UXIR.js +49 -0
- package/dist/chunks/chunk-VOQ2UUSF.js +23 -0
- package/dist/chunks/chunk-VPLOSEZB.js +119 -0
- package/dist/chunks/chunk-VQBB23AJ.js +194 -0
- package/dist/chunks/chunk-VQEMXVCZ.js +311 -0
- package/dist/chunks/chunk-VSSHYNZ2.js +198 -0
- package/dist/chunks/chunk-VUO5NYMQ.js +176 -0
- package/dist/chunks/chunk-VV26MVPB.js +60 -0
- package/dist/chunks/chunk-W2UP4TZI.js +360 -0
- package/dist/chunks/chunk-W43KI3R7.js +181 -0
- package/dist/chunks/chunk-W4YKVLKC.js +90 -0
- package/dist/chunks/chunk-W5VJJRBX.js +237 -0
- package/dist/chunks/chunk-W6AABTOC.js +121 -0
- package/dist/chunks/chunk-W7QEIW2C.js +163 -0
- package/dist/chunks/chunk-WBEA5QPA.js +212 -0
- package/dist/chunks/chunk-WBJJSLRC.js +174 -0
- package/dist/chunks/chunk-WF6S5VC7.js +120 -0
- package/dist/chunks/chunk-WF7JH5KH.js +190 -0
- package/dist/chunks/chunk-WGPDOKZD.js +155 -0
- package/dist/chunks/chunk-WHNRDYVO.js +51 -0
- package/dist/chunks/chunk-WHQO7GY6.js +88 -0
- package/dist/chunks/chunk-WJFS7REU.js +176 -0
- package/dist/chunks/chunk-WOUXQXZP.js +33 -0
- package/dist/chunks/chunk-WPQJ4X62.js +326 -0
- package/dist/chunks/chunk-WR4RGBX5.js +110 -0
- package/dist/chunks/chunk-WR5QVD7S.js +23 -0
- package/dist/chunks/chunk-WTYNJJYP.js +91 -0
- package/dist/chunks/chunk-WUQ3SUQJ.js +71 -0
- package/dist/chunks/chunk-WVP7TYB7.js +167 -0
- package/dist/chunks/chunk-WVY6QY2K.js +80 -0
- package/dist/chunks/chunk-WW5MT52V.js +100 -0
- package/dist/chunks/chunk-WWILYNDD.js +95 -0
- package/dist/chunks/chunk-WX2N2XMZ.js +95 -0
- package/dist/chunks/chunk-WXZ2AVVP.js +358 -0
- package/dist/chunks/chunk-X25ILZWW.js +133 -0
- package/dist/chunks/chunk-X4AJINI6.js +23 -0
- package/dist/chunks/chunk-X772B7TD.js +129 -0
- package/dist/chunks/chunk-XCROOTYS.js +165 -0
- package/dist/chunks/chunk-XDYNVJ5O.js +164 -0
- package/dist/chunks/chunk-XEY7CCOL.js +33 -0
- package/dist/chunks/chunk-XHFSRYT4.js +80 -0
- package/dist/chunks/chunk-XI5SQXJ2.js +84 -0
- package/dist/chunks/chunk-XIILX3EJ.js +134 -0
- package/dist/chunks/chunk-XKU2CAHI.js +1469 -0
- package/dist/chunks/chunk-XLUXYVEH.js +112 -0
- package/dist/chunks/chunk-XM6L56BO.js +155 -0
- package/dist/chunks/chunk-XMMJA2LB.js +166 -0
- package/dist/chunks/chunk-XMO4AEGD.js +86 -0
- package/dist/chunks/chunk-XMOG5RRS.js +150 -0
- package/dist/chunks/chunk-XNTBJSYD.js +23 -0
- package/dist/chunks/chunk-XOKE7V4W.js +106 -0
- package/dist/chunks/chunk-XRZX2O3N.js +231 -0
- package/dist/chunks/chunk-XSGZUJCO.js +145 -0
- package/dist/chunks/chunk-XUQ4MFB2.js +87 -0
- package/dist/chunks/chunk-XUU33SAD.js +54 -0
- package/dist/chunks/chunk-XXR6GX6P.js +163 -0
- package/dist/chunks/chunk-XZSXK7GM.js +198 -0
- package/dist/chunks/chunk-Y3CU4XNX.js +101 -0
- package/dist/chunks/chunk-Y3EAAFEY.js +136 -0
- package/dist/chunks/chunk-Y3Q6R2SN.js +115 -0
- package/dist/chunks/chunk-Y57JKTPI.js +57 -0
- package/dist/chunks/chunk-Y7KI7TRM.js +83 -0
- package/dist/chunks/chunk-Y7RJOH6G.js +140 -0
- package/dist/chunks/chunk-YBAURZJX.js +33 -0
- package/dist/chunks/chunk-YC2ACDEJ.js +177 -0
- package/dist/chunks/chunk-YCOQNOWN.js +90 -0
- package/dist/chunks/chunk-YD4KPKJW.js +1417 -0
- package/dist/chunks/chunk-YDEWGIGM.js +95 -0
- package/dist/chunks/chunk-YEI7PZVK.js +45 -0
- package/dist/chunks/chunk-YF7UYWVB.js +83 -0
- package/dist/chunks/chunk-YI4ILXRT.js +157 -0
- package/dist/chunks/chunk-YKKBKPZQ.js +79 -0
- package/dist/chunks/chunk-YLDCGUWD.js +172 -0
- package/dist/chunks/chunk-YLJGYJVB.js +175 -0
- package/dist/chunks/chunk-YMOJH55Y.js +201 -0
- package/dist/chunks/chunk-YOVPJTDZ.js +175 -0
- package/dist/chunks/chunk-YOXOXSN2.js +23 -0
- package/dist/chunks/chunk-YPK2KKQF.js +157 -0
- package/dist/chunks/chunk-YR3V4GNC.js +86 -0
- package/dist/chunks/chunk-YS7ORD7Y.js +331 -0
- package/dist/chunks/chunk-YTFLGQMA.js +23 -0
- package/dist/chunks/chunk-YTLKKJJX.js +173 -0
- package/dist/chunks/chunk-YVXK3BN6.js +112 -0
- package/dist/chunks/chunk-YYORLRC4.js +139 -0
- package/dist/chunks/chunk-YYZB5K6O.js +36 -0
- package/dist/chunks/chunk-YZBFXTJO.js +166 -0
- package/dist/chunks/chunk-Z3H5FVOQ.js +41 -0
- package/dist/chunks/chunk-Z4XJSKDO.js +336 -0
- package/dist/chunks/chunk-Z536QMHC.js +97 -0
- package/dist/chunks/chunk-Z7G3ZCYZ.js +152 -0
- package/dist/chunks/chunk-Z7JUDPOV.js +108 -0
- package/dist/chunks/chunk-ZAW34KCU.js +267 -0
- package/dist/chunks/chunk-ZBNDL27L.js +100 -0
- package/dist/chunks/chunk-ZC4B6WFS.js +559 -0
- package/dist/chunks/chunk-ZGDGGYMY.js +247 -0
- package/dist/chunks/chunk-ZIEAMPL7.js +180 -0
- package/dist/chunks/chunk-ZIN46QGF.js +92 -0
- package/dist/chunks/chunk-ZKKFLXEX.js +80 -0
- package/dist/chunks/chunk-ZN57ARZ6.js +111 -0
- package/dist/chunks/chunk-ZNQDYPRM.js +83 -0
- package/dist/chunks/chunk-ZNROQFYI.js +218 -0
- package/dist/chunks/chunk-ZPF47T6T.js +217 -0
- package/dist/chunks/chunk-ZRJYZRES.js +158 -0
- package/dist/chunks/chunk-ZRLDRY3P.js +77 -0
- package/dist/chunks/chunk-ZT63R3SL.js +172 -0
- package/dist/chunks/chunk-ZT6N4VTQ.js +66 -0
- package/dist/chunks/chunk-ZU45SGCM.js +138 -0
- package/dist/chunks/chunk-ZULRHZFR.js +130 -0
- package/dist/chunks/chunk-ZV6ZNRHK.js +55 -0
- package/dist/chunks/chunk-ZWUMSRDE.js +49 -0
- package/dist/chunks/chunk-ZXQQSUW5.js +261 -0
- package/dist/chunks/chunk-ZZYFJPXP.js +82 -0
- package/dist/chunks/client-AMCLO4GL.js +31 -0
- package/dist/chunks/client-GSJ7RY5F.js +167 -0
- package/dist/chunks/client-UP2MW5GT.js +46 -0
- package/dist/chunks/client-actions-NNDFZBVS.js +164 -0
- package/dist/chunks/client-store-7B3N4EYZ.js +33 -0
- package/dist/chunks/dangerous-YTHIXQMZ.js +117 -0
- package/dist/chunks/delete-current-file-R7RORXV3.js +157 -0
- package/dist/chunks/editor-seams-JMLG36RI.js +164 -0
- package/dist/chunks/editor-store-KWQPRB3S.js +142 -0
- package/dist/chunks/export-VXUHA7QN.js +68 -0
- package/dist/chunks/export-watermark-L6XAPRFP.js +150 -0
- package/dist/chunks/eyedropper-26K3NGGK.js +352 -0
- package/dist/chunks/generate-media-ZOYAKXMI.js +255 -0
- package/dist/chunks/host-5KIT7RHA.js +176 -0
- package/dist/chunks/integrations-M6GVDM3O.js +124 -0
- package/dist/chunks/kit-modules-T4P2R7A4.js +18 -0
- package/dist/chunks/libraries-VOAUIQMY.js +305 -0
- package/dist/chunks/library-previews-ILWS67IM.js +199 -0
- package/dist/chunks/live-I3B4GRH3.js +315 -0
- package/dist/chunks/lottie-CLA6RERK.js +86 -0
- package/dist/chunks/media-tool-7YK74PRF.js +335 -0
- package/dist/chunks/new-file-XH74FMFK.js +134 -0
- package/dist/chunks/page-thumbnails-J4UIZJMT.js +137 -0
- package/dist/chunks/pdf-LBCSYUGL.js +1217 -0
- package/dist/chunks/player-check-5ZUPGNUI.js +114 -0
- package/dist/chunks/plugin-YT4ZYCJF.js +124 -0
- package/dist/chunks/plugin-import-QR4Y6IJV.js +669 -0
- package/dist/chunks/presence-MJVQIEJP.js +130 -0
- package/dist/chunks/preview-media-NKZRMJT5.js +122 -0
- package/dist/chunks/project-ARACVXSA.js +1653 -0
- package/dist/chunks/publish-site-Z2S43K6T.js +161 -0
- package/dist/chunks/publish-store-4C6FEJST.js +93 -0
- package/dist/chunks/raster-actions-CCBAPGZC.js +230 -0
- package/dist/chunks/reference-images-MRHSJ4QL.js +63 -0
- package/dist/chunks/resolvers-FKXBL3VR.js +140 -0
- package/dist/chunks/runner-QXYMSCZ5.js +2893 -0
- package/dist/chunks/runtime-O64IPAIS.js +32 -0
- package/dist/chunks/shader-preview-YMHPPV32.js +1 -1
- package/dist/chunks/sites-DC3EEZFX.js +33 -0
- package/dist/chunks/store-EHSMXLWH.js +229 -0
- package/dist/chunks/storefront-prepare-TURLAC6H.js +33 -0
- package/dist/chunks/svg-export-GFEGTT4T.js +82 -0
- package/dist/chunks/sync-F7CZHEKK.js +156 -0
- package/dist/chunks/tabs-RFPNMEM3.js +314 -0
- package/dist/chunks/team-MFICTPVC.js +46 -0
- package/dist/chunks/team-client-WTE2HEPG.js +157 -0
- package/dist/chunks/templates-IYVQRXEN.js +181 -0
- package/dist/chunks/tools-QY5XTNXK.js +34 -0
- package/dist/chunks/ui-commands-QUUAM7VU.js +272 -0
- package/dist/chunks/versions-KYNJHOXD.js +314 -0
- package/dist/chunks/video-6DWFBJHR.js +1 -1
- package/dist/index.js +9 -9
- package/dist/lib/templates/capabilities.js +2 -2
- package/dist/lib/templates/finish.js +2 -2
- package/dist/lib/templates/upload.js +2 -2
- package/dist/lib/templates/vocabulary.js +2 -2
- package/dist/migrations/brand-media.js +4 -4
- package/dist/migrations/categories.js +2 -2
- package/dist/migrations/index.js +12 -12
- package/dist/migrations/timeline-facets.js +2 -2
- package/dist/seed/files.json +1 -1
- package/dist/templates/anime/character.js +7 -7
- 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 +8 -8
- 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/build.js +4 -4
- 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 +6 -6
- package/dist/templates/app/saas-store-paywall.js +6 -6
- package/dist/templates/app/splash.js +6 -6
- package/dist/templates/app/success-confetti.js +6 -6
- package/dist/templates/app/tour-tickets-june-ticket.js +6 -6
- package/dist/templates/app/tour-tickets-tide-ticket.js +6 -6
- package/dist/templates/app/tour-tickets-wreck-ticket.js +6 -6
- package/dist/templates/build.js +2 -2
- package/dist/templates/cards/index.js +8 -8
- package/dist/templates/cards/shared.js +6 -6
- package/dist/templates/cards/themes.js +7 -7
- package/dist/templates/count.js +3 -3
- package/dist/templates/data/bars.js +6 -6
- package/dist/templates/data/countdown-story.js +6 -6
- package/dist/templates/data/counters.js +6 -6
- package/dist/templates/data/donut.js +6 -6
- package/dist/templates/data/line.js +6 -6
- package/dist/templates/data/year-in-review.js +6 -6
- package/dist/templates/effects/glass-intro.js +6 -6
- package/dist/templates/effects/glass-promo.js +6 -6
- package/dist/templates/effects/grain-story.js +6 -6
- package/dist/templates/effects/grid-intro.js +6 -6
- package/dist/templates/effects/halftone-story.js +6 -6
- package/dist/templates/effects/mesh-story.js +6 -6
- package/dist/templates/effects/shader-title.js +6 -6
- package/dist/templates/email/april-fools-header.js +8 -8
- 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 +8 -8
- package/dist/templates/email/saas-mail-day-three.js +8 -8
- package/dist/templates/email/saas-mail-launch.js +8 -8
- package/dist/templates/email/saas-mail-payment-failed.js +8 -8
- package/dist/templates/email/saas-mail-sign-in-code.js +8 -8
- package/dist/templates/email/saas-mail-trial-ending.js +8 -8
- package/dist/templates/email/saas-mail-waitlist.js +8 -8
- package/dist/templates/email/shared.js +4 -4
- 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 +8 -8
- 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/shared.js +4 -4
- 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 +838 -837
- package/dist/templates/index.json +46 -0
- package/dist/templates/kinetic/letters.js +6 -6
- package/dist/templates/kinetic/lines.js +6 -6
- package/dist/templates/kinetic/typewriter.js +6 -6
- package/dist/templates/kinetic/word-swap.js +6 -6
- package/dist/templates/kinetic/words.js +6 -6
- package/dist/templates/kit.js +3 -3
- package/dist/templates/libraries/audio-reactive.js +6 -6
- package/dist/templates/libraries/loaders.js +6 -6
- package/dist/templates/libraries/micro-interactions.js +6 -6
- package/dist/templates/libraries/motion-essentials.js +6 -6
- package/dist/templates/libraries/toasts.js +6 -6
- package/dist/templates/lottie/ai.js +7 -7
- package/dist/templates/lottie/climate.js +7 -7
- package/dist/templates/lottie/commerce.js +7 -7
- package/dist/templates/lottie/education.js +7 -7
- package/dist/templates/lottie/fintech.js +7 -7
- package/dist/templates/lottie/food.js +7 -7
- package/dist/templates/lottie/health.js +7 -7
- package/dist/templates/lottie/index.js +31 -31
- package/dist/templates/lottie/lottie-kit.js +6 -6
- package/dist/templates/lottie/realestate.js +7 -7
- package/dist/templates/lottie/saas-ui-checklist.js +8 -8
- package/dist/templates/lottie/saas-ui-dashboard-hero.js +8 -8
- package/dist/templates/lottie/saas-ui-empty-data.js +8 -8
- package/dist/templates/lottie/saas-ui-empty-search.js +8 -8
- package/dist/templates/lottie/saas-ui-error-retry.js +8 -8
- package/dist/templates/lottie/saas-ui-file-upload.js +8 -8
- package/dist/templates/lottie/saas-ui-streaming-answer.js +8 -8
- package/dist/templates/lottie/saas-ui-sync-connected.js +8 -8
- package/dist/templates/lottie/saas-ui-trial-timeline.js +8 -8
- package/dist/templates/lottie/saas-ui-upgrade-unlocked.js +8 -8
- package/dist/templates/lottie/saas-ui.js +18 -18
- package/dist/templates/lottie/saas.js +7 -7
- package/dist/templates/lottie/security.js +7 -7
- package/dist/templates/lottie/techniques.js +7 -7
- package/dist/templates/lottie/travel.js +7 -7
- package/dist/templates/motion/ambient-loop.js +6 -6
- package/dist/templates/motion/app-icon-sting.js +6 -6
- package/dist/templates/motion/april-fools-infomercial-reel.js +8 -8
- package/dist/templates/motion/arcade-high-score.js +6 -6
- package/dist/templates/motion/art-deco-grand-opening.js +6 -6
- package/dist/templates/motion/autumn-harvest-year-reel.js +6 -6
- package/dist/templates/motion/back-to-school-timetable-reel.js +6 -6
- package/dist/templates/motion/bauhaus-launch-reel.js +6 -6
- package/dist/templates/motion/black-friday-coupons-deal-reel.js +6 -6
- package/dist/templates/motion/black-friday-coupons-last-day.js +6 -6
- package/dist/templates/motion/black-friday-deal-drop.js +6 -6
- package/dist/templates/motion/black-friday-neon-deal-reel.js +6 -6
- package/dist/templates/motion/black-friday-neon-last-day.js +6 -6
- package/dist/templates/motion/black-friday-scratch-countdown.js +6 -6
- package/dist/templates/motion/black-friday-scratch-deal-reel.js +6 -6
- package/dist/templates/motion/black-friday-scratch-last-day.js +6 -6
- package/dist/templates/motion/black-friday-ticker-deal-drop.js +6 -6
- package/dist/templates/motion/black-friday-ticker-last-call.js +6 -6
- package/dist/templates/motion/blueprint-rev-b-reel.js +6 -6
- package/dist/templates/motion/broadsheet-launch-reel.js +6 -6
- package/dist/templates/motion/broadsheet-milestone-post.js +7 -7
- package/dist/templates/motion/claymation-launch-reel.js +6 -6
- package/dist/templates/motion/comic-book-issue-reel.js +6 -6
- package/dist/templates/motion/countdown.js +6 -6
- package/dist/templates/motion/cyberpunk-lock-on-reel.js +6 -6
- package/dist/templates/motion/departure-board-reel.js +6 -6
- package/dist/templates/motion/diwali-lamps-reel.js +6 -6
- package/dist/templates/motion/earth-day-footprint-reel.js +6 -6
- package/dist/templates/motion/earth-day-pledge-post.js +6 -6
- 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 +6 -6
- package/dist/templates/motion/halloween-graveyard-reel.js +6 -6
- package/dist/templates/motion/instagram-promo.js +6 -6
- package/dist/templates/motion/kinetic-headline.js +6 -6
- package/dist/templates/motion/landing-hero/index.js +9 -9
- package/dist/templates/motion/launch-trailer/document.js +838 -837
- 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 +6 -6
- package/dist/templates/motion/lower-third.js +6 -6
- package/dist/templates/motion/lunar-new-year-envelope-reel.js +6 -6
- package/dist/templates/motion/machined-trailer.js +8 -8
- package/dist/templates/motion/manuscript-launch-reel.js +6 -6
- package/dist/templates/motion/new-year-ball-drop-reel.js +6 -6
- package/dist/templates/motion/noir-case-reel.js +6 -6
- package/dist/templates/motion/pitch-title.js +6 -6
- package/dist/templates/motion/psychedelic-gig-reel.js +6 -6
- package/dist/templates/motion/riso-zine-launch-reel.js +6 -6
- package/dist/templates/motion/saas-ai-prompt.js +6 -6
- package/dist/templates/motion/saas-before-after.js +6 -6
- package/dist/templates/motion/saas-changelog-drop.js +6 -6
- package/dist/templates/motion/saas-film-webinar-opener.js +6 -6
- package/dist/templates/motion/saas-hook-features.js +6 -6
- package/dist/templates/motion/saas-mrr-milestone.js +6 -6
- package/dist/templates/motion/saas-screen-demo.js +6 -6
- package/dist/templates/motion/saas-store-install-ad.js +7 -7
- package/dist/templates/motion/saas-testimonial.js +6 -6
- package/dist/templates/motion/saas-vs-comparison.js +6 -6
- package/dist/templates/motion/singles-day-flash-post.js +6 -6
- package/dist/templates/motion/singles-day-live-reel.js +6 -6
- package/dist/templates/motion/smooth-loop.js +6 -6
- package/dist/templates/motion/solarpunk-rooftop-reel.js +6 -6
- package/dist/templates/motion/space-opera-countdown-reel.js +6 -6
- package/dist/templates/motion/spring-bloom-first-hundred-post.js +6 -6
- package/dist/templates/motion/spring-bloom-first-shoots-reel.js +6 -6
- package/dist/templates/motion/stat-pop.js +6 -6
- package/dist/templates/motion/style-bento-feature-demo.js +6 -6
- package/dist/templates/motion/style-bento-launch-reel.js +6 -6
- package/dist/templates/motion/style-brutalist-feature-demo.js +6 -6
- package/dist/templates/motion/style-brutalist-launch-reel.js +6 -6
- package/dist/templates/motion/style-dark-feature-demo.js +6 -6
- package/dist/templates/motion/style-dark-launch-reel.js +6 -6
- package/dist/templates/motion/style-data-feature-demo.js +6 -6
- package/dist/templates/motion/style-data-launch-reel.js +6 -6
- package/dist/templates/motion/style-editorial-feature-demo.js +6 -6
- package/dist/templates/motion/style-editorial-launch-reel.js +6 -6
- package/dist/templates/motion/style-glass-feature-demo.js +6 -6
- package/dist/templates/motion/style-glass-launch-reel.js +6 -6
- package/dist/templates/motion/style-gradient-feature-demo.js +6 -6
- package/dist/templates/motion/style-gradient-launch-reel.js +6 -6
- package/dist/templates/motion/style-maximal-beat-cut.js +119 -0
- 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 +6 -6
- package/dist/templates/motion/style-pastel-launch-reel.js +6 -6
- package/dist/templates/motion/style-sketch-feature-demo.js +6 -6
- package/dist/templates/motion/style-sketch-launch-reel.js +6 -6
- package/dist/templates/motion/style-swiss-feature-demo.js +6 -6
- package/dist/templates/motion/style-swiss-launch-reel.js +6 -6
- package/dist/templates/motion/style-terminal-feature-demo.js +6 -6
- package/dist/templates/motion/style-terminal-launch-reel.js +6 -6
- package/dist/templates/motion/summer-heatwave-lido-reel.js +6 -6
- package/dist/templates/motion/template-wall.js +7 -7
- package/dist/templates/motion/title-card-3d.js +6 -6
- package/dist/templates/motion/tour-tickets-june-city.js +6 -6
- package/dist/templates/motion/tour-tickets-june-dates.js +6 -6
- package/dist/templates/motion/tour-tickets-june-final.js +6 -6
- package/dist/templates/motion/tour-tickets-june-reel.js +6 -6
- package/dist/templates/motion/tour-tickets-tide-city.js +6 -6
- package/dist/templates/motion/tour-tickets-tide-dates.js +6 -6
- package/dist/templates/motion/tour-tickets-tide-final.js +6 -6
- package/dist/templates/motion/tour-tickets-tide-reel.js +6 -6
- package/dist/templates/motion/tour-tickets-wreck-city.js +6 -6
- package/dist/templates/motion/tour-tickets-wreck-dates.js +6 -6
- package/dist/templates/motion/tour-tickets-wreck-final.js +6 -6
- package/dist/templates/motion/tour-tickets-wreck-reel.js +6 -6
- package/dist/templates/motion/transit-map-line-opening.js +6 -6
- package/dist/templates/motion/transit-map-milestone-post.js +6 -6
- package/dist/templates/motion/ukiyo-e-launch-reel.js +6 -6
- package/dist/templates/motion/valentines-breakup-reel.js +6 -6
- package/dist/templates/motion/vaporwave-launch-reel.js +7 -7
- package/dist/templates/motion/winter-cosy-heads-down-post.js +6 -6
- package/dist/templates/motion/winter-cosy-hibernation-reel.js +6 -6
- package/dist/templates/motion/winter-holidays-advent-reel.js +6 -6
- package/dist/templates/motion-qa.js +4 -4
- 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 +8 -8
- package/dist/templates/motion3d/screen-wall.js +7 -7
- package/dist/templates/motion3d/stage.js +4 -4
- 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/shared.js +4 -4
- package/dist/templates/music/synthwave-tunnel.js +7 -7
- package/dist/templates/print/comic-hero-cascade.js +6 -6
- package/dist/templates/print/comic-hero-chase.js +6 -6
- package/dist/templates/print/comic-hero-cover-modern.js +6 -6
- package/dist/templates/print/comic-hero-grid-break.js +6 -6
- package/dist/templates/print/comic-hero-interrogation.js +6 -6
- package/dist/templates/print/comic-hero-issue.js +17 -17
- package/dist/templates/print/comic-hero-manga-action.js +6 -6
- package/dist/templates/print/comic-hero-nested.js +6 -6
- package/dist/templates/print/comic-hero-overlap.js +6 -6
- package/dist/templates/print/comic-hero-parallel.js +6 -6
- package/dist/templates/print/comic-hero-pinup.js +6 -6
- package/dist/templates/print/comic-hero-widescreen.js +6 -6
- package/dist/templates/print/comic-modern-action-slant.js +6 -6
- package/dist/templates/print/comic-modern-cover-pulp.js +6 -6
- package/dist/templates/print/comic-modern-flashback.js +6 -6
- package/dist/templates/print/comic-modern-issue.js +15 -15
- package/dist/templates/print/comic-modern-nine-grid.js +6 -6
- package/dist/templates/print/comic-modern-page-classic.js +6 -6
- package/dist/templates/print/comic-modern-polyptych.js +6 -6
- package/dist/templates/print/comic-modern-radial.js +6 -6
- package/dist/templates/print/comic-modern-splash.js +6 -6
- package/dist/templates/print/comic-modern-spread.js +6 -6
- package/dist/templates/print/everyday-save-the-date.js +6 -6
- package/dist/templates/print/everyday-specials-board.js +6 -6
- package/dist/templates/print/holidays-christmas-church-newsletter.js +6 -6
- package/dist/templates/print/holidays-christmas-eve-invitation.js +6 -6
- package/dist/templates/print/holidays-christmas-gift-tags.js +6 -6
- package/dist/templates/print/holidays-diwali-party-invitation.js +6 -6
- package/dist/templates/print/holidays-easter-activity-sheet.js +6 -6
- package/dist/templates/print/holidays-easter-egg-hunt-flyer.js +6 -6
- package/dist/templates/print/holidays-eid-dinner-invitation.js +6 -6
- package/dist/templates/print/holidays-eid-gift-tags.js +6 -6
- package/dist/templates/print/holidays-halloween-party-invitation.js +6 -6
- package/dist/templates/print/holidays-halloween-treat-labels.js +6 -6
- package/dist/templates/print/holidays-halloween-trunk-or-treat-poster.js +6 -6
- package/dist/templates/print/holidays-hanukkah-activity-sheet.js +6 -6
- package/dist/templates/print/holidays-hanukkah-party-invitation.js +6 -6
- package/dist/templates/print/holidays-lunar-new-year-banquet-menu.js +6 -6
- package/dist/templates/print/holidays-new-years-eve-poster.js +6 -6
- package/dist/templates/print/holidays-thanksgiving-dinner-menu.js +6 -6
- package/dist/templates/print/holidays-thanksgiving-place-cards.js +6 -6
- package/dist/templates/print/holidays-valentines-dinner-menu.js +6 -6
- 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 +6 -6
- package/dist/templates/print/studio-portfolio-booklet.js +6 -6
- package/dist/templates/saas/email-decks-shared.js +7 -7
- package/dist/templates/saas/email-decks.js +19 -19
- package/dist/templates/saas/index.js +194 -193
- package/dist/templates/saas/launch-kit.js +15 -15
- package/dist/templates/saas/launch-video.js +14 -14
- package/dist/templates/saas/lottie-shared.js +7 -7
- package/dist/templates/saas/stores-shared.js +4 -4
- package/dist/templates/saas/stores.js +17 -17
- 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-shared.js +3 -1
- package/dist/templates/saas/style-maximal.js +18 -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 +14 -14
- package/dist/templates/saas/web.js +18 -18
- package/dist/templates/scenes/before-after.js +6 -6
- 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/shared.js +4 -4
- 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 +7 -7
- package/dist/templates/slides/deck.js +6 -6
- package/dist/templates/slides/education.js +7 -7
- package/dist/templates/slides/launch.js +7 -7
- package/dist/templates/slides/layouts.js +7 -7
- package/dist/templates/slides/pitch.js +7 -7
- package/dist/templates/slides/report.js +7 -7
- package/dist/templates/slides/saas-mail-investor-update.js +8 -8
- package/dist/templates/slides/saas-mail-seed-pitch.js +8 -8
- package/dist/templates/slides/sales.js +7 -7
- package/dist/templates/slides/section-divider.js +7 -7
- package/dist/templates/slides/title-card.js +7 -7
- package/dist/templates/slides/training.js +7 -7
- package/dist/templates/slides/webinar.js +7 -7
- 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 +8 -8
- package/dist/templates/social/april-fools-price-slash-post.js +8 -8
- package/dist/templates/social/arcade-boss-fight.js +6 -6
- package/dist/templates/social/arcade-level-up.js +6 -6
- package/dist/templates/social/art-deco-link-preview.js +6 -6
- package/dist/templates/social/art-deco-premiere-post.js +6 -6
- package/dist/templates/social/autumn-harvest-link-preview.js +6 -6
- package/dist/templates/social/autumn-harvest-thanks-post.js +6 -6
- package/dist/templates/social/back-to-school-link-preview.js +6 -6
- package/dist/templates/social/back-to-school-report-card-post.js +6 -6
- package/dist/templates/social/bauhaus-drift-post.js +6 -6
- package/dist/templates/social/bauhaus-link-preview.js +6 -6
- package/dist/templates/social/bauhaus-pricing-post.js +6 -6
- package/dist/templates/social/black-friday-ads.js +6 -6
- package/dist/templates/social/black-friday-countdown.js +6 -6
- package/dist/templates/social/black-friday-coupons-ads.js +6 -6
- package/dist/templates/social/black-friday-coupons-countdown.js +6 -6
- package/dist/templates/social/black-friday-neon-ads.js +6 -6
- package/dist/templates/social/black-friday-neon-countdown.js +6 -6
- package/dist/templates/social/black-friday-scratch-ads.js +6 -6
- package/dist/templates/social/black-friday-ticker-ads.js +6 -6
- package/dist/templates/social/black-friday-ticker-countdown.js +6 -6
- package/dist/templates/social/blueprint-dimension-post.js +6 -6
- package/dist/templates/social/blueprint-link-preview.js +6 -6
- package/dist/templates/social/blueprint-parts-list-post.js +6 -6
- package/dist/templates/social/broadsheet-hiring-classifieds.js +6 -6
- package/dist/templates/social/broadsheet-link-preview.js +6 -6
- package/dist/templates/social/claymation-link-preview.js +6 -6
- package/dist/templates/social/claymation-streak-post.js +6 -6
- package/dist/templates/social/comic-book-cover-preview.js +6 -6
- package/dist/templates/social/comic-book-strip-post.js +6 -6
- package/dist/templates/social/cyberpunk-implant-post.js +6 -6
- package/dist/templates/social/cyberpunk-link-preview.js +6 -6
- package/dist/templates/social/departure-board-pass-ad.js +6 -6
- package/dist/templates/social/departure-board-store-set.js +6 -6
- package/dist/templates/social/departure-board-thanks-post.js +6 -6
- package/dist/templates/social/diwali-link-preview.js +6 -6
- package/dist/templates/social/diwali-thanks-post.js +6 -6
- package/dist/templates/social/earth-day-link-preview.js +6 -6
- package/dist/templates/social/everyday-save-the-date-post.js +6 -6
- 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 +6 -6
- package/dist/templates/social/gothic-link-preview.js +6 -6
- package/dist/templates/social/halloween-link-preview.js +6 -6
- package/dist/templates/social/halloween-offer-post.js +6 -6
- package/dist/templates/social/holidays-diwali-sweet-shop-post.js +6 -6
- package/dist/templates/social/holidays-lunar-new-year-bakery-post.js +6 -6
- package/dist/templates/social/holidays-new-years-eve-shop-hours.js +6 -6
- package/dist/templates/social/holidays-thanksgiving-pie-orders-post.js +6 -6
- package/dist/templates/social/holidays-valentines-florist-post.js +6 -6
- package/dist/templates/social/lunar-new-year-greeting-post.js +6 -6
- package/dist/templates/social/lunar-new-year-link-preview.js +6 -6
- package/dist/templates/social/machined-link-preview.js +8 -8
- package/dist/templates/social/machined-plate-post.js +8 -8
- package/dist/templates/social/manuscript-chapter-post.js +6 -6
- package/dist/templates/social/manuscript-link-preview.js +6 -6
- package/dist/templates/social/new-year-link-preview.js +6 -6
- package/dist/templates/social/new-year-resolutions-post.js +6 -6
- package/dist/templates/social/noir-case-file.js +6 -6
- package/dist/templates/social/noir-feature-post.js +6 -6
- package/dist/templates/social/post-announcement.js +6 -6
- package/dist/templates/social/post-event.js +6 -6
- package/dist/templates/social/post-podcast.js +6 -6
- package/dist/templates/social/post-quote.js +6 -6
- package/dist/templates/social/post-sale.js +6 -6
- package/dist/templates/social/post-stat.js +6 -6
- package/dist/templates/social/post-testimonial.js +6 -6
- package/dist/templates/social/promo-announcement.js +6 -6
- package/dist/templates/social/promo-beat-drop.js +6 -6
- package/dist/templates/social/promo-event.js +6 -6
- package/dist/templates/social/promo-new-product.js +6 -6
- package/dist/templates/social/promo-quote-reveal.js +6 -6
- package/dist/templates/social/promo-sale-drop.js +6 -6
- package/dist/templates/social/promo-tip-list.js +6 -6
- package/dist/templates/social/psychedelic-lineup-post.js +6 -6
- package/dist/templates/social/psychedelic-link-preview.js +6 -6
- package/dist/templates/social/riso-zine-link-preview.js +6 -6
- package/dist/templates/social/riso-zine-mrr-poster.js +6 -6
- package/dist/templates/social/saas-kit-carousel.js +6 -6
- package/dist/templates/social/saas-kit-countdown-post.js +6 -6
- package/dist/templates/social/saas-kit-feature-drop.js +6 -6
- package/dist/templates/social/saas-kit-link-preview.js +6 -6
- package/dist/templates/social/saas-kit-live-post.js +6 -6
- package/dist/templates/social/saas-kit-mrr-card.js +6 -6
- package/dist/templates/social/saas-kit-ph-gallery.js +6 -6
- package/dist/templates/social/saas-kit-ph-thumb.js +6 -6
- package/dist/templates/social/saas-kit-youtube-thumbs.js +6 -6
- 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 +8 -8
- package/dist/templates/social/saas-store-play-kit.js +6 -6
- package/dist/templates/social/saas-store-story.js +7 -7
- package/dist/templates/social/singles-day-link-preview.js +6 -6
- package/dist/templates/social/solarpunk-impact-post.js +6 -6
- package/dist/templates/social/solarpunk-link-preview.js +6 -6
- package/dist/templates/social/space-opera-link-preview.js +6 -6
- package/dist/templates/social/space-opera-mission-patch-post.js +6 -6
- package/dist/templates/social/spring-bloom-link-preview.js +6 -6
- package/dist/templates/social/studio-class-timetable.js +6 -6
- package/dist/templates/social/studio-podcast-cover.js +6 -6
- package/dist/templates/social/style-bento-announcement.js +6 -6
- package/dist/templates/social/style-bento-link-preview.js +6 -6
- package/dist/templates/social/style-bento-milestone.js +6 -6
- package/dist/templates/social/style-bento-testimonial.js +6 -6
- package/dist/templates/social/style-brutalist-announcement.js +6 -6
- package/dist/templates/social/style-brutalist-link-preview.js +6 -6
- package/dist/templates/social/style-brutalist-milestone.js +6 -6
- package/dist/templates/social/style-brutalist-testimonial.js +6 -6
- package/dist/templates/social/style-dark-announcement.js +6 -6
- package/dist/templates/social/style-dark-link-preview.js +6 -6
- package/dist/templates/social/style-dark-milestone.js +6 -6
- package/dist/templates/social/style-dark-testimonial.js +6 -6
- package/dist/templates/social/style-data-announcement.js +6 -6
- package/dist/templates/social/style-data-link-preview.js +6 -6
- package/dist/templates/social/style-data-milestone.js +6 -6
- package/dist/templates/social/style-data-testimonial.js +6 -6
- package/dist/templates/social/style-editorial-announcement.js +6 -6
- package/dist/templates/social/style-editorial-link-preview.js +6 -6
- package/dist/templates/social/style-editorial-milestone.js +6 -6
- package/dist/templates/social/style-editorial-testimonial.js +6 -6
- package/dist/templates/social/style-glass-announcement.js +6 -6
- package/dist/templates/social/style-glass-link-preview.js +6 -6
- package/dist/templates/social/style-glass-milestone.js +6 -6
- package/dist/templates/social/style-glass-testimonial.js +6 -6
- package/dist/templates/social/style-gradient-announcement.js +6 -6
- package/dist/templates/social/style-gradient-link-preview.js +6 -6
- package/dist/templates/social/style-gradient-milestone.js +6 -6
- package/dist/templates/social/style-gradient-testimonial.js +6 -6
- 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 +6 -6
- package/dist/templates/social/style-pastel-link-preview.js +6 -6
- package/dist/templates/social/style-pastel-milestone.js +6 -6
- package/dist/templates/social/style-pastel-testimonial.js +6 -6
- package/dist/templates/social/style-sketch-announcement.js +6 -6
- package/dist/templates/social/style-sketch-link-preview.js +6 -6
- package/dist/templates/social/style-sketch-milestone.js +6 -6
- package/dist/templates/social/style-sketch-testimonial.js +6 -6
- package/dist/templates/social/style-swiss-announcement.js +6 -6
- package/dist/templates/social/style-swiss-link-preview.js +6 -6
- package/dist/templates/social/style-swiss-milestone.js +6 -6
- package/dist/templates/social/style-swiss-testimonial.js +6 -6
- package/dist/templates/social/style-terminal-announcement.js +6 -6
- package/dist/templates/social/style-terminal-link-preview.js +6 -6
- package/dist/templates/social/style-terminal-milestone.js +6 -6
- package/dist/templates/social/style-terminal-testimonial.js +6 -6
- package/dist/templates/social/summer-heatwave-link-preview.js +6 -6
- package/dist/templates/social/summer-heatwave-lolly-post.js +6 -6
- package/dist/templates/social/tour-tickets-june-ads.js +6 -6
- package/dist/templates/social/tour-tickets-tide-ads.js +6 -6
- package/dist/templates/social/tour-tickets-wreck-ads.js +6 -6
- package/dist/templates/social/transit-map-link-preview.js +6 -6
- package/dist/templates/social/ukiyo-e-link-preview.js +6 -6
- package/dist/templates/social/ukiyo-e-spike-post.js +6 -6
- package/dist/templates/social/valentines-link-preview.js +6 -6
- package/dist/templates/social/valentines-poem-post.js +6 -6
- package/dist/templates/social/vaporwave-feature-drop.js +6 -6
- package/dist/templates/social/vaporwave-link-preview.js +6 -6
- package/dist/templates/social/winter-cosy-link-preview.js +6 -6
- package/dist/templates/social/winter-holidays-link-preview.js +6 -6
- package/dist/templates/social/winter-holidays-thanks-post.js +6 -6
- package/dist/templates/stings/line-reveal.js +6 -6
- package/dist/templates/stings/sting-blur.js +6 -6
- package/dist/templates/stings/sting-pop.js +6 -6
- package/dist/templates/stings/sting-rise.js +6 -6
- package/dist/templates/stings/sting-shimmer.js +6 -6
- package/dist/templates/stings/word-swap.js +6 -6
- package/dist/templates/text/stat-counter.js +6 -6
- package/dist/templates/text/word-quote.js +6 -6
- package/dist/templates/themes/april-fools-shared.js +5 -5
- package/dist/templates/themes/april-fools.js +13 -13
- package/dist/templates/themes/arcade.js +10 -10
- 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 +11 -11
- 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 +11 -11
- package/dist/templates/themes/broadsheet.js +13 -13
- package/dist/templates/themes/claymation.js +12 -12
- package/dist/templates/themes/comic-book.js +20 -20
- package/dist/templates/themes/comic-hero.js +18 -18
- package/dist/templates/themes/comic-indie.js +6 -6
- package/dist/templates/themes/cyberpunk.js +12 -12
- package/dist/templates/themes/departure-board.js +11 -11
- 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 +12 -12
- package/dist/templates/themes/gothic.js +12 -12
- package/dist/templates/themes/halloween.js +12 -12
- package/dist/templates/themes/holidays.js +29 -29
- package/dist/templates/themes/index.js +430 -430
- package/dist/templates/themes/lunar-new-year.js +12 -12
- package/dist/templates/themes/machined-shared.js +5 -5
- package/dist/templates/themes/machined.js +12 -12
- 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-shared.js +4 -4
- 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 +11 -11
- 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 +6 -6
- package/dist/templates/video/youtube-end-screen.js +6 -6
- package/dist/templates/video/youtube-intro.js +6 -6
- package/dist/templates/video/youtube-subscribe.js +6 -6
- package/dist/templates/web/app-ui.js +5 -5
- package/dist/templates/web/april-fools-landing.js +8 -8
- package/dist/templates/web/arcade-landing.js +6 -6
- package/dist/templates/web/art-deco-landing.js +6 -6
- package/dist/templates/web/autumn-harvest-landing.js +6 -6
- package/dist/templates/web/back-to-school-landing.js +6 -6
- package/dist/templates/web/bauhaus-landing.js +6 -6
- package/dist/templates/web/black-friday-coupons-landing.js +6 -6
- package/dist/templates/web/black-friday-landing.js +6 -6
- package/dist/templates/web/black-friday-neon-landing.js +6 -6
- package/dist/templates/web/black-friday-scratch-landing.js +6 -6
- package/dist/templates/web/black-friday-ticker-landing.js +6 -6
- package/dist/templates/web/blog-post.js +6 -6
- package/dist/templates/web/blueprint-landing.js +6 -6
- package/dist/templates/web/broadsheet-landing.js +6 -6
- package/dist/templates/web/claymation-landing.js +6 -6
- package/dist/templates/web/comic-book-landing.js +6 -6
- package/dist/templates/web/coming-soon-page.js +7 -7
- package/dist/templates/web/coming-soon.js +6 -6
- package/dist/templates/web/contact.js +7 -7
- package/dist/templates/web/cyberpunk-landing.js +6 -6
- package/dist/templates/web/daybreak-app.js +8 -8
- package/dist/templates/web/departure-board-download.js +6 -6
- package/dist/templates/web/diwali-landing.js +6 -6
- package/dist/templates/web/earth-day-landing.js +6 -6
- package/dist/templates/web/everyday-cafe.js +6 -6
- package/dist/templates/web/everyday-hotel.js +6 -6
- package/dist/templates/web/everyday-wedding.js +7 -7
- package/dist/templates/web/festival-presale-electronic.js +6 -6
- package/dist/templates/web/festival-presale-family.js +6 -6
- package/dist/templates/web/festival-presale-folk.js +6 -6
- package/dist/templates/web/festival-presale-food.js +6 -6
- package/dist/templates/web/festival-presale-jazz.js +6 -6
- package/dist/templates/web/festival-presale-street.js +6 -6
- package/dist/templates/web/forms.js +4 -4
- package/dist/templates/web/gothic-landing.js +6 -6
- package/dist/templates/web/halloween-landing.js +6 -6
- package/dist/templates/web/hero-animated.js +6 -6
- package/dist/templates/web/kindling-app.js +8 -8
- package/dist/templates/web/launch-waitlist.js +7 -7
- package/dist/templates/web/lunar-new-year-landing.js +6 -6
- package/dist/templates/web/machined-hero.js +8 -8
- package/dist/templates/web/manuscript-landing.js +6 -6
- package/dist/templates/web/marginalia-app.js +8 -8
- package/dist/templates/web/new-year-landing.js +6 -6
- package/dist/templates/web/noir-landing.js +6 -6
- package/dist/templates/web/page-404.js +6 -6
- 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-shared.js +4 -4
- 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 +6 -6
- package/dist/templates/web/portfolios.js +19 -19
- package/dist/templates/web/potluck-app.js +8 -8
- package/dist/templates/web/pricing-toggle.js +6 -6
- package/dist/templates/web/product-page.js +6 -6
- package/dist/templates/web/psychedelic-landing.js +6 -6
- package/dist/templates/web/riso-zine-landing.js +6 -6
- package/dist/templates/web/rsvp-invite.js +7 -7
- package/dist/templates/web/saas-ai-landing.js +6 -6
- package/dist/templates/web/saas-app-download.js +6 -6
- package/dist/templates/web/saas-case-study.js +6 -6
- package/dist/templates/web/saas-changelog.js +6 -6
- package/dist/templates/web/saas-comparison.js +6 -6
- package/dist/templates/web/saas-data-landing.js +6 -6
- package/dist/templates/web/saas-dev-landing.js +6 -6
- package/dist/templates/web/saas-indie-landing.js +6 -6
- package/dist/templates/web/saas-integrations.js +6 -6
- package/dist/templates/web/saas-security.js +6 -6
- package/dist/templates/web/saas-signup.js +6 -6
- package/dist/templates/web/saas-waitlist.js +6 -6
- package/dist/templates/web/saffron-app.js +8 -8
- package/dist/templates/web/shop-bloom.js +8 -8
- package/dist/templates/web/shop-circuit.js +8 -8
- package/dist/templates/web/shop-fieldwork.js +8 -8
- package/dist/templates/web/shop-greenhouse.js +8 -8
- package/dist/templates/web/shop-kiln.js +8 -8
- package/dist/templates/web/shop-marginalia.js +8 -8
- package/dist/templates/web/shop-ode.js +8 -8
- package/dist/templates/web/shop-shared.js +5 -5
- package/dist/templates/web/shop-static.js +8 -8
- package/dist/templates/web/shop-summit.js +8 -8
- package/dist/templates/web/shops.js +17 -17
- package/dist/templates/web/singles-day-landing.js +6 -6
- package/dist/templates/web/solarpunk-landing.js +6 -6
- package/dist/templates/web/space-opera-landing.js +6 -6
- package/dist/templates/web/spring-bloom-landing.js +6 -6
- package/dist/templates/web/studio-careers.js +6 -6
- package/dist/templates/web/style-bento-landing.js +6 -6
- package/dist/templates/web/style-bento-pricing.js +6 -6
- package/dist/templates/web/style-brutalist-landing.js +6 -6
- package/dist/templates/web/style-brutalist-pricing.js +6 -6
- package/dist/templates/web/style-dark-landing.js +6 -6
- package/dist/templates/web/style-dark-pricing.js +6 -6
- package/dist/templates/web/style-data-landing.js +6 -6
- package/dist/templates/web/style-data-pricing.js +6 -6
- package/dist/templates/web/style-editorial-landing.js +6 -6
- package/dist/templates/web/style-editorial-pricing.js +6 -6
- package/dist/templates/web/style-glass-landing.js +6 -6
- package/dist/templates/web/style-glass-pricing.js +6 -6
- package/dist/templates/web/style-gradient-landing.js +6 -6
- package/dist/templates/web/style-gradient-pricing.js +6 -6
- 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 +6 -6
- package/dist/templates/web/style-pastel-pricing.js +6 -6
- package/dist/templates/web/style-sketch-landing.js +6 -6
- package/dist/templates/web/style-sketch-pricing.js +6 -6
- package/dist/templates/web/style-swiss-landing.js +6 -6
- package/dist/templates/web/style-swiss-pricing.js +6 -6
- package/dist/templates/web/style-terminal-landing.js +6 -6
- package/dist/templates/web/style-terminal-pricing.js +6 -6
- package/dist/templates/web/summer-heatwave-landing.js +6 -6
- package/dist/templates/web/tempo-app.js +8 -8
- package/dist/templates/web/tour-tickets-june-landing.js +6 -6
- package/dist/templates/web/tour-tickets-tide-landing.js +6 -6
- package/dist/templates/web/tour-tickets-wreck-landing.js +6 -6
- package/dist/templates/web/transit-map-landing.js +6 -6
- package/dist/templates/web/ukiyo-e-landing.js +6 -6
- package/dist/templates/web/valentines-landing.js +6 -6
- package/dist/templates/web/vaporwave-landing.js +6 -6
- package/dist/templates/web/wayfarer-app.js +8 -8
- package/dist/templates/web/winter-cosy-landing.js +6 -6
- package/dist/templates/web/winter-holidays-landing.js +6 -6
- package/package.json +1 -1
- package/src/templates/email/style-maximal-header.ts +1 -1
- package/src/templates/motion/style-maximal-beat-cut.ts +203 -0
- package/src/templates/motion/style-maximal-feature-demo.ts +1 -1
- package/src/templates/motion/style-maximal-launch-reel.ts +1 -1
- package/src/templates/saas/style-maximal-shared.ts +21 -12
- package/src/templates/saas/style-maximal.ts +2 -1
- package/src/templates/social/style-maximal-announcement.ts +1 -1
- package/src/templates/social/style-maximal-link-preview.ts +1 -1
- package/src/templates/social/style-maximal-milestone.ts +1 -1
- package/src/templates/web/style-maximal-landing.ts +1 -1
- package/src/templates/web/style-maximal-pricing.ts +1 -1
- package/types/templates/src/motion/style-maximal-beat-cut.d.ts +3 -0
- package/types/templates/src/saas/style-maximal-shared.d.ts +12 -4
- package/dist/chunks/agent-NBB7HB4D.js +0 -43
- package/dist/chunks/api-5NK5NQSP.js +0 -29
- package/dist/chunks/build-N6PN3HEJ.js +0 -59
- package/dist/chunks/builtin-R3DOCGOY.js +0 -114
- package/dist/chunks/buy-credits-KU6TKFBR.js +0 -78
- package/dist/chunks/check-template-XOWGPO6M.js +0 -2276
- package/dist/chunks/chunk-22JCJEU2.js +0 -120
- package/dist/chunks/chunk-24IN4K7C.js +0 -95
- package/dist/chunks/chunk-25AODAFC.js +0 -45
- package/dist/chunks/chunk-263Q44N7.js +0 -172
- package/dist/chunks/chunk-265FVLWU.js +0 -41
- package/dist/chunks/chunk-26NBVCNV.js +0 -215
- package/dist/chunks/chunk-27IMYBPN.js +0 -889
- package/dist/chunks/chunk-2BUV25SZ.js +0 -95
- package/dist/chunks/chunk-2DAULONH.js +0 -33
- package/dist/chunks/chunk-2EL36CUA.js +0 -113
- package/dist/chunks/chunk-2ER5O2EO.js +0 -79
- package/dist/chunks/chunk-2GXTMV4E.js +0 -105
- package/dist/chunks/chunk-2HFOYPOA.js +0 -194
- package/dist/chunks/chunk-2HOZCSIG.js +0 -23
- package/dist/chunks/chunk-2J5OVMQF.js +0 -86
- package/dist/chunks/chunk-2JARNG4Q.js +0 -366
- package/dist/chunks/chunk-2L4CFURF.js +0 -140
- package/dist/chunks/chunk-2LJMA6TR.js +0 -23
- package/dist/chunks/chunk-2LNO36W2.js +0 -235
- package/dist/chunks/chunk-2PA23ZOO.js +0 -145
- package/dist/chunks/chunk-2PAE325Z.js +0 -176
- package/dist/chunks/chunk-2R56EXNJ.js +0 -92
- package/dist/chunks/chunk-2TAV6YDR.js +0 -159
- package/dist/chunks/chunk-2TZRL3D7.js +0 -174
- package/dist/chunks/chunk-2U33YKRU.js +0 -108
- package/dist/chunks/chunk-2XADWY5Y.js +0 -396
- package/dist/chunks/chunk-33SJF5SL.js +0 -81
- package/dist/chunks/chunk-3AOUXL2O.js +0 -122
- package/dist/chunks/chunk-3AZM2XOK.js +0 -45
- package/dist/chunks/chunk-3B3UIIT2.js +0 -261
- package/dist/chunks/chunk-3BPJTZYQ.js +0 -153
- package/dist/chunks/chunk-3CMEUAXF.js +0 -23
- package/dist/chunks/chunk-3FEXUDZD.js +0 -1309
- package/dist/chunks/chunk-3FS4W54Y.js +0 -33
- package/dist/chunks/chunk-3H37NYOV.js +0 -626
- package/dist/chunks/chunk-3HZEKM7M.js +0 -108
- package/dist/chunks/chunk-3J5V5S7R.js +0 -226
- package/dist/chunks/chunk-3JKQN4OB.js +0 -255
- package/dist/chunks/chunk-3KBWJ5IC.js +0 -173
- package/dist/chunks/chunk-3MYSUHN5.js +0 -131
- package/dist/chunks/chunk-3NHLALQU.js +0 -61
- package/dist/chunks/chunk-3QAD5A2C.js +0 -182
- package/dist/chunks/chunk-3QZAFKY2.js +0 -156
- package/dist/chunks/chunk-3R55FXXR.js +0 -124
- package/dist/chunks/chunk-3S5SGBCC.js +0 -197
- package/dist/chunks/chunk-3S7UGUPN.js +0 -97
- package/dist/chunks/chunk-3UEMJNLG.js +0 -95
- package/dist/chunks/chunk-3YJB3M5L.js +0 -301
- package/dist/chunks/chunk-3Z7QZBLW.js +0 -607
- package/dist/chunks/chunk-3ZARUQQU.js +0 -23
- package/dist/chunks/chunk-43KZRXA4.js +0 -69
- package/dist/chunks/chunk-44QBLQ7X.js +0 -317
- package/dist/chunks/chunk-4AT5HGDT.js +0 -260
- package/dist/chunks/chunk-4B3R3IJ7.js +0 -155
- package/dist/chunks/chunk-4CBTWKRC.js +0 -303
- package/dist/chunks/chunk-4CIIQX6M.js +0 -182
- package/dist/chunks/chunk-4E7BNV3Z.js +0 -33
- package/dist/chunks/chunk-4EIBWR44.js +0 -78
- package/dist/chunks/chunk-4ELZAETP.js +0 -307
- package/dist/chunks/chunk-4FMNE44A.js +0 -115
- package/dist/chunks/chunk-4FO7MLDI.js +0 -33
- package/dist/chunks/chunk-4GFJUF77.js +0 -84
- package/dist/chunks/chunk-4HSJ4RUF.js +0 -45
- package/dist/chunks/chunk-4INZAU3E.js +0 -33
- package/dist/chunks/chunk-4J4FBJXK.js +0 -23
- package/dist/chunks/chunk-4LYAQU2D.js +0 -171
- package/dist/chunks/chunk-4O6LYNXO.js +0 -115
- package/dist/chunks/chunk-4PTPNW4P.js +0 -23
- package/dist/chunks/chunk-4SEX366C.js +0 -146
- package/dist/chunks/chunk-4UAP7MUL.js +0 -172
- package/dist/chunks/chunk-4WL7LQDE.js +0 -77
- package/dist/chunks/chunk-4XYQM6U2.js +0 -270
- package/dist/chunks/chunk-4YEQMIN2.js +0 -124
- package/dist/chunks/chunk-4YK66U7K.js +0 -111
- package/dist/chunks/chunk-4ZLE44ZM.js +0 -221
- package/dist/chunks/chunk-4ZRBC33I.js +0 -237
- package/dist/chunks/chunk-526SB4KP.js +0 -33
- package/dist/chunks/chunk-52MNVHUU.js +0 -128
- package/dist/chunks/chunk-54MPCGYJ.js +0 -149
- package/dist/chunks/chunk-56Y5UIKA.js +0 -163
- package/dist/chunks/chunk-57CM35CC.js +0 -283
- package/dist/chunks/chunk-57MPBSD2.js +0 -224
- package/dist/chunks/chunk-5CJKRFER.js +0 -23
- package/dist/chunks/chunk-5DEHOX3Z.js +0 -91
- package/dist/chunks/chunk-5E6OXBIC.js +0 -79
- package/dist/chunks/chunk-5EFXANBJ.js +0 -80
- package/dist/chunks/chunk-5GY4SGIJ.js +0 -23
- package/dist/chunks/chunk-5HOMMT7J.js +0 -218
- package/dist/chunks/chunk-5JB5OYRU.js +0 -23
- package/dist/chunks/chunk-5LEVDIIK.js +0 -115
- package/dist/chunks/chunk-5O3WOXQO.js +0 -45
- package/dist/chunks/chunk-5OSK4OCU.js +0 -142
- package/dist/chunks/chunk-5PPMMR3I.js +0 -92
- package/dist/chunks/chunk-5PTPNZZC.js +0 -95
- package/dist/chunks/chunk-5Q4PHR4Q.js +0 -76
- package/dist/chunks/chunk-5QJJUFUW.js +0 -98
- package/dist/chunks/chunk-5VHYDBMN.js +0 -84
- package/dist/chunks/chunk-5WKJZIT4.js +0 -217
- package/dist/chunks/chunk-5XFCULOT.js +0 -331
- package/dist/chunks/chunk-5YSXCCJD.js +0 -147
- package/dist/chunks/chunk-63232OFL.js +0 -152
- package/dist/chunks/chunk-633OMIIJ.js +0 -231
- package/dist/chunks/chunk-63KK7BZP.js +0 -77
- package/dist/chunks/chunk-64Y7PRJX.js +0 -33
- package/dist/chunks/chunk-66DHSCCD.js +0 -98
- package/dist/chunks/chunk-67A263SE.js +0 -210
- package/dist/chunks/chunk-67K6CJWT.js +0 -96
- package/dist/chunks/chunk-67VLK5MB.js +0 -106
- package/dist/chunks/chunk-6DEED4G5.js +0 -23
- package/dist/chunks/chunk-6ETMQFM2.js +0 -66
- package/dist/chunks/chunk-6FMPV43T.js +0 -299
- package/dist/chunks/chunk-6I3OMXLC.js +0 -83
- package/dist/chunks/chunk-6KDBOYCX.js +0 -78
- package/dist/chunks/chunk-6LCRHXXF.js +0 -266
- package/dist/chunks/chunk-6LW7QN45.js +0 -651
- package/dist/chunks/chunk-6N4OEDAX.js +0 -84
- package/dist/chunks/chunk-6NRDPVOS.js +0 -315
- package/dist/chunks/chunk-6SIR5SGX.js +0 -100
- package/dist/chunks/chunk-6SYHK7V2.js +0 -214
- package/dist/chunks/chunk-6VE2YKLV.js +0 -147
- package/dist/chunks/chunk-6VWJDWVG.js +0 -177
- package/dist/chunks/chunk-6XWEZ6IT.js +0 -30
- package/dist/chunks/chunk-6ZFOY4YS.js +0 -198
- package/dist/chunks/chunk-74E32VCX.js +0 -97
- package/dist/chunks/chunk-74K2DJLT.js +0 -315
- package/dist/chunks/chunk-77AW6TW2.js +0 -134
- package/dist/chunks/chunk-7BQGFEFZ.js +0 -48
- package/dist/chunks/chunk-7CGZRSH6.js +0 -71
- package/dist/chunks/chunk-7CVH3DVA.js +0 -66
- package/dist/chunks/chunk-7DL6ENF4.js +0 -83
- package/dist/chunks/chunk-7E3EABIU.js +0 -106
- package/dist/chunks/chunk-7FST2THY.js +0 -49
- package/dist/chunks/chunk-7HYIWOIH.js +0 -49
- package/dist/chunks/chunk-7JQR7BPH.js +0 -213
- package/dist/chunks/chunk-7KS4ZWPS.js +0 -60
- package/dist/chunks/chunk-7MDLYBQ7.js +0 -121
- package/dist/chunks/chunk-7MGI4KJY.js +0 -162
- package/dist/chunks/chunk-7QQBJ2EB.js +0 -198
- package/dist/chunks/chunk-7TB6Y3DN.js +0 -108
- package/dist/chunks/chunk-7UFZCC2X.js +0 -36
- package/dist/chunks/chunk-7UP6RRJN.js +0 -305
- package/dist/chunks/chunk-7WRSI4ZD.js +0 -188
- package/dist/chunks/chunk-7XLMDZMU.js +0 -258
- package/dist/chunks/chunk-7Z74OM5R.js +0 -102
- package/dist/chunks/chunk-A4TEPEBA.js +0 -151
- package/dist/chunks/chunk-A5CIM4G2.js +0 -109
- package/dist/chunks/chunk-A5GQP66F.js +0 -23
- package/dist/chunks/chunk-A5OODSMO.js +0 -378
- package/dist/chunks/chunk-A5OPBCCW.js +0 -336
- package/dist/chunks/chunk-A5SGKHKQ.js +0 -170
- package/dist/chunks/chunk-A66LEAP7.js +0 -178
- package/dist/chunks/chunk-AAGUHXT4.js +0 -45
- package/dist/chunks/chunk-AAZ2U7ZV.js +0 -139
- package/dist/chunks/chunk-ADNGNJZL.js +0 -213
- package/dist/chunks/chunk-AF2DZGYD.js +0 -151
- package/dist/chunks/chunk-AF6U5I5Y.js +0 -95
- package/dist/chunks/chunk-AGAFRYEL.js +0 -97
- package/dist/chunks/chunk-AGMSDNHQ.js +0 -94
- package/dist/chunks/chunk-AHM4REOB.js +0 -50
- package/dist/chunks/chunk-AHMZX42B.js +0 -169
- package/dist/chunks/chunk-AK4Q52JB.js +0 -361
- package/dist/chunks/chunk-ALVKOXWH.js +0 -210
- package/dist/chunks/chunk-ANUWIJIU.js +0 -104
- package/dist/chunks/chunk-ANW3UVGO.js +0 -290
- package/dist/chunks/chunk-AOE3A2VK.js +0 -79
- package/dist/chunks/chunk-AP33MQV6.js +0 -226
- package/dist/chunks/chunk-AP3LQ3I4.js +0 -33
- package/dist/chunks/chunk-APHJFMLG.js +0 -10257
- package/dist/chunks/chunk-AQEVX77V.js +0 -249
- package/dist/chunks/chunk-ASJ6RGSE.js +0 -1403
- package/dist/chunks/chunk-AUXY4CY2.js +0 -98
- package/dist/chunks/chunk-AV6GFZZ3.js +0 -896
- package/dist/chunks/chunk-AVZOHWQP.js +0 -123
- package/dist/chunks/chunk-AWQDBKV7.js +0 -220
- package/dist/chunks/chunk-AWUE4CP7.js +0 -55
- package/dist/chunks/chunk-B2FBCLPS.js +0 -198
- package/dist/chunks/chunk-B35QOJSV.js +0 -146
- package/dist/chunks/chunk-B3E2VNWV.js +0 -55
- package/dist/chunks/chunk-B3WW7RIR.js +0 -128
- package/dist/chunks/chunk-B5FE5BRR.js +0 -209
- package/dist/chunks/chunk-B6IIU5RW.js +0 -45
- package/dist/chunks/chunk-B72MKZGO.js +0 -122
- package/dist/chunks/chunk-B7WAWNCT.js +0 -151
- package/dist/chunks/chunk-BACNLREH.js +0 -70
- package/dist/chunks/chunk-BADAKZ7H.js +0 -238
- package/dist/chunks/chunk-BAHRPQ7G.js +0 -23
- package/dist/chunks/chunk-BARLINT4.js +0 -167
- package/dist/chunks/chunk-BATETACO.js +0 -30
- package/dist/chunks/chunk-BBHR5RPR.js +0 -331
- package/dist/chunks/chunk-BCWWS33N.js +0 -106
- package/dist/chunks/chunk-BD6OVUF5.js +0 -97
- package/dist/chunks/chunk-BE2JR5KE.js +0 -82
- package/dist/chunks/chunk-BFGMHA3E.js +0 -738
- package/dist/chunks/chunk-BFKN5XKC.js +0 -141
- package/dist/chunks/chunk-BGYZLHGP.js +0 -304
- package/dist/chunks/chunk-BH5ZQ6M3.js +0 -326
- package/dist/chunks/chunk-BHB3F4VU.js +0 -83
- package/dist/chunks/chunk-BHRZCTTP.js +0 -206
- package/dist/chunks/chunk-BI4SSJD4.js +0 -23
- package/dist/chunks/chunk-BIIMIZGP.js +0 -38
- package/dist/chunks/chunk-BJITDVMT.js +0 -190
- package/dist/chunks/chunk-BJQC3UT2.js +0 -204
- package/dist/chunks/chunk-BJTL5CJE.js +0 -150
- package/dist/chunks/chunk-BKO5RMVM.js +0 -44
- package/dist/chunks/chunk-BKRTAIMX.js +0 -374
- package/dist/chunks/chunk-BMSE7ODA.js +0 -125
- package/dist/chunks/chunk-BNVCSIB3.js +0 -45
- package/dist/chunks/chunk-BQIV3WAJ.js +0 -127
- package/dist/chunks/chunk-BRX2RWWF.js +0 -66
- package/dist/chunks/chunk-BSMMR4MQ.js +0 -91
- package/dist/chunks/chunk-BSSGBYYO.js +0 -192
- package/dist/chunks/chunk-BSYI3MAM.js +0 -45
- package/dist/chunks/chunk-BT37O2I4.js +0 -230
- package/dist/chunks/chunk-BVAVG4XZ.js +0 -115
- package/dist/chunks/chunk-BWLESPMD.js +0 -159
- package/dist/chunks/chunk-BWMAU7BA.js +0 -260
- package/dist/chunks/chunk-BXK7B4QU.js +0 -84
- package/dist/chunks/chunk-BZN4NMOC.js +0 -311
- package/dist/chunks/chunk-C3PP6PEF.js +0 -1393
- package/dist/chunks/chunk-C4H6YAWK.js +0 -75
- package/dist/chunks/chunk-C7U4FJSI.js +0 -167
- package/dist/chunks/chunk-CB2JYTUW.js +0 -177
- package/dist/chunks/chunk-CDG5MGG5.js +0 -128
- package/dist/chunks/chunk-CFHC5UXF.js +0 -141
- package/dist/chunks/chunk-CFHQELYV.js +0 -78
- package/dist/chunks/chunk-CFR4RKVO.js +0 -47
- package/dist/chunks/chunk-CG4X74W7.js +0 -135
- package/dist/chunks/chunk-CGZOOOAM.js +0 -62
- package/dist/chunks/chunk-CIN6MNI2.js +0 -138
- package/dist/chunks/chunk-CK6VARVX.js +0 -298
- package/dist/chunks/chunk-CLCPXMRS.js +0 -232
- package/dist/chunks/chunk-CM4OAQMP.js +0 -93
- package/dist/chunks/chunk-CMO4V4ZB.js +0 -101
- package/dist/chunks/chunk-CMTSUQ5R.js +0 -103
- package/dist/chunks/chunk-CNFQF2FQ.js +0 -93
- package/dist/chunks/chunk-CNOLMEMJ.js +0 -105
- package/dist/chunks/chunk-CTXCZSY6.js +0 -163
- package/dist/chunks/chunk-CWVGSHFC.js +0 -50
- package/dist/chunks/chunk-CXE6SFHK.js +0 -303
- package/dist/chunks/chunk-CZ73BK7Q.js +0 -118
- package/dist/chunks/chunk-CZGRXWTK.js +0 -155
- package/dist/chunks/chunk-D2B2M2YV.js +0 -23
- package/dist/chunks/chunk-D2Q3IKFO.js +0 -175
- package/dist/chunks/chunk-D4LEHMLA.js +0 -161
- package/dist/chunks/chunk-D4MJU265.js +0 -154
- package/dist/chunks/chunk-D56NIZJ6.js +0 -260
- package/dist/chunks/chunk-D5DJMT4D.js +0 -86
- package/dist/chunks/chunk-D6EYELDH.js +0 -898
- package/dist/chunks/chunk-D7HCQ3QS.js +0 -170
- package/dist/chunks/chunk-D7W7TCYE.js +0 -52
- package/dist/chunks/chunk-DA7MRLJK.js +0 -147
- package/dist/chunks/chunk-DB76UKED.js +0 -89
- package/dist/chunks/chunk-DF54UFCY.js +0 -118
- package/dist/chunks/chunk-DFLFMF7C.js +0 -122
- package/dist/chunks/chunk-DFY5P3IB.js +0 -1307
- package/dist/chunks/chunk-DHFTSDET.js +0 -103
- package/dist/chunks/chunk-DIEXGL6N.js +0 -123
- package/dist/chunks/chunk-DMTT3BRV.js +0 -252
- package/dist/chunks/chunk-DNK7X3XO.js +0 -237
- package/dist/chunks/chunk-DNVXHQ54.js +0 -181
- package/dist/chunks/chunk-DPNZF5YW.js +0 -305
- package/dist/chunks/chunk-DPS3XJYY.js +0 -261
- package/dist/chunks/chunk-DPSRQPBK.js +0 -207
- package/dist/chunks/chunk-DQZAGO3X.js +0 -77
- package/dist/chunks/chunk-DS5CMI26.js +0 -122
- package/dist/chunks/chunk-DU6RCF46.js +0 -71
- package/dist/chunks/chunk-DV5TQ2T4.js +0 -23
- package/dist/chunks/chunk-DWMF2OSG.js +0 -92
- package/dist/chunks/chunk-DWVTGQQT.js +0 -94
- package/dist/chunks/chunk-DXBXB36N.js +0 -71
- package/dist/chunks/chunk-E22XT25U.js +0 -327
- package/dist/chunks/chunk-E32PON4I.js +0 -141
- package/dist/chunks/chunk-E3A22XSE.js +0 -1266
- package/dist/chunks/chunk-EATKWDCV.js +0 -97
- package/dist/chunks/chunk-EBTQZ2UR.js +0 -805
- package/dist/chunks/chunk-ECIGM345.js +0 -80
- package/dist/chunks/chunk-ECNEBGDT.js +0 -497
- package/dist/chunks/chunk-EDS66UYG.js +0 -181
- package/dist/chunks/chunk-EFIFPPEK.js +0 -130
- package/dist/chunks/chunk-EFMMRHKG.js +0 -160
- package/dist/chunks/chunk-EG4Y4GVK.js +0 -176
- package/dist/chunks/chunk-EKYVNMY7.js +0 -208
- package/dist/chunks/chunk-EO3PPEGD.js +0 -197
- package/dist/chunks/chunk-EOC2FW2X.js +0 -80
- package/dist/chunks/chunk-EONXMJ4F.js +0 -589
- package/dist/chunks/chunk-EP6NW6OM.js +0 -100
- package/dist/chunks/chunk-ERYFZR6N.js +0 -55
- package/dist/chunks/chunk-ES2WEM73.js +0 -121
- package/dist/chunks/chunk-ESWV7J56.js +0 -122
- package/dist/chunks/chunk-ETN7TRWV.js +0 -47
- package/dist/chunks/chunk-EU5PLLBO.js +0 -123
- package/dist/chunks/chunk-EUU6BUBW.js +0 -283
- package/dist/chunks/chunk-EVPGNH4D.js +0 -1469
- package/dist/chunks/chunk-EXCCCR5E.js +0 -33
- package/dist/chunks/chunk-EXWM3COY.js +0 -122
- package/dist/chunks/chunk-EY24IMXH.js +0 -135
- package/dist/chunks/chunk-EYB67GF7.js +0 -284
- package/dist/chunks/chunk-EYLZMIFZ.js +0 -23
- package/dist/chunks/chunk-EYXP4BXO.js +0 -63
- package/dist/chunks/chunk-EZPAIEUQ.js +0 -33
- package/dist/chunks/chunk-F437TLNX.js +0 -119
- package/dist/chunks/chunk-F4NQYPIR.js +0 -78
- package/dist/chunks/chunk-F6OLIASH.js +0 -157
- package/dist/chunks/chunk-FBRAPN6O.js +0 -49
- package/dist/chunks/chunk-FCHYY4HA.js +0 -272
- package/dist/chunks/chunk-FCJCJCRM.js +0 -182
- package/dist/chunks/chunk-FE2TMK6O.js +0 -194
- package/dist/chunks/chunk-FF4D7BZE.js +0 -106
- package/dist/chunks/chunk-FGJ2A446.js +0 -391
- package/dist/chunks/chunk-FIPMSIAJ.js +0 -200
- package/dist/chunks/chunk-FJLDRVN3.js +0 -36
- package/dist/chunks/chunk-FJTZI7EB.js +0 -45
- package/dist/chunks/chunk-FMHAZUVV.js +0 -99
- package/dist/chunks/chunk-FO3V3FMR.js +0 -23
- package/dist/chunks/chunk-FOPFYLNW.js +0 -172
- package/dist/chunks/chunk-FPP4D6LO.js +0 -120
- package/dist/chunks/chunk-FRHHUQIT.js +0 -100
- package/dist/chunks/chunk-FSV7PYHC.js +0 -165
- package/dist/chunks/chunk-FT2LK2YM.js +0 -54
- package/dist/chunks/chunk-FT6LPFKG.js +0 -168
- package/dist/chunks/chunk-FTWYYASH.js +0 -265
- package/dist/chunks/chunk-FUUFOR6K.js +0 -11820
- package/dist/chunks/chunk-FVANU7TU.js +0 -122
- package/dist/chunks/chunk-FWF6C5FJ.js +0 -112
- package/dist/chunks/chunk-FWWTIW47.js +0 -196
- package/dist/chunks/chunk-G35L75N6.js +0 -366
- package/dist/chunks/chunk-G3QU6VBE.js +0 -102
- package/dist/chunks/chunk-G4B5PAO3.js +0 -251
- package/dist/chunks/chunk-G6OFL6KY.js +0 -263
- package/dist/chunks/chunk-GA4DDSKI.js +0 -192
- package/dist/chunks/chunk-GBBZOWR2.js +0 -23
- package/dist/chunks/chunk-GCMFM5QF.js +0 -209
- package/dist/chunks/chunk-GDBGRB25.js +0 -155
- package/dist/chunks/chunk-GDQYGXI5.js +0 -320
- package/dist/chunks/chunk-GENEKDBL.js +0 -156
- package/dist/chunks/chunk-GI7FAWER.js +0 -157
- package/dist/chunks/chunk-GISY6MJS.js +0 -366
- package/dist/chunks/chunk-GLCMPBYP.js +0 -199
- package/dist/chunks/chunk-GLCUWIQ3.js +0 -100
- package/dist/chunks/chunk-GLVPLISN.js +0 -100
- package/dist/chunks/chunk-GLYZJZQQ.js +0 -1136
- package/dist/chunks/chunk-GNOW75LH.js +0 -150
- package/dist/chunks/chunk-GOL4LIPC.js +0 -250
- package/dist/chunks/chunk-GP7YNMWA.js +0 -173
- package/dist/chunks/chunk-GPTBZ6R6.js +0 -139
- package/dist/chunks/chunk-GQ7EX4DC.js +0 -256
- package/dist/chunks/chunk-GRTQAZ2O.js +0 -462
- package/dist/chunks/chunk-GSCAX4CQ.js +0 -199
- package/dist/chunks/chunk-GSMMJ55K.js +0 -150
- package/dist/chunks/chunk-GTZSFTYK.js +0 -53
- package/dist/chunks/chunk-GU6ANYGH.js +0 -120
- package/dist/chunks/chunk-GWSQUAEH.js +0 -101
- package/dist/chunks/chunk-GXSFB3YL.js +0 -961
- package/dist/chunks/chunk-GXX3HUXX.js +0 -122
- package/dist/chunks/chunk-GYHLRCK4.js +0 -33
- package/dist/chunks/chunk-H4D6HJ4B.js +0 -1975
- package/dist/chunks/chunk-H5W6JTCC.js +0 -23
- package/dist/chunks/chunk-H62DQZB7.js +0 -39
- package/dist/chunks/chunk-H6HSXFRN.js +0 -33
- package/dist/chunks/chunk-H7HIF4L2.js +0 -147
- package/dist/chunks/chunk-H7NWSWAM.js +0 -185
- package/dist/chunks/chunk-HAILXBKY.js +0 -153
- package/dist/chunks/chunk-HAQLT3JN.js +0 -358
- package/dist/chunks/chunk-HE2GHLVV.js +0 -23
- package/dist/chunks/chunk-HF257345.js +0 -33
- package/dist/chunks/chunk-HGMXOH2Y.js +0 -87
- package/dist/chunks/chunk-HGY55CRF.js +0 -72
- package/dist/chunks/chunk-HH5IMO6O.js +0 -154
- package/dist/chunks/chunk-HHZV7T53.js +0 -160
- package/dist/chunks/chunk-HKURMREN.js +0 -202
- package/dist/chunks/chunk-HNW2S23V.js +0 -70
- package/dist/chunks/chunk-HON2DNT2.js +0 -117
- package/dist/chunks/chunk-HPC3DCQV.js +0 -342
- package/dist/chunks/chunk-HQGPQWR5.js +0 -11359
- package/dist/chunks/chunk-HQNEC33T.js +0 -95
- package/dist/chunks/chunk-HR5FUTFT.js +0 -312
- package/dist/chunks/chunk-HRG7UQPZ.js +0 -149
- package/dist/chunks/chunk-HSQUDN6G.js +0 -130
- package/dist/chunks/chunk-HSSWGZ3D.js +0 -23
- package/dist/chunks/chunk-HT6EY3RL.js +0 -106
- package/dist/chunks/chunk-HWIR54OU.js +0 -112
- package/dist/chunks/chunk-HWWORN6O.js +0 -90
- package/dist/chunks/chunk-HXCVXJ2J.js +0 -165
- package/dist/chunks/chunk-HYENTI3Y.js +0 -145
- package/dist/chunks/chunk-I2VABWFE.js +0 -91
- package/dist/chunks/chunk-I3ISHUDA.js +0 -83
- package/dist/chunks/chunk-I6DMLRG4.js +0 -55
- package/dist/chunks/chunk-IAAMXOO6.js +0 -133
- package/dist/chunks/chunk-IAWNTY6E.js +0 -84
- package/dist/chunks/chunk-IBPX6W4O.js +0 -172
- package/dist/chunks/chunk-ICCRSZ7K.js +0 -156
- package/dist/chunks/chunk-IGA3J426.js +0 -344
- package/dist/chunks/chunk-IGG6UAPO.js +0 -166
- package/dist/chunks/chunk-IGSRZLQC.js +0 -79
- package/dist/chunks/chunk-IGY42HCY.js +0 -177
- package/dist/chunks/chunk-II3CWQEH.js +0 -180
- package/dist/chunks/chunk-IINI4N4M.js +0 -158
- package/dist/chunks/chunk-IJ4DW2YR.js +0 -49
- package/dist/chunks/chunk-IJDX76D2.js +0 -33
- package/dist/chunks/chunk-IJI2ISHK.js +0 -23
- package/dist/chunks/chunk-IKHG7C6T.js +0 -221
- package/dist/chunks/chunk-IMA5WTA2.js +0 -88
- package/dist/chunks/chunk-IMDLAAML.js +0 -206
- package/dist/chunks/chunk-IPSCCG5J.js +0 -178
- package/dist/chunks/chunk-IR44SBX5.js +0 -146
- package/dist/chunks/chunk-IRK667D3.js +0 -155
- package/dist/chunks/chunk-IS4LOZD5.js +0 -45
- package/dist/chunks/chunk-ITBZMHTC.js +0 -110
- package/dist/chunks/chunk-ITSIHNWZ.js +0 -214
- package/dist/chunks/chunk-IUAQYBAM.js +0 -226
- package/dist/chunks/chunk-IVVO27Z3.js +0 -104
- package/dist/chunks/chunk-IVZSCEZN.js +0 -144
- package/dist/chunks/chunk-IYUUJXJ6.js +0 -77
- package/dist/chunks/chunk-IZIKC5B5.js +0 -146
- package/dist/chunks/chunk-J26Y37F7.js +0 -777
- package/dist/chunks/chunk-J3QM56CC.js +0 -36
- package/dist/chunks/chunk-J4NQSE4N.js +0 -47
- package/dist/chunks/chunk-J5URS2CN.js +0 -108
- package/dist/chunks/chunk-J5XXUASW.js +0 -77
- package/dist/chunks/chunk-J66QE7KX.js +0 -152
- package/dist/chunks/chunk-J7APJDGB.js +0 -100
- package/dist/chunks/chunk-J7I5AOYC.js +0 -422
- package/dist/chunks/chunk-J7OHYPH6.js +0 -149
- package/dist/chunks/chunk-J7ZDQ3TM.js +0 -163
- package/dist/chunks/chunk-JC44HVHT.js +0 -231
- package/dist/chunks/chunk-JCOTAOAP.js +0 -80
- package/dist/chunks/chunk-JDGY65YH.js +0 -277
- package/dist/chunks/chunk-JF63RB3V.js +0 -176
- package/dist/chunks/chunk-JKXXB6XN.js +0 -97
- package/dist/chunks/chunk-JKXYSWVA.js +0 -304
- package/dist/chunks/chunk-JLUW7NLM.js +0 -77
- package/dist/chunks/chunk-JOIPWH22.js +0 -89
- package/dist/chunks/chunk-JQ3S4F6Z.js +0 -88
- package/dist/chunks/chunk-JQ4PHMQU.js +0 -165
- package/dist/chunks/chunk-JRPNROXE.js +0 -250
- package/dist/chunks/chunk-JV7TDH7O.js +0 -114
- package/dist/chunks/chunk-JXPUQILV.js +0 -382
- package/dist/chunks/chunk-JYG3KLVP.js +0 -81
- package/dist/chunks/chunk-JYRK7UQB.js +0 -362
- package/dist/chunks/chunk-K2VWBMMW.js +0 -282
- package/dist/chunks/chunk-K53WPZBZ.js +0 -36
- package/dist/chunks/chunk-K762BWI2.js +0 -108
- package/dist/chunks/chunk-KA445ZUM.js +0 -228
- package/dist/chunks/chunk-KBTBQUMV.js +0 -151
- package/dist/chunks/chunk-KEPNNXIN.js +0 -261
- package/dist/chunks/chunk-KG6DBPPB.js +0 -166
- package/dist/chunks/chunk-KGH6JP6T.js +0 -336
- package/dist/chunks/chunk-KGW436RH.js +0 -222
- package/dist/chunks/chunk-KHGWQLAX.js +0 -94
- package/dist/chunks/chunk-KHNWGBIQ.js +0 -273
- package/dist/chunks/chunk-KIQOYU3Z.js +0 -187
- package/dist/chunks/chunk-KLOBE6CX.js +0 -728
- package/dist/chunks/chunk-KNQ57R36.js +0 -137
- package/dist/chunks/chunk-KO4CDRWB.js +0 -97
- package/dist/chunks/chunk-KR4POIKA.js +0 -147
- package/dist/chunks/chunk-KRERP5WZ.js +0 -287
- package/dist/chunks/chunk-KRZBPKQ2.js +0 -685
- package/dist/chunks/chunk-KSELIWCA.js +0 -115
- package/dist/chunks/chunk-KSUTJV3L.js +0 -33
- package/dist/chunks/chunk-KU33EHBK.js +0 -88
- package/dist/chunks/chunk-KUSCS2ZC.js +0 -51
- package/dist/chunks/chunk-KWGLZFJL.js +0 -87
- package/dist/chunks/chunk-KWJP6FDV.js +0 -39
- package/dist/chunks/chunk-KWQM74PZ.js +0 -102
- package/dist/chunks/chunk-KZBOX6BX.js +0 -375
- package/dist/chunks/chunk-L2I2KUXQ.js +0 -164
- package/dist/chunks/chunk-L77FZZWU.js +0 -73
- package/dist/chunks/chunk-L7DZTKJN.js +0 -152
- package/dist/chunks/chunk-LAZ7KCXF.js +0 -139
- package/dist/chunks/chunk-LBVEUD7A.js +0 -173
- package/dist/chunks/chunk-LBZLP2TI.js +0 -209
- package/dist/chunks/chunk-LCHRHNGK.js +0 -266
- package/dist/chunks/chunk-LDOYEYJW.js +0 -178
- package/dist/chunks/chunk-LELEGQIS.js +0 -206
- package/dist/chunks/chunk-LFB2PMFF.js +0 -57
- package/dist/chunks/chunk-LFYFL3GU.js +0 -198
- package/dist/chunks/chunk-LGV6HJCU.js +0 -135
- package/dist/chunks/chunk-LH552DQP.js +0 -358
- package/dist/chunks/chunk-LL5QJJFV.js +0 -107
- package/dist/chunks/chunk-LLF7EYW4.js +0 -191
- package/dist/chunks/chunk-LLMJCEPM.js +0 -78
- package/dist/chunks/chunk-LMJ3NNMG.js +0 -229
- package/dist/chunks/chunk-LNO5IRPN.js +0 -197
- package/dist/chunks/chunk-LODY3AHX.js +0 -23
- package/dist/chunks/chunk-LQLHZSRB.js +0 -55
- package/dist/chunks/chunk-LRKFNLQH.js +0 -50
- package/dist/chunks/chunk-LRZQ3OV5.js +0 -166
- package/dist/chunks/chunk-LTFCEF67.js +0 -74
- package/dist/chunks/chunk-LTMW2GBY.js +0 -68
- package/dist/chunks/chunk-LU2EU5WE.js +0 -45
- package/dist/chunks/chunk-LVLVCH3M.js +0 -255
- package/dist/chunks/chunk-LWMSWKOL.js +0 -161
- package/dist/chunks/chunk-LWRN4IIL.js +0 -145
- package/dist/chunks/chunk-M3HY63MQ.js +0 -196
- package/dist/chunks/chunk-M477557P.js +0 -1574
- package/dist/chunks/chunk-M4UYVZXE.js +0 -160
- package/dist/chunks/chunk-M4WMTJEF.js +0 -92
- package/dist/chunks/chunk-M4YDHRHH.js +0 -23
- package/dist/chunks/chunk-M5FEDWGA.js +0 -33
- package/dist/chunks/chunk-M5UDMLTY.js +0 -133
- package/dist/chunks/chunk-MARJFYOP.js +0 -70
- package/dist/chunks/chunk-MBFWU4MG.js +0 -107
- package/dist/chunks/chunk-MFWCOCIN.js +0 -33
- package/dist/chunks/chunk-MGDJQFY4.js +0 -100
- package/dist/chunks/chunk-MH4M7JPW.js +0 -150
- package/dist/chunks/chunk-MHPMFKPL.js +0 -324
- package/dist/chunks/chunk-MI2XLQMN.js +0 -242
- package/dist/chunks/chunk-MJEK7HD3.js +0 -150
- package/dist/chunks/chunk-MQFILI7U.js +0 -23
- package/dist/chunks/chunk-MUZSZI6Z.js +0 -368
- package/dist/chunks/chunk-MV3BLNEL.js +0 -559
- package/dist/chunks/chunk-MVH56636.js +0 -287
- package/dist/chunks/chunk-MWIRHWFD.js +0 -1845
- package/dist/chunks/chunk-MWZGF76F.js +0 -112
- package/dist/chunks/chunk-MXJVTPDN.js +0 -147
- package/dist/chunks/chunk-MYQB34SR.js +0 -201
- package/dist/chunks/chunk-MYW5OYDT.js +0 -69
- package/dist/chunks/chunk-N35Y3JPO.js +0 -33
- package/dist/chunks/chunk-N4E3DYM6.js +0 -183
- package/dist/chunks/chunk-N4NSCDJD.js +0 -351
- package/dist/chunks/chunk-N5523E4J.js +0 -166
- package/dist/chunks/chunk-N5I3AVLL.js +0 -119
- package/dist/chunks/chunk-N65TNEWS.js +0 -94
- package/dist/chunks/chunk-NHGHP4MW.js +0 -96
- package/dist/chunks/chunk-NI7IA4YG.js +0 -181
- package/dist/chunks/chunk-NJFK6D37.js +0 -23
- package/dist/chunks/chunk-NJZRKHEI.js +0 -10448
- package/dist/chunks/chunk-NKKJ3E6F.js +0 -134
- package/dist/chunks/chunk-NLZ2J6BS.js +0 -363
- package/dist/chunks/chunk-NN42FHRP.js +0 -276
- package/dist/chunks/chunk-NP2FJBYB.js +0 -86
- package/dist/chunks/chunk-NR4WPMSY.js +0 -181
- package/dist/chunks/chunk-NR6YDB7C.js +0 -149
- package/dist/chunks/chunk-NS3HLB2X.js +0 -80
- package/dist/chunks/chunk-NTOBILXE.js +0 -320
- package/dist/chunks/chunk-NUNLLAQJ.js +0 -46
- package/dist/chunks/chunk-NXBRPTMZ.js +0 -118
- package/dist/chunks/chunk-NXFB4MBU.js +0 -257
- package/dist/chunks/chunk-NXOMPKS6.js +0 -43
- package/dist/chunks/chunk-NXWEM3CY.js +0 -23
- package/dist/chunks/chunk-NZMZWYCS.js +0 -83
- package/dist/chunks/chunk-O4QWQMXF.js +0 -45
- package/dist/chunks/chunk-O4ZTY4TS.js +0 -220
- package/dist/chunks/chunk-O6KINR4O.js +0 -278
- package/dist/chunks/chunk-OFSSN6EI.js +0 -187
- package/dist/chunks/chunk-OGU3QDTP.js +0 -136
- package/dist/chunks/chunk-OIM3ASKM.js +0 -82
- package/dist/chunks/chunk-OKHD2MND.js +0 -130
- package/dist/chunks/chunk-OKWOU4AY.js +0 -23
- package/dist/chunks/chunk-OL7DN7NY.js +0 -329
- package/dist/chunks/chunk-OMKDV5II.js +0 -261
- package/dist/chunks/chunk-ONJSPNJB.js +0 -333
- package/dist/chunks/chunk-OP2ZQWUU.js +0 -33
- package/dist/chunks/chunk-OQLGRGFB.js +0 -23
- package/dist/chunks/chunk-OR2BS4B4.js +0 -127
- package/dist/chunks/chunk-OSBIOAYA.js +0 -121
- package/dist/chunks/chunk-OTFXXIHB.js +0 -102
- package/dist/chunks/chunk-OTNVMHF3.js +0 -136
- package/dist/chunks/chunk-OU2AKU2Z.js +0 -45
- package/dist/chunks/chunk-OVS2DCMK.js +0 -152
- package/dist/chunks/chunk-OWK66IVF.js +0 -97
- package/dist/chunks/chunk-OYJJY6ZL.js +0 -53
- package/dist/chunks/chunk-OZB4J47A.js +0 -297
- package/dist/chunks/chunk-OZP3V6MP.js +0 -184
- package/dist/chunks/chunk-P3FK54ZM.js +0 -23
- package/dist/chunks/chunk-P3ZWGUXO.js +0 -298
- package/dist/chunks/chunk-PD5RSP5H.js +0 -180
- package/dist/chunks/chunk-PF36QQLZ.js +0 -1417
- package/dist/chunks/chunk-PFFWJQMO.js +0 -163
- package/dist/chunks/chunk-PFMEU5TH.js +0 -118
- package/dist/chunks/chunk-PFMPCWIW.js +0 -161
- package/dist/chunks/chunk-PIP7YAE5.js +0 -81
- package/dist/chunks/chunk-PIZPFF45.js +0 -158
- package/dist/chunks/chunk-PJJKW2IP.js +0 -98
- package/dist/chunks/chunk-PN47J342.js +0 -103
- package/dist/chunks/chunk-PNGSZ225.js +0 -84
- package/dist/chunks/chunk-PRS2WRYP.js +0 -197
- package/dist/chunks/chunk-PRTFIAXB.js +0 -204
- package/dist/chunks/chunk-PU46MZNO.js +0 -283
- package/dist/chunks/chunk-PUJGWZ63.js +0 -163
- package/dist/chunks/chunk-PUJPM2LB.js +0 -190
- package/dist/chunks/chunk-PVQY4H4R.js +0 -174
- package/dist/chunks/chunk-PZQNT66M.js +0 -104
- package/dist/chunks/chunk-Q3C6GDT3.js +0 -53
- package/dist/chunks/chunk-Q45G2Q7W.js +0 -195
- package/dist/chunks/chunk-Q6D5JMHU.js +0 -55
- package/dist/chunks/chunk-Q6H2NY5X.js +0 -127
- package/dist/chunks/chunk-Q76VE6WB.js +0 -131
- package/dist/chunks/chunk-Q7ENR2O7.js +0 -45
- package/dist/chunks/chunk-Q7PUFXH2.js +0 -262
- package/dist/chunks/chunk-QB4VVTSF.js +0 -23
- package/dist/chunks/chunk-QCGYQCFM.js +0 -97
- package/dist/chunks/chunk-QDKRGKM2.js +0 -270
- package/dist/chunks/chunk-QEXWGNKT.js +0 -390
- package/dist/chunks/chunk-QFMQFENB.js +0 -327
- package/dist/chunks/chunk-QG3KEWGC.js +0 -164
- package/dist/chunks/chunk-QG3SQ22H.js +0 -33
- package/dist/chunks/chunk-QHHV4NYP.js +0 -77
- package/dist/chunks/chunk-QJFUOLZM.js +0 -109
- package/dist/chunks/chunk-QJHAOVRL.js +0 -172
- package/dist/chunks/chunk-QJQGHYBK.js +0 -117
- package/dist/chunks/chunk-QKIY2DSB.js +0 -65
- package/dist/chunks/chunk-QKOKYEHK.js +0 -225
- package/dist/chunks/chunk-QLQHPSOX.js +0 -81
- package/dist/chunks/chunk-QM3YBXLK.js +0 -161
- package/dist/chunks/chunk-QMPUX2KT.js +0 -33
- package/dist/chunks/chunk-QN6YP7BA.js +0 -274
- package/dist/chunks/chunk-QOKUTN2G.js +0 -111
- package/dist/chunks/chunk-QPL4J7OR.js +0 -123
- package/dist/chunks/chunk-QQVOYFDQ.js +0 -93
- package/dist/chunks/chunk-QREMTAGF.js +0 -111
- package/dist/chunks/chunk-QU4MNTP3.js +0 -120
- package/dist/chunks/chunk-QVDFSFB2.js +0 -33
- package/dist/chunks/chunk-QVJ6PFFL.js +0 -362
- package/dist/chunks/chunk-QYBHPPEF.js +0 -59
- package/dist/chunks/chunk-QYEE26WO.js +0 -231
- package/dist/chunks/chunk-QYSOZ3EN.js +0 -170
- package/dist/chunks/chunk-QZVUFIRZ.js +0 -157
- package/dist/chunks/chunk-R46QNNJQ.js +0 -209
- package/dist/chunks/chunk-R4KO7T2Q.js +0 -159
- package/dist/chunks/chunk-R54TD5SA.js +0 -23
- package/dist/chunks/chunk-R5FEB7E5.js +0 -74
- package/dist/chunks/chunk-R5TXXGZT.js +0 -90
- package/dist/chunks/chunk-RABLTO7F.js +0 -146
- package/dist/chunks/chunk-RCPNW4VE.js +0 -174
- package/dist/chunks/chunk-REOR4JAY.js +0 -503
- package/dist/chunks/chunk-RFBSHK2E.js +0 -36
- package/dist/chunks/chunk-RFNONCKP.js +0 -115
- package/dist/chunks/chunk-RGIWFPOT.js +0 -163
- package/dist/chunks/chunk-RGK6J27S.js +0 -93
- package/dist/chunks/chunk-RHU2MDOD.js +0 -73
- package/dist/chunks/chunk-RKVAT6E5.js +0 -242
- package/dist/chunks/chunk-RN4455X6.js +0 -137
- package/dist/chunks/chunk-RN7BLCMM.js +0 -166
- package/dist/chunks/chunk-RNUSVHDO.js +0 -54
- package/dist/chunks/chunk-RO2GL5L5.js +0 -140
- package/dist/chunks/chunk-RO425K7T.js +0 -179
- package/dist/chunks/chunk-ROPDRHLW.js +0 -224
- package/dist/chunks/chunk-RPHYQCSX.js +0 -110
- package/dist/chunks/chunk-RQCAVBYA.js +0 -33
- package/dist/chunks/chunk-RQCKOEOQ.js +0 -143
- package/dist/chunks/chunk-RQHLXUTR.js +0 -28
- package/dist/chunks/chunk-RSSYPXMH.js +0 -161
- package/dist/chunks/chunk-RU42AZEY.js +0 -172
- package/dist/chunks/chunk-RVHRSNUQ.js +0 -95
- package/dist/chunks/chunk-RVONJFSV.js +0 -108
- package/dist/chunks/chunk-RWAHBWDR.js +0 -102
- package/dist/chunks/chunk-RWDCGLJQ.js +0 -78
- package/dist/chunks/chunk-RWOC2VQ2.js +0 -99
- package/dist/chunks/chunk-RY46GZZZ.js +0 -94
- package/dist/chunks/chunk-S225IZ4B.js +0 -97
- package/dist/chunks/chunk-SDMAKAKR.js +0 -75
- package/dist/chunks/chunk-SE2NBQEY.js +0 -106
- package/dist/chunks/chunk-SEEVVAYG.js +0 -60
- package/dist/chunks/chunk-SESYMSPZ.js +0 -240
- package/dist/chunks/chunk-SFRQTN7R.js +0 -86
- package/dist/chunks/chunk-SJ56QBNZ.js +0 -112
- package/dist/chunks/chunk-SKRBBUFM.js +0 -337
- package/dist/chunks/chunk-SL6Y5IZK.js +0 -104
- package/dist/chunks/chunk-SO5Z6PYS.js +0 -23
- package/dist/chunks/chunk-SP6XUG4Z.js +0 -48
- package/dist/chunks/chunk-SQLZXIXN.js +0 -109
- package/dist/chunks/chunk-SQOSKJNT.js +0 -131
- package/dist/chunks/chunk-SQPGNHY2.js +0 -100
- package/dist/chunks/chunk-SRAFYDQ3.js +0 -105
- package/dist/chunks/chunk-ST4VKD7H.js +0 -164
- package/dist/chunks/chunk-ST5ET77X.js +0 -85
- package/dist/chunks/chunk-SUAAPHF7.js +0 -60
- package/dist/chunks/chunk-SXONZF3L.js +0 -50
- package/dist/chunks/chunk-SYKQSY6O.js +0 -63
- package/dist/chunks/chunk-T3IIX6DP.js +0 -141
- package/dist/chunks/chunk-T4E24SJ7.js +0 -234
- package/dist/chunks/chunk-T4TFCJMI.js +0 -198
- package/dist/chunks/chunk-TC4LVCYK.js +0 -99
- package/dist/chunks/chunk-TDAQWAFW.js +0 -33
- package/dist/chunks/chunk-THILZISE.js +0 -90
- package/dist/chunks/chunk-TIO4BER2.js +0 -85
- package/dist/chunks/chunk-TN3ULXSW.js +0 -358
- package/dist/chunks/chunk-TNOOJWQT.js +0 -105
- package/dist/chunks/chunk-TNXEFISR.js +0 -204
- package/dist/chunks/chunk-TP5AQVGJ.js +0 -45
- package/dist/chunks/chunk-TPJAOEOK.js +0 -33
- package/dist/chunks/chunk-TQAKVDLX.js +0 -165
- package/dist/chunks/chunk-TQLBFGIP.js +0 -85
- package/dist/chunks/chunk-TQQ2DNOV.js +0 -118
- package/dist/chunks/chunk-TRPPGRP3.js +0 -209
- package/dist/chunks/chunk-TUXPWFCW.js +0 -119
- package/dist/chunks/chunk-TVPKGMDL.js +0 -23
- package/dist/chunks/chunk-TVR2Q5ZX.js +0 -262
- package/dist/chunks/chunk-TYYKJUOS.js +0 -126
- package/dist/chunks/chunk-TZ2H7772.js +0 -30
- package/dist/chunks/chunk-TZ55G7A3.js +0 -130
- package/dist/chunks/chunk-U3YOWFW4.js +0 -33
- package/dist/chunks/chunk-U4BURQNY.js +0 -82
- package/dist/chunks/chunk-U4HBSYZP.js +0 -106
- package/dist/chunks/chunk-U5E3JGKP.js +0 -212
- package/dist/chunks/chunk-U6JKARCT.js +0 -125
- package/dist/chunks/chunk-UAF37CPX.js +0 -215
- package/dist/chunks/chunk-UBL5P35M.js +0 -345
- package/dist/chunks/chunk-UBXE6DHQ.js +0 -196
- package/dist/chunks/chunk-UCKEKG6N.js +0 -101
- package/dist/chunks/chunk-UG6KTBHY.js +0 -279
- package/dist/chunks/chunk-UJ5IZPG2.js +0 -103
- package/dist/chunks/chunk-UL7WYVKR.js +0 -23
- package/dist/chunks/chunk-ULA3GBCF.js +0 -488
- package/dist/chunks/chunk-UPUUM3VO.js +0 -80
- package/dist/chunks/chunk-US4EXVBY.js +0 -119
- package/dist/chunks/chunk-UTCKIWN4.js +0 -33
- package/dist/chunks/chunk-UTRBQTJP.js +0 -84
- package/dist/chunks/chunk-UTVOJ4ZR.js +0 -41
- package/dist/chunks/chunk-UU32IXWE.js +0 -135
- package/dist/chunks/chunk-UUIWNG4A.js +0 -41
- package/dist/chunks/chunk-UVWSDZJJ.js +0 -215
- package/dist/chunks/chunk-UW7FM5KL.js +0 -239
- package/dist/chunks/chunk-UZAD653H.js +0 -36
- package/dist/chunks/chunk-UZPK45GX.js +0 -95
- package/dist/chunks/chunk-V5OVCBST.js +0 -171
- package/dist/chunks/chunk-V6B6GRRX.js +0 -153
- package/dist/chunks/chunk-V7EGDY3X.js +0 -149
- package/dist/chunks/chunk-VAIHMQAM.js +0 -415
- package/dist/chunks/chunk-VATJTYVY.js +0 -152
- package/dist/chunks/chunk-VCEDRF2K.js +0 -95
- package/dist/chunks/chunk-VCXNMQBV.js +0 -106
- package/dist/chunks/chunk-VDJT5MDM.js +0 -112
- package/dist/chunks/chunk-VDR2P6YN.js +0 -110
- package/dist/chunks/chunk-VELNSSIB.js +0 -81
- package/dist/chunks/chunk-VEVAFJQW.js +0 -111
- package/dist/chunks/chunk-VFPVJHPO.js +0 -140
- package/dist/chunks/chunk-VFV7BMO2.js +0 -217
- package/dist/chunks/chunk-VILTZO3A.js +0 -140
- package/dist/chunks/chunk-VIUMFFOY.js +0 -163
- package/dist/chunks/chunk-VJYVJLAH.js +0 -198
- package/dist/chunks/chunk-VKE2AING.js +0 -346
- package/dist/chunks/chunk-VKFORIV3.js +0 -92
- package/dist/chunks/chunk-VNOVNPQW.js +0 -191
- package/dist/chunks/chunk-VNT6VMNI.js +0 -170
- package/dist/chunks/chunk-VO7PZCOJ.js +0 -102
- package/dist/chunks/chunk-VOPKH3WW.js +0 -163
- package/dist/chunks/chunk-VP7ZR5L2.js +0 -330
- package/dist/chunks/chunk-VPZGHCNV.js +0 -41
- package/dist/chunks/chunk-VQRUP6DA.js +0 -23
- package/dist/chunks/chunk-VRJLGCYZ.js +0 -86
- package/dist/chunks/chunk-VUEBXDEG.js +0 -113
- package/dist/chunks/chunk-VUF4W5AZ.js +0 -130
- package/dist/chunks/chunk-W3XU44HN.js +0 -80
- package/dist/chunks/chunk-W4KZCASL.js +0 -87
- package/dist/chunks/chunk-W7UNNNJ3.js +0 -23
- package/dist/chunks/chunk-W7ZBZ2DX.js +0 -33
- package/dist/chunks/chunk-WAAUBCVI.js +0 -89
- package/dist/chunks/chunk-WB4457D3.js +0 -304
- package/dist/chunks/chunk-WCP3DFSP.js +0 -244
- package/dist/chunks/chunk-WCPCDWAO.js +0 -193
- package/dist/chunks/chunk-WF54UVRS.js +0 -138
- package/dist/chunks/chunk-WFIIOBRA.js +0 -76
- package/dist/chunks/chunk-WGXU4HRZ.js +0 -106
- package/dist/chunks/chunk-WHTTUK5X.js +0 -33
- package/dist/chunks/chunk-WIMI3KM6.js +0 -45
- package/dist/chunks/chunk-WIZNUPQR.js +0 -277
- package/dist/chunks/chunk-WJGOHWCJ.js +0 -105
- package/dist/chunks/chunk-WLZP6XIU.js +0 -79
- package/dist/chunks/chunk-WMPTPGK2.js +0 -169
- package/dist/chunks/chunk-WNHYG5W4.js +0 -251
- package/dist/chunks/chunk-WNKCTZ7W.js +0 -45
- package/dist/chunks/chunk-WNSNLNHN.js +0 -267
- package/dist/chunks/chunk-WOCBWUNE.js +0 -71
- package/dist/chunks/chunk-WONFFJNS.js +0 -23
- package/dist/chunks/chunk-WOPSOYSZ.js +0 -42
- package/dist/chunks/chunk-WQ2YFNM2.js +0 -156
- package/dist/chunks/chunk-WQ5O2JOB.js +0 -44
- package/dist/chunks/chunk-WQESYXZ4.js +0 -90
- package/dist/chunks/chunk-WTIUEN3W.js +0 -70
- package/dist/chunks/chunk-WVAAKE6T.js +0 -169
- package/dist/chunks/chunk-WVMWBCDF.js +0 -247
- package/dist/chunks/chunk-WWOBCB5Y.js +0 -115
- package/dist/chunks/chunk-WWOXYYYL.js +0 -138
- package/dist/chunks/chunk-WWOZODUJ.js +0 -90
- package/dist/chunks/chunk-WY2MK4BZ.js +0 -42
- package/dist/chunks/chunk-WY6GOYUG.js +0 -305
- package/dist/chunks/chunk-WYJ4IZQH.js +0 -94
- package/dist/chunks/chunk-WZM2LPY3.js +0 -290
- package/dist/chunks/chunk-WZR7EPFB.js +0 -304
- package/dist/chunks/chunk-X256IWT7.js +0 -142
- package/dist/chunks/chunk-X4JQXBAD.js +0 -104
- package/dist/chunks/chunk-X4LAHVZM.js +0 -184
- package/dist/chunks/chunk-X4WKJNCX.js +0 -136
- package/dist/chunks/chunk-X5T75ZQ2.js +0 -52
- package/dist/chunks/chunk-X626EPW3.js +0 -179
- package/dist/chunks/chunk-X6WM5N6Q.js +0 -399
- package/dist/chunks/chunk-X7DJ3LQJ.js +0 -129
- package/dist/chunks/chunk-X7NLRTBR.js +0 -224
- package/dist/chunks/chunk-X7VHR7V3.js +0 -117
- package/dist/chunks/chunk-XCNFUFOC.js +0 -360
- package/dist/chunks/chunk-XEZ5BVC5.js +0 -179
- package/dist/chunks/chunk-XFJCC4G6.js +0 -36
- package/dist/chunks/chunk-XFWHYDQG.js +0 -200
- package/dist/chunks/chunk-XHZVISYZ.js +0 -139
- package/dist/chunks/chunk-XJ2EPCKT.js +0 -183
- package/dist/chunks/chunk-XJG6ZWAW.js +0 -170
- package/dist/chunks/chunk-XKLXPM2E.js +0 -23
- package/dist/chunks/chunk-XKTCGF65.js +0 -180
- package/dist/chunks/chunk-XKULK4UK.js +0 -123
- package/dist/chunks/chunk-XLDAB36D.js +0 -146
- package/dist/chunks/chunk-XOG4ZV6I.js +0 -195
- package/dist/chunks/chunk-XOOIUJTE.js +0 -117
- package/dist/chunks/chunk-XQKWCSEC.js +0 -23
- package/dist/chunks/chunk-XQPSGFXI.js +0 -104
- package/dist/chunks/chunk-XRZBDI7H.js +0 -135
- package/dist/chunks/chunk-XUWB45YS.js +0 -107
- package/dist/chunks/chunk-XV6OD3A5.js +0 -93
- package/dist/chunks/chunk-XVBCSQGS.js +0 -114
- package/dist/chunks/chunk-XVX66CXE.js +0 -192
- package/dist/chunks/chunk-XW3CTNUI.js +0 -103
- package/dist/chunks/chunk-XWJJ3O7T.js +0 -152
- package/dist/chunks/chunk-XZ3ABLPN.js +0 -126
- package/dist/chunks/chunk-Y2MBKWQV.js +0 -33
- package/dist/chunks/chunk-Y3ZL32IH.js +0 -101
- package/dist/chunks/chunk-Y63XK7VS.js +0 -87
- package/dist/chunks/chunk-Y657UTQ6.js +0 -97
- package/dist/chunks/chunk-YDHVMBTY.js +0 -85
- package/dist/chunks/chunk-YIOLGHHC.js +0 -100
- package/dist/chunks/chunk-YJXQVRJ6.js +0 -218
- package/dist/chunks/chunk-YMBAZLAK.js +0 -65
- package/dist/chunks/chunk-YP3HKZLS.js +0 -261
- package/dist/chunks/chunk-YPI2FENL.js +0 -133
- package/dist/chunks/chunk-YPYWOVPA.js +0 -110
- package/dist/chunks/chunk-YQRDMCJW.js +0 -112
- package/dist/chunks/chunk-YS67S4L2.js +0 -87
- package/dist/chunks/chunk-YSJFBD6T.js +0 -84
- package/dist/chunks/chunk-YV3U34SJ.js +0 -225
- package/dist/chunks/chunk-YXTLVZKS.js +0 -78
- package/dist/chunks/chunk-YZ4AHLZK.js +0 -93
- package/dist/chunks/chunk-YZVOOFL2.js +0 -33
- package/dist/chunks/chunk-Z3AVJLN2.js +0 -133
- package/dist/chunks/chunk-Z62HKP3V.js +0 -187
- package/dist/chunks/chunk-Z6HEFN7V.js +0 -105
- package/dist/chunks/chunk-Z6Q2SRQW.js +0 -103
- package/dist/chunks/chunk-Z6VIQNOA.js +0 -162
- package/dist/chunks/chunk-ZAA7FU67.js +0 -150
- package/dist/chunks/chunk-ZACO27GV.js +0 -36
- package/dist/chunks/chunk-ZAF2Y4BR.js +0 -23
- package/dist/chunks/chunk-ZBHYPS5N.js +0 -175
- package/dist/chunks/chunk-ZBYRPNFH.js +0 -153
- package/dist/chunks/chunk-ZEFOA4KQ.js +0 -168
- package/dist/chunks/chunk-ZEPWGZXI.js +0 -109
- package/dist/chunks/chunk-ZFYO6Q67.js +0 -77
- package/dist/chunks/chunk-ZG74C7XC.js +0 -23
- package/dist/chunks/chunk-ZIFHV5WS.js +0 -112
- package/dist/chunks/chunk-ZKMIAYCZ.js +0 -189
- package/dist/chunks/chunk-ZMHVPNNE.js +0 -90
- package/dist/chunks/chunk-ZQ6DQRMP.js +0 -564
- package/dist/chunks/chunk-ZQCDXWUG.js +0 -200
- package/dist/chunks/chunk-ZQCLQQH2.js +0 -145
- package/dist/chunks/chunk-ZR35MRFA.js +0 -91
- package/dist/chunks/chunk-ZRUIKYRV.js +0 -152
- package/dist/chunks/chunk-ZSQA6WX3.js +0 -94
- package/dist/chunks/chunk-ZVZKFSPS.js +0 -282
- package/dist/chunks/chunk-ZWULXUS2.js +0 -74
- package/dist/chunks/chunk-ZXN4QCOG.js +0 -157
- package/dist/chunks/chunk-ZXPSUUT5.js +0 -129
- package/dist/chunks/chunk-ZXYK2CS2.js +0 -177
- package/dist/chunks/chunk-ZYGXFDP7.js +0 -300
- package/dist/chunks/chunk-ZZGEJ42Z.js +0 -293
- package/dist/chunks/chunk-ZZS6VDRU.js +0 -169
- package/dist/chunks/client-7N3D6XA2.js +0 -167
- package/dist/chunks/client-AQH4JI2D.js +0 -31
- package/dist/chunks/client-NRHNLRJQ.js +0 -46
- package/dist/chunks/client-actions-ZFOUOFGT.js +0 -164
- package/dist/chunks/client-store-C642K54E.js +0 -33
- package/dist/chunks/dangerous-FZ2LBQL7.js +0 -117
- package/dist/chunks/delete-current-file-QYWOJQPL.js +0 -157
- package/dist/chunks/editor-seams-LMGEMYSB.js +0 -164
- package/dist/chunks/editor-store-LDE7TMEC.js +0 -142
- package/dist/chunks/export-K5JRB7NN.js +0 -68
- package/dist/chunks/export-watermark-OPKAG6NV.js +0 -150
- package/dist/chunks/eyedropper-HDZG7ZMT.js +0 -352
- package/dist/chunks/generate-media-NGQ5ZQLY.js +0 -255
- package/dist/chunks/host-RAJWORL7.js +0 -176
- package/dist/chunks/integrations-X42GAXDV.js +0 -124
- package/dist/chunks/kit-modules-SCFV6QXX.js +0 -18
- package/dist/chunks/libraries-7SFRFZGS.js +0 -305
- package/dist/chunks/library-previews-NCFMOKUS.js +0 -199
- package/dist/chunks/live-YSCPAEXQ.js +0 -315
- package/dist/chunks/lottie-VTV5Q525.js +0 -86
- package/dist/chunks/media-tool-NWISDHFJ.js +0 -335
- package/dist/chunks/new-file-NORUP7BP.js +0 -134
- package/dist/chunks/page-thumbnails-2ZOUT7VJ.js +0 -137
- package/dist/chunks/pdf-JEVRVIUB.js +0 -1217
- package/dist/chunks/player-check-KDZEHPRC.js +0 -114
- package/dist/chunks/plugin-XNVNT3GJ.js +0 -124
- package/dist/chunks/plugin-import-NTP2NTIK.js +0 -669
- package/dist/chunks/presence-METKXFCO.js +0 -130
- package/dist/chunks/preview-media-QYO2VSWF.js +0 -122
- package/dist/chunks/project-X5TUIH4N.js +0 -1653
- package/dist/chunks/publish-site-JLJZVEDT.js +0 -161
- package/dist/chunks/publish-store-2PFDINND.js +0 -93
- package/dist/chunks/raster-actions-QT3LXQVB.js +0 -230
- package/dist/chunks/reference-images-YAXWSOT2.js +0 -63
- package/dist/chunks/resolvers-LHWBNJPS.js +0 -140
- package/dist/chunks/runner-H7NO54HD.js +0 -2893
- package/dist/chunks/runtime-ZZSW7ZJK.js +0 -32
- package/dist/chunks/sites-I4PTKLV2.js +0 -33
- package/dist/chunks/store-KYGKTXSP.js +0 -229
- package/dist/chunks/storefront-prepare-CXBV3LVO.js +0 -33
- package/dist/chunks/svg-export-T56I6TUJ.js +0 -82
- package/dist/chunks/sync-BIIX5R6U.js +0 -156
- package/dist/chunks/tabs-P7LEJP57.js +0 -314
- package/dist/chunks/team-UMLZRCSZ.js +0 -46
- package/dist/chunks/team-client-XVZ6ZB6L.js +0 -157
- package/dist/chunks/templates-EJSHHIEB.js +0 -181
- package/dist/chunks/tools-A7AOZQ5E.js +0 -34
- package/dist/chunks/ui-commands-P64CEOOG.js +0 -272
- package/dist/chunks/versions-ALHMO5UD.js +0 -314
- /package/dist/chunks/{chunk-5JZV7GR4.js → chunk-2FZMVGCM.js} +0 -0
- /package/dist/chunks/{chunk-R7743AQ3.js → chunk-LPUYP5E7.js} +0 -0
|
@@ -0,0 +1,2893 @@
|
|
|
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-T5DAYYVM.js";
|
|
29
|
+
import {
|
|
30
|
+
registerBuiltinTools
|
|
31
|
+
} from "./chunk-S5XZAZA6.js";
|
|
32
|
+
import {
|
|
33
|
+
registerDangerousCommands
|
|
34
|
+
} from "./chunk-MIJXB57R.js";
|
|
35
|
+
import "./chunk-MI7RW3PA.js";
|
|
36
|
+
import "./chunk-NZZH7UZX.js";
|
|
37
|
+
import "./chunk-56Q3V5E3.js";
|
|
38
|
+
import "./chunk-ZYIDC2QF.js";
|
|
39
|
+
import "./chunk-DYLFCK7S.js";
|
|
40
|
+
import "./chunk-EVTZTJFD.js";
|
|
41
|
+
import {
|
|
42
|
+
editBlockReason,
|
|
43
|
+
editorToolContext
|
|
44
|
+
} from "./chunk-AM72T76F.js";
|
|
45
|
+
import "./chunk-6EQ67UI2.js";
|
|
46
|
+
import "./chunk-2YGBU7FI.js";
|
|
47
|
+
import "./chunk-SAAT2LKB.js";
|
|
48
|
+
import {
|
|
49
|
+
buildDesignContext,
|
|
50
|
+
joinWithin
|
|
51
|
+
} from "./chunk-NRIKYXXC.js";
|
|
52
|
+
import "./chunk-BXWUHCXZ.js";
|
|
53
|
+
import "./chunk-L6QVPBRV.js";
|
|
54
|
+
import "./chunk-5TK4AO4R.js";
|
|
55
|
+
import "./chunk-YSTMKLEG.js";
|
|
56
|
+
import "./chunk-AWRR7UM2.js";
|
|
57
|
+
import {
|
|
58
|
+
HYPERY_PAYMENT_SOURCE_HEADER,
|
|
59
|
+
paymentSourceHeaders
|
|
60
|
+
} from "./chunk-7KC47Q7B.js";
|
|
61
|
+
import {
|
|
62
|
+
aiAvailability,
|
|
63
|
+
effectiveChatModel,
|
|
64
|
+
useAiStore
|
|
65
|
+
} from "./chunk-I6BERD2A.js";
|
|
66
|
+
import {
|
|
67
|
+
allTools,
|
|
68
|
+
getTool,
|
|
69
|
+
runTool,
|
|
70
|
+
toolSpecs
|
|
71
|
+
} from "./chunk-W4YKVLKC.js";
|
|
72
|
+
import {
|
|
73
|
+
external_exports
|
|
74
|
+
} from "./chunk-KEXC6WFQ.js";
|
|
75
|
+
import {
|
|
76
|
+
provideAgentCapability
|
|
77
|
+
} from "./chunk-SAXQWIVH.js";
|
|
78
|
+
import {
|
|
79
|
+
defineCommand
|
|
80
|
+
} from "./chunk-7PV6CXMN.js";
|
|
81
|
+
import "./chunk-6MJR7QTX.js";
|
|
82
|
+
import "./chunk-KBAGTFA3.js";
|
|
83
|
+
import "./chunk-7QRWKD2N.js";
|
|
84
|
+
import "./chunk-5GPVNZ3T.js";
|
|
85
|
+
import "./chunk-DN64LZVK.js";
|
|
86
|
+
import "./chunk-DPDXKVCE.js";
|
|
87
|
+
import "./chunk-NW5VPQOL.js";
|
|
88
|
+
import "./chunk-K27PEYWG.js";
|
|
89
|
+
import "./chunk-4FSCCBGY.js";
|
|
90
|
+
import "./chunk-TIMQ2JFH.js";
|
|
91
|
+
import "./chunk-LVG3W5UN.js";
|
|
92
|
+
import "./chunk-7MZNRLPS.js";
|
|
93
|
+
import "./chunk-BHPZQEN2.js";
|
|
94
|
+
import "./chunk-VUO5NYMQ.js";
|
|
95
|
+
import "./chunk-HSTXVUJG.js";
|
|
96
|
+
import "./chunk-KCGDGQUP.js";
|
|
97
|
+
import "./chunk-D2MACI76.js";
|
|
98
|
+
import "./chunk-KXCPXVC5.js";
|
|
99
|
+
import "./chunk-SZSVSMGE.js";
|
|
100
|
+
import "./chunk-G5POZGW4.js";
|
|
101
|
+
import "./chunk-5AL2OA5N.js";
|
|
102
|
+
import "./chunk-SXN57VML.js";
|
|
103
|
+
import "./chunk-G4V4SM72.js";
|
|
104
|
+
import {
|
|
105
|
+
activeHyperyTeamId
|
|
106
|
+
} from "./chunk-PSFE7TLM.js";
|
|
107
|
+
import "./chunk-N5YWYVX2.js";
|
|
108
|
+
import "./chunk-Y3YJ6CLO.js";
|
|
109
|
+
import "./chunk-DRV3LG6O.js";
|
|
110
|
+
import "./chunk-HQSXKAKB.js";
|
|
111
|
+
import {
|
|
112
|
+
useEditorStore
|
|
113
|
+
} from "./chunk-JNFT24T6.js";
|
|
114
|
+
import "./chunk-OUD3ZPXY.js";
|
|
115
|
+
import "./chunk-6S3JFWFJ.js";
|
|
116
|
+
import "./chunk-6XE5TBW5.js";
|
|
117
|
+
import "./chunk-YYWZ65FV.js";
|
|
118
|
+
import "./chunk-LVVJY5KF.js";
|
|
119
|
+
import "./chunk-YFVBKVJA.js";
|
|
120
|
+
import "./chunk-UF4EBWGE.js";
|
|
121
|
+
import "./chunk-27QI7JIM.js";
|
|
122
|
+
import "./chunk-RE5II44V.js";
|
|
123
|
+
import "./chunk-6JPRTJGQ.js";
|
|
124
|
+
import "./chunk-3JY3UEXF.js";
|
|
125
|
+
import "./chunk-3BQ3B5B6.js";
|
|
126
|
+
import "./chunk-G36EYBX4.js";
|
|
127
|
+
import "./chunk-LAADO64J.js";
|
|
128
|
+
import "./chunk-7ZKIAXAA.js";
|
|
129
|
+
import "./chunk-APCKWD2L.js";
|
|
130
|
+
import "./chunk-6R2OQFQV.js";
|
|
131
|
+
import "./chunk-CXPPU7QN.js";
|
|
132
|
+
import "./chunk-ZNKXILK7.js";
|
|
133
|
+
import "./chunk-AQZOXLB5.js";
|
|
134
|
+
import {
|
|
135
|
+
HYPERY_GATEWAY_URL,
|
|
136
|
+
accessToken
|
|
137
|
+
} from "./chunk-GZJVCEOM.js";
|
|
138
|
+
import "./chunk-YZGFH3CT.js";
|
|
139
|
+
import "./chunk-WBZVFIIR.js";
|
|
140
|
+
import "./chunk-MFQDAQ4W.js";
|
|
141
|
+
import {
|
|
142
|
+
ToolError,
|
|
143
|
+
registerCommand
|
|
144
|
+
} from "./chunk-XTE5XPON.js";
|
|
145
|
+
import "./chunk-4RRQFGKQ.js";
|
|
146
|
+
import "./chunk-L3DVFTH7.js";
|
|
147
|
+
import "./chunk-MV6I73PD.js";
|
|
148
|
+
import "./chunk-FVLLZZRA.js";
|
|
149
|
+
import "./chunk-ZXLH3WFJ.js";
|
|
150
|
+
import "./chunk-X7RTUH4P.js";
|
|
151
|
+
import "./chunk-F53FSJ6A.js";
|
|
152
|
+
import "./chunk-CVAVGVTK.js";
|
|
153
|
+
import "./chunk-HGVRONGB.js";
|
|
154
|
+
import "./chunk-HYLWLIJZ.js";
|
|
155
|
+
import "./chunk-KOPBVVYY.js";
|
|
156
|
+
import "./chunk-QSGOPHFF.js";
|
|
157
|
+
import "./chunk-MLJU4GD7.js";
|
|
158
|
+
import "./chunk-X6UMVB6V.js";
|
|
159
|
+
import "./chunk-MW2L4UB3.js";
|
|
160
|
+
import "./chunk-CCFKJFYI.js";
|
|
161
|
+
import "./chunk-BHFU2SNG.js";
|
|
162
|
+
import "./chunk-6UYGZVFW.js";
|
|
163
|
+
import "./chunk-DRZ7ZI44.js";
|
|
164
|
+
import "./chunk-VWDQVLRP.js";
|
|
165
|
+
import "./chunk-L7R33K4U.js";
|
|
166
|
+
import "./chunk-GHKQELRI.js";
|
|
167
|
+
import "./chunk-4DFEFN6H.js";
|
|
168
|
+
import "./chunk-KGX6NKUL.js";
|
|
169
|
+
import "./chunk-S2KNTLWW.js";
|
|
170
|
+
import "./chunk-3RIP3RBK.js";
|
|
171
|
+
import "./chunk-2W34OM3I.js";
|
|
172
|
+
import "./chunk-7FLM3U46.js";
|
|
173
|
+
import "./chunk-2FZMVGCM.js";
|
|
174
|
+
import "./chunk-AF4EQGDP.js";
|
|
175
|
+
import "./chunk-5NDSGRDE.js";
|
|
176
|
+
import "./chunk-OA3JN6UB.js";
|
|
177
|
+
import "./chunk-EZB2CHXI.js";
|
|
178
|
+
import "./chunk-XQ4FCZXM.js";
|
|
179
|
+
import "./chunk-2I2PZQT6.js";
|
|
180
|
+
import "./chunk-TS6KXHXN.js";
|
|
181
|
+
import "./chunk-ZOR7KGAW.js";
|
|
182
|
+
import "./chunk-4OKPAODR.js";
|
|
183
|
+
import "./chunk-AALLNEQ4.js";
|
|
184
|
+
import "./chunk-KLLCVCTN.js";
|
|
185
|
+
import "./chunk-EHLDEQXN.js";
|
|
186
|
+
import "./chunk-AVWA3JAF.js";
|
|
187
|
+
import "./chunk-X23QZCB5.js";
|
|
188
|
+
import "./chunk-V3NNFWJ6.js";
|
|
189
|
+
import "./chunk-2GYCQATT.js";
|
|
190
|
+
import "./chunk-YFMWPJZB.js";
|
|
191
|
+
import "./chunk-WXUP2RVV.js";
|
|
192
|
+
import "./chunk-LKO2ROND.js";
|
|
193
|
+
import "./chunk-R75RXATH.js";
|
|
194
|
+
import "./chunk-KZZKA45P.js";
|
|
195
|
+
import "./chunk-TM7X32FA.js";
|
|
196
|
+
import "./chunk-QFSI4XHH.js";
|
|
197
|
+
import "./chunk-72PU3Z7V.js";
|
|
198
|
+
import "./chunk-FB3VFPHC.js";
|
|
199
|
+
import "./chunk-6VIYCRKB.js";
|
|
200
|
+
import "./chunk-BIXOOQHU.js";
|
|
201
|
+
import "./chunk-YY6HBXER.js";
|
|
202
|
+
import "./chunk-BNKGIA7E.js";
|
|
203
|
+
import "./chunk-YY6M3V7Y.js";
|
|
204
|
+
import "./chunk-KUK3G3FM.js";
|
|
205
|
+
import "./chunk-DOR2XLT2.js";
|
|
206
|
+
import "./chunk-AE2ATI3K.js";
|
|
207
|
+
import "./chunk-A6QRG7FQ.js";
|
|
208
|
+
import "./chunk-VVX7E6KV.js";
|
|
209
|
+
import "./chunk-2ZOGGWUN.js";
|
|
210
|
+
import "./chunk-4PRA35FU.js";
|
|
211
|
+
import "./chunk-6P24GP33.js";
|
|
212
|
+
import "./chunk-TSL63S3C.js";
|
|
213
|
+
import "./chunk-S73APRRG.js";
|
|
214
|
+
import "./chunk-BISPSLUK.js";
|
|
215
|
+
import "./chunk-BSAAHSLL.js";
|
|
216
|
+
import "./chunk-6T2GQP2T.js";
|
|
217
|
+
import "./chunk-OGX2SOG3.js";
|
|
218
|
+
import "./chunk-2X2QLPJ6.js";
|
|
219
|
+
import {
|
|
220
|
+
AI_LIMITS,
|
|
221
|
+
init_limits,
|
|
222
|
+
str
|
|
223
|
+
} from "./chunk-5RVQUVYW.js";
|
|
224
|
+
import "./chunk-2GUU5SJO.js";
|
|
225
|
+
import "./chunk-A5UBUWRC.js";
|
|
226
|
+
import "./chunk-N5PE5KNW.js";
|
|
227
|
+
import "./chunk-V44ZWZDV.js";
|
|
228
|
+
import "./chunk-U7OUHAO6.js";
|
|
229
|
+
import "./chunk-FFKBYI2C.js";
|
|
230
|
+
import "./chunk-LU37IS6F.js";
|
|
231
|
+
import "./chunk-IGPOBMAU.js";
|
|
232
|
+
import "./chunk-YKVLFIC7.js";
|
|
233
|
+
import "./chunk-YDHADLRV.js";
|
|
234
|
+
import "./chunk-NGZGSDNF.js";
|
|
235
|
+
import "./chunk-L4UQWMLC.js";
|
|
236
|
+
import "./chunk-TLCQLCRM.js";
|
|
237
|
+
import {
|
|
238
|
+
init_define_POPCRAFT_COMPONENT_IDS
|
|
239
|
+
} from "./chunk-W5QYHNL2.js";
|
|
240
|
+
import "./chunk-LJSVREWM.js";
|
|
241
|
+
|
|
242
|
+
// lib/agent/runner.ts
|
|
243
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
244
|
+
|
|
245
|
+
// lib/agent/gateway.ts
|
|
246
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
247
|
+
|
|
248
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
249
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
250
|
+
|
|
251
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/hypery-model.js
|
|
252
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
253
|
+
var delay = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
|
|
254
|
+
var utf8Complete = ((b) => {
|
|
255
|
+
if (!Array.isArray(b)) return null;
|
|
256
|
+
const n = b.length;
|
|
257
|
+
for (let i = n - 1; i >= Math.max(0, n - 3); i--) {
|
|
258
|
+
const c = b[i];
|
|
259
|
+
if ((c & 192) === 128) continue;
|
|
260
|
+
const len = c <= 127 ? 1 : c >= 194 && c <= 223 ? 2 : c >= 224 && c <= 239 ? 3 : c >= 240 && c <= 244 ? 4 : 1;
|
|
261
|
+
return n - i < len ? i : n;
|
|
262
|
+
}
|
|
263
|
+
return n;
|
|
264
|
+
});
|
|
265
|
+
var utf8Decode = ((b) => typeof b === "string" ? b : Array.isArray(b) ? new TextDecoder().decode(Uint8Array.from(b)) : null);
|
|
266
|
+
var MAX_REQUEST_BYTES = 44e5;
|
|
267
|
+
var DEFAULT_IDLE_TIMEOUT_MS = 18e4;
|
|
268
|
+
var HYPERY_TEAM_HEADER = "x-hypery-active-organization-id";
|
|
269
|
+
var HYPERY_PAYMENT_SOURCE_HEADER2 = "x-hypery-payment-source";
|
|
270
|
+
function agentModelError(message, code, status) {
|
|
271
|
+
{
|
|
272
|
+
return { name: "AgentModelError", message, code: code ?? "ai_upstream", status: ((__v) => __v == null ? "null" : typeof __v)(status) === "number" ? status : 502 };
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
async function resolve(v) {
|
|
276
|
+
{
|
|
277
|
+
if (((__v) => __v == null ? "null" : typeof __v)(v) === "function") {
|
|
278
|
+
return await (v() ?? null);
|
|
279
|
+
}
|
|
280
|
+
return v ?? null;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
function errorCodeFor(status, payload) {
|
|
284
|
+
{
|
|
285
|
+
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") {
|
|
286
|
+
return payload.error.code;
|
|
287
|
+
}
|
|
288
|
+
if (status === 401) {
|
|
289
|
+
return "ai_reauth";
|
|
290
|
+
}
|
|
291
|
+
if (status === 402) {
|
|
292
|
+
return "ai_credits";
|
|
293
|
+
}
|
|
294
|
+
if (status === 403) {
|
|
295
|
+
return "ai_scope";
|
|
296
|
+
}
|
|
297
|
+
if (status === 429) {
|
|
298
|
+
return "ai_rate_limited";
|
|
299
|
+
}
|
|
300
|
+
return "ai_upstream";
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
function streamErrorMessage(payload, fallback) {
|
|
304
|
+
{
|
|
305
|
+
let otherwise = fallback ?? "The AI request failed.";
|
|
306
|
+
if (payload == null || ((__v) => __v == null ? "null" : typeof __v)(payload) !== "object") {
|
|
307
|
+
return otherwise;
|
|
308
|
+
}
|
|
309
|
+
let err = payload.error ?? null;
|
|
310
|
+
if (((__v) => __v == null ? "null" : typeof __v)(err) === "string" && (err.trim() ?? null) !== "") {
|
|
311
|
+
return err;
|
|
312
|
+
}
|
|
313
|
+
let message = err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" ? err.message ?? null : null;
|
|
314
|
+
if (message == null) {
|
|
315
|
+
message = payload.message ?? null;
|
|
316
|
+
}
|
|
317
|
+
return ((__v) => __v == null ? "null" : typeof __v)(message) === "string" && (message.trim() ?? null) !== "" ? message : otherwise;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
function createStreamAccumulator() {
|
|
321
|
+
{
|
|
322
|
+
let buffer = "";
|
|
323
|
+
let text = "";
|
|
324
|
+
let reasoning = "";
|
|
325
|
+
let sawDone = false;
|
|
326
|
+
let calls = /* @__PURE__ */ new Map() ?? null;
|
|
327
|
+
let order = [];
|
|
328
|
+
return { push: (part) => {
|
|
329
|
+
{
|
|
330
|
+
buffer = buffer + part;
|
|
331
|
+
let out = [];
|
|
332
|
+
let nl = buffer.indexOf("\n") ?? null;
|
|
333
|
+
while (nl >= 0) {
|
|
334
|
+
let line = (buffer.slice(0, nl) ?? null).trim() ?? null;
|
|
335
|
+
buffer = buffer.slice(nl + 1) ?? null;
|
|
336
|
+
nl = buffer.indexOf("\n") ?? null;
|
|
337
|
+
if (!(line.startsWith("data:") ?? null)) {
|
|
338
|
+
continue;
|
|
339
|
+
}
|
|
340
|
+
let data = (line.slice(5) ?? null).trim() ?? null;
|
|
341
|
+
if (data === "") {
|
|
342
|
+
continue;
|
|
343
|
+
}
|
|
344
|
+
if (data === "[DONE]") {
|
|
345
|
+
sawDone = true;
|
|
346
|
+
continue;
|
|
347
|
+
}
|
|
348
|
+
let chunk = null;
|
|
349
|
+
try {
|
|
350
|
+
{
|
|
351
|
+
chunk = JSON.parse(data) ?? null;
|
|
352
|
+
}
|
|
353
|
+
} catch (e) {
|
|
354
|
+
{
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
if (chunk == null || ((__v) => __v == null ? "null" : typeof __v)(chunk) !== "object") {
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
if (chunk.error) {
|
|
362
|
+
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";
|
|
363
|
+
throw agentModelError(streamErrorMessage(chunk, null) ?? null, code, 502) ?? null;
|
|
364
|
+
}
|
|
365
|
+
let choice = (Array.isArray(chunk.choices) ?? null) && chunk.choices.length > 0 ? chunk.choices[0] ?? null : null;
|
|
366
|
+
let delta = choice != null ? choice.delta ?? null : null;
|
|
367
|
+
if (delta == null) {
|
|
368
|
+
continue;
|
|
369
|
+
}
|
|
370
|
+
if (((__v) => __v == null ? "null" : typeof __v)(delta.content) === "string" && delta.content !== "") {
|
|
371
|
+
text = text + delta.content;
|
|
372
|
+
out.push({ textDelta: delta.content }) ?? null;
|
|
373
|
+
}
|
|
374
|
+
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 : "";
|
|
375
|
+
if (r !== "") {
|
|
376
|
+
reasoning = reasoning + r;
|
|
377
|
+
out.push({ reasoningDelta: r }) ?? null;
|
|
378
|
+
}
|
|
379
|
+
for (const tc of Array.isArray(delta.tool_calls) ?? null ? delta.tool_calls : []) {
|
|
380
|
+
let i = ((__v) => __v == null ? "null" : typeof __v)(tc.index) === "number" ? tc.index : order.length > 0 ? order[order.length - 1] ?? null : 0;
|
|
381
|
+
if (!(calls.has(i) ?? null)) {
|
|
382
|
+
calls.set(i, { id: null, name: "", arguments: "" }) ?? null;
|
|
383
|
+
order.push(i) ?? null;
|
|
384
|
+
}
|
|
385
|
+
let call = calls.get(i) ?? null;
|
|
386
|
+
if (((__v) => __v == null ? "null" : typeof __v)(tc.id) === "string" && tc.id !== "") {
|
|
387
|
+
call.id = tc.id;
|
|
388
|
+
}
|
|
389
|
+
let f = tc["function"] ?? null ?? null;
|
|
390
|
+
if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.name) === "string") {
|
|
391
|
+
call.name = call.name + f.name;
|
|
392
|
+
}
|
|
393
|
+
if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.arguments) === "string" && f.arguments !== "") {
|
|
394
|
+
call.arguments = call.arguments + f.arguments;
|
|
395
|
+
out.push({ toolProgress: { index: i, name: call.name, bytes: call.arguments.length, arguments: call.arguments } }) ?? null;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return out;
|
|
400
|
+
}
|
|
401
|
+
}, result: () => {
|
|
402
|
+
{
|
|
403
|
+
let toolCalls = [];
|
|
404
|
+
let n = 0;
|
|
405
|
+
for (const i of order) {
|
|
406
|
+
let c = calls.get(i) ?? null;
|
|
407
|
+
if (c.name !== "") {
|
|
408
|
+
toolCalls.push({ id: c.id ?? "call_" + (String(n) ?? null), name: c.name, arguments: c.arguments }) ?? null;
|
|
409
|
+
}
|
|
410
|
+
n = n + 1;
|
|
411
|
+
}
|
|
412
|
+
return { text, reasoning, sawDone, toolCalls };
|
|
413
|
+
}
|
|
414
|
+
} };
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
function appendBytes(pending, chunk) {
|
|
418
|
+
{
|
|
419
|
+
let out = pending.slice() ?? null;
|
|
420
|
+
let i = 0;
|
|
421
|
+
while (i < chunk.length) {
|
|
422
|
+
out.push(chunk[i] ?? null) ?? null;
|
|
423
|
+
i = i + 1;
|
|
424
|
+
}
|
|
425
|
+
return out;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
function callHook(hooks, name, value) {
|
|
429
|
+
{
|
|
430
|
+
if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
433
|
+
let h = hooks[name] ?? null;
|
|
434
|
+
if (((__v) => __v == null ? "null" : typeof __v)(h) === "function") {
|
|
435
|
+
h(value) ?? null;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
function createHyperyModel(opts) {
|
|
440
|
+
{
|
|
441
|
+
let idleMs = ((__v) => __v == null ? "null" : typeof __v)(opts.idleTimeoutMs) === "number" ? opts.idleTimeoutMs : DEFAULT_IDLE_TIMEOUT_MS;
|
|
442
|
+
let limit = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRequestBytes) === "number" ? opts.maxRequestBytes : MAX_REQUEST_BYTES;
|
|
443
|
+
let base = ((__v) => __v == null ? "null" : typeof __v)(opts.gatewayUrl) === "string" && opts.gatewayUrl !== "" ? opts.gatewayUrl : "https://hypery.ai";
|
|
444
|
+
if (base.endsWith("/") ?? null) {
|
|
445
|
+
base = base.slice(0, base.length - 1) ?? null;
|
|
446
|
+
}
|
|
447
|
+
return async (messages, tools, hooks, signal, req) => {
|
|
448
|
+
{
|
|
449
|
+
let token = await (resolve(opts.token) ?? null);
|
|
450
|
+
if (((__v) => __v == null ? "null" : typeof __v)(token) !== "string" || token === "") {
|
|
451
|
+
throw agentModelError("Sign in to Hypery to use the agent.", "ai_reauth", 401) ?? null;
|
|
452
|
+
}
|
|
453
|
+
let model = await (resolve(opts.model) ?? null);
|
|
454
|
+
let team = await (resolve(opts.team) ?? null);
|
|
455
|
+
let paymentSource = await (resolve(opts.paymentSource) ?? null);
|
|
456
|
+
let hasTools = (Array.isArray(tools) ?? null) && tools.length > 0;
|
|
457
|
+
let request = { model, messages, stream: true, max_tokens: ((__v) => __v == null ? "null" : typeof __v)(opts.maxTokens) === "number" ? opts.maxTokens : hasTools ? 16384 : 4096 };
|
|
458
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.temperature) === "number") {
|
|
459
|
+
request.temperature = opts.temperature;
|
|
460
|
+
}
|
|
461
|
+
if (hasTools) {
|
|
462
|
+
request.tools = tools;
|
|
463
|
+
let choice = req != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object" ? req.toolChoice ?? null : null;
|
|
464
|
+
request.tool_choice = choice != null ? choice : "auto";
|
|
465
|
+
}
|
|
466
|
+
let body = JSON.stringify(request) ?? null;
|
|
467
|
+
if (body.length > limit) {
|
|
468
|
+
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;
|
|
469
|
+
}
|
|
470
|
+
let headers = { Authorization: "Bearer " + token, "Content-Type": "application/json", Accept: "text/event-stream" };
|
|
471
|
+
if (((__v) => __v == null ? "null" : typeof __v)(team) === "string" && team !== "") {
|
|
472
|
+
headers[HYPERY_TEAM_HEADER] = team;
|
|
473
|
+
}
|
|
474
|
+
if (((__v) => __v == null ? "null" : typeof __v)(paymentSource) === "string" && paymentSource !== "") {
|
|
475
|
+
headers[HYPERY_PAYMENT_SOURCE_HEADER2] = paymentSource;
|
|
476
|
+
}
|
|
477
|
+
let init = { method: "POST", headers, body };
|
|
478
|
+
if (signal != null && ((__v) => __v == null ? "null" : typeof __v)(signal.addEventListener) === "function") {
|
|
479
|
+
init.signal = signal;
|
|
480
|
+
}
|
|
481
|
+
let res = null;
|
|
482
|
+
try {
|
|
483
|
+
{
|
|
484
|
+
res = await (opts.fetch(base + "/api/v1/chat/completions", init) ?? null);
|
|
485
|
+
}
|
|
486
|
+
} catch (err) {
|
|
487
|
+
{
|
|
488
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && err.name === "AbortError") {
|
|
489
|
+
throw err;
|
|
490
|
+
}
|
|
491
|
+
throw agentModelError("Could not reach Hypery. Check your connection.", "network", 0) ?? null;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
if (res.ok !== true || res.body == null) {
|
|
495
|
+
let text = "";
|
|
496
|
+
try {
|
|
497
|
+
{
|
|
498
|
+
text = await (res.text() ?? null);
|
|
499
|
+
}
|
|
500
|
+
} catch (e) {
|
|
501
|
+
{
|
|
502
|
+
text = "";
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
let payload = text;
|
|
506
|
+
try {
|
|
507
|
+
{
|
|
508
|
+
payload = JSON.parse(text) ?? null;
|
|
509
|
+
}
|
|
510
|
+
} catch (e) {
|
|
511
|
+
{
|
|
512
|
+
payload = text;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
throw agentModelError(streamErrorMessage(payload, "The AI request failed (" + (String(res.status) ?? null) + ").") ?? null, errorCodeFor(res.status, payload) ?? null, res.status) ?? null;
|
|
516
|
+
}
|
|
517
|
+
let acc = createStreamAccumulator() ?? null;
|
|
518
|
+
let reader = res.body.getReader() ?? null;
|
|
519
|
+
let pending = [];
|
|
520
|
+
let stopReading = () => {
|
|
521
|
+
{
|
|
522
|
+
if (((__v) => __v == null ? "null" : typeof __v)(reader.cancel) === "function") {
|
|
523
|
+
try {
|
|
524
|
+
{
|
|
525
|
+
reader.cancel() ?? null;
|
|
526
|
+
}
|
|
527
|
+
} catch (e) {
|
|
528
|
+
{
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
while (true) {
|
|
535
|
+
if (signal != null && signal.aborted === true) {
|
|
536
|
+
stopReading() ?? null;
|
|
537
|
+
throw { name: "AbortError", message: "The request was stopped." };
|
|
538
|
+
}
|
|
539
|
+
let next = await (Promise.race([reader.read() ?? null, delay(idleMs) ?? null]) ?? null);
|
|
540
|
+
if (next == null) {
|
|
541
|
+
stopReading() ?? null;
|
|
542
|
+
throw agentModelError("The model stopped responding.", "ai_timeout", 504) ?? null;
|
|
543
|
+
}
|
|
544
|
+
if (next.done === true) {
|
|
545
|
+
break;
|
|
546
|
+
}
|
|
547
|
+
if (next.value == null) {
|
|
548
|
+
continue;
|
|
549
|
+
}
|
|
550
|
+
let bytes = appendBytes(pending, next.value) ?? null;
|
|
551
|
+
let whole = utf8Complete(bytes) ?? null;
|
|
552
|
+
pending = bytes.slice(whole) ?? null;
|
|
553
|
+
let events = [];
|
|
554
|
+
try {
|
|
555
|
+
{
|
|
556
|
+
events = acc.push(utf8Decode(bytes.slice(0, whole) ?? null) ?? null) ?? null;
|
|
557
|
+
}
|
|
558
|
+
} catch (err) {
|
|
559
|
+
{
|
|
560
|
+
stopReading() ?? null;
|
|
561
|
+
throw err;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
for (const e of events) {
|
|
565
|
+
if (((__v) => __v == null ? "null" : typeof __v)(e.textDelta) === "string") {
|
|
566
|
+
callHook(hooks, "onTextDelta", e.textDelta) ?? null;
|
|
567
|
+
}
|
|
568
|
+
if (((__v) => __v == null ? "null" : typeof __v)(e.reasoningDelta) === "string") {
|
|
569
|
+
callHook(hooks, "onReasoningDelta", e.reasoningDelta) ?? null;
|
|
570
|
+
}
|
|
571
|
+
if (e.toolProgress != null) {
|
|
572
|
+
callHook(hooks, "onToolProgress", e.toolProgress) ?? null;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
if (pending.length > 0) {
|
|
577
|
+
acc.push(utf8Decode(pending) ?? null) ?? null;
|
|
578
|
+
}
|
|
579
|
+
acc.push("\n") ?? null;
|
|
580
|
+
let r = acc.result() ?? null;
|
|
581
|
+
if (!r.sawDone && r.text === "" && r.toolCalls.length === 0) {
|
|
582
|
+
throw agentModelError("The response was cut off before it started. Try again.", "ai_upstream", 502) ?? null;
|
|
583
|
+
}
|
|
584
|
+
return { text: r.text, reasoning: r.reasoning, toolCalls: r.toolCalls };
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
591
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
592
|
+
|
|
593
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
594
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
595
|
+
|
|
596
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/context.js
|
|
597
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
598
|
+
var RENDER_TURN_PREFIX = "Result of ";
|
|
599
|
+
var KEEP_IMAGE_TURNS = 2;
|
|
600
|
+
function sizeOf(messages) {
|
|
601
|
+
{
|
|
602
|
+
return (JSON.stringify(messages) ?? null).length;
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
function isRenderTurn(m) {
|
|
606
|
+
{
|
|
607
|
+
if (m.role !== "user" || !(Array.isArray(m.content) ?? null) || m.content.length === 0) {
|
|
608
|
+
return false;
|
|
609
|
+
}
|
|
610
|
+
let first = m.content[0] ?? null;
|
|
611
|
+
return first.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(first.text) === "string" && (first.text.startsWith(RENDER_TURN_PREFIX) ?? null);
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
function countImages(parts) {
|
|
615
|
+
{
|
|
616
|
+
return (parts.filter((p) => {
|
|
617
|
+
{
|
|
618
|
+
return p.type === "image_url";
|
|
619
|
+
}
|
|
620
|
+
}) ?? null).length;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
function textOf(parts) {
|
|
624
|
+
{
|
|
625
|
+
return ((parts.filter((p) => {
|
|
626
|
+
{
|
|
627
|
+
return p.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(p.text) === "string" && p.text !== "";
|
|
628
|
+
}
|
|
629
|
+
}) ?? null).map((p) => {
|
|
630
|
+
{
|
|
631
|
+
return p.text;
|
|
632
|
+
}
|
|
633
|
+
}) ?? null).join(" ") ?? null;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
function imagesLabel(n) {
|
|
637
|
+
{
|
|
638
|
+
return n === 1 ? "image" : (String(n) ?? null) + " images";
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
function pruneOldImages(messages, keep) {
|
|
642
|
+
{
|
|
643
|
+
let limit = ((__v) => __v == null ? "null" : typeof __v)(keep) === "number" ? keep : KEEP_IMAGE_TURNS;
|
|
644
|
+
let seen = 0;
|
|
645
|
+
let i = messages.length - 1;
|
|
646
|
+
while (i >= 0) {
|
|
647
|
+
let m = messages[i] ?? null;
|
|
648
|
+
if ((isRenderTurn(m) ?? null) && (countImages(m.content) ?? null) > 0) {
|
|
649
|
+
seen = seen + 1;
|
|
650
|
+
if (seen > limit) {
|
|
651
|
+
let note = (textOf(m.content) ?? null) + " [" + (imagesLabel(countImages(m.content) ?? null) ?? null) + " omitted: superseded by a later view.]";
|
|
652
|
+
messages[i] = { ...m, content: note.trim() ?? null };
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
i = i - 1;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
function fitImagesToBudget(messages, budget) {
|
|
660
|
+
{
|
|
661
|
+
if ((sizeOf(messages) ?? null) <= budget) {
|
|
662
|
+
return;
|
|
663
|
+
}
|
|
664
|
+
let i = 0;
|
|
665
|
+
while (i < messages.length && (sizeOf(messages) ?? null) > budget) {
|
|
666
|
+
let m = messages[i] ?? null;
|
|
667
|
+
if (isRenderTurn(m) ?? null) {
|
|
668
|
+
let parts = m.content.slice() ?? null;
|
|
669
|
+
let dropped = 0;
|
|
670
|
+
let j = parts.length - 1;
|
|
671
|
+
while (j >= 0 && (sizeOf(messages) ?? null) > budget) {
|
|
672
|
+
if ((parts[j] ?? null).type === "image_url") {
|
|
673
|
+
parts.splice(j, 1) ?? null;
|
|
674
|
+
dropped = dropped + 1;
|
|
675
|
+
messages[i] = { ...m, content: parts.slice() ?? null };
|
|
676
|
+
}
|
|
677
|
+
j = j - 1;
|
|
678
|
+
}
|
|
679
|
+
if (dropped > 0) {
|
|
680
|
+
let label = dropped === 1 ? "1 image" : (String(dropped) ?? null) + " images";
|
|
681
|
+
let note = (textOf(parts) ?? null) + " [" + label + " omitted to keep the request under the size limit.]";
|
|
682
|
+
messages[i] = { ...m, content: note.trim() ?? null };
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
i = i + 1;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
function safeTailStart(messages, want) {
|
|
690
|
+
{
|
|
691
|
+
let i = Math.max(1, messages.length - want) ?? null;
|
|
692
|
+
while (i < messages.length && (messages[i] ?? null).role === "tool") {
|
|
693
|
+
i = i + 1;
|
|
694
|
+
}
|
|
695
|
+
return i;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
async function compactTranscript(messages, opts) {
|
|
699
|
+
{
|
|
700
|
+
if ((sizeOf(messages) ?? null) <= opts.maxChars) {
|
|
701
|
+
return false;
|
|
702
|
+
}
|
|
703
|
+
let head = messages.length > 0 && (messages[0] ?? null).role === "system" ? 1 : 0;
|
|
704
|
+
let firstUser = -1;
|
|
705
|
+
let k = head;
|
|
706
|
+
while (k < messages.length && firstUser < 0) {
|
|
707
|
+
if ((messages[k] ?? null).role === "user") {
|
|
708
|
+
firstUser = k;
|
|
709
|
+
}
|
|
710
|
+
k = k + 1;
|
|
711
|
+
}
|
|
712
|
+
let keepFrom = firstUser >= 0 ? firstUser + 1 : head;
|
|
713
|
+
let tail = safeTailStart(messages, ((__v) => __v == null ? "null" : typeof __v)(opts.keepRecent) === "number" ? opts.keepRecent : 12) ?? null;
|
|
714
|
+
if (tail <= keepFrom) {
|
|
715
|
+
return false;
|
|
716
|
+
}
|
|
717
|
+
let dropped = messages.slice(keepFrom, tail) ?? null;
|
|
718
|
+
let summary = "";
|
|
719
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.summarize) === "function") {
|
|
720
|
+
try {
|
|
721
|
+
{
|
|
722
|
+
summary = await (opts.summarize(dropped) ?? null);
|
|
723
|
+
}
|
|
724
|
+
} catch (e) {
|
|
725
|
+
{
|
|
726
|
+
summary = "";
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
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.]";
|
|
731
|
+
messages.splice(keepFrom, dropped.length, { role: "user", content }) ?? null;
|
|
732
|
+
return true;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
737
|
+
var DEFAULT_MAX_ROUNDS = 40;
|
|
738
|
+
var DEFAULT_MAX_PARALLEL = 4;
|
|
739
|
+
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.";
|
|
740
|
+
var RENDER_TURN_PREFIX2 = "Result of ";
|
|
741
|
+
var RECOVERABLE_WORDS = ["timeout", "timed out", "stalled", "network", "fetch failed", "econnreset", "socket", "stream"];
|
|
742
|
+
function batchCalls(calls, isParallel, max) {
|
|
743
|
+
{
|
|
744
|
+
let batches = [];
|
|
745
|
+
for (const call of calls) {
|
|
746
|
+
let last = batches.length > 0 ? batches[batches.length - 1] ?? null : null;
|
|
747
|
+
let parallel = isParallel(call.name) ?? null;
|
|
748
|
+
if (parallel && last != null && last.length < max && (isParallel((last[0] ?? null).name) ?? null)) {
|
|
749
|
+
last.push(call) ?? null;
|
|
750
|
+
} else {
|
|
751
|
+
batches.push([call]) ?? null;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
return batches;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
function truncateResult(text, max) {
|
|
758
|
+
{
|
|
759
|
+
if (text.length <= max) {
|
|
760
|
+
return text;
|
|
761
|
+
}
|
|
762
|
+
return (text.slice(0, max) ?? null) + "\n\u2026[truncated " + (String(text.length - max) ?? null) + " characters]";
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
function defaultIsRecoverable(err) {
|
|
766
|
+
{
|
|
767
|
+
if (err == null || ((__v) => __v == null ? "null" : typeof __v)(err) !== "object") {
|
|
768
|
+
return false;
|
|
769
|
+
}
|
|
770
|
+
if (((__v) => __v == null ? "null" : typeof __v)(err.status) === "number") {
|
|
771
|
+
return err.status >= 500 || err.status === 408 || err.status === 429;
|
|
772
|
+
}
|
|
773
|
+
let text = ((String(err.name ?? "") ?? null) + " " + (String(err.code ?? "") ?? null) + " " + (String(err.message ?? "") ?? null)).toLowerCase() ?? null;
|
|
774
|
+
return RECOVERABLE_WORDS.some((w) => {
|
|
775
|
+
{
|
|
776
|
+
return text.includes(w) ?? null;
|
|
777
|
+
}
|
|
778
|
+
}) ?? null;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
function errorMessage(err) {
|
|
782
|
+
{
|
|
783
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
784
|
+
return err.message;
|
|
785
|
+
}
|
|
786
|
+
return String(err) ?? null;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
function repairTranscript(messages) {
|
|
790
|
+
{
|
|
791
|
+
let i = 0;
|
|
792
|
+
while (i < messages.length) {
|
|
793
|
+
let m = messages[i] ?? null;
|
|
794
|
+
if (m.role === "assistant" && (Array.isArray(m.tool_calls) ?? null) && m.tool_calls.length > 0) {
|
|
795
|
+
let j = i + 1;
|
|
796
|
+
let answered = /* @__PURE__ */ new Set() ?? null;
|
|
797
|
+
while (j < messages.length && (messages[j] ?? null).role === "tool") {
|
|
798
|
+
answered.add((messages[j] ?? null).tool_call_id ?? "") ?? null;
|
|
799
|
+
j = j + 1;
|
|
800
|
+
}
|
|
801
|
+
let missing = m.tool_calls.filter((c) => {
|
|
802
|
+
{
|
|
803
|
+
return !(answered.has(c.id) ?? null);
|
|
804
|
+
}
|
|
805
|
+
}) ?? null;
|
|
806
|
+
if (missing.length > 0) {
|
|
807
|
+
let fillers = missing.map((c) => {
|
|
808
|
+
{
|
|
809
|
+
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 };
|
|
810
|
+
}
|
|
811
|
+
}) ?? null;
|
|
812
|
+
messages.splice(j, 0, ...fillers) ?? null;
|
|
813
|
+
i = j + missing.length - 1;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
i = i + 1;
|
|
817
|
+
}
|
|
818
|
+
return messages;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
function hook(hooks, name) {
|
|
822
|
+
{
|
|
823
|
+
if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
|
|
824
|
+
return null;
|
|
825
|
+
}
|
|
826
|
+
let h = hooks[name] ?? null;
|
|
827
|
+
return ((__v) => __v == null ? "null" : typeof __v)(h) === "function" ? h : null;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
async function runAgentLoop(opts) {
|
|
831
|
+
{
|
|
832
|
+
let maxRounds = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRounds) === "number" ? opts.maxRounds : DEFAULT_MAX_ROUNDS;
|
|
833
|
+
let maxResultChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxResultChars) === "number" ? opts.maxResultChars : 8e3;
|
|
834
|
+
let maxParallel = ((__v) => __v == null ? "null" : typeof __v)(opts.maxParallel) === "number" ? opts.maxParallel : DEFAULT_MAX_PARALLEL;
|
|
835
|
+
let hooks = opts.hooks ?? null;
|
|
836
|
+
let specs = opts.tools.map((t) => {
|
|
837
|
+
{
|
|
838
|
+
return t.spec;
|
|
839
|
+
}
|
|
840
|
+
}) ?? null;
|
|
841
|
+
let parallelNames = new Set((opts.tools.filter((t) => {
|
|
842
|
+
{
|
|
843
|
+
return t.readOnly === true;
|
|
844
|
+
}
|
|
845
|
+
}) ?? null).map((t) => {
|
|
846
|
+
{
|
|
847
|
+
return (t.spec["function"] ?? null).name;
|
|
848
|
+
}
|
|
849
|
+
}) ?? null) ?? null;
|
|
850
|
+
let actingNames = new Set((opts.tools.filter((t) => {
|
|
851
|
+
{
|
|
852
|
+
return ((__v) => __v == null ? "null" : typeof __v)(t.acts) === "boolean" ? t.acts : t.readOnly !== true;
|
|
853
|
+
}
|
|
854
|
+
}) ?? null).map((t) => {
|
|
855
|
+
{
|
|
856
|
+
return (t.spec["function"] ?? null).name;
|
|
857
|
+
}
|
|
858
|
+
}) ?? null) ?? null;
|
|
859
|
+
let require2 = null;
|
|
860
|
+
if (opts.requireAction === true) {
|
|
861
|
+
require2 = {};
|
|
862
|
+
}
|
|
863
|
+
if (opts.requireAction != null && ((__v) => __v == null ? "null" : typeof __v)(opts.requireAction) === "object") {
|
|
864
|
+
require2 = opts.requireAction;
|
|
865
|
+
}
|
|
866
|
+
let resume = opts.resumeState ?? {};
|
|
867
|
+
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;
|
|
868
|
+
let signal = opts.signal ?? null;
|
|
869
|
+
let isStopped = () => {
|
|
870
|
+
{
|
|
871
|
+
if (signal != null && signal.aborted === true) {
|
|
872
|
+
return true;
|
|
873
|
+
}
|
|
874
|
+
return ((__v) => __v == null ? "null" : typeof __v)(opts.stopped) === "function" && (opts.stopped() ?? null) === true;
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
let messages = repairTranscript(opts.messages.slice() ?? null) ?? null;
|
|
878
|
+
let text = "";
|
|
879
|
+
let acted = resume.acted === true;
|
|
880
|
+
let retries = ((__v) => __v == null ? "null" : typeof __v)(opts.modelRetries) === "number" ? opts.modelRetries : 2;
|
|
881
|
+
let recoverable = ((__v) => __v == null ? "null" : typeof __v)(opts.isRecoverable) === "function" ? opts.isRecoverable : defaultIsRecoverable;
|
|
882
|
+
let ctx = opts.context ?? {};
|
|
883
|
+
let maxRequestChars = ((__v) => __v == null ? "null" : typeof __v)(ctx.maxRequestChars) === "number" ? ctx.maxRequestChars : 43e5;
|
|
884
|
+
let save = async (round2, done) => {
|
|
885
|
+
{
|
|
886
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
|
|
887
|
+
await (opts.checkpoint({ messages: messages.slice() ?? null, round: round2, acted, nudgesLeft, done }) ?? null);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
};
|
|
891
|
+
let drain = () => {
|
|
892
|
+
{
|
|
893
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.drainNotifications) !== "function") {
|
|
894
|
+
return [];
|
|
895
|
+
}
|
|
896
|
+
let notes = opts.drainNotifications() ?? null;
|
|
897
|
+
return Array.isArray(notes) ?? null ? notes : [];
|
|
898
|
+
}
|
|
899
|
+
};
|
|
900
|
+
let modelHooks = { onTextDelta: hook(hooks, "onTextDelta") ?? null, onReasoningDelta: hook(hooks, "onReasoningDelta") ?? null, onToolProgress: hook(hooks, "onToolProgress") ?? null };
|
|
901
|
+
let choiceFor = (round2) => {
|
|
902
|
+
{
|
|
903
|
+
let c = opts.toolChoice ?? null;
|
|
904
|
+
if (((__v) => __v == null ? "null" : typeof __v)(c) === "function") {
|
|
905
|
+
c = c(round2) ?? null ?? null;
|
|
906
|
+
}
|
|
907
|
+
return c;
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
let call = async (msgs, tools, choice) => {
|
|
911
|
+
{
|
|
912
|
+
let attempt = 0;
|
|
913
|
+
while (true) {
|
|
914
|
+
try {
|
|
915
|
+
{
|
|
916
|
+
if (choice == null || tools.length === 0) {
|
|
917
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal) ?? null);
|
|
918
|
+
}
|
|
919
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal, { toolChoice: choice }) ?? null);
|
|
920
|
+
}
|
|
921
|
+
} catch (err) {
|
|
922
|
+
{
|
|
923
|
+
if ((isStopped() ?? null) || attempt >= retries || !(recoverable(err) ?? null)) {
|
|
924
|
+
throw err;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
attempt = attempt + 1;
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
let round = ((__v) => __v == null ? "null" : typeof __v)(resume.round) === "number" ? resume.round : 0;
|
|
933
|
+
while (maxRounds === 0 || round < maxRounds) {
|
|
934
|
+
if (isStopped() ?? null) {
|
|
935
|
+
await (save(round, true) ?? null);
|
|
936
|
+
return { messages, text, rounds: round, exhausted: false, stopped: true, acted };
|
|
937
|
+
}
|
|
938
|
+
for (const note of drain() ?? null) {
|
|
939
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
940
|
+
}
|
|
941
|
+
pruneOldImages(messages, ctx.keepImageTurns ?? null) ?? null;
|
|
942
|
+
if (ctx.compact != null && ((__v) => __v == null ? "null" : typeof __v)(ctx.compact) === "object") {
|
|
943
|
+
await (compactTranscript(messages, ctx.compact) ?? null);
|
|
944
|
+
}
|
|
945
|
+
fitImagesToBudget(messages, maxRequestChars - (JSON.stringify(specs) ?? null).length) ?? null;
|
|
946
|
+
let onStart = hook(hooks, "onAssistantStart") ?? null;
|
|
947
|
+
if (onStart != null) {
|
|
948
|
+
onStart(round) ?? null;
|
|
949
|
+
}
|
|
950
|
+
let turn = await (call(messages, specs, choiceFor(round) ?? null) ?? null);
|
|
951
|
+
text = turn.text;
|
|
952
|
+
let toolCalls = Array.isArray(turn.toolCalls) ?? null ? turn.toolCalls : [];
|
|
953
|
+
if (toolCalls.length > 0) {
|
|
954
|
+
messages.push({ role: "assistant", content: turn.text, tool_calls: toolCalls.map((c) => {
|
|
955
|
+
{
|
|
956
|
+
return { id: c.id, type: "function", function: { name: c.name, arguments: c.arguments } };
|
|
957
|
+
}
|
|
958
|
+
}) ?? null }) ?? null;
|
|
959
|
+
} else {
|
|
960
|
+
messages.push({ role: "assistant", content: turn.text }) ?? null;
|
|
961
|
+
}
|
|
962
|
+
if (toolCalls.length === 0) {
|
|
963
|
+
let onEnd = hook(hooks, "onRoundEnd") ?? null;
|
|
964
|
+
if (onEnd != null) {
|
|
965
|
+
onEnd(round) ?? null;
|
|
966
|
+
}
|
|
967
|
+
let late = drain() ?? null;
|
|
968
|
+
if (late.length > 0) {
|
|
969
|
+
for (const note of late) {
|
|
970
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
971
|
+
}
|
|
972
|
+
round = round + 1;
|
|
973
|
+
continue;
|
|
974
|
+
}
|
|
975
|
+
if (require2 != null && !acted && nudgesLeft > 0 && actingNames.size > 0) {
|
|
976
|
+
nudgesLeft = nudgesLeft - 1;
|
|
977
|
+
let nudge = ((__v) => __v == null ? "null" : typeof __v)(require2.message) === "string" ? require2.message : DEFAULT_ACTION_NUDGE;
|
|
978
|
+
let onNudge = hook(hooks, "onNudge") ?? null;
|
|
979
|
+
if (onNudge != null) {
|
|
980
|
+
onNudge(nudge) ?? null;
|
|
981
|
+
}
|
|
982
|
+
messages.push({ role: "user", content: nudge }) ?? null;
|
|
983
|
+
await (save(round + 1, false) ?? null);
|
|
984
|
+
round = round + 1;
|
|
985
|
+
continue;
|
|
986
|
+
}
|
|
987
|
+
await (save(round + 1, true) ?? null);
|
|
988
|
+
return { messages, text, rounds: round + 1, exhausted: false, stopped: false, acted };
|
|
989
|
+
}
|
|
990
|
+
let calls = toolCalls.map((c) => {
|
|
991
|
+
{
|
|
992
|
+
return { id: c.id, name: c.name, argsText: c.arguments };
|
|
993
|
+
}
|
|
994
|
+
}) ?? null;
|
|
995
|
+
let imageTurns = [];
|
|
996
|
+
for (const batch of batchCalls(calls, (n) => {
|
|
997
|
+
{
|
|
998
|
+
return parallelNames.has(n) ?? null;
|
|
999
|
+
}
|
|
1000
|
+
}, maxParallel) ?? null) {
|
|
1001
|
+
if (isStopped() ?? null) {
|
|
1002
|
+
for (const c of calls) {
|
|
1003
|
+
let answered = messages.some((m) => {
|
|
1004
|
+
{
|
|
1005
|
+
return m.role === "tool" && m.tool_call_id === c.id;
|
|
1006
|
+
}
|
|
1007
|
+
}) ?? null;
|
|
1008
|
+
if (!answered) {
|
|
1009
|
+
messages.push({ role: "tool", tool_call_id: c.id, name: c.name, content: JSON.stringify({ error: "stopped" }) ?? null }) ?? null;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
await (save(round + 1, true) ?? null);
|
|
1013
|
+
return { messages, text, rounds: round + 1, exhausted: false, stopped: true, acted };
|
|
1014
|
+
}
|
|
1015
|
+
let onToolStart = hook(hooks, "onToolStart") ?? null;
|
|
1016
|
+
if (onToolStart != null) {
|
|
1017
|
+
for (const info of batch) {
|
|
1018
|
+
onToolStart(info) ?? null;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
let runs2 = await (Promise.all(batch.map(async (info) => {
|
|
1022
|
+
{
|
|
1023
|
+
try {
|
|
1024
|
+
{
|
|
1025
|
+
return await (opts.execTool(info) ?? null);
|
|
1026
|
+
}
|
|
1027
|
+
} catch (err) {
|
|
1028
|
+
{
|
|
1029
|
+
let message = errorMessage(err) ?? null;
|
|
1030
|
+
return { id: info.id, name: info.name, argsText: info.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }) ?? null };
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}) ?? null) ?? null);
|
|
1035
|
+
let onToolEnd = hook(hooks, "onToolEnd") ?? null;
|
|
1036
|
+
for (const run of runs2) {
|
|
1037
|
+
let actedHere = ((__v) => __v == null ? "null" : typeof __v)(run.acted) === "boolean" ? run.acted : actingNames.has(run.name) ?? null;
|
|
1038
|
+
if (run.ok === true && actedHere) {
|
|
1039
|
+
acted = true;
|
|
1040
|
+
}
|
|
1041
|
+
if (onToolEnd != null) {
|
|
1042
|
+
onToolEnd(run) ?? null;
|
|
1043
|
+
}
|
|
1044
|
+
messages.push({ role: "tool", tool_call_id: run.id, name: run.name, content: truncateResult(run.content, maxResultChars) ?? null }) ?? null;
|
|
1045
|
+
if ((Array.isArray(run.images) ?? null) && run.images.length > 0) {
|
|
1046
|
+
let label = run.images.length === 1 ? "the rendered view" : (String(run.images.length) ?? null) + " rendered views";
|
|
1047
|
+
let parts = [{ type: "text", text: RENDER_TURN_PREFIX2 + run.name + ": " + label + "." }];
|
|
1048
|
+
for (const url of run.images) {
|
|
1049
|
+
parts.push({ type: "image_url", image_url: { url } }) ?? null;
|
|
1050
|
+
}
|
|
1051
|
+
imageTurns.push({ role: "user", content: parts }) ?? null;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
for (const m of imageTurns) {
|
|
1056
|
+
messages.push(m) ?? null;
|
|
1057
|
+
}
|
|
1058
|
+
let onRoundEnd = hook(hooks, "onRoundEnd") ?? null;
|
|
1059
|
+
if (onRoundEnd != null) {
|
|
1060
|
+
onRoundEnd(round) ?? null;
|
|
1061
|
+
}
|
|
1062
|
+
await (save(round + 1, false) ?? null);
|
|
1063
|
+
round = round + 1;
|
|
1064
|
+
}
|
|
1065
|
+
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;
|
|
1066
|
+
let final = await (call(messages, [], null) ?? null);
|
|
1067
|
+
messages.push({ role: "assistant", content: final.text }) ?? null;
|
|
1068
|
+
await (save(maxRounds, true) ?? null);
|
|
1069
|
+
return { messages, text: final.text, rounds: maxRounds, exhausted: true, stopped: false, acted };
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
1074
|
+
var delay2 = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
|
|
1075
|
+
var REPORT_TOOL = "report_to_parent";
|
|
1076
|
+
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"] } } } };
|
|
1077
|
+
var WAIT_STEP_MS = 25;
|
|
1078
|
+
function isBusy(s) {
|
|
1079
|
+
{
|
|
1080
|
+
return s != null && (s.status === "running" || s.status === "queued");
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
function plainStopControl() {
|
|
1084
|
+
{
|
|
1085
|
+
let flag = { aborted: false };
|
|
1086
|
+
return { signal: flag, stop: () => {
|
|
1087
|
+
{
|
|
1088
|
+
flag.aborted = true;
|
|
1089
|
+
}
|
|
1090
|
+
} };
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
function allSessions(sessions) {
|
|
1094
|
+
{
|
|
1095
|
+
let out = [];
|
|
1096
|
+
for (const s of sessions.values() ?? null) {
|
|
1097
|
+
out.push(s) ?? null;
|
|
1098
|
+
}
|
|
1099
|
+
return out;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
function errorMessage2(err) {
|
|
1103
|
+
{
|
|
1104
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1105
|
+
return err.message;
|
|
1106
|
+
}
|
|
1107
|
+
return String(err) ?? null;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
function createAgentRuntime(host) {
|
|
1111
|
+
{
|
|
1112
|
+
let sessions = /* @__PURE__ */ new Map() ?? null;
|
|
1113
|
+
let controls = /* @__PURE__ */ new Map() ?? null;
|
|
1114
|
+
let parentQueue = [];
|
|
1115
|
+
let loaded = false;
|
|
1116
|
+
let loading = null;
|
|
1117
|
+
let active = 0;
|
|
1118
|
+
let waiting = [];
|
|
1119
|
+
let listeners = [];
|
|
1120
|
+
let pendingSaves = 0;
|
|
1121
|
+
let maxConcurrent = ((__v) => __v == null ? "null" : typeof __v)(host.maxConcurrent) === "number" ? host.maxConcurrent : 4;
|
|
1122
|
+
let now = () => {
|
|
1123
|
+
{
|
|
1124
|
+
return ((__v) => __v == null ? "null" : typeof __v)(host.now) === "function" ? host.now() ?? null : Date.now() ?? null;
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
let changed = () => {
|
|
1128
|
+
{
|
|
1129
|
+
if (((__v) => __v == null ? "null" : typeof __v)(host.onChange) === "function") {
|
|
1130
|
+
host.onChange() ?? null;
|
|
1131
|
+
}
|
|
1132
|
+
for (const l of listeners.slice() ?? null) {
|
|
1133
|
+
l() ?? null;
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
let emit = (e) => {
|
|
1138
|
+
{
|
|
1139
|
+
if (((__v) => __v == null ? "null" : typeof __v)(host.onEvent) === "function") {
|
|
1140
|
+
host.onEvent(e) ?? null;
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
};
|
|
1144
|
+
let sessionEvent = (s) => {
|
|
1145
|
+
{
|
|
1146
|
+
emit({ type: "session", sessionId: s.id, status: s.status, profile: s.profile, description: s.description }) ?? null;
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
let persist = (s) => {
|
|
1150
|
+
{
|
|
1151
|
+
changed() ?? null;
|
|
1152
|
+
if (host.store == null || ((__v) => __v == null ? "null" : typeof __v)(host.store) !== "object") {
|
|
1153
|
+
return;
|
|
1154
|
+
}
|
|
1155
|
+
pendingSaves = pendingSaves + 1;
|
|
1156
|
+
let save = async () => {
|
|
1157
|
+
{
|
|
1158
|
+
try {
|
|
1159
|
+
{
|
|
1160
|
+
await (host.store.save(s) ?? null);
|
|
1161
|
+
}
|
|
1162
|
+
} catch (e) {
|
|
1163
|
+
{
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
pendingSaves = pendingSaves - 1;
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
save() ?? null;
|
|
1170
|
+
}
|
|
1171
|
+
};
|
|
1172
|
+
let profileById = (id) => {
|
|
1173
|
+
{
|
|
1174
|
+
let found = (host.profiles() ?? null).filter((p) => {
|
|
1175
|
+
{
|
|
1176
|
+
return p.id === id;
|
|
1177
|
+
}
|
|
1178
|
+
}) ?? null;
|
|
1179
|
+
return found.length > 0 ? found[0] ?? null : null;
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
let report = (fromId, text, question) => {
|
|
1183
|
+
{
|
|
1184
|
+
let s = sessions.get(fromId) ?? null ?? null;
|
|
1185
|
+
let who = "agent " + fromId + (s != null ? " (" + s.profile + ")" : "");
|
|
1186
|
+
let asks = question === true;
|
|
1187
|
+
parentQueue.push(asks ? "QUESTION from " + who + " \u2014 it needs your answer (send_message " + fromId + "):\n" + text : "Report from " + who + ":\n" + text) ?? null;
|
|
1188
|
+
emit({ type: "report", sessionId: fromId, message: text, question: asks }) ?? null;
|
|
1189
|
+
changed() ?? null;
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
let run = async (session2, profile, prompt, forceReadOnly, parentSignal, fresh) => {
|
|
1193
|
+
{
|
|
1194
|
+
let control = ((__v) => __v == null ? "null" : typeof __v)(host.createSignal) === "function" ? host.createSignal() ?? null : plainStopControl() ?? null;
|
|
1195
|
+
controls.set(session2.id, control) ?? null;
|
|
1196
|
+
if (parentSignal != null) {
|
|
1197
|
+
if (parentSignal.aborted === true) {
|
|
1198
|
+
control.stop() ?? null;
|
|
1199
|
+
} else if (((__v) => __v == null ? "null" : typeof __v)(parentSignal.addEventListener) === "function") {
|
|
1200
|
+
parentSignal.addEventListener("abort", () => {
|
|
1201
|
+
{
|
|
1202
|
+
control.stop() ?? null;
|
|
1203
|
+
}
|
|
1204
|
+
}) ?? null;
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
let ctx = { session: session2, profile, readOnly: forceReadOnly || profile.readOnly === true, signal: control.signal };
|
|
1208
|
+
let tools = (host.childTools(ctx) ?? null).concat([REPORT_SPEC]) ?? null;
|
|
1209
|
+
let childModel = ((__v) => __v == null ? "null" : typeof __v)(host.childModel) === "function" ? host.childModel(ctx) ?? null : null;
|
|
1210
|
+
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;
|
|
1211
|
+
let ok = true;
|
|
1212
|
+
let summary = "";
|
|
1213
|
+
let rounds = 0;
|
|
1214
|
+
let wasStopped = () => {
|
|
1215
|
+
{
|
|
1216
|
+
return control.signal.aborted === true || parentSignal != null && parentSignal.aborted === true;
|
|
1217
|
+
}
|
|
1218
|
+
};
|
|
1219
|
+
try {
|
|
1220
|
+
{
|
|
1221
|
+
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;
|
|
1222
|
+
let outcome = await (runAgentLoop({ messages, tools, callModel: ((__v) => __v == null ? "null" : typeof __v)(childModel) === "function" ? childModel : host.callModel, signal: control.signal, stopped: () => {
|
|
1223
|
+
{
|
|
1224
|
+
return parentSignal != null && parentSignal.aborted === true;
|
|
1225
|
+
}
|
|
1226
|
+
}, maxRounds: budget, drainNotifications: () => {
|
|
1227
|
+
{
|
|
1228
|
+
return (session2.inbox.splice(0, session2.inbox.length) ?? null).map((t) => {
|
|
1229
|
+
{
|
|
1230
|
+
return "Message from the main agent:\n" + t;
|
|
1231
|
+
}
|
|
1232
|
+
}) ?? null;
|
|
1233
|
+
}
|
|
1234
|
+
}, execTool: async (call) => {
|
|
1235
|
+
{
|
|
1236
|
+
if (call.name === REPORT_TOOL) {
|
|
1237
|
+
let args = {};
|
|
1238
|
+
try {
|
|
1239
|
+
{
|
|
1240
|
+
args = JSON.parse(call.argsText === "" ? "{}" : call.argsText) ?? null;
|
|
1241
|
+
}
|
|
1242
|
+
} catch (e) {
|
|
1243
|
+
{
|
|
1244
|
+
args = {};
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
report(session2.id, String(args.message ?? "") ?? null, args.question === true) ?? null;
|
|
1248
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: "reported", content: JSON.stringify({ ok: true }) ?? null };
|
|
1249
|
+
}
|
|
1250
|
+
return await (host.execChildTool(call, ctx) ?? null);
|
|
1251
|
+
}
|
|
1252
|
+
}, requireAction: fresh && !ctx.readOnly, hooks: { onToolStart: (c) => {
|
|
1253
|
+
{
|
|
1254
|
+
emit({ type: "tool-start", sessionId: session2.id, name: c.name }) ?? null;
|
|
1255
|
+
}
|
|
1256
|
+
}, onToolEnd: (r) => {
|
|
1257
|
+
{
|
|
1258
|
+
emit({ type: "tool-end", sessionId: session2.id, name: r.name, ok: r.ok, summary: r.summary }) ?? null;
|
|
1259
|
+
}
|
|
1260
|
+
}, onTextDelta: (d) => {
|
|
1261
|
+
{
|
|
1262
|
+
emit({ type: "text", sessionId: session2.id, delta: d }) ?? null;
|
|
1263
|
+
}
|
|
1264
|
+
}, onNudge: (m) => {
|
|
1265
|
+
{
|
|
1266
|
+
emit({ type: "nudge", sessionId: session2.id, message: m }) ?? null;
|
|
1267
|
+
}
|
|
1268
|
+
} } }) ?? null);
|
|
1269
|
+
session2.transcript = outcome.messages;
|
|
1270
|
+
rounds = outcome.rounds;
|
|
1271
|
+
let said = outcome.text.trim() ?? null;
|
|
1272
|
+
summary = said !== "" ? said : outcome.stopped ? "(stopped)" : "(finished without a summary)";
|
|
1273
|
+
ok = !outcome.stopped;
|
|
1274
|
+
}
|
|
1275
|
+
} catch (err) {
|
|
1276
|
+
{
|
|
1277
|
+
ok = false;
|
|
1278
|
+
summary = wasStopped() ?? null ? "(stopped)" : "(agent error: " + (errorMessage2(err) ?? null) + ")";
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
controls.delete(session2.id) ?? null;
|
|
1282
|
+
session2.rounds = session2.rounds + rounds;
|
|
1283
|
+
if (session2.status === "running") {
|
|
1284
|
+
session2.status = ok ? "done" : wasStopped() ?? null ? "stopped" : "error";
|
|
1285
|
+
session2.summary = summary;
|
|
1286
|
+
session2.endedAt = now() ?? null;
|
|
1287
|
+
} else {
|
|
1288
|
+
session2.summary = summary;
|
|
1289
|
+
}
|
|
1290
|
+
if (session2.background && session2.status !== "stopped") {
|
|
1291
|
+
parentQueue.push("Agent " + session2.id + " (" + session2.profile + ") " + (ok ? "finished" : "failed") + ":\n" + summary) ?? null;
|
|
1292
|
+
}
|
|
1293
|
+
sessionEvent(session2) ?? null;
|
|
1294
|
+
persist(session2) ?? null;
|
|
1295
|
+
return { ok, summary, rounds };
|
|
1296
|
+
}
|
|
1297
|
+
};
|
|
1298
|
+
let takeNext = () => {
|
|
1299
|
+
{
|
|
1300
|
+
while (waiting.length > 0) {
|
|
1301
|
+
let next = waiting.shift() ?? null;
|
|
1302
|
+
if (next.session.status === "queued") {
|
|
1303
|
+
next.session.status = "running";
|
|
1304
|
+
sessionEvent(next.session) ?? null;
|
|
1305
|
+
changed() ?? null;
|
|
1306
|
+
return next;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
return null;
|
|
1310
|
+
}
|
|
1311
|
+
};
|
|
1312
|
+
let runSlot = (first) => {
|
|
1313
|
+
{
|
|
1314
|
+
((f) => Promise.resolve().then(() => f()))(async () => {
|
|
1315
|
+
{
|
|
1316
|
+
let job = first;
|
|
1317
|
+
while (job != null) {
|
|
1318
|
+
try {
|
|
1319
|
+
{
|
|
1320
|
+
if (job.session.status !== "stopped") {
|
|
1321
|
+
await (job.go() ?? null);
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
} catch (e) {
|
|
1325
|
+
{
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
job = takeNext() ?? null;
|
|
1329
|
+
if (job == null) {
|
|
1330
|
+
active = Math.max(0, active - 1) ?? null;
|
|
1331
|
+
if (waiting.length > 0 && active < maxConcurrent) {
|
|
1332
|
+
active = active + 1;
|
|
1333
|
+
job = takeNext() ?? null;
|
|
1334
|
+
if (job == null) {
|
|
1335
|
+
active = Math.max(0, active - 1) ?? null;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}) ?? null;
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
let startBackground = (session2, go) => {
|
|
1345
|
+
{
|
|
1346
|
+
if (active < maxConcurrent) {
|
|
1347
|
+
active = active + 1;
|
|
1348
|
+
runSlot({ session: session2, go }) ?? null;
|
|
1349
|
+
return;
|
|
1350
|
+
}
|
|
1351
|
+
session2.status = "queued";
|
|
1352
|
+
sessionEvent(session2) ?? null;
|
|
1353
|
+
changed() ?? null;
|
|
1354
|
+
waiting.push({ session: session2, go }) ?? null;
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
let stop = (id) => {
|
|
1358
|
+
{
|
|
1359
|
+
let s = sessions.get(id) ?? null ?? null;
|
|
1360
|
+
if (s == null || s.status !== "running" && s.status !== "queued") {
|
|
1361
|
+
return false;
|
|
1362
|
+
}
|
|
1363
|
+
let control = controls.get(id) ?? null ?? null;
|
|
1364
|
+
if (control != null) {
|
|
1365
|
+
control.stop() ?? null;
|
|
1366
|
+
}
|
|
1367
|
+
s.status = "stopped";
|
|
1368
|
+
s.endedAt = now() ?? null;
|
|
1369
|
+
persist(s) ?? null;
|
|
1370
|
+
return true;
|
|
1371
|
+
}
|
|
1372
|
+
};
|
|
1373
|
+
let load = async () => {
|
|
1374
|
+
{
|
|
1375
|
+
if (loaded) {
|
|
1376
|
+
return;
|
|
1377
|
+
}
|
|
1378
|
+
loaded = true;
|
|
1379
|
+
if (host.store != null && ((__v) => __v == null ? "null" : typeof __v)(host.store) === "object") {
|
|
1380
|
+
let saved = await (host.store.load() ?? null);
|
|
1381
|
+
for (const s of Array.isArray(saved) ?? null ? saved : []) {
|
|
1382
|
+
if (s.status === "running" || s.status === "queued") {
|
|
1383
|
+
s.status = "stopped";
|
|
1384
|
+
if (((__v) => __v == null ? "null" : typeof __v)(s.endedAt) !== "number") {
|
|
1385
|
+
s.endedAt = now() ?? null;
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
sessions.set(s.id, s) ?? null;
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
changed() ?? null;
|
|
1392
|
+
}
|
|
1393
|
+
};
|
|
1394
|
+
let get = (id) => {
|
|
1395
|
+
{
|
|
1396
|
+
return sessions.get(id) ?? null ?? null;
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
return { load, flush: async () => {
|
|
1400
|
+
{
|
|
1401
|
+
while (pendingSaves > 0) {
|
|
1402
|
+
await (delay2(WAIT_STEP_MS) ?? null);
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
}, subscribe: (l) => {
|
|
1406
|
+
{
|
|
1407
|
+
listeners.push(l) ?? null;
|
|
1408
|
+
return () => {
|
|
1409
|
+
{
|
|
1410
|
+
let i = listeners.indexOf(l) ?? null;
|
|
1411
|
+
if (i >= 0) {
|
|
1412
|
+
listeners.splice(i, 1) ?? null;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
};
|
|
1416
|
+
}
|
|
1417
|
+
}, list: () => {
|
|
1418
|
+
{
|
|
1419
|
+
return (allSessions(sessions) ?? null).sort((a, b) => {
|
|
1420
|
+
{
|
|
1421
|
+
return a.startedAt - b.startedAt;
|
|
1422
|
+
}
|
|
1423
|
+
}) ?? null;
|
|
1424
|
+
}
|
|
1425
|
+
}, get, wait: async (id, opts) => {
|
|
1426
|
+
{
|
|
1427
|
+
let o = opts ?? {};
|
|
1428
|
+
let deadline = (now() ?? null) + (((__v) => __v == null ? "null" : typeof __v)(o.timeoutMs) === "number" ? o.timeoutMs : 12e4);
|
|
1429
|
+
let signal = o.signal ?? null;
|
|
1430
|
+
while ((isBusy(get(id) ?? null) ?? null) && (now() ?? null) < deadline && !(signal != null && signal.aborted === true)) {
|
|
1431
|
+
await (delay2(Math.min(WAIT_STEP_MS, Math.max(1, deadline - (now() ?? null)) ?? null) ?? null) ?? null);
|
|
1432
|
+
}
|
|
1433
|
+
return get(id) ?? null;
|
|
1434
|
+
}
|
|
1435
|
+
}, dismissFinished: (id) => {
|
|
1436
|
+
{
|
|
1437
|
+
let prefix = "Agent " + id + " (";
|
|
1438
|
+
let i = parentQueue.length - 1;
|
|
1439
|
+
while (i >= 0) {
|
|
1440
|
+
if ((parentQueue[i] ?? null).startsWith(prefix) ?? null) {
|
|
1441
|
+
parentQueue.splice(i, 1) ?? null;
|
|
1442
|
+
}
|
|
1443
|
+
i = i - 1;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
}, drainParentNotifications: () => {
|
|
1447
|
+
{
|
|
1448
|
+
return parentQueue.splice(0, parentQueue.length) ?? null;
|
|
1449
|
+
}
|
|
1450
|
+
}, hasPendingNotifications: () => {
|
|
1451
|
+
{
|
|
1452
|
+
return parentQueue.length > 0;
|
|
1453
|
+
}
|
|
1454
|
+
}, spawn: async (req) => {
|
|
1455
|
+
{
|
|
1456
|
+
let profile = profileById(req.profileId) ?? null;
|
|
1457
|
+
if (profile == null) {
|
|
1458
|
+
let ids = ((host.profiles() ?? null).map((p) => {
|
|
1459
|
+
{
|
|
1460
|
+
return p.id;
|
|
1461
|
+
}
|
|
1462
|
+
}) ?? null).join(", ") ?? null;
|
|
1463
|
+
return { kind: "refused", reason: 'No agent type "' + req.profileId + '". Available: ' + ids + "." };
|
|
1464
|
+
}
|
|
1465
|
+
let prompt = ((__v) => __v == null ? "null" : typeof __v)(req.prompt) === "string" ? req.prompt.trim() ?? null : "";
|
|
1466
|
+
if (prompt === "") {
|
|
1467
|
+
return { kind: "refused", reason: "A task needs a self-contained prompt \u2014 the agent cannot see this conversation." };
|
|
1468
|
+
}
|
|
1469
|
+
let background = ((__v) => __v == null ? "null" : typeof __v)(req.background) === "boolean" ? req.background : profile.background === true;
|
|
1470
|
+
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);
|
|
1471
|
+
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 };
|
|
1472
|
+
if (((__v) => __v == null ? "null" : typeof __v)(req.parentCallId) === "string" && req.parentCallId !== "") {
|
|
1473
|
+
session2.parentCallId = req.parentCallId;
|
|
1474
|
+
}
|
|
1475
|
+
sessions.set(session2.id, session2) ?? null;
|
|
1476
|
+
changed() ?? null;
|
|
1477
|
+
sessionEvent(session2) ?? null;
|
|
1478
|
+
let forceReadOnly = req.readOnly === true;
|
|
1479
|
+
let parentSignal = req.signal ?? null;
|
|
1480
|
+
if (background) {
|
|
1481
|
+
startBackground(session2, async () => {
|
|
1482
|
+
{
|
|
1483
|
+
return await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
|
|
1484
|
+
}
|
|
1485
|
+
}) ?? null;
|
|
1486
|
+
return { kind: "started", id: session2.id };
|
|
1487
|
+
}
|
|
1488
|
+
let out = await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
|
|
1489
|
+
return { kind: "done", id: session2.id, ok: out.ok, summary: out.summary, rounds: out.rounds };
|
|
1490
|
+
}
|
|
1491
|
+
}, message: async (id, text, opts) => {
|
|
1492
|
+
{
|
|
1493
|
+
await (load() ?? null);
|
|
1494
|
+
let o = opts ?? {};
|
|
1495
|
+
let session2 = sessions.get(id) ?? null ?? null;
|
|
1496
|
+
if (session2 == null) {
|
|
1497
|
+
return { kind: "unknown", id };
|
|
1498
|
+
}
|
|
1499
|
+
if (session2.status === "running" || session2.status === "queued") {
|
|
1500
|
+
session2.inbox.push(text) ?? null;
|
|
1501
|
+
persist(session2) ?? null;
|
|
1502
|
+
return { kind: "queued", id };
|
|
1503
|
+
}
|
|
1504
|
+
let profile = profileById(session2.profile) ?? null;
|
|
1505
|
+
if (profile == null) {
|
|
1506
|
+
return { kind: "unknown", id };
|
|
1507
|
+
}
|
|
1508
|
+
let wait = o.wait === true;
|
|
1509
|
+
let parentSignal = o.signal ?? null;
|
|
1510
|
+
session2.status = "running";
|
|
1511
|
+
session2.endedAt = null;
|
|
1512
|
+
session2.background = !wait;
|
|
1513
|
+
changed() ?? null;
|
|
1514
|
+
if (!wait) {
|
|
1515
|
+
startBackground(session2, async () => {
|
|
1516
|
+
{
|
|
1517
|
+
return await (run(session2, profile, text, false, parentSignal, false) ?? null);
|
|
1518
|
+
}
|
|
1519
|
+
}) ?? null;
|
|
1520
|
+
return { kind: "resumed", id };
|
|
1521
|
+
}
|
|
1522
|
+
let out = await (run(session2, profile, text, false, parentSignal, false) ?? null);
|
|
1523
|
+
return { kind: "done", id, ok: out.ok, summary: out.summary };
|
|
1524
|
+
}
|
|
1525
|
+
}, stop, stopAll: () => {
|
|
1526
|
+
{
|
|
1527
|
+
for (const s of allSessions(sessions) ?? null) {
|
|
1528
|
+
stop(s.id) ?? null;
|
|
1529
|
+
}
|
|
1530
|
+
parentQueue.splice(0, parentQueue.length) ?? null;
|
|
1531
|
+
}
|
|
1532
|
+
}, report };
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/types.js
|
|
1537
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1538
|
+
function forceTool(name) {
|
|
1539
|
+
{
|
|
1540
|
+
return { type: "function", function: { name } };
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/store.js
|
|
1545
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1546
|
+
async function loadAll(kv, prefix) {
|
|
1547
|
+
{
|
|
1548
|
+
let out = [];
|
|
1549
|
+
for (const k of await (kv.keys(prefix) ?? null)) {
|
|
1550
|
+
let v = await (kv.get(k) ?? null);
|
|
1551
|
+
if (v != null) {
|
|
1552
|
+
out.push(v) ?? null;
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
return out;
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
function sessionStore(kv, scope) {
|
|
1559
|
+
{
|
|
1560
|
+
let prefix = (scope ?? "default") + ":session:";
|
|
1561
|
+
return { load: async () => {
|
|
1562
|
+
{
|
|
1563
|
+
return await (loadAll(kv, prefix) ?? null);
|
|
1564
|
+
}
|
|
1565
|
+
}, save: async (s) => {
|
|
1566
|
+
{
|
|
1567
|
+
await (kv.set(prefix + s.id, s) ?? null);
|
|
1568
|
+
}
|
|
1569
|
+
}, remove: async (id) => {
|
|
1570
|
+
{
|
|
1571
|
+
await ((kv["delete"] ?? null)(prefix + id) ?? null);
|
|
1572
|
+
}
|
|
1573
|
+
} };
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
function runStore(kv, scope) {
|
|
1577
|
+
{
|
|
1578
|
+
let prefix = (scope ?? "default") + ":run:";
|
|
1579
|
+
return { get: async (id) => {
|
|
1580
|
+
{
|
|
1581
|
+
return await (kv.get(prefix + id) ?? null);
|
|
1582
|
+
}
|
|
1583
|
+
}, save: async (run) => {
|
|
1584
|
+
{
|
|
1585
|
+
await (kv.set(prefix + run.id, run) ?? null);
|
|
1586
|
+
}
|
|
1587
|
+
}, list: async () => {
|
|
1588
|
+
{
|
|
1589
|
+
return await (loadAll(kv, prefix) ?? null);
|
|
1590
|
+
}
|
|
1591
|
+
}, remove: async (id) => {
|
|
1592
|
+
{
|
|
1593
|
+
await ((kv["delete"] ?? null)(prefix + id) ?? null);
|
|
1594
|
+
}
|
|
1595
|
+
} };
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/core/run.js
|
|
1600
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1601
|
+
function errorMessage3(err) {
|
|
1602
|
+
{
|
|
1603
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1604
|
+
return err.message;
|
|
1605
|
+
}
|
|
1606
|
+
return String(err) ?? null;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
async function runPersistent(opts) {
|
|
1610
|
+
{
|
|
1611
|
+
let now = ((__v) => __v == null ? "null" : typeof __v)(opts.now) === "function" ? opts.now : () => {
|
|
1612
|
+
{
|
|
1613
|
+
return Date.now() ?? null;
|
|
1614
|
+
}
|
|
1615
|
+
};
|
|
1616
|
+
let existing = await (opts.runs.get(opts.id) ?? null);
|
|
1617
|
+
let createdAt = existing != null ? existing.createdAt : now() ?? null;
|
|
1618
|
+
let record = (status, checkpoint) => {
|
|
1619
|
+
{
|
|
1620
|
+
let todos = opts.todos != null && ((__v) => __v == null ? "null" : typeof __v)(opts.todos) === "object" ? opts.todos.get() ?? null : existing != null ? existing.todos ?? null : null;
|
|
1621
|
+
let meta = opts.meta ?? (existing != null ? existing.meta ?? null : null);
|
|
1622
|
+
return { id: opts.id, createdAt, updatedAt: now() ?? null, meta, todos, status, checkpoint };
|
|
1623
|
+
}
|
|
1624
|
+
};
|
|
1625
|
+
let first = existing != null ? existing.checkpoint : { messages: opts.messages, round: 0, acted: false, nudgesLeft: 0, done: false };
|
|
1626
|
+
await (opts.runs.save(record("running", first) ?? null) ?? null);
|
|
1627
|
+
let mark = async (status, error) => {
|
|
1628
|
+
{
|
|
1629
|
+
let saved = await (opts.runs.get(opts.id) ?? null);
|
|
1630
|
+
if (saved != null) {
|
|
1631
|
+
let next = { ...saved, status, updatedAt: now() ?? null };
|
|
1632
|
+
if (((__v) => __v == null ? "null" : typeof __v)(error) === "string") {
|
|
1633
|
+
next.error = error;
|
|
1634
|
+
}
|
|
1635
|
+
await (opts.runs.save(next) ?? null);
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
};
|
|
1639
|
+
let outcome = null;
|
|
1640
|
+
try {
|
|
1641
|
+
{
|
|
1642
|
+
outcome = await (runAgentLoop({ ...opts, checkpoint: async (state) => {
|
|
1643
|
+
{
|
|
1644
|
+
await (opts.runs.save(record(state.done ? "done" : "running", state) ?? null) ?? null);
|
|
1645
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
|
|
1646
|
+
await (opts.checkpoint(state) ?? null);
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
} }) ?? null);
|
|
1650
|
+
}
|
|
1651
|
+
} catch (err) {
|
|
1652
|
+
{
|
|
1653
|
+
await (mark("error", errorMessage3(err) ?? null) ?? null);
|
|
1654
|
+
throw err;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
if (outcome.stopped) {
|
|
1658
|
+
await (mark("stopped", null) ?? null);
|
|
1659
|
+
}
|
|
1660
|
+
return outcome;
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
async function interruptedRuns(runs2, activeIds) {
|
|
1664
|
+
{
|
|
1665
|
+
let active = new Set(activeIds ?? []) ?? null;
|
|
1666
|
+
return (await (runs2.list() ?? null)).filter((r) => {
|
|
1667
|
+
{
|
|
1668
|
+
return r.status === "running" && !(active.has(r.id) ?? null);
|
|
1669
|
+
}
|
|
1670
|
+
}) ?? null;
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
async function resumeRun(id, runs2, options) {
|
|
1674
|
+
{
|
|
1675
|
+
let saved = await (runs2.get(id) ?? null);
|
|
1676
|
+
if (saved == null) {
|
|
1677
|
+
throw { message: 'No saved run "' + id + '".', code: "not_found" };
|
|
1678
|
+
}
|
|
1679
|
+
let cp = saved.checkpoint;
|
|
1680
|
+
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);
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/indexeddb.js
|
|
1685
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1686
|
+
function indexedDbStore(name = "hypery-agents") {
|
|
1687
|
+
let db = null;
|
|
1688
|
+
const open = () => db ?? (db = new Promise((res, rej) => {
|
|
1689
|
+
const req = indexedDB.open(name, 1);
|
|
1690
|
+
req.onupgradeneeded = () => {
|
|
1691
|
+
req.result.createObjectStore("kv");
|
|
1692
|
+
};
|
|
1693
|
+
req.onsuccess = () => res(req.result);
|
|
1694
|
+
req.onerror = () => rej(req.error);
|
|
1695
|
+
}));
|
|
1696
|
+
const tx = async (mode, fn) => {
|
|
1697
|
+
const store = (await open()).transaction("kv", mode).objectStore("kv");
|
|
1698
|
+
return new Promise((res, rej) => {
|
|
1699
|
+
const r = fn(store);
|
|
1700
|
+
r.onsuccess = () => res(r.result);
|
|
1701
|
+
r.onerror = () => rej(r.error);
|
|
1702
|
+
});
|
|
1703
|
+
};
|
|
1704
|
+
return {
|
|
1705
|
+
// A missing key reads as null, as the core's stores do.
|
|
1706
|
+
get: async (k) => await tx("readonly", (s) => s.get(k)) ?? null,
|
|
1707
|
+
set: async (k, v) => {
|
|
1708
|
+
await tx("readwrite", (s) => s.put(structuredClone(v), k));
|
|
1709
|
+
},
|
|
1710
|
+
delete: async (k) => {
|
|
1711
|
+
await tx("readwrite", (s) => s.delete(k));
|
|
1712
|
+
},
|
|
1713
|
+
keys: async (prefix) => (await tx("readonly", (s) => s.getAllKeys())).map(String).filter((k) => k.startsWith(prefix))
|
|
1714
|
+
};
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
// node_modules/.pnpm/@hyperyai+sdk@2.1.0_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_62022f8c0abbfd4c405f5fb20b5aa9ec/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
1718
|
+
function createHyperyModel2(opts) {
|
|
1719
|
+
return createHyperyModel({ ...opts, fetch: opts.fetch ?? ((url, init) => fetch(url, init)) });
|
|
1720
|
+
}
|
|
1721
|
+
function createAgentRuntime2(host) {
|
|
1722
|
+
return createAgentRuntime({
|
|
1723
|
+
...host,
|
|
1724
|
+
createSignal: host.createSignal ?? (() => {
|
|
1725
|
+
const controller = new AbortController();
|
|
1726
|
+
return { signal: controller.signal, stop: () => controller.abort() };
|
|
1727
|
+
})
|
|
1728
|
+
// The core types a child's signal as anything with `aborted`; here every one comes from `createSignal`, whose
|
|
1729
|
+
// signals are AbortSignals — so the host's callbacks may rely on that.
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
// lib/agent/stream-parse.ts
|
|
1734
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1735
|
+
|
|
1736
|
+
// lib/agent/gateway.ts
|
|
1737
|
+
var session = {
|
|
1738
|
+
token: () => accessToken(),
|
|
1739
|
+
team: () => activeHyperyTeamId(),
|
|
1740
|
+
paymentSource: async () => (await paymentSourceHeaders())[HYPERY_PAYMENT_SOURCE_HEADER] === "credits" ? "credits" : null,
|
|
1741
|
+
gatewayUrl: HYPERY_GATEWAY_URL
|
|
1742
|
+
};
|
|
1743
|
+
var agentModel2 = (model) => createHyperyModel2({
|
|
1744
|
+
...session,
|
|
1745
|
+
model: () => {
|
|
1746
|
+
const id = model();
|
|
1747
|
+
if (!id) throw agentModelError("Pick a chat model for the agent first.", "no_model", 400);
|
|
1748
|
+
return id;
|
|
1749
|
+
}
|
|
1750
|
+
});
|
|
1751
|
+
|
|
1752
|
+
// lib/agent/turn-recovery.ts
|
|
1753
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1754
|
+
var ACTION_NUDGES = 2;
|
|
1755
|
+
var MAX_READ_ROUNDS = 4;
|
|
1756
|
+
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.";
|
|
1757
|
+
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.";
|
|
1758
|
+
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;
|
|
1759
|
+
function wantsChange(text) {
|
|
1760
|
+
const body = text.trim();
|
|
1761
|
+
if (!body) return false;
|
|
1762
|
+
return !(body.endsWith("?") && QUESTION_START.test(body));
|
|
1763
|
+
}
|
|
1764
|
+
function createActionGuard(opts) {
|
|
1765
|
+
const maxReads = opts.maxReadRounds ?? MAX_READ_ROUNDS;
|
|
1766
|
+
const maxNudges = opts.nudges ?? ACTION_NUDGES;
|
|
1767
|
+
let readRounds = opts.initial?.readRounds ?? 0;
|
|
1768
|
+
let nudges = opts.initial?.nudges ?? 0;
|
|
1769
|
+
let acted = false;
|
|
1770
|
+
let actedThisRound = false;
|
|
1771
|
+
let ranThisRound = false;
|
|
1772
|
+
let notes = [];
|
|
1773
|
+
let choice = null;
|
|
1774
|
+
let budgetSpent = readRounds >= maxReads;
|
|
1775
|
+
return {
|
|
1776
|
+
onRun(run, changed) {
|
|
1777
|
+
ranThisRound = true;
|
|
1778
|
+
if (run.ok && changed) {
|
|
1779
|
+
acted = true;
|
|
1780
|
+
actedThisRound = true;
|
|
1781
|
+
}
|
|
1782
|
+
},
|
|
1783
|
+
onRoundEnd() {
|
|
1784
|
+
if (!opts.enabled || acted || !ranThisRound) {
|
|
1785
|
+
ranThisRound = false;
|
|
1786
|
+
actedThisRound = false;
|
|
1787
|
+
return;
|
|
1788
|
+
}
|
|
1789
|
+
if (!actedThisRound) readRounds++;
|
|
1790
|
+
ranThisRound = false;
|
|
1791
|
+
actedThisRound = false;
|
|
1792
|
+
if (!budgetSpent && readRounds >= maxReads) {
|
|
1793
|
+
budgetSpent = true;
|
|
1794
|
+
notes.push(READ_BUDGET_NOTE);
|
|
1795
|
+
choice = "required";
|
|
1796
|
+
}
|
|
1797
|
+
},
|
|
1798
|
+
onNudge() {
|
|
1799
|
+
nudges++;
|
|
1800
|
+
if (opts.enabled && nudges >= maxNudges && opts.writeTool) choice = forceTool(opts.writeTool);
|
|
1801
|
+
else if (opts.enabled) choice = "required";
|
|
1802
|
+
return nudges;
|
|
1803
|
+
},
|
|
1804
|
+
drain() {
|
|
1805
|
+
const out = notes;
|
|
1806
|
+
notes = [];
|
|
1807
|
+
return out;
|
|
1808
|
+
},
|
|
1809
|
+
toolChoice() {
|
|
1810
|
+
if (acted) return null;
|
|
1811
|
+
const c = choice;
|
|
1812
|
+
choice = null;
|
|
1813
|
+
return c;
|
|
1814
|
+
},
|
|
1815
|
+
get acted() {
|
|
1816
|
+
return acted;
|
|
1817
|
+
},
|
|
1818
|
+
state: () => ({ readRounds, nudges, forced: budgetSpent })
|
|
1819
|
+
};
|
|
1820
|
+
}
|
|
1821
|
+
function createToolLedger(initial = null) {
|
|
1822
|
+
let done = { ...initial ?? {} };
|
|
1823
|
+
return {
|
|
1824
|
+
get: (id) => done[id],
|
|
1825
|
+
record: (run) => {
|
|
1826
|
+
done = { ...done, [run.id]: { id: run.id, name: run.name, argsText: run.argsText, ok: run.ok, summary: run.summary, content: run.content } };
|
|
1827
|
+
},
|
|
1828
|
+
entries: () => done,
|
|
1829
|
+
clear: () => {
|
|
1830
|
+
done = {};
|
|
1831
|
+
}
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
async function runOnce(ledger, call, run) {
|
|
1835
|
+
const seen = ledger.get(call.id);
|
|
1836
|
+
if (seen) return { ...seen, acted: false, replayed: true };
|
|
1837
|
+
const result = await run();
|
|
1838
|
+
ledger.record(result);
|
|
1839
|
+
return result;
|
|
1840
|
+
}
|
|
1841
|
+
function resumeTranscript(checkpoint, pending, ledger) {
|
|
1842
|
+
if (!pending?.calls.length) return checkpoint;
|
|
1843
|
+
const answered = new Set(checkpoint.filter((m) => m.role === "tool").map((m) => m.tool_call_id));
|
|
1844
|
+
if (pending.calls.every((c) => answered.has(c.id))) return checkpoint;
|
|
1845
|
+
const assistant = {
|
|
1846
|
+
role: "assistant",
|
|
1847
|
+
content: pending.text,
|
|
1848
|
+
tool_calls: pending.calls.map((c) => ({ id: c.id, type: "function", function: { name: c.name, arguments: c.argsText } }))
|
|
1849
|
+
};
|
|
1850
|
+
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 }));
|
|
1851
|
+
return [...checkpoint, assistant, ...answers];
|
|
1852
|
+
}
|
|
1853
|
+
var browserSignals = () => {
|
|
1854
|
+
if (typeof document === "undefined" || typeof window === "undefined") return null;
|
|
1855
|
+
return {
|
|
1856
|
+
hidden: () => document.visibilityState === "hidden",
|
|
1857
|
+
online: () => typeof navigator === "undefined" || navigator.onLine !== false,
|
|
1858
|
+
subscribe: (fn) => {
|
|
1859
|
+
document.addEventListener("visibilitychange", fn);
|
|
1860
|
+
window.addEventListener("online", fn);
|
|
1861
|
+
window.addEventListener("pageshow", fn);
|
|
1862
|
+
return () => {
|
|
1863
|
+
document.removeEventListener("visibilitychange", fn);
|
|
1864
|
+
window.removeEventListener("online", fn);
|
|
1865
|
+
window.removeEventListener("pageshow", fn);
|
|
1866
|
+
};
|
|
1867
|
+
}
|
|
1868
|
+
};
|
|
1869
|
+
};
|
|
1870
|
+
function whenResumable(signals = browserSignals(), signal, offlineWaitMs = 0) {
|
|
1871
|
+
if (!signals || signal?.aborted) return Promise.resolve();
|
|
1872
|
+
const visible = () => !signals.hidden() ? Promise.resolve() : new Promise((resolve2) => {
|
|
1873
|
+
const done = () => {
|
|
1874
|
+
off();
|
|
1875
|
+
signal?.removeEventListener("abort", done);
|
|
1876
|
+
resolve2();
|
|
1877
|
+
};
|
|
1878
|
+
const off = signals.subscribe(() => {
|
|
1879
|
+
if (!signals.hidden()) done();
|
|
1880
|
+
});
|
|
1881
|
+
signal?.addEventListener("abort", done);
|
|
1882
|
+
});
|
|
1883
|
+
return visible().then(() => {
|
|
1884
|
+
if (!offlineWaitMs || signals.online() || signal?.aborted) return;
|
|
1885
|
+
return new Promise((resolve2) => {
|
|
1886
|
+
const done = () => {
|
|
1887
|
+
clearTimeout(timer);
|
|
1888
|
+
off();
|
|
1889
|
+
signal?.removeEventListener("abort", done);
|
|
1890
|
+
resolve2();
|
|
1891
|
+
};
|
|
1892
|
+
const timer = setTimeout(done, offlineWaitMs);
|
|
1893
|
+
const off = signals.subscribe(() => {
|
|
1894
|
+
if (signals.online()) done();
|
|
1895
|
+
});
|
|
1896
|
+
signal?.addEventListener("abort", done);
|
|
1897
|
+
});
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
function isInterruption(err, hidden = false) {
|
|
1901
|
+
if (hidden) return true;
|
|
1902
|
+
const e = err ?? {};
|
|
1903
|
+
if (e.code === "ai_timeout") return true;
|
|
1904
|
+
if (typeof e.status === "number") return e.status >= 500 || e.status === 408;
|
|
1905
|
+
const text = `${String(e.name ?? "")} ${String(e.code ?? "")} ${String(e.message ?? "")}`.toLowerCase();
|
|
1906
|
+
return ["load failed", "failed to fetch", "network", "fetch failed", "econnreset", "socket", "stream", "stalled", "timed out", "timeout"].some((w) => text.includes(w));
|
|
1907
|
+
}
|
|
1908
|
+
function serialRuns(inner) {
|
|
1909
|
+
const latest = /* @__PURE__ */ new Map();
|
|
1910
|
+
let queue = Promise.resolve();
|
|
1911
|
+
return {
|
|
1912
|
+
peek: (id) => latest.get(id),
|
|
1913
|
+
get: async (id) => latest.get(id) ?? inner.get(id),
|
|
1914
|
+
save: (rec) => {
|
|
1915
|
+
latest.set(rec.id, rec);
|
|
1916
|
+
const write = queue.then(() => inner.save(rec));
|
|
1917
|
+
queue = write.catch(() => {
|
|
1918
|
+
});
|
|
1919
|
+
return write;
|
|
1920
|
+
},
|
|
1921
|
+
list: async () => {
|
|
1922
|
+
await queue;
|
|
1923
|
+
return inner.list();
|
|
1924
|
+
},
|
|
1925
|
+
remove: (id) => {
|
|
1926
|
+
latest.delete(id);
|
|
1927
|
+
const write = queue.then(() => inner.remove(id));
|
|
1928
|
+
queue = write.catch(() => {
|
|
1929
|
+
});
|
|
1930
|
+
return write;
|
|
1931
|
+
}
|
|
1932
|
+
};
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
// lib/agent/tools/subagent-tools.ts
|
|
1936
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1937
|
+
|
|
1938
|
+
// lib/agent/subagent.ts
|
|
1939
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1940
|
+
|
|
1941
|
+
// lib/agent/prompt.ts
|
|
1942
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1943
|
+
init_limits();
|
|
1944
|
+
var PROMPT_LIMITS = {
|
|
1945
|
+
maxPromptChars: 14e3,
|
|
1946
|
+
maxSkillIndexChars: 4800,
|
|
1947
|
+
maxProfileIndexChars: 1600,
|
|
1948
|
+
maxContextChars: AI_LIMITS.maxContextChars,
|
|
1949
|
+
maxSelectionItems: 12
|
|
1950
|
+
};
|
|
1951
|
+
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.`;
|
|
1952
|
+
var HOW_TO_WORK = `How you work:
|
|
1953
|
+
- Inspect before you edit. Read the selection and the layers you are about to change; never guess at node ids, colors or sizes.
|
|
1954
|
+
- 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.
|
|
1955
|
+
- 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.
|
|
1956
|
+
- Stay inside the scope the user pointed at. The selection is the default scope; do not touch the rest of the page unless asked.
|
|
1957
|
+
- Explain briefly. A line or two about what you did and why, with counts rather than lists. No preamble, no restating the request.
|
|
1958
|
+
- 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.
|
|
1959
|
+
- Plan visibly for anything longer than a couple of steps: manage_todos puts the plan in front of the user and keeps you honest.
|
|
1960
|
+
- 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.
|
|
1961
|
+
- 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.
|
|
1962
|
+
- 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.`;
|
|
1963
|
+
var describeNodes = (doc, ids) => {
|
|
1964
|
+
const shown = ids.slice(0, PROMPT_LIMITS.maxSelectionItems);
|
|
1965
|
+
const parts = shown.map((id) => {
|
|
1966
|
+
const n = doc.nodes[id];
|
|
1967
|
+
return n ? `${id} (${n.type}${n.name ? ` "${str(n.name, 40)}"` : ""})` : `${id} (missing)`;
|
|
1968
|
+
});
|
|
1969
|
+
const rest = ids.length - shown.length;
|
|
1970
|
+
return parts.join(", ") + (rest > 0 ? `, +${rest} more` : "");
|
|
1971
|
+
};
|
|
1972
|
+
function buildContextBlock(ctx, maxChars = PROMPT_LIMITS.maxContextChars) {
|
|
1973
|
+
const { doc, pageId, selection } = ctx;
|
|
1974
|
+
const page = doc.nodes[pageId];
|
|
1975
|
+
const lines = [
|
|
1976
|
+
`Document: "${str(doc.name, AI_LIMITS.maxNameChars)}" (${doc.pages.length} page${doc.pages.length === 1 ? "" : "s"}, ${Object.keys(doc.nodes).length} nodes)`,
|
|
1977
|
+
`Current page: ${page ? `"${str(page.name, AI_LIMITS.maxNameChars)}"` : "unknown"} (id ${pageId}, ${page?.childIds?.length ?? 0} top-level layers)`,
|
|
1978
|
+
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."
|
|
1979
|
+
];
|
|
1980
|
+
const mentions = mentionContext(ctx.mentions, doc);
|
|
1981
|
+
if (mentions) lines.push(mentions);
|
|
1982
|
+
if (ctx.camera) {
|
|
1983
|
+
const z = Math.round(ctx.camera.zoom * 100);
|
|
1984
|
+
const size = ctx.viewport ? `, ${Math.round(ctx.viewport.width / ctx.camera.zoom)}x${Math.round(ctx.viewport.height / ctx.camera.zoom)} canvas units visible` : "";
|
|
1985
|
+
lines.push(`Viewport: ${z}% zoom at (${Math.round(ctx.camera.x)}, ${Math.round(ctx.camera.y)})${size}`);
|
|
1986
|
+
}
|
|
1987
|
+
const design = buildDesignContext(doc, Math.max(200, Math.floor(maxChars / 2)));
|
|
1988
|
+
if (design) lines.push(design);
|
|
1989
|
+
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.");
|
|
1990
|
+
return joinWithin(lines, maxChars);
|
|
1991
|
+
}
|
|
1992
|
+
function buildSkillIndex(skills, maxChars = PROMPT_LIMITS.maxSkillIndexChars) {
|
|
1993
|
+
return joinWithin(skills.map(skillIndexLine), maxChars);
|
|
1994
|
+
}
|
|
1995
|
+
function buildProfileIndex(profiles, maxChars = PROMPT_LIMITS.maxProfileIndexChars) {
|
|
1996
|
+
return joinWithin(profiles.map(profileIndexLine), maxChars);
|
|
1997
|
+
}
|
|
1998
|
+
function buildSubagentPrompt(instructions, ctx) {
|
|
1999
|
+
const prompt = [instructions, SUBAGENT_FRAMING, `Current context:
|
|
2000
|
+
${buildContextBlock(ctx)}`].join("\n\n");
|
|
2001
|
+
return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
|
|
2002
|
+
\u2026`;
|
|
2003
|
+
}
|
|
2004
|
+
function buildSystemPrompt(ctx) {
|
|
2005
|
+
const skills = ctx.skills ?? allSkills();
|
|
2006
|
+
const profiles = ctx.profiles ?? allProfiles();
|
|
2007
|
+
const active = ctx.activeSkillId ? findSkill(ctx.activeSkillId) : void 0;
|
|
2008
|
+
const sections = [
|
|
2009
|
+
IDENTITY,
|
|
2010
|
+
HOW_TO_WORK,
|
|
2011
|
+
`Skills (read the full instructions with read_skill before you follow one \u2014 only the summaries are here):
|
|
2012
|
+
${buildSkillIndex(skills)}`,
|
|
2013
|
+
`Subagent profiles (spawn one with task({ subagent_type, prompt }); it starts fresh, sees this document but not this conversation, and returns only a summary):
|
|
2014
|
+
${buildProfileIndex(profiles)}`,
|
|
2015
|
+
active ? `The user selected the "${active.name}" skill (${active.id}) for this turn. Call read_skill("${active.id}") first and follow it.` : "",
|
|
2016
|
+
// Last on purpose: selection, camera and viewport change every turn, and providers cache prompts by
|
|
2017
|
+
// prefix — everything above is identical from turn to turn, so it stays cacheable.
|
|
2018
|
+
`Current context:
|
|
2019
|
+
${buildContextBlock(ctx)}`
|
|
2020
|
+
].filter(Boolean);
|
|
2021
|
+
const prompt = sections.join("\n\n");
|
|
2022
|
+
return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
|
|
2023
|
+
\u2026`;
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
// lib/agent/subagent.ts
|
|
2027
|
+
var PARENT_ONLY_TOOLS = ["task", "await_job", "send_message", "stop_agent", "list_agents"];
|
|
2028
|
+
var AGENT_SESSIONS_DB = "popcraft-agent-sessions";
|
|
2029
|
+
var FAST_HINTS = ["flash", "mini", "haiku", "lite", "nano", "small"];
|
|
2030
|
+
var isFastModelId = (id) => {
|
|
2031
|
+
const lower = id.toLowerCase();
|
|
2032
|
+
return FAST_HINTS.some((h) => lower.includes(h));
|
|
2033
|
+
};
|
|
2034
|
+
function canRunTools(model) {
|
|
2035
|
+
if (model.capabilities && !model.capabilities.includes("tools")) return false;
|
|
2036
|
+
const modalities = model.outputModalities;
|
|
2037
|
+
if (modalities?.length && !modalities.includes("text")) return false;
|
|
2038
|
+
return !/(^|[-/_])image([-/_]|$)/.test(model.id.toLowerCase());
|
|
2039
|
+
}
|
|
2040
|
+
function pickChildModel(profile, parentModel, catalog) {
|
|
2041
|
+
const explicit = profile.model?.trim();
|
|
2042
|
+
if (explicit && explicit !== "inherit") return explicit;
|
|
2043
|
+
if (!profile.readOnly) return parentModel;
|
|
2044
|
+
const fast = catalog.find((m) => isFastModelId(m.id) && canRunTools(m));
|
|
2045
|
+
return fast?.id ?? parentModel;
|
|
2046
|
+
}
|
|
2047
|
+
function childToolNames(profile, registered, forceReadOnly) {
|
|
2048
|
+
const wanted = profile.tools.includes(ALL_TOOLS) ? null : new Set(profile.tools);
|
|
2049
|
+
const parentOnly = new Set(PARENT_ONLY_TOOLS);
|
|
2050
|
+
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);
|
|
2051
|
+
}
|
|
2052
|
+
function editorPromptContext() {
|
|
2053
|
+
const st = useEditorStore.getState();
|
|
2054
|
+
return {
|
|
2055
|
+
doc: st.document,
|
|
2056
|
+
pageId: st.currentPageId,
|
|
2057
|
+
selection: st.selection,
|
|
2058
|
+
camera: st.camera,
|
|
2059
|
+
viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
|
|
2060
|
+
readOnly: !!editBlockReason()
|
|
2061
|
+
};
|
|
2062
|
+
}
|
|
2063
|
+
var childToolListener = null;
|
|
2064
|
+
function onChildTool(fn) {
|
|
2065
|
+
childToolListener = fn;
|
|
2066
|
+
return () => {
|
|
2067
|
+
if (childToolListener === fn) childToolListener = null;
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
2070
|
+
function subagentHost(deps = {}) {
|
|
2071
|
+
const profiles = deps.profiles ?? allProfiles;
|
|
2072
|
+
const registered = deps.registeredTools ?? (() => allTools().map((t) => ({ name: t.name, readOnly: t.readOnly, confirm: t.confirm, interactive: t.interactive })));
|
|
2073
|
+
const promptContext = deps.promptContext ?? editorPromptContext;
|
|
2074
|
+
const parentModel = deps.parentModel ?? (() => effectiveChatModel());
|
|
2075
|
+
const catalog = deps.catalog ?? (() => useAiStore.getState().catalog?.chat ?? []);
|
|
2076
|
+
const modelCall = deps.modelCall ?? agentModel2;
|
|
2077
|
+
const toolContext = deps.toolContext ?? editorToolContext;
|
|
2078
|
+
const profileOf = (ctx) => profiles().find((p) => p.id === ctx.profile.id) ?? ctx.profile;
|
|
2079
|
+
const readOnly = (ctx) => ctx.readOnly || promptContext().readOnly === true;
|
|
2080
|
+
return {
|
|
2081
|
+
profiles,
|
|
2082
|
+
callModel: modelCall(parentModel),
|
|
2083
|
+
childModel: (ctx) => {
|
|
2084
|
+
const model = pickChildModel(profileOf(ctx), parentModel(), catalog());
|
|
2085
|
+
return modelCall(() => model);
|
|
2086
|
+
},
|
|
2087
|
+
childSystemPrompt: (ctx) => buildSubagentPrompt(ctx.profile.instructions, promptContext()),
|
|
2088
|
+
childTools: (ctx) => {
|
|
2089
|
+
const all = registered();
|
|
2090
|
+
const names = childToolNames(profileOf(ctx), all, readOnly(ctx));
|
|
2091
|
+
return (names.length ? toolSpecs(names) : []).map((spec) => ({
|
|
2092
|
+
spec,
|
|
2093
|
+
readOnly: all.find((t) => t.name === spec.function.name)?.readOnly === true
|
|
2094
|
+
}));
|
|
2095
|
+
},
|
|
2096
|
+
execChildTool: async (call, ctx) => {
|
|
2097
|
+
if (!childToolNames(profileOf(ctx), registered(), readOnly(ctx)).includes(call.name)) {
|
|
2098
|
+
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.`;
|
|
2099
|
+
return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
|
|
2100
|
+
}
|
|
2101
|
+
const base = toolContext(ctx.signal);
|
|
2102
|
+
const toolCtx = { ...base, actor: { ...base.actor ?? {}, kind: "agent", nested: true, id: ctx.session.id } };
|
|
2103
|
+
try {
|
|
2104
|
+
const result = await runTool(call.name, call.argsText, toolCtx);
|
|
2105
|
+
return { ...call, ok: true, summary: result.summary, content: JSON.stringify(result.data ?? { ok: true, summary: result.summary }), images: result.images };
|
|
2106
|
+
} catch (err) {
|
|
2107
|
+
const message = err.message ?? String(err);
|
|
2108
|
+
return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
store: deps.store === null ? void 0 : deps.store ?? (typeof indexedDB === "undefined" ? void 0 : sessionStore(indexedDbStore(AGENT_SESSIONS_DB), "editor")),
|
|
2112
|
+
onEvent: (event) => reportChildTool(runtimeRef, event)
|
|
2113
|
+
};
|
|
2114
|
+
}
|
|
2115
|
+
var runtimeRef = null;
|
|
2116
|
+
var MAX_STEPS = 50;
|
|
2117
|
+
var activity = /* @__PURE__ */ new Map();
|
|
2118
|
+
var activityListeners = /* @__PURE__ */ new Set();
|
|
2119
|
+
function recordStep(event) {
|
|
2120
|
+
if (event.type !== "tool-start" && event.type !== "tool-end") return;
|
|
2121
|
+
const name = event.name ?? "";
|
|
2122
|
+
const steps = [...activity.get(event.sessionId) ?? []];
|
|
2123
|
+
if (event.type === "tool-start") steps.push({ name, status: "running" });
|
|
2124
|
+
else {
|
|
2125
|
+
const i = steps.findLastIndex((s) => s.name === name && s.status === "running");
|
|
2126
|
+
const step = { name, status: event.ok ? "done" : "error", summary: event.summary ?? void 0 };
|
|
2127
|
+
if (i >= 0) steps[i] = step;
|
|
2128
|
+
else steps.push(step);
|
|
2129
|
+
}
|
|
2130
|
+
activity.set(event.sessionId, steps.slice(-MAX_STEPS));
|
|
2131
|
+
for (const l of activityListeners) l();
|
|
2132
|
+
}
|
|
2133
|
+
function reportChildTool(runtime, event) {
|
|
2134
|
+
recordStep(event);
|
|
2135
|
+
if (!childToolListener || event.type !== "tool-start" && event.type !== "tool-end") return;
|
|
2136
|
+
const session2 = runtime?.get(event.sessionId);
|
|
2137
|
+
if (!session2) return;
|
|
2138
|
+
const jobId = session2.background ? session2.id : void 0;
|
|
2139
|
+
childToolListener({
|
|
2140
|
+
profile: session2.profile,
|
|
2141
|
+
toolCallId: session2.parentCallId ?? void 0,
|
|
2142
|
+
jobId,
|
|
2143
|
+
job: jobId,
|
|
2144
|
+
name: event.name ?? "",
|
|
2145
|
+
status: event.type === "tool-start" ? "running" : event.ok ? "done" : "error",
|
|
2146
|
+
summary: event.type === "tool-end" ? event.summary ?? void 0 : void 0
|
|
2147
|
+
});
|
|
2148
|
+
}
|
|
2149
|
+
function agentRuntime() {
|
|
2150
|
+
if (!runtimeRef) {
|
|
2151
|
+
runtimeRef = createAgentRuntime2(subagentHost());
|
|
2152
|
+
void runtimeRef.load();
|
|
2153
|
+
}
|
|
2154
|
+
return runtimeRef;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
// lib/agent/tools/subagent-tools.ts
|
|
2158
|
+
var MAX_WAIT_MS = 6e5;
|
|
2159
|
+
var DEFAULT_WAIT_MS = 12e4;
|
|
2160
|
+
function subagentDelegate(deps = {}) {
|
|
2161
|
+
const runtime = deps.runtime ?? agentRuntime;
|
|
2162
|
+
return async (raw) => {
|
|
2163
|
+
const request = raw;
|
|
2164
|
+
const rt = runtime();
|
|
2165
|
+
await rt.load();
|
|
2166
|
+
switch (request.op) {
|
|
2167
|
+
case "spawn": {
|
|
2168
|
+
const r = await rt.spawn({
|
|
2169
|
+
profileId: request.profileId,
|
|
2170
|
+
prompt: request.prompt,
|
|
2171
|
+
description: request.description,
|
|
2172
|
+
readOnly: deps.readOnly === true || request.readOnly === true,
|
|
2173
|
+
background: request.background,
|
|
2174
|
+
signal: deps.signal,
|
|
2175
|
+
parentCallId: request.callId
|
|
2176
|
+
});
|
|
2177
|
+
if (r.kind === "refused") return { kind: "refused", reason: r.reason };
|
|
2178
|
+
if (r.kind === "started") return { kind: "job", jobId: r.id };
|
|
2179
|
+
return { kind: "result", jobId: r.id, ok: r.ok, rounds: r.rounds, summary: r.summary };
|
|
2180
|
+
}
|
|
2181
|
+
case "await": {
|
|
2182
|
+
const ms = Math.min(Math.max(request.timeoutMs ?? DEFAULT_WAIT_MS, 1e3), MAX_WAIT_MS);
|
|
2183
|
+
const s = await rt.wait(request.jobId, { timeoutMs: ms, signal: deps.signal });
|
|
2184
|
+
if (!s) return { kind: "unknown-job", jobId: request.jobId };
|
|
2185
|
+
if (s.status !== "running" && s.status !== "queued") rt.dismissFinished(s.id);
|
|
2186
|
+
return { kind: "status", jobId: s.id, status: s.status, summary: s.summary ?? "" };
|
|
2187
|
+
}
|
|
2188
|
+
case "message": {
|
|
2189
|
+
const r = await rt.message(request.jobId, request.text, { wait: request.wait === true, signal: deps.signal });
|
|
2190
|
+
if (r.kind === "unknown") return { kind: "unknown-job", jobId: request.jobId };
|
|
2191
|
+
if (r.kind === "queued") return { kind: "delivered", jobId: r.id, resumed: false };
|
|
2192
|
+
if (r.kind === "resumed") return { kind: "delivered", jobId: r.id, resumed: true };
|
|
2193
|
+
return { kind: "result", jobId: r.id, ok: r.ok, rounds: 0, summary: r.summary };
|
|
2194
|
+
}
|
|
2195
|
+
case "stop":
|
|
2196
|
+
return { kind: "stopped", jobId: request.jobId, stopped: rt.stop(request.jobId) };
|
|
2197
|
+
case "list":
|
|
2198
|
+
return {
|
|
2199
|
+
kind: "list",
|
|
2200
|
+
agents: rt.list().map((s) => ({ id: s.id, profile: s.profile, description: s.description, status: s.status, summary: s.summary ?? void 0 }))
|
|
2201
|
+
};
|
|
2202
|
+
}
|
|
2203
|
+
};
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
// lib/commands/delegate.ts
|
|
2207
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2208
|
+
var TASK_DESCRIPTION = [
|
|
2209
|
+
"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.",
|
|
2210
|
+
"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.",
|
|
2211
|
+
"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."
|
|
2212
|
+
].join("\n\n");
|
|
2213
|
+
var delegateTask = defineCommand({
|
|
2214
|
+
id: "delegate.task",
|
|
2215
|
+
title: "Delegate to a subagent",
|
|
2216
|
+
domain: "delegate",
|
|
2217
|
+
// NOT harmless: a background task or a full-tool child obviously edits the document. The loop's
|
|
2218
|
+
// `readOnly` flag means "independent of the other calls in this batch", which a subagent spawn is, so
|
|
2219
|
+
// the agent exposure keeps saying true while the honest effect says document.
|
|
2220
|
+
effect: "document",
|
|
2221
|
+
permission: null,
|
|
2222
|
+
needs: ["delegate"],
|
|
2223
|
+
params: external_exports.object({
|
|
2224
|
+
subagent_type: external_exports.string().describe("Profile id \u2014 one of the profiles listed in your system prompt (list_profiles for the full set)."),
|
|
2225
|
+
prompt: external_exports.string().describe("The self-contained task. The child does not see this conversation."),
|
|
2226
|
+
description: external_exports.string().optional().describe('Short label for the panel row, e.g. "Survey the pricing page".'),
|
|
2227
|
+
readonly: external_exports.boolean().optional().describe("Force read-only tools for this child, whatever the profile allows."),
|
|
2228
|
+
run_in_background: external_exports.boolean().optional().describe("Return a job id immediately and notify you when the child finishes.")
|
|
2229
|
+
}),
|
|
2230
|
+
expose: {
|
|
2231
|
+
agent: { name: "task", description: TASK_DESCRIPTION, readOnly: true }
|
|
2232
|
+
},
|
|
2233
|
+
run: async (args, ctx) => {
|
|
2234
|
+
const reply = await ctx.use("delegate")({
|
|
2235
|
+
op: "spawn",
|
|
2236
|
+
profileId: args.subagent_type,
|
|
2237
|
+
prompt: args.prompt,
|
|
2238
|
+
description: args.description,
|
|
2239
|
+
readOnly: args.readonly === true,
|
|
2240
|
+
background: args.run_in_background,
|
|
2241
|
+
// omitted → the profile's `background` default (the SDK applies it)
|
|
2242
|
+
callId: ctx.callId
|
|
2243
|
+
});
|
|
2244
|
+
if (reply.kind === "refused") return { summary: "task refused (nested)", data: { error: reply.reason } };
|
|
2245
|
+
if (reply.kind === "job") {
|
|
2246
|
+
return {
|
|
2247
|
+
summary: `${args.subagent_type} started (${reply.jobId})`,
|
|
2248
|
+
data: {
|
|
2249
|
+
job_id: reply.jobId,
|
|
2250
|
+
status: "running",
|
|
2251
|
+
subagent_type: args.subagent_type,
|
|
2252
|
+
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."
|
|
2253
|
+
}
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
const result = reply;
|
|
2257
|
+
return {
|
|
2258
|
+
summary: `${args.subagent_type}: ${result.ok ? "done" : "failed"} in ${result.rounds} round${result.rounds === 1 ? "" : "s"}`,
|
|
2259
|
+
data: { job_id: result.jobId, subagent_type: args.subagent_type, ok: result.ok, rounds: result.rounds, summary: result.summary }
|
|
2260
|
+
};
|
|
2261
|
+
}
|
|
2262
|
+
});
|
|
2263
|
+
var delegateAwait = defineCommand({
|
|
2264
|
+
id: "delegate.await",
|
|
2265
|
+
title: "Wait for a subagent",
|
|
2266
|
+
domain: "delegate",
|
|
2267
|
+
effect: "document",
|
|
2268
|
+
permission: null,
|
|
2269
|
+
needs: ["delegate"],
|
|
2270
|
+
params: external_exports.object({
|
|
2271
|
+
job_id: external_exports.string().describe("The id a task call returned."),
|
|
2272
|
+
timeout_ms: external_exports.number().optional().describe("How long to wait at most, in ms (default 120000, at most 600000).")
|
|
2273
|
+
}),
|
|
2274
|
+
expose: {
|
|
2275
|
+
agent: {
|
|
2276
|
+
name: "await_job",
|
|
2277
|
+
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.",
|
|
2278
|
+
readOnly: true
|
|
2279
|
+
}
|
|
2280
|
+
},
|
|
2281
|
+
run: async (args, ctx) => {
|
|
2282
|
+
const reply = await ctx.use("delegate")({ op: "await", jobId: args.job_id, timeoutMs: args.timeout_ms });
|
|
2283
|
+
if (reply.kind === "unknown-job") {
|
|
2284
|
+
return { summary: `No job ${args.job_id}`, data: { error: `No background task with id "${args.job_id}".` } };
|
|
2285
|
+
}
|
|
2286
|
+
const status = reply;
|
|
2287
|
+
if (status.status === "running" || status.status === "queued") {
|
|
2288
|
+
return {
|
|
2289
|
+
summary: `${args.job_id}: ${status.status}`,
|
|
2290
|
+
data: {
|
|
2291
|
+
job_id: args.job_id,
|
|
2292
|
+
status: status.status,
|
|
2293
|
+
note: "Still going after the wait. Carry on with other work; its summary is delivered to you automatically when it lands."
|
|
2294
|
+
}
|
|
2295
|
+
};
|
|
2296
|
+
}
|
|
2297
|
+
return { summary: `${args.job_id}: ${status.status}`, data: { job_id: args.job_id, status: status.status, summary: status.summary ?? "" } };
|
|
2298
|
+
}
|
|
2299
|
+
});
|
|
2300
|
+
var delegateMessage = defineCommand({
|
|
2301
|
+
id: "delegate.message",
|
|
2302
|
+
title: "Message a subagent",
|
|
2303
|
+
domain: "delegate",
|
|
2304
|
+
// A message can resume a builder, which edits the document.
|
|
2305
|
+
effect: "document",
|
|
2306
|
+
permission: null,
|
|
2307
|
+
needs: ["delegate"],
|
|
2308
|
+
params: external_exports.object({
|
|
2309
|
+
job_id: external_exports.string().describe("The id a task call returned."),
|
|
2310
|
+
message: external_exports.string().describe("What to tell it: a correction, an answer to its question, or the next piece of work."),
|
|
2311
|
+
wait: external_exports.boolean().optional().describe("For a finished subagent: resume it and wait for its answer now.")
|
|
2312
|
+
}),
|
|
2313
|
+
expose: {
|
|
2314
|
+
agent: {
|
|
2315
|
+
name: "send_message",
|
|
2316
|
+
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.",
|
|
2317
|
+
readOnly: true
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
run: async (args, ctx) => {
|
|
2321
|
+
const reply = await ctx.use("delegate")({ op: "message", jobId: args.job_id, text: args.message, wait: args.wait === true });
|
|
2322
|
+
if (reply.kind === "unknown-job") return { summary: `No subagent ${args.job_id}`, data: { error: `No subagent with id "${args.job_id}".` } };
|
|
2323
|
+
if (reply.kind === "delivered") {
|
|
2324
|
+
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." } };
|
|
2325
|
+
}
|
|
2326
|
+
const result = reply;
|
|
2327
|
+
return { summary: `${args.job_id}: ${result.ok ? "answered" : "failed"}`, data: { job_id: args.job_id, ok: result.ok, summary: result.summary } };
|
|
2328
|
+
}
|
|
2329
|
+
});
|
|
2330
|
+
var delegateStop = defineCommand({
|
|
2331
|
+
id: "delegate.stop",
|
|
2332
|
+
title: "Stop a subagent",
|
|
2333
|
+
domain: "delegate",
|
|
2334
|
+
effect: "none",
|
|
2335
|
+
permission: null,
|
|
2336
|
+
needs: ["delegate"],
|
|
2337
|
+
params: external_exports.object({ job_id: external_exports.string().describe("The id a task call returned.") }),
|
|
2338
|
+
expose: { agent: { name: "stop_agent", description: "Stop one running subagent by id. Edits it already made stay.", readOnly: true } },
|
|
2339
|
+
run: async (args, ctx) => {
|
|
2340
|
+
const reply = await ctx.use("delegate")({ op: "stop", jobId: args.job_id });
|
|
2341
|
+
const stopped = reply.kind === "stopped" && reply.stopped;
|
|
2342
|
+
return { summary: stopped ? `${args.job_id}: stopped` : `${args.job_id}: not running`, data: { job_id: args.job_id, stopped } };
|
|
2343
|
+
}
|
|
2344
|
+
});
|
|
2345
|
+
var delegateList = defineCommand({
|
|
2346
|
+
id: "delegate.list",
|
|
2347
|
+
title: "List subagents",
|
|
2348
|
+
domain: "delegate",
|
|
2349
|
+
effect: "none",
|
|
2350
|
+
permission: null,
|
|
2351
|
+
needs: ["delegate"],
|
|
2352
|
+
params: external_exports.object({}),
|
|
2353
|
+
expose: { agent: { name: "list_agents", description: "List your subagents: id, profile, what each was asked, its status and its last summary.", readOnly: true } },
|
|
2354
|
+
run: async (_args, ctx) => {
|
|
2355
|
+
const reply = await ctx.use("delegate")({ op: "list" });
|
|
2356
|
+
const agents = reply.kind === "list" ? reply.agents : [];
|
|
2357
|
+
return {
|
|
2358
|
+
summary: `${agents.length} subagent${agents.length === 1 ? "" : "s"}`,
|
|
2359
|
+
data: { agents: agents.map((a) => ({ job_id: a.id, subagent_type: a.profile, description: a.description, status: a.status, summary: a.summary })) }
|
|
2360
|
+
};
|
|
2361
|
+
}
|
|
2362
|
+
});
|
|
2363
|
+
var profileList = defineCommand({
|
|
2364
|
+
id: "delegate.listProfiles",
|
|
2365
|
+
title: "List subagent profiles",
|
|
2366
|
+
domain: "delegate",
|
|
2367
|
+
effect: "none",
|
|
2368
|
+
permission: null,
|
|
2369
|
+
params: external_exports.object({}),
|
|
2370
|
+
expose: {
|
|
2371
|
+
agent: {
|
|
2372
|
+
name: "list_profiles",
|
|
2373
|
+
description: "List the subagent profiles you can delegate to with task (id, what each is for, when to use it)."
|
|
2374
|
+
}
|
|
2375
|
+
},
|
|
2376
|
+
run: () => {
|
|
2377
|
+
const profiles = allProfiles();
|
|
2378
|
+
return {
|
|
2379
|
+
summary: `${profiles.length} profile${profiles.length === 1 ? "" : "s"}`,
|
|
2380
|
+
data: {
|
|
2381
|
+
profiles: profiles.map((p) => ({
|
|
2382
|
+
id: p.id,
|
|
2383
|
+
name: p.name,
|
|
2384
|
+
description: p.description,
|
|
2385
|
+
whenToUse: p.whenToUse,
|
|
2386
|
+
readOnly: p.readOnly,
|
|
2387
|
+
tools: p.tools,
|
|
2388
|
+
maxRounds: p.maxRounds
|
|
2389
|
+
}))
|
|
2390
|
+
}
|
|
2391
|
+
};
|
|
2392
|
+
}
|
|
2393
|
+
});
|
|
2394
|
+
var profileRead = defineCommand({
|
|
2395
|
+
id: "delegate.readProfile",
|
|
2396
|
+
title: "Read a subagent profile",
|
|
2397
|
+
domain: "delegate",
|
|
2398
|
+
effect: "none",
|
|
2399
|
+
permission: null,
|
|
2400
|
+
params: external_exports.object({ id: external_exports.string().describe('The profile id, e.g. "inspector".') }),
|
|
2401
|
+
expose: {
|
|
2402
|
+
agent: {
|
|
2403
|
+
name: "read_profile",
|
|
2404
|
+
description: "Read a subagent profile in full \u2014 its instructions, tool allowlist and round budget \u2014 before you delegate to it."
|
|
2405
|
+
}
|
|
2406
|
+
},
|
|
2407
|
+
run: ({ id }) => {
|
|
2408
|
+
const profile = findProfile(id);
|
|
2409
|
+
if (!profile) {
|
|
2410
|
+
return { summary: `No profile "${id}"`, data: { error: `No subagent profile with id "${id}".`, available: allProfiles().map(profileIndexLine) } };
|
|
2411
|
+
}
|
|
2412
|
+
return {
|
|
2413
|
+
summary: `Read profile: ${profile.name}`,
|
|
2414
|
+
data: { id: profile.id, name: profile.name, readOnly: profile.readOnly, tools: profile.tools, maxRounds: profile.maxRounds, instructions: profile.instructions }
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
});
|
|
2418
|
+
var delegateCommands = [delegateTask, delegateAwait, delegateMessage, delegateStop, delegateList, profileList, profileRead];
|
|
2419
|
+
function registerDelegateCommands() {
|
|
2420
|
+
registerCommand(...delegateCommands);
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
// lib/commands/skill.ts
|
|
2424
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2425
|
+
var skillList = defineCommand({
|
|
2426
|
+
id: "skill.list",
|
|
2427
|
+
title: "List skills",
|
|
2428
|
+
domain: "skill",
|
|
2429
|
+
effect: "none",
|
|
2430
|
+
// The skill sheets are the agent's own instructions, not the user's document.
|
|
2431
|
+
permission: null,
|
|
2432
|
+
params: external_exports.object({}),
|
|
2433
|
+
expose: {
|
|
2434
|
+
agent: {
|
|
2435
|
+
name: "list_skills",
|
|
2436
|
+
description: "List the available skills (name, what they are for, and when to use them). The full instructions come from read_skill."
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2439
|
+
run: () => {
|
|
2440
|
+
const skills = allSkills();
|
|
2441
|
+
return {
|
|
2442
|
+
summary: `${skills.length} skill${skills.length === 1 ? "" : "s"}`,
|
|
2443
|
+
data: { skills: skills.map((s) => ({ id: s.id, name: s.name, description: s.description, whenToUse: s.whenToUse, tools: s.tools })) }
|
|
2444
|
+
};
|
|
2445
|
+
}
|
|
2446
|
+
});
|
|
2447
|
+
var skillRead = defineCommand({
|
|
2448
|
+
id: "skill.read",
|
|
2449
|
+
title: "Read a skill",
|
|
2450
|
+
domain: "skill",
|
|
2451
|
+
effect: "none",
|
|
2452
|
+
permission: null,
|
|
2453
|
+
params: external_exports.object({ id: external_exports.string().describe('The skill id, e.g. "fill-content".') }),
|
|
2454
|
+
expose: {
|
|
2455
|
+
agent: {
|
|
2456
|
+
name: "read_skill",
|
|
2457
|
+
description: "Read a skill\u2019s full instructions by id. Do this before following a skill; the system prompt only carries the summaries."
|
|
2458
|
+
}
|
|
2459
|
+
},
|
|
2460
|
+
run: ({ id }) => {
|
|
2461
|
+
const skill = findSkill(id);
|
|
2462
|
+
if (!skill) {
|
|
2463
|
+
return {
|
|
2464
|
+
summary: `No skill "${id}"`,
|
|
2465
|
+
data: { error: `No skill with id "${id}".`, available: allSkills().map(skillIndexLine) }
|
|
2466
|
+
};
|
|
2467
|
+
}
|
|
2468
|
+
return {
|
|
2469
|
+
summary: `Read skill: ${skill.name}`,
|
|
2470
|
+
data: { id: skill.id, name: skill.name, tools: skill.tools, instructions: skill.instructions }
|
|
2471
|
+
};
|
|
2472
|
+
}
|
|
2473
|
+
});
|
|
2474
|
+
var skillCommands = [skillList, skillRead];
|
|
2475
|
+
function registerSkillCommands() {
|
|
2476
|
+
registerCommand(...skillCommands);
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
// lib/agent/parts.ts
|
|
2480
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2481
|
+
function todoItemsFrom(rows) {
|
|
2482
|
+
if (!Array.isArray(rows)) return null;
|
|
2483
|
+
return rows.map((row) => {
|
|
2484
|
+
const t = row ?? {};
|
|
2485
|
+
return {
|
|
2486
|
+
text: String(t.title ?? t.text ?? ""),
|
|
2487
|
+
done: typeof t.done === "boolean" ? t.done : t.status === "done"
|
|
2488
|
+
};
|
|
2489
|
+
});
|
|
2490
|
+
}
|
|
2491
|
+
var textOf2 = (m) => m.parts.filter((p) => p.type === "text").map((p) => p.text).join("");
|
|
2492
|
+
function pushTextDelta(parts, delta) {
|
|
2493
|
+
const last = parts[parts.length - 1];
|
|
2494
|
+
if (last?.type === "text") {
|
|
2495
|
+
parts[parts.length - 1] = { type: "text", text: last.text + delta };
|
|
2496
|
+
return parts;
|
|
2497
|
+
}
|
|
2498
|
+
return [...parts, { type: "text", text: delta }];
|
|
2499
|
+
}
|
|
2500
|
+
function pushReasoningDelta(parts, delta) {
|
|
2501
|
+
const last = parts[parts.length - 1];
|
|
2502
|
+
if (last?.type === "reasoning") {
|
|
2503
|
+
parts[parts.length - 1] = { type: "reasoning", text: last.text + delta };
|
|
2504
|
+
return parts;
|
|
2505
|
+
}
|
|
2506
|
+
return [...parts, { type: "reasoning", text: delta }];
|
|
2507
|
+
}
|
|
2508
|
+
function upsertToolPart(parts, part) {
|
|
2509
|
+
const i = parts.findIndex((p) => p.type === "tool" && p.id === part.id);
|
|
2510
|
+
if (i < 0) return [...parts, part];
|
|
2511
|
+
const next = [...parts];
|
|
2512
|
+
next[i] = { ...next[i], ...part };
|
|
2513
|
+
return next;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
// lib/agent/runner.ts
|
|
2517
|
+
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"];
|
|
2518
|
+
var MAX_HISTORY_MESSAGES = 24;
|
|
2519
|
+
var MAX_PARALLEL_TOOLS = 4;
|
|
2520
|
+
var TURN_MAX_ROUNDS = 500;
|
|
2521
|
+
function needsEditableSession(name) {
|
|
2522
|
+
const tool = getTool(name);
|
|
2523
|
+
if (tool?.readOnly) return false;
|
|
2524
|
+
if (tool?.interactive) return false;
|
|
2525
|
+
return true;
|
|
2526
|
+
}
|
|
2527
|
+
function guardEdit(name) {
|
|
2528
|
+
if (!needsEditableSession(name)) return;
|
|
2529
|
+
const reason = editBlockReason();
|
|
2530
|
+
if (reason) throw new ToolError(`${name} cannot run: ${reason}`);
|
|
2531
|
+
}
|
|
2532
|
+
function historyMessages() {
|
|
2533
|
+
return activeMessages().slice(-MAX_HISTORY_MESSAGES).map((m) => ({ role: m.role, content: textOf2(m).trim() })).filter((m) => !!m.content);
|
|
2534
|
+
}
|
|
2535
|
+
function systemMessage(skillId, mentions = []) {
|
|
2536
|
+
const st = useEditorStore.getState();
|
|
2537
|
+
return {
|
|
2538
|
+
role: "system",
|
|
2539
|
+
content: buildSystemPrompt({
|
|
2540
|
+
doc: st.document,
|
|
2541
|
+
pageId: st.currentPageId,
|
|
2542
|
+
selection: st.selection,
|
|
2543
|
+
camera: st.camera,
|
|
2544
|
+
viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
|
|
2545
|
+
activeSkillId: skillId,
|
|
2546
|
+
readOnly: !!editBlockReason(),
|
|
2547
|
+
mentions
|
|
2548
|
+
})
|
|
2549
|
+
};
|
|
2550
|
+
}
|
|
2551
|
+
var registerTurnTools = (deps) => {
|
|
2552
|
+
registerBuiltinTools();
|
|
2553
|
+
registerSkillCommands();
|
|
2554
|
+
registerDelegateCommands();
|
|
2555
|
+
registerDangerousCommands();
|
|
2556
|
+
provideAgentCapability("delegate", subagentDelegate(deps));
|
|
2557
|
+
};
|
|
2558
|
+
var specsFor = (skillId) => {
|
|
2559
|
+
const skill = skillId ? findSkill(skillId) : void 0;
|
|
2560
|
+
return skill?.tools.length ? toolSpecs([.../* @__PURE__ */ new Set([...skill.tools, ...ALWAYS_ALLOWED])]) : toolSpecs();
|
|
2561
|
+
};
|
|
2562
|
+
var loopTools = (skillId) => specsFor(skillId).map((spec) => ({ spec, readOnly: getTool(spec.function.name)?.readOnly === true }));
|
|
2563
|
+
function syncTodos(run) {
|
|
2564
|
+
if (run.name !== "manage_todos" || !run.ok) return;
|
|
2565
|
+
try {
|
|
2566
|
+
const data = JSON.parse(run.content);
|
|
2567
|
+
const items = todoItemsFrom(data.todos);
|
|
2568
|
+
if (items) setTodos(items);
|
|
2569
|
+
} catch {
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
var runs;
|
|
2573
|
+
var agentRuns = () => runs ??= serialRuns(runStore(indexedDbStore(AGENT_SESSIONS_DB), "editor"));
|
|
2574
|
+
var setAgentRuns = (store) => {
|
|
2575
|
+
runs = store && serialRuns(store);
|
|
2576
|
+
};
|
|
2577
|
+
var RESUME_WINDOW_MS = 30 * 6e4;
|
|
2578
|
+
var MAX_INTERRUPTIONS = 6;
|
|
2579
|
+
var SUSPEND_RESTART_MS = 5e3;
|
|
2580
|
+
var STOPPED_MESSAGE = "Stopped. Any edits already applied are still there.";
|
|
2581
|
+
async function runTurn(text, mentions = []) {
|
|
2582
|
+
const availability = aiAvailability();
|
|
2583
|
+
if (!availability.ok) {
|
|
2584
|
+
useAgentStore.setState({ error: { message: availability.message, code: availability.reason } });
|
|
2585
|
+
return;
|
|
2586
|
+
}
|
|
2587
|
+
if (!agentModel()) {
|
|
2588
|
+
useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
|
|
2589
|
+
return;
|
|
2590
|
+
}
|
|
2591
|
+
const skillId = mentions.find((m) => m.kind === "skill")?.id ?? useAgentStore.getState().skillId;
|
|
2592
|
+
const checkpoint = rememberCheckpoint(useEditorStore.getState().document);
|
|
2593
|
+
const user = { id: newId(), role: "user", parts: [{ type: "text", text }], createdAt: Date.now() };
|
|
2594
|
+
appendMessage(user);
|
|
2595
|
+
const assistantId = newId();
|
|
2596
|
+
appendMessage({ id: assistantId, role: "assistant", parts: [], createdAt: Date.now(), checkpoint });
|
|
2597
|
+
const s = useAgentStore.getState();
|
|
2598
|
+
const meta = {
|
|
2599
|
+
documentId: s.documentId ?? useEditorStore.getState().document.id,
|
|
2600
|
+
threadId: s.activeThreadId ?? "",
|
|
2601
|
+
assistantId,
|
|
2602
|
+
skillId,
|
|
2603
|
+
mentions,
|
|
2604
|
+
wantsChange: wantsChange(text)
|
|
2605
|
+
};
|
|
2606
|
+
await drive(meta, { messages: [systemMessage(skillId, mentions), ...historyMessages()], checkpoint });
|
|
2607
|
+
}
|
|
2608
|
+
async function resumeInterrupted(documentId) {
|
|
2609
|
+
if (useAgentStore.getState().running) return false;
|
|
2610
|
+
const store = agentRuns();
|
|
2611
|
+
let list;
|
|
2612
|
+
try {
|
|
2613
|
+
list = await interruptedRuns(store);
|
|
2614
|
+
} catch {
|
|
2615
|
+
return false;
|
|
2616
|
+
}
|
|
2617
|
+
const mine = list.filter((r) => r.meta?.documentId === documentId).sort((a, b) => b.updatedAt - a.updatedAt);
|
|
2618
|
+
const [latest, ...rest] = mine;
|
|
2619
|
+
for (const r of rest) await store.save({ ...r, status: "stopped", updatedAt: Date.now() });
|
|
2620
|
+
if (!latest) return false;
|
|
2621
|
+
if (Date.now() - latest.updatedAt > RESUME_WINDOW_MS || !findMessage(latest.meta)) {
|
|
2622
|
+
await store.save({ ...latest, status: "stopped", updatedAt: Date.now() });
|
|
2623
|
+
return false;
|
|
2624
|
+
}
|
|
2625
|
+
if (useAgentStore.getState().running) return false;
|
|
2626
|
+
await drive(latest.meta, { resume: latest });
|
|
2627
|
+
return true;
|
|
2628
|
+
}
|
|
2629
|
+
async function continueTurn() {
|
|
2630
|
+
const s = useAgentStore.getState();
|
|
2631
|
+
if (s.running) return false;
|
|
2632
|
+
const messages = activeMessages();
|
|
2633
|
+
const last = [...messages].reverse().find((m) => m.role === "assistant");
|
|
2634
|
+
if (!last) return false;
|
|
2635
|
+
const record = await agentRuns().get(last.id).catch(() => null);
|
|
2636
|
+
if (record?.meta && record.meta.threadId === s.activeThreadId) {
|
|
2637
|
+
await drive(record.meta, { resume: { ...record, status: "running" } });
|
|
2638
|
+
return true;
|
|
2639
|
+
}
|
|
2640
|
+
const ask = [...messages].reverse().find((m) => m.role === "user");
|
|
2641
|
+
if (!ask) return false;
|
|
2642
|
+
await runTurn(textOf2(ask));
|
|
2643
|
+
return true;
|
|
2644
|
+
}
|
|
2645
|
+
function findMessage(meta) {
|
|
2646
|
+
if (!meta) return void 0;
|
|
2647
|
+
return useAgentStore.getState().threads.find((t) => t.id === meta.threadId)?.messages.find((m) => m.id === meta.assistantId);
|
|
2648
|
+
}
|
|
2649
|
+
function installPageHandlers() {
|
|
2650
|
+
if (typeof window === "undefined") return () => {
|
|
2651
|
+
};
|
|
2652
|
+
const save = () => persistThreads();
|
|
2653
|
+
const onVisibility = () => {
|
|
2654
|
+
if (document.visibilityState === "hidden") save();
|
|
2655
|
+
};
|
|
2656
|
+
window.addEventListener("pagehide", save);
|
|
2657
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
2658
|
+
return () => {
|
|
2659
|
+
window.removeEventListener("pagehide", save);
|
|
2660
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
2661
|
+
};
|
|
2662
|
+
}
|
|
2663
|
+
function resilientModel(model, turn, parts) {
|
|
2664
|
+
return async (messages, specs, hooks, _signal, request) => {
|
|
2665
|
+
await whenResumable(void 0, turn);
|
|
2666
|
+
const call = new AbortController();
|
|
2667
|
+
const onTurnAbort = () => call.abort();
|
|
2668
|
+
turn.addEventListener("abort", onTurnAbort);
|
|
2669
|
+
let hiddenAt = 0;
|
|
2670
|
+
const onVisibility = () => {
|
|
2671
|
+
if (document.visibilityState === "hidden") hiddenAt = Date.now();
|
|
2672
|
+
else if (hiddenAt && Date.now() - hiddenAt > SUSPEND_RESTART_MS) call.abort();
|
|
2673
|
+
};
|
|
2674
|
+
if (typeof document !== "undefined") document.addEventListener("visibilitychange", onVisibility);
|
|
2675
|
+
const base = parts.get();
|
|
2676
|
+
try {
|
|
2677
|
+
const cut = new Promise((_, reject) => call.signal.addEventListener("abort", () => reject(new Error("aborted")), { once: true }));
|
|
2678
|
+
cut.catch(() => {
|
|
2679
|
+
});
|
|
2680
|
+
return await Promise.race([model(messages, specs, hooks, call.signal, request), cut]);
|
|
2681
|
+
} catch (err) {
|
|
2682
|
+
parts.set(base);
|
|
2683
|
+
if (call.signal.aborted && !turn.aborted) throw { message: "The stream was interrupted.", code: "interrupted" };
|
|
2684
|
+
throw err;
|
|
2685
|
+
} finally {
|
|
2686
|
+
turn.removeEventListener("abort", onTurnAbort);
|
|
2687
|
+
if (typeof document !== "undefined") document.removeEventListener("visibilitychange", onVisibility);
|
|
2688
|
+
}
|
|
2689
|
+
};
|
|
2690
|
+
}
|
|
2691
|
+
async function drive(meta, start) {
|
|
2692
|
+
const model = agentModel();
|
|
2693
|
+
if (!model) {
|
|
2694
|
+
useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
|
|
2695
|
+
return;
|
|
2696
|
+
}
|
|
2697
|
+
const store = agentRuns();
|
|
2698
|
+
const id = meta.assistantId;
|
|
2699
|
+
const before = useEditorStore.getState().document;
|
|
2700
|
+
if (useAgentStore.getState().activeThreadId !== meta.threadId) useAgentStore.setState({ activeThreadId: meta.threadId });
|
|
2701
|
+
let checkpoint = "checkpoint" in start ? start.checkpoint : findMessage(meta)?.checkpoint;
|
|
2702
|
+
if (!checkpoint) {
|
|
2703
|
+
checkpoint = rememberCheckpoint(before);
|
|
2704
|
+
updateMessage(id, (m) => ({ ...m, checkpoint }), { save: false });
|
|
2705
|
+
}
|
|
2706
|
+
const ledger = createToolLedger(meta.ledger);
|
|
2707
|
+
let parts = [...findMessage(meta)?.parts ?? []].filter((p) => !(p.type === "error" && p.message === STOPPED_MESSAGE));
|
|
2708
|
+
const flush = (save = false) => setParts(id, parts, { save });
|
|
2709
|
+
if ("resume" in start) {
|
|
2710
|
+
parts = parts.map((p) => {
|
|
2711
|
+
if (p.type !== "tool" || p.status !== "running") return p;
|
|
2712
|
+
const done = ledger.get(p.id);
|
|
2713
|
+
return done ? { ...p, status: done.ok ? "done" : "error", summary: done.summary, result: done.content } : { ...p, status: "error", summary: "interrupted", error: "interrupted" };
|
|
2714
|
+
});
|
|
2715
|
+
parts = [...parts, { type: "notice", kind: "resumed" }];
|
|
2716
|
+
flush(true);
|
|
2717
|
+
}
|
|
2718
|
+
const abort = new AbortController();
|
|
2719
|
+
useAgentStore.setState({ running: true, resuming: false, abort, error: null });
|
|
2720
|
+
const ctx = editorToolContext(abort.signal);
|
|
2721
|
+
const { createDesignPreview, DESIGN_TOOL } = await import("./live-I3B4GRH3.js");
|
|
2722
|
+
const preview = createDesignPreview();
|
|
2723
|
+
const readOnly = !!editBlockReason();
|
|
2724
|
+
registerTurnTools({ readOnly, signal: abort.signal });
|
|
2725
|
+
const runtime = agentRuntime();
|
|
2726
|
+
const tools = loopTools(meta.skillId);
|
|
2727
|
+
const canWrite = !readOnly && meta.wantsChange;
|
|
2728
|
+
const writeTool = tools.some((t) => t.spec.function.name === DESIGN_TOOL) ? DESIGN_TOOL : null;
|
|
2729
|
+
const guard = createActionGuard({ enabled: canWrite, writeTool, initial: meta.guard });
|
|
2730
|
+
let pending = null;
|
|
2731
|
+
let saving = Promise.resolve();
|
|
2732
|
+
const saveMeta = () => {
|
|
2733
|
+
meta.guard = guard.state();
|
|
2734
|
+
meta.ledger = ledger.entries();
|
|
2735
|
+
meta.pending = pending;
|
|
2736
|
+
const rec = store.peek(id);
|
|
2737
|
+
if (rec) saving = store.save({ ...rec, meta: { ...meta }, updatedAt: Date.now() }).catch(() => {
|
|
2738
|
+
});
|
|
2739
|
+
return saving;
|
|
2740
|
+
};
|
|
2741
|
+
const offPage = installPageHandlers();
|
|
2742
|
+
let interruptions = 0;
|
|
2743
|
+
let resumeFrom = "resume" in start ? start.resume : null;
|
|
2744
|
+
try {
|
|
2745
|
+
while (true) {
|
|
2746
|
+
const options = {
|
|
2747
|
+
tools,
|
|
2748
|
+
meta,
|
|
2749
|
+
stopped: () => abort.signal.aborted,
|
|
2750
|
+
drainNotifications: () => {
|
|
2751
|
+
const notes = guard.drain();
|
|
2752
|
+
if (notes.length) {
|
|
2753
|
+
parts = [...parts, { type: "notice", kind: "read-budget" }];
|
|
2754
|
+
flush();
|
|
2755
|
+
}
|
|
2756
|
+
return [...notes, ...runtime.drainParentNotifications()];
|
|
2757
|
+
},
|
|
2758
|
+
maxParallel: MAX_PARALLEL_TOOLS,
|
|
2759
|
+
maxRounds: TURN_MAX_ROUNDS,
|
|
2760
|
+
modelRetries: 3,
|
|
2761
|
+
isRecoverable: (err) => !abort.signal.aborted && isInterruption(err),
|
|
2762
|
+
requireAction: canWrite ? { nudges: ACTION_NUDGES, message: ACTION_NUDGE } : false,
|
|
2763
|
+
toolChoice: () => guard.toolChoice(),
|
|
2764
|
+
callModel: resilientModel(agentModel2(() => model), abort.signal, { get: () => parts, set: (p) => {
|
|
2765
|
+
parts = p;
|
|
2766
|
+
flush();
|
|
2767
|
+
} }),
|
|
2768
|
+
checkpoint: async () => {
|
|
2769
|
+
pending = null;
|
|
2770
|
+
ledger.clear();
|
|
2771
|
+
await saveMeta();
|
|
2772
|
+
},
|
|
2773
|
+
execTool: (call) => runOnce(ledger, call, async () => {
|
|
2774
|
+
const row = { type: "tool", id: call.id, name: call.name, argsText: call.argsText, status: "running" };
|
|
2775
|
+
parts = upsertToolPart(parts, row);
|
|
2776
|
+
flush();
|
|
2777
|
+
const docBefore = useEditorStore.getState().document;
|
|
2778
|
+
try {
|
|
2779
|
+
if (call.name === DESIGN_TOOL) preview.end();
|
|
2780
|
+
guardEdit(call.name);
|
|
2781
|
+
const result = await runTool(call.name, call.argsText, { ...ctx, toolCallId: call.id });
|
|
2782
|
+
const content = JSON.stringify(result.data ?? { ok: true, summary: result.summary });
|
|
2783
|
+
parts = upsertToolPart(parts, { ...row, status: "done", summary: result.summary, result: content });
|
|
2784
|
+
for (const url of result.images ?? []) parts = [...parts, { type: "image", url, caption: call.name }];
|
|
2785
|
+
const acted = useEditorStore.getState().document !== docBefore;
|
|
2786
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: result.summary, content, images: result.images, acted };
|
|
2787
|
+
} catch (err) {
|
|
2788
|
+
const message = err.message ?? String(err);
|
|
2789
|
+
parts = upsertToolPart(parts, { ...row, status: "error", summary: message, error: message });
|
|
2790
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }), acted: false };
|
|
2791
|
+
} finally {
|
|
2792
|
+
flush(true);
|
|
2793
|
+
}
|
|
2794
|
+
}).then((run) => {
|
|
2795
|
+
void saveMeta();
|
|
2796
|
+
return run;
|
|
2797
|
+
}),
|
|
2798
|
+
hooks: {
|
|
2799
|
+
onAssistantStart: () => {
|
|
2800
|
+
pending = { text: "", calls: [] };
|
|
2801
|
+
},
|
|
2802
|
+
onTextDelta: (d) => {
|
|
2803
|
+
parts = pushTextDelta([...parts], d);
|
|
2804
|
+
if (pending) pending.text += d;
|
|
2805
|
+
flush();
|
|
2806
|
+
},
|
|
2807
|
+
onReasoningDelta: (d) => {
|
|
2808
|
+
parts = pushReasoningDelta([...parts], d);
|
|
2809
|
+
flush();
|
|
2810
|
+
},
|
|
2811
|
+
onToolProgress: (p) => preview.update(p.name, p.arguments),
|
|
2812
|
+
onToolStart: (call) => {
|
|
2813
|
+
pending?.calls.push({ id: call.id, name: call.name, argsText: call.argsText });
|
|
2814
|
+
void saveMeta();
|
|
2815
|
+
},
|
|
2816
|
+
onToolEnd: (run) => {
|
|
2817
|
+
guard.onRun(run, run.acted === true);
|
|
2818
|
+
syncTodos(run);
|
|
2819
|
+
},
|
|
2820
|
+
onRoundEnd: () => guard.onRoundEnd(),
|
|
2821
|
+
onNudge: () => {
|
|
2822
|
+
const count = guard.onNudge();
|
|
2823
|
+
parts = [...parts, { type: "notice", kind: "nudge", count, max: ACTION_NUDGES }];
|
|
2824
|
+
flush(true);
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
};
|
|
2828
|
+
try {
|
|
2829
|
+
let outcome;
|
|
2830
|
+
if (resumeFrom) {
|
|
2831
|
+
const cp = resumeFrom.checkpoint;
|
|
2832
|
+
const nudgesLeft = canWrite ? Math.max(0, ACTION_NUDGES - guard.state().nudges) : 0;
|
|
2833
|
+
const patched = { ...resumeFrom, status: "running", checkpoint: { ...cp, nudgesLeft, messages: resumeTranscript(cp.messages, meta.pending, meta.ledger) } };
|
|
2834
|
+
await store.save(patched);
|
|
2835
|
+
pending = null;
|
|
2836
|
+
outcome = await resumeRun(id, store, options);
|
|
2837
|
+
} else {
|
|
2838
|
+
if (!("messages" in start)) throw new Error("nothing to run");
|
|
2839
|
+
outcome = await runPersistent({ ...options, id, runs: store, messages: start.messages });
|
|
2840
|
+
}
|
|
2841
|
+
if (canWrite && !outcome.stopped && !outcome.acted && !guard.acted) parts = [...parts, { type: "notice", kind: "no-change" }];
|
|
2842
|
+
break;
|
|
2843
|
+
} catch (err) {
|
|
2844
|
+
if (abort.signal.aborted) break;
|
|
2845
|
+
const hidden = typeof document !== "undefined" && document.visibilityState === "hidden";
|
|
2846
|
+
if (isInterruption(err, hidden) && interruptions < MAX_INTERRUPTIONS) {
|
|
2847
|
+
interruptions++;
|
|
2848
|
+
await saving;
|
|
2849
|
+
const rec = await store.get(id);
|
|
2850
|
+
if (!rec) throw err;
|
|
2851
|
+
await store.save({ ...rec, status: "running", error: void 0, updatedAt: Date.now() });
|
|
2852
|
+
useAgentStore.setState({ resuming: true });
|
|
2853
|
+
persistThreads();
|
|
2854
|
+
await whenResumable(void 0, abort.signal, Math.min(3e4, 1e3 * 2 ** interruptions));
|
|
2855
|
+
if (abort.signal.aborted) break;
|
|
2856
|
+
useAgentStore.setState({ resuming: false });
|
|
2857
|
+
resumeFrom = await store.get(id);
|
|
2858
|
+
parts = [...parts, { type: "notice", kind: "resumed" }];
|
|
2859
|
+
flush(true);
|
|
2860
|
+
continue;
|
|
2861
|
+
}
|
|
2862
|
+
throw err;
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
} catch (err) {
|
|
2866
|
+
if (!abort.signal.aborted) {
|
|
2867
|
+
const message = err?.message ?? String(err);
|
|
2868
|
+
const code = err?.code;
|
|
2869
|
+
parts = [...parts, { type: "error", message, code }];
|
|
2870
|
+
}
|
|
2871
|
+
} finally {
|
|
2872
|
+
offPage();
|
|
2873
|
+
preview.end();
|
|
2874
|
+
if (abort.signal.aborted) {
|
|
2875
|
+
runtime.stopAll();
|
|
2876
|
+
parts = [...parts, { type: "error", message: STOPPED_MESSAGE }];
|
|
2877
|
+
}
|
|
2878
|
+
if (useEditorStore.getState().document === before) updateMessage(id, (m) => ({ ...m, checkpoint: void 0 }), { save: false });
|
|
2879
|
+
flush(true);
|
|
2880
|
+
updateActiveThread((t) => ({ ...t, checkpoint: { id: checkpoint, label: "Undo these changes" } }));
|
|
2881
|
+
useAgentStore.setState({ running: false, resuming: false, abort: null });
|
|
2882
|
+
}
|
|
2883
|
+
}
|
|
2884
|
+
export {
|
|
2885
|
+
agentRuns,
|
|
2886
|
+
continueTurn,
|
|
2887
|
+
editorToolContext,
|
|
2888
|
+
needsEditableSession,
|
|
2889
|
+
onChildTool,
|
|
2890
|
+
resumeInterrupted,
|
|
2891
|
+
runTurn,
|
|
2892
|
+
setAgentRuns
|
|
2893
|
+
};
|