@qitqode/qitqode-android-arm64 0.2.9 → 0.2.11
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/bundle/chunk-06j0gaen.js +2 -0
- package/bundle/{chunk-g4tyaj0m.js → chunk-075gkea2.js} +1 -1
- package/bundle/{chunk-8ysp6vf8.js → chunk-09n24ztn.js} +1 -1
- package/bundle/chunk-0bn86djg.js +3 -0
- package/bundle/chunk-0mm40z8g.js +2 -0
- package/bundle/{chunk-s2tc3qs0.js → chunk-0tya4pqb.js} +2 -2
- package/bundle/{chunk-0s4cp6q2.js → chunk-1dnvdeat.js} +2 -2
- package/bundle/chunk-1h9sc0gy.js +2 -0
- package/bundle/chunk-1mqfhw0f.js +2 -0
- package/bundle/{chunk-b5ym419d.js → chunk-1p39y33b.js} +2 -2
- package/bundle/{chunk-5cw8235e.js → chunk-1pd943m9.js} +1 -1
- package/bundle/{chunk-m7tmgvh6.js → chunk-1rsabv4p.js} +1 -1
- package/bundle/{chunk-dwkrqtbc.js → chunk-1tdy73ha.js} +2 -2
- package/bundle/{chunk-phf37x1c.js → chunk-1yh1f9yj.js} +1 -1
- package/bundle/chunk-22wa8zty.js +2 -0
- package/bundle/chunk-28kte9rt.js +2 -0
- package/bundle/chunk-2dhjehxe.js +2 -0
- package/bundle/{chunk-kre93a89.js → chunk-2h8b0csf.js} +2 -2
- package/bundle/chunk-2nnfxbd2.js +2 -0
- package/bundle/{chunk-j10a984e.js → chunk-2ts74cgq.js} +2 -2
- package/bundle/{chunk-cfwz1hgr.js → chunk-2vsqsxe1.js} +3 -3
- package/bundle/chunk-2w5zmgpb.js +2 -0
- package/bundle/{chunk-8yzghzjq.js → chunk-32x2901e.js} +1 -1
- package/bundle/chunk-34qt3fqj.js +2 -0
- package/bundle/{chunk-5r7c6vvx.js → chunk-3amgvg81.js} +2 -2
- package/bundle/{chunk-0w19vmd7.js → chunk-3hawwbw6.js} +2 -2
- package/bundle/chunk-3p0xvt47.js +2 -0
- package/bundle/chunk-3pzx5ret.js +2 -0
- package/bundle/{chunk-nsp1za8t.js → chunk-3tf7xfw5.js} +2 -2
- package/bundle/chunk-3y4rmqmm.js +2 -0
- package/bundle/{chunk-wd8f9r4k.js → chunk-42gd2vx4.js} +1 -1
- package/bundle/{chunk-702bt91p.js → chunk-43eqr0ds.js} +4 -4
- package/bundle/{chunk-1p9s5jj1.js → chunk-43x9n8rp.js} +1 -1
- package/bundle/{chunk-13jq2ygc.js → chunk-44685nzw.js} +2 -2
- package/bundle/chunk-46ewdxgh.js +2 -0
- package/bundle/{chunk-makegrxs.js → chunk-4805mxf7.js} +1 -1
- package/bundle/chunk-486874bd.js +2 -0
- package/bundle/{chunk-7adsab4h.js → chunk-48y4n9ne.js} +1 -1
- package/bundle/{chunk-vr8nwzp0.js → chunk-49brdmgp.js} +1 -1
- package/bundle/{chunk-az3nss5m.js → chunk-49we3vy1.js} +2 -2
- package/bundle/chunk-4bcbvfsw.js +2 -0
- package/bundle/{chunk-eewe7tx1.js → chunk-4c6d1wy1.js} +2 -2
- package/bundle/{chunk-p8ak162p.js → chunk-4d9s7cgr.js} +1 -1
- package/bundle/{chunk-scnbt714.js → chunk-4ngvj758.js} +1 -1
- package/bundle/{chunk-060wbpz4.js → chunk-4q14whpc.js} +1 -1
- package/bundle/chunk-4t1ysdag.js +2 -0
- package/bundle/{chunk-g9nwqwqp.js → chunk-50knjq36.js} +1 -1
- package/bundle/{chunk-fs1vb39f.js → chunk-51vn4f06.js} +3 -3
- package/bundle/{chunk-ag8wxwwz.js → chunk-5mgmq6yz.js} +1 -1
- package/bundle/chunk-5q7a4h2w.js +2 -0
- package/bundle/{chunk-rdreeyv0.js → chunk-5qydhr42.js} +3 -3
- package/bundle/{chunk-maa21rh9.js → chunk-611wfdn3.js} +1 -1
- package/bundle/{chunk-n6tqtk6h.js → chunk-63t0rhc9.js} +2 -2
- package/bundle/chunk-63vamhf7.js +2 -0
- package/bundle/chunk-6hhv3n7c.js +2 -0
- package/bundle/{chunk-gbkz04ke.js → chunk-6p848y99.js} +1 -1
- package/bundle/{chunk-f2v4g7t1.js → chunk-6xx66mr1.js} +1 -1
- package/bundle/{chunk-7thhd7ds.js → chunk-71h3pmnn.js} +1 -1
- package/bundle/{chunk-k3m7jfdh.js → chunk-78e76m4h.js} +1 -1
- package/bundle/{chunk-vbfej8ds.js → chunk-78yvbv9b.js} +2 -2
- package/bundle/chunk-7a9kfb2n.js +2 -0
- package/bundle/chunk-7b5vney6.js +2 -0
- package/bundle/{chunk-fh3d0wce.js → chunk-7jvx29js.js} +1 -1
- package/bundle/{chunk-zqdjk4rf.js → chunk-7wshaze9.js} +2 -2
- package/bundle/{chunk-rye1yjnr.js → chunk-7x4g7h04.js} +1 -1
- package/bundle/chunk-7x9m1smk.js +2 -0
- package/bundle/chunk-82mnr6sf.js +2 -0
- package/bundle/{chunk-0egrckx0.js → chunk-84qx54nf.js} +2 -2
- package/bundle/{chunk-1acn5me8.js → chunk-88hmeyf5.js} +327 -313
- package/bundle/{chunk-gsg6zn7e.js → chunk-89b6ttzs.js} +2 -2
- package/bundle/chunk-8bea2r6p.js +2 -0
- package/bundle/{chunk-pqg1wjb5.js → chunk-8gn7r4kb.js} +1 -1
- package/bundle/chunk-8h6mhzhg.js +2 -0
- package/bundle/chunk-8n1cmvr7.js +2 -0
- package/bundle/{chunk-e2wfj86b.js → chunk-8qbhnwej.js} +1 -1
- package/bundle/{chunk-0ffmwhw7.js → chunk-8rbbt1s8.js} +1 -1
- package/bundle/{chunk-zfrftgcy.js → chunk-8rc7cvex.js} +1 -1
- package/bundle/{chunk-rk0fnvp5.js → chunk-8t17w67q.js} +1 -1
- package/bundle/{chunk-h8mfbbjh.js → chunk-8y03p2md.js} +2 -2
- package/bundle/{chunk-3bb4aqh9.js → chunk-8z65v9c9.js} +1 -1
- package/bundle/{chunk-ggncq8w8.js → chunk-92xxg12q.js} +1 -1
- package/bundle/chunk-955zj1y6.js +2 -0
- package/bundle/{chunk-m4r8sepw.js → chunk-95tec4gm.js} +1 -1
- package/bundle/chunk-95vp9bvk.js +2 -0
- package/bundle/{chunk-cf9m9m9q.js → chunk-96nmxprr.js} +1 -1
- package/bundle/{chunk-jpn9zfj5.js → chunk-98z5pfvj.js} +1 -1
- package/bundle/{chunk-s5aefff0.js → chunk-9d2mtevw.js} +1 -1
- package/bundle/{chunk-qk5vy2pr.js → chunk-9d8meavf.js} +1 -1
- package/bundle/{chunk-fw1f47de.js → chunk-9gs4en9v.js} +1 -1
- package/bundle/{chunk-e0vrxetq.js → chunk-9svh74gt.js} +1 -1
- package/bundle/chunk-9wzxnwv7.js +2 -0
- package/bundle/chunk-9zve998d.js +2 -0
- package/bundle/chunk-a2pd7nt5.js +2 -0
- package/bundle/{chunk-ntr0ezf2.js → chunk-a4cmpa56.js} +1 -1
- package/bundle/chunk-a9bkr9x4.js +2 -0
- package/bundle/chunk-ac5vzpzt.js +2 -0
- package/bundle/{chunk-qbnt4ynd.js → chunk-ajgwyrcf.js} +2 -2
- package/bundle/{chunk-c8k32724.js → chunk-ajyfms68.js} +1 -1
- package/bundle/{chunk-5wx962mw.js → chunk-akrcbxfa.js} +1 -1
- package/bundle/{chunk-vs3s49jw.js → chunk-aykvrqrp.js} +2 -2
- package/bundle/{chunk-f4mnp6xd.js → chunk-b274mb6v.js} +1 -1
- package/bundle/{chunk-1v0khv7p.js → chunk-b79bb2g3.js} +1 -1
- package/bundle/{chunk-wtxh5m6j.js → chunk-bd66q24j.js} +3 -3
- package/bundle/{chunk-72crs18f.js → chunk-bffm0wv9.js} +1 -1
- package/bundle/{chunk-zwhmg9dj.js → chunk-bh1zbz62.js} +1 -1
- package/bundle/chunk-bqqxvagz.js +14 -0
- package/bundle/{chunk-gznt3dv8.js → chunk-bw0951fs.js} +1 -1
- package/bundle/chunk-bwzbcwff.js +2 -0
- package/bundle/{chunk-4y9wbfd2.js → chunk-bxc3z38f.js} +2 -2
- package/bundle/{chunk-kveztc6k.js → chunk-bzz2expb.js} +1 -1
- package/bundle/chunk-c1exgasy.js +2 -0
- package/bundle/{chunk-dt3bsmfe.js → chunk-c53ev0da.js} +2 -2
- package/bundle/{chunk-0tm6589k.js → chunk-c5n49vrd.js} +2 -2
- package/bundle/{chunk-e0hha3be.js → chunk-ccghr6pm.js} +1 -1
- package/bundle/{chunk-52xvhxek.js → chunk-cg7zeppb.js} +2 -2
- package/bundle/chunk-cgxzmkkf.js +2 -0
- package/bundle/{chunk-0z1keh2w.js → chunk-cm7yp259.js} +1 -1
- package/bundle/chunk-cs3cbfm8.js +2 -0
- package/bundle/{chunk-w7a33cwa.js → chunk-cshsqavb.js} +2 -2
- package/bundle/{chunk-2kh0tg92.js → chunk-csmdhh7r.js} +2 -2
- package/bundle/{chunk-w0nc0gcx.js → chunk-cydpdkx7.js} +1 -1
- package/bundle/{chunk-vsqvnxbz.js → chunk-czfjmrrq.js} +1 -1
- package/bundle/{chunk-bc2krtaf.js → chunk-d1j8frtq.js} +1 -1
- package/bundle/chunk-d29te4c1.js +2 -0
- package/bundle/{chunk-sz0favtz.js → chunk-d39e4fa8.js} +1 -1
- package/bundle/chunk-d6q42p18.js +2 -0
- package/bundle/{chunk-ax64ngf2.js → chunk-d6qs2pbx.js} +1 -1
- package/bundle/{chunk-wgkcyqn1.js → chunk-datctfgt.js} +2 -2
- package/bundle/chunk-dfbexagg.js +2 -0
- package/bundle/chunk-dfkcp43a.js +2 -0
- package/bundle/chunk-dps1p1g1.js +2 -0
- package/bundle/{chunk-z0kbyr00.js → chunk-dzw0j790.js} +2 -2
- package/bundle/chunk-e1fzgez5.js +2 -0
- package/bundle/chunk-e5cds19n.js +4 -0
- package/bundle/{chunk-wr6rnxr5.js → chunk-e6ckxkj8.js} +1 -1
- package/bundle/chunk-e7a50j2w.js +2 -0
- package/bundle/chunk-e9vh8d52.js +8 -0
- package/bundle/chunk-eftk07r3.js +3 -0
- package/bundle/chunk-egcvm4x2.js +3 -0
- package/bundle/chunk-ek3b08ed.js +2 -0
- package/bundle/chunk-ep92grvg.js +808 -0
- package/bundle/{chunk-7pckez5z.js → chunk-ex47pb9n.js} +2 -2
- package/bundle/{chunk-dhvx9p54.js → chunk-eya9c81t.js} +1 -1
- package/bundle/chunk-f78yth0b.js +2 -0
- package/bundle/{chunk-kgv68cpb.js → chunk-fd6qxjtf.js} +1 -1
- package/bundle/{chunk-b7sr9rn3.js → chunk-fnmq42y5.js} +1 -1
- package/bundle/chunk-fqvrxy41.js +2 -0
- package/bundle/{chunk-wtt5wms9.js → chunk-fqvsxg00.js} +1 -1
- package/bundle/{chunk-sy9w1t2y.js → chunk-fsagyvkz.js} +1 -1
- package/bundle/{chunk-trstb8ee.js → chunk-fzxqn4j0.js} +1 -1
- package/bundle/{chunk-7jy53zqy.js → chunk-g7jwp73v.js} +1 -1
- package/bundle/{chunk-27saej0r.js → chunk-g83d3a0t.js} +2 -2
- package/bundle/chunk-gamnnfna.js +2 -0
- package/bundle/{chunk-0a4pmkc9.js → chunk-gfer8ch3.js} +2 -2
- package/bundle/{chunk-2nheahmq.js → chunk-ghdegwnr.js} +1 -1
- package/bundle/chunk-gjxhz1a6.js +2 -0
- package/bundle/chunk-gpm39v12.js +2 -0
- package/bundle/chunk-gr8emzzx.js +2 -0
- package/bundle/chunk-gt6h68pk.js +2 -0
- package/bundle/{chunk-3z2zn8rj.js → chunk-gz8k40ty.js} +1 -1
- package/bundle/{chunk-bwadggys.js → chunk-h6kmpgak.js} +2 -2
- package/bundle/{chunk-t3w43rft.js → chunk-h8yf5e2e.js} +1 -1
- package/bundle/{chunk-ryrxgn6d.js → chunk-hama2v6a.js} +1 -1
- package/bundle/{chunk-3va85mbe.js → chunk-hav9pgf3.js} +2 -2
- package/bundle/chunk-hj588j4f.js +2 -0
- package/bundle/{chunk-nas631g2.js → chunk-hntsg7q4.js} +1 -1
- package/bundle/chunk-hqtex91e.js +2 -0
- package/bundle/{chunk-mr17tppa.js → chunk-hts68y73.js} +2 -2
- package/bundle/{chunk-2vaphpz0.js → chunk-j5dnzqjy.js} +1 -1
- package/bundle/{chunk-6tqbnxar.js → chunk-j7d3v0x2.js} +1 -1
- package/bundle/{chunk-1rgt2vmt.js → chunk-jcn8bg31.js} +1 -1
- package/bundle/{chunk-8p0t8qah.js → chunk-jf4zyy7r.js} +1 -1
- package/bundle/{chunk-sm1g81cv.js → chunk-jfe9f2wv.js} +1 -1
- package/bundle/{chunk-k6981ysw.js → chunk-jh2za7y4.js} +3 -3
- package/bundle/chunk-jmgpr5th.js +2 -0
- package/bundle/chunk-jt79yt0t.js +2 -0
- package/bundle/{chunk-t8fjgkp8.js → chunk-jt7g0r2j.js} +2 -2
- package/bundle/chunk-jtz5re73.js +2 -0
- package/bundle/{chunk-g6y2c5az.js → chunk-k232ny9m.js} +1 -1
- package/bundle/{chunk-vkkz40je.js → chunk-k4ajben7.js} +2 -2
- package/bundle/chunk-k4bj677f.js +3 -0
- package/bundle/{chunk-mv7q6ach.js → chunk-k4d8gwxe.js} +1 -1
- package/bundle/{chunk-h1bvqstw.js → chunk-k558fr15.js} +1 -1
- package/bundle/{chunk-85wh85pk.js → chunk-k56zj08h.js} +1 -1
- package/bundle/{chunk-a1z8rnq7.js → chunk-k5swnh8m.js} +4 -4
- package/bundle/{chunk-bkfafcbw.js → chunk-k8zbhj2p.js} +2 -2
- package/bundle/{chunk-vd8cmdpv.js → chunk-kr975sx0.js} +1 -1
- package/bundle/{chunk-ydgst3h8.js → chunk-krk24aqm.js} +2 -2
- package/bundle/{chunk-eg1m81ax.js → chunk-kt982884.js} +1 -1
- package/bundle/chunk-kw5z5awx.js +2 -0
- package/bundle/{chunk-d839fr0w.js → chunk-kxdw2vtq.js} +2 -2
- package/bundle/chunk-m8phqgxp.js +7 -0
- package/bundle/{chunk-kckr30tf.js → chunk-mazakqr7.js} +1 -1
- package/bundle/{chunk-1bxfzd6r.js → chunk-mnxcykeq.js} +4 -4
- package/bundle/chunk-mp42gb6q.js +2 -0
- package/bundle/{chunk-eyr5ymt8.js → chunk-mp5m0acf.js} +1 -1
- package/bundle/chunk-mq0733qh.js +2 -0
- package/bundle/chunk-mrcsatmn.js +2 -0
- package/bundle/{chunk-0tcggtwv.js → chunk-n230jbn9.js} +1 -1
- package/bundle/chunk-n24yx79r.js +5 -0
- package/bundle/{chunk-cr5tknvb.js → chunk-n2ytaxyn.js} +1 -1
- package/bundle/chunk-n4fwztya.js +2 -0
- package/bundle/{chunk-bpfq8fz4.js → chunk-n5dxwryh.js} +1 -1
- package/bundle/{chunk-dwqvcdmf.js → chunk-n9969djm.js} +1 -1
- package/bundle/{chunk-vgt3artc.js → chunk-ncvr75f6.js} +2 -2
- package/bundle/chunk-ng2g9kkk.js +2 -0
- package/bundle/chunk-ngfhfyjs.js +2 -0
- package/bundle/{chunk-y31f8k5f.js → chunk-nvvja3ch.js} +1 -1
- package/bundle/{chunk-c76cjhn0.js → chunk-nwkp2f8e.js} +1 -1
- package/bundle/{chunk-53jstmdp.js → chunk-nwygsfhk.js} +2 -2
- package/bundle/chunk-p0dnmrqp.js +2 -0
- package/bundle/{chunk-g878zd6e.js → chunk-p5p4jh9s.js} +1 -1
- package/bundle/chunk-p6h2ydcp.js +2 -0
- package/bundle/{chunk-wn63q3xp.js → chunk-pcmsxhrb.js} +1 -1
- package/bundle/{chunk-ccf4pgkr.js → chunk-pdcj2rfz.js} +2 -2
- package/bundle/{chunk-dgcannw0.js → chunk-pfd8gzy4.js} +1 -1
- package/bundle/{chunk-a8bjcvda.js → chunk-ph46s66y.js} +1 -1
- package/bundle/chunk-pkm3w0ks.js +3 -0
- package/bundle/{chunk-g26redah.js → chunk-pnmadk2h.js} +1 -1
- package/bundle/{chunk-y0h3jfkj.js → chunk-q65qzc9w.js} +1 -1
- package/bundle/{chunk-qk1jkc0n.js → chunk-q8qx38kz.js} +1 -1
- package/bundle/chunk-qhakedgs.js +2 -0
- package/bundle/{chunk-2caaqmec.js → chunk-qsgpbt4t.js} +1 -1
- package/bundle/{chunk-ejhhrece.js → chunk-qtdxy2q1.js} +3 -3
- package/bundle/chunk-r18zetwf.js +2 -0
- package/bundle/{chunk-t18ka1e7.js → chunk-r1936yb5.js} +1 -1
- package/bundle/{chunk-qgkb6n8k.js → chunk-r4qpsa4e.js} +2 -2
- package/bundle/chunk-r6055kk0.js +3 -0
- package/bundle/chunk-r6rgrz25.js +2 -0
- package/bundle/{chunk-rva2ekrt.js → chunk-r9ng8xx5.js} +1 -1
- package/bundle/chunk-rk4vp09j.js +2 -0
- package/bundle/{chunk-tk4z6r09.js → chunk-rkmg0gbq.js} +1 -1
- package/bundle/{chunk-t6zz47zk.js → chunk-rpc0he6b.js} +2 -2
- package/bundle/{chunk-sbjymf20.js → chunk-rvev3cy6.js} +2 -2
- package/bundle/{chunk-1har4t9a.js → chunk-rx29zmw2.js} +1 -1
- package/bundle/{chunk-4pmvxnkj.js → chunk-rxh160jr.js} +2 -2
- package/bundle/chunk-s3hbwksw.js +5 -0
- package/bundle/{chunk-sa0rrreh.js → chunk-s3zmxfz2.js} +2 -2
- package/bundle/chunk-s4jp4zce.js +2 -0
- package/bundle/{chunk-c987bemn.js → chunk-s6vhscvd.js} +2 -2
- package/bundle/{chunk-zrhw1szj.js → chunk-s81ck6bw.js} +1 -1
- package/bundle/{chunk-hz02vrqs.js → chunk-sbj816s8.js} +1 -1
- package/bundle/chunk-sec9y622.js +2 -0
- package/bundle/{chunk-dcv6wj9x.js → chunk-seda5sfd.js} +2 -2
- package/bundle/{chunk-ynf17943.js → chunk-sjtq9bbb.js} +2 -2
- package/bundle/chunk-sn7q178t.js +2 -0
- package/bundle/chunk-st0h54dm.js +2 -0
- package/bundle/{chunk-cghz0855.js → chunk-sxtfssjv.js} +1 -1
- package/bundle/chunk-sz75fx13.js +2 -0
- package/bundle/{chunk-6ps30qax.js → chunk-t076hwsv.js} +2 -2
- package/bundle/{chunk-phpxxd48.js → chunk-t3e19wdp.js} +1 -1
- package/bundle/{chunk-ftvvm4r5.js → chunk-t7s475b2.js} +2 -2
- package/bundle/chunk-tefh2cgk.js +2 -0
- package/bundle/chunk-tfez99qv.js +2 -0
- package/bundle/chunk-tjk1hymv.js +2 -0
- package/bundle/{chunk-48gap82w.js → chunk-tpw1ewqn.js} +1 -1
- package/bundle/{chunk-fej5x648.js → chunk-tqnf1p88.js} +1 -1
- package/bundle/chunk-tyk97q7c.js +2 -0
- package/bundle/chunk-tz1sv9kt.js +3 -0
- package/bundle/{chunk-g7v6sp3c.js → chunk-tz60e15h.js} +2 -2
- package/bundle/{chunk-d30k7dpf.js → chunk-tzwm08yc.js} +1 -1
- package/bundle/chunk-v1098rqc.js +2 -0
- package/bundle/chunk-v30ezr68.js +11 -0
- package/bundle/{chunk-jmmtcr2r.js → chunk-v5j3ypfv.js} +1 -1
- package/bundle/chunk-v5wn741w.js +2 -0
- package/bundle/{chunk-xy8arehp.js → chunk-vamwvx0x.js} +1 -1
- package/bundle/{chunk-wm9nh9nb.js → chunk-vbcekkw2.js} +2 -2
- package/bundle/chunk-vf75j9wd.js +2 -0
- package/bundle/{chunk-wqk1v8t0.js → chunk-vhh80d5j.js} +2 -2
- package/bundle/{chunk-5bv63rqj.js → chunk-vm8htc6d.js} +1 -1
- package/bundle/{chunk-56wq8cqj.js → chunk-vnz9n9z0.js} +1 -1
- package/bundle/chunk-vp6ttkct.js +2 -0
- package/bundle/chunk-vpcsmwsb.js +2 -0
- package/bundle/{chunk-afr8m0q1.js → chunk-vrt8wd3r.js} +1 -1
- package/bundle/chunk-vyf77kq1.js +29 -0
- package/bundle/{chunk-vph4w4yy.js → chunk-w32xhz0x.js} +2 -2
- package/bundle/{chunk-fjftb2sz.js → chunk-wdy0fsp8.js} +2 -2
- package/bundle/{chunk-tbx741en.js → chunk-wkepvmgt.js} +1 -1
- package/bundle/{chunk-rwwvy89t.js → chunk-wp0xd7at.js} +1 -1
- package/bundle/{chunk-y3gy62q5.js → chunk-wpkr3vzf.js} +1 -1
- package/bundle/{chunk-jqj1ay7x.js → chunk-wpx2vmf5.js} +1 -1
- package/bundle/{chunk-35fj1sfm.js → chunk-wqkvsj5y.js} +2 -2
- package/bundle/{chunk-8jmb5bd4.js → chunk-wspbjh74.js} +2 -2
- package/bundle/{chunk-6vnqbejg.js → chunk-wzfb19t6.js} +1 -1
- package/bundle/chunk-x23s1s8k.js +2 -0
- package/bundle/{chunk-59csnjc3.js → chunk-x28chfpz.js} +2 -2
- package/bundle/{chunk-bhg69t69.js → chunk-xf1y0sc6.js} +2 -2
- package/bundle/{chunk-zsg29gba.js → chunk-xfsccqsm.js} +1 -1
- package/bundle/{chunk-qsme16gk.js → chunk-xmt17jd4.js} +2 -2
- package/bundle/{chunk-a48mx917.js → chunk-xphzr4wg.js} +2 -2
- package/bundle/chunk-xr6js4ek.js +2 -0
- package/bundle/chunk-y078gb3n.js +2 -0
- package/bundle/{chunk-ykpj10nz.js → chunk-y24yxs9g.js} +2 -2
- package/bundle/{chunk-wb47k8ah.js → chunk-y565z8n2.js} +2 -2
- package/bundle/{chunk-p2fte9vz.js → chunk-y7cqyeve.js} +2 -2
- package/bundle/{chunk-g3n465ee.js → chunk-y8bxvp3c.js} +2 -2
- package/bundle/{chunk-29gwtcey.js → chunk-y8tx9x5b.js} +1 -1
- package/bundle/{chunk-5xkp27b1.js → chunk-ya6r72ng.js} +1 -1
- package/bundle/chunk-yewjnqee.js +2 -0
- package/bundle/{chunk-29q89bge.js → chunk-yg0rs4g1.js} +2 -2
- package/bundle/{chunk-rwnwjm82.js → chunk-yhr7s8qm.js} +2 -2
- package/bundle/chunk-ykk9e9as.js +2 -0
- package/bundle/chunk-yqn88gjf.js +2 -0
- package/bundle/chunk-yrxg3dex.js +2 -0
- package/bundle/{chunk-eacpc64g.js → chunk-yvtbt12y.js} +2 -2
- package/bundle/chunk-z1xeqrgd.js +2 -0
- package/bundle/chunk-z5j46dem.js +2 -0
- package/bundle/{chunk-mrq35ftw.js → chunk-zj5snrsa.js} +2 -2
- package/bundle/{chunk-9cf2ktyh.js → chunk-zjfdptdj.js} +1 -1
- package/bundle/chunk-zq0hpja9.js +2 -0
- package/bundle/chunk-zqzh5hp3.js +2 -0
- package/bundle/{chunk-qgek59e6.js → chunk-zr1cvkpb.js} +1 -1
- package/bundle/{chunk-fa8pwdwv.js → chunk-zr89enb8.js} +1 -1
- package/bundle/{chunk-jr80q31w.js → chunk-zskjqrmc.js} +1 -1
- package/bundle/{chunk-92r1gw2j.js → chunk-ztjrm8m0.js} +2 -2
- package/bundle/chunk-zv89qwjc.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-03zpnwk2.js +0 -2
- package/bundle/chunk-0aqdzyar.js +0 -2
- package/bundle/chunk-0eh3yc6e.js +0 -2
- package/bundle/chunk-0mh600tv.js +0 -2
- package/bundle/chunk-1a6q1f5n.js +0 -7
- package/bundle/chunk-2a5gjgvp.js +0 -2
- package/bundle/chunk-2phyc1c0.js +0 -2
- package/bundle/chunk-2pkfphgb.js +0 -2
- package/bundle/chunk-30wp95w1.js +0 -2
- package/bundle/chunk-32fpqd0n.js +0 -2
- package/bundle/chunk-3f2cjzb4.js +0 -2
- package/bundle/chunk-3qvap1kv.js +0 -2
- package/bundle/chunk-42hvspe7.js +0 -2
- package/bundle/chunk-452tk6v3.js +0 -2
- package/bundle/chunk-4gqb1hps.js +0 -2
- package/bundle/chunk-50qgz5ka.js +0 -2
- package/bundle/chunk-539cw9r0.js +0 -2
- package/bundle/chunk-5b0xyq5z.js +0 -2
- package/bundle/chunk-5j4nxpdy.js +0 -2
- package/bundle/chunk-5nxgk6hw.js +0 -2
- package/bundle/chunk-5qkvhr6y.js +0 -2
- package/bundle/chunk-6dpdkzrk.js +0 -2
- package/bundle/chunk-6p6m5956.js +0 -3
- package/bundle/chunk-705qkpra.js +0 -28
- package/bundle/chunk-76c400ze.js +0 -2
- package/bundle/chunk-7bxxc4a3.js +0 -2
- package/bundle/chunk-7g59hc61.js +0 -2
- package/bundle/chunk-7p88j56s.js +0 -2
- package/bundle/chunk-7r92d7v9.js +0 -14
- package/bundle/chunk-7trngc9g.js +0 -2
- package/bundle/chunk-8cebbmtf.js +0 -2
- package/bundle/chunk-8j1xcdmd.js +0 -2
- package/bundle/chunk-90r2z49k.js +0 -2
- package/bundle/chunk-94mjwy22.js +0 -2
- package/bundle/chunk-9bw6bx5c.js +0 -2
- package/bundle/chunk-aenrd7dk.js +0 -2
- package/bundle/chunk-ahmy80vb.js +0 -2
- package/bundle/chunk-avn12jkt.js +0 -2
- package/bundle/chunk-bnw744ej.js +0 -8
- package/bundle/chunk-brk6bge4.js +0 -3
- package/bundle/chunk-ce5e7j62.js +0 -2
- package/bundle/chunk-cw1gwjx9.js +0 -2
- package/bundle/chunk-czw30fjs.js +0 -2
- package/bundle/chunk-dtcvqrmn.js +0 -2
- package/bundle/chunk-dwhsvpag.js +0 -2
- package/bundle/chunk-e0hfpdje.js +0 -2
- package/bundle/chunk-e5jk67xh.js +0 -2
- package/bundle/chunk-eg4pq4hv.js +0 -2
- package/bundle/chunk-ew3yz97p.js +0 -2
- package/bundle/chunk-f2yfyhh8.js +0 -2
- package/bundle/chunk-fd8x2nb4.js +0 -2
- package/bundle/chunk-fv5mrdyc.js +0 -5
- package/bundle/chunk-fveaq0pb.js +0 -2
- package/bundle/chunk-gbvm6dpv.js +0 -2
- package/bundle/chunk-gkbx6edf.js +0 -2
- package/bundle/chunk-gq9hb2e8.js +0 -2
- package/bundle/chunk-gsez13bg.js +0 -3
- package/bundle/chunk-gswhjd1h.js +0 -3
- package/bundle/chunk-h5w91zr4.js +0 -2
- package/bundle/chunk-hmpb3c21.js +0 -2
- package/bundle/chunk-hq7s4f75.js +0 -2
- package/bundle/chunk-j1h64m65.js +0 -2
- package/bundle/chunk-j32rr7rt.js +0 -2
- package/bundle/chunk-j871xzr7.js +0 -2
- package/bundle/chunk-k1qd8ecm.js +0 -808
- package/bundle/chunk-kx88qekb.js +0 -2
- package/bundle/chunk-m4g4djss.js +0 -2
- package/bundle/chunk-mt2by7rx.js +0 -3
- package/bundle/chunk-mwkms65j.js +0 -3
- package/bundle/chunk-n61e0znt.js +0 -2
- package/bundle/chunk-ndd4cn3z.js +0 -2
- package/bundle/chunk-nr2j8ytn.js +0 -3
- package/bundle/chunk-nsw5x43k.js +0 -2
- package/bundle/chunk-p5b5ekhh.js +0 -2
- package/bundle/chunk-pf23nw4z.js +0 -2
- package/bundle/chunk-pw3cv89g.js +0 -2
- package/bundle/chunk-qwmae3vk.js +0 -5
- package/bundle/chunk-rdk62809.js +0 -2
- package/bundle/chunk-rew6r516.js +0 -2
- package/bundle/chunk-rjcz4kbm.js +0 -2
- package/bundle/chunk-rmsqb6r4.js +0 -10
- package/bundle/chunk-skgr9ypq.js +0 -2
- package/bundle/chunk-sv40pwe2.js +0 -2
- package/bundle/chunk-tax3ecy5.js +0 -2
- package/bundle/chunk-tfhpjmny.js +0 -2
- package/bundle/chunk-tnete6ye.js +0 -2
- package/bundle/chunk-tpyq7ycb.js +0 -2
- package/bundle/chunk-tr0rm1ka.js +0 -2
- package/bundle/chunk-ty14zznd.js +0 -2
- package/bundle/chunk-v5h5wxw5.js +0 -2
- package/bundle/chunk-v6141yq1.js +0 -2
- package/bundle/chunk-vjs69r6x.js +0 -2
- package/bundle/chunk-vmhar83s.js +0 -2
- package/bundle/chunk-vpjyk76v.js +0 -2
- package/bundle/chunk-vqvnw12p.js +0 -2
- package/bundle/chunk-w0sztk4y.js +0 -2
- package/bundle/chunk-w6bb320d.js +0 -2
- package/bundle/chunk-wqw6yjrg.js +0 -2
- package/bundle/chunk-ws08rxge.js +0 -2
- package/bundle/chunk-wwvek9zf.js +0 -3
- package/bundle/chunk-wz3dvc3g.js +0 -2
- package/bundle/chunk-x2pmqvdc.js +0 -2
- package/bundle/chunk-x4wfq39v.js +0 -2
- package/bundle/chunk-x7a3kqe5.js +0 -2
- package/bundle/chunk-xb22grz6.js +0 -2
- package/bundle/chunk-y3eeva80.js +0 -2
- package/bundle/chunk-yb6m08zj.js +0 -2
- package/bundle/chunk-ybcqkgs7.js +0 -2
- package/bundle/chunk-zj1jc1xt.js +0 -2
- package/bundle/chunk-zm0m0504.js +0 -2
- package/bundle/chunk-zq32jhj1.js +0 -2
- package/bundle/chunk-zxwjxszn.js +0 -2
package/bundle/chunk-452tk6v3.js
DELETED
package/bundle/chunk-4gqb1hps.js
DELETED
package/bundle/chunk-50qgz5ka.js
DELETED
package/bundle/chunk-539cw9r0.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hl as a,il as b,jl as c,kl as d,ll as e,ml as f,nl as g,ol as h,pl as i}from"./chunk-bhg69t69.js";import"./chunk-rdreeyv0.js";import"./chunk-sa0rrreh.js";import"./chunk-6tqbnxar.js";import"./chunk-wqk1v8t0.js";import"./chunk-rwwvy89t.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-gswhjd1h.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-e0vrxetq.js";export{i as stopRefresh,h as startRefresh,g as refresh,d as readModelCatalogResponse,f as get,c as Provider,b as Model,a as MODEL_CATALOG_MAX_BYTES,e as Data};
|
package/bundle/chunk-5b0xyq5z.js
DELETED
package/bundle/chunk-5j4nxpdy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Of as l}from"./chunk-ahmy80vb.js";import"./chunk-p8ak162p.js";import{Jg as q}from"./chunk-brk6bge4.js";import"./chunk-nfg7nt13.js";import"./chunk-qgkb6n8k.js";import{xO as C}from"./chunk-e0vrxetq.js";function J(){return async(f,b)=>{if("_zod"in f)return l()(f,{components:b.components,options:{io:"input",...b.options}});try{let{createSchema:w}=await import("./chunk-9cf2ktyh.js"),{schema:B,components:k}=w(f,{schemaType:"input",...b.options});if(k)b.components.schemas={...b.components.schemas,...k};return B}catch{throw Error(q('Missing dependencies "zod-openapi v4".'))}}}export{J as default};
|
package/bundle/chunk-5nxgk6hw.js
DELETED
package/bundle/chunk-5qkvhr6y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Sn as a,Tn as b,Un as c,Vn as d,Wn as e,Xn as f,Yn as g,Zn as h,_n as i}from"./chunk-eewe7tx1.js";import"./chunk-wm9nh9nb.js";import"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-az3nss5m.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-e0vrxetq.js";export{i as gateway,h as createGatewayProvider,h as createGateway,g as GatewayResponseError,d as GatewayRateLimitError,e as GatewayModelNotFoundError,c as GatewayInvalidRequestError,f as GatewayInternalServerError,a as GatewayError,b as GatewayAuthenticationError};
|
package/bundle/chunk-6dpdkzrk.js
DELETED
package/bundle/chunk-6p6m5956.js
DELETED
package/bundle/chunk-705qkpra.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Af as qH}from"./chunk-zqdjk4rf.js";import{co as QH,go as KH,yo as SH}from"./chunk-4y9wbfd2.js";import"./chunk-wm9nh9nb.js";import"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-rwwvy89t.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import{ds as Q}from"./chunk-fveaq0pb.js";import"./chunk-gswhjd1h.js";import{Hs as OH}from"./chunk-wgkcyqn1.js";import{Os as t,Ws as FH}from"./chunk-59csnjc3.js";import{it as PH,lt as _H}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-e0vrxetq.js";var vH=0.9,fH=256,XH="[Earlier tool result removed to fit the request size limit]",m;function v(H){return Buffer.byteLength(JSON.stringify(H),"utf8")}function DH(){return t.QITQODE_QLEX_MAX_REQUEST_BYTES??m}function e(H){let J=t.QITQODE_QLEX_MAX_REQUEST_BYTES;if(J!==void 0)return J;let K=Math.max(1,Math.min(Math.floor(H*vH),Math.floor(H)-1));return m=m===void 0?K:Math.min(m,K),m}function l(H,J){return!!H&&typeof H==="object"&&H.role===J}function YH(H){let J=[],K=0;while(K<H.length){let Z=K,$=H[K];if(K++,l($,"assistant")&&Array.isArray($?.tool_calls)&&$.tool_calls.length>0)while(K<H.length&&l(H[K],"tool"))K++;J.push({start:Z,end:K})}return J}function VH(H,J){if(J.length===0)return[];let K=-1;for(let Z=J.length-1;Z>=0;Z--){let $=J[Z],z=!1;for(let X=$.start;X<$.end;X++)if(l(H[X],"user"))z=!0;if(z){K=Z;break}}return J.filter((Z,$)=>{if($===J.length-1)return!1;if($===K)return!1;if(Z.start===0&&l(H[0],"system"))return!1;return!0})}function HH(H,J){let K=v(H),Z={toolResultsElided:0,unitsDropped:0},$=()=>({body:H,bytes:K,originalBytes:K,reduced:!1,actions:Z});if(!H||typeof H!=="object")return $();let z=H.messages;if(!Array.isArray(z))return $();let X=z.map((U)=>U&&typeof U==="object"?{...U}:U),Y=()=>({...H,messages:X}),V=()=>v(Y())<=J;{let U=X;for(let P of VH(U,YH(U))){let S=!1;for(let L=P.start;L<P.end;L++){let E=U[L];if(!l(E,"tool"))continue;let w=E?.content;if(typeof w!=="string"||w.length<fH)continue;if(w===XH)continue;U[L]={...E,content:XH},Z.toolResultsElided++,S=!0}if(S&&V())break}}if(!V())for(;;){let U=X,S=VH(U,YH(U))[0];if(!S)break;if(X=[...U.slice(0,S.start),...U.slice(S.end)],Z.unitsDropped++,V())break}let W=Y(),G=v(W);return{body:W,bytes:G,originalBytes:K,reduced:G<K&&G<=J,actions:Z}}import y from"fs/promises";import LH from"path";import{randomUUID as yH}from"crypto";var k=FH({service:"provider.qlex"}),pH=Q.streamUrl(),uH=Q.omniqueryBaseUrl()+"/runOrchestrated";function b(H,J){let K=H;if(J.status!==void 0)K.status=J.status;if(J.upstreamCode!==void 0)K.upstreamCode=J.upstreamCode;if(J.requestId!==void 0)K.requestId=J.requestId;if(K.category=J.category,K.retryable=J.retryable,J.outputBudgetRecoveryAvailable!==void 0)K.outputBudgetRecoveryAvailable=J.outputBudgetRecoveryAvailable;if(J.outputBudgetRecoveryTokens!==void 0)K.outputBudgetRecoveryTokens=J.outputBudgetRecoveryTokens}function x(H,J){return{...H,...J}}class MH extends Error{name="QlexNotLoggedInError";constructor(H){super(Q.copy().notLoggedIn);b(this,x({category:"invalid_credentials",retryable:!1},H))}}class kH extends Error{name="QlexInsufficientBalanceError";constructor(H,J){super(Q.copy().insufficientBalance(H));b(this,x({status:402,category:"billing",retryable:!1},J))}}class EH extends Error{name="QlexRateLimitError";constructor(H){super(Q.copy().rateLimit);b(this,x({status:429,category:"rate_limited",retryable:!0},H))}}class wH extends Error{name="QlexInvalidCredentialsError";constructor(H,J){super(Q.copy().invalidCredentials(H));b(this,x({status:401,category:"invalid_credentials",retryable:!1},J))}}class RH extends Error{name="QlexRequestRejectedError";constructor(H,J,K){super(Q.copy().requestRejected(H,J));b(this,x({status:400,category:"request_rejected",retryable:!1},K))}}class a extends Error{name="QlexRequestTooLargeError";stage;constructor(H="irreducible",J,K){super(H==="after-reduction"?Q.copy().requestTooLargeAfterReduction(J):Q.copy().requestTooLargeIrreducible(J));this.stage=H,b(this,x({status:413,category:"request_too_large",retryable:!1},K))}}class CH extends Error{name="QlexRequestNotSentError";constructor(H,J){super(Q.copy().requestNotSent(H));b(this,x({category:"request_rejected",retryable:!1},J))}}class u extends Error{name="QlexGatewayError";constructor(H,J){super(Q.copy().gatewayUnavailable(H));b(this,x({category:"gateway_routing",retryable:!1},J))}}var cH=60000,mH=320000;function lJ(H){return Q.sanitizeUpstreamError(H)}class g extends Error{name="QlexStreamError";constructor(H,J,K){let Z=x({category:"unknown",retryable:!1},J);super(Z.category==="output_budget_exhausted"?Q.copy().outputBudgetExhausted():Z.category==="empty_output"?Q.copy().emptyOutput():Z.category==="stream_truncated"?Q.copy().streamCutOff(K):Z.category==="stream_failed"?Q.copy().streamFailedAfterRetries(K):Q.copy().streamFailed(H));b(this,Z),OH(this)}}var lH=[{match:/\b(unauthori[sz]ed|forbidden|invalid[ _-]?(api[ _-]?key|token|credential)|expired[ _-]?token|authentication[ _-]?(failed|error)|401|403)\b/i,category:"invalid_credentials",retryable:!1},{match:/(output (?:token )?budget|maximum output tokens|max_tokens|finish[_ -]?reason.{0,20}(length|budget)|reasoning.{0,20}(budget|tokens))/i,category:"output_budget_exhausted",retryable:!1},{match:/\b(no visible output|empty output|produced no (?:visible )?(?:text|output)|nothing to display)\b/i,category:"empty_output",retryable:!1},{match:/\b(insufficient[ _-]?(credits?|qredits?|balance|funds)|payment[ _-]?required|quota[ _-]?exceeded|out[ _-]?of[ _-]?(credits?|qredits?)|402)\b/i,category:"billing",retryable:!1},{match:/\b(rate[ _-]?limit(ed|s)?|too[ _-]?many[ _-]?requests|429)\b/i,category:"rate_limited",retryable:!0},{match:/(unexpected end of (json|input|stream|data)|premature (close|end)|socket hang ?up|incomplete (response|output|json|message)|truncated|stream (ended|closed|terminated) (early|unexpectedly|prematurely)|\bECONNRESET\b|\bEPIPE\b)/i,category:"stream_truncated",retryable:!0},{match:/\b(overloaded|at capacity|service[ _-]?unavailable|temporarily[ _-]?unavailable|bad[ _-]?gateway|gateway[ _-]?time(d[ _-]?out|out)|timed[ _-]?out|502|503|504)\b/i,category:"transient",retryable:!0}],dH={ERR_EMPTY_RESULT:{category:"empty_output",retryable:!1},ERR_TRUNCATED_OUTPUT:{category:"stream_truncated",retryable:!0},ERR_STREAM:{category:"stream_failed",retryable:!0}},nH=/^\s*(ERR_[A-Z0-9_]+)\b(?:\s*(?:[\u2014\u2013:-]\s*)?)?/i,iH=/\b(req_[A-Za-z0-9][A-Za-z0-9_-]*)\b/;function rH(H){let J=H??"",K=nH.exec(J),Z=K?.[1]?.toUpperCase(),$=iH.exec(J)?.[1],z=K?J.slice(K[0].length):J;if(Z!==void 0){let X=dH[Z];if(X!==void 0)return{...X,upstreamCode:Z,...$?{requestId:$}:{}}}for(let X of lH)if(X.match.test(z))return{category:X.category,retryable:X.retryable,...Z?{upstreamCode:Z}:{},...$?{requestId:$}:{}};return{category:"unknown",retryable:!1,...Z?{upstreamCode:Z}:{},...$?{requestId:$}:{}}}function oH(H){return QH(H)}function AH(H,J){let K,Z,$,z=!1;try{let W=JSON.parse(J);if(W&&typeof W==="object"){let G=W.error&&typeof W.error==="object"?W.error:void 0;if(typeof G?.code==="string")K=G.code;else if(typeof W.code==="string")K=W.code;if(typeof G?.message==="string")Z=G.message;else if(typeof W.message==="string")Z=W.message;if(typeof W.details?.field==="string")$=W.details.field}}catch(W){z=/^\s*[\[{]/.test(J)&&(sH(J)||/unexpected end|end of json|unterminated string/i.test(String(W)))}let X=K?.toUpperCase()??"",Y=(()=>{if(z)return"stream_truncated";if(H===402)return"billing";if(H===413)return"request_too_large";if(H===429)return"rate_limited";if(H===401||H===403)return X==="ERR_GATEWAY_REQUIRED"||oH(J)?"gateway_routing":"invalid_credentials";if(X.includes("CONFIG"))return"configuration";if(H>=500)return"transient";if(H>=400)return"request_rejected";return"unknown"})(),V={status:H,category:Y,retryable:Y==="transient"||Y==="rate_limited"||Y==="stream_truncated"};if(K!==void 0)V.upstreamCode=K;if(Z!==void 0)V.upstreamMessage=Z;if($!==void 0)V.field=$;return V}function sH(H){let J=0,K=!1,Z=!1;for(let $ of H){if(K){if(Z)Z=!1;else if($==="\\")Z=!0;else if($==='"')K=!1;continue}if($==='"')K=!0;else if($==="{"||$==="[")J++;else if($==="}"||$==="]")J--;if(J<0)return!1}return K||J>0}function aH(H){let J=Q.tierBudgetFacts(H.tier),K=H.advisory,Z=K?.tierOutputLimit??J?.output;if(H.requestedTotal!==void 0)return{total:Z===void 0?H.requestedTotal:Math.min(H.requestedTotal,Z)};if(!K&&!J)return{};let $=K?.reasoningReserveTokens??J?.reasoningReserve??0,z=K?.visibleOutputFloorTokens??J?.visibleOutputFloor??0,X=K?.recommendedTotalTokens??K?.tierRecommendedStepTokens??J?.recommendedTotal??J?.recommendedStep??Z,Y=K?.viableTotalFloorTokens??J?.viableTotalFloor??$+z,V=X===void 0?Y:Math.max(X,Y),W=K?.reasoningReported??J?.reasoning;return{total:Z===void 0?V:Math.min(V,Z),reasoningBudget:W&&$>0?Math.min($,V):void 0}}var tH=new Set(["coding","agent","research","review","chat"]);function eH(H){if(H===void 0)return;if(typeof H==="string"&&tH.has(H))return H;throw Error(`invalid Qortex posture: ${String(H)}`)}function HJ(H){if(H===void 0)return;let J=Array.isArray(H)?H:[H];if(J.every((K)=>typeof K==="string"&&/^[^/\s]+\/[^/\s]+$/.test(K)))return Array.isArray(H)?J:H;throw Error(`invalid Qortex directive registry key: ${String(H)}`)}function s(H){if(typeof H==="string")return H;if(Array.isArray(H))return H.map((J)=>{if(typeof J==="string")return J;if(J&&typeof J==="object"){let K=J;if(typeof K.text==="string")return K.text;if(typeof K.content==="string")return K.content}return""}).join("");if(H===void 0||H===null)return"";return String(H)}var JJ="[Tool call]",KJ="[Tool returned no output]";function TH(H){if(!Array.isArray(H))return{messages:H,dropped:[]};let J=[];return{messages:H.flatMap((Z,$)=>{if(!Z||typeof Z!=="object")return J.push({index:$,role:typeof Z,reason:"not-an-object"}),[];let z=Z,X=s(z.content);if(X.trim().length>0)return[{...z,content:X}];if(z.role==="assistant"&&Array.isArray(z.tool_calls)&&z.tool_calls.length>0)return[{...z,content:JJ}];if(z.role==="tool"&&typeof z.tool_call_id==="string"&&z.tool_call_id.trim().length>0)return[{...z,content:KJ}];return J.push({index:$,role:typeof z.role==="string"?z.role:"unknown",reason:"empty-content"}),[]}),dropped:J}}function ZJ(H){return TH(H).messages}function $J(H){if(!Array.isArray(H))return!1;return H.some((J)=>!!J&&typeof J==="object"&&J.role==="user")}function zJ(H){if(!Array.isArray(H))return!1;return H.some((J)=>{if(!J||typeof J!=="object")return!1;let K=J;if(K.role!=="user")return!1;return s(K.content).trim().length>0})}function XJ(H){if(!Array.isArray(H))return H;let J=(z)=>!!z&&typeof z==="object"&&z.role==="system",K=0;while(K<H.length&&J(H[K]))K++;if(K<=1)return H;let Z=H.slice(0,K),$=Z.map((z)=>typeof z.content==="string"?z.content:String(z.content??"")).filter((z)=>z.length>0).join(`
|
|
3
|
-
|
|
4
|
-
`);return[{...Z[0],role:"system",content:$},...H.slice(K)]}var d="<tool_call>",r="</tool_call>";function YJ(H){if(!Array.isArray(H)||H.length===0)return;let J=H.map((K)=>{try{return JSON.stringify(K)}catch{return}}).filter((K)=>K!==void 0);if(J.length===0)return;return["# Tools","","You may call one or more functions to assist with the user query.","","You are provided with function signatures within <tools></tools> XML tags:","<tools>",...J,"</tools>","","For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:","<tool_call>",'{"name": <function-name>, "arguments": <args-json-object>}',"</tool_call>","","Function results will be provided within <tool_response></tool_response> XML tags. Do not write <tool_response> blocks yourself.","Only use the functions declared above. Never invent function names, and never write out a function-call-like block in any other format."].join(`
|
|
5
|
-
`)}var VJ=3;function $H(H){let J=H;for(let K=0;K<VJ;K++){if(J!==null&&typeof J==="object")return J;if(typeof J!=="string")return;try{J=JSON.parse(J)}catch{return}}return}function DJ(H){let J=H?.tool_calls;if(!Array.isArray(J))return;for(let K of J){let Z=K?.function;if(!Z)continue;k.debug("tool call ingress",{tool:typeof Z.name==="string"?Z.name:"?",source:"native",args:zH(Z.arguments)})}}function zH(H,J=300){let K;try{K=typeof H==="string"?H:JSON.stringify(H)??String(H)}catch{K="<unrenderable>"}return K.length<=J?K:`${K.slice(0,J)}\u2026 (${K.length} chars total)`}function WJ(H){let J=H.function??{},K=typeof J.name==="string"?J.name:"",Z=J.arguments===void 0?{}:$H(J.arguments);if(Z===void 0)k.warn("dropping unrecoverable tool-call arguments while re-encoding history",{tool:K,raw:zH(J.arguments)});return`${d}
|
|
6
|
-
${JSON.stringify({name:K,arguments:Z??{}})}
|
|
7
|
-
${r}`}function IH(H,J){if(!Array.isArray(H))return H;let K=H.map(($)=>{if(!$||typeof $!=="object")return $;let z=$;if(z.role==="assistant"&&Array.isArray(z.tool_calls)){let X=z.tool_calls.map(WJ).join(`
|
|
8
|
-
`),Y=s(z.content),{tool_calls:V,...W}=z;return{...W,content:Y.length>0?`${Y}
|
|
9
|
-
${X}`:X}}if(z.role==="tool"){let{tool_call_id:X,name:Y,...V}=z;return{...V,role:"user",content:`<tool_response>
|
|
10
|
-
${s(z.content)}
|
|
11
|
-
</tool_response>`}}return $}),Z=YJ(J);if(Z){let $=0;while($<K.length&&!!K[$]&&typeof K[$]==="object"&&K[$].role==="system")$++;K.splice($,0,{role:"system",content:Z})}return K}function NJ(){return process.env.QITQODE_TOOL_PROTOCOL==="text"?"text":"native"}function GJ(H){if(Array.isArray(H.tools)&&H.tools.length>0)return!0;let J=H.messages;if(!Array.isArray(J))return!1;return J.some((K)=>{if(!K||typeof K!=="object")return!1;let Z=K;return Z.role==="tool"||Z.role==="assistant"&&Array.isArray(Z.tool_calls)})}function WH(H,J){let K=J?.toolMode??"native",Z=H.model??"adaptive",$={stream:H.stream??!0};if(H.temperature!==void 0)$.temperature=H.temperature;if(H.max_tokens!==void 0)$.max_tokens=H.max_tokens;let z=aH({tier:Z,advisory:J?.outputAdvisory,requestedTotal:$.max_tokens});if(z.total!==void 0)$.max_tokens=z.total;if(z.reasoningBudget!==void 0)$.thinking={budget_tokens:z.reasoningBudget};if(J?.outputBudgetRecoveryTokens!==void 0){let G=typeof $.max_tokens==="number"?$.max_tokens:0,U=J.outputAdvisory?.tierOutputLimit??Q.tierBudgetFacts(Z)?.output,P=Math.min(J.outputBudgetRecoveryTokens,U??J.outputBudgetRecoveryTokens);if(P>G)$.max_tokens=P}if(H.tools!==void 0)$.tools=H.tools;if(H.tool_choice!==void 0)$.tool_choice=H.tool_choice;if(H.stream_options!==void 0)$.stream_options=H.stream_options;let X=K==="text"?IH(H.messages,H.tools):H.messages,Y={},V=eH(H.posture);if(V!==void 0)Y.posture=V;let W=HJ(H.directive);if(W!==void 0)Y.directive=W;if(H.modelPersona!==void 0)Y.modelPersona=H.modelPersona;return{tier:Z,messages:XJ(ZJ(X)),opts:$,...Y}}var n=new Map,p=LH.join(_H.Path.data,"qlex-tier-advisories.json"),jJ="qlex-tier-advisories",UJ=2592000000,NH=!1,PJ;function BH(H,J){if(!H||typeof H!=="object")return;let K=H;if(typeof K.capturedAt!=="number"||J-K.capturedAt>UJ)return;if(!K.advisory)return;return{advisory:K.advisory,capturedAt:K.capturedAt}}async function _J(){if(NH)return;try{let H=JSON.parse(await y.readFile(p,"utf8")),J=Date.now();for(let[K,Z]of Object.entries(H)){let $=BH(Z,J);if($)bH(K,$.advisory,$.capturedAt)}}catch{}NH=!0}function FJ(){return PJ??=_J()}function bH(H,J,K=Date.now()){n.set(H,{advisory:J,capturedAt:K})}async function OJ(H){await PH.withLock(jJ,async()=>{let J={};try{let Z=JSON.parse(await y.readFile(p,"utf8")),$=Date.now();for(let[z,X]of Object.entries(Z)){let Y=BH(X,$);if(Y)J[z]=Y}}catch{}for(let[Z,$]of H){let z=J[Z];if(!z||z.capturedAt<=$.capturedAt)J[Z]=$}await y.mkdir(LH.dirname(p),{recursive:!0});let K=`${p}.${process.pid}.${yH()}.tmp`;try{await y.writeFile(K,JSON.stringify(J)),await y.rename(K,p)}catch(Z){throw await y.rm(K,{force:!0}).catch(()=>{}),Z}})}function QJ(){if(i)return;i=!0,ZH=ZH.then(()=>{return i=!1,OJ([...n].map(([H,J])=>[H,J]))}).catch((H)=>{i=!1,k.warn("failed to persist tier output advisories",{file:p,error:H instanceof Error?H.message:String(H)})})}function f(H){return typeof H==="number"&&Number.isFinite(H)&&H>0?H:void 0}function SJ(H,J){let K={},Z=f(J.tierOutputLimit),$=f(J.tierRecommendedStepTokens),z=f(J.reasoningReserveTokens),X=f(J.visibleOutputFloorTokens),Y=f(J.recommendedTotalTokens),V=f(J.viableTotalFloorTokens),W=f(J.budgetPolicyVersion);if(Z!==void 0)K.tierOutputLimit=Z;if($!==void 0)K.tierRecommendedStepTokens=$;if(z!==void 0)K.reasoningReserveTokens=z;if(X!==void 0)K.visibleOutputFloorTokens=X;if(Y!==void 0)K.recommendedTotalTokens=Y;if(V!==void 0)K.viableTotalFloorTokens=V;if(typeof J.reasoningReported==="boolean")K.reasoningReported=J.reasoningReported;if(W!==void 0)K.budgetPolicyVersion=W;if(Object.keys(K).length===0)return;bH(H,K),QJ()}function qJ(H){return n.get(H)?.advisory}function dJ(){n.clear()}function nJ(){return ZH}function LJ(H){let J=(K)=>typeof K==="string"&&(K.startsWith("qlex")||K.startsWith("qortex"));return J(H.id)||J(H.object)}function MJ(H){let J=[],K=H.indexOf(`
|
|
12
|
-
`)===-1?[H]:H.split(`
|
|
13
|
-
`);for(let X of K){let Y=X.endsWith("\r")?X.slice(0,-1):X;if(!Y.startsWith("data:"))continue;let V=Y.slice(5);if(V.startsWith(" "))V=V.slice(1);J.push(V)}if(J.length===0)return{kind:"skip"};let Z=J.length===1?J[0]:J.join(`
|
|
14
|
-
`);if(Z==="")return{kind:"skip"};if(Z==="[DONE]")return{kind:"done"};if(Z.startsWith("[ERROR]"))return{kind:"error",message:Z.slice(7).trim()||"qlex stream error"};let $=Z.charCodeAt(0),z=$===123||$===91||$===32||$===9||$===10||$===13;try{if(!z)return{kind:"token",content:Z};let X=JSON.parse(Z);if(X&&typeof X==="object"){let Y=X.id;if(Y==="qlex-cost"||Y==="qortex-cost")return{kind:"cost",cost:X};if(Y==="qlex-stream"&&X.usage&&typeof X.usage==="object"){let G=X.choices,U;if(Array.isArray(G)&&G[0]&&typeof G[0]==="object"){let P=G[0].finish_reason;if(typeof P==="string")U=P}return{kind:"usage",usage:X.usage,finishReason:U}}if(Array.isArray(X.choices))return{kind:"passthrough",chunk:X};let V=X,W=typeof V.content==="string"?V.content:typeof V.text==="string"?V.text:typeof V.delta==="string"?V.delta:void 0;if(W!==void 0)return{kind:"token",content:W};if(LJ(X)){let G=X.object;return{kind:"control",control:typeof G==="string"&&G.endsWith(".tier.outputLimits")?"tier-output-limits":"unknown",chunk:X}}}}catch{}return{kind:"token",content:Z}}function kJ(H,J){let K=Math.min(H.length,J.length-1);for(let Z=K;Z>=1;Z--)if(J.startsWith(H.slice(H.length-Z)))return Z;return 0}function EJ(H){if(typeof H==="string"){try{let K=JSON.parse(H);if(K!==null&&typeof K==="object")return H}catch{}let J=$H(H);return JSON.stringify(J??H)}return JSON.stringify(H??{})}class xH{onText;onToolCall;pending="";inBlock=!1;constructor(H,J){this.onText=H;this.onToolCall=J}feed(H){this.pending+=H,this.drain(!1)}flush(){if(this.drain(!0),this.inBlock)this.emitBlock(this.pending,!0),this.inBlock=!1;else if(this.pending.length>0)this.onText(this.pending);this.pending=""}drain(H){while(!0)if(!this.inBlock){let J=this.pending.indexOf(d);if(J===-1){let K=H?0:kJ(this.pending,d),Z=this.pending.length-K;if(Z>0)this.onText(this.pending.slice(0,Z)),this.pending=K>0?this.pending.slice(Z):"";return}if(J>0)this.onText(this.pending.slice(0,J));this.pending=this.pending.slice(J+d.length),this.inBlock=!0}else{let J=this.pending.indexOf(r);if(J===-1)return;if(this.emitBlock(this.pending.slice(0,J),!1),this.pending=this.pending.slice(J+r.length),this.pending.startsWith(`\r
|
|
15
|
-
`))this.pending=this.pending.slice(2);else if(this.pending.startsWith(`
|
|
16
|
-
`))this.pending=this.pending.slice(1);this.inBlock=!1}}emitBlock(H,J){try{let K=JSON.parse(H.trim());if(K&&typeof K==="object"&&typeof K.name==="string"){this.onToolCall({name:K.name,arguments:EJ(K.arguments)});return}}catch{}this.onText(`${d}${H}${J?"":r}`)}}function JH(H,J,K){let Z={id:"qlex-stream",object:"chat.completion.chunk",created:Math.floor(Date.now()/1000),model:"qlex",choices:[{index:0,delta:H,finish_reason:J}]};if(K)Z.usage=K;return`data: ${JSON.stringify(Z)}
|
|
17
|
-
|
|
18
|
-
`}function wJ(H,J){let K=J?.toolProtocolEnabled===!0,Z=J?.tier,$=J?.requestedOutputBudget,z=J?.idleTimeoutMs??mH,X=H.getReader(),Y=new TextDecoder,V=new TextEncoder,W="",G=!1,U=!1,P,S,L,E,w=!1,C=!1,h=0,A=0;return new ReadableStream({async start(_){let I=(D)=>{if(D.length>0)w=!0;A+=D.length;let N=G?{content:D}:{role:"assistant",content:D};G=!0,_.enqueue(V.encode(JH(N,null)))},c=0,F=K?new xH(I,(D)=>{k.debug("tool call ingress",{tool:D.name,source:"text-shim",args:zH(D.arguments),objectShaped:$H(D.arguments)!==void 0});let N={...G?{}:{role:"assistant"},tool_calls:[{index:c,id:`qlexcall_${Date.now().toString(36)}_${c}`,type:"function",function:{name:D.name,arguments:D.arguments}}]};G=!0,C=!0,c++,_.enqueue(V.encode(JH(N,null)))}):void 0,q=(D)=>F?F.feed(D):I(D),R=()=>{F?.flush();let N=P||S!==void 0||L!==void 0?{prompt_tokens:P?.tokens.prompt??L?.prompt??0,completion_tokens:P?.tokens.completion??L?.completion??0,total_tokens:P?.tokens.total??(P?.tokens.prompt??L?.prompt??0)+(P?.tokens.completion??L?.completion??0),cost_usd:P?.cost_usd,cost_credits:P?.cost_credits??P?.cost_qredits,context_window:S}:void 0;if(N&&(N.cost_usd??0)>0&&N.prompt_tokens===0)k.warn("qlex billed turn reported zero prompt tokens",{tier:Z,completionTokens:N.completion_tokens,costUsd:N.cost_usd,source:P?"cost.summary":"usage frame"});let j=c>0?"tool_calls":E??"stop";if(j==="length"||j==="max_tokens"){let O=o(Z??"adaptive",$),T=O!==void 0;k.debug("qlex output budget exhausted",{tier:Z,contentStreamed:w,outputBudgetRecoveryAvailable:T}),_.error(new g("output budget exhausted",{category:"output_budget_exhausted",retryable:!1,outputBudgetRecoveryAvailable:T,outputBudgetRecoveryTokens:O})),U=!0;return}if(!w&&!C&&E!=="tool_calls"){let O=o(Z??"adaptive",$),T=O!==void 0;k.debug("qlex completed without visible output",{tier:Z,outputBudgetRecoveryAvailable:T}),_.error(new g("empty output",{category:"empty_output",retryable:!1,outputBudgetRecoveryAvailable:T,outputBudgetRecoveryTokens:O})),U=!0;return}if(_.enqueue(V.encode(JH({},j,N))),_.enqueue(V.encode(`data: [DONE]
|
|
19
|
-
|
|
20
|
-
`)),!P&&Z!==void 0)k.info("qlex cost frame absent on stream finish",{tier:Z});_.close(),U=!0},M=(D)=>{let N=MJ(D);switch(h++,N.kind){case"skip":return!1;case"token":return q(N.content),!1;case"passthrough":{let j=N.chunk.choices;if(Array.isArray(j)&&j[0]&&typeof j[0]==="object"){let O=j[0].finish_reason;if(typeof O==="string")E=O;let T=j[0].delta;if(typeof T?.content==="string"&&T.content.length>0)w=!0;if(Array.isArray(T?.tool_calls))C=!0;DJ(j[0].delta)}G=!0;{let O=N.chunk.choices?.[0]?.delta?.content;if(typeof O==="string")A+=O.length}return _.enqueue(V.encode(`data: ${JSON.stringify(N.chunk)}
|
|
21
|
-
|
|
22
|
-
`)),!1}case"cost":if(N.cost.final)P=N.cost;return!1;case"usage":if(N.usage.context_window!==void 0)S=N.usage.context_window;if(N.usage.prompt_tokens!==void 0&&N.usage.completion_tokens!==void 0)L={prompt:N.usage.prompt_tokens,completion:N.usage.completion_tokens};if(N.finishReason!==void 0)E=N.finishReason;return!1;case"control":{if(N.control==="tier-output-limits"){let j=N.chunk;if(Z!==void 0)SJ(Z,j);k.debug("qlex tier output limits",{tierOutputLimit:j.tierOutputLimit,tierRecommendedStepTokens:j.tierRecommendedStepTokens,tierStepGuidance:j.tierStepGuidance,reasoningReserveTokens:j.reasoningReserveTokens,visibleOutputFloorTokens:j.visibleOutputFloorTokens,recommendedTotalTokens:j.recommendedTotalTokens,viableTotalFloorTokens:j.viableTotalFloorTokens,reasoningReported:j.reasoningReported,budgetPolicyVersion:j.budgetPolicyVersion})}else k.debug("qlex control frame dropped",{id:N.chunk.id,object:N.chunk.object});return!1}case"done":return R(),!0;case"error":{let j=rH(N.message);k.warn("qlex stream error frame",{tier:Z,raw:N.message,frameIndex:h,streamedContentChars:A,contentStreamed:G,upstreamCode:j.upstreamCode,requestId:j.requestId,category:j.category,retryable:j.retryable});let O=j.category==="output_budget_exhausted"||j.category==="empty_output"?o(Z??"adaptive",$):void 0;if(j.retryable===!1&&O!==void 0)j.outputBudgetRecoveryAvailable=!0,j.outputBudgetRecoveryTokens=O;return _.error(new g(N.message,j,{textKept:w})),U=!0,!0}}},B=async()=>{if(!(z>0))return X.read();let D;try{return await Promise.race([X.read(),new Promise((N,j)=>{D=setTimeout(()=>{let O=Math.round(z/1000);k.warn("qlex stream idle timeout",{tier:Z,idleTimeoutMs:z,frameIndex:h,streamedContentChars:A,contentStreamed:G}),j(new g(`the gateway sent nothing for ${O}s`,{category:"transient",retryable:!0})),X.cancel(Error(`qlex stream idle for ${O}s`)).catch(()=>{})},z)})])}finally{if(D!==void 0)clearTimeout(D)}};try{while(!0){let{done:N,value:j}=await B();if(N)break;W+=Y.decode(j,{stream:!0});let O;while((O=W.indexOf(`
|
|
23
|
-
|
|
24
|
-
`))!==-1){let T=W.slice(0,O);if(W=W.slice(O+2),M(T))return}}W+=Y.decode();let D=W.replace(/\r?\n$/,"");if(D.length>0&&M(D))return;if(!U)R()}catch(D){if(!U)_.error(D instanceof g?D:new g(D instanceof Error?D.message:String(D)))}finally{X.releaseLock()}},cancel(_){X.cancel(_).catch(()=>{})}})}function hH(H){return{content:typeof H.content==="string"?H.content:H.choices?.[0]?.message?.content??"",finishReason:H.choices?.[0]?.finish_reason??"stop"}}function RJ(H){let J=H??{},{content:K,finishReason:Z}=hH(J),$=J.usage??{},z=$.prompt_tokens??0,X=$.completion_tokens??0,Y="orch-"+Date.now().toString(36),V=Math.floor(Date.now()/1000),W=(L,E,w)=>{let C={id:Y,object:"chat.completion.chunk",created:V,model:"orchestrated",choices:[{index:0,delta:L,finish_reason:E}]};if(w)C.usage=w;return`data: ${JSON.stringify(C)}
|
|
25
|
-
|
|
26
|
-
`},G={prompt_tokens:z,completion_tokens:X,total_tokens:$.total_tokens??z+X};if(typeof $.cost_usd==="number")G.cost_usd=$.cost_usd;if(typeof $.cost_credits==="number")G.cost_credits=$.cost_credits;if(typeof $.context_window==="number")G.context_window=$.context_window;let U=[W({role:"assistant",content:""},null),W({content:K},null),W({},Z,G),`data: [DONE]
|
|
27
|
-
|
|
28
|
-
`],P=new TextEncoder,S=new ReadableStream({start(L){for(let E of U)L.enqueue(P.encode(E));L.close()}});return new Response(S,{status:200,headers:{"content-type":"text/event-stream"}})}function iJ(H){let J=H??{},{content:K,finishReason:Z}=hH(J),$=J.usage??{},z=$.prompt_tokens??0,X=$.completion_tokens??0,Y={id:"orch-"+Date.now(),object:"chat.completion",created:Math.floor(Date.now()/1000),model:"orchestrated",choices:[{index:0,message:{role:"assistant",content:K},finish_reason:Z}],usage:{prompt_tokens:z,completion_tokens:X,total_tokens:$.total_tokens??z+X,...typeof $.cost_usd==="number"?{cost_usd:$.cost_usd}:{},...typeof $.context_window==="number"?{context_window:$.context_window}:{}}};return new Response(JSON.stringify(Y),{status:200,headers:{"content-type":"application/json"}})}async function CJ(H,J,K){let Z=AH(H,J),$=J?`HTTP ${H}: ${J}`:`HTTP ${H}`;switch(k.error("gateway rejected request",{tier:K.tier,status:H,category:Z.category,upstreamCode:Z.upstreamCode,field:Z.field,retryable:Z.retryable}),Z.category){case"billing":return new kH(J||void 0,Z);case"rate_limited":return new EH(Z);case"gateway_routing":return new u(`HTTP ${H}`,Z);case"invalid_credentials":return await K.onInvalidCredentials?.().catch(()=>{}),new wH($,Z);case"request_too_large":return new a("irreducible",Z.upstreamMessage??J??void 0,Z);case"request_rejected":case"tool_protocol":return new RH(Z.upstreamMessage??J??void 0,Z.field,Z);case"configuration":case"transient":case"unknown":default:return new u($,Z)}}function GH(H){let J=DH();if(J===void 0)return H;let K=v(H);if(K<=J)return H;let Z=HH(H,J);return k.warn("request over known size ceiling, reducing before send",{tier:H.tier,bytes:K,ceiling:J,reducedBytes:Z.bytes,fits:Z.reduced,...Z.actions}),Z.bytes<K?Z.body:H}function jH(H){let J=v(H),K=e(J),Z=HH(H,K);if(!Z.reduced)throw k.error("request too large and cannot be reduced further",{tier:H.tier,rejectedBytes:J,ceiling:K,reducedBytes:Z.bytes,...Z.actions}),new a("irreducible");return k.warn("request too large, retrying once with reduced history",{tier:H.tier,rejectedBytes:J,ceiling:K,reducedBytes:Z.bytes,...Z.actions,notice:Q.copy().requestTooLargeRecovering()}),Z.body}function UH(H){let J=v(H);throw e(J),k.error("reduced request still too large",{tier:H.tier,rejectedBytes:J}),new a("after-reduction")}function AJ(H,J=globalThis.fetch,K,Z){let $=Z?.responseTimeoutMs??cH;return async(z,X)=>{if(X?.method==="POST"&&typeof X?.body==="string"){let Y;try{Y=JSON.parse(X.body)}catch{return J(z,X)}let V=NJ();await FJ();let W=qJ(Y.model??"adaptive"),G=WH(Y,{toolMode:V,outputAdvisory:W});if($J(Y.messages)&&!zJ(G.messages)){let{dropped:F}=TH(V==="text"?IH(Y.messages,Y.tools):Y.messages);throw k.error("refusing to send: user message lost in normalization",{tier:G.tier,toolMode:V,inputRoles:Array.isArray(Y.messages)?Y.messages.map((q)=>q&&typeof q==="object"?String(q.role):"?"):"not-an-array",droppedCount:F.length,dropped:F}),new CH("your message could not be turned into sendable content")}let U=await H(),P=typeof U==="string"?{key:U,method:"sso"}:U;if(!P?.key)throw new MH;let S=new Headers(X.headers),L=()=>{if(P.method==="api-key")S.delete("Authorization"),S.set("x-api-key",P.key);else S.delete("x-api-key"),S.set("Authorization",`Bearer ${P.key}`)};L(),S.set("Content-Type","application/json");let E=!1,w=async(F,q)=>{let R=AH(F,q),M=async()=>({retry:!1,error:await CJ(F,q,{onInvalidCredentials:K,tier:G.tier})});if(R.category!=="invalid_credentials"||E)return M();E=!0;let B=KH(P),D=await SH(P);if(D.kind==="recovered"&&KH(D.credential)!==B)return P=D.credential,L(),{retry:!0};if(D.kind==="inconclusive")return{retry:!1,error:new u(`HTTP ${F}: ${D.reason}`,R)};return M()};if(G.tier==="orchestrated"){let F=X.signal,q=async(B)=>{let D=new AbortController,N=()=>D.abort(F?.reason);if(F)if(F.aborted)D.abort(F.reason);else F.addEventListener("abort",N,{once:!0});let j=!1,O=setTimeout(()=>{j=!0,D.abort()},$);try{return await J(uH,{method:"POST",headers:S,body:JSON.stringify(B),signal:D.signal})}catch(T){if(j)throw new u(`no response within ${Math.round($/1000)}s`);throw T}finally{clearTimeout(O),F?.removeEventListener("abort",N)}},R=GH(G),M=await q(R);if(M.status===413){if(await M.body?.cancel().catch(()=>{}),R=jH(R),M=await q(R),M.status===413)await M.body?.cancel().catch(()=>{}),UH(R)}while(!M.ok){let B=await M.text().catch(()=>""),D=await w(M.status,B);if(!D.retry)throw D.error;M=await q(R)}return RJ(await M.json())}let C=X.signal,h=async(F)=>{let q=new AbortController,R=()=>q.abort(C?.reason);if(C)if(C.aborted)q.abort(C.reason);else C.addEventListener("abort",R,{once:!0});let M=()=>C?.removeEventListener("abort",R),B=!1,D=setTimeout(()=>{B=!0,q.abort()},$);try{return{res:await J(pH,{method:"POST",headers:S,body:JSON.stringify(F),signal:q.signal}),detach:M}}catch(N){if(M(),B)throw new u(`no response within ${Math.round($/1000)}s`);throw N}finally{clearTimeout(D)}},A=GH(G),{res:_,detach:I}=await h(A);if(_.status===400&&V==="native"&&GJ(Y))I(),await _.body?.cancel().catch(()=>{}),A=WH(Y,{toolMode:"text",outputAdvisory:W}),{res:_,detach:I}=await h(A);if(_.status===413){if(I(),await _.body?.cancel().catch(()=>{}),A=jH(A),{res:_,detach:I}=await h(A),_.status===413)I(),await _.body?.cancel().catch(()=>{}),UH(A)}try{while(!_.ok){let F=await _.text().catch(()=>""),q=await w(_.status,F);if(I(),!q.retry)throw q.error;({res:_,detach:I}=await h(A))}}catch(F){throw I(),F}if(Y.stream!==!1&&_.body){let F=Array.isArray(Y.tools)&&Y.tools.length>0;return new Response(wJ(_.body,{toolProtocolEnabled:F,tier:G.tier,requestedOutputBudget:G.opts.max_tokens}),{status:_.status,statusText:_.statusText,headers:{"content-type":"text/event-stream"}})}return _}return J(z,X)}}function rJ(H){let J=H.getToken??(async()=>H.bearerToken),K=AJ(J,globalThis.fetch,H.onInvalidCredentials);return qH({name:H.name??"qlex",baseURL:Q.streamBaseUrl(),fetch:K})}function oJ(H,J){return o(H,J)!==void 0}var TJ=2;function o(H,J){let K=n.get(H)?.advisory,Z=Q.tierBudgetFacts(H),$=K?.tierOutputLimit??Z?.output;if(!$)return;let z=J??K?.recommendedTotalTokens??K?.tierRecommendedStepTokens??Z?.recommendedTotal??Z?.recommendedStep;if(!z||z>=$)return;let X=K?.recommendedTotalTokens??K?.tierRecommendedStepTokens??Z?.recommendedTotal??Z?.recommendedStep??z,Y=Math.min($,Math.max(z+1,z*TJ,X));return Y>z?Y:void 0}var i=!1,ZH=Promise.resolve();export{wJ as transformQlexStream,RJ as toOrchestratedSSEStream,iJ as toOpenAICompletion,lJ as sanitizeUpstreamProviderError,NJ as resolveToolMode,YJ as renderToolProtocolPrompt,SJ as recordTierOutputAdvisory,aH as planTierBudget,kJ as partialTagSuffixLength,MJ as parseQlexFrame,AH as parseQlexError,TH as normalizeQlexMessagesWithReport,ZJ as normalizeQlexMessages,XJ as mergeLeadingSystemMessages,oH as isGatewayRequiredError,$J as hasUserRoleMessage,zJ as hasUsableUserMessage,GJ as hasToolContext,o as getTierOutputBudgetRecovery,qJ as getTierOutputAdvisory,nJ as flushTierOutputAdvisoryWrites,s as flattenMessageContent,IH as encodeToolProtocolMessages,EJ as encodeExtractedArguments,$H as decodeToolArgumentsToObject,rJ as createQlexProvider,AJ as createCustomFetch,dJ as clearTierOutputAdvisories,rH as classifyQlexStreamError,oJ as canIncreaseTierOutputBudget,WH as buildQlexBody,xH as ToolCallExtractor,d as TOOL_CALL_OPEN,r as TOOL_CALL_CLOSE,g as QlexStreamError,a as QlexRequestTooLargeError,RH as QlexRequestRejectedError,CH as QlexRequestNotSentError,EH as QlexRateLimitError,MH as QlexNotLoggedInError,wH as QlexInvalidCredentialsError,kH as QlexInsufficientBalanceError,u as QlexGatewayError,pH as QLEX_STREAM_URL,mH as QLEX_STREAM_IDLE_TIMEOUT_MS,cH as QLEX_RESPONSE_TIMEOUT_MS,uH as QLEX_ORCHESTRATED_URL};
|
package/bundle/chunk-76c400ze.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hg as a,ig as b,jg as c,kg as d,lg as e}from"./chunk-7r92d7v9.js";import"./chunk-0s4cp6q2.js";import"./chunk-mrq35ftw.js";import"./chunk-nsp1za8t.js";import"./chunk-brk6bge4.js";import"./chunk-nfg7nt13.js";import"./chunk-qgkb6n8k.js";import"./chunk-dcv6wj9x.js";import"./chunk-1acn5me8.js";import"./chunk-vs3s49jw.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-t8fjgkp8.js";import"./chunk-0egrckx0.js";import"./chunk-k1qd8ecm.js";import"./chunk-bhg69t69.js";import"./chunk-fv5mrdyc.js";import"./chunk-rdreeyv0.js";import"./chunk-rmsqb6r4.js";import"./chunk-7pckez5z.js";import"./chunk-k6981ysw.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-4y9wbfd2.js";import"./chunk-wm9nh9nb.js";import"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-az3nss5m.js";import"./chunk-p2fte9vz.js";import"./chunk-ggncq8w8.js";import"./chunk-t3w43rft.js";import"./chunk-eacpc64g.js";import"./chunk-27saej0r.js";import"./chunk-b5ym419d.js";import"./chunk-29q89bge.js";import"./chunk-wqk1v8t0.js";import"./chunk-rwwvy89t.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-fveaq0pb.js";import"./chunk-gswhjd1h.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import"./chunk-e0vrxetq.js";export{c as url,b as openapi,d as listen,e as Server,a as Default};
|
package/bundle/chunk-7bxxc4a3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$d as I,Rd as m,Ud as P,Vd as R,Wd as k,Xd as O,Zd as q,_d as $}from"./chunk-2kh0tg92.js";import"./chunk-52xvhxek.js";import{be as h}from"./chunk-f4mnp6xd.js";import{eg as r}from"./chunk-bwadggys.js";import{Ch as L,rh as E}from"./chunk-1acn5me8.js";import"./chunk-vs3s49jw.js";import"./chunk-kre93a89.js";import"./chunk-060wbpz4.js";import"./chunk-zrhw1szj.js";import"./chunk-t8fjgkp8.js";import"./chunk-0egrckx0.js";import{Fj as N,Uk as x}from"./chunk-k1qd8ecm.js";import"./chunk-bhg69t69.js";import{Ol as i}from"./chunk-fv5mrdyc.js";import"./chunk-rdreeyv0.js";import"./chunk-rmsqb6r4.js";import"./chunk-7pckez5z.js";import"./chunk-k6981ysw.js";import"./chunk-sa0rrreh.js";import"./chunk-ydgst3h8.js";import"./chunk-6tqbnxar.js";import"./chunk-0w19vmd7.js";import"./chunk-eewe7tx1.js";import"./chunk-4y9wbfd2.js";import"./chunk-wm9nh9nb.js";import"./chunk-scnbt714.js";import"./chunk-cqtkxwd8.js";import"./chunk-y3gy62q5.js";import"./chunk-az3nss5m.js";import"./chunk-p2fte9vz.js";import"./chunk-ggncq8w8.js";import"./chunk-t3w43rft.js";import"./chunk-eacpc64g.js";import"./chunk-27saej0r.js";import"./chunk-b5ym419d.js";import"./chunk-29q89bge.js";import"./chunk-wqk1v8t0.js";import"./chunk-rwwvy89t.js";import"./chunk-z0kbyr00.js";import"./chunk-sbjymf20.js";import"./chunk-dt3bsmfe.js";import"./chunk-vbfej8ds.js";import"./chunk-0tm6589k.js";import"./chunk-fveaq0pb.js";import"./chunk-gswhjd1h.js";import"./chunk-wgkcyqn1.js";import"./chunk-59csnjc3.js";import{gt as C,lt as j}from"./chunk-1bxfzd6r.js";import"./chunk-6p6m5956.js";import"./chunk-a48mx917.js";import"./chunk-3va85mbe.js";import"./chunk-w7a33cwa.js";import"./chunk-g7v6sp3c.js";import"./chunk-s2tc3qs0.js";import"./chunk-n6tqtk6h.js";import{tO as F}from"./chunk-e0vrxetq.js";import u from"path";import U from"fs/promises";var T=F(N(),1);import{EOL as S}from"os";var c=["bash","read","write","edit","glob","grep","webfetch","actor","task"],B=h({command:"create",describe:"create a new agent",builder:(o)=>o.option("path",{type:"string",describe:"directory path to generate the agent file"}).option("description",{type:"string",describe:"what the agent should do"}).option("mode",{type:"string",describe:"agent mode",choices:["all","primary","subagent"]}).option("tools",{type:"string",describe:`comma-separated list of tools to enable (default: all). Available: "${c.join(", ")}"`}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}),async handler(o){await i.provide({directory:process.cwd(),async fn(){let{path:l,description:t,mode:s,tools:p}=o,d=l&&t&&s&&p!==void 0;if(!d)r.empty(),R("Create agent");let D=i.project,g;if(l)g=u.join(l,"agent");else{let e="global";if(D.vcs==="git"){let n=await $({message:"Location",options:[{label:"Current project",value:"project",hint:i.worktree},{label:"Global",value:"global",hint:j.Path.config}]});if(m(n))throw new r.CancelledError;e=n}g=u.join(e==="global"?j.Path.config:u.join(i.worktree,".qitqode"),"agent")}let b;if(t)b=t;else{let e=await I({message:"Description",placeholder:"What should this agent do?",validate:(n)=>n&&n.length>0?void 0:"Required"});if(m(e))throw new r.CancelledError;b=e}let w=q();w.start("Generating agent configuration...");let G=o.model?x.parseModel(o.model):void 0,f=await L.runPromise(E.Service.use((e)=>e.generate({description:b,model:G}))).catch((e)=>{if(w.stop(`LLM failed to generate agent: ${e.message}`,1),d)process.exit(1);throw new r.CancelledError});w.stop(`Agent ${f.identifier} generated`);let y;if(p!==void 0)y=p?p.split(",").map((e)=>e.trim()):c;else{let e=await O({message:"Select tools to enable (Space to toggle)",options:c.map((n)=>({label:n,value:n})),initialValues:c});if(m(e))throw new r.CancelledError;y=e}let v;if(s)v=s;else{let e=await $({message:"Agent mode",options:[{label:"All",value:"all",hint:"Can function in both primary and subagent roles"},{label:"Primary",value:"primary",hint:"Acts as a primary/main agent"},{label:"Subagent",value:"subagent",hint:"Can be used as a subagent by other agents"}],initialValue:"all"});if(m(e))throw new r.CancelledError;v=e}let A={};for(let e of c)if(!y.includes(e))A[e]=!1;let M={description:f.whenToUse,mode:v};if(Object.keys(A).length>0)M.tools=A;let V=T.default.stringify(f.systemPrompt,M),a=u.join(g,`${f.identifier}.md`);if(await U.mkdir(g,{recursive:!0}),await C.exists(a)){if(d)console.error(`Error: Agent file already exists: ${a}`),process.exit(1);throw P.error(`Agent file already exists: ${a}`),new r.CancelledError}if(await C.write(a,V),d)console.log(a);else P.success(`Agent created: ${a}`),k("Done")}})}}),J=h({command:"list",describe:"list all available agents",async handler(){await i.provide({directory:process.cwd(),async fn(){let l=(await L.runPromise(E.Service.use((t)=>t.list()))).sort((t,s)=>{if(t.native!==s.native)return t.native?-1:1;return t.name.localeCompare(s.name)});for(let t of l)process.stdout.write(`${t.name} (${t.mode})`+S),process.stdout.write(` ${JSON.stringify(t.permission,null,2)}`+S)}})}}),ne=h({command:"agent",describe:"manage agents",builder:(o)=>o.command(B).command(J).demandCommand(),async handler(){}});export{ne as AgentCommand};
|
package/bundle/chunk-7g59hc61.js
DELETED
package/bundle/chunk-7p88j56s.js
DELETED