@qitqode/qitqode-android-arm64 0.2.10 → 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-1r81q7m3.js → chunk-075gkea2.js} +1 -1
- package/bundle/{chunk-9fjcgdea.js → chunk-09n24ztn.js} +1 -1
- package/bundle/chunk-0bn86djg.js +3 -0
- package/bundle/chunk-0mm40z8g.js +2 -0
- package/bundle/{chunk-mn5cacf6.js → chunk-0tya4pqb.js} +2 -2
- package/bundle/{chunk-ff8q10gk.js → chunk-1dnvdeat.js} +2 -2
- package/bundle/{chunk-kcqeh1e5.js → chunk-1h9sc0gy.js} +1 -1
- package/bundle/chunk-1mqfhw0f.js +2 -0
- package/bundle/{chunk-gq3zb4wv.js → chunk-1p39y33b.js} +2 -2
- package/bundle/{chunk-tg1f56s3.js → chunk-1pd943m9.js} +1 -1
- package/bundle/{chunk-qbewhcsz.js → chunk-1rsabv4p.js} +1 -1
- package/bundle/{chunk-vsfj16v9.js → chunk-1tdy73ha.js} +2 -2
- package/bundle/{chunk-3zzrdpsx.js → chunk-1yh1f9yj.js} +1 -1
- package/bundle/{chunk-62y6zk9x.js → chunk-22wa8zty.js} +1 -1
- package/bundle/chunk-28kte9rt.js +2 -0
- package/bundle/chunk-2dhjehxe.js +2 -0
- package/bundle/{chunk-dz3kcsb6.js → chunk-2h8b0csf.js} +2 -2
- package/bundle/chunk-2nnfxbd2.js +2 -0
- package/bundle/{chunk-g08qj9z3.js → chunk-2ts74cgq.js} +2 -2
- package/bundle/{chunk-0mwzxqt5.js → chunk-2vsqsxe1.js} +3 -3
- package/bundle/chunk-2w5zmgpb.js +2 -0
- package/bundle/{chunk-6wjdhvdf.js → chunk-32x2901e.js} +1 -1
- package/bundle/chunk-34qt3fqj.js +2 -0
- package/bundle/{chunk-by1kwg4r.js → chunk-3amgvg81.js} +2 -2
- package/bundle/{chunk-ge7csm6m.js → chunk-3hawwbw6.js} +2 -2
- package/bundle/chunk-3p0xvt47.js +2 -0
- package/bundle/chunk-3pzx5ret.js +2 -0
- package/bundle/{chunk-f6vy70p6.js → chunk-3tf7xfw5.js} +2 -2
- package/bundle/chunk-3y4rmqmm.js +2 -0
- package/bundle/{chunk-q0xgxygw.js → chunk-42gd2vx4.js} +1 -1
- package/bundle/{chunk-8rkszwxq.js → chunk-43eqr0ds.js} +6 -6
- package/bundle/{chunk-d1xfv4d3.js → chunk-43x9n8rp.js} +1 -1
- package/bundle/{chunk-kk850sdw.js → chunk-44685nzw.js} +2 -2
- package/bundle/{chunk-z023h7t8.js → chunk-46ewdxgh.js} +1 -1
- package/bundle/{chunk-v8bxj01h.js → chunk-4805mxf7.js} +1 -1
- package/bundle/chunk-486874bd.js +2 -0
- package/bundle/{chunk-0tkznq75.js → chunk-48y4n9ne.js} +1 -1
- package/bundle/{chunk-56yp5v0w.js → chunk-49brdmgp.js} +1 -1
- package/bundle/{chunk-ngyv4fhn.js → chunk-49we3vy1.js} +2 -2
- package/bundle/chunk-4bcbvfsw.js +2 -0
- package/bundle/{chunk-d0dsgxk4.js → chunk-4c6d1wy1.js} +2 -2
- package/bundle/{chunk-9tz18e54.js → chunk-4d9s7cgr.js} +1 -1
- package/bundle/{chunk-kec1xw1n.js → chunk-4ngvj758.js} +1 -1
- package/bundle/{chunk-pwsajn96.js → chunk-4q14whpc.js} +1 -1
- package/bundle/chunk-4t1ysdag.js +2 -0
- package/bundle/{chunk-nh4zk07t.js → chunk-50knjq36.js} +1 -1
- package/bundle/{chunk-9zy5tsry.js → chunk-51vn4f06.js} +3 -3
- package/bundle/{chunk-5fcyb122.js → chunk-5mgmq6yz.js} +1 -1
- package/bundle/chunk-5q7a4h2w.js +2 -0
- package/bundle/{chunk-dx7rexx3.js → chunk-5qydhr42.js} +3 -3
- package/bundle/{chunk-je8fcsa9.js → chunk-611wfdn3.js} +1 -1
- package/bundle/{chunk-9pj10pgd.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-tjfer79w.js → chunk-6xx66mr1.js} +1 -1
- package/bundle/{chunk-mmqyter3.js → chunk-71h3pmnn.js} +1 -1
- package/bundle/{chunk-yzd6cyep.js → chunk-78e76m4h.js} +1 -1
- package/bundle/{chunk-z0m1qm7j.js → chunk-78yvbv9b.js} +2 -2
- package/bundle/chunk-7a9kfb2n.js +2 -0
- package/bundle/{chunk-eme9xmh3.js → chunk-7b5vney6.js} +1 -1
- package/bundle/{chunk-yexzxx6f.js → chunk-7jvx29js.js} +1 -1
- package/bundle/{chunk-vy93mn7d.js → chunk-7wshaze9.js} +2 -2
- package/bundle/{chunk-q26s0wb5.js → chunk-7x4g7h04.js} +1 -1
- package/bundle/chunk-7x9m1smk.js +2 -0
- package/bundle/chunk-82mnr6sf.js +2 -0
- package/bundle/{chunk-mp1x10t5.js → chunk-84qx54nf.js} +2 -2
- package/bundle/{chunk-c1c8ch3g.js → chunk-88hmeyf5.js} +8 -8
- package/bundle/{chunk-vk35g121.js → chunk-89b6ttzs.js} +2 -2
- package/bundle/chunk-8bea2r6p.js +2 -0
- package/bundle/{chunk-fvv1cret.js → chunk-8gn7r4kb.js} +1 -1
- package/bundle/chunk-8h6mhzhg.js +2 -0
- package/bundle/chunk-8n1cmvr7.js +2 -0
- package/bundle/{chunk-e10c0crf.js → chunk-8qbhnwej.js} +1 -1
- package/bundle/{chunk-at4dge22.js → chunk-8rbbt1s8.js} +1 -1
- package/bundle/{chunk-6gbdvz6p.js → chunk-8rc7cvex.js} +1 -1
- package/bundle/{chunk-cdenq7jb.js → chunk-8t17w67q.js} +1 -1
- package/bundle/{chunk-qq9yc2tp.js → chunk-8y03p2md.js} +2 -2
- package/bundle/{chunk-m01h6kk1.js → chunk-8z65v9c9.js} +1 -1
- package/bundle/{chunk-f17se3hh.js → chunk-92xxg12q.js} +1 -1
- package/bundle/chunk-955zj1y6.js +2 -0
- package/bundle/{chunk-vbb1jg02.js → chunk-95tec4gm.js} +1 -1
- package/bundle/chunk-95vp9bvk.js +2 -0
- package/bundle/{chunk-eqpep2m2.js → chunk-96nmxprr.js} +1 -1
- package/bundle/{chunk-9nf5650d.js → chunk-98z5pfvj.js} +1 -1
- package/bundle/{chunk-xcmbxny8.js → chunk-9d2mtevw.js} +1 -1
- package/bundle/{chunk-c3ey896z.js → chunk-9d8meavf.js} +1 -1
- package/bundle/{chunk-fsndgr9a.js → chunk-9gs4en9v.js} +1 -1
- package/bundle/{chunk-djfrkbd5.js → chunk-9svh74gt.js} +1 -1
- package/bundle/chunk-9wzxnwv7.js +2 -0
- package/bundle/chunk-9zve998d.js +2 -0
- package/bundle/{chunk-yspstxkq.js → chunk-a2pd7nt5.js} +1 -1
- package/bundle/{chunk-pky8h8rh.js → chunk-a4cmpa56.js} +1 -1
- package/bundle/chunk-a9bkr9x4.js +2 -0
- package/bundle/chunk-ac5vzpzt.js +2 -0
- package/bundle/{chunk-532fnfmw.js → chunk-ajgwyrcf.js} +2 -2
- package/bundle/{chunk-c8k32724.js → chunk-ajyfms68.js} +1 -1
- package/bundle/{chunk-q7s6z0nz.js → chunk-akrcbxfa.js} +1 -1
- package/bundle/{chunk-ajnzv5jt.js → chunk-aykvrqrp.js} +2 -2
- package/bundle/{chunk-rk21wv4k.js → chunk-b274mb6v.js} +1 -1
- package/bundle/{chunk-5p2r8bxx.js → chunk-b79bb2g3.js} +1 -1
- package/bundle/{chunk-8nnajdwf.js → chunk-bd66q24j.js} +3 -3
- package/bundle/{chunk-qdbx1qkr.js → chunk-bffm0wv9.js} +1 -1
- package/bundle/{chunk-se8d5xg9.js → chunk-bh1zbz62.js} +1 -1
- package/bundle/{chunk-f3y5kr76.js → chunk-bqqxvagz.js} +2 -2
- package/bundle/{chunk-h6z86aay.js → chunk-bw0951fs.js} +1 -1
- package/bundle/{chunk-8peby2d1.js → chunk-bwzbcwff.js} +1 -1
- package/bundle/{chunk-wh2qqhep.js → chunk-bxc3z38f.js} +2 -2
- package/bundle/{chunk-ztvkzex1.js → chunk-bzz2expb.js} +1 -1
- package/bundle/chunk-c1exgasy.js +2 -0
- package/bundle/{chunk-qm9fm5ja.js → chunk-c53ev0da.js} +2 -2
- package/bundle/{chunk-wd2xmkdp.js → chunk-c5n49vrd.js} +2 -2
- package/bundle/{chunk-m4j6t713.js → chunk-ccghr6pm.js} +1 -1
- package/bundle/{chunk-j7637cwg.js → chunk-cg7zeppb.js} +2 -2
- package/bundle/chunk-cgxzmkkf.js +2 -0
- package/bundle/{chunk-1m78yy4k.js → chunk-cm7yp259.js} +1 -1
- package/bundle/chunk-cs3cbfm8.js +2 -0
- package/bundle/{chunk-x308f9j4.js → chunk-cshsqavb.js} +2 -2
- package/bundle/{chunk-vbfc0wgv.js → chunk-csmdhh7r.js} +2 -2
- package/bundle/{chunk-8v60bqm0.js → chunk-cydpdkx7.js} +1 -1
- package/bundle/{chunk-f6btedtt.js → chunk-czfjmrrq.js} +1 -1
- package/bundle/{chunk-a70m6kyn.js → chunk-d1j8frtq.js} +1 -1
- package/bundle/chunk-d29te4c1.js +2 -0
- package/bundle/{chunk-snf6ahg7.js → chunk-d39e4fa8.js} +1 -1
- package/bundle/chunk-d6q42p18.js +2 -0
- package/bundle/{chunk-f0ab2f28.js → chunk-d6qs2pbx.js} +1 -1
- package/bundle/{chunk-0bhzhh7s.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-9d0exvey.js → chunk-dzw0j790.js} +2 -2
- package/bundle/chunk-e1fzgez5.js +2 -0
- package/bundle/{chunk-141p12c4.js → chunk-e5cds19n.js} +1 -1
- package/bundle/{chunk-nqk8d62j.js → chunk-e6ckxkj8.js} +1 -1
- package/bundle/{chunk-v0hnn7nb.js → chunk-e7a50j2w.js} +1 -1
- package/bundle/chunk-e9vh8d52.js +8 -0
- package/bundle/{chunk-j5z95b6f.js → chunk-eftk07r3.js} +1 -1
- package/bundle/chunk-egcvm4x2.js +3 -0
- package/bundle/chunk-ek3b08ed.js +2 -0
- package/bundle/{chunk-s27cz24e.js → chunk-ep92grvg.js} +52 -52
- package/bundle/{chunk-dnjyepb2.js → chunk-ex47pb9n.js} +2 -2
- package/bundle/{chunk-b9f78x5g.js → chunk-eya9c81t.js} +1 -1
- package/bundle/chunk-f78yth0b.js +2 -0
- package/bundle/{chunk-gbnf7zf9.js → chunk-fd6qxjtf.js} +1 -1
- package/bundle/{chunk-c8080519.js → chunk-fnmq42y5.js} +1 -1
- package/bundle/{chunk-nnkfdhh9.js → chunk-fqvrxy41.js} +1 -1
- package/bundle/{chunk-3sj0jv91.js → chunk-fqvsxg00.js} +1 -1
- package/bundle/{chunk-5w7ebtcd.js → chunk-fsagyvkz.js} +1 -1
- package/bundle/{chunk-gb51fn3r.js → chunk-fzxqn4j0.js} +1 -1
- package/bundle/{chunk-p506eydh.js → chunk-g7jwp73v.js} +1 -1
- package/bundle/{chunk-xnxw5zz9.js → chunk-g83d3a0t.js} +2 -2
- package/bundle/chunk-gamnnfna.js +2 -0
- package/bundle/{chunk-dp6ms01y.js → chunk-gfer8ch3.js} +2 -2
- package/bundle/{chunk-c2ns2csn.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-e72jwbfc.js → chunk-gz8k40ty.js} +1 -1
- package/bundle/{chunk-xvvt886p.js → chunk-h6kmpgak.js} +2 -2
- package/bundle/{chunk-2y5bthrp.js → chunk-h8yf5e2e.js} +1 -1
- package/bundle/{chunk-v8rqgt7h.js → chunk-hama2v6a.js} +1 -1
- package/bundle/{chunk-7a3txs9f.js → chunk-hav9pgf3.js} +2 -2
- package/bundle/chunk-hj588j4f.js +2 -0
- package/bundle/{chunk-c9cngded.js → chunk-hntsg7q4.js} +1 -1
- package/bundle/chunk-hqtex91e.js +2 -0
- package/bundle/{chunk-0sfc21qe.js → chunk-hts68y73.js} +2 -2
- package/bundle/{chunk-kc8n5cgb.js → chunk-j5dnzqjy.js} +1 -1
- package/bundle/{chunk-r81w6skn.js → chunk-j7d3v0x2.js} +1 -1
- package/bundle/{chunk-4a9jqe5s.js → chunk-jcn8bg31.js} +1 -1
- package/bundle/{chunk-2dmcpqak.js → chunk-jf4zyy7r.js} +1 -1
- package/bundle/{chunk-h0pvxre5.js → chunk-jfe9f2wv.js} +1 -1
- package/bundle/{chunk-8gpjmj42.js → chunk-jh2za7y4.js} +3 -3
- package/bundle/chunk-jmgpr5th.js +2 -0
- package/bundle/chunk-jt79yt0t.js +2 -0
- package/bundle/{chunk-7rbg6mg9.js → chunk-jt7g0r2j.js} +2 -2
- package/bundle/chunk-jtz5re73.js +2 -0
- package/bundle/{chunk-81dvy370.js → chunk-k232ny9m.js} +1 -1
- package/bundle/{chunk-t9pq363q.js → chunk-k4ajben7.js} +2 -2
- package/bundle/chunk-k4bj677f.js +3 -0
- package/bundle/{chunk-brk1jca3.js → chunk-k4d8gwxe.js} +1 -1
- package/bundle/{chunk-zskdxbbh.js → chunk-k558fr15.js} +1 -1
- package/bundle/{chunk-eabbrt1p.js → chunk-k56zj08h.js} +1 -1
- package/bundle/{chunk-61t4g8bh.js → chunk-k5swnh8m.js} +4 -4
- package/bundle/{chunk-gksbv613.js → chunk-k8zbhj2p.js} +2 -2
- package/bundle/{chunk-c8yc8qcd.js → chunk-kr975sx0.js} +1 -1
- package/bundle/{chunk-qdafm7qg.js → chunk-krk24aqm.js} +2 -2
- package/bundle/{chunk-3mtjxmw1.js → chunk-kt982884.js} +1 -1
- package/bundle/chunk-kw5z5awx.js +2 -0
- package/bundle/{chunk-vjt6mh10.js → chunk-kxdw2vtq.js} +2 -2
- package/bundle/{chunk-rxnd79h7.js → chunk-m8phqgxp.js} +1 -1
- package/bundle/{chunk-psqtptrs.js → chunk-mazakqr7.js} +1 -1
- package/bundle/{chunk-cxtwavyf.js → chunk-mnxcykeq.js} +2 -2
- package/bundle/chunk-mp42gb6q.js +2 -0
- package/bundle/{chunk-yh1t6jrj.js → chunk-mp5m0acf.js} +1 -1
- package/bundle/chunk-mq0733qh.js +2 -0
- package/bundle/chunk-mrcsatmn.js +2 -0
- package/bundle/{chunk-qtyapmy7.js → chunk-n230jbn9.js} +1 -1
- package/bundle/chunk-n24yx79r.js +5 -0
- package/bundle/{chunk-acsqvgdw.js → chunk-n2ytaxyn.js} +1 -1
- package/bundle/{chunk-819qr675.js → chunk-n4fwztya.js} +1 -1
- package/bundle/{chunk-z69tt390.js → chunk-n5dxwryh.js} +1 -1
- package/bundle/{chunk-xv03hbgj.js → chunk-n9969djm.js} +1 -1
- package/bundle/{chunk-pxm0x3e0.js → chunk-ncvr75f6.js} +2 -2
- package/bundle/chunk-ng2g9kkk.js +2 -0
- package/bundle/chunk-ngfhfyjs.js +2 -0
- package/bundle/{chunk-mn0pshpv.js → chunk-nvvja3ch.js} +1 -1
- package/bundle/{chunk-6axm2qtj.js → chunk-nwkp2f8e.js} +1 -1
- package/bundle/{chunk-d9w2bn2e.js → chunk-nwygsfhk.js} +2 -2
- package/bundle/chunk-p0dnmrqp.js +2 -0
- package/bundle/{chunk-x0hhw46n.js → chunk-p5p4jh9s.js} +1 -1
- package/bundle/chunk-p6h2ydcp.js +2 -0
- package/bundle/{chunk-e1x1mp9m.js → chunk-pcmsxhrb.js} +1 -1
- package/bundle/{chunk-rpdgn9z3.js → chunk-pdcj2rfz.js} +2 -2
- package/bundle/{chunk-t2r51r6v.js → chunk-pfd8gzy4.js} +1 -1
- package/bundle/{chunk-6y58jzak.js → chunk-ph46s66y.js} +1 -1
- package/bundle/{chunk-s05hqtx1.js → chunk-pkm3w0ks.js} +1 -1
- package/bundle/{chunk-dd461rg3.js → chunk-pnmadk2h.js} +1 -1
- package/bundle/{chunk-jt6bvxtr.js → chunk-q65qzc9w.js} +1 -1
- package/bundle/{chunk-qjw2zcq5.js → chunk-q8qx38kz.js} +1 -1
- package/bundle/chunk-qhakedgs.js +2 -0
- package/bundle/{chunk-xj0zc9za.js → chunk-qsgpbt4t.js} +1 -1
- package/bundle/{chunk-ccdjzn2m.js → chunk-qtdxy2q1.js} +3 -3
- package/bundle/chunk-r18zetwf.js +2 -0
- package/bundle/{chunk-3yfjgks3.js → chunk-r1936yb5.js} +1 -1
- package/bundle/{chunk-32xd626h.js → chunk-r4qpsa4e.js} +2 -2
- package/bundle/{chunk-azss4acq.js → chunk-r6055kk0.js} +2 -2
- package/bundle/chunk-r6rgrz25.js +2 -0
- package/bundle/{chunk-t5wdstzv.js → chunk-r9ng8xx5.js} +1 -1
- package/bundle/chunk-rk4vp09j.js +2 -0
- package/bundle/{chunk-e3mrw0k7.js → chunk-rkmg0gbq.js} +1 -1
- package/bundle/{chunk-9s5h0f1y.js → chunk-rpc0he6b.js} +2 -2
- package/bundle/{chunk-h2p984qb.js → chunk-rvev3cy6.js} +2 -2
- package/bundle/{chunk-waa781eh.js → chunk-rx29zmw2.js} +1 -1
- package/bundle/{chunk-5nm5egq0.js → chunk-rxh160jr.js} +2 -2
- package/bundle/{chunk-k10rtgsk.js → chunk-s3hbwksw.js} +1 -1
- package/bundle/{chunk-atacnspd.js → chunk-s3zmxfz2.js} +2 -2
- package/bundle/chunk-s4jp4zce.js +2 -0
- package/bundle/{chunk-qyan69nb.js → chunk-s6vhscvd.js} +2 -2
- package/bundle/{chunk-hgm8yfcb.js → chunk-s81ck6bw.js} +1 -1
- package/bundle/{chunk-3vae1s42.js → chunk-sbj816s8.js} +1 -1
- package/bundle/chunk-sec9y622.js +2 -0
- package/bundle/{chunk-dzma8zvf.js → chunk-seda5sfd.js} +2 -2
- package/bundle/{chunk-tm79yrf3.js → chunk-sjtq9bbb.js} +2 -2
- package/bundle/chunk-sn7q178t.js +2 -0
- package/bundle/chunk-st0h54dm.js +2 -0
- package/bundle/{chunk-b8rzn48q.js → chunk-sxtfssjv.js} +1 -1
- package/bundle/chunk-sz75fx13.js +2 -0
- package/bundle/{chunk-pbanj1gk.js → chunk-t076hwsv.js} +2 -2
- package/bundle/{chunk-p6jf1fyt.js → chunk-t3e19wdp.js} +1 -1
- package/bundle/{chunk-v16n1fep.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-9bbwxp5d.js → chunk-tpw1ewqn.js} +1 -1
- package/bundle/{chunk-wecs14rz.js → chunk-tqnf1p88.js} +1 -1
- package/bundle/{chunk-pyf649pz.js → chunk-tyk97q7c.js} +1 -1
- package/bundle/chunk-tz1sv9kt.js +3 -0
- package/bundle/{chunk-2zjet9tx.js → chunk-tz60e15h.js} +2 -2
- package/bundle/{chunk-xstxdw7v.js → chunk-tzwm08yc.js} +1 -1
- package/bundle/chunk-v1098rqc.js +2 -0
- package/bundle/chunk-v30ezr68.js +11 -0
- package/bundle/{chunk-q8fjktv4.js → chunk-v5j3ypfv.js} +1 -1
- package/bundle/chunk-v5wn741w.js +2 -0
- package/bundle/{chunk-tdevq564.js → chunk-vamwvx0x.js} +1 -1
- package/bundle/{chunk-yce8ph5b.js → chunk-vbcekkw2.js} +2 -2
- package/bundle/{chunk-te91d271.js → chunk-vf75j9wd.js} +1 -1
- package/bundle/{chunk-4sa9t0vx.js → chunk-vhh80d5j.js} +2 -2
- package/bundle/{chunk-5rqjze1g.js → chunk-vm8htc6d.js} +1 -1
- package/bundle/{chunk-cs825mxr.js → chunk-vnz9n9z0.js} +1 -1
- package/bundle/chunk-vp6ttkct.js +2 -0
- package/bundle/chunk-vpcsmwsb.js +2 -0
- package/bundle/{chunk-gmq1kwn0.js → chunk-vrt8wd3r.js} +1 -1
- package/bundle/{chunk-1q10jyka.js → chunk-vyf77kq1.js} +2 -2
- package/bundle/{chunk-pchv413c.js → chunk-w32xhz0x.js} +2 -2
- package/bundle/{chunk-xqwk2zsx.js → chunk-wdy0fsp8.js} +2 -2
- package/bundle/{chunk-gqgjybjc.js → chunk-wkepvmgt.js} +1 -1
- package/bundle/{chunk-g52wmt1v.js → chunk-wp0xd7at.js} +1 -1
- package/bundle/{chunk-x50adh71.js → chunk-wpkr3vzf.js} +1 -1
- package/bundle/{chunk-npdgfqaw.js → chunk-wpx2vmf5.js} +1 -1
- package/bundle/{chunk-2fbkw84y.js → chunk-wqkvsj5y.js} +2 -2
- package/bundle/{chunk-nk5vrenn.js → chunk-wspbjh74.js} +2 -2
- package/bundle/{chunk-qdh2dm62.js → chunk-wzfb19t6.js} +1 -1
- package/bundle/chunk-x23s1s8k.js +2 -0
- package/bundle/{chunk-7s0nq2aa.js → chunk-x28chfpz.js} +2 -2
- package/bundle/{chunk-gx4v8z64.js → chunk-xf1y0sc6.js} +2 -2
- package/bundle/{chunk-h91zmzs5.js → chunk-xfsccqsm.js} +1 -1
- package/bundle/{chunk-pf2vq6t1.js → chunk-xmt17jd4.js} +2 -2
- package/bundle/{chunk-q4mtwv1w.js → chunk-xphzr4wg.js} +2 -2
- package/bundle/chunk-xr6js4ek.js +2 -0
- package/bundle/chunk-y078gb3n.js +2 -0
- package/bundle/{chunk-yydqavgh.js → chunk-y24yxs9g.js} +2 -2
- package/bundle/{chunk-wbt31xap.js → chunk-y565z8n2.js} +2 -2
- package/bundle/{chunk-nq4x6792.js → chunk-y7cqyeve.js} +2 -2
- package/bundle/{chunk-d1fv2c7s.js → chunk-y8bxvp3c.js} +2 -2
- package/bundle/{chunk-zfqgh9h7.js → chunk-y8tx9x5b.js} +1 -1
- package/bundle/{chunk-kds2g7r2.js → chunk-ya6r72ng.js} +1 -1
- package/bundle/chunk-yewjnqee.js +2 -0
- package/bundle/{chunk-2cvwrabw.js → chunk-yg0rs4g1.js} +2 -2
- package/bundle/{chunk-jbcqhw3x.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-7hdb1fhq.js → chunk-yvtbt12y.js} +2 -2
- package/bundle/chunk-z1xeqrgd.js +2 -0
- package/bundle/chunk-z5j46dem.js +2 -0
- package/bundle/{chunk-dm447tgc.js → chunk-zj5snrsa.js} +2 -2
- package/bundle/{chunk-asxmkyz2.js → chunk-zjfdptdj.js} +1 -1
- package/bundle/chunk-zq0hpja9.js +2 -0
- package/bundle/{chunk-td9hm9be.js → chunk-zqzh5hp3.js} +1 -1
- package/bundle/{chunk-ev6jwt7q.js → chunk-zr1cvkpb.js} +1 -1
- package/bundle/{chunk-6mnk5sg3.js → chunk-zr89enb8.js} +1 -1
- package/bundle/{chunk-ecz4h0a2.js → chunk-zskjqrmc.js} +1 -1
- package/bundle/{chunk-1h96bk6p.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-062chtrq.js +0 -2
- package/bundle/chunk-062vs7bp.js +0 -2
- package/bundle/chunk-08g14hmz.js +0 -2
- package/bundle/chunk-0w2v8dfy.js +0 -2
- package/bundle/chunk-10fr7a2y.js +0 -2
- package/bundle/chunk-15bjhfav.js +0 -3
- package/bundle/chunk-1hv61m11.js +0 -2
- package/bundle/chunk-2mkvx8b2.js +0 -2
- package/bundle/chunk-2rykfc3a.js +0 -2
- package/bundle/chunk-2w5hx4fs.js +0 -2
- package/bundle/chunk-2yy63sxz.js +0 -2
- package/bundle/chunk-2z3fe4qw.js +0 -2
- package/bundle/chunk-361cmmrp.js +0 -2
- package/bundle/chunk-3r6dq1h3.js +0 -2
- package/bundle/chunk-4a12wv2m.js +0 -2
- package/bundle/chunk-547a55ba.js +0 -2
- package/bundle/chunk-5ztmc770.js +0 -2
- package/bundle/chunk-62x3r2q8.js +0 -2
- package/bundle/chunk-6th7vpwm.js +0 -2
- package/bundle/chunk-6ybh5smv.js +0 -2
- package/bundle/chunk-73kprndw.js +0 -2
- package/bundle/chunk-79fr19xf.js +0 -2
- package/bundle/chunk-7ezr478e.js +0 -2
- package/bundle/chunk-7gj1vqyj.js +0 -2
- package/bundle/chunk-7ywfkwb4.js +0 -2
- package/bundle/chunk-85fnnwm2.js +0 -2
- package/bundle/chunk-89fwh84w.js +0 -2
- package/bundle/chunk-8e724g3k.js +0 -2
- package/bundle/chunk-9894a2yn.js +0 -2
- package/bundle/chunk-98ye2nwt.js +0 -2
- package/bundle/chunk-9s4excg8.js +0 -2
- package/bundle/chunk-aetgcegz.js +0 -2
- package/bundle/chunk-agas0nay.js +0 -2
- package/bundle/chunk-ayknzc4m.js +0 -2
- package/bundle/chunk-b2ybst88.js +0 -2
- package/bundle/chunk-bd5vtjd7.js +0 -2
- package/bundle/chunk-bjqqk6jt.js +0 -2
- package/bundle/chunk-cpkcdykz.js +0 -2
- package/bundle/chunk-cyafm8d6.js +0 -2
- package/bundle/chunk-d4316r53.js +0 -2
- package/bundle/chunk-d8ym7mcg.js +0 -2
- package/bundle/chunk-dnpjxjkp.js +0 -2
- package/bundle/chunk-e5gjqtby.js +0 -2
- package/bundle/chunk-ee3mqzms.js +0 -2
- package/bundle/chunk-er5f61s5.js +0 -2
- package/bundle/chunk-er716522.js +0 -2
- package/bundle/chunk-ez3gacqe.js +0 -2
- package/bundle/chunk-fkc7wf1p.js +0 -2
- package/bundle/chunk-fm6z8nqb.js +0 -2
- package/bundle/chunk-g0qwm23d.js +0 -2
- package/bundle/chunk-g4yn8cj8.js +0 -2
- package/bundle/chunk-gsez13bg.js +0 -3
- package/bundle/chunk-h1spsy3y.js +0 -2
- package/bundle/chunk-h8gkv40j.js +0 -2
- package/bundle/chunk-j59kmb49.js +0 -2
- package/bundle/chunk-jv37ghev.js +0 -2
- package/bundle/chunk-k3hcb6qf.js +0 -2
- package/bundle/chunk-k5d822n2.js +0 -3
- package/bundle/chunk-m8ytbq04.js +0 -2
- package/bundle/chunk-mf9nc4xz.js +0 -2
- package/bundle/chunk-mxby91bj.js +0 -2
- package/bundle/chunk-mzv1gh6f.js +0 -2
- package/bundle/chunk-n0hsvvw8.js +0 -2
- package/bundle/chunk-nm1v9z14.js +0 -2
- package/bundle/chunk-p7nstcxa.js +0 -2
- package/bundle/chunk-pfwkvv7g.js +0 -2
- package/bundle/chunk-pn1jz8qj.js +0 -2
- package/bundle/chunk-pqvmtfk7.js +0 -2
- package/bundle/chunk-prgw26g3.js +0 -2
- package/bundle/chunk-pv9ty6v7.js +0 -2
- package/bundle/chunk-q4rstre7.js +0 -2
- package/bundle/chunk-q6jk2v6g.js +0 -2
- package/bundle/chunk-qd43npx3.js +0 -2
- package/bundle/chunk-qdb21y83.js +0 -2
- package/bundle/chunk-qeksaefy.js +0 -2
- package/bundle/chunk-r7t9yb9d.js +0 -2
- package/bundle/chunk-sdv3a4w3.js +0 -2
- package/bundle/chunk-sk89becn.js +0 -2
- package/bundle/chunk-tc0996xz.js +0 -2
- package/bundle/chunk-tfs50mgj.js +0 -2
- package/bundle/chunk-thecq33z.js +0 -3
- package/bundle/chunk-tjvtp9d9.js +0 -2
- package/bundle/chunk-tkm9m3n0.js +0 -2
- package/bundle/chunk-v03xq38e.js +0 -5
- package/bundle/chunk-v1s1rcqx.js +0 -2
- package/bundle/chunk-v4dt4062.js +0 -2
- package/bundle/chunk-wgrq86kd.js +0 -2
- package/bundle/chunk-x8ks2bn7.js +0 -2
- package/bundle/chunk-xgf4k9q7.js +0 -10
- package/bundle/chunk-xy2ty5h5.js +0 -8
- package/bundle/chunk-z0383stv.js +0 -2
- package/bundle/chunk-zewrmk8x.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
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
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
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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
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};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
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
|
|
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};
|