@qitqode/qitqode-android-arm64 0.2.1 → 0.2.3
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/bun +0 -0
- package/bundle/{chunk-2hv2c8d5.js → chunk-0428v6mw.js} +1 -1
- package/bundle/{chunk-0f3ft9dh.js → chunk-05ck7acg.js} +1 -1
- package/bundle/{chunk-p5mes2sh.js → chunk-083wpv6r.js} +1 -1
- package/bundle/{chunk-j5ymkhry.js → chunk-0cnwsf8p.js} +1 -1
- package/bundle/{chunk-6y4mwmn4.js → chunk-0nbteyb0.js} +2 -2
- package/bundle/chunk-0nqf1k20.js +2 -0
- package/bundle/chunk-0ppnq3a4.js +2 -0
- package/bundle/{chunk-6kf4vw2g.js → chunk-0qd3567w.js} +1 -1
- package/bundle/{chunk-jw114bbt.js → chunk-0smnwqk6.js} +2 -2
- package/bundle/chunk-0te0vcdn.js +2 -0
- package/bundle/{chunk-sh76e256.js → chunk-0vakk88p.js} +2 -2
- package/bundle/{chunk-wp3dpt6d.js → chunk-0vxnkstz.js} +2 -2
- package/bundle/{chunk-q4fn41ex.js → chunk-0xrb12s8.js} +2 -2
- package/bundle/chunk-11h06z17.js +2 -0
- package/bundle/chunk-16w710kf.js +3 -0
- package/bundle/{chunk-6dfjtzqb.js → chunk-21rq4592.js} +2 -2
- package/bundle/{chunk-y3dfk6n5.js → chunk-24rkf2gk.js} +1 -1
- package/bundle/{chunk-rdwma0de.js → chunk-24ygjbpf.js} +2 -2
- package/bundle/chunk-262s2yz2.js +2 -0
- package/bundle/chunk-28yv4fqe.js +2 -0
- package/bundle/{chunk-3tmq81kq.js → chunk-2drzgtv3.js} +2 -2
- package/bundle/{chunk-xd3xc1vv.js → chunk-2md6sx8d.js} +1 -1
- package/bundle/{chunk-v9rg0a8g.js → chunk-313zqzc1.js} +1 -1
- package/bundle/{chunk-zfd70p01.js → chunk-32j0q58h.js} +1 -1
- package/bundle/chunk-34a52hyr.js +2 -0
- package/bundle/{chunk-86jsqc7d.js → chunk-39z96pc6.js} +3 -3
- package/bundle/{chunk-g9end129.js → chunk-3atcc483.js} +1 -1
- package/bundle/{chunk-e6wp96vm.js → chunk-3jf3jhrs.js} +1 -1
- package/bundle/{chunk-4sxg9cgr.js → chunk-3kpse7zy.js} +1 -1
- package/bundle/chunk-3n3gb3vd.js +2 -0
- package/bundle/chunk-3sq60y9f.js +2 -0
- package/bundle/{chunk-2qwmrp16.js → chunk-3vvd7j14.js} +1 -1
- package/bundle/chunk-4086z5ys.js +2 -0
- package/bundle/{chunk-rcyzqa3g.js → chunk-450fef7h.js} +2 -2
- package/bundle/{chunk-kxjrrdj0.js → chunk-45a4n21f.js} +1 -1
- package/bundle/{chunk-xny5ecn0.js → chunk-47k5jy1p.js} +2 -2
- package/bundle/{chunk-dj3525nn.js → chunk-47z3x3dp.js} +189 -228
- package/bundle/{chunk-0gab4v98.js → chunk-48r70n4s.js} +1 -1
- package/bundle/chunk-49mbnqvc.js +2 -0
- package/bundle/{chunk-yerfyz4w.js → chunk-49xhybc2.js} +1 -1
- package/bundle/{chunk-t9zbp2qw.js → chunk-4agaj51z.js} +1 -1
- package/bundle/{chunk-faa0zxey.js → chunk-4dnntf9k.js} +2 -2
- package/bundle/chunk-4fr6kae9.js +2 -0
- package/bundle/chunk-4websxrs.js +2 -0
- package/bundle/chunk-516w1nc4.js +2 -0
- package/bundle/chunk-52w60e1f.js +2 -0
- package/bundle/chunk-535nm66j.js +2 -0
- package/bundle/{chunk-1p6jjrea.js → chunk-55fcmswd.js} +2 -2
- package/bundle/{chunk-n7kqdqkh.js → chunk-55ykn8nz.js} +4 -4
- package/bundle/chunk-565855py.js +2 -0
- package/bundle/chunk-56v352f8.js +2 -0
- package/bundle/chunk-5bjtq8t2.js +2 -0
- package/bundle/{chunk-as845ya4.js → chunk-5c2438af.js} +1 -1
- package/bundle/chunk-5kpxpm8e.js +2 -0
- package/bundle/chunk-5nm5s0h2.js +2 -0
- package/bundle/{chunk-07s30fpb.js → chunk-5nrc5rhh.js} +1 -1
- package/bundle/{chunk-jwph7tpc.js → chunk-5pwv2p3s.js} +1 -1
- package/bundle/{chunk-q5abwn50.js → chunk-5pzs51sp.js} +1 -1
- package/bundle/{chunk-r0s28gnb.js → chunk-5tky3csh.js} +1 -1
- package/bundle/{chunk-yajd975f.js → chunk-5w76kdjr.js} +1 -1
- package/bundle/{chunk-wcqfr8vr.js → chunk-5ysbwr4x.js} +1 -1
- package/bundle/{chunk-g5cgpvef.js → chunk-5zkj5xv9.js} +2 -2
- package/bundle/{chunk-fgn83bs7.js → chunk-65bmsp2t.js} +1 -1
- package/bundle/chunk-65t9b9eq.js +3 -0
- package/bundle/{chunk-9jrxrjzt.js → chunk-68v3b6ns.js} +2 -2
- package/bundle/{chunk-7ntw4rrn.js → chunk-6ar91jvd.js} +1 -1
- package/bundle/{chunk-bbbh69ys.js → chunk-6evh2ke8.js} +1 -1
- package/bundle/chunk-6gpf2bjs.js +2 -0
- package/bundle/{chunk-a2dz9nqh.js → chunk-6m9jb0s9.js} +2 -2
- package/bundle/{chunk-yvjke593.js → chunk-6scf311w.js} +1 -1
- package/bundle/{chunk-jjjs8p0t.js → chunk-6tstcwxp.js} +2 -2
- package/bundle/{chunk-5wwd40t3.js → chunk-70q8qcb2.js} +1 -1
- package/bundle/{chunk-pfkm3j8g.js → chunk-73r8bjjz.js} +2 -2
- package/bundle/{chunk-bzs2ep7s.js → chunk-78pt314g.js} +1 -1
- package/bundle/{chunk-hs3vfhar.js → chunk-7bcm7gg1.js} +1 -1
- package/bundle/chunk-7bgzcpdw.js +2 -0
- package/bundle/{chunk-ezfzb8qc.js → chunk-7g66qc1v.js} +2 -2
- package/bundle/{chunk-fd7fmvyw.js → chunk-7hvf9dgx.js} +1 -1
- package/bundle/chunk-7kjvcbwa.js +2 -0
- package/bundle/chunk-7knnz5f1.js +2 -0
- package/bundle/{chunk-6j339s7a.js → chunk-7mppvhv9.js} +2 -2
- package/bundle/{chunk-yqb6cfed.js → chunk-7vmx8bg9.js} +2 -2
- package/bundle/{chunk-7njz51r4.js → chunk-7x6yrtzn.js} +1 -1
- package/bundle/{chunk-skv9ww0s.js → chunk-804vmbcd.js} +1 -1
- package/bundle/{chunk-qeg0jnxq.js → chunk-88q0mtgp.js} +2 -2
- package/bundle/chunk-8jma2btf.js +2 -0
- package/bundle/{chunk-jgtcfw96.js → chunk-8mm92zn2.js} +2 -2
- package/bundle/{chunk-kdcnder5.js → chunk-8wwdrwf2.js} +1 -1
- package/bundle/{chunk-4fk46ngj.js → chunk-920z7g7j.js} +1 -1
- package/bundle/chunk-93e0w75z.js +2 -0
- package/bundle/{chunk-pzefsndd.js → chunk-953pqp3w.js} +1 -1
- package/bundle/chunk-96wwns35.js +2 -0
- package/bundle/chunk-97gp818s.js +2 -0
- package/bundle/chunk-9epf2zbh.js +2 -0
- package/bundle/chunk-9fyz4sxa.js +2 -0
- package/bundle/{chunk-4hd3v58j.js → chunk-9hz56z6a.js} +1 -1
- package/bundle/{chunk-rk2bk4s7.js → chunk-9zm6r55d.js} +2 -2
- package/bundle/chunk-a7wmadf1.js +2 -0
- package/bundle/{chunk-w7em72p8.js → chunk-ac7482n2.js} +2 -2
- package/bundle/chunk-agv04nt7.js +2 -0
- package/bundle/{chunk-cbmwhvxw.js → chunk-at22twxx.js} +2 -2
- package/bundle/{chunk-ahyqfbmq.js → chunk-avefgbjg.js} +2 -2
- package/bundle/chunk-azpnrnv9.js +8251 -0
- package/bundle/{chunk-z2h1gxyx.js → chunk-bbng1cea.js} +1 -1
- package/bundle/{chunk-5az84brc.js → chunk-bd21p9zz.js} +2 -2
- package/bundle/chunk-be7smmar.js +2 -0
- package/bundle/{chunk-y4e7e42x.js → chunk-bne5w117.js} +4 -4
- package/bundle/{chunk-j3jqk62r.js → chunk-bqn6bqws.js} +1 -1
- package/bundle/{chunk-f4zfk5ye.js → chunk-brws2aht.js} +1 -1
- package/bundle/chunk-bryx5cx9.js +2 -0
- package/bundle/{chunk-9eg2ytjd.js → chunk-bvf2dcq4.js} +3 -3
- package/bundle/{chunk-tge53d52.js → chunk-bwbqkfv0.js} +1 -1
- package/bundle/chunk-c13rrw41.js +2 -0
- package/bundle/chunk-c2kkv619.js +2 -0
- package/bundle/{chunk-64c8q9zg.js → chunk-c36p881g.js} +3 -3
- package/bundle/chunk-c5xj1y5v.js +2 -0
- package/bundle/chunk-c74cxhjb.js +2 -0
- package/bundle/chunk-cejyed1j.js +2 -0
- package/bundle/chunk-ckpm4dvv.js +2 -0
- package/bundle/{chunk-732yr6qq.js → chunk-cmb62jkt.js} +2 -2
- package/bundle/chunk-ct8twng1.js +2 -0
- package/bundle/{chunk-1q1cddy4.js → chunk-cz5vta94.js} +1 -1
- package/bundle/{chunk-fpm2vgz6.js → chunk-d0x5pbkm.js} +1 -1
- package/bundle/chunk-d38y7bvh.js +2 -0
- package/bundle/chunk-d6hxsfm6.js +2 -0
- package/bundle/{chunk-29zm623f.js → chunk-d6jhs818.js} +2 -2
- package/bundle/chunk-descb9jz.js +2 -0
- package/bundle/{chunk-mswx4k75.js → chunk-dnnkq5y4.js} +2 -2
- package/bundle/{chunk-6pcmv8vs.js → chunk-dnsh1v42.js} +2 -2
- package/bundle/{chunk-f7rj6fck.js → chunk-dqp4nmxs.js} +1 -1
- package/bundle/chunk-dvr2b9r1.js +2 -0
- package/bundle/{chunk-s0ty36qg.js → chunk-dxdggn90.js} +1 -1
- package/bundle/{chunk-vjx0064q.js → chunk-e8p92vz4.js} +2 -2
- package/bundle/chunk-ea5fktnn.js +2 -0
- package/bundle/{chunk-t1jgx17a.js → chunk-eg3syjtv.js} +2 -2
- package/bundle/{chunk-2a9rzgk6.js → chunk-ehb4hd9c.js} +1 -1
- package/bundle/{chunk-9jsgs71h.js → chunk-ejqzcdcx.js} +1 -1
- package/bundle/chunk-enmsp09e.js +3 -0
- package/bundle/chunk-epgcsjfp.js +2 -0
- package/bundle/{chunk-5t0w9ecw.js → chunk-et3804wr.js} +1 -1
- package/bundle/{chunk-yd8bzhv6.js → chunk-ezrqhqkp.js} +1 -1
- package/bundle/chunk-f0t7rryn.js +3 -0
- package/bundle/{chunk-p635phfw.js → chunk-f31yvp20.js} +1 -1
- package/bundle/chunk-f4mf6tpp.js +2 -0
- package/bundle/chunk-f97k17t8.js +2 -0
- package/bundle/{chunk-yx1h0b5v.js → chunk-faee8zgc.js} +1 -1
- package/bundle/{chunk-p9mj4zyk.js → chunk-ff548b0j.js} +2 -2
- package/bundle/{chunk-bgng3rdj.js → chunk-fhqfqd5v.js} +2 -2
- package/bundle/{chunk-zek5c15t.js → chunk-fjbv3jht.js} +1 -1
- package/bundle/{chunk-hpa7e9va.js → chunk-fsahzvd5.js} +3 -3
- package/bundle/chunk-g06a4chw.js +2 -0
- package/bundle/{chunk-hq9bgnqb.js → chunk-g22e4gw7.js} +1 -1
- package/bundle/{chunk-s0ptrw0z.js → chunk-g3wvtyw3.js} +1 -1
- package/bundle/{chunk-x4pdpka8.js → chunk-g42krp0z.js} +1 -1
- package/bundle/chunk-g4ehhdzp.js +2 -0
- package/bundle/{chunk-a9y27zd2.js → chunk-gbkz04ke.js} +1 -1
- package/bundle/chunk-gd6qpdjw.js +2 -0
- package/bundle/chunk-gehn9fd9.js +2 -0
- package/bundle/{chunk-0zxwjsvz.js → chunk-ggxzf22k.js} +1 -1
- package/bundle/{chunk-kzvvvj79.js → chunk-gszvgz76.js} +2 -2
- package/bundle/{chunk-g3kd4957.js → chunk-gy21fw82.js} +2 -2
- package/bundle/{chunk-cbf1y12x.js → chunk-h62chdmw.js} +1 -1
- package/bundle/{chunk-knh01n2r.js → chunk-h823m51m.js} +2 -2
- package/bundle/{chunk-zqkv8796.js → chunk-h99tj1e4.js} +1 -1
- package/bundle/{chunk-c1g8n10t.js → chunk-ha1w0xzh.js} +1 -1
- package/bundle/chunk-ha8b2n4x.js +2 -0
- package/bundle/{chunk-rpfhgncs.js → chunk-has2rz35.js} +1 -1
- package/bundle/chunk-hbyrwmne.js +2 -0
- package/bundle/chunk-hhax4mxw.js +2 -0
- package/bundle/{chunk-087tnr8a.js → chunk-hwrrrbqd.js} +1 -1
- package/bundle/chunk-hzrxmdqm.js +2 -0
- package/bundle/{chunk-yd2emszh.js → chunk-j0bwa5dk.js} +2 -2
- package/bundle/{chunk-9b4aqcde.js → chunk-j164q40b.js} +2 -2
- package/bundle/{chunk-qhnpq5gb.js → chunk-j8fcfhr2.js} +2 -2
- package/bundle/{chunk-9ea1n338.js → chunk-j9h1sp4g.js} +2 -2
- package/bundle/{chunk-yrfq22a5.js → chunk-jg1ccs3j.js} +1 -1
- package/bundle/{chunk-d307vb2d.js → chunk-jqk3v8d6.js} +1 -1
- package/bundle/chunk-jrwnz64e.js +3 -0
- package/bundle/chunk-jvkzdap1.js +2 -0
- package/bundle/chunk-jvybgsz5.js +5 -0
- package/bundle/{chunk-pp9neaaz.js → chunk-jww55nk9.js} +1 -1
- package/bundle/{chunk-fvy24yhq.js → chunk-k1nh5sd2.js} +1 -1
- package/bundle/{chunk-wfggztm4.js → chunk-k4gsktts.js} +1 -1
- package/bundle/{chunk-qaz100ht.js → chunk-k5q9px67.js} +1 -1
- package/bundle/chunk-kg8fcv91.js +2 -0
- package/bundle/chunk-kgptyf7n.js +3 -0
- package/bundle/{chunk-b50t4jc5.js → chunk-khzzmyk2.js} +1 -1
- package/bundle/chunk-kjjjrjnb.js +2 -0
- package/bundle/{chunk-jvjq554f.js → chunk-ksme3gj1.js} +1 -1
- package/bundle/chunk-m5cfmhwh.js +2 -0
- package/bundle/{chunk-4v61ysex.js → chunk-m5dm7a1t.js} +1 -1
- package/bundle/{chunk-yr35q7q1.js → chunk-m7ganre7.js} +1 -1
- package/bundle/chunk-m7qxxbns.js +2 -0
- package/bundle/{chunk-y287zwkr.js → chunk-mh19kwzw.js} +1 -1
- package/bundle/{chunk-7my2231h.js → chunk-mhhtf0v3.js} +1 -1
- package/bundle/{chunk-grw4gg9j.js → chunk-mjjaezwq.js} +2 -2
- package/bundle/{chunk-03mbn7nj.js → chunk-mmjgf680.js} +2 -2
- package/bundle/{chunk-jv4th87b.js → chunk-mn9end71.js} +1 -1
- package/bundle/{chunk-dknemkw2.js → chunk-msdypt5f.js} +2 -2
- package/bundle/chunk-n0b0dfqk.js +2 -0
- package/bundle/{chunk-3h49k2ck.js → chunk-n23d0q00.js} +1 -1
- package/bundle/{chunk-mpe8zxc0.js → chunk-n78f8hfk.js} +1 -1
- package/bundle/chunk-n8wg5h5p.js +2 -0
- package/bundle/chunk-nbd13scz.js +28 -0
- package/bundle/{chunk-r2qns6yc.js → chunk-nftgx6bz.js} +1 -1
- package/bundle/{chunk-gr4bctqj.js → chunk-nj1ntakd.js} +2 -2
- package/bundle/{chunk-wdaf713t.js → chunk-nrat6ncm.js} +1 -1
- package/bundle/{chunk-rm5ntsvn.js → chunk-nty5z2cj.js} +1 -1
- package/bundle/chunk-nvwzam7a.js +2 -0
- package/bundle/{chunk-rp8asmq7.js → chunk-p169ee92.js} +1 -1
- package/bundle/chunk-p27a88vp.js +7 -0
- package/bundle/{chunk-xjpvv3vp.js → chunk-p3rd2q47.js} +2 -2
- package/bundle/{chunk-fbm6qczy.js → chunk-p4027t94.js} +1 -1
- package/bundle/{chunk-94qhpkfx.js → chunk-p54bzjtv.js} +1 -1
- package/bundle/{chunk-cp39f96a.js → chunk-p5be5ddp.js} +1 -1
- package/bundle/{chunk-ngvp6zc2.js → chunk-p6crzjtf.js} +2 -2
- package/bundle/chunk-p6hcj3kv.js +2 -0
- package/bundle/{chunk-p4ewy9xh.js → chunk-pb30kkbs.js} +6 -6
- package/bundle/chunk-pexmns0j.js +2 -0
- package/bundle/{chunk-my3cswnp.js → chunk-ph8hn1wt.js} +2 -2
- package/bundle/{chunk-99148b1k.js → chunk-pmg53fdd.js} +1 -1
- package/bundle/{chunk-wf4x5cjc.js → chunk-pr7z5dj8.js} +1 -1
- package/bundle/chunk-pt603np4.js +2 -0
- package/bundle/{chunk-4mvg7jt1.js → chunk-ptqk1j2r.js} +1 -1
- package/bundle/{chunk-a92hh67a.js → chunk-pxm4qvqk.js} +2 -2
- package/bundle/{chunk-3qfpw8f6.js → chunk-qey1efpx.js} +1 -1
- package/bundle/chunk-qk5bfcv8.js +2 -0
- package/bundle/{chunk-mx3jd1p9.js → chunk-qktzz0sy.js} +1 -1
- package/bundle/{chunk-ks1cs80p.js → chunk-qnvsqnz5.js} +2 -2
- package/bundle/{chunk-bcx2vkv4.js → chunk-qp1n7kwe.js} +1 -1
- package/bundle/{chunk-xnhvt98g.js → chunk-qqrc1h5b.js} +2 -2
- package/bundle/{chunk-q148vndn.js → chunk-qqxrvyx0.js} +2 -2
- package/bundle/chunk-qr06byhp.js +2 -0
- package/bundle/{chunk-qg9bt0kx.js → chunk-qrxqfp59.js} +2 -2
- package/bundle/{chunk-gtjn3yc4.js → chunk-qxcyz5hc.js} +2 -2
- package/bundle/{chunk-kc1xmcc9.js → chunk-qznr1emx.js} +41 -39
- package/bundle/{chunk-0z1cxvk1.js → chunk-r5zy4za0.js} +2 -2
- package/bundle/chunk-r7sq3maz.js +2 -0
- package/bundle/{chunk-f83wv08n.js → chunk-r9w0thdk.js} +1 -1
- package/bundle/chunk-rmgs9nmj.js +2 -0
- package/bundle/{chunk-p887g1xj.js → chunk-rn83r0js.js} +1 -1
- package/bundle/{chunk-7myg8076.js → chunk-rp9r3cvt.js} +2 -2
- package/bundle/{chunk-n90eh3e7.js → chunk-rrv0n73b.js} +1 -1
- package/bundle/chunk-rscfes01.js +2 -0
- package/bundle/chunk-rytavefg.js +2 -0
- package/bundle/{chunk-ztn2jv26.js → chunk-s2gg38y0.js} +1 -1
- package/bundle/{chunk-yz0pwv2m.js → chunk-s4vx9x1v.js} +1 -1
- package/bundle/{chunk-x2cavpa9.js → chunk-sfw5qddj.js} +1 -1
- package/bundle/chunk-sh9vjnsh.js +2 -0
- package/bundle/{chunk-6avjq7my.js → chunk-smznrv7k.js} +1 -1
- package/bundle/chunk-snbw69t6.js +2 -0
- package/bundle/chunk-st0c5wwc.js +2 -0
- package/bundle/{chunk-vqss3e48.js → chunk-t0761rhq.js} +2 -2
- package/bundle/{chunk-vqpfpmha.js → chunk-t239rvej.js} +2 -2
- package/bundle/{chunk-bggybm9k.js → chunk-t8c4cs6z.js} +1 -1
- package/bundle/chunk-tdyvps17.js +35 -0
- package/bundle/chunk-teb3k2sf.js +2 -0
- package/bundle/{chunk-ve3np791.js → chunk-tg226j37.js} +1 -1
- package/bundle/{chunk-73fz0cf4.js → chunk-tkrwcjkr.js} +2 -2
- package/bundle/{chunk-v5z6sx6j.js → chunk-tm34qp8j.js} +1 -1
- package/bundle/chunk-tr6rdr6h.js +4 -0
- package/bundle/chunk-ts798jvf.js +2 -0
- package/bundle/chunk-tx5aj02v.js +2 -0
- package/bundle/{chunk-3aq70t26.js → chunk-tza09w2q.js} +1 -1
- package/bundle/chunk-v1t51rrq.js +2 -0
- package/bundle/{chunk-q9ft590w.js → chunk-v6h3nes1.js} +2 -2
- package/bundle/{chunk-e586sjb0.js → chunk-vcygx6hs.js} +2 -2
- package/bundle/{chunk-hmznf0ax.js → chunk-vdxar0ct.js} +1 -1
- package/bundle/{chunk-86yk21g4.js → chunk-venprxdp.js} +1 -1
- package/bundle/{chunk-ywkvq7zb.js → chunk-vf492zs6.js} +1 -1
- package/bundle/chunk-vh9ptqn0.js +2 -0
- package/bundle/{chunk-w79jzf8w.js → chunk-vnrjk2be.js} +1 -1
- package/bundle/{chunk-8q5ns61h.js → chunk-vshycswk.js} +1 -1
- package/bundle/{chunk-8e6gx3gg.js → chunk-vsz4s6zt.js} +1 -1
- package/bundle/{chunk-vhe92p7a.js → chunk-vygkwwjd.js} +2 -2
- package/bundle/{chunk-9rxyq6f9.js → chunk-w46g7kdq.js} +2 -2
- package/bundle/{chunk-q128vfc6.js → chunk-w4brava0.js} +1 -1
- package/bundle/{chunk-drwqag0f.js → chunk-w4synhfg.js} +1 -1
- package/bundle/chunk-w72rctxz.js +2 -0
- package/bundle/{chunk-mxhb5adq.js → chunk-w9gzfsy7.js} +2 -2
- package/bundle/chunk-wbw9zv3h.js +2 -0
- package/bundle/chunk-wg55bwqh.js +8 -0
- package/bundle/{chunk-1sfcxdbw.js → chunk-wkg3c643.js} +2 -2
- package/bundle/{chunk-2bgqy6z7.js → chunk-wwdpw27v.js} +1 -1
- package/bundle/{chunk-km1n4ttr.js → chunk-wy3a4cab.js} +1 -1
- package/bundle/{chunk-tczbhj0e.js → chunk-wyj8cpx5.js} +1 -1
- package/bundle/chunk-x6mw98c2.js +2 -0
- package/bundle/chunk-x9ptmxt7.js +2 -0
- package/bundle/{chunk-8rh0femq.js → chunk-xdd3553a.js} +1 -1
- package/bundle/{chunk-2jpmxt4v.js → chunk-xdteq9bd.js} +1 -1
- package/bundle/{chunk-9y15zjxa.js → chunk-xe69cnsk.js} +1 -1
- package/bundle/{chunk-qkh8697x.js → chunk-xq2kcar4.js} +2 -2
- package/bundle/{chunk-bk3z400e.js → chunk-y0527cg0.js} +1 -1
- package/bundle/{chunk-hrw5rmj1.js → chunk-y29ejqg2.js} +1 -1
- package/bundle/{chunk-42r7z6sq.js → chunk-y67kaj0b.js} +1 -1
- package/bundle/chunk-y6p57wgh.js +2 -0
- package/bundle/chunk-y6xs8v17.js +2 -0
- package/bundle/{chunk-zdzxsyxs.js → chunk-y7hgevfv.js} +2 -2
- package/bundle/{chunk-k1gddnkm.js → chunk-ybane1en.js} +1 -1
- package/bundle/{chunk-k6cbfrzc.js → chunk-yhj01dz9.js} +2 -2
- package/bundle/{chunk-2xqqkf86.js → chunk-ypdt9mmr.js} +2 -2
- package/bundle/chunk-yvn8dmah.js +2 -0
- package/bundle/{chunk-vm1ek7yf.js → chunk-yz25607t.js} +1 -1
- package/bundle/{chunk-ypcc3cnb.js → chunk-z1932c3f.js} +1 -1
- package/bundle/chunk-z3xsfpc6.js +2 -0
- package/bundle/chunk-z4kjxtjq.js +2 -0
- package/bundle/{chunk-6ypafpg8.js → chunk-z6sbjvtv.js} +1 -1
- package/bundle/chunk-z8mj4z6e.js +2 -0
- package/bundle/{chunk-ta7mfkms.js → chunk-zc0cdvcv.js} +2 -2
- package/bundle/chunk-zgv1e250.js +2 -0
- package/bundle/chunk-zn5pw733.js +2 -0
- package/bundle/{chunk-qf1dqzra.js → chunk-ztyy3ga3.js} +2 -2
- package/bundle/chunk-zxwvnmea.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/qffi-compat.so +0 -0
- package/bundle/qffi.node +0 -0
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-073ydjmk.js +0 -2
- package/bundle/chunk-0xrr0k94.js +0 -2
- package/bundle/chunk-0yagj4ss.js +0 -2
- package/bundle/chunk-0ych0f5w.js +0 -2
- package/bundle/chunk-22hr3ndh.js +0 -2
- package/bundle/chunk-23tyxyyj.js +0 -2
- package/bundle/chunk-28g1ndpx.js +0 -2
- package/bundle/chunk-29v1v357.js +0 -2
- package/bundle/chunk-2avxtbv3.js +0 -2
- package/bundle/chunk-2qk0k2eb.js +0 -2
- package/bundle/chunk-3kn57y8d.js +0 -619
- package/bundle/chunk-3ktj87g4.js +0 -2
- package/bundle/chunk-3wxvpvg4.js +0 -3
- package/bundle/chunk-42wdfks8.js +0 -2
- package/bundle/chunk-4f19vqxf.js +0 -2
- package/bundle/chunk-4jq25vbc.js +0 -2
- package/bundle/chunk-4m3k1atq.js +0 -2
- package/bundle/chunk-4n2ytddp.js +0 -2
- package/bundle/chunk-4yg42p6y.js +0 -2
- package/bundle/chunk-4zx3ze68.js +0 -2
- package/bundle/chunk-57xbwzdn.js +0 -3
- package/bundle/chunk-637sjdzq.js +0 -2
- package/bundle/chunk-6bghztra.js +0 -2
- package/bundle/chunk-6h8f89tt.js +0 -2
- package/bundle/chunk-6sjj203r.js +0 -2
- package/bundle/chunk-79aka9xe.js +0 -2
- package/bundle/chunk-7nqdhe7x.js +0 -2
- package/bundle/chunk-7rhry8nv.js +0 -2
- package/bundle/chunk-7x88b2n2.js +0 -2
- package/bundle/chunk-7zvawpe1.js +0 -7
- package/bundle/chunk-8mthftwc.js +0 -2
- package/bundle/chunk-8wdara3b.js +0 -2
- package/bundle/chunk-8xhzpnph.js +0 -2
- package/bundle/chunk-9akz8w0d.js +0 -2
- package/bundle/chunk-9etpppyv.js +0 -3
- package/bundle/chunk-9nn4jpb7.js +0 -2
- package/bundle/chunk-9tk4wsn4.js +0 -2
- package/bundle/chunk-a0rjp24v.js +0 -2
- package/bundle/chunk-a7p0x4sw.js +0 -2
- package/bundle/chunk-ae0a496j.js +0 -2
- package/bundle/chunk-aq1j9y18.js +0 -2
- package/bundle/chunk-aq8nz9hp.js +0 -2
- package/bundle/chunk-b4zy78be.js +0 -2
- package/bundle/chunk-basjzwqp.js +0 -2
- package/bundle/chunk-bhetpmgq.js +0 -3
- package/bundle/chunk-bm7xpjh6.js +0 -2
- package/bundle/chunk-c2k556rk.js +0 -2
- package/bundle/chunk-d41mg7at.js +0 -2
- package/bundle/chunk-d50kpss6.js +0 -2
- package/bundle/chunk-day0rb5p.js +0 -2
- package/bundle/chunk-dp7cww4v.js +0 -2
- package/bundle/chunk-e89zjjmj.js +0 -2
- package/bundle/chunk-egae7vvg.js +0 -2
- package/bundle/chunk-erdjd9w3.js +0 -2
- package/bundle/chunk-ex93y6dw.js +0 -2
- package/bundle/chunk-eyr0vf92.js +0 -2
- package/bundle/chunk-f1bcz9yz.js +0 -2
- package/bundle/chunk-fghqr4x8.js +0 -8
- package/bundle/chunk-fvkwcx35.js +0 -2
- package/bundle/chunk-fymt1rym.js +0 -5
- package/bundle/chunk-gbmmbhy4.js +0 -2
- package/bundle/chunk-gp877cq5.js +0 -2
- package/bundle/chunk-hk8vvc10.js +0 -2
- package/bundle/chunk-hwavzxdm.js +0 -2
- package/bundle/chunk-hwnc2sa5.js +0 -2
- package/bundle/chunk-j2gvpa15.js +0 -2
- package/bundle/chunk-j7n8khk7.js +0 -2
- package/bundle/chunk-jkh98wby.js +0 -2
- package/bundle/chunk-k5a652s4.js +0 -2
- package/bundle/chunk-k6w32q2p.js +0 -2
- package/bundle/chunk-ke5rqv5b.js +0 -2
- package/bundle/chunk-kghwk0yh.js +0 -2
- package/bundle/chunk-mgadsp7r.js +0 -2
- package/bundle/chunk-mk2s9py8.js +0 -2
- package/bundle/chunk-mxf9p0p9.js +0 -2
- package/bundle/chunk-n0k0pp4k.js +0 -2
- package/bundle/chunk-n393nnh5.js +0 -2
- package/bundle/chunk-n5vyed7w.js +0 -2
- package/bundle/chunk-nb86kh94.js +0 -7612
- package/bundle/chunk-nh044sjn.js +0 -2
- package/bundle/chunk-nm6wnne9.js +0 -3
- package/bundle/chunk-pasm65wq.js +0 -2
- package/bundle/chunk-pfh34atn.js +0 -2
- package/bundle/chunk-phpmxjf8.js +0 -2
- package/bundle/chunk-qvzvxsjw.js +0 -2
- package/bundle/chunk-qzszrd0s.js +0 -2
- package/bundle/chunk-rnq5ezrt.js +0 -2
- package/bundle/chunk-s7yza695.js +0 -2
- package/bundle/chunk-s99cvvc9.js +0 -2
- package/bundle/chunk-skpkjnyy.js +0 -2
- package/bundle/chunk-snt4kwab.js +0 -2
- package/bundle/chunk-sq47t8f1.js +0 -2
- package/bundle/chunk-sqhgnvvs.js +0 -2
- package/bundle/chunk-t114r59h.js +0 -2
- package/bundle/chunk-t1f56k0j.js +0 -2
- package/bundle/chunk-t69jx6fz.js +0 -2
- package/bundle/chunk-tce12v85.js +0 -3
- package/bundle/chunk-tq1dqhes.js +0 -2
- package/bundle/chunk-tsb3jsx4.js +0 -2
- package/bundle/chunk-ttpbpzbh.js +0 -2
- package/bundle/chunk-v667egp5.js +0 -2
- package/bundle/chunk-v7mg632n.js +0 -3
- package/bundle/chunk-x3afqfww.js +0 -4
- package/bundle/chunk-xwgc2pw7.js +0 -28
- package/bundle/chunk-xxrtr6sd.js +0 -2
- package/bundle/chunk-y8eggnrr.js +0 -2
- package/bundle/chunk-yck5h49c.js +0 -2
- package/bundle/chunk-yg0pfngv.js +0 -2
- package/bundle/chunk-yxeja9kg.js +0 -2
package/bundle/chunk-nh044sjn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fd as m,Id as P,Jd as R,Kd as k,Ld as O,Nd as q,Od as $,Pd as I}from"./chunk-p9mj4zyk.js";import"./chunk-ta7mfkms.js";import{Rd as h}from"./chunk-yajd975f.js";import{Uf as r}from"./chunk-t1jgx17a.js";import{Zg as L}from"./chunk-3kn57y8d.js";import{Lh as E}from"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{Vj as N,il as x}from"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import{cm as i}from"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import{Dt as j,yt as C}from"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import{LO as F}from"./chunk-f83wv08n.js";import u from"path";import U from"fs/promises";var T=F(N(),1);import{EOL as S}from"os";var c=["bash","read","write","edit","glob","grep","webfetch","actor","task"],B=h({command:"create",describe:"create a new agent",builder:(o)=>o.option("path",{type:"string",describe:"directory path to generate the agent file"}).option("description",{type:"string",describe:"what the agent should do"}).option("mode",{type:"string",describe:"agent mode",choices:["all","primary","subagent"]}).option("tools",{type:"string",describe:`comma-separated list of tools to enable (default: all). Available: "${c.join(", ")}"`}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}),async handler(o){await i.provide({directory:process.cwd(),async fn(){let{path:l,description:t,mode:s,tools:p}=o,d=l&&t&&s&&p!==void 0;if(!d)r.empty(),R("Create agent");let D=i.project,g;if(l)g=u.join(l,"agent");else{let e="global";if(D.vcs==="git"){let n=await $({message:"Location",options:[{label:"Current project",value:"project",hint:i.worktree},{label:"Global",value:"global",hint:j.Path.config}]});if(m(n))throw new r.CancelledError;e=n}g=u.join(e==="global"?j.Path.config:u.join(i.worktree,".qitqode"),"agent")}let b;if(t)b=t;else{let e=await I({message:"Description",placeholder:"What should this agent do?",validate:(n)=>n&&n.length>0?void 0:"Required"});if(m(e))throw new r.CancelledError;b=e}let w=q();w.start("Generating agent configuration...");let G=o.model?x.parseModel(o.model):void 0,f=await L.runPromise(E.Service.use((e)=>e.generate({description:b,model:G}))).catch((e)=>{if(w.stop(`LLM failed to generate agent: ${e.message}`,1),d)process.exit(1);throw new r.CancelledError});w.stop(`Agent ${f.identifier} generated`);let y;if(p!==void 0)y=p?p.split(",").map((e)=>e.trim()):c;else{let e=await O({message:"Select tools to enable (Space to toggle)",options:c.map((n)=>({label:n,value:n})),initialValues:c});if(m(e))throw new r.CancelledError;y=e}let v;if(s)v=s;else{let e=await $({message:"Agent mode",options:[{label:"All",value:"all",hint:"Can function in both primary and subagent roles"},{label:"Primary",value:"primary",hint:"Acts as a primary/main agent"},{label:"Subagent",value:"subagent",hint:"Can be used as a subagent by other agents"}],initialValue:"all"});if(m(e))throw new r.CancelledError;v=e}let A={};for(let e of c)if(!y.includes(e))A[e]=!1;let M={description:f.whenToUse,mode:v};if(Object.keys(A).length>0)M.tools=A;let V=T.default.stringify(f.systemPrompt,M),a=u.join(g,`${f.identifier}.md`);if(await U.mkdir(g,{recursive:!0}),await C.exists(a)){if(d)console.error(`Error: Agent file already exists: ${a}`),process.exit(1);throw P.error(`Agent file already exists: ${a}`),new r.CancelledError}if(await C.write(a,V),d)console.log(a);else P.success(`Agent created: ${a}`),k("Done")}})}}),J=h({command:"list",describe:"list all available agents",async handler(){await i.provide({directory:process.cwd(),async fn(){let l=(await L.runPromise(E.Service.use((t)=>t.list()))).sort((t,s)=>{if(t.native!==s.native)return t.native?-1:1;return t.name.localeCompare(s.name)});for(let t of l)process.stdout.write(`${t.name} (${t.mode})`+S),process.stdout.write(` ${JSON.stringify(t.permission,null,2)}`+S)}})}}),ne=h({command:"agent",describe:"manage agents",builder:(o)=>o.command(B).command(J).demandCommand(),async handler(){}});export{ne as AgentCommand};
|
package/bundle/chunk-nm6wnne9.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ed as p}from"./chunk-v7mg632n.js";import{Fd as x,Gd as b,Id as w,Jd as v,Kd as c}from"./chunk-p9mj4zyk.js";import"./chunk-ta7mfkms.js";import{Rd as g}from"./chunk-yajd975f.js";import{Uf as r}from"./chunk-t1jgx17a.js";import{Zg as m}from"./chunk-3kn57y8d.js";import"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{bk as y,tl as f}from"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";import{EOL as S}from"os";function s(e,t,i){return i.trim()?`[redacted:${e}:${t}]`:i}function o(e,t,i){if(!i)return i;return Object.keys(i).length?{redacted:`${e}:${t}`}:i}function a(e,t){return{...t,value:s("file-text",e,t.value)}}function l(e,t){return t?.map((i,u)=>({...i,file:s(`${e}-file`,String(u),i.file),patch:s(`${e}-patch`,String(u),i.patch)}))}function I(e){if(!e.source)return e.source;if(e.source.type==="symbol")return{...e.source,path:s("file-path",e.id,e.source.path),name:s("file-symbol",e.id,e.source.name),text:a(e.id,e.source.text)};if(e.source.type==="resource")return{...e.source,clientName:s("file-client",e.id,e.source.clientName),uri:s("file-uri",e.id,e.source.uri),text:a(e.id,e.source.text)};return{...e.source,path:s("file-path",e.id,e.source.path),text:a(e.id,e.source.text)}}function h(e){return{...e,url:s("file-url",e.id,e.url),filename:e.filename===void 0?void 0:s("file-name",e.id,e.filename),source:I(e)}}function $(e){switch(e.type){case"text":return{...e,text:s("text",e.id,e.text),metadata:o("text-metadata",e.id,e.metadata)};case"reasoning":return{...e,text:s("reasoning",e.id,e.text),metadata:o("reasoning-metadata",e.id,e.metadata)};case"file":return h(e);case"subtask":return{...e,prompt:s("subtask-prompt",e.id,e.prompt),description:s("subtask-description",e.id,e.description),command:e.command===void 0?void 0:s("subtask-command",e.id,e.command)};case"tool":return{...e,metadata:o("tool-metadata",e.id,e.metadata),state:e.state.status==="pending"?{...e.state,input:o("tool-input",e.id,e.state.input)??e.state.input,raw:s("tool-raw",e.id,e.state.raw)}:e.state.status==="running"?{...e.state,input:o("tool-input",e.id,e.state.input)??e.state.input,title:e.state.title===void 0?void 0:s("tool-title",e.id,e.state.title),metadata:o("tool-state-metadata",e.id,e.state.metadata)}:e.state.status==="completed"?{...e.state,input:o("tool-input",e.id,e.state.input)??e.state.input,output:s("tool-output",e.id,e.state.output),title:s("tool-title",e.id,e.state.title),metadata:o("tool-state-metadata",e.id,e.state.metadata)??e.state.metadata,attachments:e.state.attachments?.map(h)}:{...e.state,input:o("tool-input",e.id,e.state.input)??e.state.input,metadata:o("tool-state-metadata",e.id,e.state.metadata)}};case"patch":return{...e,hash:s("patch",e.id,e.hash),files:e.files.map((t,i)=>s("patch-file",`${e.id}-${i}`,t))};case"snapshot":return{...e,snapshot:s("snapshot",e.id,e.snapshot)};case"step-start":return{...e,snapshot:e.snapshot===void 0?void 0:s("snapshot",e.id,e.snapshot)};case"step-finish":return{...e,snapshot:e.snapshot===void 0?void 0:s("snapshot",e.id,e.snapshot)};case"agent":return{...e,source:!e.source?e.source:{...e.source,value:s("agent-source",e.id,e.source.value)}};default:return e}}var D=$;function P(e){return{info:{...e.info,title:s("session-title",e.info.id,e.info.title),directory:s("session-directory",e.info.id,e.info.directory),summary:!e.info.summary?e.info.summary:{...e.info.summary,diffs:l("session-diff",e.info.summary.diffs)},revert:!e.info.revert?e.info.revert:{...e.info.revert,snapshot:e.info.revert.snapshot===void 0?void 0:s("revert-snapshot",e.info.id,e.info.revert.snapshot),diff:e.info.revert.diff===void 0?void 0:s("revert-diff",e.info.id,e.info.revert.diff)}},messages:e.messages.map((t)=>({info:t.info.role==="user"?{...t.info,system:t.info.system===void 0?void 0:s("system",t.info.id,t.info.system),summary:!t.info.summary?t.info.summary:{...t.info.summary,title:t.info.summary.title===void 0?void 0:s("summary-title",t.info.id,t.info.summary.title),body:t.info.summary.body===void 0?void 0:s("summary-body",t.info.id,t.info.summary.body),diffs:l("message-diff",t.info.summary.diffs)}}:{...t.info,path:{cwd:s("cwd",t.info.id,t.info.path.cwd),root:s("root",t.info.id,t.info.path.root)}},parts:t.parts.map(D)}))}}var A=g({command:"export [sessionID]",describe:"export session data as JSON",builder:(e)=>{return e.positional("sessionID",{describe:"session id to export",type:"string"}).option("sanitize",{describe:"redact sensitive transcript and file data",type:"boolean"})},handler:async(e)=>{await p(process.cwd(),async()=>{let t=e.sessionID?y.make(e.sessionID):void 0;if(process.stderr.write(`Exporting session: ${t??"latest"}
|
|
3
|
-
`),!t){r.empty(),v("Export session",{output:process.stderr});let i=[];for await(let n of f.list())i.push(n);if(i.length===0){w.error("No sessions found",{output:process.stderr}),c("Done",{output:process.stderr});return}i.sort((n,d)=>d.time.updated-n.time.updated);let u=await b({message:"Select session to export",maxItems:10,options:i.map((n)=>({label:n.title,value:n.id,hint:`${new Date(n.time.updated).toLocaleString()} \u2022 ${n.id.slice(-8)}`})),output:process.stderr});if(x(u))throw new r.CancelledError;t=u,c("Exporting session...",{output:process.stderr})}try{let i=await m.runPromise(f.Service.use((d)=>d.get(t))),u=await m.runPromise(f.Service.use((d)=>d.messages({sessionID:i.id,agentID:"*"}))),n={info:i,messages:u};process.stdout.write(JSON.stringify(e.sanitize?P(n):n,null,2)),process.stdout.write(S)}catch{r.error(`Session not found: ${t}`),process.exit(1)}})}});export{A as ExportCommand};
|
package/bundle/chunk-pasm65wq.js
DELETED
package/bundle/chunk-pfh34atn.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{h as _}from"./chunk-zqkv8796.js";import{F as W,G as Y,H as G}from"./chunk-mx3jd1p9.js";import{Rd as X}from"./chunk-yajd975f.js";import{Uf as j}from"./chunk-t1jgx17a.js";import{tg as O}from"./chunk-dknemkw2.js";import{Zg as v}from"./chunk-3kn57y8d.js";import"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{Oj as H}from"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import{So as F,xo as K}from"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import{xH as z}from"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var Q="forgewise";function R(D){return z.gen(function*(){let M=yield*D.get(Q);if(!M||M.type!=="api")return;return(M.metadata??{}).sub})}var w=()=>z.gen(function*(){if((yield*_())==="revoked")return null;let D=yield*z.promise(()=>K());if(!D)return yield*z.sync(()=>j.println(j.Style.TEXT_DANGER+"Not signed in to Forgewise. Run `qitqode auth login` first."+j.Style.TEXT_NORMAL)),null;let M=yield*H.Service,T=D.method==="sso"?yield*R(M):void 0;return{key:D.key,method:D.method,sub:T}}),b=()=>z.gen(function*(){let D=yield*w();if(!D)return;let M=yield*z.tryPromise({try:()=>O(D),catch:(P)=>P}).pipe(z.map((P)=>({ok:!0,result:P})),z.catch((P)=>z.succeed({ok:!1,error:P})));if(!M.ok){let P=M.error instanceof F?M.error.message:"Could not fetch balance.";yield*z.sync(()=>j.println(j.Style.TEXT_DANGER+P+j.Style.TEXT_NORMAL));return}let T=M.result;if(!T){yield*z.sync(()=>j.println(j.Style.TEXT_DANGER+"Could not fetch balance."+j.Style.TEXT_NORMAL));return}yield*z.sync(()=>j.println(j.Style.TEXT_SUCCESS+"Qredits balance: "+j.Style.TEXT_NORMAL+j.Style.TEXT_HIGHLIGHT_BOLD+G(T.balance)+j.Style.TEXT_NORMAL))}).pipe(z.withSpan("qredits.balance")),q=()=>z.gen(function*(){let D=yield*w();if(!D)return;let M=D.method==="sso"&&D.sub?{userId:D.sub,accessToken:D.key}:{},T=yield*z.tryPromise({try:()=>Y({...M,limit:20}),catch:(J)=>J}).pipe(z.map((J)=>({ok:!0,result:J})),z.catch((J)=>z.succeed({ok:!1,error:J})));if(!T.ok){let J=T.error,$=J instanceof F?J.message+"\nPer-session spend is available with `qitqode usage`.":J instanceof W?J.message:String(J);yield*z.sync(()=>j.println(j.Style.TEXT_DANGER+"Could not fetch history: "+$+j.Style.TEXT_NORMAL));return}let P=T.result;if(P.length===0){yield*z.sync(()=>j.println("No spend history yet."));return}let Z=j.Style.TEXT_DIM,V=j.Style.TEXT_NORMAL,x=j.Style.TEXT_DANGER;yield*z.sync(()=>{j.println(Z+" Date Description Amount"+V),j.println(Z+" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 \u2500\u2500\u2500\u2500\u2500\u2500"+V);for(let J of P){let $=(J.date||"").slice(0,10).padEnd(18),L=(J.description||"").slice(0,32).padEnd(32),N=(J.amount<0?"-":" ")+G(Math.abs(J.amount)),B=J.amount<0?x:V;j.println(` ${Z}${$}${V} ${L} ${B}${N}${V}`)}})}).pipe(z.withSpan("qredits.history")),m=X({command:"qredits <command>",describe:"Check Qredits balance and spend history",builder:(D)=>D.command(X({command:"balance",describe:"Show current Qredits balance",builder:(M)=>M,async handler(){j.empty(),await v.runPromise(b())}})).command(X({command:"history",describe:"Show recent Qredit spend history",builder:(M)=>M,async handler(){j.empty(),await v.runPromise(q())}})).demandCommand(),async handler(){}});export{q as historyEffect,b as balanceEffect,m as QreditsCommand};
|
package/bundle/chunk-phpmxjf8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{go as a,ho as b,io as c,jo as d,ko as e,lo as f,mo as g,no as h,oo as i}from"./chunk-xny5ecn0.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-f83wv08n.js";export{i as gateway,h as createGatewayProvider,h as createGateway,g as GatewayResponseError,d as GatewayRateLimitError,e as GatewayModelNotFoundError,c as GatewayInvalidRequestError,f as GatewayInternalServerError,a as GatewayError,b as GatewayAuthenticationError};
|
package/bundle/chunk-qvzvxsjw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cf as l}from"./chunk-xxrtr6sd.js";import"./chunk-ywkvq7zb.js";import{xg as q}from"./chunk-bhetpmgq.js";import"./chunk-nfg7nt13.js";import"./chunk-rcyzqa3g.js";import{PO as C}from"./chunk-f83wv08n.js";function J(){return async(f,b)=>{if("_zod"in f)return l()(f,{components:b.components,options:{io:"input",...b.options}});try{let{createSchema:w}=await import("./chunk-2jpmxt4v.js"),{schema:B,components:k}=w(f,{schemaType:"input",...b.options});if(k)b.components.schemas={...b.components.schemas,...k};return B}catch{throw Error(q('Missing dependencies "zod-openapi v4".'))}}}export{J as default};
|
package/bundle/chunk-qzszrd0s.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bg as a}from"./chunk-xjpvv3vp.js";import{Og as t,Zg as c}from"./chunk-3kn57y8d.js";import"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import{Et as i}from"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var n=i.object({name:a.shape.name,branch:a.shape.branch.unwrap(),directory:a.shape.directory.unwrap()}),d={name:"Worktree",description:"Create a git worktree",async configure(e){let r=await c.runPromise(t.Service.use((o)=>o.makeWorktreeInfo()));return{...e,name:r.name,branch:r.branch,directory:r.directory}},async create(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.createFromInfo({name:r.name,directory:r.directory,branch:r.branch})))},async remove(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.remove({directory:r.directory})))},target(e){return{type:"local",directory:n.parse(e).directory}}};export{d as WorktreeAdaptor};
|
package/bundle/chunk-rnq5ezrt.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ed as n}from"./chunk-v7mg632n.js";import{Rd as i}from"./chunk-yajd975f.js";import{Zg as r}from"./chunk-3kn57y8d.js";import{$g as y,Kh as K,Lh as X,ah as w,eh as R}from"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{Ok as g,ck as V,dk as W,gk as C,il as J,ok as M,tl as Y,ul as F}from"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import{am as E,cm as u}from"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import{Xr as U}from"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import{Qs as z,Rs as B,Ss as _,Us as H}from"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import{nt as S}from"./chunk-x3afqfww.js";import{Dt as oo}from"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import{oK as x,xH as d}from"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import{QO as v,RO as P}from"./chunk-f83wv08n.js";import{EOL as to}from"os";var I=i({command:"config",describe:"show resolved configuration",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(F.Service.use((e)=>e.get()));process.stdout.write(JSON.stringify(o,null,2)+to)})}});import{EOL as b}from"os";var io=i({command:"search <query>",describe:"search files by query",builder:(o)=>o.positional("query",{type:"string",demandOption:!0,description:"Search query"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.search({query:o.query})));process.stdout.write(e.join(b)+b)})}}),ro=i({command:"read <path>",describe:"read file contents as JSON",builder:(o)=>o.positional("path",{type:"string",demandOption:!0,description:"File path to read"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.read(o.path)));process.stdout.write(JSON.stringify(e,null,2)+b)})}}),no=i({command:"status",describe:"show file status information",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(w.Service.use((e)=>e.status()));process.stdout.write(JSON.stringify(o,null,2)+b)})}}),so=i({command:"list <path>",describe:"list files in a directory",builder:(o)=>o.positional("path",{type:"string",demandOption:!0,description:"File path to list"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(w.Service.use((t)=>t.list(o.path)));process.stdout.write(JSON.stringify(e,null,2)+b)})}}),mo=i({command:"tree [dir]",describe:"show directory tree",builder:(o)=>o.positional("dir",{type:"string",description:"Directory to tree",default:process.cwd()}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.tree({cwd:o.dir,limit:200})));console.log(JSON.stringify(e,null,2))})}}),L=i({command:"file",describe:"file system debugging utilities",builder:(o)=>o.command(ro).command(no).command(so).command(io).command(mo).demandCommand(),async handler(){}});import{EOL as A}from"os";var q=i({command:"lsp",describe:"LSP debugging utilities",builder:(o)=>o.command(ao).command(co).command(lo).demandCommand(),async handler(){}}),ao=i({command:"diagnostics <file>",describe:"get diagnostics for a file",builder:(o)=>o.positional("file",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(C.Service.use((t)=>d.gen(function*(){return yield*t.touchFile(o.file,!0),yield*d.sleep(1000),yield*t.diagnostics()})));process.stdout.write(JSON.stringify(e,null,2)+A)})}}),co=i({command:"symbols <query>",describe:"search workspace symbols",builder:(o)=>o.positional("query",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let s=[];try{const e=v(s,S.Default.time("symbols"),0);let t=await r.runPromise(C.Service.use((m)=>m.workspaceSymbol(o.query)));process.stdout.write(JSON.stringify(t,null,2)+A)}catch(a){var c=a,l=1}finally{P(s,c,l)}})}}),lo=i({command:"document-symbols <uri>",describe:"get symbols from a document",builder:(o)=>o.positional("uri",{type:"string",demandOption:!0}),async handler(o){await n(process.cwd(),async()=>{let s=[];try{const e=v(s,S.Default.time("document-symbols"),0);let t=await r.runPromise(C.Service.use((m)=>m.documentSymbol(o.uri)));process.stdout.write(JSON.stringify(t,null,2)+A)}catch(a){var c=a,l=1}finally{P(s,c,l)}})}});import{EOL as O}from"os";var k=i({command:"rg",describe:"ripgrep debugging utilities",builder:(o)=>o.command(po).command(uo).command(fo).demandCommand(),async handler(){}}),po=i({command:"tree",describe:"show file tree using ripgrep",builder:(o)=>o.option("limit",{type:"number"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.tree({cwd:u.directory,limit:o.limit})));process.stdout.write(e+O)})}}),uo=i({command:"files",describe:"list files using ripgrep",builder:(o)=>o.option("query",{type:"string",description:"Filter files by query"}).option("glob",{type:"string",description:"Glob pattern to match files"}).option("limit",{type:"number",description:"Limit number of results"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(d.gen(function*(){return yield*(yield*y.Service).files({cwd:u.directory,glob:o.glob?[o.glob]:void 0}).pipe(x.take(o.limit??1/0),x.runCollect,d.map((s)=>[...s]))}));process.stdout.write(e.join(O)+O)})}}),fo=i({command:"search <pattern>",describe:"search file contents using ripgrep",builder:(o)=>o.positional("pattern",{type:"string",demandOption:!0,description:"Search pattern"}).option("glob",{type:"array",description:"File glob patterns"}).option("limit",{type:"number",description:"Limit number of results"}),async handler(o){await n(process.cwd(),async()=>{let e=await r.runPromise(y.Service.use((t)=>t.search({cwd:u.directory,pattern:o.pattern,glob:o.glob,limit:o.limit})));process.stdout.write(JSON.stringify(e.items,null,2)+O)})}});import{EOL as yo}from"os";var T=i({command:"scrap",describe:"list all known projects",builder:(o)=>o,async handler(){let o=S.Default.time("scrap"),e=await E.list();process.stdout.write(JSON.stringify(e,null,2)+yo),o.stop()}});import{EOL as go}from"os";var $=i({command:"skill",describe:"list all available skills",builder:(o)=>o,async handler(){await n(process.cwd(),async()=>{let o=await r.runPromise(d.gen(function*(){return yield*(yield*R.Service).all()}));process.stdout.write(JSON.stringify(o,null,2)+go)})}});var j=i({command:"snapshot",describe:"snapshot debugging utilities",builder:(o)=>o.command(bo).command(wo).command(So).demandCommand(),async handler(){}}),D=(o)=>n(process.cwd(),async()=>{console.log(await r.runPromise(M.Service.use(o)))}),G=(o)=>o.positional("hash",{type:"string",description:"hash",demandOption:!0}),bo=i({command:"track",describe:"track current snapshot state",async handler(){await D((o)=>o.track())}}),wo=i({command:"patch <hash>",describe:"show patch for a snapshot hash",builder:G,async handler(o){await D((e)=>e.patch(o.hash))}}),So=i({command:"diff <hash>",describe:"show diff for a snapshot hash",builder:G,async handler(o){await D((e)=>e.diff(o.hash))}});import{EOL as h}from"os";import{basename as ho}from"path";var Z=i({command:"agent <name>",describe:"show agent configuration details",builder:(o)=>o.positional("name",{type:"string",demandOption:!0,description:"Agent name"}).option("tool",{type:"string",description:"Tool id to execute"}).option("params",{type:"string",description:"Tool params as a JSON object"}),async handler(o){await n(process.cwd(),async()=>{let e=o.name,t=await r.runPromise(X.Service.use((m)=>m.get(e)));if(!t)process.stderr.write(`Agent ${e} not found, run '${ho(process.execPath)} agent list' to get an agent list`+h),process.exit(1);let s=await Co(t),a=await Oo(t,s),c=o.tool;if(c){let m=s.find((eo)=>eo.id===c);if(!m)process.stderr.write(`Tool ${c} not found for agent ${e}`+h),process.exit(1);if(a[c]===!1)process.stderr.write(`Tool ${c} is disabled for agent ${e}`+h),process.exit(1);let p=vo(o.params),f=await Po(t),N=await m.execute(p,f);process.stdout.write(JSON.stringify({tool:c,input:p,result:N},null,2)+h);return}let l={...t,tools:a};process.stdout.write(JSON.stringify(l,null,2)+h)})}});async function Co(o){return r.runPromise(d.gen(function*(){let e=yield*J.Service,t=yield*K.Service,s=o.model??(yield*e.defaultModel());return yield*t.tools({...s,agent:o})}))}async function Oo(o,e){let t=g.disabled(e.map((a)=>a.id),o.permission),s={};for(let a of e)s[a.id]=!t.has(a.id);return s}function vo(o){if(!o)return{};let e=o.trim();if(e.length===0)return{};let t=(()=>{try{return JSON.parse(e)}catch{throw Error("Failed to parse --params. Provide a valid JSON object.")}})();if(!t||typeof t!=="object"||Array.isArray(t))throw Error("Tool params must be an object.");return t}async function Po(o){let{session:e,messageID:t}=await r.runPromise(d.gen(function*(){let a=yield*Y.Service,c=yield*a.create({title:`Debug tool run (${o.name})`}),l=V.ascending(),m=o.model?o.model:yield*d.gen(function*(){return yield*(yield*J.Service).defaultModel()}),p=Date.now(),f={id:l,sessionID:c.id,role:"assistant",time:{created:p},parentID:l,modelID:m.modelID,providerID:m.providerID,mode:"debug",agent:o.name,path:{cwd:u.directory,root:u.worktree},cost:0,tokens:{input:0,output:0,reasoning:0,cache:{read:0,write:0}}};return yield*a.updateMessage(f),{session:c,messageID:l}})),s=g.merge(o.permission,e.permission??[]);return{sessionID:e.id,messageID:t,callID:W.ascending(),agent:o.name,abort:new AbortController().signal,messages:[],metadata:()=>d.void,ask(a){return d.sync(()=>{for(let c of a.patterns)if(g.evaluate(a.permission,c,s).action==="deny")throw new g.DeniedError({ruleset:s})})}}}var Q=i({command:"worker-smoke",describe:"start the TUI background worker and verify it initialises",builder:(o)=>o.option("timeout",{type:"number",describe:"milliseconds to wait for the worker to answer",default:30000}),handler:async(o)=>{let e=typeof globalThis.QITQODE_WORKER_PATH<"u"?globalThis.QITQODE_WORKER_PATH:new URL("../tui/worker.ts",import.meta.url),t=H({[B]:"worker",[z]:_()}),s=new Worker(e,{env:t}),a=new Promise((m,p)=>{s.onerror=(f)=>{p(Error(`worker crashed during startup: ${f.message||String(f.error??"unknown error")}`))},s.addEventListener("close",()=>{p(Error("worker exited before answering ping"))})}),c=new Promise((m,p)=>{setTimeout(()=>p(Error(`worker did not answer ping within ${o.timeout}ms`)),o.timeout)}),l=U(s);try{let m=await Promise.race([l.call("ping",void 0),a,c]);if(m!=="pong")throw Error(`worker answered ping with unexpected reply: ${JSON.stringify(m)}`);console.log("worker initialised: ping ok"),process.exit(0)}catch(m){console.error(m instanceof Error?m.message:String(m)),process.exit(1)}}});var Be=i({command:"debug",describe:"debugging and troubleshooting tools",builder:(o)=>o.command(I).command(q).command(k).command(L).command(T).command($).command(j).command(Z).command(Q).command(Ao).command({command:"wait",describe:"wait indefinitely (for debugging)",async handler(){await n(process.cwd(),async()=>{await new Promise((e)=>setTimeout(e,86400000))})}}).demandCommand(),async handler(){}}),Ao=i({command:"paths",describe:"show global paths (data, config, cache, state)",handler(){for(let[o,e]of Object.entries(oo.Path))console.log(o.padEnd(10),e)}});export{Be as DebugCommand};
|
package/bundle/chunk-s7yza695.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ed as b}from"./chunk-v7mg632n.js";import{Rd as f}from"./chunk-yajd975f.js";import{Zg as S}from"./chunk-3kn57y8d.js";import"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{tl as v}from"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import{Ml as U,Ul as R,cm as k}from"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import{Vr as Z}from"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var i=f({command:"stats",describe:"show token usage and cost statistics",builder:(z)=>{return z.option("days",{describe:"show stats for the last N days (default: all time)",type:"number"}).option("tools",{describe:"number of tools to show (default: all)",type:"number"}).option("models",{describe:"show model statistics (default: hidden). Pass a number to show top N, otherwise shows all"}).option("project",{describe:"filter by project (default: all projects, empty string: current project)",type:"string"})},handler:async(z)=>{await b(process.cwd(),async()=>{let E=await y(z.days,z.project),_;if(z.models===!0)_=1/0;else if(typeof z.models==="number")_=z.models;u(E,z.tools,_)})}});async function w(){return k.project}async function p(){return R.use((E)=>E.select().from(U).all()).map((E)=>v.fromRow(E))}async function y(z,E){let _=await p(),L=86400000,J=(()=>{if(z===void 0)return 0;if(z===0){let V=new Date;return V.setHours(0,0,0,0),V.getTime()}return Date.now()-z*86400000})(),K=(()=>{if(z===void 0)return;if(z===0)return 1;return z})(),Y=J>0?_.filter((V)=>V.time.updated>=J):_;if(E!==void 0)if(E===""){let V=await w();Y=Y.filter((F)=>F.projectID===V.id)}else Y=Y.filter((V)=>V.projectID===E);let G={totalSessions:Y.length,totalMessages:0,totalCost:0,totalTokens:{input:0,output:0,reasoning:0,cache:{read:0,write:0}},toolUsage:{},modelUsage:{},dateRange:{earliest:Date.now(),latest:Date.now()},days:0,costPerDay:0,tokensPerSession:0,medianTokensPerSession:0};if(Y.length>1000)console.log(`Large dataset detected (${Y.length} sessions). This may take a while...`);if(Y.length===0)return G.days=K??0,G;let C=Date.now(),x=0,X=[],h=20;for(let V=0;V<Y.length;V+=h){let D=Y.slice(V,V+h).map(async(Q)=>{let W=await S.runPromise(v.Service.use((O)=>O.messages({sessionID:Q.id,agentID:"*"}))),N=0,H={input:0,output:0,reasoning:0,cache:{read:0,write:0}},j={},A={};for(let O of W){if(O.info.role==="assistant"){N+=O.info.cost||0;let B=`${O.info.providerID}/${O.info.modelID}`;if(!A[B])A[B]={messages:0,tokens:{input:0,output:0,cache:{read:0,write:0}},cost:0};if(A[B].messages++,A[B].cost+=O.info.cost||0,O.info.tokens)H.input+=O.info.tokens.input||0,H.output+=O.info.tokens.output||0,H.reasoning+=O.info.tokens.reasoning||0,H.cache.read+=O.info.tokens.cache?.read||0,H.cache.write+=O.info.tokens.cache?.write||0,A[B].tokens.input+=O.info.tokens.input||0,A[B].tokens.output+=(O.info.tokens.output||0)+(O.info.tokens.reasoning||0),A[B].tokens.cache.read+=O.info.tokens.cache?.read||0,A[B].tokens.cache.write+=O.info.tokens.cache?.write||0}for(let B of O.parts)if(B.type==="tool"&&B.tool)j[B.tool]=(j[B.tool]||0)+1}return{messageCount:W.length,sessionCost:N,sessionTokens:H,sessionTotalTokens:H.input+H.output+H.reasoning+H.cache.read+H.cache.write,sessionToolUsage:j,sessionModelUsage:A,earliestTime:J>0?Q.time.updated:Q.time.created,latestTime:Q.time.updated}}),M=await Promise.all(D);for(let Q of M){C=Math.min(C,Q.earliestTime),x=Math.max(x,Q.latestTime),X.push(Q.sessionTotalTokens),G.totalMessages+=Q.messageCount,G.totalCost+=Q.sessionCost,G.totalTokens.input+=Q.sessionTokens.input,G.totalTokens.output+=Q.sessionTokens.output,G.totalTokens.reasoning+=Q.sessionTokens.reasoning,G.totalTokens.cache.read+=Q.sessionTokens.cache.read,G.totalTokens.cache.write+=Q.sessionTokens.cache.write;for(let[W,N]of Object.entries(Q.sessionToolUsage))G.toolUsage[W]=(G.toolUsage[W]||0)+N;for(let[W,N]of Object.entries(Q.sessionModelUsage)){if(!G.modelUsage[W])G.modelUsage[W]={messages:0,tokens:{input:0,output:0,cache:{read:0,write:0}},cost:0};G.modelUsage[W].messages+=N.messages,G.modelUsage[W].tokens.input+=N.tokens.input,G.modelUsage[W].tokens.output+=N.tokens.output,G.modelUsage[W].tokens.cache.read+=N.tokens.cache.read,G.modelUsage[W].tokens.cache.write+=N.tokens.cache.write,G.modelUsage[W].cost+=N.cost}}}let $=Math.max(1,Math.ceil((x-C)/86400000)),q=K??$;G.dateRange={earliest:C,latest:x},G.days=q,G.costPerDay=G.totalCost/q;let I=G.totalTokens.input+G.totalTokens.output+G.totalTokens.reasoning+G.totalTokens.cache.read+G.totalTokens.cache.write;G.tokensPerSession=Y.length>0?I/Y.length:0,X.sort((V,F)=>V-F);let P=Math.floor(X.length/2);return G.medianTokensPerSession=X.length===0?0:X.length%2===0?(X[P-1]+X[P])/2:X[P],G}function u(z,E,_){function J(x,X){let $=55-x.length-X.length,q=Math.max(0,$);return`\u2502${x}${" ".repeat(q)}${X} \u2502`}console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 OVERVIEW \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524"),console.log(J("Sessions",z.totalSessions.toLocaleString())),console.log(J("Messages",z.totalMessages.toLocaleString())),console.log(J("Days",z.days.toString())),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),console.log(),console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 COST & TOKENS \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let K=isNaN(z.totalCost)?0:z.totalCost,Y=isNaN(z.costPerDay)?0:z.costPerDay,G=isNaN(z.tokensPerSession)?0:z.tokensPerSession;console.log(J("Total Cost",`$${K.toFixed(2)}`)),console.log(J("Avg Cost/Day",`$${Y.toFixed(2)}`)),console.log(J("Avg Tokens/Session",Z.number(Math.round(G))));let C=isNaN(z.medianTokensPerSession)?0:z.medianTokensPerSession;if(console.log(J("Median Tokens/Session",Z.number(Math.round(C)))),console.log(J("Input",Z.number(z.totalTokens.input))),console.log(J("Output",Z.number(z.totalTokens.output))),console.log(J("Cache Read",Z.number(z.totalTokens.cache.read))),console.log(J("Cache Write",Z.number(z.totalTokens.cache.write))),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518"),console.log(),_!==void 0&&Object.keys(z.modelUsage).length>0){let x=Object.entries(z.modelUsage).sort(([,h],[,$])=>$.messages-h.messages),X=_===1/0?x:x.slice(0,_);console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 MODEL USAGE \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");for(let[h,$]of X)console.log(`\u2502 ${h.padEnd(54)} \u2502`),console.log(J(" Messages",$.messages.toLocaleString())),console.log(J(" Input Tokens",Z.number($.tokens.input))),console.log(J(" Output Tokens",Z.number($.tokens.output))),console.log(J(" Cache Read",Z.number($.tokens.cache.read))),console.log(J(" Cache Write",Z.number($.tokens.cache.write))),console.log(J(" Cost",`$${$.cost.toFixed(4)}`)),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");process.stdout.write("\x1B[1A"),console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")}if(console.log(),Object.keys(z.toolUsage).length>0){let x=Object.entries(z.toolUsage).sort(([,q],[,I])=>I-q),X=E?x.slice(0,E):x;console.log("\u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"),console.log("\u2502 TOOL USAGE \u2502"),console.log("\u251C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524");let h=Math.max(...X.map(([,q])=>q)),$=Object.values(z.toolUsage).reduce((q,I)=>q+I,0);for(let[q,I]of X){let P=Math.max(1,Math.floor(I/h*20)),V="\u2588".repeat(P),F=(I/$*100).toFixed(1),D=18,W=` ${(q.length>18?q.substring(0,16)+"..":q).padEnd(18)} ${V.padEnd(20)} ${I.toString().padStart(3)} (${F.padStart(4)}%)`,N=Math.max(0,56-W.length-1);console.log(`\u2502${W}${" ".repeat(N)} \u2502`)}console.log("\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518")}console.log()}export{u as displayStats,y as aggregateSessionStats,i as StatsCommand};
|
package/bundle/chunk-s99cvvc9.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{o as L}from"./chunk-dj3525nn.js";import"./chunk-bzs2ep7s.js";import{A as K}from"./chunk-r2qns6yc.js";import{B as N}from"./chunk-gsez13bg.js";import{C as F,E as J}from"./chunk-c8k32724.js";import"./chunk-mx3jd1p9.js";import"./chunk-a9y27zd2.js";import"./chunk-6y4mwmn4.js";import{P as M}from"./chunk-vjx0064q.js";import"./chunk-n7kqdqkh.js";import"./chunk-ahyqfbmq.js";import"./chunk-tczbhj0e.js";import"./chunk-kdcnder5.js";import"./chunk-ta7mfkms.js";import{Rd as B}from"./chunk-yajd975f.js";import"./chunk-k6cbfrzc.js";import"./chunk-29zm623f.js";import"./chunk-wp3dpt6d.js";import{Uf as z}from"./chunk-t1jgx17a.js";import"./chunk-jgtcfw96.js";import"./chunk-dknemkw2.js";import"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-yqb6cfed.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var x=B({command:"attach <url>",describe:"attach to a running qitqode server",builder:(j)=>j.positional("url",{type:"string",describe:"http://localhost:4096",demandOption:!0}).option("dir",{type:"string",description:"directory to run in"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],type:"string",describe:"session id to continue"}).option("fork",{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}),handler:async(j)=>{let Q=J();try{F();let q=N(j);if(q){z.error(q),process.exitCode=1;return}let R=(()=>{if(!j.dir)return;try{return process.chdir(j.dir),process.cwd()}catch{return j.dir}})(),S=M({password:j.password}),V=await K.get();await L({url:j.url,config:V,args:{continue:j.continue,sessionID:j.session,fork:j.fork},directory:R,headers:S})}finally{Q?.()}}});export{x as AttachCommand};
|
package/bundle/chunk-skpkjnyy.js
DELETED
package/bundle/chunk-snt4kwab.js
DELETED
package/bundle/chunk-sq47t8f1.js
DELETED
package/bundle/chunk-sqhgnvvs.js
DELETED
package/bundle/chunk-t114r59h.js
DELETED
package/bundle/chunk-t1f56k0j.js
DELETED
package/bundle/chunk-t69jx6fz.js
DELETED
package/bundle/chunk-tce12v85.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rd as q}from"./chunk-yajd975f.js";import{Uf as v}from"./chunk-t1jgx17a.js";import{Zg as S}from"./chunk-3kn57y8d.js";import"./chunk-nb86kh94.js";import"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import{Vl as Q,cm as H}from"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import{cs as K}from"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var P=q({command:"pr <number>",describe:"fetch and checkout a GitHub PR branch, then run qitqode",builder:(Y)=>Y.positional("number",{type:"number",describe:"PR number to checkout",demandOption:!0}),async handler(Y){await H.provide({directory:process.cwd(),async fn(){if(H.project.vcs!=="git")v.error("Could not find git repository. Please run this command from a git repository."),process.exit(1);let J=Y.number,Z=`pr/${J}`;if(v.println(`Fetching and checking out PR #${J}...`),(await K.run(["gh","pr","checkout",`${J}`,"--branch",Z,"--force"],{nothrow:!0})).code!==0)v.error(`Failed to checkout PR #${J}. Make sure you have gh CLI installed and authenticated.`),process.exit(1);let _=await K.text(["gh","pr","view",`${J}`,"--json","headRepository,headRepositoryOwner,isCrossRepository,headRefName,body"],{nothrow:!0}),V;if(_.code===0){let j=_.text;if(j.trim()){let z=JSON.parse(j);if(z&&z.isCrossRepository&&z.headRepository&&z.headRepositoryOwner){let L=z.headRepositoryOwner.login,W=z.headRepository.name,C=L;if(!(await S.runPromise(Q.Service.use((F)=>F.run(["remote"],{cwd:H.worktree}))).then((F)=>F.text().trim())).split(`
|
|
3
|
-
`).includes(C))await S.runPromise(Q.Service.use((F)=>F.run(["remote","add",C,`https://github.com/${L}/${W}.git`],{cwd:H.worktree}))),v.println(`Added fork remote: ${C}`);let X=z.headRefName;await S.runPromise(Q.Service.use((F)=>F.run(["branch",`--set-upstream-to=${C}/${X}`,Z],{cwd:H.worktree})))}if(z&&z.body){let L=z.body.match(/https:\/\/opncd\.ai\/s\/([a-zA-Z0-9_-]+)/);if(L){let W=L[0];v.println(`Found qitqode session: ${W}`),v.println("Importing session...");let C=await K.text(["qitqode","import",W],{nothrow:!0});if(C.code===0){let X=C.text.trim().match(/Imported session: ([a-zA-Z0-9_-]+)/);if(X)V=X[1],v.println(`Session imported: ${V}`)}}}}}v.println(`Successfully checked out PR #${J} as branch '${Z}'`),v.println(),v.println("Starting qitqode..."),v.println();let D=V?["-s",V]:[],$=await K.spawn(["qitqode",...D],{stdin:"inherit",stdout:"inherit",stderr:"inherit",cwd:process.cwd()}).exited;if($!==0)throw Error(`qitqode exited with code ${$}`)}})}});export{P as PrCommand};
|
package/bundle/chunk-tq1dqhes.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ud as a,vd as b}from"./chunk-ahyqfbmq.js";import"./chunk-b50t4jc5.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-f83wv08n.js";export{a as read,b as copy};
|
package/bundle/chunk-tsb3jsx4.js
DELETED
package/bundle/chunk-ttpbpzbh.js
DELETED
package/bundle/chunk-v667egp5.js
DELETED
package/bundle/chunk-v7mg632n.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ng as D,Zg as x}from"./chunk-3kn57y8d.js";import{Ch as E}from"./chunk-nb86kh94.js";import{cm as w}from"./chunk-xnhvt98g.js";import{nt as z}from"./chunk-x3afqfww.js";var H=z.create({service:"cli.bootstrap"});async function P(F,G){return w.provide({directory:F,init:()=>x.runPromise(D),fn:async()=>{try{return await G()}finally{await x.runPromise(E.Service.use((q)=>q.drainWriters())).catch((q)=>H.warn("checkpoint drain failed",{error:String(q)})),await w.dispose()}}})}
|
|
3
|
-
export{P as Ed};
|
package/bundle/chunk-x3afqfww.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dt as Q}from"./chunk-cbmwhvxw.js";import{Et as u}from"./chunk-9etpppyv.js";import{vO as B}from"./chunk-ks1cs80p.js";import{NO as i}from"./chunk-f83wv08n.js";var Pq={};i(Pq,{redactValue:()=>D,init:()=>Hq,flush:()=>Jq,file:()=>qq,enabled:()=>a,create:()=>h,Level:()=>s,Default:()=>e});import U from"path";import Z from"fs/promises";import{createWriteStream as m}from"fs";var Wq="https://qortex.forgewise.tech/api/v1/qortex/streamTier",Gq=new URL("https://qortex.forgewise.tech/api/v1/qortex/streamTier").origin,_="https://qortex.forgewise.tech/api/v1/qortex/streamTier".replace(/\/streamTier$/,""),Vq={name:"QitQode",family:"qlex",npm:"@qitqode/qlex-provider",limit:{context:200000,output:16384},capabilities:{temperature:!0,reasoning:!1,attachment:!0,toolcall:!0,input:{text:!0,audio:!1,image:!0,video:!1,pdf:!1},output:{text:!0,audio:!1,image:!1,video:!1,pdf:!1},interleaved:!1},release_date:"2025-07-06"};function F(q){return q.replace(/provider\s+'[^']*'\s*(?:stream\s+)?(?:failed|error)?\s*:?\s*/gi,"").replace(/\b(?:anthropic|openai|google|vertex\s*ai|bedrock|azure|x\.?ai|mistral|deepseek|cohere|groq|together(?:\.ai)?|openrouter|fireworks|perplexity|meta)\b/gi,"").replace(/\b(?:gpt|claude|gemini|grok|llama|qwen|sonnet|opus|haiku|o[0-9])[-\w.]*/gi,"").replace(/\s+/g," ").replace(/^[\s:;,.\-]+/,"").replace(/[\s.]+$/,"").trim()}var Fq={notLoggedIn:"Not logged in to QitQode. Run `qitqode auth login` to sign in with your Forgewise account.",rateLimit:"Rate limit exceeded. Please wait a moment before sending more requests.",insufficientBalance:(q)=>{let H=q?F(q):"";return`Insufficient qredits${H?`: ${H}`:""}. Add qredits at qitqode.com to continue.`},invalidCredentials:(q)=>{let H=q?F(q):"";return`Your QitQode sign-in has ended${H?` (${H})`:""}. Renewing it automatically didn't work, so signing in again is the only step left.`},accountNotLinked:(q)=>{let H=q?F(q):"";return`This credential isn't linked to a QitQode account${H?` (${H})`:""}, so there is no wallet to read. Sign in with your Forgewise account, or use a key issued to that account.`},gatewayUnavailable:(q)=>{let H=q?F(q):"";return`The QitQode model gateway is unavailable${H?` (${H})`:""}. Your sign-in is still valid \u2014 the model backend isn't reachable through its trusted gateway yet. This is a server-side configuration issue, not a login problem.`},streamFailed:(q)=>{let H=q?F(q):"";return`The QitQode model stream failed${H?`: ${H}`:""}.`},streamCutOff:()=>"The model's reply was cut off before it finished and QitQode could not recover it. This is a temporary upstream fault \u2014 your sign-in is fine and the service is reachable. Send the message again; if it keeps happening, try a shorter request or a different tier.",streamFailedAfterRetries:()=>"The model's reply was cut off before it finished. QitQode retried it, but the problem may be temporary or specific to this request. Send the message again; if it keeps happening, try a shorter request or a different tier.",outputBudgetExhausted:()=>"The model ran out of output room before it could finish. QitQode will retry once with more headroom when the tier allows it.",emptyOutput:()=>"The model used its output budget without producing visible text. QitQode did not receive an answer and no charge is implied.",requestRejected:(q,H)=>{let $=q?F(q):"",W=H?F(H):"";return`QitQode built an invalid request and the server rejected it${W?` (field: ${W})`:""}${$?`: ${$}`:""}. This is a problem with the request QitQode sent \u2014 not your sign-in, and not a gateway outage. Sending the same thing again will fail the same way.`},requestNotSent:(q)=>{let H=q?F(q):"";return`QitQode did not send this request${H?`: ${H}`:""}. Nothing was sent and no qredits were spent. This is a problem inside QitQode \u2014 not your sign-in, and not a gateway outage.`},requestTooLargeRecovering:(q)=>{let H=q?F(q):"";return`This request was too large to send${H?` (${H})`:""}, so QitQode removed some earlier conversation detail and is trying once more. Your sign-in is fine and the service is reachable.`},requestTooLargeIrreducible:(q)=>{let H=q?F(q):"";return`This request is too large for the service to accept${H?` (${H})`:""}, and QitQode couldn't make it smaller without losing your current request. Try removing large pasted text or attachments from your message, or start a new session. This isn't a sign-in problem or a service outage.`},requestTooLargeAfterReduction:(q)=>{let H=q?F(q):"";return`This request was still too large for the service after QitQode removed earlier conversation detail${H?` (${H})`:""}, so it stopped rather than retrying again. Start a new session, or send a shorter message with fewer attachments. This isn't a sign-in problem or a service outage.`},insufficientBalanceFallback:"Insufficient qredits.",insufficientBalanceCliSuffix:" Visit qitqode.com to add qredits.",invalidCredentialsFallback:"Your QitQode sign-in has ended and couldn't be renewed automatically. Sign in again.",apiKeyPrompt:"Paste your Qortex API key:",apiKeyPlaceholder:"qortex-...",loginMenuForgewise:"Sign in with Forgewise account",loginMenuApiKey:"Paste a Qortex API key",waitingForgewise:"\u23F3 Waiting for Forgewise sign-in in your browser\u2026"};function J(q){let H=process.env[q]?.toLowerCase();return H==="true"||H==="1"}function x(q){let H=process.env[q]?.toLowerCase();return H==="false"||H==="0"}function M(q){let H=process.env[q];if(!H)return;let $=Number(H);return Number.isInteger($)&&$>0?$:void 0}var K=J("QITQODE_EXPERIMENTAL"),C=J("QITQODE_DISABLE_CLAUDE_CODE"),O=J("QITQODE_DISABLE_EXTERNAL_SKILLS"),n=O||C||J("QITQODE_DISABLE_CLAUDE_CODE_SKILLS"),o=process.env.QITQODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT,L={OTEL_EXPORTER_OTLP_ENDPOINT:process.env.OTEL_EXPORTER_OTLP_ENDPOINT,OTEL_EXPORTER_OTLP_HEADERS:process.env.OTEL_EXPORTER_OTLP_HEADERS,QITQODE_AUTO_SHARE:J("QITQODE_AUTO_SHARE"),QITQODE_AUTO_HEAP_SNAPSHOT:J("QITQODE_AUTO_HEAP_SNAPSHOT"),QITQODE_GIT_BASH_PATH:process.env.QITQODE_GIT_BASH_PATH,QITQODE_CONFIG:process.env.QITQODE_CONFIG,QITQODE_CONFIG_CONTENT:process.env.QITQODE_CONFIG_CONTENT,get QITQODE_BACKEND_URL(){return process.env.QITQODE_BACKEND_URL??_},get QITQODE_QLEX_MAX_REQUEST_BYTES(){return M("QITQODE_QLEX_MAX_REQUEST_BYTES")},QITQODE_DISABLE_AUTOUPDATE:J("QITQODE_DISABLE_AUTOUPDATE"),QITQODE_DISABLE_LOG_ROTATION:J("QITQODE_DISABLE_LOG_ROTATION"),QITQODE_ALWAYS_NOTIFY_UPDATE:J("QITQODE_ALWAYS_NOTIFY_UPDATE"),QITQODE_DISABLE_PRUNE:J("QITQODE_DISABLE_PRUNE"),QITQODE_DISABLE_TERMINAL_TITLE:J("QITQODE_DISABLE_TERMINAL_TITLE"),QITQODE_SHOW_TTFD:J("QITQODE_SHOW_TTFD"),QITQODE_PERMISSION:process.env.QITQODE_PERMISSION,QITQODE_DISABLE_DEFAULT_PLUGINS:J("QITQODE_DISABLE_DEFAULT_PLUGINS"),QITQODE_DISABLE_LSP_DOWNLOAD:!0,QITQODE_ENABLE_EXPERIMENTAL_MODELS:J("QITQODE_ENABLE_EXPERIMENTAL_MODELS"),QITQODE_DISABLE_AUTOCOMPACT:J("QITQODE_DISABLE_AUTOCOMPACT"),QITQODE_DISABLE_MODELS_FETCH:J("QITQODE_DISABLE_MODELS_FETCH"),QITQODE_DISABLE_MOUSE:J("QITQODE_DISABLE_MOUSE"),QITQODE_OUTPUT_LENGTH_CONTINUATION_LIMIT:M("QITQODE_OUTPUT_LENGTH_CONTINUATION_LIMIT")??3,QITQODE_INVALID_OUTPUT_CONTINUATION_LIMIT:M("QITQODE_INVALID_OUTPUT_CONTINUATION_LIMIT")??2,QITQODE_TEXT_NGRAM_N:M("QITQODE_TEXT_NGRAM_N")??6,QITQODE_TEXT_REPEAT_THRESHOLD:M("QITQODE_TEXT_REPEAT_THRESHOLD")??3,QITQODE_TEXT_WINDOW_TOKENS:M("QITQODE_TEXT_WINDOW_TOKENS")??500,QITQODE_MAX_PROMPT_IMAGES:M("QITQODE_MAX_PROMPT_IMAGES")??4,QITQODE_MAX_PROMPT_IMAGE_SIZE:M("QITQODE_MAX_PROMPT_IMAGE_SIZE")??393216,QITQODE_DISABLE_PROVIDER_ENV:J("QITQODE_DISABLE_PROVIDER_ENV"),QITQODE_DISABLE_CLAUDE_CODE:C,get QITQODE_DISABLE_CLAUDE_CODE_MCP(){return C||J("QITQODE_DISABLE_CLAUDE_CODE_MCP")},QITQODE_DISABLE_CLAUDE_CODE_PROMPT:C||J("QITQODE_DISABLE_CLAUDE_CODE_PROMPT"),QITQODE_DISABLE_CLAUDE_CODE_COMMANDS:J("QITQODE_DISABLE_CLAUDE_CODE_COMMANDS"),QITQODE_DISABLE_CLAUDE_CODE_SKILLS:n,QITQODE_DISABLE_EXTERNAL_SKILLS:O,QITQODE_DISABLE_CODEX_SKILLS:O||J("QITQODE_DISABLE_CODEX_SKILLS"),QITQODE_DISABLE_OPENCODE_SKILLS:O||J("QITQODE_DISABLE_OPENCODE_SKILLS"),QITQODE_FAKE_VCS:process.env.QITQODE_FAKE_VCS,QITQODE_DISABLE_GIT:J("QITQODE_DISABLE_GIT"),get QITQODE_SERVER_PASSWORD(){return process.env.QITQODE_SERVER_PASSWORD},get QITQODE_SERVER_USERNAME(){return process.env.QITQODE_SERVER_USERNAME},QITQODE_ENABLE_QUESTION_TOOL:J("QITQODE_ENABLE_QUESTION_TOOL"),QITQODE_EXPERIMENTAL:K,QITQODE_EXPERIMENTAL_FILEWATCHER:B.boolean("QITQODE_EXPERIMENTAL_FILEWATCHER").pipe(B.withDefault(!1)),QITQODE_EXPERIMENTAL_DISABLE_FILEWATCHER:B.boolean("QITQODE_EXPERIMENTAL_DISABLE_FILEWATCHER").pipe(B.withDefault(!1)),QITQODE_EXPERIMENTAL_ICON_DISCOVERY:K||J("QITQODE_EXPERIMENTAL_ICON_DISCOVERY"),QITQODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT:o===void 0?process.platform==="win32":J("QITQODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT"),QITQODE_ENABLE_EXA:J("QITQODE_ENABLE_EXA")||K||J("QITQODE_EXPERIMENTAL_EXA"),QITQODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS:M("QITQODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS"),QITQODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX:M("QITQODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX"),QITQODE_EXPERIMENTAL_OXFMT:K||J("QITQODE_EXPERIMENTAL_OXFMT"),QITQODE_EXPERIMENTAL_LSP_TY:J("QITQODE_EXPERIMENTAL_LSP_TY"),QITQODE_EXPERIMENTAL_LSP_TOOL:K||J("QITQODE_EXPERIMENTAL_LSP_TOOL"),QITQODE_EXPERIMENTAL_WORKFLOW_TOOL:!x("QITQODE_EXPERIMENTAL_WORKFLOW_TOOL"),QITQODE_EXPERIMENTAL_MARKDOWN:!x("QITQODE_EXPERIMENTAL_MARKDOWN"),QITQODE_MODELS_URL:process.env.QITQODE_MODELS_URL,QITQODE_MODELS_PATH:process.env.QITQODE_MODELS_PATH,QITQODE_DB:process.env.QITQODE_DB,QITQODE_DISABLE_CHANNEL_DB:!x("QITQODE_DISABLE_CHANNEL_DB"),QITQODE_SKIP_MIGRATIONS:J("QITQODE_SKIP_MIGRATIONS"),QITQODE_STRICT_CONFIG_DEPS:J("QITQODE_STRICT_CONFIG_DEPS"),QITQODE_WORKSPACE_ID:process.env.QITQODE_WORKSPACE_ID,QITQODE_EXPERIMENTAL_HTTPAPI:J("QITQODE_EXPERIMENTAL_HTTPAPI"),QITQODE_EXPERIMENTAL_WORKSPACES:K||J("QITQODE_EXPERIMENTAL_WORKSPACES"),get QITQODE_DISABLE_COMPOSE_SKILLS(){return J("QITQODE_DISABLE_COMPOSE_SKILLS")},get QITQODE_DISABLE_BUILTIN_SKILLS(){return J("QITQODE_DISABLE_BUILTIN_SKILLS")},get QITQODE_DISABLE_PROJECT_CONFIG(){return J("QITQODE_DISABLE_PROJECT_CONFIG")},get QITQODE_TUI_CONFIG(){return process.env.QITQODE_TUI_CONFIG},get QITQODE_CONFIG_DIR(){return process.env.QITQODE_CONFIG_DIR},get QITQODE_HOME(){return process.env.QITQODE_HOME},get QITQODE_PURE(){return J("QITQODE_PURE")},get QITQODE_PLUGIN_META_FILE(){return process.env.QITQODE_PLUGIN_META_FILE},get QITQODE_CLIENT(){return process.env.QITQODE_CLIENT??"cli"}};var s=u.enum(["DEBUG","INFO","WARN","ERROR"]).meta({ref:"LogLevel",description:"Log level"}),f={DEBUG:0,INFO:1,WARN:2,ERROR:3},l=10,r=52428800,t=209715200,p="INFO";function X(q){return f[q]>=f[p]}function a(q){return X(q)}var c=new Map,e=h({service:"default"}),G="";function qq(){return G}var z,T=0,v=!0,w=(q)=>{return process.stderr.write(q),q.length};function k(){return new Date().toISOString().split(".")[0].replace(/:/g,"")}async function Hq(q){if(q.level)p=q.level;if(v=q.rotate??!L.QITQODE_DISABLE_LOG_ROTATION,g(Q.Path.log),q.print)return;if(G=U.join(Q.Path.log,q.dev?"dev.log":k()+".log"),q.dev){let H=await Z.stat(G).catch(()=>null);if(H&&H.size>0)await Z.rename(G,`${G}.${k()}`).catch(()=>{})}else await Z.truncate(G).catch(()=>{});z=m(G,{flags:"a"}),T=0,w=(H)=>{return S=S.then(async()=>{if(T+=Buffer.byteLength(H),v&&T>=r)T=Buffer.byteLength(H),await $q();await new Promise(($)=>{if(!z){$();return}z.write(H,()=>$())})}).catch(()=>{}),H.length}}var S=Promise.resolve();async function Jq(){await S}async function $q(){let q=z,H=`${G}.${k()}`;for(let $=2;await Z.stat(H).then(()=>!0,()=>!1);$++)H=`${G}.${k()}.${$}`;if(await Z.rename(G,H).catch(()=>{}),z=m(G,{flags:"a"}),q)q.end();g(Q.Path.log)}async function g(q){let H=await Z.readdir(q).catch(()=>[]),W=(await Promise.all(H.filter((Y)=>Y.includes(".log")&&U.join(q,Y)!==G).map(async(Y)=>{let N=await Z.stat(U.join(q,Y)).catch(()=>null);return N?.isFile()?{name:Y,size:N.size}:null}))).flatMap((Y)=>Y?[Y]:[]).sort((Y,N)=>Y.name<N.name?-1:Y.name>N.name?1:0),j=W.reduce((Y,N)=>Y+N.size,0),P=W.length,R=W.filter((Y)=>{if(P<=l&&j<=t)return!1;return j-=Y.size,P-=1,!0});await Promise.all(R.map((Y)=>Z.unlink(U.join(q,Y.name)).catch(()=>{})))}var Yq=/token|secret|password|passwd|credential|api[_-]?key|authorization|cookie|set-cookie/i;function D(q,H){if(Yq.test(q)&&H!==void 0&&H!==null)return"[REDACTED]";return H}var A=10240;function jq(q){try{let H=JSON.stringify(q,function($,W){return $?D($,W):W});if(typeof H==="string"&&H.length>A)return H.slice(0,A)+`\u2026[truncated ${H.length-A} chars]`;return H}catch{return"[unserializable]"}}function d(q,H=0){let $=q.message;return q.cause instanceof Error&&H<10?$+" Caused by: "+d(q.cause,H+1):$}var E=Date.now();function h(q){q=q||{};let H=q.service;if(H&&typeof H==="string"){let j=c.get(H);if(j)return j}function $(j,P){let R=Object.entries({...q,...P}).filter(([y,V])=>V!==void 0&&V!==null).map(([y,V])=>{let b=`${y}=`;if(V instanceof Error)return b+d(V);let I=D(y,V);if(I!==V)return b+I;if(typeof V==="object"&&V!==null)return b+jq(V);return b+V}).join(" "),Y=new Date,N=Y.getTime()-E;return E=Y.getTime(),[Y.toISOString().split(".")[0],"+"+N+"ms",R,j].filter(Boolean).join(" ")+`
|
|
3
|
-
`}let W={debug(j,P){if(X("DEBUG"))w("DEBUG "+$(j,P))},info(j,P){if(X("INFO"))w("INFO "+$(j,P))},error(j,P){if(X("ERROR"))w("ERROR "+$(j,P))},warn(j,P){if(X("WARN"))w("WARN "+$(j,P))},tag(j,P){if(q)q[j]=P;return W},clone(){return h({...q})},time(j,P){let R=Date.now();W.info(j,{status:"started",...P});function Y(){W.info(j,{status:"completed",duration:Date.now()-R,...P})}return{stop:Y,[Symbol.dispose](){Y()}}}};if(H&&typeof H==="string")c.set(H,W);return W}
|
|
4
|
-
export{Wq as _s,Gq as $s,_ as at,Vq as bt,F as ct,Fq as dt,L as et,s as ft,a as gt,e as ht,qq as it,Hq as jt,Jq as kt,D as lt,h as mt,Pq as nt};
|
package/bundle/chunk-xwgc2pw7.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{of as UH}from"./chunk-mxhb5adq.js";import{Oo as jH,so as GH,wo as e}from"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import{ts as P}from"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import{Xs as NH}from"./chunk-0z1cxvk1.js";import{et as o,mt as DH}from"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-f83wv08n.js";var EH=0.9,RH=256,$H="[Earlier tool result removed to fit the request size limit]",u;function v(H){return Buffer.byteLength(JSON.stringify(H),"utf8")}function XH(){return o.QITQODE_QLEX_MAX_REQUEST_BYTES??u}function a(H){let Z=o.QITQODE_QLEX_MAX_REQUEST_BYTES;if(Z!==void 0)return Z;let $=Math.max(1,Math.min(Math.floor(H*EH),Math.floor(H)-1));return u=u===void 0?$:Math.min(u,$),u}function c(H,Z){return!!H&&typeof H==="object"&&H.role===Z}function JH(H){let Z=[],$=0;while($<H.length){let J=$,K=H[$];if($++,c(K,"assistant")&&Array.isArray(K?.tool_calls)&&K.tool_calls.length>0)while($<H.length&&c(H[$],"tool"))$++;Z.push({start:J,end:$})}return Z}function KH(H,Z){if(Z.length===0)return[];let $=-1;for(let J=Z.length-1;J>=0;J--){let K=Z[J],z=!1;for(let X=K.start;X<K.end;X++)if(c(H[X],"user"))z=!0;if(z){$=J;break}}return Z.filter((J,K)=>{if(K===Z.length-1)return!1;if(K===$)return!1;if(J.start===0&&c(H[0],"system"))return!1;return!0})}function s(H,Z){let $=v(H),J={toolResultsElided:0,unitsDropped:0},K=()=>({body:H,bytes:$,originalBytes:$,reduced:!1,actions:J});if(!H||typeof H!=="object")return K();let z=H.messages;if(!Array.isArray(z))return K();let X=z.map((U)=>U&&typeof U==="object"?{...U}:U),Y=()=>({...H,messages:X}),D=()=>v(Y())<=Z;{let U=X;for(let _ of KH(U,JH(U))){let q=!1;for(let k=_.start;k<_.end;k++){let w=U[k];if(!c(w,"tool"))continue;let R=w?.content;if(typeof R!=="string"||R.length<RH)continue;if(R===$H)continue;U[k]={...w,content:$H},J.toolResultsElided++,q=!0}if(q&&D())break}}if(!D())for(;;){let U=X,q=KH(U,JH(U))[0];if(!q)break;if(X=[...U.slice(0,q.start),...U.slice(q.end)],J.unitsDropped++,D())break}let N=Y(),W=v(N);return{body:N,bytes:W,originalBytes:$,reduced:W<$&&W<=Z,actions:J}}var M=DH({service:"provider.qlex"}),CH=P.streamUrl(),IH=P.omniqueryBaseUrl()+"/runOrchestrated";function b(H,Z){let $=H;if(Z.status!==void 0)$.status=Z.status;if(Z.upstreamCode!==void 0)$.upstreamCode=Z.upstreamCode;if(Z.requestId!==void 0)$.requestId=Z.requestId;if($.category=Z.category,$.retryable=Z.retryable,Z.outputBudgetRecoveryAvailable!==void 0)$.outputBudgetRecoveryAvailable=Z.outputBudgetRecoveryAvailable;if(Z.outputBudgetRecoveryTokens!==void 0)$.outputBudgetRecoveryTokens=Z.outputBudgetRecoveryTokens}function x(H,Z){return{...H,...Z}}class _H extends Error{name="QlexNotLoggedInError";constructor(H){super(P.copy().notLoggedIn);b(this,x({category:"invalid_credentials",retryable:!1},H))}}class FH extends Error{name="QlexInsufficientBalanceError";constructor(H,Z){super(P.copy().insufficientBalance(H));b(this,x({status:402,category:"billing",retryable:!1},Z))}}class OH extends Error{name="QlexRateLimitError";constructor(H){super(P.copy().rateLimit);b(this,x({status:429,category:"rate_limited",retryable:!0},H))}}class LH extends Error{name="QlexInvalidCredentialsError";constructor(H,Z){super(P.copy().invalidCredentials(H));b(this,x({status:401,category:"invalid_credentials",retryable:!1},Z))}}class qH extends Error{name="QlexRequestRejectedError";constructor(H,Z,$){super(P.copy().requestRejected(H,Z));b(this,x({status:400,category:"request_rejected",retryable:!1},$))}}class n extends Error{name="QlexRequestTooLargeError";stage;constructor(H="irreducible",Z,$){super(H==="after-reduction"?P.copy().requestTooLargeAfterReduction(Z):P.copy().requestTooLargeIrreducible(Z));this.stage=H,b(this,x({status:413,category:"request_too_large",retryable:!1},$))}}class QH extends Error{name="QlexRequestNotSentError";constructor(H,Z){super(P.copy().requestNotSent(H));b(this,x({category:"request_rejected",retryable:!1},Z))}}class g extends Error{name="QlexGatewayError";constructor(H,Z){super(P.copy().gatewayUnavailable(H));b(this,x({category:"gateway_routing",retryable:!1},Z))}}var TH=60000,BH=180000;function QZ(H){return P.sanitizeUpstreamError(H)}class y extends Error{name="QlexStreamError";constructor(H,Z){let $=x({category:"unknown",retryable:!1},Z);super($.category==="output_budget_exhausted"?P.copy().outputBudgetExhausted():$.category==="empty_output"?P.copy().emptyOutput():$.category==="stream_truncated"?P.copy().streamCutOff():$.category==="stream_failed"?P.copy().streamFailedAfterRetries():P.copy().streamFailed(H));b(this,$),NH(this)}}var bH=[{match:/\b(unauthori[sz]ed|forbidden|invalid[ _-]?(api[ _-]?key|token|credential)|expired[ _-]?token|authentication[ _-]?(failed|error)|401|403)\b/i,category:"invalid_credentials",retryable:!1},{match:/(output (?:token )?budget|maximum output tokens|max_tokens|finish[_ -]?reason.{0,20}(length|budget)|reasoning.{0,20}(budget|tokens))/i,category:"output_budget_exhausted",retryable:!1},{match:/\b(no visible output|empty output|produced no (?:visible )?(?:text|output)|nothing to display)\b/i,category:"empty_output",retryable:!1},{match:/\b(insufficient[ _-]?(credits?|qredits?|balance|funds)|payment[ _-]?required|quota[ _-]?exceeded|out[ _-]?of[ _-]?(credits?|qredits?)|402)\b/i,category:"billing",retryable:!1},{match:/\b(rate[ _-]?limit(ed|s)?|too[ _-]?many[ _-]?requests|429)\b/i,category:"rate_limited",retryable:!0},{match:/(unexpected end of (json|input|stream|data)|premature (close|end)|socket hang ?up|incomplete (response|output|json|message)|truncated|stream (ended|closed|terminated) (early|unexpectedly|prematurely)|\bECONNRESET\b|\bEPIPE\b)/i,category:"stream_truncated",retryable:!0},{match:/\b(overloaded|at capacity|service[ _-]?unavailable|temporarily[ _-]?unavailable|bad[ _-]?gateway|gateway[ _-]?time(d[ _-]?out|out)|timed[ _-]?out|502|503|504)\b/i,category:"transient",retryable:!0}],xH={ERR_EMPTY_RESULT:{category:"empty_output",retryable:!1},ERR_TRUNCATED_OUTPUT:{category:"stream_truncated",retryable:!0},ERR_STREAM:{category:"stream_failed",retryable:!0}},hH=/^\s*(ERR_[A-Z0-9_]+)\b(?:\s*(?:[\u2014\u2013:-]\s*)?)?/i,vH=/\b(req_[A-Za-z0-9][A-Za-z0-9_-]*)\b/;function fH(H){let Z=H??"",$=hH.exec(Z),J=$?.[1]?.toUpperCase(),K=vH.exec(Z)?.[1],z=$?Z.slice($[0].length):Z;if(J!==void 0){let X=xH[J];if(X!==void 0)return{...X,upstreamCode:J,...K?{requestId:K}:{}}}for(let X of bH)if(X.match.test(z))return{category:X.category,retryable:X.retryable,...J?{upstreamCode:J}:{},...K?{requestId:K}:{}};return{category:"unknown",retryable:!1,...J?{upstreamCode:J}:{},...K?{requestId:K}:{}}}function yH(H){return GH(H)}function PH(H,Z){let $,J,K,z=!1;try{let N=JSON.parse(Z);if(N&&typeof N==="object"){let W=N.error&&typeof N.error==="object"?N.error:void 0;if(typeof W?.code==="string")$=W.code;else if(typeof N.code==="string")$=N.code;if(typeof W?.message==="string")J=W.message;else if(typeof N.message==="string")J=N.message;if(typeof N.details?.field==="string")K=N.details.field}}catch(N){z=/^\s*[\[{]/.test(Z)&&(gH(Z)||/unexpected end|end of json|unterminated string/i.test(String(N)))}let X=$?.toUpperCase()??"",Y=(()=>{if(z)return"stream_truncated";if(H===402)return"billing";if(H===413)return"request_too_large";if(H===429)return"rate_limited";if(H===401||H===403)return X==="ERR_GATEWAY_REQUIRED"||yH(Z)?"gateway_routing":"invalid_credentials";if(X.includes("CONFIG"))return"configuration";if(H>=500)return"transient";if(H>=400)return"request_rejected";return"unknown"})(),D={status:H,category:Y,retryable:Y==="transient"||Y==="rate_limited"||Y==="stream_truncated"};if($!==void 0)D.upstreamCode=$;if(J!==void 0)D.upstreamMessage=J;if(K!==void 0)D.field=K;return D}function gH(H){let Z=0,$=!1,J=!1;for(let K of H){if($){if(J)J=!1;else if(K==="\\")J=!0;else if(K==='"')$=!1;continue}if(K==='"')$=!0;else if(K==="{"||K==="[")Z++;else if(K==="}"||K==="]")Z--;if(Z<0)return!1}return $||Z>0}var pH=new Set(["coding","agent","research","review","chat"]);function uH(H){if(H===void 0)return;if(typeof H==="string"&&pH.has(H))return H;throw Error(`invalid Qortex posture: ${String(H)}`)}function cH(H){if(H===void 0)return;let Z=Array.isArray(H)?H:[H];if(Z.every(($)=>typeof $==="string"&&/^[^/\s]+\/[^/\s]+$/.test($)))return Array.isArray(H)?Z:H;throw Error(`invalid Qortex directive registry key: ${String(H)}`)}function l(H){if(typeof H==="string")return H;if(Array.isArray(H))return H.map((Z)=>{if(typeof Z==="string")return Z;if(Z&&typeof Z==="object"){let $=Z;if(typeof $.text==="string")return $.text;if(typeof $.content==="string")return $.content}return""}).join("");if(H===void 0||H===null)return"";return String(H)}var mH="[Tool call]",iH="[Tool returned no output]";function kH(H){if(!Array.isArray(H))return{messages:H,dropped:[]};let Z=[];return{messages:H.flatMap((J,K)=>{if(!J||typeof J!=="object")return Z.push({index:K,role:typeof J,reason:"not-an-object"}),[];let z=J,X=l(z.content);if(X.trim().length>0)return[{...z,content:X}];if(z.role==="assistant"&&Array.isArray(z.tool_calls)&&z.tool_calls.length>0)return[{...z,content:mH}];if(z.role==="tool"&&typeof z.tool_call_id==="string"&&z.tool_call_id.trim().length>0)return[{...z,content:iH}];return Z.push({index:K,role:typeof z.role==="string"?z.role:"unknown",reason:"empty-content"}),[]}),dropped:Z}}function dH(H){return kH(H).messages}function lH(H){if(!Array.isArray(H))return!1;return H.some((Z)=>!!Z&&typeof Z==="object"&&Z.role==="user")}function nH(H){if(!Array.isArray(H))return!1;return H.some((Z)=>{if(!Z||typeof Z!=="object")return!1;let $=Z;if($.role!=="user")return!1;return l($.content).trim().length>0})}function rH(H){if(!Array.isArray(H))return H;let Z=(z)=>!!z&&typeof z==="object"&&z.role==="system",$=0;while($<H.length&&Z(H[$]))$++;if($<=1)return H;let J=H.slice(0,$),K=J.map((z)=>typeof z.content==="string"?z.content:String(z.content??"")).filter((z)=>z.length>0).join(`
|
|
3
|
-
|
|
4
|
-
`);return[{...J[0],role:"system",content:K},...H.slice($)]}var m="<tool_call>",i="</tool_call>";function oH(H){if(!Array.isArray(H)||H.length===0)return;let Z=H.map(($)=>{try{return JSON.stringify($)}catch{return}}).filter(($)=>$!==void 0);if(Z.length===0)return;return["# Tools","","You may call one or more functions to assist with the user query.","","You are provided with function signatures within <tools></tools> XML tags:","<tools>",...Z,"</tools>","","For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:","<tool_call>",'{"name": <function-name>, "arguments": <args-json-object>}',"</tool_call>","","Function results will be provided within <tool_response></tool_response> XML tags. Do not write <tool_response> blocks yourself.","Only use the functions declared above. Never invent function names, and never write out a function-call-like block in any other format."].join(`
|
|
5
|
-
`)}var aH=3;function HH(H){let Z=H;for(let $=0;$<aH;$++){if(Z!==null&&typeof Z==="object")return Z;if(typeof Z!=="string")return;try{Z=JSON.parse(Z)}catch{return}}return}function sH(H){let Z=H?.tool_calls;if(!Array.isArray(Z))return;for(let $ of Z){let J=$?.function;if(!J)continue;M.debug("tool call ingress",{tool:typeof J.name==="string"?J.name:"?",source:"native",args:ZH(J.arguments)})}}function ZH(H,Z=300){let $;try{$=typeof H==="string"?H:JSON.stringify(H)??String(H)}catch{$="<unrenderable>"}return $.length<=Z?$:`${$.slice(0,Z)}\u2026 (${$.length} chars total)`}function tH(H){let Z=H.function??{},$=typeof Z.name==="string"?Z.name:"",J=Z.arguments===void 0?{}:HH(Z.arguments);if(J===void 0)M.warn("dropping unrecoverable tool-call arguments while re-encoding history",{tool:$,raw:ZH(Z.arguments)});return`${m}
|
|
6
|
-
${JSON.stringify({name:$,arguments:J??{}})}
|
|
7
|
-
${i}`}function SH(H,Z){if(!Array.isArray(H))return H;let $=H.map((K)=>{if(!K||typeof K!=="object")return K;let z=K;if(z.role==="assistant"&&Array.isArray(z.tool_calls)){let X=z.tool_calls.map(tH).join(`
|
|
8
|
-
`),Y=l(z.content),{tool_calls:D,...N}=z;return{...N,content:Y.length>0?`${Y}
|
|
9
|
-
${X}`:X}}if(z.role==="tool"){let{tool_call_id:X,name:Y,...D}=z;return{...D,role:"user",content:`<tool_response>
|
|
10
|
-
${l(z.content)}
|
|
11
|
-
</tool_response>`}}return K}),J=oH(Z);if(J){let K=0;while(K<$.length&&!!$[K]&&typeof $[K]==="object"&&$[K].role==="system")K++;$.splice(K,0,{role:"system",content:J})}return $}function eH(){return process.env.QITQODE_TOOL_PROTOCOL==="text"?"text":"native"}function HZ(H){if(Array.isArray(H.tools)&&H.tools.length>0)return!0;let Z=H.messages;if(!Array.isArray(Z))return!1;return Z.some(($)=>{if(!$||typeof $!=="object")return!1;let J=$;return J.role==="tool"||J.role==="assistant"&&Array.isArray(J.tool_calls)})}function zH(H,Z){let $=Z?.toolMode??"native",J=H.model??"default",K={stream:H.stream??!0};if(H.temperature!==void 0)K.temperature=H.temperature;if(H.max_tokens!==void 0)K.max_tokens=H.max_tokens;let z=Z?.outputAdvisory;if(z){let W=z.tierOutputLimit;if(K.max_tokens!==void 0){if(W!==void 0&&K.max_tokens>W)K.max_tokens=W}else{let U=z.recommendedTotalTokens??z.tierRecommendedStepTokens??W,_=U===void 0?void 0:W===void 0?U:Math.min(U,W);if(_!==void 0)K.max_tokens=_}if(Z?.outputBudgetRecoveryTokens!==void 0){let U=typeof K.max_tokens==="number"?K.max_tokens:0,_=z.tierOutputLimit??Z.outputBudgetRecoveryTokens;if(Z.outputBudgetRecoveryTokens>U)K.max_tokens=Math.min(Z.outputBudgetRecoveryTokens,_)}}if(H.tools!==void 0)K.tools=H.tools;if(H.tool_choice!==void 0)K.tool_choice=H.tool_choice;if(H.stream_options!==void 0)K.stream_options=H.stream_options;let X=$==="text"?SH(H.messages,H.tools):H.messages,Y={},D=uH(H.posture);if(D!==void 0)Y.posture=D;let N=cH(H.directive);if(N!==void 0)Y.directive=N;if(H.modelPersona!==void 0)Y.modelPersona=H.modelPersona;return{tier:J,messages:rH(dH(X)),opts:K,...Y}}var r=new Map;function f(H){return typeof H==="number"&&Number.isFinite(H)&&H>0?H:void 0}function ZZ(H,Z){let $={},J=f(Z.tierOutputLimit),K=f(Z.tierRecommendedStepTokens),z=f(Z.reasoningReserveTokens),X=f(Z.visibleOutputFloorTokens),Y=f(Z.recommendedTotalTokens),D=f(Z.viableTotalFloorTokens),N=f(Z.budgetPolicyVersion);if(J!==void 0)$.tierOutputLimit=J;if(K!==void 0)$.tierRecommendedStepTokens=K;if(z!==void 0)$.reasoningReserveTokens=z;if(X!==void 0)$.visibleOutputFloorTokens=X;if(Y!==void 0)$.recommendedTotalTokens=Y;if(D!==void 0)$.viableTotalFloorTokens=D;if(typeof Z.reasoningReported==="boolean")$.reasoningReported=Z.reasoningReported;if(N!==void 0)$.budgetPolicyVersion=N;if(Object.keys($).length===0)return;r.set(H,$)}function $Z(H){return r.get(H)}function PZ(){r.clear()}function JZ(H){let Z=($)=>typeof $==="string"&&($.startsWith("qlex")||$.startsWith("qortex"));return Z(H.id)||Z(H.object)}function KZ(H){let Z=[],$=H.indexOf(`
|
|
12
|
-
`)===-1?[H]:H.split(`
|
|
13
|
-
`);for(let X of $){let Y=X.endsWith("\r")?X.slice(0,-1):X;if(!Y.startsWith("data:"))continue;let D=Y.slice(5);if(D.startsWith(" "))D=D.slice(1);Z.push(D)}if(Z.length===0)return{kind:"skip"};let J=Z.length===1?Z[0]:Z.join(`
|
|
14
|
-
`);if(J==="")return{kind:"skip"};if(J==="[DONE]")return{kind:"done"};if(J.startsWith("[ERROR]"))return{kind:"error",message:J.slice(7).trim()||"qlex stream error"};let K=J.charCodeAt(0),z=K===123||K===91||K===32||K===9||K===10||K===13;try{if(!z)return{kind:"token",content:J};let X=JSON.parse(J);if(X&&typeof X==="object"){let Y=X.id;if(Y==="qlex-cost"||Y==="qortex-cost")return{kind:"cost",cost:X};if(Y==="qlex-stream"&&X.usage&&typeof X.usage==="object"){let W=X.choices,U;if(Array.isArray(W)&&W[0]&&typeof W[0]==="object"){let _=W[0].finish_reason;if(typeof _==="string")U=_}return{kind:"usage",usage:X.usage,finishReason:U}}if(Array.isArray(X.choices))return{kind:"passthrough",chunk:X};let D=X,N=typeof D.content==="string"?D.content:typeof D.text==="string"?D.text:typeof D.delta==="string"?D.delta:void 0;if(N!==void 0)return{kind:"token",content:N};if(JZ(X)){let W=X.object;return{kind:"control",control:typeof W==="string"&&W.endsWith(".tier.outputLimits")?"tier-output-limits":"unknown",chunk:X}}}}catch{}return{kind:"token",content:J}}function XZ(H,Z){let $=Math.min(H.length,Z.length-1);for(let J=$;J>=1;J--)if(Z.startsWith(H.slice(H.length-J)))return J;return 0}function zZ(H){if(typeof H==="string"){try{let $=JSON.parse(H);if($!==null&&typeof $==="object")return H}catch{}let Z=HH(H);return JSON.stringify(Z??H)}return JSON.stringify(H??{})}class MH{onText;onToolCall;pending="";inBlock=!1;constructor(H,Z){this.onText=H;this.onToolCall=Z}feed(H){this.pending+=H,this.drain(!1)}flush(){if(this.drain(!0),this.inBlock)this.emitBlock(this.pending,!0),this.inBlock=!1;else if(this.pending.length>0)this.onText(this.pending);this.pending=""}drain(H){while(!0)if(!this.inBlock){let Z=this.pending.indexOf(m);if(Z===-1){let $=H?0:XZ(this.pending,m),J=this.pending.length-$;if(J>0)this.onText(this.pending.slice(0,J)),this.pending=$>0?this.pending.slice(J):"";return}if(Z>0)this.onText(this.pending.slice(0,Z));this.pending=this.pending.slice(Z+m.length),this.inBlock=!0}else{let Z=this.pending.indexOf(i);if(Z===-1)return;if(this.emitBlock(this.pending.slice(0,Z),!1),this.pending=this.pending.slice(Z+i.length),this.pending.startsWith(`\r
|
|
15
|
-
`))this.pending=this.pending.slice(2);else if(this.pending.startsWith(`
|
|
16
|
-
`))this.pending=this.pending.slice(1);this.inBlock=!1}}emitBlock(H,Z){try{let $=JSON.parse(H.trim());if($&&typeof $==="object"&&typeof $.name==="string"){this.onToolCall({name:$.name,arguments:zZ($.arguments)});return}}catch{}this.onText(`${m}${H}${Z?"":i}`)}}function t(H,Z,$){let J={id:"qlex-stream",object:"chat.completion.chunk",created:Math.floor(Date.now()/1000),model:"qlex",choices:[{index:0,delta:H,finish_reason:Z}]};if($)J.usage=$;return`data: ${JSON.stringify(J)}
|
|
17
|
-
|
|
18
|
-
`}function YZ(H,Z){let $=Z?.toolProtocolEnabled===!0,J=Z?.tier,K=Z?.requestedOutputBudget,z=Z?.idleTimeoutMs??BH,X=H.getReader(),Y=new TextDecoder,D=new TextEncoder,N="",W=!1,U=!1,_,q,k,w,R=!1,A=!1,h=0,C=0;return new ReadableStream({async start(F){let T=(V)=>{if(V.length>0)R=!0;C+=V.length;let G=W?{content:V}:{role:"assistant",content:V};W=!0,F.enqueue(D.encode(t(G,null)))},p=0,O=$?new MH(T,(V)=>{M.debug("tool call ingress",{tool:V.name,source:"text-shim",args:ZH(V.arguments),objectShaped:HH(V.arguments)!==void 0});let G={...W?{}:{role:"assistant"},tool_calls:[{index:p,id:`qlexcall_${Date.now().toString(36)}_${p}`,type:"function",function:{name:V.name,arguments:V.arguments}}]};W=!0,A=!0,p++,F.enqueue(D.encode(t(G,null)))}):void 0,Q=(V)=>O?O.feed(V):T(V),E=()=>{O?.flush();let G=_||q!==void 0||k!==void 0?{prompt_tokens:_?.tokens.prompt??k?.prompt??0,completion_tokens:_?.tokens.completion??k?.completion??0,total_tokens:_?.tokens.total??(_?.tokens.prompt??k?.prompt??0)+(_?.tokens.completion??k?.completion??0),cost_usd:_?.cost_usd,cost_credits:_?.cost_credits??_?.cost_qredits,context_window:q}:void 0;if(G&&(G.cost_usd??0)>0&&G.prompt_tokens===0)M.warn("qlex billed turn reported zero prompt tokens",{tier:J,completionTokens:G.completion_tokens,costUsd:G.cost_usd,source:_?"cost.summary":"usage frame"});let j=p>0?"tool_calls":w??"stop";if(j==="length"||j==="max_tokens"){let L=d(J??"default",K),I=L!==void 0;M.debug("qlex output budget exhausted",{tier:J,contentStreamed:R,outputBudgetRecoveryAvailable:I}),F.error(new y("output budget exhausted",{category:"output_budget_exhausted",retryable:!1,outputBudgetRecoveryAvailable:I,outputBudgetRecoveryTokens:L})),U=!0;return}if(!R&&!A&&w!=="tool_calls"){let L=d(J??"default",K),I=L!==void 0;M.debug("qlex completed without visible output",{tier:J,outputBudgetRecoveryAvailable:I}),F.error(new y("empty output",{category:"empty_output",retryable:!1,outputBudgetRecoveryAvailable:I,outputBudgetRecoveryTokens:L})),U=!0;return}if(F.enqueue(D.encode(t({},j,G))),F.enqueue(D.encode(`data: [DONE]
|
|
19
|
-
|
|
20
|
-
`)),!_&&J!==void 0)M.info("qlex cost frame absent on stream finish",{tier:J});F.close(),U=!0},S=(V)=>{let G=KZ(V);switch(h++,G.kind){case"skip":return!1;case"token":return Q(G.content),!1;case"passthrough":{let j=G.chunk.choices;if(Array.isArray(j)&&j[0]&&typeof j[0]==="object"){let L=j[0].finish_reason;if(typeof L==="string")w=L;let I=j[0].delta;if(typeof I?.content==="string"&&I.content.length>0)R=!0;if(Array.isArray(I?.tool_calls))A=!0;sH(j[0].delta)}W=!0;{let L=G.chunk.choices?.[0]?.delta?.content;if(typeof L==="string")C+=L.length}return F.enqueue(D.encode(`data: ${JSON.stringify(G.chunk)}
|
|
21
|
-
|
|
22
|
-
`)),!1}case"cost":if(G.cost.final)_=G.cost;return!1;case"usage":if(G.usage.context_window!==void 0)q=G.usage.context_window;if(G.usage.prompt_tokens!==void 0&&G.usage.completion_tokens!==void 0)k={prompt:G.usage.prompt_tokens,completion:G.usage.completion_tokens};if(G.finishReason!==void 0)w=G.finishReason;return!1;case"control":{if(G.control==="tier-output-limits"){let j=G.chunk;if(J!==void 0)ZZ(J,j);M.debug("qlex tier output limits",{tierOutputLimit:j.tierOutputLimit,tierRecommendedStepTokens:j.tierRecommendedStepTokens,tierStepGuidance:j.tierStepGuidance,reasoningReserveTokens:j.reasoningReserveTokens,visibleOutputFloorTokens:j.visibleOutputFloorTokens,recommendedTotalTokens:j.recommendedTotalTokens,viableTotalFloorTokens:j.viableTotalFloorTokens,reasoningReported:j.reasoningReported,budgetPolicyVersion:j.budgetPolicyVersion})}else M.debug("qlex control frame dropped",{id:G.chunk.id,object:G.chunk.object});return!1}case"done":return E(),!0;case"error":{let j=fH(G.message);M.warn("qlex stream error frame",{tier:J,raw:G.message,frameIndex:h,streamedContentChars:C,contentStreamed:W,upstreamCode:j.upstreamCode,requestId:j.requestId,category:j.category,retryable:j.retryable});let L=j.category==="output_budget_exhausted"||j.category==="empty_output"?d(J??"default",K):void 0;if(j.retryable===!1&&L!==void 0)j.outputBudgetRecoveryAvailable=!0,j.outputBudgetRecoveryTokens=L;return F.error(new y(G.message,j)),U=!0,!0}}},B=async()=>{if(!(z>0))return X.read();let V;try{return await Promise.race([X.read(),new Promise((G,j)=>{V=setTimeout(()=>{let L=Math.round(z/1000);M.warn("qlex stream idle timeout",{tier:J,idleTimeoutMs:z,frameIndex:h,streamedContentChars:C,contentStreamed:W}),j(new y(`the gateway sent nothing for ${L}s`,{category:"transient",retryable:!0})),X.cancel(Error(`qlex stream idle for ${L}s`)).catch(()=>{})},z)})])}finally{if(V!==void 0)clearTimeout(V)}};try{while(!0){let{done:G,value:j}=await B();if(G)break;N+=Y.decode(j,{stream:!0});let L;while((L=N.indexOf(`
|
|
23
|
-
|
|
24
|
-
`))!==-1){let I=N.slice(0,L);if(N=N.slice(L+2),S(I))return}}N+=Y.decode();let V=N.replace(/\r?\n$/,"");if(V.length>0&&S(V))return;if(!U)E()}catch(V){if(!U)F.error(V instanceof y?V:new y(V instanceof Error?V.message:String(V)))}finally{X.releaseLock()}},cancel(F){X.cancel(F).catch(()=>{})}})}function wH(H){return{content:typeof H.content==="string"?H.content:H.choices?.[0]?.message?.content??"",finishReason:H.choices?.[0]?.finish_reason??"stop"}}function WZ(H){let Z=H??{},{content:$,finishReason:J}=wH(Z),K=Z.usage??{},z=K.prompt_tokens??0,X=K.completion_tokens??0,Y="orch-"+Date.now().toString(36),D=Math.floor(Date.now()/1000),N=(k,w,R)=>{let A={id:Y,object:"chat.completion.chunk",created:D,model:"orchestrated",choices:[{index:0,delta:k,finish_reason:w}]};if(R)A.usage=R;return`data: ${JSON.stringify(A)}
|
|
25
|
-
|
|
26
|
-
`},W={prompt_tokens:z,completion_tokens:X,total_tokens:K.total_tokens??z+X};if(typeof K.cost_usd==="number")W.cost_usd=K.cost_usd;if(typeof K.cost_credits==="number")W.cost_credits=K.cost_credits;if(typeof K.context_window==="number")W.context_window=K.context_window;let U=[N({role:"assistant",content:""},null),N({content:$},null),N({},J,W),`data: [DONE]
|
|
27
|
-
|
|
28
|
-
`],_=new TextEncoder,q=new ReadableStream({start(k){for(let w of U)k.enqueue(_.encode(w));k.close()}});return new Response(q,{status:200,headers:{"content-type":"text/event-stream"}})}function kZ(H){let Z=H??{},{content:$,finishReason:J}=wH(Z),K=Z.usage??{},z=K.prompt_tokens??0,X=K.completion_tokens??0,Y={id:"orch-"+Date.now(),object:"chat.completion",created:Math.floor(Date.now()/1000),model:"orchestrated",choices:[{index:0,message:{role:"assistant",content:$},finish_reason:J}],usage:{prompt_tokens:z,completion_tokens:X,total_tokens:K.total_tokens??z+X,...typeof K.cost_usd==="number"?{cost_usd:K.cost_usd}:{},...typeof K.context_window==="number"?{context_window:K.context_window}:{}}};return new Response(JSON.stringify(Y),{status:200,headers:{"content-type":"application/json"}})}async function VZ(H,Z,$){let J=PH(H,Z),K=Z?`HTTP ${H}: ${Z}`:`HTTP ${H}`;switch(M.error("gateway rejected request",{tier:$.tier,status:H,category:J.category,upstreamCode:J.upstreamCode,field:J.field,retryable:J.retryable}),J.category){case"billing":return new FH(Z||void 0,J);case"rate_limited":return new OH(J);case"gateway_routing":return new g(`HTTP ${H}`,J);case"invalid_credentials":return await $.onInvalidCredentials?.().catch(()=>{}),new LH(K,J);case"request_too_large":return new n("irreducible",J.upstreamMessage??Z??void 0,J);case"request_rejected":case"tool_protocol":return new qH(J.upstreamMessage??Z??void 0,J.field,J);case"configuration":case"transient":case"unknown":default:return new g(K,J)}}function YH(H){let Z=XH();if(Z===void 0)return H;let $=v(H);if($<=Z)return H;let J=s(H,Z);return M.warn("request over known size ceiling, reducing before send",{tier:H.tier,bytes:$,ceiling:Z,reducedBytes:J.bytes,fits:J.reduced,...J.actions}),J.bytes<$?J.body:H}function WH(H){let Z=v(H),$=a(Z),J=s(H,$);if(!J.reduced)throw M.error("request too large and cannot be reduced further",{tier:H.tier,rejectedBytes:Z,ceiling:$,reducedBytes:J.bytes,...J.actions}),new n("irreducible");return M.warn("request too large, retrying once with reduced history",{tier:H.tier,rejectedBytes:Z,ceiling:$,reducedBytes:J.bytes,...J.actions,notice:P.copy().requestTooLargeRecovering()}),J.body}function VH(H){let Z=v(H);throw a(Z),M.error("reduced request still too large",{tier:H.tier,rejectedBytes:Z}),new n("after-reduction")}function DZ(H,Z=globalThis.fetch,$,J){let K=J?.responseTimeoutMs??TH;return async(z,X)=>{if(X?.method==="POST"&&typeof X?.body==="string"){let Y;try{Y=JSON.parse(X.body)}catch{return Z(z,X)}let D=eH(),N=$Z(Y.model??"default"),W=zH(Y,{toolMode:D,outputAdvisory:N});if(lH(Y.messages)&&!nH(W.messages)){let{dropped:O}=kH(D==="text"?SH(Y.messages,Y.tools):Y.messages);throw M.error("refusing to send: user message lost in normalization",{tier:W.tier,toolMode:D,inputRoles:Array.isArray(Y.messages)?Y.messages.map((Q)=>Q&&typeof Q==="object"?String(Q.role):"?"):"not-an-array",droppedCount:O.length,dropped:O}),new QH("your message could not be turned into sendable content")}let U=await H(),_=typeof U==="string"?{key:U,method:"sso"}:U;if(!_?.key)throw new _H;let q=new Headers(X.headers),k=()=>{if(_.method==="api-key")q.delete("Authorization"),q.set("x-api-key",_.key);else q.delete("x-api-key"),q.set("Authorization",`Bearer ${_.key}`)};k(),q.set("Content-Type","application/json");let w=!1,R=async(O,Q)=>{let E=PH(O,Q),S=async()=>({retry:!1,error:await VZ(O,Q,{onInvalidCredentials:$,tier:W.tier})});if(E.category!=="invalid_credentials"||w)return S();w=!0;let B=e(_),V=await jH(_);if(V.kind==="recovered"&&e(V.credential)!==B)return _=V.credential,k(),{retry:!0};if(V.kind==="inconclusive")return{retry:!1,error:new g(`HTTP ${O}: ${V.reason}`,E)};return S()};if(W.tier==="orchestrated"){let O=X.signal,Q=async(B)=>{let V=new AbortController,G=()=>V.abort(O?.reason);if(O)if(O.aborted)V.abort(O.reason);else O.addEventListener("abort",G,{once:!0});let j=!1,L=setTimeout(()=>{j=!0,V.abort()},K);try{return await Z(IH,{method:"POST",headers:q,body:JSON.stringify(B),signal:V.signal})}catch(I){if(j)throw new g(`no response within ${Math.round(K/1000)}s`);throw I}finally{clearTimeout(L),O?.removeEventListener("abort",G)}},E=YH(W),S=await Q(E);if(S.status===413){if(await S.body?.cancel().catch(()=>{}),E=WH(E),S=await Q(E),S.status===413)await S.body?.cancel().catch(()=>{}),VH(E)}while(!S.ok){let B=await S.text().catch(()=>""),V=await R(S.status,B);if(!V.retry)throw V.error;S=await Q(E)}return WZ(await S.json())}let A=X.signal,h=async(O)=>{let Q=new AbortController,E=()=>Q.abort(A?.reason);if(A)if(A.aborted)Q.abort(A.reason);else A.addEventListener("abort",E,{once:!0});let S=()=>A?.removeEventListener("abort",E),B=!1,V=setTimeout(()=>{B=!0,Q.abort()},K);try{return{res:await Z(CH,{method:"POST",headers:q,body:JSON.stringify(O),signal:Q.signal}),detach:S}}catch(G){if(S(),B)throw new g(`no response within ${Math.round(K/1000)}s`);throw G}finally{clearTimeout(V)}},C=YH(W),{res:F,detach:T}=await h(C);if(F.status===400&&D==="native"&&HZ(Y))T(),await F.body?.cancel().catch(()=>{}),C=zH(Y,{toolMode:"text",outputAdvisory:N}),{res:F,detach:T}=await h(C);if(F.status===413){if(T(),await F.body?.cancel().catch(()=>{}),C=WH(C),{res:F,detach:T}=await h(C),F.status===413)T(),await F.body?.cancel().catch(()=>{}),VH(C)}try{while(!F.ok){let O=await F.text().catch(()=>""),Q=await R(F.status,O);if(T(),!Q.retry)throw Q.error;({res:F,detach:T}=await h(C))}}catch(O){throw T(),O}if(Y.stream!==!1&&F.body){let O=Array.isArray(Y.tools)&&Y.tools.length>0;return new Response(YZ(F.body,{toolProtocolEnabled:O,tier:W.tier,requestedOutputBudget:W.opts.max_tokens}),{status:F.status,statusText:F.statusText,headers:{"content-type":"text/event-stream"}})}return F}return Z(z,X)}}function SZ(H){let Z=H.getToken??(async()=>H.bearerToken),$=DZ(Z,globalThis.fetch,H.onInvalidCredentials);return UH({name:H.name??"qlex",baseURL:P.streamBaseUrl(),fetch:$})}function MZ(H,Z){return d(H,Z)!==void 0}var NZ=2;function d(H,Z){let $=r.get(H),J=$?.tierOutputLimit;if(!$||!J)return;let K=Z??$.recommendedTotalTokens??$.tierRecommendedStepTokens;if(!K||K>=J)return;let z=$.recommendedTotalTokens??$.tierRecommendedStepTokens??K,X=Math.min(J,Math.max(K+1,K*NZ,z));return X>K?X:void 0}export{YZ as transformQlexStream,WZ as toOrchestratedSSEStream,kZ as toOpenAICompletion,QZ as sanitizeUpstreamProviderError,eH as resolveToolMode,oH as renderToolProtocolPrompt,ZZ as recordTierOutputAdvisory,XZ as partialTagSuffixLength,KZ as parseQlexFrame,PH as parseQlexError,kH as normalizeQlexMessagesWithReport,dH as normalizeQlexMessages,rH as mergeLeadingSystemMessages,yH as isGatewayRequiredError,lH as hasUserRoleMessage,nH as hasUsableUserMessage,HZ as hasToolContext,d as getTierOutputBudgetRecovery,$Z as getTierOutputAdvisory,l as flattenMessageContent,SH as encodeToolProtocolMessages,zZ as encodeExtractedArguments,HH as decodeToolArgumentsToObject,SZ as createQlexProvider,DZ as createCustomFetch,PZ as clearTierOutputAdvisories,fH as classifyQlexStreamError,MZ as canIncreaseTierOutputBudget,zH as buildQlexBody,MH as ToolCallExtractor,m as TOOL_CALL_OPEN,i as TOOL_CALL_CLOSE,y as QlexStreamError,n as QlexRequestTooLargeError,qH as QlexRequestRejectedError,QH as QlexRequestNotSentError,OH as QlexRateLimitError,_H as QlexNotLoggedInError,LH as QlexInvalidCredentialsError,FH as QlexInsufficientBalanceError,g as QlexGatewayError,CH as QLEX_STREAM_URL,BH as QLEX_STREAM_IDLE_TIMEOUT_MS,TH as QLEX_RESPONSE_TIMEOUT_MS,IH as QLEX_ORCHESTRATED_URL};
|
package/bundle/chunk-xxrtr6sd.js
DELETED
package/bundle/chunk-y8eggnrr.js
DELETED
package/bundle/chunk-yck5h49c.js
DELETED
package/bundle/chunk-yg0pfngv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{i as P,j as g,k as b,l as h,m as O}from"./chunk-2a9rzgk6.js";import"./chunk-p9mj4zyk.js";import"./chunk-ta7mfkms.js";import{Rd as u}from"./chunk-yajd975f.js";import{Uf as s}from"./chunk-t1jgx17a.js";import{Zg as f}from"./chunk-3kn57y8d.js";import"./chunk-nb86kh94.js";import{Th as E}from"./chunk-9rxyq6f9.js";import"./chunk-5az84brc.js";import"./chunk-94qhpkfx.js";import"./chunk-c1g8n10t.js";import"./chunk-a2dz9nqh.js";import"./chunk-vhe92p7a.js";import{Rj as S,Sj as p}from"./chunk-kc1xmcc9.js";import"./chunk-jjjs8p0t.js";import"./chunk-xnhvt98g.js";import"./chunk-hpa7e9va.js";import"./chunk-y287zwkr.js";import"./chunk-qeg0jnxq.js";import"./chunk-9eg2ytjd.js";import"./chunk-rk2bk4s7.js";import"./chunk-e586sjb0.js";import"./chunk-b50t4jc5.js";import"./chunk-zdzxsyxs.js";import"./chunk-xny5ecn0.js";import"./chunk-7myg8076.js";import"./chunk-my3cswnp.js";import"./chunk-4mvg7jt1.js";import"./chunk-cqtkxwd8.js";import"./chunk-wf4x5cjc.js";import"./chunk-mswx4k75.js";import"./chunk-vqpfpmha.js";import"./chunk-vm1ek7yf.js";import"./chunk-fd7fmvyw.js";import"./chunk-1sfcxdbw.js";import"./chunk-bgng3rdj.js";import"./chunk-qkh8697x.js";import"./chunk-qg9bt0kx.js";import"./chunk-pfkm3j8g.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-gr4bctqj.js";import"./chunk-732yr6qq.js";import"./chunk-73fz0cf4.js";import"./chunk-9nn4jpb7.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import{hz as I}from"./chunk-1p6jjrea.js";import{EB as d,TC as D,xH as l}from"./chunk-ks1cs80p.js";import"./chunk-a92hh67a.js";import"./chunk-qhnpq5gb.js";import"./chunk-f83wv08n.js";var A=(o)=>l.promise(()=>E(o)),m=(o)=>l.sync(()=>s.println(o)),v=(o)=>s.Style.TEXT_DIM+o+s.Style.TEXT_NORMAL,L=(o)=>o?v(" (active)"):"",w=(o,e)=>`${o.email} ${v(o.url)}${L(e)}`,x=(o,e,t)=>`${e.name} (${o.email})${L(t)}`,C=(o,e,t)=>{let n=t?s.Style.TEXT_SUCCESS+"\u25CF"+s.Style.TEXT_NORMAL:" ",c=t?s.Style.TEXT_HIGHLIGHT_BOLD+e.name+s.Style.TEXT_NORMAL:e.name;return` ${n} ${c} ${v(o.email)} ${v(o.url)} ${v(e.id)}`},T=(o,e)=>d.isSome(o)&&o.value.id===e.accountID&&o.value.active_org_id===e.orgID,_=l.fn("login")(function*(o){let e=yield*p.Service;yield*P("Log in");let t=yield*e.login(o);yield*b.info("Go to: "+t.url),yield*b.info("Enter code: "+t.user),yield*A(t.url);let n=O();yield*n.start("Waiting for authorization...");let c=(r)=>l.gen(function*(){yield*l.sleep(r);let i=yield*e.poll(t);if(i._tag==="PollPending")return yield*c(r);if(i._tag==="PollSlow")return yield*c(D.sum(r,D.seconds(5)));return i}),a=yield*c(t.interval).pipe(l.timeout(t.expiry),l.catchTag("TimeoutError",()=>l.succeed(new S)));yield*I.valueTags(a,{PollSuccess:(r)=>l.gen(function*(){yield*n.stop("Logged in as "+r.email),yield*g("Done")}),PollExpired:()=>n.stop("Device code expired",1),PollDenied:()=>n.stop("Authorization denied",1),PollError:(r)=>n.stop("Error: "+String(r.cause),1),PollPending:()=>n.stop("Unexpected state",1),PollSlow:()=>n.stop("Unexpected state",1)})}),N=l.fn("logout")(function*(o){let e=yield*p.Service,t=yield*e.list();if(t.length===0)return yield*m("Not logged in");if(o){let i=t.find((y)=>y.email===o);if(!i)return yield*m("Account not found: "+o);yield*e.remove(i.id),yield*g("Logged out from "+o);return}let n=yield*e.active(),c=d.map(n,(i)=>i.id);yield*P("Log out");let a=t.map((i)=>{let y=d.isSome(c)&&c.value===i.id;return{value:i,label:w(i,y)}}),r=yield*h({message:"Select account to log out",options:a});if(d.isNone(r))return;yield*e.remove(r.value.id),yield*g("Logged out from "+r.value.email)}),$=l.fn("switch")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("Not logged in");let t=yield*o.active(),n=e.flatMap((r)=>r.orgs.map((i)=>{let y=T(t,{accountID:r.account.id,orgID:i.id});return{value:{orgID:i.id,accountID:r.account.id,label:i.name},label:x(r.account,i,y)}}));if(n.length===0)return yield*m("No orgs found");yield*P("Switch org");let c=yield*h({message:"Select org",options:n});if(d.isNone(c))return;let a=c.value;yield*o.use(a.accountID,d.some(a.orgID)),yield*g("Switched to "+a.label)}),R=l.fn("orgs")(function*(){let o=yield*p.Service,e=yield*o.orgsByAccount();if(e.length===0)return yield*m("No accounts found");if(!e.some((n)=>n.orgs.length>0))return yield*m("No orgs found");let t=yield*o.active();for(let n of e)for(let c of n.orgs){let a=T(t,{accountID:n.account.id,orgID:c.id});yield*m(C(n.account,c,a))}}),M=l.fn("open")(function*(){let e=yield*(yield*p.Service).active();if(d.isNone(e))return yield*m("No active account");let t=e.value.url;yield*A(t),yield*g("Opened "+t)}),X=u({command:"login <url>",describe:!1,builder:(o)=>o.positional("url",{describe:"server URL",type:"string",demandOption:!0}),async handler(o){s.empty(),await f.runPromise(_(o.url))}}),B=u({command:"logout [email]",describe:!1,builder:(o)=>o.positional("email",{describe:"account email to log out from",type:"string"}),async handler(o){s.empty(),await f.runPromise(N(o.email))}}),U=u({command:"switch",describe:!1,async handler(){s.empty(),await f.runPromise($())}}),G=u({command:"orgs",describe:!1,async handler(){s.empty(),await f.runPromise(R())}}),H=u({command:"open",describe:!1,async handler(){s.empty(),await f.runPromise(M())}}),Y=u({command:"console",describe:!1,builder:(o)=>o.command({...X,describe:"log in to console"}).command({...B,describe:"log out from console"}).command({...U,describe:"switch active org"}).command({...G,describe:"list orgs"}).command({...H,describe:"open active console account"}).demandCommand(),async handler(){}});export{C as formatOrgLine,w as formatAccountLabel,U as SwitchCommand,G as OrgsCommand,H as OpenCommand,B as LogoutCommand,X as LoginCommand,Y as ConsoleCommand};
|
package/bundle/chunk-yxeja9kg.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Vf as a,Wf as b}from"./chunk-g5cgpvef.js";import"./chunk-hmznf0ax.js";import"./chunk-qf1dqzra.js";import"./chunk-03mbn7nj.js";import"./chunk-sh76e256.js";import"./chunk-0z1cxvk1.js";import"./chunk-x3afqfww.js";import"./chunk-cbmwhvxw.js";import"./chunk-9etpppyv.js";import"./chunk-9ea1n338.js";import"./chunk-ngvp6zc2.js";import"./chunk-1p6jjrea.js";import"./chunk-ks1cs80p.js";import"./chunk-f83wv08n.js";export{a as start,b as Heap};
|