@qitqode/qitqode-android-arm64 0.1.25 → 0.1.26
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-sx5m81em.js → chunk-01gwb793.js} +1 -1
- package/bundle/{chunk-42t25nkb.js → chunk-05amr7y9.js} +1 -1
- package/bundle/{chunk-4kb2efq3.js → chunk-06x1p3t4.js} +1 -1
- package/bundle/{chunk-t07a5431.js → chunk-07net7s8.js} +1 -1
- package/bundle/{chunk-v7ah9gg0.js → chunk-08y06vgt.js} +2 -2
- package/bundle/chunk-09ecxdmd.js +2 -0
- package/bundle/{chunk-2armxd20.js → chunk-0cehm5fn.js} +1 -1
- package/bundle/chunk-0jaj2g7x.js +2 -0
- package/bundle/{chunk-9f6pqped.js → chunk-0m2tj2h9.js} +1 -1
- package/bundle/{chunk-pk0tytcm.js → chunk-0mekr486.js} +1 -1
- package/bundle/{chunk-qe0sfafy.js → chunk-0ndvy0nh.js} +1 -1
- package/bundle/chunk-0nr2925m.js +2 -0
- package/bundle/{chunk-gvtw9c44.js → chunk-0w5npkgr.js} +1 -1
- package/bundle/chunk-0wbq1y92.js +2 -0
- package/bundle/chunk-12pxszgn.js +2 -0
- package/bundle/chunk-1337582e.js +2 -0
- package/bundle/{chunk-ybn8tb09.js → chunk-14ag9ea0.js} +1 -1
- package/bundle/chunk-182jf8fz.js +2 -0
- package/bundle/chunk-1ht3zcsh.js +2 -0
- package/bundle/{chunk-zny2qaqa.js → chunk-1n4w8dya.js} +2 -2
- package/bundle/{chunk-meaybtcc.js → chunk-1qbm1k9y.js} +2 -2
- package/bundle/{chunk-dk3z4k46.js → chunk-1xkwm21b.js} +3 -3
- package/bundle/{chunk-dee1a3yk.js → chunk-1xpx1t40.js} +1 -1
- package/bundle/{chunk-j5b5h08g.js → chunk-1yx4jesj.js} +1 -1
- package/bundle/{chunk-qfz0a58d.js → chunk-25zkavr0.js} +1 -1
- package/bundle/{chunk-b2xya6pq.js → chunk-28vnspd4.js} +1 -1
- package/bundle/{chunk-26qt44f1.js → chunk-2cm91ktc.js} +1 -1
- package/bundle/chunk-2jfd82jk.js +2 -0
- package/bundle/{chunk-3h08jdq8.js → chunk-2jn2hd12.js} +1 -1
- package/bundle/chunk-2k7bbzj2.js +2 -0
- package/bundle/{chunk-0xmx2zfg.js → chunk-2kdn66xt.js} +1 -1
- package/bundle/{chunk-mbh1pdv9.js → chunk-2q76qax6.js} +2 -2
- package/bundle/{chunk-6ddp36ar.js → chunk-2yb59jwr.js} +1 -1
- package/bundle/chunk-30081kwd.js +2 -0
- package/bundle/{chunk-ykfq8bem.js → chunk-32zrch7h.js} +1 -1
- package/bundle/{chunk-2rxt1s22.js → chunk-3bb7y9pq.js} +1 -1
- package/bundle/{chunk-7q5srx7q.js → chunk-3kdhvq0p.js} +1 -1
- package/bundle/chunk-3rgct4bd.js +11 -0
- package/bundle/{chunk-8za87zkr.js → chunk-3s0d17xe.js} +1 -1
- package/bundle/chunk-3vag59se.js +2 -0
- package/bundle/{chunk-wb69d52j.js → chunk-3w64fpwn.js} +1 -1
- package/bundle/chunk-3x5v6sjw.js +2 -0
- package/bundle/{chunk-08ba67f4.js → chunk-3zn71txs.js} +1 -1
- package/bundle/{chunk-qdnxv55k.js → chunk-41ftye7w.js} +1 -1
- package/bundle/chunk-43ep9d7a.js +2 -0
- package/bundle/chunk-48j09m6e.js +3 -0
- package/bundle/{chunk-bnc4626b.js → chunk-4920vf6a.js} +1 -1
- package/bundle/{chunk-78h5dd4t.js → chunk-49tqzsy0.js} +1 -1
- package/bundle/{chunk-9jvnc14g.js → chunk-49ypxzfx.js} +1 -1
- package/bundle/{chunk-0hsb4knd.js → chunk-4k70wrhf.js} +1 -1
- package/bundle/{chunk-dd11kryy.js → chunk-4nck07pc.js} +2 -2
- package/bundle/chunk-4qqja22v.js +2 -0
- package/bundle/{chunk-av290sja.js → chunk-56pwz1kk.js} +1 -1
- package/bundle/{chunk-vq6bh2z9.js → chunk-56qm8xpt.js} +1 -1
- package/bundle/{chunk-9dpn4792.js → chunk-58gp7wbg.js} +2 -2
- package/bundle/{chunk-2z35ewwc.js → chunk-5dm3p5r6.js} +1 -1
- package/bundle/chunk-5gazgxt5.js +2 -0
- package/bundle/{chunk-kb14wxcs.js → chunk-5jtd006j.js} +1 -1
- package/bundle/{chunk-7v4fzkbb.js → chunk-5mec6cde.js} +1 -1
- package/bundle/{chunk-hwbxehhf.js → chunk-5yaahmjb.js} +1 -1
- package/bundle/{chunk-4wyjapes.js → chunk-5ymj2q6j.js} +1 -1
- package/bundle/{chunk-psveqqv2.js → chunk-613kegcn.js} +1 -1
- package/bundle/chunk-63znhwx0.js +2 -0
- package/bundle/{chunk-6gbaw2pk.js → chunk-6fpfr8tk.js} +1 -1
- package/bundle/{chunk-gaen9ya4.js → chunk-6h2faxs9.js} +2 -2
- package/bundle/chunk-6hmyy7n6.js +2 -0
- package/bundle/{chunk-bsqcfqya.js → chunk-6nk3wx6f.js} +1 -1
- package/bundle/{chunk-c27rpvdz.js → chunk-6nkcfncg.js} +1 -1
- package/bundle/{chunk-jqzejny3.js → chunk-6vb26adv.js} +1 -1
- package/bundle/{chunk-rgecc41f.js → chunk-6wdwwpsc.js} +1 -1
- package/bundle/{chunk-7rjf9b8n.js → chunk-77e1wh0j.js} +1 -1
- package/bundle/chunk-7dyddrpk.js +2 -0
- package/bundle/{chunk-7d6jhzng.js → chunk-7e1aw8rw.js} +1 -1
- package/bundle/{chunk-gefh32jb.js → chunk-7ez3ye6e.js} +1 -1
- package/bundle/{chunk-pvee151a.js → chunk-7fmy4cvn.js} +1 -1
- package/bundle/{chunk-xy4t5qf8.js → chunk-7n2kpqh5.js} +1 -1
- package/bundle/chunk-7penjsgq.js +2 -0
- package/bundle/{chunk-amx3x4kd.js → chunk-7qxn24qa.js} +2 -2
- package/bundle/{chunk-grkkzrg1.js → chunk-7rxsj310.js} +1 -1
- package/bundle/{chunk-9va5eh9s.js → chunk-7ryv0f5h.js} +1 -1
- package/bundle/chunk-7t5gzkj6.js +2 -0
- package/bundle/{chunk-nqefvn28.js → chunk-7tbvr236.js} +1 -1
- package/bundle/{chunk-14qvaxtp.js → chunk-81engf0t.js} +1 -1
- package/bundle/{chunk-1n1dh6zj.js → chunk-880msfsd.js} +1 -1
- package/bundle/chunk-89vgt8vq.js +2 -0
- package/bundle/{chunk-evmfntm3.js → chunk-8bzwgcjb.js} +1 -1
- package/bundle/chunk-8e8n82f9.js +2 -0
- package/bundle/{chunk-5mp82az0.js → chunk-91khd3fq.js} +1 -1
- package/bundle/chunk-97exhw9j.js +2 -0
- package/bundle/chunk-9cvkaht5.js +2 -0
- package/bundle/{chunk-d0m7nbbx.js → chunk-9p83me3p.js} +2 -2
- package/bundle/{chunk-5mdsrv0a.js → chunk-9qtf8khv.js} +1 -1
- package/bundle/{chunk-vfj5nwab.js → chunk-9wm41z2f.js} +2 -2
- package/bundle/{chunk-gw0j8hr9.js → chunk-9zrwbxx0.js} +1 -1
- package/bundle/{chunk-dgggvses.js → chunk-admgf65a.js} +1 -1
- package/bundle/{chunk-tdmaxc6n.js → chunk-afhg3w2j.js} +1 -1
- package/bundle/chunk-akdvstd9.js +2 -0
- package/bundle/{chunk-3j7skhxg.js → chunk-atbm0pnt.js} +2 -2
- package/bundle/chunk-ave2e4sa.js +2 -0
- package/bundle/chunk-axnwehc7.js +2 -0
- package/bundle/{chunk-ydsen7w0.js → chunk-b79k456s.js} +1 -1
- package/bundle/chunk-bmzyxspj.js +2 -0
- package/bundle/{chunk-v4xgceeq.js → chunk-bse8p94q.js} +1 -1
- package/bundle/chunk-bvaqpfv8.js +2 -0
- package/bundle/{chunk-n8dcmjph.js → chunk-c0k8j498.js} +1 -1
- package/bundle/{chunk-4stgw33j.js → chunk-cbmw8fy2.js} +1 -1
- package/bundle/{chunk-h19ty95q.js → chunk-cn10hn58.js} +1 -1
- package/bundle/{chunk-tf1me2r4.js → chunk-cqhpbfcn.js} +2 -2
- package/bundle/{chunk-4wgb80jm.js → chunk-cr06m77n.js} +1 -1
- package/bundle/{chunk-s76hdgw6.js → chunk-cxb05cdg.js} +1 -1
- package/bundle/chunk-cxe92z5c.js +2 -0
- package/bundle/{chunk-vqq5vmh1.js → chunk-cyjzqa5p.js} +4 -4
- package/bundle/{chunk-msm3r7ny.js → chunk-d2n09yvh.js} +2 -2
- package/bundle/{chunk-bpnpxdyv.js → chunk-d31yrcrn.js} +1 -1
- package/bundle/chunk-d5wp85kw.js +2 -0
- package/bundle/{chunk-cjxp72dv.js → chunk-dazye86e.js} +1 -1
- package/bundle/chunk-dm5xnb4t.js +2 -0
- package/bundle/chunk-dpeqsvan.js +2 -0
- package/bundle/chunk-drxtmg5c.js +2 -0
- package/bundle/{chunk-1ce5jpdc.js → chunk-dv5zf5gz.js} +1 -1
- package/bundle/{chunk-99p5m2f1.js → chunk-e57d1he9.js} +1 -1
- package/bundle/{chunk-z015twaq.js → chunk-e58pdw5k.js} +1 -1
- package/bundle/chunk-e9pfdjcy.js +2 -0
- package/bundle/chunk-ejn5hfzd.js +2 -0
- package/bundle/{chunk-9w5rx0fb.js → chunk-ek1fawsj.js} +1 -1
- package/bundle/{chunk-3xna2rk5.js → chunk-eq33vmze.js} +1 -1
- package/bundle/{chunk-fgw420gb.js → chunk-eqaym8gm.js} +1 -1
- package/bundle/chunk-ernd18jb.js +2 -0
- package/bundle/{chunk-zh808d4t.js → chunk-ewvgbg68.js} +1 -1
- package/bundle/{chunk-e075v4e9.js → chunk-f3c9667r.js} +2 -2
- package/bundle/{chunk-h2fh1g8g.js → chunk-f3rrd2p6.js} +1 -1
- package/bundle/{chunk-bqs6a1ts.js → chunk-f416n3mp.js} +1 -1
- package/bundle/{chunk-mybpgrjj.js → chunk-f6y7a5w3.js} +1 -1
- package/bundle/{chunk-2zj3h3xj.js → chunk-fd9zrmhr.js} +1 -1
- package/bundle/chunk-ff9b4cg8.js +2 -0
- package/bundle/{chunk-0jaxgrq0.js → chunk-fffj9447.js} +1 -1
- package/bundle/{chunk-k8bp3jjv.js → chunk-fk3praj7.js} +1 -1
- package/bundle/{chunk-c1ypbbka.js → chunk-fk8cctjy.js} +1 -1
- package/bundle/{chunk-eg7drzzt.js → chunk-fkat2pw6.js} +1 -1
- package/bundle/chunk-fpff6a4q.js +2 -0
- package/bundle/{chunk-syhay5ye.js → chunk-fvy5w4dh.js} +1 -1
- package/bundle/{chunk-ey4ktbyb.js → chunk-fx7w497c.js} +1 -1
- package/bundle/{chunk-qnqqrvvs.js → chunk-fxb6vjcb.js} +1 -1
- package/bundle/{chunk-d1bsxz2t.js → chunk-g6dgc5af.js} +1 -1
- package/bundle/{chunk-rq4hqwjy.js → chunk-g7vahvkz.js} +1 -1
- package/bundle/{chunk-58680z2j.js → chunk-g8wvr7a1.js} +1 -1
- package/bundle/{chunk-2je5tp0x.js → chunk-gaxbbxk6.js} +1 -1
- package/bundle/chunk-gq361kdt.js +2 -0
- package/bundle/{chunk-gfmfrkxc.js → chunk-gxa2r4zc.js} +1 -1
- package/bundle/{chunk-jq81hb32.js → chunk-hb4d06q0.js} +1 -1
- package/bundle/chunk-hbagpppv.js +2 -0
- package/bundle/chunk-hf473xav.js +2 -0
- package/bundle/{chunk-gsz1wqy6.js → chunk-hjratj6g.js} +1 -1
- package/bundle/{chunk-zsnbxsdx.js → chunk-hk8j5ht8.js} +1 -1
- package/bundle/{chunk-p80dc6kt.js → chunk-hkmb3zer.js} +2 -2
- package/bundle/chunk-hr88054m.js +2 -0
- package/bundle/{chunk-jhq5bvhs.js → chunk-hybq019j.js} +2 -2
- package/bundle/{chunk-e1pwnf0b.js → chunk-hyckncza.js} +1 -1
- package/bundle/{chunk-jgs6ngte.js → chunk-hz1hd1bd.js} +1 -1
- package/bundle/{chunk-hznsed5n.js → chunk-j0ftbmex.js} +1 -1
- package/bundle/{chunk-4wa0gf8y.js → chunk-j3czd7v2.js} +1 -1
- package/bundle/{chunk-xyn3xxfs.js → chunk-j7zs1yg2.js} +1 -1
- package/bundle/{chunk-1e8mja6v.js → chunk-j87bvp1b.js} +1 -1
- package/bundle/chunk-j9m2d6t5.js +2 -0
- package/bundle/chunk-jd9edy2s.js +2 -0
- package/bundle/{chunk-yzchwmb4.js → chunk-jdkxeqw5.js} +1 -1
- package/bundle/chunk-jwtdbx31.js +2 -0
- package/bundle/{chunk-rjcptzem.js → chunk-jzcz92pq.js} +2 -2
- package/bundle/{chunk-6rrmjrm2.js → chunk-k7h6tfzj.js} +1 -1
- package/bundle/{chunk-eaatrmcg.js → chunk-kbg3k1az.js} +1 -1
- package/bundle/{chunk-87x607rz.js → chunk-kbjwdv1x.js} +6 -6
- package/bundle/{chunk-jtrcnpm7.js → chunk-kbyk7hyn.js} +2 -2
- package/bundle/{chunk-3nhth7c2.js → chunk-kfk1zqc1.js} +1 -1
- package/bundle/{chunk-754varfr.js → chunk-kkdgzeva.js} +1 -1
- package/bundle/{chunk-mkdyknbz.js → chunk-kn318ev4.js} +1 -1
- package/bundle/{chunk-zss93r48.js → chunk-kp84yba1.js} +1 -1
- package/bundle/{chunk-m2ang7yb.js → chunk-kpnfndkg.js} +1 -1
- package/bundle/chunk-krkxrej2.js +2 -0
- package/bundle/{chunk-z3zx6g09.js → chunk-kvz0vzsn.js} +1 -1
- package/bundle/chunk-m26mcy8p.js +2 -0
- package/bundle/{chunk-pd33qvr0.js → chunk-m62wgqp1.js} +1 -1
- package/bundle/{chunk-y0xt5a6g.js → chunk-m7txgh5w.js} +1 -1
- package/bundle/chunk-m84cn9c6.js +2 -0
- package/bundle/{chunk-vb4e7y4d.js → chunk-md7vpe1e.js} +1 -1
- package/bundle/{chunk-61ks7c71.js → chunk-mg239rc3.js} +3 -3
- package/bundle/chunk-mvc7pvtq.js +2 -0
- package/bundle/{chunk-8cty50g7.js → chunk-n07rsssz.js} +1 -1
- package/bundle/{chunk-7ws3gdjq.js → chunk-n10atvac.js} +1 -1
- package/bundle/chunk-nfp9xtca.js +3 -0
- package/bundle/{chunk-p8enedkf.js → chunk-ngz5xw45.js} +1 -1
- package/bundle/{chunk-3f054f69.js → chunk-njzpswgt.js} +6 -6
- package/bundle/{chunk-nmnsf3fc.js → chunk-nszqy06d.js} +1 -1
- package/bundle/{chunk-3e8p4a3y.js → chunk-nxjbbq5h.js} +1 -1
- package/bundle/{chunk-hmfefq0d.js → chunk-p0k4sv89.js} +3 -3
- package/bundle/{chunk-mkyrg7gt.js → chunk-p31yg62z.js} +2 -2
- package/bundle/chunk-p5t9mq8r.js +2 -0
- package/bundle/chunk-pfbykat1.js +2 -0
- package/bundle/{chunk-kgsq240v.js → chunk-pjbbdm96.js} +1 -1
- package/bundle/{chunk-4w5t515p.js → chunk-pnj8s20t.js} +1 -1
- package/bundle/{chunk-nf8gkxbk.js → chunk-ppvmy940.js} +2 -2
- package/bundle/{chunk-veev25yg.js → chunk-ptf09vmp.js} +1 -1
- package/bundle/{chunk-ggeena9t.js → chunk-q2exgz82.js} +1 -1
- package/bundle/{chunk-2s28fdbp.js → chunk-qan3kwbv.js} +1 -1
- package/bundle/{chunk-5zw7knvd.js → chunk-qb5qemtp.js} +1 -1
- package/bundle/chunk-qd0nvn4z.js +2 -0
- package/bundle/chunk-qh99kv2j.js +2 -0
- package/bundle/{chunk-7fx6x8x9.js → chunk-qkwhgfjt.js} +2 -2
- package/bundle/{chunk-9r6bvkp4.js → chunk-qmhcbdkg.js} +2 -2
- package/bundle/{chunk-3fy57jcy.js → chunk-qngs31yf.js} +1 -1
- package/bundle/{chunk-jv98gw88.js → chunk-qpv4438m.js} +2 -2
- package/bundle/{chunk-yhqk8bzk.js → chunk-qq71akpw.js} +2 -2
- package/bundle/chunk-qyrafh4m.js +2 -0
- package/bundle/{chunk-xjrt0dta.js → chunk-r1yqmd4y.js} +1 -1
- package/bundle/chunk-rc37cw86.js +2 -0
- package/bundle/{chunk-a27yjp71.js → chunk-rf625fxx.js} +1 -1
- package/bundle/chunk-rmpty636.js +2 -0
- package/bundle/{chunk-qnv2v02g.js → chunk-rs0nx844.js} +2 -2
- package/bundle/{chunk-8atry88r.js → chunk-rvrjw0fy.js} +1 -1
- package/bundle/{chunk-kwm87f18.js → chunk-rz54qjew.js} +1 -1
- package/bundle/{chunk-wrgg270f.js → chunk-s1h0k1yj.js} +1 -1
- package/bundle/{chunk-0rmmg3g4.js → chunk-s2za1y84.js} +1 -1
- package/bundle/chunk-s3wjwxme.js +2 -0
- package/bundle/chunk-s4ncnbgd.js +2 -0
- package/bundle/{chunk-3jhx8g5d.js → chunk-s54c8fpf.js} +1 -1
- package/bundle/{chunk-mr7agwgn.js → chunk-s5krbdvd.js} +1 -1
- package/bundle/{chunk-4pssh5d3.js → chunk-s86fj82v.js} +2 -2
- package/bundle/{chunk-8gy99gfb.js → chunk-sdsggxm4.js} +1 -1
- package/bundle/{chunk-ym4ydwrz.js → chunk-se195e52.js} +2 -2
- package/bundle/chunk-snz3w30x.js +2 -0
- package/bundle/chunk-srw748gr.js +2 -0
- package/bundle/{chunk-692vn48b.js → chunk-st74db4c.js} +1 -1
- package/bundle/{chunk-2k2axg73.js → chunk-t1vtdgd6.js} +1 -1
- package/bundle/{chunk-nhx2xp2x.js → chunk-t6xm49ea.js} +1 -1
- package/bundle/{chunk-xqa6qkx2.js → chunk-t7tstr83.js} +1 -1
- package/bundle/{chunk-p409grvp.js → chunk-tedrfa7d.js} +2 -2
- package/bundle/{chunk-vbf73c7z.js → chunk-tn167yyz.js} +1 -1
- package/bundle/{chunk-pepn5jp4.js → chunk-txty44v2.js} +1 -1
- package/bundle/{chunk-d5b0bqbr.js → chunk-tyy4gx61.js} +1 -1
- package/bundle/chunk-v1xwe58d.js +2 -0
- package/bundle/{chunk-7qvkyjjg.js → chunk-vh05n2x3.js} +1 -1
- package/bundle/{chunk-zbdbsagd.js → chunk-vpqd0t8a.js} +1 -1
- package/bundle/chunk-vrfegg5f.js +2 -0
- package/bundle/{chunk-3dvyfmgc.js → chunk-vthm5q05.js} +1 -1
- package/bundle/{chunk-vmgknvxs.js → chunk-vw673y0t.js} +2 -2
- package/bundle/{chunk-b50t4jc5.js → chunk-vx837ete.js} +1 -1
- package/bundle/{chunk-x6b99nt3.js → chunk-vy9xre57.js} +1 -1
- package/bundle/{chunk-g3s2z5xa.js → chunk-vyjsng14.js} +1 -1
- package/bundle/{chunk-rs1mm5ef.js → chunk-vztxv9dj.js} +1 -1
- package/bundle/{chunk-kyny0t2g.js → chunk-w01gjnty.js} +2 -2
- package/bundle/{chunk-k6zvb8xm.js → chunk-w12tky28.js} +1 -1
- package/bundle/{chunk-kdct3e8s.js → chunk-w2gpgapp.js} +1 -1
- package/bundle/{chunk-hvpe07pt.js → chunk-w3pzv615.js} +1 -1
- package/bundle/{chunk-pf7cj4jd.js → chunk-w4hbw37v.js} +1 -1
- package/bundle/chunk-w9ct698t.js +2 -0
- package/bundle/{chunk-3tnek022.js → chunk-wefjbwv6.js} +1 -1
- package/bundle/{chunk-0x7dbj5e.js → chunk-wg42cxrw.js} +1 -1
- package/bundle/{chunk-j9s62g01.js → chunk-wg5dv21f.js} +1 -1
- package/bundle/{chunk-qvcfst7n.js → chunk-wms4skr9.js} +1 -1
- package/bundle/{chunk-w98r39gd.js → chunk-wr5hdsst.js} +1 -1
- package/bundle/chunk-wxnqgh8t.js +2 -0
- package/bundle/chunk-wzmte7sy.js +3 -0
- package/bundle/chunk-x0h1jdxt.js +2 -0
- package/bundle/{chunk-ww8ear80.js → chunk-x3931we7.js} +2 -2
- package/bundle/{chunk-23f6rc7a.js → chunk-x3z8q0ep.js} +1 -1
- package/bundle/chunk-x6hsmnhz.js +2 -0
- package/bundle/{chunk-se79ke63.js → chunk-xak2r993.js} +1 -1
- package/bundle/{chunk-t0amhhsk.js → chunk-xc3fadkh.js} +1 -1
- package/bundle/{chunk-rjf21v5c.js → chunk-xcs2jbz9.js} +1 -1
- package/bundle/{chunk-ddxjc803.js → chunk-xdv9xt0y.js} +1 -1
- package/bundle/{chunk-aw0q4y3s.js → chunk-xdwej3ae.js} +1 -1
- package/bundle/chunk-xg9e0enb.js +2 -0
- package/bundle/{chunk-t2tsyazc.js → chunk-xqxpjbqk.js} +1 -1
- package/bundle/chunk-xtxxb25n.js +2 -0
- package/bundle/{chunk-9jncnqbj.js → chunk-y2ch07yv.js} +1 -1
- package/bundle/chunk-y3s7sh1e.js +2 -0
- package/bundle/{chunk-6a1g6jzn.js → chunk-ydvheqw9.js} +1 -1
- package/bundle/chunk-ygwe0vf1.js +5 -0
- package/bundle/{chunk-8jcx4tep.js → chunk-ykxde207.js} +1 -1
- package/bundle/{chunk-ag9thqkv.js → chunk-ynfbz3sz.js} +2 -2
- package/bundle/{chunk-p883sz67.js → chunk-yqtfvgrp.js} +1 -1
- package/bundle/{chunk-kdcspxvq.js → chunk-yt1yk4j1.js} +1 -1
- package/bundle/{chunk-xdde80rf.js → chunk-yvj021eg.js} +1 -1
- package/bundle/chunk-yxnq0d7k.js +2 -0
- package/bundle/{chunk-jvaffe5d.js → chunk-z2m09m4w.js} +1 -1
- package/bundle/{chunk-xw283h2r.js → chunk-z2q3mg73.js} +2 -2
- package/bundle/chunk-z2raegj9.js +2 -0
- package/bundle/{chunk-mczw8e3s.js → chunk-z3hj5bfd.js} +1 -1
- package/bundle/chunk-z3pyhmg6.js +2 -0
- package/bundle/{chunk-g73drh98.js → chunk-z4ae6jmb.js} +2 -2
- package/bundle/{chunk-qpm5afdz.js → chunk-z559gc3n.js} +1 -1
- package/bundle/{chunk-4aqd2bty.js → chunk-z7pg6sw1.js} +1 -1
- package/bundle/chunk-z84376c6.js +2 -0
- package/bundle/{chunk-aqm597px.js → chunk-ze00x1xb.js} +1 -1
- package/bundle/{chunk-1txkz6dt.js → chunk-zjvzc0my.js} +1 -1
- package/bundle/chunk-zn8th65r.js +2 -0
- package/bundle/{chunk-f55txcsa.js → chunk-zna6neq5.js} +1 -1
- package/bundle/chunk-ztv1brgn.js +2 -0
- package/bundle/{chunk-f84cd0a1.js → chunk-zvsafnkp.js} +1 -1
- package/bundle/{chunk-ydmrvx7q.js → chunk-zyxvd9fj.js} +1 -1
- 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-0eneddjj.js +0 -2
- package/bundle/chunk-0ke6x10y.js +0 -5
- package/bundle/chunk-0yb4pxjv.js +0 -2
- package/bundle/chunk-129kq1w7.js +0 -2
- package/bundle/chunk-1a5hq7d5.js +0 -2
- package/bundle/chunk-1w3y1dkk.js +0 -2
- package/bundle/chunk-2pkake0h.js +0 -2
- package/bundle/chunk-32188rww.js +0 -2
- package/bundle/chunk-334tc1rh.js +0 -2
- package/bundle/chunk-3ff94m8r.js +0 -2
- package/bundle/chunk-4xg5ptk9.js +0 -2
- package/bundle/chunk-5nm36wxa.js +0 -2
- package/bundle/chunk-64jet8nc.js +0 -2
- package/bundle/chunk-6584d9m8.js +0 -2
- package/bundle/chunk-66hv9bbw.js +0 -2
- package/bundle/chunk-6be8p915.js +0 -2
- package/bundle/chunk-6f03158n.js +0 -2
- package/bundle/chunk-7jnjttqx.js +0 -2
- package/bundle/chunk-7q8pa6s8.js +0 -2
- package/bundle/chunk-7w84hfxs.js +0 -3
- package/bundle/chunk-8casywce.js +0 -2
- package/bundle/chunk-8hxwxt5p.js +0 -2
- package/bundle/chunk-8y8140dm.js +0 -2
- package/bundle/chunk-9dqcyt6x.js +0 -2
- package/bundle/chunk-9he248a8.js +0 -2
- package/bundle/chunk-9qmmse2n.js +0 -2
- package/bundle/chunk-aabrsxrq.js +0 -2
- package/bundle/chunk-atd0q4v8.js +0 -3
- package/bundle/chunk-avaba4sr.js +0 -2
- package/bundle/chunk-bdy1etja.js +0 -2
- package/bundle/chunk-bqdvqmjc.js +0 -2
- package/bundle/chunk-cdws8ggq.js +0 -2
- package/bundle/chunk-cqs9a2cs.js +0 -2
- package/bundle/chunk-d0rjst58.js +0 -2
- package/bundle/chunk-d833a2fj.js +0 -2
- package/bundle/chunk-dday4nm2.js +0 -2
- package/bundle/chunk-e2sj30hk.js +0 -2
- package/bundle/chunk-enc0fykg.js +0 -2
- package/bundle/chunk-evan93av.js +0 -2
- package/bundle/chunk-f600dzsr.js +0 -2
- package/bundle/chunk-f6jzwydk.js +0 -2
- package/bundle/chunk-fv67ng8z.js +0 -2
- package/bundle/chunk-gevazsx3.js +0 -2
- package/bundle/chunk-gh18pzkx.js +0 -2
- package/bundle/chunk-gnvvgr4y.js +0 -2
- package/bundle/chunk-gsbjs2ws.js +0 -2
- package/bundle/chunk-j7pdz979.js +0 -2
- package/bundle/chunk-jfe2qbv8.js +0 -2
- package/bundle/chunk-kcht9kvx.js +0 -2
- package/bundle/chunk-knvsa1d4.js +0 -2
- package/bundle/chunk-kp6d68hd.js +0 -2
- package/bundle/chunk-me78p9x4.js +0 -2
- package/bundle/chunk-mv1d7wyt.js +0 -2
- package/bundle/chunk-n8xmmxh5.js +0 -2
- package/bundle/chunk-n90219q9.js +0 -2
- package/bundle/chunk-nckg3ydx.js +0 -2
- package/bundle/chunk-nhaenjw3.js +0 -2
- package/bundle/chunk-nhtrt5ec.js +0 -2
- package/bundle/chunk-p72n0tfq.js +0 -2
- package/bundle/chunk-pq3622ae.js +0 -2
- package/bundle/chunk-qatj4h6b.js +0 -2
- package/bundle/chunk-qjwfj51e.js +0 -2
- package/bundle/chunk-qkg73rs9.js +0 -2
- package/bundle/chunk-rmsqb6r4.js +0 -10
- package/bundle/chunk-rqrpbcm6.js +0 -2
- package/bundle/chunk-s7vhjg9e.js +0 -2
- package/bundle/chunk-sec3a60m.js +0 -2
- package/bundle/chunk-sjnt5e6w.js +0 -2
- package/bundle/chunk-sntb757q.js +0 -2
- package/bundle/chunk-svscftd7.js +0 -2
- package/bundle/chunk-sx0cabcs.js +0 -2
- package/bundle/chunk-tmdm6vm6.js +0 -2
- package/bundle/chunk-v6g0ksks.js +0 -2
- package/bundle/chunk-vbf9jpas.js +0 -2
- package/bundle/chunk-vrcf5q4s.js +0 -2
- package/bundle/chunk-vxrsp6n7.js +0 -2
- package/bundle/chunk-w8ax3pvh.js +0 -2
- package/bundle/chunk-xk2cmh49.js +0 -2
- package/bundle/chunk-xzhkfctf.js +0 -2
- package/bundle/chunk-z2rtcgad.js +0 -3
- package/bundle/chunk-z9b3t2jm.js +0 -2
- package/bundle/chunk-zzr8smtm.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$f as e,Xf as a,Yf as b,Zf as c,_f as d}from"./chunk-f416n3mp.js";import"./chunk-dazye86e.js";import"./chunk-3bb7y9pq.js";import"./chunk-wr5hdsst.js";import"./chunk-nfp9xtca.js";import"./chunk-nfg7nt13.js";import"./chunk-ze00x1xb.js";import"./chunk-sdsggxm4.js";import"./chunk-kbjwdv1x.js";import"./chunk-ek1fawsj.js";import"./chunk-3w64fpwn.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-fk8cctjy.js";import"./chunk-fxb6vjcb.js";import"./chunk-njzpswgt.js";import"./chunk-2cm91ktc.js";import"./chunk-ygwe0vf1.js";import"./chunk-1qbm1k9y.js";import"./chunk-3rgct4bd.js";import"./chunk-atbm0pnt.js";import"./chunk-s86fj82v.js";import"./chunk-58gp7wbg.js";import"./chunk-w4hbw37v.js";import"./chunk-qmhcbdkg.js";import"./chunk-7qxn24qa.js";import"./chunk-vx837ete.js";import"./chunk-ppvmy940.js";import"./chunk-1n4w8dya.js";import"./chunk-7ryv0f5h.js";import"./chunk-p31yg62z.js";import"./chunk-5mec6cde.js";import"./chunk-cqtkxwd8.js";import"./chunk-0mekr486.js";import"./chunk-x3931we7.js";import"./chunk-w01gjnty.js";import"./chunk-nxjbbq5h.js";import"./chunk-z559gc3n.js";import"./chunk-kbyk7hyn.js";import"./chunk-6h2faxs9.js";import"./chunk-4nck07pc.js";import"./chunk-d2n09yvh.js";import"./chunk-f3c9667r.js";import"./chunk-qpv4438m.js";import"./chunk-hybq019j.js";import"./chunk-z2q3mg73.js";import"./chunk-n07rsssz.js";import"./chunk-08y06vgt.js";import"./chunk-9p83me3p.js";import"./chunk-9wm41z2f.js";import"./chunk-48j09m6e.js";import"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-tedrfa7d.js";import"./chunk-ynfbz3sz.js";import"./chunk-rs0nx844.js";import"./chunk-qkwhgfjt.js";import"./chunk-s2za1y84.js";export{c as url,b as openapi,d as listen,e as Server,a as Default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{ot as q,qt as c,rt as f,st as P,tt as Y,ut as y,vt as F}from"./chunk-08y06vgt.js";import{EP as X}from"./chunk-s2za1y84.js";var W={free:{providerID:"qlex",modelID:"free"},default:{providerID:"qlex",modelID:"default"},fast:{providerID:"qlex",modelID:"fast"},economical:{providerID:"qlex",modelID:"economical"},power:{providerID:"qlex",modelID:"power"},orchestrated:{providerID:"qlex",modelID:"orchestrated"}},Z={free:"Free (no cost)",default:"Default",fast:"Fast",economical:"Economy",power:"Power",orchestrated:"Orchestrated"},$={free:{intelligence:6,speed:7,cost:0},fast:{intelligence:4,speed:10,cost:1},economical:{intelligence:8,speed:2,cost:1},default:{intelligence:9,speed:1,cost:5},power:{intelligence:10,speed:4,cost:10},orchestrated:{intelligence:7,speed:6,cost:1}};function z(x){return typeof x==="number"&&Number.isFinite(x)&&x>=0&&x<=10}function D(x){if(!x||typeof x!=="object"||Array.isArray(x))return;for(let[j,H]of Object.entries(x)){if(!H||typeof H!=="object"||Array.isArray(H))continue;let K=H;if(!z(K.intelligence)||!z(K.speed)||!z(K.cost))continue;$[j]={intelligence:K.intelligence,speed:K.speed,cost:K.cost}}}function V(x){if(!Array.isArray(x)||x.length===0)return;let j={},H={};for(let K of x){let J=W[K.id];j[K.id]={providerID:K.providerID??J?.providerID??"qlex",modelID:K.modelID??J?.modelID??K.id},H[K.id]=K.label??Z[K.id]??K.id}for(let K of Object.keys(W))delete W[K];Object.assign(W,j);for(let K of Object.keys(Z))delete Z[K];Object.assign(Z,H)}var Q={};X(Q,{tiers:()=>p,tierRatings:()=>m,streamUrl:()=>w,streamBaseUrl:()=>G,sanitizeUpstreamError:()=>U,qlexProviderMeta:()=>N,omniqueryBaseUrl:()=>O,mergeLiveTiers:()=>b,mergeLiveTierRatings:()=>h,evaluatePermission:()=>M,copy:()=>d,bashPrefixWith:()=>B,TIER_RATINGS:()=>$,AGENT_PROMPT_NAMES:()=>k});function b(x){V(x)}function h(x){D(x)}function p(){return Object.entries(W).map(([x,j])=>({id:x,label:Z[x]??x,providerID:j.providerID,modelID:j.modelID}))}function m(){return $}function M(x,j,...H){return H.flat().findLast((C)=>q(x,C.permission)&&q(j,C.pattern))??{action:"ask",permission:x,pattern:"*"}}function B(x,j){for(let H=j.length;H>0;H--){let K=j.slice(0,H).join(" "),J=x[K];if(J!==void 0)return j.slice(0,J)}if(j.length===0)return[];return j.slice(0,1)}function w(){return c}function G(){return f}function O(){return P}function N(){return Y}function U(x){return y(x)}function d(){return F}var k=["generate","explore","dream","distill","summary","compaction","title"];export{W as Us,Q as Vs};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ao as JQ,Co as GV,Ho as wQ,Jo as QQ,Oo as JV,Qo as FQ,So as KV,To as SV,Vo as PV,Wo as D,Zo as F,_o as t,ap as BV,cp as qQ,ep as VQ,fp as WQ,gp as xQ,jp as EV,kp as a,mp as UV,np as BQ,op as $Q,pp as AV,sp as xV,to as l,uo as zV,yo as UQ}from"./chunk-mkyrg7gt.js";import{Ap as AQ,Fp as jV,Hp as YQ,vp as ZV,zp as $V}from"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import{ut as Q}from"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-0rmmg3g4.js";var HQ=Q.object({error:Q.object({message:Q.string(),type:Q.string().nullish(),param:Q.any().nullish(),code:Q.union([Q.string(),Q.number()]).nullish()})}),zQ=UV({errorSchema:HQ,errorToMessage:(V)=>V.error.message});function LV(V){let Y=V.startsWith("o3")||V.startsWith("o4-mini")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-chat"),J=V.startsWith("gpt-4")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-nano")&&!V.startsWith("gpt-5-chat")&&!V.startsWith("gpt-5.4-nano")||V.startsWith("o3")||V.startsWith("o4-mini"),G=V.startsWith("o1")||V.startsWith("o3")||V.startsWith("o4-mini")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-chat"),j=V.startsWith("gpt-5.1")||V.startsWith("gpt-5.2")||V.startsWith("gpt-5.3")||V.startsWith("gpt-5.4");return{supportsFlexProcessing:Y,supportsPriorityProcessing:J,isReasoningModel:G,systemMessageMode:G?"developer":"system",supportsNonReasoningParameters:j}}function cQ(V){var Y,J,G,j,E,P;if(V==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let $=(Y=V.prompt_tokens)!=null?Y:0,A=(J=V.completion_tokens)!=null?J:0,O=(j=(G=V.prompt_tokens_details)==null?void 0:G.cached_tokens)!=null?j:0,K=(P=(E=V.completion_tokens_details)==null?void 0:E.reasoning_tokens)!=null?P:0;return{inputTokens:{total:$,noCache:$-O,cacheRead:O,cacheWrite:void 0},outputTokens:{total:A,text:A-K,reasoning:K},raw:V}}function HV(V){return JSON.stringify(V===void 0?{}:V)}function MV({prompt:V,systemMessageMode:Y="system"}){var J;let G=[],j=[];for(let{role:E,content:P}of V)switch(E){case"system":{switch(Y){case"system":{G.push({role:"system",content:P});break}case"developer":{G.push({role:"developer",content:P});break}case"remove":{j.push({type:"other",message:"system messages are removed for this model"});break}default:throw Error(`Unsupported system message mode: ${Y}`)}break}case"user":{if(P.length===1&&P[0].type==="text"){G.push({role:"user",content:P[0].text});break}G.push({role:"user",content:P.map(($,A)=>{var O,K,Z;switch($.type){case"text":return{type:"text",text:$.text};case"file":if($.mediaType.startsWith("image/")){let q=$.mediaType==="image/*"?"image/jpeg":$.mediaType;return{type:"image_url",image_url:{url:$.data instanceof URL?$.data.toString():`data:${q};base64,${JQ($.data)}`,detail:(K=(O=$.providerOptions)==null?void 0:O.openai)==null?void 0:K.imageDetail}}}else if($.mediaType.startsWith("audio/")){if($.data instanceof URL)throw new YQ({functionality:"audio file parts with URLs"});switch($.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:JQ($.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:JQ($.data),format:"mp3"}};default:throw new YQ({functionality:`audio content parts with media type ${$.mediaType}`})}}else if($.mediaType==="application/pdf"){if($.data instanceof URL)throw new YQ({functionality:"PDF file parts with URLs"});return{type:"file",file:typeof $.data==="string"&&$.data.startsWith("file-")?{file_id:$.data}:{filename:(Z=$.filename)!=null?Z:`part-${A}.pdf`,file_data:`data:application/pdf;base64,${JQ($.data)}`}}}else throw new YQ({functionality:`file part media type ${$.mediaType}`})}})});break}case"assistant":{let $="",A=[];for(let O of P)switch(O.type){case"text":{$+=O.text;break}case"tool-call":{A.push({id:O.toolCallId,type:"function",function:{name:O.toolName,arguments:HV(O.input)}});break}}G.push({role:"assistant",content:$,tool_calls:A.length>0?A:void 0});break}case"tool":{for(let $ of P){if($.type==="tool-approval-response")continue;let A=$.output,O;switch(A.type){case"text":case"error-text":O=A.value;break;case"execution-denied":O=(J=A.reason)!=null?J:"Tool execution denied.";break;case"content":case"json":case"error-json":O=JSON.stringify(A.value);break}G.push({role:"tool",tool_call_id:$.toolCallId,content:O})}break}default:throw Error(`Unsupported role: ${E}`)}return{messages:G,warnings:j}}function LQ({id:V,model:Y,created:J}){return{id:V!=null?V:void 0,modelId:Y!=null?Y:void 0,timestamp:J?new Date(J*1000):void 0}}function vQ(V){switch(V){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var bV=D(()=>F(Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({message:Q.object({role:Q.literal("assistant").nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({id:Q.string().nullish(),type:Q.literal("function"),function:Q.object({name:Q.string(),arguments:Q.string()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}),index:Q.number(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}))),yV=D(()=>F(Q.union([Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({delta:Q.object({role:Q.enum(["assistant"]).nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({index:Q.number(),id:Q.string().nullish(),type:Q.literal("function").nullish(),function:Q.object({name:Q.string().nullish(),arguments:Q.string().nullish()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}).nullish(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish(),index:Q.number()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}),HQ]))),RV=D(()=>F(Q.object({logitBias:Q.record(Q.coerce.number(),Q.number()).optional(),logprobs:Q.union([Q.boolean(),Q.number()]).optional(),parallelToolCalls:Q.boolean().optional(),user:Q.string().optional(),reasoningEffort:Q.enum(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:Q.number().optional(),store:Q.boolean().optional(),metadata:Q.record(Q.string().max(64),Q.string().max(512)).optional(),prediction:Q.record(Q.string(),Q.any()).optional(),serviceTier:Q.enum(["auto","flex","priority","default"]).optional(),strictJsonSchema:Q.boolean().optional(),textVerbosity:Q.enum(["low","medium","high"]).optional(),promptCacheKey:Q.string().optional(),promptCacheRetention:Q.enum(["in_memory","24h"]).optional(),safetyIdentifier:Q.string().optional(),systemMessageMode:Q.enum(["system","developer","remove"]).optional(),forceReasoning:Q.boolean().optional()})));function kV({tools:V,toolChoice:Y}){V=(V==null?void 0:V.length)?V:void 0;let J=[];if(V==null)return{tools:void 0,toolChoice:void 0,toolWarnings:J};let G=[];for(let E of V)switch(E.type){case"function":G.push({type:"function",function:{name:E.name,description:E.description,parameters:E.inputSchema,...E.strict!=null?{strict:E.strict}:{}}});break;default:J.push({type:"unsupported",feature:`tool type: ${E.type}`});break}if(Y==null)return{tools:G,toolChoice:void 0,toolWarnings:J};let j=Y.type;switch(j){case"auto":case"none":case"required":return{tools:G,toolChoice:j,toolWarnings:J};case"tool":return{tools:G,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:J};default:throw new YQ({functionality:`tool choice type: ${j}`})}}var gV=class{constructor(V,Y){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=V,this.config=Y}get provider(){return this.config.provider}async getArgs({prompt:V,maxOutputTokens:Y,temperature:J,topP:G,topK:j,frequencyPenalty:E,presencePenalty:P,stopSequences:$,responseFormat:A,seed:O,tools:K,toolChoice:Z,providerOptions:q}){var x,f,y,w,M;let g=[],b=(x=await VQ({provider:"openai",providerOptions:q,schema:RV}))!=null?x:{},n=LV(this.modelId),i=(f=b.forceReasoning)!=null?f:n.isReasoningModel;if(j!=null)g.push({type:"unsupported",feature:"topK"});let{messages:p,warnings:m}=MV({prompt:V,systemMessageMode:(y=b.systemMessageMode)!=null?y:i?"developer":n.systemMessageMode});g.push(...m);let s=(w=b.strictJsonSchema)!=null?w:!0,X={model:this.modelId,logit_bias:b.logitBias,logprobs:b.logprobs===!0||typeof b.logprobs==="number"?!0:void 0,top_logprobs:typeof b.logprobs==="number"?b.logprobs:typeof b.logprobs==="boolean"?b.logprobs?0:void 0:void 0,user:b.user,parallel_tool_calls:b.parallelToolCalls,max_tokens:Y,temperature:J,top_p:G,frequency_penalty:E,presence_penalty:P,response_format:(A==null?void 0:A.type)==="json"?A.schema!=null?{type:"json_schema",json_schema:{schema:A.schema,strict:s,name:(M=A.name)!=null?M:"response",description:A.description}}:{type:"json_object"}:void 0,stop:$,seed:O,verbosity:b.textVerbosity,max_completion_tokens:b.maxCompletionTokens,store:b.store,metadata:b.metadata,prediction:b.prediction,reasoning_effort:b.reasoningEffort,service_tier:b.serviceTier,prompt_cache_key:b.promptCacheKey,prompt_cache_retention:b.promptCacheRetention,safety_identifier:b.safetyIdentifier,messages:p};if(i){if(b.reasoningEffort!=="none"||!n.supportsNonReasoningParameters){if(X.temperature!=null)X.temperature=void 0,g.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"});if(X.top_p!=null)X.top_p=void 0,g.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"});if(X.logprobs!=null)X.logprobs=void 0,g.push({type:"other",message:"logprobs is not supported for reasoning models"})}if(X.frequency_penalty!=null)X.frequency_penalty=void 0,g.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"});if(X.presence_penalty!=null)X.presence_penalty=void 0,g.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"});if(X.logit_bias!=null)X.logit_bias=void 0,g.push({type:"other",message:"logitBias is not supported for reasoning models"});if(X.top_logprobs!=null)X.top_logprobs=void 0,g.push({type:"other",message:"topLogprobs is not supported for reasoning models"});if(X.max_tokens!=null){if(X.max_completion_tokens==null)X.max_completion_tokens=X.max_tokens;X.max_tokens=void 0}}else if(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview")){if(X.temperature!=null)X.temperature=void 0,g.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})}if(b.serviceTier==="flex"&&!n.supportsFlexProcessing)g.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),X.service_tier=void 0;if(b.serviceTier==="priority"&&!n.supportsPriorityProcessing)g.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),X.service_tier=void 0;let{tools:u,toolChoice:I,toolWarnings:H}=kV({tools:K,toolChoice:Z});return{args:{...X,tools:u,tool_choice:I},warnings:[...g,...H]}}async doGenerate(V){var Y,J,G,j,E,P,$;let{args:A,warnings:O}=await this.getArgs(V),{responseHeaders:K,value:Z,rawValue:q}=await WQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),V.headers),body:A,failedResponseHandler:zQ,successfulResponseHandler:$Q(bV),abortSignal:V.abortSignal,fetch:this.config.fetch}),x=Z.choices[0],f=[],y=x.message.content;if(y!=null&&y.length>0)f.push({type:"text",text:y});for(let b of(Y=x.message.tool_calls)!=null?Y:[])f.push({type:"tool-call",toolCallId:(J=b.id)!=null?J:QQ(),toolName:b.function.name,input:b.function.arguments});for(let b of(G=x.message.annotations)!=null?G:[])f.push({type:"source",sourceType:"url",id:QQ(),url:b.url_citation.url,title:b.url_citation.title});let w=(j=Z.usage)==null?void 0:j.completion_tokens_details,M=(E=Z.usage)==null?void 0:E.prompt_tokens_details,g={openai:{}};if((w==null?void 0:w.accepted_prediction_tokens)!=null)g.openai.acceptedPredictionTokens=w==null?void 0:w.accepted_prediction_tokens;if((w==null?void 0:w.rejected_prediction_tokens)!=null)g.openai.rejectedPredictionTokens=w==null?void 0:w.rejected_prediction_tokens;if(((P=x.logprobs)==null?void 0:P.content)!=null)g.openai.logprobs=x.logprobs.content;return{content:f,finishReason:{unified:vQ(x.finish_reason),raw:($=x.finish_reason)!=null?$:void 0},usage:cQ(Z.usage),request:{body:A},response:{...LQ(Z),headers:K,body:q},warnings:O,providerMetadata:g}}async doStream(V){let{args:Y,warnings:J}=await this.getArgs(V),G={...Y,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:j,value:E}=await WQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),V.headers),body:G,failedResponseHandler:zQ,successfulResponseHandler:BQ(yV),abortSignal:V.abortSignal,fetch:this.config.fetch}),P=[],$={unified:"other",raw:void 0},A=void 0,O=!1,K=!1,Z={openai:{}};return{stream:E.pipeThrough(new TransformStream({start(q){q.enqueue({type:"stream-start",warnings:J})},transform(q,x){var f,y,w,M,g,b,n,i,p,m,s,X,u,I,H,d,e;if(V.includeRawChunks)x.enqueue({type:"raw",rawValue:q.rawValue});if(!q.success){$={unified:"error",raw:void 0},x.enqueue({type:"error",error:q.error});return}let C=q.value;if("error"in C){$={unified:"error",raw:void 0},x.enqueue({type:"error",error:C.error});return}if(!O){let z=LQ(C);if(Object.values(z).some(Boolean))O=!0,x.enqueue({type:"response-metadata",...LQ(C)})}if(C.usage!=null){if(A=C.usage,((f=C.usage.completion_tokens_details)==null?void 0:f.accepted_prediction_tokens)!=null)Z.openai.acceptedPredictionTokens=(y=C.usage.completion_tokens_details)==null?void 0:y.accepted_prediction_tokens;if(((w=C.usage.completion_tokens_details)==null?void 0:w.rejected_prediction_tokens)!=null)Z.openai.rejectedPredictionTokens=(M=C.usage.completion_tokens_details)==null?void 0:M.rejected_prediction_tokens}let k=C.choices[0];if((k==null?void 0:k.finish_reason)!=null)$={unified:vQ(k.finish_reason),raw:k.finish_reason};if(((g=k==null?void 0:k.logprobs)==null?void 0:g.content)!=null)Z.openai.logprobs=k.logprobs.content;if((k==null?void 0:k.delta)==null)return;let L=k.delta;if(L.content!=null){if(!K)x.enqueue({type:"text-start",id:"0"}),K=!0;x.enqueue({type:"text-delta",id:"0",delta:L.content})}if(L.tool_calls!=null)for(let z of L.tool_calls){let T=z.index;if(P[T]==null){if(z.type!=null&&z.type!=="function")throw new AQ({data:z,message:"Expected 'function' type."});if(z.id==null)throw new AQ({data:z,message:"Expected 'id' to be a string."});if(((b=z.function)==null?void 0:b.name)==null)throw new AQ({data:z,message:"Expected 'function.name' to be a string."});x.enqueue({type:"tool-input-start",id:z.id,toolName:z.function.name}),P[T]={id:z.id,type:"function",function:{name:z.function.name,arguments:(n=z.function.arguments)!=null?n:""},hasFinished:!1};let B=P[T];if(((i=B.function)==null?void 0:i.name)!=null&&((p=B.function)==null?void 0:p.arguments)!=null){if(B.function.arguments.length>0)x.enqueue({type:"tool-input-delta",id:B.id,delta:B.function.arguments});if(qQ(B.function.arguments))x.enqueue({type:"tool-input-end",id:B.id}),x.enqueue({type:"tool-call",toolCallId:(m=B.id)!=null?m:QQ(),toolName:B.function.name,input:B.function.arguments}),B.hasFinished=!0}continue}let N=P[T];if(N.hasFinished)continue;if(((s=z.function)==null?void 0:s.arguments)!=null)N.function.arguments+=(u=(X=z.function)==null?void 0:X.arguments)!=null?u:"";if(x.enqueue({type:"tool-input-delta",id:N.id,delta:(I=z.function.arguments)!=null?I:""}),((H=N.function)==null?void 0:H.name)!=null&&((d=N.function)==null?void 0:d.arguments)!=null&&qQ(N.function.arguments))x.enqueue({type:"tool-input-end",id:N.id}),x.enqueue({type:"tool-call",toolCallId:(e=N.id)!=null?e:QQ(),toolName:N.function.name,input:N.function.arguments}),N.hasFinished=!0}if(L.annotations!=null)for(let z of L.annotations)x.enqueue({type:"source",sourceType:"url",id:QQ(),url:z.url_citation.url,title:z.url_citation.title})},flush(q){if(K)q.enqueue({type:"text-end",id:"0"});q.enqueue({type:"finish",finishReason:$,usage:cQ(A),...Z!=null?{providerMetadata:Z}:{}})}})),request:{body:G},response:{headers:j}}}};function nQ(V){var Y,J,G,j;if(V==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let E=(Y=V.prompt_tokens)!=null?Y:0,P=(J=V.completion_tokens)!=null?J:0;return{inputTokens:{total:(G=V.prompt_tokens)!=null?G:void 0,noCache:E,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:(j=V.completion_tokens)!=null?j:void 0,text:P,reasoning:void 0},raw:V}}function CV({prompt:V,user:Y="user",assistant:J="assistant"}){let G="";if(V[0].role==="system")G+=`${V[0].content}
|
|
2
|
+
import{$p as GV,Bq as qQ,Dq as VQ,Eq as WQ,Fq as xQ,Iq as EV,Jq as a,Lq as UV,Mq as BQ,Nq as $Q,Oq as AV,Rq as xV,Sp as l,Tp as zV,Xp as UQ,Zp as JQ,eq as wQ,gq as QQ,lq as JV,nq as FQ,pq as KV,qq as SV,sq as PV,tq as D,wq as F,xq as t,zq as BV}from"./chunk-p31yg62z.js";import{Uq as ZV,Yq as $V,Zq as AQ,cr as jV,er as YQ}from"./chunk-5mec6cde.js";import"./chunk-cqtkxwd8.js";import"./chunk-0mekr486.js";import{Tu as Q}from"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-s2za1y84.js";var HQ=Q.object({error:Q.object({message:Q.string(),type:Q.string().nullish(),param:Q.any().nullish(),code:Q.union([Q.string(),Q.number()]).nullish()})}),zQ=UV({errorSchema:HQ,errorToMessage:(V)=>V.error.message});function LV(V){let Y=V.startsWith("o3")||V.startsWith("o4-mini")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-chat"),J=V.startsWith("gpt-4")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-nano")&&!V.startsWith("gpt-5-chat")&&!V.startsWith("gpt-5.4-nano")||V.startsWith("o3")||V.startsWith("o4-mini"),G=V.startsWith("o1")||V.startsWith("o3")||V.startsWith("o4-mini")||V.startsWith("gpt-5")&&!V.startsWith("gpt-5-chat"),j=V.startsWith("gpt-5.1")||V.startsWith("gpt-5.2")||V.startsWith("gpt-5.3")||V.startsWith("gpt-5.4");return{supportsFlexProcessing:Y,supportsPriorityProcessing:J,isReasoningModel:G,systemMessageMode:G?"developer":"system",supportsNonReasoningParameters:j}}function cQ(V){var Y,J,G,j,E,P;if(V==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let $=(Y=V.prompt_tokens)!=null?Y:0,A=(J=V.completion_tokens)!=null?J:0,O=(j=(G=V.prompt_tokens_details)==null?void 0:G.cached_tokens)!=null?j:0,K=(P=(E=V.completion_tokens_details)==null?void 0:E.reasoning_tokens)!=null?P:0;return{inputTokens:{total:$,noCache:$-O,cacheRead:O,cacheWrite:void 0},outputTokens:{total:A,text:A-K,reasoning:K},raw:V}}function HV(V){return JSON.stringify(V===void 0?{}:V)}function MV({prompt:V,systemMessageMode:Y="system"}){var J;let G=[],j=[];for(let{role:E,content:P}of V)switch(E){case"system":{switch(Y){case"system":{G.push({role:"system",content:P});break}case"developer":{G.push({role:"developer",content:P});break}case"remove":{j.push({type:"other",message:"system messages are removed for this model"});break}default:throw Error(`Unsupported system message mode: ${Y}`)}break}case"user":{if(P.length===1&&P[0].type==="text"){G.push({role:"user",content:P[0].text});break}G.push({role:"user",content:P.map(($,A)=>{var O,K,Z;switch($.type){case"text":return{type:"text",text:$.text};case"file":if($.mediaType.startsWith("image/")){let q=$.mediaType==="image/*"?"image/jpeg":$.mediaType;return{type:"image_url",image_url:{url:$.data instanceof URL?$.data.toString():`data:${q};base64,${JQ($.data)}`,detail:(K=(O=$.providerOptions)==null?void 0:O.openai)==null?void 0:K.imageDetail}}}else if($.mediaType.startsWith("audio/")){if($.data instanceof URL)throw new YQ({functionality:"audio file parts with URLs"});switch($.mediaType){case"audio/wav":return{type:"input_audio",input_audio:{data:JQ($.data),format:"wav"}};case"audio/mp3":case"audio/mpeg":return{type:"input_audio",input_audio:{data:JQ($.data),format:"mp3"}};default:throw new YQ({functionality:`audio content parts with media type ${$.mediaType}`})}}else if($.mediaType==="application/pdf"){if($.data instanceof URL)throw new YQ({functionality:"PDF file parts with URLs"});return{type:"file",file:typeof $.data==="string"&&$.data.startsWith("file-")?{file_id:$.data}:{filename:(Z=$.filename)!=null?Z:`part-${A}.pdf`,file_data:`data:application/pdf;base64,${JQ($.data)}`}}}else throw new YQ({functionality:`file part media type ${$.mediaType}`})}})});break}case"assistant":{let $="",A=[];for(let O of P)switch(O.type){case"text":{$+=O.text;break}case"tool-call":{A.push({id:O.toolCallId,type:"function",function:{name:O.toolName,arguments:HV(O.input)}});break}}G.push({role:"assistant",content:$,tool_calls:A.length>0?A:void 0});break}case"tool":{for(let $ of P){if($.type==="tool-approval-response")continue;let A=$.output,O;switch(A.type){case"text":case"error-text":O=A.value;break;case"execution-denied":O=(J=A.reason)!=null?J:"Tool execution denied.";break;case"content":case"json":case"error-json":O=JSON.stringify(A.value);break}G.push({role:"tool",tool_call_id:$.toolCallId,content:O})}break}default:throw Error(`Unsupported role: ${E}`)}return{messages:G,warnings:j}}function LQ({id:V,model:Y,created:J}){return{id:V!=null?V:void 0,modelId:Y!=null?Y:void 0,timestamp:J?new Date(J*1000):void 0}}function vQ(V){switch(V){case"stop":return"stop";case"length":return"length";case"content_filter":return"content-filter";case"function_call":case"tool_calls":return"tool-calls";default:return"other"}}var bV=D(()=>F(Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({message:Q.object({role:Q.literal("assistant").nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({id:Q.string().nullish(),type:Q.literal("function"),function:Q.object({name:Q.string(),arguments:Q.string()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}),index:Q.number(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}))),yV=D(()=>F(Q.union([Q.object({id:Q.string().nullish(),created:Q.number().nullish(),model:Q.string().nullish(),choices:Q.array(Q.object({delta:Q.object({role:Q.enum(["assistant"]).nullish(),content:Q.string().nullish(),tool_calls:Q.array(Q.object({index:Q.number(),id:Q.string().nullish(),type:Q.literal("function").nullish(),function:Q.object({name:Q.string().nullish(),arguments:Q.string().nullish()})})).nullish(),annotations:Q.array(Q.object({type:Q.literal("url_citation"),url_citation:Q.object({start_index:Q.number(),end_index:Q.number(),url:Q.string(),title:Q.string()})})).nullish()}).nullish(),logprobs:Q.object({content:Q.array(Q.object({token:Q.string(),logprob:Q.number(),top_logprobs:Q.array(Q.object({token:Q.string(),logprob:Q.number()}))})).nullish()}).nullish(),finish_reason:Q.string().nullish(),index:Q.number()})),usage:Q.object({prompt_tokens:Q.number().nullish(),completion_tokens:Q.number().nullish(),total_tokens:Q.number().nullish(),prompt_tokens_details:Q.object({cached_tokens:Q.number().nullish()}).nullish(),completion_tokens_details:Q.object({reasoning_tokens:Q.number().nullish(),accepted_prediction_tokens:Q.number().nullish(),rejected_prediction_tokens:Q.number().nullish()}).nullish()}).nullish()}),HQ]))),RV=D(()=>F(Q.object({logitBias:Q.record(Q.coerce.number(),Q.number()).optional(),logprobs:Q.union([Q.boolean(),Q.number()]).optional(),parallelToolCalls:Q.boolean().optional(),user:Q.string().optional(),reasoningEffort:Q.enum(["none","minimal","low","medium","high","xhigh"]).optional(),maxCompletionTokens:Q.number().optional(),store:Q.boolean().optional(),metadata:Q.record(Q.string().max(64),Q.string().max(512)).optional(),prediction:Q.record(Q.string(),Q.any()).optional(),serviceTier:Q.enum(["auto","flex","priority","default"]).optional(),strictJsonSchema:Q.boolean().optional(),textVerbosity:Q.enum(["low","medium","high"]).optional(),promptCacheKey:Q.string().optional(),promptCacheRetention:Q.enum(["in_memory","24h"]).optional(),safetyIdentifier:Q.string().optional(),systemMessageMode:Q.enum(["system","developer","remove"]).optional(),forceReasoning:Q.boolean().optional()})));function kV({tools:V,toolChoice:Y}){V=(V==null?void 0:V.length)?V:void 0;let J=[];if(V==null)return{tools:void 0,toolChoice:void 0,toolWarnings:J};let G=[];for(let E of V)switch(E.type){case"function":G.push({type:"function",function:{name:E.name,description:E.description,parameters:E.inputSchema,...E.strict!=null?{strict:E.strict}:{}}});break;default:J.push({type:"unsupported",feature:`tool type: ${E.type}`});break}if(Y==null)return{tools:G,toolChoice:void 0,toolWarnings:J};let j=Y.type;switch(j){case"auto":case"none":case"required":return{tools:G,toolChoice:j,toolWarnings:J};case"tool":return{tools:G,toolChoice:{type:"function",function:{name:Y.toolName}},toolWarnings:J};default:throw new YQ({functionality:`tool choice type: ${j}`})}}var gV=class{constructor(V,Y){this.specificationVersion="v3",this.supportedUrls={"image/*":[/^https?:\/\/.*$/]},this.modelId=V,this.config=Y}get provider(){return this.config.provider}async getArgs({prompt:V,maxOutputTokens:Y,temperature:J,topP:G,topK:j,frequencyPenalty:E,presencePenalty:P,stopSequences:$,responseFormat:A,seed:O,tools:K,toolChoice:Z,providerOptions:q}){var x,f,y,w,M;let g=[],b=(x=await VQ({provider:"openai",providerOptions:q,schema:RV}))!=null?x:{},n=LV(this.modelId),i=(f=b.forceReasoning)!=null?f:n.isReasoningModel;if(j!=null)g.push({type:"unsupported",feature:"topK"});let{messages:p,warnings:m}=MV({prompt:V,systemMessageMode:(y=b.systemMessageMode)!=null?y:i?"developer":n.systemMessageMode});g.push(...m);let s=(w=b.strictJsonSchema)!=null?w:!0,X={model:this.modelId,logit_bias:b.logitBias,logprobs:b.logprobs===!0||typeof b.logprobs==="number"?!0:void 0,top_logprobs:typeof b.logprobs==="number"?b.logprobs:typeof b.logprobs==="boolean"?b.logprobs?0:void 0:void 0,user:b.user,parallel_tool_calls:b.parallelToolCalls,max_tokens:Y,temperature:J,top_p:G,frequency_penalty:E,presence_penalty:P,response_format:(A==null?void 0:A.type)==="json"?A.schema!=null?{type:"json_schema",json_schema:{schema:A.schema,strict:s,name:(M=A.name)!=null?M:"response",description:A.description}}:{type:"json_object"}:void 0,stop:$,seed:O,verbosity:b.textVerbosity,max_completion_tokens:b.maxCompletionTokens,store:b.store,metadata:b.metadata,prediction:b.prediction,reasoning_effort:b.reasoningEffort,service_tier:b.serviceTier,prompt_cache_key:b.promptCacheKey,prompt_cache_retention:b.promptCacheRetention,safety_identifier:b.safetyIdentifier,messages:p};if(i){if(b.reasoningEffort!=="none"||!n.supportsNonReasoningParameters){if(X.temperature!=null)X.temperature=void 0,g.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for reasoning models"});if(X.top_p!=null)X.top_p=void 0,g.push({type:"unsupported",feature:"topP",details:"topP is not supported for reasoning models"});if(X.logprobs!=null)X.logprobs=void 0,g.push({type:"other",message:"logprobs is not supported for reasoning models"})}if(X.frequency_penalty!=null)X.frequency_penalty=void 0,g.push({type:"unsupported",feature:"frequencyPenalty",details:"frequencyPenalty is not supported for reasoning models"});if(X.presence_penalty!=null)X.presence_penalty=void 0,g.push({type:"unsupported",feature:"presencePenalty",details:"presencePenalty is not supported for reasoning models"});if(X.logit_bias!=null)X.logit_bias=void 0,g.push({type:"other",message:"logitBias is not supported for reasoning models"});if(X.top_logprobs!=null)X.top_logprobs=void 0,g.push({type:"other",message:"topLogprobs is not supported for reasoning models"});if(X.max_tokens!=null){if(X.max_completion_tokens==null)X.max_completion_tokens=X.max_tokens;X.max_tokens=void 0}}else if(this.modelId.startsWith("gpt-4o-search-preview")||this.modelId.startsWith("gpt-4o-mini-search-preview")){if(X.temperature!=null)X.temperature=void 0,g.push({type:"unsupported",feature:"temperature",details:"temperature is not supported for the search preview models and has been removed."})}if(b.serviceTier==="flex"&&!n.supportsFlexProcessing)g.push({type:"unsupported",feature:"serviceTier",details:"flex processing is only available for o3, o4-mini, and gpt-5 models"}),X.service_tier=void 0;if(b.serviceTier==="priority"&&!n.supportsPriorityProcessing)g.push({type:"unsupported",feature:"serviceTier",details:"priority processing is only available for supported models (gpt-4, gpt-5, gpt-5-mini, o3, o4-mini) and requires Enterprise access. gpt-5-nano is not supported"}),X.service_tier=void 0;let{tools:u,toolChoice:I,toolWarnings:H}=kV({tools:K,toolChoice:Z});return{args:{...X,tools:u,tool_choice:I},warnings:[...g,...H]}}async doGenerate(V){var Y,J,G,j,E,P,$;let{args:A,warnings:O}=await this.getArgs(V),{responseHeaders:K,value:Z,rawValue:q}=await WQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),V.headers),body:A,failedResponseHandler:zQ,successfulResponseHandler:$Q(bV),abortSignal:V.abortSignal,fetch:this.config.fetch}),x=Z.choices[0],f=[],y=x.message.content;if(y!=null&&y.length>0)f.push({type:"text",text:y});for(let b of(Y=x.message.tool_calls)!=null?Y:[])f.push({type:"tool-call",toolCallId:(J=b.id)!=null?J:QQ(),toolName:b.function.name,input:b.function.arguments});for(let b of(G=x.message.annotations)!=null?G:[])f.push({type:"source",sourceType:"url",id:QQ(),url:b.url_citation.url,title:b.url_citation.title});let w=(j=Z.usage)==null?void 0:j.completion_tokens_details,M=(E=Z.usage)==null?void 0:E.prompt_tokens_details,g={openai:{}};if((w==null?void 0:w.accepted_prediction_tokens)!=null)g.openai.acceptedPredictionTokens=w==null?void 0:w.accepted_prediction_tokens;if((w==null?void 0:w.rejected_prediction_tokens)!=null)g.openai.rejectedPredictionTokens=w==null?void 0:w.rejected_prediction_tokens;if(((P=x.logprobs)==null?void 0:P.content)!=null)g.openai.logprobs=x.logprobs.content;return{content:f,finishReason:{unified:vQ(x.finish_reason),raw:($=x.finish_reason)!=null?$:void 0},usage:cQ(Z.usage),request:{body:A},response:{...LQ(Z),headers:K,body:q},warnings:O,providerMetadata:g}}async doStream(V){let{args:Y,warnings:J}=await this.getArgs(V),G={...Y,stream:!0,stream_options:{include_usage:!0}},{responseHeaders:j,value:E}=await WQ({url:this.config.url({path:"/chat/completions",modelId:this.modelId}),headers:l(this.config.headers(),V.headers),body:G,failedResponseHandler:zQ,successfulResponseHandler:BQ(yV),abortSignal:V.abortSignal,fetch:this.config.fetch}),P=[],$={unified:"other",raw:void 0},A=void 0,O=!1,K=!1,Z={openai:{}};return{stream:E.pipeThrough(new TransformStream({start(q){q.enqueue({type:"stream-start",warnings:J})},transform(q,x){var f,y,w,M,g,b,n,i,p,m,s,X,u,I,H,d,e;if(V.includeRawChunks)x.enqueue({type:"raw",rawValue:q.rawValue});if(!q.success){$={unified:"error",raw:void 0},x.enqueue({type:"error",error:q.error});return}let C=q.value;if("error"in C){$={unified:"error",raw:void 0},x.enqueue({type:"error",error:C.error});return}if(!O){let z=LQ(C);if(Object.values(z).some(Boolean))O=!0,x.enqueue({type:"response-metadata",...LQ(C)})}if(C.usage!=null){if(A=C.usage,((f=C.usage.completion_tokens_details)==null?void 0:f.accepted_prediction_tokens)!=null)Z.openai.acceptedPredictionTokens=(y=C.usage.completion_tokens_details)==null?void 0:y.accepted_prediction_tokens;if(((w=C.usage.completion_tokens_details)==null?void 0:w.rejected_prediction_tokens)!=null)Z.openai.rejectedPredictionTokens=(M=C.usage.completion_tokens_details)==null?void 0:M.rejected_prediction_tokens}let k=C.choices[0];if((k==null?void 0:k.finish_reason)!=null)$={unified:vQ(k.finish_reason),raw:k.finish_reason};if(((g=k==null?void 0:k.logprobs)==null?void 0:g.content)!=null)Z.openai.logprobs=k.logprobs.content;if((k==null?void 0:k.delta)==null)return;let L=k.delta;if(L.content!=null){if(!K)x.enqueue({type:"text-start",id:"0"}),K=!0;x.enqueue({type:"text-delta",id:"0",delta:L.content})}if(L.tool_calls!=null)for(let z of L.tool_calls){let T=z.index;if(P[T]==null){if(z.type!=null&&z.type!=="function")throw new AQ({data:z,message:"Expected 'function' type."});if(z.id==null)throw new AQ({data:z,message:"Expected 'id' to be a string."});if(((b=z.function)==null?void 0:b.name)==null)throw new AQ({data:z,message:"Expected 'function.name' to be a string."});x.enqueue({type:"tool-input-start",id:z.id,toolName:z.function.name}),P[T]={id:z.id,type:"function",function:{name:z.function.name,arguments:(n=z.function.arguments)!=null?n:""},hasFinished:!1};let B=P[T];if(((i=B.function)==null?void 0:i.name)!=null&&((p=B.function)==null?void 0:p.arguments)!=null){if(B.function.arguments.length>0)x.enqueue({type:"tool-input-delta",id:B.id,delta:B.function.arguments});if(qQ(B.function.arguments))x.enqueue({type:"tool-input-end",id:B.id}),x.enqueue({type:"tool-call",toolCallId:(m=B.id)!=null?m:QQ(),toolName:B.function.name,input:B.function.arguments}),B.hasFinished=!0}continue}let N=P[T];if(N.hasFinished)continue;if(((s=z.function)==null?void 0:s.arguments)!=null)N.function.arguments+=(u=(X=z.function)==null?void 0:X.arguments)!=null?u:"";if(x.enqueue({type:"tool-input-delta",id:N.id,delta:(I=z.function.arguments)!=null?I:""}),((H=N.function)==null?void 0:H.name)!=null&&((d=N.function)==null?void 0:d.arguments)!=null&&qQ(N.function.arguments))x.enqueue({type:"tool-input-end",id:N.id}),x.enqueue({type:"tool-call",toolCallId:(e=N.id)!=null?e:QQ(),toolName:N.function.name,input:N.function.arguments}),N.hasFinished=!0}if(L.annotations!=null)for(let z of L.annotations)x.enqueue({type:"source",sourceType:"url",id:QQ(),url:z.url_citation.url,title:z.url_citation.title})},flush(q){if(K)q.enqueue({type:"text-end",id:"0"});q.enqueue({type:"finish",finishReason:$,usage:cQ(A),...Z!=null?{providerMetadata:Z}:{}})}})),request:{body:G},response:{headers:j}}}};function nQ(V){var Y,J,G,j;if(V==null)return{inputTokens:{total:void 0,noCache:void 0,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:void 0,text:void 0,reasoning:void 0},raw:void 0};let E=(Y=V.prompt_tokens)!=null?Y:0,P=(J=V.completion_tokens)!=null?J:0;return{inputTokens:{total:(G=V.prompt_tokens)!=null?G:void 0,noCache:E,cacheRead:void 0,cacheWrite:void 0},outputTokens:{total:(j=V.completion_tokens)!=null?j:void 0,text:P,reasoning:void 0},raw:V}}function CV({prompt:V,user:Y="user",assistant:J="assistant"}){let G="";if(V[0].role==="system")G+=`${V[0].content}
|
|
3
3
|
|
|
4
4
|
`,V=V.slice(1);for(let{role:j,content:E}of V)switch(j){case"system":throw new $V({message:"Unexpected system message in prompt: ${content}",prompt:V});case"user":{let P=E.map(($)=>{switch($.type){case"text":return $.text}}).filter(Boolean).join("");G+=`${Y}:
|
|
5
5
|
${P}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{GP as o}from"./chunk-s2za1y84.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-kvz0vzsn.js")).default();break;case"zod":a=(await import("./chunk-1337582e.js")).default();break;default:a=(await import("./chunk-pfbykat1.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 Gg,d as Hg};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{N as o}from"./chunk-8ahpk8td.js";import{O as i}from"./chunk-
|
|
2
|
+
import{N as o}from"./chunk-8ahpk8td.js";import{O as i}from"./chunk-vpqd0t8a.js";import{Dd as p}from"./chunk-3kdhvq0p.js";import{Qd as n}from"./chunk-g4qwkcdv.js";import{Uf as B}from"./chunk-0ndvy0nh.js";import{$f as l}from"./chunk-f416n3mp.js";import"./chunk-dazye86e.js";import"./chunk-3bb7y9pq.js";import"./chunk-wr5hdsst.js";import"./chunk-nfp9xtca.js";import"./chunk-nfg7nt13.js";import"./chunk-ze00x1xb.js";import"./chunk-sdsggxm4.js";import{kh as d,uh as g}from"./chunk-kbjwdv1x.js";import"./chunk-ek1fawsj.js";import"./chunk-3w64fpwn.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-fk8cctjy.js";import"./chunk-fxb6vjcb.js";import{Uk as f}from"./chunk-njzpswgt.js";import"./chunk-2cm91ktc.js";import"./chunk-ygwe0vf1.js";import"./chunk-1qbm1k9y.js";import"./chunk-3rgct4bd.js";import"./chunk-atbm0pnt.js";import"./chunk-s86fj82v.js";import"./chunk-58gp7wbg.js";import"./chunk-w4hbw37v.js";import{mp as D}from"./chunk-qmhcbdkg.js";import"./chunk-7qxn24qa.js";import"./chunk-vx837ete.js";import"./chunk-ppvmy940.js";import"./chunk-1n4w8dya.js";import"./chunk-7ryv0f5h.js";import"./chunk-p31yg62z.js";import"./chunk-5mec6cde.js";import"./chunk-cqtkxwd8.js";import"./chunk-0mekr486.js";import"./chunk-x3931we7.js";import"./chunk-w01gjnty.js";import"./chunk-nxjbbq5h.js";import"./chunk-z559gc3n.js";import"./chunk-kbyk7hyn.js";import"./chunk-6h2faxs9.js";import"./chunk-4nck07pc.js";import"./chunk-d2n09yvh.js";import"./chunk-f3c9667r.js";import"./chunk-qpv4438m.js";import"./chunk-hybq019j.js";import"./chunk-z2q3mg73.js";import"./chunk-n07rsssz.js";import{$t as x,It as u,St as I}from"./chunk-08y06vgt.js";import{tu as y}from"./chunk-9p83me3p.js";import"./chunk-9wm41z2f.js";import"./chunk-48j09m6e.js";import"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-tedrfa7d.js";import"./chunk-ynfbz3sz.js";import"./chunk-rs0nx844.js";import"./chunk-qkwhgfjt.js";import"./chunk-s2za1y84.js";import Q from"path";import{pathToFileURL as a}from"url";import{EOL as O}from"os";function $(j){let K=j.state;return{input:K.input,metadata:"metadata"in K?K.metadata:{},part:j}}function C(j){let K=j.description?B.Style.TEXT_DIM+` ${j.description}`+B.Style.TEXT_NORMAL:"";B.println(B.Style.TEXT_NORMAL+j.icon,B.Style.TEXT_NORMAL+j.title+K)}function b(j,K){if(B.empty(),C(j),!K?.trim())return;B.println(K),B.empty()}function c(j){let K=j.state,V="input"in K?K.input:void 0,Y=("title"in K&&K.title?K.title:void 0)||(V&&typeof V==="object"&&Object.keys(V).length>0?JSON.stringify(V):"Unknown");C({icon:"\u2699",title:`${j.tool} ${Y}`})}function t(j){let K=j.path??"",V=`${j.kind} "${j.pattern}"`,Y=K?`in ${T(K)}`:"",H=j.count===void 0?Y:`${Y}${Y?" \xB7 ":""}${j.count} ${j.count===1?"match":"matches"}`;C({icon:"\u2731",title:V,...H&&{description:H}})}function r(j){t({kind:"Glob",pattern:j.input.pattern,path:j.input.path,count:j.metadata.count})}function jj(j){t({kind:"Grep",pattern:j.input.pattern,path:j.input.path,count:j.metadata.matches})}function Bj(j){let K=T(j.input.filePath),V=Object.entries(j.input).filter(([H,S])=>{if(H==="filePath")return!1;return typeof S==="string"||typeof S==="number"||typeof S==="boolean"}),Y=V.length?`[${V.map(([H,S])=>`${H}=${S}`).join(", ")}]`:void 0;C({icon:"\u2192",title:`Read ${K}`,...Y&&{description:Y}})}function Gj(j){b({icon:"\u2190",title:`Write ${T(j.input.filePath)}`},j.part.state.status==="completed"?j.part.state.output:void 0)}function Jj(j){C({icon:"%",title:`WebFetch ${j.input.url}`})}function Kj(j){let K=T(j.input.filePath),V=j.metadata.diff;b({icon:"\u2190",title:`Edit ${K}`},V)}function Mj(j){C({icon:"\u25C7",title:`Exa Code Search "${j.input.query}"`})}function Nj(j){C({icon:"\u25C8",title:`Web Search "${j.input.query}"`})}function k(j){let K=j.part.state.input?.operation??j.part.state.input,V=j.part.state.status,Y=typeof K?.subagent_type==="string"&&K.subagent_type.trim().length>0?K.subagent_type:"unknown",H=u.titlecase(Y),S=typeof K?.description==="string"&&K.description.trim().length>0?K.description:void 0,w=V==="error"?"\u2717":V==="running"?"\u2022":"\u2713",L=S??`${H} Task`;C({icon:w,title:L,description:S?`${H} Agent`:void 0})}function Vj(j){C({icon:"\u2192",title:`Skill "${j.input.name}"`})}function Xj(j){let K=j.part.state.status==="completed"?j.part.state.output?.trim():void 0;b({icon:"$",title:`${j.input.command}`},K)}function T(j){if(!j)return"";if(Q.isAbsolute(j))return Q.relative(process.cwd(),j)||".";return j}var Tj=n({command:"run [message..]",describe:"run qitqode with a message",builder:(j)=>{return j.positional("message",{describe:"message to send",type:"string",array:!0,default:[]}).option("command",{describe:"the command to run, use message for args",type:"string"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],describe:"session id to continue",type:"string"}).option("fork",{describe:"fork the session before continuing (requires --continue or --session)",type:"boolean"}).option("share",{type:"boolean",describe:"share the session"}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}).option("agent",{type:"string",describe:"agent to use"}).option("format",{type:"string",choices:["default","json"],default:"default",describe:"format: default (formatted) or json (raw JSON events)"}).option("file",{alias:["f"],type:"string",array:!0,describe:"file(s) to attach to message"}).option("title",{type:"string",describe:"title for the session (uses truncated prompt if no value provided)"}).option("attach",{type:"string",describe:"attach to a running qitqode server (e.g., http://localhost:4096)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}).option("dir",{type:"string",describe:"directory to run in, path on remote server if attaching"}).option("port",{type:"number",describe:"port for the local server (defaults to random port if no value provided)"}).option("variant",{type:"string",describe:"model variant (provider-specific reasoning effort, e.g., high, max, minimal)"}).option("thinking",{type:"boolean",describe:"show thinking blocks",default:!1}).option("dangerously-skip-permissions",{type:"boolean",describe:"auto-approve permissions that are not explicitly denied (dangerous!)",default:!1})},handler:async(j)=>{let K=[...j.message,...j["--"]||[]].join(" "),V=(()=>{if(!j.dir)return;if(j.attach)return j.dir;try{return process.chdir(j.dir),process.cwd()}catch{B.error("Failed to change directory to "+j.dir),process.exit(1)}})(),Y=[];if(j.file){let M=Array.isArray(j.file)?j.file:[j.file];for(let X of M){let N=Q.resolve(process.cwd(),X);if(!await y.exists(N))B.error(`File not found: ${X}`),process.exit(1);let W=await y.isDir(N)?"application/x-directory":"text/plain";Y.push({type:"file",url:a(N).href,filename:Q.basename(N),mime:W})}}if(!process.stdin.isTTY)K+=`
|
|
3
3
|
`+await Bun.stdin.text();if(K.trim().length===0&&!j.command)B.error("You must provide a message or a command"),process.exit(1);if(j.fork&&!j.continue&&!j.session)B.error("--fork requires --continue or --session"),process.exit(1);let H=[{permission:"question",action:"deny",pattern:"*"},{permission:"plan_enter",action:"deny",pattern:"*"},{permission:"plan_exit",action:"deny",pattern:"*"}];function S(){if(j.title===void 0)return;if(j.title!=="")return j.title;return K.slice(0,50)+(K.length>50?"...":"")}async function w(M){let X=j.continue?(await M.session.list()).data?.find((Z)=>!Z.parentID)?.id:j.session;if(X&&j.fork)return(await M.session.fork({sessionID:X})).data?.id;if(X)return X;let N=S();return(await M.session.create({title:N,permission:H})).data?.id}async function L(M,X){let N=await M.config.get();if(!N.data)return;if(N.data.share!=="auto"&&!I.QITQODE_AUTO_SHARE&&!j.share)return;let W=await M.session.share({sessionID:X}).catch((Z)=>{if(Z instanceof Error&&Z.message.includes("disabled"))B.println(B.Style.TEXT_DANGER_BOLD+"! "+Z.message);return{error:Z}});if(!W.error&&"data"in W&&W.data?.share?.url)B.println(B.Style.TEXT_INFO_BOLD+"~ "+W.data.share.url)}async function h(M){function X(G){try{if(G.tool==="bash")return Xj($(G));if(G.tool==="glob")return r($(G));if(G.tool==="grep")return jj($(G));if(G.tool==="read")return Bj($(G));if(G.tool==="write")return Gj($(G));if(G.tool==="webfetch")return Jj($(G));if(G.tool==="edit")return Kj($(G));if(G.tool==="codesearch")return Mj($(G));if(G.tool==="websearch")return Nj($(G));if(G.tool==="actor")return k($(G));if(G.tool==="skill")return Vj($(G));return c(G)}catch{return c(G)}}function N(G,q){if(j.format==="json")return process.stdout.write(JSON.stringify({type:G,timestamp:Date.now(),sessionID:A,...q})+O),!0;return!1}let W=await M.event.subscribe(),Z;async function e(G){let q=new Map,z=x.create({service:"cli.run"}),E=W.stream[Symbol.asyncIterator](),F=G.completion.then(()=>"DONE");try{while(!0){let P=await Promise.race([E.next(),F]);if(P==="DONE")break;if(P.done)break;let _=P.value;if(G.onEvent(_),z.debug("event received",{type:_.type}),_.type==="message.updated"&&_.properties.info.role==="assistant"&&j.format!=="json"&&q.get("start")!==!0)B.empty(),B.println(`> ${_.properties.info.agent} \xB7 ${_.properties.info.modelID}`),B.empty(),q.set("start",!0);if(_.type==="message.part.updated"){let J=_.properties.part;if(J.sessionID!==A)continue;if(J.type==="tool"&&(J.state.status==="completed"||J.state.status==="error")){if(N("tool_use",{part:J}))continue;if(J.state.status==="completed"){X(J);continue}C({icon:"\u2717",title:`${J.tool} failed`}),B.error(J.state.error)}if(J.type==="tool"&&J.tool==="actor"&&J.state.status==="running"&&j.format!=="json"){if(q.get(J.id)===!0)continue;k($(J)),q.set(J.id,!0)}if(J.type==="step-start"){if(N("step_start",{part:J}))continue}if(J.type==="step-finish"){if(N("step_finish",{part:J}))continue}if(J.type==="text"&&J.time?.end){if(N("text",{part:J}))continue;let R=J.text.trim();if(!R)continue;if(!process.stdout.isTTY){process.stdout.write(R+O);continue}B.empty(),B.println(R),B.empty()}if(J.type==="reasoning"&&J.time?.end&&j.thinking){if(N("reasoning",{part:J}))continue;let R=J.text.trim();if(!R)continue;let U=`Thinking: ${R}`;if(process.stdout.isTTY){B.empty(),B.println(`${B.Style.TEXT_DIM}\x1B[3m${U}\x1B[0m${B.Style.TEXT_NORMAL}`),B.empty();continue}process.stdout.write(U+O)}}if(_.type==="session.error"){let J=_.properties;if(J.sessionID!==A||!J.error)continue;let R=String(J.error.name);if("data"in J.error&&J.error.data&&"message"in J.error.data)R=String(J.error.data.message);if(Z=Z?Z+O+R:R,N("error",{error:J.error}))continue;B.error(R)}if(_.type==="permission.asked"){let J=_.properties;if(J.sessionID!==A)continue;if(j["dangerously-skip-permissions"])await M.permission.reply({requestID:J.id,reply:"once"});else B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL+`permission requested: ${J.permission} (${J.patterns.join(", ")}); auto-rejecting`),await M.permission.reply({requestID:J.id,reply:"reject"})}}}finally{G.stop(),await E.return?.(void 0).catch(()=>{})}}let v=await(async()=>{if(!j.agent)return;let G=j.agent;if(j.attach){let z=await M.app.agents(void 0,{throwOnError:!0}).then((F)=>F.data??[]).catch(()=>{return});if(!z){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`failed to list agents from ${j.attach}. Falling back to default agent`);return}let E=z.find((F)=>F.name===G);if(!E){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" not found. Falling back to default agent`);return}if(E.mode==="subagent"){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" is a subagent, not a primary agent. Falling back to default agent`);return}return G}let q=await g.runPromise(d.Service.use((z)=>z.get(G)));if(!q){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" not found. Falling back to default agent`);return}if(q.mode==="subagent"){B.println(B.Style.TEXT_WARNING_BOLD+"!",B.Style.TEXT_NORMAL,`agent "${G}" is a subagent, not a primary agent. Falling back to default agent`);return}return G})(),A=await w(M);if(!A)B.error("Session not found"),process.exit(1);await L(M,A);let s=x.create({service:"cli.run.poll"}),m=o({sessionID:A,query:async()=>{try{return(await M.session.status()).data?.[A]}catch(G){throw s.debug("session.status query failed",{error:G}),G}}});if(e(m).catch((G)=>{console.error(G),process.exit(1)}),j.command)await M.session.command({sessionID:A,agent:v,model:j.model,command:j.command,arguments:K,variant:j.variant});else{let G=j.model?f.parseModel(j.model):void 0;await M.session.prompt({sessionID:A,agent:v,model:G,variant:j.variant,parts:[...Y,{type:"text",text:K}]})}m.markStarted()}if(j.attach){let M=i({password:j.password}),X=D({baseUrl:j.attach,directory:V,headers:M});return await h(X)}await p(process.cwd(),async()=>{let X=D({baseUrl:"http://qitqode.internal",fetch:async(N,W)=>{let Z=new Request(N,W);return l.Default().app.fetch(Z)}});await h(X)})}});export{Tj as RunCommand};
|