@qitqode/qitqode-android-arm64 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/{chunk-9zg3y89v.js → chunk-02txthqv.js} +2 -2
- package/bundle/{chunk-q1472d56.js → chunk-0ae5q6ck.js} +2 -2
- package/bundle/chunk-0bvde0cx.js +2 -0
- package/bundle/chunk-0kbxnazj.js +2 -0
- package/bundle/{chunk-ax9yyznf.js → chunk-0pbt75ev.js} +1 -1
- package/bundle/{chunk-8hh5ejmr.js → chunk-0pvbk8ks.js} +2 -2
- package/bundle/{chunk-9jjjzmvn.js → chunk-0rtshz2r.js} +1 -1
- package/bundle/{chunk-8e2wwdgb.js → chunk-0w0jfzb4.js} +1 -1
- package/bundle/{chunk-9y65kbcf.js → chunk-0w4v0fbs.js} +2 -2
- package/bundle/{chunk-fzzze6zd.js → chunk-0z3z0gk1.js} +2 -2
- package/bundle/{chunk-ypff4a5n.js → chunk-17ggas8k.js} +1 -1
- package/bundle/chunk-19z5q33z.js +2 -0
- package/bundle/chunk-1a0wnwna.js +2 -0
- package/bundle/{chunk-3cpqdake.js → chunk-1d64dywx.js} +2 -2
- package/bundle/chunk-1ddm2wxv.js +2 -0
- package/bundle/chunk-1fk4vsmc.js +2 -0
- package/bundle/{chunk-m8tfv36b.js → chunk-1fnmkm0z.js} +2 -2
- package/bundle/chunk-1j2f9nd5.js +2 -0
- package/bundle/{chunk-b2k9yafd.js → chunk-1jh5p5qw.js} +2 -2
- package/bundle/{chunk-0136n3jt.js → chunk-1jsywey3.js} +1 -1
- package/bundle/{chunk-29hmwttd.js → chunk-1p34bx7c.js} +2 -2
- package/bundle/{chunk-m34zrf70.js → chunk-1xyn0sp2.js} +2 -2
- package/bundle/{chunk-g6gs7cc6.js → chunk-1y9t7nxn.js} +1 -1
- package/bundle/{chunk-zx90w4mt.js → chunk-21ejqv4v.js} +1 -1
- package/bundle/chunk-23geekk5.js +3 -0
- package/bundle/chunk-27s736an.js +2 -0
- package/bundle/{chunk-y68fp4kt.js → chunk-2eardzxs.js} +1 -1
- package/bundle/{chunk-jvkqvgae.js → chunk-2gxjjqfx.js} +1 -1
- package/bundle/chunk-2j17xrzj.js +2 -0
- package/bundle/{chunk-dq1wprmb.js → chunk-2mmspnr3.js} +1 -1
- package/bundle/{chunk-m8njvpb8.js → chunk-2qcndbxv.js} +1 -1
- package/bundle/{chunk-z65snfyw.js → chunk-2wp1w8cy.js} +1 -1
- package/bundle/{chunk-agx5m1ev.js → chunk-2y8qz8te.js} +1 -1
- package/bundle/{chunk-9n6f9n1c.js → chunk-2z6fzwyc.js} +2 -2
- package/bundle/chunk-2zca3nak.js +2 -0
- package/bundle/chunk-2zcvcfq4.js +2 -0
- package/bundle/chunk-38hwkfj5.js +2 -0
- package/bundle/chunk-3afqxvsn.js +2 -0
- package/bundle/chunk-3avc1ppg.js +7 -0
- package/bundle/{chunk-yccm7cfm.js → chunk-3nhqd8wg.js} +3 -3
- package/bundle/{chunk-hqv0s6sw.js → chunk-3tdqsm5c.js} +1 -1
- package/bundle/{chunk-0vhsc0yh.js → chunk-3tkp27x7.js} +2 -2
- package/bundle/chunk-3v4vtah1.js +2 -0
- package/bundle/{chunk-cwkdc1cc.js → chunk-3vbtra1j.js} +1 -1
- package/bundle/{chunk-b54t7ycj.js → chunk-3wzqs241.js} +1 -1
- package/bundle/chunk-3ypk0j2f.js +2 -0
- package/bundle/{chunk-jazpapb9.js → chunk-3z1y040p.js} +2 -2
- package/bundle/{chunk-3w60y2x5.js → chunk-453wpzg6.js} +1 -1
- package/bundle/chunk-4aykrj51.js +9 -0
- package/bundle/{chunk-ejy5404v.js → chunk-4d1a547n.js} +1 -1
- package/bundle/chunk-4dtbmqmq.js +2 -0
- package/bundle/{chunk-7pr4jxkn.js → chunk-4k149ews.js} +1 -1
- package/bundle/{chunk-hyr049cr.js → chunk-4kse3awh.js} +1 -1
- package/bundle/chunk-4q9w2yve.js +5 -0
- package/bundle/{chunk-1gg4c0pq.js → chunk-4tn69nqs.js} +1 -1
- package/bundle/chunk-4zjb6rps.js +2 -0
- package/bundle/{chunk-px15ev1g.js → chunk-58enbars.js} +2 -2
- package/bundle/{chunk-07szgr15.js → chunk-5h2hcp46.js} +1 -1
- package/bundle/chunk-5hkcjgwh.js +2 -0
- package/bundle/{chunk-7b69jj5g.js → chunk-5kmfnkzv.js} +1 -1
- package/bundle/{chunk-hvcdemxe.js → chunk-5rkmhzq0.js} +2 -2
- package/bundle/chunk-5snrz263.js +2 -0
- package/bundle/{chunk-erh9y0sx.js → chunk-5y8efy5b.js} +1 -1
- package/bundle/chunk-653c0mxr.js +11 -0
- package/bundle/chunk-6av7hrrk.js +7 -0
- package/bundle/chunk-6bswn7w5.js +2 -0
- package/bundle/{chunk-sgq94p3x.js → chunk-6dxaty1v.js} +1 -1
- package/bundle/chunk-6epghftw.js +2 -0
- package/bundle/{chunk-a3te67a5.js → chunk-6g3m7yxf.js} +2 -2
- package/bundle/{chunk-5x19yah0.js → chunk-6j0365q3.js} +2 -2
- package/bundle/chunk-6jjhxh8p.js +2 -0
- package/bundle/{chunk-101y7ce2.js → chunk-6mscvf6y.js} +1 -1
- package/bundle/{chunk-mj7rk4xs.js → chunk-6nhje520.js} +1 -1
- package/bundle/{chunk-5wr5gpaa.js → chunk-6sdh1q7g.js} +1 -1
- package/bundle/{chunk-bwvjft74.js → chunk-6szvs3k9.js} +1 -1
- package/bundle/chunk-6ws7xyc5.js +2 -0
- package/bundle/{chunk-n889mwgv.js → chunk-78bajmqm.js} +1 -1
- package/bundle/{chunk-3wzpdvpg.js → chunk-7a6p7dfx.js} +1 -1
- package/bundle/{chunk-kfdqfha0.js → chunk-7dckfame.js} +1 -1
- package/bundle/chunk-7g28zhar.js +2 -0
- package/bundle/{chunk-w6t1qmeg.js → chunk-7gczzccz.js} +1 -1
- package/bundle/{chunk-2wcwbp3t.js → chunk-7mhffm9f.js} +199 -198
- package/bundle/{chunk-7bxe5s20.js → chunk-7tgm8wp5.js} +1 -1
- package/bundle/chunk-7v02b2ms.js +2 -0
- package/bundle/chunk-7vmp2034.js +2 -0
- package/bundle/chunk-7wxrypkr.js +2 -0
- package/bundle/{chunk-576zfh1s.js → chunk-7y3y3j51.js} +2 -2
- package/bundle/{chunk-vay29sqp.js → chunk-7yf15a3a.js} +1 -1
- package/bundle/{chunk-qzd0q1jg.js → chunk-82gs5cmn.js} +1 -1
- package/bundle/{chunk-wf2mj6de.js → chunk-84gnbzky.js} +1 -1
- package/bundle/{chunk-3xf7q4ww.js → chunk-8651hq0k.js} +1 -1
- package/bundle/{chunk-g8zrn0at.js → chunk-8717htya.js} +1 -1
- package/bundle/{chunk-b8z4hgq0.js → chunk-8ace31r2.js} +1 -1
- package/bundle/{chunk-2e9a9brg.js → chunk-8cr7ks31.js} +1 -1
- package/bundle/{chunk-3ne6j2h5.js → chunk-8h9r6c8g.js} +2 -2
- package/bundle/chunk-8kk9gvdy.js +2 -0
- package/bundle/{chunk-haw1jzwb.js → chunk-8pe047p0.js} +1 -1
- package/bundle/{chunk-22tf95dw.js → chunk-8r79zf3y.js} +2 -2
- package/bundle/chunk-8ygpp4y3.js +2 -0
- package/bundle/chunk-95q60g1p.js +2 -0
- package/bundle/{chunk-5d18fd4p.js → chunk-9798jffg.js} +1 -1
- package/bundle/{chunk-r0sjwtfc.js → chunk-99n6czag.js} +2 -2
- package/bundle/{chunk-bwgnmy92.js → chunk-9easaxy7.js} +1 -1
- package/bundle/{chunk-wk11xsdh.js → chunk-9f7y0dj0.js} +1 -1
- package/bundle/{chunk-799c17nk.js → chunk-9jf67xb0.js} +2 -2
- package/bundle/chunk-9mjbenja.js +2 -0
- package/bundle/{chunk-381j1hqf.js → chunk-9nx8hm57.js} +1 -1
- package/bundle/{chunk-bqeyh2gx.js → chunk-9pe4agdz.js} +2 -2
- package/bundle/{chunk-k0v37hc6.js → chunk-9rqrm9y8.js} +1 -1
- package/bundle/{chunk-qx9j6nz1.js → chunk-9sy9ws1w.js} +1 -1
- package/bundle/{chunk-62yja34m.js → chunk-9vcw33dv.js} +1 -1
- package/bundle/chunk-9vn1gy8h.js +2 -0
- package/bundle/{chunk-wmmck56g.js → chunk-9xvctnjr.js} +1 -1
- package/bundle/{chunk-apv1v4tk.js → chunk-a5zjrwqy.js} +2 -2
- package/bundle/{chunk-jj7wrfty.js → chunk-a9y27zd2.js} +1 -1
- package/bundle/{chunk-m3gsrb1x.js → chunk-ac202abt.js} +1 -1
- package/bundle/{chunk-brrtcqrc.js → chunk-agdfqncf.js} +2 -2
- package/bundle/chunk-ajp3f08k.js +2 -0
- package/bundle/{chunk-y0qaz8db.js → chunk-am73j1bt.js} +1 -1
- package/bundle/{chunk-2es79khv.js → chunk-apq38bt4.js} +3 -3
- package/bundle/chunk-aptkpdkc.js +2 -0
- package/bundle/{chunk-7n994qss.js → chunk-b643cra9.js} +211 -211
- package/bundle/{chunk-2e76kpa6.js → chunk-b6m4yyww.js} +1 -1
- package/bundle/{chunk-v1hvnq7y.js → chunk-b8ag61vj.js} +1 -1
- package/bundle/{chunk-k0arcqnt.js → chunk-bas6x25m.js} +2 -2
- package/bundle/{chunk-q6x5bmc3.js → chunk-bd21p9zz.js} +2 -2
- package/bundle/{chunk-fp5mvrrx.js → chunk-bf146hz2.js} +2 -2
- package/bundle/{chunk-s7sksztt.js → chunk-bky5a42k.js} +2 -2
- package/bundle/chunk-bry94ar5.js +2 -0
- package/bundle/chunk-btzyvqkf.js +2 -0
- package/bundle/{chunk-hs8qwx4n.js → chunk-c31k8yh0.js} +1 -1
- package/bundle/chunk-c94pjdfh.js +2 -0
- package/bundle/chunk-cct9ds5c.js +2 -0
- package/bundle/{chunk-3j6nrrva.js → chunk-cesrhm09.js} +1 -1
- package/bundle/{chunk-mwjhyj53.js → chunk-cvchztkc.js} +1 -1
- package/bundle/{chunk-12cd1yj9.js → chunk-cy2586rv.js} +1 -1
- package/bundle/chunk-czn535v0.js +2 -0
- package/bundle/chunk-d56zc21w.js +3 -0
- package/bundle/chunk-d7wd5hz1.js +2 -0
- package/bundle/chunk-d86cmjrp.js +2 -0
- package/bundle/{chunk-t86vj45b.js → chunk-dann9gfq.js} +1 -1
- package/bundle/{chunk-nb0gc3sx.js → chunk-dcx8hjbs.js} +1 -1
- package/bundle/{chunk-p33fchnf.js → chunk-dgzyn27r.js} +1 -1
- package/bundle/{chunk-shav33fq.js → chunk-dkm7x8rj.js} +2 -2
- package/bundle/chunk-dkv2mg97.js +3 -0
- package/bundle/chunk-dnq65xvn.js +2 -0
- package/bundle/chunk-dpqv8rtn.js +2 -0
- package/bundle/chunk-e346x00p.js +10 -0
- package/bundle/chunk-e9mh7s3z.js +2 -0
- package/bundle/{chunk-26m5yn5d.js → chunk-ebjhggdw.js} +1 -1
- package/bundle/{chunk-ntfh16rj.js → chunk-ecwz9nhs.js} +2 -2
- package/bundle/{chunk-jge74hh4.js → chunk-edvcz2gd.js} +1 -1
- package/bundle/chunk-ek2y5f6g.js +2 -0
- package/bundle/{chunk-dsny9dh8.js → chunk-ep8zn49w.js} +2 -2
- package/bundle/chunk-epdsay73.js +2 -0
- package/bundle/{chunk-y3qf1kg9.js → chunk-evqxvhdb.js} +1 -1
- package/bundle/{chunk-58w4dhb6.js → chunk-ewyk4py6.js} +1 -1
- package/bundle/{chunk-scb48j07.js → chunk-f3kjp838.js} +2 -2
- package/bundle/{chunk-3w9k7yxx.js → chunk-f819a7ec.js} +1 -1
- package/bundle/chunk-f89gntcy.js +3 -0
- package/bundle/{chunk-eqed7tvt.js → chunk-fdezde1z.js} +1 -1
- package/bundle/chunk-ffnsn7tv.js +2 -0
- package/bundle/{chunk-7tb9fjvq.js → chunk-fhng5her.js} +2 -2
- package/bundle/chunk-fkezc7ew.js +2 -0
- package/bundle/{chunk-88kt6qmd.js → chunk-fkvccmgk.js} +2 -2
- package/bundle/{chunk-k5294ajv.js → chunk-fm4xa6yx.js} +2 -2
- package/bundle/{chunk-fhjpfzjc.js → chunk-frdc3ysq.js} +1 -1
- package/bundle/chunk-fsxddgj0.js +2 -0
- package/bundle/{chunk-kbhby60s.js → chunk-ftk58wxe.js} +1 -1
- package/bundle/{chunk-shxny9x9.js → chunk-g0v9g37f.js} +1 -1
- package/bundle/{chunk-afpwjn78.js → chunk-g7vkkmsk.js} +3 -3
- package/bundle/chunk-gbcsfg6v.js +2 -0
- package/bundle/{chunk-y2h0adg5.js → chunk-gc9q0x8z.js} +3 -3
- package/bundle/{chunk-s75chpxq.js → chunk-gen6f3dn.js} +2 -2
- package/bundle/{chunk-1eg8mr1q.js → chunk-gf4ek7rv.js} +1 -1
- package/bundle/{chunk-1w8b88y5.js → chunk-gff87y4n.js} +1 -1
- package/bundle/chunk-gfmz85hp.js +2 -0
- package/bundle/chunk-gk63k4t6.js +2 -0
- package/bundle/{chunk-g7742sqm.js → chunk-gn7xgd4c.js} +1 -1
- package/bundle/{chunk-6j07cgna.js → chunk-gn9p1d50.js} +1 -1
- package/bundle/{chunk-yyarzhw3.js → chunk-gvzfffr4.js} +1 -1
- package/bundle/{chunk-zeh3mjgp.js → chunk-ha1w0xzh.js} +1 -1
- package/bundle/{chunk-vxc5q0wk.js → chunk-hbnr0j7h.js} +2 -2
- package/bundle/chunk-hg563h5r.js +3 -0
- package/bundle/{chunk-8k4mkrdw.js → chunk-hg9nk090.js} +1 -1
- package/bundle/{chunk-gjsaw7wm.js → chunk-hh3w51wp.js} +2 -2
- package/bundle/{chunk-naq602da.js → chunk-hh4c02fh.js} +1 -1
- package/bundle/{chunk-k1ht1sjr.js → chunk-hh9a709t.js} +1 -1
- package/bundle/{chunk-7tthc48p.js → chunk-hjbks7r9.js} +1 -1
- package/bundle/{chunk-ky840wjj.js → chunk-hqg5qbxk.js} +1 -1
- package/bundle/{chunk-0svy8w30.js → chunk-hv4nhx6q.js} +2 -2
- package/bundle/{chunk-26mt118z.js → chunk-hxgb0y1w.js} +1 -1
- package/bundle/chunk-j0vf8s12.js +2 -0
- package/bundle/chunk-j1a64ade.js +3 -0
- package/bundle/chunk-j1bxt69x.js +2 -0
- package/bundle/{chunk-t42kh492.js → chunk-j1veq3zr.js} +2 -2
- package/bundle/{chunk-c38ppnm8.js → chunk-jbd9k041.js} +2 -2
- package/bundle/chunk-jcem8s30.js +2 -0
- package/bundle/{chunk-z1hd38wp.js → chunk-jegn6jc3.js} +2 -2
- package/bundle/chunk-jjwjb9w0.js +3 -0
- package/bundle/{chunk-87pzwjjj.js → chunk-jmjg8d8a.js} +4 -4
- package/bundle/chunk-jpham2a3.js +2 -0
- package/bundle/{chunk-jq6y56m5.js → chunk-jpygkh1c.js} +1 -1
- package/bundle/{chunk-rwanncah.js → chunk-jr8qcf99.js} +2 -2
- package/bundle/{chunk-rmmyjyr9.js → chunk-jr9xnvjq.js} +1 -1
- package/bundle/{chunk-t66hycva.js → chunk-jz3aav8a.js} +2 -2
- package/bundle/chunk-jzkymnr5.js +2 -0
- package/bundle/chunk-k0qtwnhb.js +2 -0
- package/bundle/{chunk-bkaprkf6.js → chunk-k16hzy2q.js} +1 -1
- package/bundle/chunk-k2rsky7z.js +2 -0
- package/bundle/{chunk-an5sr6gw.js → chunk-k9d927xe.js} +1 -1
- package/bundle/{chunk-cz8nnm2a.js → chunk-k9g77a02.js} +1 -1
- package/bundle/{chunk-sjqgmp12.js → chunk-kaeyhw2n.js} +2 -2
- package/bundle/{chunk-kpkbyek5.js → chunk-kc3hpmr2.js} +2 -2
- package/bundle/chunk-kcetcysa.js +2 -0
- package/bundle/chunk-kjfc5v3s.js +2 -0
- package/bundle/chunk-kkvb2c2z.js +8 -0
- package/bundle/chunk-km2ayfyf.js +2 -0
- package/bundle/chunk-knrh89eb.js +2 -0
- package/bundle/{chunk-g0vzdt58.js → chunk-kr0fsqas.js} +1 -1
- package/bundle/chunk-ksqfjawv.js +2 -0
- package/bundle/{chunk-863s0tqa.js → chunk-ktmazmas.js} +2 -2
- package/bundle/{chunk-c4x99ayd.js → chunk-m8djypsy.js} +1 -1
- package/bundle/{chunk-qr2ave8f.js → chunk-mj24ntn9.js} +1 -1
- package/bundle/chunk-mjhb1q0n.js +3 -0
- package/bundle/{chunk-c546xxjk.js → chunk-ms1fd6h4.js} +1 -1
- package/bundle/chunk-mxcger73.js +2 -0
- package/bundle/{chunk-tfpwfczs.js → chunk-n1chdwrs.js} +1 -1
- package/bundle/{chunk-mt8btwrv.js → chunk-najzfhb2.js} +1 -1
- package/bundle/chunk-nazkrkeb.js +2 -0
- package/bundle/chunk-nk01s49e.js +2 -0
- package/bundle/{chunk-9tq5yt3t.js → chunk-ns0pswww.js} +1 -1
- package/bundle/chunk-ns8b7rx1.js +2 -0
- package/bundle/chunk-ny6vpkx2.js +2 -0
- package/bundle/{chunk-qkn4039t.js → chunk-p4hpr8d7.js} +1 -1
- package/bundle/{chunk-n1m5qdf5.js → chunk-p54bzjtv.js} +1 -1
- package/bundle/{chunk-q1nvfmrm.js → chunk-pb7rnkke.js} +1 -1
- package/bundle/{chunk-70gfpkxv.js → chunk-pfhp78cr.js} +1 -1
- package/bundle/{chunk-y2r3zker.js → chunk-ps543k72.js} +1 -1
- package/bundle/{chunk-w9vv1whr.js → chunk-pv8jcpnf.js} +1 -1
- package/bundle/{chunk-9yaw0hbp.js → chunk-pyq01301.js} +1 -1
- package/bundle/chunk-q0dd3ak6.js +3 -0
- package/bundle/chunk-q2s057bm.js +2 -0
- package/bundle/{chunk-2qy760rf.js → chunk-q3x4x2tq.js} +1 -1
- package/bundle/chunk-q5cqg2c0.js +28 -0
- package/bundle/{chunk-kktcccep.js → chunk-q6fbyvpq.js} +1 -1
- package/bundle/chunk-qk2wnp2x.js +2 -0
- package/bundle/{chunk-05badzhy.js → chunk-qw2hgs5b.js} +2 -2
- package/bundle/{chunk-5dpev64z.js → chunk-qywwj58s.js} +2 -2
- package/bundle/chunk-r012q335.js +3 -0
- package/bundle/{chunk-5vyper2h.js → chunk-r3yqe7x0.js} +1 -1
- package/bundle/{chunk-xqzbcs8x.js → chunk-r48g0kaq.js} +2 -2
- package/bundle/{chunk-22vvjp4g.js → chunk-r7xp0xcn.js} +2 -2
- package/bundle/chunk-rbdjbgkb.js +2 -0
- package/bundle/{chunk-m81z3zgm.js → chunk-rvvfs9ps.js} +2 -2
- package/bundle/chunk-rxjprhgh.js +2 -0
- package/bundle/chunk-s3w9bmze.js +2 -0
- package/bundle/chunk-s3zste1a.js +2 -0
- package/bundle/{chunk-f958hsha.js → chunk-s9amvacw.js} +2 -2
- package/bundle/chunk-sbt7qmwm.js +3 -0
- package/bundle/chunk-sf6h44pb.js +2 -0
- package/bundle/{chunk-kn9skc0g.js → chunk-sgtgvzv6.js} +1 -1
- package/bundle/chunk-sgvzxs7m.js +2 -0
- package/bundle/{chunk-ac69b9tm.js → chunk-sjrmhd3e.js} +1 -1
- package/bundle/chunk-sp9bndyh.js +2 -0
- package/bundle/{chunk-7m4camry.js → chunk-spm1yy6w.js} +1 -1
- package/bundle/{chunk-xtj5qqsw.js → chunk-srf73nm4.js} +1 -1
- package/bundle/{chunk-fnect0ny.js → chunk-sswbfqcq.js} +1 -1
- package/bundle/{chunk-zzdbrxkh.js → chunk-t488d66k.js} +1 -1
- package/bundle/{chunk-w6zgm4vn.js → chunk-t6w96xq2.js} +1 -1
- package/bundle/{chunk-xjr0xy58.js → chunk-te1zfpzv.js} +1 -1
- package/bundle/{chunk-mwbcmvmh.js → chunk-tk3bve0x.js} +2 -2
- package/bundle/chunk-tsn1jkr7.js +2 -0
- package/bundle/{chunk-dn1jryxz.js → chunk-tzc4jkzg.js} +1 -1
- package/bundle/{chunk-kdr6nxmk.js → chunk-v2kyarwz.js} +2 -2
- package/bundle/{chunk-mg03szpz.js → chunk-v7r9np94.js} +1 -1
- package/bundle/{chunk-my0kzcby.js → chunk-va4davgy.js} +317 -297
- package/bundle/{chunk-febbrhev.js → chunk-vavrczqm.js} +1 -1
- package/bundle/{chunk-hk1ha5fj.js → chunk-ve5gb789.js} +2 -2
- package/bundle/{chunk-ar1by07g.js → chunk-vf1r5ckp.js} +1 -1
- package/bundle/{chunk-hnzs3ywg.js → chunk-vftqwdpg.js} +1 -1
- package/bundle/chunk-vg4styg5.js +2 -0
- package/bundle/chunk-vh09hhcs.js +2 -0
- package/bundle/chunk-vhktpm0n.js +2 -0
- package/bundle/{chunk-36c2avm4.js → chunk-vvypb02q.js} +1 -1
- package/bundle/{chunk-g6tw5dvr.js → chunk-vzjcmwry.js} +2 -2
- package/bundle/{chunk-fvwys8ej.js → chunk-w1atxyz0.js} +1 -1
- package/bundle/{chunk-44amvtcs.js → chunk-w7p2x973.js} +2 -2
- package/bundle/{chunk-ecczet3b.js → chunk-wa2ce2sg.js} +2 -2
- package/bundle/{chunk-24r5h0fx.js → chunk-wf09j72q.js} +2 -2
- package/bundle/{chunk-w8r4gjea.js → chunk-wfnk2vsd.js} +1 -1
- package/bundle/{chunk-1vx26nt2.js → chunk-wj6aq50n.js} +1 -1
- package/bundle/{chunk-39h565hz.js → chunk-wmrq9qqf.js} +1 -1
- package/bundle/{chunk-cbfjjbfd.js → chunk-wmw2gne9.js} +2 -2
- package/bundle/chunk-wtp0yvqw.js +2 -0
- package/bundle/{chunk-g7g3zm4v.js → chunk-x6z2b63w.js} +1 -1
- package/bundle/{chunk-g5g9r3v5.js → chunk-xccs5c50.js} +1 -1
- package/bundle/{chunk-2adsn1ca.js → chunk-xj73j10a.js} +1 -1
- package/bundle/chunk-xmzs7q66.js +2 -0
- package/bundle/chunk-xv80476w.js +2 -0
- package/bundle/{chunk-gz8x3915.js → chunk-xv8gnkh5.js} +1 -1
- package/bundle/{chunk-g2ec45xj.js → chunk-y1srca0c.js} +2 -2
- package/bundle/{chunk-gzse9pab.js → chunk-y2jmtfdh.js} +2 -2
- package/bundle/{chunk-c7dt464m.js → chunk-y3n31nnx.js} +2 -2
- package/bundle/{chunk-2qj66wf5.js → chunk-ygj1cy0n.js} +1 -1
- package/bundle/{chunk-k3pvgwgc.js → chunk-yh174jhg.js} +2 -2
- package/bundle/chunk-yjvr0et1.js +2 -0
- package/bundle/{chunk-63pvqy8n.js → chunk-yz7rqzby.js} +3 -3
- package/bundle/{chunk-w32tj884.js → chunk-yzdty5t9.js} +2 -2
- package/bundle/{chunk-yffkcska.js → chunk-zavtsfxz.js} +1 -1
- package/bundle/{chunk-y62tnk9q.js → chunk-zeh481tm.js} +2 -2
- package/bundle/{chunk-cn7nnjsf.js → chunk-zfnbk5gy.js} +1 -1
- package/bundle/{chunk-tydvpy1s.js → chunk-zk8n8hnh.js} +2 -2
- package/bundle/{chunk-agyxa9nj.js → chunk-zp2ffbc2.js} +2 -2
- package/bundle/chunk-zx3kcfkj.js +2 -0
- package/bundle/index.js +4 -4
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-1by6y9tm.js +0 -2
- package/bundle/chunk-1gjh45v5.js +0 -9
- package/bundle/chunk-1p7wqmxp.js +0 -2
- package/bundle/chunk-1v47v7vm.js +0 -3
- package/bundle/chunk-21hnx8rx.js +0 -24
- package/bundle/chunk-22pvftx8.js +0 -2
- package/bundle/chunk-2bce1njy.js +0 -2
- package/bundle/chunk-338hbnza.js +0 -11
- package/bundle/chunk-3gsvbfqz.js +0 -2
- package/bundle/chunk-3sem578c.js +0 -3
- package/bundle/chunk-3vgnqaem.js +0 -2
- package/bundle/chunk-3xrhxyz9.js +0 -2
- package/bundle/chunk-3zdyrnvp.js +0 -2
- package/bundle/chunk-4nhbgva1.js +0 -2
- package/bundle/chunk-5ch23jj3.js +0 -2
- package/bundle/chunk-5hzkd9te.js +0 -2
- package/bundle/chunk-5vwhfa42.js +0 -2
- package/bundle/chunk-662x3gq6.js +0 -2
- package/bundle/chunk-6an0pk19.js +0 -2
- package/bundle/chunk-6ybqwnp7.js +0 -2
- package/bundle/chunk-7365jzj1.js +0 -2
- package/bundle/chunk-7amvpgng.js +0 -2
- package/bundle/chunk-7dcz5ytp.js +0 -2
- package/bundle/chunk-7h7bwjmm.js +0 -2
- package/bundle/chunk-7vk5fhhv.js +0 -2
- package/bundle/chunk-7vqw9wge.js +0 -2
- package/bundle/chunk-7vxk5t11.js +0 -2
- package/bundle/chunk-83fm5xcn.js +0 -2
- package/bundle/chunk-8b644ae2.js +0 -2
- package/bundle/chunk-av2q0ffj.js +0 -2
- package/bundle/chunk-avk3wfch.js +0 -7
- package/bundle/chunk-azna4wdf.js +0 -2
- package/bundle/chunk-b192q4m0.js +0 -2
- package/bundle/chunk-bh46627y.js +0 -2
- package/bundle/chunk-c267ggx2.js +0 -2
- package/bundle/chunk-c6kxegws.js +0 -2
- package/bundle/chunk-cek3cfz4.js +0 -2
- package/bundle/chunk-ete0y35c.js +0 -2
- package/bundle/chunk-f1mmzzsn.js +0 -2
- package/bundle/chunk-f66cvq2q.js +0 -2
- package/bundle/chunk-fd1vbz1f.js +0 -3
- package/bundle/chunk-fq4v97xn.js +0 -2
- package/bundle/chunk-fw1f6br4.js +0 -2
- package/bundle/chunk-g3pb8rad.js +0 -2
- package/bundle/chunk-gc1yetqd.js +0 -2
- package/bundle/chunk-gtckkn15.js +0 -2
- package/bundle/chunk-gtzreftf.js +0 -2
- package/bundle/chunk-hg7kfd0t.js +0 -3
- package/bundle/chunk-j5vahbw1.js +0 -2
- package/bundle/chunk-jek1cnfk.js +0 -3
- package/bundle/chunk-jevrajsx.js +0 -2
- package/bundle/chunk-jzdks7bv.js +0 -2
- package/bundle/chunk-k1e7w7w5.js +0 -2
- package/bundle/chunk-k33xx2z9.js +0 -2
- package/bundle/chunk-k6vf6vq6.js +0 -2
- package/bundle/chunk-kn391hb2.js +0 -2
- package/bundle/chunk-knmba0q6.js +0 -2
- package/bundle/chunk-knnemqfm.js +0 -3
- package/bundle/chunk-kx4b39v6.js +0 -2
- package/bundle/chunk-mah572rs.js +0 -2
- package/bundle/chunk-mg6nwfw3.js +0 -2
- package/bundle/chunk-pdgrang4.js +0 -2
- package/bundle/chunk-r3q82hz3.js +0 -2
- package/bundle/chunk-r4ygs0jv.js +0 -2
- package/bundle/chunk-r6xhxvjv.js +0 -2
- package/bundle/chunk-r79mz5kd.js +0 -5
- package/bundle/chunk-r99pnfra.js +0 -2
- package/bundle/chunk-rjjgnvdk.js +0 -2
- package/bundle/chunk-rq4xdyst.js +0 -2
- package/bundle/chunk-rsd3v7cg.js +0 -2
- package/bundle/chunk-rxsgbdv0.js +0 -2
- package/bundle/chunk-s4x1jhj3.js +0 -2
- package/bundle/chunk-sx760d9d.js +0 -2
- package/bundle/chunk-tmjd3evp.js +0 -8
- package/bundle/chunk-tp1d856p.js +0 -2
- package/bundle/chunk-tpxs00p5.js +0 -2
- package/bundle/chunk-tqk12r89.js +0 -2
- package/bundle/chunk-tycgrqgq.js +0 -2
- package/bundle/chunk-tz8qhbk9.js +0 -3
- package/bundle/chunk-v1y3pbfv.js +0 -2
- package/bundle/chunk-v32cyrg2.js +0 -2
- package/bundle/chunk-v7pypmvk.js +0 -2
- package/bundle/chunk-vbqyddy8.js +0 -2
- package/bundle/chunk-vgx86f2r.js +0 -2
- package/bundle/chunk-w0jvqdez.js +0 -2
- package/bundle/chunk-w79yek40.js +0 -2
- package/bundle/chunk-w7nxsfbd.js +0 -3
- package/bundle/chunk-wcea06cr.js +0 -2
- package/bundle/chunk-wcx4bbvn.js +0 -2
- package/bundle/chunk-wdw183vh.js +0 -2
- package/bundle/chunk-wqd3svh6.js +0 -2
- package/bundle/chunk-wqe5spdq.js +0 -2
- package/bundle/chunk-wqww2byk.js +0 -2
- package/bundle/chunk-wybd806z.js +0 -2
- package/bundle/chunk-x1vb00hr.js +0 -2
- package/bundle/chunk-xafh07r3.js +0 -2
- package/bundle/chunk-xgzjcsad.js +0 -2
- package/bundle/chunk-xn0xhd0w.js +0 -3
- package/bundle/chunk-xnbfy5jy.js +0 -2
- package/bundle/chunk-xxed39zx.js +0 -3
- package/bundle/chunk-y6pzag4n.js +0 -2
- package/bundle/chunk-y7w6fjwt.js +0 -2
- package/bundle/chunk-yr4evt94.js +0 -7
- package/bundle/chunk-z195gv71.js +0 -2
package/bundle/chunk-mah572rs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fd as q,Gd as K,Hd as D,Kd as L,Ld as N}from"./chunk-3ne6j2h5.js";import"./chunk-799c17nk.js";import{Sf as B}from"./chunk-s75chpxq.js";import{qh as G}from"./chunk-my0kzcby.js";import"./chunk-1v47v7vm.js";import"./chunk-tmjd3evp.js";import"./chunk-q6x5bmc3.js";import"./chunk-n1m5qdf5.js";import"./chunk-zeh3mjgp.js";import"./chunk-ntfh16rj.js";import"./chunk-tz8qhbk9.js";import"./chunk-hvcdemxe.js";import"./chunk-2wcwbp3t.js";import{hl as C}from"./chunk-3sem578c.js";import"./chunk-fzzze6zd.js";import"./chunk-afpwjn78.js";import"./chunk-c4x99ayd.js";import"./chunk-44amvtcs.js";import"./chunk-cbfjjbfd.js";import"./chunk-c7dt464m.js";import"./chunk-jazpapb9.js";import"./chunk-knnemqfm.js";import"./chunk-hqv0s6sw.js";import"./chunk-apv1v4tk.js";import"./chunk-7tb9fjvq.js";import"./chunk-fp5mvrrx.js";import"./chunk-zzdbrxkh.js";import"./chunk-cqtkxwd8.js";import"./chunk-xtj5qqsw.js";import"./chunk-w32tj884.js";import"./chunk-29hmwttd.js";import"./chunk-2qy760rf.js";import"./chunk-kfdqfha0.js";import"./chunk-t42kh492.js";import"./chunk-8hh5ejmr.js";import"./chunk-mwbcmvmh.js";import"./chunk-9y65kbcf.js";import"./chunk-24r5h0fx.js";import"./chunk-vxc5q0wk.js";import"./chunk-dsny9dh8.js";import"./chunk-scb48j07.js";import"./chunk-k33xx2z9.js";import{Is as J}from"./chunk-tydvpy1s.js";import"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-bqeyh2gx.js";import"./chunk-kpkbyek5.js";import"./chunk-naq602da.js";var X={command:"upgrade [target]",describe:"upgrade qitqode to the latest or a specific version",builder:(z)=>{return z.positional("target",{describe:"version to upgrade to, for ex '0.1.48' or 'v0.1.48'",type:"string"}).option("method",{alias:"m",describe:"installation method to use",type:"string",choices:["curl","npm","pnpm","bun","brew","choco","scoop"]})},handler:async(z)=>{B.empty(),B.println(B.logo(" ")),B.empty(),K("Upgrade");let O=await G.runPromise(C.Service.use((j)=>j.method())),E=z.method??O;if(E==="unknown"){if(q.error(`qitqode is installed to ${process.execPath} and may be managed by a package manager`),!await N({message:"Install anyways?",options:[{label:"Yes",value:!0},{label:"No",value:!1}],initialValue:!1})){D("Done");return}}q.info("Using method: "+E);let F=z.target?z.target.replace(/^v/,""):await G.runPromise(C.Service.use((j)=>j.latest()));if(J===F){q.warn(`qitqode upgrade skipped: ${F} is already installed`),D("Done");return}q.info(`From ${J} \u2192 ${F}`);let H=L();H.start("Upgrading...");let x=await G.runPromise(C.Service.use((j)=>j.upgrade(E,F))).catch((j)=>j);if(x){if(H.stop("Upgrade failed",1),x instanceof C.UpgradeFailedError)if(E==="choco"&&x.stderr.includes("not running from an elevated command shell"))q.error("Please run the terminal as Administrator and try again");else q.error(x.stderr);else if(x instanceof Error)q.error(x.message);D("Done");return}H.stop("Upgrade complete"),D("Done")}};export{X as UpgradeCommand};
|
package/bundle/chunk-mg6nwfw3.js
DELETED
package/bundle/chunk-pdgrang4.js
DELETED
package/bundle/chunk-r3q82hz3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$s as m,Qs as c,Rs as d,Ss as e,Us as f,Vs as h,Ws as i,Xs as j,Ys as k,_s as l,ot as n}from"./chunk-tydvpy1s.js";import{It as g,xt as b}from"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import{au as a}from"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-naq602da.js";export{f as getEnvInfo,a as Wildcard,m as Token,l as Rpc,b as Process,n as Log,k as Lock,j as Locale,i as LocalContext,h as Keybind,g as Filesystem,e as EffectUtil,d as Color,c as Archive};
|
package/bundle/chunk-r4ygs0jv.js
DELETED
package/bundle/chunk-r6xhxvjv.js
DELETED
package/bundle/chunk-r79mz5kd.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fs as v}from"./chunk-scb48j07.js";import{Hs as B}from"./chunk-k33xx2z9.js";import{qt as M}from"./chunk-b2k9yafd.js";function L(j,z){return typeof j==="object"&&j!==null&&"_tag"in j&&j._tag===z}function Z(j){if(v.hasName(j,"MCPFailed"))return`MCP server "${j.data?.name}" failed. Note, qitqode does not support MCP authentication yet.`;if(L(j,"AccountServiceError")||L(j,"AccountTransportError"))return j.message??"";if(v.hasName(j,"ProviderModelNotFoundError")){let k=j.data,A=Array.isArray(k?.suggestions)?k.suggestions:[];return[`Model not found: ${k?.providerID}/${k?.modelID}`,...A.length?["Did you mean: "+A.join(", ")]:[],"Try: `qitqode models` to list available models","Or check your config (qitqode.json) provider/model names"].join(`
|
|
3
|
-
`)}if(v.hasName(j,"ProviderInitError"))return`Failed to initialize provider "${j.data?.providerID}". Check credentials and configuration.`;if(v.hasName(j,"ConfigJsonError")){let k=j.data;return`Config file at ${k?.path} is not valid JSON(C)`+(k?.message?`: ${k.message}`:"")}if(v.hasName(j,"ConfigDirectoryTypoError")){let k=j.data;return`Directory "${k?.dir}" in ${k?.path} is not valid. Rename the directory to "${k?.suggestion}" or remove it. This is a common typo.`}if(v.hasName(j,"ConfigFrontmatterError"))return j.data?.message??"";if(v.hasName(j,"ConfigInvalidError")){let k=j.data,A=k?.path,G=k?.message,O=Array.isArray(k?.issues)?k.issues:[];return[`Configuration is invalid${A&&A!=="config"?` at ${A}`:""}`+(G?`: ${G}`:""),...O.map((J)=>"\u21B3 "+J.message+" "+J.path.join("."))].join(`
|
|
4
|
-
`)}if(v.hasName(j,"UICancelledError"))return"";let z=typeof j==="object"&&j!==null&&"name"in j?j.name:void 0;if(z==="QlexNotLoggedInError")return B.copy().notLoggedIn;if(z==="QlexInsufficientBalanceError")return(j.message??B.copy().insufficientBalanceFallback)+B.copy().insufficientBalanceCliSuffix;if(z==="QlexRateLimitError")return B.copy().rateLimit;if(z==="QlexInvalidCredentialsError")return j.message??B.copy().invalidCredentialsFallback}function _(j){return M(j)}function H({onlyFirst:j=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",j?void 0:"g")}var U=H();function V(j){if(typeof j!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof j}\``);return j.replace(U,"")}
|
|
5
|
-
export{V as Gf,Z as Hf,_ as If};
|
package/bundle/chunk-r99pnfra.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wr as a,xr as b,yr as c}from"./chunk-mwbcmvmh.js";import"./chunk-9y65kbcf.js";import"./chunk-24r5h0fx.js";import"./chunk-tydvpy1s.js";import"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-naq602da.js";export{c as makeRuntime,a as attachWith,b as attach};
|
package/bundle/chunk-rjjgnvdk.js
DELETED
package/bundle/chunk-rq4xdyst.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ag as l,Bg as m,pg as a,qg as b,rg as c,sg as d,tg as e,ug as f,vg as g,wg as h,xg as i,yg as j,zg as k}from"./chunk-1gjh45v5.js";import"./chunk-tmjd3evp.js";import"./chunk-tz8qhbk9.js";import"./chunk-knnemqfm.js";import"./chunk-29hmwttd.js";import"./chunk-2qy760rf.js";import"./chunk-k33xx2z9.js";import"./chunk-tydvpy1s.js";import"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-naq602da.js";export{e as resolveDevicePoll,j as refreshAccessToken,i as probeToken,k as loginDevice,m as loginBrowser,l as login,c as isReplitEnv,g as isNearExpiry,d as getConfig,f as getCallbackUri,h as fetchQreditsBalance,a as ForgewiseError,b as DeviceFlowUnsupportedError};
|
package/bundle/chunk-rsd3v7cg.js
DELETED
package/bundle/chunk-rxsgbdv0.js
DELETED
package/bundle/chunk-s4x1jhj3.js
DELETED
package/bundle/chunk-sx760d9d.js
DELETED
package/bundle/chunk-tmjd3evp.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ji as UO,Li as IO}from"./chunk-tz8qhbk9.js";import{np as VO,pp as a,qp as l,rp as $$,sp as n}from"./chunk-knnemqfm.js";import{br as L$}from"./chunk-29hmwttd.js";import{Hs as DO}from"./chunk-k33xx2z9.js";import{ft as k,ot as LO}from"./chunk-tydvpy1s.js";import{Jt as bO}from"./chunk-sjqgmp12.js";import{bI as f}from"./chunk-shav33fq.js";import{nP as fO,pP as CO}from"./chunk-naq602da.js";import{spawn as wO}from"child_process";async function eO(O){if(process.platform==="linux"){if(await new Promise((Z)=>{let J=!1,Y=(D)=>{if(J)return;J=!0,Z(D)};try{let D=wO("xdg-open",[O],{stdio:"ignore",detached:!0});D.once("error",()=>Y(!1)),D.once("spawn",()=>{D.unref(),Y(!0)})}catch{Y(!1)}}))return!0}try{let $=await L$(O);if(!$)return!1;return $.once("error",()=>{}),!0}catch{return!1}}function U$({onRequest:O,onSseError:$,onSseEvent:Z,responseTransformer:J,responseValidator:Y,sseDefaultRetryDelay:D,sseMaxRetryAttempts:G,sseMaxRetryDelay:W,sseSleepFn:V,url:z,...I}){let U,S=V??((K)=>new Promise((N)=>setTimeout(N,K)));return{stream:async function*(){let K=D??3000,N=0,F=I.signal??new AbortController().signal;while(!0){if(F.aborted)break;N++;let v=I.headers instanceof Headers?I.headers:new Headers(I.headers);if(U!==void 0)v.set("Last-Event-ID",U);try{let _={redirect:"follow",...I,body:I.serializedBody,headers:v,signal:F},E=new Request(z,_);if(O)E=await O(z,_);let M=await(I.fetch??globalThis.fetch)(E);if(!M.ok)throw Error(`SSE failed: ${M.status} ${M.statusText}`);if(!M.body)throw Error("No body in SSE response");let Q=M.body.pipeThrough(new TextDecoderStream).getReader(),w="",W$=()=>{try{Q.cancel()}catch{}};F.addEventListener("abort",W$);try{while(!0){let{done:BO,value:NO}=await Q.read();if(BO)break;w+=NO,w=w.replace(/\r\n?/g,`
|
|
3
|
-
`);let Y$=w.split(`
|
|
4
|
-
|
|
5
|
-
`);w=Y$.pop()??"";for(let MO of Y$){let SO=MO.split(`
|
|
6
|
-
`),y=[],J$;for(let T of SO)if(T.startsWith("data:"))y.push(T.replace(/^data:\s*/,""));else if(T.startsWith("event:"))J$=T.replace(/^event:\s*/,"");else if(T.startsWith("id:"))U=T.replace(/^id:\s*/,"");else if(T.startsWith("retry:")){let D$=Number.parseInt(T.replace(/^retry:\s*/,""),10);if(!Number.isNaN(D$))K=D$}let q,V$=!1;if(y.length){let T=y.join(`
|
|
7
|
-
`);try{q=JSON.parse(T),V$=!0}catch{q=T}}if(V$){if(Y)await Y(q);if(J)q=await J(q)}if(Z?.({data:q,event:J$,id:U,retry:K}),y.length)yield q}}}finally{F.removeEventListener("abort",W$),Q.releaseLock()}break}catch(_){if($?.(_),G!==void 0&&N>=G)break;let E=Math.min(K*2**(N-1),W??30000);await S(E)}}}()}}var jO=(O)=>{switch(O){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},FO=(O)=>{switch(O){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},QO=(O)=>{switch(O){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},C=({allowReserved:O,explode:$,name:Z,style:J,value:Y})=>{if(!$){let W=(O?Y:Y.map((V)=>encodeURIComponent(V))).join(FO(J));switch(J){case"label":return`.${W}`;case"matrix":return`;${Z}=${W}`;case"simple":return W;default:return`${Z}=${W}`}}let D=jO(J),G=Y.map((W)=>{if(J==="label"||J==="simple")return O?W:encodeURIComponent(W);return A({allowReserved:O,name:Z,value:W})}).join(D);return J==="label"||J==="matrix"?D+G:G},A=({allowReserved:O,name:$,value:Z})=>{if(Z===void 0||Z===null)return"";if(typeof Z==="object")throw Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${$}=${O?Z:encodeURIComponent(Z)}`},c=({allowReserved:O,explode:$,name:Z,style:J,value:Y,valueOnly:D})=>{if(Y instanceof Date)return D?Y.toISOString():`${Z}=${Y.toISOString()}`;if(J!=="deepObject"&&!$){let V=[];Object.entries(Y).forEach(([I,U])=>{V=[...V,I,O?U:encodeURIComponent(U)]});let z=V.join(",");switch(J){case"form":return`${Z}=${z}`;case"label":return`.${z}`;case"matrix":return`;${Z}=${z}`;default:return z}}let G=QO(J),W=Object.entries(Y).map(([V,z])=>A({allowReserved:O,name:J==="deepObject"?`${Z}[${V}]`:V,value:z})).join(G);return J==="label"||J==="matrix"?G+W:W};var TO=/\{[^{}]+\}/g,RO=({path:O,url:$})=>{let Z=$,J=$.match(TO);if(J)for(let Y of J){let D=!1,G=Y.substring(1,Y.length-1),W="simple";if(G.endsWith("*"))D=!0,G=G.substring(0,G.length-1);if(G.startsWith("."))G=G.substring(1),W="label";else if(G.startsWith(";"))G=G.substring(1),W="matrix";let V=O[G];if(V===void 0||V===null)continue;if(Array.isArray(V)){Z=Z.replace(Y,C({explode:D,name:G,style:W,value:V}));continue}if(typeof V==="object"){Z=Z.replace(Y,c({explode:D,name:G,style:W,value:V,valueOnly:!0}));continue}if(W==="matrix"){Z=Z.replace(Y,`;${A({name:G,value:V})}`);continue}let z=encodeURIComponent(W==="label"?`.${V}`:V);Z=Z.replace(Y,z)}return Z},I$=({baseUrl:O,path:$,query:Z,querySerializer:J,url:Y})=>{let D=Y.startsWith("/")?Y:`/${Y}`,G=(O??"")+D;if($)G=RO({path:$,url:G});let W=Z?J(Z):"";if(W.startsWith("?"))W=W.substring(1);if(W)G+=`?${W}`;return G};function r(O){let $=O.body!==void 0;if($&&O.bodySerializer){if("serializedBody"in O)return O.serializedBody!==void 0&&O.serializedBody!==""?O.serializedBody:null;return O.body!==""?O.body:null}if($)return O.body;return}var z$=async(O,$)=>{let Z=typeof $==="function"?await $(O):$;if(!Z)return;if(O.scheme==="bearer")return`Bearer ${Z}`;if(O.scheme==="basic")return`Basic ${btoa(Z)}`;return Z};var i={bodySerializer:(O)=>JSON.stringify(O,($,Z)=>typeof Z==="bigint"?Z.toString():Z)};var K$=({parameters:O={},...$}={})=>{return(J)=>{let Y=[];if(J&&typeof J==="object")for(let D in J){let G=J[D];if(G===void 0||G===null)continue;let W=O[D]||$;if(Array.isArray(G)){let V=C({allowReserved:W.allowReserved,explode:!0,name:D,style:"form",value:G,...W.array});if(V)Y.push(V)}else if(typeof G==="object"){let V=c({allowReserved:W.allowReserved,explode:!0,name:D,style:"deepObject",value:G,...W.object});if(V)Y.push(V)}else{let V=A({allowReserved:W.allowReserved,name:D,value:G});if(V)Y.push(V)}}return Y.join("&")}},B$=(O)=>{if(!O)return"stream";let $=O.split(";")[0]?.trim();if(!$)return;if($.startsWith("application/json")||$.endsWith("+json"))return"json";if($==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((Z)=>$.startsWith(Z)))return"blob";if($.startsWith("text/"))return"text";return},_O=(O,$)=>{if(!$)return!1;if(O.headers.has($)||O.query?.[$]||O.headers.get("Cookie")?.includes(`${$}=`))return!0;return!1};async function N$(O){for(let $ of O.security??[]){if(_O(O,$.name))continue;let Z=await z$($,O.auth);if(!Z)continue;let J=$.name??"Authorization";switch($.in){case"query":if(!O.query)O.query={};O.query[J]=Z;break;case"cookie":O.headers.append("Cookie",`${J}=${Z}`);break;case"header":default:O.headers.set(J,Z);break}}}var t=(O)=>I$({baseUrl:O.baseUrl,path:O.path,query:O.query,querySerializer:typeof O.querySerializer==="function"?O.querySerializer:K$(O.querySerializer),url:O.url}),s=(O,$)=>{let Z={...O,...$};if(Z.baseUrl?.endsWith("/"))Z.baseUrl=Z.baseUrl.substring(0,Z.baseUrl.length-1);return Z.headers=u(O.headers,$.headers),Z},xO=(O)=>{let $=[];return O.forEach((Z,J)=>{$.push([J,Z])}),$},u=(...O)=>{let $=new Headers;for(let Z of O){if(!Z)continue;let J=Z instanceof Headers?xO(Z):Object.entries(Z);for(let[Y,D]of J)if(D===null)$.delete(Y);else if(Array.isArray(D))for(let G of D)$.append(Y,G);else if(D!==void 0)$.set(Y,typeof D==="object"?JSON.stringify(D):D)}return $};class d{fns=[];clear(){this.fns=[]}eject(O){let $=this.getInterceptorIndex(O);if(this.fns[$])this.fns[$]=null}exists(O){let $=this.getInterceptorIndex(O);return Boolean(this.fns[$])}getInterceptorIndex(O){if(typeof O==="number")return this.fns[O]?O:-1;return this.fns.indexOf(O)}update(O,$){let Z=this.getInterceptorIndex(O);if(this.fns[Z])return this.fns[Z]=$,O;return!1}use(O){return this.fns.push(O),this.fns.length-1}}var M$=()=>({error:new d,request:new d,response:new d}),EO=K$({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),qO={"Content-Type":"application/json"},P=(O={})=>({...i,headers:qO,parseAs:"auto",querySerializer:EO,...O});var g=(O={})=>{let $=s(P(),O),Z=()=>({...$}),J=(I)=>{return $=s($,I),Z()},Y=M$(),D=async(I)=>{let U={...$,...I,fetch:I.fetch??$.fetch??globalThis.fetch,headers:u($.headers,I.headers),serializedBody:void 0};if(U.security)await N$(U);if(U.requestValidator)await U.requestValidator(U);if(U.body!==void 0&&U.bodySerializer)U.serializedBody=U.bodySerializer(U.body);if(U.body===void 0||U.serializedBody==="")U.headers.delete("Content-Type");let S=U,j=t(S);return{opts:S,url:j}},G=async(I)=>{let U=I.throwOnError??$.throwOnError,S=I.responseStyle??$.responseStyle,j,B;try{let{opts:K,url:N}=await D(I),F={redirect:"follow",...K,body:r(K)};j=new Request(N,F);for(let M of Y.request.fns)if(M)j=await M(j,K);let v=K.fetch;B=await v(j);for(let M of Y.response.fns)if(M)B=await M(B,j,K);let _={request:j,response:B};if(B.ok){let M=(K.parseAs==="auto"?B$(B.headers.get("Content-Type")):K.parseAs)??"json";if(B.status===204||B.headers.get("Content-Length")==="0"){let w;switch(M){case"arrayBuffer":case"blob":case"text":w=await B[M]();break;case"formData":w=new FormData;break;case"stream":w=B.body;break;case"json":default:w={};break}return K.responseStyle==="data"?w:{data:w,..._}}let Q;switch(M){case"arrayBuffer":case"blob":case"formData":case"text":Q=await B[M]();break;case"json":{let w=await B.text();Q=w?JSON.parse(w):{};break}case"stream":return K.responseStyle==="data"?B.body:{data:B.body,..._}}if(M==="json"){if(K.responseValidator)await K.responseValidator(Q);if(K.responseTransformer)Q=await K.responseTransformer(Q)}return K.responseStyle==="data"?Q:{data:Q,..._}}let E=await B.text(),p;try{p=JSON.parse(E)}catch{}throw p??E}catch(K){let N=K;for(let F of Y.error.fns)if(F)N=await F(N,B,j,I);if(N=N||{},U)throw N;return S==="data"?void 0:{error:N,request:j,response:B}}},W=(I)=>(U)=>G({...U,method:I}),V=(I)=>async(U)=>{let{opts:S,url:j}=await D(U);return U$({...S,body:S.body,method:I,onRequest:async(B,K)=>{let N=new Request(B,K);for(let F of Y.request.fns)if(F)N=await F(N,S);return N},serializedBody:r(S),url:j})};return{buildUrl:(I)=>t({...$,...I}),connect:W("CONNECT"),delete:W("DELETE"),get:W("GET"),getConfig:Z,head:W("HEAD"),interceptors:Y,options:W("OPTIONS"),patch:W("PATCH"),post:W("POST"),put:W("PUT"),request:G,setConfig:J,sse:{connect:V("CONNECT"),delete:V("DELETE"),get:V("GET"),head:V("HEAD"),options:V("OPTIONS"),patch:V("PATCH"),post:V("POST"),put:V("PUT"),trace:V("TRACE")},trace:W("TRACE")}};var HO={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},kO=Object.entries(HO),S$=(O,$)=>{if(!$)$=new Map;for(let Z of O)if("in"in Z){if(Z.key)$.set(Z.key,{in:Z.in,map:Z.map})}else if("key"in Z)$.set(Z.key,{map:Z.map});else if(Z.args)S$(Z.args,$);return $},AO=(O)=>{for(let[$,Z]of Object.entries(O))if(Z&&typeof Z==="object"&&!Array.isArray(Z)&&!Object.keys(Z).length)delete O[$]},X=(O,$)=>{let Z={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},J=S$($),Y;for(let[D,G]of O.entries()){if($[D])Y=$[D];if(!Y)continue;if("in"in Y)if(Y.key){let W=J.get(Y.key),V=W.map||Y.key;if(W.in)Z[W.in][V]=G}else Z.body=G;else for(let[W,V]of Object.entries(G??{})){let z=J.get(W);if(z)if(z.in){let I=z.map||W;Z[z.in][I]=V}else Z[z.map]=V;else{let I=kO.find(([U])=>W.startsWith(U));if(I){let[U,S]=I;Z[S][W.slice(U.length)]=V}else if("allowExtra"in Y&&Y.allowExtra){for(let[U,S]of Object.entries(Y.allowExtra))if(S){Z[U][W]=V;break}}}}}return AO(Z),Z};var w$=g(P({baseUrl:"http://localhost:4096"}));class L{client;constructor(O){this.client=O?.client??w$}}class j${defaultKey="default";instances=new Map;get(O){let $=this.instances.get(O??this.defaultKey);if(!$)throw Error('No SDK client found. Create one with "new QitQodeClient()" to fix this error.');return $}set(O,$){this.instances.set($??this.defaultKey,O)}}class F$ extends L{get(O){return(O?.client??this.client).get({url:"/global/config",...O})}update(O,$){let Z=X([O],[{args:[{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/global/config",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class Q$ extends L{scan(O){return(O?.client??this.client).get({url:"/global/import/scan",...O})}run(O,$){let Z=X([O],[{args:[{in:"body",key:"sources"},{in:"body",key:"force"}]}]);return($?.client??this.client).post({url:"/global/import/run",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class T$ extends L{health(O){return(O?.client??this.client).get({url:"/global/health",...O})}event(O){return(O?.client??this.client).sse.get({url:"/global/event",...O})}dispose(O){return(O?.client??this.client).post({url:"/global/dispose",...O})}upgrade(O,$){let Z=X([O],[{args:[{in:"body",key:"target"}]}]);return($?.client??this.client).post({url:"/global/upgrade",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}_config;get config(){return this._config??=new F$({client:this.client})}_import;get import(){return this._import??=new Q$({client:this.client})}}class R$ extends L{remove(O,$){let Z=X([O],[{args:[{in:"path",key:"providerID"}]}]);return($?.client??this.client).delete({url:"/auth/{providerID}",...$,...Z})}set(O,$){let Z=X([O],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return($?.client??this.client).put({url:"/auth/{providerID}",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class _$ extends L{log(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"service"},{in:"body",key:"level"},{in:"body",key:"message"},{in:"body",key:"extra"}]}]);return($?.client??this.client).post({url:"/log",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}agents(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/agent",...$,...Z})}skills(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/skill",...$,...Z})}}class x$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/adaptor",...$,...Z})}}class E$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace",...$,...Z})}create(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"type"},{in:"body",key:"branch"},{in:"body",key:"extra"}]}]);return($?.client??this.client).post({url:"/experimental/workspace",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}status(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/status",...$,...Z})}remove(O,$){let Z=X([O],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/experimental/workspace/{id}",...$,...Z})}sessionRestore(O,$){let Z=X([O],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/experimental/workspace/{id}/session-restore",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}_adaptor;get adaptor(){return this._adaptor??=new x$({client:this.client})}}class q$ extends L{get(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console",...$,...Z})}listOrgs(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console/orgs",...$,...Z})}switchOrg(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"accountID"},{in:"body",key:"orgID"}]}]);return($?.client??this.client).post({url:"/experimental/console/switch",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class H$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"cursor"},{in:"query",key:"search"},{in:"query",key:"limit"},{in:"query",key:"archived"}]}]);return($?.client??this.client).get({url:"/experimental/session",...$,...Z})}}class k$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/resource",...$,...Z})}}class A$ extends L{_workspace;get workspace(){return this._workspace??=new E$({client:this.client})}_console;get console(){return this._console??=new q$({client:this.client})}_session;get session(){return this._session??=new H$({client:this.client})}_resource;get resource(){return this._resource??=new k$({client:this.client})}}class h$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project",...$,...Z})}current(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project/current",...$,...Z})}initGit(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/project/git/init",...$,...Z})}update(O,$){let Z=X([O],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"icon"},{in:"body",key:"commands"}]}]);return($?.client??this.client).patch({url:"/project/{projectID}",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class P$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty",...$,...Z})}create(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"}]}]);return($?.client??this.client).post({url:"/pty",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}remove(O,$){let Z=X([O],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/pty/{ptyID}",...$,...Z})}get(O,$){let Z=X([O],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}",...$,...Z})}update(O,$){let Z=X([O],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"size"}]}]);return($?.client??this.client).put({url:"/pty/{ptyID}",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}connectToken(O,$){let Z=X([O],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...$,...Z})}connect(O,$){let Z=X([O],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}/connect",...$,...Z})}}class g$ extends L{get(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config",...$,...Z})}update(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/config",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}providers(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config/providers",...$,...Z})}}class f$ extends L{ids(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/tool/ids",...$,...Z})}list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"provider"},{in:"query",key:"model"}]}]);return($?.client??this.client).get({url:"/experimental/tool",...$,...Z})}}class b$ extends L{remove(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return($?.client??this.client).delete({url:"/experimental/worktree",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/worktree",...$,...Z})}create(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}reset(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree/reset",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class v$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"search"},{in:"query",key:"limit"}]}]);return($?.client??this.client).get({url:"/session",...$,...Z})}create(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"parentID"},{in:"body",key:"contextFrom"},{in:"body",key:"contextWatermark"},{in:"body",key:"title"},{in:"body",key:"permission"},{in:"body",key:"workspaceID"}]}]);return($?.client??this.client).post({url:"/session",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}status(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/status",...$,...Z})}delete(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}",...$,...Z})}get(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}",...$,...Z})}update(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"permission"},{in:"body",key:"time"}]}]);return($?.client??this.client).patch({url:"/session/{sessionID}",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}children(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/children",...$,...Z})}init(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"modelID"},{in:"body",key:"providerID"},{in:"body",key:"messageID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/init",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}fork(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/fork",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}abort(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/abort",...$,...Z})}actors(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/actors",...$,...Z})}todo(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/todo",...$,...Z})}task(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/task",...$,...Z})}unshare(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/share",...$,...Z})}share(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/share",...$,...Z})}diff(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"messageID"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/diff",...$,...Z})}summarize(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"providerID"},{in:"body",key:"modelID"},{in:"body",key:"auto"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/summarize",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}revert(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"partID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/revert",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}unrevert(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/unrevert",...$,...Z})}messages(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"before"},{in:"query",key:"agent_id"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/message",...$,...Z})}prompt(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"agent"},{in:"body",key:"agentID"},{in:"body",key:"task_id"},{in:"body",key:"source"},{in:"body",key:"provenance"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/message",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}deleteMessage(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}",...$,...Z})}message(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/message/{messageID}",...$,...Z})}promptAsync(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"agent"},{in:"body",key:"agentID"},{in:"body",key:"task_id"},{in:"body",key:"source"},{in:"body",key:"provenance"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/prompt_async",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}command(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"arguments"},{in:"body",key:"command"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/command",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}predict(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/predict",...$,...Z})}shell(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/shell",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class y$ extends L{delete(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...$,...Z})}update(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"part",map:"body"}]}]);return($?.client??this.client).patch({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class C$ extends L{respond(O,$){let Z=X([O],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"permissionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"response"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/permissions/{permissionID}",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}reply(O,$){let Z=X([O],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"reply"},{in:"body",key:"message"}]}]);return($?.client??this.client).post({url:"/permission/{requestID}/reply",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/permission",...$,...Z})}}class c$ extends L{balance(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/qredits/balance",...$,...Z})}}class d$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return($?.client??this.client).get({url:"/workflows",...$,...Z})}resume(O,$){let Z=X([O],[{args:[{in:"path",key:"runID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/workflows/{runID}/resume",...$,...Z})}}class u$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question",...$,...Z})}neverAsk(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question/never-ask",...$,...Z})}setNeverAsk(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return($?.client??this.client).post({url:"/question/never-ask",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}reply(O,$){let Z=X([O],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"answers"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reply",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}reject(O,$){let Z=X([O],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reject",...$,...Z})}}class m$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/bash-interactive",...$,...Z})}reply(O,$){let Z=X([O],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"output"},{in:"body",key:"exitCode"}]}]);return($?.client??this.client).post({url:"/bash-interactive/{id}/reply",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class l$ extends L{_interactive;get interactive(){return this._interactive??=new m$({client:this.client})}}class n$ extends L{authorize(O,$){let Z=X([O],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"inputs"}]}]);return($?.client??this.client).post({url:"/provider/{providerID}/oauth/authorize",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}callback(O,$){let Z=X([O],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"code"}]}]);return($?.client??this.client).post({url:"/provider/{providerID}/oauth/callback",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class p$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider",...$,...Z})}auth(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider/auth",...$,...Z})}_oauth;get oauth(){return this._oauth??=new n$({client:this.client})}}class r$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/sync/history",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class i$ extends L{start(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/sync/start",...$,...Z})}replay(O,$){let Z=X([O],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"events"}]}]);return($?.client??this.client).post({url:"/sync/replay",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}_history;get history(){return this._history??=new r$({client:this.client})}}class t$ extends L{text(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return($?.client??this.client).get({url:"/find",...$,...Z})}files(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"},{in:"query",key:"dirs"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return($?.client??this.client).get({url:"/find/file",...$,...Z})}symbols(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return($?.client??this.client).get({url:"/find/symbol",...$,...Z})}}class s$ extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file",...$,...Z})}read(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file/content",...$,...Z})}status(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/file/status",...$,...Z})}}class a$ extends L{subscribe(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).sse.get({url:"/event",...$,...Z})}}class o$ extends L{remove(O,$){let Z=X([O],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/mcp/{name}/auth",...$,...Z})}start(O,$){let Z=X([O],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth",...$,...Z})}callback(O,$){let Z=X([O],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"code"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/callback",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}authenticate(O,$){let Z=X([O],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...$,...Z})}}class e$ extends L{status(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/mcp",...$,...Z})}add(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return($?.client??this.client).post({url:"/mcp",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}connect(O,$){let Z=X([O],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/connect",...$,...Z})}disconnect(O,$){let Z=X([O],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/disconnect",...$,...Z})}_auth;get auth(){return this._auth??=new o$({client:this.client})}}class $O extends L{next(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/tui/control/next",...$,...Z})}response(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/control/response",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}}class OO extends L{appendPrompt(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return($?.client??this.client).post({url:"/tui/append-prompt",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}openHelp(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-help",...$,...Z})}openSessions(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-sessions",...$,...Z})}openThemes(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-themes",...$,...Z})}openModels(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-models",...$,...Z})}submitPrompt(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/submit-prompt",...$,...Z})}clearPrompt(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/clear-prompt",...$,...Z})}executeCommand(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/tui/execute-command",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}showToast(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"message"},{in:"body",key:"variant"},{in:"body",key:"duration"}]}]);return($?.client??this.client).post({url:"/tui/show-toast",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}publish(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/publish",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}selectSession(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/tui/select-session",...$,...Z,headers:{"Content-Type":"application/json",...$?.headers,...Z.headers}})}_control;get control(){return this._control??=new $O({client:this.client})}}class ZO extends L{dispose(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/instance/dispose",...$,...Z})}}class XO extends L{get(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/path",...$,...Z})}}class GO extends L{get(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/vcs",...$,...Z})}diff(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"}]}]);return($?.client??this.client).get({url:"/vcs/diff",...$,...Z})}}class WO extends L{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/command",...$,...Z})}}class YO extends L{status(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/lsp",...$,...Z})}}class JO extends L{status(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/formatter",...$,...Z})}}class m extends L{static __registry=new j$;constructor(O){super(O);m.__registry.set(this,O?.key)}_global;get global(){return this._global??=new T$({client:this.client})}_auth;get auth(){return this._auth??=new R$({client:this.client})}_app;get app(){return this._app??=new _$({client:this.client})}_experimental;get experimental(){return this._experimental??=new A$({client:this.client})}_project;get project(){return this._project??=new h$({client:this.client})}_pty;get pty(){return this._pty??=new P$({client:this.client})}_config;get config(){return this._config??=new g$({client:this.client})}_tool;get tool(){return this._tool??=new f$({client:this.client})}_worktree;get worktree(){return this._worktree??=new b$({client:this.client})}_session;get session(){return this._session??=new v$({client:this.client})}_part;get part(){return this._part??=new y$({client:this.client})}_permission;get permission(){return this._permission??=new C$({client:this.client})}_qredits;get qredits(){return this._qredits??=new c$({client:this.client})}_workflow;get workflow(){return this._workflow??=new d$({client:this.client})}_question;get question(){return this._question??=new u$({client:this.client})}_bash;get bash(){return this._bash??=new l$({client:this.client})}_provider;get provider(){return this._provider??=new p$({client:this.client})}_sync;get sync(){return this._sync??=new i$({client:this.client})}_find;get find(){return this._find??=new t$({client:this.client})}_file;get file(){return this._file??=new s$({client:this.client})}_event;get event(){return this._event??=new a$({client:this.client})}_mcp;get mcp(){return this._mcp??=new e$({client:this.client})}_tui;get tui(){return this._tui??=new OO({client:this.client})}_instance;get instance(){return this._instance??=new ZO({client:this.client})}_path;get path(){return this._path??=new XO({client:this.client})}_vcs;get vcs(){return this._vcs??=new GO({client:this.client})}_command;get command(){return this._command??=new WO({client:this.client})}_lsp;get lsp(){return this._lsp??=new YO({client:this.client})}_formatter;get formatter(){return this._formatter??=new JO({client:this.client})}}function hO(O,$,Z){if(!O)return;if(!$)return O;if(O===$)return $;if(Z&&O===Z($))return $;return O}function PO(O,$){if(O.method!=="GET"&&O.method!=="HEAD")return O;let Z=new URL(O.url),J=!1;for(let[D,G]of[["x-qitqode-directory","directory"],["x-qitqode-workspace","workspace"]]){let W=hO(O.headers.get(D),G==="directory"?$.directory:$.workspace,G==="directory"?encodeURIComponent:void 0);if(!W)continue;if(!Z.searchParams.has(G))Z.searchParams.set(G,W);J=!0}if(!J)return O;let Y=new Request(Z,O);return Y.headers.delete("x-qitqode-directory"),Y.headers.delete("x-qitqode-workspace"),Y}function gO(O){if(O=VO(O),O?.experimental_workspaceID)O.headers={...O.headers,"x-qitqode-workspace":O.experimental_workspaceID};let $=g(O);return $.interceptors.request.use((Z)=>PO(Z,{directory:O?.directory,workspace:O?.experimental_workspaceID})),$.interceptors.response.use((Z)=>{if(Z.headers.get("content-type")==="text/html")throw Error("Request is not supported by this version of QitQode Server (Server responded with text/html)");return Z}),new m({client:$})}var vO=fO(bO(),1);var G$={};CO(G$,{toolDescriptionEffect:()=>nO,resolveWorkflowSummaries:()=>uO,resolveWorkflowSpec:()=>mO,resolveToolDescription:()=>KO,resolvePrompt:()=>zO,resolveGetHistory:()=>tO,resolveGetBalance:()=>iO,resolveForgewiseConfig:()=>rO,resolveFetchQreditsBalance:()=>sO,resolveBashArity:()=>lO,resolveAgentPrompt:()=>dO,remoteStats:()=>R,clearRemoteCache:()=>cO,BackendRemote:()=>G$,BackendAuthRejectedError:()=>h});var x=LO.create({service:"backend.remote"}),O$=30000,Z$=5000,H=new Map,R={failures:0,authRejections:0,missingPrompts:0,missingToolDescriptions:0},o=new Set,e=new Set;class h extends Error{name="BackendAuthRejectedError";constructor(O){super(DO.copy().invalidCredentials(O))}}function cO(){H.clear(),o.clear(),e.clear()}async function b(O,$){let Z=k.QITQODE_BACKEND_URL,J=Date.now(),Y=`${Z}::${O}`,D=H.get(Y);if(D&&D.expires>J)return D.value;try{let G=await l(),W=G?n(G):void 0,z=await $(IO({baseUrl:Z,headers:W,fetch:(I,U)=>fetch(I,{...U,signal:U?.signal??AbortSignal.timeout(Z$)})}));return H.set(Y,{value:z,expires:J+O$}),z}catch(G){if(G instanceof UO){if(R.authRejections++,await $$().catch(()=>{}),x.warn("backend rejected the credential; prompting re-auth",{cacheKey:O,baseUrl:Z,status:G.status}),process.env.QITQODE_KEY)x.error(a),console.error(a);throw new h(`HTTP ${G.status}`)}throw R.failures++,x.warn("backend request failed; surfacing error",{cacheKey:O,baseUrl:Z,error:G instanceof Error?G.message:String(G)}),G}}async function zO(O){if(O.indexOf("/")<=0)return;return b(`prompt:${O}`,($)=>$.prompt(O).then((Z)=>Z??void 0))}async function dO(O){let $=`agent/${O}`,Z=await zO($);if(Z===void 0||Z===""){if(!o.has(O))o.add(O),R.missingPrompts++,x.warn("backend served no content for agent prompt; running with an empty prompt",{prompt:$,baseUrl:k.QITQODE_BACKEND_URL,missingPrompts:R.missingPrompts})}return Z}async function uO(){return b("workflow.list",(O)=>O.workflowSummaries())}async function mO(O){return b(`workflow.get:${O}`,($)=>$.workflowSpec(O).then((Z)=>Z??void 0))}async function lO(){return b("permission.arity",(O)=>O.bashArity())}async function KO(O){let $=await b(`tool.description:${O}`,(Z)=>Z.toolDescription(O).then((J)=>J??void 0));if($===void 0||$===""){if(!e.has(O))e.add(O),R.missingToolDescriptions++,x.warn("backend served no content for tool description; running with an empty description",{tool:O,baseUrl:k.QITQODE_BACKEND_URL,missingToolDescriptions:R.missingToolDescriptions})}return $}function nO(O){return f.promise(()=>KO(O)).pipe(f.catchDefect(($)=>$ instanceof h?f.succeed(void 0):f.die($)))}async function X$(O,$,Z,J={}){let Y=k.QITQODE_BACKEND_URL,D=`${Y}::post:${O}`;if(!J.noCache){let G=Date.now(),W=H.get(D);if(W&&W.expires>G)return W.value}try{let G=await l(),W=G?n(G):{},V=await fetch(`${Y}/${$}`,{method:"POST",headers:{"Content-Type":"application/json",...W},body:JSON.stringify(Z),signal:J.signal});if(V.status===401||V.status===403){let U=await V.text().catch(()=>"");if(U.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${U}`);throw R.authRejections++,await $$().catch(()=>{}),x.warn("backend rejected the credential; prompting re-auth",{fnName:$,baseUrl:Y,status:V.status}),new h(`HTTP ${V.status}`)}if(!V.ok)throw Error(`Backend POST /${$} failed: ${V.status}`);let z=await V.json();if(!z.success)throw Error(`Backend POST /${$} returned failure: ${z.error??"unknown error"}`);let I=z.data;if(!J.noCache)H.set(D,{value:I,expires:Date.now()+O$});return I}catch(G){if(G instanceof h)throw G;throw R.failures++,x.warn("backend POST request failed; surfacing error",{fnName:$,baseUrl:Y,error:G instanceof Error?G.message:String(G)}),G}}async function pO(O,$,Z){let J=k.QITQODE_BACKEND_URL,Y=`${J}::public:${O}`,D=Date.now(),G=H.get(Y);if(G&&G.expires>D)return G.value;try{let W=await fetch(`${J}/${$}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Z),signal:AbortSignal.timeout(Z$)});if(!W.ok)throw Error(`Backend public POST /${$} failed: ${W.status}`);let V=await W.json();if(!V.success)throw Error(`Backend public POST /${$} returned failure: ${V.error??"unknown error"}`);let z=V.data;return H.set(Y,{value:z,expires:D+O$}),z}catch(W){throw R.failures++,x.warn("backend public request failed; surfacing error",{fnName:$,baseUrl:J,error:W instanceof Error?W.message:String(W)}),W}}async function rO(){try{return await pO("forgewise.config","forgewiseConfig",{})}catch(O){let $=await l().catch(()=>null);if(!$)throw O;let Z=k.QITQODE_BACKEND_URL,J=await fetch(`${Z}/forgewiseConfig`,{method:"POST",headers:{"Content-Type":"application/json",...n($)},body:JSON.stringify({}),signal:AbortSignal.timeout(Z$)}).catch(()=>null);if(!J?.ok)throw O;let Y=await J.json().catch(()=>null);if(!Y?.success)throw O;return Y.data}}async function iO(O){return X$("qredits.balance","getBalance",O,{noCache:!0})}async function tO(O){return X$("qredits.history","getHistory",O,{noCache:!0})}async function sO(O){return X$("forgewise.qredits.balance","fetchQreditsBalance",O,{noCache:!0})}
|
|
8
|
-
export{eO as Ah,gO as Bh,rO as Ch,tO as Dh,sO as Eh,G$ as Fh};
|
package/bundle/chunk-tp1d856p.js
DELETED
package/bundle/chunk-tpxs00p5.js
DELETED
package/bundle/chunk-tqk12r89.js
DELETED
package/bundle/chunk-tycgrqgq.js
DELETED
package/bundle/chunk-tz8qhbk9.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
class K extends Error{name="BackendAuthError";status;constructor(j,C){super(`backend authentication rejected (${j})${C?`: ${C}`:""}`);this.status=j}}function N(j){if(!j)return!1;try{let C=JSON.parse(j);if(C&&C.code==="ERR_GATEWAY_REQUIRED")return!0}catch{}return j.includes("ERR_GATEWAY_REQUIRED")}function P(j){let C=j.fetch??fetch,L=j.baseUrl.replace(/\/+$/,"");async function z(x,M={}){let J=new Headers(j.headers);J.set("content-type","application/json");let D=await C(`${L}/${x}`,{method:"POST",headers:J,body:JSON.stringify(M)});if(!D.ok){let H=await D.text().catch(()=>"");if((D.status===401||D.status===403)&&!N(H))throw new K(D.status,H||void 0);throw Error(`backend function call failed (${D.status}): ${x}${H?` ${H}`:""}`)}let I=await D.json();if(!I.success)throw Error(`backend function call returned failure: ${x} \u2014 ${I.error??"unknown error"}`);return I.data}return{promptNames:()=>z("promptNames"),prompt:(x)=>z("prompt",{name:x}),tiers:()=>z("tiers"),workflowSummaries:()=>z("workflowSummaries"),workflowSpec:(x)=>z("workflowSpec",{name:x}),bashArity:()=>z("bashArity"),toolManifest:()=>z("toolManifest"),toolDescription:(x)=>z("toolDescription",{id:x})}}
|
|
3
|
-
export{K as Ji,N as Ki,P as Li};
|
package/bundle/chunk-v1y3pbfv.js
DELETED
package/bundle/chunk-v32cyrg2.js
DELETED
package/bundle/chunk-v7pypmvk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{bP as a,cP as b,dP as c,eP as d,fP as e,gP as f,hP as g,iP as h,jP as i,kP as j}from"./chunk-bqeyh2gx.js";import"./chunk-naq602da.js";export{c as TreeCursor,b as Tree,f as Query,j as Parser,d as Node,i as MIN_COMPATIBLE_VERSION,a as LookaheadIterator,g as Language,h as LANGUAGE_VERSION,e as CaptureQuantifier};
|
package/bundle/chunk-vbqyddy8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Eg as r}from"./chunk-863s0tqa.js";import{rP as o}from"./chunk-naq602da.js";var c=new r("zod v4");async function m(){return async(n,e)=>{let t;if("_zod"in n)try{t=(await import("./chunk-fvwys8ej.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-jge74hh4.js")).zodToJsonSchema}catch{throw new r("zod-to-json-schema")}return t(n,e)}}export{m as default};
|
package/bundle/chunk-vgx86f2r.js
DELETED
package/bundle/chunk-w0jvqdez.js
DELETED
package/bundle/chunk-w79yek40.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{lf as h}from"./chunk-gzse9pab.js";import"./chunk-fp5mvrrx.js";import"./chunk-zzdbrxkh.js";import"./chunk-cqtkxwd8.js";import"./chunk-xtj5qqsw.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-naq602da.js";var v=(q)=>{return h({baseURL:"https://gateway.ai.cloudflare.com/v1/compat",name:"Unified",...q||{}})},x=v();export{x as unified,v as createUnified};
|
package/bundle/chunk-w7nxsfbd.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{rP as o}from"./chunk-naq602da.js";var i=(t)=>`standard-openapi: ${t}`,s=new Map,r=async(t)=>{let e=s.get(t);if(e)return e;let a;switch(t){case"valibot":a=(await import("./chunk-c546xxjk.js")).default();break;case"zod":a=(await import("./chunk-4nhbgva1.js")).default();break;default:a=(await import("./chunk-22pvftx8.js")).default()}return s.set(t,a),a},d=async(t,e={})=>{let a=await r(t["~standard"].vendor),{components:n={},options:c}=e;return{schema:await a(t,{components:n,options:c}),components:Object.keys(n).length>0?n:void 0}};
|
|
3
|
-
export{i as Cg,d as Dg};
|
package/bundle/chunk-wcea06cr.js
DELETED
package/bundle/chunk-wcx4bbvn.js
DELETED
package/bundle/chunk-wdw183vh.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dl as s,El as t,Fl as u,Hl as v,Il as w}from"./chunk-fzzze6zd.js";import"./chunk-afpwjn78.js";import{Gn as q,Hn as r,Im as a,in as b,jn as c,kn as d,ln as e,mn as f,nn as g,on as h,pn as i,qn as j,rn as k,tn as l,un as m,vn as n,xn as o,zn as p}from"./chunk-c4x99ayd.js";import"./chunk-jazpapb9.js";import"./chunk-hqv0s6sw.js";import"./chunk-apv1v4tk.js";import"./chunk-mwbcmvmh.js";import"./chunk-9y65kbcf.js";import"./chunk-24r5h0fx.js";import"./chunk-dsny9dh8.js";import"./chunk-scb48j07.js";import"./chunk-tydvpy1s.js";import"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-naq602da.js";export{a as sql,e as or,f as not,c as ne,j as lte,i as lt,p as like,l as isNull,m as isNotNull,k as inArray,h as gte,g as gt,n as exists,b as eq,r as desc,t as count,o as between,q as asc,d as and,w as Storage,v as NotFoundError,s as JsonMigration,u as Database};
|
package/bundle/chunk-wqd3svh6.js
DELETED
package/bundle/chunk-wqe5spdq.js
DELETED
package/bundle/chunk-wqww2byk.js
DELETED
package/bundle/chunk-wybd806z.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ie as a,je as b,ke as c,le as d,me as e,ne as f,oe as g}from"./chunk-ar1by07g.js";import"./chunk-yccm7cfm.js";import"./chunk-88kt6qmd.js";import"./chunk-c38ppnm8.js";import"./chunk-naq602da.js";export{g as fromEnv,c as ENV_SESSION,b as ENV_SECRET,a as ENV_KEY,d as ENV_EXPIRATION,e as ENV_CREDENTIAL_SCOPE,f as ENV_ACCOUNT_ID};
|
package/bundle/chunk-x1vb00hr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tf as a,Uf as b}from"./chunk-9n6f9n1c.js";import"./chunk-tydvpy1s.js";import"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-naq602da.js";export{a as start,b as Heap};
|
package/bundle/chunk-xafh07r3.js
DELETED
package/bundle/chunk-xgzjcsad.js
DELETED
package/bundle/chunk-xn0xhd0w.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Dh as t}from"./chunk-tmjd3evp.js";class k extends Error{cause;constructor(r,e){super(r);this.name="QreditChargeError",this.cause=e}}async function d(r){return t(r)}function x(r){return Number.isInteger(r)?String(r):r.toFixed(2)}function R(r,e){let i={sub:r.sub,name:r.name,email:r.email,expires_at:String(r.expires_at),...e.rotateRefreshToken&&r.refresh_token?{refresh_token:r.refresh_token}:{}};return{type:"api",key:r.access_token,metadata:i}}
|
|
3
|
-
export{k as D,d as E,x as F,R as G};
|
package/bundle/chunk-xnbfy5jy.js
DELETED
package/bundle/chunk-xxed39zx.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zf as E}from"./chunk-g6tw5dvr.js";import"./chunk-5x19yah0.js";import"./chunk-576zfh1s.js";import"./chunk-1gjh45v5.js";import"./chunk-w7nxsfbd.js";import"./chunk-nfg7nt13.js";import"./chunk-863s0tqa.js";import"./chunk-5dpev64z.js";import"./chunk-my0kzcby.js";import"./chunk-1v47v7vm.js";import"./chunk-tmjd3evp.js";import"./chunk-q6x5bmc3.js";import"./chunk-n1m5qdf5.js";import"./chunk-zeh3mjgp.js";import"./chunk-ntfh16rj.js";import"./chunk-tz8qhbk9.js";import"./chunk-hvcdemxe.js";import"./chunk-2wcwbp3t.js";import"./chunk-3sem578c.js";import"./chunk-fzzze6zd.js";import"./chunk-afpwjn78.js";import"./chunk-c4x99ayd.js";import"./chunk-44amvtcs.js";import"./chunk-cbfjjbfd.js";import"./chunk-c7dt464m.js";import"./chunk-jazpapb9.js";import"./chunk-knnemqfm.js";import"./chunk-hqv0s6sw.js";import"./chunk-apv1v4tk.js";import"./chunk-7tb9fjvq.js";import"./chunk-fp5mvrrx.js";import"./chunk-zzdbrxkh.js";import"./chunk-cqtkxwd8.js";import"./chunk-xtj5qqsw.js";import"./chunk-w32tj884.js";import"./chunk-29hmwttd.js";import"./chunk-2qy760rf.js";import"./chunk-kfdqfha0.js";import"./chunk-t42kh492.js";import"./chunk-8hh5ejmr.js";import"./chunk-mwbcmvmh.js";import"./chunk-9y65kbcf.js";import"./chunk-24r5h0fx.js";import"./chunk-vxc5q0wk.js";import"./chunk-dsny9dh8.js";import"./chunk-scb48j07.js";import"./chunk-k33xx2z9.js";import"./chunk-tydvpy1s.js";import"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import"./chunk-shav33fq.js";import"./chunk-bqeyh2gx.js";import"./chunk-kpkbyek5.js";import{rP as z}from"./chunk-naq602da.js";var J={command:"generate",handler:async()=>{let A=await E.openapi();for(let q of Object.values(A.paths))for(let y of["get","post","put","delete","patch"]){let k=q[y];if(!k?.operationId)continue;k["x-codeSamples"]=[{lang:"js",source:['import { createQitQodeClient } from "@qitqode/sdk"',"","const client = createQitQodeClient()",`await client.${k.operationId}({`," ...","})"].join(`
|
|
3
|
-
`)}]}let F=JSON.stringify(A,null,2),B=await import("./chunk-2es79khv.js"),C=await import("./chunk-7m4camry.js"),D=await import("./chunk-07szgr15.js"),G=await(B.format??B.default?.format)(F,{parser:"json",plugins:[C.default??C,D.default??D],printWidth:120});await new Promise((q,y)=>{process.stdout.write(G,(k)=>{if(k)y(k);else q()})})}};export{J as GenerateCommand};
|
package/bundle/chunk-y6pzag4n.js
DELETED
package/bundle/chunk-y7w6fjwt.js
DELETED
package/bundle/chunk-yr4evt94.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{H as I}from"./chunk-jj7wrfty.js";import{I as i,K as r}from"./chunk-hk1ha5fj.js";import{td as c}from"./chunk-haw1jzwb.js";import{ud as g}from"./chunk-hyr049cr.js";import{vd as y}from"./chunk-y2r3zker.js";import{wd as k}from"./chunk-b54t7ycj.js";import{xd as A}from"./chunk-fd1vbz1f.js";import{Cd as w,Dd as u,Fd as W,Gd as L,Hd as T,Jd as p,Kd as o,Ld as b,Md as P}from"./chunk-3ne6j2h5.js";import"./chunk-799c17nk.js";import{Od as z}from"./chunk-wmmck56g.js";import{Sf as Y}from"./chunk-s75chpxq.js";import{qh as M}from"./chunk-my0kzcby.js";import"./chunk-1v47v7vm.js";import"./chunk-tmjd3evp.js";import"./chunk-q6x5bmc3.js";import"./chunk-n1m5qdf5.js";import"./chunk-zeh3mjgp.js";import"./chunk-ntfh16rj.js";import"./chunk-tz8qhbk9.js";import"./chunk-hvcdemxe.js";import{Dj as R,Sk as a,fl as s}from"./chunk-2wcwbp3t.js";import{rl as V}from"./chunk-3sem578c.js";import{Pl as n}from"./chunk-fzzze6zd.js";import"./chunk-afpwjn78.js";import"./chunk-c4x99ayd.js";import"./chunk-44amvtcs.js";import"./chunk-cbfjjbfd.js";import"./chunk-c7dt464m.js";import"./chunk-jazpapb9.js";import"./chunk-knnemqfm.js";import"./chunk-hqv0s6sw.js";import"./chunk-apv1v4tk.js";import"./chunk-7tb9fjvq.js";import"./chunk-fp5mvrrx.js";import"./chunk-zzdbrxkh.js";import"./chunk-cqtkxwd8.js";import"./chunk-xtj5qqsw.js";import"./chunk-w32tj884.js";import"./chunk-29hmwttd.js";import"./chunk-2qy760rf.js";import"./chunk-kfdqfha0.js";import"./chunk-t42kh492.js";import"./chunk-8hh5ejmr.js";import"./chunk-mwbcmvmh.js";import"./chunk-9y65kbcf.js";import"./chunk-24r5h0fx.js";import"./chunk-vxc5q0wk.js";import"./chunk-dsny9dh8.js";import"./chunk-scb48j07.js";import"./chunk-k33xx2z9.js";import{et as l}from"./chunk-tydvpy1s.js";import{xt as d}from"./chunk-b2k9yafd.js";import"./chunk-sjqgmp12.js";import"./chunk-jek1cnfk.js";import{Ot as v}from"./chunk-s7sksztt.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-kdr6nxmk.js";import{bI as O}from"./chunk-shav33fq.js";import"./chunk-bqeyh2gx.js";import"./chunk-kpkbyek5.js";import{rP as H1}from"./chunk-naq602da.js";import f from"path";import{pathToFileURL as J1}from"url";import Q1 from"os";import{access as S1,readdir as X1}from"fs/promises";var q1={en:A,zh:k,ja:c,fr:y,ru:g},B1=q1[I()]??A;function U($,B){let J=B1[$]??A[$]??$;if(!B)return J;return J.replace(/\{(\w+)\}/g,(X,H)=>(H in B)?String(B[H]):`{${H}}`)}import{text as Z1}from"stream/consumers";var D=($,B)=>M.runPromise(O.gen(function*(){yield*(yield*R.Service).set($,B)}));async function t(){let $=await p({message:"Enter your API key",validate:(B)=>B&&B.length>0?void 0:"Required"});if(w($))throw new Y.CancelledError;return $}async function h($,B){let J=$.provider??B;if("refresh"in $){let{type:X,provider:H,refresh:Z,access:j,expires:q,metadata:S,...G}=$;await D(J,{type:"oauth",refresh:Z,access:j,expires:q,...G})}if("key"in $)await D(J,{type:"api",key:$.key,...$.metadata?{metadata:$.metadata}:{}})}async function x($,B,J){let X=0;if(J){let j=$.auth.methods.findIndex((q)=>q.label.toLowerCase()===J.toLowerCase());if(j===-1)W.error(`Unknown method "${J}" for ${B}. Available: ${$.auth.methods.map((q)=>q.label).join(", ")}`),process.exit(1);X=j}else if($.auth.methods.length>1){let j=await b({message:"Login method",options:$.auth.methods.map((q,S)=>({label:q.label,value:S.toString()}))});if(w(j))throw new Y.CancelledError;X=parseInt(j)}let H=$.auth.methods[X];await new Promise((j)=>setTimeout(j,10));let Z={};if(H.prompts)for(let j of H.prompts){if(j.when){let q=Z[j.when.key];if(q===void 0)continue;if(!(j.when.op==="eq"?q===j.when.value:q!==j.when.value))continue}if(j.condition&&!j.condition(Z))continue;if(j.type==="select"){let q=await b({message:j.message,options:j.options});if(w(q))throw new Y.CancelledError;Z[j.key]=q}else{let q=await P({message:j.message,placeholder:j.placeholder,validate:j.validate?(S)=>j.validate(S??""):void 0});if(w(q))throw new Y.CancelledError;Z[j.key]=q}}if(H.type==="oauth"){let j=await H.authorize(Z);if(j.url)W.info("Go to: "+j.url);if(j.method==="auto"){if(j.instructions)W.info(j.instructions);let q=o();q.start("Waiting for authorization...");let S=await j.callback();if(S.type==="failed")q.stop("Failed to authorize",1);if(S.type==="success")await h(S,B),q.stop("Login successful")}if(j.method==="code"){let q=await P({message:"Paste the authorization code here: ",validate:(G)=>G&&G.length>0?void 0:"Required"});if(w(q))throw new Y.CancelledError;let S=await j.callback(q);if(S.type==="failed")W.error("Failed to authorize");if(S.type==="success")await h(S,B),W.success("Login successful")}return T("Done"),!0}if(H.type==="api"){if(H.authorize){let j=await t(),q=await H.authorize(Z);if(q.type==="failed")W.error("Failed to authorize");if(q.type==="success"){let S=q.provider??B;await D(S,{type:"api",key:q.key??j}),W.success("Login successful")}return T("Done"),!0}}return!1}function G1($){let B=new Set,J=[];for(let X of $.hooks){if(!X.auth)continue;let H=X.auth.provider;if(B.has(H))continue;if(B.add(H),Object.hasOwn($.existingProviders,H))continue;if($.disabled.has(H))continue;if($.enabled&&!$.enabled.has(H))continue;J.push({id:H,name:$.providerNames[H]??H})}return J}function m($){let B=$?.loginExtension;if(!B||typeof B!=="object")return;let J=B;if(typeof J.id!=="string"||typeof J.run!=="function")return;return J}async function W1(){try{let J=await import("./chunk-j5vahbw1.js");for(let X of Object.values(J.modules??{})){let H=m(X);if(H)return H}}catch{}let $=f.join(import.meta.dir,"..","..","ext");await S1($).catch(()=>{return});let B=await X1($).catch(()=>[]);for(let J of B.filter((X)=>X.endsWith(".ts")&&!X.endsWith(".d.ts")))try{let X=m(await import(J1(f.join($,J)).href));if(X)return X}catch{}return}var l1=z({command:"providers",aliases:["auth"],describe:"manage AI providers and credentials",builder:($)=>$.command(Y1).command(_1).command(F1).command(K1).demandCommand(),async handler(){}}),Y1=z({command:"list",aliases:["ls"],describe:"list providers and credentials",async handler($){Y.empty();let B=f.join(l.Path.data,"auth.json"),J=Q1.homedir(),X=B===J||B.startsWith(J+f.sep)?"~"+B.slice(J.length):B;L(`Credentials ${Y.Style.TEXT_DIM}${X}`);let H=await M.runPromise(O.gen(function*(){let q=yield*R.Service;return Object.entries(yield*q.all())})),Z=await V.get();for(let[q,S]of H){let G=Z[q]?.name||q;W.info(`${G} ${Y.Style.TEXT_DIM}${S.type}`)}T(`${H.length} credentials`);let j=[];for(let[q,S]of Object.entries(Z))for(let G of S.env)if(process.env[G])j.push({provider:S.name||q,envVar:G});if(j.length>0){Y.empty(),L("Environment");for(let{provider:q,envVar:S}of j)W.info(`${q} ${Y.Style.TEXT_DIM}${S}`);T(`${j.length} environment variable`+(j.length===1?"":"s"))}}}),_1=z({command:"login [url]",describe:"log in to a provider",builder:($)=>$.positional("url",{describe:"qitqode auth provider",type:"string"}).option("provider",{alias:["p"],describe:"provider id or name to log in to (skips provider selection)",type:"string"}).option("method",{alias:["m"],describe:"login method label (skips method selection)",type:"string"}),async handler($){await n.provide({directory:process.cwd(),async fn(){if(Y.empty(),L("Add credential"),$.url){let Q=$.url.replace(/\/+$/,""),_=await fetch(`${Q}/.well-known/opencode`).then((j1)=>j1.json());W.info(`Running \`${_.auth.command.join(" ")}\``);let F=d.spawn(_.auth.command,{stdout:"pipe"});if(!F.stdout){W.error("Failed"),T("Done");return}let[C,N]=await Promise.all([F.exited,Z1(F.stdout)]);if(C!==0){W.error("Failed"),T("Done");return}await D(Q,{type:"wellknown",key:_.auth.env,token:N.trim()}),W.success("Logged into "+Q),T("Done");return}await V.refresh(!0).catch(()=>{});let B=await M.runPromise(s.Service.use((Q)=>Q.get())),J=new Set(B.disabled_providers??[]),X=B.enabled_providers?new Set(B.enabled_providers):void 0,H=await V.get().then((Q)=>{let _={};for(let[F,C]of Object.entries(Q))if((X?X.has(F):!0)&&!J.has(F))_[F]=C;return _}),Z=await M.runPromise(O.gen(function*(){return yield*(yield*a.Service).list()})),j=i,q=G1({hooks:Z,existingProviders:H,disabled:J,enabled:X,providerNames:Object.fromEntries(Object.entries(B.provider??{}).map(([Q,_])=>[Q,_.name]))}),S=[...r(v(H),j,(Q)=>({openai:"ChatGPT Plus/Pro or API key"})[Q.id]),...q.map((Q)=>({label:Q.name,value:Q.id,hint:"plugin"}))],G=await W1(),e=G?[G.id,...G.aliases??[]]:[],K;if(G&&$.provider&&e.includes($.provider)){await G.run();return}else if($.provider){let Q=$.provider,_=S.find((N)=>N.value===Q),F=S.find((N)=>N.label.toLowerCase()===Q.toLowerCase()),C=_??F;if(!C)W.error(`Unknown provider "${Q}"`),process.exit(1);K=C.value}else{let Q=await b({message:U("cli.providers.select"),options:[...G?.menu?[{label:G.menu.label,value:G.id,hint:G.menu.hint}]:[],{label:U("cli.providers.other"),value:"__other__"}]});if(w(Q))throw new Y.CancelledError;if(G&&Q===G.id){await G.run();return}let _=await u({message:U("cli.providers.select"),maxItems:8,options:[...S,{value:"other",label:"Other"}]});if(w(_))throw new Y.CancelledError;K=_}let E=Z.findLast((Q)=>Q.auth?.provider===K);if(E&&E.auth){if(await x({auth:E.auth},K,$.method))return}if(K==="other"){let Q=await P({message:"Enter provider id",validate:(F)=>F&&F.match(/^[0-9a-z-]+$/)?void 0:"a-z, 0-9 and hyphens only"});if(w(Q))throw new Y.CancelledError;K=Q.replace(/^@ai-sdk\//,"");let _=Z.findLast((F)=>F.auth?.provider===K);if(_&&_.auth){if(await x({auth:_.auth},K,$.method))return}W.warn(`This only stores a credential for ${K} - you will need configure it in qitqode.json, check the docs for examples.`)}if(K==="amazon-bedrock")W.info(`Amazon Bedrock authentication priority:
|
|
3
|
-
1. Bearer token (AWS_BEARER_TOKEN_BEDROCK or /connect)
|
|
4
|
-
2. AWS credential chain (profile, access keys, IAM roles, EKS IRSA)
|
|
5
|
-
|
|
6
|
-
Configure via qitqode.json options (profile, region, endpoint) or
|
|
7
|
-
AWS environment variables (AWS_PROFILE, AWS_REGION, AWS_ACCESS_KEY_ID, AWS_WEB_IDENTITY_TOKEN_FILE).`);if(K==="opencode")W.info("Create an api key at https://opencode.ai/auth");if(K==="vercel")W.info("You can create an api key at https://vercel.link/ai-gateway-token");if(["cloudflare","cloudflare-ai-gateway"].includes(K))W.info("Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://opencode.ai/docs/providers/#cloudflare-ai-gateway");let $1=await t();await D(K,{type:"api",key:$1}),T("Done")}})}}),F1=z({command:"logout",describe:"log out from a configured provider",async handler($){Y.empty();let B=await M.runPromise(O.gen(function*(){let Z=yield*R.Service;return Object.entries(yield*Z.all())}));if(L("Remove credential"),B.length===0){W.error("No credentials found");return}let J=await V.get(),X=await b({message:"Select provider",options:B.map(([Z,j])=>({label:(J[Z]?.name||Z)+Y.Style.TEXT_DIM+" ("+j.type+")",value:Z}))});if(w(X))throw new Y.CancelledError;let H=X;await M.runPromise(O.gen(function*(){yield*(yield*R.Service).remove(H)})),T("Logout successful")}}),K1=z({command:"whoami",describe:"show current logged-in user info",async handler($){Y.empty(),L("Current auth"),W.info("Run `qode auth list` to see all authenticated providers."),T("")}});export{G1 as resolvePluginProviders,K1 as ProvidersWhoamiCommand,F1 as ProvidersLogoutCommand,_1 as ProvidersLoginCommand,Y1 as ProvidersListCommand,l1 as ProvidersCommand};
|
package/bundle/chunk-z195gv71.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{gf as a,hf as b,if as c,jf as d,kf as e,lf as f}from"./chunk-gzse9pab.js";import"./chunk-fp5mvrrx.js";import"./chunk-zzdbrxkh.js";import"./chunk-cqtkxwd8.js";import"./chunk-xtj5qqsw.js";import"./chunk-22vvjp4g.js";import"./chunk-a3te67a5.js";import"./chunk-naq602da.js";export{f as createOpenAICompatible,e as VERSION,d as OpenAICompatibleImageModel,c as OpenAICompatibleEmbeddingModel,b as OpenAICompatibleCompletionLanguageModel,a as OpenAICompatibleChatLanguageModel};
|