@qitqode/qitqode-android-arm64 0.2.5 → 0.2.7
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-ztyy3ga3.js → chunk-01e3v1xz.js} +2 -2
- package/bundle/{chunk-p54bzjtv.js → chunk-060wbpz4.js} +1 -1
- package/bundle/{chunk-ypdt9mmr.js → chunk-0am156m5.js} +2 -2
- package/bundle/{chunk-xhtcegk0.js → chunk-0bgssfvq.js} +1 -1
- package/bundle/{chunk-dnnkq5y4.js → chunk-0crgymtr.js} +2 -2
- package/bundle/chunk-0dzpjk7x.js +2 -0
- package/bundle/{chunk-bwbqkfv0.js → chunk-0ffmwhw7.js} +1 -1
- package/bundle/{chunk-h62chdmw.js → chunk-0g0jpw0z.js} +1 -1
- package/bundle/{chunk-mn9end71.js → chunk-0ggvqmnm.js} +1 -1
- package/bundle/{chunk-y7hgevfv.js → chunk-0gsw04hw.js} +2 -2
- package/bundle/{chunk-tkrwcjkr.js → chunk-0qpqd7nz.js} +2 -2
- package/bundle/{chunk-nty5z2cj.js → chunk-0tqmm8b8.js} +1 -1
- package/bundle/chunk-12fwmmcp.js +2 -0
- package/bundle/{chunk-bch1rj72.js → chunk-14d301ze.js} +1 -1
- package/bundle/{chunk-3cqrz7g1.js → chunk-16srrzjr.js} +1 -1
- package/bundle/{chunk-45a4n21f.js → chunk-19pspc1p.js} +1 -1
- package/bundle/chunk-1a95ysv3.js +2 -0
- package/bundle/chunk-1akh8pk2.js +2 -0
- package/bundle/{chunk-5tky3csh.js → chunk-1ay97v74.js} +1 -1
- package/bundle/{chunk-6ar91jvd.js → chunk-1c0yp2gv.js} +1 -1
- package/bundle/{chunk-2md6sx8d.js → chunk-1rgt2vmt.js} +1 -1
- package/bundle/{chunk-3kpse7zy.js → chunk-1vpx7szf.js} +1 -1
- package/bundle/chunk-22qetqnp.js +2 -0
- package/bundle/{chunk-tm34qp8j.js → chunk-2bjfz4fb.js} +1 -1
- package/bundle/{chunk-jxwey5py.js → chunk-2c26kxp4.js} +5 -5
- package/bundle/{chunk-xe69cnsk.js → chunk-2c41dncf.js} +1 -1
- package/bundle/{chunk-m7v4ky0y.js → chunk-2cjfezfr.js} +1 -1
- package/bundle/chunk-2d2a92kj.js +2 -0
- package/bundle/{chunk-m5dm7a1t.js → chunk-2pex3ak9.js} +1 -1
- package/bundle/chunk-2qrvkef8.js +2 -0
- package/bundle/chunk-2tppw8j9.js +2 -0
- package/bundle/chunk-2y87m7pe.js +2 -0
- package/bundle/{chunk-sfw5qddj.js → chunk-33jcxsbe.js} +1 -1
- package/bundle/{chunk-d0x5pbkm.js → chunk-3623jvcm.js} +1 -1
- package/bundle/{chunk-953pqp3w.js → chunk-368jx5dp.js} +1 -1
- package/bundle/chunk-3ft1dn9j.js +2 -0
- package/bundle/{chunk-rn83r0js.js → chunk-3k7016c2.js} +1 -1
- package/bundle/chunk-3rgct4bd.js +11 -0
- package/bundle/{chunk-68v3b6ns.js → chunk-3xdmxm5t.js} +2 -2
- package/bundle/{chunk-dt5aae7t.js → chunk-42q8vj0w.js} +1 -1
- package/bundle/{chunk-yhj01dz9.js → chunk-438faz6b.js} +2 -2
- package/bundle/chunk-4656qm05.js +2 -0
- package/bundle/chunk-46knch5z.js +2 -0
- package/bundle/{chunk-n23d0q00.js → chunk-4bewbvvr.js} +1 -1
- package/bundle/{chunk-pmg53fdd.js → chunk-4byvnx78.js} +1 -1
- package/bundle/chunk-4ftjx7ss.js +2 -0
- package/bundle/{chunk-jqk3v8d6.js → chunk-4fvbexr8.js} +1 -1
- package/bundle/{chunk-k1nh5sd2.js → chunk-4fy08jcj.js} +1 -1
- package/bundle/{chunk-0smnwqk6.js → chunk-4j76bf4j.js} +2 -2
- package/bundle/{chunk-5nrc5rhh.js → chunk-4jpab7ag.js} +1 -1
- package/bundle/{chunk-0j5rzaxx.js → chunk-4ngmjk8j.js} +2 -2
- package/bundle/{chunk-vnrjk2be.js → chunk-4rpgwgx9.js} +1 -1
- package/bundle/chunk-4sgy87h5.js +2 -0
- package/bundle/{chunk-65bmsp2t.js → chunk-4vzjdmts.js} +1 -1
- package/bundle/{chunk-zc0cdvcv.js → chunk-4zhrg3rv.js} +2 -2
- package/bundle/{chunk-5pzs51sp.js → chunk-52rdms56.js} +1 -1
- package/bundle/chunk-54hktc8h.js +2 -0
- package/bundle/{chunk-smznrv7k.js → chunk-55way0em.js} +1 -1
- package/bundle/{chunk-k4gsktts.js → chunk-59kk0mce.js} +1 -1
- package/bundle/chunk-59m55866.js +2 -0
- package/bundle/{chunk-a9a0cwmf.js → chunk-5b3v1x2c.js} +2 -2
- package/bundle/chunk-5js5nw7r.js +2 -0
- package/bundle/{chunk-5gsdnejs.js → chunk-5nhwqg7c.js} +1 -1
- package/bundle/{chunk-13rsd5vv.js → chunk-5r05d901.js} +3 -3
- package/bundle/{chunk-avefgbjg.js → chunk-5zh91zk2.js} +2 -2
- package/bundle/chunk-61jn7908.js +2 -0
- package/bundle/chunk-61txdqz1.js +2 -0
- package/bundle/chunk-668g9wkg.js +2 -0
- package/bundle/chunk-6frhjpmt.js +2 -0
- package/bundle/{chunk-920z7g7j.js → chunk-6gqs1k7m.js} +1 -1
- package/bundle/chunk-6k14c8x1.js +5 -0
- package/bundle/{chunk-g42krp0z.js → chunk-6nxebcf8.js} +1 -1
- package/bundle/chunk-6r1jpj0h.js +2 -0
- package/bundle/{chunk-7bcm7gg1.js → chunk-6r48fje7.js} +1 -1
- package/bundle/{chunk-bqn6bqws.js → chunk-6ychs4wx.js} +1 -1
- package/bundle/{chunk-21rq4592.js → chunk-705xnxbc.js} +2 -2
- package/bundle/chunk-73fn4dqd.js +2 -0
- package/bundle/{chunk-2b3fn9xv.js → chunk-73xryfgn.js} +2 -2
- package/bundle/{chunk-ct693qsd.js → chunk-76h0f86f.js} +1 -1
- package/bundle/{chunk-cq9sd32h.js → chunk-77h8tytk.js} +1 -1
- package/bundle/chunk-78j2c2je.js +2 -0
- package/bundle/chunk-78jt24ht.js +2 -0
- package/bundle/chunk-7j2vpavd.js +2 -0
- package/bundle/chunk-7nkxgm72.js +2 -0
- package/bundle/{chunk-f31yvp20.js → chunk-7p6mxch0.js} +1 -1
- package/bundle/{chunk-mhhtf0v3.js → chunk-7sq5dyv1.js} +1 -1
- package/bundle/{chunk-804vmbcd.js → chunk-7x2q1w0f.js} +1 -1
- package/bundle/{chunk-ac7482n2.js → chunk-7z96r2px.js} +2 -2
- package/bundle/chunk-84pjdenq.js +2 -0
- package/bundle/chunk-859pkecc.js +2 -0
- package/bundle/{chunk-y0527cg0.js → chunk-8hmt3avx.js} +1 -1
- package/bundle/{chunk-7ayb3k5p.js → chunk-8jvfqh3b.js} +1 -1
- package/bundle/{chunk-8wwdrwf2.js → chunk-8p0t8qah.js} +1 -1
- package/bundle/chunk-8p249svd.js +2 -0
- package/bundle/{chunk-z1932c3f.js → chunk-8rfqv5he.js} +1 -1
- package/bundle/chunk-8rqbx4jw.js +2 -0
- package/bundle/chunk-8s3krfsm.js +2 -0
- package/bundle/{chunk-pb30kkbs.js → chunk-93pmbdz7.js} +6 -6
- package/bundle/{chunk-vcygx6hs.js → chunk-95am490c.js} +2 -2
- package/bundle/{chunk-52frd9p0.js → chunk-9a6p1gdn.js} +8 -8
- package/bundle/chunk-9aafddkw.js +3 -0
- package/bundle/{chunk-0xrb12s8.js → chunk-9g9katgy.js} +2 -2
- package/bundle/{chunk-24rkf2gk.js → chunk-9qzwmt76.js} +1 -1
- package/bundle/chunk-9sv53kb4.js +2 -0
- package/bundle/chunk-9wbe0dkx.js +2 -0
- package/bundle/{chunk-bne5w117.js → chunk-9xxnwb33.js} +4 -4
- package/bundle/{chunk-fjbv3jht.js → chunk-a610qd3x.js} +1 -1
- package/bundle/{chunk-5c2438af.js → chunk-a76w2jwm.js} +1 -1
- package/bundle/{chunk-at22twxx.js → chunk-aa2n02qk.js} +2 -2
- package/bundle/{chunk-3akv2xqh.js → chunk-abv0fskc.js} +1 -1
- package/bundle/{chunk-7g66qc1v.js → chunk-acd72413.js} +2 -2
- package/bundle/{chunk-wkg3c643.js → chunk-ae7b11np.js} +2 -2
- package/bundle/{chunk-gy21fw82.js → chunk-agqss9ga.js} +2 -2
- package/bundle/chunk-aj5z8qd5.js +2 -0
- package/bundle/{chunk-fxx0z4yb.js → chunk-ajp53ksp.js} +1 -1
- package/bundle/{chunk-j164q40b.js → chunk-amp6mvbp.js} +2 -2
- package/bundle/{chunk-44723rmb.js → chunk-aqcpk2vg.js} +1 -1
- package/bundle/chunk-b0c2mvc0.js +2 -0
- package/bundle/{chunk-pxv12ctq.js → chunk-b6eypnbj.js} +1 -1
- package/bundle/chunk-b79z8f94.js +2 -0
- package/bundle/chunk-bbwcsdy9.js +2 -0
- package/bundle/chunk-bbzjdbb9.js +2 -0
- package/bundle/{chunk-6evh2ke8.js → chunk-bd505nsd.js} +1 -1
- package/bundle/{chunk-p4027t94.js → chunk-bd84t3fb.js} +1 -1
- package/bundle/chunk-bh4s1yct.js +2 -0
- package/bundle/{chunk-rrv0n73b.js → chunk-bk7f59fn.js} +1 -1
- package/bundle/{chunk-venprxdp.js → chunk-bn71wqqf.js} +1 -1
- package/bundle/{chunk-j9h1sp4g.js → chunk-c3szabpf.js} +2 -2
- package/bundle/{chunk-z6sbjvtv.js → chunk-c6cajbyj.js} +1 -1
- package/bundle/{chunk-p6crzjtf.js → chunk-c8prg3jx.js} +2 -2
- package/bundle/chunk-crqcppwq.js +2 -0
- package/bundle/{chunk-t239rvej.js → chunk-cth373se.js} +2 -2
- package/bundle/chunk-d09zpgj1.js +2 -0
- package/bundle/{chunk-np12r26m.js → chunk-d1tb1jd0.js} +1 -1
- package/bundle/{chunk-mmjgf680.js → chunk-dbpkq7ba.js} +2 -2
- package/bundle/{chunk-36xm6mgm.js → chunk-dd4qnh8s.js} +2 -2
- package/bundle/{chunk-p169ee92.js → chunk-defj5zs6.js} +1 -1
- package/bundle/chunk-dexcptaz.js +3 -0
- package/bundle/chunk-dgqkak21.js +2 -0
- package/bundle/{chunk-jww55nk9.js → chunk-dgva3y5v.js} +1 -1
- package/bundle/chunk-dhgvh7c3.js +2 -0
- package/bundle/{chunk-c55f729m.js → chunk-djqxbnwc.js} +2 -2
- package/bundle/chunk-dmd101ja.js +2 -0
- package/bundle/{chunk-vygkwwjd.js → chunk-drnj1a14.js} +2 -2
- package/bundle/{chunk-g3wvtyw3.js → chunk-dt1wwt7m.js} +1 -1
- package/bundle/{chunk-cz5vta94.js → chunk-dw70wds9.js} +1 -1
- package/bundle/{chunk-xdd3553a.js → chunk-dw7yrk1g.js} +1 -1
- package/bundle/chunk-dwb39jdf.js +2 -0
- package/bundle/chunk-dx4zxex7.js +2 -0
- package/bundle/{chunk-ph8hn1wt.js → chunk-dy2k5rdx.js} +2 -2
- package/bundle/{chunk-wwdpw27v.js → chunk-dz3bec8g.js} +1 -1
- package/bundle/{chunk-t0761rhq.js → chunk-e0zb6sw6.js} +2 -2
- package/bundle/chunk-e2pqvscp.js +2 -0
- package/bundle/{chunk-vsz4s6zt.js → chunk-e4g4mvak.js} +1 -1
- package/bundle/{chunk-fhqfqd5v.js → chunk-eeq0krp7.js} +2 -2
- package/bundle/chunk-efe6kj3d.js +2 -0
- package/bundle/{chunk-qp1n7kwe.js → chunk-egkhynj5.js} +1 -1
- package/bundle/chunk-emac0dss.js +2 -0
- package/bundle/chunk-encfnt6w.js +2 -0
- package/bundle/{chunk-y29ejqg2.js → chunk-etv6c77a.js} +1 -1
- package/bundle/{chunk-32j0q58h.js → chunk-eyr5ymt8.js} +1 -1
- package/bundle/{chunk-r9w0thdk.js → chunk-f2pv705d.js} +1 -1
- package/bundle/{chunk-5w76kdjr.js → chunk-f4mnp6xd.js} +1 -1
- package/bundle/{chunk-xdteq9bd.js → chunk-f84hw65n.js} +1 -1
- package/bundle/chunk-fg2nyz2x.js +2 -0
- package/bundle/chunk-ga6wc979.js +2 -0
- package/bundle/{chunk-nw3e93y8.js → chunk-gbxf6e5d.js} +3 -3
- package/bundle/chunk-gdew7bwm.js +2 -0
- package/bundle/{chunk-w9gzfsy7.js → chunk-gdj7mqrd.js} +2 -2
- package/bundle/chunk-ge19ff9d.js +2 -0
- package/bundle/{chunk-wmezdcdh.js → chunk-ghap1n1m.js} +4 -4
- package/bundle/chunk-gt0q07xq.js +2 -0
- package/bundle/{chunk-7mppvhv9.js → chunk-gwrnxcdn.js} +2 -2
- package/bundle/{chunk-e8p92vz4.js → chunk-gww0skmn.js} +2 -2
- package/bundle/chunk-h4dnjfr2.js +2 -0
- package/bundle/{chunk-has2rz35.js → chunk-h7658zxy.js} +1 -1
- package/bundle/chunk-h8fx619t.js +2 -0
- package/bundle/{chunk-313zqzc1.js → chunk-hfefq104.js} +1 -1
- package/bundle/{chunk-ff548b0j.js → chunk-hhk2sp5n.js} +2 -2
- package/bundle/{chunk-47k5jy1p.js → chunk-hqjc4wgg.js} +2 -2
- package/bundle/{chunk-48r70n4s.js → chunk-hrtze4c5.js} +1 -1
- package/bundle/{chunk-r5zy4za0.js → chunk-hwsqqkrv.js} +2 -2
- package/bundle/{chunk-ehb4hd9c.js → chunk-j6xmgn63.js} +1 -1
- package/bundle/chunk-jnvb3s7f.js +2 -0
- package/bundle/chunk-jrq2xw6e.js +2 -0
- package/bundle/chunk-jwckmhjm.js +2 -0
- package/bundle/{chunk-xqnzmr7a.js → chunk-jxkrhrp0.js} +2 -2
- package/bundle/chunk-jz27ypm5.js +2 -0
- package/bundle/chunk-jzrs878d.js +2 -0
- package/bundle/chunk-jzx700tb.js +2 -0
- package/bundle/chunk-k1x8469r.js +3 -0
- package/bundle/{chunk-0g7acwt1.js → chunk-k3g28tbw.js} +1 -1
- package/bundle/{chunk-wy3a4cab.js → chunk-k6zwfstj.js} +1 -1
- package/bundle/{chunk-0qd3567w.js → chunk-kfj37631.js} +1 -1
- package/bundle/{chunk-khzzmyk2.js → chunk-kmzpeq8k.js} +1 -1
- package/bundle/{chunk-bd21p9zz.js → chunk-kre93a89.js} +2 -2
- package/bundle/{chunk-j8fcfhr2.js → chunk-kry4vcrf.js} +2 -2
- package/bundle/chunk-ktp2b4t4.js +2 -0
- package/bundle/chunk-m483jvn8.js +2 -0
- package/bundle/chunk-makecdh6.js +8 -0
- package/bundle/{chunk-tr6rdr6h.js → chunk-mbbxedsq.js} +2 -2
- package/bundle/chunk-menbcmkq.js +2 -0
- package/bundle/{chunk-hwrrrbqd.js → chunk-mghnkwp8.js} +1 -1
- package/bundle/{chunk-pr7z5dj8.js → chunk-mhxyv9c8.js} +1 -1
- package/bundle/{chunk-k5q9px67.js → chunk-mjrqhbp2.js} +1 -1
- package/bundle/{chunk-9zm6r55d.js → chunk-msh249db.js} +2 -2
- package/bundle/{chunk-bbdp6dj4.js → chunk-n0g4983e.js} +1 -1
- package/bundle/{chunk-dnsh1v42.js → chunk-n4qxj391.js} +2 -2
- package/bundle/{chunk-ptqk1j2r.js → chunk-n5p7cn4w.js} +1 -1
- package/bundle/{chunk-5zkj5xv9.js → chunk-n9twhc5d.js} +2 -2
- package/bundle/{chunk-p5be5ddp.js → chunk-na1wr2qf.js} +1 -1
- package/bundle/{chunk-4agaj51z.js → chunk-nbckdba0.js} +1 -1
- package/bundle/{chunk-ezrqhqkp.js → chunk-nftbj8g9.js} +1 -1
- package/bundle/{chunk-93gdcrbc.js → chunk-nfzpegqx.js} +1 -1
- package/bundle/chunk-np8h66t0.js +2 -0
- package/bundle/{chunk-af81r4v7.js → chunk-npzx3yd5.js} +1 -1
- package/bundle/chunk-nr2j8ytn.js +3 -0
- package/bundle/{chunk-w46g7kdq.js → chunk-nrk29616.js} +2 -2
- package/bundle/{chunk-826r9svy.js → chunk-ns8xnkjb.js} +2 -2
- package/bundle/{chunk-7vmx8bg9.js → chunk-ntpn0w9m.js} +2 -2
- package/bundle/chunk-nwwmns3w.js +2 -0
- package/bundle/{chunk-ksme3gj1.js → chunk-p40z6510.js} +1 -1
- package/bundle/{chunk-xmb8jy13.js → chunk-p847g35y.js} +1 -1
- package/bundle/{chunk-vf492zs6.js → chunk-p8ak162p.js} +1 -1
- package/bundle/chunk-pe5dpzec.js +2 -0
- package/bundle/{chunk-bbng1cea.js → chunk-pf3nqf00.js} +1 -1
- package/bundle/{chunk-9hz56z6a.js → chunk-ppy0jy6j.js} +1 -1
- package/bundle/{chunk-et3804wr.js → chunk-prbxhnza.js} +1 -1
- package/bundle/{chunk-nrat6ncm.js → chunk-ptwex14s.js} +1 -1
- package/bundle/{chunk-qey1efpx.js → chunk-q3pt4p9f.js} +1 -1
- package/bundle/{chunk-eb4y8bjv.js → chunk-q6mcnq9p.js} +1 -1
- package/bundle/{chunk-vp9scf28.js → chunk-q6p92zyn.js} +2 -2
- package/bundle/{chunk-yfzyzsr4.js → chunk-q87fw8dk.js} +2 -2
- package/bundle/chunk-q8f6a074.js +2 -0
- package/bundle/{chunk-5qsr1q4t.js → chunk-qbrj9wzd.js} +1 -1
- package/bundle/{chunk-j0bwa5dk.js → chunk-qdvnscxm.js} +2 -2
- package/bundle/{chunk-d6jhs818.js → chunk-qp3hxqg5.js} +2 -2
- package/bundle/{chunk-jg1ccs3j.js → chunk-qph2c2v7.js} +1 -1
- package/bundle/{chunk-3vvd7j14.js → chunk-qprbef09.js} +1 -1
- package/bundle/chunk-qqaevt32.js +2 -0
- package/bundle/chunk-qzpvz708.js +2 -0
- package/bundle/{chunk-41cq88js.js → chunk-r4kg0z96.js} +2 -2
- package/bundle/{chunk-faee8zgc.js → chunk-r73e8gsp.js} +1 -1
- package/bundle/chunk-reyjr2e0.js +2 -0
- package/bundle/{chunk-dxdggn90.js → chunk-rfzra502.js} +1 -1
- package/bundle/{chunk-tg226j37.js → chunk-rhrcgvb8.js} +1 -1
- package/bundle/{chunk-wyj8cpx5.js → chunk-rk0fnvp5.js} +1 -1
- package/bundle/{chunk-t8c4cs6z.js → chunk-rqedtjz9.js} +1 -1
- package/bundle/{chunk-eg3syjtv.js → chunk-s06t769q.js} +2 -2
- package/bundle/{chunk-cfjjx3sh.js → chunk-skxg3s8z.js} +1 -1
- package/bundle/{chunk-7x6yrtzn.js → chunk-spzd8rev.js} +1 -1
- package/bundle/chunk-t178njgb.js +2 -0
- package/bundle/{chunk-3jf3jhrs.js → chunk-t4b2fm7z.js} +1 -1
- package/bundle/{chunk-55fcmswd.js → chunk-t8sy5sgx.js} +2 -2
- package/bundle/{chunk-s4vx9x1v.js → chunk-t9qyzzsz.js} +1 -1
- package/bundle/{chunk-6scf311w.js → chunk-tc9xbn1t.js} +1 -1
- package/bundle/{chunk-qnvsqnz5.js → chunk-tezrgfc6.js} +2 -2
- package/bundle/chunk-tjpev5t6.js +2 -0
- package/bundle/{chunk-nymf08b4.js → chunk-tkzctbxq.js} +2 -2
- package/bundle/{chunk-t5xxs5kp.js → chunk-ts2k13g0.js} +1 -1
- package/bundle/{chunk-gszvgz76.js → chunk-twd6r7nf.js} +2 -2
- package/bundle/{chunk-qxcyz5hc.js → chunk-twfvrafb.js} +2 -2
- package/bundle/{chunk-70q8qcb2.js → chunk-twvmjsxf.js} +1 -1
- package/bundle/{chunk-ggxzf22k.js → chunk-tz3s8dvy.js} +1 -1
- package/bundle/chunk-tzq7wjgv.js +3 -0
- package/bundle/{chunk-n78f8hfk.js → chunk-v0c3k797.js} +1 -1
- package/bundle/chunk-v1s16wwd.js +2 -0
- package/bundle/{chunk-kj8cmn7z.js → chunk-v3nmnm57.js} +2 -2
- package/bundle/chunk-v6b29nx4.js +2 -0
- package/bundle/chunk-v6rgd1j5.js +2 -0
- package/bundle/chunk-v9dnetq8.js +2 -0
- package/bundle/{chunk-450fef7h.js → chunk-v9w88wpy.js} +2 -2
- package/bundle/{chunk-7hvf9dgx.js → chunk-va2qfh0x.js} +1 -1
- package/bundle/chunk-vd5mpvcc.js +2 -0
- package/bundle/{chunk-w4synhfg.js → chunk-vfb72vdy.js} +1 -1
- package/bundle/{chunk-45k7qm85.js → chunk-vhzx5bxd.js} +1 -1
- package/bundle/{chunk-cmb62jkt.js → chunk-vjn54xj5.js} +2 -2
- package/bundle/{chunk-ybane1en.js → chunk-vp3yf46q.js} +1 -1
- package/bundle/{chunk-jyt2xvha.js → chunk-vzrc2fmt.js} +1 -1
- package/bundle/{chunk-ejqzcdcx.js → chunk-w3zhy5vq.js} +1 -1
- package/bundle/{chunk-v3nqkqhz.js → chunk-w43kmnm9.js} +641 -635
- package/bundle/{chunk-w4brava0.js → chunk-wb1d3mqw.js} +1 -1
- package/bundle/{chunk-6m9jb0s9.js → chunk-wd8hbven.js} +2 -2
- package/bundle/{chunk-vshycswk.js → chunk-wgt1tqw9.js} +1 -1
- package/bundle/{chunk-0428v6mw.js → chunk-whw18cn9.js} +1 -1
- package/bundle/{chunk-pxm4qvqk.js → chunk-wjz42325.js} +2 -2
- package/bundle/{chunk-y67kaj0b.js → chunk-wvb17w0z.js} +1 -1
- package/bundle/chunk-wwct4z7j.js +2 -0
- package/bundle/{chunk-55ykn8nz.js → chunk-x55h5qdc.js} +4 -4
- package/bundle/{chunk-05ck7acg.js → chunk-x80d0zh7.js} +1 -1
- package/bundle/{chunk-mjjaezwq.js → chunk-x9fyt3vx.js} +2 -2
- package/bundle/{chunk-g22e4gw7.js → chunk-xb3sxa6f.js} +1 -1
- package/bundle/{chunk-yz25607t.js → chunk-xcxqt8ag.js} +1 -1
- package/bundle/{chunk-c36p881g.js → chunk-xhh70g8j.js} +3 -3
- package/bundle/chunk-xr9wz961.js +2 -0
- package/bundle/{chunk-0cnwsf8p.js → chunk-y0h3jfkj.js} +1 -1
- package/bundle/{chunk-m7ganre7.js → chunk-y2t5pmqw.js} +1 -1
- package/bundle/{chunk-g3y5xemb.js → chunk-y5q9v80n.js} +1 -1
- package/bundle/{chunk-kdj7xvz7.js → chunk-yd94wz5v.js} +2 -2
- package/bundle/{chunk-rn043d0r.js → chunk-yjqww6ag.js} +2 -2
- package/bundle/{chunk-2drzgtv3.js → chunk-yxttz5z5.js} +2 -2
- package/bundle/{chunk-2nv1scj9.js → chunk-yy7r3t3w.js} +2 -2
- package/bundle/{chunk-5pwv2p3s.js → chunk-yzpc5kj2.js} +1 -1
- package/bundle/{chunk-73r8bjjz.js → chunk-z6kcnpsj.js} +2 -2
- package/bundle/{chunk-nj1ntakd.js → chunk-z744mz4w.js} +2 -2
- package/bundle/{chunk-39z96pc6.js → chunk-z7kswv9r.js} +3 -3
- package/bundle/chunk-zfegnt1e.js +2 -0
- package/bundle/chunk-zg7kesbp.js +2 -0
- package/bundle/{chunk-t9pwz4ws.js → chunk-znmbfx70.js} +1 -1
- package/bundle/{chunk-24ygjbpf.js → chunk-zp5sr5nx.js} +2 -2
- package/bundle/{chunk-ha1w0xzh.js → chunk-zrhw1szj.js} +1 -1
- package/bundle/chunk-zy06fe4r.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-03bp59wq.js +0 -2
- package/bundle/chunk-0ppnq3a4.js +0 -2
- package/bundle/chunk-0te0vcdn.js +0 -2
- package/bundle/chunk-11h06z17.js +0 -2
- package/bundle/chunk-28yv4fqe.js +0 -2
- package/bundle/chunk-34a52hyr.js +0 -2
- package/bundle/chunk-3n3gb3vd.js +0 -2
- package/bundle/chunk-3sq60y9f.js +0 -2
- package/bundle/chunk-49mbnqvc.js +0 -2
- package/bundle/chunk-4fr6kae9.js +0 -2
- package/bundle/chunk-516w1nc4.js +0 -2
- package/bundle/chunk-535nm66j.js +0 -2
- package/bundle/chunk-5kpxpm8e.js +0 -2
- package/bundle/chunk-5nm5s0h2.js +0 -2
- package/bundle/chunk-5ysbwr4x.js +0 -3
- package/bundle/chunk-6gpf2bjs.js +0 -2
- package/bundle/chunk-6sxx56b2.js +0 -2
- package/bundle/chunk-6t48g4x5.js +0 -2
- package/bundle/chunk-7bgzcpdw.js +0 -2
- package/bundle/chunk-7kjvcbwa.js +0 -2
- package/bundle/chunk-89b4k585.js +0 -2
- package/bundle/chunk-8jma2btf.js +0 -2
- package/bundle/chunk-93e0w75z.js +0 -2
- package/bundle/chunk-97gp818s.js +0 -2
- package/bundle/chunk-98b7ecrk.js +0 -2
- package/bundle/chunk-9epf2zbh.js +0 -2
- package/bundle/chunk-acpjrs02.js +0 -2
- package/bundle/chunk-agv04nt7.js +0 -2
- package/bundle/chunk-be7smmar.js +0 -2
- package/bundle/chunk-bryx5cx9.js +0 -2
- package/bundle/chunk-c13rrw41.js +0 -2
- package/bundle/chunk-c2kkv619.js +0 -2
- package/bundle/chunk-c5xj1y5v.js +0 -2
- package/bundle/chunk-ckpm4dvv.js +0 -2
- package/bundle/chunk-ct8twng1.js +0 -2
- package/bundle/chunk-d38y7bvh.js +0 -2
- package/bundle/chunk-d6hxsfm6.js +0 -2
- package/bundle/chunk-descb9jz.js +0 -2
- package/bundle/chunk-dvr2b9r1.js +0 -2
- package/bundle/chunk-ea5fktnn.js +0 -2
- package/bundle/chunk-f0t7rryn.js +0 -3
- package/bundle/chunk-f4mf6tpp.js +0 -2
- package/bundle/chunk-f97k17t8.js +0 -2
- package/bundle/chunk-g4ehhdzp.js +0 -2
- package/bundle/chunk-gd6qpdjw.js +0 -2
- package/bundle/chunk-gehn9fd9.js +0 -2
- package/bundle/chunk-h5pnng66.js +0 -2
- package/bundle/chunk-hgmqz75r.js +0 -2
- package/bundle/chunk-hhax4mxw.js +0 -2
- package/bundle/chunk-jvkzdap1.js +0 -2
- package/bundle/chunk-kf2f3mza.js +0 -2
- package/bundle/chunk-kg8fcv91.js +0 -2
- package/bundle/chunk-kgptyf7n.js +0 -3
- package/bundle/chunk-kjjjrjnb.js +0 -2
- package/bundle/chunk-kn8w69g9.js +0 -8
- package/bundle/chunk-kxwkab31.js +0 -2
- package/bundle/chunk-m5cfmhwh.js +0 -2
- package/bundle/chunk-m7qxxbns.js +0 -2
- package/bundle/chunk-mh19kwzw.js +0 -10
- package/bundle/chunk-mtpzcc14.js +0 -2
- package/bundle/chunk-n8wg5h5p.js +0 -2
- package/bundle/chunk-p6hcj3kv.js +0 -2
- package/bundle/chunk-pexmns0j.js +0 -2
- package/bundle/chunk-pt603np4.js +0 -2
- package/bundle/chunk-qk5bfcv8.js +0 -2
- package/bundle/chunk-qr06byhp.js +0 -2
- package/bundle/chunk-r1xh50b2.js +0 -5
- package/bundle/chunk-r7sq3maz.js +0 -2
- package/bundle/chunk-rmgs9nmj.js +0 -2
- package/bundle/chunk-rrd0fdra.js +0 -2
- package/bundle/chunk-rytavefg.js +0 -2
- package/bundle/chunk-sf5zc4kc.js +0 -2
- package/bundle/chunk-sh9vjnsh.js +0 -2
- package/bundle/chunk-st0c5wwc.js +0 -2
- package/bundle/chunk-teb3k2sf.js +0 -2
- package/bundle/chunk-ts798jvf.js +0 -2
- package/bundle/chunk-tx5aj02v.js +0 -2
- package/bundle/chunk-ty2vg1a5.js +0 -2
- package/bundle/chunk-v1t51rrq.js +0 -2
- package/bundle/chunk-vh9ptqn0.js +0 -2
- package/bundle/chunk-vwh6mv37.js +0 -2
- package/bundle/chunk-w2cb8cry.js +0 -2
- package/bundle/chunk-w72rctxz.js +0 -2
- package/bundle/chunk-wbw9zv3h.js +0 -2
- package/bundle/chunk-x6mw98c2.js +0 -2
- package/bundle/chunk-xy3c8f1h.js +0 -3
- package/bundle/chunk-xynwfaf1.js +0 -3
- package/bundle/chunk-y6p57wgh.js +0 -2
- package/bundle/chunk-y6xs8v17.js +0 -2
- package/bundle/chunk-yv5aehqq.js +0 -2
- package/bundle/chunk-z3xsfpc6.js +0 -2
- package/bundle/chunk-zgcabs1k.js +0 -2
- package/bundle/chunk-zn5pw733.js +0 -2
- package/bundle/chunk-zxwvnmea.js +0 -2
package/bundle/chunk-5ysbwr4x.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
function W(q){let B=!1,C=!1,J,K=new Promise((j)=>{J=j}),L=(j)=>{let z=j;return!!z&&(z.properties?.sessionID===q.sessionID||z.properties?.part?.sessionID===q.sessionID)},O=(j)=>{let z=j;return!!z&&z.type==="session.status"&&z.properties?.sessionID===q.sessionID&&z.properties?.status?.type==="idle"},P=async()=>{if(B)return;let j;try{j=await q.query()}catch{return}if(B||!C)return;if(!j||j.type==="idle")H()},Q=q.intervalMs??750,V=setInterval(()=>{P().catch(()=>{})},Q),H=()=>{if(B)return;B=!0,clearInterval(V),J()};return{markStarted(){C=!0},onEvent(j){if(B)return;if(L(j))C=!0;if(O(j))H()},get done(){return B},completion:K,stop(){H()}}}var Y="build";function Z(q){return q&&q.trim().length>0?q:"build"}
|
|
3
|
-
export{W as X,Y,Z};
|
package/bundle/chunk-6gpf2bjs.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ae as e,Be as f,Ce as g,we as a,xe as b,ye as c,ze as d}from"./chunk-ggxzf22k.js";import"./chunk-bne5w117.js";import"./chunk-j0bwa5dk.js";import"./chunk-2drzgtv3.js";import"./chunk-r9w0thdk.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-6sxx56b2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{o as L}from"./chunk-wmezdcdh.js";import"./chunk-af81r4v7.js";import{A as K}from"./chunk-3cqrz7g1.js";import{B as N}from"./chunk-gsez13bg.js";import{C as F,E as J}from"./chunk-c8k32724.js";import"./chunk-ct693qsd.js";import"./chunk-93gdcrbc.js";import"./chunk-gbkz04ke.js";import"./chunk-3akv2xqh.js";import{_ as M}from"./chunk-e8p92vz4.js";import"./chunk-55ykn8nz.js";import"./chunk-avefgbjg.js";import"./chunk-wyj8cpx5.js";import"./chunk-8wwdrwf2.js";import"./chunk-zc0cdvcv.js";import{ae as B}from"./chunk-5w76kdjr.js";import"./chunk-yhj01dz9.js";import"./chunk-d6jhs818.js";import"./chunk-c55f729m.js";import{dg as z}from"./chunk-eg3syjtv.js";import"./chunk-0j5rzaxx.js";import"./chunk-36xm6mgm.js";import"./chunk-v3nqkqhz.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-52frd9p0.js";import"./chunk-xqnzmr7a.js";import"./chunk-r1xh50b2.js";import"./chunk-13rsd5vv.js";import"./chunk-mh19kwzw.js";import"./chunk-a9a0cwmf.js";import"./chunk-nw3e93y8.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-kn8w69g9.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-2b3fn9xv.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-7vmx8bg9.js";import"./chunk-tkrwcjkr.js";import"./chunk-w2cb8cry.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";var x=B({command:"attach <url>",describe:"attach to a running qitqode server",builder:(j)=>j.positional("url",{type:"string",describe:"http://localhost:4096",demandOption:!0}).option("dir",{type:"string",description:"directory to run in"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],type:"string",describe:"session id to continue"}).option("fork",{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}),handler:async(j)=>{let Q=J();try{F();let q=N(j);if(q){z.error(q),process.exitCode=1;return}let R=(()=>{if(!j.dir)return;try{return process.chdir(j.dir),process.cwd()}catch{return j.dir}})(),S=M({password:j.password}),V=await K.get();await L({url:j.url,config:V,args:{continue:j.continue,sessionID:j.session,fork:j.fork},directory:R,headers:S})}finally{Q?.()}}});export{x as AttachCommand};
|
package/bundle/chunk-6t48g4x5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cg as i,Dg as j,Eg as k,Fg as l,Gg as m,Hg as n}from"./chunk-36xm6mgm.js";import"./chunk-w46g7kdq.js";import{io as a,jo as b,ko as c,lo as d,mo as e,no as f,ro as g,so as h}from"./chunk-kn8w69g9.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-w2cb8cry.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{f as resolveDevicePoll,h as refreshAccessToken,g as probeToken,l as loginDevice,n as loginBrowser,m as login,b as isReplitEnv,j as isNearExpiry,c as getConfig,i as getCallbackUri,k as fetchQreditsBalance,a as checkoutApiKey,d as ForgewiseError,e as DeviceFlowUnsupportedError};
|
package/bundle/chunk-7bgzcpdw.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{gO as a,hO as b,iO as c,jO as d,kO as e,lO as f,mO as g,nO as h,oO as i,pO as j}from"./chunk-pxm4qvqk.js";import"./chunk-r9w0thdk.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-7kjvcbwa.js
DELETED
package/bundle/chunk-89b4k585.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{a,b,c,d,e,f,g}from"./chunk-7ayb3k5p.js";import"./chunk-5gsdnejs.js";import"./chunk-ehb4hd9c.js";import"./chunk-ct693qsd.js";import"./chunk-ff548b0j.js";import"./chunk-zc0cdvcv.js";import"./chunk-5w76kdjr.js";import"./chunk-eg3syjtv.js";import"./chunk-36xm6mgm.js";import"./chunk-v3nqkqhz.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-52frd9p0.js";import"./chunk-xqnzmr7a.js";import"./chunk-r1xh50b2.js";import"./chunk-13rsd5vv.js";import"./chunk-mh19kwzw.js";import"./chunk-a9a0cwmf.js";import"./chunk-nw3e93y8.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-kn8w69g9.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-2b3fn9xv.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-w2cb8cry.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{f as statusEffect,a as resolveApiKeyFlag,e as logoutEffect,d as loginEffect,c as interactiveLogin,b as apiKeyLoginEffect,g as AuthCommand};
|
package/bundle/chunk-8jma2btf.js
DELETED
package/bundle/chunk-93e0w75z.js
DELETED
package/bundle/chunk-97gp818s.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Fd as a,Gd as b}from"./chunk-avefgbjg.js";import"./chunk-khzzmyk2.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{a as read,b as copy};
|
package/bundle/chunk-98b7ecrk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ah as a,Bh as b}from"./chunk-v3nqkqhz.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-52frd9p0.js";import"./chunk-xqnzmr7a.js";import"./chunk-r1xh50b2.js";import"./chunk-13rsd5vv.js";import"./chunk-mh19kwzw.js";import"./chunk-a9a0cwmf.js";import"./chunk-nw3e93y8.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-kn8w69g9.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-2b3fn9xv.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-w2cb8cry.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{b as AppRuntime,a as AppLayer};
|
package/bundle/chunk-9epf2zbh.js
DELETED
package/bundle/chunk-acpjrs02.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{gg as a,hg as b,ig as c,jg as d,kg as e}from"./chunk-vp9scf28.js";import"./chunk-kdj7xvz7.js";import"./chunk-0j5rzaxx.js";import"./chunk-36xm6mgm.js";import"./chunk-f0t7rryn.js";import"./chunk-nfg7nt13.js";import"./chunk-450fef7h.js";import"./chunk-yfzyzsr4.js";import"./chunk-v3nqkqhz.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-52frd9p0.js";import"./chunk-xqnzmr7a.js";import"./chunk-r1xh50b2.js";import"./chunk-13rsd5vv.js";import"./chunk-mh19kwzw.js";import"./chunk-a9a0cwmf.js";import"./chunk-nw3e93y8.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-kn8w69g9.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-2b3fn9xv.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-w2cb8cry.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{c as url,b as openapi,d as listen,e as Server,a as Default};
|
package/bundle/chunk-agv04nt7.js
DELETED
package/bundle/chunk-be7smmar.js
DELETED
package/bundle/chunk-bryx5cx9.js
DELETED
package/bundle/chunk-c13rrw41.js
DELETED
package/bundle/chunk-c2kkv619.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{zf as h}from"./chunk-w9gzfsy7.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-r9w0thdk.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-c5xj1y5v.js
DELETED
package/bundle/chunk-ckpm4dvv.js
DELETED
package/bundle/chunk-ct8twng1.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kg as r}from"./chunk-450fef7h.js";import{wO as o}from"./chunk-r9w0thdk.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-cz5vta94.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-g42krp0z.js")).zodToJsonSchema}catch{throw new r("zod-to-json-schema")}return t(n,e)}}export{m as default};
|
package/bundle/chunk-d38y7bvh.js
DELETED
package/bundle/chunk-d6hxsfm6.js
DELETED
package/bundle/chunk-descb9jz.js
DELETED
package/bundle/chunk-dvr2b9r1.js
DELETED
package/bundle/chunk-ea5fktnn.js
DELETED
package/bundle/chunk-f0t7rryn.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wO as o}from"./chunk-r9w0thdk.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-313zqzc1.js")).default();break;case"zod":a=(await import("./chunk-kg8fcv91.js")).default();break;default:a=(await import("./chunk-m5cfmhwh.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 Ig,d as Jg};
|
package/bundle/chunk-f4mf6tpp.js
DELETED
package/bundle/chunk-f97k17t8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{uf as a,vf as b,wf as c,xf as d,yf as e,zf as f}from"./chunk-w9gzfsy7.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-r9w0thdk.js";export{f as createOpenAICompatible,e as VERSION,d as OpenAICompatibleImageModel,c as OpenAICompatibleEmbeddingModel,b as OpenAICompatibleCompletionLanguageModel,a as OpenAICompatibleChatLanguageModel};
|
package/bundle/chunk-g4ehhdzp.js
DELETED
package/bundle/chunk-gd6qpdjw.js
DELETED
package/bundle/chunk-gehn9fd9.js
DELETED
package/bundle/chunk-h5pnng66.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{eg as a,fg as b}from"./chunk-5zkj5xv9.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{a as start,b as Heap};
|
package/bundle/chunk-hgmqz75r.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{A as g,u as a,v as b,w as c,x as d,y as e,z as f}from"./chunk-3cqrz7g1.js";import"./chunk-a9a0cwmf.js";import"./chunk-nw3e93y8.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-tkrwcjkr.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{e as waitForDependencies,c as layer,f as get,d as defaultLayer,g as TuiConfig,b as Service,a as Info};
|
package/bundle/chunk-hhax4mxw.js
DELETED
package/bundle/chunk-jvkzdap1.js
DELETED
package/bundle/chunk-kf2f3mza.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{wg as a,xg as b,yg as c}from"./chunk-kdj7xvz7.js";import"./chunk-52frd9p0.js";import"./chunk-xqnzmr7a.js";import"./chunk-r1xh50b2.js";import"./chunk-13rsd5vv.js";import"./chunk-mh19kwzw.js";import"./chunk-a9a0cwmf.js";import"./chunk-nw3e93y8.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-kn8w69g9.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-2b3fn9xv.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-w2cb8cry.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{b as run,a as encodeDir,c as ClaudeImport};
|
package/bundle/chunk-kg8fcv91.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Nf as l}from"./chunk-ea5fktnn.js";import"./chunk-vf492zs6.js";import{Ig as q}from"./chunk-f0t7rryn.js";import"./chunk-nfg7nt13.js";import"./chunk-450fef7h.js";import{wO as C}from"./chunk-r9w0thdk.js";function J(){return async(f,b)=>{if("_zod"in f)return l()(f,{components:b.components,options:{io:"input",...b.options}});try{let{createSchema:w}=await import("./chunk-xdteq9bd.js"),{schema:B,components:k}=w(f,{schemaType:"input",...b.options});if(k)b.components.schemas={...b.components.schemas,...k};return B}catch{throw Error(q('Missing dependencies "zod-openapi v4".'))}}}export{J as default};
|
package/bundle/chunk-kgptyf7n.js
DELETED
package/bundle/chunk-kjjjrjnb.js
DELETED
package/bundle/chunk-kn8w69g9.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Or as rZ}from"./chunk-mmjgf680.js";import{cs as X$}from"./chunk-w2cb8cry.js";import{Ns as R,Ws as g}from"./chunk-tr6rdr6h.js";import{ht as f,kt as YZ}from"./chunk-at22twxx.js";import{eH as Z$}from"./chunk-qnvsqnz5.js";import{sO as iZ,uO as XZ,wO as GZ}from"./chunk-r9w0thdk.js";function X1({onRequest:Z,onSseError:$,onSseEvent:X,responseTransformer:J,responseValidator:G,sseDefaultRetryDelay:z,sseMaxRetryAttempts:W,sseMaxRetryDelay:V,sseSleepFn:O,url:Q,...D}){let M,L=O??((N)=>new Promise((j)=>setTimeout(j,N)));return{stream:async function*(){let N=z??3000,j=0,I=D.signal??new AbortController().signal;while(!0){if(I.aborted)break;j++;let F=D.headers instanceof Headers?D.headers:new Headers(D.headers);if(M!==void 0)F.set("Last-Event-ID",M);try{let P={redirect:"follow",...D,body:D.serializedBody,headers:F,signal:I},h=new Request(Q,P);if(Z)h=await Z(Q,P);let S=await(D.fetch??globalThis.fetch)(h);if(!S.ok)throw Error(`SSE failed: ${S.status} ${S.statusText}`);if(!S.body)throw Error("No body in SSE response");let T=S.body.pipeThrough(new TextDecoderStream).getReader(),x="",t$=()=>{try{T.cancel()}catch{}};I.addEventListener("abort",t$);try{while(!0){let{done:TZ,value:wZ}=await T.read();if(TZ)break;x+=wZ,x=x.replace(/\r\n?/g,`
|
|
3
|
-
`);let o$=x.split(`
|
|
4
|
-
|
|
5
|
-
`);x=o$.pop()??"";for(let FZ of o$){let HZ=FZ.split(`
|
|
6
|
-
`),Y$=[],e$;for(let w of HZ)if(w.startsWith("data:"))Y$.push(w.replace(/^data:\s*/,""));else if(w.startsWith("event:"))e$=w.replace(/^event:\s*/,"");else if(w.startsWith("id:"))M=w.replace(/^id:\s*/,"");else if(w.startsWith("retry:")){let Z1=Number.parseInt(w.replace(/^retry:\s*/,""),10);if(!Number.isNaN(Z1))N=Z1}let b,$1=!1;if(Y$.length){let w=Y$.join(`
|
|
7
|
-
`);try{b=JSON.parse(w),$1=!0}catch{b=w}}if($1){if(G)await G(b);if(J)b=await J(b)}if(X?.({data:b,event:e$,id:M,retry:N}),Y$.length)yield b}}}finally{I.removeEventListener("abort",t$),T.releaseLock()}break}catch(P){if($?.(P),W!==void 0&&j>=W)break;let h=Math.min(N*2**(j-1),V??30000);await L(h)}}}()}}var EZ=(Z)=>{switch(Z){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},AZ=(Z)=>{switch(Z){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},PZ=(Z)=>{switch(Z){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},W$=({allowReserved:Z,explode:$,name:X,style:J,value:G})=>{if(!$){let V=(Z?G:G.map((O)=>encodeURIComponent(O))).join(AZ(J));switch(J){case"label":return`.${V}`;case"matrix":return`;${X}=${V}`;case"simple":return V;default:return`${X}=${V}`}}let z=EZ(J),W=G.map((V)=>{if(J==="label"||J==="simple")return Z?V:encodeURIComponent(V);return c({allowReserved:Z,name:X,value:V})}).join(z);return J==="label"||J==="matrix"?z+W:W},c=({allowReserved:Z,name:$,value:X})=>{if(X===void 0||X===null)return"";if(typeof X==="object")throw Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${$}=${Z?X:encodeURIComponent(X)}`},V$=({allowReserved:Z,explode:$,name:X,style:J,value:G,valueOnly:z})=>{if(G instanceof Date)return z?G.toISOString():`${X}=${G.toISOString()}`;if(J!=="deepObject"&&!$){let O=[];Object.entries(G).forEach(([D,M])=>{O=[...O,D,Z?M:encodeURIComponent(M)]});let Q=O.join(",");switch(J){case"form":return`${X}=${Q}`;case"label":return`.${Q}`;case"matrix":return`;${X}=${Q}`;default:return Q}}let W=PZ(J),V=Object.entries(G).map(([O,Q])=>c({allowReserved:Z,name:J==="deepObject"?`${X}[${O}]`:O,value:Q})).join(W);return J==="label"||J==="matrix"?W+V:V};var kZ=/\{[^{}]+\}/g,gZ=({path:Z,url:$})=>{let X=$,J=$.match(kZ);if(J)for(let G of J){let z=!1,W=G.substring(1,G.length-1),V="simple";if(W.endsWith("*"))z=!0,W=W.substring(0,W.length-1);if(W.startsWith("."))W=W.substring(1),V="label";else if(W.startsWith(";"))W=W.substring(1),V="matrix";let O=Z[W];if(O===void 0||O===null)continue;if(Array.isArray(O)){X=X.replace(G,W$({explode:z,name:W,style:V,value:O}));continue}if(typeof O==="object"){X=X.replace(G,V$({explode:z,name:W,style:V,value:O,valueOnly:!0}));continue}if(V==="matrix"){X=X.replace(G,`;${c({name:W,value:O})}`);continue}let Q=encodeURIComponent(V==="label"?`.${O}`:O);X=X.replace(G,Q)}return X},J1=({baseUrl:Z,path:$,query:X,querySerializer:J,url:G})=>{let z=G.startsWith("/")?G:`/${G}`,W=(Z??"")+z;if($)W=gZ({path:$,url:W});let V=X?J(X):"";if(V.startsWith("?"))V=V.substring(1);if(V)W+=`?${V}`;return W};function _$(Z){let $=Z.body!==void 0;if($&&Z.bodySerializer){if("serializedBody"in Z)return Z.serializedBody!==void 0&&Z.serializedBody!==""?Z.serializedBody:null;return Z.body!==""?Z.body:null}if($)return Z.body;return}var G1=async(Z,$)=>{let X=typeof $==="function"?await $(Z):$;if(!X)return;if(Z.scheme==="bearer")return`Bearer ${X}`;if(Z.scheme==="basic")return`Basic ${btoa(X)}`;return X};var q$={bodySerializer:(Z)=>JSON.stringify(Z,($,X)=>typeof X==="bigint"?X.toString():X)};var Y1=({parameters:Z={},...$}={})=>{return(J)=>{let G=[];if(J&&typeof J==="object")for(let z in J){let W=J[z];if(W===void 0||W===null)continue;let V=Z[z]||$;if(Array.isArray(W)){let O=W$({allowReserved:V.allowReserved,explode:!0,name:z,style:"form",value:W,...V.array});if(O)G.push(O)}else if(typeof W==="object"){let O=V$({allowReserved:V.allowReserved,explode:!0,name:z,style:"deepObject",value:W,...V.object});if(O)G.push(O)}else{let O=c({allowReserved:V.allowReserved,name:z,value:W});if(O)G.push(O)}}return G.join("&")}},W1=(Z)=>{if(!Z)return"stream";let $=Z.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((X)=>$.startsWith(X)))return"blob";if($.startsWith("text/"))return"text";return},CZ=(Z,$)=>{if(!$)return!1;if(Z.headers.has($)||Z.query?.[$]||Z.headers.get("Cookie")?.includes(`${$}=`))return!0;return!1};async function V1(Z){for(let $ of Z.security??[]){if(CZ(Z,$.name))continue;let X=await G1($,Z.auth);if(!X)continue;let J=$.name??"Authorization";switch($.in){case"query":if(!Z.query)Z.query={};Z.query[J]=X;break;case"cookie":Z.headers.append("Cookie",`${J}=${X}`);break;case"header":default:Z.headers.set(J,X);break}}}var T$=(Z)=>J1({baseUrl:Z.baseUrl,path:Z.path,query:Z.query,querySerializer:typeof Z.querySerializer==="function"?Z.querySerializer:Y1(Z.querySerializer),url:Z.url}),w$=(Z,$)=>{let X={...Z,...$};if(X.baseUrl?.endsWith("/"))X.baseUrl=X.baseUrl.substring(0,X.baseUrl.length-1);return X.headers=O$(Z.headers,$.headers),X},hZ=(Z)=>{let $=[];return Z.forEach((X,J)=>{$.push([J,X])}),$},O$=(...Z)=>{let $=new Headers;for(let X of Z){if(!X)continue;let J=X instanceof Headers?hZ(X):Object.entries(X);for(let[G,z]of J)if(z===null)$.delete(G);else if(Array.isArray(z))for(let W of z)$.append(G,W);else if(z!==void 0)$.set(G,typeof z==="object"?JSON.stringify(z):z)}return $};class z${fns=[];clear(){this.fns=[]}eject(Z){let $=this.getInterceptorIndex(Z);if(this.fns[$])this.fns[$]=null}exists(Z){let $=this.getInterceptorIndex(Z);return Boolean(this.fns[$])}getInterceptorIndex(Z){if(typeof Z==="number")return this.fns[Z]?Z:-1;return this.fns.indexOf(Z)}update(Z,$){let X=this.getInterceptorIndex(Z);if(this.fns[X])return this.fns[X]=$,Z;return!1}use(Z){return this.fns.push(Z),this.fns.length-1}}var z1=()=>({error:new z$,request:new z$,response:new z$}),bZ=Y1({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),fZ={"Content-Type":"application/json"},s=(Z={})=>({...q$,headers:fZ,parseAs:"auto",querySerializer:bZ,...Z});var a=(Z={})=>{let $=w$(s(),Z),X=()=>({...$}),J=(D)=>{return $=w$($,D),X()},G=z1(),z=async(D)=>{let M={...$,...D,fetch:D.fetch??$.fetch??globalThis.fetch,headers:O$($.headers,D.headers),serializedBody:void 0};if(M.security)await V1(M);if(M.requestValidator)await M.requestValidator(M);if(M.body!==void 0&&M.bodySerializer)M.serializedBody=M.bodySerializer(M.body);if(M.body===void 0||M.serializedBody==="")M.headers.delete("Content-Type");let L=M,K=T$(L);return{opts:L,url:K}},W=async(D)=>{let M=D.throwOnError??$.throwOnError,L=D.responseStyle??$.responseStyle,K,U;try{let{opts:N,url:j}=await z(D),I={redirect:"follow",...N,body:_$(N)};K=new Request(j,I);for(let S of G.request.fns)if(S)K=await S(K,N);let F=N.fetch;U=await F(K);for(let S of G.response.fns)if(S)U=await S(U,K,N);let P={request:K,response:U};if(U.ok){let S=(N.parseAs==="auto"?W1(U.headers.get("Content-Type")):N.parseAs)??"json";if(U.status===204||U.headers.get("Content-Length")==="0"){let x;switch(S){case"arrayBuffer":case"blob":case"text":x=await U[S]();break;case"formData":x=new FormData;break;case"stream":x=U.body;break;case"json":default:x={};break}return N.responseStyle==="data"?x:{data:x,...P}}let T;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":T=await U[S]();break;case"json":{let x=await U.text();T=x?JSON.parse(x):{};break}case"stream":return N.responseStyle==="data"?U.body:{data:U.body,...P}}if(S==="json"){if(N.responseValidator)await N.responseValidator(T);if(N.responseTransformer)T=await N.responseTransformer(T)}return N.responseStyle==="data"?T:{data:T,...P}}let h=await U.text(),R$;try{R$=JSON.parse(h)}catch{}throw R$??h}catch(N){let j=N;for(let I of G.error.fns)if(I)j=await I(j,U,K,D);if(j=j||{},M)throw j;return L==="data"?void 0:{error:j,request:K,response:U}}},V=(D)=>(M)=>W({...M,method:D}),O=(D)=>async(M)=>{let{opts:L,url:K}=await z(M);return X1({...L,body:L.body,method:D,onRequest:async(U,N)=>{let j=new Request(U,N);for(let I of G.request.fns)if(I)j=await I(j,L);return j},serializedBody:_$(L),url:K})};return{buildUrl:(D)=>T$({...$,...D}),connect:V("CONNECT"),delete:V("DELETE"),get:V("GET"),getConfig:X,head:V("HEAD"),interceptors:G,options:V("OPTIONS"),patch:V("PATCH"),post:V("POST"),put:V("PUT"),request:W,setConfig:J,sse:{connect:O("CONNECT"),delete:O("DELETE"),get:O("GET"),head:O("HEAD"),options:O("OPTIONS"),patch:O("PATCH"),post:O("POST"),put:O("PUT"),trace:O("TRACE")},trace:V("TRACE")}};var vZ={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},yZ=Object.entries(vZ),O1=(Z,$)=>{if(!$)$=new Map;for(let X of Z)if("in"in X){if(X.key)$.set(X.key,{in:X.in,map:X.map})}else if("key"in X)$.set(X.key,{map:X.map});else if(X.args)O1(X.args,$);return $},cZ=(Z)=>{for(let[$,X]of Object.entries(Z))if(X&&typeof X==="object"&&!Array.isArray(X)&&!Object.keys(X).length)delete Z[$]},Y=(Z,$)=>{let X={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},J=O1($),G;for(let[z,W]of Z.entries()){if($[z])G=$[z];if(!G)continue;if("in"in G)if(G.key){let V=J.get(G.key),O=V.map||G.key;if(V.in)X[V.in][O]=W}else X.body=W;else for(let[V,O]of Object.entries(W??{})){let Q=J.get(V);if(Q)if(Q.in){let D=Q.map||V;X[Q.in][D]=O}else X[Q.map]=O;else{let D=yZ.find(([M])=>V.startsWith(M));if(D){let[M,L]=D;X[L][V.slice(M.length)]=O}else if("allowExtra"in G&&G.allowExtra){for(let[M,L]of Object.entries(G.allowExtra))if(L){X[M][V]=O;break}}}}}return cZ(X),X};var L1=a(s({baseUrl:"http://localhost:4096"}));class B{client;constructor(Z){this.client=Z?.client??L1}}class D1{defaultKey="default";instances=new Map;get(Z){let $=this.instances.get(Z??this.defaultKey);if(!$)throw Error('No SDK client found. Create one with "new QitQodeClient()" to fix this error.');return $}set(Z,$){this.instances.set($??this.defaultKey,Z)}}class Q1 extends B{get(Z){return(Z?.client??this.client).get({url:"/global/config",...Z})}update(Z,$){let X=Y([Z],[{args:[{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/global/config",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class M1 extends B{scan(Z){return(Z?.client??this.client).get({url:"/global/import/scan",...Z})}run(Z,$){let X=Y([Z],[{args:[{in:"body",key:"sources"},{in:"body",key:"force"}]}]);return($?.client??this.client).post({url:"/global/import/run",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class B1 extends B{health(Z){return(Z?.client??this.client).get({url:"/global/health",...Z})}event(Z){return(Z?.client??this.client).sse.get({url:"/global/event",...Z})}dispose(Z){return(Z?.client??this.client).post({url:"/global/dispose",...Z})}upgrade(Z,$){let X=Y([Z],[{args:[{in:"body",key:"target"}]}]);return($?.client??this.client).post({url:"/global/upgrade",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_config;get config(){return this._config??=new Q1({client:this.client})}_import;get import(){return this._import??=new M1({client:this.client})}}class K1 extends B{remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"}]}]);return($?.client??this.client).delete({url:"/auth/{providerID}",...$,...X})}set(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return($?.client??this.client).put({url:"/auth/{providerID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class N1 extends B{log(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}agents(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/agent",...$,...X})}skills(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/skill",...$,...X})}}class j1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/adaptor",...$,...X})}}class U1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace",...$,...X})}create(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/status",...$,...X})}remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/experimental/workspace/{id}",...$,...X})}sessionRestore(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_adaptor;get adaptor(){return this._adaptor??=new j1({client:this.client})}}class I1 extends B{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console",...$,...X})}listOrgs(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console/orgs",...$,...X})}switchOrg(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class S1 extends B{list(Z,$){let X=Y([Z],[{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",...$,...X})}}class x1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/resource",...$,...X})}}class R1 extends B{_workspace;get workspace(){return this._workspace??=new U1({client:this.client})}_console;get console(){return this._console??=new I1({client:this.client})}_session;get session(){return this._session??=new S1({client:this.client})}_resource;get resource(){return this._resource??=new x1({client:this.client})}}class _1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project",...$,...X})}current(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project/current",...$,...X})}initGit(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/project/git/init",...$,...X})}update(Z,$){let X=Y([Z],[{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}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class q1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty",...$,...X})}create(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/pty/{ptyID}",...$,...X})}get(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}",...$,...X})}update(Z,$){let X=Y([Z],[{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}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}connectToken(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...$,...X})}connect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}/connect",...$,...X})}}class T1 extends B{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/config",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}providers(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config/providers",...$,...X})}}class w1 extends B{ids(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/tool/ids",...$,...X})}list(Z,$){let X=Y([Z],[{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",...$,...X})}}class F1 extends B{remove(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return($?.client??this.client).delete({url:"/experimental/worktree",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/worktree",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reset(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree/reset",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class H1 extends B{list(Z,$){let X=Y([Z],[{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",...$,...X})}create(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/status",...$,...X})}delete(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}",...$,...X})}get(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}",...$,...X})}update(Z,$){let X=Y([Z],[{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}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}children(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/children",...$,...X})}init(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}fork(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}abort(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/abort",...$,...X})}actors(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/actors",...$,...X})}todo(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/todo",...$,...X})}task(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/task",...$,...X})}unshare(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/share",...$,...X})}share(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/share",...$,...X})}diff(Z,$){let X=Y([Z],[{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",...$,...X})}summarize(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}revert(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}unrevert(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/unrevert",...$,...X})}messages(Z,$){let X=Y([Z],[{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",...$,...X})}prompt(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}deleteMessage(Z,$){let X=Y([Z],[{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}",...$,...X})}message(Z,$){let X=Y([Z],[{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}",...$,...X})}promptAsync(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}command(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}predict(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/predict",...$,...X})}shell(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class E1 extends B{delete(Z,$){let X=Y([Z],[{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}",...$,...X})}update(Z,$){let X=Y([Z],[{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}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class A1 extends B{respond(Z,$){let X=Y([Z],[{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}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reply(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/permission",...$,...X})}}class P1 extends B{balance(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/qredits/balance",...$,...X})}}class k1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return($?.client??this.client).get({url:"/workflows",...$,...X})}resume(Z,$){let X=Y([Z],[{args:[{in:"path",key:"runID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/workflows/{runID}/resume",...$,...X})}}class g1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question",...$,...X})}neverAsk(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question/never-ask",...$,...X})}setNeverAsk(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return($?.client??this.client).post({url:"/question/never-ask",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reply(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reject(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reject",...$,...X})}}class C1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/bash-interactive",...$,...X})}reply(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class h1 extends B{_interactive;get interactive(){return this._interactive??=new C1({client:this.client})}}class b1 extends B{authorize(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}callback(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class f1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider",...$,...X})}auth(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider/auth",...$,...X})}_oauth;get oauth(){return this._oauth??=new b1({client:this.client})}}class v1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/sync/history",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class y1 extends B{start(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/sync/start",...$,...X})}replay(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_history;get history(){return this._history??=new v1({client:this.client})}}class c1 extends B{text(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return($?.client??this.client).get({url:"/find",...$,...X})}files(Z,$){let X=Y([Z],[{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",...$,...X})}symbols(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return($?.client??this.client).get({url:"/find/symbol",...$,...X})}}class u1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file",...$,...X})}read(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file/content",...$,...X})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/file/status",...$,...X})}}class d1 extends B{subscribe(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).sse.get({url:"/event",...$,...X})}}class m1 extends B{remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/mcp/{name}/auth",...$,...X})}start(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth",...$,...X})}callback(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}authenticate(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...$,...X})}}class l1 extends B{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/mcp",...$,...X})}add(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return($?.client??this.client).post({url:"/mcp",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}connect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/connect",...$,...X})}disconnect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/disconnect",...$,...X})}_auth;get auth(){return this._auth??=new m1({client:this.client})}}class p1 extends B{next(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/tui/control/next",...$,...X})}response(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/control/response",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class n1 extends B{appendPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return($?.client??this.client).post({url:"/tui/append-prompt",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}openHelp(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-help",...$,...X})}openSessions(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-sessions",...$,...X})}openThemes(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-themes",...$,...X})}openModels(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-models",...$,...X})}submitPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/submit-prompt",...$,...X})}clearPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/clear-prompt",...$,...X})}executeCommand(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/tui/execute-command",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}showToast(Z,$){let X=Y([Z],[{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",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}publish(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/publish",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}selectSession(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/tui/select-session",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_control;get control(){return this._control??=new p1({client:this.client})}}class i1 extends B{dispose(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/instance/dispose",...$,...X})}}class r1 extends B{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/path",...$,...X})}}class s1 extends B{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/vcs",...$,...X})}diff(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"}]}]);return($?.client??this.client).get({url:"/vcs/diff",...$,...X})}}class a1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/command",...$,...X})}}class t1 extends B{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/lsp",...$,...X})}}class o1 extends B{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/formatter",...$,...X})}}class L$ extends B{static __registry=new D1;constructor(Z){super(Z);L$.__registry.set(this,Z?.key)}_global;get global(){return this._global??=new B1({client:this.client})}_auth;get auth(){return this._auth??=new K1({client:this.client})}_app;get app(){return this._app??=new N1({client:this.client})}_experimental;get experimental(){return this._experimental??=new R1({client:this.client})}_project;get project(){return this._project??=new _1({client:this.client})}_pty;get pty(){return this._pty??=new q1({client:this.client})}_config;get config(){return this._config??=new T1({client:this.client})}_tool;get tool(){return this._tool??=new w1({client:this.client})}_worktree;get worktree(){return this._worktree??=new F1({client:this.client})}_session;get session(){return this._session??=new H1({client:this.client})}_part;get part(){return this._part??=new E1({client:this.client})}_permission;get permission(){return this._permission??=new A1({client:this.client})}_qredits;get qredits(){return this._qredits??=new P1({client:this.client})}_workflow;get workflow(){return this._workflow??=new k1({client:this.client})}_question;get question(){return this._question??=new g1({client:this.client})}_bash;get bash(){return this._bash??=new h1({client:this.client})}_provider;get provider(){return this._provider??=new f1({client:this.client})}_sync;get sync(){return this._sync??=new y1({client:this.client})}_find;get find(){return this._find??=new c1({client:this.client})}_file;get file(){return this._file??=new u1({client:this.client})}_event;get event(){return this._event??=new d1({client:this.client})}_mcp;get mcp(){return this._mcp??=new l1({client:this.client})}_tui;get tui(){return this._tui??=new n1({client:this.client})}_instance;get instance(){return this._instance??=new i1({client:this.client})}_path;get path(){return this._path??=new r1({client:this.client})}_vcs;get vcs(){return this._vcs??=new s1({client:this.client})}_command;get command(){return this._command??=new a1({client:this.client})}_lsp;get lsp(){return this._lsp??=new t1({client:this.client})}_formatter;get formatter(){return this._formatter??=new o1({client:this.client})}}function e1(Z){if(!Z?.fetch)Z={...Z,fetch:(X)=>{return X.timeout=!1,fetch(X)}};if(Z?.directory)Z.headers={...Z.headers,"x-qitqode-directory":encodeURIComponent(Z.directory)};return Z}function uZ(Z,$,X){if(!Z)return;if(!$)return Z;if(Z===$)return $;if(X&&Z===X($))return $;return Z}function dZ(Z,$){if(Z.method!=="GET"&&Z.method!=="HEAD")return Z;let X=new URL(Z.url),J=!1;for(let[z,W]of[["x-qitqode-directory","directory"],["x-qitqode-workspace","workspace"]]){let V=uZ(Z.headers.get(z),W==="directory"?$.directory:$.workspace,W==="directory"?encodeURIComponent:void 0);if(!V)continue;if(!X.searchParams.has(W))X.searchParams.set(W,V);J=!0}if(!J)return Z;let G=new Request(X,Z);return G.headers.delete("x-qitqode-directory"),G.headers.delete("x-qitqode-workspace"),G}function mZ(Z){if(Z=e1(Z),Z?.experimental_workspaceID)Z.headers={...Z.headers,"x-qitqode-workspace":Z.experimental_workspaceID};let $=a(Z);return $.interceptors.request.use((X)=>dZ(X,{directory:Z?.directory,workspace:Z?.experimental_workspaceID})),$.interceptors.response.use((X)=>{if(X.headers.get("content-type")==="text/html")throw Error("Request is not supported by this version of QitQode Server (Server responded with text/html)");return X}),new L$({client:$})}class D$ extends Error{name="BackendCallError";status;fn;constructor(Z,$,X){super(`backend function call failed (${Z}): ${$}${X?` ${X}`:""}`);this.status=Z,this.fn=$}}class Q$ extends Error{name="BackendAuthError";status;constructor(Z,$){super(`backend authentication rejected (${Z})${$?`: ${$}`:""}`);this.status=Z}}function lZ(Z){if(!Z)return!1;try{let $=JSON.parse(Z);if($&&$.code==="ERR_GATEWAY_REQUIRED")return!0}catch{}return Z.includes("ERR_GATEWAY_REQUIRED")}function $Z(Z){let $=Z.fetch??fetch,X=Z.baseUrl.replace(/\/+$/,"");async function J(G,z={}){let W=new Headers(Z.headers);W.set("content-type","application/json");let V=await $(`${X}/${G}`,{method:"POST",headers:W,body:JSON.stringify(z)});if(!V.ok){let Q=await V.text().catch(()=>"");if((V.status===401||V.status===403)&&!lZ(Q))throw new Q$(V.status,Q||void 0);throw new D$(V.status,G,Q||void 0)}let O=await V.json();if(!O.success)throw Error(`backend function call returned failure: ${G} \u2014 ${O.error??"unknown error"}`);return O.data}return{promptNames:()=>J("promptNames"),prompt:(G)=>J("prompt",{name:G}),tiers:()=>J("tiers"),workflowSummaries:()=>J("workflowSummaries"),workflowSpec:(G)=>J("workflowSpec",{name:G}),workflowSpecs:()=>J("workflowSpecs"),bashArity:()=>J("bashArity"),toolManifest:()=>J("toolManifest"),toolDescription:(G)=>J("toolDescription",{id:G})}}var sZ=iZ(rZ(),1);import W0 from"path";import V0 from"crypto";var k={};XZ(k,{setKeySequenceForTest:()=>J0,setKeyForTest:()=>X0,resetForTest:()=>Z0,isEnvelope:()=>oZ,encryptionKey:()=>$0,encrypt:()=>G0,decrypt:()=>Y0,AuthKeyring:()=>k});import M$ from"crypto";import{execFile as tZ}from"child_process";var u="qitqode",t="auth-encryption-key",JZ="__qitqode_encrypted__";function oZ(Z){return typeof Z==="object"&&Z!==null&&Z[JZ]===1&&Z.alg==="aes-256-gcm"}function d(Z,$,X){return new Promise((J)=>{let G=tZ(Z,$,{timeout:5000},(z,W)=>{let V=z?z.code??1:0;J({code:typeof V==="number"?V:1,stdout:W??""})});if(X!==void 0)G.stdin?.write(X),G.stdin?.end()})}async function ZZ(Z,$){return(await d(Z,$)).code===0}async function eZ(){if(process.env.QITQODE_DISABLE_KEYRING)return;if(process.platform==="darwin"){if(!await ZZ("security",["help"]))return;return{async get(){let Z=await d("security",["find-generic-password","-s",u,"-a",t,"-w"]);return Z.code===0?Z.stdout.trim():void 0},async set(Z){return(await d("security",["add-generic-password","-U","-s",u,"-a",t,"-w",Z])).code===0}}}if(process.platform==="linux"){if(!await ZZ("secret-tool",["search","service",u])){let Z=await d("secret-tool",["lookup","service",u,"account",t]);if(Z.code!==0&&Z.code!==1)return}return{async get(){let Z=await d("secret-tool",["lookup","service",u,"account",t]);return Z.code===0&&Z.stdout.trim()?Z.stdout.trim():void 0},async set(Z){return(await d("secret-tool",["store","--label","QitQode auth encryption key","service",u,"account",t],Z)).code===0}}}return}var B$,m;function $0(){if(m!==void 0&&m.length>0)return Promise.resolve(m.shift());return B$??=(async()=>{let Z=await eZ();if(!Z)return;let $=await Z.get();if($){let X=Buffer.from($,"base64");if(X.length===32)return X;return}return f.withLock("auth-keyring-init",async()=>{let X=await Z.get();if(X){let W=Buffer.from(X,"base64");return W.length===32?W:void 0}let J=M$.randomBytes(32);if(!await Z.set(J.toString("base64")))return;let G=await Z.get();if(!G)return;let z=Buffer.from(G,"base64");return z.length===32?z:void 0})})(),B$}function Z0(){B$=void 0,m=void 0}function X0(Z){B$=Promise.resolve(Z),m=void 0}function J0(Z){m=[...Z]}function G0(Z,$){let X=M$.randomBytes(12),J=M$.createCipheriv("aes-256-gcm",$,X),G=Buffer.concat([J.update(Z,"utf8"),J.final()]);return{[JZ]:1,alg:"aes-256-gcm",iv:X.toString("base64"),tag:J.getAuthTag().toString("base64"),data:G.toString("base64")}}function Y0(Z,$){let X=M$.createDecipheriv("aes-256-gcm",$,Buffer.from(Z.iv,"base64"));return X.setAuthTag(Buffer.from(Z.tag,"base64")),Buffer.concat([X.update(Buffer.from(Z.data,"base64")),X.final()]).toString("utf8")}var z0="The server rejected QITQODE_KEY and there is no signed-in Forgewise session on this machine to repair it with. Replace QITQODE_KEY, or run `qitqode auth login`.",F$=`[qitqode] ${z0}`,l="forgewise";function K$(Z){if(Z?.type!=="api"||typeof Z.key!=="string")return;let X=Z.metadata?.method==="api-key"?"api-key":"sso";return{key:Z.key,method:X}}function A(Z){if(!Z)return"none";return V0.createHash("sha256").update(`${Z.method}:${Z.key}`).digest("hex").slice(0,16)}var N$;function WZ(Z){N$=Z}async function j$(){let{readFile:Z}=await import("fs/promises"),$=JSON.parse(await Z(VZ(),"utf8"));if(!k.isEnvelope($))return{data:$,key:void 0};let X=await k.encryptionKey();if(!X)throw Error("auth.json is encrypted but the OS keyring is unavailable");return{data:JSON.parse(k.decrypt($,X)),key:X}}async function H$(Z){let{writeFile:$,chmod:X,rename:J}=await import("fs/promises"),G=Z.key?k.encrypt(JSON.stringify(Z.data),Z.key):Z.data,z=VZ(),W=z+".tmp";await $(W,JSON.stringify(G,null,2),"utf8"),await X(W,384),await J(W,z)}function VZ(){return W0.join(YZ.Path.data,"auth.json")}async function p(){if(N$)return N$;if(process.env.QITQODE_KEY)return{key:process.env.QITQODE_KEY,method:"api-key"};try{let Z=await f.withLock("auth-file",async()=>{let{data:$}=await j$();return K$($?.[l])});if(Z)return Z}catch{}if(process.env.QITQODE_AUTH_CONTENT)try{let Z=JSON.parse(process.env.QITQODE_AUTH_CONTENT);return K$(Z?.forgewise)}catch{}return}async function U$(){if(N$=void 0,process.env.QITQODE_KEY)return;await f.withLock("auth-file",async()=>{let Z=await j$();if(!(l in Z.data))return;delete Z.data[l],await H$(Z)})}function o(Z){return Z.method==="api-key"?{"x-api-key":Z.key}:{authorization:`Bearer ${Z.key}`}}var I$=g.create({service:"auth.forgewise.checkout"}),O0="qitqode",L0=5000;async function E$(Z){let X=`${new URL(R.QITQODE_BACKEND_URL).origin}/auth/keys/checkout`;try{let J=await fetch(X,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${Z}`},body:JSON.stringify({app:O0}),signal:AbortSignal.timeout(L0)});if(!J.ok)return I$.warn("API key checkout returned non-200; falling back to Bearer credential",{status:J.status,url:X}),null;let G=await J.json();if(typeof G?.key!=="string"||!G.key)return I$.warn("API key checkout response missing key field; falling back to Bearer credential",{url:X}),null;return I$.info("API key checkout succeeded; credential upgraded to api-key method",{url:X}),G.key}catch(J){return I$.warn("API key checkout failed; falling back to Bearer credential",{url:X,error:J instanceof Error?J.message:String(J)}),null}}var a$={};XZ(a$,{toolDescriptionEffect:()=>q0,resolveWorkflowSummaries:()=>x0,resolveWorkflowSpec:()=>R0,resolveToolManifest:()=>SZ,resolveToolDescription:()=>xZ,resolveTierRatings:()=>P0,resolveSubmitBatch:()=>u0,resolveRetrieveBatch:()=>d0,resolvePrompt:()=>jZ,resolveListTiers:()=>A0,resolveGetHistory:()=>C0,resolveGenerateInlineComments:()=>v0,resolveGenerateDocumentation:()=>f0,resolveForgewiseConfig:()=>s$,resolveFetchQreditsBalance:()=>h0,resolveCompressTrajectorySafe:()=>k0,resolveChatCompletion:()=>c0,resolveChatBoolean:()=>y0,resolveBraveSearch:()=>g0,resolveBashArity:()=>_0,resolveAnalyzeCodeForIssues:()=>b0,resolveAgentPrompt:()=>I0,remoteStats:()=>H,parseSseChatCompletion:()=>RZ,normalizeChatCompletionPayload:()=>_Z,isBackendBillingError:()=>K0,clearRemoteCache:()=>U0,beginIdempotentAttempt:()=>NZ,BackendRemote:()=>a$,BackendRateLimitError:()=>G$,BackendInsufficientBalanceError:()=>J$,BackendAuthRejectedError:()=>r,BackendAccountNotLinkedError:()=>l$});import{createHash as KZ,randomUUID as BZ}from"crypto";import A$ from"crypto";class q extends Error{cause;constructor(Z,$){super(Z);this.name="ForgewiseError",this.cause=$}}class n extends q{constructor(Z="Device flow is not supported by this issuer."){super(Z);this.name="DeviceFlowUnsupportedError"}}function zZ(Z,$,X){if(Z>=200&&Z<300)return{kind:"success"};let J=$?.error??"";if(J==="authorization_pending")return{kind:"wait",intervalMs:X};if(J==="slow_down")return{kind:"wait",intervalMs:X+5000};if(J==="access_denied")return{kind:"fatal",message:"Sign-in was denied in the browser."};if(J==="expired_token")return{kind:"fatal",message:"The sign-in code expired before it was approved. Try again."};return{kind:"fatal",message:`Device sign-in failed: ${$?.error_description||J||`HTTP ${Z}`}`}}var LZ="openid profile email",P$=(Z)=>Z.toString("base64url");function N9(){let Z=P$(A$.randomBytes(32)),$=P$(A$.createHash("sha256").update(Z).digest()),X=P$(A$.randomBytes(16));return{verifier:Z,challenge:$,state:X}}function j9(Z){let $=new URL(`${Z.issuer}/api/oauth/authorize`);return $.searchParams.set("response_type","code"),$.searchParams.set("client_id",Z.clientId),$.searchParams.set("redirect_uri",Z.redirectUri),$.searchParams.set("scope",LZ),$.searchParams.set("state",Z.state),$.searchParams.set("code_challenge",Z.challenge),$.searchParams.set("code_challenge_method","S256"),$.toString()}async function k$(Z,$){let X=await fetch(`${Z}/api/oauth/userinfo`,{headers:{Authorization:`Bearer ${$.access_token}`}});if(!X.ok)throw new q(`Failed to fetch user profile (${X.status})`);let J=await X.json();if(!J.sub)throw new q("Userinfo response is missing required 'sub' field \u2014 the server returned an invalid user profile.");return{sub:J.sub,name:J.name??"",email:J.email??"",access_token:$.access_token,expires_at:Date.now()+($.expires_in??3600)*1000,...$.refresh_token?{refresh_token:$.refresh_token}:{}}}async function U9(Z){let $=await fetch(`${Z.issuer}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:Z.code,redirect_uri:Z.redirectUri,client_id:Z.clientId,code_verifier:Z.verifier}).toString(),signal:Z.signal??null});if(!$.ok){let J=await $.text().catch(()=>"");throw new q(`Token exchange failed (${$.status}): ${J}`)}let X=await $.json();return k$(Z.issuer,X)}async function I9(Z,$,X=5000){let J=new AbortController,G=setTimeout(()=>J.abort(),X);try{let z=await fetch(`${Z}/api/oauth/userinfo`,{headers:{Authorization:`Bearer ${$}`},signal:J.signal});if(z.status===401||z.status===403)return!1;if(!z.ok)return null;return!0}catch{return null}finally{clearTimeout(G)}}async function g$(Z){let{issuer:$,clientId:X}=await OZ(),J;try{J=await fetch(`${$}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"refresh_token",client_id:X,refresh_token:Z}).toString()})}catch(z){throw new q(`Could not reach the sign-in server to refresh the session: ${z instanceof Error?z.message:String(z)}`,z)}if(!J.ok){let z=await J.json().catch(()=>{return});if(z?.error==="invalid_grant")return"invalid_grant";throw new q(`Token refresh failed (${J.status}): ${z?.error??""}`)}let G=await J.json();return{issuer:$,...G}}async function S9(Z){let $=await g$(Z);if($==="invalid_grant")return"invalid_grant";return k$($.issuer,$)}async function x9(Z){let $;try{$=await fetch(`${Z.issuer}/api/oauth/device_authorization`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:Z.clientId,scope:LZ}).toString(),signal:Z.signal??null})}catch{if(Z.signal?.aborted)throw new q("Login cancelled");throw new n}if($.status===404||$.status===405||$.status===501)throw new n;if(!$.ok){let J=await $.text().catch(()=>"");throw new q(`Device authorization failed (${$.status}): ${J}`)}let X;try{X=await $.json()}catch{throw new n}if(!X.device_code||!X.user_code||!X.verification_uri)throw new n;return{deviceCode:X.device_code,info:{userCode:X.user_code,verificationUri:X.verification_uri,verificationUriComplete:X.verification_uri_complete,expiresAt:Date.now()+(X.expires_in??900)*1000},intervalMs:Math.max(1,X.interval??5)*1000}}async function R9(Z){let $;try{$=await fetch(`${Z.issuer}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:Z.deviceCode,client_id:Z.clientId}).toString(),signal:Z.signal??null})}catch{if(Z.signal?.aborted)throw new q("Login cancelled");return{kind:"wait",intervalMs:Z.currentIntervalMs}}let X;try{X=await $.json()}catch{X=void 0}let J=zZ($.status,X,Z.currentIntervalMs);if(J.kind==="success"){if(!X?.access_token)throw new q("Token endpoint returned success without an access_token.");return{kind:"success",profile:await k$(Z.issuer,{access_token:X.access_token,expires_in:X.expires_in})}}if(J.kind==="fatal")throw new q(J.message);return{kind:"wait",intervalMs:J.intervalMs}}function DZ(Z,$){let X={sub:Z.sub,name:Z.name,email:Z.email,expires_at:String(Z.expires_at),...$.rotateRefreshToken&&Z.refresh_token?{refresh_token:Z.refresh_token}:{}};return{type:"api",key:Z.access_token,metadata:X}}function C$(Z,$){return{type:"api",key:$,metadata:{method:"api-key",sub:Z.sub,name:Z.name,email:Z.email,access_token:Z.access_token,access_token_expires_at:String(Z.expires_at),...Z.refresh_token?{refresh_token:Z.refresh_token}:{}}}}var i=g.create({service:"auth.recovery"}),D0=30000,Q0=5,e,$$=0,b$=new Set;async function MZ(Z){if(b$.has(A(Z)))return{kind:"definitive",reason:"the stored sign-in has already been established as no longer valid"};if(e)return e;if($$>=Q0)return i.warn("recovery budget exhausted for this process; reporting inconclusive",{attempts:$$}),{kind:"inconclusive",reason:`automatic sign-in repair was attempted ${$$} times in this session without success`};return e=M0(Z).finally(()=>{e=void 0}),e}function QZ(){$$++}async function M0(Z){let $=A(Z),X=process.env.QITQODE_KEY,J=!!X&&Z?.key===X;i.info("attempting automatic credential recovery",{rejected:$,source:J?"env":"file",attempt:$$});let G;try{G=await f.withLock("auth-file",()=>B0(Z,$,J))}catch(z){let W=z instanceof Error?z.message:String(z);return i.warn("credential recovery could not run",{error:W}),{kind:"inconclusive",reason:`automatic sign-in repair could not run (${W})`}}if(G.kind==="recovered"){if(J)WZ(G.credential);i.info("credential recovered",{from:$,to:A(G.credential),via:G.reason})}else if(G.kind==="definitive")await U$().catch(()=>{}),b$.add($),b$.add(A(void 0)),i.info("credential rejection is definitive; stored credential cleared",{reason:G.reason});return G}async function B0(Z,$,X){let J;try{J=await j$()}catch(L){if(L?.code==="ENOENT")return{kind:"definitive",reason:"no stored sign-in to repair"};let K=L instanceof Error?L.message:String(L);return i.warn("stored sign-in could not be read; treating the rejection as inconclusive",{error:K}),{kind:"inconclusive",reason:`the stored sign-in could not be read (${K})`}}let G=J.data[l],z=K$(G);if(!X&&z&&A(z)!==$)return{kind:"recovered",credential:z,reason:"adopted a credential rotated by another process"};let W=G?.metadata??{},V=(L)=>typeof L==="string"&&L?L:void 0,O=V(W.refresh_token),Q=V(W.access_token)??(z?.method==="sso"?z.key:void 0),D=Number(W.access_token_expires_at??W.expires_at??0),M={sub:V(W.sub)??"",name:V(W.name)??"",email:V(W.email)??""};if(Q&&Q!==Z?.key&&D>Date.now()+D0){QZ();let L=await E$(Q);if(L){let K={...M,access_token:Q,expires_at:D,...O?{refresh_token:O}:{}};return await h$(J,C$(K,L)),{kind:"recovered",credential:{key:L,method:"api-key"},reason:"minted a key from the SSO session"}}}if(O){let L;try{QZ(),L=await g$(O)}catch(j){return{kind:"inconclusive",reason:`could not reach the sign-in server (${j instanceof Error?j.message:String(j)})`}}if(L==="invalid_grant")return{kind:"definitive",reason:"the stored sign-in was revoked or has expired"};let K={...M,access_token:L.access_token,expires_at:Date.now()+(L.expires_in??3600)*1000,...L.refresh_token?{refresh_token:L.refresh_token}:{}},U=DZ(K,{rotateRefreshToken:!0});await h$(J,U);let N=await E$(K.access_token);if(N)return await h$(J,C$(K,N)),{kind:"recovered",credential:{key:N,method:"api-key"},reason:"refreshed the sign-in and minted a new key"};return{kind:"recovered",credential:{key:K.access_token,method:"sso"},reason:"refreshed the sign-in"}}return{kind:"definitive",reason:"the stored sign-in has no session left to renew"}}async function h$(Z,$){Z.data[l]=$,await H$(Z)}var _=g.create({service:"backend.remote"}),S$=30000,m$=5000,C=new Map,H={failures:0,authRejections:0,missingPrompts:0,missingToolDescriptions:0},f$=new Set,v$=new Set;class r extends Error{name="BackendAuthRejectedError";constructor(Z){super(X$.copy().invalidCredentials(Z))}}class J$ extends Error{name="BackendInsufficientBalanceError";status=402;code;constructor(Z,$){super(X$.copy().insufficientBalance(Z));this.code=$}}class G$ extends Error{name="BackendRateLimitError";status=429;retryAfterMs;constructor(Z,$){let X=Z!==void 0?` Retry in about ${Math.max(1,Math.round(Z/1000))}s.`:"";super(X$.copy().rateLimit+X+($?` (${$})`:""));this.retryAfterMs=Z}}class l$ extends Error{name="BackendAccountNotLinkedError";status=409;constructor(Z){super(X$.copy().accountNotLinked(Z))}}function K0(Z){return Z instanceof J$||Z instanceof G$}var N0=600000,v=new Map;function j0(Z,$){try{return KZ("sha256").update(`${Z}\x00${JSON.stringify($)}`).digest("hex").slice(0,16)}catch{return"unscoped"}}function NZ(Z,$,X){let J=Date.now(),G;try{G=KZ("sha256").update(`${Z}\x00${$}\x00${JSON.stringify(X)??""}`).digest("hex")}catch{return{key:`${$}-${BZ()}`,settle:()=>{}}}let z=()=>v.delete(G),W=v.get(G);if(W&&W.expires>J)return{key:W.key,settle:z};if(v.size>256){for(let[O,Q]of v)if(Q.expires<=J)v.delete(O)}let V=`${$}-${G.slice(0,16)}-${BZ()}`;return v.set(G,{key:V,expires:J+N0}),{key:V,settle:z}}function U0(){C.clear(),u$.clear(),y$.clear(),f$.clear(),v$.clear(),v.clear()}async function p$(Z){H.authRejections++;let{credential:$,status:X,label:J,baseUrl:G}=Z;if(!Z.repairSpent){let z=A($),W=await MZ($);if(W.kind==="recovered"&&A(W.credential)!==z)return _.info("backend rejected the credential; repaired it automatically and retrying",{label:J,baseUrl:G,status:X,via:W.reason}),{retry:!0};if(W.kind==="inconclusive")return _.warn("backend rejected the credential but repair was inconclusive; leaving it in place",{label:J,baseUrl:G,status:X,reason:W.reason}),{retry:!1,error:Error(`Backend auth check could not complete: ${W.reason}`)}}if(await U$().catch(()=>{}),_.warn("backend rejected the credential and it could not be repaired; prompting re-auth",{label:J,baseUrl:G,status:X}),process.env.QITQODE_KEY)_.error(F$),console.error(F$);return{retry:!1,error:new r(`HTTP ${X}`)}}async function y(Z,$){let X=R.QITQODE_BACKEND_URL,J=Date.now(),G=`${X}::${Z}`,z=C.get(G);if(z&&z.expires>J)return z.value;let W=!1;for(;;)try{let V=await p(),O=V?o(V):void 0,D=await $($Z({baseUrl:X,headers:O,fetch:(M,L)=>fetch(M,{...L,signal:L?.signal??AbortSignal.timeout(m$)})}));return C.set(G,{value:D,expires:Date.now()+S$}),D}catch(V){if(V instanceof Q$){let O=await p$({credential:await p(),status:V.status,label:Z,baseUrl:X,repairSpent:W});if(W=!0,O.retry)continue;throw O.error}throw H.failures++,_.warn("backend request failed; surfacing error",{cacheKey:Z,baseUrl:X,error:V instanceof Error?V.message:String(V)}),V}}async function jZ(Z){if(Z.indexOf("/")<=0)return;return y(`prompt:${Z}`,($)=>$.prompt(Z).then((X)=>X??void 0))}async function I0(Z){let $=`agent/${Z}`,X=await jZ($);if(X===void 0||X===""){if(!f$.has(Z))f$.add(Z),H.missingPrompts++,_.warn("backend served no content for agent prompt; running with an empty prompt",{prompt:$,baseUrl:R.QITQODE_BACKEND_URL,missingPrompts:H.missingPrompts})}return X}var y$=new Map;function c$(Z){let $=y$.get(Z);if(!$)$={unsupported:!1},y$.set(Z,$);return $}async function S0(){let Z=c$(R.QITQODE_BACKEND_URL);if(Z.inFlight)return Z.inFlight;let $=y("workflow.catalog",(X)=>X.workflowSpecs().then((J)=>J??void 0)).then((X)=>{let J=new Map;for(let G of X??[])if(G&&typeof G.name==="string"&&typeof G.script==="string")J.set(G.name,G);return J});Z.inFlight=$;try{return await $}finally{if(Z.inFlight===$)Z.inFlight=void 0}}async function UZ(Z,$){let X=R.QITQODE_BACKEND_URL;if(!c$(X).unsupported)try{return Z(await S0())}catch(J){if(!IZ(J))throw J;c$(X).unsupported=!0,_.warn("backend has no workflowSpecs route; falling back to per-name workflow lookups",{baseUrl:X})}return $()}async function x0(){return UZ((Z)=>[...Z.values()].map(({script:$,...X})=>X),()=>y("workflow.list",(Z)=>Z.workflowSummaries()))}async function R0(Z){return UZ(($)=>$.get(Z),()=>y(`workflow.get:${Z}`,($)=>$.workflowSpec(Z).then((X)=>X??void 0)))}async function _0(){return y("permission.arity",(Z)=>Z.bashArity())}var u$=new Map;function d$(Z){let $=u$.get(Z);if(!$)$={unsupported:!1},u$.set(Z,$);return $}function IZ(Z){return Z instanceof D$&&(Z.status===404||Z.status===501)}async function SZ(){let Z=d$(R.QITQODE_BACKEND_URL);if(Z.inFlight)return Z.inFlight;let $=y("tool.manifest",(X)=>X.toolManifest().then((J)=>J??void 0)).then((X)=>{let J=new Map;for(let G of X??[])if(G&&typeof G.id==="string"&&typeof G.description==="string")J.set(G.id,G.description);return J});Z.inFlight=$;try{return await $}finally{if(Z.inFlight===$)Z.inFlight=void 0}}async function xZ(Z){let $=R.QITQODE_BACKEND_URL,X;if(!d$($).unsupported)try{X=(await SZ()).get(Z)}catch(J){if(!IZ(J))throw J;d$($).unsupported=!0,_.warn("backend has no toolManifest route; falling back to one request per tool description",{baseUrl:$})}if(X===void 0||X==="")X=await y(`tool.description:${Z}`,(J)=>J.toolDescription(Z).then((G)=>G??void 0));if(X===void 0||X===""){if(!v$.has(Z))v$.add(Z),H.missingToolDescriptions++,_.warn("backend served no content for tool description; running with an empty description",{tool:Z,baseUrl:R.QITQODE_BACKEND_URL,missingToolDescriptions:H.missingToolDescriptions})}return X}function q0(Z){return Z$.promise(()=>xZ(Z)).pipe(Z$.catchDefect(($)=>$ instanceof r?Z$.succeed(void 0):Z$.die($)))}function T0(Z){if(!Z)return{};try{let $=JSON.parse(Z);if($&&typeof $==="object")return{code:typeof $.error==="string"?$.error:void 0,detail:typeof $.message==="string"?$.message:void 0}}catch{}return{detail:Z.slice(0,300)}}function w0(Z){let $=Z.headers?.get?.("retry-after-ms");if($){let J=Number.parseFloat($);if(!Number.isNaN(J))return J}let X=Z.headers?.get?.("retry-after");if(X){let J=Number.parseFloat(X);if(!Number.isNaN(J))return Math.ceil(J*1000);let G=Date.parse(X)-Date.now();if(!Number.isNaN(G)&&G>0)return Math.ceil(G)}return}async function n$(Z,$){let X=await Z.text().catch(()=>""),{code:J,detail:G}=T0(X);if(Z.status===402)return new J$(G,J);if(Z.status===409)return new l$(G);if(Z.status===429)return new G$(w0(Z),G);let z=G?`: ${G}`:J?`: ${J}`:"";return Error(`${$} failed: ${Z.status}${z}`)}function F0(Z){if(Z===null||typeof Z!=="object")return Z;if(Z.data!==void 0)return Z.data;let $={};for(let[X,J]of Object.entries(Z)){if(X==="success"||X==="data"||X==="error"||X==="message")continue;$[X]=J}return Object.keys($).length>0?$:void 0}function i$(Z,$){let{error:X,message:J}=Z;if(X==="insufficient_balance")return new J$(J,X);if(X==="rate_limited"||X==="too_many_requests")return new G$(void 0,J);return Error(`${$} returned failure: ${X??"unknown error"}${J?` \u2014 ${J}`:""}`)}function RZ(Z){let $="",X,J=!1;for(let G of Z.split(/\r?\n/)){if(!G.startsWith("data:"))continue;let z=G.slice(5).trim();if(!z)continue;if(z==="[DONE]"){J=!0;break}if(z.startsWith("[ERROR]"))throw Error(`chat completion stream error: ${z.slice(7).trim()||"unknown"}`);let W;try{W=JSON.parse(z)}catch{continue}if(W===null||typeof W!=="object")continue;let V=W,O=V.choices?.[0],Q=O?.delta?.content??O?.message?.content;if(typeof Q==="string")$+=Q;if(V.usage&&typeof V.usage==="object")X={promptTokens:V.usage.prompt_tokens,completionTokens:V.usage.completion_tokens,totalTokens:V.usage.total_tokens}}if(!J)throw Error("chat completion stream truncated: no [DONE] terminator");if(!$)throw Error("chat completion stream produced no content");return X?{content:$,usage:X}:{content:$}}function H0(Z,$){if(Z.headers?.get?.("content-type")?.includes("text/event-stream"))return!0;return $.trimStart().startsWith("data:")}async function E(Z,$,X,J={}){let G=R.QITQODE_BACKEND_URL,z=`${G}::post:${Z}`;if(!J.noCache){let O=Date.now(),Q=C.get(z);if(Q&&Q.expires>O)return Q.value}let W=!1,V=!1;do{V=!1;try{let O=await p(),Q=O?o(O):{},D=J.billable?NZ(j0(G,Q),$,X):void 0,M=D?{"x-idempotency-key":D.key}:{},L=await fetch(`${G}/${$}`,{method:"POST",headers:{"Content-Type":"application/json",...Q,...M},body:JSON.stringify(X),signal:J.signal});if(L.status===401||L.status===403){D?.settle();let I=await L.text().catch(()=>"");if(I.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${I}`);let F=await p$({credential:O,status:L.status,label:$,baseUrl:G,repairSpent:W});if(W=!0,F.retry){V=!0;continue}throw F.error}if(!L.ok){let I=await n$(L,`Backend POST /${$}`);if(L.status<500)D?.settle();throw I}let K;if(J.sse){let I=await L.text();if(H0(L,I)){D?.settle();let F=RZ(I);if(!J.noCache)C.set(z,{value:F,expires:Date.now()+S$});return F}K=JSON.parse(I)}else K=await L.json();let U=K!==null&&typeof K==="object"&&typeof K.error==="string";if((!J.acceptTopLevel||typeof K?.success==="boolean"||U)&&!K.success)throw D?.settle(),i$(K,`Backend POST /${$}`);D?.settle();let j=J.acceptTopLevel?F0(K):K.data;if(!J.noCache)C.set(z,{value:j,expires:Date.now()+S$});return j}catch(O){if(O instanceof r)throw O;throw H.failures++,_.warn("backend POST request failed; surfacing error",{fnName:$,baseUrl:G,error:O instanceof Error?O.message:String(O)}),O}}while(V);throw Error(`Backend POST /${$} exhausted its auth retry without a verdict`)}async function r$(Z,$,X={}){let J=R.QITQODE_BACKEND_URL,G=!1,z=!1;do{z=!1;try{let W=await p(),V=W?o(W):{},O=new URLSearchParams(Object.entries($).map(([L,K])=>[L,String(K)])).toString(),Q=O?`${J}/${Z}?${O}`:`${J}/${Z}`,D=await fetch(Q,{method:"GET",headers:{...V},signal:X.signal});if(D.status===401||D.status===403){let L=await D.text().catch(()=>"");if(L.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${L}`);let K=await p$({credential:W,status:D.status,label:Z,baseUrl:J,repairSpent:G});if(G=!0,K.retry){z=!0;continue}throw K.error}if(!D.ok)throw await n$(D,`Backend GET /${Z}`);let M=await D.json();if(!M.success)throw i$(M,`Backend GET /${Z}`);return M.data}catch(W){if(W instanceof r)throw W;throw H.failures++,_.warn("backend GET request failed; surfacing error",{fnName:Z,baseUrl:J,error:W instanceof Error?W.message:String(W)}),W}}while(z);throw Error(`Backend GET /${Z} exhausted its auth retry without a verdict`)}async function E0(Z,$,X){let J=R.QITQODE_BACKEND_URL,G=`${J}::public:${Z}`,z=Date.now(),W=C.get(G);if(W&&W.expires>z)return W.value;try{let V=await fetch(`${J}/${$}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(X),signal:AbortSignal.timeout(m$)});if(!V.ok)throw await n$(V,`Backend public POST /${$}`);let O=await V.json();if(!O.success)throw i$(O,`Backend public POST /${$}`);let Q=O.data;return C.set(G,{value:Q,expires:z+S$}),Q}catch(V){throw H.failures++,_.warn("backend public request failed; surfacing error",{fnName:$,baseUrl:J,error:V instanceof Error?V.message:String(V)}),V}}async function s$(){try{return await E0("forgewise.config","forgewiseConfig",{})}catch(Z){let $=await p().catch(()=>null);if(!$)throw Z;let X=R.QITQODE_BACKEND_URL,J=await fetch(`${X}/forgewiseConfig`,{method:"POST",headers:{"Content-Type":"application/json",...o($)},body:JSON.stringify({}),signal:AbortSignal.timeout(m$)}).catch(()=>null);if(!J?.ok)throw Z;let G=await J.json().catch(()=>null);if(!G?.success)throw Z;return G.data}}async function A0(){return r$("listTiers",{}).then((Z)=>{if(!Array.isArray(Z))return[];return Z.flatMap(($)=>{if(typeof $==="string")return[{id:$}];if(!$||typeof $!=="object"||Array.isArray($))return[];let X=$;return typeof X.id==="string"?[{id:X.id,...typeof X.label==="string"?{label:X.label}:{},...typeof X.providerID==="string"?{providerID:X.providerID}:{},...typeof X.modelID==="string"?{modelID:X.modelID}:{}}]:[]})}).catch((Z)=>{return _.warn("listTiers fetch failed; using hardcoded tier fallback",{error:Z instanceof Error?Z.message:String(Z)}),[]})}async function P0(){return r$("TIER_RATINGS",{}).catch((Z)=>{_.warn("TIER_RATINGS fetch failed; no tier ratings will be shown",{error:Z instanceof Error?Z.message:String(Z)});return})}async function k0(Z){return E("compaction.trajectory","compressTrajectorySafe",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(120000)})}async function g0(Z,$){let X=$?.timeoutMs??30000,J={query:Z};if($?.numResults)J.options={count:$.numResults};return E("brave.search","braveSearch",J,{noCache:!0,signal:AbortSignal.timeout(X)})}async function C0(Z){return E("qredits.history","getHistory",Z,{noCache:!0})}async function h0(Z){return E("forgewise.qredits.balance","fetchQreditsBalance",Z,{noCache:!0,acceptTopLevel:!0})}async function b0(Z){return E(`code.analyze:${Z.filePath}`,"analyzeCodeForIssues",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function f0(Z){return E(`code.docs:${Z.filePath}:${Z.functionName??""}`,"generateDocumentation",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function v0(Z){return E(`code.comments:${Z.filePath}`,"generateInlineComments",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function y0(Z,$,X){return E("chat.boolean","chatBoolean",{sample:Z,test:$},{noCache:!0,billable:!0,signal:AbortSignal.timeout(X?.timeoutMs??30000)})}async function c0(Z,$){let X={message:Z},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)X.options=J;let G=await E("chat.completion","chatCompletion",X,{noCache:!0,billable:!0,sse:!0,signal:AbortSignal.timeout($?.timeoutMs??30000)});return _Z(G)}function _Z(Z){if(typeof Z==="string")return{content:Z};if(Z!==null&&typeof Z==="object"){let $=Z,X=$.choices?.[0],J=typeof $.content==="string"?$.content:X?.message?.content??X?.delta?.content;if(typeof J==="string"){let G=$.usage,z=G?{promptTokens:G.promptTokens??G.prompt_tokens,completionTokens:G.completionTokens??G.completion_tokens,totalTokens:G.totalTokens??G.total_tokens}:void 0;return z?{content:J,usage:z}:{content:J}}}throw Error(`chatCompletion returned an unrecognized payload shape: ${JSON.stringify(Z)?.slice(0,300)}`)}async function u0(Z){return E("batch.submit","submitBatch",{tier:Z.tier,requests:Z.requests},{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function d0(Z){return r$("retrieveBatch",{batchId:Z.batchId,tier:Z.tier},{signal:AbortSignal.timeout(30000)})}var m0=g.create({service:"forgewise.config"}),l0="https://accounts.forgewise.tech",p0="forgewise-cli",qZ=!1,n0={defaultFallbacks:0};function x$(...Z){return Z.find(($)=>$!==void 0&&$.trim().length>0)}function d9(){return!!process.env.REPLIT_DEV_DOMAIN}async function OZ(){let Z=process.env.ACCOUNTS_ISSUER,$=process.env.FORGEWISE_CLIENT_ID;if(Z&&$)return{issuer:Z.replace(/\/+$/,""),clientId:$};let X,J;try{X=await s$()}catch(O){X=void 0,J=O}let G=x$(Z,X?.issuer,l0).replace(/\/+$/,""),z=x$($,X?.clientId,p0),W=x$(Z,X?.issuer)===void 0,V=x$($,X?.clientId)===void 0;if((W||V)&&!qZ)qZ=!0,n0.defaultFallbacks++,m0.warn("remote Forgewise coordinate lookup unavailable; falling back to baked-in defaults",{issuer:G,clientId:z,usedDefaultIssuer:W,usedDefaultClientId:V,remoteError:J instanceof Error?J.message:J?String(J):void 0});return{issuer:G,clientId:z}}
|
|
8
|
-
export{k as _n,e1 as $n,mZ as ao,lZ as bo,$Z as co,z0 as do,F$ as eo,A as fo,p as go,U$ as ho,E$ as io,d9 as jo,OZ as ko,q as lo,n as mo,zZ as no,N9 as oo,j9 as po,U9 as qo,I9 as ro,S9 as so,x9 as to,R9 as uo,DZ as vo,C$ as wo,MZ as xo,r as yo,J$ as zo,G$ as Ao,l$ as Bo,A0 as Co,P0 as Do,C0 as Eo,h0 as Fo,a$ as Go};
|
package/bundle/chunk-kxwkab31.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bl as s,Cl as t,Dl as u,Fl as v,Gl as w}from"./chunk-r1xh50b2.js";import"./chunk-13rsd5vv.js";import{Am as b,Bm as c,Cm as d,Dm as e,Em as f,Fm as g,Gm as h,Hm as i,Im as j,Jm as k,Lm as l,Mm as m,Nm as n,Pm as o,Rm as p,Ym as q,Zm as r,nm as a}from"./chunk-mh19kwzw.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-2b3fn9xv.js";import"./chunk-rn043d0r.js";import"./chunk-73r8bjjz.js";import"./chunk-t5xxs5kp.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-kj8cmn7z.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.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-m5cfmhwh.js
DELETED
package/bundle/chunk-m7qxxbns.js
DELETED