@popcraft/kit 0.60.1 → 0.60.2
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-JRFCFLXV.js +44 -0
- package/dist/chunks/build-7PL5PBAO.js +59 -0
- package/dist/chunks/builtin-ETH3APHF.js +118 -0
- package/dist/chunks/buy-credits-6YMORN2O.js +80 -0
- package/dist/chunks/check-template-C7YXRA7H.js +2429 -0
- package/dist/chunks/chunk-22TBVTWN.js +135 -0
- package/dist/chunks/chunk-22WPD6IB.js +183 -0
- package/dist/chunks/chunk-26BYUJH6.js +23 -0
- package/dist/chunks/chunk-27GFYE6E.js +155 -0
- package/dist/chunks/chunk-27HOQNCT.js +224 -0
- package/dist/chunks/chunk-27OJO6I7.js +228 -0
- package/dist/chunks/chunk-2B53WI3D.js +283 -0
- package/dist/chunks/chunk-2BN2AVPG.js +140 -0
- package/dist/chunks/chunk-2CDYVBVW.js +204 -0
- package/dist/chunks/chunk-2CMWWTMW.js +33 -0
- package/dist/chunks/chunk-2CNN2RBB.js +173 -0
- package/dist/chunks/chunk-2DUBQQTH.js +320 -0
- package/dist/chunks/chunk-2E47CYYH.js +181 -0
- package/dist/chunks/chunk-2EMVIKGA.js +274 -0
- package/dist/chunks/chunk-2FSLW6CH.js +50 -0
- package/dist/chunks/chunk-2FYV6GXE.js +23 -0
- package/dist/chunks/chunk-2GN7LJKB.js +55 -0
- package/dist/chunks/chunk-2IQODF3Q.js +626 -0
- package/dist/chunks/chunk-2J4KFGUL.js +1307 -0
- package/dist/chunks/chunk-2KBF5QHC.js +47 -0
- package/dist/chunks/chunk-2LH445HM.js +127 -0
- package/dist/chunks/chunk-2LSS6WCC.js +163 -0
- package/dist/chunks/chunk-2M7PCDLY.js +55 -0
- package/dist/chunks/chunk-2P33R3DM.js +36 -0
- package/dist/chunks/chunk-2QSYLUSY.js +230 -0
- package/dist/chunks/chunk-2TUO72ET.js +156 -0
- package/dist/chunks/chunk-2XSXHST4.js +146 -0
- package/dist/chunks/chunk-2YDR7MFF.js +33 -0
- package/dist/chunks/chunk-2YHDU62G.js +77 -0
- package/dist/chunks/chunk-32PFW63B.js +192 -0
- package/dist/chunks/chunk-33OEFBIN.js +23 -0
- package/dist/chunks/chunk-34EGM2IC.js +33 -0
- package/dist/chunks/chunk-34LEQZAR.js +97 -0
- package/dist/chunks/chunk-34QCZLZI.js +69 -0
- package/dist/chunks/chunk-36N2JI2E.js +23 -0
- package/dist/chunks/chunk-3743HK5T.js +147 -0
- package/dist/chunks/chunk-37D7LQEC.js +84 -0
- package/dist/chunks/chunk-3AZXH7L4.js +298 -0
- package/dist/chunks/chunk-3B6KXBE3.js +133 -0
- package/dist/chunks/chunk-3BCFXAI6.js +108 -0
- package/dist/chunks/chunk-3DUYPBD5.js +157 -0
- package/dist/chunks/chunk-3FSM5MXC.js +164 -0
- package/dist/chunks/chunk-3G2CSKEP.js +255 -0
- package/dist/chunks/chunk-3GLQGKJ2.js +122 -0
- package/dist/chunks/chunk-3HHPTDSF.js +23 -0
- package/dist/chunks/chunk-3ILBSFIX.js +214 -0
- package/dist/chunks/chunk-3JVYAZHM.js +338 -0
- package/dist/chunks/chunk-3L7OHGKS.js +102 -0
- package/dist/chunks/chunk-3LD3P7AV.js +93 -0
- package/dist/chunks/chunk-3LN4X6PE.js +361 -0
- package/dist/chunks/chunk-3MKVAMM3.js +33 -0
- package/dist/chunks/chunk-3MX3LIJD.js +196 -0
- package/dist/chunks/chunk-3MXLRR2X.js +106 -0
- package/dist/chunks/chunk-3NVB4SIY.js +154 -0
- package/dist/chunks/chunk-3OAH33GS.js +1403 -0
- package/dist/chunks/chunk-3S6CJN6C.js +86 -0
- package/dist/chunks/chunk-3SRKAIOH.js +144 -0
- package/dist/chunks/chunk-3TA6GR7K.js +1574 -0
- package/dist/chunks/chunk-3TDNMQ4Y.js +87 -0
- package/dist/chunks/chunk-3W4756BV.js +23 -0
- package/dist/chunks/chunk-3X2FEAVX.js +78 -0
- package/dist/chunks/chunk-3YTLMZPS.js +65 -0
- package/dist/chunks/chunk-3YXK6MSE.js +559 -0
- package/dist/chunks/chunk-42OZYLDN.js +83 -0
- package/dist/chunks/chunk-43GPELMK.js +220 -0
- package/dist/chunks/chunk-453KQZA4.js +391 -0
- package/dist/chunks/chunk-45GQGYQC.js +156 -0
- package/dist/chunks/chunk-4766FULI.js +30 -0
- package/dist/chunks/chunk-4BRECW2S.js +112 -0
- package/dist/chunks/chunk-4CZNZN3M.js +149 -0
- package/dist/chunks/chunk-4DAC3OCW.js +200 -0
- package/dist/chunks/chunk-4LH6KZVS.js +283 -0
- package/dist/chunks/chunk-4MPSB2F3.js +47 -0
- package/dist/chunks/chunk-4MX2264V.js +304 -0
- package/dist/chunks/chunk-4O5U2HO6.js +173 -0
- package/dist/chunks/chunk-4OQY3LMM.js +139 -0
- package/dist/chunks/chunk-4Q4PB2YA.js +113 -0
- package/dist/chunks/chunk-4RGPH4XY.js +197 -0
- package/dist/chunks/chunk-4SIH34JJ.js +110 -0
- package/dist/chunks/chunk-4UBQKNLG.js +190 -0
- package/dist/chunks/chunk-4VMONIMA.js +102 -0
- package/dist/chunks/chunk-4VRSISWP.js +145 -0
- package/dist/chunks/chunk-4XW4NJJP.js +141 -0
- package/dist/chunks/chunk-52L44HKM.js +23 -0
- package/dist/chunks/chunk-537MB3UF.js +33 -0
- package/dist/chunks/chunk-53WEIKUO.js +95 -0
- package/dist/chunks/chunk-552ZRQ7B.js +105 -0
- package/dist/chunks/chunk-55V7OC5Y.js +94 -0
- package/dist/chunks/chunk-56E3MMEU.js +167 -0
- package/dist/chunks/chunk-56ODCP6I.js +103 -0
- package/dist/chunks/chunk-5AL7KESD.js +117 -0
- package/dist/chunks/chunk-5AURUCC4.js +80 -0
- package/dist/chunks/chunk-5AVRWNMM.js +159 -0
- package/dist/chunks/chunk-5CXJI3D4.js +112 -0
- package/dist/chunks/chunk-5HYN67MD.js +104 -0
- package/dist/chunks/chunk-5J7USA5V.js +107 -0
- package/dist/chunks/chunk-5JLQSKN5.js +119 -0
- package/dist/chunks/chunk-5JX5QZEC.js +107 -0
- package/dist/chunks/chunk-5JZ4IKNG.js +136 -0
- package/dist/chunks/chunk-5LAQ7OXE.js +231 -0
- package/dist/chunks/chunk-5LGZRXWS.js +167 -0
- package/dist/chunks/chunk-5LOKVPCY.js +133 -0
- package/dist/chunks/chunk-5MCYWEIO.js +161 -0
- package/dist/chunks/chunk-5MTRVBRD.js +81 -0
- package/dist/chunks/chunk-5MUVK24D.js +287 -0
- package/dist/chunks/chunk-5OCHPWK5.js +122 -0
- package/dist/chunks/chunk-5OFTS6BI.js +282 -0
- package/dist/chunks/chunk-5QFKRME7.js +237 -0
- package/dist/chunks/chunk-5QOPITIM.js +23 -0
- package/dist/chunks/chunk-5RETKZCS.js +33 -0
- package/dist/chunks/chunk-5UXN3NN4.js +234 -0
- package/dist/chunks/chunk-5VLWTI5R.js +282 -0
- package/dist/chunks/chunk-5VUXTPOA.js +399 -0
- package/dist/chunks/chunk-5WR5LJMV.js +110 -0
- package/dist/chunks/chunk-5WUQMQZX.js +106 -0
- package/dist/chunks/chunk-62KHMJ5C.js +131 -0
- package/dist/chunks/chunk-63H5DQDZ.js +198 -0
- package/dist/chunks/chunk-64J2IDFJ.js +109 -0
- package/dist/chunks/chunk-64QGCAG5.js +204 -0
- package/dist/chunks/chunk-64TSJ24Y.js +103 -0
- package/dist/chunks/chunk-65A2T6LI.js +97 -0
- package/dist/chunks/chunk-6666UJW2.js +101 -0
- package/dist/chunks/chunk-67CUTFV7.js +195 -0
- package/dist/chunks/chunk-6ABE4QUY.js +255 -0
- package/dist/chunks/chunk-6EGBUGOM.js +23 -0
- package/dist/chunks/chunk-6ELXNBLU.js +115 -0
- package/dist/chunks/chunk-6ETN2OF6.js +94 -0
- package/dist/chunks/chunk-6F75OPOF.js +77 -0
- package/dist/chunks/chunk-6GZ62XMP.js +331 -0
- package/dist/chunks/chunk-6HZNFVPZ.js +160 -0
- package/dist/chunks/chunk-6KTIEYIH.js +198 -0
- package/dist/chunks/chunk-6MI2P3S6.js +100 -0
- package/dist/chunks/chunk-6MUNVX6J.js +23 -0
- package/dist/chunks/chunk-6RI4SG5X.js +61 -0
- package/dist/chunks/chunk-6SZCKWX4.js +147 -0
- package/dist/chunks/chunk-6X3ZWOUM.js +315 -0
- package/dist/chunks/chunk-6XFTC2K2.js +224 -0
- package/dist/chunks/chunk-6XH274IA.js +60 -0
- package/dist/chunks/chunk-6XR5EBI6.js +898 -0
- package/dist/chunks/chunk-72HWK36S.js +178 -0
- package/dist/chunks/chunk-73H4SUR4.js +248 -0
- package/dist/chunks/chunk-74JGLJBM.js +163 -0
- package/dist/chunks/chunk-76H47MGZ.js +99 -0
- package/dist/chunks/chunk-76NWEIMO.js +70 -0
- package/dist/chunks/chunk-76Y36W6L.js +261 -0
- package/dist/chunks/chunk-77JTHVBC.js +104 -0
- package/dist/chunks/chunk-77O65K7E.js +36 -0
- package/dist/chunks/chunk-77VRUGIO.js +366 -0
- package/dist/chunks/chunk-7A53UX6O.js +102 -0
- package/dist/chunks/chunk-7AC6BDLV.js +173 -0
- package/dist/chunks/chunk-7BSBZENN.js +62 -0
- package/dist/chunks/chunk-7BYQCY7C.js +42 -0
- package/dist/chunks/chunk-7CAASUXZ.js +98 -0
- package/dist/chunks/chunk-7KTRKSV6.js +41 -0
- package/dist/chunks/chunk-7KZ5K4YE.js +270 -0
- package/dist/chunks/chunk-7LHCCM5A.js +141 -0
- package/dist/chunks/chunk-7Q4QG76P.js +23 -0
- package/dist/chunks/chunk-7SKT6Y6L.js +23 -0
- package/dist/chunks/chunk-7SQWHBHA.js +169 -0
- package/dist/chunks/chunk-7V7G5QUR.js +92 -0
- package/dist/chunks/chunk-7XVXSJP2.js +95 -0
- package/dist/chunks/chunk-7XXUNEHI.js +95 -0
- package/dist/chunks/chunk-7YUNMUA7.js +266 -0
- package/dist/chunks/chunk-7ZAKIRVS.js +139 -0
- package/dist/chunks/chunk-7ZXKQXSC.js +98 -0
- package/dist/chunks/chunk-A4BXKEAS.js +138 -0
- package/dist/chunks/chunk-A57TSB5Y.js +33 -0
- package/dist/chunks/chunk-A5EW2X47.js +81 -0
- package/dist/chunks/chunk-A63WSPIO.js +327 -0
- package/dist/chunks/chunk-A6ZEODQN.js +63 -0
- package/dist/chunks/chunk-A7IQZ6MH.js +80 -0
- package/dist/chunks/chunk-ACTDXIF7.js +375 -0
- package/dist/chunks/chunk-ACTNKUT3.js +187 -0
- package/dist/chunks/chunk-ADSXLLDF.js +97 -0
- package/dist/chunks/chunk-AECYZZJG.js +33 -0
- package/dist/chunks/chunk-AGBSDT3A.js +84 -0
- package/dist/chunks/chunk-AHY3NGMH.js +45 -0
- package/dist/chunks/chunk-AIG2M75H.js +117 -0
- package/dist/chunks/chunk-AIRLSTBI.js +108 -0
- package/dist/chunks/chunk-AIXP7EVX.js +363 -0
- package/dist/chunks/chunk-AIZB4KGE.js +151 -0
- package/dist/chunks/chunk-AMPHOTDJ.js +78 -0
- package/dist/chunks/chunk-AN77YL2M.js +23 -0
- package/dist/chunks/chunk-APFIHKZV.js +75 -0
- package/dist/chunks/chunk-APYNXRMP.js +108 -0
- package/dist/chunks/chunk-AQ5DDHJM.js +1469 -0
- package/dist/chunks/chunk-AQ5Z6KZ5.js +307 -0
- package/dist/chunks/chunk-AQYISGNB.js +266 -0
- package/dist/chunks/chunk-AQZWLR6N.js +330 -0
- package/dist/chunks/chunk-AWTQFEYH.js +108 -0
- package/dist/chunks/chunk-AXGDFDX4.js +84 -0
- package/dist/chunks/chunk-AXUJIXGP.js +180 -0
- package/dist/chunks/chunk-AY3NVGQR.js +81 -0
- package/dist/chunks/chunk-AYKZUUKR.js +210 -0
- package/dist/chunks/chunk-AZPG4U2A.js +53 -0
- package/dist/chunks/chunk-B26DJBWE.js +112 -0
- package/dist/chunks/chunk-B2CIOXUP.js +218 -0
- package/dist/chunks/chunk-B434TE2Q.js +114 -0
- package/dist/chunks/chunk-B44HAJ23.js +10278 -0
- package/dist/chunks/chunk-B4TSJW7N.js +183 -0
- package/dist/chunks/chunk-B4UO3OKE.js +133 -0
- package/dist/chunks/chunk-BAB7WHCW.js +77 -0
- package/dist/chunks/chunk-BAOSA7FH.js +93 -0
- package/dist/chunks/chunk-BAWSAE4R.js +106 -0
- package/dist/chunks/chunk-BC4I5EMM.js +33 -0
- package/dist/chunks/chunk-BCFSZFWD.js +242 -0
- package/dist/chunks/chunk-BEYN3RYF.js +151 -0
- package/dist/chunks/chunk-BHU64D6P.js +217 -0
- package/dist/chunks/chunk-BKNBJG24.js +151 -0
- package/dist/chunks/chunk-BKUMTSWU.js +23 -0
- package/dist/chunks/chunk-BMK77CKQ.js +23 -0
- package/dist/chunks/chunk-BNDYV4R7.js +232 -0
- package/dist/chunks/chunk-BP5UO4B2.js +170 -0
- package/dist/chunks/chunk-BRREZSTC.js +100 -0
- package/dist/chunks/chunk-BS5M6QO3.js +97 -0
- package/dist/chunks/chunk-BSWLDPU4.js +44 -0
- package/dist/chunks/chunk-BUFRZSMM.js +969 -0
- package/dist/chunks/chunk-BWIMQNPO.js +115 -0
- package/dist/chunks/chunk-BWKULQN3.js +36 -0
- package/dist/chunks/chunk-BYCAOWHC.js +89 -0
- package/dist/chunks/chunk-BYFHKLJ4.js +260 -0
- package/dist/chunks/chunk-BYWNVASG.js +87 -0
- package/dist/chunks/chunk-BYYVKY6M.js +358 -0
- package/dist/chunks/chunk-BZABCI5D.js +215 -0
- package/dist/chunks/chunk-BZDEPZSR.js +33 -0
- package/dist/chunks/chunk-BZF2NSUM.js +60 -0
- package/dist/chunks/chunk-C2BNTNHL.js +100 -0
- package/dist/chunks/chunk-C2PWJMCC.js +60 -0
- package/dist/chunks/chunk-C3LDBMUP.js +232 -0
- package/dist/chunks/chunk-C45N2IOX.js +1393 -0
- package/dist/chunks/chunk-CCGODD3J.js +80 -0
- package/dist/chunks/chunk-CCNRNA77.js +126 -0
- package/dist/chunks/chunk-CDCUBXLT.js +209 -0
- package/dist/chunks/chunk-CDYCTKGF.js +189 -0
- package/dist/chunks/chunk-CGTXICTL.js +197 -0
- package/dist/chunks/chunk-CINKGH5J.js +66 -0
- package/dist/chunks/chunk-CJIDKDKG.js +152 -0
- package/dist/chunks/chunk-CK6NQ4SY.js +30 -0
- package/dist/chunks/chunk-CNWAVCTK.js +244 -0
- package/dist/chunks/chunk-CP6VL6OB.js +95 -0
- package/dist/chunks/chunk-CSFEZU4E.js +337 -0
- package/dist/chunks/chunk-CSPYUWVO.js +301 -0
- package/dist/chunks/chunk-CSWJBGT3.js +168 -0
- package/dist/chunks/chunk-CUQYPV6L.js +210 -0
- package/dist/chunks/chunk-CVGUIH5Q.js +165 -0
- package/dist/chunks/chunk-CXXBAIES.js +78 -0
- package/dist/chunks/chunk-CYOBTLJQ.js +39 -0
- package/dist/chunks/chunk-CYRUJZAV.js +212 -0
- package/dist/chunks/chunk-CZRAEN2N.js +146 -0
- package/dist/chunks/chunk-D25FWNIS.js +83 -0
- package/dist/chunks/chunk-D2I5XHGH.js +100 -0
- package/dist/chunks/chunk-D32553PT.js +33 -0
- package/dist/chunks/chunk-D4Z4GQVA.js +200 -0
- package/dist/chunks/chunk-D74FLITM.js +23 -0
- package/dist/chunks/chunk-DA325HMQ.js +122 -0
- package/dist/chunks/chunk-DAJCX5CM.js +53 -0
- package/dist/chunks/chunk-DBP7MAO4.js +36 -0
- package/dist/chunks/chunk-DEQVJBMA.js +192 -0
- package/dist/chunks/chunk-DF34Y7J7.js +55 -0
- package/dist/chunks/chunk-DFLQPNPH.js +76 -0
- package/dist/chunks/chunk-DFPGF7WI.js +277 -0
- package/dist/chunks/chunk-DH7PWGE6.js +214 -0
- package/dist/chunks/chunk-DHFC7DKD.js +182 -0
- package/dist/chunks/chunk-DHYR62CP.js +86 -0
- package/dist/chunks/chunk-DJMPPJAC.js +218 -0
- package/dist/chunks/chunk-DJZRYDQW.js +103 -0
- package/dist/chunks/chunk-DKEPF32U.js +87 -0
- package/dist/chunks/chunk-DMVNPQYC.js +53 -0
- package/dist/chunks/chunk-DOASOKPX.js +334 -0
- package/dist/chunks/chunk-DPPZFSFX.js +111 -0
- package/dist/chunks/chunk-DS2WBYV3.js +199 -0
- package/dist/chunks/chunk-DSILA3LU.js +152 -0
- package/dist/chunks/chunk-DTHJJ5GJ.js +206 -0
- package/dist/chunks/chunk-DTKUVNBV.js +101 -0
- package/dist/chunks/chunk-DUZXAFAU.js +172 -0
- package/dist/chunks/chunk-DV4IODMQ.js +138 -0
- package/dist/chunks/chunk-DVAMU4UX.js +187 -0
- package/dist/chunks/chunk-DWO4KA7Q.js +128 -0
- package/dist/chunks/chunk-DYVK7NGT.js +358 -0
- package/dist/chunks/chunk-E2VRD63Y.js +55 -0
- package/dist/chunks/chunk-E3IKQBOH.js +276 -0
- package/dist/chunks/chunk-E47AZN3W.js +23 -0
- package/dist/chunks/chunk-E4VGRFTU.js +106 -0
- package/dist/chunks/chunk-E52OTUK4.js +282 -0
- package/dist/chunks/chunk-EBJHFJLO.js +150 -0
- package/dist/chunks/chunk-EBMGJRXP.js +199 -0
- package/dist/chunks/chunk-EBP2SF37.js +84 -0
- package/dist/chunks/chunk-EDCKRPGG.js +23 -0
- package/dist/chunks/chunk-EEV762XD.js +226 -0
- package/dist/chunks/chunk-EHS2FCD5.js +83 -0
- package/dist/chunks/chunk-EHYUNGN4.js +97 -0
- package/dist/chunks/chunk-EIH7FZMV.js +45 -0
- package/dist/chunks/chunk-EJ46HSJM.js +137 -0
- package/dist/chunks/chunk-EJGAWYGP.js +97 -0
- package/dist/chunks/chunk-EKIX3XHN.js +240 -0
- package/dist/chunks/chunk-EKMJQVDA.js +1309 -0
- package/dist/chunks/chunk-EN4TGG73.js +89 -0
- package/dist/chunks/chunk-EN4YSFP4.js +170 -0
- package/dist/chunks/chunk-ESVN6FOH.js +80 -0
- package/dist/chunks/chunk-ESZIBCN5.js +78 -0
- package/dist/chunks/chunk-ETQYYZS3.js +95 -0
- package/dist/chunks/chunk-EUEM6F6C.js +262 -0
- package/dist/chunks/chunk-EUFFITRV.js +94 -0
- package/dist/chunks/chunk-EUSYZRNE.js +165 -0
- package/dist/chunks/chunk-EWQH7NFT.js +73 -0
- package/dist/chunks/chunk-EYWUDT35.js +23 -0
- package/dist/chunks/chunk-F2YLNOIO.js +111 -0
- package/dist/chunks/chunk-F3SE4GSA.js +94 -0
- package/dist/chunks/chunk-F45KJ5TH.js +134 -0
- package/dist/chunks/chunk-F7TPQJQR.js +265 -0
- package/dist/chunks/chunk-FA24QACF.js +198 -0
- package/dist/chunks/chunk-FADL7AXA.js +69 -0
- package/dist/chunks/chunk-FAPKTCVK.js +104 -0
- package/dist/chunks/chunk-FCRHGNZ3.js +172 -0
- package/dist/chunks/chunk-FD3ZAYOT.js +171 -0
- package/dist/chunks/chunk-FDXWT4F3.js +169 -0
- package/dist/chunks/chunk-FEOB45GL.js +71 -0
- package/dist/chunks/chunk-FERNONON.js +23 -0
- package/dist/chunks/chunk-FHWYPP4H.js +103 -0
- package/dist/chunks/chunk-FII32DQG.js +105 -0
- package/dist/chunks/chunk-FJRBPC55.js +98 -0
- package/dist/chunks/chunk-FLWVADHN.js +215 -0
- package/dist/chunks/chunk-FPBVZXVU.js +115 -0
- package/dist/chunks/chunk-FS45CE45.js +83 -0
- package/dist/chunks/chunk-FSFXNX5Z.js +158 -0
- package/dist/chunks/chunk-FSMUEAIR.js +33 -0
- package/dist/chunks/chunk-FTUQC672.js +194 -0
- package/dist/chunks/chunk-FYMRSWLQ.js +48 -0
- package/dist/chunks/chunk-FZGYAY74.js +33 -0
- package/dist/chunks/chunk-G3N3VN25.js +107 -0
- package/dist/chunks/chunk-G4Q4YN6V.js +93 -0
- package/dist/chunks/chunk-G4SCCHLX.js +181 -0
- package/dist/chunks/chunk-G4YLCBI7.js +96 -0
- package/dist/chunks/chunk-G5S4XOIA.js +94 -0
- package/dist/chunks/chunk-G6QMHIPE.js +138 -0
- package/dist/chunks/chunk-G7B4BPED.js +168 -0
- package/dist/chunks/chunk-G7OC6EXJ.js +206 -0
- package/dist/chunks/chunk-GCU4YMXE.js +777 -0
- package/dist/chunks/chunk-GCWBEXZP.js +115 -0
- package/dist/chunks/chunk-GCWMWCAI.js +130 -0
- package/dist/chunks/chunk-GEI5GAD3.js +91 -0
- package/dist/chunks/chunk-GEMWQTO3.js +304 -0
- package/dist/chunks/chunk-GGJ5KYV2.js +65 -0
- package/dist/chunks/chunk-GIKMFFYN.js +101 -0
- package/dist/chunks/chunk-GJXLLMJJ.js +163 -0
- package/dist/chunks/chunk-GKAY4QF3.js +149 -0
- package/dist/chunks/chunk-GKVBRUOG.js +163 -0
- package/dist/chunks/chunk-GLUBXPIN.js +119 -0
- package/dist/chunks/chunk-GMUCIVIV.js +172 -0
- package/dist/chunks/chunk-GNGCVS3N.js +304 -0
- package/dist/chunks/chunk-GPHDGTUU.js +109 -0
- package/dist/chunks/chunk-GRKMTK4W.js +90 -0
- package/dist/chunks/chunk-GT3JKC7D.js +136 -0
- package/dist/chunks/chunk-GUS36OEB.js +175 -0
- package/dist/chunks/chunk-GVON7IOF.js +104 -0
- package/dist/chunks/chunk-GVOXG7YN.js +344 -0
- package/dist/chunks/chunk-GW2XT3W7.js +261 -0
- package/dist/chunks/chunk-H2S7SFVX.js +270 -0
- package/dist/chunks/chunk-H4Q3VZKC.js +33 -0
- package/dist/chunks/chunk-H57UJ6M4.js +166 -0
- package/dist/chunks/chunk-H77EKJNL.js +195 -0
- package/dist/chunks/chunk-HAS4N4YD.js +170 -0
- package/dist/chunks/chunk-HCO6ZNT5.js +252 -0
- package/dist/chunks/chunk-HDYPDWTB.js +156 -0
- package/dist/chunks/chunk-HE66ORTC.js +87 -0
- package/dist/chunks/chunk-HEIASY5U.js +103 -0
- package/dist/chunks/chunk-HEQMI2VN.js +182 -0
- package/dist/chunks/chunk-HF6HYRWJ.js +150 -0
- package/dist/chunks/chunk-HFAV756T.js +23 -0
- package/dist/chunks/chunk-HFVI32QR.js +738 -0
- package/dist/chunks/chunk-HIL3ALH4.js +181 -0
- package/dist/chunks/chunk-HJUTSTG6.js +133 -0
- package/dist/chunks/chunk-HKEOGGUN.js +118 -0
- package/dist/chunks/chunk-HKKHT4D2.js +278 -0
- package/dist/chunks/chunk-HM5EKRDK.js +85 -0
- package/dist/chunks/chunk-HN3IH4ZH.js +49 -0
- package/dist/chunks/chunk-HS4TAP5F.js +127 -0
- package/dist/chunks/chunk-HSXQ7NSC.js +163 -0
- package/dist/chunks/chunk-HU2MBXEO.js +146 -0
- package/dist/chunks/chunk-HUAT3COC.js +45 -0
- package/dist/chunks/chunk-HUIGWDPA.js +141 -0
- package/dist/chunks/chunk-HVG7N4BO.js +112 -0
- package/dist/chunks/chunk-HVLJFPIR.js +36 -0
- package/dist/chunks/chunk-HVSKKQ6A.js +512 -0
- package/dist/chunks/chunk-HVVJI3OM.js +23 -0
- package/dist/chunks/chunk-HXO2JTJX.js +164 -0
- package/dist/chunks/chunk-I2VE3V5S.js +158 -0
- package/dist/chunks/chunk-I34MB34N.js +97 -0
- package/dist/chunks/chunk-I4S64LEM.js +95 -0
- package/dist/chunks/chunk-I5C5EN44.js +166 -0
- package/dist/chunks/chunk-IAIO4RUC.js +217 -0
- package/dist/chunks/chunk-IANV5I7R.js +122 -0
- package/dist/chunks/chunk-IDJMRUHI.js +147 -0
- package/dist/chunks/chunk-IDMWFVVO.js +52 -0
- package/dist/chunks/chunk-IETYCPPO.js +23 -0
- package/dist/chunks/chunk-IHWPB5BM.js +360 -0
- package/dist/chunks/chunk-IKMJ6MAK.js +23 -0
- package/dist/chunks/chunk-IKNABKAZ.js +188 -0
- package/dist/chunks/chunk-IQMFJ2M4.js +100 -0
- package/dist/chunks/chunk-ISYCX7YP.js +200 -0
- package/dist/chunks/chunk-IU2MH52V.js +125 -0
- package/dist/chunks/chunk-IVIOASET.js +88 -0
- package/dist/chunks/chunk-IW6EPQCW.js +78 -0
- package/dist/chunks/chunk-IXA7T2HH.js +215 -0
- package/dist/chunks/chunk-IXAMLUQ3.js +145 -0
- package/dist/chunks/chunk-IXDYXMVU.js +23 -0
- package/dist/chunks/chunk-IY3CGH5V.js +96 -0
- package/dist/chunks/chunk-IYFEF6VI.js +382 -0
- package/dist/chunks/chunk-IYMLRP7T.js +336 -0
- package/dist/chunks/chunk-IZWUADPD.js +45 -0
- package/dist/chunks/chunk-J3SOSMZV.js +155 -0
- package/dist/chunks/chunk-J5JAMG6Y.js +192 -0
- package/dist/chunks/chunk-J6H3HUWA.js +49 -0
- package/dist/chunks/chunk-J7CTHTR7.js +163 -0
- package/dist/chunks/chunk-JA6ZYACB.js +179 -0
- package/dist/chunks/chunk-JCGUI6BT.js +171 -0
- package/dist/chunks/chunk-JEGEW7A3.js +258 -0
- package/dist/chunks/chunk-JEKZ5RDP.js +303 -0
- package/dist/chunks/chunk-JEONDDP6.js +279 -0
- package/dist/chunks/chunk-JGXXPFF3.js +33 -0
- package/dist/chunks/chunk-JHDI66QU.js +326 -0
- package/dist/chunks/chunk-JI3UJEJL.js +145 -0
- package/dist/chunks/chunk-JIKYU5ET.js +36 -0
- package/dist/chunks/chunk-JKT2WIBW.js +589 -0
- package/dist/chunks/chunk-JKWE2SEP.js +142 -0
- package/dist/chunks/chunk-JMWMNHEW.js +120 -0
- package/dist/chunks/chunk-JN7Z37UN.js +48 -0
- package/dist/chunks/chunk-JNB3WN3R.js +120 -0
- package/dist/chunks/chunk-JPXNCDN4.js +45 -0
- package/dist/chunks/chunk-JPYNEXSN.js +274 -0
- package/dist/chunks/chunk-JSTUYATS.js +82 -0
- package/dist/chunks/chunk-JUHZNYAQ.js +135 -0
- package/dist/chunks/chunk-JXPAPFER.js +30 -0
- package/dist/chunks/chunk-JZ2XC3E6.js +120 -0
- package/dist/chunks/chunk-K26AEAGJ.js +358 -0
- package/dist/chunks/chunk-K26MMOKO.js +105 -0
- package/dist/chunks/chunk-K2H2MQJ4.js +105 -0
- package/dist/chunks/chunk-K3AUBGXC.js +74 -0
- package/dist/chunks/chunk-K3QMZPHK.js +100 -0
- package/dist/chunks/chunk-K3ZQFWMF.js +81 -0
- package/dist/chunks/chunk-K4IUU3F5.js +187 -0
- package/dist/chunks/chunk-K6EUKADC.js +79 -0
- package/dist/chunks/chunk-K6POH54K.js +102 -0
- package/dist/chunks/chunk-K6PXRWT3.js +256 -0
- package/dist/chunks/chunk-K6YHHLVZ.js +242 -0
- package/dist/chunks/chunk-K7UOSFWA.js +45 -0
- package/dist/chunks/chunk-KBFGFY2Y.js +155 -0
- package/dist/chunks/chunk-KCLTRWUI.js +23 -0
- package/dist/chunks/chunk-KEY57P2W.js +41 -0
- package/dist/chunks/chunk-KF7Y7JYY.js +63 -0
- package/dist/chunks/chunk-KFBDHXCP.js +71 -0
- package/dist/chunks/chunk-KGQDBEC5.js +43 -0
- package/dist/chunks/chunk-KH6522ZQ.js +79 -0
- package/dist/chunks/chunk-KHS64ZEA.js +196 -0
- package/dist/chunks/chunk-KKQEBJ7E.js +50 -0
- package/dist/chunks/chunk-KL5CBQBR.js +109 -0
- package/dist/chunks/chunk-KNSTY5FF.js +33 -0
- package/dist/chunks/chunk-KPWTKEVP.js +174 -0
- package/dist/chunks/chunk-KQ4MSEQB.js +54 -0
- package/dist/chunks/chunk-KQBPYG2L.js +77 -0
- package/dist/chunks/chunk-KRGLFQIL.js +51 -0
- package/dist/chunks/chunk-KRHBS5TK.js +44 -0
- package/dist/chunks/chunk-KSGLLHIQ.js +23 -0
- package/dist/chunks/chunk-KSJL2OTL.js +165 -0
- package/dist/chunks/chunk-KUHNKPVF.js +273 -0
- package/dist/chunks/chunk-KV5Z6ITJ.js +82 -0
- package/dist/chunks/chunk-KW3UDGHO.js +41 -0
- package/dist/chunks/chunk-KWZROWTZ.js +102 -0
- package/dist/chunks/chunk-KYCGH3SR.js +97 -0
- package/dist/chunks/chunk-L4GISLYR.js +12941 -0
- package/dist/chunks/chunk-L6ZU6FFR.js +97 -0
- package/dist/chunks/chunk-L7B6LXL7.js +45 -0
- package/dist/chunks/chunk-LBLPLMAH.js +85 -0
- package/dist/chunks/chunk-LBPKSNGR.js +396 -0
- package/dist/chunks/chunk-LD5YV746.js +90 -0
- package/dist/chunks/chunk-LDCM3IKV.js +106 -0
- package/dist/chunks/chunk-LGGMKUP5.js +150 -0
- package/dist/chunks/chunk-LI6Y2QZ7.js +74 -0
- package/dist/chunks/chunk-LJDUSXIT.js +70 -0
- package/dist/chunks/chunk-LJKSBWTT.js +45 -0
- package/dist/chunks/chunk-LK4UKEG4.js +141 -0
- package/dist/chunks/chunk-LKMLMUYX.js +33 -0
- package/dist/chunks/chunk-LLDJXZV7.js +159 -0
- package/dist/chunks/chunk-LNEFT5IK.js +33 -0
- package/dist/chunks/chunk-LOZJCKXJ.js +118 -0
- package/dist/chunks/chunk-LPOBXGKW.js +172 -0
- package/dist/chunks/chunk-LQFK3GKA.js +108 -0
- package/dist/chunks/chunk-LQPTHWK4.js +33 -0
- package/dist/chunks/chunk-LRZCD62R.js +79 -0
- package/dist/chunks/chunk-LSOB7TS3.js +92 -0
- package/dist/chunks/chunk-LTNNE6RO.js +49 -0
- package/dist/chunks/chunk-LVI4FBOK.js +366 -0
- package/dist/chunks/chunk-LZATIQU7.js +95 -0
- package/dist/chunks/chunk-LZFM6YZA.js +74 -0
- package/dist/chunks/chunk-LZRC3ARA.js +117 -0
- package/dist/chunks/chunk-LZX7ZHZZ.js +362 -0
- package/dist/chunks/chunk-M2KLBNZ5.js +169 -0
- package/dist/chunks/chunk-M4JZMQVH.js +123 -0
- package/dist/chunks/chunk-M7GVDO3X.js +198 -0
- package/dist/chunks/chunk-M7UGXZUC.js +822 -0
- package/dist/chunks/chunk-MBHT5NHR.js +351 -0
- package/dist/chunks/chunk-MBRTCEF7.js +185 -0
- package/dist/chunks/chunk-MBXTGZA5.js +224 -0
- package/dist/chunks/chunk-MC3WH3GI.js +202 -0
- package/dist/chunks/chunk-MD3HZG5V.js +305 -0
- package/dist/chunks/chunk-MEI6CJVH.js +153 -0
- package/dist/chunks/chunk-MGHPASXL.js +307 -0
- package/dist/chunks/chunk-MHOZR63T.js +261 -0
- package/dist/chunks/chunk-MKES24SK.js +161 -0
- package/dist/chunks/chunk-MLZEL7SU.js +207 -0
- package/dist/chunks/chunk-MMRHIBMR.js +184 -0
- package/dist/chunks/chunk-MOE4ARMM.js +77 -0
- package/dist/chunks/chunk-MOPRBGMH.js +122 -0
- package/dist/chunks/chunk-MOUJYXZ4.js +324 -0
- package/dist/chunks/chunk-MQ37JTTN.js +182 -0
- package/dist/chunks/chunk-MR3ATBNE.js +222 -0
- package/dist/chunks/chunk-MR4XKXI3.js +95 -0
- package/dist/chunks/chunk-MRYMIEW7.js +166 -0
- package/dist/chunks/chunk-MSZEYXS6.js +198 -0
- package/dist/chunks/chunk-MU7GB7MW.js +277 -0
- package/dist/chunks/chunk-MVJIKXMW.js +36 -0
- package/dist/chunks/chunk-MVKNA3JE.js +184 -0
- package/dist/chunks/chunk-MWRSAESL.js +123 -0
- package/dist/chunks/chunk-MYVJXSA4.js +23 -0
- package/dist/chunks/chunk-MZEI3UA5.js +152 -0
- package/dist/chunks/chunk-N3H3W4JE.js +156 -0
- package/dist/chunks/chunk-N6QZPCUY.js +272 -0
- package/dist/chunks/chunk-N7URELAV.js +179 -0
- package/dist/chunks/chunk-NAN3MRBL.js +91 -0
- package/dist/chunks/chunk-NE7FCPVF.js +162 -0
- package/dist/chunks/chunk-NEYCCIRG.js +312 -0
- package/dist/chunks/chunk-NEZZTMHF.js +23 -0
- package/dist/chunks/chunk-NGXVOSSC.js +28 -0
- package/dist/chunks/chunk-NIVJ3Q3L.js +257 -0
- package/dist/chunks/chunk-NKXADJ5G.js +115 -0
- package/dist/chunks/chunk-NL5FL2CX.js +121 -0
- package/dist/chunks/chunk-NNXGN2F2.js +155 -0
- package/dist/chunks/chunk-NOWXZDZK.js +180 -0
- package/dist/chunks/chunk-NPINVQ5L.js +124 -0
- package/dist/chunks/chunk-NPTQN2RK.js +111 -0
- package/dist/chunks/chunk-NQBVBSY6.js +86 -0
- package/dist/chunks/chunk-NRYRDTNK.js +250 -0
- package/dist/chunks/chunk-NSL5VMKS.js +728 -0
- package/dist/chunks/chunk-NVM4NYKC.js +152 -0
- package/dist/chunks/chunk-NWB4KNQQ.js +177 -0
- package/dist/chunks/chunk-NWIO6EI5.js +598 -0
- package/dist/chunks/chunk-NWX6K5GH.js +153 -0
- package/dist/chunks/chunk-NX7IN32S.js +342 -0
- package/dist/chunks/chunk-NYSR4VCP.js +209 -0
- package/dist/chunks/chunk-O4UXEZ6E.js +131 -0
- package/dist/chunks/chunk-O53NGFF7.js +121 -0
- package/dist/chunks/chunk-O5CSZJ5D.js +79 -0
- package/dist/chunks/chunk-O63NTTKB.js +231 -0
- package/dist/chunks/chunk-OC6TA77Z.js +33 -0
- package/dist/chunks/chunk-OCIUQJ4Q.js +86 -0
- package/dist/chunks/chunk-OCQ5YDUQ.js +33 -0
- package/dist/chunks/chunk-OCUD53FX.js +261 -0
- package/dist/chunks/chunk-OFIPR34I.js +130 -0
- package/dist/chunks/chunk-OFUCUXIP.js +102 -0
- package/dist/chunks/chunk-OH6DAUAE.js +23 -0
- package/dist/chunks/chunk-OHBSCRXI.js +136 -0
- package/dist/chunks/chunk-OHUYUWDP.js +221 -0
- package/dist/chunks/chunk-OI73CBUE.js +176 -0
- package/dist/chunks/chunk-OJWDIGIO.js +161 -0
- package/dist/chunks/chunk-OLXJMUWD.js +320 -0
- package/dist/chunks/chunk-OOSD4WUQ.js +177 -0
- package/dist/chunks/chunk-OPFPIUKB.js +345 -0
- package/dist/chunks/chunk-OQZCHGLT.js +152 -0
- package/dist/chunks/chunk-ORSVEPMQ.js +290 -0
- package/dist/chunks/chunk-OS7WMGJW.js +368 -0
- package/dist/chunks/chunk-OSTU5XFS.js +68 -0
- package/dist/chunks/chunk-OT4DRDNM.js +123 -0
- package/dist/chunks/chunk-OTBILLT2.js +23 -0
- package/dist/chunks/chunk-OTSZ5JUJ.js +191 -0
- package/dist/chunks/chunk-OW5BYSKR.js +317 -0
- package/dist/chunks/chunk-OZWURFEV.js +110 -0
- package/dist/chunks/chunk-P2FE4TWJ.js +178 -0
- package/dist/chunks/chunk-P3OU4PK2.js +126 -0
- package/dist/chunks/chunk-P3Q3SCN3.js +109 -0
- package/dist/chunks/chunk-P4IU7IWQ.js +194 -0
- package/dist/chunks/chunk-P5EBD4LE.js +39 -0
- package/dist/chunks/chunk-P77LF3JU.js +122 -0
- package/dist/chunks/chunk-P7JO7K3O.js +33 -0
- package/dist/chunks/chunk-P7XP3RQ2.js +346 -0
- package/dist/chunks/chunk-PA7B6ZON.js +90 -0
- package/dist/chunks/chunk-PAYGW644.js +55 -0
- package/dist/chunks/chunk-PBNBOV74.js +84 -0
- package/dist/chunks/chunk-PBOWVCAI.js +139 -0
- package/dist/chunks/chunk-PDSRECPH.js +361 -0
- package/dist/chunks/chunk-PEJP4QCB.js +119 -0
- package/dist/chunks/chunk-PFJHRKQD.js +260 -0
- package/dist/chunks/chunk-PFLG74GS.js +112 -0
- package/dist/chunks/chunk-PFPGV666.js +130 -0
- package/dist/chunks/chunk-PFVR5YKM.js +87 -0
- package/dist/chunks/chunk-PHLBZXON.js +497 -0
- package/dist/chunks/chunk-PHXEEWIV.js +142 -0
- package/dist/chunks/chunk-PINYUB75.js +33 -0
- package/dist/chunks/chunk-PL23V7LX.js +93 -0
- package/dist/chunks/chunk-PL5PW4HW.js +684 -0
- package/dist/chunks/chunk-PME4GKOJ.js +172 -0
- package/dist/chunks/chunk-PMTYVSWC.js +88 -0
- package/dist/chunks/chunk-PN34DZ7T.js +177 -0
- package/dist/chunks/chunk-PNNNJ3LY.js +1136 -0
- package/dist/chunks/chunk-POER6XZT.js +157 -0
- package/dist/chunks/chunk-PP72KO4W.js +225 -0
- package/dist/chunks/chunk-PPFCZGD7.js +91 -0
- package/dist/chunks/chunk-PPPM54KR.js +71 -0
- package/dist/chunks/chunk-PQEMDRLZ.js +114 -0
- package/dist/chunks/chunk-PQQXPSPR.js +225 -0
- package/dist/chunks/chunk-PR6DHVH4.js +152 -0
- package/dist/chunks/chunk-PS6B3RC4.js +80 -0
- package/dist/chunks/chunk-PTLTQ2IY.js +84 -0
- package/dist/chunks/chunk-PVDR6OPB.js +209 -0
- package/dist/chunks/chunk-PXTUTO6J.js +100 -0
- package/dist/chunks/chunk-PZZEYJSA.js +115 -0
- package/dist/chunks/chunk-Q25VUYCF.js +23 -0
- package/dist/chunks/chunk-Q2PYKWA5.js +250 -0
- package/dist/chunks/chunk-Q2XS2LZT.js +88 -0
- package/dist/chunks/chunk-Q4GF6PYS.js +135 -0
- package/dist/chunks/chunk-Q53UUAHE.js +130 -0
- package/dist/chunks/chunk-Q6DR2WC6.js +33 -0
- package/dist/chunks/chunk-Q73BAYW4.js +166 -0
- package/dist/chunks/chunk-Q7UJRU4Q.js +655 -0
- package/dist/chunks/chunk-QAB2JMLU.js +93 -0
- package/dist/chunks/chunk-QADFNCDO.js +112 -0
- package/dist/chunks/chunk-QEOUFEAO.js +106 -0
- package/dist/chunks/chunk-QF55QVFX.js +146 -0
- package/dist/chunks/chunk-QIB3JHFH.js +209 -0
- package/dist/chunks/chunk-QKSI56YS.js +45 -0
- package/dist/chunks/chunk-QN6RDTUP.js +77 -0
- package/dist/chunks/chunk-QQPI6JJR.js +38 -0
- package/dist/chunks/chunk-QSZAFN74.js +106 -0
- package/dist/chunks/chunk-QYAEAT3D.js +152 -0
- package/dist/chunks/chunk-R2Z6IIHZ.js +327 -0
- package/dist/chunks/chunk-R3G2GYTH.js +135 -0
- package/dist/chunks/chunk-R6JLDRS4.js +134 -0
- package/dist/chunks/chunk-RBAD6POZ.js +157 -0
- package/dist/chunks/chunk-RCEQT2OX.js +97 -0
- package/dist/chunks/chunk-RCHMEZH3.js +290 -0
- package/dist/chunks/chunk-RDKJORHX.js +170 -0
- package/dist/chunks/chunk-REASY2CX.js +174 -0
- package/dist/chunks/chunk-RF6FSRGA.js +23 -0
- package/dist/chunks/chunk-RGICMBNU.js +262 -0
- package/dist/chunks/chunk-RGQXEYQK.js +94 -0
- package/dist/chunks/chunk-RHHITHHN.js +305 -0
- package/dist/chunks/chunk-RJXQDHEX.js +503 -0
- package/dist/chunks/chunk-RJZVS2GS.js +33 -0
- package/dist/chunks/chunk-RM7MNGYS.js +311 -0
- package/dist/chunks/chunk-RPQYX7UA.js +161 -0
- package/dist/chunks/chunk-RR7G46HE.js +115 -0
- package/dist/chunks/chunk-RRNXZWEM.js +50 -0
- package/dist/chunks/chunk-RSVWKJVQ.js +153 -0
- package/dist/chunks/chunk-RVBQYLFO.js +66 -0
- package/dist/chunks/chunk-RW2PTR42.js +415 -0
- package/dist/chunks/chunk-RXMEFSVS.js +172 -0
- package/dist/chunks/chunk-RYLHP2O6.js +302 -0
- package/dist/chunks/chunk-S2TXOTEO.js +97 -0
- package/dist/chunks/chunk-S3HANOFE.js +137 -0
- package/dist/chunks/chunk-S3UAMWB7.js +94 -0
- package/dist/chunks/chunk-S4WXZ32A.js +105 -0
- package/dist/chunks/chunk-S6YEPSNE.js +220 -0
- package/dist/chunks/chunk-S7ZOKV4I.js +287 -0
- package/dist/chunks/chunk-SA4XN2YG.js +23 -0
- package/dist/chunks/chunk-SAC77FXI.js +117 -0
- package/dist/chunks/chunk-SCP4NZGT.js +249 -0
- package/dist/chunks/chunk-SDIE5KW5.js +191 -0
- package/dist/chunks/chunk-SEPY653M.js +163 -0
- package/dist/chunks/chunk-SFAYZ3PM.js +106 -0
- package/dist/chunks/chunk-SFK6OIRI.js +140 -0
- package/dist/chunks/chunk-SFL7E6GG.js +113 -0
- package/dist/chunks/chunk-SGBWTCAC.js +45 -0
- package/dist/chunks/chunk-SGYVC3FY.js +45 -0
- package/dist/chunks/chunk-SKQLSWOT.js +226 -0
- package/dist/chunks/chunk-SKVJGQ7Y.js +57 -0
- package/dist/chunks/chunk-SNXRBMMS.js +122 -0
- package/dist/chunks/chunk-SO4YGGDT.js +197 -0
- package/dist/chunks/chunk-SO5MQD5Q.js +80 -0
- package/dist/chunks/chunk-SOVQWL3G.js +127 -0
- package/dist/chunks/chunk-SQGL5EJN.js +159 -0
- package/dist/chunks/chunk-SSK6J2WG.js +91 -0
- package/dist/chunks/chunk-SSNTMFMB.js +33 -0
- package/dist/chunks/chunk-SUPUWZHT.js +178 -0
- package/dist/chunks/chunk-SUT6DF5L.js +81 -0
- package/dist/chunks/chunk-SUVTL6JS.js +206 -0
- package/dist/chunks/chunk-SVUO3SMS.js +297 -0
- package/dist/chunks/chunk-SWGNCLE6.js +10729 -0
- package/dist/chunks/chunk-SXHW4RAT.js +331 -0
- package/dist/chunks/chunk-T2DMUTB3.js +140 -0
- package/dist/chunks/chunk-T2MKC6L6.js +164 -0
- package/dist/chunks/chunk-T3IOW4FK.js +226 -0
- package/dist/chunks/chunk-TB6RXDWZ.js +105 -0
- package/dist/chunks/chunk-TBAOXUD6.js +213 -0
- package/dist/chunks/chunk-TBPH7UK7.js +49 -0
- package/dist/chunks/chunk-TEBQN327.js +247 -0
- package/dist/chunks/chunk-TJ5HPFFG.js +329 -0
- package/dist/chunks/chunk-TKF4VKPA.js +2070 -0
- package/dist/chunks/chunk-TLJRHHAH.js +261 -0
- package/dist/chunks/chunk-TMNFP7FK.js +135 -0
- package/dist/chunks/chunk-TO6RESJH.js +238 -0
- package/dist/chunks/chunk-TOYIXXYN.js +76 -0
- package/dist/chunks/chunk-TQSOJ5S4.js +149 -0
- package/dist/chunks/chunk-TQWGDTSO.js +685 -0
- package/dist/chunks/chunk-TSBAAOO3.js +50 -0
- package/dist/chunks/chunk-TV62S7HA.js +298 -0
- package/dist/chunks/chunk-TVNUL7XK.js +151 -0
- package/dist/chunks/chunk-TWNYPMSW.js +179 -0
- package/dist/chunks/chunk-TXGWR6JW.js +154 -0
- package/dist/chunks/chunk-TZEJPG4N.js +48 -0
- package/dist/chunks/chunk-U3J45ODV.js +170 -0
- package/dist/chunks/chunk-U6HTYSYX.js +177 -0
- package/dist/chunks/chunk-U7VI5BFK.js +201 -0
- package/dist/chunks/chunk-UA33OOU7.js +176 -0
- package/dist/chunks/chunk-UAUQ53KQ.js +90 -0
- package/dist/chunks/chunk-UAVZCBLV.js +77 -0
- package/dist/chunks/chunk-UAXVLOBO.js +390 -0
- package/dist/chunks/chunk-UBMDQIX2.js +251 -0
- package/dist/chunks/chunk-UENHHC76.js +422 -0
- package/dist/chunks/chunk-UFSUOTGE.js +165 -0
- package/dist/chunks/chunk-UHRSWEC2.js +239 -0
- package/dist/chunks/chunk-UHU6OQ2I.js +150 -0
- package/dist/chunks/chunk-UI2B4ALQ.js +125 -0
- package/dist/chunks/chunk-UJ5TBSSM.js +166 -0
- package/dist/chunks/chunk-UJHTU2C4.js +128 -0
- package/dist/chunks/chunk-UOMKLRPP.js +92 -0
- package/dist/chunks/chunk-UQTHZYXX.js +118 -0
- package/dist/chunks/chunk-US4D7VCN.js +118 -0
- package/dist/chunks/chunk-UW3ARTYC.js +92 -0
- package/dist/chunks/chunk-UWDOMK47.js +77 -0
- package/dist/chunks/chunk-UZ5ZTGL7.js +110 -0
- package/dist/chunks/chunk-V3TDQD3D.js +95 -0
- package/dist/chunks/chunk-V3ZTA2VC.js +89 -0
- package/dist/chunks/chunk-V4P2C3TQ.js +180 -0
- package/dist/chunks/chunk-V7DGU7W7.js +119 -0
- package/dist/chunks/chunk-VANBXZMZ.js +87 -0
- package/dist/chunks/chunk-VAZ2PGAC.js +82 -0
- package/dist/chunks/chunk-VB2XAEUD.js +112 -0
- package/dist/chunks/chunk-VC42JKZG.js +150 -0
- package/dist/chunks/chunk-VECKM3WP.js +149 -0
- package/dist/chunks/chunk-VFQSL2A5.js +93 -0
- package/dist/chunks/chunk-VGA23FLC.js +121 -0
- package/dist/chunks/chunk-VH7TBG54.js +41 -0
- package/dist/chunks/chunk-VHRCYHKT.js +90 -0
- package/dist/chunks/chunk-VKMXXDFI.js +129 -0
- package/dist/chunks/chunk-VKNBDXAM.js +149 -0
- package/dist/chunks/chunk-VLQF34JB.js +84 -0
- package/dist/chunks/chunk-VLTDFCVU.js +45 -0
- package/dist/chunks/chunk-VN444COA.js +99 -0
- package/dist/chunks/chunk-VO3ILGHV.js +146 -0
- package/dist/chunks/chunk-VOCVUSDB.js +78 -0
- package/dist/chunks/chunk-VQAYJ7ZX.js +99 -0
- package/dist/chunks/chunk-VRISHE7S.js +198 -0
- package/dist/chunks/chunk-VRJK5HLU.js +378 -0
- package/dist/chunks/chunk-VRPTCUPG.js +101 -0
- package/dist/chunks/chunk-VTJ6MIMD.js +221 -0
- package/dist/chunks/chunk-VWQPZTA7.js +193 -0
- package/dist/chunks/chunk-VZ3XH7FW.js +191 -0
- package/dist/chunks/chunk-VZ5BNNZH.js +131 -0
- package/dist/chunks/chunk-W2S5MC35.js +174 -0
- package/dist/chunks/chunk-W2V5MHC7.js +181 -0
- package/dist/chunks/chunk-W3NHDFYW.js +36 -0
- package/dist/chunks/chunk-W3OTXJU7.js +54 -0
- package/dist/chunks/chunk-W4ISZWGS.js +293 -0
- package/dist/chunks/chunk-W6KYYYJC.js +46 -0
- package/dist/chunks/chunk-W6MKW33A.js +140 -0
- package/dist/chunks/chunk-WBY6VWL6.js +23 -0
- package/dist/chunks/chunk-WC52SXBD.js +100 -0
- package/dist/chunks/chunk-WCD3RGJ6.js +235 -0
- package/dist/chunks/chunk-WD3NJIMG.js +263 -0
- package/dist/chunks/chunk-WFL7LL5M.js +160 -0
- package/dist/chunks/chunk-WGJ2GIUB.js +147 -0
- package/dist/chunks/chunk-WH6ZJGSZ.js +106 -0
- package/dist/chunks/chunk-WI2FUDRD.js +111 -0
- package/dist/chunks/chunk-WIDAZPDX.js +209 -0
- package/dist/chunks/chunk-WITJMU7V.js +104 -0
- package/dist/chunks/chunk-WMQ7LW6N.js +73 -0
- package/dist/chunks/chunk-WQP54NDM.js +145 -0
- package/dist/chunks/chunk-WQP5MB23.js +92 -0
- package/dist/chunks/chunk-WRONAL2Q.js +139 -0
- package/dist/chunks/chunk-WSGMEP4S.js +98 -0
- package/dist/chunks/chunk-WT5O3CUK.js +147 -0
- package/dist/chunks/chunk-WU7K5RDM.js +130 -0
- package/dist/chunks/chunk-WUPIR2C5.js +160 -0
- package/dist/chunks/chunk-WVBS42BQ.js +23 -0
- package/dist/chunks/chunk-WYS4NOCM.js +59 -0
- package/dist/chunks/chunk-X2LPOB2E.js +23 -0
- package/dist/chunks/chunk-X4OSHAMR.js +284 -0
- package/dist/chunks/chunk-X6FY5KF6.js +303 -0
- package/dist/chunks/chunk-XA4MTSNM.js +52 -0
- package/dist/chunks/chunk-XBVUB7WM.js +162 -0
- package/dist/chunks/chunk-XCW2W2H6.js +45 -0
- package/dist/chunks/chunk-XD3U3FBN.js +208 -0
- package/dist/chunks/chunk-XFM7EG6T.js +161 -0
- package/dist/chunks/chunk-XFU25KFG.js +150 -0
- package/dist/chunks/chunk-XGSGFWOA.js +1336 -0
- package/dist/chunks/chunk-XHHXJETM.js +304 -0
- package/dist/chunks/chunk-XI75AYM7.js +128 -0
- package/dist/chunks/chunk-XID65MGW.js +122 -0
- package/dist/chunks/chunk-XJT5I7Q5.js +204 -0
- package/dist/chunks/chunk-XNAIDB2J.js +157 -0
- package/dist/chunks/chunk-XOYDHW57.js +80 -0
- package/dist/chunks/chunk-XP2NX54J.js +71 -0
- package/dist/chunks/chunk-XPWHBNKE.js +231 -0
- package/dist/chunks/chunk-XRQKZWVI.js +889 -0
- package/dist/chunks/chunk-XSWOKRKK.js +33 -0
- package/dist/chunks/chunk-XUQOVYGL.js +70 -0
- package/dist/chunks/chunk-XUVU6RGW.js +100 -0
- package/dist/chunks/chunk-XVGCCOSB.js +147 -0
- package/dist/chunks/chunk-XWSIP4UL.js +42 -0
- package/dist/chunks/chunk-XXS2OICM.js +169 -0
- package/dist/chunks/chunk-XYAOOAFK.js +213 -0
- package/dist/chunks/chunk-XYGRZCD3.js +299 -0
- package/dist/chunks/chunk-XYJQVIQS.js +33 -0
- package/dist/chunks/chunk-XZEC65QN.js +188 -0
- package/dist/chunks/chunk-Y2SPXSXX.js +146 -0
- package/dist/chunks/chunk-Y2ZKXJU7.js +47 -0
- package/dist/chunks/chunk-Y3SQN3HG.js +33 -0
- package/dist/chunks/chunk-Y5QMCXZW.js +118 -0
- package/dist/chunks/chunk-Y7MTUKWE.js +45 -0
- package/dist/chunks/chunk-YA6UN64U.js +33 -0
- package/dist/chunks/chunk-YEMSEBGZ.js +175 -0
- package/dist/chunks/chunk-YFYNKORZ.js +79 -0
- package/dist/chunks/chunk-YG6KUK66.js +83 -0
- package/dist/chunks/chunk-YGAKCHYZ.js +163 -0
- package/dist/chunks/chunk-YGW342SB.js +85 -0
- package/dist/chunks/chunk-YII7JWBC.js +72 -0
- package/dist/chunks/chunk-YKSUY6R3.js +143 -0
- package/dist/chunks/chunk-YLF6MNX2.js +33 -0
- package/dist/chunks/chunk-YNJTWPGD.js +129 -0
- package/dist/chunks/chunk-YOUHNX7K.js +124 -0
- package/dist/chunks/chunk-YPBUUOEA.js +242 -0
- package/dist/chunks/chunk-YRTRUUPD.js +251 -0
- package/dist/chunks/chunk-YSGRTE7Q.js +23 -0
- package/dist/chunks/chunk-YSQWZ34X.js +23 -0
- package/dist/chunks/chunk-YTL2PXPD.js +122 -0
- package/dist/chunks/chunk-YU66RM4F.js +23 -0
- package/dist/chunks/chunk-YURD5SJ4.js +260 -0
- package/dist/chunks/chunk-YV3ZDLZJ.js +75 -0
- package/dist/chunks/chunk-YW7I43ZL.js +267 -0
- package/dist/chunks/chunk-YXEBTKIV.js +237 -0
- package/dist/chunks/chunk-YXPKVJKP.js +123 -0
- package/dist/chunks/chunk-YZLKBONZ.js +23 -0
- package/dist/chunks/chunk-Z4BNZ357.js +45 -0
- package/dist/chunks/chunk-Z74EQ5OF.js +130 -0
- package/dist/chunks/chunk-ZAUFHCHR.js +23 -0
- package/dist/chunks/chunk-ZBB5P4SC.js +196 -0
- package/dist/chunks/chunk-ZCNHWGNB.js +153 -0
- package/dist/chunks/chunk-ZCSKRQ3K.js +197 -0
- package/dist/chunks/chunk-ZEF44UKP.js +120 -0
- package/dist/chunks/chunk-ZEM5H6V5.js +85 -0
- package/dist/chunks/chunk-ZIEMZSBD.js +70 -0
- package/dist/chunks/chunk-ZJJFSNI2.js +123 -0
- package/dist/chunks/chunk-ZNUGZRCH.js +462 -0
- package/dist/chunks/chunk-ZUBM5LLJ.js +86 -0
- package/dist/chunks/chunk-ZVNYL4RR.js +78 -0
- package/dist/chunks/chunk-ZXH5FQDD.js +84 -0
- package/dist/chunks/chunk-ZXQTDOZW.js +108 -0
- package/dist/chunks/client-4WCENZEF.js +31 -0
- package/dist/chunks/client-RU56OBW3.js +168 -0
- package/dist/chunks/client-XS7K4T3M.js +47 -0
- package/dist/chunks/client-actions-ZKDNHOSP.js +168 -0
- package/dist/chunks/dangerous-ZWVJF4T2.js +121 -0
- package/dist/chunks/delete-current-file-UGPMMVAK.js +161 -0
- package/dist/chunks/editor-seams-6QVJMRCV.js +180 -0
- package/dist/chunks/editor-store-UUSPBXFS.js +147 -0
- package/dist/chunks/export-watermark-RY2CD55R.js +155 -0
- package/dist/chunks/eyedropper-TBY5M4HY.js +354 -0
- package/dist/chunks/generate-media-EGPMFNW4.js +255 -0
- package/dist/chunks/host-IV3R6D22.js +180 -0
- package/dist/chunks/integrations-S6JFCV6C.js +125 -0
- package/dist/chunks/kit-modules-IEFPIBKT.js +18 -0
- package/dist/chunks/libraries-6RVQKIGO.js +309 -0
- package/dist/chunks/live-2AAPOZRV.js +321 -0
- package/dist/chunks/media-tool-2VD56TN3.js +236 -0
- package/dist/chunks/new-file-CUPS2ZLS.js +139 -0
- package/dist/chunks/plugin-MSBORXUT.js +128 -0
- package/dist/chunks/plugin-import-4AXE4HIZ.js +688 -0
- package/dist/chunks/presence-FYOBINK7.js +136 -0
- package/dist/chunks/project-WWVB5VTZ.js +1654 -0
- package/dist/chunks/publish-site-OPP762L6.js +165 -0
- package/dist/chunks/publish-store-NFAISGJZ.js +95 -0
- package/dist/chunks/raster-actions-7XEW3BQ6.js +232 -0
- package/dist/chunks/runner-QKTFG3L6.js +3543 -0
- package/dist/chunks/store-56KML7VE.js +233 -0
- package/dist/chunks/sync-ZK2X5JRE.js +160 -0
- package/dist/chunks/tabs-DHEGJZ7D.js +319 -0
- package/dist/chunks/team-POYIGLVA.js +47 -0
- package/dist/chunks/team-client-FK5ZRP4Q.js +158 -0
- package/dist/chunks/tools-YX4OPAKI.js +37 -0
- package/dist/chunks/ui-commands-XK4RLLQ5.js +188 -0
- package/dist/chunks/versions-ALVKLH7G.js +318 -0
- package/dist/index.js +6 -6
- package/dist/lib/templates/resize.js +1 -1
- package/dist/migrations/brand-media.js +3 -3
- package/dist/migrations/index.js +3 -3
- package/dist/templates/anime/character.js +4 -4
- package/dist/templates/anime/duel.js +7 -7
- package/dist/templates/anime/morning.js +7 -7
- package/dist/templates/anime/rain.js +7 -7
- package/dist/templates/anime/shared.js +5 -5
- package/dist/templates/anime/starlight.js +7 -7
- package/dist/templates/anime/titan.js +7 -7
- package/dist/templates/app/festival-presale-electronic-ticket.js +6 -6
- package/dist/templates/app/festival-presale-family-ticket.js +6 -6
- package/dist/templates/app/festival-presale-folk-ticket.js +6 -6
- package/dist/templates/app/festival-presale-food-ticket.js +6 -6
- package/dist/templates/app/festival-presale-jazz-ticket.js +6 -6
- package/dist/templates/app/festival-presale-street-ticket.js +6 -6
- package/dist/templates/app/music/build.js +3 -3
- package/dist/templates/app/music-grove.js +4 -4
- package/dist/templates/app/music-nightline.js +4 -4
- package/dist/templates/app/music-orbit.js +4 -4
- package/dist/templates/app/music-undertow.js +4 -4
- package/dist/templates/app/onboarding-carousel.js +3 -3
- package/dist/templates/app/saas-store-paywall.js +3 -3
- package/dist/templates/app/splash.js +3 -3
- package/dist/templates/app/success-confetti.js +3 -3
- package/dist/templates/app/tour-tickets-june-ticket.js +3 -3
- package/dist/templates/app/tour-tickets-tide-ticket.js +3 -3
- package/dist/templates/app/tour-tickets-wreck-ticket.js +3 -3
- package/dist/templates/cards/index.js +5 -5
- package/dist/templates/cards/shared.js +3 -3
- package/dist/templates/cards/themes.js +4 -4
- package/dist/templates/data/bars.js +3 -3
- package/dist/templates/data/countdown-story.js +3 -3
- package/dist/templates/data/counters.js +3 -3
- package/dist/templates/data/donut.js +3 -3
- package/dist/templates/data/line.js +3 -3
- package/dist/templates/data/year-in-review.js +3 -3
- package/dist/templates/effects/glass-intro.js +3 -3
- package/dist/templates/effects/glass-promo.js +3 -3
- package/dist/templates/effects/grain-story.js +3 -3
- package/dist/templates/effects/grid-intro.js +3 -3
- package/dist/templates/effects/halftone-story.js +3 -3
- package/dist/templates/effects/mesh-story.js +3 -3
- package/dist/templates/effects/shader-title.js +3 -3
- package/dist/templates/email/april-fools-header.js +5 -5
- package/dist/templates/email/art-deco-invitation.js +4 -4
- package/dist/templates/email/autumn-harvest-header.js +4 -4
- package/dist/templates/email/back-to-school-header.js +4 -4
- package/dist/templates/email/black-friday-coupons-header.js +4 -4
- package/dist/templates/email/black-friday-header.js +4 -4
- package/dist/templates/email/black-friday-neon-header.js +4 -4
- package/dist/templates/email/black-friday-scratch-header.js +4 -4
- package/dist/templates/email/black-friday-ticker-header.js +4 -4
- package/dist/templates/email/broadsheet-weekly-edition-header.js +4 -4
- package/dist/templates/email/claymation-header.js +4 -4
- package/dist/templates/email/countdown-gif.js +4 -4
- package/dist/templates/email/cyberpunk-header.js +4 -4
- package/dist/templates/email/diwali-header.js +4 -4
- package/dist/templates/email/earth-day-header.js +4 -4
- package/dist/templates/email/festival-presale-electronic-header.js +6 -6
- package/dist/templates/email/festival-presale-family-header.js +6 -6
- package/dist/templates/email/festival-presale-folk-header.js +6 -6
- package/dist/templates/email/festival-presale-food-header.js +6 -6
- package/dist/templates/email/festival-presale-jazz-header.js +6 -6
- package/dist/templates/email/festival-presale-street-header.js +6 -6
- package/dist/templates/email/gothic-header.js +4 -4
- package/dist/templates/email/halloween-header.js +4 -4
- package/dist/templates/email/header-launch.js +4 -4
- package/dist/templates/email/header-newsletter.js +4 -4
- package/dist/templates/email/header-sale.js +4 -4
- package/dist/templates/email/lunar-new-year-header.js +4 -4
- package/dist/templates/email/manuscript-chronicle-header.js +4 -4
- package/dist/templates/email/new-year-header.js +4 -4
- package/dist/templates/email/noir-header.js +4 -4
- package/dist/templates/email/psychedelic-header.js +4 -4
- package/dist/templates/email/riso-zine-changelog-header.js +4 -4
- package/dist/templates/email/saas-mail-changelog.js +6 -6
- package/dist/templates/email/saas-mail-day-one.js +5 -5
- package/dist/templates/email/saas-mail-day-three.js +5 -5
- package/dist/templates/email/saas-mail-launch.js +5 -5
- package/dist/templates/email/saas-mail-payment-failed.js +5 -5
- package/dist/templates/email/saas-mail-sign-in-code.js +5 -5
- package/dist/templates/email/saas-mail-trial-ending.js +5 -5
- package/dist/templates/email/saas-mail-waitlist.js +5 -5
- package/dist/templates/email/shared.js +3 -3
- package/dist/templates/email/singles-day-header.js +4 -4
- package/dist/templates/email/solarpunk-header.js +4 -4
- package/dist/templates/email/space-opera-header.js +4 -4
- package/dist/templates/email/spring-bloom-header.js +4 -4
- package/dist/templates/email/style-bento-header.js +4 -4
- package/dist/templates/email/style-brutalist-header.js +4 -4
- package/dist/templates/email/style-dark-header.js +4 -4
- package/dist/templates/email/style-data-header.js +4 -4
- package/dist/templates/email/style-editorial-header.js +4 -4
- package/dist/templates/email/style-glass-header.js +4 -4
- package/dist/templates/email/style-gradient-header.js +4 -4
- package/dist/templates/email/style-maximal-header.js +4 -4
- package/dist/templates/email/style-pastel-header.js +4 -4
- package/dist/templates/email/style-sketch-header.js +4 -4
- package/dist/templates/email/style-swiss-header.js +4 -4
- package/dist/templates/email/style-terminal-header.js +4 -4
- package/dist/templates/email/summer-heatwave-header.js +4 -4
- package/dist/templates/email/tour-tickets-june-header.js +4 -4
- package/dist/templates/email/tour-tickets-tide-header.js +4 -4
- package/dist/templates/email/tour-tickets-wreck-header.js +4 -4
- package/dist/templates/email/transit-map-service-update.js +4 -4
- package/dist/templates/email/ukiyo-e-greeting-header.js +4 -4
- package/dist/templates/email/valentines-header.js +4 -4
- package/dist/templates/email/winter-cosy-header.js +4 -4
- package/dist/templates/email/winter-holidays-header.js +4 -4
- package/dist/templates/game/blossom-bash-puzzle.js +4 -4
- package/dist/templates/game/deckbound-roguelike.js +4 -4
- package/dist/templates/game/emberfall-rpg.js +4 -4
- package/dist/templates/game/hearthmoor-farm.js +4 -4
- package/dist/templates/game/index.js +17 -17
- package/dist/templates/game/iron-lotus-fighter.js +4 -4
- package/dist/templates/game/ironroot-rts.js +4 -4
- package/dist/templates/game/mossy-hollow-platformer.js +6 -6
- package/dist/templates/game/neon-apex-racing.js +4 -4
- package/dist/templates/game/platformer.js +5 -5
- package/dist/templates/game/pulse-riot-rhythm.js +4 -4
- package/dist/templates/game/shared.js +3 -3
- package/dist/templates/game/sprout-quest-pixel-platformer.js +6 -6
- package/dist/templates/game/vanta-fps.js +4 -4
- package/dist/templates/index.js +834 -834
- package/dist/templates/kinetic/letters.js +3 -3
- package/dist/templates/kinetic/lines.js +3 -3
- package/dist/templates/kinetic/typewriter.js +3 -3
- package/dist/templates/kinetic/word-swap.js +3 -3
- package/dist/templates/kinetic/words.js +3 -3
- package/dist/templates/kit.js +2 -2
- package/dist/templates/libraries/audio-reactive.js +3 -3
- package/dist/templates/libraries/loaders.js +3 -3
- package/dist/templates/libraries/micro-interactions.js +3 -3
- package/dist/templates/libraries/motion-essentials.js +3 -3
- package/dist/templates/libraries/toasts.js +3 -3
- package/dist/templates/lottie/ai.js +4 -4
- package/dist/templates/lottie/climate.js +4 -4
- package/dist/templates/lottie/commerce.js +4 -4
- package/dist/templates/lottie/education.js +4 -4
- package/dist/templates/lottie/fintech.js +4 -4
- package/dist/templates/lottie/food.js +4 -4
- package/dist/templates/lottie/health.js +4 -4
- package/dist/templates/lottie/index.js +28 -28
- package/dist/templates/lottie/lottie-kit.js +3 -3
- package/dist/templates/lottie/realestate.js +4 -4
- package/dist/templates/lottie/saas-ui-checklist.js +5 -5
- package/dist/templates/lottie/saas-ui-dashboard-hero.js +5 -5
- package/dist/templates/lottie/saas-ui-empty-data.js +5 -5
- package/dist/templates/lottie/saas-ui-empty-search.js +5 -5
- package/dist/templates/lottie/saas-ui-error-retry.js +5 -5
- package/dist/templates/lottie/saas-ui-file-upload.js +5 -5
- package/dist/templates/lottie/saas-ui-streaming-answer.js +5 -5
- package/dist/templates/lottie/saas-ui-sync-connected.js +5 -5
- package/dist/templates/lottie/saas-ui-trial-timeline.js +5 -5
- package/dist/templates/lottie/saas-ui-upgrade-unlocked.js +5 -5
- package/dist/templates/lottie/saas-ui.js +15 -15
- package/dist/templates/lottie/saas.js +4 -4
- package/dist/templates/lottie/security.js +4 -4
- package/dist/templates/lottie/techniques.js +4 -4
- package/dist/templates/lottie/travel.js +4 -4
- package/dist/templates/motion/ai-trailer/index.js +3 -3
- package/dist/templates/motion/ambient-loop.js +3 -3
- package/dist/templates/motion/app-icon-sting.js +3 -3
- package/dist/templates/motion/april-fools-infomercial-reel.js +5 -5
- package/dist/templates/motion/arcade-high-score.js +3 -3
- package/dist/templates/motion/art-deco-grand-opening.js +3 -3
- package/dist/templates/motion/autumn-harvest-year-reel.js +3 -3
- package/dist/templates/motion/back-to-school-timetable-reel.js +3 -3
- package/dist/templates/motion/bauhaus-launch-reel.js +3 -3
- package/dist/templates/motion/black-friday-coupons-deal-reel.js +3 -3
- package/dist/templates/motion/black-friday-coupons-last-day.js +3 -3
- package/dist/templates/motion/black-friday-deal-drop.js +3 -3
- package/dist/templates/motion/black-friday-neon-deal-reel.js +3 -3
- package/dist/templates/motion/black-friday-neon-last-day.js +3 -3
- package/dist/templates/motion/black-friday-scratch-countdown.js +3 -3
- package/dist/templates/motion/black-friday-scratch-deal-reel.js +3 -3
- package/dist/templates/motion/black-friday-scratch-last-day.js +3 -3
- package/dist/templates/motion/black-friday-ticker-deal-drop.js +3 -3
- package/dist/templates/motion/black-friday-ticker-last-call.js +3 -3
- package/dist/templates/motion/blueprint-rev-b-reel.js +3 -3
- package/dist/templates/motion/broadsheet-launch-reel.js +3 -3
- package/dist/templates/motion/broadsheet-milestone-post.js +4 -4
- package/dist/templates/motion/claymation-launch-reel.js +3 -3
- package/dist/templates/motion/comic-book-issue-reel.js +3 -3
- package/dist/templates/motion/countdown.js +3 -3
- package/dist/templates/motion/cyberpunk-lock-on-reel.js +3 -3
- package/dist/templates/motion/departure-board-reel.js +3 -3
- package/dist/templates/motion/diwali-lamps-reel.js +3 -3
- package/dist/templates/motion/earth-day-footprint-reel.js +3 -3
- package/dist/templates/motion/earth-day-pledge-post.js +3 -3
- package/dist/templates/motion/festival-presale-electronic-countdown.js +6 -6
- package/dist/templates/motion/festival-presale-electronic-lineup.js +6 -6
- package/dist/templates/motion/festival-presale-electronic-reel.js +6 -6
- package/dist/templates/motion/festival-presale-electronic-tier.js +6 -6
- package/dist/templates/motion/festival-presale-family-countdown.js +6 -6
- package/dist/templates/motion/festival-presale-family-lineup.js +6 -6
- package/dist/templates/motion/festival-presale-family-reel.js +6 -6
- package/dist/templates/motion/festival-presale-family-tier.js +6 -6
- package/dist/templates/motion/festival-presale-folk-countdown.js +6 -6
- package/dist/templates/motion/festival-presale-folk-lineup.js +6 -6
- package/dist/templates/motion/festival-presale-folk-reel.js +6 -6
- package/dist/templates/motion/festival-presale-folk-tier.js +6 -6
- package/dist/templates/motion/festival-presale-food-countdown.js +6 -6
- package/dist/templates/motion/festival-presale-food-lineup.js +6 -6
- package/dist/templates/motion/festival-presale-food-reel.js +6 -6
- package/dist/templates/motion/festival-presale-food-tier.js +6 -6
- package/dist/templates/motion/festival-presale-jazz-countdown.js +6 -6
- package/dist/templates/motion/festival-presale-jazz-lineup.js +6 -6
- package/dist/templates/motion/festival-presale-jazz-reel.js +6 -6
- package/dist/templates/motion/festival-presale-jazz-tier.js +6 -6
- package/dist/templates/motion/festival-presale-street-countdown.js +6 -6
- package/dist/templates/motion/festival-presale-street-lineup.js +6 -6
- package/dist/templates/motion/festival-presale-street-reel.js +6 -6
- package/dist/templates/motion/festival-presale-street-tier.js +6 -6
- package/dist/templates/motion/gothic-launch-reel.js +3 -3
- package/dist/templates/motion/halloween-graveyard-reel.js +3 -3
- package/dist/templates/motion/instagram-promo.js +3 -3
- package/dist/templates/motion/kinetic-headline.js +3 -3
- package/dist/templates/motion/landing-hero/index.js +5 -5
- package/dist/templates/motion/launch-trailer/document.js +834 -834
- package/dist/templates/motion/launch-trailer/index.js +5 -5
- package/dist/templates/motion/launch-trailer/scenes.js +4 -4
- package/dist/templates/motion/logo-reveal.js +3 -3
- package/dist/templates/motion/lower-third.js +3 -3
- package/dist/templates/motion/lunar-new-year-envelope-reel.js +3 -3
- package/dist/templates/motion/machined-trailer.js +5 -5
- package/dist/templates/motion/manuscript-launch-reel.js +3 -3
- package/dist/templates/motion/new-year-ball-drop-reel.js +3 -3
- package/dist/templates/motion/noir-case-reel.js +3 -3
- package/dist/templates/motion/pitch-title.js +3 -3
- package/dist/templates/motion/psychedelic-gig-reel.js +3 -3
- package/dist/templates/motion/riso-zine-launch-reel.js +3 -3
- package/dist/templates/motion/saas-ai-prompt.js +3 -3
- package/dist/templates/motion/saas-before-after.js +3 -3
- package/dist/templates/motion/saas-changelog-drop.js +3 -3
- package/dist/templates/motion/saas-film-webinar-opener.js +3 -3
- package/dist/templates/motion/saas-hook-features.js +3 -3
- package/dist/templates/motion/saas-mrr-milestone.js +3 -3
- package/dist/templates/motion/saas-screen-demo.js +3 -3
- package/dist/templates/motion/saas-store-install-ad.js +4 -4
- package/dist/templates/motion/saas-testimonial.js +3 -3
- package/dist/templates/motion/saas-vs-comparison.js +3 -3
- package/dist/templates/motion/singles-day-flash-post.js +3 -3
- package/dist/templates/motion/singles-day-live-reel.js +3 -3
- package/dist/templates/motion/smooth-loop.js +3 -3
- package/dist/templates/motion/solarpunk-rooftop-reel.js +3 -3
- package/dist/templates/motion/space-opera-countdown-reel.js +3 -3
- package/dist/templates/motion/spring-bloom-first-hundred-post.js +3 -3
- package/dist/templates/motion/spring-bloom-first-shoots-reel.js +3 -3
- package/dist/templates/motion/stat-pop.js +3 -3
- package/dist/templates/motion/style-bento-feature-demo.js +3 -3
- package/dist/templates/motion/style-bento-launch-reel.js +3 -3
- package/dist/templates/motion/style-brutalist-feature-demo.js +3 -3
- package/dist/templates/motion/style-brutalist-launch-reel.js +3 -3
- package/dist/templates/motion/style-dark-feature-demo.js +3 -3
- package/dist/templates/motion/style-dark-launch-reel.js +3 -3
- package/dist/templates/motion/style-data-feature-demo.js +3 -3
- package/dist/templates/motion/style-data-launch-reel.js +3 -3
- package/dist/templates/motion/style-editorial-feature-demo.js +3 -3
- package/dist/templates/motion/style-editorial-launch-reel.js +3 -3
- package/dist/templates/motion/style-glass-feature-demo.js +3 -3
- package/dist/templates/motion/style-glass-launch-reel.js +3 -3
- package/dist/templates/motion/style-gradient-feature-demo.js +3 -3
- package/dist/templates/motion/style-gradient-launch-reel.js +3 -3
- package/dist/templates/motion/style-maximal-beat-cut.js +3 -3
- package/dist/templates/motion/style-maximal-feature-demo.js +3 -3
- package/dist/templates/motion/style-maximal-launch-reel.js +3 -3
- package/dist/templates/motion/style-pastel-feature-demo.js +3 -3
- package/dist/templates/motion/style-pastel-launch-reel.js +3 -3
- package/dist/templates/motion/style-sketch-feature-demo.js +3 -3
- package/dist/templates/motion/style-sketch-launch-reel.js +3 -3
- package/dist/templates/motion/style-swiss-feature-demo.js +3 -3
- package/dist/templates/motion/style-swiss-launch-reel.js +3 -3
- package/dist/templates/motion/style-terminal-feature-demo.js +3 -3
- package/dist/templates/motion/style-terminal-launch-reel.js +3 -3
- package/dist/templates/motion/summer-heatwave-lido-reel.js +3 -3
- package/dist/templates/motion/template-wall.js +3 -3
- package/dist/templates/motion/title-card-3d.js +3 -3
- package/dist/templates/motion/tour-tickets-june-city.js +3 -3
- package/dist/templates/motion/tour-tickets-june-dates.js +3 -3
- package/dist/templates/motion/tour-tickets-june-final.js +3 -3
- package/dist/templates/motion/tour-tickets-june-reel.js +3 -3
- package/dist/templates/motion/tour-tickets-tide-city.js +3 -3
- package/dist/templates/motion/tour-tickets-tide-dates.js +3 -3
- package/dist/templates/motion/tour-tickets-tide-final.js +3 -3
- package/dist/templates/motion/tour-tickets-tide-reel.js +3 -3
- package/dist/templates/motion/tour-tickets-wreck-city.js +3 -3
- package/dist/templates/motion/tour-tickets-wreck-dates.js +3 -3
- package/dist/templates/motion/tour-tickets-wreck-final.js +3 -3
- package/dist/templates/motion/tour-tickets-wreck-reel.js +3 -3
- package/dist/templates/motion/transit-map-line-opening.js +3 -3
- package/dist/templates/motion/transit-map-milestone-post.js +3 -3
- package/dist/templates/motion/ukiyo-e-launch-reel.js +3 -3
- package/dist/templates/motion/valentines-breakup-reel.js +3 -3
- package/dist/templates/motion/vaporwave-launch-reel.js +4 -4
- package/dist/templates/motion/winter-cosy-heads-down-post.js +3 -3
- package/dist/templates/motion/winter-cosy-hibernation-reel.js +3 -3
- package/dist/templates/motion/winter-holidays-advent-reel.js +3 -3
- package/dist/templates/motion-qa.js +3 -3
- package/dist/templates/motion3d/app-store-preview.js +4 -4
- package/dist/templates/motion3d/before-after-swing.js +4 -4
- package/dist/templates/motion3d/burger-reveal.js +4 -4
- package/dist/templates/motion3d/coverflow.js +4 -4
- package/dist/templates/motion3d/exploded-ui.js +4 -4
- package/dist/templates/motion3d/feature-flip.js +4 -4
- package/dist/templates/motion3d/kinetic-reveal.js +4 -4
- package/dist/templates/motion3d/laptop-reveal.js +4 -4
- package/dist/templates/motion3d/logo-extrude.js +4 -4
- package/dist/templates/motion3d/parallax-cascade.js +4 -4
- package/dist/templates/motion3d/phone-orbit.js +4 -4
- package/dist/templates/motion3d/pricing-fan.js +4 -4
- package/dist/templates/motion3d/product-turntable.js +4 -4
- package/dist/templates/motion3d/saas-film-cinematic-trailer.js +5 -5
- package/dist/templates/motion3d/screen-wall.js +4 -4
- package/dist/templates/motion3d/stage.js +3 -3
- package/dist/templates/motion3d/vertical-promo.js +4 -4
- package/dist/templates/music/edm-drop.js +4 -4
- package/dist/templates/music/festival-lineup.js +4 -4
- package/dist/templates/music/hiphop-lyrics.js +4 -4
- package/dist/templates/music/indie-poster.js +4 -4
- package/dist/templates/music/lofi-loop.js +4 -4
- package/dist/templates/music/podcast-audiogram.js +4 -4
- package/dist/templates/music/shared.js +3 -3
- package/dist/templates/music/synthwave-tunnel.js +4 -4
- package/dist/templates/print/comic-hero-cascade.js +3 -3
- package/dist/templates/print/comic-hero-chase.js +3 -3
- package/dist/templates/print/comic-hero-cover-modern.js +3 -3
- package/dist/templates/print/comic-hero-grid-break.js +3 -3
- package/dist/templates/print/comic-hero-interrogation.js +3 -3
- package/dist/templates/print/comic-hero-issue.js +14 -14
- package/dist/templates/print/comic-hero-manga-action.js +3 -3
- package/dist/templates/print/comic-hero-nested.js +3 -3
- package/dist/templates/print/comic-hero-overlap.js +3 -3
- package/dist/templates/print/comic-hero-parallel.js +3 -3
- package/dist/templates/print/comic-hero-pinup.js +3 -3
- package/dist/templates/print/comic-hero-widescreen.js +3 -3
- package/dist/templates/print/comic-modern-action-slant.js +3 -3
- package/dist/templates/print/comic-modern-cover-pulp.js +3 -3
- package/dist/templates/print/comic-modern-flashback.js +3 -3
- package/dist/templates/print/comic-modern-issue.js +12 -12
- package/dist/templates/print/comic-modern-nine-grid.js +3 -3
- package/dist/templates/print/comic-modern-page-classic.js +3 -3
- package/dist/templates/print/comic-modern-polyptych.js +3 -3
- package/dist/templates/print/comic-modern-radial.js +3 -3
- package/dist/templates/print/comic-modern-splash.js +3 -3
- package/dist/templates/print/comic-modern-spread.js +3 -3
- package/dist/templates/print/everyday-save-the-date.js +3 -3
- package/dist/templates/print/everyday-specials-board.js +3 -3
- package/dist/templates/print/holidays-christmas-church-newsletter.js +3 -3
- package/dist/templates/print/holidays-christmas-eve-invitation.js +3 -3
- package/dist/templates/print/holidays-christmas-gift-tags.js +3 -3
- package/dist/templates/print/holidays-diwali-party-invitation.js +3 -3
- package/dist/templates/print/holidays-easter-activity-sheet.js +3 -3
- package/dist/templates/print/holidays-easter-egg-hunt-flyer.js +3 -3
- package/dist/templates/print/holidays-eid-dinner-invitation.js +3 -3
- package/dist/templates/print/holidays-eid-gift-tags.js +3 -3
- package/dist/templates/print/holidays-halloween-party-invitation.js +3 -3
- package/dist/templates/print/holidays-halloween-treat-labels.js +3 -3
- package/dist/templates/print/holidays-halloween-trunk-or-treat-poster.js +3 -3
- package/dist/templates/print/holidays-hanukkah-activity-sheet.js +3 -3
- package/dist/templates/print/holidays-hanukkah-party-invitation.js +3 -3
- package/dist/templates/print/holidays-lunar-new-year-banquet-menu.js +3 -3
- package/dist/templates/print/holidays-new-years-eve-poster.js +3 -3
- package/dist/templates/print/holidays-thanksgiving-dinner-menu.js +3 -3
- package/dist/templates/print/holidays-thanksgiving-place-cards.js +3 -3
- package/dist/templates/print/holidays-valentines-dinner-menu.js +3 -3
- package/dist/templates/print/printshop-booklet-open-day.js +4 -4
- package/dist/templates/print/printshop-brochure-community.js +4 -4
- package/dist/templates/print/printshop-brochure-dental.js +4 -4
- package/dist/templates/print/printshop-brochure-gym.js +4 -4
- package/dist/templates/print/printshop-brochure-landscaping.js +4 -4
- package/dist/templates/print/printshop-brochure-travel.js +5 -5
- package/dist/templates/print/printshop-card-architect.js +4 -4
- package/dist/templates/print/printshop-card-barber.js +4 -4
- package/dist/templates/print/printshop-card-cafe.js +4 -4
- package/dist/templates/print/printshop-card-developer.js +4 -4
- package/dist/templates/print/printshop-card-florist.js +4 -4
- package/dist/templates/print/printshop-card-lawyer.js +4 -4
- package/dist/templates/print/printshop-card-photographer.js +5 -5
- package/dist/templates/print/printshop-card-plumber.js +4 -4
- package/dist/templates/print/printshop-card-realtor.js +4 -4
- package/dist/templates/print/printshop-card-yoga.js +4 -4
- package/dist/templates/print/printshop-flyer-charity-run.js +4 -4
- package/dist/templates/print/printshop-flyer-farmers-market.js +4 -4
- package/dist/templates/print/printshop-flyer-garage-sale.js +4 -4
- package/dist/templates/print/printshop-flyer-grand-opening.js +4 -4
- package/dist/templates/print/printshop-flyer-lost-pet.js +4 -4
- package/dist/templates/print/printshop-flyer-tutoring.js +4 -4
- package/dist/templates/print/printshop-flyer-yard-work.js +4 -4
- package/dist/templates/print/printshop-poster-live-music.js +4 -4
- package/dist/templates/print/studio-class-timetable-poster.js +3 -3
- package/dist/templates/print/studio-portfolio-booklet.js +4 -4
- package/dist/templates/saas/email-decks-shared.js +4 -4
- package/dist/templates/saas/email-decks.js +16 -16
- package/dist/templates/saas/index.js +190 -190
- package/dist/templates/saas/launch-kit.js +12 -12
- package/dist/templates/saas/launch-video.js +11 -11
- package/dist/templates/saas/lottie-shared.js +4 -4
- package/dist/templates/saas/stores-shared.js +3 -3
- package/dist/templates/saas/stores.js +14 -14
- package/dist/templates/saas/style-bento.js +13 -13
- package/dist/templates/saas/style-brutalist.js +13 -13
- package/dist/templates/saas/style-dark.js +13 -13
- package/dist/templates/saas/style-data.js +13 -13
- package/dist/templates/saas/style-editorial.js +13 -13
- package/dist/templates/saas/style-glass.js +13 -13
- package/dist/templates/saas/style-gradient.js +13 -13
- package/dist/templates/saas/style-maximal.js +14 -14
- package/dist/templates/saas/style-pastel.js +13 -13
- package/dist/templates/saas/style-sketch.js +13 -13
- package/dist/templates/saas/style-swiss.js +13 -13
- package/dist/templates/saas/style-terminal.js +13 -13
- package/dist/templates/saas/video.js +11 -11
- package/dist/templates/saas/web.js +15 -15
- package/dist/templates/scenes/before-after.js +3 -3
- package/dist/templates/scenes/carousel-video.js +4 -4
- package/dist/templates/scenes/saas-film-app-preview.js +4 -4
- package/dist/templates/scenes/saas-film-bright-trailer.js +4 -4
- package/dist/templates/scenes/saas-film-product-hunt-launch.js +4 -4
- package/dist/templates/scenes/saas-film-youtube-demo-kit.js +4 -4
- package/dist/templates/scenes/shared.js +3 -3
- package/dist/templates/scenes/story-ad.js +4 -4
- package/dist/templates/scenes/story-bakery.js +4 -4
- package/dist/templates/scenes/story-fitness.js +4 -4
- package/dist/templates/scenes/story-hotel.js +4 -4
- package/dist/templates/scenes/transitions-pack.js +4 -4
- package/dist/templates/scenes/web-scroll.js +4 -4
- package/dist/templates/slides/agenda.js +4 -4
- package/dist/templates/slides/deck.js +3 -3
- package/dist/templates/slides/education.js +4 -4
- package/dist/templates/slides/launch.js +4 -4
- package/dist/templates/slides/layouts.js +4 -4
- package/dist/templates/slides/pitch.js +4 -4
- package/dist/templates/slides/report.js +4 -4
- package/dist/templates/slides/saas-mail-investor-update.js +5 -5
- package/dist/templates/slides/saas-mail-seed-pitch.js +5 -5
- package/dist/templates/slides/sales.js +4 -4
- package/dist/templates/slides/section-divider.js +4 -4
- package/dist/templates/slides/title-card.js +4 -4
- package/dist/templates/slides/training.js +4 -4
- package/dist/templates/slides/webinar.js +4 -4
- package/dist/templates/slideshow/adoption.js +5 -5
- package/dist/templates/slideshow/baby.js +5 -5
- package/dist/templates/slideshow/birthday.js +5 -5
- package/dist/templates/slideshow/graduation.js +5 -5
- package/dist/templates/slideshow/holiday.js +5 -5
- package/dist/templates/slideshow/home.js +5 -5
- package/dist/templates/slideshow/index.js +12 -12
- package/dist/templates/slideshow/lease.js +5 -5
- package/dist/templates/slideshow/memorial.js +5 -5
- package/dist/templates/slideshow/portfolio.js +5 -5
- package/dist/templates/slideshow/product.js +5 -5
- package/dist/templates/slideshow/recipe.js +5 -5
- package/dist/templates/slideshow/shared.js +4 -4
- package/dist/templates/slideshow/team.js +5 -5
- package/dist/templates/slideshow/travel.js +5 -5
- package/dist/templates/slideshow/wedding.js +5 -5
- package/dist/templates/slideshow/year.js +5 -5
- package/dist/templates/social/april-fools-link-preview.js +5 -5
- package/dist/templates/social/april-fools-price-slash-post.js +5 -5
- package/dist/templates/social/arcade-boss-fight.js +3 -3
- package/dist/templates/social/arcade-level-up.js +3 -3
- package/dist/templates/social/art-deco-link-preview.js +3 -3
- package/dist/templates/social/art-deco-premiere-post.js +3 -3
- package/dist/templates/social/autumn-harvest-link-preview.js +3 -3
- package/dist/templates/social/autumn-harvest-thanks-post.js +3 -3
- package/dist/templates/social/back-to-school-link-preview.js +3 -3
- package/dist/templates/social/back-to-school-report-card-post.js +3 -3
- package/dist/templates/social/bauhaus-drift-post.js +3 -3
- package/dist/templates/social/bauhaus-link-preview.js +3 -3
- package/dist/templates/social/bauhaus-pricing-post.js +3 -3
- package/dist/templates/social/black-friday-ads.js +3 -3
- package/dist/templates/social/black-friday-countdown.js +3 -3
- package/dist/templates/social/black-friday-coupons-ads.js +3 -3
- package/dist/templates/social/black-friday-coupons-countdown.js +3 -3
- package/dist/templates/social/black-friday-neon-ads.js +3 -3
- package/dist/templates/social/black-friday-neon-countdown.js +3 -3
- package/dist/templates/social/black-friday-scratch-ads.js +3 -3
- package/dist/templates/social/black-friday-ticker-ads.js +3 -3
- package/dist/templates/social/black-friday-ticker-countdown.js +3 -3
- package/dist/templates/social/blueprint-dimension-post.js +3 -3
- package/dist/templates/social/blueprint-link-preview.js +3 -3
- package/dist/templates/social/blueprint-parts-list-post.js +3 -3
- package/dist/templates/social/broadsheet-hiring-classifieds.js +3 -3
- package/dist/templates/social/broadsheet-link-preview.js +3 -3
- package/dist/templates/social/claymation-link-preview.js +3 -3
- package/dist/templates/social/claymation-streak-post.js +3 -3
- package/dist/templates/social/comic-book-cover-preview.js +3 -3
- package/dist/templates/social/comic-book-strip-post.js +3 -3
- package/dist/templates/social/cyberpunk-implant-post.js +3 -3
- package/dist/templates/social/cyberpunk-link-preview.js +3 -3
- package/dist/templates/social/departure-board-pass-ad.js +3 -3
- package/dist/templates/social/departure-board-store-set.js +3 -3
- package/dist/templates/social/departure-board-thanks-post.js +3 -3
- package/dist/templates/social/diwali-link-preview.js +3 -3
- package/dist/templates/social/diwali-thanks-post.js +3 -3
- package/dist/templates/social/earth-day-link-preview.js +3 -3
- package/dist/templates/social/everyday-save-the-date-post.js +3 -3
- package/dist/templates/social/festival-presale-electronic-ads.js +6 -6
- package/dist/templates/social/festival-presale-family-ads.js +6 -6
- package/dist/templates/social/festival-presale-folk-ads.js +6 -6
- package/dist/templates/social/festival-presale-food-ads.js +6 -6
- package/dist/templates/social/festival-presale-jazz-ads.js +6 -6
- package/dist/templates/social/festival-presale-street-ads.js +6 -6
- package/dist/templates/social/gothic-feature-post.js +3 -3
- package/dist/templates/social/gothic-link-preview.js +3 -3
- package/dist/templates/social/halloween-link-preview.js +3 -3
- package/dist/templates/social/halloween-offer-post.js +3 -3
- package/dist/templates/social/holidays-diwali-sweet-shop-post.js +3 -3
- package/dist/templates/social/holidays-lunar-new-year-bakery-post.js +3 -3
- package/dist/templates/social/holidays-new-years-eve-shop-hours.js +3 -3
- package/dist/templates/social/holidays-thanksgiving-pie-orders-post.js +3 -3
- package/dist/templates/social/holidays-valentines-florist-post.js +3 -3
- package/dist/templates/social/lunar-new-year-greeting-post.js +3 -3
- package/dist/templates/social/lunar-new-year-link-preview.js +3 -3
- package/dist/templates/social/machined-link-preview.js +5 -5
- package/dist/templates/social/machined-plate-post.js +5 -5
- package/dist/templates/social/manuscript-chapter-post.js +3 -3
- package/dist/templates/social/manuscript-link-preview.js +3 -3
- package/dist/templates/social/new-year-link-preview.js +3 -3
- package/dist/templates/social/new-year-resolutions-post.js +3 -3
- package/dist/templates/social/noir-case-file.js +3 -3
- package/dist/templates/social/noir-feature-post.js +3 -3
- package/dist/templates/social/post-announcement.js +3 -3
- package/dist/templates/social/post-event.js +3 -3
- package/dist/templates/social/post-podcast.js +3 -3
- package/dist/templates/social/post-quote.js +3 -3
- package/dist/templates/social/post-sale.js +3 -3
- package/dist/templates/social/post-stat.js +3 -3
- package/dist/templates/social/post-testimonial.js +3 -3
- package/dist/templates/social/promo-announcement.js +3 -3
- package/dist/templates/social/promo-beat-drop.js +3 -3
- package/dist/templates/social/promo-event.js +3 -3
- package/dist/templates/social/promo-new-product.js +3 -3
- package/dist/templates/social/promo-quote-reveal.js +3 -3
- package/dist/templates/social/promo-sale-drop.js +3 -3
- package/dist/templates/social/promo-tip-list.js +3 -3
- package/dist/templates/social/psychedelic-lineup-post.js +3 -3
- package/dist/templates/social/psychedelic-link-preview.js +3 -3
- package/dist/templates/social/riso-zine-link-preview.js +3 -3
- package/dist/templates/social/riso-zine-mrr-poster.js +3 -3
- package/dist/templates/social/saas-kit-carousel.js +3 -3
- package/dist/templates/social/saas-kit-countdown-post.js +3 -3
- package/dist/templates/social/saas-kit-feature-drop.js +3 -3
- package/dist/templates/social/saas-kit-link-preview.js +3 -3
- package/dist/templates/social/saas-kit-live-post.js +3 -3
- package/dist/templates/social/saas-kit-mrr-card.js +3 -3
- package/dist/templates/social/saas-kit-ph-gallery.js +3 -3
- package/dist/templates/social/saas-kit-ph-thumb.js +3 -3
- package/dist/templates/social/saas-kit-youtube-thumbs.js +3 -3
- package/dist/templates/social/saas-store-b2b-ads.js +4 -4
- package/dist/templates/social/saas-store-caption-set.js +4 -4
- package/dist/templates/social/saas-store-chrome-kit.js +4 -4
- package/dist/templates/social/saas-store-ipad-set.js +4 -4
- package/dist/templates/social/saas-store-panorama.js +5 -5
- package/dist/templates/social/saas-store-play-kit.js +3 -3
- package/dist/templates/social/saas-store-story.js +4 -4
- package/dist/templates/social/singles-day-link-preview.js +3 -3
- package/dist/templates/social/solarpunk-impact-post.js +3 -3
- package/dist/templates/social/solarpunk-link-preview.js +3 -3
- package/dist/templates/social/space-opera-link-preview.js +3 -3
- package/dist/templates/social/space-opera-mission-patch-post.js +3 -3
- package/dist/templates/social/spring-bloom-link-preview.js +3 -3
- package/dist/templates/social/studio-class-timetable.js +3 -3
- package/dist/templates/social/studio-podcast-cover.js +3 -3
- package/dist/templates/social/style-bento-announcement.js +3 -3
- package/dist/templates/social/style-bento-link-preview.js +3 -3
- package/dist/templates/social/style-bento-milestone.js +3 -3
- package/dist/templates/social/style-bento-testimonial.js +3 -3
- package/dist/templates/social/style-brutalist-announcement.js +3 -3
- package/dist/templates/social/style-brutalist-link-preview.js +3 -3
- package/dist/templates/social/style-brutalist-milestone.js +3 -3
- package/dist/templates/social/style-brutalist-testimonial.js +3 -3
- package/dist/templates/social/style-dark-announcement.js +3 -3
- package/dist/templates/social/style-dark-link-preview.js +3 -3
- package/dist/templates/social/style-dark-milestone.js +3 -3
- package/dist/templates/social/style-dark-testimonial.js +3 -3
- package/dist/templates/social/style-data-announcement.js +3 -3
- package/dist/templates/social/style-data-link-preview.js +3 -3
- package/dist/templates/social/style-data-milestone.js +3 -3
- package/dist/templates/social/style-data-testimonial.js +3 -3
- package/dist/templates/social/style-editorial-announcement.js +3 -3
- package/dist/templates/social/style-editorial-link-preview.js +3 -3
- package/dist/templates/social/style-editorial-milestone.js +3 -3
- package/dist/templates/social/style-editorial-testimonial.js +3 -3
- package/dist/templates/social/style-glass-announcement.js +3 -3
- package/dist/templates/social/style-glass-link-preview.js +3 -3
- package/dist/templates/social/style-glass-milestone.js +3 -3
- package/dist/templates/social/style-glass-testimonial.js +3 -3
- package/dist/templates/social/style-gradient-announcement.js +3 -3
- package/dist/templates/social/style-gradient-link-preview.js +3 -3
- package/dist/templates/social/style-gradient-milestone.js +3 -3
- package/dist/templates/social/style-gradient-testimonial.js +3 -3
- package/dist/templates/social/style-maximal-announcement.js +3 -3
- package/dist/templates/social/style-maximal-link-preview.js +3 -3
- package/dist/templates/social/style-maximal-milestone.js +3 -3
- package/dist/templates/social/style-maximal-testimonial.js +3 -3
- package/dist/templates/social/style-pastel-announcement.js +3 -3
- package/dist/templates/social/style-pastel-link-preview.js +3 -3
- package/dist/templates/social/style-pastel-milestone.js +3 -3
- package/dist/templates/social/style-pastel-testimonial.js +3 -3
- package/dist/templates/social/style-sketch-announcement.js +3 -3
- package/dist/templates/social/style-sketch-link-preview.js +3 -3
- package/dist/templates/social/style-sketch-milestone.js +3 -3
- package/dist/templates/social/style-sketch-testimonial.js +3 -3
- package/dist/templates/social/style-swiss-announcement.js +3 -3
- package/dist/templates/social/style-swiss-link-preview.js +3 -3
- package/dist/templates/social/style-swiss-milestone.js +3 -3
- package/dist/templates/social/style-swiss-testimonial.js +3 -3
- package/dist/templates/social/style-terminal-announcement.js +3 -3
- package/dist/templates/social/style-terminal-link-preview.js +3 -3
- package/dist/templates/social/style-terminal-milestone.js +3 -3
- package/dist/templates/social/style-terminal-testimonial.js +3 -3
- package/dist/templates/social/summer-heatwave-link-preview.js +3 -3
- package/dist/templates/social/summer-heatwave-lolly-post.js +3 -3
- package/dist/templates/social/tour-tickets-june-ads.js +3 -3
- package/dist/templates/social/tour-tickets-tide-ads.js +3 -3
- package/dist/templates/social/tour-tickets-wreck-ads.js +3 -3
- package/dist/templates/social/transit-map-link-preview.js +3 -3
- package/dist/templates/social/ukiyo-e-link-preview.js +3 -3
- package/dist/templates/social/ukiyo-e-spike-post.js +3 -3
- package/dist/templates/social/valentines-link-preview.js +3 -3
- package/dist/templates/social/valentines-poem-post.js +3 -3
- package/dist/templates/social/vaporwave-feature-drop.js +3 -3
- package/dist/templates/social/vaporwave-link-preview.js +3 -3
- package/dist/templates/social/winter-cosy-link-preview.js +3 -3
- package/dist/templates/social/winter-holidays-link-preview.js +3 -3
- package/dist/templates/social/winter-holidays-thanks-post.js +3 -3
- package/dist/templates/stings/line-reveal.js +3 -3
- package/dist/templates/stings/sting-blur.js +3 -3
- package/dist/templates/stings/sting-pop.js +3 -3
- package/dist/templates/stings/sting-rise.js +3 -3
- package/dist/templates/stings/sting-shimmer.js +3 -3
- package/dist/templates/stings/word-swap.js +3 -3
- package/dist/templates/text/stat-counter.js +3 -3
- package/dist/templates/text/word-quote.js +3 -3
- package/dist/templates/themes/april-fools-shared.js +4 -4
- package/dist/templates/themes/april-fools.js +10 -10
- package/dist/templates/themes/arcade.js +7 -7
- package/dist/templates/themes/art-deco.js +9 -9
- package/dist/templates/themes/autumn-harvest.js +9 -9
- package/dist/templates/themes/back-to-school.js +9 -9
- package/dist/templates/themes/bauhaus.js +8 -8
- package/dist/templates/themes/black-friday-coupons.js +10 -10
- package/dist/templates/themes/black-friday-neon.js +10 -10
- package/dist/templates/themes/black-friday-scratch.js +10 -10
- package/dist/templates/themes/black-friday-ticker.js +10 -10
- package/dist/templates/themes/black-friday.js +9 -9
- package/dist/templates/themes/blueprint.js +8 -8
- package/dist/templates/themes/broadsheet.js +10 -10
- package/dist/templates/themes/claymation.js +9 -9
- package/dist/templates/themes/comic-book.js +17 -17
- package/dist/templates/themes/comic-hero.js +15 -15
- package/dist/templates/themes/comic-indie.js +3 -3
- package/dist/templates/themes/cyberpunk.js +9 -9
- package/dist/templates/themes/departure-board.js +8 -8
- package/dist/templates/themes/diwali.js +9 -9
- package/dist/templates/themes/earth-day.js +9 -9
- package/dist/templates/themes/everyday.js +10 -10
- package/dist/templates/themes/festival-presale-electronic-kit.js +5 -5
- package/dist/templates/themes/festival-presale-family-a-shared.js +4 -4
- package/dist/templates/themes/festival-presale-family-a.js +29 -29
- package/dist/templates/themes/festival-presale-family-b-shared.js +4 -4
- package/dist/templates/themes/festival-presale-family-b.js +29 -29
- package/dist/templates/themes/festival-presale-family-kit.js +5 -5
- package/dist/templates/themes/festival-presale-folk-kit.js +5 -5
- package/dist/templates/themes/festival-presale-food-kit.js +5 -5
- package/dist/templates/themes/festival-presale-jazz-kit.js +5 -5
- package/dist/templates/themes/festival-presale-street-kit.js +5 -5
- package/dist/templates/themes/festival-presale.js +9 -9
- package/dist/templates/themes/gothic.js +9 -9
- package/dist/templates/themes/halloween.js +9 -9
- package/dist/templates/themes/holidays.js +26 -26
- package/dist/templates/themes/index.js +427 -427
- package/dist/templates/themes/lunar-new-year.js +9 -9
- package/dist/templates/themes/machined-shared.js +4 -4
- package/dist/templates/themes/machined.js +9 -9
- package/dist/templates/themes/manuscript.js +9 -9
- package/dist/templates/themes/memories.js +13 -13
- package/dist/templates/themes/new-year.js +9 -9
- package/dist/templates/themes/noir.js +9 -9
- package/dist/templates/themes/printshop-shared.js +3 -3
- package/dist/templates/themes/printshop.js +29 -29
- package/dist/templates/themes/psychedelic.js +9 -9
- package/dist/templates/themes/riso-zine.js +9 -9
- package/dist/templates/themes/singles-day.js +9 -9
- package/dist/templates/themes/solarpunk.js +9 -9
- package/dist/templates/themes/space-opera.js +9 -9
- package/dist/templates/themes/spring-bloom.js +9 -9
- package/dist/templates/themes/studio.js +9 -9
- package/dist/templates/themes/summer-heatwave.js +9 -9
- package/dist/templates/themes/tour-tickets.js +28 -28
- package/dist/templates/themes/transit-map.js +9 -9
- package/dist/templates/themes/ukiyo-e.js +9 -9
- package/dist/templates/themes/valentines.js +9 -9
- package/dist/templates/themes/vaporwave.js +8 -8
- package/dist/templates/themes/winter-cosy.js +9 -9
- package/dist/templates/themes/winter-holidays.js +9 -9
- package/dist/templates/video/youtube-chapter.js +3 -3
- package/dist/templates/video/youtube-end-screen.js +3 -3
- package/dist/templates/video/youtube-intro.js +3 -3
- package/dist/templates/video/youtube-subscribe.js +3 -3
- package/dist/templates/web/app-ui.js +4 -4
- package/dist/templates/web/april-fools-landing.js +5 -5
- package/dist/templates/web/arcade-landing.js +3 -3
- package/dist/templates/web/art-deco-landing.js +3 -3
- package/dist/templates/web/autumn-harvest-landing.js +3 -3
- package/dist/templates/web/back-to-school-landing.js +3 -3
- package/dist/templates/web/bauhaus-landing.js +3 -3
- package/dist/templates/web/black-friday-coupons-landing.js +3 -3
- package/dist/templates/web/black-friday-landing.js +3 -3
- package/dist/templates/web/black-friday-neon-landing.js +3 -3
- package/dist/templates/web/black-friday-scratch-landing.js +3 -3
- package/dist/templates/web/black-friday-ticker-landing.js +3 -3
- package/dist/templates/web/blog-post.js +3 -3
- package/dist/templates/web/blueprint-landing.js +3 -3
- package/dist/templates/web/broadsheet-landing.js +3 -3
- package/dist/templates/web/claymation-landing.js +3 -3
- package/dist/templates/web/comic-book-landing.js +3 -3
- package/dist/templates/web/coming-soon-page.js +4 -4
- package/dist/templates/web/coming-soon.js +3 -3
- package/dist/templates/web/contact.js +4 -4
- package/dist/templates/web/cyberpunk-landing.js +3 -3
- package/dist/templates/web/daybreak-app.js +5 -5
- package/dist/templates/web/departure-board-download.js +3 -3
- package/dist/templates/web/diwali-landing.js +3 -3
- package/dist/templates/web/earth-day-landing.js +3 -3
- package/dist/templates/web/everyday-cafe.js +3 -3
- package/dist/templates/web/everyday-hotel.js +3 -3
- package/dist/templates/web/everyday-wedding.js +4 -4
- package/dist/templates/web/festival-presale-electronic.js +3 -3
- package/dist/templates/web/festival-presale-family.js +3 -3
- package/dist/templates/web/festival-presale-folk.js +3 -3
- package/dist/templates/web/festival-presale-food.js +3 -3
- package/dist/templates/web/festival-presale-jazz.js +3 -3
- package/dist/templates/web/festival-presale-street.js +3 -3
- package/dist/templates/web/forms.js +3 -3
- package/dist/templates/web/gothic-landing.js +3 -3
- package/dist/templates/web/halloween-landing.js +3 -3
- package/dist/templates/web/hero-animated.js +3 -3
- package/dist/templates/web/kindling-app.js +5 -5
- package/dist/templates/web/launch-waitlist.js +4 -4
- package/dist/templates/web/lunar-new-year-landing.js +3 -3
- package/dist/templates/web/machined-hero.js +5 -5
- package/dist/templates/web/manuscript-landing.js +3 -3
- package/dist/templates/web/marginalia-app.js +5 -5
- package/dist/templates/web/new-year-landing.js +3 -3
- package/dist/templates/web/noir-landing.js +3 -3
- package/dist/templates/web/page-404.js +3 -3
- package/dist/templates/web/portfolio-architect.js +5 -5
- package/dist/templates/web/portfolio-art.js +3 -3
- package/dist/templates/web/portfolio-card-deck.js +5 -5
- package/dist/templates/web/portfolio-case-folio.js +5 -5
- package/dist/templates/web/portfolio-cube-gallery.js +5 -5
- package/dist/templates/web/portfolio-depth-tunnel.js +5 -5
- package/dist/templates/web/portfolio-editorial.js +5 -5
- package/dist/templates/web/portfolio-flip-wall.js +5 -5
- package/dist/templates/web/portfolio-index-list.js +5 -5
- package/dist/templates/web/portfolio-photographer.js +5 -5
- package/dist/templates/web/portfolio-reel-carousel.js +5 -5
- package/dist/templates/web/portfolio-shared.js +4 -4
- package/dist/templates/web/portfolio-sketchbook.js +5 -5
- package/dist/templates/web/portfolio-studio-grid.js +5 -5
- package/dist/templates/web/portfolio.js +3 -3
- package/dist/templates/web/portfolios.js +17 -17
- package/dist/templates/web/potluck-app.js +5 -5
- package/dist/templates/web/pricing-toggle.js +3 -3
- package/dist/templates/web/product-page.js +3 -3
- package/dist/templates/web/psychedelic-landing.js +3 -3
- package/dist/templates/web/riso-zine-landing.js +3 -3
- package/dist/templates/web/rsvp-invite.js +4 -4
- package/dist/templates/web/saas-ai-landing.js +3 -3
- package/dist/templates/web/saas-app-download.js +3 -3
- package/dist/templates/web/saas-case-study.js +3 -3
- package/dist/templates/web/saas-changelog.js +3 -3
- package/dist/templates/web/saas-comparison.js +3 -3
- package/dist/templates/web/saas-data-landing.js +3 -3
- package/dist/templates/web/saas-dev-landing.js +3 -3
- package/dist/templates/web/saas-indie-landing.js +3 -3
- package/dist/templates/web/saas-integrations.js +3 -3
- package/dist/templates/web/saas-security.js +3 -3
- package/dist/templates/web/saas-signup.js +3 -3
- package/dist/templates/web/saas-waitlist.js +3 -3
- package/dist/templates/web/saffron-app.js +5 -5
- package/dist/templates/web/shop-art.js +3 -3
- package/dist/templates/web/shop-bloom.js +7 -7
- package/dist/templates/web/shop-circuit.js +7 -7
- package/dist/templates/web/shop-fieldwork.js +7 -7
- package/dist/templates/web/shop-greenhouse.js +7 -7
- package/dist/templates/web/shop-kiln.js +7 -7
- package/dist/templates/web/shop-marginalia.js +7 -7
- package/dist/templates/web/shop-ode.js +7 -7
- package/dist/templates/web/shop-shared.js +6 -6
- package/dist/templates/web/shop-static.js +7 -7
- package/dist/templates/web/shop-summit.js +7 -7
- package/dist/templates/web/shops.js +16 -16
- package/dist/templates/web/singles-day-landing.js +3 -3
- package/dist/templates/web/solarpunk-landing.js +3 -3
- package/dist/templates/web/space-opera-landing.js +3 -3
- package/dist/templates/web/spring-bloom-landing.js +3 -3
- package/dist/templates/web/studio-careers.js +3 -3
- package/dist/templates/web/style-bento-landing.js +3 -3
- package/dist/templates/web/style-bento-pricing.js +3 -3
- package/dist/templates/web/style-brutalist-landing.js +3 -3
- package/dist/templates/web/style-brutalist-pricing.js +3 -3
- package/dist/templates/web/style-dark-landing.js +3 -3
- package/dist/templates/web/style-dark-pricing.js +3 -3
- package/dist/templates/web/style-data-landing.js +3 -3
- package/dist/templates/web/style-data-pricing.js +3 -3
- package/dist/templates/web/style-editorial-landing.js +3 -3
- package/dist/templates/web/style-editorial-pricing.js +3 -3
- package/dist/templates/web/style-glass-landing.js +3 -3
- package/dist/templates/web/style-glass-pricing.js +3 -3
- package/dist/templates/web/style-gradient-landing.js +3 -3
- package/dist/templates/web/style-gradient-pricing.js +3 -3
- package/dist/templates/web/style-maximal-landing.js +3 -3
- package/dist/templates/web/style-maximal-pricing.js +3 -3
- package/dist/templates/web/style-pastel-landing.js +3 -3
- package/dist/templates/web/style-pastel-pricing.js +3 -3
- package/dist/templates/web/style-sketch-landing.js +3 -3
- package/dist/templates/web/style-sketch-pricing.js +3 -3
- package/dist/templates/web/style-swiss-landing.js +3 -3
- package/dist/templates/web/style-swiss-pricing.js +3 -3
- package/dist/templates/web/style-terminal-landing.js +3 -3
- package/dist/templates/web/style-terminal-pricing.js +3 -3
- package/dist/templates/web/summer-heatwave-landing.js +3 -3
- package/dist/templates/web/tempo-app.js +5 -5
- package/dist/templates/web/tour-tickets-june-landing.js +3 -3
- package/dist/templates/web/tour-tickets-tide-landing.js +3 -3
- package/dist/templates/web/tour-tickets-wreck-landing.js +3 -3
- package/dist/templates/web/transit-map-landing.js +3 -3
- package/dist/templates/web/ukiyo-e-landing.js +3 -3
- package/dist/templates/web/valentines-landing.js +3 -3
- package/dist/templates/web/vaporwave-landing.js +3 -3
- package/dist/templates/web/wayfarer-app.js +5 -5
- package/dist/templates/web/winter-cosy-landing.js +3 -3
- package/dist/templates/web/winter-holidays-landing.js +3 -3
- package/package.json +1 -1
- package/dist/chunks/agent-U5CT23QH.js +0 -44
- package/dist/chunks/build-WLB432HH.js +0 -59
- package/dist/chunks/builtin-C5AGHFJS.js +0 -118
- package/dist/chunks/buy-credits-SMWSEVH3.js +0 -80
- package/dist/chunks/check-template-P3BJBABQ.js +0 -2429
- package/dist/chunks/chunk-225UFGKL.js +0 -79
- package/dist/chunks/chunk-22LCDIWY.js +0 -45
- package/dist/chunks/chunk-22QHODC3.js +0 -72
- package/dist/chunks/chunk-23Q3WCP4.js +0 -71
- package/dist/chunks/chunk-2546M4DM.js +0 -122
- package/dist/chunks/chunk-2BXVOJIL.js +0 -161
- package/dist/chunks/chunk-2CCPHJEG.js +0 -225
- package/dist/chunks/chunk-2CQNKBJX.js +0 -282
- package/dist/chunks/chunk-2CSWZ7YN.js +0 -358
- package/dist/chunks/chunk-2CZCD7KQ.js +0 -174
- package/dist/chunks/chunk-2EGEOFNE.js +0 -84
- package/dist/chunks/chunk-2FQYTQ2E.js +0 -77
- package/dist/chunks/chunk-2GGQGZSF.js +0 -55
- package/dist/chunks/chunk-2GJAF3ME.js +0 -290
- package/dist/chunks/chunk-2HW2NJUY.js +0 -260
- package/dist/chunks/chunk-2IOGQ4TG.js +0 -152
- package/dist/chunks/chunk-2MWOGYSU.js +0 -206
- package/dist/chunks/chunk-2NWAG7MA.js +0 -23
- package/dist/chunks/chunk-2OYIB4AE.js +0 -86
- package/dist/chunks/chunk-2POMUQ7O.js +0 -251
- package/dist/chunks/chunk-2R6QNRAR.js +0 -247
- package/dist/chunks/chunk-2RQCXDQY.js +0 -103
- package/dist/chunks/chunk-2RTRVRYH.js +0 -150
- package/dist/chunks/chunk-2TB335T4.js +0 -304
- package/dist/chunks/chunk-2TFVCICT.js +0 -218
- package/dist/chunks/chunk-2UWGHVVJ.js +0 -366
- package/dist/chunks/chunk-2UXQHV42.js +0 -33
- package/dist/chunks/chunk-2VTC5WKQ.js +0 -30
- package/dist/chunks/chunk-2W3KVNEZ.js +0 -165
- package/dist/chunks/chunk-2WH45MWK.js +0 -146
- package/dist/chunks/chunk-2WIWBDNT.js +0 -45
- package/dist/chunks/chunk-2XAMLRQH.js +0 -315
- package/dist/chunks/chunk-34CDBLUI.js +0 -98
- package/dist/chunks/chunk-35NM4JXG.js +0 -150
- package/dist/chunks/chunk-37DR73LV.js +0 -157
- package/dist/chunks/chunk-3ABUOBFB.js +0 -95
- package/dist/chunks/chunk-3ADDG6LB.js +0 -163
- package/dist/chunks/chunk-3AXK6SET.js +0 -180
- package/dist/chunks/chunk-3BOREQBZ.js +0 -99
- package/dist/chunks/chunk-3FD7XELW.js +0 -23
- package/dist/chunks/chunk-3GAOXNZL.js +0 -103
- package/dist/chunks/chunk-3GHV4XOV.js +0 -140
- package/dist/chunks/chunk-3GHZO2MW.js +0 -375
- package/dist/chunks/chunk-3H5LESXS.js +0 -163
- package/dist/chunks/chunk-3HHP46XL.js +0 -118
- package/dist/chunks/chunk-3J4JTTB2.js +0 -109
- package/dist/chunks/chunk-3K4AXSX3.js +0 -190
- package/dist/chunks/chunk-3KFNWWCV.js +0 -134
- package/dist/chunks/chunk-3KIZ5ZDZ.js +0 -175
- package/dist/chunks/chunk-3KSOEQJD.js +0 -200
- package/dist/chunks/chunk-3MLZEHTT.js +0 -95
- package/dist/chunks/chunk-3MQ7VV27.js +0 -36
- package/dist/chunks/chunk-3MST454M.js +0 -249
- package/dist/chunks/chunk-3MW7UM47.js +0 -90
- package/dist/chunks/chunk-3NDMB5OP.js +0 -39
- package/dist/chunks/chunk-3OH7UWWV.js +0 -102
- package/dist/chunks/chunk-3WNZKWPL.js +0 -23
- package/dist/chunks/chunk-3WTFUL3I.js +0 -226
- package/dist/chunks/chunk-3WULD4WE.js +0 -90
- package/dist/chunks/chunk-3YH436ES.js +0 -150
- package/dist/chunks/chunk-3ZZL4JA5.js +0 -304
- package/dist/chunks/chunk-425F3B6B.js +0 -128
- package/dist/chunks/chunk-4CERSVPE.js +0 -98
- package/dist/chunks/chunk-4DSG3ELM.js +0 -598
- package/dist/chunks/chunk-4EQP5ZTP.js +0 -252
- package/dist/chunks/chunk-4IS2A4W6.js +0 -177
- package/dist/chunks/chunk-4KF45JPX.js +0 -86
- package/dist/chunks/chunk-4MQFV27K.js +0 -166
- package/dist/chunks/chunk-4NCR6VU7.js +0 -131
- package/dist/chunks/chunk-4O4GNVIW.js +0 -224
- package/dist/chunks/chunk-4P2W3HGB.js +0 -589
- package/dist/chunks/chunk-4Q6XE7I5.js +0 -184
- package/dist/chunks/chunk-4RTM7BCO.js +0 -311
- package/dist/chunks/chunk-4T7Z5QFL.js +0 -83
- package/dist/chunks/chunk-4VYLSWUT.js +0 -71
- package/dist/chunks/chunk-4WJTEWFA.js +0 -98
- package/dist/chunks/chunk-4XGXFNBT.js +0 -261
- package/dist/chunks/chunk-4XSEIVQZ.js +0 -55
- package/dist/chunks/chunk-4YGAS4RA.js +0 -215
- package/dist/chunks/chunk-4YKA6VJS.js +0 -195
- package/dist/chunks/chunk-4ZSYN46E.js +0 -136
- package/dist/chunks/chunk-526H33EW.js +0 -172
- package/dist/chunks/chunk-52TGB2U2.js +0 -684
- package/dist/chunks/chunk-52XGFTHZ.js +0 -207
- package/dist/chunks/chunk-55AV62CH.js +0 -114
- package/dist/chunks/chunk-55JMYGFB.js +0 -262
- package/dist/chunks/chunk-5ACWFE64.js +0 -171
- package/dist/chunks/chunk-5DFS7QNV.js +0 -210
- package/dist/chunks/chunk-5DS3H4FQ.js +0 -108
- package/dist/chunks/chunk-5ELEZMYN.js +0 -108
- package/dist/chunks/chunk-5ENLW3DD.js +0 -165
- package/dist/chunks/chunk-5J7P2VAK.js +0 -95
- package/dist/chunks/chunk-5LYW7BPT.js +0 -87
- package/dist/chunks/chunk-5MGAMOP2.js +0 -77
- package/dist/chunks/chunk-5MLDE2OK.js +0 -255
- package/dist/chunks/chunk-5MVN56VK.js +0 -83
- package/dist/chunks/chunk-5OBGL2A6.js +0 -53
- package/dist/chunks/chunk-5OVB7SSL.js +0 -23
- package/dist/chunks/chunk-5QNFBNHF.js +0 -108
- package/dist/chunks/chunk-5SYR2466.js +0 -159
- package/dist/chunks/chunk-5T4BSZU5.js +0 -174
- package/dist/chunks/chunk-5THGOLBT.js +0 -112
- package/dist/chunks/chunk-5WMBKC7E.js +0 -163
- package/dist/chunks/chunk-5X2QZNZW.js +0 -118
- package/dist/chunks/chunk-5XTJSB6L.js +0 -170
- package/dist/chunks/chunk-5Y4B6CI2.js +0 -147
- package/dist/chunks/chunk-5ZULYO6M.js +0 -93
- package/dist/chunks/chunk-63CFXAYA.js +0 -45
- package/dist/chunks/chunk-63MMYSGT.js +0 -90
- package/dist/chunks/chunk-64CMCBTY.js +0 -192
- package/dist/chunks/chunk-65F3XASA.js +0 -23
- package/dist/chunks/chunk-67GWF3AF.js +0 -61
- package/dist/chunks/chunk-6BLPHGRO.js +0 -102
- package/dist/chunks/chunk-6BNMCT6G.js +0 -123
- package/dist/chunks/chunk-6EB2PKBA.js +0 -91
- package/dist/chunks/chunk-6HR5M65J.js +0 -119
- package/dist/chunks/chunk-6KERSALZ.js +0 -208
- package/dist/chunks/chunk-6KMHA6E3.js +0 -206
- package/dist/chunks/chunk-6L6REPK2.js +0 -228
- package/dist/chunks/chunk-6L7INUVA.js +0 -133
- package/dist/chunks/chunk-6M3DRAHT.js +0 -23
- package/dist/chunks/chunk-6OGQMDUQ.js +0 -100
- package/dist/chunks/chunk-6OQT2YUZ.js +0 -231
- package/dist/chunks/chunk-6QSW22R5.js +0 -178
- package/dist/chunks/chunk-6UCMCNZE.js +0 -33
- package/dist/chunks/chunk-6UY6YO7H.js +0 -23
- package/dist/chunks/chunk-6WBLBLKR.js +0 -84
- package/dist/chunks/chunk-6WDFNMG7.js +0 -124
- package/dist/chunks/chunk-6Y65KK7X.js +0 -131
- package/dist/chunks/chunk-6YNQW6KW.js +0 -206
- package/dist/chunks/chunk-7377MOAO.js +0 -183
- package/dist/chunks/chunk-73PRJWZI.js +0 -224
- package/dist/chunks/chunk-75RYHBH4.js +0 -143
- package/dist/chunks/chunk-764KUMRX.js +0 -2070
- package/dist/chunks/chunk-7AS4RX4M.js +0 -131
- package/dist/chunks/chunk-7BI2XXHG.js +0 -204
- package/dist/chunks/chunk-7DRV2OXO.js +0 -198
- package/dist/chunks/chunk-7E3HLO43.js +0 -163
- package/dist/chunks/chunk-7EH47GXT.js +0 -36
- package/dist/chunks/chunk-7F4NN55Y.js +0 -100
- package/dist/chunks/chunk-7G5S7XXD.js +0 -305
- package/dist/chunks/chunk-7JUQP6ES.js +0 -179
- package/dist/chunks/chunk-7MRLF4EY.js +0 -23
- package/dist/chunks/chunk-7MW5HO55.js +0 -217
- package/dist/chunks/chunk-7N2AQI4K.js +0 -69
- package/dist/chunks/chunk-7NLTTY63.js +0 -898
- package/dist/chunks/chunk-7NVWGSWM.js +0 -153
- package/dist/chunks/chunk-7OJL47NU.js +0 -108
- package/dist/chunks/chunk-7T4Z3AAK.js +0 -100
- package/dist/chunks/chunk-7VEZTXNA.js +0 -135
- package/dist/chunks/chunk-7XMIT7UU.js +0 -164
- package/dist/chunks/chunk-7XOX2TEK.js +0 -99
- package/dist/chunks/chunk-7XUNMFP5.js +0 -317
- package/dist/chunks/chunk-7ZULPX23.js +0 -97
- package/dist/chunks/chunk-A2NDYAG5.js +0 -33
- package/dist/chunks/chunk-A4IHMDF4.js +0 -149
- package/dist/chunks/chunk-A7NX433L.js +0 -97
- package/dist/chunks/chunk-AAM6Z3UK.js +0 -287
- package/dist/chunks/chunk-ABKNRNJD.js +0 -195
- package/dist/chunks/chunk-ABXL2QXI.js +0 -152
- package/dist/chunks/chunk-AFCVFSZJ.js +0 -33
- package/dist/chunks/chunk-AFEMN2AQ.js +0 -70
- package/dist/chunks/chunk-AG624GCI.js +0 -176
- package/dist/chunks/chunk-AGFTUQYU.js +0 -327
- package/dist/chunks/chunk-AGUUUS3H.js +0 -304
- package/dist/chunks/chunk-AHRYWYOE.js +0 -231
- package/dist/chunks/chunk-AHV67POV.js +0 -97
- package/dist/chunks/chunk-AHXNNAEV.js +0 -74
- package/dist/chunks/chunk-AIIGDNVP.js +0 -52
- package/dist/chunks/chunk-AJSP6UG5.js +0 -822
- package/dist/chunks/chunk-AKBXRHEK.js +0 -95
- package/dist/chunks/chunk-ALJBF2H5.js +0 -141
- package/dist/chunks/chunk-ALL22RWV.js +0 -304
- package/dist/chunks/chunk-AM5IA4WG.js +0 -200
- package/dist/chunks/chunk-AORXAT3O.js +0 -82
- package/dist/chunks/chunk-APQFGKMN.js +0 -162
- package/dist/chunks/chunk-APUK7EIY.js +0 -12941
- package/dist/chunks/chunk-ASRTISVJ.js +0 -378
- package/dist/chunks/chunk-ASVJ2BIW.js +0 -76
- package/dist/chunks/chunk-ATD2CANO.js +0 -152
- package/dist/chunks/chunk-AVHCXJOH.js +0 -122
- package/dist/chunks/chunk-AWVP5HHI.js +0 -209
- package/dist/chunks/chunk-AYYE35KG.js +0 -212
- package/dist/chunks/chunk-B24LREK3.js +0 -84
- package/dist/chunks/chunk-B32GEUXA.js +0 -78
- package/dist/chunks/chunk-B3EFSIB6.js +0 -156
- package/dist/chunks/chunk-B3G3ZO7F.js +0 -36
- package/dist/chunks/chunk-B4HYPMCQ.js +0 -23
- package/dist/chunks/chunk-B4U2CUZC.js +0 -139
- package/dist/chunks/chunk-B5YPGYFI.js +0 -161
- package/dist/chunks/chunk-B7G7QVRE.js +0 -145
- package/dist/chunks/chunk-BBOPWPN7.js +0 -170
- package/dist/chunks/chunk-BCPU5K3K.js +0 -97
- package/dist/chunks/chunk-BFAHSZQU.js +0 -75
- package/dist/chunks/chunk-BG7L7IFE.js +0 -200
- package/dist/chunks/chunk-BI6J6FHA.js +0 -23
- package/dist/chunks/chunk-BIOVBEAJ.js +0 -164
- package/dist/chunks/chunk-BJVEPHWC.js +0 -149
- package/dist/chunks/chunk-BK33VWXD.js +0 -79
- package/dist/chunks/chunk-BKG3HQI7.js +0 -166
- package/dist/chunks/chunk-BKGSNL3Z.js +0 -122
- package/dist/chunks/chunk-BKYIW5QN.js +0 -77
- package/dist/chunks/chunk-BMFJJ5GN.js +0 -336
- package/dist/chunks/chunk-BPBVT23D.js +0 -189
- package/dist/chunks/chunk-BPKFD423.js +0 -179
- package/dist/chunks/chunk-BQ3FG54C.js +0 -23
- package/dist/chunks/chunk-BQ3Z66GB.js +0 -217
- package/dist/chunks/chunk-BTALQ64U.js +0 -97
- package/dist/chunks/chunk-BTEZBXGO.js +0 -23
- package/dist/chunks/chunk-BUQY4A25.js +0 -110
- package/dist/chunks/chunk-BVHLRXZM.js +0 -150
- package/dist/chunks/chunk-BWCXOKED.js +0 -178
- package/dist/chunks/chunk-BXCRCLE5.js +0 -366
- package/dist/chunks/chunk-BYTAC74G.js +0 -194
- package/dist/chunks/chunk-C2ZVCPMM.js +0 -198
- package/dist/chunks/chunk-C556F4KM.js +0 -172
- package/dist/chunks/chunk-C5RXZG7J.js +0 -1469
- package/dist/chunks/chunk-C5TUI3JQ.js +0 -23
- package/dist/chunks/chunk-C657WTJT.js +0 -360
- package/dist/chunks/chunk-C67Q2F3G.js +0 -105
- package/dist/chunks/chunk-C6U5RSU7.js +0 -105
- package/dist/chunks/chunk-C7KETPBW.js +0 -168
- package/dist/chunks/chunk-CAI26OVR.js +0 -178
- package/dist/chunks/chunk-CAUEWDJM.js +0 -33
- package/dist/chunks/chunk-CB5YGGQL.js +0 -173
- package/dist/chunks/chunk-CEDF2YMY.js +0 -198
- package/dist/chunks/chunk-CEK4R2CF.js +0 -106
- package/dist/chunks/chunk-CFAMAZAV.js +0 -77
- package/dist/chunks/chunk-CG3XAO3X.js +0 -198
- package/dist/chunks/chunk-CGU7NNH4.js +0 -220
- package/dist/chunks/chunk-CHVTL46Z.js +0 -33
- package/dist/chunks/chunk-CKZMLDBS.js +0 -220
- package/dist/chunks/chunk-CLROSEJ2.js +0 -33
- package/dist/chunks/chunk-CLX3W2IS.js +0 -363
- package/dist/chunks/chunk-CMWXYTPH.js +0 -130
- package/dist/chunks/chunk-CNE6TBXR.js +0 -108
- package/dist/chunks/chunk-CNN3AHSO.js +0 -104
- package/dist/chunks/chunk-COCLJAFL.js +0 -45
- package/dist/chunks/chunk-CQZYLT6Z.js +0 -298
- package/dist/chunks/chunk-CRSYBKHC.js +0 -230
- package/dist/chunks/chunk-CUAS7BIR.js +0 -63
- package/dist/chunks/chunk-CUJ3PZLT.js +0 -170
- package/dist/chunks/chunk-CYIRRFPH.js +0 -33
- package/dist/chunks/chunk-CZRJNFWC.js +0 -84
- package/dist/chunks/chunk-CZZN2JSW.js +0 -33
- package/dist/chunks/chunk-D3QSDEGG.js +0 -138
- package/dist/chunks/chunk-D4KKXOBH.js +0 -70
- package/dist/chunks/chunk-D72RM6QH.js +0 -23
- package/dist/chunks/chunk-D7MG7QNG.js +0 -89
- package/dist/chunks/chunk-D7OWR2WS.js +0 -107
- package/dist/chunks/chunk-DAS5F4JJ.js +0 -33
- package/dist/chunks/chunk-DBKTCMUS.js +0 -41
- package/dist/chunks/chunk-DCJUTVMO.js +0 -23
- package/dist/chunks/chunk-DCXGGMXG.js +0 -110
- package/dist/chunks/chunk-DE3RXJQO.js +0 -121
- package/dist/chunks/chunk-DFK24GYW.js +0 -155
- package/dist/chunks/chunk-DHTFUXBB.js +0 -97
- package/dist/chunks/chunk-DIEUWKH6.js +0 -33
- package/dist/chunks/chunk-DJBXZDOV.js +0 -130
- package/dist/chunks/chunk-DNQHGO5L.js +0 -96
- package/dist/chunks/chunk-DNV4DZI3.js +0 -279
- package/dist/chunks/chunk-DPQIWGK7.js +0 -151
- package/dist/chunks/chunk-DPQZ2VKO.js +0 -199
- package/dist/chunks/chunk-DSK7NCEP.js +0 -136
- package/dist/chunks/chunk-DTJEO6FB.js +0 -90
- package/dist/chunks/chunk-DTMROISZ.js +0 -33
- package/dist/chunks/chunk-DVLX7DTG.js +0 -104
- package/dist/chunks/chunk-DY5ZZDCW.js +0 -237
- package/dist/chunks/chunk-E2D7S2JK.js +0 -140
- package/dist/chunks/chunk-E2XMQCM5.js +0 -327
- package/dist/chunks/chunk-E3BNVCIN.js +0 -45
- package/dist/chunks/chunk-E6EPKLOC.js +0 -47
- package/dist/chunks/chunk-E7A6LL6M.js +0 -209
- package/dist/chunks/chunk-EAEEVYMV.js +0 -497
- package/dist/chunks/chunk-EBHMQ56V.js +0 -45
- package/dist/chunks/chunk-EDQOON2Q.js +0 -361
- package/dist/chunks/chunk-EEMVT7B4.js +0 -42
- package/dist/chunks/chunk-EFPRXYOI.js +0 -23
- package/dist/chunks/chunk-EG5GWTJO.js +0 -86
- package/dist/chunks/chunk-EKOKP2JI.js +0 -53
- package/dist/chunks/chunk-EKUHHOQW.js +0 -138
- package/dist/chunks/chunk-ELFV25LI.js +0 -77
- package/dist/chunks/chunk-EMEDASUX.js +0 -358
- package/dist/chunks/chunk-EMS4NZUT.js +0 -175
- package/dist/chunks/chunk-EOXHUUAR.js +0 -97
- package/dist/chunks/chunk-EPJT7XID.js +0 -209
- package/dist/chunks/chunk-EPRZIVBG.js +0 -118
- package/dist/chunks/chunk-ER77PGJ2.js +0 -44
- package/dist/chunks/chunk-EUOAZ3L6.js +0 -95
- package/dist/chunks/chunk-EUPE4RLA.js +0 -1307
- package/dist/chunks/chunk-EUXYCQMP.js +0 -95
- package/dist/chunks/chunk-EWGPXXIT.js +0 -201
- package/dist/chunks/chunk-EXIMH4VA.js +0 -10729
- package/dist/chunks/chunk-EY67EBTX.js +0 -45
- package/dist/chunks/chunk-F2OSJ7XL.js +0 -187
- package/dist/chunks/chunk-F3HHF7BC.js +0 -75
- package/dist/chunks/chunk-F3SC47IO.js +0 -225
- package/dist/chunks/chunk-F5PNHMRQ.js +0 -130
- package/dist/chunks/chunk-F5SCG5SN.js +0 -391
- package/dist/chunks/chunk-F66PYEH6.js +0 -119
- package/dist/chunks/chunk-F72PU3NF.js +0 -117
- package/dist/chunks/chunk-FALOQ4S3.js +0 -307
- package/dist/chunks/chunk-FAX3UK33.js +0 -122
- package/dist/chunks/chunk-FB3NR4RI.js +0 -30
- package/dist/chunks/chunk-FBO2VZE3.js +0 -331
- package/dist/chunks/chunk-FDOMVRMS.js +0 -147
- package/dist/chunks/chunk-FDOXEDN5.js +0 -73
- package/dist/chunks/chunk-FE26XBSI.js +0 -180
- package/dist/chunks/chunk-FED4KVSF.js +0 -163
- package/dist/chunks/chunk-FEIULPGN.js +0 -130
- package/dist/chunks/chunk-FF2OENEB.js +0 -33
- package/dist/chunks/chunk-FF7G5ZH2.js +0 -23
- package/dist/chunks/chunk-FFP2HNNY.js +0 -88
- package/dist/chunks/chunk-FGP5DAK5.js +0 -33
- package/dist/chunks/chunk-FHIQWMKJ.js +0 -126
- package/dist/chunks/chunk-FHITCTU6.js +0 -399
- package/dist/chunks/chunk-FI2Q7OLK.js +0 -86
- package/dist/chunks/chunk-FJ7N44HH.js +0 -250
- package/dist/chunks/chunk-FJMQGCDH.js +0 -342
- package/dist/chunks/chunk-FLPS23RA.js +0 -158
- package/dist/chunks/chunk-FMMS2YQ2.js +0 -235
- package/dist/chunks/chunk-FPYPFOUK.js +0 -79
- package/dist/chunks/chunk-FRDOCYBJ.js +0 -234
- package/dist/chunks/chunk-FSDFTG3C.js +0 -112
- package/dist/chunks/chunk-FSSSSRKD.js +0 -50
- package/dist/chunks/chunk-FVY4LHQG.js +0 -214
- package/dist/chunks/chunk-FWURGWI3.js +0 -23
- package/dist/chunks/chunk-FZYDQLB4.js +0 -109
- package/dist/chunks/chunk-G3ON5B34.js +0 -49
- package/dist/chunks/chunk-G4A4PTXB.js +0 -258
- package/dist/chunks/chunk-G5RKRUL2.js +0 -90
- package/dist/chunks/chunk-G6QKBIFI.js +0 -184
- package/dist/chunks/chunk-GBT5HYGL.js +0 -396
- package/dist/chunks/chunk-GC45GJWR.js +0 -45
- package/dist/chunks/chunk-GEKSHEHZ.js +0 -74
- package/dist/chunks/chunk-GF3L65LH.js +0 -261
- package/dist/chunks/chunk-GIG43WHK.js +0 -39
- package/dist/chunks/chunk-GIKEMSR2.js +0 -153
- package/dist/chunks/chunk-GJGE77IC.js +0 -115
- package/dist/chunks/chunk-GK57O4JE.js +0 -77
- package/dist/chunks/chunk-GL2JJ5PG.js +0 -120
- package/dist/chunks/chunk-GMKOB7MK.js +0 -270
- package/dist/chunks/chunk-GMOSQ4QK.js +0 -60
- package/dist/chunks/chunk-GNNBEGQX.js +0 -152
- package/dist/chunks/chunk-GNNCLAPP.js +0 -111
- package/dist/chunks/chunk-GOREJHY4.js +0 -153
- package/dist/chunks/chunk-GOUZCACF.js +0 -329
- package/dist/chunks/chunk-GRHNDDWD.js +0 -80
- package/dist/chunks/chunk-GSXFNS5T.js +0 -102
- package/dist/chunks/chunk-GTGUYO64.js +0 -282
- package/dist/chunks/chunk-GTNKDXFT.js +0 -338
- package/dist/chunks/chunk-GVAKN6R5.js +0 -192
- package/dist/chunks/chunk-GWJGC4TO.js +0 -78
- package/dist/chunks/chunk-GXNQWDZ5.js +0 -113
- package/dist/chunks/chunk-GYVS2U7W.js +0 -149
- package/dist/chunks/chunk-H37PW4T2.js +0 -196
- package/dist/chunks/chunk-H3GHMF4R.js +0 -33
- package/dist/chunks/chunk-H54XPFBZ.js +0 -94
- package/dist/chunks/chunk-H5L2UNF4.js +0 -239
- package/dist/chunks/chunk-H6HEANCW.js +0 -154
- package/dist/chunks/chunk-HB7RYHNI.js +0 -23
- package/dist/chunks/chunk-HDELG5ET.js +0 -85
- package/dist/chunks/chunk-HEUXXY44.js +0 -146
- package/dist/chunks/chunk-HEWFPFKU.js +0 -60
- package/dist/chunks/chunk-HFLBL2LQ.js +0 -23
- package/dist/chunks/chunk-HH6PKMST.js +0 -136
- package/dist/chunks/chunk-HH7SYSX2.js +0 -50
- package/dist/chunks/chunk-HINXX63Q.js +0 -93
- package/dist/chunks/chunk-HJ3BM4YS.js +0 -351
- package/dist/chunks/chunk-HMSSL2CY.js +0 -91
- package/dist/chunks/chunk-HOIQ6V2M.js +0 -255
- package/dist/chunks/chunk-HOJG3DPC.js +0 -128
- package/dist/chunks/chunk-HOMTXZRB.js +0 -68
- package/dist/chunks/chunk-HOQWSQ6F.js +0 -221
- package/dist/chunks/chunk-HOU5OW24.js +0 -123
- package/dist/chunks/chunk-HP4UNKGH.js +0 -213
- package/dist/chunks/chunk-HPTZDBSR.js +0 -79
- package/dist/chunks/chunk-HQCCRDPH.js +0 -290
- package/dist/chunks/chunk-HQJDNVPC.js +0 -23
- package/dist/chunks/chunk-HTNTC4K3.js +0 -105
- package/dist/chunks/chunk-HUUOD75U.js +0 -23
- package/dist/chunks/chunk-HW64SMMM.js +0 -226
- package/dist/chunks/chunk-HWYTJA27.js +0 -213
- package/dist/chunks/chunk-HX6JS4MF.js +0 -79
- package/dist/chunks/chunk-HXXJBNF2.js +0 -169
- package/dist/chunks/chunk-I32KG34K.js +0 -104
- package/dist/chunks/chunk-I4T2CDXO.js +0 -196
- package/dist/chunks/chunk-I4WMMZ7B.js +0 -146
- package/dist/chunks/chunk-I5XSGPQD.js +0 -133
- package/dist/chunks/chunk-I663A7ZD.js +0 -204
- package/dist/chunks/chunk-I6ITFAKD.js +0 -95
- package/dist/chunks/chunk-I7CEZ2JV.js +0 -256
- package/dist/chunks/chunk-IBF2JDBW.js +0 -297
- package/dist/chunks/chunk-ICXGJMGG.js +0 -104
- package/dist/chunks/chunk-IDMW2KGH.js +0 -197
- package/dist/chunks/chunk-IIDMZJKW.js +0 -106
- package/dist/chunks/chunk-IJF5FBA5.js +0 -100
- package/dist/chunks/chunk-IK5QFMAT.js +0 -120
- package/dist/chunks/chunk-IMRRPW5Y.js +0 -137
- package/dist/chunks/chunk-IPH7H54G.js +0 -70
- package/dist/chunks/chunk-IQIWOGIX.js +0 -165
- package/dist/chunks/chunk-IRPO6GSK.js +0 -149
- package/dist/chunks/chunk-IUQWREQ7.js +0 -65
- package/dist/chunks/chunk-IUR574PJ.js +0 -224
- package/dist/chunks/chunk-IUSHBXDM.js +0 -153
- package/dist/chunks/chunk-IUWNM2LI.js +0 -60
- package/dist/chunks/chunk-IVFH4SFX.js +0 -105
- package/dist/chunks/chunk-IVKT3XQH.js +0 -303
- package/dist/chunks/chunk-IWFFNRAD.js +0 -41
- package/dist/chunks/chunk-IWXKCTB2.js +0 -166
- package/dist/chunks/chunk-IX6WSPGD.js +0 -192
- package/dist/chunks/chunk-IYQQTQ7C.js +0 -122
- package/dist/chunks/chunk-IZRUVDFB.js +0 -115
- package/dist/chunks/chunk-J2MGIBMU.js +0 -118
- package/dist/chunks/chunk-J2VZIQTT.js +0 -92
- package/dist/chunks/chunk-J4TJH4BL.js +0 -102
- package/dist/chunks/chunk-J5MIVJ5X.js +0 -23
- package/dist/chunks/chunk-J5R5U5SH.js +0 -147
- package/dist/chunks/chunk-J5W76QKP.js +0 -33
- package/dist/chunks/chunk-J75HBCRN.js +0 -161
- package/dist/chunks/chunk-JABRVA4O.js +0 -33
- package/dist/chunks/chunk-JBGRQFRL.js +0 -299
- package/dist/chunks/chunk-JBPOUVVP.js +0 -196
- package/dist/chunks/chunk-JCKQJBMQ.js +0 -111
- package/dist/chunks/chunk-JDHA3Y5K.js +0 -146
- package/dist/chunks/chunk-JEGIRA6F.js +0 -118
- package/dist/chunks/chunk-JESDFPMS.js +0 -307
- package/dist/chunks/chunk-JGWWE2UU.js +0 -84
- package/dist/chunks/chunk-JHALIAWK.js +0 -23
- package/dist/chunks/chunk-JHN4E73P.js +0 -181
- package/dist/chunks/chunk-JIND5RJW.js +0 -320
- package/dist/chunks/chunk-JINGFS5I.js +0 -130
- package/dist/chunks/chunk-JN5RLRCN.js +0 -222
- package/dist/chunks/chunk-JO6UKBRW.js +0 -114
- package/dist/chunks/chunk-JOD2AJP6.js +0 -320
- package/dist/chunks/chunk-JQYFYXVL.js +0 -121
- package/dist/chunks/chunk-JSVLUKRH.js +0 -71
- package/dist/chunks/chunk-JT2PN2SD.js +0 -302
- package/dist/chunks/chunk-JT42TAWR.js +0 -62
- package/dist/chunks/chunk-JTZJ656K.js +0 -23
- package/dist/chunks/chunk-JYFOJT6M.js +0 -276
- package/dist/chunks/chunk-JYFXZVUP.js +0 -368
- package/dist/chunks/chunk-JYH67NU7.js +0 -85
- package/dist/chunks/chunk-JZH5F23D.js +0 -33
- package/dist/chunks/chunk-JZSRK2HE.js +0 -78
- package/dist/chunks/chunk-K2NTKTG2.js +0 -126
- package/dist/chunks/chunk-K2XMSCUG.js +0 -44
- package/dist/chunks/chunk-K3PU5AGQ.js +0 -151
- package/dist/chunks/chunk-K5ICU3QU.js +0 -158
- package/dist/chunks/chunk-K5ZD6GAZ.js +0 -33
- package/dist/chunks/chunk-K6BENAMS.js +0 -36
- package/dist/chunks/chunk-K6ZHDHL4.js +0 -28
- package/dist/chunks/chunk-K7A7SA55.js +0 -124
- package/dist/chunks/chunk-KAB7HSUS.js +0 -54
- package/dist/chunks/chunk-KB7RSDLW.js +0 -53
- package/dist/chunks/chunk-KBIJ77KG.js +0 -85
- package/dist/chunks/chunk-KCMMVSGB.js +0 -685
- package/dist/chunks/chunk-KDVL2XO2.js +0 -106
- package/dist/chunks/chunk-KDYDZJVY.js +0 -102
- package/dist/chunks/chunk-KE7FAMH5.js +0 -107
- package/dist/chunks/chunk-KFYBNL2B.js +0 -95
- package/dist/chunks/chunk-KGLWPDKJ.js +0 -232
- package/dist/chunks/chunk-KKFCDWOM.js +0 -80
- package/dist/chunks/chunk-KKNSG4RW.js +0 -139
- package/dist/chunks/chunk-KMOW3NNZ.js +0 -177
- package/dist/chunks/chunk-KNJTVVRI.js +0 -127
- package/dist/chunks/chunk-KPXKRGY3.js +0 -138
- package/dist/chunks/chunk-KQP36MRB.js +0 -226
- package/dist/chunks/chunk-KRJ5XS5E.js +0 -10278
- package/dist/chunks/chunk-KRLZ2T7I.js +0 -244
- package/dist/chunks/chunk-KSNYWMVS.js +0 -48
- package/dist/chunks/chunk-KU3KKF2S.js +0 -161
- package/dist/chunks/chunk-KU3XWYNC.js +0 -91
- package/dist/chunks/chunk-KWAOG7GM.js +0 -83
- package/dist/chunks/chunk-KZ4FU44P.js +0 -103
- package/dist/chunks/chunk-KZCJ3BNI.js +0 -167
- package/dist/chunks/chunk-L24E26CU.js +0 -180
- package/dist/chunks/chunk-L2K45AHZ.js +0 -312
- package/dist/chunks/chunk-L3JUXB4U.js +0 -251
- package/dist/chunks/chunk-L4STGZJK.js +0 -33
- package/dist/chunks/chunk-L7U6HQD5.js +0 -150
- package/dist/chunks/chunk-LAW4QRVS.js +0 -655
- package/dist/chunks/chunk-LBTTSYVC.js +0 -41
- package/dist/chunks/chunk-LCOUYL6Q.js +0 -33
- package/dist/chunks/chunk-LEIILYES.js +0 -115
- package/dist/chunks/chunk-LGFKJ2XN.js +0 -345
- package/dist/chunks/chunk-LLTNRLGJ.js +0 -129
- package/dist/chunks/chunk-LQ4O7QZM.js +0 -163
- package/dist/chunks/chunk-LQJPK4HL.js +0 -104
- package/dist/chunks/chunk-LTAEVQXS.js +0 -169
- package/dist/chunks/chunk-LTWM2IBV.js +0 -55
- package/dist/chunks/chunk-LUHNZXXZ.js +0 -248
- package/dist/chunks/chunk-LV5LQS5P.js +0 -179
- package/dist/chunks/chunk-LWMI7GAT.js +0 -96
- package/dist/chunks/chunk-LY4XC5PG.js +0 -240
- package/dist/chunks/chunk-LZDQRTAJ.js +0 -45
- package/dist/chunks/chunk-LZQLRLCS.js +0 -78
- package/dist/chunks/chunk-M6OUEH7U.js +0 -141
- package/dist/chunks/chunk-M7BX3VTT.js +0 -324
- package/dist/chunks/chunk-M7MI4LW4.js +0 -738
- package/dist/chunks/chunk-M7N7L6U2.js +0 -101
- package/dist/chunks/chunk-MAEUX2HV.js +0 -187
- package/dist/chunks/chunk-MAN4QVOU.js +0 -120
- package/dist/chunks/chunk-MBY7GOXI.js +0 -177
- package/dist/chunks/chunk-MCFQPNZF.js +0 -106
- package/dist/chunks/chunk-MDHYRK23.js +0 -174
- package/dist/chunks/chunk-MDPNMJYT.js +0 -109
- package/dist/chunks/chunk-MEUPQKBB.js +0 -69
- package/dist/chunks/chunk-MG5LBDI7.js +0 -86
- package/dist/chunks/chunk-MHTZWZYG.js +0 -87
- package/dist/chunks/chunk-MIFPSPDM.js +0 -45
- package/dist/chunks/chunk-MIFXIXML.js +0 -177
- package/dist/chunks/chunk-MIIJFG2E.js +0 -346
- package/dist/chunks/chunk-MJ42KT47.js +0 -23
- package/dist/chunks/chunk-MLWM7FMV.js +0 -99
- package/dist/chunks/chunk-MM46UROB.js +0 -182
- package/dist/chunks/chunk-MMFL7HGS.js +0 -261
- package/dist/chunks/chunk-MNZTMGWW.js +0 -100
- package/dist/chunks/chunk-MPOFAYLC.js +0 -193
- package/dist/chunks/chunk-MQSULBDY.js +0 -102
- package/dist/chunks/chunk-MSEZTWEY.js +0 -122
- package/dist/chunks/chunk-MVXBWFQQ.js +0 -889
- package/dist/chunks/chunk-MXDXSRN4.js +0 -168
- package/dist/chunks/chunk-MXG2UFTK.js +0 -23
- package/dist/chunks/chunk-MXKWYIDP.js +0 -147
- package/dist/chunks/chunk-MYVBGCB5.js +0 -101
- package/dist/chunks/chunk-MZKD36NK.js +0 -112
- package/dist/chunks/chunk-MZMKBHIA.js +0 -81
- package/dist/chunks/chunk-N3XKIUGG.js +0 -73
- package/dist/chunks/chunk-N5GHAGDW.js +0 -237
- package/dist/chunks/chunk-N5L5R2NJ.js +0 -127
- package/dist/chunks/chunk-N6WMFQ7R.js +0 -218
- package/dist/chunks/chunk-N7EV7IUB.js +0 -266
- package/dist/chunks/chunk-NAUP4WDH.js +0 -110
- package/dist/chunks/chunk-NBG42GVP.js +0 -33
- package/dist/chunks/chunk-NBI4KGL2.js +0 -112
- package/dist/chunks/chunk-ND6SQGXD.js +0 -123
- package/dist/chunks/chunk-NENCFJKK.js +0 -172
- package/dist/chunks/chunk-NFQLIXFO.js +0 -133
- package/dist/chunks/chunk-NH524MCP.js +0 -113
- package/dist/chunks/chunk-NHCWXDCA.js +0 -1403
- package/dist/chunks/chunk-NIFBB2IT.js +0 -33
- package/dist/chunks/chunk-NIZHI3IQ.js +0 -282
- package/dist/chunks/chunk-NJ4LYRQB.js +0 -199
- package/dist/chunks/chunk-NJFRJKUL.js +0 -117
- package/dist/chunks/chunk-NMCJWKEU.js +0 -182
- package/dist/chunks/chunk-NMX3PO3M.js +0 -137
- package/dist/chunks/chunk-NOVN63GQ.js +0 -100
- package/dist/chunks/chunk-NSKTFV4T.js +0 -188
- package/dist/chunks/chunk-NWE6O5JD.js +0 -152
- package/dist/chunks/chunk-NXVJ6PD5.js +0 -305
- package/dist/chunks/chunk-NYLMY64W.js +0 -331
- package/dist/chunks/chunk-O6OYLVTB.js +0 -83
- package/dist/chunks/chunk-O6YX2TH3.js +0 -462
- package/dist/chunks/chunk-O7ZE4KNK.js +0 -112
- package/dist/chunks/chunk-OAMCGR3C.js +0 -358
- package/dist/chunks/chunk-OATTW5IM.js +0 -83
- package/dist/chunks/chunk-OEMYUOB2.js +0 -101
- package/dist/chunks/chunk-OEOOTHUW.js +0 -82
- package/dist/chunks/chunk-OFNRBWTY.js +0 -33
- package/dist/chunks/chunk-OG7OI742.js +0 -122
- package/dist/chunks/chunk-OGKZTUBW.js +0 -91
- package/dist/chunks/chunk-OH5ZGLNK.js +0 -33
- package/dist/chunks/chunk-OHFWKYPZ.js +0 -326
- package/dist/chunks/chunk-OIW3U66R.js +0 -87
- package/dist/chunks/chunk-OK6NQVCT.js +0 -165
- package/dist/chunks/chunk-OMG6UJTF.js +0 -362
- package/dist/chunks/chunk-OO42GZZ2.js +0 -181
- package/dist/chunks/chunk-OOKFO2T7.js +0 -49
- package/dist/chunks/chunk-OOPL3Q3C.js +0 -261
- package/dist/chunks/chunk-OOQ3J3XK.js +0 -100
- package/dist/chunks/chunk-OR2J3LHK.js +0 -191
- package/dist/chunks/chunk-OSE3T7T7.js +0 -111
- package/dist/chunks/chunk-OVEFAI35.js +0 -155
- package/dist/chunks/chunk-OVPDS7EI.js +0 -197
- package/dist/chunks/chunk-OWGZKFWU.js +0 -173
- package/dist/chunks/chunk-P3KZL4D3.js +0 -156
- package/dist/chunks/chunk-P4WYW6UM.js +0 -140
- package/dist/chunks/chunk-P64CU4G4.js +0 -283
- package/dist/chunks/chunk-P67OJTEU.js +0 -161
- package/dist/chunks/chunk-P7MSRZ7B.js +0 -135
- package/dist/chunks/chunk-PACHA46O.js +0 -250
- package/dist/chunks/chunk-PCWFQ6II.js +0 -231
- package/dist/chunks/chunk-PE5TEJS5.js +0 -89
- package/dist/chunks/chunk-PGDUZVLO.js +0 -70
- package/dist/chunks/chunk-PH2QZAA2.js +0 -97
- package/dist/chunks/chunk-PHLXIICR.js +0 -142
- package/dist/chunks/chunk-PINJAI3P.js +0 -45
- package/dist/chunks/chunk-PLRG74HL.js +0 -152
- package/dist/chunks/chunk-PMUJPMJR.js +0 -119
- package/dist/chunks/chunk-PMZZCHFX.js +0 -81
- package/dist/chunks/chunk-PN5ZWEYZ.js +0 -47
- package/dist/chunks/chunk-PS3KAXZK.js +0 -89
- package/dist/chunks/chunk-PUE7ITIB.js +0 -111
- package/dist/chunks/chunk-PXOFPOY2.js +0 -512
- package/dist/chunks/chunk-PYUJLKOT.js +0 -80
- package/dist/chunks/chunk-Q3CTXAWI.js +0 -45
- package/dist/chunks/chunk-Q5AD7FBR.js +0 -112
- package/dist/chunks/chunk-Q7NYYBVV.js +0 -198
- package/dist/chunks/chunk-QAHTXB3B.js +0 -283
- package/dist/chunks/chunk-QB6HFBIE.js +0 -36
- package/dist/chunks/chunk-QCNBRVHD.js +0 -559
- package/dist/chunks/chunk-QEFTNAJI.js +0 -65
- package/dist/chunks/chunk-QGYPRHHZ.js +0 -171
- package/dist/chunks/chunk-QHQLAY77.js +0 -172
- package/dist/chunks/chunk-QJ4URWSB.js +0 -23
- package/dist/chunks/chunk-QJ5AJILA.js +0 -76
- package/dist/chunks/chunk-QJVJPD2T.js +0 -105
- package/dist/chunks/chunk-QKJLDSJN.js +0 -135
- package/dist/chunks/chunk-QKW4FNNS.js +0 -221
- package/dist/chunks/chunk-QLQ7IPUB.js +0 -41
- package/dist/chunks/chunk-QNOZYJKX.js +0 -23
- package/dist/chunks/chunk-QPGI52VG.js +0 -123
- package/dist/chunks/chunk-QR6MONVY.js +0 -157
- package/dist/chunks/chunk-QUHWXOFW.js +0 -23
- package/dist/chunks/chunk-QWPKFW3J.js +0 -33
- package/dist/chunks/chunk-QWWMC77O.js +0 -93
- package/dist/chunks/chunk-QWZGSA3Y.js +0 -49
- package/dist/chunks/chunk-QYKJLK4O.js +0 -156
- package/dist/chunks/chunk-R2E4AUIM.js +0 -160
- package/dist/chunks/chunk-R322HJ6Y.js +0 -157
- package/dist/chunks/chunk-R4I54YUW.js +0 -155
- package/dist/chunks/chunk-R67FM467.js +0 -87
- package/dist/chunks/chunk-R6KWX7HU.js +0 -77
- package/dist/chunks/chunk-R6WMZZIR.js +0 -272
- package/dist/chunks/chunk-R7D2HZOG.js +0 -23
- package/dist/chunks/chunk-RCIY2UY2.js +0 -92
- package/dist/chunks/chunk-RD4BY3DL.js +0 -152
- package/dist/chunks/chunk-REMBLPYQ.js +0 -139
- package/dist/chunks/chunk-REUKYDSU.js +0 -115
- package/dist/chunks/chunk-RGNFA7RM.js +0 -149
- package/dist/chunks/chunk-RGRYDSUK.js +0 -93
- package/dist/chunks/chunk-RGTROMZ6.js +0 -115
- package/dist/chunks/chunk-RIJUHEFX.js +0 -100
- package/dist/chunks/chunk-RJVHVN6H.js +0 -262
- package/dist/chunks/chunk-RKE7C7ER.js +0 -80
- package/dist/chunks/chunk-RL2JA4JN.js +0 -301
- package/dist/chunks/chunk-RLRUELE3.js +0 -30
- package/dist/chunks/chunk-RM6KMHC2.js +0 -129
- package/dist/chunks/chunk-ROWWZXJK.js +0 -209
- package/dist/chunks/chunk-RQ7HAMQM.js +0 -169
- package/dist/chunks/chunk-RRIJTPFE.js +0 -71
- package/dist/chunks/chunk-RRL7TN65.js +0 -135
- package/dist/chunks/chunk-RRQAOLXX.js +0 -197
- package/dist/chunks/chunk-RVC27BTB.js +0 -147
- package/dist/chunks/chunk-RVGZ7EKG.js +0 -141
- package/dist/chunks/chunk-RVSX2MQ7.js +0 -115
- package/dist/chunks/chunk-RW3BWTAF.js +0 -210
- package/dist/chunks/chunk-RXSSRGPO.js +0 -151
- package/dist/chunks/chunk-RZTKPSZN.js +0 -80
- package/dist/chunks/chunk-RZUXGGRP.js +0 -1336
- package/dist/chunks/chunk-S2M3TMKG.js +0 -160
- package/dist/chunks/chunk-S3M7M5HU.js +0 -144
- package/dist/chunks/chunk-S7GI5CIM.js +0 -172
- package/dist/chunks/chunk-S7TYK43L.js +0 -127
- package/dist/chunks/chunk-SA3YT2AV.js +0 -130
- package/dist/chunks/chunk-SA6TVSPF.js +0 -123
- package/dist/chunks/chunk-SBPYSZDS.js +0 -140
- package/dist/chunks/chunk-SEHMG73P.js +0 -135
- package/dist/chunks/chunk-SES5IB64.js +0 -382
- package/dist/chunks/chunk-SGYLU5DH.js +0 -33
- package/dist/chunks/chunk-SIHPBRGB.js +0 -170
- package/dist/chunks/chunk-SNKJX4OY.js +0 -337
- package/dist/chunks/chunk-SOE4QQPF.js +0 -503
- package/dist/chunks/chunk-SQXXMPID.js +0 -157
- package/dist/chunks/chunk-SREWH4SZ.js +0 -122
- package/dist/chunks/chunk-SSEAVZKE.js +0 -46
- package/dist/chunks/chunk-SYZOAPND.js +0 -36
- package/dist/chunks/chunk-SZSCAEFZ.js +0 -63
- package/dist/chunks/chunk-T3BKG2JX.js +0 -277
- package/dist/chunks/chunk-T3V2SPJE.js +0 -85
- package/dist/chunks/chunk-T3WFO2EM.js +0 -141
- package/dist/chunks/chunk-T4B43GDP.js +0 -106
- package/dist/chunks/chunk-T4E6C5D3.js +0 -120
- package/dist/chunks/chunk-T4SN2TR7.js +0 -344
- package/dist/chunks/chunk-T6YOOBUA.js +0 -145
- package/dist/chunks/chunk-TBB7A5NM.js +0 -23
- package/dist/chunks/chunk-TDJ6GUYT.js +0 -1393
- package/dist/chunks/chunk-TFARXVKZ.js +0 -728
- package/dist/chunks/chunk-TFY5XLR3.js +0 -45
- package/dist/chunks/chunk-TGR3I4IE.js +0 -80
- package/dist/chunks/chunk-TI5ANARH.js +0 -93
- package/dist/chunks/chunk-TIFUYBY6.js +0 -182
- package/dist/chunks/chunk-TJ2QRUWE.js +0 -81
- package/dist/chunks/chunk-TNGCXXGL.js +0 -115
- package/dist/chunks/chunk-TNU2HTYK.js +0 -107
- package/dist/chunks/chunk-TQ4WHC4R.js +0 -176
- package/dist/chunks/chunk-TQ6YAGCF.js +0 -74
- package/dist/chunks/chunk-TQDJGEW7.js +0 -173
- package/dist/chunks/chunk-TR6HGKI3.js +0 -198
- package/dist/chunks/chunk-TR6N5YBJ.js +0 -100
- package/dist/chunks/chunk-TSDGHTAX.js +0 -260
- package/dist/chunks/chunk-TSNLC3BJ.js +0 -215
- package/dist/chunks/chunk-TT2KK4BF.js +0 -261
- package/dist/chunks/chunk-TTGN7N4A.js +0 -33
- package/dist/chunks/chunk-TVH25LBR.js +0 -51
- package/dist/chunks/chunk-TWFKVCQC.js +0 -164
- package/dist/chunks/chunk-TWM6YXFH.js +0 -23
- package/dist/chunks/chunk-TYAFUHOF.js +0 -97
- package/dist/chunks/chunk-TZ4WA7RT.js +0 -170
- package/dist/chunks/chunk-TZZAVMAP.js +0 -45
- package/dist/chunks/chunk-U3CJPFRW.js +0 -166
- package/dist/chunks/chunk-U4KUO5LU.js +0 -287
- package/dist/chunks/chunk-U5OOYFKQ.js +0 -163
- package/dist/chunks/chunk-U5YUATA6.js +0 -48
- package/dist/chunks/chunk-U6UJK52Q.js +0 -160
- package/dist/chunks/chunk-UA7HXWVA.js +0 -110
- package/dist/chunks/chunk-UABXOHDB.js +0 -80
- package/dist/chunks/chunk-UBGAUBDN.js +0 -284
- package/dist/chunks/chunk-UCFUHSTU.js +0 -242
- package/dist/chunks/chunk-UHADDF4I.js +0 -105
- package/dist/chunks/chunk-UHQUYPXK.js +0 -23
- package/dist/chunks/chunk-UI5HVO62.js +0 -183
- package/dist/chunks/chunk-UIBSQFO2.js +0 -23
- package/dist/chunks/chunk-UIZOCVLX.js +0 -106
- package/dist/chunks/chunk-UJLZKWLH.js +0 -88
- package/dist/chunks/chunk-UQNN5N3B.js +0 -97
- package/dist/chunks/chunk-URVZGOUA.js +0 -263
- package/dist/chunks/chunk-URY4PJZY.js +0 -142
- package/dist/chunks/chunk-US5HNTAF.js +0 -278
- package/dist/chunks/chunk-UT4LQYGN.js +0 -78
- package/dist/chunks/chunk-UTOMSNP2.js +0 -169
- package/dist/chunks/chunk-UU77ORZN.js +0 -94
- package/dist/chunks/chunk-UX4MFGM4.js +0 -150
- package/dist/chunks/chunk-UXDZOYMA.js +0 -45
- package/dist/chunks/chunk-UYDTZBP6.js +0 -23
- package/dist/chunks/chunk-UYJPAKVZ.js +0 -146
- package/dist/chunks/chunk-UYOD4GRL.js +0 -232
- package/dist/chunks/chunk-UYYONOU2.js +0 -1309
- package/dist/chunks/chunk-V6P274UB.js +0 -50
- package/dist/chunks/chunk-VBSNNVGR.js +0 -55
- package/dist/chunks/chunk-VBYCVYWC.js +0 -50
- package/dist/chunks/chunk-VDU3J322.js +0 -42
- package/dist/chunks/chunk-VELXTRKI.js +0 -159
- package/dist/chunks/chunk-VG4FWNEJ.js +0 -87
- package/dist/chunks/chunk-VG4HZNNS.js +0 -121
- package/dist/chunks/chunk-VHLKKUMZ.js +0 -94
- package/dist/chunks/chunk-VLX7HGGX.js +0 -334
- package/dist/chunks/chunk-VMB2GLIY.js +0 -155
- package/dist/chunks/chunk-VMS2WQ6B.js +0 -106
- package/dist/chunks/chunk-VND4KSR4.js +0 -166
- package/dist/chunks/chunk-VNJXLQC4.js +0 -390
- package/dist/chunks/chunk-VOC3BONH.js +0 -145
- package/dist/chunks/chunk-VOCROMKE.js +0 -59
- package/dist/chunks/chunk-VPRALXMW.js +0 -139
- package/dist/chunks/chunk-VQPWYRYR.js +0 -133
- package/dist/chunks/chunk-VTOYVKN3.js +0 -57
- package/dist/chunks/chunk-VUH5EGDZ.js +0 -188
- package/dist/chunks/chunk-VWP6W45T.js +0 -293
- package/dist/chunks/chunk-VZB3BRRM.js +0 -277
- package/dist/chunks/chunk-W27ZFG3Z.js +0 -84
- package/dist/chunks/chunk-W2ADWNFH.js +0 -181
- package/dist/chunks/chunk-W2EPZUF5.js +0 -191
- package/dist/chunks/chunk-W2OGOF5I.js +0 -66
- package/dist/chunks/chunk-W3347ZDH.js +0 -94
- package/dist/chunks/chunk-W3SCAWNA.js +0 -77
- package/dist/chunks/chunk-W3WG2HMI.js +0 -270
- package/dist/chunks/chunk-W4TEMU6H.js +0 -146
- package/dist/chunks/chunk-W5MKCJ5O.js +0 -265
- package/dist/chunks/chunk-W7PAJTE4.js +0 -103
- package/dist/chunks/chunk-WB5DMMUT.js +0 -97
- package/dist/chunks/chunk-WBIDI5VT.js +0 -92
- package/dist/chunks/chunk-WFJSTP2I.js +0 -159
- package/dist/chunks/chunk-WJG4GSI6.js +0 -361
- package/dist/chunks/chunk-WJJ2VZXG.js +0 -23
- package/dist/chunks/chunk-WKCKDN5Z.js +0 -23
- package/dist/chunks/chunk-WMO7S47K.js +0 -151
- package/dist/chunks/chunk-WMQADWEK.js +0 -78
- package/dist/chunks/chunk-WMXMKAGO.js +0 -125
- package/dist/chunks/chunk-WN3QDZGF.js +0 -202
- package/dist/chunks/chunk-WO5XG46V.js +0 -147
- package/dist/chunks/chunk-WQBVDROD.js +0 -303
- package/dist/chunks/chunk-WRT6CDBC.js +0 -103
- package/dist/chunks/chunk-WSE2C7XW.js +0 -274
- package/dist/chunks/chunk-WTEC44DW.js +0 -106
- package/dist/chunks/chunk-WYEWSSEI.js +0 -92
- package/dist/chunks/chunk-X3I2QZMW.js +0 -98
- package/dist/chunks/chunk-X3IMBK5X.js +0 -1136
- package/dist/chunks/chunk-X4TSYMFD.js +0 -214
- package/dist/chunks/chunk-X5EBB4QZ.js +0 -106
- package/dist/chunks/chunk-X5UR3CLX.js +0 -95
- package/dist/chunks/chunk-X5ZCQJLM.js +0 -191
- package/dist/chunks/chunk-X66LW77C.js +0 -172
- package/dist/chunks/chunk-X6EG7BQ2.js +0 -33
- package/dist/chunks/chunk-X6HOQ2XY.js +0 -242
- package/dist/chunks/chunk-XA2LCOFK.js +0 -162
- package/dist/chunks/chunk-XAK74QEP.js +0 -266
- package/dist/chunks/chunk-XAN5ICPT.js +0 -415
- package/dist/chunks/chunk-XANCGIKF.js +0 -81
- package/dist/chunks/chunk-XCNTFJB3.js +0 -119
- package/dist/chunks/chunk-XCQM5PBT.js +0 -267
- package/dist/chunks/chunk-XDBHDGOV.js +0 -330
- package/dist/chunks/chunk-XDGBLS5F.js +0 -36
- package/dist/chunks/chunk-XFR3AP6M.js +0 -626
- package/dist/chunks/chunk-XHD4XDG2.js +0 -298
- package/dist/chunks/chunk-XHVSDFQ4.js +0 -55
- package/dist/chunks/chunk-XK2XABQI.js +0 -84
- package/dist/chunks/chunk-XKJ7PA2I.js +0 -215
- package/dist/chunks/chunk-XLEP4MJU.js +0 -154
- package/dist/chunks/chunk-XMM57N6L.js +0 -23
- package/dist/chunks/chunk-XN72LXIP.js +0 -33
- package/dist/chunks/chunk-XNOSWIRT.js +0 -78
- package/dist/chunks/chunk-XOX2LZ7G.js +0 -273
- package/dist/chunks/chunk-XP5QURJ4.js +0 -84
- package/dist/chunks/chunk-XPHSZD3P.js +0 -38
- package/dist/chunks/chunk-XPYKAPRO.js +0 -163
- package/dist/chunks/chunk-XRAOUJIV.js +0 -257
- package/dist/chunks/chunk-XSS4JL2P.js +0 -134
- package/dist/chunks/chunk-XTCX4LYW.js +0 -112
- package/dist/chunks/chunk-XU7C7JN2.js +0 -33
- package/dist/chunks/chunk-XUI74OFR.js +0 -125
- package/dist/chunks/chunk-XYMPV6ON.js +0 -81
- package/dist/chunks/chunk-Y2IKQZW6.js +0 -87
- package/dist/chunks/chunk-YABNHS75.js +0 -43
- package/dist/chunks/chunk-YATS2TZA.js +0 -156
- package/dist/chunks/chunk-YDDK7MRX.js +0 -47
- package/dist/chunks/chunk-YFCBSZYB.js +0 -54
- package/dist/chunks/chunk-YGODIBPR.js +0 -204
- package/dist/chunks/chunk-YII3C27O.js +0 -82
- package/dist/chunks/chunk-YKEJYRBJ.js +0 -274
- package/dist/chunks/chunk-YKV6CTTH.js +0 -94
- package/dist/chunks/chunk-YLUXIR6O.js +0 -48
- package/dist/chunks/chunk-YMKIF26Z.js +0 -969
- package/dist/chunks/chunk-YMW7LZKC.js +0 -94
- package/dist/chunks/chunk-YQLA2V6F.js +0 -49
- package/dist/chunks/chunk-YSUKNNLY.js +0 -66
- package/dist/chunks/chunk-YUN7QNHS.js +0 -23
- package/dist/chunks/chunk-YV74PLYL.js +0 -93
- package/dist/chunks/chunk-YVAP455E.js +0 -117
- package/dist/chunks/chunk-YVRR7PAA.js +0 -197
- package/dist/chunks/chunk-YW2TRYWR.js +0 -109
- package/dist/chunks/chunk-YW7HDVWW.js +0 -117
- package/dist/chunks/chunk-YWHAMPCW.js +0 -23
- package/dist/chunks/chunk-YXCQ5VKH.js +0 -238
- package/dist/chunks/chunk-YXMZ67GM.js +0 -187
- package/dist/chunks/chunk-YYEB6KOI.js +0 -23
- package/dist/chunks/chunk-Z3RUU5JX.js +0 -186
- package/dist/chunks/chunk-Z4VKCHJZ.js +0 -36
- package/dist/chunks/chunk-Z5MQAYL7.js +0 -122
- package/dist/chunks/chunk-Z7YKXXRK.js +0 -88
- package/dist/chunks/chunk-ZARGZ7Q6.js +0 -777
- package/dist/chunks/chunk-ZEFPR7B3.js +0 -108
- package/dist/chunks/chunk-ZF2IOADF.js +0 -128
- package/dist/chunks/chunk-ZF3ZANVR.js +0 -422
- package/dist/chunks/chunk-ZI6L4CZM.js +0 -145
- package/dist/chunks/chunk-ZJ2GS6QT.js +0 -92
- package/dist/chunks/chunk-ZKOCF5QU.js +0 -52
- package/dist/chunks/chunk-ZMZQWJW3.js +0 -167
- package/dist/chunks/chunk-ZOUY5BKP.js +0 -209
- package/dist/chunks/chunk-ZS3UMCQA.js +0 -260
- package/dist/chunks/chunk-ZVTYZ6BK.js +0 -194
- package/dist/chunks/chunk-ZW2UZANA.js +0 -101
- package/dist/chunks/chunk-ZWTASQJI.js +0 -185
- package/dist/chunks/chunk-ZYIHPPLX.js +0 -181
- package/dist/chunks/chunk-ZZ42RKKB.js +0 -1574
- package/dist/chunks/chunk-ZZGNRYZW.js +0 -94
- package/dist/chunks/client-7ZQ3NFOV.js +0 -31
- package/dist/chunks/client-NSVV6YU3.js +0 -47
- package/dist/chunks/client-VATC2K6O.js +0 -168
- package/dist/chunks/client-actions-YCMXTRBN.js +0 -168
- package/dist/chunks/dangerous-KK5PLISX.js +0 -121
- package/dist/chunks/delete-current-file-UEH67VSJ.js +0 -161
- package/dist/chunks/editor-seams-KHCNE2X6.js +0 -180
- package/dist/chunks/editor-store-U4JCAFCU.js +0 -147
- package/dist/chunks/export-watermark-5IZGCYTN.js +0 -155
- package/dist/chunks/eyedropper-P4XU47GW.js +0 -354
- package/dist/chunks/generate-media-C53BQZIP.js +0 -255
- package/dist/chunks/host-WMUHPIRI.js +0 -180
- package/dist/chunks/integrations-2FDHXGFH.js +0 -125
- package/dist/chunks/kit-modules-5EXDWPLH.js +0 -18
- package/dist/chunks/libraries-25V2MWYC.js +0 -309
- package/dist/chunks/live-6OFYLILA.js +0 -321
- package/dist/chunks/media-tool-HXECTWKQ.js +0 -236
- package/dist/chunks/new-file-GDSII3GJ.js +0 -139
- package/dist/chunks/plugin-VULAPF3S.js +0 -128
- package/dist/chunks/plugin-import-6GFVLHSA.js +0 -688
- package/dist/chunks/presence-5S3JHO22.js +0 -136
- package/dist/chunks/project-SEFKN7XE.js +0 -1654
- package/dist/chunks/publish-site-YPVEW2PX.js +0 -165
- package/dist/chunks/publish-store-Y3HLAH26.js +0 -95
- package/dist/chunks/raster-actions-27OTV5PS.js +0 -232
- package/dist/chunks/runner-A2BGPIFM.js +0 -3543
- package/dist/chunks/store-H4U53JZ5.js +0 -233
- package/dist/chunks/sync-5B55RF3R.js +0 -160
- package/dist/chunks/tabs-YQRQMAWT.js +0 -319
- package/dist/chunks/team-IZT26MBY.js +0 -47
- package/dist/chunks/team-client-4NDH7VS4.js +0 -158
- package/dist/chunks/tools-NUIVD75Y.js +0 -37
- package/dist/chunks/ui-commands-K4ONVDYV.js +0 -188
- package/dist/chunks/versions-IPWF3ZL3.js +0 -318
- /package/dist/chunks/{chunk-NIE6HVZZ.js → chunk-SLCUJD3Q.js} +0 -0
|
@@ -0,0 +1,3543 @@
|
|
|
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-TKF4VKPA.js";
|
|
29
|
+
import {
|
|
30
|
+
registerBuiltinTools
|
|
31
|
+
} from "./chunk-NGXVOSSC.js";
|
|
32
|
+
import {
|
|
33
|
+
registerDangerousCommands
|
|
34
|
+
} from "./chunk-UENHHC76.js";
|
|
35
|
+
import "./chunk-ONKVSMEQ.js";
|
|
36
|
+
import "./chunk-BUFRZSMM.js";
|
|
37
|
+
import {
|
|
38
|
+
editBlockReason,
|
|
39
|
+
editorToolContext
|
|
40
|
+
} from "./chunk-PL5PW4HW.js";
|
|
41
|
+
import "./chunk-HVSKKQ6A.js";
|
|
42
|
+
import "./chunk-V55TRMJK.js";
|
|
43
|
+
import "./chunk-L4GISLYR.js";
|
|
44
|
+
import "./chunk-F7YP4K43.js";
|
|
45
|
+
import "./chunk-VCQKXTSJ.js";
|
|
46
|
+
import "./chunk-PEJWXGQC.js";
|
|
47
|
+
import "./chunk-XRQKZWVI.js";
|
|
48
|
+
import {
|
|
49
|
+
buildDesignContext,
|
|
50
|
+
joinWithin
|
|
51
|
+
} from "./chunk-GRK5TBXU.js";
|
|
52
|
+
import "./chunk-JFJ3HQUH.js";
|
|
53
|
+
import "./chunk-IT56AOP2.js";
|
|
54
|
+
import "./chunk-ZLYTVR5V.js";
|
|
55
|
+
import {
|
|
56
|
+
allTools,
|
|
57
|
+
getTool,
|
|
58
|
+
runTool,
|
|
59
|
+
toolSpecs
|
|
60
|
+
} from "./chunk-Z74EQ5OF.js";
|
|
61
|
+
import {
|
|
62
|
+
external_exports
|
|
63
|
+
} from "./chunk-IX7HAFDY.js";
|
|
64
|
+
import {
|
|
65
|
+
provideAgentCapability
|
|
66
|
+
} from "./chunk-DS2WBYV3.js";
|
|
67
|
+
import {
|
|
68
|
+
defineCommand
|
|
69
|
+
} from "./chunk-ZF2EYBXY.js";
|
|
70
|
+
import "./chunk-5K4KHDXE.js";
|
|
71
|
+
import "./chunk-JUHREBH6.js";
|
|
72
|
+
import "./chunk-FXGQC6EO.js";
|
|
73
|
+
import "./chunk-BGWFCJM3.js";
|
|
74
|
+
import "./chunk-YEKG65KC.js";
|
|
75
|
+
import "./chunk-BF66SQUV.js";
|
|
76
|
+
import "./chunk-EATT7YGW.js";
|
|
77
|
+
import "./chunk-I5KO7Z3V.js";
|
|
78
|
+
import "./chunk-WGPGWKOM.js";
|
|
79
|
+
import "./chunk-PQKEBND4.js";
|
|
80
|
+
import "./chunk-KLL6R7TS.js";
|
|
81
|
+
import "./chunk-MSZEYXS6.js";
|
|
82
|
+
import {
|
|
83
|
+
HYPERY_PAYMENT_SOURCE_HEADER,
|
|
84
|
+
paymentSourceHeaders
|
|
85
|
+
} from "./chunk-2GN7LJKB.js";
|
|
86
|
+
import {
|
|
87
|
+
aiAvailability,
|
|
88
|
+
effectiveChatModel,
|
|
89
|
+
useAiStore
|
|
90
|
+
} from "./chunk-SUTZWEBK.js";
|
|
91
|
+
import "./chunk-B44HAJ23.js";
|
|
92
|
+
import "./chunk-RYLHP2O6.js";
|
|
93
|
+
import "./chunk-KBKUIFSG.js";
|
|
94
|
+
import "./chunk-GKJ4R7AO.js";
|
|
95
|
+
import "./chunk-XSW6GOER.js";
|
|
96
|
+
import "./chunk-XSCQ664G.js";
|
|
97
|
+
import {
|
|
98
|
+
activeHyperyTeamId
|
|
99
|
+
} from "./chunk-AYKZUUKR.js";
|
|
100
|
+
import "./chunk-D3CLCZGW.js";
|
|
101
|
+
import "./chunk-VPTV5SAT.js";
|
|
102
|
+
import "./chunk-MB62O5QU.js";
|
|
103
|
+
import "./chunk-VZZISHR7.js";
|
|
104
|
+
import "./chunk-DOLFFITQ.js";
|
|
105
|
+
import "./chunk-YMNCL7HL.js";
|
|
106
|
+
import "./chunk-N5JZDV55.js";
|
|
107
|
+
import "./chunk-D4Z4GQVA.js";
|
|
108
|
+
import {
|
|
109
|
+
useEditorStore
|
|
110
|
+
} from "./chunk-SWGNCLE6.js";
|
|
111
|
+
import "./chunk-JVFT5JCN.js";
|
|
112
|
+
import "./chunk-OPKP7PLB.js";
|
|
113
|
+
import "./chunk-R42VU24I.js";
|
|
114
|
+
import "./chunk-RTBJUWEE.js";
|
|
115
|
+
import "./chunk-2X24SBJF.js";
|
|
116
|
+
import "./chunk-YI6INFCC.js";
|
|
117
|
+
import "./chunk-4VSNXAMJ.js";
|
|
118
|
+
import "./chunk-Y4HZT6ZK.js";
|
|
119
|
+
import "./chunk-GTV7PTZN.js";
|
|
120
|
+
import "./chunk-4TMQFC7N.js";
|
|
121
|
+
import "./chunk-WJ5AENMU.js";
|
|
122
|
+
import "./chunk-F7ZJLILS.js";
|
|
123
|
+
import "./chunk-OYHB5HHD.js";
|
|
124
|
+
import "./chunk-YOPRKOI2.js";
|
|
125
|
+
import "./chunk-5X5P6J5E.js";
|
|
126
|
+
import "./chunk-VV5R25FM.js";
|
|
127
|
+
import "./chunk-5S6BIAKH.js";
|
|
128
|
+
import "./chunk-GWD6TTLU.js";
|
|
129
|
+
import "./chunk-YFRH4VFJ.js";
|
|
130
|
+
import "./chunk-LZT24WFD.js";
|
|
131
|
+
import "./chunk-CIDLHLQA.js";
|
|
132
|
+
import {
|
|
133
|
+
HYPERY_GATEWAY_URL,
|
|
134
|
+
accessToken
|
|
135
|
+
} from "./chunk-SWATOWQ7.js";
|
|
136
|
+
import "./chunk-DI5RJPOO.js";
|
|
137
|
+
import {
|
|
138
|
+
create
|
|
139
|
+
} from "./chunk-RF3OTYGM.js";
|
|
140
|
+
import "./chunk-5RRJ3OUK.js";
|
|
141
|
+
import "./chunk-R76Q2NXH.js";
|
|
142
|
+
import "./chunk-LOK7CTO5.js";
|
|
143
|
+
import {
|
|
144
|
+
ToolError,
|
|
145
|
+
registerCommand
|
|
146
|
+
} from "./chunk-C6TKCQIN.js";
|
|
147
|
+
import "./chunk-OHUQUVGR.js";
|
|
148
|
+
import "./chunk-U5TNF4FD.js";
|
|
149
|
+
import "./chunk-FLIR6YUB.js";
|
|
150
|
+
import "./chunk-WHGSFSSY.js";
|
|
151
|
+
import "./chunk-477EUI4Z.js";
|
|
152
|
+
import "./chunk-P2NW47YG.js";
|
|
153
|
+
import "./chunk-4RTUOSBF.js";
|
|
154
|
+
import "./chunk-HKPI7735.js";
|
|
155
|
+
import "./chunk-KEGQKDIY.js";
|
|
156
|
+
import "./chunk-FDDIEIJD.js";
|
|
157
|
+
import "./chunk-P2CEVYHS.js";
|
|
158
|
+
import "./chunk-OFALULEO.js";
|
|
159
|
+
import "./chunk-3IQVFRRW.js";
|
|
160
|
+
import "./chunk-2BJLDUMY.js";
|
|
161
|
+
import "./chunk-GCTZIUSA.js";
|
|
162
|
+
import "./chunk-DED42YET.js";
|
|
163
|
+
import "./chunk-OVATAAFZ.js";
|
|
164
|
+
import "./chunk-R4YXAIS5.js";
|
|
165
|
+
import "./chunk-HTNGQQJV.js";
|
|
166
|
+
import "./chunk-FMHTQQRL.js";
|
|
167
|
+
import "./chunk-WCQYAGVV.js";
|
|
168
|
+
import "./chunk-LUSB47O4.js";
|
|
169
|
+
import "./chunk-KS7RULOR.js";
|
|
170
|
+
import "./chunk-CXP33D4N.js";
|
|
171
|
+
import "./chunk-PEXPNSUR.js";
|
|
172
|
+
import "./chunk-H2DBFJIM.js";
|
|
173
|
+
import "./chunk-CZWWQUEW.js";
|
|
174
|
+
import "./chunk-FRSIJWK3.js";
|
|
175
|
+
import "./chunk-UR5Y7MYO.js";
|
|
176
|
+
import "./chunk-6D2O4HUZ.js";
|
|
177
|
+
import "./chunk-7MLAZLEA.js";
|
|
178
|
+
import "./chunk-CLCVMEVY.js";
|
|
179
|
+
import "./chunk-7DX7JFC2.js";
|
|
180
|
+
import "./chunk-CD6X34SS.js";
|
|
181
|
+
import "./chunk-K6YHHLVZ.js";
|
|
182
|
+
import "./chunk-JZRYCJJG.js";
|
|
183
|
+
import "./chunk-W54W6D2B.js";
|
|
184
|
+
import "./chunk-6UXJBGEV.js";
|
|
185
|
+
import "./chunk-7UUZ6SRB.js";
|
|
186
|
+
import "./chunk-HFAX4VOH.js";
|
|
187
|
+
import "./chunk-HX5HYI3E.js";
|
|
188
|
+
import "./chunk-KMCXH26V.js";
|
|
189
|
+
import "./chunk-N7QSO55N.js";
|
|
190
|
+
import "./chunk-5FZ7QVYK.js";
|
|
191
|
+
import "./chunk-J63IETAC.js";
|
|
192
|
+
import "./chunk-BPKBRYSV.js";
|
|
193
|
+
import "./chunk-AVWA3JAF.js";
|
|
194
|
+
import "./chunk-QBTI2CGL.js";
|
|
195
|
+
import "./chunk-RKNQON7E.js";
|
|
196
|
+
import "./chunk-2366MPHZ.js";
|
|
197
|
+
import "./chunk-XLZMVQKY.js";
|
|
198
|
+
import "./chunk-MOYZOWIX.js";
|
|
199
|
+
import "./chunk-POJF2G5B.js";
|
|
200
|
+
import "./chunk-6QLWNWJX.js";
|
|
201
|
+
import "./chunk-PV7ZTM3F.js";
|
|
202
|
+
import "./chunk-PK2RCLDC.js";
|
|
203
|
+
import "./chunk-AWLIH4CH.js";
|
|
204
|
+
import "./chunk-TL6ZGIAR.js";
|
|
205
|
+
import "./chunk-44T3H5XM.js";
|
|
206
|
+
import "./chunk-UCJNEBYZ.js";
|
|
207
|
+
import "./chunk-SQ7USC3X.js";
|
|
208
|
+
import "./chunk-H2AUNFWD.js";
|
|
209
|
+
import "./chunk-Y7IUJPOM.js";
|
|
210
|
+
import "./chunk-WXW7JTA5.js";
|
|
211
|
+
import "./chunk-PLZVHGZM.js";
|
|
212
|
+
import "./chunk-TOWH6B7C.js";
|
|
213
|
+
import "./chunk-UPLDJXNZ.js";
|
|
214
|
+
import "./chunk-Z7PK7AWN.js";
|
|
215
|
+
import "./chunk-PYD5VOKT.js";
|
|
216
|
+
import "./chunk-DJ5KLJ7A.js";
|
|
217
|
+
import "./chunk-JJR7HAHO.js";
|
|
218
|
+
import "./chunk-LBJI53SG.js";
|
|
219
|
+
import "./chunk-EHOEZ34A.js";
|
|
220
|
+
import "./chunk-NHZNJXF7.js";
|
|
221
|
+
import "./chunk-GZT3V3ES.js";
|
|
222
|
+
import "./chunk-42RPNV3C.js";
|
|
223
|
+
import "./chunk-MCISMRZH.js";
|
|
224
|
+
import "./chunk-QQBWWMWJ.js";
|
|
225
|
+
import {
|
|
226
|
+
AI_LIMITS,
|
|
227
|
+
init_limits,
|
|
228
|
+
str
|
|
229
|
+
} from "./chunk-2R2YRFWA.js";
|
|
230
|
+
import "./chunk-3QZWRIZ6.js";
|
|
231
|
+
import "./chunk-E3H2BGGZ.js";
|
|
232
|
+
import "./chunk-QPFUGO5I.js";
|
|
233
|
+
import "./chunk-LBZ5HG2N.js";
|
|
234
|
+
import "./chunk-L526ZU42.js";
|
|
235
|
+
import "./chunk-X37C4LF3.js";
|
|
236
|
+
import "./chunk-XJSHWKAU.js";
|
|
237
|
+
import "./chunk-ZD6ILV7H.js";
|
|
238
|
+
import "./chunk-GFCHJUD7.js";
|
|
239
|
+
import "./chunk-NUZY5B5V.js";
|
|
240
|
+
import "./chunk-H7H4KGB3.js";
|
|
241
|
+
import "./chunk-6PJXTO2W.js";
|
|
242
|
+
import "./chunk-FJ72XXMM.js";
|
|
243
|
+
import {
|
|
244
|
+
init_define_POPCRAFT_COMPONENT_IDS
|
|
245
|
+
} from "./chunk-POJ5P6WK.js";
|
|
246
|
+
import "./chunk-LJSVREWM.js";
|
|
247
|
+
|
|
248
|
+
// lib/agent/runner.ts
|
|
249
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
250
|
+
|
|
251
|
+
// lib/agent/gateway.ts
|
|
252
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
253
|
+
|
|
254
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
255
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
256
|
+
|
|
257
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/hypery-model.js
|
|
258
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
259
|
+
var delay = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
|
|
260
|
+
var utf8Complete = ((b) => {
|
|
261
|
+
if (!Array.isArray(b)) return null;
|
|
262
|
+
const n = b.length;
|
|
263
|
+
for (let i = n - 1; i >= Math.max(0, n - 3); i--) {
|
|
264
|
+
const c = b[i];
|
|
265
|
+
if ((c & 192) === 128) continue;
|
|
266
|
+
const len = c <= 127 ? 1 : c >= 194 && c <= 223 ? 2 : c >= 224 && c <= 239 ? 3 : c >= 240 && c <= 244 ? 4 : 1;
|
|
267
|
+
return n - i < len ? i : n;
|
|
268
|
+
}
|
|
269
|
+
return n;
|
|
270
|
+
});
|
|
271
|
+
var utf8Decode = ((b) => typeof b === "string" ? b : Array.isArray(b) ? new TextDecoder().decode(Uint8Array.from(b)) : null);
|
|
272
|
+
var MAX_REQUEST_BYTES = 44e5;
|
|
273
|
+
var DEFAULT_IDLE_TIMEOUT_MS = 18e4;
|
|
274
|
+
var HYPERY_TEAM_HEADER = "x-hypery-active-organization-id";
|
|
275
|
+
var HYPERY_PAYMENT_SOURCE_HEADER2 = "x-hypery-payment-source";
|
|
276
|
+
function agentModelError(message, code, status) {
|
|
277
|
+
{
|
|
278
|
+
return { name: "AgentModelError", message, code: code ?? "ai_upstream", status: ((__v) => __v == null ? "null" : typeof __v)(status) === "number" ? status : 502 };
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
async function resolve(v) {
|
|
282
|
+
{
|
|
283
|
+
if (((__v) => __v == null ? "null" : typeof __v)(v) === "function") {
|
|
284
|
+
return await (v() ?? null);
|
|
285
|
+
}
|
|
286
|
+
return v ?? null;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function errorCodeFor(status, payload) {
|
|
290
|
+
{
|
|
291
|
+
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") {
|
|
292
|
+
return payload.error.code;
|
|
293
|
+
}
|
|
294
|
+
if (status === 401) {
|
|
295
|
+
return "ai_reauth";
|
|
296
|
+
}
|
|
297
|
+
if (status === 402) {
|
|
298
|
+
return "ai_credits";
|
|
299
|
+
}
|
|
300
|
+
if (status === 403) {
|
|
301
|
+
return "ai_scope";
|
|
302
|
+
}
|
|
303
|
+
if (status === 429) {
|
|
304
|
+
return "ai_rate_limited";
|
|
305
|
+
}
|
|
306
|
+
return "ai_upstream";
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
function streamErrorMessage(payload, fallback) {
|
|
310
|
+
{
|
|
311
|
+
let otherwise = fallback ?? "The AI request failed.";
|
|
312
|
+
if (payload == null || ((__v) => __v == null ? "null" : typeof __v)(payload) !== "object") {
|
|
313
|
+
return otherwise;
|
|
314
|
+
}
|
|
315
|
+
let err = payload.error ?? null;
|
|
316
|
+
if (((__v) => __v == null ? "null" : typeof __v)(err) === "string" && (err.trim() ?? null) !== "") {
|
|
317
|
+
return err;
|
|
318
|
+
}
|
|
319
|
+
let message = err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" ? err.message ?? null : null;
|
|
320
|
+
if (message == null) {
|
|
321
|
+
message = payload.message ?? null;
|
|
322
|
+
}
|
|
323
|
+
return ((__v) => __v == null ? "null" : typeof __v)(message) === "string" && (message.trim() ?? null) !== "" ? message : otherwise;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
function createStreamAccumulator() {
|
|
327
|
+
{
|
|
328
|
+
let buffer = "";
|
|
329
|
+
let text = "";
|
|
330
|
+
let reasoning = "";
|
|
331
|
+
let sawDone = false;
|
|
332
|
+
let calls = /* @__PURE__ */ new Map() ?? null;
|
|
333
|
+
let order = [];
|
|
334
|
+
return { push: (part) => {
|
|
335
|
+
{
|
|
336
|
+
buffer = buffer + part;
|
|
337
|
+
let out = [];
|
|
338
|
+
let nl = buffer.indexOf("\n") ?? null;
|
|
339
|
+
while (nl >= 0) {
|
|
340
|
+
let line = (buffer.slice(0, nl) ?? null).trim() ?? null;
|
|
341
|
+
buffer = buffer.slice(nl + 1) ?? null;
|
|
342
|
+
nl = buffer.indexOf("\n") ?? null;
|
|
343
|
+
if (!(line.startsWith("data:") ?? null)) {
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
let data = (line.slice(5) ?? null).trim() ?? null;
|
|
347
|
+
if (data === "") {
|
|
348
|
+
continue;
|
|
349
|
+
}
|
|
350
|
+
if (data === "[DONE]") {
|
|
351
|
+
sawDone = true;
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
let chunk = null;
|
|
355
|
+
try {
|
|
356
|
+
{
|
|
357
|
+
chunk = JSON.parse(data) ?? null;
|
|
358
|
+
}
|
|
359
|
+
} catch (e) {
|
|
360
|
+
{
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
if (chunk == null || ((__v) => __v == null ? "null" : typeof __v)(chunk) !== "object") {
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
367
|
+
if (chunk.error) {
|
|
368
|
+
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";
|
|
369
|
+
throw agentModelError(streamErrorMessage(chunk, null) ?? null, code, 502) ?? null;
|
|
370
|
+
}
|
|
371
|
+
let choice = (Array.isArray(chunk.choices) ?? null) && chunk.choices.length > 0 ? chunk.choices[0] ?? null : null;
|
|
372
|
+
let delta = choice != null ? choice.delta ?? null : null;
|
|
373
|
+
if (delta == null) {
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
376
|
+
if (((__v) => __v == null ? "null" : typeof __v)(delta.content) === "string" && delta.content !== "") {
|
|
377
|
+
text = text + delta.content;
|
|
378
|
+
out.push({ textDelta: delta.content }) ?? null;
|
|
379
|
+
}
|
|
380
|
+
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 : "";
|
|
381
|
+
if (r !== "") {
|
|
382
|
+
reasoning = reasoning + r;
|
|
383
|
+
out.push({ reasoningDelta: r }) ?? null;
|
|
384
|
+
}
|
|
385
|
+
for (const tc of Array.isArray(delta.tool_calls) ?? null ? delta.tool_calls : []) {
|
|
386
|
+
let i = ((__v) => __v == null ? "null" : typeof __v)(tc.index) === "number" ? tc.index : order.length > 0 ? order[order.length - 1] ?? null : 0;
|
|
387
|
+
if (!(calls.has(i) ?? null)) {
|
|
388
|
+
calls.set(i, { id: null, name: "", arguments: "" }) ?? null;
|
|
389
|
+
order.push(i) ?? null;
|
|
390
|
+
}
|
|
391
|
+
let call = calls.get(i) ?? null;
|
|
392
|
+
if (((__v) => __v == null ? "null" : typeof __v)(tc.id) === "string" && tc.id !== "") {
|
|
393
|
+
call.id = tc.id;
|
|
394
|
+
}
|
|
395
|
+
let f = tc["function"] ?? null ?? null;
|
|
396
|
+
if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.name) === "string") {
|
|
397
|
+
call.name = call.name + f.name;
|
|
398
|
+
}
|
|
399
|
+
if (f != null && ((__v) => __v == null ? "null" : typeof __v)(f.arguments) === "string" && f.arguments !== "") {
|
|
400
|
+
call.arguments = call.arguments + f.arguments;
|
|
401
|
+
out.push({ toolProgress: { index: i, name: call.name, bytes: call.arguments.length, arguments: call.arguments } }) ?? null;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return out;
|
|
406
|
+
}
|
|
407
|
+
}, result: () => {
|
|
408
|
+
{
|
|
409
|
+
let toolCalls = [];
|
|
410
|
+
let n = 0;
|
|
411
|
+
for (const i of order) {
|
|
412
|
+
let c = calls.get(i) ?? null;
|
|
413
|
+
if (c.name !== "") {
|
|
414
|
+
toolCalls.push({ id: c.id ?? "call_" + (String(n) ?? null), name: c.name, arguments: c.arguments }) ?? null;
|
|
415
|
+
}
|
|
416
|
+
n = n + 1;
|
|
417
|
+
}
|
|
418
|
+
return { text, reasoning, sawDone, toolCalls };
|
|
419
|
+
}
|
|
420
|
+
} };
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function appendBytes(pending, chunk) {
|
|
424
|
+
{
|
|
425
|
+
let out = pending.slice() ?? null;
|
|
426
|
+
let i = 0;
|
|
427
|
+
while (i < chunk.length) {
|
|
428
|
+
out.push(chunk[i] ?? null) ?? null;
|
|
429
|
+
i = i + 1;
|
|
430
|
+
}
|
|
431
|
+
return out;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
function callHook(hooks, name, value) {
|
|
435
|
+
{
|
|
436
|
+
if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
let h = hooks[name] ?? null;
|
|
440
|
+
if (((__v) => __v == null ? "null" : typeof __v)(h) === "function") {
|
|
441
|
+
h(value) ?? null;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
function createHyperyModel(opts) {
|
|
446
|
+
{
|
|
447
|
+
let idleMs = ((__v) => __v == null ? "null" : typeof __v)(opts.idleTimeoutMs) === "number" ? opts.idleTimeoutMs : DEFAULT_IDLE_TIMEOUT_MS;
|
|
448
|
+
let limit = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRequestBytes) === "number" ? opts.maxRequestBytes : MAX_REQUEST_BYTES;
|
|
449
|
+
let base = ((__v) => __v == null ? "null" : typeof __v)(opts.gatewayUrl) === "string" && opts.gatewayUrl !== "" ? opts.gatewayUrl : "https://hypery.ai";
|
|
450
|
+
if (base.endsWith("/") ?? null) {
|
|
451
|
+
base = base.slice(0, base.length - 1) ?? null;
|
|
452
|
+
}
|
|
453
|
+
return async (messages, tools, hooks, signal, req = null) => {
|
|
454
|
+
{
|
|
455
|
+
let token = await (resolve(opts.token) ?? null);
|
|
456
|
+
if (((__v) => __v == null ? "null" : typeof __v)(token) !== "string" || token === "") {
|
|
457
|
+
throw agentModelError("Sign in to Hypery to use the agent.", "ai_reauth", 401) ?? null;
|
|
458
|
+
}
|
|
459
|
+
let hasReq = req != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object";
|
|
460
|
+
let model = hasReq && ((__v) => __v == null ? "null" : typeof __v)(req.model) === "string" && req.model !== "" ? req.model : await (resolve(opts.model) ?? null);
|
|
461
|
+
let effort = hasReq && ((__v) => __v == null ? "null" : typeof __v)(req.effort) === "string" ? req.effort : await (resolve(opts.effort) ?? null);
|
|
462
|
+
let team = await (resolve(opts.team) ?? null);
|
|
463
|
+
let paymentSource = await (resolve(opts.paymentSource) ?? null);
|
|
464
|
+
let hasTools = (Array.isArray(tools) ?? null) && tools.length > 0;
|
|
465
|
+
let request = { model, messages, stream: true, max_tokens: ((__v) => __v == null ? "null" : typeof __v)(opts.maxTokens) === "number" ? opts.maxTokens : hasTools ? 16384 : 4096 };
|
|
466
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.temperature) === "number") {
|
|
467
|
+
request.temperature = opts.temperature;
|
|
468
|
+
}
|
|
469
|
+
if (((__v) => __v == null ? "null" : typeof __v)(effort) === "string" && effort !== "") {
|
|
470
|
+
request.reasoning = { effort };
|
|
471
|
+
}
|
|
472
|
+
if (hasTools) {
|
|
473
|
+
request.tools = tools;
|
|
474
|
+
let choice = hasReq ? req.toolChoice ?? null : null;
|
|
475
|
+
request.tool_choice = choice != null ? choice : "auto";
|
|
476
|
+
}
|
|
477
|
+
let body = JSON.stringify(request) ?? null;
|
|
478
|
+
if (body.length > limit) {
|
|
479
|
+
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;
|
|
480
|
+
}
|
|
481
|
+
let headers = { Authorization: "Bearer " + token, "Content-Type": "application/json", Accept: "text/event-stream" };
|
|
482
|
+
if (((__v) => __v == null ? "null" : typeof __v)(team) === "string" && team !== "") {
|
|
483
|
+
headers[HYPERY_TEAM_HEADER] = team;
|
|
484
|
+
}
|
|
485
|
+
if (((__v) => __v == null ? "null" : typeof __v)(paymentSource) === "string" && paymentSource !== "") {
|
|
486
|
+
headers[HYPERY_PAYMENT_SOURCE_HEADER2] = paymentSource;
|
|
487
|
+
}
|
|
488
|
+
let init = { method: "POST", headers, body };
|
|
489
|
+
if (signal != null && ((__v) => __v == null ? "null" : typeof __v)(signal.addEventListener) === "function") {
|
|
490
|
+
init.signal = signal;
|
|
491
|
+
}
|
|
492
|
+
let res = null;
|
|
493
|
+
try {
|
|
494
|
+
{
|
|
495
|
+
res = await (opts.fetch(base + "/api/v1/chat/completions", init) ?? null);
|
|
496
|
+
}
|
|
497
|
+
} catch (err) {
|
|
498
|
+
{
|
|
499
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && err.name === "AbortError") {
|
|
500
|
+
throw err;
|
|
501
|
+
}
|
|
502
|
+
throw agentModelError("Could not reach Hypery. Check your connection.", "network", 0) ?? null;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
if (res.ok !== true || res.body == null) {
|
|
506
|
+
let text = "";
|
|
507
|
+
try {
|
|
508
|
+
{
|
|
509
|
+
text = await (res.text() ?? null);
|
|
510
|
+
}
|
|
511
|
+
} catch (e) {
|
|
512
|
+
{
|
|
513
|
+
text = "";
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
let payload = text;
|
|
517
|
+
try {
|
|
518
|
+
{
|
|
519
|
+
payload = JSON.parse(text) ?? null;
|
|
520
|
+
}
|
|
521
|
+
} catch (e) {
|
|
522
|
+
{
|
|
523
|
+
payload = text;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
throw agentModelError(streamErrorMessage(payload, "The AI request failed (" + (String(res.status) ?? null) + ").") ?? null, errorCodeFor(res.status, payload) ?? null, res.status) ?? null;
|
|
527
|
+
}
|
|
528
|
+
let acc = createStreamAccumulator() ?? null;
|
|
529
|
+
let reader = res.body.getReader() ?? null;
|
|
530
|
+
let pending = [];
|
|
531
|
+
let stopReading = () => {
|
|
532
|
+
{
|
|
533
|
+
if (((__v) => __v == null ? "null" : typeof __v)(reader.cancel) === "function") {
|
|
534
|
+
try {
|
|
535
|
+
{
|
|
536
|
+
reader.cancel() ?? null;
|
|
537
|
+
}
|
|
538
|
+
} catch (e) {
|
|
539
|
+
{
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
while (true) {
|
|
546
|
+
if (signal != null && signal.aborted === true) {
|
|
547
|
+
stopReading() ?? null;
|
|
548
|
+
throw { name: "AbortError", message: "The request was stopped." };
|
|
549
|
+
}
|
|
550
|
+
let next = await (Promise.race([reader.read() ?? null, delay(idleMs) ?? null]) ?? null);
|
|
551
|
+
if (next == null) {
|
|
552
|
+
stopReading() ?? null;
|
|
553
|
+
throw agentModelError("The model stopped responding.", "ai_timeout", 504) ?? null;
|
|
554
|
+
}
|
|
555
|
+
if (next.done === true) {
|
|
556
|
+
break;
|
|
557
|
+
}
|
|
558
|
+
if (next.value == null) {
|
|
559
|
+
continue;
|
|
560
|
+
}
|
|
561
|
+
let bytes = appendBytes(pending, next.value) ?? null;
|
|
562
|
+
let whole = utf8Complete(bytes) ?? null;
|
|
563
|
+
pending = bytes.slice(whole) ?? null;
|
|
564
|
+
let events = [];
|
|
565
|
+
try {
|
|
566
|
+
{
|
|
567
|
+
events = acc.push(utf8Decode(bytes.slice(0, whole) ?? null) ?? null) ?? null;
|
|
568
|
+
}
|
|
569
|
+
} catch (err) {
|
|
570
|
+
{
|
|
571
|
+
stopReading() ?? null;
|
|
572
|
+
throw err;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
for (const e of events) {
|
|
576
|
+
if (((__v) => __v == null ? "null" : typeof __v)(e.textDelta) === "string") {
|
|
577
|
+
callHook(hooks, "onTextDelta", e.textDelta) ?? null;
|
|
578
|
+
}
|
|
579
|
+
if (((__v) => __v == null ? "null" : typeof __v)(e.reasoningDelta) === "string") {
|
|
580
|
+
callHook(hooks, "onReasoningDelta", e.reasoningDelta) ?? null;
|
|
581
|
+
}
|
|
582
|
+
if (e.toolProgress != null) {
|
|
583
|
+
callHook(hooks, "onToolProgress", e.toolProgress) ?? null;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
if (pending.length > 0) {
|
|
588
|
+
acc.push(utf8Decode(pending) ?? null) ?? null;
|
|
589
|
+
}
|
|
590
|
+
acc.push("\n") ?? null;
|
|
591
|
+
let r = acc.result() ?? null;
|
|
592
|
+
if (!r.sawDone && r.text === "" && r.toolCalls.length === 0) {
|
|
593
|
+
throw agentModelError("The response was cut off before it started. Try again.", "ai_upstream", 502) ?? null;
|
|
594
|
+
}
|
|
595
|
+
return { text: r.text, reasoning: r.reasoning, toolCalls: r.toolCalls };
|
|
596
|
+
}
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
602
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
603
|
+
|
|
604
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
605
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
606
|
+
|
|
607
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/advisor.js
|
|
608
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
609
|
+
|
|
610
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/roles.js
|
|
611
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
612
|
+
var MODEL_ROLES = ["lead", "swarm", "advisor", "router"];
|
|
613
|
+
function isModelRole(v) {
|
|
614
|
+
{
|
|
615
|
+
return ((__v) => __v == null ? "null" : typeof __v)(v) === "string" && (MODEL_ROLES.includes(v) ?? null);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function roleOfProfileModel(model) {
|
|
619
|
+
{
|
|
620
|
+
if ((model ?? null) == null || model === "" || model === "inherit") {
|
|
621
|
+
return "lead";
|
|
622
|
+
}
|
|
623
|
+
if (model === "fast") {
|
|
624
|
+
return "swarm";
|
|
625
|
+
}
|
|
626
|
+
if (isModelRole(model) ?? null) {
|
|
627
|
+
return model;
|
|
628
|
+
}
|
|
629
|
+
return null;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
function resolveCatalogModel(wanted, fallback, catalog) {
|
|
633
|
+
{
|
|
634
|
+
if (!(Array.isArray(catalog) ?? null) || catalog.length === 0) {
|
|
635
|
+
return wanted;
|
|
636
|
+
}
|
|
637
|
+
let ids = new Set(catalog.map((m) => {
|
|
638
|
+
{
|
|
639
|
+
return ((__v) => __v == null ? "null" : typeof __v)(m) === "string" ? m : m != null && ((__v) => __v == null ? "null" : typeof __v)(m) === "object" ? m.id : "";
|
|
640
|
+
}
|
|
641
|
+
}) ?? null) ?? null;
|
|
642
|
+
if (ids.has(wanted) ?? null) {
|
|
643
|
+
return wanted;
|
|
644
|
+
}
|
|
645
|
+
for (const f of fallback ?? []) {
|
|
646
|
+
if (ids.has(f) ?? null) {
|
|
647
|
+
return f;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
return wanted;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
function resolveRole(role, roles, catalog) {
|
|
654
|
+
{
|
|
655
|
+
let spec = roles != null && ((__v) => __v == null ? "null" : typeof __v)(roles) === "object" ? roles[role] ?? null ?? null : null;
|
|
656
|
+
if (spec == null || ((__v) => __v == null ? "null" : typeof __v)(spec.model) !== "string" || spec.model === "") {
|
|
657
|
+
return null;
|
|
658
|
+
}
|
|
659
|
+
return { model: resolveCatalogModel(spec.model, spec.fallback ?? null, catalog) ?? null, effort: spec.effort ?? null, fallback: spec.fallback ?? null };
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
function mergeRoles(roles, overrides) {
|
|
663
|
+
{
|
|
664
|
+
let base = roles != null && ((__v) => __v == null ? "null" : typeof __v)(roles) === "object" ? roles : {};
|
|
665
|
+
if ((overrides ?? null) == null || ((__v) => __v == null ? "null" : typeof __v)(overrides) !== "object") {
|
|
666
|
+
return base;
|
|
667
|
+
}
|
|
668
|
+
let out = { ...base };
|
|
669
|
+
for (const r of MODEL_ROLES) {
|
|
670
|
+
let o = overrides[r] ?? null ?? null;
|
|
671
|
+
if (o == null) {
|
|
672
|
+
continue;
|
|
673
|
+
}
|
|
674
|
+
out[r] = ((__v) => __v == null ? "null" : typeof __v)(o) === "string" ? { ...base[r] ?? null ?? {}, model: o } : { ...base[r] ?? null ?? {}, ...o };
|
|
675
|
+
}
|
|
676
|
+
return out;
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
function roleModel(callModel, spec) {
|
|
680
|
+
{
|
|
681
|
+
return async (messages, tools, hooks = null, signal = null, req = null) => {
|
|
682
|
+
{
|
|
683
|
+
let r = (req ?? null) != null && ((__v) => __v == null ? "null" : typeof __v)(req) === "object" ? req : {};
|
|
684
|
+
let merged = { ...r, model: r.model ?? spec.model, effort: r.effort ?? spec.effort ?? null };
|
|
685
|
+
return await (callModel(messages, tools, hooks, signal, merged) ?? null);
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/advisor.js
|
|
692
|
+
var REPEATED_ERROR_COUNT = 2;
|
|
693
|
+
var ADVISOR_PROMPT = ["You are the advisor to a coding agent (the lead). You read its whole session and give it short, specific advice. You never write code or call tools yourself.", 'Answer with JSON only: {"verdict": "ok" | "revise", "advice": ["..."]}. At most 4 advice items, each one sentence, concrete (files, commands, the likely cause).', 'Use "ok" with no advice when the lead is on track \u2014 do not add advice for its own sake.'].join("\n") ?? null;
|
|
694
|
+
var TRIGGER_ASK = { plan: "The lead is about to plan. Point out anything it should know before choosing an approach.", done: "The lead is about to say it is done. Check the work against the request: anything missing, wrong or unverified?", error: "The lead hit the same error again. Diagnose the likely cause and the next thing to try.", ask: "The lead asked for your advice." };
|
|
695
|
+
function contentText(c) {
|
|
696
|
+
{
|
|
697
|
+
if (((__v) => __v == null ? "null" : typeof __v)(c) === "string") {
|
|
698
|
+
return c;
|
|
699
|
+
}
|
|
700
|
+
if (Array.isArray(c) ?? null) {
|
|
701
|
+
return (c.map((p) => {
|
|
702
|
+
{
|
|
703
|
+
return ((__v) => __v == null ? "null" : typeof __v)(p.text) === "string" ? p.text : "[image]";
|
|
704
|
+
}
|
|
705
|
+
}) ?? null).join(" ") ?? null;
|
|
706
|
+
}
|
|
707
|
+
return "";
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
function renderTranscript(messages, maxChars) {
|
|
711
|
+
{
|
|
712
|
+
let lines = [];
|
|
713
|
+
for (const m of messages) {
|
|
714
|
+
let text = contentText(m.content) ?? null;
|
|
715
|
+
if (Array.isArray(m.tool_calls) ?? null) {
|
|
716
|
+
for (const c of m.tool_calls) {
|
|
717
|
+
text = text + "\n\u2192 " + (c["function"] ?? null).name + " " + (c["function"] ?? null).arguments;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
lines.push("[" + m.role + (((__v) => __v == null ? "null" : typeof __v)(m.name) === "string" ? " " + m.name : "") + "] " + text) ?? null;
|
|
721
|
+
}
|
|
722
|
+
let all = lines.join("\n\n") ?? null;
|
|
723
|
+
return all.length > maxChars ? "\u2026" + (all.slice(all.length - maxChars) ?? null) : all;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
function parseAdvice(text) {
|
|
727
|
+
{
|
|
728
|
+
let t = text.trim() ?? null;
|
|
729
|
+
let start = t.indexOf("{") ?? null;
|
|
730
|
+
let end = t.lastIndexOf("}") ?? null;
|
|
731
|
+
if (start >= 0 && end > start) {
|
|
732
|
+
try {
|
|
733
|
+
{
|
|
734
|
+
let j = JSON.parse(t.slice(start, end + 1) ?? null) ?? null;
|
|
735
|
+
let advice = Array.isArray(j.advice) ?? null ? j.advice.filter((a) => {
|
|
736
|
+
{
|
|
737
|
+
return ((__v) => __v == null ? "null" : typeof __v)(a) === "string" && (a.trim() ?? null) !== "";
|
|
738
|
+
}
|
|
739
|
+
}) ?? null : [];
|
|
740
|
+
return { verdict: j.verdict === "ok" ? "ok" : "revise", advice };
|
|
741
|
+
}
|
|
742
|
+
} catch (e) {
|
|
743
|
+
{
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
return { verdict: t === "" ? "ok" : "revise", advice: t === "" ? [] : [t] };
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
function createAdvisor(opts) {
|
|
751
|
+
{
|
|
752
|
+
let call = roleModel(opts.callModel, opts.spec) ?? null;
|
|
753
|
+
let maxCalls = ((__v) => __v == null ? "null" : typeof __v)(opts.maxCalls) === "number" ? opts.maxCalls : 8;
|
|
754
|
+
let maxChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxChars) === "number" ? opts.maxChars : 6e5;
|
|
755
|
+
let triggers = opts.triggers ?? {};
|
|
756
|
+
let calls = 0;
|
|
757
|
+
let tokensRead = 0;
|
|
758
|
+
let emit = (e) => {
|
|
759
|
+
{
|
|
760
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.onEvent) === "function") {
|
|
761
|
+
opts.onEvent(e) ?? null;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
return { stats: () => {
|
|
766
|
+
{
|
|
767
|
+
return { calls, tokensRead };
|
|
768
|
+
}
|
|
769
|
+
}, advise: async (req) => {
|
|
770
|
+
{
|
|
771
|
+
if ((triggers[req.trigger] ?? null) === false || calls >= maxCalls) {
|
|
772
|
+
return null;
|
|
773
|
+
}
|
|
774
|
+
let transcript = renderTranscript(req.messages, maxChars) ?? null;
|
|
775
|
+
calls = calls + 1;
|
|
776
|
+
tokensRead = tokensRead + (Math.ceil(transcript.length / 4) ?? null);
|
|
777
|
+
emit({ type: "advisor:call", trigger: req.trigger, model: opts.spec.model, calls, tokensRead }) ?? null;
|
|
778
|
+
let ask = (TRIGGER_ASK[req.trigger] ?? null) + (((__v) => __v == null ? "null" : typeof __v)(req.detail) === "string" && req.detail !== "" ? "\n\n" + req.detail : "");
|
|
779
|
+
let turn = null;
|
|
780
|
+
try {
|
|
781
|
+
{
|
|
782
|
+
turn = await (call([{ role: "system", content: ((__v) => __v == null ? "null" : typeof __v)(opts.guidance) === "string" && (opts.guidance.trim() ?? null) !== "" ? ADVISOR_PROMPT + "\n\nGuidance for this kind of task:\n" + (opts.guidance.trim() ?? null) : ADVISOR_PROMPT }, { role: "user", content: "The session so far:\n\n" + transcript + "\n\n---\n" + ask }], [], {}, null, null) ?? null);
|
|
783
|
+
}
|
|
784
|
+
} catch (err) {
|
|
785
|
+
{
|
|
786
|
+
return null;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
let parsed = parseAdvice(turn.text ?? "") ?? null;
|
|
790
|
+
emit({ type: "advisor:advice", trigger: req.trigger, model: opts.spec.model, calls, tokensRead, advice: parsed.advice, verdict: parsed.verdict }) ?? null;
|
|
791
|
+
if (parsed.verdict === "ok" || parsed.advice.length === 0) {
|
|
792
|
+
return null;
|
|
793
|
+
}
|
|
794
|
+
return "Advisor (" + req.trigger + "):\n" + ((parsed.advice.map((a) => {
|
|
795
|
+
{
|
|
796
|
+
return "\xBB " + a;
|
|
797
|
+
}
|
|
798
|
+
}) ?? null).join("\n") ?? null);
|
|
799
|
+
}
|
|
800
|
+
} };
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
function errorSignature(run) {
|
|
804
|
+
{
|
|
805
|
+
let s = (run.summary ?? "").toLowerCase() ?? null;
|
|
806
|
+
let out = "";
|
|
807
|
+
for (const ch of s) {
|
|
808
|
+
out = out + (ch >= "0" && ch <= "9" ? "#" : ch);
|
|
809
|
+
}
|
|
810
|
+
return run.name + ":" + (out.slice(0, 200) ?? null);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/context.js
|
|
815
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
816
|
+
var RENDER_TURN_PREFIX = "Result of ";
|
|
817
|
+
var KEEP_IMAGE_TURNS = 2;
|
|
818
|
+
function sizeOf(messages) {
|
|
819
|
+
{
|
|
820
|
+
return (JSON.stringify(messages) ?? null).length;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
function isRenderTurn(m) {
|
|
824
|
+
{
|
|
825
|
+
if (m.role !== "user" || !(Array.isArray(m.content) ?? null) || m.content.length === 0) {
|
|
826
|
+
return false;
|
|
827
|
+
}
|
|
828
|
+
let first = m.content[0] ?? null;
|
|
829
|
+
return first.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(first.text) === "string" && (first.text.startsWith(RENDER_TURN_PREFIX) ?? null);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
function countImages(parts) {
|
|
833
|
+
{
|
|
834
|
+
return (parts.filter((p) => {
|
|
835
|
+
{
|
|
836
|
+
return p.type === "image_url";
|
|
837
|
+
}
|
|
838
|
+
}) ?? null).length;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
function textOf(parts) {
|
|
842
|
+
{
|
|
843
|
+
return ((parts.filter((p) => {
|
|
844
|
+
{
|
|
845
|
+
return p.type === "text" && ((__v) => __v == null ? "null" : typeof __v)(p.text) === "string" && p.text !== "";
|
|
846
|
+
}
|
|
847
|
+
}) ?? null).map((p) => {
|
|
848
|
+
{
|
|
849
|
+
return p.text;
|
|
850
|
+
}
|
|
851
|
+
}) ?? null).join(" ") ?? null;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
function imagesLabel(n) {
|
|
855
|
+
{
|
|
856
|
+
return n === 1 ? "image" : (String(n) ?? null) + " images";
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
function pruneOldImages(messages, keep) {
|
|
860
|
+
{
|
|
861
|
+
let limit = ((__v) => __v == null ? "null" : typeof __v)(keep) === "number" ? keep : KEEP_IMAGE_TURNS;
|
|
862
|
+
let seen = 0;
|
|
863
|
+
let i = messages.length - 1;
|
|
864
|
+
while (i >= 0) {
|
|
865
|
+
let m = messages[i] ?? null;
|
|
866
|
+
if ((isRenderTurn(m) ?? null) && (countImages(m.content) ?? null) > 0) {
|
|
867
|
+
seen = seen + 1;
|
|
868
|
+
if (seen > limit) {
|
|
869
|
+
let note = (textOf(m.content) ?? null) + " [" + (imagesLabel(countImages(m.content) ?? null) ?? null) + " omitted: superseded by a later view.]";
|
|
870
|
+
messages[i] = { ...m, content: note.trim() ?? null };
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
i = i - 1;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
function fitImagesToBudget(messages, budget) {
|
|
878
|
+
{
|
|
879
|
+
if ((sizeOf(messages) ?? null) <= budget) {
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
let i = 0;
|
|
883
|
+
while (i < messages.length && (sizeOf(messages) ?? null) > budget) {
|
|
884
|
+
let m = messages[i] ?? null;
|
|
885
|
+
if (isRenderTurn(m) ?? null) {
|
|
886
|
+
let parts = m.content.slice() ?? null;
|
|
887
|
+
let dropped = 0;
|
|
888
|
+
let j = parts.length - 1;
|
|
889
|
+
while (j >= 0 && (sizeOf(messages) ?? null) > budget) {
|
|
890
|
+
if ((parts[j] ?? null).type === "image_url") {
|
|
891
|
+
parts.splice(j, 1) ?? null;
|
|
892
|
+
dropped = dropped + 1;
|
|
893
|
+
messages[i] = { ...m, content: parts.slice() ?? null };
|
|
894
|
+
}
|
|
895
|
+
j = j - 1;
|
|
896
|
+
}
|
|
897
|
+
if (dropped > 0) {
|
|
898
|
+
let label = dropped === 1 ? "1 image" : (String(dropped) ?? null) + " images";
|
|
899
|
+
let note = (textOf(parts) ?? null) + " [" + label + " omitted to keep the request under the size limit.]";
|
|
900
|
+
messages[i] = { ...m, content: note.trim() ?? null };
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
i = i + 1;
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
function safeTailStart(messages, want) {
|
|
908
|
+
{
|
|
909
|
+
let i = Math.max(1, messages.length - want) ?? null;
|
|
910
|
+
while (i < messages.length && (messages[i] ?? null).role === "tool") {
|
|
911
|
+
i = i + 1;
|
|
912
|
+
}
|
|
913
|
+
return i;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
async function compactTranscript(messages, opts) {
|
|
917
|
+
{
|
|
918
|
+
if ((sizeOf(messages) ?? null) <= opts.maxChars) {
|
|
919
|
+
return false;
|
|
920
|
+
}
|
|
921
|
+
let head = messages.length > 0 && (messages[0] ?? null).role === "system" ? 1 : 0;
|
|
922
|
+
let firstUser = -1;
|
|
923
|
+
let k = head;
|
|
924
|
+
while (k < messages.length && firstUser < 0) {
|
|
925
|
+
if ((messages[k] ?? null).role === "user") {
|
|
926
|
+
firstUser = k;
|
|
927
|
+
}
|
|
928
|
+
k = k + 1;
|
|
929
|
+
}
|
|
930
|
+
let keepFrom = firstUser >= 0 ? firstUser + 1 : head;
|
|
931
|
+
let tail = safeTailStart(messages, ((__v) => __v == null ? "null" : typeof __v)(opts.keepRecent) === "number" ? opts.keepRecent : 12) ?? null;
|
|
932
|
+
if (tail <= keepFrom) {
|
|
933
|
+
return false;
|
|
934
|
+
}
|
|
935
|
+
let dropped = messages.slice(keepFrom, tail) ?? null;
|
|
936
|
+
let summary = "";
|
|
937
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.summarize) === "function") {
|
|
938
|
+
try {
|
|
939
|
+
{
|
|
940
|
+
summary = await (opts.summarize(dropped) ?? null);
|
|
941
|
+
}
|
|
942
|
+
} catch (e) {
|
|
943
|
+
{
|
|
944
|
+
summary = "";
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
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.]";
|
|
949
|
+
messages.splice(keepFrom, dropped.length, { role: "user", content }) ?? null;
|
|
950
|
+
return true;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/loop.js
|
|
955
|
+
var DEFAULT_MAX_ROUNDS = 40;
|
|
956
|
+
var DEFAULT_MAX_PARALLEL = 4;
|
|
957
|
+
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.";
|
|
958
|
+
var RENDER_TURN_PREFIX2 = "Result of ";
|
|
959
|
+
var RECOVERABLE_WORDS = ["timeout", "timed out", "stalled", "network", "fetch failed", "econnreset", "socket", "stream"];
|
|
960
|
+
function batchCalls(calls, isParallel, max) {
|
|
961
|
+
{
|
|
962
|
+
let batches = [];
|
|
963
|
+
for (const call of calls) {
|
|
964
|
+
let last = batches.length > 0 ? batches[batches.length - 1] ?? null : null;
|
|
965
|
+
let parallel = isParallel(call.name) ?? null;
|
|
966
|
+
if (parallel && last != null && last.length < max && (isParallel((last[0] ?? null).name) ?? null)) {
|
|
967
|
+
last.push(call) ?? null;
|
|
968
|
+
} else {
|
|
969
|
+
batches.push([call]) ?? null;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
return batches;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
function truncateResult(text, max) {
|
|
976
|
+
{
|
|
977
|
+
if (text.length <= max) {
|
|
978
|
+
return text;
|
|
979
|
+
}
|
|
980
|
+
return (text.slice(0, max) ?? null) + "\n\u2026[truncated " + (String(text.length - max) ?? null) + " characters]";
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
function defaultIsRecoverable(err) {
|
|
984
|
+
{
|
|
985
|
+
if (err == null || ((__v) => __v == null ? "null" : typeof __v)(err) !== "object") {
|
|
986
|
+
return false;
|
|
987
|
+
}
|
|
988
|
+
if (((__v) => __v == null ? "null" : typeof __v)(err.status) === "number") {
|
|
989
|
+
return err.status >= 500 || err.status === 408 || err.status === 429;
|
|
990
|
+
}
|
|
991
|
+
let text = ((String(err.name ?? "") ?? null) + " " + (String(err.code ?? "") ?? null) + " " + (String(err.message ?? "") ?? null)).toLowerCase() ?? null;
|
|
992
|
+
return RECOVERABLE_WORDS.some((w) => {
|
|
993
|
+
{
|
|
994
|
+
return text.includes(w) ?? null;
|
|
995
|
+
}
|
|
996
|
+
}) ?? null;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
function errorMessage(err) {
|
|
1000
|
+
{
|
|
1001
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1002
|
+
return err.message;
|
|
1003
|
+
}
|
|
1004
|
+
return String(err) ?? null;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
function repairTranscript(messages) {
|
|
1008
|
+
{
|
|
1009
|
+
let i = 0;
|
|
1010
|
+
while (i < messages.length) {
|
|
1011
|
+
let m = messages[i] ?? null;
|
|
1012
|
+
if (m.role === "assistant" && (Array.isArray(m.tool_calls) ?? null) && m.tool_calls.length > 0) {
|
|
1013
|
+
let j = i + 1;
|
|
1014
|
+
let answered = /* @__PURE__ */ new Set() ?? null;
|
|
1015
|
+
while (j < messages.length && (messages[j] ?? null).role === "tool") {
|
|
1016
|
+
answered.add((messages[j] ?? null).tool_call_id ?? "") ?? null;
|
|
1017
|
+
j = j + 1;
|
|
1018
|
+
}
|
|
1019
|
+
let missing = m.tool_calls.filter((c) => {
|
|
1020
|
+
{
|
|
1021
|
+
return !(answered.has(c.id) ?? null);
|
|
1022
|
+
}
|
|
1023
|
+
}) ?? null;
|
|
1024
|
+
if (missing.length > 0) {
|
|
1025
|
+
let fillers = missing.map((c) => {
|
|
1026
|
+
{
|
|
1027
|
+
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 };
|
|
1028
|
+
}
|
|
1029
|
+
}) ?? null;
|
|
1030
|
+
messages.splice(j, 0, ...fillers) ?? null;
|
|
1031
|
+
i = j + missing.length - 1;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
i = i + 1;
|
|
1035
|
+
}
|
|
1036
|
+
return messages;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
function hook(hooks, name) {
|
|
1040
|
+
{
|
|
1041
|
+
if (hooks == null || ((__v) => __v == null ? "null" : typeof __v)(hooks) !== "object") {
|
|
1042
|
+
return null;
|
|
1043
|
+
}
|
|
1044
|
+
let h = hooks[name] ?? null;
|
|
1045
|
+
return ((__v) => __v == null ? "null" : typeof __v)(h) === "function" ? h : null;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
async function runAgentLoop(opts) {
|
|
1049
|
+
{
|
|
1050
|
+
let maxRounds = ((__v) => __v == null ? "null" : typeof __v)(opts.maxRounds) === "number" ? opts.maxRounds : DEFAULT_MAX_ROUNDS;
|
|
1051
|
+
let maxResultChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxResultChars) === "number" ? opts.maxResultChars : 8e3;
|
|
1052
|
+
let maxParallel = ((__v) => __v == null ? "null" : typeof __v)(opts.maxParallel) === "number" ? opts.maxParallel : DEFAULT_MAX_PARALLEL;
|
|
1053
|
+
let hooks = opts.hooks ?? null;
|
|
1054
|
+
let specs = opts.tools.map((t) => {
|
|
1055
|
+
{
|
|
1056
|
+
return t.spec;
|
|
1057
|
+
}
|
|
1058
|
+
}) ?? null;
|
|
1059
|
+
let parallelNames = new Set((opts.tools.filter((t) => {
|
|
1060
|
+
{
|
|
1061
|
+
return t.readOnly === true;
|
|
1062
|
+
}
|
|
1063
|
+
}) ?? null).map((t) => {
|
|
1064
|
+
{
|
|
1065
|
+
return (t.spec["function"] ?? null).name;
|
|
1066
|
+
}
|
|
1067
|
+
}) ?? null) ?? null;
|
|
1068
|
+
let actingNames = new Set((opts.tools.filter((t) => {
|
|
1069
|
+
{
|
|
1070
|
+
return ((__v) => __v == null ? "null" : typeof __v)(t.acts) === "boolean" ? t.acts : t.readOnly !== true;
|
|
1071
|
+
}
|
|
1072
|
+
}) ?? null).map((t) => {
|
|
1073
|
+
{
|
|
1074
|
+
return (t.spec["function"] ?? null).name;
|
|
1075
|
+
}
|
|
1076
|
+
}) ?? null) ?? null;
|
|
1077
|
+
let require2 = null;
|
|
1078
|
+
if (opts.requireAction === true) {
|
|
1079
|
+
require2 = {};
|
|
1080
|
+
}
|
|
1081
|
+
if (opts.requireAction != null && ((__v) => __v == null ? "null" : typeof __v)(opts.requireAction) === "object") {
|
|
1082
|
+
require2 = opts.requireAction;
|
|
1083
|
+
}
|
|
1084
|
+
let resume = opts.resumeState ?? {};
|
|
1085
|
+
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;
|
|
1086
|
+
let signal = opts.signal ?? null;
|
|
1087
|
+
let isStopped = () => {
|
|
1088
|
+
{
|
|
1089
|
+
if (signal != null && signal.aborted === true) {
|
|
1090
|
+
return true;
|
|
1091
|
+
}
|
|
1092
|
+
return ((__v) => __v == null ? "null" : typeof __v)(opts.stopped) === "function" && (opts.stopped() ?? null) === true;
|
|
1093
|
+
}
|
|
1094
|
+
};
|
|
1095
|
+
let messages = repairTranscript(opts.messages.slice() ?? null) ?? null;
|
|
1096
|
+
let text = "";
|
|
1097
|
+
let acted = resume.acted === true;
|
|
1098
|
+
let retries = ((__v) => __v == null ? "null" : typeof __v)(opts.modelRetries) === "number" ? opts.modelRetries : 2;
|
|
1099
|
+
let recoverable = ((__v) => __v == null ? "null" : typeof __v)(opts.isRecoverable) === "function" ? opts.isRecoverable : defaultIsRecoverable;
|
|
1100
|
+
let ctx = opts.context ?? {};
|
|
1101
|
+
let maxRequestChars = ((__v) => __v == null ? "null" : typeof __v)(ctx.maxRequestChars) === "number" ? ctx.maxRequestChars : 43e5;
|
|
1102
|
+
let save = async (round2, done) => {
|
|
1103
|
+
{
|
|
1104
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
|
|
1105
|
+
await (opts.checkpoint({ messages: messages.slice() ?? null, round: round2, acted, nudgesLeft, done }) ?? null);
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
};
|
|
1109
|
+
let drain = () => {
|
|
1110
|
+
{
|
|
1111
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.drainNotifications) !== "function") {
|
|
1112
|
+
return [];
|
|
1113
|
+
}
|
|
1114
|
+
let notes = opts.drainNotifications() ?? null;
|
|
1115
|
+
return Array.isArray(notes) ?? null ? notes : [];
|
|
1116
|
+
}
|
|
1117
|
+
};
|
|
1118
|
+
let modelHooks = { onTextDelta: hook(hooks, "onTextDelta") ?? null, onReasoningDelta: hook(hooks, "onReasoningDelta") ?? null, onToolProgress: hook(hooks, "onToolProgress") ?? null };
|
|
1119
|
+
let choiceFor = (round2) => {
|
|
1120
|
+
{
|
|
1121
|
+
let c = opts.toolChoice ?? null;
|
|
1122
|
+
if (((__v) => __v == null ? "null" : typeof __v)(c) === "function") {
|
|
1123
|
+
c = c(round2) ?? null ?? null;
|
|
1124
|
+
}
|
|
1125
|
+
return c;
|
|
1126
|
+
}
|
|
1127
|
+
};
|
|
1128
|
+
let call = async (msgs, tools, choice) => {
|
|
1129
|
+
{
|
|
1130
|
+
let attempt = 0;
|
|
1131
|
+
while (true) {
|
|
1132
|
+
try {
|
|
1133
|
+
{
|
|
1134
|
+
if (choice == null || tools.length === 0) {
|
|
1135
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal) ?? null);
|
|
1136
|
+
}
|
|
1137
|
+
return await (opts.callModel(msgs, tools, modelHooks, signal, { toolChoice: choice }) ?? null);
|
|
1138
|
+
}
|
|
1139
|
+
} catch (err) {
|
|
1140
|
+
{
|
|
1141
|
+
if ((isStopped() ?? null) || attempt >= retries || !(recoverable(err) ?? null)) {
|
|
1142
|
+
throw err;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
attempt = attempt + 1;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
};
|
|
1150
|
+
let advise = ((__v) => __v == null ? "null" : typeof __v)(opts.advise) === "function" ? opts.advise : null;
|
|
1151
|
+
let route = ((__v) => __v == null ? "null" : typeof __v)(opts.route) === "function" ? opts.route : null;
|
|
1152
|
+
let errorCounts = /* @__PURE__ */ new Map() ?? null;
|
|
1153
|
+
let doneChecked = false;
|
|
1154
|
+
let consult = async (trigger, detail) => {
|
|
1155
|
+
{
|
|
1156
|
+
if (advise == null) {
|
|
1157
|
+
return false;
|
|
1158
|
+
}
|
|
1159
|
+
let note = null;
|
|
1160
|
+
try {
|
|
1161
|
+
{
|
|
1162
|
+
note = await (advise({ trigger, messages: messages.slice() ?? null, detail }) ?? null);
|
|
1163
|
+
}
|
|
1164
|
+
} catch (e) {
|
|
1165
|
+
{
|
|
1166
|
+
note = null;
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
if (((__v) => __v == null ? "null" : typeof __v)(note) !== "string" || note === "") {
|
|
1170
|
+
return false;
|
|
1171
|
+
}
|
|
1172
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
1173
|
+
return true;
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
let round = ((__v) => __v == null ? "null" : typeof __v)(resume.round) === "number" ? resume.round : 0;
|
|
1177
|
+
if (round === 0) {
|
|
1178
|
+
await (consult("plan", null) ?? null);
|
|
1179
|
+
}
|
|
1180
|
+
while (maxRounds === 0 || round < maxRounds) {
|
|
1181
|
+
if (isStopped() ?? null) {
|
|
1182
|
+
await (save(round, true) ?? null);
|
|
1183
|
+
return { messages, text, rounds: round, exhausted: false, stopped: true, acted };
|
|
1184
|
+
}
|
|
1185
|
+
for (const note of drain() ?? null) {
|
|
1186
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
1187
|
+
}
|
|
1188
|
+
pruneOldImages(messages, ctx.keepImageTurns ?? null) ?? null;
|
|
1189
|
+
if (ctx.compact != null && ((__v) => __v == null ? "null" : typeof __v)(ctx.compact) === "object") {
|
|
1190
|
+
await (compactTranscript(messages, ctx.compact) ?? null);
|
|
1191
|
+
}
|
|
1192
|
+
fitImagesToBudget(messages, maxRequestChars - (JSON.stringify(specs) ?? null).length) ?? null;
|
|
1193
|
+
let onStart = hook(hooks, "onAssistantStart") ?? null;
|
|
1194
|
+
if (onStart != null) {
|
|
1195
|
+
onStart(round) ?? null;
|
|
1196
|
+
}
|
|
1197
|
+
let choice = choiceFor(round) ?? null;
|
|
1198
|
+
if (choice == null && route != null && specs.length > 0) {
|
|
1199
|
+
try {
|
|
1200
|
+
{
|
|
1201
|
+
choice = await (route({ round, messages: messages.slice() ?? null, tools: specs }) ?? null);
|
|
1202
|
+
}
|
|
1203
|
+
} catch (e) {
|
|
1204
|
+
{
|
|
1205
|
+
choice = null;
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
let turn = await (call(messages, specs, choice ?? null) ?? null);
|
|
1210
|
+
text = turn.text;
|
|
1211
|
+
let toolCalls = Array.isArray(turn.toolCalls) ?? null ? turn.toolCalls : [];
|
|
1212
|
+
if (toolCalls.length > 0) {
|
|
1213
|
+
messages.push({ role: "assistant", content: turn.text, tool_calls: toolCalls.map((c) => {
|
|
1214
|
+
{
|
|
1215
|
+
return { id: c.id, type: "function", function: { name: c.name, arguments: c.arguments } };
|
|
1216
|
+
}
|
|
1217
|
+
}) ?? null }) ?? null;
|
|
1218
|
+
} else {
|
|
1219
|
+
messages.push({ role: "assistant", content: turn.text }) ?? null;
|
|
1220
|
+
}
|
|
1221
|
+
if (toolCalls.length === 0) {
|
|
1222
|
+
let onEnd = hook(hooks, "onRoundEnd") ?? null;
|
|
1223
|
+
if (onEnd != null) {
|
|
1224
|
+
onEnd(round) ?? null;
|
|
1225
|
+
}
|
|
1226
|
+
let late = drain() ?? null;
|
|
1227
|
+
if (late.length > 0) {
|
|
1228
|
+
for (const note of late) {
|
|
1229
|
+
messages.push({ role: "user", content: note }) ?? null;
|
|
1230
|
+
}
|
|
1231
|
+
round = round + 1;
|
|
1232
|
+
continue;
|
|
1233
|
+
}
|
|
1234
|
+
if (!doneChecked) {
|
|
1235
|
+
doneChecked = true;
|
|
1236
|
+
if (await (consult("done", null) ?? null)) {
|
|
1237
|
+
await (save(round + 1, false) ?? null);
|
|
1238
|
+
round = round + 1;
|
|
1239
|
+
continue;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
if (require2 != null && !acted && nudgesLeft > 0 && actingNames.size > 0) {
|
|
1243
|
+
nudgesLeft = nudgesLeft - 1;
|
|
1244
|
+
let nudge = ((__v) => __v == null ? "null" : typeof __v)(require2.message) === "string" ? require2.message : DEFAULT_ACTION_NUDGE;
|
|
1245
|
+
let onNudge = hook(hooks, "onNudge") ?? null;
|
|
1246
|
+
if (onNudge != null) {
|
|
1247
|
+
onNudge(nudge) ?? null;
|
|
1248
|
+
}
|
|
1249
|
+
messages.push({ role: "user", content: nudge }) ?? null;
|
|
1250
|
+
await (save(round + 1, false) ?? null);
|
|
1251
|
+
round = round + 1;
|
|
1252
|
+
continue;
|
|
1253
|
+
}
|
|
1254
|
+
await (save(round + 1, true) ?? null);
|
|
1255
|
+
return { messages, text, rounds: round + 1, exhausted: false, stopped: false, acted };
|
|
1256
|
+
}
|
|
1257
|
+
let calls = toolCalls.map((c) => {
|
|
1258
|
+
{
|
|
1259
|
+
return { id: c.id, name: c.name, argsText: c.arguments };
|
|
1260
|
+
}
|
|
1261
|
+
}) ?? null;
|
|
1262
|
+
let imageTurns = [];
|
|
1263
|
+
let repeated = [];
|
|
1264
|
+
doneChecked = false;
|
|
1265
|
+
for (const batch of batchCalls(calls, (n) => {
|
|
1266
|
+
{
|
|
1267
|
+
return parallelNames.has(n) ?? null;
|
|
1268
|
+
}
|
|
1269
|
+
}, maxParallel) ?? null) {
|
|
1270
|
+
if (isStopped() ?? null) {
|
|
1271
|
+
for (const c of calls) {
|
|
1272
|
+
let answered = messages.some((m) => {
|
|
1273
|
+
{
|
|
1274
|
+
return m.role === "tool" && m.tool_call_id === c.id;
|
|
1275
|
+
}
|
|
1276
|
+
}) ?? null;
|
|
1277
|
+
if (!answered) {
|
|
1278
|
+
messages.push({ role: "tool", tool_call_id: c.id, name: c.name, content: JSON.stringify({ error: "stopped" }) ?? null }) ?? null;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
await (save(round + 1, true) ?? null);
|
|
1282
|
+
return { messages, text, rounds: round + 1, exhausted: false, stopped: true, acted };
|
|
1283
|
+
}
|
|
1284
|
+
let onToolStart = hook(hooks, "onToolStart") ?? null;
|
|
1285
|
+
if (onToolStart != null) {
|
|
1286
|
+
for (const info of batch) {
|
|
1287
|
+
onToolStart(info) ?? null;
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
let runs2 = await (Promise.all(batch.map(async (info) => {
|
|
1291
|
+
{
|
|
1292
|
+
try {
|
|
1293
|
+
{
|
|
1294
|
+
return await (opts.execTool(info) ?? null);
|
|
1295
|
+
}
|
|
1296
|
+
} catch (err) {
|
|
1297
|
+
{
|
|
1298
|
+
let message = errorMessage(err) ?? null;
|
|
1299
|
+
return { id: info.id, name: info.name, argsText: info.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }) ?? null };
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}) ?? null) ?? null);
|
|
1304
|
+
let onToolEnd = hook(hooks, "onToolEnd") ?? null;
|
|
1305
|
+
for (const run of runs2) {
|
|
1306
|
+
let actedHere = ((__v) => __v == null ? "null" : typeof __v)(run.acted) === "boolean" ? run.acted : actingNames.has(run.name) ?? null;
|
|
1307
|
+
if (run.ok === true && actedHere) {
|
|
1308
|
+
acted = true;
|
|
1309
|
+
}
|
|
1310
|
+
if (onToolEnd != null) {
|
|
1311
|
+
onToolEnd(run) ?? null;
|
|
1312
|
+
}
|
|
1313
|
+
if (run.ok !== true && advise != null) {
|
|
1314
|
+
let sig = errorSignature(run) ?? null;
|
|
1315
|
+
let n = (errorCounts.get(sig) ?? null ?? 0) + 1;
|
|
1316
|
+
errorCounts.set(sig, n) ?? null;
|
|
1317
|
+
if (n === REPEATED_ERROR_COUNT) {
|
|
1318
|
+
repeated.push(run.name + ": " + run.summary) ?? null;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
messages.push({ role: "tool", tool_call_id: run.id, name: run.name, content: truncateResult(run.content, maxResultChars) ?? null }) ?? null;
|
|
1322
|
+
if ((Array.isArray(run.images) ?? null) && run.images.length > 0) {
|
|
1323
|
+
let label = run.images.length === 1 ? "the rendered view" : (String(run.images.length) ?? null) + " rendered views";
|
|
1324
|
+
let parts = [{ type: "text", text: RENDER_TURN_PREFIX2 + run.name + ": " + label + "." }];
|
|
1325
|
+
for (const url of run.images) {
|
|
1326
|
+
parts.push({ type: "image_url", image_url: { url } }) ?? null;
|
|
1327
|
+
}
|
|
1328
|
+
imageTurns.push({ role: "user", content: parts }) ?? null;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
for (const m of imageTurns) {
|
|
1333
|
+
messages.push(m) ?? null;
|
|
1334
|
+
}
|
|
1335
|
+
for (const err of repeated) {
|
|
1336
|
+
await (consult("error", "The error, seen " + (String(REPEATED_ERROR_COUNT) ?? null) + " times: " + err) ?? null);
|
|
1337
|
+
}
|
|
1338
|
+
let onRoundEnd = hook(hooks, "onRoundEnd") ?? null;
|
|
1339
|
+
if (onRoundEnd != null) {
|
|
1340
|
+
onRoundEnd(round) ?? null;
|
|
1341
|
+
}
|
|
1342
|
+
await (save(round + 1, false) ?? null);
|
|
1343
|
+
round = round + 1;
|
|
1344
|
+
}
|
|
1345
|
+
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;
|
|
1346
|
+
let final = await (call(messages, [], null) ?? null);
|
|
1347
|
+
messages.push({ role: "assistant", content: final.text }) ?? null;
|
|
1348
|
+
await (save(maxRounds, true) ?? null);
|
|
1349
|
+
return { messages, text: final.text, rounds: maxRounds, exhausted: true, stopped: false, acted };
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/runtime.js
|
|
1354
|
+
var delay2 = ((ms) => new Promise((settle) => setTimeout(() => settle(null), Math.max(0, Number(ms) || 0))));
|
|
1355
|
+
var REPORT_TOOL = "report_to_parent";
|
|
1356
|
+
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"] } } } };
|
|
1357
|
+
var WAIT_STEP_MS = 25;
|
|
1358
|
+
function isBusy(s) {
|
|
1359
|
+
{
|
|
1360
|
+
return s != null && (s.status === "running" || s.status === "queued");
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
function plainStopControl() {
|
|
1364
|
+
{
|
|
1365
|
+
let flag = { aborted: false };
|
|
1366
|
+
return { signal: flag, stop: () => {
|
|
1367
|
+
{
|
|
1368
|
+
flag.aborted = true;
|
|
1369
|
+
}
|
|
1370
|
+
} };
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
function allSessions(sessions) {
|
|
1374
|
+
{
|
|
1375
|
+
let out = [];
|
|
1376
|
+
for (const s of sessions.values() ?? null) {
|
|
1377
|
+
out.push(s) ?? null;
|
|
1378
|
+
}
|
|
1379
|
+
return out;
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
function errorMessage2(err) {
|
|
1383
|
+
{
|
|
1384
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1385
|
+
return err.message;
|
|
1386
|
+
}
|
|
1387
|
+
return String(err) ?? null;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
function createAgentRuntime(host) {
|
|
1391
|
+
{
|
|
1392
|
+
let sessions = /* @__PURE__ */ new Map() ?? null;
|
|
1393
|
+
let controls = /* @__PURE__ */ new Map() ?? null;
|
|
1394
|
+
let parentQueue = [];
|
|
1395
|
+
let loaded = false;
|
|
1396
|
+
let loading = null;
|
|
1397
|
+
let active = 0;
|
|
1398
|
+
let waiting = [];
|
|
1399
|
+
let listeners = [];
|
|
1400
|
+
let pendingSaves = 0;
|
|
1401
|
+
let orch = host.orchestration ?? null;
|
|
1402
|
+
let maxConcurrent = () => {
|
|
1403
|
+
{
|
|
1404
|
+
let h = ((__v) => __v == null ? "null" : typeof __v)(host.maxConcurrent) === "function" ? host.maxConcurrent() ?? null : host.maxConcurrent;
|
|
1405
|
+
if (((__v) => __v == null ? "null" : typeof __v)(h) === "number" && h > 0) {
|
|
1406
|
+
return h;
|
|
1407
|
+
}
|
|
1408
|
+
let o = orch != null ? orch.maxConcurrent ?? null : null;
|
|
1409
|
+
return ((__v) => __v == null ? "null" : typeof __v)(o) === "number" && o > 0 ? o : 4;
|
|
1410
|
+
}
|
|
1411
|
+
};
|
|
1412
|
+
let now = () => {
|
|
1413
|
+
{
|
|
1414
|
+
return ((__v) => __v == null ? "null" : typeof __v)(host.now) === "function" ? host.now() ?? null : Date.now() ?? null;
|
|
1415
|
+
}
|
|
1416
|
+
};
|
|
1417
|
+
let changed = () => {
|
|
1418
|
+
{
|
|
1419
|
+
if (((__v) => __v == null ? "null" : typeof __v)(host.onChange) === "function") {
|
|
1420
|
+
host.onChange() ?? null;
|
|
1421
|
+
}
|
|
1422
|
+
for (const l of listeners.slice() ?? null) {
|
|
1423
|
+
l() ?? null;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
let emit = (e) => {
|
|
1428
|
+
{
|
|
1429
|
+
if (((__v) => __v == null ? "null" : typeof __v)(host.onEvent) === "function") {
|
|
1430
|
+
host.onEvent(e) ?? null;
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
let sessionEvent = (s) => {
|
|
1435
|
+
{
|
|
1436
|
+
emit({ type: "session", sessionId: s.id, status: s.status, profile: s.profile, description: s.description }) ?? null;
|
|
1437
|
+
}
|
|
1438
|
+
};
|
|
1439
|
+
let persist = (s) => {
|
|
1440
|
+
{
|
|
1441
|
+
changed() ?? null;
|
|
1442
|
+
if (host.store == null || ((__v) => __v == null ? "null" : typeof __v)(host.store) !== "object") {
|
|
1443
|
+
return;
|
|
1444
|
+
}
|
|
1445
|
+
pendingSaves = pendingSaves + 1;
|
|
1446
|
+
let save = async () => {
|
|
1447
|
+
{
|
|
1448
|
+
try {
|
|
1449
|
+
{
|
|
1450
|
+
await (host.store.save(s) ?? null);
|
|
1451
|
+
}
|
|
1452
|
+
} catch (e) {
|
|
1453
|
+
{
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1456
|
+
pendingSaves = pendingSaves - 1;
|
|
1457
|
+
}
|
|
1458
|
+
};
|
|
1459
|
+
save() ?? null;
|
|
1460
|
+
}
|
|
1461
|
+
};
|
|
1462
|
+
let profileById = (id) => {
|
|
1463
|
+
{
|
|
1464
|
+
let found = (host.profiles() ?? null).filter((p) => {
|
|
1465
|
+
{
|
|
1466
|
+
return p.id === id;
|
|
1467
|
+
}
|
|
1468
|
+
}) ?? null;
|
|
1469
|
+
return found.length > 0 ? found[0] ?? null : null;
|
|
1470
|
+
}
|
|
1471
|
+
};
|
|
1472
|
+
let report = (fromId, text, question) => {
|
|
1473
|
+
{
|
|
1474
|
+
let s = sessions.get(fromId) ?? null ?? null;
|
|
1475
|
+
let who = "agent " + fromId + (s != null ? " (" + s.profile + ")" : "");
|
|
1476
|
+
let asks = question === true;
|
|
1477
|
+
parentQueue.push(asks ? "QUESTION from " + who + " \u2014 it needs your answer (send_message " + fromId + "):\n" + text : "Report from " + who + ":\n" + text) ?? null;
|
|
1478
|
+
emit({ type: "report", sessionId: fromId, message: text, question: asks }) ?? null;
|
|
1479
|
+
changed() ?? null;
|
|
1480
|
+
}
|
|
1481
|
+
};
|
|
1482
|
+
let run = async (session2, profile, prompt, forceReadOnly, parentSignal, fresh) => {
|
|
1483
|
+
{
|
|
1484
|
+
let control = ((__v) => __v == null ? "null" : typeof __v)(host.createSignal) === "function" ? host.createSignal() ?? null : plainStopControl() ?? null;
|
|
1485
|
+
controls.set(session2.id, control) ?? null;
|
|
1486
|
+
if (parentSignal != null) {
|
|
1487
|
+
if (parentSignal.aborted === true) {
|
|
1488
|
+
control.stop() ?? null;
|
|
1489
|
+
} else if (((__v) => __v == null ? "null" : typeof __v)(parentSignal.addEventListener) === "function") {
|
|
1490
|
+
parentSignal.addEventListener("abort", () => {
|
|
1491
|
+
{
|
|
1492
|
+
control.stop() ?? null;
|
|
1493
|
+
}
|
|
1494
|
+
}) ?? null;
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
let ctx = { session: session2, profile, readOnly: forceReadOnly || profile.readOnly === true, signal: control.signal };
|
|
1498
|
+
let tools = (host.childTools(ctx) ?? null).concat([REPORT_SPEC]) ?? null;
|
|
1499
|
+
let childModel = ((__v) => __v == null ? "null" : typeof __v)(host.childModel) === "function" ? host.childModel(ctx) ?? null : null;
|
|
1500
|
+
if (((__v) => __v == null ? "null" : typeof __v)(childModel) !== "function" && orch != null) {
|
|
1501
|
+
childModel = orch.childModel(ctx.readOnly && (profile.model ?? null) == null ? "fast" : profile.model ?? null) ?? null;
|
|
1502
|
+
}
|
|
1503
|
+
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;
|
|
1504
|
+
let ok = true;
|
|
1505
|
+
let summary = "";
|
|
1506
|
+
let rounds = 0;
|
|
1507
|
+
let wasStopped = () => {
|
|
1508
|
+
{
|
|
1509
|
+
return control.signal.aborted === true || parentSignal != null && parentSignal.aborted === true;
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
try {
|
|
1513
|
+
{
|
|
1514
|
+
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;
|
|
1515
|
+
let outcome = await (runAgentLoop({ messages, tools, callModel: ((__v) => __v == null ? "null" : typeof __v)(childModel) === "function" ? childModel : host.callModel, signal: control.signal, stopped: () => {
|
|
1516
|
+
{
|
|
1517
|
+
return parentSignal != null && parentSignal.aborted === true;
|
|
1518
|
+
}
|
|
1519
|
+
}, maxRounds: budget, drainNotifications: () => {
|
|
1520
|
+
{
|
|
1521
|
+
return (session2.inbox.splice(0, session2.inbox.length) ?? null).map((t) => {
|
|
1522
|
+
{
|
|
1523
|
+
return "Message from the main agent:\n" + t;
|
|
1524
|
+
}
|
|
1525
|
+
}) ?? null;
|
|
1526
|
+
}
|
|
1527
|
+
}, execTool: async (call) => {
|
|
1528
|
+
{
|
|
1529
|
+
if (call.name === REPORT_TOOL) {
|
|
1530
|
+
let args = {};
|
|
1531
|
+
try {
|
|
1532
|
+
{
|
|
1533
|
+
args = JSON.parse(call.argsText === "" ? "{}" : call.argsText) ?? null;
|
|
1534
|
+
}
|
|
1535
|
+
} catch (e) {
|
|
1536
|
+
{
|
|
1537
|
+
args = {};
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
report(session2.id, String(args.message ?? "") ?? null, args.question === true) ?? null;
|
|
1541
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: "reported", content: JSON.stringify({ ok: true }) ?? null };
|
|
1542
|
+
}
|
|
1543
|
+
return await (host.execChildTool(call, ctx) ?? null);
|
|
1544
|
+
}
|
|
1545
|
+
}, requireAction: fresh && !ctx.readOnly, hooks: { onToolStart: (c) => {
|
|
1546
|
+
{
|
|
1547
|
+
emit({ type: "tool-start", sessionId: session2.id, name: c.name }) ?? null;
|
|
1548
|
+
}
|
|
1549
|
+
}, onToolEnd: (r) => {
|
|
1550
|
+
{
|
|
1551
|
+
emit({ type: "tool-end", sessionId: session2.id, name: r.name, ok: r.ok, summary: r.summary }) ?? null;
|
|
1552
|
+
}
|
|
1553
|
+
}, onTextDelta: (d) => {
|
|
1554
|
+
{
|
|
1555
|
+
emit({ type: "text", sessionId: session2.id, delta: d }) ?? null;
|
|
1556
|
+
}
|
|
1557
|
+
}, onNudge: (m) => {
|
|
1558
|
+
{
|
|
1559
|
+
emit({ type: "nudge", sessionId: session2.id, message: m }) ?? null;
|
|
1560
|
+
}
|
|
1561
|
+
} } }) ?? null);
|
|
1562
|
+
session2.transcript = outcome.messages;
|
|
1563
|
+
rounds = outcome.rounds;
|
|
1564
|
+
let said = outcome.text.trim() ?? null;
|
|
1565
|
+
summary = said !== "" ? said : outcome.stopped ? "(stopped)" : "(finished without a summary)";
|
|
1566
|
+
ok = !outcome.stopped;
|
|
1567
|
+
}
|
|
1568
|
+
} catch (err) {
|
|
1569
|
+
{
|
|
1570
|
+
ok = false;
|
|
1571
|
+
summary = wasStopped() ?? null ? "(stopped)" : "(agent error: " + (errorMessage2(err) ?? null) + ")";
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
controls.delete(session2.id) ?? null;
|
|
1575
|
+
session2.rounds = session2.rounds + rounds;
|
|
1576
|
+
if (session2.status === "running") {
|
|
1577
|
+
session2.status = ok ? "done" : wasStopped() ?? null ? "stopped" : "error";
|
|
1578
|
+
session2.summary = summary;
|
|
1579
|
+
session2.endedAt = now() ?? null;
|
|
1580
|
+
} else {
|
|
1581
|
+
session2.summary = summary;
|
|
1582
|
+
}
|
|
1583
|
+
if (session2.background && session2.status !== "stopped") {
|
|
1584
|
+
parentQueue.push("Agent " + session2.id + " (" + session2.profile + ") " + (ok ? "finished" : "failed") + ":\n" + summary) ?? null;
|
|
1585
|
+
}
|
|
1586
|
+
sessionEvent(session2) ?? null;
|
|
1587
|
+
persist(session2) ?? null;
|
|
1588
|
+
return { ok, summary, rounds };
|
|
1589
|
+
}
|
|
1590
|
+
};
|
|
1591
|
+
let takeNext = () => {
|
|
1592
|
+
{
|
|
1593
|
+
while (waiting.length > 0) {
|
|
1594
|
+
let next = waiting.shift() ?? null;
|
|
1595
|
+
if (next.session.status === "queued") {
|
|
1596
|
+
next.session.status = "running";
|
|
1597
|
+
sessionEvent(next.session) ?? null;
|
|
1598
|
+
changed() ?? null;
|
|
1599
|
+
return next;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
return null;
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
let runSlot = (first) => {
|
|
1606
|
+
{
|
|
1607
|
+
((f) => Promise.resolve().then(() => f()))(async () => {
|
|
1608
|
+
{
|
|
1609
|
+
let job = first;
|
|
1610
|
+
while (job != null) {
|
|
1611
|
+
try {
|
|
1612
|
+
{
|
|
1613
|
+
if (job.session.status !== "stopped") {
|
|
1614
|
+
await (job.go() ?? null);
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
} catch (e) {
|
|
1618
|
+
{
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
job = active <= (maxConcurrent() ?? null) ? takeNext() ?? null : null;
|
|
1622
|
+
if (job == null) {
|
|
1623
|
+
active = Math.max(0, active - 1) ?? null;
|
|
1624
|
+
if (waiting.length > 0 && active < (maxConcurrent() ?? null)) {
|
|
1625
|
+
active = active + 1;
|
|
1626
|
+
job = takeNext() ?? null;
|
|
1627
|
+
if (job == null) {
|
|
1628
|
+
active = Math.max(0, active - 1) ?? null;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
}) ?? null;
|
|
1635
|
+
}
|
|
1636
|
+
};
|
|
1637
|
+
let startBackground = (session2, go) => {
|
|
1638
|
+
{
|
|
1639
|
+
while (waiting.length > 0 && active < (maxConcurrent() ?? null)) {
|
|
1640
|
+
let next = takeNext() ?? null;
|
|
1641
|
+
if (next == null) {
|
|
1642
|
+
break;
|
|
1643
|
+
}
|
|
1644
|
+
active = active + 1;
|
|
1645
|
+
runSlot(next) ?? null;
|
|
1646
|
+
}
|
|
1647
|
+
if (active < (maxConcurrent() ?? null)) {
|
|
1648
|
+
active = active + 1;
|
|
1649
|
+
runSlot({ session: session2, go }) ?? null;
|
|
1650
|
+
return;
|
|
1651
|
+
}
|
|
1652
|
+
session2.status = "queued";
|
|
1653
|
+
sessionEvent(session2) ?? null;
|
|
1654
|
+
changed() ?? null;
|
|
1655
|
+
waiting.push({ session: session2, go }) ?? null;
|
|
1656
|
+
}
|
|
1657
|
+
};
|
|
1658
|
+
let stop = (id) => {
|
|
1659
|
+
{
|
|
1660
|
+
let s = sessions.get(id) ?? null ?? null;
|
|
1661
|
+
if (s == null || s.status !== "running" && s.status !== "queued") {
|
|
1662
|
+
return false;
|
|
1663
|
+
}
|
|
1664
|
+
let control = controls.get(id) ?? null ?? null;
|
|
1665
|
+
if (control != null) {
|
|
1666
|
+
control.stop() ?? null;
|
|
1667
|
+
}
|
|
1668
|
+
s.status = "stopped";
|
|
1669
|
+
s.endedAt = now() ?? null;
|
|
1670
|
+
persist(s) ?? null;
|
|
1671
|
+
return true;
|
|
1672
|
+
}
|
|
1673
|
+
};
|
|
1674
|
+
let load = async () => {
|
|
1675
|
+
{
|
|
1676
|
+
if (loaded) {
|
|
1677
|
+
return;
|
|
1678
|
+
}
|
|
1679
|
+
loaded = true;
|
|
1680
|
+
if (host.store != null && ((__v) => __v == null ? "null" : typeof __v)(host.store) === "object") {
|
|
1681
|
+
let saved = await (host.store.load() ?? null);
|
|
1682
|
+
for (const s of Array.isArray(saved) ?? null ? saved : []) {
|
|
1683
|
+
if (s.status === "running" || s.status === "queued") {
|
|
1684
|
+
s.status = "stopped";
|
|
1685
|
+
if (((__v) => __v == null ? "null" : typeof __v)(s.endedAt) !== "number") {
|
|
1686
|
+
s.endedAt = now() ?? null;
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
sessions.set(s.id, s) ?? null;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
changed() ?? null;
|
|
1693
|
+
}
|
|
1694
|
+
};
|
|
1695
|
+
let get = (id) => {
|
|
1696
|
+
{
|
|
1697
|
+
return sessions.get(id) ?? null ?? null;
|
|
1698
|
+
}
|
|
1699
|
+
};
|
|
1700
|
+
return { load, flush: async () => {
|
|
1701
|
+
{
|
|
1702
|
+
while (pendingSaves > 0) {
|
|
1703
|
+
await (delay2(WAIT_STEP_MS) ?? null);
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
}, subscribe: (l) => {
|
|
1707
|
+
{
|
|
1708
|
+
listeners.push(l) ?? null;
|
|
1709
|
+
return () => {
|
|
1710
|
+
{
|
|
1711
|
+
let i = listeners.indexOf(l) ?? null;
|
|
1712
|
+
if (i >= 0) {
|
|
1713
|
+
listeners.splice(i, 1) ?? null;
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
}, list: () => {
|
|
1719
|
+
{
|
|
1720
|
+
return (allSessions(sessions) ?? null).sort((a, b) => {
|
|
1721
|
+
{
|
|
1722
|
+
return a.startedAt - b.startedAt;
|
|
1723
|
+
}
|
|
1724
|
+
}) ?? null;
|
|
1725
|
+
}
|
|
1726
|
+
}, get, wait: async (id, opts) => {
|
|
1727
|
+
{
|
|
1728
|
+
let o = opts ?? {};
|
|
1729
|
+
let deadline = (now() ?? null) + (((__v) => __v == null ? "null" : typeof __v)(o.timeoutMs) === "number" ? o.timeoutMs : 12e4);
|
|
1730
|
+
let signal = o.signal ?? null;
|
|
1731
|
+
while ((isBusy(get(id) ?? null) ?? null) && (now() ?? null) < deadline && !(signal != null && signal.aborted === true)) {
|
|
1732
|
+
await (delay2(Math.min(WAIT_STEP_MS, Math.max(1, deadline - (now() ?? null)) ?? null) ?? null) ?? null);
|
|
1733
|
+
}
|
|
1734
|
+
return get(id) ?? null;
|
|
1735
|
+
}
|
|
1736
|
+
}, dismissFinished: (id) => {
|
|
1737
|
+
{
|
|
1738
|
+
let prefix = "Agent " + id + " (";
|
|
1739
|
+
let i = parentQueue.length - 1;
|
|
1740
|
+
while (i >= 0) {
|
|
1741
|
+
if ((parentQueue[i] ?? null).startsWith(prefix) ?? null) {
|
|
1742
|
+
parentQueue.splice(i, 1) ?? null;
|
|
1743
|
+
}
|
|
1744
|
+
i = i - 1;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
}, drainParentNotifications: () => {
|
|
1748
|
+
{
|
|
1749
|
+
return parentQueue.splice(0, parentQueue.length) ?? null;
|
|
1750
|
+
}
|
|
1751
|
+
}, hasPendingNotifications: () => {
|
|
1752
|
+
{
|
|
1753
|
+
return parentQueue.length > 0;
|
|
1754
|
+
}
|
|
1755
|
+
}, spawn: async (req) => {
|
|
1756
|
+
{
|
|
1757
|
+
let profile = profileById(req.profileId) ?? null;
|
|
1758
|
+
if (profile == null) {
|
|
1759
|
+
let ids = ((host.profiles() ?? null).map((p) => {
|
|
1760
|
+
{
|
|
1761
|
+
return p.id;
|
|
1762
|
+
}
|
|
1763
|
+
}) ?? null).join(", ") ?? null;
|
|
1764
|
+
return { kind: "refused", reason: 'No agent type "' + req.profileId + '". Available: ' + ids + "." };
|
|
1765
|
+
}
|
|
1766
|
+
let prompt = ((__v) => __v == null ? "null" : typeof __v)(req.prompt) === "string" ? req.prompt.trim() ?? null : "";
|
|
1767
|
+
if (prompt === "") {
|
|
1768
|
+
return { kind: "refused", reason: "A task needs a self-contained prompt \u2014 the agent cannot see this conversation." };
|
|
1769
|
+
}
|
|
1770
|
+
let background = ((__v) => __v == null ? "null" : typeof __v)(req.background) === "boolean" ? req.background : profile.background === true;
|
|
1771
|
+
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);
|
|
1772
|
+
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 };
|
|
1773
|
+
if (((__v) => __v == null ? "null" : typeof __v)(req.parentCallId) === "string" && req.parentCallId !== "") {
|
|
1774
|
+
session2.parentCallId = req.parentCallId;
|
|
1775
|
+
}
|
|
1776
|
+
sessions.set(session2.id, session2) ?? null;
|
|
1777
|
+
changed() ?? null;
|
|
1778
|
+
sessionEvent(session2) ?? null;
|
|
1779
|
+
let forceReadOnly = req.readOnly === true;
|
|
1780
|
+
let parentSignal = req.signal ?? null;
|
|
1781
|
+
if (background) {
|
|
1782
|
+
startBackground(session2, async () => {
|
|
1783
|
+
{
|
|
1784
|
+
return await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
|
|
1785
|
+
}
|
|
1786
|
+
}) ?? null;
|
|
1787
|
+
return { kind: "started", id: session2.id };
|
|
1788
|
+
}
|
|
1789
|
+
let out = await (run(session2, profile, prompt, forceReadOnly, parentSignal, true) ?? null);
|
|
1790
|
+
return { kind: "done", id: session2.id, ok: out.ok, summary: out.summary, rounds: out.rounds };
|
|
1791
|
+
}
|
|
1792
|
+
}, message: async (id, text, opts) => {
|
|
1793
|
+
{
|
|
1794
|
+
await (load() ?? null);
|
|
1795
|
+
let o = opts ?? {};
|
|
1796
|
+
let session2 = sessions.get(id) ?? null ?? null;
|
|
1797
|
+
if (session2 == null) {
|
|
1798
|
+
return { kind: "unknown", id };
|
|
1799
|
+
}
|
|
1800
|
+
if (session2.status === "running" || session2.status === "queued") {
|
|
1801
|
+
session2.inbox.push(text) ?? null;
|
|
1802
|
+
persist(session2) ?? null;
|
|
1803
|
+
return { kind: "queued", id };
|
|
1804
|
+
}
|
|
1805
|
+
let profile = profileById(session2.profile) ?? null;
|
|
1806
|
+
if (profile == null) {
|
|
1807
|
+
return { kind: "unknown", id };
|
|
1808
|
+
}
|
|
1809
|
+
let wait = o.wait === true;
|
|
1810
|
+
let parentSignal = o.signal ?? null;
|
|
1811
|
+
session2.status = "running";
|
|
1812
|
+
session2.endedAt = null;
|
|
1813
|
+
session2.background = !wait;
|
|
1814
|
+
changed() ?? null;
|
|
1815
|
+
if (!wait) {
|
|
1816
|
+
startBackground(session2, async () => {
|
|
1817
|
+
{
|
|
1818
|
+
return await (run(session2, profile, text, false, parentSignal, false) ?? null);
|
|
1819
|
+
}
|
|
1820
|
+
}) ?? null;
|
|
1821
|
+
return { kind: "resumed", id };
|
|
1822
|
+
}
|
|
1823
|
+
let out = await (run(session2, profile, text, false, parentSignal, false) ?? null);
|
|
1824
|
+
return { kind: "done", id, ok: out.ok, summary: out.summary };
|
|
1825
|
+
}
|
|
1826
|
+
}, stop, stopAll: () => {
|
|
1827
|
+
{
|
|
1828
|
+
for (const s of allSessions(sessions) ?? null) {
|
|
1829
|
+
stop(s.id) ?? null;
|
|
1830
|
+
}
|
|
1831
|
+
parentQueue.splice(0, parentQueue.length) ?? null;
|
|
1832
|
+
}
|
|
1833
|
+
}, report };
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/types.js
|
|
1838
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1839
|
+
function forceTool(name) {
|
|
1840
|
+
{
|
|
1841
|
+
return { type: "function", function: { name } };
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/store.js
|
|
1846
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1847
|
+
async function loadAll(kv, prefix) {
|
|
1848
|
+
{
|
|
1849
|
+
let out = [];
|
|
1850
|
+
for (const k of await (kv.keys(prefix) ?? null)) {
|
|
1851
|
+
let v = await (kv.get(k) ?? null);
|
|
1852
|
+
if (v != null) {
|
|
1853
|
+
out.push(v) ?? null;
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
return out;
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
function sessionStore(kv, scope) {
|
|
1860
|
+
{
|
|
1861
|
+
let prefix = (scope ?? "default") + ":session:";
|
|
1862
|
+
return { load: async () => {
|
|
1863
|
+
{
|
|
1864
|
+
return await (loadAll(kv, prefix) ?? null);
|
|
1865
|
+
}
|
|
1866
|
+
}, save: async (s) => {
|
|
1867
|
+
{
|
|
1868
|
+
await (kv.set(prefix + s.id, s) ?? null);
|
|
1869
|
+
}
|
|
1870
|
+
}, remove: async (id) => {
|
|
1871
|
+
{
|
|
1872
|
+
await ((kv["delete"] ?? null)(prefix + id) ?? null);
|
|
1873
|
+
}
|
|
1874
|
+
} };
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
function runStore(kv, scope) {
|
|
1878
|
+
{
|
|
1879
|
+
let prefix = (scope ?? "default") + ":run:";
|
|
1880
|
+
return { get: async (id) => {
|
|
1881
|
+
{
|
|
1882
|
+
return await (kv.get(prefix + id) ?? null);
|
|
1883
|
+
}
|
|
1884
|
+
}, save: async (run) => {
|
|
1885
|
+
{
|
|
1886
|
+
await (kv.set(prefix + run.id, run) ?? null);
|
|
1887
|
+
}
|
|
1888
|
+
}, list: async () => {
|
|
1889
|
+
{
|
|
1890
|
+
return await (loadAll(kv, prefix) ?? null);
|
|
1891
|
+
}
|
|
1892
|
+
}, remove: async (id) => {
|
|
1893
|
+
{
|
|
1894
|
+
await ((kv["delete"] ?? null)(prefix + id) ?? null);
|
|
1895
|
+
}
|
|
1896
|
+
} };
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/run.js
|
|
1901
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1902
|
+
function errorMessage3(err) {
|
|
1903
|
+
{
|
|
1904
|
+
if (err != null && ((__v) => __v == null ? "null" : typeof __v)(err) === "object" && ((__v) => __v == null ? "null" : typeof __v)(err.message) === "string") {
|
|
1905
|
+
return err.message;
|
|
1906
|
+
}
|
|
1907
|
+
return String(err) ?? null;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
async function runPersistent(opts) {
|
|
1911
|
+
{
|
|
1912
|
+
let now = ((__v) => __v == null ? "null" : typeof __v)(opts.now) === "function" ? opts.now : () => {
|
|
1913
|
+
{
|
|
1914
|
+
return Date.now() ?? null;
|
|
1915
|
+
}
|
|
1916
|
+
};
|
|
1917
|
+
let existing = await (opts.runs.get(opts.id) ?? null);
|
|
1918
|
+
let createdAt = existing != null ? existing.createdAt : now() ?? null;
|
|
1919
|
+
let record = (status, checkpoint) => {
|
|
1920
|
+
{
|
|
1921
|
+
let todos = opts.todos != null && ((__v) => __v == null ? "null" : typeof __v)(opts.todos) === "object" ? opts.todos.get() ?? null : existing != null ? existing.todos ?? null : null;
|
|
1922
|
+
let meta = opts.meta ?? (existing != null ? existing.meta ?? null : null);
|
|
1923
|
+
return { id: opts.id, createdAt, updatedAt: now() ?? null, meta, todos, status, checkpoint };
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
let first = existing != null ? existing.checkpoint : { messages: opts.messages, round: 0, acted: false, nudgesLeft: 0, done: false };
|
|
1927
|
+
await (opts.runs.save(record("running", first) ?? null) ?? null);
|
|
1928
|
+
let mark = async (status, error) => {
|
|
1929
|
+
{
|
|
1930
|
+
let saved = await (opts.runs.get(opts.id) ?? null);
|
|
1931
|
+
if (saved != null) {
|
|
1932
|
+
let next = { ...saved, status, updatedAt: now() ?? null };
|
|
1933
|
+
if (((__v) => __v == null ? "null" : typeof __v)(error) === "string") {
|
|
1934
|
+
next.error = error;
|
|
1935
|
+
}
|
|
1936
|
+
await (opts.runs.save(next) ?? null);
|
|
1937
|
+
}
|
|
1938
|
+
}
|
|
1939
|
+
};
|
|
1940
|
+
let outcome = null;
|
|
1941
|
+
try {
|
|
1942
|
+
{
|
|
1943
|
+
outcome = await (runAgentLoop({ ...opts, checkpoint: async (state) => {
|
|
1944
|
+
{
|
|
1945
|
+
await (opts.runs.save(record(state.done ? "done" : "running", state) ?? null) ?? null);
|
|
1946
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.checkpoint) === "function") {
|
|
1947
|
+
await (opts.checkpoint(state) ?? null);
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
} }) ?? null);
|
|
1951
|
+
}
|
|
1952
|
+
} catch (err) {
|
|
1953
|
+
{
|
|
1954
|
+
await (mark("error", errorMessage3(err) ?? null) ?? null);
|
|
1955
|
+
throw err;
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
if (outcome.stopped) {
|
|
1959
|
+
await (mark("stopped", null) ?? null);
|
|
1960
|
+
}
|
|
1961
|
+
return outcome;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
async function interruptedRuns(runs2, activeIds) {
|
|
1965
|
+
{
|
|
1966
|
+
let active = new Set(activeIds ?? []) ?? null;
|
|
1967
|
+
return (await (runs2.list() ?? null)).filter((r) => {
|
|
1968
|
+
{
|
|
1969
|
+
return r.status === "running" && !(active.has(r.id) ?? null);
|
|
1970
|
+
}
|
|
1971
|
+
}) ?? null;
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
async function resumeRun(id, runs2, options) {
|
|
1975
|
+
{
|
|
1976
|
+
let saved = await (runs2.get(id) ?? null);
|
|
1977
|
+
if (saved == null) {
|
|
1978
|
+
throw { message: 'No saved run "' + id + '".', code: "not_found" };
|
|
1979
|
+
}
|
|
1980
|
+
let cp = saved.checkpoint;
|
|
1981
|
+
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);
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/router.js
|
|
1986
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
1987
|
+
var ROUTER_PROMPT = 'You pick the next tool for a coding agent. Answer with JSON only: {"tool": "<one of the tool names, or none>", "p": <your confidence 0..1>}. Pick "none" when the agent should answer in words or the choice is unclear.';
|
|
1988
|
+
function createRouter(opts) {
|
|
1989
|
+
{
|
|
1990
|
+
let call = roleModel(opts.callModel, opts.spec) ?? null;
|
|
1991
|
+
let threshold = ((__v) => __v == null ? "null" : typeof __v)(opts.threshold) === "number" ? opts.threshold : 0.8;
|
|
1992
|
+
let maxChars = ((__v) => __v == null ? "null" : typeof __v)(opts.maxChars) === "number" ? opts.maxChars : 12e3;
|
|
1993
|
+
return async (req) => {
|
|
1994
|
+
{
|
|
1995
|
+
if (!(Array.isArray(req.tools) ?? null) || req.tools.length === 0) {
|
|
1996
|
+
return null;
|
|
1997
|
+
}
|
|
1998
|
+
let names = req.tools.map((t2) => {
|
|
1999
|
+
{
|
|
2000
|
+
return (t2["function"] ?? null).name;
|
|
2001
|
+
}
|
|
2002
|
+
}) ?? null;
|
|
2003
|
+
let turn = null;
|
|
2004
|
+
try {
|
|
2005
|
+
{
|
|
2006
|
+
turn = await (call([{ role: "system", content: ROUTER_PROMPT }, { role: "user", content: "Tools: " + (names.join(", ") ?? null) + "\n\nRecent session:\n" + (renderTranscript(req.messages, maxChars) ?? null) }], [], {}, null, null) ?? null);
|
|
2007
|
+
}
|
|
2008
|
+
} catch (err) {
|
|
2009
|
+
{
|
|
2010
|
+
return null;
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
let tool = null;
|
|
2014
|
+
let p = 0;
|
|
2015
|
+
let t = (turn.text ?? "").trim() ?? null;
|
|
2016
|
+
let start = t.indexOf("{") ?? null;
|
|
2017
|
+
let end = t.lastIndexOf("}") ?? null;
|
|
2018
|
+
if (start >= 0 && end > start) {
|
|
2019
|
+
try {
|
|
2020
|
+
{
|
|
2021
|
+
let j = JSON.parse(t.slice(start, end + 1) ?? null) ?? null;
|
|
2022
|
+
if (((__v) => __v == null ? "null" : typeof __v)(j.tool) === "string" && (names.includes(j.tool) ?? null)) {
|
|
2023
|
+
tool = j.tool;
|
|
2024
|
+
}
|
|
2025
|
+
if (((__v) => __v == null ? "null" : typeof __v)(j.p) === "number") {
|
|
2026
|
+
p = j.p;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
} catch (e) {
|
|
2030
|
+
{
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
let sharp = tool != null && p >= threshold;
|
|
2035
|
+
if (((__v) => __v == null ? "null" : typeof __v)(opts.onEvent) === "function") {
|
|
2036
|
+
opts.onEvent({ type: "router:pick", round: req.round, model: opts.spec.model, tool, p, sharp }) ?? null;
|
|
2037
|
+
}
|
|
2038
|
+
return sharp ? forceTool(tool) ?? null : null;
|
|
2039
|
+
}
|
|
2040
|
+
};
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/auto.js
|
|
2045
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2046
|
+
function normalizeMode(mode) {
|
|
2047
|
+
{
|
|
2048
|
+
if (mode === "off" || mode === false) {
|
|
2049
|
+
return "off";
|
|
2050
|
+
}
|
|
2051
|
+
if (mode === "ultra") {
|
|
2052
|
+
return "ultra";
|
|
2053
|
+
}
|
|
2054
|
+
return "auto";
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
function createOrchestration(callModel, opts) {
|
|
2058
|
+
{
|
|
2059
|
+
let o = opts ?? {};
|
|
2060
|
+
let mode = normalizeMode(o.mode ?? "auto") ?? null;
|
|
2061
|
+
let skill = o.skill != null && ((__v) => __v == null ? "null" : typeof __v)(o.skill) === "object" ? o.skill : null;
|
|
2062
|
+
let catalog = o.catalog ?? null;
|
|
2063
|
+
let emit = (e) => {
|
|
2064
|
+
{
|
|
2065
|
+
if (((__v) => __v == null ? "null" : typeof __v)(o.onEvent) === "function") {
|
|
2066
|
+
o.onEvent(e) ?? null;
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
};
|
|
2070
|
+
let hostLimit = ((__v) => __v == null ? "null" : typeof __v)(o.maxConcurrent) === "number" ? o.maxConcurrent : null;
|
|
2071
|
+
if (mode === "off" || skill == null) {
|
|
2072
|
+
return { mode, skill: null, roles: {}, maxConcurrent: hostLimit, guidance: "", callModel, childModel: (m) => {
|
|
2073
|
+
{
|
|
2074
|
+
return null;
|
|
2075
|
+
}
|
|
2076
|
+
}, advise: null, route: null };
|
|
2077
|
+
}
|
|
2078
|
+
emit({ type: "skill", skill: skill.name }) ?? null;
|
|
2079
|
+
let roles = mergeRoles(skill.roles, o.roles ?? null) ?? null;
|
|
2080
|
+
if (((__v) => __v == null ? "null" : typeof __v)(o.effort) === "string" && (roles.lead ?? null) != null) {
|
|
2081
|
+
roles = mergeRoles(roles, { lead: { effort: o.effort } }) ?? null;
|
|
2082
|
+
}
|
|
2083
|
+
let specs = {};
|
|
2084
|
+
let calls = {};
|
|
2085
|
+
let callFor = (role) => {
|
|
2086
|
+
{
|
|
2087
|
+
if ((calls[role] ?? null ?? null) == null) {
|
|
2088
|
+
let spec = resolveRole(role, roles, catalog) ?? null;
|
|
2089
|
+
if (spec == null) {
|
|
2090
|
+
return null;
|
|
2091
|
+
}
|
|
2092
|
+
specs[role] = spec;
|
|
2093
|
+
calls[role] = roleModel(callModel, spec) ?? null;
|
|
2094
|
+
emit({ type: "role:model", role, model: spec.model }) ?? null;
|
|
2095
|
+
}
|
|
2096
|
+
return calls[role] ?? null;
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
let lead = callFor("lead") ?? null ?? callModel;
|
|
2100
|
+
let advise = null;
|
|
2101
|
+
let route = null;
|
|
2102
|
+
if ((callFor("advisor") ?? null) != null) {
|
|
2103
|
+
let triggers = null;
|
|
2104
|
+
if (Array.isArray(skill.advisorTriggers) ?? null) {
|
|
2105
|
+
triggers = { plan: skill.advisorTriggers.includes("plan") ?? null, done: skill.advisorTriggers.includes("done") ?? null, error: skill.advisorTriggers.includes("error") ?? null, ask: skill.advisorTriggers.includes("ask") ?? null };
|
|
2106
|
+
}
|
|
2107
|
+
advise = (createAdvisor({ callModel, spec: specs.advisor, triggers, maxCalls: skill.advisorMaxCalls ?? null, maxChars: null, guidance: skill.guidance, onEvent: (e) => {
|
|
2108
|
+
{
|
|
2109
|
+
emit(e) ?? null;
|
|
2110
|
+
}
|
|
2111
|
+
} }) ?? null).advise;
|
|
2112
|
+
}
|
|
2113
|
+
if (((__v) => __v == null ? "null" : typeof __v)(skill.routerThreshold) === "number" && (callFor("router") ?? null) != null) {
|
|
2114
|
+
route = createRouter({ callModel, spec: specs.router, threshold: skill.routerThreshold, onEvent: (e) => {
|
|
2115
|
+
{
|
|
2116
|
+
emit(e) ?? null;
|
|
2117
|
+
}
|
|
2118
|
+
} }) ?? null;
|
|
2119
|
+
}
|
|
2120
|
+
return { mode, skill, roles, maxConcurrent: hostLimit ?? skill.maxConcurrent ?? null, guidance: skill.guidance, callModel: lead, childModel: (profileModel) => {
|
|
2121
|
+
{
|
|
2122
|
+
let role = roleOfProfileModel(profileModel) ?? null;
|
|
2123
|
+
if (role == null) {
|
|
2124
|
+
return roleModel(callModel, { model: profileModel, effort: (specs.lead ?? {}).effort ?? null, fallback: null }) ?? null;
|
|
2125
|
+
}
|
|
2126
|
+
return callFor(role) ?? null ?? lead;
|
|
2127
|
+
}
|
|
2128
|
+
}, advise, route };
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/core/orchestration-skill.js
|
|
2133
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2134
|
+
function splitList(v) {
|
|
2135
|
+
{
|
|
2136
|
+
if ((v ?? null) == null) {
|
|
2137
|
+
return [];
|
|
2138
|
+
}
|
|
2139
|
+
return ((v.split(",") ?? null).map((s) => {
|
|
2140
|
+
{
|
|
2141
|
+
return s.trim() ?? null;
|
|
2142
|
+
}
|
|
2143
|
+
}) ?? null).filter((s) => {
|
|
2144
|
+
{
|
|
2145
|
+
return s !== "";
|
|
2146
|
+
}
|
|
2147
|
+
}) ?? null;
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
function unquote(v) {
|
|
2151
|
+
{
|
|
2152
|
+
let t = v.trim() ?? null;
|
|
2153
|
+
if (t.length >= 2 && ((t.startsWith('"') ?? null) && (t.endsWith('"') ?? null) || (t.startsWith("'") ?? null) && (t.endsWith("'") ?? null))) {
|
|
2154
|
+
return t.slice(1, t.length - 1) ?? null;
|
|
2155
|
+
}
|
|
2156
|
+
return t;
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
function num(v) {
|
|
2160
|
+
{
|
|
2161
|
+
if ((v ?? null) == null || v === "") {
|
|
2162
|
+
return null;
|
|
2163
|
+
}
|
|
2164
|
+
let n = Number(v) ?? null;
|
|
2165
|
+
return Number.isFinite(n) ?? null ? n : null;
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
function parseOrchestrationSkill(text) {
|
|
2169
|
+
{
|
|
2170
|
+
let src = ((__v) => __v == null ? "null" : typeof __v)(text) === "string" ? (text.split("\r\n") ?? null).join("\n") ?? null : "";
|
|
2171
|
+
if (!(src.startsWith("---\n") ?? null)) {
|
|
2172
|
+
return null;
|
|
2173
|
+
}
|
|
2174
|
+
let end = src.indexOf("\n---", 4) ?? null;
|
|
2175
|
+
if (end < 0) {
|
|
2176
|
+
return null;
|
|
2177
|
+
}
|
|
2178
|
+
let head = src.slice(4, end) ?? null;
|
|
2179
|
+
let body = src.slice(end + 4) ?? null;
|
|
2180
|
+
if (body.startsWith("\n") ?? null) {
|
|
2181
|
+
body = body.slice(1) ?? null;
|
|
2182
|
+
}
|
|
2183
|
+
let f = {};
|
|
2184
|
+
for (const line of head.split("\n") ?? null) {
|
|
2185
|
+
let i = line.indexOf(":") ?? null;
|
|
2186
|
+
if (i <= 0 || ((line.trim() ?? null).startsWith("#") ?? null)) {
|
|
2187
|
+
continue;
|
|
2188
|
+
}
|
|
2189
|
+
f[((line.slice(0, i) ?? null).trim() ?? null).toLowerCase() ?? null] = unquote(line.slice(i + 1) ?? null) ?? null;
|
|
2190
|
+
}
|
|
2191
|
+
if ((f["kind"] ?? null ?? "") !== "orchestration") {
|
|
2192
|
+
return null;
|
|
2193
|
+
}
|
|
2194
|
+
let roles = {};
|
|
2195
|
+
for (const r of MODEL_ROLES) {
|
|
2196
|
+
let model = f[r] ?? null ?? "";
|
|
2197
|
+
if (model === "") {
|
|
2198
|
+
continue;
|
|
2199
|
+
}
|
|
2200
|
+
let spec = { model, effort: (f[r + "_effort"] ?? null ?? "") !== "" ? f[r + "_effort"] ?? null : null, fallback: splitList(f[r + "_fallback"] ?? null ?? null) ?? null };
|
|
2201
|
+
roles[r] = spec;
|
|
2202
|
+
}
|
|
2203
|
+
let triggers = splitList(f["advisor_triggers"] ?? null ?? null) ?? null;
|
|
2204
|
+
return { name: (f["name"] ?? null ?? "") !== "" ? f["name"] ?? null : "orchestration", description: f["description"] ?? null ?? "", modes: (splitList(f["modes"] ?? null ?? null) ?? null).map((m) => {
|
|
2205
|
+
{
|
|
2206
|
+
return m.toLowerCase() ?? null;
|
|
2207
|
+
}
|
|
2208
|
+
}) ?? null, roles, advisorTriggers: triggers.length > 0 ? triggers : null, advisorMaxCalls: num(f["advisor_max_calls"] ?? null ?? null) ?? null, routerThreshold: num(f["router_threshold"] ?? null ?? null) ?? null, maxConcurrent: num(f["max_concurrent"] ?? null ?? null) ?? null, guidance: body.trim() ?? null };
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
function skillsForMode(skills, mode) {
|
|
2212
|
+
{
|
|
2213
|
+
if (mode === "off" || !(Array.isArray(skills) ?? null)) {
|
|
2214
|
+
return [];
|
|
2215
|
+
}
|
|
2216
|
+
return skills.filter((s) => {
|
|
2217
|
+
{
|
|
2218
|
+
return s != null && ((__v) => __v == null ? "null" : typeof __v)(s) === "object" && (s.modes.length === 0 || (s.modes.includes(mode) ?? null));
|
|
2219
|
+
}
|
|
2220
|
+
}) ?? null;
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
async function chooseOrchestrationSkill(callModel, skills, task, mode) {
|
|
2224
|
+
{
|
|
2225
|
+
let candidates = skillsForMode(skills, mode) ?? null;
|
|
2226
|
+
if (candidates.length === 0) {
|
|
2227
|
+
return null;
|
|
2228
|
+
}
|
|
2229
|
+
if (candidates.length === 1) {
|
|
2230
|
+
return candidates[0] ?? null;
|
|
2231
|
+
}
|
|
2232
|
+
let list = (candidates.map((s) => {
|
|
2233
|
+
{
|
|
2234
|
+
return "- " + s.name + ": " + s.description;
|
|
2235
|
+
}
|
|
2236
|
+
}) ?? null).join("\n") ?? null;
|
|
2237
|
+
let messages = [{ role: "system", content: "Pick the orchestration skill that fits the task. Reply with its name only, or `none`." }, { role: "user", content: "Skills:\n" + list + "\n\nTask:\n" + task }];
|
|
2238
|
+
let turn = null;
|
|
2239
|
+
try {
|
|
2240
|
+
{
|
|
2241
|
+
turn = await (callModel(messages, [], {}, null, null) ?? null);
|
|
2242
|
+
}
|
|
2243
|
+
} catch (err) {
|
|
2244
|
+
{
|
|
2245
|
+
return null;
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
let said = ((String(turn.text ?? "") ?? null).trim() ?? null).toLowerCase() ?? null;
|
|
2249
|
+
for (const ch of ["`", "'", '"', "*", "."]) {
|
|
2250
|
+
said = (said.split(ch) ?? null).join("") ?? null;
|
|
2251
|
+
}
|
|
2252
|
+
for (const s of candidates) {
|
|
2253
|
+
if (said === (s.name.toLowerCase() ?? null) || (said.includes(s.name.toLowerCase() ?? null) ?? null)) {
|
|
2254
|
+
return s;
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
return null;
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/indexeddb.js
|
|
2262
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2263
|
+
function indexedDbStore(name = "hypery-agents") {
|
|
2264
|
+
let db = null;
|
|
2265
|
+
const open = () => db ?? (db = new Promise((res, rej) => {
|
|
2266
|
+
const req = indexedDB.open(name, 1);
|
|
2267
|
+
req.onupgradeneeded = () => {
|
|
2268
|
+
req.result.createObjectStore("kv");
|
|
2269
|
+
};
|
|
2270
|
+
req.onsuccess = () => res(req.result);
|
|
2271
|
+
req.onerror = () => rej(req.error);
|
|
2272
|
+
}));
|
|
2273
|
+
const tx = async (mode, fn) => {
|
|
2274
|
+
const store = (await open()).transaction("kv", mode).objectStore("kv");
|
|
2275
|
+
return new Promise((res, rej) => {
|
|
2276
|
+
const r = fn(store);
|
|
2277
|
+
r.onsuccess = () => res(r.result);
|
|
2278
|
+
r.onerror = () => rej(r.error);
|
|
2279
|
+
});
|
|
2280
|
+
};
|
|
2281
|
+
return {
|
|
2282
|
+
// A missing key reads as null, as the core's stores do.
|
|
2283
|
+
get: async (k) => await tx("readonly", (s) => s.get(k)) ?? null,
|
|
2284
|
+
set: async (k, v) => {
|
|
2285
|
+
await tx("readwrite", (s) => s.put(structuredClone(v), k));
|
|
2286
|
+
},
|
|
2287
|
+
delete: async (k) => {
|
|
2288
|
+
await tx("readwrite", (s) => s.delete(k));
|
|
2289
|
+
},
|
|
2290
|
+
keys: async (prefix) => (await tx("readonly", (s) => s.getAllKeys())).map(String).filter((k) => k.startsWith(prefix))
|
|
2291
|
+
};
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
// node_modules/.pnpm/@hyperyai+sdk@3.1.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@19.3.0_re_d69693b791dff3e94d3ba5e17f14c5e0/node_modules/@hyperyai/sdk/dist/agents/index.js
|
|
2295
|
+
function createHyperyModel2(opts) {
|
|
2296
|
+
return createHyperyModel({ ...opts, fetch: opts.fetch ?? ((url, init) => fetch(url, init)) });
|
|
2297
|
+
}
|
|
2298
|
+
function createAgentRuntime2(host) {
|
|
2299
|
+
return createAgentRuntime({
|
|
2300
|
+
...host,
|
|
2301
|
+
createSignal: host.createSignal ?? (() => {
|
|
2302
|
+
const controller = new AbortController();
|
|
2303
|
+
return { signal: controller.signal, stop: () => controller.abort() };
|
|
2304
|
+
})
|
|
2305
|
+
// The core types a child's signal as anything with `aborted`; here every one comes from `createSignal`, whose
|
|
2306
|
+
// signals are AbortSignals — so the host's callbacks may rely on that.
|
|
2307
|
+
});
|
|
2308
|
+
}
|
|
2309
|
+
|
|
2310
|
+
// lib/agent/stream-parse.ts
|
|
2311
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2312
|
+
|
|
2313
|
+
// lib/agent/gateway.ts
|
|
2314
|
+
var session = {
|
|
2315
|
+
token: () => accessToken(),
|
|
2316
|
+
team: () => activeHyperyTeamId(),
|
|
2317
|
+
paymentSource: async () => (await paymentSourceHeaders())[HYPERY_PAYMENT_SOURCE_HEADER] === "credits" ? "credits" : null,
|
|
2318
|
+
gatewayUrl: HYPERY_GATEWAY_URL
|
|
2319
|
+
};
|
|
2320
|
+
var agentModel2 = (model) => createHyperyModel2({
|
|
2321
|
+
...session,
|
|
2322
|
+
model: () => {
|
|
2323
|
+
const id = model();
|
|
2324
|
+
if (!id) throw agentModelError("Pick a chat model for the agent first.", "no_model", 400);
|
|
2325
|
+
return id;
|
|
2326
|
+
}
|
|
2327
|
+
});
|
|
2328
|
+
|
|
2329
|
+
// lib/agent/turn-recovery.ts
|
|
2330
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2331
|
+
var ACTION_NUDGES = 2;
|
|
2332
|
+
var MAX_READ_ROUNDS = 4;
|
|
2333
|
+
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.";
|
|
2334
|
+
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.";
|
|
2335
|
+
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;
|
|
2336
|
+
function wantsChange(text) {
|
|
2337
|
+
const body = text.trim();
|
|
2338
|
+
if (!body) return false;
|
|
2339
|
+
return !(body.endsWith("?") && QUESTION_START.test(body));
|
|
2340
|
+
}
|
|
2341
|
+
function createActionGuard(opts) {
|
|
2342
|
+
const maxReads = opts.maxReadRounds ?? MAX_READ_ROUNDS;
|
|
2343
|
+
const maxNudges = opts.nudges ?? ACTION_NUDGES;
|
|
2344
|
+
let readRounds = opts.initial?.readRounds ?? 0;
|
|
2345
|
+
let nudges = opts.initial?.nudges ?? 0;
|
|
2346
|
+
let acted = false;
|
|
2347
|
+
let actedThisRound = false;
|
|
2348
|
+
let ranThisRound = false;
|
|
2349
|
+
let notes = [];
|
|
2350
|
+
let choice = null;
|
|
2351
|
+
let budgetSpent = readRounds >= maxReads;
|
|
2352
|
+
return {
|
|
2353
|
+
onRun(run, changed) {
|
|
2354
|
+
ranThisRound = true;
|
|
2355
|
+
if (run.ok && changed) {
|
|
2356
|
+
acted = true;
|
|
2357
|
+
actedThisRound = true;
|
|
2358
|
+
}
|
|
2359
|
+
},
|
|
2360
|
+
onRoundEnd() {
|
|
2361
|
+
if (!opts.enabled || acted || !ranThisRound) {
|
|
2362
|
+
ranThisRound = false;
|
|
2363
|
+
actedThisRound = false;
|
|
2364
|
+
return;
|
|
2365
|
+
}
|
|
2366
|
+
if (!actedThisRound) readRounds++;
|
|
2367
|
+
ranThisRound = false;
|
|
2368
|
+
actedThisRound = false;
|
|
2369
|
+
if (!budgetSpent && readRounds >= maxReads) {
|
|
2370
|
+
budgetSpent = true;
|
|
2371
|
+
notes.push(READ_BUDGET_NOTE);
|
|
2372
|
+
choice = "required";
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
onNudge() {
|
|
2376
|
+
nudges++;
|
|
2377
|
+
if (opts.enabled && nudges >= maxNudges && opts.writeTool) choice = forceTool(opts.writeTool);
|
|
2378
|
+
else if (opts.enabled) choice = "required";
|
|
2379
|
+
return nudges;
|
|
2380
|
+
},
|
|
2381
|
+
drain() {
|
|
2382
|
+
const out = notes;
|
|
2383
|
+
notes = [];
|
|
2384
|
+
return out;
|
|
2385
|
+
},
|
|
2386
|
+
toolChoice() {
|
|
2387
|
+
if (acted) return null;
|
|
2388
|
+
const c = choice;
|
|
2389
|
+
choice = null;
|
|
2390
|
+
return c;
|
|
2391
|
+
},
|
|
2392
|
+
get acted() {
|
|
2393
|
+
return acted;
|
|
2394
|
+
},
|
|
2395
|
+
state: () => ({ readRounds, nudges, forced: budgetSpent })
|
|
2396
|
+
};
|
|
2397
|
+
}
|
|
2398
|
+
function createToolLedger(initial = null) {
|
|
2399
|
+
let done = { ...initial ?? {} };
|
|
2400
|
+
return {
|
|
2401
|
+
get: (id) => done[id],
|
|
2402
|
+
record: (run) => {
|
|
2403
|
+
done = { ...done, [run.id]: { id: run.id, name: run.name, argsText: run.argsText, ok: run.ok, summary: run.summary, content: run.content } };
|
|
2404
|
+
},
|
|
2405
|
+
entries: () => done,
|
|
2406
|
+
clear: () => {
|
|
2407
|
+
done = {};
|
|
2408
|
+
}
|
|
2409
|
+
};
|
|
2410
|
+
}
|
|
2411
|
+
async function runOnce(ledger, call, run) {
|
|
2412
|
+
const seen = ledger.get(call.id);
|
|
2413
|
+
if (seen) return { ...seen, acted: false, replayed: true };
|
|
2414
|
+
const result = await run();
|
|
2415
|
+
ledger.record(result);
|
|
2416
|
+
return result;
|
|
2417
|
+
}
|
|
2418
|
+
function resumeTranscript(checkpoint, pending, ledger) {
|
|
2419
|
+
if (!pending?.calls.length) return checkpoint;
|
|
2420
|
+
const answered = new Set(checkpoint.filter((m) => m.role === "tool").map((m) => m.tool_call_id));
|
|
2421
|
+
if (pending.calls.every((c) => answered.has(c.id))) return checkpoint;
|
|
2422
|
+
const assistant = {
|
|
2423
|
+
role: "assistant",
|
|
2424
|
+
content: pending.text,
|
|
2425
|
+
tool_calls: pending.calls.map((c) => ({ id: c.id, type: "function", function: { name: c.name, arguments: c.argsText } }))
|
|
2426
|
+
};
|
|
2427
|
+
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 }));
|
|
2428
|
+
return [...checkpoint, assistant, ...answers];
|
|
2429
|
+
}
|
|
2430
|
+
var browserSignals = () => {
|
|
2431
|
+
if (typeof document === "undefined" || typeof window === "undefined") return null;
|
|
2432
|
+
return {
|
|
2433
|
+
hidden: () => document.visibilityState === "hidden",
|
|
2434
|
+
online: () => typeof navigator === "undefined" || navigator.onLine !== false,
|
|
2435
|
+
subscribe: (fn) => {
|
|
2436
|
+
document.addEventListener("visibilitychange", fn);
|
|
2437
|
+
window.addEventListener("online", fn);
|
|
2438
|
+
window.addEventListener("pageshow", fn);
|
|
2439
|
+
return () => {
|
|
2440
|
+
document.removeEventListener("visibilitychange", fn);
|
|
2441
|
+
window.removeEventListener("online", fn);
|
|
2442
|
+
window.removeEventListener("pageshow", fn);
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
};
|
|
2446
|
+
};
|
|
2447
|
+
function whenResumable(signals = browserSignals(), signal, offlineWaitMs = 0) {
|
|
2448
|
+
if (!signals || signal?.aborted) return Promise.resolve();
|
|
2449
|
+
const visible = () => !signals.hidden() ? Promise.resolve() : new Promise((resolve2) => {
|
|
2450
|
+
const done = () => {
|
|
2451
|
+
off();
|
|
2452
|
+
signal?.removeEventListener("abort", done);
|
|
2453
|
+
resolve2();
|
|
2454
|
+
};
|
|
2455
|
+
const off = signals.subscribe(() => {
|
|
2456
|
+
if (!signals.hidden()) done();
|
|
2457
|
+
});
|
|
2458
|
+
signal?.addEventListener("abort", done);
|
|
2459
|
+
});
|
|
2460
|
+
return visible().then(() => {
|
|
2461
|
+
if (!offlineWaitMs || signals.online() || signal?.aborted) return;
|
|
2462
|
+
return new Promise((resolve2) => {
|
|
2463
|
+
const done = () => {
|
|
2464
|
+
clearTimeout(timer);
|
|
2465
|
+
off();
|
|
2466
|
+
signal?.removeEventListener("abort", done);
|
|
2467
|
+
resolve2();
|
|
2468
|
+
};
|
|
2469
|
+
const timer = setTimeout(done, offlineWaitMs);
|
|
2470
|
+
const off = signals.subscribe(() => {
|
|
2471
|
+
if (signals.online()) done();
|
|
2472
|
+
});
|
|
2473
|
+
signal?.addEventListener("abort", done);
|
|
2474
|
+
});
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
function isInterruption(err, hidden = false) {
|
|
2478
|
+
if (hidden) return true;
|
|
2479
|
+
const e = err ?? {};
|
|
2480
|
+
if (e.code === "ai_timeout") return true;
|
|
2481
|
+
if (typeof e.status === "number") return e.status >= 500 || e.status === 408;
|
|
2482
|
+
const text = `${String(e.name ?? "")} ${String(e.code ?? "")} ${String(e.message ?? "")}`.toLowerCase();
|
|
2483
|
+
return ["load failed", "failed to fetch", "network", "fetch failed", "econnreset", "socket", "stream", "stalled", "timed out", "timeout"].some((w) => text.includes(w));
|
|
2484
|
+
}
|
|
2485
|
+
function serialRuns(inner) {
|
|
2486
|
+
const latest = /* @__PURE__ */ new Map();
|
|
2487
|
+
let queue = Promise.resolve();
|
|
2488
|
+
return {
|
|
2489
|
+
peek: (id) => latest.get(id),
|
|
2490
|
+
get: async (id) => latest.get(id) ?? inner.get(id),
|
|
2491
|
+
save: (rec) => {
|
|
2492
|
+
latest.set(rec.id, rec);
|
|
2493
|
+
const write = queue.then(() => inner.save(rec));
|
|
2494
|
+
queue = write.catch(() => {
|
|
2495
|
+
});
|
|
2496
|
+
return write;
|
|
2497
|
+
},
|
|
2498
|
+
list: async () => {
|
|
2499
|
+
await queue;
|
|
2500
|
+
return inner.list();
|
|
2501
|
+
},
|
|
2502
|
+
remove: (id) => {
|
|
2503
|
+
latest.delete(id);
|
|
2504
|
+
const write = queue.then(() => inner.remove(id));
|
|
2505
|
+
queue = write.catch(() => {
|
|
2506
|
+
});
|
|
2507
|
+
return write;
|
|
2508
|
+
}
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
// lib/agent/tools/subagent-tools.ts
|
|
2513
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2514
|
+
|
|
2515
|
+
// lib/agent/subagent.ts
|
|
2516
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2517
|
+
|
|
2518
|
+
// lib/agent/orchestration.ts
|
|
2519
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2520
|
+
var MODE_KEY = "popcraft-agent-orchestration";
|
|
2521
|
+
function loadMode() {
|
|
2522
|
+
try {
|
|
2523
|
+
return normalizeMode(typeof localStorage === "undefined" ? null : localStorage.getItem(MODE_KEY));
|
|
2524
|
+
} catch {
|
|
2525
|
+
return "auto";
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
var useOrchestrationStore = create(() => ({ mode: loadMode() }));
|
|
2529
|
+
var orchestrationMode = () => useOrchestrationStore.getState().mode;
|
|
2530
|
+
var orchestrationSkillOf = (skill) => parseOrchestrationSkill(skill.instructions);
|
|
2531
|
+
var orchestrationSkills = (skills = allSkills()) => skills.map(orchestrationSkillOf).filter((s) => s !== null);
|
|
2532
|
+
var current = null;
|
|
2533
|
+
var currentOrchestration = () => current;
|
|
2534
|
+
async function orchestrateTurn(opts) {
|
|
2535
|
+
const mode = opts.mode ?? orchestrationMode();
|
|
2536
|
+
let skill = null;
|
|
2537
|
+
if (mode !== "off") {
|
|
2538
|
+
skill = await chooseOrchestrationSkill(opts.callModel, opts.skills ?? orchestrationSkills(), opts.task, mode).catch(() => null);
|
|
2539
|
+
}
|
|
2540
|
+
if (skill && opts.explicitModel && skill.roles?.lead) {
|
|
2541
|
+
const { lead: _lead, ...roles } = skill.roles;
|
|
2542
|
+
skill = { ...skill, roles };
|
|
2543
|
+
}
|
|
2544
|
+
current = createOrchestration(opts.callModel, { mode, skill, onEvent: opts.onEvent });
|
|
2545
|
+
return current;
|
|
2546
|
+
}
|
|
2547
|
+
function endOrchestration(orch) {
|
|
2548
|
+
if (current === orch) current = null;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
// lib/agent/prompt.ts
|
|
2552
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2553
|
+
init_limits();
|
|
2554
|
+
var PROMPT_LIMITS = {
|
|
2555
|
+
maxPromptChars: 14400,
|
|
2556
|
+
maxSkillIndexChars: 5200,
|
|
2557
|
+
maxProfileIndexChars: 1600,
|
|
2558
|
+
maxContextChars: AI_LIMITS.maxContextChars,
|
|
2559
|
+
maxSelectionItems: 12
|
|
2560
|
+
};
|
|
2561
|
+
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.`;
|
|
2562
|
+
var HOW_TO_WORK = `How you work:
|
|
2563
|
+
- Inspect before you edit. Read the selection and the layers you are about to change; never guess at node ids, colors or sizes.
|
|
2564
|
+
- 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.
|
|
2565
|
+
- 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.
|
|
2566
|
+
- Stay inside the scope the user pointed at. The selection is the default scope; do not touch the rest of the page unless asked.
|
|
2567
|
+
- Explain briefly. A line or two about what you did and why, with counts rather than lists. No preamble, no restating the request.
|
|
2568
|
+
- 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.
|
|
2569
|
+
- Pixel art (sprites, characters, items, tiles, 8-/16-bit) always goes in Pixel canvases made with k.pixels, never rects or vectors \u2014 even when the file already holds vector sprites. Read the pixel-sprites skill first. When the request does not say whether the sprite is still or animated (or pixel versus vector), ask with ask_user before building: that choice is consequential, so it is an exception to asking rarely.
|
|
2570
|
+
- Plan visibly for anything longer than a couple of steps: manage_todos puts the plan in front of the user and keeps you honest.
|
|
2571
|
+
- 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.
|
|
2572
|
+
- 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.
|
|
2573
|
+
- 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.`;
|
|
2574
|
+
var describeNodes = (doc, ids) => {
|
|
2575
|
+
const shown = ids.slice(0, PROMPT_LIMITS.maxSelectionItems);
|
|
2576
|
+
const parts = shown.map((id) => {
|
|
2577
|
+
const n = doc.nodes[id];
|
|
2578
|
+
return n ? `${id} (${n.type}${n.name ? ` "${str(n.name, 40)}"` : ""})` : `${id} (missing)`;
|
|
2579
|
+
});
|
|
2580
|
+
const rest = ids.length - shown.length;
|
|
2581
|
+
return parts.join(", ") + (rest > 0 ? `, +${rest} more` : "");
|
|
2582
|
+
};
|
|
2583
|
+
function buildContextBlock(ctx, maxChars = PROMPT_LIMITS.maxContextChars) {
|
|
2584
|
+
const { doc, pageId, selection } = ctx;
|
|
2585
|
+
const page = doc.nodes[pageId];
|
|
2586
|
+
const lines = [
|
|
2587
|
+
`Document: "${str(doc.name, AI_LIMITS.maxNameChars)}" (${doc.pages.length} page${doc.pages.length === 1 ? "" : "s"}, ${Object.keys(doc.nodes).length} nodes)`,
|
|
2588
|
+
`Current page: ${page ? `"${str(page.name, AI_LIMITS.maxNameChars)}"` : "unknown"} (id ${pageId}, ${page?.childIds?.length ?? 0} top-level layers)`,
|
|
2589
|
+
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."
|
|
2590
|
+
];
|
|
2591
|
+
const mentions = mentionContext(ctx.mentions, doc);
|
|
2592
|
+
if (mentions) lines.push(mentions);
|
|
2593
|
+
if (ctx.camera) {
|
|
2594
|
+
const z = Math.round(ctx.camera.zoom * 100);
|
|
2595
|
+
const size = ctx.viewport ? `, ${Math.round(ctx.viewport.width / ctx.camera.zoom)}x${Math.round(ctx.viewport.height / ctx.camera.zoom)} canvas units visible` : "";
|
|
2596
|
+
lines.push(`Viewport: ${z}% zoom at (${Math.round(ctx.camera.x)}, ${Math.round(ctx.camera.y)})${size}`);
|
|
2597
|
+
}
|
|
2598
|
+
const design = buildDesignContext(doc, Math.max(200, Math.floor(maxChars / 2)));
|
|
2599
|
+
if (design) lines.push(design);
|
|
2600
|
+
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.");
|
|
2601
|
+
return joinWithin(lines, maxChars);
|
|
2602
|
+
}
|
|
2603
|
+
function buildSkillIndex(skills, maxChars = PROMPT_LIMITS.maxSkillIndexChars) {
|
|
2604
|
+
return joinWithin(skills.filter((s) => parseOrchestrationSkill(s.instructions) === null).map(skillIndexLine), maxChars);
|
|
2605
|
+
}
|
|
2606
|
+
function buildProfileIndex(profiles, maxChars = PROMPT_LIMITS.maxProfileIndexChars) {
|
|
2607
|
+
return joinWithin(profiles.map(profileIndexLine), maxChars);
|
|
2608
|
+
}
|
|
2609
|
+
function buildSubagentPrompt(instructions, ctx) {
|
|
2610
|
+
const prompt = [instructions, SUBAGENT_FRAMING, `Current context:
|
|
2611
|
+
${buildContextBlock(ctx)}`].join("\n\n");
|
|
2612
|
+
return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
|
|
2613
|
+
\u2026`;
|
|
2614
|
+
}
|
|
2615
|
+
function buildSystemPrompt(ctx) {
|
|
2616
|
+
const skills = ctx.skills ?? allSkills();
|
|
2617
|
+
const profiles = ctx.profiles ?? allProfiles();
|
|
2618
|
+
const active = ctx.activeSkillId ? findSkill(ctx.activeSkillId) : void 0;
|
|
2619
|
+
const sections = [
|
|
2620
|
+
IDENTITY,
|
|
2621
|
+
HOW_TO_WORK,
|
|
2622
|
+
`Skills (read the full instructions with read_skill before you follow one \u2014 only the summaries are here):
|
|
2623
|
+
${buildSkillIndex(skills)}`,
|
|
2624
|
+
`Subagent profiles (spawn one with task({ subagent_type, prompt }); it starts fresh, sees this document but not this conversation, and returns only a summary):
|
|
2625
|
+
${buildProfileIndex(profiles)}`,
|
|
2626
|
+
active ? `The user selected the "${active.name}" skill (${active.id}) for this turn. Call read_skill("${active.id}") first and follow it.` : "",
|
|
2627
|
+
// Last on purpose: selection, camera and viewport change every turn, and providers cache prompts by
|
|
2628
|
+
// prefix — everything above is identical from turn to turn, so it stays cacheable.
|
|
2629
|
+
`Current context:
|
|
2630
|
+
${buildContextBlock(ctx)}`
|
|
2631
|
+
].filter(Boolean);
|
|
2632
|
+
const prompt = sections.join("\n\n");
|
|
2633
|
+
return prompt.length <= PROMPT_LIMITS.maxPromptChars ? prompt : `${prompt.slice(0, PROMPT_LIMITS.maxPromptChars)}
|
|
2634
|
+
\u2026`;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
// lib/agent/subagent.ts
|
|
2638
|
+
var PARENT_ONLY_TOOLS = ["task", "await_job", "send_message", "stop_agent", "list_agents"];
|
|
2639
|
+
var AGENT_SESSIONS_DB = "popcraft-agent-sessions";
|
|
2640
|
+
var FAST_HINTS = ["flash", "mini", "haiku", "lite", "nano", "small"];
|
|
2641
|
+
var isFastModelId = (id) => {
|
|
2642
|
+
const lower = id.toLowerCase();
|
|
2643
|
+
return FAST_HINTS.some((h) => lower.includes(h));
|
|
2644
|
+
};
|
|
2645
|
+
function canRunTools(model) {
|
|
2646
|
+
if (model.capabilities && !model.capabilities.includes("tools")) return false;
|
|
2647
|
+
const modalities = model.outputModalities;
|
|
2648
|
+
if (modalities?.length && !modalities.includes("text")) return false;
|
|
2649
|
+
return !/(^|[-/_])image([-/_]|$)/.test(model.id.toLowerCase());
|
|
2650
|
+
}
|
|
2651
|
+
function pickChildModel(profile, parentModel, catalog) {
|
|
2652
|
+
const explicit = profile.model?.trim();
|
|
2653
|
+
if (explicit && explicit !== "inherit") return explicit;
|
|
2654
|
+
if (!profile.readOnly) return parentModel;
|
|
2655
|
+
const fast = catalog.find((m) => isFastModelId(m.id) && canRunTools(m));
|
|
2656
|
+
return fast?.id ?? parentModel;
|
|
2657
|
+
}
|
|
2658
|
+
function childToolNames(profile, registered, forceReadOnly) {
|
|
2659
|
+
const wanted = profile.tools.includes(ALL_TOOLS) ? null : new Set(profile.tools);
|
|
2660
|
+
const parentOnly = new Set(PARENT_ONLY_TOOLS);
|
|
2661
|
+
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);
|
|
2662
|
+
}
|
|
2663
|
+
function editorPromptContext() {
|
|
2664
|
+
const st = useEditorStore.getState();
|
|
2665
|
+
return {
|
|
2666
|
+
doc: st.document,
|
|
2667
|
+
pageId: st.currentPageId,
|
|
2668
|
+
selection: st.selection,
|
|
2669
|
+
camera: st.camera,
|
|
2670
|
+
viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
|
|
2671
|
+
readOnly: !!editBlockReason()
|
|
2672
|
+
};
|
|
2673
|
+
}
|
|
2674
|
+
var childToolListener = null;
|
|
2675
|
+
function onChildTool(fn) {
|
|
2676
|
+
childToolListener = fn;
|
|
2677
|
+
return () => {
|
|
2678
|
+
if (childToolListener === fn) childToolListener = null;
|
|
2679
|
+
};
|
|
2680
|
+
}
|
|
2681
|
+
function subagentHost(deps = {}) {
|
|
2682
|
+
const profiles = deps.profiles ?? allProfiles;
|
|
2683
|
+
const registered = deps.registeredTools ?? (() => allTools().map((t) => ({ name: t.name, readOnly: t.readOnly, confirm: t.confirm, interactive: t.interactive })));
|
|
2684
|
+
const promptContext = deps.promptContext ?? editorPromptContext;
|
|
2685
|
+
const parentModel = deps.parentModel ?? (() => effectiveChatModel());
|
|
2686
|
+
const catalog = deps.catalog ?? (() => useAiStore.getState().catalog?.chat ?? []);
|
|
2687
|
+
const modelCall = deps.modelCall ?? agentModel2;
|
|
2688
|
+
const toolContext = deps.toolContext ?? editorToolContext;
|
|
2689
|
+
const profileOf = (ctx) => profiles().find((p) => p.id === ctx.profile.id) ?? ctx.profile;
|
|
2690
|
+
const readOnly = (ctx) => ctx.readOnly || promptContext().readOnly === true;
|
|
2691
|
+
return {
|
|
2692
|
+
profiles,
|
|
2693
|
+
callModel: modelCall(parentModel),
|
|
2694
|
+
childModel: (ctx) => {
|
|
2695
|
+
const orch = currentOrchestration();
|
|
2696
|
+
if (orch?.skill) {
|
|
2697
|
+
const call = orch.childModel(readOnly(ctx) ? "swarm" : profileOf(ctx).model ?? null);
|
|
2698
|
+
if (call) return call;
|
|
2699
|
+
}
|
|
2700
|
+
const model = pickChildModel(profileOf(ctx), parentModel(), catalog());
|
|
2701
|
+
return modelCall(() => model);
|
|
2702
|
+
},
|
|
2703
|
+
// The turn's skill sets how many background children run at once (null: the SDK's default).
|
|
2704
|
+
maxConcurrent: () => currentOrchestration()?.maxConcurrent ?? null,
|
|
2705
|
+
childSystemPrompt: (ctx) => buildSubagentPrompt(ctx.profile.instructions, promptContext()),
|
|
2706
|
+
childTools: (ctx) => {
|
|
2707
|
+
const all = registered();
|
|
2708
|
+
const names = childToolNames(profileOf(ctx), all, readOnly(ctx));
|
|
2709
|
+
return (names.length ? toolSpecs(names) : []).map((spec) => ({
|
|
2710
|
+
spec,
|
|
2711
|
+
readOnly: all.find((t) => t.name === spec.function.name)?.readOnly === true
|
|
2712
|
+
}));
|
|
2713
|
+
},
|
|
2714
|
+
execChildTool: async (call, ctx) => {
|
|
2715
|
+
if (!childToolNames(profileOf(ctx), registered(), readOnly(ctx)).includes(call.name)) {
|
|
2716
|
+
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.`;
|
|
2717
|
+
return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
|
|
2718
|
+
}
|
|
2719
|
+
const base = toolContext(ctx.signal);
|
|
2720
|
+
const toolCtx = { ...base, actor: { ...base.actor ?? {}, kind: "agent", nested: true, id: ctx.session.id } };
|
|
2721
|
+
try {
|
|
2722
|
+
const result = await runTool(call.name, call.argsText, toolCtx);
|
|
2723
|
+
return { ...call, ok: true, summary: result.summary, content: JSON.stringify(result.data ?? { ok: true, summary: result.summary }), images: result.images };
|
|
2724
|
+
} catch (err) {
|
|
2725
|
+
const message = err.message ?? String(err);
|
|
2726
|
+
return { ...call, ok: false, summary: message, content: JSON.stringify({ error: message }) };
|
|
2727
|
+
}
|
|
2728
|
+
},
|
|
2729
|
+
store: deps.store === null ? void 0 : deps.store ?? (typeof indexedDB === "undefined" ? void 0 : sessionStore(indexedDbStore(AGENT_SESSIONS_DB), "editor")),
|
|
2730
|
+
onEvent: (event) => reportChildTool(runtimeRef, event)
|
|
2731
|
+
};
|
|
2732
|
+
}
|
|
2733
|
+
var runtimeRef = null;
|
|
2734
|
+
var MAX_STEPS = 50;
|
|
2735
|
+
var activity = /* @__PURE__ */ new Map();
|
|
2736
|
+
var activityListeners = /* @__PURE__ */ new Set();
|
|
2737
|
+
function recordStep(event) {
|
|
2738
|
+
if (event.type !== "tool-start" && event.type !== "tool-end") return;
|
|
2739
|
+
const name = event.name ?? "";
|
|
2740
|
+
const steps = [...activity.get(event.sessionId) ?? []];
|
|
2741
|
+
if (event.type === "tool-start") steps.push({ name, status: "running" });
|
|
2742
|
+
else {
|
|
2743
|
+
const i = steps.findLastIndex((s) => s.name === name && s.status === "running");
|
|
2744
|
+
const step = { name, status: event.ok ? "done" : "error", summary: event.summary ?? void 0 };
|
|
2745
|
+
if (i >= 0) steps[i] = step;
|
|
2746
|
+
else steps.push(step);
|
|
2747
|
+
}
|
|
2748
|
+
activity.set(event.sessionId, steps.slice(-MAX_STEPS));
|
|
2749
|
+
for (const l of activityListeners) l();
|
|
2750
|
+
}
|
|
2751
|
+
function reportChildTool(runtime, event) {
|
|
2752
|
+
recordStep(event);
|
|
2753
|
+
if (!childToolListener || event.type !== "tool-start" && event.type !== "tool-end") return;
|
|
2754
|
+
const session2 = runtime?.get(event.sessionId);
|
|
2755
|
+
if (!session2) return;
|
|
2756
|
+
const jobId = session2.background ? session2.id : void 0;
|
|
2757
|
+
childToolListener({
|
|
2758
|
+
profile: session2.profile,
|
|
2759
|
+
toolCallId: session2.parentCallId ?? void 0,
|
|
2760
|
+
jobId,
|
|
2761
|
+
job: jobId,
|
|
2762
|
+
name: event.name ?? "",
|
|
2763
|
+
status: event.type === "tool-start" ? "running" : event.ok ? "done" : "error",
|
|
2764
|
+
summary: event.type === "tool-end" ? event.summary ?? void 0 : void 0
|
|
2765
|
+
});
|
|
2766
|
+
}
|
|
2767
|
+
function agentRuntime() {
|
|
2768
|
+
if (!runtimeRef) {
|
|
2769
|
+
runtimeRef = createAgentRuntime2(subagentHost());
|
|
2770
|
+
void runtimeRef.load();
|
|
2771
|
+
}
|
|
2772
|
+
return runtimeRef;
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
// lib/agent/tools/subagent-tools.ts
|
|
2776
|
+
var MAX_WAIT_MS = 6e5;
|
|
2777
|
+
var DEFAULT_WAIT_MS = 12e4;
|
|
2778
|
+
function subagentDelegate(deps = {}) {
|
|
2779
|
+
const runtime = deps.runtime ?? agentRuntime;
|
|
2780
|
+
return async (raw) => {
|
|
2781
|
+
const request = raw;
|
|
2782
|
+
const rt = runtime();
|
|
2783
|
+
await rt.load();
|
|
2784
|
+
switch (request.op) {
|
|
2785
|
+
case "spawn": {
|
|
2786
|
+
const r = await rt.spawn({
|
|
2787
|
+
profileId: request.profileId,
|
|
2788
|
+
prompt: request.prompt,
|
|
2789
|
+
description: request.description,
|
|
2790
|
+
readOnly: deps.readOnly === true || request.readOnly === true,
|
|
2791
|
+
background: request.background,
|
|
2792
|
+
signal: deps.signal,
|
|
2793
|
+
parentCallId: request.callId
|
|
2794
|
+
});
|
|
2795
|
+
if (r.kind === "refused") return { kind: "refused", reason: r.reason };
|
|
2796
|
+
if (r.kind === "started") return { kind: "job", jobId: r.id };
|
|
2797
|
+
return { kind: "result", jobId: r.id, ok: r.ok, rounds: r.rounds, summary: r.summary };
|
|
2798
|
+
}
|
|
2799
|
+
case "await": {
|
|
2800
|
+
const ms = Math.min(Math.max(request.timeoutMs ?? DEFAULT_WAIT_MS, 1e3), MAX_WAIT_MS);
|
|
2801
|
+
const s = await rt.wait(request.jobId, { timeoutMs: ms, signal: deps.signal });
|
|
2802
|
+
if (!s) return { kind: "unknown-job", jobId: request.jobId };
|
|
2803
|
+
if (s.status !== "running" && s.status !== "queued") rt.dismissFinished(s.id);
|
|
2804
|
+
return { kind: "status", jobId: s.id, status: s.status, summary: s.summary ?? "" };
|
|
2805
|
+
}
|
|
2806
|
+
case "message": {
|
|
2807
|
+
const r = await rt.message(request.jobId, request.text, { wait: request.wait === true, signal: deps.signal });
|
|
2808
|
+
if (r.kind === "unknown") return { kind: "unknown-job", jobId: request.jobId };
|
|
2809
|
+
if (r.kind === "queued") return { kind: "delivered", jobId: r.id, resumed: false };
|
|
2810
|
+
if (r.kind === "resumed") return { kind: "delivered", jobId: r.id, resumed: true };
|
|
2811
|
+
return { kind: "result", jobId: r.id, ok: r.ok, rounds: 0, summary: r.summary };
|
|
2812
|
+
}
|
|
2813
|
+
case "stop":
|
|
2814
|
+
return { kind: "stopped", jobId: request.jobId, stopped: rt.stop(request.jobId) };
|
|
2815
|
+
case "list":
|
|
2816
|
+
return {
|
|
2817
|
+
kind: "list",
|
|
2818
|
+
agents: rt.list().map((s) => ({ id: s.id, profile: s.profile, description: s.description, status: s.status, summary: s.summary ?? void 0 }))
|
|
2819
|
+
};
|
|
2820
|
+
}
|
|
2821
|
+
};
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
// lib/commands/delegate.ts
|
|
2825
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
2826
|
+
var TASK_DESCRIPTION = [
|
|
2827
|
+
"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.",
|
|
2828
|
+
"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.",
|
|
2829
|
+
"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."
|
|
2830
|
+
].join("\n\n");
|
|
2831
|
+
var delegateTask = defineCommand({
|
|
2832
|
+
id: "delegate.task",
|
|
2833
|
+
title: "Delegate to a subagent",
|
|
2834
|
+
domain: "delegate",
|
|
2835
|
+
// NOT harmless: a background task or a full-tool child obviously edits the document. The loop's
|
|
2836
|
+
// `readOnly` flag means "independent of the other calls in this batch", which a subagent spawn is, so
|
|
2837
|
+
// the agent exposure keeps saying true while the honest effect says document.
|
|
2838
|
+
effect: "document",
|
|
2839
|
+
permission: null,
|
|
2840
|
+
needs: ["delegate"],
|
|
2841
|
+
params: external_exports.object({
|
|
2842
|
+
subagent_type: external_exports.string().describe("Profile id \u2014 one of the profiles listed in your system prompt (list_profiles for the full set)."),
|
|
2843
|
+
prompt: external_exports.string().describe("The self-contained task. The child does not see this conversation."),
|
|
2844
|
+
description: external_exports.string().optional().describe('Short label for the panel row, e.g. "Survey the pricing page".'),
|
|
2845
|
+
readonly: external_exports.boolean().optional().describe("Force read-only tools for this child, whatever the profile allows."),
|
|
2846
|
+
run_in_background: external_exports.boolean().optional().describe("Return a job id immediately and notify you when the child finishes.")
|
|
2847
|
+
}),
|
|
2848
|
+
expose: {
|
|
2849
|
+
agent: { name: "task", description: TASK_DESCRIPTION, readOnly: true }
|
|
2850
|
+
},
|
|
2851
|
+
run: async (args, ctx) => {
|
|
2852
|
+
const reply = await ctx.use("delegate")({
|
|
2853
|
+
op: "spawn",
|
|
2854
|
+
profileId: args.subagent_type,
|
|
2855
|
+
prompt: args.prompt,
|
|
2856
|
+
description: args.description,
|
|
2857
|
+
readOnly: args.readonly === true,
|
|
2858
|
+
background: args.run_in_background,
|
|
2859
|
+
// omitted → the profile's `background` default (the SDK applies it)
|
|
2860
|
+
callId: ctx.callId
|
|
2861
|
+
});
|
|
2862
|
+
if (reply.kind === "refused") return { summary: "task refused (nested)", data: { error: reply.reason } };
|
|
2863
|
+
if (reply.kind === "job") {
|
|
2864
|
+
return {
|
|
2865
|
+
summary: `${args.subagent_type} started (${reply.jobId})`,
|
|
2866
|
+
data: {
|
|
2867
|
+
job_id: reply.jobId,
|
|
2868
|
+
status: "running",
|
|
2869
|
+
subagent_type: args.subagent_type,
|
|
2870
|
+
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."
|
|
2871
|
+
}
|
|
2872
|
+
};
|
|
2873
|
+
}
|
|
2874
|
+
const result = reply;
|
|
2875
|
+
return {
|
|
2876
|
+
summary: `${args.subagent_type}: ${result.ok ? "done" : "failed"} in ${result.rounds} round${result.rounds === 1 ? "" : "s"}`,
|
|
2877
|
+
data: { job_id: result.jobId, subagent_type: args.subagent_type, ok: result.ok, rounds: result.rounds, summary: result.summary }
|
|
2878
|
+
};
|
|
2879
|
+
}
|
|
2880
|
+
});
|
|
2881
|
+
var delegateAwait = defineCommand({
|
|
2882
|
+
id: "delegate.await",
|
|
2883
|
+
title: "Wait for a subagent",
|
|
2884
|
+
domain: "delegate",
|
|
2885
|
+
effect: "document",
|
|
2886
|
+
permission: null,
|
|
2887
|
+
needs: ["delegate"],
|
|
2888
|
+
params: external_exports.object({
|
|
2889
|
+
job_id: external_exports.string().describe("The id a task call returned."),
|
|
2890
|
+
timeout_ms: external_exports.number().optional().describe("How long to wait at most, in ms (default 120000, at most 600000).")
|
|
2891
|
+
}),
|
|
2892
|
+
expose: {
|
|
2893
|
+
agent: {
|
|
2894
|
+
name: "await_job",
|
|
2895
|
+
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.",
|
|
2896
|
+
readOnly: true
|
|
2897
|
+
}
|
|
2898
|
+
},
|
|
2899
|
+
run: async (args, ctx) => {
|
|
2900
|
+
const reply = await ctx.use("delegate")({ op: "await", jobId: args.job_id, timeoutMs: args.timeout_ms });
|
|
2901
|
+
if (reply.kind === "unknown-job") {
|
|
2902
|
+
return { summary: `No job ${args.job_id}`, data: { error: `No background task with id "${args.job_id}".` } };
|
|
2903
|
+
}
|
|
2904
|
+
const status = reply;
|
|
2905
|
+
if (status.status === "running" || status.status === "queued") {
|
|
2906
|
+
return {
|
|
2907
|
+
summary: `${args.job_id}: ${status.status}`,
|
|
2908
|
+
data: {
|
|
2909
|
+
job_id: args.job_id,
|
|
2910
|
+
status: status.status,
|
|
2911
|
+
note: "Still going after the wait. Carry on with other work; its summary is delivered to you automatically when it lands."
|
|
2912
|
+
}
|
|
2913
|
+
};
|
|
2914
|
+
}
|
|
2915
|
+
return { summary: `${args.job_id}: ${status.status}`, data: { job_id: args.job_id, status: status.status, summary: status.summary ?? "" } };
|
|
2916
|
+
}
|
|
2917
|
+
});
|
|
2918
|
+
var delegateMessage = defineCommand({
|
|
2919
|
+
id: "delegate.message",
|
|
2920
|
+
title: "Message a subagent",
|
|
2921
|
+
domain: "delegate",
|
|
2922
|
+
// A message can resume a builder, which edits the document.
|
|
2923
|
+
effect: "document",
|
|
2924
|
+
permission: null,
|
|
2925
|
+
needs: ["delegate"],
|
|
2926
|
+
params: external_exports.object({
|
|
2927
|
+
job_id: external_exports.string().describe("The id a task call returned."),
|
|
2928
|
+
message: external_exports.string().describe("What to tell it: a correction, an answer to its question, or the next piece of work."),
|
|
2929
|
+
wait: external_exports.boolean().optional().describe("For a finished subagent: resume it and wait for its answer now.")
|
|
2930
|
+
}),
|
|
2931
|
+
expose: {
|
|
2932
|
+
agent: {
|
|
2933
|
+
name: "send_message",
|
|
2934
|
+
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.",
|
|
2935
|
+
readOnly: true
|
|
2936
|
+
}
|
|
2937
|
+
},
|
|
2938
|
+
run: async (args, ctx) => {
|
|
2939
|
+
const reply = await ctx.use("delegate")({ op: "message", jobId: args.job_id, text: args.message, wait: args.wait === true });
|
|
2940
|
+
if (reply.kind === "unknown-job") return { summary: `No subagent ${args.job_id}`, data: { error: `No subagent with id "${args.job_id}".` } };
|
|
2941
|
+
if (reply.kind === "delivered") {
|
|
2942
|
+
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." } };
|
|
2943
|
+
}
|
|
2944
|
+
const result = reply;
|
|
2945
|
+
return { summary: `${args.job_id}: ${result.ok ? "answered" : "failed"}`, data: { job_id: args.job_id, ok: result.ok, summary: result.summary } };
|
|
2946
|
+
}
|
|
2947
|
+
});
|
|
2948
|
+
var delegateStop = defineCommand({
|
|
2949
|
+
id: "delegate.stop",
|
|
2950
|
+
title: "Stop a subagent",
|
|
2951
|
+
domain: "delegate",
|
|
2952
|
+
effect: "none",
|
|
2953
|
+
permission: null,
|
|
2954
|
+
needs: ["delegate"],
|
|
2955
|
+
params: external_exports.object({ job_id: external_exports.string().describe("The id a task call returned.") }),
|
|
2956
|
+
expose: { agent: { name: "stop_agent", description: "Stop one running subagent by id. Edits it already made stay.", readOnly: true } },
|
|
2957
|
+
run: async (args, ctx) => {
|
|
2958
|
+
const reply = await ctx.use("delegate")({ op: "stop", jobId: args.job_id });
|
|
2959
|
+
const stopped = reply.kind === "stopped" && reply.stopped;
|
|
2960
|
+
return { summary: stopped ? `${args.job_id}: stopped` : `${args.job_id}: not running`, data: { job_id: args.job_id, stopped } };
|
|
2961
|
+
}
|
|
2962
|
+
});
|
|
2963
|
+
var delegateList = defineCommand({
|
|
2964
|
+
id: "delegate.list",
|
|
2965
|
+
title: "List subagents",
|
|
2966
|
+
domain: "delegate",
|
|
2967
|
+
effect: "none",
|
|
2968
|
+
permission: null,
|
|
2969
|
+
needs: ["delegate"],
|
|
2970
|
+
params: external_exports.object({}),
|
|
2971
|
+
expose: { agent: { name: "list_agents", description: "List your subagents: id, profile, what each was asked, its status and its last summary.", readOnly: true } },
|
|
2972
|
+
run: async (_args, ctx) => {
|
|
2973
|
+
const reply = await ctx.use("delegate")({ op: "list" });
|
|
2974
|
+
const agents = reply.kind === "list" ? reply.agents : [];
|
|
2975
|
+
return {
|
|
2976
|
+
summary: `${agents.length} subagent${agents.length === 1 ? "" : "s"}`,
|
|
2977
|
+
data: { agents: agents.map((a) => ({ job_id: a.id, subagent_type: a.profile, description: a.description, status: a.status, summary: a.summary })) }
|
|
2978
|
+
};
|
|
2979
|
+
}
|
|
2980
|
+
});
|
|
2981
|
+
var profileList = defineCommand({
|
|
2982
|
+
id: "delegate.listProfiles",
|
|
2983
|
+
title: "List subagent profiles",
|
|
2984
|
+
domain: "delegate",
|
|
2985
|
+
effect: "none",
|
|
2986
|
+
permission: null,
|
|
2987
|
+
params: external_exports.object({}),
|
|
2988
|
+
expose: {
|
|
2989
|
+
agent: {
|
|
2990
|
+
name: "list_profiles",
|
|
2991
|
+
description: "List the subagent profiles you can delegate to with task (id, what each is for, when to use it)."
|
|
2992
|
+
}
|
|
2993
|
+
},
|
|
2994
|
+
run: () => {
|
|
2995
|
+
const profiles = allProfiles();
|
|
2996
|
+
return {
|
|
2997
|
+
summary: `${profiles.length} profile${profiles.length === 1 ? "" : "s"}`,
|
|
2998
|
+
data: {
|
|
2999
|
+
profiles: profiles.map((p) => ({
|
|
3000
|
+
id: p.id,
|
|
3001
|
+
name: p.name,
|
|
3002
|
+
description: p.description,
|
|
3003
|
+
whenToUse: p.whenToUse,
|
|
3004
|
+
readOnly: p.readOnly,
|
|
3005
|
+
tools: p.tools,
|
|
3006
|
+
maxRounds: p.maxRounds
|
|
3007
|
+
}))
|
|
3008
|
+
}
|
|
3009
|
+
};
|
|
3010
|
+
}
|
|
3011
|
+
});
|
|
3012
|
+
var profileRead = defineCommand({
|
|
3013
|
+
id: "delegate.readProfile",
|
|
3014
|
+
title: "Read a subagent profile",
|
|
3015
|
+
domain: "delegate",
|
|
3016
|
+
effect: "none",
|
|
3017
|
+
permission: null,
|
|
3018
|
+
params: external_exports.object({ id: external_exports.string().describe('The profile id, e.g. "inspector".') }),
|
|
3019
|
+
expose: {
|
|
3020
|
+
agent: {
|
|
3021
|
+
name: "read_profile",
|
|
3022
|
+
description: "Read a subagent profile in full \u2014 its instructions, tool allowlist and round budget \u2014 before you delegate to it."
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
run: ({ id }) => {
|
|
3026
|
+
const profile = findProfile(id);
|
|
3027
|
+
if (!profile) {
|
|
3028
|
+
return { summary: `No profile "${id}"`, data: { error: `No subagent profile with id "${id}".`, available: allProfiles().map(profileIndexLine) } };
|
|
3029
|
+
}
|
|
3030
|
+
return {
|
|
3031
|
+
summary: `Read profile: ${profile.name}`,
|
|
3032
|
+
data: { id: profile.id, name: profile.name, readOnly: profile.readOnly, tools: profile.tools, maxRounds: profile.maxRounds, instructions: profile.instructions }
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
3035
|
+
});
|
|
3036
|
+
var delegateCommands = [delegateTask, delegateAwait, delegateMessage, delegateStop, delegateList, profileList, profileRead];
|
|
3037
|
+
function registerDelegateCommands() {
|
|
3038
|
+
registerCommand(...delegateCommands);
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
// lib/commands/skill.ts
|
|
3042
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
3043
|
+
var skillList = defineCommand({
|
|
3044
|
+
id: "skill.list",
|
|
3045
|
+
title: "List skills",
|
|
3046
|
+
domain: "skill",
|
|
3047
|
+
effect: "none",
|
|
3048
|
+
// The skill sheets are the agent's own instructions, not the user's document.
|
|
3049
|
+
permission: null,
|
|
3050
|
+
params: external_exports.object({}),
|
|
3051
|
+
expose: {
|
|
3052
|
+
agent: {
|
|
3053
|
+
name: "list_skills",
|
|
3054
|
+
description: "List the available skills (name, what they are for, and when to use them). The full instructions come from read_skill."
|
|
3055
|
+
}
|
|
3056
|
+
},
|
|
3057
|
+
run: () => {
|
|
3058
|
+
const skills = allSkills();
|
|
3059
|
+
return {
|
|
3060
|
+
summary: `${skills.length} skill${skills.length === 1 ? "" : "s"}`,
|
|
3061
|
+
data: { skills: skills.map((s) => ({ id: s.id, name: s.name, description: s.description, whenToUse: s.whenToUse, tools: s.tools })) }
|
|
3062
|
+
};
|
|
3063
|
+
}
|
|
3064
|
+
});
|
|
3065
|
+
var skillRead = defineCommand({
|
|
3066
|
+
id: "skill.read",
|
|
3067
|
+
title: "Read a skill",
|
|
3068
|
+
domain: "skill",
|
|
3069
|
+
effect: "none",
|
|
3070
|
+
permission: null,
|
|
3071
|
+
params: external_exports.object({ id: external_exports.string().describe('The skill id, e.g. "fill-content".') }),
|
|
3072
|
+
expose: {
|
|
3073
|
+
agent: {
|
|
3074
|
+
name: "read_skill",
|
|
3075
|
+
description: "Read a skill\u2019s full instructions by id. Do this before following a skill; the system prompt only carries the summaries."
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3078
|
+
run: ({ id }) => {
|
|
3079
|
+
const skill = findSkill(id);
|
|
3080
|
+
if (!skill) {
|
|
3081
|
+
return {
|
|
3082
|
+
summary: `No skill "${id}"`,
|
|
3083
|
+
data: { error: `No skill with id "${id}".`, available: allSkills().map(skillIndexLine) }
|
|
3084
|
+
};
|
|
3085
|
+
}
|
|
3086
|
+
return {
|
|
3087
|
+
summary: `Read skill: ${skill.name}`,
|
|
3088
|
+
data: { id: skill.id, name: skill.name, tools: skill.tools, instructions: skill.instructions }
|
|
3089
|
+
};
|
|
3090
|
+
}
|
|
3091
|
+
});
|
|
3092
|
+
var skillCommands = [skillList, skillRead];
|
|
3093
|
+
function registerSkillCommands() {
|
|
3094
|
+
registerCommand(...skillCommands);
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
// lib/agent/parts.ts
|
|
3098
|
+
init_define_POPCRAFT_COMPONENT_IDS();
|
|
3099
|
+
function todoItemsFrom(rows) {
|
|
3100
|
+
if (!Array.isArray(rows)) return null;
|
|
3101
|
+
return rows.map((row) => {
|
|
3102
|
+
const t = row ?? {};
|
|
3103
|
+
return {
|
|
3104
|
+
text: String(t.title ?? t.text ?? ""),
|
|
3105
|
+
done: typeof t.done === "boolean" ? t.done : t.status === "done"
|
|
3106
|
+
};
|
|
3107
|
+
});
|
|
3108
|
+
}
|
|
3109
|
+
var textOf2 = (m) => m.parts.filter((p) => p.type === "text").map((p) => p.text).join("");
|
|
3110
|
+
function pushTextDelta(parts, delta) {
|
|
3111
|
+
const last = parts[parts.length - 1];
|
|
3112
|
+
if (last?.type === "text") {
|
|
3113
|
+
parts[parts.length - 1] = { type: "text", text: last.text + delta };
|
|
3114
|
+
return parts;
|
|
3115
|
+
}
|
|
3116
|
+
return [...parts, { type: "text", text: delta }];
|
|
3117
|
+
}
|
|
3118
|
+
function pushReasoningDelta(parts, delta) {
|
|
3119
|
+
const last = parts[parts.length - 1];
|
|
3120
|
+
if (last?.type === "reasoning") {
|
|
3121
|
+
parts[parts.length - 1] = { type: "reasoning", text: last.text + delta };
|
|
3122
|
+
return parts;
|
|
3123
|
+
}
|
|
3124
|
+
return [...parts, { type: "reasoning", text: delta }];
|
|
3125
|
+
}
|
|
3126
|
+
function upsertToolPart(parts, part) {
|
|
3127
|
+
const i = parts.findIndex((p) => p.type === "tool" && p.id === part.id);
|
|
3128
|
+
if (i < 0) return [...parts, part];
|
|
3129
|
+
const next = [...parts];
|
|
3130
|
+
next[i] = { ...next[i], ...part };
|
|
3131
|
+
return next;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
// lib/agent/runner.ts
|
|
3135
|
+
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"];
|
|
3136
|
+
var MAX_HISTORY_MESSAGES = 24;
|
|
3137
|
+
var MAX_PARALLEL_TOOLS = 4;
|
|
3138
|
+
var MAX_TOOL_RESULT_CHARS = 48e3;
|
|
3139
|
+
var TURN_MAX_ROUNDS = 500;
|
|
3140
|
+
function needsEditableSession(name) {
|
|
3141
|
+
const tool = getTool(name);
|
|
3142
|
+
if (tool?.readOnly) return false;
|
|
3143
|
+
if (tool?.interactive) return false;
|
|
3144
|
+
return true;
|
|
3145
|
+
}
|
|
3146
|
+
function guardEdit(name) {
|
|
3147
|
+
if (!needsEditableSession(name)) return;
|
|
3148
|
+
const reason = editBlockReason();
|
|
3149
|
+
if (reason) throw new ToolError(`${name} cannot run: ${reason}`);
|
|
3150
|
+
}
|
|
3151
|
+
function historyMessages() {
|
|
3152
|
+
return activeMessages().slice(-MAX_HISTORY_MESSAGES).map((m) => ({ role: m.role, content: textOf2(m).trim() })).filter((m) => !!m.content);
|
|
3153
|
+
}
|
|
3154
|
+
function systemMessage(skillId, mentions = []) {
|
|
3155
|
+
const st = useEditorStore.getState();
|
|
3156
|
+
return {
|
|
3157
|
+
role: "system",
|
|
3158
|
+
content: buildSystemPrompt({
|
|
3159
|
+
doc: st.document,
|
|
3160
|
+
pageId: st.currentPageId,
|
|
3161
|
+
selection: st.selection,
|
|
3162
|
+
camera: st.camera,
|
|
3163
|
+
viewport: typeof window === "undefined" ? void 0 : { width: window.innerWidth, height: window.innerHeight },
|
|
3164
|
+
activeSkillId: skillId,
|
|
3165
|
+
readOnly: !!editBlockReason(),
|
|
3166
|
+
mentions
|
|
3167
|
+
})
|
|
3168
|
+
};
|
|
3169
|
+
}
|
|
3170
|
+
var registerTurnTools = (deps) => {
|
|
3171
|
+
registerBuiltinTools();
|
|
3172
|
+
registerSkillCommands();
|
|
3173
|
+
registerDelegateCommands();
|
|
3174
|
+
registerDangerousCommands();
|
|
3175
|
+
provideAgentCapability("delegate", subagentDelegate(deps));
|
|
3176
|
+
};
|
|
3177
|
+
var specsFor = (skillId) => {
|
|
3178
|
+
const skill = skillId ? findSkill(skillId) : void 0;
|
|
3179
|
+
return skill?.tools.length ? toolSpecs([.../* @__PURE__ */ new Set([...skill.tools, ...ALWAYS_ALLOWED])]) : toolSpecs();
|
|
3180
|
+
};
|
|
3181
|
+
var loopTools = (skillId) => specsFor(skillId).map((spec) => ({ spec, readOnly: getTool(spec.function.name)?.readOnly === true }));
|
|
3182
|
+
function syncTodos(run) {
|
|
3183
|
+
if (run.name !== "manage_todos" || !run.ok) return;
|
|
3184
|
+
try {
|
|
3185
|
+
const data = JSON.parse(run.content);
|
|
3186
|
+
const items = todoItemsFrom(data.todos);
|
|
3187
|
+
if (items) setTodos(items);
|
|
3188
|
+
} catch {
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
var runs;
|
|
3192
|
+
var agentRuns = () => runs ??= serialRuns(runStore(indexedDbStore(AGENT_SESSIONS_DB), "editor"));
|
|
3193
|
+
var setAgentRuns = (store) => {
|
|
3194
|
+
runs = store && serialRuns(store);
|
|
3195
|
+
};
|
|
3196
|
+
var RESUME_WINDOW_MS = 30 * 6e4;
|
|
3197
|
+
var MAX_INTERRUPTIONS = 6;
|
|
3198
|
+
var SUSPEND_RESTART_MS = 5e3;
|
|
3199
|
+
var STOPPED_MESSAGE = "Stopped. Any edits already applied are still there.";
|
|
3200
|
+
async function runTurn(text, mentions = []) {
|
|
3201
|
+
const availability = aiAvailability();
|
|
3202
|
+
if (!availability.ok) {
|
|
3203
|
+
useAgentStore.setState({ error: { message: availability.message, code: availability.reason } });
|
|
3204
|
+
return;
|
|
3205
|
+
}
|
|
3206
|
+
if (!agentModel()) {
|
|
3207
|
+
useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
|
|
3208
|
+
return;
|
|
3209
|
+
}
|
|
3210
|
+
const skillId = mentions.find((m) => m.kind === "skill")?.id ?? useAgentStore.getState().skillId;
|
|
3211
|
+
const checkpoint = rememberCheckpoint(useEditorStore.getState().document);
|
|
3212
|
+
const user = { id: newId(), role: "user", parts: [{ type: "text", text }], createdAt: Date.now() };
|
|
3213
|
+
appendMessage(user);
|
|
3214
|
+
const assistantId = newId();
|
|
3215
|
+
appendMessage({ id: assistantId, role: "assistant", parts: [], createdAt: Date.now(), checkpoint });
|
|
3216
|
+
const s = useAgentStore.getState();
|
|
3217
|
+
const meta = {
|
|
3218
|
+
documentId: s.documentId ?? useEditorStore.getState().document.id,
|
|
3219
|
+
threadId: s.activeThreadId ?? "",
|
|
3220
|
+
assistantId,
|
|
3221
|
+
skillId,
|
|
3222
|
+
mentions,
|
|
3223
|
+
wantsChange: wantsChange(text)
|
|
3224
|
+
};
|
|
3225
|
+
await drive(meta, { messages: [systemMessage(skillId, mentions), ...historyMessages()], checkpoint });
|
|
3226
|
+
}
|
|
3227
|
+
async function resumeInterrupted(documentId) {
|
|
3228
|
+
if (useAgentStore.getState().running) return false;
|
|
3229
|
+
const store = agentRuns();
|
|
3230
|
+
let list;
|
|
3231
|
+
try {
|
|
3232
|
+
list = await interruptedRuns(store);
|
|
3233
|
+
} catch {
|
|
3234
|
+
return false;
|
|
3235
|
+
}
|
|
3236
|
+
const mine = list.filter((r) => r.meta?.documentId === documentId).sort((a, b) => b.updatedAt - a.updatedAt);
|
|
3237
|
+
const [latest, ...rest] = mine;
|
|
3238
|
+
for (const r of rest) await store.save({ ...r, status: "stopped", updatedAt: Date.now() });
|
|
3239
|
+
if (!latest) return false;
|
|
3240
|
+
if (Date.now() - latest.updatedAt > RESUME_WINDOW_MS || !findMessage(latest.meta)) {
|
|
3241
|
+
await store.save({ ...latest, status: "stopped", updatedAt: Date.now() });
|
|
3242
|
+
return false;
|
|
3243
|
+
}
|
|
3244
|
+
if (useAgentStore.getState().running) return false;
|
|
3245
|
+
await drive(latest.meta, { resume: latest });
|
|
3246
|
+
return true;
|
|
3247
|
+
}
|
|
3248
|
+
async function continueTurn() {
|
|
3249
|
+
const s = useAgentStore.getState();
|
|
3250
|
+
if (s.running) return false;
|
|
3251
|
+
const messages = activeMessages();
|
|
3252
|
+
const last = [...messages].reverse().find((m) => m.role === "assistant");
|
|
3253
|
+
if (!last) return false;
|
|
3254
|
+
const record = await agentRuns().get(last.id).catch(() => null);
|
|
3255
|
+
if (record?.meta && record.meta.threadId === s.activeThreadId) {
|
|
3256
|
+
await drive(record.meta, { resume: { ...record, status: "running" } });
|
|
3257
|
+
return true;
|
|
3258
|
+
}
|
|
3259
|
+
const ask = [...messages].reverse().find((m) => m.role === "user");
|
|
3260
|
+
if (!ask) return false;
|
|
3261
|
+
await runTurn(textOf2(ask));
|
|
3262
|
+
return true;
|
|
3263
|
+
}
|
|
3264
|
+
function findMessage(meta) {
|
|
3265
|
+
if (!meta) return void 0;
|
|
3266
|
+
return useAgentStore.getState().threads.find((t) => t.id === meta.threadId)?.messages.find((m) => m.id === meta.assistantId);
|
|
3267
|
+
}
|
|
3268
|
+
function installPageHandlers() {
|
|
3269
|
+
if (typeof window === "undefined") return () => {
|
|
3270
|
+
};
|
|
3271
|
+
const save = () => persistThreads();
|
|
3272
|
+
const onVisibility = () => {
|
|
3273
|
+
if (document.visibilityState === "hidden") save();
|
|
3274
|
+
};
|
|
3275
|
+
window.addEventListener("pagehide", save);
|
|
3276
|
+
document.addEventListener("visibilitychange", onVisibility);
|
|
3277
|
+
return () => {
|
|
3278
|
+
window.removeEventListener("pagehide", save);
|
|
3279
|
+
document.removeEventListener("visibilitychange", onVisibility);
|
|
3280
|
+
};
|
|
3281
|
+
}
|
|
3282
|
+
function resilientModel(model, turn, parts) {
|
|
3283
|
+
return async (messages, specs, hooks, _signal, request) => {
|
|
3284
|
+
await whenResumable(void 0, turn);
|
|
3285
|
+
const call = new AbortController();
|
|
3286
|
+
const onTurnAbort = () => call.abort();
|
|
3287
|
+
turn.addEventListener("abort", onTurnAbort);
|
|
3288
|
+
let hiddenAt = 0;
|
|
3289
|
+
const onVisibility = () => {
|
|
3290
|
+
if (document.visibilityState === "hidden") hiddenAt = Date.now();
|
|
3291
|
+
else if (hiddenAt && Date.now() - hiddenAt > SUSPEND_RESTART_MS) call.abort();
|
|
3292
|
+
};
|
|
3293
|
+
if (typeof document !== "undefined") document.addEventListener("visibilitychange", onVisibility);
|
|
3294
|
+
const base = parts.get();
|
|
3295
|
+
try {
|
|
3296
|
+
const cut = new Promise((_, reject) => call.signal.addEventListener("abort", () => reject(new Error("aborted")), { once: true }));
|
|
3297
|
+
cut.catch(() => {
|
|
3298
|
+
});
|
|
3299
|
+
return await Promise.race([model(messages, specs, hooks, call.signal, request), cut]);
|
|
3300
|
+
} catch (err) {
|
|
3301
|
+
parts.set(base);
|
|
3302
|
+
if (call.signal.aborted && !turn.aborted) throw { message: "The stream was interrupted.", code: "interrupted" };
|
|
3303
|
+
throw err;
|
|
3304
|
+
} finally {
|
|
3305
|
+
turn.removeEventListener("abort", onTurnAbort);
|
|
3306
|
+
if (typeof document !== "undefined") document.removeEventListener("visibilitychange", onVisibility);
|
|
3307
|
+
}
|
|
3308
|
+
};
|
|
3309
|
+
}
|
|
3310
|
+
function lastUserText(messages) {
|
|
3311
|
+
const m = [...messages].reverse().find((x) => x.role === "user");
|
|
3312
|
+
return typeof m?.content === "string" ? m.content : m ? JSON.stringify(m.content) : "";
|
|
3313
|
+
}
|
|
3314
|
+
function withGuidance(messages, guidance) {
|
|
3315
|
+
const i = messages.findIndex((m) => m.role === "system");
|
|
3316
|
+
if (i < 0) return [{ role: "system", content: guidance }, ...messages];
|
|
3317
|
+
const sys = messages[i];
|
|
3318
|
+
return messages.map((m, j) => j === i ? { ...sys, content: `${typeof sys.content === "string" ? sys.content : ""}
|
|
3319
|
+
|
|
3320
|
+
${guidance}` } : m);
|
|
3321
|
+
}
|
|
3322
|
+
async function drive(meta, initial) {
|
|
3323
|
+
let start = initial;
|
|
3324
|
+
const model = agentModel();
|
|
3325
|
+
if (!model) {
|
|
3326
|
+
useAgentStore.setState({ error: { message: "Pick a chat model for the agent first.", code: "no_model" } });
|
|
3327
|
+
return;
|
|
3328
|
+
}
|
|
3329
|
+
const store = agentRuns();
|
|
3330
|
+
const id = meta.assistantId;
|
|
3331
|
+
const before = useEditorStore.getState().document;
|
|
3332
|
+
if (useAgentStore.getState().activeThreadId !== meta.threadId) useAgentStore.setState({ activeThreadId: meta.threadId });
|
|
3333
|
+
let checkpoint = "checkpoint" in start ? start.checkpoint : findMessage(meta)?.checkpoint;
|
|
3334
|
+
if (!checkpoint) {
|
|
3335
|
+
checkpoint = rememberCheckpoint(before);
|
|
3336
|
+
updateMessage(id, (m) => ({ ...m, checkpoint }), { save: false });
|
|
3337
|
+
}
|
|
3338
|
+
const ledger = createToolLedger(meta.ledger);
|
|
3339
|
+
let parts = [...findMessage(meta)?.parts ?? []].filter((p) => !(p.type === "error" && p.message === STOPPED_MESSAGE));
|
|
3340
|
+
const flush = (save = false) => setParts(id, parts, { save });
|
|
3341
|
+
if ("resume" in start) {
|
|
3342
|
+
parts = parts.map((p) => {
|
|
3343
|
+
if (p.type !== "tool" || p.status !== "running") return p;
|
|
3344
|
+
const done = ledger.get(p.id);
|
|
3345
|
+
return done ? { ...p, status: done.ok ? "done" : "error", summary: done.summary, result: done.content } : { ...p, status: "error", summary: "interrupted", error: "interrupted" };
|
|
3346
|
+
});
|
|
3347
|
+
parts = [...parts, { type: "notice", kind: "resumed" }];
|
|
3348
|
+
flush(true);
|
|
3349
|
+
}
|
|
3350
|
+
const abort = new AbortController();
|
|
3351
|
+
useAgentStore.setState({ running: true, resuming: false, abort, error: null });
|
|
3352
|
+
const ctx = editorToolContext(abort.signal);
|
|
3353
|
+
const { createDesignPreview, DESIGN_TOOL } = await import("./live-2AAPOZRV.js");
|
|
3354
|
+
const preview = createDesignPreview();
|
|
3355
|
+
const readOnly = !!editBlockReason();
|
|
3356
|
+
registerTurnTools({ readOnly, signal: abort.signal });
|
|
3357
|
+
const runtime = agentRuntime();
|
|
3358
|
+
const fresh = "messages" in start ? start : null;
|
|
3359
|
+
const resumed = !fresh;
|
|
3360
|
+
const pool = orchestrationSkills();
|
|
3361
|
+
const orch = await orchestrateTurn({
|
|
3362
|
+
callModel: agentModel2(() => model),
|
|
3363
|
+
task: fresh ? lastUserText(fresh.messages) : "",
|
|
3364
|
+
mode: resumed && !meta.orchestrationSkill ? "off" : void 0,
|
|
3365
|
+
skills: resumed ? pool.filter((s) => s.name === meta.orchestrationSkill) : pool
|
|
3366
|
+
}).catch(() => null);
|
|
3367
|
+
meta.orchestrationSkill = orch?.skill?.name ?? null;
|
|
3368
|
+
if (fresh && orch?.guidance) start = { ...fresh, messages: withGuidance(fresh.messages, orch.guidance) };
|
|
3369
|
+
const tools = loopTools(meta.skillId);
|
|
3370
|
+
const canWrite = !readOnly && meta.wantsChange;
|
|
3371
|
+
const writeTool = tools.some((t) => t.spec.function.name === DESIGN_TOOL) ? DESIGN_TOOL : null;
|
|
3372
|
+
const guard = createActionGuard({ enabled: canWrite, writeTool, initial: meta.guard });
|
|
3373
|
+
let pending = null;
|
|
3374
|
+
let saving = Promise.resolve();
|
|
3375
|
+
const saveMeta = () => {
|
|
3376
|
+
meta.guard = guard.state();
|
|
3377
|
+
meta.ledger = ledger.entries();
|
|
3378
|
+
meta.pending = pending;
|
|
3379
|
+
const rec = store.peek(id);
|
|
3380
|
+
if (rec) saving = store.save({ ...rec, meta: { ...meta }, updatedAt: Date.now() }).catch(() => {
|
|
3381
|
+
});
|
|
3382
|
+
return saving;
|
|
3383
|
+
};
|
|
3384
|
+
const offPage = installPageHandlers();
|
|
3385
|
+
let interruptions = 0;
|
|
3386
|
+
let resumeFrom = "resume" in start ? start.resume : null;
|
|
3387
|
+
try {
|
|
3388
|
+
while (true) {
|
|
3389
|
+
const options = {
|
|
3390
|
+
tools,
|
|
3391
|
+
meta,
|
|
3392
|
+
stopped: () => abort.signal.aborted,
|
|
3393
|
+
drainNotifications: () => {
|
|
3394
|
+
const notes = guard.drain();
|
|
3395
|
+
if (notes.length) {
|
|
3396
|
+
parts = [...parts, { type: "notice", kind: "read-budget" }];
|
|
3397
|
+
flush();
|
|
3398
|
+
}
|
|
3399
|
+
return [...notes, ...runtime.drainParentNotifications()];
|
|
3400
|
+
},
|
|
3401
|
+
maxParallel: MAX_PARALLEL_TOOLS,
|
|
3402
|
+
// The loop's default cut every result at 8000 characters AFTER the tool had honoured its own limit, so
|
|
3403
|
+
// export_svg with maxChars 40000 still came back without its last paths and the model could not
|
|
3404
|
+
// rebuild the artwork. Tools bound their own output; this is only the backstop.
|
|
3405
|
+
maxResultChars: MAX_TOOL_RESULT_CHARS,
|
|
3406
|
+
maxRounds: TURN_MAX_ROUNDS,
|
|
3407
|
+
modelRetries: 3,
|
|
3408
|
+
isRecoverable: (err) => !abort.signal.aborted && isInterruption(err),
|
|
3409
|
+
requireAction: canWrite ? { nudges: ACTION_NUDGES, message: ACTION_NUDGE } : false,
|
|
3410
|
+
toolChoice: () => guard.toolChoice(),
|
|
3411
|
+
advise: orch?.advise ?? void 0,
|
|
3412
|
+
route: orch?.route ?? void 0,
|
|
3413
|
+
callModel: resilientModel(orch?.skill ? orch.callModel : agentModel2(() => model), abort.signal, { get: () => parts, set: (p) => {
|
|
3414
|
+
parts = p;
|
|
3415
|
+
flush();
|
|
3416
|
+
} }),
|
|
3417
|
+
checkpoint: async () => {
|
|
3418
|
+
pending = null;
|
|
3419
|
+
ledger.clear();
|
|
3420
|
+
await saveMeta();
|
|
3421
|
+
},
|
|
3422
|
+
execTool: (call) => runOnce(ledger, call, async () => {
|
|
3423
|
+
const row = { type: "tool", id: call.id, name: call.name, argsText: call.argsText, status: "running" };
|
|
3424
|
+
parts = upsertToolPart(parts, row);
|
|
3425
|
+
flush();
|
|
3426
|
+
const docBefore = useEditorStore.getState().document;
|
|
3427
|
+
try {
|
|
3428
|
+
if (call.name === DESIGN_TOOL) preview.end();
|
|
3429
|
+
guardEdit(call.name);
|
|
3430
|
+
const result = await runTool(call.name, call.argsText, { ...ctx, toolCallId: call.id });
|
|
3431
|
+
const content = JSON.stringify(result.data ?? { ok: true, summary: result.summary });
|
|
3432
|
+
parts = upsertToolPart(parts, { ...row, status: "done", summary: result.summary, result: content });
|
|
3433
|
+
for (const url of result.images ?? []) parts = [...parts, { type: "image", url, caption: call.name }];
|
|
3434
|
+
const acted = useEditorStore.getState().document !== docBefore;
|
|
3435
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: true, summary: result.summary, content, images: result.images, acted };
|
|
3436
|
+
} catch (err) {
|
|
3437
|
+
const message = err.message ?? String(err);
|
|
3438
|
+
parts = upsertToolPart(parts, { ...row, status: "error", summary: message, error: message });
|
|
3439
|
+
return { id: call.id, name: call.name, argsText: call.argsText, ok: false, summary: message, content: JSON.stringify({ error: message }), acted: false };
|
|
3440
|
+
} finally {
|
|
3441
|
+
flush(true);
|
|
3442
|
+
}
|
|
3443
|
+
}).then((run) => {
|
|
3444
|
+
void saveMeta();
|
|
3445
|
+
return run;
|
|
3446
|
+
}),
|
|
3447
|
+
hooks: {
|
|
3448
|
+
onAssistantStart: () => {
|
|
3449
|
+
pending = { text: "", calls: [] };
|
|
3450
|
+
},
|
|
3451
|
+
onTextDelta: (d) => {
|
|
3452
|
+
parts = pushTextDelta([...parts], d);
|
|
3453
|
+
if (pending) pending.text += d;
|
|
3454
|
+
flush();
|
|
3455
|
+
},
|
|
3456
|
+
onReasoningDelta: (d) => {
|
|
3457
|
+
parts = pushReasoningDelta([...parts], d);
|
|
3458
|
+
flush();
|
|
3459
|
+
},
|
|
3460
|
+
onToolProgress: (p) => preview.update(p.name, p.arguments),
|
|
3461
|
+
onToolStart: (call) => {
|
|
3462
|
+
pending?.calls.push({ id: call.id, name: call.name, argsText: call.argsText });
|
|
3463
|
+
void saveMeta();
|
|
3464
|
+
},
|
|
3465
|
+
onToolEnd: (run) => {
|
|
3466
|
+
guard.onRun(run, run.acted === true);
|
|
3467
|
+
syncTodos(run);
|
|
3468
|
+
},
|
|
3469
|
+
onRoundEnd: () => guard.onRoundEnd(),
|
|
3470
|
+
onNudge: () => {
|
|
3471
|
+
const count = guard.onNudge();
|
|
3472
|
+
parts = [...parts, { type: "notice", kind: "nudge", count, max: ACTION_NUDGES }];
|
|
3473
|
+
flush(true);
|
|
3474
|
+
}
|
|
3475
|
+
}
|
|
3476
|
+
};
|
|
3477
|
+
try {
|
|
3478
|
+
let outcome;
|
|
3479
|
+
if (resumeFrom) {
|
|
3480
|
+
const cp = resumeFrom.checkpoint;
|
|
3481
|
+
const nudgesLeft = canWrite ? Math.max(0, ACTION_NUDGES - guard.state().nudges) : 0;
|
|
3482
|
+
const patched = { ...resumeFrom, status: "running", checkpoint: { ...cp, nudgesLeft, messages: resumeTranscript(cp.messages, meta.pending, meta.ledger) } };
|
|
3483
|
+
await store.save(patched);
|
|
3484
|
+
pending = null;
|
|
3485
|
+
outcome = await resumeRun(id, store, options);
|
|
3486
|
+
} else {
|
|
3487
|
+
if (!("messages" in start)) throw new Error("nothing to run");
|
|
3488
|
+
outcome = await runPersistent({ ...options, id, runs: store, messages: start.messages });
|
|
3489
|
+
}
|
|
3490
|
+
if (canWrite && !outcome.stopped && !outcome.acted && !guard.acted) parts = [...parts, { type: "notice", kind: "no-change" }];
|
|
3491
|
+
break;
|
|
3492
|
+
} catch (err) {
|
|
3493
|
+
if (abort.signal.aborted) break;
|
|
3494
|
+
const hidden = typeof document !== "undefined" && document.visibilityState === "hidden";
|
|
3495
|
+
if (isInterruption(err, hidden) && interruptions < MAX_INTERRUPTIONS) {
|
|
3496
|
+
interruptions++;
|
|
3497
|
+
await saving;
|
|
3498
|
+
const rec = await store.get(id);
|
|
3499
|
+
if (!rec) throw err;
|
|
3500
|
+
await store.save({ ...rec, status: "running", error: void 0, updatedAt: Date.now() });
|
|
3501
|
+
useAgentStore.setState({ resuming: true });
|
|
3502
|
+
persistThreads();
|
|
3503
|
+
await whenResumable(void 0, abort.signal, Math.min(3e4, 1e3 * 2 ** interruptions));
|
|
3504
|
+
if (abort.signal.aborted) break;
|
|
3505
|
+
useAgentStore.setState({ resuming: false });
|
|
3506
|
+
resumeFrom = await store.get(id);
|
|
3507
|
+
parts = [...parts, { type: "notice", kind: "resumed" }];
|
|
3508
|
+
flush(true);
|
|
3509
|
+
continue;
|
|
3510
|
+
}
|
|
3511
|
+
throw err;
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
} catch (err) {
|
|
3515
|
+
if (!abort.signal.aborted) {
|
|
3516
|
+
const message = err?.message ?? String(err);
|
|
3517
|
+
const code = err?.code;
|
|
3518
|
+
parts = [...parts, { type: "error", message, code }];
|
|
3519
|
+
}
|
|
3520
|
+
} finally {
|
|
3521
|
+
endOrchestration(orch);
|
|
3522
|
+
offPage();
|
|
3523
|
+
preview.end();
|
|
3524
|
+
if (abort.signal.aborted) {
|
|
3525
|
+
runtime.stopAll();
|
|
3526
|
+
parts = [...parts, { type: "error", message: STOPPED_MESSAGE }];
|
|
3527
|
+
}
|
|
3528
|
+
if (useEditorStore.getState().document === before) updateMessage(id, (m) => ({ ...m, checkpoint: void 0 }), { save: false });
|
|
3529
|
+
flush(true);
|
|
3530
|
+
updateActiveThread((t) => ({ ...t, checkpoint: { id: checkpoint, label: "Undo these changes" } }));
|
|
3531
|
+
useAgentStore.setState({ running: false, resuming: false, abort: null });
|
|
3532
|
+
}
|
|
3533
|
+
}
|
|
3534
|
+
export {
|
|
3535
|
+
agentRuns,
|
|
3536
|
+
continueTurn,
|
|
3537
|
+
editorToolContext,
|
|
3538
|
+
needsEditableSession,
|
|
3539
|
+
onChildTool,
|
|
3540
|
+
resumeInterrupted,
|
|
3541
|
+
runTurn,
|
|
3542
|
+
setAgentRuns
|
|
3543
|
+
};
|