@costrict/csc 4.1.2 → 4.1.4
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/{chunk-gbekxw41.js → chunk-09d9cpjk.js} +36 -36
- package/dist/{chunk-0zwtzj7s.js → chunk-0hf3xsng.js} +3 -3
- package/dist/{chunk-zfwgjjde.js → chunk-0q6t0wzt.js} +5 -3
- package/dist/{chunk-r9qnxgqt.js → chunk-0y9t47jm.js} +5 -5
- package/dist/{chunk-v9b2rh8h.js → chunk-11ekavk1.js} +38 -38
- package/dist/{chunk-9bf696cj.js → chunk-147vdz44.js} +49 -49
- package/dist/{chunk-9qgzdk8y.js → chunk-1bdg7mgh.js} +21 -10
- package/dist/{chunk-1928vvnf.js → chunk-1wee9cv0.js} +12 -12
- package/dist/{chunk-jx80x2sn.js → chunk-1x52prap.js} +35 -35
- package/dist/{chunk-2heyngx7.js → chunk-1xjaqypa.js} +35 -35
- package/dist/{chunk-ebfv6acv.js → chunk-1zwqxpb6.js} +6 -6
- package/dist/{chunk-6kddkcqk.js → chunk-22ys018y.js} +37 -37
- package/dist/{chunk-9gxdrrd5.js → chunk-24g5r745.js} +35 -35
- package/dist/{chunk-re5p7q2e.js → chunk-2d21405m.js} +4 -4
- package/dist/{chunk-qm3k6vez.js → chunk-2dfz3jwm.js} +5 -5
- package/dist/{chunk-xt65mfby.js → chunk-2grx4b5p.js} +13 -13
- package/dist/{chunk-3ed5qycn.js → chunk-2gv49qs2.js} +39 -39
- package/dist/{chunk-t408adb9.js → chunk-2h1dxajn.js} +36 -36
- package/dist/{chunk-3keyh8d3.js → chunk-2j3jrj2e.js} +2 -2
- package/dist/{chunk-pyfrphvc.js → chunk-2pzzfp72.js} +37 -37
- package/dist/{chunk-xxfz08mf.js → chunk-2rwde424.js} +35 -35
- package/dist/{chunk-y061xbn9.js → chunk-2vgbmtyb.js} +5 -5
- package/dist/{chunk-1xqh8b38.js → chunk-2w6j2m6p.js} +2 -2
- package/dist/{chunk-bdy3869e.js → chunk-2y94ygfz.js} +2 -2
- package/dist/{chunk-r8ywba1h.js → chunk-2yw4bwfh.js} +5 -5
- package/dist/{chunk-hjp1yckp.js → chunk-35dxmwra.js} +36 -36
- package/dist/{chunk-0cm9fcaq.js → chunk-37z2mmbw.js} +4 -4
- package/dist/{chunk-xm6t6khx.js → chunk-3c280vpt.js} +36 -36
- package/dist/{chunk-vzxtxv4a.js → chunk-3e6dv76a.js} +36 -36
- package/dist/{chunk-x6cjkxqe.js → chunk-3ft93eyw.js} +5 -5
- package/dist/{chunk-dt5c48mh.js → chunk-3khv1k2r.js} +2 -2
- package/dist/{chunk-rqa3fz1t.js → chunk-3te0naan.js} +35 -35
- package/dist/{chunk-kxn6mzy3.js → chunk-3vj11ct8.js} +2 -2
- package/dist/{chunk-am5zfwnf.js → chunk-42jhchth.js} +8 -8
- package/dist/{chunk-28p3x5mq.js → chunk-42r75rph.js} +38 -38
- package/dist/{chunk-hebz2z6z.js → chunk-4436nyqe.js} +36 -36
- package/dist/{chunk-496449vy.js → chunk-454ty3a9.js} +2 -2
- package/dist/{chunk-rasdgp8g.js → chunk-47mtpn1d.js} +4 -4
- package/dist/{chunk-jt7wch8z.js → chunk-48ggg92j.js} +2 -2
- package/dist/{chunk-s262tfgm.js → chunk-49sm91ec.js} +3 -3
- package/dist/{chunk-41ncbfk7.js → chunk-4c1h8w56.js} +3 -3
- package/dist/{chunk-0d8p649e.js → chunk-4c6gwct4.js} +62 -62
- package/dist/{chunk-t7434h4s.js → chunk-4c8r5etf.js} +35 -35
- package/dist/{chunk-w8xchcwf.js → chunk-4hhnec4s.js} +3 -3
- package/dist/{chunk-4ks3c21q.js → chunk-4hvh6etx.js} +44 -44
- package/dist/{chunk-qavfmmqd.js → chunk-4ke9brnb.js} +4 -4
- package/dist/{chunk-jhdtyhk5.js → chunk-4kevnqfd.js} +37 -37
- package/dist/{chunk-rhqffqzf.js → chunk-4m0bjecy.js} +6 -6
- package/dist/{chunk-rfxctace.js → chunk-4md0mpss.js} +3 -3
- package/dist/{chunk-qk2tvn8y.js → chunk-4mdj278s.js} +36 -36
- package/dist/{chunk-jcdv05ym.js → chunk-4mzrmt07.js} +2 -2
- package/dist/{chunk-vpn54vqg.js → chunk-4r00fs6b.js} +6 -6
- package/dist/{chunk-kszphewb.js → chunk-4v4ztt55.js} +36 -36
- package/dist/{chunk-w9fptpp9.js → chunk-4vvph2sr.js} +44 -44
- package/dist/{chunk-hkkz8rde.js → chunk-4y2sk1ad.js} +35 -35
- package/dist/{chunk-3hw6pcqt.js → chunk-4zaverwj.js} +10 -10
- package/dist/{chunk-w60fa5cj.js → chunk-5027cx6v.js} +45 -45
- package/dist/{chunk-62r8rxkw.js → chunk-50gyyx3a.js} +3 -3
- package/dist/{chunk-hjxz7a04.js → chunk-548vsr6m.js} +38 -38
- package/dist/{chunk-ennzq1s5.js → chunk-5511t18e.js} +2 -2
- package/dist/{chunk-7d5gzxsx.js → chunk-55kecgcg.js} +2 -2
- package/dist/{chunk-br1qf4bc.js → chunk-5aqaz23r.js} +5 -5
- package/dist/{chunk-r3fadmd6.js → chunk-5ev4k0f2.js} +4 -4
- package/dist/{chunk-nkgq6a5q.js → chunk-5h6ra6a2.js} +22 -22
- package/dist/{chunk-hh6kgtq5.js → chunk-5kwvenz7.js} +3 -3
- package/dist/{chunk-xhnmweqe.js → chunk-5n1mzppd.js} +41 -41
- package/dist/{chunk-pbmy8ktp.js → chunk-5np2696m.js} +7 -7
- package/dist/{chunk-kbbjfeb8.js → chunk-5s1cmr4k.js} +2 -2
- package/dist/{chunk-zgvyn6yk.js → chunk-5thkd3nq.js} +35 -35
- package/dist/{chunk-8fqa9v4h.js → chunk-5vh1p3ky.js} +35 -35
- package/dist/{chunk-r4mec6w5.js → chunk-65ryde7a.js} +3 -3
- package/dist/{chunk-46sfycpp.js → chunk-6m26tv8b.js} +6 -6
- package/dist/{chunk-8qp0ytjr.js → chunk-6p39g0w8.js} +2 -2
- package/dist/{chunk-ycsh7pst.js → chunk-6qk13za3.js} +5 -5
- package/dist/{chunk-172aq1cm.js → chunk-6t7858mm.js} +3 -3
- package/dist/{chunk-6aevda19.js → chunk-6tv01x8f.js} +2 -2
- package/dist/{chunk-h1frxdrg.js → chunk-6v5kghc6.js} +36 -36
- package/dist/{chunk-qjx52q61.js → chunk-72329dq9.js} +2 -2
- package/dist/{chunk-bh4k9q9y.js → chunk-7249b8sr.js} +3 -3
- package/dist/{chunk-tfew976a.js → chunk-73zxzeve.js} +35 -35
- package/dist/{chunk-hd8ydnzq.js → chunk-7481a4r2.js} +6 -6
- package/dist/{chunk-7yq22pd2.js → chunk-75qdw92d.js} +37 -37
- package/dist/{chunk-nmyfe9j9.js → chunk-7694q43p.js} +37 -37
- package/dist/{chunk-kkwym2b7.js → chunk-7a93vkn3.js} +4 -4
- package/dist/{chunk-5bd0sf0q.js → chunk-7c1rj5de.js} +4 -3
- package/dist/{chunk-s4pjm9jw.js → chunk-7m65ry6g.js} +35 -35
- package/dist/{chunk-yedzdc0a.js → chunk-7z2162vj.js} +6 -6
- package/dist/{chunk-vqhgs52z.js → chunk-81j0yjj5.js} +6 -6
- package/dist/{chunk-p1wxbhgj.js → chunk-82b0zw1g.js} +4 -4
- package/dist/{chunk-sx4gbak5.js → chunk-83p7ypqz.js} +36 -36
- package/dist/{chunk-hyztfnyq.js → chunk-83y4hwve.js} +157 -157
- package/dist/{chunk-e1m95nec.js → chunk-84ms4gmg.js} +5 -5
- package/dist/{chunk-1z6393pz.js → chunk-887mgrcf.js} +35 -35
- package/dist/{chunk-3c22f5y8.js → chunk-8c5w8v3y.js} +2 -2
- package/dist/{chunk-g6d9avms.js → chunk-8es30rt4.js} +93 -93
- package/dist/{chunk-94jqjx3g.js → chunk-8fqwp3m6.js} +39 -39
- package/dist/{chunk-fbtp7vga.js → chunk-8kjckc8g.js} +4 -4
- package/dist/{chunk-bb9h35x7.js → chunk-8qst0rhx.js} +35 -35
- package/dist/{chunk-cfeakba6.js → chunk-8vb5860k.js} +35 -35
- package/dist/{chunk-tq32b105.js → chunk-8y2wphhe.js} +3 -3
- package/dist/{chunk-04js9982.js → chunk-8ztxv0s8.js} +6 -6
- package/dist/{chunk-wqk03hpc.js → chunk-90dexk03.js} +35 -35
- package/dist/{chunk-hy5vd50e.js → chunk-948sac2f.js} +3 -3
- package/dist/{chunk-zr750mg3.js → chunk-953hv54z.js} +38 -38
- package/dist/{chunk-zyhpq0w1.js → chunk-96012zrd.js} +8 -3
- package/dist/{chunk-zmj9sehj.js → chunk-988v9k0d.js} +36 -36
- package/dist/{chunk-hthfhdty.js → chunk-9frmefq9.js} +7 -7
- package/dist/{chunk-5fny1a0a.js → chunk-9jftryb5.js} +5 -5
- package/dist/{chunk-mqr18cwx.js → chunk-9p9k73kh.js} +4 -4
- package/dist/{chunk-503675yy.js → chunk-9q15hsft.js} +2 -2
- package/dist/{chunk-c36xznt7.js → chunk-9q98b0yn.js} +12 -10
- package/dist/{chunk-rtgff67y.js → chunk-9rap9ebg.js} +43 -43
- package/dist/{chunk-bbpnmz87.js → chunk-9rq3w880.js} +4 -3
- package/dist/{chunk-fx7pr1g4.js → chunk-9scfrax2.js} +5 -5
- package/dist/{chunk-kcz5b7xv.js → chunk-9spwqs8d.js} +7 -7
- package/dist/{chunk-gn0ja3k5.js → chunk-9tzsvsnw.js} +4 -4
- package/dist/{chunk-g9caj6wj.js → chunk-9w213qwh.js} +46 -46
- package/dist/{chunk-9q952pw0.js → chunk-9yneyd6s.js} +2 -2
- package/dist/{chunk-cchv4yn8.js → chunk-a0vxkvbn.js} +37 -37
- package/dist/{chunk-2d4az1sb.js → chunk-a3jxa40m.js} +29 -29
- package/dist/{chunk-2n4jnkr3.js → chunk-a5tvkr47.js} +2 -2
- package/dist/{chunk-mnqvtfd5.js → chunk-a9c2z1wz.js} +8 -8
- package/dist/{chunk-1gta3pqg.js → chunk-ab57dtc9.js} +5 -5
- package/dist/{chunk-mp5km99q.js → chunk-abcd5j5y.js} +12 -12
- package/dist/{chunk-yt5gwdg5.js → chunk-ag4g1ggt.js} +2 -2
- package/dist/{chunk-jd5xs374.js → chunk-amrphgc8.js} +35 -35
- package/dist/{chunk-mdm5cbxy.js → chunk-apr24btq.js} +35 -35
- package/dist/{chunk-y6ce2s1q.js → chunk-attapyb3.js} +37 -37
- package/dist/{chunk-tdkwcv57.js → chunk-awsqxad3.js} +4 -4
- package/dist/{chunk-cnfzmqr8.js → chunk-axh75nac.js} +6 -6
- package/dist/{chunk-1hr30g9j.js → chunk-b0e59wz3.js} +36 -36
- package/dist/{chunk-e6dq8apj.js → chunk-b652a6dk.js} +35 -35
- package/dist/{chunk-ckh1zt0n.js → chunk-b6n6hjak.js} +41 -41
- package/dist/{chunk-rw1070pc.js → chunk-beyedb98.js} +4 -4
- package/dist/{chunk-jkyn6ge9.js → chunk-bh5nrh0k.js} +5 -5
- package/dist/{chunk-6fbvxhan.js → chunk-bjf81kyq.js} +2 -2
- package/dist/chunk-bpj3247f.js +750 -0
- package/dist/{chunk-txync4kd.js → chunk-bq6t381k.js} +6 -6
- package/dist/{chunk-n40kbp9f.js → chunk-bqaej1qd.js} +35 -35
- package/dist/{chunk-c3z2f4aq.js → chunk-bsx46tp0.js} +38 -38
- package/dist/{chunk-gz0nj0mm.js → chunk-bvgan6hr.js} +35 -35
- package/dist/{chunk-nv5rddp1.js → chunk-bxm7c03x.js} +35 -35
- package/dist/{chunk-a18ypbnr.js → chunk-c742mhq9.js} +37 -37
- package/dist/{chunk-x48x54hx.js → chunk-cdxhn1zj.js} +38 -38
- package/dist/{chunk-7zxvjs3d.js → chunk-cjmw41yz.js} +2 -2
- package/dist/{chunk-e26hypm4.js → chunk-cky6d5se.js} +36 -36
- package/dist/{chunk-fv94gm4h.js → chunk-csdze321.js} +36 -36
- package/dist/{chunk-0wfby4jk.js → chunk-cw94b6wr.js} +35 -35
- package/dist/{chunk-4hgk89n9.js → chunk-d06vspmk.js} +35 -35
- package/dist/{chunk-fgna18nd.js → chunk-d28aep53.js} +4 -4
- package/dist/{chunk-96gwphgv.js → chunk-d7t9v7ta.js} +3 -3
- package/dist/{chunk-vvk6wx6b.js → chunk-da9tm2qa.js} +6 -6
- package/dist/{chunk-58jcwxyh.js → chunk-dak5jvak.js} +6 -6
- package/dist/{chunk-ptermrp1.js → chunk-dq08hqxs.js} +38 -38
- package/dist/{chunk-sd2g0s0k.js → chunk-drdkvee7.js} +8 -8
- package/dist/{chunk-r6g3xx75.js → chunk-dwmzyeff.js} +37 -37
- package/dist/{chunk-eb6x30zz.js → chunk-dzkpgn3b.js} +37 -37
- package/dist/{chunk-wvs8wv8t.js → chunk-e1rckp3d.js} +2 -2
- package/dist/{chunk-xftqvncz.js → chunk-e29asgnz.js} +4 -4
- package/dist/{chunk-g0axk7cx.js → chunk-e56gbfpf.js} +35 -35
- package/dist/{chunk-qnztz65r.js → chunk-e9e7yh7j.js} +36 -36
- package/dist/{chunk-y0z468z2.js → chunk-eb9a1naq.js} +36 -36
- package/dist/{chunk-wzzaxwej.js → chunk-ee23jajz.js} +2 -2
- package/dist/{chunk-hq4jd1fy.js → chunk-egrm3m3a.js} +12 -12
- package/dist/{chunk-8v8n8gxv.js → chunk-ehc914vn.js} +11 -4
- package/dist/{chunk-r974358t.js → chunk-ehjsvcrt.js} +5 -5
- package/dist/{chunk-x41dz9y9.js → chunk-en9y1v8v.js} +2 -2
- package/dist/{chunk-6bb0gyhh.js → chunk-eqdmywve.js} +35 -35
- package/dist/{chunk-yteefw26.js → chunk-erqvy07y.js} +35 -35
- package/dist/{chunk-j5rnevxw.js → chunk-esxjcj0y.js} +40 -40
- package/dist/{chunk-xvmtyz8q.js → chunk-et2dhhdq.js} +2 -2
- package/dist/{chunk-rfvzhq5x.js → chunk-ey3q6r96.js} +35 -35
- package/dist/{chunk-0wzfz235.js → chunk-eya7mh5s.js} +35 -35
- package/dist/{chunk-1ta87008.js → chunk-eycktzbk.js} +10 -10
- package/dist/{chunk-thzmxfnt.js → chunk-ezj1ys56.js} +2 -2
- package/dist/{chunk-p8d1q69a.js → chunk-f092tjve.js} +35 -35
- package/dist/{chunk-wwfe7gg7.js → chunk-f4bg3n9r.js} +37 -37
- package/dist/{chunk-4f56n8y8.js → chunk-f4d05y69.js} +4 -4
- package/dist/{chunk-7hnmt967.js → chunk-f6wcbaqd.js} +54 -54
- package/dist/{chunk-qmp50hjb.js → chunk-f9asafa4.js} +9 -9
- package/dist/{chunk-7gyjd00q.js → chunk-f9yqhfrd.js} +3 -3
- package/dist/{chunk-x89sscn0.js → chunk-fawmw9km.js} +2 -2
- package/dist/{chunk-71053xes.js → chunk-fejn0zak.js} +6 -6
- package/dist/{chunk-b52sketm.js → chunk-ffpht24v.js} +35 -35
- package/dist/{chunk-6d9njm1w.js → chunk-fm1cnxaj.js} +2 -2
- package/dist/{chunk-p10xajeq.js → chunk-fp9vj0rq.js} +50 -50
- package/dist/{chunk-nmj9qx2x.js → chunk-fr6qz9nr.js} +45 -45
- package/dist/{chunk-dfzfxt1y.js → chunk-fs5cdxnp.js} +7 -7
- package/dist/{chunk-nkeknzb2.js → chunk-fv0k0mn7.js} +2 -2
- package/dist/{chunk-dpb1kvb9.js → chunk-g95zt8k8.js} +36 -36
- package/dist/{chunk-yvjzex9w.js → chunk-g9mdg0wk.js} +4 -4
- package/dist/{chunk-w3wdqhv0.js → chunk-gda7ak8c.js} +42 -42
- package/dist/{chunk-cydd546q.js → chunk-gg4ky3pk.js} +37 -37
- package/dist/{chunk-sczmmmvj.js → chunk-gh3sxpqt.js} +2 -2
- package/dist/{chunk-pqrb30bj.js → chunk-gkfhy27z.js} +10 -8
- package/dist/{chunk-v4h7dscd.js → chunk-gkp071jz.js} +6 -6
- package/dist/{chunk-tw0b366n.js → chunk-gmgyqmw4.js} +35 -35
- package/dist/{chunk-4xp653hr.js → chunk-gxzr8z7f.js} +35 -35
- package/dist/{chunk-2278qvvz.js → chunk-h03eymaj.js} +35 -35
- package/dist/{chunk-djbawqmw.js → chunk-h145ywcf.js} +35 -35
- package/dist/{chunk-yrr4d26k.js → chunk-h3gj9h7t.js} +36 -36
- package/dist/{chunk-fpb43g1s.js → chunk-h4hzqagh.js} +5 -5
- package/dist/{chunk-tr448vwb.js → chunk-h7meex22.js} +3 -3
- package/dist/{chunk-xa9xpah3.js → chunk-ha4bgnn1.js} +222 -75
- package/dist/{chunk-64wm5777.js → chunk-hf7w6c1y.js} +7 -7
- package/dist/{chunk-jt7ea6rq.js → chunk-hm3c5jch.js} +35 -35
- package/dist/{chunk-vtnm80k9.js → chunk-hrmytevz.js} +5 -5
- package/dist/{chunk-5dm3xwms.js → chunk-hw7zdnaq.js} +5 -5
- package/dist/{chunk-4v3p8phf.js → chunk-hz3rdc5x.js} +7 -7
- package/dist/{chunk-fknjgxt4.js → chunk-hzyn43j3.js} +36 -36
- package/dist/{chunk-t20f5mnk.js → chunk-j1esynw3.js} +6 -6
- package/dist/{chunk-nevf0mb9.js → chunk-j20g74f9.js} +7 -7
- package/dist/{chunk-qpatv1ep.js → chunk-j9xne3kv.js} +5 -5
- package/dist/{chunk-89jrgnx3.js → chunk-jcjyq2p1.js} +6 -6
- package/dist/{chunk-2bahqsy8.js → chunk-jcykmnmk.js} +4 -4
- package/dist/{chunk-vym5zrn6.js → chunk-jdx6pqay.js} +745 -356
- package/dist/{chunk-03g34taj.js → chunk-jm3bfch2.js} +35 -35
- package/dist/{chunk-psq9gtg7.js → chunk-js2a5x6x.js} +2 -2
- package/dist/{chunk-1tsg5bqp.js → chunk-jw0j8e2k.js} +6 -6
- package/dist/{chunk-2ea63hn5.js → chunk-jx52c20q.js} +35 -35
- package/dist/{chunk-2yz7ej7r.js → chunk-k5a0g0n1.js} +2 -2
- package/dist/{chunk-q90bcq6v.js → chunk-kbm6tqp9.js} +38 -38
- package/dist/{chunk-mpxcgg5f.js → chunk-ke8xk8zg.js} +3 -3
- package/dist/{chunk-v060k07j.js → chunk-khwgvhnp.js} +40 -40
- package/dist/{chunk-347n8wrb.js → chunk-kp1y42ya.js} +36 -36
- package/dist/chunk-ksav9jw1.js +2118 -0
- package/dist/{chunk-h93ve2g2.js → chunk-ky133fvv.js} +6 -6
- package/dist/{chunk-jkbkp0ek.js → chunk-kz68xhzh.js} +5 -5
- package/dist/{chunk-bm5370d5.js → chunk-m0fnkcdr.js} +6 -6
- package/dist/{chunk-04h1dzn8.js → chunk-m1q1cs5y.js} +38 -38
- package/dist/{chunk-cz5ycdta.js → chunk-m2t05hdr.js} +3 -3
- package/dist/{chunk-q72dtjqy.js → chunk-m4bfhf56.js} +2 -2
- package/dist/{chunk-bxmc7435.js → chunk-mb7ne7fv.js} +2 -2
- package/dist/{chunk-a96dsyhm.js → chunk-mn3rbfas.js} +38 -38
- package/dist/{chunk-5w9qcjjt.js → chunk-mne7ewfn.js} +41 -41
- package/dist/{chunk-cy223s48.js → chunk-mqfdx9c1.js} +5 -5
- package/dist/{chunk-7k0h27s8.js → chunk-mwzga09f.js} +6 -6
- package/dist/{chunk-5p3bwhcw.js → chunk-my2v9ayn.js} +2 -2
- package/dist/{chunk-y3cshvgb.js → chunk-mzbwfkxd.js} +2 -2
- package/dist/{chunk-87ddk39d.js → chunk-mzv3b466.js} +4 -4
- package/dist/{chunk-p6fhtt1h.js → chunk-n3mpdn3c.js} +3 -3
- package/dist/{chunk-bjc8f709.js → chunk-n57j5gs3.js} +42 -42
- package/dist/{chunk-h9mr8ey4.js → chunk-n7za733h.js} +9 -9
- package/dist/{chunk-0kv76cch.js → chunk-n7zfvhh2.js} +46 -46
- package/dist/{chunk-n51s6m60.js → chunk-n89tc6qq.js} +6 -6
- package/dist/{chunk-pr321r8d.js → chunk-n8jjg228.js} +3 -3
- package/dist/{chunk-v1rkrwwv.js → chunk-nk786fyz.js} +36 -36
- package/dist/{chunk-zb7ctc11.js → chunk-nqm0yexv.js} +35 -35
- package/dist/{chunk-7jbeh3g8.js → chunk-nx8c61ax.js} +3 -3
- package/dist/{chunk-6ypvw68g.js → chunk-nxfeyrc7.js} +35 -35
- package/dist/{chunk-a80y3b1p.js → chunk-p1m1w5dz.js} +12 -7
- package/dist/{chunk-gfycetpg.js → chunk-p1phzye5.js} +3 -3
- package/dist/{chunk-e5kn4hwp.js → chunk-p41t988k.js} +35 -35
- package/dist/{chunk-be8pcep0.js → chunk-p4ymzqkv.js} +2 -2
- package/dist/{chunk-zzac564h.js → chunk-p5dfmkjr.js} +6 -6
- package/dist/{chunk-v21ssxkp.js → chunk-p6r9kbzs.js} +2 -2
- package/dist/{chunk-12b1dsca.js → chunk-p6v3r3ft.js} +3 -3
- package/dist/{chunk-k3mghke5.js → chunk-pbsv26se.js} +35 -35
- package/dist/{chunk-52d0caw3.js → chunk-pfza1h60.js} +38 -38
- package/dist/{chunk-4k4kn7h2.js → chunk-pp46zp45.js} +16 -16
- package/dist/{chunk-7b1ze28c.js → chunk-pqz3gay7.js} +35 -35
- package/dist/{chunk-5r57a99p.js → chunk-prgfcrhy.js} +7 -7
- package/dist/{chunk-365z3p8q.js → chunk-ptxa1358.js} +4 -4
- package/dist/{chunk-83v18n96.js → chunk-pxne3x8j.js} +6 -6
- package/dist/{chunk-6zn0szv5.js → chunk-q7ra5hq0.js} +9 -9
- package/dist/{chunk-27rca2qk.js → chunk-qa5gps5n.js} +6 -6
- package/dist/{chunk-tmedrj3f.js → chunk-qgq7k5n1.js} +3 -3
- package/dist/{chunk-5cxetff3.js → chunk-qhr0bxds.js} +7 -7
- package/dist/{chunk-khnxj5vx.js → chunk-qqj27ps5.js} +3 -3
- package/dist/{chunk-v2vzfj4h.js → chunk-qre271gq.js} +35 -35
- package/dist/{chunk-0s2qjxt0.js → chunk-qy6y2jh6.js} +2 -2
- package/dist/{chunk-rbr0tsrz.js → chunk-qzmncxe1.js} +35 -35
- package/dist/{chunk-v522k1r4.js → chunk-r0h1fmx6.js} +48 -48
- package/dist/{chunk-zshw91dr.js → chunk-r3hnpmf2.js} +3 -3
- package/dist/{chunk-9sr5cheh.js → chunk-rb523kgm.js} +35 -35
- package/dist/{chunk-tnqjynvy.js → chunk-re33t7ae.js} +6 -6
- package/dist/{chunk-stqsfa68.js → chunk-rekj2av4.js} +3 -3
- package/dist/{chunk-swr65v0j.js → chunk-rfbycs7b.js} +8 -8
- package/dist/{chunk-8pqe4w62.js → chunk-rg9g7n81.js} +42 -42
- package/dist/{chunk-8fm77brm.js → chunk-rhqkpy2b.js} +39 -39
- package/dist/{chunk-6a32d602.js → chunk-rqwwtvv5.js} +35 -35
- package/dist/{chunk-n87c314c.js → chunk-s4ac4pp7.js} +36 -36
- package/dist/{chunk-nr2skyv7.js → chunk-s4sx5dc5.js} +37 -37
- package/dist/{chunk-zdsqreyq.js → chunk-s5z2mj7c.js} +3 -3
- package/dist/{chunk-q0w614e1.js → chunk-s8xmcaw5.js} +3 -3
- package/dist/{chunk-29n8fs0h.js → chunk-sb1dx4yy.js} +2 -2
- package/dist/{chunk-9cw6etxe.js → chunk-sg1bpfms.js} +36 -36
- package/dist/{chunk-dj6y2sr8.js → chunk-sp1rargj.js} +3 -3
- package/dist/{chunk-7myptjaa.js → chunk-srqavw76.js} +5 -5
- package/dist/{chunk-84a79s9g.js → chunk-sswwr1v8.js} +95 -95
- package/dist/{chunk-np05dg07.js → chunk-t0qse0mt.js} +35 -35
- package/dist/{chunk-k11m1rfc.js → chunk-t2a7a4z1.js} +37 -37
- package/dist/{chunk-cewbt8ah.js → chunk-t2kp8sdc.js} +2 -2
- package/dist/{chunk-6sytfk68.js → chunk-t2v0ebmx.js} +3 -3
- package/dist/{chunk-5thf5z45.js → chunk-t55pghx5.js} +21 -15
- package/dist/{chunk-x9qqj8wc.js → chunk-t7n4j11w.js} +35 -35
- package/dist/{chunk-45ynv6r6.js → chunk-tbq02fft.js} +2 -2
- package/dist/{chunk-2dvsb5m8.js → chunk-tesmhjvk.js} +3 -3
- package/dist/{chunk-ttzyw0y7.js → chunk-tezzj9bb.js} +9 -9
- package/dist/{chunk-9qj9t1g4.js → chunk-tq15k5ay.js} +2 -2
- package/dist/{chunk-swtk97hy.js → chunk-tsm2gvad.js} +6 -6
- package/dist/{chunk-0q8601fc.js → chunk-txnhypg4.js} +36 -36
- package/dist/{chunk-zc2mfxy0.js → chunk-v5pdtb2b.js} +38 -38
- package/dist/{chunk-e6p5x2p4.js → chunk-v8h3am9m.js} +4 -4
- package/dist/{chunk-0ftbdtb6.js → chunk-v9c0rpa4.js} +5 -521
- package/dist/{chunk-wa7g3yv7.js → chunk-vepbgbhk.js} +5 -5
- package/dist/{chunk-y9bpc4a6.js → chunk-vh2bq1kq.js} +6 -6
- package/dist/{chunk-wz34c685.js → chunk-vjdg504j.js} +7 -7
- package/dist/{chunk-gt9gwwdh.js → chunk-vyry6wjr.js} +5 -5
- package/dist/{chunk-8dehkx39.js → chunk-w4e43b9x.js} +3 -3
- package/dist/{chunk-86n03xsk.js → chunk-w99mdc33.js} +36 -36
- package/dist/{chunk-3ax3g4ky.js → chunk-w9dg1k61.js} +5 -5
- package/dist/{chunk-ycdbp5q4.js → chunk-wh5tc9r0.js} +35 -35
- package/dist/{chunk-epprxdgg.js → chunk-whnv6e1q.js} +2 -2
- package/dist/{chunk-0z3swktk.js → chunk-wj4hsqr1.js} +38 -38
- package/dist/{chunk-envqyd27.js → chunk-wp0pya1g.js} +37 -37
- package/dist/{chunk-b21j3y4h.js → chunk-wvzcb6s1.js} +2 -2
- package/dist/{chunk-s5pnejsn.js → chunk-wx81sgv6.js} +2 -2
- package/dist/{chunk-cwpxrn2d.js → chunk-wxpmz8ng.js} +8 -8
- package/dist/{chunk-9ggwn844.js → chunk-wz2q3pmg.js} +34 -9
- package/dist/{chunk-4zvptd40.js → chunk-x1ge840e.js} +369 -48
- package/dist/{chunk-7ckqn3c3.js → chunk-x5r53g6r.js} +35 -35
- package/dist/{chunk-k5rrrd0q.js → chunk-x78tw87y.js} +41 -41
- package/dist/{chunk-5e4sk6wr.js → chunk-x7hqhzet.js} +2 -2
- package/dist/{chunk-gcpc6b2z.js → chunk-x8g49rpq.js} +2 -2
- package/dist/{chunk-fb5ehysd.js → chunk-xajtn6jn.js} +37 -37
- package/dist/{chunk-6zkxtny0.js → chunk-xamca8ds.js} +3 -3
- package/dist/{chunk-b7fcydvv.js → chunk-xcxzmq1e.js} +9 -9
- package/dist/{chunk-5hn85d4q.js → chunk-xjmanbrm.js} +37 -37
- package/dist/{chunk-da7f9a81.js → chunk-xkdszxwb.js} +21 -21
- package/dist/{chunk-m7qa1fqb.js → chunk-y01apqxs.js} +2 -2
- package/dist/{chunk-hgxb4qn5.js → chunk-y16r571d.js} +35 -35
- package/dist/{chunk-3tnabt1t.js → chunk-y3h553se.js} +2 -2
- package/dist/{chunk-rnjtkqzg.js → chunk-y754et1n.js} +2 -2
- package/dist/{chunk-j74ctwq9.js → chunk-yat2gecz.js} +2 -2
- package/dist/{chunk-hhcx2jjn.js → chunk-yh6gejzw.js} +3 -3
- package/dist/{chunk-m0zzdgkt.js → chunk-yhmwwakf.js} +14 -14
- package/dist/{chunk-t7y6mg54.js → chunk-yn41ejk4.js} +5 -5
- package/dist/{chunk-q110twdj.js → chunk-ypr3kzdn.js} +36 -36
- package/dist/{chunk-76g1m8sa.js → chunk-yrc25q6d.js} +2 -2
- package/dist/{chunk-nmzy0qjn.js → chunk-yvvzd26e.js} +5 -5
- package/dist/{chunk-vetj2j2n.js → chunk-yw9cb2g1.js} +40 -40
- package/dist/{chunk-9vvffdb6.js → chunk-yxpqycx5.js} +44 -44
- package/dist/{chunk-t12d6tby.js → chunk-yy7b3b4y.js} +3 -3
- package/dist/{chunk-wdn3pb9r.js → chunk-z08t19e5.js} +2 -2
- package/dist/{chunk-k1y8sta6.js → chunk-z7wmymhj.js} +4 -5
- package/dist/{chunk-w59jkye4.js → chunk-zcgknb7z.js} +36 -36
- package/dist/{chunk-jv7tn7yh.js → chunk-zk2geh0a.js} +35 -35
- package/dist/{chunk-et42fzf1.js → chunk-zk84db7h.js} +18 -18
- package/dist/{chunk-bgpftrxc.js → chunk-zkf9chex.js} +36 -36
- package/dist/{chunk-gz6pze8f.js → chunk-zkqykb4r.js} +38 -38
- package/dist/{chunk-x1wk407b.js → chunk-zqbw60sv.js} +2 -2
- package/dist/{chunk-svb5eqfz.js → chunk-zsdme624.js} +6 -6
- package/dist/{chunk-49z79885.js → chunk-zsecvy91.js} +3 -3
- package/dist/{chunk-egkwv0bp.js → chunk-ztetpy4q.js} +2 -2
- package/dist/cli.js +31 -31
- package/dist/services/rawDump/batchWorker.js +10 -8
- package/package.json +2 -1
- package/dist/chunk-20rdctr8.js +0 -413
- package/dist/chunk-3ydfy1vc.js +0 -1079
|
@@ -0,0 +1,750 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
init_requestBody,
|
|
4
|
+
isOpenAIThinkingEnabled,
|
|
5
|
+
resolveOpenAIMaxTokens
|
|
6
|
+
} from "./chunk-thjhg2me.js";
|
|
7
|
+
import {
|
|
8
|
+
OpenAI,
|
|
9
|
+
addToTotalSessionCost,
|
|
10
|
+
createAssistantAPIErrorMessage,
|
|
11
|
+
createCoStrictFetch,
|
|
12
|
+
ensureToolResultPairing,
|
|
13
|
+
init_api,
|
|
14
|
+
init_cost_tracker,
|
|
15
|
+
init_fetch,
|
|
16
|
+
init_messages1 as init_messages,
|
|
17
|
+
init_openai,
|
|
18
|
+
normalizeContentFromAPI,
|
|
19
|
+
normalizeMessagesForAPI,
|
|
20
|
+
toolToAPISchema
|
|
21
|
+
} from "./chunk-jdx6pqay.js";
|
|
22
|
+
import"./chunk-j7g5prq1.js";
|
|
23
|
+
import"./chunk-gkfhy27z.js";
|
|
24
|
+
import"./chunk-et824jj8.js";
|
|
25
|
+
import"./chunk-x8g49rpq.js";
|
|
26
|
+
import"./chunk-dj0c74sd.js";
|
|
27
|
+
import"./chunk-7cpxexw0.js";
|
|
28
|
+
import"./chunk-2gzv8nrw.js";
|
|
29
|
+
import"./chunk-ehtwnxpg.js";
|
|
30
|
+
import"./chunk-6t7858mm.js";
|
|
31
|
+
import"./chunk-my2v9ayn.js";
|
|
32
|
+
import"./chunk-mb7ne7fv.js";
|
|
33
|
+
import"./chunk-y3h553se.js";
|
|
34
|
+
import {
|
|
35
|
+
adaptOpenAIStreamToAnthropic,
|
|
36
|
+
anthropicMessagesToOpenAI,
|
|
37
|
+
anthropicToolChoiceToOpenAI,
|
|
38
|
+
anthropicToolsToOpenAI,
|
|
39
|
+
init_src
|
|
40
|
+
} from "./chunk-wz2q3pmg.js";
|
|
41
|
+
import"./chunk-454ty3a9.js";
|
|
42
|
+
import"./chunk-cgfdkzhb.js";
|
|
43
|
+
import"./chunk-x6pa9me9.js";
|
|
44
|
+
import"./chunk-2f6hs25r.js";
|
|
45
|
+
import"./chunk-5kwvenz7.js";
|
|
46
|
+
import"./chunk-axh75nac.js";
|
|
47
|
+
import"./chunk-9663bsk0.js";
|
|
48
|
+
import"./chunk-e1rckp3d.js";
|
|
49
|
+
import"./chunk-hnms0snx.js";
|
|
50
|
+
import"./chunk-wx81sgv6.js";
|
|
51
|
+
import"./chunk-dg8c6j5q.js";
|
|
52
|
+
import"./chunk-3ft93eyw.js";
|
|
53
|
+
import"./chunk-qzp51m93.js";
|
|
54
|
+
import"./chunk-mzv3b466.js";
|
|
55
|
+
import"./chunk-yat2gecz.js";
|
|
56
|
+
import"./chunk-pdkfgve3.js";
|
|
57
|
+
import"./chunk-a97kj439.js";
|
|
58
|
+
import"./chunk-tq15k5ay.js";
|
|
59
|
+
import"./chunk-5s1cmr4k.js";
|
|
60
|
+
import"./chunk-t4kcvmes.js";
|
|
61
|
+
import"./chunk-ee23jajz.js";
|
|
62
|
+
import"./chunk-dx4aw2jf.js";
|
|
63
|
+
import"./chunk-5511t18e.js";
|
|
64
|
+
import"./chunk-14ya36qs.js";
|
|
65
|
+
import"./chunk-edqtm6y0.js";
|
|
66
|
+
import"./chunk-yrc25q6d.js";
|
|
67
|
+
import"./chunk-4vbza3s0.js";
|
|
68
|
+
import"./chunk-p6r9kbzs.js";
|
|
69
|
+
import"./chunk-gh3sxpqt.js";
|
|
70
|
+
import"./chunk-xcxcysx3.js";
|
|
71
|
+
import"./chunk-4jm600zv.js";
|
|
72
|
+
import {
|
|
73
|
+
getCoStrictBaseURL,
|
|
74
|
+
init_auth
|
|
75
|
+
} from "./chunk-ztetpy4q.js";
|
|
76
|
+
import {
|
|
77
|
+
init_credentials,
|
|
78
|
+
loadCoStrictCredentials
|
|
79
|
+
} from "./chunk-mh90mtzg.js";
|
|
80
|
+
import"./chunk-awsqxad3.js";
|
|
81
|
+
import"./chunk-z08t19e5.js";
|
|
82
|
+
import"./chunk-qy6y2jh6.js";
|
|
83
|
+
import"./chunk-0k1kkyw8.js";
|
|
84
|
+
import"./chunk-fm1cnxaj.js";
|
|
85
|
+
import"./chunk-2dtsff0m.js";
|
|
86
|
+
import"./chunk-2w8qb2c2.js";
|
|
87
|
+
import"./chunk-26jcng1n.js";
|
|
88
|
+
import"./chunk-h6hgwf7t.js";
|
|
89
|
+
import"./chunk-sq54cby2.js";
|
|
90
|
+
import"./chunk-y01apqxs.js";
|
|
91
|
+
import"./chunk-1xdybmyp.js";
|
|
92
|
+
import"./chunk-8ye7m55r.js";
|
|
93
|
+
import"./chunk-47mtpn1d.js";
|
|
94
|
+
import"./chunk-nvce80tx.js";
|
|
95
|
+
import {
|
|
96
|
+
calculateUSDCost,
|
|
97
|
+
getModelMaxOutputTokens,
|
|
98
|
+
getUserAgent,
|
|
99
|
+
init_context,
|
|
100
|
+
init_http,
|
|
101
|
+
init_modelCost,
|
|
102
|
+
init_modelMapping,
|
|
103
|
+
resolveCoStrictModel
|
|
104
|
+
} from "./chunk-t55pghx5.js";
|
|
105
|
+
import"./chunk-fs34dpdm.js";
|
|
106
|
+
import"./chunk-9dwdn2sk.js";
|
|
107
|
+
import"./chunk-zwarn9h7.js";
|
|
108
|
+
import"./chunk-00e8e1k5.js";
|
|
109
|
+
import"./chunk-rzrm7j9x.js";
|
|
110
|
+
import {
|
|
111
|
+
getProxyFetchOptions,
|
|
112
|
+
init_proxy
|
|
113
|
+
} from "./chunk-4bvckeaj.js";
|
|
114
|
+
import"./chunk-jakx4th4.js";
|
|
115
|
+
import"./chunk-pe9b769s.js";
|
|
116
|
+
import"./chunk-64c1avct.js";
|
|
117
|
+
import"./chunk-8g5pe1gr.js";
|
|
118
|
+
import"./chunk-nq504fa3.js";
|
|
119
|
+
import {
|
|
120
|
+
fetchCoStrictModels,
|
|
121
|
+
init_models
|
|
122
|
+
} from "./chunk-ehc914vn.js";
|
|
123
|
+
import"./chunk-qxp3d963.js";
|
|
124
|
+
import"./chunk-6dpcm4za.js";
|
|
125
|
+
import"./chunk-p26t5d5e.js";
|
|
126
|
+
import"./chunk-hs71mwbj.js";
|
|
127
|
+
import"./chunk-3c25bcsw.js";
|
|
128
|
+
import"./chunk-j9zpgw9b.js";
|
|
129
|
+
import"./chunk-xhesahm0.js";
|
|
130
|
+
import"./chunk-rh5a2rg9.js";
|
|
131
|
+
import"./chunk-npgyhaqc.js";
|
|
132
|
+
import"./chunk-6ws6m83v.js";
|
|
133
|
+
import"./chunk-a4wjqc9g.js";
|
|
134
|
+
import"./chunk-0f6syxra.js";
|
|
135
|
+
import"./chunk-4f8eq6n2.js";
|
|
136
|
+
import"./chunk-v9smspw2.js";
|
|
137
|
+
import"./chunk-v1kzp02e.js";
|
|
138
|
+
import"./chunk-p2816w9z.js";
|
|
139
|
+
import"./chunk-x7hqhzet.js";
|
|
140
|
+
import"./chunk-crmjpsqe.js";
|
|
141
|
+
import"./chunk-96012zrd.js";
|
|
142
|
+
import"./chunk-64k6ybmm.js";
|
|
143
|
+
import"./chunk-qr5vq8ys.js";
|
|
144
|
+
import"./chunk-f2mhrmww.js";
|
|
145
|
+
import"./chunk-kenv28g4.js";
|
|
146
|
+
import"./chunk-nbq5dw92.js";
|
|
147
|
+
import"./chunk-ckq5d8ev.js";
|
|
148
|
+
import"./chunk-vacje5g9.js";
|
|
149
|
+
import"./chunk-nrcew0nb.js";
|
|
150
|
+
import"./chunk-gagn0nrq.js";
|
|
151
|
+
import"./chunk-qwtfyr6d.js";
|
|
152
|
+
import"./chunk-ftfz2eh3.js";
|
|
153
|
+
import"./chunk-vtcqe66h.js";
|
|
154
|
+
import"./chunk-8tnsngw2.js";
|
|
155
|
+
import"./chunk-my6j0dd8.js";
|
|
156
|
+
import"./chunk-84a2gymg.js";
|
|
157
|
+
import"./chunk-5z28bqne.js";
|
|
158
|
+
import"./chunk-qajrkk97.js";
|
|
159
|
+
import {
|
|
160
|
+
init_debug,
|
|
161
|
+
logForDebugging
|
|
162
|
+
} from "./chunk-dea6k409.js";
|
|
163
|
+
import"./chunk-fbv4apne.js";
|
|
164
|
+
import {
|
|
165
|
+
getActiveSkillName,
|
|
166
|
+
getMainThreadAgentType,
|
|
167
|
+
init_state
|
|
168
|
+
} from "./chunk-rcxtkewg.js";
|
|
169
|
+
import"./chunk-50dgek10.js";
|
|
170
|
+
import"./chunk-7wm5s02e.js";
|
|
171
|
+
import"./chunk-hxhwzgnn.js";
|
|
172
|
+
import"./chunk-qx8z601m.js";
|
|
173
|
+
import"./chunk-cgm6758j.js";
|
|
174
|
+
import"./chunk-ncpa00h9.js";
|
|
175
|
+
import"./chunk-8pn8tvgg.js";
|
|
176
|
+
import"./chunk-netzwgv1.js";
|
|
177
|
+
import {
|
|
178
|
+
__commonJS,
|
|
179
|
+
__esm,
|
|
180
|
+
__toESM
|
|
181
|
+
} from "./chunk-qp2qdcda.js";
|
|
182
|
+
|
|
183
|
+
// node_modules/.bun/partial-json@0.1.7/node_modules/partial-json/dist/options.js
|
|
184
|
+
var require_options = __commonJS((exports) => {
|
|
185
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
186
|
+
exports.Allow = exports.ALL = exports.COLLECTION = exports.ATOM = exports.SPECIAL = exports.INF = exports._INFINITY = exports.INFINITY = exports.NAN = exports.BOOL = exports.NULL = exports.OBJ = exports.ARR = exports.NUM = exports.STR = undefined;
|
|
187
|
+
exports.STR = 1;
|
|
188
|
+
exports.NUM = 2;
|
|
189
|
+
exports.ARR = 4;
|
|
190
|
+
exports.OBJ = 8;
|
|
191
|
+
exports.NULL = 16;
|
|
192
|
+
exports.BOOL = 32;
|
|
193
|
+
exports.NAN = 64;
|
|
194
|
+
exports.INFINITY = 128;
|
|
195
|
+
exports._INFINITY = 256;
|
|
196
|
+
exports.INF = exports.INFINITY | exports._INFINITY;
|
|
197
|
+
exports.SPECIAL = exports.NULL | exports.BOOL | exports.INF | exports.NAN;
|
|
198
|
+
exports.ATOM = exports.STR | exports.NUM | exports.SPECIAL;
|
|
199
|
+
exports.COLLECTION = exports.ARR | exports.OBJ;
|
|
200
|
+
exports.ALL = exports.ATOM | exports.COLLECTION;
|
|
201
|
+
exports.Allow = { STR: exports.STR, NUM: exports.NUM, ARR: exports.ARR, OBJ: exports.OBJ, NULL: exports.NULL, BOOL: exports.BOOL, NAN: exports.NAN, INFINITY: exports.INFINITY, _INFINITY: exports._INFINITY, INF: exports.INF, SPECIAL: exports.SPECIAL, ATOM: exports.ATOM, COLLECTION: exports.COLLECTION, ALL: exports.ALL };
|
|
202
|
+
exports.default = exports.Allow;
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
// node_modules/.bun/partial-json@0.1.7/node_modules/partial-json/dist/index.js
|
|
206
|
+
var require_dist = __commonJS((exports) => {
|
|
207
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
208
|
+
if (k2 === undefined)
|
|
209
|
+
k2 = k;
|
|
210
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
211
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
212
|
+
desc = { enumerable: true, get: function() {
|
|
213
|
+
return m[k];
|
|
214
|
+
} };
|
|
215
|
+
}
|
|
216
|
+
Object.defineProperty(o, k2, desc);
|
|
217
|
+
} : function(o, m, k, k2) {
|
|
218
|
+
if (k2 === undefined)
|
|
219
|
+
k2 = k;
|
|
220
|
+
o[k2] = m[k];
|
|
221
|
+
});
|
|
222
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
223
|
+
for (var p in m)
|
|
224
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p))
|
|
225
|
+
__createBinding(exports2, m, p);
|
|
226
|
+
};
|
|
227
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
228
|
+
exports.Allow = exports.MalformedJSON = exports.PartialJSON = exports.parseJSON = exports.parse = undefined;
|
|
229
|
+
var options_1 = require_options();
|
|
230
|
+
Object.defineProperty(exports, "Allow", { enumerable: true, get: function() {
|
|
231
|
+
return options_1.Allow;
|
|
232
|
+
} });
|
|
233
|
+
__exportStar(require_options(), exports);
|
|
234
|
+
|
|
235
|
+
class PartialJSON extends Error {
|
|
236
|
+
}
|
|
237
|
+
exports.PartialJSON = PartialJSON;
|
|
238
|
+
|
|
239
|
+
class MalformedJSON extends Error {
|
|
240
|
+
}
|
|
241
|
+
exports.MalformedJSON = MalformedJSON;
|
|
242
|
+
function parseJSON(jsonString, allowPartial = options_1.Allow.ALL) {
|
|
243
|
+
if (typeof jsonString !== "string") {
|
|
244
|
+
throw new TypeError(`expecting str, got ${typeof jsonString}`);
|
|
245
|
+
}
|
|
246
|
+
if (!jsonString.trim()) {
|
|
247
|
+
throw new Error(`${jsonString} is empty`);
|
|
248
|
+
}
|
|
249
|
+
return _parseJSON(jsonString.trim(), allowPartial);
|
|
250
|
+
}
|
|
251
|
+
exports.parseJSON = parseJSON;
|
|
252
|
+
var _parseJSON = (jsonString, allow) => {
|
|
253
|
+
const length = jsonString.length;
|
|
254
|
+
let index = 0;
|
|
255
|
+
const markPartialJSON = (msg) => {
|
|
256
|
+
throw new PartialJSON(`${msg} at position ${index}`);
|
|
257
|
+
};
|
|
258
|
+
const throwMalformedError = (msg) => {
|
|
259
|
+
throw new MalformedJSON(`${msg} at position ${index}`);
|
|
260
|
+
};
|
|
261
|
+
const parseAny = () => {
|
|
262
|
+
skipBlank();
|
|
263
|
+
if (index >= length)
|
|
264
|
+
markPartialJSON("Unexpected end of input");
|
|
265
|
+
if (jsonString[index] === '"')
|
|
266
|
+
return parseStr();
|
|
267
|
+
if (jsonString[index] === "{")
|
|
268
|
+
return parseObj();
|
|
269
|
+
if (jsonString[index] === "[")
|
|
270
|
+
return parseArr();
|
|
271
|
+
if (jsonString.substring(index, index + 4) === "null" || options_1.Allow.NULL & allow && length - index < 4 && "null".startsWith(jsonString.substring(index))) {
|
|
272
|
+
index += 4;
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
275
|
+
if (jsonString.substring(index, index + 4) === "true" || options_1.Allow.BOOL & allow && length - index < 4 && "true".startsWith(jsonString.substring(index))) {
|
|
276
|
+
index += 4;
|
|
277
|
+
return true;
|
|
278
|
+
}
|
|
279
|
+
if (jsonString.substring(index, index + 5) === "false" || options_1.Allow.BOOL & allow && length - index < 5 && "false".startsWith(jsonString.substring(index))) {
|
|
280
|
+
index += 5;
|
|
281
|
+
return false;
|
|
282
|
+
}
|
|
283
|
+
if (jsonString.substring(index, index + 8) === "Infinity" || options_1.Allow.INFINITY & allow && length - index < 8 && "Infinity".startsWith(jsonString.substring(index))) {
|
|
284
|
+
index += 8;
|
|
285
|
+
return Infinity;
|
|
286
|
+
}
|
|
287
|
+
if (jsonString.substring(index, index + 9) === "-Infinity" || options_1.Allow._INFINITY & allow && 1 < length - index && length - index < 9 && "-Infinity".startsWith(jsonString.substring(index))) {
|
|
288
|
+
index += 9;
|
|
289
|
+
return -Infinity;
|
|
290
|
+
}
|
|
291
|
+
if (jsonString.substring(index, index + 3) === "NaN" || options_1.Allow.NAN & allow && length - index < 3 && "NaN".startsWith(jsonString.substring(index))) {
|
|
292
|
+
index += 3;
|
|
293
|
+
return NaN;
|
|
294
|
+
}
|
|
295
|
+
return parseNum();
|
|
296
|
+
};
|
|
297
|
+
const parseStr = () => {
|
|
298
|
+
const start = index;
|
|
299
|
+
let escape = false;
|
|
300
|
+
index++;
|
|
301
|
+
while (index < length && (jsonString[index] !== '"' || escape && jsonString[index - 1] === "\\")) {
|
|
302
|
+
escape = jsonString[index] === "\\" ? !escape : false;
|
|
303
|
+
index++;
|
|
304
|
+
}
|
|
305
|
+
if (jsonString.charAt(index) == '"') {
|
|
306
|
+
try {
|
|
307
|
+
return JSON.parse(jsonString.substring(start, ++index - Number(escape)));
|
|
308
|
+
} catch (e) {
|
|
309
|
+
throwMalformedError(String(e));
|
|
310
|
+
}
|
|
311
|
+
} else if (options_1.Allow.STR & allow) {
|
|
312
|
+
try {
|
|
313
|
+
return JSON.parse(jsonString.substring(start, index - Number(escape)) + '"');
|
|
314
|
+
} catch (e) {
|
|
315
|
+
return JSON.parse(jsonString.substring(start, jsonString.lastIndexOf("\\")) + '"');
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
markPartialJSON("Unterminated string literal");
|
|
319
|
+
};
|
|
320
|
+
const parseObj = () => {
|
|
321
|
+
index++;
|
|
322
|
+
skipBlank();
|
|
323
|
+
const obj = {};
|
|
324
|
+
try {
|
|
325
|
+
while (jsonString[index] !== "}") {
|
|
326
|
+
skipBlank();
|
|
327
|
+
if (index >= length && options_1.Allow.OBJ & allow)
|
|
328
|
+
return obj;
|
|
329
|
+
const key = parseStr();
|
|
330
|
+
skipBlank();
|
|
331
|
+
index++;
|
|
332
|
+
try {
|
|
333
|
+
const value = parseAny();
|
|
334
|
+
obj[key] = value;
|
|
335
|
+
} catch (e) {
|
|
336
|
+
if (options_1.Allow.OBJ & allow)
|
|
337
|
+
return obj;
|
|
338
|
+
else
|
|
339
|
+
throw e;
|
|
340
|
+
}
|
|
341
|
+
skipBlank();
|
|
342
|
+
if (jsonString[index] === ",")
|
|
343
|
+
index++;
|
|
344
|
+
}
|
|
345
|
+
} catch (e) {
|
|
346
|
+
if (options_1.Allow.OBJ & allow)
|
|
347
|
+
return obj;
|
|
348
|
+
else
|
|
349
|
+
markPartialJSON("Expected '}' at end of object");
|
|
350
|
+
}
|
|
351
|
+
index++;
|
|
352
|
+
return obj;
|
|
353
|
+
};
|
|
354
|
+
const parseArr = () => {
|
|
355
|
+
index++;
|
|
356
|
+
const arr = [];
|
|
357
|
+
try {
|
|
358
|
+
while (jsonString[index] !== "]") {
|
|
359
|
+
arr.push(parseAny());
|
|
360
|
+
skipBlank();
|
|
361
|
+
if (jsonString[index] === ",") {
|
|
362
|
+
index++;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
} catch (e) {
|
|
366
|
+
if (options_1.Allow.ARR & allow) {
|
|
367
|
+
return arr;
|
|
368
|
+
}
|
|
369
|
+
markPartialJSON("Expected ']' at end of array");
|
|
370
|
+
}
|
|
371
|
+
index++;
|
|
372
|
+
return arr;
|
|
373
|
+
};
|
|
374
|
+
const parseNum = () => {
|
|
375
|
+
if (index === 0) {
|
|
376
|
+
if (jsonString === "-")
|
|
377
|
+
throwMalformedError("Not sure what '-' is");
|
|
378
|
+
try {
|
|
379
|
+
return JSON.parse(jsonString);
|
|
380
|
+
} catch (e) {
|
|
381
|
+
if (options_1.Allow.NUM & allow)
|
|
382
|
+
try {
|
|
383
|
+
return JSON.parse(jsonString.substring(0, jsonString.lastIndexOf("e")));
|
|
384
|
+
} catch (e2) {}
|
|
385
|
+
throwMalformedError(String(e));
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
const start = index;
|
|
389
|
+
if (jsonString[index] === "-")
|
|
390
|
+
index++;
|
|
391
|
+
while (jsonString[index] && ",]}".indexOf(jsonString[index]) === -1)
|
|
392
|
+
index++;
|
|
393
|
+
if (index == length && !(options_1.Allow.NUM & allow))
|
|
394
|
+
markPartialJSON("Unterminated number literal");
|
|
395
|
+
try {
|
|
396
|
+
return JSON.parse(jsonString.substring(start, index));
|
|
397
|
+
} catch (e) {
|
|
398
|
+
if (jsonString.substring(start, index) === "-")
|
|
399
|
+
markPartialJSON("Not sure what '-' is");
|
|
400
|
+
try {
|
|
401
|
+
return JSON.parse(jsonString.substring(start, jsonString.lastIndexOf("e")));
|
|
402
|
+
} catch (e2) {
|
|
403
|
+
throwMalformedError(String(e2));
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
const skipBlank = () => {
|
|
408
|
+
while (index < length && `
|
|
409
|
+
\r `.includes(jsonString[index])) {
|
|
410
|
+
index++;
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
return parseAny();
|
|
414
|
+
};
|
|
415
|
+
var parse = parseJSON;
|
|
416
|
+
exports.parse = parse;
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
// src/costrict/provider/index.ts
|
|
420
|
+
import { randomUUID } from "crypto";
|
|
421
|
+
function isRecord(value) {
|
|
422
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
423
|
+
}
|
|
424
|
+
function isPlainRecord(value) {
|
|
425
|
+
return isRecord(value);
|
|
426
|
+
}
|
|
427
|
+
function tryParsePartialToolInput(rawInput) {
|
|
428
|
+
try {
|
|
429
|
+
const parsed = import_partial_json.parse(rawInput);
|
|
430
|
+
return isPlainRecord(parsed) ? parsed : undefined;
|
|
431
|
+
} catch {
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
function getInvalidToolInputMessage(toolName) {
|
|
436
|
+
return `Model response error: invalid tool call arguments for ${toolName}. The tool call was not executed.`;
|
|
437
|
+
}
|
|
438
|
+
function contentContainsImage(content) {
|
|
439
|
+
if (!Array.isArray(content))
|
|
440
|
+
return false;
|
|
441
|
+
return content.some((block) => {
|
|
442
|
+
if (!isRecord(block))
|
|
443
|
+
return false;
|
|
444
|
+
if (block.type === "image")
|
|
445
|
+
return true;
|
|
446
|
+
if (block.type === "tool_result") {
|
|
447
|
+
return contentContainsImage(block.content);
|
|
448
|
+
}
|
|
449
|
+
return false;
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
function messagesContainImages(messages) {
|
|
453
|
+
return messages.some((message) => {
|
|
454
|
+
if (message.type !== "user")
|
|
455
|
+
return false;
|
|
456
|
+
if (!message.message)
|
|
457
|
+
return false;
|
|
458
|
+
return contentContainsImage(message.message.content);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
function isNonMultimodalModelError(message) {
|
|
462
|
+
const normalized = message.toLowerCase();
|
|
463
|
+
return normalized.includes("not a multimodal model") || normalized.includes("does not support image") || normalized.includes("does not support images");
|
|
464
|
+
}
|
|
465
|
+
async function* queryModelCoStrict(messages, systemPrompt, tools, signal, options) {
|
|
466
|
+
try {
|
|
467
|
+
const costrictModel = resolveCoStrictModel(options.model);
|
|
468
|
+
const creds = await loadCoStrictCredentials();
|
|
469
|
+
const baseUrl = getCoStrictBaseURL(creds?.base_url);
|
|
470
|
+
const chatBaseURL = `${baseUrl}/chat-rag/api/v1`;
|
|
471
|
+
let defaultMaxTokens = getModelMaxOutputTokens(costrictModel).upperLimit;
|
|
472
|
+
let maxTokensParamKey = "max_tokens";
|
|
473
|
+
let modelInfo;
|
|
474
|
+
if (creds?.access_token) {
|
|
475
|
+
try {
|
|
476
|
+
const modelList = await fetchCoStrictModels(baseUrl, creds.access_token);
|
|
477
|
+
modelInfo = modelList.find((m) => m.id === costrictModel);
|
|
478
|
+
if (modelInfo) {
|
|
479
|
+
maxTokensParamKey = modelInfo.maxTokensKey || "max_tokens";
|
|
480
|
+
if (modelInfo.maxTokens != null) {
|
|
481
|
+
defaultMaxTokens = modelInfo.maxTokens;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
} catch {}
|
|
485
|
+
}
|
|
486
|
+
const maxTokensValue = resolveOpenAIMaxTokens(defaultMaxTokens, options.maxOutputTokensOverride);
|
|
487
|
+
const messagesForAPI = ensureToolResultPairing(normalizeMessagesForAPI(messages, tools));
|
|
488
|
+
if (modelInfo?.supportsImages === false && messagesContainImages(messagesForAPI)) {
|
|
489
|
+
yield createAssistantAPIErrorMessage({
|
|
490
|
+
content: `CoStrict API Error: Model ${costrictModel} does not support image input. Switch to a multimodal or vision-capable model and try again.`,
|
|
491
|
+
apiError: "api_error"
|
|
492
|
+
});
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
const toolSchemas = await Promise.all(tools.map((tool) => toolToAPISchema(tool, {
|
|
496
|
+
getToolPermissionContext: options.getToolPermissionContext,
|
|
497
|
+
tools,
|
|
498
|
+
agents: options.agents,
|
|
499
|
+
allowedAgentTypes: options.allowedAgentTypes,
|
|
500
|
+
model: options.model
|
|
501
|
+
})));
|
|
502
|
+
const standardTools = toolSchemas.filter((t) => {
|
|
503
|
+
const anyT = t;
|
|
504
|
+
return anyT.type !== "advisor_20260301" && anyT.type !== "computer_20250124";
|
|
505
|
+
});
|
|
506
|
+
const enableThinking = isOpenAIThinkingEnabled(costrictModel);
|
|
507
|
+
const openaiMessages = anthropicMessagesToOpenAI(messagesForAPI, systemPrompt, { enableThinking });
|
|
508
|
+
const openaiTools = anthropicToolsToOpenAI(standardTools);
|
|
509
|
+
const openaiToolChoice = anthropicToolChoiceToOpenAI(options.toolChoice);
|
|
510
|
+
const costrictFetch = createCoStrictFetch({
|
|
511
|
+
agentType: getMainThreadAgentType() ?? getActiveSkillName()
|
|
512
|
+
});
|
|
513
|
+
const client = new OpenAI({
|
|
514
|
+
apiKey: "costrict-managed",
|
|
515
|
+
baseURL: chatBaseURL,
|
|
516
|
+
maxRetries: 0,
|
|
517
|
+
timeout: parseInt(process.env.API_TIMEOUT_MS || String(600 * 1000), 10),
|
|
518
|
+
dangerouslyAllowBrowser: true,
|
|
519
|
+
fetchOptions: getProxyFetchOptions({
|
|
520
|
+
forAnthropicAPI: false
|
|
521
|
+
}),
|
|
522
|
+
fetch: costrictFetch,
|
|
523
|
+
defaultHeaders: { "User-Agent": getUserAgent() }
|
|
524
|
+
});
|
|
525
|
+
logForDebugging(`[CoStrict] model=${costrictModel}, baseURL=${chatBaseURL}, messages=${openaiMessages.length}, tools=${openaiTools.length}`);
|
|
526
|
+
const requestBody = {
|
|
527
|
+
model: costrictModel,
|
|
528
|
+
messages: openaiMessages,
|
|
529
|
+
...openaiTools.length > 0 && {
|
|
530
|
+
tools: openaiTools,
|
|
531
|
+
...openaiToolChoice && {
|
|
532
|
+
tool_choice: openaiToolChoice
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
stream: true,
|
|
536
|
+
stream_options: { include_usage: true },
|
|
537
|
+
[maxTokensParamKey]: maxTokensValue,
|
|
538
|
+
...enableThinking && {
|
|
539
|
+
thinking: { type: "enabled" },
|
|
540
|
+
enable_thinking: true,
|
|
541
|
+
chat_template_kwargs: { thinking: true }
|
|
542
|
+
},
|
|
543
|
+
...!enableThinking && options.temperatureOverride !== undefined && {
|
|
544
|
+
temperature: options.temperatureOverride
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
const stream = await client.chat.completions.create(requestBody, { signal });
|
|
548
|
+
const adaptedStream = adaptOpenAIStreamToAnthropic(stream, costrictModel);
|
|
549
|
+
const contentBlocks = {};
|
|
550
|
+
const toolCallStates = new Map;
|
|
551
|
+
let partialMessage;
|
|
552
|
+
let stopReason = null;
|
|
553
|
+
let usage = {
|
|
554
|
+
input_tokens: 0,
|
|
555
|
+
output_tokens: 0,
|
|
556
|
+
cache_creation_input_tokens: 0,
|
|
557
|
+
cache_read_input_tokens: 0
|
|
558
|
+
};
|
|
559
|
+
let ttftMs = 0;
|
|
560
|
+
const start = Date.now();
|
|
561
|
+
const finalizeToolCallStates = () => {
|
|
562
|
+
for (const state of toolCallStates.values()) {
|
|
563
|
+
try {
|
|
564
|
+
const parsed = JSON.parse(state.rawInput);
|
|
565
|
+
if (!isPlainRecord(parsed)) {
|
|
566
|
+
state.finalParseError = getInvalidToolInputMessage(state.name);
|
|
567
|
+
}
|
|
568
|
+
} catch {
|
|
569
|
+
state.finalParseError = getInvalidToolInputMessage(state.name);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
const assembleFinalAssistantOutputs = () => {
|
|
574
|
+
const outputs = [];
|
|
575
|
+
if (!partialMessage)
|
|
576
|
+
return outputs;
|
|
577
|
+
const allBlocksWithIndices = Object.keys(contentBlocks).sort((a, b) => Number(a) - Number(b)).map((k) => ({ index: Number(k), block: contentBlocks[Number(k)] })).filter((entry) => Boolean(entry.block));
|
|
578
|
+
const allBlocks = allBlocksWithIndices.map((entry) => entry.block);
|
|
579
|
+
if (allBlocks.length > 0) {
|
|
580
|
+
for (const { index, block } of allBlocksWithIndices) {
|
|
581
|
+
if (block?.type !== "tool_use")
|
|
582
|
+
continue;
|
|
583
|
+
const state = toolCallStates.get(index);
|
|
584
|
+
if (!state)
|
|
585
|
+
continue;
|
|
586
|
+
block.input = state.rawInput;
|
|
587
|
+
if (state.finalParseError) {
|
|
588
|
+
block.invalidToolCallError = state.finalParseError;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
outputs.push({
|
|
592
|
+
message: {
|
|
593
|
+
...partialMessage,
|
|
594
|
+
content: normalizeContentFromAPI(allBlocks, tools, options.agentId, { preserveInvalidToolCall: true }),
|
|
595
|
+
usage,
|
|
596
|
+
stop_reason: stopReason,
|
|
597
|
+
stop_sequence: null
|
|
598
|
+
},
|
|
599
|
+
requestId: undefined,
|
|
600
|
+
type: "assistant",
|
|
601
|
+
uuid: randomUUID(),
|
|
602
|
+
timestamp: new Date().toISOString()
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
if (stopReason === "max_tokens") {
|
|
606
|
+
outputs.push(createAssistantAPIErrorMessage({
|
|
607
|
+
content: `Output truncated: response exceeded the ${maxTokensValue} token limit. ` + `Set OPENAI_MAX_TOKENS or CLAUDE_CODE_MAX_OUTPUT_TOKENS to override.`,
|
|
608
|
+
apiError: "max_output_tokens",
|
|
609
|
+
error: "max_output_tokens"
|
|
610
|
+
}));
|
|
611
|
+
}
|
|
612
|
+
return outputs;
|
|
613
|
+
};
|
|
614
|
+
for await (const event of adaptedStream) {
|
|
615
|
+
switch (event.type) {
|
|
616
|
+
case "message_start": {
|
|
617
|
+
partialMessage = event.message;
|
|
618
|
+
ttftMs = Date.now() - start;
|
|
619
|
+
if (event.message?.usage) {
|
|
620
|
+
usage = { ...usage, ...event.message.usage };
|
|
621
|
+
}
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
case "content_block_start": {
|
|
625
|
+
const idx = event.index;
|
|
626
|
+
const cb = event.content_block;
|
|
627
|
+
if (cb.type === "tool_use") {
|
|
628
|
+
contentBlocks[idx] = { ...cb, input: "" };
|
|
629
|
+
toolCallStates.set(idx, {
|
|
630
|
+
index: idx,
|
|
631
|
+
id: String(cb.id ?? ""),
|
|
632
|
+
name: typeof cb.name === "string" ? cb.name : "",
|
|
633
|
+
rawInput: ""
|
|
634
|
+
});
|
|
635
|
+
} else if (cb.type === "text") {
|
|
636
|
+
contentBlocks[idx] = { ...cb, text: "" };
|
|
637
|
+
} else if (cb.type === "thinking") {
|
|
638
|
+
contentBlocks[idx] = { ...cb, thinking: "", signature: "" };
|
|
639
|
+
} else {
|
|
640
|
+
contentBlocks[idx] = { ...cb };
|
|
641
|
+
}
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
case "content_block_delta": {
|
|
645
|
+
const idx = event.index;
|
|
646
|
+
const delta = event.delta;
|
|
647
|
+
const block = contentBlocks[idx];
|
|
648
|
+
if (!block)
|
|
649
|
+
break;
|
|
650
|
+
if (delta.type === "text_delta") {
|
|
651
|
+
block.text = (block.text || "") + delta.text;
|
|
652
|
+
} else if (delta.type === "input_json_delta") {
|
|
653
|
+
const fragment = String(delta.partial_json ?? "");
|
|
654
|
+
block.input = (block.input || "") + fragment;
|
|
655
|
+
const state = toolCallStates.get(idx);
|
|
656
|
+
if (state) {
|
|
657
|
+
state.rawInput += fragment;
|
|
658
|
+
const partialInput = tryParsePartialToolInput(state.rawInput);
|
|
659
|
+
if (partialInput) {
|
|
660
|
+
state.partialInput = partialInput;
|
|
661
|
+
delta.parsed_tool_input = partialInput;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
} else if (delta.type === "thinking_delta") {
|
|
665
|
+
block.thinking = (block.thinking || "") + delta.thinking;
|
|
666
|
+
} else if (delta.type === "signature_delta") {
|
|
667
|
+
block.signature = delta.signature;
|
|
668
|
+
}
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
case "content_block_stop": {
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
case "message_delta": {
|
|
675
|
+
const deltaUsage = event.usage;
|
|
676
|
+
if (deltaUsage)
|
|
677
|
+
usage = { ...usage, ...deltaUsage };
|
|
678
|
+
if (event.delta?.stop_reason != null) {
|
|
679
|
+
stopReason = event.delta.stop_reason;
|
|
680
|
+
}
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
case "message_stop": {
|
|
684
|
+
if (partialMessage) {
|
|
685
|
+
finalizeToolCallStates();
|
|
686
|
+
for (const output of assembleFinalAssistantOutputs()) {
|
|
687
|
+
yield output;
|
|
688
|
+
}
|
|
689
|
+
partialMessage = null;
|
|
690
|
+
toolCallStates.clear();
|
|
691
|
+
}
|
|
692
|
+
break;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
if (event.type === "message_stop" && usage.input_tokens + usage.output_tokens > 0) {
|
|
696
|
+
const costUSD = calculateUSDCost(costrictModel, usage);
|
|
697
|
+
addToTotalSessionCost(costUSD, usage, options.model);
|
|
698
|
+
}
|
|
699
|
+
yield {
|
|
700
|
+
type: "stream_event",
|
|
701
|
+
event,
|
|
702
|
+
...event.type === "message_start" ? { ttftMs } : undefined
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
if (partialMessage) {
|
|
706
|
+
finalizeToolCallStates();
|
|
707
|
+
for (const output of assembleFinalAssistantOutputs()) {
|
|
708
|
+
yield output;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
} catch (error) {
|
|
712
|
+
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
713
|
+
logForDebugging(`[CoStrict] Error: ${errorMsg}`, { level: "error" });
|
|
714
|
+
yield createAssistantAPIErrorMessage({
|
|
715
|
+
content: isNonMultimodalModelError(errorMsg) ? "CoStrict API Error: The current model does not support image input. Switch to a multimodal or vision-capable model and try again." : `CoStrict API Error: ${errorMsg}`,
|
|
716
|
+
apiError: "api_error",
|
|
717
|
+
error: error instanceof Error ? error : undefined
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
var import_partial_json;
|
|
722
|
+
var init_provider = __esm(() => {
|
|
723
|
+
init_openai();
|
|
724
|
+
init_proxy();
|
|
725
|
+
init_http();
|
|
726
|
+
init_src();
|
|
727
|
+
init_messages();
|
|
728
|
+
init_api();
|
|
729
|
+
init_debug();
|
|
730
|
+
init_cost_tracker();
|
|
731
|
+
init_modelCost();
|
|
732
|
+
init_messages();
|
|
733
|
+
init_fetch();
|
|
734
|
+
init_modelMapping();
|
|
735
|
+
init_auth();
|
|
736
|
+
init_credentials();
|
|
737
|
+
init_requestBody();
|
|
738
|
+
init_models();
|
|
739
|
+
init_state();
|
|
740
|
+
init_context();
|
|
741
|
+
import_partial_json = __toESM(require_dist(), 1);
|
|
742
|
+
});
|
|
743
|
+
init_provider();
|
|
744
|
+
|
|
745
|
+
export {
|
|
746
|
+
queryModelCoStrict
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
//# debugId=4367DA0D6FA0B4D064756E2164756E21
|
|
750
|
+
//# sourceMappingURL=chunk-bpj3247f.js.map
|