@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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{cr as h}from"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-9svh74gt.js";var v=(q)=>{return h({baseURL:"https://gateway.ai.cloudflare.com/v1/compat",name:"Unified",...q||{}})},x=v();export{x as unified,v as createUnified};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Y as Kj,Z as Mj,_ as Nj,aa as Vj}from"./chunk-eftk07r3.js";import{ba as Jj}from"./chunk-rxh160jr.js";import{Sd as jj}from"./chunk-k4ajben7.js";import{de as Bj}from"./chunk-b274mb6v.js";import{ag as K}from"./chunk-h6kmpgak.js";import{hg as t}from"./chunk-bqqxvagz.js";import"./chunk-1dnvdeat.js";import"./chunk-zj5snrsa.js";import"./chunk-3tf7xfw5.js";import"./chunk-egcvm4x2.js";import"./chunk-nfg7nt13.js";import"./chunk-r4qpsa4e.js";import"./chunk-seda5sfd.js";import{nh as s,yh as r}from"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import{Qk as e}from"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import{sq as U}from"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import{au as a}from"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import{Au as k}from"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import{jv as o,sv as h}from"./chunk-x28chfpz.js";import{Dv as D}from"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.js";import S from"path";import{pathToFileURL as $j}from"url";import{EOL as E}from"os";function R(j){let M=j.state;return{input:M.input,metadata:"metadata"in M?M.metadata:{},part:j}}function F(j){let M=j.description?K.Style.TEXT_DIM+` ${j.description}`+K.Style.TEXT_NORMAL:"";K.println(K.Style.TEXT_NORMAL+j.icon,K.Style.TEXT_NORMAL+j.title+M)}function v(j,M){if(K.empty(),F(j),!M?.trim())return;K.println(M),K.empty()}function i(j){let M=j.state,Z="input"in M?M.input:void 0,G=("title"in M&&M.title?M.title:void 0)||(Z&&typeof Z==="object"&&Object.keys(Z).length>0?JSON.stringify(Z):"Unknown");F({icon:"\u2699",title:`${j.tool} ${G}`})}function Xj(j){let M=j.path??"",Z=`${j.kind} "${j.pattern}"`,G=M?`in ${T(M)}`:"",z=j.count===void 0?G:`${G}${G?" \xB7 ":""}${j.count} ${j.count===1?"match":"matches"}`;F({icon:"\u2731",title:Z,...z&&{description:z}})}function Gj(j){Xj({kind:"Glob",pattern:j.input.pattern,path:j.input.path,count:j.metadata.count})}function Hj(j){Xj({kind:"Grep",pattern:j.input.pattern,path:j.input.path,count:j.metadata.matches})}function Wj(j){let M=T(j.input.filePath),Z=Object.entries(j.input).filter(([z,O])=>{if(z==="filePath")return!1;return typeof O==="string"||typeof O==="number"||typeof O==="boolean"}),G=Z.length?`[${Z.map(([z,O])=>`${z}=${O}`).join(", ")}]`:void 0;F({icon:"\u2192",title:`Read ${M}`,...G&&{description:G}})}function Rj(j){v({icon:"\u2190",title:`Write ${T(j.input.filePath)}`},j.part.state.status==="completed"?j.part.state.output:void 0)}function zj(j){F({icon:"%",title:`WebFetch ${j.input.url}`})}function Aj(j){let M=T(j.input.filePath),Z=j.metadata.diff;v({icon:"\u2190",title:`Edit ${M}`},Z)}function Fj(j){F({icon:"\u25C7",title:`Exa Code Search "${j.input.query}"`})}function Oj(j){F({icon:"\u25C8",title:`Web Search "${j.input.query}"`})}function n(j){let M=j.part.state.input?.operation??j.part.state.input,Z=j.part.state.status,G=typeof M?.subagent_type==="string"&&M.subagent_type.trim().length>0?M.subagent_type:"unknown",z=a.titlecase(G),O=typeof M?.description==="string"&&M.description.trim().length>0?M.description:void 0,w=Z==="error"?"\u2717":Z==="running"?"\u2022":"\u2713",L=O??`${z} Task`;F({icon:w,title:L,description:O?`${z} Agent`:void 0})}function Qj(j){F({icon:"\u2192",title:`Skill "${j.input.name}"`})}function qj(j){let M=j.part.state.status==="completed"?j.part.state.output?.trim():void 0;v({icon:"$",title:`${j.input.command}`},M)}function T(j){if(!j)return"";if(S.isAbsolute(j))return S.relative(process.cwd(),j)||".";return j}var Ij=Bj({command:"run [message..]",describe:"run qitqode with a message",builder:(j)=>{return j.positional("message",{describe:"message to send",type:"string",array:!0,default:[]}).option("command",{describe:"the command to run, use message for args",type:"string"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],describe:"session id to continue",type:"string"}).option("fork",{describe:"fork the session before continuing (requires --continue or --session)",type:"boolean"}).option("share",{type:"boolean",describe:"share the session"}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}).option("agent",{type:"string",describe:"agent to use"}).option("format",{type:"string",choices:["default","json"],default:"default",describe:"format: default (formatted) or json (raw JSON events)"}).option("progress-warning-ms",{type:"number",default:90000,describe:"inspect session status after this many milliseconds without progress"}).option("progress-timeout-ms",{type:"number",default:180000,describe:"interrupt a run after this many milliseconds without progress"}).option("file",{alias:["f"],type:"string",array:!0,describe:"file(s) to attach to message"}).option("title",{type:"string",describe:"title for the session (uses truncated prompt if no value provided)"}).option("attach",{type:"string",describe:"attach to a running qitqode server (e.g., http://localhost:4096)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}).option("dir",{type:"string",describe:"directory to run in, path on remote server if attaching"}).option("port",{type:"number",describe:"port for the local server (defaults to random port if no value provided)"}).option("variant",{type:"string",describe:"model variant (provider-specific reasoning effort, e.g., high, max, minimal)"}).option("thinking",{type:"boolean",describe:"show thinking blocks",default:!1}).option("dangerously-skip-permissions",{type:"boolean",describe:"auto-approve permissions that are not explicitly denied (dangerous!)",default:!1})},handler:async(j)=>{if(j.model&&k.isDecisionTier(j.model))k.assertChatTierSupported(j.model);if(!Number.isSafeInteger(j["progress-warning-ms"])||j["progress-warning-ms"]<0||!Number.isSafeInteger(j["progress-timeout-ms"])||j["progress-timeout-ms"]<=j["progress-warning-ms"]){K.error("Invalid no-progress limits: require 0 <= warning milliseconds < timeout milliseconds."),process.exitCode=2;return}let M=[...j.message,...j["--"]||[]].join(" "),Z=(()=>{if(!j.dir)return;if(j.attach)return j.dir;try{return process.chdir(j.dir),process.cwd()}catch{K.error("Failed to change directory to "+j.dir),process.exit(1)}})(),G=[];if(j.file){let N=Array.isArray(j.file)?j.file:[j.file];for(let _ of N){let V=S.resolve(process.cwd(),_);if(!await D.exists(V))K.error(`File not found: ${_}`),process.exit(1);let H=await D.isDir(V)?"application/x-directory":"text/plain";G.push({type:"file",url:$j(V).href,filename:S.basename(V),mime:H})}}if(!process.stdin.isTTY)M+=`
|
|
3
|
+
`+await Bun.stdin.text();if(M.trim().length===0&&!j.command)K.error("You must provide a message or a command"),process.exit(1);if(j.fork&&!j.continue&&!j.session)K.error("--fork requires --continue or --session"),process.exit(1);let z=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}];function O(){if(j.title===void 0)return;if(j.title!=="")return j.title;return M.slice(0,50)+(M.length>50?"...":"")}async function w(N){let _=j.continue?(await N.session.list()).data?.find((A)=>!A.parentID)?.id:j.session;if(_&&j.fork)return(await N.session.fork({sessionID:_})).data?.id;if(_)return _;let V=O();return(await N.session.create({title:V,permission:z})).data?.id}async function L(N,_){let V=await N.config.get();if(!V.data)return;if(V.data.share!=="auto"&&!o.QITQODE_AUTO_SHARE&&!j.share)return;let H=await N.session.share({sessionID:_}).catch((A)=>{if(A instanceof Error&&A.message.includes("disabled"))K.println(K.Style.TEXT_DANGER_BOLD+"! "+A.message);return{error:A}});if(!H.error&&"data"in H&&H.data?.share?.url)K.println(K.Style.TEXT_INFO_BOLD+"~ "+H.data.share.url)}async function c(N){function _(B){try{if(B.tool==="bash")return qj(R(B));if(B.tool==="glob")return Gj(R(B));if(B.tool==="grep")return Hj(R(B));if(B.tool==="read")return Wj(R(B));if(B.tool==="write")return Rj(R(B));if(B.tool==="webfetch")return zj(R(B));if(B.tool==="edit")return Aj(R(B));if(B.tool==="codesearch")return Fj(R(B));if(B.tool==="websearch")return Oj(R(B));if(B.tool==="actor")return n(R(B));if(B.tool==="skill")return Qj(R(B));return i(B)}catch{return i(B)}}function V(B,$){if(j.format==="json")return process.stdout.write(JSON.stringify({type:B,timestamp:Date.now(),sessionID:Y,...$})+E),!0;return!1}let H=new AbortController,A=await N.event.subscribe(void 0,{signal:H.signal}).catch((B)=>{throw H.abort(),B}),x,C=new Map,y=new Map,Yj=h.create({service:"cli.run"});async function Zj(B,$,W){if(W.onEvent(B),$.onEvent(B),Yj.debug("event received",{type:B.type}),B.type==="message.updated"&&B.properties.info.role==="assistant"&&j.format!=="json"&&C.get("start")!==!0)K.empty(),K.println(`> ${B.properties.info.agent} \xB7 ${B.properties.info.modelID}`),K.empty(),C.set("start",!0);if(B.type==="message.part.updated"){let J=B.properties.part;if(J.sessionID!==Y)return;if(J.type==="tool"&&J.tool==="bash"&&J.state.status==="running"){let X=J.state.metadata??{},Q=typeof X.output==="string"?X.output:"",b=`${Q.length}:${Q.slice(-256)}`,q=y.get(J.id);if(!q||q.snapshot!==b){let g=Date.now(),p=Q.trimEnd().split(`
|
|
4
|
+
`).at(-1)?.slice(-1000)??"";if(y.set(J.id,{snapshot:b,lastShownAt:q?.lastShownAt??0}),!q||g-q.lastShownAt>=500){if(y.set(J.id,{snapshot:b,lastShownAt:g}),V("tool_progress",{partID:J.id,tool:J.tool,description:X.description,output:p,status:"running"}))return;F({icon:J.tool==="bash"?"$":"\u2022",title:`${J.tool} running`,description:p||String(X.description??"")})}}}if(J.type==="tool"&&(J.state.status==="completed"||J.state.status==="error")){if(V("tool_use",{part:J}))return;if(J.state.status==="completed"){_(J);return}F({icon:"\u2717",title:`${J.tool} failed`}),K.error(J.state.error)}if(J.type==="tool"&&J.tool==="actor"&&J.state.status==="running"&&j.format!=="json"){if(C.get(J.id)===!0)return;n(R(J)),C.set(J.id,!0)}if(J.type==="step-start"){if(V("step_start",{part:J}))return}if(J.type==="step-finish"){if(V("step_finish",{part:J}))return}if(J.type==="text"&&J.time?.end){if(V("text",{part:J}))return;let X=J.text.trim();if(!X)return;if(!process.stdout.isTTY){process.stdout.write(X+E);return}K.empty(),K.println(X),K.empty()}if(J.type==="reasoning"&&J.time?.end&&j.thinking){if(V("reasoning",{part:J}))return;let X=J.text.trim();if(!X)return;let Q=`Thinking: ${X}`;if(process.stdout.isTTY){K.empty(),K.println(`${K.Style.TEXT_DIM}\x1B[3m${Q}\x1B[0m${K.Style.TEXT_NORMAL}`),K.empty();return}process.stdout.write(Q+E)}}if(B.type==="session.error"){let J=B.properties;if(J.sessionID!==Y||!J.error)return;process.exitCode=1;let X=String(J.error.name);if("data"in J.error&&J.error.data&&"message"in J.error.data)X=String(J.error.data.message);if(x=x?x+E+X:X,V("error",{error:J.error}))return;K.error(X)}if(B.type==="permission.asked"){let J=B.properties;if(J.sessionID!==Y)return;if(j["dangerously-skip-permissions"])await N.permission.reply({requestID:J.id,reply:"once"});else K.println(K.Style.TEXT_WARNING_BOLD+"!",K.Style.TEXT_NORMAL+`permission requested: ${J.permission} (${J.patterns.join(", ")}); auto-rejecting`),await N.permission.reply({requestID:J.id,reply:"reject"})}}let _j=await(async()=>{if(!j.agent)return;let B=j.agent;if(j.attach){let W=await N.app.agents(void 0,{throwOnError:!0}).then((X)=>X.data??[]).catch(()=>{return});if(!W){K.println(K.Style.TEXT_WARNING_BOLD+"!",K.Style.TEXT_NORMAL,`failed to list agents from ${j.attach}. Falling back to default agent`);return}let J=W.find((X)=>X.name===B);if(!J){K.println(K.Style.TEXT_WARNING_BOLD+"!",K.Style.TEXT_NORMAL,`agent "${B}" not found. Falling back to default agent`);return}if(J.mode==="subagent"){K.println(K.Style.TEXT_WARNING_BOLD+"!",K.Style.TEXT_NORMAL,`agent "${B}" is a subagent, not a primary agent. Falling back to default agent`);return}return B}let $=await r.runPromise(s.Service.use((W)=>W.get(B)));if(!$){K.println(K.Style.TEXT_WARNING_BOLD+"!",K.Style.TEXT_NORMAL,`agent "${B}" not found. Falling back to default agent`);return}if($.mode==="subagent"){K.println(K.Style.TEXT_WARNING_BOLD+"!",K.Style.TEXT_NORMAL,`agent "${B}" is a subagent, not a primary agent. Falling back to default agent`);return}return B})(),m=Vj(_j),Y=await w(N);if(!Y)K.error("Session not found"),process.exit(1);if(await L(N,Y),j.format==="json")V("run_started",{status:"running"});else K.println(`Run started. Session: ${Y}`);let d=h.create({service:"cli.run.poll"}),P=Nj({sessionID:Y,noProgressWarningMs:j["progress-warning-ms"],noProgressTimeoutMs:j["progress-timeout-ms"],onNoProgressWarning:async(B)=>{let $="unavailable",W;try{$=await Promise.race([N.session.status().then((J)=>J.data?.[Y]?.type??"idle"),new Promise((J)=>{W=setTimeout(()=>J("unavailable"),2000)})])}catch{$="unavailable"}finally{if(W)clearTimeout(W)}if(d.warn("unattended run has made no visible progress",{sessionID:Y,elapsedMs:B.elapsedMs,phase:B.phase,serverStatus:$}),j.format==="json")V("run_progress_warning",{status:"no-progress",elapsedMs:B.elapsedMs,phase:B.phase,serverStatus:$});else K.println(K.Style.TEXT_WARNING_BOLD+"!",K.Style.TEXT_NORMAL,`No visible progress for ${Math.round(B.elapsedMs/1000)} seconds (${B.phase}; server status: ${$}).`)},query:async()=>{try{return(await N.session.status()).data?.[Y]}catch(B){throw d.debug("session.status query failed",{error:B}),B}}}),I=Mj(),u=(B)=>P.interrupt({type:"signal",signal:B}),f=()=>u("SIGINT"),l=()=>u("SIGTERM");process.on("SIGINT",f),process.on("SIGTERM",l);try{let B=await Kj({events:A.stream,tracker:P,connection:I,onEvent:(J)=>Zj(J,P,I),abort:()=>H.abort(),cancelRemote:async()=>{await N.session.abort({sessionID:Y},{throwOnError:!0})},dispatch:async()=>{if(j.command)await N.session.command({sessionID:Y,agent:m,model:j.model,command:j.command,arguments:M,variant:j.variant});else{let J=j.model?e.parseModel(j.model):void 0;await N.session.prompt({sessionID:Y,agent:m,model:J,variant:j.variant,parts:[...G,{type:"text",text:M}]})}}});if(B.status==="completed"){if(j.format==="json")V("run_complete",{status:"completed"});else K.println(K.Style.TEXT_SUCCESS_BOLD+"\u2713",K.Style.TEXT_NORMAL,`Run completed. Session: ${Y}`);return}let $=B.reason==="no-progress"?`No progress for ${Math.round(B.elapsedMs/1000)} seconds`:`Interrupted by ${B.signal??"a termination signal"}`,W=`qitqode run --session ${Y} "Continue from the last saved state."`;if(j.format==="json")V("run_interrupted",{status:"interrupted",reason:B.reason,signal:B.signal,phase:B.phase,elapsedMs:B.elapsedMs,remoteAbortConfirmed:B.abortConfirmed??!1,resume:W});else{if(K.error(`${$} during ${B.phase}. Session is saved as ${Y}.`),B.abortConfirmed===!1)K.error("The server did not confirm cancellation; check the session before resuming.");K.println(`Resume with: ${W}`)}process.exitCode=B.reason==="signal"?B.signal==="SIGTERM"?143:130:124}finally{process.off("SIGINT",f),process.off("SIGTERM",l)}}if(j.attach){let N=Jj({password:j.password}),_=U({baseUrl:j.attach,directory:Z,headers:N});return await c(_)}await jj(process.cwd(),async()=>{let _=U({baseUrl:"http://qitqode.internal",fetch:async(V,H)=>{let A=new Request(V,H);return t.Default().app.fetch(A)}});await c(_)})}});export{Ij as RunCommand};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-9svh74gt.js";var D=Object.defineProperty,x=(J,Q,W)=>(Q in J)?D(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:W}):J[Q]=W,B=(J,Q,W)=>x(J,typeof Q!=="symbol"?Q+"":Q,W),I="CF_TEMP_TOKEN",L=[{name:"openai",regex:/^https:\/\/api\.openai\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.openai\.com\//,"")},{name:"deepseek",regex:/^https:\/\/api\.deepseek\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.deepseek\.com\//,"")},{name:"anthropic",regex:/^https:\/\/api\.anthropic\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.anthropic\.com\//,""),headerKey:"x-api-key"},{name:"google-ai-studio",regex:/^https:\/\/generativelanguage\.googleapis\.com\//,headerKey:"x-goog-api-key",transformEndpoint:(J)=>J.replace(/^https:\/\/generativelanguage\.googleapis\.com\//,"")},{name:"google-vertex-ai",regex:/aiplatform\.googleapis\.com/,transformEndpoint:(J)=>J.replace(/https:\/\/(.*)[-]?aiplatform\.googleapis\.com\//,"")},{name:"grok",regex:/^https:\/\/api\.x\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.x\.ai\//,"")},{name:"mistral",regex:/^https:\/\/api\.mistral\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.mistral\.ai\//,"")},{name:"perplexity-ai",regex:/^https:\/\/api\.perplexity\.ai\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.perplexity\.ai\//,"")},{name:"replicate",regex:/^https:\/\/api\.replicate\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.replicate\.com\//,"")},{name:"groq",regex:/^https:\/\/api\.groq\.com\/openai\/v1\//,transformEndpoint:(J)=>J.replace(/^https:\/\/api\.groq\.com\/openai\/v1\//,"")},{name:"google-vertex-ai",regex:/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,transformEndpoint:(J)=>J.replace(/^https:\/\/(?:[a-z0-9]+-)*aiplatform\.googleapis\.com\//,""),headerKey:"authorization"},{name:"azure-openai",regex:/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/,transformEndpoint:(J)=>{let Q=J.match(/^https:\/\/(?<resource>[^.]+)\.openai\.azure\.com\/openai\/deployments\/(?<deployment>[^/]+)\/(?<rest>.*)$/);if(!Q||!Q.groups)return J;let{resource:W,deployment:X,rest:Z}=Q.groups;if(!W||!X||!Z)throw Error("Failed to parse Azure OpenAI endpoint URL.");return`${W}/${X}/${Z}`},headerKey:"api-key"},{name:"openrouter",regex:/^https:\/\/openrouter\.ai\/api\//,transformEndpoint:(J)=>J.replace(/^https:\/\/openrouter\.ai\/api\//,"")},{name:"compat",regex:/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,transformEndpoint:(J)=>J.replace(/^https:\/\/gateway\.ai\.cloudflare\.com\/v1\/compat\//,"")}],z=class extends Error{},P=class extends Error{},T=class extends Error{};async function U(J){return await new Response(J).json()}var H=class{constructor(J,Q){B(this,"specificationVersion","v3"),B(this,"defaultObjectGenerationMode","json"),B(this,"supportedUrls",{}),B(this,"models"),B(this,"config"),this.models=J,this.config=Q}get modelId(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].modelId}get provider(){if(!this.models[0])throw Error("models cannot be empty array");return this.models[0].provider}async processModelRequest(J,Q){let W=[];for(let S of this.models){if(!S.config||!Object.keys(S.config).includes("fetch"))throw Error(`Sorry, but provider "${S.provider}" is currently not supported, please open a issue in the github repo!`);S.config.fetch=(V,$)=>{throw W.push({modelProvider:S.provider,request:$,url:V}),new z("Stopping provider execution...")};try{await S[Q](J)}catch(V){if(!(V instanceof z))throw V}}let X=await Promise.all(W.map(async(S)=>{let V=null;for(let R of L)if(R.regex.test(S.url))V=R;if(!V)throw Error(`Sorry, but provider "${S.modelProvider}" is currently not supported, please open a issue in the github repo!`);if(!S.request.body)throw Error("Ai Gateway provider received an unexpected empty body");let $=V.headerKey??"authorization";if(("get"in S.request.headers?S.request.headers.get($):S.request.headers[$])?.indexOf(I)!==-1)if("delete"in S.request.headers)S.request.headers.delete($);else delete S.request.headers[$];return{endpoint:V.transformEndpoint(S.url),headers:S.request.headers,provider:V.name,query:await U(S.request.body)}})),Z=N(this.config.options??{}),Y;if("binding"in this.config){let S=X.map((V)=>({...V,headers:{...V.headers??{},...Object.fromEntries(Z.entries())}}));Y=await this.config.binding.run(S,{signal:J.abortSignal})}else Z.set("Content-Type","application/json"),Z.set("cf-aig-authorization",`Bearer ${this.config.apiKey}`),Y=await fetch(`https://gateway.ai.cloudflare.com/v1/${this.config.accountId}/${this.config.gateway}`,{body:JSON.stringify(X),headers:Z,method:"POST",signal:J.abortSignal});if(Y.status===400){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2001)throw new P("This AI gateway does not exist")}else if(Y.status===401){let V=await Y.clone().json();if(V.success===!1&&V.error&&V.error.length>0&&V.error[0]?.code===2009)throw new T("Your AI Gateway has authentication active, but you didn't provide a valid apiKey")}let K=Number.parseInt(Y.headers.get("cf-aig-step")??"0",10);if(!this.models[K])throw Error("Unexpected AI Gateway Error");return this.models[K].config={...this.models[K].config,fetch:(S,V)=>Y},this.models[K][Q](J)}async doStream(J){return this.processModelRequest(J,"doStream")}async doGenerate(J){return this.processModelRequest(J,"doGenerate")}};function f(J){let Q=(X)=>{return new H(Array.isArray(X)?X:[X],J)},W=(X)=>Q(X);return W.chat=Q,W}function N(J){let Q=new Headers;if(J.skipCache===!0)Q.set("cf-skip-cache","true");if(J.cacheTtl)Q.set("cf-cache-ttl",J.cacheTtl.toString());if(J.metadata)Q.set("cf-aig-metadata",JSON.stringify(J.metadata));if(J.cacheKey)Q.set("cf-aig-cache-key",J.cacheKey);if(J.collectLog!==void 0)Q.set("cf-aig-collect-log",J.collectLog===!0?"true":"false");if(J.eventId!==void 0)Q.set("cf-aig-event-id",J.eventId);if(J.requestTimeoutMs!==void 0)Q.set("cf-aig-request-timeout",J.requestTimeoutMs.toString());if(J.retries!==void 0){if(J.retries.maxAttempts!==void 0)Q.set("cf-aig-max-attempts",J.retries.maxAttempts.toString());if(J.retries.retryDelayMs!==void 0)Q.set("cf-aig-retry-delay",J.retries.retryDelayMs.toString());if(J.retries.backoff!==void 0)Q.set("cf-aig-backoff",J.retries.backoff)}return Q}export{N as parseAiGatewayOptions,f as createAiGateway,T as AiGatewayUnauthorizedError,z as AiGatewayInternalFetchError,P as AiGatewayDoesNotExist,H as AiGatewayChatLanguageModel};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Sd as j}from"./chunk-k4ajben7.js";import{de as Q}from"./chunk-b274mb6v.js";import{ag as M}from"./chunk-h6kmpgak.js";import{vg as N}from"./chunk-1dnvdeat.js";import{yh as $}from"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import{$k as X,Jj as J}from"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import{kp as _}from"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import{au as Z}from"./chunk-wp0xd7at.js";import{ju as E}from"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import"./chunk-bwzbcwff.js";import"./chunk-r6055kk0.js";import"./chunk-datctfgt.js";import{jv as Y}from"./chunk-x28chfpz.js";import{Dv as V}from"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import"./chunk-9svh74gt.js";import{EOL as L}from"os";import k from"path";function P(){let q=["-R","-S"];if(process.platform!=="win32")return["less",...q];let z=_("less");if(z){if(V.stat(z)?.size)return[z,...q]}if(Y.QITQODE_GIT_BASH_PATH){let G=k.join(Y.QITQODE_GIT_BASH_PATH,"..","..","usr","bin","less.exe");if(V.stat(G)?.size)return[G,...q]}let B=_("git");if(B){let G=k.join(B,"..","..","usr","bin","less.exe");if(V.stat(G)?.size)return[G,...q]}return["cmd","/c","more"]}var g=Q({command:"session",describe:"manage sessions",builder:(q)=>q.command(T).command(D).command(v).demandCommand(),async handler(){}}),v=Q({command:"import-claude",describe:"import Claude Code sessions (~/.claude/projects) into qitqode",builder:(q)=>q.option("force",{describe:"re-sync every session, ignoring the mtime cache",type:"boolean",default:!1}),handler:async(q)=>{let z=await N.run({force:q.force});M.println(`Claude import: scanned ${z.scanned}, imported ${z.imported}, resynced ${z.resynced}, skipped ${z.skipped}`+(z.errors.length?`, errors ${z.errors.length}`:""));for(let B of z.errors)M.error(B)}}),D=Q({command:"delete <sessionID>",describe:"delete a session",builder:(q)=>{return q.positional("sessionID",{describe:"session ID to delete",type:"string",demandOption:!0})},handler:async(q)=>{await j(process.cwd(),async()=>{let z=J.make(q.sessionID);try{await $.runPromise(X.Service.use((B)=>B.get(z)))}catch{M.error(`Session not found: ${q.sessionID}`),process.exit(1)}await $.runPromise(X.Service.use((B)=>B.remove(z))),M.println(M.Style.TEXT_SUCCESS_BOLD+`Session ${q.sessionID} deleted`+M.Style.TEXT_NORMAL)})}}),T=Q({command:"list",describe:"list sessions",builder:(q)=>{return q.option("max-count",{alias:"n",describe:"limit to N most recent sessions",type:"number"}).option("format",{describe:"output format",type:"string",choices:["table","json"],default:"table"})},handler:async(q)=>{await j(process.cwd(),async()=>{let z=[...X.list({roots:!0,limit:q.maxCount})];if(z.length===0)return;let B;if(q.format==="json")B=f(z);else B=b(z);if(process.stdout.isTTY&&!q.maxCount&&q.format==="table"){let H=E.spawn(P(),{stdin:"pipe",stdout:"inherit",stderr:"inherit"});if(!H.stdin){console.log(B);return}H.stdin.write(B),H.stdin.end(),await H.exited}else console.log(B)})}});function b(q){let z=[],B=Math.max(20,...q.map((K)=>K.id.length)),G=Math.max(25,...q.map((K)=>K.title.length)),H=`Session ID${" ".repeat(B-10)} Title${" ".repeat(G-5)} Updated`;z.push(H),z.push("\u2500".repeat(H.length));for(let K of q){let A=Z.truncate(K.title,G),R=Z.todayTimeOrDateTime(K.time.updated),w=`${K.id.padEnd(B)} ${A.padEnd(G)} ${R}`;z.push(w)}return z.join(L)}function f(q){let z=q.map((B)=>({id:B.id,title:B.title,updated:B.time.updated,created:B.time.created,projectId:B.projectID,directory:B.directory}));return JSON.stringify(z,null,2)}export{T as SessionListCommand,v as SessionImportClaudeCommand,D as SessionDeleteCommand,g as SessionCommand};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{a as $B,b as zB}from"./chunk-78e76m4h.js";import"./chunk-kr975sx0.js";import"./chunk-cm7yp259.js";import{B as VB,C as XB}from"./chunk-tz1sv9kt.js";import{D as BB,F as JB}from"./chunk-ajyfms68.js";import"./chunk-ncvr75f6.js";import{$ as ZB,_ as YB}from"./chunk-eftk07r3.js";import"./chunk-csmdhh7r.js";import"./chunk-cg7zeppb.js";import{de as e}from"./chunk-b274mb6v.js";import{Vf as p,Wf as w,Xf as O,Yf as g}from"./chunk-xmt17jd4.js";import{ag as z}from"./chunk-h6kmpgak.js";import{Cg as t}from"./chunk-3tf7xfw5.js";import{yh as x}from"./chunk-88hmeyf5.js";import"./chunk-aykvrqrp.js";import"./chunk-2h8b0csf.js";import"./chunk-4q14whpc.js";import"./chunk-s81ck6bw.js";import"./chunk-jt7g0r2j.js";import"./chunk-84qx54nf.js";import{Nj as n,Qk as r,uj as A}from"./chunk-ep92grvg.js";import"./chunk-xf1y0sc6.js";import{Jl as T}from"./chunk-n24yx79r.js";import"./chunk-5qydhr42.js";import"./chunk-v30ezr68.js";import"./chunk-ex47pb9n.js";import"./chunk-jh2za7y4.js";import"./chunk-s3zmxfz2.js";import"./chunk-krk24aqm.js";import"./chunk-j7d3v0x2.js";import"./chunk-3hawwbw6.js";import"./chunk-4c6d1wy1.js";import"./chunk-vyf77kq1.js";import{Nq as s,sq as o,yq as a}from"./chunk-bxc3z38f.js";import"./chunk-7wshaze9.js";import"./chunk-vbcekkw2.js";import"./chunk-4ngvj758.js";import"./chunk-cqtkxwd8.js";import"./chunk-wpkr3vzf.js";import"./chunk-49we3vy1.js";import"./chunk-y7cqyeve.js";import"./chunk-92xxg12q.js";import"./chunk-h8yf5e2e.js";import"./chunk-yvtbt12y.js";import"./chunk-g83d3a0t.js";import"./chunk-1p39y33b.js";import"./chunk-yg0rs4g1.js";import"./chunk-vhh80d5j.js";import{cu as i}from"./chunk-wp0xd7at.js";import"./chunk-dzw0j790.js";import"./chunk-rvev3cy6.js";import"./chunk-c53ev0da.js";import"./chunk-78yvbv9b.js";import"./chunk-c5n49vrd.js";import{zu as d}from"./chunk-bwzbcwff.js";import{$u as l,Xu as f,Yu as c,Zu as u}from"./chunk-r6055kk0.js";import{dv as L}from"./chunk-datctfgt.js";import{mv as P}from"./chunk-x28chfpz.js";import{Av as E,Cv as y}from"./chunk-mnxcykeq.js";import"./chunk-0bn86djg.js";import"./chunk-xphzr4wg.js";import"./chunk-hav9pgf3.js";import"./chunk-cshsqavb.js";import{CJ as N}from"./chunk-tz60e15h.js";import"./chunk-0tya4pqb.js";import"./chunk-63t0rhc9.js";import{UQ as k}from"./chunk-9svh74gt.js";import D from"path";import{fileURLToPath as MB}from"url";import{writeHeapSnapshot as GB}from"v8";import QB,{EOL as M}from"os";var WB={free:"free",adaptive:"adaptive",fast:"fast",economical:"economical",maxInt:"max-int",orchestrated:"orchestrated"},m=ZB;function R(B){if(B.agent)return B.agent;return m}function bB(B,J){if(D.isAbsolute(B)||B.includes("/")||B.includes("\\")||B.startsWith(".")||B.startsWith("~"))return{error:"Directory not found: "+J};return{error:`Unknown command "${B}"`,hint:"Run `qitqode --help` to see the available commands, or pass an existing directory to start the TUI there."}}function jB(B){for(let[J,Z]of Object.entries(WB))if(B[J]){let X=d[Z];if(X)return`${X.providerID}/${X.modelID}`}return}function FB(B){return async(Z,X)=>{let G=new Request(Z,X),Y=G.body?await G.text():void 0,H=await B.call("fetch",{url:G.url,method:G.method,headers:Object.fromEntries(G.headers.entries()),body:Y});return new Response(H.body,{status:H.status,headers:H.headers})}}function _B(B){return{subscribe:async(J)=>{return B.on("global.event",(Z)=>{J(Z)})}}}async function qB(){if(typeof globalThis.QITQODE_WORKER_PATH<"u")return globalThis.QITQODE_WORKER_PATH;let B=new URL("./cli/cmd/tui/worker.js",import.meta.url);if(await E(MB(B)))return B;return new URL("./worker.ts",import.meta.url)}async function yB(B){let J=process.stdin.isTTY?void 0:await Bun.stdin.text();if(!B)return J;if(!J)return B;return J+`
|
|
3
|
+
`+B}async function v(B){let J=o({baseUrl:B.url,fetch:B.fetch,directory:B.directory}),Z=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}],X=await XB(J.session,B)??(await J.session.create({permission:Z})).data?.id;if(!X){z.error("headless: failed to create session");return}let G=await J.event.subscribe(),Y=YB({sessionID:X,query:async()=>{return(await J.session.status()).data?.[X]}}),H=G.stream[Symbol.asyncIterator](),U=Y.completion.then(()=>"DONE");(async()=>{try{while(!0){let Q=await Promise.race([H.next(),U]);if(Q==="DONE")break;let K=Q;if(K.done)break;let b=K.value;Y.onEvent(b);let W=b.properties;if(b.type==="message.part.updated"){let $=W?.part;if(!$||$.sessionID!==X)continue;if($.type==="text"&&$.time?.end){let V=String($.text??"").trim();if(V)process.stdout.write(V+M)}}if(b.type==="permission.asked"){if(!W||W.sessionID!==X)continue;await J.permission.reply({requestID:String(W.id),reply:"once"})}if(b.type==="session.error"){if(!W||W.sessionID!==X||!W.error)continue;let $=W.error,V=$?.data!==null&&typeof $?.data==="object"&&"message"in $.data?String($.data.message):String($?.name??$);z.error(V)}}}finally{Y.stop(),await H.return?.(void 0).catch(()=>{})}})().catch((Q)=>{console.error(Q),process.exit(1)});let h=B.model?r.parseModel(B.model):void 0;await J.session.prompt({sessionID:X,agent:B.agent,model:h,parts:[{type:"text",text:B.prompt}]}),Y.markStarted(),await Y.completion}var sB=e({command:"$0 [project]",describe:"start qitqode tui",builder:(B)=>p(B).positional("project",{type:"string",describe:"path to start qitqode in"}).options(g).option("never-ask",{type:"boolean",describe:"start in never-ask mode \u2014 auto-decide without asking (permissions excluded), toggle at runtime with /never-ask",default:!1}).check((J)=>{if(J.dark&&J.light)throw Error("--dark and --light are mutually exclusive");if(J.sso&&!J.headless)throw Error("--sso requires --headless");if(J.sso&&J["api-key"]!==void 0)throw Error("--sso and --api-key are mutually exclusive");let Z=Object.keys(WB).filter((X)=>J[X]);if(Z.length>1)throw Error(`${Z.map((X)=>`--${X}`).join(" and ")} are mutually exclusive \u2014 choose one tier flag`);if(Z.length===1&&J.model)throw Error(`--${Z[0]} and --model are mutually exclusive \u2014 use one or the other`);return!0}),handler:async(B)=>{if(B.monochrome)process.env.QITQODE_TUI_ACCESSIBLE="1",process.env.NO_COLOR="1";let J=JB();try{BB();let Z=VB(B);if(Z){z.error(Z),process.exitCode=1;return}let X=jB(B)??B.model,G=y(process.env.PWD??process.cwd()),Y=B.project?y(D.isAbsolute(B.project)?B.project:D.join(G,B.project)):y(process.cwd());if(B.project&&!await E(Y)){let V=bB(B.project,Y);if(z.error(V.error),V.hint)z.println(V.hint);process.exitCode=1;return}let H=T(Y);if(H){if(B.project){z.error("Cannot start in "+Y+": "+H),process.exitCode=1;return}let V=y(QB.homedir());if(T(V)){z.error("Cannot start in "+Y+": "+H),process.exitCode=1;return}P.warn("unsafe start directory, falling back to home",{requested:Y,home:V}),Y=V}let U=await qB();try{process.chdir(Y)}catch{z.error("Failed to change directory to "+Y);return}let C=y(process.cwd()),h=l({[c]:"worker",[f]:u()}),Q=new Worker(U,{env:h});Q.onerror=(V)=>{P.error("thread error",{message:V.message,filename:V.filename,lineno:V.lineno,colno:V.colno,error:V.error})};let K=i(Q),b=()=>{K.call("reload",void 0).catch((V)=>{P.warn("worker reload failed",{error:L(V)})})};process.on("SIGUSR2",b);let W=!1,$=async()=>{if(W)return;W=!0,process.off("SIGUSR2",b),await n(K.call("shutdown",void 0),5000).catch((V)=>{P.warn("worker shutdown failed",{error:L(V)})}),Q.terminate()};try{let V=import("./chunk-0mm40z8g.js"),HB=import("./chunk-8bea2r6p.js").then(({TuiConfig:q})=>q.get()),S=await yB(B.prompt),KB=await HB;if(B.headless&&w(O(B))){z.error("--headless cannot be combined with network-listener flags (--port, --hostname, --mdns)"),process.exitCode=1;return}let I=O(B),_=w(I)?{url:(await K.call("server",I)).url,fetch:void 0,events:void 0}:{url:"http://qitqode.internal",fetch:FB(K),events:_B(K)};if(setTimeout(()=>{K.call("checkUpgrade",{directory:C}).catch(()=>{})},1000).unref?.(),B.headless){if(!S){z.error("--headless requires a prompt: pass --prompt or pipe input via stdin"),process.exitCode=1;return}if(B.sso){try{let j=await t({tryOpen:!1,onCode:(F)=>{if(process.stdout.write(M),process.stdout.write(" To sign in, open: "+F.verificationUri+M),process.stdout.write(" and enter code: "+F.userCode+M),F.verificationUriComplete)process.stdout.write(M+" Or open this link directly:"+M+" "+F.verificationUriComplete+M);process.stdout.write(M+" Waiting for approval... (ctrl+c to cancel)"+M)}});await x.runPromise(N.gen(function*(){yield*(yield*A.Service).set("forgewise",s(j,{rotateRefreshToken:!0}))})),process.stdout.write(" Signed in as "+(j.name||j.email)+M)}catch(j){z.error("SSO sign-in failed: "+L(j)),process.exitCode=1;return}await v({url:_.url,fetch:_.fetch,prompt:S,model:X,agent:R(B)??m,directory:C,continue:B.continue,sessionID:B.session,fork:B.fork});return}let q=$B(typeof B["api-key"]==="string"?String(B["api-key"]):"");if(q)await x.runPromise(zB(q));else if(!await x.runPromise(N.gen(function*(){if(yield*N.promise(()=>a()))return!0;return!!(yield*(yield*A.Service).get("forgewise"))}))){z.error(`Not signed in. Use one of:
|
|
4
|
+
qitqode auth login (browser / device-code flow)
|
|
5
|
+
qitqode auth login --api-key (paste a Qortex API key)
|
|
6
|
+
--api-key <key> (inline for this run)
|
|
7
|
+
$QLEX_API_KEY (environment variable)
|
|
8
|
+
$QITQODE_KEY (environment variable)`),process.exitCode=1;return}await v({url:_.url,fetch:_.fetch,prompt:S,model:X,agent:R(B)??m,directory:C,continue:B.continue,sessionID:B.session,fork:B.fork})}else{let{tui:q}=await V;await q({url:_.url,async onSnapshot(){let j=GB("tui.heapsnapshot"),F=await K.call("snapshot",void 0);return[j,F]},config:KB,directory:C,fetch:_.fetch,events:_.events,args:{continue:B.continue,sessionID:B.session,agent:R(B),model:X,prompt:S,fork:B.fork,neverAsk:B["never-ask"]||B.fullauto||!1,fullauto:B.fullauto||!1,themeMode:B.dark?"dark":B.light?"light":void 0,monochrome:B.monochrome||!1,headless:!1}})}}finally{await $()}}finally{J?.()}}});export{R as resolveStartupAgent,bB as missingProjectReport,sB as TuiThreadCommand};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var x=Symbol("no event loop error");async function S(q){let F=q.events[Symbol.asyncIterator](),I=q.tracker.completion,Z=I.then(()=>"DONE"),Y=(async()=>{try{while(!0){let B=await Promise.race([F.next(),Z]);if(B==="DONE")return x;if(B.done)return q.connection.fail(Error("QitQode event stream closed before connecting")),x;await q.onEvent(B.value)}}catch(B){return q.connection.fail(B instanceof Error?B:Error(String(B))),B}})();try{let B=await Promise.race([q.connection.wait().then(()=>({type:"connected"})),I.then((J)=>({type:"completed",result:J}))]);if(B.type==="completed")return B.result;q.tracker.markDispatching();let H=q.dispatch().then(()=>q.tracker.markStarted());H.catch(()=>{});let Q=await Promise.race([H.then(()=>({type:"dispatch"})),I.then((J)=>({type:"completion",result:J}))]),V=Q.type==="completion"?Q.result:await I,K=V;if(V.status==="interrupted"&&q.cancelRemote){let J,$=await Promise.race([q.cancelRemote().then(()=>!0,()=>!1),new Promise((G)=>{J=setTimeout(()=>G(!1),3000)})]);if(J)clearTimeout(J);K={...V,abortConfirmed:$}}let W=await Y;if(W!==x)throw W;return K}finally{q.tracker.stop(),q.abort();let B=q.iteratorReturnTimeoutMs??250,H=Promise.resolve().then(()=>F.return?.()).catch(()=>{return}),Q;if(await Promise.race([H,new Promise((K)=>{Q=setTimeout(K,B)})]),Q)clearTimeout(Q);let V;if(await Promise.race([Y,new Promise((K)=>{V=setTimeout(K,B)})]),V)clearTimeout(V)}}function O(){let q=!1,F,I,Z=new Promise((B,H)=>{F=B,I=H}),Y=(B)=>{if(q)return;q=!0,I(B)};return{onEvent(B){if(B?.type!=="server.connected"||q)return;q=!0,F()},fail:Y,async wait(B=15000){let H=setTimeout(()=>Y(Error("QitQode event stream did not connect before prompt dispatch")),B);try{await Z}finally{clearTimeout(H)}}}}function P(q){let F=!1,I=!1,Z=!1,Y,B="waiting to send the request",H=(q.now??Date.now)(),Q=!1,V="",K=new Map,W=new Promise((z)=>{Y=z}),J=q.now??Date.now,$=q.noProgressWarningMs??90000,G=q.noProgressTimeoutMs??180000;if(!Number.isFinite($)||$<0||!Number.isFinite(G)||G<=0||$>=G)throw Error("No-progress limits must be numbers with 0 <= warning < timeout.");let y=(z)=>{let C=z;return!!C&&(C.properties?.sessionID===q.sessionID||C.properties?.info?.sessionID===q.sessionID||C.properties?.part?.sessionID===q.sessionID)},D=(z)=>{if(F)return;F=!0,clearInterval(R),Y(z)},L=(z)=>{B=z,H=J(),Q=!1},j=()=>{if(I)return;I=!0,H=J()},A=(z)=>{if(z?.type==="step-start")return"waiting for model output";if(z?.type==="step-finish")return"model step finished";if(z?.type==="text")return"receiving assistant text";if(z?.type==="reasoning")return"receiving model reasoning";if(z?.type==="tool")return z.tool==="bash"?"running a shell command":`running the ${String(z.tool||"unknown")} tool`;return"processing a session update"},_=async()=>{if(F)return;let z;try{z=await q.query()}catch{return}if(F)return;if(z){let C=`${z.type}:${typeof z.message==="string"?z.message:""}`;if(C!==V){if(V=C,z.type==="retry")L("retrying the request")}}if(Z&&(!z||z.type==="idle"))D({status:"completed"})},T=()=>{if(F||!I)return;let z=J()-H;if(!Q&&z>=$)Q=!0,Promise.resolve(q.onNoProgressWarning?.({elapsedMs:z,phase:B,sessionID:q.sessionID})).catch(()=>{});if(z>=G)D({status:"interrupted",reason:"no-progress",phase:B,elapsedMs:z})},E=q.intervalMs??750,R=setInterval(()=>{T(),_().catch(()=>{})},E);return{markDispatching(){j(),B="sending the request"},markStarted(){j(),Z=!0,L("waiting for QitQode")},onEvent(z){if(F)return;if(!y(z))return;let C=z;if(Z=!0,!I)j();if(C.type==="session.status"&&C.properties?.status?.type==="idle"){D({status:"completed"});return}if(C.type==="message.updated"&&C.properties?.info?.role==="assistant"){let X=C.properties.info,U=`${X.id??""}:${X.time?.updated??X.time?.created??""}`;if(K.get("assistant-message")!==U)K.set("assistant-message",U),L("waiting for model output");return}if(C.type==="message.part.updated"){let X=C.properties?.part;if(!X)return;let U=X.state??{},b=U.metadata?.output??U.output??"",N=`${U.status??""}:${typeof b==="string"?`${b.length}:${b.slice(-256)}`:""}:${X.time?.end??""}`,k=String(X.id??X.type??"part");if(K.get(k)!==N)K.set(k,N),L(A(X));return}if(C.type==="permission.asked")L("handling a permission request")},interrupt(z){let C=Math.max(0,J()-H);D({status:"interrupted",reason:"signal",signal:z.signal,phase:B,elapsedMs:C})},get done(){return F},completion:W,stop(){D({status:"completed"})}}}var w="build";function f(q){return q&&q.trim().length>0?q:"build"}
|
|
3
|
+
export{S as Y,O as Z,P as _,w as $,f as aa};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{UQ as o}from"./chunk-9svh74gt.js";var i=(t)=>`standard-openapi: ${t}`,s=new Map,r=async(t)=>{let e=s.get(t);if(e)return e;let a;switch(t){case"valibot":a=(await import("./chunk-075gkea2.js")).default();break;case"zod":a=(await import("./chunk-c1exgasy.js")).default();break;default:a=(await import("./chunk-yewjnqee.js")).default()}return s.set(t,a),a},d=async(t,e={})=>{let a=await r(t["~standard"].vendor),{components:n={},options:c}=e;return{schema:await a(t,{components:n,options:c}),components:Object.keys(n).length>0?n:void 0}};
|
|
3
|
+
export{i as Fg,d as Gg};
|