@qitqode/qitqode-android-arm64 0.1.30 → 0.1.32
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-37n34pzd.js → chunk-01my2y0c.js} +1 -1
- package/bundle/{chunk-ejjea8hh.js → chunk-02jtpxe0.js} +1 -1
- package/bundle/{chunk-6qy1ghrx.js → chunk-05mce0j3.js} +1 -1
- package/bundle/chunk-096pd6c4.js +2 -0
- package/bundle/{chunk-g1dwbvkg.js → chunk-0bbs01f0.js} +1 -1
- package/bundle/chunk-0c2p3a6v.js +2 -0
- package/bundle/chunk-0c5rxty9.js +2 -0
- package/bundle/{chunk-j6emx6jn.js → chunk-0dt0bxz6.js} +2 -2
- package/bundle/chunk-0e86gt9r.js +2 -0
- package/bundle/{chunk-mskwkcgj.js → chunk-0mx2psfc.js} +1 -1
- package/bundle/chunk-0p27fvfr.js +2 -0
- package/bundle/chunk-0qs1vx97.js +2 -0
- package/bundle/{chunk-f45tp3e3.js → chunk-0v0vqbn5.js} +1 -1
- package/bundle/{chunk-be216spx.js → chunk-10bjs581.js} +2 -2
- package/bundle/{chunk-bss414qz.js → chunk-12vef2pr.js} +1 -1
- package/bundle/{chunk-jm1ptn8n.js → chunk-15hw2z9t.js} +1 -1
- package/bundle/chunk-15j5cn4t.js +2 -0
- package/bundle/{chunk-srh4xvsj.js → chunk-1gx18dm5.js} +1 -1
- package/bundle/chunk-1r95p0tp.js +2 -0
- package/bundle/chunk-1rhhhm88.js +2 -0
- package/bundle/{chunk-b0syck9r.js → chunk-1sgahe1s.js} +1 -1
- package/bundle/{chunk-26nfphsg.js → chunk-1vb79bw1.js} +1 -1
- package/bundle/chunk-1wbjh23g.js +2 -0
- package/bundle/chunk-20702epe.js +2 -0
- package/bundle/{chunk-371r2111.js → chunk-24jg9d61.js} +1 -1
- package/bundle/chunk-257me4z3.js +800 -0
- package/bundle/{chunk-1sgby720.js → chunk-2hc5z7b5.js} +1 -1
- package/bundle/{chunk-yq3m8190.js → chunk-2maqde7w.js} +2 -2
- package/bundle/{chunk-mrw279k3.js → chunk-2phz0bn9.js} +1 -1
- package/bundle/{chunk-b8tw709r.js → chunk-2vn41ecx.js} +1 -1
- package/bundle/chunk-2wajs9xv.js +2 -0
- package/bundle/{chunk-w87a3mzm.js → chunk-2zq4k837.js} +1 -1
- package/bundle/{chunk-1bhvt33f.js → chunk-31qrzrwy.js} +1 -1
- package/bundle/{chunk-d5bxan80.js → chunk-326p5b10.js} +2 -2
- package/bundle/{chunk-0df4kede.js → chunk-33e9y2aw.js} +1 -1
- package/bundle/{chunk-zcm2jdr5.js → chunk-35xk4g91.js} +1 -1
- package/bundle/{chunk-5fz8tph5.js → chunk-3632wgg1.js} +1 -1
- package/bundle/{chunk-1ngtxja9.js → chunk-3bxg5bta.js} +1 -1
- package/bundle/{chunk-mgk9sh16.js → chunk-3c6p8tm3.js} +1 -1
- package/bundle/{chunk-fqw4y7x0.js → chunk-3nx7112w.js} +2 -2
- package/bundle/{chunk-n26yf3he.js → chunk-3wetyrjs.js} +1 -1
- package/bundle/{chunk-2jmxt3fb.js → chunk-40efytmk.js} +1 -1
- package/bundle/chunk-42p59wm4.js +2 -0
- package/bundle/chunk-4512pvca.js +2 -0
- package/bundle/chunk-456bmaww.js +2 -0
- package/bundle/{chunk-c5e6sk9c.js → chunk-48ge2ryx.js} +1 -1
- package/bundle/chunk-48pajrnt.js +2 -0
- package/bundle/{chunk-12bssxd4.js → chunk-4cnwn1rh.js} +2 -2
- package/bundle/chunk-4fy9c54h.js +2 -0
- package/bundle/{chunk-4tbwha3m.js → chunk-4jtxtkj7.js} +2 -2
- package/bundle/chunk-4sc82a27.js +2 -0
- package/bundle/chunk-52bam8g7.js +2 -0
- package/bundle/{chunk-6fp8a9ek.js → chunk-53bqcctj.js} +1 -1
- package/bundle/{chunk-hwbyqezq.js → chunk-56z7x7h4.js} +2 -2
- package/bundle/chunk-59y8q9m5.js +2 -0
- package/bundle/chunk-59yqvk48.js +3 -0
- package/bundle/{chunk-a1pw9r6f.js → chunk-5hw6xa49.js} +2 -2
- package/bundle/{chunk-8qkhddq3.js → chunk-5jx0yadh.js} +2 -2
- package/bundle/chunk-5pb551dx.js +2 -0
- package/bundle/{chunk-qrey2gwb.js → chunk-5q4harvc.js} +2 -2
- package/bundle/chunk-5tray1fw.js +3 -0
- package/bundle/{chunk-my6sz5d6.js → chunk-60v5jvgt.js} +1 -1
- package/bundle/chunk-634pnryq.js +2 -0
- package/bundle/chunk-64ezpbwt.js +2 -0
- package/bundle/{chunk-5fgx6fa4.js → chunk-69nzndk7.js} +1 -1
- package/bundle/{chunk-k8ss3135.js → chunk-6aqyhfag.js} +218 -218
- package/bundle/{chunk-chmrvbbj.js → chunk-6d5rrre9.js} +1 -1
- package/bundle/{chunk-g3dhsmbt.js → chunk-6hpgb8h4.js} +3 -3
- package/bundle/{chunk-drs1gv2b.js → chunk-6kp07m7p.js} +1 -1
- package/bundle/{chunk-wy46mbwt.js → chunk-6phh70sp.js} +1 -1
- package/bundle/{chunk-v2zp22r3.js → chunk-70ck4v3t.js} +1 -1
- package/bundle/{chunk-2tnarng3.js → chunk-71sjjjr8.js} +1 -1
- package/bundle/{chunk-ds69qc8b.js → chunk-71xz70r9.js} +1 -1
- package/bundle/{chunk-2dzk5txw.js → chunk-73e409hd.js} +1 -1
- package/bundle/chunk-764fksh3.js +2 -0
- package/bundle/{chunk-g7rjtehn.js → chunk-78ymd20x.js} +1 -1
- package/bundle/{chunk-szr0f7k2.js → chunk-7avcnwv8.js} +1 -1
- package/bundle/{chunk-z8v2tsz2.js → chunk-7hm0c2yg.js} +1 -1
- package/bundle/chunk-7mke41x0.js +2 -0
- package/bundle/chunk-7ry9cvby.js +2 -0
- package/bundle/chunk-7tr9ejyk.js +7 -0
- package/bundle/chunk-7wczs9mx.js +2 -0
- package/bundle/{chunk-aztre27e.js → chunk-7xm75w1e.js} +1 -1
- package/bundle/{chunk-s3yna2wm.js → chunk-7z5jh4ra.js} +1 -1
- package/bundle/chunk-7z777y9k.js +2 -0
- package/bundle/{chunk-vj62pc0h.js → chunk-81qwdg5s.js} +1 -1
- package/bundle/chunk-85wcc1tp.js +3 -0
- package/bundle/chunk-89w3yhf8.js +2 -0
- package/bundle/chunk-8dwq41q1.js +28 -0
- package/bundle/{chunk-6hv59ere.js → chunk-8hytwgwf.js} +1 -1
- package/bundle/{chunk-wz0zcddf.js → chunk-8n20thvd.js} +2 -2
- package/bundle/{chunk-s07j8hfy.js → chunk-8qswepp2.js} +1 -1
- package/bundle/{chunk-bpbptx89.js → chunk-8r6ht39z.js} +1 -1
- package/bundle/chunk-8v96pmqn.js +2 -0
- package/bundle/chunk-8y2scz6z.js +2 -0
- package/bundle/chunk-8zx7vnx6.js +2 -0
- package/bundle/{chunk-qhc90p4a.js → chunk-93p131d5.js} +1 -1
- package/bundle/chunk-94a76f8w.js +2 -0
- package/bundle/{chunk-ppfjf7qx.js → chunk-9emq67vc.js} +1 -1
- package/bundle/{chunk-bvkq0a5q.js → chunk-9f1z9xce.js} +1 -1
- package/bundle/{chunk-dcvatax2.js → chunk-9gazyynx.js} +2 -2
- package/bundle/chunk-9ng7jjp7.js +2 -0
- package/bundle/chunk-9tpgnjy8.js +2 -0
- package/bundle/{chunk-mk6cddvd.js → chunk-a1wdeapb.js} +1 -1
- package/bundle/{chunk-qjn86fc0.js → chunk-a7amey9s.js} +1 -1
- package/bundle/chunk-a7ym9f0v.js +2 -0
- package/bundle/chunk-a8f2xvy3.js +2 -0
- package/bundle/chunk-a99cvwta.js +2 -0
- package/bundle/{chunk-42f7p0hq.js → chunk-ad72gb5f.js} +2 -2
- package/bundle/{chunk-89v6dgpp.js → chunk-ag8kz1e7.js} +2 -2
- package/bundle/{chunk-zv6pjtz1.js → chunk-avf8v3hb.js} +1 -1
- package/bundle/chunk-avys5mnz.js +2 -0
- package/bundle/chunk-axvjd10y.js +2 -0
- package/bundle/{chunk-m612agnk.js → chunk-ay8emwym.js} +1 -1
- package/bundle/chunk-b4pphqab.js +2 -0
- package/bundle/chunk-b6087ak4.js +2 -0
- package/bundle/{chunk-msegx0t7.js → chunk-b8gjz6bk.js} +1 -1
- package/bundle/{chunk-gf0pdgjs.js → chunk-bh53dz71.js} +1 -1
- package/bundle/chunk-bn0h9dny.js +10 -0
- package/bundle/chunk-brkqxbjy.js +2 -0
- package/bundle/{chunk-09kba1hg.js → chunk-c11d28qn.js} +2 -2
- package/bundle/chunk-c26qxt5g.js +2 -0
- package/bundle/chunk-c6zscb38.js +2 -0
- package/bundle/{chunk-ddnpx1yx.js → chunk-caj1b9y7.js} +5 -5
- package/bundle/{chunk-pekm54ce.js → chunk-cfgvm15x.js} +1 -1
- package/bundle/{chunk-v4xcysh0.js → chunk-chpr8ekb.js} +1 -1
- package/bundle/chunk-cjww2jmv.js +3 -0
- package/bundle/{chunk-m67tcnk4.js → chunk-ck2gfaba.js} +1 -1
- package/bundle/{chunk-9j1qqdr2.js → chunk-cphrgyp6.js} +1 -1
- package/bundle/{chunk-eb9mytjq.js → chunk-ctaze2hn.js} +1 -1
- package/bundle/{chunk-5qam3c8r.js → chunk-cxnfy6qk.js} +1 -1
- package/bundle/{chunk-cafzcmrg.js → chunk-d07p6fpk.js} +2 -2
- package/bundle/chunk-d0damw6y.js +2 -0
- package/bundle/{chunk-b8bytvka.js → chunk-d3ermm6d.js} +2 -2
- package/bundle/{chunk-4qqkqrn9.js → chunk-d6ry9418.js} +2 -2
- package/bundle/{chunk-sn4nez18.js → chunk-d9hbhkbq.js} +2 -2
- package/bundle/{chunk-ztc3gm8y.js → chunk-dactgryw.js} +1 -1
- package/bundle/chunk-dafmkrhn.js +2 -0
- package/bundle/{chunk-dfnv7vkn.js → chunk-db405hjg.js} +1 -1
- package/bundle/chunk-dgprdym0.js +2 -0
- package/bundle/{chunk-7yrhe3xq.js → chunk-dnwefyhv.js} +1 -1
- package/bundle/chunk-dryzt12j.js +2 -0
- package/bundle/chunk-dsamees2.js +2 -0
- package/bundle/{chunk-xpc2zgj7.js → chunk-dxpj0cxh.js} +2 -2
- package/bundle/{chunk-yjtdgcq5.js → chunk-dynv30gm.js} +1 -1
- package/bundle/chunk-dyqpxx3b.js +2 -0
- package/bundle/{chunk-2rs39vj2.js → chunk-e01wnqvc.js} +1 -1
- package/bundle/{chunk-2vepzgek.js → chunk-e10py6yr.js} +1 -1
- package/bundle/chunk-e5mv5wnt.js +2 -0
- package/bundle/{chunk-qv2s39dv.js → chunk-e7ny0b3x.js} +1 -1
- package/bundle/{chunk-n8h6x2en.js → chunk-ejrhvy38.js} +1 -1
- package/bundle/{chunk-dq9kpj4a.js → chunk-enpzvmtc.js} +1 -1
- package/bundle/chunk-ew9pdrp9.js +3 -0
- package/bundle/{chunk-gj3hzx3d.js → chunk-ezfy0b6q.js} +2 -2
- package/bundle/{chunk-2km50rd3.js → chunk-fgg9txzb.js} +1 -1
- package/bundle/{chunk-b9za12y1.js → chunk-fn9h4ync.js} +1 -1
- package/bundle/{chunk-ngchsw2g.js → chunk-fvzwbjh8.js} +1 -1
- package/bundle/{chunk-nzehfpxp.js → chunk-g10d6x57.js} +1 -1
- package/bundle/{chunk-zyhdxggp.js → chunk-g5rabwre.js} +2 -2
- package/bundle/{chunk-kfsb2stm.js → chunk-g7ccdh7r.js} +1 -1
- package/bundle/{chunk-phxrg7aw.js → chunk-gagtmjmp.js} +2 -2
- package/bundle/{chunk-yp0a8q29.js → chunk-gb00fh4z.js} +3 -3
- package/bundle/{chunk-hw1dmx28.js → chunk-gbpvs0fx.js} +1 -1
- package/bundle/{chunk-j8efst22.js → chunk-gj0wt0cy.js} +1 -1
- package/bundle/{chunk-2q96x1t5.js → chunk-gsar6xda.js} +1 -1
- package/bundle/{chunk-xs3xtz6x.js → chunk-gt31468k.js} +1 -1
- package/bundle/{chunk-ecn8gbtz.js → chunk-gwp17r03.js} +1 -1
- package/bundle/chunk-gwzw92jt.js +2 -0
- package/bundle/chunk-gz8sz7z1.js +9 -0
- package/bundle/{chunk-2bn4b42t.js → chunk-h2afsbm1.js} +1 -1
- package/bundle/{chunk-tj78jsp9.js → chunk-h4j5xzc8.js} +1 -1
- package/bundle/chunk-h6f3kbz2.js +2 -0
- package/bundle/{chunk-b3dqcbsc.js → chunk-hbbsbyyq.js} +1 -1
- package/bundle/{chunk-2gerf08b.js → chunk-hnvn2c25.js} +2 -2
- package/bundle/{chunk-vn7nkrqb.js → chunk-hnzegjgv.js} +1 -1
- package/bundle/chunk-hp7tssgv.js +2 -0
- package/bundle/chunk-ht0hbdmx.js +2 -0
- package/bundle/{chunk-j9pcnkkq.js → chunk-ht5w06x7.js} +2 -2
- package/bundle/{chunk-a1p2f16h.js → chunk-htz93dsd.js} +2 -2
- package/bundle/{chunk-q6ztpfcs.js → chunk-jbx3s7nw.js} +2 -2
- package/bundle/{chunk-hxz2rdjq.js → chunk-jdynx7m6.js} +1 -1
- package/bundle/{chunk-h9pvnp5c.js → chunk-jef04wyf.js} +1 -1
- package/bundle/{chunk-ct48575c.js → chunk-jh0bw59r.js} +1 -1
- package/bundle/{chunk-knpt9n8f.js → chunk-jrqb0jwy.js} +1 -1
- package/bundle/{chunk-1dwcga8g.js → chunk-js1n8tgv.js} +1 -1
- package/bundle/chunk-k1txw65h.js +2 -0
- package/bundle/chunk-k5atbdbm.js +2 -0
- package/bundle/chunk-k75jqg60.js +3 -0
- package/bundle/{chunk-yn6sbycg.js → chunk-k7aenxan.js} +2 -2
- package/bundle/{chunk-1rp1cvmc.js → chunk-kf167jw7.js} +1 -1
- package/bundle/{chunk-wsy0m70r.js → chunk-kfxv5rfg.js} +1 -1
- package/bundle/{chunk-btz9jvec.js → chunk-kj20f048.js} +1 -1
- package/bundle/{chunk-j5kb0y1m.js → chunk-kq6b222y.js} +1 -1
- package/bundle/{chunk-1t9jne14.js → chunk-ktzq4ha1.js} +1 -1
- package/bundle/{chunk-5v4py9p2.js → chunk-m2q317gh.js} +1 -1
- package/bundle/chunk-mahgmbt9.js +2 -0
- package/bundle/{chunk-1qshjfzm.js → chunk-mk1bfzg5.js} +1 -1
- package/bundle/{chunk-2y90ad1v.js → chunk-mqd1jsg2.js} +1 -1
- package/bundle/{chunk-t12xrrfr.js → chunk-mzs2pjyc.js} +2 -2
- package/bundle/{chunk-m02zt1a3.js → chunk-n9xns8by.js} +2 -2
- package/bundle/chunk-ngm6pqyt.js +2 -0
- package/bundle/chunk-ngtavamt.js +2 -0
- package/bundle/chunk-nkhc32s3.js +2 -0
- package/bundle/{chunk-wpajh5s5.js → chunk-nkkch4h7.js} +1 -1
- package/bundle/chunk-npse2xrd.js +2 -0
- package/bundle/{chunk-k7gq9bra.js → chunk-nv3eyyaj.js} +1 -1
- package/bundle/{chunk-ab6cabxh.js → chunk-p18axz0m.js} +1 -1
- package/bundle/{chunk-jje0srjq.js → chunk-p62gb4wj.js} +1 -1
- package/bundle/chunk-p6e4vqy7.js +2 -0
- package/bundle/{chunk-m1h5a4vg.js → chunk-p9qfbr02.js} +1 -1
- package/bundle/{chunk-ggqst87g.js → chunk-pe29yy6s.js} +1 -1
- package/bundle/{chunk-yy526n9c.js → chunk-pje60pj2.js} +1 -1
- package/bundle/{chunk-3n1324bt.js → chunk-pp2eqkse.js} +1 -1
- package/bundle/{chunk-x067eetw.js → chunk-pp6vhqrr.js} +1 -1
- package/bundle/chunk-pqkjhn8h.js +2 -0
- package/bundle/{chunk-ezja6njs.js → chunk-pv67gwce.js} +1 -1
- package/bundle/{chunk-b3rpzkcb.js → chunk-q7vasbxn.js} +1 -1
- package/bundle/chunk-qadw6j20.js +2 -0
- package/bundle/{chunk-89q1y7tc.js → chunk-qc8rsn4v.js} +1 -1
- package/bundle/chunk-qd8w2gkd.js +2 -0
- package/bundle/chunk-qggcszs2.js +2 -0
- package/bundle/{chunk-q1v2pytx.js → chunk-qrsveve6.js} +1 -1
- package/bundle/chunk-r7sqdfad.js +2 -0
- package/bundle/chunk-r8m7rtfc.js +2 -0
- package/bundle/{chunk-7ppd2phw.js → chunk-rbk8seme.js} +1 -1
- package/bundle/chunk-rf12t4n5.js +2 -0
- package/bundle/{chunk-04tw0r4s.js → chunk-rg0mrprz.js} +1 -1
- package/bundle/{chunk-cdhmc0t0.js → chunk-rjd8gbs5.js} +1 -1
- package/bundle/chunk-rkyf0cp8.js +2 -0
- package/bundle/chunk-rpgne7xh.js +2 -0
- package/bundle/chunk-rvgj1vky.js +2 -0
- package/bundle/{chunk-c01z3cvg.js → chunk-rvkrgkeq.js} +1 -1
- package/bundle/chunk-rza530gm.js +5 -0
- package/bundle/{chunk-2ahqhh4z.js → chunk-rzhdkkpz.js} +1 -1
- package/bundle/chunk-s3mnrhbx.js +5 -0
- package/bundle/chunk-s6ktx2sx.js +2 -0
- package/bundle/{chunk-kqn9h2gk.js → chunk-skqbaadf.js} +1 -1
- package/bundle/chunk-ss2jvqrg.js +2 -0
- package/bundle/{chunk-ydp0q1hk.js → chunk-ss2ms1r3.js} +1 -1
- package/bundle/{chunk-1fbeendk.js → chunk-t56r99hp.js} +1 -1
- package/bundle/{chunk-xc5044tm.js → chunk-t8m74g39.js} +1 -1
- package/bundle/{chunk-s6bar2f9.js → chunk-t9mz17gb.js} +2 -2
- package/bundle/{chunk-cvdxgsq1.js → chunk-tq0239xp.js} +1 -1
- package/bundle/{chunk-whxjkz9a.js → chunk-tqj69nh6.js} +2 -2
- package/bundle/{chunk-hj5y7fvk.js → chunk-tt30dybd.js} +1 -1
- package/bundle/{chunk-5a5t01ka.js → chunk-tvdmnee6.js} +1 -1
- package/bundle/chunk-tvwwq4b3.js +2 -0
- package/bundle/{chunk-dhjp0zx2.js → chunk-v1xjc3s8.js} +1 -1
- package/bundle/chunk-v2n26eg4.js +2 -0
- package/bundle/chunk-vcw00k0n.js +3 -0
- package/bundle/{chunk-7jbz3dgt.js → chunk-vhe0tth1.js} +1 -1
- package/bundle/{chunk-yfkvjphe.js → chunk-vvxmwyrw.js} +1 -1
- package/bundle/{chunk-p68rwmhc.js → chunk-vxyy2dp3.js} +2 -2
- package/bundle/{chunk-y2v09y71.js → chunk-vywnd5sf.js} +1 -1
- package/bundle/{chunk-0jgsp4c2.js → chunk-w18xs2h5.js} +1 -1
- package/bundle/{chunk-fjgyrsbw.js → chunk-w7vh8cxt.js} +1 -1
- package/bundle/chunk-w8saweey.js +2 -0
- package/bundle/chunk-we9cv8we.js +8 -0
- package/bundle/chunk-wezarrvy.js +2 -0
- package/bundle/{chunk-d6r4xwtg.js → chunk-wfb608qf.js} +3 -3
- package/bundle/{chunk-3g1yz39h.js → chunk-whe7h2mj.js} +1 -1
- package/bundle/chunk-wmqsdt2c.js +3 -0
- package/bundle/chunk-wqj0xasg.js +2 -0
- package/bundle/chunk-wr42tphe.js +2 -0
- package/bundle/chunk-x24y7qyd.js +2 -0
- package/bundle/{chunk-07g7cybt.js → chunk-x25zkrz7.js} +1 -1
- package/bundle/{chunk-tr8sf0dk.js → chunk-x3y2xzhn.js} +1 -1
- package/bundle/{chunk-27yxgy03.js → chunk-x4sp99g6.js} +1 -1
- package/bundle/{chunk-3nwve06r.js → chunk-x562b0xk.js} +1 -1
- package/bundle/{chunk-61c62e5s.js → chunk-x7k5yeey.js} +1 -1
- package/bundle/{chunk-fkgv2hqd.js → chunk-x9rbv6p6.js} +1 -1
- package/bundle/{chunk-wnqwb6fd.js → chunk-xcmgkc57.js} +1 -1
- package/bundle/chunk-xj765svc.js +3 -0
- package/bundle/{chunk-gm85xefs.js → chunk-xm7wascx.js} +1 -1
- package/bundle/{chunk-whcg14sc.js → chunk-xrs18kzn.js} +1 -1
- package/bundle/{chunk-6nbzdb0r.js → chunk-xthkjax9.js} +1 -1
- package/bundle/{chunk-scnz207s.js → chunk-xvwvd4kq.js} +2 -2
- package/bundle/{chunk-zb0me4kk.js → chunk-xzrb857v.js} +1 -1
- package/bundle/chunk-y2d0w09y.js +2 -0
- package/bundle/{chunk-3nyqh1d6.js → chunk-y3b4k38p.js} +1 -1
- package/bundle/{chunk-svvgv1s0.js → chunk-y6123zvq.js} +1 -1
- package/bundle/chunk-y7sy3w6z.js +2 -0
- package/bundle/{chunk-vg2fmyje.js → chunk-y9q0hb7b.js} +2 -2
- package/bundle/chunk-yb79f79m.js +2 -0
- package/bundle/{chunk-fnbpap62.js → chunk-yek0sk2q.js} +1 -1
- package/bundle/{chunk-wfs4pcwa.js → chunk-ygs5pzk7.js} +4 -4
- package/bundle/{chunk-3bmzjznz.js → chunk-yhbcbjfk.js} +1 -1
- package/bundle/{chunk-sermjas1.js → chunk-yjf3kyej.js} +1 -1
- package/bundle/chunk-yjnyzpmt.js +2 -0
- package/bundle/{chunk-0a0vat1h.js → chunk-yp5bypsp.js} +2 -2
- package/bundle/{chunk-h0rpmne5.js → chunk-yp8wyzzm.js} +1 -1
- package/bundle/chunk-yqbcnsa1.js +2 -0
- package/bundle/{chunk-4xh1qm90.js → chunk-yv0xrnn9.js} +1 -1
- package/bundle/chunk-z3mra3nm.js +2 -0
- package/bundle/chunk-za7mwbye.js +2 -0
- package/bundle/chunk-zaks8cae.js +11 -0
- package/bundle/{chunk-0fmbz83g.js → chunk-zcsgqk9f.js} +1 -1
- package/bundle/chunk-zqqx96jx.js +3 -0
- package/bundle/{chunk-snm5q21k.js → chunk-zs8kqdsf.js} +2 -2
- package/bundle/{chunk-y062spw2.js → chunk-zscer8rc.js} +1 -1
- package/bundle/{chunk-qjjch1zt.js → chunk-zw815d68.js} +2 -2
- package/bundle/chunk-zy9w1vkc.js +2 -0
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-07ws99b1.js +0 -2
- package/bundle/chunk-09c4ngag.js +0 -2
- package/bundle/chunk-0ch32p4c.js +0 -3
- package/bundle/chunk-0jgst767.js +0 -2
- package/bundle/chunk-0psrr9vp.js +0 -2
- package/bundle/chunk-1j73cnvz.js +0 -2
- package/bundle/chunk-1yddn03z.js +0 -2
- package/bundle/chunk-27dgtm8r.js +0 -2
- package/bundle/chunk-2ec6ps8r.js +0 -5
- package/bundle/chunk-38g8yzw0.js +0 -2
- package/bundle/chunk-3bkd0ar3.js +0 -2
- package/bundle/chunk-3f4zht9e.js +0 -2
- package/bundle/chunk-3pxnp6jb.js +0 -2
- package/bundle/chunk-3szwfy7w.js +0 -3
- package/bundle/chunk-426dt7be.js +0 -2
- package/bundle/chunk-4amgp4yd.js +0 -3
- package/bundle/chunk-4p5e5tsz.js +0 -28
- package/bundle/chunk-4pjm21a5.js +0 -2
- package/bundle/chunk-4sz3jbc5.js +0 -2
- package/bundle/chunk-58x5seqn.js +0 -2
- package/bundle/chunk-5xe6x2rt.js +0 -2
- package/bundle/chunk-618tmyx9.js +0 -2
- package/bundle/chunk-6d9wsjxm.js +0 -2
- package/bundle/chunk-730a2d1k.js +0 -2
- package/bundle/chunk-76wrw0cs.js +0 -2
- package/bundle/chunk-7bd0x9vf.js +0 -2
- package/bundle/chunk-7czkntef.js +0 -2
- package/bundle/chunk-7ex57nyh.js +0 -2
- package/bundle/chunk-7gpczxbh.js +0 -2
- package/bundle/chunk-7j0bgeh2.js +0 -2
- package/bundle/chunk-7py443fe.js +0 -2
- package/bundle/chunk-90q5sae0.js +0 -2
- package/bundle/chunk-9amwe0ed.js +0 -2
- package/bundle/chunk-9grvepmd.js +0 -2
- package/bundle/chunk-9hrh15p2.js +0 -2
- package/bundle/chunk-a0v55ywn.js +0 -8
- package/bundle/chunk-a2qz9m10.js +0 -2
- package/bundle/chunk-av6ezvxm.js +0 -2
- package/bundle/chunk-beksar7w.js +0 -2
- package/bundle/chunk-bg66rqrx.js +0 -2
- package/bundle/chunk-bn15mzd7.js +0 -2
- package/bundle/chunk-bt6yw07v.js +0 -2
- package/bundle/chunk-cy9s1ma5.js +0 -2
- package/bundle/chunk-d0nkvp57.js +0 -2
- package/bundle/chunk-dvk2wwjj.js +0 -2
- package/bundle/chunk-dxe29jj6.js +0 -2
- package/bundle/chunk-e0jy9qxd.js +0 -2
- package/bundle/chunk-eercqt72.js +0 -2
- package/bundle/chunk-efxd6b2k.js +0 -2
- package/bundle/chunk-eneawsj8.js +0 -2
- package/bundle/chunk-f72pppr7.js +0 -2
- package/bundle/chunk-feyphhxd.js +0 -2
- package/bundle/chunk-fnnch1e9.js +0 -2
- package/bundle/chunk-ft93f33g.js +0 -3
- package/bundle/chunk-gk34kh8p.js +0 -2
- package/bundle/chunk-gn50xqbd.js +0 -2
- package/bundle/chunk-h6rv626m.js +0 -2
- package/bundle/chunk-h7s2w1e2.js +0 -2
- package/bundle/chunk-hmv2cdnz.js +0 -2
- package/bundle/chunk-ht81ensf.js +0 -2
- package/bundle/chunk-hxpgs78j.js +0 -5
- package/bundle/chunk-j59ktwny.js +0 -2
- package/bundle/chunk-jmz2mq3t.js +0 -2
- package/bundle/chunk-jvqbvgjy.js +0 -11
- package/bundle/chunk-k309zez0.js +0 -3
- package/bundle/chunk-k3fn3yed.js +0 -2
- package/bundle/chunk-kpw6nghv.js +0 -2
- package/bundle/chunk-m5ghbt5y.js +0 -2
- package/bundle/chunk-mj4bepvj.js +0 -2
- package/bundle/chunk-mn41f9qv.js +0 -2
- package/bundle/chunk-mqjf9sbm.js +0 -2
- package/bundle/chunk-n5gwrrbb.js +0 -2
- package/bundle/chunk-nfjhem1c.js +0 -2
- package/bundle/chunk-ngytjdg2.js +0 -3
- package/bundle/chunk-nj4d554m.js +0 -11
- package/bundle/chunk-nrc3bj9p.js +0 -2
- package/bundle/chunk-nt4e3em9.js +0 -3
- package/bundle/chunk-nxyyn2ra.js +0 -2
- package/bundle/chunk-p5tceb4k.js +0 -2
- package/bundle/chunk-pvpy9kq1.js +0 -800
- package/bundle/chunk-qjgm3e2p.js +0 -2
- package/bundle/chunk-qt80mhdn.js +0 -2
- package/bundle/chunk-qtw5nrr4.js +0 -2
- package/bundle/chunk-rc9ex3vt.js +0 -2
- package/bundle/chunk-s9672vvv.js +0 -2
- package/bundle/chunk-sbyey0qb.js +0 -2
- package/bundle/chunk-shpq6es1.js +0 -3
- package/bundle/chunk-sj5v361q.js +0 -2
- package/bundle/chunk-ta3k9syc.js +0 -2
- package/bundle/chunk-tk5afan4.js +0 -2
- package/bundle/chunk-tpndnprb.js +0 -2
- package/bundle/chunk-v965rsr8.js +0 -3
- package/bundle/chunk-vcmrrt8b.js +0 -3
- package/bundle/chunk-vcrn3v70.js +0 -2
- package/bundle/chunk-vwxfgea7.js +0 -2
- package/bundle/chunk-w0kgcz1t.js +0 -2
- package/bundle/chunk-wgpsmxqx.js +0 -7
- package/bundle/chunk-wksczmes.js +0 -2
- package/bundle/chunk-wsxta33r.js +0 -2
- package/bundle/chunk-xck0sq3k.js +0 -2
- package/bundle/chunk-xjyhtm8r.js +0 -2
- package/bundle/chunk-xm08fc2q.js +0 -3
- package/bundle/chunk-ygc5qegv.js +0 -2
- package/bundle/chunk-yjqmzm51.js +0 -2
- package/bundle/chunk-yzc53n88.js +0 -2
- package/bundle/chunk-yzjc15vp.js +0 -9
- package/bundle/chunk-z7y9pdj7.js +0 -2
- package/bundle/chunk-z8g819cz.js +0 -2
- package/bundle/chunk-z8r65yw3.js +0 -2
- package/bundle/chunk-zt1nbwmm.js +0 -2
- package/bundle/chunk-zz36xg2n.js +0 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{No as qO,Oo as EO,Qo as HO}from"./chunk-ay8emwym.js";import{Ur as u}from"./chunk-764fksh3.js";import{Ns as X$,Qs as J$,Rs as R,_s as FO}from"./chunk-xj765svc.js";import{tt as Y1}from"./chunk-ag8kz1e7.js";import{pH as c}from"./chunk-zs8kqdsf.js";import{BO as J1,DO as D1,FO as RO}from"./chunk-7xm75w1e.js";function x$({onRequest:O,onSseError:$,onSseEvent:Z,responseTransformer:J,responseValidator:Y,sseDefaultRetryDelay:D,sseMaxRetryAttempts:W,sseMaxRetryDelay:G,sseSleepFn:V,url:K,...z}){let L,M=V??((U)=>new Promise((j)=>setTimeout(j,U)));return{stream:async function*(){let U=D??3000,j=0,B=z.signal??new AbortController().signal;while(!0){if(B.aborted)break;j++;let l=z.headers instanceof Headers?z.headers:new Headers(z.headers);if(L!==void 0)l.set("Last-Event-ID",L);try{let E={redirect:"follow",...z,body:z.serializedBody,headers:l,signal:B},A=new Request(K,E);if(O)A=await O(K,E);let Q=await(z.fetch??globalThis.fetch)(A);if(!Q.ok)throw Error(`SSE failed: ${Q.status} ${Q.statusText}`);if(!Q.body)throw Error("No body in SSE response");let w=Q.body.pipeThrough(new TextDecoderStream).getReader(),T="",T$=()=>{try{w.cancel()}catch{}};B.addEventListener("abort",T$);try{while(!0){let{done:CO,value:vO}=await w.read();if(CO)break;T+=vO,T=T.replace(/\r\n?/g,`
|
|
3
|
+
`);let _$=T.split(`
|
|
4
|
+
|
|
5
|
+
`);T=_$.pop()??"";for(let yO of _$){let cO=yO.split(`
|
|
6
|
+
`),n=[],N$;for(let F of cO)if(F.startsWith("data:"))n.push(F.replace(/^data:\s*/,""));else if(F.startsWith("event:"))N$=F.replace(/^event:\s*/,"");else if(F.startsWith("id:"))L=F.replace(/^id:\s*/,"");else if(F.startsWith("retry:")){let R$=Number.parseInt(F.replace(/^retry:\s*/,""),10);if(!Number.isNaN(R$))U=R$}let h,B$=!1;if(n.length){let F=n.join(`
|
|
7
|
+
`);try{h=JSON.parse(F),B$=!0}catch{h=F}}if(B$){if(Y)await Y(h);if(J)h=await J(h)}if(Z?.({data:h,event:N$,id:L,retry:U}),n.length)yield h}}}finally{B.removeEventListener("abort",T$),w.releaseLock()}break}catch(E){if($?.(E),W!==void 0&&j>=W)break;let A=Math.min(U*2**(j-1),G??30000);await M(A)}}}()}}var uO=(O)=>{switch(O){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},dO=(O)=>{switch(O){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},mO=(O)=>{switch(O){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},p=({allowReserved:O,explode:$,name:Z,style:J,value:Y})=>{if(!$){let G=(O?Y:Y.map((V)=>encodeURIComponent(V))).join(dO(J));switch(J){case"label":return`.${G}`;case"matrix":return`;${Z}=${G}`;case"simple":return G;default:return`${Z}=${G}`}}let D=uO(J),W=Y.map((G)=>{if(J==="label"||J==="simple")return O?G:encodeURIComponent(G);return f({allowReserved:O,name:Z,value:G})}).join(D);return J==="label"||J==="matrix"?D+W:W},f=({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)}`},i=({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(([z,L])=>{V=[...V,z,O?L:encodeURIComponent(L)]});let K=V.join(",");switch(J){case"form":return`${Z}=${K}`;case"label":return`.${K}`;case"matrix":return`;${Z}=${K}`;default:return K}}let W=mO(J),G=Object.entries(Y).map(([V,K])=>f({allowReserved:O,name:J==="deepObject"?`${Z}[${V}]`:V,value:K})).join(W);return J==="label"||J==="matrix"?W+G:G};var lO=/\{[^{}]+\}/g,nO=({path:O,url:$})=>{let Z=$,J=$.match(lO);if(J)for(let Y of J){let D=!1,W=Y.substring(1,Y.length-1),G="simple";if(W.endsWith("*"))D=!0,W=W.substring(0,W.length-1);if(W.startsWith("."))W=W.substring(1),G="label";else if(W.startsWith(";"))W=W.substring(1),G="matrix";let V=O[W];if(V===void 0||V===null)continue;if(Array.isArray(V)){Z=Z.replace(Y,p({explode:D,name:W,style:G,value:V}));continue}if(typeof V==="object"){Z=Z.replace(Y,i({explode:D,name:W,style:G,value:V,valueOnly:!0}));continue}if(G==="matrix"){Z=Z.replace(Y,`;${f({name:W,value:V})}`);continue}let K=encodeURIComponent(G==="label"?`.${V}`:V);Z=Z.replace(Y,K)}return Z},w$=({baseUrl:O,path:$,query:Z,querySerializer:J,url:Y})=>{let D=Y.startsWith("/")?Y:`/${Y}`,W=(O??"")+D;if($)W=nO({path:$,url:W});let G=Z?J(Z):"";if(G.startsWith("?"))G=G.substring(1);if(G)W+=`?${G}`;return W};function e(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 F$=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 $$={bodySerializer:(O)=>JSON.stringify(O,($,Z)=>typeof Z==="bigint"?Z.toString():Z)};var q$=({parameters:O={},...$}={})=>{return(J)=>{let Y=[];if(J&&typeof J==="object")for(let D in J){let W=J[D];if(W===void 0||W===null)continue;let G=O[D]||$;if(Array.isArray(W)){let V=p({allowReserved:G.allowReserved,explode:!0,name:D,style:"form",value:W,...G.array});if(V)Y.push(V)}else if(typeof W==="object"){let V=i({allowReserved:G.allowReserved,explode:!0,name:D,style:"deepObject",value:W,...G.object});if(V)Y.push(V)}else{let V=f({allowReserved:G.allowReserved,name:D,value:W});if(V)Y.push(V)}}return Y.join("&")}},E$=(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},pO=(O,$)=>{if(!$)return!1;if(O.headers.has($)||O.query?.[$]||O.headers.get("Cookie")?.includes(`${$}=`))return!0;return!1};async function H$(O){for(let $ of O.security??[]){if(pO(O,$.name))continue;let Z=await F$($,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 O$=(O)=>w$({baseUrl:O.baseUrl,path:O.path,query:O.query,querySerializer:typeof O.querySerializer==="function"?O.querySerializer:q$(O.querySerializer),url:O.url}),Z$=(O,$)=>{let Z={...O,...$};if(Z.baseUrl?.endsWith("/"))Z.baseUrl=Z.baseUrl.substring(0,Z.baseUrl.length-1);return Z.headers=s(O.headers,$.headers),Z},iO=(O)=>{let $=[];return O.forEach((Z,J)=>{$.push([J,Z])}),$},s=(...O)=>{let $=new Headers;for(let Z of O){if(!Z)continue;let J=Z instanceof Headers?iO(Z):Object.entries(Z);for(let[Y,D]of J)if(D===null)$.delete(Y);else if(Array.isArray(D))for(let W of D)$.append(Y,W);else if(D!==void 0)$.set(Y,typeof D==="object"?JSON.stringify(D):D)}return $};class r{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 A$=()=>({error:new r,request:new r,response:new r}),rO=q$({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),sO={"Content-Type":"application/json"},b=(O={})=>({...$$,headers:sO,parseAs:"auto",querySerializer:rO,...O});var C=(O={})=>{let $=Z$(b(),O),Z=()=>({...$}),J=(z)=>{return $=Z$($,z),Z()},Y=A$(),D=async(z)=>{let L={...$,...z,fetch:z.fetch??$.fetch??globalThis.fetch,headers:s($.headers,z.headers),serializedBody:void 0};if(L.security)await H$(L);if(L.requestValidator)await L.requestValidator(L);if(L.body!==void 0&&L.bodySerializer)L.serializedBody=L.bodySerializer(L.body);if(L.body===void 0||L.serializedBody==="")L.headers.delete("Content-Type");let M=L,_=O$(M);return{opts:M,url:_}},W=async(z)=>{let L=z.throwOnError??$.throwOnError,M=z.responseStyle??$.responseStyle,_,S;try{let{opts:U,url:j}=await D(z),B={redirect:"follow",...U,body:e(U)};_=new Request(j,B);for(let Q of Y.request.fns)if(Q)_=await Q(_,U);let l=U.fetch;S=await l(_);for(let Q of Y.response.fns)if(Q)S=await Q(S,_,U);let E={request:_,response:S};if(S.ok){let Q=(U.parseAs==="auto"?E$(S.headers.get("Content-Type")):U.parseAs)??"json";if(S.status===204||S.headers.get("Content-Length")==="0"){let T;switch(Q){case"arrayBuffer":case"blob":case"text":T=await S[Q]();break;case"formData":T=new FormData;break;case"stream":T=S.body;break;case"json":default:T={};break}return U.responseStyle==="data"?T:{data:T,...E}}let w;switch(Q){case"arrayBuffer":case"blob":case"formData":case"text":w=await S[Q]();break;case"json":{let T=await S.text();w=T?JSON.parse(T):{};break}case"stream":return U.responseStyle==="data"?S.body:{data:S.body,...E}}if(Q==="json"){if(U.responseValidator)await U.responseValidator(w);if(U.responseTransformer)w=await U.responseTransformer(w)}return U.responseStyle==="data"?w:{data:w,...E}}let A=await S.text(),o;try{o=JSON.parse(A)}catch{}throw o??A}catch(U){let j=U;for(let B of Y.error.fns)if(B)j=await B(j,S,_,z);if(j=j||{},L)throw j;return M==="data"?void 0:{error:j,request:_,response:S}}},G=(z)=>(L)=>W({...L,method:z}),V=(z)=>async(L)=>{let{opts:M,url:_}=await D(L);return x$({...M,body:M.body,method:z,onRequest:async(S,U)=>{let j=new Request(S,U);for(let B of Y.request.fns)if(B)j=await B(j,M);return j},serializedBody:e(M),url:_})};return{buildUrl:(z)=>O$({...$,...z}),connect:G("CONNECT"),delete:G("DELETE"),get:G("GET"),getConfig:Z,head:G("HEAD"),interceptors:Y,options:G("OPTIONS"),patch:G("PATCH"),post:G("POST"),put:G("PUT"),request:W,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:G("TRACE")}};var tO={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},aO=Object.entries(tO),h$=(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)h$(Z.args,$);return $},oO=(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=h$($),Y;for(let[D,W]of O.entries()){if($[D])Y=$[D];if(!Y)continue;if("in"in Y)if(Y.key){let G=J.get(Y.key),V=G.map||Y.key;if(G.in)Z[G.in][V]=W}else Z.body=W;else for(let[G,V]of Object.entries(W??{})){let K=J.get(G);if(K)if(K.in){let z=K.map||G;Z[K.in][z]=V}else Z[K.map]=V;else{let z=aO.find(([L])=>G.startsWith(L));if(z){let[L,M]=z;Z[M][G.slice(L.length)]=V}else if("allowExtra"in Y&&Y.allowExtra){for(let[L,M]of Object.entries(Y.allowExtra))if(M){Z[L][G]=V;break}}}}}return oO(Z),Z};var k$=C(b({baseUrl:"http://localhost:4096"}));class I{client;constructor(O){this.client=O?.client??k$}}class P${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 g$ extends I{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 f$ extends I{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 b$ extends I{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 g$({client:this.client})}_import;get import(){return this._import??=new f$({client:this.client})}}class C$ extends I{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 v$ extends I{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 y$ extends I{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 c$ extends I{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 y$({client:this.client})}}class u$ extends I{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 d$ extends I{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 m$ extends I{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 l$ extends I{_workspace;get workspace(){return this._workspace??=new c$({client:this.client})}_console;get console(){return this._console??=new u$({client:this.client})}_session;get session(){return this._session??=new d$({client:this.client})}_resource;get resource(){return this._resource??=new m$({client:this.client})}}class n$ extends I{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 I{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 i$ extends I{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 r$ extends I{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 s$ extends I{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 t$ extends I{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 a$ extends I{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 o$ extends I{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 e$ extends I{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 $O extends I{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 OO extends I{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 ZO extends I{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 XO extends I{_interactive;get interactive(){return this._interactive??=new ZO({client:this.client})}}class JO extends I{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 YO extends I{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 JO({client:this.client})}}class WO extends I{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 GO extends I{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 WO({client:this.client})}}class VO extends I{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 DO extends I{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 zO extends I{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 LO extends I{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 IO extends I{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 LO({client:this.client})}}class KO extends I{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 UO extends I{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 KO({client:this.client})}}class SO extends I{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 jO extends I{get(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/path",...$,...Z})}}class MO extends I{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 QO extends I{list(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/command",...$,...Z})}}class TO extends I{status(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/lsp",...$,...Z})}}class _O extends I{status(O,$){let Z=X([O],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/formatter",...$,...Z})}}class t extends I{static __registry=new P$;constructor(O){super(O);t.__registry.set(this,O?.key)}_global;get global(){return this._global??=new b$({client:this.client})}_auth;get auth(){return this._auth??=new C$({client:this.client})}_app;get app(){return this._app??=new v$({client:this.client})}_experimental;get experimental(){return this._experimental??=new l$({client:this.client})}_project;get project(){return this._project??=new n$({client:this.client})}_pty;get pty(){return this._pty??=new p$({client:this.client})}_config;get config(){return this._config??=new i$({client:this.client})}_tool;get tool(){return this._tool??=new r$({client:this.client})}_worktree;get worktree(){return this._worktree??=new s$({client:this.client})}_session;get session(){return this._session??=new t$({client:this.client})}_part;get part(){return this._part??=new a$({client:this.client})}_permission;get permission(){return this._permission??=new o$({client:this.client})}_qredits;get qredits(){return this._qredits??=new e$({client:this.client})}_workflow;get workflow(){return this._workflow??=new $O({client:this.client})}_question;get question(){return this._question??=new OO({client:this.client})}_bash;get bash(){return this._bash??=new XO({client:this.client})}_provider;get provider(){return this._provider??=new YO({client:this.client})}_sync;get sync(){return this._sync??=new GO({client:this.client})}_find;get find(){return this._find??=new VO({client:this.client})}_file;get file(){return this._file??=new DO({client:this.client})}_event;get event(){return this._event??=new zO({client:this.client})}_mcp;get mcp(){return this._mcp??=new IO({client:this.client})}_tui;get tui(){return this._tui??=new UO({client:this.client})}_instance;get instance(){return this._instance??=new SO({client:this.client})}_path;get path(){return this._path??=new jO({client:this.client})}_vcs;get vcs(){return this._vcs??=new MO({client:this.client})}_command;get command(){return this._command??=new QO({client:this.client})}_lsp;get lsp(){return this._lsp??=new TO({client:this.client})}_formatter;get formatter(){return this._formatter??=new _O({client:this.client})}}function NO(O){if(!O?.fetch)O={...O,fetch:(Z)=>{return Z.timeout=!1,fetch(Z)}};if(O?.directory)O.headers={...O.headers,"x-qitqode-directory":encodeURIComponent(O.directory)};return O}function eO(O,$,Z){if(!O)return;if(!$)return O;if(O===$)return $;if(Z&&O===Z($))return $;return O}function $1(O,$){if(O.method!=="GET"&&O.method!=="HEAD")return O;let Z=new URL(O.url),J=!1;for(let[D,W]of[["x-qitqode-directory","directory"],["x-qitqode-workspace","workspace"]]){let G=eO(O.headers.get(D),W==="directory"?$.directory:$.workspace,W==="directory"?encodeURIComponent:void 0);if(!G)continue;if(!Z.searchParams.has(W))Z.searchParams.set(W,G);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 O1(O){if(O=NO(O),O?.experimental_workspaceID)O.headers={...O.headers,"x-qitqode-workspace":O.experimental_workspaceID};let $=C(O);return $.interceptors.request.use((Z)=>$1(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 t({client:$})}var W1=J1(Y1(),1);import xO from"path";var V1="QITQODE_KEY was rejected by the server (401/403). Check that the key is correct and has not expired.",Y$=`[qitqode] ${V1}`;function BO(O){if(O?.type!=="api"||typeof O.key!=="string")return;let Z=O.metadata?.method==="api-key"?"api-key":"sso";return{key:O.key,method:Z}}async function v(){if(process.env.QITQODE_KEY)return{key:process.env.QITQODE_KEY,method:"api-key"};let O=xO.join(J$.Path.data,"auth.json");try{let{readFile:$}=await import("fs/promises"),Z=await X$.withLock("auth-file",async()=>{let J=await $(O,"utf8"),Y=JSON.parse(J);return BO(Y?.forgewise)});if(Z)return Z}catch{}if(process.env.QITQODE_AUTH_CONTENT)try{let $=JSON.parse(process.env.QITQODE_AUTH_CONTENT);return BO($?.forgewise)}catch{}return}async function a(){if(process.env.QITQODE_KEY)return;let O=xO.join(J$.Path.data,"auth.json"),{readFile:$,writeFile:Z,chmod:J,rename:Y}=await import("fs/promises");await X$.withLock("auth-file",async()=>{let D=await $(O,"utf8"),W=JSON.parse(D);if(!("forgewise"in W))return;delete W.forgewise;let G=O+".tmp";await Z(G,JSON.stringify(W,null,2),"utf8"),await J(G,384),await Y(G,O)})}function y(O){return O.method==="api-key"?{"x-api-key":O.key}:{authorization:`Bearer ${O.key}`}}var Q$={};D1(Q$,{toolDescriptionEffect:()=>T1,resolveWorkflowSummaries:()=>j1,resolveWorkflowSpec:()=>M1,resolveToolManifest:()=>fO,resolveToolDescription:()=>bO,resolveTierRatings:()=>F1,resolveSubmitBatch:()=>b1,resolveRetrieveBatch:()=>C1,resolvePrompt:()=>kO,resolveListTiers:()=>w1,resolveGetHistory:()=>H1,resolveGenerateInlineComments:()=>P1,resolveGenerateDocumentation:()=>k1,resolveForgewiseConfig:()=>x1,resolveFetchQreditsBalance:()=>A1,resolveCompressTrajectorySafe:()=>q1,resolveChatCompletion:()=>f1,resolveChatBoolean:()=>g1,resolveBraveSearch:()=>E1,resolveBashArity:()=>Q1,resolveAnalyzeCodeForIssues:()=>h1,resolveAgentPrompt:()=>U1,remoteStats:()=>x,isBackendBillingError:()=>z1,clearRemoteCache:()=>K1,beginIdempotentAttempt:()=>hO,BackendRemote:()=>Q$,BackendRateLimitError:()=>m,BackendInsufficientBalanceError:()=>d,BackendAuthRejectedError:()=>H,BackendAccountNotLinkedError:()=>U$});import{createHash as AO,randomUUID as wO}from"crypto";var N=FO.create({service:"backend.remote"}),I$=30000,K$=5000,P=new Map,x={failures:0,authRejections:0,missingPrompts:0,missingToolDescriptions:0},W$=new Set,G$=new Set;class H extends Error{name="BackendAuthRejectedError";constructor(O){super(u.copy().invalidCredentials(O))}}class d extends Error{name="BackendInsufficientBalanceError";status=402;code;constructor(O,$){super(u.copy().insufficientBalance(O));this.code=$}}class m extends Error{name="BackendRateLimitError";status=429;retryAfterMs;constructor(O,$){let Z=O!==void 0?` Retry in about ${Math.max(1,Math.round(O/1000))}s.`:"";super(u.copy().rateLimit+Z+($?` (${$})`:""));this.retryAfterMs=O}}class U$ extends Error{name="BackendAccountNotLinkedError";status=409;constructor(O){super(u.copy().accountNotLinked(O))}}function z1(O){return O instanceof d||O instanceof m}var L1=600000,k=new Map;function I1(O,$){try{return AO("sha256").update(`${O}\x00${JSON.stringify($)}`).digest("hex").slice(0,16)}catch{return"unscoped"}}function hO(O,$,Z){let J=Date.now(),Y;try{Y=AO("sha256").update(`${O}\x00${$}\x00${JSON.stringify(Z)??""}`).digest("hex")}catch{return{key:`${$}-${wO()}`,settle:()=>{}}}let D=()=>k.delete(Y),W=k.get(Y);if(W&&W.expires>J)return{key:W.key,settle:D};if(k.size>256){for(let[V,K]of k)if(K.expires<=J)k.delete(V)}let G=`${$}-${Y.slice(0,16)}-${wO()}`;return k.set(Y,{key:G,expires:J+L1}),{key:G,settle:D}}function K1(){P.clear(),z$.clear(),V$.clear(),W$.clear(),G$.clear(),k.clear()}async function g(O,$){let Z=R.QITQODE_BACKEND_URL,J=Date.now(),Y=`${Z}::${O}`,D=P.get(Y);if(D&&D.expires>J)return D.value;try{let W=await v(),G=W?y(W):void 0,K=await $(HO({baseUrl:Z,headers:G,fetch:(z,L)=>fetch(z,{...L,signal:L?.signal??AbortSignal.timeout(K$)})}));return P.set(Y,{value:K,expires:J+I$}),K}catch(W){if(W instanceof EO){if(x.authRejections++,await a().catch(()=>{}),N.warn("backend rejected the credential; prompting re-auth",{cacheKey:O,baseUrl:Z,status:W.status}),process.env.QITQODE_KEY)N.error(Y$),console.error(Y$);throw new H(`HTTP ${W.status}`)}throw x.failures++,N.warn("backend request failed; surfacing error",{cacheKey:O,baseUrl:Z,error:W instanceof Error?W.message:String(W)}),W}}async function kO(O){if(O.indexOf("/")<=0)return;return g(`prompt:${O}`,($)=>$.prompt(O).then((Z)=>Z??void 0))}async function U1(O){let $=`agent/${O}`,Z=await kO($);if(Z===void 0||Z===""){if(!W$.has(O))W$.add(O),x.missingPrompts++,N.warn("backend served no content for agent prompt; running with an empty prompt",{prompt:$,baseUrl:R.QITQODE_BACKEND_URL,missingPrompts:x.missingPrompts})}return Z}var V$=new Map;function D$(O){let $=V$.get(O);if(!$)$={unsupported:!1},V$.set(O,$);return $}async function S1(){let O=D$(R.QITQODE_BACKEND_URL);if(O.inFlight)return O.inFlight;let $=g("workflow.catalog",(Z)=>Z.workflowSpecs().then((J)=>J??void 0)).then((Z)=>{let J=new Map;for(let Y of Z??[])if(Y&&typeof Y.name==="string"&&typeof Y.script==="string")J.set(Y.name,Y);return J});O.inFlight=$;try{return await $}finally{if(O.inFlight===$)O.inFlight=void 0}}async function PO(O,$){let Z=R.QITQODE_BACKEND_URL;if(!D$(Z).unsupported)try{return O(await S1())}catch(J){if(!gO(J))throw J;D$(Z).unsupported=!0,N.warn("backend has no workflowSpecs route; falling back to per-name workflow lookups",{baseUrl:Z})}return $()}async function j1(){return PO((O)=>[...O.values()].map(({script:$,...Z})=>Z),()=>g("workflow.list",(O)=>O.workflowSummaries()))}async function M1(O){return PO(($)=>$.get(O),()=>g(`workflow.get:${O}`,($)=>$.workflowSpec(O).then((Z)=>Z??void 0)))}async function Q1(){return g("permission.arity",(O)=>O.bashArity())}var z$=new Map;function L$(O){let $=z$.get(O);if(!$)$={unsupported:!1},z$.set(O,$);return $}function gO(O){return O instanceof qO&&(O.status===404||O.status===501)}async function fO(){let O=L$(R.QITQODE_BACKEND_URL);if(O.inFlight)return O.inFlight;let $=g("tool.manifest",(Z)=>Z.toolManifest().then((J)=>J??void 0)).then((Z)=>{let J=new Map;for(let Y of Z??[])if(Y&&typeof Y.id==="string"&&typeof Y.description==="string")J.set(Y.id,Y.description);return J});O.inFlight=$;try{return await $}finally{if(O.inFlight===$)O.inFlight=void 0}}async function bO(O){let $=R.QITQODE_BACKEND_URL,Z;if(!L$($).unsupported)try{Z=(await fO()).get(O)}catch(J){if(!gO(J))throw J;L$($).unsupported=!0,N.warn("backend has no toolManifest route; falling back to one request per tool description",{baseUrl:$})}if(Z===void 0||Z==="")Z=await g(`tool.description:${O}`,(J)=>J.toolDescription(O).then((Y)=>Y??void 0));if(Z===void 0||Z===""){if(!G$.has(O))G$.add(O),x.missingToolDescriptions++,N.warn("backend served no content for tool description; running with an empty description",{tool:O,baseUrl:R.QITQODE_BACKEND_URL,missingToolDescriptions:x.missingToolDescriptions})}return Z}function T1(O){return c.promise(()=>bO(O)).pipe(c.catchDefect(($)=>$ instanceof H?c.succeed(void 0):c.die($)))}function _1(O){if(!O)return{};try{let $=JSON.parse(O);if($&&typeof $==="object")return{code:typeof $.error==="string"?$.error:void 0,detail:typeof $.message==="string"?$.message:void 0}}catch{}return{detail:O.slice(0,300)}}function N1(O){let $=O.headers?.get?.("retry-after-ms");if($){let J=Number.parseFloat($);if(!Number.isNaN(J))return J}let Z=O.headers?.get?.("retry-after");if(Z){let J=Number.parseFloat(Z);if(!Number.isNaN(J))return Math.ceil(J*1000);let Y=Date.parse(Z)-Date.now();if(!Number.isNaN(Y)&&Y>0)return Math.ceil(Y)}return}async function S$(O,$){let Z=await O.text().catch(()=>""),{code:J,detail:Y}=_1(Z);if(O.status===402)return new d(Y,J);if(O.status===409)return new U$(Y);if(O.status===429)return new m(N1(O),Y);let D=Y?`: ${Y}`:J?`: ${J}`:"";return Error(`${$} failed: ${O.status}${D}`)}function B1(O){if(O===null||typeof O!=="object")return O;if(O.data!==void 0)return O.data;let $={};for(let[Z,J]of Object.entries(O)){if(Z==="success"||Z==="data"||Z==="error"||Z==="message")continue;$[Z]=J}return Object.keys($).length>0?$:void 0}function j$(O,$){let{error:Z,message:J}=O;if(Z==="insufficient_balance")return new d(J,Z);if(Z==="rate_limited"||Z==="too_many_requests")return new m(void 0,J);return Error(`${$} returned failure: ${Z??"unknown error"}${J?` \u2014 ${J}`:""}`)}async function q(O,$,Z,J={}){let Y=R.QITQODE_BACKEND_URL,D=`${Y}::post:${O}`;if(!J.noCache){let W=Date.now(),G=P.get(D);if(G&&G.expires>W)return G.value}try{let W=await v(),G=W?y(W):{},V=J.billable?hO(I1(Y,G),$,Z):void 0,K=V?{"x-idempotency-key":V.key}:{},z=await fetch(`${Y}/${$}`,{method:"POST",headers:{"Content-Type":"application/json",...G,...K},body:JSON.stringify(Z),signal:J.signal});if(z.status===401||z.status===403){V?.settle();let U=await z.text().catch(()=>"");if(U.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${U}`);throw x.authRejections++,await a().catch(()=>{}),N.warn("backend rejected the credential; prompting re-auth",{fnName:$,baseUrl:Y,status:z.status}),new H(`HTTP ${z.status}`)}if(!z.ok){let U=await S$(z,`Backend POST /${$}`);if(z.status<500)V?.settle();throw U}let L=await z.json(),M=L!==null&&typeof L==="object"&&typeof L.error==="string";if((!J.acceptTopLevel||typeof L?.success==="boolean"||M)&&!L.success)throw V?.settle(),j$(L,`Backend POST /${$}`);V?.settle();let S=J.acceptTopLevel?B1(L):L.data;if(!J.noCache)P.set(D,{value:S,expires:Date.now()+I$});return S}catch(W){if(W instanceof H)throw W;throw x.failures++,N.warn("backend POST request failed; surfacing error",{fnName:$,baseUrl:Y,error:W instanceof Error?W.message:String(W)}),W}}async function M$(O,$,Z={}){let J=R.QITQODE_BACKEND_URL;try{let Y=await v(),D=Y?y(Y):{},W=new URLSearchParams(Object.entries($).map(([z,L])=>[z,String(L)])).toString(),G=W?`${J}/${O}?${W}`:`${J}/${O}`,V=await fetch(G,{method:"GET",headers:{...D},signal:Z.signal});if(V.status===401||V.status===403){let z=await V.text().catch(()=>"");if(z.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${z}`);throw x.authRejections++,await a().catch(()=>{}),N.warn("backend rejected the credential; prompting re-auth",{fnName:O,baseUrl:J,status:V.status}),new H(`HTTP ${V.status}`)}if(!V.ok)throw await S$(V,`Backend GET /${O}`);let K=await V.json();if(!K.success)throw j$(K,`Backend GET /${O}`);return K.data}catch(Y){if(Y instanceof H)throw Y;throw x.failures++,N.warn("backend GET request failed; surfacing error",{fnName:O,baseUrl:J,error:Y instanceof Error?Y.message:String(Y)}),Y}}async function R1(O,$,Z){let J=R.QITQODE_BACKEND_URL,Y=`${J}::public:${O}`,D=Date.now(),W=P.get(Y);if(W&&W.expires>D)return W.value;try{let G=await fetch(`${J}/${$}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Z),signal:AbortSignal.timeout(K$)});if(!G.ok)throw await S$(G,`Backend public POST /${$}`);let V=await G.json();if(!V.success)throw j$(V,`Backend public POST /${$}`);let K=V.data;return P.set(Y,{value:K,expires:D+I$}),K}catch(G){throw x.failures++,N.warn("backend public request failed; surfacing error",{fnName:$,baseUrl:J,error:G instanceof Error?G.message:String(G)}),G}}async function x1(){try{return await R1("forgewise.config","forgewiseConfig",{})}catch(O){let $=await v().catch(()=>null);if(!$)throw O;let Z=R.QITQODE_BACKEND_URL,J=await fetch(`${Z}/forgewiseConfig`,{method:"POST",headers:{"Content-Type":"application/json",...y($)},body:JSON.stringify({}),signal:AbortSignal.timeout(K$)}).catch(()=>null);if(!J?.ok)throw O;let Y=await J.json().catch(()=>null);if(!Y?.success)throw O;return Y.data}}async function w1(){return M$("listTiers",{}).then((O)=>{if(!Array.isArray(O))return[];return O.flatMap(($)=>{if(typeof $==="string")return[{id:$}];if(!$||typeof $!=="object"||Array.isArray($))return[];let Z=$;return typeof Z.id==="string"?[{id:Z.id,...typeof Z.label==="string"?{label:Z.label}:{},...typeof Z.providerID==="string"?{providerID:Z.providerID}:{},...typeof Z.modelID==="string"?{modelID:Z.modelID}:{}}]:[]})}).catch((O)=>{return N.warn("listTiers fetch failed; using hardcoded tier fallback",{error:O instanceof Error?O.message:String(O)}),[]})}async function F1(){return M$("TIER_RATINGS",{}).catch((O)=>{N.warn("TIER_RATINGS fetch failed; no tier ratings will be shown",{error:O instanceof Error?O.message:String(O)});return})}async function q1(O){return q("compaction.trajectory","compressTrajectorySafe",O,{noCache:!0,billable:!0,signal:AbortSignal.timeout(120000)})}async function E1(O,$){let Z=$?.timeoutMs??30000,J={query:O};if($?.numResults)J.options={count:$.numResults};return q("brave.search","braveSearch",J,{noCache:!0,signal:AbortSignal.timeout(Z)})}async function H1(O){return q("qredits.history","getHistory",O,{noCache:!0})}async function A1(O){return q("forgewise.qredits.balance","fetchQreditsBalance",O,{noCache:!0,acceptTopLevel:!0})}async function h1(O){return q(`code.analyze:${O.filePath}`,"analyzeCodeForIssues",O,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function k1(O){return q(`code.docs:${O.filePath}:${O.functionName??""}`,"generateDocumentation",O,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function P1(O){return q(`code.comments:${O.filePath}`,"generateInlineComments",O,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function g1(O,$,Z){return q("chat.boolean","chatBoolean",{sample:O,test:$},{noCache:!0,billable:!0,signal:AbortSignal.timeout(Z?.timeoutMs??30000)})}async function f1(O,$){let Z={message:O},J={};if($?.provider!==void 0)J.provider=$.provider;if($?.temperature!==void 0)J.temperature=$.temperature;if($?.maxTokens!==void 0)J.maxTokens=$.maxTokens;if(Object.keys(J).length>0)Z.options=J;return q("chat.completion","chatCompletion",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout($?.timeoutMs??30000)})}async function b1(O){return q("batch.submit","submitBatch",O,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function C1(O){return M$("retrieveBatch",{batchId:O.batchId},{signal:AbortSignal.timeout(30000)})}
|
|
8
|
+
export{NO as mo,O1 as no,V1 as oo,Y$ as po,v as qo,a as ro,H as so,d as to,m as uo,U$ as vo,x1 as wo,w1 as xo,F1 as yo,H1 as zo,A1 as Ao,Q$ as Bo};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ed as j}from"./chunk-x25zkrz7.js";import{Rd as Q}from"./chunk-yajd975f.js";import{Vf as M}from"./chunk-rbk8seme.js";import{og as N}from"./chunk-8r6ht39z.js";import{gh as $}from"./chunk-caj1b9y7.js";import"./chunk-ygs5pzk7.js";import"./chunk-vxyy2dp3.js";import"./chunk-yp5bypsp.js";import"./chunk-7hm0c2yg.js";import"./chunk-gj0wt0cy.js";import"./chunk-5hw6xa49.js";import"./chunk-326p5b10.js";import{Cl as X,kk as J}from"./chunk-257me4z3.js";import"./chunk-nkkch4h7.js";import"./chunk-s3mnrhbx.js";import"./chunk-ezfy0b6q.js";import"./chunk-bn0h9dny.js";import"./chunk-hnvn2c25.js";import"./chunk-3nx7112w.js";import"./chunk-htz93dsd.js";import"./chunk-vcw00k0n.js";import"./chunk-we9cv8we.js";import"./chunk-2hc5z7b5.js";import{Do as _}from"./chunk-9gazyynx.js";import"./chunk-4jtxtkj7.js";import"./chunk-ay8emwym.js";import"./chunk-2maqde7w.js";import"./chunk-kj20f048.js";import"./chunk-cqtkxwd8.js";import"./chunk-x9rbv6p6.js";import"./chunk-g5rabwre.js";import"./chunk-jbx3s7nw.js";import"./chunk-15hw2z9t.js";import"./chunk-48ge2ryx.js";import"./chunk-n9xns8by.js";import"./chunk-y9q0hb7b.js";import"./chunk-d9hbhkbq.js";import"./chunk-ad72gb5f.js";import"./chunk-d6ry9418.js";import"./chunk-0dt0bxz6.js";import"./chunk-10bjs581.js";import"./chunk-4cnwn1rh.js";import"./chunk-764fksh3.js";import{Hs as Y,Rs as Z}from"./chunk-xj765svc.js";import{ht as E,st as V}from"./chunk-tqj69nh6.js";import"./chunk-ag8kz1e7.js";import"./chunk-5tray1fw.js";import"./chunk-c11d28qn.js";import"./chunk-mzs2pjyc.js";import"./chunk-gagtmjmp.js";import"./chunk-zs8kqdsf.js";import"./chunk-dxpj0cxh.js";import"./chunk-zw815d68.js";import"./chunk-7xm75w1e.js";import{EOL as L}from"os";import k from"path";function P(){let q=["-R","-S"];if(process.platform!=="win32")return["less",...q];let z=_("less");if(z){if(V.stat(z)?.size)return[z,...q]}if(Z.QITQODE_GIT_BASH_PATH){let G=k.join(Z.QITQODE_GIT_BASH_PATH,"..","..","usr","bin","less.exe");if(V.stat(G)?.size)return[G,...q]}let B=_("git");if(B){let G=k.join(B,"..","..","usr","bin","less.exe");if(V.stat(G)?.size)return[G,...q]}return["cmd","/c","more"]}var g=Q({command:"session",describe:"manage sessions",builder:(q)=>q.command(T).command(D).command(v).demandCommand(),async handler(){}}),v=Q({command:"import-claude",describe:"import Claude Code sessions (~/.claude/projects) into qitqode",builder:(q)=>q.option("force",{describe:"re-sync every session, ignoring the mtime cache",type:"boolean",default:!1}),handler:async(q)=>{let z=await N.run({force:q.force});M.println(`Claude import: scanned ${z.scanned}, imported ${z.imported}, resynced ${z.resynced}, skipped ${z.skipped}`+(z.errors.length?`, errors ${z.errors.length}`:""));for(let B of z.errors)M.error(B)}}),D=Q({command:"delete <sessionID>",describe:"delete a session",builder:(q)=>{return q.positional("sessionID",{describe:"session ID to delete",type:"string",demandOption:!0})},handler:async(q)=>{await j(process.cwd(),async()=>{let z=J.make(q.sessionID);try{await $.runPromise(X.Service.use((B)=>B.get(z)))}catch{M.error(`Session not found: ${q.sessionID}`),process.exit(1)}await $.runPromise(X.Service.use((B)=>B.remove(z))),M.println(M.Style.TEXT_SUCCESS_BOLD+`Session ${q.sessionID} deleted`+M.Style.TEXT_NORMAL)})}}),T=Q({command:"list",describe:"list sessions",builder:(q)=>{return q.option("max-count",{alias:"n",describe:"limit to N most recent sessions",type:"number"}).option("format",{describe:"output format",type:"string",choices:["table","json"],default:"table"})},handler:async(q)=>{await j(process.cwd(),async()=>{let z=[...X.list({roots:!0,limit:q.maxCount})];if(z.length===0)return;let B;if(q.format==="json")B=f(z);else B=b(z);if(process.stdout.isTTY&&!q.maxCount&&q.format==="table"){let H=E.spawn(P(),{stdin:"pipe",stdout:"inherit",stderr:"inherit"});if(!H.stdin){console.log(B);return}H.stdin.write(B),H.stdin.end(),await H.exited}else console.log(B)})}});function b(q){let z=[],B=Math.max(20,...q.map((K)=>K.id.length)),G=Math.max(25,...q.map((K)=>K.title.length)),H=`Session ID${" ".repeat(B-10)} Title${" ".repeat(G-5)} Updated`;z.push(H),z.push("\u2500".repeat(H.length));for(let K of q){let A=Y.truncate(K.title,G),R=Y.todayTimeOrDateTime(K.time.updated),w=`${K.id.padEnd(B)} ${A.padEnd(G)} ${R}`;z.push(w)}return z.join(L)}function f(q){let z=q.map((B)=>({id:B.id,title:B.title,updated:B.time.updated,created:B.time.created,projectId:B.projectID,directory:B.directory}));return JSON.stringify(z,null,2)}export{T as SessionListCommand,v as SessionImportClaudeCommand,D as SessionDeleteCommand,g as SessionCommand};
|